xiaomianao666

小程序:奇妙工具箱

Apr 11th, 2023
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@奇妙工具箱@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi5aWH5aaZ5bel5YW3566xIiwiYXV0aG9yIjoi5bCP5qOJ6KKE8J+MniIsInVybCI6Imhpa2VyOi8vZW1wdHkjIyIsInZlcnNpb24iOjcsImNvbF90eXBlIjoibW92aWVfMyIsImNsYXNzX25hbWUiOiIiLCJ0eXBlIjoidG9vbCIsImNsYXNzX3VybCI6IiIsImFyZWFfbmFtZSI6IiIsImFyZWFfdXJsIjoiIiwic29ydF9uYW1lIjoiIiwieWVhcl9uYW1lIjoiIiwic29ydF91cmwiOiIiLCJ5ZWFyX3VybCI6IiIsImZpbmRfcnVsZSI6ImpzOlxudmFyIGQgPSBbXTtcbmxldCB2aXAgPSBnZXRJdGVtKFwidmlwXCIsIFwiMFwiKSA9PSBcIjFcIjtcbmQucHVzaCh7XG4gICAgdGl0bGU6IHZpcCA/IFwi5qyi6L+O5oKo77yM5bCK6LS155qE5Lya5ZGY77yBXCIgOiBcIuaCqOi/mOS4jeaYr+S8muWRmFwiLFxuICAgIHVybDogJChcIiNub0xvYWRpbmcjXCIpLmxhenlSdWxlKCgpID0+IHtcbiAgICAgICAgY29uZmlybSh7XG4gICAgICAgICAgICB0aXRsZTogXCLor7TmmI5cIixcbiAgICAgICAgICAgIGNvbnRlbnQ6IFwi5pys5bel5YW3566x5omA5pyJ5Yqf6IO95YWN6LS55peg5bm/5ZGK5L2/55So77yM5Li65r+A5Yqx5L2c6ICF5LiN5pat5pu05paw5ZKM5paw5aKe5LyY56eA5Yqf6IO977yM5Zug5q2k5pCe5LqG5LiA5Liq5Lya5ZGY5Yi277yM5pys5Lya5ZGY5Yi25Li65YiG5Lqr5Yi277yM5Y+q6ZyA6KaB5YiG5Lqr6L2v5Lu25oiW6ICF5a6Y5pa55YWs5LyX5Y+357uZ5oKo55qE5pyL5Y+L77yM54S25ZCO54K55Ye756Gu5a6a5oyJ6ZKu5Y2z5Y+v77yM5Lya5ZGY6aKG5Y+W5pa55qGI5Li65peg5Lq65ZSu56Wo5Yi25bqm77yM54K55Ye756Gu5a6a5oyJ6ZKu5Y2z5Y+vXCIsXG4gICAgICAgICAgICBjb25maXJtOiAkLnRvU3RyaW5nKCgpID0+IHtcbiAgICAgICAgICAgICAgICBjb25maXJtKHtcbiAgICAgICAgICAgICAgICAgICAgdGl0bGU6IFwi6aKG5Y+W5Lya5ZGYXCIsXG4gICAgICAgICAgICAgICAgICAgIGNvbnRlbnQ6IFwi56Gu5a6a6aKG5Y+W5Lya5ZGY5ZCX77yf56Gu6K6k5oKo5bey5YiG5Lqr6L2v5Lu25oiW6ICF5a6Y5pa55YWs5LyX5Y+357uZ5oKo55qE5pyL5Y+L77yM56Gu6K6k6K+354K55Ye75LiL5pa555qE56Gu5a6a5oyJ6ZKuXCIsXG4gICAgICAgICAgICAgICAgICAgIGNvbmZpcm06ICQudG9TdHJpbmcoKCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgc2V0SXRlbShcInZpcFwiLCBcIjFcIik7XG4gICAgICAgICAgICAgICAgICAgICAgICByZWZyZXNoUGFnZSgpO1xuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFwidG9hc3Q6Ly/mga3llpzvvIzmgqjlt7LmiJDkuLrkvJrlkZjvvIFcIlxuICAgICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIHJldHVybiBcImhpa2VyOi8vZW1wdHlcIlxuICAgICAgICAgICAgfSlcbiAgICAgICAgfSk7XG4gICAgICAgIHJldHVybiBcImhpa2VyOi8vZW1wdHlcIlxuICAgIH0pLFxuICAgIGNvbF90eXBlOiBcImF2YXRhclwiLFxuICAgIGRlc2M6IFwiXCIsXG4gICAgcGljX3VybDog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saW5lVmlzaWJsZTogZmFsc2VcbiAgICB9XG59KTtcblxuZC5wdXNoKHtcbiAgICB0aXRsZTogXCLmj5Dlj5ZcIixcbiAgICB1cmw6ICQudG9TdHJpbmcoKCkgPT4ge1xuICAgICAgICByZXR1cm4gXCJ2aWRlbzovL1wiICsgaW5wdXQ7XG4gICAgfSksXG4gICAgY29sX3R5cGU6IFwiaW5wdXRcIixcbiAgICBkZXNjOiBcIuivt+i+k+WFpee9kemhtemTvuaOpVwiLFxuICAgIHBpY191cmw6IFwiXCJcbn0pO1xuXG5kLnB1c2goe1xuICAgIHRpdGxlOiBcIueUteWtkOS5pumYheivu+WZqCh0eHQpXCIsXG4gICAgdXJsOiAkKFwiI25vTG9hZGluZyNcIikubGF6eVJ1bGUoKCkgPT4ge1xuICAgICAgICBsZXQgciA9IGZldGNoKFwiaGlrZXI6Ly9ob21lQOacrOWcsOi1hOa6kOeuoeeQhlwiKTtcbiAgICAgICAgaWYgKHIgJiYgci5sZW5ndGggPiA1KSB7XG4gICAgICAgICAgICByZXR1cm4gXCJoaWtlcjovL2hvbWVA5pys5Zyw6LWE5rqQ566h55CGXCI7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBjb25maXJtKHtcbiAgICAgICAgICAgICAgICB0aXRsZTogXCLmuKnppqjmj5DnpLpcIixcbiAgICAgICAgICAgICAgICBjb250ZW50OiBcIuW9k+WJjeacquWvvOWFpeaJqeWxleaPkuS7tu+8jOeCueWHu+S4i+aWueehruWumuaMiemSruWvvOWFpVwiLFxuICAgICAgICAgICAgICAgIGNvbmZpcm06ICQudG9TdHJpbmcoKCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gXCLmtbfpmJTop4bnlYzpppbpobXpopHpgZPop4TliJnjgJDmnKzlnLDotYTmupDnrqHnkIbjgJHvv6Vob21lX3J1bGVfdXJs77+laHR0cDovL2hpa2VyLm5va2lhLnByZXNzL2hpa2VydWxlL3J1bGVsaXN0Lmpzb24/aWQ9MzU1OVwiXG4gICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgcmV0dXJuIFwiaGlrZXI6Ly9lbXB0eVwiXG4gICAgICAgIH1cbiAgICB9KSxcbiAgICBjb2xfdHlwZTogXCJjYXJkX3BpY18yXCIsXG4gICAgcGljX3VybDogXCJoaWtlcjovL2ltYWdlcy9ob21lX3BpYzRcIixcbn0pO1xuZC5wdXNoKHtcbiAgICB0aXRsZTogXCJlcHVi6L2s5o2i5ZmoXCIsXG4gICAgdXJsOiBcIndlYjovL2h0dHBzOi8vY29udmVydGlvLmNvL3poL1wiLFxuICAgIGNvbF90eXBlOiBcImNhcmRfcGljXzJfMlwiLFxuICAgIHBpY191cmw6IFwiaGlrZXI6Ly9pbWFnZXMvaG9tZV9waWMzXCJcbn0pO1xuZC5wdXNoKHtcbiAgICB0aXRsZTogXCJXZWJEYXZcIixcbiAgICB1cmw6ICQoXCIjbm9Mb2FkaW5nI1wiKS5sYXp5UnVsZSgoKSA9PiB7XG4gICAgICAgIGxldCByID0gZmV0Y2goXCJoaWtlcjovL2hvbWVAV2ViZGF2XCIpO1xuICAgICAgICBsb2cocik7XG4gICAgICAgIGlmIChyICYmIHIubGVuZ3RoID4gNSkge1xuICAgICAgICAgICAgcmV0dXJuIFwiaGlrZXI6Ly9ob21lQFdlYmRhdlwiO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgY29uZmlybSh7XG4gICAgICAgICAgICAgICAgdGl0bGU6IFwi5rip6aao5o+Q56S6XCIsXG4gICAgICAgICAgICAgICAgY29udGVudDogXCLlvZPliY3mnKrlr7zlhaXmianlsZXmj5Lku7bvvIzngrnlh7vkuIvmlrnnoa7lrprmjInpkq7lr7zlhaVcIixcbiAgICAgICAgICAgICAgICBjb25maXJtOiAkLnRvU3RyaW5nKCgpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFwi5rW36ZiU6KeG55WM6aaW6aG16aKR6YGT6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7XFxuZC5wdXNoKHtcXG4gICAgY29sX3R5cGU6IFxcXCJ4NV93ZWJ2aWV3X3NpbmdsZVxcXCIsXFxuICAgIHVybDogXFxcIlxcXCIsXFxuICAgIGRlc2M6IGRlc2MsXFxuICAgIHRpdGxlOiBcXFwiXFxcIixcXG4gICAgZXh0cmE6IHtcXG4gICAgICAgIGpzOiAkLnRvU3RyaW5nKCgpID0+IHtcXG4gICAgICAgICAgICBmdW5jdGlvbiBnZXRpbWdzKCkge1xcbiAgICAgICAgICAgICAgICB2YXIgdmlkZW9FbGVtZW50cyA9IGRvY3VtZW50LmdldEVsZW1lbnRzQnlUYWdOYW1lKFxcXCJpbWdcXFwiKTtcXG4gICAgICAgICAgICAgICAgaWYgKHZpZGVvRWxlbWVudHMgPT0gbnVsbCkge1xcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFtdO1xcbiAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgIGxldCB1cmxzID0gW107XFxuICAgICAgICAgICAgICAgIGZvciAobGV0IGkgPSAwOyBpIDwgdmlkZW9FbGVtZW50cy5sZW5ndGg7IGkrKykge1xcbiAgICAgICAgICAgICAgICAgICAgaWYgKHZpZGVvRWxlbWVudHNbaV0ud2lkdGggPiA3MCAmJiB2aWRlb0VsZW1lbnRzW2ldLmhlaWdodCA+IDcwKSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgY29uc3Qgc3JjID0gdmlkZW9FbGVtZW50c1tpXS5zcmM7XFxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHNyYyA9PSBudWxsIHx8IHNyYy5sZW5ndGggPCA1IHx8IHVybHMuaW5jbHVkZXMoc3JjKSB8fCBzcmMuaW5kZXhPZihcXFwiZGF0YTpcXFwiKSA9PSAwKSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnRpbnVlO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAvL2xvZyhzcmMpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIHVybHMucHVzaChuZXcgVVJMKHNyYykudG9TdHJpbmcoKSk7XFxuICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgcmV0dXJuIHVybHM7XFxuICAgICAgICAgICAgfVxcblxcbiAgICAgICAgICAgIGZ1bmN0aW9uIGNoZWNrKCkge1xcbiAgICAgICAgICAgICAgICB0cnkge1xcbiAgICAgICAgICAgICAgICAgICAgbGV0IHVybHMgPSBnZXRpbWdzKCk7XFxuICAgICAgICAgICAgICAgICAgICAvL2ZiYS5sb2coXFxcImdldGltZ3PvvJpcXFwiICsgdXJscy5sZW5ndGgpO1xcbiAgICAgICAgICAgICAgICAgICAgaWYgKHdpbmRvdy5jaGVja2VkVXJscyA9PSBudWxsKSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgd2luZG93LmNoZWNrZWRVcmxzID0gW107XFxuICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICBsZXQgY2hlY2tlZFVybHMgPSB3aW5kb3cuY2hlY2tlZFVybHM7XFxuICAgICAgICAgICAgICAgICAgICB1cmxzID0gdXJscy5maWx0ZXIoaXQgPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiAhY2hlY2tlZFVybHMuaW5jbHVkZXMoaXQpXFxuICAgICAgICAgICAgICAgICAgICB9KTtcXG5cXG4gICAgICAgICAgICAgICAgICAgIGlmICh1cmxzLmxlbmd0aCA+IDApIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICBsZXQgcGljcyA9IHVybHMuZmlsdGVyKGl0ID0+IGl0ICE9IG51bGwgJiYgaXQgIT0gXFxcIlxcXCIpXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIC5tYXAoaXQgPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbGV0IHUgPSBmYmEuZ2V0SGVhZGVyVXJsKGl0KTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxldCB1dSA9IHUuc3BsaXQoXFxcIjtcXFwiKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxldCBwaWMgPSB1O1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHV1Lmxlbmd0aCA+IDEpIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZXQgdTEgPSB1dVswXTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZXQgdTIgPSB1dVsxXS5zbGljZSgxLCAtMSkuc3BsaXQoXFxcIiYmXFxcIik7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbGV0IHJlZmVyZXIgPSBudWxsO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxldCB1YSA9IG51bGw7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbGV0IGNvb2tpZTAgPSBudWxsO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZvciAobGV0IGlpIG9mIHUyKSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxldCBpdDIgPSBpaS5zcGxpdChcXFwiQFxcXCIpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoaXQyWzBdID09IFxcXCJSZWZlcmVyXFxcIikge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVmZXJlciA9IGl0MlsxXS5yZXBsYWNlKC/vvJvvvJsvZywgXFxcIjtcXFwiKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoaXQyWzBdID09IFxcXCJVc2VyLUFnZW50XFxcIikge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdWEgPSBpdDJbMV0ucmVwbGFjZSgv77yb77ybL2csIFxcXCI7XFxcIik7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGl0MlswXSA9PSBcXFwiQ29va2llXFxcIikge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY29va2llMCA9IGl0MlsxXS5yZXBsYWNlKC/vvJvvvJsvZywgXFxcIjtcXFwiKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwaWMgPSB1MTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAocmVmZXJlcikge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwaWMgPSBwaWMgKyBcXFwiQFJlZmVyZXI9XFxcIiArIHJlZmVyZXI7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmICh1YSkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwaWMgPSBwaWMgKyBcXFwiQFVzZXItQWdlbnQ9XFxcIiArIHVhO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoY29va2llMCkge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwaWMgPSBwaWMgKyBcXFwiQENvb2tpZT1cXFwiICsgY29va2llMFxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcGljID0gaXQ7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4ge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBpYzogcGljLFxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHVybDogdVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KTtcXG4gICAgICAgICAgICAgICAgICAgICAgICBmYmEubG9nKHBpY3MubGVuZ3RoICsgXFxcIlxcXCIpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIGZiYS5wYXJzZUxhenlSdWxlQXN5bmMoJCQkKCkubGF6eVJ1bGUoKHVybHMpID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgLy9sb2codXJscyk7XFxuXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxldCBhcnIgPSB1cmxzLm1hcChpdCA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4ge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRpdGxlOiBcXFwiXFxcIixcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB1cmw6IGl0LnBpYyxcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwaWNfdXJsOiBpdC5waWMsXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY29sX3R5cGU6IFxcXCJjYXJkX3BpY18zXFxcIixcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBleHRyYToge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjbHM6IFxcXCJwaWNzXFxcIlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFkZEl0ZW1CZWZvcmUoXFxcInBpY19saW5lXFxcIiwgYXJyKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICB9LCBwaWNzKSwgZnVuY3Rpb24oKSB7XFxuXFxuICAgICAgICAgICAgICAgICAgICAgICAgfSk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgZm9yIChsZXQgaXQgb2YgdXJscykge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB3aW5kb3cuY2hlY2tlZFVybHMucHVzaChpdCk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgfVxcbiAgICAgICAgICAgICAgICAgICAgfVxcblxcbiAgICAgICAgICAgICAgICB9IGNhdGNoIChlKSB7XFxuICAgICAgICAgICAgICAgICAgICBmYmEubG9nKGUudG9TdHJpbmcoKSk7XFxuICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgc2V0VGltZW91dChjaGVjaywgMzAwKTtcXG4gICAgICAgICAgICB9XFxuICAgICAgICAgICAgY2hlY2soKTtcXG4gICAgICAgIH0pXFxuICAgIH1cXG59KTtcXG5cXG5cXG5kLnB1c2goe1xcbiAgICB0aXRsZTogXFxcIuaPkOWPllxcXCIsXFxuICAgIHVybDogJC50b1N0cmluZygoKSA9PiB7XFxuICAgICAgICBwdXRNeVZhcihcXFwiaVxcXCIsIGlucHV0KTtcXG4gICAgICAgIGRlbGV0ZUl0ZW1CeUNscyhcXFwicGljc1xcXCIpO1xcbiAgICAgICAgcmVmcmVzaFg1V2ViVmlldyhpbnB1dCk7XFxuICAgIH0pLFxcbiAgICBjb2xfdHlwZTogXFxcImlucHV0XFxcIixcXG4gICAgZGVzYzogXFxcIu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NvbF90eXBlOiBcXFwibGluZV9ibGFua1xcXCIsXFxuICAgIGV4dHJhOiB7XFxuICAgICAgICBpZDogXFxcInBpY19saW5lXFxcIlxcbiAgICB9XFxufSk7XFxuXFxuc2V0UmVzdWx0KGQpO1wifV0iLCJpY29uIjoiIiwicHJveHkiOiIifQ==
Add Comment
Please, Sign In to add comment