Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@不太灵@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi5LiN5aSq54G1IiwiYXV0aG9yIjoiIiwidXJsIjoiaGlrZXI6Ly9lbXB0eSMjZnlwYWdlIiwidmVyc2lvbiI6MCwiY29sX3R5cGUiOiJtb3ZpZV8zIiwiY2xhc3NfbmFtZSI6IiIsInR5cGUiOiJ2aWRlbyIsImNsYXNzX3VybCI6IiIsImFyZWFfbmFtZSI6IiIsImFyZWFfdXJsIjoiIiwic29ydF9uYW1lIjoiIiwieWVhcl9uYW1lIjoiIiwic29ydF91cmwiOiIiLCJ5ZWFyX3VybCI6IiIsImZpbmRfcnVsZSI6ImpzOlxudmFyIHJlcyA9IHt9O1xudmFyIGQgPSBbXTtcbnZhciBzID0gW107XG5jb25zdCBkb21haW4gPSBnZXRNeVZhcignZG9tYWluJylcbmlmIChNWV9QQUdFID09IDEpIHtcbiAgICBmdW5jdGlvbiBjb2xvcihhLCBiLCB0eHQpIHtcbiAgICAgICAgcmV0dXJuIGEgPT0gYiA/ICfigJzigJzigJ3igJ08Yj48Zm9udCBjb2xvcj0jRkE3Mjk4PicgKyB0eHQgKyAnPC9mb250PjwvYj4nIDogdHh0XG4gICAgfVxuICAgIHZhciB0eXBlbGlzdCA9IHN0b3JhZ2UwLmdldE15VmFyKCd0eXBlbGlzdCcpXG4gICAgaWYgKCF0eXBlbGlzdCkge1xuICAgICAgICB2YXIgdXJsID0gZG9tYWluICsgJy9wcm9kL2NvcmUvc3lzdGVtL2dldFZpZGVvVHlwZUxpc3QnXG4gICAgICAgIHR5cGVsaXN0ID0gSlNPTi5wYXJzZShmZXRjaCh1cmwsIHtcbiAgICAgICAgICAgIGhlYWRlcnM6IHtcbiAgICAgICAgICAgICAgICBjb29raWU6IGdldE15VmFyKCdjb29raWUnKVxuICAgICAgICAgICAgfVxuICAgICAgICB9KSkuZGF0YVxuICAgICAgICBzdG9yYWdlMC5wdXRNeVZhcigndHlwZWxpc3QnLCB0eXBlbGlzdClcbiAgICB9XG4gICAgWyfnlLXlvbHlpKflhagnLCAn55S16KeG5Ymn5aSn5YWoJ10uZm9yRWFjaCgoaXRlbSwgaSkgPT4ge1xuICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgdGl0bGU6IGNvbG9yKGkgKyAxLCBnZXRNeVZhcignc2EnLCAnMScpLCBpdGVtKSxcbiAgICAgICAgICAgIHVybDogJCgnI25vTG9hZGluZyMnKS5sYXp5UnVsZSgoc2EpID0+IHtcbiAgICAgICAgICAgICAgICBwdXRNeVZhcignc2EnLCBzYSlcbiAgICAgICAgICAgICAgICByZWZyZXNoUGFnZSgpXG4gICAgICAgICAgICAgICAgcmV0dXJuICdoaWtlcjovL2VtcHR5J1xuICAgICAgICAgICAgfSwgaSArIDEpLFxuICAgICAgICAgICAgY29sX3R5cGU6ICdzY3JvbGxfYnV0dG9uJ1xuICAgICAgICB9KVxuICAgIH0pXG4gICAgZC5wdXNoKHtcbiAgICAgICAgY29sX3R5cGU6ICdibGFua19ibG9jaydcbiAgICB9KVxuICAgIGZvciAodHlwZSBpbiB0eXBlbGlzdCkge1xuICAgICAgICBzLnB1c2godHlwZSlcbiAgICAgICAgZC5wdXNoKHtcbiAgICAgICAgICAgIHRpdGxlOiBjb2xvcignJywgZ2V0TXlWYXIodHlwZSwgJycpLCAn5LiN6ZmQJyksXG4gICAgICAgICAgICB1cmw6ICQoJyNub0xvYWRpbmcjJykubGF6eVJ1bGUoKHR5cGUpID0+IHtcbiAgICAgICAgICAgICAgICBwdXRNeVZhcih0eXBlLCAnJylcbiAgICAgICAgICAgICAgICByZWZyZXNoUGFnZSgpXG4gICAgICAgICAgICAgICAgcmV0dXJuICdoaWtlcjovL2VtcHR5J1xuICAgICAgICAgICAgfSwgdHlwZSksXG4gICAgICAgICAgICBjb2xfdHlwZTogJ3Njcm9sbF9idXR0b24nXG4gICAgICAgIH0pXG4gICAgICAgIHR5cGVsaXN0W3R5cGVdLmZvckVhY2goaXRlbSA9PiB7XG4gICAgICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgICAgIHRpdGxlOiBjb2xvcihpdGVtLnRpdGxlLCBnZXRNeVZhcih0eXBlKSwgaXRlbS50aXRsZSksXG4gICAgICAgICAgICAgICAgdXJsOiAkKCcjbm9Mb2FkaW5nIycpLmxhenlSdWxlKCh0eXBlLCB0aXRsZSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICBwdXRNeVZhcih0eXBlLCB0aXRsZSlcbiAgICAgICAgICAgICAgICAgICAgcmVmcmVzaFBhZ2UoKVxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gJ2hpa2VyOi8vZW1wdHknXG4gICAgICAgICAgICAgICAgfSwgdHlwZSwgaXRlbS50aXRsZSksXG4gICAgICAgICAgICAgICAgY29sX3R5cGU6ICdzY3JvbGxfYnV0dG9uJ1xuICAgICAgICAgICAgfSlcbiAgICAgICAgfSlcbiAgICAgICAgZC5wdXNoKHtcbiAgICAgICAgICAgIGNvbF90eXBlOiAnYmxhbmtfYmxvY2snXG4gICAgICAgIH0pXG4gICAgfVxuICAgIFsn5pu05pawJywgJ+ivhOWIhicsICfmt7vliqAnXS5mb3JFYWNoKChpdGVtLCBpKSA9PiB7XG4gICAgICAgIGQucHVzaCh7XG4gICAgICAgICAgICB0aXRsZTogY29sb3IoaSArIDEsIGdldE15VmFyKCdzaCcsICcxJyksIGl0ZW0pLFxuICAgICAgICAgICAgdXJsOiAkKCcjbm9Mb2FkaW5nIycpLmxhenlSdWxlKChzaCkgPT4ge1xuICAgICAgICAgICAgICAgIHB1dE15VmFyKCdzaCcsIHNoKVxuICAgICAgICAgICAgICAgIHJlZnJlc2hQYWdlKClcbiAgICAgICAgICAgICAgICByZXR1cm4gJ2hpa2VyOi8vZW1wdHknXG4gICAgICAgICAgICB9LCBpICsgMSksXG4gICAgICAgICAgICBjb2xfdHlwZTogJ3Njcm9sbF9idXR0b24nXG4gICAgICAgIH0pXG4gICAgfSlcbn1cblxudmFyIHRhZ3MgPSBbJ3NjJywgJ3NkJywgJ3NlJywgJ3NmJywgJ3NoJ11cbnZhciBwYXJhbXMgPSB7XG4gICAgc2E6IGdldE15VmFyKCdzYScsICcxJyksXG4gICAgc2I6ICcnLFxuICAgIHNnOiBnZXRNeVZhcignc2gnLCAnMScpLFxuICAgIHBhZ2U6IE1ZX1BBR0Vcbn07XG50YWdzLmZvckVhY2goKGl0ZW0sIGkpID0+IHtcbiAgICBwYXJhbXNbdGFnc1tpXV0gPSBnZXRNeVZhcihzW2ldLCAnJylcbn0pXG51cmwgPSBidWlsZFVybChkb21haW4gKyAnL3Byb2QvY29yZS9zeXN0ZW0vZ2V0VmlkZW9Nb3ZpZUxpc3QnLCBwYXJhbXMpXG50cnkge1xuICAgIHZhciBkYXRhID0gSlNPTi5wYXJzZShmZXRjaCh1cmwsIHtcbiAgICAgICAgaGVhZGVyczoge1xuICAgICAgICAgICAgY29va2llOiBnZXRNeVZhcignY29va2llJylcbiAgICAgICAgfVxuICAgIH0pKS5kYXRhLmxpc3Q7XG59IGNhdGNoIChlKSB7XG4gICAgdmFyIGh0bWwgPSBmZXRjaFBDKGdldE15VmFyKCdkb21haW4nKSk7XG4gICAgdHJ5IHtcbiAgICAgICAgdmFyIGNvb2tpZSA9IGh0bWwubWF0Y2goL2Nvb2tpZSA9IFwiKC4qPylcIi8pWzFdO1xuICAgICAgICBwdXRNeVZhcignY29va2llJywgY29va2llKVxuICAgICAgICB2YXIgZGF0YSA9IEpTT04ucGFyc2UoZmV0Y2godXJsLCB7XG4gICAgICAgICAgICBoZWFkZXJzOiB7XG4gICAgICAgICAgICAgICAgY29va2llOiBnZXRNeVZhcignY29va2llJylcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSkpLmRhdGEubGlzdDtcbiAgICB9IGNhdGNoIChlKSB7XG4gICAgICAgIGxvZygnY29va2ll6I635Y+W5aSx6LS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GQucHVzaCh7XFxuICAgICAgICB0aXRsZTogZ2V0TXlWYXIoTVlfVVJMLCAnMCcpID09IGlkID8gJ+KAnOKAnCcgKyBkYXRhICsgJ+KAneKAnScgOiBkYXRhLFxcbiAgICAgICAgdXJsOiAkKFxcXCIjbm9Mb2FkaW5nI1xcXCIpLmxhenlSdWxlKCjmraPluo8sIOWAkuW6jywgdGFicywgaWQpID0+IHtcXG4gICAgICAgICAgICB2YXIgbGlzdHMgPSBzdG9yYWdlMC5nZXRNeVZhcihcXFwibGlzdHNcXFwiKTtcXG4gICAgICAgICAgICB2YXIg5o6S5bqPID0gZ2V0TXlWYXIoTVlfVVJMICsgXFxcIueroOiKguaOkuW6j1xcXCIsIOato+W6jyk7XFxuICAgICAgICAgICAgdmFyIOaPkOekuiA9IOaOkuW6jyA9PSDlgJLluo8gPyDmraPluo8gOiDlgJLluo87XFxuICAgICAgICAgICAgdGFicy5mb3JFYWNoKChkYXRhLCB4bGlkKSA9PiB7XFxuICAgICAgICAgICAgICAgIHVwZGF0ZUl0ZW0oe1xcbiAgICAgICAgICAgICAgICAgICAgdGl0bGU6IGlkID09IHhsaWQgPyAn4oCc4oCcJyArIGRhdGEgKyAn4oCd4oCdJyA6IGRhdGEsXFxuICAgICAgICAgICAgICAgICAgICBleHRyYToge1xcbiAgICAgICAgICAgICAgICAgICAgICAgIGlkOiBNWV9VUkwgKyBcXFwiX+e6v+i3r1xcXCIgKyB4bGlkXFxuICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgIH0pO1xcbiAgICAgICAgICAgIH0pXFxuICAgICAgICAgICAgcHV0TXlWYXIoTVlfVVJMLCBpZClcXG4gICAgICAgICAgICB2YXIg56ug6IqCID0gbGlzdHNbZ2V0TXlWYXIoTVlfVVJMLCAnMCcpXTtcXG4gICAgICAgICAgICBpZiAo5o6S5bqPID09IOWAkuW6jykge1xcbiAgICAgICAgICAgICAgICDnq6DoioIucmV2ZXJzZSgpXFxuICAgICAgICAgICAgfVxcbiAgICAgICAgICAgIGxldCBjcCA9IOeroOiKgi5tYXAoKGRhdGEsIHNzaWQpID0+IHtcXG4gICAgICAgICAgICAgICAgcmV0dXJuIHtcXG4gICAgICAgICAgICAgICAgICAgIHRpdGxlOiBkYXRhLnpuYW1lLFxcbiAgICAgICAgICAgICAgICAgICAgZGVzYzogJ+aWh+S7tuWkp+Wwj++8micgKyBkYXRhLnpzaXplICsgJ1xcXFx0XFxcXHTmm7TmlrDml7bpl7TvvJonICsgZGF0YS5lenQsXFxuICAgICAgICAgICAgICAgICAgICB1cmw6IGRhdGEuemxpbmssXFxuICAgICAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ3RleHRfMScsXFxuICAgICAgICAgICAgICAgICAgICBleHRyYToge1xcbiAgICAgICAgICAgICAgICAgICAgICAgIGNsczogTVlfVVJMICsgXFxcIl/pgInpm4ZcXFwiLFxcbiAgICAgICAgICAgICAgICAgICAgICAgIGlkOiBkYXRhLnpsaW5rLFxcbiAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICB9O1xcbiAgICAgICAgICAgIH0pO1xcbiAgICAgICAgICAgIGRlbGV0ZUl0ZW1CeUNscyhNWV9VUkwgKyBcXFwiX+mAiembhlxcXCIpO1xcbiAgICAgICAgICAgIGFkZEl0ZW1CZWZvcmUoTVlfVVJMICsgXFxcImZvb3RlclxcXCIsIGNwKTtcXG4gICAgICAgICAgICByZXR1cm4gXFxcImhpa2VyOi8vZW1wdHlcXFwiXFxuICAgICAgICB9LCDmraPluo8sIOWAkuW6jywgdGFicywgaWQpLFxcbiAgICAgICAgY29sX3R5cGU6ICdzY3JvbGxfYnV0dG9uJyxcXG4gICAgICAgIGV4dHJhOiB7XFxuICAgICAgICAgICAgaWQ6IE1ZX1VSTCArIFxcXCJf57q/6LevXFxcIiArIGlkXFxuICAgICAgICB9XFxuICAgIH0pO1xcbn0pXFxuZC5wdXNoKHvCoMKgwqDCoMKgwqBcXG4gICAgY29sX3R5cGU6IC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MICsgXFxcImZvb3RlclxcXCJcXG4gICAgfVxcbn0pO1xcbmFkZExpc3RlbmVyKFxcXCJvbkNsb3NlXFxcIiwgJC50b1N0cmluZygoKSA9PiB7XFxuICAgIGNsZWFyTXlWYXIoXFxcImxpc3RzXFxcIik7XFxufSkpO1xcbnJlcy5kYXRhID0gZDtcXG5zZXRIb21lUmVzdWx0KHJlcyk7XCJ9XSIsImljb24iOiIiLCJwcm94eSI6IiJ9
Add Comment
Please, Sign In to add comment