mirror of
https://github.com/alantang1977/hipy.git
synced 2024-11-22 14:46:56 +02:00
1 line
8.1 KiB
JavaScript
1 line
8.1 KiB
JavaScript
|
dmFyIHJ1bGUgPSB7CiAgICJ0aXRsZSI6ICLnmq7nmq7lvbHop4YiLAogICAg5qih5p2/OiAnbXhwcm8nLAogICAgdGFiX2V4Y2x1ZGU6ICfmjpLluo8nLAogICAgImhvc3QiOiAiaHR0cHM6Ly93d3cucHB5czAxLmNvbSIsCiAgICAgInVybCI6ICIvdm9kc2hvdy9meWNsYXNzZnlmaWx0ZXIuaHRtbCIsCiAgICAic2VhcmNoVXJsIjogIi92b2RzZWFyY2gvKiotLS0tLS0tLS0tZnlwYWdlLS0tLmh0bWwiLAogICAgInNlYXJjaGFibGUiOiAyLAogICAgInF1aWNrU2VhcmNoIjogMCwKICAgICJmaWx0ZXJhYmxlIjogMSwKICAgICJoZWFkZXJzIjogewogICAgICAgICJVc2VyLUFnZW50IjogIk1vemlsbGEvNS4wIChMaW51eDsgQW5kcm9pZCAxMTsgUGl4ZWwgNSkgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzkwLjAuNDQzMC45MSBNb2JpbGUgU2FmYXJpLzUzNy4zNiIKICAgIH0sCiAgICAiY2xhc3NfcGFyc2UiOiAiLm5hdmJhci1pdGVtcyBsaTpndCgwKTpsdCg4KTthJiZUZXh0O2EmJmhyZWY7LyhcXGQrKS5odG1sIiwKICAgICJwbGF5X3BhcnNlIjogdHJ1ZSwKICAgIGxhenk6ICRqcy50b1N0cmluZygoKSA9PiB7CiAgICAgICAgbGV0IGh0bWwgPSBKU09OLnBhcnNlKHJlcXVlc3QoaW5wdXQpLm1hdGNoKC9yIHBsYXllcl8uKj89KC4qPyk8LylbMV0pOwogICAgICAgIGxldCB1cmwgPSBodG1sLnVybDsKICAgICAgICBpZiAoaHRtbC5lbmNyeXB0ID09ICcxJykgewogICAgICAgICAgICB1cmwgPSB1bmVzY2FwZSh1cmwpOwogICAgICAgIH0gZWxzZSBpZiAoaHRtbC5lbmNyeXB0ID09ICcyJykgewogICAgICAgICAgICB1cmwgPSB1bmVzY2FwZShiYXNlNjREZWNvZGUodXJsKSk7CiAgICAgICAgfQogICAgICAgIGlmICgvbTN1OC8udGVzdCh1cmwpKSB7CiAgICAgICAgICAgIGlucHV0ID0gewogICAgICAgICAgICAgICAgang6IDAsCiAgICAgICAgICAgICAgICB1cmw6IHVybCwKICAgICAgICAgICAgICAgIHBhcnNlOiAwCiAgICAgICAgICAgIH0KICAgICAgICB9IGVsc2UgewogICAgICAgICAgICBsZXQgY29uZmlnID0ge307CiAgICAgICAgICAgIGV2YWwocmVxdWVzdChIT1NUICsgJy9zdGF0aWMvanMvcGxheWVyY29uZmlnLmpzJykgKyAnXG5jb25maWc9TWFjUGxheWVyQ29uZmlnOycpOwogICAgICAgICAgICBsZXQganggPSBIT1NUICsgY29uZmlnLnBsYXllcl9saXN0W2h0bWwuZnJvbV0ucGFyc2U7CiAgICAgICAgICAgIGlmIChqeCA9PSAnJykgewogICAgICAgICAgICAgICAganggPSBIT1NUICsgY29uZmlnLnBhcnNlOwogICAgICAgICAgICB9CiAgICAgICAgICAgIGxvZyhqeCk7CiAgICAgICAgICAgIGV2YWwocmVxdWVzdChqeCArIHVybCwgewogICAgICAgICAgICAgICAgaGVhZGVyczogewogICAgICAgICAgICAgICAgICAgICdSZWZlcmVyJzogaW5wdXQKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSkubWF0Y2goL2xldCBjb25maWcgPSB7W1xzXFNdKj99LylbMF0pOwogICAgICAgICAgICBsb2coY29uZmlnLnVybCk7CiAgICAgICAgICAgIGV2YWwoZ2V0Q3J5cHRvSlMoKSk7CgogICAgICAgICAgICBmdW5jdGlvbiByYzQoZGF0YSwga2V5LCB0KSB7CiAgICAgICAgICAgICAgICBsZXQgcHdkID0ga2V5IHx8ICdmZnNpcmxscSc7CiAgICAgICAgICAgICAgICBsZXQgY2lwaGVyID0gJyc7CiAgICAgICAgICAgICAgICBrZXkgPSBbXTsKICAgICAgICAgICAgICAgIGxldCBib3ggPSBbXTsKICAgICAgICAgICAgICAgIGxldCBwd2RfbGVuZ3RoID0gcHdkLmxlbmd0aDsKICAgICAgICAgICAgICAgIGlmICh0ID09IDEpIHsKICAgICAgICAgICAgICAgICAgICBkYXRhID0gYXRvYihkYXRhKTsKICAgICAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICAgICAgZGF0YSA9IGVuY29kZVVSSUNvbXBvbmVudChkYXRhKTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIGxldCBkYXRhX2xlbmd0aCA9IGRhdGEubGVuZ3RoOwogICAgICAgICAgICAgICAgZm9yIChsZXQgaSA9IDA7IGkgPCAyNTY7IGkrKykgewogICAgICAgICAgICAgICAgICAgIGtleVtpXSA9IHB3ZFtpICUgcHdkX2xlbmd0aF0uY2hhckNvZGVBdCgpOwogICAgICAgICAgICAgICAgICAgIGJveFtpXSA9IGk7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICBmb3IgKGxldCBqID0gMCwgaSA9IDA7IGkgPCAyNTY7IGkrKykgewogICAgICAgICAgICAgICAgICAgIGogPSAoaiArIGJveFtpXSArIGtleVtpXSkgJSAyNTY7CiAgICAgICAgICAgICAgICAgICAgbGV0IHRtcCA9IGJveFtpXTsKICAgICAgICAgICAgICAgICAgICBib3hbaV0gPSBib3hbal07CiAgICAgICAgICAgICAgICAgICAgYm94W2pdID0gdG1wOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgZm9yIChsZXQgYSA9IDAsIGogPSAwLCBpID0gMDsgaSA8IGRhdGFfbGVuZ3RoOyBpKyspIHsKICAgICAgICAgICAgICAgICAgICBhID0gKGEgKyAxKSAlIDI1NjsKICAgICAgICAgICAgICAgICAgICBqID0gKGogKyBib3hbYV0pICUgMjU2OwogICAgICAgICAgICAgICAgICAgIGxldCB0bXAgPSBib3hbYV07CiAgICAgICAgICAgICAgICAgICAgYm94W2FdID0gYm94W2pdOwogICAgICAgICAgICAgICAgICAgIGJveFtqXSA9IHRtcDsKICAgICAgICAgICAgICAgICAgICBsZXQgayA9IGJveFsoKGJveFthXSArIGJveFtqXSkgJSAyNTYpXTsKICAgICAgICAgICAgICAgICAgICBjaXBoZXIgKz0gU3RyaW5nLmZyb21DaGFyQ29kZShkYXRhW2ldLmNoYXJDb2RlQXQoKSBeIGspOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgaWYgKHQgPT0gMSkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiBkZWNvZGVVUklDb21wb25lbnQoY2lwaGVyKTsKICAgICAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGJ0b2EoY2lwaGVyKTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQoKICAgICAgICAgICAgbGV0IHBsYXkgPSByYzQoY29uZmlnLnVybCwgIjIwMjIwNTA1MTQyNjIzOTQ2NSIsIDEpOwogICAgICAgICAgICBpbnB1dCA
|