Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@触站🖼@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi6Kem56uZ8J+WvCIsImF1dGhvciI6Iue8mOWIhiIsInVybCI6Imhpa2VyOi8vZW1wdHkjI2h0dHBzOi8vcnQuaHVhc2hpNi5jb20vZnJvbnQvZnlBbGw/Y3Vyc29yPWZ5cGFnZS0xNjg3MDAyOTUyMjYzIiwidmVyc2lvbiI6MCwiY29sX3R5cGUiOiJtb3ZpZV8zIiwiY2xhc3NfbmFtZSI6IummlumhtSbng63pl6gm5qac5Y2VJueyvuWTgSbnlLvluIgmQUnnu5jnlLsiLCJ0eXBlIjoicGljdHVyZSIsImNsYXNzX3VybCI6ImluZGV4L2xvYWRfd2FwX2RhdGEmd29ya3MvaG90bGlzdCZ3b3Jrcy9yYW5rX3BhZ2Umd29ya3MvYWR2YW5jZS9saXN0JnBhaW50ZXIvbGlzdCZ3b3Jrcy9haV9maWx0ZXIiLCJhcmVhX25hbWUiOiIiLCJhcmVhX3VybCI6IiIsInNvcnRfbmFtZSI6IiIsInllYXJfbmFtZSI6IiIsInNvcnRfdXJsIjoiQXJyYXkuZnJvbShuZXcgU2V0KGxpc3QuY29uY2F0KGxpc3QxKS5jb25jYXQobGlzdDIpLmNvbmNhdChsaXN0MykpIiwieWVhcl91cmwiOiIiLCJmaW5kX3J1bGUiOiJqczpcbnZhciBkID0gW107XG5NWV9VUkwgPSBNWV9VUkwuc3BsaXQoXCIjI1wiKVsxXVxuaWYgKE1ZX1BBR0UgPT0gMSAmJiBNWV9VUkwuaW5kZXhPZignbG9hZF93YXBfZGF0YScpID4gLTEpIHtcbiAgICB2YXIgYSA9IHJlcXVlc3QoJ2h0dHBzOi8vbS5odWFzaGk2LmNvbS8nLCB7fSk7XG4gICAgdmFyIGxpc3RzID0gcGRmYShhLCAnLnAtaG9tZS1zZWN0aW9uJiZhJyk7XG4gICAgbGlzdHMuZm9yRWFjaCgoZGF0YSwgaW5kZXgpID0+IHtcbiAgICAgICAgbGV0IGlkID0gaW5kZXggJSA0O1xuICAgICAgICBsZXQgY29sX3R5cGUgPSBpZCA8IDIgPyBcImNhcmRfcGljXzJfMl9sZWZ0XCIgOiBcImNhcmRfcGljXzJfMlwiO1xuICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgaW1nOiBwZChkYXRhLCAnaW1nJiZzcmMnKSArICdAUmVmZXJlcj0nLFxuICAgICAgICAgICAgdXJsOiBwZChkYXRhLCAnYSYmaHJlZicpICsgJyNmeXBhZ2UnICsgJyNub0xvYWRpbmcjJyArICQoJycpLnJ1bGUoKCkgPT4ge1xuICAgICAgICAgICAgICAgICQucmVxdWlyZShcImhpa2VyOi8vcGFnZS9mbFwiKVxuICAgICAgICAgICAgfSksXG4gICAgICAgICAgICBjb2xfdHlwZTogY29sX3R5cGUsXG4gICAgICAgIH0pXG4gICAgfSlcbn1cbmlmIChNWV9VUkwuaW5kZXhPZignbG9hZF93YXBfZGF0YScpID4gLTEpIHtcbiAgICB0cnkge1xuICAgICAgICB2YXIgaHRtbCA9IHJlcXVlc3QoTVlfVVJMLCB7fSlcbiAgICAgICAgdmFyIGxpc3QgPSBKU09OLnBhcnNlKGh0bWwpLmRhdGEuZGF0YXM7XG4gICAgICAgIGxpc3QuZm9yRWFjaChkYXRhID0+IHtcbiAgICAgICAgICAgIGQucHVzaCh7XG4gICAgICAgICAgICAgICAgdGl0bGU6IGRhdGEuZGF0YS50aXRsZSxcbiAgICAgICAgICAgICAgICBkZXNjOiAn4pmhJyArIGRhdGEuZGF0YS5saWtlTnVtLFxuICAgICAgICAgICAgICAgIGltZzogJ2h0dHA6Ly9pbWcyLmh1YXNoaTYuY29tLycgKyBkYXRhLmRhdGEuY292ZXJJbWFnZS5wYXRoICsgJ0BSZWZlcmVyPScsXG4gICAgICAgICAgICAgICAgdXJsOiAnaHR0cHM6Ly9tLmh1YXNoaTYuY29tL2RyYXcvJyArIGRhdGEuZGF0YS5pZCArICcjbm9Mb2FkaW5nIycgKyAkKCcnKS5sYXp5UnVsZSgoKSA9PiB7ICAgICAgICAgICAgICAgICAgXG4gICAgICAgICAgICAgICAgICAgIGxldCBodG1sID0gcmVxdWVzdChpbnB1dCk7XG4gICAgICAgICAgICAgICAgICAgIHZhciBhcnIgPSAne1wiY292ZXJJbWFnZVwiOntcInBhdGhcIjpcIicrcGQoaHRtbCwgXCJib2R5JiYud29yay1pbWFnZS1pdGVtJiZpbWcmJmRhdGEtb3JpZ2luYWxcIikrJ1wifX0nO1xuICAgICAgICAgICAgICAgICAgICB2YXIgYXJyID0gYXJyLnJlcGxhY2UoJ2h0dHBzOi8vaW1nMi5odWFzaGk2LmNvbS8nLCcnKVxuICAgICAgICAgICAgICAgICAgICB2YXIgaHRtbHMgPSBodG1sLm1hdGNoKC93b3Jrc0xpa2VMaXN0RGF0YVwiOihcXFtcXHsuKj9cXH1cXF0pLylbMV0ucmVwbGFjZSgnWycsJ1snK2FycisnLCcpO1xuICAgICAgICAgICAgICAgICAgICB2YXIgbGlzdCA9IEpTT04ucGFyc2UoaHRtbHMpO1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gXCJwaWNzOi8vXCIgKyBsaXN0Lm1hcChpdCA9PiB7ICAgICAgICAgICAgICBcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiAnaHR0cHM6Ly9pbWcyLmh1YXNoaTYuY29tLycraXQuY292ZXJJbWFnZS5wYXRoKyAnQFJlZmVyZXI9JztcbiAgICAgICAgICAgICAgICAgICAgfSkuam9pbihcIiYmXCIpICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICB9KVxuICAgICAgICB9KVxuICAgIH0gY2F0Y2ggKGUpIHt9XG59XG5pZiAoTVlfVVJMLmluZGV4T2YoJ3dvcmtzJykgPiAtMSkge1xuICAgIGlmIChNWV9VUkw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gICAgICAgICAgICByZWZyZXNoUGFnZSgpXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBcImhpa2VyOi8vZW1wdHlcIlxuICAgICAgICAgICAgICAgIH0sIGl0ZW0pLFxuICAgICAgICAgICAgICAgIGNvbF90eXBlOiAndGV4dF8zJyxcbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9KVxuICAgICAgICBsZXQgbW9kZXMgPSBnZXRNeVZhcihcIm1vZGVzXCIsIFwi5pel5qacXCIpO1xuICAgICAgICBpZiAobW9kZXMgPT0gXCLml6XmppxcIikge1xuICAgICAgICAgICAgdmFyIGh0bWwgPSAnaHR0cHM6Ly9ydC5odWFzaGk2LmNvbS9mcm9udC93b3Jrcy9yYW5rX3BhZ2U/cGVyaW9kPWRhaWx5J1xuICAgICAgICB9O1xuICAgICAgICBpZiAobW9kZXMgPT0gXCLlkajmppxcIikge1xuICAgICAgICAgICAgdmFyIGh0bWwgPSAnaHR0cHM6Ly9ydC5odWFzaGk2LmNvbS9mcm9udC93b3Jrcy9yYW5rX3BhZ2U/cGVyaW9kPXdlZWsnXG4gICAgICAgIH07XG4gICAgICAgIGlmIChtb2RlcyA9PSBcIuaciOamnFwiKSB7XG4gICAgICAgICAgICB2YXIgaHRtbCA9ICdodHRwczovL3J0Lmh1YXNoaTYuY29tL2Zyb250L3dvcmtzL3JhbmtfcGFnZT9wZXJpb2Q9bW9udGgnXG4gICAgICAgIH07ICAgICBcbiAgICAgICAgdmFyIGxpc3QgPSBKU09OLnBhcnNlKHJlcXVlc3QoaHRtbCkpLmRhdGEud29ya3M7XG4gICAgfVxuICAgIGlmIChNWV9VUkwuaW5kZXhPZignd29ya3MvYWlfZmlsdGVyJykgPiAtMSkge1xuICAgICAgICBpZiAoTVlfUEFHRSA9PSAxKSB7XG4gICAgICAgICAgICBsZXQgdGFicyA9IFtcIuacgOaWsFwiLCBcIueDremXqFwiXTtcbiAgICAgICAgICAgIHRhYnMuZm9yRWFjaChpdGVtID0+IHtcbiAgICAgICAgICAgICAgICAvLyBwdXRNeVZhcign6YCJ5Lit6aKc6ImyJywgJyMzQ0U2OEUnKTtcbiAgICAgICAgICAgICAgICB4eSA9ICfigJjigJjigJnigJk8Yj48c3BhbiBzdHlsZT1cImNvbG9yOiAjMWFhZDE5XCI+JyArIGl0ZW0gKyAnPC9zcGFuPjwvYj4nO1xuICAgICAgICAgICAgICAgIGQucHVzaCh7XG4gICAgICAgICAgICAgICAgICAgIHRpdGxlOiBpdGVtID09IGdldE15VmFyKCdtb2RlJywgJ+acgOaWsCcpID8geHkgOiBpdGVtLFxuICAgICAgICAgICAgICAgICAgICAvL2ltZzogaXRlbVsxXSxcbiAgICAgICAgICAgICAgICAgICAgdXJsOiAkKCcjbm9Mb2FkaW5nIycpLmxhenlSdWxlKCh0YSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgcHV0TXlWYXIoXCJtb2RlXCIsIHRhKVxuICAgICAgICAgICAgICAgICAgICAgICAgcmVmcmVzaFBhZ2UoKVxuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFwiaGlrZXI6Ly9lbXB0eVwiXG4gICAgICAgICAgICAgICAgICAgIH0sIGl0ZW0pLFxuICAgICAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ3RleHRfMicsXG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9KVxuICAgICAgICB9XG4gICAgICAgIGxldCBtb2RlID0gZ2V0TXlWYXIoXCJtb2RlXCIsIFwi5pyA5pawXCIpO1xuICAgICAgICBpZiAobW9kZSA9PSBcIuacgOaWsFwiKSB7XG4gICAgICAgICAgICB2YXIgc29yID0gXCJuZXdlc3RcIjtcbiAgICAgICAgfTtcbiAgICAgICAgaWYgKG1vZGUgPT0gXCLng63pl6hcIikge1xuICAgICAgICAgICAgdmFyIHNvciA9IFwiaG90dGVzdFwiO1xuICAgICAgICB9O1xuICAgICAgICB2YXIgaHRtbCA9IHJlcXVlc3QoTVlfVVJMLnNwbGl0KFwiP1wiKVswXSwge1xuICAgICAgICAgICAgaGVhZGVyczoge1xuICAgICAgICAgICAgICAgIFwiVXNlci1BZ2VudFwiOiBNT0JJTEVfVUFcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBib2R5OiB7XG4gICAgICAgICAgICAgICAgXCJncm91cEZpbHRlcnNcIjogW1wiXCJdLFxuICAgICAgICAgICAgICAgIFwiaW5kZXhcIjogTVlfUEFHRSxcbiAgICAgICAgICAgICAgICBcInNpemVcIjogNDAsXG4gICAgICAgICAgICAgICAgXCJzb3J0XCI6IHNvclxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIG1ldGhvZDogXCJQT1NUXCJcbiAgICAgICAgfSlcbiAgICAgICAgdmFyIGxpc3QgPSBKU09OLnBhcnNlKGh0bWwpLmRhdGEuZGF0YXM7XG4gICAgfVxuICAgIGxpc3QuZm9yRWFjaChkYXRhID0+IHtcbiAgICAgICAgZC5wdXNoKHtcbiAgICAgICAgICAgIHRpdGxlOiBkYXRhLnRpdGxlLFxuICAgICAgICAgICAgZGVzYzogJ+KZoScgKyBkYXRhLmxpa2VOdW0sXG4gICAgICAgICAgICBpbWc6ICdodHRwOi8vaW1nMi5odWFzaGk2LmNvbS8nICsgZGF0YS5jb3ZlckltYWdlLnBhdGggKyAnQFJlZmVyZXI9JyxcbiAgICAgICAgICAgIHVybDogJ2h0dHBzOi8vbS5odWFzaGk2LmNvbS9kcmF3LycgKyBkYXRhLmlkICsgJyNub0xvYWRpbmcjJyArICQoJycpLmxhenlSdWxlKCgpID0+IHtcbiAgICAgICAgICAgICAgICBsZXQgaHRtbCA9IHJlcXVlc3QoaW5wdXQpO1xuICAgICAgICAgICAgICAgICAgICB2YXIgYXJyID0gJ3tcImNvdmVySW1hZ2VcIjp7XCJwYXRoXCI6XCInK3BkKGh0bWwsIFwiYm9keSYmLndvcmstaW1hZ2UtaXRlbSYmaW1nJiZkYXRhLW9yaWdpbmFsXCIpKydcIn19JztcbiAgICAgICAgICAgICAgICAgICAgdmFyIGFyciA9IGFyci5yZXBsYWNlKCdodHRwczovL2ltZzIuaHVhc2hpNi5jb20vJywnJylcbiAgICAgICAgICAgICAgICAgICAgdmFyIGh0bWxzID0gaHRtbC5tYXRjaCgvd29ya3NMaWtlTGlzdERhdGFcIjooXFxbXFx7Lio/XFx9XFxdKS8pWzFdLnJlcGxhY2UoJ1snLCdbJythcnIrJywnKTtcbiAgICAgICAgICAgICAgICAgICAgdmFyIGxpc3QgPSBKU09OLnBhcnNlKGh0bWxzKTtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFwicGljczovL1wiICsgbGlzdC5tYXAoaXQgPT4geyAgICAgICAgICAgICAgXG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gJ2h0dHBzOi8vaW1nMi5odWFzaGk2LmNvbS8nK2l0LmNvdmVySW1hZ2UucGF0aCsgJ0BSZWZlcmVyPSc7XG4gICAgICAgICAgICAgICAgICAgIH0pLmpvaW4oXCImJlwiKSAgIFxuICAgICAgICAgICAgfSksXG4gICAgICAgIH0pXG4gICAgfSlcbn1cbmlmIChNWV9VUkwuaW5kZXhPZigncGFpbnRlci9saXN0JykgPiAtMSkge1xuICAgIHZhciBodG1sID0gcmVxdWVzdChNWV9VUkwucmVwbGFjZSgnY3Vyc29yJywgJ2luZGV4Jykuc3BsaXQoXCItXCIpWzBdKVxuICAgIHZhciBsaXN0ID0gSlNPTi5wYXJzZShodG1sKS5kYXRhLmRhdGFzO1xuICAgIGxpc3QuZm9yRWFjaChkYXRhID0+IHtcbiAgICAgICAgdmFyIHVybCA9IGRhdGEud29ya3NMaXN0O1xuICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgdGl0bGU6IGRhdGEubmFtZSxcbiAgICAgICAgICAgIGltZzogJ2h0dHA6Ly9pbWcyLmh1YXNoaTYuY29tLycgKyBkYXRhLmNvdmVySW1hZ2VVcmwgKyAnQFJlZmVyZXI9JyxcbiAgICAgICAgICAgIHVybDogJCgnI25vTG9hZGluZy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yA9IGh0bWwubWF0Y2goL3dvcmtzTGlrZUxpc3REYXRhXFxcIjooXFxcXFtcXFxcey4qP1xcXFx9XFxcXF0pLylbMV0ucmVwbGFjZSgnWycsJ1snK2FycisnLCcpO1xcbiAgICAgICAgICAgICAgICAgICAgdmFyIGxpc3QgPSBKU09OLnBhcnNlKGh0bWxzKTtcXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBcXFwicGljczovL1xcXCIgKyBsaXN0Lm1hcChpdCA9PiB7ICAgICAgICAgICAgICBcXG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gJ2h0dHBzOi8vaW1nMi5odWFzaGk2LmNvbS8nK2l0LmNvdmVySW1hZ2UucGF0aCsgJ0BSZWZlcmVyPSc7XFxuICAgICAgICAgICAgICAgICAgICB9KS5qb2luKFxcXCImJlxcXCIpICAgXFxuICAgICAgICB9KSxcXG4gICAgfSk7XFxufSlcXG5zZXRSZXN1bHQoZCk7XCJ9XSIsImljb24iOiJodHRwczovL20uaHVhc2hpNi5jb20vZmF2aWNvbi5pY28iLCJwcm94eSI6IiJ9
Add Comment
Please, Sign In to add comment