mirror of
https://github.com/alantang1977/hipy.git
synced 2024-11-22 14:46:56 +02:00
1 line
8 KiB
JavaScript
1 line
8 KiB
JavaScript
|
Ly8g5Zyw5Z2A5Y+R5biD6aG1IGh0dHBzOi8vd3d3LmRhbmRhbmp1LnZpcAovLyDmkJzntKLlronlhajpqozor4EgPiDpgJrov4dkcnB5X29jcumqjOivgeeggeaOpeWPo+i/h+mqjOivgU9LCgpmdW5jdGlvbiB2ZXJpZnlMb2dpbih1cmwpIHsKICAgIGxldCBjbnQgPSAwOwogICAgbGV0IGNvb2tpZSA9ICcnOwogICAgbGV0IHIgPSBNYXRoLnJhbmRvbSgpOwogICAgbGV0IHl6bV91cmwgPSBnZXRIb21lKHVybCkgKyAnL2luZGV4LnBocC92ZXJpZnkvaW5kZXguaHRtbCc7CiAgICBsb2coYOmqjOivgeeggemTvuaOpToke3l6bV91cmx9YCk7CiAgICBsZXQgc3VibWl0X3VybCA9IGdldEhvbWUodXJsKSArICcvaW5kZXgucGhwL2FqYXgvdmVyaWZ5X2NoZWNrJzsKICAgIGxvZyhgcG9zdOeZu+W9lemTvuaOpToke3N1Ym1pdF91cmx9YCk7CiAgICB3aGlsZSAoY250IDwgT0NSX1JFVFJZKSB7CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgbGV0IHtjb29raWUsIGh0bWx9ID0gcmVxQ29va2llKHl6bV91cmwgKyAnP3I9JyArIHIsIHt0b0Jhc2U2NDogdHJ1ZX0pOwogICAgICAgICAgICBsZXQgY29kZSA9IE9jckFwaS5jbGFzc2lmaWNhdGlvbihodG1sKTsKICAgICAgICAgICAgbG9nKGDnrKwke2NudCArIDF95qyh6aqM6K+B56CB6K+G5Yir57uT5p6cOiR7Y29kZX1gKTsKICAgICAgICAgICAgaHRtbCA9IHBvc3Qoc3VibWl0X3VybCwgewogICAgICAgICAgICAgICAgaGVhZGVyczoge0Nvb2tpZTogY29va2llfSwKICAgICAgICAgICAgICAgIGJvZHk6ICd0eXBlPXNob3cmdmVyaWZ5PScgKyBjb2RlLAogICAgICAgICAgICB9KTsKICAgICAgICAgICAgaHRtbCA9IEpTT04ucGFyc2UoaHRtbCk7CiAgICAgICAgICAgIAogICAgICAgICAgICBpZiAoaHRtbC5jb2RlID09PSAxKSB7CiAgICAgICAgICAgICAgICBsb2coYOesrCR7Y250ICsgMX3mrKHpqozor4HnoIHmj5DkuqTmiJDlip9gKTsKICAgICAgICAgICAgICAgIGxvZyhjb29raWUpOwogICAgICAgICAgICAgICAgcmV0dXJuIGNvb2tpZSAvLyDpnIDopoHov5Tlm55jb29raWUKICAgICAgICAgICAgfSBlbHNlIGlmIChodG1sLmNvZGUgIT09IDEgJiYgY250ICsgMSA+PSBPQ1JfUkVUUlkpIHsKICAgICAgICAgICAgICAgIGNvb2tpZSA9ICcnOyAvLyDpnIDopoHmuIXnqbrov5Tlm55jb29raWUKICAgICAgICAgICAgfQogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgbG9nKGDnrKwke2NudCArIDF95qyh6aqM6K+B56CB5o+Q5Lqk5aSx6LSlOiR7ZS5tZXNzYWdlfWApOwogICAgICAgICAgICBpZiAoY250ICsgMSA+PSBPQ1JfUkVUUlkpIHsKICAgICAgICAgICAgICAgIGNvb2tpZSA9ICcnOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIGNudCArPSAxCiAgICB9CiAgICByZXR1cm4gY29va2llCn0KCmdsb2JhbFRoaXMudmVyaWZ5TG9naW4gPSB2ZXJpZnlMb2dpbjsKCnZhciBydWxlID0gewogICAgdGl0bGU6J+ibi+ibi+WJpycsCiAgICAvLyBob3N0OidodHRwczovL3d3dy5kYW5kYW5qdS5jYycsCiAgICBob3N0OidodHRwczovL3d3dy5kYW5kYW5qdS52aXAnLAogICAgaG9zdEpzOidwcmludChIT1NUKTtsZXQgaHRtbD1yZXF1ZXN0KEhPU1Qse2hlYWRlcnM6eyJVc2VyLUFnZW50IjpQQ19VQX19KTtsZXQgc3JjPWpzcC5wZGZoKG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