Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@胖大AV@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi6IOW5aSnQVYiLCJhdXRob3IiOiJSIiwidXJsIjoiaGlrZXI6Ly9lbXB0eSMjZnlwYWdlIiwidmVyc2lvbiI6MjAyNDAyMTAsImNvbF90eXBlIjoibW92aWVfMyIsImNsYXNzX25hbWUiOiIiLCJ0eXBlIjoiYWxsIiwiY2xhc3NfdXJsIjoieXk4eS5jb20iLCJhcmVhX25hbWUiOiIiLCJhcmVhX3VybCI6InBkc3AudHYiLCJzb3J0X25hbWUiOiIiLCJ5ZWFyX25hbWUiOiIiLCJzb3J0X3VybCI6IiIsInllYXJfdXJsIjoiIiwiZmluZF9ydWxlIjoianM6XG5ldmFsKEpTT04ucGFyc2UoZmV0Y2goJ2hpa2VyOi8vcGFnZS/liIbnsbsnLCB7fSkpLnJ1bGUpOyAgICAgIFxuZXZhbChKU09OLnBhcnNlKGZldGNoKCdoaWtlcjovL3BhZ2UvbGF6eScsIHt9KSkucnVsZSk7XG4gICAgICAgIHZhciBkID0gW107XG4gICAgICAgICAgICAgICAgdmFyIGhvc3QgPSAnaHR0cHM6Ly9kYXRhLjd3eng5LmNvbSc7Ly9odHRwczovL3NwaWRlcnNjbG91ZGNuMi41MTExMTY2Ni5jb21cbiAgICAgICAgY29uc3QgcGFnZSA9IE1ZX1BBR0U7XG4gICAgICAgIHZhciBkYXRhID0gW3tcbiAgICAgICAgICAgIHRpdGxlOiAn5Lyg5aqSJiA5IDEg5Lyg5aqSICbnsr7kuJzkvKDlqpIm6bq76LGG5Lyg5aqSJum6u+ixhuaYoOeUuybpurvosYbnjKvniKom6Jyc5qGD5Lyg5aqSJuWkqee+juS8oOWqkibmmJ/nqbrkvKDlqpInLFxuICAgICAgICAgICAgaWQ6ICcxJjYmNyY4JjkmMTAmMTEmMTImMTMnXG4gICAgICAgIH0sIHtcbiAgICAgICAgICAgIHRpdGxlOiAn6KeG6aKRJuWBt+aLjeiHquaLjSbml6Xpn6nop4bpopEm5qyn576O5oCn54ixJuaZuuiDveaNouiEuCbnu4/lhbjkuInnuqcm572R57qi5Li75pKtJuWPsOa5vui+o+WmuSZvbmx5ZmFucycsXG4gICAgICAgICAgICBpZDogJzImMTQmMTUmMTYmMTcmMTgmMTkmMjAmMjEnXG4gICAgICAgIH0sIHtcbiAgICAgICAgICAgIHRpdGxlOiAn55S15b2xJuS4reaWh+Wtl+W5lSbnu4/lhbjntKDkurom6auY5riF5peg56CBJue+juminOW3qOS5sybkuJ3oopzliLbmnI0mU03ns7vliJcm5qyn576O57O75YiXJkjli5XnlasnLFxuICAgICAgICAgICAgaWQ6ICczJjIyJjIzJjI0JjI1JjI2JjI3JjI4JjI5J1xuICAgICAgICB9LCB7XG4gICAgICAgICAgICB0aXRsZTogJ+WbvueJhybooZfmi43lgbfmi40m5Lid6KKc576O6IW/Juasp+e+jumjjuaDhSbnvZHlj4voh6rmi40m5Y2h6YCa5ryr55S7JumcsuWHuua/gOaDhSbllK/nvo7lhpnnnJ8m5aWz5LyY5oOF5oqlJyxcbiAgICAgICAgICAgIGlkOiAnNCYzMCYzMSYzMiYzMyYzNCYzNSYzNiYzNydcbiAgICAgICAgfSwge1xuICAgICAgICAgICAgdGl0bGU6ICflsI/or7Qm55Sf5rS76YO95biCJuS4jeWBt+aBi+aDhSblrabnlJ/moKHlm60m5Lq65aa754af5aWzJuaatOWKm+iZkOW+hSbmmI7mmJ/lgbblg48m546E5bm75LuZ5L6gJuenkeWtpuW5u+aDsycsXG4gICAgICAgICAgICBpZDogJzUmMzgmMzkmNDAmNDEmNDImNDMmNDQmNDUnXG4gICAgICAgIH1dO1xuXG4vL+WIhuexu1xuICAgICAgICBkYXRhLmZvckVhY2goKGl0ZW0sIGluZGV4KSA9PiB7XG4gICAgICAgICAgICBjbGFzc1RvcChpbmRleCwgaXRlbSwgaG9zdCwgZCwgMCk7XG4gICAgICAgIH0pO1xuLy/mkJzntKLmoYZcbnNlYXJjaE1haW4ocGFnZSwgZCwgXCLwn5SOXCIsXCLmkJzntKLkvaDmg7PopoHnmoQuLi4uXCIpXG5cbi8v6aG16Z2i5Zyw5Z2AXG4gICAgIHZhciB0eXBlSWQgPSBnZXRNeVZhcihob3N0ICsgJ2MnLCAnMScpO1xuICAgICB2YXIganNvbiA9IEpTT04ucGFyc2UoZmV0Y2goaG9zdCsnL2dldERhdGFJbml0Jywge1xuICAgICAgICBib2R5OiB7XG4gICAgICAgICAgICAgICAgXCJuYW1lXCI6IFwiSm9oblwiLFxuICAgICAgICAgICAgICAgIFwiYWdlXCI6IDMxLFxuICAgICAgICAgICAgICAgIFwiY2l0eVwiOiBcIk5ldyBZb3JrXCJcbiAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgbWV0aG9kOiAnUE9TVCdcbiAgICAgICAgICAgICAgICAgICAgfSkpO1xudmFyIGxpbmsgPSBqc29uLmRhdGEubWFjVm9kTGlua01hcFxuXG4gICAgICAgICB2YXIgaHRtbCA9IEpTT04ucGFyc2UoZmV0Y2goaG9zdCsnL2ZvcndhcmQnLCB7XG4gICAgICAgIGJvZHk6IHtcbiAgICAgICAgICAgICAgICBcImNvbW1hbmRcIjogXCJXRUJfR0VUX0lORk9cIixcbiAgICAgICAgICAgICAgICBcInBhZ2VOdW1iZXJcIjogcGFnZSxcbiAgICAgICAgICAgICAgICBcIlJlY29yZHNQYWdlXCI6IDIwLFxuICAgICAgICAgICAgICAgIFwidHlwZUlkXCI6IHR5cGVJZCxcbiAgICAgICAgICAgICAgICBcInR5cGVNaWRcIjogXCIxXCIsXG4gICAgICAgICAgICAgICAgXCJsYW5ndWFnZVR5cGVcIjogXCJDTlwiLFxuICAgICAgICAgICAgICAgIFwiY29udGVudFwiOiBcIlwiXG4gICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgIG1ldGhvZDogJ1BPU1QnXG4gICAgICAgICAgICAgICAgICAgIH0pKTtcblxudmFyIGRhdGEgPSBodG1sLmRhdGEucmVzdWx0TGlzdFxuICAgICAgICAgZm9yIChsZXQgaXQgb2YgZGF0YSkgeyAgICBcbiAgICAgICAgICB2YXIgaWQgPSBpdC5pZDtcbiAgICAgICAgICB2YXIgaW1nID0gaXQudm9kX3BpYztcbiAgICAgICAgICB2YXIgdm9kID0gaXQudm9kX3NlcnZlcl9pZDtcbiAgICAgICAgICAgIGQucHVzaCh7XG4gICAgICAgICAgICAgICAgdGl0bGU6IGl0LnZvZF9uYW1lLFxuICAgICAgICAgICAgICAgIGltZzogaW1nLFxuICAgICAgICAgICAgICAgIHVybDogJCgnJykubGF6eVJ1bGUoKGlkLGltZyx2b2QsbGluaykgPT4ge1xuICAgICAgICB2YXIgZG9tYWluID0gW2xpbmtbdm9kXS5MSU5LXzEsbGlua1t2b2RdLkxJTktfMixsaW5rW3ZvZF0uTElOS18zXVxuICAgICAgICB2YXIgc2V0ID0gbmV3IFNldChkb21haW4pO1xuICAgICAgICBkb21haW4gPSBBcnJheS5mcm9tKHNldCk7XG4gICAgICAgIHZhciB2aWRlbyA9IGltZy5tYXRjaCgvXFwvdmlkZW8uKi8pWzBdLnJlcGxhY2UoJzEuanBnJywncGxheWxpc3QubTN1OCcpXG4gICAgICAgIHZhciB1cmxzID0gZG9tYWluLm1hcChpPT5pK3ZpZGVvKVxuICAgICAgICByZXR1cm4ge3VybHM6dXJsc31cbn0saWQsaW1nLHZvZCxsaW5rKSxcbiAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ21vdmllXzInLCAgICAgICAgICAgIFxuICAgICAgICAgICAgfSk7XG4gICAgICAgICB9ICAgICAgICAgXG5cblxuICAgICAgICAgdmFyIHBpYyA9IEpTT04ucGFyc2UoZmV0Y2goaG9zdCsnL2ZvcndhcmQnLCB7XG4gICAgICAgIGJvZHk6IHtcbiAgICAgICAgICAgICAgICBcImNvbW1hbmRcIjogXCJXRUJfR0VUX0lORk9cIixcbiAgICAgICAgICAgICAgICBcInBhZ2VOdW1iZXJcIjogcGFnZSxcbiAgICAgICAgICAgICAgICBcIlJlY29yZHNQYWdlXCI6IDIwLFxuICAgICAgICAgICAgICAgIFwidHlwZUlkXCI6IHR5cGVJZCxcbiAgICAgICAgICAgICAgICBcInR5cGVNaWRcIjogXCIyXCIsXG4gICAgICAgICAgICAgICAgXCJsYW5ndWFnZVR5cGVcIjogXCJDTlwiLFxuICAgICAgICAgICAgICAgIFwiY29udGVudFwiOiBcIlwiXG4gICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgIG1ldGhvZDogJ1BPU1QnXG4gICAgICAgICAgICAgICAgICAgIH0pKTtcblxudmFyIGRhdGFwID0gcGljLmRhdGEucmVzdWx0TGlzdFxuICAgICAgICAgZm9yIChsZXQgaXQgb2YgZGF0YXApIHsgICAgXG4gICAgICAgICAgdmFyIGFydHBpYyA9IGl0LmFydF9waWM7XG4gICAgICAgICAgdmFyIGlkID0gaXQuaWQ7XG5pZihhcnRwaWMuaW5jbHVkZXMoJzrlm77niYcnKXx8YXJ0cGljPT0nJyl7XG4gICAgICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgICAgIHRpdGxlOiBpdC5hcnRfbmFtZSxcbiAgICAgICAgICAgICAgICB1cmw6IFwiaGlrZXI6Ly9lbXB0eVwiICsgJCgnJykucnVsZSgoaWQsaG9zdCkgPT4ge1xuICAgICAgICAgICAgICAgICAgdmFyIGQgPSBbXVxuICAgICAgICAgICAgICAgICAgdmFyIGh0bWwgPSBKU09OLnBhcnNlKGZldGNoKGhvc3QrJy9mb3J3YXJkJywge1xuICAgICAgICAgICAgICAgICAgICBib2R5OiB7XG4gICAgICAgXCJjb21tYW5kXCI6IFwiV0VCX0dFVF9JTkZPX0RFVEFJTFwiLFxuICAgICAgICAgICAgICAgICAgICBcInR5cGVfTWlkXCI6IFwiMlwiLFxuICAgICAgICAgICAgICAgICAgICBcImlkXCI6IGlkLFxuICAgICAgICAgICAgICAgICAgICBcImxhbmd1YWdlVHlwZVwiOiBcIkNOXCJcbiAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgbWV0aG9kOiAnUE9TVCdcbiAgICAgICAgICAgICAgICAgICAgfSkpO1xuICAgICAgICAgICAgICAgdmFyIGRhdGEgPSBodG1sLmRhdGEucmVzdWx0LmFydF91cmxcbiAgICAgICAgICAgICAgIHZhciB0aXRsZSA9IGh0bWwuZGF0YS5yZXN1bHQuYXJ0X25hbWVcbiAgICAgICAgICAgICAgICAgIGlmKHRpdGxlICE9PW51bGwpe1xuICAgICAgICAgICAgICAgICAgICAgICAgZC5wdXNoKHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aXRsZTogJ+KAnOKAnOKAneKAnTxtaWRkbGU+PGZvbnQgY29sb3I9I0ZGQTUwMD4nK3RpdGxlKyc8L2ZvbnQ+PC9taWRkbGU+JyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB1cmw6ICdoaWtlcjovL2VtcHR5JywgICAgICAgIFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbF90eXBlOiAndGV4dF9jZW50ZXJfMScsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZXh0cmE6IHtsaW5lVmlzaWJsZTogZmFsc2V9XG4gICAgICAgICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIHRyeXtcbiAgICAgICAgICAgICAgICAgICAgdmFyIGNvbnRlbnQgPSBwZGZoKGRhdGEsJ0h0bWwnKS5zcGxpdCgnPGJyPiA8YnI+IDxicj4gPGJyPicpWzFdLnJlcGxhY2UoLzxpZ25vcmVfanNfb3A+W1xcc1xcU10rPFxcL2lnbm9yZV9qc19vcD4vLCcnKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGQucHVzaCh7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGl0bGU6IFwiPG1pZGRsZT48Zm9udCBjb2xvcj1ncmV5PlwiK2NvbnRlbnQrXCI8L2ZvbnQ+PC9taWRkbGU+XCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY29sX3R5cGU6ICdyaWNoX3RleHQnLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGV4dHJhOiB7bGluZVZpc2libGU6IGZhbHNlfVxuICAgICAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgICAgfWNhdGNoe1xuICAgICAgICAgICAgICAgICAgICAgIGQucHVzaCh7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGl0bGU6IFwiPG1pZGRsZT48Zm9udCBjb2xvcj1ncmV5PlwiK2RhdGErXCI8L2ZvbnQ+PC9taWRkbGU+XCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY29sX3R5cGU6ICdyaWNoX3RleHQnLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGV4dHJhOiB7bGluZVZpc2libGU6IGZhbHNlfVxuICAgICAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgICAgICB9IFxuICAgICAgICAgICAgcmV0dXJuIHNldFJlc3VsdChkKVxufSxpZCxob3N0KSxcbiAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ2F2YXRhcicsICAgICAgICAgICAgXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgIH1lbHNle1xuICAgICAgICAgICAgZC5wdXNoKHtcbiAgICAgICAgICAgICAgICB0aXRsZTogaXQuYXJ0X25hbWUsXG4gICAgICAgICAgICAgICAgaW1nOiBhcnRwaWMsXG4gICAgICAgICAgICAgICAgdXJsOiAkKCcnKS5sYXp5UnVsZSgoaWQsaG9zdCkgPT4ge1xuICAgICAgICAgICAgICAgICAgdmFyIGh0bWwgPSBKU09OLnBhcnNlKGZldGNoKGhvc3QrJy9mb3J3YXJkJywge1xuICAgICAgICAgICAgICAgICAgICBib2R5OiB7XG4gICAgICAgXCJjb21tYW5kXCI6IFwiV0VCX0dFVF9JTkZPX0RFVEFJTFwiLFxuICAgICAgICAgICAgICAgICAgICBcInR5cGVfTWlkXCI6IFwiMlwiLFxuICAgICAgICAgICAgICAgICAgICBcImlkXCI6IGlkLFxuICAgICAgICAgICAgICAgICAgICBcImxhbmd1YWdlVHlwZVwiOiBcIkNOXCJcbiAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgbWV0aG9kOiAnUE9TVCdcbiAgICAgICAgICAgICAgICAgICAgfSkpO1xuICAgICAgICAgICAgICAgdmFyIGRhdGEgPSBodG1sLmRhdGEucmVzdWx0LmFydF91cmxcbiAgICAgICAgICAgICAgIHZhciBwaWNzID0gcGRmYShkYXRhLCdib2R5JiZpbWcnKS5tYXAoaT0+cGRmaChpLCdpbWcmJnNyYycpKS5qb2luKCcmJicpXG4gICAgICAgICAgICByZXR1cm4gXCJwaWNzOi8vXCIgKyBwaWNzXG59LGlkLGhvc3QpLFxuICAgICAgICAgICAgICAgIGNvbF90eXBlOiAnbW92aWVfMycsICAgICAgICAgICAgXG4gICAgICAgICAgICB9KTtcbn0gICAgIFxufVxuIHNldFJlc3VsdChkKSIsInNlYXJjaF91cmwiOiJoaWtlcjovL2VtcHR5IyMqKiMjZnlwYWdlIiwiZ3JvdXAiOiLlpb0iLCJzZWFyY2hGaW5kIjoianM6XG52YXIgZCA9IFtdXG5cbiAgICAgdmFyIGpzb24gPSBKU09OLnBhcnNlKGZldGNoKCdodHRwczovL2RhdGEuN3d6eDkuY29tL2dldERhdGFJbml0Jywge1xuICAgICAgICBib2R5OiB7XG4gICAgICAgICAgICAgICAgXCJuYW1lXCI6IFwiSm9oblwiLFxuICAgICAgICAgICAgICAgIFwiYWdlXCI6IDMxLFxuICAgICAgICAgICAgICAgIFwiY2l0eVwiOiBcIk5ldyBZb3JrXCJcbiAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgbWV0aG9kOiAnUE9TVCdcbiAgICAgICAgICAgICAgICAgICAgfSkpO1xudmFyIGxpbmsgPSBqc29uLmRhdGEubWFjVm9kTGlua01hcFxuXG4gICAgICAgICB2YXIgaHRtbCA9IEpTT04ucGFyc2UoZmV0Y2goJ2h0dHBzOi8vZGF0YS43d3p4OS5jb20vZm9yd2FyZCcsIHtcbiAgICAgICAgYm9keToge1xuICAgICAgICAgICAgICAgICAgICBcImNvbW1hbmRcIjogXCJXRUJfR0VUX0lORk9cIixcbiAgICAgICAgICAgICAgICAgICAgXCJwYWdlTnVtYmVyXCI6IE1ZX1BBR0UsXG4gICAgICAgICAgICAgICAgICAgIFwiUmVjb3Jkc1BhZ2VcIjogMjAsXG4gICAgICAgICAgICAgICAgICAgIFwidHlwZUlkXCI6IDAsXG4gICAgICAgICAgICAgICAgICAgIFwidHlwZU1pZFwiOiAxLFxuICAgICAgICAgICAgICAgICAgICBcImxhbmd1YWdlVHlwZVwiOiBcIkNOXCIsXG4gICAgICAgICAgICAgICAgICAgIFwiY29udGVudFwiOiBNWV9LRVlXT1JELFxuICAgICAgICAgICAgICAgICAgICBcInR5cGVcIjogMVxuICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICBtZXRob2Q6ICdQT1NUJ1xuICAgICAgICAgICAgICAgICAgICB9KSk7XG5cbnZhciBkYXRhID0gaHRtbC5kYXRhLnJlc3VsdExpc3RcbiAgICAgICAgIGZvciAobGV0IGl0IG9mIGRhdGEpIHsgICAgXG4gICAgICAgICAgdmFyIGlkID0gaXQuaWQ7XG4gICAgICAgICAgdmFyIGltZyA9IGl0LnZvZF9waWM7XG4gICAgICAgICAgdmFyIHZvZCA9IGl0LnZvZF9zZXJ2ZXJfaWQ7XG4gICAgICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgICAgIHRpdGxlOiBpdC52b2RfbmFtZSxcbiAgICAgICAgICAgICAgICBpbWc6IGltZyxcbiAgICAgICAgICAgICAgICB1cmw6ICQoJycpLmxhenlSdWxlKChpZCxpbWcsdm9kLGxpbmspID0+IHtcbiAgICAgICAgdmFyIGRvbWFpbi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0ICsgYyArICdpbmRleCcgKyBuLCAnLTEnKTtcXG4gICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICBjbGVhck15VmFyKGhvc3QgKyAncGFnZScpO1xcbiAgICAgICAgICAgICAgICBjbGVhck15VmFyKGhvc3QgKyAndXJsJyk7XFxuICAgICAgICAgICAgICAgIHB1dE15VmFyKGhvc3QgKyBjICsgJ2luZGV4JyArIGluZGV4LCBpbmRleF9jKTtcXG4gICAgICAgICAgICAgICAgcmVmcmVzaFBhZ2UoKTtcXG4gICAgICAgICAgICAgICAgcmV0dXJuICdoaWtlcjovL2VtcHR5JztcXG4gICAgICAgICAgICB9LCBpbmRleCwgY19pZFtpbmRleF9jXSwgaW5kZXhfYywgaG9zdCwgbW9kZSwgdGl0bGUsIHYsIGMpLFxcbiAgICAgICAgfSk7XFxuICAgIH0pO1xcbiAgICBkLnB1c2goe1xcbiAgICAgICAgY29sX3R5cGU6ICdibGFua19ibG9jaycsXFxuICAgIH0pO1xcbiAgICByZXR1cm4gZDtcXG59fVwifSx7XCJjb2xfdHlwZVwiOlwibW92aWVfM1wiLFwibmFtZVwiOlwi4pGh6aaW6aG1XCIsXCJwYXRoXCI6XCLpppbpobVcIixcInJ1bGVcIjpcInZhciBkYXRhID0gSlNPTi5wYXJzZShwZGZoKGh0bWwsJyNfX05FWFRfREFUQV9fJiZIdG1sJykpLnByb3BzLnBhZ2VQcm9wc1xcbi8qXFxudmFyIHRhYiA9IGRhdGEubWV0YUluZm8uc3RydWN0dXJlZERhdGFbJ0BncmFwaCddOy8v57q/6LevXFxudGFicyA9IHRhYlszXS5pdGVtTGlzdEVsZW1lbnQubWFwKGk9PmkubmFtZSk7XFxuXFxuLy92YXIgdGFicyA9IHBkZmEoaHRtbCwnYm9keSYmaDEnKS5tYXAoaT0+cGRmaChpLCdUZXh0JykpXFxudmFyIHRpdGxlID0gW11cXG5mb3IgKGxldCBpIGluIGNvbnRzKSB7X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xcbiAgICB9KTtcXG5cXG4gICAgICB2YXIgbGlzdCA9IGNvbnRzW2ldO1xcbiAgICAgICAgZm9yIChsZXQgaXQgb2YgbGlzdCkgeyAgICAgICBcXG4gICAgICAgICAgICBkLnB1c2goe1xcbiAgICAgICAgICAgICAgICB0aXRsZTogaXQudGl0bGUsXFxuICAgICAgICAgICAgICAgIGRlc2M6IGl0LnJlbGVhc2UgKyAnXFxcXHRcXFxcdFxcXFx0JyArIGl0LnRpbWVMZW5naCxcXG4gICAgICAgICAgICAgICAgaW1nOiBpdC5pbWdfcHJldmlldyxcXG4gICAgICAgICAgICAgICAgdXJsOiBob3N0ICsgJy92aWRlby8nICsgaXQuX2lkICsgbGF6eSxcXG4gICAgICAgICAgICAgICAgY29sX3R5cGU6ICdtb3ZpZV8yJywgICAgICAgICAgICBcXG4gICAgICAgICAgICB9KTtcXG4gICAgICAgIH1cXG4gICAgfVwifSx7XCJjb2xfdHlwZVwiOlwibW92aWVfM1wiLFwibmFtZVwiOlwi4pGi6Kej5p6QXCIsXCJwYXRoXCI6XCJsYXp5XCIsXCJydWxlXCI6XCJ2YXIgbGF6eT0kKCcjbm9Mb2FkaW5nIycpLmxhenlSdWxlKCgpID0+IHtcXG4gICAgdmFyIGpzID0gZmV0Y2goaW5wdXQpLm1hdGNoKC9jb25zdCBzb3VyY2VbXjtdKy8pWzBdXFxuICAgIGV2YWwoanMpXFxuICAgIHJldHVybiBzb3VyY2VcXG59KVwifV0iLCJpY29uIjoiaHR0cHM6Ly90aHVtYnNuYXAuY29tL2kvVDYyODNDTXguanBnIiwicHJveHkiOiIifQ==
Add Comment
Please, Sign In to add comment