xiaomianao666

小程序:长风音乐🎶

Oct 21st, 2024
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@长风音乐🎶@eyJmaXJzdEhlYWRlciI6ImNsYXNzIiwibGFzdF9jaGFwdGVyX3J1bGUiOiIiLCJ0aXRsZSI6IumVv+mjjumfs+S5kPCfjrYiLCJhdXRob3IiOiLnvJjliIYiLCJ1cmwiOiJoaWtlcjovL2VtcHR5IyNodHRwczovL2NmeXkuY2NmeUFsbD9zcz0jI2Z5cGFnZSIsInZlcnNpb24iOjIwMjQwMjAzLCJjb2xfdHlwZSI6ImNhcmRfcGljXzMiLCJjbGFzc19uYW1lIjoi6Z+z5LmQJueUteinhibmrYzljZUm5q2M5omLJk1WJueUteWPsCIsInR5cGUiOiJtdXNpYyIsImNsYXNzX3VybCI6Ii95aW55dWUvJi9kcy8mL21wMy9rZ2dkLnBocCYvbXAzL2dzLnBocCYvbXAzLyMmL2ZtLyIsImFyZWFfbmFtZSI6IuaKlumfsyblv6vmiYsmWVkm5YWt6Ze05oi/JuengOiJsibkuZDll6gm5Y2D5biGJuS5iOS5iCbmlpfpsbwm576a6JCMJuWTjuexsybmmKDlrqImOTXnp4Am5aWH56eAJiIsImFyZWFfdXJsIjoiL0NmL2R5emJqc29uLnBocCYvQ2Yva3MucGhwJi9DZi9ZWS5waHAmL0NmLzZmLnBocCYvQ2YveHMucGhwJi9DZi9saC5waHAmL0NmL3FmLnBocCYvQ2YvbW0ucGhwJi9DZi9keXUucGhwJi9DZi9sbS5waHAmL0NmL2FtLnBocCYvQ2YvaWsucGhwJi9DZi85NXgucGhwJi9DZi9xeC5waHAmIiwic29ydF9uYW1lIjoiIiwieWVhcl9uYW1lIjoi5Zeo56eAJuaIkeengCblk5Tlk6km5Lq65Lq6Jui/hembtybnjKvmkq0m5rWq5pKtJuiKseakkibooZfllLEm5pif5YWJJkNDJktLJk5PVybmo4noirHns5YiLCJzb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ogXCJodHRwczovL2NmeXkuY2MvbXAzL2t3LnBocD9zcz0qKlwiXG59LCB7XG4gICAgXCJuYW1lXCI6IFwi6YW354uX6Z+z5LmQXCIsXG4gICAgXCJ1cmxcIjogXCJodHRwczovL2NmeXkuY2MvbXAzL2tnLnBocD9zcz0qKlwiXG59LCB7XG4gICAgXCJuYW1lXCI6IFwi572R5piT6Z+z5LmQXCIsXG4gICAgXCJ1cmxcIjogXCJodHRwczovL2NmeXkuY2MvbXAzLzE2My5waHA/c3M9KipcIlxufSwge1xuICAgIFwibmFtZVwiOiBcIk1WXCIsXG4gICAgXCJ1cmxcIjogXCJodHRwczovL2NmeXkuY2MvbXA0L2tnL2NmLnBocD9zcz0qKlwiXG5cbn1dXG5sZXQgcnVsZXMgPSBjb25maWcubWFwKChzb3VyY2UpID0+IHtcbiAgICByZXR1cm4ge1xuICAgICAgICB0aXRsZTogc291cmNlLm5hbWUsXG4gICAgICAgIHNlYXJjaF91cmw6ICdoaWtlcjovL2VtcHR5P2tleT0qKiZwPWZ5cGFnZScsXG4gICAgICAgIHNlYXJjaEZpbmQ6ICdqczonICsgJC50b1N0cmluZygobmFtZSwgdXJsLCBsYXp5KSA9PiB7XG4gICAgICAgICAgICBsZXQgZCA9IFtdO1xuICAgICAgICAgICAga2V5ID0gZ2V0UGFyYW0oJ2tleScpO1xuICAgICAgICAgICAgdmFyIHVybCA9IHVybC5yZXBsYWNlKC9cXCpcXCovLCBrZXkpO1xuICAgICAgICAgICAgaWYgKG5hbWUgPT09ICdNVicpIHtcbiAgICAgICAgICAgICAgICB2YXIgbGlzdCA9IHBkZmEocmVxdWVzdCh1cmwsIHt9KSwgJ2JvZHkmJi5qYycpXG4gICAgICAgICAgICAgICAgbGlzdC5mb3JFYWNoKGRhdGEgPT4ge1xuICAgICAgICAgICAgICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgICAgICAgICAgICAgdGl0bGU6IHBkZmgoZGF0YSwgJ2EmJnRpdGxlJyksXG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBkZXNjOiBkYXRhLmF1dGhvcixcbiAgICAgICAgICAgICAgICAgICAgICAgIGltZzogcGRmaChkYXRhLCAnaW1nJiZzcmMnKSArICdAUmVmZXJlcj0nLFxuICAgICAgICAgICAgICAgICAgICAgICAgdXJsOiAnaHR0cHM6Ly9jZnl5LmNjL21wNC9rZy8nICsgcGRmaChkYXRhLCAnYSYmaHJlZicpICsgbGF6eSxcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbF90eXBlOiAnJyxcbiAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICB2YXIgbGlzdCA9IEpTT04ucGFyc2UocmVxdWVzdCh1cmwsIHt9KSkuRGF0YVxuICAgICAgICAgICAgICAgIHRyeSB7XG4gICAgICAgICAgICAgICAgICAgIGxpc3QuZm9yRWFjaChkYXRhID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHZhciBwaWMgPSBkYXRhLnBpY1xuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKCEvaHR0cC8udGVzdChwaWMpKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHBpYyA9ICdodHRwczonICsgcGljXG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRpdGxlOiBkYXRhLnRpdGxlLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRlc2M6IGRhdGEuYXV0aG9yLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGltZzogcGljICsgJ0BSZWZlcmVyPScsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdXJsOiBkYXRhLnVybCArICQoXCJcIikubGF6eVJ1bGUoKGxyYykgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gSlNPTi5zdHJpbmdpZnkoe1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdXJsczogW2lucHV0XSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGx5cmljOiBscmNcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LCBkYXRhLmxyYyksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY29sX3R5cGU6ICcnLFxuICAgICAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICB9IGNhdGNoIChlKSB7fVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgc2V0UmVzdWx0KGQpO1xuICAgICAgICB9LCBzb3VyY2UubmFtZSwgc291cmNlLnVybCwgbGF6eSlcbiAgICB9O1xufSlcbnNldFJlc3VsdChbe1xuICAgIHRpdGxlOiBcIueCueaIkeW8gOWni+iBmuaQnFwiLFxuICAgIHVybDogXCJoaWtlcjovL3NlYXJjaD9zPVwiICsgZ2V0UGFyYW0oXCJrZXlcIiksXG4gICAgZXh0cmE6IHtcbiAgICAgICAgcnVsZXM6ICQudG9TdHJpbmcoKHJ1bGVzKSA9PiB7XG4gICAgICAgICAgICByZXR1cm4gcnVsZXNcbiAgICAgICAgfSwgcnVsZXMpXG4gICAgfVxufV0pIiwiZGV0YWlsX2NvbF90eXBlIjoiY2FyZF9waWNfMyIsImRldGFpbF9maW5kX3J1bGUiOiJqczpcbnZhciBkID0gW107XG5odG1sID0gZ2V0UmVzQ29kZSgpO1xuaWYgKE1ZX1BBR0UgPT0gMSkge1xuICAgIHZhciBhcnIgPSBbXCLphbfmiJHpn7PkuZBcIiwgXCLnvZHmmJPpn7PkuZBcIiwgXCLphbfni5fpn7PkuZBcIl1cbiAgICBhcnIuZm9yRWFjaChpdGVtID0+IHtcbiAgICAgICAgeHkgPSAn4oCY4oCY4oCZ4oCZPGI+PH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nkge1xuICAgIGxpc3QuZm9yRWFjaChkYXRhID0+IHtcbiAgICAgICAgdmFyIHBpYyA9IGRhdGEucGljXG4gICAgICAgIGlmICghL2h0dHAvLnRlc3QocGljKSkge1xuICAgICAgICAgICAgdmFyIHBpYyA9ICdodHRwczonICsgcGljXG4gICAgICAgIH1cbiAgICAgICAgZC5wdXNoKHtcbiAgICAgICAgICAgIHRpdGxlOiBkYXRhLnRpdGxlLFxuICAgICAgICAgICAgZGVzYzogZGF0YS5hdXRob3IsXG4gICAgICAgICAgICBpbWc6IHBpYyArICdAUmVmZXJlcj0nLFxuICAgICAgICAgICAgdXJsOiBkYXRhLnVybCArICQoXCJcIikubGF6eVJ1bGUoKGxyYykgPT4ge1xuICAgICAgICAgICAgICAgIGlmICgvXFwvMTYzXFwvLy50ZXN0KGlucHV0KSkge1xuICAgICAgICAgICAgICAgICAgICB2YXIgbHJjID0gcmVxdWVzdChscmMsIHt9KS5yZXBsYWNlKC9cXFsvZywgJ1xcblsnKS5yZXBsYWNlKC9bXFxzXFxTXSo/XFxbLywgJ1snKS5yZXBsYWNlKC9bXFxzXFxTXSpcXD4vLCAnJyk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIHJldHVybiBKU09OLnN0cmluZ2lmeSh7XG4gICAgICAgICAgICAgICAgICAgIHVybHM6IFtpbnB1dF0sXG4gICAgICAgICAgICAgICAgICAgIGx5cmljOiBscmNcbiAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgfSwgZGF0YS5scmMpLFxuICAgICAgICAgICAgY29sX3R5cGU6ICcnLFxuICAgICAgICB9KVxuICAgIH0pXG59IGNhdGNoIChlKSB7fVxuTVlfUEFHRSA9PSAxID8gc2V0UHJlUmVzdWx0KGQpIDogc2V0UmVzdWx0KGQpO1xuZGVsZXRlSXRlbUJ5Q2xzKCdsb2FkaW5nX2dpZicpOyIsInNkZXRhaWxfY29sX3R5cGUiOiJtb3ZpZV8xIiwic2RldGFpbF9maW5kX3J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gICAgICAgICDmg4XmhJ86ICcyODM2J1xcbiAgICAgICAgIH0sIHtcXG4gICAgICAgICAgICAg6Iie6LmIOiAnMjcyNidcXG4gICAgICAgICB9LCB7XFxuICAgICAgICAgICAgIOaIt+WkljogJzI3NDInXFxuICAgICAgICAgfV0uZm9yRWFjaChpdGVtID0+IHtcXG4gICAgICAgICAgICAgdGl0bGUgPSBPYmplY3Qua2V5cyhpdGVtKVswXTtcXG4gICAgICAgICAgICAgaWQgPSBPYmplY3QudmFsdWVzKGl0ZW0pWzBdO1xcbiAgICAgICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgICAgICAgdGl0bGU6IGNvbG9yKGlkLCBnZXRNeVZhcign5oqW6Z+zJywgJzI3MDcnKSwgdGl0bGUpLFxcbiAgICAgICAgICAgICAgICAgdXJsOiAkKCcjbm9Mb2FkaW5nIycpLmxhenlSdWxlKChpZCkgPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgIHB1dE15VmFyKCfmipbpn7MnLCBpZClcXG4gICAgICAgICAgICAgICAgICAgICByZWZyZXNoUGFnZShmYWxzZSlcXG4gICAgICAgICAgICAgICAgICAgICByZXR1cm4gJ2hpa2VyOi8vZW1wdHknXFxuICAgICAgICAgICAgICAgICB9LCBpZCksXFxuICAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ3Njcm9sbF9idXR0b24nXFxuICAgICAgICAgICAgIH0pXFxuICAgICAgICAgfSlcXG4gICAgIH1cXG4gICAgIGxldCBsaXN0ID0gSlNPTi5wYXJzZShmZXRjaChNWV9VUkwgKyBnZXRNeVZhcign5oqW6Z+zJywgJzI3MDcnKSkpLkRhdGE7XFxubG9nKGxpc3RbMF0pXFxuICAgICBsaXN0LmZvckVhY2goaXRlbSA9PiB7XFxuICAgICAgICAgZC5wdXNoKHtcXG4gICAgICAgICAgICAgdGl0bGU6IGl0ZW0uanMsXFxuICAgICAgICAgICAgIGRlc2M6ICfop4LkvJfwn5KDOicraXRlbS5neixcXG4gICAgICAgICAgICAgaW1nOiBpdGVtLnRwLFxcbiAgICAgICAgICAgICB1cmw6ICQoKS5sYXp5UnVsZSgoaW5wdXQpID0+IHtcXG4gICAgICAgICAgICAgICAgIHJldHVybiBKU09OLnN0cmluZ2lmeSh7XFxuICAgICAgICAgICAgICAgICAgICAgbmFtZXM6IFsnZmx2JywgJ2hscyddLFxcbiAgICAgICAgICAgICAgICAgICAgIHVybHM6IFtpbnB1dC5mbHYsIGlucHV0Lmhsc11cXG4gICAgICAgICAgICAgICAgIH0pXFxuICAgICAgICAgICAgIH0sIGl0ZW0pLFxcbiAgICAgICAgICAgICBjb2xfdHlwZTogJ21vdmllXzInXFxuICAgICAgICAgfSlcXG4gICAgIH0pXFxuIH0gZWxzZVxcbiBpZiAoTVlfVVJMLmluY2x1ZGVzKCdZWScpKSB7XFxuICAgICAgICAgZC5wdXNoKHtcXG4gICAgICAgICAgICAgY29sX3R5cGU6ICdibGFua19ibG9jaydcXG4gICAgICAgICB9KTtcXG4gICAgICAgICBsZXQgYmplY3QgPSBbe1xcbiAgICAgICAgICAgICDpn7PkuZA6ICdodHRwczovL3d3dy55eS5jb20vbW9yZS9wYWdlLmFjdGlvbj9tb2R1bGVJZD0zMDgmcGFnZT0xJmJpej1zaW5nJnN1YkJpej1pZHgmcGFnZVNpemU9MzAnXFxuICAgICAgICAgfSwge1xcbiAgICAgICAgICAgICDohLHlj6Pnp4A6ICdodHRwczovL3d3dy55eS5jb20vbW9yZS9wYWdlLmFjdGlvbj9iaXo9dGFsayZzdWJCaXo9aWR4JnBhZ2U9MSZtb2R1bGVJZD0zMjgmcGFnZVNpemU9MzAnXFxuICAgICAgICAgfSwge1xcbiAgICAgICAgICAgICDoiJ7ouYg6ICdodHRwczovL3d3dy55eS5jb20vbW9yZS9wYWdlLmFjdGlvbj9iaXo9ZGFuY2Umc3ViQml6PWlkeCZwYWdlPTEmbW9kdWxlSWQ9MzEzJnBhZ2VTaXplPTMwJ1xcbiAgICAgICAgIH0sIHtcXG4gICA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mtfYmxvY2snXFxuICAgICAgICAgfSk7XFxuYmplY3RzLmZvckVhY2goaXRlbSA9PiB7XFxuICAgICAgICAgICAgIHRpdGxlID0gT2JqZWN0LmtleXMoaXRlbSlbMF07XFxuICAgICAgICAgICAgIGlkID0gT2JqZWN0LnZhbHVlcyhpdGVtKVswXTtcXG4gICAgICAgICAgICAgZC5wdXNoKHtcXG4gICAgICAgICAgICAgICAgIHRpdGxlOiBjb2xvcihpZCwgZ2V0TXlWYXIoJ3l5JywgYmplY3RbMF0u6Z+z5LmQKSwgdGl0bGUpLFxcbiAgICAgICAgICAgICAgICAgdXJsOiAkKCcjbm9Mb2FkaW5nIycpLmxhenlSdWxlKChpZCkgPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgIHB1dE15VmFyKCd5eScsIGlkKVxcbiAgICAgICAgICAgICAgICAgICAgIHJlZnJlc2hQYWdlKGZhbHNlKVxcbiAgICAgICAgICAgICAgICAgICAgIHJldHVybiAnaGlrZXI6Ly9lbXB0eSdcXG4gICAgICAgICAgICAgICAgIH0sIGlkKSxcXG4gICAgICAgICAgICAgICAgIGNvbF90eXBlOiAnc2Nyb2xsX2J1dHRvbidcXG4gICAgICAgICAgICAgfSlcXG4gICAgICAgICB9KVxcbiAgICAgfVxcblxcbiAgICAgeXkgPSBnZXRNeVZhcigneXknLCBiamVjdFswXS7pn7PkuZApLnJlcGxhY2UoJ3BhZ2U9MScsJ3BhZ2U9JytNWV9QQUdFKTtcXG4gICAgIGxldCBsaXN0ID0gSlNPTi5wYXJzZShmZXRjaCh5eSkpLmRhdGEuZGF0YTtcXG5cXG4gICAgIGxpc3QuZm9yRWFjaChpdGVtID0+IHtcXG4gICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgICB0aXRsZTogaXRlbS5kZXNjLFxcbiAgICAgICAgICAgICBkZXNjOiAn8J+UpScraXRlbS51c2VycyxcXG4gICAgICAgICAgICAgaW1nOiBpdGVtLnRodW1iLFxcbiAgICAgICAgICAgICB1cmw6ICdodHRwczovL2NmeXkuY2MvYXBpL3l5LycgKyBpdGVtLnNpZCArICcubTN1OCcgKyBsYXp5LFxcbiAgICAgICAgICAgICBjb2xfdHlwZTogJ21vdmllXzInXFxuICAgICAgICAgfSlcXG4gICAgIH0pXFxuIH0gZWxzZVxcbiBpZiAoTVlfUEFHRSA9PSAxKSB7XFxuICAgICB0cnkge1xcbiAgICAgICAgIGxldCBsaXN0ID0gSlNPTi5wYXJzZShmZXRjaChNWV9VUkwpKTtcXG4gICAgICAgICBsaXN0LmZvckVhY2goaXRlbSA9PiB7XFxuICAgICAgICAgICAgIGQucHVzaCh7XFxuICAgICAgICAgICAgICAgICB0aXRsZTogaXRlbS51c2VybmFtZSxcXG4gICAgICAgICAgICAgICAgIGltZzogaXRlbS5waWMsXFxuICAgICAgICAgICAgICAgICB1cmw6IE1ZX0hPTUUgKyAnL2NmLzYvJyArIGl0ZW0ucmlkICsgJy5mbHYnICsgbGF6eSxcXG4gICAgICAgICAgICAgICAgIGNvbF90eXBlOiAnbW92aWVfMidcXG4gICAgICAgICAgICAgfSlcXG4gICAgICAgICB9KVxcbiAgICAgfSBjYXRjaCAoZSkge31cXG5cXG4gICAgIGZ1bmN0aW9uIOmAmueUqChNWV9VUkwpIHtcXG4gICAgICAgICBpZiAoTVlfVVJMLmluY2x1ZGVzKCdrcy5waHAnKSkge1xcbiAgICAgICAgICAgICBpZiAoTVlfUEFHRSA9PSAxKSB7XFxuICAgICAgICAgICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgICAgICAgICAgIGNvbF90eXBlOiAnYmxhbmtfYmxvY2snXFxuICAgICAgICAgICAgICAgICB9KTtcXG4gICAgICAgICAgICAgICAgIFt7XFxuICAgICAgICAgICAgICAgICAgICAg6aKc5YC8OiAnMTAwMDAwNidcXG4gICAgICAgICAgICAgICAgIH0sIHtcXG4gICAgICAgICAgICAgICAgICAgICDmiY3oibo6ICcxMDAwMDA0J1xcbiAgICAgICAgICAgICAgICAgfSwge1xcbiAgICAgICAgICAgICAgICAgICAgIOmfs+S5kDogJzEwMDAwMDMnXFxuICAgICAgICAgICAgICAgICB9LCB7XFxuICAgICAgICAgICAgICAgICAgICAg5oOF5oSfOiAnMTAwMDAwNydcXG4gICAgICAgICAgICAgICAgIH0sIHtcXG4gICAgICAgICAgICAgICAgICAgICDoiJ7ouYg6ICcxMDAwMDAyJ1xcbiAgICAgICAgICAgICAgICAgfSwge1xcbiAgICAgICAgICAgICAgICAgICAgIOiEseWPo+engDogJzEwMDAwMDUnXFxuICAgICAgICAgICAgICAgICB9XS5mb3JFYWNoKGl0ZW0gPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgIHRpdGxlID0gT2JqZWN0LmtleXMoaXRlbSlbMF07XFxuICAgICAgICAgICAgICAgICAgICAgaWQgPSBPYmplY3QudmFsdWVzKGl0ZW0pWzBdO1xcbiAgICAgICAgICAgICAgICAgICAgIGQucHVzaCh7XFxuICAgICAgICAgICAgICAgICAgICAgICAgIHRpdGxlOiBjb2xvcihpZCwgZ2V0TXlWYXIoJ+W/q+aJiycsICcxMDAwMDA2JyksIHRpdGxlKSxcXG4gICAgICAgICAgICAgICAgICAgICAgICAgdXJsOiAkKCcjbm9Mb2FkaW5nIycpLmxhenlSdWxlKChpZCkgPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcHV0TXlWYXIoJ+W/q+aJiycsIGlkKVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVmcmVzaFBhZ2UoZmFsc2UpXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gJ2hpa2VyOi8vZW1wdHknXFxuICAgICAgICAgICAgICAgICAgICAgICAgIH0sIGlkKSxcXG4gICAgICAgICAgICAgICAgICAgICAgICAgY29sX3R5cGU6ICdzY3JvbGxfYnV0dG9uJ1xcbiAgICAgICAgICAgICAgICAgICAgIH0pXFxuICAgICAgICAgICAgICAgICB9KVxcbiAgICAgICAgICAgICB9XFxuICAgICAgICAg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ldHVybiAnaGlrZXI6Ly9lbXB0eSdcXG4gICAgICAgICAgICB9LCBkdXJsKSxcXG4gICAgICAgICAgICBjb2xfdHlwZTogJ3Njcm9sbF9idXR0b24nXFxuICAgICAgICB9KVxcbiAgICB9KVxcbiAgICBkLnB1c2goe1xcbiAgICAgICAgY29sX3R5cGU6ICdibGFua19ibG9jaydcXG4gICAgfSlcXG4gICAgbGlzdDIuZm9yRWFjaChpdGVtID0+IHtcXG4gICAgICAgIHZhciB0aXRsZSA9IHBkZmgoaXRlbSwgJ1RleHQnKTtcXG4gICAgICAgIHZhciBkdXJsID0gcGRmaChpdGVtLCAnb3B0aW9uJiZ2YWx1ZScpO1xcbiAgICAgICAgZC5wdXNoKHtcXG4gICAgICAgICAgICB0aXRsZTogY29sb3IoZHVybCwgZ2V0TXlWYXIoJ+eUteWPsCcpLCB0aXRsZSksXFxuICAgICAgICAgICAgdXJsOiAkKCcjbm9Mb2FkaW5nIycpLmxhenlSdWxlKCh1cmwpID0+IHtcXG4gICAgICAgICAgICAgICAgcHV0TXlWYXIoJ+eUteWPsCcsIHVybClcXG4gICAgICAgICAgICAgICAgcmVmcmVzaFBhZ2UoZmFsc2UpXFxuICAgICAgICAgICAgICAgIHJldHVybiAnaGlrZXI6Ly9lbXB0eSdcXG4gICAgICAgICAgICB9LCBkdXJsKSxcXG4gICAgICAgICAgICBjb2xfdHlwZTogJ3Njcm9sbF9idXR0b24nXFxuICAgICAgICB9KVxcbiAgICB9KVxcblxcbiAgICB1cmwgPSBNWV9IT01FICsgJy9mbS9xdC5waHAnICsgZ2V0TXlWYXIoJ+eUteWPsCcsICc/Zm09NDA3Jyk7XFxuICAgIGxpc3QgPSBKU09OLnBhcnNlKGZldGNoKHVybCkpLkRhdGE7XFxuICAgIGxpc3QuZm9yRWFjaChpdGVtID0+IHtcXG4gICAgICAgIGQucHVzaCh7XFxuICAgICAgICAgICAgdGl0bGU6IGl0ZW0udGl0bGUsXFxuICAgICAgICAgICAgLy9kZXNjOiB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LkRhdGE7XFxuaWYobGlzdCA9PSAnJykge1xcbiAgICAgICAgdmFyIGxpc3QgPSBKU09OLnBhcnNlKHJlcXVlc3QoJ2h0dHBzOi8vY2Z5eS5jYy9tcDQvcXEvanNvbi5waHAnKSkuRGF0YTtcXG59XFxubGlzdC5mb3JFYWNoKGRhdGEgPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgICAgIHZhciBwaWMgPSBkYXRhLnRwXFxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKCEvaHR0cC8udGVzdChwaWMpKSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBwaWMgPSAnaHR0cHM6JyArIHBpY1xcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aXRsZTogZGF0YS50eCxcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZGVzYzogZGF0YS5zYyxcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaW1nOiBwaWMgKyAnQFJlZmVyZXI9JyxcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdXJsOiBNWV9IT01FKycvQ2YvdnEvJytkYXRhLmlkKycubXA0JysgbGF6eSxcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY29sX3R5cGU6ICcnLFxcbiAgICAgICAgICAgICAgICAgICAgICAgIH0pXFxuICAgICAgICAgICAgICAgICAgICB9KSAgICAgICAgXFxuICAgICAgICBicmVha1xcbiAgICBjYXNlICfnvZHmmJMnOlxcbiAgICAgICAgdmFyIGxpc3QgPSByZXF1ZXN0KCdodHRwczovL2NmeXkuY2Mvam0vP3VybD1odHRwOi8vbXVzaWMuMTYzLmNvbS9hcGkvY2xvdWRzZWFyY2gvcGM/cz0nICsgc2ouc3BsaXQoXFxcIj1cXFwiKVsxXSArICcmdHlwZT0xMDE0Jm9mZnNldD0wJnRvdGFsPXRydWUmbGltaXQ9MjAmSlNPTmNhbGxiYWNrPT8nLCB7fSlcXG4gICAgICAgdmFyIGxpc3QgPSBKU09OLnBhcnNlKGxpc3QubWF0Y2goL1xcXFwoKC4qKVxcXFwpLylbMV0pLnJlc3VsdC52aWRlb3NcXG5saXN0LmZvckVhY2goZGF0YSA9PiB7ICAgICAgICAgICAgICAgICAgICAgICAgXFxuICAgICAgICAgICAgICAgICAgICAgICAgZC5wdXNoKHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGl0bGU6IGRhdGEudGl0bGUsXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRlc2M6IGRhdGEuY3JlYXRvci51c2VyTmFtZSxcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaW1nOiBkYXRhLmNvdmVyVXJsICsgJ0BSZWZlcmVyPScsXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHVybDogTVlfSE9NRSsnL0NmLzE2My8nK2RhdGEudmlkKycubXA0JysgbGF6eSxcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY29sX3R5cGU6ICcnLFxcbiAgICAgICAgICAgICAgICAgICAgICAgIH0pXFxuICAgICAgICAgICAgICAgICAgICB9KSAgICAgICBcXG4gICAgICAgIGJyZWFrXFxuICAgIGNhc2UgJ+WTlOWTqSc6XFxuICAgICAgICB2YXIgbGlzdCA9IHJlcXVlc3QoJ2h0dHBzOi8vY2Z5eS5jYy9tcDQvYnpqc29uLnBocD9wPTEmc3M9JyArIHNqLnNwbGl0KFxcXCI9XFxcIilbMV0sIHt9KVxcbiAgICAgICB2YXIgbGlzdCA9IEpTT04ucGFyc2UobGlzdCkuZGF0YS5yZXN1bHRcXG5saXN0LmZvckVhY2goZGF0YSA9PiB7ICAgICAgICAgICAgICAgICAgICAgICAgXFxuICAgICAgICAgICAgICAgICAgICAgICAgZC5wdXNoKHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGl0bGU6IGRhdGEudGl0bGUucmVwbGFjZSgnZW0gY2xhc3M9XFxcImtleXdvcmRcXFwiPicsJyAnKS5yZXBsYWNlKCc8L2VtPicsJyAnKSxcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZGVzYzogZGF0YS5kdXJhdGlvbixcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaW1nOiAnaHR0cHM6JyArIGRhdGEucGljICsgJ0BSZWZlcmVyPScsXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHVybDogTVlfSE9NRSsnL0NmL2J6LycrZGF0YS5pZCsnLm1wNCcrIGxhenksXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbF90eXBlOiAnJyxcXG4gICAgICAgICAgICAgICAgICAgICAgICB9KVxcbiAgICAgICAgICAgICAgICAgICAgfSkgICAgICAgXFxuICAgICAgICBicmVhayAgICBcXG59XFxuaWYobW9kZSA9PSAn6YW35oiRJyB8fCBtb2RlID09ICfphbfni5cnKSB7XFxubGlzdC5mb3JFYWNoKGRhdGEgPT4ge1xcbiAgICBkLnB1c2goe1xcbiAgICAgICAgdGl0bGU6IHBkZmgoZGF0YSwgJ2EmJnRpdGxlJyksXFxuICAgICAgICAvLyBkZXNjOiBkYXRhLmF1dGhvcixcXG4gICAgICAgIGltZzogcGRmaChkYXRhLCAnaW1nJiZzcmMnKSArICdAUmVmZXJlcj0nLFxcbiAgICAgICAgdXJsOiBNWV9IT01FICsgJy9tcDQva2cvJyArIHBkZmgoZGF0YSwgJ2EmJmhyZWYnKSArIGxhenksXFxuICAgICAgICBjb2xfdHlwZTogJycsXFxuICAgIH0pXFxufSlcXG59XCJ9LHtcImNvbF90eXBlXCI6XCJhdmF0YXJcIixcIm5hbWVcIjpcIuatjOWNlVwiLFwicGF0aFwiOlwiZ2RcIixcInJ1bGVcIjpcInZhciBodG1sID0gcmVxdWVzdChNWV9VUkwsIHt9KVxcbnZhciBsaXN0ID0gcGRmYShodG1sLCAnYm9keSYmLmpjJylcXG50cnkge1xcbiAgICBsaXN0LmZvckVhY2goZGF0YSA9PiB7XFxuICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgIHRpdGxlOiBwZGZoKGRhdGEsICdhJiZUZXh0JyksXFxuICAgICAgICAgICAgdXJsOiBNWV9IT01FICsgJy9tcDMva2cucGhwP3NzPScgKyBwZGZoKGRhdGEsICdhJiZUZXh0JykgKyAkKCcnKS5ydWxlKCgpID0+IHtcXG4gICAgICAgICAgICAgICAgdmFyIGQgPSBbXTtcXG4gICAgICAgICAgICAgICAgJC5yZXF1aXJlKFxcXCJMb2FkaW5nXFxcIikuTG9hZGluZygpXFxuICAgICAgICAgICAgICAgIHRyeSB7XFxuICAgICAgICAgICAgICAgICAgICB2YXIgbGlzdCA9IEpTT04ucGFyc2UocmVxdWVzdChNWV9VUkwsIHt9KSkuRGF0YTtcXG4gICAgICAgICAgICAgICAgfSBjYXRjaCAoZSkge1xcbiAgICAgICAgICAgICAgICAgICAgdmFyIGxpc3QgPSBldmFsKHJlcXVlc3QoTVlfVVJMLCB7fSkubWF0Y2goL1xcXCJEYXRhXFxcIjogKFxcXFxbW1xcXFxzXFxcXFNdKlxcXFxdKS8pWzFdKTtcXG4gICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICB0cnkge1xcbiAgICAgICAgICAgICAgICAgICAgbGlzdC5mb3JFYWNoKGRhdGEgPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgICAgIHZhciBwaWMgPSBkYXRhLnBpY1xcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmICghL2h0dHAvLnRlc3QocGljKSkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgcGljID0gJ2h0dHBzOicgKyBwaWNcXG4gICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgZC5wdXNoKHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGl0bGU6IGRhdGEudGl0bGUsXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRlc2M6IGRhdGEuYXV0aG9yLFxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpbWc6IHBpYyArICdAUmVmZXJlcj0nLFxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB1cmw6IGRhdGEudXJsICsgJChcXFwiXFxcIikubGF6eVJ1bGUoKGxyYykgPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKC9cXFxcLzE2M1xcXFwvLy50ZXN0KGlucHV0KSkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBscmMgPSByZXF1ZXN0KGxyYywge30pLnJlcGxhY2UoL1xcXFxbL2csICdcXFxcblsnKS5yZXBsYWNlKC9bXFxcXHNcXFxcU10qP1xcXFxbLywgJ1snKS5yZXBsYWNlKC9bXFxcXHNcXFxcU10qXFxcXD4vLCAnJyk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gSlNPTi5zdHJpbmdpZnkoe1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHVybHM6IFtpbnB1dF0sXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbHlyaWM6IGxyY1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSlcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSwgZGF0YS5scmMpLFxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ2F2YXRhcicsXFxuICAgICAgICAgICAgICAgICAgICAgICAgfSlcXG4gICAgICAgICAgICAgICAgICAgIH0pXFxuICAgICAgICAgICAgICAgIH0gY2F0Y2ggKGUpIHt9XFxuTVlfUEFHRSA9PSAxID8gc2V0UHJlUmVzdWx0KGQpIDogc2V0UmVzdWx0KGQpO1xcbmRlbGV0ZUl0ZW1CeUNscygnbG9hZGluZ19naWYnKTtcXG5cXG4gICAgICAgIC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AgICAgICAgZC5wdXNoKHtcXG4gICAgICAgICAgICB0aXRsZTogZGF0YS50aXRsZSxcXG4gICAgICAgICAgICBkZXNjOiBkYXRhLmF1dGhvcixcXG4gICAgICAgICAgICBpbWc6IHBpYyArICdAUmVmZXJlcj0nLFxcbiAgICAgICAgICAgIHVybDogZGF0YS51cmwgKyAkKFxcXCJcXFwiKS5sYXp5UnVsZSgobHJjKSA9PiB7XFxuICAgICAgICAgICAgICAgIGlmICgvXFxcXC8xNjNcXFxcLy8udGVzdChpbnB1dCkpIHtcXG4gICAgICAgICAgICAgICAgICAgIHZhciBscmMgPSByZXF1ZXN0KGxyYywge30pLnJlcGxhY2UoL1xcXFxbL2csICdcXFxcblsnKS5yZXBsYWNlKC9bXFxcXHNcXFxcU10qP1xcXFxbLywgJ1snKS5yZXBsYWNlKC9bXFxcXHNcXFxcU10qXFxcXD4vLCAnJylcXG4gICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICByZXR1cm4gSlNPTi5zdHJpbmdpZnkoe1xcbiAgICAgICAgICAgICAgICAgICAgdXJsczogW2lucHV0XSxcXG4gICAgICAgICAgICAgICAgICAgIGx5cmljOiBscmNcXG4gICAgICAgICAgICAgICAgfSlcXG4gICAgICAgICAgICB9LCBkYXRhLmxyYyksXFxuICAgICAgICAgICAgY29sX3R5cGU6ICcnLFxcbiAgICAgICAgfSlcXG4gICAgfSlcXG59IGNhdGNoIChlKSB7fVwifSx7XCJjb2xfdHlwZVwiOlwibW92aWVfM1wiLFwibmFtZVwiOlwiTG9hZGluZ1wiLFwicGF0aFwiOlwiTG9hZGluZ1wiLFwicnVsZVwiOlwiZnVuY3Rpb24gTG9hZGluZygpIHtcXG4gICAgdmFyIGQgPSBbXVxcbiAgICBkLnB1c2goe1xcbiAgICAgICAgaW1nOiBcXFwiaHR0cHM6Ly9ra2ltZ3MueWlzb3UuY29tL2ltcz9rdD11cmwmYXQ9b3JpJmtleT1hSFIwY0RvdkwzTnpMbU56Wkc0dWJt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