xiaomianao666

小程序:音乐

Jan 22nd, 2024
3,605
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@音乐@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi6Z+z5LmQIiwiYXV0aG9yIjoi57yY5YiGIiwidXJsIjoiaGlrZXI6Ly9lbXB0eSMjZnlwYWdlQC0xQCo1MEAjIyIsInZlcnNpb24iOjIwMjQwMTA0LCJjb2xfdHlwZSI6ImNhcmRfcGljXzMiLCJjbGFzc19uYW1lIjoiIiwidHlwZSI6Im11c2ljIiwiY2xhc3NfdXJsIjoiIiwiYXJlYV9uYW1lIjoiIiwiYXJlYV91cmwiOiIiLCJzb3J0X25hbWUiOiIiLCJ5ZWFyX25hbWUiOiIiLCJzb3J0X3VybCI6IiIsInllYXJfdXJsIjoiIiwiZmluZF9ydWxlIjoianM6XG52YXIgZCA9IFtdO1xucGFnZSA9IE1ZX1VSTC5zcGxpdChcIiMjXCIpWzFdO1xuaWYgKHBhZ2UgPT0gMDApIHtcbiQucmVxdWlyZShcImhpa2VyOi8vcGFnZS/mm7TmlrBcIilcbiAgICBsZXQgdGFicyA9IHsgICAgICBcbiAgICAgICAgXCLmrYzljZVcIjogXCJodHRwczovL2hpa2VyZmFucy5jb20vdHViaWFvL3EvMTY3LnBuZ1wiLFxuICAgICAgICBcIuaOkuihjFwiOiBcImh0dHBzOi8vaGlrZXJmYW5zLmNvbS90dWJpYW8vcS8xNjgucG5nXCJcbiAgICB9XG4gICAgT2JqZWN0LmVudHJpZXModGFicykuZm9yRWFjaChpdGVtID0+IHtcbiAgICAgICAgcHV0TXlWYXIoJ+mAieS4reminOiJsicsICcjM0NFNjhFJyk7XG4gICAgICAgIHh5ID0nPGI+PHNwYW4gc3R5bGU9XCJjb2xvcjogIzFhYWQxOVwiPicgKyBpdGVtWzBdICsgJzwvc3Bhbj48L2I+JztcblxuICAgICAgICBkLnB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Jkcz0nICsgZ2V0UGFyYW0oJ2tleScpICsgJyZ0eXBlPTEwJm9mZnNldD0nK3BhZ2U7XG4gICAgICAgICAgICB2YXIgbGlzdDEgPSBKU09OLnBhcnNlKHJlcXVlc3QodXJsLCB7fSkpLnJlc3VsdC5zb25ncztcbiAgICAgICAgICAgIHZhciBsaXN0MiA9IEpTT04ucGFyc2UocmVxdWVzdCh1cmwxLCB7fSkpLnJlc3VsdC5hbGJ1bXM7XG4gICAgICAgICAgICBpZiAobmFtZSA9PSAn5Y2V5puyJykge1xuICAgICAgICAgICAgICAgIGZvciAodmFyIGogaW4gbGlzdDEpIHtcbiAgICAgICAgICAgICAgICAgICAgaWYgKGxpc3QxW2pdLmZlZSAhPSAxKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRpdGxlOiBsaXN0MVtqXS5uYW1lLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBpY191cmw6IGxpc3QxW2pdLmFydGlzdHNbMF0uaW1nMXYxVXJsLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRlc2M6IGxpc3QxW2pdLmFydGlzdHNbMF0ubmFtZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB1cmw6IGxpc3QxW2pdLmlkICsgbGF6eVxuICAgICAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIGZvciAodmFyIGogaW4gbGlzdDIpIHtcbiAgICAgICAgICAgICAgICAgICAgZC5wdXNoKHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRpdGxlOiBsaXN0MltqXS5uYW1lLFxuICAgICAgICAgICAgICAgICAgICAgICAgcGljX3VybDogbGlzdDJbal0ucGljVXJsLFxuICAgICAgICAgICAgICAgICAgICAgICAgZGVzYzogbGlzdDJbal0uYXJ0aXN0Lm5hbWUsXG4gICAgICAgICAgICAgICAgICAgICAgICB1cmw6ICdoaWtlcjovL2VtcHR5IyMnICsgbGlzdDJbal0uaWQgKyAkKCcnKS5ydWxlKCgpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgZCA9IFtdO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBpZCA9IE1ZX1VSTCA9IGdldFVybCgpLnNwbGl0KFwiIyNcIilbMV1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgbGF6eSA9ICQoJycpLmxhenlSdWxlKCgpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHVybCA9ICdodHRwczovL211c2ljLjE2My5jb20vc29uZy9tZWRpYS9vdXRlci91cmw/aWQ9JyArIGlucHV0ICsgJyNpc011c2ljPXRydWUjJ1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgbHJjID0gJ2h0dHBzOi8vYXBpLmx1Y2FzLXR5LnNwYWNlL2x5cmljP2lkPScgKyBpbnB1dFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgbHJjID0gSlNPTi5wYXJzZShyZXF1ZXN0KGxyYykpLmxyYy5seXJpY1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gSlNPTi5zdHJpbmdpZnkoe1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdXJsczogW3VybF0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBseXJpYzogbHJjXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgbGlzdCA9IEpTT04ucGFyc2UocmVxdWVzdCgnaHR0cHM6Ly9tdXNpYy5saXlwLmNjL2FwaS9hbGJ1bT9pZD0nICsgaWQpKS5zb25ncztcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb3IgKGxldCBqID0gMDsgaiA8IGxpc3QubGVuZ3RoOyBqKyspIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbGV0IHRpdGxlID0gbGlzdFtqXS5uYW1lO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZXQgZGVzYyA9IGxpc3Rbal0uYXJbMF0ubmFtZTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbGV0IGltZyA9IGxpc3Rbal0uYWwucGljVXJsO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZXQgdXJsID0gbGlzdFtqXS5pZCArIGxhenlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZC5wdXNoKHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRpdGxlOiB0aXRsZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRlc2M6IGRlc2MsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpbWc6IGltZyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbF90eXBlOiBcImF2YXRhclwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdXJsOiB1cmxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgc2V0UmVzdWx0KGQpXG4gICAgICAgICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBzZXRSZXN1bHQoZCk7XG4gICAgICAgIH0sIHNvdXJjZS5uYW1lLCBsYXp5KVxuICAgIH07XG59KVxuc2V0UmVzdWx0KFt7XG4gICAgdGl0bGU6IFwi54K55oiR5byA5aeL6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AgICAgICAgICB1cGRhdGVJdGVtKGdldFZhcign57Si5byVJywgZmlyc3QpLCB7XG4gICAgICAgICAgICAgICAgICAgIHRpdGxlOiBnZXRWYXIoJ+e0ouW8lScsIGZpcnN0KVxuICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgdXBkYXRlSXRlbSh0aXRsZSwge1xuICAgICAgICAgICAgICAgICAgICB0aXRsZTogeHlcbiAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgIHB1dFZhcign57Si5byVJywgdGl0bGUpXG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIHJldHVybiAnZG93bmxvYWQ6Ly8nICsgZ2V0VmFyKCfmkq3mlL7pk77mjqUnKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHJldHVybiAnaGlrZXI6Ly9lbXB0eSc7XG4gICAgICAgIH0sIHRpdGxlLCBmaXJzdCwgeHkpLFxuICAgICAgICBleHRyYToge1xuICAgICAgICAgICAgaWQ6IHRpdGxlXG4gICAgICAgIH0sXG4gICAgfSk7XG5cbiAgICDkvKDovpPliJfooagucHVzaCh7XG4gICAgICAgIOWwgemdojogaW1nLFxuICAgICAgICDmm7LlkI06IHRpdGxlLFxuICAgICAgICDmrYzmiYs6IGRlc2MsXG4gICAgICAgIOWcsOWdgDogdXJsLFxuICAgIH0pXG59XG5cbiAgICDkvKDovpPliJfooaggPSBzdG9yYWdlMC5nZXRWYXIoJ+e8k+WtmOaVsOaNricsIFtdKS5jb25jYXQo5Lyg6L6T5YiX6KGoKVxuICAgIHN0b3JhZ2UwLnB1dFZhcign57yT5a2Y5pWw5o2uJywg5Lyg6L6T5YiX6KGoKVxuICAgIHN0b3JhZ2UwLnB1dFZhcign5pWw5o2u5qCh5a+5JywgbGlzdClcbn1cbmFkZExpc3RlbmVyKCdvbkNsb3NlJywgJC50b1N0cmluZygoKSA9PiB7XG4gICAgY2xlYXJWYXIoJ+agt+W8jycpO1xuICAgIGNsZW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NzL2hpa2VydWxlL3J1bGVsaXN0Lmpzb24/aWQ9NTc3MCdcXG5sZXQgbmV3VmVyc2lvbjtcXG5sZXQgbXlWZXJzaW9uID0gTVlfUlVMRS52ZXJzaW9uO1xcbnRyeSB7XFxuICAgIG5ld1ZlcnNpb24gPSBKU09OLnBhcnNlKGZldGNoQ2FjaGUodXBsaW5rLCAyNCwge1xcbiAgICAgICAgdGltZW91dDogMTAwMFxcbiAgICB9KSkudmVyc2lvbjtcXG4gICAgbG9nKG5ld1ZlcnNpb24pXFxufSBjYXRjaCAoZSkge1xcbiAgICBuZXdWZXJzaW9uID0gbXlWZXJzaW9uO1xcbn1cXG5sZXQgaXNVcGRhdGUgPSBOdW1iZXIobmV3VmVyc2lvbikgPiBOdW1iZXIobXlWZXJzaW9uKTtcXG5pZiAoaXNVcGRhdGUpIHtcXG4gICAgbG9nKCfmnInmlrDniYjmnKw6JyArIG5ld1ZlcnNpb24gKyAnLOW9k+WJjTonICsgbXlWZXJzaW9uKTtcXG4gICAgY29uZmlybSh7XFxuICAgICAgICB0aXRsZTogJ+abtOaWsOaPkOekuicsXFxuICAgICAgICBjb250ZW50OiAn5qOA5rWL5Yiw5L2g55qE6KeE5YiZ54mI5pys5bCP5LqO5pyN5Yqh5Zmo54mI5pys77yM5piv5ZCm56uL5Y2z5pu05paw77yfJyxcXG4gICAgICAgIGNvbmZpcm06ICQudG9TdHJpbmcoKHVwbGluaykgPT4ge1xcbiAgICAgICAgICAgIGxvZyh1cGxpbmspXFxuICAgICAgICAgICAgcmV0dXJuIGDmtbfpmJTop4bnlYzpppbpobXpopHpgZPop4TliJnvv6Vob21lX3J1bGVfdXJs77+lJHt1cGxpbmt9YFxcbiAgICAgICAgfSwgdXBsaW5rKSxcXG4gICAgfSlcXG59XCJ9XSIsImljb24iOiJodHRwczovL211c2ljLnFpZXIyMjIuY29tL2ltZy9pY29ucy9mYXZpY29uLTMyeDMyLnBuZyIsInByb3h5IjoiIn0=
Add Comment
Please, Sign In to add comment