Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@胖大AV@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi6IOW5aSnQVYiLCJhdXRob3IiOiJSIiwidXJsIjoiaGlrZXI6Ly9lbXB0eSMjZnlwYWdlIiwidmVyc2lvbiI6MjAyNDAyMTAsImNvbF90eXBlIjoibW92aWVfMyIsImNsYXNzX25hbWUiOiIiLCJ0eXBlIjoidmlkZW8iLCJjbGFzc191cmwiOiJ5eTh5LmNvbSIsImFyZWFfbmFtZSI6IiIsImFyZWFfdXJsIjoicGRzcC50diIsInNvcnRfbmFtZSI6IiIsInllYXJfbmFtZSI6IiIsInNvcnRfdXJsIjoiIiwieWVhcl91cmwiOiIiLCJmaW5kX3J1bGUiOiJqczpcbmV2YWwoSlNPTi5wYXJzZShmZXRjaCgnaGlrZXI6Ly9wYWdlL+WIhuexuycsIHt9KSkucnVsZSk7ICAgICAgXG5ldmFsKEpTT04ucGFyc2UoZmV0Y2goJ2hpa2VyOi8vcGFnZS9sYXp5Jywge30pKS5ydWxlKTtcbiAgICAgICAgdmFyIGQgPSBbXTtcbiAgICAgICAgICAgICAgICB2YXIgaG9zdCA9ICdodHRwczovL2RhdGEuN3d6eDkuY29tJzsvL2h0dHBzOi8vc3BpZGVyc2Nsb3VkY24yLjUxMTExNjY2LmNvbVxuICAgICAgICBjb25zdCBwYWdlID0gTVlfUEFHRTtcbiAgICAgICAgdmFyIGRhdGEgPSBbe1xuICAgICAgICAgICAgdGl0bGU6ICfkvKDlqpImIDkgMSDkvKDlqpIgJueyvuS4nOS8oOWqkibpurvosYbkvKDlqpIm6bq76LGG5pig55S7Jum6u+ixhueMq+eIqibonJzmoYPkvKDlqpIm5aSp576O5Lyg5aqSJuaYn+epuuS8oOWqkicsXG4gICAgICAgICAgICBpZDogJzEmNiY3JjgmOSYxMCYxMSYxMiYxMydcbiAgICAgICAgfSwge1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LCBpdGVtLCBob3N0LCBkLCAwKTtcbiAgICAgICAgfSk7XG4vL+aQnOe0ouahhlxuc2VhcmNoTWFpbihwYWdlLCBkLCBcIvCflI5cIixcIuaQnOe0ouS9oOaDs+imgeeahC4uLi5cIilcblxuLy/pobXpnaLlnLDlnYBcbiAgICAgdmFyIHR5cGVJZCA9IGdldE15VmFyKGhvc3QgKyAnYycsICcxJyk7XG4gICAgIHZhciBqc29uID0gSlNPTi5wYXJzZShmZXRjaChob3N0KycvZ2V0RGF0YUluaXQnLCB7XG4gICAgICAgIGJvZHk6IHtcbiAgICAgICAgICAgICAgICBcIm5hbWVcIjogXCJKb2huXCIsXG4gICAgICAgICAgICAgICAgXCJhZ2VcIjogMzEsXG4gICAgICAgICAgICAgICAgXCJjaXR5XCI6IFwiTmV3IFlvcmtcIlxuICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICBtZXRob2Q6ICdQT1NUJ1xuICAgICAgICAgICAgICAgICAgICB9KSk7XG52YXIgbGluayA9IGpzb24uZGF0YS5tYWNWb2RMaW5rTWFwXG5cbiAgICAgICAgIHZhciBodG1sID0gSlNPTi5wYXJzZShmZXRjaChob3N0KycvZm9yd2FyZCcsIHtcbiAgICAgICAgYm9keToge1xuICAgICAgICAgICAgICAgIFwiY29tbWFuZFwiOiBcIldFQl9HRVRfSU5GT1wiLFxuICAgICAgICAgICAgICAgIFwicGFnZU51bWJlclwiOiBwYWdlLFxuICAgICAgICAgICAgICAgIFwiUmVjb3Jkc1BhZ2VcIjogMjAsXG4gICAgICAgICAgICAgICAgXCJ0eXBlSWRcIjogdHlwZUlkLFxuICAgICAgICAgICAgICAgIFwidHlwZU1pZFwiOiBcIjFcIixcbiAgICAgICAgICAgICAgICBcImxhbmd1YWdlVHlwZVwiOiBcIkNOXCIsXG4gICAgICAgICAgICAgICAgXCJjb250ZW50XCI6IFwiXCJcbiAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgbWV0aG9kOiAnUE9TVCdcbiAgICAgICAgICAgICAgICAgICAgfSkpO1xuXG52YXIgZGF0YSA9IGh0bWwuZGF0YS5yZXN1bHRMaXN0XG4gICAgICAgICBmb3IgKGxldCBpdCBvZiBkYXRhKSB7ICAgIFxuICAgICAgICAgIHZhciBpZCA9IGl0LmlkO1xuICAgICAgICAgIHZhciBpbWcgPSBpdC52b2RfcGljO1xuICAgICAgICAgIHZhciB2b2QgPSBpdC52b2Rfc2VydmVyX2lkO1xuICAgICAgICAgICAgZC5wdXNoKHtcbiAgICAgICAgICAgICAgICB0aXRsZTogaXQudm9kX25hbWUsXG4gICAgICAgICAgICAgICAgaW1nOiBpbWcsXG4gICAgICAgICAgICAgICAgdXJsOiAkKCcnKS5sYXp5UnVsZSgoaWQsaW1nLHZvZCxsaW5rKSA9PiB7XG4gICAgICAgIHZhciBkb21haW4gPSBbbGlua1t2b2RdLkxJTktfMSxsaW5rW3ZvZF0uTElOS18yLGxpbmtbdm9kXS5MSU5LXzNdXG4gICAgICAgIHZhciBzZXQgPSBuZXcgU2V0KGRvbWFpbik7XG4gICAgICAgIGRvbWFpbiA9IEFycmF5LmZyb20oc2V0KTtcbiAgICAgICAgdmFyIHZpZGVvID0gaW1nLm1hdGNoKC9cXC92aWRlby4qLylbMF0ucmVwbGFjZSgnMS5qcGcnLCdwbGF5bGlzdC5tM3U4JylcbiAgICAgICAgdmFyIHVybHMgPSBkb21haW4ubWFwKGk9PmkrdmlkZW8pXG4gICAgICAgIHJldHVybiB7dXJsczp1cmxzfVxufSxpZCxpbWcsdm9kLGxpbmspLFxuICAgICAgICAgICAgICAgIGNvbF90eXBlOiAnbW92aWVfMicsICAgICAgICAgICAgXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgIH0gICAgICAgICBcblxuXG4gICAgICAgICB2YXIgcGljID0gSlNPTi5wYXJzZShmZXRjaChob3N0KycvZm9yd2FyZCcsIHtcbiAgICAgICAgYm9keToge1xuICAgICAgICAgICAgICAgIFwiY29tbWFuZFwiOiBcIldFQl9HRVRfSU5GT1wiLFxuICAgICAgICAgICAgICAgIFwicGFnZU51bWJlclwiOiBwYWdlLFxuICAgICAgICAgICAgICAgIFwiUmVjb3Jkc1BhZ2VcIjogMjAsXG4gICAgICAgICAgICAgICAgXCJ0eXBlSWRcIjogdHlwZUlkLFxuICAgICAgICAgICAgICAgIFwidHlwZU1pZFwiOiBcIjJcIixcbiAgICAgICAgICAgICAgICBcImxhbmd1YWdlVHlwZVwiOiBcIkNOXCIsXG4gICAgICAgICAgICAgICAgXCJjb250ZW50XCI6IFwiXCJcbiAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgbWV0aG9kOiAnUE9TVCdcbiAgICAgICAgICAgICAgICAgICAgfSkpO1xuXG52YXIgZGF0YXAgPSBwaWMuZGF0YS5yZXN1bHRMaXN0XG4gICAgICAgICBmb3IgKGxldCBpdCBvZiBkYXRhcCkgeyAgICBcbiAgICAgICAgICB2YXIgYXJ0cGljID0gaXQuYXJ0X3BpYztcbiAgICAgICAgICB2YXIgaWQgPSBpdC5pZDtcbmlmKGFydHBpYy5pbmNsdWRlcygnOuWbvueJhycpfHxhcnRwaWM9PScnKXtcbiAgICAgICAgICAgIGQucHVzaCh7XG4gICAgICAgICAgICAgICAgdGl0bGU6IGl0LmFydF9uYW1lLFxuICAgICAgICAgICAgICAgIHVybDogXCJoaWtlcjovL2VtcHR5XCIgKyAkKCcnKS5ydWxlKChpZCxob3N0KSA9PiB7XG4gICAgICAgICAgICAgICAgICB2YXIgZCA9IFtdXG4gICAgICAgICAgICAgICAgICB2YXIgaHRtbCA9IEpTT04ucGFyc2UoZmV0Y2goaG9zdCsnL2ZvcndhcmQnLCB7XG4gICAgICAgICAgICAgICAgICAgIGJvZHk6IHtcbiAgICAgICBcImNvbW1hbmRcIjogXCJXRUJfR0VUX0lORk9fREVUQUlMXCIsXG4gICAgICAgICAgICAgICAgICAgIFwidHlwZV9NaWRcIjogXCIyXCIsXG4gICAgICAgICAgICAgICAgICAgIFwiaWRcIjogaWQsXG4gICAgICAgICAgICAgICAgICAgIFwibGFuZ3VhZ2VUeXBlXCI6IFwiQ05cIlxuICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICBtZXRob2Q6ICdQT1NUJ1xuICAgICAgICAgICAgICAgICAgICB9KSk7XG4gICAgICAgICAgICAgICB2YXIgZGF0YSA9IGh0bWwuZGF0YS5yZXN1bHQuYXJ0X3VybFxuICAgICAgICAgICAgICAgdmFyIHRpdGxlID0gaHRtbC5kYXRhLnJlc3VsdC5hcnRfbmFtZVxuICAgICAgICAgICAgICAgICAgaWYodGl0bGUgIT09bnVsbCl7XG4gICAgICAgICAgICAgICAgICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRpdGxlOiAn4oCc4oCc4oCd4oCdPG1pZGRsZT48Zm9udCBjb2xvcj0jRkZBNTAwPicrdGl0bGUrJzwvZm9udD48L21pZGRsZT4nLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHVybDogJ2hpa2VyOi8vZW1wdHknLCAgICAgICAgXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY29sX3R5cGU6ICd0ZXh0X2NlbnRlcl8xJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBleHRyYToge2xpbmVWaXNpYmxlOiBmYWxzZX1cbiAgICAgICAgICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgdHJ5e1xuICAgICAgICAgICAgICAgICAgICB2YXIgY29udGVudCA9IHBkZmgoZGF0YSwnSHRtbCcpLnNwbGl0KCc8YnI+IDxicj4gPGJyPiA8YnI+JylbMV0ucmVwbGFjZSgvPGlnbm9yZV9qc19vcD5bXFxzXFxTXSs8XFwvaWdub3JlX2pzX29wPi8sJycpO1xuICAgICAgICAgICAgICAgICAgICAgICAgZC5wdXNoKHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aXRsZTogXCI8bWlkZGxlPjxmb250IGNvbG9yPWdyZXk+XCIrY29udGVudCtcIjwvZm9udD48L21pZGRsZT5cIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ3JpY2hfdGV4dCcsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZXh0cmE6IHtsaW5lVmlzaWJsZTogZmFsc2V9XG4gICAgICAgICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgICAgICB9Y2F0Y2h7XG4gICAgICAgICAgICAgICAgICAgICAgZC5wdXNoKHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aXRsZTogXCI8bWlkZGxlPjxmb250IGNvbG9yPWdyZXk+XCIrZGF0YStcIjwvZm9udD48L21pZGRsZT5cIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ3JpY2hfdGV4dCcsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZXh0cmE6IHtsaW5lVmlzaWJsZTogZmFsc2V9XG4gICAgICAgICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgICAgICAgIH0gXG4gICAgICAgICAgICByZXR1cm4gc2V0UmVzdWx0KGQpXG59LGlkLGhvc3QpLFxuICAgICAgICAgICAgICAgIGNvbF90eXBlOiAnYXZhdGFyJywgICAgICAgICAgICBcbiAgICAgICAgICAgIH0pO1xuICAgICAgICAgfWVsc2V7XG4gICAgICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgICAgIHRpdGxlOiBpdC5hcnRfbmFtZSxcbiAgICAgICAgICAgICAgICBpbWc6IGFydHBpYyxcbiAgICAgICAgICAgICAgICB1cmw6ICQoJycpLmxhenlSdWxlKChpZCxob3N0KSA9PiB7XG4gICAgICAgICAgICAgICAgICB2YXIgaHRtbCA9IEpTT04ucGFyc2UoZmV0Y2goaG9zdCsnL2ZvcndhcmQnLCB7XG4gICAgICAgICAgICAgICAgICAgIGJvZHk6IHtcbiAgICAgICBcImNvbW1hbmRcIjogXCJXRUJfR0VUX0lORk9fREVUQUlMXCIsXG4gICAgICAgICAgICAgICAgICAgIFwidHlwZV9NaWRcIjogXCIyXCIsXG4gICAgICAgICAgICAgICAgICAgIFwiaWRcIjogaWQsXG4gICAgICAgICAgICAgICAgICAgIFwibGFuZ3VhZ2VUeXBlXCI6IFwiQ05cIlxuICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICBtZXRob2Q6ICdQT1NUJ1xuICAgICAgICAgICAgICAgICAgICB9KSk7XG4gICAgICAgICAgICAgICB2YXIgZGF0YSA9IGh0bWwuZGF0YS5yZXN1bHQuYXJ0X3VybFxuICAgICAgICAgICAgICAgdmFyIHBpY3MgPSBwZGZhKGRhdGEsJ2JvZHkmJmltZycpLm1hcChpPT5wZGZoKGksJ2ltZyYmc3JjJykpLmpvaW4oJyYmJylcbiAgICAgICAgICAgIHJldHVybiBcInBpY3M6Ly9cIiArIHBpY3Ncbn0saWQsaG9zdCksXG4gICAgICAgICAgICAgICAgY29sX3R5cGU6ICdtb3ZpZV8zJywgICAgICAgICAgICBcbiAgICAgICAgICAgIH0pO1xufSAgICAgXG59XG4gc2V0UmVzdWx0KGQpIiwic2VhcmNoX3VybCI6Imhpa2VyOi8vZW1wdHkjIyoqIyNmeXBhZ2UiLCJncm91cCI6IiMj56eB5Lq65aSp5ZywIiwic2VhcmNoRmluZCI6ImpzOlxudmFyIGQgPSBbXVxuXG4gICAgIHZhciBqc29uID0gSlNPTi5wYXJzZShmZXRjaCgnaHR0cHM6Ly9kYXRhLjd3eng5LmNvbS9nZXREYXRhSW5pdCcsIHtcbiAgICAgICAgYm9keToge1xuICAgICAgICAgICAgICAgIFwibmFtZVwiOiBcIkpvaG5cIixcbiAgICAgICAgICAgICAgICBcImFnZVwiOiAzMSxcbiAgICAgICAgICAgICAgICBcImNpdHlcIjogXCJOZXcgWW9ya1wiXG4gICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgIG1ldGhvZDogJ1BPU1QnXG4gICAgICAgICAgICAgICAgICAgIH0pKTtcbnZhciBsaW5rID0ganNvbi5kYXRhLm1hY1ZvZExpbmtNYXBcblxuICAgICAgICAgdmFyIGh0bWwgPSBKU09OLnBhcnNlKGZldGNoKCdodHRwczovL2RhdGEuN3d6eDkuY29tL2ZvcndhcmQnLCB7XG4gICAgICAgIGJvZHk6IHtcbiAgICAgICAgICAgICAgICAgICAgXCJjb21tYW5kXCI6IFwiV0VCX0dFVF9JTkZPXCIsXG4gICAgICAgICAgICAgICAgICAgIFwicGFnZU51bWJlclwiOiBNWV9QQUdFLFxuICAgICAgICAgICAgICAgICAgICBcIlJlY29yZHNQYWdlXCI6IDIwLFxuICAgICAgICAgICAgICAgICAgICBcInR5cGVJZFwiOiAwLFxuICAgICAgICAgICAgICAgICAgICBcInR5cGVNaWRcIjogMSxcbiAgICAgICAgICAgICAgICAgICAgXCJsYW5ndWFnZVR5cGVcIjogXCJDTlwiLFxuICAgICAgICAgICAgICAgICAgICBcImNvbnRlbnRcIjogTVlfS0VZV09SRCxcbiAgICAgICAgICAgICAgICAgICAgXCJ0eXBlXCI6IDFcbiAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgbWV0aG9kOiAnUE9TVCdcbiAgICAgICAgICAgICAgICAgICAgfSkpO1xuXG52YXIgZGF0YSA9IGh0bWwuZGF0YS5yZXN1bHRMaXN0XG4gICAgICAgICBmb3IgKGxldCBpdCBvZiBkYXRhKSB7ICAgIFxuICAgICAgICAgIHZhciBpZCA9IGl0LmlkO1xuICAgICAgICAgIHZhciBpbWcgPSBpdC52b2RfcGljO1xuICAgICAgICAgIHZhciB2b2QgPSBpdC52b2Rfc2VydmVyX2lkO1xuICAgICAgICAgICAgZC5wdXNoKHtcbiAgICAgICAgICAgICAgICB0aXRsZTogaXQudm9kX25hbWUsXG4gICAgICAgICAgICAgICAgaW1nOiBpbWcsXG4gICAgICAgICAgICAgICAgdXJsOiAkKCcnKS5sYXp5UnVsZSgoaWQsaW1nLHZvZC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gJycpIHtcXG4gICAgICAgIHZhciBjX2lkID0gY190aXRsZTtcXG4gICAgfSBlbHNlIGlmIChkYXRhLmlkID09ICdAQEAnKSB7XFxuICAgICAgICB2YXIgY19pZCA9IGRhdGEudGl0bGUucmVwbGFjZSgvXi4qPyYvLCAnJicpLnNwbGl0KCcmJyk7XFxuXFxuICAgIH0gZWxzZSB7XFxuICAgICAgICB2YXIgY19pZCA9IGRhdGEuaWQuc3BsaXQoJyYnKTtcXG4gICAgfVxcbiAgICBjX3RpdGxlLmZvckVhY2goKHRpdGxlLCBpbmRleF9jLCBkYXRhKSA9PiB7XFxuICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgIHRpdGxlOiBpbmRleF9jID09IGdldE15VmFyKGhvc3QgKyBjICsgJ2luZGV4JyArIGluZGV4LCAobW9kZSB8fCBpbmRleCA9PSB2ID8gJzAnIDogJy0xJykpID8gZ2V0SGVhZCh0aXRsZSwgJyNGRjY2OTknKSA6IHRpdGxlLFxcbiAgICAgICAgICAgIGNvbF90eXBlOiAnc2Nyb2xsX2J1dHRvbicsXFxuICAgICAgICAgICAgdXJsOiBjX2lkW2luZGV4X2NdLmluY2x1ZGVzKCcjJyk/J2hpa2VyOi8vZW1wdHknOiQoJyNub0xvYWRpbmcjJykubGF6eVJ1bGUoKGluZGV4LCBpZCwgaW5kZXhfYywgaG9zdCwgbW9kZSwgdGl0bGUsIHYsIGMpID0+IHtcXG4gICAgICAgICAgICAgICAgaWYgKG1vZGUpIHtcXG4gICAgICAgICAgICAgICAgICAgIHB1dE15VmFyKGhvc3QgKyBjICsgaW5kZXgsIGlkKTtcXG5cXG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcXG4gICAgICAgICAgICAgICAgICAgIHB1dE15VmFyKGhvc3QgKyBjLCBpZCk7XFxuICAgICAgICAgICAgICAgICAgICBmb3IgKGxldCBuID0gdjsgbiA8PSAyMDsgbisrKSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgcHV0TXlWYXIoa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ICAgICAgZXh0cmE6IHtsaW5lVmlzaWJsZTpmYWxzZX1cXG4gICAgfSk7XFxuXFxuICAgICAgdmFyIGxpc3QgPSBjb250c1tpXTtcXG4gICAgICAgIGZvciAobGV0IGl0IG9mIGxpc3QpIHsgICAgICAgXFxuICAgICAgICAgICAgZC5wdXNoKHtcXG4gICAgICAgICAgICAgICAgdGl0bGU6IGl0LnRpdGxlLFxcbiAgICAgICAgICAgICAgICBkZXNjOiBpdC5yZWxlYXNlICsgJ1xcXFx0XFxcXHRcXFxcdCcgKyBpdC50aW1lTGVuZ2gsXFxuICAgICAgICAgICAgICAgIGltZzogaXQuaW1nX3ByZXZpZXcsXFxuICAgICAgICAgICAgICAgIHVybDogaG9zdCArICcvdmlkZW8vJyArIGl0Ll9pZCArIGxhenksXFxuICAgICAgICAgICAgICAgIGNvbF90eXBlOiAnbW92aWVfMicsICAgICAgICAgICAgXFxuICAgICAgICAgICAgfSk7XFxuICAgICAgICB9XFxuICAgIH1cIn0se1wiY29sX3R5cGVcIjpcIm1vdmllXzNcIixcIm5hbWVcIjpcIuKRouino+aekFwiLFwicGF0aFwiOlwibGF6eVwiLFwicnVsZVwiOlwidmFyIGxhenk9JCgnI25vTG9hZGluZyMnKS5sYXp5UnVsZSgoKSA9PiB7XFxuICAgIHZhciBqcyA9IGZldGNoKGlucHV0KS5tYXRjaCgvY29uc3Qgc291cmNlW147XSsvKVswXVxcbiAgICBldmFsKGpzKVxcbiAgICByZXR1cm4gc291cmNlXFxufSlcIn1dIiwiaWNvbiI6Imh0dHBzOi8vdGh1bWJzbmFwLmNvbS9pL1Q2MjgzQ014LmpwZyIsInByb3h5IjoiIn0=
Add Comment
Please, Sign In to add comment