Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@素白白影视·Q@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi57Sg55m955m95b2x6KeGwrdRIiwiYXV0aG9yIjoi5Y+R57Kq5raC5aKZIiwidXJsIjoiaHR0cHM6Ly93d3cuc3ViYWliYWkuY29tL2Z5QWxsL3BhZ2UvZnlwYWdlO2dldDtVVEYtODt7VXNlci1BZ2VudEBNb3ppbGxhLzUuMCAoV2luZG93cyBOVCAxMC4wKSYmQ29va2llQC5qczpnZXRWYXIoJ3N1YmFpYmFpJGNvb2tpZScpfSIsInZlcnNpb24iOjIsImNvbF90eXBlIjoibW92aWVfMyIsImNsYXNzX25hbWUiOiLlhajpg6gm55S15b2xJuWbveS6pybng63pl6gm6auY5YiGJuaXpemfqSIsImNsYXNzX3VybCI6Im1vdmllX2J0Jm5ldy1tb3ZpZSZtb3ZpZV9idF9zZXJpZXMvZ3VvY2hhbmR5JmhvdC1tb250aCZnZiZtb3ZpZV9idF9zZXJpZXMvcmloYW5keSIsImFyZWFfbmFtZSI6IueUteinhuWJpyblm73kuqcm5pel5YmnJuasp+e+jibmuK/liacm6Z+p5YmnIiwiYXJlYV91cmwiOiJkaWFuc2hpanUmbW92aWVfYnRfc2VyaWVzL2d1b2NoYW5qdSZtb3ZpZV9idF9zZXJpZXMvcmlqdSZtb3ZpZV9idF9zZXJpZXMvb3VtZWlqdSZtb3ZpZV9idF9zZXJpZXMvZ2FuZ2p1Jm1vdmllX2J0X3Nlcmllcy9oYW5qdSIsInNvcnRfbmFtZSI6IuWKqOa8q+WJpybliqjmvKvnlLXlvbEm57qq5b2V54mHJue7vOiJuiIsInllYXJfbmFtZSI6Iuasp+e+jueUteW9sSbms7Dlm73nlLXlvbEm5riv5Y+w55S15b2xJummmea4r+eUteW9sSIsInNvcnRfdXJsIjoibW92aWVfYnRfc2VyaWVzL2RvbmdtYW5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ltZyYmZGF0YS1vcmlnaW5hbCcpLFxuICAgICAgICAgICAgdXJsOiBkZXNjLmluZGV4T2YoJ+mbhicpID4gLTEgP1xuICAgICAgICAgICAgICAgIHVybCA6ICdodHRwczovL3d3dy5zdWJhaWJhaS5jb20vdl9wbGF5LycgKyBiYXNlNjRFbmNvZGUoJ212XycgKyB1cmwubWF0Y2goL1xcZCsvKSArICctbm1fMScpICsgJy5odG1sJyArXG4gICAgICAgICAgICAgICAgJChcIlwiKS5sYXp5UnVsZSgoKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGV2YWwoSlNPTi5wYXJzZShyZXF1ZXN0KCdoaWtlcjovL3BhZ2UveWFuemhlbmc/cnVsZT3ntKDnmb3nmb3lvbHop4bCt1EnKSkucnVsZSk7XG4gICAgICAgICAgICAgICAgICAgIGlucHV0ID0gZmV0Y2goaW5wdXQsIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGhlYWRlcnM6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAnVXNlci1BZ2VudCc6IE1PQklMRV9VQSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAnQ29va2llJzogZ2V0VmFyKCdzdWJhaWJhaSRjb29raWUnKVxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgaWYgKGJ5cGFzcyhpbnB1dCkpIGlucHV0ID0gZmV0Y2goaW5wdXQsIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGhlYWRlcnM6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAnVXNlci1BZ2VudCc6IE1PQklMRV9VQSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAnQ29va2llJzogZ2V0VmFyKCdzdWJhaWJhaSRjb29raWUnKVxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgaW5wdXQgPSBwYXJzZURvbShpbnB1dCwgXCJib2R5JiZzY3JpcHQ6bm90KFtzcmNdKSwyJiZIdG1sXCIpO1xuICAgICAgICAgICAgICAgICAgICBldmFsKGdldENyeXB0b0pTKCkpO1xuICAgICAgICAgICAgICAgICAgICBpbnB1dCA9IGlucHV0Lm1hdGNoKC92YXIuKj9cXClcXCk7L2cpWzBdO1xuICAgICAgICAgICAgICAgICAgICBldmFsKGlucHV0LnJlcGxhY2UoL21kNVxcLi9nLCAnQ3J5cHRvSlNcXC4nKS5yZXBsYWNlKCdldmFsJywgJ3ZhciBkYXRhID0gJykpO1xuICAgICAgICAgICAgICAgICAgICBsZXQgVSA9IGRhdGEuc3BsaXQoJ3VybDogXCInKVsxXS5zcGxpdCgnXCInKVswXS5yZXBsYWNlKCdodHRwczovL3d5JywgJ2h0dHA6Ly93eScpO1xuICAgICAgICAgICAgICAgICAgICBpZiAoZ2V0VmFyKCdzdWJhaWJhaSRsb2NhbCcpID09ICcxJykge1xuICAgICAgICAgICAgICAgICAgICAgICAgdmFyIG0zdTggPSBmZXRjaChVLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaGVhZGVyczoge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAnVXNlci1BZ2VudCc6IFBDX1VBLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAnUmVmZXJlcic6ICdodHRwczovL3d3dy5zdWJhaWJhaS5jb20nXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgICAgICB3cml0ZUZpbGUoJ2hpa2VyOi8vZmlsZXMvZG93bmxvYWQvdG1wL3ZpZGVvLm0zdTgnLCBtM3U4KTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiAnZmlsZTovLy9zdG9yYWdlL2VtdWxhdGVkLzAvQW5kcm9pZC9kYXRhL2NvbS5leGFtcGxlLmhpa2Vydmlldy9maWxlcy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ppZGl8fC5xcnx8LnFifHwucmF0aW5nJiZUZXh0Jyk7XHJcbiAgICB2YXIgdXJsID0gcGFyc2VEb20obGlzdFtqXSwgJ2EmJmhyZWYnKTtcclxuICAgIGQucHVzaCh7XHJcbiAgICAgICAgdGl0bGU6IHBhcnNlRG9tRm9ySHRtbChsaXN0W2pdLCAnaDMmJlRleHQnKSxcclxuICAgICAgICBkZXNjOiBkZXNjLFxyXG4gICAgICAgIGNvbnRlbnQ6IHBhcnNlRG9tRm9ySHRtbChsaXN0W2pdLCAnLmluemh1eSYmVGV4dCcpLFxyXG4gICAgICAgIGltZzogcGFyc2VEb20obGlzdFtqXSwgJ2ltZyYmZGF0YS1vcmlnaW5hbCcpLFxyXG4gICAgICAgIHVybDogZGVzYy5pbmRleE9mKCfpm4YnKSA+IC0xID8gdXJsIDogJ2h0dHBzOi8vd3d3LnN1YmFpYmFpLmNvbS92X3BsYXkvJyArIGJhc2U2NEVuY29kZSgnbXZfJyArIHVybC5tYXRjaCgvXFxkKy8pICsgJy1ubV8xJykgKyAnLmh0bWwnICtcclxuICAgICAgICAgICAgJChcIlwiKS5sYXp5UnVsZSgoKSA9PiB7XHJcbiAgICAgICAgICAgICAgICBldmFsKEpTT04ucGFyc2UocmVxdWVzdCgnaGlrZXI6Ly9wYWdlL3lhbnpoZW5nP3J1bGU957Sg55m955m95b2x6KeGwrdRJykpLnJ1bGUpO1xyXG4gICAgICAgICAgICAgICAgaW5wdXQgPSBmZXRjaChpbnB1dCwge1xyXG4gICAgICAgICAgICAgICAgICAgIGhlYWRlcnM6IHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgJ1VzZXItQWdlbnQnOiBNT0JJTEVfVUEsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICdDb29raWUnOiBnZXRWYXIoJ3N1YmFpYmFpJGNvb2tpZScpXHJcbiAgICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgfSk7XHJcbiAgICAgICAgICAgICAgICBpZiAoYnlwYXNzKGlucHV0KSkgaW5wdXQgPSBmZXRjaChpbnB1dCwge1xyXG4gICAgICAgICAgICAgICAgICAgIGhlYWRlcnM6IHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgJ1VzZXItQWdlbnQnOiBNT0JJTEVfVUEsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICdDb29raWUnOiBnZXRWYXIoJ3N1YmFpYmFpJGNvb2tpZScpXHJcbiAgICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgfSk7XHJcbiAgICAgICAgICAgICAgICBpbnB1dCA9IHBhcnNlRG9tKGlucHV0LCBcImJvZHkmJnNjcmlwdDpub3QoW3NyY10pLDImJkh0bWxcIik7XHJcbiAgICAgICAgICAgICAgICBldmFsKGdldENyeXB0b0pTKCkpO1xyXG4gICAgICAgICAgICAgICAgaW5wdXQgPSBpbnB1dC5tYXRjaCgvdmFyLio/XFwpXFwpOy9nKVswXTtcclxuICAgICAgICAgICAgICAgIGV2YWwoaW5wdXQucmVwbGFjZSgvbWQ1XFwuL2csICdDcnlwdG9KUy4nKS5yZXBsYWNlKCdldmFsJywgJ3ZhciBkYXRhID0gJykpO1xyXG4gICAgICAgICAgICAgICAgbGV0IFUgPSBkYXRhLnNwbGl0KCd1cmw6IFwiJylbMV0uc3BsaXQoJ1wiJylbMF0ucmVwbGFjZSgnaHR0cHM6Ly93eScsICdodHRwOi8vd3knKTtcclxuICAgICAgICAgICAgICAgIGlmIChnZXRWYXIoJ3N1YmFpYmFpJGxvY2FsJykgPT0gJzEnKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgdmFyIG0zdTggPSBmZXRjaChVLCB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGhlYWRlcnM6IHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICdVc2VyLUFnZW50JzogUENfVUEsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAnUmVmZXJlcic6ICdodHRwczovL3d3dy5zdWJhaWJhaS5jb20nXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgICAgICB9KTtcclxuICAgICAgICAgICAgICAgICAgICB3cml0ZUZpbGUoJ2hpa2VyOi8vZmlsZXMvZG93bmxvYWQvdG1wL3ZpZGVvLm0zdTgnLCBtM3U4KTtcclxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gJ2ZpbGU6Ly8vc3RvcmFnZS9lbXVsYXRlZC8wL0FuZHJvaWQvZGF0YS9jb20uZXhhbXBsZS5oaWtlcnZpZXcvZmlsZXMvRG9jdW1lbnRzL2Rvd25sb2FkL3RtcC92aWRlby5tM3U4J1xyXG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcclxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gVSArICc7e1JlZmVyZXJAaHR0cHM6Ly93d3cuc3ViYWliYWkuY29tfSdcclxuICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgfSlcclxuICAgIH0pO1xyXG59XHJcbnNldFJlc3VsdChkKTsiLCJkZXRhaWxfY29sX3R5cGUiOiJ0ZXh0XzIiLCJkZXRhaWxfZmluZF9ydWxlIjoianM6XG52YXIgcmVzID0ge307XG52YXIgaXRlbXMgPSBbXTtcbmV2YWwoSlNPTi5wYXJzZShyZXF1ZXN0KCdoaWtlcjovL3BhZ2UveWFuemhlbmcnKSkucnVsZSk7XG5sZXQgaHRtbCA9IGdldFJlc0NvZGUoKTtcbmlmIChieXBhc3MoaHRtbCkpXG4gICAgaHRtbCA9IHJlcXVlc3QoZ2V0VXJsKCksIHtcbiAgICAgICAgaGVhZGVyczoge1xuICAgICAgICAgICAgJ0Nvb2tpZSc6IGdldFZhcignc3ViYWliYWkkY29va2llJylcbiAgICAgICAgfVxuICAgIH0pO1xudmFyIGxhenkgPSAkKFwiXCIpLmxhenlSdWxlKCgpID0+IHtcbiAgICB0cnkge1xuICAgICAgICBldmFsKEpTT04ucGFyc2UocmVxdWVzdCgnaGlrZXI6Ly9wYW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