Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@uckk云@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoidWNra+S6kSIsImF1dGhvciI6IlRob21hc+WWsiIsInVybCI6Imhpa2VyOi8vZW1wdHkjI3Vja2vkupEiLCJ2ZXJzaW9uIjoyMDIzMDYyNywiY29sX3R5cGUiOiJtb3ZpZV8zIiwiY2xhc3NfbmFtZSI6IiIsInR5cGUiOiJvdGhlciIsImNsYXNzX3VybCI6IiIsImFyZWFfbmFtZSI6IiIsImFyZWFfdXJsIjoiIiwic29ydF9uYW1lIjoiIiwieWVhcl9uYW1lIjoiIiwic29ydF91cmwiOiIiLCJ5ZWFyX3VybCI6IiIsImZpbmRfcnVsZSI6ImpzOlxuLy8g5aS45YWL5LqR55uYIC8gVUPkupHnm5gg6LWE5rqQ5LiL6L29XG5cbi8vIOWhq+WGmeagvOW8j+WmguS4i1xuLy8gW1wi6LWE5rqQ5ZCN56ewXCIsIFwi6LWE5rqQaWRcIiwgXCLmj5Dlj5bnoIFcIiwgXCLmlofku7ZpZFwiLCBcIuaOkuW6j+exu+Wei1wiXSxcblxuXG4vLyDotYTmupDlkI3np7AgLSDoh6rlrprkuYnkvaDllpzmrKLnmoRcblxuXG4vLyDotYTmupBpZCAtIOWIhuS6q+mTvuaOpemdoOWQjumdoueahOWtl+esplxu44CA44CAIC8vIOS+i++8mmh0dHBzOi8vcGFuLnF1YXJrLmNuL3Mv44CQZjJhYjYzOWMyYzVk44CRIy9cbuOAgOOAgCAvLyDinZfmsqHmnInotYTmupBpZOaXtuS8muWIpOWumuS4uuOAkOaWsOWIhuexu+OAkVxuXG5cbi8vIOaPkOWPlueggSAtIOayoeacieWwseeVmeepuuOAglxuXG5cbi8vIOaWh+S7tmlkIC0g5rKh5pyJ5bCx55WZ56m644CCXG7jgIDjgIAgLy8g54K55Ye75paH5Lu25aS55pe277yM6K+35r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JycpO1xuICAgIH1cblxuXG4gICAgZ2V0cyhwd2RfaWQsIHBhc3Njb2RlKTtcbiAgICBnZXRkKHB3ZF9pZCwgcGFzc2NvZGUsIHBkaXJfZmlkLCBzb3J0bnVtKTtcblxuICAgIGEgPSBbXTtcbiAgICBmb3IgKGkgPSAxOyBpIDwgZC5sZW5ndGg7IGkgKz0gMykge1xuICAgICAgICBhLnB1c2goe1xuICAgICAgICAgICAgdGl0bGU6IGRbaV0udGl0bGUsXG4gICAgICAgICAgICBkZXNjOiBkW2kgKyAxXS50aXRsZSxcbiAgICAgICAgICAgIHVybDogZFtpXS51cmxcbiAgICAgICAgfSlcbiAgICB9XG4gICAgZCA9IGFcbn0gZWxzZSB7XG5cbiAgICB1cmwgPSAnaHR0cHM6Ly92LmZ1bmxldHUuY29tL3NlYXJjaCc7XG4gICAgYm9keSA9IHtcbiAgICAgICAgXCJzdHlsZVwiOiBcImdldFwiLFxuICAgICAgICBcImRhdGFzcmNcIjogXCJzZWFyY2hcIixcbiAgICAgICAgXCJxdWVyeVwiOiB7XG4gICAgICAgICAgICBcImlkXCI6IFwiXCIsXG4gICAgICAgICAgICBcImRhdGV0aW1lXCI6IFwiXCIsXG4gICAgICAgICAgICBcImNvbW1vbmlkXCI6IDEsXG4gICAgICAgICAgICBcInBhcm1pZFwiOiBcIlwiLFxuICAgICAgICAgICAgXCJmaWxlaWRcIjogXCJcIixcbiAgICAgICAgICAgIFwicmVwb3J0aWRcIjogXCJcIixcbiAgICAgICAgICAgIFwidmFsaWRpZFwiOiBcIlwiLFxuICAgICAgICAgICAgXCJzZWFyY2h0ZXh0XCI6IHNva2V5XG4gICAgICAgIH0sXG4gICAgICAgIFwicGFnZVwiOiB7XG4gICAgICAgICAgICBcInBhZ2VTaXplXCI6IDEwLFxuICAgICAgICAgICAgXCJwYWdlSW5kZXhcIjogTVlfUEFHRVxuICAgICAgICB9LFxuICAgICAgICBcIm9yZGVyXCI6IHtcbiAgICAgICAgICAgIFwicHJvcFwiO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Njb2RlICsgXFxcIiNcXFwiICsgcGRpcl9maWQgKyBcXFwiI1xcXCIgKyAhc29ydG51bSksXFxuICAgICAgICAgICAgY29sX3R5cGU6ICd0ZXh0X2NlbnRlcl8xJyxcXG4gICAgICAgICAgICBleHRyYToge1xcbiAgICAgICAgICAgICAgICBsb25nQ2xpY2s6IFt7XFxuICAgICAgICAgICAgICAgICAgICAgICAgdGl0bGU6ICcg4piFIOWkjeWItuaQnOe0ouivreWPpSDimIUgJyxcXG4gICAgICAgICAgICAgICAgICAgICAgICBqczogJC50b1N0cmluZygocHdkX2lkLCBwYXNzY29kZSwgcGRpcl9maWQsIHNvcnRudW0pID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdXJsID0gXFxcImNvcHk6Ly8vcy9cXFwiICsgcHdkX2lkICsgXFxcIi9wZGlyX2ZpZC9cXFwiICsgcGRpcl9maWQgKyBcXFwiL3NvcnRudW0vXFxcIiArIHNvcnRudW07XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChwYXNzY29kZSkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdXJsICs9IFxcXCIkXFxcIiArIHBhc3Njb2RlO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiB1cmxcXG4gICAgICAgICAgICAgICAgICAgICAgICB9LCBwd2RfaWQsIHBhc3Njb2RlLCBwZGlyX2ZpZCwgc29ydG51bSlcXG4gICAgICAgICAgICAgICAgICAgIH0sXFxuICAgICAgICAgICAgICAgICAgICB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgdGl0bGU6ICcg4piGIOWkjeWItui1hOa6kOmTvuaOpSDimIYgJyxcXG4gICAgICAgICAgICAgICAgICAgICAgICBqczogJC50b1N0cmluZygocHdkX2lkLCBwYXNzY29kZSkgPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB1cmwgPSBcXFwiY29weTovL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lyX2ZpZCk7XFxuICAgIH07XFxuXFxuXFxuICAgIF8uZGF0YS5saXN0Lm1hcChfID0+IHtcXG5cXG4gICAgICAgIHRpbWUgPSBcXFwi4o+x77iPIFxcXCIgKyAkLmRhdGVGb3JtYXQoXy51cGRhdGVkX2F0LCAneXl5eS1NTS1kZCcpICsgXFxcIuOAgFxcXCI7XFxuXFxuXFxuICAgICAgICAvLyDmlofku7blpLnltYzlpZdcXG4gICAgICAgIGlmIChfLmZpbGVfdHlwZSA9PT0gMCkge1xcbiAgICAgICAgICAgIGlmIChfLmluY2x1ZGVfaXRlbXMgPT09IDApIHtcXG4gICAgICAgICAgICAgICAgbnVtID0gJ/Cfk4EgJyArIF8uaW5jbHVkZV9pdGVtcyArICfpobknO1xcbiAgICAgICAgICAgICAgICB1cmwgPSAndG9hc3Q6Ly/msqHmnInotYTmupAnO1xcbiAgICAgICAgICAgIH0gZWxzZSB7XFxuICAgICAgICAgICAgICAgIG51bSA9ICfwn5eC77iPICcgKyBfLmluY2x1ZGVfaXRlbXMgKyAn6aG5JztcXG4gICAgICAgICAgICAgICAgdXJsID0gJChlbXB0eSkucnVsZSgoaW5wdXQpID0+IHtcXG4gICAgICAgICAgICAgICAgICAgIGV2YWwoSlNPTi5wYXJzZShmZXRjaCgnaGlrZXI6Ly9wYWdlL2luZm8nLCB7fSkpLnJ1bGUpO1xcbiAgICAgICAgICAgICAgICAgICAgXyA9IGlucHV0LnNwbGl0KCcjJyk7XFxuICAgICAgICAgICAgICAgICAgICBnZXRkKF9bMF0sIF9bMV0sIF9bMl0sIF9bM10pO1xcbiAgICAgICAgICAgICAgICAgICAgc2V0UmVzdWx0KGQpO1xcbiAgICAgICAgICAgICAgICB9LCBwd2RfaWQgKyBcXFwiI1xcXCIgKyBwYXNzY29kZSArIFxcXCIjXFxcIiArIF8uZmlkICsgXFxcIiNcXFwiICsgc29ydG51bSk7XFxuICAgICAgICAgICAgfVxcblxcblxcblxcblxcbiAgICAgICAgICAgIGQucHVzaCh7XFxuICAgICAgICAgICAgICAgIHRpdGxlOiBfLmZpbGVfbmFtZSxcXG4gICAgICAgICAgICAgICAgdXJsOiB1cmwsXFxuICAgICAgICAgICAgICAgIGltZzogJ2h0dHBzOi8vYW5kcm9pZC1hcnR3b3Jrcy4yNXBwLmNvbS9mczA4LzIwMjIvMDgvMDUvNS8xMTBfZmE2NjBlMTNlZDY3Zjg2ODgyMDUwMWU2YWNlNmQ1ZTFfY29uXzEzMHgxMzAucG5nJyxcXG4gICAgICAgICAgICAgICAgY29sX3R5cGU6ICdhdmF0YXInXFxuICAgICAgICAgICAgfSk7XFxuICAgICAgICAgICAgZC5wdXNoKHtcXG4gICAgICAgICAgICAgICAgdGl0bGU6IHRpbWUgKyBudW0sXFxuICAgICAgICAgICAgICAgIHVybDogdXJsLFxcbiAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ3RleHRfMSdcXG4gICAgICAgICAgICB9KTtcXG4gICAgICAgICAgICByZXR1cm4gZC5wdXNoKHtcXG4gICAgICAgICAgICAgICAgY29sX3R5cGU6ICdsaW5lJ1xcbiAgICAgICAgICAgIH0pO1xcbiAgICAgICAgfVxcblxcblxcblxcbiAgICAgICAgLy8g6ZyA6KaB5LyY5YyWXFxuICAgICAgICBiID0gXy5zaXplICogMTAwO1xcbiAgICAgICAga2IgPSB+fihiIC8gMTAyNCkgLyAxMDA7XFxuICAgICAgICBpZiAoa2IgPiAxMDI0KSB7XFxuICAgICAgICAgICAgbWIgPSB+fihrYiAqIDEwMCAvIDEwMjQpIC8gMTAwXFxuXFxuICAgICAgICAgICAgaWYgKG1iID4gMTAyNCkge1xcbiAgICAgICAgICAgICAgICBnYiA9IH5+KG1iICogMTAwIC8gMTAyNCkgLyAxMDBcXG5cXG4gICAgICAgICAgICAgICAgZ2V0eihnYiwgJ0dCJyk7XFxuICAgICAgICAgICAgfSBlbHNlIHtcXG4gICAgICAgICAgICAgICAgZ2V0eihtYiwgJ01CJyk7XFxuICAgICAgICAgICAgfVxcbiA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