Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@胖大AV@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi6IOW5aSnQVYiLCJhdXRob3IiOiJSIiwidXJsIjoiaGlrZXI6Ly9lbXB0eSMjZnlwYWdlIiwidmVyc2lvbiI6MjAyNDAyMTAsImNvbF90eXBlIjoibW92aWVfMyIsImNsYXNzX25hbWUiOiIiLCJ0eXBlIjoidmlkZW8iLCJjbGFzc191cmwiOiJ5eTh5LmNvbSIsImFyZWFfbmFtZSI6IiIsImFyZWFfdXJsIjoicGRzcC50diIsInNvcnRfbmFtZSI6IiIsInllYXJfbmFtZSI6IiIsInNvcnRfdXJsIjoiIiwieWVhcl91cmwiOiIiLCJmaW5kX3J1bGUiOiJqczpcbmV2YWwoSlNPTi5wYXJzZShmZXRjaCgnaGlrZXI6Ly9wYWdlL+WIhuexuycsIHt9KSkucnVsZSk7ICAgICAgXG5ldmFsKEpTT04ucGFyc2UoZmV0Y2goJ2hpa2VyOi8vcGFnZS9sYXp5Jywge30pKS5ydWxlKTtcbiAgICAgICAgdmFyIGQgPSBbXTtcbiAgICAgICAgICAgICAgICB2YXIgaG9zdCA9ICdodHRwczovL2RhdGEuN3d6eDkuY29tJzsvL2h0dHBzOi8vc3BpZGVyc2Nsb3VkY24yLjUxMTExNjY2LmNvbVxuICAgICAgICBjb25zdCBwYWdlID0gTVlfUEFHRTtcbiAgICAgICAgdmFyIGRhdGEgPSBbe1xuICAgICAgICAgICAgdGl0bGU6ICfkvKDlqpImIDkgMSDkvKDlqpIgJueyvuS4nOS8oOWqkibpurtt6LGG5Lyg5aqSJum6u23osYbmmKDnlLsm6bq7beixhueMq+eIqibonJxt5qGD5Lyg5aqSJuWkqW3nvo7kvKDlqpIm5pifbeepuuS8oOWqkicsXG4gICAgICAgICAgICBpZDogJzEmNiY3JjgmOSYxMCYxMSYxMiYxMydcbiAgICAgICAgfSwge1xuICAgICAgICAgICAgdGl0bGU6ICfop4bpopEm5YG3772e5ouN6Ieq5ouNJuaXpemfqeinhumikSbmrKfnvo7mgKct54ixJuaZuuiDveaNouiEuCbnu4/lhbjkuInvvZ7nuqcm572R57qi5Li75pKtJuWPsOa5vui+o+WmuSZvbmx5ZmFucycsXG4gICAgICAgICAgICBpZDogJzImMTQmMTUmMTYmMTcmMTgmMTkmMjAmMjEnXG4gICAgICAgIH0sIHtcbiAgICAgICAgICAgIHRpdGxlOiAn55S15b2xJuS4reaWh+Wtl+W5lSbnu4/lhbjntKDvvZ7kurom6auY5riF5pegLeeggSbnvo7popzlt6gt5LmzJuS4nW3oopzliLZt5pyNJlPvvZ5N57O75YiXJuasp+e+juezu+WIlyZI5YuV55WrJyxcbiAgICAgICAgICAgIGlkOiAnMyYyMiYyMyYyNCYyNSYyNiYyNyYyOCYyOSdcbiAgICAgICAgfSwge1xuICAgICAgICAgICAgdGl0bGU6ICflm77niYcm6KGX5ouN5YG3beaLjSbkuJ1t6KKc576O6IW/Juasp+e+jumjjuaDhSbnvZHlj4voh6rmi40m5Y2h6YCa5ryr55S7Jumcsm3lh7rmv4Dmg4Um5ZSv576O5YaZ55yfJuWls23kvJjmg4XmiqUnLFxuICAgICAgICAgICAgaWQ6ICc0JjMwJjMxJjMyJjMzJjM0JjM1JjM2JjM3J1xuICAgICAgICB9LCB7XG4gICAgICAgICAgICB0aXRsZTogJ+Wwj+ivtCbnlJ/mtLvpg73luIIm5LiN5YG35oGLbuaDhSblrabnlJ/moKHlm60m5Lq6772e5aa754af772e5aWzJuaatOOAgeWKm+iZkO+9nuW+hSbmmI7mmJ/lgbblg48m546E5bm75LuZ5L6gJuenkeWtpuW5u+aDsycsXG4gICAgICAgICAgICBpZDogJzUmMzgmMzkmNDAmNDEmNDImNDMmNDQmNDUnXG4gICAgICAgIH1dO1xuXG4vL+WIhuexu1xuICAgICAgICBkYXRhLmZvckVhY2goKGl0ZW0sIGluZGV4KSA9PiB7XG4gICAgICAgICAgICBjbGFzc1RvcChpbmRleCwgaXRlbSwgaG9zdCwgZCwgMCk7XG4gICAgICAgIH0pO1xuLy/mkJzntKLmoYZcbnNlYXJjaE1haW4ocGFnZSwgZCwgXCLwn5SOXCIsXCLmkJzntKLkvaDmg7PopoHnmoQuLi4uXCIpXG5cbi8v6aG16Z2i5Zyw5Z2AXG4gICAgIHZhciB0eXBlSWQgPSBnZXRNeVZhcihob3N0ICsgJ2MnLCAnMScpO1xuICAgICB2YXIganNvbiA9IEpTT04ucGFyc2UoZmV0Y2goaG9zdCsnL2dldERhdGFJbml0Jywge1xuICAgICAgICBib2R5OiB7XG4gICAgICAgICAgICAgICAgXCJuYW1lXCI6IFwiSm9oblwiLFxuICAgICAgICAgICAgICAgIFwiYWdlXCI6IDMxLFxuICAgICAgICAgICAgICAgIFwiY2l0eVwiOiBcIk5ldyBZb3JrXCJcbiAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgbWV0aG9kOiAnUE9TVCdcbiAgICAgICAgICAgICAgICAgICAgfSkpO1xudmFyIGxpbmsgPSBqc29uLmRhdGEubWFjVm9kTGlua01hcFxuXG4gICAgICAgICB2YXIgaHRtbCA9IEpTT04ucGFyc2UoZmV0Y2goaG9zdCsnL2ZvcndhcmQnLCB7XG4gICAgICAgIGJvZHk6IHtcbiAgICAgICAgICAgICAgICBcImNvbW1hbmRcIjogXCJXRUJfR0VUX0lORk9cIixcbiAgICAgICAgICAgICAgICBcInBhZ2VOdW1iZXJcIjogcGFnZSxcbiAgICAgICAgICAgICAgICBcIlJlY29yZHNQYWdlXCI6IDIwLFxuICAgICAgICAgICAgICAgIFwidHlwZUlkXCI6IHR5cGVJZCxcbiAgICAgICAgICAgICAgICBcInR5cGVNaWRcIjogXCIxXCIsXG4gICAgICAgICAgICAgICAgXCJsYW5ndWFnZVR5cGVcIjogXCJDTlwiLFxuICAgICAgICAgICAgICAgIFwiY29udGVudFwiOiBcIlwiXG4gICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgIG1ldGhvZDogJ1BPU1QnXG4gICAgICAgICAgICAgICAgICAgIH0pKTtcblxudmFyIGRhdGEgPSBodG1sLmRhdGEucmVzdWx0TGlzdFxuICAgICAgICAgZm9yIChsZXQgaXQgb2YgZGF0YSkgeyAgICBcbiAgICAgICAgICB2YXIgaWQgPSBpdC5pZDtcbiAgICAgICAgICB2YXIgaW1nID0gaXQudm9kX3BpYztcbiAgICAgICAgICB2YXIgdm9kID0gaXQudm9kX3NlcnZlcl9pZDtcbiAgICAgICAgICAgIGQucHVzaCh7XG4gICAgICAgICAgICAgICAgdGl0bGU6IGl0LnZvZF9uYW1lLFxuICAgICAgICAgICAgICAgIGltZzogaW1nLFxuICAgICAgICAgICAgICAgIHVybDogJCgnJykubGF6eVJ1bGUoKGlkLGltZyx2b2QsbGluaykgPT4ge1xuICAgICAgICB2YXIgZG9tYWluID0gW2xpbmtbdm9kXS5MSU5LXzEsbGlua1t2b2RdLkxJTktfMixsaW5rW3ZvZF0uTElOS18zXVxuICAgICAgICB2YXIgc2V0ID0gbmV3IFNldChkb21haW4pO1xuICAgICAgICBkb21haW4gPSBBcnJheS5mcm9tKHNldCk7XG4gICAgICAgIHZhciB2aWRlbyA9IGltZy5tYXRjaCgvXFwvdmlkZW8uKi8pWzBdLnJlcGxhY2UoJzEuanBnJywncGxheWxpc3QubTN1OCcpXG4gICAgICAgIHZhciB1cmxzID0gZG9tYWluLm1hcChpPT5pK3ZpZGVvKVxuICAgICAgICByZXR1cm4ge3VybHM6dXJsc31cbn0saWQsaW1nLHZvZCxsaW5rKSxcbiAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ21vdmllXzInLCAgICAgICAgICAgIFxuICAgICAgICAgICAgfSk7XG4gICAgICAgICB9ICAgICAgICAgXG5cblxuICAgICAgICAgdmFyIHBpYyA9IEpTT04ucGFyc2UoZmV0Y2goaG9zdCsnL2ZvcndhcmQnLCB7XG4gICAgICAgIGJvZHk6IHtcbiAgICAgICAgICAgICAgICBcImNvbW1hbmRcIjogXCJXRUJfR0VUX0lORk9cIixcbiAgICAgICAgICAgICAgICBcInBhZ2VOdW1iZXJcIjogcGFnZSxcbiAgICAgICAgICAgICAgICBcIlJlY29yZHNQYWdlXCI6IDIwLFxuICAgICAgICAgICAgICAgIFwidHlwZUlkXCI6IHR5cGVJZCxcbiAgICAgICAgICAgICAgICBcInR5cGVNaWRcIjogXCIyXCIsXG4gICAgICAgICAgICAgICAgXCJsYW5ndWFnZVR5cGVcIjogXCJDTlwiLFxuICAgICAgICAgICAgICAgIFwiY29udGVudFwiOiBcIlwiXG4gICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgIG1ldGhvZDogJ1BPU1QnXG4gICAgICAgICAgICAgICAgICAgIH0pKTtcblxudmFyIGRhdGFwID0gcGljLmRhdGEucmVzdWx0TGlzdFxuICAgICAgICAgZm9yIChsZXQgaXQgb2YgZGF0YXApIHsgICAgXG4gICAgICAgICAgdmFyIGFydHBpYyA9IGl0LmFydF9waWM7XG4gICAgICAgICAgdmFyIGlkID0gaXQuaWQ7XG5pZihhcnRwaWMuaW5jbHVkZXMoJzrlm77niYcnKXx8YXJ0cGljPT0nJyl7XG4gICAgICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgICAgIHRpdGxlOiBpdC5hcnRfbmFtZSxcbiAgICAgICAgICAgICAgICB1cmw6IFwiaGlrZXI6Ly9lbXB0eVwiICsgJCgnJykucnVsZSgoaWQsaG9zdCkgPT4ge1xuICAgICAgICAgICAgICAgICAgdmFyIGQgPSBbXVxuICAgICAgICAgICAgICAgICAgdmFyIGh0bWwgPSBKU09OLnBhcnNlKGZldGNoKGhvc3QrJy9mb3J3YXJkJywge1xuICAgICAgICAgICAgICAgICAgICBib2R5OiB7XG4gICAgICAgXCJjb21tYW5kXCI6IFwiV0VCX0dFVF9JTkZPX0RFVEFJTFwiLFxuICAgICAgICAgICAgICAgICAgICBcInR5cGVfTWlkXCI6IFwiMlwiLFxuICAgICAgICAgICAgICAgICAgICBcImlkXCI6IGlkLFxuICAgICAgICAgICAgICAgICAgICBcImxhbmd1YWdlVHlwZVwiOiBcIkNOXCJcbiAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgbWV0aG9kOiAnUE9TVCdcbiAgICAgICAgICAgICAgICAgICAgfSkpO1xuICAgICAgICAgICAgICAgdmFyIGRhdGEgPSBodG1sLmRhdGEucmVzdWx0LmFydF91cmxcbiAgICAgICAgICAgICAgIHZhciB0aXRsZSA9IGh0bWwuZGF0YS5yZXN1bHQuYXJ0X25hbWVcbiAgICAgICAgICAgICAgICAgIGlmKHRpdGxlICE9PW51bGwpe1xuICAgICAgICAgICAgICAgICAgICAgICAgZC5wdXNoKHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aXRsZTogJ+KAnOKAnOKAneKAnTxtaWRkbGU+PGZvbnQgY29sb3I9I0ZGQTUwMD4nK3RpdGxlKyc8L2ZvbnQ+PC9taWRkbGU+JyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB1cmw6ICdoaWtlcjovL2VtcHR5JywgICAgICAgIFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbF90eXBlOiAndGV4dF9jZW50ZXJfMScsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZXh0cmE6IHtsaW5lVmlzaWJsZTogZmFsc2V9XG4gICAgICAgICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIHRyeXtcbiAgICAgICAgICAgICAgICAgICAgdmFyIGNvbnRlbnQgPSBwZGZoKGRhdGEsJ0h0bWwnKS5zcGxpdCgnPGJyPiA8YnI+IDxicj4gPGJyPicpWzFdLnJlcGxhY2UoLzxpZ25vcmVfanNfb3A+W1xcc1xcU10rPFxcL2lnbm9yZV9qc19vcD4vLCcnKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGQucHVzaCh7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGl0bGU6IFwiPG1pZGRsZT48Zm9udCBjb2xvcj1ncmV5PlwiK2NvbnRlbnQrXCI8L2ZvbnQ+PC9taWRkbGU+XCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY29sX3R5cGU6ICdyaWNoX3RleHQnLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGV4dHJhOiB7bGluZVZpc2libGU6IGZhbHNlfVxuICAgICAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgICAgfWNhdGNoe1xuICAgICAgICAgICAgICAgICAgICAgIGQucHVzaCh7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGl0bGU6IFwiPG1pZGRsZT48Zm9udCBjb2xvcj1ncmV5PlwiK2RhdGErXCI8L2ZvbnQ+PC9taWRkbGU+XCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY29sX3R5cGU6ICdyaWNoX3RleHQnLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGV4dHJhOiB7bGluZVZpc2libGU6IGZhbHNlfVxuICAgICAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgICAgICB9IFxuICAgICAgICAgICAgcmV0dXJuIHNldFJlc3VsdChkKVxufSxpZCxob3N0KSxcbiAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ2F2YXRhcicsICAgICAgICAgICAgXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgIH1lbHNle1xuICAgICAgICAgICAgZC5wdXNoKHtcbiAgICAgICAgICAgICAgICB0aXRsZTogaXQuYXJ0X25hbWUsXG4gICAgICAgICAgICAgICAgaW1nOiBhcnRwaWMsXG4gICAgICAgICAgICAgICAgdXJsOiAkKCcnKS5sYXp5UnVsZSgoaWQsaG9zdCkgPT4ge1xuICAgICAgICAgICAgICAgICAgdmFyIGh0bWwgPSBKU09OLnBhcnNlKGZldGNoKGhvc3QrJy9mb3J3YXJkJywge1xuICAgICAgICAgICAgICAgICAgICBib2R5OiB7XG4gICAgICAgXCJjb21tYW5kXCI6IFwiV0VCX0dFVF9JTkZPX0RFVEFJTFwiLFxuICAgICAgICAgICAgICAgICAgICBcInR5cGVfTWlkXCI6IFwiMlwiLFxuICAgICAgICAgICAgICAgICAgICBcImlkXCI6IGlkLFxuICAgICAgICAgICAgICAgICAgICBcImxhbmd1YWdlVHlwZVwiOiBcIkNOXCJcbiAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgbWV0aG9kOiAnUE9TVCdcbiAgICAgICAgICAgICAgICAgICAgfSkpO1xuICAgICAgICAgICAgICAgdmFyIGRhdGEgPSBodG1sLmRhdGEucmVzdWx0LmFydF91cmxcbiAgICAgICAgICAgICAgIHZhciBwaWNzID0gcGRmYShkYXRhLCdib2R5JiZpbWcnKS5tYXAoaT0+cGRmaChpLCdpbWcmJnNyYycpKS5qb2luKCcmJicpXG4gICAgICAgICAgICByZXR1cm4gXCJwaWNzOi8vXCIgKyBwaWNzXG59LGlkLGhvc3QpLFxuICAgICAgICAgICAgICAgIGNvbF90eXBlOiAnbW92aWVfMycsICAgICAgICAgICAgXG4gICAgICAgICAgICB9KTtcbn0gICAgIFxufVxuIHNldFJlc3VsdChkKSIsInNlYXJjaF91cmwiOiJoaWtlcjovL2VtcHR5IyMqKiMjZnlwYWdlIiwiZ3JvdXAiOiIxOOKcmCIsInNlYXJjaEZpbmQiOiJqczpcbnZhciBkID0gW11cblxuICAgICB2YXIganNvbiA9IEpTT04ucGFyc2UoZmV0Y2goJ2h0dHBzOi8vZGF0YS43d3p4OS5jb20vZ2V0RGF0YUluaXQnLCB7XG4gICAgICAgIGJvZHk6IHtcbiAgICAgICAgICAgICAgICBcIm5hbWVcIjogXCJKb2huXCIsXG4gICAgICAgICAgICAgICAgXCJhZ2VcIjogMzEsXG4gICAgICAgICAgICAgICAgXCJjaXR5XCI6IFwiTmV3IFlvcmtcIlxuICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICBtZXRob2Q6ICdQT1NUJ1xuICAgICAgICAgICAgICAgICAgICB9KSk7XG52YXIgbGluayA9IGpzb24uZGF0YS5tYWNWb2RMaW5rTWFwXG5cbiAgICAgICAgIHZhciBodG1sID0gSlNPTi5wYXJzZShmZXRjaCgnaHR0cHM6Ly9kYXRhLjd3eng5LmNvbS9mb3J3YXJkJywge1xuICAgICAgICBib2R5OiB7XG4gICAgICAgICAgICAgICAgICAgIFwiY29tbWFuZFwiOiBcIldFQl9HRVRfSU5GT1wiLFxuICAgICAgICAgICAgICAgICAgICBcInBhZ2VOdW1iZXJcIjogTVlfUEFHRSxcbiAgICAgICAgICAgICAgICAgICAgXCJSZWNvcmRzUGFnZVwiOiAyMCxcbiAgICAgICAgICAgICAgICAgICAgXCJ0eXBlSWRcIjogMCxcbiAgICAgICAgICAgICAgICAgICAgXCJ0eXBlTWlkXCI6IDEsXG4gICAgICAgICAgICAgICAgICAgIFwibGFuZ3VhZ2VUeXBlXCI6IFwiQ05cIixcbiAgICAgICAgICAgICAgICAgICAgXCJjb250ZW50XCI6IE1ZX0tFWVdPUkQsXG4gICAgICAgICAgICAgICAgICAgIFwidHlwZVwiOiAxXG4gICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgIG1ldGhvZDogJ1BPU1QnXG4gICAgICAgICAgICAgICAgICAgIH0pKTtcblxudmFyIGRhdGEgPSBodG1sLmRhdGEucmVzdWx0TGlzdFxuICAgICAgICAgZm9yIChsZXQgaXQgb2YgZGF0YSkgeyAgICBcbiAgICAgICAgICB2YXIgaWQgPSBpdC5pZDtcbiAgICAgICAgICB2YXIgaW1nID0gaXQudm9kX3BpYztcbiAgICAgICAgICB2YXIgdm9kID0gaXQudm9kX3NlcnZlcl9pZDtcbiAgICAgICAgICAgIGQucHVzaCh7XG4gICAgICAgICAgICAgICAgdGl0bGU6IGl0LnZvZF9uYW1lLFxuICAgICAgICAgICAgICAgIGltZzogaW1nLFxuICAgICAgICAgICAgICAgIHVybDogJCgnJykubGF6e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dXNoKHtcXG4gICAgICAgICAgICB0aXRsZTogdGl0bGUgPyB0aXRsZSA6ICfmkJzntKInLFxcbiAgICAgICAgICAgIHVybDogJC50b1N0cmluZygocikgPT4ge1xcbiAgICAgICAgICAgICAgICBwdXRWYXIoJ2tleXdvcmQnLCBpbnB1dCk7XFxuICAgICAgICAgICAgICAgIHJldHVybiAnaGlrZXI6Ly9zZWFyY2g/cnVsZT0nICsgciArICcmcz0nICsgaW5wdXQ7XFxuICAgICAgICAgICAgfSwgTVlfUlVMRS50aXRsZSksXFxuICAgICAgICAgICAgZGVzYzogZGVzYyA/IGRlc2MgOiAn5pCc5L2g5oOz6KaB55qELi4uJyxcXG4gICAgICAgICAgICBjb2xfdHlwZTogJ2lucHV0JyxcXG4gICAgICAgICAgICBleHRyYToge1xcbiAgICAgICAgICAgICAgICBkZWZhdWx0VmFsdWU6IGdldFZhcigna2V5d29yZCcsICcnKSxcXG4gICAgICAgICAgICB9XFxuICAgICAgICB9KTtcXG4gICAgfVxcbiAgICByZXR1cm4gZDtcXG59XFxuXFxuLy/mloflrZfpopzoibJcXG5mdW5jdGlvbiBnZXRIZWFkKHRpdGxlLGNvbG9yKSB7XFxuICAgIHJldHVybiAn4oCY4oCY4oCZ4oCZPHN0cm9uZz48bWlkZGxlPjxmb250IGNvbG9yPVxcXCInK2NvbG9yKydcXFwiPicgKyB0aXRsZSArICc8L2Zyb250PjwvbWlkZGxlPjwvc3Ryb25nPic7XFxufVxcblxcbmZ1bmN0aW9uIGNsYXNzVG9wKGluZGV4LCBkYXRhLCBob3N0LCBkLCBtb2RlLCB2LCBjKSB7XFxuaWYocGFnZSA9PSAxKXtcXG4gICAgaWYgKCF2KSB7XFxuICAgICAgICB2ID0gMDtcXG4gICAgfVxcbiAgICBpZiAoIWMpIHtcXG4gICAgICAgIGMgPSAnYyc7XFxuICAgIH1cXG4gICAgdmFyIGNfdGl0bGUgPSBkYXRhLnRpdGxlLnNwbGl0KCcmJyk7XFxuICAgIGlmIChkYXRhLmlkID09ICcnKSB7XFxuICAgICAgICB2YXIgY19pZCA9IGNfdGl0bGU7XFxuICAgIH0gZWxzZSBpZiAoZGF0YS5pZCA9PSAnQEBAJykge1xcbiAgICAgICAgdmFyIGNfaWQgPSBkYXRhLnRpdGxlLnJlcGxhY2UoL14uKj8mLywgJyYnKS5zcGxpdCgnJicpO1xcblxcbiAgICB9IGVsc2Uge1xcbiAgICAgICAgdmFyIGNfaWQgPSBkYXRhLmlkLnNwbGl0KCcmJyk7XFxuICAgIH1cXG4gICAgY190aXRsZS5mb3JFYWNoKCh0aXRsZSwgaW5kZXhfYywgZGF0YSkgPT4ge1xcbiAgICAgICAgZC5wdXNoKHtcXG4gICAgICAgICAgICB0aXRsZTogaW5kZXhfYyA9PSBnZXRNeVZhcihob3N0ICsgYyArICdpbmRleCcgKyBpbmRleCwgKG1vZGUgfHwgaW5kZXggPT0gdiA/ICcwJyA6ICctMScpKSA/IGdldEhlYWQodGl0bGUsICcjRkY2Njk5JykgOiB0aXRsZSxcXG4gICAgICAgICAgICBjb2xfdHlwZTogJ3Njcm9sbF9idXR0b24nLFxcbiAgICAgICAgICAgIHVybDogY19pZFtpbmRleF9jXS5pbmNsdWRlcygnIycpPydoaWtlcjovL2VtcHR5JzokKCcjbm9Mb2FkaW5nIycpLmxhenlSdWxlKChpbmRleCwgaWQsIGluZGV4X2MsIGhvc3QsIG1vZGUsIHRpdGxlLCB2LCBjKSA9PiB7XFxuICAgICAgICAgICAgICAgIGlmIChtb2RlKSB7XFxuICAgICAgICAgICAgICAgICAgICBwdXRNeVZhcihob3N0ICsgYyArIGluZGV4LCBpZCk7XFxuXFxuICAgICAgICAgICAgICAgIH0gZWxzZSB7XFxuICAgICAgICAgICAgICAgICAgICBwdXRNeVZhcihob3N0ICsgYywgaWQpO1xcbiAgICAgICAgICAgICAgICAgICAgZm9yIChsZXQgbiA9IHY7IG4gPD0gMjA7IG4rKykge1xcbiAgICAgICAgICAgICAgICAgICAgICAgIHB1dE15VmFyKGhvc3QgKyBjICsgJ2luZGV4JyArIG4sICctMScpO1xcbiAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgIGNsZWFyTXlWYXIoaG9zdCArICdwYWdlJyk7XFxuICAgICAgICAgICAgICAgIGNsZWFyTXlWYXIoaG9zdCArICd1cmwnKTtcXG4gICAgICAgICAgICAgICAgcHV0TXlWYXIoaG9zdCArIGMgKyAnaW5kZXgnICsgaW5kZXgsIGluZGV4X2MpO1xcbiAgICAgICAgICAgICAgICByZWZyZXNoUGFnZSgpO1xcbiAgICAgICAgICAgICAgICByZXR1cm4gJ2hpa2VyOi8vZW1wdHknO1xcbiAgICAgICAgICAgIH0sIGluZGV4LCBjX2lkW2luZGV4X2NdLCBpbmRleF9jLCBob3N0LCBtb2RlLCB0aXRsZSwgdiwgYyksXFxuICAgICAgICB9KTtcXG4gICAgfSk7XFxuICAgIGQucHVzaCh7XFxuICAgICAgICBjb2xfdHlwZTogJ2JsYW5rX2Jsb2NrJyxcXG4gICAgfSk7XFxuICAgIHJldHVybiBkO1xcbn19XCJ9LHtcImNvbF90eXBlXCI6XCJtb3ZpZV8zXCIsXCJuYW1lXCI6XCLikaHpppbpobVcIixcInBhdGhcIjpcIummlumhtVwiLFwicnVsZVwiOlwidmFyIGRhdGEgPSBKU09OLnBhcnNlKHBkZmgoaHRtbCwnI19fTkVYVF9EQVRBX18mJkh0bWwnKSkucHJvcHMucGFnZVByb3BzXFxuLypcXG52YXIgdGFiID0gZGF0YS5tZXRhSW5mby5zdHJ1Y3R1cmVkRGF0YVsnQGdyYXBoJ107Ly/nur/ot69cXG50YWJzID0gdGFiWzNdLml0ZW1MaXN0RWxlbWVudC5tYXAoaT0+aS5uYW1lKTtcXG5cXG4vL3ZhciB0YWJzID0gcGRmYShodG1sLCdib2R5JiZoMScpLm1hcChpPT5wZGZoKGksJ1RleHQnKSlcXG52YXIgdGl0bGUgPSBbXVxcbmZvciAobGV0IGkg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c2libGU6ZmFsc2V9XFxuICAgIH0pO1xcblxcbiAgICAgIHZhciBsaXN0ID0gY29udHNbaV07XFxuICAgICAgICBmb3IgKGxldCBpdCBvZiBsaXN0KSB7ICAgICAgIFxcbiAgICAgICAgICAgIGQucHVzaCh7XFxuICAgICAgICAgICAgICAgIHRpdGxlOiBpdC50aXRsZSxcXG4gICAgICAgICAgICAgICAgZGVzYzogaXQucmVsZWFzZSArICdcXFxcdFxcXFx0XFxcXHQnICsgaXQudGltZUxlbmdoLFxcbiAgICAgICAgICAgICAgICBpbWc6IGl0LmltZ19wcmV2aWV3LFxcbiAgICAgICAgICAgICAgICB1cmw6IGhvc3QgKyAnL3ZpZGVvLycgKyBpdC5faWQgKyBsYXp5LFxcbiAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ21vdmllXzInLCAgICAgICAgICAgIFxcbiAgICAgICAgICAgIH0pO1xcbiAgICAgICAgfVxcbiAgICB9XCJ9LHtcImNvbF90eXBlXCI6XCJtb3ZpZV8zXCIsXCJuYW1lXCI6XCLikaLop6PmnpBcIixcInBhdGhcIjpcImxhenlcIixcInJ1bGVcIjpcInZhciBsYXp5PSQoJyNub0xvYWRpbmcjJykubGF6eVJ1bGUoKCkgPT4ge1xcbiAgICB2YXIganMgPSBmZXRjaChpbnB1dCkubWF0Y2goL2NvbnN0IHNvdXJjZVteO10rLylbMF1cXG4gICAgZXZhbChqcylcXG4gICAgcmV0dXJuIHNvdXJjZVxcbn0pXCJ9XSIsImljb24iOiJodHRwczovL3RodW1ic25hcC5jb20vaS9UNjI4M0NNeC5qcGciLCJwcm94eSI6IiJ9
Add Comment
Please, Sign In to add comment