Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:二级页面详情¥page_detail¥精品采集@@eyJkYXRhIjoie1wiYXNzb2NpYXRlZE1vZGVsc01hcEZvckpvaW5UYWJsZVwiOnt9LFwiYXNzb2NpYXRlZE1vZGVsc01hcFdpdGhGS1wiOnt9LFwiYXNzb2NpYXRlZE1vZGVsc01hcFdpdGhvdXRGS1wiOnt9LFwiZmllbGRzVG9TZXRUb0RlZmF1bHRcIjpbXSxcImdtdE1vZGlmaWVkXCI6MCxcImlkXCI6MCxcImxhc3RfY2hhcHRlcl9ydWxlXCI6XCJcIixcImxpc3RUb0NsZWFyQXNzb2NpYXRlZEZLXCI6W10sXCJsaXN0VG9DbGVhclNlbGZGS1wiOltdLFwicGFnZUxpc3RcIjpbe1wiY29sX3R5cGVcIjpcIm1vdmllXzNcIixcIm5hbWVcIjpcIumFjee9ruWPguaVsFwiLFwicGF0aFwiOlwiY29uZmlnXCIsXCJydWxlXCI6XCJqczpcXG4kLmV4cG9ydHMudmVyc2lvbiA9IDg7XCJ9LHtcImNvbF90eXBlXCI6XCJtb3ZpZV8zXCIsXCJuYW1lXCI6XCLkupHlj6Pku6Tlr7zlhaVcIixcInBhdGhcIjpcImltcG9ydFwiLFwicnVsZVwiOlwianM6XFxuZnVuY3Rpb24gY2xvdWRpbXBvcnQoKSB7XFxuICAgIGxldCBKWUNvZGUgPSBmZXRjaChcXFwiaGlrZXI6Ly9ob21lQOiBmuW9sVxcXCIpO1xcbiAgICBpZiAoSllDb2RlKSB7XFxuICAgICAgICB3cml0ZUZpbGUoXFxcImhpa2VyOi8vZmlsZXMvX2NhY2hlL2p1eWluZzIvY2xvdWRpbXBvcnQudHh0XFxcIiwgaW5wdXQpO1xcbiAgICAgICAgcmV0dXJuIFxcXCJoaWtlcjovL3BhZ2UvaW1wb3J0Q29uZmlybSNmdWxsVGhlbWUjI25vUmVjb3JkSGlzdG9yeSMjbm9IaXN0b3J5Iz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vp3otZblupMnXSwgXFxcIuaMh+WumuiBmuW9seS7o+eggeiOt+WPluaWueW8j1xcXCIpLnNlbGVjdCgoKSA9PiB7XFxuICAgICAgICAgICAgaWYoTVlfSU5ERVg9PTApe1xcbiAgICAgICAgICAgICAgICByZXR1cm4gXFxcInRvYXN0Oi8v5re75Yqg5a6M5pyJ5pWI55qEZ2l0aHVi5Yqg6YCf5Luj55CG5ZCO6L+U5Zue5Yi35pawXFxcIjtcXG4gICAgICAgICAgICB9ZWxzZSBpZihNWV9JTkRFWD09MCl7XFxuICAgICAgICAgICAgICAgIHJldHVybiAkKGdldEl0ZW0oJ+S+nei1licsICcnKSwgXFxcIuaMh+WumuiBmuW9seS7o+eggeS7k+WcsOWdgFxcXCIpLmlucHV0KCgpID0+IHtcXG4gICAgICAgICAgICAgICAgICAgIGlucHV0ID0gaW5wdXQucmVwbGFjZSgvXFxcXHMrL2csICcnKTtcXG4gICAgICAgICAgICAgICAgICAgIGlmKCFpbnB1dC5zdGFydHNXaXRoKCdodHRwJykpe1xcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBcXFwidG9hc3Q6Ly/ovpPlhaXmnInor69cXFwiO1xcbiAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgc2V0SXRlbSgn5L6d6LWWJywgaW5wdXQpO1xcbiAgICAgICAgICAgICAgICAgICAgcmVmcmVzaFBhZ2UoKTtcXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBcXFwidG9hc3Q6Ly/lt7Lorr7nva5cXFwiO1xcbiAgICAgICAgICAgICAgICB9KVxcbiAgICAgICAgICAgIH1lbHNle1xcbiAgICAgICAgICAgICAgICB0b2FzdChcXFwi6L+b5YWl5LiL6L296ZO+5o6l77yM5a+85YWl5a6M5oiQ5ZCO6L+U5Zue5Yi35pawXFxcIik7XFxuICAgICAgICAgICAgICAgIHJldHVybiBcXFwiaHR0cHM6Ly9zcmM0ODU5Nzk2Mi5sYW56b3VvLmNvbS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IHNyY0hvbWUgPSBnZXRJdGVtKCfkvp3otZYnLCAnJyk7XFxuICAgIGlmICghc3JjSG9tZSkge1xcbiAgICAgICAgLy/ov5znqIvkvp3otZbntKLlvJXmlofku7bku6PnkIblnLDlnYDliJfooahcXG4gICAgICAgIGxldCBnaHByb3h5ID0gJC5yZXF1aXJlKCdnaHByb3h5JykuZ2V0cHJveHkoKTtcXG4gICAgICAgIGlmKGdocHJveHkubGVuZ3RoPT0wKXtcXG4gICAgICAgICAgICBnaHByb3h5LnB1c2goXFxcIlxcXCIpO1xcbiAgICAgICAgfVxcbiAgICAgICAgZm9yIChsZXQgaSA9IDA7IGkgPCBnaHByb3h5Lmxlbmd0aDsgaSsrKSB7XFxuICAgICAgICAgICAgdHJ5IHsgLy/ov5znqIvkvp3otZbntKLlvJVcXG4gICAgICAgICAgICAgICAgcmVxdWlyZShnaHByb3h5W2ldICsgJ2h0dHBzOi8vcmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbS9zcmM0ODU5Nzk2Mi9oay9tYXN0ZXIvSnlSZXF1aXJlLmpzJywge1xcbiAgICAgICAgICAgICAgICAgICAgdGltZW91dDogMzAwMFxcbiAgICAgICAgICAgICAgICB9KTtcXG4gICAgICAgICAgICAgICAgaWYgKHJlbHlmaWxlKSB7XFxuICAgICAgICAgICAgICAgICAgICBzcmNIb21lID0gcmVseWZpbGUuaW5jbHVkZXMoJ3Jhdy5naXRodWInKSA/IGdocHJveHlbaV0gKyByZWx5ZmlsZSA6IHJlbHlmaWxlO1xcbiAgICAgICAgICAgICAgICAgICAgc2V0SXRlbSgn5L6d6LWWJywgc3JjSG9tZSk7XFxuICAgICAgICAgICAgICAgICAgICBicmVhaztcXG4gICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgIH0gY2F0Y2ggKGUpIHtcXG4gICAgICAgICAgICAgICAgJC5yZXF1aXJlKCdnaHByb3h5Jykuc2V0cHJveHkoZ2hwcm94eVtpXSwgMCk7XFxuICAgICAgICAgICAgICAg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3h5LmNjLycsXFxcXG4gICAgICAgIGRlc2M6ICfmnInku6PnkIbvvJonICsgcHJveHlsaXN0Lmxlbmd0aCArICfvvIzmnInmlYjnmoTvvJonICsgZ2V0cHJveHkoKS5sZW5ndGgsXFxcXG4gICAgICAgIHVybDogZ2V0cHJveHkoKS5sZW5ndGg9PTA/XFxcXFxcXCJ0b2FzdDovL+WFiOe7tOaKpGdpdGh1YuWKoOmAn+S7o+eQhlxcXFxcXFwiOiQoWyfmlrnlvI/kuIDvvJroh6rliqjojrflj5bku6PnoIHlupMnLCfmlrnlvI/kuozvvJrmiYvlt6XmjIflrprku6PnoIHlupMnLCfmlrnlvI/kuInvvJrkuIvovb3mnKzlnLDkvp3otZblupMnXSwgXFxcXFxcXCLmjIflrprogZrlvbHku6PnoIHojrflj5bmlrnlvI9cXFxcXFxcIikuc2VsZWN0KCgpID0+IHtcXFxcbiAgICAgICAgICAgIGlmKE1ZX0lOREVYPT0wKXtcXFxcbiAgICAgICAgICAgICAgICByZXR1cm4gXFxcXFxcXCJ0b2FzdDovL+a3u+WKoOWujOacieaViOeahGdpdGh1YuWKoOmAn+S7o+eQhuWQjui/lOWbnuWIt+aWsFxcXFxcXFwiO1xcXFxuICAgICAgICAgICAgfWVsc2UgaWYoTVlfSU5ERVg9PTApe1xcXFxuICAgICAgICAgICAgICAgIHJldHVybiAkKGdldEl0ZW0oJ+S+nei1licsICcnKSwgXFxcXFxcXCLmjIflrprogZrlvbHku6PnoIHku5PlnLDlnYBcXFxcXFxcIikuaW5wdXQoKCkgPT4ge1xcXFxuICAgICAgICAgICAgICAgICAgICBpbnB1dCA9IGlucHV0LnJlcGxhY2UoL1xcXFxcXFxccysvZywgJycpO1xcXFxuICAgICAgICAgICAgICAgICAgICBpZighaW5wdXQuc3RhcnRzV2l0aCgnaHR0cCcpKXtcXFxcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBcXFxcXFxcInRvYXN0Oi8v6L6T5YWl5pyJ6K+vXFxcXFxcXC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