xiaomianao666

小程序:爱听音乐

Oct 8th, 2024
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@爱听音乐@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi54ix5ZCs6Z+z5LmQIiwiYXV0aG9yIjoi5a2j6aOOIiwidXJsIjoiaGlrZXI6Ly9lbXB0eSMjaHR0cDovL3d3dy4ydDU4LmNvbSNmeXBhZ2UiLCJ2ZXJzaW9uIjo1LCJjb2xfdHlwZSI6Im1vdmllXzMiLCJjbGFzc19uYW1lIjoiIiwidHlwZSI6Im11c2ljIiwiY2xhc3NfdXJsIjoiIiwiYXJlYV9uYW1lIjoiIiwiYXJlYV91cmwiOiIiLCJzb3J0X25hbWUiOiIiLCJ5ZWFyX25hbWUiOiIiLCJzb3J0X3VybCI6IiIsInllYXJfdXJsIjoiIiwiZmluZF9ydWxlIjoianM6XG4kLnJlcXVpcmUoXCJob21lXCIpLkhvbWUoKTsiLCJzZWFyY2hfdXJsIjoiaHR0cDovL3d3dy4ydDU4LmNvbS9zby8qKi9meXBhZ2UuaHRtbCIsImdyb3VwIjoiI++4j+KDo+KRo+mfs+S5kCIsInNlYXJjaEZpbmQiOiJqczpcbnZhciBkID0gW11cbnZhciBodG1sID0gZmV0Y2goTVlfVVJMKVxubGV0IHBsYXlfbGlzdCA9IHBkZmEoaHRtbCwgXCIucGxheV9saXN0JiZsaVwiKTtcbnBsYXlfbGlzdC5mb3JFYWNoKChzKSA9PiB7XG4gICAgbGV0IHRpdGxlID0gcGRmaChzLCBcIi5uYW1lJiZhJiZUZXh0XCIpLnRyaW0oKTtcbiAgICBsZXQgc29uZ1VybCA9IFwiaHR0cDovL3d3dy4ydDU4LmNvbVwiICsgcGRmaChzLCBcIi5uYW1lJiZhJiZocmVmXCIpO1xuICAgIGQucHVzaCh7XG4gICAgICAgIHRpdGxlOiB0aXRsZSxcbiAgICAgICAgZGVzYzogXCLmrYzmm7JcIixcbiAgICAgICAgdXJsOiBzb25nVXJsICsgJ0BydWxlPWpzOiQucmVxdWlyZShcIm11c2ljXCIpJ1xuICAgIH0pO1xuICAgIGxldCBsaXN0ID0gcGRmYShzLCBcImJvZHkmJmFcIik7XG4gICAgbGlzdC5mb3JFYWNoKCh4KSA9PiB7XG4gICAgICAgIGxldCBocmVmID0gcGRmaCh4LCBcImEmJmhyZWZcIik7XG4gICAgICAgIGlmIChocmVmLmluY2x1ZGVzKFwiL3ZpZGVvL1wiKSkge1xuICAgICAgICAgICAgbGV0IG12VXJsID0gXCJodHRwOi8vd3d3LjJ0NTguY29tXCIgKyBocmVmICsgJC5yZXF1aXJlKFwiaGlrZXI6Ly9wYWdlL3B1YmxpY1wiKS5NVjtcbiAgICAgICAgICAgIGQucHVzaCh7XG4gICAgICAgICAgICAgICAgdGl0bGU6IHRpdGxlICsgXCIgLSBNVlwiLFxuICAgICAgICAgICAgICAgIGRlc2M6IFwiTVZcIixcbiAgICAgICAgICAgICAgICB1cmw6IG12VXJsXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgIH0pO1xufSk7XG5cblxuc2V0UmVzdWx0KGQpIiwiZGV0YWlsX2NvbF90eXBlIjoibW92aWVfMSIsImRldGFpbF9maW5kX3J1bGUiOiIiLCJzZGV0YWlsX2NvbF90eXBlIjoibW92aWVfMSIsInNkZXRhaWxfZmluZF9ydWxlIjoiIiwidWEiOiJtb2JpbGUiLCJwcmVSdWxlIjoiaWYgKHJlcXVlc3QoJ2hpa2VyOi8vaG9tZUDOsScpID09ICdudWxsJykge1xuICAgIGNvbmZpcm0oe1xuICAgICAgICB0aXRsZTogJ+S+nei1luajgOa1iycsXG4gICAgICAgIGNvbnRlbnQ6ICfmo4DmtYvliLDnvLrlsJHlsI/nqIvluo8s6K+35a+85YWlIScsXG4gICAgICAgIGNvbmZpcm06ICgpID0+IHtcbiAgICAgICAgICAgIHJldHVybiBcIua1t+mYlOinhueVjO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KCdyZWQnKTogbGksXFxuICAgICAgICAgICAgcGljOiB0dWJpYW8gKyB0dVtpXSArIFxcXCIucG5nXFxcIixcXG4gICAgICAgICAgICBjb2xfdHlwZTogXFxcImljb25fc21hbGxfM1xcXCIsXFxuICAgICAgICAgICAgdXJsOiAkKFxcXCIjbm9Mb2FkaW5nI1xcXCIpLmxhenlSdWxlKChsaSx1cmwpID0+IHtcXG4gICAgICAgICAgICAgICAgbGV0IGtleXMgPSBsaXN0TXlWYXJLZXlzKCk7XFxuICAgIGZvciAobGV0IGl0IG9mIGtleXMpIHtcXG4gICAgICAgIGNsZWFyTXlWYXIoaXQpO1xcbiAgICB9O1xcbiAgICAgICAgICAgICAgICBwdXRWYXIoXFxcImZlbmxcXFwiLCBsaSk7XFxuICAgICAgICAgICAgICAgIHB1dE15VmFyKFxcXCJ1cmxcXFwiLHVybCk7XFxuICAgICAgICAgICAgICAgIHJlZnJlc2hQYWdlKCk7XFxuICAgICAgICAgICAgICAgIHJldHVybiAnaGlrZXI6Ly9lbXB0eSc7XFxuICAgICAgICAgICAgfSxsaSx1cmwpXFxuICAgICAgICAgICAgfSlcXG4gICAgICAgICAgICB9KVxcbiAgICAgICAgICAgIH1cXG4gICAgZnVuY3Rpb24gc3kodXJsLCBkKSB7XFxuICAgICAgICBsZXQgaHRtbCA9IGZldGNoKHVybClcXG4gICAgICAgIGxldCBMYWIgPSBwZGZhKGh0bWwsJ2JvZHkmJi5sYXl1aS1yb3c6bHQoNCknKTtcXHJcXG4gICAgICAgIExhYi5mb3JFYWNoKCh4KSA9PiB7XFxuICAgICAgICAgICAgZC5wdXNoKHtcXG4gICAgICAgICAgICAgICAgdGl0bGU6IFxcXCLilpAgXFxcIi5mb250Y29sb3IoJyMyMGExNjInKStwZGZoKHgsXFxcImgxJiZUZXh0XFxcIiksXFxuICAgICAgICAgICAgICAgIGNvbF90eXBlOiBcXFwicmljaF90ZXh0XFxcIlxcbiAgICAgICAgICAgIH0pXFxuICAgICAgICAgICAgbGV0IGl0ZW0gPSBwZGZhKHgsICdib2R5JiZsaScpO1xcclxcbiAgICAgICAgICAgIGl0ZW0uZm9yRWFjaCgocykgPT4ge1xcbiAgICAgICAgICAgICAgICBsZXQgaW1nID0gcGRmaChzLFxcXCJpbWcmJnNyY1xcXCIpLnNwbGl0KCd1cmw9JylbMV1cXG4gICAgICAgICAgICAgICAgbGV0IHRpdGxlID0gcGRmaChzLFxcXCIubmFtZSYmVGV4dFxcXCIpXFxuICAgICAgICAgICAgICAgIGxldCB1cmwgPSBcXFwiaHR0cDovL3d3dy4ydDU4LmNvbVxcXCIrcGRmaChzLFxcXCJhJiZocmVmXFxcIilcXG4gICAgICAgICAgICAgICAgbGV0IHN1cmxcXG4gICAgICAgICAgICAgICAgaWYoL3NvbmcvLnRlc3QodXJsKSl7XFxuICAgICAgICAgICAgICAgICAgICBzdXJsID0gdXJsKyQucmVxdWlyZShcXFwiaGlrZXI6Ly9wYWdlL3B1YmxpY1xcXCIpLmxhenlcXG4gICAgICAgICAgICAgICAgfWVsc2UgaWYoL3ZpZGVvLy50ZXN0KHVybCkpe1xcbiAgICAgICAgICAgICAgICAgICAgc3VybD0gdXJsKyQucmVxdWlyZShcXFwiaGlrZXI6Ly9wYWdlL3B1YmxpY1xcXCIpLk1WXFxuICAgICAgICAgICAgICAgIH1lbHNlIGlmKC9saXN0Ly50ZXN0KHVybCkpe1xcbiAgICAgICAgICAgICAgICAgICAgc3VybD0gdXJsLnJlcGxhY2UoLy5odG1sLyxgL2Z5cGFnZS5odG1sYCkrJ0BydWxlPWpzOiQucmVxdWlyZShcXFwicGxheWxpc3RcXFwiKSdcXG4gICAgICAgICAgICAgICAgfWVsc2UgaWYoL3Npbmdlci8udGVzdCh1cmwpKXtcXG4gICAgICAgICAgICAgICAgICAgIHN1cmw9IHVybCsnZnlwYWdlQHJ1bGU9anM6JC5yZXF1aXJlKFxcXCJzaW5nZXJcXFwiKSdcXG4gICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICBcXG4gICAgICAgICAgICAgICAgZC5wdXNoKHtcXG4gICAgICAgICAgICAgICAgICAgIHRpdGxlOnRpdGxlLFxcbiAgICAgICAgICAgICAgICAgICAgdXJsOiBzdXJsLFxcbiAgICAgICAgICAgICAgICAgICAgcGljX3VybDogaW1nLFxcbiAgICAgICAgICAgICAgICAgICAgY29sX3R5cGU6IGltZz9cXFwiY2FyZF9waWNfM1xcXCI6XFxcInRleHRfMVxcXCIsXFxuICAgICAgICAgICAgICAgICAgICBleHRyYTp7XFxuICAgICAgICAgICAgICAgICAgICAgICAgaW5oZXJpdFRpdGxlOiBmYWxzZSxcXG4gICAgICAgICAgICAgICAgICAgICAgICBsb25nQ2xpY2s6W3tcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGl0bGU6XFxcIuatjOabsuivpuaDhVxcXCIsXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGpzOiAkLnRvU3RyaW5nKCh1cmwpID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmKC9zb25nLy50ZXN0KHVybCkpe1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHVybCArJ0BydWxlPWpzOiQucmVxdWlyZShcXFwibXVzaWNcXFwiKSd9XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbHNlIHJldHVybiBcXFwidG9hc3Q6Ly/ov5nkuI3mmK/mrYzmm7JcXFwiXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSx1cmwpXFxuICAgICAgICAgICAgICAgICAgICAgICAgfV1cXG4gICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgfSlcXG4gICAgICAgICAgICB9KVxcbiAgICAgICAgfSlcXG4gICAgfVxcbiAgICBmdW5jdGlvbiBsZWliKHVybCxkLHBhZ2UsdGFnKSB7XFxuICAgIGNvbnN0IOS4i+S4gOmhtS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cXG4gICAgICAgICAgICAgICAgaWYoL3NvbmcvLnRlc3QodXJsKSl7XFxuICAgICAgICAgICAgICAgICAgICBzdXJsID0gdXJsKyQucmVxdWlyZShcXFwiaGlrZXI6Ly9wYWdlL3B1YmxpY1xcXCIpLmxhenlcXG4gICAgICAgICAgICAgICAgfWVsc2UgaWYoL3ZpZGVvLy50ZXN0KHVybCkpe1xcbiAgICAgICAgICAgICAgICAgICAgc3VybD0gdXJsKyQucmVxdWlyZShcXFwiaGlrZXI6Ly9wYWdlL3B1YmxpY1xcXCIpLk1WXFxuICAgICAgICAgICAgICAgIH1lbHNlIGlmKC9saXN0Ly50ZXN0KHVybCkpe1xcbiAgICAgICAgICAgICAgICAgICAgc3VybD0gdXJsLnJlcGxhY2UoLy5odG1sLyxgL2Z5cGFnZS5odG1sYCkrJ0BydWxlPWpzOiQucmVxdWlyZShcXFwicGxheWxpc3RcXFwiKSdcXG4gICAgICAgICAgICAgICAgfWVsc2UgaWYoL3Npbmdlci8udGVzdCh1cmwpKXtcXG4gICAgICAgICAgICAgICAgICAgIHN1cmw9IHVybCsnZnlwYWdlQHJ1bGU9anM6JC5yZXF1aXJlKFxcXCJzaW5nZXJcXFwiKSdcXG4gICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgICAgICAgICAgdGl0bGU6dGl0bGUsXFxuICAgICAgICAgICAgICAgICAgICB1cmw6IHN1cmwsXFxuICAgICAgICAgICAgICAgICAgICBwaWNfdXJsOiBpbWcsXFxuICAgICAgICAgICAgICAgICAgICBjb2xfdHlwZTogaW1nP1xcXCJjYXJkX3BpY18zXFxcIjpcXFwidGV4dF8xXFxcIixcXG4gICAgICAgICAgICAgICAgICAgIGV4dHJhOntcXG4gICAgICAgICAgICAgICAgICAgICAgICBpbmhlcml0VGl0bGU6IGZhbHNlLFxcbiAgICAgICAgICAgICAgICAgICAgICAgIGxvbmdDbGljazpbe1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aXRsZTpcXFwi5q2M5puy6K+m5oOFXFxcIixcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAganM6ICQudG9TdHJpbmcoKHVybCkgPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYoL3NvbmcvLnRlc3QodXJsKSl7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gdXJsICsnQHJ1bGU9anM6JC5yZXF1aXJlKFxcXCJtdXNpY1xcXCIpJ31cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVsc2UgcmV0dXJuIFxcXCJ0b2FzdDovL+i/meS4jeaYr+atjOabslxcXCJcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LHVybClcXG4gICAgICAgICAgICAgICAgICAgICAgICB9XVxcbiAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICB9KSAgIFxcbiAgICB9KVxcbmF1dG9QYWdlKCk7XFxuICAgIH1cXG5mdW5jdGlvbiBsb3ZlKGQpIHtcXG4gICAgLy/mhJ/osKLwn5Sl8J+UpfCflKXlpKfkvaznmoTku6PnoIFcXG4gICAgdmFyIGxhYmVsID0gZ2V0VmFyKFxcXCJsYWJlbFxcXCIpID8gZ2V0VmFyKFxcXCJsYWJlbFxcXCIpIDogXFxcIuatjOabslxcXCI7XFxuICAgIHZhciB1ID0gbGFiZWwgPT0gXFxcIuatjOabslxcXCIgPyAnaGlrZXI6Ly9maWxlcy9ydWxlcy9tb24v54ix5ZCs6Z+z5LmQL211c2ljLnR4dCcgOiAnaGlrZXI6Ly9maWxlcy9ydWxlcy9tb24v54ix5ZCs6Z+z5LmQL2FsYnVtLnR4dCc7XFxuICAgIHZhciBsZW5ndGggPSBKU09OLnBhcnNlKGZldGNoUEModSkgfHwgJ1tdJykubGVuZ3RoXFxuaWYgKE1ZX1BBR0UgPT0gMSkge1xc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ByZXR1cm4gXFxcImhpa2VyOi8vZW1wdHlcXFwiO1xcbn0sdSlcXG5cXG4gICAgfSlcXG59XFxuXFxudmFyIHN0ciA9IHJlYWRGaWxlKHUsIDApO1xcbmlmIChzdHIpIHtcXG4gICAgdmFyIGxpc3QgPSBKU09OLnBhcnNlKHN0cik7XFxuICAgIGxpc3QuZm9yRWFjaCgobGlzdCkgPT4ge1xcbiAgICAgICAgbGV0IHVybCA9IGxpc3Quc3BsaXQoJ0BAJylbMl1cXG4gICAgICAgZC5wdXNoKHtcXG4gICAgICAgICAgICB0aXRsZTogbGlzdC5zcGxpdCgnQEAnKVswXSxcXG4gICAgICAgICAgICBpbWc6IGxpc3Quc3BsaXQoJ0BAJylbMV0sXFxuICAgICAgICAgICAgdXJsOiBsYWJlbCA9PSBcXFwi5q2M5puyXFxcIj91cmwrJC5yZXF1aXJlKFxcXCJoaWtlcjovL3BhZ2UvcHVibGljXFxcIikubGF6eTp1cmwucmVwbGFjZSgvMS8sYGZ5cGFnZWApKydAcnVsZT1qczokLnJlcXVpcmUoXFxcInBsYXlsaXN0XFxcIiknLFxcbiAgICAgICAgICAgIGNvbF90eXBlOiAnY2FyZF9waWNfMycsXFxuICAgICAgICAgICBleHRyYToge1xcbiAgICAgICAgICAgICAgbG9uZ0NsaWNrOiBbe1xcbiAgICAgICAgICAgICAgICAgIHRpdGxlOiAn5Y+W5raI5pS26JePJyxcXG4gICAgICAgICAgICAgICAgICBqczogJC50b1N0cmluZygobGlzdCwgdSkgPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgICB2YXIgZGF0YSA9IEpTT04ucGFyc2UoZmV0Y2hQQyh1KSB8fCAnW10nKTtcXG4gICAgICAgICAgICAgICAgICAgICAgZGF0YSA9IGRhdGEuZmlsdGVyKHggPT4geCAhPSBsaXN0KTtcXG4gICAgICAgICAgICAgICAgICAgICAgd3JpdGVGaWxlKHUsIEpTT04uc3RyaW5naWZ5KGRhdGEpKTtcXG4gICAgICAgICAgICAgICAgICAgICAgcmVmcmVzaFBhZ2UoKTtcXG4gICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFxcXCJoaWtlcjovL2VtcHR5XFxcIjtcXG4gICAgICAgICAgICAgICAgICB9LCBsaXN0LCB1KVxcbiAgICAgICAgICAgICAgfSx7XFxuICAgICAgICAgICAgICAgICAgdGl0bGU6IFxcXCLmn6XnnIvor6bmg4VcXFwiLFxcbiAgICAgICAgICAgICAgICAgIGpzOiAkLnRvU3RyaW5nKCh1cmwsIGxhYmVsKSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgIGxldCBEZXRhaWwgPSBsYWJlbCA9PSBcXFwi5q2M5puyXFxcIj91cmwrJ0BydWxlPWpzOiQucmVxdWlyZShcXFwibXVzaWNcXFwiKSc6dXJsLnJlcGxhY2UoLzEvLGBmeXBhZ2VgKSsnQHJ1bGU9anM6JC5yZXF1aXJlKFxcXCJwbGF5bGlzdFxcXCIpJ1xcbiAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gRGV0YWlsXFxuICAgICAgICAgICAgICAgICAgfSwgdXJsLCBsYWJlbClcXG4gICAgICAgICAgICAgIH1dLFxcbiAgICAgICAgICB9XFxuICAgICAgICB9KTtcXG4gICAgfSk7XFxufVxcbiAgICBcXG59XFxuICAgIGlmIChnZXRWYXIoXFxcImZlbmxcXFwiLFxcXCLpppbpobVcXFwiKSA9PSBcXFwi6aaW6aG1XFxcIikge1xcbiAgICAgICAgbGV0IHVybCA9IGdldE15VmFyKFxcXCJ1cmxcXFwiLGhvc3QpXFxuICAgICAgICAvL2xvZyh1cmwpXFxuICAgICAgICBpZihwYWdlPT0xKXtcXG4gICAgICAgICAgICBzeSh1cmwsIGQpO1xcbiAgICAgICAgICAgIH1cXG4gICAgfSBlbHNlXFxuICAgIGlmIChnZXRWYXIoXFxcImZlbmxcXFwiKSA9PSBcXFwi5o6S6KGMXFxcIikge1xcbiAgICAgICAgbGV0IHVybCA9IGdldE15VmFyKFxcXCJ1cmxcXFwiLGhv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4gICAgICAgICAgICBsaW5lVmlzaWJsZTpmYWxzZVxcbiAgICAgICAgfVxcbiAgICB9LHtcXG4gICAgICAgICAgICAgICAgLy90aXRsZTogcGRmaChodG1sLFxcXCIucGxheV9saXN0JiZoMSYmVGV4dFxcXCIpK3QsXFxuICAgICAgICAgICAgICAgIHRpdGxlOiBwZGZoKGh0bWwsXFxcIi5wbGF5X2xpc3QmJi5wYWdlZGF0YSYmVGV4dFxcXCIpLnNtYWxsKCksXFxuICAgICAgICAgICAgICAgIHBpY191cmw6IGltZyxcXG4gICAgICAgICAgICAgICAgdXJsOiBcXFwidG9hc3Q6Ly9cXFwiK3BkZmgoaHRtbCxcXFwiLnBsYXlfbGlzdCYmLnBhZ2VkYXRhJiZUZXh0XFxcIiksXFxuICAgICAgICAgICAgICAgIGNvbF90eXBlOiBcXFwiaWNvbl9zbWFsbF8zXFxcIlxcbiAgICAgICAgICAgIH0se1xcbiAgICAgICAgICAgICAgICB0aXRsZTogdCxcXG4gICAgICAgICAgICAgICAgcGljX3VybDogcCxcXG4gICAgICAgICAgICAgICAgY29sX3R5cGU6IFxcXCJpY29uX3NtYWxsXzNcXFwiLFxcbiAgICAgICAgICAgICAgICB1cmw6ICQoJyNub0xvYWRpbmcjJykubGF6eVJ1bGUoKG5hbWUpID0+IHtcXG4gICAgICAgICAgICAgICAgdmFyIHN0ciA9IGZldGNoUEMoJ2hpa2VyOi8vZmlsZXMvcnVsZXMvbW9uL+eIseWQrOmfs+S5kC9hbGJ1bS50eHQnKTtcXG4gICAgICAgICAgICAgICAgaWYgKCFzdHIpIHtcXG4gICAgICAgICAgICAgICAgICAgIHZhciBsaXN0ID0gW25hbWVdO1xcbiAgICAgICAgICAgICAgICAgICAgd3JpdGVGaWxlKCdoaWtlcjovL2ZpbGVzL3J1bGVzL21vbi/niLHlkKzpn7PkuZAvYWxidW0udHh0JywgSlNPTi5zdHJpbmdpZnkobGlzdCkpO1xcbiAgICAgICAgICAgICAgICB9IGVsc2Uge1xcbiAgICAgICAgICAgICAgICAgICAgdmFyIGxpc3QgPSBKU09OLnBhcnNlKHN0cik7XFxuICAgICAgICAgICAgICAgICAgICBpZiAobGlzdC5pbmRleE9mKG5hbWUpID09ICctMScpIHtcXG4gICAgICAgICAgICAgICAgICAgICAgIC8vIGxpc3QucHVzaChuYW1lKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICBsaXN0LnVuc2hpZnQobmFtZSk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgd3JpdGVGaWxlKCdoaWtlcjovL2ZpbGVzL3J1bGVzL21vbi/niLHlkKzpn7PkuZAvYWxidW0udHh0JywgSlNPTi5zdHJpbmdpZnkobGlzdCkpO1xcbiAgICAgICAgICAgICAgICAgICAgfWVsc2V7XFxuICAgICAgICAgICAgICAgICAgICAgIHZhciBpbmRleCA9IGxpc3QuaW5kZXhPZihuYW1lKTtcXG4gICAgICAgICAgICAgICAgICAgICAgbGlzdC5zcGxpY2UoaW5kZXgsIDEpO1xcbiAgICAgICAgICAgICAgICAgICAgICB3cml0ZUZpbGUoJ2hpa2VyOi8vZmlsZXMvcnVsZXMvbW9uL+eIseWQrOmfs+S5kC9hbGJ1bS50eHQnLCBKU09OLnN0cmluZ2lmeShsaXN0KSk7XFxuICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICByZWZyZXNoUGFnZShmYWxzZSk7XFxuICAgICAgICAgICAgICAgIHJldHVybiAnaGlrZXI6Ly9lbXB0eSc7XFxuICAgICAgICAgICAgfSwgc3RyKVxcbiAgICAgICAgICAgIH0se1xcbiAgICAgICAgdGl0bGU6IFxcXCLmibnph4/mt7vliqBcXFwiLnNtYWxsKCksXFxuICAgICAgICB1cmw6JCgnI25vTG9hZGluZyMnKS5sYXp5UnVsZSgocGxheV9saXN0LCBpbWcpID0+IHtcXG4gICAgY29uc3QgaGlrZXJQb3AgPSAkLnJlcXVpcmUoXFxcImh0dHA6Ly9oaWtlci5ub2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skLnJlcXVpcmUoXFxcImhpa2VyOi8vcGFnZS9wdWJsaWNcXFwiKS5sYXp5LFxcbiAgICAgICAgICAgICAgICAgICAgcGljX3VybDogaW1nLFxcbiAgICAgICAgICAgICAgICAgICAgY29sX3R5cGU6XFxcImF2YXRhclxcXCIsXFxuICAgICAgICAgICAgICAgICAgICBleHRyYTp7XFxuICAgICAgICAgICAgICAgICAgICAgICAgaW5oZXJpdFRpdGxlOiBmYWxzZSxcXG4gICAgICAgICAgICAgICAgICAgICAgICBsb25nQ2xpY2s6W3tcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGl0bGU6XFxcIuatjOabsuivpuaDhVxcXCIsXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGpzOiAkLnRvU3RyaW5nKCh1cmwpID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiB1cmwgKydAcnVsZT1qczokLnJlcXVpcmUoXFxcIm11c2ljXFxcIiknXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSx1cmwpXFxuICAgICAgICAgICAgICAgICAgICAgICAgfV1cXG4gICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgfSlcXG4gICAgICAgICAgICB9KVxcbnNldFJlc3VsdChkKVwifSx7XCJjb2xfdHlwZVwiOlwibW92aWVfM1wiLFwibmFtZVwiOlwi5q2M5omLXCIsXCJwYXRoXCI6XCJzaW5nZXJcIixcInJ1bGVcIjpcImpzOlxcbmFkZExpc3RlbmVyKFxcXCJvbkNsb3NlXFxcIiwgJC50b1N0cmluZygoKSA9PiB7XFxuICAgICAgICBjbGVhck15VmFyKFxcXCJjdGl0bGVcXFwiKTtcXG4gICAgICAgIGNsZWFyTXlWYXIoXFxcImN1cmxcXFwiKTtcXG59KSk7XFxudmFyIGQgPSBbXVxcbnZhciBodG1sID0gZmV0Y2goTVlfVVJMKVxcbmNvbnN0IH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OiB7XFxuICAgICAgICBncmFkaWVudDogdHJ1ZVxcbiAgICB9XFxufSlcXG52YXIgY2xhID0gcGRmYShodG1sLFxcXCIuaWxpbmdrdV9mbCYmbGlcXFwiKVxcbiAgICBjbGEuZm9yRWFjaCh4ID0+IHtcXG4gICAgICAgIGxldCBjdGl0bGUgPSBwZGZoKHgsXFxcImEmJlRleHRcXFwiKVxcbiAgICAgICAgbGV0IGN1cmwgPSBwZCh4LFxcXCJhJiZocmVmXFxcIixNWV9VUkwpXFxuICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgIHRpdGxlOiBnZXRNeVZhcignY3RpdGxlJywgXFxcIuacgOaWsOatjOabslxcXCIpID09IGN0aXRsZSA/ICfigJzigJzigJ3igJ0nK2N0aXRsZS5mb250Y29sb3IoJ3JlZCcpLnNtYWxsKCk6ICfigJzigJzigJ3igJ0nK2N0aXRsZS5zbWFsbCgpLFxcbiAgICAgICAgICAgIHVybDogJCgnI25vTG9hZGluZyMjbm9IaXN0b3J5IycpLmxhenlSdWxlKChjdGl0bGUsY3VybCkgPT4ge1xcbiAgICAgICAgICAgICAgICBwdXRNeVZhcihcXFwiY3RpdGxlXFxcIiwgY3RpdGxlKTtcXG4gICAgICAgICAgICAgICAgcHV0TXlWYXIoXFxcImN1cmxcXFwiLGN1cmwpO1xcbiAgICAgICAgICAgICAgICByZWZyZXNoUGFnZSgpO1xcbiAgICAgICAgICAgICAgICByZXR1cm4gJ2hpa2VyOi8vZW1wdHknXFxuICAgICAgICAgICAgfSwgY3RpdGxlLGN1cmwpLFxcbiAgICAgICAgICAgIGNvbF90eXBlOiBcXFwiZmxleF9idXR0b25cXFwiXFxuICAgICAgICB9KTtcXG4gICAgfSlcXG4gICAgfVxcbiAgICB2YXIgc3VybCA9IGdldE15VmFyKFxcXCJjdXJsXFxcIixNWV9VUkwpXFxuICAgIC8vbG9nKHN1cmwpXFxuICAgIGlmIChnZXRNeVZhcihcXFwiY3RpdGxlXFxcIixcXFwi5pyA5pa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VlxcbiAgICAgICAgICAgICAgICB9ZWxzZSBpZigvYWxidW0vLnRlc3Qoc3VybCkpe1xcbiAgICAgICAgICAgICAgICAgICAgdXJsPSBzdXJsLnJlcGxhY2UoLy5odG1sLyxgL2Z5cGFnZS5odG1sYCkrJ0BydWxlPWpzOiQucmVxdWlyZShcXFwicGxheWxpc3RcXFwiKSdcXG4gICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgICAgICAgICAgdGl0bGU6JC5yZXF1aXJlKFxcXCJoaWtlcjovL3BhZ2UvcHVibGljXFxcIikuZm9ybWF0U29uZ1RpdGxlKHRpdGxlLGF1dGhvciksXFxuICAgICAgICAgICAgICAgICAgICB1cmw6IHVybCxcXG4gICAgICAgICAgICAgICAgICAgIHBpY191cmw6IGltZz9pbWc6cGljLFxcbiAgICAgICAgICAgICAgICAgICAgY29sX3R5cGU6IGltZz9cXFwiY2FyZF9waWNfM1xcXCI6XFxcImF2YXRhclxcXCIsXFxuICAgICAgICAgICAgICAgICAgICBleHRyYTp7XFxuICAgICAgICAgICAgICAgICAgICAgICAgaW5oZXJpdFRpdGxlOiBmYWxzZSxcXG4gICAgICAgICAgICAgICAgICAgICAgICBsb25nQ2xpY2s6W3tcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGl0bGU6XFxcIuatjOabsuivpuaDhVxcXCIsXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGpzOiAkLnRvU3RyaW5nKChzdXJsKSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZigvc29uZy8udGVzdChzdXJsKSl7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gc3VybCArJ0BydWxlPWpzOiQucmVxdWlyZShcXFwibXVzaWNcXFwiKSd9XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbHNlIHJldHVybiBcXFwidG9hc3Q6Ly/ov5nkuI3mmK/mrY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xcbiAgICAgICAgdGl0bGU6IFRpdGxlLFxcbiAgICAgICAgdXJsOiBNWV9VUkwrJC5yZXF1aXJlKFxcXCJoaWtlcjovL3BhZ2UvcHVibGljXFxcIikubGF6eSxcXG4gICAgICAgIGNvbF90eXBlOiBcXFwiY2FyZF9waWNfM19jZW50ZXJcXFwiLFxcbiAgICAgICAgZXh0cmE6e1xcbiAgICAgICAgICAgIGluaGVyaXRUaXRsZTogZmFsc2VcXG4gICAgICAgIH1cXG4gICAgfSx7XFxuICAgICAgICB1cmw6IFxcXCJ0b2FzdDovL+eCueWHu+WbvueJh+aSreaUvlxcXCIsXFxuICAgICAgICBjb2xfdHlwZTogXFxcImNhcmRfcGljXzNfY2VudGVyXFxcIlxcbiAgICB9LHtcXG4gICAgICAgIHRpdGxlOiBhdXRob3IsXFxuICAgICAgICBkZXNjOiBpbmZvLFxcbiAgICAgICAgcGljX3VybDogc3BpYyxcXG4gICAgICAgIHVybDogc3VybCsnZnlwYWdlQHJ1bGU9anM6JC5yZXF1aXJlKFxcXCJzaW5nZXJcXFwiKScsXFxuICAgICAgICBjb2xfdHlwZTogXFxcImF2YXRhclxcXCJcXG4gICAgfSlcXG4gICAgcGxheV9saXN0LmZvckVhY2goKHgpID0+IHtcXG4gICAgICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgICAgICB0aXRsZTogcGRmaCh4LFxcXCJoMSYmVGV4dFxcXCIpK3QsXFxuICAgICAgICAgICAgICAgIC8vZGVzYzogdCxcXG4gICAgICAgICAgICAgICAgcGljX3VybDogZGpwaWMsXFxuICAgICAgICAgICAgICAgIHVybDogJCgnI25vTG9hZGluZyMnKS5sYXp5UnVsZSgobmFtZSkgPT4ge1xcbiAgICAgICAgICAgICAgICB2YXIgc3RyID0gZmV0Y2hQQygnaGlrZXI6Ly9maWxlcy9ydWxlcy9tb24v54ix5ZCs6Z+z5LmQL211c2ljLnR4dCcpO1xcbiAgICAgICAgICAgICAgICBpZiAoIXN0cikge1xcbiAgICAgICAgICAgICAgICAgICAgdmFyIGxpc3QgPSBbbmFtZV07XFxuICAgICAgICAgICAgICAgICAgICB3cml0ZUZpbGUoJ2hpa2VyOi8vZmlsZXMvcnVsZXMvbW9uL+eIseWQrOmfs+S5kC9tdXNpYy50eHQnLCBKU09OLnN0cmluZ2lmeShsaXN0KSk7XFxuICAgICAgICAgICAgICAgIH0gZWxzZSB7XFxuICAgICAgICAgICAgICAgICAgICB2YXIgbGlzdCA9IEpTT04ucGFyc2Uoc3RyKTtcXG4gICAgICAgICAgICAgICAgICAgIGlmIChsaXN0LmluZGV4T2YobmFtZSkgPT0gJy0xJykge1xcbiAgICAgICAgICAgICAgICAgICAgICAgLy8gbGlzdC5wdXNoKG5hbWUpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIGxpc3QudW5zaGlmdChuYW1lKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICB3cml0ZUZpbGUoJ2hpa2VyOi8vZmlsZXMvcnVsZXMvbW9uL+eIseWQrOmfs+S5kC9tdXNpYy50eHQnLCBKU09OLnN0cmluZ2lmeShsaXN0KSk7XFxuICAgICAgICAgICAgICAgICAgICB9ZWxzZXtcXG4gICAgICAgICAgICAgICAgICAgICAgdmFyIGluZGV4ID0gbGlzdC5pbmRleE9mKG5hbWUpO1xcbiAgICAgICAgICAgICAgICAgICAgICBsaXN0LnNwbGljZShpbmRleCwgMSk7XFxuICAgICAgICAgICAgICAgICAgICAgIHdyaXRlRmlsZSgnaGlrZXI6Ly9maWxlcy9ydWxlcy9tb24v54ix5ZCs6Z+z5LmQL211c2ljLnR4dCcsIEpTT04uc3RyaW5naWZ5KGxpc3QpKTtcXG4gICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgIHJlZnJlc2hQYWdlKGZhbHNlKTtcXG4gICAgICAgICAgICAgICAgcmV0dXJuICdoaWtlcjovL2VtcHR5JztcXG4gICAgICAgICAgICB9LCBzdHIpLFxcbiAgICAgICAgICAgICAgICBjb2xfdHlwZTogXFxcInRleHRfaWNvblxcXCJcXG4gICAgICAgICAgICB9KVxcbiAgICAgICAgICAgIGxldCBpdGVtID0gcGRmYSh4LCAnYm9keSYmbGknKTtcXHJcXG4gICAgICAgICAgICBpdGVtLmZvckVhY2goKHMpID0+IHtcXG4gICAgICAgICAgICAgICAgbGV0IHRpdGxlID0gJ+KAnOKAnOKAneKAnScrcGRmaChzLFxcXCIubmFtZSYmVGV4dFxcXCIpLnNtYWxsKClcXG4gICAgICAgICAgICAgICAgbGV0IHVybCA9IHBkKHMsXFxcImEmJmhyZWZcXFwiKSsnQHJ1bGU9anM6JC5yZXF1aXJlKFxcXCJtdXNpY1xcXCIpJ1xcbiAgICAgICAgICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgICAgICAgICAgdGl0bGU6dGl0bGUsXFxuICAgICAgICAgICAgICAgICAgICB1cmw6IHVybCxcXG4gICAgICAgICAgICAgICAgICAgIC8vcGljX3VybDogZGpwaWMsXFxuICAgICAgICAgICAgICAgICAgICBjb2xfdHlwZTpcXFwidGV4dF8yXFxcIlxcbiAgICAgICAgICAgICAgICB9KVxcbiAgICAgICAgICAgIH0pXFxuICAgICAgICB9KVxcbiQucmVxdWlyZShcXFwiaGlrZXI6Ly9wYWdlL3B1YmxpY1xcXCIpLuWjsOaYjihkKVxcbnNldFJlc3VsdChkKVxcbnNldFBhZ2VUaXRsZShUaXRsZSlcIn1dIiwiaWNvbiI6Imh0dHA6Ly93d3cuMnQ1OC5jb20vZmF2aWNvbi5pY28iLCJwcm94eSI6IiJ9
Add Comment
Please, Sign In to add comment