Advertisement
xiaomianao666

邀您一起看:综艺

Sep 20th, 2024
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 海阔视界规则分享,当前分享的是:二级页面详情¥page_detail¥综艺@@eyJkYXRhIjoie1wiYXNzb2NpYXRlZE1vZGVsc01hcEZvckpvaW5UYWJsZVwiOnt9LFwiYXNzb2NpYXRlZE1vZGVsc01hcFdpdGhGS1wiOnt9LFwiYXNzb2NpYXRlZE1vZGVsc01hcFdpdGhvdXRGS1wiOnt9LFwiZmllbGRzVG9TZXRUb0RlZmF1bHRcIjpbXSxcImdtdE1vZGlmaWVkXCI6MCxcImlkXCI6MCxcImxhc3RfY2hhcHRlcl9ydWxlXCI6XCJcIixcImxpc3RUb0NsZWFyQXNzb2NpYXRlZEZLXCI6W10sXCJsaXN0VG9DbGVhclNlbGZGS1wiOltdLFwicGFnZUxpc3RcIjpbe1wiY29sX3R5cGVcIjpcIm1vdmllXzNcIixcIm5hbWVcIjpcIuS+nei1llwiLFwicGF0aFwiOlwiZGF0YVwiLFwicnVsZVwiOlwianM6XFxuJC5leHBvcnRzLmRlY3J5cHQgPSBmdW5jdGlvbigpIHtcXG4gICAgY29uc3QgQ3J5cHRvVXRpbCA9ICQucmVxdWlyZShcXFwiaGlrZXI6Ly9hc3NldHMvY3J5cHRvLWphdmEuanNcXFwiKTtcXG4gICAgY29uc3Qga2V5ID0gQ3J5cHRvVXRpbC5EYXRhLnBhcnNlVVRGOCgnZjVkOTY1ZGY3NTMzNjI3MCcpO1xcbiAgICBjb25zdCBpdiA9IENyeXB0b1V0aWwuRGF0YS5wYXJzZVVURjgoJzk3YjYwMzk0YWJjMmZiZTEnKTtcXG4gICAgY29uc3QgdGV4dERhdGEgPSBDcnlwdG9VdGlsLkRhdGEucGFyc2VJbnB1dFN0cmVhbShpbnB1dCkudG9CYXNlNjQoX2Jhc2U2NC5OT19XUkFQKTtcXG4gICAgY29uc3QgZGVjcnlwdGVkID0gQ3J5cHRvVXRpbC5BRV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z48Zm9udCBjb2xvcj0jJyArIChjIHx8ICcwMDAwMDAnKSArICc+JyArIGQgKyAnPC9mb250Pjwvc3Ryb25nPic7XFxufVxcblxcbmZ1bmN0aW9uIENhdGVnb3J5KGxpc3QsIG1vZGUsIGQpIHtcXG4gICAgZm9yICh2YXIgaSBpbiBsaXN0KSB7XFxuICAgICAgICB2YXIgTGlzdCA9IGxpc3RbaV07XFxuICAgICAgICB2YXIgdGl0bGUgPSBMaXN0LnRpdGxlO1xcbiAgICAgICAgdmFyIFRpdGxlID0gKGdldE15VmFyKCdjb2xvcicsICctMScpID09IGkpID8gc3Ryb25nKHRpdGxlLCAnRkY2Njk5JykgOiB0aXRsZTtcXG4gICAgICAgIGQucHVzaCh7XFxuICAgICAgICAgICAgdGl0bGU6IFRpdGxlLFxcbiAgICAgICAgICAgIHVybDogJChMaXN0LnR5cGUpLmxhenlSdWxlKChpLCBtb2RlLCBMaXN0KSA9PiB7XFxuICAgICAgICAgICAgICAgIGlmIChtb2RlID09IDApIHtcXG4gICAgICAgICAgICAgICAgICAgIHB1dE15VmFyKCd0eXBlJywgaW5wdXQpO1xcbiAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKG1vZGUgPT0gMSkge1xcbiAgICAgICAgICAgICAgICAgICAgcHV0TXlWYXIoJ3R5cGVTJywgaW5wdXQpO1xcbiAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKG1vZGUgPT0gMikge1xcbiAgICAgICAgICAgICAgICAgICAgcHV0TXlWYXIoJ3R5cGVTUycsIGlucHV0KTtcXG4gICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICBwdXRNeVZhcignY29sb3InLCBpKTtcXG4gICAgICAgICAgICAgICAgcmVmcmVzaFBhZ2UoKTtcXG4gICAgICAgICAgICAgICAgcmV0dXJuICdoaWtlcjovL2VtcHR5JztcXG4gICAgICAgICAgICB9LCBpLCBtb2RlLCBMaXN0KSxcXG4gICAgICAgICAgICBjb2xfdHlwZTogJ2ZsZXhfYnV0dG9uJ1xcbiAgICAgICAgfSk7XFxuICAgIH1cXG4gICAgZC5wdXNoKHtcXG4gICAgICAgIGNvbF90eXBlOiAnYmxhbmtfYmxvY2snLFxcbiAgICB9KTtcXG4gICAgcmV0dXJuIGQ7XFxufVxcblxcbmZ1bmN0aW9uIGNhdGVnb3J5KGxpc3QsIGQpIHtcXG4gICAgaWYgKGdldEl0ZW0oJ3N3aXRjaCcsICdvZmYnKSA9PSAnb24nKSB7XFxuICAgICAgICBmb3IgKHZhciBpIGluIGxpc3QpIHtcXG4gICAgICAgICAgICB2YXIgTGlzdCA9IGxpc3RbaV07XFxuICAgICAgICAgICAgdmFyIHRpdGxlID0gTGlzdC5uYW1lO1xcbiAgICAgICAgICAgIHZhciBUaXRsZSA9IChnZXRNeVZhcignQ29sb3InLCAnLTEnKSA9PSBpKSA/IHN0cm9uZyh0aXRsZSwgJ0ZGNjY5OScpIDogdGl0bGU7XFxuICAgICAgICAgICAgaWYgKExpc3QuaWQgPT0gJzYnIHx8IExpc3QuaWQgPT0gJzInKSB7XFxuXFxuICAgICAgICAgICAgfSBlbHNlIGlmIChMaXN0LmlkID09ICc0JyB8fCBMaXN0LmlkID09ICc3Jykge1xcbiAgICAgICAgICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgICAgICAgICAgdGl0bGU6IFRpdGxlLFxcbiAgICAgICAgICAgICAgICAgICAgdXJsOiAkKExpc3QuaWQpLmxhenlSdWxlKChpLCBMaXN0KSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgcHV0TXlWYXIoJ2lkJywgaW5wdXQpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIHB1dE15VmFyKCdDb2xvcicsIGkpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIHJlZnJlc2hQYWdlKCk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuICdoaWtlcjovL3BhZ2UvdHlwZTE/ZnlwYWdlJztcXG4gICAgICAgICAgICAgICAgICAgIH0sIGksIExpc3QpLFxcbiAgICAgICAgICAgICAgICAgICAgY29sX3R5cGU6ICdzY3JvbGxfYnV0dG9uJ1xcbiAgICAgICAgICAgICAgICB9KTtcXG4gICAgICAgICAgICB9IGVsc2Uge1xcbiAgICAgICAgICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgICAgICAgICAgdGl0bGU6IFRpdGxlLFxcbiAgICAgICAgICAgICAgICAgICAgdXJsOiAkKExpc3QuaWQpLmxhenlSdWxlKChpLCBMaXN0KSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgcHV0TXlWYXIoJ2lkJywgaW5wdXQpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIHB1dE15VmFyKCdDb2xvcicsIGkpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIHJlZnJlc2hQYWdlKCk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuICdoaWtlcjovL3BhZ2UvdHlwZTI/ZnlwYWdlJztcXG4gICAgICAgICAgICAgICAgICAgIH0sIGksIExpc3QpLFxcbiAgICAgICAgICAgICAgICAgICAgY29sX3R5cGU6ICdzY3JvbGxfYnV0dG9uJ1xcbiAgICAgICAgICAgICAgICB9KTtcXG4gICAgICAgICAgICB9XFxuICAgICAgICB9XFxuICAgIH1cXG4gICAgLypkLnB1c2goe1xcbiAgICAgICAgdGl0bGU6ICfwn5SSJyxcXG4gICAgICAgIHVybDogJCgnJykubGF6eVJ1bGUoKCkgPT4ge1xcbiAgICAgICAgICAgIHB1dE15VmFyKCdvbi1vZmYnLCAnb2ZmJylcXG4gICAgICAgICAgICByZWZyZXNoUGFnZSgpO1xcbiAgICAgICAgICAgIHJldHVybiAnaGlrZXI6Ly9lbXB0eSc7XFxuICAgICAgICB9KSxcXG4gICAgICAgIGNvbF90eXBlOiAnZmxleF9idXR0b24nXFxuICAgIH0pOyovXFxuICAgIGQucHVzaCh7XFxuICAgICAgICB0aXRsZTogKGdldEl0ZW0oJ3N3aXRjaCcsICdvZ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zdFtpXS50aXRsZVxcbiAgICAgICAgICAgIH1cXG4gICAgICAgIH0pO1xcbiAgICAgICAgZm9yICh2YXIgaiBpbiBsaXN0KSB7XFxuICAgICAgICAgICAgdmFyIHBsYXl1cmwgPSBsaXN0W2pdLnBsYXlVcmw7XFxuICAgICAgICAgICAgdmFyIHRpdGxlID0gbGlzdFtqXS50aXRsZTtcXG4gICAgICAgICAgICB2YXIgZGVzYyA9ICdcXFxcdPCflKUnICsgbGlzdFtqXS5wbGF5X2NvdW50O1xcbiAgICAgICAgICAgIHZhciBpbWFnZXVybCA9IGxpc3Rbal0udGh1bWJJbWc7XFxuICAgICAgICAgICAgZC5wdXNoKHtcXG4gICAgICAgICAgICAgICAgdGl0bGU6IHRpdGxlLFxcbiAgICAgICAgICAgICAgICBkZXNjOiBkZXNjLFxcbiAgICAgICAgICAgICAgICBpbWc6IGltYWdldXJsICsgaW1hZ2UsXFxuICAgICAgICAgICAgICAgIGNvbF90eXBlOiBjb2xfdHlwZSxcXG4gICAgICAgICAgICAgICAgdXJsOiBwbGF5dXJsLnJlcGxhY2UoJzEwcGxheScsICdsb25nJylcXG4gICAgICAgICAgICB9KTtcXG4gICAgICAgIH1cXG4gICAgICAgIGQucHVzaCh7XFxuICAgICAgICAgICAgY29sX3R5cGU6ICdiaWdfYmxhbmtfYmxvY2snLFxcbiAgICAgICAgICAgIHVybDogJ2hpa2VyOi8vZW1wdHknXFxuICAgICAgICB9KTtcXG4gICAgfVxcbn1cXG5zZXRSZXN1bHQoZCk7XCJ9LHtcImNvbF90eXBlXCI6XCJtb3ZpZV8zXCIsXCJuYW1lXCI6XCLikaHpobXpnaIt55So5oi3LeW4luWtkOWIl+ihqFwiLFwicGF0aFwiOlwibmV3c1wiLFwicnVsZVwiOlwianM6XFxudmFyIGQgPSBbXTtcXG52YXIgcGFnZSA9IE1ZX1BBR0U7XFxudmFyIG1vZCA9IE1ZX1BBUkFNUy5tb2Q7XFxudmFyIGNvZGUgPSBNWV9QQVJBTVM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ICAgICAgIH1cXG4gICAgICAgIH0pO1xcbiAgICAgICAgZm9yICh2YXIgaSBpbiBsaXN0KSB7XFxuICAgICAgICAgICAgdmFyIHRpdGxlID0gbGlzdFtpXS50aXRsZTtcXG4gICAgICAgICAgICB2YXIgcGxheVVybCA9IGxpc3RbaV0ucGxheVVybDtcXG4gICAgICAgICAgICB2YXIgbmlja05hbWUgPSBsaXN0W2ldLm5pY2tOYW1lO1xcbiAgICAgICAgICAgIHZhciB1dWlkID0gbGlzdFtpXS51dWlkO1xcbiAgICAgICAgICAgIHZhciBkZXNjID0gJ/CflKUnICsgbGlzdFtpXS5wbGF5X2NvdW50ICsgJ1xcXFx0XFxcXHRcXFxcdFxcXFx0XFxcXHRcXFxcdOKPse+4jycgKyBsaXN0W2ldLmR1cmF0aW9uU3RyO1xcbiAgICAgICAgICAgIHZhciBpbWFnZXVybCA9IGxpc3RbaV0udGh1bWJJbWc7XFxuICAgICAgICAgICAgZC5wdXNoKHtcXG4gICAgICAgICAgICAgICAgdGl0bGU6IHRpdGxlLFxcbiAgICAgICAgICAgICAgICBkZXNjOiBkZXNjLFxcbiAgICAgICAgICAgICAgICBpbWc6IGltYWdldXJsICsgaW1hZ2UsXFxuICAgICAgICAgICAgICAgIGNvbF90eXBlOiAoc3RvcmFnZTAuZ2V0SXRlbSgnQ29sMicsICcnKSA9PSAnJykgPyAnbW92aWVfMicgOiBzdG9yYWdlMC5nZXRJdGVtKCdDb2wyJywgJycpLFxcbiAgICAgICAgICAgICAgICB1cmw6IHBsYXlVcmwucmVwbGFjZSgnMTBwbGF5JywgJ2xvbmcnKSxcXG4gICAgICAgICAgICAgICAgZXh0cmE6IHtcXG4gICAgICAgICAgICAgICAgICAgIGxvbmdDbGljazogZXZhbChKU09OLnBhcnNlKHJlcXVlc3QoJ2hpa2VyOi8vcGFnZS9sb25nQ2xpY2syJykpLnJ1bGUpXFxuICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICB9KTtcXG4gICAgICAgIH1cX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lbHNlIHtcXG4gICAgICAgICAgICAgICAgVHlwZVtpXSA9IFR5cGVbaV07XFxuICAgICAgICAgICAgfVxcbiAgICAgICAgICAgIFR5cGUxW2ldID0gVHlwZVtpXTtcXG4gICAgICAgIH1cXG4gICAgICAgIHNob3dTZWxlY3RPcHRpb25zKHtcXG4gICAgICAgICAgICB0aXRsZTogXFxcIumAieaLqeexu+Wei1xcXCIsXFxuICAgICAgICAgICAgY29sOiAyLFxcbiAgICAgICAgICAgIG9wdGlvbnM6IFR5cGUxLFxcbiAgICAgICAgICAgIGpzOiAkLnRvU3RyaW5nKCgpID0+IHtcXG4gICAgICAgICAgICAgICAgc3RvcmFnZTAuc2V0SXRlbSgndHlwZScsIGlucHV0KTtcXG4gICAgICAgICAgICAgICAgdmFyIGNvbCA9IHN0b3JhZ2UwLmdldEl0ZW0oJ3R5cGUnLCAnJyk7XFxuICAgICAgICAgICAgICAgIHZhciBDb2wgPSAoY29sLmluY2x1ZGVzKCfwn5GJ8J+PvScpKSA/IGNvbC5zcGxpdCgn8J+RifCfj70nKVsxXSA6IGNvbDtcXG4gICAgICAgICAgICAgICAgc3RvcmFnZTAuc2V0SXRlbSgnQ29sX21lZGlhJywgQ29sKTtcXG4gICAgICAgICAgICAgICAgcmVmcmVzaFBhZ2UoKTtcXG4gICAgICAgICAgICB9KVxcbiAgICAgICAgfSk7XFxuICAgICAgICByZXR1cm4gXFxcImhpa2VyOi8vZW1wdHlcXFwiXFxuICAgIH0pfSx7XFxuICAgIHRpdGxlOiAn5pCc57SiJyxcXG4gICAganM6ICQudG9TdHJpbmcoKCkgPT4ge1xcbiAgICAgICAgcmV0dXJuICdoaWtlcjovL3BhZ2Uvc2VhcmNoJztcXG4gICAgfSksXFxufSx7XFxuICAgIHRpdGxlOiAn6aaW6aG1JyxcXG4gICAganM6ICQudG9TdHJpbmcoKCkgPT4ge1xcbiAgICAgICAgcmVmcmVzaFBhZ2UoKTtcXG4gICAgICAgIHJldHVybiAnaGlrZXI6Ly9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H1cXG4gICAgICAgICAgICBUeXBlMVtpXSA9IFR5cGVbaV07XFxuICAgICAgICB9XFxuICAgICAgICBzaG93U2VsZWN0T3B0aW9ucyh7XFxuICAgICAgICAgICAgdGl0bGU6IFxcXCLpgInmi6nnsbvlnotcXFwiLFxcbiAgICAgICAgICAgIGNvbDogMixcXG4gICAgICAgICAgICBvcHRpb25zOiBUeXBlMSxcXG4gICAgICAgICAgICBqczogJC50b1N0cmluZygoKSA9PiB7XFxuICAgICAgICAgICAgICAgIHN0b3JhZ2UwLnNldEl0ZW0oJ3R5cGUnLCBpbnB1dCk7XFxuICAgICAgICAgICAgICAgIHZhciBjb2wgPSBzdG9yYWdlMC5nZXRJdGVtKCd0eXBlJywgJycpO1xcbiAgICAgICAgICAgICAgICB2YXIgQ29sID0gKGNvbC5pbmNsdWRlcygn8J+RifCfj70nKSkgPyBjb2wuc3BsaXQoJ/CfkYnwn4+9JylbMV0gOiBjb2w7XFxuICAgICAgICAgICAgICAgIHN0b3JhZ2UwLnNldEl0ZW0oJ0NvbDInLCBDb2wpO1xcbiAgICAgICAgICAgICAgICByZWZyZXNoUGFnZSgpO1xcbiAgICAgICAgICAgIH0pXFxuICAgICAgICB9KTtcXG4gICAgICAgIHJldHVybiBcXFwiaGlrZXI6Ly9lbXB0eVxcXCJcXG4gICAgfSksXFxufSwge1xcbiAgICB0aXRsZTogJ+aQnOe0oicsXFxuICAgIGpzOiAkLnRvU3RyaW5nKCgpID0+IHtcXG4gICAgICAgIHJldHVybiAnaGlrZXI6Ly9wYWdlL3NlYXJjaCc7XFxuICAgIH0pLFxcbn0se1xcbiAgICB0aXRsZTogJ+mmlumhtScsXFxuICAgIGpzOiAkLnRvU3RyaW5nKCgpID0+IHtcXG4gICAgICAgIHJlZnJlc2hQYWdlKCk7XFxuICAgICAgICByZXR1cm4gJ2hpa2VyOi8vZW1wdHknO1xcbiAgICB9KSxcXG59LCB7XFxuICAgIHRpdGxlOiAn56ysJyArIE1ZX1BBR0UgKyAn6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ICAgIHZhciBpZCA9IExpc3RbaV0uaWQ7XFxuICAgIHZhciBsaXN0ID0gTGlzdFtpXS5saXN0O1xcbiAgICBpZiAoIXRpdGxlLmluY2x1ZGVzKCdiYW5uZXInKSkge1xcbiAgICAgICAgZC5wdXNoKHtcXG4gICAgICAgICAgICBjb2xfdHlwZTogJ3RleHRfaWNvbicsXFxuICAgICAgICAgICAgdGl0bGU6ICQucmVxdWlyZShcXFwiZGF0YVxcXCIpLnN0cm9uZ1IodGl0bGUsICdGRjY2OTknKSxcXG4gICAgICAgICAgICBpbWc6ICdoaWtlcjovL2ltYWdlcy9pY29uX3JpZ2h0NScsXFxuICAgICAgICAgICAgdXJsOiAnaGlrZXI6Ly9wYWdlL3BsYXlsaXN0P2Z5cGFnZScsXFxuICAgICAgICAgICAgZXh0cmE6IHtcXG4gICAgICAgICAgICAgICAgaWQ6IGlkLFxcbiAgICAgICAgICAgICAgICBwYWdlVGl0bGU6IHRpdGxlXFxuICAgICAgICAgICAgfVxcbiAgICAgICAgfSk7XFxuICAgICAgICBmb3IgKHZhciBpIGluIGxpc3QpIHtcXG4gICAgICAgICAgICB2YXIgdGl0bGUgPSBsaXN0W2ldLnRpdGxlO1xcbiAgICAgICAgICAgIHZhciBwbGF5VXJsID0gbGlzdFtpXS5wbGF5VXJsO1xcbiAgICAgICAgICAgIHZhciBuaWNrTmFtZSA9IGxpc3RbaV0ubmlja05hbWU7XFxuICAgICAgICAgICAgdmFyIHV1aWQgPSBsaXN0W2ldLnV1aWQ7XFxuICAgICAgICAgICAgdmFyIGRlc2MgPSAn8J+UpScgKyBsaXN0W2ldLnBsYXlfY291bnQgKyAnXFxcXHRcXFxcdFxcXFx0XFxcXHRcXFxcdFxcXFx04o+x77iPJyArIGxpc3RbaV0uZHVyYXRpb25TdHI7XFxuICAgICAgICAgICAgdmFyIGltYWdldXJsID0gbGlzdFtpXS50aHVtYkltZztcXG4gICAgICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgICAgICB0aX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XG4gICAgICAgIGQucHVzaCh7XFxcXG4gICAgICAgICAgICB0aXRsZTogVGl0bGUsXFxcXG4gICAgICAgICAgICB1cmw6ICQoTGlzdC50eXBlKS5sYXp5UnVsZSgoaSwgbW9kZSwgTGlzdCkgPT4ge1xcXFxuICAgICAgICAgICAgICAgIGlmIChtb2RlID09IDApIHtcXFxcbiAgICAgICAgICAgICAgICAgICAgcHV0TXlWYXIoJ3R5cGUnLCBpbnB1dCk7XFxcXG4gICAgICAgICAgICAgICAgfSBlbHNlIGlmIChtb2RlID09IDEpIHtcXFxcbiAgICAgICAgICAgICAgICAgICAgcHV0TXlWYXIoJ3R5cGVTJywgaW5wdXQpO1xcXFxuICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAobW9kZSA9PSAyKSB7XFxcXG4gICAgICAgICAgICAgICAgICAgIHB1dE15VmFyKCd0eXBlU1MnLCBpbnB1dCk7XFxcXG4gICAgICAgICAgICAgICAgfVxcXFxuICAgICAgICAgICAgICAgIHB1dE15VmFyKCdjb2xvcicsIGkpO1xcXFxuICAgICAgICAgICAgICAgIHJlZnJlc2hQYWdlKCk7XFxcXG4gICAgICAgICAgICAgICAgcmV0dXJuICdoaWtlcjovL2VtcHR5JztcXFxcbiAgICAgICAgICAgIH0sIGksIG1vZGUsIExpc3QpLFxcXFxuICAgICAgICAgICAgY29sX3R5cGU6ICdmbGV4X2J1dHRvbidcXFxcbiAgICAgICAgfSk7XFxcXG4gICAgfVxcXFxuICAgIGQucHVzaCh7XFxcXG4gICAgICAgIGNvbF90eXBlOiAnYmxhbmtfYmxvY2snLFxcXFxuICAgIH0pO1xcXFxuICAgIHJldHVybiBkO1xcXFxufVxcXFxuXFxcXG5mdW5jdGlvbiBjYXRlZ29yeShsaXN0LCBkKSB7XFxcXG4gICAgaWYgKGdldEl0ZW0oJ3N3aXRjaCcsICdvZmYnKSA9PSAnb24nKSB7XFxcXG4gICAgICAgIGZvciAodmFyIGkgaW4gbGlzdCkge1xcXFxuICAgICAgICAgICAgdmFyIExpc3QgPSBsaXN0W2ldO1xcXFxuICAgICAgICAgICAgdmFyIHRpdGxlID0gTGlzdC5uYW1lO1xcXFxuICAgICAgICAgICAgdmFyIFRpdGxlID0gKGdldE15VmFyKCdDb2xvcicsICctMScpID09IGkpID8gc3Ryb25nKHRpdGxlLCAnRkY2Njk5JykgOiB0aXRsZTtcXFxcbiAgICAgICAgICAgIGlmIChMaXN0LmlkID09ICc2JyB8fCBMaXN0LmlkID09ICcyJykge1xcXFxuXFxcXG4gICAgICAgICAgICB9IGVsc2UgaWYgKExpc3QuaWQgPT0gJzQnIHx8IExpc3QuaWQgPT0gJzcnKSB7XFxcXG4gICAgICAgICAgICAgICAgZC5wdXNoKHtcXFxcbiAgICAgICAgICAgICAgICAgICAgdGl0bGU6IFRpdGxlLFxcXFxuICAgICAgICAgICAgICAgICAgICB1cmw6ICQoTGlzdC5pZCkubGF6eVJ1bGUoKGksIExpc3QpID0+IHtcXFxcbiAgICAgICAgICAgICAgICAgICAgICAgIHB1dE15VmFyKCdpZCcsIGlucHV0KTtcXFxcbiAgICAgICAgICAgICAgICAgICAgICAgIHB1dE15VmFyKCdDb2xvcicsIGkpO1xcXFxuICAgICAgICAgICAgICAgICAgICAgICAgcmVmcmVzaFBhZ2UoKTtcXFxcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiAnaGlrZXI6Ly9wYWdlL3R5cGUxP2Z5cGFnZSc7XFxcXG4gICAgICAgICAgICAgICAgICAgIH0sIGksIExpc3QpLFxcXFxuICAgICAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ3Njcm9sbF9idXR0b24nXFxcXG4gICAgICAgICAgICAgICAgfSk7XFxcXG4gICAgICAgICAgICB9IGVsc2Uge1xcXFxuICAgICAgICAgICAgICAgIGQucHVzaCh7XFxcXG4gICAgICAgICAgICAgICAgICAgIHRpdGxlOiBUaXRsZSxcXFxcbiAgICAgICAgICAgICAgICAgICAgdXJsOiAkKExpc3QuaWQpLmxhenlSdWxlKChpLCBMaXN0KSA9PiB7XFxcXG4gICAgICAgICAgICAgICAgICAgICAgICBwdXRNeVZhcignaWQnLCBpbnB1dCk7XFxcXG4gICAgICAgICAgICAgICAgICAgICAgICBwdXRNeVZhcignQ29sb3InLCBpKTtcXFxcbiAgICAgICAgICAgICAgICAgICAgICAgIHJlZnJlc2hQYWdlKCk7XFxcXG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gJ2hpa2VyOi8vcGFnZS90eXBlMj9meXBhZ2UnO1xcXFxuICAgICAgICAgICAgICAgICAgICB9LCBpLCBMaXN0KSxcXFxcbiAgICAgICAgICAgICAgICAgICAgY29sX3R5cGU6ICdzY3JvbGxfYnV0dG9uJ1xcXFxuICAgICAgICAgICAgICAgIH0pO1xcXFxuICAgICAgICAgICAgfVxcXFxuICAgICAgICB9XFxcXG4gICAgfVxcXFxuICAgIC8qZC5wdXNoKHtcXFxcbiAgICAgICAgdGl0bGU6ICfwn5SSJyxcXFxcbiAgICAgICAgdXJsOiAkKCcnKS5sYXp5UnVsZSgoKSA9PiB7XFxcXG4gICAgICAgICAgICBwdXRNeVZhcignb24tb2ZmJywgJ29mZicpXFxcXG4gICAgICAgICAgICByZWZyZXNoUGFnZSgpO1xcXFxuICAgICAgICAgICAgcmV0dXJuICdoaWtlcjovL2VtcHR5JztcXFxcbiAgICAgICAgfSksXFxcXG4gICAgICAgIGNvbF90eXBlOiAnZmxleF9idXR0b24nXFxcXG4gICAgfSk7Ki9cXFxcbiAgICBkLnB1c2goe1xcXFxuICAgICAgICB0aXRsZTogKGdldEl0ZW0oJ3N3aXRjaCcsICdvZmYnKSA9PSAnb2ZmJykgPyAn8J+TgScgOiAn8J+TgicsXFxcXG4gICAgICAgIHVybDogJCgnJykubGF6eVJ1bGUoKCkgPT4ge1xcXFxuICAgICAgICAgICAgaWYgKGdldEl0ZW0oJ3N3aXRjaCcsICdvZmYnKSA9PSAnb2ZmJykge1xcXFxuICAgICAgICAgICAgICAgIHNldEl0ZW0oJ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3IgKHZhciBqIGluIGxpc3QpIHtcXFxcbiAgICAgICAgICAgIHZhciBwbGF5dXJsID0gbGlzdFtqXS5wbGF5VXJsO1xcXFxuICAgICAgICAgICAgdmFyIHRpdGxlID0gbGlzdFtqXS50aXRsZTtcXFxcbiAgICAgICAgICAgIHZhciBkZXNjID0gJ1xcXFxcXFxcdPCflKUnICsgbGlzdFtqXS5wbGF5X2NvdW50O1xcXFxuICAgICAgICAgICAgdmFyIGltYWdldXJsID0gbGlzdFtqXS50aHVtYkltZztcXFxcbiAgICAgICAgICAgIGQucHVzaCh7XFxcXG4gICAgICAgICAgICAgICAgdGl0bGU6IHRpdGxlLFxcXFxuICAgICAgICAgICAgICAgIGRlc2M6IGRlc2MsXFxcXG4gICAgICAgICAgICAgICAgaW1nOiBpbWFnZXVybCArIGltYWdlLFxcXFxuICAgICAgICAgICAgICAgIGNvbF90eXBlOiBjb2xfdHlwZSxcXFxcbiAgICAgICAgICAgICAgICB1cmw6IHBsYXl1cmwucmVwbGFjZSgnMTBwbGF5JywgJ2xvbmcnKVxcXFxuICAgICAgICAgICAgfSk7XFxcXG4gICAgICAgIH1cXFxcbiAgICAgICAgZC5wdXNoKHtcXFxcbiAgICAgICAgICAgIGNvbF90eXBlOiAnYmlnX2JsYW5rX2Jsb2NrJyxcXFxcbiAgICAgICAgICAgIHVybDogJ2hpa2VyOi8vZW1wdHknXFxcXG4gICAgICAgIH0pO1xcXFxuICAgIH1cXFxcbn1cXFxcbnNldFJlc3VsdChkKTtcXFwifSx7XFxcImNvbF90eXBlXFxcIjpcXFwibW92aWVfM1xcXCIsXFxcIm5hbWVcXFwiOlxcXCLikaHpobXpnaIt55So5oi3LeW4luWtkOWIl+ihqFxcXCIsXFxcInBhdGhcXFwiOlxcXCJuZXdzXFxcIixcXFwicnVsZVxcXCI6XFxcImpzOlxcXFxudmFyIGQgPSBbXTtcXFxcbnZhciBwYWdlID0gTVlfUEFHRTtcXFxcbnZhciBtb2QgPSBNWV9QQVJBTVMub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ICAgZm9yICh2YXIgaSBpbiBUeXBlKSB7XFxcXG4gICAgICAgICAgICB2YXIgY29sID0gc3RvcmFnZTAuZ2V0SXRlbSgndHlwZScsICcnKTtcXFxcbiAgICAgICAgICAgIHZhciBDb2wgPSAoY29sLmluY2x1ZGVzKCfwn5GJ8J+PvScpKSA/IGNvbC5zcGxpdCgn8J+RifCfj70nKVsxXSA6IGNvbDtcXFxcbiAgICAgICAgICAgIGlmIChUeXBlW2ldID09IENvbCkge1xcXFxuICAgICAgICAgICAgICAgIFR5cGVbaV0gPSAn8J+RifCfj70nICsgVHlwZVtpXTtcXFxcbiAgICAgICAgICAgIH0gZWxzZSB7XFxcXG4gICAgICAgICAgICAgICAgVHlwZVtpXSA9IFR5cGVbaV07XFxcXG4gICAgICAgICAgICB9XFxcXG4gICAgICAgICAgICBUeXBlMVtpXSA9IFR5cGVbaV07XFxcXG4gICAgICAgIH1cXFxcbiAgICAgICAgc2hvd1NlbGVjdE9wdGlvbnMoe1xcXFxuICAgICAgICAgICAgdGl0bGU6IFxcXFxcXFwi6YCJ5oup57G75Z6LXFxcXFxcXCIsXFxcXG4gICAgICAgICAgICBjb2w6IDIsXFxcXG4gICAgICAgICAgICBvcHRpb25zOiBUeXBlMSxcXFxcbiAgICAgICAgICAgIGpzOiAkLnRvU3RyaW5nKCgpID0+IHtcXFxcbiAgICAgICAgICAgICAgICBzdG9yYWdlMC5zZXRJdGVtKCd0eXBlJywgaW5wdXQpO1xcXFxuICAgICAgICAgICAgICAgIHZhciBjb2wgPSBzdG9yYWdlMC5nZXRJdGVtKCd0eXBlJywgJycpO1xcXFxuICAgICAgICAgICAgICAgIHZhciBDb2wgPSAoY29sLmluY2x1ZGVzKCfwn5GJ8J+PvScpKSA/IGNvbC5zcGxpdCgn8J+RifCfj70nKVsxXSA6IGNvbDtcXFxcbiAgICAgICAgICAgICAgICBzdG9yYWdlMC5zZXRJdGVtKCdDb2xfbWVkaWEnLCBDb2wpO1xcXFxuICAgICAgICAgICAgIC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AgICAgICAgICBUeXBlW2ldID0gJ/CfkYnwn4+9JyArIFR5cGVbaV07XFxcXG4gICAgICAgICAgICB9IGVsc2Uge1xcXFxuICAgICAgICAgICAgICAgIFR5cGVbaV0gPSBUeXBlW2ldO1xcXFxuICAgICAgICAgICAgfVxcXFxuICAgICAgICAgICAgVHlwZTFbaV0gPSBUeXBlW2ldO1xcXFxuICAgICAgICB9XFxcXG4gICAgICAgIHNob3dTZWxlY3RPcHRpb25zKHtcXFxcbiAgICAgICAgICAgIHRpdGxlOiBcXFxcXFxcIumAieaLqeexu+Wei1xcXFxcXFwiLFxcXFxuICAgICAgICAgICAgY29sOiAyLFxcXFxuICAgICAgICAgICAgb3B0aW9uczogVHlwZTEsXFxcXG4gICAgICAgICAgICBqczogJC50b1N0cmluZygoKSA9PiB7XFxcXG4gICAgICAgICAgICAgICAgc3RvcmFnZTAuc2V0SXRlbSgndHlwZScsIGlucHV0KTtcXFxcbiAgICAgICAgICAgICAgICB2YXIgY29sID0gc3RvcmFnZTAuZ2V0SXRlbSgndHlwZScsICcnKTtcXFxcbiAgICAgICAgICAgICAgICB2YXIgQ29sID0gKGNvbC5pbmNsdWRlcygn8J+RifCfj70nKSkgPyBjb2wuc3BsaXQoJ/CfkYnwn4+9JylbMV0gOiBjb2w7XFxcXG4gICAgICAgICAgICAgICAgc3RvcmFnZTAuc2V0SXRlbSgnQ29sMicsIENvbCk7XFxcXG4gICAgICAgICAgICAgICAgcmVmcmVzaFBhZ2UoKTtcXFxcbiAgICAgICAgICAgIH0pXFxcXG4gICAgICAgIH0pO1xcXFxuICAgICAgICByZXR1cm4gXFxcXFxcXCJoaWtlcjovL2VtcHR5XFxcXFxcXCJcXFxcbiAgICB9KSxcXFxcbn0sIHtcXFxcbiAgICB0aXRsZTogJ+aQnOe0oicsXFxcXG4gICAganM6ICQudG9TdHJpbmcoKCkgPT4ge1xcXFxuICAgICAgICByZXR1cm4gJ2hpa2VyOi8vcGFnZS9zZWFyY2gnO1xcXFxuICA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xuICAgICAgICAgICAgdmFyIGNvbCA9IHN0b3JhZ2UwLmdldEl0ZW0oJ3R5cGUnLCAnJyk7XFxcXG4gICAgICAgICAgICB2YXIgQ29sID0gKGNvbC5pbmNsdWRlcygn8J+RifCfj70nKSkgPyBjb2wuc3BsaXQoJ/CfkYnwn4+9JylbMV0gOiBjb2w7XFxcXG4gICAgICAgICAgICBpZiAoVHlwZVtpXSA9PSBDb2wpIHtcXFxcbiAgICAgICAgICAgICAgICBUeXBlW2ldID0gJ/CfkYnwn4+9JyArIFR5cGVbaV07XFxcXG4gICAgICAgICAgICB9IGVsc2Uge1xcXFxuICAgICAgICAgICAgICAgIFR5cGVbaV0gPSBUeXBlW2ldO1xcXFxuICAgICAgICAgICAgfVxcXFxuICAgICAgICAgICAgVHlwZTFbaV0gPSBUeXBlW2ldO1xcXFxuICAgICAgICB9XFxcXG4gICAgICAgIHNob3dTZWxlY3RPcHRpb25zKHtcXFxcbiAgICAgICAgICAgIHRpdGxlOiBcXFxcXFxcIumAieaLqeexu+Wei1xcXFxcXFwiLFxcXFxuICAgICAgICAgICAgY29sOiAyLFxcXFxuICAgICAgICAgICAgb3B0aW9uczogVHlwZTEsXFxcXG4gICAgICAgICAgICBqczogJC50b1N0cmluZygoKSA9PiB7XFxcXG4gICAgICAgICAgICAgICAgc3RvcmFnZTAuc2V0SXRlbSgndHlwZScsIGlucHV0KTtcXFxcbiAgICAgICAgICAgICAgICB2YXIgY29sID0gc3RvcmFnZTAuZ2V0SXRlbSgndHlwZScsICcnKTtcXFxcbiAgICAgICAgICAgICAgICB2YXIgQ29sID0gKGNvbC5pbmNsdWRlcygn8J+RifCfj70nKSkgPyBjb2wuc3BsaXQoJ/CfkYnwn4+9JylbMV0gOiBjb2w7XFxcXG4gICAgICAgICAgICAgICAgc3RvcmFnZTAuc2V0SXRlbSgnQ29sMScsIENvbCk7XFxcXG4gICAgICAgICAgICAgICAgcmVmcmVzaFBhZ2UoKTtcXFxcbiAgICAgICAgICAgIH0pX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IHBsYXlVcmwgPSBtZWRpYWxpc3RbaV0ucGxheVVybDtcXFxcbiAgICBkLnB1c2goe1xcXFxuICAgICAgICB0aXRsZTogdGl0bGUsXFxcXG4gICAgICAgIGltZzogaW1nICsgaW1hZ2UsXFxcXG4gICAgICAgIGNvbF90eXBlOiAnbW92aWVfMicsXFxcXG4gICAgICAgIHVybDogJ2hpa2VyOi8vcGFnZS9zZWFyY2hfaG90VG9waWNzX2RldGFpbCcsXFxcXG4gICAgICAgIGV4dHJhOiB7XFxcXG4gICAgICAgICAgICBpZDogaWQsXFxcXG4gICAgICAgICAgICBwYWdlVGl0bGU6IFxcXFxcXFwi6K+m5oOFXFxcXFxcXCJcXFxcbiAgICAgICAgfVxcXFxuICAgIH0pO1xcXFxufVxcXFxufVxcXFxuc2V0UmVzdWx0KGQpO1xcXCJ9XVwiLFwicHJveHlcIjpcIlwifSIsInRpdGxlIjoi57u86Im6In0=
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement