xiaomianao666

小程序:𝐀𝐕男优

Jun 15th, 2024
592
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@𝐀𝐕男优@eyJ0aXRsZSI6IvCdkIDwnZCV55S35LyYIiwidHlwZSI6InZpZGVvIiwiYXV0aG9yIjoiQXJpc2UiLCJ2ZXJzaW9uIjoyMDI0MDYxNSwiZ3JvdXAiOiLikaHnlJ8iLCJpY29uIjoiaHR0cHM6Ly9pbWcudmludWEuY24vaW1hZ2VzL0l4SDE0LnBuZyIsInVhIjoibW9iaWxlIiwicHJveHkiOiIiLCJwcmVSdWxlIjoiIiwibGFzdF9jaGFwdGVyX3J1bGUiOiIiLCJ1cmwiOiJoaWtlcjovL2VtcHR5IyNodHRwczovL2F2ZGFueXV3aWtpLmNvbS8jI2Z5cGFnZSIsImNsYXNzX25hbWUiOiIiLCJjbGFzc191cmwiOiIiLCJhcmVhX25hbWUiOiIiLCJhcmVhX3VybCI6IiIsInllYXJfbmFtZSI6IiIsInllYXJfdXJsIjoiIiwic29ydF9uYW1lIjoiIiwic29ydF91cmwiOiIiLCJjb2xfdHlwZSI6Im1vdmllXzMiLCJmaW5kX3J1bGUiOiJqczpcbiQucmVxdWlyZShcInlpXCIpIiwiZGV0YWlsX2NvbF90eXBlIjoibW92aWVfMSIsImRldGFpbF9maW5kX3J1bGUiOiIiLCJzZWFyY2hfdXJsIjoiIiwic2VhcmNoRmluZCI6IiIsInNkZXRhaWxfY29sX3R5cGUiOiJtb3ZpZV8xIiwic2RldGFpbF9maW5kX3J1bGUiOiIiLCJwYWdlTGlzdCI6W3siY29sX3R5cGUiOiJtb3ZpZV8zIiwibmFtZSI6IuS4gOe6pyIsInBhdGgiOiJ5aSIsInJ1bGUiOiJqczpcblxuYWRkTGlzdGVuZXIoXCJvbkNsb3NlXCIsICgpID0+IHtcbiAgICBjbGVhck15VmFyKFwibmV4dFBhZ2VcIik7XG4gICAgY2xlYXJNeVZhcihcInVybFwiKTtcbn0pO1xuLypcbmFkZExpc3RlbmVyKFwib25SZWZyZXNoXCIsICgpID0+IHtcbiAgICBjbGVhck15VmFyKFwibmV4dFBhZ2VcIik7XG4gICAgY2xlYXJNeVZhcihcInVybFwiKTtcbn0pO1xuKi9cbmV2YWwoSlNPTi5wYXJzZShmZXRjaCgnaGlrZXI6Ly9wYWdlL2NhdGVnb3J5Jywge30pKS5ydWxlKTtcblxudmFyIGQgPSBbXVxuLy9NWV9VUkwgPSBNWV9VUkwucmVwbGFjZShcImhpa2VyOi8vZW1wdHkjI1wiLCBcIlwiKVxuXG4gICAgICAgIGNvbnN0IHBhZ2UgPSBNWV9QQUdFO1xuICAgICAgICB2YXIgZGF0YSA9IFt7XG4gICAgICAgICAgICB0aXRsZTogJ+ajruael+WOn+S6uibpu5HmvqTpgI8m5Y2X5L2z5LmfJuODiuODq+OCt+OCueWwj+aelybmsqLkupXkuq4nLFxuICAgICAgICAgICAgICAgaWQ6ICfmo67mnpfljp/kurom44K744OE44ON44OS44OH44Om44KtJuWNl+S9s+S5nybjg4rjg6vjgrfjgrnlsI/mnpcm5rKi5LqV5LquJ1xuICAgICAgICB9LCB7XG4gICAgICAgICAgICB0aXRsZTogJ+e1kOWfjue1kOW8pibol43kupXlhKrlpKonLFxuICAgICAgICAgICAgICAgIGlkOiAn57WQ5Z+O57WQ5bymJuiXjeS6leWEquWkqidcbiAgICAgICAgfV1cbiAgICAgICAgICAgICAgICB2YXIgaG9zdCA9IFwiaHR0cHM6Ly9hdmRhbnl1d2lraS5jb20vdGFnL1wiO1xuLy/liIbnsbtcbiAgICAgICAgZGF0YS5mb3JFYWNoKChpdGVtLCBpbmRleCkgPT4ge1xuICAgICAgICAgICAgY2xhc3NUb3AoaW5kZXgsIGl0ZW0sIGhvc3QsIGQsIDApO1xuICAgICAgICB9KTtcblxuLy/mkJzntKLmoYZcbnNlYXJjaE1haW4ocGFnZSwgZCwgXCLwn5SOXCIsXCLmkJzntKLmvJTlkZjlkI3lrZdcIilcblxuLy/pobXpnaLlnLDlnYBcbiAgICAgTVlfVVJMICA9IGhvc3QgKyBnZXRNeVZhcihob3N0ICsgJ2MnLCAn5qOu5p6X5Y6f5Lq6JykgKyBcIi9wYWdlL1wiICsgcGFnZSArIFwiL1wiO1xubGV0IHVybCA9IGdldE15VmFyKFwidXJsXCIsTVlfVVJMKTtcblxuICAgICAgICBsZXQgbmV4dFBhZ2UgPSBnZXRNeVZhcihcIm5leHRQYWdlXCIsIFwiXCIpO1xuICAgICAgICBpZiAobmV4dFBhZ2UgJiYgTVlfUEFHRSA+IDEpIHtcbiAgICAgICAgICAgIHVybCA9IGRlY29kZVVSSShuZXh0UGFnZSk7XG4gICAgICAgIH0gZWxzZSBpZiAoTVlfUEFHRSA+IDEpIHtcbiAgICAgICAgICAgIHVybCA9IFwi5rKh5pyJ5LiL5LiA6aG15ZOm8J+YkVwiXG4gICAgICAgIH1cbiAgICAgICAgY29uc3QgaHRtbCA9IGZldGNoKHVybCwge1xuICAgICAgICAgICAgaGVhZGVyczoge1xuICAgICAgICAgICAgICAgICdVc2VyLUFnZW50JzogJ01vemlsbGEvNS4wIChXaW5kb3dzIE5UIDEwLjApJ1xuICAgICAgICAgICAgfVxuICAgICAgICB9KVxuICAgICAgICBsb2codXJsKVxuICAgICAgICB0cnkge1xuICAgICAgICAgICAgdmFyIG5leHQgPSBwZGZoKGh0bWwsIFwiLnBhZ2luYXRpb24tbmV4dCYmYSYmaHJlZlwiKVxuICAgICAgICAgICAgcHV0TXlWYXIoXCJuZXh0UGFnZVwiLCBuZXh0KTtcbiAgICAgICAgfSBjYXRjaCB7XG4gICAgICAgICAgICBjbGVhck15VmFyKFwibmV4dFBhZ2VcIik7XG4gICAgICAgICAgIC8vIGxvZyhcIuWPr+iDveS4jeWtmOWcqOS4i+S4gOmhteaIluiAheS4i+S4gOmhteWumuS9jeaciemXrumimFwiKTtcbiAgICAgICAgfVxuXG4gICAgZnVuY3Rpb24gaW1nc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aWtlcjovL2VtcHR5XCIsXG4gICAgICAgIGNvbF90eXBlOiBcInRleHRfMVwiXG4gICAgfSwge1xuICAgICAgICBpbWc6IGltZyxcbiAgICAgICAgdXJsOiBcImhpa2VyOi8vc2VhcmNoP3J1bGU98J2QifCdkJrwnZCv8J2Qg/CdkIEmcz1cIiArIOivhuWIq+eggS50b1VwcGVyQ2FzZSgpLFxuICAgICAgICBjb2xfdHlwZTogXCJwaWNfMV9mdWxsXCIsXG4gICAgICAgIGV4dHJhOiB7XG5sb25nQ2xpY2s6IFt7XG4gICAgICAgICAgICAgICAgICAgICAgICB0aXRsZTogJ+i3s+mhtTonK2N1cnJlbnRwYWdlKyc9PlxcdOacgOWkp+mhtVxcdDrjgJAnICsgbGFzdHBhZ2VudW0gKyBcIuOAkVwiLFxuICAgICAgICAgICAgICAgICAgICAgICAganM6ICQudG9TdHJpbmcoKHVybCwgbGFzdHBhZ2VudW0pID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gJCgnJywgJzHliLAnICsgbGFzdHBhZ2VudW0gKyAn5LmL6Ze055qE6aG156CBJylcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLmlucHV0KCh1cmwsIGxhc3RwYWdlbnVtKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChwYXJzZUludChpbnB1dCkgPj0gMSAmJiBwYXJzZUludChpbnB1dCkgPD0gcGFyc2VJbnQobGFzdHBhZ2VudW0pICYmIHBhcnNlSW50KGlucHV0KSAlIDEgPT0gMCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHVybC5pbmNsdWRlcyhcIiZwYWdlZFwiKSl7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBqdW1wdSA9IHVybC5yZXBsYWNlKC9wYWdlZD1cXGQrLywgXCJwYWdlZD1cIiArIGlucHV0KVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcHV0TXlWYXIoXCJ1cmxcIiwganVtcHUpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVmcmVzaFBhZ2UoKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiAndG9hc3Q6Ly/kvaDlt7Lnu4/nqb/otorliLDkuoYnICsgaW5wdXQgKyAn6aG1J1xufWVsc2V7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBqdW1wdSA9IHVybC5yZXBsYWNlKC9wYWdlXFwvXFxkKy8sIFwicGFnZS9cIiArIGlucHV0KVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcHV0TXlWYXIoXCJ1cmxcIiwganVtcHUpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVmcmVzaFBhZ2UoKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiAndG9hc3Q6Ly/kvaDlt7Lnu4/nqb/otorliLDkuoYnICsgaW5wdXQgKyAn6aG1J1xufVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFwidG9hc3Q6Ly/or7fovpPlhaXmraPnoa7nmoTpobXnoIFcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSwgdXJsLCBsYXN0cGFnZW51bSlcbiAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICB1cmwsIGxhc3RwYWdlbnVtKVxuICAgICAgICAgICAgICAgICAgICB9XVxufVxuICAgIH0pXG5cbiAgICB2YXIgYWN0b3JzID0gcGRmYShpdGVtLCBcIi5wb3N0LXRhZ3MmJmFcIilcbiAgICBhY3RvcnMuZm9yRWFjaChhYyA9PiB7XG4gICAgICAgIGQucHVzaCh7XG4gIC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GQucHVzaCh7XG4gICAgICAgICAgICB0aXRsZTogdGl0bGUgPyB0aXRsZSA6ICfmkJzntKInLFxuICAgICAgICAgICAgdXJsOiAkLnRvU3RyaW5nKChyLHBhZ2UpID0+IHtcbiAgICAgICAgICAgICAgICB2YXIgc2VhcmNoID0gXCJodHRwczovL2F2ZGFueXV3aWtpLmNvbS8/cz1cIiArIGlucHV0LnJlcGxhY2UoL1xccy9nLFwiK1wiKSArIFwiJnBhZ2VkPVwiICsgcGFnZVxuICAgICAgICAgICAgICAgIHB1dFZhcigna2V5d29yZCcsIGlucHV0KTtcbiAgICAgICAgICAgICAgICBwdXRNeVZhcihcInVybFwiLCBzZWFyY2gpO1xuICAgICAgICAgICAgICAgIHJlZnJlc2hQYWdlKCk7XG4gICAgICAgICAgICAgICAgcmV0dXJuIFwiaGlrZXI6Ly9lbXB0eVwiXG4gICAgICAgICAgICAgICAgLy9yZXR1cm4gJ2hpa2VyOi8vc2VhcmNoP3J1bGU9JyArIHIgKyAnJnM9JyArIGlucHV0O1xuICAgICAgICAgICAgfSwgTVlfUlVMRS50aXRsZSxwYWdlKSxcbiAgICAgICAgICAgIGRlc2M6IGRlc2MgPyBkZXNjIDogJ+aQnOe0ouS9oOaDs+imgeeahCcsXG4gICAgICAgICAgICBjb2xfdHlwZTogJ2lucHV0JyxcbiAgICAgICAgICAgIGV4dHJhOiB7XG4gICAgICAgICAgICAgICAgZGVmYXVsdFZhbHVlOiBnZXRWYXIoJ2tleXdvcmQnLCAnJyksXG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgIH1cbiAgICByZXR1cm4gZDtcbn1cblxuLy/mloflrZfpopzoibJcbmZ1bmN0aW9uIGdldEhlYWQodGl0bGUsY29sb3IpIHtcbiAgICByZXR1cm4gJ+KAmOKAmOKAmeKAmTxzdHJvbmc+PG1pZGRsZT48Zm9udCBjb2xvcj1cIicrY29sb3IrJ1wiPicgKyB0aXRsZSArICc8L2Zyb250PjwvbWlkZGxlPjwvc3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HtcbiAgICAgICAgICAgICAgICAgICAgcHV0TXlWYXIoaG9zdCArIGMgKyBpbmRleCwgaWQpO1xuXG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgcHV0TXlWYXIoaG9zdCArIGMsIGlkKTtcbiAgICAgICAgICAgICAgICAgICAgZm9yIChsZXQgbiA9IHY7IG4gPD0gMjA7IG4rKykge1xuICAgICAgICAgICAgICAgICAgICAgICAgcHV0TXlWYXIoaG9zdCArIGMgKyAnaW5kZXgnICsgbiwgJy0xJyk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgY2xlYXJNeVZhcihcInVybFwiKTtcbiAgICAgICAgICAgICAgICBjbGVhck15VmFyKGhvc3QgKyAncGFnZScpO1xuICAgICAgICAgICAgICAgIGNsZWFyTXlWYXIoaG9zdCArICd1cmwnKTtcbiAgICAgICAgICAgICAgICBwdXRNeVZhcihob3N0ICsgYyArICdpbmRleCcgKyBpbmRleCwgaW5kZXhfYyk7XG4gICAgICAgICAgICAgICAgcmVmcmVzaFBhZ2UoKTtcbiAgICAgICAgICAgICAgICByZXR1cm4gJ2hpa2VyOi8vZW1wdHknO1xuICAgICAgICAgICAgfSwgaW5kZXgsIGNfaWRbaW5kZXhfY10sIGluZGV4X2MsIGhvc3QsIG1vZGUsIHRpdGxlLCB2LCBjKSxcbiAgICAgICAgfSk7XG4gICAgfSk7XG4gICAgZC5wdXNoKHtcbiAgICAgICAgY29sX3R5cGU6ICdibGFua19ibG9jaycsXG4gICAgfSk7XG4gICAgcmV0dXJuIGQ7XG59fSJ9XSwiYXNzb2NpYXRlZE1vZGVsc01hcEZvckpvaW5UYWJsZSI6e30sImFzc29jaWF0ZWRNb2RlbHNNYXBXaXRoRksiOnt9LCJhc3NvY2lhdGVkTW9kZWxzTWFwV2l0aG91dEZLIjp7fSwiZmllbGRzVG9TZXRUb0RlZmF1bHQiOltdLCJnbXRNb2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KHVybCwge1xcbiAgICAgICAgICAgIGhlYWRlcnM6IHtcXG4gICAgICAgICAgICAgICAgJ1VzZXItQWdlbnQnOiAnTW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMCknXFxuICAgICAgICAgICAgfVxcbiAgICAgICAgfSlcXG4gICAgICAgIGxvZyh1cmwpXFxuICAgICAgICB0cnkge1xcbiAgICAgICAgICAgIHZhciBuZXh0ID0gcGRmaChodG1sLCBcXFwiLnBhZ2luYXRpb24tbmV4dCYmYSYmaHJlZlxcXCIpXFxuICAgICAgICAgICAgcHV0TXlWYXIoXFxcIm5leHRQYWdlXFxcIiwgbmV4dCk7XFxuICAgICAgICB9IGNhdGNoIHtcXG4gICAgICAgICAgICBjbGVhck15VmFyKFxcXCJuZXh0UGFnZVxcXCIpO1xcbiAgICAgICAgICAgLy8gbG9nKFxcXCLlj6/og73kuI3lrZjlnKjkuIvkuIDpobXmiJbogIXkuIvkuIDpobXlrprkvY3mnInpl67pophcXFwiKTtcXG4gICAgICAgIH1cXG5cXG4gICAgZnVuY3Rpb24gaW1nc3JjKGltZykge1xcbiAgICAgICAgbGV0IGNvZGUgPSBpbWcubWF0Y2goL3A9KC4qPykmLykgPyBpbWcubWF0Y2goL3A9KC4qPykmLylbMV0gOiBcXFwiMFxcXCJcXG4gICAgICAgIGlmIChjb2RlICE9IFxcXCIwXFxcIikge1xcbiAgICAgICAgICAgIHRyeSB7XFxuICAgICAgICAgICAgICAgIGxldCB1cmwgPSBcXFwiaHR0cHM6Ly93d3cubWdzdGFnZS5jb20vcGhwL2FwaS93aWRnZXRfYWZmaWxpYXRlLnBocD9jYWxsYmFjaz1fbWdzd2pzcC5fOTUyNyZmcm9tPXBwdiZhZmZjb2RlPUhUNllXN1VIOFQ0WURMWDRRTVpBNEVQSlIzJnNrdT1cXFwiICsgY29kZSArIFxcXCImaT10JnQ9dFxcXCJcXG4gICAgICAgICAgICAgICAgbGV0IGh0bWwgPSBKU09OLnBhcnNlKGZldGNoKHVyb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hcmNoP3J1bGU98J2QifCdkJrwnZCv8J2Qg/CdkIEmcz1cXFwiICsg6K+G5Yir56CBLnRvVXBwZXJDYXNlKCksXFxuICAgICAgICBjb2xfdHlwZTogXFxcInBpY18xX2Z1bGxcXFwiLFxcbiAgICAgICAgZXh0cmE6IHtcXG5sb25nQ2xpY2s6IFt7XFxuICAgICAgICAgICAgICAgICAgICAgICAgdGl0bGU6ICfot7PpobU6JytjdXJyZW50cGFnZSsnPT5cXFxcdOacgOWkp+mhtVxcXFx0OuOAkCcgKyBsYXN0cGFnZW51bSArIFxcXCLjgJFcXFwiLFxcbiAgICAgICAgICAgICAgICAgICAgICAgIGpzOiAkLnRvU3RyaW5nKCh1cmwsIGxhc3RwYWdlbnVtKSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiAkKCcnLCAnMeWIsCcgKyBsYXN0cGFnZW51bSArICfkuYvpl7TnmoTpobXnoIEnKVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLmlucHV0KCh1cmwsIGxhc3RwYWdlbnVtKSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAocGFyc2VJbnQoaW5wdXQpID49IDEgJiYgcGFyc2VJbnQoaW5wdXQpIDw9IHBhcnNlSW50KGxhc3RwYWdlbnVtKSAmJiBwYXJzZUludChpbnB1dCkgJSAxID09IDApIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAodXJsLmluY2x1ZGVzKFxcXCImcGFnZWRcXFwiKSl7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAganVtcHUgPSB1cmwucmVwbGFjZSgvcGFnZWQ9XFxcXGQrLywgXFxcInBhZ2VkPVxcXCIgKyBpbnB1dClcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwdXRNeVZhcihcXFwidXJsXFxcIiwganVtcHUpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJlZnJlc2hQYWdlKCk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuICd0b2FzdDovL+S9oOW3sue7j+epv+i2iuWIsOS6hicgKyBpbnB1dCArICfpobUnXFxufWVsc2V7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAganVtcHUgPSB1cmwucmVwbGFjZSgvcGFnZVxcXFwvXFxcXGQrLywgXFxcInBhZ2UvXFxcIiArIGlucHV0KVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHB1dE15VmFyKFxcXCJ1cmxcXFwiLCBqdW1wdSk7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVmcmVzaFBhZ2UoKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gJ3RvYXN0Oi8v5L2g5bey57uP56m/6LaK5Yiw5LqGJyArIGlucHV0ICsgJ+mhtSdcXG59XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBcXFwidG9hc3Q6Ly/or7fovpPlhaXmraPnoa7nmoTpobXnoIFcXFwiXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sIHVybCwgbGFzdHBhZ2VudW0pXFxuICAgICAgICAgICAgICAgICAgICAgICAgfSxcXG4gICAgICAgICAgICAgICAgICAgICAgICB1cmwsIGxhc3RwYWdlbnVtKVxcbiAgICAgICAgICAgICAgICAgICAgfV1cXG59XFxuICAgIH0pXFxuXFxuICAgIHZhciBhY3RvcnMgPSBwZGZhKGl0ZW0sIFxcXCIucG9zdC10YWdzJiZhXFxcIilcXG4gICAgYWN0b3JzLmZvckVhY2goYWMgPT4ge1xcbiAgICAgICAgZC5wdXNoKHtcXG4gICAgICAgICAgICB0aXRsZTog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ICAgICAgICAgdXJsOiBjX2lkW2luZGV4X2NdLmluY2x1ZGVzKCcjJyk/J2hpa2VyOi8vZW1wdHknOiQoJyNub0xvYWRpbmcjJykubGF6eVJ1bGUoKGluZGV4LCBpZCwgaW5kZXhfYywgaG9zdCwgbW9kZSwgdGl0bGUsIHYsIGMpID0+IHtcXG4gICAgICAgICAgICAgICAgaWYgKG1vZGUpIHtcXG4gICAgICAgICAgICAgICAgICAgIHB1dE15VmFyKGhvc3QgKyBjICsgaW5kZXgsIGlkKTtcXG5cXG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcXG4gICAgICAgICAgICAgICAgICAgIHB1dE15VmFyKGhvc3QgKyBjLCBpZCk7XFxuICAgICAgICAgICAgICAgICAgICBmb3IgKGxldCBuID0gdjsgbiA8PSAyMDsgbisrKSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgcHV0TXlWYXIoaG9zdCArIGMgKyAnaW5kZXgnICsgbiwgJy0xJyk7XFxuICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICAgICAgY2xlYXJNeVZhcihcXFwidXJsXFxcIik7XFxuICAgICAgICAgICAgICAgIGNsZWFyTXlWYXIoaG9zdCArICdwYWdlJyk7XFxuICAgICAgICAgICAgICAgIGNsZWFyTXlWYXIoaG9zdCArICd1cmwnKTtcXG4gICAgICAgICAgICAgICAgcHV0TXlWYXIoaG9zdCArIGMgKyAnaW5kZXgnICsgaW5kZXgsIGluZGV4X2MpO1xcbiAgICAgICAgICAgICAgICByZWZyZXNoUGFnZSgpO1xcbiAgICAgICAgICAgICAgICByZXR1cm4gJ2hpa2VyOi8vZW1wdHknO1xcbiAgICAgICAgICAgIH0sIGluZGV4LCBjX2lkW2luZGV4X2NdLCBpbmRleF9jLCBob3N0LCBtb2RlLCB0aXRsZSwgdiwgYyksXFxuICAgICAgICB9KTtcXG4gICAgfSk7XFxuICAgIGQucHVzaCh7XFxuICAgICAgICBjb2xfdHlwZTogJ2JsYW5rX2Jsb2NrJyxcXG4gICAgfSk7XFxuICAgIHJldHVybiBkO1xcbn19XCJ9XSJ9
Add Comment
Please, Sign In to add comment