Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@ChiAPP@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6InZhciBjaHAgPSBbXTtcbnRyeSB7XG4gICAgdmFyIGh0bWwgPSBKU09OLnBhcnNlKGdldFJlc0NvZGUoKSk7XG4gICAgdmFyIGNvbnRzID0gaHRtbC5kYXRhLnZvZF9wbGF5X3VybC5zcGxpdCgnJCQkJyk7XG4gICAgZm9yICh2YXIgaSA9IDA7IGkgPCBjb250cy5sZW5ndGg7IGkrKykge1xuICAgICAgICB2YXIgbGlzdCA9IGNvbnRzW2ldLnNwbGl0KFwiI1wiKTtcbiAgICAgICAgY2hwLnB1c2gobGlzdC5sZW5ndGgpO1xuICAgIH1cbn0gY2F0Y2ggKGUpIHt9XG5zZXRSZXN1bHQoJ+abtOaWsOiHszonICsgKE1hdGgubWF4LmFwcGx5KE1hdGgsIGNocCkpKTsiLCJ0aXRsZSI6IkNoaUFQUCIsImF1dGhvciI6ImNoaW5lbmkiLCJ1cmwiOiJoaWtlcjovL2VtcHR5L21vdmllcy9nZXRUeXBlTW92aWVzP3R5cGU9ZnljbGFzcyZwYWdlPWZ5cGFnZSZjb3VudD0zMCZ5ZWFyPSZhcmVhPSIsInZlcnNpb24iOjIsImNvbF90eXBlIjoibW92aWVfMyIsImNsYXNzX25hbWUiOiLmjqjojZAm55S16KeG5YmnJueUteW9sSbnu7zoibom5Yqo5ryrJuiuvue9riIsInR5cGUiOiJvdGhlciIsImNsYXNzX3VybCI6IuaOqOiNkCYyJjEmMyY0Juiuvue9riIsImFyZWFfbmFtZSI6IiIsImFyZWFfdXJsIjoiIiwic29ydF9uYW1lIjoiIiwieWVhcl9uYW1lIjoiIiwic29ydF91cmwiOiIiLCJ5ZWFyX3VybCI6IiIsImZpbmRfcnVsZSI6ImpzOlxudmFyIHJlcyA9IHt9O1xudmFyIGl0ZW1zID0gW107XG5cbmZ1bmN0aW9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idcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgc2V0SXRlbSgnbGlua21vZGUnLCAnaHR0cHM6Ly9hcGkuY2hpbmVuaS5jb20nKTtcbiAgICAgICAgICAgICAgICByZWZyZXNoUGFnZSgpO1xuICAgICAgICAgICAgICAgIHJldHVybiAndG9hc3Q6Ly/lt7LliIfmjaLmiJDnm7Tpk77mqKHlvI/jgIInXG4gICAgICAgICAgICB9XG4gICAgICAgIH0pLFxuICAgICAgICBkZXNjOiAvY2hpbmVuaS8udGVzdChnZXRJdGVtKCdsaW5rbW9kZScpKSA/ICflvZPliY3nm7Tov57mqKHlvI8o56e75Yqo572R57uc5o6o6I2QKScgOiAn5b2T5YmN5Luj55CG5qih5byPKOiBlOmAmueUteS/oee9kee7nOaOqOiNkCknLFxuICAgICAgICBjb2xfdHlwZTogJ3RleHRfY2VudGVyXzEnXG4gICAgfSlcbn0gZWxzZSBpZiAoTVlfVVJMLmluZGV4T2YoJ+aOqOiNkCcpICE9IC0xKSB7XG4gICAgdHJ5IHtcbiAgICAgICAgdmFyIHBpbmggPSBnZXRJdGVtKCdsaW5rbW9kZScpICsgJy9tb3ZpZXMvaW5kZXgnO1xuICAgICAgICB2YXIgaHRtbCA9IEpTT04ucGFyc2UoZmV0Y2gocGluaCwge30pKTtcbiAgICAgICAgdmFyIGNvbnRzID0gT2JqZWN0LmtleXMoaHRtbC5kYXRhKTtcblxuICAgICAgICBmb3IgKHZhciBpID0gMDsgaSA8IGNvbnRzLmxlbmd0aDsgaSsrKSB7XG4gICAgICAgICAgICB2YXIgbGlzdCA9IGh0bWwuZGF0YVtjb250c1tpXV07XG4gICAgICAgICAgICB2YXIgdGFidCA9IGNvbnRzW2ldO1xuICAgICAgICAgICAgaWYgKHRhYnQgPT0gJ2R5Jykge1xuICAgICAgICAgICAgICAgIHRhYnQgPSAn54Ot5pKt55S15b2xJztcbiAgICAgICAgICAgIH0gZWxzZSBpZiAodGFidCA9PSAnZG0nKSB7XG4gICAgICAgICAgICAgICAgdGFidCA9ICfng63mkq3liqjmvKsnO1xuICAgICAgICAgICAgfSBlbHNlIGlmICh0YWJ0ID09ICdkc2onKSB7XG4gICAgICAgICAgICAgICAgdGFidCA9ICfng63mkq3nlLXop4bliacnO1xuICAgICAgICAgICAgfSBlbHNlIGlmICh0YWJ0ID09ICdndGonKSB7XG4gICAgICAgICAgICAgICAgdGFidCA9ICfng63mkq3muK/lj7DliacnO1xuICAgICAgICAgICAgfSBlbHNlIGlmICh0YWJ0ID09ICdtaicpIHtcbiAgICAgICAgICAgICAgICB0YWJ0ID0gJ+eDreaSree+juWJpyc7XG4gICAgICAgICAgICB9IGVsc2UgaWYgKHRhYnQgPT0gJ3JoaicpIHtcbiAgICAgICAgICAgICAgICB0YWJ0ID0gJ+eDreaSreaXpemfqeWJpyc7XG4gICAgICAgICAgICB9IGVsc2UgaWYgKHRhYnQgPT0gJ3p5Jykge1xuICAgICAgICAgICAgICAgIHRhYnQgPSAn54Ot5pKt57u86Im6JztcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGl0ZW1zLnB1c2goe1xuICAgICAgICAgICAgICAgIHRpdGxlOiB0YWJ0LFxuICAgICAgICAgICAgICAgIHVybDogJ2hpa2VyOi8vZW1wdHknLFxuICAgICAgICAgICAgICAgIGNvbF90eXBlOiAndGV4dF8xJ1xuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICBsaXN0c2hvdygpO1xuICAgICAgICB9XG4gICAgfSBjYXRjaCAoZSkge31cbn0gZWxzZSB7XG4gICAgdHJ5IHtcbiAgICAgICAgdmFyIHBpbmggPSBnZXRJdGVtKCdsaW5rbW9kZScpICsgTVlfVVJMLnJlcGxhY2UoJ2hpa2VyOi8vZW1wdHknLCAnJyk7XG4gICAgICAgIHZhciBodG1sID0gSlNPTi5wYXJzZShmZXRjaChwaW5oLCB7fSkpO1xuICAgICAgICB2YXIgbGlzdCA9IGh0bWwuZGF0YTtcbiAgICAgICAgbGlzdHNob3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zMnIDogJ3RleHRfNSdcbiAgICAgICAgfVxuICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgdGl0bGU6IGN0aXQsXG4gICAgICAgICAgICB1cmw6ICQobGlzdFtqXS5zcGxpdCgnJCcpWzFdKS5sYXp5UnVsZSgoKSA9PiB7XG4gICAgICAgICAgICAgICAgdmFyIHVybGwgPSBpbnB1dCxcbiAgICAgICAgICAgICAgICAgICAgZGFubXUgPSBbXTtcbiAgICAgICAgICAgICAgICAvL3BhcndpeOW8ueW5leaOpeWPo+S7o+eggVxuICAgICAgICAgICAgICAgIHRyeSB7XG4gICAgICAgICAgICAgICAgICAgIHZhciBqc29uID0gSlNPTi5wYXJzZShyZXF1ZXN0KFwiaHR0cHM6Ly9qeC5wYXJ3aXguY29tOjQ0MzMvZG1rdS8/YWM9ZG0maWQ9XCIgKyBtZDUodXJsbCkuc2xpY2UoMTIpICsgJyBQJywge30pKTtcbiAgICAgICAgICAgICAgICAgICAgZm9yIChsZXQgaSA9IDA7IGkgPCBqc29uLmRhbm11a3UubGVuZ3RoOyBpKyspIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGRhbm11LnB1c2goe1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRleHQ6IGpzb24uZGFubXVrdVtpXVs0XSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aW1lOiBqc29uLmRhbm11a3VbaV1bMF1cbiAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICB9O1xuICAgICAgICAgICAgICAgIH0gY2F0Y2ggKGUpIHt9XG4gICAgICAgICAgICAgICAgd3JpdGVGaWxlKFwiaGlrZXI6Ly9maWxlcy9jYWNoZS9kYW5tdS5qc29uXCIsIEpTT04uc3RyaW5naWZ5KGRhbm11KSk7XG4gICAgICAgICAgICAgICAgLy/lvLnluZXku6PnoIHnu5PmnZ9cbiAgICAgICAgICAgICAgICBpZiAoLy5odG1sfC5iaWxpYmlsaS8udGVzdCh1cmxsKSkge1xuICAgICAgICAgICAgICAgICAgICB2YXIgamllayA9IFt7XG4gICAgICAgICAgICAgICAgICAgICAgICAndXJsJzogJ2h0dHA6Ly8xMzkuOS4xNDQuNTU6MzAwMi9qaWV4aUxpbmU/dXJsPScgKyB1cmxsICsgJyZsaW5lPWEnLFxuICAgICAgICAgICAgICAgICAgICAgICAgJ3RhYnMnOiAn57q/6LevQSdcbiAgICAgICAgICAgICAgICAgICAgfSwge1xuICAgICAgICAgICAgICAgICAgICAgICAgJ3VybCc6ICdodHRwOi8vMTM5LjkuMTQ0LjU1OjMwMDIvamlleGlMaW5lP3VybD0nICsgdXJsbCArICcmbGluZT1iJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICd0YWJzJzogJ+e6v+i3r0InXG4gICAgICAgICAgICAgICAgICAgIH0sIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICd1cmwnOiAnaHR0cDovLzEzOS45LjE0NC41NTozMDAyL2ppZXhpTGluZT91cmw9JyArIHVybGwgKyAnJmxpbmU9YycsXG4gICAgICAgICAgICAgICAgICAgICAgICAndGFicyc6ICfnur/ot69DJ1xuICAgICAgICAgICAgICAgICAgICB9LCB7XG4gICAgICAgICAgICAgICAgICAgICAgICAndXJsJzogJ2h0dHA6Ly8xMzkuOS4xNDQuNTU6MzAwMi9qaWV4aT91cmw9JyArIHVybGwsXG4gICAgICAgICAgICAgICAgICAgICAgICAndGFicyc6ICfpu5jorqQnXG4gICAgICAgICAgICAgICAgICAgIH0sIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICd1cmwnOiAnaHR0cHM6Ly9qc29uLnBhbmd1amlleGkuY29tOjEyMzQ1L2pzb24ucGhwP3VybD0nICsgdXJsbCxcbiAgICAgICAgICAgICAgICAgICAgICAgICd0YWJzJzogJ+ebmOWPpCdcbiAgICAgICAgICAgICAgICAgICAgfV07XG4gICAgICAgICAgICAgICAgICAgIC8vdmFyIGJmanNvbiA9IGJhdGNoRmV0Y2goamllayk7XG4gICAgICAgICAgICAgICAgICAgIC8vbG9nKGJmanNvbik7XG4gICAgICAgICAgICAgICAgICAgIHZhciBtdWx0ID0gW10sXG4gICAgICAgICAgICAgICAgICAgICAgICBoZWFuID0gW10sXG4gICAgICAgICAgICAgICAgICAgICAgICB0YWJzID0gW107XG4gICAgICAgICAgICAgICAgICAgIGZvciAodmFyIGkgPSAwOyBpIDwgamllay5sZW5ndGg7IGkrKykge1xuICAgICAgICAgICAgICAgICAgICAgICAgLy92YXIgaHRtbCA9IGJmanNvbltpXTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRyeSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGh0bWwgPSBmZXRjaChqaWVrW2ldLnVybCwge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aW1lb3V0OiAyMDAwXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgICAgICB9IGNhdGNoIChlKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaHRtbCA9IFwiXCI7XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAoL2h0dHAvLnRlc3QoaHRtbCkpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoL3Bhbmd1amlleGkvLnRlc3Qoamlla1tpXS51cmwpKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBwbGF5ID0gSlNPTi5wYXJzZShodG1sKS51cmw7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHBsYXkgPSBKU09OLnBhcnNlKGh0bWwpLmRhdGE7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoL3RpdGFuXFwubWd0di8udGVzdChwbGF5KSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgaGVhZCA9IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICdVc2VyLUFnZW50JzogJ01vemlsbGEvNS4wJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICdSZWZlcmVyJzogJ3d3dy5tZ3R2LmNvbSdcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKC9iaWxpdmlkZW8vLnRlc3QocGxheSkpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGhlYWQgPSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAnVXNlci1BZ2VudCc6ICdNb3ppbGxhLzUuMCcsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAnUmVmZXJlcic6ICdodHRwczovL3d3dy5iaWxpYmlsaS5jb20nXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH07XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGhlYWQgPSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAnVXNlci1BZ2VudCc6ICdMYXZmLzU4LjEyLjEwMCcsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAnSWN5LU1ldGFEYXRhJzogJzEnXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH07XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBsYXkgPSBjYWNoZU0zdTgocGxheSwge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBoZWFkZXJzOiBoZWFkXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSwgJ3ZpZGVvJyArIFtpXSArICcubTN1OCcpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG11bHQucHVzaChwbGF5KTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAvL211bHQucHVzaCh7J3VybCc6cGxheSwnb3B0aW9ucyc6e2hlYWRlcnM6aGVhZH19KTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBoZWFuLnB1c2goaGVhZCk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGFicy5wdXNoKGppZWtbaV0udGFicyk7XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIH07XG4gICAgICAgICAgICAgICAgICAgIC8vbG9nKG11bHQpO1xuXG4gICAgICAgICAgICAgICAgICAgIGlmIChtdWx0Lmxlbmd0aCA+IDApIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vdmFyIGJjbXBsYXkgPSBiYXRjaENhY2hlTTN1OChtdWx0KTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBKU09OLnN0cmluZ2lmeSh7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdXJsczogbXVsdCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAvL3VybHM6IGJjbXBsYXksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbmFtZXM6IHRhYnMsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZGFubXU6IFwiaGlrZXI6Ly9maWxlcy9jYWNoZS9kYW5tdS5qc29uXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaGVhZGVyczogaGVhblxuICAgICAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gdXJsbFxuICAgICAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gSlNPTi5zdHJpbmdpZnkoe1xuICAgICAgICAgICAgICAgICAgICAgICAgdXJsczogW3VybGxdLFxuICAgICAgICAgICAgICAgICAgICAgICAgZGFubXU6IFwiaGlrZXI6Ly9maWxlcy9jYWNoZS9kYW5tdS5qc29uXCJcbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSksXG4gICAgICAgICAgICBjb2xfdHlwZTogY2x0XG4gICAgICAgIH0pO1xuICAgIH1cbn1cblxucmVzLmRhdGEgPSBkO1xuc2V0SG9tZVJlc3VsdChyZXMpOyIsInNkZXRhaWxfY29sX3R5cGUiOiJtb3ZpZV8xIiwic2RldGFpbF9maW5kX3J1bGUiOiIqIiwidWEiOiJhdXRvIiwicHJlUnVsZSI6Ii8v5Luj55CGaHR0cHM6Ly9tb3ZpZS5zcHp5dy50b3Bcbi8v55u06ZO+aHR0cHM6Ly9hcGkuY2hpbmVuaS5jb21cbmlmICghZ2V0SXRlbSgnbGlua21vZGUnLCAnJykpIHtcbiAgICBzZXRJdGVtKCdsaW5rbW9kZScsICdodHRwczovL2FwaS5jaGluZW5pLmNvbScpO1xufSIsInBhZ2VzIjoiW10iLCJpY29uIjoiIn0=
Add Comment
Please, Sign In to add comment