Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:二级页面详情¥page_detail¥追光的日子@@eyJkYXRhIjoie1wiYXNzb2NpYXRlZE1vZGVsc01hcEZvckpvaW5UYWJsZVwiOnt9LFwiYXNzb2NpYXRlZE1vZGVsc01hcFdpdGhGS1wiOnt9LFwiYXNzb2NpYXRlZE1vZGVsc01hcFdpdGhvdXRGS1wiOnt9LFwiZmllbGRzVG9TZXRUb0RlZmF1bHRcIjpbXSxcImdtdE1vZGlmaWVkXCI6MCxcImlkXCI6MCxcImxhc3RfY2hhcHRlcl9ydWxlXCI6XCJcIixcImxpc3RUb0NsZWFyQXNzb2NpYXRlZEZLXCI6W10sXCJsaXN0VG9DbGVhclNlbGZGS1wiOltdLFwicGFnZUxpc3RcIjpbe1wiY29sX3R5cGVcIjpcIm1vdmllXzNcIixcIm5hbWVcIjpcImxhenlcIixcInBhdGhcIjpcImxhenlcIixcInJ1bGVcIjpcInZhciBsYXp5ID0gJCgnJykubGF6eVJ1bGUoKCkgPT4ge1xcbiAgICAgICAgICAgIHRyeSB7XFxuXFxuXFxuICAgICAgICAgICAgICAgIGlmIChpbnB1dC5pbmNsdWRlcygnZG93bicpKSB7XFxuXFxuXFxuICAgICAgICAgICAgICAgICAgICB2YXIgdXJsID0gSlNPTi5wYXJzZShmZXRjaChpbnB1dCwge1xcbiAgICAgICAgICAgICAgICAgICAgICAgIG9ubHlIZWFkZXJzOiB0cnVlXFxuICAgICAgICAgICAgICAgICAgICB9KSkudXJsXFxuICAgICAgICAgICAgICAgICAgICBpZiAoL3F1YXJrLy50ZXN0KHVybCkpIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gXFxcImhpa2VyOi8vc2VhcmNoP3M9XFxcIiArIHVybCArIFxcXCImcnVsZT11Y2tr5LqRXFxcIjtcXG4gICAgICAgICAgICAgICAgICAgIH19XFxuXFxuICAgICAgICAgICAgICAgICAgICBmdW5jdGlvbiB0b1VybChwbGF5VXJsKSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKC9tZ3R2fHNvaHUvLnRlc3QocGxheVVybCkpIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHBsYXlVcmwgKyBcXFwiO3tVc2VyLUFnZW50QE1vemlsbGEvNS4wIChXaW5kb3dzIE5UIDEwLjApfVxcXCI7XFxuICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIGlmICgvYmlsaS8udGVzdChwbGF5VXJsKSkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gcGxheVVybCArIFxcXCI7e1VzZXItQWdlbnRATW96aWxsYS81LjAmJlJlZmVyZXJAaHR0cHM6Ly93d3cuYmlsaWJpbGkuY29tfVxcXCI7XFxuICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIGlmICgvaXhpZ3VhLy50ZXN0KHBsYXlVcmwpKSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBwbGF5VXJsICsgXFxcIiNpc1ZpZGVvPXRydWUjXFxcIiArIFxcXCIjLm1wNDt7UmVmZXJlckBodHRwczovL3d3dy5peGlndWEuY29tLyYmVXNlci1BZ2VudEBNb3ppbGxhLzUuMH1cXFwiO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAoL3F1YXJrLy50ZXN0KHBsYXlVcmwpKSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBcXFwiaGlrZXI6Ly9zZWFyY2g/cz1cXFwiICsgaW5wdXQgKyBcXFwiJnJ1bGU9dWNra+S6kVxcXCI7XFxuICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHBsYXlVcmw7XFxuICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgfVxcblxcbiAgICAgICAgICAgICAgICAgICAgdmFyIGh0bWwgPSByZXF1ZXN0KGlucHV0LCB7fSk7XFxuICAgICAgICAgICAgICAgICAgICB2YXIgcGxheWVyX2RhdGEgPSBKU09OLnBhcnNlKGh0bWwubWF0Y2goL3IgcGxheWVyXy4qPz0oLio/KTwvKVsxXSk7XFxuICAgICAgICAgICAgICAgICAgICB2YXIgZnJvID0gcGxheWVyX2RhdGEuZnJvbTtcXG4gICAgICAgICAgICAgICAgICAgIHZhciBwbGF5VXJsID0gcGxheWVyX2RhdGEudXJsO1xcblxcblxcbiAgICAgICAgICAgICAgICAgICAgaWYgKHBsYXllcl9kYXRhLmVuY3J5cHQgPT0gJzEnKSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgcGxheVVybCA9IHVuZXNjYXBlKHBsYXllcl9kYXRhLnVybCk7XFxuICAgICAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKHBsYXllcl9kYXRhLmVuY3J5cHQgPT0gJzInKSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgcGxheVVybCA9IHVuZXNjYXBlKGJhc2U2NERlY29kZShwbGF5ZXJfZGF0YS51cmwpKTtcXG4gICAgICAgICAgICAgICAgICAgIH07XFxuICAgICAgICAgICAgICAgICAgICB2YXIgZXhjbHVkZSA9IC9wbGF5bTN1OHxtM3U4XFxcXC50dnxtaW5cXFxcLmNzc3w0MDRcXFxcLm0zdTh8XFxcXC5jc3MvO1xcbiAgICAgICAgICAgICAgICAgICAgdmFyIGNvbnRhaW4gPSAvXFxcXC5tcDR8XFxcXC5tM3U4fFxcXFwuZmx2fFxcXFwuYXZpfFxcXFwubXBlZ3xcXFxcLndtdnxcXFxcLm1vdnxcXFxcLnJtdmJ8XFxcXC5kYXR8cXFCRmRvd25sb2FkfG1pbWU9dmlkZW8lMkZ8dmlkZW9fbXA0LztcXG4gICAgICAgICAgICAgICAgICAgIGlmICghZXhjbHVkZS50ZXN0KHBsYXlVcmwpICYmIGNvbnRhaW4udGVzdChwbGF5VXJsKSkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiB0b1VybChwbGF5VXJsKTtcXG4gICAgICAgICAgICAgICAgICAgIH1cXG5cXG4gICAgICAgICAgICAgICAgICAgIHZhciBqeFVybCA9ICdodHRwczovL2xhbmd1YW5nLmtza3N5LmNvbS8/dXJsPScgKyBwbGF5VXJsICsgJyZ0bT0nICsgcGxheWVyX2RhdGEudG0gKyAnJmtleT0nICsgcGxheWVyX2RhdGEua2V5ICsgJyZuZXh0PScgKyBwbGF5ZXJfZGF0YS5saW5rX25leHQgKyAnJnRpdGxlPScgKyBwZGZoKGh0bWwsIFxcXCJ0aXRsZSYmVGV4dFxcXCIpLnNwbGl0KFxcXCItXFxcIilbMF07XFxuICAgICAgICAgICAgICAgICAgICB2YXIganhIdG1sID0gcmVxdWVzdChqeFVybCwge1xcbiAgICAgICAgICAgICAgICAgICAgICAgIGhlYWRlcnM6IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgXFxcIlVzZXItQWdlbnRcXFwiOiBcXFwiTW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMClcXFwiXFxuICAgICAgICAgICAgICAgICAgICAgICAgfSxcXG4gICAgICAgICAgICAgICAgICAgICAgICBtZXRob2Q6IFxcXCJHRVRcXFwiXFxuICAgICAgICAgICAgICAgICAgICB9KTtcXG4gICAgICAgICAgICAgICAgICAgIGV2YWwoanhIdG1sLm1hdGNoKC92YXIgY29uZmlnID0ge1tcXFxcc1xcXFxTXSo/fS8pWzBdICsgXFxcIlxcXCIpO1xcbiAgICAgICAgICAgICAgICAgICAgdmFyIGFwaVVybCA9ICdodHRwczovL2xhbmd1YW5nLmtza3N5LmNvbS9BUEkucGhwJztcXG4gICAgICAgICAgICAgICAgICAgIHZhciBhcGlIdG1sID0gcmVxdWVzdChhcGlVcmwsIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICBoZWFkZXJzOiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxcXCJVc2VyLUFnZW50XFxcIjogXFxcIk1vemlsbGEvNS4wIChXaW5kb3dzIE5UIDEwLjApXFxcIlxcbiAgICAgICAgICAgICAgICAgICAgICAgIH0sXFxuICAgICAgICAgICAgICAgICAgICAgICAgYm9keTogXFxcInVybD1cXFwiICsgY29uZmlnLnVybCArIFxcXCImdGltZT1cXFwiICsgY29uZmlnLnRpbWUgKyBcXFwiJmtleT1cXFwiICsgY29uZmlnLmtleSxcXG4gICAgICAgICAgICAgICAgICAgICAgICBtZXRob2Q6IFxcXCJQT1NUXFxcIlxcbiAgICAgICAgICAgICAgICAgICAgfSk7XFxuICAgICAgICAgICAgICAgICAgICB2YXIganNvbiA9IEpTT04ucGFyc2UoYXBpSHRtbCk7XFxuICAgICAgICAgICAgICAgICAgICBpZiAoanNvbi5jb2RlID09IDIwMCkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgIHBsYXlVcmwgPSBqc29uLnVybDtcXG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gdG9VcmwocGxheVVybCk7XFxuICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiAndG9hc3Q6Ly8nICsganNvbi5tc2c7XFxuICAgICAgICAgICAgICAgICAgICB9XFxuXFxuICAgICAgICAgICAgICAgIH0gY2F0Y2ggKGUpIHtcXG4gICAgICAgICAgICAgICAgICAgIC8vc2V0RXJyb3IoZSk7XFxuICAgICAgICAgICAgICAgICAgICBzaG93TG9hZGluZyhcXFwi5q2j5Zyo6L+b6KGM5qOA57Si77yM6K+356iN5YCZLi4uXFxcIik7XFxuICAgICAgICAgICAgICAgICAgICB2YXIgdmlkZW8gPSAneDVSdWxlOi8vJyArIGlucHV0ICsgJ0AnICsgJC50b1N0cmluZygoKSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgLy9mYmEubG9nKGZiYS5nZXRVcmxzKCkpXFxuICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHVybHMgPSBfZ2V0VXJscygpXFxuICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGV4Y2x1ZGUgPSAvcGxheW0zdTh8bTN1OFxcXFwudHZ8bWluXFxcXC5jc3N8NDA0XFxcXC5tM3U4fFxcXFwuY3NzLztcXG4gICAgICAgICAgICAgICAgICAgICAgICB2YXIgY29udGFpbiA9IC9cXFxcLm1wNHxcXFxcLm0zdTh8XFxcXC5mbHZ8XFxcXC5hdml8XFxcXC5tcGVnfFxcXFwud212fFxcXFwubW92fFxcXFwucm12YnxcXFxcLmRhdHxxcUJGZG93bmxvYWR8bWltZT12aWRlbyUyRnx2aWRlb19tcDQvO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIGZvciAodmFyIGkgaW4gdXJscykge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoIWV4Y2x1ZGUudGVzdCh1cmxzW2ldKSAmJiBjb250YWluLnRlc3QodXJsc1tpXSkpIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIGZ5X2JyaWRnZV9hcHAubG9nKHVybHNbaV0pXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoL21ndHZ8c29odS8udGVzdCh1cmxzW2ldKSkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiB1cmxzW2ldICsgXFxcIjt7VXNlci1BZ2VudEBNb3ppbGxhLzUuMCAoV2luZG93cyBOVCAxMC4wKX1cXFwiO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIGlmICgvYmlsaS8udGVzdCh1cmxzW2ldKSkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiB1cmxzW2ldICsgXFxcIjt7VXNlci1BZ2VudEBNb3ppbGxhLzUuMCYmUmVmZXJlckBodHRwczovL3d3dy5iaWxpYmlsaS5jb219XFxcIjtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAoL2l4aWd1YS8udGVzdCh1cmxzW2ldKSkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiB1cmxzW2ldICsgXFxcIiNpc1ZpZGVvPXRydWUjXFxcIiArIFxcXCIjLm1wNDt7UmVmZXJlckBodHRwczovL3d3dy5peGlndWEuY29tLyYmVXNlci1BZ2VudEBNb3ppbGxhLzUuMH1cXFwiO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gdXJsc1tpXVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgfSk7XFxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gdmlkZW87XFxuICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICB9KTtcIn1dLFwicGFyYW1zXCI6XCJ7XFxcImNsc1xcXCI6XFxcIlxcXCIsXFxcImlkXFxcIjpcXFwiXFxcIixcXFwiaW1nXFxcIjpcXFwiaHR0cHM6Ly93ZXdvcmsucXBpYy5jbi93d3BpYy80OTM0ODlfRmwtdFIwNVpTUnExU1A5XzE2ODgwNDk2MDIvMEBSZWZlcmVyPVxcXCJ9XCIsXCJzYXZlZFwiOmZhbHNlLFwidGl0bGVcIjpcIumlreWbouW9seinhs6xXCIsXCJ2ZXJzaW9uXCI6MCxcInVybFwiOlwiaGlrZXI6Ly9lbXB0eSMjaHR0cHM6Ly93d3cuZmFudHVhbmhkLmNvbS9kZXRhaWwvNDU4NzUuaHRtbCNpbW1lcnNpdmVUaGVtZSM7Z2V0O1VURi04O3tVc2VyLUFnZW50QE1vemlsbGEvNS4wIChMaW51eO+8m++8myBBbmRyb2lkIDEx77yb77ybIE1pIDEwIFBybykgQXBwbGVX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ZuG6ZO+5o6lOidhJiZocmVmJyxcXG4gICAgLy/moLflvI86J3RleHRfNScsXFxu6Kej5p6QOiBsYXp5XFxufSxcXG5cXG57XFxuICAgIOexu+WeizogJ+i/hembtycsLy/mkq3mlL7lkI3lrZdcXG4gICAg57q/6LevOiAnYm9keSYmLmJkYmEwYScsLy/kuIvovb3ov5nlh6DkuKrlrZdcXG4gICAg6YCJ6ZuGOiAnYm9keSYmLmJmODI0M2I5JywvL+aJgOaciemTvuaOpeihqFxcbiAgICDnur/ot6/lkI3np7A6ICdUZXh0QEAucmVwbGFjZShcXFwiYWJjXFxcIixcXFwiXFxcIiknLFxcbiAgICDpgInpm4bliJfooag6ICdib2R5JiYuYmFmNmU5NjBkZDpub3QoOm1hdGNoZXMo5LiL6L296K+05piOfOebuOWFs+aOqOiNkCkpJywvL+avj+S4gOS4quS4i+i9vemTvuaOpVxcbiAgICDmjpLpmaQ6ICcnLFxcbiAgICAvL+mAiembhuWQjeensDogJ1RleHQnLFxcbiAgICDpgInpm4bpk77mjqU6J2EmJmhyZWYnLFxcbiAgICDmoLflvI86J3RleHRfMScsXFxuLy/op6PmnpA6IGxhenlcXG59LFxcblxcblxcblxcbl1cXG4vL+W9seeJh+S/oeaBr1xcbnZhciBjb250ZW50cz1wZGZhKGh0bWwsICdib2R5JiYuZGF0YScpO1xcblxcbnZhciBvYmogPSB7XFxuICAgIG1haW46IGNvbnRlbnRzLFxcbiAgICBzb3J0OiBbJ+WcsOWMuicsICfor63oqIAnLCAn57G75Z6LJywgJ+WvvOa8lCcsICfkuLvmvJQnLCAn5pu05pawJ10sXFxuICAgIGltZzogTVlfUEFSQU1TLmltZywvL3BkZmgoaHRtbCwgJy5iZDgwMGE3MDkyJiZpbWcmJnNyYycpXFxufVxcblxcbkVyamkuc2V0Q29udGVudChvYmopO1xcbkVyamkuc2V0RGVzYyhwZGZoKGh0bWwsICcuZGVzYyYmVGV4dCcpLnJlcGxhY2UoJ+eugOS7i++8micsJycpKTsvL+W9see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OWFpSEnLFxcbiAgICAgICAgICAgIGNvbmZpcm06ICgpID0+IHtcXG4gICAgICAgICAgICAgICAgcmV0dXJuIFxcXCLmtbfpmJTop4bnlYzpppbpobXpopHpgZPop4TliJnjgJDOseOAke+/pWhvbWVfcnVsZV91cmzvv6VodHRwOi8vaGlrZXIubm9raWEucHJlc3MvaGlrZXJ1bGUvcnVsZWxpc3QuanNvbj9pZD02NDE3XFxcIlxcbiAgICAgICAgICAgIH1cXG4gICAgICAgIH0pXFxuICAgIH1cXG59XCIsXCJwYWdlc1wiOlwiW3tcXFwiY29sX3R5cGVcXFwiOlxcXCJtb3ZpZV8zXFxcIixcXFwibmFtZVxcXCI6XFxcImxhenlcXFwiLFxcXCJwYXRoXFxcIjpcXFwibGF6eVxcXCIsXFxcInJ1bGVcXFwiOlxcXCJ2YXIgbGF6eSA9ICQoJycpLmxhenlSdWxlKCgpID0+IHtcXFxcbiAgICAgICAgICAgIHRyeSB7XFxcXG5cXFxcblxcXFxuICAgICAgICAgICAgICAgIGlmIChpbnB1dC5pbmNsdWRlcygnZG93bicpKSB7XFxcXG5cXFxcblxcXFxuICAgICAgICAgICAgICAgICAgICB2YXIgdXJsID0gSlNPTi5wYXJzZShmZXRjaChpbnB1dCwge1xcXFxuICAgICAgICAgICAgICAgICAgICAgICAgb25seUhlYWRlcnM6IHRydWVcXFxcbiAgICAgICAgICAgICAgICAgICAgfSkpLnVybFxcXFxuICAgICAgICAgICAgICAgICAgICBpZiAoL3F1YXJrLy50ZXN0KHVybCkpIHtcXFxcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBcXFxcXFxcImhpa2VyOi8vc2VhcmNoP3M9XFxcXFxcXCIgKyB1cmwgKyBcXFxcXFxcIiZydWxlPXVja2vkupFcXFxcXFxcIjtcXFxcbiAgICAgICAgICAgICAgICAgICAgfX1cXFxcblxcXFxuICAgICAgICAgICAgICAgICAgICBmdW5jdGlvbiB0b1VybChwbGF5VXJsKSB7XFxcXG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAoL21ndHZ8c29odS8udGVzdChwbGF5VXJsKSkge1xcXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBwbGF5VXJsICsgXFxcXFxcXCI7e1VzZXItQWdlbnRATW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMCl9XFxcXFxcXCI7XFxcXG4gICAgICAgICAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKC9iaWxpLy50ZXN0KHBsYXlVcmwpKSB7XFxcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHBsYXlVcmwgKyBcXFxcXFxcIjt7VXNlci1BZ2VudEBNb3ppbGxhLzUuMCYmUmVmZXJlckBodHRwczovL3d3dy5iaWxpYmlsaS5jb219XFxcXFxcXCI7XFxcXG4gICAgICAgICAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKC9peGlndWEvLnRlc3QocGxheVVybCkpIHtcXFxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gcGxheVVybCArIFxcXFxcXFwiI2lzVmlkZW89dHJ1ZSNcXFxcXFxcIiArIFxcXFxcXFwiIy5tcDQ7e1JlZmVyZXJAaHR0cHM6Ly93d3cuaXhpZ3VhLmNvbS8mJlVzZXItQWdlbnRATW96aWxsYS81LjB9XFxcXFxcXCI7XFxcXG4gICAgICAgICAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKC9xdWFyay8udGVzdChwbGF5VXJsKSkge1xcXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBcXFxcXFxcImhpa2VyOi8vc2VhcmNoP3M9XFxcXFxcXCIgKyBpbnB1dCArIFxcXFxcXFwiJnJ1bGU9dWNra+S6kVxcXFxcXFwiO1xcXFxuICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcXFxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gcGxheVVybDtcXFxcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cXFxcbiAgICAgICAgICAgICAgICAgICAgfVxcXFxuXFxcXG4gICAgICAgICAgICAgICAgICAgIHZhciBodG1sID0gcmVxdWVzdChpbnB1dCwge30pO1xcXFxuICAgICAgICAgICAgICAgICAgICB2YXIgcGxheWVyX2RhdGEgPSBKU09OLnBhcnNlKGh0bWwubWF0Y2goL3IgcGxheWVyXy4qPz0oLio/KTwvKVsxXSk7XFxcXG4gICAgICAgICAgICAgICAgICAgIHZhciBmcm8gPSBwbGF5ZXJfZGF0YS5mcm9tO1xcXFxuICAgICAgICAgICAgICAgICAgICB2YXIgcGxheVVybCA9IHBsYXllcl9kYXRhLnVybDtcXFxcblxcXFxuXFxcXG4gICAgICAgICAgICAgICAgICAgIGlmIChwbGF5ZXJfZGF0YS5lbmNyeXB0ID09ICcxJykge1xcXFxuICAgICAgICAgICAgICAgICAgICAgICAgcGxheVVybCA9IHVuZXNjYXBlKHBsYXllcl9kYXRhLnVybCk7XFxcXG4gICAgICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAocGxheWVyX2RhdGEuZW5jcnlwdCA9PSAnMicpIHtcXFxcbiAgICAgICAgICAgICAgICAgICAgICAgIHBsYXlVcmwgPSB1bmVzY2FwZShiYXNlNjREZWNvZGUocGxheWVyX2RhdGEudXJsKSk7XFxcXG4gICAgICAgICAgICAgICAgICAgIH07XFxcXG4gICAgICAgICAgICAgICAgICAgIHZhciBleGNsdWRlID0gL3BsYXltM3U4fG0zdThcXFxcXFxcXC50dnxtaW5cXFxcXFxcXC5jc3N8NDA0XFxcXFxcXFwubTN1OHxcXFxcXFxcXC5jc3MvO1xcXFxuICAgICAgICAgICAgICAgICAgICB2YXIgY29udGFpbiA9IC9cXFxcXFxcXC5tcDR8XFxcXFxcXFwubTN1OHxcXFxcXFxcXC5mbHZ8XFxcXFxcXFwuYXZpfFxcXFxcXFxcLm1wZWd8XFxcXFxcXFwud212fFxcXFxcXFxcLm1vdnxcXFxcXFxcXC5ybXZifFxcXFxcXFxcLmRhdHxxcUJGZG93bmxvYWR8bWltZT12aWRlbyUyRnx2aWRlb19tcDQvO1xcXFxuICAgICAgICAgICAgICAgICAgICBpZiAoIWV4Y2x1ZGUudGVzdChwbGF5VXJsKSAmJiBjb250YWluLnRlc3QocGxheVVybCkpIHtcXFxcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiB0b1VybChwbGF5VXJsKTtcXFxcbiAgICAgICAgICAgICAgICAgICAgfVxcXFxuXFxcXG4gICAgICAgICAgICAgICAgICAgIHZhciBqeFVybCA9ICdodHRwczovL2xhbmd1YW5nLmtza3N5LmNvbS8/dXJsPScgKyBwbGF5VXJsICsgJyZ0bT0nICsgcGxheWVyX2RhdGEudG0gKyAnJmtleT0nICsgcGxheWVyX2RhdGEua2V5ICsgJyZuZXh0PScgKyBwbGF5ZXJfZGF0YS5saW5rX25leHQgKyAnJnRpdGxlPScgKyBwZGZoKGh0bWwsIFxcXFxcXFwidGl0bGUmJlRleHRcXFxcXFxcIikuc3BsaXQoXFxcXFxcXCItXFxcXFxcXCIpWzBdO1xcXFxuICAgICAgICAgICAgICAgICAgICB2YXIganhIdG1sID0gcmVxdWVzdChqeFVybCwge1xcXFxuICAgICAgICAgICAgICAgICAgICAgICAgaGVhZGVyczoge1xcXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxcXFxcXFwiVXNlci1BZ2VudFxcXFxcXFwiOiBcXFxcXFxcIk1vemlsbGEvNS4wIChXaW5kb3dzIE5UIDEwLjApXFxcXFxcXCJcXFxcbiAgICAgICAgICAgICAgICAgICAgICAgIH0sXFxcXG4gICAgICAgICAgICAgICAgICAgICAgICBtZXRob2Q6IFxcXFxcXFwiR0VUXFxcXFxcXCJcXFxcbiAgICAgICAgICAgICAgICAgICAgfSk7XFxcXG4gICAgICAgICAgICAgICAgICAgIGV2YWwoanhIdG1sLm1hdGNoKC92YXIgY29uZmlnID0ge1tcXFxcXFxcXHNcXFxcXFxcXFNdKj99LylbMF0gKyBcXFxcXFxcIlxcXFxcXFwiKTtcXFxcbiAgICAgICAgICAgICAgICAgICAgdmFyIGFwaVVybCA9ICdodHRwczovL2xhbmd1YW5nLmtza3N5LmNvbS9BUEkucGhwJztcXFxcbiAgICAgICAgICAgICAgICAgICAgdmFyIGFwaUh0bWwgPSByZXF1ZXN0KGFwaVVybCwge1xcXFxuICAgICAgICAgICAgICAgICAgICAgICAgaGVhZGVyczoge1xcXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxcXFxcXFwiVXNlci1BZ2VudFxcXFxcXFwiOiBcXFxcXFxcIk1vemlsbGEvNS4wIChXaW5kb3dzIE5UIDEwLjApXFxcXFxcXCJcXFxcbiAgICAgICAgICAgICAgICAgICAgICAgIH0sXFxcXG4gICAgICAgICAgICAgICAgICAgICAgICBib2R5OiBcXFxcXFxcInVybD1cXFxcXFxcIiArIGNvbmZpZy51cmwgKyBcXFxcXFxcIiZ0aW1lPVxcXFxcXFwiICsgY29uZmlnLnRpbWUgKyBcXFxcXFxcIiZrZXk9XFxcXFxcXCIgKyBjb25maWcua2V5LFxcXFxuICAgICAgICAgICAgICAgICAgICAgICAgbWV0aG9kOiBcXFxcXFxcIlBPU1RcXFxcXFxcIlxcXFxuICAgICAgICAgICAgICAgICAgICB9KTtcXFxcbiAgICAgICAgICAgICAgICAgICAgdmFyIGpzb24gPSBKU09OLnBhcnNlKGFwaUh0bWwpO1xcXFxuICAgICAgICAgICAgICAgICAgICBpZiAoanNvbi5jb2RlID09IDIwMCkge1xcXFxuICAgICAgICAgICAgICAgICAgICAgICAgcGxheVVybCA9IGpzb24udXJsO1xcXFxuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRvVXJsKHBsYXlVcmwpO1xcXFxuICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xcXFxuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuICd0b2FzdDovLycgKyBqc29uLm1zZztcXFxcbiAgICAgICAgICAgICAgICAgICAgfVxcXFxuXFxcXG4gICAgICAgICAgICAgICAgfSBjYXRjaCAoZSkge1xcXFxuICAgICAgICAgICAgICAgICAgICAvL3NldEVycm9yKGUpO1xcXFxuICAgICAgICAgICAgICAgICAgICBzaG93TG9hZGluZyhcXFxcXFxcIuato+WcqOi/m+ihjOajgOe0ou+8jOivt+eojeWAmS4uLlxcXFxcXFwiKTtcXFxcbiAgICAgICAgICAgICAgICAgICAgdmFyIHZpZGVvID0gJ3g1UnVsZTovLycgKyBpbnB1dCArICdAJyArICQudG9TdHJpbmcoKCkgPT4ge1xcXFxuICAgICAgICAgICAgICAgICAgICAgICAgLy9mYmEubG9nKGZiYS5nZXRVcmxzKCkpXFxcXG4gICAgICAgICAgICAgICAgICAgICAgICB2YXIgdXJscyA9IF9nZXRVcmxzKClcXFxcbiAgICAgICAgICAgICAgICAgICAgICAgIHZhciBleGNsdWRlID0gL3BsYXltM3U4fG0zdThcXFxcXFxcXC50dnxtaW5cXFxcXFxcXC5jc3N8NDA0XFxcXFxcXFwubTN1OHxcXFxcXFxcXC5jc3MvO1xcXFxuICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGNvbnRhaW4gPSAvXFxcXFxcXFwubXA0fFxcXFxcXFxcLm0zdTh8XFxcXFxcXFwuZmx2fFxcXFxcXFxcLmF2aXxcXFxcXFxcXC5tcGVnfFxcXFxcXFxcLndtdnxcXFxcXFxcXC5tb3Z8XFxcXFxcXFwucm12YnxcXFxcXFxcXC5kYXR8cXFCRmRvd25sb2FkfG1pbWU9dmlkZW8lMkZ8dmlkZW9fbXA0LztcXFxcbiAgICAgICAgICAgICAgICAgICAgICAgIGZvciAodmFyIGkgaW4gdXJscykge1xcXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmICghZXhjbHVkZS50ZXN0KHVybHNbaV0pICYmIGNvbnRhaW4udGVzdCh1cmxzW2ldKSkge1xcXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBmeV9icmlkZ2VfYXBwLmxvZyh1cmxzW2ldKVxcXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoL21ndHZ8c29odS8udGVzdCh1cmxzW2ldKSkge1xcXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHVybHNbaV0gKyBcXFxcXFxcIjt7VXNlci1BZ2VudEBNb3ppbGxhLzUuMCAoV2luZG93cyBOVCAxMC4wKX1cXFxcXFxcIjtcXFxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIGlmICgvYmlsaS8udGVzdCh1cmxzW2ldKSkge1xcXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHVybHNbaV0gKyBcXFxcXFxcIjt7VXNlci1BZ2VudEBNb3ppbGxhLzUuMCYmUmVmZXJlckBodHRwczovL3d3dy5iaWxpYmlsaS5jb219XFxcXFxcXCI7XFxcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAoL2l4aWd1YS8udGVzdCh1cmxzW2ldKSkge1xcXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHVybHNbaV0gKyBcXFxcXFxcIiNpc1ZpZGVvPXRydWUjXFxcXFxcXCIgKyBcXFxcXFxcIiMubXA0O3tSZWZlcmVyQGh0dHBzOi8vd3d3Lml4aWd1YS5jb20vJiZVc2VyLUFnZW50QE1vemlsbGEvNS4wfVxcXFxcXFwiO1xcXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xcXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHVybHNbaV1cXFxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXFxcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cXFxcbiAgICAgICAgICAgICAgICAgICAgfSk7XFxcXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiB2aWRlbztcXFxcbiAgICAgICAgICAgICAgICB9XFxcXG4gICAgICAgICAgICB9KTtcXFwifV1cIn0iLCJwaWNVcmwiOiJodHRwczovL3dld29yay5xcGljLmNuL3d3cGljLzQ5MzQ4OV9GbC10UjA1WlNScTFTUDlfMTY4ODA0OTYwMi8wQFJlZmVyZXI9IiwidGl0bGUiOiLov73lhYnnmoTml6XlrZAifQ==
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement