Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@星辰影院🐯@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi5pif6L6w5b2x6Zmi8J+QryIsImF1dGhvciI6IumAkOmjjuiAhTIwMjEwOTI4IiwidXJsIjoiaHR0cDovL3d3dy40MHliLmNvbS9meUFsbC9pbmRleGZ5cGFnZS5odG1sW2ZpcnN0UGFnZT1odHRwOi8vd3d3LjQweWIuY29tL2Z5QWxsL2luZGV4Lmh0bWxdIiwidmVyc2lvbiI6OSwiY29sX3R5cGUiOiJtb3ZpZV8zIiwiY2xhc3NfbmFtZSI6IueUteW9sSbnlLXop4bliacm5Yqo5ryrJue7vOiJuiIsInR5cGUiOiJ2aWRlbyIsImNsYXNzX3VybCI6ImRpYW55aW5nJmRpYW5zaGlqdSZkb25nbWFuJnpvbmd5aSIsImFyZWFfbmFtZSI6IiIsImFyZWFfdXJsIjoiIiwic29ydF9uYW1lIjoiIiwieWVhcl9uYW1lIjoiIiwic29ydF91cmwiOiIiLCJ5ZWFyX3VybCI6IiIsImZpbmRfcnVsZSI6ImpzOlxyXG52YXIgcmVzID0ge307XHJcbnZhciBkID0gW107XG50cnl7XG52YXIgbGlzdCA9IHBhcnNlRG9tRm9yQXJyYXkoZ2V0UmVzQ29kZSgpLCAnLnN0dWktdm9kbGlzdCYmbGknKTsvL+WIl+ihqFxyXG5mb3IgKHZhciBqIGluIGxpc3QpIHtcclxuICBkLnB1c2goe1xyXG4gICAgICAgdGl0bGU6IHBhcnNlRG9tRm9ySHRtbChsaXN0W2pdLCAnYSYmdGl0bGUnKSwvL+agh+mimFxyXG4gICAgICAgZGVzYzogcGFyc2VEb21Gb3JIdG1sKGxpc3Rbal0sICcnKSsnICcrcGFyc2VEb21Gb3JIdG1sKGxpc3Rbal0sICcucGljLXRleHQmJlRleHQnKSwvL+WPjOmHjeaPj+i/sFxyXG4gICAgICAg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L3IgcGxheWVyXy4qPz0oLio/KTwvKVsxXSk7XG4gICAgdmFyIGpzdXJsID0gcGxheWVyLnVybDtcbiAgICBpZiAocGxheWVyLmVuY3J5cHQgPT0gJzEnKSB7XG4gICAgICAgIHZhciBqc3VybCA9IHVuZXNjYXBlKGpzdXJsKTtcbiAgICB9IGVsc2UgaWYgKHBsYXllci5lbmNyeXB0ID09ICcyJykge1xuICAgICAgICB2YXIganN1cmwgPSB1bmVzY2FwZShiYXNlNjREZWNvZGUoanN1cmwpKTtcbiAgICB9IGVsc2Uge1xuICAgICAgICBqc3VybFxuICAgIH07XG4gICAgdmFyIGZyb20gPSBwbGF5ZXIuZnJvbTtcbiAgICBpZiAoanN1cmwuc2VhcmNoKC9tM3U4fG1wNC8pID4gLTEpIHtcbiAgICAgICAgdmFyIHZpZGVvID0ganN1cmxcbiAgICB9IGVsc2Uge1xuICAgICAgICB2YXIgcGxheSA9IGlucHV0O1xuICAgICAgICBzaG93TG9hZGluZyhcIue9kemhteWXheaOouS4rSzor7fnqI3lkI4uLi5cIik7XG4gICAgICAgIHZhciB2aWRlbyA9ICd4NVJ1bGU6Ly8nICsgcGxheSArICdAJyArICQudG9TdHJpbmcoKCkgPT4ge1xuICAgICAgICAgICAgdmFyIHVybHMgPSBfZ2V0VXJscygpXG4gICAgICAgICAgICBmb3IgKHZhciBpIGluIHVybHMpIHtcbiAgICAgICAgICAgICAgICBpZiAoIXVybHNbaV0uaW5jbHVkZXMoXCJ2PVwiKSAmJiAhdXJsc1tpXS5pbmNsdWRlcyhcInVybD1cIikgJiYgdXJsc1tpXS5tYXRjaCgvXFwubXA0fFxcLm0zdTgvKSkge1xuICAgICAgICAgICAgICAgICAgICAvL2Z5X2JyaWRnZV9hcHAubG9nKHVybHNbaV0pXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiB1cmxzW2ldO1xuICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAodXJsc1tpXS5tYXRjaCgvXFwuZmx2LykpIHtcbiAgICAgICAgICAgICAgICAgICAgLy9meV9icmlkZ2VfYXBwLmxvZyh1cmxzW2ldKVxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gdXJsc1tpXSArICc7e1JlZmVyZXJAaHR0cHM6Ly93d3cuYmlsaWJpbGkuY29tLyYmVXNlci1BZ2VudEBNb3ppbGxhLzUuMH0nO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfSlcbiAgICB9XG4gICAgcmV0dXJuIHZpZGVvXG59KTsgXG5cblxuLy/nur/ot6/lkI3liJfooajnmoTlrprkvY1cbnZhciBhcnRzID0gcGFyc2VEb21Gb3JBcnJheShodG1sLCAnYm9keSYmLnN0dWktcGFubmVsX19oZWFkOmhhcygubW9yZSknKTtcblxuLy/nur/ot6/lkI3liJfooajlkI3np7DnmoTlrprkvY1cbnZhciB0YWJzID0gW107XG5mb3IgKHZhciBpIGluIGFydHMpIHtcbiAgICB0YWJzLnB1c2gocGFyc2VEb21Gb3JIdG1sKGFydHNbaV0sICdoMyYmVGV4dCcpLnJlcGxhY2UoJ+6Yr8KgJywnJykpXG59XG5cbi8v5pKt5pS+5YiX6KGo55qE5YiX6KGo55qE5a6a5L2NXG52YXIgY29udHMgPSBwYXJzZURvbUZvckFycmF5KGh0bWwsICdib2R5JiYuc3R1aS1jb250ZW50X19wbGF5bGlzdCcpO1xudmFyIGxpc3RzID0gW107XG5mb3IgKHZhciBpIGluIGNvbnRzKSB7XG4gICAgbGlzdHMucHVzaChwYXJzZURvbUZvckFycmF5KGNvbnRzW2ldLCAnYm9keSYmYScpKVxufVxuXG4vL+agh+mimFxudmFyIHRpdGxlID0gcGFyc2VEb21Gb3JIdG1sKGh0bWwsICdoMSYmVGV4dCcpO1xuXG52YXIg5a+85ryUID0gcGFyc2VEb21Gb3JIdG1sKGh0bWwsICdib2R5JiZwLDEmJlRleHQnKS5yZXBsYWNlKC9cXC8vZywnICcpO1xuXG52YXIg5Li75ryUID0gcGFyc2VEb21Gb3J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