Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@爱情岛@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi54ix5oOF5bKbIiwiYXV0aG9yIjoiUiIsInVybCI6Imhpa2VyOi8vZW1wdHkjI2Z5cGFnZSIsInZlcnNpb24iOjIwMjQxMDIwLCJjb2xfdHlwZSI6Im1vdmllXzMiLCJjbGFzc19uYW1lIjoiIiwidHlwZSI6InZpZGVvIiwiY2xhc3NfdXJsIjoiIiwiYXJlYV9uYW1lIjoiIiwiYXJlYV91cmwiOiIiLCJzb3J0X25hbWUiOiIiLCJ5ZWFyX25hbWUiOiIiLCJzb3J0X3VybCI6IiIsInllYXJfdXJsIjoiIiwiZmluZF9ydWxlIjoianM6XG52YXIgZCA9W11cbiBjb25zdCBob3N0ID0gY29uZmlnLmhvc3RcbmNvbnN0IGNsYXNzTmFtZSA9IGdldE15VmFyKFwiY2xhc3NOYW1lXCIsIFwi5Li76aG1XCIpXG5sZXQgdXJsID0gZ2V0TXlWYXIoXCJ1cmxcIiwgaG9zdCArIFwiL1wiKVxuZXZhbChKU09OLnBhcnNlKGZldGNoKFwiaGlrZXI6Ly9wYWdlL+abtOaWsFwiKSkucnVsZSk7XG5ldmFsKEpTT04ucGFyc2UoZmV0Y2goXCJoaWtlcjovL3BhZ2Uv5YiG57G7XCIpKS5ydWxlKTtcblxudmFyIHBhZ2UgPSBnZXRNeVZhcihcInBhZ2VcIiwgTVlfUEFHRSArIFwiXCIpXG5cbmZ1bmN0aW9uIHBhZ2VBZGQocGFnZSkge1xuICAgIGlmIChnZXRNeVZhcihcInBhZ2VcIikpIHtcbiAgICAgICAgcHV0TXlWYXIoXCJwYWdlXCIsIChwYXJzZUludChwYWdlKSArIDEpICsgJycpO1xuICAgIH1cbiAgICByZXR1cm47XG59IC8v57+76aG1XG5pZiAoY2xhc3NOYW1lID09PSBcIuinhumikeWIhuexu1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S4iumhtVwiLFxuICAgICAgICAgICAganM6ICQudG9TdHJpbmcoKHBhZ2UpID0+IHtcbiAgICAgICAgICAgICAgICBpZiAocGFnZSA+IDEpIHtcbiAgICAgICAgICAgICAgICAgICAgcHV0TXlWYXIoXCJwYWdlXCIsIChwYXJzZUludChwYWdlKSAtIDEpKTtcbiAgICAgICAgICAgICAgICAgICAgcmVmcmVzaFBhZ2UoKTtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFwiaGlrZXI6Ly9lbXB0eVwiO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0sIHBhZ2UpLFxuICAgICAgICB9LCB7XG4gICAgICAgICAgICB0aXRsZTogXCLnrKxcIiArIHBhZ2UgKyBcIumhtVwiLFxuICAgICAgICAgICAganM6IFwiXCIsXG4gICAgICAgIH0sIHtcbiAgICAgICAgICAgIHRpdGxlOiBcIui3s+i9rFwiLFxuICAgICAgICAgICAganM6ICQudG9TdHJpbmcoKCkgPT4ge1xuICAgICAgICAgICAgICAgIHJldHVybiAkKFwiXCIpLmlucHV0KCgpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgcHV0TXlWYXIoXCJwYWdlXCIsIGlucHV0KTtcbiAgICAgICAgICAgICAgICAgICAgcmVmcmVzaFBhZ2UoKTtcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH0pLFxuICAgICAgICB9XTtcbiAgICAgICAgaWYgKHR5cGVvZihwYWdlcykgIT0gJ3VuZGVmaW5lZCcpIHtcbiAgICAgICAgICAgIHZhciBleHRyYTEgPSB7XG4gICAgICAgICAgICAgICAgdGl0bGU6IFwi5bC+6aG1XCIgKyBwYWdlcyxcbiAgICAgICAgICAgICAgICBqczogJC50b1N0cmluZygocGFnZXMpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgcHV0TXlWYXIoXCJwYWdlXCIsIHBhZ2VzKTtcbiAgICAgICAgICAgICAgICAgICAgcmVmcmVzaFBhZ2UoKTtcbiAgICAgICAg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B0cnkge1xuICAgICAgICB2YXIgbGlzdCA9IHBkZmEoaHRtbCwgXCIuY29sLW1kLTEyLC0xJiYudmlkZW9zLWl0ZW1cIilcbiAgICB9IGNhdGNoIHtcbiAgICAgICAgbGlzdCA9IFtdXG4gICAgfVxuICAgIGxpc3QuZm9yRWFjaChpdGVtID0+IHtcbiAgICAgICAgbGV0IHVybCA9IGhvc3QgKyBwZGZoKGl0ZW0sIFwiYSYmaHJlZlwiKVxuICAgICAgICBsZXQgdGl0bGUgPSBwZGZoKGl0ZW0sIFwiYSYmYWx0XCIpO1xuICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgdGl0bGU6IHRpdGxlLFxuICAgICAgICAgICAgZGVzYzogcGRmaChpdGVtLCBcIi52aWRlby1tZXRhZGF0YS1saW5lJiZzcGFuLC0xJiZUZXh0XCIpICsgXCJcXHRcIiArIHBkZmgoaXRlbSwgXCIudmlkZW8tZHVyYXRpb24mJlRleHRcIiksXG4gICAgICAgICAgICBpbWc6IHBkZmgoaXRlbSwgXCIubGF6eWxvYWQmJmRhdGEtb3JpZ2luYWxcIiksXG4gICAgICAgICAgICB1cmw6ICQodXJsKS5sYXp5UnVsZSgoKSA9PiB7XG4gICAgICAgICAgICAgICAgdmFyIGhtID0gZmV0Y2goaW5wdXQpLm1hdGNoKC92YXIgaHRtbCA9W15cXDtdKy8pWzBdXG4gICAgICAgICAgICAgICAgZXZhbChobSlcbiAgICAgICAgICAgICAgICBodG1sID0gZGVjb2RlVVJJQ29tcG9uZW50KGh0bWwuc3BsaXQoJycpLnJldmVyc2UoKS5qb2luKCcnKSk7XG4gICAgICAgICAgICAgICAgdmFyIHBsYXlVcmwgPSBodG1sLm1hdGNoKC9odHRwcz8uKj9cXC5tM3U4LylbMF1cbiAgICAgICAgICAgICAgICByZXR1cm4gcGxheVVybFxuICAgICAgICAgICAgfSksICAgICAgICAgICAgXG4gICAgICAgICAgICBjb2xfdHlwZTogXCJtb3ZpZV8yXCIsXG4gICAgICAgIH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KCcnKSk7XFxuICAgICAgICAgICAgICAgICAgICB2YXIgcGxheVVybCA9IGh0bWwubWF0Y2goL2h0dHBzPy4qP1xcXFwubTN1OC8pWzBdXFxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gcGxheVVybFxcbiAgICAgICAgICAgICAgICB9KSxcXG4gICAgICAgICAgICAgICAgY29sX3R5cGU6IFxcXCJtb3ZpZV8yXFxcIixcXG4gICAgICAgICAgICB9KVxcbiAgICAgICAgfSlcXG4gICAgICAgIGQucHVzaCh7XFxuICAgICAgICAgICAgY29sX3R5cGU6IFxcXCJibGFua19ibG9ja1xcXCJcXG4gICAgICAgIH0pXFxuICAgIH0pXFxufVwifSx7XCJjb2xfdHlwZVwiOlwibW92aWVfM1wiLFwibmFtZVwiOlwi5YiG57G7XCIsXCJwYXRoXCI6XCLliIbnsbtcIixcInJ1bGVcIjpcImlmIChNWV9QQUdFID09IDEpIHtcXG4gICAgLy/kuLvpobVcXG4gICAgZC5wdXNoKHtcXG4gICAgICAgIHRpdGxlOiBjbGFzc05hbWUgPT09IFxcXCLkuLvpobVcXFwiID8gXFxcIuKAnOKAnOKAneKAnTxiPjxzcGFuIHN0eWxlPSdjb2xvcjogI0ZGMDBGRic+5Li76aG1PC9zcGFuPjwvYj5cXFwiIDogXFxcIuS4u+mhtVxcXCIsXFxuICAgICAgICB1cmw6ICQoXFxcIiNub0xvYWRpbmcjXFxcIikubGF6eVJ1bGUoKGhvc3QpID0+IHtcXG4gICAgICAgICAgICBwdXRNeVZhcihcXFwiY2xhc3NOYW1lXFxcIiwgXFxcIuS4u+mhtVxcXCIpO1xcbiAgICAgICAgICAgIHB1dE15VmFyKFxcXCJ1cmxcXFwiLCBob3N0ICsgXFxcIi9cXFwiKTtcXG4gICAgICAgICAgICBjbGVhck15VmFyKFxcXCJwYWdlXFxcIik7XFxuICAgICAgICAgICAgcmVmcmVzaFBhZ2UoKTtcXG4gICAgICAgICAgICByZXR1cm4gXFxcImhpa2VyOi8vZW1wdHlc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tcXFwiXFxuICAgIH0pXFxuICAgIGlmIChjbGFzc05hbWUgPT09IFxcXCLop4bpopHliIbnsbtcXFwiKSB7XFxuICAgICAgICBjb25zdCBoID0gZmV0Y2goaG9zdCArIFxcXCIvdmlkZW9zL3NpdGVtYXAuaHRtbFxcXCIpLm1hdGNoKC92YXIgaHRtbCA9W15cXFxcO10rLylbMF1cXG4gICAgICAgIGV2YWwoaClcXG4gICAgICAgIGNvbnN0IHRhZ3NfaHRtbCA9IGRlY29kZVVSSUNvbXBvbmVudChodG1sLnNwbGl0KCcnKS5yZXZlcnNlKCkuam9pbignJykpO1xcbiAgICAgICAgY29uc3QgdGFncyA9IHBkZmEodGFnc19odG1sLCBcXFwiYm9keSYmLnNpdGVtYXAtaW5kZXgtbGlzdFxcXCIpXFxuICAgICAgICB0YWdzLmZvckVhY2godGFnID0+IHtcXG4gICAgICAgICAgICBsZXQgbGlzdCA9IHBkZmEodGFnLCBcXFwiYm9keSYmLmltZy1jb3Zlci04MFxcXCIpXFxuICAgICAgICAgICAgZC5wdXNoKHtcXG4gICAgICAgICAgICAgICAgdGl0bGU6IHBkZmgodGFnLCBcXFwiLnBhZ2UtdGl0bGUmJlRleHRcXFwiKSArIFxcXCI6XFxcIixcXG4gICAgICAgICAgICAgICAgdXJsOiBcXFwiaGlrZXI6Ly9lbXB0eVxcXCIsXFxuICAgICAgICAgICAgICAgIGNvbF90eXBlOiBcXFwic2Nyb2xsX2J1dHRvblxcXCIsXFxuICAgICAgICAgICAgfSlcXG4gICAgICAgICAgICBsaXN0LmZvckVhY2goaXRlbSA9PiB7XFxuICAgICAgICAgICAgICAgIGxldCB1cmwgPSBob3N0ICsgcGRmaChpdGVtLCBcXFwiYSYmaHJlZlxcXCIpXFxuICAgICAgICAgICAgICAgIGxldCB0aXRsZSA9IHBkZmgoaXRlbSwgXFxcImEmJnRpdGxlXFxcIik7XFxuICAgICAgICAgICAgICAgIGQucHVzaCh7XFxuICAgICAgICAgICAgICAgICAgICB0aXRsZTogZ2V0TXlWYXIoXFxcInVybFxcXCIpID09IHVybCA/IFxcXCLigJzigJzigJ3igJ1cXFwiICsgdGl0bGUuZm9udGNvbG9yKFxcXCIjRkYwMEZGXFxcIikgOiB0aXRsZSxcXG4gICAgICAgICAgICAgICAgICAgIHVybDogJCh1cmwgKyBcXFwiI25vTG9hZGluZyNcXFwiKS5sYXp5UnVsZSgoKSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgcHV0TXlWYXIoXFxcImNsYXNzTmFtZVxcXCIsIFxcXCLop4bpopHliIbnsbtcXFwiKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICBwdXRNeVZhcihcXFwidXJsXFxcIiwgaW5wdXQpXFxuICAgICAgICAgICAgICAgICAgICAgICAgY2xlYXJNeVZhcihcXFwicGFnZVxcXCIpXFxuICAgICAgICAgICAgICAgICAgICAgICAgcmVmcmVzaFBhZ2UodHJ1ZSlcXG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gXFxcImhpa2VyOi8vZW1wdHlcXFwiXFxuICAgICAgICAgICAgICAgICAgICB9KSxcXG4gICAgICAgICAgICAgICAgICAgIGNvbF90eXBlOiBcXFwic2Nyb2xsX2J1dHRvblxcXCIsXFxuICAgICAgICAgICAgICAgIH0pXFxuICAgICAgICAgICAgfSlcXG4gICAgICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgICAgICBjb2xfdHlwZTogXFxcImJsYW5rX2Jsb2NrXFxcIlxcbiAgICAgICAgICAgIH0pXFxuICAgICAgICB9KVxcbiAgICB9XFxufVwifV0iLCJpY29uIjoiaHR0cHM6Ly9pbWcudmludWEuY24vaW1hZ2VzL0lCZGFoLnBuZyIsInByb3h5IjoiIn0=
Add Comment
Please, Sign In to add comment