xiaomianao666

小程序:剪板✈

Nov 7th, 2024
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@剪板✈@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi5Ymq5p2/4pyIIiwiYXV0aG9yIjoiQCIsInVybCI6Imhpa2VyOi8vZW1wdHkjI2Z5Y2xhc3MjI2Z5cGFnZSIsInZlcnNpb24iOjEsImNvbF90eXBlIjoibW92aWVfMyIsImNsYXNzX25hbWUiOiLlsI/nqIvluo8m572R6aG1IiwidHlwZSI6InRvb2wiLCJjbGFzc191cmwiOiJhcHAmd2ViIiwiYXJlYV9uYW1lIjoiIiwiYXJlYV91cmwiOiIiLCJzb3J0X25hbWUiOiIiLCJ5ZWFyX25hbWUiOiIiLCJzb3J0X3VybCI6IiIsInllYXJfdXJsIjoiIiwiZmluZF9ydWxlIjoianM6XG4vL2xvZyhNWV9VUkwpXG52YXIgeDVwYWdlID0gZ2V0VmFyKE1ZX1JVTEUudGl0bGUgKyBcImNsaXBib2FyZFwiLCBcIlwiKTtcbmlmICh4NXBhZ2UgIT0gXCJcIiAmJiB4NXBhZ2UgIT0gXCIxXCIpIHtcbiAgICBwdXRNeVZhcihcInBhZ2VcIiwgU3RyaW5nKHg1cGFnZSkpO1xuICAgIGNsZWFyVmFyKE1ZX1JVTEUudGl0bGUgKyBcImNsaXBib2FyZFwiKTtcbn07XG5NWV9VUkwgPSBNWV9VUkwuc3BsaXQoXCIjI1wiKVsxXTtcbnZhciBkID0gW107XG52YXIgdXJsID0gJ2h0dHBzOi8vcGFzdGViaW4uY29tL3UveGlhb21pYW5hbzY2Ni8nICsgZ2V0TXlWYXIoXCJwYWdlXCIsIFwiMVwiKTtcblxuaWYgKE1ZX1VSTCA9PSBcIndlYlwiKSB7XG4gICAgZC5wdXNoKHtcbiAgICAgICAgZGVzYzogJ2Zsb2F0JiZ0b3AnLFxuICAgICAgICB1cmw6IHVybCxcbiAgICAgICAgY29sX3R5cGU6ICd4NV93ZWJ2aWV3X3NpbmdsZScsXG4gICAgICAgIGV4dHJhOiB7XG4gICAgICAgICAgICB1cmxJbnRlcmNlcHRvcjogJC50b1N0cmluZygoTVlfUlVMRSkgPT4ge1xuICAgICAgICAgICAgICAgIGlmIChpbnB1dC5pbmNsdWRlcygnI2ltcG9ydCcpKSB7XG4gICAgICAgICAgICAgICAgICAgIGlucHV0ID0gaW5wdXQucmVwbGFjZShcImh0dHBzOi8vcGFzdGViaW4uY29tL1wiLCBcImh0dHBzOi8vcGFzdGViaW4uY29tL3Jhdy9cIikucmVwbGFjZShcIiNpbXBvcnRcIiwgXCJcIik7XG4gICAgICAgICAgICAgICAgICAgIGxvZyhpbnB1dCk7XG4gICAgICAgICAgICAgICAgICAgIGxldCB1cmwgPSBpbnB1dC5zcGxpdChcIiZcIilbMF07XG4gICAgICAgICAgICAgICAgICAgIGxldCBwYWdlID0gaW5wdXQuc3BsaXQoXCImXCIpWzFdO1xuICAgICAgICAgICAgICAgICAgICBsb2cocGFnZSk7XG4gICAgICAgICAgICAgICAgICAgIGxldCBodG1sID0gcmVxdWVzdCh1cmwpO1xuICAgICAgICAgICAgICAgICAgICBsZXQgYXJyID0gcGRmYShodG1sLCBcImJvZHlcIik7XG4gICAgICAgICAgICAgICAgICAgIHZhciB0ZXh0ID0gYXJyLm1hcChpdCA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gcGRmaChpdCwgXCJib2R5JiZUZXh0XCIpO1xuICAgICAgICAgICAgICAgICAgICB9KS5qb2luKFwiJiZcIik7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiAkLnRvU3RyaW5nKCh0ZXh0LCBNWV9SVUxFLCBwYWdlKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICBmYmEucHV0VmFyKE1ZX1JVTEUudGl0bGUgKyBcImNsaXBib2FyZFwiLCBwYWdlKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBmeV9icmlkZ2VfYXBwLmltcG9ydFJ1bGUodGV4dCk7XG4gICAgICAgICAgICAgICAgICAgIH0sIHRleHQsIE1ZX1JVTEUsIHBhZ2UpXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSwgTVlfUlVMRSksXG4gICAgICAgICAgICBqczogJC50b1N0cmluZygodGl0bGUpID0+IHtcbiAgICAgICAgICAgICAgICBmdW5jdGlvbiBpbWdzKCkge1xuICAgICAgICAgICAgICAgICAgICB2YXIgdXJsID0gZG9jdW1lbnQubG9jYXRpb24uaHJlZjtcbiAgICAgICAgICAgICAgICAgICAgbGV0IHBhZ2UgPSAxO1xuICAgICAgICAgICAgICAgICAgICBpZiAoL1xcL1xcZCskLy50ZXN0KHVybCkpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHBhZ2UgPSB1cmwuc3BsaXQoXCIvXCIpLnNsaWNlKC0xKVswXTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICBpZiAocGFnZSA+IDEpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGZiYS5sb2cocGFnZSlcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICBmYmEucHV0VmFyKHRpdGxlICsgXCJjbGlwYm9hcmRcIiwgcGFnZSk7XG4gICAgICAgICAgICAgICAgICAgIHZhciBhcnIgPSBBcnJheS5mcm9tKGRvY3VtZW50LnF1ZXJ5U2VsZWN0b3JBbGwoXCJ0YWJsZSBhXCIpKTtcbiAgICAgICAgICAgICAgICAgICAgdmFyIGxpc3RzID0gYXJyLmZpbHRlcih4ID0+ICF4LmhyZWYuaW5jbHVkZXMoJy9hcmNoaXZlL2phdmFzY3JpcHQnKSk7XG4gICAgICAgICAgICAgICAgICAgIGxpc3RzLmZvckVhY2goeCA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAoeC5ocmVmLmluY2x1ZGVzKFwiI2ltcG9ydFwiKSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIHguaHJlZiA9IHguaHJlZiArIFwiI2ltcG9ydCZcIiArIHBhZ2U7XG4gICAgICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgaW1ncygpO1xuICAgICAgICAgICAgICAgIC8vIOiusOW9leWJjeS4gOS4qua7muWKqOS9jee9rlxuICAgICAgICAgICAgICAgIGxldCBiZWZvcmVTY3JvbGxUb3AgPSAwO1xuXG4gICAgICAgICAgICAgICAgZnVuY3Rpb24gaGFuZGxlU2Nyb2xsKCkge1xuICAgICAgICAgICAgICAgICAgICAvLyDot53pobbpg6hcbiAgICAgICAgICAgICAgICAgICAgdmFyIHNjcm9sbFRvcCA9XG4gICAgICAgICAgICAgICAgICAgICAgICBkb2N1bWVudC5kb2N1bWVudEVsZW1lbnQuc2Nyb2xsVG9wIHx8IGRvY3VtZW50LmJvZHkuc2Nyb2xsVG9wO1xuICAgICAgICAgICAgICAgICAgICAvLyDlj6/op4bljLrpq5jluqZcbiAgICAgICAgICAgICAgICAgICAgdmFyIGNsaWVudEhlaWdodCA9XG4gICAgICAgICAgICAgICAgICAgICAgICBkb2N1bWVudC5kb2N1bWVudEVsZW1lbnQuY2xpZW50SGVpZ2h0IHx8IGRvY3VtZW50LmJvZHkuY2xpZW50SGVpZ2h0O1xuICAgICAgICAgICAgICAgICAgICAvLyDmu5rliqjmnaHmgLvpq5jluqZcbiAgICAgICAgICAgICAgICAgICAgdmFyIHNjcm9sbEhlaWdodCA9XG4gICAgICAgICAgICAgICAgICAgICAgICBkb2N1bWVudC5kb2N1bWVudEVsZW1lbnQuc2Nyb2xsSGVpZ2h0IHx8IGRvY3VtZW50LmJvZHkuc2Nyb2xsSGVpZ2h0O1xuICAgICAgICAgICAgICAgICAgICAvLyDnoa7lrprmu5rliqjmlrnlkJFcbiAgICAgICAgICAgICAgICAgICAgaWYgKHNjcm9sbFRvcCA+PSBiZWZvcmVTY3JvbGxUb3ApIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIOa7muWKqOinpuW6lVxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHNjcm9sbFRvcCArIGNsaWVudEhlaWdodCA+PSBzY3JvbGxIZWlnaHQpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAvL2ZiYS5sb2coXCLmu5rliqjop6blupVcIik7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGNvdW50ZXIgPSAwOyAvLyDorqHmlbDlmajvvIznlKjkuo7orrDlvZXlt7Lnu4/miafooYznmoTmrKHmlbBcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgaW50ZXJ2YWxJZCA9IHNldEludGVydmFsKGZ1bmN0aW9uKCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvL2ZiYS5sb2coJ+aJp+ihjOaTjeS9nCcpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpbWdzKCk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvdW50ZXIrKztcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoY291bnRlciA+PSAxNSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy9mYmEubG9nKCflgZzmraLmiafooYwnKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNsZWFySW50ZXJ2YWwoaW50ZXJ2YWxJZCk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LCA1MDApO1xuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIGJlZm9yZVNjcm9sbFRvcCA9IHNjcm9sbFRvcDtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAvLyDoioLmtYFcbiAgICAgICAgICAgICAgICBmdW5jdGlvbiB0aHJvdHRsZShmLCB3KSB7XG4gICAgICAgICAgICAgICAgICAgIGxldCB0ID0gbnVsbDtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGZ1bmN0aW9uKCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHQpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICB0ID0gc2V0VGltZW91dCgoKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgLy/miafooYzmk43kvZwo5L2/55SoYXBwbHnph43mlrDnu5Hlrpp0aGlz55qE5oyH5ZCRKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGYuYXBwbHkodGhpcywgYXJndW1lbnRzKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0ID0gbnVsbDtcbiAgICAgICAgICAgICAgICAgICAgICAgIH0sIHcpO1xuICAgICAgICAgICAgICAgICAgICB9O1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAvLyDnm5HlkKzmu5rliqhcbiAgICAgICAgICAgICAgICBkb2N1bWVudC5vbnNjcm9sbCA9IGZ1bmN0aW9uKCkge1xuICAgICAgICAgICAgICAgICAgICB0aHJvdHRsZShoYW5kbGVTY3JvbGwoKSwgMTAwMDApO1xuICAgICAgICAgICAgICAgIH07XG4gICAgICAgICAgICB9LCBNWV9SVUxFLnRpdGxlKVxuICAgICAgICB9XG4gICAgfSk7XG59XG5cblxuZnVuY3Rpb24gZm9ybWF0RGF0ZShkYXRlU3RyaW5nKSB7XG4gICAgdmFyIGRhdGVSZWdleCA9IC8oXFx3ezN9KVxccyhcXGR7MSwyfSkoc3R8bmR8cmR8dGgpLFxccyhcXGR7NH0pLztcbiAgICB2YXIgbWF0Y2ggPSBkYXRlU3RyaW5nLm1hdGNoKGRhdGVSZWdleCk7XG5cbiAgICBpZiAobWF0Y2gpIHtcbiAgICAgICAgdmFyIG1vbnRoID0gbWF0Y2hbMV07XG4gICAgICAgIHZhciBkYXkgPSBtYXRjaFsyXTtcbiAgICAgICAgdmFyIHllYXIgPSBtYXRjaFs0XTtcblxuICAgICAgICAvLyDlsIbmnIjku73ovazmjaLkuLrmlbDlrZfooajnpLpcbiAgICAgICAgdmFyIG1vbnRoTWFwID0ge1xuICAgICAgICAgICAgSmFuOiAnMDEnLFxuICAgICAgICAgICAgRmViOiAnMDInLFxuICAgICAgICAgICAgTWFyOiAnMDMnLFxuICAgICAgICAgICAgQXByOiAnMDQnLFxuICAgICAgICAgICAgTWF5OiAnMDUnLFxuICAgICAgICAgICAgSnVuOiAnMDYnLFxuICAgICAgICAgICAgSnVsOiAnMDcnLFxuICAgICAgICAgICAgQXVnOiAnMDgnLFxuICAgICAgICAgICAgU2VwOiAnMDknLFxuICAgICAgICAgICAgT2N0OiAnMTAnLFxuICAgICAgICAgICAgTm92OiAnMTEnLFxuICAgICAgICAgICAgRGVjOiAnMTInXG4gICAgICAgIH07XG4gICAgICAgIG1vbnRoID0gbW9udGhNYXBbbW9udGhdO1xuXG4gICAgICAgIHZhciBmb3JtYXR0ZWREYXRlID0geWVhciArICctJyArIG1vbnRoICsgJy0nICsgZGF5LnRvU3RyaW5nKCkucGFkU3RhcnQoMiwgJzAnKTtcbiAgICAgICAgcmV0dXJuIGZvcm1hdHRlZERhdGU7XG4gICAgfSBlbHNlIHtcbiAgICAgICAgcmV0dXJuICfml6Dms5Xop6PmnpDml6XmnJ8nO1xuICAgIH1cbn1cblxuXG5sZXQgc2luZGV4ID0gZ2V0SXRlbShcInNpXCIsIFwiMFwiKTtcbmxldCB0aXRsZXMgPSBbe1xuICAgIHRpdGxlOiBcIuWwj+eoi+W6j1wiLFxuICAgIGx0aXRsZTogXCLlsI/nqIvluo/vvJpcI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2h0dHBzOi8vcGFzdGViaW4uY29tL3UveGlhb21pYW5hbzY2NicsXG4gICAgICAgICAgICAgICAgY29sX3R5cGU6IFwidGV4dF8xXCIsXG4gICAgICAgICAgICAgICAgZXh0cmE6IHtcbiAgICAgICAgICAgICAgICAgICAgbGluZVZpc2libGU6IGZhbHNlXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSwge1xuICAgICAgICAgICAgICAgIGNvbF90eXBlOiBcImxpbmVfYmxhbmtcIlxuICAgICAgICAgICAgfSk7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKGdldE15VmFyKCdwYWdlJywgJycpICE9ICcnKSB7XG4gICAgICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgICAgIHRpdGxlOiAn4oCc4oCc4oCd4oCdPHNtYWxsPicgKyAn5riF6Zmk57+76aG15pWw5o2uJy5mb250Y29sb3IoXCJncmF5XCIpICsgJzwvc21hbGw+JyxcbiAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ3RleHRfY2VudGVyXzEnLFxuICAgICAgICAgICAgICAgIHVybDogJChcIiNub0xvYWRpbmcjXCIpLmxhenlSdWxlKCgpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgY2xlYXJNeVZhcigncGFnZScpO1xuICAgICAgICAgICAgICAgICAgICByZWZyZXNoUGFnZSgpO1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gJ3RvYXN0Oi8v5riF6Zmk5a6M5oiQJztcbiAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICBleHRyYToge1xuICAgICAgICAgICAgICAgICAgICBsaW5lVmlzaWJsZTogZmFsc2VcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9KVxuICAgICAgICB9XG4gICAgICAgIGQucHVzaCh7Y29sX3R5cGU6IFwiYmlnX2JsYW5rX2Jsb2NrXCJ9KTtcbiAgICAgICAgZC5wdXNoKHtjb2xfdHlwZTogXCJiaWdfYmxhbmtfYmxvY2tcIn0pO1xuXG4gICAgICAgIHRpdGxlcy5mb3JFYWNoKCh4LCBpKSA9PiB7XG4gICAgICAgICAgICBsZXQgdGl0bGUgPSB4LnRpdGxlO1xuICAgICAgICAgICAgaWYgKHNpbmRleCA9PSBpKSB7XG4gICAgICAgICAgICAgICAgdGl0bGUgPSB0aXRsZS5mb250Y29sb3IoXCIjMTdCNTZBXCIpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZC5wdXNoKHtcbiAgICAgICAgICAgICAgICB0aXRsZTogJ+KAnOKAnOKAneKAnScgKyB0aXRsZSxcbiAgICAgICAgICAgICAgICBjb2xfdHlwZTogJ3Njcm9sbF9idXR0b24nLFxuICAgICAgICAgICAgICAgIHVybDogJChcIiNub0xvYWRpbmcjXCIpLmxhenlSdWxlKChpKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIHNldEl0ZW0oXCJzaVwiLFN0cmluZyhpKSk7XG4gICAgICAgICAgICAgICAgICAgIHJlZnJlc2hQYWdlKCk7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBcImhpa2VyOi8vZW1wdHlcIjtcbiAgICAgICAgICAgICAgICB9LGkpXG4gICAgICAgICAgICB9KVxuICAgICAgICB9KVxuICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgY29sX3R5cGU6J2JsYW5rX2Jsb2NrJyxcbiAgICAgICAgfSlcbiAgICB9XG4gICAgbGV0IGlpPTE7XG4gICAgbGV0IGFyciA9IHBkZmEoaHRtbCwgXCJ0Ym9keSYmdHJcIik7XG4gICAgZm9yIChsZXQgaXQgb2YgYXJyKSB7ICAgICAgICBcbiAgICAgICAgaWYoIWl0LmluY2x1ZGVzKHRpdGxlc1tzaW5kZXhdLmx0aXRsZSkpe1xuICAgICAgICAgICAgY29udGludWU7XG4gICAgICAgIH1cbiAgICAgICAgbGV0IGRlID0gZm9ybWF0RGF0ZShwZGZoKCc8dGFibGU+JyArIGl0ICsgJzwvdGFibGU+JywgXCIuaF82NDAmJlRleHRcIikpXG4gICAgICAgIGQucHVzaCh7XG4gICAgICAgICAgICB0aXRsZTogJzxiPjxzbWFsbD48Zm9udCBjb2xvcj1cIiM1MzVjMzBcIj4nICsgcGRmaChpdCwgXCJhJiZUZXh0XCIpLnJlcGxhY2UodGl0bGVzW3NpbmRleF0ubHRpdGxlLFwiXCIpICsgJzwvZm9udD48L3NtYWxrPjwvYj4nLFxuICAgICAgICAgICAgZGVzYzogJzxzbWFsbD4nICsgZGUgKyAnPC9zbWFsbD4nLFxuICAgICAgICAgICAgdXJsOiAkKHBkKGl0LCBcImEmJmhyZWZcIikucmVwbGFjZShcImh0dHBzOi8vcGFzdGViaW4uY29tL1wiLCBcImh0dHBzOi8vcGFzdGViaW4uY29tL3Jhdy9cIikpLmxhenlSdWxlKChwYWdlKSA9PiB7XG4gICAgICAgICAgICAgICAgbGV0IGh0bWwgPSByZXF1ZXN0KGlucHV0KTtcbiAgICAgICAgICAgICAgICBsZXQgYXJyID0gcGRmYShodG1sLCBcImJvZHlcIik7XG4gICAgICAgICAgICAgICAgcHV0TXlWYXIoXCJwYWdlXCIsIHBhZ2UpO1xuICAgICAgICAgICAgICAgIHJldHVybiBhcnIubWFwKGl0ID0+IHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHBkZmgoaXQsIFwiYm9keSYmVGV4dFwiKTtcbiAgICAgICAgICAgICAgICB9KS5qb2luKFwiJiZcIilcbiAgICAgICAgICAgIH0sIHBhZ2UpLFxuICAgICAgICAgICAgY29sX3R5cGU6IFwiYXZhdGFyXCIsXG4gICAgICAgICAgICBleHRyYToge1xuICAgICAgICAgICAgICAgIGxpbmVWaXNpYmxlOiBmYWxzZSxcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG4gICAgICAgIGlpKys7XG4gICAgfVxuICAgIHB1dE15VmFyKFwiZGNudFwiLFN0cmluZyhpaSkpO1xuICAgIHZhciB0b3RhbGNvdW50ID0gZ2V0TXlWYXIoXCJ0Y1wiLCBcIlwiKTtcbiAgICBp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ICAgICAgdXJsOid0b2FzdDovL+aIkeaYr+aPkOekuicsXG4gICAgICAgIGV4dHJhOntcbiAgICAgICAgICAgIGxpbmVWaXNpYmxlOmZhbHNlLFxuICAgICAgICB9ICAgICAgICBcbiAgICB9KVxuICAgIGQucHVzaCh7XG4gICAgICAgIHRpdGxlOiAn5LiK5LiA6aG1JyxcbiAgICAgICAgY29sX3R5cGU6ICd0ZXh0XzMnLFxuICAgICAgICB1cmw6ICQoJyNub0xvYWRpbmcjJykubGF6eVJ1bGUoKHBhZ2UsIHRjKSA9PiB7XG4gICAgICAgICAgICAvL3BhZ2UgPSBnZXRNeVZhcihcInBhZ2VcIiwgU3RyaW5nKHBhZ2UpKTtcbiAgICAgICAgICAgIC8vcGFnZT1wYXJzZUludChwYWdlKTtcbiAgICAgICAgICAgIHB1dE15VmFyKFwicGFnZVwiLCBwYWdlIC0gMSA+IDEgPyAocGFnZSAtIDEpLnRvU3RyaW5nKCkgOiBcIjFcIik7XG4gICAgICAgICAgICByZWZyZXNoUGFnZSgpO1xuICAgICAgICAgICAgcmV0dXJuIFwiaGlrZXI6Ly9lbXB0eVwiO1xuICAgICAgICB9LCBwYWdlLCBOdW1iZXIodG90YWxjb3VudCkpLFxuICAgIH0sIHtcbiAgICAgICAgdGl0bGU6ICfot7PpobUnLFxuICAgICAgICBjb2xfdHlwZTogJ3RleHRfMycsXG4gICAgICAgIHVybDogJChcIjFcIiwgXCLor7fovpPlhaXpobXmlbAs5oC76aG15pWwOiBcIiArIGdldE15VmFyKFwidGNcIiwgXCIxXCIpKS5pbnB1dCgoKSA9PiB7XG4gICAgICAgICAgICB2YXIgcCA9IHBhcnNlSW50KGlucHV0KTtcbiAgICAgICAgICAgIHZhciBjID0gZ2V0TXlWYXIoXCJ0Y1wiLCBcIjFcIik7XG4gICAgICAgICAgICBpZiAocCA9PSAwKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIFwidG9hc3Q6Ly/kuI3og73kuLowXCI7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBpZiAocCA+IHBhcnNlSW50KGMpKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIFwidG9hc3Q6Ly/otoXlh7rojIPlm7RcIjtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHB1dE15VmFyKFwicGFnZVwiLCBwKTtcbiAgICAgICAgICAgIHJlZnJlc2hQYWdlKCk7XG4gICAgICAgIH0pXG4gICAgfSwge1xuICAgICAgICB0aXRsZTogJ+S4i+S4gOmhtScsXG4gICAgICAgIGNvbF90eXBlOiAndGV4dF8zJyxcbiAgICAgICAgdXJsOiAkKCcjbm9Mb2FkaW5nIycpLmxhenlSdWxlKChwYWdlLCB0YykgPT4ge1xuICAgICAgICAgICAgcGFnZSA9IGdldE15VmFyKFwicGFnZVwiLCBTdHJpbmcocGFnZSkpO1xuICAgICAgICAgICAgcGFnZT1wYXJzZUludChwYWdlKTtcbiAgICAgICAgICAgIHB1dE15VmFyKFwicGFnZVwiLCBwYWdlICsgMSA8IHRjID8gU3RyaW5nKHBhZ2UgKyAxKSA6IHRjLnRvU3RyaW5nKCkpO1xuICAgICAgICAgICAgcmVmcmVzaFBhZ2UoKTtcbiAgICAgICAgICAgIHJldHVybiBcImhpa2VyOi8vZW1wdHlcIjtcbiAgICAgICAgfSwgcGFnZSwgTnVtYmVyKHRvdGFsY291bnQpKSxcbiAgICB9KVxufVxuXG5zZXRSZXN1bHQoZCkiLCJzZWFyY2hfdXJsIjoiIiwiZ3JvdXAiOiLikalHSFMiLCJzZWFyY2hGaW5kIjoiIiwiZGV0YWlsX2NvbF90eXBlIjoibW92aWVfMSIsImRldGFpbF9maW5kX3J1bGUiOiIiLCJzZGV0YWlsX2NvbF90eXBlIjoibW92aWVfMSIsInNkZXRhaWxfZmluZF9ydWxlIjoiIiwidWEiOiJtb2JpbGUiLCJwcmVSdWxlIjoiIiwicGFnZXMiOiJbXSIsImljb24iOiIiLCJwcm94eSI6IiJ9
Add Comment
Please, Sign In to add comment