From 157a6e6bf328d3053e876e5a6149616d5ece8f1d Mon Sep 17 00:00:00 2001 From: leon-do Date: Thu, 16 Dec 2021 14:06:07 -0500 Subject: [PATCH] v1.0.14 --- .../Web3GL-2019/asset-manifest.json | 202 +++++++++--------- WebGLTemplates/Web3GL-2019/index.html | 2 +- WebGLTemplates/Web3GL-2019/network.js | 8 +- .../Web3GL-2019/static/js/0.0a798628.chunk.js | 1 - .../Web3GL-2019/static/js/0.1a1c634a.chunk.js | 1 + .../Web3GL-2019/static/js/1.44f8fff7.chunk.js | 1 + .../Web3GL-2019/static/js/1.865bf2e6.chunk.js | 1 - .../static/js/10.53f0e036.chunk.js | 1 - .../static/js/10.ab43c8c3.chunk.js | 2 + ...E.txt => 10.ab43c8c3.chunk.js.LICENSE.txt} | 0 .../static/js/11.4176db13.chunk.js | 1 - .../static/js/11.5cbf2fa1.chunk.js | 2 + ...E.txt => 11.5cbf2fa1.chunk.js.LICENSE.txt} | 0 .../static/js/12.43d1ebf0.chunk.js | 1 - .../static/js/12.50f93a8d.chunk.js | 1 + .../static/js/13.55737ecb.chunk.js | 2 - .../static/js/13.ebd9c9f8.chunk.js | 1 + .../static/js/14.18e7daf2.chunk.js | 1 - .../static/js/14.7d010913.chunk.js | 1 + ...b5aec44f.chunk.js => 15.8f2cca70.chunk.js} | 2 +- .../static/js/15.c74025be.chunk.js | 1 - ...941848d2.chunk.js => 16.751c3d1c.chunk.js} | 2 +- .../static/js/17.f19b983e.chunk.js | 1 + .../static/js/18.0167a956.chunk.js | 1 - .../static/js/19.3629d7bb.chunk.js | 1 - .../Web3GL-2019/static/js/2.4f0612a8.chunk.js | 1 + .../Web3GL-2019/static/js/2.c11416cd.chunk.js | 1 - .../static/js/20.feb1d9c3.chunk.js | 2 + ...E.txt => 20.feb1d9c3.chunk.js.LICENSE.txt} | 0 .../static/js/21.f28b502f.chunk.js | 2 + ...E.txt => 21.f28b502f.chunk.js.LICENSE.txt} | 8 + .../static/js/22.525f7c6b.chunk.js | 2 - .../static/js/22.c8a596e8.chunk.js | 1 + .../static/js/23.1e5bdad3.chunk.js | 2 + ...E.txt => 23.1e5bdad3.chunk.js.LICENSE.txt} | 0 .../static/js/23.94d12b69.chunk.js | 2 - .../static/js/24.b7e14fc4.chunk.js | 2 - .../js/24.b7e14fc4.chunk.js.LICENSE.txt | 8 - .../static/js/24.ce774d18.chunk.js | 2 + .../js/24.ce774d18.chunk.js.LICENSE.txt | 26 +++ .../static/js/25.27515676.chunk.js | 2 - .../static/js/25.2fbfb820.chunk.js | 2 + ...E.txt => 25.2fbfb820.chunk.js.LICENSE.txt} | 0 .../static/js/26.29c08b23.chunk.js | 2 - .../static/js/26.83c508da.chunk.js | 2 + .../js/26.83c508da.chunk.js.LICENSE.txt} | 9 - .../static/js/27.8ee98dbf.chunk.js | 2 + .../js/27.8ee98dbf.chunk.js.LICENSE.txt | 8 + .../static/js/27.e8fc63b9.chunk.js | 2 - .../static/js/28.70ff75f2.chunk.js | 1 + .../static/js/28.cec6a2a8.chunk.js | 1 - .../static/js/29.bb5345d5.chunk.js | 1 + .../static/js/29.ebd42ec8.chunk.js | 1 - .../Web3GL-2019/static/js/3.65798c34.chunk.js | 1 - .../Web3GL-2019/static/js/3.696a2c92.chunk.js | 1 + .../static/js/30.7271df86.chunk.js | 1 + .../static/js/30.87cb3f17.chunk.js | 1 - .../static/js/31.43122843.chunk.js | 2 - .../js/31.43122843.chunk.js.LICENSE.txt | 24 --- .../static/js/31.9b7a4b56.chunk.js | 1 + .../static/js/32.c43976e0.chunk.js | 1 + .../static/js/32.dba35db1.chunk.js | 1 - .../static/js/33.42157789.chunk.js | 1 - .../static/js/33.a5e1b7a0.chunk.js | 1 + .../static/js/34.2d7946d4.chunk.js | 1 + .../static/js/34.ce42bdb0.chunk.js | 1 - .../static/js/35.03f6d098.chunk.js | 1 - .../static/js/35.256a4455.chunk.js | 1 + .../static/js/36.73cac550.chunk.js | 1 + .../static/js/36.fb537949.chunk.js | 2 - .../static/js/37.040b7b2f.chunk.js | 2 + ...E.txt => 37.040b7b2f.chunk.js.LICENSE.txt} | 0 .../static/js/37.de588ba9.chunk.js | 1 - .../static/js/38.75b07a3c.chunk.js | 1 - .../static/js/38.a4c29fa5.chunk.js | 1 + .../static/js/39.d67d88d5.chunk.js | 1 - .../static/js/39.d9ff48f5.chunk.js | 1 + .../Web3GL-2019/static/js/4.9293556b.chunk.js | 1 + .../Web3GL-2019/static/js/4.dc5f8d9f.chunk.js | 1 - .../static/js/40.36ca77ff.chunk.js | 1 + .../static/js/41.6ed073f8.chunk.js | 1 + ...4a3ca734.chunk.js => 42.9d43bfb5.chunk.js} | 2 +- ...71b79cca.chunk.js => 43.9c57ab54.chunk.js} | 2 +- .../static/js/44.86cae328.chunk.js | 1 - .../static/js/44.f92f2584.chunk.js | 1 + .../static/js/45.e6becd2c.chunk.js} | 2 +- .../static/js/46.994beeb5.chunk.js | 1 + .../static/js/47.5ccc068c.chunk.js} | 2 +- .../static/js/48.fb4f9e83.chunk.js | 1 + .../static/js/49.3e545763.chunk.js} | 2 +- .../Web3GL-2019/static/js/5.3d6cbd23.chunk.js | 1 - .../Web3GL-2019/static/js/5.6938c9b5.chunk.js | 2 + .../js/5.6938c9b5.chunk.js.LICENSE.txt} | 0 ...849865a6.chunk.js => 50.93d91044.chunk.js} | 2 +- ...ed418324.chunk.js => 51.e1e0f57a.chunk.js} | 2 +- ...71295be2.chunk.js => 52.50ba18bc.chunk.js} | 2 +- .../static/js/53.b21a6060.chunk.js} | 2 +- ...df2b666c.chunk.js => 54.abbbe026.chunk.js} | 2 +- .../static/js/55.723d8515.chunk.js} | 2 +- ...0f27e260.chunk.js => 56.d7640a78.chunk.js} | 2 +- ...50230abf.chunk.js => 57.c5013cae.chunk.js} | 2 +- .../static/js/58.62f5e944.chunk.js} | 2 +- ...01c6065c.chunk.js => 59.b99613a4.chunk.js} | 2 +- .../Web3GL-2019/static/js/6.8877c4bd.chunk.js | 1 + .../Web3GL-2019/static/js/6.b4437de1.chunk.js | 1 - .../static/js/60.fb49c6cb.chunk.js} | 2 +- .../static/js/61.d6171d07.chunk.js} | 2 +- ...7d17245a.chunk.js => 62.b5cad7e2.chunk.js} | 2 +- .../static/js/62.bebc50c7.chunk.js | 1 - ...42e20e5c.chunk.js => 63.5c7765e4.chunk.js} | 2 +- .../static/js/63.6e7957e9.chunk.js | 1 - .../static/js/64.2f1dc9ce.chunk.js | 1 - ...b8c1be62.chunk.js => 64.abb52d78.chunk.js} | 2 +- .../static/js/65.1f3a68c2.chunk.js | 1 - ...de568b07.chunk.js => 65.d1507f4b.chunk.js} | 2 +- .../static/js/66.024636da.chunk.js | 1 + .../static/js/66.26854cfa.chunk.js | 1 - .../static/js/67.3e99a151.chunk.js | 1 - .../static/js/67.692892ec.chunk.js | 1 + .../static/js/68.1e521c04.chunk.js | 1 - .../static/js/68.a61e1a2b.chunk.js | 1 + .../static/js/69.f9d10b53.chunk.js | 1 + .../Web3GL-2019/static/js/7.81b2580d.chunk.js | 2 - .../Web3GL-2019/static/js/7.d9c6dbd3.chunk.js | 1 + .../static/js/70.57df2c34.chunk.js | 1 - .../static/js/70.81f19f93.chunk.js | 1 + .../static/js/71.740e767c.chunk.js | 1 + .../static/js/71.c2765a24.chunk.js | 1 - .../static/js/72.4a5f4dba.chunk.js | 1 + .../static/js/72.f9dcb942.chunk.js | 1 - .../static/js/73.50a6b314.chunk.js | 1 + .../static/js/73.fd1717b5.chunk.js | 1 - .../static/js/74.a8e7431b.chunk.js | 1 - .../static/js/74.c370ea62.chunk.js | 1 + ...84f5db00.chunk.js => 75.5bca7f15.chunk.js} | 2 +- .../static/js/75.95789396.chunk.js | 1 - .../static/js/76.2452bb09.chunk.js | 1 - .../static/js/76.d897736f.chunk.js | 1 + .../static/js/77.51d1b1c8.chunk.js | 1 - .../static/js/77.8c5a20da.chunk.js | 1 + .../static/js/78.4911840a.chunk.js | 1 + .../static/js/79.6084295b.chunk.js | 1 + .../Web3GL-2019/static/js/8.adaa13f2.chunk.js | 1 + .../Web3GL-2019/static/js/8.bdcc9f1e.chunk.js | 1 - .../static/js/80.21c17a90.chunk.js | 1 + .../static/js/80.294d3ae0.chunk.js | 1 - .../static/js/81.cb8dc4f6.chunk.js | 1 - .../static/js/81.e1a8a77c.chunk.js | 1 + .../static/js/82.2feae67e.chunk.js | 1 + .../static/js/82.7130bb3a.chunk.js | 1 - .../static/js/83.5bd123be.chunk.js | 1 + .../static/js/83.5ea78171.chunk.js | 1 - .../static/js/84.095919fe.chunk.js | 1 - ...24a7428f.chunk.js => 84.772fd5a5.chunk.js} | 2 +- ...2289ab5e.chunk.js => 85.226bfc6e.chunk.js} | 2 +- .../static/js/86.9f108779.chunk.js | 1 + .../static/js/87.060c8558.chunk.js | 1 + .../static/js/88.f7eac3ca.chunk.js | 1 + .../static/js/89.f8e7558c.chunk.js | 1 + .../Web3GL-2019/static/js/9.62216f13.chunk.js | 1 + .../Web3GL-2019/static/js/9.7f5313c8.chunk.js | 1 - .../static/js/main.6702fceb.chunk.js | 1 - .../static/js/main.ce161854.chunk.js | 1 + .../static/js/runtime-main.e1cd7353.js | 1 - .../static/js/runtime-main.e76ea9eb.js | 1 + .../Web3GL-2020/asset-manifest.json | 202 +++++++++--------- WebGLTemplates/Web3GL-2020/index.html | 2 +- WebGLTemplates/Web3GL-2020/network.js | 5 +- .../Web3GL-2020/static/js/0.0a798628.chunk.js | 1 - .../Web3GL-2020/static/js/0.1a1c634a.chunk.js | 1 + .../Web3GL-2020/static/js/1.44f8fff7.chunk.js | 1 + .../Web3GL-2020/static/js/1.865bf2e6.chunk.js | 1 - .../static/js/10.53f0e036.chunk.js | 1 - .../static/js/10.ab43c8c3.chunk.js | 2 + ...E.txt => 10.ab43c8c3.chunk.js.LICENSE.txt} | 0 .../static/js/11.4176db13.chunk.js | 1 - .../static/js/11.5cbf2fa1.chunk.js | 2 + ...E.txt => 11.5cbf2fa1.chunk.js.LICENSE.txt} | 0 .../static/js/12.43d1ebf0.chunk.js | 1 - .../static/js/12.50f93a8d.chunk.js | 1 + .../static/js/13.55737ecb.chunk.js | 2 - .../static/js/13.ebd9c9f8.chunk.js | 1 + .../static/js/14.18e7daf2.chunk.js | 1 - .../static/js/14.7d010913.chunk.js | 1 + ...b5aec44f.chunk.js => 15.8f2cca70.chunk.js} | 2 +- .../static/js/15.c74025be.chunk.js | 1 - ...941848d2.chunk.js => 16.751c3d1c.chunk.js} | 2 +- .../static/js/17.f19b983e.chunk.js | 1 + .../static/js/18.0167a956.chunk.js | 1 - .../static/js/19.3629d7bb.chunk.js | 1 - .../Web3GL-2020/static/js/2.4f0612a8.chunk.js | 1 + .../Web3GL-2020/static/js/2.c11416cd.chunk.js | 1 - .../static/js/20.feb1d9c3.chunk.js | 2 + ...E.txt => 20.feb1d9c3.chunk.js.LICENSE.txt} | 0 .../static/js/21.f28b502f.chunk.js | 2 + ...E.txt => 21.f28b502f.chunk.js.LICENSE.txt} | 8 + .../static/js/22.525f7c6b.chunk.js | 2 - .../static/js/22.c8a596e8.chunk.js | 1 + .../static/js/23.1e5bdad3.chunk.js | 2 + ...E.txt => 23.1e5bdad3.chunk.js.LICENSE.txt} | 0 .../static/js/23.94d12b69.chunk.js | 2 - .../static/js/24.b7e14fc4.chunk.js | 2 - .../js/24.b7e14fc4.chunk.js.LICENSE.txt | 8 - .../static/js/24.ce774d18.chunk.js | 2 + .../js/24.ce774d18.chunk.js.LICENSE.txt | 26 +++ .../static/js/25.27515676.chunk.js | 2 - .../static/js/25.2fbfb820.chunk.js | 2 + .../js/25.2fbfb820.chunk.js.LICENSE.txt | 14 ++ .../static/js/26.29c08b23.chunk.js | 2 - .../static/js/26.83c508da.chunk.js | 2 + .../js/26.83c508da.chunk.js.LICENSE.txt} | 9 - .../static/js/27.8ee98dbf.chunk.js | 2 + .../js/27.8ee98dbf.chunk.js.LICENSE.txt | 8 + .../static/js/27.e8fc63b9.chunk.js | 2 - .../static/js/28.70ff75f2.chunk.js | 1 + .../static/js/28.cec6a2a8.chunk.js | 1 - .../static/js/29.bb5345d5.chunk.js | 1 + .../static/js/29.ebd42ec8.chunk.js | 1 - .../Web3GL-2020/static/js/3.65798c34.chunk.js | 1 - .../Web3GL-2020/static/js/3.696a2c92.chunk.js | 1 + .../static/js/30.7271df86.chunk.js | 1 + .../static/js/30.87cb3f17.chunk.js | 1 - .../static/js/31.43122843.chunk.js | 2 - .../js/31.43122843.chunk.js.LICENSE.txt | 24 --- .../static/js/31.9b7a4b56.chunk.js | 1 + .../static/js/32.c43976e0.chunk.js | 1 + .../static/js/32.dba35db1.chunk.js | 1 - .../static/js/33.42157789.chunk.js | 1 - .../static/js/33.a5e1b7a0.chunk.js | 1 + .../static/js/34.2d7946d4.chunk.js | 1 + .../static/js/34.ce42bdb0.chunk.js | 1 - .../static/js/35.03f6d098.chunk.js | 1 - .../static/js/35.256a4455.chunk.js | 1 + .../static/js/36.73cac550.chunk.js | 1 + .../static/js/36.fb537949.chunk.js | 2 - .../static/js/37.040b7b2f.chunk.js | 2 + ...E.txt => 37.040b7b2f.chunk.js.LICENSE.txt} | 0 .../static/js/37.de588ba9.chunk.js | 1 - .../static/js/38.75b07a3c.chunk.js | 1 - .../static/js/38.a4c29fa5.chunk.js | 1 + .../static/js/39.d67d88d5.chunk.js | 1 - .../static/js/39.d9ff48f5.chunk.js | 1 + .../Web3GL-2020/static/js/4.9293556b.chunk.js | 1 + .../Web3GL-2020/static/js/4.dc5f8d9f.chunk.js | 1 - .../static/js/40.36ca77ff.chunk.js | 1 + .../static/js/41.6ed073f8.chunk.js | 1 + ...4a3ca734.chunk.js => 42.9d43bfb5.chunk.js} | 2 +- ...71b79cca.chunk.js => 43.9c57ab54.chunk.js} | 2 +- .../static/js/44.86cae328.chunk.js | 1 - .../static/js/44.f92f2584.chunk.js | 1 + .../static/js/45.e6becd2c.chunk.js} | 2 +- .../static/js/46.994beeb5.chunk.js | 1 + .../static/js/47.5ccc068c.chunk.js} | 2 +- .../static/js/48.fb4f9e83.chunk.js | 1 + .../static/js/49.3e545763.chunk.js} | 2 +- .../Web3GL-2020/static/js/5.3d6cbd23.chunk.js | 1 - .../Web3GL-2020/static/js/5.6938c9b5.chunk.js | 2 + .../static/js/5.6938c9b5.chunk.js.LICENSE.txt | 14 ++ ...849865a6.chunk.js => 50.93d91044.chunk.js} | 2 +- ...ed418324.chunk.js => 51.e1e0f57a.chunk.js} | 2 +- ...71295be2.chunk.js => 52.50ba18bc.chunk.js} | 2 +- .../static/js/53.b21a6060.chunk.js} | 2 +- ...df2b666c.chunk.js => 54.abbbe026.chunk.js} | 2 +- .../static/js/55.723d8515.chunk.js} | 2 +- ...0f27e260.chunk.js => 56.d7640a78.chunk.js} | 2 +- ...50230abf.chunk.js => 57.c5013cae.chunk.js} | 2 +- .../static/js/58.62f5e944.chunk.js} | 2 +- ...01c6065c.chunk.js => 59.b99613a4.chunk.js} | 2 +- .../Web3GL-2020/static/js/6.8877c4bd.chunk.js | 1 + .../Web3GL-2020/static/js/6.b4437de1.chunk.js | 1 - .../static/js/60.fb49c6cb.chunk.js} | 2 +- .../static/js/61.d6171d07.chunk.js} | 2 +- ...7d17245a.chunk.js => 62.b5cad7e2.chunk.js} | 2 +- .../static/js/62.bebc50c7.chunk.js | 1 - ...42e20e5c.chunk.js => 63.5c7765e4.chunk.js} | 2 +- .../static/js/63.6e7957e9.chunk.js | 1 - .../static/js/64.2f1dc9ce.chunk.js | 1 - ...b8c1be62.chunk.js => 64.abb52d78.chunk.js} | 2 +- .../static/js/65.1f3a68c2.chunk.js | 1 - ...de568b07.chunk.js => 65.d1507f4b.chunk.js} | 2 +- .../static/js/66.024636da.chunk.js | 1 + .../static/js/66.26854cfa.chunk.js | 1 - .../static/js/67.3e99a151.chunk.js | 1 - .../static/js/67.692892ec.chunk.js | 1 + .../static/js/68.1e521c04.chunk.js | 1 - .../static/js/68.a61e1a2b.chunk.js | 1 + .../static/js/69.f9d10b53.chunk.js | 1 + .../Web3GL-2020/static/js/7.81b2580d.chunk.js | 2 - .../Web3GL-2020/static/js/7.d9c6dbd3.chunk.js | 1 + .../static/js/70.57df2c34.chunk.js | 1 - .../static/js/70.81f19f93.chunk.js | 1 + .../static/js/71.740e767c.chunk.js | 1 + .../static/js/71.c2765a24.chunk.js | 1 - .../static/js/72.4a5f4dba.chunk.js | 1 + .../static/js/72.f9dcb942.chunk.js | 1 - .../static/js/73.50a6b314.chunk.js | 1 + .../static/js/73.fd1717b5.chunk.js | 1 - .../static/js/74.a8e7431b.chunk.js | 1 - .../static/js/74.c370ea62.chunk.js | 1 + ...84f5db00.chunk.js => 75.5bca7f15.chunk.js} | 2 +- .../static/js/75.95789396.chunk.js | 1 - .../static/js/76.2452bb09.chunk.js | 1 - .../static/js/76.d897736f.chunk.js | 1 + .../static/js/77.51d1b1c8.chunk.js | 1 - .../static/js/77.8c5a20da.chunk.js | 1 + .../static/js/78.4911840a.chunk.js | 1 + .../static/js/79.6084295b.chunk.js | 1 + .../Web3GL-2020/static/js/8.adaa13f2.chunk.js | 1 + .../Web3GL-2020/static/js/8.bdcc9f1e.chunk.js | 1 - .../static/js/80.21c17a90.chunk.js | 1 + .../static/js/80.294d3ae0.chunk.js | 1 - .../static/js/81.cb8dc4f6.chunk.js | 1 - .../static/js/81.e1a8a77c.chunk.js | 1 + .../static/js/82.2feae67e.chunk.js | 1 + .../static/js/82.7130bb3a.chunk.js | 1 - .../static/js/83.5bd123be.chunk.js | 1 + .../static/js/83.5ea78171.chunk.js | 1 - .../static/js/84.095919fe.chunk.js | 1 - ...24a7428f.chunk.js => 84.772fd5a5.chunk.js} | 2 +- ...2289ab5e.chunk.js => 85.226bfc6e.chunk.js} | 2 +- .../static/js/86.9f108779.chunk.js | 1 + .../static/js/87.060c8558.chunk.js | 1 + .../static/js/88.f7eac3ca.chunk.js | 1 + .../static/js/89.f8e7558c.chunk.js | 1 + .../Web3GL-2020/static/js/9.62216f13.chunk.js | 1 + .../Web3GL-2020/static/js/9.7f5313c8.chunk.js | 1 - .../static/js/main.6702fceb.chunk.js | 1 - .../static/js/main.ce161854.chunk.js | 1 + .../static/js/runtime-main.e1cd7353.js | 1 - .../static/js/runtime-main.e76ea9eb.js | 1 + 330 files changed, 531 insertions(+), 476 deletions(-) delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/0.0a798628.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/0.1a1c634a.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/1.44f8fff7.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/1.865bf2e6.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/10.53f0e036.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/10.ab43c8c3.chunk.js rename WebGLTemplates/Web3GL-2019/static/js/{27.e8fc63b9.chunk.js.LICENSE.txt => 10.ab43c8c3.chunk.js.LICENSE.txt} (100%) delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/11.4176db13.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/11.5cbf2fa1.chunk.js rename WebGLTemplates/Web3GL-2019/static/js/{13.55737ecb.chunk.js.LICENSE.txt => 11.5cbf2fa1.chunk.js.LICENSE.txt} (100%) delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/12.43d1ebf0.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/12.50f93a8d.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/13.55737ecb.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/13.ebd9c9f8.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/14.18e7daf2.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/14.7d010913.chunk.js rename WebGLTemplates/Web3GL-2019/static/js/{16.b5aec44f.chunk.js => 15.8f2cca70.chunk.js} (76%) delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/15.c74025be.chunk.js rename WebGLTemplates/Web3GL-2019/static/js/{17.941848d2.chunk.js => 16.751c3d1c.chunk.js} (86%) create mode 100644 WebGLTemplates/Web3GL-2019/static/js/17.f19b983e.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/18.0167a956.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/19.3629d7bb.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/2.4f0612a8.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/2.c11416cd.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/20.feb1d9c3.chunk.js rename WebGLTemplates/Web3GL-2019/static/js/{22.525f7c6b.chunk.js.LICENSE.txt => 20.feb1d9c3.chunk.js.LICENSE.txt} (100%) create mode 100644 WebGLTemplates/Web3GL-2019/static/js/21.f28b502f.chunk.js rename WebGLTemplates/Web3GL-2019/static/js/{23.94d12b69.chunk.js.LICENSE.txt => 21.f28b502f.chunk.js.LICENSE.txt} (87%) delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/22.525f7c6b.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/22.c8a596e8.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/23.1e5bdad3.chunk.js rename WebGLTemplates/Web3GL-2019/static/js/{25.27515676.chunk.js.LICENSE.txt => 23.1e5bdad3.chunk.js.LICENSE.txt} (100%) delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/23.94d12b69.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/24.b7e14fc4.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/24.b7e14fc4.chunk.js.LICENSE.txt create mode 100644 WebGLTemplates/Web3GL-2019/static/js/24.ce774d18.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/24.ce774d18.chunk.js.LICENSE.txt delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/25.27515676.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/25.2fbfb820.chunk.js rename WebGLTemplates/Web3GL-2019/static/js/{7.81b2580d.chunk.js.LICENSE.txt => 25.2fbfb820.chunk.js.LICENSE.txt} (100%) delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/26.29c08b23.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/26.83c508da.chunk.js rename WebGLTemplates/{Web3GL-2020/static/js/26.29c08b23.chunk.js.LICENSE.txt => Web3GL-2019/static/js/26.83c508da.chunk.js.LICENSE.txt} (82%) create mode 100644 WebGLTemplates/Web3GL-2019/static/js/27.8ee98dbf.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/27.8ee98dbf.chunk.js.LICENSE.txt delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/27.e8fc63b9.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/28.70ff75f2.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/28.cec6a2a8.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/29.bb5345d5.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/29.ebd42ec8.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/3.65798c34.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/3.696a2c92.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/30.7271df86.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/30.87cb3f17.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/31.43122843.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/31.43122843.chunk.js.LICENSE.txt create mode 100644 WebGLTemplates/Web3GL-2019/static/js/31.9b7a4b56.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/32.c43976e0.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/32.dba35db1.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/33.42157789.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/33.a5e1b7a0.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/34.2d7946d4.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/34.ce42bdb0.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/35.03f6d098.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/35.256a4455.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/36.73cac550.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/36.fb537949.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/37.040b7b2f.chunk.js rename WebGLTemplates/Web3GL-2019/static/js/{36.fb537949.chunk.js.LICENSE.txt => 37.040b7b2f.chunk.js.LICENSE.txt} (100%) delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/37.de588ba9.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/38.75b07a3c.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/38.a4c29fa5.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/39.d67d88d5.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/39.d9ff48f5.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/4.9293556b.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/4.dc5f8d9f.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/40.36ca77ff.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/41.6ed073f8.chunk.js rename WebGLTemplates/Web3GL-2019/static/js/{40.4a3ca734.chunk.js => 42.9d43bfb5.chunk.js} (96%) rename WebGLTemplates/Web3GL-2019/static/js/{41.71b79cca.chunk.js => 43.9c57ab54.chunk.js} (98%) delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/44.86cae328.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/44.f92f2584.chunk.js rename WebGLTemplates/{Web3GL-2020/static/js/42.739f4fc5.chunk.js => Web3GL-2019/static/js/45.e6becd2c.chunk.js} (95%) create mode 100644 WebGLTemplates/Web3GL-2019/static/js/46.994beeb5.chunk.js rename WebGLTemplates/{Web3GL-2020/static/js/43.f883171a.chunk.js => Web3GL-2019/static/js/47.5ccc068c.chunk.js} (94%) create mode 100644 WebGLTemplates/Web3GL-2019/static/js/48.fb4f9e83.chunk.js rename WebGLTemplates/{Web3GL-2020/static/js/45.0cdec5cf.chunk.js => Web3GL-2019/static/js/49.3e545763.chunk.js} (97%) delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/5.3d6cbd23.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/5.6938c9b5.chunk.js rename WebGLTemplates/{Web3GL-2020/static/js/7.81b2580d.chunk.js.LICENSE.txt => Web3GL-2019/static/js/5.6938c9b5.chunk.js.LICENSE.txt} (100%) rename WebGLTemplates/Web3GL-2019/static/js/{46.849865a6.chunk.js => 50.93d91044.chunk.js} (93%) rename WebGLTemplates/Web3GL-2019/static/js/{47.ed418324.chunk.js => 51.e1e0f57a.chunk.js} (97%) rename WebGLTemplates/Web3GL-2019/static/js/{48.71295be2.chunk.js => 52.50ba18bc.chunk.js} (93%) rename WebGLTemplates/{Web3GL-2020/static/js/49.5610a25b.chunk.js => Web3GL-2019/static/js/53.b21a6060.chunk.js} (99%) rename WebGLTemplates/Web3GL-2019/static/js/{50.df2b666c.chunk.js => 54.abbbe026.chunk.js} (99%) rename WebGLTemplates/{Web3GL-2020/static/js/51.c0496ac0.chunk.js => Web3GL-2019/static/js/55.723d8515.chunk.js} (96%) rename WebGLTemplates/Web3GL-2019/static/js/{52.0f27e260.chunk.js => 56.d7640a78.chunk.js} (97%) rename WebGLTemplates/Web3GL-2019/static/js/{53.50230abf.chunk.js => 57.c5013cae.chunk.js} (96%) rename WebGLTemplates/{Web3GL-2020/static/js/54.74b399b4.chunk.js => Web3GL-2019/static/js/58.62f5e944.chunk.js} (97%) rename WebGLTemplates/Web3GL-2019/static/js/{55.01c6065c.chunk.js => 59.b99613a4.chunk.js} (93%) create mode 100644 WebGLTemplates/Web3GL-2019/static/js/6.8877c4bd.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/6.b4437de1.chunk.js rename WebGLTemplates/{Web3GL-2020/static/js/56.030421e5.chunk.js => Web3GL-2019/static/js/60.fb49c6cb.chunk.js} (93%) rename WebGLTemplates/{Web3GL-2020/static/js/57.18776dd4.chunk.js => Web3GL-2019/static/js/61.d6171d07.chunk.js} (98%) rename WebGLTemplates/Web3GL-2019/static/js/{58.7d17245a.chunk.js => 62.b5cad7e2.chunk.js} (97%) delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/62.bebc50c7.chunk.js rename WebGLTemplates/Web3GL-2019/static/js/{59.42e20e5c.chunk.js => 63.5c7765e4.chunk.js} (94%) delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/63.6e7957e9.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/64.2f1dc9ce.chunk.js rename WebGLTemplates/Web3GL-2019/static/js/{60.b8c1be62.chunk.js => 64.abb52d78.chunk.js} (95%) delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/65.1f3a68c2.chunk.js rename WebGLTemplates/Web3GL-2019/static/js/{61.de568b07.chunk.js => 65.d1507f4b.chunk.js} (98%) create mode 100644 WebGLTemplates/Web3GL-2019/static/js/66.024636da.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/66.26854cfa.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/67.3e99a151.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/67.692892ec.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/68.1e521c04.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/68.a61e1a2b.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/69.f9d10b53.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/7.81b2580d.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/7.d9c6dbd3.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/70.57df2c34.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/70.81f19f93.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/71.740e767c.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/71.c2765a24.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/72.4a5f4dba.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/72.f9dcb942.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/73.50a6b314.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/73.fd1717b5.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/74.a8e7431b.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/74.c370ea62.chunk.js rename WebGLTemplates/Web3GL-2019/static/js/{69.84f5db00.chunk.js => 75.5bca7f15.chunk.js} (80%) delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/75.95789396.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/76.2452bb09.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/76.d897736f.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/77.51d1b1c8.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/77.8c5a20da.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/78.4911840a.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/79.6084295b.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/8.adaa13f2.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/8.bdcc9f1e.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/80.21c17a90.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/80.294d3ae0.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/81.cb8dc4f6.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/81.e1a8a77c.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/82.2feae67e.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/82.7130bb3a.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/83.5bd123be.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/83.5ea78171.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/84.095919fe.chunk.js rename WebGLTemplates/Web3GL-2019/static/js/{78.24a7428f.chunk.js => 84.772fd5a5.chunk.js} (99%) rename WebGLTemplates/Web3GL-2019/static/js/{79.2289ab5e.chunk.js => 85.226bfc6e.chunk.js} (97%) create mode 100644 WebGLTemplates/Web3GL-2019/static/js/86.9f108779.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/87.060c8558.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/88.f7eac3ca.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/89.f8e7558c.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/9.62216f13.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/9.7f5313c8.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/main.6702fceb.chunk.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/main.ce161854.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2019/static/js/runtime-main.e1cd7353.js create mode 100644 WebGLTemplates/Web3GL-2019/static/js/runtime-main.e76ea9eb.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/0.0a798628.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/0.1a1c634a.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/1.44f8fff7.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/1.865bf2e6.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/10.53f0e036.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/10.ab43c8c3.chunk.js rename WebGLTemplates/Web3GL-2020/static/js/{27.e8fc63b9.chunk.js.LICENSE.txt => 10.ab43c8c3.chunk.js.LICENSE.txt} (100%) delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/11.4176db13.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/11.5cbf2fa1.chunk.js rename WebGLTemplates/Web3GL-2020/static/js/{13.55737ecb.chunk.js.LICENSE.txt => 11.5cbf2fa1.chunk.js.LICENSE.txt} (100%) delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/12.43d1ebf0.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/12.50f93a8d.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/13.55737ecb.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/13.ebd9c9f8.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/14.18e7daf2.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/14.7d010913.chunk.js rename WebGLTemplates/Web3GL-2020/static/js/{16.b5aec44f.chunk.js => 15.8f2cca70.chunk.js} (76%) delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/15.c74025be.chunk.js rename WebGLTemplates/Web3GL-2020/static/js/{17.941848d2.chunk.js => 16.751c3d1c.chunk.js} (86%) create mode 100644 WebGLTemplates/Web3GL-2020/static/js/17.f19b983e.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/18.0167a956.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/19.3629d7bb.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/2.4f0612a8.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/2.c11416cd.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/20.feb1d9c3.chunk.js rename WebGLTemplates/Web3GL-2020/static/js/{22.525f7c6b.chunk.js.LICENSE.txt => 20.feb1d9c3.chunk.js.LICENSE.txt} (100%) create mode 100644 WebGLTemplates/Web3GL-2020/static/js/21.f28b502f.chunk.js rename WebGLTemplates/Web3GL-2020/static/js/{23.94d12b69.chunk.js.LICENSE.txt => 21.f28b502f.chunk.js.LICENSE.txt} (87%) delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/22.525f7c6b.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/22.c8a596e8.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/23.1e5bdad3.chunk.js rename WebGLTemplates/Web3GL-2020/static/js/{25.27515676.chunk.js.LICENSE.txt => 23.1e5bdad3.chunk.js.LICENSE.txt} (100%) delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/23.94d12b69.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/24.b7e14fc4.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/24.b7e14fc4.chunk.js.LICENSE.txt create mode 100644 WebGLTemplates/Web3GL-2020/static/js/24.ce774d18.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/24.ce774d18.chunk.js.LICENSE.txt delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/25.27515676.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/25.2fbfb820.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/25.2fbfb820.chunk.js.LICENSE.txt delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/26.29c08b23.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/26.83c508da.chunk.js rename WebGLTemplates/{Web3GL-2019/static/js/26.29c08b23.chunk.js.LICENSE.txt => Web3GL-2020/static/js/26.83c508da.chunk.js.LICENSE.txt} (82%) create mode 100644 WebGLTemplates/Web3GL-2020/static/js/27.8ee98dbf.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/27.8ee98dbf.chunk.js.LICENSE.txt delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/27.e8fc63b9.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/28.70ff75f2.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/28.cec6a2a8.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/29.bb5345d5.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/29.ebd42ec8.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/3.65798c34.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/3.696a2c92.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/30.7271df86.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/30.87cb3f17.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/31.43122843.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/31.43122843.chunk.js.LICENSE.txt create mode 100644 WebGLTemplates/Web3GL-2020/static/js/31.9b7a4b56.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/32.c43976e0.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/32.dba35db1.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/33.42157789.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/33.a5e1b7a0.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/34.2d7946d4.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/34.ce42bdb0.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/35.03f6d098.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/35.256a4455.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/36.73cac550.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/36.fb537949.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/37.040b7b2f.chunk.js rename WebGLTemplates/Web3GL-2020/static/js/{36.fb537949.chunk.js.LICENSE.txt => 37.040b7b2f.chunk.js.LICENSE.txt} (100%) delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/37.de588ba9.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/38.75b07a3c.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/38.a4c29fa5.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/39.d67d88d5.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/39.d9ff48f5.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/4.9293556b.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/4.dc5f8d9f.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/40.36ca77ff.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/41.6ed073f8.chunk.js rename WebGLTemplates/Web3GL-2020/static/js/{40.4a3ca734.chunk.js => 42.9d43bfb5.chunk.js} (96%) rename WebGLTemplates/Web3GL-2020/static/js/{41.71b79cca.chunk.js => 43.9c57ab54.chunk.js} (98%) delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/44.86cae328.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/44.f92f2584.chunk.js rename WebGLTemplates/{Web3GL-2019/static/js/42.739f4fc5.chunk.js => Web3GL-2020/static/js/45.e6becd2c.chunk.js} (95%) create mode 100644 WebGLTemplates/Web3GL-2020/static/js/46.994beeb5.chunk.js rename WebGLTemplates/{Web3GL-2019/static/js/43.f883171a.chunk.js => Web3GL-2020/static/js/47.5ccc068c.chunk.js} (94%) create mode 100644 WebGLTemplates/Web3GL-2020/static/js/48.fb4f9e83.chunk.js rename WebGLTemplates/{Web3GL-2019/static/js/45.0cdec5cf.chunk.js => Web3GL-2020/static/js/49.3e545763.chunk.js} (97%) delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/5.3d6cbd23.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/5.6938c9b5.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/5.6938c9b5.chunk.js.LICENSE.txt rename WebGLTemplates/Web3GL-2020/static/js/{46.849865a6.chunk.js => 50.93d91044.chunk.js} (93%) rename WebGLTemplates/Web3GL-2020/static/js/{47.ed418324.chunk.js => 51.e1e0f57a.chunk.js} (97%) rename WebGLTemplates/Web3GL-2020/static/js/{48.71295be2.chunk.js => 52.50ba18bc.chunk.js} (93%) rename WebGLTemplates/{Web3GL-2019/static/js/49.5610a25b.chunk.js => Web3GL-2020/static/js/53.b21a6060.chunk.js} (99%) rename WebGLTemplates/Web3GL-2020/static/js/{50.df2b666c.chunk.js => 54.abbbe026.chunk.js} (99%) rename WebGLTemplates/{Web3GL-2019/static/js/51.c0496ac0.chunk.js => Web3GL-2020/static/js/55.723d8515.chunk.js} (96%) rename WebGLTemplates/Web3GL-2020/static/js/{52.0f27e260.chunk.js => 56.d7640a78.chunk.js} (97%) rename WebGLTemplates/Web3GL-2020/static/js/{53.50230abf.chunk.js => 57.c5013cae.chunk.js} (96%) rename WebGLTemplates/{Web3GL-2019/static/js/54.74b399b4.chunk.js => Web3GL-2020/static/js/58.62f5e944.chunk.js} (97%) rename WebGLTemplates/Web3GL-2020/static/js/{55.01c6065c.chunk.js => 59.b99613a4.chunk.js} (93%) create mode 100644 WebGLTemplates/Web3GL-2020/static/js/6.8877c4bd.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/6.b4437de1.chunk.js rename WebGLTemplates/{Web3GL-2019/static/js/56.030421e5.chunk.js => Web3GL-2020/static/js/60.fb49c6cb.chunk.js} (93%) rename WebGLTemplates/{Web3GL-2019/static/js/57.18776dd4.chunk.js => Web3GL-2020/static/js/61.d6171d07.chunk.js} (98%) rename WebGLTemplates/Web3GL-2020/static/js/{58.7d17245a.chunk.js => 62.b5cad7e2.chunk.js} (97%) delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/62.bebc50c7.chunk.js rename WebGLTemplates/Web3GL-2020/static/js/{59.42e20e5c.chunk.js => 63.5c7765e4.chunk.js} (94%) delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/63.6e7957e9.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/64.2f1dc9ce.chunk.js rename WebGLTemplates/Web3GL-2020/static/js/{60.b8c1be62.chunk.js => 64.abb52d78.chunk.js} (95%) delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/65.1f3a68c2.chunk.js rename WebGLTemplates/Web3GL-2020/static/js/{61.de568b07.chunk.js => 65.d1507f4b.chunk.js} (98%) create mode 100644 WebGLTemplates/Web3GL-2020/static/js/66.024636da.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/66.26854cfa.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/67.3e99a151.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/67.692892ec.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/68.1e521c04.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/68.a61e1a2b.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/69.f9d10b53.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/7.81b2580d.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/7.d9c6dbd3.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/70.57df2c34.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/70.81f19f93.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/71.740e767c.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/71.c2765a24.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/72.4a5f4dba.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/72.f9dcb942.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/73.50a6b314.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/73.fd1717b5.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/74.a8e7431b.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/74.c370ea62.chunk.js rename WebGLTemplates/Web3GL-2020/static/js/{69.84f5db00.chunk.js => 75.5bca7f15.chunk.js} (80%) delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/75.95789396.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/76.2452bb09.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/76.d897736f.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/77.51d1b1c8.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/77.8c5a20da.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/78.4911840a.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/79.6084295b.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/8.adaa13f2.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/8.bdcc9f1e.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/80.21c17a90.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/80.294d3ae0.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/81.cb8dc4f6.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/81.e1a8a77c.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/82.2feae67e.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/82.7130bb3a.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/83.5bd123be.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/83.5ea78171.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/84.095919fe.chunk.js rename WebGLTemplates/Web3GL-2020/static/js/{78.24a7428f.chunk.js => 84.772fd5a5.chunk.js} (99%) rename WebGLTemplates/Web3GL-2020/static/js/{79.2289ab5e.chunk.js => 85.226bfc6e.chunk.js} (97%) create mode 100644 WebGLTemplates/Web3GL-2020/static/js/86.9f108779.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/87.060c8558.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/88.f7eac3ca.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/89.f8e7558c.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/9.62216f13.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/9.7f5313c8.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/main.6702fceb.chunk.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/main.ce161854.chunk.js delete mode 100644 WebGLTemplates/Web3GL-2020/static/js/runtime-main.e1cd7353.js create mode 100644 WebGLTemplates/Web3GL-2020/static/js/runtime-main.e76ea9eb.js diff --git a/WebGLTemplates/Web3GL-2019/asset-manifest.json b/WebGLTemplates/Web3GL-2019/asset-manifest.json index 3cb59487a..9e72c3448 100644 --- a/WebGLTemplates/Web3GL-2019/asset-manifest.json +++ b/WebGLTemplates/Web3GL-2019/asset-manifest.json @@ -1,107 +1,113 @@ { "files": { - "static/js/0.0a798628.chunk.js": "./static/js/0.0a798628.chunk.js", - "static/js/1.865bf2e6.chunk.js": "./static/js/1.865bf2e6.chunk.js", - "static/js/2.c11416cd.chunk.js": "./static/js/2.c11416cd.chunk.js", - "static/js/3.65798c34.chunk.js": "./static/js/3.65798c34.chunk.js", - "static/js/4.dc5f8d9f.chunk.js": "./static/js/4.dc5f8d9f.chunk.js", - "static/js/5.3d6cbd23.chunk.js": "./static/js/5.3d6cbd23.chunk.js", - "static/js/6.b4437de1.chunk.js": "./static/js/6.b4437de1.chunk.js", - "static/js/7.81b2580d.chunk.js": "./static/js/7.81b2580d.chunk.js", - "static/js/8.bdcc9f1e.chunk.js": "./static/js/8.bdcc9f1e.chunk.js", - "static/js/9.7f5313c8.chunk.js": "./static/js/9.7f5313c8.chunk.js", - "static/js/10.53f0e036.chunk.js": "./static/js/10.53f0e036.chunk.js", - "static/js/11.4176db13.chunk.js": "./static/js/11.4176db13.chunk.js", - "static/js/12.43d1ebf0.chunk.js": "./static/js/12.43d1ebf0.chunk.js", - "static/js/13.55737ecb.chunk.js": "./static/js/13.55737ecb.chunk.js", - "static/js/14.18e7daf2.chunk.js": "./static/js/14.18e7daf2.chunk.js", - "static/js/15.c74025be.chunk.js": "./static/js/15.c74025be.chunk.js", - "static/js/16.b5aec44f.chunk.js": "./static/js/16.b5aec44f.chunk.js", - "static/js/17.941848d2.chunk.js": "./static/js/17.941848d2.chunk.js", - "static/js/18.0167a956.chunk.js": "./static/js/18.0167a956.chunk.js", - "static/js/19.3629d7bb.chunk.js": "./static/js/19.3629d7bb.chunk.js", + "static/js/0.1a1c634a.chunk.js": "./static/js/0.1a1c634a.chunk.js", + "static/js/1.44f8fff7.chunk.js": "./static/js/1.44f8fff7.chunk.js", + "static/js/2.4f0612a8.chunk.js": "./static/js/2.4f0612a8.chunk.js", + "static/js/3.696a2c92.chunk.js": "./static/js/3.696a2c92.chunk.js", + "static/js/4.9293556b.chunk.js": "./static/js/4.9293556b.chunk.js", + "static/js/5.6938c9b5.chunk.js": "./static/js/5.6938c9b5.chunk.js", + "static/js/6.8877c4bd.chunk.js": "./static/js/6.8877c4bd.chunk.js", + "static/js/7.d9c6dbd3.chunk.js": "./static/js/7.d9c6dbd3.chunk.js", + "static/js/8.adaa13f2.chunk.js": "./static/js/8.adaa13f2.chunk.js", + "static/js/9.62216f13.chunk.js": "./static/js/9.62216f13.chunk.js", + "static/js/10.ab43c8c3.chunk.js": "./static/js/10.ab43c8c3.chunk.js", + "static/js/11.5cbf2fa1.chunk.js": "./static/js/11.5cbf2fa1.chunk.js", + "static/js/12.50f93a8d.chunk.js": "./static/js/12.50f93a8d.chunk.js", + "static/js/13.ebd9c9f8.chunk.js": "./static/js/13.ebd9c9f8.chunk.js", + "static/js/14.7d010913.chunk.js": "./static/js/14.7d010913.chunk.js", + "static/js/15.8f2cca70.chunk.js": "./static/js/15.8f2cca70.chunk.js", + "static/js/16.751c3d1c.chunk.js": "./static/js/16.751c3d1c.chunk.js", + "static/js/17.f19b983e.chunk.js": "./static/js/17.f19b983e.chunk.js", "main.css": "./static/css/main.1359096b.chunk.css", - "main.js": "./static/js/main.6702fceb.chunk.js", - "runtime-main.js": "./static/js/runtime-main.e1cd7353.js", - "static/js/22.525f7c6b.chunk.js": "./static/js/22.525f7c6b.chunk.js", - "static/js/23.94d12b69.chunk.js": "./static/js/23.94d12b69.chunk.js", - "static/js/24.b7e14fc4.chunk.js": "./static/js/24.b7e14fc4.chunk.js", - "static/js/25.27515676.chunk.js": "./static/js/25.27515676.chunk.js", - "static/js/26.29c08b23.chunk.js": "./static/js/26.29c08b23.chunk.js", - "static/js/27.e8fc63b9.chunk.js": "./static/js/27.e8fc63b9.chunk.js", - "static/js/28.cec6a2a8.chunk.js": "./static/js/28.cec6a2a8.chunk.js", - "static/js/29.ebd42ec8.chunk.js": "./static/js/29.ebd42ec8.chunk.js", - "static/js/30.87cb3f17.chunk.js": "./static/js/30.87cb3f17.chunk.js", - "static/js/31.43122843.chunk.js": "./static/js/31.43122843.chunk.js", - "static/js/32.dba35db1.chunk.js": "./static/js/32.dba35db1.chunk.js", - "static/js/33.42157789.chunk.js": "./static/js/33.42157789.chunk.js", - "static/js/34.ce42bdb0.chunk.js": "./static/js/34.ce42bdb0.chunk.js", - "static/js/35.03f6d098.chunk.js": "./static/js/35.03f6d098.chunk.js", - "static/js/36.fb537949.chunk.js": "./static/js/36.fb537949.chunk.js", - "static/js/37.de588ba9.chunk.js": "./static/js/37.de588ba9.chunk.js", - "static/js/38.75b07a3c.chunk.js": "./static/js/38.75b07a3c.chunk.js", - "static/js/39.d67d88d5.chunk.js": "./static/js/39.d67d88d5.chunk.js", - "static/js/40.4a3ca734.chunk.js": "./static/js/40.4a3ca734.chunk.js", - "static/js/41.71b79cca.chunk.js": "./static/js/41.71b79cca.chunk.js", - "static/js/42.739f4fc5.chunk.js": "./static/js/42.739f4fc5.chunk.js", - "static/js/43.f883171a.chunk.js": "./static/js/43.f883171a.chunk.js", - "static/js/44.86cae328.chunk.js": "./static/js/44.86cae328.chunk.js", - "static/js/45.0cdec5cf.chunk.js": "./static/js/45.0cdec5cf.chunk.js", - "static/js/46.849865a6.chunk.js": "./static/js/46.849865a6.chunk.js", - "static/js/47.ed418324.chunk.js": "./static/js/47.ed418324.chunk.js", - "static/js/48.71295be2.chunk.js": "./static/js/48.71295be2.chunk.js", - "static/js/49.5610a25b.chunk.js": "./static/js/49.5610a25b.chunk.js", - "static/js/50.df2b666c.chunk.js": "./static/js/50.df2b666c.chunk.js", - "static/js/51.c0496ac0.chunk.js": "./static/js/51.c0496ac0.chunk.js", - "static/js/52.0f27e260.chunk.js": "./static/js/52.0f27e260.chunk.js", - "static/js/53.50230abf.chunk.js": "./static/js/53.50230abf.chunk.js", - "static/js/54.74b399b4.chunk.js": "./static/js/54.74b399b4.chunk.js", - "static/js/55.01c6065c.chunk.js": "./static/js/55.01c6065c.chunk.js", - "static/js/56.030421e5.chunk.js": "./static/js/56.030421e5.chunk.js", - "static/js/57.18776dd4.chunk.js": "./static/js/57.18776dd4.chunk.js", - "static/js/58.7d17245a.chunk.js": "./static/js/58.7d17245a.chunk.js", - "static/js/59.42e20e5c.chunk.js": "./static/js/59.42e20e5c.chunk.js", - "static/js/60.b8c1be62.chunk.js": "./static/js/60.b8c1be62.chunk.js", - "static/js/61.de568b07.chunk.js": "./static/js/61.de568b07.chunk.js", - "static/js/62.bebc50c7.chunk.js": "./static/js/62.bebc50c7.chunk.js", - "static/js/63.6e7957e9.chunk.js": "./static/js/63.6e7957e9.chunk.js", - "static/js/64.2f1dc9ce.chunk.js": "./static/js/64.2f1dc9ce.chunk.js", - "static/js/65.1f3a68c2.chunk.js": "./static/js/65.1f3a68c2.chunk.js", - "static/js/66.26854cfa.chunk.js": "./static/js/66.26854cfa.chunk.js", - "static/js/67.3e99a151.chunk.js": "./static/js/67.3e99a151.chunk.js", - "static/js/68.1e521c04.chunk.js": "./static/js/68.1e521c04.chunk.js", - "static/js/69.84f5db00.chunk.js": "./static/js/69.84f5db00.chunk.js", - "static/js/70.57df2c34.chunk.js": "./static/js/70.57df2c34.chunk.js", - "static/js/71.c2765a24.chunk.js": "./static/js/71.c2765a24.chunk.js", - "static/js/72.f9dcb942.chunk.js": "./static/js/72.f9dcb942.chunk.js", - "static/js/73.fd1717b5.chunk.js": "./static/js/73.fd1717b5.chunk.js", - "static/js/74.a8e7431b.chunk.js": "./static/js/74.a8e7431b.chunk.js", - "static/js/75.95789396.chunk.js": "./static/js/75.95789396.chunk.js", - "static/js/76.2452bb09.chunk.js": "./static/js/76.2452bb09.chunk.js", - "static/js/77.51d1b1c8.chunk.js": "./static/js/77.51d1b1c8.chunk.js", - "static/js/78.24a7428f.chunk.js": "./static/js/78.24a7428f.chunk.js", - "static/js/79.2289ab5e.chunk.js": "./static/js/79.2289ab5e.chunk.js", - "static/js/80.294d3ae0.chunk.js": "./static/js/80.294d3ae0.chunk.js", - "static/js/81.cb8dc4f6.chunk.js": "./static/js/81.cb8dc4f6.chunk.js", - "static/js/82.7130bb3a.chunk.js": "./static/js/82.7130bb3a.chunk.js", - "static/js/83.5ea78171.chunk.js": "./static/js/83.5ea78171.chunk.js", - "static/js/84.095919fe.chunk.js": "./static/js/84.095919fe.chunk.js", + "main.js": "./static/js/main.ce161854.chunk.js", + "runtime-main.js": "./static/js/runtime-main.e76ea9eb.js", + "static/js/20.feb1d9c3.chunk.js": "./static/js/20.feb1d9c3.chunk.js", + "static/js/21.f28b502f.chunk.js": "./static/js/21.f28b502f.chunk.js", + "static/js/22.c8a596e8.chunk.js": "./static/js/22.c8a596e8.chunk.js", + "static/js/23.1e5bdad3.chunk.js": "./static/js/23.1e5bdad3.chunk.js", + "static/js/24.ce774d18.chunk.js": "./static/js/24.ce774d18.chunk.js", + "static/js/25.2fbfb820.chunk.js": "./static/js/25.2fbfb820.chunk.js", + "static/js/26.83c508da.chunk.js": "./static/js/26.83c508da.chunk.js", + "static/js/27.8ee98dbf.chunk.js": "./static/js/27.8ee98dbf.chunk.js", + "static/js/28.70ff75f2.chunk.js": "./static/js/28.70ff75f2.chunk.js", + "static/js/29.bb5345d5.chunk.js": "./static/js/29.bb5345d5.chunk.js", + "static/js/30.7271df86.chunk.js": "./static/js/30.7271df86.chunk.js", + "static/js/31.9b7a4b56.chunk.js": "./static/js/31.9b7a4b56.chunk.js", + "static/js/32.c43976e0.chunk.js": "./static/js/32.c43976e0.chunk.js", + "static/js/33.a5e1b7a0.chunk.js": "./static/js/33.a5e1b7a0.chunk.js", + "static/js/34.2d7946d4.chunk.js": "./static/js/34.2d7946d4.chunk.js", + "static/js/35.256a4455.chunk.js": "./static/js/35.256a4455.chunk.js", + "static/js/36.73cac550.chunk.js": "./static/js/36.73cac550.chunk.js", + "static/js/37.040b7b2f.chunk.js": "./static/js/37.040b7b2f.chunk.js", + "static/js/38.a4c29fa5.chunk.js": "./static/js/38.a4c29fa5.chunk.js", + "static/js/39.d9ff48f5.chunk.js": "./static/js/39.d9ff48f5.chunk.js", + "static/js/40.36ca77ff.chunk.js": "./static/js/40.36ca77ff.chunk.js", + "static/js/41.6ed073f8.chunk.js": "./static/js/41.6ed073f8.chunk.js", + "static/js/42.9d43bfb5.chunk.js": "./static/js/42.9d43bfb5.chunk.js", + "static/js/43.9c57ab54.chunk.js": "./static/js/43.9c57ab54.chunk.js", + "static/js/44.f92f2584.chunk.js": "./static/js/44.f92f2584.chunk.js", + "static/js/45.e6becd2c.chunk.js": "./static/js/45.e6becd2c.chunk.js", + "static/js/46.994beeb5.chunk.js": "./static/js/46.994beeb5.chunk.js", + "static/js/47.5ccc068c.chunk.js": "./static/js/47.5ccc068c.chunk.js", + "static/js/48.fb4f9e83.chunk.js": "./static/js/48.fb4f9e83.chunk.js", + "static/js/49.3e545763.chunk.js": "./static/js/49.3e545763.chunk.js", + "static/js/50.93d91044.chunk.js": "./static/js/50.93d91044.chunk.js", + "static/js/51.e1e0f57a.chunk.js": "./static/js/51.e1e0f57a.chunk.js", + "static/js/52.50ba18bc.chunk.js": "./static/js/52.50ba18bc.chunk.js", + "static/js/53.b21a6060.chunk.js": "./static/js/53.b21a6060.chunk.js", + "static/js/54.abbbe026.chunk.js": "./static/js/54.abbbe026.chunk.js", + "static/js/55.723d8515.chunk.js": "./static/js/55.723d8515.chunk.js", + "static/js/56.d7640a78.chunk.js": "./static/js/56.d7640a78.chunk.js", + "static/js/57.c5013cae.chunk.js": "./static/js/57.c5013cae.chunk.js", + "static/js/58.62f5e944.chunk.js": "./static/js/58.62f5e944.chunk.js", + "static/js/59.b99613a4.chunk.js": "./static/js/59.b99613a4.chunk.js", + "static/js/60.fb49c6cb.chunk.js": "./static/js/60.fb49c6cb.chunk.js", + "static/js/61.d6171d07.chunk.js": "./static/js/61.d6171d07.chunk.js", + "static/js/62.b5cad7e2.chunk.js": "./static/js/62.b5cad7e2.chunk.js", + "static/js/63.5c7765e4.chunk.js": "./static/js/63.5c7765e4.chunk.js", + "static/js/64.abb52d78.chunk.js": "./static/js/64.abb52d78.chunk.js", + "static/js/65.d1507f4b.chunk.js": "./static/js/65.d1507f4b.chunk.js", + "static/js/66.024636da.chunk.js": "./static/js/66.024636da.chunk.js", + "static/js/67.692892ec.chunk.js": "./static/js/67.692892ec.chunk.js", + "static/js/68.a61e1a2b.chunk.js": "./static/js/68.a61e1a2b.chunk.js", + "static/js/69.f9d10b53.chunk.js": "./static/js/69.f9d10b53.chunk.js", + "static/js/70.81f19f93.chunk.js": "./static/js/70.81f19f93.chunk.js", + "static/js/71.740e767c.chunk.js": "./static/js/71.740e767c.chunk.js", + "static/js/72.4a5f4dba.chunk.js": "./static/js/72.4a5f4dba.chunk.js", + "static/js/73.50a6b314.chunk.js": "./static/js/73.50a6b314.chunk.js", + "static/js/74.c370ea62.chunk.js": "./static/js/74.c370ea62.chunk.js", + "static/js/75.5bca7f15.chunk.js": "./static/js/75.5bca7f15.chunk.js", + "static/js/76.d897736f.chunk.js": "./static/js/76.d897736f.chunk.js", + "static/js/77.8c5a20da.chunk.js": "./static/js/77.8c5a20da.chunk.js", + "static/js/78.4911840a.chunk.js": "./static/js/78.4911840a.chunk.js", + "static/js/79.6084295b.chunk.js": "./static/js/79.6084295b.chunk.js", + "static/js/80.21c17a90.chunk.js": "./static/js/80.21c17a90.chunk.js", + "static/js/81.e1a8a77c.chunk.js": "./static/js/81.e1a8a77c.chunk.js", + "static/js/82.2feae67e.chunk.js": "./static/js/82.2feae67e.chunk.js", + "static/js/83.5bd123be.chunk.js": "./static/js/83.5bd123be.chunk.js", + "static/js/84.772fd5a5.chunk.js": "./static/js/84.772fd5a5.chunk.js", + "static/js/85.226bfc6e.chunk.js": "./static/js/85.226bfc6e.chunk.js", + "static/js/86.9f108779.chunk.js": "./static/js/86.9f108779.chunk.js", + "static/js/87.060c8558.chunk.js": "./static/js/87.060c8558.chunk.js", + "static/js/88.f7eac3ca.chunk.js": "./static/js/88.f7eac3ca.chunk.js", + "static/js/89.f8e7558c.chunk.js": "./static/js/89.f8e7558c.chunk.js", "index.html": "./index.html", - "static/js/13.55737ecb.chunk.js.LICENSE.txt": "./static/js/13.55737ecb.chunk.js.LICENSE.txt", - "static/js/22.525f7c6b.chunk.js.LICENSE.txt": "./static/js/22.525f7c6b.chunk.js.LICENSE.txt", - "static/js/23.94d12b69.chunk.js.LICENSE.txt": "./static/js/23.94d12b69.chunk.js.LICENSE.txt", - "static/js/24.b7e14fc4.chunk.js.LICENSE.txt": "./static/js/24.b7e14fc4.chunk.js.LICENSE.txt", - "static/js/25.27515676.chunk.js.LICENSE.txt": "./static/js/25.27515676.chunk.js.LICENSE.txt", - "static/js/26.29c08b23.chunk.js.LICENSE.txt": "./static/js/26.29c08b23.chunk.js.LICENSE.txt", - "static/js/27.e8fc63b9.chunk.js.LICENSE.txt": "./static/js/27.e8fc63b9.chunk.js.LICENSE.txt", - "static/js/31.43122843.chunk.js.LICENSE.txt": "./static/js/31.43122843.chunk.js.LICENSE.txt", - "static/js/36.fb537949.chunk.js.LICENSE.txt": "./static/js/36.fb537949.chunk.js.LICENSE.txt", - "static/js/7.81b2580d.chunk.js.LICENSE.txt": "./static/js/7.81b2580d.chunk.js.LICENSE.txt" + "static/js/10.ab43c8c3.chunk.js.LICENSE.txt": "./static/js/10.ab43c8c3.chunk.js.LICENSE.txt", + "static/js/11.5cbf2fa1.chunk.js.LICENSE.txt": "./static/js/11.5cbf2fa1.chunk.js.LICENSE.txt", + "static/js/20.feb1d9c3.chunk.js.LICENSE.txt": "./static/js/20.feb1d9c3.chunk.js.LICENSE.txt", + "static/js/21.f28b502f.chunk.js.LICENSE.txt": "./static/js/21.f28b502f.chunk.js.LICENSE.txt", + "static/js/23.1e5bdad3.chunk.js.LICENSE.txt": "./static/js/23.1e5bdad3.chunk.js.LICENSE.txt", + "static/js/24.ce774d18.chunk.js.LICENSE.txt": "./static/js/24.ce774d18.chunk.js.LICENSE.txt", + "static/js/25.2fbfb820.chunk.js.LICENSE.txt": "./static/js/25.2fbfb820.chunk.js.LICENSE.txt", + "static/js/26.83c508da.chunk.js.LICENSE.txt": "./static/js/26.83c508da.chunk.js.LICENSE.txt", + "static/js/27.8ee98dbf.chunk.js.LICENSE.txt": "./static/js/27.8ee98dbf.chunk.js.LICENSE.txt", + "static/js/37.040b7b2f.chunk.js.LICENSE.txt": "./static/js/37.040b7b2f.chunk.js.LICENSE.txt", + "static/js/5.6938c9b5.chunk.js.LICENSE.txt": "./static/js/5.6938c9b5.chunk.js.LICENSE.txt" }, "entrypoints": [ - "static/js/runtime-main.e1cd7353.js", - "static/js/22.525f7c6b.chunk.js", + "static/js/runtime-main.e76ea9eb.js", + "static/js/20.feb1d9c3.chunk.js", "static/css/main.1359096b.chunk.css", - "static/js/main.6702fceb.chunk.js" + "static/js/main.ce161854.chunk.js" ] } \ No newline at end of file diff --git a/WebGLTemplates/Web3GL-2019/index.html b/WebGLTemplates/Web3GL-2019/index.html index 80c5800f7..97135c013 100644 --- a/WebGLTemplates/Web3GL-2019/index.html +++ b/WebGLTemplates/Web3GL-2019/index.html @@ -1 +1 @@ -{{{ PRODUCT_NAME }}}
\ No newline at end of file +{{{ PRODUCT_NAME }}}
\ No newline at end of file diff --git a/WebGLTemplates/Web3GL-2019/network.js b/WebGLTemplates/Web3GL-2019/network.js index 925901c5a..1f4f1e7a1 100644 --- a/WebGLTemplates/Web3GL-2019/network.js +++ b/WebGLTemplates/Web3GL-2019/network.js @@ -1,6 +1,5 @@ /* Used to set the network - 1 Mainnet 3 Ropsten 4 Rinkeby @@ -14,7 +13,12 @@ Used to set the network 80001 Matic Testnet 43113 Avalanche Testnet 43114 Avalanche Mainnet +42220 Celo Mainnet +44787 Celo Alfajores Testnet +62320 Celo Baklava Testnet +1666700000 Harmony Testnet Shard0 +1666600000 Harmony Mainnet Shard0 */ window.web3NetworkId = 1; -window.infuraKey = "2d0062a43e9e4086829df115488b45a8" +window.infuraKey = "2d0062a43e9e4086829df115488b45a8"; diff --git a/WebGLTemplates/Web3GL-2019/static/js/0.0a798628.chunk.js b/WebGLTemplates/Web3GL-2019/static/js/0.0a798628.chunk.js deleted file mode 100644 index 5b00442ac..000000000 --- a/WebGLTemplates/Web3GL-2019/static/js/0.0a798628.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(this.webpackJsonpweb3gl=this.webpackJsonpweb3gl||[]).push([[0],{1165:function(e,r,t){var n=t(2),o=t(97),i=t(41),u=t(42),a=t(139),s=t(632),c=t(245),l=t(94),p=t(95),f=(t(919),t(918),t(1167)),d=function(e,r){return e+r},h=["sync","latest"],v=function(e){"use strict";l(t,e);var r=p(t);function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i(this,t),(e=r.call(this))._blockResetDuration=n.blockResetDuration||2e4,e._blockResetTimeout,e._currentBlock=null,e._isRunning=!1,e._onNewListener=e._onNewListener.bind(a(e)),e._onRemoveListener=e._onRemoveListener.bind(a(e)),e._resetCurrentBlock=e._resetCurrentBlock.bind(a(e)),e._setupInternalEvents(),e}return u(t,[{key:"isRunning",value:function(){return this._isRunning}},{key:"getCurrentBlock",value:function(){return this._currentBlock}},{key:"getLatestBlock",value:function(){var e=o(n.mark((function e(){var r,t=this;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._currentBlock){e.next=2;break}return e.abrupt("return",this._currentBlock);case 2:return e.next=4,new Promise((function(e){return t.once("latest",e)}));case 4:return r=e.sent,e.abrupt("return",r);case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"removeAllListeners",value:function(e){e?s(c(t.prototype),"removeAllListeners",this).call(this,e):s(c(t.prototype),"removeAllListeners",this).call(this),this._setupInternalEvents(),this._onRemoveListener()}},{key:"_start",value:function(){}},{key:"_end",value:function(){}},{key:"_setupInternalEvents",value:function(){this.removeListener("newListener",this._onNewListener),this.removeListener("removeListener",this._onRemoveListener),this.on("newListener",this._onNewListener),this.on("removeListener",this._onRemoveListener)}},{key:"_onNewListener",value:function(e,r){h.includes(e)&&this._maybeStart()}},{key:"_onRemoveListener",value:function(e,r){this._getBlockTrackerEventCount()>0||this._maybeEnd()}},{key:"_maybeStart",value:function(){this._isRunning||(this._isRunning=!0,this._cancelBlockResetTimeout(),this._start())}},{key:"_maybeEnd",value:function(){this._isRunning&&(this._isRunning=!1,this._setupBlockResetTimeout(),this._end())}},{key:"_getBlockTrackerEventCount",value:function(){var e=this;return h.map((function(r){return e.listenerCount(r)})).reduce(d)}},{key:"_newPotentialLatest",value:function(e){var r=this._currentBlock;r&&y(e)<=y(r)||this._setCurrentBlock(e)}},{key:"_setCurrentBlock",value:function(e){var r=this._currentBlock;this._currentBlock=e,this.emit("latest",e),this.emit("sync",{oldBlock:r,newBlock:e})}},{key:"_setupBlockResetTimeout",value:function(){this._cancelBlockResetTimeout(),this._blockResetTimeout=setTimeout(this._resetCurrentBlock,this._blockResetDuration),this._blockResetTimeout.unref&&this._blockResetTimeout.unref()}},{key:"_cancelBlockResetTimeout",value:function(){clearTimeout(this._blockResetTimeout)}},{key:"_resetCurrentBlock",value:function(){this._currentBlock=null}}]),t}(f);function y(e){return Number.parseInt(e,16)}e.exports=v},1166:function(e,r){e.exports=function(e){var r=(e=e||{}).max||Number.MAX_SAFE_INTEGER,t="undefined"!==typeof e.start?e.start:Math.floor(Math.random()*r);return function(){return t%=r,t++}}},1167:function(e,r,t){var n=t(136),o=t(43),i="object"===typeof Reflect?Reflect:null,u=i&&"function"===typeof i.apply?i.apply:function(e,r,t){return Function.prototype.apply.call(e,r,t)};function a(){o.call(this)}function s(e,r,t){try{u(e,r,t)}catch(n){setTimeout((function(){throw n}))}}function c(e,r){for(var t=new Array(r),n=0;n0&&(i=r[0]),i instanceof Error)throw i;var u=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw u.context=i,u}var a=o[e];if(void 0===a)return!1;if("function"===typeof a)s(a,this,r);else{var l=a.length,p=c(a,l);for(t=0;t-32005||r<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return a(r,e)},invalidInput:function(e){return a(u.errorCodes.rpc.invalidInput,e)},resourceNotFound:function(e){return a(u.errorCodes.rpc.resourceNotFound,e)},resourceUnavailable:function(e){return a(u.errorCodes.rpc.resourceUnavailable,e)},transactionRejected:function(e){return a(u.errorCodes.rpc.transactionRejected,e)},methodNotSupported:function(e){return a(u.errorCodes.rpc.methodNotSupported,e)},limitExceeded:function(e){return a(u.errorCodes.rpc.limitExceeded,e)}},provider:{userRejectedRequest:function(e){return s(u.errorCodes.provider.userRejectedRequest,e)},unauthorized:function(e){return s(u.errorCodes.provider.unauthorized,e)},unsupportedMethod:function(e){return s(u.errorCodes.provider.unsupportedMethod,e)},disconnected:function(e){return s(u.errorCodes.provider.disconnected,e)},chainDisconnected:function(e){return s(u.errorCodes.provider.chainDisconnected,e)},custom:function(e){if(!e||"object"!==typeof e||Array.isArray(e))throw new Error("Ethereum Provider custom errors must provide single object argument.");var r=e.code,t=e.message,n=e.data;if(!t||"string"!==typeof t)throw new Error('"message" must be a nonempty string');return new o.EthereumProviderError(r,t,n)}}}},1229:function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.mergeMiddleware=void 0;var n=t(933);r.mergeMiddleware=function(e){var r=new n.JsonRpcEngine;return e.forEach((function(e){return r.push(e)})),r.asMiddleware()}},1230:function(e,r,t){var n=t(2),o=t(97),i=t(41),u=t(42),a=t(94),s=t(95),c=t(919),l=t(1231),p=t(1232),f=t(695),d=(f.bnToHex,f.hexToInt),h=f.incrementHexInt,v=f.minBlockRef,y=f.blockRefIsNumber,m=function(e){"use strict";a(t,e);var r=s(t);function t(e){var n,o=e.provider,u=e.params;return i(this,t),(n=r.call(this)).type="log",n.ethQuery=new c(o),n.params=Object.assign({fromBlock:"latest",toBlock:"latest",address:void 0,topics:[]},u),n.params.address&&(Array.isArray(n.params.address)||(n.params.address=[n.params.address]),n.params.address=n.params.address.map((function(e){return e.toLowerCase()}))),n}return u(t,[{key:"initialize",value:function(){var e=o(n.mark((function e(r){var t,o,i,u,a;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.currentBlock,o=this.params.fromBlock,["latest","pending"].includes(o)&&(o=t),"earliest"===o&&(o="0x0"),this.params.fromBlock=o,i=v(this.params.toBlock,t),u=Object.assign({},this.params,{toBlock:i}),e.next=9,this._fetchLogs(u);case 9:a=e.sent,this.addInitialResults(a);case 11:case"end":return e.stop()}}),e,this)})));return function(r){return e.apply(this,arguments)}}()},{key:"update",value:function(){var e=o(n.mark((function e(r){var t,o,i,u,a,s,c,l=this;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.oldBlock,o=r.newBlock,i=o,u=t?h(t):o,a=Object.assign({},this.params,{fromBlock:u,toBlock:i}),e.next=6,this._fetchLogs(a);case 6:s=e.sent,c=s.filter((function(e){return l.matchLog(e)})),this.addResults(c);case 9:case"end":return e.stop()}}),e,this)})));return function(r){return e.apply(this,arguments)}}()},{key:"_fetchLogs",value:function(){var e=o(n.mark((function e(r){var t,o=this;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l((function(e){return o.ethQuery.getLogs(r,e)}))();case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}()},{key:"matchLog",value:function(e){if(d(this.params.fromBlock)>=d(e.blockNumber))return!1;if(y(this.params.toBlock)&&d(this.params.toBlock)<=d(e.blockNumber))return!1;var r=e.address&&e.address.toLowerCase();return!(this.params.address&&r&&!this.params.address.includes(r))&&this.params.topics.every((function(r,t){var n=e.topics[t];if(!n)return!1;n=n.toLowerCase();var o=Array.isArray(r)?r:[r];return!!o.includes(null)||(o=o.map((function(e){return e.toLowerCase()}))).includes(n)}))}}]),t}(p);e.exports=m},1231:function(e,r,t){"use strict";var n=t(249),o=function(e,r,t,n){return function(){for(var o=this,i=arguments.length,u=new Array(i),a=0;a0&&o[o.length-1])&&(6===i[0]||2===i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]1)throw new Error("this method is unavailabel on semaphores with concurrency > 1; use the scoped release returned by acquire instead");if(this._currentReleaser){var e=this._currentReleaser;this._currentReleaser=void 0,e()}},e.prototype._dispatch=function(){var e=this,r=this._queue.shift();if(r){var t=!1;this._currentReleaser=function(){t||(t=!0,e._value++,e._dispatch())},r([this._value--,this._currentReleaser])}},e}(),u=function(){function e(){this._semaphore=new i(1)}return e.prototype.acquire=function(){return n(this,void 0,void 0,(function(){var e;return o(this,(function(r){switch(r.label){case 0:return[4,this._semaphore.acquire()];case 1:return e=r.sent(),[2,e[1]]}}))}))},e.prototype.runExclusive=function(e){return this._semaphore.runExclusive((function(){return e()}))},e.prototype.isLocked=function(){return this._semaphore.isLocked()},e.prototype.release=function(){this._semaphore.release()},e}();function a(e,r,t){var i=this;return void 0===t&&(t=new Error("timeout")),{acquire:function(){return new Promise((function(u,a){return n(i,void 0,void 0,(function(){var n,i;return o(this,(function(o){switch(o.label){case 0:return n=!1,setTimeout((function(){n=!0,a(t)}),r),[4,e.acquire()];case 1:return i=o.sent(),n?(Array.isArray(i)?i[1]:i)():u(i),[2]}}))}))}))},runExclusive:function(e){return n(this,void 0,void 0,(function(){var r,t;return o(this,(function(n){switch(n.label){case 0:r=function(){},n.label=1;case 1:return n.trys.push([1,,7,8]),[4,this.acquire()];case 2:return t=n.sent(),Array.isArray(t)?(r=t[1],[4,e(t[0])]):[3,4];case 3:return[2,n.sent()];case 4:return r=t,[4,e()];case 5:return[2,n.sent()];case 6:return[3,8];case 7:return r(),[7];case 8:return[2]}}))}))},release:function(){e.release()},isLocked:function(){return e.isLocked()}}}},619:function(e,r,t){var n=t(245),o=t(142),i=t(642),u=t(251);function a(r){var t="function"===typeof Map?new Map:void 0;return e.exports=a=function(e){if(null===e||!i(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return u(e,arguments,n(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),o(r,e)},a(r)}e.exports=a},632:function(e,r,t){var n=t(641);function o(r,t,i){return"undefined"!==typeof Reflect&&Reflect.get?e.exports=o=Reflect.get:e.exports=o=function(e,r,t){var o=n(e,r);if(o){var i=Object.getOwnPropertyDescriptor(o,r);return i.get?i.get.call(t):i.value}},o(r,t,i||r)}e.exports=o},641:function(e,r,t){var n=t(245);e.exports=function(e,r){for(;!Object.prototype.hasOwnProperty.call(e,r)&&null!==(e=n(e)););return e}},642:function(e,r){e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}},695:function(e,r){function t(e){return e.sort((function(e,r){return"latest"===e||"earliest"===r?1:"latest"===r||"earliest"===e?-1:n(e)-n(r)}))}function n(e){return void 0===e||null===e?e:Number.parseInt(e,16)}function o(e){if(void 0===e||null===e)return e;var r=e.toString(16);return r.length%2&&(r="0"+r),"0x"+r}function i(){return Math.floor(16*Math.random()).toString(16)}e.exports={minBlockRef:function(){for(var e=arguments.length,r=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:{};if(i(this,t),!n.provider)throw new Error("PollingBlockTracker - no provider specified.");var o=n.pollingInterval||2e4,u=n.retryTimeout||o/10,a=void 0===n.keepEventLoopActive||n.keepEventLoopActive,s=n.setSkipCacheFlag||!1;return(e=r.call(this,Object.assign({blockResetDuration:o},n)))._provider=n.provider,e._pollingInterval=o,e._retryTimeout=u,e._keepEventLoopActive=a,e._setSkipCacheFlag=s,e}return u(t,[{key:"checkForLatestBlock",value:function(){var e=o(n.mark((function e(){return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._updateLatestBlock();case 2:return e.next=4,this.getLatestBlock();case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_start",value:function(){var e=this;this._performSync().catch((function(r){return e.emit("error",r)}))}},{key:"_performSync",value:function(){var e=o(n.mark((function e(){var r;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._isRunning){e.next=16;break}return e.prev=1,e.next=4,this._updateLatestBlock();case 4:return e.next=6,f(this._pollingInterval,!this._keepEventLoopActive);case 6:e.next=14;break;case 8:e.prev=8,e.t0=e.catch(1),r=new Error("PollingBlockTracker - encountered an error while attempting to update latest block:\n".concat(e.t0.stack));try{this.emit("error",r)}catch(t){console.error(r)}return e.next=14,f(this._retryTimeout,!this._keepEventLoopActive);case 14:e.next=0;break;case 16:case"end":return e.stop()}}),e,this,[[1,8]])})));return function(){return e.apply(this,arguments)}}()},{key:"_updateLatestBlock",value:function(){var e=o(n.mark((function e(){var r;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._fetchLatestBlock();case 2:r=e.sent,this._newPotentialLatest(r);case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_fetchLatestBlock",value:function(){var e=o(n.mark((function e(){var r,t,o=this;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={jsonrpc:"2.0",id:1,method:"eth_blockNumber",params:[]},this._setSkipCacheFlag&&(r.skipCache=!0),e.next=4,c((function(e){return o._provider.sendAsync(r,e)}))();case 4:if(!(t=e.sent).error){e.next=7;break}throw new Error("PollingBlockTracker - encountered error fetching block:\n".concat(t.error));case 7:return e.abrupt("return",t.result);case 8:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),t}(l);function f(e,r){return new Promise((function(t){var n=setTimeout(t,e);n.unref&&r&&n.unref()}))}e.exports=p},738:function(e,r){e.exports=o,o.default=o,o.stable=a,o.stableStringify=a;var t=[],n=[];function o(e,r,o){var u;for(i(e,"",[],void 0),u=0===n.length?JSON.stringify(e,r,o):JSON.stringify(e,c(r),o);0!==t.length;){var a=t.pop();4===a.length?Object.defineProperty(a[0],a[1],a[3]):a[0][a[1]]=a[2]}return u}function i(e,r,o,u){var a;if("object"===typeof e&&null!==e){for(a=0;ar?1:0}function a(e,r,o){var i,u=s(e,"",[],void 0)||e;for(i=0===n.length?JSON.stringify(u,r,o):JSON.stringify(u,c(r),o);0!==t.length;){var a=t.pop();4===a.length?Object.defineProperty(a[0],a[1],a[3]):a[0][a[1]]=a[2]}return i}function s(e,r,o,i){var a;if("object"===typeof e&&null!==e){for(a=0;a0)for(var o=0;o1?n-1:0),i=1;i0&&(u=o[0]),u instanceof Error)throw u;var c=new Error("Unhandled error.".concat(u?" (".concat(u.message,")"):""));throw c.context=u,c}var l=t[e];if(void 0===l)return!1;if("function"===typeof l)a(l,this,o);else for(var p=l.length,f=s(l),d=0;d0?r.on("sync",w):t>0&&0===n&&r.removeListener("sync",w)}}},805:function(e,r,t){"use strict";var n=t(41),o=t(42),i=t(94),u=t(95),a=t(619);Object.defineProperty(r,"__esModule",{value:!0}),r.EthereumProviderError=r.EthereumRpcError=void 0;var s=t(738),c=function(e){i(t,e);var r=u(t);function t(e,o,i){var u;if(n(this,t),!Number.isInteger(e))throw new Error('"code" must be an integer.');if(!o||"string"!==typeof o)throw new Error('"message" must be a nonempty string.');return(u=r.call(this,o)).code=e,void 0!==i&&(u.data=i),u}return o(t,[{key:"serialize",value:function(){var e={code:this.code,message:this.message};return void 0!==this.data&&(e.data=this.data),this.stack&&(e.stack=this.stack),e}},{key:"toString",value:function(){return s.default(this.serialize(),p,2)}}]),t}(a(Error));r.EthereumRpcError=c;var l=function(e){i(t,e);var r=u(t);function t(e,o,i){if(n(this,t),!function(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');return r.call(this,e,o,i)}return t}(c);function p(e,r){if("[Circular]"!==r)return r}r.EthereumProviderError=l},806:function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.errorValues=r.errorCodes=void 0,r.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}},r.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}}},807:function(e,r,t){var n=t(2),o=t(97),i=t(41),u=t(42),a=t(94),s=t(95),c=function(e){"use strict";a(t,e);var r=s(t);function t(){var e;return i(this,t),(e=r.call(this)).updates=[],e}return u(t,[{key:"initialize",value:function(){var e=o(n.mark((function e(){return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"update",value:function(){var e=o(n.mark((function e(){return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("BaseFilter - no update method specified");case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"addResults",value:function(e){var r=this;this.updates=this.updates.concat(e),e.forEach((function(e){return r.emit("update",e)}))}},{key:"addInitialResults",value:function(e){}},{key:"getChangesAndClear",value:function(){var e=this.updates;return this.updates=[],e}}]),t}(t(740).default);e.exports=c},808:function(e,r,t){var n=t(2),o=t(97);function i(){return(i=o(n.mark((function e(r){var t,o,i,c,l,p,f;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.provider,o=r.fromBlock,i=r.toBlock,o||(o=i),c=u(o),l=u(i),p=Array(l-c+1).fill().map((function(e,r){return c+r})).map(a),e.next=8,Promise.all(p.map((function(e){return s(t,"eth_getBlockByNumber",[e,!1])})));case 8:return f=e.sent,e.abrupt("return",f);case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function u(e){return void 0===e||null===e?e:Number.parseInt(e,16)}function a(e){return void 0===e||null===e?e:"0x"+e.toString(16)}function s(e,r,t){return new Promise((function(n,o){e.sendAsync({id:1,jsonrpc:"2.0",method:r,params:t},(function(e,r){if(e)return o(e);n(r.result)}))}))}e.exports=function(e){return i.apply(this,arguments)}},918:function(e,r,t){"use strict";var n=function(e,r){return function(){for(var t=this,n=r.promiseModule,o=new Array(arguments.length),i=0;i1&&void 0!==arguments[1]?arguments[1]:u;if(Number.isInteger(e)){var o=e.toString();if(f(n.errorValues,o))return n.errorValues[o].message;if(l(e))return r.JSON_RPC_SERVER_ERROR_MESSAGE}return t}function c(e){if(!Number.isInteger(e))return!1;var r=e.toString();return!!n.errorValues[r]||!!l(e)}function l(e){return e>=-32099&&e<=-32e3}function p(e){return e&&"object"===typeof e&&!Array.isArray(e)?Object.assign({},e):e}function f(e,r){return Object.prototype.hasOwnProperty.call(e,r)}r.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.",r.getMessageFromCode=s,r.isValidCode=c,r.serializeError=function(e){var r,t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.fallbackError,u=void 0===i?a:i,l=n.shouldIncludeStack,d=void 0!==l&&l;if(!u||!Number.isInteger(u.code)||"string"!==typeof u.message)throw new Error("Must provide fallback error with integer number code and string message.");if(e instanceof o.EthereumRpcError)return e.serialize();var h={};if(e&&"object"===typeof e&&!Array.isArray(e)&&f(e,"code")&&c(e.code)){var v=e;h.code=v.code,v.message&&"string"===typeof v.message?(h.message=v.message,f(v,"data")&&(h.data=v.data)):(h.message=s(h.code),h.data={originalError:p(e)})}else{h.code=u.code;var y=null===(r=e)||void 0===r?void 0:r.message;h.message=y&&"string"===typeof y?y:u.message,h.data={originalError:p(e)}}var m=null===(t=e)||void 0===t?void 0:t.stack;return d&&e&&m&&"string"===typeof m&&(h.stack=m),h}}}]); \ No newline at end of file diff --git a/WebGLTemplates/Web3GL-2019/static/js/0.1a1c634a.chunk.js b/WebGLTemplates/Web3GL-2019/static/js/0.1a1c634a.chunk.js new file mode 100644 index 000000000..8d1b50162 --- /dev/null +++ b/WebGLTemplates/Web3GL-2019/static/js/0.1a1c634a.chunk.js @@ -0,0 +1 @@ +(this.webpackJsonpweb3gl=this.webpackJsonpweb3gl||[]).push([[0],{1026:function(e,r,t){"use strict";var n=function(e,r){return function(){for(var t=this,n=r.promiseModule,o=new Array(arguments.length),i=0;i1&&void 0!==arguments[1]?arguments[1]:a;if(Number.isInteger(e)){var o=e.toString();if(f(n.errorValues,o))return n.errorValues[o].message;if(l(e))return r.JSON_RPC_SERVER_ERROR_MESSAGE}return t}function c(e){if(!Number.isInteger(e))return!1;var r=e.toString();return!!n.errorValues[r]||!!l(e)}function l(e){return e>=-32099&&e<=-32e3}function p(e){return e&&"object"===typeof e&&!Array.isArray(e)?Object.assign({},e):e}function f(e,r){return Object.prototype.hasOwnProperty.call(e,r)}r.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.",r.getMessageFromCode=s,r.isValidCode=c,r.serializeError=function(e){var r,t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.fallbackError,a=void 0===i?u:i,l=n.shouldIncludeStack,d=void 0!==l&&l;if(!a||!Number.isInteger(a.code)||"string"!==typeof a.message)throw new Error("Must provide fallback error with integer number code and string message.");if(e instanceof o.EthereumRpcError)return e.serialize();var h={};if(e&&"object"===typeof e&&!Array.isArray(e)&&f(e,"code")&&c(e.code)){var v=e;h.code=v.code,v.message&&"string"===typeof v.message?(h.message=v.message,f(v,"data")&&(h.data=v.data)):(h.message=s(h.code),h.data={originalError:p(e)})}else{h.code=a.code;var y=null===(r=e)||void 0===r?void 0:r.message;h.message=y&&"string"===typeof y?y:a.message,h.data={originalError:p(e)}}var m=null===(t=e)||void 0===t?void 0:t.stack;return d&&e&&m&&"string"===typeof m&&(h.stack=m),h}},1326:function(e,r,t){var n=t(9),o=t(101),i=t(38),a=t(39),u=t(144),s=t(681),c=t(252),l=t(99),p=t(100),f=(t(1027),t(1026),t(1328)),d=function(e,r){return e+r},h=["sync","latest"],v=function(e){"use strict";l(t,e);var r=p(t);function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i(this,t),(e=r.call(this))._blockResetDuration=n.blockResetDuration||2e4,e._blockResetTimeout,e._currentBlock=null,e._isRunning=!1,e._onNewListener=e._onNewListener.bind(u(e)),e._onRemoveListener=e._onRemoveListener.bind(u(e)),e._resetCurrentBlock=e._resetCurrentBlock.bind(u(e)),e._setupInternalEvents(),e}return a(t,[{key:"isRunning",value:function(){return this._isRunning}},{key:"getCurrentBlock",value:function(){return this._currentBlock}},{key:"getLatestBlock",value:function(){var e=o(n.mark((function e(){var r,t=this;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._currentBlock){e.next=2;break}return e.abrupt("return",this._currentBlock);case 2:return e.next=4,new Promise((function(e){return t.once("latest",e)}));case 4:return r=e.sent,e.abrupt("return",r);case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"removeAllListeners",value:function(e){e?s(c(t.prototype),"removeAllListeners",this).call(this,e):s(c(t.prototype),"removeAllListeners",this).call(this),this._setupInternalEvents(),this._onRemoveListener()}},{key:"_start",value:function(){}},{key:"_end",value:function(){}},{key:"_setupInternalEvents",value:function(){this.removeListener("newListener",this._onNewListener),this.removeListener("removeListener",this._onRemoveListener),this.on("newListener",this._onNewListener),this.on("removeListener",this._onRemoveListener)}},{key:"_onNewListener",value:function(e,r){h.includes(e)&&this._maybeStart()}},{key:"_onRemoveListener",value:function(e,r){this._getBlockTrackerEventCount()>0||this._maybeEnd()}},{key:"_maybeStart",value:function(){this._isRunning||(this._isRunning=!0,this._cancelBlockResetTimeout(),this._start())}},{key:"_maybeEnd",value:function(){this._isRunning&&(this._isRunning=!1,this._setupBlockResetTimeout(),this._end())}},{key:"_getBlockTrackerEventCount",value:function(){var e=this;return h.map((function(r){return e.listenerCount(r)})).reduce(d)}},{key:"_newPotentialLatest",value:function(e){var r=this._currentBlock;r&&y(e)<=y(r)||this._setCurrentBlock(e)}},{key:"_setCurrentBlock",value:function(e){var r=this._currentBlock;this._currentBlock=e,this.emit("latest",e),this.emit("sync",{oldBlock:r,newBlock:e})}},{key:"_setupBlockResetTimeout",value:function(){this._cancelBlockResetTimeout(),this._blockResetTimeout=setTimeout(this._resetCurrentBlock,this._blockResetDuration),this._blockResetTimeout.unref&&this._blockResetTimeout.unref()}},{key:"_cancelBlockResetTimeout",value:function(){clearTimeout(this._blockResetTimeout)}},{key:"_resetCurrentBlock",value:function(){this._currentBlock=null}}]),t}(f);function y(e){return Number.parseInt(e,16)}e.exports=v},1327:function(e,r){e.exports=function(e){var r=(e=e||{}).max||Number.MAX_SAFE_INTEGER,t="undefined"!==typeof e.start?e.start:Math.floor(Math.random()*r);return function(){return t%=r,t++}}},1328:function(e,r,t){var n=t(140),o=t(27),i="object"===typeof Reflect?Reflect:null,a=i&&"function"===typeof i.apply?i.apply:function(e,r,t){return Function.prototype.apply.call(e,r,t)};function u(){o.call(this)}function s(e,r,t){try{a(e,r,t)}catch(n){setTimeout((function(){throw n}))}}function c(e,r){for(var t=new Array(r),n=0;n0&&(i=r[0]),i instanceof Error)throw i;var a=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw a.context=i,a}var u=o[e];if(void 0===u)return!1;if("function"===typeof u)s(u,this,r);else{var l=u.length,p=c(u,l);for(t=0;t-32005||r<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return u(r,e)},invalidInput:function(e){return u(a.errorCodes.rpc.invalidInput,e)},resourceNotFound:function(e){return u(a.errorCodes.rpc.resourceNotFound,e)},resourceUnavailable:function(e){return u(a.errorCodes.rpc.resourceUnavailable,e)},transactionRejected:function(e){return u(a.errorCodes.rpc.transactionRejected,e)},methodNotSupported:function(e){return u(a.errorCodes.rpc.methodNotSupported,e)},limitExceeded:function(e){return u(a.errorCodes.rpc.limitExceeded,e)}},provider:{userRejectedRequest:function(e){return s(a.errorCodes.provider.userRejectedRequest,e)},unauthorized:function(e){return s(a.errorCodes.provider.unauthorized,e)},unsupportedMethod:function(e){return s(a.errorCodes.provider.unsupportedMethod,e)},disconnected:function(e){return s(a.errorCodes.provider.disconnected,e)},chainDisconnected:function(e){return s(a.errorCodes.provider.chainDisconnected,e)},custom:function(e){if(!e||"object"!==typeof e||Array.isArray(e))throw new Error("Ethereum Provider custom errors must provide single object argument.");var r=e.code,t=e.message,n=e.data;if(!t||"string"!==typeof t)throw new Error('"message" must be a nonempty string');return new o.EthereumProviderError(r,t,n)}}}},1387:function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.mergeMiddleware=void 0;var n=t(1042);r.mergeMiddleware=function(e){var r=new n.JsonRpcEngine;return e.forEach((function(e){return r.push(e)})),r.asMiddleware()}},1388:function(e,r,t){var n=t(9),o=t(101),i=t(38),a=t(39),u=t(99),s=t(100),c=t(1027),l=t(1389),p=t(1390),f=t(757),d=(f.bnToHex,f.hexToInt),h=f.incrementHexInt,v=f.minBlockRef,y=f.blockRefIsNumber,m=function(e){"use strict";u(t,e);var r=s(t);function t(e){var n,o=e.provider,a=e.params;return i(this,t),(n=r.call(this)).type="log",n.ethQuery=new c(o),n.params=Object.assign({fromBlock:"latest",toBlock:"latest",address:void 0,topics:[]},a),n.params.address&&(Array.isArray(n.params.address)||(n.params.address=[n.params.address]),n.params.address=n.params.address.map((function(e){return e.toLowerCase()}))),n}return a(t,[{key:"initialize",value:function(){var e=o(n.mark((function e(r){var t,o,i,a,u;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.currentBlock,o=this.params.fromBlock,["latest","pending"].includes(o)&&(o=t),"earliest"===o&&(o="0x0"),this.params.fromBlock=o,i=v(this.params.toBlock,t),a=Object.assign({},this.params,{toBlock:i}),e.next=9,this._fetchLogs(a);case 9:u=e.sent,this.addInitialResults(u);case 11:case"end":return e.stop()}}),e,this)})));return function(r){return e.apply(this,arguments)}}()},{key:"update",value:function(){var e=o(n.mark((function e(r){var t,o,i,a,u,s,c,l=this;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.oldBlock,o=r.newBlock,i=o,a=t?h(t):o,u=Object.assign({},this.params,{fromBlock:a,toBlock:i}),e.next=6,this._fetchLogs(u);case 6:s=e.sent,c=s.filter((function(e){return l.matchLog(e)})),this.addResults(c);case 9:case"end":return e.stop()}}),e,this)})));return function(r){return e.apply(this,arguments)}}()},{key:"_fetchLogs",value:function(){var e=o(n.mark((function e(r){var t,o=this;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l((function(e){return o.ethQuery.getLogs(r,e)}))();case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}()},{key:"matchLog",value:function(e){if(d(this.params.fromBlock)>=d(e.blockNumber))return!1;if(y(this.params.toBlock)&&d(this.params.toBlock)<=d(e.blockNumber))return!1;var r=e.address&&e.address.toLowerCase();return!(this.params.address&&r&&!this.params.address.includes(r))&&this.params.topics.every((function(r,t){var n=e.topics[t];if(!n)return!1;n=n.toLowerCase();var o=Array.isArray(r)?r:[r];return!!o.includes(null)||(o=o.map((function(e){return e.toLowerCase()}))).includes(n)}))}}]),t}(p);e.exports=m},1389:function(e,r,t){"use strict";var n=t(82),o=function(e,r,t,n){return function(){for(var o=this,i=arguments.length,a=new Array(i),u=0;u0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]1)throw new Error("this method is unavailabel on semaphores with concurrency > 1; use the scoped release returned by acquire instead");if(this._currentReleaser){var e=this._currentReleaser;this._currentReleaser=void 0,e()}},e.prototype._dispatch=function(){var e=this,r=this._queue.shift();if(r){var t=!1;this._currentReleaser=function(){t||(t=!0,e._value++,e._dispatch())},r([this._value--,this._currentReleaser])}},e}(),a=function(){function e(){this._semaphore=new i(1)}return e.prototype.acquire=function(){return n(this,void 0,void 0,(function(){var e;return o(this,(function(r){switch(r.label){case 0:return[4,this._semaphore.acquire()];case 1:return e=r.sent(),[2,e[1]]}}))}))},e.prototype.runExclusive=function(e){return this._semaphore.runExclusive((function(){return e()}))},e.prototype.isLocked=function(){return this._semaphore.isLocked()},e.prototype.release=function(){this._semaphore.release()},e}();function u(e,r,t){var i=this;return void 0===t&&(t=new Error("timeout")),{acquire:function(){return new Promise((function(a,u){return n(i,void 0,void 0,(function(){var n,i;return o(this,(function(o){switch(o.label){case 0:return n=!1,setTimeout((function(){n=!0,u(t)}),r),[4,e.acquire()];case 1:return i=o.sent(),n?(Array.isArray(i)?i[1]:i)():a(i),[2]}}))}))}))},runExclusive:function(e){return n(this,void 0,void 0,(function(){var r,t;return o(this,(function(n){switch(n.label){case 0:r=function(){},n.label=1;case 1:return n.trys.push([1,,7,8]),[4,this.acquire()];case 2:return t=n.sent(),Array.isArray(t)?(r=t[1],[4,e(t[0])]):[3,4];case 3:return[2,n.sent()];case 4:return r=t,[4,e()];case 5:return[2,n.sent()];case 6:return[3,8];case 7:return r(),[7];case 8:return[2]}}))}))},release:function(){e.release()},isLocked:function(){return e.isLocked()}}}},681:function(e,r,t){var n=t(696);function o(r,t,i){return"undefined"!==typeof Reflect&&Reflect.get?e.exports=o=Reflect.get:e.exports=o=function(e,r,t){var o=n(e,r);if(o){var i=Object.getOwnPropertyDescriptor(o,r);return i.get?i.get.call(t):i.value}},o(r,t,i||r)}e.exports=o},696:function(e,r,t){var n=t(252);e.exports=function(e,r){for(;!Object.prototype.hasOwnProperty.call(e,r)&&null!==(e=n(e)););return e}},698:function(e,r){e.exports=u,u.default=u,u.stable=p,u.stableStringify=p;var t="[...]",n="[Circular]",o=[],i=[];function a(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function u(e,r,t,n){var u;"undefined"===typeof n&&(n=a()),c(e,"",0,[],void 0,0,n);try{u=0===i.length?JSON.stringify(e,r,t):JSON.stringify(e,d(r),t)}catch(l){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var s=o.pop();4===s.length?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return u}function s(e,r,t,n){var a=Object.getOwnPropertyDescriptor(n,t);void 0!==a.get?a.configurable?(Object.defineProperty(n,t,{value:e}),o.push([n,t,r,a])):i.push([r,t,e]):(n[t]=e,o.push([n,t,r]))}function c(e,r,o,i,a,u,l){var p;if(u+=1,"object"===typeof e&&null!==e){for(p=0;pl.depthLimit)return void s(t,e,r,a);if("undefined"!==typeof l.edgesLimit&&o+1>l.edgesLimit)return void s(t,e,r,a);if(i.push(e),Array.isArray(e))for(p=0;pr?1:0}function p(e,r,t,n){"undefined"===typeof n&&(n=a());var u,s=f(e,"",0,[],void 0,0,n)||e;try{u=0===i.length?JSON.stringify(s,r,t):JSON.stringify(s,d(r),t)}catch(l){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var c=o.pop();4===c.length?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return u}function f(e,r,i,a,u,c,p){var d;if(c+=1,"object"===typeof e&&null!==e){for(d=0;dp.depthLimit)return void s(t,e,r,u);if("undefined"!==typeof p.edgesLimit&&i+1>p.edgesLimit)return void s(t,e,r,u);if(a.push(e),Array.isArray(e))for(d=0;d0)for(var n=0;n1?n-1:0),i=1;i0&&(a=o[0]),a instanceof Error)throw a;var c=new Error("Unhandled error.".concat(a?" (".concat(a.message,")"):""));throw c.context=a,c}var l=t[e];if(void 0===l)return!1;if("function"===typeof l)u(l,this,o);else for(var p=l.length,f=s(l),d=0;d0&&void 0!==arguments[0]?arguments[0]:{};if(i(this,t),!n.provider)throw new Error("PollingBlockTracker - no provider specified.");var o=n.pollingInterval||2e4,a=n.retryTimeout||o/10,u=void 0===n.keepEventLoopActive||n.keepEventLoopActive,s=n.setSkipCacheFlag||!1;return(e=r.call(this,Object.assign({blockResetDuration:o},n)))._provider=n.provider,e._pollingInterval=o,e._retryTimeout=a,e._keepEventLoopActive=u,e._setSkipCacheFlag=s,e}return a(t,[{key:"checkForLatestBlock",value:function(){var e=o(n.mark((function e(){return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._updateLatestBlock();case 2:return e.next=4,this.getLatestBlock();case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_start",value:function(){var e=this;this._performSync().catch((function(r){return e.emit("error",r)}))}},{key:"_performSync",value:function(){var e=o(n.mark((function e(){var r;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._isRunning){e.next=16;break}return e.prev=1,e.next=4,this._updateLatestBlock();case 4:return e.next=6,f(this._pollingInterval,!this._keepEventLoopActive);case 6:e.next=14;break;case 8:e.prev=8,e.t0=e.catch(1),r=new Error("PollingBlockTracker - encountered an error while attempting to update latest block:\n".concat(e.t0.stack));try{this.emit("error",r)}catch(t){console.error(r)}return e.next=14,f(this._retryTimeout,!this._keepEventLoopActive);case 14:e.next=0;break;case 16:case"end":return e.stop()}}),e,this,[[1,8]])})));return function(){return e.apply(this,arguments)}}()},{key:"_updateLatestBlock",value:function(){var e=o(n.mark((function e(){var r;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._fetchLatestBlock();case 2:r=e.sent,this._newPotentialLatest(r);case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_fetchLatestBlock",value:function(){var e=o(n.mark((function e(){var r,t,o=this;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={jsonrpc:"2.0",id:1,method:"eth_blockNumber",params:[]},this._setSkipCacheFlag&&(r.skipCache=!0),e.next=4,c((function(e){return o._provider.sendAsync(r,e)}))();case 4:if(!(t=e.sent).error){e.next=7;break}throw new Error("PollingBlockTracker - encountered error fetching block:\n".concat(t.error));case 7:return e.abrupt("return",t.result);case 8:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),t}(l);function f(e,r){return new Promise((function(t){var n=setTimeout(t,e);n.unref&&r&&n.unref()}))}e.exports=p},795:function(e,r,t){var n=t(9),o=t(101),i=t(723).default,a=t(1039),u=t(1040).createAsyncMiddleware,s=t(796),c=t(757),l=c.unsafeRandomBytes,p=c.incrementHexInt,f=t(881);function d(e){return{hash:e.hash,parentHash:e.parentHash,sha3Uncles:e.sha3Uncles,miner:e.miner,stateRoot:e.stateRoot,transactionsRoot:e.transactionsRoot,receiptsRoot:e.receiptsRoot,logsBloom:e.logsBloom,difficulty:e.difficulty,number:e.number,gasLimit:e.gasLimit,gasUsed:e.gasUsed,nonce:e.nonce,mixHash:e.mixHash,timestamp:e.timestamp,extraData:e.extraData}}e.exports=function(e){var r=e.blockTracker,t=e.provider,c={},h=s({blockTracker:r,provider:t}),v=!1,y=new i,m=a({eth_subscribe:u((function(e,r){return g.apply(this,arguments)})),eth_unsubscribe:u((function(e,r){return k.apply(this,arguments)}))});return m.destroy=function(){for(var e in y.removeAllListeners(),c)c[e].destroy(),delete c[e];v=!0},{events:y,middleware:m};function g(){return g=o(n.mark((function e(i,a){var u,s,y,m,g,k,b;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(b=function(e){var r=e.subId,t=e.filter;t.on("update",(function(e){return w(r,e)}));var i={type:u,destroy:function(){var e=o(n.mark((function e(){return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h.uninstallFilter(t.idHex);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()};return i},k=function(e){var i=e.subId,a={type:u,destroy:function(){var e=o(n.mark((function e(){return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r.removeListener("sync",a.update);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),update:function(){var e=o(n.mark((function e(r){var o,a,u,s,c;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=r.oldBlock,a=r.newBlock,u=a,s=p(o),e.next=5,f({provider:t,fromBlock:s,toBlock:u});case 5:c=e.sent,c.map(d).forEach((function(e){w(i,e)}));case 8:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}()};return r.on("sync",a.update),a},!v){e.next=4;break}throw new Error("SubscriptionManager - attempting to use after destroying");case 4:u=i.params[0],s=l(16),e.t0=u,e.next="newHeads"===e.t0?9:"logs"===e.t0?11:17;break;case 9:return y=k({subId:s}),e.abrupt("break",18);case 11:return m=i.params[1],e.next=14,h.newLogFilter(m);case 14:return g=e.sent,y=b({subId:s,filter:g}),e.abrupt("break",18);case 17:throw new Error('SubscriptionManager - unsupported subscription type "'.concat(u,'"'));case 18:return c[s]=y,a.result=s,e.abrupt("return");case 21:case"end":return e.stop()}}),e)}))),g.apply(this,arguments)}function k(){return(k=o(n.mark((function e(r,t){var o,i;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!v){e.next=2;break}throw new Error("SubscriptionManager - attempting to use after destroying");case 2:if(o=r.params[0],i=c[o]){e.next=7;break}return t.result=!1,e.abrupt("return");case 7:return delete c[o],e.next=10,i.destroy();case 10:t.result=!0;case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function w(e,r){y.emit("notification",{jsonrpc:"2.0",method:"eth_subscription",params:{subscription:e,result:r}})}}},796:function(e,r,t){var n=t(9),o=t(101),i=t(1973).Mutex,a=t(1040).createAsyncMiddleware,u=t(1039),s=t(1388),c=t(1391),l=t(1392),p=t(757),f=p.intToHex,d=p.hexToInt;function h(e){return v(o(n.mark((function r(){var t,o,i=arguments;return n.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e.apply(void 0,i);case 2:return t=r.sent,o=f(t.id),r.abrupt("return",o);case 5:case"end":return r.stop()}}),r)}))))}function v(e){return a(function(){var r=o(n.mark((function r(t,o){var i;return n.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e.apply(null,t.params);case 2:i=r.sent,o.result=i;case 4:case"end":return r.stop()}}),r)})));return function(e,t){return r.apply(this,arguments)}}())}function y(e,r){var t=[];for(var n in e)t.push(e[n]);return t}e.exports=function(e){var r=e.blockTracker,t=e.provider,a=0,p={},m=new i,g=function(e){var r=e.mutex;return function(e){return function(){var t=o(n.mark((function t(o,i,a,u){return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.acquire();case 2:(0,t.sent)(),e(o,i,a,u);case 5:case"end":return t.stop()}}),t)})));return function(e,r,n,o){return t.apply(this,arguments)}}()}}({mutex:m}),k=u({eth_newFilter:g(h(b)),eth_newBlockFilter:g(h(x)),eth_newPendingTransactionFilter:g(h(E)),eth_uninstallFilter:g(v(j)),eth_getFilterChanges:g(v(C)),eth_getFilterLogs:g(v(A))}),w=function(){var e=o(n.mark((function e(r){var t,i,a;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=r.oldBlock,i=r.newBlock,0!==p.length){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,m.acquire();case 5:return a=e.sent,e.prev=6,e.next=9,Promise.all(y(p).map(function(){var e=o(n.mark((function e(r){return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,r.update({oldBlock:t,newBlock:i});case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),console.error(e.t0);case 8:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(r){return e.apply(this,arguments)}}()));case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(6),console.error(e.t0);case 14:a();case 15:case"end":return e.stop()}}),e,null,[[6,11]])})));return function(r){return e.apply(this,arguments)}}();return k.newLogFilter=b,k.newBlockFilter=x,k.newPendingTransactionFilter=E,k.uninstallFilter=j,k.getFilterChanges=C,k.getFilterLogs=A,k.destroy=function(){!function(){I.apply(this,arguments)}()},k;function b(e){return _.apply(this,arguments)}function _(){return(_=o(n.mark((function e(r){var o;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=new s({provider:t,params:r}),e.next=3,S(o);case 3:return e.sent,e.abrupt("return",o);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function x(){return R.apply(this,arguments)}function R(){return(R=o(n.mark((function e(){var r;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=new c({provider:t}),e.next=3,S(r);case 3:return e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function E(){return B.apply(this,arguments)}function B(){return(B=o(n.mark((function e(){var r;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=new l({provider:t}),e.next=3,S(r);case 3:return e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function C(e){return P.apply(this,arguments)}function P(){return P=o(n.mark((function e(r){var t,o,i;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=d(r),o=p[t]){e.next=4;break}throw new Error('No filter for index "'.concat(t,'"'));case 4:return i=o.getChangesAndClear(),e.abrupt("return",i);case 6:case"end":return e.stop()}}),e)}))),P.apply(this,arguments)}function A(e){return L.apply(this,arguments)}function L(){return L=o(n.mark((function e(r){var t,o;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=d(r),o=p[t]){e.next=4;break}throw new Error('No filter for index "'.concat(t,'"'));case 4:return"log"===o.type?results=o.getAllResults():results=[],e.abrupt("return",results);case 6:case"end":return e.stop()}}),e)}))),L.apply(this,arguments)}function j(e){return O.apply(this,arguments)}function O(){return O=o(n.mark((function e(r){var t,o,i;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=d(r),o=p[t],!(i=Boolean(o))){e.next=6;break}return e.next=6,N(t);case 6:return e.abrupt("return",i);case 7:case"end":return e.stop()}}),e)}))),O.apply(this,arguments)}function S(e){return M.apply(this,arguments)}function M(){return(M=o(n.mark((function e(t){var o,i,u;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=y(p).length,e.next=3,r.getLatestBlock();case 3:return i=e.sent,e.next=6,t.initialize({currentBlock:i});case 6:return a++,p[a]=t,t.id=a,t.idHex=f(a),u=y(p).length,F({prevFilterCount:o,newFilterCount:u}),e.abrupt("return",a);case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function N(e){return T.apply(this,arguments)}function T(){return T=o(n.mark((function e(r){var t,o;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=y(p).length,delete p[r],o=y(p).length,F({prevFilterCount:t,newFilterCount:o});case 4:case"end":return e.stop()}}),e)}))),T.apply(this,arguments)}function I(){return(I=o(n.mark((function e(){var r;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=y(p).length,p={},F({prevFilterCount:r,newFilterCount:0});case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function F(e){var t=e.prevFilterCount,n=e.newFilterCount;0===t&&n>0?r.on("sync",w):t>0&&0===n&&r.removeListener("sync",w)}}},878:function(e,r,t){"use strict";var n=t(38),o=t(39),i=t(99),a=t(100),u=t(641);Object.defineProperty(r,"__esModule",{value:!0}),r.EthereumProviderError=r.EthereumRpcError=void 0;var s=t(698),c=function(e){i(t,e);var r=a(t);function t(e,o,i){var a;if(n(this,t),!Number.isInteger(e))throw new Error('"code" must be an integer.');if(!o||"string"!==typeof o)throw new Error('"message" must be a nonempty string.');return(a=r.call(this,o)).code=e,void 0!==i&&(a.data=i),a}return o(t,[{key:"serialize",value:function(){var e={code:this.code,message:this.message};return void 0!==this.data&&(e.data=this.data),this.stack&&(e.stack=this.stack),e}},{key:"toString",value:function(){return s.default(this.serialize(),p,2)}}]),t}(u(Error));r.EthereumRpcError=c;var l=function(e){i(t,e);var r=a(t);function t(e,o,i){if(n(this,t),!function(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');return r.call(this,e,o,i)}return t}(c);function p(e,r){if("[Circular]"!==r)return r}r.EthereumProviderError=l},879:function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.errorValues=r.errorCodes=void 0,r.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}},r.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}}},880:function(e,r,t){var n=t(9),o=t(101),i=t(38),a=t(39),u=t(99),s=t(100),c=function(e){"use strict";u(t,e);var r=s(t);function t(){var e;return i(this,t),(e=r.call(this)).updates=[],e}return a(t,[{key:"initialize",value:function(){var e=o(n.mark((function e(){return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"update",value:function(){var e=o(n.mark((function e(){return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("BaseFilter - no update method specified");case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"addResults",value:function(e){var r=this;this.updates=this.updates.concat(e),e.forEach((function(e){return r.emit("update",e)}))}},{key:"addInitialResults",value:function(e){}},{key:"getChangesAndClear",value:function(){var e=this.updates;return this.updates=[],e}}]),t}(t(723).default);e.exports=c},881:function(e,r,t){var n=t(9),o=t(101);function i(){return(i=o(n.mark((function e(r){var t,o,i,c,l,p,f;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.provider,o=r.fromBlock,i=r.toBlock,o||(o=i),c=a(o),l=a(i),p=Array(l-c+1).fill().map((function(e,r){return c+r})).map(u),e.next=8,Promise.all(p.map((function(e){return s(t,"eth_getBlockByNumber",[e,!1])})));case 8:return f=e.sent,e.abrupt("return",f);case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function a(e){return void 0===e||null===e?e:Number.parseInt(e,16)}function u(e){return void 0===e||null===e?e:"0x"+e.toString(16)}function s(e,r,t){return new Promise((function(n,o){e.sendAsync({id:1,jsonrpc:"2.0",method:r,params:t},(function(e,r){if(e)return o(e);n(r.result)}))}))}e.exports=function(e){return i.apply(this,arguments)}}}]); \ No newline at end of file diff --git a/WebGLTemplates/Web3GL-2019/static/js/1.44f8fff7.chunk.js b/WebGLTemplates/Web3GL-2019/static/js/1.44f8fff7.chunk.js new file mode 100644 index 000000000..ca866d454 --- /dev/null +++ b/WebGLTemplates/Web3GL-2019/static/js/1.44f8fff7.chunk.js @@ -0,0 +1 @@ +(this.webpackJsonpweb3gl=this.webpackJsonpweb3gl||[]).push([[1],{1366:function(e,r,t){(function(r){var n=t(1367),i=t(6),o=function(){};function f(e){return e.startsWith("int[")?"int256"+e.slice(3):"int"===e?"int256":e.startsWith("uint[")?"uint256"+e.slice(4):"uint"===e?"uint256":e.startsWith("fixed[")?"fixed128x128"+e.slice(5):"fixed"===e?"fixed128x128":e.startsWith("ufixed[")?"ufixed128x128"+e.slice(6):"ufixed"===e?"ufixed128x128":e}function a(e){return parseInt(/^\D+(\d+)$/.exec(e)[1],10)}function u(e){var r=/^\D+(\d+)x(\d+)$/.exec(e);return[parseInt(r[1],10),parseInt(r[2],10)]}function s(e){var r=e.match(/(.*)\[(.*?)\]$/);return r?""===r[2]?"dynamic":parseInt(r[2],10):null}function c(e){var r=typeof e;if("string"===r)return n.isHexPrefixed(e)?new i(n.stripHexPrefix(e),16):new i(e,10);if("number"===r)return new i(e);if(e.toArray)return e;throw new Error("Argument is not a number")}function l(e){var r=/^(\w+)\((.*)\)$/.exec(e);if(3!==r.length)throw new Error("Invalid method signature");var t=/^(.+)\):\((.+)$/.exec(r[2]);if(null!==t&&3===t.length)return{method:r[1],args:t[1].split(","),retargs:t[2].split(",")};var n=r[2].split(",");return 1===n.length&&""===n[0]&&(n=[]),{method:r[1],args:n}}function d(e,t){var o,f,l,h;if("address"===e)return d("uint160",c(t));if("bool"===e)return d("uint8",t?1:0);if("string"===e)return d("bytes",r.from(t,"utf8"));if(g(e)){if("undefined"===typeof t.length)throw new Error("Not an array?");if("dynamic"!==(o=s(e))&&0!==o&&t.length>o)throw new Error("Elements exceed array size: "+o);for(h in l=[],e=e.slice(0,e.lastIndexOf("[")),"string"===typeof t&&(t=JSON.parse(t)),t)l.push(d(e,t[h]));if("dynamic"===o){var p=d("uint256",t.length);l.unshift(p)}return r.concat(l)}if("bytes"===e)return t=r.from(t),l=r.concat([d("uint256",t.length),t]),t.length%32!==0&&(l=r.concat([l,n.zeros(32-t.length%32)])),l;if(e.startsWith("bytes")){if((o=a(e))<1||o>32)throw new Error("Invalid bytes width: "+o);return n.setLengthRight(t,32)}if(e.startsWith("uint")){if((o=a(e))%8||o<8||o>256)throw new Error("Invalid uint width: "+o);if((f=c(t)).bitLength()>o)throw new Error("Supplied uint exceeds width: "+o+" vs "+f.bitLength());if(f<0)throw new Error("Supplied uint is negative");return f.toArrayLike(r,"be",32)}if(e.startsWith("int")){if((o=a(e))%8||o<8||o>256)throw new Error("Invalid int width: "+o);if((f=c(t)).bitLength()>o)throw new Error("Supplied int exceeds width: "+o+" vs "+f.bitLength());return f.toTwos(256).toArrayLike(r,"be",32)}if(e.startsWith("ufixed")){if(o=u(e),(f=c(t))<0)throw new Error("Supplied ufixed is negative");return d("uint256",f.mul(new i(2).pow(new i(o[1]))))}if(e.startsWith("fixed"))return o=u(e),d("int256",c(t).mul(new i(2).pow(new i(o[1]))));throw new Error("Unsupported or invalid type: "+e)}function h(e,t,n){var o,f,a,u;if("string"===typeof e&&(e=p(e)),"address"===e.name)return h(e.rawType,t,n).toArrayLike(r,"be",20).toString("hex");if("bool"===e.name)return h(e.rawType,t,n).toString()===new i(1).toString();if("string"===e.name){var s=h(e.rawType,t,n);return r.from(s,"utf8").toString()}if(e.isArray){for(a=[],o=e.size,"dynamic"===e.size&&(n=h("uint256",t,n).toNumber(),o=h("uint256",t,n).toNumber(),n+=32),u=0;ue.size)throw new Error("Decoded int exceeds width: "+e.size+" vs "+f.bitLength());return f}if(e.name.startsWith("int")){if((f=new i(t.slice(n,n+32),16,"be").fromTwos(256)).bitLength()>e.size)throw new Error("Decoded uint exceeds width: "+e.size+" vs "+f.bitLength());return f}if(e.name.startsWith("ufixed")){if(o=new i(2).pow(new i(e.size[1])),!(f=h("uint256",t,n)).mod(o).isZero())throw new Error("Decimals not supported yet");return f.div(o)}if(e.name.startsWith("fixed")){if(o=new i(2).pow(new i(e.size[1])),!(f=h("int256",t,n)).mod(o).isZero())throw new Error("Decimals not supported yet");return f.div(o)}throw new Error("Unsupported or invalid type: "+e.name)}function p(e){var r,t,n;if(g(e)){r=s(e);var i=e.slice(0,e.lastIndexOf("["));return i=p(i),t={isArray:!0,name:e,size:r,memoryUsage:"dynamic"===r?32:i.memoryUsage*r,subArray:i}}switch(e){case"address":n="uint160";break;case"bool":n="uint8";break;case"string":n="bytes"}if(t={rawType:n,name:e,memoryUsage:32},e.startsWith("bytes")&&"bytes"!==e||e.startsWith("uint")||e.startsWith("int")?t.size=a(e):(e.startsWith("ufixed")||e.startsWith("fixed"))&&(t.size=u(e)),e.startsWith("bytes")&&"bytes"!==e&&(t.size<1||t.size>32))throw new Error("Invalid bytes width: "+t.size);if((e.startsWith("uint")||e.startsWith("int"))&&(t.size%8||t.size<8||t.size>256))throw new Error("Invalid int/uint width: "+t.size);return t}function y(e){return"string"===e||"bytes"===e||"dynamic"===s(e)}function g(e){return e.lastIndexOf("]")===e.length-1}function v(e,r){return e.startsWith("address")||e.startsWith("bytes")?"0x"+r.toString("hex"):r.toString()}o.eventID=function(e,t){var i=e+"("+t.map(f).join(",")+")";return n.keccak256(r.from(i))},o.methodID=function(e,r){return o.eventID(e,r).slice(0,4)},o.rawEncode=function(e,t){var n=[],i=[],o=0;e.forEach((function(e){if(g(e)){var r=s(e);o+="dynamic"!==r?32*r:32}else o+=32}));for(var a=0;ad)throw new Error("Elements exceed array size: "+d)}var h=t.map((function(e){return o.solidityHexValue(l,e,256)}));return r.concat(h)}if("bytes"===e)return t;if("string"===e)return r.from(t,"utf8");if("bool"===e){i=i||8;var p=Array(i/4).join("0");return r.from(t?p+"1":p+"0","hex")}if("address"===e){var y=20;return i&&(y=i/8),n.setLengthLeft(t,y)}if(e.startsWith("bytes")){if((f=a(e))<1||f>32)throw new Error("Invalid bytes width: "+f);return n.setLengthRight(t,f)}if(e.startsWith("uint")){if((f=a(e))%8||f<8||f>256)throw new Error("Invalid uint width: "+f);if((u=c(t)).bitLength()>f)throw new Error("Supplied uint exceeds width: "+f+" vs "+u.bitLength());return i=i||f,u.toArrayLike(r,"be",i/8)}if(e.startsWith("int")){if((f=a(e))%8||f<8||f>256)throw new Error("Invalid int width: "+f);if((u=c(t)).bitLength()>f)throw new Error("Supplied int exceeds width: "+f+" vs "+u.bitLength());return i=i||f,u.toTwos(f).toArrayLike(r,"be",i/8)}throw new Error("Unsupported or invalid type: "+e)},o.solidityPack=function(e,t){if(e.length!==t.length)throw new Error("Number of types are not matching the values");for(var n=[],i=0;i="0"&&r<="9");)o+=e[f]-"0",f++;n=f-1,t.push(o)}else if("i"===i)t.push("int256");else{if("a"!==i)throw new Error("Unsupported or invalid type: "+i);t.push("int256[]")}}return t},o.toSerpent=function(e){for(var r=[],t=0;t=0)throw new Error("couldn't export to DER format");var a=i.g.mul(t);return f(a.getX(),a.getY(),r)},r.privateKeyModInverse=function(r){var t=new n(r);if(t.ucmp(o.n)>=0||t.isZero())throw new Error("private key range is invalid");return t.invm(o.n).toArrayLike(e,"be",32)},r.signatureImport=function(r){var t=new n(r.r);t.ucmp(o.n)>=0&&(t=new n(0));var i=new n(r.s);return i.ucmp(o.n)>=0&&(i=new n(0)),e.concat([t.toArrayLike(e,"be",32),i.toArrayLike(e,"be",32)])},r.ecdhUnsafe=function(e,r,t){void 0===t&&(t=!0);var a=i.keyFromPublic(e),u=new n(r);if(u.ucmp(o.n)>=0||u.isZero())throw new Error("scalar was invalid (zero or overflow)");var s=a.pub.mul(u);return f(s.getX(),s.getY(),t)};var f=function(r,t,n){var i;return n?((i=e.alloc(33))[0]=t.isOdd()?3:2,r.toArrayLike(e,"be",32).copy(i,1)):((i=e.alloc(65))[0]=4,r.toArrayLike(e,"be",32).copy(i,1),t.toArrayLike(e,"be",32).copy(i,33)),i}}).call(this,t(3).Buffer)},1369:function(e,r,t){"use strict";(function(e){Object.defineProperty(r,"__esModule",{value:!0});var t=e.from([48,129,211,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,133,48,129,130,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,33,2,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,36,3,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),n=e.from([48,130,1,19,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,165,48,129,162,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,65,4,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,72,58,218,119,38,163,196,101,93,164,251,252,14,17,8,168,253,23,180,72,166,133,84,25,156,71,208,143,251,16,212,184,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,68,3,66,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);r.privateKeyExport=function(r,i,o){void 0===o&&(o=!0);var f=e.from(o?t:n);return r.copy(f,o?8:9),i.copy(f,o?181:214),f},r.privateKeyImport=function(e){var r=e.length,t=0;if(r2)return null;if(r<(t+=1)+n)return null;var i=e[t+n-1]|(n>1?e[t+n-2]<<8:0);return r<(t+=n)+i||r32||ri)return null;if(2!==r[o++])return null;var a=r[o++];if(128&a){if(o+(f=a-128)>i)return null;for(;f>0&&0===r[o];o+=1,f-=1);for(a=0;f>0;o+=1,f-=1)a=(a<<8)+r[o]}if(a>i-o)return null;var u=o;if(o+=a,2!==r[o++])return null;var s=r[o++];if(128&s){if(o+(f=s-128)>i)return null;for(;f>0&&0===r[o];o+=1,f-=1);for(s=0;f>0;o+=1,f-=1)s=(s<<8)+r[o]}if(s>i-o)return null;var c=o;for(o+=s;a>0&&0===r[u];a-=1,u+=1);if(a>32)return null;var l=r.slice(u,u+a);for(l.copy(t,32-l.length);s>0&&0===r[c];s-=1,c+=1);if(s>32)return null;var d=r.slice(c,c+s);return d.copy(n,32-d.length),{r:t,s:n}}}).call(this,t(3).Buffer)},1370:function(e,r,t){"use strict";(function(e){Object.defineProperty(r,"__esModule",{value:!0}),r.KECCAK256_RLP=r.KECCAK256_RLP_S=r.KECCAK256_RLP_ARRAY=r.KECCAK256_RLP_ARRAY_S=r.KECCAK256_NULL=r.KECCAK256_NULL_S=r.TWO_POW256=r.MAX_INTEGER=void 0;var n=t(6);r.MAX_INTEGER=new n("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),r.TWO_POW256=new n("10000000000000000000000000000000000000000000000000000000000000000",16),r.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",r.KECCAK256_NULL=e.from(r.KECCAK256_NULL_S,"hex"),r.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",r.KECCAK256_RLP_ARRAY=e.from(r.KECCAK256_RLP_ARRAY_S,"hex"),r.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",r.KECCAK256_RLP=e.from(r.KECCAK256_RLP_S,"hex")}).call(this,t(3).Buffer)},1371:function(e,r,t){"use strict";(function(e){Object.defineProperty(r,"__esModule",{value:!0}),r.importPublic=r.privateToPublic=r.privateToAddress=r.publicToAddress=r.pubToAddress=r.isValidPublic=r.isValidPrivate=r.isPrecompiled=r.generateAddress2=r.generateAddress=r.isValidChecksumAddress=r.toChecksumAddress=r.isZeroAddress=r.isValidAddress=r.zeroAddress=void 0;var n=t(21),i=t(636),o=t(872),f=t(6),a=t(756),u=t(873);r.zeroAddress=function(){var e=a.zeros(20);return a.bufferToHex(e)},r.isValidAddress=function(e){return/^0x[0-9a-fA-F]{40}$/.test(e)},r.isZeroAddress=function(e){return r.zeroAddress()===a.addHexPrefix(e)},r.toChecksumAddress=function(e,r){e=i.stripHexPrefix(e).toLowerCase();for(var t=void 0!==r?r.toString()+"0x":"",n=u.keccak(t+e).toString("hex"),o="0x",f=0;f=8?o+=e[f].toUpperCase():o+=e[f];return o},r.isValidChecksumAddress=function(e,t){return r.isValidAddress(e)&&r.toChecksumAddress(e,t)===e},r.generateAddress=function(r,t){r=a.toBuffer(r);var n=new f(t);return n.isZero()?u.rlphash([r,null]).slice(-20):u.rlphash([r,e.from(n.toArray())]).slice(-20)},r.generateAddress2=function(r,t,i){var o=a.toBuffer(r),f=a.toBuffer(t),s=a.toBuffer(i);return n(20===o.length),n(32===f.length),u.keccak256(e.concat([e.from("ff","hex"),o,f,u.keccak256(s)])).slice(-20)},r.isPrecompiled=function(e){var r=a.unpad(e);return 1===r.length&&r[0]>=1&&r[0]<=8},r.isValidPrivate=function(e){return o.privateKeyVerify(e)},r.isValidPublic=function(r,t){return void 0===t&&(t=!1),64===r.length?o.publicKeyVerify(e.concat([e.from([4]),r])):!!t&&o.publicKeyVerify(r)},r.pubToAddress=function(e,r){return void 0===r&&(r=!1),e=a.toBuffer(e),r&&64!==e.length&&(e=o.publicKeyConvert(e,!1).slice(1)),n(64===e.length),u.keccak(e).slice(-20)},r.publicToAddress=r.pubToAddress,r.privateToAddress=function(e){return r.publicToAddress(r.privateToPublic(e))},r.privateToPublic=function(e){return e=a.toBuffer(e),o.publicKeyCreate(e,!1).slice(1)},r.importPublic=function(e){return 64!==(e=a.toBuffer(e)).length&&(e=o.publicKeyConvert(e,!1).slice(1)),e}}).call(this,t(3).Buffer)},1372:function(e,r,t){"use strict";(function(e){Object.defineProperty(r,"__esModule",{value:!0}),r.hashPersonalMessage=r.isValidSignature=r.fromRpcSig=r.toRpcSig=r.ecrecover=r.ecsign=void 0;var n=t(872),i=t(6),o=t(756),f=t(873);function a(e,r){return r?e-(2*r+35):e-27}function u(e){return 0===e||1===e}r.ecsign=function(e,r,t){var i=n.sign(e,r),o=i.recovery;return{r:i.signature.slice(0,32),s:i.signature.slice(32,64),v:t?o+(2*t+35):o+27}},r.ecrecover=function(r,t,i,f,s){var c=e.concat([o.setLength(i,32),o.setLength(f,32)],64),l=a(t,s);if(!u(l))throw new Error("Invalid signature v value");var d=n.recover(r,c,l);return n.publicKeyConvert(d,!1).slice(1)},r.toRpcSig=function(r,t,n,i){if(!u(a(r,i)))throw new Error("Invalid signature v value");return o.bufferToHex(e.concat([o.setLengthLeft(t,32),o.setLengthLeft(n,32),o.toBuffer(r)]))},r.fromRpcSig=function(e){var r=o.toBuffer(e);if(65!==r.length)throw new Error("Invalid signature length");var t=r[64];return t<27&&(t+=27),{v:t,r:r.slice(0,32),s:r.slice(32,64)}},r.isValidSignature=function(e,r,t,n,o){void 0===n&&(n=!0);var f=new i("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),s=new i("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);if(32!==r.length||32!==t.length)return!1;if(!u(a(e,o)))return!1;var c=new i(r),l=new i(t);return!(c.isZero()||c.gt(s)||l.isZero()||l.gt(s))&&(!n||1!==l.cmp(f))},r.hashPersonalMessage=function(r){var t=e.from("\x19Ethereum Signed Message:\n"+r.length.toString(),"utf-8");return f.keccak(e.concat([t,r]))}}).call(this,t(3).Buffer)},1373:function(e,r,t){"use strict";(function(e){Object.defineProperty(r,"__esModule",{value:!0}),r.defineProperties=void 0;var n=t(21),i=t(636),o=t(17),f=t(756);r.defineProperties=function(r,t,a){if(r.raw=[],r._fields=[],r.toJSON=function(e){if(void 0===e&&(e=!1),e){var t={};return r._fields.forEach((function(e){t[e]="0x"+r[e].toString("hex")})),t}return f.baToJSON(r.raw)},r.serialize=function(){return o.encode(r.raw)},t.forEach((function(t,i){function o(){return r.raw[i]}function a(o){"00"!==(o=f.toBuffer(o)).toString("hex")||t.allowZero||(o=e.allocUnsafe(0)),t.allowLess&&t.length?(o=f.stripZeros(o),n(t.length>=o.length,"The field "+t.name+" must not have more "+t.length+" bytes")):t.allowZero&&0===o.length||!t.length||n(t.length===o.length,"The field "+t.name+" must have byte length of "+t.length),r.raw[i]=o}r._fields.push(t.name),Object.defineProperty(r,t.name,{enumerable:!0,configurable:!0,get:o,set:a}),t.default&&(r[t.name]=t.default),t.alias&&Object.defineProperty(r,t.alias,{enumerable:!1,configurable:!0,set:a,get:o})})),a)if("string"===typeof a&&(a=e.from(i.stripHexPrefix(a),"hex")),e.isBuffer(a)&&(a=o.decode(a)),Array.isArray(a)){if(a.length>r._fields.length)throw new Error("wrong number of fields in data");a.forEach((function(e,t){r[r._fields[t]]=f.toBuffer(e)}))}else{if("object"!==typeof a)throw new Error("invalid data");var u=Object.keys(a);t.forEach((function(e){-1!==u.indexOf(e.name)&&(r[e.name]=a[e.name]),-1!==u.indexOf(e.alias)&&(r[e.alias]=a[e.alias])}))}}}).call(this,t(3).Buffer)},636:function(e,r,t){"use strict";(function(r){var n=t(260),i=t(259);function o(e){var r=e;if("string"!==typeof r)throw new Error("[ethjs-util] while padding to even, value must be string, is currently "+typeof r+", while padToEven.");return r.length%2&&(r="0"+r),r}function f(e){return"0x"+e.toString(16)}e.exports={arrayContainsArray:function(e,r,t){if(!0!==Array.isArray(e))throw new Error("[ethjs-util] method arrayContainsArray requires input 'superset' to be an array got type '"+typeof e+"'");if(!0!==Array.isArray(r))throw new Error("[ethjs-util] method arrayContainsArray requires input 'subset' to be an array got type '"+typeof r+"'");return r[Boolean(t)?"some":"every"]((function(r){return e.indexOf(r)>=0}))},intToBuffer:function(e){var t=f(e);return new r(o(t.slice(2)),"hex")},getBinarySize:function(e){if("string"!==typeof e)throw new Error("[ethjs-util] while getting binary size, method getBinarySize requires input 'str' to be type String, got '"+typeof e+"'.");return r.byteLength(e,"utf8")},isHexPrefixed:n,stripHexPrefix:i,padToEven:o,intToHex:f,fromAscii:function(e){for(var r="",t=0;t0&&"0"===r.toString();)r=(e=e.slice(1))[0];return e},r.stripZeros=r.unpad,r.toBuffer=function(r){if(!e.isBuffer(r))if(Array.isArray(r))r=e.from(r);else if("string"===typeof r){if(!n.isHexString(r))throw new Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: "+r);r=e.from(n.padToEven(n.stripHexPrefix(r)),"hex")}else if("number"===typeof r)r=n.intToBuffer(r);else if(null===r||void 0===r)r=e.allocUnsafe(0);else if(i.isBN(r))r=r.toArrayLike(e);else{if(!r.toArray)throw new Error("invalid type");r=e.from(r.toArray())}return r},r.bufferToInt=function(e){return new i(r.toBuffer(e)).toNumber()},r.bufferToHex=function(e){return"0x"+(e=r.toBuffer(e)).toString("hex")},r.fromSigned=function(e){return new i(e).fromTwos(256)},r.toUnsigned=function(r){return e.from(r.toTwos(256).toArray())},r.addHexPrefix=function(e){return"string"!==typeof e||n.isHexPrefixed(e)?e:"0x"+e},r.baToJSON=function(t){if(e.isBuffer(t))return"0x"+t.toString("hex");if(t instanceof Array){for(var n=[],i=0;io)throw new Error("Elements exceed array size: "+o);for(h in l=[],e=e.slice(0,e.lastIndexOf("[")),"string"===typeof t&&(t=JSON.parse(t)),t)l.push(d(e,t[h]));if("dynamic"===o){var p=d("uint256",t.length);l.unshift(p)}return r.concat(l)}if("bytes"===e)return t=r.from(t),l=r.concat([d("uint256",t.length),t]),t.length%32!==0&&(l=r.concat([l,n.zeros(32-t.length%32)])),l;if(e.startsWith("bytes")){if((o=a(e))<1||o>32)throw new Error("Invalid bytes width: "+o);return n.setLengthRight(t,32)}if(e.startsWith("uint")){if((o=a(e))%8||o<8||o>256)throw new Error("Invalid uint width: "+o);if((f=c(t)).bitLength()>o)throw new Error("Supplied uint exceeds width: "+o+" vs "+f.bitLength());if(f<0)throw new Error("Supplied uint is negative");return f.toArrayLike(r,"be",32)}if(e.startsWith("int")){if((o=a(e))%8||o<8||o>256)throw new Error("Invalid int width: "+o);if((f=c(t)).bitLength()>o)throw new Error("Supplied int exceeds width: "+o+" vs "+f.bitLength());return f.toTwos(256).toArrayLike(r,"be",32)}if(e.startsWith("ufixed")){if(o=u(e),(f=c(t))<0)throw new Error("Supplied ufixed is negative");return d("uint256",f.mul(new i(2).pow(new i(o[1]))))}if(e.startsWith("fixed"))return o=u(e),d("int256",c(t).mul(new i(2).pow(new i(o[1]))));throw new Error("Unsupported or invalid type: "+e)}function h(e,t,n){var o,f,a,u;if("string"===typeof e&&(e=p(e)),"address"===e.name)return h(e.rawType,t,n).toArrayLike(r,"be",20).toString("hex");if("bool"===e.name)return h(e.rawType,t,n).toString()===new i(1).toString();if("string"===e.name){var s=h(e.rawType,t,n);return r.from(s,"utf8").toString()}if(e.isArray){for(a=[],o=e.size,"dynamic"===e.size&&(n=h("uint256",t,n).toNumber(),o=h("uint256",t,n).toNumber(),n+=32),u=0;ue.size)throw new Error("Decoded int exceeds width: "+e.size+" vs "+f.bitLength());return f}if(e.name.startsWith("int")){if((f=new i(t.slice(n,n+32),16,"be").fromTwos(256)).bitLength()>e.size)throw new Error("Decoded uint exceeds width: "+e.size+" vs "+f.bitLength());return f}if(e.name.startsWith("ufixed")){if(o=new i(2).pow(new i(e.size[1])),!(f=h("uint256",t,n)).mod(o).isZero())throw new Error("Decimals not supported yet");return f.div(o)}if(e.name.startsWith("fixed")){if(o=new i(2).pow(new i(e.size[1])),!(f=h("int256",t,n)).mod(o).isZero())throw new Error("Decimals not supported yet");return f.div(o)}throw new Error("Unsupported or invalid type: "+e.name)}function p(e){var r,t,n;if(g(e)){r=s(e);var i=e.slice(0,e.lastIndexOf("["));return i=p(i),t={isArray:!0,name:e,size:r,memoryUsage:"dynamic"===r?32:i.memoryUsage*r,subArray:i}}switch(e){case"address":n="uint160";break;case"bool":n="uint8";break;case"string":n="bytes"}if(t={rawType:n,name:e,memoryUsage:32},e.startsWith("bytes")&&"bytes"!==e||e.startsWith("uint")||e.startsWith("int")?t.size=a(e):(e.startsWith("ufixed")||e.startsWith("fixed"))&&(t.size=u(e)),e.startsWith("bytes")&&"bytes"!==e&&(t.size<1||t.size>32))throw new Error("Invalid bytes width: "+t.size);if((e.startsWith("uint")||e.startsWith("int"))&&(t.size%8||t.size<8||t.size>256))throw new Error("Invalid int/uint width: "+t.size);return t}function v(e){return"string"===e||"bytes"===e||"dynamic"===s(e)}function g(e){return e.lastIndexOf("]")===e.length-1}function y(e,r){return e.startsWith("address")||e.startsWith("bytes")?"0x"+r.toString("hex"):r.toString()}o.eventID=function(e,t){var i=e+"("+t.map(f).join(",")+")";return n.keccak256(r.from(i))},o.methodID=function(e,r){return o.eventID(e,r).slice(0,4)},o.rawEncode=function(e,t){var n=[],i=[],o=0;e.forEach((function(e){if(g(e)){var r=s(e);o+="dynamic"!==r?32*r:32}else o+=32}));for(var a=0;ad)throw new Error("Elements exceed array size: "+d)}var h=t.map((function(e){return o.solidityHexValue(l,e,256)}));return r.concat(h)}if("bytes"===e)return t;if("string"===e)return r.from(t,"utf8");if("bool"===e){i=i||8;var p=Array(i/4).join("0");return r.from(t?p+"1":p+"0","hex")}if("address"===e){var v=20;return i&&(v=i/8),n.setLengthLeft(t,v)}if(e.startsWith("bytes")){if((f=a(e))<1||f>32)throw new Error("Invalid bytes width: "+f);return n.setLengthRight(t,f)}if(e.startsWith("uint")){if((f=a(e))%8||f<8||f>256)throw new Error("Invalid uint width: "+f);if((u=c(t)).bitLength()>f)throw new Error("Supplied uint exceeds width: "+f+" vs "+u.bitLength());return i=i||f,u.toArrayLike(r,"be",i/8)}if(e.startsWith("int")){if((f=a(e))%8||f<8||f>256)throw new Error("Invalid int width: "+f);if((u=c(t)).bitLength()>f)throw new Error("Supplied int exceeds width: "+f+" vs "+u.bitLength());return i=i||f,u.toTwos(f).toArrayLike(r,"be",i/8)}throw new Error("Unsupported or invalid type: "+e)},o.solidityPack=function(e,t){if(e.length!==t.length)throw new Error("Number of types are not matching the values");for(var n=[],i=0;i="0"&&r<="9");)o+=e[f]-"0",f++;n=f-1,t.push(o)}else if("i"===i)t.push("int256");else{if("a"!==i)throw new Error("Unsupported or invalid type: "+i);t.push("int256[]")}}return t},o.toSerpent=function(e){for(var r=[],t=0;t=0)throw new Error("couldn't export to DER format");var a=i.g.mul(t);return f(a.getX(),a.getY(),r)},r.privateKeyModInverse=function(r){var t=new n(r);if(t.ucmp(o.n)>=0||t.isZero())throw new Error("private key range is invalid");return t.invm(o.n).toArrayLike(e,"be",32)},r.signatureImport=function(r){var t=new n(r.r);t.ucmp(o.n)>=0&&(t=new n(0));var i=new n(r.s);return i.ucmp(o.n)>=0&&(i=new n(0)),e.concat([t.toArrayLike(e,"be",32),i.toArrayLike(e,"be",32)])},r.ecdhUnsafe=function(e,r,t){void 0===t&&(t=!0);var a=i.keyFromPublic(e),u=new n(r);if(u.ucmp(o.n)>=0||u.isZero())throw new Error("scalar was invalid (zero or overflow)");var s=a.pub.mul(u);return f(s.getX(),s.getY(),t)};var f=function(r,t,n){var i;return n?((i=e.alloc(33))[0]=t.isOdd()?3:2,r.toArrayLike(e,"be",32).copy(i,1)):((i=e.alloc(65))[0]=4,r.toArrayLike(e,"be",32).copy(i,1),t.toArrayLike(e,"be",32).copy(i,33)),i}}).call(this,t(8).Buffer)},1211:function(e,r,t){"use strict";(function(e){Object.defineProperty(r,"__esModule",{value:!0});var t=e.from([48,129,211,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,133,48,129,130,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,33,2,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,36,3,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),n=e.from([48,130,1,19,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,165,48,129,162,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,65,4,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,72,58,218,119,38,163,196,101,93,164,251,252,14,17,8,168,253,23,180,72,166,133,84,25,156,71,208,143,251,16,212,184,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,68,3,66,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);r.privateKeyExport=function(r,i,o){void 0===o&&(o=!0);var f=e.from(o?t:n);return r.copy(f,o?8:9),i.copy(f,o?181:214),f},r.privateKeyImport=function(e){var r=e.length,t=0;if(r2)return null;if(r<(t+=1)+n)return null;var i=e[t+n-1]|(n>1?e[t+n-2]<<8:0);return r<(t+=n)+i||r32||ri)return null;if(2!==r[o++])return null;var a=r[o++];if(128&a){if(o+(f=a-128)>i)return null;for(;f>0&&0===r[o];o+=1,f-=1);for(a=0;f>0;o+=1,f-=1)a=(a<<8)+r[o]}if(a>i-o)return null;var u=o;if(o+=a,2!==r[o++])return null;var s=r[o++];if(128&s){if(o+(f=s-128)>i)return null;for(;f>0&&0===r[o];o+=1,f-=1);for(s=0;f>0;o+=1,f-=1)s=(s<<8)+r[o]}if(s>i-o)return null;var c=o;for(o+=s;a>0&&0===r[u];a-=1,u+=1);if(a>32)return null;var l=r.slice(u,u+a);for(l.copy(t,32-l.length);s>0&&0===r[c];s-=1,c+=1);if(s>32)return null;var d=r.slice(c,c+s);return d.copy(n,32-d.length),{r:t,s:n}}}).call(this,t(8).Buffer)},1212:function(e,r,t){"use strict";(function(e){Object.defineProperty(r,"__esModule",{value:!0}),r.KECCAK256_RLP=r.KECCAK256_RLP_S=r.KECCAK256_RLP_ARRAY=r.KECCAK256_RLP_ARRAY_S=r.KECCAK256_NULL=r.KECCAK256_NULL_S=r.TWO_POW256=r.MAX_INTEGER=void 0;var n=t(13);r.MAX_INTEGER=new n("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),r.TWO_POW256=new n("10000000000000000000000000000000000000000000000000000000000000000",16),r.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",r.KECCAK256_NULL=e.from(r.KECCAK256_NULL_S,"hex"),r.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",r.KECCAK256_RLP_ARRAY=e.from(r.KECCAK256_RLP_ARRAY_S,"hex"),r.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",r.KECCAK256_RLP=e.from(r.KECCAK256_RLP_S,"hex")}).call(this,t(8).Buffer)},1213:function(e,r,t){"use strict";(function(e){Object.defineProperty(r,"__esModule",{value:!0}),r.importPublic=r.privateToPublic=r.privateToAddress=r.publicToAddress=r.pubToAddress=r.isValidPublic=r.isValidPrivate=r.isPrecompiled=r.generateAddress2=r.generateAddress=r.isValidChecksumAddress=r.toChecksumAddress=r.isZeroAddress=r.isValidAddress=r.zeroAddress=void 0;var n=t(135),i=t(61),o=t(799),f=t(13),a=t(694),u=t(800);r.zeroAddress=function(){var e=a.zeros(20);return a.bufferToHex(e)},r.isValidAddress=function(e){return/^0x[0-9a-fA-F]{40}$/.test(e)},r.isZeroAddress=function(e){return r.zeroAddress()===a.addHexPrefix(e)},r.toChecksumAddress=function(e,r){e=i.stripHexPrefix(e).toLowerCase();for(var t=void 0!==r?r.toString()+"0x":"",n=u.keccak(t+e).toString("hex"),o="0x",f=0;f=8?o+=e[f].toUpperCase():o+=e[f];return o},r.isValidChecksumAddress=function(e,t){return r.isValidAddress(e)&&r.toChecksumAddress(e,t)===e},r.generateAddress=function(r,t){r=a.toBuffer(r);var n=new f(t);return n.isZero()?u.rlphash([r,null]).slice(-20):u.rlphash([r,e.from(n.toArray())]).slice(-20)},r.generateAddress2=function(r,t,i){var o=a.toBuffer(r),f=a.toBuffer(t),s=a.toBuffer(i);return n(20===o.length),n(32===f.length),u.keccak256(e.concat([e.from("ff","hex"),o,f,u.keccak256(s)])).slice(-20)},r.isPrecompiled=function(e){var r=a.unpad(e);return 1===r.length&&r[0]>=1&&r[0]<=8},r.isValidPrivate=function(e){return o.privateKeyVerify(e)},r.isValidPublic=function(r,t){return void 0===t&&(t=!1),64===r.length?o.publicKeyVerify(e.concat([e.from([4]),r])):!!t&&o.publicKeyVerify(r)},r.pubToAddress=function(e,r){return void 0===r&&(r=!1),e=a.toBuffer(e),r&&64!==e.length&&(e=o.publicKeyConvert(e,!1).slice(1)),n(64===e.length),u.keccak(e).slice(-20)},r.publicToAddress=r.pubToAddress,r.privateToAddress=function(e){return r.publicToAddress(r.privateToPublic(e))},r.privateToPublic=function(e){return e=a.toBuffer(e),o.publicKeyCreate(e,!1).slice(1)},r.importPublic=function(e){return 64!==(e=a.toBuffer(e)).length&&(e=o.publicKeyConvert(e,!1).slice(1)),e}}).call(this,t(8).Buffer)},1214:function(e,r,t){"use strict";(function(e){Object.defineProperty(r,"__esModule",{value:!0}),r.hashPersonalMessage=r.isValidSignature=r.fromRpcSig=r.toRpcSig=r.ecrecover=r.ecsign=void 0;var n=t(799),i=t(13),o=t(694),f=t(800);function a(e,r){return r?e-(2*r+35):e-27}function u(e){return 0===e||1===e}r.ecsign=function(e,r,t){var i=n.sign(e,r),o=i.recovery;return{r:i.signature.slice(0,32),s:i.signature.slice(32,64),v:t?o+(2*t+35):o+27}},r.ecrecover=function(r,t,i,f,s){var c=e.concat([o.setLength(i,32),o.setLength(f,32)],64),l=a(t,s);if(!u(l))throw new Error("Invalid signature v value");var d=n.recover(r,c,l);return n.publicKeyConvert(d,!1).slice(1)},r.toRpcSig=function(r,t,n,i){if(!u(a(r,i)))throw new Error("Invalid signature v value");return o.bufferToHex(e.concat([o.setLengthLeft(t,32),o.setLengthLeft(n,32),o.toBuffer(r)]))},r.fromRpcSig=function(e){var r=o.toBuffer(e);if(65!==r.length)throw new Error("Invalid signature length");var t=r[64];return t<27&&(t+=27),{v:t,r:r.slice(0,32),s:r.slice(32,64)}},r.isValidSignature=function(e,r,t,n,o){void 0===n&&(n=!0);var f=new i("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),s=new i("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);if(32!==r.length||32!==t.length)return!1;if(!u(a(e,o)))return!1;var c=new i(r),l=new i(t);return!(c.isZero()||c.gt(s)||l.isZero()||l.gt(s))&&(!n||1!==l.cmp(f))},r.hashPersonalMessage=function(r){var t=e.from("\x19Ethereum Signed Message:\n"+r.length.toString(),"utf-8");return f.keccak(e.concat([t,r]))}}).call(this,t(8).Buffer)},1215:function(e,r,t){"use strict";(function(e){Object.defineProperty(r,"__esModule",{value:!0}),r.defineProperties=void 0;var n=t(135),i=t(61),o=t(96),f=t(694);r.defineProperties=function(r,t,a){if(r.raw=[],r._fields=[],r.toJSON=function(e){if(void 0===e&&(e=!1),e){var t={};return r._fields.forEach((function(e){t[e]="0x"+r[e].toString("hex")})),t}return f.baToJSON(r.raw)},r.serialize=function(){return o.encode(r.raw)},t.forEach((function(t,i){function o(){return r.raw[i]}function a(o){"00"!==(o=f.toBuffer(o)).toString("hex")||t.allowZero||(o=e.allocUnsafe(0)),t.allowLess&&t.length?(o=f.stripZeros(o),n(t.length>=o.length,"The field "+t.name+" must not have more "+t.length+" bytes")):t.allowZero&&0===o.length||!t.length||n(t.length===o.length,"The field "+t.name+" must have byte length of "+t.length),r.raw[i]=o}r._fields.push(t.name),Object.defineProperty(r,t.name,{enumerable:!0,configurable:!0,get:o,set:a}),t.default&&(r[t.name]=t.default),t.alias&&Object.defineProperty(r,t.alias,{enumerable:!1,configurable:!0,set:a,get:o})})),a)if("string"===typeof a&&(a=e.from(i.stripHexPrefix(a),"hex")),e.isBuffer(a)&&(a=o.decode(a)),Array.isArray(a)){if(a.length>r._fields.length)throw new Error("wrong number of fields in data");a.forEach((function(e,t){r[r._fields[t]]=f.toBuffer(e)}))}else{if("object"!==typeof a)throw new Error("invalid data");var u=Object.keys(a);t.forEach((function(e){-1!==u.indexOf(e.name)&&(r[e.name]=a[e.name]),-1!==u.indexOf(e.alias)&&(r[e.alias]=a[e.alias])}))}}}).call(this,t(8).Buffer)},694:function(e,r,t){"use strict";(function(e){Object.defineProperty(r,"__esModule",{value:!0}),r.baToJSON=r.addHexPrefix=r.toUnsigned=r.fromSigned=r.bufferToHex=r.bufferToInt=r.toBuffer=r.stripZeros=r.unpad=r.setLengthRight=r.setLength=r.setLengthLeft=r.zeros=void 0;var n=t(61),i=t(13);r.zeros=function(r){return e.allocUnsafe(r).fill(0)},r.setLengthLeft=function(e,t,n){void 0===n&&(n=!1);var i=r.zeros(t);return e=r.toBuffer(e),n?e.length0&&"0"===r.toString();)r=(e=e.slice(1))[0];return e},r.stripZeros=r.unpad,r.toBuffer=function(r){if(!e.isBuffer(r))if(Array.isArray(r))r=e.from(r);else if("string"===typeof r){if(!n.isHexString(r))throw new Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: "+r);r=e.from(n.padToEven(n.stripHexPrefix(r)),"hex")}else if("number"===typeof r)r=n.intToBuffer(r);else if(null===r||void 0===r)r=e.allocUnsafe(0);else if(i.isBN(r))r=r.toArrayLike(e);else{if(!r.toArray)throw new Error("invalid type");r=e.from(r.toArray())}return r},r.bufferToInt=function(e){return new i(r.toBuffer(e)).toNumber()},r.bufferToHex=function(e){return"0x"+(e=r.toBuffer(e)).toString("hex")},r.fromSigned=function(e){return new i(e).fromTwos(256)},r.toUnsigned=function(r){return e.from(r.toTwos(256).toArray())},r.addHexPrefix=function(e){return"string"!==typeof e||n.isHexPrefixed(e)?e:"0x"+e},r.baToJSON=function(t){if(e.isBuffer(t))return"0x"+t.toString("hex");if(t instanceof Array){for(var n=[],i=0;i=0)throw new Error("couldn't export to DER format");var a=f.g.mul(n);return o(a.getX(),a.getY(),e)},e.privateKeyModInverse=function(e){var n=new t(e);if(n.ucmp(i.n)>=0||n.isZero())throw new Error("private key range is invalid");return n.invm(i.n).toArrayLike(r,"be",32)},e.signatureImport=function(e){var n=new t(e.r);n.ucmp(i.n)>=0&&(n=new t(0));var f=new t(e.s);return f.ucmp(i.n)>=0&&(f=new t(0)),r.concat([n.toArrayLike(r,"be",32),f.toArrayLike(r,"be",32)])},e.ecdhUnsafe=function(r,e,n){var a=f.keyFromPublic(r),u=new t(e);if(u.ucmp(i.n)>=0||u.isZero())throw new Error("scalar was invalid (zero or overflow)");var c=a.pub.mul(u);return o(c.getX(),c.getY(),n)};var o=function(e,n,t){var f=void 0;return t?((f=r.alloc(33))[0]=n.isOdd()?3:2,e.toArrayLike(r,"be",32).copy(f,1)):((f=r.alloc(65))[0]=4,e.toArrayLike(r,"be",32).copy(f,1),n.toArrayLike(r,"be",32).copy(f,33)),f}}).call(this,n(8).Buffer)},1163:function(r,e,n){"use strict";(function(r){var n=r.from([48,129,211,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,133,48,129,130,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,33,2,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,36,3,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),t=r.from([48,130,1,19,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,165,48,129,162,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,65,4,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,72,58,218,119,38,163,196,101,93,164,251,252,14,17,8,168,253,23,180,72,166,133,84,25,156,71,208,143,251,16,212,184,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,68,3,66,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);e.privateKeyExport=function(e,f,i){var o=r.from(i?n:t);return e.copy(o,i?8:9),f.copy(o,i?181:214),o},e.privateKeyImport=function(r){var e=r.length,n=0;if(e2)return null;if(e<(n+=1)+t)return null;var f=r[n+t-1]|(t>1?r[n+t-2]<<8:0);return e<(n+=t)+f||e32||ef)return null;if(2!==e[i++])return null;var a=e[i++];if(128&a){if(i+(o=a-128)>f)return null;for(;o>0&&0===e[i];i+=1,o-=1);for(a=0;o>0;i+=1,o-=1)a=(a<<8)+e[i]}if(a>f-i)return null;var u=i;if(i+=a,2!==e[i++])return null;var c=e[i++];if(128&c){if(i+(o=c-128)>f)return null;for(;o>0&&0===e[i];i+=1,o-=1);for(c=0;o>0;i+=1,o-=1)c=(c<<8)+e[i]}if(c>f-i)return null;var l=i;for(i+=c;a>0&&0===e[u];a-=1,u+=1);if(a>32)return null;var s=e.slice(u,u+a);for(s.copy(n,32-s.length);c>0&&0===e[l];c-=1,l+=1);if(c>32)return null;var d=e.slice(l,l+c);return d.copy(t,32-d.length),{r:n,s:t}}}).call(this,n(8).Buffer)},620:function(r,e,n){"use strict";var t="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"===typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},f=n(247),i=f.keccak224,o=f.keccak384,a=f.keccak256,u=f.keccak512,c=n(1161),l=n(135),s=n(96),d=n(13),p=n(50),y=n(17).Buffer;Object.assign(e,n(61)),e.MAX_INTEGER=new d("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),e.TWO_POW256=new d("10000000000000000000000000000000000000000000000000000000000000000",16),e.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",e.SHA3_NULL_S=e.KECCAK256_NULL_S,e.KECCAK256_NULL=y.from(e.KECCAK256_NULL_S,"hex"),e.SHA3_NULL=e.KECCAK256_NULL,e.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",e.SHA3_RLP_ARRAY_S=e.KECCAK256_RLP_ARRAY_S,e.KECCAK256_RLP_ARRAY=y.from(e.KECCAK256_RLP_ARRAY_S,"hex"),e.SHA3_RLP_ARRAY=e.KECCAK256_RLP_ARRAY,e.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",e.SHA3_RLP_S=e.KECCAK256_RLP_S,e.KECCAK256_RLP=y.from(e.KECCAK256_RLP_S,"hex"),e.SHA3_RLP=e.KECCAK256_RLP,e.BN=d,e.rlp=s,e.secp256k1=c,e.zeros=function(r){return y.allocUnsafe(r).fill(0)},e.zeroAddress=function(){var r=e.zeros(20);return e.bufferToHex(r)},e.setLengthLeft=e.setLength=function(r,n,t){var f=e.zeros(n);return r=e.toBuffer(r),t?r.length0&&"0"===n.toString();)n=(r=r.slice(1))[0];return r},e.toBuffer=function(r){if(!y.isBuffer(r))if(Array.isArray(r))r=y.from(r);else if("string"===typeof r)r=e.isHexString(r)?y.from(e.padToEven(e.stripHexPrefix(r)),"hex"):y.from(r);else if("number"===typeof r)r=e.intToBuffer(r);else if(null===r||void 0===r)r=y.allocUnsafe(0);else if(d.isBN(r))r=r.toArrayLike(y);else{if(!r.toArray)throw new Error("invalid type");r=y.from(r.toArray())}return r},e.bufferToInt=function(r){return new d(e.toBuffer(r)).toNumber()},e.bufferToHex=function(r){return"0x"+(r=e.toBuffer(r)).toString("hex")},e.fromSigned=function(r){return new d(r).fromTwos(256)},e.toUnsigned=function(r){return y.from(r.toTwos(256).toArray())},e.keccak=function(r,n){switch(r=e.toBuffer(r),n||(n=256),n){case 224:return i(r);case 256:return a(r);case 384:return o(r);case 512:return u(r);default:throw new Error("Invald algorithm: keccak"+n)}},e.keccak256=function(r){return e.keccak(r)},e.sha3=e.keccak,e.sha256=function(r){return r=e.toBuffer(r),p("sha256").update(r).digest()},e.ripemd160=function(r,n){r=e.toBuffer(r);var t=p("rmd160").update(r).digest();return!0===n?e.setLength(t,32):t},e.rlphash=function(r){return e.keccak(s.encode(r))},e.isValidPrivate=function(r){return c.privateKeyVerify(r)},e.isValidPublic=function(r,e){return 64===r.length?c.publicKeyVerify(y.concat([y.from([4]),r])):!!e&&c.publicKeyVerify(r)},e.pubToAddress=e.publicToAddress=function(r,n){return r=e.toBuffer(r),n&&64!==r.length&&(r=c.publicKeyConvert(r,!1).slice(1)),l(64===r.length),e.keccak(r).slice(-20)};var h=e.privateToPublic=function(r){return r=e.toBuffer(r),c.publicKeyCreate(r,!1).slice(1)};e.importPublic=function(r){return 64!==(r=e.toBuffer(r)).length&&(r=c.publicKeyConvert(r,!1).slice(1)),r},e.ecsign=function(r,e){var n=c.sign(r,e),t={};return t.r=n.signature.slice(0,32),t.s=n.signature.slice(32,64),t.v=n.recovery+27,t},e.hashPersonalMessage=function(r){var n=e.toBuffer("\x19Ethereum Signed Message:\n"+r.length.toString());return e.keccak(y.concat([n,r]))},e.ecrecover=function(r,n,t,f){var i=y.concat([e.setLength(t,32),e.setLength(f,32)],64),o=n-27;if(0!==o&&1!==o)throw new Error("Invalid signature v value");var a=c.recover(r,i,o);return c.publicKeyConvert(a,!1).slice(1)},e.toRpcSig=function(r,n,t){if(27!==r&&28!==r)throw new Error("Invalid recovery id");return e.bufferToHex(y.concat([e.setLengthLeft(n,32),e.setLengthLeft(t,32),e.toBuffer(r-27)]))},e.fromRpcSig=function(r){if(65!==(r=e.toBuffer(r)).length)throw new Error("Invalid signature length");var n=r[64];return n<27&&(n+=27),{v:n,r:r.slice(0,32),s:r.slice(32,64)}},e.privateToAddress=function(r){return e.publicToAddress(h(r))},e.isValidAddress=function(r){return/^0x[0-9a-fA-F]{40}$/.test(r)},e.isZeroAddress=function(r){return e.zeroAddress()===e.addHexPrefix(r)},e.toChecksumAddress=function(r){r=e.stripHexPrefix(r).toLowerCase();for(var n=e.keccak(r).toString("hex"),t="0x",f=0;f=8?t+=r[f].toUpperCase():t+=r[f];return t},e.isValidChecksumAddress=function(r){return e.isValidAddress(r)&&e.toChecksumAddress(r)===r},e.generateAddress=function(r,n){return r=e.toBuffer(r),n=(n=new d(n)).isZero()?null:y.from(n.toArray()),e.rlphash([r,n]).slice(-20)},e.isPrecompiled=function(r){var n=e.unpad(r);return 1===n.length&&n[0]>=1&&n[0]<=8},e.addHexPrefix=function(r){return"string"!==typeof r||e.isHexPrefixed(r)?r:"0x"+r},e.isValidSignature=function(r,e,n,t){var f=new d("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),i=new d("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);return 32===e.length&&32===n.length&&((27===r||28===r)&&(e=new d(e),n=new d(n),!(e.isZero()||e.gt(i)||n.isZero()||n.gt(i))&&(!1!==t||1!==new d(n).cmp(f))))},e.baToJSON=function(r){if(y.isBuffer(r))return"0x"+r.toString("hex");if(r instanceof Array){for(var n=[],t=0;t=f.length,"The field "+n.name+" must not have more "+n.length+" bytes")):n.allowZero&&0===f.length||!n.length||l(n.length===f.length,"The field "+n.name+" must have byte length of "+n.length),r.raw[t]=f}r._fields.push(n.name),Object.defineProperty(r,n.name,{enumerable:!0,configurable:!0,get:f,set:i}),n.default&&(r[n.name]=n.default),n.alias&&Object.defineProperty(r,n.alias,{enumerable:!1,configurable:!0,set:i,get:f})})),f)if("string"===typeof f&&(f=y.from(e.stripHexPrefix(f),"hex")),y.isBuffer(f)&&(f=s.decode(f)),Array.isArray(f)){if(f.length>r._fields.length)throw new Error("wrong number of fields in data");f.forEach((function(n,t){r[r._fields[t]]=e.toBuffer(n)}))}else{if("object"!==("undefined"===typeof f?"undefined":t(f)))throw new Error("invalid data");var i=Object.keys(f);n.forEach((function(e){-1!==i.indexOf(e.name)&&(r[e.name]=f[e.name]),-1!==i.indexOf(e.alias)&&(r[e.alias]=f[e.alias])}))}}}}]); \ No newline at end of file diff --git a/WebGLTemplates/Web3GL-2019/static/js/10.ab43c8c3.chunk.js b/WebGLTemplates/Web3GL-2019/static/js/10.ab43c8c3.chunk.js new file mode 100644 index 000000000..0fa07e4c7 --- /dev/null +++ b/WebGLTemplates/Web3GL-2019/static/js/10.ab43c8c3.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 10.ab43c8c3.chunk.js.LICENSE.txt */ +(this.webpackJsonpweb3gl=this.webpackJsonpweb3gl||[]).push([[10],{1e3:function(e,t){e.exports={L:1,M:0,Q:3,H:2}},1001:function(e,t,r){var o=r(1002);function n(e,t){if(void 0==e.length)throw new Error(e.length+"/"+t);for(var r=0;r=256;)e-=255;return r.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},o=0;o<8;o++)r.EXP_TABLE[o]=1<=this.width||e<0||e>=this.height)&&!!this.data[e*this.width+o]},o.prototype.set=function(o,e,r){this.data[e*this.width+o]=r?1:0},o.prototype.setRegion=function(o,e,r,t,c){for(var s=e;s=this.size&&(t=(t^this.primitive)&this.size-1);for(var s=0;s1&&0===e[0]){for(var t=1;tc.length&&(n=[c,r],r=n[0],c=n[1]);for(var s=new Uint8ClampedArray(c.length),a=c.length-r.length,d=0;dr?r:o}function c(o,e,r,c){if(o.length!==e*r*4)throw new Error("Malformed data passed to binarizer.");for(var l=new n(e,r),i=0;i0&&v>0)){var x=(w.get(v,P-1)+2*w.get(v-1,P)+w.get(v-1,P-1))/4;p6&&(r.setRegion(e-11,0,3,6,!0),r.setRegion(0,e-11,6,3,!0)),r}function a(o,e,r){for(var t=w[r.dataMask],a=o.height,d=s(e),n=[],l=0,i=0,B=!0,k=a-1;k>0;k-=2){6===k&&k--;for(var u=0;u=0;a--)for(var d=e-9;d>=e-11;d--)s=c(o.get(d,a),s);for(var n=0,d=5;d>=0;d--)for(var a=e-9;a>=e-11;a--)n=c(o.get(d,a),n);for(var l,i=1/0,B=0,k=m.VERSIONS;B=0;s--)6!==s&&(e=c(o.get(8,s),e));for(var a=o.height,d=0,s=a-1;s>=a-7;s--)d=c(o.get(8,s),d);for(var r=a-8;r1)for(var B=t.ecBlocks[0].numBlocks,k=t.ecBlocks[1].numBlocks,d=0;d0;)for(var u=0,C=c;u=3;){var a=o.readBits(10);if(a>=1e3)throw new Error("Invalid numeric value above 999");var d=Math.floor(a/100),n=Math.floor(a/10)%10,l=a%10;r.push(48+d,48+n,48+l),t+=d.toString()+n.toString()+l.toString(),s-=3}if(2===s){var a=o.readBits(7);if(a>=100)throw new Error("Invalid numeric value above 99");var d=Math.floor(a/10),n=a%10;r.push(48+d,48+n),t+=d.toString()+n.toString()}else if(1===s){var a=o.readBits(4);if(a>=10)throw new Error("Invalid numeric value above 9");r.push(48+a),t+=a.toString()}return{bytes:r,text:t}}function c(o,e){for(var r=[],t="",c=[9,11,13][e],s=o.readBits(c);s>=2;){var a=o.readBits(11),d=Math.floor(a/45),n=a%45;r.push(k[d].charCodeAt(0),k[n].charCodeAt(0)),t+=k[d]+k[n],s-=2}if(1===s){var d=o.readBits(6);r.push(k[d].charCodeAt(0)),t+=k[d]}return{bytes:r,text:t}}function s(o,e){for(var r=[],t="",c=[8,16,16][e],s=o.readBits(c),a=0;a>8,255&n),t+=String.fromCharCode(i.shiftJISTable[n])}return{bytes:r,text:t}}function d(o,e){for(var r=new l.BitStream(o),d=e<=9?0:e<=26?1:2,i={text:"",bytes:[],chunks:[]};r.available()>=4;){var k=r.readBits(4);if(k===B.Terminator)return i;if(k===B.ECI)0===r.readBits(1)?i.chunks.push({type:n.ECI,assignmentNumber:r.readBits(7)}):0===r.readBits(1)?i.chunks.push({type:n.ECI,assignmentNumber:r.readBits(14)}):0===r.readBits(1)?i.chunks.push({type:n.ECI,assignmentNumber:r.readBits(21)}):i.chunks.push({type:n.ECI,assignmentNumber:-1});else if(k===B.Numeric){var u=t(r,d);i.text+=u.text,(w=i.bytes).push.apply(w,u.bytes),i.chunks.push({type:n.Numeric,text:u.text})}else if(k===B.Alphanumeric){var C=c(r,d);i.text+=C.text,(P=i.bytes).push.apply(P,C.bytes),i.chunks.push({type:n.Alphanumeric,text:C.text})}else if(k===B.Byte){var m=s(r,d);i.text+=m.text,(v=i.bytes).push.apply(v,m.bytes),i.chunks.push({type:n.Byte,bytes:m.bytes,text:m.text})}else if(k===B.Kanji){var f=a(r,d);i.text+=f.text,(h=i.bytes).push.apply(h,f.bytes),i.chunks.push({type:n.Kanji,bytes:f.bytes,text:f.text})}}var w,P,v,h}Object.defineProperty(e,"__esModule",{value:!0});var n,l=r(7),i=r(8);!function(o){o.Numeric="numeric",o.Alphanumeric="alphanumeric",o.Byte="byte",o.Kanji="kanji",o.ECI="eci"}(n=e.Mode||(e.Mode={}));var B;!function(o){o[o.Terminator=0]="Terminator",o[o.Numeric=1]="Numeric",o[o.Alphanumeric=2]="Alphanumeric",o[o.Byte=4]="Byte",o[o.Kanji=8]="Kanji",o[o.ECI=7]="ECI"}(B||(B={}));var k=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];e.decode=d},function(o,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function o(o){this.byteOffset=0,this.bitOffset=0,this.bytes=o}return o.prototype.readBits=function(o){if(o<1||o>32||o>this.available())throw new Error("Cannot read "+o.toString()+" bits");var e=0;if(this.bitOffset>0){var r=8-this.bitOffset,t=o>8-t<>c,o-=t,this.bitOffset+=t,8===this.bitOffset&&(this.bitOffset=0,this.byteOffset++)}if(o>0){for(;o>=8;)e=e<<8|255&this.bytes[this.byteOffset],this.byteOffset++,o-=8;if(o>0){var c=8-o,s=255>>c<>c,this.bitOffset+=o}}return e},o.prototype.available=function(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset},o}();e.BitStream=t},function(o,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.shiftJISTable={32:32,33:33,34:34,35:35,36:36,37:37,38:38,39:39,40:40,41:41,42:42,43:43,44:44,45:45,46:46,47:47,48:48,49:49,50:50,51:51,52:52,53:53,54:54,55:55,56:56,57:57,58:58,59:59,60:60,61:61,62:62,63:63,64:64,65:65,66:66,67:67,68:68,69:69,70:70,71:71,72:72,73:73,74:74,75:75,76:76,77:77,78:78,79:79,80:80,81:81,82:82,83:83,84:84,85:85,86:86,87:87,88:88,89:89,90:90,91:91,92:165,93:93,94:94,95:95,96:96,97:97,98:98,99:99,100:100,101:101,102:102,103:103,104:104,105:105,106:106,107:107,108:108,109:109,110:110,111:111,112:112,113:113,114:114,115:115,116:116,117:117,118:118,119:119,120:120,121:121,122:122,123:123,124:124,125:125,126:8254,33088:12288,33089:12289,33090:12290,33091:65292,33092:65294,33093:12539,33094:65306,33095:65307,33096:65311,33097:65281,33098:12443,33099:12444,33100:180,33101:65344,33102:168,33103:65342,33104:65507,33105:65343,33106:12541,33107:12542,33108:12445,33109:12446,33110:12291,33111:20189,33112:12293,33113:12294,33114:12295,33115:12540,33116:8213,33117:8208,33118:65295,33119:92,33120:12316,33121:8214,33122:65372,33123:8230,33124:8229,33125:8216,33126:8217,33127:8220,33128:8221,33129:65288,33130:65289,33131:12308,33132:12309,33133:65339,33134:65341,33135:65371,33136:65373,33137:12296,33138:12297,33139:12298,33140:12299,33141:12300,33142:12301,33143:12302,33144:12303,33145:12304,33146:12305,33147:65291,33148:8722,33149:177,33150:215,33152:247,33153:65309,33154:8800,33155:65308,33156:65310,33157:8806,33158:8807,33159:8734,33160:8756,33161:9794,33162:9792,33163:176,33164:8242,33165:8243,33166:8451,33167:65509,33168:65284,33169:162,33170:163,33171:65285,33172:65283,33173:65286,33174:65290,33175:65312,33176:167,33177:9734,33178:9733,33179:9675,33180:9679,33181:9678,33182:9671,33183:9670,33184:9633,33185:9632,33186:9651,33187:9650,33188:9661,33189:9660,33190:8251,33191:12306,33192:8594,33193:8592,33194:8593,33195:8595,33196:12307,33208:8712,33209:8715,33210:8838,33211:8839,33212:8834,33213:8835,33214:8746,33215:8745,33224:8743,33225:8744,33226:172,33227:8658,33228:8660,33229:8704,33230:8707,33242:8736,33243:8869,33244:8978,33245:8706,33246:8711,33247:8801,33248:8786,33249:8810,33250:8811,33251:8730,33252:8765,33253:8733,33254:8757,33255:8747,33256:8748,33264:8491,33265:8240,33266:9839,33267:9837,33268:9834,33269:8224,33270:8225,33271:182,33276:9711,33359:65296,33360:65297,33361:65298,33362:65299,33363:65300,33364:65301,33365:65302,33366:65303,33367:65304,33368:65305,33376:65313,33377:65314,33378:65315,33379:65316,33380:65317,33381:65318,33382:65319,33383:65320,33384:65321,33385:65322,33386:65323,33387:65324,33388:65325,33389:65326,33390:65327,33391:65328,33392:65329,33393:65330,33394:65331,33395:65332,33396:65333,33397:65334,33398:65335,33399:65336,33400:65337,33401:65338,33409:65345,33410:65346,33411:65347,33412:65348,33413:65349,33414:65350,33415:65351,33416:65352,33417:65353,33418:65354,33419:65355,33420:65356,33421:65357,33422:65358,33423:65359,33424:65360,33425:65361,33426:65362,33427:65363,33428:65364,33429:65365,33430:65366,33431:65367,33432:65368,33433:65369,33434:65370,33439:12353,33440:12354,33441:12355,33442:12356,33443:12357,33444:12358,33445:12359,33446:12360,33447:12361,33448:12362,33449:12363,33450:12364,33451:12365,33452:12366,33453:12367,33454:12368,33455:12369,33456:12370,33457:12371,33458:12372,33459:12373,33460:12374,33461:12375,33462:12376,33463:12377,33464:12378,33465:12379,33466:12380,33467:12381,33468:12382,33469:12383,33470:12384,33471:12385,33472:12386,33473:12387,33474:12388,33475:12389,33476:12390,33477:12391,33478:12392,33479:12393,33480:12394,33481:12395,33482:12396,33483:12397,33484:12398,33485:12399,33486:12400,33487:12401,33488:12402,33489:12403,33490:12404,33491:12405,33492:12406,33493:12407,33494:12408,33495:12409,33496:12410,33497:12411,33498:12412,33499:12413,33500:12414,33501:12415,33502:12416,33503:12417,33504:12418,33505:12419,33506:12420,33507:12421,33508:12422,33509:12423,33510:12424,33511:12425,33512:12426,33513:12427,33514:12428,33515:12429,33516:12430,33517:12431,33518:12432,33519:12433,33520:12434,33521:12435,33600:12449,33601:12450,33602:12451,33603:12452,33604:12453,33605:12454,33606:12455,33607:12456,33608:12457,33609:12458,33610:12459,33611:12460,33612:12461,33613:12462,33614:12463,33615:12464,33616:12465,33617:12466,33618:12467,33619:12468,33620:12469,33621:12470,33622:12471,33623:12472,33624:12473,33625:12474,33626:12475,33627:12476,33628:12477,33629:12478,33630:12479,33631:12480,33632:12481,33633:12482,33634:12483,33635:12484,33636:12485,33637:12486,33638:12487,33639:12488,33640:12489,33641:12490,33642:12491,33643:12492,33644:12493,33645:12494,33646:12495,33647:12496,33648:12497,33649:12498,33650:12499,33651:12500,33652:12501,33653:12502,33654:12503,33655:12504,33656:12505,33657:12506,33658:12507,33659:12508,33660:12509,33661:12510,33662:12511,33664:12512,33665:12513,33666:12514,33667:12515,33668:12516,33669:12517,33670:12518,33671:12519,33672:12520,33673:12521,33674:12522,33675:12523,33676:12524,33677:12525,33678:12526,33679:12527,33680:12528,33681:12529,33682:12530,33683:12531,33684:12532,33685:12533,33686:12534,33695:913,33696:914,33697:915,33698:916,33699:917,33700:918,33701:919,33702:920,33703:921,33704:922,33705:923,33706:924,33707:925,33708:926,33709:927,33710:928,33711:929,33712:931,33713:932,33714:933,33715:934,33716:935,33717:936,33718:937,33727:945,33728:946,33729:947,33730:948,33731:949,33732:950,33733:951,33734:952,33735:953,33736:954,33737:955,33738:956,33739:957,33740:958,33741:959,33742:960,33743:961,33744:963,33745:964,33746:965,33747:966,33748:967,33749:968,33750:969,33856:1040,33857:1041,33858:1042,33859:1043,33860:1044,33861:1045,33862:1025,33863:1046,33864:1047,33865:1048,33866:1049,33867:1050,33868:1051,33869:1052,33870:1053,33871:1054,33872:1055,33873:1056,33874:1057,33875:1058,33876:1059,33877:1060,33878:1061,33879:1062,33880:1063,33881:1064,33882:1065,33883:1066,33884:1067,33885:1068,33886:1069,33887:1070,33888:1071,33904:1072,33905:1073,33906:1074,33907:1075,33908:1076,33909:1077,33910:1105,33911:1078,33912:1079,33913:1080,33914:1081,33915:1082,33916:1083,33917:1084,33918:1085,33920:1086,33921:1087,33922:1088,33923:1089,33924:1090,33925:1091,33926:1092,33927:1093,33928:1094,33929:1095,33930:1096,33931:1097,33932:1098,33933:1099,33934:1100,33935:1101,33936:1102,33937:1103,33951:9472,33952:9474,33953:9484,33954:9488,33955:9496,33956:9492,33957:9500,33958:9516,33959:9508,33960:9524,33961:9532,33962:9473,33963:9475,33964:9487,33965:9491,33966:9499,33967:9495,33968:9507,33969:9523,33970:9515,33971:9531,33972:9547,33973:9504,33974:9519,33975:9512,33976:9527,33977:9535,33978:9501,33979:9520,33980:9509,33981:9528,33982:9538,34975:20124,34976:21782,34977:23043,34978:38463,34979:21696,34980:24859,34981:25384,34982:23030,34983:36898,34984:33909,34985:33564,34986:31312,34987:24746,34988:25569,34989:28197,34990:26093,34991:33894,34992:33446,34993:39925,34994:26771,34995:22311,34996:26017,34997:25201,34998:23451,34999:22992,35e3:34427,35001:39156,35002:32098,35003:32190,35004:39822,35005:25110,35006:31903,35007:34999,35008:23433,35009:24245,35010:25353,35011:26263,35012:26696,35013:38343,35014:38797,35015:26447,35016:20197,35017:20234,35018:20301,35019:20381,35020:20553,35021:22258,35022:22839,35023:22996,35024:23041,35025:23561,35026:24799,35027:24847,35028:24944,35029:26131,35030:26885,35031:28858,35032:30031,35033:30064,35034:31227,35035:32173,35036:32239,35037:32963,35038:33806,35039:34915,35040:35586,35041:36949,35042:36986,35043:21307,35044:20117,35045:20133,35046:22495,35047:32946,35048:37057,35049:30959,35050:19968,35051:22769,35052:28322,35053:36920,35054:31282,35055:33576,35056:33419,35057:39983,35058:20801,35059:21360,35060:21693,35061:21729,35062:22240,35063:23035,35064:24341,35065:39154,35066:28139,35067:32996,35068:34093,35136:38498,35137:38512,35138:38560,35139:38907,35140:21515,35141:21491,35142:23431,35143:28879,35144:32701,35145:36802,35146:38632,35147:21359,35148:40284,35149:31418,35150:19985,35151:30867,35152:33276,35153:28198,35154:22040,35155:21764,35156:27421,35157:34074,35158:39995,35159:23013,35160:21417,35161:28006,35162:29916,35163:38287,35164:22082,35165:20113,35166:36939,35167:38642,35168:33615,35169:39180,35170:21473,35171:21942,35172:23344,35173:24433,35174:26144,35175:26355,35176:26628,35177:27704,35178:27891,35179:27945,35180:29787,35181:30408,35182:31310,35183:38964,35184:33521,35185:34907,35186:35424,35187:37613,35188:28082,35189:30123,35190:30410,35191:39365,35192:24742,35193:35585,35194:36234,35195:38322,35196:27022,35197:21421,35198:20870,35200:22290,35201:22576,35202:22852,35203:23476,35204:24310,35205:24616,35206:25513,35207:25588,35208:27839,35209:28436,35210:28814,35211:28948,35212:29017,35213:29141,35214:29503,35215:32257,35216:33398,35217:33489,35218:34199,35219:36960,35220:37467,35221:40219,35222:22633,35223:26044,35224:27738,35225:29989,35226:20985,35227:22830,35228:22885,35229:24448,35230:24540,35231:25276,35232:26106,35233:27178,35234:27431,35235:27572,35236:29579,35237:32705,35238:35158,35239:40236,35240:40206,35241:40644,35242:23713,35243:27798,35244:33659,35245:20740,35246:23627,35247:25014,35248:33222,35249:26742,35250:29281,35251:20057,35252:20474,35253:21368,35254:24681,35255:28201,35256:31311,35257:38899,35258:19979,35259:21270,35260:20206,35261:20309,35262:20285,35263:20385,35264:20339,35265:21152,35266:21487,35267:22025,35268:22799,35269:23233,35270:23478,35271:23521,35272:31185,35273:26247,35274:26524,35275:26550,35276:27468,35277:27827,35278:28779,35279:29634,35280:31117,35281:31166,35282:31292,35283:31623,35284:33457,35285:33499,35286:33540,35287:33655,35288:33775,35289:33747,35290:34662,35291:35506,35292:22057,35293:36008,35294:36838,35295:36942,35296:38686,35297:34442,35298:20420,35299:23784,35300:25105,35301:29273,35302:30011,35303:33253,35304:33469,35305:34558,35306:36032,35307:38597,35308:39187,35309:39381,35310:20171,35311:20250,35312:35299,35313:22238,35314:22602,35315:22730,35316:24315,35317:24555,35318:24618,35319:24724,35320:24674,35321:25040,35322:25106,35323:25296,35324:25913,35392:39745,35393:26214,35394:26800,35395:28023,35396:28784,35397:30028,35398:30342,35399:32117,35400:33445,35401:34809,35402:38283,35403:38542,35404:35997,35405:20977,35406:21182,35407:22806,35408:21683,35409:23475,35410:23830,35411:24936,35412:27010,35413:28079,35414:30861,35415:33995,35416:34903,35417:35442,35418:37799,35419:39608,35420:28012,35421:39336,35422:34521,35423:22435,35424:26623,35425:34510,35426:37390,35427:21123,35428:22151,35429:21508,35430:24275,35431:25313,35432:25785,35433:26684,35434:26680,35435:27579,35436:29554,35437:30906,35438:31339,35439:35226,35440:35282,35441:36203,35442:36611,35443:37101,35444:38307,35445:38548,35446:38761,35447:23398,35448:23731,35449:27005,35450:38989,35451:38990,35452:25499,35453:31520,35454:27179,35456:27263,35457:26806,35458:39949,35459:28511,35460:21106,35461:21917,35462:24688,35463:25324,35464:27963,35465:28167,35466:28369,35467:33883,35468:35088,35469:36676,35470:19988,35471:39993,35472:21494,35473:26907,35474:27194,35475:38788,35476:26666,35477:20828,35478:31427,35479:33970,35480:37340,35481:37772,35482:22107,35483:40232,35484:26658,35485:33541,35486:33841,35487:31909,35488:21e3,35489:33477,35490:29926,35491:20094,35492:20355,35493:20896,35494:23506,35495:21002,35496:21208,35497:21223,35498:24059,35499:21914,35500:22570,35501:23014,35502:23436,35503:23448,35504:23515,35505:24178,35506:24185,35507:24739,35508:24863,35509:24931,35510:25022,35511:25563,35512:25954,35513:26577,35514:26707,35515:26874,35516:27454,35517:27475,35518:27735,35519:28450,35520:28567,35521:28485,35522:29872,35523:29976,35524:30435,35525:30475,35526:31487,35527:31649,35528:31777,35529:32233,35530:32566,35531:32752,35532:32925,35533:33382,35534:33694,35535:35251,35536:35532,35537:36011,35538:36996,35539:37969,35540:38291,35541:38289,35542:38306,35543:38501,35544:38867,35545:39208,35546:33304,35547:20024,35548:21547,35549:23736,35550:24012,35551:29609,35552:30284,35553:30524,35554:23721,35555:32747,35556:36107,35557:38593,35558:38929,35559:38996,35560:39e3,35561:20225,35562:20238,35563:21361,35564:21916,35565:22120,35566:22522,35567:22855,35568:23305,35569:23492,35570:23696,35571:24076,35572:24190,35573:24524,35574:25582,35575:26426,35576:26071,35577:26082,35578:26399,35579:26827,35580:26820,35648:27231,35649:24112,35650:27589,35651:27671,35652:27773,35653:30079,35654:31048,35655:23395,35656:31232,35657:32e3,35658:24509,35659:35215,35660:35352,35661:36020,35662:36215,35663:36556,35664:36637,35665:39138,35666:39438,35667:39740,35668:20096,35669:20605,35670:20736,35671:22931,35672:23452,35673:25135,35674:25216,35675:25836,35676:27450,35677:29344,35678:30097,35679:31047,35680:32681,35681:34811,35682:35516,35683:35696,35684:25516,35685:33738,35686:38816,35687:21513,35688:21507,35689:21931,35690:26708,35691:27224,35692:35440,35693:30759,35694:26485,35695:40653,35696:21364,35697:23458,35698:33050,35699:34384,35700:36870,35701:19992,35702:20037,35703:20167,35704:20241,35705:21450,35706:21560,35707:23470,35708:24339,35709:24613,35710:25937,35712:26429,35713:27714,35714:27762,35715:27875,35716:28792,35717:29699,35718:31350,35719:31406,35720:31496,35721:32026,35722:31998,35723:32102,35724:26087,35725:29275,35726:21435,35727:23621,35728:24040,35729:25298,35730:25312,35731:25369,35732:28192,35733:34394,35734:35377,35735:36317,35736:37624,35737:28417,35738:31142,35739:39770,35740:20136,35741:20139,35742:20140,35743:20379,35744:20384,35745:20689,35746:20807,35747:31478,35748:20849,35749:20982,35750:21332,35751:21281,35752:21375,35753:21483,35754:21932,35755:22659,35756:23777,35757:24375,35758:24394,35759:24623,35760:24656,35761:24685,35762:25375,35763:25945,35764:27211,35765:27841,35766:29378,35767:29421,35768:30703,35769:33016,35770:33029,35771:33288,35772:34126,35773:37111,35774:37857,35775:38911,35776:39255,35777:39514,35778:20208,35779:20957,35780:23597,35781:26241,35782:26989,35783:23616,35784:26354,35785:26997,35786:29577,35787:26704,35788:31873,35789:20677,35790:21220,35791:22343,35792:24062,35793:37670,35794:26020,35795:27427,35796:27453,35797:29748,35798:31105,35799:31165,35800:31563,35801:32202,35802:33465,35803:33740,35804:34943,35805:35167,35806:35641,35807:36817,35808:37329,35809:21535,35810:37504,35811:20061,35812:20534,35813:21477,35814:21306,35815:29399,35816:29590,35817:30697,35818:33510,35819:36527,35820:39366,35821:39368,35822:39378,35823:20855,35824:24858,35825:34398,35826:21936,35827:31354,35828:20598,35829:23507,35830:36935,35831:38533,35832:20018,35833:27355,35834:37351,35835:23633,35836:23624,35904:25496,35905:31391,35906:27795,35907:38772,35908:36705,35909:31402,35910:29066,35911:38536,35912:31874,35913:26647,35914:32368,35915:26705,35916:37740,35917:21234,35918:21531,35919:34219,35920:35347,35921:32676,35922:36557,35923:37089,35924:21350,35925:34952,35926:31041,35927:20418,35928:20670,35929:21009,35930:20804,35931:21843,35932:22317,35933:29674,35934:22411,35935:22865,35936:24418,35937:24452,35938:24693,35939:24950,35940:24935,35941:25001,35942:25522,35943:25658,35944:25964,35945:26223,35946:26690,35947:28179,35948:30054,35949:31293,35950:31995,35951:32076,35952:32153,35953:32331,35954:32619,35955:33550,35956:33610,35957:34509,35958:35336,35959:35427,35960:35686,35961:36605,35962:38938,35963:40335,35964:33464,35965:36814,35966:39912,35968:21127,35969:25119,35970:25731,35971:28608,35972:38553,35973:26689,35974:20625,35975:27424,35976:27770,35977:28500,35978:31348,35979:32080,35980:34880,35981:35363,35982:26376,35983:20214,35984:20537,35985:20518,35986:20581,35987:20860,35988:21048,35989:21091,35990:21927,35991:22287,35992:22533,35993:23244,35994:24314,35995:25010,35996:25080,35997:25331,35998:25458,35999:26908,36e3:27177,36001:29309,36002:29356,36003:29486,36004:30740,36005:30831,36006:32121,36007:30476,36008:32937,36009:35211,36010:35609,36011:36066,\n36012:36562,36013:36963,36014:37749,36015:38522,36016:38997,36017:39443,36018:40568,36019:20803,36020:21407,36021:21427,36022:24187,36023:24358,36024:28187,36025:28304,36026:29572,36027:29694,36028:32067,36029:33335,36030:35328,36031:35578,36032:38480,36033:20046,36034:20491,36035:21476,36036:21628,36037:22266,36038:22993,36039:23396,36040:24049,36041:24235,36042:24359,36043:25144,36044:25925,36045:26543,36046:28246,36047:29392,36048:31946,36049:34996,36050:32929,36051:32993,36052:33776,36053:34382,36054:35463,36055:36328,36056:37431,36057:38599,36058:39015,36059:40723,36060:20116,36061:20114,36062:20237,36063:21320,36064:21577,36065:21566,36066:23087,36067:24460,36068:24481,36069:24735,36070:26791,36071:27278,36072:29786,36073:30849,36074:35486,36075:35492,36076:35703,36077:37264,36078:20062,36079:39881,36080:20132,36081:20348,36082:20399,36083:20505,36084:20502,36085:20809,36086:20844,36087:21151,36088:21177,36089:21246,36090:21402,36091:21475,36092:21521,36160:21518,36161:21897,36162:22353,36163:22434,36164:22909,36165:23380,36166:23389,36167:23439,36168:24037,36169:24039,36170:24055,36171:24184,36172:24195,36173:24218,36174:24247,36175:24344,36176:24658,36177:24908,36178:25239,36179:25304,36180:25511,36181:25915,36182:26114,36183:26179,36184:26356,36185:26477,36186:26657,36187:26775,36188:27083,36189:27743,36190:27946,36191:28009,36192:28207,36193:28317,36194:30002,36195:30343,36196:30828,36197:31295,36198:31968,36199:32005,36200:32024,36201:32094,36202:32177,36203:32789,36204:32771,36205:32943,36206:32945,36207:33108,36208:33167,36209:33322,36210:33618,36211:34892,36212:34913,36213:35611,36214:36002,36215:36092,36216:37066,36217:37237,36218:37489,36219:30783,36220:37628,36221:38308,36222:38477,36224:38917,36225:39321,36226:39640,36227:40251,36228:21083,36229:21163,36230:21495,36231:21512,36232:22741,36233:25335,36234:28640,36235:35946,36236:36703,36237:40633,36238:20811,36239:21051,36240:21578,36241:22269,36242:31296,36243:37239,36244:40288,36245:40658,36246:29508,36247:28425,36248:33136,36249:29969,36250:24573,36251:24794,36252:39592,36253:29403,36254:36796,36255:27492,36256:38915,36257:20170,36258:22256,36259:22372,36260:22718,36261:23130,36262:24680,36263:25031,36264:26127,36265:26118,36266:26681,36267:26801,36268:28151,36269:30165,36270:32058,36271:33390,36272:39746,36273:20123,36274:20304,36275:21449,36276:21766,36277:23919,36278:24038,36279:24046,36280:26619,36281:27801,36282:29811,36283:30722,36284:35408,36285:37782,36286:35039,36287:22352,36288:24231,36289:25387,36290:20661,36291:20652,36292:20877,36293:26368,36294:21705,36295:22622,36296:22971,36297:23472,36298:24425,36299:25165,36300:25505,36301:26685,36302:27507,36303:28168,36304:28797,36305:37319,36306:29312,36307:30741,36308:30758,36309:31085,36310:25998,36311:32048,36312:33756,36313:35009,36314:36617,36315:38555,36316:21092,36317:22312,36318:26448,36319:32618,36320:36001,36321:20916,36322:22338,36323:38442,36324:22586,36325:27018,36326:32948,36327:21682,36328:23822,36329:22524,36330:30869,36331:40442,36332:20316,36333:21066,36334:21643,36335:25662,36336:26152,36337:26388,36338:26613,36339:31364,36340:31574,36341:32034,36342:37679,36343:26716,36344:39853,36345:31545,36346:21273,36347:20874,36348:21047,36416:23519,36417:25334,36418:25774,36419:25830,36420:26413,36421:27578,36422:34217,36423:38609,36424:30352,36425:39894,36426:25420,36427:37638,36428:39851,36429:30399,36430:26194,36431:19977,36432:20632,36433:21442,36434:23665,36435:24808,36436:25746,36437:25955,36438:26719,36439:29158,36440:29642,36441:29987,36442:31639,36443:32386,36444:34453,36445:35715,36446:36059,36447:37240,36448:39184,36449:26028,36450:26283,36451:27531,36452:20181,36453:20180,36454:20282,36455:20351,36456:21050,36457:21496,36458:21490,36459:21987,36460:22235,36461:22763,36462:22987,36463:22985,36464:23039,36465:23376,36466:23629,36467:24066,36468:24107,36469:24535,36470:24605,36471:25351,36472:25903,36473:23388,36474:26031,36475:26045,36476:26088,36477:26525,36478:27490,36480:27515,36481:27663,36482:29509,36483:31049,36484:31169,36485:31992,36486:32025,36487:32043,36488:32930,36489:33026,36490:33267,36491:35222,36492:35422,36493:35433,36494:35430,36495:35468,36496:35566,36497:36039,36498:36060,36499:38604,36500:39164,36501:27503,36502:20107,36503:20284,36504:20365,36505:20816,36506:23383,36507:23546,36508:24904,36509:25345,36510:26178,36511:27425,36512:28363,36513:27835,36514:29246,36515:29885,36516:30164,36517:30913,36518:31034,36519:32780,36520:32819,36521:33258,36522:33940,36523:36766,36524:27728,36525:40575,36526:24335,36527:35672,36528:40235,36529:31482,36530:36600,36531:23437,36532:38635,36533:19971,36534:21489,36535:22519,36536:22833,36537:23241,36538:23460,36539:24713,36540:28287,36541:28422,36542:30142,36543:36074,36544:23455,36545:34048,36546:31712,36547:20594,36548:26612,36549:33437,36550:23649,36551:34122,36552:32286,36553:33294,36554:20889,36555:23556,36556:25448,36557:36198,36558:26012,36559:29038,36560:31038,36561:32023,36562:32773,36563:35613,36564:36554,36565:36974,36566:34503,36567:37034,36568:20511,36569:21242,36570:23610,36571:26451,36572:28796,36573:29237,36574:37196,36575:37320,36576:37675,36577:33509,36578:23490,36579:24369,36580:24825,36581:20027,36582:21462,36583:23432,36584:25163,36585:26417,36586:27530,36587:29417,36588:29664,36589:31278,36590:33131,36591:36259,36592:37202,36593:39318,36594:20754,36595:21463,36596:21610,36597:23551,36598:25480,36599:27193,36600:32172,36601:38656,36602:22234,36603:21454,36604:21608,36672:23447,36673:23601,36674:24030,36675:20462,36676:24833,36677:25342,36678:27954,36679:31168,36680:31179,36681:32066,36682:32333,36683:32722,36684:33261,36685:33311,36686:33936,36687:34886,36688:35186,36689:35728,36690:36468,36691:36655,36692:36913,36693:37195,36694:37228,36695:38598,36696:37276,36697:20160,36698:20303,36699:20805,36700:21313,36701:24467,36702:25102,36703:26580,36704:27713,36705:28171,36706:29539,36707:32294,36708:37325,36709:37507,36710:21460,36711:22809,36712:23487,36713:28113,36714:31069,36715:32302,36716:31899,36717:22654,36718:29087,36719:20986,36720:34899,36721:36848,36722:20426,36723:23803,36724:26149,36725:30636,36726:31459,36727:33308,36728:39423,36729:20934,36730:24490,36731:26092,36732:26991,36733:27529,36734:28147,36736:28310,36737:28516,36738:30462,36739:32020,36740:24033,36741:36981,36742:37255,36743:38918,36744:20966,36745:21021,36746:25152,36747:26257,36748:26329,36749:28186,36750:24246,36751:32210,36752:32626,36753:26360,36754:34223,36755:34295,36756:35576,36757:21161,36758:21465,36759:22899,36760:24207,36761:24464,36762:24661,36763:37604,36764:38500,36765:20663,36766:20767,36767:21213,36768:21280,36769:21319,36770:21484,36771:21736,36772:21830,36773:21809,36774:22039,36775:22888,36776:22974,36777:23100,36778:23477,36779:23558,36780:23567,36781:23569,36782:23578,36783:24196,36784:24202,36785:24288,36786:24432,36787:25215,36788:25220,36789:25307,36790:25484,36791:25463,36792:26119,36793:26124,36794:26157,36795:26230,36796:26494,36797:26786,36798:27167,36799:27189,36800:27836,36801:28040,36802:28169,36803:28248,36804:28988,36805:28966,36806:29031,36807:30151,36808:30465,36809:30813,36810:30977,36811:31077,36812:31216,36813:31456,36814:31505,36815:31911,36816:32057,36817:32918,36818:33750,36819:33931,36820:34121,36821:34909,36822:35059,36823:35359,36824:35388,36825:35412,36826:35443,36827:35937,36828:36062,36829:37284,36830:37478,36831:37758,36832:37912,36833:38556,36834:38808,36835:19978,36836:19976,36837:19998,36838:20055,36839:20887,36840:21104,36841:22478,36842:22580,36843:22732,36844:23330,36845:24120,36846:24773,36847:25854,36848:26465,36849:26454,36850:27972,36851:29366,36852:30067,36853:31331,36854:33976,36855:35698,36856:37304,36857:37664,36858:22065,36859:22516,36860:39166,36928:25325,36929:26893,36930:27542,36931:29165,36932:32340,36933:32887,36934:33394,36935:35302,36936:39135,36937:34645,36938:36785,36939:23611,36940:20280,36941:20449,36942:20405,36943:21767,36944:23072,36945:23517,36946:23529,36947:24515,36948:24910,36949:25391,36950:26032,36951:26187,36952:26862,36953:27035,36954:28024,36955:28145,36956:30003,36957:30137,36958:30495,36959:31070,36960:31206,36961:32051,36962:33251,36963:33455,36964:34218,36965:35242,36966:35386,36967:36523,36968:36763,36969:36914,36970:37341,36971:38663,36972:20154,36973:20161,36974:20995,36975:22645,36976:22764,36977:23563,36978:29978,36979:23613,36980:33102,36981:35338,36982:36805,36983:38499,36984:38765,36985:31525,36986:35535,36987:38920,36988:37218,36989:22259,36990:21416,36992:36887,36993:21561,36994:22402,36995:24101,36996:25512,36997:27700,36998:28810,36999:30561,37e3:31883,37001:32736,37002:34928,37003:36930,37004:37204,37005:37648,37006:37656,37007:38543,37008:29790,37009:39620,37010:23815,37011:23913,37012:25968,37013:26530,37014:36264,37015:38619,37016:25454,37017:26441,37018:26905,37019:33733,37020:38935,37021:38592,37022:35070,37023:28548,37024:25722,37025:23544,37026:19990,37027:28716,37028:30045,37029:26159,37030:20932,37031:21046,37032:21218,37033:22995,37034:24449,37035:24615,37036:25104,37037:25919,37038:25972,37039:26143,37040:26228,37041:26866,37042:26646,37043:27491,37044:28165,37045:29298,37046:29983,37047:30427,37048:31934,37049:32854,37050:22768,37051:35069,37052:35199,37053:35488,37054:35475,37055:35531,37056:36893,37057:37266,37058:38738,37059:38745,37060:25993,37061:31246,37062:33030,37063:38587,37064:24109,37065:24796,37066:25114,37067:26021,37068:26132,37069:26512,37070:30707,37071:31309,37072:31821,37073:32318,37074:33034,37075:36012,37076:36196,37077:36321,37078:36447,37079:30889,37080:20999,37081:25305,37082:25509,37083:25666,37084:25240,37085:35373,37086:31363,37087:31680,37088:35500,37089:38634,37090:32118,37091:33292,37092:34633,37093:20185,37094:20808,37095:21315,37096:21344,37097:23459,37098:23554,37099:23574,37100:24029,37101:25126,37102:25159,37103:25776,37104:26643,37105:26676,37106:27849,37107:27973,37108:27927,37109:26579,37110:28508,37111:29006,37112:29053,37113:26059,37114:31359,37115:31661,37116:32218,37184:32330,37185:32680,37186:33146,37187:33307,37188:33337,37189:34214,37190:35438,37191:36046,37192:36341,37193:36984,37194:36983,37195:37549,37196:37521,37197:38275,37198:39854,37199:21069,37200:21892,37201:28472,37202:28982,37203:20840,37204:31109,37205:32341,37206:33203,37207:31950,37208:22092,37209:22609,37210:23720,37211:25514,37212:26366,37213:26365,37214:26970,37215:29401,37216:30095,37217:30094,37218:30990,37219:31062,37220:31199,37221:31895,37222:32032,37223:32068,37224:34311,37225:35380,37226:38459,37227:36961,37228:40736,37229:20711,37230:21109,37231:21452,37232:21474,37233:20489,37234:21930,37235:22766,37236:22863,37237:29245,37238:23435,37239:23652,37240:21277,37241:24803,37242:24819,37243:25436,37244:25475,37245:25407,37246:25531,37248:25805,37249:26089,37250:26361,37251:24035,37252:27085,37253:27133,37254:28437,37255:29157,37256:20105,37257:30185,37258:30456,37259:31379,37260:31967,37261:32207,37262:32156,37263:32865,37264:33609,37265:33624,37266:33900,37267:33980,37268:34299,37269:35013,37270:36208,37271:36865,37272:36973,37273:37783,37274:38684,37275:39442,37276:20687,37277:22679,37278:24974,37279:33235,37280:34101,37281:36104,37282:36896,37283:20419,37284:20596,37285:21063,37286:21363,37287:24687,37288:25417,37289:26463,37290:28204,37291:36275,37292:36895,37293:20439,37294:23646,37295:36042,37296:26063,37297:32154,37298:21330,37299:34966,37300:20854,37301:25539,37302:23384,37303:23403,37304:23562,37305:25613,37306:26449,37307:36956,37308:20182,37309:22810,37310:22826,37311:27760,37312:35409,37313:21822,37314:22549,37315:22949,37316:24816,37317:25171,37318:26561,37319:33333,37320:26965,37321:38464,37322:39364,37323:39464,37324:20307,37325:22534,37326:23550,37327:32784,37328:23729,37329:24111,37330:24453,37331:24608,37332:24907,37333:25140,37334:26367,37335:27888,37336:28382,37337:32974,37338:33151,37339:33492,37340:34955,37341:36024,37342:36864,37343:36910,37344:38538,37345:40667,37346:39899,37347:20195,37348:21488,37349:22823,37350:31532,37351:37261,37352:38988,37353:40441,37354:28381,37355:28711,37356:21331,37357:21828,37358:23429,37359:25176,37360:25246,37361:25299,37362:27810,37363:28655,37364:29730,37365:35351,37366:37944,37367:28609,37368:35582,37369:33592,37370:20967,37371:34552,37372:21482,37440:21481,37441:20294,37442:36948,37443:36784,37444:22890,37445:33073,37446:24061,37447:31466,37448:36799,37449:26842,37450:35895,37451:29432,37452:40008,37453:27197,37454:35504,37455:20025,37456:21336,37457:22022,37458:22374,37459:25285,37460:25506,37461:26086,37462:27470,37463:28129,37464:28251,37465:28845,37466:30701,37467:31471,37468:31658,37469:32187,37470:32829,37471:32966,37472:34507,37473:35477,37474:37723,37475:22243,37476:22727,37477:24382,37478:26029,37479:26262,37480:27264,37481:27573,37482:30007,37483:35527,37484:20516,37485:30693,37486:22320,37487:24347,37488:24677,37489:26234,37490:27744,37491:30196,37492:31258,37493:32622,37494:33268,37495:34584,37496:36933,37497:39347,37498:31689,37499:30044,37500:31481,37501:31569,37502:33988,37504:36880,37505:31209,37506:31378,37507:33590,37508:23265,37509:30528,37510:20013,37511:20210,37512:23449,37513:24544,37514:25277,37515:26172,37516:26609,37517:27880,37518:34411,37519:34935,37520:35387,37521:37198,37522:37619,37523:39376,37524:27159,37525:28710,37526:29482,37527:33511,37528:33879,37529:36015,37530:19969,37531:20806,37532:20939,37533:21899,37534:23541,37535:24086,37536:24115,37537:24193,37538:24340,37539:24373,37540:24427,37541:24500,37542:25074,37543:25361,37544:26274,37545:26397,37546:28526,37547:29266,37548:30010,37549:30522,37550:32884,37551:33081,37552:33144,37553:34678,37554:35519,37555:35548,37556:36229,37557:36339,37558:37530,37559:38263,37560:38914,37561:40165,37562:21189,37563:25431,37564:30452,37565:26389,37566:27784,37567:29645,37568:36035,37569:37806,37570:38515,37571:27941,37572:22684,37573:26894,37574:27084,37575:36861,37576:37786,37577:30171,37578:36890,37579:22618,37580:26626,37581:25524,37582:27131,37583:20291,37584:28460,37585:26584,37586:36795,37587:34086,37588:32180,37589:37716,37590:26943,37591:28528,37592:22378,37593:22775,37594:23340,37595:32044,37596:29226,37597:21514,37598:37347,37599:40372,37600:20141,37601:20302,37602:20572,37603:20597,37604:21059,37605:35998,37606:21576,37607:22564,37608:23450,37609:24093,37610:24213,37611:24237,37612:24311,37613:24351,37614:24716,37615:25269,37616:25402,37617:25552,37618:26799,37619:27712,37620:30855,37621:31118,37622:31243,37623:32224,37624:33351,37625:35330,37626:35558,37627:36420,37628:36883,37696:37048,37697:37165,37698:37336,37699:40718,37700:27877,37701:25688,37702:25826,37703:25973,37704:28404,37705:30340,37706:31515,37707:36969,37708:37841,37709:28346,37710:21746,37711:24505,37712:25764,37713:36685,37714:36845,37715:37444,37716:20856,37717:22635,37718:22825,37719:23637,37720:24215,37721:28155,37722:32399,37723:29980,37724:36028,37725:36578,37726:39003,37727:28857,37728:20253,37729:27583,37730:28593,37731:3e4,37732:38651,37733:20814,37734:21520,37735:22581,37736:22615,37737:22956,37738:23648,37739:24466,37740:26007,37741:26460,37742:28193,37743:30331,37744:33759,37745:36077,37746:36884,37747:37117,37748:37709,37749:30757,37750:30778,37751:21162,37752:24230,37753:22303,37754:22900,37755:24594,37756:20498,37757:20826,37758:20908,37760:20941,37761:20992,37762:21776,37763:22612,37764:22616,37765:22871,37766:23445,37767:23798,37768:23947,37769:24764,37770:25237,37771:25645,37772:26481,37773:26691,37774:26812,37775:26847,37776:30423,37777:28120,37778:28271,37779:28059,37780:28783,37781:29128,37782:24403,37783:30168,37784:31095,37785:31561,37786:31572,37787:31570,37788:31958,37789:32113,37790:21040,37791:33891,37792:34153,37793:34276,37794:35342,37795:35588,37796:35910,37797:36367,37798:36867,37799:36879,37800:37913,37801:38518,37802:38957,37803:39472,37804:38360,37805:20685,37806:21205,37807:21516,37808:22530,37809:23566,37810:24999,37811:25758,37812:27934,37813:30643,37814:31461,37815:33012,37816:33796,37817:36947,37818:37509,37819:23776,37820:40199,37821:21311,37822:24471,37823:24499,37824:28060,37825:29305,37826:30563,37827:31167,37828:31716,37829:27602,37830:29420,37831:35501,37832:26627,37833:27233,37834:20984,37835:31361,37836:26932,37837:23626,37838:40182,37839:33515,37840:23493,37841:37193,37842:28702,37843:22136,37844:23663,37845:24775,37846:25958,37847:27788,37848:35930,37849:36929,37850:38931,37851:21585,37852:26311,37853:37389,37854:22856,37855:37027,37856:20869,37857:20045,37858:20970,37859:34201,37860:35598,37861:28760,37862:25466,37863:37707,37864:26978,37865:39348,37866:32260,37867:30071,37868:21335,37869:26976,37870:36575,37871:38627,37872:27741,37873:20108,37874:23612,37875:24336,37876:36841,37877:21250,37878:36049,37879:32905,37880:34425,37881:24319,37882:26085,37883:20083,37884:20837,37952:22914,37953:23615,37954:38894,37955:20219,37956:22922,37957:24525,37958:35469,37959:28641,37960:31152,37961:31074,37962:23527,37963:33905,37964:29483,37965:29105,37966:24180,37967:24565,37968:25467,37969:25754,37970:29123,37971:31896,37972:20035,37973:24316,37974:20043,37975:22492,37976:22178,37977:24745,37978:28611,37979:32013,37980:33021,37981:33075,37982:33215,37983:36786,37984:35223,37985:34468,37986:24052,37987:25226,37988:25773,37989:35207,37990:26487,37991:27874,37992:27966,37993:29750,37994:30772,37995:23110,37996:32629,37997:33453,37998:39340,37999:20467,38e3:24259,38001:25309,38002:25490,38003:25943,38004:26479,38005:30403,38006:29260,38007:32972,38008:32954,38009:36649,38010:37197,38011:20493,38012:22521,38013:23186,38014:26757,38016:26995,38017:29028,38018:29437,38019:36023,38020:22770,38021:36064,38022:38506,38023:36889,38024:34687,38025:31204,38026:30695,38027:33833,38028:20271,38029:21093,38030:21338,38031:25293,38032:26575,38033:27850,38034:30333,38035:31636,38036:31893,38037:33334,38038:34180,38039:36843,38040:26333,38041:28448,38042:29190,38043:32283,38044:33707,38045:39361,38046:40614,38047:20989,38048:31665,38049:30834,38050:31672,38051:32903,38052:31560,38053:27368,38054:24161,38055:32908,38056:30033,38057:30048,38058:20843,38059:37474,38060:28300,38061:30330,38062:37271,38063:39658,38064:20240,38065:32624,38066:25244,38067:31567,38068:38309,38069:40169,38070:22138,38071:22617,38072:34532,38073:38588,38074:20276,38075:21028,38076:21322,38077:21453,38078:21467,38079:24070,38080:25644,38081:26001,38082:26495,38083:27710,38084:27726,38085:29256,38086:29359,38087:29677,38088:30036,38089:32321,38090:33324,38091:34281,38092:36009,38093:31684,38094:37318,38095:29033,38096:38930,38097:39151,38098:25405,38099:26217,38100:30058,38101:30436,38102:30928,38103:34115,38104:34542,38105:21290,38106:21329,38107:21542,38108:22915,38109:24199,38110:24444,38111:24754,38112:25161,38113:25209,38114:25259,38115:26e3,38116:27604,38117:27852,38118:30130,38119:30382,38120:30865,38121:31192,38122:32203,38123:32631,38124:32933,38125:34987,38126:35513,38127:36027,38128:36991,38129:38750,38130:39131,38131:27147,38132:31800,38133:20633,38134:23614,38135:24494,38136:26503,38137:27608,38138:29749,38139:30473,38140:32654,38208:40763,38209:26570,38210:31255,38211:21305,38212:30091,38213:39661,38214:24422,38215:33181,38216:33777,38217:32920,38218:24380,38219:24517,38220:30050,38221:31558,38222:36924,38223:26727,38224:23019,38225:23195,38226:32016,38227:30334,38228:35628,38229:20469,38230:24426,38231:27161,38232:27703,38233:28418,38234:29922,38235:31080,38236:34920,38237:35413,38238:35961,38239:24287,38240:25551,38241:30149,38242:31186,38243:33495,38244:37672,38245:37618,38246:33948,38247:34541,38248:39981,38249:21697,38250:24428,38251:25996,38252:27996,38253:28693,38254:36007,38255:36051,38256:38971,38257:25935,38258:29942,38259:19981,38260:20184,38261:22496,38262:22827,38263:23142,38264:23500,38265:20904,38266:24067,38267:24220,38268:24598,38269:25206,38270:25975,38272:26023,38273:26222,38274:28014,38275:29238,38276:31526,38277:33104,38278:33178,38279:33433,38280:35676,38281:36e3,38282:36070,38283:36212,38284:38428,38285:38468,38286:20398,38287:25771,38288:27494,38289:33310,38290:33889,38291:34154,38292:37096,38293:23553,38294:26963,38295:39080,38296:33914,38297:34135,38298:20239,38299:21103,38300:24489,38301:24133,38302:26381,38303:31119,38304:33145,38305:35079,38306:35206,38307:28149,38308:24343,38309:25173,38310:27832,38311:20175,38312:29289,38313:39826,38314:20998,38315:21563,38316:22132,38317:22707,38318:24996,38319:25198,38320:28954,38321:22894,38322:31881,38323:31966,38324:32027,38325:38640,38326:25991,38327:32862,38328:19993,38329:20341,38330:20853,38331:22592,38332:24163,38333:24179,38334:24330,38335:26564,38336:20006,38337:34109,38338:38281,38339:38491,38340:31859,38341:38913,38342:20731,38343:22721,38344:30294,38345:30887,38346:21029,38347:30629,38348:34065,38349:31622,38350:20559,38351:22793,38352:29255,38353:31687,38354:32232,38355:36794,38356:36820,38357:36941,38358:20415,38359:21193,38360:23081,38361:24321,38362:38829,38363:20445,38364:33303,38365:37610,38366:22275,38367:25429,38368:27497,38369:29995,38370:35036,38371:36628,38372:31298,38373:21215,38374:22675,38375:24917,38376:25098,38377:26286,38378:27597,38379:31807,38380:33769,38381:20515,38382:20472,38383:21253,38384:21574,38385:22577,38386:22857,38387:23453,38388:23792,38389:23791,38390:23849,38391:24214,38392:25265,38393:25447,38394:25918,38395:26041,38396:26379,38464:27861,38465:27873,38466:28921,38467:30770,38468:32299,38469:32990,38470:33459,38471:33804,38472:34028,38473:34562,38474:35090,38475:35370,38476:35914,38477:37030,38478:37586,38479:39165,38480:40179,38481:40300,38482:20047,38483:20129,38484:20621,38485:21078,38486:22346,38487:22952,38488:24125,38489:24536,38490:24537,38491:25151,38492:26292,38493:26395,38494:26576,38495:26834,38496:20882,38497:32033,38498:32938,38499:33192,38500:35584,38501:35980,38502:36031,38503:37502,38504:38450,38505:21536,38506:38956,38507:21271,38508:20693,38509:21340,38510:22696,38511:25778,38512:26420,38513:29287,38514:30566,38515:31302,38516:37350,38517:21187,38518:27809,38519:27526,38520:22528,38521:24140,38522:22868,38523:26412,38524:32763,38525:20961,38526:30406,38528:25705,38529:30952,38530:39764,38531:40635,38532:22475,38533:22969,38534:26151,38535:26522,38536:27598,38537:21737,38538:27097,38539:24149,38540:33180,38541:26517,38542:39850,38543:26622,38544:40018,38545:26717,38546:20134,38547:20451,38548:21448,38549:25273,38550:26411,38551:27819,38552:36804,38553:20397,38554:32365,38555:40639,38556:19975,38557:24930,38558:28288,38559:28459,38560:34067,38561:21619,38562:26410,38563:39749,38564:24051,38565:31637,38566:23724,38567:23494,38568:34588,38569:28234,38570:34001,38571:31252,38572:33032,38573:22937,38574:31885,38575:27665,38576:30496,38577:21209,38578:22818,38579:28961,38580:29279,38581:30683,38582:38695,38583:40289,38584:26891,38585:23167,38586:23064,38587:20901,38588:21517,38589:21629,38590:26126,38591:30431,38592:36855,38593:37528,38594:40180,38595:23018,38596:29277,38597:28357,38598:20813,38599:26825,38600:32191,38601:32236,38602:38754,38603:40634,38604:25720,38605:27169,38606:33538,38607:22916,38608:23391,38609:27611,38610:29467,38611:30450,38612:32178,38613:32791,38614:33945,38615:20786,38616:26408,38617:40665,38618:30446,38619:26466,38620:21247,38621:39173,38622:23588,38623:25147,38624:31870,38625:36016,38626:21839,38627:24758,38628:32011,38629:38272,38630:21249,38631:20063,38632:20918,38633:22812,38634:29242,38635:32822,38636:37326,38637:24357,38638:30690,38639:21380,38640:24441,38641:32004,38642:34220,38643:35379,38644:36493,38645:38742,38646:26611,38647:34222,38648:37971,38649:24841,38650:24840,38651:27833,38652:30290,38720:35565,38721:36664,38722:21807,38723:20305,38724:20778,38725:21191,38726:21451,38727:23461,38728:24189,38729:24736,38730:24962,38731:25558,38732:26377,38733:26586,38734:28263,38735:28044,38736:29494,38737:29495,38738:30001,38739:31056,38740:35029,38741:35480,38742:36938,38743:37009,38744:37109,38745:38596,38746:34701,38747:22805,38748:20104,38749:20313,38750:19982,38751:35465,38752:36671,38753:38928,38754:20653,38755:24188,38756:22934,38757:23481,38758:24248,38759:25562,38760:25594,38761:25793,38762:26332,38763:26954,38764:27096,38765:27915,38766:28342,38767:29076,38768:29992,38769:31407,38770:32650,38771:32768,38772:33865,38773:33993,38774:35201,38775:35617,38776:36362,38777:36965,38778:38525,38779:39178,38780:24958,38781:25233,38782:27442,38784:27779,38785:28020,38786:32716,38787:32764,38788:28096,38789:32645,38790:34746,38791:35064,38792:26469,38793:33713,38794:38972,38795:38647,38796:27931,38797:32097,38798:33853,38799:37226,38800:20081,38801:21365,38802:23888,38803:27396,38804:28651,38805:34253,38806:34349,38807:35239,38808:21033,38809:21519,38810:23653,38811:26446,38812:26792,38813:29702,38814:29827,38815:30178,38816:35023,38817:35041,38818:37324,38819:38626,38820:38520,38821:24459,38822:29575,38823:31435,38824:33870,38825:25504,38826:30053,38827:21129,38828:27969,38829:28316,38830:29705,38831:30041,38832:30827,38833:31890,38834:38534,38835:31452,38836:40845,38837:20406,38838:24942,38839:26053,38840:34396,38841:20102,38842:20142,38843:20698,38844:20001,38845:20940,38846:23534,38847:26009,38848:26753,38849:28092,38850:29471,38851:30274,38852:30637,38853:31260,38854:31975,38855:33391,38856:35538,38857:36988,38858:37327,38859:38517,38860:38936,38861:21147,38862:32209,38863:20523,38864:21400,38865:26519,38866:28107,38867:29136,38868:29747,38869:33256,38870:36650,38871:38563,38872:40023,38873:40607,38874:29792,38875:22593,38876:28057,38877:32047,38878:39006,38879:20196,38880:20278,38881:20363,38882:20919,38883:21169,38884:23994,38885:24604,38886:29618,38887:31036,38888:33491,38889:37428,38890:38583,38891:38646,38892:38666,38893:40599,38894:40802,38895:26278,38896:27508,38897:21015,38898:21155,38899:28872,38900:35010,38901:24265,38902:24651,38903:24976,38904:28451,38905:29001,38906:31806,38907:32244,38908:32879,38976:34030,38977:36899,38978:37676,38979:21570,38980:39791,38981:27347,38982:28809,38983:36034,38984:36335,38985:38706,38986:21172,38987:23105,38988:24266,38989:24324,38990:26391,38991:27004,38992:27028,38993:28010,38994:28431,38995:29282,38996:29436,38997:31725,38998:32769,38999:32894,39e3:34635,39001:37070,39002:20845,39003:40595,39004:31108,39005:32907,39006:37682,39007:35542,39008:20525,39009:21644,39010:35441,39011:27498,39012:36036,39013:33031,39014:24785,39015:26528,39016:40434,39017:20121,39018:20120,39019:39952,39020:35435,39021:34241,39022:34152,39023:26880,39024:28286,39025:30871,39026:33109,39071:24332,39072:19984,39073:19989,39074:20010,39075:20017,39076:20022,39077:20028,39078:20031,39079:20034,39080:20054,39081:20056,39082:20098,39083:20101,39084:35947,39085:20106,39086:33298,39087:24333,39088:20110,39089:20126,39090:20127,39091:20128,39092:20130,39093:20144,39094:20147,39095:20150,39096:20174,39097:20173,39098:20164,39099:20166,39100:20162,39101:20183,39102:20190,39103:20205,39104:20191,39105:20215,39106:20233,39107:20314,39108:20272,39109:20315,39110:20317,39111:20311,39112:20295,39113:20342,39114:20360,39115:20367,39116:20376,39117:20347,39118:20329,39119:20336,39120:20369,39121:20335,39122:20358,39123:20374,39124:20760,39125:20436,39126:20447,39127:20430,39128:20440,39129:20443,39130:20433,39131:20442,39132:20432,39133:20452,39134:20453,39135:20506,39136:20520,39137:20500,39138:20522,39139:20517,39140:20485,39141:20252,39142:20470,39143:20513,39144:20521,39145:20524,39146:20478,39147:20463,39148:20497,39149:20486,39150:20547,39151:20551,39152:26371,39153:20565,39154:20560,39155:20552,39156:20570,39157:20566,39158:20588,39159:20600,39160:20608,39161:20634,39162:20613,39163:20660,39164:20658,39232:20681,39233:20682,39234:20659,39235:20674,39236:20694,39237:20702,39238:20709,39239:20717,39240:20707,39241:20718,39242:20729,39243:20725,39244:20745,39245:20737,39246:20738,39247:20758,39248:20757,39249:20756,39250:20762,39251:20769,39252:20794,39253:20791,39254:20796,39255:20795,39256:20799,39257:20800,39258:20818,39259:20812,39260:20820,39261:20834,39262:31480,39263:20841,39264:20842,39265:20846,39266:20864,39267:20866,39268:22232,39269:20876,39270:20873,39271:20879,39272:20881,39273:20883,39274:20885,39275:20886,39276:20900,39277:20902,39278:20898,39279:20905,39280:20906,39281:20907,39282:20915,39283:20913,39284:20914,39285:20912,39286:20917,39287:20925,39288:20933,39289:20937,39290:20955,39291:20960,39292:34389,39293:20969,39294:20973,39296:20976,39297:20981,39298:20990,39299:20996,39300:21003,39301:21012,39302:21006,39303:21031,39304:21034,39305:21038,39306:21043,39307:21049,39308:21071,39309:21060,39310:21067,39311:21068,39312:21086,39313:21076,39314:21098,39315:21108,39316:21097,39317:21107,39318:21119,39319:21117,39320:21133,39321:21140,39322:21138,39323:21105,39324:21128,39325:21137,39326:36776,39327:36775,39328:21164,39329:21165,39330:21180,39331:21173,39332:21185,39333:21197,39334:21207,39335:21214,39336:21219,39337:21222,39338:39149,39339:21216,39340:21235,39341:21237,39342:21240,39343:21241,39344:21254,39345:21256,39346:30008,39347:21261,39348:21264,39349:21263,39350:21269,39351:21274,39352:21283,39353:21295,39354:21297,39355:21299,39356:21304,39357:21312,39358:21318,39359:21317,39360:19991,39361:21321,39362:21325,39363:20950,39364:21342,39365:21353,39366:21358,39367:22808,39368:21371,39369:21367,39370:21378,39371:21398,39372:21408,39373:21414,39374:21413,39375:21422,39376:21424,39377:21430,39378:21443,39379:31762,39380:38617,39381:21471,39382:26364,39383:29166,39384:21486,39385:21480,39386:21485,39387:21498,39388:21505,39389:21565,39390:21568,39391:21548,39392:21549,39393:21564,39394:21550,39395:21558,39396:21545,39397:21533,39398:21582,39399:21647,39400:21621,39401:21646,39402:21599,39403:21617,39404:21623,39405:21616,39406:21650,39407:21627,39408:21632,39409:21622,39410:21636,39411:21648,39412:21638,39413:21703,39414:21666,39415:21688,39416:21669,39417:21676,39418:21700,39419:21704,39420:21672,39488:21675,39489:21698,39490:21668,39491:21694,39492:21692,39493:21720,39494:21733,39495:21734,39496:21775,39497:21780,39498:21757,39499:21742,39500:21741,39501:21754,39502:21730,39503:21817,39504:21824,39505:21859,39506:21836,39507:21806,39508:21852,39509:21829,39510:21846,39511:21847,39512:21816,39513:21811,39514:21853,39515:21913,39516:21888,39517:21679,39518:21898,39519:21919,39520:21883,39521:21886,39522:21912,39523:21918,39524:21934,39525:21884,39526:21891,39527:21929,39528:21895,39529:21928,39530:21978,39531:21957,39532:21983,39533:21956,39534:21980,39535:21988,39536:21972,39537:22036,39538:22007,39539:22038,39540:22014,39541:22013,39542:22043,39543:22009,39544:22094,39545:22096,39546:29151,39547:22068,39548:22070,39549:22066,39550:22072,39552:22123,39553:22116,39554:22063,39555:22124,39556:22122,39557:22150,39558:22144,39559:22154,39560:22176,39561:22164,39562:22159,39563:22181,39564:22190,39565:22198,39566:22196,39567:22210,39568:22204,39569:22209,39570:22211,39571:22208,39572:22216,39573:22222,39574:22225,39575:22227,39576:22231,39577:22254,39578:22265,39579:22272,39580:22271,39581:22276,39582:22281,39583:22280,39584:22283,39585:22285,39586:22291,39587:22296,39588:22294,39589:21959,39590:22300,39591:22310,39592:22327,39593:22328,39594:22350,39595:22331,39596:22336,39597:22351,39598:22377,39599:22464,39600:22408,39601:22369,39602:22399,39603:22409,39604:22419,39605:22432,39606:22451,39607:22436,39608:22442,39609:22448,39610:22467,39611:22470,39612:22484,39613:22482,39614:22483,39615:22538,39616:22486,39617:22499,39618:22539,39619:22553,39620:22557,39621:22642,39622:22561,39623:22626,39624:22603,39625:22640,39626:27584,39627:22610,39628:22589,39629:22649,39630:22661,39631:22713,39632:22687,39633:22699,39634:22714,39635:22750,39636:22715,39637:22712,39638:22702,39639:22725,39640:22739,39641:22737,39642:22743,39643:22745,39644:22744,39645:22757,39646:22748,39647:22756,39648:22751,39649:22767,39650:22778,39651:22777,39652:22779,39653:22780,39654:22781,39655:22786,39656:22794,39657:22800,39658:22811,39659:26790,39660:22821,39661:22828,39662:22829,39663:22834,39664:22840,39665:22846,39666:31442,39667:22869,39668:22864,39669:22862,39670:22874,39671:22872,39672:22882,39673:22880,\n39674:22887,39675:22892,39676:22889,39744:22904,39745:22913,39746:22941,39747:20318,39748:20395,39749:22947,39750:22962,39751:22982,39752:23016,39753:23004,39754:22925,39755:23001,39756:23002,39757:23077,39758:23071,39759:23057,39760:23068,39761:23049,39762:23066,39763:23104,39764:23148,39765:23113,39766:23093,39767:23094,39768:23138,39769:23146,39770:23194,39771:23228,39772:23230,39773:23243,39774:23234,39775:23229,39776:23267,39777:23255,39778:23270,39779:23273,39780:23254,39781:23290,39782:23291,39783:23308,39784:23307,39785:23318,39786:23346,39787:23248,39788:23338,39789:23350,39790:23358,39791:23363,39792:23365,39793:23360,39794:23377,39795:23381,39796:23386,39797:23387,39798:23397,39799:23401,39800:23408,39801:23411,39802:23413,39803:23416,39804:25992,39805:23418,39806:23424,39808:23427,39809:23462,39810:23480,39811:23491,39812:23495,39813:23497,39814:23508,39815:23504,39816:23524,39817:23526,39818:23522,39819:23518,39820:23525,39821:23531,39822:23536,39823:23542,39824:23539,39825:23557,39826:23559,39827:23560,39828:23565,39829:23571,39830:23584,39831:23586,39832:23592,39833:23608,39834:23609,39835:23617,39836:23622,39837:23630,39838:23635,39839:23632,39840:23631,39841:23409,39842:23660,39843:23662,39844:20066,39845:23670,39846:23673,39847:23692,39848:23697,39849:23700,39850:22939,39851:23723,39852:23739,39853:23734,39854:23740,39855:23735,39856:23749,39857:23742,39858:23751,39859:23769,39860:23785,39861:23805,39862:23802,39863:23789,39864:23948,39865:23786,39866:23819,39867:23829,39868:23831,39869:23900,39870:23839,39871:23835,39872:23825,39873:23828,39874:23842,39875:23834,39876:23833,39877:23832,39878:23884,39879:23890,39880:23886,39881:23883,39882:23916,39883:23923,39884:23926,39885:23943,39886:23940,39887:23938,39888:23970,39889:23965,39890:23980,39891:23982,39892:23997,39893:23952,39894:23991,39895:23996,39896:24009,39897:24013,39898:24019,39899:24018,39900:24022,39901:24027,39902:24043,39903:24050,39904:24053,39905:24075,39906:24090,39907:24089,39908:24081,39909:24091,39910:24118,39911:24119,39912:24132,39913:24131,39914:24128,39915:24142,39916:24151,39917:24148,39918:24159,39919:24162,39920:24164,39921:24135,39922:24181,39923:24182,39924:24186,39925:40636,39926:24191,39927:24224,39928:24257,39929:24258,39930:24264,39931:24272,39932:24271,4e4:24278,40001:24291,40002:24285,40003:24282,40004:24283,40005:24290,40006:24289,40007:24296,40008:24297,40009:24300,40010:24305,40011:24307,40012:24304,40013:24308,40014:24312,40015:24318,40016:24323,40017:24329,40018:24413,40019:24412,40020:24331,40021:24337,40022:24342,40023:24361,40024:24365,40025:24376,40026:24385,40027:24392,40028:24396,40029:24398,40030:24367,40031:24401,40032:24406,40033:24407,40034:24409,40035:24417,40036:24429,40037:24435,40038:24439,40039:24451,40040:24450,40041:24447,40042:24458,40043:24456,40044:24465,40045:24455,40046:24478,40047:24473,40048:24472,40049:24480,40050:24488,40051:24493,40052:24508,40053:24534,40054:24571,40055:24548,40056:24568,40057:24561,40058:24541,40059:24755,40060:24575,40061:24609,40062:24672,40064:24601,40065:24592,40066:24617,40067:24590,40068:24625,40069:24603,40070:24597,40071:24619,40072:24614,40073:24591,40074:24634,40075:24666,40076:24641,40077:24682,40078:24695,40079:24671,40080:24650,40081:24646,40082:24653,40083:24675,40084:24643,40085:24676,40086:24642,40087:24684,40088:24683,40089:24665,40090:24705,40091:24717,40092:24807,40093:24707,40094:24730,40095:24708,40096:24731,40097:24726,40098:24727,40099:24722,40100:24743,40101:24715,40102:24801,40103:24760,40104:24800,40105:24787,40106:24756,40107:24560,40108:24765,40109:24774,40110:24757,40111:24792,40112:24909,40113:24853,40114:24838,40115:24822,40116:24823,40117:24832,40118:24820,40119:24826,40120:24835,40121:24865,40122:24827,40123:24817,40124:24845,40125:24846,40126:24903,40127:24894,40128:24872,40129:24871,40130:24906,40131:24895,40132:24892,40133:24876,40134:24884,40135:24893,40136:24898,40137:24900,40138:24947,40139:24951,40140:24920,40141:24921,40142:24922,40143:24939,40144:24948,40145:24943,40146:24933,40147:24945,40148:24927,40149:24925,40150:24915,40151:24949,40152:24985,40153:24982,40154:24967,40155:25004,40156:24980,40157:24986,40158:24970,40159:24977,40160:25003,40161:25006,40162:25036,40163:25034,40164:25033,40165:25079,40166:25032,40167:25027,40168:25030,40169:25018,40170:25035,40171:32633,40172:25037,40173:25062,40174:25059,40175:25078,40176:25082,40177:25076,40178:25087,40179:25085,40180:25084,40181:25086,40182:25088,40183:25096,40184:25097,40185:25101,40186:25100,40187:25108,40188:25115,40256:25118,40257:25121,40258:25130,40259:25134,40260:25136,40261:25138,40262:25139,40263:25153,40264:25166,40265:25182,40266:25187,40267:25179,40268:25184,40269:25192,40270:25212,40271:25218,40272:25225,40273:25214,40274:25234,40275:25235,40276:25238,40277:25300,40278:25219,40279:25236,40280:25303,40281:25297,40282:25275,40283:25295,40284:25343,40285:25286,40286:25812,40287:25288,40288:25308,40289:25292,40290:25290,40291:25282,40292:25287,40293:25243,40294:25289,40295:25356,40296:25326,40297:25329,40298:25383,40299:25346,40300:25352,40301:25327,40302:25333,40303:25424,40304:25406,40305:25421,40306:25628,40307:25423,40308:25494,40309:25486,40310:25472,40311:25515,40312:25462,40313:25507,40314:25487,40315:25481,40316:25503,40317:25525,40318:25451,40320:25449,40321:25534,40322:25577,40323:25536,40324:25542,40325:25571,40326:25545,40327:25554,40328:25590,40329:25540,40330:25622,40331:25652,40332:25606,40333:25619,40334:25638,40335:25654,40336:25885,40337:25623,40338:25640,40339:25615,40340:25703,40341:25711,40342:25718,40343:25678,40344:25898,40345:25749,40346:25747,40347:25765,40348:25769,40349:25736,40350:25788,40351:25818,40352:25810,40353:25797,40354:25799,40355:25787,40356:25816,40357:25794,40358:25841,40359:25831,40360:33289,40361:25824,40362:25825,40363:25260,40364:25827,40365:25839,40366:25900,40367:25846,40368:25844,40369:25842,40370:25850,40371:25856,40372:25853,40373:25880,40374:25884,40375:25861,40376:25892,40377:25891,40378:25899,40379:25908,40380:25909,40381:25911,40382:25910,40383:25912,40384:30027,40385:25928,40386:25942,40387:25941,40388:25933,40389:25944,40390:25950,40391:25949,40392:25970,40393:25976,40394:25986,40395:25987,40396:35722,40397:26011,40398:26015,40399:26027,40400:26039,40401:26051,40402:26054,40403:26049,40404:26052,40405:26060,40406:26066,40407:26075,40408:26073,40409:26080,40410:26081,40411:26097,40412:26482,40413:26122,40414:26115,40415:26107,40416:26483,40417:26165,40418:26166,40419:26164,40420:26140,40421:26191,40422:26180,40423:26185,40424:26177,40425:26206,40426:26205,40427:26212,40428:26215,40429:26216,40430:26207,40431:26210,40432:26224,40433:26243,40434:26248,40435:26254,40436:26249,40437:26244,40438:26264,40439:26269,40440:26305,40441:26297,40442:26313,40443:26302,40444:26300,40512:26308,40513:26296,40514:26326,40515:26330,40516:26336,40517:26175,40518:26342,40519:26345,40520:26352,40521:26357,40522:26359,40523:26383,40524:26390,40525:26398,40526:26406,40527:26407,40528:38712,40529:26414,40530:26431,40531:26422,40532:26433,40533:26424,40534:26423,40535:26438,40536:26462,40537:26464,40538:26457,40539:26467,40540:26468,40541:26505,40542:26480,40543:26537,40544:26492,40545:26474,40546:26508,40547:26507,40548:26534,40549:26529,40550:26501,40551:26551,40552:26607,40553:26548,40554:26604,40555:26547,40556:26601,40557:26552,40558:26596,40559:26590,40560:26589,40561:26594,40562:26606,40563:26553,40564:26574,40565:26566,40566:26599,40567:27292,40568:26654,40569:26694,40570:26665,40571:26688,40572:26701,40573:26674,40574:26702,40576:26803,40577:26667,40578:26713,40579:26723,40580:26743,40581:26751,40582:26783,40583:26767,40584:26797,40585:26772,40586:26781,40587:26779,40588:26755,40589:27310,40590:26809,40591:26740,40592:26805,40593:26784,40594:26810,40595:26895,40596:26765,40597:26750,40598:26881,40599:26826,40600:26888,40601:26840,40602:26914,40603:26918,40604:26849,40605:26892,40606:26829,40607:26836,40608:26855,40609:26837,40610:26934,40611:26898,40612:26884,40613:26839,40614:26851,40615:26917,40616:26873,40617:26848,40618:26863,40619:26920,40620:26922,40621:26906,40622:26915,40623:26913,40624:26822,40625:27001,40626:26999,40627:26972,40628:27e3,40629:26987,40630:26964,40631:27006,40632:26990,40633:26937,40634:26996,40635:26941,40636:26969,40637:26928,40638:26977,40639:26974,40640:26973,40641:27009,40642:26986,40643:27058,40644:27054,40645:27088,40646:27071,40647:27073,40648:27091,40649:27070,40650:27086,40651:23528,40652:27082,40653:27101,40654:27067,40655:27075,40656:27047,40657:27182,40658:27025,40659:27040,40660:27036,40661:27029,40662:27060,40663:27102,40664:27112,40665:27138,40666:27163,40667:27135,40668:27402,40669:27129,40670:27122,40671:27111,40672:27141,40673:27057,40674:27166,40675:27117,40676:27156,40677:27115,40678:27146,40679:27154,40680:27329,40681:27171,40682:27155,40683:27204,40684:27148,40685:27250,40686:27190,40687:27256,40688:27207,40689:27234,40690:27225,40691:27238,40692:27208,40693:27192,40694:27170,40695:27280,40696:27277,40697:27296,40698:27268,40699:27298,40700:27299,40768:27287,40769:34327,40770:27323,40771:27331,40772:27330,40773:27320,40774:27315,40775:27308,40776:27358,40777:27345,40778:27359,40779:27306,40780:27354,40781:27370,40782:27387,40783:27397,40784:34326,40785:27386,40786:27410,40787:27414,40788:39729,40789:27423,40790:27448,40791:27447,40792:30428,40793:27449,40794:39150,40795:27463,40796:27459,40797:27465,40798:27472,40799:27481,40800:27476,40801:27483,40802:27487,40803:27489,40804:27512,40805:27513,40806:27519,40807:27520,40808:27524,40809:27523,40810:27533,40811:27544,40812:27541,40813:27550,40814:27556,40815:27562,40816:27563,40817:27567,40818:27570,40819:27569,40820:27571,40821:27575,40822:27580,40823:27590,40824:27595,40825:27603,40826:27615,40827:27628,40828:27627,40829:27635,40830:27631,40832:40638,40833:27656,40834:27667,40835:27668,40836:27675,40837:27684,40838:27683,40839:27742,40840:27733,40841:27746,40842:27754,40843:27778,40844:27789,40845:27802,40846:27777,40847:27803,40848:27774,40849:27752,40850:27763,40851:27794,40852:27792,40853:27844,40854:27889,40855:27859,40856:27837,40857:27863,40858:27845,40859:27869,40860:27822,40861:27825,40862:27838,40863:27834,40864:27867,40865:27887,40866:27865,40867:27882,40868:27935,40869:34893,40870:27958,40871:27947,40872:27965,40873:27960,40874:27929,40875:27957,40876:27955,40877:27922,40878:27916,40879:28003,40880:28051,40881:28004,40882:27994,40883:28025,40884:27993,40885:28046,40886:28053,40887:28644,40888:28037,40889:28153,40890:28181,40891:28170,40892:28085,40893:28103,40894:28134,40895:28088,40896:28102,40897:28140,40898:28126,40899:28108,40900:28136,40901:28114,40902:28101,40903:28154,40904:28121,40905:28132,40906:28117,40907:28138,40908:28142,40909:28205,40910:28270,40911:28206,40912:28185,40913:28274,40914:28255,40915:28222,40916:28195,40917:28267,40918:28203,40919:28278,40920:28237,40921:28191,40922:28227,40923:28218,40924:28238,40925:28196,40926:28415,40927:28189,40928:28216,40929:28290,40930:28330,40931:28312,40932:28361,40933:28343,40934:28371,40935:28349,40936:28335,40937:28356,40938:28338,40939:28372,40940:28373,40941:28303,40942:28325,40943:28354,40944:28319,40945:28481,40946:28433,40947:28748,40948:28396,40949:28408,40950:28414,40951:28479,40952:28402,40953:28465,40954:28399,40955:28466,40956:28364,161:65377,162:65378,163:65379,164:65380,165:65381,166:65382,167:65383,168:65384,169:65385,170:65386,171:65387,172:65388,173:65389,174:65390,175:65391,176:65392,177:65393,178:65394,179:65395,180:65396,181:65397,182:65398,183:65399,184:65400,185:65401,186:65402,187:65403,188:65404,189:65405,190:65406,191:65407,192:65408,193:65409,194:65410,195:65411,196:65412,197:65413,198:65414,199:65415,200:65416,201:65417,202:65418,203:65419,204:65420,205:65421,206:65422,207:65423,208:65424,209:65425,210:65426,211:65427,212:65428,213:65429,214:65430,215:65431,216:65432,217:65433,218:65434,219:65435,220:65436,221:65437,222:65438,223:65439,57408:28478,57409:28435,57410:28407,57411:28550,57412:28538,57413:28536,57414:28545,57415:28544,57416:28527,57417:28507,57418:28659,57419:28525,57420:28546,57421:28540,57422:28504,57423:28558,57424:28561,57425:28610,57426:28518,57427:28595,57428:28579,57429:28577,57430:28580,57431:28601,57432:28614,57433:28586,57434:28639,57435:28629,57436:28652,57437:28628,57438:28632,57439:28657,57440:28654,57441:28635,57442:28681,57443:28683,57444:28666,57445:28689,57446:28673,57447:28687,57448:28670,57449:28699,57450:28698,57451:28532,57452:28701,57453:28696,57454:28703,57455:28720,57456:28734,57457:28722,57458:28753,57459:28771,57460:28825,57461:28818,57462:28847,57463:28913,57464:28844,57465:28856,57466:28851,57467:28846,57468:28895,57469:28875,57470:28893,57472:28889,57473:28937,57474:28925,57475:28956,57476:28953,57477:29029,57478:29013,57479:29064,57480:29030,57481:29026,57482:29004,57483:29014,57484:29036,57485:29071,57486:29179,57487:29060,57488:29077,57489:29096,57490:29100,57491:29143,57492:29113,57493:29118,57494:29138,57495:29129,57496:29140,57497:29134,57498:29152,57499:29164,57500:29159,57501:29173,57502:29180,57503:29177,57504:29183,57505:29197,57506:29200,57507:29211,57508:29224,57509:29229,57510:29228,57511:29232,57512:29234,57513:29243,57514:29244,57515:29247,57516:29248,57517:29254,57518:29259,57519:29272,57520:29300,57521:29310,57522:29314,57523:29313,57524:29319,57525:29330,57526:29334,57527:29346,57528:29351,57529:29369,57530:29362,57531:29379,57532:29382,57533:29380,57534:29390,57535:29394,57536:29410,57537:29408,57538:29409,57539:29433,57540:29431,57541:20495,57542:29463,57543:29450,57544:29468,57545:29462,57546:29469,57547:29492,57548:29487,57549:29481,57550:29477,57551:29502,57552:29518,57553:29519,57554:40664,57555:29527,57556:29546,57557:29544,57558:29552,57559:29560,57560:29557,57561:29563,57562:29562,57563:29640,57564:29619,57565:29646,57566:29627,57567:29632,57568:29669,57569:29678,57570:29662,57571:29858,57572:29701,57573:29807,57574:29733,57575:29688,57576:29746,57577:29754,57578:29781,57579:29759,57580:29791,57581:29785,57582:29761,57583:29788,57584:29801,57585:29808,57586:29795,57587:29802,57588:29814,57589:29822,57590:29835,57591:29854,57592:29863,57593:29898,57594:29903,57595:29908,57596:29681,57664:29920,57665:29923,57666:29927,57667:29929,57668:29934,57669:29938,57670:29936,57671:29937,57672:29944,57673:29943,57674:29956,57675:29955,57676:29957,57677:29964,57678:29966,57679:29965,57680:29973,57681:29971,57682:29982,57683:29990,57684:29996,57685:30012,57686:30020,57687:30029,57688:30026,57689:30025,57690:30043,57691:30022,57692:30042,57693:30057,57694:30052,57695:30055,57696:30059,57697:30061,57698:30072,57699:30070,57700:30086,57701:30087,57702:30068,57703:30090,57704:30089,57705:30082,57706:30100,57707:30106,57708:30109,57709:30117,57710:30115,57711:30146,57712:30131,57713:30147,57714:30133,57715:30141,57716:30136,57717:30140,57718:30129,57719:30157,57720:30154,57721:30162,57722:30169,57723:30179,57724:30174,57725:30206,57726:30207,57728:30204,57729:30209,57730:30192,57731:30202,57732:30194,57733:30195,57734:30219,57735:30221,57736:30217,57737:30239,57738:30247,57739:30240,57740:30241,57741:30242,57742:30244,57743:30260,57744:30256,57745:30267,57746:30279,57747:30280,57748:30278,57749:30300,57750:30296,57751:30305,57752:30306,57753:30312,57754:30313,57755:30314,57756:30311,57757:30316,57758:30320,57759:30322,57760:30326,57761:30328,57762:30332,57763:30336,57764:30339,57765:30344,57766:30347,57767:30350,57768:30358,57769:30355,57770:30361,57771:30362,57772:30384,57773:30388,57774:30392,57775:30393,57776:30394,57777:30402,57778:30413,57779:30422,57780:30418,57781:30430,57782:30433,57783:30437,57784:30439,57785:30442,57786:34351,57787:30459,57788:30472,57789:30471,57790:30468,57791:30505,57792:30500,57793:30494,57794:30501,57795:30502,57796:30491,57797:30519,57798:30520,57799:30535,57800:30554,57801:30568,57802:30571,57803:30555,57804:30565,57805:30591,57806:30590,57807:30585,57808:30606,57809:30603,57810:30609,57811:30624,57812:30622,57813:30640,57814:30646,57815:30649,57816:30655,57817:30652,57818:30653,57819:30651,57820:30663,57821:30669,57822:30679,57823:30682,57824:30684,57825:30691,57826:30702,57827:30716,57828:30732,57829:30738,57830:31014,57831:30752,57832:31018,57833:30789,57834:30862,57835:30836,57836:30854,57837:30844,57838:30874,57839:30860,57840:30883,57841:30901,57842:30890,57843:30895,57844:30929,57845:30918,57846:30923,57847:30932,57848:30910,57849:30908,57850:30917,57851:30922,57852:30956,57920:30951,57921:30938,57922:30973,57923:30964,57924:30983,57925:30994,57926:30993,57927:31001,57928:31020,57929:31019,57930:31040,57931:31072,57932:31063,57933:31071,57934:31066,57935:31061,57936:31059,57937:31098,57938:31103,57939:31114,57940:31133,57941:31143,57942:40779,57943:31146,57944:31150,57945:31155,57946:31161,57947:31162,57948:31177,57949:31189,57950:31207,57951:31212,57952:31201,57953:31203,57954:31240,57955:31245,57956:31256,57957:31257,57958:31264,57959:31263,57960:31104,57961:31281,57962:31291,57963:31294,57964:31287,57965:31299,57966:31319,57967:31305,57968:31329,57969:31330,57970:31337,57971:40861,57972:31344,57973:31353,57974:31357,57975:31368,57976:31383,57977:31381,57978:31384,57979:31382,57980:31401,57981:31432,57982:31408,57984:31414,57985:31429,57986:31428,57987:31423,57988:36995,57989:31431,57990:31434,57991:31437,57992:31439,57993:31445,57994:31443,57995:31449,57996:31450,57997:31453,57998:31457,57999:31458,58e3:31462,58001:31469,58002:31472,58003:31490,58004:31503,58005:31498,58006:31494,58007:31539,58008:31512,58009:31513,58010:31518,58011:31541,58012:31528,58013:31542,58014:31568,58015:31610,58016:31492,58017:31565,58018:31499,58019:31564,58020:31557,58021:31605,58022:31589,58023:31604,58024:31591,58025:31600,58026:31601,58027:31596,58028:31598,58029:31645,58030:31640,58031:31647,58032:31629,58033:31644,58034:31642,58035:31627,58036:31634,58037:31631,58038:31581,58039:31641,58040:31691,58041:31681,58042:31692,58043:31695,58044:31668,58045:31686,58046:31709,58047:31721,58048:31761,58049:31764,58050:31718,58051:31717,58052:31840,58053:31744,58054:31751,58055:31763,58056:31731,58057:31735,58058:31767,58059:31757,58060:31734,58061:31779,58062:31783,58063:31786,58064:31775,58065:31799,58066:31787,58067:31805,58068:31820,58069:31811,58070:31828,58071:31823,58072:31808,58073:31824,58074:31832,58075:31839,58076:31844,58077:31830,58078:31845,58079:31852,58080:31861,58081:31875,58082:31888,58083:31908,58084:31917,58085:31906,58086:31915,58087:31905,58088:31912,58089:31923,58090:31922,58091:31921,58092:31918,58093:31929,58094:31933,58095:31936,58096:31941,58097:31938,58098:31960,58099:31954,58100:31964,58101:31970,58102:39739,58103:31983,58104:31986,58105:31988,58106:31990,58107:31994,58108:32006,58176:32002,58177:32028,58178:32021,58179:32010,58180:32069,58181:32075,58182:32046,58183:32050,58184:32063,58185:32053,58186:32070,58187:32115,58188:32086,58189:32078,58190:32114,58191:32104,58192:32110,58193:32079,58194:32099,58195:32147,58196:32137,58197:32091,58198:32143,58199:32125,58200:32155,58201:32186,58202:32174,58203:32163,58204:32181,58205:32199,58206:32189,58207:32171,58208:32317,58209:32162,58210:32175,58211:32220,58212:32184,58213:32159,58214:32176,58215:32216,58216:32221,58217:32228,58218:32222,58219:32251,58220:32242,58221:32225,58222:32261,58223:32266,58224:32291,58225:32289,58226:32274,58227:32305,58228:32287,58229:32265,58230:32267,58231:32290,58232:32326,58233:32358,58234:32315,58235:32309,58236:32313,58237:32323,58238:32311,58240:32306,58241:32314,58242:32359,58243:32349,58244:32342,58245:32350,58246:32345,58247:32346,58248:32377,58249:32362,58250:32361,58251:32380,58252:32379,58253:32387,58254:32213,58255:32381,58256:36782,58257:32383,58258:32392,58259:32393,58260:32396,58261:32402,58262:32400,58263:32403,58264:32404,58265:32406,58266:32398,58267:32411,58268:32412,58269:32568,58270:32570,58271:32581,58272:32588,58273:32589,58274:32590,58275:32592,58276:32593,58277:32597,58278:32596,58279:32600,58280:32607,58281:32608,58282:32616,58283:32617,58284:32615,58285:32632,58286:32642,58287:32646,58288:32643,58289:32648,58290:32647,58291:32652,58292:32660,58293:32670,58294:32669,58295:32666,58296:32675,58297:32687,58298:32690,58299:32697,58300:32686,58301:32694,58302:32696,58303:35697,58304:32709,58305:32710,58306:32714,58307:32725,58308:32724,58309:32737,58310:32742,58311:32745,58312:32755,58313:32761,58314:39132,58315:32774,58316:32772,58317:32779,58318:32786,58319:32792,58320:32793,58321:32796,58322:32801,58323:32808,58324:32831,58325:32827,58326:32842,58327:32838,58328:32850,58329:32856,58330:32858,58331:32863,58332:32866,58333:32872,58334:32883,58335:32882,58336:32880,58337:32886,58338:32889,58339:32893,58340:32895,58341:32900,58342:32902,58343:32901,58344:32923,58345:32915,58346:32922,58347:32941,58348:20880,58349:32940,58350:32987,58351:32997,58352:32985,58353:32989,58354:32964,58355:32986,58356:32982,58357:33033,58358:33007,58359:33009,58360:33051,58361:33065,58362:33059,58363:33071,58364:33099,58432:38539,58433:33094,58434:33086,58435:33107,58436:33105,58437:33020,58438:33137,58439:33134,58440:33125,58441:33126,58442:33140,58443:33155,58444:33160,58445:33162,58446:33152,58447:33154,58448:33184,58449:33173,58450:33188,58451:33187,58452:33119,58453:33171,58454:33193,58455:33200,58456:33205,58457:33214,58458:33208,58459:33213,58460:33216,58461:33218,58462:33210,58463:33225,58464:33229,58465:33233,58466:33241,58467:33240,58468:33224,58469:33242,58470:33247,58471:33248,58472:33255,58473:33274,58474:33275,58475:33278,58476:33281,58477:33282,58478:33285,58479:33287,58480:33290,58481:33293,58482:33296,58483:33302,58484:33321,58485:33323,58486:33336,58487:33331,58488:33344,58489:33369,58490:33368,58491:33373,58492:33370,58493:33375,58494:33380,58496:33378,58497:33384,58498:33386,58499:33387,58500:33326,58501:33393,58502:33399,58503:33400,58504:33406,58505:33421,58506:33426,58507:33451,58508:33439,58509:33467,58510:33452,58511:33505,58512:33507,58513:33503,58514:33490,58515:33524,58516:33523,58517:33530,58518:33683,58519:33539,58520:33531,58521:33529,58522:33502,58523:33542,58524:33500,58525:33545,58526:33497,58527:33589,58528:33588,58529:33558,58530:33586,58531:33585,58532:33600,58533:33593,58534:33616,58535:33605,58536:33583,58537:33579,58538:33559,58539:33560,58540:33669,58541:33690,58542:33706,58543:33695,58544:33698,58545:33686,58546:33571,58547:33678,58548:33671,58549:33674,58550:33660,58551:33717,58552:33651,58553:33653,58554:33696,58555:33673,58556:33704,58557:33780,58558:33811,58559:33771,58560:33742,58561:33789,58562:33795,58563:33752,58564:33803,58565:33729,58566:33783,58567:33799,58568:33760,58569:33778,58570:33805,58571:33826,58572:33824,58573:33725,58574:33848,58575:34054,58576:33787,58577:33901,58578:33834,58579:33852,58580:34138,58581:33924,58582:33911,58583:33899,58584:33965,58585:33902,58586:33922,58587:33897,58588:33862,58589:33836,58590:33903,58591:33913,58592:33845,58593:33994,58594:33890,58595:33977,58596:33983,58597:33951,58598:34009,58599:33997,58600:33979,58601:34010,58602:34e3,58603:33985,58604:33990,58605:34006,58606:33953,58607:34081,58608:34047,58609:34036,58610:34071,58611:34072,58612:34092,58613:34079,58614:34069,58615:34068,58616:34044,58617:34112,58618:34147,58619:34136,58620:34120,58688:34113,58689:34306,58690:34123,58691:34133,58692:34176,58693:34212,58694:34184,58695:34193,58696:34186,58697:34216,58698:34157,58699:34196,58700:34203,58701:34282,58702:34183,58703:34204,58704:34167,58705:34174,58706:34192,58707:34249,58708:34234,58709:34255,58710:34233,58711:34256,58712:34261,58713:34269,58714:34277,58715:34268,58716:34297,58717:34314,58718:34323,58719:34315,58720:34302,58721:34298,58722:34310,58723:34338,58724:34330,58725:34352,58726:34367,58727:34381,58728:20053,58729:34388,58730:34399,58731:34407,58732:34417,58733:34451,58734:34467,58735:34473,58736:34474,58737:34443,58738:34444,58739:34486,58740:34479,58741:34500,58742:34502,58743:34480,58744:34505,58745:34851,58746:34475,58747:34516,58748:34526,58749:34537,58750:34540,58752:34527,58753:34523,58754:34543,58755:34578,58756:34566,58757:34568,58758:34560,58759:34563,58760:34555,58761:34577,58762:34569,58763:34573,58764:34553,58765:34570,58766:34612,58767:34623,58768:34615,58769:34619,58770:34597,58771:34601,58772:34586,58773:34656,58774:34655,58775:34680,58776:34636,58777:34638,58778:34676,58779:34647,58780:34664,58781:34670,58782:34649,58783:34643,58784:34659,58785:34666,58786:34821,58787:34722,58788:34719,58789:34690,58790:34735,58791:34763,58792:34749,58793:34752,58794:34768,58795:38614,58796:34731,58797:34756,58798:34739,58799:34759,58800:34758,58801:34747,58802:34799,58803:34802,58804:34784,58805:34831,58806:34829,58807:34814,58808:34806,58809:34807,58810:34830,58811:34770,58812:34833,58813:34838,58814:34837,58815:34850,58816:34849,58817:34865,58818:34870,58819:34873,58820:34855,58821:34875,58822:34884,58823:34882,58824:34898,58825:34905,58826:34910,58827:34914,58828:34923,58829:34945,58830:34942,58831:34974,58832:34933,58833:34941,58834:34997,58835:34930,58836:34946,58837:34967,58838:34962,58839:34990,58840:34969,58841:34978,58842:34957,58843:34980,58844:34992,58845:35007,58846:34993,58847:35011,58848:35012,58849:35028,58850:35032,58851:35033,58852:35037,58853:35065,58854:35074,58855:35068,58856:35060,58857:35048,58858:35058,58859:35076,58860:35084,58861:35082,58862:35091,58863:35139,58864:35102,58865:35109,58866:35114,58867:35115,58868:35137,58869:35140,58870:35131,58871:35126,58872:35128,58873:35148,58874:35101,58875:35168,58876:35166,58944:35174,58945:35172,58946:35181,58947:35178,58948:35183,58949:35188,58950:35191,58951:35198,58952:35203,58953:35208,58954:35210,58955:35219,58956:35224,58957:35233,58958:35241,58959:35238,58960:35244,58961:35247,58962:35250,58963:35258,58964:35261,58965:35263,58966:35264,58967:35290,58968:35292,58969:35293,58970:35303,58971:35316,58972:35320,58973:35331,58974:35350,58975:35344,58976:35340,58977:35355,58978:35357,58979:35365,58980:35382,58981:35393,58982:35419,58983:35410,58984:35398,58985:35400,58986:35452,58987:35437,58988:35436,58989:35426,58990:35461,58991:35458,58992:35460,58993:35496,58994:35489,58995:35473,58996:35493,58997:35494,58998:35482,58999:35491,59e3:35524,59001:35533,59002:35522,59003:35546,59004:35563,59005:35571,59006:35559,59008:35556,59009:35569,59010:35604,59011:35552,59012:35554,59013:35575,59014:35550,59015:35547,59016:35596,59017:35591,59018:35610,59019:35553,59020:35606,59021:35600,59022:35607,59023:35616,59024:35635,59025:38827,59026:35622,59027:35627,59028:35646,59029:35624,59030:35649,59031:35660,59032:35663,59033:35662,59034:35657,59035:35670,59036:35675,59037:35674,59038:35691,59039:35679,59040:35692,59041:35695,59042:35700,59043:35709,59044:35712,59045:35724,59046:35726,59047:35730,59048:35731,59049:35734,59050:35737,59051:35738,59052:35898,59053:35905,59054:35903,59055:35912,59056:35916,59057:35918,59058:35920,59059:35925,59060:35938,59061:35948,59062:35960,59063:35962,59064:35970,59065:35977,59066:35973,59067:35978,59068:35981,59069:35982,59070:35988,59071:35964,59072:35992,59073:25117,59074:36013,59075:36010,59076:36029,59077:36018,59078:36019,59079:36014,59080:36022,59081:36040,59082:36033,59083:36068,59084:36067,59085:36058,59086:36093,59087:36090,59088:36091,59089:36100,59090:36101,59091:36106,59092:36103,59093:36111,59094:36109,59095:36112,59096:40782,59097:36115,59098:36045,59099:36116,59100:36118,59101:36199,59102:36205,59103:36209,59104:36211,59105:36225,59106:36249,59107:36290,59108:36286,59109:36282,59110:36303,59111:36314,59112:36310,59113:36300,59114:36315,59115:36299,59116:36330,59117:36331,59118:36319,59119:36323,59120:36348,59121:36360,59122:36361,59123:36351,59124:36381,59125:36382,59126:36368,59127:36383,59128:36418,59129:36405,59130:36400,59131:36404,59132:36426,59200:36423,59201:36425,59202:36428,59203:36432,59204:36424,59205:36441,59206:36452,59207:36448,59208:36394,59209:36451,59210:36437,59211:36470,59212:36466,59213:36476,59214:36481,59215:36487,59216:36485,59217:36484,59218:36491,59219:36490,59220:36499,59221:36497,59222:36500,59223:36505,59224:36522,59225:36513,59226:36524,59227:36528,59228:36550,59229:36529,59230:36542,59231:36549,59232:36552,59233:36555,59234:36571,59235:36579,59236:36604,59237:36603,59238:36587,59239:36606,59240:36618,59241:36613,59242:36629,59243:36626,59244:36633,59245:36627,59246:36636,59247:36639,59248:36635,59249:36620,59250:36646,59251:36659,59252:36667,59253:36665,59254:36677,59255:36674,59256:36670,59257:36684,59258:36681,59259:36678,59260:36686,59261:36695,59262:36700,59264:36706,59265:36707,59266:36708,59267:36764,59268:36767,59269:36771,59270:36781,59271:36783,59272:36791,59273:36826,59274:36837,59275:36834,59276:36842,59277:36847,59278:36999,59279:36852,59280:36869,59281:36857,59282:36858,59283:36881,59284:36885,59285:36897,59286:36877,59287:36894,59288:36886,59289:36875,59290:36903,59291:36918,59292:36917,59293:36921,59294:36856,59295:36943,59296:36944,59297:36945,59298:36946,59299:36878,59300:36937,59301:36926,59302:36950,59303:36952,59304:36958,59305:36968,59306:36975,59307:36982,59308:38568,59309:36978,59310:36994,59311:36989,59312:36993,59313:36992,59314:37002,59315:37001,59316:37007,59317:37032,59318:37039,59319:37041,59320:37045,59321:37090,59322:37092,59323:25160,59324:37083,59325:37122,59326:37138,59327:37145,59328:37170,59329:37168,59330:37194,59331:37206,59332:37208,59333:37219,59334:37221,59335:37225,59336:37235,59337:37234,59338:37259,59339:37257,59340:37250,59341:37282,59342:37291,59343:37295,59344:37290,59345:37301,59346:37300,59347:37306,59348:37312,59349:37313,59350:37321,59351:37323,59352:37328,59353:37334,59354:37343,59355:37345,59356:37339,59357:37372,59358:37365,59359:37366,59360:37406,59361:37375,59362:37396,59363:37420,59364:37397,59365:37393,59366:37470,59367:37463,59368:37445,59369:37449,59370:37476,59371:37448,59372:37525,59373:37439,59374:37451,59375:37456,59376:37532,59377:37526,59378:37523,59379:37531,59380:37466,59381:37583,59382:37561,59383:37559,59384:37609,59385:37647,59386:37626,59387:37700,59388:37678,59456:37657,59457:37666,59458:37658,59459:37667,59460:37690,59461:37685,59462:37691,59463:37724,59464:37728,59465:37756,59466:37742,59467:37718,59468:37808,59469:37804,59470:37805,59471:37780,59472:37817,59473:37846,59474:37847,59475:37864,59476:37861,59477:37848,59478:37827,59479:37853,59480:37840,59481:37832,59482:37860,59483:37914,59484:37908,59485:37907,59486:37891,59487:37895,59488:37904,59489:37942,59490:37931,59491:37941,59492:37921,59493:37946,59494:37953,59495:37970,59496:37956,59497:37979,59498:37984,59499:37986,59500:37982,59501:37994,59502:37417,59503:38e3,59504:38005,59505:38007,59506:38013,59507:37978,59508:38012,59509:38014,59510:38017,59511:38015,59512:38274,59513:38279,59514:38282,59515:38292,59516:38294,59517:38296,59518:38297,59520:38304,59521:38312,59522:38311,59523:38317,59524:38332,59525:38331,59526:38329,59527:38334,59528:38346,59529:28662,59530:38339,59531:38349,59532:38348,59533:38357,59534:38356,59535:38358,59536:38364,59537:38369,59538:38373,59539:38370,59540:38433,59541:38440,59542:38446,59543:38447,59544:38466,59545:38476,59546:38479,59547:38475,59548:38519,59549:38492,59550:38494,59551:38493,59552:38495,59553:38502,59554:38514,59555:38508,59556:38541,59557:38552,59558:38549,59559:38551,59560:38570,59561:38567,59562:38577,59563:38578,59564:38576,59565:38580,59566:38582,59567:38584,59568:38585,59569:38606,59570:38603,59571:38601,59572:38605,59573:35149,59574:38620,59575:38669,59576:38613,59577:38649,59578:38660,59579:38662,59580:38664,59581:38675,59582:38670,59583:38673,59584:38671,59585:38678,59586:38681,59587:38692,59588:38698,59589:38704,59590:38713,59591:38717,59592:38718,59593:38724,59594:38726,59595:38728,59596:38722,59597:38729,59598:38748,59599:38752,59600:38756,59601:38758,59602:38760,59603:21202,59604:38763,59605:38769,59606:38777,59607:38789,59608:38780,59609:38785,59610:38778,59611:38790,59612:38795,59613:38799,59614:38800,59615:38812,59616:38824,59617:38822,59618:38819,59619:38835,59620:38836,59621:38851,59622:38854,59623:38856,\n59624:38859,59625:38876,59626:38893,59627:40783,59628:38898,59629:31455,59630:38902,59631:38901,59632:38927,59633:38924,59634:38968,59635:38948,59636:38945,59637:38967,59638:38973,59639:38982,59640:38991,59641:38987,59642:39019,59643:39023,59644:39024,59712:39025,59713:39028,59714:39027,59715:39082,59716:39087,59717:39089,59718:39094,59719:39108,59720:39107,59721:39110,59722:39145,59723:39147,59724:39171,59725:39177,59726:39186,59727:39188,59728:39192,59729:39201,59730:39197,59731:39198,59732:39204,59733:39200,59734:39212,59735:39214,59736:39229,59737:39230,59738:39234,59739:39241,59740:39237,59741:39248,59742:39243,59743:39249,59744:39250,59745:39244,59746:39253,59747:39319,59748:39320,59749:39333,59750:39341,59751:39342,59752:39356,59753:39391,59754:39387,59755:39389,59756:39384,59757:39377,59758:39405,59759:39406,59760:39409,59761:39410,59762:39419,59763:39416,59764:39425,59765:39439,59766:39429,59767:39394,59768:39449,59769:39467,59770:39479,59771:39493,59772:39490,59773:39488,59774:39491,59776:39486,59777:39509,59778:39501,59779:39515,59780:39511,59781:39519,59782:39522,59783:39525,59784:39524,59785:39529,59786:39531,59787:39530,59788:39597,59789:39600,59790:39612,59791:39616,59792:39631,59793:39633,59794:39635,59795:39636,59796:39646,59797:39647,59798:39650,59799:39651,59800:39654,59801:39663,59802:39659,59803:39662,59804:39668,59805:39665,59806:39671,59807:39675,59808:39686,59809:39704,59810:39706,59811:39711,59812:39714,59813:39715,59814:39717,59815:39719,59816:39720,59817:39721,59818:39722,59819:39726,59820:39727,59821:39730,59822:39748,59823:39747,59824:39759,59825:39757,59826:39758,59827:39761,59828:39768,59829:39796,59830:39827,59831:39811,59832:39825,59833:39830,59834:39831,59835:39839,59836:39840,59837:39848,59838:39860,59839:39872,59840:39882,59841:39865,59842:39878,59843:39887,59844:39889,59845:39890,59846:39907,59847:39906,59848:39908,59849:39892,59850:39905,59851:39994,59852:39922,59853:39921,59854:39920,59855:39957,59856:39956,59857:39945,59858:39955,59859:39948,59860:39942,59861:39944,59862:39954,59863:39946,59864:39940,59865:39982,59866:39963,59867:39973,59868:39972,59869:39969,59870:39984,59871:40007,59872:39986,59873:40006,59874:39998,59875:40026,59876:40032,59877:40039,59878:40054,59879:40056,59880:40167,59881:40172,59882:40176,59883:40201,59884:40200,59885:40171,59886:40195,59887:40198,59888:40234,59889:40230,59890:40367,59891:40227,59892:40223,59893:40260,59894:40213,59895:40210,59896:40257,59897:40255,59898:40254,59899:40262,59900:40264,59968:40285,59969:40286,59970:40292,59971:40273,59972:40272,59973:40281,59974:40306,59975:40329,59976:40327,59977:40363,59978:40303,59979:40314,59980:40346,59981:40356,59982:40361,59983:40370,59984:40388,59985:40385,59986:40379,59987:40376,59988:40378,59989:40390,59990:40399,59991:40386,59992:40409,59993:40403,59994:40440,59995:40422,59996:40429,59997:40431,59998:40445,59999:40474,6e4:40475,60001:40478,60002:40565,60003:40569,60004:40573,60005:40577,60006:40584,60007:40587,60008:40588,60009:40594,60010:40597,60011:40593,60012:40605,60013:40613,60014:40617,60015:40632,60016:40618,60017:40621,60018:38753,60019:40652,60020:40654,60021:40655,60022:40656,60023:40660,60024:40668,60025:40670,60026:40669,60027:40672,60028:40677,60029:40680,60030:40687,60032:40692,60033:40694,60034:40695,60035:40697,60036:40699,60037:40700,60038:40701,60039:40711,60040:40712,60041:30391,60042:40725,60043:40737,60044:40748,60045:40766,60046:40778,60047:40786,60048:40788,60049:40803,60050:40799,60051:40800,60052:40801,60053:40806,60054:40807,60055:40812,60056:40810,60057:40823,60058:40818,60059:40822,60060:40853,60061:40860,60062:40864,60063:22575,60064:27079,60065:36953,60066:29796,60067:20956,60068:29081}},function(o,e,r){"use strict";function t(o,e,r,t){e.degree()=t/2;){var n=c,l=a;if(c=s,a=d,c.isZero())return null;s=n;for(var i=o.zero,B=c.getCoefficient(c.degree()),k=o.inverse(B);s.degree()>=c.degree()&&!s.isZero();){var u=s.degree()-c.degree(),C=o.multiply(s.getCoefficient(s.degree()),k);i=i.addOrSubtract(o.buildMonomial(u,C)),s=s.addOrSubtract(c.multiplyByMonomial(u,C))}if(d=i.multiplyPoly(a).addOrSubtract(l),s.degree()>=c.degree())return null}var m=d.getCoefficient(0);if(0===m)return null;var f=o.inverse(m);return[d.multiply(f),s.multiply(f)];var w}function c(o,e){var r=e.degree();if(1===r)return[e.getCoefficient(1)];for(var t=new Array(r),c=0,s=1;s=a&&d>=n?(l=[e,o,r],t=l[0],c=l[1],s=l[2]):n>=d&&n>=a?(i=[o,e,r],t=i[0],c=i[1],s=i[2]):(B=[o,r,e],t=B[0],c=B[1],s=B[2]),(s.x-c.x)*(t.y-c.y)-(s.y-c.y)*(t.x-c.x)<0&&(k=[s,t],t=k[0],s=k[1]),{bottomLeft:t,topLeft:c,topRight:s};var l,i,B,k}function s(o,e,r,c){var s=(t(d(o,r,c,5))/7+t(d(o,e,c,5))/7+t(d(r,o,c,5))/7+t(d(e,o,c,5))/7)/4;if(s<1)throw new Error("Invalid module size");var a=Math.round(C(o,e)/s),n=Math.round(C(o,r)/s),l=Math.floor((a+n)/2)+7;switch(l%4){case 0:l++;break;case 2:l--}return{dimension:l,moduleSize:s}}function a(o,e,r,t){var c,s,a,d,n=[{x:Math.floor(o.x),y:Math.floor(o.y)}],l=Math.abs(e.y-o.y)>Math.abs(e.x-o.x);l?(c=Math.floor(o.y),s=Math.floor(o.x),a=Math.floor(e.y),d=Math.floor(e.x)):(c=Math.floor(o.x),s=Math.floor(o.y),a=Math.floor(e.x),d=Math.floor(e.y));for(var i=Math.abs(a-c),B=Math.abs(d-s),k=Math.floor(-i/2),u=c0){if(P===d)break;P+=m,k-=i}}for(var p=[],y=0;y=o.bottom.startX&&w<=o.bottom.endX||f>=o.bottom.startX&&w<=o.bottom.endX||w<=o.bottom.startX&&f>=o.bottom.endX&&l[2]/(o.bottom.endX-o.bottom.startX)k});v.length>0?v[0].bottom=P:r.push({top:P,bottom:P})}if(m){var h=e-l[4],p=h-l[3],P={startX:p,y:c,endX:h},v=d.filter(function(o){return p>=o.bottom.startX&&p<=o.bottom.endX||h>=o.bottom.startX&&p<=o.bottom.endX||p<=o.bottom.startX&&h>=o.bottom.endX&&l[2]/(o.bottom.endX-o.bottom.startX)k});v.length>0?v[0].bottom=P:d.push({top:P,bottom:P})}}}(i);e.push.apply(e,r.filter(function(o){return o.bottom.y!==c&&o.bottom.y-o.top.y>=2})),r=r.filter(function(o){return o.bottom.y===c}),a.push.apply(a,d.filter(function(o){return o.bottom.y!==c})),d=d.filter(function(o){return o.bottom.y===c})}(n);e.push.apply(e,r.filter(function(o){return o.bottom.y-o.top.y>=2})),a.push.apply(a,d);var i=e.filter(function(o){return o.bottom.y-o.top.y>=2}).map(function(e){var r=(e.top.startX+e.top.endX+e.bottom.startX+e.bottom.endX)/4,c=(e.top.y+e.bottom.y+1)/2;if(o.get(Math.round(r),Math.round(c))){\nvar s=[e.top.endX-e.top.startX,e.bottom.endX-e.bottom.startX,e.bottom.y-e.top.y+1],a=t(s)/s.length;return{score:l({x:Math.round(r),y:Math.round(c)},[1,1,3,1,1],o),x:r,y:c,size:a}}}).filter(function(o){return!!o}).sort(function(o,e){return o.score-e.score}).map(function(o,e,r){if(e>B)return null;var t=r.filter(function(o,r){return e!==r}).map(function(e){return{x:e.x,y:e.y,score:e.score+Math.pow(e.size-o.size,2)/o.size,size:e.size}}).sort(function(o,e){return o.score-e.score});if(t.length<2)return null;var c=o.score+t[0].score+t[1].score;return{points:[o].concat(t.slice(0,2)),score:c}}).filter(function(o){return!!o}).sort(function(o,e){return o.score-e.score});if(0===i.length)return null;var m,f,w=c(i[0].points[0],i[0].points[1],i[0].points[2]),P=w.topRight,v=w.topLeft,h=w.bottomLeft;try{L=s(v,P,h,o),m=L.dimension,f=L.moduleSize}catch(o){return null}var p={x:P.x-v.x+h.x,y:P.y-v.y+h.y},y=(C(v,h)+C(v,P))/2/f,b=1-3/y,g={x:v.x+b*(p.x-v.x),y:v.y+b*(p.y-v.y)},x=a.map(function(e){var r=(e.top.startX+e.top.endX+e.bottom.startX+e.bottom.endX)/4,c=(e.top.y+e.bottom.y+1)/2;if(o.get(Math.floor(r),Math.floor(c))){var s=[e.top.endX-e.top.startX,e.bottom.endX-e.bottom.startX,e.bottom.y-e.top.y+1];t(s);return{x:r,y:c,score:l({x:Math.floor(r),y:Math.floor(c)},[1,1,1],o)+C({x:r,y:c},g)}}}).filter(function(o){return!!o}).sort(function(o,e){return o.score-e.score}),M=y>=15&&x.length?x[0]:g;return{alignmentPattern:{x:M.x,y:M.y},bottomLeft:{x:h.x,y:h.y},dimension:m,topLeft:{x:v.x,y:v.y},topRight:{x:P.x,y:P.y}};var L}Object.defineProperty(e,"__esModule",{value:!0});var B=4,k=.5,u=1.5,C=function(o,e){return Math.sqrt(Math.pow(e.x-o.x,2)+Math.pow(e.y-o.y,2))};e.locate=i}]).default}),self.addEventListener("message",function(o){var e=jsQR(o.data.data,o.data.width,o.data.height);e?postMessage(e.data):postMessage(null)});'],{type:"application/javascript"}),h=["delay","legacyMode","facingMode"];e.exports=(n=o=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.els={},r.state={mirrorVideo:!1},r.initiate=r.initiate.bind(r),r.initiateLegacyMode=r.initiateLegacyMode.bind(r),r.check=r.check.bind(r),r.handleVideo=r.handleVideo.bind(r),r.handleLoadStart=r.handleLoadStart.bind(r),r.handleInputChange=r.handleInputChange.bind(r),r.clearComponent=r.clearComponent.bind(r),r.handleReaderLoad=r.handleReaderLoad.bind(r),r.openImageDialog=r.openImageDialog.bind(r),r.handleWorkerMessage=r.handleWorkerMessage.bind(r),r.setRefFactory=r.setRefFactory.bind(r),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.worker=new Worker(URL.createObjectURL(m)),this.worker.onmessage=this.handleWorkerMessage,this.props.legacyMode?this.initiateLegacyMode():this.initiate()}},{key:"componentWillReceiveProps",value:function(e){var t=f(this.props,e,h),r=!0,o=!1,n=void 0;try{for(var a,i=t[Symbol.iterator]();!(r=(a=i.next()).done);r=!0){var s=a.value;if("facingMode"==s){this.clearComponent(),this.initiate(e);break}if("delay"==s)0!=this.props.delay||e.legacyMode||(this.timeout=setTimeout(this.check,e.delay)),0==e.delay&&clearTimeout(this.timeout);else if("legacyMode"==s){this.props.legacyMode&&!e.legacyMode?(this.clearComponent(),this.initiate(e)):(this.clearComponent(),this.componentDidUpdate=this.initiateLegacyMode);break}}}catch(c){o=!0,n=c}finally{try{!r&&i.return&&i.return()}finally{if(o)throw n}}}},{key:"shouldComponentUpdate",value:function(e,t){return t!==this.state||f(this.props,e,h).length>0}},{key:"componentWillUnmount",value:function(){this.worker&&(this.worker.terminate(),this.worker=void 0),this.clearComponent()}},{key:"clearComponent",value:function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=void 0),this.stopCamera&&this.stopCamera(),this.reader&&this.reader.removeEventListener("load",this.handleReaderLoad),this.els.img&&this.els.img.removeEventListener("load",this.check)}},{key:"initiate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=e.onError,r=e.facingMode,o=/firefox/i.test(navigator.userAgent),n={};navigator.mediaDevices&&"function"===typeof navigator.mediaDevices.getSupportedConstraints&&(n=navigator.mediaDevices.getSupportedConstraints());var a={};n.facingMode&&(a.facingMode={ideal:r}),n.frameRate&&(a.frameRate={ideal:25,min:10});var i=n.facingMode||o?Promise.resolve(e.constraints||a):u(r).then((function(t){return Object.assign({},{deviceId:t},e.constraints)}));i.then((function(e){return navigator.mediaDevices.getUserMedia({video:e})})).then(this.handleVideo).catch(t)}},{key:"handleVideo",value:function(e){var t=this.els.preview,r=this.props.facingMode;if(!t)return setTimeout(this.handleVideo,200,e);void 0!==(t||{}).srcObject?t.srcObject=e:void 0!==t.mozSrcObject?t.mozSrcObject=e:window.URL.createObjectURL?t.src=window.URL.createObjectURL(e):window.webkitURL?t.src=window.webkitURL.createObjectURL(e):t.src=e,t.playsInline=!0;var o=e.getTracks()[0];this.stopCamera=o.stop.bind(o),t.addEventListener("loadstart",this.handleLoadStart),this.setState({mirrorVideo:"user"==r,streamLabel:o.label})}},{key:"handleLoadStart",value:function(){var e=this.props,t=e.delay,r=e.onLoad,o=this.state,n=o.mirrorVideo,a=o.streamLabel,i=this.els.preview;i.play(),"function"==typeof r&&r({mirrorVideo:n,streamLabel:a}),"number"==typeof t&&(this.timeout=setTimeout(this.check,t)),i.removeEventListener("loadstart",this.handleLoadStart)}},{key:"check",value:function(){var e=this.props,t=e.legacyMode,r=e.resolution,o=e.delay,n=this.els,a=n.preview,i=n.canvas,s=n.img,c=Math.floor(t?s.naturalWidth:a.videoWidth),d=Math.floor(t?s.naturalHeight:a.videoHeight),l=0,u=0;if(t){var f=r/(c>d?c:d);d*=f,c*=f,i.width=c,i.height=d}else{var p=r/(c0?t[0].split("/")[1]:"sendrecv",uri:t[1]}},o.writeExtmap=function(e){return"a=extmap:"+(e.id||e.preferredId)+(e.direction&&"sendrecv"!==e.direction?"/"+e.direction:"")+" "+e.uri+"\r\n"},o.parseFmtp=function(e){for(var t,r={},o=e.substr(e.indexOf(" ")+1).split(";"),n=0;n-1?(r.attribute=e.substr(t+1,o-t-1),r.value=e.substr(o+1)):r.attribute=e.substr(t+1),r},o.parseSsrcGroup=function(e){var t=e.substr(13).split(" ");return{semantics:t.shift(),ssrcs:t.map((function(e){return parseInt(e,10)}))}},o.getMid=function(e){var t=o.matchPrefix(e,"a=mid:")[0];if(t)return t.substr(6)},o.parseFingerprint=function(e){var t=e.substr(14).split(" ");return{algorithm:t[0].toLowerCase(),value:t[1]}},o.getDtlsParameters=function(e,t){return{role:"auto",fingerprints:o.matchPrefix(e+t,"a=fingerprint:").map(o.parseFingerprint)}},o.writeDtlsParameters=function(e,t){var r="a=setup:"+t+"\r\n";return e.fingerprints.forEach((function(e){r+="a=fingerprint:"+e.algorithm+" "+e.value+"\r\n"})),r},o.parseCryptoLine=function(e){var t=e.substr(9).split(" ");return{tag:parseInt(t[0],10),cryptoSuite:t[1],keyParams:t[2],sessionParams:t.slice(3)}},o.writeCryptoLine=function(e){return"a=crypto:"+e.tag+" "+e.cryptoSuite+" "+("object"===typeof e.keyParams?o.writeCryptoKeyParams(e.keyParams):e.keyParams)+(e.sessionParams?" "+e.sessionParams.join(" "):"")+"\r\n"},o.parseCryptoKeyParams=function(e){if(0!==e.indexOf("inline:"))return null;var t=e.substr(7).split("|");return{keyMethod:"inline",keySalt:t[0],lifeTime:t[1],mkiValue:t[2]?t[2].split(":")[0]:void 0,mkiLength:t[2]?t[2].split(":")[1]:void 0}},o.writeCryptoKeyParams=function(e){return e.keyMethod+":"+e.keySalt+(e.lifeTime?"|"+e.lifeTime:"")+(e.mkiValue&&e.mkiLength?"|"+e.mkiValue+":"+e.mkiLength:"")},o.getCryptoParameters=function(e,t){return o.matchPrefix(e+t,"a=crypto:").map(o.parseCryptoLine)},o.getIceParameters=function(e,t){var r=o.matchPrefix(e+t,"a=ice-ufrag:")[0],n=o.matchPrefix(e+t,"a=ice-pwd:")[0];return r&&n?{usernameFragment:r.substr(12),password:n.substr(10)}:null},o.writeIceParameters=function(e){return"a=ice-ufrag:"+e.usernameFragment+"\r\na=ice-pwd:"+e.password+"\r\n"},o.parseRtpParameters=function(e){for(var t={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},r=o.splitLines(e)[0].split(" "),n=3;n0?"9":"0",r+=" UDP/TLS/RTP/SAVPF ",r+=t.codecs.map((function(e){return void 0!==e.preferredPayloadType?e.preferredPayloadType:e.payloadType})).join(" ")+"\r\n",r+="c=IN IP4 0.0.0.0\r\n",r+="a=rtcp:9 IN IP4 0.0.0.0\r\n",t.codecs.forEach((function(e){r+=o.writeRtpMap(e),r+=o.writeFmtp(e),r+=o.writeRtcpFb(e)}));var n=0;return t.codecs.forEach((function(e){e.maxptime>n&&(n=e.maxptime)})),n>0&&(r+="a=maxptime:"+n+"\r\n"),r+="a=rtcp-mux\r\n",t.headerExtensions&&t.headerExtensions.forEach((function(e){r+=o.writeExtmap(e)})),r},o.parseRtpEncodingParameters=function(e){var t,r=[],n=o.parseRtpParameters(e),a=-1!==n.fecMechanisms.indexOf("RED"),i=-1!==n.fecMechanisms.indexOf("ULPFEC"),s=o.matchPrefix(e,"a=ssrc:").map((function(e){return o.parseSsrcMedia(e)})).filter((function(e){return"cname"===e.attribute})),c=s.length>0&&s[0].ssrc,d=o.matchPrefix(e,"a=ssrc-group:FID").map((function(e){return e.substr(17).split(" ").map((function(e){return parseInt(e,10)}))}));d.length>0&&d[0].length>1&&d[0][0]===c&&(t=d[0][1]),n.codecs.forEach((function(e){if("RTX"===e.name.toUpperCase()&&e.parameters.apt){var o={ssrc:c,codecPayloadType:parseInt(e.parameters.apt,10)};c&&t&&(o.rtx={ssrc:t}),r.push(o),a&&((o=JSON.parse(JSON.stringify(o))).fec={ssrc:c,mechanism:i?"red+ulpfec":"red"},r.push(o))}})),0===r.length&&c&&r.push({ssrc:c});var l=o.matchPrefix(e,"b=");return l.length&&(l=0===l[0].indexOf("b=TIAS:")?parseInt(l[0].substr(7),10):0===l[0].indexOf("b=AS:")?1e3*parseInt(l[0].substr(5),10)*.95-16e3:void 0,r.forEach((function(e){e.maxBitrate=l}))),r},o.parseRtcpParameters=function(e){var t={},r=o.matchPrefix(e,"a=ssrc:").map((function(e){return o.parseSsrcMedia(e)})).filter((function(e){return"cname"===e.attribute}))[0];r&&(t.cname=r.value,t.ssrc=r.ssrc);var n=o.matchPrefix(e,"a=rtcp-rsize");t.reducedSize=n.length>0,t.compound=0===n.length;var a=o.matchPrefix(e,"a=rtcp-mux");return t.mux=a.length>0,t},o.parseMsid=function(e){var t,r=o.matchPrefix(e,"a=msid:");if(1===r.length)return{stream:(t=r[0].substr(7).split(" "))[0],track:t[1]};var n=o.matchPrefix(e,"a=ssrc:").map((function(e){return o.parseSsrcMedia(e)})).filter((function(e){return"msid"===e.attribute}));return n.length>0?{stream:(t=n[0].value.split(" "))[0],track:t[1]}:void 0},o.parseSctpDescription=function(e){var t,r=o.parseMLine(e),n=o.matchPrefix(e,"a=max-message-size:");n.length>0&&(t=parseInt(n[0].substr(19),10)),isNaN(t)&&(t=65536);var a=o.matchPrefix(e,"a=sctp-port:");if(a.length>0)return{port:parseInt(a[0].substr(12),10),protocol:r.fmt,maxMessageSize:t};if(o.matchPrefix(e,"a=sctpmap:").length>0){var i=o.matchPrefix(e,"a=sctpmap:")[0].substr(10).split(" ");return{port:parseInt(i[0],10),protocol:i[1],maxMessageSize:t}}},o.writeSctpDescription=function(e,t){var r=[];return r="DTLS/SCTP"!==e.protocol?["m="+e.kind+" 9 "+e.protocol+" "+t.protocol+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctp-port:"+t.port+"\r\n"]:["m="+e.kind+" 9 "+e.protocol+" "+t.port+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctpmap:"+t.port+" "+t.protocol+" 65535\r\n"],void 0!==t.maxMessageSize&&r.push("a=max-message-size:"+t.maxMessageSize+"\r\n"),r.join("")},o.generateSessionId=function(){return Math.random().toString().substr(2,21)},o.writeSessionBoilerplate=function(e,t,r){var n=void 0!==t?t:2;return"v=0\r\no="+(r||"thisisadapterortc")+" "+(e||o.generateSessionId())+" "+n+" IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},o.writeMediaSection=function(e,t,r,n){var a=o.writeRtpDescription(e.kind,t);if(a+=o.writeIceParameters(e.iceGatherer.getLocalParameters()),a+=o.writeDtlsParameters(e.dtlsTransport.getLocalParameters(),"offer"===r?"actpass":"active"),a+="a=mid:"+e.mid+"\r\n",e.direction?a+="a="+e.direction+"\r\n":e.rtpSender&&e.rtpReceiver?a+="a=sendrecv\r\n":e.rtpSender?a+="a=sendonly\r\n":e.rtpReceiver?a+="a=recvonly\r\n":a+="a=inactive\r\n",e.rtpSender){var i="msid:"+n.id+" "+e.rtpSender.track.id+"\r\n";a+="a="+i,a+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" "+i,e.sendEncodingParameters[0].rtx&&(a+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" "+i,a+="a=ssrc-group:FID "+e.sendEncodingParameters[0].ssrc+" "+e.sendEncodingParameters[0].rtx.ssrc+"\r\n")}return a+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" cname:"+o.localCName+"\r\n",e.rtpSender&&e.sendEncodingParameters[0].rtx&&(a+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" cname:"+o.localCName+"\r\n"),a},o.getDirection=function(e,t){for(var r=o.splitLines(e),n=0;n0&&0===(k-=1)&&l.show(t),r.props.shouldFocusAfterRender&&(r.props.shouldReturnFocusAfterClose?(c.returnFocus(r.props.preventScroll),c.teardownScopedFocus()):c.popWithoutFocus()),r.props.onAfterClose&&r.props.onAfterClose(),m.default.deregister(r)},r.open=function(){r.beforeOpen(),r.state.afterOpen&&r.state.beforeClose?(clearTimeout(r.closeTimer),r.setState({beforeClose:!1})):(r.props.shouldFocusAfterRender&&(c.setupScopedFocus(r.node),c.markForFocusLater()),r.setState({isOpen:!0},(function(){r.openAnimationFrame=requestAnimationFrame((function(){r.setState({afterOpen:!0}),r.props.isOpen&&r.props.onAfterOpen&&r.props.onAfterOpen({overlayEl:r.overlay,contentEl:r.content})}))})))},r.close=function(){r.props.closeTimeoutMS>0?r.closeWithTimeout():r.closeWithoutTimeout()},r.focusContent=function(){return r.content&&!r.contentHasFocus()&&r.content.focus({preventScroll:!0})},r.closeWithTimeout=function(){var e=Date.now()+r.props.closeTimeoutMS;r.setState({beforeClose:!0,closesAt:e},(function(){r.closeTimer=setTimeout(r.closeWithoutTimeout,r.state.closesAt-Date.now())}))},r.closeWithoutTimeout=function(){r.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},r.afterClose)},r.handleKeyDown=function(e){9===e.keyCode&&(0,d.default)(r.content,e),r.props.shouldCloseOnEsc&&27===e.keyCode&&(e.stopPropagation(),r.requestClose(e))},r.handleOverlayOnClick=function(e){null===r.shouldClose&&(r.shouldClose=!0),r.shouldClose&&r.props.shouldCloseOnOverlayClick&&(r.ownerHandlesClose()?r.requestClose(e):r.focusContent()),r.shouldClose=null},r.handleContentOnMouseUp=function(){r.shouldClose=!1},r.handleOverlayOnMouseDown=function(e){r.props.shouldCloseOnOverlayClick||e.target!=r.overlay||e.preventDefault()},r.handleContentOnClick=function(){r.shouldClose=!1},r.handleContentOnMouseDown=function(){r.shouldClose=!1},r.requestClose=function(e){return r.ownerHandlesClose()&&r.props.onRequestClose(e)},r.ownerHandlesClose=function(){return r.props.onRequestClose},r.shouldBeClosed=function(){return!r.state.isOpen&&!r.state.beforeClose},r.contentHasFocus=function(){return document.activeElement===r.content||r.content.contains(document.activeElement)},r.buildClassName=function(e,t){var o="object"===("undefined"===typeof t?"undefined":n(t))?t:{base:C[e],afterOpen:C[e]+"--after-open",beforeClose:C[e]+"--before-close"},a=o.base;return r.state.afterOpen&&(a=a+" "+o.afterOpen),r.state.beforeClose&&(a=a+" "+o.beforeClose),"string"===typeof t&&t?a+" "+t:a},r.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(r,o){return r[e+"-"+o]=t[o],r}),{})},r.state={afterOpen:!1,beforeClose:!1},r.shouldClose=null,r.moveFromContentToOverlay=null,r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,r=e.ariaHideApp,o=e.htmlOpenClassName,n=e.bodyOpenClassName;n&&u.add(document.body,n),o&&u.add(document.getElementsByTagName("html")[0],o),r&&(k+=1,l.hide(t)),m.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,r=e.className,n=e.overlayClassName,a=e.defaultStyles,i=e.children,s=r?{}:a.content,c=n?{}:a.overlay;if(this.shouldBeClosed())return null;var d={ref:this.setOverlayRef,className:this.buildClassName("overlay",n),style:o({},c,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},l=o({id:t,ref:this.setContentRef,style:o({},s,this.props.style.content),className:this.buildClassName("content",r),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",o({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),u=this.props.contentElement(l,i);return this.props.overlayElement(d,u)}}]),t}(i.Component);g.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},g.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(p.default),s.default.instanceOf(f.SafeHTMLCollection),s.default.instanceOf(f.SafeNodeList),s.default.arrayOf(s.default.instanceOf(p.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},t.default=g,e.exports=t.default},1257:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){i=[]},t.log=function(){0},t.handleBlur=d,t.handleFocus=l,t.markForFocusLater=function(){i.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==i.length&&(t=i.pop()).focus({preventScroll:e}))}catch(r){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){i.length>0&&i.pop()},t.setupScopedFocus=function(e){s=e,window.addEventListener?(window.addEventListener("blur",d,!1),document.addEventListener("focus",l,!0)):(window.attachEvent("onBlur",d),document.attachEvent("onFocus",l))},t.teardownScopedFocus=function(){s=null,window.addEventListener?(window.removeEventListener("blur",d),document.removeEventListener("focus",l)):(window.detachEvent("onBlur",d),document.detachEvent("onFocus",l))};var o,n=r(989),a=(o=n)&&o.__esModule?o:{default:o};var i=[],s=null,c=!1;function d(){c=!0}function l(){if(c){if(c=!1,!s)return;setTimeout((function(){s.contains(document.activeElement)||((0,a.default)(s)[0]||s).focus()}),0)}}},1258:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=(0,a.default)(e);if(!r.length)return void t.preventDefault();var o=void 0,n=t.shiftKey,s=r[0],c=r[r.length-1],d=i();if(e===d){if(!n)return;o=c}c!==d||n||(o=s);s===d&&n&&(o=c);if(o)return t.preventDefault(),void o.focus();var l=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==l||"Chrome"==l[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var u=r.indexOf(d);u>-1&&(u+=n?-1:1);if("undefined"===typeof(o=r[u]))return t.preventDefault(),void(o=n?c:s).focus();t.preventDefault(),o.focus()};var o,n=r(989),a=(o=n)&&o.__esModule?o:{default:o};function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?i(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default},1259:function(e,t,r){"use strict";var o=function(){};e.exports=o},1260:function(e,t,r){var o;!function(){"use strict";var n=!("undefined"===typeof window||!window.document||!window.document.createElement),a={canUseDOM:n,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen};void 0===(o=function(){return a}.call(t,r,t,e))||(e.exports=o)}()},1261:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in o)a(e,o[t]);var r=document.body;for(var i in n)a(r,n[i]);o={},n={}},t.log=function(){0};var o={},n={};function a(e,t){e.classList.remove(t)}t.add=function(e,t){return r=e.classList,a="html"==e.nodeName.toLowerCase()?o:n,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(a,e),r.add(e)}));var r,a},t.remove=function(e,t){return r=e.classList,a="html"==e.nodeName.toLowerCase()?o:n,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(a,e),0===a[e]&&r.remove(e)}));var r,a}},1262:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[i,s],t=0;t0?(document.body.firstChild!==i&&document.body.insertBefore(i,document.body.firstChild),document.body.lastChild!==s&&document.body.appendChild(s)):(i.parentElement&&i.parentElement.removeChild(i),s.parentElement&&s.parentElement.removeChild(s))}))},1263:function(e,t,r){"use strict";function o(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function n(e){this.setState(function(t){var r=this.constructor.getDerivedStateFromProps(e,t);return null!==r&&void 0!==r?r:null}.bind(this))}function a(e,t){try{var r=this.props,o=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,o)}finally{this.props=r,this.state=o}}function i(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!==typeof e.getDerivedStateFromProps&&"function"!==typeof t.getSnapshotBeforeUpdate)return e;var r=null,i=null,s=null;if("function"===typeof t.componentWillMount?r="componentWillMount":"function"===typeof t.UNSAFE_componentWillMount&&(r="UNSAFE_componentWillMount"),"function"===typeof t.componentWillReceiveProps?i="componentWillReceiveProps":"function"===typeof t.UNSAFE_componentWillReceiveProps&&(i="UNSAFE_componentWillReceiveProps"),"function"===typeof t.componentWillUpdate?s="componentWillUpdate":"function"===typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==r||null!==i||null!==s){var c=e.displayName||e.name,d="function"===typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+c+" uses "+d+" but also contains the following legacy lifecycles:"+(null!==r?"\n "+r:"")+(null!==i?"\n "+i:"")+(null!==s?"\n "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"===typeof e.getDerivedStateFromProps&&(t.componentWillMount=o,t.componentWillReceiveProps=n),"function"===typeof t.getSnapshotBeforeUpdate){if("function"!==typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=a;var l=t.componentDidUpdate;t.componentDidUpdate=function(e,t,r){var o=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:r;l.call(this,e,t,o)}}return e}r.r(t),r.d(t,"polyfill",(function(){return i})),o.__suppressDeprecationWarning=!0,n.__suppressDeprecationWarning=!0,a.__suppressDeprecationWarning=!0},1264:function(e,t,r){var o=r(1265),n=r(1266),a=r(1267),i=r(1268),s=r(1001);function c(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var d=c.prototype;d.addData=function(e){var t=new o(e);this.dataList.push(t),this.dataCache=null},d.isDark=function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw new Error(e+","+t);return this.modules[e][t]},d.getModuleCount=function(){return this.moduleCount},d.make=function(){if(this.typeNumber<1){var e=1;for(e=1;e<40;e++){for(var t=n.getRSBlocks(e,this.errorCorrectLevel),r=new a,o=0,s=0;s=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=c.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},d.setupPositionProbePattern=function(e,t){for(var r=-1;r<=7;r++)if(!(e+r<=-1||this.moduleCount<=e+r))for(var o=-1;o<=7;o++)t+o<=-1||this.moduleCount<=t+o||(this.modules[e+r][t+o]=0<=r&&r<=6&&(0==o||6==o)||0<=o&&o<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=o&&o<=4)},d.getBestMaskPattern=function(){for(var e=0,t=0,r=0;r<8;r++){this.makeImpl(!0,r);var o=i.getLostPoint(this);(0==r||e>o)&&(e=o,t=r)}return t},d.createMovieClip=function(e,t,r){var o=e.createEmptyMovieClip(t,r);this.make();for(var n=0;n>r&1);this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=o}for(r=0;r<18;r++){o=!e&&1==(t>>r&1);this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=o}},d.setupTypeInfo=function(e,t){for(var r=this.errorCorrectLevel<<3|t,o=i.getBCHTypeInfo(r),n=0;n<15;n++){var a=!e&&1==(o>>n&1);n<6?this.modules[n][8]=a:n<8?this.modules[n+1][8]=a:this.modules[this.moduleCount-15+n][8]=a}for(n=0;n<15;n++){a=!e&&1==(o>>n&1);n<8?this.modules[8][this.moduleCount-n-1]=a:n<9?this.modules[8][15-n-1+1]=a:this.modules[8][15-n-1]=a}this.modules[this.moduleCount-8][8]=!e},d.mapData=function(e,t){for(var r=-1,o=this.moduleCount-1,n=7,a=0,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var c=0;c<2;c++)if(null==this.modules[o][s-c]){var d=!1;a>>n&1)),i.getMask(t,o,s-c)&&(d=!d),this.modules[o][s-c]=d,-1==--n&&(a++,n=7)}if((o+=r)<0||this.moduleCount<=o){o-=r,r=-r;break}}},c.PAD0=236,c.PAD1=17,c.createData=function(e,t,r){for(var o=n.getRSBlocks(e,t),s=new a,d=0;d8*u)throw new Error("code length overflow. ("+s.getLengthInBits()+">"+8*u+")");for(s.getLengthInBits()+4<=8*u&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;!(s.getLengthInBits()>=8*u)&&(s.put(c.PAD0,8),!(s.getLengthInBits()>=8*u));)s.put(c.PAD1,8);return c.createBytes(s,o)},c.createBytes=function(e,t){for(var r=0,o=0,n=0,a=new Array(t.length),c=new Array(t.length),d=0;d=0?m.get(h):0}}var v=0;for(f=0;f>>7-e%8&1)},put:function(e,t){for(var r=0;r>>t-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=r},1268:function(e,t,r){var o=r(999),n=r(1001),a=r(1002),i=0,s=1,c=2,d=3,l=4,u=5,f=6,p=7,m={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;m.getBCHDigit(t)-m.getBCHDigit(m.G15)>=0;)t^=m.G15<=0;)t^=m.G18<>>=1;return t},getPatternPosition:function(e){return m.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,r){switch(e){case i:return(t+r)%2==0;case s:return t%2==0;case c:return r%3==0;case d:return(t+r)%3==0;case l:return(Math.floor(t/2)+Math.floor(r/3))%2==0;case u:return t*r%2+t*r%3==0;case f:return(t*r%2+t*r%3)%2==0;case p:return(t*r%3+(t+r)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new n([1],0),r=0;r5&&(r+=3+a-5)}for(o=0;o0?e[0].deviceId:1==t.length||"user"==r?t[0].deviceId:t[1].deviceId}var a=function(e){return"environment"==e?/rear|back|environment/gi:/front|user|face/gi};e.exports={getDeviceId:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;return new Promise((function(r,n){var i=void 0;try{i=navigator.mediaDevices.enumerateDevices()}catch(s){n(new o)}i.then((function(i){var s=i.filter((function(e){return"videoinput"==e.kind}));if(s.length<1)n(new o);else{var c=a(e),d=s.filter((function(e){var t=e.label;return c.test(t)}));r(t(d,s,e))}}))}))},getFacingModePattern:a}},1270:function(e,t,r){"use strict";function o(){this.name="NoVideoInputDevicesError",this.message="No video input devices found"}o.prototype=new Error,e.exports={NoVideoInputDevicesError:o}},1271:function(e,t,r){"use strict";e.exports=function(e,t,r){var o=[];return r.forEach((function(r){e[r]!=t[r]&&o.push(r)})),o}},1272:function(e,t,r){"use strict";e.exports=function(e,t){e=e||[],t=t||{};try{return new Blob(e,t)}catch(n){if("TypeError"!==n.name)throw n;for(var r=new(window.BlobBuilder||window.MSBlobBuilder||window.MozBlobBuilder||window.WebKitBlobBuilder),o=0;o=14393&&-1===e.indexOf("?transport=udp"):(r=!0,!0)})),delete e.url,e.urls=n?o[0]:o,!!o.length}}))}(r.iceServers||[],t),this._iceGatherers=[],r.iceCandidatePoolSize)for(var i=r.iceCandidatePoolSize;i>0;i--)this._iceGatherers.push(new e.RTCIceGatherer({iceServers:r.iceServers,gatherPolicy:r.iceTransportPolicy}));else r.iceCandidatePoolSize=0;this._config=r,this.transceivers=[],this._sdpSessionId=o.generateSessionId(),this._sdpSessionVersion=0,this._dtlsRole=void 0,this._isClosed=!1};Object.defineProperty(l.prototype,"localDescription",{configurable:!0,get:function(){return this._localDescription}}),Object.defineProperty(l.prototype,"remoteDescription",{configurable:!0,get:function(){return this._remoteDescription}}),l.prototype.onicecandidate=null,l.prototype.onaddstream=null,l.prototype.ontrack=null,l.prototype.onremovestream=null,l.prototype.onsignalingstatechange=null,l.prototype.oniceconnectionstatechange=null,l.prototype.onconnectionstatechange=null,l.prototype.onicegatheringstatechange=null,l.prototype.onnegotiationneeded=null,l.prototype.ondatachannel=null,l.prototype._dispatchEvent=function(e,t){this._isClosed||(this.dispatchEvent(t),"function"===typeof this["on"+e]&&this["on"+e](t))},l.prototype._emitGatheringStateChange=function(){var e=new Event("icegatheringstatechange");this._dispatchEvent("icegatheringstatechange",e)},l.prototype.getConfiguration=function(){return this._config},l.prototype.getLocalStreams=function(){return this.localStreams},l.prototype.getRemoteStreams=function(){return this.remoteStreams},l.prototype._createTransceiver=function(e,t){var r=this.transceivers.length>0,o={track:null,iceGatherer:null,iceTransport:null,dtlsTransport:null,localCapabilities:null,remoteCapabilities:null,rtpSender:null,rtpReceiver:null,kind:e,mid:null,sendEncodingParameters:null,recvEncodingParameters:null,stream:null,associatedRemoteMediaStreams:[],wantReceive:!0};if(this.usingBundle&&r)o.iceTransport=this.transceivers[0].iceTransport,o.dtlsTransport=this.transceivers[0].dtlsTransport;else{var n=this._createIceAndDtlsTransports();o.iceTransport=n.iceTransport,o.dtlsTransport=n.dtlsTransport}return t||this.transceivers.push(o),o},l.prototype.addTrack=function(t,r){if(this._isClosed)throw c("InvalidStateError","Attempted to call addTrack on a closed peerconnection.");var o;if(this.transceivers.find((function(e){return e.track===t})))throw c("InvalidAccessError","Track already exists.");for(var n=0;n=15025)e.getTracks().forEach((function(t){r.addTrack(t,e)}));else{var o=e.clone();e.getTracks().forEach((function(e,t){var r=o.getTracks()[t];e.addEventListener("enabled",(function(e){r.enabled=e.enabled}))})),o.getTracks().forEach((function(e){r.addTrack(e,o)}))}},l.prototype.removeTrack=function(t){if(this._isClosed)throw c("InvalidStateError","Attempted to call removeTrack on a closed peerconnection.");if(!(t instanceof e.RTCRtpSender))throw new TypeError("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.");var r=this.transceivers.find((function(e){return e.rtpSender===t}));if(!r)throw c("InvalidAccessError","Sender was not created by this connection.");var o=r.stream;r.rtpSender.stop(),r.rtpSender=null,r.track=null,r.stream=null,-1===this.transceivers.map((function(e){return e.stream})).indexOf(o)&&this.localStreams.indexOf(o)>-1&&this.localStreams.splice(this.localStreams.indexOf(o),1),this._maybeFireNegotiationNeeded()},l.prototype.removeStream=function(e){var t=this;e.getTracks().forEach((function(e){var r=t.getSenders().find((function(t){return t.track===e}));r&&t.removeTrack(r)}))},l.prototype.getSenders=function(){return this.transceivers.filter((function(e){return!!e.rtpSender})).map((function(e){return e.rtpSender}))},l.prototype.getReceivers=function(){return this.transceivers.filter((function(e){return!!e.rtpReceiver})).map((function(e){return e.rtpReceiver}))},l.prototype._createIceGatherer=function(t,r){var o=this;if(r&&t>0)return this.transceivers[0].iceGatherer;if(this._iceGatherers.length)return this._iceGatherers.shift();var n=new e.RTCIceGatherer({iceServers:this._config.iceServers,gatherPolicy:this._config.iceTransportPolicy});return Object.defineProperty(n,"state",{value:"new",writable:!0}),this.transceivers[t].bufferedCandidateEvents=[],this.transceivers[t].bufferCandidates=function(e){var r=!e.candidate||0===Object.keys(e.candidate).length;n.state=r?"completed":"gathering",null!==o.transceivers[t].bufferedCandidateEvents&&o.transceivers[t].bufferedCandidateEvents.push(e)},n.addEventListener("localcandidate",this.transceivers[t].bufferCandidates),n},l.prototype._gather=function(t,r){var n=this,a=this.transceivers[r].iceGatherer;if(!a.onlocalcandidate){var i=this.transceivers[r].bufferedCandidateEvents;this.transceivers[r].bufferedCandidateEvents=null,a.removeEventListener("localcandidate",this.transceivers[r].bufferCandidates),a.onlocalcandidate=function(e){if(!(n.usingBundle&&r>0)){var i=new Event("icecandidate");i.candidate={sdpMid:t,sdpMLineIndex:r};var s=e.candidate,c=!s||0===Object.keys(s).length;if(c)"new"!==a.state&&"gathering"!==a.state||(a.state="completed");else{"new"===a.state&&(a.state="gathering"),s.component=1,s.ufrag=a.getLocalParameters().usernameFragment;var d=o.writeCandidate(s);i.candidate=Object.assign(i.candidate,o.parseCandidate(d)),i.candidate.candidate=d,i.candidate.toJSON=function(){return{candidate:i.candidate.candidate,sdpMid:i.candidate.sdpMid,sdpMLineIndex:i.candidate.sdpMLineIndex,usernameFragment:i.candidate.usernameFragment}}}var l=o.getMediaSections(n._localDescription.sdp);l[i.candidate.sdpMLineIndex]+=c?"a=end-of-candidates\r\n":"a="+i.candidate.candidate+"\r\n",n._localDescription.sdp=o.getDescription(n._localDescription.sdp)+l.join("");var u=n.transceivers.every((function(e){return e.iceGatherer&&"completed"===e.iceGatherer.state}));"gathering"!==n.iceGatheringState&&(n.iceGatheringState="gathering",n._emitGatheringStateChange()),c||n._dispatchEvent("icecandidate",i),u&&(n._dispatchEvent("icecandidate",new Event("icecandidate")),n.iceGatheringState="complete",n._emitGatheringStateChange())}},e.setTimeout((function(){i.forEach((function(e){a.onlocalcandidate(e)}))}),0)}},l.prototype._createIceAndDtlsTransports=function(){var t=this,r=new e.RTCIceTransport(null);r.onicestatechange=function(){t._updateIceConnectionState(),t._updateConnectionState()};var o=new e.RTCDtlsTransport(r);return o.ondtlsstatechange=function(){t._updateConnectionState()},o.onerror=function(){Object.defineProperty(o,"state",{value:"failed",writable:!0}),t._updateConnectionState()},{iceTransport:r,dtlsTransport:o}},l.prototype._disposeIceAndDtlsTransports=function(e){var t=this.transceivers[e].iceGatherer;t&&(delete t.onlocalcandidate,delete this.transceivers[e].iceGatherer);var r=this.transceivers[e].iceTransport;r&&(delete r.onicestatechange,delete this.transceivers[e].iceTransport);var o=this.transceivers[e].dtlsTransport;o&&(delete o.ondtlsstatechange,delete o.onerror,delete this.transceivers[e].dtlsTransport)},l.prototype._transceive=function(e,r,n){var i=a(e.localCapabilities,e.remoteCapabilities);r&&e.rtpSender&&(i.encodings=e.sendEncodingParameters,i.rtcp={cname:o.localCName,compound:e.rtcpParameters.compound},e.recvEncodingParameters.length&&(i.rtcp.ssrc=e.recvEncodingParameters[0].ssrc),e.rtpSender.send(i)),n&&e.rtpReceiver&&i.codecs.length>0&&("video"===e.kind&&e.recvEncodingParameters&&t<15019&&e.recvEncodingParameters.forEach((function(e){delete e.rtx})),e.recvEncodingParameters.length?i.encodings=e.recvEncodingParameters:i.encodings=[{}],i.rtcp={compound:e.rtcpParameters.compound},e.rtcpParameters.cname&&(i.rtcp.cname=e.rtcpParameters.cname),e.sendEncodingParameters.length&&(i.rtcp.ssrc=e.sendEncodingParameters[0].ssrc),e.rtpReceiver.receive(i))},l.prototype.setLocalDescription=function(e){var t,r,n=this;if(-1===["offer","answer"].indexOf(e.type))return Promise.reject(c("TypeError",'Unsupported type "'+e.type+'"'));if(!i("setLocalDescription",e.type,n.signalingState)||n._isClosed)return Promise.reject(c("InvalidStateError","Can not set local "+e.type+" in state "+n.signalingState));if("offer"===e.type)t=o.splitSections(e.sdp),r=t.shift(),t.forEach((function(e,t){var r=o.parseRtpParameters(e);n.transceivers[t].localCapabilities=r})),n.transceivers.forEach((function(e,t){n._gather(e.mid,t)}));else if("answer"===e.type){t=o.splitSections(n._remoteDescription.sdp),r=t.shift();var s=o.matchPrefix(r,"a=ice-lite").length>0;t.forEach((function(e,t){var i=n.transceivers[t],c=i.iceGatherer,d=i.iceTransport,l=i.dtlsTransport,u=i.localCapabilities,f=i.remoteCapabilities;if(!(o.isRejected(e)&&0===o.matchPrefix(e,"a=bundle-only").length)&&!i.rejected){var p=o.getIceParameters(e,r),m=o.getDtlsParameters(e,r);s&&(m.role="server"),n.usingBundle&&0!==t||(n._gather(i.mid,t),"new"===d.state&&d.start(c,p,s?"controlling":"controlled"),"new"===l.state&&l.start(m));var h=a(u,f);n._transceive(i,h.codecs.length>0,!1)}}))}return n._localDescription={type:e.type,sdp:e.sdp},"offer"===e.type?n._updateSignalingState("have-local-offer"):n._updateSignalingState("stable"),Promise.resolve()},l.prototype.setRemoteDescription=function(n){var l=this;if(-1===["offer","answer"].indexOf(n.type))return Promise.reject(c("TypeError",'Unsupported type "'+n.type+'"'));if(!i("setRemoteDescription",n.type,l.signalingState)||l._isClosed)return Promise.reject(c("InvalidStateError","Can not set remote "+n.type+" in state "+l.signalingState));var u={};l.remoteStreams.forEach((function(e){u[e.id]=e}));var f=[],p=o.splitSections(n.sdp),m=p.shift(),h=o.matchPrefix(m,"a=ice-lite").length>0,v=o.matchPrefix(m,"a=group:BUNDLE ").length>0;l.usingBundle=v;var C=o.matchPrefix(m,"a=ice-options:")[0];return l.canTrickleIceCandidates=!!C&&C.substr(14).split(" ").indexOf("trickle")>=0,p.forEach((function(i,c){var d=o.splitLines(i),p=o.getKind(i),C=o.isRejected(i)&&0===o.matchPrefix(i,"a=bundle-only").length,k=d[0].substr(2).split(" ")[2],g=o.getDirection(i,m),y=o.parseMsid(i),B=o.getMid(i)||o.generateIdentifier();if(C||"application"===p&&("DTLS/SCTP"===k||"UDP/DTLS/SCTP"===k))l.transceivers[c]={mid:B,kind:p,protocol:k,rejected:!0};else{var P,w,b,S,T,R,E,_,M;!C&&l.transceivers[c]&&l.transceivers[c].rejected&&(l.transceivers[c]=l._createTransceiver(p,!0));var O,x,L=o.parseRtpParameters(i);C||(O=o.getIceParameters(i,m),(x=o.getDtlsParameters(i,m)).role="client"),E=o.parseRtpEncodingParameters(i);var D=o.parseRtcpParameters(i),I=o.matchPrefix(i,"a=end-of-candidates",m).length>0,j=o.matchPrefix(i,"a=candidate:").map((function(e){return o.parseCandidate(e)})).filter((function(e){return 1===e.component}));if(("offer"===n.type||"answer"===n.type)&&!C&&v&&c>0&&l.transceivers[c]&&(l._disposeIceAndDtlsTransports(c),l.transceivers[c].iceGatherer=l.transceivers[0].iceGatherer,l.transceivers[c].iceTransport=l.transceivers[0].iceTransport,l.transceivers[c].dtlsTransport=l.transceivers[0].dtlsTransport,l.transceivers[c].rtpSender&&l.transceivers[c].rtpSender.setTransport(l.transceivers[0].dtlsTransport),l.transceivers[c].rtpReceiver&&l.transceivers[c].rtpReceiver.setTransport(l.transceivers[0].dtlsTransport)),"offer"!==n.type||C){if("answer"===n.type&&!C){w=(P=l.transceivers[c]).iceGatherer,b=P.iceTransport,S=P.dtlsTransport,T=P.rtpReceiver,R=P.sendEncodingParameters,_=P.localCapabilities,l.transceivers[c].recvEncodingParameters=E,l.transceivers[c].remoteCapabilities=L,l.transceivers[c].rtcpParameters=D,j.length&&"new"===b.state&&(!h&&!I||v&&0!==c?j.forEach((function(e){s(P.iceTransport,e)})):b.setRemoteCandidates(j)),v&&0!==c||("new"===b.state&&b.start(w,O,"controlling"),"new"===S.state&&S.start(x)),!a(P.localCapabilities,P.remoteCapabilities).codecs.filter((function(e){return"rtx"===e.name.toLowerCase()})).length&&P.sendEncodingParameters[0].rtx&&delete P.sendEncodingParameters[0].rtx,l._transceive(P,"sendrecv"===g||"recvonly"===g,"sendrecv"===g||"sendonly"===g),!T||"sendrecv"!==g&&"sendonly"!==g?delete P.rtpReceiver:(M=T.track,y?(u[y.stream]||(u[y.stream]=new e.MediaStream),r(M,u[y.stream]),f.push([M,T,u[y.stream]])):(u.default||(u.default=new e.MediaStream),r(M,u.default),f.push([M,T,u.default])))}}else{(P=l.transceivers[c]||l._createTransceiver(p)).mid=B,P.iceGatherer||(P.iceGatherer=l._createIceGatherer(c,v)),j.length&&"new"===P.iceTransport.state&&(!I||v&&0!==c?j.forEach((function(e){s(P.iceTransport,e)})):P.iceTransport.setRemoteCandidates(j)),_=e.RTCRtpReceiver.getCapabilities(p),t<15019&&(_.codecs=_.codecs.filter((function(e){return"rtx"!==e.name}))),R=P.sendEncodingParameters||[{ssrc:1001*(2*c+2)}];var A,N=!1;if("sendrecv"===g||"sendonly"===g){if(N=!P.rtpReceiver,T=P.rtpReceiver||new e.RTCRtpReceiver(P.dtlsTransport,p),N)M=T.track,y&&"-"===y.stream||(y?(u[y.stream]||(u[y.stream]=new e.MediaStream,Object.defineProperty(u[y.stream],"id",{get:function(){return y.stream}})),Object.defineProperty(M,"id",{get:function(){return y.track}}),A=u[y.stream]):(u.default||(u.default=new e.MediaStream),A=u.default)),A&&(r(M,A),P.associatedRemoteMediaStreams.push(A)),f.push([M,T,A])}else P.rtpReceiver&&P.rtpReceiver.track&&(P.associatedRemoteMediaStreams.forEach((function(t){var r=t.getTracks().find((function(e){return e.id===P.rtpReceiver.track.id}));r&&function(t,r){r.removeTrack(t),r.dispatchEvent(new e.MediaStreamTrackEvent("removetrack",{track:t}))}(r,t)})),P.associatedRemoteMediaStreams=[]);P.localCapabilities=_,P.remoteCapabilities=L,P.rtpReceiver=T,P.rtcpParameters=D,P.sendEncodingParameters=R,P.recvEncodingParameters=E,l._transceive(l.transceivers[c],!1,N)}}})),void 0===l._dtlsRole&&(l._dtlsRole="offer"===n.type?"active":"passive"),l._remoteDescription={type:n.type,sdp:n.sdp},"offer"===n.type?l._updateSignalingState("have-remote-offer"):l._updateSignalingState("stable"),Object.keys(u).forEach((function(t){var r=u[t];if(r.getTracks().length){if(-1===l.remoteStreams.indexOf(r)){l.remoteStreams.push(r);var o=new Event("addstream");o.stream=r,e.setTimeout((function(){l._dispatchEvent("addstream",o)}))}f.forEach((function(e){var t=e[0],o=e[1];r.id===e[2].id&&d(l,t,o,[r])}))}})),f.forEach((function(e){e[2]||d(l,e[0],e[1],[])})),e.setTimeout((function(){l&&l.transceivers&&l.transceivers.forEach((function(e){e.iceTransport&&"new"===e.iceTransport.state&&e.iceTransport.getRemoteCandidates().length>0&&(console.warn("Timeout for addRemoteCandidate. Consider sending an end-of-candidates notification"),e.iceTransport.addRemoteCandidate({}))}))}),4e3),Promise.resolve()},l.prototype.close=function(){this.transceivers.forEach((function(e){e.iceTransport&&e.iceTransport.stop(),e.dtlsTransport&&e.dtlsTransport.stop(),e.rtpSender&&e.rtpSender.stop(),e.rtpReceiver&&e.rtpReceiver.stop()})),this._isClosed=!0,this._updateSignalingState("closed")},l.prototype._updateSignalingState=function(e){this.signalingState=e;var t=new Event("signalingstatechange");this._dispatchEvent("signalingstatechange",t)},l.prototype._maybeFireNegotiationNeeded=function(){var t=this;"stable"===this.signalingState&&!0!==this.needNegotiation&&(this.needNegotiation=!0,e.setTimeout((function(){if(t.needNegotiation){t.needNegotiation=!1;var e=new Event("negotiationneeded");t._dispatchEvent("negotiationneeded",e)}}),0))},l.prototype._updateIceConnectionState=function(){var e,t={new:0,closed:0,checking:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach((function(e){e.iceTransport&&!e.rejected&&t[e.iceTransport.state]++})),e="new",t.failed>0?e="failed":t.checking>0?e="checking":t.disconnected>0?e="disconnected":t.new>0?e="new":t.connected>0?e="connected":t.completed>0&&(e="completed"),e!==this.iceConnectionState){this.iceConnectionState=e;var r=new Event("iceconnectionstatechange");this._dispatchEvent("iceconnectionstatechange",r)}},l.prototype._updateConnectionState=function(){var e,t={new:0,closed:0,connecting:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach((function(e){e.iceTransport&&e.dtlsTransport&&!e.rejected&&(t[e.iceTransport.state]++,t[e.dtlsTransport.state]++)})),t.connected+=t.completed,e="new",t.failed>0?e="failed":t.connecting>0?e="connecting":t.disconnected>0?e="disconnected":t.new>0?e="new":t.connected>0&&(e="connected"),e!==this.connectionState){this.connectionState=e;var r=new Event("connectionstatechange");this._dispatchEvent("connectionstatechange",r)}},l.prototype.createOffer=function(){var r=this;if(r._isClosed)return Promise.reject(c("InvalidStateError","Can not call createOffer after close"));var a=r.transceivers.filter((function(e){return"audio"===e.kind})).length,i=r.transceivers.filter((function(e){return"video"===e.kind})).length,s=arguments[0];if(s){if(s.mandatory||s.optional)throw new TypeError("Legacy mandatory/optional constraints not supported.");void 0!==s.offerToReceiveAudio&&(a=!0===s.offerToReceiveAudio?1:!1===s.offerToReceiveAudio?0:s.offerToReceiveAudio),void 0!==s.offerToReceiveVideo&&(i=!0===s.offerToReceiveVideo?1:!1===s.offerToReceiveVideo?0:s.offerToReceiveVideo)}for(r.transceivers.forEach((function(e){"audio"===e.kind?--a<0&&(e.wantReceive=!1):"video"===e.kind&&--i<0&&(e.wantReceive=!1)}));a>0||i>0;)a>0&&(r._createTransceiver("audio"),a--),i>0&&(r._createTransceiver("video"),i--);var d=o.writeSessionBoilerplate(r._sdpSessionId,r._sdpSessionVersion++);r.transceivers.forEach((function(n,a){var i=n.track,s=n.kind,c=n.mid||o.generateIdentifier();n.mid=c,n.iceGatherer||(n.iceGatherer=r._createIceGatherer(a,r.usingBundle));var d=e.RTCRtpSender.getCapabilities(s);t<15019&&(d.codecs=d.codecs.filter((function(e){return"rtx"!==e.name}))),d.codecs.forEach((function(e){"H264"===e.name&&void 0===e.parameters["level-asymmetry-allowed"]&&(e.parameters["level-asymmetry-allowed"]="1"),n.remoteCapabilities&&n.remoteCapabilities.codecs&&n.remoteCapabilities.codecs.forEach((function(t){e.name.toLowerCase()===t.name.toLowerCase()&&e.clockRate===t.clockRate&&(e.preferredPayloadType=t.payloadType)}))})),d.headerExtensions.forEach((function(e){(n.remoteCapabilities&&n.remoteCapabilities.headerExtensions||[]).forEach((function(t){e.uri===t.uri&&(e.id=t.id)}))}));var l=n.sendEncodingParameters||[{ssrc:1001*(2*a+1)}];i&&t>=15019&&"video"===s&&!l[0].rtx&&(l[0].rtx={ssrc:l[0].ssrc+1}),n.wantReceive&&(n.rtpReceiver=new e.RTCRtpReceiver(n.dtlsTransport,s)),n.localCapabilities=d,n.sendEncodingParameters=l})),"max-compat"!==r._config.bundlePolicy&&(d+="a=group:BUNDLE "+r.transceivers.map((function(e){return e.mid})).join(" ")+"\r\n"),d+="a=ice-options:trickle\r\n",r.transceivers.forEach((function(e,t){d+=n(e,e.localCapabilities,"offer",e.stream,r._dtlsRole),d+="a=rtcp-rsize\r\n",!e.iceGatherer||"new"===r.iceGatheringState||0!==t&&r.usingBundle||(e.iceGatherer.getLocalCandidates().forEach((function(e){e.component=1,d+="a="+o.writeCandidate(e)+"\r\n"})),"completed"===e.iceGatherer.state&&(d+="a=end-of-candidates\r\n"))}));var l=new e.RTCSessionDescription({type:"offer",sdp:d});return Promise.resolve(l)},l.prototype.createAnswer=function(){var r=this;if(r._isClosed)return Promise.reject(c("InvalidStateError","Can not call createAnswer after close"));if("have-remote-offer"!==r.signalingState&&"have-local-pranswer"!==r.signalingState)return Promise.reject(c("InvalidStateError","Can not call createAnswer in signalingState "+r.signalingState));var i=o.writeSessionBoilerplate(r._sdpSessionId,r._sdpSessionVersion++);r.usingBundle&&(i+="a=group:BUNDLE "+r.transceivers.map((function(e){return e.mid})).join(" ")+"\r\n"),i+="a=ice-options:trickle\r\n";var s=o.getMediaSections(r._remoteDescription.sdp).length;r.transceivers.forEach((function(e,o){if(!(o+1>s)){if(e.rejected)return"application"===e.kind?"DTLS/SCTP"===e.protocol?i+="m=application 0 DTLS/SCTP 5000\r\n":i+="m=application 0 "+e.protocol+" webrtc-datachannel\r\n":"audio"===e.kind?i+="m=audio 0 UDP/TLS/RTP/SAVPF 0\r\na=rtpmap:0 PCMU/8000\r\n":"video"===e.kind&&(i+="m=video 0 UDP/TLS/RTP/SAVPF 120\r\na=rtpmap:120 VP8/90000\r\n"),void(i+="c=IN IP4 0.0.0.0\r\na=inactive\r\na=mid:"+e.mid+"\r\n");var c;if(e.stream)"audio"===e.kind?c=e.stream.getAudioTracks()[0]:"video"===e.kind&&(c=e.stream.getVideoTracks()[0]),c&&t>=15019&&"video"===e.kind&&!e.sendEncodingParameters[0].rtx&&(e.sendEncodingParameters[0].rtx={ssrc:e.sendEncodingParameters[0].ssrc+1});var d=a(e.localCapabilities,e.remoteCapabilities);!d.codecs.filter((function(e){return"rtx"===e.name.toLowerCase()})).length&&e.sendEncodingParameters[0].rtx&&delete e.sendEncodingParameters[0].rtx,i+=n(e,d,"answer",e.stream,r._dtlsRole),e.rtcpParameters&&e.rtcpParameters.reducedSize&&(i+="a=rtcp-rsize\r\n")}}));var d=new e.RTCSessionDescription({type:"answer",sdp:i});return Promise.resolve(d)},l.prototype.addIceCandidate=function(e){var t,r=this;return e&&void 0===e.sdpMLineIndex&&!e.sdpMid?Promise.reject(new TypeError("sdpMLineIndex or sdpMid required")):new Promise((function(n,a){if(!r._remoteDescription)return a(c("InvalidStateError","Can not add ICE candidate without a remote description"));if(e&&""!==e.candidate){var i=e.sdpMLineIndex;if(e.sdpMid)for(var d=0;d0?o.parseCandidate(e.candidate):{};if("tcp"===u.protocol&&(0===u.port||9===u.port))return n();if(u.component&&1!==u.component)return n();if((0===i||i>0&&l.iceTransport!==r.transceivers[0].iceTransport)&&!s(l.iceTransport,u))return a(c("OperationError","Can not add ICE candidate"));var f=e.candidate.trim();0===f.indexOf("a=")&&(f=f.substr(2)),(t=o.getMediaSections(r._remoteDescription.sdp))[i]+="a="+(u.type?f:"end-of-candidates")+"\r\n",r._remoteDescription.sdp=o.getDescription(r._remoteDescription.sdp)+t.join("")}else for(var p=0;p=r&&parseInt(o[r],10)}function f(e,t,r){if(e.RTCPeerConnection){var o=e.RTCPeerConnection.prototype,n=o.addEventListener;o.addEventListener=function(e,o){if(e!==t)return n.apply(this,arguments);var a=function(e){var t=r(e);t&&(o.handleEvent?o.handleEvent(t):o(t))};return this._eventMap=this._eventMap||{},this._eventMap[t]||(this._eventMap[t]=new Map),this._eventMap[t].set(o,a),n.apply(this,[e,a])};var a=o.removeEventListener;o.removeEventListener=function(e,r){if(e!==t||!this._eventMap||!this._eventMap[t])return a.apply(this,arguments);if(!this._eventMap[t].has(r))return a.apply(this,arguments);var o=this._eventMap[t].get(r);return this._eventMap[t].delete(r),0===this._eventMap[t].size&&delete this._eventMap[t],0===Object.keys(this._eventMap).length&&delete this._eventMap,a.apply(this,[e,o])},Object.defineProperty(o,"on"+t,{get:function(){return this["_on"+t]},set:function(e){this["_on"+t]&&(this.removeEventListener(t,this["_on"+t]),delete this["_on"+t]),e&&this.addEventListener(t,this["_on"+t]=e)},enumerable:!0,configurable:!0})}}function p(e){return"boolean"!==typeof e?new Error("Argument type: "+typeof e+". Please use a boolean."):(d=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function m(e){return"boolean"!==typeof e?new Error("Argument type: "+typeof e+". Please use a boolean."):(l=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function h(){if("object"===typeof window){if(d)return;"undefined"!==typeof console&&"function"===typeof console.log&&console.log.apply(console,arguments)}}function v(e,t){l&&console.warn(e+" is deprecated, please use "+t+" instead.")}function C(e){var t={browser:null,version:null};if("undefined"===typeof e||!e.navigator)return t.browser="Not a browser.",t;var r=e.navigator;if(r.mozGetUserMedia)t.browser="firefox",t.version=u(r.userAgent,/Firefox\/(\d+)\./,1);else if(r.webkitGetUserMedia||!1===e.isSecureContext&&e.webkitRTCPeerConnection&&!e.RTCIceGatherer)t.browser="chrome",t.version=u(r.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(r.mediaDevices&&r.userAgent.match(/Edge\/(\d+).(\d+)$/))t.browser="edge",t.version=u(r.userAgent,/Edge\/(\d+).(\d+)$/,2);else{if(!e.RTCPeerConnection||!r.userAgent.match(/AppleWebKit\/(\d+)\./))return t.browser="Not a supported browser.",t;t.browser="safari",t.version=u(r.userAgent,/AppleWebKit\/(\d+)\./,1),t.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype}return t}function k(e){return"[object Object]"===Object.prototype.toString.call(e)}function g(e){return k(e)?Object.keys(e).reduce((function(t,r){var o=k(e[r]),n=o?g(e[r]):e[r],a=o&&!Object.keys(n).length;return void 0===n||a?t:Object.assign(t,Object(c.a)({},r,n))}),{}):e}function y(e,t,r){t&&!r.has(t.id)&&(r.set(t.id,t),Object.keys(t).forEach((function(o){o.endsWith("Id")?y(e,e.get(t[o]),r):o.endsWith("Ids")&&t[o].forEach((function(t){y(e,e.get(t),r)}))})))}function B(e,t,r){var o=r?"outbound-rtp":"inbound-rtp",n=new Map;if(null===t)return n;var a=[];return e.forEach((function(e){"track"===e.type&&e.trackIdentifier===t.id&&a.push(e)})),a.forEach((function(t){e.forEach((function(r){r.type===o&&r.trackId===t.id&&y(e,r,n)}))})),n}var P=h;function w(e,t){var r=e&&e.navigator;if(r.mediaDevices){var o=function(e){if("object"!==typeof e||e.mandatory||e.optional)return e;var t={};return Object.keys(e).forEach((function(r){if("require"!==r&&"advanced"!==r&&"mediaSource"!==r){var o="object"===typeof e[r]?e[r]:{ideal:e[r]};void 0!==o.exact&&"number"===typeof o.exact&&(o.min=o.max=o.exact);var n=function(e,t){return e?e+t.charAt(0).toUpperCase()+t.slice(1):"deviceId"===t?"sourceId":t};if(void 0!==o.ideal){t.optional=t.optional||[];var a={};"number"===typeof o.ideal?(a[n("min",r)]=o.ideal,t.optional.push(a),(a={})[n("max",r)]=o.ideal,t.optional.push(a)):(a[n("",r)]=o.ideal,t.optional.push(a))}void 0!==o.exact&&"number"!==typeof o.exact?(t.mandatory=t.mandatory||{},t.mandatory[n("",r)]=o.exact):["min","max"].forEach((function(e){void 0!==o[e]&&(t.mandatory=t.mandatory||{},t.mandatory[n(e,r)]=o[e])}))}})),e.advanced&&(t.optional=(t.optional||[]).concat(e.advanced)),t},n=function(e,n){if(t.version>=61)return n(e);if((e=JSON.parse(JSON.stringify(e)))&&"object"===typeof e.audio){var a=function(e,t,r){t in e&&!(r in e)&&(e[r]=e[t],delete e[t])};a((e=JSON.parse(JSON.stringify(e))).audio,"autoGainControl","googAutoGainControl"),a(e.audio,"noiseSuppression","googNoiseSuppression"),e.audio=o(e.audio)}if(e&&"object"===typeof e.video){var i=e.video.facingMode;i=i&&("object"===typeof i?i:{ideal:i});var s,c=t.version<66;if(i&&("user"===i.exact||"environment"===i.exact||"user"===i.ideal||"environment"===i.ideal)&&(!r.mediaDevices.getSupportedConstraints||!r.mediaDevices.getSupportedConstraints().facingMode||c))if(delete e.video.facingMode,"environment"===i.exact||"environment"===i.ideal?s=["back","rear"]:"user"!==i.exact&&"user"!==i.ideal||(s=["front"]),s)return r.mediaDevices.enumerateDevices().then((function(t){var r=(t=t.filter((function(e){return"videoinput"===e.kind}))).find((function(e){return s.some((function(t){return e.label.toLowerCase().includes(t)}))}));return!r&&t.length&&s.includes("back")&&(r=t[t.length-1]),r&&(e.video.deviceId=i.exact?{exact:r.deviceId}:{ideal:r.deviceId}),e.video=o(e.video),P("chrome: "+JSON.stringify(e)),n(e)}));e.video=o(e.video)}return P("chrome: "+JSON.stringify(e)),n(e)},a=function(e){return t.version>=64?e:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[e.name]||e.name,message:e.message,constraint:e.constraint||e.constraintName,toString:function(){return this.name+(this.message&&": ")+this.message}}};if(r.getUserMedia=function(e,t,o){n(e,(function(e){r.webkitGetUserMedia(e,t,(function(e){o&&o(a(e))}))}))}.bind(r),r.mediaDevices.getUserMedia){var i=r.mediaDevices.getUserMedia.bind(r.mediaDevices);r.mediaDevices.getUserMedia=function(e){return n(e,(function(e){return i(e).then((function(t){if(e.audio&&!t.getAudioTracks().length||e.video&&!t.getVideoTracks().length)throw t.getTracks().forEach((function(e){e.stop()})),new DOMException("","NotFoundError");return t}),(function(e){return Promise.reject(a(e))}))}))}}}}function b(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&("function"===typeof t?e.navigator.mediaDevices.getDisplayMedia=function(r){return t(r).then((function(t){var o=r.video&&r.video.width,n=r.video&&r.video.height,a=r.video&&r.video.frameRate;return r.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:t,maxFrameRate:a||3}},o&&(r.video.mandatory.maxWidth=o),n&&(r.video.mandatory.maxHeight=n),e.navigator.mediaDevices.getUserMedia(r)}))}:console.error("shimGetDisplayMedia: getSourceId argument is not a function"))}function S(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function T(e){if("object"===typeof e&&e.RTCPeerConnection&&!("ontrack"in e.RTCPeerConnection.prototype)){Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get:function(){return this._ontrack},set:function(e){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=e)},enumerable:!0,configurable:!0});var t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){var r=this;return this._ontrackpoly||(this._ontrackpoly=function(t){t.stream.addEventListener("addtrack",(function(o){var n;n=e.RTCPeerConnection.prototype.getReceivers?r.getReceivers().find((function(e){return e.track&&e.track.id===o.track.id})):{track:o.track};var a=new Event("track");a.track=o.track,a.receiver=n,a.transceiver={receiver:n},a.streams=[t.stream],r.dispatchEvent(a)})),t.stream.getTracks().forEach((function(o){var n;n=e.RTCPeerConnection.prototype.getReceivers?r.getReceivers().find((function(e){return e.track&&e.track.id===o.id})):{track:o};var a=new Event("track");a.track=o,a.receiver=n,a.transceiver={receiver:n},a.streams=[t.stream],r.dispatchEvent(a)}))},this.addEventListener("addstream",this._ontrackpoly)),t.apply(this,arguments)}}else f(e,"track",(function(e){return e.transceiver||Object.defineProperty(e,"transceiver",{value:{receiver:e.receiver}}),e}))}function R(e){if("object"===typeof e&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){var t=function(e,t){return{track:t,get dtmf(){return void 0===this._dtmf&&("audio"===t.kind?this._dtmf=e.createDTMFSender(t):this._dtmf=null),this._dtmf},_pc:e}};if(!e.RTCPeerConnection.prototype.getSenders){e.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};var r=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,o){var n=r.apply(this,arguments);return n||(n=t(this,e),this._senders.push(n)),n};var o=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){o.apply(this,arguments);var t=this._senders.indexOf(e);-1!==t&&this._senders.splice(t,1)}}var n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){var r=this;this._senders=this._senders||[],n.apply(this,[e]),e.getTracks().forEach((function(e){r._senders.push(t(r,e))}))};var a=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){var t=this;this._senders=this._senders||[],a.apply(this,[e]),e.getTracks().forEach((function(e){var r=t._senders.find((function(t){return t.track===e}));r&&t._senders.splice(t._senders.indexOf(r),1)}))}}else if("object"===typeof e&&e.RTCPeerConnection&&"getSenders"in e.RTCPeerConnection.prototype&&"createDTMFSender"in e.RTCPeerConnection.prototype&&e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)){var i=e.RTCPeerConnection.prototype.getSenders;e.RTCPeerConnection.prototype.getSenders=function(){var e=this,t=i.apply(this,[]);return t.forEach((function(t){return t._pc=e})),t},Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get:function(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}}function E(e){if(e.RTCPeerConnection){var t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){var e=this,r=Array.prototype.slice.call(arguments),o=r[0],n=r[1],a=r[2];if(arguments.length>0&&"function"===typeof o)return t.apply(this,arguments);if(0===t.length&&(0===arguments.length||"function"!==typeof o))return t.apply(this,[]);var i=function(e){var t={};return e.result().forEach((function(e){var r={id:e.id,timestamp:e.timestamp,type:{localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[e.type]||e.type};e.names().forEach((function(t){r[t]=e.stat(t)})),t[r.id]=r})),t},s=function(e){return new Map(Object.keys(e).map((function(t){return[t,e[t]]})))};if(arguments.length>=2){var c=function(e){n(s(i(e)))};return t.apply(this,[c,o])}return new Promise((function(r,o){t.apply(e,[function(e){r(s(i(e)))},o])})).then(n,a)}}}function _(e){if("object"===typeof e&&e.RTCPeerConnection&&e.RTCRtpSender&&e.RTCRtpReceiver){if(!("getStats"in e.RTCRtpSender.prototype)){var t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){var e=this,r=t.apply(this,[]);return r.forEach((function(t){return t._pc=e})),r});var r=e.RTCPeerConnection.prototype.addTrack;r&&(e.RTCPeerConnection.prototype.addTrack=function(){var e=r.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){var e=this;return this._pc.getStats().then((function(t){return B(t,e.track,!0)}))}}if(!("getStats"in e.RTCRtpReceiver.prototype)){var o=e.RTCPeerConnection.prototype.getReceivers;o&&(e.RTCPeerConnection.prototype.getReceivers=function(){var e=this,t=o.apply(this,[]);return t.forEach((function(t){return t._pc=e})),t}),f(e,"track",(function(e){return e.receiver._pc=e.srcElement,e})),e.RTCRtpReceiver.prototype.getStats=function(){var e=this;return this._pc.getStats().then((function(t){return B(t,e.track,!1)}))}}if("getStats"in e.RTCRtpSender.prototype&&"getStats"in e.RTCRtpReceiver.prototype){var n=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof e.MediaStreamTrack){var t,r,o,a=arguments[0];return this.getSenders().forEach((function(e){e.track===a&&(t?o=!0:t=e)})),this.getReceivers().forEach((function(e){return e.track===a&&(r?o=!0:r=e),e.track===a})),o||t&&r?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):t?t.getStats():r?r.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return n.apply(this,arguments)}}}}function M(e){e.RTCPeerConnection.prototype.getLocalStreams=function(){var e=this;return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map((function(t){return e._shimmedLocalStreams[t][0]}))};var t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,r){if(!r)return t.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};var o=t.apply(this,arguments);return this._shimmedLocalStreams[r.id]?-1===this._shimmedLocalStreams[r.id].indexOf(o)&&this._shimmedLocalStreams[r.id].push(o):this._shimmedLocalStreams[r.id]=[r,o],o};var r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){var t=this;this._shimmedLocalStreams=this._shimmedLocalStreams||{},e.getTracks().forEach((function(e){if(t.getSenders().find((function(t){return t.track===e})))throw new DOMException("Track already exists.","InvalidAccessError")}));var o=this.getSenders();r.apply(this,arguments);var n=this.getSenders().filter((function(e){return-1===o.indexOf(e)}));this._shimmedLocalStreams[e.id]=[e].concat(n)};var o=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[e.id],o.apply(this,arguments)};var n=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){var t=this;return this._shimmedLocalStreams=this._shimmedLocalStreams||{},e&&Object.keys(this._shimmedLocalStreams).forEach((function(r){var o=t._shimmedLocalStreams[r].indexOf(e);-1!==o&&t._shimmedLocalStreams[r].splice(o,1),1===t._shimmedLocalStreams[r].length&&delete t._shimmedLocalStreams[r]})),n.apply(this,arguments)}}function O(e,t){if(e.RTCPeerConnection){if(e.RTCPeerConnection.prototype.addTrack&&t.version>=65)return M(e);var r=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){var e=this,t=r.apply(this);return this._reverseStreams=this._reverseStreams||{},t.map((function(t){return e._reverseStreams[t.id]}))};var o=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(t){var r=this;if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},t.getTracks().forEach((function(e){if(r.getSenders().find((function(t){return t.track===e})))throw new DOMException("Track already exists.","InvalidAccessError")})),!this._reverseStreams[t.id]){var n=new e.MediaStream(t.getTracks());this._streams[t.id]=n,this._reverseStreams[n.id]=t,t=n}o.apply(this,[t])};var n=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},n.apply(this,[this._streams[e.id]||e]),delete this._reverseStreams[this._streams[e.id]?this._streams[e.id].id:e.id],delete this._streams[e.id]},e.RTCPeerConnection.prototype.addTrack=function(t,r){var o=this;if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");var n=[].slice.call(arguments,1);if(1!==n.length||!n[0].getTracks().find((function(e){return e===t})))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");var a=this.getSenders().find((function(e){return e.track===t}));if(a)throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};var i=this._streams[r.id];if(i)i.addTrack(t),Promise.resolve().then((function(){o.dispatchEvent(new Event("negotiationneeded"))}));else{var s=new e.MediaStream([t]);this._streams[r.id]=s,this._reverseStreams[s.id]=r,this.addStream(s)}return this.getSenders().find((function(e){return e.track===t}))},["createOffer","createAnswer"].forEach((function(t){var r=e.RTCPeerConnection.prototype[t],o=Object(c.a)({},t,(function(){var e=this,t=arguments,o=arguments.length&&"function"===typeof arguments[0];return o?r.apply(this,[function(r){var o=s(e,r);t[0].apply(null,[o])},function(e){t[1]&&t[1].apply(null,e)},arguments[2]]):r.apply(this,arguments).then((function(t){return s(e,t)}))}));e.RTCPeerConnection.prototype[t]=o[t]}));var a=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){return arguments.length&&arguments[0].type?(arguments[0]=d(this,arguments[0]),a.apply(this,arguments)):a.apply(this,arguments)};var i=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get:function(){var e=i.get.apply(this);return""===e.type?e:s(this,e)}}),e.RTCPeerConnection.prototype.removeTrack=function(e){var t,r=this;if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!e._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(!(e._pc===this))throw new DOMException("Sender was not created by this connection.","InvalidAccessError");this._streams=this._streams||{},Object.keys(this._streams).forEach((function(o){r._streams[o].getTracks().find((function(t){return e.track===t}))&&(t=r._streams[o])})),t&&(1===t.getTracks().length?this.removeStream(this._reverseStreams[t.id]):t.removeTrack(e.track),this.dispatchEvent(new Event("negotiationneeded")))}}function s(e,t){var r=t.sdp;return Object.keys(e._reverseStreams||[]).forEach((function(t){var o=e._reverseStreams[t],n=e._streams[o.id];r=r.replace(new RegExp(n.id,"g"),o.id)})),new RTCSessionDescription({type:t.type,sdp:r})}function d(e,t){var r=t.sdp;return Object.keys(e._reverseStreams||[]).forEach((function(t){var o=e._reverseStreams[t],n=e._streams[o.id];r=r.replace(new RegExp(o.id,"g"),n.id)})),new RTCSessionDescription({type:t.type,sdp:r})}}function x(e,t){!e.RTCPeerConnection&&e.webkitRTCPeerConnection&&(e.RTCPeerConnection=e.webkitRTCPeerConnection),e.RTCPeerConnection&&t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(t){var r=e.RTCPeerConnection.prototype[t],o=Object(c.a)({},t,(function(){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),r.apply(this,arguments)}));e.RTCPeerConnection.prototype[t]=o[t]}))}function L(e,t){f(e,"negotiationneeded",(function(e){var r=e.target;if(!(t.version<72||r.getConfiguration&&"plan-b"===r.getConfiguration().sdpSemantics)||"stable"===r.signalingState)return e}))}var D=r(1273),I=r.n(D);function j(e){var t=e&&e.navigator,r=t.mediaDevices.getUserMedia.bind(t.mediaDevices);t.mediaDevices.getUserMedia=function(e){return r(e).catch((function(e){return Promise.reject(function(e){return{name:{PermissionDeniedError:"NotAllowedError"}[e.name]||e.name,message:e.message,constraint:e.constraint,toString:function(){return this.name}}}(e))}))}}function A(e){"getDisplayMedia"in e.navigator&&e.navigator.mediaDevices&&(e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||(e.navigator.mediaDevices.getDisplayMedia=e.navigator.getDisplayMedia.bind(e.navigator)))}function N(e,t){if(e.RTCIceGatherer&&(e.RTCIceCandidate||(e.RTCIceCandidate=function(e){return e}),e.RTCSessionDescription||(e.RTCSessionDescription=function(e){return e}),t.version<15025)){var r=Object.getOwnPropertyDescriptor(e.MediaStreamTrack.prototype,"enabled");Object.defineProperty(e.MediaStreamTrack.prototype,"enabled",{set:function(e){r.set.call(this,e);var t=new Event("enabled");t.enabled=e,this.dispatchEvent(t)}})}e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)&&Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get:function(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=new e.RTCDtmfSender(this):"video"===this.track.kind&&(this._dtmf=null)),this._dtmf}}),e.RTCDtmfSender&&!e.RTCDTMFSender&&(e.RTCDTMFSender=e.RTCDtmfSender);var o=I()(e,t.version);e.RTCPeerConnection=function(e){return e&&e.iceServers&&(e.iceServers=function(e,t){var r=!1;return(e=JSON.parse(JSON.stringify(e))).filter((function(e){if(e&&(e.urls||e.url)){var t=e.urls||e.url;e.url&&!e.urls&&v("RTCIceServer.url","RTCIceServer.urls");var o="string"===typeof t;return o&&(t=[t]),t=t.filter((function(e){if(0===e.indexOf("stun:"))return!1;var t=e.startsWith("turn")&&!e.startsWith("turn:[")&&e.includes("transport=udp");return t&&!r?(r=!0,!0):t&&!r})),delete e.url,e.urls=o?t[0]:t,!!t.length}}))}(e.iceServers,t.version),h("ICE servers after filtering:",e.iceServers)),new o(e)},e.RTCPeerConnection.prototype=o.prototype}function F(e){e.RTCRtpSender&&!("replaceTrack"in e.RTCRtpSender.prototype)&&(e.RTCRtpSender.prototype.replaceTrack=e.RTCRtpSender.prototype.setTrack)}function U(e,t){var r=e&&e.navigator,o=e&&e.MediaStreamTrack;if(r.getUserMedia=function(e,t,o){v("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),r.mediaDevices.getUserMedia(e).then(t,o)},!(t.version>55&&"autoGainControl"in r.mediaDevices.getSupportedConstraints())){var n=function(e,t,r){t in e&&!(r in e)&&(e[r]=e[t],delete e[t])},a=r.mediaDevices.getUserMedia.bind(r.mediaDevices);if(r.mediaDevices.getUserMedia=function(e){return"object"===typeof e&&"object"===typeof e.audio&&(e=JSON.parse(JSON.stringify(e)),n(e.audio,"autoGainControl","mozAutoGainControl"),n(e.audio,"noiseSuppression","mozNoiseSuppression")),a(e)},o&&o.prototype.getSettings){var i=o.prototype.getSettings;o.prototype.getSettings=function(){var e=i.apply(this,arguments);return n(e,"mozAutoGainControl","autoGainControl"),n(e,"mozNoiseSuppression","noiseSuppression"),e}}if(o&&o.prototype.applyConstraints){var s=o.prototype.applyConstraints;o.prototype.applyConstraints=function(e){return"audio"===this.kind&&"object"===typeof e&&(e=JSON.parse(JSON.stringify(e)),n(e,"autoGainControl","mozAutoGainControl"),n(e,"noiseSuppression","mozNoiseSuppression")),s.apply(this,[e])}}}}function z(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&(e.navigator.mediaDevices.getDisplayMedia=function(r){if(!r||!r.video){var o=new DOMException("getDisplayMedia without video constraints is undefined");return o.name="NotFoundError",o.code=8,Promise.reject(o)}return!0===r.video?r.video={mediaSource:t}:r.video.mediaSource=t,e.navigator.mediaDevices.getUserMedia(r)})}function G(e){"object"===typeof e&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get:function(){return{receiver:this.receiver}}})}function W(e,t){if("object"===typeof e&&(e.RTCPeerConnection||e.mozRTCPeerConnection)){!e.RTCPeerConnection&&e.mozRTCPeerConnection&&(e.RTCPeerConnection=e.mozRTCPeerConnection),t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(t){var r=e.RTCPeerConnection.prototype[t],o=Object(c.a)({},t,(function(){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),r.apply(this,arguments)}));e.RTCPeerConnection.prototype[t]=o[t]}));var r={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},o=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){var e=Array.prototype.slice.call(arguments),n=e[0],a=e[1],i=e[2];return o.apply(this,[n||null]).then((function(e){if(t.version<53&&!a)try{e.forEach((function(e){e.type=r[e.type]||e.type}))}catch(o){if("TypeError"!==o.name)throw o;e.forEach((function(t,o){e.set(o,Object.assign({},t,{type:r[t.type]||t.type}))}))}return e})).then(a,i)}}}function X(e){if("object"===typeof e&&e.RTCPeerConnection&&e.RTCRtpSender&&(!e.RTCRtpSender||!("getStats"in e.RTCRtpSender.prototype))){var t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){var e=this,r=t.apply(this,[]);return r.forEach((function(t){return t._pc=e})),r});var r=e.RTCPeerConnection.prototype.addTrack;r&&(e.RTCPeerConnection.prototype.addTrack=function(){var e=r.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}}function H(e){if("object"===typeof e&&e.RTCPeerConnection&&e.RTCRtpSender&&(!e.RTCRtpSender||!("getStats"in e.RTCRtpReceiver.prototype))){var t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){var e=this,r=t.apply(this,[]);return r.forEach((function(t){return t._pc=e})),r}),f(e,"track",(function(e){return e.receiver._pc=e.srcElement,e})),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}}function V(e){e.RTCPeerConnection&&!("removeStream"in e.RTCPeerConnection.prototype)&&(e.RTCPeerConnection.prototype.removeStream=function(e){var t=this;v("removeStream","removeTrack"),this.getSenders().forEach((function(r){r.track&&e.getTracks().includes(r.track)&&t.removeTrack(r)}))})}function J(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)}function K(e){if("object"===typeof e&&e.RTCPeerConnection){var t=e.RTCPeerConnection.prototype.addTransceiver;t&&(e.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];var e=arguments[1],r=e&&"sendEncodings"in e;r&&e.sendEncodings.forEach((function(e){if("rid"in e){if(!/^[a-z0-9]{0,16}$/i.test(e.rid))throw new TypeError("Invalid RID value provided.")}if("scaleResolutionDownBy"in e&&!(parseFloat(e.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in e&&!(parseFloat(e.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")}));var o=t.apply(this,arguments);if(r){var n=o.sender,a=n.getParameters();(!("encodings"in a)||1===a.encodings.length&&0===Object.keys(a.encodings[0]).length)&&(a.encodings=e.sendEncodings,n.sendEncodings=e.sendEncodings,this.setParametersPromises.push(n.setParameters(a).then((function(){delete n.sendEncodings})).catch((function(){delete n.sendEncodings}))))}return o})}}function q(e){if("object"===typeof e&&e.RTCRtpSender){var t=e.RTCRtpSender.prototype.getParameters;t&&(e.RTCRtpSender.prototype.getParameters=function(){var e=t.apply(this,arguments);return"encodings"in e||(e.encodings=[].concat(this.sendEncodings||[{}])),e})}}function Y(e){if("object"===typeof e&&e.RTCPeerConnection){var t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(){var e=arguments,r=this;return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then((function(){return t.apply(r,e)})).finally((function(){r.setParametersPromises=[]})):t.apply(this,arguments)}}}function Z(e){if("object"===typeof e&&e.RTCPeerConnection){var t=e.RTCPeerConnection.prototype.createAnswer;e.RTCPeerConnection.prototype.createAnswer=function(){var e=arguments,r=this;return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then((function(){return t.apply(r,e)})).finally((function(){r.setParametersPromises=[]})):t.apply(this,arguments)}}}function Q(e){if("object"===typeof e&&e.RTCPeerConnection){if("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in e.RTCPeerConnection.prototype)){var t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(e){var r=this;this._localStreams||(this._localStreams=[]),this._localStreams.includes(e)||this._localStreams.push(e),e.getAudioTracks().forEach((function(o){return t.call(r,o,e)})),e.getVideoTracks().forEach((function(o){return t.call(r,o,e)}))},e.RTCPeerConnection.prototype.addTrack=function(e){for(var r=this,o=arguments.length,n=new Array(o>1?o-1:0),a=1;a=0)){e._remoteStreams.push(t);var r=new Event("addstream");r.stream=t,e.dispatchEvent(r)}}))}),t.apply(e,arguments)}}}function ee(e){if("object"===typeof e&&e.RTCPeerConnection){var t=e.RTCPeerConnection.prototype,r=t.createOffer,o=t.createAnswer,n=t.setLocalDescription,a=t.setRemoteDescription,i=t.addIceCandidate;t.createOffer=function(e,t){var o=arguments.length>=2?arguments[2]:arguments[0],n=r.apply(this,[o]);return t?(n.then(e,t),Promise.resolve()):n},t.createAnswer=function(e,t){var r=arguments.length>=2?arguments[2]:arguments[0],n=o.apply(this,[r]);return t?(n.then(e,t),Promise.resolve()):n};var s=function(e,t,r){var o=n.apply(this,[e]);return r?(o.then(t,r),Promise.resolve()):o};t.setLocalDescription=s,s=function(e,t,r){var o=a.apply(this,[e]);return r?(o.then(t,r),Promise.resolve()):o},t.setRemoteDescription=s,s=function(e,t,r){var o=i.apply(this,[e]);return r?(o.then(t,r),Promise.resolve()):o},t.addIceCandidate=s}}function te(e){var t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){var r=t.mediaDevices,o=r.getUserMedia.bind(r);t.mediaDevices.getUserMedia=function(e){return o(re(e))}}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=function(e,r,o){t.mediaDevices.getUserMedia(e).then(r,o)}.bind(t))}function re(e){return e&&void 0!==e.video?Object.assign({},e,{video:g(e.video)}):e}function oe(e){if(e.RTCPeerConnection){var t=e.RTCPeerConnection;e.RTCPeerConnection=function(e,r){if(e&&e.iceServers){for(var o=[],n=0;n0?o=parseInt(n[0].substr(19),10):"firefox"===t.browser&&-1!==r&&(o=2147483637),o},i=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,"chrome"===t.browser&&t.version>=76){var e=this.getConfiguration(),s=e.sdpSemantics;"plan-b"===s&&Object.defineProperty(this,"sctp",{get:function(){return"undefined"===typeof this._sctp?null:this._sctp},enumerable:!0,configurable:!0})}if(r(arguments[0])){var c,d=o(arguments[0]),l=n(d),u=a(arguments[0],d);c=0===l&&0===u?Number.POSITIVE_INFINITY:0===l||0===u?Math.max(l,u):Math.min(l,u);var f={};Object.defineProperty(f,"maxMessageSize",{get:function(){return c}}),this._sctp=f}return i.apply(this,arguments)}}}function ue(e){if(e.RTCPeerConnection&&"createDataChannel"in e.RTCPeerConnection.prototype){var t=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){var e=t.apply(this,arguments);return r(e,this),e},f(e,"datachannel",(function(e){return r(e.channel,e.target),e}))}function r(e,t){var r=e.send;e.send=function(){var o=arguments[0],n=o.length||o.size||o.byteLength;if("open"===e.readyState&&t.sctp&&n>t.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+t.sctp.maxMessageSize+" bytes)");return r.apply(e,arguments)}}}function fe(e){if(e.RTCPeerConnection&&!("connectionState"in e.RTCPeerConnection.prototype)){var t=e.RTCPeerConnection.prototype;Object.defineProperty(t,"connectionState",{get:function(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(t,"onconnectionstatechange",{get:function(){return this._onconnectionstatechange||null},set:function(e){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),e&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=e)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach((function(e){var r=t[e];t[e]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=function(e){var t=e.target;if(t._lastConnectionState!==t.connectionState){t._lastConnectionState=t.connectionState;var r=new Event("connectionstatechange",e);t.dispatchEvent(r)}return e},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),r.apply(this,arguments)}}))}}function pe(e,t){if(e.RTCPeerConnection&&!("chrome"===t.browser&&t.version>=71)&&!("safari"===t.browser&&t.version>=605)){var r=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(t){if(t&&t.sdp&&-1!==t.sdp.indexOf("\na=extmap-allow-mixed")){var o=t.sdp.split("\n").filter((function(e){return"a=extmap-allow-mixed"!==e.trim()})).join("\n");e.RTCSessionDescription&&t instanceof e.RTCSessionDescription?arguments[0]=new e.RTCSessionDescription({type:t.type,sdp:o}):t.sdp=o}return r.apply(this,arguments)}}}function me(e,t){if(e.RTCPeerConnection&&e.RTCPeerConnection.prototype){var r=e.RTCPeerConnection.prototype.addIceCandidate;r&&0!==r.length&&(e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?("chrome"===t.browser&&t.version<78||"firefox"===t.browser&&t.version<68||"safari"===t.browser)&&arguments[0]&&""===arguments[0].candidate?Promise.resolve():r.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())})}}var he=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.window,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shimChrome:!0,shimFirefox:!0,shimEdge:!0,shimSafari:!0},c=h,d=C(t),l={browserDetails:d,commonShim:s,extractVersion:u,disableLog:p,disableWarnings:m};switch(d.browser){case"chrome":if(!o||!x||!r.shimChrome)return c("Chrome shim is not included in this adapter release."),l;if(null===d.version)return c("Chrome shim can not determine version, not shimming."),l;c("adapter.js shimming chrome."),l.browserShim=o,me(t,d),w(t,d),S(t),x(t,d),T(t),O(t,d),R(t),E(t),_(t),L(t,d),de(t),fe(t),le(t,d),ue(t),pe(t,d);break;case"firefox":if(!a||!W||!r.shimFirefox)return c("Firefox shim is not included in this adapter release."),l;c("adapter.js shimming firefox."),l.browserShim=a,me(t,d),U(t,d),W(t,d),G(t),V(t),X(t),H(t),J(t),K(t),q(t),Y(t),Z(t),de(t),fe(t),le(t,d),ue(t);break;case"edge":if(!n||!N||!r.shimEdge)return c("MS edge shim is not included in this adapter release."),l;c("adapter.js shimming edge."),l.browserShim=n,j(t),A(t),N(t,d),F(t),le(t,d),ue(t);break;case"safari":if(!i||!r.shimSafari)return c("Safari shim is not included in this adapter release."),l;c("adapter.js shimming safari."),l.browserShim=i,me(t,d),oe(t),ae(t),ee(t),Q(t),$(t),ne(t),te(t),ie(t),de(t),le(t,d),ue(t),pe(t,d);break;default:c("Unsupported browser!")}return l}({window:"undefined"===typeof window?void 0:window});t.default=he},773:function(e,t,r){e.exports=r(1254)()},837:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,n=r(1253),a=(o=n)&&o.__esModule?o:{default:o};t.default=a.default,e.exports=t.default},838:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var o,n=r(1260);var a=((o=n)&&o.__esModule?o:{default:o}).default,i=a.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=a.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=a.canUseDOM?window.NodeList:{},t.canUseDOM=a.canUseDOM;t.default=i},989:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var r=[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,r){return t.concat(r.shadowRoot?e(r.shadowRoot):[r])}),[]);return r.filter(i)};var o=/input|select|textarea|button|object/;function n(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var r=window.getComputedStyle(e);return t?"visible"!==r.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0:"none"==r.getPropertyValue("display")}catch(o){return console.warn("Failed to inspect element style"),!1}}function a(e,t){var r=e.nodeName.toLowerCase();return(o.test(r)&&!e.disabled||"a"===r&&e.href||t)&&function(e){for(var t=e,r=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(r&&t===r&&(t=r.host.parentNode),n(t))return!1;t=t.parentNode}return!0}(e)}function i(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var r=isNaN(t);return(r||t>=0)&&a(e,!r)}e.exports=t.default},990:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){s&&(s.removeAttribute?s.removeAttribute("aria-hidden"):null!=s.length?s.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(s).forEach((function(e){return e.removeAttribute("aria-hidden")})));s=null},t.log=function(){0},t.assertNodeList=c,t.setElement=function(e){var t=e;if("string"===typeof t&&i.canUseDOM){var r=document.querySelectorAll(t);c(r,t),t=r}return s=t||s},t.validateElement=d,t.hide=function(e){var t=!0,r=!1,o=void 0;try{for(var n,a=d(e)[Symbol.iterator]();!(t=(n=a.next()).done);t=!0){n.value.setAttribute("aria-hidden","true")}}catch(i){r=!0,o=i}finally{try{!t&&a.return&&a.return()}finally{if(r)throw o}}},t.show=function(e){var t=!0,r=!1,o=void 0;try{for(var n,a=d(e)[Symbol.iterator]();!(t=(n=a.next()).done);t=!0){n.value.removeAttribute("aria-hidden")}}catch(i){r=!0,o=i}finally{try{!t&&a.return&&a.return()}finally{if(r)throw o}}},t.documentNotReadyOrSSRTesting=function(){s=null};var o,n=r(1259),a=(o=n)&&o.__esModule?o:{default:o},i=r(838);var s=null;function c(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function d(e){var t=e||s;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,a.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},991:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(n.openInstances.length),n.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){n=new o};var o=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var r=t.openInstances.indexOf(e);-1!==r&&(t.openInstances.splice(r,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(r){return r(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},n=new o;t.default=n},998:function(e,t,r){"use strict";function o(e){return o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function n(){return n=Object.assign||function(e){for(var t=1;t=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var r=0;r>6),t+=String.fromCharCode(128|63&o)):o<55296||o>=57344?(t+=String.fromCharCode(224|o>>12),t+=String.fromCharCode(128|o>>6&63),t+=String.fromCharCode(128|63&o)):(r++,o=65536+((1023&o)<<10|1023&e.charCodeAt(r)),t+=String.fromCharCode(240|o>>18),t+=String.fromCharCode(128|o>>12&63),t+=String.fromCharCode(128|o>>6&63),t+=String.fromCharCode(128|63&o))}return t}var B={size:128,level:"L",bgColor:"#FFFFFF",fgColor:"#000000",includeMargin:!1};function P(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=[];return e.forEach((function(e,o){var n=null;e.forEach((function(a,i){if(!a&&null!==n)return r.push("M".concat(n+t," ").concat(o+t,"h").concat(i-n,"v1H").concat(n+t,"z")),void(n=null);if(i!==e.length-1)a&&null===n&&(n=i);else{if(!a)return;null===n?r.push("M".concat(i+t,",").concat(o+t," h1v1H").concat(i+t,"z")):r.push("M".concat(n+t,",").concat(o+t," h").concat(i+1-n,"v1H").concat(n+t,"z"))}}))})),r.join("")}function w(e,t){return e.slice().map((function(e,r){return r=t.y+t.h?e:e.map((function(e,r){return(r=t.x+t.w)&&e}))}))}function b(e,t){var r=e.imageSettings,o=e.size,n=e.includeMargin;if(null==r)return null;var a=n?4:0,i=t.length+2*a,s=Math.floor(.1*o),c=i/o,d=(r.width||s)*c,l=(r.height||s)*c,u=null==r.x?t.length/2-d/2:r.x*c,f=null==r.y?t.length/2-l/2:r.y*c,p=null;if(r.excavate){var m=Math.floor(u),h=Math.floor(f);p={x:m,y:h,w:Math.ceil(d+u-m),h:Math.ceil(l+f-h)}}return{x:u,y:f,h:l,w:d,excavation:p}}var S=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}(),T=function(e){function t(){var e,r;c(this,t);for(var o=arguments.length,n=new Array(o),a=0;a0&&i._listeners.length>this._maxListeners&&(i._listeners.warned=!0,s.call(this,i._listeners.length,o))):i._listeners=n,!0;o=t.shift()}return!0}f.EventEmitter2=f,f.prototype.delimiter=".",f.prototype.setMaxListeners=function(t){t!==u&&(this._maxListeners=t,this._conf||(this._conf={}),this._conf.maxListeners=t)},f.prototype.event="",f.prototype.once=function(t,n){return this._once(t,n,!1)},f.prototype.prependOnceListener=function(t,n){return this._once(t,n,!0)},f.prototype._once=function(t,n,e){return this._many(t,1,n,e),this},f.prototype.many=function(t,n,e){return this._many(t,n,e,!1)},f.prototype.prependMany=function(t,n,e){return this._many(t,n,e,!0)},f.prototype._many=function(t,n,e,r){var i=this;if("function"!==typeof e)throw new Error("many only accepts instances of Function");function u(){return 0===--n&&i.off(t,u),e.apply(this,arguments)}return u._origin=e,this._on(t,u,r),i},f.prototype.emit=function(){this._events||a.call(this);var t=arguments[0];if("newListener"===t&&!this._newListener&&!this._events.newListener)return!1;var n,e,r,i,u,o=arguments.length;if(this._all&&this._all.length){if(u=this._all.slice(),o>3)for(n=new Array(o),i=0;i3)for(n=new Array(o-1),i=1;i3)for(n=new Array(c),i=1;i3)for(n=new Array(c-1),i=1;i0&&this._events[t].length>this._maxListeners&&(this._events[t].warned=!0,s.call(this,this._events[t].length,t))):this._events[t]=n,this)},f.prototype.off=function(t,n){if("function"!==typeof n)throw new Error("removeListener only takes instances of Function");var e,r=[];if(this.wildcard){var i="string"===typeof t?t.split(this.delimiter):t.slice();r=l.call(this,null,i,this.listenerTree,0)}else{if(!this._events[t])return this;e=this._events[t],r.push({_listeners:e})}for(var a=0;a0&&t(n[i]),0===Object.keys(o).length&&delete n[i])}}}(this.listenerTree),this},f.prototype.offAny=function(t){var n,e=0,r=0;if(t&&this._all&&this._all.length>0){for(e=0,r=(n=this._all).length;e>>0!==2147483648)return n;if(0!==t[3]||0!==t[4])return n;var e=2147483647&t[2];return{verbose:"Binance Account #".concat(e),accountIdx:e,wholeAccount:!0,coin:"Binance",isKnown:!0,isPrefork:!1}}},1732:function(t,n,e){"use strict";var r=e(145),i=this&&this.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),u=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)"default"!==e&&Object.prototype.hasOwnProperty.call(t,e)&&i(n,t,e);return u(n,t),n};Object.defineProperty(n,"__esModule",{value:!0}),n.segwitNativeAccount=n.segwitAccount=n.legacyAccount=n.describeUTXOPath=n.unknownUTXOPath=n.BTCOutputAddressType=n.BTCOutputScriptType=n.BTCInputScriptType=void 0;var a,c=o(e(1733)),s=e(662);function f(t,n,e){return{verbose:s.addressNListToBIP32(t),coin:n,scriptType:e,isKnown:!1}}c.assert(),function(t){t.CashAddr="cashaddr",t.Bech32="bech32",t.SpendAddress="p2pkh",t.SpendMultisig="p2sh",t.External="external",t.SpendWitness="p2wpkh",t.SpendP2SHWitness="p2sh-p2wpkh"}(a=n.BTCInputScriptType||(n.BTCInputScriptType={})),function(t){t.PayToAddress="p2pkh",t.PayToMultisig="p2sh",t.Bech32="bech32",t.PayToWitness="p2wpkh",t.PayToP2SHWitness="p2sh-p2wpkh"}(n.BTCOutputScriptType||(n.BTCOutputScriptType={})),function(t){t.Spend="spend",t.Transfer="transfer",t.Change="change",t.Exchange="exchange"}(n.BTCOutputAddressType||(n.BTCOutputAddressType={})),n.unknownUTXOPath=f,n.describeUTXOPath=function(t,n,e){var i,u=f(t,n,e);if(3!==t.length&&5!==t.length)return u;if((2147483648&t[0])>>>0!==2147483648)return u;var o=2147483647&t[0];if(![44,49,84].includes(o))return u;if(44===o&&e!==a.SpendAddress)return u;if(49===o&&e!==a.SpendP2SHWitness)return u;var c=3===t.length,l=(i={},r(i,a.SpendAddress,["Legacy"]),r(i,a.SpendP2SHWitness,[]),r(i,a.SpendWitness,["Segwit"]),r(i,a.Bech32,["Segwit Native"]),i)[e],h=!1,p=s.slip44ByCoin(n);if(void 0===p)return u;if(t[1]!==2147483648+p)switch(n){case"BitcoinCash":case"BitcoinGold":if(t[1]===2147483648+s.slip44ByCoin("Bitcoin")){h=!0;break}return u;case"BitcoinSV":if(t[1]===2147483648+s.slip44ByCoin("Bitcoin")||t[1]===2147483648+s.slip44ByCoin("BitcoinCash")){h=!0;break}return u;default:return u}var v=h?["Prefork"]:[];switch(n){case"Bitcoin":case"Litecoin":case"BitcoinGold":case"Testnet":l&&(v=v.concat(l))}var _=v.length?" (".concat(v.join(", "),")"):"",d=2147483647&t[2];if(c)return{coin:n,verbose:"".concat(n," Account #").concat(d).concat(_),accountIdx:d,wholeAccount:!0,isKnown:!0,scriptType:e,isPrefork:h};var y=1===t[3]?"Change ":"",g=t[4];return{coin:n,verbose:"".concat(n," Account #").concat(d,", ").concat(y,"Address #").concat(g).concat(_),accountIdx:d,addressIdx:g,wholeAccount:!1,isKnown:!0,isChange:1===t[3],scriptType:e,isPrefork:h}},n.legacyAccount=function(t,n,e){return{coin:t,scriptType:a.SpendAddress,addressNList:[2147483692,2147483648+n,2147483648+e]}},n.segwitAccount=function(t,n,e){return{coin:t,scriptType:a.SpendP2SHWitness,addressNList:[2147483697,2147483648+n,2147483648+e]}},n.segwitNativeAccount=function(t,n,e){return{coin:t,scriptType:a.SpendWitness,addressNList:[2147483732,2147483648+n,2147483648+e]}}},1733:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.assert=function(){return!0}},1734:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.cosmosDescribePath=void 0;var r=e(662);n.cosmosDescribePath=function(t){var n={verbose:r.addressNListToBIP32(t),coin:"Atom",isKnown:!1};if(5!=t.length)return n;if(2147483692!=t[0])return n;if(t[1]!=2147483648+r.slip44ByCoin("Atom"))return n;if((2147483648&t[2])>>>0!==2147483648)return n;if(0!==t[3]||0!==t[4])return n;var e=2147483647&t[2];return{verbose:"Cosmos Account #".concat(e),accountIdx:e,wholeAccount:!0,coin:"Atom",isKnown:!0,isPrefork:!1}}},1735:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.osmosisDescribePath=void 0;var r=e(662);n.osmosisDescribePath=function(t){var n={verbose:r.addressNListToBIP32(t),coin:"Atom",isKnown:!1};if(5!=t.length)return n;if(2147483692!=t[0])return n;if(t[1]!=2147483648+r.slip44ByCoin("Osmo"))return n;if((2147483648&t[2])>>>0!==2147483648)return n;if(0!==t[3]||0!==t[4])return n;var e=2147483647&t[2];return{verbose:"Osmosis Account #".concat(e),accountIdx:e,wholeAccount:!0,coin:"Osmo",isKnown:!0,isPrefork:!1}}},1736:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},1737:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},1738:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.describeETHPath=n.ETHTransactionType=void 0;var r=e(662);!function(t){t[t.ETH_TX_TYPE_LEGACY=0]="ETH_TX_TYPE_LEGACY",t[t.ETH_TX_TYPE_EIP_2930=1]="ETH_TX_TYPE_EIP_2930",t[t.ETH_TX_TYPE_EIP_1559=2]="ETH_TX_TYPE_EIP_1559"}(n.ETHTransactionType||(n.ETHTransactionType={})),n.describeETHPath=function(t){var n={verbose:r.addressNListToBIP32(t),coin:"Ethereum",isKnown:!1};if(5!==t.length)return n;if(2147483692!==t[0])return n;if(t[1]!==2147483648+r.slip44ByCoin("Ethereum"))return n;if((2147483648&t[2])>>>0!==2147483648)return n;if(0!==t[3])return n;if(0!==t[4])return n;var e=2147483647&t[2];return{verbose:"Ethereum Account #".concat(e),accountIdx:e,wholeAccount:!0,coin:"Ethereum",isKnown:!0,isPrefork:!1}}},1739:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.makeEvent=n.Events=void 0,function(t){t.BUTTON_REQUEST="BUTTON_REQUEST",t.CANCEL="CANCEL",t.CHARACTER_REQUEST="CHARACTER_REQUEST",t.CONNECT="CONNECT",t.DISCONNECT="DISCONNECT",t.FAILURE="FAILURE",t.PASSPHRASE_REQUEST="PASSPHRASE_REQUEST",t.PIN_REQUEST="PIN_REQUEST",t.SUCCESS="SUCCESS",t.WORD_REQUEST="WORD_REQUEST"}(n.Events||(n.Events={})),n.makeEvent=function(t){return Object.assign({date:Date.now()},t)}},1740:function(t,n,e){"use strict";var r,i=e(38),u=e(144),o=e(99),a=e(100),c=e(641);Object.defineProperty(n,"__esModule",{value:!0}),n.NavigateToDashboard=n.WebUSBCouldNotPair=n.WebUSBCouldNotInitialize=n.WebUSBNotAvailable=n.FirmwareUpdateRequired=n.WrongApp=n.SelectApp=n.ConflictingApp=n.PopupClosedError=n.DeviceLocked=n.DisconnectedDeviceDuringOperation=n.DeviceDisconnected=n.ActionCancelled=n.HDWalletError=n.HDWalletErrorType=void 0,function(t){t.ActionCancelled="ActionCancelled",t.DeviceDisconnected="DeviceDisconnected",t.DisconnectedDeviceDuringOperation="DisconnectedDeviceDuringOperation",t.DeviceLocked="DeviceLocked",t.PopupClosedError="PopupClosedError",t.ConflictingApp="ConflictingApp",t.SelectApp="SelectApp",t.WrongApp="WrongApp",t.FirmwareUpdateRequired="FirmwareUpdateRequired",t.WebUSBNotAvailable="WebUSBNotAvailable",t.WebUSBCouldNotInitialize="WebUSBCouldNotInitialize",t.WebUSBCouldNotPair="WebUSBCouldNotPair",t.NavigateToDashboard="NavigateToDashboard"}(r=n.HDWalletErrorType||(n.HDWalletErrorType={}));var s=function(t){o(e,t);var n=a(e);function e(t,r){var o;return i(this,e),(o=n.call(this,t)).name=r,o.type=r,o.message=t,"function"===typeof Error.captureStackTrace?Error.captureStackTrace(u(o),o.constructor):o.stack=new Error(t).stack,o}return e}(c(Error));n.HDWalletError=s;var f=function(t){o(e,t);var n=a(e);function e(){return i(this,e),n.call(this,"Action cancelled",r.ActionCancelled)}return e}(s);n.ActionCancelled=f;var l=function(t){o(e,t);var n=a(e);function e(){return i(this,e),n.call(this,"Device disconnected",r.DeviceDisconnected)}return e}(s);n.DeviceDisconnected=l;var h=function(t){o(e,t);var n=a(e);function e(){return i(this,e),n.call(this,"Ledger device disconnected during operation",r.DisconnectedDeviceDuringOperation)}return e}(s);n.DisconnectedDeviceDuringOperation=h;var p=function(t){o(e,t);var n=a(e);function e(){return i(this,e),n.call(this,"Device locked",r.DeviceLocked)}return e}(s);n.DeviceLocked=p;var v=function(t){o(e,t);var n=a(e);function e(){return i(this,e),n.call(this,"TrezorConnect popup closed",r.PopupClosedError)}return e}(s);n.PopupClosedError=v;var _=function(t){o(e,t);var n=a(e);function e(t){var u;return i(this,e),(u=n.call(this,"Conflicting Application: Another wallet is trying to connect with your ".concat(t,"."),r.ConflictingApp)).model=t,u}return e}(s);n.ConflictingApp=_;var d=function(t){o(e,t);var n=a(e);function e(t,u){return i(this,e),n.call(this,"Please open the ".concat(u," app on your ").concat(t,"."),r.SelectApp)}return e}(s);n.SelectApp=d;var y=function(t){o(e,t);var n=a(e);function e(t,u){return i(this,e),n.call(this,"Wrong app open. Please open the ".concat(u," app on your ").concat(t," and try again."),r.WrongApp)}return e}(s);n.WrongApp=y;var g=function(t){o(e,t);var n=a(e);function e(t,u){return i(this,e),n.call(this,"Firmware ".concat(u," or later is required to use your ").concat(t," with this client. Please update your device."),r.FirmwareUpdateRequired)}return e}(s);n.FirmwareUpdateRequired=g;var b=function(t){o(e,t);var n=a(e);function e(){return i(this,e),n.call(this,"WebUSB is not available in this browser. We recommend trying Chrome.",r.WebUSBNotAvailable)}return e}(s);n.WebUSBNotAvailable=b;var w=function(t){o(e,t);var n=a(e);function e(t,u){return i(this,e),n.call(this,"Could not initialize ".concat(t,": ").concat(u),r.WebUSBCouldNotInitialize)}return e}(s);n.WebUSBCouldNotInitialize=w;var m=function(t){o(e,t);var n=a(e);function e(t,u){return i(this,e),n.call(this,"Could not pair ".concat(t,": ").concat(u),r.WebUSBCouldNotPair)}return e}(s);n.WebUSBCouldNotPair=m;var A=function(t){o(e,t);var n=a(e);function e(t){return i(this,e),n.call(this,"Please navigate to the dashboard of your ".concat(t,"."),r.NavigateToDashboard)}return e}(s);n.NavigateToDashboard=A},1741:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.fioDescribePath=n.FioEncryptionContentType=n.Fio=void 0;var r,i=e(662);!function(t){!function(t){t.REQUEST="new_funds_content",t.OBT="record_obt_data_content"}(t.ContentType||(t.ContentType={}))}(r=n.Fio||(n.Fio={})),n.FioEncryptionContentType=r.ContentType,n.fioDescribePath=function(t){var n={verbose:i.addressNListToBIP32(t),coin:"Fio",isKnown:!1};if(5!=t.length)return n;if(2147483692!=t[0])return n;if(t[1]!=2147483648+i.slip44ByCoin("Fio"))return n;if((2147483648&t[2])>>>0!==2147483648)return n;if(0!==t[3]||0!==t[4])return n;var e=2147483647&t[2];return{verbose:"Fio Account #".concat(e),accountIdx:e,wholeAccount:!0,coin:"Fio",isKnown:!0,isPrefork:!1}}},1742:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.kavaDescribePath=void 0;var r=e(662);n.kavaDescribePath=function(t){var n={verbose:r.addressNListToBIP32(t),coin:"Kava",isKnown:!1};if(5!=t.length)return n;if(2147483692!=t[0])return n;if(t[1]!=2147483648+r.slip44ByCoin("Kava"))return n;if((2147483648&t[2])>>>0!==2147483648)return n;if(0!==t[3]||0!==t[4])return n;var e=2147483647&t[2];return{verbose:"Kava Account #".concat(e),accountIdx:e,wholeAccount:!0,coin:"Kava",isKnown:!0,isPrefork:!1}}},1743:function(t,n,e){"use strict";var r=e(9),i=e(38),u=e(39),o=e(99),a=e(100),c=this&&this.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),s=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),f=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)"default"!==e&&Object.prototype.hasOwnProperty.call(t,e)&&c(n,t,e);return s(n,t),n},l=this&&this.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(i,u){function o(t){try{c(r.next(t))}catch(n){u(n)}}function a(t){try{c(r.throw(t))}catch(n){u(n)}}function c(t){var n;t.done?i(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(o,a)}c((r=r.apply(t,n||[])).next())}))};Object.defineProperty(n,"__esModule",{value:!0}),n.Keyring=void 0;var h=function(t){o(e,t);var n=a(e);function e(){var t;return i(this,e),(t=n.call(this,{wildcard:!0})).wallets={},t.aliases={},t}return u(e,[{key:"add",value:function(t,n){var e=n||(new Date).toString();return!this.wallets[e]&&(this.wallets[e]=t,t.transport&&this.decorateEvents(e,t.transport),!0)}},{key:"addAlias",value:function(t,n){this.aliases[n]=t}},{key:"getAlias",value:function(t){var n=Object.keys(this.aliases),e=Object.values(this.aliases).indexOf(t);return-1!==e?n[e]:t}},{key:"exec",value:function(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),i=1;i1?r-1:0),o=1;o>>0!==2147483648)return n;if(0!==t[3]||0!==t[4])return n;var e=2147483647&t[2];return{verbose:"Secret Account #".concat(e),accountIdx:e,wholeAccount:!0,coin:"Secret",isKnown:!0,isPrefork:!1}}},1746:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.terraDescribePath=void 0;var r=e(662);n.terraDescribePath=function(t){var n={verbose:r.addressNListToBIP32(t),coin:"Terra",isKnown:!1};if(5!=t.length)return n;if(2147483692!=t[0])return n;if(t[1]!=2147483648+r.slip44ByCoin("Terra"))return n;if((2147483648&t[2])>>>0!==2147483648)return n;if(0!==t[3]||0!==t[4])return n;var e=2147483647&t[2];return{verbose:"Terra Account #".concat(e),accountIdx:e,wholeAccount:!0,coin:"Terra",isKnown:!0,isPrefork:!1}}},1747:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.thorchainDescribePath=void 0;var r=e(662);n.thorchainDescribePath=function(t){var n={verbose:r.addressNListToBIP32(t),coin:"Rune",isKnown:!1};if(5!=t.length)return n;if(2147483692!=t[0])return n;if(t[1]!=2147483648+r.slip44ByCoin("Rune"))return n;if((2147483648&t[2])>>>0!==2147483648)return n;if(0!==t[3]||0!==t[4])return n;var e=2147483647&t[2];return{verbose:"Thorchain Account #".concat(e),accountIdx:e,wholeAccount:!0,coin:"Thorchain",isKnown:!0,isPrefork:!1}}},1748:function(t,n,e){"use strict";var r=e(9),i=e(38),u=e(39),o=e(99),a=e(100),c=this&&this.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),s=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),f=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)"default"!==e&&Object.prototype.hasOwnProperty.call(t,e)&&c(n,t,e);return s(n,t),n},l=this&&this.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(i,u){function o(t){try{c(r.next(t))}catch(n){u(n)}}function a(t){try{c(r.throw(t))}catch(n){u(n)}}function c(t){var n;t.done?i(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(o,a)}c((r=r.apply(t,n||[])).next())}))};Object.defineProperty(n,"__esModule",{value:!0}),n.Transport=void 0;var h=function(t){o(e,t);var n=a(e);function e(t){var r;return i(this,e),(r=n.call(this)).keyring=t,r}return u(e,[{key:"connect",value:function(){return l(this,void 0,void 0,r.mark((function t(){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})))}},{key:"disconnect",value:function(){return l(this,void 0,void 0,r.mark((function t(){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})))}}]),e}(f(e(1156)).EventEmitter2);n.Transport=h},1749:function(t,n,e){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0}),n.supportsDebugLink=n.infoBinance=n.supportsBinance=n.infoRipple=n.supportsRipple=n.infoKava=n.supportsKava=n.infoTerra=n.supportsTerra=n.infoSecret=n.supportsSecret=n.infoFio=n.supportsFio=n.infoEos=n.supportsEos=n.infoThorchain=n.supportsThorchain=n.infoOsmosis=n.supportsOsmosis=n.infoCosmos=n.supportsCosmos=n.infoETH=n.supportsETH=n.infoBTC=n.supportsBTC=void 0;var i=r(e(736));n.supportsBTC=function(t){return i.default.isObject(t)&&t._supportsBTC},n.infoBTC=function(t){return i.default.isObject(t)&&t._supportsBTCInfo},n.supportsETH=function(t){return i.default.isObject(t)&&t._supportsETH},n.infoETH=function(t){return i.default.isObject(t)&&t._supportsETHInfo},n.supportsCosmos=function(t){return i.default.isObject(t)&&t._supportsCosmos},n.infoCosmos=function(t){return i.default.isObject(t)&&t._supportsCosmosInfo},n.supportsOsmosis=function(t){return i.default.isObject(t)&&t._supportsOsmosis},n.infoOsmosis=function(t){return i.default.isObject(t)&&t._supportsOsmosisInfo},n.supportsThorchain=function(t){return i.default.isObject(t)&&t._supportsThorchain},n.infoThorchain=function(t){return i.default.isObject(t)&&t._supportsThorchainInfo},n.supportsEos=function(t){return i.default.isObject(t)&&t._supportsEos},n.infoEos=function(t){return i.default.isObject(t)&&t._supportsEosInfo},n.supportsFio=function(t){return i.default.isObject(t)&&t._supportsFio},n.infoFio=function(t){return i.default.isObject(t)&&t._supportsFioInfo},n.supportsSecret=function(t){return i.default.isObject(t)&&t._supportsSecret},n.infoSecret=function(t){return i.default.isObject(t)&&t._supportsSecretInfo},n.supportsTerra=function(t){return i.default.isObject(t)&&t._supportsTerra},n.infoTerra=function(t){return i.default.isObject(t)&&t._supportsTerraInfo},n.supportsKava=function(t){return i.default.isObject(t)&&t._supportsKava},n.infoKava=function(t){return i.default.isObject(t)&&t._supportsKavaInfo},n.supportsRipple=function(t){return i.default.isObject(t)&&t._supportsRipple},n.infoRipple=function(t){return i.default.isObject(t)&&t._supportsRippleInfo},n.supportsBinance=function(t){return i.default.isObject(t)&&t._supportsBinance},n.infoBinance=function(t){return i.default.isObject(t)&&t._supportsBinanceInfo},n.supportsDebugLink=function(t){return i.default.isObject(t)&&t._supportsDebugLink}},648:function(t,n,e){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),i=this&&this.__exportStar||function(t,n){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(n,e)||r(n,t,e)};Object.defineProperty(n,"__esModule",{value:!0}),i(e(1731),n),i(e(1732),n),i(e(1734),n),i(e(1735),n),i(e(1736),n),i(e(1737),n),i(e(1738),n),i(e(1739),n),i(e(1740),n),i(e(1741),n),i(e(1742),n),i(e(1743),n),i(e(1744),n),i(e(1745),n),i(e(1746),n),i(e(1747),n),i(e(1748),n),i(e(662),n),i(e(1749),n)},662:function(t,n,e){"use strict";(function(t){var r=e(251),i=this&&this.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),u=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)"default"!==e&&Object.prototype.hasOwnProperty.call(t,e)&&i(n,t,e);return u(n,t),n};Object.defineProperty(n,"__esModule",{value:!0}),n.isIndexable=n.compatibleBufferConcat=n.checkBufferConcat=n.untouchable=n.mustBeDefined=n.toArrayBuffer=n.relativePath=n.hardenedPath=n.satsFromStr=n.slip44ByCoin=n.base64toHEX=n.stripHexPrefixAndLower=n.stripHexPrefix=n.takeFirstOfManyEvents=n.bip32Like=n.addressNListToBIP32=n.bip32ToAddressNList=n.arrayify=n.toHexString=n.fromHexString=n.isArray=n.LONG_TIMEOUT=n.DEFAULT_TIMEOUT=void 0;var a=o(e(677)),c=o(e(741));n.DEFAULT_TIMEOUT=5e3,n.LONG_TIMEOUT=3e5,n.isArray=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};n.fromHexString=function(t){var n=t.match(/.{1,2}/g)||[];return new Uint8Array(n.map((function(t){return parseInt(t,16)})))},n.toHexString=function(t){return Array.prototype.map.call(t,(function(t){return("00"+t.toString(16)).slice(-2)})).join("")},n.arrayify=function(t){if(null===t)throw new Error("cannot convert null value to array");if("string"!==typeof t)throw new Error("can only convert hex strings");var n=t.match(/^(0x)?[0-9a-fA-F]*$/);if(!n)throw new Error("invalid hexadecimal string");if("0x"!==n[1])throw new Error("hex string must have 0x prefix");(t=t.substring(2)).length%2&&(t="0"+t);for(var e=[],r=0;r=s)throw new Error("Invalid child index");if("h"===i[2]||"H"===i[2]||"'"===i[2])e[r]+=s;else if(0!==i[2].length)throw new Error("Invalid modifier")}return e},n.addressNListToBIP32=function(t){return"m/".concat(t.map((function(t){return t>=s?"".concat(t-s,"'"):t})).join("/"))},n.bip32Like=f,n.takeFirstOfManyEvents=function(t,n){return a.merge.apply(a,r(n.map((function(n){return a.fromEvent(t,n)})))).pipe(c.first())},n.stripHexPrefix=l,n.stripHexPrefixAndLower=function(t){return l(t).toLowerCase()},n.base64toHEX=function(t){for(var n=atob(t),e="",r=0;r0?8-(t.length-n-1):8;return Number(t.replace(/\./g,""))*Math.pow(10,e)},n.hardenedPath=function(t){return t.filter((function(t){return t>=2147483648}))},n.relativePath=function(t){return t.filter((function(t){return t<2147483648}))},n.toArrayBuffer=function(t){return t instanceof ArrayBuffer?t:t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)},n.mustBeDefined=function(t){if(null===t||void 0===t)throw new Error("expected a value");return t},n.untouchable=function(t){var n=new Proxy({},new Proxy({},{get:function(e,r){return function(e,i){if("get"===r&&"valueOf"===i)return function(){return n};throw new Error("".concat(String(r),"(").concat(String(i),"): ").concat(t))}}}));return n};var p=void 0;function v(){if(void 0===p)try{t.concat([new Uint8Array]),p=!1}catch(n){p=!0}return p}n.checkBufferConcat=v,n.compatibleBufferConcat=function(n){return v()?t.concat(n.map((function(n){return t.isBuffer(n)?n:t.from(n)}))):t.concat(n)},n.isIndexable=function(t){return null!==t&&["object","function"].includes(typeof t)}}).call(this,e(3).Buffer)},736:function(t,n,e){(function(t,r){var i;(function(){var u,o="Expected a function",a="__lodash_hash_undefined__",c="__lodash_placeholder__",s=16,f=32,l=64,h=128,p=256,v=1/0,_=9007199254740991,d=NaN,y=4294967295,g=[["ary",h],["bind",1],["bindKey",2],["curry",8],["curryRight",s],["flip",512],["partial",f],["partialRight",l],["rearg",p]],b="[object Arguments]",w="[object Array]",m="[object Boolean]",A="[object Date]",T="[object Error]",O="[object Function]",E="[object GeneratorFunction]",x="[object Map]",j="[object Number]",k="[object Object]",P="[object Promise]",S="[object RegExp]",C="[object Set]",B="[object String]",L="[object Symbol]",I="[object WeakMap]",D="[object ArrayBuffer]",R="[object DataView]",U="[object Float32Array]",W="[object Float64Array]",N="[object Int8Array]",M="[object Int16Array]",z="[object Int32Array]",F="[object Uint8Array]",H="[object Uint8ClampedArray]",K="[object Uint16Array]",$="[object Uint32Array]",q=/\b__p \+= '';/g,G=/\b(__p \+=) '' \+/g,X=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Q=/&(?:amp|lt|gt|quot|#39);/g,Y=/[&<>"']/g,Z=RegExp(Q.source),V=RegExp(Y.source),J=/<%-([\s\S]+?)%>/g,tt=/<%([\s\S]+?)%>/g,nt=/<%=([\s\S]+?)%>/g,et=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rt=/^\w*$/,it=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ut=/[\\^$.*+?()[\]{}|]/g,ot=RegExp(ut.source),at=/^\s+/,ct=/\s/,st=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ft=/\{\n\/\* \[wrapped with (.+)\] \*/,lt=/,? & /,ht=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pt=/[()=,{}\[\]\/\s]/,vt=/\\(\\)?/g,_t=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,dt=/\w*$/,yt=/^[-+]0x[0-9a-f]+$/i,gt=/^0b[01]+$/i,bt=/^\[object .+?Constructor\]$/,wt=/^0o[0-7]+$/i,mt=/^(?:0|[1-9]\d*)$/,At=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Tt=/($^)/,Ot=/['\n\r\u2028\u2029\\]/g,Et="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",xt="\\u2700-\\u27bf",jt="a-z\\xdf-\\xf6\\xf8-\\xff",kt="A-Z\\xc0-\\xd6\\xd8-\\xde",Pt="\\ufe0e\\ufe0f",St="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ct="['\u2019]",Bt="[\\ud800-\\udfff]",Lt="["+St+"]",It="["+Et+"]",Dt="\\d+",Rt="[\\u2700-\\u27bf]",Ut="["+jt+"]",Wt="[^\\ud800-\\udfff"+St+Dt+xt+jt+kt+"]",Nt="\\ud83c[\\udffb-\\udfff]",Mt="[^\\ud800-\\udfff]",zt="(?:\\ud83c[\\udde6-\\uddff]){2}",Ft="[\\ud800-\\udbff][\\udc00-\\udfff]",Ht="["+kt+"]",Kt="(?:"+Ut+"|"+Wt+")",$t="(?:"+Ht+"|"+Wt+")",qt="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Gt="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Xt="(?:"+It+"|"+Nt+")"+"?",Qt="[\\ufe0e\\ufe0f]?",Yt=Qt+Xt+("(?:\\u200d(?:"+[Mt,zt,Ft].join("|")+")"+Qt+Xt+")*"),Zt="(?:"+[Rt,zt,Ft].join("|")+")"+Yt,Vt="(?:"+[Mt+It+"?",It,zt,Ft,Bt].join("|")+")",Jt=RegExp(Ct,"g"),tn=RegExp(It,"g"),nn=RegExp(Nt+"(?="+Nt+")|"+Vt+Yt,"g"),en=RegExp([Ht+"?"+Ut+"+"+qt+"(?="+[Lt,Ht,"$"].join("|")+")",$t+"+"+Gt+"(?="+[Lt,Ht+Kt,"$"].join("|")+")",Ht+"?"+Kt+"+"+qt,Ht+"+"+Gt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Dt,Zt].join("|"),"g"),rn=RegExp("[\\u200d\\ud800-\\udfff"+Et+Pt+"]"),un=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,on=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],an=-1,cn={};cn[U]=cn[W]=cn[N]=cn[M]=cn[z]=cn[F]=cn[H]=cn[K]=cn[$]=!0,cn[b]=cn[w]=cn[D]=cn[m]=cn[R]=cn[A]=cn[T]=cn[O]=cn[x]=cn[j]=cn[k]=cn[S]=cn[C]=cn[B]=cn[I]=!1;var sn={};sn[b]=sn[w]=sn[D]=sn[R]=sn[m]=sn[A]=sn[U]=sn[W]=sn[N]=sn[M]=sn[z]=sn[x]=sn[j]=sn[k]=sn[S]=sn[C]=sn[B]=sn[L]=sn[F]=sn[H]=sn[K]=sn[$]=!0,sn[T]=sn[O]=sn[I]=!1;var fn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ln=parseFloat,hn=parseInt,pn="object"==typeof t&&t&&t.Object===Object&&t,vn="object"==typeof self&&self&&self.Object===Object&&self,_n=pn||vn||Function("return this")(),dn=n&&!n.nodeType&&n,yn=dn&&"object"==typeof r&&r&&!r.nodeType&&r,gn=yn&&yn.exports===dn,bn=gn&&pn.process,wn=function(){try{var t=yn&&yn.require&&yn.require("util").types;return t||bn&&bn.binding&&bn.binding("util")}catch(n){}}(),mn=wn&&wn.isArrayBuffer,An=wn&&wn.isDate,Tn=wn&&wn.isMap,On=wn&&wn.isRegExp,En=wn&&wn.isSet,xn=wn&&wn.isTypedArray;function jn(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}function kn(t,n,e,r){for(var i=-1,u=null==t?0:t.length;++i-1}function In(t,n,e){for(var r=-1,i=null==t?0:t.length;++r-1;);return e}function re(t,n){for(var e=t.length;e--&&Hn(n,t[e],0)>-1;);return e}function ie(t,n){for(var e=t.length,r=0;e--;)t[e]===n&&++r;return r}var ue=Xn({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),oe=Xn({"&":"&","<":"<",">":">",'"':""","'":"'"});function ae(t){return"\\"+fn[t]}function ce(t){return rn.test(t)}function se(t){var n=-1,e=Array(t.size);return t.forEach((function(t,r){e[++n]=[r,t]})),e}function fe(t,n){return function(e){return t(n(e))}}function le(t,n){for(var e=-1,r=t.length,i=0,u=[];++e",""":'"',"'":"'"});var ge=function t(n){var e=(n=null==n?_n:ge.defaults(_n.Object(),n,ge.pick(_n,on))).Array,r=n.Date,i=n.Error,ct=n.Function,Et=n.Math,xt=n.Object,jt=n.RegExp,kt=n.String,Pt=n.TypeError,St=e.prototype,Ct=ct.prototype,Bt=xt.prototype,Lt=n["__core-js_shared__"],It=Ct.toString,Dt=Bt.hasOwnProperty,Rt=0,Ut=function(){var t=/[^.]+$/.exec(Lt&&Lt.keys&&Lt.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Wt=Bt.toString,Nt=It.call(xt),Mt=_n._,zt=jt("^"+It.call(Dt).replace(ut,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ft=gn?n.Buffer:u,Ht=n.Symbol,Kt=n.Uint8Array,$t=Ft?Ft.allocUnsafe:u,qt=fe(xt.getPrototypeOf,xt),Gt=xt.create,Xt=Bt.propertyIsEnumerable,Qt=St.splice,Yt=Ht?Ht.isConcatSpreadable:u,Zt=Ht?Ht.iterator:u,Vt=Ht?Ht.toStringTag:u,nn=function(){try{var t=hu(xt,"defineProperty");return t({},"",{}),t}catch(n){}}(),rn=n.clearTimeout!==_n.clearTimeout&&n.clearTimeout,fn=r&&r.now!==_n.Date.now&&r.now,pn=n.setTimeout!==_n.setTimeout&&n.setTimeout,vn=Et.ceil,dn=Et.floor,yn=xt.getOwnPropertySymbols,bn=Ft?Ft.isBuffer:u,wn=n.isFinite,Mn=St.join,Xn=fe(xt.keys,xt),be=Et.max,we=Et.min,me=r.now,Ae=n.parseInt,Te=Et.random,Oe=St.reverse,Ee=hu(n,"DataView"),xe=hu(n,"Map"),je=hu(n,"Promise"),ke=hu(n,"Set"),Pe=hu(n,"WeakMap"),Se=hu(xt,"create"),Ce=Pe&&new Pe,Be={},Le=Nu(Ee),Ie=Nu(xe),De=Nu(je),Re=Nu(ke),Ue=Nu(Pe),We=Ht?Ht.prototype:u,Ne=We?We.valueOf:u,Me=We?We.toString:u;function ze(t){if(ra(t)&&!qo(t)&&!(t instanceof $e)){if(t instanceof Ke)return t;if(Dt.call(t,"__wrapped__"))return Mu(t)}return new Ke(t)}var Fe=function(){function t(){}return function(n){if(!ea(n))return{};if(Gt)return Gt(n);t.prototype=n;var e=new t;return t.prototype=u,e}}();function He(){}function Ke(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=u}function $e(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=y,this.__views__=[]}function qe(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n=n?t:n)),t}function sr(t,n,e,r,i,o){var a,c=1&n,s=2&n,f=4&n;if(e&&(a=i?e(t,r,i,o):e(t)),a!==u)return a;if(!ea(t))return t;var l=qo(t);if(l){if(a=function(t){var n=t.length,e=new t.constructor(n);n&&"string"==typeof t[0]&&Dt.call(t,"index")&&(e.index=t.index,e.input=t.input);return e}(t),!c)return Si(t,a)}else{var h=_u(t),p=h==O||h==E;if(Yo(t))return Oi(t,c);if(h==k||h==b||p&&!i){if(a=s||p?{}:yu(t),!c)return s?function(t,n){return Ci(t,vu(t),n)}(t,function(t,n){return t&&Ci(n,Ia(n),t)}(a,t)):function(t,n){return Ci(t,pu(t),n)}(t,ur(a,t))}else{if(!sn[h])return i?t:{};a=function(t,n,e){var r=t.constructor;switch(n){case D:return Ei(t);case m:case A:return new r(+t);case R:return function(t,n){var e=n?Ei(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}(t,e);case U:case W:case N:case M:case z:case F:case H:case K:case $:return xi(t,e);case x:return new r;case j:case B:return new r(t);case S:return function(t){var n=new t.constructor(t.source,dt.exec(t));return n.lastIndex=t.lastIndex,n}(t);case C:return new r;case L:return i=t,Ne?xt(Ne.call(i)):{}}var i}(t,h,c)}}o||(o=new Ye);var v=o.get(t);if(v)return v;o.set(t,a),ca(t)?t.forEach((function(r){a.add(sr(r,n,e,r,t,o))})):ia(t)&&t.forEach((function(r,i){a.set(i,sr(r,n,e,i,t,o))}));var _=l?u:(f?s?uu:iu:s?Ia:La)(t);return Pn(_||t,(function(r,i){_&&(r=t[i=r]),er(a,i,sr(r,n,e,i,t,o))})),a}function fr(t,n,e){var r=e.length;if(null==t)return!r;for(t=xt(t);r--;){var i=e[r],o=n[i],a=t[i];if(a===u&&!(i in t)||!o(a))return!1}return!0}function lr(t,n,e){if("function"!=typeof t)throw new Pt(o);return Bu((function(){t.apply(u,e)}),n)}function hr(t,n,e,r){var i=-1,u=Ln,o=!0,a=t.length,c=[],s=n.length;if(!a)return c;e&&(n=Dn(n,Jn(e))),r?(u=In,o=!1):n.length>=200&&(u=ne,o=!1,n=new Qe(n));t:for(;++i-1},Ge.prototype.set=function(t,n){var e=this.__data__,r=rr(e,t);return r<0?(++this.size,e.push([t,n])):e[r][1]=n,this},Xe.prototype.clear=function(){this.size=0,this.__data__={hash:new qe,map:new(xe||Ge),string:new qe}},Xe.prototype.delete=function(t){var n=fu(this,t).delete(t);return this.size-=n?1:0,n},Xe.prototype.get=function(t){return fu(this,t).get(t)},Xe.prototype.has=function(t){return fu(this,t).has(t)},Xe.prototype.set=function(t,n){var e=fu(this,t),r=e.size;return e.set(t,n),this.size+=e.size==r?0:1,this},Qe.prototype.add=Qe.prototype.push=function(t){return this.__data__.set(t,a),this},Qe.prototype.has=function(t){return this.__data__.has(t)},Ye.prototype.clear=function(){this.__data__=new Ge,this.size=0},Ye.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},Ye.prototype.get=function(t){return this.__data__.get(t)},Ye.prototype.has=function(t){return this.__data__.has(t)},Ye.prototype.set=function(t,n){var e=this.__data__;if(e instanceof Ge){var r=e.__data__;if(!xe||r.length<199)return r.push([t,n]),this.size=++e.size,this;e=this.__data__=new Xe(r)}return e.set(t,n),this.size=e.size,this};var pr=Ii(mr),vr=Ii(Ar,!0);function _r(t,n){var e=!0;return pr(t,(function(t,r,i){return e=!!n(t,r,i)})),e}function dr(t,n,e){for(var r=-1,i=t.length;++r0&&e(a)?n>1?gr(a,n-1,e,r,i):Rn(i,a):r||(i[i.length]=a)}return i}var br=Di(),wr=Di(!0);function mr(t,n){return t&&br(t,n,La)}function Ar(t,n){return t&&wr(t,n,La)}function Tr(t,n){return Bn(n,(function(n){return Jo(t[n])}))}function Or(t,n){for(var e=0,r=(n=wi(n,t)).length;null!=t&&en}function kr(t,n){return null!=t&&Dt.call(t,n)}function Pr(t,n){return null!=t&&n in xt(t)}function Sr(t,n,r){for(var i=r?In:Ln,o=t[0].length,a=t.length,c=a,s=e(a),f=1/0,l=[];c--;){var h=t[c];c&&n&&(h=Dn(h,Jn(n))),f=we(h.length,f),s[c]=!r&&(n||o>=120&&h.length>=120)?new Qe(c&&h):u}h=t[0];var p=-1,v=s[0];t:for(;++p=a?c:c*("desc"==e[r]?-1:1)}return t.index-n.index}(t,n,e)}))}function qr(t,n,e){for(var r=-1,i=n.length,u={};++r-1;)a!==t&&Qt.call(a,c,1),Qt.call(t,c,1);return t}function Xr(t,n){for(var e=t?n.length:0,r=e-1;e--;){var i=n[e];if(e==r||i!==u){var u=i;bu(i)?Qt.call(t,i,1):hi(t,i)}}return t}function Qr(t,n){return t+dn(Te()*(n-t+1))}function Yr(t,n){var e="";if(!t||n<1||n>_)return e;do{n%2&&(e+=t),(n=dn(n/2))&&(t+=t)}while(n);return e}function Zr(t,n){return Lu(ju(t,n,uc),t+"")}function Vr(t){return Ve(Fa(t))}function Jr(t,n){var e=Fa(t);return Ru(e,cr(n,0,e.length))}function ti(t,n,e,r){if(!ea(t))return t;for(var i=-1,o=(n=wi(n,t)).length,a=o-1,c=t;null!=c&&++iu?0:u+n),(r=r>u?u:r)<0&&(r+=u),u=n>r?0:r-n>>>0,n>>>=0;for(var o=e(u);++i>>1,o=t[u];null!==o&&!fa(o)&&(e?o<=n:o=200){var s=n?null:Yi(t);if(s)return he(s);o=!1,i=ne,c=new Qe}else c=n?[]:a;t:for(;++r=r?t:ii(t,n,e)}var Ti=rn||function(t){return _n.clearTimeout(t)};function Oi(t,n){if(n)return t.slice();var e=t.length,r=$t?$t(e):new t.constructor(e);return t.copy(r),r}function Ei(t){var n=new t.constructor(t.byteLength);return new Kt(n).set(new Kt(t)),n}function xi(t,n){var e=n?Ei(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}function ji(t,n){if(t!==n){var e=t!==u,r=null===t,i=t===t,o=fa(t),a=n!==u,c=null===n,s=n===n,f=fa(n);if(!c&&!f&&!o&&t>n||o&&a&&s&&!c&&!f||r&&a&&s||!e&&s||!i)return 1;if(!r&&!o&&!f&&t1?e[i-1]:u,a=i>2?e[2]:u;for(o=t.length>3&&"function"==typeof o?(i--,o):u,a&&wu(e[0],e[1],a)&&(o=i<3?u:o,i=1),n=xt(n);++r-1?i[o?n[a]:a]:u}}function Mi(t){return ru((function(n){var e=n.length,r=e,i=Ke.prototype.thru;for(t&&n.reverse();r--;){var a=n[r];if("function"!=typeof a)throw new Pt(o);if(i&&!c&&"wrapper"==au(a))var c=new Ke([],!0)}for(r=c?r:e;++r1&&b.reverse(),p&&fc))return!1;var f=o.get(t),l=o.get(n);if(f&&l)return f==n&&l==t;var h=-1,p=!0,v=2&e?new Qe:u;for(o.set(t,n),o.set(n,t);++h-1&&t%1==0&&t1?"& ":"")+n[r],n=n.join(e>2?", ":" "),t.replace(st,"{\n/* [wrapped with "+n+"] */\n")}(r,function(t,n){return Pn(g,(function(e){var r="_."+e[0];n&e[1]&&!Ln(t,r)&&t.push(r)})),t.sort()}(function(t){var n=t.match(ft);return n?n[1].split(lt):[]}(r),e)))}function Du(t){var n=0,e=0;return function(){var r=me(),i=16-(r-e);if(e=r,i>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(u,arguments)}}function Ru(t,n){var e=-1,r=t.length,i=r-1;for(n=n===u?r:n;++e1?t[n-1]:u;return e="function"==typeof e?(t.pop(),e):u,oo(t,e)}));function po(t){var n=ze(t);return n.__chain__=!0,n}function vo(t,n){return n(t)}var _o=ru((function(t){var n=t.length,e=n?t[0]:0,r=this.__wrapped__,i=function(n){return ar(n,t)};return!(n>1||this.__actions__.length)&&r instanceof $e&&bu(e)?((r=r.slice(e,+e+(n?1:0))).__actions__.push({func:vo,args:[i],thisArg:u}),new Ke(r,this.__chain__).thru((function(t){return n&&!t.length&&t.push(u),t}))):this.thru(i)}));var yo=Bi((function(t,n,e){Dt.call(t,e)?++t[e]:or(t,e,1)}));var go=Ni(Ku),bo=Ni($u);function wo(t,n){return(qo(t)?Pn:pr)(t,su(n,3))}function mo(t,n){return(qo(t)?Sn:vr)(t,su(n,3))}var Ao=Bi((function(t,n,e){Dt.call(t,e)?t[e].push(n):or(t,e,[n])}));var To=Zr((function(t,n,r){var i=-1,u="function"==typeof n,o=Xo(t)?e(t.length):[];return pr(t,(function(t){o[++i]=u?jn(n,t,r):Cr(t,n,r)})),o})),Oo=Bi((function(t,n,e){or(t,e,n)}));function Eo(t,n){return(qo(t)?Dn:Mr)(t,su(n,3))}var xo=Bi((function(t,n,e){t[e?0:1].push(n)}),(function(){return[[],[]]}));var jo=Zr((function(t,n){if(null==t)return[];var e=n.length;return e>1&&wu(t,n[0],n[1])?n=[]:e>2&&wu(n[0],n[1],n[2])&&(n=[n[0]]),$r(t,gr(n,1),[])})),ko=fn||function(){return _n.Date.now()};function Po(t,n,e){return n=e?u:n,n=t&&null==n?t.length:n,Vi(t,h,u,u,u,u,n)}function So(t,n){var e;if("function"!=typeof n)throw new Pt(o);return t=da(t),function(){return--t>0&&(e=n.apply(this,arguments)),t<=1&&(n=u),e}}var Co=Zr((function(t,n,e){var r=1;if(e.length){var i=le(e,cu(Co));r|=f}return Vi(t,r,n,e,i)})),Bo=Zr((function(t,n,e){var r=3;if(e.length){var i=le(e,cu(Bo));r|=f}return Vi(n,r,t,e,i)}));function Lo(t,n,e){var r,i,a,c,s,f,l=0,h=!1,p=!1,v=!0;if("function"!=typeof t)throw new Pt(o);function _(n){var e=r,o=i;return r=i=u,l=n,c=t.apply(o,e)}function d(t){return l=t,s=Bu(g,n),h?_(t):c}function y(t){var e=t-f;return f===u||e>=n||e<0||p&&t-l>=a}function g(){var t=ko();if(y(t))return b(t);s=Bu(g,function(t){var e=n-(t-f);return p?we(e,a-(t-l)):e}(t))}function b(t){return s=u,v&&r?_(t):(r=i=u,c)}function w(){var t=ko(),e=y(t);if(r=arguments,i=this,f=t,e){if(s===u)return d(f);if(p)return Ti(s),s=Bu(g,n),_(f)}return s===u&&(s=Bu(g,n)),c}return n=ga(n)||0,ea(e)&&(h=!!e.leading,a=(p="maxWait"in e)?be(ga(e.maxWait)||0,n):a,v="trailing"in e?!!e.trailing:v),w.cancel=function(){s!==u&&Ti(s),l=0,r=f=i=s=u},w.flush=function(){return s===u?c:b(ko())},w}var Io=Zr((function(t,n){return lr(t,1,n)})),Do=Zr((function(t,n,e){return lr(t,ga(n)||0,e)}));function Ro(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new Pt(o);var e=function e(){var r=arguments,i=n?n.apply(this,r):r[0],u=e.cache;if(u.has(i))return u.get(i);var o=t.apply(this,r);return e.cache=u.set(i,o)||u,o};return e.cache=new(Ro.Cache||Xe),e}function Uo(t){if("function"!=typeof t)throw new Pt(o);return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}Ro.Cache=Xe;var Wo=mi((function(t,n){var e=(n=1==n.length&&qo(n[0])?Dn(n[0],Jn(su())):Dn(gr(n,1),Jn(su()))).length;return Zr((function(r){for(var i=-1,u=we(r.length,e);++i=n})),$o=Br(function(){return arguments}())?Br:function(t){return ra(t)&&Dt.call(t,"callee")&&!Xt.call(t,"callee")},qo=e.isArray,Go=mn?Jn(mn):function(t){return ra(t)&&xr(t)==D};function Xo(t){return null!=t&&na(t.length)&&!Jo(t)}function Qo(t){return ra(t)&&Xo(t)}var Yo=bn||gc,Zo=An?Jn(An):function(t){return ra(t)&&xr(t)==A};function Vo(t){if(!ra(t))return!1;var n=xr(t);return n==T||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!oa(t)}function Jo(t){if(!ea(t))return!1;var n=xr(t);return n==O||n==E||"[object AsyncFunction]"==n||"[object Proxy]"==n}function ta(t){return"number"==typeof t&&t==da(t)}function na(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=_}function ea(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}function ra(t){return null!=t&&"object"==typeof t}var ia=Tn?Jn(Tn):function(t){return ra(t)&&_u(t)==x};function ua(t){return"number"==typeof t||ra(t)&&xr(t)==j}function oa(t){if(!ra(t)||xr(t)!=k)return!1;var n=qt(t);if(null===n)return!0;var e=Dt.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&It.call(e)==Nt}var aa=On?Jn(On):function(t){return ra(t)&&xr(t)==S};var ca=En?Jn(En):function(t){return ra(t)&&_u(t)==C};function sa(t){return"string"==typeof t||!qo(t)&&ra(t)&&xr(t)==B}function fa(t){return"symbol"==typeof t||ra(t)&&xr(t)==L}var la=xn?Jn(xn):function(t){return ra(t)&&na(t.length)&&!!cn[xr(t)]};var ha=Gi(Nr),pa=Gi((function(t,n){return t<=n}));function va(t){if(!t)return[];if(Xo(t))return sa(t)?_e(t):Si(t);if(Zt&&t[Zt])return function(t){for(var n,e=[];!(n=t.next()).done;)e.push(n.value);return e}(t[Zt]());var n=_u(t);return(n==x?se:n==C?he:Fa)(t)}function _a(t){return t?(t=ga(t))===v||t===-1/0?17976931348623157e292*(t<0?-1:1):t===t?t:0:0===t?t:0}function da(t){var n=_a(t),e=n%1;return n===n?e?n-e:n:0}function ya(t){return t?cr(da(t),0,y):0}function ga(t){if("number"==typeof t)return t;if(fa(t))return d;if(ea(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=ea(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=Vn(t);var e=gt.test(t);return e||wt.test(t)?hn(t.slice(2),e?2:8):yt.test(t)?d:+t}function ba(t){return Ci(t,Ia(t))}function wa(t){return null==t?"":fi(t)}var ma=Li((function(t,n){if(Ou(n)||Xo(n))Ci(n,La(n),t);else for(var e in n)Dt.call(n,e)&&er(t,e,n[e])})),Aa=Li((function(t,n){Ci(n,Ia(n),t)})),Ta=Li((function(t,n,e,r){Ci(n,Ia(n),t,r)})),Oa=Li((function(t,n,e,r){Ci(n,La(n),t,r)})),Ea=ru(ar);var xa=Zr((function(t,n){t=xt(t);var e=-1,r=n.length,i=r>2?n[2]:u;for(i&&wu(n[0],n[1],i)&&(r=1);++e1),n})),Ci(t,uu(t),e),r&&(e=sr(e,7,nu));for(var i=n.length;i--;)hi(e,n[i]);return e}));var Wa=ru((function(t,n){return null==t?{}:function(t,n){return qr(t,n,(function(n,e){return Pa(t,e)}))}(t,n)}));function Na(t,n){if(null==t)return{};var e=Dn(uu(t),(function(t){return[t]}));return n=su(n),qr(t,e,(function(t,e){return n(t,e[0])}))}var Ma=Zi(La),za=Zi(Ia);function Fa(t){return null==t?[]:te(t,La(t))}var Ha=Ui((function(t,n,e){return n=n.toLowerCase(),t+(e?Ka(n):n)}));function Ka(t){return Va(wa(t).toLowerCase())}function $a(t){return(t=wa(t))&&t.replace(At,ue).replace(tn,"")}var qa=Ui((function(t,n,e){return t+(e?"-":"")+n.toLowerCase()})),Ga=Ui((function(t,n,e){return t+(e?" ":"")+n.toLowerCase()})),Xa=Ri("toLowerCase");var Qa=Ui((function(t,n,e){return t+(e?"_":"")+n.toLowerCase()}));var Ya=Ui((function(t,n,e){return t+(e?" ":"")+Va(n)}));var Za=Ui((function(t,n,e){return t+(e?" ":"")+n.toUpperCase()})),Va=Ri("toUpperCase");function Ja(t,n,e){return t=wa(t),(n=e?u:n)===u?function(t){return un.test(t)}(t)?function(t){return t.match(en)||[]}(t):function(t){return t.match(ht)||[]}(t):t.match(n)||[]}var tc=Zr((function(t,n){try{return jn(t,u,n)}catch(e){return Vo(e)?e:new i(e)}})),nc=ru((function(t,n){return Pn(n,(function(n){n=Wu(n),or(t,n,Co(t[n],t))})),t}));function ec(t){return function(){return t}}var rc=Mi(),ic=Mi(!0);function uc(t){return t}function oc(t){return Rr("function"==typeof t?t:sr(t,1))}var ac=Zr((function(t,n){return function(e){return Cr(e,t,n)}})),cc=Zr((function(t,n){return function(e){return Cr(t,e,n)}}));function sc(t,n,e){var r=La(n),i=Tr(n,r);null!=e||ea(n)&&(i.length||!r.length)||(e=n,n=t,t=this,i=Tr(n,La(n)));var u=!(ea(e)&&"chain"in e)||!!e.chain,o=Jo(t);return Pn(i,(function(e){var r=n[e];t[e]=r,o&&(t.prototype[e]=function(){var n=this.__chain__;if(u||n){var e=t(this.__wrapped__),i=e.__actions__=Si(this.__actions__);return i.push({func:r,args:arguments,thisArg:t}),e.__chain__=n,e}return r.apply(t,Rn([this.value()],arguments))})})),t}function fc(){}var lc=Ki(Dn),hc=Ki(Cn),pc=Ki(Nn);function vc(t){return mu(t)?Gn(Wu(t)):function(t){return function(n){return Or(n,t)}}(t)}var _c=qi(),dc=qi(!0);function yc(){return[]}function gc(){return!1}var bc=Hi((function(t,n){return t+n}),0),wc=Qi("ceil"),mc=Hi((function(t,n){return t/n}),1),Ac=Qi("floor");var Tc=Hi((function(t,n){return t*n}),1),Oc=Qi("round"),Ec=Hi((function(t,n){return t-n}),0);return ze.after=function(t,n){if("function"!=typeof n)throw new Pt(o);return t=da(t),function(){if(--t<1)return n.apply(this,arguments)}},ze.ary=Po,ze.assign=ma,ze.assignIn=Aa,ze.assignInWith=Ta,ze.assignWith=Oa,ze.at=Ea,ze.before=So,ze.bind=Co,ze.bindAll=nc,ze.bindKey=Bo,ze.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return qo(t)?t:[t]},ze.chain=po,ze.chunk=function(t,n,r){n=(r?wu(t,n,r):n===u)?1:be(da(n),0);var i=null==t?0:t.length;if(!i||n<1)return[];for(var o=0,a=0,c=e(vn(i/n));oi?0:i+e),(r=r===u||r>i?i:da(r))<0&&(r+=i),r=e>r?0:ya(r);e>>0)?(t=wa(t))&&("string"==typeof n||null!=n&&!aa(n))&&!(n=fi(n))&&ce(t)?Ai(_e(t),0,e):t.split(n,e):[]},ze.spread=function(t,n){if("function"!=typeof t)throw new Pt(o);return n=null==n?0:be(da(n),0),Zr((function(e){var r=e[n],i=Ai(e,0,n);return r&&Rn(i,r),jn(t,this,i)}))},ze.tail=function(t){var n=null==t?0:t.length;return n?ii(t,1,n):[]},ze.take=function(t,n,e){return t&&t.length?ii(t,0,(n=e||n===u?1:da(n))<0?0:n):[]},ze.takeRight=function(t,n,e){var r=null==t?0:t.length;return r?ii(t,(n=r-(n=e||n===u?1:da(n)))<0?0:n,r):[]},ze.takeRightWhile=function(t,n){return t&&t.length?vi(t,su(n,3),!1,!0):[]},ze.takeWhile=function(t,n){return t&&t.length?vi(t,su(n,3)):[]},ze.tap=function(t,n){return n(t),t},ze.throttle=function(t,n,e){var r=!0,i=!0;if("function"!=typeof t)throw new Pt(o);return ea(e)&&(r="leading"in e?!!e.leading:r,i="trailing"in e?!!e.trailing:i),Lo(t,n,{leading:r,maxWait:n,trailing:i})},ze.thru=vo,ze.toArray=va,ze.toPairs=Ma,ze.toPairsIn=za,ze.toPath=function(t){return qo(t)?Dn(t,Wu):fa(t)?[t]:Si(Uu(wa(t)))},ze.toPlainObject=ba,ze.transform=function(t,n,e){var r=qo(t),i=r||Yo(t)||la(t);if(n=su(n,4),null==e){var u=t&&t.constructor;e=i?r?new u:[]:ea(t)&&Jo(u)?Fe(qt(t)):{}}return(i?Pn:mr)(t,(function(t,r,i){return n(e,t,r,i)})),e},ze.unary=function(t){return Po(t,1)},ze.union=eo,ze.unionBy=ro,ze.unionWith=io,ze.uniq=function(t){return t&&t.length?li(t):[]},ze.uniqBy=function(t,n){return t&&t.length?li(t,su(n,2)):[]},ze.uniqWith=function(t,n){return n="function"==typeof n?n:u,t&&t.length?li(t,u,n):[]},ze.unset=function(t,n){return null==t||hi(t,n)},ze.unzip=uo,ze.unzipWith=oo,ze.update=function(t,n,e){return null==t?t:pi(t,n,bi(e))},ze.updateWith=function(t,n,e,r){return r="function"==typeof r?r:u,null==t?t:pi(t,n,bi(e),r)},ze.values=Fa,ze.valuesIn=function(t){return null==t?[]:te(t,Ia(t))},ze.without=ao,ze.words=Ja,ze.wrap=function(t,n){return No(bi(n),t)},ze.xor=co,ze.xorBy=so,ze.xorWith=fo,ze.zip=lo,ze.zipObject=function(t,n){return yi(t||[],n||[],er)},ze.zipObjectDeep=function(t,n){return yi(t||[],n||[],ti)},ze.zipWith=ho,ze.entries=Ma,ze.entriesIn=za,ze.extend=Aa,ze.extendWith=Ta,sc(ze,ze),ze.add=bc,ze.attempt=tc,ze.camelCase=Ha,ze.capitalize=Ka,ze.ceil=wc,ze.clamp=function(t,n,e){return e===u&&(e=n,n=u),e!==u&&(e=(e=ga(e))===e?e:0),n!==u&&(n=(n=ga(n))===n?n:0),cr(ga(t),n,e)},ze.clone=function(t){return sr(t,4)},ze.cloneDeep=function(t){return sr(t,5)},ze.cloneDeepWith=function(t,n){return sr(t,5,n="function"==typeof n?n:u)},ze.cloneWith=function(t,n){return sr(t,4,n="function"==typeof n?n:u)},ze.conformsTo=function(t,n){return null==n||fr(t,n,La(n))},ze.deburr=$a,ze.defaultTo=function(t,n){return null==t||t!==t?n:t},ze.divide=mc,ze.endsWith=function(t,n,e){t=wa(t),n=fi(n);var r=t.length,i=e=e===u?r:cr(da(e),0,r);return(e-=n.length)>=0&&t.slice(e,i)==n},ze.eq=Fo,ze.escape=function(t){return(t=wa(t))&&V.test(t)?t.replace(Y,oe):t},ze.escapeRegExp=function(t){return(t=wa(t))&&ot.test(t)?t.replace(ut,"\\$&"):t},ze.every=function(t,n,e){var r=qo(t)?Cn:_r;return e&&wu(t,n,e)&&(n=u),r(t,su(n,3))},ze.find=go,ze.findIndex=Ku,ze.findKey=function(t,n){return zn(t,su(n,3),mr)},ze.findLast=bo,ze.findLastIndex=$u,ze.findLastKey=function(t,n){return zn(t,su(n,3),Ar)},ze.floor=Ac,ze.forEach=wo,ze.forEachRight=mo,ze.forIn=function(t,n){return null==t?t:br(t,su(n,3),Ia)},ze.forInRight=function(t,n){return null==t?t:wr(t,su(n,3),Ia)},ze.forOwn=function(t,n){return t&&mr(t,su(n,3))},ze.forOwnRight=function(t,n){return t&&Ar(t,su(n,3))},ze.get=ka,ze.gt=Ho,ze.gte=Ko,ze.has=function(t,n){return null!=t&&du(t,n,kr)},ze.hasIn=Pa,ze.head=Gu,ze.identity=uc,ze.includes=function(t,n,e,r){t=Xo(t)?t:Fa(t),e=e&&!r?da(e):0;var i=t.length;return e<0&&(e=be(i+e,0)),sa(t)?e<=i&&t.indexOf(n,e)>-1:!!i&&Hn(t,n,e)>-1},ze.indexOf=function(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var i=null==e?0:da(e);return i<0&&(i=be(r+i,0)),Hn(t,n,i)},ze.inRange=function(t,n,e){return n=_a(n),e===u?(e=n,n=0):e=_a(e),function(t,n,e){return t>=we(n,e)&&t=-9007199254740991&&t<=_},ze.isSet=ca,ze.isString=sa,ze.isSymbol=fa,ze.isTypedArray=la,ze.isUndefined=function(t){return t===u},ze.isWeakMap=function(t){return ra(t)&&_u(t)==I},ze.isWeakSet=function(t){return ra(t)&&"[object WeakSet]"==xr(t)},ze.join=function(t,n){return null==t?"":Mn.call(t,n)},ze.kebabCase=qa,ze.last=Zu,ze.lastIndexOf=function(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var i=r;return e!==u&&(i=(i=da(e))<0?be(r+i,0):we(i,r-1)),n===n?function(t,n,e){for(var r=e+1;r--;)if(t[r]===n)return r;return r}(t,n,i):Fn(t,$n,i,!0)},ze.lowerCase=Ga,ze.lowerFirst=Xa,ze.lt=ha,ze.lte=pa,ze.max=function(t){return t&&t.length?dr(t,uc,jr):u},ze.maxBy=function(t,n){return t&&t.length?dr(t,su(n,2),jr):u},ze.mean=function(t){return qn(t,uc)},ze.meanBy=function(t,n){return qn(t,su(n,2))},ze.min=function(t){return t&&t.length?dr(t,uc,Nr):u},ze.minBy=function(t,n){return t&&t.length?dr(t,su(n,2),Nr):u},ze.stubArray=yc,ze.stubFalse=gc,ze.stubObject=function(){return{}},ze.stubString=function(){return""},ze.stubTrue=function(){return!0},ze.multiply=Tc,ze.nth=function(t,n){return t&&t.length?Kr(t,da(n)):u},ze.noConflict=function(){return _n._===this&&(_n._=Mt),this},ze.noop=fc,ze.now=ko,ze.pad=function(t,n,e){t=wa(t);var r=(n=da(n))?ve(t):0;if(!n||r>=n)return t;var i=(n-r)/2;return $i(dn(i),e)+t+$i(vn(i),e)},ze.padEnd=function(t,n,e){t=wa(t);var r=(n=da(n))?ve(t):0;return n&&rn){var r=t;t=n,n=r}if(e||t%1||n%1){var i=Te();return we(t+i*(n-t+ln("1e-"+((i+"").length-1))),n)}return Qr(t,n)},ze.reduce=function(t,n,e){var r=qo(t)?Un:Qn,i=arguments.length<3;return r(t,su(n,4),e,i,pr)},ze.reduceRight=function(t,n,e){var r=qo(t)?Wn:Qn,i=arguments.length<3;return r(t,su(n,4),e,i,vr)},ze.repeat=function(t,n,e){return n=(e?wu(t,n,e):n===u)?1:da(n),Yr(wa(t),n)},ze.replace=function(){var t=arguments,n=wa(t[0]);return t.length<3?n:n.replace(t[1],t[2])},ze.result=function(t,n,e){var r=-1,i=(n=wi(n,t)).length;for(i||(i=1,t=u);++r_)return[];var e=y,r=we(t,y);n=su(n),t-=y;for(var i=Zn(r,n);++e=o)return t;var c=e-ve(r);if(c<1)return r;var s=a?Ai(a,0,c).join(""):t.slice(0,c);if(i===u)return s+r;if(a&&(c+=s.length-c),aa(i)){if(t.slice(c).search(i)){var f,l=s;for(i.global||(i=jt(i.source,wa(dt.exec(i))+"g")),i.lastIndex=0;f=i.exec(l);)var h=f.index;s=s.slice(0,h===u?c:h)}}else if(t.indexOf(fi(i),c)!=c){var p=s.lastIndexOf(i);p>-1&&(s=s.slice(0,p))}return s+r},ze.unescape=function(t){return(t=wa(t))&&Z.test(t)?t.replace(Q,ye):t},ze.uniqueId=function(t){var n=++Rt;return wa(t)+n},ze.upperCase=Za,ze.upperFirst=Va,ze.each=wo,ze.eachRight=mo,ze.first=Gu,sc(ze,function(){var t={};return mr(ze,(function(n,e){Dt.call(ze.prototype,e)||(t[e]=n)})),t}(),{chain:!1}),ze.VERSION="4.17.21",Pn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){ze[t].placeholder=ze})),Pn(["drop","take"],(function(t,n){$e.prototype[t]=function(e){e=e===u?1:be(da(e),0);var r=this.__filtered__&&!n?new $e(this):this.clone();return r.__filtered__?r.__takeCount__=we(e,r.__takeCount__):r.__views__.push({size:we(e,y),type:t+(r.__dir__<0?"Right":"")}),r},$e.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}})),Pn(["filter","map","takeWhile"],(function(t,n){var e=n+1,r=1==e||3==e;$e.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:su(t,3),type:e}),n.__filtered__=n.__filtered__||r,n}})),Pn(["head","last"],(function(t,n){var e="take"+(n?"Right":"");$e.prototype[t]=function(){return this[e](1).value()[0]}})),Pn(["initial","tail"],(function(t,n){var e="drop"+(n?"":"Right");$e.prototype[t]=function(){return this.__filtered__?new $e(this):this[e](1)}})),$e.prototype.compact=function(){return this.filter(uc)},$e.prototype.find=function(t){return this.filter(t).head()},$e.prototype.findLast=function(t){return this.reverse().find(t)},$e.prototype.invokeMap=Zr((function(t,n){return"function"==typeof t?new $e(this):this.map((function(e){return Cr(e,t,n)}))})),$e.prototype.reject=function(t){return this.filter(Uo(su(t)))},$e.prototype.slice=function(t,n){t=da(t);var e=this;return e.__filtered__&&(t>0||n<0)?new $e(e):(t<0?e=e.takeRight(-t):t&&(e=e.drop(t)),n!==u&&(e=(n=da(n))<0?e.dropRight(-n):e.take(n-t)),e)},$e.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},$e.prototype.toArray=function(){return this.take(y)},mr($e.prototype,(function(t,n){var e=/^(?:filter|find|map|reject)|While$/.test(n),r=/^(?:head|last)$/.test(n),i=ze[r?"take"+("last"==n?"Right":""):n],o=r||/^find/.test(n);i&&(ze.prototype[n]=function(){var n=this.__wrapped__,a=r?[1]:arguments,c=n instanceof $e,s=a[0],f=c||qo(n),l=function(t){var n=i.apply(ze,Rn([t],a));return r&&h?n[0]:n};f&&e&&"function"==typeof s&&1!=s.length&&(c=f=!1);var h=this.__chain__,p=!!this.__actions__.length,v=o&&!h,_=c&&!p;if(!o&&f){n=_?n:new $e(this);var d=t.apply(n,a);return d.__actions__.push({func:vo,args:[l],thisArg:u}),new Ke(d,h)}return v&&_?t.apply(this,a):(d=this.thru(l),v?r?d.value()[0]:d.value():d)})})),Pn(["pop","push","shift","sort","splice","unshift"],(function(t){var n=St[t],e=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);ze.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return n.apply(qo(i)?i:[],t)}return this[e]((function(e){return n.apply(qo(e)?e:[],t)}))}})),mr($e.prototype,(function(t,n){var e=ze[n];if(e){var r=e.name+"";Dt.call(Be,r)||(Be[r]=[]),Be[r].push({name:n,func:e})}})),Be[zi(u,2).name]=[{name:"wrapper",func:u}],$e.prototype.clone=function(){var t=new $e(this.__wrapped__);return t.__actions__=Si(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Si(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Si(this.__views__),t},$e.prototype.reverse=function(){if(this.__filtered__){var t=new $e(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},$e.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,e=qo(t),r=n<0,i=e?t.length:0,u=function(t,n,e){var r=-1,i=e.length;for(;++r=this.__values__.length;return{done:t,value:t?u:this.__values__[this.__index__++]}},ze.prototype.plant=function(t){for(var n,e=this;e instanceof He;){var r=Mu(e);r.__index__=0,r.__values__=u,n?i.__wrapped__=r:n=r;var i=r;e=e.__wrapped__}return i.__wrapped__=t,n},ze.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof $e){var n=t;return this.__actions__.length&&(n=new $e(this)),(n=n.reverse()).__actions__.push({func:vo,args:[no],thisArg:u}),new Ke(n,this.__chain__)}return this.thru(no)},ze.prototype.toJSON=ze.prototype.valueOf=ze.prototype.value=function(){return _i(this.__wrapped__,this.__actions__)},ze.prototype.first=ze.prototype.head,Zt&&(ze.prototype[Zt]=function(){return this}),ze}();_n._=ge,(i=function(){return ge}.call(n,e,n,r))===u||(r.exports=i)}).call(this)}).call(this,e(15),e(24)(t))}}]); \ No newline at end of file diff --git a/WebGLTemplates/Web3GL-2019/static/js/13.55737ecb.chunk.js.LICENSE.txt b/WebGLTemplates/Web3GL-2019/static/js/11.5cbf2fa1.chunk.js.LICENSE.txt similarity index 100% rename from WebGLTemplates/Web3GL-2019/static/js/13.55737ecb.chunk.js.LICENSE.txt rename to WebGLTemplates/Web3GL-2019/static/js/11.5cbf2fa1.chunk.js.LICENSE.txt diff --git a/WebGLTemplates/Web3GL-2019/static/js/12.43d1ebf0.chunk.js b/WebGLTemplates/Web3GL-2019/static/js/12.43d1ebf0.chunk.js deleted file mode 100644 index d59a4e529..000000000 --- a/WebGLTemplates/Web3GL-2019/static/js/12.43d1ebf0.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(this.webpackJsonpweb3gl=this.webpackJsonpweb3gl||[]).push([[12],{679:function(t,n,e){"use strict";e.r(n),e.d(n,"audit",(function(){return o})),e.d(n,"auditTime",(function(){return h})),e.d(n,"buffer",(function(){return f})),e.d(n,"bufferCount",(function(){return b})),e.d(n,"bufferTime",(function(){return x})),e.d(n,"bufferToggle",(function(){return I})),e.d(n,"bufferWhen",(function(){return W})),e.d(n,"catchError",(function(){return z})),e.d(n,"combineAll",(function(){return D})),e.d(n,"combineLatest",(function(){return q})),e.d(n,"concat",(function(){return L})),e.d(n,"concatAll",(function(){return U.a})),e.d(n,"concatMap",(function(){return G})),e.d(n,"concatMapTo",(function(){return H})),e.d(n,"count",(function(){return Q})),e.d(n,"debounce",(function(){return $})),e.d(n,"debounceTime",(function(){return et})),e.d(n,"defaultIfEmpty",(function(){return ut})),e.d(n,"delay",(function(){return ft})),e.d(n,"delayWhen",(function(){return yt})),e.d(n,"dematerialize",(function(){return _t})),e.d(n,"distinct",(function(){return Ot})),e.d(n,"distinctUntilChanged",(function(){return jt})),e.d(n,"distinctUntilKeyChanged",(function(){return It})),e.d(n,"elementAt",(function(){return Yt})),e.d(n,"endWith",(function(){return Kt})),e.d(n,"every",(function(){return Lt})),e.d(n,"exhaust",(function(){return Gt})),e.d(n,"exhaustMap",(function(){return Zt})),e.d(n,"expand",(function(){return nn})),e.d(n,"filter",(function(){return kt.a})),e.d(n,"finalize",(function(){return on})),e.d(n,"find",(function(){return cn})),e.d(n,"findIndex",(function(){return fn})),e.d(n,"first",(function(){return pn})),e.d(n,"groupBy",(function(){return dn.b})),e.d(n,"ignoreElements",(function(){return bn})),e.d(n,"isEmpty",(function(){return wn})),e.d(n,"last",(function(){return On})),e.d(n,"map",(function(){return Xt.a})),e.d(n,"mapTo",(function(){return Nn})),e.d(n,"materialize",(function(){return Tn})),e.d(n,"max",(function(){return zn})),e.d(n,"merge",(function(){return Pn})),e.d(n,"mergeAll",(function(){return Rn.a})),e.d(n,"mergeMap",(function(){return J.b})),e.d(n,"flatMap",(function(){return J.a})),e.d(n,"mergeMapTo",(function(){return Dn})),e.d(n,"mergeScan",(function(){return Mn})),e.d(n,"min",(function(){return Kn})),e.d(n,"multicast",(function(){return Un})),e.d(n,"observeOn",(function(){return Gn.b})),e.d(n,"onErrorResumeNext",(function(){return Hn})),e.d(n,"pairwise",(function(){return Zn})),e.d(n,"partition",(function(){return ee})),e.d(n,"pluck",(function(){return ie})),e.d(n,"publish",(function(){return ue})),e.d(n,"publishBehavior",(function(){return ce})),e.d(n,"publishLast",(function(){return he})),e.d(n,"publishReplay",(function(){return le})),e.d(n,"race",(function(){return de})),e.d(n,"reduce",(function(){return Bn})),e.d(n,"repeat",(function(){return be})),e.d(n,"repeatWhen",(function(){return we})),e.d(n,"retry",(function(){return _e})),e.d(n,"retryWhen",(function(){return Oe})),e.d(n,"refCount",(function(){return je.a})),e.d(n,"sample",(function(){return Te})),e.d(n,"sampleTime",(function(){return Ee})),e.d(n,"scan",(function(){return En})),e.d(n,"sequenceEqual",(function(){return Be})),e.d(n,"share",(function(){return De})),e.d(n,"shareReplay",(function(){return Me})),e.d(n,"single",(function(){return Ye})),e.d(n,"skip",(function(){return Le})),e.d(n,"skipLast",(function(){return Ge})),e.d(n,"skipUntil",(function(){return Xe})),e.d(n,"skipWhile",(function(){return ti})),e.d(n,"startWith",(function(){return ii})),e.d(n,"subscribeOn",(function(){return si})),e.d(n,"switchAll",(function(){return li})),e.d(n,"switchMap",(function(){return ai})),e.d(n,"switchMapTo",(function(){return pi})),e.d(n,"take",(function(){return Rt})),e.d(n,"takeLast",(function(){return _n})),e.d(n,"takeUntil",(function(){return di})),e.d(n,"takeWhile",(function(){return vi})),e.d(n,"tap",(function(){return gi})),e.d(n,"throttle",(function(){return Ci})),e.d(n,"throttleTime",(function(){return Vi})),e.d(n,"throwIfEmpty",(function(){return At})),e.d(n,"timeInterval",(function(){return Ai})),e.d(n,"timeout",(function(){return Mi})),e.d(n,"timeoutWith",(function(){return Fi})),e.d(n,"timestamp",(function(){return Yi})),e.d(n,"toArray",(function(){return Li})),e.d(n,"window",(function(){return Ui})),e.d(n,"windowCount",(function(){return Hi})),e.d(n,"windowTime",(function(){return Zi})),e.d(n,"windowToggle",(function(){return or})),e.d(n,"windowWhen",(function(){return cr})),e.d(n,"withLatestFrom",(function(){return fr})),e.d(n,"zip",(function(){return br})),e.d(n,"zipAll",(function(){return yr}));var i=e(577),r=e(595);function o(t){return function(n){return n.lift(new u(t))}}var u=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,n){return n.subscribe(new s(t,this.durationSelector))},t}(),s=function(t){function n(n,e){var i=t.call(this,n)||this;return i.durationSelector=e,i.hasValue=!1,i}return i.a(n,t),n.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var n=void 0;try{n=(0,this.durationSelector)(t)}catch(i){return this.destination.error(i)}var e=Object(r.c)(n,new r.a(this));!e||e.closed?this.clearThrottle():this.add(this.throttled=e)}},n.prototype.clearThrottle=function(){var t=this,n=t.value,e=t.hasValue,i=t.throttled;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(n))},n.prototype.notifyNext=function(){this.clearThrottle()},n.prototype.notifyComplete=function(){this.clearThrottle()},n}(r.b),c=e(602),a=e(785);function h(t,n){return void 0===n&&(n=c.a),o((function(){return Object(a.a)(t,n)}))}function f(t){return function(n){return n.lift(new l(t))}}var l=function(){function t(t){this.closingNotifier=t}return t.prototype.call=function(t,n){return n.subscribe(new p(t,this.closingNotifier))},t}(),p=function(t){function n(n,e){var i=t.call(this,n)||this;return i.buffer=[],i.add(Object(r.c)(e,new r.a(i))),i}return i.a(n,t),n.prototype._next=function(t){this.buffer.push(t)},n.prototype.notifyNext=function(){var t=this.buffer;this.buffer=[],this.destination.next(t)},n}(r.b),d=e(579);function b(t,n){return void 0===n&&(n=null),function(e){return e.lift(new y(t,n))}}var y=function(){function t(t,n){this.bufferSize=t,this.startBufferEvery=n,this.subscriberClass=n&&t!==n?w:v}return t.prototype.call=function(t,n){return n.subscribe(new this.subscriberClass(t,this.bufferSize,this.startBufferEvery))},t}(),v=function(t){function n(n,e){var i=t.call(this,n)||this;return i.bufferSize=e,i.buffer=[],i}return i.a(n,t),n.prototype._next=function(t){var n=this.buffer;n.push(t),n.length==this.bufferSize&&(this.destination.next(n),this.buffer=[])},n.prototype._complete=function(){var n=this.buffer;n.length>0&&this.destination.next(n),t.prototype._complete.call(this)},n}(d.a),w=function(t){function n(n,e,i){var r=t.call(this,n)||this;return r.bufferSize=e,r.startBufferEvery=i,r.buffers=[],r.count=0,r}return i.a(n,t),n.prototype._next=function(t){var n=this,e=n.bufferSize,i=n.startBufferEvery,r=n.buffers,o=n.count;this.count++,o%i===0&&r.push([]);for(var u=r.length;u--;){var s=r[u];s.push(t),s.length===e&&(r.splice(u,1),this.destination.next(s))}},n.prototype._complete=function(){for(var n=this.buffers,e=this.destination;n.length>0;){var i=n.shift();i.length>0&&e.next(i)}t.prototype._complete.call(this)},n}(d.a),m=e(618);function x(t){var n=arguments.length,e=c.a;Object(m.a)(arguments[arguments.length-1])&&(e=arguments[arguments.length-1],n--);var i=null;n>=2&&(i=arguments[1]);var r=Number.POSITIVE_INFINITY;return n>=3&&(r=arguments[2]),function(n){return n.lift(new _(t,i,r,e))}}var _=function(){function t(t,n,e,i){this.bufferTimeSpan=t,this.bufferCreationInterval=n,this.maxBufferSize=e,this.scheduler=i}return t.prototype.call=function(t,n){return n.subscribe(new S(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},t}(),g=function(){return function(){this.buffer=[]}}(),S=function(t){function n(n,e,i,r,o){var u=t.call(this,n)||this;u.bufferTimeSpan=e,u.bufferCreationInterval=i,u.maxBufferSize=r,u.scheduler=o,u.contexts=[];var s=u.openContext();if(u.timespanOnly=null==i||i<0,u.timespanOnly){var c={subscriber:u,context:s,bufferTimeSpan:e};u.add(s.closeAction=o.schedule(O,e,c))}else{var a={subscriber:u,context:s},h={bufferTimeSpan:e,bufferCreationInterval:i,subscriber:u,scheduler:o};u.add(s.closeAction=o.schedule(C,e,a)),u.add(o.schedule(N,i,h))}return u}return i.a(n,t),n.prototype._next=function(t){for(var n,e=this.contexts,i=e.length,r=0;r0;){var i=n.shift();e.next(i.buffer)}t.prototype._complete.call(this)},n.prototype._unsubscribe=function(){this.contexts=null},n.prototype.onBufferFull=function(t){this.closeContext(t);var n=t.closeAction;if(n.unsubscribe(),this.remove(n),!this.closed&&this.timespanOnly){t=this.openContext();var e=this.bufferTimeSpan,i={subscriber:this,context:t,bufferTimeSpan:e};this.add(t.closeAction=this.scheduler.schedule(O,e,i))}},n.prototype.openContext=function(){var t=new g;return this.contexts.push(t),t},n.prototype.closeContext=function(t){this.destination.next(t.buffer);var n=this.contexts;(n?n.indexOf(t):-1)>=0&&n.splice(n.indexOf(t),1)},n}(d.a);function O(t){var n=t.subscriber,e=t.context;e&&n.closeContext(e),n.closed||(t.context=n.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function N(t){var n=t.bufferCreationInterval,e=t.bufferTimeSpan,i=t.subscriber,r=t.scheduler,o=i.openContext();i.closed||(i.add(o.closeAction=r.schedule(C,e,{subscriber:i,context:o})),this.schedule(t,n))}function C(t){var n=t.subscriber,e=t.context;n.closeContext(e)}var j=e(597),T=e(661),V=e(635);function I(t,n){return function(e){return e.lift(new E(t,n))}}var E=function(){function t(t,n){this.openings=t,this.closingSelector=n}return t.prototype.call=function(t,n){return n.subscribe(new k(t,this.openings,this.closingSelector))},t}(),k=function(t){function n(n,e,i){var r=t.call(this,n)||this;return r.closingSelector=i,r.contexts=[],r.add(Object(T.a)(r,e)),r}return i.a(n,t),n.prototype._next=function(t){for(var n=this.contexts,e=n.length,i=0;i0;){var i=e.shift();i.subscription.unsubscribe(),i.buffer=null,i.subscription=null}this.contexts=null,t.prototype._error.call(this,n)},n.prototype._complete=function(){for(var n=this.contexts;n.length>0;){var e=n.shift();this.destination.next(e.buffer),e.subscription.unsubscribe(),e.buffer=null,e.subscription=null}this.contexts=null,t.prototype._complete.call(this)},n.prototype.notifyNext=function(t,n){t?this.closeBuffer(t):this.openBuffer(n)},n.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},n.prototype.openBuffer=function(t){try{var n=this.closingSelector.call(this,t);n&&this.trySubscribe(n)}catch(e){this._error(e)}},n.prototype.closeBuffer=function(t){var n=this.contexts;if(n&&t){var e=t.buffer,i=t.subscription;this.destination.next(e),n.splice(n.indexOf(t),1),this.remove(i),i.unsubscribe()}},n.prototype.trySubscribe=function(t){var n=this.contexts,e=new j.a,i={buffer:[],subscription:e};n.push(i);var r=Object(T.a)(this,t,i);!r||r.closed?this.closeBuffer(i):(r.context=i,this.add(r),e.add(r))},n}(V.a);function W(t){return function(n){return n.lift(new A(t))}}var A=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,n){return n.subscribe(new B(t,this.closingSelector))},t}(),B=function(t){function n(n,e){var i=t.call(this,n)||this;return i.closingSelector=e,i.subscribing=!1,i.openBuffer(),i}return i.a(n,t),n.prototype._next=function(t){this.buffer.push(t)},n.prototype._complete=function(){var n=this.buffer;n&&this.destination.next(n),t.prototype._complete.call(this)},n.prototype._unsubscribe=function(){this.buffer=void 0,this.subscribing=!1},n.prototype.notifyNext=function(){this.openBuffer()},n.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},n.prototype.openBuffer=function(){var t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe());var n,e=this.buffer;this.buffer&&this.destination.next(e),this.buffer=[];try{n=(0,this.closingSelector)()}catch(i){return this.error(i)}t=new j.a,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(Object(r.c)(n,new r.a(this))),this.subscribing=!1},n}(r.b);function z(t){return function(n){var e=new F(t),i=n.lift(e);return e.caught=i}}var F=function(){function t(t){this.selector=t}return t.prototype.call=function(t,n){return n.subscribe(new P(t,this.selector,this.caught))},t}(),P=function(t){function n(n,e,i){var r=t.call(this,n)||this;return r.selector=e,r.caught=i,r}return i.a(n,t),n.prototype.error=function(n){if(!this.isStopped){var e=void 0;try{e=this.selector(n,this.caught)}catch(u){return void t.prototype.error.call(this,u)}this._unsubscribeAndRecycle();var i=new r.a(this);this.add(i);var o=Object(r.c)(e,i);o!==i&&this.add(o)}},n}(r.b),R=e(722);function D(t){return function(n){return n.lift(new R.a(t))}}var M=e(606),Y=e(612);function q(){for(var t=[],n=0;n0&&e[0].time-i.now()<=0;)e.shift().notification.observe(r);if(e.length>0){var o=Math.max(0,e[0].time-i.now());this.schedule(t,o)}else this.unsubscribe(),n.active=!1},n.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},n.prototype.scheduleNotification=function(t){if(!0!==this.errored){var n=this.scheduler,e=new dt(n.now()+this.delay,t);this.queue.push(e),!1===this.active&&this._schedule(n)}},n.prototype._next=function(t){this.scheduleNotification(ht.a.createNext(t))},n.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},n.prototype._complete=function(){this.scheduleNotification(ht.a.createComplete()),this.unsubscribe()},n}(d.a),dt=function(){return function(t,n){this.time=t,this.notification=n}}(),bt=e(587);function yt(t,n){return n?function(e){return new mt(e,n).lift(new vt(t))}:function(n){return n.lift(new vt(t))}}var vt=function(){function t(t){this.delayDurationSelector=t}return t.prototype.call=function(t,n){return n.subscribe(new wt(t,this.delayDurationSelector))},t}(),wt=function(t){function n(n,e){var i=t.call(this,n)||this;return i.delayDurationSelector=e,i.completed=!1,i.delayNotifierSubscriptions=[],i.index=0,i}return i.a(n,t),n.prototype.notifyNext=function(t,n,e,i,r){this.destination.next(t),this.removeSubscription(r),this.tryComplete()},n.prototype.notifyError=function(t,n){this._error(t)},n.prototype.notifyComplete=function(t){var n=this.removeSubscription(t);n&&this.destination.next(n),this.tryComplete()},n.prototype._next=function(t){var n=this.index++;try{var e=this.delayDurationSelector(t,n);e&&this.tryDelay(e,t)}catch(i){this.destination.error(i)}},n.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},n.prototype.removeSubscription=function(t){t.unsubscribe();var n=this.delayNotifierSubscriptions.indexOf(t);return-1!==n&&this.delayNotifierSubscriptions.splice(n,1),t.outerValue},n.prototype.tryDelay=function(t,n){var e=Object(T.a)(this,t,n);e&&!e.closed&&(this.destination.add(e),this.delayNotifierSubscriptions.push(e))},n.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},n}(V.a),mt=function(t){function n(n,e){var i=t.call(this)||this;return i.source=n,i.subscriptionDelay=e,i}return i.a(n,t),n.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new xt(t,this.source))},n}(bt.a),xt=function(t){function n(n,e){var i=t.call(this)||this;return i.parent=n,i.source=e,i.sourceSubscribed=!1,i}return i.a(n,t),n.prototype._next=function(t){this.subscribeToSource()},n.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},n.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},n.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},n}(d.a);function _t(){return function(t){return t.lift(new gt)}}var gt=function(){function t(){}return t.prototype.call=function(t,n){return n.subscribe(new St(t))},t}(),St=function(t){function n(n){return t.call(this,n)||this}return i.a(n,t),n.prototype._next=function(t){t.observe(this.destination)},n}(d.a);function Ot(t,n){return function(e){return e.lift(new Nt(t,n))}}var Nt=function(){function t(t,n){this.keySelector=t,this.flushes=n}return t.prototype.call=function(t,n){return n.subscribe(new Ct(t,this.keySelector,this.flushes))},t}(),Ct=function(t){function n(n,e,i){var o=t.call(this,n)||this;return o.keySelector=e,o.values=new Set,i&&o.add(Object(r.c)(i,new r.a(o))),o}return i.a(n,t),n.prototype.notifyNext=function(){this.values.clear()},n.prototype.notifyError=function(t){this._error(t)},n.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},n.prototype._useKeySelector=function(t){var n,e=this.destination;try{n=this.keySelector(t)}catch(i){return void e.error(i)}this._finalizeNext(n,t)},n.prototype._finalizeNext=function(t,n){var e=this.values;e.has(t)||(e.add(t),this.destination.next(n))},n}(r.b);function jt(t,n){return function(e){return e.lift(new Tt(t,n))}}var Tt=function(){function t(t,n){this.compare=t,this.keySelector=n}return t.prototype.call=function(t,n){return n.subscribe(new Vt(t,this.compare,this.keySelector))},t}(),Vt=function(t){function n(n,e,i){var r=t.call(this,n)||this;return r.keySelector=i,r.hasKey=!1,"function"===typeof e&&(r.compare=e),r}return i.a(n,t),n.prototype.compare=function(t,n){return t===n},n.prototype._next=function(t){var n;try{var e=this.keySelector;n=e?e(t):t}catch(r){return this.destination.error(r)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,n)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=n,this.destination.next(t))},n}(d.a);function It(t,n){return jt((function(e,i){return n?n(e[t],i[t]):e[t]===i[t]}))}var Et=e(664),kt=e(636),Wt=e(665);function At(t){return void 0===t&&(t=Ft),function(n){return n.lift(new Bt(t))}}var Bt=function(){function t(t){this.errorFactory=t}return t.prototype.call=function(t,n){return n.subscribe(new zt(t,this.errorFactory))},t}(),zt=function(t){function n(n,e){var i=t.call(this,n)||this;return i.errorFactory=e,i.hasValue=!1,i}return i.a(n,t),n.prototype._next=function(t){this.hasValue=!0,this.destination.next(t)},n.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var t=void 0;try{t=this.errorFactory()}catch(n){t=n}this.destination.error(t)},n}(d.a);function Ft(){return new Wt.a}var Pt=e(610);function Rt(t){return function(n){return 0===t?Object(Pt.b)():n.lift(new Dt(t))}}var Dt=function(){function t(t){if(this.total=t,this.total<0)throw new Et.a}return t.prototype.call=function(t,n){return n.subscribe(new Mt(t,this.total))},t}(),Mt=function(t){function n(n,e){var i=t.call(this,n)||this;return i.total=e,i.count=0,i}return i.a(n,t),n.prototype._next=function(t){var n=this.total,e=++this.count;e<=n&&(this.destination.next(t),e===n&&(this.destination.complete(),this.unsubscribe()))},n}(d.a);function Yt(t,n){if(t<0)throw new Et.a;var e=arguments.length>=2;return function(i){return i.pipe(Object(kt.a)((function(n,e){return e===t})),Rt(1),e?ut(n):At((function(){return new Et.a})))}}var qt=e(687);function Kt(){for(var t=[],n=0;n0&&this._next(t.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},n}(r.b);function on(t){return function(n){return n.lift(new un(t))}}var un=function(){function t(t){this.callback=t}return t.prototype.call=function(t,n){return n.subscribe(new sn(t,this.callback))},t}(),sn=function(t){function n(n,e){var i=t.call(this,n)||this;return i.add(new j.a(e)),i}return i.a(n,t),n}(d.a);function cn(t,n){if("function"!==typeof t)throw new TypeError("predicate is not a function");return function(e){return e.lift(new an(t,e,!1,n))}}var an=function(){function t(t,n,e,i){this.predicate=t,this.source=n,this.yieldIndex=e,this.thisArg=i}return t.prototype.call=function(t,n){return n.subscribe(new hn(t,this.predicate,this.source,this.yieldIndex,this.thisArg))},t}(),hn=function(t){function n(n,e,i,r,o){var u=t.call(this,n)||this;return u.predicate=e,u.source=i,u.yieldIndex=r,u.thisArg=o,u.index=0,u}return i.a(n,t),n.prototype.notifyComplete=function(t){var n=this.destination;n.next(t),n.complete(),this.unsubscribe()},n.prototype._next=function(t){var n=this.predicate,e=this.thisArg,i=this.index++;try{n.call(e||this,t,i,this.source)&&this.notifyComplete(this.yieldIndex?i:t)}catch(r){this.destination.error(r)}},n.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},n}(d.a);function fn(t,n){return function(e){return e.lift(new an(t,e,!0,n))}}var ln=e(631);function pn(t,n){var e=arguments.length>=2;return function(i){return i.pipe(t?Object(kt.a)((function(n,e){return t(n,e,i)})):ln.a,Rt(1),e?ut(n):At((function(){return new Wt.a})))}}var dn=e(718);function bn(){return function(t){return t.lift(new yn)}}var yn=function(){function t(){}return t.prototype.call=function(t,n){return n.subscribe(new vn(t))},t}(),vn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return i.a(n,t),n.prototype._next=function(t){},n}(d.a);function wn(){return function(t){return t.lift(new mn)}}var mn=function(){function t(){}return t.prototype.call=function(t,n){return n.subscribe(new xn(t))},t}(),xn=function(t){function n(n){return t.call(this,n)||this}return i.a(n,t),n.prototype.notifyComplete=function(t){var n=this.destination;n.next(t),n.complete()},n.prototype._next=function(t){this.notifyComplete(!1)},n.prototype._complete=function(){this.notifyComplete(!0)},n}(d.a);function _n(t){return function(n){return 0===t?Object(Pt.b)():n.lift(new gn(t))}}var gn=function(){function t(t){if(this.total=t,this.total<0)throw new Et.a}return t.prototype.call=function(t,n){return n.subscribe(new Sn(t,this.total))},t}(),Sn=function(t){function n(n,e){var i=t.call(this,n)||this;return i.total=e,i.ring=new Array,i.count=0,i}return i.a(n,t),n.prototype._next=function(t){var n=this.ring,e=this.total,i=this.count++;n.length0)for(var e=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r=2;return function(i){return i.pipe(t?Object(kt.a)((function(n,e){return t(n,e,i)})):ln.a,_n(1),e?ut(n):At((function(){return new Wt.a})))}}function Nn(t){return function(n){return n.lift(new Cn(t))}}var Cn=function(){function t(t){this.value=t}return t.prototype.call=function(t,n){return n.subscribe(new jn(t,this.value))},t}(),jn=function(t){function n(n,e){var i=t.call(this,n)||this;return i.value=e,i}return i.a(n,t),n.prototype._next=function(t){this.destination.next(this.value)},n}(d.a);function Tn(){return function(t){return t.lift(new Vn)}}var Vn=function(){function t(){}return t.prototype.call=function(t,n){return n.subscribe(new In(t))},t}(),In=function(t){function n(n){return t.call(this,n)||this}return i.a(n,t),n.prototype._next=function(t){this.destination.next(ht.a.createNext(t))},n.prototype._error=function(t){var n=this.destination;n.next(ht.a.createError(t)),n.complete()},n.prototype._complete=function(){var t=this.destination;t.next(ht.a.createComplete()),t.complete()},n}(d.a);function En(t,n){var e=!1;return arguments.length>=2&&(e=!0),function(i){return i.lift(new kn(t,n,e))}}var kn=function(){function t(t,n,e){void 0===e&&(e=!1),this.accumulator=t,this.seed=n,this.hasSeed=e}return t.prototype.call=function(t,n){return n.subscribe(new Wn(t,this.accumulator,this.seed,this.hasSeed))},t}(),Wn=function(t){function n(n,e,i,r){var o=t.call(this,n)||this;return o.accumulator=e,o._seed=i,o.hasSeed=r,o.index=0,o}return i.a(n,t),Object.defineProperty(n.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),n.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},n.prototype._tryNext=function(t){var n,e=this.index++;try{n=this.accumulator(this.seed,t,e)}catch(i){this.destination.error(i)}this.seed=n,this.destination.next(n)},n}(d.a),An=e(716);function Bn(t,n){return arguments.length>=2?function(e){return Object(An.a)(En(t,n),_n(1),ut(n))(e)}:function(n){return Object(An.a)(En((function(n,e,i){return t(n,e,i+1)})),_n(1))(n)}}function zn(t){return Bn("function"===typeof t?function(n,e){return t(n,e)>0?n:e}:function(t,n){return t>n?t:n})}var Fn=e(783);function Pn(){for(var t=[],n=0;n0?this._next(t.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},n}(r.b);function Kn(t){return Bn("function"===typeof t?function(n,e){return t(n,e)<0?n:e}:function(t,n){return t-1&&(this.count=e-1),n.subscribe(this._unsubscribeAndRecycle())}},n}(d.a);function we(t){return function(n){return n.lift(new me(t))}}var me=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,n){return n.subscribe(new xe(t,this.notifier,n))},t}(),xe=function(t){function n(n,e,i){var r=t.call(this,n)||this;return r.notifier=e,r.source=i,r.sourceIsBeingSubscribedTo=!0,r}return i.a(n,t),n.prototype.notifyNext=function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},n.prototype.notifyComplete=function(){if(!1===this.sourceIsBeingSubscribedTo)return t.prototype.complete.call(this)},n.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return t.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}},n.prototype._unsubscribe=function(){var t=this.notifications,n=this.retriesSubscription;t&&(t.unsubscribe(),this.notifications=void 0),n&&(n.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},n.prototype._unsubscribeAndRecycle=function(){var n=this._unsubscribe;return this._unsubscribe=null,t.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=n,this},n.prototype.subscribeToRetries=function(){var n;this.notifications=new oe.a;try{n=(0,this.notifier)(this.notifications)}catch(e){return t.prototype.complete.call(this)}this.retries=n,this.retriesSubscription=Object(r.c)(n,new r.a(this))},n}(r.b);function _e(t){return void 0===t&&(t=-1),function(n){return n.lift(new ge(t,n))}}var ge=function(){function t(t,n){this.count=t,this.source=n}return t.prototype.call=function(t,n){return n.subscribe(new Se(t,this.count,this.source))},t}(),Se=function(t){function n(n,e,i){var r=t.call(this,n)||this;return r.count=e,r.source=i,r}return i.a(n,t),n.prototype.error=function(n){if(!this.isStopped){var e=this.source,i=this.count;if(0===i)return t.prototype.error.call(this,n);i>-1&&(this.count=i-1),e.subscribe(this._unsubscribeAndRecycle())}},n}(d.a);function Oe(t){return function(n){return n.lift(new Ne(t,n))}}var Ne=function(){function t(t,n){this.notifier=t,this.source=n}return t.prototype.call=function(t,n){return n.subscribe(new Ce(t,this.notifier,this.source))},t}(),Ce=function(t){function n(n,e,i){var r=t.call(this,n)||this;return r.notifier=e,r.source=i,r}return i.a(n,t),n.prototype.error=function(n){if(!this.isStopped){var e=this.errors,i=this.retries,o=this.retriesSubscription;if(i)this.errors=void 0,this.retriesSubscription=void 0;else{e=new oe.a;try{i=(0,this.notifier)(e)}catch(u){return t.prototype.error.call(this,u)}o=Object(r.c)(i,new r.a(this))}this._unsubscribeAndRecycle(),this.errors=e,this.retries=i,this.retriesSubscription=o,e.next(n)}},n.prototype._unsubscribe=function(){var t=this.errors,n=this.retriesSubscription;t&&(t.unsubscribe(),this.errors=void 0),n&&(n.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},n.prototype.notifyNext=function(){var t=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=t,this.source.subscribe(this)},n}(r.b),je=e(717);function Te(t){return function(n){return n.lift(new Ve(t))}}var Ve=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,n){var e=new Ie(t),i=n.subscribe(e);return i.add(Object(r.c)(this.notifier,new r.a(e))),i},t}(),Ie=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.hasValue=!1,n}return i.a(n,t),n.prototype._next=function(t){this.value=t,this.hasValue=!0},n.prototype.notifyNext=function(){this.emitValue()},n.prototype.notifyComplete=function(){this.emitValue()},n.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},n}(r.b);function Ee(t,n){return void 0===n&&(n=c.a),function(e){return e.lift(new ke(t,n))}}var ke=function(){function t(t,n){this.period=t,this.scheduler=n}return t.prototype.call=function(t,n){return n.subscribe(new We(t,this.period,this.scheduler))},t}(),We=function(t){function n(n,e,i){var r=t.call(this,n)||this;return r.period=e,r.scheduler=i,r.hasValue=!1,r.add(i.schedule(Ae,e,{subscriber:r,period:e})),r}return i.a(n,t),n.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},n.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},n}(d.a);function Ae(t){var n=t.subscriber,e=t.period;n.notifyNext(),this.schedule(t,e)}function Be(t,n){return function(e){return e.lift(new ze(t,n))}}var ze=function(){function t(t,n){this.compareTo=t,this.comparator=n}return t.prototype.call=function(t,n){return n.subscribe(new Fe(t,this.compareTo,this.comparator))},t}(),Fe=function(t){function n(n,e,i){var r=t.call(this,n)||this;return r.compareTo=e,r.comparator=i,r._a=[],r._b=[],r._oneComplete=!1,r.destination.add(e.subscribe(new Pe(n,r))),r}return i.a(n,t),n.prototype._next=function(t){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(t),this.checkValues())},n.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},n.prototype.checkValues=function(){for(var t=this,n=t._a,e=t._b,i=t.comparator;n.length>0&&e.length>0;){var r=n.shift(),o=e.shift(),u=!1;try{u=i?i(r,o):r===o}catch(s){this.destination.error(s)}u||this.emit(!1)}},n.prototype.emit=function(t){var n=this.destination;n.next(t),n.complete()},n.prototype.nextB=function(t){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(t),this.checkValues())},n.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},n}(d.a),Pe=function(t){function n(n,e){var i=t.call(this,n)||this;return i.parent=e,i}return i.a(n,t),n.prototype._next=function(t){this.parent.nextB(t)},n.prototype._error=function(t){this.parent.error(t),this.unsubscribe()},n.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},n}(d.a);function Re(){return new oe.a}function De(){return function(t){return Object(je.a)()(Un(Re)(t))}}function Me(t,n,e){var i;return i=t&&"object"===typeof t?t:{bufferSize:t,windowTime:n,refCount:!1,scheduler:e},function(t){return t.lift(function(t){var n,e,i=t.bufferSize,r=void 0===i?Number.POSITIVE_INFINITY:i,o=t.windowTime,u=void 0===o?Number.POSITIVE_INFINITY:o,s=t.refCount,c=t.scheduler,a=0,h=!1,f=!1;return function(t){var i;a++,!n||h?(h=!1,n=new fe.a(r,u,c),i=n.subscribe(this),e=t.subscribe({next:function(t){n.next(t)},error:function(t){h=!0,n.error(t)},complete:function(){f=!0,e=void 0,n.complete()}}),f&&(e=void 0)):i=n.subscribe(this),this.add((function(){a--,i.unsubscribe(),i=void 0,e&&!f&&s&&0===a&&(e.unsubscribe(),e=void 0,n=void 0)}))}}(i))}}function Ye(t){return function(n){return n.lift(new qe(t,n))}}var qe=function(){function t(t,n){this.predicate=t,this.source=n}return t.prototype.call=function(t,n){return n.subscribe(new Ke(t,this.predicate,this.source))},t}(),Ke=function(t){function n(n,e,i){var r=t.call(this,n)||this;return r.predicate=e,r.source=i,r.seenValue=!1,r.index=0,r}return i.a(n,t),n.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},n.prototype._next=function(t){var n=this.index++;this.predicate?this.tryNext(t,n):this.applySingleValue(t)},n.prototype.tryNext=function(t,n){try{this.predicate(t,n,this.source)&&this.applySingleValue(t)}catch(e){this.destination.error(e)}},n.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new Wt.a)},n}(d.a);function Le(t){return function(n){return n.lift(new Ue(t))}}var Ue=function(){function t(t){this.total=t}return t.prototype.call=function(t,n){return n.subscribe(new Je(t,this.total))},t}(),Je=function(t){function n(n,e){var i=t.call(this,n)||this;return i.total=e,i.count=0,i}return i.a(n,t),n.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},n}(d.a);function Ge(t){return function(n){return n.lift(new He(t))}}var He=function(){function t(t){if(this._skipCount=t,this._skipCount<0)throw new Et.a}return t.prototype.call=function(t,n){return 0===this._skipCount?n.subscribe(new d.a(t)):n.subscribe(new Qe(t,this._skipCount))},t}(),Qe=function(t){function n(n,e){var i=t.call(this,n)||this;return i._skipCount=e,i._count=0,i._ring=new Array(e),i}return i.a(n,t),n.prototype._next=function(t){var n=this._skipCount,e=this._count++;if(e0?this.startWindowEvery:this.windowSize,e=this.destination,i=this.windowSize,r=this.windows,o=r.length,u=0;u=0&&s%n===0&&!this.closed&&r.shift().complete(),++this.count%n===0&&!this.closed){var c=new oe.a;r.push(c),e.next(c)}},n.prototype._error=function(t){var n=this.windows;if(n)for(;n.length>0&&!this.closed;)n.shift().error(t);this.destination.error(t)},n.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},n.prototype._unsubscribe=function(){this.count=0,this.windows=null},n}(d.a);function Zi(t){var n=c.a,e=null,i=Number.POSITIVE_INFINITY;return Object(m.a)(arguments[3])&&(n=arguments[3]),Object(m.a)(arguments[2])?n=arguments[2]:Object(oi.a)(arguments[2])&&(i=Number(arguments[2])),Object(m.a)(arguments[1])?n=arguments[1]:Object(oi.a)(arguments[1])&&(e=Number(arguments[1])),function(r){return r.lift(new $i(t,e,i,n))}}var $i=function(){function t(t,n,e,i){this.windowTimeSpan=t,this.windowCreationInterval=n,this.maxWindowSize=e,this.scheduler=i}return t.prototype.call=function(t,n){return n.subscribe(new nr(t,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},t}(),tr=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n._numberOfNextedValues=0,n}return i.a(n,t),n.prototype.next=function(n){this._numberOfNextedValues++,t.prototype.next.call(this,n)},Object.defineProperty(n.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),n}(oe.a),nr=function(t){function n(n,e,i,r,o){var u=t.call(this,n)||this;u.destination=n,u.windowTimeSpan=e,u.windowCreationInterval=i,u.maxWindowSize=r,u.scheduler=o,u.windows=[];var s=u.openWindow();if(null!==i&&i>=0){var c={subscriber:u,window:s,context:null},a={windowTimeSpan:e,windowCreationInterval:i,subscriber:u,scheduler:o};u.add(o.schedule(rr,e,c)),u.add(o.schedule(ir,i,a))}else{var h={subscriber:u,window:s,windowTimeSpan:e};u.add(o.schedule(er,e,h))}return u}return i.a(n,t),n.prototype._next=function(t){for(var n=this.windows,e=n.length,i=0;i=this.maxWindowSize&&this.closeWindow(r))}},n.prototype._error=function(t){for(var n=this.windows;n.length>0;)n.shift().error(t);this.destination.error(t)},n.prototype._complete=function(){for(var t=this.windows;t.length>0;){var n=t.shift();n.closed||n.complete()}this.destination.complete()},n.prototype.openWindow=function(){var t=new tr;return this.windows.push(t),this.destination.next(t),t},n.prototype.closeWindow=function(t){t.complete();var n=this.windows;n.splice(n.indexOf(t),1)},n}(d.a);function er(t){var n=t.subscriber,e=t.windowTimeSpan,i=t.window;i&&n.closeWindow(i),t.window=n.openWindow(),this.schedule(t,e)}function ir(t){var n=t.windowTimeSpan,e=t.subscriber,i=t.scheduler,r=t.windowCreationInterval,o=e.openWindow(),u=this,s={action:u,subscription:null},c={subscriber:e,window:o,context:s};s.subscription=i.schedule(rr,n,c),u.add(s.subscription),u.schedule(t,r)}function rr(t){var n=t.subscriber,e=t.window,i=t.context;i&&i.action&&i.subscription&&i.action.remove(i.subscription),n.closeWindow(e)}function or(t,n){return function(e){return e.lift(new ur(t,n))}}var ur=function(){function t(t,n){this.openings=t,this.closingSelector=n}return t.prototype.call=function(t,n){return n.subscribe(new sr(t,this.openings,this.closingSelector))},t}(),sr=function(t){function n(n,e,i){var r=t.call(this,n)||this;return r.openings=e,r.closingSelector=i,r.contexts=[],r.add(r.openSubscription=Object(T.a)(r,e,e)),r}return i.a(n,t),n.prototype._next=function(t){var n=this.contexts;if(n)for(var e=n.length,i=0;i0){var r=i.indexOf(e);-1!==r&&i.splice(r,1)}},n.prototype.notifyComplete=function(){},n.prototype._next=function(t){if(0===this.toRespond.length){var n=[t].concat(this.values);this.project?this._tryProject(n):this.destination.next(n)}},n.prototype._tryProject=function(t){var n;try{n=this.project.apply(this,t)}catch(e){return void this.destination.error(e)}this.destination.next(n)},n}(V.a),dr=e(726);function br(){for(var t=[],n=0;n=0}))},intToBuffer:function(e){var o=i(e);return new t(r(o.slice(2)),"hex")},getBinarySize:function(e){if("string"!==typeof e)throw new Error("[ethjs-util] while getting binary size, method getBinarySize requires input 'str' to be type String, got '"+typeof e+"'.");return t.byteLength(e,"utf8")},isHexPrefixed:a,stripHexPrefix:n,padToEven:r,intToHex:i,fromAscii:function(e){for(var t="",o=0;o0))return!0;for(var t=0,o=this._supportedHardforks;t=n},e.prototype.activeOnBlock=function(e,t){return this.hardforkIsActiveOnBlock(null,e,t)},e.prototype.hardforkGteHardfork=function(e,t,o){var a=void 0!==(o=void 0!==o?o:{}).onlyActive&&o.onlyActive;e=this._chooseHardfork(e,o.onlySupported);for(var n=-1,r=-1,i=0,s=0,c=a?this.activeHardforks(null,o):this.hardforks();s=r},e.prototype.gteHardfork=function(e,t){return this.hardforkGteHardfork(null,e,t)},e.prototype.hardforkIsActiveOnChain=function(e,t){var o=void 0!==(t=void 0!==t?t:{}).onlySupported&&t.onlySupported;e=this._chooseHardfork(e,o);for(var a=0,n=this.hardforks();a0)return o[o.length-1].name;throw new Error("No (supported) active hardfork found")},e.prototype.hardforkBlock=function(e){return e=this._chooseHardfork(e,!1),this._getHardfork(e).block},e.prototype.isHardforkBlock=function(e,t){return t=this._chooseHardfork(t,!1),this.hardforkBlock(t)===e},e.prototype.consensus=function(e){return e=this._chooseHardfork(e),this._getHardfork(e).consensus},e.prototype.finality=function(e){return e=this._chooseHardfork(e),this._getHardfork(e).finality},e.prototype.genesis=function(){return this._chainParams.genesis},e.prototype.hardforks=function(){return this._chainParams.hardforks},e.prototype.bootstrapNodes=function(){return this._chainParams.bootstrapNodes},e.prototype.hardfork=function(){return this._hardfork},e.prototype.chainId=function(){return this._chainParams.chainId},e.prototype.chainName=function(){return n.chains.names[this.chainId()]||this._chainParams.name},e.prototype.networkId=function(){return this._chainParams.networkId},e}();t.default=i}}]); \ No newline at end of file diff --git a/WebGLTemplates/Web3GL-2019/static/js/13.55737ecb.chunk.js b/WebGLTemplates/Web3GL-2019/static/js/13.55737ecb.chunk.js deleted file mode 100644 index d2c674730..000000000 --- a/WebGLTemplates/Web3GL-2019/static/js/13.55737ecb.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 13.55737ecb.chunk.js.LICENSE.txt */ -(this.webpackJsonpweb3gl=this.webpackJsonpweb3gl||[]).push([[13],{1043:function(t,n,r){(function(e){var i;!function(u){var o=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};function a(){this._events={},this._conf&&c.call(this,this._conf)}function c(t){t?(this._conf=t,t.delimiter&&(this.delimiter=t.delimiter),this._maxListeners=t.maxListeners!==u?t.maxListeners:10,t.wildcard&&(this.wildcard=t.wildcard),t.newListener&&(this._newListener=t.newListener),t.removeListener&&(this._removeListener=t.removeListener),t.verboseMemoryLeak&&(this.verboseMemoryLeak=t.verboseMemoryLeak),this.wildcard&&(this.listenerTree={})):this._maxListeners=10}function f(t,n){var r="(node) warning: possible EventEmitter memory leak detected. "+t+" listeners added. Use emitter.setMaxListeners() to increase limit.";if(this.verboseMemoryLeak&&(r+=" Event name: "+n+"."),"undefined"!==typeof e&&e.emitWarning){var i=new Error(r);i.name="MaxListenersExceededWarning",i.emitter=this,i.count=t,e.emitWarning(i)}else console.error(r),console.trace&&console.trace()}function s(t){this._events={},this._newListener=!1,this._removeListener=!1,this.verboseMemoryLeak=!1,c.call(this,t)}function l(t,n,r,e){if(!r)return[];var i,u,o,a,c,f,s,h=[],p=n.length,v=n[e],_=n[e+1];if(e===p&&r._listeners){if("function"===typeof r._listeners)return t&&t.push(r._listeners),[r];for(i=0,u=r._listeners.length;i0&&i._listeners.length>this._maxListeners&&(i._listeners.warned=!0,f.call(this,i._listeners.length,o))):i._listeners=n,!0;o=t.shift()}return!0}s.EventEmitter2=s,s.prototype.delimiter=".",s.prototype.setMaxListeners=function(t){t!==u&&(this._maxListeners=t,this._conf||(this._conf={}),this._conf.maxListeners=t)},s.prototype.event="",s.prototype.once=function(t,n){return this._once(t,n,!1)},s.prototype.prependOnceListener=function(t,n){return this._once(t,n,!0)},s.prototype._once=function(t,n,r){return this._many(t,1,n,r),this},s.prototype.many=function(t,n,r){return this._many(t,n,r,!1)},s.prototype.prependMany=function(t,n,r){return this._many(t,n,r,!0)},s.prototype._many=function(t,n,r,e){var i=this;if("function"!==typeof r)throw new Error("many only accepts instances of Function");function u(){return 0===--n&&i.off(t,u),r.apply(this,arguments)}return u._origin=r,this._on(t,u,e),i},s.prototype.emit=function(){this._events||a.call(this);var t=arguments[0];if("newListener"===t&&!this._newListener&&!this._events.newListener)return!1;var n,r,e,i,u,o=arguments.length;if(this._all&&this._all.length){if(u=this._all.slice(),o>3)for(n=new Array(o),i=0;i3)for(n=new Array(o-1),i=1;i3)for(n=new Array(c),i=1;i3)for(n=new Array(c-1),i=1;i0&&this._events[t].length>this._maxListeners&&(this._events[t].warned=!0,f.call(this,this._events[t].length,t))):this._events[t]=n,this)},s.prototype.off=function(t,n){if("function"!==typeof n)throw new Error("removeListener only takes instances of Function");var r,e=[];if(this.wildcard){var i="string"===typeof t?t.split(this.delimiter):t.slice();e=l.call(this,null,i,this.listenerTree,0)}else{if(!this._events[t])return this;r=this._events[t],e.push({_listeners:r})}for(var a=0;a0&&t(n[i]),0===Object.keys(o).length&&delete n[i])}}}(this.listenerTree),this},s.prototype.offAny=function(t){var n,r=0,e=0;if(t&&this._all&&this._all.length>0){for(r=0,e=(n=this._all).length;r>>0!==2147483648)return n;if(0!==t[3]||0!==t[4])return n;var r=2147483647&t[2];return{verbose:"Binance Account #".concat(r),accountIdx:r,wholeAccount:!0,coin:"Binance",isKnown:!0,isPrefork:!1}}},1599:function(t,n,r){"use strict";var e=r(140);Object.defineProperty(n,"__esModule",{value:!0}),n.segwitNativeAccount=n.segwitAccount=n.legacyAccount=n.describeUTXOPath=n.unknownUTXOPath=n.BTCOutputAddressType=n.BTCOutputScriptType=n.BTCInputScriptType=void 0;var i,u=r(624);function o(t,n,r){return{verbose:u.addressNListToBIP32(t),coin:n,scriptType:r,isKnown:!1}}!function(t){t.CashAddr="cashaddr",t.Bech32="bech32",t.SpendAddress="p2pkh",t.SpendMultisig="p2sh",t.External="external",t.SpendWitness="p2wpkh",t.SpendP2SHWitness="p2sh-p2wpkh"}(i=n.BTCInputScriptType||(n.BTCInputScriptType={})),function(t){t.PayToAddress="p2pkh",t.PayToMultisig="p2sh",t.PayToWitness="p2wpkh",t.PayToP2SHWitness="p2sh-p2wpkh"}(n.BTCOutputScriptType||(n.BTCOutputScriptType={})),function(t){t.Spend="spend",t.Transfer="transfer",t.Change="change",t.Exchange="exchange"}(n.BTCOutputAddressType||(n.BTCOutputAddressType={})),n.unknownUTXOPath=o,n.describeUTXOPath=function(t,n,r){var a,c=o(t,n,r);if(3!==t.length&&5!==t.length)return c;if((2147483648&t[0])>>>0!==2147483648)return c;var f=2147483647&t[0];if(![44,49,84].includes(f))return c;if(44===f&&r!==i.SpendAddress)return c;if(49===f&&r!==i.SpendP2SHWitness)return c;if(84===f&&r!==i.SpendWitness)return c;var s=3===t.length,l=(a={},e(a,i.SpendAddress,["Legacy"]),e(a,i.SpendP2SHWitness,[]),e(a,i.SpendWitness,["Segwit Native"]),a)[r],h=!1,p=u.slip44ByCoin(n);if(void 0===p)return c;if(t[1]!==2147483648+p)switch(n){case"BitcoinCash":case"BitcoinGold":if(t[1]===2147483648+u.slip44ByCoin("Bitcoin")){h=!0;break}return c;case"BitcoinSV":if(t[1]===2147483648+u.slip44ByCoin("Bitcoin")||t[1]===2147483648+u.slip44ByCoin("BitcoinCash")){h=!0;break}return c;default:return c}var v=h?["Prefork"]:[];switch(n){case"Bitcoin":case"Litecoin":case"BitcoinGold":case"Testnet":l&&(v=v.concat(l))}var _=v.length?" (".concat(v.join(", "),")"):"",d=2147483647&t[2];if(s)return{coin:n,verbose:"".concat(n," Account #").concat(d).concat(_),accountIdx:d,wholeAccount:!0,isKnown:!0,scriptType:r,isPrefork:h};var y=1===t[3]?"Change ":"",g=t[4];return{coin:n,verbose:"".concat(n," Account #").concat(d,", ").concat(y,"Address #").concat(g).concat(_),accountIdx:d,addressIdx:g,wholeAccount:!1,isKnown:!0,isChange:1===t[3],scriptType:r,isPrefork:h}},n.legacyAccount=function(t,n,r){return{coin:t,scriptType:i.SpendAddress,addressNList:[2147483692,2147483648+n,2147483648+r]}},n.segwitAccount=function(t,n,r){return{coin:t,scriptType:i.SpendP2SHWitness,addressNList:[2147483697,2147483648+n,2147483648+r]}},n.segwitNativeAccount=function(t,n,r){return{coin:t,scriptType:i.SpendWitness,addressNList:[2147483732,2147483648+n,2147483648+r]}}},1600:function(t,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.cosmosDescribePath=void 0;var e=r(624);n.cosmosDescribePath=function(t){var n={verbose:e.addressNListToBIP32(t),coin:"Atom",isKnown:!1};if(5!=t.length)return n;if(2147483692!=t[0])return n;if(t[1]!=2147483648+e.slip44ByCoin("Atom"))return n;if((2147483648&t[2])>>>0!==2147483648)return n;if(0!==t[3]||0!==t[4])return n;var r=2147483647&t[2];return{verbose:"Cosmos Account #".concat(r),accountIdx:r,wholeAccount:!0,coin:"Atom",isKnown:!0,isPrefork:!1}}},1601:function(t,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},1602:function(t,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},1603:function(t,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.describeETHPath=void 0;var e=r(624);n.describeETHPath=function(t){var n={verbose:e.addressNListToBIP32(t),coin:"Ethereum",isKnown:!1};if(5!==t.length)return n;if(2147483692!==t[0])return n;if(t[1]!==2147483648+e.slip44ByCoin("Ethereum"))return n;if((2147483648&t[2])>>>0!==2147483648)return n;if(0!==t[3])return n;if(0!==t[4])return n;var r=2147483647&t[2];return{verbose:"Ethereum Account #".concat(r),accountIdx:r,wholeAccount:!0,coin:"Ethereum",isKnown:!0,isPrefork:!1}}},1604:function(t,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.makeEvent=n.Events=void 0,function(t){t.BUTTON_REQUEST="BUTTON_REQUEST",t.CANCEL="CANCEL",t.CHARACTER_REQUEST="CHARACTER_REQUEST",t.CONNECT="CONNECT",t.DISCONNECT="DISCONNECT",t.FAILURE="FAILURE",t.PASSPHRASE_REQUEST="PASSPHRASE_REQUEST",t.PIN_REQUEST="PIN_REQUEST",t.SUCCESS="SUCCESS",t.WORD_REQUEST="WORD_REQUEST"}(n.Events||(n.Events={})),n.makeEvent=function(t){return Object.assign({date:Date.now()},t)}},1605:function(t,n,r){"use strict";var e,i=r(41),u=r(139),o=r(94),a=r(95),c=r(619);Object.defineProperty(n,"__esModule",{value:!0}),n.NavigateToDashboard=n.WebUSBCouldNotPair=n.WebUSBCouldNotInitialize=n.WebUSBNotAvailable=n.FirmwareUpdateRequired=n.WrongApp=n.SelectApp=n.ConflictingApp=n.PopupClosedError=n.DeviceLocked=n.DisconnectedDeviceDuringOperation=n.DeviceDisconnected=n.ActionCancelled=n.HDWalletError=n.HDWalletErrorType=void 0,function(t){t.ActionCancelled="ActionCancelled",t.DeviceDisconnected="DeviceDisconnected",t.DisconnectedDeviceDuringOperation="DisconnectedDeviceDuringOperation",t.DeviceLocked="DeviceLocked",t.PopupClosedError="PopupClosedError",t.ConflictingApp="ConflictingApp",t.SelectApp="SelectApp",t.WrongApp="WrongApp",t.FirmwareUpdateRequired="FirmwareUpdateRequired",t.WebUSBNotAvailable="WebUSBNotAvailable",t.WebUSBCouldNotInitialize="WebUSBCouldNotInitialize",t.WebUSBCouldNotPair="WebUSBCouldNotPair",t.NavigateToDashboard="NavigateToDashboard"}(e=n.HDWalletErrorType||(n.HDWalletErrorType={}));var f=function(t){o(r,t);var n=a(r);function r(t,e){var o;return i(this,r),(o=n.call(this,t)).name=e,o.type=e,o.message=t,"function"===typeof Error.captureStackTrace?Error.captureStackTrace(u(o),o.constructor):o.stack=new Error(t).stack,o}return r}(c(Error));n.HDWalletError=f;var s=function(t){o(r,t);var n=a(r);function r(){return i(this,r),n.call(this,"Action cancelled",e.ActionCancelled)}return r}(f);n.ActionCancelled=s;var l=function(t){o(r,t);var n=a(r);function r(){return i(this,r),n.call(this,"Device disconnected",e.DeviceDisconnected)}return r}(f);n.DeviceDisconnected=l;var h=function(t){o(r,t);var n=a(r);function r(){return i(this,r),n.call(this,"Ledger device disconnected during operation",e.DisconnectedDeviceDuringOperation)}return r}(f);n.DisconnectedDeviceDuringOperation=h;var p=function(t){o(r,t);var n=a(r);function r(){return i(this,r),n.call(this,"Device locked",e.DeviceLocked)}return r}(f);n.DeviceLocked=p;var v=function(t){o(r,t);var n=a(r);function r(){return i(this,r),n.call(this,"TrezorConnect popup closed",e.PopupClosedError)}return r}(f);n.PopupClosedError=v;var _=function(t){o(r,t);var n=a(r);function r(t){var u;return i(this,r),(u=n.call(this,"Conflicting Application: Another wallet is trying to connect with your ".concat(t,"."),e.ConflictingApp)).model=t,u}return r}(f);n.ConflictingApp=_;var d=function(t){o(r,t);var n=a(r);function r(t,u){return i(this,r),n.call(this,"Please open the ".concat(u," app on your ").concat(t,"."),e.SelectApp)}return r}(f);n.SelectApp=d;var y=function(t){o(r,t);var n=a(r);function r(t,u){return i(this,r),n.call(this,"Wrong app open. Please open the ".concat(u," app on your ").concat(t," and try again."),e.WrongApp)}return r}(f);n.WrongApp=y;var g=function(t){o(r,t);var n=a(r);function r(t,u){return i(this,r),n.call(this,"Firmware ".concat(u," or later is required to use your ").concat(t," with this client. Please update your device."),e.FirmwareUpdateRequired)}return r}(f);n.FirmwareUpdateRequired=g;var b=function(t){o(r,t);var n=a(r);function r(){return i(this,r),n.call(this,"WebUSB is not available in this browser. We recommend trying Chrome.",e.WebUSBNotAvailable)}return r}(f);n.WebUSBNotAvailable=b;var w=function(t){o(r,t);var n=a(r);function r(t,u){return i(this,r),n.call(this,"Could not initialize ".concat(t,": ").concat(u),e.WebUSBCouldNotInitialize)}return r}(f);n.WebUSBCouldNotInitialize=w;var m=function(t){o(r,t);var n=a(r);function r(t,u){return i(this,r),n.call(this,"Could not pair ".concat(t,": ").concat(u),e.WebUSBCouldNotPair)}return r}(f);n.WebUSBCouldNotPair=m;var A=function(t){o(r,t);var n=a(r);function r(t){return i(this,r),n.call(this,"Please navigate to the dashboard of your ".concat(t,"."),e.NavigateToDashboard)}return r}(f);n.NavigateToDashboard=A},1606:function(t,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.fioDescribePath=n.FioEncryptionContentType=n.Fio=void 0;var e,i=r(624);!function(t){!function(t){t.REQUEST="new_funds_content",t.OBT="record_obt_data_content"}(t.ContentType||(t.ContentType={}))}(e=n.Fio||(n.Fio={})),n.FioEncryptionContentType=e.ContentType,n.fioDescribePath=function(t){var n={verbose:i.addressNListToBIP32(t),coin:"Fio",isKnown:!1};if(5!=t.length)return n;if(2147483692!=t[0])return n;if(t[1]!=2147483648+i.slip44ByCoin("Fio"))return n;if((2147483648&t[2])>>>0!==2147483648)return n;if(0!==t[3]||0!==t[4])return n;var r=2147483647&t[2];return{verbose:"Fio Account #".concat(r),accountIdx:r,wholeAccount:!0,coin:"Fio",isKnown:!0,isPrefork:!1}}},1607:function(t,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.kavaDescribePath=void 0;var e=r(624);n.kavaDescribePath=function(t){var n={verbose:e.addressNListToBIP32(t),coin:"Kava",isKnown:!1};if(5!=t.length)return n;if(2147483692!=t[0])return n;if(t[1]!=2147483648+e.slip44ByCoin("Kava"))return n;if((2147483648&t[2])>>>0!==2147483648)return n;if(0!==t[3]||0!==t[4])return n;var r=2147483647&t[2];return{verbose:"Kava Account #".concat(r),accountIdx:r,wholeAccount:!0,coin:"Kava",isKnown:!0,isPrefork:!1}}},1608:function(t,n,r){"use strict";var e=r(2),i=r(41),u=r(42),o=r(94),a=r(95),c=this&&this.__createBinding||(Object.create?function(t,n,r,e){void 0===e&&(e=r),Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[r]}})}:function(t,n,r,e){void 0===e&&(e=r),t[e]=n[r]}),f=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&c(n,t,r);return f(n,t),n},l=this&&this.__awaiter||function(t,n,r,e){return new(r||(r=Promise))((function(i,u){function o(t){try{c(e.next(t))}catch(n){u(n)}}function a(t){try{c(e.throw(t))}catch(n){u(n)}}function c(t){var n;t.done?i(t.value):(n=t.value,n instanceof r?n:new r((function(t){t(n)}))).then(o,a)}c((e=e.apply(t,n||[])).next())}))};Object.defineProperty(n,"__esModule",{value:!0}),n.Keyring=void 0;var h=function(t){o(r,t);var n=a(r);function r(){var t;return i(this,r),(t=n.call(this,{wildcard:!0})).wallets={},t.aliases={},t}return u(r,[{key:"add",value:function(t,n){var r=n||(new Date).toString();return!this.wallets[r]&&(this.wallets[r]=t,t.transport&&this.decorateEvents(r,t.transport),!0)}},{key:"addAlias",value:function(t,n){this.aliases[n]=t}},{key:"getAlias",value:function(t){var n=Object.keys(this.aliases),r=Object.values(this.aliases).indexOf(t);return-1!==r?n[r]:t}},{key:"exec",value:function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i1?e-1:0),o=1;o>>0!==2147483648)return n;if(0!==t[3]||0!==t[4])return n;var r=2147483647&t[2];return{verbose:"Secret Account #".concat(r),accountIdx:r,wholeAccount:!0,coin:"Secret",isKnown:!0,isPrefork:!1}}},1611:function(t,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.terraDescribePath=void 0;var e=r(624);n.terraDescribePath=function(t){var n={verbose:e.addressNListToBIP32(t),coin:"Terra",isKnown:!1};if(5!=t.length)return n;if(2147483692!=t[0])return n;if(t[1]!=2147483648+e.slip44ByCoin("Terra"))return n;if((2147483648&t[2])>>>0!==2147483648)return n;if(0!==t[3]||0!==t[4])return n;var r=2147483647&t[2];return{verbose:"Terra Account #".concat(r),accountIdx:r,wholeAccount:!0,coin:"Terra",isKnown:!0,isPrefork:!1}}},1612:function(t,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.thorchainDescribePath=void 0;var e=r(624);n.thorchainDescribePath=function(t){var n={verbose:e.addressNListToBIP32(t),coin:"Rune",isKnown:!1};if(5!=t.length)return n;if(2147483692!=t[0])return n;if(t[1]!=2147483648+e.slip44ByCoin("Rune"))return n;if((2147483648&t[2])>>>0!==2147483648)return n;if(0!==t[3]||0!==t[4])return n;var r=2147483647&t[2];return{verbose:"Thorchain Account #".concat(r),accountIdx:r,wholeAccount:!0,coin:"Thorchain",isKnown:!0,isPrefork:!1}}},1613:function(t,n,r){"use strict";var e=r(2),i=r(41),u=r(42),o=r(94),a=r(95),c=this&&this.__createBinding||(Object.create?function(t,n,r,e){void 0===e&&(e=r),Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[r]}})}:function(t,n,r,e){void 0===e&&(e=r),t[e]=n[r]}),f=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&c(n,t,r);return f(n,t),n},l=this&&this.__awaiter||function(t,n,r,e){return new(r||(r=Promise))((function(i,u){function o(t){try{c(e.next(t))}catch(n){u(n)}}function a(t){try{c(e.throw(t))}catch(n){u(n)}}function c(t){var n;t.done?i(t.value):(n=t.value,n instanceof r?n:new r((function(t){t(n)}))).then(o,a)}c((e=e.apply(t,n||[])).next())}))};Object.defineProperty(n,"__esModule",{value:!0}),n.Transport=void 0;var h=function(t){o(r,t);var n=a(r);function r(t){var e;return i(this,r),(e=n.call(this)).keyring=t,e}return u(r,[{key:"connect",value:function(){return l(this,void 0,void 0,e.mark((function t(){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})))}},{key:"disconnect",value:function(){return l(this,void 0,void 0,e.mark((function t(){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})))}}]),r}(s(r(1043)).EventEmitter2);n.Transport=h},1614:function(t,n,r){"use strict";var e=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0}),n.supportsDebugLink=n.infoBinance=n.supportsBinance=n.infoRipple=n.supportsRipple=n.infoKava=n.supportsKava=n.infoTerra=n.supportsTerra=n.infoSecret=n.supportsSecret=n.infoFio=n.supportsFio=n.infoEos=n.supportsEos=n.infoThorchain=n.supportsThorchain=n.infoCosmos=n.supportsCosmos=n.infoETH=n.supportsETH=n.infoBTC=n.supportsBTC=void 0;var i=e(r(674));n.supportsBTC=function(t){return i.default.isObject(t)&&t._supportsBTC},n.infoBTC=function(t){return i.default.isObject(t)&&t._supportsBTCInfo},n.supportsETH=function(t){return i.default.isObject(t)&&t._supportsETH},n.infoETH=function(t){return i.default.isObject(t)&&t._supportsETHInfo},n.supportsCosmos=function(t){return i.default.isObject(t)&&t._supportsCosmos},n.infoCosmos=function(t){return i.default.isObject(t)&&t._supportsCosmosInfo},n.supportsThorchain=function(t){return i.default.isObject(t)&&t._supportsThorchain},n.infoThorchain=function(t){return i.default.isObject(t)&&t._supportsThorchainInfo},n.supportsEos=function(t){return i.default.isObject(t)&&t._supportsEos},n.infoEos=function(t){return i.default.isObject(t)&&t._supportsEosInfo},n.supportsFio=function(t){return i.default.isObject(t)&&t._supportsFio},n.infoFio=function(t){return i.default.isObject(t)&&t._supportsFioInfo},n.supportsSecret=function(t){return i.default.isObject(t)&&t._supportsSecret},n.infoSecret=function(t){return i.default.isObject(t)&&t._supportsSecretInfo},n.supportsTerra=function(t){return i.default.isObject(t)&&t._supportsTerra},n.infoTerra=function(t){return i.default.isObject(t)&&t._supportsTerraInfo},n.supportsKava=function(t){return i.default.isObject(t)&&t._supportsKava},n.infoKava=function(t){return i.default.isObject(t)&&t._supportsKavaInfo},n.supportsRipple=function(t){return i.default.isObject(t)&&t._supportsRipple},n.infoRipple=function(t){return i.default.isObject(t)&&t._supportsRippleInfo},n.supportsBinance=function(t){return i.default.isObject(t)&&t._supportsBinance},n.infoBinance=function(t){return i.default.isObject(t)&&t._supportsBinanceInfo},n.supportsDebugLink=function(t){return i.default.isObject(t)&&t._supportsDebugLink}},607:function(t,n,r){"use strict";var e=this&&this.__createBinding||(Object.create?function(t,n,r,e){void 0===e&&(e=r),Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[r]}})}:function(t,n,r,e){void 0===e&&(e=r),t[e]=n[r]}),i=this&&this.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};Object.defineProperty(n,"__esModule",{value:!0}),i(r(1598),n),i(r(1599),n),i(r(1600),n),i(r(1601),n),i(r(1602),n),i(r(1603),n),i(r(1604),n),i(r(1605),n),i(r(1606),n),i(r(1607),n),i(r(1608),n),i(r(1609),n),i(r(1610),n),i(r(1611),n),i(r(1612),n),i(r(1613),n),i(r(624),n),i(r(1614),n)},619:function(t,n,r){var e=r(245),i=r(142),u=r(642),o=r(251);function a(n){var r="function"===typeof Map?new Map:void 0;return t.exports=a=function(t){if(null===t||!u(t))return t;if("function"!==typeof t)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof r){if(r.has(t))return r.get(t);r.set(t,n)}function n(){return o(t,arguments,e(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),i(n,t)},a(n)}t.exports=a},624:function(t,n,r){"use strict";(function(t){var e=r(244),i=this&&this.__createBinding||(Object.create?function(t,n,r,e){void 0===e&&(e=r),Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[r]}})}:function(t,n,r,e){void 0===e&&(e=r),t[e]=n[r]}),u=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&i(n,t,r);return u(n,t),n};Object.defineProperty(n,"__esModule",{value:!0}),n.compatibleBufferConcat=n.checkBufferConcat=n.untouchable=n.mustBeDefined=n.toArrayBuffer=n.relativePath=n.hardenedPath=n.satsFromStr=n.slip44ByCoin=n.base64toHEX=n.stripHexPrefixAndLower=n.stripHexPrefix=n.takeFirstOfManyEvents=n.bip32Like=n.addressNListToBIP32=n.bip32ToAddressNList=n.arrayify=n.toHexString=n.fromHexString=n.isArray=n.LONG_TIMEOUT=n.DEFAULT_TIMEOUT=void 0;var a=o(r(659)),c=o(r(679));n.DEFAULT_TIMEOUT=5e3,n.LONG_TIMEOUT=3e5,n.isArray=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};n.fromHexString=function(t){var n=t.match(/.{1,2}/g)||[];return new Uint8Array(n.map((function(t){return parseInt(t,16)})))},n.toHexString=function(t){return Array.prototype.map.call(t,(function(t){return("00"+t.toString(16)).slice(-2)})).join("")},n.arrayify=function(t){if(null===t)throw new Error("cannot convert null value to array");if("string"!==typeof t)throw new Error("can only convert hex strings");var n=t.match(/^(0x)?[0-9a-fA-F]*$/);if(!n)throw new Error("invalid hexadecimal string");if("0x"!==n[1])throw new Error("hex string must have 0x prefix");(t=t.substring(2)).length%2&&(t="0"+t);for(var r=[],e=0;e=f)throw new Error("Invalid child index");if("h"===i[2]||"H"===i[2]||"'"===i[2])r[e]+=f;else if(0!==i[2].length)throw new Error("Invalid modifier")}return r},n.addressNListToBIP32=function(t){return"m/".concat(t.map((function(t){return t>=f?"".concat(t-f,"'"):t})).join("/"))},n.bip32Like=s,n.takeFirstOfManyEvents=function(t,n){return a.merge.apply(a,e(n.map((function(n){return a.fromEvent(t,n)})))).pipe(c.first())},n.stripHexPrefix=l,n.stripHexPrefixAndLower=function(t){return l(t).toLowerCase()},n.base64toHEX=function(t){for(var n=atob(t),r="",e=0;e0?8-(t.length-n-1):8;return Number(t.replace(/\./g,""))*Math.pow(10,r)},n.hardenedPath=function(t){return t.filter((function(t){return t>=2147483648}))},n.relativePath=function(t){return t.filter((function(t){return t<2147483648}))},n.toArrayBuffer=function(t){return t instanceof ArrayBuffer?t:t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)},n.mustBeDefined=function(t){if(null===t||void 0===t)throw new Error("expected a value");return t},n.untouchable=function(t){var n=new Proxy({},new Proxy({},{get:function(r,e){return function(r,i){if("get"===e&&"valueOf"===i)return function(){return n};throw new Error("".concat(String(e),"(").concat(String(i),"): ").concat(t))}}}));return n};var p=void 0;function v(){if(void 0===p)try{t.concat([new Uint8Array]),p=!1}catch(n){p=!0}return p}n.checkBufferConcat=v,n.compatibleBufferConcat=function(n){return v()?t.concat(n.map((function(n){return t.isBuffer(n)?n:t.from(n)}))):t.concat(n)}}).call(this,r(8).Buffer)},642:function(t,n){t.exports=function(t){return-1!==Function.toString.call(t).indexOf("[native code]")}},674:function(t,n,r){(function(t,e){var i;(function(){var u,o="Expected a function",a="__lodash_hash_undefined__",c="__lodash_placeholder__",f=16,s=32,l=64,h=128,p=256,v=1/0,_=9007199254740991,d=NaN,y=4294967295,g=[["ary",h],["bind",1],["bindKey",2],["curry",8],["curryRight",f],["flip",512],["partial",s],["partialRight",l],["rearg",p]],b="[object Arguments]",w="[object Array]",m="[object Boolean]",A="[object Date]",x="[object Error]",O="[object Function]",E="[object GeneratorFunction]",j="[object Map]",T="[object Number]",k="[object Object]",S="[object Promise]",C="[object RegExp]",P="[object Set]",B="[object String]",L="[object Symbol]",I="[object WeakMap]",D="[object ArrayBuffer]",R="[object DataView]",U="[object Float32Array]",W="[object Float64Array]",N="[object Int8Array]",M="[object Int16Array]",z="[object Int32Array]",F="[object Uint8Array]",K="[object Uint8ClampedArray]",H="[object Uint16Array]",$="[object Uint32Array]",q=/\b__p \+= '';/g,Q=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Z=/&(?:amp|lt|gt|quot|#39);/g,V=/[&<>"']/g,X=RegExp(Z.source),J=RegExp(V.source),Y=/<%-([\s\S]+?)%>/g,tt=/<%([\s\S]+?)%>/g,nt=/<%=([\s\S]+?)%>/g,rt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,et=/^\w*$/,it=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ut=/[\\^$.*+?()[\]{}|]/g,ot=RegExp(ut.source),at=/^\s+/,ct=/\s/,ft=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,st=/\{\n\/\* \[wrapped with (.+)\] \*/,lt=/,? & /,ht=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pt=/[()=,{}\[\]\/\s]/,vt=/\\(\\)?/g,_t=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,dt=/\w*$/,yt=/^[-+]0x[0-9a-f]+$/i,gt=/^0b[01]+$/i,bt=/^\[object .+?Constructor\]$/,wt=/^0o[0-7]+$/i,mt=/^(?:0|[1-9]\d*)$/,At=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xt=/($^)/,Ot=/['\n\r\u2028\u2029\\]/g,Et="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",jt="\\u2700-\\u27bf",Tt="a-z\\xdf-\\xf6\\xf8-\\xff",kt="A-Z\\xc0-\\xd6\\xd8-\\xde",St="\\ufe0e\\ufe0f",Ct="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Pt="['\u2019]",Bt="[\\ud800-\\udfff]",Lt="["+Ct+"]",It="["+Et+"]",Dt="\\d+",Rt="[\\u2700-\\u27bf]",Ut="["+Tt+"]",Wt="[^\\ud800-\\udfff"+Ct+Dt+jt+Tt+kt+"]",Nt="\\ud83c[\\udffb-\\udfff]",Mt="[^\\ud800-\\udfff]",zt="(?:\\ud83c[\\udde6-\\uddff]){2}",Ft="[\\ud800-\\udbff][\\udc00-\\udfff]",Kt="["+kt+"]",Ht="(?:"+Ut+"|"+Wt+")",$t="(?:"+Kt+"|"+Wt+")",qt="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Qt="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Gt="(?:"+It+"|"+Nt+")"+"?",Zt="[\\ufe0e\\ufe0f]?",Vt=Zt+Gt+("(?:\\u200d(?:"+[Mt,zt,Ft].join("|")+")"+Zt+Gt+")*"),Xt="(?:"+[Rt,zt,Ft].join("|")+")"+Vt,Jt="(?:"+[Mt+It+"?",It,zt,Ft,Bt].join("|")+")",Yt=RegExp(Pt,"g"),tn=RegExp(It,"g"),nn=RegExp(Nt+"(?="+Nt+")|"+Jt+Vt,"g"),rn=RegExp([Kt+"?"+Ut+"+"+qt+"(?="+[Lt,Kt,"$"].join("|")+")",$t+"+"+Qt+"(?="+[Lt,Kt+Ht,"$"].join("|")+")",Kt+"?"+Ht+"+"+qt,Kt+"+"+Qt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Dt,Xt].join("|"),"g"),en=RegExp("[\\u200d\\ud800-\\udfff"+Et+St+"]"),un=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,on=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],an=-1,cn={};cn[U]=cn[W]=cn[N]=cn[M]=cn[z]=cn[F]=cn[K]=cn[H]=cn[$]=!0,cn[b]=cn[w]=cn[D]=cn[m]=cn[R]=cn[A]=cn[x]=cn[O]=cn[j]=cn[T]=cn[k]=cn[C]=cn[P]=cn[B]=cn[I]=!1;var fn={};fn[b]=fn[w]=fn[D]=fn[R]=fn[m]=fn[A]=fn[U]=fn[W]=fn[N]=fn[M]=fn[z]=fn[j]=fn[T]=fn[k]=fn[C]=fn[P]=fn[B]=fn[L]=fn[F]=fn[K]=fn[H]=fn[$]=!0,fn[x]=fn[O]=fn[I]=!1;var sn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ln=parseFloat,hn=parseInt,pn="object"==typeof t&&t&&t.Object===Object&&t,vn="object"==typeof self&&self&&self.Object===Object&&self,_n=pn||vn||Function("return this")(),dn=n&&!n.nodeType&&n,yn=dn&&"object"==typeof e&&e&&!e.nodeType&&e,gn=yn&&yn.exports===dn,bn=gn&&pn.process,wn=function(){try{var t=yn&&yn.require&&yn.require("util").types;return t||bn&&bn.binding&&bn.binding("util")}catch(n){}}(),mn=wn&&wn.isArrayBuffer,An=wn&&wn.isDate,xn=wn&&wn.isMap,On=wn&&wn.isRegExp,En=wn&&wn.isSet,jn=wn&&wn.isTypedArray;function Tn(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}function kn(t,n,r,e){for(var i=-1,u=null==t?0:t.length;++i-1}function In(t,n,r){for(var e=-1,i=null==t?0:t.length;++e-1;);return r}function er(t,n){for(var r=t.length;r--&&Kn(n,t[r],0)>-1;);return r}function ir(t,n){for(var r=t.length,e=0;r--;)t[r]===n&&++e;return e}var ur=Gn({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),or=Gn({"&":"&","<":"<",">":">",'"':""","'":"'"});function ar(t){return"\\"+sn[t]}function cr(t){return en.test(t)}function fr(t){var n=-1,r=Array(t.size);return t.forEach((function(t,e){r[++n]=[e,t]})),r}function sr(t,n){return function(r){return t(n(r))}}function lr(t,n){for(var r=-1,e=t.length,i=0,u=[];++r",""":'"',"'":"'"});var gr=function t(n){var r=(n=null==n?_n:gr.defaults(_n.Object(),n,gr.pick(_n,on))).Array,e=n.Date,i=n.Error,ct=n.Function,Et=n.Math,jt=n.Object,Tt=n.RegExp,kt=n.String,St=n.TypeError,Ct=r.prototype,Pt=ct.prototype,Bt=jt.prototype,Lt=n["__core-js_shared__"],It=Pt.toString,Dt=Bt.hasOwnProperty,Rt=0,Ut=function(){var t=/[^.]+$/.exec(Lt&&Lt.keys&&Lt.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Wt=Bt.toString,Nt=It.call(jt),Mt=_n._,zt=Tt("^"+It.call(Dt).replace(ut,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ft=gn?n.Buffer:u,Kt=n.Symbol,Ht=n.Uint8Array,$t=Ft?Ft.allocUnsafe:u,qt=sr(jt.getPrototypeOf,jt),Qt=jt.create,Gt=Bt.propertyIsEnumerable,Zt=Ct.splice,Vt=Kt?Kt.isConcatSpreadable:u,Xt=Kt?Kt.iterator:u,Jt=Kt?Kt.toStringTag:u,nn=function(){try{var t=hu(jt,"defineProperty");return t({},"",{}),t}catch(n){}}(),en=n.clearTimeout!==_n.clearTimeout&&n.clearTimeout,sn=e&&e.now!==_n.Date.now&&e.now,pn=n.setTimeout!==_n.setTimeout&&n.setTimeout,vn=Et.ceil,dn=Et.floor,yn=jt.getOwnPropertySymbols,bn=Ft?Ft.isBuffer:u,wn=n.isFinite,Mn=Ct.join,Gn=sr(jt.keys,jt),br=Et.max,wr=Et.min,mr=e.now,Ar=n.parseInt,xr=Et.random,Or=Ct.reverse,Er=hu(n,"DataView"),jr=hu(n,"Map"),Tr=hu(n,"Promise"),kr=hu(n,"Set"),Sr=hu(n,"WeakMap"),Cr=hu(jt,"create"),Pr=Sr&&new Sr,Br={},Lr=Nu(Er),Ir=Nu(jr),Dr=Nu(Tr),Rr=Nu(kr),Ur=Nu(Sr),Wr=Kt?Kt.prototype:u,Nr=Wr?Wr.valueOf:u,Mr=Wr?Wr.toString:u;function zr(t){if(ea(t)&&!qo(t)&&!(t instanceof $r)){if(t instanceof Hr)return t;if(Dt.call(t,"__wrapped__"))return Mu(t)}return new Hr(t)}var Fr=function(){function t(){}return function(n){if(!ra(n))return{};if(Qt)return Qt(n);t.prototype=n;var r=new t;return t.prototype=u,r}}();function Kr(){}function Hr(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=u}function $r(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=y,this.__views__=[]}function qr(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n=n?t:n)),t}function fe(t,n,r,e,i,o){var a,c=1&n,f=2&n,s=4&n;if(r&&(a=i?r(t,e,i,o):r(t)),a!==u)return a;if(!ra(t))return t;var l=qo(t);if(l){if(a=function(t){var n=t.length,r=new t.constructor(n);n&&"string"==typeof t[0]&&Dt.call(t,"index")&&(r.index=t.index,r.input=t.input);return r}(t),!c)return Ci(t,a)}else{var h=_u(t),p=h==O||h==E;if(Vo(t))return Oi(t,c);if(h==k||h==b||p&&!i){if(a=f||p?{}:yu(t),!c)return f?function(t,n){return Pi(t,vu(t),n)}(t,function(t,n){return t&&Pi(n,Ia(n),t)}(a,t)):function(t,n){return Pi(t,pu(t),n)}(t,ue(a,t))}else{if(!fn[h])return i?t:{};a=function(t,n,r){var e=t.constructor;switch(n){case D:return Ei(t);case m:case A:return new e(+t);case R:return function(t,n){var r=n?Ei(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case U:case W:case N:case M:case z:case F:case K:case H:case $:return ji(t,r);case j:return new e;case T:case B:return new e(t);case C:return function(t){var n=new t.constructor(t.source,dt.exec(t));return n.lastIndex=t.lastIndex,n}(t);case P:return new e;case L:return i=t,Nr?jt(Nr.call(i)):{}}var i}(t,h,c)}}o||(o=new Vr);var v=o.get(t);if(v)return v;o.set(t,a),ca(t)?t.forEach((function(e){a.add(fe(e,n,r,e,t,o))})):ia(t)&&t.forEach((function(e,i){a.set(i,fe(e,n,r,i,t,o))}));var _=l?u:(s?f?uu:iu:f?Ia:La)(t);return Sn(_||t,(function(e,i){_&&(e=t[i=e]),re(a,i,fe(e,n,r,i,t,o))})),a}function se(t,n,r){var e=r.length;if(null==t)return!e;for(t=jt(t);e--;){var i=r[e],o=n[i],a=t[i];if(a===u&&!(i in t)||!o(a))return!1}return!0}function le(t,n,r){if("function"!=typeof t)throw new St(o);return Bu((function(){t.apply(u,r)}),n)}function he(t,n,r,e){var i=-1,u=Ln,o=!0,a=t.length,c=[],f=n.length;if(!a)return c;r&&(n=Dn(n,Yn(r))),e?(u=In,o=!1):n.length>=200&&(u=nr,o=!1,n=new Zr(n));t:for(;++i-1},Qr.prototype.set=function(t,n){var r=this.__data__,e=ee(r,t);return e<0?(++this.size,r.push([t,n])):r[e][1]=n,this},Gr.prototype.clear=function(){this.size=0,this.__data__={hash:new qr,map:new(jr||Qr),string:new qr}},Gr.prototype.delete=function(t){var n=su(this,t).delete(t);return this.size-=n?1:0,n},Gr.prototype.get=function(t){return su(this,t).get(t)},Gr.prototype.has=function(t){return su(this,t).has(t)},Gr.prototype.set=function(t,n){var r=su(this,t),e=r.size;return r.set(t,n),this.size+=r.size==e?0:1,this},Zr.prototype.add=Zr.prototype.push=function(t){return this.__data__.set(t,a),this},Zr.prototype.has=function(t){return this.__data__.has(t)},Vr.prototype.clear=function(){this.__data__=new Qr,this.size=0},Vr.prototype.delete=function(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r},Vr.prototype.get=function(t){return this.__data__.get(t)},Vr.prototype.has=function(t){return this.__data__.has(t)},Vr.prototype.set=function(t,n){var r=this.__data__;if(r instanceof Qr){var e=r.__data__;if(!jr||e.length<199)return e.push([t,n]),this.size=++r.size,this;r=this.__data__=new Gr(e)}return r.set(t,n),this.size=r.size,this};var pe=Ii(me),ve=Ii(Ae,!0);function _e(t,n){var r=!0;return pe(t,(function(t,e,i){return r=!!n(t,e,i)})),r}function de(t,n,r){for(var e=-1,i=t.length;++e0&&r(a)?n>1?ge(a,n-1,r,e,i):Rn(i,a):e||(i[i.length]=a)}return i}var be=Di(),we=Di(!0);function me(t,n){return t&&be(t,n,La)}function Ae(t,n){return t&&we(t,n,La)}function xe(t,n){return Bn(n,(function(n){return Yo(t[n])}))}function Oe(t,n){for(var r=0,e=(n=wi(n,t)).length;null!=t&&rn}function ke(t,n){return null!=t&&Dt.call(t,n)}function Se(t,n){return null!=t&&n in jt(t)}function Ce(t,n,e){for(var i=e?In:Ln,o=t[0].length,a=t.length,c=a,f=r(a),s=1/0,l=[];c--;){var h=t[c];c&&n&&(h=Dn(h,Yn(n))),s=wr(h.length,s),f[c]=!e&&(n||o>=120&&h.length>=120)?new Zr(c&&h):u}h=t[0];var p=-1,v=f[0];t:for(;++p=a?c:c*("desc"==r[e]?-1:1)}return t.index-n.index}(t,n,r)}))}function qe(t,n,r){for(var e=-1,i=n.length,u={};++e-1;)a!==t&&Zt.call(a,c,1),Zt.call(t,c,1);return t}function Ge(t,n){for(var r=t?n.length:0,e=r-1;r--;){var i=n[r];if(r==e||i!==u){var u=i;bu(i)?Zt.call(t,i,1):hi(t,i)}}return t}function Ze(t,n){return t+dn(xr()*(n-t+1))}function Ve(t,n){var r="";if(!t||n<1||n>_)return r;do{n%2&&(r+=t),(n=dn(n/2))&&(t+=t)}while(n);return r}function Xe(t,n){return Lu(Tu(t,n,uc),t+"")}function Je(t){return Jr(Fa(t))}function Ye(t,n){var r=Fa(t);return Ru(r,ce(n,0,r.length))}function ti(t,n,r,e){if(!ra(t))return t;for(var i=-1,o=(n=wi(n,t)).length,a=o-1,c=t;null!=c&&++iu?0:u+n),(e=e>u?u:e)<0&&(e+=u),u=n>e?0:e-n>>>0,n>>>=0;for(var o=r(u);++i>>1,o=t[u];null!==o&&!sa(o)&&(r?o<=n:o=200){var f=n?null:Vi(t);if(f)return hr(f);o=!1,i=nr,c=new Zr}else c=n?[]:a;t:for(;++e=e?t:ii(t,n,r)}var xi=en||function(t){return _n.clearTimeout(t)};function Oi(t,n){if(n)return t.slice();var r=t.length,e=$t?$t(r):new t.constructor(r);return t.copy(e),e}function Ei(t){var n=new t.constructor(t.byteLength);return new Ht(n).set(new Ht(t)),n}function ji(t,n){var r=n?Ei(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function Ti(t,n){if(t!==n){var r=t!==u,e=null===t,i=t===t,o=sa(t),a=n!==u,c=null===n,f=n===n,s=sa(n);if(!c&&!s&&!o&&t>n||o&&a&&f&&!c&&!s||e&&a&&f||!r&&f||!i)return 1;if(!e&&!o&&!s&&t1?r[i-1]:u,a=i>2?r[2]:u;for(o=t.length>3&&"function"==typeof o?(i--,o):u,a&&wu(r[0],r[1],a)&&(o=i<3?u:o,i=1),n=jt(n);++e-1?i[o?n[a]:a]:u}}function Mi(t){return eu((function(n){var r=n.length,e=r,i=Hr.prototype.thru;for(t&&n.reverse();e--;){var a=n[e];if("function"!=typeof a)throw new St(o);if(i&&!c&&"wrapper"==au(a))var c=new Hr([],!0)}for(e=c?e:r;++e1&&b.reverse(),p&&sc))return!1;var s=o.get(t),l=o.get(n);if(s&&l)return s==n&&l==t;var h=-1,p=!0,v=2&r?new Zr:u;for(o.set(t,n),o.set(n,t);++h-1&&t%1==0&&t1?"& ":"")+n[e],n=n.join(r>2?", ":" "),t.replace(ft,"{\n/* [wrapped with "+n+"] */\n")}(e,function(t,n){return Sn(g,(function(r){var e="_."+r[0];n&r[1]&&!Ln(t,e)&&t.push(e)})),t.sort()}(function(t){var n=t.match(st);return n?n[1].split(lt):[]}(e),r)))}function Du(t){var n=0,r=0;return function(){var e=mr(),i=16-(e-r);if(r=e,i>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(u,arguments)}}function Ru(t,n){var r=-1,e=t.length,i=e-1;for(n=n===u?e:n;++r1?t[n-1]:u;return r="function"==typeof r?(t.pop(),r):u,oo(t,r)}));function po(t){var n=zr(t);return n.__chain__=!0,n}function vo(t,n){return n(t)}var _o=eu((function(t){var n=t.length,r=n?t[0]:0,e=this.__wrapped__,i=function(n){return ae(n,t)};return!(n>1||this.__actions__.length)&&e instanceof $r&&bu(r)?((e=e.slice(r,+r+(n?1:0))).__actions__.push({func:vo,args:[i],thisArg:u}),new Hr(e,this.__chain__).thru((function(t){return n&&!t.length&&t.push(u),t}))):this.thru(i)}));var yo=Bi((function(t,n,r){Dt.call(t,r)?++t[r]:oe(t,r,1)}));var go=Ni(Hu),bo=Ni($u);function wo(t,n){return(qo(t)?Sn:pe)(t,fu(n,3))}function mo(t,n){return(qo(t)?Cn:ve)(t,fu(n,3))}var Ao=Bi((function(t,n,r){Dt.call(t,r)?t[r].push(n):oe(t,r,[n])}));var xo=Xe((function(t,n,e){var i=-1,u="function"==typeof n,o=Go(t)?r(t.length):[];return pe(t,(function(t){o[++i]=u?Tn(n,t,e):Pe(t,n,e)})),o})),Oo=Bi((function(t,n,r){oe(t,r,n)}));function Eo(t,n){return(qo(t)?Dn:Me)(t,fu(n,3))}var jo=Bi((function(t,n,r){t[r?0:1].push(n)}),(function(){return[[],[]]}));var To=Xe((function(t,n){if(null==t)return[];var r=n.length;return r>1&&wu(t,n[0],n[1])?n=[]:r>2&&wu(n[0],n[1],n[2])&&(n=[n[0]]),$e(t,ge(n,1),[])})),ko=sn||function(){return _n.Date.now()};function So(t,n,r){return n=r?u:n,n=t&&null==n?t.length:n,Ji(t,h,u,u,u,u,n)}function Co(t,n){var r;if("function"!=typeof n)throw new St(o);return t=da(t),function(){return--t>0&&(r=n.apply(this,arguments)),t<=1&&(n=u),r}}var Po=Xe((function(t,n,r){var e=1;if(r.length){var i=lr(r,cu(Po));e|=s}return Ji(t,e,n,r,i)})),Bo=Xe((function(t,n,r){var e=3;if(r.length){var i=lr(r,cu(Bo));e|=s}return Ji(n,e,t,r,i)}));function Lo(t,n,r){var e,i,a,c,f,s,l=0,h=!1,p=!1,v=!0;if("function"!=typeof t)throw new St(o);function _(n){var r=e,o=i;return e=i=u,l=n,c=t.apply(o,r)}function d(t){return l=t,f=Bu(g,n),h?_(t):c}function y(t){var r=t-s;return s===u||r>=n||r<0||p&&t-l>=a}function g(){var t=ko();if(y(t))return b(t);f=Bu(g,function(t){var r=n-(t-s);return p?wr(r,a-(t-l)):r}(t))}function b(t){return f=u,v&&e?_(t):(e=i=u,c)}function w(){var t=ko(),r=y(t);if(e=arguments,i=this,s=t,r){if(f===u)return d(s);if(p)return xi(f),f=Bu(g,n),_(s)}return f===u&&(f=Bu(g,n)),c}return n=ga(n)||0,ra(r)&&(h=!!r.leading,a=(p="maxWait"in r)?br(ga(r.maxWait)||0,n):a,v="trailing"in r?!!r.trailing:v),w.cancel=function(){f!==u&&xi(f),l=0,e=s=i=f=u},w.flush=function(){return f===u?c:b(ko())},w}var Io=Xe((function(t,n){return le(t,1,n)})),Do=Xe((function(t,n,r){return le(t,ga(n)||0,r)}));function Ro(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new St(o);var r=function r(){var e=arguments,i=n?n.apply(this,e):e[0],u=r.cache;if(u.has(i))return u.get(i);var o=t.apply(this,e);return r.cache=u.set(i,o)||u,o};return r.cache=new(Ro.Cache||Gr),r}function Uo(t){if("function"!=typeof t)throw new St(o);return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}Ro.Cache=Gr;var Wo=mi((function(t,n){var r=(n=1==n.length&&qo(n[0])?Dn(n[0],Yn(fu())):Dn(ge(n,1),Yn(fu()))).length;return Xe((function(e){for(var i=-1,u=wr(e.length,r);++i=n})),$o=Be(function(){return arguments}())?Be:function(t){return ea(t)&&Dt.call(t,"callee")&&!Gt.call(t,"callee")},qo=r.isArray,Qo=mn?Yn(mn):function(t){return ea(t)&&je(t)==D};function Go(t){return null!=t&&na(t.length)&&!Yo(t)}function Zo(t){return ea(t)&&Go(t)}var Vo=bn||gc,Xo=An?Yn(An):function(t){return ea(t)&&je(t)==A};function Jo(t){if(!ea(t))return!1;var n=je(t);return n==x||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!oa(t)}function Yo(t){if(!ra(t))return!1;var n=je(t);return n==O||n==E||"[object AsyncFunction]"==n||"[object Proxy]"==n}function ta(t){return"number"==typeof t&&t==da(t)}function na(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=_}function ra(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}function ea(t){return null!=t&&"object"==typeof t}var ia=xn?Yn(xn):function(t){return ea(t)&&_u(t)==j};function ua(t){return"number"==typeof t||ea(t)&&je(t)==T}function oa(t){if(!ea(t)||je(t)!=k)return!1;var n=qt(t);if(null===n)return!0;var r=Dt.call(n,"constructor")&&n.constructor;return"function"==typeof r&&r instanceof r&&It.call(r)==Nt}var aa=On?Yn(On):function(t){return ea(t)&&je(t)==C};var ca=En?Yn(En):function(t){return ea(t)&&_u(t)==P};function fa(t){return"string"==typeof t||!qo(t)&&ea(t)&&je(t)==B}function sa(t){return"symbol"==typeof t||ea(t)&&je(t)==L}var la=jn?Yn(jn):function(t){return ea(t)&&na(t.length)&&!!cn[je(t)]};var ha=Qi(Ne),pa=Qi((function(t,n){return t<=n}));function va(t){if(!t)return[];if(Go(t))return fa(t)?_r(t):Ci(t);if(Xt&&t[Xt])return function(t){for(var n,r=[];!(n=t.next()).done;)r.push(n.value);return r}(t[Xt]());var n=_u(t);return(n==j?fr:n==P?hr:Fa)(t)}function _a(t){return t?(t=ga(t))===v||t===-1/0?17976931348623157e292*(t<0?-1:1):t===t?t:0:0===t?t:0}function da(t){var n=_a(t),r=n%1;return n===n?r?n-r:n:0}function ya(t){return t?ce(da(t),0,y):0}function ga(t){if("number"==typeof t)return t;if(sa(t))return d;if(ra(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=ra(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=Jn(t);var r=gt.test(t);return r||wt.test(t)?hn(t.slice(2),r?2:8):yt.test(t)?d:+t}function ba(t){return Pi(t,Ia(t))}function wa(t){return null==t?"":si(t)}var ma=Li((function(t,n){if(Ou(n)||Go(n))Pi(n,La(n),t);else for(var r in n)Dt.call(n,r)&&re(t,r,n[r])})),Aa=Li((function(t,n){Pi(n,Ia(n),t)})),xa=Li((function(t,n,r,e){Pi(n,Ia(n),t,e)})),Oa=Li((function(t,n,r,e){Pi(n,La(n),t,e)})),Ea=eu(ae);var ja=Xe((function(t,n){t=jt(t);var r=-1,e=n.length,i=e>2?n[2]:u;for(i&&wu(n[0],n[1],i)&&(e=1);++r1),n})),Pi(t,uu(t),r),e&&(r=fe(r,7,nu));for(var i=n.length;i--;)hi(r,n[i]);return r}));var Wa=eu((function(t,n){return null==t?{}:function(t,n){return qe(t,n,(function(n,r){return Sa(t,r)}))}(t,n)}));function Na(t,n){if(null==t)return{};var r=Dn(uu(t),(function(t){return[t]}));return n=fu(n),qe(t,r,(function(t,r){return n(t,r[0])}))}var Ma=Xi(La),za=Xi(Ia);function Fa(t){return null==t?[]:tr(t,La(t))}var Ka=Ui((function(t,n,r){return n=n.toLowerCase(),t+(r?Ha(n):n)}));function Ha(t){return Ja(wa(t).toLowerCase())}function $a(t){return(t=wa(t))&&t.replace(At,ur).replace(tn,"")}var qa=Ui((function(t,n,r){return t+(r?"-":"")+n.toLowerCase()})),Qa=Ui((function(t,n,r){return t+(r?" ":"")+n.toLowerCase()})),Ga=Ri("toLowerCase");var Za=Ui((function(t,n,r){return t+(r?"_":"")+n.toLowerCase()}));var Va=Ui((function(t,n,r){return t+(r?" ":"")+Ja(n)}));var Xa=Ui((function(t,n,r){return t+(r?" ":"")+n.toUpperCase()})),Ja=Ri("toUpperCase");function Ya(t,n,r){return t=wa(t),(n=r?u:n)===u?function(t){return un.test(t)}(t)?function(t){return t.match(rn)||[]}(t):function(t){return t.match(ht)||[]}(t):t.match(n)||[]}var tc=Xe((function(t,n){try{return Tn(t,u,n)}catch(r){return Jo(r)?r:new i(r)}})),nc=eu((function(t,n){return Sn(n,(function(n){n=Wu(n),oe(t,n,Po(t[n],t))})),t}));function rc(t){return function(){return t}}var ec=Mi(),ic=Mi(!0);function uc(t){return t}function oc(t){return Re("function"==typeof t?t:fe(t,1))}var ac=Xe((function(t,n){return function(r){return Pe(r,t,n)}})),cc=Xe((function(t,n){return function(r){return Pe(t,r,n)}}));function fc(t,n,r){var e=La(n),i=xe(n,e);null!=r||ra(n)&&(i.length||!e.length)||(r=n,n=t,t=this,i=xe(n,La(n)));var u=!(ra(r)&&"chain"in r)||!!r.chain,o=Yo(t);return Sn(i,(function(r){var e=n[r];t[r]=e,o&&(t.prototype[r]=function(){var n=this.__chain__;if(u||n){var r=t(this.__wrapped__),i=r.__actions__=Ci(this.__actions__);return i.push({func:e,args:arguments,thisArg:t}),r.__chain__=n,r}return e.apply(t,Rn([this.value()],arguments))})})),t}function sc(){}var lc=Hi(Dn),hc=Hi(Pn),pc=Hi(Nn);function vc(t){return mu(t)?Qn(Wu(t)):function(t){return function(n){return Oe(n,t)}}(t)}var _c=qi(),dc=qi(!0);function yc(){return[]}function gc(){return!1}var bc=Ki((function(t,n){return t+n}),0),wc=Zi("ceil"),mc=Ki((function(t,n){return t/n}),1),Ac=Zi("floor");var xc=Ki((function(t,n){return t*n}),1),Oc=Zi("round"),Ec=Ki((function(t,n){return t-n}),0);return zr.after=function(t,n){if("function"!=typeof n)throw new St(o);return t=da(t),function(){if(--t<1)return n.apply(this,arguments)}},zr.ary=So,zr.assign=ma,zr.assignIn=Aa,zr.assignInWith=xa,zr.assignWith=Oa,zr.at=Ea,zr.before=Co,zr.bind=Po,zr.bindAll=nc,zr.bindKey=Bo,zr.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return qo(t)?t:[t]},zr.chain=po,zr.chunk=function(t,n,e){n=(e?wu(t,n,e):n===u)?1:br(da(n),0);var i=null==t?0:t.length;if(!i||n<1)return[];for(var o=0,a=0,c=r(vn(i/n));oi?0:i+r),(e=e===u||e>i?i:da(e))<0&&(e+=i),e=r>e?0:ya(e);r>>0)?(t=wa(t))&&("string"==typeof n||null!=n&&!aa(n))&&!(n=si(n))&&cr(t)?Ai(_r(t),0,r):t.split(n,r):[]},zr.spread=function(t,n){if("function"!=typeof t)throw new St(o);return n=null==n?0:br(da(n),0),Xe((function(r){var e=r[n],i=Ai(r,0,n);return e&&Rn(i,e),Tn(t,this,i)}))},zr.tail=function(t){var n=null==t?0:t.length;return n?ii(t,1,n):[]},zr.take=function(t,n,r){return t&&t.length?ii(t,0,(n=r||n===u?1:da(n))<0?0:n):[]},zr.takeRight=function(t,n,r){var e=null==t?0:t.length;return e?ii(t,(n=e-(n=r||n===u?1:da(n)))<0?0:n,e):[]},zr.takeRightWhile=function(t,n){return t&&t.length?vi(t,fu(n,3),!1,!0):[]},zr.takeWhile=function(t,n){return t&&t.length?vi(t,fu(n,3)):[]},zr.tap=function(t,n){return n(t),t},zr.throttle=function(t,n,r){var e=!0,i=!0;if("function"!=typeof t)throw new St(o);return ra(r)&&(e="leading"in r?!!r.leading:e,i="trailing"in r?!!r.trailing:i),Lo(t,n,{leading:e,maxWait:n,trailing:i})},zr.thru=vo,zr.toArray=va,zr.toPairs=Ma,zr.toPairsIn=za,zr.toPath=function(t){return qo(t)?Dn(t,Wu):sa(t)?[t]:Ci(Uu(wa(t)))},zr.toPlainObject=ba,zr.transform=function(t,n,r){var e=qo(t),i=e||Vo(t)||la(t);if(n=fu(n,4),null==r){var u=t&&t.constructor;r=i?e?new u:[]:ra(t)&&Yo(u)?Fr(qt(t)):{}}return(i?Sn:me)(t,(function(t,e,i){return n(r,t,e,i)})),r},zr.unary=function(t){return So(t,1)},zr.union=ro,zr.unionBy=eo,zr.unionWith=io,zr.uniq=function(t){return t&&t.length?li(t):[]},zr.uniqBy=function(t,n){return t&&t.length?li(t,fu(n,2)):[]},zr.uniqWith=function(t,n){return n="function"==typeof n?n:u,t&&t.length?li(t,u,n):[]},zr.unset=function(t,n){return null==t||hi(t,n)},zr.unzip=uo,zr.unzipWith=oo,zr.update=function(t,n,r){return null==t?t:pi(t,n,bi(r))},zr.updateWith=function(t,n,r,e){return e="function"==typeof e?e:u,null==t?t:pi(t,n,bi(r),e)},zr.values=Fa,zr.valuesIn=function(t){return null==t?[]:tr(t,Ia(t))},zr.without=ao,zr.words=Ya,zr.wrap=function(t,n){return No(bi(n),t)},zr.xor=co,zr.xorBy=fo,zr.xorWith=so,zr.zip=lo,zr.zipObject=function(t,n){return yi(t||[],n||[],re)},zr.zipObjectDeep=function(t,n){return yi(t||[],n||[],ti)},zr.zipWith=ho,zr.entries=Ma,zr.entriesIn=za,zr.extend=Aa,zr.extendWith=xa,fc(zr,zr),zr.add=bc,zr.attempt=tc,zr.camelCase=Ka,zr.capitalize=Ha,zr.ceil=wc,zr.clamp=function(t,n,r){return r===u&&(r=n,n=u),r!==u&&(r=(r=ga(r))===r?r:0),n!==u&&(n=(n=ga(n))===n?n:0),ce(ga(t),n,r)},zr.clone=function(t){return fe(t,4)},zr.cloneDeep=function(t){return fe(t,5)},zr.cloneDeepWith=function(t,n){return fe(t,5,n="function"==typeof n?n:u)},zr.cloneWith=function(t,n){return fe(t,4,n="function"==typeof n?n:u)},zr.conformsTo=function(t,n){return null==n||se(t,n,La(n))},zr.deburr=$a,zr.defaultTo=function(t,n){return null==t||t!==t?n:t},zr.divide=mc,zr.endsWith=function(t,n,r){t=wa(t),n=si(n);var e=t.length,i=r=r===u?e:ce(da(r),0,e);return(r-=n.length)>=0&&t.slice(r,i)==n},zr.eq=Fo,zr.escape=function(t){return(t=wa(t))&&J.test(t)?t.replace(V,or):t},zr.escapeRegExp=function(t){return(t=wa(t))&&ot.test(t)?t.replace(ut,"\\$&"):t},zr.every=function(t,n,r){var e=qo(t)?Pn:_e;return r&&wu(t,n,r)&&(n=u),e(t,fu(n,3))},zr.find=go,zr.findIndex=Hu,zr.findKey=function(t,n){return zn(t,fu(n,3),me)},zr.findLast=bo,zr.findLastIndex=$u,zr.findLastKey=function(t,n){return zn(t,fu(n,3),Ae)},zr.floor=Ac,zr.forEach=wo,zr.forEachRight=mo,zr.forIn=function(t,n){return null==t?t:be(t,fu(n,3),Ia)},zr.forInRight=function(t,n){return null==t?t:we(t,fu(n,3),Ia)},zr.forOwn=function(t,n){return t&&me(t,fu(n,3))},zr.forOwnRight=function(t,n){return t&&Ae(t,fu(n,3))},zr.get=ka,zr.gt=Ko,zr.gte=Ho,zr.has=function(t,n){return null!=t&&du(t,n,ke)},zr.hasIn=Sa,zr.head=Qu,zr.identity=uc,zr.includes=function(t,n,r,e){t=Go(t)?t:Fa(t),r=r&&!e?da(r):0;var i=t.length;return r<0&&(r=br(i+r,0)),fa(t)?r<=i&&t.indexOf(n,r)>-1:!!i&&Kn(t,n,r)>-1},zr.indexOf=function(t,n,r){var e=null==t?0:t.length;if(!e)return-1;var i=null==r?0:da(r);return i<0&&(i=br(e+i,0)),Kn(t,n,i)},zr.inRange=function(t,n,r){return n=_a(n),r===u?(r=n,n=0):r=_a(r),function(t,n,r){return t>=wr(n,r)&&t=-9007199254740991&&t<=_},zr.isSet=ca,zr.isString=fa,zr.isSymbol=sa,zr.isTypedArray=la,zr.isUndefined=function(t){return t===u},zr.isWeakMap=function(t){return ea(t)&&_u(t)==I},zr.isWeakSet=function(t){return ea(t)&&"[object WeakSet]"==je(t)},zr.join=function(t,n){return null==t?"":Mn.call(t,n)},zr.kebabCase=qa,zr.last=Xu,zr.lastIndexOf=function(t,n,r){var e=null==t?0:t.length;if(!e)return-1;var i=e;return r!==u&&(i=(i=da(r))<0?br(e+i,0):wr(i,e-1)),n===n?function(t,n,r){for(var e=r+1;e--;)if(t[e]===n)return e;return e}(t,n,i):Fn(t,$n,i,!0)},zr.lowerCase=Qa,zr.lowerFirst=Ga,zr.lt=ha,zr.lte=pa,zr.max=function(t){return t&&t.length?de(t,uc,Te):u},zr.maxBy=function(t,n){return t&&t.length?de(t,fu(n,2),Te):u},zr.mean=function(t){return qn(t,uc)},zr.meanBy=function(t,n){return qn(t,fu(n,2))},zr.min=function(t){return t&&t.length?de(t,uc,Ne):u},zr.minBy=function(t,n){return t&&t.length?de(t,fu(n,2),Ne):u},zr.stubArray=yc,zr.stubFalse=gc,zr.stubObject=function(){return{}},zr.stubString=function(){return""},zr.stubTrue=function(){return!0},zr.multiply=xc,zr.nth=function(t,n){return t&&t.length?He(t,da(n)):u},zr.noConflict=function(){return _n._===this&&(_n._=Mt),this},zr.noop=sc,zr.now=ko,zr.pad=function(t,n,r){t=wa(t);var e=(n=da(n))?vr(t):0;if(!n||e>=n)return t;var i=(n-e)/2;return $i(dn(i),r)+t+$i(vn(i),r)},zr.padEnd=function(t,n,r){t=wa(t);var e=(n=da(n))?vr(t):0;return n&&en){var e=t;t=n,n=e}if(r||t%1||n%1){var i=xr();return wr(t+i*(n-t+ln("1e-"+((i+"").length-1))),n)}return Ze(t,n)},zr.reduce=function(t,n,r){var e=qo(t)?Un:Zn,i=arguments.length<3;return e(t,fu(n,4),r,i,pe)},zr.reduceRight=function(t,n,r){var e=qo(t)?Wn:Zn,i=arguments.length<3;return e(t,fu(n,4),r,i,ve)},zr.repeat=function(t,n,r){return n=(r?wu(t,n,r):n===u)?1:da(n),Ve(wa(t),n)},zr.replace=function(){var t=arguments,n=wa(t[0]);return t.length<3?n:n.replace(t[1],t[2])},zr.result=function(t,n,r){var e=-1,i=(n=wi(n,t)).length;for(i||(i=1,t=u);++e_)return[];var r=y,e=wr(t,y);n=fu(n),t-=y;for(var i=Xn(e,n);++r=o)return t;var c=r-vr(e);if(c<1)return e;var f=a?Ai(a,0,c).join(""):t.slice(0,c);if(i===u)return f+e;if(a&&(c+=f.length-c),aa(i)){if(t.slice(c).search(i)){var s,l=f;for(i.global||(i=Tt(i.source,wa(dt.exec(i))+"g")),i.lastIndex=0;s=i.exec(l);)var h=s.index;f=f.slice(0,h===u?c:h)}}else if(t.indexOf(si(i),c)!=c){var p=f.lastIndexOf(i);p>-1&&(f=f.slice(0,p))}return f+e},zr.unescape=function(t){return(t=wa(t))&&X.test(t)?t.replace(Z,yr):t},zr.uniqueId=function(t){var n=++Rt;return wa(t)+n},zr.upperCase=Xa,zr.upperFirst=Ja,zr.each=wo,zr.eachRight=mo,zr.first=Qu,fc(zr,function(){var t={};return me(zr,(function(n,r){Dt.call(zr.prototype,r)||(t[r]=n)})),t}(),{chain:!1}),zr.VERSION="4.17.21",Sn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){zr[t].placeholder=zr})),Sn(["drop","take"],(function(t,n){$r.prototype[t]=function(r){r=r===u?1:br(da(r),0);var e=this.__filtered__&&!n?new $r(this):this.clone();return e.__filtered__?e.__takeCount__=wr(r,e.__takeCount__):e.__views__.push({size:wr(r,y),type:t+(e.__dir__<0?"Right":"")}),e},$r.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}})),Sn(["filter","map","takeWhile"],(function(t,n){var r=n+1,e=1==r||3==r;$r.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:fu(t,3),type:r}),n.__filtered__=n.__filtered__||e,n}})),Sn(["head","last"],(function(t,n){var r="take"+(n?"Right":"");$r.prototype[t]=function(){return this[r](1).value()[0]}})),Sn(["initial","tail"],(function(t,n){var r="drop"+(n?"":"Right");$r.prototype[t]=function(){return this.__filtered__?new $r(this):this[r](1)}})),$r.prototype.compact=function(){return this.filter(uc)},$r.prototype.find=function(t){return this.filter(t).head()},$r.prototype.findLast=function(t){return this.reverse().find(t)},$r.prototype.invokeMap=Xe((function(t,n){return"function"==typeof t?new $r(this):this.map((function(r){return Pe(r,t,n)}))})),$r.prototype.reject=function(t){return this.filter(Uo(fu(t)))},$r.prototype.slice=function(t,n){t=da(t);var r=this;return r.__filtered__&&(t>0||n<0)?new $r(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),n!==u&&(r=(n=da(n))<0?r.dropRight(-n):r.take(n-t)),r)},$r.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},$r.prototype.toArray=function(){return this.take(y)},me($r.prototype,(function(t,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),e=/^(?:head|last)$/.test(n),i=zr[e?"take"+("last"==n?"Right":""):n],o=e||/^find/.test(n);i&&(zr.prototype[n]=function(){var n=this.__wrapped__,a=e?[1]:arguments,c=n instanceof $r,f=a[0],s=c||qo(n),l=function(t){var n=i.apply(zr,Rn([t],a));return e&&h?n[0]:n};s&&r&&"function"==typeof f&&1!=f.length&&(c=s=!1);var h=this.__chain__,p=!!this.__actions__.length,v=o&&!h,_=c&&!p;if(!o&&s){n=_?n:new $r(this);var d=t.apply(n,a);return d.__actions__.push({func:vo,args:[l],thisArg:u}),new Hr(d,h)}return v&&_?t.apply(this,a):(d=this.thru(l),v?e?d.value()[0]:d.value():d)})})),Sn(["pop","push","shift","sort","splice","unshift"],(function(t){var n=Ct[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",e=/^(?:pop|shift)$/.test(t);zr.prototype[t]=function(){var t=arguments;if(e&&!this.__chain__){var i=this.value();return n.apply(qo(i)?i:[],t)}return this[r]((function(r){return n.apply(qo(r)?r:[],t)}))}})),me($r.prototype,(function(t,n){var r=zr[n];if(r){var e=r.name+"";Dt.call(Br,e)||(Br[e]=[]),Br[e].push({name:n,func:r})}})),Br[zi(u,2).name]=[{name:"wrapper",func:u}],$r.prototype.clone=function(){var t=new $r(this.__wrapped__);return t.__actions__=Ci(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ci(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ci(this.__views__),t},$r.prototype.reverse=function(){if(this.__filtered__){var t=new $r(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},$r.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,r=qo(t),e=n<0,i=r?t.length:0,u=function(t,n,r){var e=-1,i=r.length;for(;++e=this.__values__.length;return{done:t,value:t?u:this.__values__[this.__index__++]}},zr.prototype.plant=function(t){for(var n,r=this;r instanceof Kr;){var e=Mu(r);e.__index__=0,e.__values__=u,n?i.__wrapped__=e:n=e;var i=e;r=r.__wrapped__}return i.__wrapped__=t,n},zr.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof $r){var n=t;return this.__actions__.length&&(n=new $r(this)),(n=n.reverse()).__actions__.push({func:vo,args:[no],thisArg:u}),new Hr(n,this.__chain__)}return this.thru(no)},zr.prototype.toJSON=zr.prototype.valueOf=zr.prototype.value=function(){return _i(this.__wrapped__,this.__actions__)},zr.prototype.first=zr.prototype.head,Xt&&(zr.prototype[Xt]=function(){return this}),zr}();_n._=gr,(i=function(){return gr}.call(n,r,n,e))===u||(e.exports=i)}).call(this)}).call(this,r(19),r(26)(t))}}]); \ No newline at end of file diff --git a/WebGLTemplates/Web3GL-2019/static/js/13.ebd9c9f8.chunk.js b/WebGLTemplates/Web3GL-2019/static/js/13.ebd9c9f8.chunk.js new file mode 100644 index 000000000..b693f2794 --- /dev/null +++ b/WebGLTemplates/Web3GL-2019/static/js/13.ebd9c9f8.chunk.js @@ -0,0 +1 @@ +(this.webpackJsonpweb3gl=this.webpackJsonpweb3gl||[]).push([[13],{1201:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getSDKVersion=void 0;var a=i(r(1202));t.default=a.default,s(r(1202),t),s(r(1963),t),s(r(769),t),s(r(1204),t);var o=r(1205);Object.defineProperty(t,"getSDKVersion",{enumerable:!0,get:function(){return o.getSDKVersion}})},1202:function(e,t,r){"use strict";var n=r(9),s=r(101),i=r(38),a=r(39),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var u=r(1203),c=o(r(1203)),l=r(1960),d=r(1961),h=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(i(this,e),"undefined"===typeof window)throw new Error("Error initializing the sdk: window is undefined");var r=t.whitelistedDomains,n=void 0===r?null:r,s=t.debug,a=void 0!==s&&s;this.communicator=new c.default(n,a),this.eth=new d.Eth(this.communicator),this.txs=new l.TXs(this.communicator),this.bootstrap()}return a(e,[{key:"bootstrap",value:function(){var e=s(n.mark((function e(){var t,r;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getEnvInfo();case 2:t=e.sent,r=t.txServiceUrl,this.txs.setTxServiceUrl(r);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getEnvInfo",value:function(){var e=s(n.mark((function e(){var t;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.communicator.send(u.METHODS.getEnvInfo,void 0);case 2:if((t=e.sent).success){e.next=5;break}throw new Error(t.error);case 5:return e.abrupt("return",t.data);case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getSafeInfo",value:function(){var e=s(n.mark((function e(){var t;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.communicator.send(u.METHODS.getSafeInfo,void 0);case 2:if((t=e.sent).success){e.next=5;break}throw new Error(t.error);case 5:return e.abrupt("return",t.data);case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}();t.default=h},1203:function(e,t,r){"use strict";var n=r(38),s=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0});var a=r(1204);t.default=function e(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,s=arguments.length>1&&void 0!==arguments[1]&&arguments[1];n(this,e),this.allowedOrigins=null,this.callbacks=new Map,this.debugMode=!1,this.isValidMessage=function(e){var r=e.origin,n=e.data,s=!n,i=e.source===window.parent,a=("undefined"!==typeof n.version&&parseInt(n.version.split(".")[0]))>=1,o=!0;return Array.isArray(t.allowedOrigins)&&(o=void 0!==t.allowedOrigins.find((function(e){return e.test(r)}))),!s&&i&&a&&o},this.logIncomingMessage=function(e){console.info("Safe Apps SDK v1: A message was received from origin ".concat(e.origin,". "),e.data)},this.onParentMessage=function(e){t.isValidMessage(e)&&(t.debugMode&&t.logIncomingMessage(e),t.handleIncomingMessage(e.data))},this.handleIncomingMessage=function(e){var r=e.id,n=t.callbacks.get(r);n&&(n(e),t.callbacks.delete(r))},this.send=function(e,r){var n=a.MessageFormatter.makeRequest(e,r);if("undefined"===typeof window)throw new Error("Window doesn't exist");return window.parent.postMessage(n,"*"),new Promise((function(e){t.callbacks.set(n.id,(function(t){e(t)}))}))},this.allowedOrigins=r,this.debugMode=s,window.addEventListener("message",this.onParentMessage)},i(r(769),t)},1204:function(e,t,r){"use strict";var n=r(38);Object.defineProperty(t,"__esModule",{value:!0}),t.MessageFormatter=void 0;var s=r(1958),i=r(1205),a=function e(){n(this,e)};t.MessageFormatter=a,a.makeRequest=function(e,t){return{id:s.generateRequestId(),method:e,params:t,env:{sdkVersion:i.getSDKVersion()}}},a.makeResponse=function(e,t,r){return{id:e,success:!0,version:r,data:t}},a.makeErrorResponse=function(e,t,r){return{id:e,success:!1,error:t,version:r}}},1205:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getSDKVersion=void 0;var s=n(r(1959));t.getSDKVersion=function(){return s.default.version.slice(0,5)}},1958:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateRequestId=void 0;var n=function(e){return e.toString(16).padStart(2,"0")};t.generateRequestId=function(){return"undefined"!==typeof window?function(e){var t=new Uint8Array((e||40)/2);return window.crypto.getRandomValues(t),Array.from(t,n).join("")}(10):(new Date).getTime().toString(36)}},1959:function(e){e.exports=JSON.parse('{"name":"@gnosis.pm/safe-apps-sdk","version":"3.0.0","description":"SDK developed to integrate third-party apps with Safe-Multisig app.","main":"dist/src/index.js","typings":"dist/src/index.d.ts","_files":["dist/**/*","README.md"],"keywords":["Gnosis","sdk","apps"],"scripts":{"test":"jest","format-dist":"sed -i \'\' \'s/\\"files\\":/\\"_files\\":/\' dist/package.json","build":"yarn rimraf dist && tsc && yarn format-dist","format":"prettier --write \\"src/**/*.ts\\"","lint":"tslint -p tsconfig.json","prepublishOnly":"yarn build"},"author":"Gnosis (https://gnosis.io)","license":"MIT","dependencies":{},"devDependencies":{"@types/jest":"^26.0.23","@types/node":"^15.3.0","husky":"^6.0.0","lint-staged":"^11.0.0","prettier":"^2.2.1","rimraf":"^3.0.2"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"src/**/!(*test).ts":["yarn lint","prettier --write"]},"repository":{"type":"git","url":"git+https://github.com/gnosis/safe-apps-sdk.git"},"bugs":{"url":"https://github.com/gnosis/safe-apps-sdk/issues"},"homepage":"https://github.com/gnosis/safe-apps-sdk#readme"}')},1960:function(e,t,r){"use strict";var n=r(9),s=r(101),i=r(38),a=r(39);Object.defineProperty(t,"__esModule",{value:!0}),t.TXs=void 0;var o=r(769),u=function(){function e(t){i(this,e),this.txServiceUrl=null,this.communicator=t}return a(e,[{key:"getBySafeTxHash",value:function(){var e=s(n.mark((function e(t){var r,s,i,a;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.txServiceUrl){e.next=2;break}throw new Error("ENV information hasn't been synced yet or there was an error during the process");case 2:return r=new AbortController,s={method:"GET",signal:r.signal},setTimeout((function(){return r.abort()}),1e4),e.prev=5,e.next=8,fetch("".concat(this.txServiceUrl,"/transactions/").concat(t),s);case 8:if(200===(i=e.sent).status){e.next=11;break}throw new Error("Failed to get the transaction. Either safeTxHash is incorrect or transaction hasn't been indexed by the service yet");case 11:return e.next=13,i.json();case 13:return a=e.sent,e.abrupt("return",a);case 17:throw e.prev=17,e.t0=e.catch(5),e.t0;case 20:case"end":return e.stop()}}),e,this,[[5,17]])})));return function(t){return e.apply(this,arguments)}}()},{key:"send",value:function(){var e=s(n.mark((function e(t){var r,s,i,a;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.txs,s=t.params,r&&r.length){e.next=3;break}throw new Error("No transactions were passed");case 3:return i={txs:r,params:s},e.next=6,this.communicator.send(o.METHODS.sendTransactions,i);case 6:if((a=e.sent).success){e.next=9;break}throw new Error(a.error);case 9:return e.abrupt("return",a.data);case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"setTxServiceUrl",value:function(e){this.txServiceUrl=e}}]),e}();t.TXs=u},1961:function(e,t,r){"use strict";var n=r(9),s=r(101),i=r(38),a=r(39);Object.defineProperty(t,"__esModule",{value:!0}),t.Eth=void 0;var o=r(1962),u=r(769),c={defaultBlockParam:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"latest";return e},returnFullTxObjectParam:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e},blockNumberToHex:function(e){return Number.isInteger(e)?"0x".concat(e.toString(16)):e}},l=function(){function e(t){i(this,e),this.communicator=t,this.call=this.buildRequest({call:o.RPC_CALLS.eth_call,formatters:[null,c.defaultBlockParam]}),this.getBalance=this.buildRequest({call:o.RPC_CALLS.eth_getBalance,formatters:[null,c.defaultBlockParam]}),this.getCode=this.buildRequest({call:o.RPC_CALLS.eth_getCode,formatters:[null,c.defaultBlockParam]}),this.getStorageAt=this.buildRequest({call:o.RPC_CALLS.eth_getStorageAt,formatters:[null,c.blockNumberToHex,c.defaultBlockParam]}),this.getPastLogs=this.buildRequest({call:o.RPC_CALLS.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:o.RPC_CALLS.eth_getBlockByHash,formatters:[null,c.returnFullTxObjectParam]}),this.getBlockByNumber=this.buildRequest({call:o.RPC_CALLS.eth_getBlockByNumber,formatters:[c.blockNumberToHex,c.returnFullTxObjectParam]}),this.getTransactionByHash=this.buildRequest({call:o.RPC_CALLS.eth_getTransactionByHash}),this.getTransactionReceipt=this.buildRequest({call:o.RPC_CALLS.eth_getTransactionReceipt})}return a(e,[{key:"buildRequest",value:function(e){var t=this,r=e.call,i=e.formatters;return function(){var e=s(n.mark((function e(s){var a,o;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i&&Array.isArray(s)&&i.forEach((function(e,t){e&&(s[t]=e(s[t]))})),a={call:r,params:s},e.next=4,t.communicator.send(u.METHODS.rpcCall,a);case 4:if((o=e.sent).success){e.next=7;break}throw new Error(o.error);case 7:return e.abrupt("return",o.data);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}}]),e}();t.Eth=l},1962:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RPC_CALLS=void 0,t.RPC_CALLS={eth_call:"eth_call",eth_getLogs:"eth_getLogs",eth_getBalance:"eth_getBalance",eth_getCode:"eth_getCode",eth_getBlockByHash:"eth_getBlockByHash",eth_getBlockByNumber:"eth_getBlockByNumber",eth_getStorageAt:"eth_getStorageAt",eth_getTransactionByHash:"eth_getTransactionByHash",eth_getTransactionReceipt:"eth_getTransactionReceipt"}},1963:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsChangeMethods=t.TransferMethods=t.Operation=void 0;r(769);!function(e){e[e.CALL=0]="CALL",e[e.DELEGATE_CALL=1]="DELEGATE_CALL",e[e.CREATE=2]="CREATE"}(t.Operation||(t.Operation={})),function(e){e.TRANSFER="transfer",e.TRANSFER_FROM="transferFrom",e.SAFE_TRANSFER_FROM="safeTransferFrom"}(t.TransferMethods||(t.TransferMethods={})),function(e){e.SETUP="setup",e.SET_FALLBACK_HANDLER="setFallbackHandler",e.ADD_OWNER_WITH_THRESHOLD="addOwnerWithThreshold",e.REMOVE_OWNER="removeOwner",e.REMOVE_OWNER_WITH_THRESHOLD="removeOwnerWithThreshold",e.SWAP_OWNER="swapOwner",e.CHANGE_THRESHOLD="changeThreshold",e.CHANGE_MASTER_COPY="changeMasterCopy",e.ENABLE_MODULE="enableModule",e.DISABLE_MODULE="disableModule",e.EXEC_TRANSACTION_FROM_MODULE="execTransactionFromModule",e.APPROVE_HASH="approveHash",e.EXEC_TRANSACTION="execTransaction"}(t.SettingsChangeMethods||(t.SettingsChangeMethods={}))},769:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.METHODS=void 0,t.METHODS={getEnvInfo:"getEnvInfo",sendTransactions:"sendTransactions",rpcCall:"rpcCall",getSafeInfo:"getSafeInfo"}}}]); \ No newline at end of file diff --git a/WebGLTemplates/Web3GL-2019/static/js/14.18e7daf2.chunk.js b/WebGLTemplates/Web3GL-2019/static/js/14.18e7daf2.chunk.js deleted file mode 100644 index 46d9d00c0..000000000 --- a/WebGLTemplates/Web3GL-2019/static/js/14.18e7daf2.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(this.webpackJsonpweb3gl=this.webpackJsonpweb3gl||[]).push([[14],{1088:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getSDKVersion=void 0;var a=i(r(1089));t.default=a.default,s(r(1089),t),s(r(1780),t),s(r(713),t),s(r(1091),t);var o=r(1092);Object.defineProperty(t,"getSDKVersion",{enumerable:!0,get:function(){return o.getSDKVersion}})},1089:function(e,t,r){"use strict";var n=r(2),s=r(97),i=r(41),a=r(42),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var u=r(1090),c=o(r(1090)),l=r(1777),d=r(1778),h=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(i(this,e),"undefined"===typeof window)throw new Error("Error initializing the sdk: window is undefined");var r=t.whitelistedDomains,n=void 0===r?null:r,s=t.debug,a=void 0!==s&&s;this.communicator=new c.default(n,a),this.eth=new d.Eth(this.communicator),this.txs=new l.TXs(this.communicator),this.bootstrap()}return a(e,[{key:"bootstrap",value:function(){var e=s(n.mark((function e(){var t,r;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getEnvInfo();case 2:t=e.sent,r=t.txServiceUrl,this.txs.setTxServiceUrl(r);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getEnvInfo",value:function(){var e=s(n.mark((function e(){var t;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.communicator.send(u.METHODS.getEnvInfo,void 0);case 2:if((t=e.sent).success){e.next=5;break}throw new Error(t.error);case 5:return e.abrupt("return",t.data);case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getSafeInfo",value:function(){var e=s(n.mark((function e(){var t;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.communicator.send(u.METHODS.getSafeInfo,void 0);case 2:if((t=e.sent).success){e.next=5;break}throw new Error(t.error);case 5:return e.abrupt("return",t.data);case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}();t.default=h},1090:function(e,t,r){"use strict";var n=r(41),s=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0});var a=r(1091);t.default=function e(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,s=arguments.length>1&&void 0!==arguments[1]&&arguments[1];n(this,e),this.allowedOrigins=null,this.callbacks=new Map,this.debugMode=!1,this.isValidMessage=function(e){var r=e.origin,n=e.data,s=!n,i=e.source===window.parent,a=("undefined"!==typeof n.version&&parseInt(n.version.split(".")[0]))>=1,o=!0;return Array.isArray(t.allowedOrigins)&&(o=void 0!==t.allowedOrigins.find((function(e){return e.test(r)}))),!s&&i&&a&&o},this.logIncomingMessage=function(e){console.info("Safe Apps SDK v1: A message was received from origin ".concat(e.origin,". "),e.data)},this.onParentMessage=function(e){t.isValidMessage(e)&&(t.debugMode&&t.logIncomingMessage(e),t.handleIncomingMessage(e.data))},this.handleIncomingMessage=function(e){var r=e.id,n=t.callbacks.get(r);n&&(n(e),t.callbacks.delete(r))},this.send=function(e,r){var n=a.MessageFormatter.makeRequest(e,r);if("undefined"===typeof window)throw new Error("Window doesn't exist");return window.parent.postMessage(n,"*"),new Promise((function(e){t.callbacks.set(n.id,(function(t){e(t)}))}))},this.allowedOrigins=r,this.debugMode=s,window.addEventListener("message",this.onParentMessage)},i(r(713),t)},1091:function(e,t,r){"use strict";var n=r(41);Object.defineProperty(t,"__esModule",{value:!0}),t.MessageFormatter=void 0;var s=r(1775),i=r(1092),a=function e(){n(this,e)};t.MessageFormatter=a,a.makeRequest=function(e,t){return{id:s.generateRequestId(),method:e,params:t,env:{sdkVersion:i.getSDKVersion()}}},a.makeResponse=function(e,t,r){return{id:e,success:!0,version:r,data:t}},a.makeErrorResponse=function(e,t,r){return{id:e,success:!1,error:t,version:r}}},1092:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getSDKVersion=void 0;var s=n(r(1776));t.getSDKVersion=function(){return s.default.version.slice(0,5)}},1775:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateRequestId=void 0;var n=function(e){return e.toString(16).padStart(2,"0")};t.generateRequestId=function(){return"undefined"!==typeof window?function(e){var t=new Uint8Array((e||40)/2);return window.crypto.getRandomValues(t),Array.from(t,n).join("")}(10):(new Date).getTime().toString(36)}},1776:function(e){e.exports=JSON.parse('{"name":"@gnosis.pm/safe-apps-sdk","version":"3.0.0","description":"SDK developed to integrate third-party apps with Safe-Multisig app.","main":"dist/src/index.js","typings":"dist/src/index.d.ts","_files":["dist/**/*","README.md"],"keywords":["Gnosis","sdk","apps"],"scripts":{"test":"jest","format-dist":"sed -i \'\' \'s/\\"files\\":/\\"_files\\":/\' dist/package.json","build":"yarn rimraf dist && tsc && yarn format-dist","format":"prettier --write \\"src/**/*.ts\\"","lint":"tslint -p tsconfig.json","prepublishOnly":"yarn build"},"author":"Gnosis (https://gnosis.io)","license":"MIT","dependencies":{},"devDependencies":{"@types/jest":"^26.0.23","@types/node":"^15.3.0","husky":"^6.0.0","lint-staged":"^11.0.0","prettier":"^2.2.1","rimraf":"^3.0.2"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"src/**/!(*test).ts":["yarn lint","prettier --write"]},"repository":{"type":"git","url":"git+https://github.com/gnosis/safe-apps-sdk.git"},"bugs":{"url":"https://github.com/gnosis/safe-apps-sdk/issues"},"homepage":"https://github.com/gnosis/safe-apps-sdk#readme"}')},1777:function(e,t,r){"use strict";var n=r(2),s=r(97),i=r(41),a=r(42);Object.defineProperty(t,"__esModule",{value:!0}),t.TXs=void 0;var o=r(713),u=function(){function e(t){i(this,e),this.txServiceUrl=null,this.communicator=t}return a(e,[{key:"getBySafeTxHash",value:function(){var e=s(n.mark((function e(t){var r,s,i,a;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.txServiceUrl){e.next=2;break}throw new Error("ENV information hasn't been synced yet or there was an error during the process");case 2:return r=new AbortController,s={method:"GET",signal:r.signal},setTimeout((function(){return r.abort()}),1e4),e.prev=5,e.next=8,fetch("".concat(this.txServiceUrl,"/transactions/").concat(t),s);case 8:if(200===(i=e.sent).status){e.next=11;break}throw new Error("Failed to get the transaction. Either safeTxHash is incorrect or transaction hasn't been indexed by the service yet");case 11:return e.next=13,i.json();case 13:return a=e.sent,e.abrupt("return",a);case 17:throw e.prev=17,e.t0=e.catch(5),e.t0;case 20:case"end":return e.stop()}}),e,this,[[5,17]])})));return function(t){return e.apply(this,arguments)}}()},{key:"send",value:function(){var e=s(n.mark((function e(t){var r,s,i,a;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.txs,s=t.params,r&&r.length){e.next=3;break}throw new Error("No transactions were passed");case 3:return i={txs:r,params:s},e.next=6,this.communicator.send(o.METHODS.sendTransactions,i);case 6:if((a=e.sent).success){e.next=9;break}throw new Error(a.error);case 9:return e.abrupt("return",a.data);case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"setTxServiceUrl",value:function(e){this.txServiceUrl=e}}]),e}();t.TXs=u},1778:function(e,t,r){"use strict";var n=r(2),s=r(97),i=r(41),a=r(42);Object.defineProperty(t,"__esModule",{value:!0}),t.Eth=void 0;var o=r(1779),u=r(713),c={defaultBlockParam:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"latest";return e},returnFullTxObjectParam:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e},blockNumberToHex:function(e){return Number.isInteger(e)?"0x".concat(e.toString(16)):e}},l=function(){function e(t){i(this,e),this.communicator=t,this.call=this.buildRequest({call:o.RPC_CALLS.eth_call,formatters:[null,c.defaultBlockParam]}),this.getBalance=this.buildRequest({call:o.RPC_CALLS.eth_getBalance,formatters:[null,c.defaultBlockParam]}),this.getCode=this.buildRequest({call:o.RPC_CALLS.eth_getCode,formatters:[null,c.defaultBlockParam]}),this.getStorageAt=this.buildRequest({call:o.RPC_CALLS.eth_getStorageAt,formatters:[null,c.blockNumberToHex,c.defaultBlockParam]}),this.getPastLogs=this.buildRequest({call:o.RPC_CALLS.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:o.RPC_CALLS.eth_getBlockByHash,formatters:[null,c.returnFullTxObjectParam]}),this.getBlockByNumber=this.buildRequest({call:o.RPC_CALLS.eth_getBlockByNumber,formatters:[c.blockNumberToHex,c.returnFullTxObjectParam]}),this.getTransactionByHash=this.buildRequest({call:o.RPC_CALLS.eth_getTransactionByHash}),this.getTransactionReceipt=this.buildRequest({call:o.RPC_CALLS.eth_getTransactionReceipt})}return a(e,[{key:"buildRequest",value:function(e){var t=this,r=e.call,i=e.formatters;return function(){var e=s(n.mark((function e(s){var a,o;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i&&Array.isArray(s)&&i.forEach((function(e,t){e&&(s[t]=e(s[t]))})),a={call:r,params:s},e.next=4,t.communicator.send(u.METHODS.rpcCall,a);case 4:if((o=e.sent).success){e.next=7;break}throw new Error(o.error);case 7:return e.abrupt("return",o.data);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}}]),e}();t.Eth=l},1779:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RPC_CALLS=void 0,t.RPC_CALLS={eth_call:"eth_call",eth_getLogs:"eth_getLogs",eth_getBalance:"eth_getBalance",eth_getCode:"eth_getCode",eth_getBlockByHash:"eth_getBlockByHash",eth_getBlockByNumber:"eth_getBlockByNumber",eth_getStorageAt:"eth_getStorageAt",eth_getTransactionByHash:"eth_getTransactionByHash",eth_getTransactionReceipt:"eth_getTransactionReceipt"}},1780:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsChangeMethods=t.TransferMethods=t.Operation=void 0;r(713);!function(e){e[e.CALL=0]="CALL",e[e.DELEGATE_CALL=1]="DELEGATE_CALL",e[e.CREATE=2]="CREATE"}(t.Operation||(t.Operation={})),function(e){e.TRANSFER="transfer",e.TRANSFER_FROM="transferFrom",e.SAFE_TRANSFER_FROM="safeTransferFrom"}(t.TransferMethods||(t.TransferMethods={})),function(e){e.SETUP="setup",e.SET_FALLBACK_HANDLER="setFallbackHandler",e.ADD_OWNER_WITH_THRESHOLD="addOwnerWithThreshold",e.REMOVE_OWNER="removeOwner",e.REMOVE_OWNER_WITH_THRESHOLD="removeOwnerWithThreshold",e.SWAP_OWNER="swapOwner",e.CHANGE_THRESHOLD="changeThreshold",e.CHANGE_MASTER_COPY="changeMasterCopy",e.ENABLE_MODULE="enableModule",e.DISABLE_MODULE="disableModule",e.EXEC_TRANSACTION_FROM_MODULE="execTransactionFromModule",e.APPROVE_HASH="approveHash",e.EXEC_TRANSACTION="execTransaction"}(t.SettingsChangeMethods||(t.SettingsChangeMethods={}))},713:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.METHODS=void 0,t.METHODS={getEnvInfo:"getEnvInfo",sendTransactions:"sendTransactions",rpcCall:"rpcCall",getSafeInfo:"getSafeInfo"}}}]); \ No newline at end of file diff --git a/WebGLTemplates/Web3GL-2019/static/js/14.7d010913.chunk.js b/WebGLTemplates/Web3GL-2019/static/js/14.7d010913.chunk.js new file mode 100644 index 000000000..3408b1059 --- /dev/null +++ b/WebGLTemplates/Web3GL-2019/static/js/14.7d010913.chunk.js @@ -0,0 +1 @@ +(this.webpackJsonpweb3gl=this.webpackJsonpweb3gl||[]).push([[14],{1036:function(r,e,n){var t=n(682),f=n(871);function o(r){var e=new Error("Expect argument to be non-empty array");if("object"!==typeof r||!r.length)throw e;var n=r.map((function(r){return"bytes"===r.type?t.toBuffer(r.value):r.value})),o=r.map((function(r){return r.type})),i=r.map((function(r){if(!r.name)throw e;return r.type+" "+r.name}));return f.soliditySHA3(["bytes32","bytes32"],[f.soliditySHA3(new Array(r.length).fill("string"),i),f.soliditySHA3(o,n)])}function i(r,e){var n=t.toBuffer(e),f=t.fromRpcSig(n);return t.ecrecover(r,f.v,f.r,f.s)}function u(r){var e=t.toBuffer(r.data);return i(t.hashPersonalMessage(e),r.sig)}function a(r,e){for(var n=""+r;n.length=0)throw new Error("couldn't export to DER format");var u=f.g.mul(n);return i(u.getX(),u.getY(),e)},e.privateKeyModInverse=function(e){var n=new t(e);if(n.ucmp(o.n)>=0||n.isZero())throw new Error("private key range is invalid");return n.invm(o.n).toArrayLike(r,"be",32)},e.signatureImport=function(e){var n=new t(e.r);n.ucmp(o.n)>=0&&(n=new t(0));var f=new t(e.s);return f.ucmp(o.n)>=0&&(f=new t(0)),r.concat([n.toArrayLike(r,"be",32),f.toArrayLike(r,"be",32)])},e.ecdhUnsafe=function(r,e,n){var u=f.keyFromPublic(r),a=new t(e);if(a.ucmp(o.n)>=0||a.isZero())throw new Error("scalar was invalid (zero or overflow)");var c=u.pub.mul(a);return i(c.getX(),c.getY(),n)};var i=function(e,n,t){var f=void 0;return t?((f=r.alloc(33))[0]=n.isOdd()?3:2,e.toArrayLike(r,"be",32).copy(f,1)):((f=r.alloc(65))[0]=4,e.toArrayLike(r,"be",32).copy(f,1),n.toArrayLike(r,"be",32).copy(f,33)),f}}).call(this,n(3).Buffer)},1324:function(r,e,n){"use strict";(function(r){var n=r.from([48,129,211,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,133,48,129,130,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,33,2,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,36,3,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),t=r.from([48,130,1,19,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,165,48,129,162,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,65,4,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,72,58,218,119,38,163,196,101,93,164,251,252,14,17,8,168,253,23,180,72,166,133,84,25,156,71,208,143,251,16,212,184,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,68,3,66,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);e.privateKeyExport=function(e,f,o){var i=r.from(o?n:t);return e.copy(i,o?8:9),f.copy(i,o?181:214),i},e.privateKeyImport=function(r){var e=r.length,n=0;if(e2)return null;if(e<(n+=1)+t)return null;var f=r[n+t-1]|(t>1?r[n+t-2]<<8:0);return e<(n+=t)+f||e32||ef)return null;if(2!==e[o++])return null;var u=e[o++];if(128&u){if(o+(i=u-128)>f)return null;for(;i>0&&0===e[o];o+=1,i-=1);for(u=0;i>0;o+=1,i-=1)u=(u<<8)+e[o]}if(u>f-o)return null;var a=o;if(o+=u,2!==e[o++])return null;var c=e[o++];if(128&c){if(o+(i=c-128)>f)return null;for(;i>0&&0===e[o];o+=1,i-=1);for(c=0;i>0;o+=1,i-=1)c=(c<<8)+e[o]}if(c>f-o)return null;var l=o;for(o+=c;u>0&&0===e[a];u-=1,a+=1);if(u>32)return null;var s=e.slice(a,a+u);for(s.copy(n,32-s.length);c>0&&0===e[l];c-=1,l+=1);if(c>32)return null;var d=e.slice(l,l+c);return d.copy(t,32-d.length),{r:n,s:t}}}).call(this,n(3).Buffer)},641:function(r,e,n){var t=n(252),f=n(146),o=n(658),i=n(256);function u(e){var n="function"===typeof Map?new Map:void 0;return r.exports=u=function(r){if(null===r||!o(r))return r;if("function"!==typeof r)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof n){if(n.has(r))return n.get(r);n.set(r,e)}function e(){return i(r,arguments,t(this).constructor)}return e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),f(e,r)},u(e)}r.exports=u},658:function(r,e){r.exports=function(r){return-1!==Function.toString.call(r).indexOf("[native code]")}},682:function(r,e,n){"use strict";var t="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"===typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},f=n(80),o=f.keccak224,i=f.keccak384,u=f.keccak256,a=f.keccak512,c=n(1322),l=n(21),s=n(17),d=n(6),p=n(30),g=n(10).Buffer;Object.assign(e,n(636)),e.MAX_INTEGER=new d("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),e.TWO_POW256=new d("10000000000000000000000000000000000000000000000000000000000000000",16),e.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",e.SHA3_NULL_S=e.KECCAK256_NULL_S,e.KECCAK256_NULL=g.from(e.KECCAK256_NULL_S,"hex"),e.SHA3_NULL=e.KECCAK256_NULL,e.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",e.SHA3_RLP_ARRAY_S=e.KECCAK256_RLP_ARRAY_S,e.KECCAK256_RLP_ARRAY=g.from(e.KECCAK256_RLP_ARRAY_S,"hex"),e.SHA3_RLP_ARRAY=e.KECCAK256_RLP_ARRAY,e.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",e.SHA3_RLP_S=e.KECCAK256_RLP_S,e.KECCAK256_RLP=g.from(e.KECCAK256_RLP_S,"hex"),e.SHA3_RLP=e.KECCAK256_RLP,e.BN=d,e.rlp=s,e.secp256k1=c,e.zeros=function(r){return g.allocUnsafe(r).fill(0)},e.zeroAddress=function(){var r=e.zeros(20);return e.bufferToHex(r)},e.setLengthLeft=e.setLength=function(r,n,t){var f=e.zeros(n);return r=e.toBuffer(r),t?r.length0&&"0"===n.toString();)n=(r=r.slice(1))[0];return r},e.toBuffer=function(r){if(!g.isBuffer(r))if(Array.isArray(r))r=g.from(r);else if("string"===typeof r)r=e.isHexString(r)?g.from(e.padToEven(e.stripHexPrefix(r)),"hex"):g.from(r);else if("number"===typeof r)r=e.intToBuffer(r);else if(null===r||void 0===r)r=g.allocUnsafe(0);else if(d.isBN(r))r=r.toArrayLike(g);else{if(!r.toArray)throw new Error("invalid type");r=g.from(r.toArray())}return r},e.bufferToInt=function(r){return new d(e.toBuffer(r)).toNumber()},e.bufferToHex=function(r){return"0x"+(r=e.toBuffer(r)).toString("hex")},e.fromSigned=function(r){return new d(r).fromTwos(256)},e.toUnsigned=function(r){return g.from(r.toTwos(256).toArray())},e.keccak=function(r,n){switch(r=e.toBuffer(r),n||(n=256),n){case 224:return o(r);case 256:return u(r);case 384:return i(r);case 512:return a(r);default:throw new Error("Invald algorithm: keccak"+n)}},e.keccak256=function(r){return e.keccak(r)},e.sha3=e.keccak,e.sha256=function(r){return r=e.toBuffer(r),p("sha256").update(r).digest()},e.ripemd160=function(r,n){r=e.toBuffer(r);var t=p("rmd160").update(r).digest();return!0===n?e.setLength(t,32):t},e.rlphash=function(r){return e.keccak(s.encode(r))},e.isValidPrivate=function(r){return c.privateKeyVerify(r)},e.isValidPublic=function(r,e){return 64===r.length?c.publicKeyVerify(g.concat([g.from([4]),r])):!!e&&c.publicKeyVerify(r)},e.pubToAddress=e.publicToAddress=function(r,n){return r=e.toBuffer(r),n&&64!==r.length&&(r=c.publicKeyConvert(r,!1).slice(1)),l(64===r.length),e.keccak(r).slice(-20)};var y=e.privateToPublic=function(r){return r=e.toBuffer(r),c.publicKeyCreate(r,!1).slice(1)};e.importPublic=function(r){return 64!==(r=e.toBuffer(r)).length&&(r=c.publicKeyConvert(r,!1).slice(1)),r},e.ecsign=function(r,e){var n=c.sign(r,e),t={};return t.r=n.signature.slice(0,32),t.s=n.signature.slice(32,64),t.v=n.recovery+27,t},e.hashPersonalMessage=function(r){var n=e.toBuffer("\x19Ethereum Signed Message:\n"+r.length.toString());return e.keccak(g.concat([n,r]))},e.ecrecover=function(r,n,t,f){var o=g.concat([e.setLength(t,32),e.setLength(f,32)],64),i=n-27;if(0!==i&&1!==i)throw new Error("Invalid signature v value");var u=c.recover(r,o,i);return c.publicKeyConvert(u,!1).slice(1)},e.toRpcSig=function(r,n,t){if(27!==r&&28!==r)throw new Error("Invalid recovery id");return e.bufferToHex(g.concat([e.setLengthLeft(n,32),e.setLengthLeft(t,32),e.toBuffer(r-27)]))},e.fromRpcSig=function(r){if(65!==(r=e.toBuffer(r)).length)throw new Error("Invalid signature length");var n=r[64];return n<27&&(n+=27),{v:n,r:r.slice(0,32),s:r.slice(32,64)}},e.privateToAddress=function(r){return e.publicToAddress(y(r))},e.isValidAddress=function(r){return/^0x[0-9a-fA-F]{40}$/.test(r)},e.isZeroAddress=function(r){return e.zeroAddress()===e.addHexPrefix(r)},e.toChecksumAddress=function(r){r=e.stripHexPrefix(r).toLowerCase();for(var n=e.keccak(r).toString("hex"),t="0x",f=0;f=8?t+=r[f].toUpperCase():t+=r[f];return t},e.isValidChecksumAddress=function(r){return e.isValidAddress(r)&&e.toChecksumAddress(r)===r},e.generateAddress=function(r,n){return r=e.toBuffer(r),n=(n=new d(n)).isZero()?null:g.from(n.toArray()),e.rlphash([r,n]).slice(-20)},e.isPrecompiled=function(r){var n=e.unpad(r);return 1===n.length&&n[0]>=1&&n[0]<=8},e.addHexPrefix=function(r){return"string"!==typeof r||e.isHexPrefixed(r)?r:"0x"+r},e.isValidSignature=function(r,e,n,t){var f=new d("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),o=new d("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);return 32===e.length&&32===n.length&&((27===r||28===r)&&(e=new d(e),n=new d(n),!(e.isZero()||e.gt(o)||n.isZero()||n.gt(o))&&(!1!==t||1!==new d(n).cmp(f))))},e.baToJSON=function(r){if(g.isBuffer(r))return"0x"+r.toString("hex");if(r instanceof Array){for(var n=[],t=0;t=f.length,"The field "+n.name+" must not have more "+n.length+" bytes")):n.allowZero&&0===f.length||!n.length||l(n.length===f.length,"The field "+n.name+" must have byte length of "+n.length),r.raw[t]=f}r._fields.push(n.name),Object.defineProperty(r,n.name,{enumerable:!0,configurable:!0,get:f,set:o}),n.default&&(r[n.name]=n.default),n.alias&&Object.defineProperty(r,n.alias,{enumerable:!1,configurable:!0,set:o,get:f})})),f)if("string"===typeof f&&(f=g.from(e.stripHexPrefix(f),"hex")),g.isBuffer(f)&&(f=s.decode(f)),Array.isArray(f)){if(f.length>r._fields.length)throw new Error("wrong number of fields in data");f.forEach((function(n,t){r[r._fields[t]]=e.toBuffer(n)}))}else{if("object"!==("undefined"===typeof f?"undefined":t(f)))throw new Error("invalid data");var o=Object.keys(f);n.forEach((function(e){-1!==o.indexOf(e.name)&&(r[e.name]=f[e.name]),-1!==o.indexOf(e.alias)&&(r[e.alias]=f[e.alias])}))}}}}]); \ No newline at end of file diff --git a/WebGLTemplates/Web3GL-2019/static/js/16.b5aec44f.chunk.js b/WebGLTemplates/Web3GL-2019/static/js/15.8f2cca70.chunk.js similarity index 76% rename from WebGLTemplates/Web3GL-2019/static/js/16.b5aec44f.chunk.js rename to WebGLTemplates/Web3GL-2019/static/js/15.8f2cca70.chunk.js index f93364dfa..df718c6cc 100644 --- a/WebGLTemplates/Web3GL-2019/static/js/16.b5aec44f.chunk.js +++ b/WebGLTemplates/Web3GL-2019/static/js/15.8f2cca70.chunk.js @@ -1 +1 @@ -(this.webpackJsonpweb3gl=this.webpackJsonpweb3gl||[]).push([[16,19,69,82],{749:function(e,r,i){"use strict";i.r(r),i.d(r,"generateAddresses",(function(){return d})),i.d(r,"isValidPath",(function(){return o}));var n=i(693),t=i(769),u=i.n(t),s=i(8),a=n.publicToAddress,c=n.toChecksumAddress;function d(e,r){var i=e.publicKey,n=e.chainCode,t=e.path,d=new u.a;d.publicKey=new s.Buffer(i,"hex"),d.chainCode=new s.Buffer(n,"hex");for(var o=[],f=r;f<5+r;f++){var h=d.deriveChild(f),l=a(h.publicKey,!0).toString("hex");o.push({dPath:"".concat(t,"/").concat(f),address:c("0x".concat(l))})}return o}function o(e){var r=e.split("/");if("m"!==r[0])return!1;if("44'"!==r[1])return!1;if(!["60'","1'","73799'","246'"].includes(r[2]))return!1;if(void 0===r[3]||"0'"===r[3])return!0;var i=Number(r[3].slice(0,-1));if(isNaN(i)||i<0||"'"!==r[3].slice(-1))return!1;if(void 0===r[4])return!0;var n=Number(r[4]);if(isNaN(n)||n<0)return!1;if(void 0===r[5])return!0;var t=Number(r[5]);return!(isNaN(t)||t<0)}},789:function(e,r){}}]); \ No newline at end of file +(this.webpackJsonpweb3gl=this.webpackJsonpweb3gl||[]).push([[15,17,75,87],{804:function(e,r,i){"use strict";i.r(r),i.d(r,"generateAddresses",(function(){return d})),i.d(r,"isValidPath",(function(){return o}));var n=i(755),t=i(745),u=i.n(t),s=i(3),a=n.publicToAddress,c=n.toChecksumAddress;function d(e,r){var i=e.publicKey,n=e.chainCode,t=e.path,d=new u.a;d.publicKey=new s.Buffer(i,"hex"),d.chainCode=new s.Buffer(n,"hex");for(var o=[],f=r;f<5+r;f++){var h=d.deriveChild(f),l=a(h.publicKey,!0).toString("hex");o.push({dPath:"".concat(t,"/").concat(f),address:c("0x".concat(l))})}return o}function o(e){var r=e.split("/");if("m"!==r[0])return!1;if("44'"!==r[1])return!1;if(!["60'","1'","73799'","246'"].includes(r[2]))return!1;if(void 0===r[3]||"0'"===r[3])return!0;var i=Number(r[3].slice(0,-1));if(isNaN(i)||i<0||"'"!==r[3].slice(-1))return!1;if(void 0===r[4])return!0;var n=Number(r[4]);if(isNaN(n)||n<0)return!1;if(void 0===r[5])return!0;var t=Number(r[5]);return!(isNaN(t)||t<0)}},859:function(e,r){}}]); \ No newline at end of file diff --git a/WebGLTemplates/Web3GL-2019/static/js/15.c74025be.chunk.js b/WebGLTemplates/Web3GL-2019/static/js/15.c74025be.chunk.js deleted file mode 100644 index a56c9fb3e..000000000 --- a/WebGLTemplates/Web3GL-2019/static/js/15.c74025be.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(this.webpackJsonpweb3gl=this.webpackJsonpweb3gl||[]).push([[15],{1031:function(e,n,r){"use strict";(function(e){r.d(n,"a",(function(){return l}));var t=r(854),o=r(2),a=r.n(o),i=r(38),u=r(1),c=r(4),s=r(43),d=r.n(s),f=r(623),l=function(){function n(){var r=this;Object(u.a)(this,n),this.exchangeTimeout=3e4,this.unresponsiveTimeout=15e3,this.deviceModel=null,this._events=new d.a,this.send=function(){var n=Object(i.a)(a.a.mark((function n(t,o,i,u){var c,s,d,l,p=arguments;return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(c=p.length>4&&void 0!==p[4]?p[4]:e.alloc(0),s=p.length>5&&void 0!==p[5]?p[5]:[f.StatusCodes.OK],!(c.length>=256)){n.next=4;break}throw new f.TransportError("data.length exceed 256 bytes limit. Got: "+c.length,"DataLengthTooBig");case 4:return n.next=6,r.exchange(e.concat([e.from([t,o,i,u]),e.from([c.length]),c]));case 6:if(d=n.sent,l=d.readUInt16BE(d.length-2),s.some((function(e){return e===l}))){n.next=10;break}throw new f.TransportStatusError(l);case 10:return n.abrupt("return",d);case 11:case"end":return n.stop()}}),n)})));return function(e,r,t,o){return n.apply(this,arguments)}}(),this.exchangeBusyPromise=void 0,this.exchangeAtomicImpl=function(){var e=Object(i.a)(a.a.mark((function e(n){var t,o,i,u,c;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r.exchangeBusyPromise){e.next=2;break}throw new f.TransportRaceCondition("An action was already pending on the Ledger device. Please deny or reconnect.");case 2:return o=new Promise((function(e){t=e})),r.exchangeBusyPromise=o,i=!1,u=setTimeout((function(){i=!0,r.emit("unresponsive")}),r.unresponsiveTimeout),e.prev=6,e.next=9,n();case 9:return c=e.sent,i&&r.emit("responsive"),e.abrupt("return",c);case 12:return e.prev=12,clearTimeout(u),t&&t(),r.exchangeBusyPromise=null,e.finish(12);case 17:case"end":return e.stop()}}),e,null,[[6,,12,17]])})));return function(n){return e.apply(this,arguments)}}(),this._appAPIlock=null}return Object(c.a)(n,[{key:"exchange",value:function(e){throw new Error("exchange not implemented")}},{key:"setScrambleKey",value:function(e){}},{key:"close",value:function(){return Promise.resolve()}},{key:"on",value:function(e,n){this._events.on(e,n)}},{key:"off",value:function(e,n){this._events.removeListener(e,n)}},{key:"emit",value:function(e){for(var n,r=arguments.length,t=new Array(r>1?r-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:3e3,r=arguments.length>1?arguments[1]:void 0;return new Promise((function(t,o){var a=!1,i=e.listen({next:function(r){a=!0,i&&i.unsubscribe(),u&&clearTimeout(u),e.open(r.descriptor,n).then(t,o)},error:function(e){u&&clearTimeout(u),o(e)},complete:function(){u&&clearTimeout(u),a||o(new f.TransportError(e.ErrorMessage_NoDeviceFound,"NoDeviceFound"))}}),u=r?setTimeout((function(){i.unsubscribe(),o(new f.TransportError(e.ErrorMessage_ListenTimeout,"ListenTimeout"))}),r):null}))}}]),n}();l.isSupported=void 0,l.list=void 0,l.listen=void 0,l.open=void 0,l.ErrorMessage_ListenTimeout="No Ledger device found (timeout)",l.ErrorMessage_NoDeviceFound="No Ledger device found"}).call(this,r(8).Buffer)},623:function(e,n,r){"use strict";r.r(n),r.d(n,"AccountNameRequiredError",(function(){return d})),r.d(n,"AccountNotSupported",(function(){return f})),r.d(n,"AmountRequired",(function(){return l})),r.d(n,"BluetoothRequired",(function(){return p})),r.d(n,"BtcUnmatchedApp",(function(){return g})),r.d(n,"CantOpenDevice",(function(){return v})),r.d(n,"CantScanQRCode",(function(){return Me})),r.d(n,"CashAddrNotSupported",(function(){return E})),r.d(n,"CurrencyNotSupported",(function(){return h})),r.d(n,"DBNotReset",(function(){return Xe})),r.d(n,"DBWrongPassword",(function(){return Ye})),r.d(n,"DeviceAppVerifyNotSupported",(function(){return A})),r.d(n,"DeviceGenuineSocketEarlyClose",(function(){return T})),r.d(n,"DeviceHalted",(function(){return S})),r.d(n,"DeviceInOSUExpected",(function(){return I})),r.d(n,"DeviceNameInvalid",(function(){return C})),r.d(n,"DeviceNotGenuineError",(function(){return m})),r.d(n,"DeviceOnDashboardExpected",(function(){return N})),r.d(n,"DeviceOnDashboardUnexpected",(function(){return D})),r.d(n,"DeviceShouldStayInApp",(function(){return Ue})),r.d(n,"DeviceSocketFail",(function(){return y})),r.d(n,"DeviceSocketNoBulkStatus",(function(){return O})),r.d(n,"DisconnectedDevice",(function(){return R})),r.d(n,"DisconnectedDeviceDuringOperation",(function(){return w})),r.d(n,"ETHAddressNonEIP",(function(){return Le})),r.d(n,"EnpointConfigError",(function(){return b})),r.d(n,"EthAppPleaseEnableContractData",(function(){return U})),r.d(n,"FeeEstimationFailed",(function(){return _})),r.d(n,"FeeNotLoaded",(function(){return xe})),r.d(n,"FeeRequired",(function(){return Be})),r.d(n,"FeeTooHigh",(function(){return Ge})),r.d(n,"FirmwareNotRecognized",(function(){return k})),r.d(n,"FirmwareOrAppUpdateRequired",(function(){return Ke})),r.d(n,"GasLessThanEstimate",(function(){return ue})),r.d(n,"GenuineCheckFailed",(function(){return je})),r.d(n,"HardResetFail",(function(){return P})),r.d(n,"InvalidAddress",(function(){return L})),r.d(n,"InvalidAddressBecauseDestinationIsAlsoSource",(function(){return M})),r.d(n,"InvalidXRPTag",(function(){return F})),r.d(n,"LatestMCUInstalledError",(function(){return x})),r.d(n,"LedgerAPI4xx",(function(){return We})),r.d(n,"LedgerAPI5xx",(function(){return ze})),r.d(n,"LedgerAPIError",(function(){return G})),r.d(n,"LedgerAPIErrorWithMessage",(function(){return q})),r.d(n,"LedgerAPINotAvailable",(function(){return H})),r.d(n,"MCUNotGenuineToDashboard",(function(){return ge})),r.d(n,"ManagerAppAlreadyInstalledError",(function(){return j})),r.d(n,"ManagerAppDepInstallRequired",(function(){return z})),r.d(n,"ManagerAppDepUninstallRequired",(function(){return K})),r.d(n,"ManagerAppRelyOnBTCError",(function(){return W})),r.d(n,"ManagerDeviceLockedError",(function(){return V})),r.d(n,"ManagerFirmwareNotEnoughSpaceError",(function(){return Y})),r.d(n,"ManagerNotEnoughSpaceError",(function(){return X})),r.d(n,"ManagerUninstallBTCDep",(function(){return J})),r.d(n,"NetworkDown",(function(){return Q})),r.d(n,"NoAccessToCamera",(function(){return oe})),r.d(n,"NoAddressesFound",(function(){return Z})),r.d(n,"NoDBPathGiven",(function(){return Ve})),r.d(n,"NotEnoughBalance",(function(){return $})),r.d(n,"NotEnoughBalanceBecauseDestinationNotCreated",(function(){return te})),r.d(n,"NotEnoughBalanceInParentAccount",(function(){return ne})),r.d(n,"NotEnoughBalanceToDelegate",(function(){return ee})),r.d(n,"NotEnoughGas",(function(){return ae})),r.d(n,"NotEnoughSpendableBalance",(function(){return re})),r.d(n,"NotSupportedLegacyAddress",(function(){return ie})),r.d(n,"PairingFailed",(function(){return He})),r.d(n,"PasswordIncorrectError",(function(){return se})),r.d(n,"PasswordsDontMatchError",(function(){return ce})),r.d(n,"RecipientRequired",(function(){return ve})),r.d(n,"RecommendSubAccountsToEmpty",(function(){return de})),r.d(n,"RecommendUndelegation",(function(){return fe})),r.d(n,"StatusCodes",(function(){return Qe})),r.d(n,"SyncError",(function(){return qe})),r.d(n,"TimeoutTagged",(function(){return le})),r.d(n,"TransportError",(function(){return Je})),r.d(n,"TransportInterfaceNotAvailable",(function(){return Re})),r.d(n,"TransportOpenUserCancelled",(function(){return Oe})),r.d(n,"TransportRaceCondition",(function(){return we})),r.d(n,"TransportStatusError",(function(){return $e})),r.d(n,"TransportWebUSBGestureRequired",(function(){return be})),r.d(n,"UnavailableTezosOriginatedAccountReceive",(function(){return Ee})),r.d(n,"UnavailableTezosOriginatedAccountSend",(function(){return he})),r.d(n,"UnexpectedBootloader",(function(){return pe})),r.d(n,"UnknownMCU",(function(){return B})),r.d(n,"UpdateFetchFileFail",(function(){return Ae})),r.d(n,"UpdateIncorrectHash",(function(){return Te})),r.d(n,"UpdateIncorrectSig",(function(){return me})),r.d(n,"UpdateYourApp",(function(){return Ne})),r.d(n,"UserRefusedAddress",(function(){return Ie})),r.d(n,"UserRefusedAllowManager",(function(){return Ce})),r.d(n,"UserRefusedDeviceNameChange",(function(){return De})),r.d(n,"UserRefusedFirmwareUpdate",(function(){return Se})),r.d(n,"UserRefusedOnDevice",(function(){return ye})),r.d(n,"WebsocketConnectionError",(function(){return _e})),r.d(n,"WebsocketConnectionFailed",(function(){return ke})),r.d(n,"WrongAppForCurrency",(function(){return Fe})),r.d(n,"WrongDeviceForAccount",(function(){return Pe})),r.d(n,"addCustomErrorDeserializer",(function(){return a})),r.d(n,"createCustomErrorClass",(function(){return i})),r.d(n,"deserializeError",(function(){return u})),r.d(n,"getAltStatusMessage",(function(){return Ze})),r.d(n,"serializeError",(function(){return c}));var t={},o={},a=function(e,n){o[e]=n},i=function(e){var n=function(n,r){Object.assign(this,r),this.name=e,this.message=n||e,this.stack=(new Error).stack};return n.prototype=new Error,t[e]=n,n},u=function e(n){if("object"===typeof n&&n){try{var r=JSON.parse(n.message);r.message&&r.name&&(n=r)}catch(f){}var a=void 0;if("string"===typeof n.name){var u=n.name,c=o[u];if(c)a=c(n);else{var s="Error"===u?Error:t[u];s||(console.warn("deserializing an unknown class '"+u+"'"),s=i(u)),a=Object.create(s.prototype);try{for(var d in n)n.hasOwnProperty(d)&&(a[d]=n[d])}catch(f){}}}else a=new Error(n.message);return!a.stack&&Error.captureStackTrace&&Error.captureStackTrace(a,e),a}return new Error(String(n))},c=function(e){return e?"object"===typeof e?s(e,[]):"function"===typeof e?"[Function: "+(e.name||"anonymous")+"]":e:e};function s(e,n){var r={};n.push(e);for(var t=0,o=Object.keys(e);t=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,c=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return u=e.done,e},e:function(e){c=!0,i=e},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw i}}}}}}]); \ No newline at end of file diff --git a/WebGLTemplates/Web3GL-2019/static/js/17.941848d2.chunk.js b/WebGLTemplates/Web3GL-2019/static/js/16.751c3d1c.chunk.js similarity index 86% rename from WebGLTemplates/Web3GL-2019/static/js/17.941848d2.chunk.js rename to WebGLTemplates/Web3GL-2019/static/js/16.751c3d1c.chunk.js index f49e67561..542a1dd50 100644 --- a/WebGLTemplates/Web3GL-2019/static/js/17.941848d2.chunk.js +++ b/WebGLTemplates/Web3GL-2019/static/js/16.751c3d1c.chunk.js @@ -1 +1 @@ -(this.webpackJsonpweb3gl=this.webpackJsonpweb3gl||[]).push([[17],{261:function(e,t,n){"use strict";n.r(t),n.d(t,"checkGnosisSafeContext",(function(){return f}));var r=n(2),o=n.n(r);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t".concat(e.appName,"."):e.appUrl?"Then go to APPS and add a custom app with the URL:
".concat(e.appUrl,""):"";return{name:r||"Gnosis Safe",iconSrc:a,svg:i||'\n\n \n\n',wallet:function(){var e=s(o.a.mark((function e(t){var r,a,i,u,s,f;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.createModernProviderInterface,e.next=3,n.e(14).then(n.t.bind(null,1088,7));case 3:return e.t0=e.sent.default,a=new e.t0,e.next=7,n.e(38).then(n.t.bind(null,1781,7));case 7:return i=e.sent,u=i.SafeAppProvider,e.next=11,p(a);case 11:if(s=e.sent){e.next=14;break}return e.abrupt("return",{provider:void 0,interface:null});case 14:return f=new u(s,a),e.abrupt("return",{provider:f,interface:c(c({},r(f)),{},{connect:function(){return Promise.resolve([s.safeAddress])}})});case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),type:"sdk",link:f,installMessage:function(){return'\n

\n Click the button below to open the Gnosis Safe interface.
\n '.concat(l,"\n

\n ")},desktop:!0,mobile:!1,preferred:t}}}}]); \ No newline at end of file +(this.webpackJsonpweb3gl=this.webpackJsonpweb3gl||[]).push([[16],{274:function(e,t,n){"use strict";n.r(t),n.d(t,"checkGnosisSafeContext",(function(){return f}));var r=n(9),o=n.n(r);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t".concat(e.appName,"."):e.appUrl?"Then go to APPS and add a custom app with the URL:
".concat(e.appUrl,""):"";return{name:r||"Gnosis Safe",iconSrc:a,svg:i||'\n\n \n\n',wallet:function(){var e=s(o.a.mark((function e(t){var r,a,i,u,s,f;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.createModernProviderInterface,e.next=3,n.e(13).then(n.t.bind(null,1201,7));case 3:return e.t0=e.sent.default,a=new e.t0,e.next=7,n.e(40).then(n.t.bind(null,1964,7));case 7:return i=e.sent,u=i.SafeAppProvider,e.next=11,p(a);case 11:if(s=e.sent){e.next=14;break}return e.abrupt("return",{provider:void 0,interface:null});case 14:return f=new u(s,a),e.abrupt("return",{provider:f,interface:c(c({},r(f)),{},{connect:function(){return Promise.resolve([s.safeAddress])}})});case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),type:"sdk",link:f,installMessage:function(){return'\n

\n Click the button below to open the Gnosis Safe interface.
\n '.concat(l,"\n

\n ")},desktop:!0,mobile:!1,preferred:t}}}}]); \ No newline at end of file diff --git a/WebGLTemplates/Web3GL-2019/static/js/17.f19b983e.chunk.js b/WebGLTemplates/Web3GL-2019/static/js/17.f19b983e.chunk.js new file mode 100644 index 000000000..a442bc0a0 --- /dev/null +++ b/WebGLTemplates/Web3GL-2019/static/js/17.f19b983e.chunk.js @@ -0,0 +1 @@ +(this.webpackJsonpweb3gl=this.webpackJsonpweb3gl||[]).push([[17,87],{859:function(p,s){}}]); \ No newline at end of file diff --git a/WebGLTemplates/Web3GL-2019/static/js/18.0167a956.chunk.js b/WebGLTemplates/Web3GL-2019/static/js/18.0167a956.chunk.js deleted file mode 100644 index 5f3dcc5ca..000000000 --- a/WebGLTemplates/Web3GL-2019/static/js/18.0167a956.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(this.webpackJsonpweb3gl=this.webpackJsonpweb3gl||[]).push([[18],{1e3:function(e,p){}}]); \ No newline at end of file diff --git a/WebGLTemplates/Web3GL-2019/static/js/19.3629d7bb.chunk.js b/WebGLTemplates/Web3GL-2019/static/js/19.3629d7bb.chunk.js deleted file mode 100644 index 2b2f051af..000000000 --- a/WebGLTemplates/Web3GL-2019/static/js/19.3629d7bb.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(this.webpackJsonpweb3gl=this.webpackJsonpweb3gl||[]).push([[19,82],{789:function(p,s){}}]); \ No newline at end of file diff --git a/WebGLTemplates/Web3GL-2019/static/js/2.4f0612a8.chunk.js b/WebGLTemplates/Web3GL-2019/static/js/2.4f0612a8.chunk.js new file mode 100644 index 000000000..45435ccc8 --- /dev/null +++ b/WebGLTemplates/Web3GL-2019/static/js/2.4f0612a8.chunk.js @@ -0,0 +1 @@ +(this.webpackJsonpweb3gl=this.webpackJsonpweb3gl||[]).push([[2],{1029:function(t,r,n){var e=n(1030).Symbol;t.exports=e},1030:function(t,r,n){var e=n(1031),o="object"==typeof self&&self&&self.Object===Object&&self,u=e||o||Function("return this")();t.exports=u},1031:function(t,r,n){(function(r){var n="object"==typeof r&&r&&r.Object===Object&&r;t.exports=n}).call(this,n(15))},1032:function(t,r){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},1331:function(t,r,n){var e=n(863),o=n(791);t.exports=function(t){if(!o(t))return!1;var r=e(t);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}},1332:function(t,r,n){var e=n(1029),o=Object.prototype,u=o.hasOwnProperty,c=o.toString,i=e?e.toStringTag:void 0;t.exports=function(t){var r=u.call(t,i),n=t[i];try{t[i]=void 0;var e=!0}catch(f){}var o=c.call(t);return e&&(r?t[i]=n:delete t[i]),o}},1333:function(t,r){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},1337:function(t,r,n){var e=n(1338),o=n(1339),u=n(792),c=n(1341),i=n(1343),f=n(1344),a=Object.prototype.hasOwnProperty;t.exports=function(t,r){var n=u(t),s=!n&&o(t),p=!n&&!s&&c(t),l=!n&&!s&&!p&&f(t),y=n||s||p||l,b=y?e(t.length,String):[],v=b.length;for(var j in t)!r&&!a.call(t,j)||y&&("length"==j||p&&("offset"==j||"parent"==j)||l&&("buffer"==j||"byteLength"==j||"byteOffset"==j)||i(j,v))||b.push(j);return b}},1338:function(t,r){t.exports=function(t,r){for(var n=-1,e=Array(t);++n-1&&t%1==0&&t="0"&&e<="9";)r+=e,f();if("."===e)for(r+=".";f()&&e>="0"&&e<="9";)r+=e;if("e"===e||"E"===e)for(r+=e,f(),"-"!==e&&"+"!==e||(r+=e,f());e>="0"&&e<="9";)r+=e,f();if(t=+r,isFinite(t))return t;i("Bad number")},s=function(){var t,r,n,o="";if('"'===e)for(;f();){if('"'===e)return f(),o;if("\\"===e)if(f(),"u"===e){for(n=0,r=0;r<4&&(t=parseInt(f(),16),isFinite(t));r+=1)n=16*n+t;o+=String.fromCharCode(n)}else{if("string"!==typeof c[e])break;o+=c[e]}else o+=e}i("Bad string")},p=function(){for(;e&&e<=" ";)f()},l=function(){var t=[];if("["===e){if(f("["),p(),"]"===e)return f("]"),t;for(;e;){if(t.push(u()),p(),"]"===e)return f("]"),t;f(","),p()}}i("Bad array")},y=function(){var t,r={};if("{"===e){if(f("{"),p(),"}"===e)return f("}"),r;for(;e;){if(t=s(),p(),f(":"),Object.hasOwnProperty.call(r,t)&&i('Duplicate key "'+t+'"'),r[t]=u(),p(),"}"===e)return f("}"),r;f(","),p()}}i("Bad object")};u=function(){switch(p(),e){case"{":return y();case"[":return l();case'"':return s();case"-":return a();default:return e>="0"&&e<="9"?a():function(){switch(e){case"t":return f("t"),f("r"),f("u"),f("e"),!0;case"f":return f("f"),f("a"),f("l"),f("s"),f("e"),!1;case"n":return f("n"),f("u"),f("l"),f("l"),null}i("Unexpected '"+e+"'")}()}},t.exports=function(t,r){var c;return o=t,n=0,e=" ",c=u(),p(),e&&i("Syntax error"),"function"===typeof r?function t(n,e){var o,u,c=n[e];if(c&&"object"===typeof c)for(o in c)Object.prototype.hasOwnProperty.call(c,o)&&(void 0!==(u=t(c,o))?c[o]=u:delete c[o]);return r.call(n,e,c)}({"":c},""):c}},870:function(t,r){var n,e,o,u=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,c={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function i(t){return u.lastIndex=0,u.test(t)?'"'+t.replace(u,(function(t){var r=c[t];return"string"===typeof r?r:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+t+'"'}function f(t,r){var u,c,a,s,p,l=n,y=r[t];switch(y&&"object"===typeof y&&"function"===typeof y.toJSON&&(y=y.toJSON(t)),"function"===typeof o&&(y=o.call(r,t,y)),typeof y){case"string":return i(y);case"number":return isFinite(y)?String(y):"null";case"boolean":case"null":return String(y);case"object":if(!y)return"null";if(n+=e,p=[],"[object Array]"===Object.prototype.toString.apply(y)){for(s=y.length,u=0;u=2&&("function"==typeof arguments[1]?n.task=arguments[1]:n.n=arguments[1]);var e=n.task;if(n.task=function(){e(r.leave)},r.current+n.n-t>r.capacity)return 1===t&&(r.current--,r.firstHere=!1),r.queue.push(n);r.current+=n.n-t,n.task(r.leave),1===t&&(r.firstHere=!1)},leave:function(t){if(t=t||1,r.current-=t,r.queue.length){var n=r.queue[0];n.n+r.current>r.capacity||(r.queue.shift(),r.current+=n.n,e(n.task))}else if(r.current<0)throw new Error("leave called too many times.")},available:function(t){return t=t||1,r.current+t<=r.capacity}};return r}}()}).call(this,n(14))}}]); \ No newline at end of file diff --git a/WebGLTemplates/Web3GL-2019/static/js/2.c11416cd.chunk.js b/WebGLTemplates/Web3GL-2019/static/js/2.c11416cd.chunk.js deleted file mode 100644 index 782f657b7..000000000 --- a/WebGLTemplates/Web3GL-2019/static/js/2.c11416cd.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(this.webpackJsonpweb3gl=this.webpackJsonpweb3gl||[]).push([[2],{1170:function(t,r,n){var e=n(793),o=n(732);t.exports=function(t){if(!o(t))return!1;var r=e(t);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}},1171:function(t,r,n){var e=n(921),o=Object.prototype,u=o.hasOwnProperty,c=o.toString,i=e?e.toStringTag:void 0;t.exports=function(t){var r=u.call(t,i),n=t[i];try{t[i]=void 0;var e=!0}catch(f){}var o=c.call(t);return e&&(r?t[i]=n:delete t[i]),o}},1172:function(t,r){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},1176:function(t,r,n){var e=n(1177),o=n(1178),u=n(733),c=n(1180),i=n(1182),f=n(1183),a=Object.prototype.hasOwnProperty;t.exports=function(t,r){var n=u(t),s=!n&&o(t),p=!n&&!s&&c(t),l=!n&&!s&&!p&&f(t),y=n||s||p||l,b=y?e(t.length,String):[],v=b.length;for(var j in t)!r&&!a.call(t,j)||y&&("length"==j||p&&("offset"==j||"parent"==j)||l&&("buffer"==j||"byteLength"==j||"byteOffset"==j)||i(j,v))||b.push(j);return b}},1177:function(t,r){t.exports=function(t,r){for(var n=-1,e=Array(t);++n-1&&t%1==0&&t="0"&&e<="9";)r+=e,f();if("."===e)for(r+=".";f()&&e>="0"&&e<="9";)r+=e;if("e"===e||"E"===e)for(r+=e,f(),"-"!==e&&"+"!==e||(r+=e,f());e>="0"&&e<="9";)r+=e,f();if(t=+r,isFinite(t))return t;i("Bad number")},s=function(){var t,r,n,o="";if('"'===e)for(;f();){if('"'===e)return f(),o;if("\\"===e)if(f(),"u"===e){for(n=0,r=0;r<4&&(t=parseInt(f(),16),isFinite(t));r+=1)n=16*n+t;o+=String.fromCharCode(n)}else{if("string"!==typeof c[e])break;o+=c[e]}else o+=e}i("Bad string")},p=function(){for(;e&&e<=" ";)f()},l=function(){var t=[];if("["===e){if(f("["),p(),"]"===e)return f("]"),t;for(;e;){if(t.push(u()),p(),"]"===e)return f("]"),t;f(","),p()}}i("Bad array")},y=function(){var t,r={};if("{"===e){if(f("{"),p(),"}"===e)return f("}"),r;for(;e;){if(t=s(),p(),f(":"),Object.hasOwnProperty.call(r,t)&&i('Duplicate key "'+t+'"'),r[t]=u(),p(),"}"===e)return f("}"),r;f(","),p()}}i("Bad object")};u=function(){switch(p(),e){case"{":return y();case"[":return l();case'"':return s();case"-":return a();default:return e>="0"&&e<="9"?a():function(){switch(e){case"t":return f("t"),f("r"),f("u"),f("e"),!0;case"f":return f("f"),f("a"),f("l"),f("s"),f("e"),!1;case"n":return f("n"),f("u"),f("l"),f("l"),null}i("Unexpected '"+e+"'")}()}},t.exports=function(t,r){var c;return o=t,n=0,e=" ",c=u(),p(),e&&i("Syntax error"),"function"===typeof r?function t(n,e){var o,u,c=n[e];if(c&&"object"===typeof c)for(o in c)Object.prototype.hasOwnProperty.call(c,o)&&(void 0!==(u=t(c,o))?c[o]=u:delete c[o]);return r.call(n,e,c)}({"":c},""):c}},1202:function(t,r){var n,e,o,u=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,c={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function i(t){return u.lastIndex=0,u.test(t)?'"'+t.replace(u,(function(t){var r=c[t];return"string"===typeof r?r:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+t+'"'}function f(t,r){var u,c,a,s,p,l=n,y=r[t];switch(y&&"object"===typeof y&&"function"===typeof y.toJSON&&(y=y.toJSON(t)),"function"===typeof o&&(y=o.call(r,t,y)),typeof y){case"string":return i(y);case"number":return isFinite(y)?String(y):"null";case"boolean":case"null":return String(y);case"object":if(!y)return"null";if(n+=e,p=[],"[object Array]"===Object.prototype.toString.apply(y)){for(s=y.length,u=0;u=2&&("function"==typeof arguments[1]?n.task=arguments[1]:n.n=arguments[1]);var e=n.task;if(n.task=function(){e(r.leave)},r.current+n.n-t>r.capacity)return 1===t&&(r.current--,r.firstHere=!1),r.queue.push(n);r.current+=n.n-t,n.task(r.leave),1===t&&(r.firstHere=!1)},leave:function(t){if(t=t||1,r.current-=t,r.queue.length){var n=r.queue[0];n.n+r.current>r.capacity||(r.queue.shift(),r.current+=n.n,e(n.task))}else if(r.current<0)throw new Error("leave called too many times.")},available:function(t){return t=t||1,r.current+t<=r.capacity}};return r}}()}).call(this,n(21))},921:function(t,r,n){var e=n(922).Symbol;t.exports=e},922:function(t,r,n){var e=n(923),o="object"==typeof self&&self&&self.Object===Object&&self,u=e||o||Function("return this")();t.exports=u},923:function(t,r,n){(function(r){var n="object"==typeof r&&r&&r.Object===Object&&r;t.exports=n}).call(this,n(19))},924:function(t,r){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}}}]); \ No newline at end of file diff --git a/WebGLTemplates/Web3GL-2019/static/js/20.feb1d9c3.chunk.js b/WebGLTemplates/Web3GL-2019/static/js/20.feb1d9c3.chunk.js new file mode 100644 index 000000000..4058d8b44 --- /dev/null +++ b/WebGLTemplates/Web3GL-2019/static/js/20.feb1d9c3.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 20.feb1d9c3.chunk.js.LICENSE.txt */ +(this.webpackJsonpweb3gl=this.webpackJsonpweb3gl||[]).push([[20],[function(e,t,a){"use strict";a.d(t,"k",(function(){return i})),a.d(t,"j",(function(){return d})),a.d(t,"a",(function(){return o})),a.d(t,"b",(function(){return s})),a.d(t,"o",(function(){return b})),a.d(t,"p",(function(){return u})),a.d(t,"l",(function(){return l})),a.d(t,"i",(function(){return x})),a.d(t,"d",(function(){return p})),a.d(t,"e",(function(){return m})),a.d(t,"c",(function(){return v})),a.d(t,"g",(function(){return g})),a.d(t,"f",(function(){return y})),a.d(t,"h",(function(){return w})),a.d(t,"n",(function(){return _})),a.d(t,"m",(function(){return M}));var r=new(a(8).b)("bytes/5.5.0");function n(e){return!!e.toHexString}function c(e){return e.slice||(e.slice=function(){var t=Array.prototype.slice.call(arguments);return c(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function i(e){return l(e)&&!(e.length%2)||d(e)}function f(e){return"number"===typeof e&&e==e&&e%1===0}function d(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"===typeof e)return!1;if(!f(e.length)||e.length<0)return!1;for(var t=0;t=256)return!1}return!0}function o(e,t){if(t||(t={}),"number"===typeof e){r.checkSafeUint53(e,"invalid arrayify value");for(var a=[];e;)a.unshift(255&e),e=parseInt(String(e/256));return 0===a.length&&a.push(0),c(new Uint8Array(a))}if(t.allowMissingPrefix&&"string"===typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),n(e)&&(e=e.toHexString()),l(e)){var i=e.substring(2);i.length%2&&("left"===t.hexPad?i="0x0"+i.substring(2):"right"===t.hexPad?i+="0":r.throwArgumentError("hex data is odd-length","value",e));for(var f=[],o=0;ot&&r.throwArgumentError("value out of range","value",arguments[0]);var a=new Uint8Array(t);return a.set(e,t-e.length),c(a)}function l(e,t){return!("string"!==typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))&&(!t||e.length===2+2*t)}var h="0123456789abcdef";function x(e,t){if(t||(t={}),"number"===typeof e){r.checkSafeUint53(e,"invalid hexlify value");for(var a="";e;)a=h[15&e]+a,e=Math.floor(e/16);return a.length?(a.length%2&&(a="0"+a),"0x"+a):"0x00"}if("bigint"===typeof e)return(e=e.toString(16)).length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&"string"===typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),n(e))return e.toHexString();if(l(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":r.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(d(e)){for(var c="0x",i=0;i>4]+h[15&f]}return c}return r.throwArgumentError("invalid hexlify value","value",e)}function p(e){if("string"!==typeof e)e=x(e);else if(!l(e)||e.length%2)return null;return(e.length-2)/2}function m(e,t,a){return"string"!==typeof e?e=x(e):(!l(e)||e.length%2)&&r.throwArgumentError("invalid hexData","value",e),t=2+2*t,null!=a?"0x"+e.substring(t,2+2*a):"0x"+e.substring(t)}function v(e){var t="0x";return e.forEach((function(e){t+=x(e).substring(2)})),t}function g(e){var t=y(x(e,{hexPad:"left"}));return"0x"===t?"0x0":t}function y(e){"string"!==typeof e&&(e=x(e)),l(e)||r.throwArgumentError("invalid hex string","value",e),e=e.substring(2);for(var t=0;t2*t+2&&r.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function _(e){var t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0};if(i(e)){var a=o(e);65!==a.length&&r.throwArgumentError("invalid signature string; must be 65 bytes","signature",e),t.r=x(a.slice(0,32)),t.s=x(a.slice(32,64)),t.v=a[64],t.v<27&&(0===t.v||1===t.v?t.v+=27:r.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(a[32]|=128),t._vs=x(a.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,null!=t._vs){var n=u(o(t._vs),32);t._vs=x(n);var c=n[0]>=128?1:0;null==t.recoveryParam?t.recoveryParam=c:t.recoveryParam!==c&&r.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),n[0]&=127;var f=x(n);null==t.s?t.s=f:t.s!==f&&r.throwArgumentError("signature v mismatch _vs","signature",e)}if(null==t.recoveryParam)null==t.v?r.throwArgumentError("signature missing v and recoveryParam","signature",e):0===t.v||1===t.v?t.recoveryParam=t.v:t.recoveryParam=1-t.v%2;else if(null==t.v)t.v=27+t.recoveryParam;else{var d=0===t.v||1===t.v?t.v:1-t.v%2;t.recoveryParam!==d&&r.throwArgumentError("signature recoveryParam mismatch v","signature",e)}null!=t.r&&l(t.r)?t.r=w(t.r,32):r.throwArgumentError("signature missing or invalid r","signature",e),null!=t.s&&l(t.s)?t.s=w(t.s,32):r.throwArgumentError("signature missing or invalid s","signature",e);var s=o(t.s);s[0]>=128&&r.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(s[0]|=128);var b=x(s);t._vs&&(l(t._vs)||r.throwArgumentError("signature invalid _vs","signature",e),t._vs=w(t._vs,32)),null==t._vs?t._vs=b:t._vs!==b&&r.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t}function M(e){return x(s([(e=_(e)).r,e.s,e.recoveryParam?"0x1c":"0x1b"]))}},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}a.d(t,"a",(function(){return r}))},function(e,t,a){"use strict";function r(e,t){for(var a=0;a=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|e}function h(e,t){if(d.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var a=e.length;if(0===a)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return a;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*a;case"hex":return a>>>1;case"base64":return H(e).length;default:if(r)return z(e).length;t=(""+t).toLowerCase(),r=!0}}function x(e,t,a){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===a||a>this.length)&&(a=this.length),a<=0)return"";if((a>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,a);case"utf8":case"utf-8":return A(this,t,a);case"ascii":return O(this,t,a);case"latin1":case"binary":return P(this,t,a);case"base64":return S(this,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,a);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function p(e,t,a){var r=e[t];e[t]=e[a],e[a]=r}function m(e,t,a,r,n){if(0===e.length)return-1;if("string"===typeof a?(r=a,a=0):a>2147483647?a=2147483647:a<-2147483648&&(a=-2147483648),a=+a,isNaN(a)&&(a=n?0:e.length-1),a<0&&(a=e.length+a),a>=e.length){if(n)return-1;a=e.length-1}else if(a<0){if(!n)return-1;a=0}if("string"===typeof t&&(t=d.from(t,r)),d.isBuffer(t))return 0===t.length?-1:v(e,t,a,r,n);if("number"===typeof t)return t&=255,d.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,a):Uint8Array.prototype.lastIndexOf.call(e,t,a):v(e,[t],a,r,n);throw new TypeError("val must be string, number or Buffer")}function v(e,t,a,r,n){var c,i=1,f=e.length,d=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;i=2,f/=2,d/=2,a/=2}function o(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(n){var s=-1;for(c=a;cf&&(a=f-d),c=a;c>=0;c--){for(var b=!0,u=0;un&&(r=n):r=n;var c=t.length;if(c%2!==0)throw new TypeError("Invalid hex string");r>c/2&&(r=c/2);for(var i=0;i>8,n=a%256,c.push(n),c.push(r);return c}(t,e.length-a),e,a,r)}function S(e,t,a){return 0===t&&a===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,a))}function A(e,t,a){a=Math.min(e.length,a);for(var r=[],n=t;n239?4:o>223?3:o>191?2:1;if(n+b<=a)switch(b){case 1:o<128&&(s=o);break;case 2:128===(192&(c=e[n+1]))&&(d=(31&o)<<6|63&c)>127&&(s=d);break;case 3:c=e[n+1],i=e[n+2],128===(192&c)&&128===(192&i)&&(d=(15&o)<<12|(63&c)<<6|63&i)>2047&&(d<55296||d>57343)&&(s=d);break;case 4:c=e[n+1],i=e[n+2],f=e[n+3],128===(192&c)&&128===(192&i)&&128===(192&f)&&(d=(15&o)<<18|(63&c)<<12|(63&i)<<6|63&f)>65535&&d<1114112&&(s=d)}null===s?(s=65533,b=1):s>65535&&(s-=65536,r.push(s>>>10&1023|55296),s=56320|1023&s),r.push(s),n+=b}return function(e){var t=e.length;if(t<=E)return String.fromCharCode.apply(String,e);var a="",r=0;for(;r0&&(e=this.toString("hex",0,a).match(/.{2}/g).join(" "),this.length>a&&(e+=" ... ")),""},d.prototype.compare=function(e,t,a,r,n){if(!d.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===a&&(a=e?e.length:0),void 0===r&&(r=0),void 0===n&&(n=this.length),t<0||a>e.length||r<0||n>this.length)throw new RangeError("out of range index");if(r>=n&&t>=a)return 0;if(r>=n)return-1;if(t>=a)return 1;if(this===e)return 0;for(var c=(n>>>=0)-(r>>>=0),i=(a>>>=0)-(t>>>=0),f=Math.min(c,i),o=this.slice(r,n),s=e.slice(t,a),b=0;bn)&&(a=n),e.length>0&&(a<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var c=!1;;)switch(r){case"hex":return g(this,e,t,a);case"utf8":case"utf-8":return y(this,e,t,a);case"ascii":return w(this,e,t,a);case"latin1":case"binary":return _(this,e,t,a);case"base64":return M(this,e,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,a);default:if(c)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),c=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var E=4096;function O(e,t,a){var r="";a=Math.min(e.length,a);for(var n=t;nr)&&(a=r);for(var n="",c=t;ca)throw new RangeError("Trying to access beyond buffer length")}function C(e,t,a,r,n,c){if(!d.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||te.length)throw new RangeError("Index out of range")}function j(e,t,a,r){t<0&&(t=65535+t+1);for(var n=0,c=Math.min(e.length-a,2);n>>8*(r?n:1-n)}function I(e,t,a,r){t<0&&(t=4294967295+t+1);for(var n=0,c=Math.min(e.length-a,4);n>>8*(r?n:3-n)&255}function N(e,t,a,r,n,c){if(a+r>e.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("Index out of range")}function L(e,t,a,r,c){return c||N(e,0,a,4),n.write(e,t,a,r,23,4),a+4}function U(e,t,a,r,c){return c||N(e,0,a,8),n.write(e,t,a,r,52,8),a+8}d.prototype.slice=function(e,t){var a,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(n*=256);)r+=this[e+--t]*n;return r},d.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},d.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},d.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},d.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},d.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},d.prototype.readIntLE=function(e,t,a){e|=0,t|=0,a||R(e,t,this.length);for(var r=this[e],n=1,c=0;++c=(n*=128)&&(r-=Math.pow(2,8*t)),r},d.prototype.readIntBE=function(e,t,a){e|=0,t|=0,a||R(e,t,this.length);for(var r=t,n=1,c=this[e+--r];r>0&&(n*=256);)c+=this[e+--r]*n;return c>=(n*=128)&&(c-=Math.pow(2,8*t)),c},d.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},d.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var a=this[e]|this[e+1]<<8;return 32768&a?4294901760|a:a},d.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var a=this[e+1]|this[e]<<8;return 32768&a?4294901760|a:a},d.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},d.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},d.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),n.read(this,e,!0,23,4)},d.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),n.read(this,e,!1,23,4)},d.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),n.read(this,e,!0,52,8)},d.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),n.read(this,e,!1,52,8)},d.prototype.writeUIntLE=function(e,t,a,r){(e=+e,t|=0,a|=0,r)||C(this,e,t,a,Math.pow(2,8*a)-1,0);var n=1,c=0;for(this[t]=255&e;++c=0&&(c*=256);)this[t+n]=e/c&255;return t+a},d.prototype.writeUInt8=function(e,t,a){return e=+e,t|=0,a||C(this,e,t,1,255,0),d.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},d.prototype.writeUInt16LE=function(e,t,a){return e=+e,t|=0,a||C(this,e,t,2,65535,0),d.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},d.prototype.writeUInt16BE=function(e,t,a){return e=+e,t|=0,a||C(this,e,t,2,65535,0),d.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},d.prototype.writeUInt32LE=function(e,t,a){return e=+e,t|=0,a||C(this,e,t,4,4294967295,0),d.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):I(this,e,t,!0),t+4},d.prototype.writeUInt32BE=function(e,t,a){return e=+e,t|=0,a||C(this,e,t,4,4294967295,0),d.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},d.prototype.writeIntLE=function(e,t,a,r){if(e=+e,t|=0,!r){var n=Math.pow(2,8*a-1);C(this,e,t,a,n-1,-n)}var c=0,i=1,f=0;for(this[t]=255&e;++c>0)-f&255;return t+a},d.prototype.writeIntBE=function(e,t,a,r){if(e=+e,t|=0,!r){var n=Math.pow(2,8*a-1);C(this,e,t,a,n-1,-n)}var c=a-1,i=1,f=0;for(this[t+c]=255&e;--c>=0&&(i*=256);)e<0&&0===f&&0!==this[t+c+1]&&(f=1),this[t+c]=(e/i>>0)-f&255;return t+a},d.prototype.writeInt8=function(e,t,a){return e=+e,t|=0,a||C(this,e,t,1,127,-128),d.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},d.prototype.writeInt16LE=function(e,t,a){return e=+e,t|=0,a||C(this,e,t,2,32767,-32768),d.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},d.prototype.writeInt16BE=function(e,t,a){return e=+e,t|=0,a||C(this,e,t,2,32767,-32768),d.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},d.prototype.writeInt32LE=function(e,t,a){return e=+e,t|=0,a||C(this,e,t,4,2147483647,-2147483648),d.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):I(this,e,t,!0),t+4},d.prototype.writeInt32BE=function(e,t,a){return e=+e,t|=0,a||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),d.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},d.prototype.writeFloatLE=function(e,t,a){return L(this,e,t,!0,a)},d.prototype.writeFloatBE=function(e,t,a){return L(this,e,t,!1,a)},d.prototype.writeDoubleLE=function(e,t,a){return U(this,e,t,!0,a)},d.prototype.writeDoubleBE=function(e,t,a){return U(this,e,t,!1,a)},d.prototype.copy=function(e,t,a,r){if(a||(a=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--n)e[n+t]=this[n+a];else if(c<1e3||!d.TYPED_ARRAY_SUPPORT)for(n=0;n>>=0,a=void 0===a?this.length:a>>>0,e||(e=0),"number"===typeof e)for(c=t;c55295&&a<57344){if(!n){if(a>56319){(t-=3)>-1&&c.push(239,191,189);continue}if(i+1===r){(t-=3)>-1&&c.push(239,191,189);continue}n=a;continue}if(a<56320){(t-=3)>-1&&c.push(239,191,189),n=a;continue}a=65536+(n-55296<<10|a-56320)}else n&&(t-=3)>-1&&c.push(239,191,189);if(n=null,a<128){if((t-=1)<0)break;c.push(a)}else if(a<2048){if((t-=2)<0)break;c.push(a>>6|192,63&a|128)}else if(a<65536){if((t-=3)<0)break;c.push(a>>12|224,a>>6&63|128,63&a|128)}else{if(!(a<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;c.push(a>>18|240,a>>12&63|128,a>>6&63|128,63&a|128)}}return c}function H(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(F,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function q(e,t,a,r){for(var n=0;n=t.length||n>=e.length);++n)t[n+a]=e[n];return n}}).call(this,a(15))},function(e,t,a){"use strict";a.d(t,"a",(function(){return n}));var r=a(97);function n(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Object(r.a)(e,t)}},function(e,t,a){"use strict";a.d(t,"a",(function(){return d}));var r=a(11),n=a(98);function c(e){return c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}var i=a(141);function f(e,t){return!t||"object"!==c(t)&&"function"!==typeof t?Object(i.a)(e):t}function d(e){var t=Object(n.a)();return function(){var a,n=Object(r.a)(e);if(t){var c=Object(r.a)(this).constructor;a=Reflect.construct(n,arguments,c)}else a=n.apply(this,arguments);return f(this,a)}}},function(e,t,a){(function(e){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function n(e,t){e.super_=t;var a=function(){};a.prototype=t.prototype,e.prototype=new a,e.prototype.constructor=e}function c(e,t,a){if(c.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(a=t,t=10),this._init(e||0,t||10,a||"be"))}var i;"object"===typeof e?e.exports=c:t.BN=c,c.BN=c,c.wordSize=26;try{i="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:a(291).Buffer}catch(S){}function f(e,t){var a=e.charCodeAt(t);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function d(e,t,a){var r=f(e,a);return a-1>=t&&(r|=f(e,a-1)<<4),r}function o(e,t,a,r){for(var n=0,c=Math.min(e.length,a),i=t;i=49?f-49+10:f>=17?f-17+10:f}return n}c.isBN=function(e){return e instanceof c||null!==e&&"object"===typeof e&&e.constructor.wordSize===c.wordSize&&Array.isArray(e.words)},c.max=function(e,t){return e.cmp(t)>0?e:t},c.min=function(e,t){return e.cmp(t)<0?e:t},c.prototype._init=function(e,t,a){if("number"===typeof e)return this._initNumber(e,t,a);if("object"===typeof e)return this._initArray(e,t,a);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;n-=3)i=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[c]|=i<>>26-f&67108863,(f+=24)>=26&&(f-=26,c++);else if("le"===a)for(n=0,c=0;n>>26-f&67108863,(f+=24)>=26&&(f-=26,c++);return this.strip()},c.prototype._parseHex=function(e,t,a){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)n=d(e,t,r)<=18?(c-=18,i+=1,this.words[i]|=n>>>26):c+=8;else for(r=(e.length-t)%2===0?t+1:t;r=18?(c-=18,i+=1,this.words[i]|=n>>>26):c+=8;this.strip()},c.prototype._parseBase=function(e,t,a){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=t)r++;r--,n=n/t|0;for(var c=e.length-a,i=c%r,f=Math.min(c,c-i)+a,d=0,s=a;s1&&0===this.words[this.length-1];)this.length--;return this._normSign()},c.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},c.prototype.inspect=function(){return(this.red?""};var s=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],b=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],u=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function l(e,t,a){a.negative=t.negative^e.negative;var r=e.length+t.length|0;a.length=r,r=r-1|0;var n=0|e.words[0],c=0|t.words[0],i=n*c,f=67108863&i,d=i/67108864|0;a.words[0]=f;for(var o=1;o>>26,b=67108863&d,u=Math.min(o,t.length-1),l=Math.max(0,o-e.length+1);l<=u;l++){var h=o-l|0;s+=(i=(n=0|e.words[h])*(c=0|t.words[l])+b)/67108864|0,b=67108863&i}a.words[o]=0|b,d=0|s}return 0!==d?a.words[o]=0|d:a.length--,a.strip()}c.prototype.toString=function(e,t){var a;if(t=0|t||1,16===(e=e||10)||"hex"===e){a="";for(var n=0,c=0,i=0;i>>24-n&16777215)||i!==this.length-1?s[6-d.length]+d+a:d+a,(n+=2)>=26&&(n-=26,i--)}for(0!==c&&(a=c.toString(16)+a);a.length%t!==0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}if(e===(0|e)&&e>=2&&e<=36){var o=b[e],l=u[e];a="";var h=this.clone();for(h.negative=0;!h.isZero();){var x=h.modn(l).toString(e);a=(h=h.idivn(l)).isZero()?x+a:s[o-x.length]+x+a}for(this.isZero()&&(a="0"+a);a.length%t!==0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}r(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(e,t){return r("undefined"!==typeof i),this.toArrayLike(i,e,t)},c.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},c.prototype.toArrayLike=function(e,t,a){var n=this.byteLength(),c=a||Math.max(1,n);r(n<=c,"byte array longer than desired length"),r(c>0,"Requested array length <= 0"),this.strip();var i,f,d="le"===t,o=new e(c),s=this.clone();if(d){for(f=0;!s.isZero();f++)i=s.andln(255),s.iushrn(8),o[f]=i;for(;f=4096&&(a+=13,t>>>=13),t>=64&&(a+=7,t>>>=7),t>=8&&(a+=4,t>>>=4),t>=2&&(a+=2,t>>>=2),a+t},c.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,a=0;return 0===(8191&t)&&(a+=13,t>>>=13),0===(127&t)&&(a+=7,t>>>=7),0===(15&t)&&(a+=4,t>>>=4),0===(3&t)&&(a+=2,t>>>=2),0===(1&t)&&a++,a},c.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},c.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},c.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var a=0;ae.length?this.clone().iand(e):e.clone().iand(this)},c.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},c.prototype.iuxor=function(e){var t,a;this.length>e.length?(t=this,a=e):(t=e,a=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},c.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},c.prototype.inotn=function(e){r("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),a=e%26;this._expand(t),a>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-a),this.strip()},c.prototype.notn=function(e){return this.clone().inotn(e)},c.prototype.setn=function(e,t){r("number"===typeof e&&e>=0);var a=e/26|0,n=e%26;return this._expand(a+1),this.words[a]=t?this.words[a]|1<e.length?(a=this,r=e):(a=e,r=this);for(var n=0,c=0;c>>26;for(;0!==n&&c>>26;if(this.length=a.length,0!==n)this.words[this.length]=n,this.length++;else if(a!==this)for(;ce.length?this.clone().iadd(e):e.clone().iadd(this)},c.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var a,r,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(a=this,r=e):(a=e,r=this);for(var c=0,i=0;i>26,this.words[i]=67108863&t;for(;0!==c&&i>26,this.words[i]=67108863&t;if(0===c&&i>>13,l=0|i[1],h=8191&l,x=l>>>13,p=0|i[2],m=8191&p,v=p>>>13,g=0|i[3],y=8191&g,w=g>>>13,_=0|i[4],M=8191&_,k=_>>>13,S=0|i[5],A=8191&S,E=S>>>13,O=0|i[6],P=8191&O,T=O>>>13,B=0|i[7],R=8191&B,C=B>>>13,j=0|i[8],I=8191&j,N=j>>>13,L=0|i[9],U=8191&L,F=L>>>13,D=0|f[0],z=8191&D,H=D>>>13,q=0|f[1],K=8191&q,W=q>>>13,V=0|f[2],$=8191&V,G=V>>>13,Z=0|f[3],J=8191&Z,X=Z>>>13,Y=0|f[4],Q=8191&Y,ee=Y>>>13,te=0|f[5],ae=8191&te,re=te>>>13,ne=0|f[6],ce=8191&ne,ie=ne>>>13,fe=0|f[7],de=8191&fe,oe=fe>>>13,se=0|f[8],be=8191&se,ue=se>>>13,le=0|f[9],he=8191&le,xe=le>>>13;a.negative=e.negative^t.negative,a.length=19;var pe=(o+(r=Math.imul(b,z))|0)+((8191&(n=(n=Math.imul(b,H))+Math.imul(u,z)|0))<<13)|0;o=((c=Math.imul(u,H))+(n>>>13)|0)+(pe>>>26)|0,pe&=67108863,r=Math.imul(h,z),n=(n=Math.imul(h,H))+Math.imul(x,z)|0,c=Math.imul(x,H);var me=(o+(r=r+Math.imul(b,K)|0)|0)+((8191&(n=(n=n+Math.imul(b,W)|0)+Math.imul(u,K)|0))<<13)|0;o=((c=c+Math.imul(u,W)|0)+(n>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(m,z),n=(n=Math.imul(m,H))+Math.imul(v,z)|0,c=Math.imul(v,H),r=r+Math.imul(h,K)|0,n=(n=n+Math.imul(h,W)|0)+Math.imul(x,K)|0,c=c+Math.imul(x,W)|0;var ve=(o+(r=r+Math.imul(b,$)|0)|0)+((8191&(n=(n=n+Math.imul(b,G)|0)+Math.imul(u,$)|0))<<13)|0;o=((c=c+Math.imul(u,G)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(y,z),n=(n=Math.imul(y,H))+Math.imul(w,z)|0,c=Math.imul(w,H),r=r+Math.imul(m,K)|0,n=(n=n+Math.imul(m,W)|0)+Math.imul(v,K)|0,c=c+Math.imul(v,W)|0,r=r+Math.imul(h,$)|0,n=(n=n+Math.imul(h,G)|0)+Math.imul(x,$)|0,c=c+Math.imul(x,G)|0;var ge=(o+(r=r+Math.imul(b,J)|0)|0)+((8191&(n=(n=n+Math.imul(b,X)|0)+Math.imul(u,J)|0))<<13)|0;o=((c=c+Math.imul(u,X)|0)+(n>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(M,z),n=(n=Math.imul(M,H))+Math.imul(k,z)|0,c=Math.imul(k,H),r=r+Math.imul(y,K)|0,n=(n=n+Math.imul(y,W)|0)+Math.imul(w,K)|0,c=c+Math.imul(w,W)|0,r=r+Math.imul(m,$)|0,n=(n=n+Math.imul(m,G)|0)+Math.imul(v,$)|0,c=c+Math.imul(v,G)|0,r=r+Math.imul(h,J)|0,n=(n=n+Math.imul(h,X)|0)+Math.imul(x,J)|0,c=c+Math.imul(x,X)|0;var ye=(o+(r=r+Math.imul(b,Q)|0)|0)+((8191&(n=(n=n+Math.imul(b,ee)|0)+Math.imul(u,Q)|0))<<13)|0;o=((c=c+Math.imul(u,ee)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(A,z),n=(n=Math.imul(A,H))+Math.imul(E,z)|0,c=Math.imul(E,H),r=r+Math.imul(M,K)|0,n=(n=n+Math.imul(M,W)|0)+Math.imul(k,K)|0,c=c+Math.imul(k,W)|0,r=r+Math.imul(y,$)|0,n=(n=n+Math.imul(y,G)|0)+Math.imul(w,$)|0,c=c+Math.imul(w,G)|0,r=r+Math.imul(m,J)|0,n=(n=n+Math.imul(m,X)|0)+Math.imul(v,J)|0,c=c+Math.imul(v,X)|0,r=r+Math.imul(h,Q)|0,n=(n=n+Math.imul(h,ee)|0)+Math.imul(x,Q)|0,c=c+Math.imul(x,ee)|0;var we=(o+(r=r+Math.imul(b,ae)|0)|0)+((8191&(n=(n=n+Math.imul(b,re)|0)+Math.imul(u,ae)|0))<<13)|0;o=((c=c+Math.imul(u,re)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(P,z),n=(n=Math.imul(P,H))+Math.imul(T,z)|0,c=Math.imul(T,H),r=r+Math.imul(A,K)|0,n=(n=n+Math.imul(A,W)|0)+Math.imul(E,K)|0,c=c+Math.imul(E,W)|0,r=r+Math.imul(M,$)|0,n=(n=n+Math.imul(M,G)|0)+Math.imul(k,$)|0,c=c+Math.imul(k,G)|0,r=r+Math.imul(y,J)|0,n=(n=n+Math.imul(y,X)|0)+Math.imul(w,J)|0,c=c+Math.imul(w,X)|0,r=r+Math.imul(m,Q)|0,n=(n=n+Math.imul(m,ee)|0)+Math.imul(v,Q)|0,c=c+Math.imul(v,ee)|0,r=r+Math.imul(h,ae)|0,n=(n=n+Math.imul(h,re)|0)+Math.imul(x,ae)|0,c=c+Math.imul(x,re)|0;var _e=(o+(r=r+Math.imul(b,ce)|0)|0)+((8191&(n=(n=n+Math.imul(b,ie)|0)+Math.imul(u,ce)|0))<<13)|0;o=((c=c+Math.imul(u,ie)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(R,z),n=(n=Math.imul(R,H))+Math.imul(C,z)|0,c=Math.imul(C,H),r=r+Math.imul(P,K)|0,n=(n=n+Math.imul(P,W)|0)+Math.imul(T,K)|0,c=c+Math.imul(T,W)|0,r=r+Math.imul(A,$)|0,n=(n=n+Math.imul(A,G)|0)+Math.imul(E,$)|0,c=c+Math.imul(E,G)|0,r=r+Math.imul(M,J)|0,n=(n=n+Math.imul(M,X)|0)+Math.imul(k,J)|0,c=c+Math.imul(k,X)|0,r=r+Math.imul(y,Q)|0,n=(n=n+Math.imul(y,ee)|0)+Math.imul(w,Q)|0,c=c+Math.imul(w,ee)|0,r=r+Math.imul(m,ae)|0,n=(n=n+Math.imul(m,re)|0)+Math.imul(v,ae)|0,c=c+Math.imul(v,re)|0,r=r+Math.imul(h,ce)|0,n=(n=n+Math.imul(h,ie)|0)+Math.imul(x,ce)|0,c=c+Math.imul(x,ie)|0;var Me=(o+(r=r+Math.imul(b,de)|0)|0)+((8191&(n=(n=n+Math.imul(b,oe)|0)+Math.imul(u,de)|0))<<13)|0;o=((c=c+Math.imul(u,oe)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(I,z),n=(n=Math.imul(I,H))+Math.imul(N,z)|0,c=Math.imul(N,H),r=r+Math.imul(R,K)|0,n=(n=n+Math.imul(R,W)|0)+Math.imul(C,K)|0,c=c+Math.imul(C,W)|0,r=r+Math.imul(P,$)|0,n=(n=n+Math.imul(P,G)|0)+Math.imul(T,$)|0,c=c+Math.imul(T,G)|0,r=r+Math.imul(A,J)|0,n=(n=n+Math.imul(A,X)|0)+Math.imul(E,J)|0,c=c+Math.imul(E,X)|0,r=r+Math.imul(M,Q)|0,n=(n=n+Math.imul(M,ee)|0)+Math.imul(k,Q)|0,c=c+Math.imul(k,ee)|0,r=r+Math.imul(y,ae)|0,n=(n=n+Math.imul(y,re)|0)+Math.imul(w,ae)|0,c=c+Math.imul(w,re)|0,r=r+Math.imul(m,ce)|0,n=(n=n+Math.imul(m,ie)|0)+Math.imul(v,ce)|0,c=c+Math.imul(v,ie)|0,r=r+Math.imul(h,de)|0,n=(n=n+Math.imul(h,oe)|0)+Math.imul(x,de)|0,c=c+Math.imul(x,oe)|0;var ke=(o+(r=r+Math.imul(b,be)|0)|0)+((8191&(n=(n=n+Math.imul(b,ue)|0)+Math.imul(u,be)|0))<<13)|0;o=((c=c+Math.imul(u,ue)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(U,z),n=(n=Math.imul(U,H))+Math.imul(F,z)|0,c=Math.imul(F,H),r=r+Math.imul(I,K)|0,n=(n=n+Math.imul(I,W)|0)+Math.imul(N,K)|0,c=c+Math.imul(N,W)|0,r=r+Math.imul(R,$)|0,n=(n=n+Math.imul(R,G)|0)+Math.imul(C,$)|0,c=c+Math.imul(C,G)|0,r=r+Math.imul(P,J)|0,n=(n=n+Math.imul(P,X)|0)+Math.imul(T,J)|0,c=c+Math.imul(T,X)|0,r=r+Math.imul(A,Q)|0,n=(n=n+Math.imul(A,ee)|0)+Math.imul(E,Q)|0,c=c+Math.imul(E,ee)|0,r=r+Math.imul(M,ae)|0,n=(n=n+Math.imul(M,re)|0)+Math.imul(k,ae)|0,c=c+Math.imul(k,re)|0,r=r+Math.imul(y,ce)|0,n=(n=n+Math.imul(y,ie)|0)+Math.imul(w,ce)|0,c=c+Math.imul(w,ie)|0,r=r+Math.imul(m,de)|0,n=(n=n+Math.imul(m,oe)|0)+Math.imul(v,de)|0,c=c+Math.imul(v,oe)|0,r=r+Math.imul(h,be)|0,n=(n=n+Math.imul(h,ue)|0)+Math.imul(x,be)|0,c=c+Math.imul(x,ue)|0;var Se=(o+(r=r+Math.imul(b,he)|0)|0)+((8191&(n=(n=n+Math.imul(b,xe)|0)+Math.imul(u,he)|0))<<13)|0;o=((c=c+Math.imul(u,xe)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(U,K),n=(n=Math.imul(U,W))+Math.imul(F,K)|0,c=Math.imul(F,W),r=r+Math.imul(I,$)|0,n=(n=n+Math.imul(I,G)|0)+Math.imul(N,$)|0,c=c+Math.imul(N,G)|0,r=r+Math.imul(R,J)|0,n=(n=n+Math.imul(R,X)|0)+Math.imul(C,J)|0,c=c+Math.imul(C,X)|0,r=r+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(T,Q)|0,c=c+Math.imul(T,ee)|0,r=r+Math.imul(A,ae)|0,n=(n=n+Math.imul(A,re)|0)+Math.imul(E,ae)|0,c=c+Math.imul(E,re)|0,r=r+Math.imul(M,ce)|0,n=(n=n+Math.imul(M,ie)|0)+Math.imul(k,ce)|0,c=c+Math.imul(k,ie)|0,r=r+Math.imul(y,de)|0,n=(n=n+Math.imul(y,oe)|0)+Math.imul(w,de)|0,c=c+Math.imul(w,oe)|0,r=r+Math.imul(m,be)|0,n=(n=n+Math.imul(m,ue)|0)+Math.imul(v,be)|0,c=c+Math.imul(v,ue)|0;var Ae=(o+(r=r+Math.imul(h,he)|0)|0)+((8191&(n=(n=n+Math.imul(h,xe)|0)+Math.imul(x,he)|0))<<13)|0;o=((c=c+Math.imul(x,xe)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(U,$),n=(n=Math.imul(U,G))+Math.imul(F,$)|0,c=Math.imul(F,G),r=r+Math.imul(I,J)|0,n=(n=n+Math.imul(I,X)|0)+Math.imul(N,J)|0,c=c+Math.imul(N,X)|0,r=r+Math.imul(R,Q)|0,n=(n=n+Math.imul(R,ee)|0)+Math.imul(C,Q)|0,c=c+Math.imul(C,ee)|0,r=r+Math.imul(P,ae)|0,n=(n=n+Math.imul(P,re)|0)+Math.imul(T,ae)|0,c=c+Math.imul(T,re)|0,r=r+Math.imul(A,ce)|0,n=(n=n+Math.imul(A,ie)|0)+Math.imul(E,ce)|0,c=c+Math.imul(E,ie)|0,r=r+Math.imul(M,de)|0,n=(n=n+Math.imul(M,oe)|0)+Math.imul(k,de)|0,c=c+Math.imul(k,oe)|0,r=r+Math.imul(y,be)|0,n=(n=n+Math.imul(y,ue)|0)+Math.imul(w,be)|0,c=c+Math.imul(w,ue)|0;var Ee=(o+(r=r+Math.imul(m,he)|0)|0)+((8191&(n=(n=n+Math.imul(m,xe)|0)+Math.imul(v,he)|0))<<13)|0;o=((c=c+Math.imul(v,xe)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(U,J),n=(n=Math.imul(U,X))+Math.imul(F,J)|0,c=Math.imul(F,X),r=r+Math.imul(I,Q)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(N,Q)|0,c=c+Math.imul(N,ee)|0,r=r+Math.imul(R,ae)|0,n=(n=n+Math.imul(R,re)|0)+Math.imul(C,ae)|0,c=c+Math.imul(C,re)|0,r=r+Math.imul(P,ce)|0,n=(n=n+Math.imul(P,ie)|0)+Math.imul(T,ce)|0,c=c+Math.imul(T,ie)|0,r=r+Math.imul(A,de)|0,n=(n=n+Math.imul(A,oe)|0)+Math.imul(E,de)|0,c=c+Math.imul(E,oe)|0,r=r+Math.imul(M,be)|0,n=(n=n+Math.imul(M,ue)|0)+Math.imul(k,be)|0,c=c+Math.imul(k,ue)|0;var Oe=(o+(r=r+Math.imul(y,he)|0)|0)+((8191&(n=(n=n+Math.imul(y,xe)|0)+Math.imul(w,he)|0))<<13)|0;o=((c=c+Math.imul(w,xe)|0)+(n>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(U,Q),n=(n=Math.imul(U,ee))+Math.imul(F,Q)|0,c=Math.imul(F,ee),r=r+Math.imul(I,ae)|0,n=(n=n+Math.imul(I,re)|0)+Math.imul(N,ae)|0,c=c+Math.imul(N,re)|0,r=r+Math.imul(R,ce)|0,n=(n=n+Math.imul(R,ie)|0)+Math.imul(C,ce)|0,c=c+Math.imul(C,ie)|0,r=r+Math.imul(P,de)|0,n=(n=n+Math.imul(P,oe)|0)+Math.imul(T,de)|0,c=c+Math.imul(T,oe)|0,r=r+Math.imul(A,be)|0,n=(n=n+Math.imul(A,ue)|0)+Math.imul(E,be)|0,c=c+Math.imul(E,ue)|0;var Pe=(o+(r=r+Math.imul(M,he)|0)|0)+((8191&(n=(n=n+Math.imul(M,xe)|0)+Math.imul(k,he)|0))<<13)|0;o=((c=c+Math.imul(k,xe)|0)+(n>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(U,ae),n=(n=Math.imul(U,re))+Math.imul(F,ae)|0,c=Math.imul(F,re),r=r+Math.imul(I,ce)|0,n=(n=n+Math.imul(I,ie)|0)+Math.imul(N,ce)|0,c=c+Math.imul(N,ie)|0,r=r+Math.imul(R,de)|0,n=(n=n+Math.imul(R,oe)|0)+Math.imul(C,de)|0,c=c+Math.imul(C,oe)|0,r=r+Math.imul(P,be)|0,n=(n=n+Math.imul(P,ue)|0)+Math.imul(T,be)|0,c=c+Math.imul(T,ue)|0;var Te=(o+(r=r+Math.imul(A,he)|0)|0)+((8191&(n=(n=n+Math.imul(A,xe)|0)+Math.imul(E,he)|0))<<13)|0;o=((c=c+Math.imul(E,xe)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(U,ce),n=(n=Math.imul(U,ie))+Math.imul(F,ce)|0,c=Math.imul(F,ie),r=r+Math.imul(I,de)|0,n=(n=n+Math.imul(I,oe)|0)+Math.imul(N,de)|0,c=c+Math.imul(N,oe)|0,r=r+Math.imul(R,be)|0,n=(n=n+Math.imul(R,ue)|0)+Math.imul(C,be)|0,c=c+Math.imul(C,ue)|0;var Be=(o+(r=r+Math.imul(P,he)|0)|0)+((8191&(n=(n=n+Math.imul(P,xe)|0)+Math.imul(T,he)|0))<<13)|0;o=((c=c+Math.imul(T,xe)|0)+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,r=Math.imul(U,de),n=(n=Math.imul(U,oe))+Math.imul(F,de)|0,c=Math.imul(F,oe),r=r+Math.imul(I,be)|0,n=(n=n+Math.imul(I,ue)|0)+Math.imul(N,be)|0,c=c+Math.imul(N,ue)|0;var Re=(o+(r=r+Math.imul(R,he)|0)|0)+((8191&(n=(n=n+Math.imul(R,xe)|0)+Math.imul(C,he)|0))<<13)|0;o=((c=c+Math.imul(C,xe)|0)+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863,r=Math.imul(U,be),n=(n=Math.imul(U,ue))+Math.imul(F,be)|0,c=Math.imul(F,ue);var Ce=(o+(r=r+Math.imul(I,he)|0)|0)+((8191&(n=(n=n+Math.imul(I,xe)|0)+Math.imul(N,he)|0))<<13)|0;o=((c=c+Math.imul(N,xe)|0)+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863;var je=(o+(r=Math.imul(U,he))|0)+((8191&(n=(n=Math.imul(U,xe))+Math.imul(F,he)|0))<<13)|0;return o=((c=Math.imul(F,xe))+(n>>>13)|0)+(je>>>26)|0,je&=67108863,d[0]=pe,d[1]=me,d[2]=ve,d[3]=ge,d[4]=ye,d[5]=we,d[6]=_e,d[7]=Me,d[8]=ke,d[9]=Se,d[10]=Ae,d[11]=Ee,d[12]=Oe,d[13]=Pe,d[14]=Te,d[15]=Be,d[16]=Re,d[17]=Ce,d[18]=je,0!==o&&(d[19]=o,a.length++),a};function x(e,t,a){return(new p).mulp(e,t,a)}function p(e,t){this.x=e,this.y=t}Math.imul||(h=l),c.prototype.mulTo=function(e,t){var a,r=this.length+e.length;return a=10===this.length&&10===e.length?h(this,e,t):r<63?l(this,e,t):r<1024?function(e,t,a){a.negative=t.negative^e.negative,a.length=e.length+t.length;for(var r=0,n=0,c=0;c>>26)|0)>>>26,i&=67108863}a.words[c]=f,r=i,i=n}return 0!==r?a.words[c]=r:a.length--,a.strip()}(this,e,t):x(this,e,t),a},p.prototype.makeRBT=function(e){for(var t=new Array(e),a=c.prototype._countBits(e)-1,r=0;r>=1;return r},p.prototype.permute=function(e,t,a,r,n,c){for(var i=0;i>>=1)n++;return 1<>>=13,a[2*i+1]=8191&c,c>>>=13;for(i=2*t;i>=26,t+=n/67108864|0,t+=c>>>26,this.words[a]=67108863&c}return 0!==t&&(this.words[a]=t,this.length++),this},c.prototype.muln=function(e){return this.clone().imuln(e)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),a=0;a>>n}return t}(e);if(0===t.length)return new c(1);for(var a=this,r=0;r=0);var t,a=e%26,n=(e-a)/26,c=67108863>>>26-a<<26-a;if(0!==a){var i=0;for(t=0;t>>26-a}i&&(this.words[t]=i,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var c=e%26,i=Math.min((e-c)/26,this.length),f=67108863^67108863>>>c<i)for(this.length-=i,o=0;o=0&&(0!==s||o>=n);o--){var b=0|this.words[o];this.words[o]=s<<26-c|b>>>c,s=b&f}return d&&0!==s&&(d.words[d.length++]=s),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(e,t,a){return r(0===this.negative),this.iushrn(e,t,a)},c.prototype.shln=function(e){return this.clone().ishln(e)},c.prototype.ushln=function(e){return this.clone().iushln(e)},c.prototype.shrn=function(e){return this.clone().ishrn(e)},c.prototype.ushrn=function(e){return this.clone().iushrn(e)},c.prototype.testn=function(e){r("number"===typeof e&&e>=0);var t=e%26,a=(e-t)/26,n=1<=0);var t=e%26,a=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=a)return this;if(0!==t&&a++,this.length=Math.min(a,this.length),0!==t){var n=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},c.prototype.isubn=function(e){if(r("number"===typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(d/67108864|0),this.words[n+a]=67108863&c}for(;n>26,this.words[n+a]=67108863&c;if(0===f)return this.strip();for(r(-1===f),f=0,n=0;n>26,this.words[n]=67108863&c;return this.negative=1,this.strip()},c.prototype._wordDiv=function(e,t){var a=(this.length,e.length),r=this.clone(),n=e,i=0|n.words[n.length-1];0!==(a=26-this._countBits(i))&&(n=n.ushln(a),r.iushln(a),i=0|n.words[n.length-1]);var f,d=r.length-n.length;if("mod"!==t){(f=new c(null)).length=d+1,f.words=new Array(f.length);for(var o=0;o=0;b--){var u=67108864*(0|r.words[n.length+b])+(0|r.words[n.length+b-1]);for(u=Math.min(u/i|0,67108863),r._ishlnsubmul(n,u,b);0!==r.negative;)u--,r.negative=0,r._ishlnsubmul(n,1,b),r.isZero()||(r.negative^=1);f&&(f.words[b]=u)}return f&&f.strip(),r.strip(),"div"!==t&&0!==a&&r.iushrn(a),{div:f||null,mod:r}},c.prototype.divmod=function(e,t,a){return r(!e.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:0!==this.negative&&0===e.negative?(f=this.neg().divmod(e,t),"mod"!==t&&(n=f.div.neg()),"div"!==t&&(i=f.mod.neg(),a&&0!==i.negative&&i.iadd(e)),{div:n,mod:i}):0===this.negative&&0!==e.negative?(f=this.divmod(e.neg(),t),"mod"!==t&&(n=f.div.neg()),{div:n,mod:f.mod}):0!==(this.negative&e.negative)?(f=this.neg().divmod(e.neg(),t),"div"!==t&&(i=f.mod.neg(),a&&0!==i.negative&&i.isub(e)),{div:f.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new c(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new c(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new c(this.modn(e.words[0]))}:this._wordDiv(e,t);var n,i,f},c.prototype.div=function(e){return this.divmod(e,"div",!1).div},c.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},c.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},c.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var a=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),n=e.andln(1),c=a.cmp(r);return c<0||1===n&&0===c?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},c.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,a=0,n=this.length-1;n>=0;n--)a=(t*a+(0|this.words[n]))%e;return a},c.prototype.idivn=function(e){r(e<=67108863);for(var t=0,a=this.length-1;a>=0;a--){var n=(0|this.words[a])+67108864*t;this.words[a]=n/e|0,t=n%e}return this.strip()},c.prototype.divn=function(e){return this.clone().idivn(e)},c.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new c(1),i=new c(0),f=new c(0),d=new c(1),o=0;t.isEven()&&a.isEven();)t.iushrn(1),a.iushrn(1),++o;for(var s=a.clone(),b=t.clone();!t.isZero();){for(var u=0,l=1;0===(t.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(t.iushrn(u);u-- >0;)(n.isOdd()||i.isOdd())&&(n.iadd(s),i.isub(b)),n.iushrn(1),i.iushrn(1);for(var h=0,x=1;0===(a.words[0]&x)&&h<26;++h,x<<=1);if(h>0)for(a.iushrn(h);h-- >0;)(f.isOdd()||d.isOdd())&&(f.iadd(s),d.isub(b)),f.iushrn(1),d.iushrn(1);t.cmp(a)>=0?(t.isub(a),n.isub(f),i.isub(d)):(a.isub(t),f.isub(n),d.isub(i))}return{a:f,b:d,gcd:a.iushln(o)}},c.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,i=new c(1),f=new c(0),d=a.clone();t.cmpn(1)>0&&a.cmpn(1)>0;){for(var o=0,s=1;0===(t.words[0]&s)&&o<26;++o,s<<=1);if(o>0)for(t.iushrn(o);o-- >0;)i.isOdd()&&i.iadd(d),i.iushrn(1);for(var b=0,u=1;0===(a.words[0]&u)&&b<26;++b,u<<=1);if(b>0)for(a.iushrn(b);b-- >0;)f.isOdd()&&f.iadd(d),f.iushrn(1);t.cmp(a)>=0?(t.isub(a),i.isub(f)):(a.isub(t),f.isub(i))}return(n=0===t.cmpn(1)?i:f).cmpn(0)<0&&n.iadd(e),n},c.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),a=e.clone();t.negative=0,a.negative=0;for(var r=0;t.isEven()&&a.isEven();r++)t.iushrn(1),a.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;a.isEven();)a.iushrn(1);var n=t.cmp(a);if(n<0){var c=t;t=a,a=c}else if(0===n||0===a.cmpn(1))break;t.isub(a)}return a.iushln(r)},c.prototype.invm=function(e){return this.egcd(e).a.umod(e)},c.prototype.isEven=function(){return 0===(1&this.words[0])},c.prototype.isOdd=function(){return 1===(1&this.words[0])},c.prototype.andln=function(e){return this.words[0]&e},c.prototype.bincn=function(e){r("number"===typeof e);var t=e%26,a=(e-t)/26,n=1<>>26,f&=67108863,this.words[i]=f}return 0!==c&&(this.words[i]=c,this.length++),this},c.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},c.prototype.cmpn=function(e){var t,a=e<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)t=1;else{a&&(e=-e),r(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;a--){var r=0|this.words[a],n=0|e.words[a];if(r!==n){rn&&(t=1);break}}return t},c.prototype.gtn=function(e){return 1===this.cmpn(e)},c.prototype.gt=function(e){return 1===this.cmp(e)},c.prototype.gten=function(e){return this.cmpn(e)>=0},c.prototype.gte=function(e){return this.cmp(e)>=0},c.prototype.ltn=function(e){return-1===this.cmpn(e)},c.prototype.lt=function(e){return-1===this.cmp(e)},c.prototype.lten=function(e){return this.cmpn(e)<=0},c.prototype.lte=function(e){return this.cmp(e)<=0},c.prototype.eqn=function(e){return 0===this.cmpn(e)},c.prototype.eq=function(e){return 0===this.cmp(e)},c.red=function(e){return new M(e)},c.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},c.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(e){return this.red=e,this},c.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},c.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},c.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},c.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},c.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},c.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},c.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},c.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},c.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new c(t,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function M(e){if("string"===typeof e){var t=c._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){M.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new c(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var e=new c(null);return e.words=new Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,a=e;do{this.split(a,this.tmp),t=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},n(g,v),g.prototype.split=function(e,t){for(var a=4194303,r=Math.min(e.length,9),n=0;n>>22,c=i}c>>>=22,e.words[n-10]=c,0===c&&e.length>10?e.length-=10:e.length-=9},g.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,a=0;a>>=26,e.words[a]=n,t=r}return 0!==t&&(e.words[e.length++]=t),e},c._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new g;else if("p224"===e)t=new y;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return m[e]=t,t},M.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},M.prototype._verify2=function(e,t){r(0===(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},M.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},M.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},M.prototype.add=function(e,t){this._verify2(e,t);var a=e.add(t);return a.cmp(this.m)>=0&&a.isub(this.m),a._forceRed(this)},M.prototype.iadd=function(e,t){this._verify2(e,t);var a=e.iadd(t);return a.cmp(this.m)>=0&&a.isub(this.m),a},M.prototype.sub=function(e,t){this._verify2(e,t);var a=e.sub(t);return a.cmpn(0)<0&&a.iadd(this.m),a._forceRed(this)},M.prototype.isub=function(e,t){this._verify2(e,t);var a=e.isub(t);return a.cmpn(0)<0&&a.iadd(this.m),a},M.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},M.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},M.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},M.prototype.isqr=function(e){return this.imul(e,e.clone())},M.prototype.sqr=function(e){return this.mul(e,e)},M.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2===1),3===t){var a=this.m.add(new c(1)).iushrn(2);return this.pow(e,a)}for(var n=this.m.subn(1),i=0;!n.isZero()&&0===n.andln(1);)i++,n.iushrn(1);r(!n.isZero());var f=new c(1).toRed(this),d=f.redNeg(),o=this.m.subn(1).iushrn(1),s=this.m.bitLength();for(s=new c(2*s*s).toRed(this);0!==this.pow(s,o).cmp(d);)s.redIAdd(d);for(var b=this.pow(s,n),u=this.pow(e,n.addn(1).iushrn(1)),l=this.pow(e,n),h=i;0!==l.cmp(f);){for(var x=l,p=0;0!==x.cmp(f);p++)x=x.redSqr();r(p=0;r--){for(var o=t.words[r],s=d-1;s>=0;s--){var b=o>>s&1;n!==a[0]&&(n=this.sqr(n)),0!==b||0!==i?(i<<=1,i|=b,(4===++f||0===r&&0===s)&&(n=this.mul(n,a[i]),f=0,i=0)):f=0}d=26}return n},M.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},M.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},c.mont=function(e){return new k(e)},n(k,M),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var a=e.imul(t),r=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(r).iushrn(this.shift),c=n;return n.cmp(this.m)>=0?c=n.isub(this.m):n.cmpn(0)<0&&(c=n.iadd(this.m)),c._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new c(0)._forceRed(this);var a=e.mul(t),r=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(r).iushrn(this.shift),i=n;return n.cmp(this.m)>=0?i=n.isub(this.m):n.cmpn(0)<0&&(i=n.iadd(this.m)),i._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,a(24)(e))},function(e,t){"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var a=function(){};a.prototype=t.prototype,e.prototype=new a,e.prototype.constructor=e}}},function(e,t,a){"use strict";a.d(t,"a",(function(){return b})),a.d(t,"b",(function(){return h}));var r=a(1),n=a(2),c=!1,i=!1,f={debug:1,default:2,info:2,warning:3,error:4,off:5},d=f.default,o=null;var s,b,u=function(){try{var e=[];if(["NFD","NFC","NFKD","NFKC"].forEach((function(t){try{if("test"!=="test".normalize(t))throw new Error("bad normalize")}catch(a){e.push(t)}})),e.length)throw new Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}();!function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"}(s||(s={})),function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.TIMEOUT="TIMEOUT",e.BUFFER_OVERRUN="BUFFER_OVERRUN",e.NUMERIC_FAULT="NUMERIC_FAULT",e.MISSING_NEW="MISSING_NEW",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",e.TRANSACTION_REPLACED="TRANSACTION_REPLACED"}(b||(b={}));var l="0123456789abcdef",h=function(){function e(t){Object(r.a)(this,e),Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}return Object(n.a)(e,[{key:"_log",value:function(e,t){var a=e.toLowerCase();null==f[a]&&this.throwArgumentError("invalid log level name","logLevel",e),d>f[a]||console.log.apply(console,t)}},{key:"debug",value:function(){for(var t=arguments.length,a=new Array(t),r=0;r>4],a+=l[15&t[c]];n.push(e+"=Uint8Array(0x"+a+")")}else n.push(e+"="+JSON.stringify(t))}catch(f){n.push(e+"="+JSON.stringify(r[e].toString()))}})),n.push("code=".concat(a)),n.push("version=".concat(this.version));var c=t;n.length&&(t+=" ("+n.join(", ")+")");var f=new Error(t);return f.reason=c,f.code=a,Object.keys(r).forEach((function(e){f[e]=r[e]})),f}},{key:"throwError",value:function(e,t,a){throw this.makeError(e,t,a)}},{key:"throwArgumentError",value:function(t,a,r){return this.throwError(t,e.errors.INVALID_ARGUMENT,{argument:a,value:r})}},{key:"assert",value:function(e,t,a,r){e||this.throwError(t,a,r)}},{key:"assertArgument",value:function(e,t,a,r){e||this.throwArgumentError(t,a,r)}},{key:"checkNormalize",value:function(t){null==t&&(t="platform missing String.prototype.normalize"),u&&this.throwError("platform missing String.prototype.normalize",e.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:u})}},{key:"checkSafeUint53",value:function(t,a){"number"===typeof t&&(null==a&&(a="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(a,e.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(a,e.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}},{key:"checkArgumentCount",value:function(t,a,r){r=r?": "+r:"",ta&&this.throwError("too many arguments"+r,e.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:a})}},{key:"checkNew",value:function(t,a){t!==Object&&null!=t||this.throwError("missing new",e.errors.MISSING_NEW,{name:a.name})}},{key:"checkAbstract",value:function(t,a){t===a?this.throwError("cannot instantiate abstract class "+JSON.stringify(a.name)+" directly; use a sub-class",e.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):t!==Object&&null!=t||this.throwError("missing new",e.errors.MISSING_NEW,{name:a.name})}}],[{key:"globalLogger",value:function(){return o||(o=new e("logger/5.5.0")),o}},{key:"setCensorship",value:function(t,a){if(!t&&a&&this.globalLogger().throwError("cannot permanently disable censorship",e.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),c){if(!t)return;this.globalLogger().throwError("error censorship permanent",e.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}i=!!t,c=!!a}},{key:"setLogLevel",value:function(t){var a=f[t.toLowerCase()];null!=a?d=a:e.globalLogger().warn("invalid log level - "+t)}},{key:"from",value:function(t){return new e(t)}}]),e}();h.errors=b,h.levels=s},function(e,t,a){e.exports=a(102)},function(e,t,a){var r=a(3),n=r.Buffer;function c(e,t){for(var a in e)t[a]=e[a]}function i(e,t,a){return n(e,t,a)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(c(r,t),t.Buffer=i),i.prototype=Object.create(n.prototype),c(n,i),i.from=function(e,t,a){if("number"===typeof e)throw new TypeError("Argument must not be a number");return n(e,t,a)},i.alloc=function(e,t,a){if("number"!==typeof e)throw new TypeError("Argument must be a number");var r=n(e);return void 0!==t?"string"===typeof a?r.fill(t,a):r.fill(t):r.fill(0),r},i.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return n(e)},i.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,a){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}a.d(t,"a",(function(){return r}))},function(e,t,a){"use strict";a.d(t,"d",(function(){return o})),a.d(t,"e",(function(){return s})),a.d(t,"f",(function(){return b})),a.d(t,"b",(function(){return u})),a.d(t,"g",(function(){return l})),a.d(t,"c",(function(){return m})),a.d(t,"a",(function(){return v}));var r=a(1),n=a(9),c=a.n(n),i=a(8),f=function(e,t,a,r){return new(a||(a=Promise))((function(n,c){function i(e){try{d(r.next(e))}catch(t){c(t)}}function f(e){try{d(r.throw(e))}catch(t){c(t)}}function d(e){var t;e.done?n(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(i,f)}d((r=r.apply(e,t||[])).next())}))},d=new i.b("properties/5.5.0");function o(e,t,a){Object.defineProperty(e,t,{enumerable:!0,value:a,writable:!1})}function s(e,t){for(var a=0;a<32;a++){if(e[t])return e[t];if(!e.prototype||"object"!==typeof e.prototype)break;e=Object.getPrototypeOf(e.prototype).constructor}return null}function b(e){return f(this,void 0,void 0,c.a.mark((function t(){var a,r;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=Object.keys(e).map((function(t){var a=e[t];return Promise.resolve(a).then((function(e){return{key:t,value:e}}))})),t.next=3,Promise.all(a);case 3:return r=t.sent,t.abrupt("return",r.reduce((function(e,t){return e[t.key]=t.value,e}),{}));case 5:case"end":return t.stop()}}),t)})))}function u(e,t){e&&"object"===typeof e||d.throwArgumentError("invalid object","object",e),Object.keys(e).forEach((function(a){t[a]||d.throwArgumentError("invalid object key - "+a,"transaction:"+a,e)}))}function l(e){var t={};for(var a in e)t[a]=e[a];return t}var h={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function x(e){if(void 0===e||null===e||h[typeof e])return!0;if(Array.isArray(e)||"object"===typeof e){if(!Object.isFrozen(e))return!1;for(var t=Object.keys(e),a=0;a1)for(var a=1;at.length)throw new Error("invalid rlp: total length is larger than the data");if(0===(i=t.slice(r,b)).length)throw new Error("invalid rlp, List has a invalid length");for(;i.length;)d=f(i),o.push(d.data),i=d.remainder;return{data:o,remainder:t.slice(b)}}function d(e){return"0x"===e.slice(0,2)}function o(e){if(e<0)throw new Error("Invalid integer as argument, must be unsigned!");var t=e.toString(16);return t.length%2?"0"+t:t}function s(t){if(!e.isBuffer(t)){if("string"===typeof t)return d(t)?e.from((a="string"!==typeof(r=t)?r:d(r)?r.slice(2):r).length%2?"0"+a:a,"hex"):e.from(t);if("number"===typeof t||"bigint"===typeof t)return t?function(t){var a=o(t);return e.from(a,"hex")}(t):e.from([]);if(null===t||void 0===t)return e.from([]);if(t instanceof Uint8Array)return e.from(t);if(n.default.isBN(t))return e.from(t.toArray());throw new Error("invalid type")}var a,r;return t}t.encode=function t(a){if(Array.isArray(a)){for(var r=[],n=0;n=0&&(n=a.type.substring(c));var i=e(t,a.components);Array.isArray(i)&&t?r.push("tuple("+i.join(",")+")"+n):t?r.push("("+i+")"):r.push("("+i.join(",")+")"+n)}else r.push(a.type)})),r},o=function(e){if(!n.isHexStrict(e))throw new Error("The parameter must be a valid HEX string.");var t="",a=0,r=e.length;for("0x"===e.substring(0,2)&&(a=2);a7?a+=e[r].toUpperCase():a+=e[r];return a},toHex:n.toHex,toBN:n.toBN,bytesToHex:n.bytesToHex,hexToBytes:n.hexToBytes,hexToNumberString:n.hexToNumberString,hexToNumber:n.hexToNumber,toDecimal:n.hexToNumber,numberToHex:n.numberToHex,fromDecimal:n.numberToHex,hexToUtf8:n.hexToUtf8,hexToString:n.hexToUtf8,toUtf8:n.hexToUtf8,stripHexPrefix:n.stripHexPrefix,utf8ToHex:n.utf8ToHex,stringToHex:n.utf8ToHex,fromUtf8:n.utf8ToHex,hexToAscii:o,toAscii:o,asciiToHex:s,fromAscii:s,unitMap:r.unitMap,toWei:function(e,t){if(t=b(t),!n.isBN(e)&&"string"!==typeof e)throw new Error("Please pass numbers as strings or BN objects to avoid precision errors.");return n.isBN(e)?r.toWei(e,t):r.toWei(e,t).toString(10)},fromWei:function(e,t){if(t=b(t),!n.isBN(e)&&"string"!==typeof e)throw new Error("Please pass numbers as strings or BN objects to avoid precision errors.");return n.isBN(e)?r.fromWei(e,t):r.fromWei(e,t).toString(10)},padLeft:n.leftPad,leftPad:n.leftPad,padRight:n.rightPad,rightPad:n.rightPad,toTwosComplement:n.toTwosComplement,isBloom:n.isBloom,isUserEthereumAddressInBloom:n.isUserEthereumAddressInBloom,isContractAddressInBloom:n.isContractAddressInBloom,isTopic:n.isTopic,isTopicInBloom:n.isTopicInBloom,isInBloom:n.isInBloom,compareBlockNumbers:function(e,t){if(e==t)return 0;if("genesis"!=e&&"earliest"!=e&&0!=e||"genesis"!=t&&"earliest"!=t&&0!=t){if("genesis"==e||"earliest"==e)return-1;if("genesis"==t||"earliest"==t)return 1;if("latest"==e)return"pending"==t?-1:1;if("latest"===t)return"pending"==e?1:-1;if("pending"==e)return 1;if("pending"==t)return-1;var a=new f(e),r=new f(t);return a.lt(r)?-1:a.eq(r)?0:1}return 0},toNumber:n.toNumber}},function(e,t,a){var r=t;r.utils=a(28),r.common=a(72),r.sha=a(303),r.ripemd=a(307),r.hmac=a(308),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},function(e,t,a){"use strict";(function(t){var r=a(55);function n(e,t){if(e===t)return 0;for(var a=e.length,r=t.length,n=0,c=Math.min(a,r);n=0;o--)if(s[o]!==b[o])return!1;for(o=s.length-1;o>=0;o--)if(!g(e[f=s[o]],t[f],a,r))return!1;return!0}(e,t,a,r))}return a?e===t:e==t}function y(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function w(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(a){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function _(e,t,a,r){var n;if("function"!==typeof t)throw new TypeError('"block" argument must be a function');"string"===typeof a&&(r=a,a=null),n=function(e){var t;try{e()}catch(a){t=a}return t}(t),r=(a&&a.name?" ("+a.name+").":".")+(r?" "+r:"."),e&&!n&&m(n,a,"Missing expected exception"+r);var c="string"===typeof r,f=!e&&n&&!a;if((!e&&i.isError(n)&&c&&w(n,a)||f)&&m(n,a,"Got unwanted exception"+r),e&&n&&a&&!w(n,a)||!e&&n)throw n}u.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return x(p(e.actual),128)+" "+e.operator+" "+x(p(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||m;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var a=new Error;if(a.stack){var r=a.stack,n=h(t),c=r.indexOf("\n"+n);if(c>=0){var i=r.indexOf("\n",c+1);r=r.substring(i+1)}this.stack=r}}},i.inherits(u.AssertionError,Error),u.fail=m,u.ok=v,u.equal=function(e,t,a){e!=t&&m(e,t,a,"==",u.equal)},u.notEqual=function(e,t,a){e==t&&m(e,t,a,"!=",u.notEqual)},u.deepEqual=function(e,t,a){g(e,t,!1)||m(e,t,a,"deepEqual",u.deepEqual)},u.deepStrictEqual=function(e,t,a){g(e,t,!0)||m(e,t,a,"deepStrictEqual",u.deepStrictEqual)},u.notDeepEqual=function(e,t,a){g(e,t,!1)&&m(e,t,a,"notDeepEqual",u.notDeepEqual)},u.notDeepStrictEqual=function e(t,a,r){g(t,a,!0)&&m(t,a,r,"notDeepStrictEqual",e)},u.strictEqual=function(e,t,a){e!==t&&m(e,t,a,"===",u.strictEqual)},u.notStrictEqual=function(e,t,a){e===t&&m(e,t,a,"!==",u.notStrictEqual)},u.throws=function(e,t,a){_(!0,e,t,a)},u.doesNotThrow=function(e,t,a){_(!1,e,t,a)},u.ifError=function(e){if(e)throw e},u.strict=r((function e(t,a){t||m(t,!0,a,"==",e)}),u,{equal:u.strictEqual,deepEqual:u.deepStrictEqual,notEqual:u.notStrictEqual,notDeepEqual:u.notDeepStrictEqual}),u.strict.strict=u.strict;var M=Object.keys||function(e){var t=[];for(var a in e)f.call(e,a)&&t.push(a);return t}}).call(this,a(15))},function(e,t,a){"use strict";var r=t,n=a(6),c=a(23),i=a(165);r.assert=c,r.toArray=i.toArray,r.zero2=i.zero2,r.toHex=i.toHex,r.encode=i.encode,r.getNAF=function(e,t,a){var r=new Array(Math.max(e.bitLength(),a)+1);r.fill(0);for(var n=1<(n>>1)-1?(n>>1)-d:d,c.isubn(f)):f=0,r[i]=f,c.iushrn(1)}return r},r.getJSF=function(e,t){var a=[[],[]];e=e.clone(),t=t.clone();for(var r,n=0,c=0;e.cmpn(-n)>0||t.cmpn(-c)>0;){var i,f,d=e.andln(3)+n&3,o=t.andln(3)+c&3;3===d&&(d=-1),3===o&&(o=-1),i=0===(1&d)?0:3!==(r=e.andln(7)+n&7)&&5!==r||2!==o?d:-d,a[0].push(i),f=0===(1&o)?0:3!==(r=t.andln(7)+c&7)&&5!==r||2!==d?o:-o,a[1].push(f),2*n===i+1&&(n=1-n),2*c===f+1&&(c=1-c),e.iushrn(1),t.iushrn(1)}return a},r.cachedProperty=function(e,t,a){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=a.call(this)}},r.parseBytes=function(e){return"string"===typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new n(e,"hex","le")}},function(e,t){function a(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=a,a.equal=function(e,t,a){if(e!=t)throw new Error(a||"Assertion failed: "+e+" != "+t)}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,a){"use strict";a.d(t,"a",(function(){return x})),a.d(t,"e",(function(){return p})),a.d(t,"d",(function(){return m})),a.d(t,"b",(function(){return v})),a.d(t,"c",(function(){return g}));var r=a(0),n=a(37),c=a(18),i=a(26),f=new(a(8).b)("address/5.5.0");function d(e){Object(r.l)(e,20)||f.throwArgumentError("invalid address","address",e);for(var t=(e=e.toLowerCase()).substring(2).split(""),a=new Uint8Array(40),n=0;n<40;n++)a[n]=t[n].charCodeAt(0);for(var i=Object(r.a)(Object(c.a)(a)),d=0;d<40;d+=2)i[d>>1]>>4>=8&&(t[d]=t[d].toUpperCase()),(15&i[d>>1])>=8&&(t[d+1]=t[d+1].toUpperCase());return"0x"+t.join("")}for(var o={},s=0;s<10;s++)o[String(s)]=String(s);for(var b=0;b<26;b++)o[String.fromCharCode(65+b)]=String(10+b);var u,l=Math.floor((u=9007199254740991,Math.log10?Math.log10(u):Math.log(u)/Math.LN10));function h(e){for(var t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map((function(e){return o[e]})).join("");t.length>=l;){var a=t.substring(0,l);t=parseInt(a,10)%97+t.substring(a.length)}for(var r=String(98-parseInt(t,10)%97);r.length<2;)r="0"+r;return r}function x(e){var t=null;if("string"!==typeof e&&f.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),t=d(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&f.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==h(e)&&f.throwArgumentError("bad icap checksum","address",e),t=Object(n.c)(e.substring(4));t.length<40;)t="0"+t;t=d("0x"+t)}else f.throwArgumentError("invalid address","address",e);return t}function p(e){try{return x(e),!0}catch(t){}return!1}function m(e){for(var t=Object(n.b)(x(e).substring(2)).toUpperCase();t.length<30;)t="0"+t;return"XE"+h("XE00"+t)+t}function v(e){var t=null;try{t=x(e.from)}catch(d){f.throwArgumentError("missing from address","transaction",e)}var a=Object(r.o)(Object(r.a)(n.a.from(e.nonce).toHexString()));return x(Object(r.e)(Object(c.a)(Object(i.encode)([t,a])),12))}function g(e,t,a){return 32!==Object(r.d)(t)&&f.throwArgumentError("salt must be 32 bytes","salt",t),32!==Object(r.d)(a)&&f.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",a),x(Object(r.e)(Object(c.a)(Object(r.b)(["0xff",x(e),t,a])),12))}},function(e,t,a){"use strict";a.r(t),a.d(t,"encode",(function(){return o})),a.d(t,"decode",(function(){return u}));var r=a(0),n=a(8),c=new n.b("rlp/5.5.0");function i(e){for(var t=[];e;)t.unshift(255&e),e>>=8;return t}function f(e,t,a){for(var r=0,n=0;nt+1+r&&c.throwError("child data too short",n.b.errors.BUFFER_OVERRUN,{})}return{consumed:1+r,result:i}}function b(e,t){if(0===e.length&&c.throwError("data too short",n.b.errors.BUFFER_OVERRUN,{}),e[t]>=248){var a=e[t]-247;t+1+a>e.length&&c.throwError("data short segment too short",n.b.errors.BUFFER_OVERRUN,{});var i=f(e,t+1,a);return t+1+a+i>e.length&&c.throwError("data long segment too short",n.b.errors.BUFFER_OVERRUN,{}),s(e,t,t+1+a,a+i)}if(e[t]>=192){var d=e[t]-192;return t+1+d>e.length&&c.throwError("data array too short",n.b.errors.BUFFER_OVERRUN,{}),s(e,t,t+1,d)}if(e[t]>=184){var o=e[t]-183;t+1+o>e.length&&c.throwError("data array too short",n.b.errors.BUFFER_OVERRUN,{});var b=f(e,t+1,o);return t+1+o+b>e.length&&c.throwError("data array too short",n.b.errors.BUFFER_OVERRUN,{}),{consumed:1+o+b,result:Object(r.i)(e.slice(t+1+o,t+1+o+b))}}if(e[t]>=128){var u=e[t]-128;return t+1+u>e.length&&c.throwError("data too short",n.b.errors.BUFFER_OVERRUN,{}),{consumed:1+u,result:Object(r.i)(e.slice(t+1,t+1+u))}}return{consumed:1,result:Object(r.i)(e[t])}}function u(e){var t=Object(r.a)(e),a=b(t,0);return a.consumed!==t.length&&c.throwArgumentError("invalid rlp data","data",e),a.result}},function(e,t,a){"use strict";var r,n="object"===typeof Reflect?Reflect:null,c=n&&"function"===typeof n.apply?n.apply:function(e,t,a){return Function.prototype.apply.call(e,t,a)};r=n&&"function"===typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!==e};function f(){f.init.call(this)}e.exports=f,e.exports.once=function(e,t){return new Promise((function(a,r){function n(a){e.removeListener(t,c),r(a)}function c(){"function"===typeof e.removeListener&&e.removeListener("error",n),a([].slice.call(arguments))}m(e,t,c,{once:!0}),"error"!==t&&function(e,t,a){"function"===typeof e.on&&m(e,"error",t,a)}(e,n,{once:!0})}))},f.EventEmitter=f,f.prototype._events=void 0,f.prototype._eventsCount=0,f.prototype._maxListeners=void 0;var d=10;function o(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function s(e){return void 0===e._maxListeners?f.defaultMaxListeners:e._maxListeners}function b(e,t,a,r){var n,c,i,f;if(o(a),void 0===(c=e._events)?(c=e._events=Object.create(null),e._eventsCount=0):(void 0!==c.newListener&&(e.emit("newListener",t,a.listener?a.listener:a),c=e._events),i=c[t]),void 0===i)i=c[t]=a,++e._eventsCount;else if("function"===typeof i?i=c[t]=r?[a,i]:[i,a]:r?i.unshift(a):i.push(a),(n=s(e))>0&&i.length>n&&!i.warned){i.warned=!0;var d=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");d.name="MaxListenersExceededWarning",d.emitter=e,d.type=t,d.count=i.length,f=d,console&&console.warn&&console.warn(f)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function l(e,t,a){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:a},n=u.bind(r);return n.listener=a,r.wrapFn=n,n}function h(e,t,a){var r=e._events;if(void 0===r)return[];var n=r[t];return void 0===n?[]:"function"===typeof n?a?[n.listener||n]:[n]:a?function(e){for(var t=new Array(e.length),a=0;a0&&(i=t[0]),i instanceof Error)throw i;var f=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw f.context=i,f}var d=n[e];if(void 0===d)return!1;if("function"===typeof d)c(d,this,t);else{var o=d.length,s=p(d,o);for(a=0;a=0;c--)if(a[c]===t||a[c].listener===t){i=a[c].listener,n=c;break}if(n<0)return this;0===n?a.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},f.prototype.listeners=function(e){return h(this,e,!0)},f.prototype.rawListeners=function(e){return h(this,e,!1)},f.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):x.call(e,t)},f.prototype.listenerCount=x,f.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,a){"use strict";var r=a(23),n=a(7);function c(e,t){return 55296===(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320===(64512&e.charCodeAt(t+1)))}function i(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function f(e){return 1===e.length?"0"+e:e}function d(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=n,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var a=[];if("string"===typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(e="0"+e),n=0;n>6|192,a[r++]=63&i|128):c(e,n)?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++n)),a[r++]=i>>18|240,a[r++]=i>>12&63|128,a[r++]=i>>6&63|128,a[r++]=63&i|128):(a[r++]=i>>12|224,a[r++]=i>>6&63|128,a[r++]=63&i|128)}else for(n=0;n>>0}return i},t.split32=function(e,t){for(var a=new Array(4*e.length),r=0,n=0;r>>24,a[n+1]=c>>>16&255,a[n+2]=c>>>8&255,a[n+3]=255&c):(a[n+3]=c>>>24,a[n+2]=c>>>16&255,a[n+1]=c>>>8&255,a[n]=255&c)}return a},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,a){return e+t+a>>>0},t.sum32_4=function(e,t,a,r){return e+t+a+r>>>0},t.sum32_5=function(e,t,a,r,n){return e+t+a+r+n>>>0},t.sum64=function(e,t,a,r){var n=e[t],c=r+e[t+1]>>>0,i=(c>>0,e[t+1]=c},t.sum64_hi=function(e,t,a,r){return(t+r>>>0>>0},t.sum64_lo=function(e,t,a,r){return t+r>>>0},t.sum64_4_hi=function(e,t,a,r,n,c,i,f){var d=0,o=t;return d+=(o=o+r>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,a,r,n,c,i,f){return t+r+c+f>>>0},t.sum64_5_hi=function(e,t,a,r,n,c,i,f,d,o){var s=0,b=t;return s+=(b=b+r>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,a,r,n,c,i,f,d,o){return t+r+c+f+o>>>0},t.rotr64_hi=function(e,t,a){return(t<<32-a|e>>>a)>>>0},t.rotr64_lo=function(e,t,a){return(e<<32-a|t>>>a)>>>0},t.shr64_hi=function(e,t,a){return e>>>a},t.shr64_lo=function(e,t,a){return(e<<32-a|t>>>a)>>>0}},function(e,t,a){"use strict";function r(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}a.d(t,"a",(function(){return r}))},function(e,t,a){"use strict";var r=a(7),n=a(115),c=a(108),i=a(109),f=a(36);function d(e){f.call(this,"digest"),this._hash=e}r(d,f),d.prototype._update=function(e){this._hash.update(e)},d.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new n:"rmd160"===e||"ripemd160"===e?new c:new d(i(e))}},function(e,t,a){"use strict";var r=a(10).Buffer,n=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function c(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!==typeof t&&(r.isEncoding===n||!n(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=d,this.end=o,t=4;break;case"utf8":this.fillLast=f,t=4;break;case"base64":this.text=s,this.end=b,t=3;break;default:return this.write=u,void(this.end=l)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function i(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function f(e){var t=this.lastTotal-this.lastNeed,a=function(e,t,a){if(128!==(192&t[0]))return e.lastNeed=0,"\ufffd";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"\ufffd";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"\ufffd"}}(this,e);return void 0!==a?a:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function d(e,t){if((e.length-t)%2===0){var a=e.toString("utf16le",t);if(a){var r=a.charCodeAt(a.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],a.slice(0,-1)}return a}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function o(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var a=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,a)}return t}function s(e,t){var a=(e.length-t)%3;return 0===a?e.toString("base64",t):(this.lastNeed=3-a,this.lastTotal=3,1===a?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-a))}function b(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function u(e){return e.toString(this.encoding)}function l(e){return e&&e.length?this.write(e):""}t.StringDecoder=c,c.prototype.write=function(e){if(0===e.length)return"";var t,a;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";a=this.lastNeed,this.lastNeed=0}else a=0;return a=0)return n>0&&(e.lastNeed=n-1),n;if(--r=0)return n>0&&(e.lastNeed=n-2),n;if(--r=0)return n>0&&(2===n?n=0:e.lastNeed=n-3),n;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=a;var r=e.length-(a-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},c.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,a){var r=a(110);e.exports=function(e,t){var a;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(a=r(e))||t&&e&&"number"===typeof e.length){a&&(e=a);var n=0,c=function(){};return{s:c,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:c}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,f=!0,d=!1;return{s:function(){a=e[Symbol.iterator]()},n:function(){var e=a.next();return f=e.done,e},e:function(e){d=!0,i=e},f:function(){try{f||null==a.return||a.return()}finally{if(d)throw i}}}}},function(e,t,a){"use strict";var r=this&&this.__awaiter||function(e,t,a,r){return new(a||(a=Promise))((function(n,c){function i(e){try{d(r.next(e))}catch(t){c(t)}}function f(e){try{d(r.throw(e))}catch(t){c(t)}}function d(e){var t;e.done?n(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(i,f)}d((r=r.apply(e,t||[])).next())}))},n=this&&this.__generator||function(e,t){var a,r,n,c,i={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return c={next:f(0),throw:f(1),return:f(2)},"function"===typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function f(c){return function(f){return function(c){if(a)throw new TypeError("Generator is already executing.");for(;i;)try{if(a=1,r&&(n=2&c[0]?r.return:c[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;switch(r=0,n&&(c=[2&c[0],n.value]),c[0]){case 0:case 1:n=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(n=(n=i.trys).length>0&&n[n.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!n||c[1]>n[0]&&c[1]c)throw new RangeError("requested too many random bytes");var a=i.allocUnsafe(e);if(e>0)if(e>n)for(var d=0;d0&&(10===arguments[0]?x||(x=!0,b.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?b.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",d.b.errors.UNEXPECTED_ARGUMENT,{}):b.throwError("BigNumber.toString does not accept parameters",d.b.errors.UNEXPECTED_ARGUMENT,{})),g(this).toString(10)}},{key:"toHexString",value:function(){return this._hex}},{key:"toJSON",value:function(e){return{type:"BigNumber",hex:this.toHexString()}}}],[{key:"from",value:function(t){if(t instanceof e)return t;if("string"===typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new e(u,m(t)):t.match(/^-?[0-9]+$/)?new e(u,m(new s(t))):b.throwArgumentError("invalid BigNumber string","value",t);if("number"===typeof t)return t%1&&y("underflow","BigNumber.from",t),(t>=l||t<=-l)&&y("overflow","BigNumber.from",t),e.from(String(t));var a=t;if("bigint"===typeof a)return e.from(a.toString());if(Object(f.j)(a))return e.from(Object(f.i)(a));if(a)if(a.toHexString){var r=a.toHexString();if("string"===typeof r)return e.from(r)}else{var n=a._hex;if(null==n&&"BigNumber"===a.type&&(n=a.hex),"string"===typeof n&&(Object(f.l)(n)||"-"===n[0]&&Object(f.l)(n.substring(1))))return e.from(n)}return b.throwArgumentError("invalid BigNumber value","value",t)}},{key:"isBigNumber",value:function(e){return!(!e||!e._isBigNumber)}}]),e}();function m(e){if("string"!==typeof e)return m(e.toString(16));if("-"===e[0])return"-"===(e=e.substring(1))[0]&&b.throwArgumentError("invalid hex","value",e),"0x00"===(e=m(e))?e:"-"+e;if("0x"!==e.substring(0,2)&&(e="0x"+e),"0x"===e)return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&"0x00"===e.substring(0,4);)e="0x"+e.substring(4);return e}function v(e){return p.from(m(e))}function g(e){var t=p.from(e).toHexString();return"-"===t[0]?new s("-"+t.substring(3),16):new s(t.substring(2),16)}function y(e,t,a){var r={fault:e,operation:t};return null!=a&&(r.value=a),b.throwError(e,d.b.errors.NUMERIC_FAULT,r)}function w(e){return new s(e,36).toString(16)}function _(e){return new s(e,16).toString(36)}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function a(e,t){for(var a=0;a=48&&a<=57?a-48:a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:void r(!1,"Invalid character in "+e)}function d(e,t,a){var r=f(e,a);return a-1>=t&&(r|=f(e,a-1)<<4),r}function o(e,t,a,n){for(var c=0,i=0,f=Math.min(e.length,a),d=t;d=49?o-49+10:o>=17?o-17+10:o,r(o>=0&&i0?e:t},c.min=function(e,t){return e.cmp(t)<0?e:t},c.prototype._init=function(e,t,a){if("number"===typeof e)return this._initNumber(e,t,a);if("object"===typeof e)return this._initArray(e,t,a);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;n-=3)i=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[c]|=i<>>26-f&67108863,(f+=24)>=26&&(f-=26,c++);else if("le"===a)for(n=0,c=0;n>>26-f&67108863,(f+=24)>=26&&(f-=26,c++);return this._strip()},c.prototype._parseHex=function(e,t,a){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)n=d(e,t,r)<=18?(c-=18,i+=1,this.words[i]|=n>>>26):c+=8;else for(r=(e.length-t)%2===0?t+1:t;r=18?(c-=18,i+=1,this.words[i]|=n>>>26):c+=8;this._strip()},c.prototype._parseBase=function(e,t,a){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=t)r++;r--,n=n/t|0;for(var c=e.length-a,i=c%r,f=Math.min(c,c-i)+a,d=0,s=a;s1&&0===this.words[this.length-1];)this.length--;return this._normSign()},c.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!==typeof Symbol&&"function"===typeof Symbol.for)try{c.prototype[Symbol.for("nodejs.util.inspect.custom")]=b}catch(O){c.prototype.inspect=b}else c.prototype.inspect=b;function b(){return(this.red?""}var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];c.prototype.toString=function(e,t){var a;if(t=0|t||1,16===(e=e||10)||"hex"===e){a="";for(var n=0,c=0,i=0;i>>24-n&16777215)||i!==this.length-1?u[6-d.length]+d+a:d+a,(n+=2)>=26&&(n-=26,i--)}for(0!==c&&(a=c.toString(16)+a);a.length%t!==0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}if(e===(0|e)&&e>=2&&e<=36){var o=l[e],s=h[e];a="";var b=this.clone();for(b.negative=0;!b.isZero();){var x=b.modrn(s).toString(e);a=(b=b.idivn(s)).isZero()?x+a:u[o-x.length]+x+a}for(this.isZero()&&(a="0"+a);a.length%t!==0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}r(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},c.prototype.toJSON=function(){return this.toString(16,2)},i&&(c.prototype.toBuffer=function(e,t){return this.toArrayLike(i,e,t)}),c.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function x(e,t,a){a.negative=t.negative^e.negative;var r=e.length+t.length|0;a.length=r,r=r-1|0;var n=0|e.words[0],c=0|t.words[0],i=n*c,f=67108863&i,d=i/67108864|0;a.words[0]=f;for(var o=1;o>>26,b=67108863&d,u=Math.min(o,t.length-1),l=Math.max(0,o-e.length+1);l<=u;l++){var h=o-l|0;s+=(i=(n=0|e.words[h])*(c=0|t.words[l])+b)/67108864|0,b=67108863&i}a.words[o]=0|b,d=0|s}return 0!==d?a.words[o]=0|d:a.length--,a._strip()}c.prototype.toArrayLike=function(e,t,a){this._strip();var n=this.byteLength(),c=a||Math.max(1,n);r(n<=c,"byte array longer than desired length"),r(c>0,"Requested array length <= 0");var i=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,c);return this["_toArrayLike"+("le"===t?"LE":"BE")](i,n),i},c.prototype._toArrayLikeLE=function(e,t){for(var a=0,r=0,n=0,c=0;n>8&255),a>16&255),6===c?(a>24&255),r=0,c=0):(r=i>>>24,c+=2)}if(a=0&&(e[a--]=i>>8&255),a>=0&&(e[a--]=i>>16&255),6===c?(a>=0&&(e[a--]=i>>24&255),r=0,c=0):(r=i>>>24,c+=2)}if(a>=0)for(e[a--]=r;a>=0;)e[a--]=0},Math.clz32?c.prototype._countBits=function(e){return 32-Math.clz32(e)}:c.prototype._countBits=function(e){var t=e,a=0;return t>=4096&&(a+=13,t>>>=13),t>=64&&(a+=7,t>>>=7),t>=8&&(a+=4,t>>>=4),t>=2&&(a+=2,t>>>=2),a+t},c.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,a=0;return 0===(8191&t)&&(a+=13,t>>>=13),0===(127&t)&&(a+=7,t>>>=7),0===(15&t)&&(a+=4,t>>>=4),0===(3&t)&&(a+=2,t>>>=2),0===(1&t)&&a++,a},c.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},c.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},c.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var a=0;ae.length?this.clone().iand(e):e.clone().iand(this)},c.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},c.prototype.iuxor=function(e){var t,a;this.length>e.length?(t=this,a=e):(t=e,a=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},c.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},c.prototype.inotn=function(e){r("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),a=e%26;this._expand(t),a>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-a),this._strip()},c.prototype.notn=function(e){return this.clone().inotn(e)},c.prototype.setn=function(e,t){r("number"===typeof e&&e>=0);var a=e/26|0,n=e%26;return this._expand(a+1),this.words[a]=t?this.words[a]|1<e.length?(a=this,r=e):(a=e,r=this);for(var n=0,c=0;c>>26;for(;0!==n&&c>>26;if(this.length=a.length,0!==n)this.words[this.length]=n,this.length++;else if(a!==this)for(;ce.length?this.clone().iadd(e):e.clone().iadd(this)},c.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var a,r,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(a=this,r=e):(a=e,r=this);for(var c=0,i=0;i>26,this.words[i]=67108863&t;for(;0!==c&&i>26,this.words[i]=67108863&t;if(0===c&&i>>13,l=0|i[1],h=8191&l,x=l>>>13,p=0|i[2],m=8191&p,v=p>>>13,g=0|i[3],y=8191&g,w=g>>>13,_=0|i[4],M=8191&_,k=_>>>13,S=0|i[5],A=8191&S,E=S>>>13,O=0|i[6],P=8191&O,T=O>>>13,B=0|i[7],R=8191&B,C=B>>>13,j=0|i[8],I=8191&j,N=j>>>13,L=0|i[9],U=8191&L,F=L>>>13,D=0|f[0],z=8191&D,H=D>>>13,q=0|f[1],K=8191&q,W=q>>>13,V=0|f[2],$=8191&V,G=V>>>13,Z=0|f[3],J=8191&Z,X=Z>>>13,Y=0|f[4],Q=8191&Y,ee=Y>>>13,te=0|f[5],ae=8191&te,re=te>>>13,ne=0|f[6],ce=8191&ne,ie=ne>>>13,fe=0|f[7],de=8191&fe,oe=fe>>>13,se=0|f[8],be=8191&se,ue=se>>>13,le=0|f[9],he=8191&le,xe=le>>>13;a.negative=e.negative^t.negative,a.length=19;var pe=(o+(r=Math.imul(b,z))|0)+((8191&(n=(n=Math.imul(b,H))+Math.imul(u,z)|0))<<13)|0;o=((c=Math.imul(u,H))+(n>>>13)|0)+(pe>>>26)|0,pe&=67108863,r=Math.imul(h,z),n=(n=Math.imul(h,H))+Math.imul(x,z)|0,c=Math.imul(x,H);var me=(o+(r=r+Math.imul(b,K)|0)|0)+((8191&(n=(n=n+Math.imul(b,W)|0)+Math.imul(u,K)|0))<<13)|0;o=((c=c+Math.imul(u,W)|0)+(n>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(m,z),n=(n=Math.imul(m,H))+Math.imul(v,z)|0,c=Math.imul(v,H),r=r+Math.imul(h,K)|0,n=(n=n+Math.imul(h,W)|0)+Math.imul(x,K)|0,c=c+Math.imul(x,W)|0;var ve=(o+(r=r+Math.imul(b,$)|0)|0)+((8191&(n=(n=n+Math.imul(b,G)|0)+Math.imul(u,$)|0))<<13)|0;o=((c=c+Math.imul(u,G)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(y,z),n=(n=Math.imul(y,H))+Math.imul(w,z)|0,c=Math.imul(w,H),r=r+Math.imul(m,K)|0,n=(n=n+Math.imul(m,W)|0)+Math.imul(v,K)|0,c=c+Math.imul(v,W)|0,r=r+Math.imul(h,$)|0,n=(n=n+Math.imul(h,G)|0)+Math.imul(x,$)|0,c=c+Math.imul(x,G)|0;var ge=(o+(r=r+Math.imul(b,J)|0)|0)+((8191&(n=(n=n+Math.imul(b,X)|0)+Math.imul(u,J)|0))<<13)|0;o=((c=c+Math.imul(u,X)|0)+(n>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(M,z),n=(n=Math.imul(M,H))+Math.imul(k,z)|0,c=Math.imul(k,H),r=r+Math.imul(y,K)|0,n=(n=n+Math.imul(y,W)|0)+Math.imul(w,K)|0,c=c+Math.imul(w,W)|0,r=r+Math.imul(m,$)|0,n=(n=n+Math.imul(m,G)|0)+Math.imul(v,$)|0,c=c+Math.imul(v,G)|0,r=r+Math.imul(h,J)|0,n=(n=n+Math.imul(h,X)|0)+Math.imul(x,J)|0,c=c+Math.imul(x,X)|0;var ye=(o+(r=r+Math.imul(b,Q)|0)|0)+((8191&(n=(n=n+Math.imul(b,ee)|0)+Math.imul(u,Q)|0))<<13)|0;o=((c=c+Math.imul(u,ee)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(A,z),n=(n=Math.imul(A,H))+Math.imul(E,z)|0,c=Math.imul(E,H),r=r+Math.imul(M,K)|0,n=(n=n+Math.imul(M,W)|0)+Math.imul(k,K)|0,c=c+Math.imul(k,W)|0,r=r+Math.imul(y,$)|0,n=(n=n+Math.imul(y,G)|0)+Math.imul(w,$)|0,c=c+Math.imul(w,G)|0,r=r+Math.imul(m,J)|0,n=(n=n+Math.imul(m,X)|0)+Math.imul(v,J)|0,c=c+Math.imul(v,X)|0,r=r+Math.imul(h,Q)|0,n=(n=n+Math.imul(h,ee)|0)+Math.imul(x,Q)|0,c=c+Math.imul(x,ee)|0;var we=(o+(r=r+Math.imul(b,ae)|0)|0)+((8191&(n=(n=n+Math.imul(b,re)|0)+Math.imul(u,ae)|0))<<13)|0;o=((c=c+Math.imul(u,re)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(P,z),n=(n=Math.imul(P,H))+Math.imul(T,z)|0,c=Math.imul(T,H),r=r+Math.imul(A,K)|0,n=(n=n+Math.imul(A,W)|0)+Math.imul(E,K)|0,c=c+Math.imul(E,W)|0,r=r+Math.imul(M,$)|0,n=(n=n+Math.imul(M,G)|0)+Math.imul(k,$)|0,c=c+Math.imul(k,G)|0,r=r+Math.imul(y,J)|0,n=(n=n+Math.imul(y,X)|0)+Math.imul(w,J)|0,c=c+Math.imul(w,X)|0,r=r+Math.imul(m,Q)|0,n=(n=n+Math.imul(m,ee)|0)+Math.imul(v,Q)|0,c=c+Math.imul(v,ee)|0,r=r+Math.imul(h,ae)|0,n=(n=n+Math.imul(h,re)|0)+Math.imul(x,ae)|0,c=c+Math.imul(x,re)|0;var _e=(o+(r=r+Math.imul(b,ce)|0)|0)+((8191&(n=(n=n+Math.imul(b,ie)|0)+Math.imul(u,ce)|0))<<13)|0;o=((c=c+Math.imul(u,ie)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(R,z),n=(n=Math.imul(R,H))+Math.imul(C,z)|0,c=Math.imul(C,H),r=r+Math.imul(P,K)|0,n=(n=n+Math.imul(P,W)|0)+Math.imul(T,K)|0,c=c+Math.imul(T,W)|0,r=r+Math.imul(A,$)|0,n=(n=n+Math.imul(A,G)|0)+Math.imul(E,$)|0,c=c+Math.imul(E,G)|0,r=r+Math.imul(M,J)|0,n=(n=n+Math.imul(M,X)|0)+Math.imul(k,J)|0,c=c+Math.imul(k,X)|0,r=r+Math.imul(y,Q)|0,n=(n=n+Math.imul(y,ee)|0)+Math.imul(w,Q)|0,c=c+Math.imul(w,ee)|0,r=r+Math.imul(m,ae)|0,n=(n=n+Math.imul(m,re)|0)+Math.imul(v,ae)|0,c=c+Math.imul(v,re)|0,r=r+Math.imul(h,ce)|0,n=(n=n+Math.imul(h,ie)|0)+Math.imul(x,ce)|0,c=c+Math.imul(x,ie)|0;var Me=(o+(r=r+Math.imul(b,de)|0)|0)+((8191&(n=(n=n+Math.imul(b,oe)|0)+Math.imul(u,de)|0))<<13)|0;o=((c=c+Math.imul(u,oe)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(I,z),n=(n=Math.imul(I,H))+Math.imul(N,z)|0,c=Math.imul(N,H),r=r+Math.imul(R,K)|0,n=(n=n+Math.imul(R,W)|0)+Math.imul(C,K)|0,c=c+Math.imul(C,W)|0,r=r+Math.imul(P,$)|0,n=(n=n+Math.imul(P,G)|0)+Math.imul(T,$)|0,c=c+Math.imul(T,G)|0,r=r+Math.imul(A,J)|0,n=(n=n+Math.imul(A,X)|0)+Math.imul(E,J)|0,c=c+Math.imul(E,X)|0,r=r+Math.imul(M,Q)|0,n=(n=n+Math.imul(M,ee)|0)+Math.imul(k,Q)|0,c=c+Math.imul(k,ee)|0,r=r+Math.imul(y,ae)|0,n=(n=n+Math.imul(y,re)|0)+Math.imul(w,ae)|0,c=c+Math.imul(w,re)|0,r=r+Math.imul(m,ce)|0,n=(n=n+Math.imul(m,ie)|0)+Math.imul(v,ce)|0,c=c+Math.imul(v,ie)|0,r=r+Math.imul(h,de)|0,n=(n=n+Math.imul(h,oe)|0)+Math.imul(x,de)|0,c=c+Math.imul(x,oe)|0;var ke=(o+(r=r+Math.imul(b,be)|0)|0)+((8191&(n=(n=n+Math.imul(b,ue)|0)+Math.imul(u,be)|0))<<13)|0;o=((c=c+Math.imul(u,ue)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(U,z),n=(n=Math.imul(U,H))+Math.imul(F,z)|0,c=Math.imul(F,H),r=r+Math.imul(I,K)|0,n=(n=n+Math.imul(I,W)|0)+Math.imul(N,K)|0,c=c+Math.imul(N,W)|0,r=r+Math.imul(R,$)|0,n=(n=n+Math.imul(R,G)|0)+Math.imul(C,$)|0,c=c+Math.imul(C,G)|0,r=r+Math.imul(P,J)|0,n=(n=n+Math.imul(P,X)|0)+Math.imul(T,J)|0,c=c+Math.imul(T,X)|0,r=r+Math.imul(A,Q)|0,n=(n=n+Math.imul(A,ee)|0)+Math.imul(E,Q)|0,c=c+Math.imul(E,ee)|0,r=r+Math.imul(M,ae)|0,n=(n=n+Math.imul(M,re)|0)+Math.imul(k,ae)|0,c=c+Math.imul(k,re)|0,r=r+Math.imul(y,ce)|0,n=(n=n+Math.imul(y,ie)|0)+Math.imul(w,ce)|0,c=c+Math.imul(w,ie)|0,r=r+Math.imul(m,de)|0,n=(n=n+Math.imul(m,oe)|0)+Math.imul(v,de)|0,c=c+Math.imul(v,oe)|0,r=r+Math.imul(h,be)|0,n=(n=n+Math.imul(h,ue)|0)+Math.imul(x,be)|0,c=c+Math.imul(x,ue)|0;var Se=(o+(r=r+Math.imul(b,he)|0)|0)+((8191&(n=(n=n+Math.imul(b,xe)|0)+Math.imul(u,he)|0))<<13)|0;o=((c=c+Math.imul(u,xe)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(U,K),n=(n=Math.imul(U,W))+Math.imul(F,K)|0,c=Math.imul(F,W),r=r+Math.imul(I,$)|0,n=(n=n+Math.imul(I,G)|0)+Math.imul(N,$)|0,c=c+Math.imul(N,G)|0,r=r+Math.imul(R,J)|0,n=(n=n+Math.imul(R,X)|0)+Math.imul(C,J)|0,c=c+Math.imul(C,X)|0,r=r+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(T,Q)|0,c=c+Math.imul(T,ee)|0,r=r+Math.imul(A,ae)|0,n=(n=n+Math.imul(A,re)|0)+Math.imul(E,ae)|0,c=c+Math.imul(E,re)|0,r=r+Math.imul(M,ce)|0,n=(n=n+Math.imul(M,ie)|0)+Math.imul(k,ce)|0,c=c+Math.imul(k,ie)|0,r=r+Math.imul(y,de)|0,n=(n=n+Math.imul(y,oe)|0)+Math.imul(w,de)|0,c=c+Math.imul(w,oe)|0,r=r+Math.imul(m,be)|0,n=(n=n+Math.imul(m,ue)|0)+Math.imul(v,be)|0,c=c+Math.imul(v,ue)|0;var Ae=(o+(r=r+Math.imul(h,he)|0)|0)+((8191&(n=(n=n+Math.imul(h,xe)|0)+Math.imul(x,he)|0))<<13)|0;o=((c=c+Math.imul(x,xe)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(U,$),n=(n=Math.imul(U,G))+Math.imul(F,$)|0,c=Math.imul(F,G),r=r+Math.imul(I,J)|0,n=(n=n+Math.imul(I,X)|0)+Math.imul(N,J)|0,c=c+Math.imul(N,X)|0,r=r+Math.imul(R,Q)|0,n=(n=n+Math.imul(R,ee)|0)+Math.imul(C,Q)|0,c=c+Math.imul(C,ee)|0,r=r+Math.imul(P,ae)|0,n=(n=n+Math.imul(P,re)|0)+Math.imul(T,ae)|0,c=c+Math.imul(T,re)|0,r=r+Math.imul(A,ce)|0,n=(n=n+Math.imul(A,ie)|0)+Math.imul(E,ce)|0,c=c+Math.imul(E,ie)|0,r=r+Math.imul(M,de)|0,n=(n=n+Math.imul(M,oe)|0)+Math.imul(k,de)|0,c=c+Math.imul(k,oe)|0,r=r+Math.imul(y,be)|0,n=(n=n+Math.imul(y,ue)|0)+Math.imul(w,be)|0,c=c+Math.imul(w,ue)|0;var Ee=(o+(r=r+Math.imul(m,he)|0)|0)+((8191&(n=(n=n+Math.imul(m,xe)|0)+Math.imul(v,he)|0))<<13)|0;o=((c=c+Math.imul(v,xe)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(U,J),n=(n=Math.imul(U,X))+Math.imul(F,J)|0,c=Math.imul(F,X),r=r+Math.imul(I,Q)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(N,Q)|0,c=c+Math.imul(N,ee)|0,r=r+Math.imul(R,ae)|0,n=(n=n+Math.imul(R,re)|0)+Math.imul(C,ae)|0,c=c+Math.imul(C,re)|0,r=r+Math.imul(P,ce)|0,n=(n=n+Math.imul(P,ie)|0)+Math.imul(T,ce)|0,c=c+Math.imul(T,ie)|0,r=r+Math.imul(A,de)|0,n=(n=n+Math.imul(A,oe)|0)+Math.imul(E,de)|0,c=c+Math.imul(E,oe)|0,r=r+Math.imul(M,be)|0,n=(n=n+Math.imul(M,ue)|0)+Math.imul(k,be)|0,c=c+Math.imul(k,ue)|0;var Oe=(o+(r=r+Math.imul(y,he)|0)|0)+((8191&(n=(n=n+Math.imul(y,xe)|0)+Math.imul(w,he)|0))<<13)|0;o=((c=c+Math.imul(w,xe)|0)+(n>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(U,Q),n=(n=Math.imul(U,ee))+Math.imul(F,Q)|0,c=Math.imul(F,ee),r=r+Math.imul(I,ae)|0,n=(n=n+Math.imul(I,re)|0)+Math.imul(N,ae)|0,c=c+Math.imul(N,re)|0,r=r+Math.imul(R,ce)|0,n=(n=n+Math.imul(R,ie)|0)+Math.imul(C,ce)|0,c=c+Math.imul(C,ie)|0,r=r+Math.imul(P,de)|0,n=(n=n+Math.imul(P,oe)|0)+Math.imul(T,de)|0,c=c+Math.imul(T,oe)|0,r=r+Math.imul(A,be)|0,n=(n=n+Math.imul(A,ue)|0)+Math.imul(E,be)|0,c=c+Math.imul(E,ue)|0;var Pe=(o+(r=r+Math.imul(M,he)|0)|0)+((8191&(n=(n=n+Math.imul(M,xe)|0)+Math.imul(k,he)|0))<<13)|0;o=((c=c+Math.imul(k,xe)|0)+(n>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(U,ae),n=(n=Math.imul(U,re))+Math.imul(F,ae)|0,c=Math.imul(F,re),r=r+Math.imul(I,ce)|0,n=(n=n+Math.imul(I,ie)|0)+Math.imul(N,ce)|0,c=c+Math.imul(N,ie)|0,r=r+Math.imul(R,de)|0,n=(n=n+Math.imul(R,oe)|0)+Math.imul(C,de)|0,c=c+Math.imul(C,oe)|0,r=r+Math.imul(P,be)|0,n=(n=n+Math.imul(P,ue)|0)+Math.imul(T,be)|0,c=c+Math.imul(T,ue)|0;var Te=(o+(r=r+Math.imul(A,he)|0)|0)+((8191&(n=(n=n+Math.imul(A,xe)|0)+Math.imul(E,he)|0))<<13)|0;o=((c=c+Math.imul(E,xe)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(U,ce),n=(n=Math.imul(U,ie))+Math.imul(F,ce)|0,c=Math.imul(F,ie),r=r+Math.imul(I,de)|0,n=(n=n+Math.imul(I,oe)|0)+Math.imul(N,de)|0,c=c+Math.imul(N,oe)|0,r=r+Math.imul(R,be)|0,n=(n=n+Math.imul(R,ue)|0)+Math.imul(C,be)|0,c=c+Math.imul(C,ue)|0;var Be=(o+(r=r+Math.imul(P,he)|0)|0)+((8191&(n=(n=n+Math.imul(P,xe)|0)+Math.imul(T,he)|0))<<13)|0;o=((c=c+Math.imul(T,xe)|0)+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,r=Math.imul(U,de),n=(n=Math.imul(U,oe))+Math.imul(F,de)|0,c=Math.imul(F,oe),r=r+Math.imul(I,be)|0,n=(n=n+Math.imul(I,ue)|0)+Math.imul(N,be)|0,c=c+Math.imul(N,ue)|0;var Re=(o+(r=r+Math.imul(R,he)|0)|0)+((8191&(n=(n=n+Math.imul(R,xe)|0)+Math.imul(C,he)|0))<<13)|0;o=((c=c+Math.imul(C,xe)|0)+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863,r=Math.imul(U,be),n=(n=Math.imul(U,ue))+Math.imul(F,be)|0,c=Math.imul(F,ue);var Ce=(o+(r=r+Math.imul(I,he)|0)|0)+((8191&(n=(n=n+Math.imul(I,xe)|0)+Math.imul(N,he)|0))<<13)|0;o=((c=c+Math.imul(N,xe)|0)+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863;var je=(o+(r=Math.imul(U,he))|0)+((8191&(n=(n=Math.imul(U,xe))+Math.imul(F,he)|0))<<13)|0;return o=((c=Math.imul(F,xe))+(n>>>13)|0)+(je>>>26)|0,je&=67108863,d[0]=pe,d[1]=me,d[2]=ve,d[3]=ge,d[4]=ye,d[5]=we,d[6]=_e,d[7]=Me,d[8]=ke,d[9]=Se,d[10]=Ae,d[11]=Ee,d[12]=Oe,d[13]=Pe,d[14]=Te,d[15]=Be,d[16]=Re,d[17]=Ce,d[18]=je,0!==o&&(d[19]=o,a.length++),a};function m(e,t,a){a.negative=t.negative^e.negative,a.length=e.length+t.length;for(var r=0,n=0,c=0;c>>26)|0)>>>26,i&=67108863}a.words[c]=f,r=i,i=n}return 0!==r?a.words[c]=r:a.length--,a._strip()}function v(e,t,a){return m(e,t,a)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=x),c.prototype.mulTo=function(e,t){var a=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):a<63?x(this,e,t):a<1024?m(this,e,t):v(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),a=c.prototype._countBits(e)-1,r=0;r>=1;return r},g.prototype.permute=function(e,t,a,r,n,c){for(var i=0;i>>=1)n++;return 1<>>=13,a[2*i+1]=8191&c,c>>>=13;for(i=2*t;i>=26,a+=c/67108864|0,a+=i>>>26,this.words[n]=67108863&i}return 0!==a&&(this.words[n]=a,this.length++),t?this.ineg():this},c.prototype.muln=function(e){return this.clone().imuln(e)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),a=0;a>>n&1}return t}(e);if(0===t.length)return new c(1);for(var a=this,r=0;r=0);var t,a=e%26,n=(e-a)/26,c=67108863>>>26-a<<26-a;if(0!==a){var i=0;for(t=0;t>>26-a}i&&(this.words[t]=i,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var c=e%26,i=Math.min((e-c)/26,this.length),f=67108863^67108863>>>c<i)for(this.length-=i,o=0;o=0&&(0!==s||o>=n);o--){var b=0|this.words[o];this.words[o]=s<<26-c|b>>>c,s=b&f}return d&&0!==s&&(d.words[d.length++]=s),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},c.prototype.ishrn=function(e,t,a){return r(0===this.negative),this.iushrn(e,t,a)},c.prototype.shln=function(e){return this.clone().ishln(e)},c.prototype.ushln=function(e){return this.clone().iushln(e)},c.prototype.shrn=function(e){return this.clone().ishrn(e)},c.prototype.ushrn=function(e){return this.clone().iushrn(e)},c.prototype.testn=function(e){r("number"===typeof e&&e>=0);var t=e%26,a=(e-t)/26,n=1<=0);var t=e%26,a=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=a)return this;if(0!==t&&a++,this.length=Math.min(a,this.length),0!==t){var n=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},c.prototype.isubn=function(e){if(r("number"===typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(d/67108864|0),this.words[n+a]=67108863&c}for(;n>26,this.words[n+a]=67108863&c;if(0===f)return this._strip();for(r(-1===f),f=0,n=0;n>26,this.words[n]=67108863&c;return this.negative=1,this._strip()},c.prototype._wordDiv=function(e,t){var a=(this.length,e.length),r=this.clone(),n=e,i=0|n.words[n.length-1];0!==(a=26-this._countBits(i))&&(n=n.ushln(a),r.iushln(a),i=0|n.words[n.length-1]);var f,d=r.length-n.length;if("mod"!==t){(f=new c(null)).length=d+1,f.words=new Array(f.length);for(var o=0;o=0;b--){var u=67108864*(0|r.words[n.length+b])+(0|r.words[n.length+b-1]);for(u=Math.min(u/i|0,67108863),r._ishlnsubmul(n,u,b);0!==r.negative;)u--,r.negative=0,r._ishlnsubmul(n,1,b),r.isZero()||(r.negative^=1);f&&(f.words[b]=u)}return f&&f._strip(),r._strip(),"div"!==t&&0!==a&&r.iushrn(a),{div:f||null,mod:r}},c.prototype.divmod=function(e,t,a){return r(!e.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:0!==this.negative&&0===e.negative?(f=this.neg().divmod(e,t),"mod"!==t&&(n=f.div.neg()),"div"!==t&&(i=f.mod.neg(),a&&0!==i.negative&&i.iadd(e)),{div:n,mod:i}):0===this.negative&&0!==e.negative?(f=this.divmod(e.neg(),t),"mod"!==t&&(n=f.div.neg()),{div:n,mod:f.mod}):0!==(this.negative&e.negative)?(f=this.neg().divmod(e.neg(),t),"div"!==t&&(i=f.mod.neg(),a&&0!==i.negative&&i.isub(e)),{div:f.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new c(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new c(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new c(this.modrn(e.words[0]))}:this._wordDiv(e,t);var n,i,f},c.prototype.div=function(e){return this.divmod(e,"div",!1).div},c.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},c.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},c.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var a=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),n=e.andln(1),c=a.cmp(r);return c<0||1===n&&0===c?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},c.prototype.modrn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var a=(1<<26)%e,n=0,c=this.length-1;c>=0;c--)n=(a*n+(0|this.words[c]))%e;return t?-n:n},c.prototype.modn=function(e){return this.modrn(e)},c.prototype.idivn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var a=0,n=this.length-1;n>=0;n--){var c=(0|this.words[n])+67108864*a;this.words[n]=c/e|0,a=c%e}return this._strip(),t?this.ineg():this},c.prototype.divn=function(e){return this.clone().idivn(e)},c.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new c(1),i=new c(0),f=new c(0),d=new c(1),o=0;t.isEven()&&a.isEven();)t.iushrn(1),a.iushrn(1),++o;for(var s=a.clone(),b=t.clone();!t.isZero();){for(var u=0,l=1;0===(t.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(t.iushrn(u);u-- >0;)(n.isOdd()||i.isOdd())&&(n.iadd(s),i.isub(b)),n.iushrn(1),i.iushrn(1);for(var h=0,x=1;0===(a.words[0]&x)&&h<26;++h,x<<=1);if(h>0)for(a.iushrn(h);h-- >0;)(f.isOdd()||d.isOdd())&&(f.iadd(s),d.isub(b)),f.iushrn(1),d.iushrn(1);t.cmp(a)>=0?(t.isub(a),n.isub(f),i.isub(d)):(a.isub(t),f.isub(n),d.isub(i))}return{a:f,b:d,gcd:a.iushln(o)}},c.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,i=new c(1),f=new c(0),d=a.clone();t.cmpn(1)>0&&a.cmpn(1)>0;){for(var o=0,s=1;0===(t.words[0]&s)&&o<26;++o,s<<=1);if(o>0)for(t.iushrn(o);o-- >0;)i.isOdd()&&i.iadd(d),i.iushrn(1);for(var b=0,u=1;0===(a.words[0]&u)&&b<26;++b,u<<=1);if(b>0)for(a.iushrn(b);b-- >0;)f.isOdd()&&f.iadd(d),f.iushrn(1);t.cmp(a)>=0?(t.isub(a),i.isub(f)):(a.isub(t),f.isub(i))}return(n=0===t.cmpn(1)?i:f).cmpn(0)<0&&n.iadd(e),n},c.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),a=e.clone();t.negative=0,a.negative=0;for(var r=0;t.isEven()&&a.isEven();r++)t.iushrn(1),a.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;a.isEven();)a.iushrn(1);var n=t.cmp(a);if(n<0){var c=t;t=a,a=c}else if(0===n||0===a.cmpn(1))break;t.isub(a)}return a.iushln(r)},c.prototype.invm=function(e){return this.egcd(e).a.umod(e)},c.prototype.isEven=function(){return 0===(1&this.words[0])},c.prototype.isOdd=function(){return 1===(1&this.words[0])},c.prototype.andln=function(e){return this.words[0]&e},c.prototype.bincn=function(e){r("number"===typeof e);var t=e%26,a=(e-t)/26,n=1<>>26,f&=67108863,this.words[i]=f}return 0!==c&&(this.words[i]=c,this.length++),this},c.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},c.prototype.cmpn=function(e){var t,a=e<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this._strip(),this.length>1)t=1;else{a&&(e=-e),r(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;a--){var r=0|this.words[a],n=0|e.words[a];if(r!==n){rn&&(t=1);break}}return t},c.prototype.gtn=function(e){return 1===this.cmpn(e)},c.prototype.gt=function(e){return 1===this.cmp(e)},c.prototype.gten=function(e){return this.cmpn(e)>=0},c.prototype.gte=function(e){return this.cmp(e)>=0},c.prototype.ltn=function(e){return-1===this.cmpn(e)},c.prototype.lt=function(e){return-1===this.cmp(e)},c.prototype.lten=function(e){return this.cmpn(e)<=0},c.prototype.lte=function(e){return this.cmp(e)<=0},c.prototype.eqn=function(e){return 0===this.cmpn(e)},c.prototype.eq=function(e){return 0===this.cmp(e)},c.red=function(e){return new A(e)},c.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},c.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(e){return this.red=e,this},c.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},c.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},c.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},c.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},c.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},c.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},c.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},c.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},c.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function w(e,t){this.name=e,this.p=new c(t,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(e){if("string"===typeof e){var t=c._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){A.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new c(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var e=new c(null);return e.words=new Array(Math.ceil(this.n/13)),e},w.prototype.ireduce=function(e){var t,a=e;do{this.split(a,this.tmp),t=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},w.prototype.split=function(e,t){e.iushrn(this.n,0,t)},w.prototype.imulK=function(e){return e.imul(this.k)},n(_,w),_.prototype.split=function(e,t){for(var a=4194303,r=Math.min(e.length,9),n=0;n>>22,c=i}c>>>=22,e.words[n-10]=c,0===c&&e.length>10?e.length-=10:e.length-=9},_.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,a=0;a>>=26,e.words[a]=n,t=r}return 0!==t&&(e.words[e.length++]=t),e},c._prime=function(e){if(y[e])return y[e];var t;if("k256"===e)t=new _;else if("p224"===e)t=new M;else if("p192"===e)t=new k;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new S}return y[e]=t,t},A.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},A.prototype._verify2=function(e,t){r(0===(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},A.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(s(e,e.umod(this.m)._forceRed(this)),e)},A.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},A.prototype.add=function(e,t){this._verify2(e,t);var a=e.add(t);return a.cmp(this.m)>=0&&a.isub(this.m),a._forceRed(this)},A.prototype.iadd=function(e,t){this._verify2(e,t);var a=e.iadd(t);return a.cmp(this.m)>=0&&a.isub(this.m),a},A.prototype.sub=function(e,t){this._verify2(e,t);var a=e.sub(t);return a.cmpn(0)<0&&a.iadd(this.m),a._forceRed(this)},A.prototype.isub=function(e,t){this._verify2(e,t);var a=e.isub(t);return a.cmpn(0)<0&&a.iadd(this.m),a},A.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},A.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},A.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},A.prototype.isqr=function(e){return this.imul(e,e.clone())},A.prototype.sqr=function(e){return this.mul(e,e)},A.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2===1),3===t){var a=this.m.add(new c(1)).iushrn(2);return this.pow(e,a)}for(var n=this.m.subn(1),i=0;!n.isZero()&&0===n.andln(1);)i++,n.iushrn(1);r(!n.isZero());var f=new c(1).toRed(this),d=f.redNeg(),o=this.m.subn(1).iushrn(1),s=this.m.bitLength();for(s=new c(2*s*s).toRed(this);0!==this.pow(s,o).cmp(d);)s.redIAdd(d);for(var b=this.pow(s,n),u=this.pow(e,n.addn(1).iushrn(1)),l=this.pow(e,n),h=i;0!==l.cmp(f);){for(var x=l,p=0;0!==x.cmp(f);p++)x=x.redSqr();r(p=0;r--){for(var o=t.words[r],s=d-1;s>=0;s--){var b=o>>s&1;n!==a[0]&&(n=this.sqr(n)),0!==b||0!==i?(i<<=1,i|=b,(4===++f||0===r&&0===s)&&(n=this.mul(n,a[i]),f=0,i=0)):f=0}d=26}return n},A.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},A.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},c.mont=function(e){return new E(e)},n(E,A),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var a=e.imul(t),r=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(r).iushrn(this.shift),c=n;return n.cmp(this.m)>=0?c=n.isub(this.m):n.cmpn(0)<0&&(c=n.iadd(this.m)),c._forceRed(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new c(0)._forceRed(this);var a=e.mul(t),r=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(r).iushrn(this.shift),i=n;return n.cmp(this.m)>=0?i=n.isub(this.m):n.cmpn(0)<0&&(i=n.iadd(this.m)),i._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,a(24)(e))},function(e,t,a){"use strict";(function(e){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.baToJSON=t.toUtf8=t.addHexPrefix=t.toUnsigned=t.fromSigned=t.bufferToHex=t.bufferToInt=t.toBuffer=t.unpadHexString=t.unpadArray=t.unpadBuffer=t.setLengthRight=t.setLengthLeft=t.zeros=t.intToBuffer=t.intToHex=void 0;var n=r(a(42)),c=a(56),i=a(85);t.intToHex=function(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("Received an invalid integer type: "+e);return"0x"+e.toString(16)};t.intToBuffer=function(a){var r=(0,t.intToHex)(a);return e.from((0,c.padToEven)(r.slice(2)),"hex")};t.zeros=function(t){return e.allocUnsafe(t).fill(0)};var f=function(e,a,r){var n=(0,t.zeros)(a);return r?e.length0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e};t.unpadBuffer=function(e){return(0,i.assertIsBuffer)(e),d(e)};t.unpadArray=function(e){return(0,i.assertIsArray)(e),d(e)};t.unpadHexString=function(e){return(0,i.assertIsHexString)(e),e=(0,c.stripHexPrefix)(e),d(e)};t.toBuffer=function(a){if(null===a||void 0===a)return e.allocUnsafe(0);if(e.isBuffer(a))return e.from(a);if(Array.isArray(a)||a instanceof Uint8Array)return e.from(a);if("string"===typeof a){if(!(0,c.isHexString)(a))throw new Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: "+a);return e.from((0,c.padToEven)((0,c.stripHexPrefix)(a)),"hex")}if("number"===typeof a)return(0,t.intToBuffer)(a);if(n.default.isBN(a))return a.toArrayLike(e);if(a.toArray)return e.from(a.toArray());if(a.toBuffer)return e.from(a.toBuffer());throw new Error("invalid type")};t.bufferToInt=function(e){return new n.default((0,t.toBuffer)(e)).toNumber()};t.bufferToHex=function(e){return"0x"+(e=(0,t.toBuffer)(e)).toString("hex")};t.fromSigned=function(e){return new n.default(e).fromTwos(256)};t.toUnsigned=function(t){return e.from(t.toTwos(256).toArray())};t.addHexPrefix=function(e){return"string"!==typeof e||(0,c.isHexPrefixed)(e)?e:"0x"+e};t.toUtf8=function(t){if((t=(0,c.stripHexPrefix)(t)).length%2!==0)throw new Error("Invalid non-even hex string input for toUtf8() provided");return e.from(t.replace(/^(00)+|(00)+$/g,""),"hex").toString("utf8")};t.baToJSON=function(a){if(e.isBuffer(a))return"0x"+a.toString("hex");if(a instanceof Array){for(var r=[],n=0;n1?(e[a[0]]=e[a[0]]||{},e[a[0]][a[1]]=t):e[a[0]]=t},l.prototype.getCall=function(e){return"function"===typeof this.call?this.call(e):this.call},l.prototype.extractCallback=function(e){if("function"===typeof e[e.length-1])return e.pop()},l.prototype.validateArgs=function(e){if(e.length!==this.params)throw f.InvalidNumberOfParams(e.length,this.params,this.name)},l.prototype.formatInput=function(e){var t=this;return this.inputFormatter?this.inputFormatter.map((function(a,r){return a?a.call(t,e[r]):e[r]})):e},l.prototype.formatOutput=function(e){var t=this;return Array.isArray(e)?e.map((function(e){return t.outputFormatter&&e?t.outputFormatter(e):e})):this.outputFormatter&&e?this.outputFormatter(e):e},l.prototype.toPayload=function(e){var t=this.getCall(e),a=this.extractCallback(e),r=this.formatInput(e);this.validateArgs(r);var n={method:t,params:r,callback:a};return this.transformPayload&&(n=this.transformPayload(n)),n},l.prototype._confirmTransaction=function(e,t,a){var r=this,n=!1,h=!0,x=0,p=0,m=null,v=null,g=null,y=a.params[0]&&"object"===typeof a.params[0]&&a.params[0].gas?a.params[0].gas:null,w=!!a.params[0]&&"object"===typeof a.params[0]&&a.params[0].data&&a.params[0].from&&!a.params[0].to,_=w&&a.params[0].data.length>2,M=[new l({name:"getBlockByNumber",call:"eth_getBlockByNumber",params:2,inputFormatter:[d.inputBlockNumberFormatter,function(e){return!!e}],outputFormatter:d.outputBlockFormatter}),new l({name:"getTransactionReceipt",call:"eth_getTransactionReceipt",params:1,inputFormatter:[null],outputFormatter:d.outputTransactionReceiptFormatter}),new l({name:"getCode",call:"eth_getCode",params:2,inputFormatter:[d.inputAddressFormatter,d.inputDefaultBlockNumberFormatter]}),new l({name:"getTransactionByHash",call:"eth_getTransactionByHash",params:1,inputFormatter:[null],outputFormatter:d.outputTransactionFormatter}),new b({name:"subscribe",type:"eth",subscriptions:{newBlockHeaders:{subscriptionName:"newHeads",params:0,outputFormatter:d.outputBlockFormatter}}})],k={};M.forEach((function(e){e.attachToObject(k),e.requestManager=r.requestManager}));var S=function(b,l,M,S,A){if(!M)return A||(A={unsubscribe:function(){clearInterval(m),clearTimeout(v)}}),(b?s.resolve(b):k.getTransactionReceipt(t)).catch((function(t){A.unsubscribe(),n=!0,o._fireError({message:"Failed to check for transaction receipt:",data:t},e.eventEmitter,e.reject)})).then(function(){var t=i(c.mark((function t(a){var n,i,f;return c.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a&&a.blockHash){t.next=2;break}throw new Error("Receipt missing or blockHash null");case 2:if(r.extraFormatters&&r.extraFormatters.receiptFormatter&&(a=r.extraFormatters.receiptFormatter(a)),!(e.eventEmitter.listeners("confirmation").length>0)){t.next=28;break}if(void 0!==b&&0===p){t.next=25;break}return t.next=7,k.getBlockByNumber("latest");case 7:if(i=t.sent,f=i?i.hash:null,!l){t.next=24;break}if(!g){t.next=17;break}return t.next=13,k.getBlockByNumber(g.number+1);case 13:(n=t.sent)&&(g=n,e.eventEmitter.emit("confirmation",p,a,f)),t.next=22;break;case 17:return t.next=19,k.getBlockByNumber(a.blockNumber);case 19:n=t.sent,g=n,e.eventEmitter.emit("confirmation",p,a,f);case 22:t.next=25;break;case 24:e.eventEmitter.emit("confirmation",p,a,f);case 25:(l&&n||!l)&&p++,h=!1,p===r.transactionConfirmationBlocks+1&&(A.unsubscribe(),e.eventEmitter.removeAllListeners());case 28:return t.abrupt("return",a);case 29:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).then(function(){var t=i(c.mark((function t(a){var i;return c.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!w||n){t.next=19;break}if(a.contractAddress){t.next=5;break}return h&&(A.unsubscribe(),n=!0),o._fireError(f.NoContractAddressFoundError(a),e.eventEmitter,e.reject,null,a),t.abrupt("return");case 5:return t.prev=5,t.next=8,k.getCode(a.contractAddress);case 8:i=t.sent,t.next=13;break;case 11:t.prev=11,t.t0=t.catch(5);case 13:if(i){t.next=15;break}return t.abrupt("return");case 15:!0===a.status&&_||i.length>2?(e.eventEmitter.emit("receipt",a),r.extraFormatters&&r.extraFormatters.contractDeployFormatter?e.resolve(r.extraFormatters.contractDeployFormatter(a)):e.resolve(a),h&&e.eventEmitter.removeAllListeners()):o._fireError(f.ContractCodeNotStoredError(a),e.eventEmitter,e.reject,null,a),h&&A.unsubscribe(),n=!0;case 19:return t.abrupt("return",a);case 20:case"end":return t.stop()}}),t,null,[[5,11]])})));return function(e){return t.apply(this,arguments)}}()).then(function(){var t=i(c.mark((function t(i){var s,b,l,x;return c.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(w||n){t.next=35;break}if(i.outOfGas||y&&y===i.gasUsed||!0!==i.status&&"0x1"!==i.status&&"undefined"!==typeof i.status){t.next=7;break}e.eventEmitter.emit("receipt",i),e.resolve(i),h&&e.eventEmitter.removeAllListeners(),t.next=33;break;case 7:if(JSON.stringify(i,null,2),!1!==i.status&&"0x0"!==i.status){t.next=32;break}if(t.prev=9,s=null,!r.handleRevert||"eth_sendTransaction"!==r.call&&"eth_sendRawTransaction"!==r.call){t.next=24;break}return b=a.params[0],"eth_sendRawTransaction"===r.call&&(l=a.params[0],x=u.parse(l),b=d.inputTransactionFormatter({data:x.data,to:x.to,from:x.from,gas:x.gasLimit.toHexString(),gasPrice:x.gasPrice.toHexString(),value:x.value.toHexString()})),t.next=16,r.getRevertReason(b,i.blockNumber);case 16:if(!(s=t.sent)){t.next=21;break}o._fireError(f.TransactionRevertInstructionError(s.reason,s.signature,i),e.eventEmitter,e.reject,null,i),t.next=22;break;case 21:throw!1;case 22:t.next=25;break;case 24:throw!1;case 25:t.next=30;break;case 27:t.prev=27,t.t0=t.catch(9),o._fireError(f.TransactionRevertedWithoutReasonError(i),e.eventEmitter,e.reject,null,i);case 30:t.next=33;break;case 32:o._fireError(f.TransactionOutOfGasError(i),e.eventEmitter,e.reject,null,i);case 33:h&&A.unsubscribe(),n=!0;case 35:case"end":return t.stop()}}),t,null,[[9,27]])})));return function(e){return t.apply(this,arguments)}}()).catch((function(){x++,l?x-1>=r.transactionPollingTimeout&&(A.unsubscribe(),n=!0,o._fireError(f.TransactionError("Transaction was not mined within "+r.transactionPollingTimeout+" seconds, please make sure your transaction was properly sent. Be aware that it might still be mined!"),e.eventEmitter,e.reject)):x-1>=r.transactionBlockTimeout&&(A.unsubscribe(),n=!0,o._fireError(f.TransactionError("Transaction was not mined within "+r.transactionBlockTimeout+" blocks, please make sure your transaction was properly sent. Be aware that it might still be mined!"),e.eventEmitter,e.reject))}));A.unsubscribe(),n=!0,o._fireError({message:"Failed to subscribe to new newBlockHeaders to confirm the transaction receipts.",data:M},e.eventEmitter,e.reject)},A=function(e){var t=!1,a=function(){m=setInterval(S.bind(null,e,!0),1e3)};if(!this.requestManager.provider.on)return a();k.subscribe("newBlockHeaders",(function(r,n,c){if(t=!0,r||!n)return a();S(e,!1,r,0,c)})),v=setTimeout((function(){t||a()}),1e3*this.blockHeaderTimeout)}.bind(this);k.getTransactionReceipt(t).then((function(t){t&&t.blockHash?(e.eventEmitter.listeners("confirmation").length>0&&A(t),S(t,!1)):n||A()})).catch((function(){n||A()}))};var h=function(e,t){return"number"===typeof e?t.wallet[e]:e&&"object"===typeof e&&e.address&&e.privateKey?e:t.wallet[e.toLowerCase()]};function x(e,t){return new Promise((function(a,n){try{var c=new l({name:"getBlockByNumber",call:"eth_getBlockByNumber",params:2,inputFormatter:[function(e){return e?o.toHex(e):"latest"},function(){return!1}]}).createFunction(e.requestManager),i=new l({name:"getGasPrice",call:"eth_gasPrice",params:0}).createFunction(e.requestManager);Promise.all([c(),i()]).then((function(e){var n=r(e,2),c=n[0],i=n[1];if(("0x2"===t.type||void 0===t.type)&&c&&c.baseFeePerGas){var f,d;t.gasPrice?(f=t.gasPrice,d=t.gasPrice,delete t.gasPrice):(f=t.maxPriorityFeePerGas||"0x9502F900",d=t.maxFeePerGas||o.toHex(o.toBN(c.baseFeePerGas).mul(o.toBN(2)).add(o.toBN(f)))),a({maxFeePerGas:d,maxPriorityFeePerGas:f})}else{if(t.maxPriorityFeePerGas||t.maxFeePerGas)throw Error("Network doesn't support eip-1559");a({gasPrice:i})}}))}catch(f){n(f)}}))}l.prototype.buildCall=function(){var e=this,t="eth_sendTransaction"===e.call||"eth_sendRawTransaction"===e.call,a="eth_call"===e.call,r=function(){var r=s(!t),c=e.toPayload(Array.prototype.slice.call(arguments)),i=function(n,i){var d;if(e.handleRevert&&a&&e.abiCoder&&(!n&&e.isRevertReasonString(i)?d=i.substring(10):n&&n.data&&(d=n.data.substring(10)),d)){var s=e.abiCoder.decodeParameter("string","0x"+d),b="Error(String)";return void o._fireError(f.RevertInstructionError(s,b),r.eventEmitter,r.reject,c.callback,{reason:s,signature:b})}try{i=e.formatOutput(i)}catch(u){n=u}if(i instanceof Error&&(n=i),n)return n.error&&(n=n.error),o._fireError(n,r.eventEmitter,r.reject,c.callback);c.callback&&c.callback(null,i),t?(r.eventEmitter.emit("transactionHash",i),e._confirmTransaction(r,i,c)):n||r.resolve(i)},d=function(t){var a=n(n({},c),{},{method:"eth_sendRawTransaction",params:[t.rawTransaction]});e.requestManager.send(a,i)},b=function(e,t){var a;if(t&&t.accounts&&t.accounts.wallet&&t.accounts.wallet.length)if("eth_sendTransaction"===e.method){var n=e.params[0];if((a=h(n&&"object"===typeof n?n.from:null,t.accounts))&&a.privateKey)return delete(n=JSON.parse(JSON.stringify(n))).from,t.defaultChain&&!n.chain&&(n.chain=t.defaultChain),t.defaultHardfork&&!n.hardfork&&(n.hardfork=t.defaultHardfork),t.defaultCommon&&!n.common&&(n.common=t.defaultCommon),void t.accounts.signTransaction(n,a.privateKey).then(d).catch((function(e){if("function"===typeof r.eventEmitter.listeners&&r.eventEmitter.listeners("error").length){try{r.eventEmitter.emit("error",e)}catch(e){}r.eventEmitter.removeAllListeners(),r.eventEmitter.catch((function(){}))}r.reject(e)}))}else if("eth_sign"===e.method){var c=e.params[1];if((a=h(e.params[0],t.accounts))&&a.privateKey){var f=t.accounts.sign(c,a.privateKey);return e.callback&&e.callback(null,f.signature),void r.resolve(f.signature)}}return t.requestManager.send(e,i)};return t&&c.params[0]&&"object"===typeof c.params[0]&&"undefined"===typeof c.params[0].gasPrice&&("undefined"===typeof c.params[0].maxPriorityFeePerGas||"undefined"===typeof c.params[0].maxFeePerGas)?x(e,c.params[0]).then((function(a){void 0!==a.gasPrice?c.params[0].gasPrice=a.gasPrice:void 0!==a.maxPriorityFeePerGas&&void 0!==a.maxFeePerGas&&(c.params[0].maxPriorityFeePerGas=a.maxPriorityFeePerGas,c.params[0].maxFeePerGas=a.maxFeePerGas),t&&setTimeout((function(){r.eventEmitter.emit("sending",c)}),0),b(c,e)})):(t&&setTimeout((function(){r.eventEmitter.emit("sending",c)}),0),b(c,e)),t&&setTimeout((function(){r.eventEmitter.emit("sent",c)}),0),r.eventEmitter};return r.method=e,r.request=this.request.bind(this),r},l.prototype.getRevertReason=function(e,t){var a=this;return new Promise((function(r,n){new l({name:"call",call:"eth_call",params:2,abiCoder:a.abiCoder,handleRevert:!0}).createFunction(a.requestManager)(e,o.numberToHex(t)).then((function(){r(!1)})).catch((function(e){e.reason?r({reason:e.reason,signature:e.signature}):n(e)}))}))},l.prototype.isRevertReasonString=function(e){return"string"===typeof e&&(e.length-2)/2%32===4&&"0x08c379a0"===e.substring(0,10)},l.prototype.request=function(){var e=this.toPayload(Array.prototype.slice.call(arguments));return e.format=this.formatOutput.bind(this),e},e.exports=l},function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){void 0===r&&(r=a),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,r){void 0===r&&(r=a),e[r]=t[a]}),n=this&&this.__exportStar||function(e,t){for(var a in e)"default"===a||Object.prototype.hasOwnProperty.call(t,a)||r(t,e,a)};Object.defineProperty(t,"__esModule",{value:!0}),t.isHexString=t.getKeys=t.fromAscii=t.fromUtf8=t.toAscii=t.arrayContainsArray=t.getBinarySize=t.padToEven=t.stripHexPrefix=t.isHexPrefixed=void 0,n(a(238),t),n(a(239),t),n(a(491),t),n(a(133),t),n(a(492),t),n(a(48),t),n(a(493),t),n(a(494),t),n(a(134),t);var c=a(64);Object.defineProperty(t,"isHexPrefixed",{enumerable:!0,get:function(){return c.isHexPrefixed}}),Object.defineProperty(t,"stripHexPrefix",{enumerable:!0,get:function(){return c.stripHexPrefix}}),Object.defineProperty(t,"padToEven",{enumerable:!0,get:function(){return c.padToEven}}),Object.defineProperty(t,"getBinarySize",{enumerable:!0,get:function(){return c.getBinarySize}}),Object.defineProperty(t,"arrayContainsArray",{enumerable:!0,get:function(){return c.arrayContainsArray}}),Object.defineProperty(t,"toAscii",{enumerable:!0,get:function(){return c.toAscii}}),Object.defineProperty(t,"fromUtf8",{enumerable:!0,get:function(){return c.fromUtf8}}),Object.defineProperty(t,"fromAscii",{enumerable:!0,get:function(){return c.fromAscii}}),Object.defineProperty(t,"getKeys",{enumerable:!0,get:function(){return c.getKeys}}),Object.defineProperty(t,"isHexString",{enumerable:!0,get:function(){return c.isHexString}})},function(e,t,a){(function(e){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function n(e,t){e.super_=t;var a=function(){};a.prototype=t.prototype,e.prototype=new a,e.prototype.constructor=e}function c(e,t,a){if(c.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(a=t,t=10),this._init(e||0,t||10,a||"be"))}var i;"object"===typeof e?e.exports=c:t.BN=c,c.BN=c,c.wordSize=26;try{i="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:a(490).Buffer}catch(O){}function f(e,t){var a=e.charCodeAt(t);return a>=48&&a<=57?a-48:a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:void r(!1,"Invalid character in "+e)}function d(e,t,a){var r=f(e,a);return a-1>=t&&(r|=f(e,a-1)<<4),r}function o(e,t,a,n){for(var c=0,i=0,f=Math.min(e.length,a),d=t;d=49?o-49+10:o>=17?o-17+10:o,r(o>=0&&i0?e:t},c.min=function(e,t){return e.cmp(t)<0?e:t},c.prototype._init=function(e,t,a){if("number"===typeof e)return this._initNumber(e,t,a);if("object"===typeof e)return this._initArray(e,t,a);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;n-=3)i=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[c]|=i<>>26-f&67108863,(f+=24)>=26&&(f-=26,c++);else if("le"===a)for(n=0,c=0;n>>26-f&67108863,(f+=24)>=26&&(f-=26,c++);return this._strip()},c.prototype._parseHex=function(e,t,a){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)n=d(e,t,r)<=18?(c-=18,i+=1,this.words[i]|=n>>>26):c+=8;else for(r=(e.length-t)%2===0?t+1:t;r=18?(c-=18,i+=1,this.words[i]|=n>>>26):c+=8;this._strip()},c.prototype._parseBase=function(e,t,a){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=t)r++;r--,n=n/t|0;for(var c=e.length-a,i=c%r,f=Math.min(c,c-i)+a,d=0,s=a;s1&&0===this.words[this.length-1];)this.length--;return this._normSign()},c.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!==typeof Symbol&&"function"===typeof Symbol.for)try{c.prototype[Symbol.for("nodejs.util.inspect.custom")]=b}catch(O){c.prototype.inspect=b}else c.prototype.inspect=b;function b(){return(this.red?""}var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];c.prototype.toString=function(e,t){var a;if(t=0|t||1,16===(e=e||10)||"hex"===e){a="";for(var n=0,c=0,i=0;i>>24-n&16777215)||i!==this.length-1?u[6-d.length]+d+a:d+a,(n+=2)>=26&&(n-=26,i--)}for(0!==c&&(a=c.toString(16)+a);a.length%t!==0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}if(e===(0|e)&&e>=2&&e<=36){var o=l[e],s=h[e];a="";var b=this.clone();for(b.negative=0;!b.isZero();){var x=b.modrn(s).toString(e);a=(b=b.idivn(s)).isZero()?x+a:u[o-x.length]+x+a}for(this.isZero()&&(a="0"+a);a.length%t!==0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}r(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},c.prototype.toJSON=function(){return this.toString(16,2)},i&&(c.prototype.toBuffer=function(e,t){return this.toArrayLike(i,e,t)}),c.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function x(e,t,a){a.negative=t.negative^e.negative;var r=e.length+t.length|0;a.length=r,r=r-1|0;var n=0|e.words[0],c=0|t.words[0],i=n*c,f=67108863&i,d=i/67108864|0;a.words[0]=f;for(var o=1;o>>26,b=67108863&d,u=Math.min(o,t.length-1),l=Math.max(0,o-e.length+1);l<=u;l++){var h=o-l|0;s+=(i=(n=0|e.words[h])*(c=0|t.words[l])+b)/67108864|0,b=67108863&i}a.words[o]=0|b,d=0|s}return 0!==d?a.words[o]=0|d:a.length--,a._strip()}c.prototype.toArrayLike=function(e,t,a){this._strip();var n=this.byteLength(),c=a||Math.max(1,n);r(n<=c,"byte array longer than desired length"),r(c>0,"Requested array length <= 0");var i=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,c);return this["_toArrayLike"+("le"===t?"LE":"BE")](i,n),i},c.prototype._toArrayLikeLE=function(e,t){for(var a=0,r=0,n=0,c=0;n>8&255),a>16&255),6===c?(a>24&255),r=0,c=0):(r=i>>>24,c+=2)}if(a=0&&(e[a--]=i>>8&255),a>=0&&(e[a--]=i>>16&255),6===c?(a>=0&&(e[a--]=i>>24&255),r=0,c=0):(r=i>>>24,c+=2)}if(a>=0)for(e[a--]=r;a>=0;)e[a--]=0},Math.clz32?c.prototype._countBits=function(e){return 32-Math.clz32(e)}:c.prototype._countBits=function(e){var t=e,a=0;return t>=4096&&(a+=13,t>>>=13),t>=64&&(a+=7,t>>>=7),t>=8&&(a+=4,t>>>=4),t>=2&&(a+=2,t>>>=2),a+t},c.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,a=0;return 0===(8191&t)&&(a+=13,t>>>=13),0===(127&t)&&(a+=7,t>>>=7),0===(15&t)&&(a+=4,t>>>=4),0===(3&t)&&(a+=2,t>>>=2),0===(1&t)&&a++,a},c.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},c.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},c.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var a=0;ae.length?this.clone().iand(e):e.clone().iand(this)},c.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},c.prototype.iuxor=function(e){var t,a;this.length>e.length?(t=this,a=e):(t=e,a=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},c.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},c.prototype.inotn=function(e){r("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),a=e%26;this._expand(t),a>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-a),this._strip()},c.prototype.notn=function(e){return this.clone().inotn(e)},c.prototype.setn=function(e,t){r("number"===typeof e&&e>=0);var a=e/26|0,n=e%26;return this._expand(a+1),this.words[a]=t?this.words[a]|1<e.length?(a=this,r=e):(a=e,r=this);for(var n=0,c=0;c>>26;for(;0!==n&&c>>26;if(this.length=a.length,0!==n)this.words[this.length]=n,this.length++;else if(a!==this)for(;ce.length?this.clone().iadd(e):e.clone().iadd(this)},c.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var a,r,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(a=this,r=e):(a=e,r=this);for(var c=0,i=0;i>26,this.words[i]=67108863&t;for(;0!==c&&i>26,this.words[i]=67108863&t;if(0===c&&i>>13,l=0|i[1],h=8191&l,x=l>>>13,p=0|i[2],m=8191&p,v=p>>>13,g=0|i[3],y=8191&g,w=g>>>13,_=0|i[4],M=8191&_,k=_>>>13,S=0|i[5],A=8191&S,E=S>>>13,O=0|i[6],P=8191&O,T=O>>>13,B=0|i[7],R=8191&B,C=B>>>13,j=0|i[8],I=8191&j,N=j>>>13,L=0|i[9],U=8191&L,F=L>>>13,D=0|f[0],z=8191&D,H=D>>>13,q=0|f[1],K=8191&q,W=q>>>13,V=0|f[2],$=8191&V,G=V>>>13,Z=0|f[3],J=8191&Z,X=Z>>>13,Y=0|f[4],Q=8191&Y,ee=Y>>>13,te=0|f[5],ae=8191&te,re=te>>>13,ne=0|f[6],ce=8191&ne,ie=ne>>>13,fe=0|f[7],de=8191&fe,oe=fe>>>13,se=0|f[8],be=8191&se,ue=se>>>13,le=0|f[9],he=8191&le,xe=le>>>13;a.negative=e.negative^t.negative,a.length=19;var pe=(o+(r=Math.imul(b,z))|0)+((8191&(n=(n=Math.imul(b,H))+Math.imul(u,z)|0))<<13)|0;o=((c=Math.imul(u,H))+(n>>>13)|0)+(pe>>>26)|0,pe&=67108863,r=Math.imul(h,z),n=(n=Math.imul(h,H))+Math.imul(x,z)|0,c=Math.imul(x,H);var me=(o+(r=r+Math.imul(b,K)|0)|0)+((8191&(n=(n=n+Math.imul(b,W)|0)+Math.imul(u,K)|0))<<13)|0;o=((c=c+Math.imul(u,W)|0)+(n>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(m,z),n=(n=Math.imul(m,H))+Math.imul(v,z)|0,c=Math.imul(v,H),r=r+Math.imul(h,K)|0,n=(n=n+Math.imul(h,W)|0)+Math.imul(x,K)|0,c=c+Math.imul(x,W)|0;var ve=(o+(r=r+Math.imul(b,$)|0)|0)+((8191&(n=(n=n+Math.imul(b,G)|0)+Math.imul(u,$)|0))<<13)|0;o=((c=c+Math.imul(u,G)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(y,z),n=(n=Math.imul(y,H))+Math.imul(w,z)|0,c=Math.imul(w,H),r=r+Math.imul(m,K)|0,n=(n=n+Math.imul(m,W)|0)+Math.imul(v,K)|0,c=c+Math.imul(v,W)|0,r=r+Math.imul(h,$)|0,n=(n=n+Math.imul(h,G)|0)+Math.imul(x,$)|0,c=c+Math.imul(x,G)|0;var ge=(o+(r=r+Math.imul(b,J)|0)|0)+((8191&(n=(n=n+Math.imul(b,X)|0)+Math.imul(u,J)|0))<<13)|0;o=((c=c+Math.imul(u,X)|0)+(n>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(M,z),n=(n=Math.imul(M,H))+Math.imul(k,z)|0,c=Math.imul(k,H),r=r+Math.imul(y,K)|0,n=(n=n+Math.imul(y,W)|0)+Math.imul(w,K)|0,c=c+Math.imul(w,W)|0,r=r+Math.imul(m,$)|0,n=(n=n+Math.imul(m,G)|0)+Math.imul(v,$)|0,c=c+Math.imul(v,G)|0,r=r+Math.imul(h,J)|0,n=(n=n+Math.imul(h,X)|0)+Math.imul(x,J)|0,c=c+Math.imul(x,X)|0;var ye=(o+(r=r+Math.imul(b,Q)|0)|0)+((8191&(n=(n=n+Math.imul(b,ee)|0)+Math.imul(u,Q)|0))<<13)|0;o=((c=c+Math.imul(u,ee)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(A,z),n=(n=Math.imul(A,H))+Math.imul(E,z)|0,c=Math.imul(E,H),r=r+Math.imul(M,K)|0,n=(n=n+Math.imul(M,W)|0)+Math.imul(k,K)|0,c=c+Math.imul(k,W)|0,r=r+Math.imul(y,$)|0,n=(n=n+Math.imul(y,G)|0)+Math.imul(w,$)|0,c=c+Math.imul(w,G)|0,r=r+Math.imul(m,J)|0,n=(n=n+Math.imul(m,X)|0)+Math.imul(v,J)|0,c=c+Math.imul(v,X)|0,r=r+Math.imul(h,Q)|0,n=(n=n+Math.imul(h,ee)|0)+Math.imul(x,Q)|0,c=c+Math.imul(x,ee)|0;var we=(o+(r=r+Math.imul(b,ae)|0)|0)+((8191&(n=(n=n+Math.imul(b,re)|0)+Math.imul(u,ae)|0))<<13)|0;o=((c=c+Math.imul(u,re)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(P,z),n=(n=Math.imul(P,H))+Math.imul(T,z)|0,c=Math.imul(T,H),r=r+Math.imul(A,K)|0,n=(n=n+Math.imul(A,W)|0)+Math.imul(E,K)|0,c=c+Math.imul(E,W)|0,r=r+Math.imul(M,$)|0,n=(n=n+Math.imul(M,G)|0)+Math.imul(k,$)|0,c=c+Math.imul(k,G)|0,r=r+Math.imul(y,J)|0,n=(n=n+Math.imul(y,X)|0)+Math.imul(w,J)|0,c=c+Math.imul(w,X)|0,r=r+Math.imul(m,Q)|0,n=(n=n+Math.imul(m,ee)|0)+Math.imul(v,Q)|0,c=c+Math.imul(v,ee)|0,r=r+Math.imul(h,ae)|0,n=(n=n+Math.imul(h,re)|0)+Math.imul(x,ae)|0,c=c+Math.imul(x,re)|0;var _e=(o+(r=r+Math.imul(b,ce)|0)|0)+((8191&(n=(n=n+Math.imul(b,ie)|0)+Math.imul(u,ce)|0))<<13)|0;o=((c=c+Math.imul(u,ie)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(R,z),n=(n=Math.imul(R,H))+Math.imul(C,z)|0,c=Math.imul(C,H),r=r+Math.imul(P,K)|0,n=(n=n+Math.imul(P,W)|0)+Math.imul(T,K)|0,c=c+Math.imul(T,W)|0,r=r+Math.imul(A,$)|0,n=(n=n+Math.imul(A,G)|0)+Math.imul(E,$)|0,c=c+Math.imul(E,G)|0,r=r+Math.imul(M,J)|0,n=(n=n+Math.imul(M,X)|0)+Math.imul(k,J)|0,c=c+Math.imul(k,X)|0,r=r+Math.imul(y,Q)|0,n=(n=n+Math.imul(y,ee)|0)+Math.imul(w,Q)|0,c=c+Math.imul(w,ee)|0,r=r+Math.imul(m,ae)|0,n=(n=n+Math.imul(m,re)|0)+Math.imul(v,ae)|0,c=c+Math.imul(v,re)|0,r=r+Math.imul(h,ce)|0,n=(n=n+Math.imul(h,ie)|0)+Math.imul(x,ce)|0,c=c+Math.imul(x,ie)|0;var Me=(o+(r=r+Math.imul(b,de)|0)|0)+((8191&(n=(n=n+Math.imul(b,oe)|0)+Math.imul(u,de)|0))<<13)|0;o=((c=c+Math.imul(u,oe)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(I,z),n=(n=Math.imul(I,H))+Math.imul(N,z)|0,c=Math.imul(N,H),r=r+Math.imul(R,K)|0,n=(n=n+Math.imul(R,W)|0)+Math.imul(C,K)|0,c=c+Math.imul(C,W)|0,r=r+Math.imul(P,$)|0,n=(n=n+Math.imul(P,G)|0)+Math.imul(T,$)|0,c=c+Math.imul(T,G)|0,r=r+Math.imul(A,J)|0,n=(n=n+Math.imul(A,X)|0)+Math.imul(E,J)|0,c=c+Math.imul(E,X)|0,r=r+Math.imul(M,Q)|0,n=(n=n+Math.imul(M,ee)|0)+Math.imul(k,Q)|0,c=c+Math.imul(k,ee)|0,r=r+Math.imul(y,ae)|0,n=(n=n+Math.imul(y,re)|0)+Math.imul(w,ae)|0,c=c+Math.imul(w,re)|0,r=r+Math.imul(m,ce)|0,n=(n=n+Math.imul(m,ie)|0)+Math.imul(v,ce)|0,c=c+Math.imul(v,ie)|0,r=r+Math.imul(h,de)|0,n=(n=n+Math.imul(h,oe)|0)+Math.imul(x,de)|0,c=c+Math.imul(x,oe)|0;var ke=(o+(r=r+Math.imul(b,be)|0)|0)+((8191&(n=(n=n+Math.imul(b,ue)|0)+Math.imul(u,be)|0))<<13)|0;o=((c=c+Math.imul(u,ue)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(U,z),n=(n=Math.imul(U,H))+Math.imul(F,z)|0,c=Math.imul(F,H),r=r+Math.imul(I,K)|0,n=(n=n+Math.imul(I,W)|0)+Math.imul(N,K)|0,c=c+Math.imul(N,W)|0,r=r+Math.imul(R,$)|0,n=(n=n+Math.imul(R,G)|0)+Math.imul(C,$)|0,c=c+Math.imul(C,G)|0,r=r+Math.imul(P,J)|0,n=(n=n+Math.imul(P,X)|0)+Math.imul(T,J)|0,c=c+Math.imul(T,X)|0,r=r+Math.imul(A,Q)|0,n=(n=n+Math.imul(A,ee)|0)+Math.imul(E,Q)|0,c=c+Math.imul(E,ee)|0,r=r+Math.imul(M,ae)|0,n=(n=n+Math.imul(M,re)|0)+Math.imul(k,ae)|0,c=c+Math.imul(k,re)|0,r=r+Math.imul(y,ce)|0,n=(n=n+Math.imul(y,ie)|0)+Math.imul(w,ce)|0,c=c+Math.imul(w,ie)|0,r=r+Math.imul(m,de)|0,n=(n=n+Math.imul(m,oe)|0)+Math.imul(v,de)|0,c=c+Math.imul(v,oe)|0,r=r+Math.imul(h,be)|0,n=(n=n+Math.imul(h,ue)|0)+Math.imul(x,be)|0,c=c+Math.imul(x,ue)|0;var Se=(o+(r=r+Math.imul(b,he)|0)|0)+((8191&(n=(n=n+Math.imul(b,xe)|0)+Math.imul(u,he)|0))<<13)|0;o=((c=c+Math.imul(u,xe)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(U,K),n=(n=Math.imul(U,W))+Math.imul(F,K)|0,c=Math.imul(F,W),r=r+Math.imul(I,$)|0,n=(n=n+Math.imul(I,G)|0)+Math.imul(N,$)|0,c=c+Math.imul(N,G)|0,r=r+Math.imul(R,J)|0,n=(n=n+Math.imul(R,X)|0)+Math.imul(C,J)|0,c=c+Math.imul(C,X)|0,r=r+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(T,Q)|0,c=c+Math.imul(T,ee)|0,r=r+Math.imul(A,ae)|0,n=(n=n+Math.imul(A,re)|0)+Math.imul(E,ae)|0,c=c+Math.imul(E,re)|0,r=r+Math.imul(M,ce)|0,n=(n=n+Math.imul(M,ie)|0)+Math.imul(k,ce)|0,c=c+Math.imul(k,ie)|0,r=r+Math.imul(y,de)|0,n=(n=n+Math.imul(y,oe)|0)+Math.imul(w,de)|0,c=c+Math.imul(w,oe)|0,r=r+Math.imul(m,be)|0,n=(n=n+Math.imul(m,ue)|0)+Math.imul(v,be)|0,c=c+Math.imul(v,ue)|0;var Ae=(o+(r=r+Math.imul(h,he)|0)|0)+((8191&(n=(n=n+Math.imul(h,xe)|0)+Math.imul(x,he)|0))<<13)|0;o=((c=c+Math.imul(x,xe)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(U,$),n=(n=Math.imul(U,G))+Math.imul(F,$)|0,c=Math.imul(F,G),r=r+Math.imul(I,J)|0,n=(n=n+Math.imul(I,X)|0)+Math.imul(N,J)|0,c=c+Math.imul(N,X)|0,r=r+Math.imul(R,Q)|0,n=(n=n+Math.imul(R,ee)|0)+Math.imul(C,Q)|0,c=c+Math.imul(C,ee)|0,r=r+Math.imul(P,ae)|0,n=(n=n+Math.imul(P,re)|0)+Math.imul(T,ae)|0,c=c+Math.imul(T,re)|0,r=r+Math.imul(A,ce)|0,n=(n=n+Math.imul(A,ie)|0)+Math.imul(E,ce)|0,c=c+Math.imul(E,ie)|0,r=r+Math.imul(M,de)|0,n=(n=n+Math.imul(M,oe)|0)+Math.imul(k,de)|0,c=c+Math.imul(k,oe)|0,r=r+Math.imul(y,be)|0,n=(n=n+Math.imul(y,ue)|0)+Math.imul(w,be)|0,c=c+Math.imul(w,ue)|0;var Ee=(o+(r=r+Math.imul(m,he)|0)|0)+((8191&(n=(n=n+Math.imul(m,xe)|0)+Math.imul(v,he)|0))<<13)|0;o=((c=c+Math.imul(v,xe)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(U,J),n=(n=Math.imul(U,X))+Math.imul(F,J)|0,c=Math.imul(F,X),r=r+Math.imul(I,Q)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(N,Q)|0,c=c+Math.imul(N,ee)|0,r=r+Math.imul(R,ae)|0,n=(n=n+Math.imul(R,re)|0)+Math.imul(C,ae)|0,c=c+Math.imul(C,re)|0,r=r+Math.imul(P,ce)|0,n=(n=n+Math.imul(P,ie)|0)+Math.imul(T,ce)|0,c=c+Math.imul(T,ie)|0,r=r+Math.imul(A,de)|0,n=(n=n+Math.imul(A,oe)|0)+Math.imul(E,de)|0,c=c+Math.imul(E,oe)|0,r=r+Math.imul(M,be)|0,n=(n=n+Math.imul(M,ue)|0)+Math.imul(k,be)|0,c=c+Math.imul(k,ue)|0;var Oe=(o+(r=r+Math.imul(y,he)|0)|0)+((8191&(n=(n=n+Math.imul(y,xe)|0)+Math.imul(w,he)|0))<<13)|0;o=((c=c+Math.imul(w,xe)|0)+(n>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(U,Q),n=(n=Math.imul(U,ee))+Math.imul(F,Q)|0,c=Math.imul(F,ee),r=r+Math.imul(I,ae)|0,n=(n=n+Math.imul(I,re)|0)+Math.imul(N,ae)|0,c=c+Math.imul(N,re)|0,r=r+Math.imul(R,ce)|0,n=(n=n+Math.imul(R,ie)|0)+Math.imul(C,ce)|0,c=c+Math.imul(C,ie)|0,r=r+Math.imul(P,de)|0,n=(n=n+Math.imul(P,oe)|0)+Math.imul(T,de)|0,c=c+Math.imul(T,oe)|0,r=r+Math.imul(A,be)|0,n=(n=n+Math.imul(A,ue)|0)+Math.imul(E,be)|0,c=c+Math.imul(E,ue)|0;var Pe=(o+(r=r+Math.imul(M,he)|0)|0)+((8191&(n=(n=n+Math.imul(M,xe)|0)+Math.imul(k,he)|0))<<13)|0;o=((c=c+Math.imul(k,xe)|0)+(n>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(U,ae),n=(n=Math.imul(U,re))+Math.imul(F,ae)|0,c=Math.imul(F,re),r=r+Math.imul(I,ce)|0,n=(n=n+Math.imul(I,ie)|0)+Math.imul(N,ce)|0,c=c+Math.imul(N,ie)|0,r=r+Math.imul(R,de)|0,n=(n=n+Math.imul(R,oe)|0)+Math.imul(C,de)|0,c=c+Math.imul(C,oe)|0,r=r+Math.imul(P,be)|0,n=(n=n+Math.imul(P,ue)|0)+Math.imul(T,be)|0,c=c+Math.imul(T,ue)|0;var Te=(o+(r=r+Math.imul(A,he)|0)|0)+((8191&(n=(n=n+Math.imul(A,xe)|0)+Math.imul(E,he)|0))<<13)|0;o=((c=c+Math.imul(E,xe)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(U,ce),n=(n=Math.imul(U,ie))+Math.imul(F,ce)|0,c=Math.imul(F,ie),r=r+Math.imul(I,de)|0,n=(n=n+Math.imul(I,oe)|0)+Math.imul(N,de)|0,c=c+Math.imul(N,oe)|0,r=r+Math.imul(R,be)|0,n=(n=n+Math.imul(R,ue)|0)+Math.imul(C,be)|0,c=c+Math.imul(C,ue)|0;var Be=(o+(r=r+Math.imul(P,he)|0)|0)+((8191&(n=(n=n+Math.imul(P,xe)|0)+Math.imul(T,he)|0))<<13)|0;o=((c=c+Math.imul(T,xe)|0)+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,r=Math.imul(U,de),n=(n=Math.imul(U,oe))+Math.imul(F,de)|0,c=Math.imul(F,oe),r=r+Math.imul(I,be)|0,n=(n=n+Math.imul(I,ue)|0)+Math.imul(N,be)|0,c=c+Math.imul(N,ue)|0;var Re=(o+(r=r+Math.imul(R,he)|0)|0)+((8191&(n=(n=n+Math.imul(R,xe)|0)+Math.imul(C,he)|0))<<13)|0;o=((c=c+Math.imul(C,xe)|0)+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863,r=Math.imul(U,be),n=(n=Math.imul(U,ue))+Math.imul(F,be)|0,c=Math.imul(F,ue);var Ce=(o+(r=r+Math.imul(I,he)|0)|0)+((8191&(n=(n=n+Math.imul(I,xe)|0)+Math.imul(N,he)|0))<<13)|0;o=((c=c+Math.imul(N,xe)|0)+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863;var je=(o+(r=Math.imul(U,he))|0)+((8191&(n=(n=Math.imul(U,xe))+Math.imul(F,he)|0))<<13)|0;return o=((c=Math.imul(F,xe))+(n>>>13)|0)+(je>>>26)|0,je&=67108863,d[0]=pe,d[1]=me,d[2]=ve,d[3]=ge,d[4]=ye,d[5]=we,d[6]=_e,d[7]=Me,d[8]=ke,d[9]=Se,d[10]=Ae,d[11]=Ee,d[12]=Oe,d[13]=Pe,d[14]=Te,d[15]=Be,d[16]=Re,d[17]=Ce,d[18]=je,0!==o&&(d[19]=o,a.length++),a};function m(e,t,a){a.negative=t.negative^e.negative,a.length=e.length+t.length;for(var r=0,n=0,c=0;c>>26)|0)>>>26,i&=67108863}a.words[c]=f,r=i,i=n}return 0!==r?a.words[c]=r:a.length--,a._strip()}function v(e,t,a){return m(e,t,a)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=x),c.prototype.mulTo=function(e,t){var a=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):a<63?x(this,e,t):a<1024?m(this,e,t):v(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),a=c.prototype._countBits(e)-1,r=0;r>=1;return r},g.prototype.permute=function(e,t,a,r,n,c){for(var i=0;i>>=1)n++;return 1<>>=13,a[2*i+1]=8191&c,c>>>=13;for(i=2*t;i>=26,a+=c/67108864|0,a+=i>>>26,this.words[n]=67108863&i}return 0!==a&&(this.words[n]=a,this.length++),t?this.ineg():this},c.prototype.muln=function(e){return this.clone().imuln(e)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),a=0;a>>n&1}return t}(e);if(0===t.length)return new c(1);for(var a=this,r=0;r=0);var t,a=e%26,n=(e-a)/26,c=67108863>>>26-a<<26-a;if(0!==a){var i=0;for(t=0;t>>26-a}i&&(this.words[t]=i,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var c=e%26,i=Math.min((e-c)/26,this.length),f=67108863^67108863>>>c<i)for(this.length-=i,o=0;o=0&&(0!==s||o>=n);o--){var b=0|this.words[o];this.words[o]=s<<26-c|b>>>c,s=b&f}return d&&0!==s&&(d.words[d.length++]=s),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},c.prototype.ishrn=function(e,t,a){return r(0===this.negative),this.iushrn(e,t,a)},c.prototype.shln=function(e){return this.clone().ishln(e)},c.prototype.ushln=function(e){return this.clone().iushln(e)},c.prototype.shrn=function(e){return this.clone().ishrn(e)},c.prototype.ushrn=function(e){return this.clone().iushrn(e)},c.prototype.testn=function(e){r("number"===typeof e&&e>=0);var t=e%26,a=(e-t)/26,n=1<=0);var t=e%26,a=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=a)return this;if(0!==t&&a++,this.length=Math.min(a,this.length),0!==t){var n=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},c.prototype.isubn=function(e){if(r("number"===typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(d/67108864|0),this.words[n+a]=67108863&c}for(;n>26,this.words[n+a]=67108863&c;if(0===f)return this._strip();for(r(-1===f),f=0,n=0;n>26,this.words[n]=67108863&c;return this.negative=1,this._strip()},c.prototype._wordDiv=function(e,t){var a=(this.length,e.length),r=this.clone(),n=e,i=0|n.words[n.length-1];0!==(a=26-this._countBits(i))&&(n=n.ushln(a),r.iushln(a),i=0|n.words[n.length-1]);var f,d=r.length-n.length;if("mod"!==t){(f=new c(null)).length=d+1,f.words=new Array(f.length);for(var o=0;o=0;b--){var u=67108864*(0|r.words[n.length+b])+(0|r.words[n.length+b-1]);for(u=Math.min(u/i|0,67108863),r._ishlnsubmul(n,u,b);0!==r.negative;)u--,r.negative=0,r._ishlnsubmul(n,1,b),r.isZero()||(r.negative^=1);f&&(f.words[b]=u)}return f&&f._strip(),r._strip(),"div"!==t&&0!==a&&r.iushrn(a),{div:f||null,mod:r}},c.prototype.divmod=function(e,t,a){return r(!e.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:0!==this.negative&&0===e.negative?(f=this.neg().divmod(e,t),"mod"!==t&&(n=f.div.neg()),"div"!==t&&(i=f.mod.neg(),a&&0!==i.negative&&i.iadd(e)),{div:n,mod:i}):0===this.negative&&0!==e.negative?(f=this.divmod(e.neg(),t),"mod"!==t&&(n=f.div.neg()),{div:n,mod:f.mod}):0!==(this.negative&e.negative)?(f=this.neg().divmod(e.neg(),t),"div"!==t&&(i=f.mod.neg(),a&&0!==i.negative&&i.isub(e)),{div:f.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new c(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new c(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new c(this.modrn(e.words[0]))}:this._wordDiv(e,t);var n,i,f},c.prototype.div=function(e){return this.divmod(e,"div",!1).div},c.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},c.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},c.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var a=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),n=e.andln(1),c=a.cmp(r);return c<0||1===n&&0===c?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},c.prototype.modrn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var a=(1<<26)%e,n=0,c=this.length-1;c>=0;c--)n=(a*n+(0|this.words[c]))%e;return t?-n:n},c.prototype.modn=function(e){return this.modrn(e)},c.prototype.idivn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var a=0,n=this.length-1;n>=0;n--){var c=(0|this.words[n])+67108864*a;this.words[n]=c/e|0,a=c%e}return this._strip(),t?this.ineg():this},c.prototype.divn=function(e){return this.clone().idivn(e)},c.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new c(1),i=new c(0),f=new c(0),d=new c(1),o=0;t.isEven()&&a.isEven();)t.iushrn(1),a.iushrn(1),++o;for(var s=a.clone(),b=t.clone();!t.isZero();){for(var u=0,l=1;0===(t.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(t.iushrn(u);u-- >0;)(n.isOdd()||i.isOdd())&&(n.iadd(s),i.isub(b)),n.iushrn(1),i.iushrn(1);for(var h=0,x=1;0===(a.words[0]&x)&&h<26;++h,x<<=1);if(h>0)for(a.iushrn(h);h-- >0;)(f.isOdd()||d.isOdd())&&(f.iadd(s),d.isub(b)),f.iushrn(1),d.iushrn(1);t.cmp(a)>=0?(t.isub(a),n.isub(f),i.isub(d)):(a.isub(t),f.isub(n),d.isub(i))}return{a:f,b:d,gcd:a.iushln(o)}},c.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,i=new c(1),f=new c(0),d=a.clone();t.cmpn(1)>0&&a.cmpn(1)>0;){for(var o=0,s=1;0===(t.words[0]&s)&&o<26;++o,s<<=1);if(o>0)for(t.iushrn(o);o-- >0;)i.isOdd()&&i.iadd(d),i.iushrn(1);for(var b=0,u=1;0===(a.words[0]&u)&&b<26;++b,u<<=1);if(b>0)for(a.iushrn(b);b-- >0;)f.isOdd()&&f.iadd(d),f.iushrn(1);t.cmp(a)>=0?(t.isub(a),i.isub(f)):(a.isub(t),f.isub(i))}return(n=0===t.cmpn(1)?i:f).cmpn(0)<0&&n.iadd(e),n},c.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),a=e.clone();t.negative=0,a.negative=0;for(var r=0;t.isEven()&&a.isEven();r++)t.iushrn(1),a.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;a.isEven();)a.iushrn(1);var n=t.cmp(a);if(n<0){var c=t;t=a,a=c}else if(0===n||0===a.cmpn(1))break;t.isub(a)}return a.iushln(r)},c.prototype.invm=function(e){return this.egcd(e).a.umod(e)},c.prototype.isEven=function(){return 0===(1&this.words[0])},c.prototype.isOdd=function(){return 1===(1&this.words[0])},c.prototype.andln=function(e){return this.words[0]&e},c.prototype.bincn=function(e){r("number"===typeof e);var t=e%26,a=(e-t)/26,n=1<>>26,f&=67108863,this.words[i]=f}return 0!==c&&(this.words[i]=c,this.length++),this},c.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},c.prototype.cmpn=function(e){var t,a=e<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this._strip(),this.length>1)t=1;else{a&&(e=-e),r(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;a--){var r=0|this.words[a],n=0|e.words[a];if(r!==n){rn&&(t=1);break}}return t},c.prototype.gtn=function(e){return 1===this.cmpn(e)},c.prototype.gt=function(e){return 1===this.cmp(e)},c.prototype.gten=function(e){return this.cmpn(e)>=0},c.prototype.gte=function(e){return this.cmp(e)>=0},c.prototype.ltn=function(e){return-1===this.cmpn(e)},c.prototype.lt=function(e){return-1===this.cmp(e)},c.prototype.lten=function(e){return this.cmpn(e)<=0},c.prototype.lte=function(e){return this.cmp(e)<=0},c.prototype.eqn=function(e){return 0===this.cmpn(e)},c.prototype.eq=function(e){return 0===this.cmp(e)},c.red=function(e){return new A(e)},c.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},c.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(e){return this.red=e,this},c.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},c.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},c.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},c.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},c.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},c.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},c.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},c.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},c.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function w(e,t){this.name=e,this.p=new c(t,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(e){if("string"===typeof e){var t=c._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){A.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new c(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var e=new c(null);return e.words=new Array(Math.ceil(this.n/13)),e},w.prototype.ireduce=function(e){var t,a=e;do{this.split(a,this.tmp),t=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},w.prototype.split=function(e,t){e.iushrn(this.n,0,t)},w.prototype.imulK=function(e){return e.imul(this.k)},n(_,w),_.prototype.split=function(e,t){for(var a=4194303,r=Math.min(e.length,9),n=0;n>>22,c=i}c>>>=22,e.words[n-10]=c,0===c&&e.length>10?e.length-=10:e.length-=9},_.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,a=0;a>>=26,e.words[a]=n,t=r}return 0!==t&&(e.words[e.length++]=t),e},c._prime=function(e){if(y[e])return y[e];var t;if("k256"===e)t=new _;else if("p224"===e)t=new M;else if("p192"===e)t=new k;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new S}return y[e]=t,t},A.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},A.prototype._verify2=function(e,t){r(0===(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},A.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(s(e,e.umod(this.m)._forceRed(this)),e)},A.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},A.prototype.add=function(e,t){this._verify2(e,t);var a=e.add(t);return a.cmp(this.m)>=0&&a.isub(this.m),a._forceRed(this)},A.prototype.iadd=function(e,t){this._verify2(e,t);var a=e.iadd(t);return a.cmp(this.m)>=0&&a.isub(this.m),a},A.prototype.sub=function(e,t){this._verify2(e,t);var a=e.sub(t);return a.cmpn(0)<0&&a.iadd(this.m),a._forceRed(this)},A.prototype.isub=function(e,t){this._verify2(e,t);var a=e.isub(t);return a.cmpn(0)<0&&a.iadd(this.m),a},A.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},A.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},A.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},A.prototype.isqr=function(e){return this.imul(e,e.clone())},A.prototype.sqr=function(e){return this.mul(e,e)},A.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2===1),3===t){var a=this.m.add(new c(1)).iushrn(2);return this.pow(e,a)}for(var n=this.m.subn(1),i=0;!n.isZero()&&0===n.andln(1);)i++,n.iushrn(1);r(!n.isZero());var f=new c(1).toRed(this),d=f.redNeg(),o=this.m.subn(1).iushrn(1),s=this.m.bitLength();for(s=new c(2*s*s).toRed(this);0!==this.pow(s,o).cmp(d);)s.redIAdd(d);for(var b=this.pow(s,n),u=this.pow(e,n.addn(1).iushrn(1)),l=this.pow(e,n),h=i;0!==l.cmp(f);){for(var x=l,p=0;0!==x.cmp(f);p++)x=x.redSqr();r(p=0;r--){for(var o=t.words[r],s=d-1;s>=0;s--){var b=o>>s&1;n!==a[0]&&(n=this.sqr(n)),0!==b||0!==i?(i<<=1,i|=b,(4===++f||0===r&&0===s)&&(n=this.mul(n,a[i]),f=0,i=0)):f=0}d=26}return n},A.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},A.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},c.mont=function(e){return new E(e)},n(E,A),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var a=e.imul(t),r=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(r).iushrn(this.shift),c=n;return n.cmp(this.m)>=0?c=n.isub(this.m):n.cmpn(0)<0&&(c=n.iadd(this.m)),c._forceRed(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new c(0)._forceRed(this);var a=e.mul(t),r=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(r).iushrn(this.shift),i=n;return n.cmp(this.m)>=0?i=n.isub(this.m):n.cmpn(0)<0&&(i=n.iadd(this.m)),i._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,a(24)(e))},function(e,t,a){"use strict";(function(e){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.baToJSON=t.toUtf8=t.addHexPrefix=t.toUnsigned=t.fromSigned=t.bufferToHex=t.bufferToInt=t.toBuffer=t.unpadHexString=t.unpadArray=t.unpadBuffer=t.setLengthRight=t.setLengthLeft=t.zeros=t.intToBuffer=t.intToHex=void 0;var n=r(a(47)),c=a(64),i=a(94);t.intToHex=function(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("Received an invalid integer type: "+e);return"0x"+e.toString(16)};t.intToBuffer=function(a){var r=(0,t.intToHex)(a);return e.from((0,c.padToEven)(r.slice(2)),"hex")};t.zeros=function(t){return e.allocUnsafe(t).fill(0)};var f=function(e,a,r){var n=(0,t.zeros)(a);return r?e.length0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e};t.unpadBuffer=function(e){return(0,i.assertIsBuffer)(e),d(e)};t.unpadArray=function(e){return(0,i.assertIsArray)(e),d(e)};t.unpadHexString=function(e){return(0,i.assertIsHexString)(e),e=(0,c.stripHexPrefix)(e),d(e)};t.toBuffer=function(a){if(null===a||void 0===a)return e.allocUnsafe(0);if(e.isBuffer(a))return e.from(a);if(Array.isArray(a)||a instanceof Uint8Array)return e.from(a);if("string"===typeof a){if(!(0,c.isHexString)(a))throw new Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: "+a);return e.from((0,c.padToEven)((0,c.stripHexPrefix)(a)),"hex")}if("number"===typeof a)return(0,t.intToBuffer)(a);if(n.default.isBN(a))return a.toArrayLike(e);if(a.toArray)return e.from(a.toArray());if(a.toBuffer)return e.from(a.toBuffer());throw new Error("invalid type")};t.bufferToInt=function(e){return new n.default((0,t.toBuffer)(e)).toNumber()};t.bufferToHex=function(e){return"0x"+(e=(0,t.toBuffer)(e)).toString("hex")};t.fromSigned=function(e){return new n.default(e).fromTwos(256)};t.toUnsigned=function(t){return e.from(t.toTwos(256).toArray())};t.addHexPrefix=function(e){return"string"!==typeof e||(0,c.isHexPrefixed)(e)?e:"0x"+e};t.toUtf8=function(t){if((t=(0,c.stripHexPrefix)(t)).length%2!==0)throw new Error("Invalid non-even hex string input for toUtf8() provided");return e.from(t.replace(/^(00)+|(00)+$/g,""),"hex").toString("utf8")};t.baToJSON=function(a){if(e.isBuffer(a))return"0x"+a.toString("hex");if(a instanceof Array){for(var r=[],n=0;n=48&&a<=57?a-48:a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:void r(!1,"Invalid character in "+e)}function d(e,t,a){var r=f(e,a);return a-1>=t&&(r|=f(e,a-1)<<4),r}function o(e,t,a,n){for(var c=0,i=0,f=Math.min(e.length,a),d=t;d=49?o-49+10:o>=17?o-17+10:o,r(o>=0&&i0?e:t},c.min=function(e,t){return e.cmp(t)<0?e:t},c.prototype._init=function(e,t,a){if("number"===typeof e)return this._initNumber(e,t,a);if("object"===typeof e)return this._initArray(e,t,a);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;n-=3)i=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[c]|=i<>>26-f&67108863,(f+=24)>=26&&(f-=26,c++);else if("le"===a)for(n=0,c=0;n>>26-f&67108863,(f+=24)>=26&&(f-=26,c++);return this._strip()},c.prototype._parseHex=function(e,t,a){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)n=d(e,t,r)<=18?(c-=18,i+=1,this.words[i]|=n>>>26):c+=8;else for(r=(e.length-t)%2===0?t+1:t;r=18?(c-=18,i+=1,this.words[i]|=n>>>26):c+=8;this._strip()},c.prototype._parseBase=function(e,t,a){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=t)r++;r--,n=n/t|0;for(var c=e.length-a,i=c%r,f=Math.min(c,c-i)+a,d=0,s=a;s1&&0===this.words[this.length-1];)this.length--;return this._normSign()},c.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!==typeof Symbol&&"function"===typeof Symbol.for)try{c.prototype[Symbol.for("nodejs.util.inspect.custom")]=b}catch(O){c.prototype.inspect=b}else c.prototype.inspect=b;function b(){return(this.red?""}var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];c.prototype.toString=function(e,t){var a;if(t=0|t||1,16===(e=e||10)||"hex"===e){a="";for(var n=0,c=0,i=0;i>>24-n&16777215)||i!==this.length-1?u[6-d.length]+d+a:d+a,(n+=2)>=26&&(n-=26,i--)}for(0!==c&&(a=c.toString(16)+a);a.length%t!==0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}if(e===(0|e)&&e>=2&&e<=36){var o=l[e],s=h[e];a="";var b=this.clone();for(b.negative=0;!b.isZero();){var x=b.modrn(s).toString(e);a=(b=b.idivn(s)).isZero()?x+a:u[o-x.length]+x+a}for(this.isZero()&&(a="0"+a);a.length%t!==0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}r(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},c.prototype.toJSON=function(){return this.toString(16,2)},i&&(c.prototype.toBuffer=function(e,t){return this.toArrayLike(i,e,t)}),c.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function x(e,t,a){a.negative=t.negative^e.negative;var r=e.length+t.length|0;a.length=r,r=r-1|0;var n=0|e.words[0],c=0|t.words[0],i=n*c,f=67108863&i,d=i/67108864|0;a.words[0]=f;for(var o=1;o>>26,b=67108863&d,u=Math.min(o,t.length-1),l=Math.max(0,o-e.length+1);l<=u;l++){var h=o-l|0;s+=(i=(n=0|e.words[h])*(c=0|t.words[l])+b)/67108864|0,b=67108863&i}a.words[o]=0|b,d=0|s}return 0!==d?a.words[o]=0|d:a.length--,a._strip()}c.prototype.toArrayLike=function(e,t,a){this._strip();var n=this.byteLength(),c=a||Math.max(1,n);r(n<=c,"byte array longer than desired length"),r(c>0,"Requested array length <= 0");var i=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,c);return this["_toArrayLike"+("le"===t?"LE":"BE")](i,n),i},c.prototype._toArrayLikeLE=function(e,t){for(var a=0,r=0,n=0,c=0;n>8&255),a>16&255),6===c?(a>24&255),r=0,c=0):(r=i>>>24,c+=2)}if(a=0&&(e[a--]=i>>8&255),a>=0&&(e[a--]=i>>16&255),6===c?(a>=0&&(e[a--]=i>>24&255),r=0,c=0):(r=i>>>24,c+=2)}if(a>=0)for(e[a--]=r;a>=0;)e[a--]=0},Math.clz32?c.prototype._countBits=function(e){return 32-Math.clz32(e)}:c.prototype._countBits=function(e){var t=e,a=0;return t>=4096&&(a+=13,t>>>=13),t>=64&&(a+=7,t>>>=7),t>=8&&(a+=4,t>>>=4),t>=2&&(a+=2,t>>>=2),a+t},c.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,a=0;return 0===(8191&t)&&(a+=13,t>>>=13),0===(127&t)&&(a+=7,t>>>=7),0===(15&t)&&(a+=4,t>>>=4),0===(3&t)&&(a+=2,t>>>=2),0===(1&t)&&a++,a},c.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},c.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},c.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var a=0;ae.length?this.clone().iand(e):e.clone().iand(this)},c.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},c.prototype.iuxor=function(e){var t,a;this.length>e.length?(t=this,a=e):(t=e,a=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},c.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},c.prototype.inotn=function(e){r("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),a=e%26;this._expand(t),a>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-a),this._strip()},c.prototype.notn=function(e){return this.clone().inotn(e)},c.prototype.setn=function(e,t){r("number"===typeof e&&e>=0);var a=e/26|0,n=e%26;return this._expand(a+1),this.words[a]=t?this.words[a]|1<e.length?(a=this,r=e):(a=e,r=this);for(var n=0,c=0;c>>26;for(;0!==n&&c>>26;if(this.length=a.length,0!==n)this.words[this.length]=n,this.length++;else if(a!==this)for(;ce.length?this.clone().iadd(e):e.clone().iadd(this)},c.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var a,r,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(a=this,r=e):(a=e,r=this);for(var c=0,i=0;i>26,this.words[i]=67108863&t;for(;0!==c&&i>26,this.words[i]=67108863&t;if(0===c&&i>>13,l=0|i[1],h=8191&l,x=l>>>13,p=0|i[2],m=8191&p,v=p>>>13,g=0|i[3],y=8191&g,w=g>>>13,_=0|i[4],M=8191&_,k=_>>>13,S=0|i[5],A=8191&S,E=S>>>13,O=0|i[6],P=8191&O,T=O>>>13,B=0|i[7],R=8191&B,C=B>>>13,j=0|i[8],I=8191&j,N=j>>>13,L=0|i[9],U=8191&L,F=L>>>13,D=0|f[0],z=8191&D,H=D>>>13,q=0|f[1],K=8191&q,W=q>>>13,V=0|f[2],$=8191&V,G=V>>>13,Z=0|f[3],J=8191&Z,X=Z>>>13,Y=0|f[4],Q=8191&Y,ee=Y>>>13,te=0|f[5],ae=8191&te,re=te>>>13,ne=0|f[6],ce=8191&ne,ie=ne>>>13,fe=0|f[7],de=8191&fe,oe=fe>>>13,se=0|f[8],be=8191&se,ue=se>>>13,le=0|f[9],he=8191&le,xe=le>>>13;a.negative=e.negative^t.negative,a.length=19;var pe=(o+(r=Math.imul(b,z))|0)+((8191&(n=(n=Math.imul(b,H))+Math.imul(u,z)|0))<<13)|0;o=((c=Math.imul(u,H))+(n>>>13)|0)+(pe>>>26)|0,pe&=67108863,r=Math.imul(h,z),n=(n=Math.imul(h,H))+Math.imul(x,z)|0,c=Math.imul(x,H);var me=(o+(r=r+Math.imul(b,K)|0)|0)+((8191&(n=(n=n+Math.imul(b,W)|0)+Math.imul(u,K)|0))<<13)|0;o=((c=c+Math.imul(u,W)|0)+(n>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(m,z),n=(n=Math.imul(m,H))+Math.imul(v,z)|0,c=Math.imul(v,H),r=r+Math.imul(h,K)|0,n=(n=n+Math.imul(h,W)|0)+Math.imul(x,K)|0,c=c+Math.imul(x,W)|0;var ve=(o+(r=r+Math.imul(b,$)|0)|0)+((8191&(n=(n=n+Math.imul(b,G)|0)+Math.imul(u,$)|0))<<13)|0;o=((c=c+Math.imul(u,G)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(y,z),n=(n=Math.imul(y,H))+Math.imul(w,z)|0,c=Math.imul(w,H),r=r+Math.imul(m,K)|0,n=(n=n+Math.imul(m,W)|0)+Math.imul(v,K)|0,c=c+Math.imul(v,W)|0,r=r+Math.imul(h,$)|0,n=(n=n+Math.imul(h,G)|0)+Math.imul(x,$)|0,c=c+Math.imul(x,G)|0;var ge=(o+(r=r+Math.imul(b,J)|0)|0)+((8191&(n=(n=n+Math.imul(b,X)|0)+Math.imul(u,J)|0))<<13)|0;o=((c=c+Math.imul(u,X)|0)+(n>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(M,z),n=(n=Math.imul(M,H))+Math.imul(k,z)|0,c=Math.imul(k,H),r=r+Math.imul(y,K)|0,n=(n=n+Math.imul(y,W)|0)+Math.imul(w,K)|0,c=c+Math.imul(w,W)|0,r=r+Math.imul(m,$)|0,n=(n=n+Math.imul(m,G)|0)+Math.imul(v,$)|0,c=c+Math.imul(v,G)|0,r=r+Math.imul(h,J)|0,n=(n=n+Math.imul(h,X)|0)+Math.imul(x,J)|0,c=c+Math.imul(x,X)|0;var ye=(o+(r=r+Math.imul(b,Q)|0)|0)+((8191&(n=(n=n+Math.imul(b,ee)|0)+Math.imul(u,Q)|0))<<13)|0;o=((c=c+Math.imul(u,ee)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(A,z),n=(n=Math.imul(A,H))+Math.imul(E,z)|0,c=Math.imul(E,H),r=r+Math.imul(M,K)|0,n=(n=n+Math.imul(M,W)|0)+Math.imul(k,K)|0,c=c+Math.imul(k,W)|0,r=r+Math.imul(y,$)|0,n=(n=n+Math.imul(y,G)|0)+Math.imul(w,$)|0,c=c+Math.imul(w,G)|0,r=r+Math.imul(m,J)|0,n=(n=n+Math.imul(m,X)|0)+Math.imul(v,J)|0,c=c+Math.imul(v,X)|0,r=r+Math.imul(h,Q)|0,n=(n=n+Math.imul(h,ee)|0)+Math.imul(x,Q)|0,c=c+Math.imul(x,ee)|0;var we=(o+(r=r+Math.imul(b,ae)|0)|0)+((8191&(n=(n=n+Math.imul(b,re)|0)+Math.imul(u,ae)|0))<<13)|0;o=((c=c+Math.imul(u,re)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(P,z),n=(n=Math.imul(P,H))+Math.imul(T,z)|0,c=Math.imul(T,H),r=r+Math.imul(A,K)|0,n=(n=n+Math.imul(A,W)|0)+Math.imul(E,K)|0,c=c+Math.imul(E,W)|0,r=r+Math.imul(M,$)|0,n=(n=n+Math.imul(M,G)|0)+Math.imul(k,$)|0,c=c+Math.imul(k,G)|0,r=r+Math.imul(y,J)|0,n=(n=n+Math.imul(y,X)|0)+Math.imul(w,J)|0,c=c+Math.imul(w,X)|0,r=r+Math.imul(m,Q)|0,n=(n=n+Math.imul(m,ee)|0)+Math.imul(v,Q)|0,c=c+Math.imul(v,ee)|0,r=r+Math.imul(h,ae)|0,n=(n=n+Math.imul(h,re)|0)+Math.imul(x,ae)|0,c=c+Math.imul(x,re)|0;var _e=(o+(r=r+Math.imul(b,ce)|0)|0)+((8191&(n=(n=n+Math.imul(b,ie)|0)+Math.imul(u,ce)|0))<<13)|0;o=((c=c+Math.imul(u,ie)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(R,z),n=(n=Math.imul(R,H))+Math.imul(C,z)|0,c=Math.imul(C,H),r=r+Math.imul(P,K)|0,n=(n=n+Math.imul(P,W)|0)+Math.imul(T,K)|0,c=c+Math.imul(T,W)|0,r=r+Math.imul(A,$)|0,n=(n=n+Math.imul(A,G)|0)+Math.imul(E,$)|0,c=c+Math.imul(E,G)|0,r=r+Math.imul(M,J)|0,n=(n=n+Math.imul(M,X)|0)+Math.imul(k,J)|0,c=c+Math.imul(k,X)|0,r=r+Math.imul(y,Q)|0,n=(n=n+Math.imul(y,ee)|0)+Math.imul(w,Q)|0,c=c+Math.imul(w,ee)|0,r=r+Math.imul(m,ae)|0,n=(n=n+Math.imul(m,re)|0)+Math.imul(v,ae)|0,c=c+Math.imul(v,re)|0,r=r+Math.imul(h,ce)|0,n=(n=n+Math.imul(h,ie)|0)+Math.imul(x,ce)|0,c=c+Math.imul(x,ie)|0;var Me=(o+(r=r+Math.imul(b,de)|0)|0)+((8191&(n=(n=n+Math.imul(b,oe)|0)+Math.imul(u,de)|0))<<13)|0;o=((c=c+Math.imul(u,oe)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(I,z),n=(n=Math.imul(I,H))+Math.imul(N,z)|0,c=Math.imul(N,H),r=r+Math.imul(R,K)|0,n=(n=n+Math.imul(R,W)|0)+Math.imul(C,K)|0,c=c+Math.imul(C,W)|0,r=r+Math.imul(P,$)|0,n=(n=n+Math.imul(P,G)|0)+Math.imul(T,$)|0,c=c+Math.imul(T,G)|0,r=r+Math.imul(A,J)|0,n=(n=n+Math.imul(A,X)|0)+Math.imul(E,J)|0,c=c+Math.imul(E,X)|0,r=r+Math.imul(M,Q)|0,n=(n=n+Math.imul(M,ee)|0)+Math.imul(k,Q)|0,c=c+Math.imul(k,ee)|0,r=r+Math.imul(y,ae)|0,n=(n=n+Math.imul(y,re)|0)+Math.imul(w,ae)|0,c=c+Math.imul(w,re)|0,r=r+Math.imul(m,ce)|0,n=(n=n+Math.imul(m,ie)|0)+Math.imul(v,ce)|0,c=c+Math.imul(v,ie)|0,r=r+Math.imul(h,de)|0,n=(n=n+Math.imul(h,oe)|0)+Math.imul(x,de)|0,c=c+Math.imul(x,oe)|0;var ke=(o+(r=r+Math.imul(b,be)|0)|0)+((8191&(n=(n=n+Math.imul(b,ue)|0)+Math.imul(u,be)|0))<<13)|0;o=((c=c+Math.imul(u,ue)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(U,z),n=(n=Math.imul(U,H))+Math.imul(F,z)|0,c=Math.imul(F,H),r=r+Math.imul(I,K)|0,n=(n=n+Math.imul(I,W)|0)+Math.imul(N,K)|0,c=c+Math.imul(N,W)|0,r=r+Math.imul(R,$)|0,n=(n=n+Math.imul(R,G)|0)+Math.imul(C,$)|0,c=c+Math.imul(C,G)|0,r=r+Math.imul(P,J)|0,n=(n=n+Math.imul(P,X)|0)+Math.imul(T,J)|0,c=c+Math.imul(T,X)|0,r=r+Math.imul(A,Q)|0,n=(n=n+Math.imul(A,ee)|0)+Math.imul(E,Q)|0,c=c+Math.imul(E,ee)|0,r=r+Math.imul(M,ae)|0,n=(n=n+Math.imul(M,re)|0)+Math.imul(k,ae)|0,c=c+Math.imul(k,re)|0,r=r+Math.imul(y,ce)|0,n=(n=n+Math.imul(y,ie)|0)+Math.imul(w,ce)|0,c=c+Math.imul(w,ie)|0,r=r+Math.imul(m,de)|0,n=(n=n+Math.imul(m,oe)|0)+Math.imul(v,de)|0,c=c+Math.imul(v,oe)|0,r=r+Math.imul(h,be)|0,n=(n=n+Math.imul(h,ue)|0)+Math.imul(x,be)|0,c=c+Math.imul(x,ue)|0;var Se=(o+(r=r+Math.imul(b,he)|0)|0)+((8191&(n=(n=n+Math.imul(b,xe)|0)+Math.imul(u,he)|0))<<13)|0;o=((c=c+Math.imul(u,xe)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(U,K),n=(n=Math.imul(U,W))+Math.imul(F,K)|0,c=Math.imul(F,W),r=r+Math.imul(I,$)|0,n=(n=n+Math.imul(I,G)|0)+Math.imul(N,$)|0,c=c+Math.imul(N,G)|0,r=r+Math.imul(R,J)|0,n=(n=n+Math.imul(R,X)|0)+Math.imul(C,J)|0,c=c+Math.imul(C,X)|0,r=r+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(T,Q)|0,c=c+Math.imul(T,ee)|0,r=r+Math.imul(A,ae)|0,n=(n=n+Math.imul(A,re)|0)+Math.imul(E,ae)|0,c=c+Math.imul(E,re)|0,r=r+Math.imul(M,ce)|0,n=(n=n+Math.imul(M,ie)|0)+Math.imul(k,ce)|0,c=c+Math.imul(k,ie)|0,r=r+Math.imul(y,de)|0,n=(n=n+Math.imul(y,oe)|0)+Math.imul(w,de)|0,c=c+Math.imul(w,oe)|0,r=r+Math.imul(m,be)|0,n=(n=n+Math.imul(m,ue)|0)+Math.imul(v,be)|0,c=c+Math.imul(v,ue)|0;var Ae=(o+(r=r+Math.imul(h,he)|0)|0)+((8191&(n=(n=n+Math.imul(h,xe)|0)+Math.imul(x,he)|0))<<13)|0;o=((c=c+Math.imul(x,xe)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(U,$),n=(n=Math.imul(U,G))+Math.imul(F,$)|0,c=Math.imul(F,G),r=r+Math.imul(I,J)|0,n=(n=n+Math.imul(I,X)|0)+Math.imul(N,J)|0,c=c+Math.imul(N,X)|0,r=r+Math.imul(R,Q)|0,n=(n=n+Math.imul(R,ee)|0)+Math.imul(C,Q)|0,c=c+Math.imul(C,ee)|0,r=r+Math.imul(P,ae)|0,n=(n=n+Math.imul(P,re)|0)+Math.imul(T,ae)|0,c=c+Math.imul(T,re)|0,r=r+Math.imul(A,ce)|0,n=(n=n+Math.imul(A,ie)|0)+Math.imul(E,ce)|0,c=c+Math.imul(E,ie)|0,r=r+Math.imul(M,de)|0,n=(n=n+Math.imul(M,oe)|0)+Math.imul(k,de)|0,c=c+Math.imul(k,oe)|0,r=r+Math.imul(y,be)|0,n=(n=n+Math.imul(y,ue)|0)+Math.imul(w,be)|0,c=c+Math.imul(w,ue)|0;var Ee=(o+(r=r+Math.imul(m,he)|0)|0)+((8191&(n=(n=n+Math.imul(m,xe)|0)+Math.imul(v,he)|0))<<13)|0;o=((c=c+Math.imul(v,xe)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(U,J),n=(n=Math.imul(U,X))+Math.imul(F,J)|0,c=Math.imul(F,X),r=r+Math.imul(I,Q)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(N,Q)|0,c=c+Math.imul(N,ee)|0,r=r+Math.imul(R,ae)|0,n=(n=n+Math.imul(R,re)|0)+Math.imul(C,ae)|0,c=c+Math.imul(C,re)|0,r=r+Math.imul(P,ce)|0,n=(n=n+Math.imul(P,ie)|0)+Math.imul(T,ce)|0,c=c+Math.imul(T,ie)|0,r=r+Math.imul(A,de)|0,n=(n=n+Math.imul(A,oe)|0)+Math.imul(E,de)|0,c=c+Math.imul(E,oe)|0,r=r+Math.imul(M,be)|0,n=(n=n+Math.imul(M,ue)|0)+Math.imul(k,be)|0,c=c+Math.imul(k,ue)|0;var Oe=(o+(r=r+Math.imul(y,he)|0)|0)+((8191&(n=(n=n+Math.imul(y,xe)|0)+Math.imul(w,he)|0))<<13)|0;o=((c=c+Math.imul(w,xe)|0)+(n>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(U,Q),n=(n=Math.imul(U,ee))+Math.imul(F,Q)|0,c=Math.imul(F,ee),r=r+Math.imul(I,ae)|0,n=(n=n+Math.imul(I,re)|0)+Math.imul(N,ae)|0,c=c+Math.imul(N,re)|0,r=r+Math.imul(R,ce)|0,n=(n=n+Math.imul(R,ie)|0)+Math.imul(C,ce)|0,c=c+Math.imul(C,ie)|0,r=r+Math.imul(P,de)|0,n=(n=n+Math.imul(P,oe)|0)+Math.imul(T,de)|0,c=c+Math.imul(T,oe)|0,r=r+Math.imul(A,be)|0,n=(n=n+Math.imul(A,ue)|0)+Math.imul(E,be)|0,c=c+Math.imul(E,ue)|0;var Pe=(o+(r=r+Math.imul(M,he)|0)|0)+((8191&(n=(n=n+Math.imul(M,xe)|0)+Math.imul(k,he)|0))<<13)|0;o=((c=c+Math.imul(k,xe)|0)+(n>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(U,ae),n=(n=Math.imul(U,re))+Math.imul(F,ae)|0,c=Math.imul(F,re),r=r+Math.imul(I,ce)|0,n=(n=n+Math.imul(I,ie)|0)+Math.imul(N,ce)|0,c=c+Math.imul(N,ie)|0,r=r+Math.imul(R,de)|0,n=(n=n+Math.imul(R,oe)|0)+Math.imul(C,de)|0,c=c+Math.imul(C,oe)|0,r=r+Math.imul(P,be)|0,n=(n=n+Math.imul(P,ue)|0)+Math.imul(T,be)|0,c=c+Math.imul(T,ue)|0;var Te=(o+(r=r+Math.imul(A,he)|0)|0)+((8191&(n=(n=n+Math.imul(A,xe)|0)+Math.imul(E,he)|0))<<13)|0;o=((c=c+Math.imul(E,xe)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(U,ce),n=(n=Math.imul(U,ie))+Math.imul(F,ce)|0,c=Math.imul(F,ie),r=r+Math.imul(I,de)|0,n=(n=n+Math.imul(I,oe)|0)+Math.imul(N,de)|0,c=c+Math.imul(N,oe)|0,r=r+Math.imul(R,be)|0,n=(n=n+Math.imul(R,ue)|0)+Math.imul(C,be)|0,c=c+Math.imul(C,ue)|0;var Be=(o+(r=r+Math.imul(P,he)|0)|0)+((8191&(n=(n=n+Math.imul(P,xe)|0)+Math.imul(T,he)|0))<<13)|0;o=((c=c+Math.imul(T,xe)|0)+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,r=Math.imul(U,de),n=(n=Math.imul(U,oe))+Math.imul(F,de)|0,c=Math.imul(F,oe),r=r+Math.imul(I,be)|0,n=(n=n+Math.imul(I,ue)|0)+Math.imul(N,be)|0,c=c+Math.imul(N,ue)|0;var Re=(o+(r=r+Math.imul(R,he)|0)|0)+((8191&(n=(n=n+Math.imul(R,xe)|0)+Math.imul(C,he)|0))<<13)|0;o=((c=c+Math.imul(C,xe)|0)+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863,r=Math.imul(U,be),n=(n=Math.imul(U,ue))+Math.imul(F,be)|0,c=Math.imul(F,ue);var Ce=(o+(r=r+Math.imul(I,he)|0)|0)+((8191&(n=(n=n+Math.imul(I,xe)|0)+Math.imul(N,he)|0))<<13)|0;o=((c=c+Math.imul(N,xe)|0)+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863;var je=(o+(r=Math.imul(U,he))|0)+((8191&(n=(n=Math.imul(U,xe))+Math.imul(F,he)|0))<<13)|0;return o=((c=Math.imul(F,xe))+(n>>>13)|0)+(je>>>26)|0,je&=67108863,d[0]=pe,d[1]=me,d[2]=ve,d[3]=ge,d[4]=ye,d[5]=we,d[6]=_e,d[7]=Me,d[8]=ke,d[9]=Se,d[10]=Ae,d[11]=Ee,d[12]=Oe,d[13]=Pe,d[14]=Te,d[15]=Be,d[16]=Re,d[17]=Ce,d[18]=je,0!==o&&(d[19]=o,a.length++),a};function m(e,t,a){a.negative=t.negative^e.negative,a.length=e.length+t.length;for(var r=0,n=0,c=0;c>>26)|0)>>>26,i&=67108863}a.words[c]=f,r=i,i=n}return 0!==r?a.words[c]=r:a.length--,a._strip()}function v(e,t,a){return m(e,t,a)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=x),c.prototype.mulTo=function(e,t){var a=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):a<63?x(this,e,t):a<1024?m(this,e,t):v(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),a=c.prototype._countBits(e)-1,r=0;r>=1;return r},g.prototype.permute=function(e,t,a,r,n,c){for(var i=0;i>>=1)n++;return 1<>>=13,a[2*i+1]=8191&c,c>>>=13;for(i=2*t;i>=26,a+=c/67108864|0,a+=i>>>26,this.words[n]=67108863&i}return 0!==a&&(this.words[n]=a,this.length++),t?this.ineg():this},c.prototype.muln=function(e){return this.clone().imuln(e)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),a=0;a>>n&1}return t}(e);if(0===t.length)return new c(1);for(var a=this,r=0;r=0);var t,a=e%26,n=(e-a)/26,c=67108863>>>26-a<<26-a;if(0!==a){var i=0;for(t=0;t>>26-a}i&&(this.words[t]=i,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var c=e%26,i=Math.min((e-c)/26,this.length),f=67108863^67108863>>>c<i)for(this.length-=i,o=0;o=0&&(0!==s||o>=n);o--){var b=0|this.words[o];this.words[o]=s<<26-c|b>>>c,s=b&f}return d&&0!==s&&(d.words[d.length++]=s),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},c.prototype.ishrn=function(e,t,a){return r(0===this.negative),this.iushrn(e,t,a)},c.prototype.shln=function(e){return this.clone().ishln(e)},c.prototype.ushln=function(e){return this.clone().iushln(e)},c.prototype.shrn=function(e){return this.clone().ishrn(e)},c.prototype.ushrn=function(e){return this.clone().iushrn(e)},c.prototype.testn=function(e){r("number"===typeof e&&e>=0);var t=e%26,a=(e-t)/26,n=1<=0);var t=e%26,a=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=a)return this;if(0!==t&&a++,this.length=Math.min(a,this.length),0!==t){var n=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},c.prototype.isubn=function(e){if(r("number"===typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(d/67108864|0),this.words[n+a]=67108863&c}for(;n>26,this.words[n+a]=67108863&c;if(0===f)return this._strip();for(r(-1===f),f=0,n=0;n>26,this.words[n]=67108863&c;return this.negative=1,this._strip()},c.prototype._wordDiv=function(e,t){var a=(this.length,e.length),r=this.clone(),n=e,i=0|n.words[n.length-1];0!==(a=26-this._countBits(i))&&(n=n.ushln(a),r.iushln(a),i=0|n.words[n.length-1]);var f,d=r.length-n.length;if("mod"!==t){(f=new c(null)).length=d+1,f.words=new Array(f.length);for(var o=0;o=0;b--){var u=67108864*(0|r.words[n.length+b])+(0|r.words[n.length+b-1]);for(u=Math.min(u/i|0,67108863),r._ishlnsubmul(n,u,b);0!==r.negative;)u--,r.negative=0,r._ishlnsubmul(n,1,b),r.isZero()||(r.negative^=1);f&&(f.words[b]=u)}return f&&f._strip(),r._strip(),"div"!==t&&0!==a&&r.iushrn(a),{div:f||null,mod:r}},c.prototype.divmod=function(e,t,a){return r(!e.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:0!==this.negative&&0===e.negative?(f=this.neg().divmod(e,t),"mod"!==t&&(n=f.div.neg()),"div"!==t&&(i=f.mod.neg(),a&&0!==i.negative&&i.iadd(e)),{div:n,mod:i}):0===this.negative&&0!==e.negative?(f=this.divmod(e.neg(),t),"mod"!==t&&(n=f.div.neg()),{div:n,mod:f.mod}):0!==(this.negative&e.negative)?(f=this.neg().divmod(e.neg(),t),"div"!==t&&(i=f.mod.neg(),a&&0!==i.negative&&i.isub(e)),{div:f.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new c(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new c(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new c(this.modrn(e.words[0]))}:this._wordDiv(e,t);var n,i,f},c.prototype.div=function(e){return this.divmod(e,"div",!1).div},c.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},c.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},c.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var a=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),n=e.andln(1),c=a.cmp(r);return c<0||1===n&&0===c?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},c.prototype.modrn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var a=(1<<26)%e,n=0,c=this.length-1;c>=0;c--)n=(a*n+(0|this.words[c]))%e;return t?-n:n},c.prototype.modn=function(e){return this.modrn(e)},c.prototype.idivn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var a=0,n=this.length-1;n>=0;n--){var c=(0|this.words[n])+67108864*a;this.words[n]=c/e|0,a=c%e}return this._strip(),t?this.ineg():this},c.prototype.divn=function(e){return this.clone().idivn(e)},c.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new c(1),i=new c(0),f=new c(0),d=new c(1),o=0;t.isEven()&&a.isEven();)t.iushrn(1),a.iushrn(1),++o;for(var s=a.clone(),b=t.clone();!t.isZero();){for(var u=0,l=1;0===(t.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(t.iushrn(u);u-- >0;)(n.isOdd()||i.isOdd())&&(n.iadd(s),i.isub(b)),n.iushrn(1),i.iushrn(1);for(var h=0,x=1;0===(a.words[0]&x)&&h<26;++h,x<<=1);if(h>0)for(a.iushrn(h);h-- >0;)(f.isOdd()||d.isOdd())&&(f.iadd(s),d.isub(b)),f.iushrn(1),d.iushrn(1);t.cmp(a)>=0?(t.isub(a),n.isub(f),i.isub(d)):(a.isub(t),f.isub(n),d.isub(i))}return{a:f,b:d,gcd:a.iushln(o)}},c.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,i=new c(1),f=new c(0),d=a.clone();t.cmpn(1)>0&&a.cmpn(1)>0;){for(var o=0,s=1;0===(t.words[0]&s)&&o<26;++o,s<<=1);if(o>0)for(t.iushrn(o);o-- >0;)i.isOdd()&&i.iadd(d),i.iushrn(1);for(var b=0,u=1;0===(a.words[0]&u)&&b<26;++b,u<<=1);if(b>0)for(a.iushrn(b);b-- >0;)f.isOdd()&&f.iadd(d),f.iushrn(1);t.cmp(a)>=0?(t.isub(a),i.isub(f)):(a.isub(t),f.isub(i))}return(n=0===t.cmpn(1)?i:f).cmpn(0)<0&&n.iadd(e),n},c.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),a=e.clone();t.negative=0,a.negative=0;for(var r=0;t.isEven()&&a.isEven();r++)t.iushrn(1),a.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;a.isEven();)a.iushrn(1);var n=t.cmp(a);if(n<0){var c=t;t=a,a=c}else if(0===n||0===a.cmpn(1))break;t.isub(a)}return a.iushln(r)},c.prototype.invm=function(e){return this.egcd(e).a.umod(e)},c.prototype.isEven=function(){return 0===(1&this.words[0])},c.prototype.isOdd=function(){return 1===(1&this.words[0])},c.prototype.andln=function(e){return this.words[0]&e},c.prototype.bincn=function(e){r("number"===typeof e);var t=e%26,a=(e-t)/26,n=1<>>26,f&=67108863,this.words[i]=f}return 0!==c&&(this.words[i]=c,this.length++),this},c.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},c.prototype.cmpn=function(e){var t,a=e<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this._strip(),this.length>1)t=1;else{a&&(e=-e),r(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;a--){var r=0|this.words[a],n=0|e.words[a];if(r!==n){rn&&(t=1);break}}return t},c.prototype.gtn=function(e){return 1===this.cmpn(e)},c.prototype.gt=function(e){return 1===this.cmp(e)},c.prototype.gten=function(e){return this.cmpn(e)>=0},c.prototype.gte=function(e){return this.cmp(e)>=0},c.prototype.ltn=function(e){return-1===this.cmpn(e)},c.prototype.lt=function(e){return-1===this.cmp(e)},c.prototype.lten=function(e){return this.cmpn(e)<=0},c.prototype.lte=function(e){return this.cmp(e)<=0},c.prototype.eqn=function(e){return 0===this.cmpn(e)},c.prototype.eq=function(e){return 0===this.cmp(e)},c.red=function(e){return new A(e)},c.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},c.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(e){return this.red=e,this},c.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},c.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},c.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},c.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},c.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},c.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},c.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},c.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},c.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function w(e,t){this.name=e,this.p=new c(t,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(e){if("string"===typeof e){var t=c._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){A.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new c(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var e=new c(null);return e.words=new Array(Math.ceil(this.n/13)),e},w.prototype.ireduce=function(e){var t,a=e;do{this.split(a,this.tmp),t=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},w.prototype.split=function(e,t){e.iushrn(this.n,0,t)},w.prototype.imulK=function(e){return e.imul(this.k)},n(_,w),_.prototype.split=function(e,t){for(var a=4194303,r=Math.min(e.length,9),n=0;n>>22,c=i}c>>>=22,e.words[n-10]=c,0===c&&e.length>10?e.length-=10:e.length-=9},_.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,a=0;a>>=26,e.words[a]=n,t=r}return 0!==t&&(e.words[e.length++]=t),e},c._prime=function(e){if(y[e])return y[e];var t;if("k256"===e)t=new _;else if("p224"===e)t=new M;else if("p192"===e)t=new k;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new S}return y[e]=t,t},A.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},A.prototype._verify2=function(e,t){r(0===(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},A.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(s(e,e.umod(this.m)._forceRed(this)),e)},A.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},A.prototype.add=function(e,t){this._verify2(e,t);var a=e.add(t);return a.cmp(this.m)>=0&&a.isub(this.m),a._forceRed(this)},A.prototype.iadd=function(e,t){this._verify2(e,t);var a=e.iadd(t);return a.cmp(this.m)>=0&&a.isub(this.m),a},A.prototype.sub=function(e,t){this._verify2(e,t);var a=e.sub(t);return a.cmpn(0)<0&&a.iadd(this.m),a._forceRed(this)},A.prototype.isub=function(e,t){this._verify2(e,t);var a=e.isub(t);return a.cmpn(0)<0&&a.iadd(this.m),a},A.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},A.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},A.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},A.prototype.isqr=function(e){return this.imul(e,e.clone())},A.prototype.sqr=function(e){return this.mul(e,e)},A.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2===1),3===t){var a=this.m.add(new c(1)).iushrn(2);return this.pow(e,a)}for(var n=this.m.subn(1),i=0;!n.isZero()&&0===n.andln(1);)i++,n.iushrn(1);r(!n.isZero());var f=new c(1).toRed(this),d=f.redNeg(),o=this.m.subn(1).iushrn(1),s=this.m.bitLength();for(s=new c(2*s*s).toRed(this);0!==this.pow(s,o).cmp(d);)s.redIAdd(d);for(var b=this.pow(s,n),u=this.pow(e,n.addn(1).iushrn(1)),l=this.pow(e,n),h=i;0!==l.cmp(f);){for(var x=l,p=0;0!==x.cmp(f);p++)x=x.redSqr();r(p=0;r--){for(var o=t.words[r],s=d-1;s>=0;s--){var b=o>>s&1;n!==a[0]&&(n=this.sqr(n)),0!==b||0!==i?(i<<=1,i|=b,(4===++f||0===r&&0===s)&&(n=this.mul(n,a[i]),f=0,i=0)):f=0}d=26}return n},A.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},A.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},c.mont=function(e){return new E(e)},n(E,A),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var a=e.imul(t),r=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(r).iushrn(this.shift),c=n;return n.cmp(this.m)>=0?c=n.isub(this.m):n.cmpn(0)<0&&(c=n.iadd(this.m)),c._forceRed(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new c(0)._forceRed(this);var a=e.mul(t),r=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(r).iushrn(this.shift),i=n;return n.cmp(this.m)>=0?i=n.isub(this.m):n.cmpn(0)<0&&(i=n.iadd(this.m)),i._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,a(24)(e))},function(e,t,a){"use strict";(function(e){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.baToJSON=t.toUtf8=t.addHexPrefix=t.toUnsigned=t.fromSigned=t.bufferToHex=t.bufferToInt=t.toBuffer=t.unpadHexString=t.unpadArray=t.unpadBuffer=t.setLengthRight=t.setLengthLeft=t.zeros=t.intToBuffer=t.intToHex=void 0;var n=r(a(49)),c=a(66),i=a(95);t.intToHex=function(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("Received an invalid integer type: "+e);return"0x"+e.toString(16)};t.intToBuffer=function(a){var r=(0,t.intToHex)(a);return e.from((0,c.padToEven)(r.slice(2)),"hex")};t.zeros=function(t){return e.allocUnsafe(t).fill(0)};var f=function(e,a,r){var n=(0,t.zeros)(a);return r?e.length0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e};t.unpadBuffer=function(e){return(0,i.assertIsBuffer)(e),d(e)};t.unpadArray=function(e){return(0,i.assertIsArray)(e),d(e)};t.unpadHexString=function(e){return(0,i.assertIsHexString)(e),e=(0,c.stripHexPrefix)(e),d(e)};t.toBuffer=function(a){if(null===a||void 0===a)return e.allocUnsafe(0);if(e.isBuffer(a))return e.from(a);if(Array.isArray(a)||a instanceof Uint8Array)return e.from(a);if("string"===typeof a){if(!(0,c.isHexString)(a))throw new Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: "+a);return e.from((0,c.padToEven)((0,c.stripHexPrefix)(a)),"hex")}if("number"===typeof a)return(0,t.intToBuffer)(a);if(n.default.isBN(a))return a.toArrayLike(e);if(a.toArray)return e.from(a.toArray());if(a.toBuffer)return e.from(a.toBuffer());throw new Error("invalid type")};t.bufferToInt=function(e){return new n.default((0,t.toBuffer)(e)).toNumber()};t.bufferToHex=function(e){return"0x"+(e=(0,t.toBuffer)(e)).toString("hex")};t.fromSigned=function(e){return new n.default(e).fromTwos(256)};t.toUnsigned=function(t){return e.from(t.toTwos(256).toArray())};t.addHexPrefix=function(e){return"string"!==typeof e||(0,c.isHexPrefixed)(e)?e:"0x"+e};t.toUtf8=function(t){if((t=(0,c.stripHexPrefix)(t)).length%2!==0)throw new Error("Invalid non-even hex string input for toUtf8() provided");return e.from(t.replace(/^(00)+|(00)+$/g,""),"hex").toString("utf8")};t.baToJSON=function(a){if(e.isBuffer(a))return"0x"+a.toString("hex");if(a instanceof Array){for(var r=[],n=0;n=48&&a<=57?a-48:a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:void r(!1,"Invalid character in "+e)}function d(e,t,a){var r=f(e,a);return a-1>=t&&(r|=f(e,a-1)<<4),r}function o(e,t,a,n){for(var c=0,i=0,f=Math.min(e.length,a),d=t;d=49?o-49+10:o>=17?o-17+10:o,r(o>=0&&i0?e:t},c.min=function(e,t){return e.cmp(t)<0?e:t},c.prototype._init=function(e,t,a){if("number"===typeof e)return this._initNumber(e,t,a);if("object"===typeof e)return this._initArray(e,t,a);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;n-=3)i=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[c]|=i<>>26-f&67108863,(f+=24)>=26&&(f-=26,c++);else if("le"===a)for(n=0,c=0;n>>26-f&67108863,(f+=24)>=26&&(f-=26,c++);return this._strip()},c.prototype._parseHex=function(e,t,a){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)n=d(e,t,r)<=18?(c-=18,i+=1,this.words[i]|=n>>>26):c+=8;else for(r=(e.length-t)%2===0?t+1:t;r=18?(c-=18,i+=1,this.words[i]|=n>>>26):c+=8;this._strip()},c.prototype._parseBase=function(e,t,a){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=t)r++;r--,n=n/t|0;for(var c=e.length-a,i=c%r,f=Math.min(c,c-i)+a,d=0,s=a;s1&&0===this.words[this.length-1];)this.length--;return this._normSign()},c.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!==typeof Symbol&&"function"===typeof Symbol.for)try{c.prototype[Symbol.for("nodejs.util.inspect.custom")]=b}catch(O){c.prototype.inspect=b}else c.prototype.inspect=b;function b(){return(this.red?""}var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];c.prototype.toString=function(e,t){var a;if(t=0|t||1,16===(e=e||10)||"hex"===e){a="";for(var n=0,c=0,i=0;i>>24-n&16777215)||i!==this.length-1?u[6-d.length]+d+a:d+a,(n+=2)>=26&&(n-=26,i--)}for(0!==c&&(a=c.toString(16)+a);a.length%t!==0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}if(e===(0|e)&&e>=2&&e<=36){var o=l[e],s=h[e];a="";var b=this.clone();for(b.negative=0;!b.isZero();){var x=b.modrn(s).toString(e);a=(b=b.idivn(s)).isZero()?x+a:u[o-x.length]+x+a}for(this.isZero()&&(a="0"+a);a.length%t!==0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}r(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},c.prototype.toJSON=function(){return this.toString(16,2)},i&&(c.prototype.toBuffer=function(e,t){return this.toArrayLike(i,e,t)}),c.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function x(e,t,a){a.negative=t.negative^e.negative;var r=e.length+t.length|0;a.length=r,r=r-1|0;var n=0|e.words[0],c=0|t.words[0],i=n*c,f=67108863&i,d=i/67108864|0;a.words[0]=f;for(var o=1;o>>26,b=67108863&d,u=Math.min(o,t.length-1),l=Math.max(0,o-e.length+1);l<=u;l++){var h=o-l|0;s+=(i=(n=0|e.words[h])*(c=0|t.words[l])+b)/67108864|0,b=67108863&i}a.words[o]=0|b,d=0|s}return 0!==d?a.words[o]=0|d:a.length--,a._strip()}c.prototype.toArrayLike=function(e,t,a){this._strip();var n=this.byteLength(),c=a||Math.max(1,n);r(n<=c,"byte array longer than desired length"),r(c>0,"Requested array length <= 0");var i=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,c);return this["_toArrayLike"+("le"===t?"LE":"BE")](i,n),i},c.prototype._toArrayLikeLE=function(e,t){for(var a=0,r=0,n=0,c=0;n>8&255),a>16&255),6===c?(a>24&255),r=0,c=0):(r=i>>>24,c+=2)}if(a=0&&(e[a--]=i>>8&255),a>=0&&(e[a--]=i>>16&255),6===c?(a>=0&&(e[a--]=i>>24&255),r=0,c=0):(r=i>>>24,c+=2)}if(a>=0)for(e[a--]=r;a>=0;)e[a--]=0},Math.clz32?c.prototype._countBits=function(e){return 32-Math.clz32(e)}:c.prototype._countBits=function(e){var t=e,a=0;return t>=4096&&(a+=13,t>>>=13),t>=64&&(a+=7,t>>>=7),t>=8&&(a+=4,t>>>=4),t>=2&&(a+=2,t>>>=2),a+t},c.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,a=0;return 0===(8191&t)&&(a+=13,t>>>=13),0===(127&t)&&(a+=7,t>>>=7),0===(15&t)&&(a+=4,t>>>=4),0===(3&t)&&(a+=2,t>>>=2),0===(1&t)&&a++,a},c.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},c.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},c.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var a=0;ae.length?this.clone().iand(e):e.clone().iand(this)},c.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},c.prototype.iuxor=function(e){var t,a;this.length>e.length?(t=this,a=e):(t=e,a=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},c.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},c.prototype.inotn=function(e){r("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),a=e%26;this._expand(t),a>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-a),this._strip()},c.prototype.notn=function(e){return this.clone().inotn(e)},c.prototype.setn=function(e,t){r("number"===typeof e&&e>=0);var a=e/26|0,n=e%26;return this._expand(a+1),this.words[a]=t?this.words[a]|1<e.length?(a=this,r=e):(a=e,r=this);for(var n=0,c=0;c>>26;for(;0!==n&&c>>26;if(this.length=a.length,0!==n)this.words[this.length]=n,this.length++;else if(a!==this)for(;ce.length?this.clone().iadd(e):e.clone().iadd(this)},c.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var a,r,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(a=this,r=e):(a=e,r=this);for(var c=0,i=0;i>26,this.words[i]=67108863&t;for(;0!==c&&i>26,this.words[i]=67108863&t;if(0===c&&i>>13,l=0|i[1],h=8191&l,x=l>>>13,p=0|i[2],m=8191&p,v=p>>>13,g=0|i[3],y=8191&g,w=g>>>13,_=0|i[4],M=8191&_,k=_>>>13,S=0|i[5],A=8191&S,E=S>>>13,O=0|i[6],P=8191&O,T=O>>>13,B=0|i[7],R=8191&B,C=B>>>13,j=0|i[8],I=8191&j,N=j>>>13,L=0|i[9],U=8191&L,F=L>>>13,D=0|f[0],z=8191&D,H=D>>>13,q=0|f[1],K=8191&q,W=q>>>13,V=0|f[2],$=8191&V,G=V>>>13,Z=0|f[3],J=8191&Z,X=Z>>>13,Y=0|f[4],Q=8191&Y,ee=Y>>>13,te=0|f[5],ae=8191&te,re=te>>>13,ne=0|f[6],ce=8191&ne,ie=ne>>>13,fe=0|f[7],de=8191&fe,oe=fe>>>13,se=0|f[8],be=8191&se,ue=se>>>13,le=0|f[9],he=8191&le,xe=le>>>13;a.negative=e.negative^t.negative,a.length=19;var pe=(o+(r=Math.imul(b,z))|0)+((8191&(n=(n=Math.imul(b,H))+Math.imul(u,z)|0))<<13)|0;o=((c=Math.imul(u,H))+(n>>>13)|0)+(pe>>>26)|0,pe&=67108863,r=Math.imul(h,z),n=(n=Math.imul(h,H))+Math.imul(x,z)|0,c=Math.imul(x,H);var me=(o+(r=r+Math.imul(b,K)|0)|0)+((8191&(n=(n=n+Math.imul(b,W)|0)+Math.imul(u,K)|0))<<13)|0;o=((c=c+Math.imul(u,W)|0)+(n>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(m,z),n=(n=Math.imul(m,H))+Math.imul(v,z)|0,c=Math.imul(v,H),r=r+Math.imul(h,K)|0,n=(n=n+Math.imul(h,W)|0)+Math.imul(x,K)|0,c=c+Math.imul(x,W)|0;var ve=(o+(r=r+Math.imul(b,$)|0)|0)+((8191&(n=(n=n+Math.imul(b,G)|0)+Math.imul(u,$)|0))<<13)|0;o=((c=c+Math.imul(u,G)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(y,z),n=(n=Math.imul(y,H))+Math.imul(w,z)|0,c=Math.imul(w,H),r=r+Math.imul(m,K)|0,n=(n=n+Math.imul(m,W)|0)+Math.imul(v,K)|0,c=c+Math.imul(v,W)|0,r=r+Math.imul(h,$)|0,n=(n=n+Math.imul(h,G)|0)+Math.imul(x,$)|0,c=c+Math.imul(x,G)|0;var ge=(o+(r=r+Math.imul(b,J)|0)|0)+((8191&(n=(n=n+Math.imul(b,X)|0)+Math.imul(u,J)|0))<<13)|0;o=((c=c+Math.imul(u,X)|0)+(n>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(M,z),n=(n=Math.imul(M,H))+Math.imul(k,z)|0,c=Math.imul(k,H),r=r+Math.imul(y,K)|0,n=(n=n+Math.imul(y,W)|0)+Math.imul(w,K)|0,c=c+Math.imul(w,W)|0,r=r+Math.imul(m,$)|0,n=(n=n+Math.imul(m,G)|0)+Math.imul(v,$)|0,c=c+Math.imul(v,G)|0,r=r+Math.imul(h,J)|0,n=(n=n+Math.imul(h,X)|0)+Math.imul(x,J)|0,c=c+Math.imul(x,X)|0;var ye=(o+(r=r+Math.imul(b,Q)|0)|0)+((8191&(n=(n=n+Math.imul(b,ee)|0)+Math.imul(u,Q)|0))<<13)|0;o=((c=c+Math.imul(u,ee)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(A,z),n=(n=Math.imul(A,H))+Math.imul(E,z)|0,c=Math.imul(E,H),r=r+Math.imul(M,K)|0,n=(n=n+Math.imul(M,W)|0)+Math.imul(k,K)|0,c=c+Math.imul(k,W)|0,r=r+Math.imul(y,$)|0,n=(n=n+Math.imul(y,G)|0)+Math.imul(w,$)|0,c=c+Math.imul(w,G)|0,r=r+Math.imul(m,J)|0,n=(n=n+Math.imul(m,X)|0)+Math.imul(v,J)|0,c=c+Math.imul(v,X)|0,r=r+Math.imul(h,Q)|0,n=(n=n+Math.imul(h,ee)|0)+Math.imul(x,Q)|0,c=c+Math.imul(x,ee)|0;var we=(o+(r=r+Math.imul(b,ae)|0)|0)+((8191&(n=(n=n+Math.imul(b,re)|0)+Math.imul(u,ae)|0))<<13)|0;o=((c=c+Math.imul(u,re)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(P,z),n=(n=Math.imul(P,H))+Math.imul(T,z)|0,c=Math.imul(T,H),r=r+Math.imul(A,K)|0,n=(n=n+Math.imul(A,W)|0)+Math.imul(E,K)|0,c=c+Math.imul(E,W)|0,r=r+Math.imul(M,$)|0,n=(n=n+Math.imul(M,G)|0)+Math.imul(k,$)|0,c=c+Math.imul(k,G)|0,r=r+Math.imul(y,J)|0,n=(n=n+Math.imul(y,X)|0)+Math.imul(w,J)|0,c=c+Math.imul(w,X)|0,r=r+Math.imul(m,Q)|0,n=(n=n+Math.imul(m,ee)|0)+Math.imul(v,Q)|0,c=c+Math.imul(v,ee)|0,r=r+Math.imul(h,ae)|0,n=(n=n+Math.imul(h,re)|0)+Math.imul(x,ae)|0,c=c+Math.imul(x,re)|0;var _e=(o+(r=r+Math.imul(b,ce)|0)|0)+((8191&(n=(n=n+Math.imul(b,ie)|0)+Math.imul(u,ce)|0))<<13)|0;o=((c=c+Math.imul(u,ie)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(R,z),n=(n=Math.imul(R,H))+Math.imul(C,z)|0,c=Math.imul(C,H),r=r+Math.imul(P,K)|0,n=(n=n+Math.imul(P,W)|0)+Math.imul(T,K)|0,c=c+Math.imul(T,W)|0,r=r+Math.imul(A,$)|0,n=(n=n+Math.imul(A,G)|0)+Math.imul(E,$)|0,c=c+Math.imul(E,G)|0,r=r+Math.imul(M,J)|0,n=(n=n+Math.imul(M,X)|0)+Math.imul(k,J)|0,c=c+Math.imul(k,X)|0,r=r+Math.imul(y,Q)|0,n=(n=n+Math.imul(y,ee)|0)+Math.imul(w,Q)|0,c=c+Math.imul(w,ee)|0,r=r+Math.imul(m,ae)|0,n=(n=n+Math.imul(m,re)|0)+Math.imul(v,ae)|0,c=c+Math.imul(v,re)|0,r=r+Math.imul(h,ce)|0,n=(n=n+Math.imul(h,ie)|0)+Math.imul(x,ce)|0,c=c+Math.imul(x,ie)|0;var Me=(o+(r=r+Math.imul(b,de)|0)|0)+((8191&(n=(n=n+Math.imul(b,oe)|0)+Math.imul(u,de)|0))<<13)|0;o=((c=c+Math.imul(u,oe)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(I,z),n=(n=Math.imul(I,H))+Math.imul(N,z)|0,c=Math.imul(N,H),r=r+Math.imul(R,K)|0,n=(n=n+Math.imul(R,W)|0)+Math.imul(C,K)|0,c=c+Math.imul(C,W)|0,r=r+Math.imul(P,$)|0,n=(n=n+Math.imul(P,G)|0)+Math.imul(T,$)|0,c=c+Math.imul(T,G)|0,r=r+Math.imul(A,J)|0,n=(n=n+Math.imul(A,X)|0)+Math.imul(E,J)|0,c=c+Math.imul(E,X)|0,r=r+Math.imul(M,Q)|0,n=(n=n+Math.imul(M,ee)|0)+Math.imul(k,Q)|0,c=c+Math.imul(k,ee)|0,r=r+Math.imul(y,ae)|0,n=(n=n+Math.imul(y,re)|0)+Math.imul(w,ae)|0,c=c+Math.imul(w,re)|0,r=r+Math.imul(m,ce)|0,n=(n=n+Math.imul(m,ie)|0)+Math.imul(v,ce)|0,c=c+Math.imul(v,ie)|0,r=r+Math.imul(h,de)|0,n=(n=n+Math.imul(h,oe)|0)+Math.imul(x,de)|0,c=c+Math.imul(x,oe)|0;var ke=(o+(r=r+Math.imul(b,be)|0)|0)+((8191&(n=(n=n+Math.imul(b,ue)|0)+Math.imul(u,be)|0))<<13)|0;o=((c=c+Math.imul(u,ue)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(U,z),n=(n=Math.imul(U,H))+Math.imul(F,z)|0,c=Math.imul(F,H),r=r+Math.imul(I,K)|0,n=(n=n+Math.imul(I,W)|0)+Math.imul(N,K)|0,c=c+Math.imul(N,W)|0,r=r+Math.imul(R,$)|0,n=(n=n+Math.imul(R,G)|0)+Math.imul(C,$)|0,c=c+Math.imul(C,G)|0,r=r+Math.imul(P,J)|0,n=(n=n+Math.imul(P,X)|0)+Math.imul(T,J)|0,c=c+Math.imul(T,X)|0,r=r+Math.imul(A,Q)|0,n=(n=n+Math.imul(A,ee)|0)+Math.imul(E,Q)|0,c=c+Math.imul(E,ee)|0,r=r+Math.imul(M,ae)|0,n=(n=n+Math.imul(M,re)|0)+Math.imul(k,ae)|0,c=c+Math.imul(k,re)|0,r=r+Math.imul(y,ce)|0,n=(n=n+Math.imul(y,ie)|0)+Math.imul(w,ce)|0,c=c+Math.imul(w,ie)|0,r=r+Math.imul(m,de)|0,n=(n=n+Math.imul(m,oe)|0)+Math.imul(v,de)|0,c=c+Math.imul(v,oe)|0,r=r+Math.imul(h,be)|0,n=(n=n+Math.imul(h,ue)|0)+Math.imul(x,be)|0,c=c+Math.imul(x,ue)|0;var Se=(o+(r=r+Math.imul(b,he)|0)|0)+((8191&(n=(n=n+Math.imul(b,xe)|0)+Math.imul(u,he)|0))<<13)|0;o=((c=c+Math.imul(u,xe)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(U,K),n=(n=Math.imul(U,W))+Math.imul(F,K)|0,c=Math.imul(F,W),r=r+Math.imul(I,$)|0,n=(n=n+Math.imul(I,G)|0)+Math.imul(N,$)|0,c=c+Math.imul(N,G)|0,r=r+Math.imul(R,J)|0,n=(n=n+Math.imul(R,X)|0)+Math.imul(C,J)|0,c=c+Math.imul(C,X)|0,r=r+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(T,Q)|0,c=c+Math.imul(T,ee)|0,r=r+Math.imul(A,ae)|0,n=(n=n+Math.imul(A,re)|0)+Math.imul(E,ae)|0,c=c+Math.imul(E,re)|0,r=r+Math.imul(M,ce)|0,n=(n=n+Math.imul(M,ie)|0)+Math.imul(k,ce)|0,c=c+Math.imul(k,ie)|0,r=r+Math.imul(y,de)|0,n=(n=n+Math.imul(y,oe)|0)+Math.imul(w,de)|0,c=c+Math.imul(w,oe)|0,r=r+Math.imul(m,be)|0,n=(n=n+Math.imul(m,ue)|0)+Math.imul(v,be)|0,c=c+Math.imul(v,ue)|0;var Ae=(o+(r=r+Math.imul(h,he)|0)|0)+((8191&(n=(n=n+Math.imul(h,xe)|0)+Math.imul(x,he)|0))<<13)|0;o=((c=c+Math.imul(x,xe)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(U,$),n=(n=Math.imul(U,G))+Math.imul(F,$)|0,c=Math.imul(F,G),r=r+Math.imul(I,J)|0,n=(n=n+Math.imul(I,X)|0)+Math.imul(N,J)|0,c=c+Math.imul(N,X)|0,r=r+Math.imul(R,Q)|0,n=(n=n+Math.imul(R,ee)|0)+Math.imul(C,Q)|0,c=c+Math.imul(C,ee)|0,r=r+Math.imul(P,ae)|0,n=(n=n+Math.imul(P,re)|0)+Math.imul(T,ae)|0,c=c+Math.imul(T,re)|0,r=r+Math.imul(A,ce)|0,n=(n=n+Math.imul(A,ie)|0)+Math.imul(E,ce)|0,c=c+Math.imul(E,ie)|0,r=r+Math.imul(M,de)|0,n=(n=n+Math.imul(M,oe)|0)+Math.imul(k,de)|0,c=c+Math.imul(k,oe)|0,r=r+Math.imul(y,be)|0,n=(n=n+Math.imul(y,ue)|0)+Math.imul(w,be)|0,c=c+Math.imul(w,ue)|0;var Ee=(o+(r=r+Math.imul(m,he)|0)|0)+((8191&(n=(n=n+Math.imul(m,xe)|0)+Math.imul(v,he)|0))<<13)|0;o=((c=c+Math.imul(v,xe)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(U,J),n=(n=Math.imul(U,X))+Math.imul(F,J)|0,c=Math.imul(F,X),r=r+Math.imul(I,Q)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(N,Q)|0,c=c+Math.imul(N,ee)|0,r=r+Math.imul(R,ae)|0,n=(n=n+Math.imul(R,re)|0)+Math.imul(C,ae)|0,c=c+Math.imul(C,re)|0,r=r+Math.imul(P,ce)|0,n=(n=n+Math.imul(P,ie)|0)+Math.imul(T,ce)|0,c=c+Math.imul(T,ie)|0,r=r+Math.imul(A,de)|0,n=(n=n+Math.imul(A,oe)|0)+Math.imul(E,de)|0,c=c+Math.imul(E,oe)|0,r=r+Math.imul(M,be)|0,n=(n=n+Math.imul(M,ue)|0)+Math.imul(k,be)|0,c=c+Math.imul(k,ue)|0;var Oe=(o+(r=r+Math.imul(y,he)|0)|0)+((8191&(n=(n=n+Math.imul(y,xe)|0)+Math.imul(w,he)|0))<<13)|0;o=((c=c+Math.imul(w,xe)|0)+(n>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(U,Q),n=(n=Math.imul(U,ee))+Math.imul(F,Q)|0,c=Math.imul(F,ee),r=r+Math.imul(I,ae)|0,n=(n=n+Math.imul(I,re)|0)+Math.imul(N,ae)|0,c=c+Math.imul(N,re)|0,r=r+Math.imul(R,ce)|0,n=(n=n+Math.imul(R,ie)|0)+Math.imul(C,ce)|0,c=c+Math.imul(C,ie)|0,r=r+Math.imul(P,de)|0,n=(n=n+Math.imul(P,oe)|0)+Math.imul(T,de)|0,c=c+Math.imul(T,oe)|0,r=r+Math.imul(A,be)|0,n=(n=n+Math.imul(A,ue)|0)+Math.imul(E,be)|0,c=c+Math.imul(E,ue)|0;var Pe=(o+(r=r+Math.imul(M,he)|0)|0)+((8191&(n=(n=n+Math.imul(M,xe)|0)+Math.imul(k,he)|0))<<13)|0;o=((c=c+Math.imul(k,xe)|0)+(n>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(U,ae),n=(n=Math.imul(U,re))+Math.imul(F,ae)|0,c=Math.imul(F,re),r=r+Math.imul(I,ce)|0,n=(n=n+Math.imul(I,ie)|0)+Math.imul(N,ce)|0,c=c+Math.imul(N,ie)|0,r=r+Math.imul(R,de)|0,n=(n=n+Math.imul(R,oe)|0)+Math.imul(C,de)|0,c=c+Math.imul(C,oe)|0,r=r+Math.imul(P,be)|0,n=(n=n+Math.imul(P,ue)|0)+Math.imul(T,be)|0,c=c+Math.imul(T,ue)|0;var Te=(o+(r=r+Math.imul(A,he)|0)|0)+((8191&(n=(n=n+Math.imul(A,xe)|0)+Math.imul(E,he)|0))<<13)|0;o=((c=c+Math.imul(E,xe)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(U,ce),n=(n=Math.imul(U,ie))+Math.imul(F,ce)|0,c=Math.imul(F,ie),r=r+Math.imul(I,de)|0,n=(n=n+Math.imul(I,oe)|0)+Math.imul(N,de)|0,c=c+Math.imul(N,oe)|0,r=r+Math.imul(R,be)|0,n=(n=n+Math.imul(R,ue)|0)+Math.imul(C,be)|0,c=c+Math.imul(C,ue)|0;var Be=(o+(r=r+Math.imul(P,he)|0)|0)+((8191&(n=(n=n+Math.imul(P,xe)|0)+Math.imul(T,he)|0))<<13)|0;o=((c=c+Math.imul(T,xe)|0)+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,r=Math.imul(U,de),n=(n=Math.imul(U,oe))+Math.imul(F,de)|0,c=Math.imul(F,oe),r=r+Math.imul(I,be)|0,n=(n=n+Math.imul(I,ue)|0)+Math.imul(N,be)|0,c=c+Math.imul(N,ue)|0;var Re=(o+(r=r+Math.imul(R,he)|0)|0)+((8191&(n=(n=n+Math.imul(R,xe)|0)+Math.imul(C,he)|0))<<13)|0;o=((c=c+Math.imul(C,xe)|0)+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863,r=Math.imul(U,be),n=(n=Math.imul(U,ue))+Math.imul(F,be)|0,c=Math.imul(F,ue);var Ce=(o+(r=r+Math.imul(I,he)|0)|0)+((8191&(n=(n=n+Math.imul(I,xe)|0)+Math.imul(N,he)|0))<<13)|0;o=((c=c+Math.imul(N,xe)|0)+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863;var je=(o+(r=Math.imul(U,he))|0)+((8191&(n=(n=Math.imul(U,xe))+Math.imul(F,he)|0))<<13)|0;return o=((c=Math.imul(F,xe))+(n>>>13)|0)+(je>>>26)|0,je&=67108863,d[0]=pe,d[1]=me,d[2]=ve,d[3]=ge,d[4]=ye,d[5]=we,d[6]=_e,d[7]=Me,d[8]=ke,d[9]=Se,d[10]=Ae,d[11]=Ee,d[12]=Oe,d[13]=Pe,d[14]=Te,d[15]=Be,d[16]=Re,d[17]=Ce,d[18]=je,0!==o&&(d[19]=o,a.length++),a};function m(e,t,a){a.negative=t.negative^e.negative,a.length=e.length+t.length;for(var r=0,n=0,c=0;c>>26)|0)>>>26,i&=67108863}a.words[c]=f,r=i,i=n}return 0!==r?a.words[c]=r:a.length--,a._strip()}function v(e,t,a){return m(e,t,a)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=x),c.prototype.mulTo=function(e,t){var a=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):a<63?x(this,e,t):a<1024?m(this,e,t):v(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),a=c.prototype._countBits(e)-1,r=0;r>=1;return r},g.prototype.permute=function(e,t,a,r,n,c){for(var i=0;i>>=1)n++;return 1<>>=13,a[2*i+1]=8191&c,c>>>=13;for(i=2*t;i>=26,a+=c/67108864|0,a+=i>>>26,this.words[n]=67108863&i}return 0!==a&&(this.words[n]=a,this.length++),t?this.ineg():this},c.prototype.muln=function(e){return this.clone().imuln(e)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),a=0;a>>n&1}return t}(e);if(0===t.length)return new c(1);for(var a=this,r=0;r=0);var t,a=e%26,n=(e-a)/26,c=67108863>>>26-a<<26-a;if(0!==a){var i=0;for(t=0;t>>26-a}i&&(this.words[t]=i,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var c=e%26,i=Math.min((e-c)/26,this.length),f=67108863^67108863>>>c<i)for(this.length-=i,o=0;o=0&&(0!==s||o>=n);o--){var b=0|this.words[o];this.words[o]=s<<26-c|b>>>c,s=b&f}return d&&0!==s&&(d.words[d.length++]=s),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},c.prototype.ishrn=function(e,t,a){return r(0===this.negative),this.iushrn(e,t,a)},c.prototype.shln=function(e){return this.clone().ishln(e)},c.prototype.ushln=function(e){return this.clone().iushln(e)},c.prototype.shrn=function(e){return this.clone().ishrn(e)},c.prototype.ushrn=function(e){return this.clone().iushrn(e)},c.prototype.testn=function(e){r("number"===typeof e&&e>=0);var t=e%26,a=(e-t)/26,n=1<=0);var t=e%26,a=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=a)return this;if(0!==t&&a++,this.length=Math.min(a,this.length),0!==t){var n=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},c.prototype.isubn=function(e){if(r("number"===typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(d/67108864|0),this.words[n+a]=67108863&c}for(;n>26,this.words[n+a]=67108863&c;if(0===f)return this._strip();for(r(-1===f),f=0,n=0;n>26,this.words[n]=67108863&c;return this.negative=1,this._strip()},c.prototype._wordDiv=function(e,t){var a=(this.length,e.length),r=this.clone(),n=e,i=0|n.words[n.length-1];0!==(a=26-this._countBits(i))&&(n=n.ushln(a),r.iushln(a),i=0|n.words[n.length-1]);var f,d=r.length-n.length;if("mod"!==t){(f=new c(null)).length=d+1,f.words=new Array(f.length);for(var o=0;o=0;b--){var u=67108864*(0|r.words[n.length+b])+(0|r.words[n.length+b-1]);for(u=Math.min(u/i|0,67108863),r._ishlnsubmul(n,u,b);0!==r.negative;)u--,r.negative=0,r._ishlnsubmul(n,1,b),r.isZero()||(r.negative^=1);f&&(f.words[b]=u)}return f&&f._strip(),r._strip(),"div"!==t&&0!==a&&r.iushrn(a),{div:f||null,mod:r}},c.prototype.divmod=function(e,t,a){return r(!e.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:0!==this.negative&&0===e.negative?(f=this.neg().divmod(e,t),"mod"!==t&&(n=f.div.neg()),"div"!==t&&(i=f.mod.neg(),a&&0!==i.negative&&i.iadd(e)),{div:n,mod:i}):0===this.negative&&0!==e.negative?(f=this.divmod(e.neg(),t),"mod"!==t&&(n=f.div.neg()),{div:n,mod:f.mod}):0!==(this.negative&e.negative)?(f=this.neg().divmod(e.neg(),t),"div"!==t&&(i=f.mod.neg(),a&&0!==i.negative&&i.isub(e)),{div:f.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new c(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new c(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new c(this.modrn(e.words[0]))}:this._wordDiv(e,t);var n,i,f},c.prototype.div=function(e){return this.divmod(e,"div",!1).div},c.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},c.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},c.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var a=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),n=e.andln(1),c=a.cmp(r);return c<0||1===n&&0===c?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},c.prototype.modrn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var a=(1<<26)%e,n=0,c=this.length-1;c>=0;c--)n=(a*n+(0|this.words[c]))%e;return t?-n:n},c.prototype.modn=function(e){return this.modrn(e)},c.prototype.idivn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var a=0,n=this.length-1;n>=0;n--){var c=(0|this.words[n])+67108864*a;this.words[n]=c/e|0,a=c%e}return this._strip(),t?this.ineg():this},c.prototype.divn=function(e){return this.clone().idivn(e)},c.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new c(1),i=new c(0),f=new c(0),d=new c(1),o=0;t.isEven()&&a.isEven();)t.iushrn(1),a.iushrn(1),++o;for(var s=a.clone(),b=t.clone();!t.isZero();){for(var u=0,l=1;0===(t.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(t.iushrn(u);u-- >0;)(n.isOdd()||i.isOdd())&&(n.iadd(s),i.isub(b)),n.iushrn(1),i.iushrn(1);for(var h=0,x=1;0===(a.words[0]&x)&&h<26;++h,x<<=1);if(h>0)for(a.iushrn(h);h-- >0;)(f.isOdd()||d.isOdd())&&(f.iadd(s),d.isub(b)),f.iushrn(1),d.iushrn(1);t.cmp(a)>=0?(t.isub(a),n.isub(f),i.isub(d)):(a.isub(t),f.isub(n),d.isub(i))}return{a:f,b:d,gcd:a.iushln(o)}},c.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,i=new c(1),f=new c(0),d=a.clone();t.cmpn(1)>0&&a.cmpn(1)>0;){for(var o=0,s=1;0===(t.words[0]&s)&&o<26;++o,s<<=1);if(o>0)for(t.iushrn(o);o-- >0;)i.isOdd()&&i.iadd(d),i.iushrn(1);for(var b=0,u=1;0===(a.words[0]&u)&&b<26;++b,u<<=1);if(b>0)for(a.iushrn(b);b-- >0;)f.isOdd()&&f.iadd(d),f.iushrn(1);t.cmp(a)>=0?(t.isub(a),i.isub(f)):(a.isub(t),f.isub(i))}return(n=0===t.cmpn(1)?i:f).cmpn(0)<0&&n.iadd(e),n},c.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),a=e.clone();t.negative=0,a.negative=0;for(var r=0;t.isEven()&&a.isEven();r++)t.iushrn(1),a.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;a.isEven();)a.iushrn(1);var n=t.cmp(a);if(n<0){var c=t;t=a,a=c}else if(0===n||0===a.cmpn(1))break;t.isub(a)}return a.iushln(r)},c.prototype.invm=function(e){return this.egcd(e).a.umod(e)},c.prototype.isEven=function(){return 0===(1&this.words[0])},c.prototype.isOdd=function(){return 1===(1&this.words[0])},c.prototype.andln=function(e){return this.words[0]&e},c.prototype.bincn=function(e){r("number"===typeof e);var t=e%26,a=(e-t)/26,n=1<>>26,f&=67108863,this.words[i]=f}return 0!==c&&(this.words[i]=c,this.length++),this},c.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},c.prototype.cmpn=function(e){var t,a=e<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this._strip(),this.length>1)t=1;else{a&&(e=-e),r(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;a--){var r=0|this.words[a],n=0|e.words[a];if(r!==n){rn&&(t=1);break}}return t},c.prototype.gtn=function(e){return 1===this.cmpn(e)},c.prototype.gt=function(e){return 1===this.cmp(e)},c.prototype.gten=function(e){return this.cmpn(e)>=0},c.prototype.gte=function(e){return this.cmp(e)>=0},c.prototype.ltn=function(e){return-1===this.cmpn(e)},c.prototype.lt=function(e){return-1===this.cmp(e)},c.prototype.lten=function(e){return this.cmpn(e)<=0},c.prototype.lte=function(e){return this.cmp(e)<=0},c.prototype.eqn=function(e){return 0===this.cmpn(e)},c.prototype.eq=function(e){return 0===this.cmp(e)},c.red=function(e){return new A(e)},c.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},c.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(e){return this.red=e,this},c.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},c.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},c.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},c.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},c.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},c.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},c.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},c.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},c.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function w(e,t){this.name=e,this.p=new c(t,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(e){if("string"===typeof e){var t=c._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){A.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new c(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var e=new c(null);return e.words=new Array(Math.ceil(this.n/13)),e},w.prototype.ireduce=function(e){var t,a=e;do{this.split(a,this.tmp),t=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},w.prototype.split=function(e,t){e.iushrn(this.n,0,t)},w.prototype.imulK=function(e){return e.imul(this.k)},n(_,w),_.prototype.split=function(e,t){for(var a=4194303,r=Math.min(e.length,9),n=0;n>>22,c=i}c>>>=22,e.words[n-10]=c,0===c&&e.length>10?e.length-=10:e.length-=9},_.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,a=0;a>>=26,e.words[a]=n,t=r}return 0!==t&&(e.words[e.length++]=t),e},c._prime=function(e){if(y[e])return y[e];var t;if("k256"===e)t=new _;else if("p224"===e)t=new M;else if("p192"===e)t=new k;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new S}return y[e]=t,t},A.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},A.prototype._verify2=function(e,t){r(0===(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},A.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(s(e,e.umod(this.m)._forceRed(this)),e)},A.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},A.prototype.add=function(e,t){this._verify2(e,t);var a=e.add(t);return a.cmp(this.m)>=0&&a.isub(this.m),a._forceRed(this)},A.prototype.iadd=function(e,t){this._verify2(e,t);var a=e.iadd(t);return a.cmp(this.m)>=0&&a.isub(this.m),a},A.prototype.sub=function(e,t){this._verify2(e,t);var a=e.sub(t);return a.cmpn(0)<0&&a.iadd(this.m),a._forceRed(this)},A.prototype.isub=function(e,t){this._verify2(e,t);var a=e.isub(t);return a.cmpn(0)<0&&a.iadd(this.m),a},A.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},A.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},A.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},A.prototype.isqr=function(e){return this.imul(e,e.clone())},A.prototype.sqr=function(e){return this.mul(e,e)},A.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2===1),3===t){var a=this.m.add(new c(1)).iushrn(2);return this.pow(e,a)}for(var n=this.m.subn(1),i=0;!n.isZero()&&0===n.andln(1);)i++,n.iushrn(1);r(!n.isZero());var f=new c(1).toRed(this),d=f.redNeg(),o=this.m.subn(1).iushrn(1),s=this.m.bitLength();for(s=new c(2*s*s).toRed(this);0!==this.pow(s,o).cmp(d);)s.redIAdd(d);for(var b=this.pow(s,n),u=this.pow(e,n.addn(1).iushrn(1)),l=this.pow(e,n),h=i;0!==l.cmp(f);){for(var x=l,p=0;0!==x.cmp(f);p++)x=x.redSqr();r(p=0;r--){for(var o=t.words[r],s=d-1;s>=0;s--){var b=o>>s&1;n!==a[0]&&(n=this.sqr(n)),0!==b||0!==i?(i<<=1,i|=b,(4===++f||0===r&&0===s)&&(n=this.mul(n,a[i]),f=0,i=0)):f=0}d=26}return n},A.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},A.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},c.mont=function(e){return new E(e)},n(E,A),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var a=e.imul(t),r=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(r).iushrn(this.shift),c=n;return n.cmp(this.m)>=0?c=n.isub(this.m):n.cmpn(0)<0&&(c=n.iadd(this.m)),c._forceRed(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new c(0)._forceRed(this);var a=e.mul(t),r=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(r).iushrn(this.shift),i=n;return n.cmp(this.m)>=0?i=n.isub(this.m):n.cmpn(0)<0&&(i=n.iadd(this.m)),i._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,a(24)(e))},function(e,t,a){"use strict";(function(e){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.baToJSON=t.toUtf8=t.addHexPrefix=t.toUnsigned=t.fromSigned=t.bufferToHex=t.bufferToInt=t.toBuffer=t.unpadHexString=t.unpadArray=t.unpadBuffer=t.setLengthRight=t.setLengthLeft=t.zeros=t.intToBuffer=t.intToHex=void 0;var n=r(a(51)),c=a(67),i=a(96);t.intToHex=function(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("Received an invalid integer type: "+e);return"0x"+e.toString(16)};t.intToBuffer=function(a){var r=(0,t.intToHex)(a);return e.from((0,c.padToEven)(r.slice(2)),"hex")};t.zeros=function(t){return e.allocUnsafe(t).fill(0)};var f=function(e,a,r){var n=(0,t.zeros)(a);return r?e.length0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e};t.unpadBuffer=function(e){return(0,i.assertIsBuffer)(e),d(e)};t.unpadArray=function(e){return(0,i.assertIsArray)(e),d(e)};t.unpadHexString=function(e){return(0,i.assertIsHexString)(e),e=(0,c.stripHexPrefix)(e),d(e)};t.toBuffer=function(a){if(null===a||void 0===a)return e.allocUnsafe(0);if(e.isBuffer(a))return e.from(a);if(Array.isArray(a)||a instanceof Uint8Array)return e.from(a);if("string"===typeof a){if(!(0,c.isHexString)(a))throw new Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: "+a);return e.from((0,c.padToEven)((0,c.stripHexPrefix)(a)),"hex")}if("number"===typeof a)return(0,t.intToBuffer)(a);if(n.default.isBN(a))return a.toArrayLike(e);if(a.toArray)return e.from(a.toArray());if(a.toBuffer)return e.from(a.toBuffer());throw new Error("invalid type")};t.bufferToInt=function(e){return new n.default((0,t.toBuffer)(e)).toNumber()};t.bufferToHex=function(e){return"0x"+(e=(0,t.toBuffer)(e)).toString("hex")};t.fromSigned=function(e){return new n.default(e).fromTwos(256)};t.toUnsigned=function(t){return e.from(t.toTwos(256).toArray())};t.addHexPrefix=function(e){return"string"!==typeof e||(0,c.isHexPrefixed)(e)?e:"0x"+e};t.toUtf8=function(t){if((t=(0,c.stripHexPrefix)(t)).length%2!==0)throw new Error("Invalid non-even hex string input for toUtf8() provided");return e.from(t.replace(/^(00)+|(00)+$/g,""),"hex").toString("utf8")};t.baToJSON=function(a){if(e.isBuffer(a))return"0x"+a.toString("hex");if(a instanceof Array){for(var r=[],n=0;n0||e===t?t:t-1}function v(e){for(var t,a,r=1,n=e.length,c=e[0]+"";ro^a?1:-1;for(f=(d=n.length)<(o=c.length)?d:o,i=0;ic[i]^a?1:-1;return d==o?0:d>o^a?1:-1}function y(e,t,a,r){if(ea||e!==d(e))throw Error(o+(r||"Argument")+("number"==typeof e?ea?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function w(e){var t=e.c.length-1;return m(e.e/u)==t&&e.c[t]%2!=0}function _(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function M(e,t,a){var r,n;if(t<0){for(n=a+".";++t;n+=a);e=n+e}else if(++t>(r=e.length)){for(n=a,t-=r;--t;n+=a);e+=n}else tT?m.c=m.e=null:e.e=10;b/=10,o++);return void(o>T?m.c=m.e=null:(m.e=o,m.c=[e]))}p=String(e)}else{if(!i.test(p=String(e)))return n(m,p,h);m.s=45==p.charCodeAt(0)?(p=p.slice(1),-1):1}(o=p.indexOf("."))>-1&&(p=p.replace(".","")),(b=p.search(/e/i))>0?(o<0&&(o=b),o+=+p.slice(b+1),p=p.substring(0,b)):o<0&&(o=p.length)}else{if(y(t,2,I.length,"Base"),10==t)return D(m=new N(e),S+m.e+1,A);if(p=String(e),h="number"==typeof e){if(0*e!=0)return n(m,p,h,t);if(m.s=1/e<0?(p=p.slice(1),-1):1,N.DEBUG&&p.replace(/^0\.0*|\./,"").length>15)throw Error(s+e)}else m.s=45===p.charCodeAt(0)?(p=p.slice(1),-1):1;for(a=I.slice(0,t),o=b=0,x=p.length;bo){o=x;continue}}else if(!f&&(p==p.toUpperCase()&&(p=p.toLowerCase())||p==p.toLowerCase()&&(p=p.toUpperCase()))){f=!0,b=-1,o=0;continue}return n(m,String(e),h,t)}h=!1,(o=(p=r(p,t,10,m.s)).indexOf("."))>-1?p=p.replace(".",""):o=p.length}for(b=0;48===p.charCodeAt(b);b++);for(x=p.length;48===p.charCodeAt(--x););if(p=p.slice(b,++x)){if(x-=b,h&&N.DEBUG&&x>15&&(e>l||e!==d(e)))throw Error(s+m.s*e);if((o=o-b-1)>T)m.c=m.e=null;else if(o=O)?_(d,i):M(d,i,"0");else if(c=(e=D(new N(e),t,a)).e,f=(d=v(e.c)).length,1==r||2==r&&(t<=c||c<=E)){for(;ff){if(--t>0)for(d+=".";t--;d+="0");}else if((t+=c-f)>0)for(c+1==f&&(d+=".");t--;d+="0");return e.s<0&&n?"-"+d:d}function U(e,t){for(var a,r=1,n=new N(e[0]);r=10;n/=10,r++);return(a=r+a*u-1)>T?e.c=e.e=null:a=10;o/=10,n++);if((c=t-n)<0)c+=u,i=t,x=(s=p[l=0])/m[n-i-1]%10|0;else if((l=f((c+1)/u))>=p.length){if(!r)break e;for(;p.length<=l;p.push(0));s=x=0,n=1,i=(c%=u)-u+1}else{for(s=o=p[l],n=1;o>=10;o/=10,n++);x=(i=(c%=u)-u+n)<0?0:s/m[n-i-1]%10|0}if(r=r||t<0||null!=p[l+1]||(i<0?s:s%m[n-i-1]),r=a<4?(x||r)&&(0==a||a==(e.s<0?3:2)):x>5||5==x&&(4==a||r||6==a&&(c>0?i>0?s/m[n-i]:0:p[l-1])%10&1||a==(e.s<0?8:7)),t<1||!p[0])return p.length=0,r?(t-=e.e+1,p[0]=m[(u-t%u)%u],e.e=-t||0):p[0]=e.e=0,e;if(0==c?(p.length=l,o=1,l--):(p.length=l+1,o=m[u-c],p[l]=i>0?d(s/m[n-i]%m[i])*o:0),r)for(;;){if(0==l){for(c=1,i=p[0];i>=10;i/=10,c++);for(i=p[0]+=o,o=1;i>=10;i/=10,o++);c!=o&&(e.e++,p[0]==b&&(p[0]=1));break}if(p[l]+=o,p[l]!=b)break;p[l--]=0,o=1}for(c=p.length;0===p[--c];p.pop());}e.e>T?e.c=e.e=null:e.e=O?_(t,a):M(t,a,"0"),e.s<0?"-"+t:t)}return N.clone=e,N.ROUND_UP=0,N.ROUND_DOWN=1,N.ROUND_CEIL=2,N.ROUND_FLOOR=3,N.ROUND_HALF_UP=4,N.ROUND_HALF_DOWN=5,N.ROUND_HALF_EVEN=6,N.ROUND_HALF_CEIL=7,N.ROUND_HALF_FLOOR=8,N.EUCLID=9,N.config=N.set=function(e){var t,a;if(null!=e){if("object"!=typeof e)throw Error(o+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(y(a=e[t],0,p,t),S=a),e.hasOwnProperty(t="ROUNDING_MODE")&&(y(a=e[t],0,8,t),A=a),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((a=e[t])&&a.pop?(y(a[0],-p,0,t),y(a[1],0,p,t),E=a[0],O=a[1]):(y(a,-p,p,t),E=-(O=a<0?-a:a))),e.hasOwnProperty(t="RANGE"))if((a=e[t])&&a.pop)y(a[0],-p,-1,t),y(a[1],1,p,t),P=a[0],T=a[1];else{if(y(a,-p,p,t),!a)throw Error(o+t+" cannot be zero: "+a);P=-(T=a<0?-a:a)}if(e.hasOwnProperty(t="CRYPTO")){if((a=e[t])!==!!a)throw Error(o+t+" not true or false: "+a);if(a){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw B=!a,Error(o+"crypto unavailable");B=a}else B=a}if(e.hasOwnProperty(t="MODULO_MODE")&&(y(a=e[t],0,9,t),R=a),e.hasOwnProperty(t="POW_PRECISION")&&(y(a=e[t],0,p,t),C=a),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(a=e[t]))throw Error(o+t+" not an object: "+a);j=a}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(a=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(a))throw Error(o+t+" invalid: "+a);I=a}}return{DECIMAL_PLACES:S,ROUNDING_MODE:A,EXPONENTIAL_AT:[E,O],RANGE:[P,T],CRYPTO:B,MODULO_MODE:R,POW_PRECISION:C,FORMAT:j,ALPHABET:I}},N.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!N.DEBUG)return!0;var t,a,r=e.c,n=e.e,c=e.s;e:if("[object Array]"=={}.toString.call(r)){if((1===c||-1===c)&&n>=-p&&n<=p&&n===d(n)){if(0===r[0]){if(0===n&&1===r.length)return!0;break e}if((t=(n+1)%u)<1&&(t+=u),String(r[0]).length==t){for(t=0;t=b||a!==d(a))break e;if(0!==a)return!0}}}else if(null===r&&null===n&&(null===c||1===c||-1===c))return!0;throw Error(o+"Invalid BigNumber: "+e)},N.maximum=N.max=function(){return U(arguments,c.lt)},N.minimum=N.min=function(){return U(arguments,c.gt)},N.random=function(){var e=9007199254740992,t=Math.random()*e&2097151?function(){return d(Math.random()*e)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)};return function(e){var a,r,n,c,i,s=0,b=[],l=new N(k);if(null==e?e=S:y(e,0,p),c=f(e/u),B)if(crypto.getRandomValues){for(a=crypto.getRandomValues(new Uint32Array(c*=2));s>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),a[s]=r[0],a[s+1]=r[1]):(b.push(i%1e14),s+=2);s=c/2}else{if(!crypto.randomBytes)throw B=!1,Error(o+"crypto unavailable");for(a=crypto.randomBytes(c*=7);s=9e15?crypto.randomBytes(7).copy(a,s):(b.push(i%1e14),s+=7);s=c/7}if(!B)for(;s=10;i/=10,s++);sa-1&&(null==i[n+1]&&(i[n+1]=0),i[n+1]+=i[n]/a|0,i[n]%=a)}return i.reverse()}return function(r,n,c,i,f){var d,o,s,b,u,l,h,x,p=r.indexOf("."),m=S,g=A;for(p>=0&&(b=C,C=0,r=r.replace(".",""),l=(x=new N(n)).pow(r.length-p),C=b,x.c=t(M(v(l.c),l.e,"0"),10,c,e),x.e=x.c.length),s=b=(h=t(r,n,c,f?(d=I,e):(d=e,I))).length;0==h[--b];h.pop());if(!h[0])return d.charAt(0);if(p<0?--s:(l.c=h,l.e=s,l.s=i,h=(l=a(l,x,m,g,c)).c,u=l.r,s=l.e),p=h[o=s+m+1],b=c/2,u=u||o<0||null!=h[o+1],u=g<4?(null!=p||u)&&(0==g||g==(l.s<0?3:2)):p>b||p==b&&(4==g||u||6==g&&1&h[o-1]||g==(l.s<0?8:7)),o<1||!h[0])r=u?M(d.charAt(1),-m,d.charAt(0)):d.charAt(0);else{if(h.length=o,u)for(--c;++h[--o]>c;)h[o]=0,o||(++s,h=[1].concat(h));for(b=h.length;!h[--b];);for(p=0,r="";p<=b;r+=d.charAt(h[p++]));r=M(r,s,d.charAt(0))}return r}}(),a=function(){function e(e,t,a){var r,n,c,i,f=0,d=e.length,o=t%x,s=t/x|0;for(e=e.slice();d--;)f=((n=o*(c=e[d]%x)+(r=s*c+(i=e[d]/x|0)*o)%x*x+f)/a|0)+(r/x|0)+s*i,e[d]=n%a;return f&&(e=[f].concat(e)),e}function t(e,t,a,r){var n,c;if(a!=r)c=a>r?1:-1;else for(n=c=0;nt[n]?1:-1;break}return c}function a(e,t,a,r){for(var n=0;a--;)e[a]-=n,n=e[a]1;e.splice(0,1));}return function(r,n,c,i,f){var o,s,l,h,x,p,v,g,y,w,_,M,k,S,A,E,O,P=r.s==n.s?1:-1,T=r.c,B=n.c;if(!T||!T[0]||!B||!B[0])return new N(r.s&&n.s&&(T?!B||T[0]!=B[0]:B)?T&&0==T[0]||!B?0*P:P/0:NaN);for(y=(g=new N(P)).c=[],P=c+(s=r.e-n.e)+1,f||(f=b,s=m(r.e/u)-m(n.e/u),P=P/u|0),l=0;B[l]==(T[l]||0);l++);if(B[l]>(T[l]||0)&&s--,P<0)y.push(1),h=!0;else{for(S=T.length,E=B.length,l=0,P+=2,(x=d(f/(B[0]+1)))>1&&(B=e(B,x,f),T=e(T,x,f),E=B.length,S=T.length),k=E,_=(w=T.slice(0,E)).length;_=f/2&&A++;do{if(x=0,(o=t(B,w,E,_))<0){if(M=w[0],E!=_&&(M=M*f+(w[1]||0)),(x=d(M/A))>1)for(x>=f&&(x=f-1),v=(p=e(B,x,f)).length,_=w.length;1==t(p,w,v,_);)x--,a(p,E=10;P/=10,l++);D(g,c+(g.e=l+s*u-1)+1,i,h)}else g.e=s,g.r=+h;return g}}(),n=function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,t=/^([^.]+)\.$/,a=/^\.([^.]+)$/,r=/^-?(Infinity|NaN)$/,n=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(c,i,f,d){var s,b=f?i:i.replace(n,"");if(r.test(b))c.s=isNaN(b)?null:b<0?-1:1;else{if(!f&&(b=b.replace(e,(function(e,t,a){return s="x"==(a=a.toLowerCase())?16:"b"==a?2:8,d&&d!=s?e:t})),d&&(s=d,b=b.replace(t,"$1").replace(a,"0.$1")),i!=b))return new N(b,s);if(N.DEBUG)throw Error(o+"Not a"+(d?" base "+d:"")+" number: "+i);c.s=null}c.c=c.e=null}}(),c.absoluteValue=c.abs=function(){var e=new N(this);return e.s<0&&(e.s=1),e},c.comparedTo=function(e,t){return g(this,new N(e,t))},c.decimalPlaces=c.dp=function(e,t){var a,r,n,c=this;if(null!=e)return y(e,0,p),null==t?t=A:y(t,0,8),D(new N(c),e+c.e+1,t);if(!(a=c.c))return null;if(r=((n=a.length-1)-m(this.e/u))*u,n=a[n])for(;n%10==0;n/=10,r--);return r<0&&(r=0),r},c.dividedBy=c.div=function(e,t){return a(this,new N(e,t),S,A)},c.dividedToIntegerBy=c.idiv=function(e,t){return a(this,new N(e,t),0,1)},c.exponentiatedBy=c.pow=function(e,t){var a,r,n,c,i,s,b,l,h=this;if((e=new N(e)).c&&!e.isInteger())throw Error(o+"Exponent not an integer: "+z(e));if(null!=t&&(t=new N(t)),i=e.e>14,!h.c||!h.c[0]||1==h.c[0]&&!h.e&&1==h.c.length||!e.c||!e.c[0])return l=new N(Math.pow(+z(h),i?2-w(e):+z(e))),t?l.mod(t):l;if(s=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new N(NaN);(r=!s&&h.isInteger()&&t.isInteger())&&(h=h.mod(t))}else{if(e.e>9&&(h.e>0||h.e<-1||(0==h.e?h.c[0]>1||i&&h.c[1]>=24e7:h.c[0]<8e13||i&&h.c[0]<=9999975e7)))return c=h.s<0&&w(e)?-0:0,h.e>-1&&(c=1/c),new N(s?1/c:c);C&&(c=f(C/u+2))}for(i?(a=new N(.5),s&&(e.s=1),b=w(e)):b=(n=Math.abs(+z(e)))%2,l=new N(k);;){if(b){if(!(l=l.times(h)).c)break;c?l.c.length>c&&(l.c.length=c):r&&(l=l.mod(t))}if(n){if(0===(n=d(n/2)))break;b=n%2}else if(D(e=e.times(a),e.e+1,1),e.e>14)b=w(e);else{if(0===(n=+z(e)))break;b=n%2}h=h.times(h),c?h.c&&h.c.length>c&&(h.c.length=c):r&&(h=h.mod(t))}return r?l:(s&&(l=k.div(l)),t?l.mod(t):c?D(l,C,A,undefined):l)},c.integerValue=function(e){var t=new N(this);return null==e?e=A:y(e,0,8),D(t,t.e+1,e)},c.isEqualTo=c.eq=function(e,t){return 0===g(this,new N(e,t))},c.isFinite=function(){return!!this.c},c.isGreaterThan=c.gt=function(e,t){return g(this,new N(e,t))>0},c.isGreaterThanOrEqualTo=c.gte=function(e,t){return 1===(t=g(this,new N(e,t)))||0===t},c.isInteger=function(){return!!this.c&&m(this.e/u)>this.c.length-2},c.isLessThan=c.lt=function(e,t){return g(this,new N(e,t))<0},c.isLessThanOrEqualTo=c.lte=function(e,t){return-1===(t=g(this,new N(e,t)))||0===t},c.isNaN=function(){return!this.s},c.isNegative=function(){return this.s<0},c.isPositive=function(){return this.s>0},c.isZero=function(){return!!this.c&&0==this.c[0]},c.minus=function(e,t){var a,r,n,c,i=this,f=i.s;if(t=(e=new N(e,t)).s,!f||!t)return new N(NaN);if(f!=t)return e.s=-t,i.plus(e);var d=i.e/u,o=e.e/u,s=i.c,l=e.c;if(!d||!o){if(!s||!l)return s?(e.s=-t,e):new N(l?i:NaN);if(!s[0]||!l[0])return l[0]?(e.s=-t,e):new N(s[0]?i:3==A?-0:0)}if(d=m(d),o=m(o),s=s.slice(),f=d-o){for((c=f<0)?(f=-f,n=s):(o=d,n=l),n.reverse(),t=f;t--;n.push(0));n.reverse()}else for(r=(c=(f=s.length)<(t=l.length))?f:t,f=t=0;t0)for(;t--;s[a++]=0);for(t=b-1;r>f;){if(s[--r]=0;){for(a=0,h=M[n]%y,p=M[n]/y|0,c=n+(i=d);c>n;)a=((o=h*(o=_[--i]%y)+(f=p*o+(s=_[i]/y|0)*h)%y*y+v[c]+a)/g|0)+(f/y|0)+p*s,v[c--]=o%g;v[c]=a}return a?++r:v.splice(0,1),F(e,v,r)},c.negated=function(){var e=new N(this);return e.s=-e.s||null,e},c.plus=function(e,t){var a,r=this,n=r.s;if(t=(e=new N(e,t)).s,!n||!t)return new N(NaN);if(n!=t)return e.s=-t,r.minus(e);var c=r.e/u,i=e.e/u,f=r.c,d=e.c;if(!c||!i){if(!f||!d)return new N(n/0);if(!f[0]||!d[0])return d[0]?e:new N(f[0]?r:0*n)}if(c=m(c),i=m(i),f=f.slice(),n=c-i){for(n>0?(i=c,a=d):(n=-n,a=f),a.reverse();n--;a.push(0));a.reverse()}for((n=f.length)-(t=d.length)<0&&(a=d,d=f,f=a,t=n),n=0;t;)n=(f[--t]=f[t]+d[t]+n)/b|0,f[t]=b===f[t]?0:f[t]%b;return n&&(f=[n].concat(f),++i),F(e,f,i)},c.precision=c.sd=function(e,t){var a,r,n,c=this;if(null!=e&&e!==!!e)return y(e,1,p),null==t?t=A:y(t,0,8),D(new N(c),e,t);if(!(a=c.c))return null;if(r=(n=a.length-1)*u+1,n=a[n]){for(;n%10==0;n/=10,r--);for(n=a[0];n>=10;n/=10,r++);}return e&&c.e+1>r&&(r=c.e+1),r},c.shiftedBy=function(e){return y(e,-9007199254740991,l),this.times("1e"+e)},c.squareRoot=c.sqrt=function(){var e,t,r,n,c,i=this,f=i.c,d=i.s,o=i.e,s=S+4,b=new N("0.5");if(1!==d||!f||!f[0])return new N(!d||d<0&&(!f||f[0])?NaN:f?i:1/0);if(0==(d=Math.sqrt(+z(i)))||d==1/0?(((t=v(f)).length+o)%2==0&&(t+="0"),d=Math.sqrt(+t),o=m((o+1)/2)-(o<0||o%2),r=new N(t=d==1/0?"5e"+o:(t=d.toExponential()).slice(0,t.indexOf("e")+1)+o)):r=new N(d+""),r.c[0])for((d=(o=r.e)+s)<3&&(d=0);;)if(c=r,r=b.times(c.plus(a(i,c,s,1))),v(c.c).slice(0,d)===(t=v(r.c)).slice(0,d)){if(r.e0&&x>0){for(c=x%f||f,b=h.substr(0,c);c0&&(b+=s+h.slice(c)),l&&(b="-"+b)}r=u?b+(a.decimalSeparator||"")+((d=+a.fractionGroupSize)?u.replace(new RegExp("\\d{"+d+"}\\B","g"),"$&"+(a.fractionGroupSeparator||"")):u):b}return(a.prefix||"")+r+(a.suffix||"")},c.toFraction=function(e){var t,r,n,c,i,f,d,s,b,l,x,p,m=this,g=m.c;if(null!=e&&(!(d=new N(e)).isInteger()&&(d.c||1!==d.s)||d.lt(k)))throw Error(o+"Argument "+(d.isInteger()?"out of range: ":"not an integer: ")+z(d));if(!g)return new N(m);for(t=new N(k),b=r=new N(k),n=s=new N(k),p=v(g),i=t.e=p.length-m.e-1,t.c[0]=h[(f=i%u)<0?u+f:f],e=!e||d.comparedTo(t)>0?i>0?t:b:d,f=T,T=1/0,d=new N(p),s.c[0]=0;l=a(d,t,0,1),1!=(c=r.plus(l.times(n))).comparedTo(e);)r=n,n=c,b=s.plus(l.times(c=b)),s=c,t=d.minus(l.times(c=t)),d=c;return c=a(e.minus(r),n,0,1),s=s.plus(c.times(b)),r=r.plus(c.times(n)),s.s=b.s=m.s,x=a(b,n,i*=2,A).minus(m).abs().comparedTo(a(s,r,i,A).minus(m).abs())<1?[b,n]:[s,r],T=f,x},c.toNumber=function(){return+z(this)},c.toPrecision=function(e,t){return null!=e&&y(e,1,p),L(this,e,t,2)},c.toString=function(e){var t,a=this,n=a.s,c=a.e;return null===c?n?(t="Infinity",n<0&&(t="-"+t)):t="NaN":(null==e?t=c<=E||c>=O?_(v(a.c),c):M(v(a.c),c,"0"):10===e?t=M(v((a=D(new N(a),S+c+1,A)).c),a.e,"0"):(y(e,2,I.length,"Base"),t=r(M(v(a.c),c,"0"),10,e,n,!0)),n<0&&a.c[0]&&(t="-"+t)),t},c.valueOf=c.toJSON=function(){return z(this)},c._isBigNumber=!0,null!=t&&N.set(t),N}(),c.default=c.BigNumber=c,void 0===(r=function(){return c}.call(t,a,t,e))||(e.exports=r)}()},function(e,t,a){"use strict";var r=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable;function i(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},a=0;a<10;a++)t["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(n){return!1}}()?Object.assign:function(e,t){for(var a,f,d=i(e),o=1;o=0}))},t.toAscii=function(e){var t="",a=0,r=e.length;for("0x"===e.substring(0,2)&&(a=2);a2?"one of ".concat(t," ").concat(e.slice(0,a-1).join(", "),", or ")+e[a-1]:2===a?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}n("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),n("ERR_INVALID_ARG_TYPE",(function(e,t,a){var r,n,i,f;if("string"===typeof t&&(n="not ",t.substr(!i||i<0?0:+i,n.length)===n)?(r="must not be",t=t.replace(/^not /,"")):r="must be",function(e,t,a){return(void 0===a||a>e.length)&&(a=e.length),e.substring(a-t.length,a)===t}(e," argument"))f="The ".concat(e," ").concat(r," ").concat(c(t,"type"));else{var d=function(e,t,a){return"number"!==typeof a&&(a=0),!(a+t.length>e.length)&&-1!==e.indexOf(t,a)}(e,".")?"property":"argument";f='The "'.concat(e,'" ').concat(d," ").concat(r," ").concat(c(t,"type"))}return f+=". Received type ".concat(typeof a)}),TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=r},function(e,t,a){"use strict";(function(t){var r=Object.keys||function(e){var t=[];for(var a in e)t.push(a);return t};e.exports=o;var n=a(172),c=a(176);a(7)(o,n);for(var i=r(c.prototype),f=0;f2?"one of ".concat(t," ").concat(e.slice(0,a-1).join(", "),", or ")+e[a-1]:2===a?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}n("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),n("ERR_INVALID_ARG_TYPE",(function(e,t,a){var r,n,i,f;if("string"===typeof t&&(n="not ",t.substr(!i||i<0?0:+i,n.length)===n)?(r="must not be",t=t.replace(/^not /,"")):r="must be",function(e,t,a){return(void 0===a||a>e.length)&&(a=e.length),e.substring(a-t.length,a)===t}(e," argument"))f="The ".concat(e," ").concat(r," ").concat(c(t,"type"));else{var d=function(e,t,a){return"number"!==typeof a&&(a=0),!(a+t.length>e.length)&&-1!==e.indexOf(t,a)}(e,".")?"property":"argument";f='The "'.concat(e,'" ').concat(d," ").concat(r," ").concat(c(t,"type"))}return f+=". Received type ".concat(typeof a)}),TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=r},function(e,t,a){"use strict";(function(t){var r=Object.keys||function(e){var t=[];for(var a in e)t.push(a);return t};e.exports=o;var n=a(179),c=a(183);a(7)(o,n);for(var i=r(c.prototype),f=0;f=this._finalSize&&(this._update(this._block),this._block.fill(0));var a=8*this._len;if(a<=4294967295)this._block.writeUInt32BE(a,this._blockSize-4);else{var r=(4294967295&a)>>>0,n=(a-r)/4294967296;this._block.writeUInt32BE(n,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var c=this._hash();return e?c.toString(e):c},n.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=n},function(e,t,a){"use strict";var r={};function n(e,t,a){a||(a=Error);var n=function(e){var a,r;function n(a,r,n){return e.call(this,function(e,a,r){return"string"===typeof t?t:t(e,a,r)}(a,r,n))||this}return r=e,(a=n).prototype=Object.create(r.prototype),a.prototype.constructor=a,a.__proto__=r,n}(a);n.prototype.name=a.name,n.prototype.code=e,r[e]=n}function c(e,t){if(Array.isArray(e)){var a=e.length;return e=e.map((function(e){return String(e)})),a>2?"one of ".concat(t," ").concat(e.slice(0,a-1).join(", "),", or ")+e[a-1]:2===a?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}n("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),n("ERR_INVALID_ARG_TYPE",(function(e,t,a){var r,n,i,f;if("string"===typeof t&&(n="not ",t.substr(!i||i<0?0:+i,n.length)===n)?(r="must not be",t=t.replace(/^not /,"")):r="must be",function(e,t,a){return(void 0===a||a>e.length)&&(a=e.length),e.substring(a-t.length,a)===t}(e," argument"))f="The ".concat(e," ").concat(r," ").concat(c(t,"type"));else{var d=function(e,t,a){return"number"!==typeof a&&(a=0),!(a+t.length>e.length)&&-1!==e.indexOf(t,a)}(e,".")?"property":"argument";f='The "'.concat(e,'" ').concat(d," ").concat(r," ").concat(c(t,"type"))}return f+=". Received type ".concat(typeof a)}),TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=r},function(e,t,a){"use strict";(function(t){var r=Object.keys||function(e){var t=[];for(var a in e)t.push(a);return t};e.exports=o;var n=a(220),c=a(224);a(7)(o,n);for(var i=r(c.prototype),f=0;f=0}))},t.toAscii=function(e){var t="",a=0,r=e.length;for("0x"===e.substring(0,2)&&(a=2);a=0}))},t.toAscii=function(e){var t="",a=0,r=e.length;for("0x"===e.substring(0,2)&&(a=2);a=0}))},t.toAscii=function(e){var t="",a=0,r=e.length;for("0x"===e.substring(0,2)&&(a=2);a",'"',"`"," ","\r","\n","\t"]),s=["'"].concat(o),b=["%","/","?",";","#"].concat(s),u=["/","?","#"],l=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,x={javascript:!0,"javascript:":!0},p={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=a(267);function g(e,t,a){if(e&&n.isObject(e)&&e instanceof c)return e;var r=new c;return r.parse(e,t,a),r}c.prototype.parse=function(e,t,a){if(!n.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var c=e.indexOf("?"),f=-1!==c&&c127?C+="x":C+=R[j];if(!C.match(l)){var N=T.slice(0,E),L=T.slice(E+1),U=R.match(h);U&&(N.push(U[1]),L.unshift(U[2])),L.length&&(g="/"+L.join(".")+g),this.hostname=N.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),P||(this.hostname=r.toASCII(this.hostname));var F=this.port?":"+this.port:"",D=this.hostname||"";this.host=D+F,this.href+=this.host,P&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==g[0]&&(g="/"+g))}if(!x[_])for(E=0,B=s.length;E0)&&a.host.split("@"))&&(a.auth=P.shift(),a.host=a.hostname=P.shift());return a.search=e.search,a.query=e.query,n.isNull(a.pathname)&&n.isNull(a.search)||(a.path=(a.pathname?a.pathname:"")+(a.search?a.search:"")),a.href=a.format(),a}if(!M.length)return a.pathname=null,a.search?a.path="/"+a.search:a.path=null,a.href=a.format(),a;for(var S=M.slice(-1)[0],A=(a.host||e.host||M.length>1)&&("."===S||".."===S)||""===S,E=0,O=M.length;O>=0;O--)"."===(S=M[O])?M.splice(O,1):".."===S?(M.splice(O,1),E++):E&&(M.splice(O,1),E--);if(!w&&!_)for(;E--;E)M.unshift("..");!w||""===M[0]||M[0]&&"/"===M[0].charAt(0)||M.unshift(""),A&&"/"!==M.join("/").substr(-1)&&M.push("");var P,T=""===M[0]||M[0]&&"/"===M[0].charAt(0);k&&(a.hostname=a.host=T?"":M.length?M.shift():"",(P=!!(a.host&&a.host.indexOf("@")>0)&&a.host.split("@"))&&(a.auth=P.shift(),a.host=a.hostname=P.shift()));return(w=w||a.host&&M.length)&&!T&&M.unshift(""),M.length?a.pathname=M.join("/"):(a.pathname=null,a.path=null),n.isNull(a.pathname)&&n.isNull(a.search)||(a.path=(a.pathname?a.pathname:"")+(a.search?a.search:"")),a.auth=e.auth||a.auth,a.slashes=a.slashes||e.slashes,a.href=a.format(),a},c.prototype.parseHost=function(){var e=this.host,t=f.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,a){e.exports={encode:a(399),decode:a(400),encodingLength:a(401)}},function(e,t,a){"use strict";var r=a(28),n=a(23);function c(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=c,c.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var a=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-a,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-a,this.endian);for(var n=0;n>>24&255,r[n++]=e>>>16&255,r[n++]=e>>>8&255,r[n++]=255&e}else for(r[n++]=255&e,r[n++]=e>>>8&255,r[n++]=e>>>16&255,r[n++]=e>>>24&255,r[n++]=0,r[n++]=0,r[n++]=0,r[n++]=0,c=8;ce.length)&&(t=e.length);for(var a=0,r=new Array(t);a0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function o(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=d,d.prototype.point=function(){throw new Error("Not implemented")},d.prototype.validate=function(){throw new Error("Not implemented")},d.prototype._fixedNafMul=function(e,t){f(e.precomputed);var a=e._getDoubles(),r=c(t,1,this._bitLength),n=(1<=i;s--)d=(d<<1)+r[s];o.push(d)}for(var b=this.jpoint(null,null,null),u=this.jpoint(null,null,null),l=n;l>0;l--){for(i=0;i=0;o--){for(var s=0;o>=0&&0===i[o];o--)s++;if(o>=0&&s++,d=d.dblp(s),o<0)break;var b=i[o];f(0!==b),d="affine"===e.type?b>0?d.mixedAdd(n[b-1>>1]):d.mixedAdd(n[-b-1>>1].neg()):b>0?d.add(n[b-1>>1]):d.add(n[-b-1>>1].neg())}return"affine"===e.type?d.toP():d},d.prototype._wnafMulAdd=function(e,t,a,r,n){var f,d,o,s=this._wnafT1,b=this._wnafT2,u=this._wnafT3,l=0;for(f=0;f=1;f-=2){var x=f-1,p=f;if(1===s[x]&&1===s[p]){var m=[t[x],null,null,t[p]];0===t[x].y.cmp(t[p].y)?(m[1]=t[x].add(t[p]),m[2]=t[x].toJ().mixedAdd(t[p].neg())):0===t[x].y.cmp(t[p].y.redNeg())?(m[1]=t[x].toJ().mixedAdd(t[p]),m[2]=t[x].add(t[p].neg())):(m[1]=t[x].toJ().mixedAdd(t[p]),m[2]=t[x].toJ().mixedAdd(t[p].neg()));var v=[-3,-1,-5,-7,0,7,5,1,3],g=i(a[x],a[p]);for(l=Math.max(g[0].length,l),u[x]=new Array(l),u[p]=new Array(l),d=0;d=0;f--){for(var k=0;f>=0;){var S=!0;for(d=0;d=0&&k++,_=_.dblp(k),f<0)break;for(d=0;d0?o=b[d][A-1>>1]:A<0&&(o=b[d][-A-1>>1].neg()),_="affine"===o.type?_.mixedAdd(o):_.add(o))}}for(f=0;f=Math.ceil((e.bitLength()+1)/t.step)},o.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var a=[this],r=this,n=0;n1?(e[a[0]]=e[a[0]]||{},e[a[0]][a[1]]=t):e[a[0]]=t},n.prototype.buildCall=function(){var e=this;return function(){e.subscriptions[arguments[0]]||console.warn("Subscription "+JSON.stringify(arguments[0])+" doesn't exist. Subscribing anyway.");var t=new r({subscription:e.subscriptions[arguments[0]]||{},requestManager:e.requestManager,type:e.type});return t.subscribe.apply(t,arguments)}},e.exports={subscriptions:n,subscription:r}},function(e,t,a){"use strict";var r=a(41),n=a(45),c=a(19),i=function(){var e=this;r.packageInit(this,arguments),[new n({name:"getId",call:"net_version",params:0,outputFormatter:parseInt}),new n({name:"isListening",call:"net_listening",params:0}),new n({name:"getPeerCount",call:"net_peerCount",params:0,outputFormatter:c.hexToNumber})].forEach((function(t){t.attachToObject(e),t.setRequestManager(e._requestManager)}))};r.addProviders(i),e.exports=i},function(e){e.exports=JSON.parse('{"identity":0,"ip4":4,"tcp":6,"sha1":17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,"dccp":33,"murmur3-128":34,"murmur3-32":35,"ip6":41,"ip6zone":42,"path":47,"multicodec":48,"multihash":49,"multiaddr":50,"multibase":51,"dns":53,"dns4":54,"dns6":55,"dnsaddr":56,"protobuf":80,"cbor":81,"raw":85,"dbl-sha2-256":86,"rlp":96,"bencode":99,"dag-pb":112,"dag-cbor":113,"libp2p-key":114,"git-raw":120,"torrent-info":123,"torrent-file":124,"leofcoin-block":129,"leofcoin-tx":130,"leofcoin-pr":131,"sctp":132,"eth-block":144,"eth-block-list":145,"eth-tx-trie":146,"eth-tx":147,"eth-tx-receipt-trie":148,"eth-tx-receipt":149,"eth-state-trie":150,"eth-account-snapshot":151,"eth-storage-trie":152,"bitcoin-block":176,"bitcoin-tx":177,"zcash-block":192,"zcash-tx":193,"stellar-block":208,"stellar-tx":209,"md4":212,"md5":213,"bmt":214,"decred-block":224,"decred-tx":225,"ipld-ns":226,"ipfs-ns":227,"swarm-ns":228,"ipns-ns":229,"zeronet":230,"ed25519-pub":237,"dash-block":240,"dash-tx":241,"swarm-manifest":250,"swarm-feed":251,"udp":273,"p2p-webrtc-star":275,"p2p-webrtc-direct":276,"p2p-stardust":277,"p2p-circuit":290,"dag-json":297,"udt":301,"utp":302,"unix":400,"p2p":421,"ipfs":421,"https":443,"onion":444,"onion3":445,"garlic64":446,"garlic32":447,"tls":448,"quic":460,"ws":477,"wss":478,"p2p-websocket-star":479,"http":480,"json":512,"messagepack":513,"x11":4352,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46000,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"holochain-adr-v0":8417572,"holochain-adr-v1":8483108,"holochain-key-v0":9728292,"holochain-key-v1":9793828,"holochain-sig-v0":10645796,"holochain-sig-v1":10711332}')},function(e,t,a){var r=a(10).Buffer;function n(e){r.isBuffer(e)||(e=r.from(e));for(var t=e.length/4|0,a=new Array(t),n=0;n>>24]^s[h>>>16&255]^b[x>>>8&255]^u[255&p]^t[m++],i=o[h>>>24]^s[x>>>16&255]^b[p>>>8&255]^u[255&l]^t[m++],f=o[x>>>24]^s[p>>>16&255]^b[l>>>8&255]^u[255&h]^t[m++],d=o[p>>>24]^s[l>>>16&255]^b[h>>>8&255]^u[255&x]^t[m++],l=c,h=i,x=f,p=d;return c=(r[l>>>24]<<24|r[h>>>16&255]<<16|r[x>>>8&255]<<8|r[255&p])^t[m++],i=(r[h>>>24]<<24|r[x>>>16&255]<<16|r[p>>>8&255]<<8|r[255&l])^t[m++],f=(r[x>>>24]<<24|r[p>>>16&255]<<16|r[l>>>8&255]<<8|r[255&h])^t[m++],d=(r[p>>>24]<<24|r[l>>>16&255]<<16|r[h>>>8&255]<<8|r[255&x])^t[m++],[c>>>=0,i>>>=0,f>>>=0,d>>>=0]}var f=[0,1,2,4,8,16,32,64,128,27,54],d=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var a=[],r=[],n=[[],[],[],[]],c=[[],[],[],[]],i=0,f=0,d=0;d<256;++d){var o=f^f<<1^f<<2^f<<3^f<<4;o=o>>>8^255&o^99,a[i]=o,r[o]=i;var s=e[i],b=e[s],u=e[b],l=257*e[o]^16843008*o;n[0][i]=l<<24|l>>>8,n[1][i]=l<<16|l>>>16,n[2][i]=l<<8|l>>>24,n[3][i]=l,l=16843009*u^65537*b^257*s^16843008*i,c[0][o]=l<<24|l>>>8,c[1][o]=l<<16|l>>>16,c[2][o]=l<<8|l>>>24,c[3][o]=l,0===i?i=f=1:(i=s^e[e[e[u^s]]],f^=e[e[f]])}return{SBOX:a,INV_SBOX:r,SUB_MIX:n,INV_SUB_MIX:c}}();function o(e){this._key=n(e),this._reset()}o.blockSize=16,o.keySize=32,o.prototype.blockSize=o.blockSize,o.prototype.keySize=o.keySize,o.prototype._reset=function(){for(var e=this._key,t=e.length,a=t+6,r=4*(a+1),n=[],c=0;c>>24,i=d.SBOX[i>>>24]<<24|d.SBOX[i>>>16&255]<<16|d.SBOX[i>>>8&255]<<8|d.SBOX[255&i],i^=f[c/t|0]<<24):t>6&&c%t===4&&(i=d.SBOX[i>>>24]<<24|d.SBOX[i>>>16&255]<<16|d.SBOX[i>>>8&255]<<8|d.SBOX[255&i]),n[c]=n[c-t]^i}for(var o=[],s=0;s>>24]]^d.INV_SUB_MIX[1][d.SBOX[u>>>16&255]]^d.INV_SUB_MIX[2][d.SBOX[u>>>8&255]]^d.INV_SUB_MIX[3][d.SBOX[255&u]]}this._nRounds=a,this._keySchedule=n,this._invKeySchedule=o},o.prototype.encryptBlockRaw=function(e){return i(e=n(e),this._keySchedule,d.SUB_MIX,d.SBOX,this._nRounds)},o.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),a=r.allocUnsafe(16);return a.writeUInt32BE(t[0],0),a.writeUInt32BE(t[1],4),a.writeUInt32BE(t[2],8),a.writeUInt32BE(t[3],12),a},o.prototype.decryptBlock=function(e){var t=(e=n(e))[1];e[1]=e[3],e[3]=t;var a=i(e,this._invKeySchedule,d.INV_SUB_MIX,d.INV_SBOX,this._nRounds),c=r.allocUnsafe(16);return c.writeUInt32BE(a[0],0),c.writeUInt32BE(a[3],4),c.writeUInt32BE(a[2],8),c.writeUInt32BE(a[1],12),c},o.prototype.scrub=function(){c(this._keySchedule),c(this._invKeySchedule),c(this._key)},e.exports.AES=o},function(e,t,a){var r=a(10).Buffer,n=a(115);e.exports=function(e,t,a,c){if(r.isBuffer(e)||(e=r.from(e,"binary")),t&&(r.isBuffer(t)||(t=r.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var i=a/8,f=r.alloc(i),d=r.alloc(c||0),o=r.alloc(0);i>0||c>0;){var s=new n;s.update(o),s.update(e),t&&s.update(t),o=s.digest();var b=0;if(i>0){var u=f.length-i;b=Math.min(i,o.length),o.copy(f,u,0,b),i-=b}if(b0){var l=d.length-c,h=Math.min(c,o.length-b);o.copy(d,l,b,b+h),c-=h}}return o.fill(0),{key:f,iv:d}}},function(e,t,a){var r=a(468),n=a(475),c=a(476),i=a(125),f=a(156),d=a(10).Buffer;function o(e){var t;"object"!==typeof e||d.isBuffer(e)||(t=e.passphrase,e=e.key),"string"===typeof e&&(e=d.from(e));var a,o,s=c(e,t),b=s.tag,u=s.data;switch(b){case"CERTIFICATE":o=r.certificate.decode(u,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(o||(o=r.PublicKey.decode(u,"der")),a=o.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPublicKey.decode(o.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return o.subjectPrivateKey=o.subjectPublicKey,{type:"ec",data:o};case"1.2.840.10040.4.1":return o.algorithm.params.pub_key=r.DSAparam.decode(o.subjectPublicKey.data,"der"),{type:"dsa",data:o.algorithm.params};default:throw new Error("unknown key id "+a)}case"ENCRYPTED PRIVATE KEY":u=function(e,t){var a=e.algorithm.decrypt.kde.kdeparams.salt,r=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),c=n[e.algorithm.decrypt.cipher.algo.join(".")],o=e.algorithm.decrypt.cipher.iv,s=e.subjectPrivateKey,b=parseInt(c.split("-")[1],10)/8,u=f.pbkdf2Sync(t,a,r,b,"sha1"),l=i.createDecipheriv(c,u,o),h=[];return h.push(l.update(s)),h.push(l.final()),d.concat(h)}(u=r.EncryptedPrivateKey.decode(u,"der"),t);case"PRIVATE KEY":switch(a=(o=r.PrivateKey.decode(u,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPrivateKey.decode(o.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:o.algorithm.curve,privateKey:r.ECPrivateKey.decode(o.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return o.algorithm.params.priv_key=r.DSAparam.decode(o.subjectPrivateKey,"der"),{type:"dsa",params:o.algorithm.params};default:throw new Error("unknown key id "+a)}case"RSA PUBLIC KEY":return r.RSAPublicKey.decode(u,"der");case"RSA PRIVATE KEY":return r.RSAPrivateKey.decode(u,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:r.DSAPrivateKey.decode(u,"der")};case"EC PRIVATE KEY":return{curve:(u=r.ECPrivateKey.decode(u,"der")).parameters.value,privateKey:u.privateKey};default:throw new Error("unknown key type "+b)}}e.exports=o,o.signature=r.signature},function(e,t,a){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.assertIsString=t.assertIsArray=t.assertIsBuffer=t.assertIsHexString=void 0;var r=a(64);t.assertIsHexString=function(e){if(!(0,r.isHexString)(e))throw new Error("This method only supports 0x-prefixed hex strings but input was: "+e)};t.assertIsBuffer=function(t){if(!e.isBuffer(t))throw new Error("This method only supports Buffer but input was: "+t)};t.assertIsArray=function(e){if(!Array.isArray(e))throw new Error("This method only supports number arrays but input was: "+e)};t.assertIsString=function(e){if("string"!==typeof e)throw new Error("This method only supports strings but input was: "+e)}}).call(this,a(3).Buffer)},function(e,t,a){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.assertIsString=t.assertIsArray=t.assertIsBuffer=t.assertIsHexString=void 0;var r=a(66);t.assertIsHexString=function(e){if(!(0,r.isHexString)(e))throw new Error("This method only supports 0x-prefixed hex strings but input was: "+e)};t.assertIsBuffer=function(t){if(!e.isBuffer(t))throw new Error("This method only supports Buffer but input was: "+t)};t.assertIsArray=function(e){if(!Array.isArray(e))throw new Error("This method only supports number arrays but input was: "+e)};t.assertIsString=function(e){if("string"!==typeof e)throw new Error("This method only supports strings but input was: "+e)}}).call(this,a(3).Buffer)},function(e,t,a){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.assertIsString=t.assertIsArray=t.assertIsBuffer=t.assertIsHexString=void 0;var r=a(67);t.assertIsHexString=function(e){if(!(0,r.isHexString)(e))throw new Error("This method only supports 0x-prefixed hex strings but input was: "+e)};t.assertIsBuffer=function(t){if(!e.isBuffer(t))throw new Error("This method only supports Buffer but input was: "+t)};t.assertIsArray=function(e){if(!Array.isArray(e))throw new Error("This method only supports number arrays but input was: "+e)};t.assertIsString=function(e){if("string"!==typeof e)throw new Error("This method only supports strings but input was: "+e)}}).call(this,a(3).Buffer)},function(e,t,a){"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}a.d(t,"a",(function(){return r}))},function(e,t,a){"use strict";function r(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}a.d(t,"a",(function(){return r}))},function(e,t,a){var r=a(146);e.exports=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,a){var r=a(252),n=a(170),c=a(261);e.exports=function(e){var t=n();return function(){var a,n=r(e);if(t){var i=r(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return c(this,a)}}},function(e,t){function a(e,t,a,r,n,c,i){try{var f=e[c](i),d=f.value}catch(o){return void a(o)}f.done?t(d):Promise.resolve(d).then(r,n)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(n,c){var i=e.apply(t,r);function f(e){a(i,n,c,f,d,"next",e)}function d(e){a(i,n,c,f,d,"throw",e)}f(void 0)}))}}},function(e,t,a){var r=function(e){"use strict";var t,a=Object.prototype,r=a.hasOwnProperty,n="function"===typeof Symbol?Symbol:{},c=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",f=n.toStringTag||"@@toStringTag";function d(e,t,a){return Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(B){d=function(e,t,a){return e[t]=a}}function o(e,t,a,r){var n=t&&t.prototype instanceof p?t:p,c=Object.create(n.prototype),i=new O(r||[]);return c._invoke=function(e,t,a){var r=b;return function(n,c){if(r===l)throw new Error("Generator is already running");if(r===h){if("throw"===n)throw c;return T()}for(a.method=n,a.arg=c;;){var i=a.delegate;if(i){var f=S(i,a);if(f){if(f===x)continue;return f}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===b)throw r=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=l;var d=s(e,t,a);if("normal"===d.type){if(r=a.done?h:u,d.arg===x)continue;return{value:d.arg,done:a.done}}"throw"===d.type&&(r=h,a.method="throw",a.arg=d.arg)}}}(e,a,i),c}function s(e,t,a){try{return{type:"normal",arg:e.call(t,a)}}catch(B){return{type:"throw",arg:B}}}e.wrap=o;var b="suspendedStart",u="suspendedYield",l="executing",h="completed",x={};function p(){}function m(){}function v(){}var g={};d(g,c,(function(){return this}));var y=Object.getPrototypeOf,w=y&&y(y(P([])));w&&w!==a&&r.call(w,c)&&(g=w);var _=v.prototype=p.prototype=Object.create(g);function M(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function a(n,c,i,f){var d=s(e[n],e,c);if("throw"!==d.type){var o=d.arg,b=o.value;return b&&"object"===typeof b&&r.call(b,"__await")?t.resolve(b.__await).then((function(e){a("next",e,i,f)}),(function(e){a("throw",e,i,f)})):t.resolve(b).then((function(e){o.value=e,i(o)}),(function(e){return a("throw",e,i,f)}))}f(d.arg)}var n;this._invoke=function(e,r){function c(){return new t((function(t,n){a(e,r,t,n)}))}return n=n?n.then(c,c):c()}}function S(e,a){var r=e.iterator[a.method];if(r===t){if(a.delegate=null,"throw"===a.method){if(e.iterator.return&&(a.method="return",a.arg=t,S(e,a),"throw"===a.method))return x;a.method="throw",a.arg=new TypeError("The iterator does not provide a 'throw' method")}return x}var n=s(r,e.iterator,a.arg);if("throw"===n.type)return a.method="throw",a.arg=n.arg,a.delegate=null,x;var c=n.arg;return c?c.done?(a[e.resultName]=c.value,a.next=e.nextLoc,"return"!==a.method&&(a.method="next",a.arg=t),a.delegate=null,x):c:(a.method="throw",a.arg=new TypeError("iterator result is not an object"),a.delegate=null,x)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function P(e){if(e){var a=e[c];if(a)return a.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function a(){for(;++n=0;--c){var i=this.tryEntries[c],f=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var d=r.call(i,"catchLoc"),o=r.call(i,"finallyLoc");if(d&&o){if(this.prev=0;--a){var n=this.tryEntries[a];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev=0;--t){var a=this.tryEntries[t];if(a.finallyLoc===e)return this.complete(a.completion,a.afterLoc),E(a),x}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.tryLoc===e){var r=a.completion;if("throw"===r.type){var n=r.arg;E(a)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,a,r){return this.delegate={iterator:P(e),resultName:a,nextLoc:r},"next"===this.method&&(this.arg=t),x}},e}(e.exports);try{regeneratorRuntime=r}catch(n){"object"===typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},function(e,t,a){e.exports=function(e){var t={};function a(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,a),n.l=!0,n.exports}return a.m=e,a.c=t,a.d=function(e,t,r){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(a.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(r,n,function(t){return e[t]}.bind(null,n));return r},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=90)}({17:function(e,t,a){"use strict";t.__esModule=!0,t.default=void 0;var r=a(18),n=function(){function e(){}return e.getFirstMatch=function(e,t){var a=t.match(e);return a&&a.length>0&&a[1]||""},e.getSecondMatch=function(e,t){var a=t.match(e);return a&&a.length>1&&a[2]||""},e.matchAndReturnConst=function(e,t,a){if(e.test(t))return a},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,a,r){void 0===r&&(r=!1);var n=e.getVersionPrecision(t),c=e.getVersionPrecision(a),i=Math.max(n,c),f=0,d=e.map([t,a],(function(t){var a=i-e.getVersionPrecision(t),r=t+new Array(a+1).join(".0");return e.map(r.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(r&&(f=i-Math.min(n,c)),i-=1;i>=f;){if(d[0][i]>d[1][i])return 1;if(d[0][i]===d[1][i]){if(i===f)return 0;i-=1}else if(d[0][i]1?n-1:0),i=1;i0){var i=Object.keys(a),d=f.default.find(i,(function(e){return t.isOS(e)}));if(d){var o=this.satisfies(a[d]);if(void 0!==o)return o}var s=f.default.find(i,(function(e){return t.isPlatform(e)}));if(s){var b=this.satisfies(a[s]);if(void 0!==b)return b}}if(c>0){var u=Object.keys(n),l=f.default.find(u,(function(e){return t.isBrowser(e,!0)}));if(void 0!==l)return this.compareVersion(n[l])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var a=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),n=f.default.getBrowserTypeByAlias(r);return t&&n&&(r=n.toLowerCase()),r===a},t.compareVersion=function(e){var t=[0],a=e,r=!1,n=this.getBrowserVersion();if("string"==typeof n)return">"===e[0]||"<"===e[0]?(a=e.substr(1),"="===e[1]?(r=!0,a=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?a=e.substr(1):"~"===e[0]&&(r=!0,a=e.substr(1)),t.indexOf(f.default.compareVersions(n,a,r))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some((function(e){return t.is(e)}))},e}();t.default=o,e.exports=t.default},92:function(e,t,a){"use strict";t.__esModule=!0,t.default=void 0;var r,n=(r=a(17))&&r.__esModule?r:{default:r},c=/version\/(\d+(\.?_?\d+)+)/i,i=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},a=n.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||n.default.getFirstMatch(c,e);return a&&(t.version=a),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},a=n.default.getFirstMatch(c,e)||n.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return a&&(t.version=a),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},a=n.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||n.default.getFirstMatch(c,e);return a&&(t.version=a),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},a=n.default.getFirstMatch(c,e)||n.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return a&&(t.version=a),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},a=n.default.getFirstMatch(c,e)||n.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return a&&(t.version=a),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},a=n.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||n.default.getFirstMatch(c,e);return a&&(t.version=a),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},a=n.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||n.default.getFirstMatch(c,e);return a&&(t.version=a),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},a=n.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||n.default.getFirstMatch(c,e);return a&&(t.version=a),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},a=n.default.getFirstMatch(c,e)||n.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return a&&(t.version=a),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},a=n.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||n.default.getFirstMatch(c,e);return a&&(t.version=a),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},a=n.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||n.default.getFirstMatch(c,e);return a&&(t.version=a),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},a=n.default.getFirstMatch(c,e)||n.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return a&&(t.version=a),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},a=n.default.getFirstMatch(c,e)||n.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return a&&(t.version=a),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},a=n.default.getFirstMatch(c,e)||n.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return a&&(t.version=a),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},a=n.default.getFirstMatch(c,e)||n.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return a&&(t.version=a),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},a=n.default.getFirstMatch(c,e)||n.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return a&&(t.version=a),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},a=n.default.getFirstMatch(c,e)||n.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return a&&(t.version=a),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},a=n.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||n.default.getFirstMatch(c,e);return a&&(t.version=a),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},a=n.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||n.default.getFirstMatch(c,e);return a&&(t.version=a),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},a=n.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return a&&(t.version=a),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},a=n.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return a&&(t.version=a),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},a=n.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return a&&(t.version=a),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},a=n.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return a&&(t.version=a),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},a=n.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return a&&(t.version=a),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},a=n.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return a&&(t.version=a),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},a=n.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return a&&(t.version=a),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},a=n.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return a&&(t.version=a),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},a=n.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return a&&(t.version=a),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},a=n.default.getFirstMatch(c,e)||n.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return a&&(t.version=a),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},a=n.default.getFirstMatch(c,e)||n.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return a&&(t.version=a),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},a=n.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return a&&(t.version=a),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},a=n.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||n.default.getFirstMatch(c,e);return a&&(t.version=a),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},a=n.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||n.default.getFirstMatch(c,e);return a&&(t.version=a),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},a=n.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return a&&(t.version=a),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},a=n.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return a&&(t.version=a),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},a=n.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return a&&(t.version=a),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},a=n.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||n.default.getFirstMatch(c,e);return a&&(t.version=a),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},a=n.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return a&&(t.version=a),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},a=n.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return a&&(t.version=a),t}},{test:function(e){var t=!e.test(/like android/i),a=e.test(/android/i);return t&&a},describe:function(e){var t={name:"Android Browser"},a=n.default.getFirstMatch(c,e);return a&&(t.version=a),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},a=n.default.getFirstMatch(c,e);return a&&(t.version=a),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},a=n.default.getFirstMatch(c,e);return a&&(t.version=a),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:n.default.getFirstMatch(t,e),version:n.default.getSecondMatch(t,e)}}}];t.default=i,e.exports=t.default},93:function(e,t,a){"use strict";t.__esModule=!0,t.default=void 0;var r,n=(r=a(17))&&r.__esModule?r:{default:r},c=a(18),i=[{test:[/Roku\/DVP/],describe:function(e){var t=n.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:c.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=n.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:c.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=n.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),a=n.default.getWindowsVersionName(t);return{name:c.OS_MAP.Windows,version:t,versionName:a}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:c.OS_MAP.iOS},a=n.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return a&&(t.version=a),t}},{test:[/macintosh/i],describe:function(e){var t=n.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),a=n.default.getMacOSVersionName(t),r={name:c.OS_MAP.MacOS,version:t};return a&&(r.versionName=a),r}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=n.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:c.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),a=e.test(/android/i);return t&&a},describe:function(e){var t=n.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),a=n.default.getAndroidVersionName(t),r={name:c.OS_MAP.Android,version:t};return a&&(r.versionName=a),r}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=n.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),a={name:c.OS_MAP.WebOS};return t&&t.length&&(a.version=t),a}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=n.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||n.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||n.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:c.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=n.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:c.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=n.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:c.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:c.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:c.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=n.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:c.OS_MAP.PlayStation4,version:t}}}];t.default=i,e.exports=t.default},94:function(e,t,a){"use strict";t.__esModule=!0,t.default=void 0;var r,n=(r=a(17))&&r.__esModule?r:{default:r},c=a(18),i=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=n.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",a={type:c.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(a.model=t),a}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:c.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:c.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:c.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:c.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:c.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:c.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),a=e.test(/like (ipod|iphone)/i);return t&&!a},describe:function(e){var t=n.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:c.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:c.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:c.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:c.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:c.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:c.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:c.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:c.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:c.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:c.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:c.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:c.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:c.PLATFORMS_MAP.tv}}}];t.default=i,e.exports=t.default},95:function(e,t,a){"use strict";t.__esModule=!0,t.default=void 0;var r,n=(r=a(17))&&r.__esModule?r:{default:r},c=a(18),i=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:c.ENGINE_MAP.Blink};var t=n.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:c.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:c.ENGINE_MAP.Trident},a=n.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return a&&(t.version=a),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:c.ENGINE_MAP.Presto},a=n.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return a&&(t.version=a),t}},{test:function(e){var t=e.test(/gecko/i),a=e.test(/like gecko/i);return t&&!a},describe:function(e){var t={name:c.ENGINE_MAP.Gecko},a=n.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return a&&(t.version=a),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:c.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:c.ENGINE_MAP.WebKit},a=n.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return a&&(t.version=a),t}}];t.default=i,e.exports=t.default}})},function(e,t,a){"use strict";var r=a(9),n=a.n(r),c=a(1);function i(e,t){if(null==e)return{};var a,r,n=function(e,t){if(null==e)return{};var a,r,n={},c=Object.keys(e);for(r=0;r=0||(n[a]=e[a]);return n}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}var f=a(34),d=a(29);function o(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function s(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4*r.length;Object(c.a)(this,a),e=t.call(this);var i=r;if(i instanceof ArrayBuffer&&(i=new Uint8Array(i)),(i instanceof Int8Array||i instanceof Uint8ClampedArray||i instanceof Int16Array||i instanceof Uint16Array||i instanceof Int32Array||i instanceof Uint32Array||i instanceof Float32Array||i instanceof Float64Array)&&(i=new Uint8Array(i.buffer,i.byteOffset,i.byteLength)),i instanceof Uint8Array){for(var f=i.byteLength,d=[],o=0;o>>2]|=i[o]<<24-o%4*8;e.words=d,e.sigBytes=f}else e.words=r,e.sigBytes=n;return e}return Object(v.a)(a,[{key:"toString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:w;return e.stringify(this)}},{key:"concat",value:function(e){var t=this.words,a=e.words,r=this.sigBytes,n=e.sigBytes;if(this.clamp(),r%4)for(var c=0;c>>2]>>>24-c%4*8&255;t[r+c>>>2]|=i<<24-(r+c)%4*8}else for(var f=0;f>>2]=a[f>>>2];return this.sigBytes+=n,this}},{key:"clamp",value:function(){var e=this.words,t=this.sigBytes;e[t>>>2]&=4294967295<<32-t%4*8,e.length=Math.ceil(t/4)}},{key:"clone",value:function(){var e=Object(l.a)(Object(h.a)(a.prototype),"clone",this).call(this);return e.words=this.words.slice(0),e}}],[{key:"random",value:function(e){for(var t,r=[],n=function(e){var t=e,a=987654321,r=4294967295;return function(){var e=((a=36969*(65535&a)+(a>>16)&r)<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r;return e/=4294967296,(e+=.5)*(Math.random()>.5?1:-1)}},c=0;c>>2]>>>24-n%4*8&255;r.push((c>>>4).toString(16)),r.push((15&c).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,a=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new y(a,t/2)}},_={stringify:function(e){for(var t=e.words,a=e.sigBytes,r=[],n=0;n>>2]>>>24-n%4*8&255;r.push(String.fromCharCode(c))}return r.join("")},parse:function(e){for(var t=e.length,a=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new y(a,t)}},M={stringify:function(e){try{return decodeURIComponent(escape(_.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return _.parse(unescape(encodeURIComponent(e)))}},k=function(e){Object(x.a)(a,e);var t=Object(p.a)(a);function a(){var e;return Object(c.a)(this,a),(e=t.call(this))._minBufferSize=0,e}return Object(v.a)(a,[{key:"reset",value:function(){this._data=new y,this._nDataBytes=0}},{key:"_append",value:function(e){var t=e;"string"===typeof t&&(t=M.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes}},{key:"_process",value:function(e){var t,a=this._data,r=this.blockSize,n=a.words,c=a.sigBytes,i=c/(4*r),f=(i=e?Math.ceil(i):Math.max((0|i)-this._minBufferSize,0))*r,d=Math.min(4*f,c);if(f){for(var o=0;oo&&(f=i.finalize(r)),f.clamp();var s=f.clone();n._oKey=s;var b=f.clone();n._iKey=b;for(var u=s.words,l=b.words,h=0;h0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8*r.length;return Object(c.a)(this,a),(e=t.call(this)).words=r,e.sigBytes=n,e}return Object(v.a)(a,[{key:"toX32",value:function(){for(var e=this.words,t=e.length,a=[],r=0;r>>2]>>>24-c%4*8&255)<<16|(t[c+1>>>2]>>>24-(c+1)%4*8&255)<<8|t[c+2>>>2]>>>24-(c+2)%4*8&255,f=0;f<4&&c+.75*f>>6*(3-f)&63));var d=r.charAt(64);if(d)for(;n.length%4;)n.push(d);return n.join("")},parse:function(e){var t=e.length,a=this._map,r=this._reverseMap;if(!r){this._reverseMap=[],r=this._reverseMap;for(var n=0;n>>6-c%4*2;r[n>>>2]|=i<<24-n%4*8,n+=1}return y.create(r,n)}(e,t,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},B=[],R=0;R<64;R+=1)B[R]=4294967296*Math.abs(Math.sin(R+1))|0;var C=function(e,t,a,r,n,c,i){var f=e+(t&a|~t&r)+n+i;return(f<>>32-c)+t},j=function(e,t,a,r,n,c,i){var f=e+(t&r|a&~r)+n+i;return(f<>>32-c)+t},I=function(e,t,a,r,n,c,i){var f=e+(t^a^r)+n+i;return(f<>>32-c)+t},N=function(e,t,a,r,n,c,i){var f=e+(a^(t|~r))+n+i;return(f<>>32-c)+t},L=function(e){Object(x.a)(a,e);var t=Object(p.a)(a);function a(){return Object(c.a)(this,a),t.apply(this,arguments)}return Object(v.a)(a,[{key:"_doReset",value:function(){this._hash=new y([1732584193,4023233417,2562383102,271733878])}},{key:"_doProcessBlock",value:function(e,t){for(var a=e,r=0;r<16;r+=1){var n=t+r,c=e[n];a[n]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}var i=this._hash.words,f=a[t+0],d=a[t+1],o=a[t+2],s=a[t+3],b=a[t+4],u=a[t+5],l=a[t+6],h=a[t+7],x=a[t+8],p=a[t+9],m=a[t+10],v=a[t+11],g=a[t+12],y=a[t+13],w=a[t+14],_=a[t+15],M=i[0],k=i[1],S=i[2],A=i[3];M=C(M,k,S,A,f,7,B[0]),A=C(A,M,k,S,d,12,B[1]),S=C(S,A,M,k,o,17,B[2]),k=C(k,S,A,M,s,22,B[3]),M=C(M,k,S,A,b,7,B[4]),A=C(A,M,k,S,u,12,B[5]),S=C(S,A,M,k,l,17,B[6]),k=C(k,S,A,M,h,22,B[7]),M=C(M,k,S,A,x,7,B[8]),A=C(A,M,k,S,p,12,B[9]),S=C(S,A,M,k,m,17,B[10]),k=C(k,S,A,M,v,22,B[11]),M=C(M,k,S,A,g,7,B[12]),A=C(A,M,k,S,y,12,B[13]),S=C(S,A,M,k,w,17,B[14]),k=C(k,S,A,M,_,22,B[15]),M=j(M,k,S,A,d,5,B[16]),A=j(A,M,k,S,l,9,B[17]),S=j(S,A,M,k,v,14,B[18]),k=j(k,S,A,M,f,20,B[19]),M=j(M,k,S,A,u,5,B[20]),A=j(A,M,k,S,m,9,B[21]),S=j(S,A,M,k,_,14,B[22]),k=j(k,S,A,M,b,20,B[23]),M=j(M,k,S,A,p,5,B[24]),A=j(A,M,k,S,w,9,B[25]),S=j(S,A,M,k,s,14,B[26]),k=j(k,S,A,M,x,20,B[27]),M=j(M,k,S,A,y,5,B[28]),A=j(A,M,k,S,o,9,B[29]),S=j(S,A,M,k,h,14,B[30]),k=j(k,S,A,M,g,20,B[31]),M=I(M,k,S,A,u,4,B[32]),A=I(A,M,k,S,x,11,B[33]),S=I(S,A,M,k,v,16,B[34]),k=I(k,S,A,M,w,23,B[35]),M=I(M,k,S,A,d,4,B[36]),A=I(A,M,k,S,b,11,B[37]),S=I(S,A,M,k,h,16,B[38]),k=I(k,S,A,M,m,23,B[39]),M=I(M,k,S,A,y,4,B[40]),A=I(A,M,k,S,f,11,B[41]),S=I(S,A,M,k,s,16,B[42]),k=I(k,S,A,M,l,23,B[43]),M=I(M,k,S,A,p,4,B[44]),A=I(A,M,k,S,g,11,B[45]),S=I(S,A,M,k,_,16,B[46]),k=I(k,S,A,M,o,23,B[47]),M=N(M,k,S,A,f,6,B[48]),A=N(A,M,k,S,h,10,B[49]),S=N(S,A,M,k,w,15,B[50]),k=N(k,S,A,M,u,21,B[51]),M=N(M,k,S,A,g,6,B[52]),A=N(A,M,k,S,s,10,B[53]),S=N(S,A,M,k,m,15,B[54]),k=N(k,S,A,M,d,21,B[55]),M=N(M,k,S,A,x,6,B[56]),A=N(A,M,k,S,_,10,B[57]),S=N(S,A,M,k,l,15,B[58]),k=N(k,S,A,M,y,21,B[59]),M=N(M,k,S,A,b,6,B[60]),A=N(A,M,k,S,v,10,B[61]),S=N(S,A,M,k,o,15,B[62]),k=N(k,S,A,M,p,21,B[63]),i[0]=i[0]+M|0,i[1]=i[1]+k|0,i[2]=i[2]+S|0,i[3]=i[3]+A|0}},{key:"_doFinalize",value:function(){var e=this._data,t=e.words,a=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32;var n=Math.floor(a/4294967296),c=a;t[15+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),t[14+(r+64>>>9<<4)]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,f=i.words,d=0;d<4;d+=1){var o=f[d];f[d]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}return i}},{key:"clone",value:function(){var e=Object(l.a)(Object(h.a)(a.prototype),"clone",this).call(this);return e._hash=this._hash.clone(),e}}]),a}(S),U=S._createHelper(L),F=S._createHmacHelper(L),D=function(e){Object(x.a)(a,e);var t=Object(p.a)(a);function a(e){var r;return Object(c.a)(this,a),(r=t.call(this)).cfg=Object.assign(new g,{keySize:4,hasher:L,iterations:1},e),r}return Object(v.a)(a,[{key:"compute",value:function(e,t){for(var a,r=this.cfg,n=r.hasher.create(),c=y.create(),i=c.words,f=r.keySize,d=r.iterations;i.length>>2];t.sigBytes-=a}},$=function(e){Object(x.a)(a,e);var t=Object(p.a)(a);function a(e,r,n){var i;return Object(c.a)(this,a),(i=t.call(this,e,r,Object.assign({mode:W,padding:V},n))).blockSize=4,i}return Object(v.a)(a,[{key:"reset",value:function(){var e;Object(l.a)(Object(h.a)(a.prototype),"reset",this).call(this);var t=this.cfg,r=t.iv,n=t.mode;this._xformMode===this.constructor._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode=e.call(n,this,r&&r.words),this._mode.__creator=e}},{key:"_doProcessBlock",value:function(e,t){this._mode.processBlock(e,t)}},{key:"_doFinalize",value:function(){var e,t=this.cfg.padding;return this._xformMode===this.constructor._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e}}]),a}(z),G=function(e){Object(x.a)(a,e);var t=Object(p.a)(a);function a(e){var r;return Object(c.a)(this,a),(r=t.call(this)).mixIn(e),r}return Object(v.a)(a,[{key:"toString",value:function(e){return(e||this.formatter).stringify(this)}}]),a}(g),Z={stringify:function(e){var t=e.ciphertext,a=e.salt;return(a?y.create([1398893684,1701076831]).concat(a).concat(t):t).toString(T)},parse:function(e){var t,a=T.parse(e),r=a.words;return 1398893684===r[0]&&1701076831===r[1]&&(t=y.create(r.slice(2,4)),r.splice(0,4),a.sigBytes-=16),G.create({ciphertext:a,salt:t})}},J=function(e){Object(x.a)(a,e);var t=Object(p.a)(a);function a(){return Object(c.a)(this,a),t.apply(this,arguments)}return Object(v.a)(a,null,[{key:"encrypt",value:function(e,t,a,r){var n=Object.assign(new g,this.cfg,r),c=e.createEncryptor(a,n),i=c.finalize(t),f=c.cfg;return G.create({ciphertext:i,key:a,iv:f.iv,algorithm:e,mode:f.mode,padding:f.padding,blockSize:c.blockSize,formatter:n.format})}},{key:"decrypt",value:function(e,t,a,r){var n=t,c=Object.assign(new g,this.cfg,r);return n=this._parse(n,c.format),e.createDecryptor(a,c).finalize(n.ciphertext)}},{key:"_parse",value:function(e,t){return"string"===typeof e?t.parse(e,this):e}}]),a}(g);J.cfg=Object.assign(new g,{format:Z});var X={execute:function(e,t,a,r){var n=r;n||(n=y.random(8));var c=D.create({keySize:t+a}).compute(e,n),i=y.create(c.words.slice(t),4*a);return c.sigBytes=4*t,G.create({key:c,iv:i,salt:n})}},Y=function(e){Object(x.a)(a,e);var t=Object(p.a)(a);function a(){return Object(c.a)(this,a),t.apply(this,arguments)}return Object(v.a)(a,null,[{key:"encrypt",value:function(e,t,a,r){var n=Object.assign(new g,this.cfg,r),c=n.kdf.execute(a,e.keySize,e.ivSize);n.iv=c.iv;var i=J.encrypt.call(this,e,t,c.key,n);return i.mixIn(c),i}},{key:"decrypt",value:function(e,t,a,r){var n=t,c=Object.assign(new g,this.cfg,r);n=this._parse(n,c.format);var i=c.kdf.execute(a,e.keySize,e.ivSize,n.salt);return c.iv=i.iv,J.decrypt.call(this,e,n,i.key,c)}}]),a}(J);Y.cfg=Object.assign(J.cfg,{kdf:X});for(var Q=function(e){return e<<8&4278255360|e>>>8&16711935},ee={stringify:function(e){for(var t=e.words,a=e.sigBytes,r=[],n=0;n>>2]>>>16-n%4*8&65535;r.push(String.fromCharCode(c))}return r.join("")},parse:function(e){for(var t=e.length,a=[],r=0;r>>1]|=e.charCodeAt(r)<<16-r%2*16;return y.create(a,2*t)}},te=ee,ae={stringify:function(e){for(var t=e.words,a=e.sigBytes,r=[],n=0;n>>2]>>>16-n%4*8&65535);r.push(String.fromCharCode(c))}return r.join("")},parse:function(e){for(var t=e.length,a=[],r=0;r>>1]|=Q(e.charCodeAt(r)<<16-r%2*16);return y.create(a,2*t)}},re=[],ne=function(e){Object(x.a)(a,e);var t=Object(p.a)(a);function a(){return Object(c.a)(this,a),t.apply(this,arguments)}return Object(v.a)(a,[{key:"_doReset",value:function(){this._hash=new y([1732584193,4023233417,2562383102,271733878,3285377520])}},{key:"_doProcessBlock",value:function(e,t){for(var a=this._hash.words,r=a[0],n=a[1],c=a[2],i=a[3],f=a[4],d=0;d<80;d+=1){if(d<16)re[d]=0|e[t+d];else{var o=re[d-3]^re[d-8]^re[d-14]^re[d-16];re[d]=o<<1|o>>>31}var s=(r<<5|r>>>27)+f+re[d];s+=d<20?1518500249+(n&c|~n&i):d<40?1859775393+(n^c^i):d<60?(n&c|n&i|c&i)-1894007588:(n^c^i)-899497514,f=i,i=c,c=n<<30|n>>>2,n=r,r=s}a[0]=a[0]+r|0,a[1]=a[1]+n|0,a[2]=a[2]+c|0,a[3]=a[3]+i|0,a[4]=a[4]+f|0}},{key:"_doFinalize",value:function(){var e=this._data,t=e.words,a=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(a/4294967296),t[15+(r+64>>>9<<4)]=a,e.sigBytes=4*t.length,this._process(),this._hash}},{key:"clone",value:function(){var e=Object(l.a)(Object(h.a)(a.prototype),"clone",this).call(this);return e._hash=this._hash.clone(),e}}]),a}(S),ce=S._createHelper(ne),ie=S._createHmacHelper(ne),fe=[],de=[],oe=function(e){for(var t=Math.sqrt(e),a=2;a<=t;a+=1)if(!(e%a))return!1;return!0},se=function(e){return 4294967296*(e-(0|e))|0},be=2,ue=0;ue<64;)oe(be)&&(ue<8&&(fe[ue]=se(Math.pow(be,.5))),de[ue]=se(Math.pow(be,1/3)),ue+=1),be+=1;for(var le=[],he=function(e){Object(x.a)(a,e);var t=Object(p.a)(a);function a(){return Object(c.a)(this,a),t.apply(this,arguments)}return Object(v.a)(a,[{key:"_doReset",value:function(){this._hash=new y(fe.slice(0))}},{key:"_doProcessBlock",value:function(e,t){for(var a=this._hash.words,r=a[0],n=a[1],c=a[2],i=a[3],f=a[4],d=a[5],o=a[6],s=a[7],b=0;b<64;b+=1){if(b<16)le[b]=0|e[t+b];else{var u=le[b-15],l=(u<<25|u>>>7)^(u<<14|u>>>18)^u>>>3,h=le[b-2],x=(h<<15|h>>>17)^(h<<13|h>>>19)^h>>>10;le[b]=l+le[b-7]+x+le[b-16]}var p=r&n^r&c^n&c,m=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),v=s+((f<<26|f>>>6)^(f<<21|f>>>11)^(f<<7|f>>>25))+(f&d^~f&o)+de[b]+le[b];s=o,o=d,d=f,f=i+v|0,i=c,c=n,n=r,r=v+(m+p)|0}a[0]=a[0]+r|0,a[1]=a[1]+n|0,a[2]=a[2]+c|0,a[3]=a[3]+i|0,a[4]=a[4]+f|0,a[5]=a[5]+d|0,a[6]=a[6]+o|0,a[7]=a[7]+s|0}},{key:"_doFinalize",value:function(){var e=this._data,t=e.words,a=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(a/4294967296),t[15+(r+64>>>9<<4)]=a,e.sigBytes=4*t.length,this._process(),this._hash}},{key:"clone",value:function(){var e=Object(l.a)(Object(h.a)(a.prototype),"clone",this).call(this);return e._hash=this._hash.clone(),e}}]),a}(S),xe=S._createHelper(he),pe=S._createHmacHelper(he),me=function(e){Object(x.a)(a,e);var t=Object(p.a)(a);function a(){return Object(c.a)(this,a),t.apply(this,arguments)}return Object(v.a)(a,[{key:"_doReset",value:function(){this._hash=new y([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])}},{key:"_doFinalize",value:function(){var e=Object(l.a)(Object(h.a)(a.prototype),"_doFinalize",this).call(this);return e.sigBytes-=4,e}}]),a}(he),ve=he._createHelper(me),ge=he._createHmacHelper(me),ye=[new O(1116352408,3609767458),new O(1899447441,602891725),new O(3049323471,3964484399),new O(3921009573,2173295548),new O(961987163,4081628472),new O(1508970993,3053834265),new O(2453635748,2937671579),new O(2870763221,3664609560),new O(3624381080,2734883394),new O(310598401,1164996542),new O(607225278,1323610764),new O(1426881987,3590304994),new O(1925078388,4068182383),new O(2162078206,991336113),new O(2614888103,633803317),new O(3248222580,3479774868),new O(3835390401,2666613458),new O(4022224774,944711139),new O(264347078,2341262773),new O(604807628,2007800933),new O(770255983,1495990901),new O(1249150122,1856431235),new O(1555081692,3175218132),new O(1996064986,2198950837),new O(2554220882,3999719339),new O(2821834349,766784016),new O(2952996808,2566594879),new O(3210313671,3203337956),new O(3336571891,1034457026),new O(3584528711,2466948901),new O(113926993,3758326383),new O(338241895,168717936),new O(666307205,1188179964),new O(773529912,1546045734),new O(1294757372,1522805485),new O(1396182291,2643833823),new O(1695183700,2343527390),new O(1986661051,1014477480),new O(2177026350,1206759142),new O(2456956037,344077627),new O(2730485921,1290863460),new O(2820302411,3158454273),new O(3259730800,3505952657),new O(3345764771,106217008),new O(3516065817,3606008344),new O(3600352804,1432725776),new O(4094571909,1467031594),new O(275423344,851169720),new O(430227734,3100823752),new O(506948616,1363258195),new O(659060556,3750685593),new O(883997877,3785050280),new O(958139571,3318307427),new O(1322822218,3812723403),new O(1537002063,2003034995),new O(1747873779,3602036899),new O(1955562222,1575990012),new O(2024104815,1125592928),new O(2227730452,2716904306),new O(2361852424,442776044),new O(2428436474,593698344),new O(2756734187,3733110249),new O(3204031479,2999351573),new O(3329325298,3815920427),new O(3391569614,3928383900),new O(3515267271,566280711),new O(3940187606,3454069534),new O(4118630271,4000239992),new O(116418474,1914138554),new O(174292421,2731055270),new O(289380356,3203993006),new O(460393269,320620315),new O(685471733,587496836),new O(852142971,1086792851),new O(1017036298,365543100),new O(1126000580,2618297676),new O(1288033470,3409855158),new O(1501505948,4234509866),new O(1607167915,987167468),new O(1816402316,1246189591)],we=[],_e=0;_e<80;_e+=1)we[_e]=new O;for(var Me=function(e){Object(x.a)(a,e);var t=Object(p.a)(a);function a(){var e;return Object(c.a)(this,a),(e=t.call(this)).blockSize=32,e}return Object(v.a)(a,[{key:"_doReset",value:function(){this._hash=new P([new O(1779033703,4089235720),new O(3144134277,2227873595),new O(1013904242,4271175723),new O(2773480762,1595750129),new O(1359893119,2917565137),new O(2600822924,725511199),new O(528734635,4215389547),new O(1541459225,327033209)])}},{key:"_doProcessBlock",value:function(e,t){for(var a=this._hash.words,r=a[0],n=a[1],c=a[2],i=a[3],f=a[4],d=a[5],o=a[6],s=a[7],b=r.high,u=r.low,l=n.high,h=n.low,x=c.high,p=c.low,m=i.high,v=i.low,g=f.high,y=f.low,w=d.high,_=d.low,M=o.high,k=o.low,S=s.high,A=s.low,E=b,O=u,P=l,T=h,B=x,R=p,C=m,j=v,I=g,N=y,L=w,U=_,F=M,D=k,z=S,H=A,q=0;q<80;q+=1){var K=void 0,W=void 0,V=we[q];if(q<16)V.high=0|e[t+2*q],W=V.high,V.low=0|e[t+2*q+1],K=V.low;else{var $=we[q-15],G=$.high,Z=$.low,J=(G>>>1|Z<<31)^(G>>>8|Z<<24)^G>>>7,X=(Z>>>1|G<<31)^(Z>>>8|G<<24)^(Z>>>7|G<<25),Y=we[q-2],Q=Y.high,ee=Y.low,te=(Q>>>19|ee<<13)^(Q<<3|ee>>>29)^Q>>>6,ae=(ee>>>19|Q<<13)^(ee<<3|Q>>>29)^(ee>>>6|Q<<26),re=we[q-7],ne=re.high,ce=re.low,ie=we[q-16],fe=ie.high,de=ie.low;W=(W=(W=J+ne+((K=X+ce)>>>0>>0?1:0))+te+((K+=ae)>>>0>>0?1:0))+fe+((K+=de)>>>0>>0?1:0),V.high=W,V.low=K}var oe=I&L^~I&F,se=N&U^~N&D,be=E&P^E&B^P&B,ue=O&T^O&R^T&R,le=(E>>>28|O<<4)^(E<<30|O>>>2)^(E<<25|O>>>7),he=(O>>>28|E<<4)^(O<<30|E>>>2)^(O<<25|E>>>7),xe=(I>>>14|N<<18)^(I>>>18|N<<14)^(I<<23|N>>>9),pe=(N>>>14|I<<18)^(N>>>18|I<<14)^(N<<23|I>>>9),me=ye[q],ve=me.high,ge=me.low,_e=H+pe,Me=z+xe+(_e>>>0>>0?1:0),ke=he+ue;z=F,H=D,F=L,D=U,L=I,U=N,I=C+(Me=(Me=(Me=Me+oe+((_e+=se)>>>0>>0?1:0))+ve+((_e+=ge)>>>0>>0?1:0))+W+((_e+=K)>>>0>>0?1:0))+((N=j+_e|0)>>>0>>0?1:0)|0,C=B,j=R,B=P,R=T,P=E,T=O,E=Me+(le+be+(ke>>>0>>0?1:0))+((O=_e+ke|0)>>>0<_e>>>0?1:0)|0}r.low=u+O,u=r.low,r.high=b+E+(u>>>0>>0?1:0),n.low=h+T,h=n.low,n.high=l+P+(h>>>0>>0?1:0),c.low=p+R,p=c.low,c.high=x+B+(p>>>0>>0?1:0),i.low=v+j,v=i.low,i.high=m+C+(v>>>0>>0?1:0),f.low=y+N,y=f.low,f.high=g+I+(y>>>0>>0?1:0),d.low=_+U,_=d.low,d.high=w+L+(_>>>0>>0?1:0),o.low=k+D,k=o.low,o.high=M+F+(k>>>0>>0?1:0),s.low=A+H,A=s.low,s.high=S+z+(A>>>0>>0?1:0)}},{key:"_doFinalize",value:function(){var e=this._data,t=e.words,a=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(a/4294967296),t[31+(r+128>>>10<<5)]=a,e.sigBytes=4*t.length,this._process(),this._hash.toX32()}},{key:"clone",value:function(){var e=Object(l.a)(Object(h.a)(a.prototype),"clone",this).call(this);return e._hash=this._hash.clone(),e}}]),a}(S),ke=S._createHelper(Me),Se=S._createHmacHelper(Me),Ae=function(e){Object(x.a)(a,e);var t=Object(p.a)(a);function a(){return Object(c.a)(this,a),t.apply(this,arguments)}return Object(v.a)(a,[{key:"_doReset",value:function(){this._hash=new P([new O(3418070365,3238371032),new O(1654270250,914150663),new O(2438529370,812702999),new O(355462360,4144912697),new O(1731405415,4290775857),new O(2394180231,1750603025),new O(3675008525,1694076839),new O(1203062813,3204075428)])}},{key:"_doFinalize",value:function(){var e=Object(l.a)(Object(h.a)(a.prototype),"_doFinalize",this).call(this);return e.sigBytes-=16,e}}]),a}(Me),Ee=Me._createHelper(Ae),Oe=Me._createHmacHelper(Ae),Pe=[],Te=[],Be=[],Re=1,Ce=0,je=0;je<24;je+=1){Pe[Re+5*Ce]=(je+1)*(je+2)/2%64;var Ie=(2*Re+3*Ce)%5;Re=Ce%5,Ce=Ie}for(var Ne=0;Ne<5;Ne+=1)for(var Le=0;Le<5;Le+=1)Te[Ne+5*Le]=Le+(2*Ne+3*Le)%5*5;for(var Ue=1,Fe=0;Fe<24;Fe+=1){for(var De=0,ze=0,He=0;He<7;He+=1){if(1&Ue){var qe=(1<>>24)|4278255360&(c<<24|c>>>8),i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8);var f=a[n];f.high^=i,f.low^=c}for(var d=0;d<24;d+=1){for(var o=0;o<5;o+=1){for(var s=0,b=0,u=0;u<5;u+=1){var l=a[o+5*u];s^=l.high,b^=l.low}var h=Ke[o];h.high=s,h.low=b}for(var x=0;x<5;x+=1)for(var p=Ke[(x+4)%5],m=Ke[(x+1)%5],v=m.high,g=m.low,y=p.high^(v<<1|g>>>31),w=p.low^(g<<1|v>>>31),_=0;_<5;_+=1){var M=a[x+5*_];M.high^=y,M.low^=w}for(var k=1;k<25;k+=1){var S=void 0,A=void 0,E=a[k],O=E.high,P=E.low,T=Pe[k];T<32?(S=O<>>32-T,A=P<>>32-T):(S=P<>>64-T,A=O<>>64-T);var B=Ke[Te[k]];B.high=S,B.low=A}var R=Ke[0],C=a[0];R.high=C.high,R.low=C.low;for(var j=0;j<5;j+=1)for(var I=0;I<5;I+=1){var N=j+5*I,L=a[N],U=Ke[N],F=Ke[(j+1)%5+5*I],D=Ke[(j+2)%5+5*I];L.high=U.high^~F.high&D.high,L.low=U.low^~F.low&D.low}var z=a[0],H=Be[d];z.high^=H.high,z.low^=H.low}}},{key:"_doFinalize",value:function(){var e=this._data,t=e.words,a=8*e.sigBytes,r=32*this.blockSize;t[a>>>5]|=1<<24-a%32,t[(Math.ceil((a+1)/r)*r>>>5)-1]|=128,e.sigBytes=4*t.length,this._process();for(var n=this._state,c=this.cfg.outputLength/8,i=c/8,f=[],d=0;d>>24)|4278255360&(s<<24|s>>>8),b=16711935&(b<<8|b>>>24)|4278255360&(b<<24|b>>>8),f.push(b),f.push(s)}return new y(f,c)}},{key:"clone",value:function(){var e=Object(l.a)(Object(h.a)(a.prototype),"clone",this).call(this);e._state=this._state.slice(0);for(var t=e._state,r=0;r<25;r+=1)t[r]=t[r].clone();return e}}]),a}(S),$e=S._createHelper(Ve),Ge=S._createHmacHelper(Ve),Ze=y.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),Je=y.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),Xe=y.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),Ye=y.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),Qe=y.create([0,1518500249,1859775393,2400959708,2840853838]),et=y.create([1352829926,1548603684,1836072691,2053994217,0]),tt=function(e,t,a){return e^t^a},at=function(e,t,a){return e&t|~e&a},rt=function(e,t,a){return(e|~t)^a},nt=function(e,t,a){return e&a|t&~a},ct=function(e,t,a){return e^(t|~a)},it=function(e,t){return e<>>32-t},ft=function(e){Object(x.a)(a,e);var t=Object(p.a)(a);function a(){return Object(c.a)(this,a),t.apply(this,arguments)}return Object(v.a)(a,[{key:"_doReset",value:function(){this._hash=y.create([1732584193,4023233417,2562383102,271733878,3285377520])}},{key:"_doProcessBlock",value:function(e,t){for(var a=e,r=0;r<16;r+=1){var n=t+r,c=a[n];a[n]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}for(var i,f=this._hash.words,d=Qe.words,o=et.words,s=Ze.words,b=Je.words,u=Xe.words,l=Ye.words,h=f[0],x=f[1],p=f[2],m=f[3],v=f[4],g=f[0],y=f[1],w=f[2],_=f[3],M=f[4],k=0;k<80;k+=1)i=h+a[t+s[k]]|0,i+=k<16?tt(x,p,m)+d[0]:k<32?at(x,p,m)+d[1]:k<48?rt(x,p,m)+d[2]:k<64?nt(x,p,m)+d[3]:ct(x,p,m)+d[4],i=(i=it(i|=0,u[k]))+v|0,h=v,v=m,m=it(p,10),p=x,x=i,i=g+a[t+b[k]]|0,i+=k<16?ct(y,w,_)+o[0]:k<32?nt(y,w,_)+o[1]:k<48?rt(y,w,_)+o[2]:k<64?at(y,w,_)+o[3]:tt(y,w,_)+o[4],i=(i=it(i|=0,l[k]))+M|0,g=M,M=_,_=it(w,10),w=y,y=i;i=f[1]+p+_|0,f[1]=f[2]+m+M|0,f[2]=f[3]+v+g|0,f[3]=f[4]+h+y|0,f[4]=f[0]+x+w|0,f[0]=i}},{key:"_doFinalize",value:function(){var e=this._data,t=e.words,a=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(t.length+1),this._process();for(var n=this._hash,c=n.words,i=0;i<5;i+=1){var f=c[i];c[i]=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8)}return n}},{key:"clone",value:function(){var e=Object(l.a)(Object(h.a)(a.prototype),"clone",this).call(this);return e._hash=this._hash.clone(),e}}]),a}(S),dt=S._createHelper(ft),ot=S._createHmacHelper(ft),st=function(e){Object(x.a)(a,e);var t=Object(p.a)(a);function a(e){var r;return Object(c.a)(this,a),(r=t.call(this)).cfg=Object.assign(new g,{keySize:4,hasher:ne,iterations:1},e),r}return Object(v.a)(a,[{key:"compute",value:function(e,t){for(var a=this.cfg,r=A.create(a.hasher,e),n=y.create(),c=y.create([1]),i=n.words,f=c.words,d=a.keySize,o=a.iterations;i.length>>8^255&At^99,bt[Mt]=At,ut[At]=Mt;var Et=wt[Mt],Ot=wt[Et],Pt=wt[Ot],Tt=257*wt[At]^16843008*At;lt[Mt]=Tt<<24|Tt>>>8,ht[Mt]=Tt<<16|Tt>>>16,xt[Mt]=Tt<<8|Tt>>>24,pt[Mt]=Tt,Tt=16843009*Pt^65537*Ot^257*Et^16843008*Mt,mt[At]=Tt<<24|Tt>>>8,vt[At]=Tt<<16|Tt>>>16,gt[At]=Tt<<8|Tt>>>24,yt[At]=Tt,Mt?(Mt=Et^wt[wt[wt[Pt^Et]]],kt^=wt[wt[kt]]):Mt=kt=1}var Bt=[0,1,2,4,8,16,32,64,128,27,54],Rt=function(e){Object(x.a)(a,e);var t=Object(p.a)(a);function a(){return Object(c.a)(this,a),t.apply(this,arguments)}return Object(v.a)(a,[{key:"_doReset",value:function(){var e;if(!this._nRounds||this._keyPriorReset!==this._key){this._keyPriorReset=this._key;var t=this._keyPriorReset,a=t.words,r=t.sigBytes/4;this._nRounds=r+6;var n=4*(this._nRounds+1);this._keySchedule=[];for(var c=this._keySchedule,i=0;i6&&i%r===4&&(e=bt[e>>>24]<<24|bt[e>>>16&255]<<16|bt[e>>>8&255]<<8|bt[255&e]):(e=bt[(e=e<<8|e>>>24)>>>24]<<24|bt[e>>>16&255]<<16|bt[e>>>8&255]<<8|bt[255&e],e^=Bt[i/r|0]<<24),c[i]=c[i-r]^e);this._invKeySchedule=[];for(var f=this._invKeySchedule,d=0;d>>24]]^vt[bt[e>>>16&255]]^gt[bt[e>>>8&255]]^yt[bt[255&e]]}}}},{key:"encryptBlock",value:function(e,t){this._doCryptBlock(e,t,this._keySchedule,lt,ht,xt,pt,bt)}},{key:"decryptBlock",value:function(e,t){var a=e,r=a[t+1];a[t+1]=a[t+3],a[t+3]=r,this._doCryptBlock(a,t,this._invKeySchedule,mt,vt,gt,yt,ut),r=a[t+1],a[t+1]=a[t+3],a[t+3]=r}},{key:"_doCryptBlock",value:function(e,t,a,r,n,c,i,f){for(var d=e,o=this._nRounds,s=d[t]^a[0],b=d[t+1]^a[1],u=d[t+2]^a[2],l=d[t+3]^a[3],h=4,x=1;x>>24]^n[b>>>16&255]^c[u>>>8&255]^i[255&l]^a[h];h+=1;var m=r[b>>>24]^n[u>>>16&255]^c[l>>>8&255]^i[255&s]^a[h];h+=1;var v=r[u>>>24]^n[l>>>16&255]^c[s>>>8&255]^i[255&b]^a[h];h+=1;var g=r[l>>>24]^n[s>>>16&255]^c[b>>>8&255]^i[255&u]^a[h];h+=1,s=p,b=m,u=v,l=g}var y=(f[s>>>24]<<24|f[b>>>16&255]<<16|f[u>>>8&255]<<8|f[255&l])^a[h];h+=1;var w=(f[b>>>24]<<24|f[u>>>16&255]<<16|f[l>>>8&255]<<8|f[255&s])^a[h];h+=1;var _=(f[u>>>24]<<24|f[l>>>16&255]<<16|f[s>>>8&255]<<8|f[255&b])^a[h];h+=1;var M=(f[l>>>24]<<24|f[s>>>16&255]<<16|f[b>>>8&255]<<8|f[255&u])^a[h];h+=1,d[t]=y,d[t+1]=w,d[t+2]=_,d[t+3]=M}}]),a}($);Rt.keySize=8;var Ct=$._createHelper(Rt),jt=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],It=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],Nt=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],Lt=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],Ut=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679];function Ft(e,t){var a=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=a,this._lBlock^=a<>>e^this._lBlock)&t;this._lBlock^=a,this._rBlock^=a<>>5]>>>31-r%32&1}this._subKeys=[];for(var n=this._subKeys,c=0;c<16;c+=1){n[c]=[];for(var i=n[c],f=Nt[c],d=0;d<24;d+=1)i[d/6|0]|=t[(It[d]-1+f)%28]<<31-d%6,i[4+(d/6|0)]|=t[28+(It[d+24]-1+f)%28]<<31-d%6;i[0]=i[0]<<1|i[0]>>>31;for(var o=1;o<7;o+=1)i[o]>>>=4*(o-1)+3;i[7]=i[7]<<5|i[7]>>>27}this._invSubKeys=[];for(var s=this._invSubKeys,b=0;b<16;b+=1)s[b]=n[15-b]}},{key:"encryptBlock",value:function(e,t){this._doCryptBlock(e,t,this._subKeys)}},{key:"decryptBlock",value:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)}},{key:"_doCryptBlock",value:function(e,t,a){var r=e;this._lBlock=e[t],this._rBlock=e[t+1],Ft.call(this,4,252645135),Ft.call(this,16,65535),Dt.call(this,2,858993459),Dt.call(this,8,16711935),Ft.call(this,1,1431655765);for(var n=0;n<16;n+=1){for(var c=a[n],i=this._lBlock,f=this._rBlock,d=0,o=0;o<8;o+=1)d|=Lt[o][((f^c[o])&Ut[o])>>>0];this._lBlock=f,this._rBlock=i^d}var s=this._lBlock;this._lBlock=this._rBlock,this._rBlock=s,Ft.call(this,1,1431655765),Dt.call(this,8,16711935),Dt.call(this,2,858993459),Ft.call(this,16,65535),Ft.call(this,4,252645135),r[t]=this._lBlock,r[t+1]=this._rBlock}}]),a}($);zt.keySize=2,zt.ivSize=2,zt.blockSize=2;var Ht=$._createHelper(zt),qt=function(e){Object(x.a)(a,e);var t=Object(p.a)(a);function a(){return Object(c.a)(this,a),t.apply(this,arguments)}return Object(v.a)(a,[{key:"_doReset",value:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),a=e.length<4?e.slice(0,2):e.slice(2,4),r=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=zt.createEncryptor(y.create(t)),this._des2=zt.createEncryptor(y.create(a)),this._des3=zt.createEncryptor(y.create(r))}},{key:"encryptBlock",value:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)}},{key:"decryptBlock",value:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)}}]),a}($);qt.keySize=6,qt.ivSize=2,qt.blockSize=2;var Kt=$._createHelper(qt),Wt=[],Vt=[],$t=[];function Gt(){for(var e=this._X,t=this._C,a=0;a<8;a+=1)Vt[a]=t[a];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0;for(var r=0;r<8;r+=1){var n=e[r]+t[r],c=65535&n,i=n>>>16,f=((c*c>>>17)+c*i>>>15)+i*i,d=((4294901760&n)*n|0)+((65535&n)*n|0);$t[r]=f^d}e[0]=$t[0]+($t[7]<<16|$t[7]>>>16)+($t[6]<<16|$t[6]>>>16)|0,e[1]=$t[1]+($t[0]<<8|$t[0]>>>24)+$t[7]|0,e[2]=$t[2]+($t[1]<<16|$t[1]>>>16)+($t[0]<<16|$t[0]>>>16)|0,e[3]=$t[3]+($t[2]<<8|$t[2]>>>24)+$t[1]|0,e[4]=$t[4]+($t[3]<<16|$t[3]>>>16)+($t[2]<<16|$t[2]>>>16)|0,e[5]=$t[5]+($t[4]<<8|$t[4]>>>24)+$t[3]|0,e[6]=$t[6]+($t[5]<<16|$t[5]>>>16)+($t[4]<<16|$t[4]>>>16)|0,e[7]=$t[7]+($t[6]<<8|$t[6]>>>24)+$t[5]|0}var Zt=function(e){Object(x.a)(a,e);var t=Object(p.a)(a);function a(){var e;Object(c.a)(this,a);for(var r=arguments.length,n=new Array(r),i=0;i>>24)|4278255360&(e[a]<<24|e[a]>>>8);this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16];var r=this._X;this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];var n=this._C;this._b=0;for(var c=0;c<4;c+=1)Gt.call(this);for(var i=0;i<8;i+=1)n[i]^=r[i+4&7];if(t){var f=t.words,d=f[0],o=f[1],s=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),b=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),u=s>>>16|4294901760&b,l=b<<16|65535&s;n[0]^=s,n[1]^=u,n[2]^=b,n[3]^=l,n[4]^=s,n[5]^=u,n[6]^=b,n[7]^=l;for(var h=0;h<4;h+=1)Gt.call(this)}}},{key:"_doProcessBlock",value:function(e,t){var a=e,r=this._X;Gt.call(this),Wt[0]=r[0]^r[5]>>>16^r[3]<<16,Wt[1]=r[2]^r[7]>>>16^r[5]<<16,Wt[2]=r[4]^r[1]>>>16^r[7]<<16,Wt[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n+=1)Wt[n]=16711935&(Wt[n]<<8|Wt[n]>>>24)|4278255360&(Wt[n]<<24|Wt[n]>>>8),a[t+n]^=Wt[n]}}]),a}(H),Jt=H._createHelper(Zt),Xt=[],Yt=[],Qt=[];function ea(){for(var e=this._X,t=this._C,a=0;a<8;a+=1)Yt[a]=t[a];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0;for(var r=0;r<8;r+=1){var n=e[r]+t[r],c=65535&n,i=n>>>16,f=((c*c>>>17)+c*i>>>15)+i*i,d=((4294901760&n)*n|0)+((65535&n)*n|0);Qt[r]=f^d}e[0]=Qt[0]+(Qt[7]<<16|Qt[7]>>>16)+(Qt[6]<<16|Qt[6]>>>16)|0,e[1]=Qt[1]+(Qt[0]<<8|Qt[0]>>>24)+Qt[7]|0,e[2]=Qt[2]+(Qt[1]<<16|Qt[1]>>>16)+(Qt[0]<<16|Qt[0]>>>16)|0,e[3]=Qt[3]+(Qt[2]<<8|Qt[2]>>>24)+Qt[1]|0,e[4]=Qt[4]+(Qt[3]<<16|Qt[3]>>>16)+(Qt[2]<<16|Qt[2]>>>16)|0,e[5]=Qt[5]+(Qt[4]<<8|Qt[4]>>>24)+Qt[3]|0,e[6]=Qt[6]+(Qt[5]<<16|Qt[5]>>>16)+(Qt[4]<<16|Qt[4]>>>16)|0,e[7]=Qt[7]+(Qt[6]<<8|Qt[6]>>>24)+Qt[5]|0}var ta=function(e){Object(x.a)(a,e);var t=Object(p.a)(a);function a(){var e;Object(c.a)(this,a);for(var r=arguments.length,n=new Array(r),i=0;i>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16];var a=this._X;this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];var r=this._C;this._b=0;for(var n=0;n<4;n+=1)ea.call(this);for(var c=0;c<8;c+=1)r[c]^=a[c+4&7];if(t){var i=t.words,f=i[0],d=i[1],o=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),s=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),b=o>>>16|4294901760&s,u=s<<16|65535&o;r[0]^=o,r[1]^=b,r[2]^=s,r[3]^=u,r[4]^=o,r[5]^=b,r[6]^=s,r[7]^=u;for(var l=0;l<4;l+=1)ea.call(this)}}},{key:"_doProcessBlock",value:function(e,t){var a=e,r=this._X;ea.call(this),Xt[0]=r[0]^r[5]>>>16^r[3]<<16,Xt[1]=r[2]^r[7]>>>16^r[5]<<16,Xt[2]=r[4]^r[1]>>>16^r[7]<<16,Xt[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n+=1)Xt[n]=16711935&(Xt[n]<<8|Xt[n]>>>24)|4278255360&(Xt[n]<<24|Xt[n]>>>8),a[t+n]^=Xt[n]}}]),a}(H),aa=H._createHelper(ta);function ra(){for(var e=this._S,t=this._i,a=this._j,r=0,n=0;n<4;n+=1){a=(a+e[t=(t+1)%256])%256;var c=e[t];e[t]=e[a],e[a]=c,r|=e[(e[t]+e[a])%256]<<24-8*n}return this._i=t,this._j=a,r}var na=function(e){Object(x.a)(a,e);var t=Object(p.a)(a);function a(){return Object(c.a)(this,a),t.apply(this,arguments)}return Object(v.a)(a,[{key:"_doReset",value:function(){var e=this._key,t=e.words,a=e.sigBytes;this._S=[];for(var r=this._S,n=0;n<256;n+=1)r[n]=n;for(var c=0,i=0;c<256;c+=1){var f=c%a,d=t[f>>>2]>>>24-f%4*8&255;i=(i+r[c]+d)%256;var o=r[c];r[c]=r[i],r[i]=o}this._j=0,this._i=this._j}},{key:"_doProcessBlock",value:function(e,t){e[t]^=ra.call(this)}}]),a}(H);na.keySize=8,na.ivSize=0;var ca=H._createHelper(na),ia=function(e){Object(x.a)(a,e);var t=Object(p.a)(a);function a(){var e;Object(c.a)(this,a);for(var r=arguments.length,n=new Array(r),i=0;i0;e-=1)ra.call(this)}}]),a}(na),fa=H._createHelper(ia);function da(e,t,a,r){var n,c=e,i=this._iv;i?(n=i.slice(0),this._iv=void 0):n=this._prevBlock,r.encryptBlock(n,0);for(var f=0;f>24&255)){var a=e>>16&255,r=e>>8&255,n=255&e;255===a?(a=0,255===r?(r=0,255===n?n=0:n+=1):r+=1):a+=1,t=0,t+=a<<16,t+=r<<8,t+=n}else t+=1<<24;return t},ua=function(e){Object(x.a)(a,e);var t=Object(p.a)(a);function a(){return Object(c.a)(this,a),t.apply(this,arguments)}return a}(q);ua.Encryptor=function(e){Object(x.a)(a,e);var t=Object(p.a)(a);function a(){return Object(c.a)(this,a),t.apply(this,arguments)}return Object(v.a)(a,[{key:"processBlock",value:function(e,t){var a=e,r=this._cipher,n=r.blockSize,c=this._iv,i=this._counter;c&&(this._counter=c.slice(0),i=this._counter,this._iv=void 0),function(e){var t=e;t[0]=ba(t[0]),0===t[0]&&(t[1]=ba(t[1]))}(i);var f=i.slice(0);r.encryptBlock(f,0);for(var d=0;d>>2];t.sigBytes-=a}},pa={pad:function(e,t){var a=e,r=4*t;a.clamp(),a.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){for(var t=e,a=t.words,r=t.sigBytes-1;r>=0;r-=1)if(a[r>>>2]>>>24-r%4*8&255){t.sigBytes=r+1;break}}},ma={pad:function(e,t){e.concat(y.create([2147483648],1)),pa.pad(e,t)},unpad:function(e){var t=e;pa.unpad(t),t.sigBytes-=1}},va={stringify:function(e){return e.ciphertext.toString(w)},parse:function(e){var t=w.parse(e);return G.create({ciphertext:t})}},ga={lib:{Base:g,WordArray:y,BufferedBlockAlgorithm:k,Hasher:S,Cipher:z,StreamCipher:H,BlockCipherMode:q,BlockCipher:$,CipherParams:G,SerializableCipher:J,PasswordBasedCipher:Y},x64:{Word:O,WordArray:P},enc:{Hex:w,Latin1:_,Utf8:M,Utf16:te,Utf16BE:ee,Utf16LE:ae,Base64:T},algo:{HMAC:A,MD5:L,SHA1:ne,SHA224:me,SHA256:he,SHA384:Ae,SHA512:Me,SHA3:Ve,RIPEMD160:ft,PBKDF2:st,EvpKDF:D,AES:Rt,DES:zt,TripleDES:qt,Rabbit:Zt,RabbitLegacy:ta,RC4:na,RC4Drop:ia},mode:{CBC:W,CFB:oa,CTR:sa,CTRGladman:ua,ECB:la,OFB:ha},pad:{Pkcs7:V,AnsiX923:{pad:function(e,t){var a=e,r=a.sigBytes,n=4*t,c=n-r%n,i=r+c-1;a.clamp(),a.words[i>>>2]|=c<<24-i%4*8,a.sigBytes+=c},unpad:function(e){var t=e,a=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=a}},Iso10126:xa,Iso97971:ma,NoPadding:{pad:function(){},unpad:function(){}},ZeroPadding:pa},format:{OpenSSL:Z,Hex:va},kdf:{OpenSSL:X},MD5:U,HmacMD5:F,SHA1:ce,HmacSHA1:ie,SHA224:ve,HmacSHA224:ge,SHA256:xe,HmacSHA256:pe,SHA384:Ee,HmacSHA384:Oe,SHA512:ke,HmacSHA512:Se,SHA3:$e,HmacSHA3:Ge,RIPEMD160:dt,HmacRIPEMD160:ot,PBKDF2:function(e,t,a){return st.create(a).compute(e,t)},EvpKDF:function(e,t,a){return D.create(a).compute(e,t)},AES:Ct,DES:Ht,TripleDES:Kt,Rabbit:Jt,RabbitLegacy:aa,RC4:ca,RC4Drop:fa},ya=["dappId","system","name","appVersion","networkId","transactionHandlers","apiUrl","ws","onopen","ondown","onreopen","onerror","onclose"],wa=["emitter","subscription"],_a=["emitter","subscription"],Ma={bitcoin:{1:"main",2:"testnet"},ethereum:{1:"main",3:"ropsten",4:"rinkeby",5:"goerli",42:"kovan",56:"bsc-main",100:"xdai",137:"matic-main"}},ka={points:150,duration:1};function Sa(){return{listeners:{},on:function(e,t){switch(e){case"txSent":case"txPool":case"txConfirmed":case"txSpeedUp":case"txCancel":case"txFailed":case"txDropped":case"txRequest":case"nsfFail":case"txRepeat":case"txAwaitingApproval":case"txConfirmReminder":case"txSendFail":case"txError":case"txUnderPriced":case"txPoolSimulation":case"all":break;default:throw new Error("".concat(e," is not a valid event code, for a list of valid event codes see: https://docs.blocknative.com/notify-sdk#event-codes"))}if("function"!==typeof t)throw new Error("Listener must be a function");this.listeners[e]=t},off:function(e){delete this.listeners[e]},emit:function(e){return this.listeners[e.eventCode]?this.listeners[e.eventCode](e):this.listeners.all?this.listeners.all(e):void 0}}}function Aa(e){return new Promise((function(t){setTimeout(t,e)}))}var Ea=function(e,t){return void 0===t?"undefined":t};function Oa(e,t){var a;if(this._destroyed)throw new Error("The WebSocket instance has been destroyed, re-initialize to continue making requests.");var r=Date.now(),n=Sa(),c="txSent";this._watchedTransactions.push({hash:e,emitter:n});var i=(a={},Object(d.a)(a,"ethereum"===this._system?"hash":"txid",e),Object(d.a)(a,"id",t||e),Object(d.a)(a,"startTime",r),Object(d.a)(a,"status","sent"),a),f=s(s({},i),{},{eventCode:c});this._sendMessage({eventCode:c,categoryCode:"activeTransaction",transaction:i});var o={details:f,emitter:n};return setTimeout(function(){var e=n.emit(f);this._transactionHandlers.forEach((function(t){return t({transaction:f,emitterResult:e})}))}.bind(this),5),o}function Pa(e){if(this._destroyed)throw new Error("The WebSocket instance has been destroyed, re-initialize to continue making requests.");e="ethereum"===this._system?e.toLowerCase():e;var t=Sa(),a=this._watchedAccounts.find((function(t){return t.address===e}));return a?a.emitters.push(t):this._watchedAccounts.push({address:e,emitters:[t]}),this._sendMessage({eventCode:"watch",categoryCode:"accountAddress",account:{address:e}}),{emitter:t,details:{address:e}}}function Ta(e){if(this._destroyed)throw new Error("The WebSocket instance has been destroyed, re-initialize to continue making requests.");this._sendMessage(e)}function Ba(e){if(this._destroyed)throw new Error("The WebSocket instance has been destroyed, re-initialize to continue making requests.");var t=function(e,t){switch(e){case"ethereum":return 42===t.length;case"bitcoin":return 64!==t.length;default:return!1}}(this._system,e),a=function(e,t){switch(e){case"ethereum":return 66===t.length;case"bitcoin":return 64===t.length;default:return!1}}(this._system,e);if(t){var r="ethereum"===this._system?e.toLowerCase():e;this._watchedAccounts=this._watchedAccounts.filter((function(e){return e.address!==r})),this._sendMessage({categoryCode:"accountAddress",eventCode:"unwatch",account:{address:r}})}else{if(!a)throw new Error("Error trying to unsubscribe ".concat(e,": not a valid address or transaction id/hash"));var n;this._watchedTransactions=this._watchedTransactions.filter((function(t){return t.hash!==e})),this._sendMessage({categoryCode:"activeTransaction",eventCode:"unwatch",transaction:(n={},Object(d.a)(n,"ethereum"===this._system?"hash":"txid",e),Object(d.a)(n,"id",e),Object(d.a)(n,"status","unsubscribed"),n)})}}var Ra=function(e,t){return Ra=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)t.hasOwnProperty(a)&&(e[a]=t[a])},Ra(e,t)};function Ca(e,t){function a(){this.constructor=e}Ra(e,t),e.prototype=null===t?Object.create(t):(a.prototype=t.prototype,new a)}function ja(e){return"function"===typeof e}var Ia=!1,Na={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){e&&(new Error).stack;Ia=e},get useDeprecatedSynchronousErrorHandling(){return Ia}};function La(e){setTimeout((function(){throw e}),0)}var Ua={closed:!0,next:function(e){},error:function(e){if(Na.useDeprecatedSynchronousErrorHandling)throw e;La(e)},complete:function(){}},Fa=function(){return Array.isArray||function(e){return e&&"number"===typeof e.length}}();function Da(e){return null!==e&&"object"===typeof e}var za=function(){function e(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}(),Ha=function(){function e(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}return e.prototype.unsubscribe=function(){var t;if(!this.closed){var a=this,r=a._parentOrParents,n=a._ctorUnsubscribe,c=a._unsubscribe,i=a._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,r instanceof e)r.remove(this);else if(null!==r)for(var f=0;f1e4)throw new Error("Queue limit of ".concat(1e4," messages has been reached."));this._queuedMessages.push(Or.bind(this)(e)),this._processingQueue||this._processQueue()}function Sr(){return Ar.apply(this,arguments)}function Ar(){return(Ar=Object(f.a)(n.a.mark((function e(){var t,a;return n.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._processingQueue=!0,this._connected){e.next=4;break}return e.next=4,Pr.bind(this)();case 4:if(!(this._queuedMessages.length>0)){e.next=18;break}return e.next=7,Aa(1);case 7:if(null===this._waitToRetry){e.next=11;break}return e.next=10,this._waitToRetry;case 10:this._waitToRetry=null;case 11:return t=this._queuedMessages.shift(),a=this._limitRules.duration/this._limitRules.points*1e3,e.next=15,Aa(a);case 15:this._socket.send(t),e.next=4;break;case 18:this._processingQueue=!1,this._limitRules=ka;case 20:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function Er(e){var t=JSON.parse(e.data),a=t.status,r=t.reason,n=t.event,c=t.connectionId,i=t.serverVersion,f=t.retryMs,d=t.limitRules,o=t.blockedMsg,b=t.dispatchTimestamp;if(c&&("undefined"!==typeof window&&window.localStorage.setItem(this._storageKey,c),this._connectionId=c),"error"===a){if(r.includes("ratelimit")&&!r.match(/IP (PendingSimulation|Notification) ratelimit reached/))return this._waitToRetry=Aa(f),this._limitRules=d,void(o&&this._queuedMessages.unshift(o));if(r.includes("not a valid API key")){if(this._onerror)return void this._onerror({message:r});throw new Error(r)}if(r.includes("network not supported")){if(this._onerror)return void this._onerror({message:r});throw new Error(r)}if(r.includes("maximum allowed amount")){if(this._onerror)return void this._onerror({message:r});throw new Error(r)}if(r.includes("invalid txid")){var u="".concat(n.transaction.txid," is an invalid txid");if(this._onerror)return void this._onerror({message:u,transaction:n.transaction.txid});throw new Error(u)}if(r.includes("invalid hash")){var l="".concat(n.transaction.hash," is an invalid transaction hash");if(this._onerror)return void this._onerror({message:l,transaction:n.transaction.hash});throw new Error(l)}if(r.includes("invalid address")){var h="".concat(n.account.address," is an invalid address");if(this._onerror)return void this._onerror({message:h,account:n.account.address});throw new Error(h)}if(r.includes("not a valid Bitcoin")){if(this._onerror)return void this._onerror({message:r,account:n.account.address});throw new Error(r)}if(r.includes("not a valid Ethereum")){if(this._onerror)return void this._onerror({message:r,account:n.account.address});throw new Error(r)}if(n&&n.config){var x=this._configurations.get(n.config.scope);return void(x&&x.subscription&&x.subscription.error({message:r}))}if(this._onerror)return void this._onerror({message:r});throw new Error(r)}if(n&&n.config){var p="ethereum"===this._system?n.config.scope.toLowerCase():n.config.scope,m=this._configurations.get(p);m&&m.subscription&&m.subscription.next()}if(n&&n.transaction){var v=n.transaction,g=n.eventCode,y=n.contractCall,w=n.timeStamp,_=n.blockchain,M=_.system,k=_.network,S="ethereum"===this._system?s(s({},v),{},{serverVersion:i,eventCode:g,timeStamp:w,dispatchTimestamp:b,system:M,network:k,contractCall:y}):s(s({},v),{},{serverVersion:i,eventCode:g,timeStamp:w,dispatchTimestamp:b,system:M,network:k});if(function(e){switch(e){case"txRequest":case"nsfFail":case"txRepeat":case"txAwaitingApproval":case"txConfirmReminder":case"txSendFail":case"txError":case"txUnderPriced":case"txSent":return!0;default:return!1}}(g)||"unsubscribed"===v.status)return;S.originalHash&&(S.replaceHash=S.originalHash,delete S.originalHash),"txSpeedUp"===g&&"speedup"!==S.status&&(S.status="speedup"),"txCancel"===g&&"cancel"!==S.status&&(S.status="cancel"),"txSpeedUp"!==g&&"txCancel"!==g||(this._watchedTransactions=this._watchedTransactions.map((function(e){return e.hash===S.replaceHash&&(e.hash=v.hash||v.txid),e})));var A=v.watchedAddress&&"ethereum"===this._system?v.watchedAddress.toLowerCase():v.watchedAddress;if(A){var E=this._watchedAccounts.find((function(e){return e.address===A})),O=!!E&&E.emitters.map((function(e){return e.emit(S)})).reverse()[0],P=this._configurations.get(A),T=P&&P.emitter&&P.emitter.emit(S)||O;this._transactionHandlers.forEach((function(e){return e({transaction:S,emitterResult:T})}))}else{var B=this._watchedTransactions.find((function(e){return e.hash===v.hash||v.txid})),R=B&&B.emitter.emit(S);this._transactionHandlers.forEach((function(e){return e({transaction:S,emitterResult:R})}))}}}function Or(e){return JSON.stringify(s({timeStamp:(new Date).toISOString(),dappId:this._dappId,version:"3.7.0",appName:this._appName,appVersion:this._appVersion,blockchain:{system:this._system,network:(t=this._system,a=this._networkId,Ma[t][a]||"local")}},e),"configs"===e.categoryCode?Ea:void 0);var t,a}function Pr(){var e=this;return new Promise((function(t){var a=setInterval((function(){e._connected&&(setTimeout(t,100),clearInterval(a))}))}))}function Tr(e){var t=e.name,a=e.value,r=e.type,n=e.optional,c=e.customValidation;if(!n&&"undefined"===typeof a)throw new Error('"'.concat(t,'" is required'));if("undefined"!==typeof a&&("array"===r?Array.isArray(r):typeof a!==r))throw new Error('"'.concat(t,'" must be of type: ').concat(r,", received type: ").concat(typeof a," from value: ").concat(a));if("undefined"!==typeof a&&c&&!c(a))throw new Error('"'.concat(a,'" is not a valid "').concat(t,'"'))}function Br(e){Tr({name:"sdk options",value:e,type:"object"});var t=e.dappId,a=e.system,r=e.name,n=e.appVersion,c=e.networkId,f=e.transactionHandlers,d=e.apiUrl,o=e.ws,s=e.onopen,b=e.ondown,u=e.onreopen,l=e.onerror,h=e.onclose;!function(e,t,a){var r=Object.keys(e);if(r.length>0)throw new Error("".concat(r[0]," is not a valid parameter for ").concat(a,", must be one of the following valid parameters: ").concat(t.join(", ")))}(i(e,ya),["dappId","system","name","appVersion","networkId","transactionHandlers","apiUrl","ws","onopen","ondown","onreopen","onerror","onclose"],"Initialization Options"),Tr({name:"dappId",value:t,type:"string"}),Tr({name:"system",value:a,type:"string",optional:!0,customValidation:Rr}),Tr({name:"name",value:r,type:"string",optional:!0}),Tr({name:"appVersion",value:n,type:"string",optional:!0}),Tr({name:"networkId",value:c,type:"number"}),Tr({name:"transactionHandler",value:f,type:"array",optional:!0}),f&&f.forEach((function(e){return Tr({name:"transactionHandler",value:e,type:"function"})})),Tr({name:"apiUrl",value:d,type:"string",optional:!0}),Tr({name:"ws",value:o,type:"function",optional:!0}),Tr({name:"onopen",value:s,type:"function",optional:!0}),Tr({name:"ondown",value:b,type:"function",optional:!0}),Tr({name:"onreopen",value:u,type:"function",optional:!0}),Tr({name:"onerror",value:l,type:"function",optional:!0}),Tr({name:"onclose",value:h,type:"function",optional:!0})}function Rr(e){return!!Ma[e]}function Cr(e){this._connected=!0;var t={categoryCode:"initialize",eventCode:"checkDappId",connectionId:this._connectionId};this._socket.send(Or.bind(this)(t)),this._heartbeat&&this._heartbeat(),e&&e()}function jr(e,t){this._connected=!1,e&&e(t),this._pingTimeout&&clearTimeout(this._pingTimeout)}function Ir(e){return Nr.apply(this,arguments)}function Nr(){return Nr=Object(f.a)(n.a.mark((function e(t){var a,r,c,f,d=this;return n.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._connected=!0,a={categoryCode:"initialize",eventCode:"checkDappId",connectionId:this._connectionId},this._socket.send(Or.bind(this)(a)),r=Array.from(this._configurations.values()),!(c=this._configurations.get("global"))){e.next=15;break}return e.prev=6,c.emitter,c.subscription,f=i(c,wa),e.next=10,this.configuration(f);case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(6),console.warn("Error re-sending global configuration upon reconnection:",e.t0);case 15:r.filter((function(e){return"global"!==e.scope})).forEach((function(e){e.emitter,e.subscription;var t=i(e,_a);d._sendMessage({categoryCode:"configs",eventCode:"put",config:t})})),this._watchedAccounts.forEach((function(e){d._sendMessage({eventCode:"accountAddress",categoryCode:"watch",account:{address:e.address}})})),t&&t(),this._socket.ws.on&&(this._socket.ws.on("ping",(function(){d._heartbeat&&d._heartbeat()})),this._heartbeat());case 20:case"end":return e.stop()}}),e,this,[[6,12]])}))),Nr.apply(this,arguments)}t.a=function e(t){var a=this;Object(c.a)(this,e),Br(t);var r=t.dappId,n=t.system,i=void 0===n?"ethereum":n,f=t.name,d=void 0===f?"unknown":f,o=t.appVersion,b=void 0===o?"unknown":o,l=t.networkId,h=t.transactionHandlers,x=void 0===h?[]:h,p=t.apiUrl,m=t.ws,v=t.onopen,g=t.ondown,y=t.onreopen,w=t.onerror,_=t.onclose,M={connectTimeout:1e4},k=new u.a(p||"wss://api.blocknative.com/v0",s(m?{wsConstructor:m}:{},M));k.onopen=Cr.bind(this,v),k.ondown=jr.bind(this,g),k.onreopen=Ir.bind(this,y),k.onmessage=Er.bind(this),k.onerror=function(e){return w&&w({message:"There was a WebSocket error",error:e})},k.onclose=function(){a._pingTimeout&&clearInterval(a._pingTimeout),_&&_()};var S=ga.SHA1("".concat(r," - ").concat(d)).toString(),A="undefined"!==typeof window&&window.localStorage.getItem(S);this._storageKey=S,this._connectionId=A||void 0,this._dappId=r,this._system=i,this._networkId=l,this._appName=d,this._appVersion=b,this._transactionHandlers=x,this._socket=k,this._connected=!1,this._sendMessage=kr.bind(this),this._watchedTransactions=[],this._watchedAccounts=[],this._configurations=new Map,this._pingTimeout=void 0,this._destroyed=!1,this._onerror=w,this._queuedMessages=[],this._limitRules=ka,this._waitToRetry=null,this._processingQueue=!1,this._processQueue=Sr.bind(this),this._socket.ws.on&&(this._heartbeat=function(){a._pingTimeout&&clearTimeout(a._pingTimeout),a._pingTimeout=setTimeout((function(){a._socket.ws.terminate()}),31e3)},this._socket.ws.on("ping",(function(){a._heartbeat&&a._heartbeat()}))),this.transaction=Oa.bind(this),this.account=Pa.bind(this),this.event=Ta.bind(this),this.unsubscribe=Ba.bind(this),this.configuration=Mr.bind(this),this.destroy=function(){a._socket.close(),a._destroyed=!0,a._socket.onclose()}}},function(e,t,a){"use strict";(function(e){var r=this&&this.__extends||function(){var e=function(t,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])},e(t,a)};return function(t,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function r(){this.constructor=t}e(t,a),t.prototype=null===a?Object.create(a):(r.prototype=a.prototype,new r)}}(),n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,a=1,r=arguments.length;a=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.ConsensusAlgorithm=t.ConsensusType=t.Hardfork=t.Chain=t.CustomChain=void 0;var i,f,d=a(27),o=a(272),s=a(495),b=a(501),u=a(507),l=a(523);!function(e){e.PolygonMainnet="polygon-mainnet",e.PolygonMumbai="polygon-mumbai",e.ArbitrumRinkebyTestnet="arbitrum-rinkeby-testnet",e.xDaiChain="x-dai-chain",e.OptimisticKovan="optimistic-kovan",e.OptimisticEthereum="optimistic-ethereum"}(i=t.CustomChain||(t.CustomChain={})),function(e){e[e.Mainnet=1]="Mainnet",e[e.Ropsten=3]="Ropsten",e[e.Rinkeby=4]="Rinkeby",e[e.Kovan=42]="Kovan",e[e.Goerli=5]="Goerli"}(t.Chain||(t.Chain={})),function(e){e.Chainstart="chainstart",e.Homestead="homestead",e.Dao="dao",e.TangerineWhistle="tangerineWhistle",e.SpuriousDragon="spuriousDragon",e.Byzantium="byzantium",e.Constantinople="constantinople",e.Petersburg="petersburg",e.Istanbul="istanbul",e.MuirGlacier="muirGlacier",e.Berlin="berlin",e.London="london",e.ArrowGlacier="arrowGlacier",e.Shanghai="shanghai",e.Merge="merge"}(f=t.Hardfork||(t.Hardfork={})),function(e){e.ProofOfStake="pos",e.ProofOfWork="pow",e.ProofOfAuthority="poa"}(t.ConsensusType||(t.ConsensusType={})),function(e){e.Ethash="ethash",e.Clique="clique",e.Casper="casper"}(t.ConsensusAlgorithm||(t.ConsensusAlgorithm={}));var h=function(t){function d(e){var a,r,n,i,d=t.call(this)||this;d._supportedHardforks=[],d._eips=[],d._customChains=null!==(n=e.customChains)&&void 0!==n?n:[],d._chainParams=d.setChain(e.chain),d.DEFAULT_HARDFORK=null!==(i=d._chainParams.defaultHardfork)&&void 0!==i?i:f.Istanbul;try{for(var o=c(d._chainParams.hardforks),s=o.next();!s.done;s=o.next()){var b=s.value;b.forkHash||(b.forkHash=d._calcForkHash(b.name))}}catch(u){a={error:u}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return d._hardfork=d.DEFAULT_HARDFORK,e.supportedHardforks&&(d._supportedHardforks=e.supportedHardforks),e.hardfork&&d.setHardfork(e.hardfork),e.eips&&d.setEIPs(e.eips),d}return r(d,t),d.custom=function(e,t){var a;void 0===t&&(t={});var r=null!==(a=t.baseChain)&&void 0!==a?a:"mainnet",c=n({},d._getChainParams(r));if(c.name="custom-chain","string"!==typeof e)return new d(n({chain:n(n({},c),e)},t));if(e===i.PolygonMainnet)return d.custom({name:i.PolygonMainnet,chainId:137,networkId:137});if(e===i.PolygonMumbai)return d.custom({name:i.PolygonMumbai,chainId:80001,networkId:80001});if(e===i.ArbitrumRinkebyTestnet)return d.custom({name:i.ArbitrumRinkebyTestnet,chainId:421611,networkId:421611});if(e===i.xDaiChain)return d.custom({name:i.xDaiChain,chainId:100,networkId:100});if(e===i.OptimisticKovan)return d.custom({name:i.OptimisticKovan,chainId:69,networkId:69},{hardfork:f.Berlin});if(e===i.OptimisticEthereum)return d.custom({name:i.OptimisticEthereum,chainId:10,networkId:10},{hardfork:f.Berlin});throw new Error("Custom chain "+e+" not supported")},d.forCustomChain=function(e,t,a,r){var c=d._getChainParams(e);return new d({chain:n(n({},c),t),hardfork:a,supportedHardforks:r})},d.isSupportedChainId=function(e){var t=(0,b._getInitializedChains)();return Boolean(t.names[e.toString()])},d._getChainParams=function(e,t){var a=(0,b._getInitializedChains)(t);if("number"===typeof e||s.BN.isBN(e)){if(e=e.toString(),a.names[e])return a[a.names[e]];throw new Error("Chain with ID "+e+" not supported")}if(a[e])return a[e];throw new Error("Chain with name "+e+" not supported")},d.prototype.setChain=function(e){var t,a;if("number"===typeof e||"string"===typeof e||s.BN.isBN(e)){var r=void 0;r=this._customChains&&this._customChains.length>0&&Array.isArray(this._customChains[0])?this._customChains.map((function(e){return e[0]})):this._customChains,this._chainParams=d._getChainParams(e,r)}else{if("object"!==typeof e)throw new Error("Wrong input format");if(this._customChains.length>0)throw new Error("Chain must be a string, number, or BN when initialized with customChains passed in");try{for(var n=c(["networkId","genesis","hardforks","bootstrapNodes"]),i=n.next();!i.done;i=n.next()){var f=i.value;if(void 0===e[f])throw new Error("Missing required chain parameter: "+f)}}catch(o){t={error:o}}finally{try{i&&!i.done&&(a=n.return)&&a.call(n)}finally{if(t)throw t.error}}this._chainParams=e}return this._chainParams},d.prototype.setHardfork=function(e){var t,a;if(!this._isSupportedHardfork(e))throw new Error("Hardfork "+e+" not set as supported in supportedHardforks");var r=!1;try{for(var n=c(u.hardforks),i=n.next();!i.done;i=n.next()){i.value[0]===e&&(this._hardfork!==e&&(this._hardfork=e,this.emit("hardforkChanged",e)),r=!0)}}catch(f){t={error:f}}finally{try{i&&!i.done&&(a=n.return)&&a.call(n)}finally{if(t)throw t.error}}if(!r)throw new Error("Hardfork with name "+e+" not supported")},d.prototype.getHardforkByBlockNumber=function(e,t){var a,r;e=(0,s.toType)(e,s.TypeOutput.BN),t=(0,s.toType)(t,s.TypeOutput.BN);var n,i,d,o=f.Chainstart;try{for(var b=c(this.hardforks()),u=b.next();!u.done;u=b.next()){var l=u.value;if(null!==l.block)e.gte(new s.BN(l.block))&&(o=l.name),t&&l.td&&(t.gte(new s.BN(l.td))?n=l.name:i=d),d=l.name;else if(void 0!==t&&null!==t&&void 0!==l.td&&null!==l.td&&t.gte(new s.BN(l.td)))return l.name}}catch(p){a={error:p}}finally{try{u&&!u.done&&(r=b.return)&&r.call(b)}finally{if(a)throw a.error}}if(t){var h="block number: "+e+" (-> "+o+"), ";if(n&&!this.hardforkGteHardfork(o,n)){var x="HF determined by block number is lower than the minimum total difficulty HF";throw h+="total difficulty: "+t+" (-> "+n+")",new Error(x+": "+h)}if(i&&!this.hardforkGteHardfork(i,o)){x="Maximum HF determined by total difficulty is lower than the block number HF";throw h+="total difficulty: "+t+" (-> "+i+")",new Error(x+": "+h)}}return o},d.prototype.setHardforkByBlockNumber=function(e,t){var a=this.getHardforkByBlockNumber(e,t);return this.setHardfork(a),a},d.prototype._chooseHardfork=function(e,t){if(void 0===t&&(t=!0),e){if(t&&!this._isSupportedHardfork(e))throw new Error("Hardfork "+e+" not set as supported in supportedHardforks")}else e=this._hardfork;return e},d.prototype._getHardfork=function(e){var t,a,r=this.hardforks();try{for(var n=c(r),i=n.next();!i.done;i=n.next()){var f=i.value;if(f.name===e)return f}}catch(d){t={error:d}}finally{try{i&&!i.done&&(a=n.return)&&a.call(n)}finally{if(t)throw t.error}}throw new Error("Hardfork "+e+" not defined for chain "+this.chainName())},d.prototype._isSupportedHardfork=function(e){var t,a;if(!(this._supportedHardforks.length>0))return!0;try{for(var r=c(this._supportedHardforks),n=r.next();!n.done;n=r.next()){if(e===n.value)return!0}}catch(i){t={error:i}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(t)throw t.error}}return!1},d.prototype.setEIPs=function(e){var t,a,r=this;void 0===e&&(e=[]);var n=function(t){if(!(t in l.EIPs))throw new Error(t+" not supported");var a=i.gteHardfork(l.EIPs[t].minimumHardfork);if(!a)throw new Error(t+" cannot be activated on hardfork "+i.hardfork()+", minimumHardfork: "+a);l.EIPs[t].requiredEIPs&&l.EIPs[t].requiredEIPs.forEach((function(a){if(!e.includes(a)&&!r.isActivatedEIP(a))throw new Error(t+" requires EIP "+a+", but is not included in the EIP list")}))},i=this;try{for(var f=c(e),d=f.next();!d.done;d=f.next()){n(d.value)}}catch(o){t={error:o}}finally{try{d&&!d.done&&(a=f.return)&&a.call(f)}finally{if(t)throw t.error}}this._eips=e},d.prototype.param=function(e,t){var a,r,n=null;try{for(var i=c(this._eips),f=i.next();!f.done;f=i.next()){var d=f.value;if(null!==(n=this.paramByEIP(e,t,d)))return n}}catch(o){a={error:o}}finally{try{f&&!f.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return this.paramByHardfork(e,t,this._hardfork)},d.prototype.paramByHardfork=function(e,t,a){var r,n,i,f;a=this._chooseHardfork(a);var d=null;try{for(var o=c(u.hardforks),s=o.next();!s.done;s=o.next()){var b=s.value;if("eips"in b[1]){var l=b[1].eips;try{for(var h=(i=void 0,c(l)),x=h.next();!x.done;x=h.next()){var p=x.value,m=this.paramByEIP(e,t,p);d=null!==m?m:d}}catch(v){i={error:v}}finally{try{x&&!x.done&&(f=h.return)&&f.call(h)}finally{if(i)throw i.error}}}else{if(!b[1][e])throw new Error("Topic "+e+" not defined");void 0!==b[1][e][t]&&(d=b[1][e][t].v)}if(b[0]===a)break}}catch(g){r={error:g}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return d},d.prototype.paramByEIP=function(e,t,a){if(!(a in l.EIPs))throw new Error(a+" not supported");var r=l.EIPs[a];if(!(e in r))throw new Error("Topic "+e+" not defined");return void 0===r[e][t]?null:r[e][t].v},d.prototype.paramByBlock=function(e,t,a){var r=this.activeHardforks(a),n=r[r.length-1].name;return this.paramByHardfork(e,t,n)},d.prototype.isActivatedEIP=function(e){var t,a;if(this.eips().includes(e))return!0;try{for(var r=c(u.hardforks),n=r.next();!n.done;n=r.next()){var i=n.value[1];if(this.gteHardfork(i.name)&&"eips"in i&&i.eips.includes(e))return!0}}catch(f){t={error:f}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(t)throw t.error}}return!1},d.prototype.hardforkIsActiveOnBlock=function(e,t,a){var r;void 0===a&&(a={}),t=(0,s.toType)(t,s.TypeOutput.BN);var n=null!==(r=a.onlySupported)&&void 0!==r&&r;e=this._chooseHardfork(e,n);var c=this.hardforkBlockBN(e);return!(!c||!t.gte(c))},d.prototype.activeOnBlock=function(e,t){return this.hardforkIsActiveOnBlock(null,e,t)},d.prototype.hardforkGteHardfork=function(e,t,a){var r,n;void 0===a&&(a={});var i,f=void 0!==a.onlyActive&&a.onlyActive;e=this._chooseHardfork(e,a.onlySupported),i=f?this.activeHardforks(null,a):this.hardforks();var d=-1,o=-1,s=0;try{for(var b=c(i),u=b.next();!u.done;u=b.next()){var l=u.value;l.name===e&&(d=s),l.name===t&&(o=s),s+=1}}catch(h){r={error:h}}finally{try{u&&!u.done&&(n=b.return)&&n.call(b)}finally{if(r)throw r.error}}return d>=o&&-1!==o},d.prototype.gteHardfork=function(e,t){return this.hardforkGteHardfork(null,e,t)},d.prototype.hardforkIsActiveOnChain=function(e,t){var a,r,n;void 0===t&&(t={});var i=null!==(n=t.onlySupported)&&void 0!==n&&n;e=this._chooseHardfork(e,i);try{for(var f=c(this.hardforks()),d=f.next();!d.done;d=f.next()){var o=d.value;if(o.name===e&&null!==o.block)return!0}}catch(s){a={error:s}}finally{try{d&&!d.done&&(r=f.return)&&r.call(f)}finally{if(a)throw a.error}}return!1},d.prototype.activeHardforks=function(e,t){var a,r;void 0===t&&(t={});var n=[],i=this.hardforks();try{for(var f=c(i),d=f.next();!d.done;d=f.next()){var o=d.value;if(null!==o.block){if(void 0!==e&&null!==e&&e0)return a[a.length-1].name;throw new Error("No (supported) active hardfork found")},d.prototype.hardforkBlock=function(e){var t=this.hardforkBlockBN(e);return(0,s.toType)(t,s.TypeOutput.Number)},d.prototype.hardforkBlockBN=function(e){e=this._chooseHardfork(e,!1);var t=this._getHardfork(e).block;return void 0===t||null===t?null:new s.BN(t)},d.prototype.hardforkTD=function(e){e=this._chooseHardfork(e,!1);var t=this._getHardfork(e).td;return void 0===t||null===t?null:new s.BN(t)},d.prototype.isHardforkBlock=function(e,t){e=(0,s.toType)(e,s.TypeOutput.BN),t=this._chooseHardfork(t,!1);var a=this.hardforkBlockBN(t);return!!a&&a.eq(e)},d.prototype.nextHardforkBlock=function(e){var t=this.nextHardforkBlockBN(e);return(0,s.toType)(t,s.TypeOutput.Number)},d.prototype.nextHardforkBlockBN=function(e){e=this._chooseHardfork(e,!1);var t=this.hardforkBlockBN(e);return null===t?null:this.hardforks().reduce((function(e,a){var r=new s.BN(a.block);return r.gt(t)&&null===e?r:e}),null)},d.prototype.isNextHardforkBlock=function(e,t){e=(0,s.toType)(e,s.TypeOutput.BN),t=this._chooseHardfork(t,!1);var a=this.nextHardforkBlockBN(t);return null!==a&&a.eq(e)},d.prototype._calcForkHash=function(t){var a,r,n=e.from(this.genesis().hash.substr(2),"hex"),i=e.alloc(0),f=0;try{for(var d=c(this.hardforks()),b=d.next();!b.done;b=d.next()){var u=b.value,l=u.block;if(0!==l&&null!==l&&l!==f){var h=e.from(l.toString(16).padStart(16,"0"),"hex");i=e.concat([i,h])}if(u.name===t)break;null!==l&&(f=l)}}catch(p){a={error:p}}finally{try{b&&!b.done&&(r=d.return)&&r.call(d)}finally{if(a)throw a.error}}var x=e.concat([n,i]);return"0x"+(0,s.intToBuffer)((0,o.buf)(x)>>>0).toString("hex")},d.prototype.forkHash=function(e){e=this._chooseHardfork(e,!1);var t=this._getHardfork(e);if(null===t.block&&void 0===t.td){throw new Error("No fork hash calculation possible for future hardfork")}return void 0!==t.forkHash?t.forkHash:this._calcForkHash(e)},d.prototype.hardforkForForkHash=function(e){var t=this.hardforks().filter((function(t){return t.forkHash===e}));return t.length>=1?t[t.length-1]:null},d.prototype.genesis=function(){return this._chainParams.genesis},d.prototype.genesisState=function(){var e,t;switch(this.chainName()){case"mainnet":return a(537);case"ropsten":return a(538);case"rinkeby":return a(539);case"kovan":return a(540);case"goerli":return a(541)}if(this._customChains&&this._customChains.length>0&&Array.isArray(this._customChains[0]))try{for(var r=c(this._customChains),n=r.next();!n.done;n=r.next()){var i=n.value;if(i[0].name===this.chainName())return i[1]}}catch(f){e={error:f}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return{}},d.prototype.hardforks=function(){return this._chainParams.hardforks},d.prototype.bootstrapNodes=function(){return this._chainParams.bootstrapNodes},d.prototype.dnsNetworks=function(){return this._chainParams.dnsNetworks},d.prototype.hardfork=function(){return this._hardfork},d.prototype.chainId=function(){return(0,s.toType)(this.chainIdBN(),s.TypeOutput.Number)},d.prototype.chainIdBN=function(){return new s.BN(this._chainParams.chainId)},d.prototype.chainName=function(){return this._chainParams.name},d.prototype.networkId=function(){return(0,s.toType)(this.networkIdBN(),s.TypeOutput.Number)},d.prototype.networkIdBN=function(){return new s.BN(this._chainParams.networkId)},d.prototype.eips=function(){return this._eips},d.prototype.consensusType=function(){var e,t,a,r=this.hardfork();try{for(var n=c(u.hardforks),i=n.next();!i.done;i=n.next()){var f=i.value;if("consensus"in f[1]&&(a=f[1].consensus.type),f[0]===r)break}}catch(d){e={error:d}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return a||this._chainParams.consensus.type},d.prototype.consensusAlgorithm=function(){var e,t,a,r=this.hardfork();try{for(var n=c(u.hardforks),i=n.next();!i.done;i=n.next()){var f=i.value;if("consensus"in f[1]&&(a=f[1].consensus.algorithm),f[0]===r)break}}catch(d){e={error:d}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return a||this._chainParams.consensus.algorithm},d.prototype.consensusConfig=function(){var e,t,a,r=this.hardfork();try{for(var n=c(u.hardforks),i=n.next();!i.done;i=n.next()){var f=i.value;if("consensus"in f[1]&&(a=f[1].consensus[f[1].consensus.algorithm]),f[0]===r)break}}catch(o){e={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}if(a)return a;var d=this.consensusAlgorithm();return this._chainParams.consensus[d]},d.prototype.copy=function(){return Object.assign(Object.create(Object.getPrototypeOf(this)),this)},d}(d.EventEmitter);t.default=h}).call(this,a(3).Buffer)},function(e,t,a){(function(r,n){var c;!function(){"use strict";var i="input is invalid type",f="object"===typeof window,d=f?window:{};d.JS_SHA3_NO_WINDOW&&(f=!1);var o=!f&&"object"===typeof self;!d.JS_SHA3_NO_NODE_JS&&"object"===typeof r&&r.versions&&r.versions.node?d=n:o&&(d=self);var s=!d.JS_SHA3_NO_COMMON_JS&&"object"===typeof e&&e.exports,b=a(266),u=!d.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!==typeof ArrayBuffer,l="0123456789abcdef".split(""),h=[4,1024,262144,67108864],x=[0,8,16,24],p=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],m=[224,256,384,512],v=[128,256],g=["hex","buffer","arrayBuffer","array","digest"],y={128:168,256:136};!d.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!u||!d.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"===typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var w=function(e,t,a){return function(r){return new N(e,t,e).update(r)[a]()}},_=function(e,t,a){return function(r,n){return new N(e,t,n).update(r)[a]()}},M=function(e,t,a){return function(t,r,n,c){return O["cshake"+e].update(t,r,n,c)[a]()}},k=function(e,t,a){return function(t,r,n,c){return O["kmac"+e].update(t,r,n,c)[a]()}},S=function(e,t,a,r){for(var n=0;n>5,this.byteCount=this.blockCount<<2,this.outputBlocks=a>>5,this.extraBytes=(31&a)>>3;for(var r=0;r<50;++r)this.s[r]=0}function L(e,t,a){N.call(this,e,t,a)}N.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var t,a=typeof e;if("string"!==a){if("object"!==a)throw new Error(i);if(null===e)throw new Error(i);if(u&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!u||!ArrayBuffer.isView(e)))throw new Error(i);t=!0}for(var r,n,c=this.blocks,f=this.byteCount,d=e.length,o=this.blockCount,s=0,b=this.s;s>2]|=e[s]<>2]|=n<>2]|=(192|n>>6)<>2]|=(128|63&n)<=57344?(c[r>>2]|=(224|n>>12)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<>2]|=(240|n>>18)<>2]|=(128|n>>12&63)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<=f){for(this.start=r-f,this.block=c[o],r=0;r>=8);a>0;)n.unshift(a),a=255&(e>>=8),++r;return t?n.push(r):n.unshift(r),this.update(n),n.length},N.prototype.encodeString=function(e){var t,a=typeof e;if("string"!==a){if("object"!==a)throw new Error(i);if(null===e)throw new Error(i);if(u&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!u||!ArrayBuffer.isView(e)))throw new Error(i);t=!0}var r=0,n=e.length;if(t)r=n;else for(var c=0;c=57344?r+=3:(f=65536+((1023&f)<<10|1023&e.charCodeAt(++c)),r+=4)}return r+=this.encode(8*r),this.update(e),r},N.prototype.bytepad=function(e,t){for(var a=this.encode(t),r=0;r>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[a],t=1;t>4&15]+l[15&e]+l[e>>12&15]+l[e>>8&15]+l[e>>20&15]+l[e>>16&15]+l[e>>28&15]+l[e>>24&15];i%t===0&&(U(a),c=0)}return n&&(e=a[c],f+=l[e>>4&15]+l[15&e],n>1&&(f+=l[e>>12&15]+l[e>>8&15]),n>2&&(f+=l[e>>20&15]+l[e>>16&15])),f},N.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,a=this.s,r=this.outputBlocks,n=this.extraBytes,c=0,i=0,f=this.outputBits>>3;e=n?new ArrayBuffer(r+1<<2):new ArrayBuffer(f);for(var d=new Uint32Array(e);i>8&255,d[e+2]=t>>16&255,d[e+3]=t>>24&255;f%a===0&&U(r)}return c&&(e=f<<2,t=r[i],d[e]=255&t,c>1&&(d[e+1]=t>>8&255),c>2&&(d[e+2]=t>>16&255)),d},L.prototype=new N,L.prototype.finalize=function(){return this.encode(this.outputBits,!0),N.prototype.finalize.call(this)};var U=function(e){var t,a,r,n,c,i,f,d,o,s,b,u,l,h,x,m,v,g,y,w,_,M,k,S,A,E,O,P,T,B,R,C,j,I,N,L,U,F,D,z,H,q,K,W,V,$,G,Z,J,X,Y,Q,ee,te,ae,re,ne,ce,ie,fe,de,oe,se;for(r=0;r<48;r+=2)n=e[0]^e[10]^e[20]^e[30]^e[40],c=e[1]^e[11]^e[21]^e[31]^e[41],i=e[2]^e[12]^e[22]^e[32]^e[42],f=e[3]^e[13]^e[23]^e[33]^e[43],d=e[4]^e[14]^e[24]^e[34]^e[44],o=e[5]^e[15]^e[25]^e[35]^e[45],s=e[6]^e[16]^e[26]^e[36]^e[46],b=e[7]^e[17]^e[27]^e[37]^e[47],t=(u=e[8]^e[18]^e[28]^e[38]^e[48])^(i<<1|f>>>31),a=(l=e[9]^e[19]^e[29]^e[39]^e[49])^(f<<1|i>>>31),e[0]^=t,e[1]^=a,e[10]^=t,e[11]^=a,e[20]^=t,e[21]^=a,e[30]^=t,e[31]^=a,e[40]^=t,e[41]^=a,t=n^(d<<1|o>>>31),a=c^(o<<1|d>>>31),e[2]^=t,e[3]^=a,e[12]^=t,e[13]^=a,e[22]^=t,e[23]^=a,e[32]^=t,e[33]^=a,e[42]^=t,e[43]^=a,t=i^(s<<1|b>>>31),a=f^(b<<1|s>>>31),e[4]^=t,e[5]^=a,e[14]^=t,e[15]^=a,e[24]^=t,e[25]^=a,e[34]^=t,e[35]^=a,e[44]^=t,e[45]^=a,t=d^(u<<1|l>>>31),a=o^(l<<1|u>>>31),e[6]^=t,e[7]^=a,e[16]^=t,e[17]^=a,e[26]^=t,e[27]^=a,e[36]^=t,e[37]^=a,e[46]^=t,e[47]^=a,t=s^(n<<1|c>>>31),a=b^(c<<1|n>>>31),e[8]^=t,e[9]^=a,e[18]^=t,e[19]^=a,e[28]^=t,e[29]^=a,e[38]^=t,e[39]^=a,e[48]^=t,e[49]^=a,h=e[0],x=e[1],$=e[11]<<4|e[10]>>>28,G=e[10]<<4|e[11]>>>28,P=e[20]<<3|e[21]>>>29,T=e[21]<<3|e[20]>>>29,fe=e[31]<<9|e[30]>>>23,de=e[30]<<9|e[31]>>>23,q=e[40]<<18|e[41]>>>14,K=e[41]<<18|e[40]>>>14,I=e[2]<<1|e[3]>>>31,N=e[3]<<1|e[2]>>>31,m=e[13]<<12|e[12]>>>20,v=e[12]<<12|e[13]>>>20,Z=e[22]<<10|e[23]>>>22,J=e[23]<<10|e[22]>>>22,B=e[33]<<13|e[32]>>>19,R=e[32]<<13|e[33]>>>19,oe=e[42]<<2|e[43]>>>30,se=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,ae=e[4]<<30|e[5]>>>2,L=e[14]<<6|e[15]>>>26,U=e[15]<<6|e[14]>>>26,g=e[25]<<11|e[24]>>>21,y=e[24]<<11|e[25]>>>21,X=e[34]<<15|e[35]>>>17,Y=e[35]<<15|e[34]>>>17,C=e[45]<<29|e[44]>>>3,j=e[44]<<29|e[45]>>>3,S=e[6]<<28|e[7]>>>4,A=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>9,ne=e[16]<<23|e[17]>>>9,F=e[26]<<25|e[27]>>>7,D=e[27]<<25|e[26]>>>7,w=e[36]<<21|e[37]>>>11,_=e[37]<<21|e[36]>>>11,Q=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,W=e[8]<<27|e[9]>>>5,V=e[9]<<27|e[8]>>>5,E=e[18]<<20|e[19]>>>12,O=e[19]<<20|e[18]>>>12,ce=e[29]<<7|e[28]>>>25,ie=e[28]<<7|e[29]>>>25,z=e[38]<<8|e[39]>>>24,H=e[39]<<8|e[38]>>>24,M=e[48]<<14|e[49]>>>18,k=e[49]<<14|e[48]>>>18,e[0]=h^~m&g,e[1]=x^~v&y,e[10]=S^~E&P,e[11]=A^~O&T,e[20]=I^~L&F,e[21]=N^~U&D,e[30]=W^~$&Z,e[31]=V^~G&J,e[40]=te^~re&ce,e[41]=ae^~ne&ie,e[2]=m^~g&w,e[3]=v^~y&_,e[12]=E^~P&B,e[13]=O^~T&R,e[22]=L^~F&z,e[23]=U^~D&H,e[32]=$^~Z&X,e[33]=G^~J&Y,e[42]=re^~ce&fe,e[43]=ne^~ie&de,e[4]=g^~w&M,e[5]=y^~_&k,e[14]=P^~B&C,e[15]=T^~R&j,e[24]=F^~z&q,e[25]=D^~H&K,e[34]=Z^~X&Q,e[35]=J^~Y&ee,e[44]=ce^~fe&oe,e[45]=ie^~de&se,e[6]=w^~M&h,e[7]=_^~k&x,e[16]=B^~C&S,e[17]=R^~j&A,e[26]=z^~q&I,e[27]=H^~K&N,e[36]=X^~Q&W,e[37]=Y^~ee&V,e[46]=fe^~oe&te,e[47]=de^~se&ae,e[8]=M^~h&m,e[9]=k^~x&v,e[18]=C^~S&E,e[19]=j^~A&O,e[28]=q^~I&L,e[29]=K^~N&U,e[38]=Q^~W&$,e[39]=ee^~V&G,e[48]=oe^~te&re,e[49]=se^~ae&ne,e[0]^=p[r],e[1]^=p[r+1]};if(s)e.exports=O;else{for(T=0;T>>32-t}function x(e,t,a,r,n,c,i,f){return h(e+(t^a^r)+c+i|0,f)+n|0}function p(e,t,a,r,n,c,i,f){return h(e+(t&a|~t&r)+c+i|0,f)+n|0}function m(e,t,a,r,n,c,i,f){return h(e+((t|~a)^r)+c+i|0,f)+n|0}function v(e,t,a,r,n,c,i,f){return h(e+(t&r|a&~r)+c+i|0,f)+n|0}function g(e,t,a,r,n,c,i,f){return h(e+(t^(a|~r))+c+i|0,f)+n|0}n(l,c),l.prototype._update=function(){for(var e=i,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var a=0|this._a,r=0|this._b,n=0|this._c,c=0|this._d,l=0|this._e,y=0|this._a,w=0|this._b,_=0|this._c,M=0|this._d,k=0|this._e,S=0;S<80;S+=1){var A,E;S<16?(A=x(a,r,n,c,l,e[f[S]],b[0],o[S]),E=g(y,w,_,M,k,e[d[S]],u[0],s[S])):S<32?(A=p(a,r,n,c,l,e[f[S]],b[1],o[S]),E=v(y,w,_,M,k,e[d[S]],u[1],s[S])):S<48?(A=m(a,r,n,c,l,e[f[S]],b[2],o[S]),E=m(y,w,_,M,k,e[d[S]],u[2],s[S])):S<64?(A=v(a,r,n,c,l,e[f[S]],b[3],o[S]),E=p(y,w,_,M,k,e[d[S]],u[3],s[S])):(A=g(a,r,n,c,l,e[f[S]],b[4],o[S]),E=x(y,w,_,M,k,e[d[S]],u[4],s[S])),a=l,l=c,c=h(n,10),n=r,r=A,y=k,k=M,M=h(_,10),_=w,w=E}var O=this._b+n+M|0;this._b=this._c+c+k|0,this._c=this._d+l+y|0,this._d=this._e+a+w|0,this._e=this._a+r+_|0,this._a=O},l.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=r.alloc?r.alloc(20):new r(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=l},function(e,t,a){(t=e.exports=function(e){e=e.toLowerCase();var a=t[e];if(!a)throw new Error(e+" is not supported (we accept pull requests)");return new a}).sha=a(340),t.sha1=a(341),t.sha224=a(342),t.sha256=a(185),t.sha384=a(343),t.sha512=a(186)},function(e,t,a){var r=a(164);e.exports=function(e,t){if(e){if("string"===typeof e)return r(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?r(e,t):void 0}}},function(e,t,a){var r;function n(e){this.rand=e}if(e.exports=function(e){return r||(r=new n(null)),r.generate(e)},e.exports.Rand=n,n.prototype.generate=function(e){return this._rand(e)},n.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),a=0;a>>32-t}function o(e,t,a,r,n,c,i){return d(e+(t&a|~t&r)+n+c|0,i)+t|0}function s(e,t,a,r,n,c,i){return d(e+(t&r|a&~r)+n+c|0,i)+t|0}function b(e,t,a,r,n,c,i){return d(e+(t^a^r)+n+c|0,i)+t|0}function u(e,t,a,r,n,c,i){return d(e+(a^(t|~r))+n+c|0,i)+t|0}r(f,n),f.prototype._update=function(){for(var e=i,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var a=this._a,r=this._b,n=this._c,c=this._d;a=o(a,r,n,c,e[0],3614090360,7),c=o(c,a,r,n,e[1],3905402710,12),n=o(n,c,a,r,e[2],606105819,17),r=o(r,n,c,a,e[3],3250441966,22),a=o(a,r,n,c,e[4],4118548399,7),c=o(c,a,r,n,e[5],1200080426,12),n=o(n,c,a,r,e[6],2821735955,17),r=o(r,n,c,a,e[7],4249261313,22),a=o(a,r,n,c,e[8],1770035416,7),c=o(c,a,r,n,e[9],2336552879,12),n=o(n,c,a,r,e[10],4294925233,17),r=o(r,n,c,a,e[11],2304563134,22),a=o(a,r,n,c,e[12],1804603682,7),c=o(c,a,r,n,e[13],4254626195,12),n=o(n,c,a,r,e[14],2792965006,17),a=s(a,r=o(r,n,c,a,e[15],1236535329,22),n,c,e[1],4129170786,5),c=s(c,a,r,n,e[6],3225465664,9),n=s(n,c,a,r,e[11],643717713,14),r=s(r,n,c,a,e[0],3921069994,20),a=s(a,r,n,c,e[5],3593408605,5),c=s(c,a,r,n,e[10],38016083,9),n=s(n,c,a,r,e[15],3634488961,14),r=s(r,n,c,a,e[4],3889429448,20),a=s(a,r,n,c,e[9],568446438,5),c=s(c,a,r,n,e[14],3275163606,9),n=s(n,c,a,r,e[3],4107603335,14),r=s(r,n,c,a,e[8],1163531501,20),a=s(a,r,n,c,e[13],2850285829,5),c=s(c,a,r,n,e[2],4243563512,9),n=s(n,c,a,r,e[7],1735328473,14),a=b(a,r=s(r,n,c,a,e[12],2368359562,20),n,c,e[5],4294588738,4),c=b(c,a,r,n,e[8],2272392833,11),n=b(n,c,a,r,e[11],1839030562,16),r=b(r,n,c,a,e[14],4259657740,23),a=b(a,r,n,c,e[1],2763975236,4),c=b(c,a,r,n,e[4],1272893353,11),n=b(n,c,a,r,e[7],4139469664,16),r=b(r,n,c,a,e[10],3200236656,23),a=b(a,r,n,c,e[13],681279174,4),c=b(c,a,r,n,e[0],3936430074,11),n=b(n,c,a,r,e[3],3572445317,16),r=b(r,n,c,a,e[6],76029189,23),a=b(a,r,n,c,e[9],3654602809,4),c=b(c,a,r,n,e[12],3873151461,11),n=b(n,c,a,r,e[15],530742520,16),a=u(a,r=b(r,n,c,a,e[2],3299628645,23),n,c,e[0],4096336452,6),c=u(c,a,r,n,e[7],1126891415,10),n=u(n,c,a,r,e[14],2878612391,15),r=u(r,n,c,a,e[5],4237533241,21),a=u(a,r,n,c,e[12],1700485571,6),c=u(c,a,r,n,e[3],2399980690,10),n=u(n,c,a,r,e[10],4293915773,15),r=u(r,n,c,a,e[1],2240044497,21),a=u(a,r,n,c,e[8],1873313359,6),c=u(c,a,r,n,e[15],4264355552,10),n=u(n,c,a,r,e[6],2734768916,15),r=u(r,n,c,a,e[13],1309151649,21),a=u(a,r,n,c,e[4],4149444226,6),c=u(c,a,r,n,e[11],3174756917,10),n=u(n,c,a,r,e[2],718787259,15),r=u(r,n,c,a,e[9],3951481745,21),this._a=this._a+a|0,this._b=this._b+r|0,this._c=this._c+n|0,this._d=this._d+c|0},f.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=c.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=f},function(e,t,a){"use strict";var r=a(59).codes.ERR_STREAM_PREMATURE_CLOSE;function n(){}e.exports=function e(t,a,c){if("function"===typeof a)return e(t,null,a);a||(a={}),c=function(e){var t=!1;return function(){if(!t){t=!0;for(var a=arguments.length,r=new Array(a),n=0;n-1?r:c.nextTick;v.WritableState=m;var o=Object.create(a(73));o.inherits=a(7);var s={deprecate:a(83)},b=a(188),u=a(117).Buffer,l=n.Uint8Array||function(){};var h,x=a(189);function p(){}function m(e,t){f=f||a(44),e=e||{};var r=t instanceof f;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,o=e.writableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r&&(o||0===o)?o:s,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var b=!1===e.decodeStrings;this.decodeStrings=!b,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var a=e._writableState,r=a.sync,n=a.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(a),t)!function(e,t,a,r,n){--t.pendingcb,a?(c.nextTick(n,r),c.nextTick(k,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(n(r),e._writableState.errorEmitted=!0,e.emit("error",r),k(e,t))}(e,a,r,t,n);else{var i=_(a);i||a.corked||a.bufferProcessing||!a.bufferedRequest||w(e,a),r?d(y,e,a,i,n):y(e,a,i,n)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function v(e){if(f=f||a(44),!h.call(v,this)&&!(this instanceof f))return new v(e);this._writableState=new m(e,this),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final)),b.call(this)}function g(e,t,a,r,n,c,i){t.writelen=r,t.writecb=i,t.writing=!0,t.sync=!0,a?e._writev(n,t.onwrite):e._write(n,c,t.onwrite),t.sync=!1}function y(e,t,a,r){a||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),k(e,t)}function w(e,t){t.bufferProcessing=!0;var a=t.bufferedRequest;if(e._writev&&a&&a.next){var r=t.bufferedRequestCount,n=new Array(r),c=t.corkedRequestsFree;c.entry=a;for(var f=0,d=!0;a;)n[f]=a,a.isBuf||(d=!1),a=a.next,f+=1;n.allBuffers=d,g(e,t,!0,t.length,n,"",c.finish),t.pendingcb++,t.lastBufferedRequest=null,c.next?(t.corkedRequestsFree=c.next,c.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;a;){var o=a.chunk,s=a.encoding,b=a.callback;if(g(e,t,!1,t.objectMode?1:o.length,o,s,b),a=a.next,t.bufferedRequestCount--,t.writing)break}null===a&&(t.lastBufferedRequest=null)}t.bufferedRequest=a,t.bufferProcessing=!1}function _(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function M(e,t){e._final((function(a){t.pendingcb--,a&&e.emit("error",a),t.prefinished=!0,e.emit("prefinish"),k(e,t)}))}function k(e,t){var a=_(t);return a&&(!function(e,t){t.prefinished||t.finalCalled||("function"===typeof e._final?(t.pendingcb++,t.finalCalled=!0,c.nextTick(M,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),a}o.inherits(v,b),m.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(m.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(e){return!!h.call(this,e)||this===v&&(e&&e._writableState instanceof m)}})):h=function(e){return e instanceof this},v.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},v.prototype.write=function(e,t,a){var r,n=this._writableState,i=!1,f=!n.objectMode&&(r=e,u.isBuffer(r)||r instanceof l);return f&&!u.isBuffer(e)&&(e=function(e){return u.from(e)}(e)),"function"===typeof t&&(a=t,t=null),f?t="buffer":t||(t=n.defaultEncoding),"function"!==typeof a&&(a=p),n.ended?function(e,t){var a=new Error("write after end");e.emit("error",a),c.nextTick(t,a)}(this,a):(f||function(e,t,a,r){var n=!0,i=!1;return null===a?i=new TypeError("May not write null values to stream"):"string"===typeof a||void 0===a||t.objectMode||(i=new TypeError("Invalid non-string/buffer chunk")),i&&(e.emit("error",i),c.nextTick(r,i),n=!1),n}(this,n,e,a))&&(n.pendingcb++,i=function(e,t,a,r,n,c){if(!a){var i=function(e,t,a){e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=u.from(t,a));return t}(t,r,n);r!==i&&(a=!0,n="buffer",r=i)}var f=t.objectMode?1:r.length;t.length+=f;var d=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),v.prototype._write=function(e,t,a){a(new Error("_write() is not implemented"))},v.prototype._writev=null,v.prototype.end=function(e,t,a){var r=this._writableState;"function"===typeof e?(a=e,e=null,t=null):"function"===typeof t&&(a=t,t=null),null!==e&&void 0!==e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,a){t.ending=!0,k(e,t),a&&(t.finished?c.nextTick(a):e.once("finish",a));t.ended=!0,e.writable=!1}(this,r,a)},Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),v.prototype.destroy=x.destroy,v.prototype._undestroy=x.undestroy,v.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,a(14),a(148).setImmediate,a(15))},function(e,t,a){"use strict";(function(e){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.toType=t.TypeOutput=t.bnToRlp=t.bnToUnpaddedBuffer=t.bnToHex=void 0;var n,c=r(a(42)),i=a(56),f=a(43);function d(t){return(0,f.unpadBuffer)(t.toArrayLike(e))}t.bnToHex=function(e){return"0x"+e.toString(16)},t.bnToUnpaddedBuffer=d,t.bnToRlp=function(e){return d(e)},function(e){e[e.Number=0]="Number",e[e.BN=1]="BN",e[e.Buffer=2]="Buffer",e[e.PrefixedHexString=3]="PrefixedHexString"}(n=t.TypeOutput||(t.TypeOutput={})),t.toType=function(e,t){if(null===e)return null;if(void 0!==e){if("string"===typeof e&&!(0,i.isHexString)(e))throw new Error("A string must be provided with a 0x-prefix, given: "+e);if("number"===typeof e&&!Number.isSafeInteger(e))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");var a=(0,f.toBuffer)(e);if(t===n.Buffer)return a;if(t===n.BN)return new c.default(a);if(t===n.Number){var r=new c.default(a),d=new c.default(Number.MAX_SAFE_INTEGER.toString());if(r.gt(d))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return r.toNumber()}return"0x"+a.toString("hex")}}}).call(this,a(3).Buffer)},function(e,t,a){"use strict";var r=Object.prototype.hasOwnProperty,n="~";function c(){}function i(e,t,a){this.fn=e,this.context=t,this.once=a||!1}function f(e,t,a,r,c){if("function"!==typeof a)throw new TypeError("The listener must be a function");var f=new i(a,r||e,c),d=n?n+t:t;return e._events[d]?e._events[d].fn?e._events[d]=[e._events[d],f]:e._events[d].push(f):(e._events[d]=f,e._eventsCount++),e}function d(e,t){0===--e._eventsCount?e._events=new c:delete e._events[t]}function o(){this._events=new c,this._eventsCount=0}Object.create&&(c.prototype=Object.create(null),(new c).__proto__||(n=!1)),o.prototype.eventNames=function(){var e,t,a=[];if(0===this._eventsCount)return a;for(t in e=this._events)r.call(e,t)&&a.push(n?t.slice(1):t);return Object.getOwnPropertySymbols?a.concat(Object.getOwnPropertySymbols(e)):a},o.prototype.listeners=function(e){var t=n?n+e:e,a=this._events[t];if(!a)return[];if(a.fn)return[a.fn];for(var r=0,c=a.length,i=new Array(c);r 2 bytes.");var a=c.decode(e);if(!t.isValidCode(a))throw new Error("multihash unknown function code: 0x".concat(a.toString(16)));e=e.slice(c.decode.bytes);var n=c.decode(e);if(n<0)throw new Error("multihash invalid length: ".concat(n));if((e=e.slice(c.decode.bytes)).length!==n)throw new Error("multihash length inconsistent: 0x".concat(e.toString("hex")));return{code:a,name:i.codes[a],length:n,digest:e}},t.encode=function(e,a,n){if(!e||void 0===a)throw new Error("multihash encode requires at least two args: digest, code");var i=t.coerceCode(a);if(!r.isBuffer(e))throw new Error("digest should be a Buffer");if(null==n&&(n=e.length),n&&e.length!==n)throw new Error("digest length should be equal to specified length.");return r.concat([r.from(c.encode(i)),r.from(c.encode(n)),e])},t.coerceCode=function(e){var a=e;if("string"===typeof e){if(void 0===i.names[e])throw new Error("Unrecognized hash function named: ".concat(e));a=i.names[e]}if("number"!==typeof a)throw new Error("Hash function code should be a number. Got: ".concat(a));if(void 0===i.codes[a]&&!t.isAppCode(a))throw new Error("Unrecognized function code: ".concat(a));return a},t.isAppCode=function(e){return e>0&&e<16},t.isValidCode=function(e){return!!t.isAppCode(e)||!!i.codes[e]},t.validate=f,t.prefix=function(e){return f(e),e.slice(0,2)}},function(e,t,a){"use strict";var r=a(23);function n(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}e.exports=n,n.prototype._init=function(){},n.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},n.prototype._buffer=function(e,t){for(var a=Math.min(this.buffer.length-this.bufferOff,e.length-t),r=0;r0;r--)t+=this._buffer(e,t),a+=this._flushBuffer(n,a);return t+=this._buffer(e,t),n},n.prototype.final=function(e){var t,a;return e&&(t=this.update(e)),a="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(a):a},n.prototype._pad=function(e,t){if(0===t)return!1;for(;t=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function i(e,a){var n=function(e){var t=c(e);return{blinder:t.toRed(r.mont(e.modulus)).redPow(new r(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(a),i=a.modulus.byteLength(),f=new r(e).mul(n.blinder).umod(a.modulus),d=f.toRed(r.mont(a.prime1)),o=f.toRed(r.mont(a.prime2)),s=a.coefficient,b=a.prime1,u=a.prime2,l=d.redPow(a.exponent1).fromRed(),h=o.redPow(a.exponent2).fromRed(),x=l.isub(h).imul(s).umod(b).imul(u);return h.iadd(x).imul(n.unblinder).umod(a.modulus).toArrayLike(t,"be",i)}i.getr=c,e.exports=i}).call(this,a(3).Buffer)},function(e,t,a){"use strict";(function(t){var r,n=a(3),c=n.Buffer,i={};for(r in n)n.hasOwnProperty(r)&&"SlowBuffer"!==r&&"Buffer"!==r&&(i[r]=n[r]);var f=i.Buffer={};for(r in c)c.hasOwnProperty(r)&&"allocUnsafe"!==r&&"allocUnsafeSlow"!==r&&(f[r]=c[r]);if(i.Buffer.prototype=c.prototype,f.from&&f.from!==Uint8Array.from||(f.from=function(e,t,a){if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&"undefined"===typeof e.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return c(e,t,a)}),f.alloc||(f.alloc=function(e,t,a){if("number"!==typeof e)throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=c(e);return t&&0!==t.length?"string"===typeof a?r.fill(t,a):r.fill(t):r.fill(0),r}),!i.kStringMaxLength)try{i.kStringMaxLength=t.binding("buffer").kStringMaxLength}catch(d){}i.constants||(i.constants={MAX_LENGTH:i.kMaxLength},i.kStringMaxLength&&(i.constants.MAX_STRING_LENGTH=i.kStringMaxLength)),e.exports=i}).call(this,a(14))},function(e,t,a){"use strict";var r=a(131).Reporter,n=a(76).EncoderBuffer,c=a(76).DecoderBuffer,i=a(23),f=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],d=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(f);function o(e,t,a){var r={};this._baseState=r,r.name=a,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}e.exports=o;var s=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];o.prototype.clone=function(){var e=this._baseState,t={};s.forEach((function(a){t[a]=e[a]}));var a=new this.constructor(t.parent);return a._baseState=t,a},o.prototype._wrap=function(){var e=this._baseState;d.forEach((function(t){this[t]=function(){var a=new this.constructor(this);return e.children.push(a),a[t].apply(a,arguments)}}),this)},o.prototype._init=function(e){var t=this._baseState;i(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),i.equal(t.children.length,1,"Root node can have only one child")},o.prototype._useArgs=function(e){var t=this._baseState,a=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==a.length&&(i(null===t.children),t.children=a,a.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(i(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!==typeof e||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach((function(a){a==(0|a)&&(a|=0);var r=e[a];t[r]=a})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){o.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),f.forEach((function(e){o.prototype[e]=function(){var t=this._baseState,a=Array.prototype.slice.call(arguments);return i(null===t.tag),t.tag=e,this._useArgs(a),this}})),o.prototype.use=function(e){i(e);var t=this._baseState;return i(null===t.use),t.use=e,this},o.prototype.optional=function(){return this._baseState.optional=!0,this},o.prototype.def=function(e){var t=this._baseState;return i(null===t.default),t.default=e,t.optional=!0,this},o.prototype.explicit=function(e){var t=this._baseState;return i(null===t.explicit&&null===t.implicit),t.explicit=e,this},o.prototype.implicit=function(e){var t=this._baseState;return i(null===t.explicit&&null===t.implicit),t.implicit=e,this},o.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},o.prototype.key=function(e){var t=this._baseState;return i(null===t.key),t.key=e,this},o.prototype.any=function(){return this._baseState.any=!0,this},o.prototype.choice=function(e){var t=this._baseState;return i(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},o.prototype.contains=function(e){var t=this._baseState;return i(null===t.use),t.contains=e,this},o.prototype._decode=function(e,t){var a=this._baseState;if(null===a.parent)return e.wrapResult(a.children[0]._decode(e,t));var r,n=a.default,i=!0,f=null;if(null!==a.key&&(f=e.enterKey(a.key)),a.optional){var d=null;if(null!==a.explicit?d=a.explicit:null!==a.implicit?d=a.implicit:null!==a.tag&&(d=a.tag),null!==d||a.any){if(i=this._peekTag(e,d,a.any),e.isError(i))return i}else{var o=e.save();try{null===a.choice?this._decodeGeneric(a.tag,e,t):this._decodeChoice(e,t),i=!0}catch(x){i=!1}e.restore(o)}}if(a.obj&&i&&(r=e.enterObject()),i){if(null!==a.explicit){var s=this._decodeTag(e,a.explicit);if(e.isError(s))return s;e=s}var b=e.offset;if(null===a.use&&null===a.choice){var u;a.any&&(u=e.save());var l=this._decodeTag(e,null!==a.implicit?a.implicit:a.tag,a.any);if(e.isError(l))return l;a.any?n=e.raw(u):e=l}if(t&&t.track&&null!==a.tag&&t.track(e.path(),b,e.length,"tagged"),t&&t.track&&null!==a.tag&&t.track(e.path(),e.offset,e.length,"content"),a.any||(n=null===a.choice?this._decodeGeneric(a.tag,e,t):this._decodeChoice(e,t)),e.isError(n))return n;if(a.any||null!==a.choice||null===a.children||a.children.forEach((function(a){a._decode(e,t)})),a.contains&&("octstr"===a.tag||"bitstr"===a.tag)){var h=new c(n);n=this._getUse(a.contains,e._reporterState.obj)._decode(h,t)}}return a.obj&&i&&(n=e.leaveObject(r)),null===a.key||null===n&&!0!==i?null!==f&&e.exitKey(f):e.leaveKey(f,a.key,n),n},o.prototype._decodeGeneric=function(e,t,a){var r=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,r.args[0],a):/str$/.test(e)?this._decodeStr(t,e,a):"objid"===e&&r.args?this._decodeObjid(t,r.args[0],r.args[1],a):"objid"===e?this._decodeObjid(t,null,null,a):"gentime"===e||"utctime"===e?this._decodeTime(t,e,a):"null_"===e?this._decodeNull(t,a):"bool"===e?this._decodeBool(t,a):"objDesc"===e?this._decodeStr(t,e,a):"int"===e||"enum"===e?this._decodeInt(t,r.args&&r.args[0],a):null!==r.use?this._getUse(r.use,t._reporterState.obj)._decode(t,a):t.error("unknown tag: "+e)},o.prototype._getUse=function(e,t){var a=this._baseState;return a.useDecoder=this._use(e,t),i(null===a.useDecoder._baseState.parent),a.useDecoder=a.useDecoder._baseState.children[0],a.implicit!==a.useDecoder._baseState.implicit&&(a.useDecoder=a.useDecoder.clone(),a.useDecoder._baseState.implicit=a.implicit),a.useDecoder},o.prototype._decodeChoice=function(e,t){var a=this._baseState,r=null,n=!1;return Object.keys(a.choice).some((function(c){var i=e.save(),f=a.choice[c];try{var d=f._decode(e,t);if(e.isError(d))return!1;r={type:c,value:d},n=!0}catch(o){return e.restore(i),!1}return!0}),this),n?r:e.error("Choice not matched")},o.prototype._createEncoderBuffer=function(e){return new n(e,this.reporter)},o.prototype._encode=function(e,t,a){var r=this._baseState;if(null===r.default||r.default!==e){var n=this._encodeValue(e,t,a);if(void 0!==n&&!this._skipDefault(n,t,a))return n}},o.prototype._encodeValue=function(e,t,a){var n=this._baseState;if(null===n.parent)return n.children[0]._encode(e,t||new r);var c=null;if(this.reporter=t,n.optional&&void 0===e){if(null===n.default)return;e=n.default}var i=null,f=!1;if(n.any)c=this._createEncoderBuffer(e);else if(n.choice)c=this._encodeChoice(e,t);else if(n.contains)i=this._getUse(n.contains,a)._encode(e,t),f=!0;else if(n.children)i=n.children.map((function(a){if("null_"===a._baseState.tag)return a._encode(null,t,e);if(null===a._baseState.key)return t.error("Child should have a key");var r=t.enterKey(a._baseState.key);if("object"!==typeof e)return t.error("Child expected, but input is not object");var n=a._encode(e[a._baseState.key],t,e);return t.leaveKey(r),n}),this).filter((function(e){return e})),i=this._createEncoderBuffer(i);else if("seqof"===n.tag||"setof"===n.tag){if(!n.args||1!==n.args.length)return t.error("Too many args for : "+n.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var d=this.clone();d._baseState.implicit=null,i=this._createEncoderBuffer(e.map((function(a){var r=this._baseState;return this._getUse(r.args[0],e)._encode(a,t)}),d))}else null!==n.use?c=this._getUse(n.use,a)._encode(e,t):(i=this._encodePrimitive(n.tag,e),f=!0);if(!n.any&&null===n.choice){var o=null!==n.implicit?n.implicit:n.tag,s=null===n.implicit?"universal":"context";null===o?null===n.use&&t.error("Tag could be omitted only for .use()"):null===n.use&&(c=this._encodeComposite(o,f,s,i))}return null!==n.explicit&&(c=this._encodeComposite(n.explicit,!1,"context",c)),c},o.prototype._encodeChoice=function(e,t){var a=this._baseState,r=a.choice[e.type];return r||i(!1,e.type+" not found in "+JSON.stringify(Object.keys(a.choice))),r._encode(e.value,t)},o.prototype._encodePrimitive=function(e,t){var a=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&a.args)return this._encodeObjid(t,a.reverseArgs[0],a.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,a.args&&a.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},o.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},o.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}},function(e,t,a){"use strict";var r=a(7);function n(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function c(e,t){this.path=e,this.rethrow(t)}t.Reporter=n,n.prototype.isError=function(e){return e instanceof c},n.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},n.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},n.prototype.enterKey=function(e){return this._reporterState.path.push(e)},n.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},n.prototype.leaveKey=function(e,t,a){var r=this._reporterState;this.exitKey(e),null!==r.obj&&(r.obj[t]=a)},n.prototype.path=function(){return this._reporterState.path.join("/")},n.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},n.prototype.leaveObject=function(e){var t=this._reporterState,a=t.obj;return t.obj=e,a},n.prototype.error=function(e){var t,a=this._reporterState,r=e instanceof c;if(t=r?e:new c(a.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!a.options.partial)throw t;return r||a.errors.push(t),t},n.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},r(c,Error),c.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,c),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},function(e,t,a){"use strict";function r(e){var t={};return Object.keys(e).forEach((function(a){(0|a)==a&&(a|=0);var r=e[a];t[r]=a})),t}t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=r(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=r(t.tag)},function(e,t,a){"use strict";(function(e){var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){void 0===r&&(r=a),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,r){void 0===r&&(r=a),e[r]=t[a]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)"default"!==a&&Object.prototype.hasOwnProperty.call(e,a)&&r(t,e,a);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.rlphash=t.ripemd160FromArray=t.ripemd160FromString=t.ripemd160=t.sha256FromArray=t.sha256FromString=t.sha256=t.keccakFromArray=t.keccakFromHexString=t.keccakFromString=t.keccak256=t.keccak=void 0;var i=a(80),f=a(30),d=c(a(17)),o=a(48),s=a(94);t.keccak=function(e,t){switch(void 0===t&&(t=256),(0,s.assertIsBuffer)(e),t){case 224:return(0,i.keccak224)(e);case 256:return(0,i.keccak256)(e);case 384:return(0,i.keccak384)(e);case 512:return(0,i.keccak512)(e);default:throw new Error("Invald algorithm: keccak"+t)}};t.keccak256=function(e){return(0,t.keccak)(e)};t.keccakFromString=function(a,r){void 0===r&&(r=256),(0,s.assertIsString)(a);var n=e.from(a,"utf8");return(0,t.keccak)(n,r)};t.keccakFromHexString=function(e,a){return void 0===a&&(a=256),(0,s.assertIsHexString)(e),(0,t.keccak)((0,o.toBuffer)(e),a)};t.keccakFromArray=function(e,a){return void 0===a&&(a=256),(0,s.assertIsArray)(e),(0,t.keccak)((0,o.toBuffer)(e),a)};var b=function(e){return e=(0,o.toBuffer)(e),f("sha256").update(e).digest()};t.sha256=function(e){return(0,s.assertIsBuffer)(e),b(e)};t.sha256FromString=function(e){return(0,s.assertIsString)(e),b(e)};t.sha256FromArray=function(e){return(0,s.assertIsArray)(e),b(e)};var u=function(e,t){e=(0,o.toBuffer)(e);var a=f("rmd160").update(e).digest();return!0===t?(0,o.setLengthLeft)(a,32):a};t.ripemd160=function(e,t){return(0,s.assertIsBuffer)(e),u(e,t)};t.ripemd160FromString=function(e,t){return(0,s.assertIsString)(e),u(e,t)};t.ripemd160FromArray=function(e,t){return(0,s.assertIsArray)(e),u(e,t)};t.rlphash=function(e){return(0,t.keccak)(d.encode(e))}}).call(this,a(3).Buffer)},function(e,t,a){"use strict";(function(e){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.toType=t.TypeOutput=t.bnToRlp=t.bnToUnpaddedBuffer=t.bnToHex=void 0;var n,c=r(a(47)),i=a(64),f=a(48);function d(t){return(0,f.unpadBuffer)(t.toArrayLike(e))}t.bnToHex=function(e){return"0x"+e.toString(16)},t.bnToUnpaddedBuffer=d,t.bnToRlp=function(e){return d(e)},function(e){e[e.Number=0]="Number",e[e.BN=1]="BN",e[e.Buffer=2]="Buffer",e[e.PrefixedHexString=3]="PrefixedHexString"}(n=t.TypeOutput||(t.TypeOutput={})),t.toType=function(e,t){if(null===e)return null;if(void 0!==e){if("string"===typeof e&&!(0,i.isHexString)(e))throw new Error("A string must be provided with a 0x-prefix, given: "+e);if("number"===typeof e&&!Number.isSafeInteger(e))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");var a=(0,f.toBuffer)(e);if(t===n.Buffer)return a;if(t===n.BN)return new c.default(a);if(t===n.Number){var r=new c.default(a),d=new c.default(Number.MAX_SAFE_INTEGER.toString());if(r.gt(d))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return r.toNumber()}return"0x"+a.toString("hex")}}}).call(this,a(3).Buffer)},function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){void 0===r&&(r=a),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,r){void 0===r&&(r=a),e[r]=t[a]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)"default"!==a&&Object.prototype.hasOwnProperty.call(e,a)&&r(t,e,a);return n(t,e),t},i=this&&this.__values||function(e){var t="function"===typeof Symbol&&Symbol.iterator,a=t&&e[t],r=0;if(a)return a.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},f=this&&this.__read||function(e,t){var a="function"===typeof Symbol&&e[Symbol.iterator];if(!a)return e;var r,n,c=a.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=c.next()).done;)i.push(r.value)}catch(f){n={error:f}}finally{try{r&&!r.done&&(a=c.return)&&a.call(c)}finally{if(n)throw n.error}}return i};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseTransaction=void 0;var d=c(a(105)),o=a(46),s=a(65),b=function(){function e(e){this.cache={hash:void 0,dataFee:void 0},this.activeCapabilities=[],this.DEFAULT_CHAIN=d.Chain.Mainnet,this.DEFAULT_HARDFORK=d.Hardfork.Istanbul;var t=e.nonce,a=e.gasLimit,r=e.to,n=e.value,c=e.data,i=e.v,f=e.r,s=e.s,b=e.type;this._type=new o.BN((0,o.toBuffer)(b)).toNumber();var u=(0,o.toBuffer)(""===r?"0x":r),l=(0,o.toBuffer)(""===i?"0x":i),h=(0,o.toBuffer)(""===f?"0x":f),x=(0,o.toBuffer)(""===s?"0x":s);this.nonce=new o.BN((0,o.toBuffer)(""===t?"0x":t)),this.gasLimit=new o.BN((0,o.toBuffer)(""===a?"0x":a)),this.to=u.length>0?new o.Address(u):void 0,this.value=new o.BN((0,o.toBuffer)(""===n?"0x":n)),this.data=(0,o.toBuffer)(""===c?"0x":c),this.v=l.length>0?new o.BN(l):void 0,this.r=h.length>0?new o.BN(h):void 0,this.s=x.length>0?new o.BN(x):void 0,this._validateCannotExceedMaxInteger({nonce:this.nonce,gasLimit:this.gasLimit,value:this.value,r:this.r,s:this.s})}return Object.defineProperty(e.prototype,"transactionType",{get:function(){return this.type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),e.prototype.supports=function(e){return this.activeCapabilities.includes(e)},e.prototype.validate=function(e){void 0===e&&(e=!1);var t=[];return this.getBaseFee().gt(this.gasLimit)&&t.push("gasLimit is too low. given "+this.gasLimit+", need at least "+this.getBaseFee()),this.isSigned()&&!this.verifySignature()&&t.push("Invalid Signature"),e?t:0===t.length},e.prototype.getBaseFee=function(){var e=this.getDataFee().addn(this.common.param("gasPrices","tx"));return this.common.gteHardfork("homestead")&&this.toCreationAddress()&&e.iaddn(this.common.param("gasPrices","txCreation")),e},e.prototype.getDataFee=function(){for(var e=this.common.param("gasPrices","txDataZero"),t=this.common.param("gasPrices","txDataNonZero"),a=0,r=0;r-1&&this.activeCapabilities.splice(b,1)}return d},e.prototype._getCommon=function(e,t){var a;if(t){var r=new o.BN((0,o.toBuffer)(t));if(e){if(!e.chainIdBN().eq(r)){var n=this._errorMsg("The chain ID does not match the chain ID of Common");throw new Error(n)}return e.copy()}return d.default.isSupportedChainId(r)?new d.default({chain:r,hardfork:this.DEFAULT_HARDFORK}):d.default.forCustomChain(this.DEFAULT_CHAIN,{name:"custom-chain",networkId:r,chainId:r},this.DEFAULT_HARDFORK)}return null!==(a=null===e||void 0===e?void 0:e.copy())&&void 0!==a?a:new d.default({chain:this.DEFAULT_CHAIN,hardfork:this.DEFAULT_HARDFORK})},e.prototype._validateCannotExceedMaxInteger=function(e,t){var a,r;void 0===t&&(t=53);try{for(var n=i(Object.entries(e)),c=n.next();!c.done;c=n.next()){var d=f(c.value,2),s=d[0],b=d[1];if(53===t){if(null===b||void 0===b?void 0:b.gt(o.MAX_INTEGER)){var u=this._errorMsg(s+" cannot exceed MAX_INTEGER, given "+b);throw new Error(u)}}else{if(256!==t){u=this._errorMsg("unimplemented bits value");throw new Error(u)}if(null===b||void 0===b?void 0:b.gte(o.TWO_POW256)){var u=this._errorMsg(s+" must be less than 2^256, given "+b);throw new Error(u)}}}}catch(l){a={error:l}}finally{try{c&&!c.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}},e.prototype._getSharedErrorPostfix=function(){var e="";try{e=this.isSigned()?(0,o.bufferToHex)(this.hash()):"not available (unsigned)"}catch(n){e="error"}var t="";try{t=this.isSigned().toString()}catch(n){e="error"}var a="";try{a=this.common.hardfork()}catch(n){a="error"}var r="tx type="+this.type+" hash="+e+" nonce="+this.nonce+" value="+this.value+" ";return r+="signed="+t+" hf="+a},e}();t.BaseTransaction=b},function(e,t,a){"use strict";(function(e){var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){void 0===r&&(r=a),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,r){void 0===r&&(r=a),e[r]=t[a]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)"default"!==a&&Object.prototype.hasOwnProperty.call(e,a)&&r(t,e,a);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.rlphash=t.ripemd160FromArray=t.ripemd160FromString=t.ripemd160=t.sha256FromArray=t.sha256FromString=t.sha256=t.keccakFromArray=t.keccakFromHexString=t.keccakFromString=t.keccak256=t.keccak=void 0;var i=a(80),f=a(30),d=c(a(17)),o=a(50),s=a(95);t.keccak=function(e,t){switch(void 0===t&&(t=256),(0,s.assertIsBuffer)(e),t){case 224:return(0,i.keccak224)(e);case 256:return(0,i.keccak256)(e);case 384:return(0,i.keccak384)(e);case 512:return(0,i.keccak512)(e);default:throw new Error("Invald algorithm: keccak"+t)}};t.keccak256=function(e){return(0,t.keccak)(e)};t.keccakFromString=function(a,r){void 0===r&&(r=256),(0,s.assertIsString)(a);var n=e.from(a,"utf8");return(0,t.keccak)(n,r)};t.keccakFromHexString=function(e,a){return void 0===a&&(a=256),(0,s.assertIsHexString)(e),(0,t.keccak)((0,o.toBuffer)(e),a)};t.keccakFromArray=function(e,a){return void 0===a&&(a=256),(0,s.assertIsArray)(e),(0,t.keccak)((0,o.toBuffer)(e),a)};var b=function(e){return e=(0,o.toBuffer)(e),f("sha256").update(e).digest()};t.sha256=function(e){return(0,s.assertIsBuffer)(e),b(e)};t.sha256FromString=function(e){return(0,s.assertIsString)(e),b(e)};t.sha256FromArray=function(e){return(0,s.assertIsArray)(e),b(e)};var u=function(e,t){e=(0,o.toBuffer)(e);var a=f("rmd160").update(e).digest();return!0===t?(0,o.setLengthLeft)(a,32):a};t.ripemd160=function(e,t){return(0,s.assertIsBuffer)(e),u(e,t)};t.ripemd160FromString=function(e,t){return(0,s.assertIsString)(e),u(e,t)};t.ripemd160FromArray=function(e,t){return(0,s.assertIsArray)(e),u(e,t)};t.rlphash=function(e){return(0,t.keccak)(d.encode(e))}}).call(this,a(3).Buffer)},function(e,t,a){"use strict";(function(e){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.toType=t.TypeOutput=t.bnToRlp=t.bnToUnpaddedBuffer=t.bnToHex=void 0;var n,c=r(a(49)),i=a(66),f=a(50);function d(t){return(0,f.unpadBuffer)(t.toArrayLike(e))}t.bnToHex=function(e){return"0x"+e.toString(16)},t.bnToUnpaddedBuffer=d,t.bnToRlp=function(e){return d(e)},function(e){e[e.Number=0]="Number",e[e.BN=1]="BN",e[e.Buffer=2]="Buffer",e[e.PrefixedHexString=3]="PrefixedHexString"}(n=t.TypeOutput||(t.TypeOutput={})),t.toType=function(e,t){if(null===e)return null;if(void 0!==e){if("string"===typeof e&&!(0,i.isHexString)(e))throw new Error("A string must be provided with a 0x-prefix, given: "+e);if("number"===typeof e&&!Number.isSafeInteger(e))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");var a=(0,f.toBuffer)(e);if(t===n.Buffer)return a;if(t===n.BN)return new c.default(a);if(t===n.Number){var r=new c.default(a),d=new c.default(Number.MAX_SAFE_INTEGER.toString());if(r.gt(d))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return r.toNumber()}return"0x"+a.toString("hex")}}}).call(this,a(3).Buffer)},function(e,t,a){"use strict";(function(e){var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){void 0===r&&(r=a),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,r){void 0===r&&(r=a),e[r]=t[a]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)"default"!==a&&Object.prototype.hasOwnProperty.call(e,a)&&r(t,e,a);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.rlphash=t.ripemd160FromArray=t.ripemd160FromString=t.ripemd160=t.sha256FromArray=t.sha256FromString=t.sha256=t.keccakFromArray=t.keccakFromHexString=t.keccakFromString=t.keccak256=t.keccak=void 0;var i=a(80),f=a(30),d=c(a(17)),o=a(52),s=a(96);t.keccak=function(e,t){switch(void 0===t&&(t=256),(0,s.assertIsBuffer)(e),t){case 224:return(0,i.keccak224)(e);case 256:return(0,i.keccak256)(e);case 384:return(0,i.keccak384)(e);case 512:return(0,i.keccak512)(e);default:throw new Error("Invald algorithm: keccak"+t)}};t.keccak256=function(e){return(0,t.keccak)(e)};t.keccakFromString=function(a,r){void 0===r&&(r=256),(0,s.assertIsString)(a);var n=e.from(a,"utf8");return(0,t.keccak)(n,r)};t.keccakFromHexString=function(e,a){return void 0===a&&(a=256),(0,s.assertIsHexString)(e),(0,t.keccak)((0,o.toBuffer)(e),a)};t.keccakFromArray=function(e,a){return void 0===a&&(a=256),(0,s.assertIsArray)(e),(0,t.keccak)((0,o.toBuffer)(e),a)};var b=function(e){return e=(0,o.toBuffer)(e),f("sha256").update(e).digest()};t.sha256=function(e){return(0,s.assertIsBuffer)(e),b(e)};t.sha256FromString=function(e){return(0,s.assertIsString)(e),b(e)};t.sha256FromArray=function(e){return(0,s.assertIsArray)(e),b(e)};var u=function(e,t){e=(0,o.toBuffer)(e);var a=f("rmd160").update(e).digest();return!0===t?(0,o.setLengthLeft)(a,32):a};t.ripemd160=function(e,t){return(0,s.assertIsBuffer)(e),u(e,t)};t.ripemd160FromString=function(e,t){return(0,s.assertIsString)(e),u(e,t)};t.ripemd160FromArray=function(e,t){return(0,s.assertIsArray)(e),u(e,t)};t.rlphash=function(e){return(0,t.keccak)(d.encode(e))}}).call(this,a(3).Buffer)},function(e,t,a){"use strict";(function(e){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.toType=t.TypeOutput=t.bnToRlp=t.bnToUnpaddedBuffer=t.bnToHex=void 0;var n,c=r(a(51)),i=a(67),f=a(52);function d(t){return(0,f.unpadBuffer)(t.toArrayLike(e))}t.bnToHex=function(e){return"0x"+e.toString(16)},t.bnToUnpaddedBuffer=d,t.bnToRlp=function(e){return d(e)},function(e){e[e.Number=0]="Number",e[e.BN=1]="BN",e[e.Buffer=2]="Buffer",e[e.PrefixedHexString=3]="PrefixedHexString"}(n=t.TypeOutput||(t.TypeOutput={})),t.toType=function(e,t){if(null===e)return null;if(void 0!==e){if("string"===typeof e&&!(0,i.isHexString)(e))throw new Error("A string must be provided with a 0x-prefix, given: "+e);if("number"===typeof e&&!Number.isSafeInteger(e))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");var a=(0,f.toBuffer)(e);if(t===n.Buffer)return a;if(t===n.BN)return new c.default(a);if(t===n.Number){var r=new c.default(a),d=new c.default(Number.MAX_SAFE_INTEGER.toString());if(r.gt(d))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return r.toNumber()}return"0x"+a.toString("hex")}}}).call(this,a(3).Buffer)},function(e,t,a){(function(e){var r=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),a={},r=0;r=c)return e;switch(e){case"%s":return String(r[a++]);case"%d":return Number(r[a++]);case"%j":try{return JSON.stringify(r[a++])}catch(t){return"[Circular]"}default:return e}})),d=r[a];a=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(a)?r.showHidden=a:a&&t._extend(r,a),v(r.showHidden)&&(r.showHidden=!1),v(r.depth)&&(r.depth=2),v(r.colors)&&(r.colors=!1),v(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=d),s(r,e,r.depth)}function d(e,t){var a=f.styles[t];return a?"\x1b["+f.colors[a][0]+"m"+e+"\x1b["+f.colors[a][1]+"m":e}function o(e,t){return e}function s(e,a,r){if(e.customInspect&&a&&M(a.inspect)&&a.inspect!==t.inspect&&(!a.constructor||a.constructor.prototype!==a)){var n=a.inspect(r,e);return m(n)||(n=s(e,n,r)),n}var c=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(m(t)){var a="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(a,"string")}if(p(t))return e.stylize(""+t,"number");if(h(t))return e.stylize(""+t,"boolean");if(x(t))return e.stylize("null","null")}(e,a);if(c)return c;var i=Object.keys(a),f=function(e){var t={};return e.forEach((function(e,a){t[e]=!0})),t}(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(a)),_(a)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return b(a);if(0===i.length){if(M(a)){var d=a.name?": "+a.name:"";return e.stylize("[Function"+d+"]","special")}if(g(a))return e.stylize(RegExp.prototype.toString.call(a),"regexp");if(w(a))return e.stylize(Date.prototype.toString.call(a),"date");if(_(a))return b(a)}var o,y="",k=!1,S=["{","}"];(l(a)&&(k=!0,S=["[","]"]),M(a))&&(y=" [Function"+(a.name?": "+a.name:"")+"]");return g(a)&&(y=" "+RegExp.prototype.toString.call(a)),w(a)&&(y=" "+Date.prototype.toUTCString.call(a)),_(a)&&(y=" "+b(a)),0!==i.length||k&&0!=a.length?r<0?g(a)?e.stylize(RegExp.prototype.toString.call(a),"regexp"):e.stylize("[Object]","special"):(e.seen.push(a),o=k?function(e,t,a,r,n){for(var c=[],i=0,f=t.length;i=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return a[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+a[1];return a[0]+t+" "+e.join(", ")+" "+a[1]}(o,y,S)):S[0]+y+S[1]}function b(e){return"["+Error.prototype.toString.call(e)+"]"}function u(e,t,a,r,n,c){var i,f,d;if((d=Object.getOwnPropertyDescriptor(t,n)||{value:t[n]}).get?f=d.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):d.set&&(f=e.stylize("[Setter]","special")),O(r,n)||(i="["+n+"]"),f||(e.seen.indexOf(d.value)<0?(f=x(a)?s(e,d.value,null):s(e,d.value,a-1)).indexOf("\n")>-1&&(f=c?f.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+f.split("\n").map((function(e){return" "+e})).join("\n")):f=e.stylize("[Circular]","special")),v(i)){if(c&&n.match(/^\d+$/))return f;(i=JSON.stringify(""+n)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(i=i.substr(1,i.length-2),i=e.stylize(i,"name")):(i=i.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),i=e.stylize(i,"string"))}return i+": "+f}function l(e){return Array.isArray(e)}function h(e){return"boolean"===typeof e}function x(e){return null===e}function p(e){return"number"===typeof e}function m(e){return"string"===typeof e}function v(e){return void 0===e}function g(e){return y(e)&&"[object RegExp]"===k(e)}function y(e){return"object"===typeof e&&null!==e}function w(e){return y(e)&&"[object Date]"===k(e)}function _(e){return y(e)&&("[object Error]"===k(e)||e instanceof Error)}function M(e){return"function"===typeof e}function k(e){return Object.prototype.toString.call(e)}function S(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(a){if(v(c)&&(c=Object({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).NODE_DEBUG||""),a=a.toUpperCase(),!i[a])if(new RegExp("\\b"+a+"\\b","i").test(c)){var r=e.pid;i[a]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",a,r,e)}}else i[a]=function(){};return i[a]},t.inspect=f,f.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},f.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=l,t.isBoolean=h,t.isNull=x,t.isNullOrUndefined=function(e){return null==e},t.isNumber=p,t.isString=m,t.isSymbol=function(e){return"symbol"===typeof e},t.isUndefined=v,t.isRegExp=g,t.isObject=y,t.isDate=w,t.isError=_,t.isFunction=M,t.isPrimitive=function(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e},t.isBuffer=a(284);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(){var e=new Date,t=[S(e.getHours()),S(e.getMinutes()),S(e.getSeconds())].join(":");return[e.getDate(),A[e.getMonth()],t].join(" ")}function O(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",E(),t.format.apply(t,arguments))},t.inherits=a(285),t._extend=function(e,t){if(!t||!y(t))return e;for(var a=Object.keys(t),r=a.length;r--;)e[a[r]]=t[a[r]];return e};var P="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function T(e,t){if(!e){var a=new Error("Promise was rejected with a falsy value");a.reason=e,e=a}return t(e)}t.promisify=function(e){if("function"!==typeof e)throw new TypeError('The "original" argument must be of type Function');if(P&&e[P]){var t;if("function"!==typeof(t=e[P]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,P,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,a,r=new Promise((function(e,r){t=e,a=r})),n=[],c=0;c=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,f=!1;return{s:function(){a=a.call(e)},n:function(){var e=a.next();return i=e.done,e},e:function(e){f=!0,c=e},f:function(){try{i||null==a.return||a.return()}finally{if(f)throw c}}}}function M(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&k(e,t)}function k(e,t){return k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},k(e,t)}function S(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=O(e);if(t){var n=O(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return A(this,a)}}function A(e,t){return!t||"object"!==H(t)&&"function"!==typeof t?E(e):t}function E(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}function P(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function T(e){for(var t=1;t=0||(n[a]=e[a]);return n}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=e&&("undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==a)return;var r,n,c=[],i=!0,f=!1;try{for(a=a.call(e);!(i=(r=a.next()).done)&&(c.push(r.value),!t||c.length!==t);i=!0);}catch(d){f=!0,n=d}finally{try{i||null==a.return||a.return()}finally{if(f)throw n}}return c}(e,t)||L(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t,a,r,n,c,i){try{var f=e[c](i),d=f.value}catch(o){return void a(o)}f.done?t(d):Promise.resolve(d).then(r,n)}function I(e){return function(){var t=this,a=arguments;return new Promise((function(r,n){var c=e.apply(t,a);function i(e){j(c,r,n,i,f,"next",e)}function f(e){j(c,r,n,i,f,"throw",e)}i(void 0)}))}}function N(e){return function(e){if(Array.isArray(e))return U(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||L(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(e,t){if(e){if("string"===typeof e)return U(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?U(e,t):void 0}}function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=new Array(t);a1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:null;F(this,e),this.a=t,this.e=this.n=null}return z(e,[{key:"m",value:function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.e||(this.e=be(t.nodeName),this.t=t,this.h(e)),this.i(a)}},{key:"h",value:function(e){this.e.innerHTML=e,this.n=Array.from(this.e.childNodes)}},{key:"i",value:function(e){for(var t=0;t>>0}function Ee(e,t,a,r,n,c,i){for(var f=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,d=16.666/r,o="{\n",s=0;s<=1;s+=d){var b=t+(a-t)*c(s);o+=100*s+"%{".concat(i(b,1-b),"}\n")}var u=o+"100% {".concat(i(a,1-a),"}\n}"),l="__svelte_".concat(Ae(u),"_").concat(f),h=e.ownerDocument;ke.add(h);var x=h.__svelte_stylesheet||(h.__svelte_stylesheet=h.head.appendChild(be("style")).sheet),p=h.__svelte_rules||(h.__svelte_rules={});p[l]||(p[l]=!0,x.insertRule("@keyframes ".concat(l," ").concat(u),x.cssRules.length));var m=e.style.animation||"";return e.style.animation="".concat(m?"".concat(m,", "):"").concat(l," ").concat(r,"ms linear ").concat(n,"ms 1 both"),Se+=1,l}function Oe(e,t){var a=(e.style.animation||"").split(", "),r=a.filter(t?function(e){return e.indexOf(t)<0}:function(e){return-1===e.indexOf("__svelte")}),n=a.length-r.length;n&&(e.style.animation=r.join(", "),(Se-=n)||ne((function(){Se||(ke.forEach((function(e){for(var t=e.__svelte_stylesheet,a=t.cssRules.length;a--;)t.deleteRule(a);e.__svelte_rules={}})),ke.clear())})))}function Pe(e){_e=e}function Te(){if(!_e)throw new Error("Function called outside component initialization");return _e}function Be(e){Te().$$.on_mount.push(e)}function Re(e){Te().$$.on_destroy.push(e)}var Ce=[],je=[],Ie=[],Ne=[],Le=Promise.resolve(),Ue=!1;function Fe(e){Ie.push(e)}var De,ze=!1,He=new Set;function qe(){if(!ze){ze=!0;do{for(var e=0;e=v)return x(1,0),Ve(e,!0,"end"),d(),i=!1;if(t>=m){var a=l((t-m)/b);x(a,1-a)}}return i}))}var s=!1;return{start:function(){s||(Oe(e),G(c)?(c=c(),We().then(o)):o())},invalidate:function(){s=!1},end:function(){i&&(d(),i=!1)}}}function tt(e,t,a,r){var n=t(e,a),c=r?0:1,i=null,f=null,d=null;function o(){d&&Oe(e,d)}function s(e,t){var a=e.b-c;return t*=Math.abs(a),{a:c,b:e.b,d:a,duration:t,start:e.start,end:e.start+t,group:e.group}}function b(t){var a=n||Qe,r=a.delay,b=void 0===r?0:r,u=a.duration,l=void 0===u?300:u,h=a.easing,x=void 0===h?K:h,p=a.tick,m=void 0===p?q:p,v=a.css,g={start:re()+b,b:t};t||(g.group=$e,$e.r+=1),i||f?f=g:(v&&(o(),d=Ee(e,c,t,l,b,x,v)),t&&m(0,1),i=s(g,l),Fe((function(){return Ve(e,t,"start")})),fe((function(t){if(f&&t>f.start&&(i=s(f,l),f=null,Ve(e,i.b,"start"),v&&(o(),d=Ee(e,c,i.b,i.duration,0,x,n.css))),i)if(t>=i.end)m(c=i.b,1-c),Ve(e,i.b,"end"),f||(i.b?o():--i.group.r||$(i.group.c)),i=null;else if(t>=i.start){var a=t-i.start;c=i.a+i.d*x(a/i.duration),m(c,1-c)}return!(!i&&!f)})))}return{run:function(e){G(n)?We().then((function(){n=n(),b(e)})):b(e)},end:function(){o(),i=f=null}}}function at(e,t){Ye(e,1,1,(function(){t.delete(e.key)}))}function rt(e,t,a,r,n,c,i,f,d,o,s,b){for(var u=e.length,l=c.length,h=u,x={};h--;)x[e[h].key]=h;var p=[],m=new Map,v=new Map;for(h=l;h--;){var g=b(n,c,h),y=a(g),w=i.get(y);w?r&&w.p(g,t):(w=o(y,g)).c(),m.set(y,p[h]=w),y in x&&v.set(y,Math.abs(h-x[y]))}var _=new Set,M=new Set;function k(e){Xe(e,1),e.m(f,s),i.set(e.key,e),s=e.first,l--}for(;u&&l;){var S=p[l-1],A=e[u-1],E=S.key,O=A.key;S===A?(s=S.first,u--,l--):m.has(O)?!i.has(E)||_.has(E)?k(S):M.has(O)?u--:v.get(E)>v.get(O)?(M.add(E),k(S)):(_.add(O),u--):(d(A,i),u--)}for(;u--;){var P=e[u];m.has(P.key)||d(P,i)}for(;l;)k(p[l-1]);return p}function nt(e){e&&e.c()}function ct(e,t,a,r){var n=e.$$,c=n.fragment,i=n.on_mount,f=n.on_destroy,d=n.after_update;c&&c.m(t,a),r||Fe((function(){var t=i.map(W).filter(G);f?f.push.apply(f,N(t)):$(t),e.$$.on_mount=[]})),d.forEach(Fe)}function it(e,t){var a=e.$$;null!==a.fragment&&($(a.on_destroy),a.fragment&&a.fragment.d(t),a.on_destroy=a.fragment=null,a.ctx=[])}function ft(e,t){-1===e.$$.dirty[0]&&(Ce.push(e),Ue||(Ue=!0,Le.then(qe)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<6&&void 0!==arguments[6]?arguments[6]:[-1],f=_e;Pe(e);var d=e.$$={fragment:null,ctx:null,props:c,update:q,not_equal:n,bound:V(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(f?f.$$.context:t.context||[]),callbacks:V(),dirty:i,skip_bound:!1},o=!1;if(d.ctx=a?a(e,t.props||{},(function(t,a){var r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:a;return d.ctx&&n(d.ctx[t],d.ctx[t]=r)&&(!d.skip_bound&&d.bound[t]&&d.bound[t](r),o&&ft(e,t)),a})):[],d.update(),o=!0,$(d.before_update),d.fragment=!!r&&r(d.ctx),t.target){if(t.hydrate){var s=ve(t.target);d.fragment&&d.fragment.l(s),s.forEach(se)}else d.fragment&&d.fragment.c();t.intro&&Xe(e.$$.fragment),ct(e,t.target,t.anchor,t.customElement),qe()}Pe(f)}var ot=function(){function e(){F(this,e)}return z(e,[{key:"$destroy",value:function(){it(this,1),this.$destroy=q}},{key:"$on",value:function(e,t){var a=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return a.push(t),function(){var e=a.indexOf(t);-1!==e&&a.splice(e,1)}}},{key:"$set",value:function(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}]),e}(),st=[];function bt(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:q,r=[];function n(a){if(Z(e,a)&&(e=a,t)){for(var n=!st.length,c=0;c1&&void 0!==arguments[1]?arguments[1]:q,f=[c,i];return r.push(f),1===r.length&&(t=a(n)||q),c(e),function(){var e=r.indexOf(f);-1!==e&&r.splice(e,1),0===r.length&&(t(),t=null)}}return{set:n,update:c,subscribe:i}}function ut(e,t,a){var r,n=!Array.isArray(e),c=n?[e]:e,i=t.length<2;return r=function(e){var a=!1,r=[],f=0,d=q,o=function(){if(!f){d();var a=t(n?r[0]:r,e);i?e(a):d=G(a)?a:q}},s=c.map((function(e,t){return J(e,(function(e){r[t]=e,f&=~(1<1&&void 0!==arguments[1]?arguments[1]:{},a=t.delay,r=void 0===a?0:a,n=t.duration,c=void 0===n?400:n,i=t.easing,f=void 0===i?K:i,d=+getComputedStyle(e).opacity;return{delay:r,duration:c,easing:f,css:function(e){return"opacity: ".concat(e*d)}}}var ht,xt="1.35.4";function pt(){if(!ht){var e=X(Wt),t=e.dappId,a=e.networkId,r=e.apiUrl;t&&function(e,t,a){ht=new f.a({dappId:e,networkId:t,name:"Onboard",appVersion:xt,apiUrl:a})}(t,a,r)}return ht}function mt(e){return new Promise((function(t,a){var r={jsonrpc:"2.0",method:"net_version",params:[],id:42};if(e.chainId)return t(Number(e.chainId));var n=function(e,r){e&&a(e);var n=r&&r.result;t(n&&Number(n))};"function"===typeof e.sendAsync?e.sendAsync(r,n):"function"===typeof e.send?e.send(r,n):t(null)}))}function vt(e){return new Promise((function(t,a){var r={jsonrpc:"2.0",method:"eth_accounts",params:[],id:42};if(e.request)return e.request(r).then((function(e){return t(e[0])}));var n=function(e,r){e&&a(e);var n=r&&r.result&&r.result[0];t(n)};"function"===typeof e.sendAsync?e.sendAsync(r,n):"function"===typeof e.send?e.send(r,n):t(null)}))}function gt(){return gt=I(n.a.mark((function e(t,r){var c,i,f,d,o,s,b,u,l,h,x;return n.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=X(Wt),i=c.networkId,e.prev=1,e.next=4,Promise.all([a.e(8),a.e(32)]).then(a.t.bind(null,575,7));case 4:return f=e.sent,d=f.default,o=f.getEnsAddress,s=new d({provider:t,ensAddress:o(i)}),e.next=10,s.getName(r);case 10:return b=e.sent,u=b.name,e.next=14,s.name(u);case 14:return l=e.sent,e.next=17,null===l||void 0===l?void 0:l.getContent();case 17:return h=e.sent,e.next=20,null===l||void 0===l?void 0:l.getText("avatar");case 20:return x=e.sent,e.abrupt("return",{name:u,avatar:x,contentHash:h,getText:null===l||void 0===l?void 0:l.getText.bind(l)});case 24:return e.prev=24,e.t0=e.catch(1),console.error(e.t0),e.abrupt("return",{});case 28:case"end":return e.stop()}}),e,null,[[1,24]])}))),gt.apply(this,arguments)}function yt(e,t){return new Promise(function(){var a=I(n.a.mark((function a(r,c){var f,d,o;return n.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(a.t0=t,a.t0){a.next=5;break}return a.next=4,vt(e);case 4:a.t0=a.sent;case 5:if(f=a.t0){a.next=9;break}return r(null),a.abrupt("return");case 9:if(d={jsonrpc:"2.0",method:"eth_getBalance",params:[f,"latest"],id:42},!e.request){a.next=12;break}return a.abrupt("return",e.request(d).then((function(e){return e?new i.a(e).toString(10):null})).then(r));case 12:o=function(e,t){e&&c(e);var a=t&&t.result;r(a&&new i.a(a).toString(10))},"function"===typeof e.sendAsync?e.sendAsync(d,o):"function"===typeof e.send?e.send(d,o):r(null);case 14:case"end":return a.stop()}}),a)})));return function(e,t){return a.apply(this,arguments)}}())}function wt(e){e.autoRefreshOnNetworkChange=!1;var t="function"===typeof e.on,a={accountsChanged:null,networkChanged:null,chainChanged:null};return{address:t?{onChange:function(t){a.accountsChanged=function(e){t(e&&e[0])},vt(e).then(t),e.on("accountsChanged",a.accountsChanged)}}:{get:function(){return vt(e)}},network:t?{onChange:function(t){a.networkChanged=function(e){return t(e&&Number(e))},a.chainChanged=a.networkChanged.bind({}),mt(e).then(t),e.on("networkChanged",a.networkChanged),e.on("chainChanged",a.chainChanged)}}:{get:function(){return mt(e)}},balance:{get:function(){return yt(e)}},connect:function(){var t=I(n.a.mark((function t(){var a,r;return n.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!e.request){t.next=8;break}return t.next=4,e.request({method:"eth_requestAccounts"});case 4:return a=t.sent,t.abrupt("return",a);case 8:return t.next=10,e.enable();case 10:return r=t.sent,t.abrupt("return",r);case 12:t.next=17;break;case 14:throw t.prev=14,t.t0=t.catch(0),{message:"This dapp requires access to your account information."};case 17:case"end":return t.stop()}}),t,null,[[0,14]])})));return function(){return t.apply(this,arguments)}}(),disconnect:function(){if(null!==e&&void 0!==e&&e.removeListener)for(var t=0,r=Object.entries(a);t25e3)return function(){};var f=function(e){var t,a=new Promise((function(a,r){t=r,e.then(a).catch(r)}));return a.cancel=function(){t("canceled")},a}(t());return Vt.balance=f,f.then(function(){var t=I(n.a.mark((function t(r){return n.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r!==c||!i){t.next=6;break}return t.next=3,St(350);case 3:Xt(e),t.next=8;break;case 6:Vt.balance=null,a(r);case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(){Vt.balance=null})),St(r).then((function(){f.cancel()})),function(){return f.cancel()}}function Yt(e){var t,a,r,n;return{c:function(){t=ue("svg"),a=ue("g"),r=ue("path"),n=ue("path"),me(r,"d","m1.35473654 25.2695268\n 41.68515786-24.21771792c.5647044-.32807482 1.2619836-.32807795\n 1.8266909-.00000821l19.9275013\n 11.57698923c.5635938.3274228.9088026.9314826.9048094\n 1.5832707l-.1501112 24.5017756 20.8472716\n 12.1113348c.5601525.3254236.9048434.9243111.9048434\n 1.5721317v48.4560123c0 .647825-.3446953 1.246715-.9048537\n 1.572138l-41.6835092\n 24.215895c-.5655731.328567-1.2640448.328023-1.8291052-.001426l-41.5311197-24.21401c-.5587764-.325785-.90240476-.923899-.90240476-1.570712v-49.505258-24.5082917c0-.6478147.34468473-1.2466978.9048293-1.5721235z"),me(n,"d","m22.0428451 114.442824v-25.2731141l-21.59284788-12.5449388\n 42.75014288 24.6551909c.5648507.325765 1.260898.324109\n 1.8241926-.004339l42.2766571-24.6508519-21.5955473\n 12.6370084v-24.2248276c0-.6488012-.3457266-1.2484405-.9072187-1.5735092l-20.9222804-12.1126883\n 21.6729314-12.6370084-42.4525958\n 24.4763352c-.5545159.3197099-1.236865.3218902-1.7934127.0057303l-20.85286908-11.8459598"),ye(a,"stroke","#000"),ye(a,"stroke-width","2.70793"),ye(a,"fill","none"),ye(a,"fill-rule","evenodd"),ye(a,"stroke-linecap","round"),ye(a,"stroke-linejoin","round"),me(a,"transform","translate(1.818182 .909091)"),me(t,"height","130"),me(t,"viewBox","0 0 91 130"),me(t,"width","91"),me(t,"xmlns","http://www.w3.org/2000/svg"),me(t,"class","svelte-15m9up6")},m:function(e,c){oe(e,t,c),de(t,a),de(a,r),de(a,n)},d:function(e){e&&se(t)}}}function Qt(e){var t,a,r,n;return{c:function(){t=ue("svg"),a=ue("g"),r=ue("path"),n=ue("path"),me(r,"d","m1.35473654 25.2695268\n 41.68515786-24.21771792c.5647044-.32807482 1.2619836-.32807795\n 1.8266909-.00000821l19.9275013\n 11.57698923c.5635938.3274228.9088026.9314826.9048094\n 1.5832707l-.1501112 24.5017756 20.8472716\n 12.1113348c.5601525.3254236.9048434.9243111.9048434\n 1.5721317v48.4560123c0 .647825-.3446953 1.246715-.9048537\n 1.572138l-41.6835092\n 24.215895c-.5655731.328567-1.2640448.328023-1.8291052-.001426l-41.5311197-24.21401c-.5587764-.325785-.90240476-.923899-.90240476-1.570712v-49.505258-24.5082917c0-.6478147.34468473-1.2466978.9048293-1.5721235z"),me(n,"d","m22.0428451 114.442824v-25.2731141l-21.59284788-12.5449388\n 42.75014288 24.6551909c.5648507.325765 1.260898.324109\n 1.8241926-.004339l42.2766571-24.6508519-21.5955473\n 12.6370084v-24.2248276c0-.6488012-.3457266-1.2484405-.9072187-1.5735092l-20.9222804-12.1126883\n 21.6729314-12.6370084-42.4525958\n 24.4763352c-.5545159.3197099-1.236865.3218902-1.7934127.0057303l-20.85286908-11.8459598"),ye(a,"stroke","#fff"),ye(a,"stroke-width","2.70793"),ye(a,"fill","none"),ye(a,"fill-rule","evenodd"),ye(a,"stroke-linecap","round"),ye(a,"stroke-linejoin","round"),me(a,"transform","translate(1.818182 .909091)"),me(t,"height","130"),me(t,"viewBox","0 0 91 130"),me(t,"width","91"),me(t,"xmlns","http://www.w3.org/2000/svg"),me(t,"class","svelte-15m9up6")},m:function(e,c){oe(e,t,c),de(t,a),de(a,r),de(a,n)},d:function(e){e&&se(t)}}}function ea(e){var t,a,r,n,c,i,f;function d(e,t){return e[0]?Qt:Yt}var o=d(e),s=o(e);return{c:function(){t=be("div"),(a=be("span")).textContent="Powered by",r=he(),n=be("a"),(c=be("span")).textContent="Blocknative",i=he(),f=be("div"),s.c(),me(a,"class","svelte-15m9up6"),me(c,"class","svelte-15m9up6"),me(f,"class","bn-logo svelte-15m9up6"),me(n,"href","https://hubs.ly/H0qh2g10"),me(n,"class","bn-onboard-clickable svelte-15m9up6"),me(n,"target","_blank"),me(n,"rel","noopener noreferrer"),me(t,"class","bn-branding svelte-15m9up6")},m:function(e,d){oe(e,t,d),de(t,a),de(t,r),de(t,n),de(n,c),de(n,i),de(n,f),s.m(f,null)},p:function(e,t){C(t,1)[0];o!==(o=d(e))&&(s.d(1),(s=o(e))&&(s.c(),s.m(f,null)))},i:q,o:q,d:function(e){e&&se(t),s.d()}}}function ta(e,t,a){var r=t.darkMode;return e.$$set=function(e){"darkMode"in e&&a(0,r=e.darkMode)},[r]}var aa=function(e){M(a,e);var t=S(a);function a(e){var r;return F(this,a),r=t.call(this),document.getElementById("svelte-15m9up6-style")||function(){var e=be("style");e.id="svelte-15m9up6-style",e.textContent=".bn-branding.svelte-15m9up6{font-size:0.75rem;font-family:inherit;margin:0.4rem;display:flex;justify-content:center;width:100%;align-items:center}span.svelte-15m9up6{opacity:0.3}a.svelte-15m9up6{color:inherit;display:flex;margin-left:0.25rem;align-items:center}.bn-logo.svelte-15m9up6{height:1.1rem;margin-left:0.25rem;margin-bottom:0.1rem}svg.svelte-15m9up6{height:100%;width:auto}",de(document.head,e)}(),dt(E(r),e,ta,ea,Z,{darkMode:0}),r}return a}(ot);function ra(e){var t,a;return t=new aa({props:{darkMode:e[3].darkMode}}),{c:function(){nt(t.$$.fragment)},m:function(e,r){ct(t,e,r),a=!0},p:function(e,a){var r={};8&a&&(r.darkMode=e[3].darkMode),t.$set(r)},i:function(e){a||(Xe(t.$$.fragment,e),a=!0)},o:function(e){Ye(t.$$.fragment,e),a=!1},d:function(e){it(t,e)}}}function na(e){var t,a,r,n,c,i,f,d,o,s,b,u,l,h,x,p,m,v,g,y,w,_;return{c:function(){t=be("div"),a=ue("svg"),r=ue("g"),n=ue("path"),c=ue("g"),i=ue("g"),f=ue("g"),d=ue("g"),o=ue("g"),s=ue("g"),b=ue("g"),u=ue("g"),l=ue("g"),h=ue("g"),x=ue("g"),p=ue("g"),m=ue("g"),v=ue("g"),g=ue("g"),me(n,"d","M28.228,23.986L47.092,5.122c1.172-1.171,1.172-3.071,0-4.242c-1.172-1.172-3.07-1.172-4.242,0L23.986,19.744L5.121,0.88\n c-1.172-1.172-3.07-1.172-4.242,0c-1.172,1.171-1.172,3.071,0,4.242l18.865,18.864L0.879,42.85c-1.172,1.171-1.172,3.071,0,4.242\n C1.465,47.677,2.233,47.97,3,47.97s1.535-0.293,2.121-0.879l18.865-18.864L42.85,47.091c0.586,0.586,1.354,0.879,2.121,0.879\n s1.535-0.293,2.121-0.879c1.172-1.171,1.172-3.071,0-4.242L28.228,23.986z"),me(a,"xmlns","http://www.w3.org/2000/svg"),me(a,"xmlns:xlink","http://www.w3.org/1999/xlink"),me(a,"x","0px"),me(a,"y","0px"),me(a,"viewBox","0 0 47.971 47.971"),ye(a,"enable-background","new 0 0 47.971 47.971"),ye(a,"transition","fill 150ms\n ease-in-out"),me(a,"fill",y=e[2]?e[3].darkMode?"#ffffff":"#4a4a4a":"#9B9B9B"),me(a,"xml:space","preserve"),me(a,"class","svelte-rntogh"),me(t,"class","bn-onboard-custom bn-onboard-modal-content-close svelte-rntogh"),we(t,"bn-onboard-dark-mode-close-background",e[3].darkMode)},m:function(y,M){oe(y,t,M),de(t,a),de(a,r),de(r,n),de(a,c),de(a,i),de(a,f),de(a,d),de(a,o),de(a,s),de(a,b),de(a,u),de(a,l),de(a,h),de(a,x),de(a,p),de(a,m),de(a,v),de(a,g),w||(_=[pe(t,"click",(function(){G(e[0])&&e[0].apply(this,arguments)})),pe(t,"mouseenter",e[6]),pe(t,"mouseleave",e[7])],w=!0)},p:function(r,n){e=r,12&n&&y!==(y=e[2]?e[3].darkMode?"#ffffff":"#4a4a4a":"#9B9B9B")&&me(a,"fill",y),8&n&&we(t,"bn-onboard-dark-mode-close-background",e[3].darkMode)},d:function(e){e&&se(t),w=!1,$(_)}}}function ca(e){var t,a,r,n,c,i,f,d,o=e[5].default,s=Q(o,e,e[4],null),b=e[3].displayBranding&&ra(e),u=e[1]&&na(e);return{c:function(){t=be("aside"),a=be("section"),s&&s.c(),r=he(),b&&b.c(),n=he(),u&&u.c(),me(a,"class","bn-onboard-custom bn-onboard-modal-content svelte-rntogh"),we(a,"bn-onboard-dark-mode",e[3].darkMode),we(a,"no-padding-branding",e[3].displayBranding),me(t,"class","bn-onboard-custom bn-onboard-modal svelte-rntogh")},m:function(c,o){oe(c,t,o),de(t,a),s&&s.m(a,null),de(a,r),b&&b.m(a,null),de(a,n),u&&u.m(a,null),i=!0,f||(d=[pe(a,"click",ia),pe(t,"click",(function(){G(e[0])&&e[0].apply(this,arguments)}))],f=!0)},p:function(t,r){var c=C(r,1)[0];e=t,s&&s.p&&(!i||16&c)&&te(s,o,e,e[4],c,null,null),e[3].displayBranding?b?(b.p(e,c),8&c&&Xe(b,1)):((b=ra(e)).c(),Xe(b,1),b.m(a,n)):b&&(Ze(),Ye(b,1,1,(function(){b=null})),Je()),e[1]?u?u.p(e,c):((u=na(e)).c(),u.m(a,null)):u&&(u.d(1),u=null),8&c&&we(a,"bn-onboard-dark-mode",e[3].darkMode),8&c&&we(a,"no-padding-branding",e[3].displayBranding)},i:function(e){i||(Xe(s,e),Xe(b),Fe((function(){c||(c=tt(t,lt,{},!0)),c.run(1)})),i=!0)},o:function(e){Ye(s,e),Ye(b),c||(c=tt(t,lt,{},!1)),c.run(0),i=!1},d:function(e){e&&se(t),s&&s.d(e),b&&b.d(),u&&u.d(),e&&c&&c.end(),f=!1,$(d)}}}var ia=function(e){return e.stopPropagation()};function fa(e,t,a){var r;Y(e,Wt,(function(e){return a(3,r=e)}));var n,c=t.$$slots,i=void 0===c?{}:c,f=t.$$scope,d=t.closeModal,o=void 0===d?function(){}:d,s=t.closeable,b=void 0===s||s;return e.$$set=function(e){"closeModal"in e&&a(0,o=e.closeModal),"closeable"in e&&a(1,b=e.closeable),"$$scope"in e&&a(4,f=e.$$scope)},[o,b,n,r,f,i,function(){return a(2,n=!0)},function(){return a(2,n=!1)}]}var da=function(e){M(a,e);var t=S(a);function a(e){var r;return F(this,a),r=t.call(this),document.getElementById("svelte-rntogh-style")||function(){var e=be("style");e.id="svelte-rntogh-style",e.textContent="aside.svelte-rntogh{display:flex;font-family:'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;justify-content:center;align-items:center;position:fixed;font-size:16px;top:0;left:0;width:100vw;height:100vh;background:rgba(0, 0, 0, 0.3)}@media screen and (max-width: 420px){aside.svelte-rntogh{font-size:14px}}section.svelte-rntogh{display:block;box-sizing:content-box;background:#ffffff;border-radius:10px;box-shadow:0 1px 5px 0 rgba(0, 0, 0, 0.1);font-family:inherit;font-size:inherit;padding:1.33em;position:relative;overflow:hidden;max-width:37em;color:#4a4a4a}div.svelte-rntogh{height:0.66em;position:absolute;padding:0.25em;top:1.33em;right:1.33em;font-size:inherit;font-family:inherit;border-radius:5px;transition:background 200ms ease-in-out;display:flex;justify-content:center;align-items:center}div.svelte-rntogh:hover{cursor:pointer;background:#eeeeee}svg.svelte-rntogh{width:10px;height:10px}.bn-onboard-dark-mode-close-background.svelte-rntogh:hover{background:#00222c}.no-padding-branding.svelte-rntogh{padding-bottom:0}",de(document.head,e)}(),dt(E(r),e,fa,ca,Z,{closeModal:0,closeable:1}),r}return a}(ot);function oa(e){var t,a,r,n,c;return{c:function(){t=be("header"),a=be("div"),r=he(),n=be("h3"),c=le(e[0]),me(a,"class","bn-onboard-custom bn-onboard-modal-content-header-icon svelte-8i8o6j"),we(a,"bn-onboard-dark-mode-background",e[2].darkMode),me(n,"class","bn-onboard-custom bn-onboard-modal-content-header-heading svelte-8i8o6j"),me(t,"class","bn-onboard-custom bn-onboard-modal-content-header svelte-8i8o6j")},m:function(i,f){oe(i,t,f),de(t,a),a.innerHTML=e[1],de(t,r),de(t,n),de(n,c)},p:function(e,t){var r=C(t,1)[0];2&r&&(a.innerHTML=e[1]),4&r&&we(a,"bn-onboard-dark-mode-background",e[2].darkMode),1&r&&ge(c,e[0])},i:q,o:q,d:function(e){e&&se(t)}}}function sa(e,t,a){var r;Y(e,Wt,(function(e){return a(2,r=e)}));var n=t.heading,c=t.icon;return e.$$set=function(e){"heading"in e&&a(0,n=e.heading),"icon"in e&&a(1,c=e.icon)},[n,c,r]}var ba=function(e){M(a,e);var t=S(a);function a(e){var r;return F(this,a),r=t.call(this),document.getElementById("svelte-8i8o6j-style")||function(){var e=be("style");e.id="svelte-8i8o6j-style",e.textContent="header.svelte-8i8o6j{display:flex;align-items:center;font-size:inherit;font-family:inherit;margin-bottom:1em}div.svelte-8i8o6j{display:flex;justify-content:center;align-items:center;font-size:inherit;font-family:inherit;padding:0.6em;border-radius:30px;background:#eeeeee}h3.svelte-8i8o6j{font-weight:bold;font-size:1.33em;font-family:inherit;margin:0 0 0 0.5em}",de(document.head,e)}(),dt(E(r),e,sa,oa,Z,{heading:0,icon:1}),r}return a}(ot);function ua(e){var t,a,r,n,c=e[6].default,i=Q(c,e,e[5],null);return{c:function(){t=be("button"),i&&i.c(),t.disabled=e[2],me(t,"class","bn-onboard-custom bn-onboard-prepare-button svelte-fnc3e1"),we(t,"disabled",e[2]),we(t,"cta",e[3]),we(t,"bn-onboard-prepare-button-right","right"===e[1]),we(t,"bn-onboard-prepare-button-left","left"===e[1]),we(t,"bn-onboard-prepare-button-center","left"!==e[1]&&"right"!==e[1]),we(t,"bn-onboard-dark-mode-link",e[4].darkMode),we(t,"bn-onboard-dark-mode-background-hover",e[4].darkMode)},m:function(c,f){oe(c,t,f),i&&i.m(t,null),a=!0,r||(n=pe(t,"click",(function(){G(e[0])&&e[0].apply(this,arguments)})),r=!0)},p:function(r,n){var f=C(n,1)[0];e=r,i&&i.p&&(!a||32&f)&&te(i,c,e,e[5],f,null,null),(!a||4&f)&&(t.disabled=e[2]),4&f&&we(t,"disabled",e[2]),8&f&&we(t,"cta",e[3]),2&f&&we(t,"bn-onboard-prepare-button-right","right"===e[1]),2&f&&we(t,"bn-onboard-prepare-button-left","left"===e[1]),2&f&&we(t,"bn-onboard-prepare-button-center","left"!==e[1]&&"right"!==e[1]),16&f&&we(t,"bn-onboard-dark-mode-link",e[4].darkMode),16&f&&we(t,"bn-onboard-dark-mode-background-hover",e[4].darkMode)},i:function(e){a||(Xe(i,e),a=!0)},o:function(e){Ye(i,e),a=!1},d:function(e){e&&se(t),i&&i.d(e),r=!1,n()}}}function la(e,t,a){var r;Y(e,Wt,(function(e){return a(4,r=e)}));var n=t.$$slots,c=void 0===n?{}:n,i=t.$$scope,f=t.onclick,d=void 0===f?function(){}:f,o=t.position,s=void 0===o?"":o,b=t.disabled,u=void 0!==b&&b,l=t.cta,h=void 0===l||l;return e.$$set=function(e){"onclick"in e&&a(0,d=e.onclick),"position"in e&&a(1,s=e.position),"disabled"in e&&a(2,u=e.disabled),"cta"in e&&a(3,h=e.cta),"$$scope"in e&&a(5,i=e.$$scope)},[d,s,u,h,r,i,c]}var ha=function(e){M(a,e);var t=S(a);function a(e){var r;return F(this,a),r=t.call(this),document.getElementById("svelte-fnc3e1-style")||function(){var e=be("style");e.id="svelte-fnc3e1-style",e.textContent="button.svelte-fnc3e1{border:none;background:inherit;font-size:0.889em;font-family:inherit;padding:0.55em 1.4em;cursor:pointer;color:#4a90e2;font-family:inherit;transition:background 150ms ease-in-out;line-height:1.15;opacity:1;transition:opacity 200ms}button.svelte-fnc3e1:focus{outline:none}.bn-onboard-prepare-button-right.svelte-fnc3e1{position:absolute;right:0}.bn-onboard-prepare-button-left.svelte-fnc3e1{position:absolute;left:0}.disabled.svelte-fnc3e1{cursor:inherit;pointer-events:none;opacity:0.4}.cta.svelte-fnc3e1{border:1px solid #4a90e2;border-radius:40px}.cta.svelte-fnc3e1:hover{background:#ecf3fc}",de(document.head,e)}(),dt(E(r),e,la,ua,Z,{onclick:0,position:1,disabled:2,cta:3}),r}return a}(ot);function xa(e){var t,a;return{c:function(){t=be("span"),a=le(e[0]),me(t,"class","svelte-16ghk2h")},m:function(e,r){oe(e,t,r),de(t,a)},p:function(e,t){1&t&&ge(a,e[0])},d:function(e){e&&se(t)}}}function pa(e){var t,a,r,n=e[0]&&xa(e);return{c:function(){t=be("div"),(a=be("div")).innerHTML='
\n
\n
',r=he(),n&&n.c(),me(a,"class","bn-onboard-custom bn-onboard-loading"),me(t,"class","bn-onboard-loading-container svelte-16ghk2h")},m:function(e,c){oe(e,t,c),de(t,a),de(t,r),n&&n.m(t,null)},p:function(e,a){var r=C(a,1)[0];e[0]?n?n.p(e,r):((n=xa(e)).c(),n.m(t,null)):n&&(n.d(1),n=null)},i:q,o:q,d:function(e){e&&se(t),n&&n.d()}}}function ma(e,t,a){var r=t.description,n=void 0===r?"":r;return e.$$set=function(e){"description"in e&&a(0,n=e.description)},[n]}var va=function(e){M(a,e);var t=S(a);function a(e){var r;return F(this,a),r=t.call(this),document.getElementById("svelte-16ghk2h-style")||function(){var e=be("style");e.id="svelte-16ghk2h-style",e.textContent=".bn-onboard-loading-container.svelte-16ghk2h{display:flex;flex-direction:column;align-items:center;justify-content:center;font-family:inherit;font-size:inherit;color:inherit}span.svelte-16ghk2h{font-family:inherit;font-size:0.889em;margin-top:1rem}.bn-onboard-loading{display:inline-block;position:relative;width:2em;height:2em}.bn-onboard-loading div{box-sizing:border-box;font-size:inherit;display:block;position:absolute;width:2em;height:2em;border:3px solid;border-radius:50%;animation:bn-onboard-loading 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;border-color:currentColor transparent transparent transparent}.bn-onboard-loading .bn-onboard-loading-first{animation-delay:-0.45s}.bn-onboard-loading .bn-onboard-loading-second{animation-delay:-0.3s}.bn-onboard-loading .bn-onboard-loading-third{animation-delay:-0.15s}@keyframes bn-onboard-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}",de(document.head,e)}(),dt(E(r),e,ma,pa,Z,{description:0}),r}return a}(ot);function ga(e){var t,a;return{c:function(){(t=be("img")).src!==(a=e[0])&&me(t,"src",a),me(t,"srcset",e[1]),me(t,"alt",e[4]),me(t,"class","svelte-1799bj2")},m:function(e,a){oe(e,t,a)},p:function(e,r){1&r&&t.src!==(a=e[0])&&me(t,"src",a),2&r&&me(t,"srcset",e[1]),16&r&&me(t,"alt",e[4])},i:q,o:q,d:function(e){e&&se(t)}}}function ya(e){var t,a;return{c:function(){a=xe(),t=new Me(a)},m:function(r,n){t.m(e[2],r,n),oe(r,a,n)},p:function(e,a){4&a&&t.p(e[2])},i:q,o:q,d:function(e){e&&se(a),e&&t.d()}}}function wa(e){var t,a;return t=new va({}),{c:function(){nt(t.$$.fragment)},m:function(e,r){ct(t,e,r),a=!0},p:q,i:function(e){a||(Xe(t.$$.fragment,e),a=!0)},o:function(e){Ye(t.$$.fragment,e),a=!1},d:function(e){it(t,e)}}}function _a(e){var t;return{c:function(){(t=be("i")).textContent="selected",me(t,"class","svelte-1799bj2")},m:function(e,a){oe(e,t,a)},d:function(e){e&&se(t)}}}function Ma(e){var t,a,r,n,c,i,f,d,o,s,b,u=[wa,ya,ga],l=[];function h(e,t){return e[5]===e[4]?0:e[2]?1:2}r=h(e),n=l[r]=u[r](e);var x=e[6]&&_a();return{c:function(){t=be("button"),a=be("div"),n.c(),c=he(),i=be("span"),f=le(e[4]),d=he(),x&&x.c(),me(a,"class","svelte-1799bj2"),me(i,"class","svelte-1799bj2"),t.disabled=e[7],me(t,"class","bn-onboard-custom bn-onboard-icon-button svelte-1799bj2"),we(t,"disabled",e[7]),we(t,"bn-onboard-dark-mode-background-hover",e[8].darkMode),we(t,"bn-onboard-selected-wallet",e[6])},m:function(n,u){oe(n,t,u),de(t,a),l[r].m(a,null),de(t,c),de(t,i),de(i,f),de(i,d),x&&x.m(i,null),o=!0,s||(b=pe(t,"click",(function(){G(e[3])&&e[3].apply(this,arguments)})),s=!0)},p:function(c,d){var s=C(d,1)[0],b=r;(r=h(e=c))===b?l[r].p(e,s):(Ze(),Ye(l[b],1,1,(function(){l[b]=null})),Je(),(n=l[r])?n.p(e,s):(n=l[r]=u[r](e)).c(),Xe(n,1),n.m(a,null)),(!o||16&s)&&ge(f,e[4]),e[6]?x||((x=_a()).c(),x.m(i,null)):x&&(x.d(1),x=null),(!o||128&s)&&(t.disabled=e[7]),128&s&&we(t,"disabled",e[7]),256&s&&we(t,"bn-onboard-dark-mode-background-hover",e[8].darkMode),64&s&&we(t,"bn-onboard-selected-wallet",e[6])},i:function(e){o||(Xe(n),o=!0)},o:function(e){Ye(n),o=!1},d:function(e){e&&se(t),l[r].d(),x&&x.d(),s=!1,b()}}}function ka(e,t,a){var r;Y(e,Wt,(function(e){return a(8,r=e)}));var n=t.iconSrc,c=t.iconSrcSet,i=t.svg,f=t.onclick,d=void 0===f?function(){}:f,o=t.text,s=t.loadingWallet,b=t.currentlySelected,u=void 0!==b&&b,l=t.disabled,h=void 0!==l&&l;return e.$$set=function(e){"iconSrc"in e&&a(0,n=e.iconSrc),"iconSrcSet"in e&&a(1,c=e.iconSrcSet),"svg"in e&&a(2,i=e.svg),"onclick"in e&&a(3,d=e.onclick),"text"in e&&a(4,o=e.text),"loadingWallet"in e&&a(5,s=e.loadingWallet),"currentlySelected"in e&&a(6,u=e.currentlySelected),"disabled"in e&&a(7,h=e.disabled)},[n,c,i,d,o,s,u,h,r]}var Sa=function(e){M(a,e);var t=S(a);function a(e){var r;return F(this,a),r=t.call(this),document.getElementById("svelte-1799bj2-style")||function(){var e=be("style");e.id="svelte-1799bj2-style",e.textContent="button.svelte-1799bj2{display:flex;align-items:center;border:none;margin:0.33em 0;background:inherit;font-size:inherit;width:18em;padding:0.625em 1.25em;transition:box-shadow 150ms ease-in-out, background 200ms ease-in-out;border-radius:40px;cursor:pointer;color:inherit;line-height:1.15;font-family:inherit;opacity:1;transition:opacity 200ms}.disabled.svelte-1799bj2{cursor:inherit;pointer-events:none;opacity:0.4}button.svelte-1799bj2:hover{box-shadow:0 2px 10px 0 rgba(0, 0, 0, 0.1)}button.svelte-1799bj2:focus{outline:none}div.svelte-1799bj2{display:flex;justify-content:center;align-items:center;text-align:center;height:40px;width:40px;line-height:40px;font-family:inherit}img.svelte-1799bj2{max-height:100%;max-width:100%;vertical-align:middle}span.svelte-1799bj2{width:100%;display:flex;justify-content:space-between;align-items:center;font-size:inherit;margin-left:0.66em;font-weight:bold;text-align:left;font-family:inherit}i.svelte-1799bj2{font-size:0.8rem;font-weight:lighter;color:inherit;text-decoration:underline}@media only screen and (max-width: 450px){button.svelte-1799bj2{width:100%}}.bn-onboard-selected-wallet.svelte-1799bj2{background:#c3c3c3}",de(document.head,e)}(),dt(E(r),e,ka,Ma,Z,{iconSrc:0,iconSrcSet:1,svg:2,onclick:3,text:4,loadingWallet:5,currentlySelected:6,disabled:7}),r}return a}(ot);function Aa(e,t,a){var r=e.slice();return r[10]=t[a],r[12]=a,r}function Ea(e,t,a){var r=e.slice();return r[10]=t[a],r[12]=a,r}function Oa(e,t){var a,r,n;function c(){return t[7](t[10])}return r=new Sa({props:{disabled:t[5],onclick:c,iconSrc:t[10].iconSrc,iconSrcSet:t[10].iconSrcSet,svg:t[10].svg,text:t[10].name,currentlySelected:t[10].name===t[6].name,loadingWallet:t[2]}}),{key:e,first:null,c:function(){a=be("li"),nt(r.$$.fragment),me(a,"class","svelte-q1527"),this.first=a},m:function(e,t){oe(e,a,t),ct(r,a,null),n=!0},p:function(e,a){t=e;var n={};32&a&&(n.disabled=t[5]),3&a&&(n.onclick=c),1&a&&(n.iconSrc=t[10].iconSrc),1&a&&(n.iconSrcSet=t[10].iconSrcSet),1&a&&(n.svg=t[10].svg),1&a&&(n.text=t[10].name),65&a&&(n.currentlySelected=t[10].name===t[6].name),4&a&&(n.loadingWallet=t[2]),r.$set(n)},i:function(e){n||(Xe(r.$$.fragment,e),n=!0)},o:function(e){Ye(r.$$.fragment,e),n=!1},d:function(e){e&&se(a),it(r)}}}function Pa(e){var t,a,r;return a=new ha({props:{disabled:e[5],onclick:e[4],$$slots:{default:[Ta]},$$scope:{ctx:e}}}),{c:function(){t=be("div"),nt(a.$$.fragment),me(t,"class","svelte-q1527")},m:function(e,n){oe(e,t,n),ct(a,t,null),r=!0},p:function(e,t){var r={};32&t&&(r.disabled=e[5]),16&t&&(r.onclick=e[4]),16384&t&&(r.$$scope={dirty:t,ctx:e}),a.$set(r)},i:function(e){r||(Xe(a.$$.fragment,e),r=!0)},o:function(e){Ye(a.$$.fragment,e),r=!1},d:function(e){e&&se(t),it(a)}}}function Ta(e){var t;return{c:function(){t=le("Show More")},m:function(e,a){oe(e,t,a)},d:function(e){e&&se(t)}}}function Ba(e){for(var t,a,r=[],n=new Map,c=e[0].secondaryWallets,i=function(e){return e[10].name},f=0;f\n\n\t\n\t\n\t\n\t\n\n\n\t',heading:e[1].heading}});var d=e[12]&&Za(e),o=[Xa,Ja],s=[];function b(e,t){return e[5]?1:0}return n=b(e),c=s[n]=o[n](e),{c:function(){nt(t.$$.fragment),a=he(),d&&d.c(),r=he(),c.c(),i=xe()},m:function(e,c){ct(t,e,c),oe(e,a,c),d&&d.m(e,c),oe(e,r,c),s[n].m(e,c),oe(e,i,c),f=!0},p:function(e,a){var r={};2&a[0]&&(r.heading=e[1].heading),t.$set(r),e[12]&&d.p(e,a);var f=n;(n=b(e))===f?s[n].p(e,a):(Ze(),Ye(s[f],1,1,(function(){s[f]=null})),Je(),(c=s[n])?c.p(e,a):(c=s[n]=o[n](e)).c(),Xe(c,1),c.m(i.parentNode,i))},i:function(e){f||(Xe(t.$$.fragment,e),Xe(c),f=!0)},o:function(e){Ye(t.$$.fragment,e),Ye(c),f=!1},d:function(e){it(t,e),e&&se(a),d&&d.d(e),e&&se(r),s[n].d(e),e&&se(i)}}}function tr(e){var t,a,r=e[1]&&Ga(e);return{c:function(){r&&r.c(),t=xe()},m:function(e,n){r&&r.m(e,n),oe(e,t,n),a=!0},p:function(e,a){e[1]?r?(r.p(e,a),2&a[0]&&Xe(r,1)):((r=Ga(e)).c(),Xe(r,1),r.m(t.parentNode,t)):r&&(Ze(),Ye(r,1,1,(function(){r=null})),Je())},i:function(e){a||(Xe(r),a=!0)},o:function(e){Ye(r),a=!1},d:function(e){r&&r.d(e),e&&se(t)}}}function ar(){window.scrollTo(0,0)}function rr(e,t,a){var r,c,f,d,o,s,b,u,l=t.module,h=void 0===l?{heading:"",description:"",wallets:Promise.resolve([]),agreement:void 0}:l,x=X(Wt),p=x.mobileDevice,m=x.os,v=h,g=v.heading,y=v.description,w=v.explanation,_=v.agreement||{},M=_.termsUrl,k=_.privacyUrl,S=_.version,A=JSON.parse(localStorage.getItem($a)||"{}"),E=A.terms,O=A.privacy,P=A.version,B=!!(M&&!E||k&&!O||S&&S!==P),R=B,C=void 0,j=void 0,N=!1;function L(){return L=I(n.a.mark((function e(){var t,c,i,f;return n.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=X(Wt),e.next=3,h.wallets;case 3:if(c=e.sent,i=c.filter((function(e){return e[p?"mobile":"desktop"]})).filter((function(e){var t=e.osExclusions;return!(void 0===t?[]:t).includes(m.name)})),i.find((function(e){return e.preferred}))?(s=i.filter((function(e){return e.preferred})),b=i.filter((function(e){return!e.preferred}))):(s=i.slice(0,4),b=i.length>4?i.slice(4):void 0),!t.autoSelectWallet){e.next=12;break}if(f=i.find((function(e){return e.name===t.autoSelectWallet})),Wt.update((function(e){return T(T({},e),{},{autoSelectWallet:""})})),!f){e.next=12;break}return U(f,!0),e.abrupt("return");case 12:a(1,r={heading:g,description:y,explanation:w,primaryWallets:s,secondaryWallets:b}),Wt.update((function(e){return T(T({},e),{},{walletSelectDisplayedUI:!0})}));case 14:case"end":return e.stop()}}),e)}))),L.apply(this,arguments)}function U(e,t){return F.apply(this,arguments)}function F(){return F=I(n.a.mark((function e(t,c){var u,l,h,x,p,m,v,_,M,k,S,A,E;return n.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u=X(qt),l=X(Wt),h=l.browser,x=l.os,!u||u.name!==t.name){e.next=5;break}return D({completed:!0}),e.abrupt("return");case 5:return a(7,j=t.name),e.next=8,t.wallet({getProviderName:Mt,createLegacyProviderInterface:_t,createModernProviderInterface:wt,BigNumber:i.a,getNetwork:mt,getAddress:vt,getBalance:yt,resetWalletState:Gt,networkName:kt,browser:h,os:x});case 8:if(p=e.sent,m=p.provider,v=p.interface,_=p.instance,a(7,j=void 0),v){e.next=19;break}return a(5,o=t),a(3,f=m&&Mt(m)),a(4,d=t.installMessage?t.installMessage({currentWallet:f,selectedWallet:o.name}):""),c&&(a(1,r={heading:g,description:y,explanation:w,primaryWallets:s,secondaryWallets:b}),Wt.update((function(e){return T(T({},e),{},{walletSelectDisplayedUI:!0})}))),e.abrupt("return");case 19:qt.update((function(e){return e&&e.disconnect&&e.disconnect(),v})),M=t.name,k=t.type,S=t.svg,A=t.iconSrc,E=t.iconSrcSet,zt.set({provider:m,instance:_,dashboard:v.dashboard,name:M,connect:v.connect,type:k,icons:{svg:S,iconSrc:A,iconSrcSet:E}}),D({completed:!0});case 23:case"end":return e.stop()}}),e)}))),F.apply(this,arguments)}function D(e){a(1,r=null),Wt.update((function(t){return T(T({},t),{},{walletSelectInProgress:!1,walletSelectCompleted:e.completed})}))}Be((function(){u=window.document.body.style.overflow,window.document.body.style.overflow="hidden",window.addEventListener("scroll",ar)})),Re((function(){window.removeEventListener("scroll",ar),window.document.body.style.overflow=u})),function(){L.apply(this,arguments)}();return e.$$set=function(e){"module"in e&&a(16,h=e.module)},e.$$.update=function(){1&e.$$.dirty[0]&&(C?(localStorage.setItem($a,JSON.stringify({version:S,terms:!!M,privacy:!!k})),a(6,R=!1)):!1===C&&(localStorage.removeItem($a),a(6,R=!0)))},[C,r,c,f,d,o,R,j,N,p,M,k,B,function(){return a(8,N=!0)},U,D,h,function(){C=this.checked,a(0,C)},function(){return a(2,c=!c)},function(){return D({completed:!1})},function(){a(5,o=null),a(3,f=void 0)},function(){return D({completed:!1})}]}var nr=function(e){M(a,e);var t=S(a);function a(e){var r;return F(this,a),r=t.call(this),document.getElementById("svelte-w9ftfy-style")||function(){var e=be("style");e.id="svelte-w9ftfy-style",e.textContent="p.svelte-w9ftfy.svelte-w9ftfy{font-size:0.889em;margin:1.6em 0 0 0;font-family:inherit}div.svelte-w9ftfy.svelte-w9ftfy{display:flex;font-size:inherit;font-family:inherit;justify-content:space-between}div.svelte-w9ftfy span.svelte-w9ftfy{color:#4a90e2;font-size:inherit;font-family:inherit;margin-top:0.66em;cursor:pointer}.bn-onboard-modal-terms-of-service.svelte-w9ftfy.svelte-w9ftfy{display:flex;align-items:center}.bn-onboard-modal-terms-of-service-check-box.svelte-w9ftfy.svelte-w9ftfy{margin-right:7px}",de(document.head,e)}(),dt(E(r),e,rr,tr,Z,{module:16},[-1,-1]),r}return a}(ot);function cr(e){var t,a;return t=new da({props:{closeable:!1,$$slots:{default:[ir]},$$scope:{ctx:e}}}),{c:function(){nt(t.$$.fragment)},m:function(e,r){ct(t,e,r),a=!0},i:function(e){a||(Xe(t.$$.fragment,e),a=!0)},o:function(e){Ye(t.$$.fragment,e),a=!1},d:function(e){it(t,e)}}}function ir(e){var t,a;return t=new va({props:{description:"Checking wallet"}}),{c:function(){nt(t.$$.fragment)},m:function(e,r){ct(t,e,r),a=!0},p:q,i:function(e){a||(Xe(t.$$.fragment,e),a=!0)},o:function(e){Ye(t.$$.fragment,e),a=!1},d:function(e){it(t,e)}}}function fr(e){var t,a;return t=new da({props:{closeModal:e[12],$$slots:{default:[mr]},$$scope:{ctx:e}}}),{c:function(){nt(t.$$.fragment)},m:function(e,r){ct(t,e,r),a=!0},p:function(e,a){var r={};33554455&a&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i:function(e){a||(Xe(t.$$.fragment,e),a=!0)},o:function(e){Ye(t.$$.fragment,e),a=!1},d:function(e){it(t,e)}}}function dr(e){var t,a,r;return{c:function(){t=be("span"),a=le(e[1]),me(t,"class","bn-onboard-custom bn-onboard-prepare-error svelte-zrvscw"),we(t,"bn-onboard-dark-mode-background",e[4].darkMode)},m:function(e,r){oe(e,t,r),de(t,a)},p:function(e,r){2&r&&ge(a,e[1]),16&r&&we(t,"bn-onboard-dark-mode-background",e[4].darkMode)},i:function(e){r||Fe((function(){(r=et(t,lt,{})).start()}))},o:q,d:function(e){e&&se(t)}}}function or(e){var t,a=e[0].html+"";return{c:function(){me(t=be("section"),"class","bn-onboard-custom bn-onboard-wallet-check-section svelte-zrvscw")},m:function(e,r){oe(e,t,r),t.innerHTML=a},p:function(e,r){1&r&&a!==(a=e[0].html+"")&&(t.innerHTML=a)},d:function(e){e&&se(t)}}}function sr(e){var t,a;return t=new ha({props:{position:"right",onclick:e[0].button.onclick,$$slots:{default:[br]},$$scope:{ctx:e}}}),{c:function(){nt(t.$$.fragment)},m:function(e,r){ct(t,e,r),a=!0},p:function(e,a){var r={};1&a&&(r.onclick=e[0].button.onclick),33554433&a&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i:function(e){a||(Xe(t.$$.fragment,e),a=!0)},o:function(e){Ye(t.$$.fragment,e),a=!1},d:function(e){it(t,e)}}}function br(e){var t,a=e[0].button.text+"";return{c:function(){t=le(a)},m:function(e,a){oe(e,t,a)},p:function(e,r){1&r&&a!==(a=e[0].button.text+"")&&ge(t,a)},d:function(e){e&&se(t)}}}function ur(e){var t;return{c:function(){me(t=be("div"),"class","svelte-zrvscw")},m:function(e,a){oe(e,t,a)},p:q,i:q,o:q,d:function(e){e&&se(t)}}}function lr(e){var t,a;return t=new ha({props:{position:e[0].button?"":"right",onclick:e[5],$$slots:{default:[hr]},$$scope:{ctx:e}}}),{c:function(){nt(t.$$.fragment)},m:function(e,r){ct(t,e,r),a=!0},p:function(e,a){var r={};1&a&&(r.position=e[0].button?"":"right"),33554432&a&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i:function(e){a||(Xe(t.$$.fragment,e),a=!0)},o:function(e){Ye(t.$$.fragment,e),a=!1},d:function(e){it(t,e)}}}function hr(e){var t;return{c:function(){t=le("Try Again")},m:function(e,a){oe(e,t,a)},d:function(e){e&&se(t)}}}function xr(e){var t,a;return t=new va({}),{c:function(){nt(t.$$.fragment)},m:function(e,r){ct(t,e,r),a=!0},i:function(e){a||(Xe(t.$$.fragment,e),a=!0)},o:function(e){Ye(t.$$.fragment,e),a=!1},d:function(e){it(t,e)}}}function pr(e){var t;return{c:function(){t=le("Dismiss")},m:function(e,a){oe(e,t,a)},d:function(e){e&&se(t)}}}function mr(e){var t,a,r,n,c,i,f,d,o,s,b,u,l,h,x=e[0].description+"";t=new ba({props:{icon:e[0].icon||"",heading:e[0].heading}});var p=e[1]&&dr(e),m=e[0].html&&or(e),v=e[0].button&&sr(e),g=[lr,ur],y=[];function w(e,t){return e[1]?0:1}o=w(e),s=y[o]=g[o](e);var _=e[2]&&xr();return l=new ha({props:{position:"left",onclick:e[11],cta:!1,$$slots:{default:[pr]},$$scope:{ctx:e}}}),{c:function(){nt(t.$$.fragment),a=he(),r=be("p"),n=he(),p&&p.c(),c=he(),m&&m.c(),i=he(),f=be("div"),v&&v.c(),d=he(),s.c(),b=he(),_&&_.c(),u=he(),nt(l.$$.fragment),me(r,"class","bn-onboard-custom bn-onboard-prepare-description svelte-zrvscw"),me(f,"class","bn-onboard-custom bn-onboard-prepare-button-container svelte-zrvscw")},m:function(e,s){ct(t,e,s),oe(e,a,s),oe(e,r,s),r.innerHTML=x,oe(e,n,s),p&&p.m(e,s),oe(e,c,s),m&&m.m(e,s),oe(e,i,s),oe(e,f,s),v&&v.m(f,null),de(f,d),y[o].m(f,null),de(f,b),_&&_.m(f,null),de(f,u),ct(l,f,null),h=!0},p:function(e,a){var n={};1&a&&(n.icon=e[0].icon||""),1&a&&(n.heading=e[0].heading),t.$set(n),(!h||1&a)&&x!==(x=e[0].description+"")&&(r.innerHTML=x),e[1]?p?(p.p(e,a),2&a&&Xe(p,1)):((p=dr(e)).c(),Xe(p,1),p.m(c.parentNode,c)):p&&(p.d(1),p=null),e[0].html?m?m.p(e,a):((m=or(e)).c(),m.m(i.parentNode,i)):m&&(m.d(1),m=null),e[0].button?v?(v.p(e,a),1&a&&Xe(v,1)):((v=sr(e)).c(),Xe(v,1),v.m(f,d)):v&&(Ze(),Ye(v,1,1,(function(){v=null})),Je());var M=o;(o=w(e))===M?y[o].p(e,a):(Ze(),Ye(y[M],1,1,(function(){y[M]=null})),Je(),(s=y[o])?s.p(e,a):(s=y[o]=g[o](e)).c(),Xe(s,1),s.m(f,b)),e[2]?_?4&a&&Xe(_,1):((_=xr()).c(),Xe(_,1),_.m(f,u)):_&&(Ze(),Ye(_,1,1,(function(){_=null})),Je());var k={};33554432&a&&(k.$$scope={dirty:a,ctx:e}),l.$set(k)},i:function(e){h||(Xe(t.$$.fragment,e),Xe(p),Xe(v),Xe(s),Xe(_),Xe(l.$$.fragment,e),h=!0)},o:function(e){Ye(t.$$.fragment,e),Ye(v),Ye(s),Ye(_),Ye(l.$$.fragment,e),h=!1},d:function(e){it(t,e),e&&se(a),e&&se(r),e&&se(n),p&&p.d(e),e&&se(c),m&&m.d(e),e&&se(i),e&&se(f),v&&v.d(),y[o].d(),_&&_.d(),it(l)}}}function vr(e){var t,a,r,n=e[3]&&cr(e),c=e[0]&&fr(e);return{c:function(){n&&n.c(),t=he(),c&&c.c(),a=xe()},m:function(e,i){n&&n.m(e,i),oe(e,t,i),c&&c.m(e,i),oe(e,a,i),r=!0},p:function(e,r){var i=C(r,1)[0];e[3]?n?8&i&&Xe(n,1):((n=cr(e)).c(),Xe(n,1),n.m(t.parentNode,t)):n&&(Ze(),Ye(n,1,1,(function(){n=null})),Je()),e[0]?c?(c.p(e,i),1&i&&Xe(c,1)):((c=fr(e)).c(),Xe(c,1),c.m(a.parentNode,a)):c&&(Ze(),Ye(c,1,1,(function(){c=null})),Je())},i:function(e){r||(Xe(n),Xe(c),r=!0)},o:function(e){Ye(n),Ye(c),r=!1},d:function(e){n&&n.d(e),e&&se(t),c&&c.d(e),e&&se(a)}}}function gr(){window.scrollTo(0,0)}function yr(e){return void 0!==e.heading}function wr(e,t,a){var r;Y(e,Wt,(function(e){return a(4,r=e)}));var c,f,d,o,s=t.walletCheck,b=t.walletSelect,u=t.modules,l=pt(),h=void 0,x=void 0,p=!1,m=void 0,v=!1,g=!1,y=qt.subscribe((function(e){null===e&&(S(),y())})),w=Ht.subscribe((function(e){return c=e}));function M(){return(M=I(n.a.mark((function e(){var t;return n.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a(10,p=!0),!At(t=u||X(Wt).checkModules)){e.next=8;break}return e.next=5,t;case 5:(t=e.sent).forEach(Nt),Wt.update((function(e){return T(T({},e),{},{checkModules:t})}));case 8:X(zt).name,E(t).then((function(e){if(!e.modal)return l&&l.event({categoryCode:"onboard",eventCode:"onboardingCompleted"}),void S(!0);Wt.update((function(e){return T(T({},e),{},{walletCheckDisplayedUI:!0})})),a(0,h=e.modal),x=e.module,l&&l.event({eventCode:h.eventCode,categoryCode:"onboard"}),h.action&&k(),d=setInterval(I(n.a.mark((function e(){var t;return n.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!x){e.next=5;break}return e.next=3,O(x,X(Ht));case 3:(t=e.sent)||!1===m?a(0,h=t&&t.modal?t.modal:h):(A(),setTimeout((function(){a(10,p=!1)}),250));case 5:case"end":return e.stop()}}),e)}))),100)}));case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function k(){m=!1,a(2,v=!0),h&&h.action&&h.action().then((function(){m=!0,a(2,v=!1)})).catch((function(e){a(1,f=e.message),a(2,v=!1)}))}function S(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t.switchingWallets;A(),Wt.update((function(t){return T(T({},t),{},{switchingWallets:a,walletCheckInProgress:!1,walletCheckCompleted:e,accountSelectInProgress:!1})}))}function A(){clearInterval(d),a(1,f=""),m=void 0,a(0,h=void 0),x=void 0}function E(e){return new Promise(function(){var t=I(n.a.mark((function t(a){var r,i,f,d;return n.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=_(e),t.prev=1,r.s();case 3:if((i=r.n()).done){t.next=12;break}return f=i.value,t.next=7,O(f,c);case 7:if(!(d=t.sent)){t.next=10;break}return t.abrupt("return",a(d));case 10:t.next=3;break;case 12:t.next=17;break;case 14:t.prev=14,t.t0=t.catch(1),r.e(t.t0);case 17:return t.prev=17,r.f(),t.finish(17);case 20:return t.abrupt("return",a({modal:void 0,module:void 0}));case 21:case"end":return t.stop()}}),t,null,[[1,14,17,20]])})));return function(e){return t.apply(this,arguments)}}())}function O(e,t){return P.apply(this,arguments)}function P(){return P=I(n.a.mark((function e(t,r){var c,f;return n.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(c=t(T(T({},r),{},{BigNumber:i.a,walletSelect:b,walletCheck:s,exit:S,wallet:X(zt),stateSyncStatus:Vt,stateStore:{address:Ut,network:Ft,balance:Dt}})))){e.next=12;break}if(!yr(c)){e.next=7;break}return Lt(c),e.abrupt("return",{module:t,modal:c});case 7:return e.next=9,new Promise((function(e){var t=!1;c.then((function(r){a(3,g=!1),t=!0,f=r,e(void 0)})),setTimeout((function(){t||a(3,g=!0)}),650)}));case 9:if(!f){e.next=12;break}return Lt(f),e.abrupt("return",{module:t,modal:f});case 12:case"end":return e.stop()}}),e)}))),P.apply(this,arguments)}Be((function(){o=window.document.body.style.overflow,window.document.body.style.overflow="hidden",window.addEventListener("scroll",gr)})),Re((function(){w(),window.removeEventListener("scroll",gr),window.document.body.style.overflow=o}));return e.$$set=function(e){"walletCheck"in e&&a(7,s=e.walletCheck),"walletSelect"in e&&a(8,b=e.walletSelect),"modules"in e&&a(9,u=e.modules)},e.$$.update=function(){1025&e.$$.dirty&&(h||p||function(){M.apply(this,arguments)}())},[h,f,v,g,r,k,S,s,b,u,p,function(){return S(!1)},function(){return S()}]}var _r=function(e){M(a,e);var t=S(a);function a(e){var r;return F(this,a),r=t.call(this),document.getElementById("svelte-zrvscw-style")||function(){var e=be("style");e.id="svelte-zrvscw-style",e.textContent="p.svelte-zrvscw{font-size:0.889em;font-family:inherit;margin:1em 0}span.svelte-zrvscw{color:#e2504a;font-size:0.889em;font-family:inherit;display:block;margin-bottom:0.75em;padding:0.5em;border:1px solid #e2504a;border-radius:5px}div.svelte-zrvscw{display:flex;justify-content:center;align-items:center;min-height:2.5rem;position:relative}section.svelte-zrvscw{display:flex;justify-content:center;flex-direction:column;align-items:center;margin-bottom:1rem}",de(document.head,e)}(),dt(E(r),e,wr,vr,Z,{walletCheck:7,walletSelect:8,modules:9}),r}return a}(ot),Mr='\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\t \n',kr='\n\t\n\t\t\n\t\n',Sr='\n\t\n\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t\n',Ar='\n\t\n\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t\n',Er="\n display: block;\n font-size: 0.889em;\n font-family: inherit;\n color: inherit;\n margin-top: 0.5rem;\n";function Or(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.heading,a=e.description,r=e.icon,c=!1,i=!1,f=[];function d(e){return o.apply(this,arguments)}function o(){return o=I(n.a.mark((function e(d){var o,s,b,u,l,h,x;return n.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=d.wallet,s=d.BigNumber,b=o.provider,"hardware"!==o.type||c||b.isCustomPath()){e.next=18;break}if(0!==f.length){e.next=12;break}return i=!0,e.next=7,b.enable();case 7:return u=e.sent,e.next=10,b.getBalances(u);case 10:f=e.sent,i=!1;case 12:return l=function(){delete window.accountSelect,delete window.loadMoreAccounts},h=function(){var e=I(n.a.mark((function e(){return n.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=!0,e.next=3,b.getMoreAccounts();case 3:f=e.sent,i=!1;case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),x=function(){var e=document.getElementById("account-select").selectedIndex;b.setPrimaryAccount(f[e].address)},window.accountSelect=x,window.loadMoreAccounts=h,e.abrupt("return",{heading:t||"Select Account",description:a||"Please select which account you would like to use with this Dapp:",eventCode:"accountSelect",html:i?'
\n
\n
\n
\n
\n Loading More Accounts...\n '):'\n
\n \n \n
\n '),button:{onclick:function(){l(),c=!0},text:"Done"},icon:r||Mr});case 18:case"end":return e.stop()}}),e)}))),o.apply(this,arguments)}return d.reset=function(){c=!1,f=[],i=!1},d}var Pr=Object.freeze({__proto__:null,default:Or}),Tr={Ledger:[{path:"m/44'/60'/0'",label:"Ethereum"},{path:"m/44'/60'",label:"Ethereum Ledger Live"}],Trezor:[{path:"m/44'/60'/0'/0",label:"Ethereum"}],Lattice:[{path:"m/44'/60'/0'/0",label:"Ethereum"}],KeepKey:[{path:"m/44'/60'/0'/0/0",label:"Ethereum"}]},Br="\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n",Rr="\n background: inherit;\n font-size: 0.889em;\n font-family: inherit;\n border-width: 1px;\n border-style: solid;\n border-color: inherit;\n border-radius: 40px;\n margin-top: 0.5rem;\n padding: 0.55em 1.4em;\n text-align: center;\n color: inherit;\n font-family: inherit;\n transition: background 150ms ease-in-out;\n line-height: 1.15;\n",Cr="\n cursor: pointer;\n",jr="\n border: 1px solid #4a90e2;\n",Ir="\n border: 1px solid #e2504a;\n",Nr="\n display: block;\n font-size: 0.889em;\n font-family: inherit;\n color: inherit;\n margin-top: 0.5rem;\n",Lr="\n color: #e2504a;\n";function Ur(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.heading,a=e.description,r=e.icon,c={completed:!1,showCustomInput:!1,dPath:"",loading:!1,error:""},i=function(e){return'\n \n ')};function f(e){return'\n
\n ').concat(Tr[e].map((function(e){var t=e.path,a=e.label;return'\n \n ")})).join(" "),"\n ").concat(c.showCustomInput?i(c.error):''),"\n ").concat(c.loading?'
\n
\n
\n
\n
\n Loading Accounts...\n '):c.error?'').concat(c.error,""):"","\n
\n ")}function d(){c.completed=!1,c.showCustomInput=!1,c.dPath="",c.loading=!1,c.error=""}function o(e){var i=e.wallet;if(i&&"hardware"===i.type&&!c.completed){return window.handleCustomInput=function(){var e=document.getElementById("custom-derivation-input");c.dPath=e&&e.value,c.error=""},window.handleDerivationClick=function(e){var t=e.dataset.path;"custom"===t?(c.showCustomInput=!0,setTimeout((function(){var e=document.getElementById("custom-derivation-input");e&&e.focus()}),100)):(c.error="",c.showCustomInput=!1,c.dPath=t)},Tr[i.name]&&{heading:t||"Hardware Wallet Connect",description:a||"Make sure your ".concat(i.name," is plugged in, ").concat("Ledger"===i.name?"and the Ethereum app is open, ":"","then select a derivation path to connect your accounts:"),eventCode:"derivationPath",html:f(i.name),button:{text:"Connect",onclick:function(){var e=I(n.a.mark((function e(){var t;return n.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c.loading=!0,t=c.dPath||Tr[i.name][0].path,e.prev=2,e.next=5,i.provider.setPath(t,c.showCustomInput);case 5:if(e.sent){e.next=10;break}return c.error="".concat(t," is not a valid derivation path"),c.loading=!1,e.abrupt("return");case 10:e.next=17;break;case 12:return e.prev=12,e.t0=e.catch(2),c.error=e.t0,c.loading=!1,e.abrupt("return");case 17:c.error="",i.connect&&i.connect().then((function(){delete window.handleCustomInput,delete window.handleDerivationSelect,c.loading=!1,c.completed=!0})).catch((function(e){c.error=e.message,c.loading=!1}));case 19:case"end":return e.stop()}}),e,null,[[2,12]])})));return function(){return e.apply(this,arguments)}}()},icon:r||Mr}}}return o.reset=d,o}var Fr=Object.freeze({__proto__:null,default:Ur});function Dr(e){var t,a;return t=new nr({props:{module:e[0]}}),{c:function(){nt(t.$$.fragment)},m:function(e,r){ct(t,e,r),a=!0},p:function(e,a){var r={};1&a&&(r.module=e[0]),t.$set(r)},i:function(e){a||(Xe(t.$$.fragment,e),a=!0)},o:function(e){Ye(t.$$.fragment,e),a=!1},d:function(e){it(t,e)}}}function zr(e){var t,a;return t=new _r({props:{modules:void 0,walletSelect:e[1],walletCheck:e[2]}}),{c:function(){nt(t.$$.fragment)},m:function(e,r){ct(t,e,r),a=!0},p:function(e,a){var r={};2&a&&(r.walletSelect=e[1]),4&a&&(r.walletCheck=e[2]),t.$set(r)},i:function(e){a||(Xe(t.$$.fragment,e),a=!0)},o:function(e){Ye(t.$$.fragment,e),a=!1},d:function(e){it(t,e)}}}function Hr(e){var t,a;return t=new _r({props:{modules:[Ur(),Or()],walletSelect:e[1],walletCheck:e[2]}}),{c:function(){nt(t.$$.fragment)},m:function(e,r){ct(t,e,r),a=!0},p:function(e,a){var r={};2&a&&(r.walletSelect=e[1]),4&a&&(r.walletCheck=e[2]),t.$set(r)},i:function(e){a||(Xe(t.$$.fragment,e),a=!0)},o:function(e){Ye(t.$$.fragment,e),a=!1},d:function(e){it(t,e)}}}function qr(e){var t,a,r,n,c=e[3].walletSelectInProgress&&Dr(e),i=e[3].walletCheckInProgress&&zr(e),f=e[3].accountSelectInProgress&&Hr(e);return{c:function(){c&&c.c(),t=he(),i&&i.c(),a=he(),f&&f.c(),r=xe()},m:function(e,d){c&&c.m(e,d),oe(e,t,d),i&&i.m(e,d),oe(e,a,d),f&&f.m(e,d),oe(e,r,d),n=!0},p:function(e,n){var d=C(n,1)[0];e[3].walletSelectInProgress?c?(c.p(e,d),8&d&&Xe(c,1)):((c=Dr(e)).c(),Xe(c,1),c.m(t.parentNode,t)):c&&(Ze(),Ye(c,1,1,(function(){c=null})),Je()),e[3].walletCheckInProgress?i?(i.p(e,d),8&d&&Xe(i,1)):((i=zr(e)).c(),Xe(i,1),i.m(a.parentNode,a)):i&&(Ze(),Ye(i,1,1,(function(){i=null})),Je()),e[3].accountSelectInProgress?f?(f.p(e,d),8&d&&Xe(f,1)):((f=Hr(e)).c(),Xe(f,1),f.m(r.parentNode,r)):f&&(Ze(),Ye(f,1,1,(function(){f=null})),Je())},i:function(e){n||(Xe(c),Xe(i),Xe(f),n=!0)},o:function(e){Ye(c),Ye(i),Ye(f),n=!1},d:function(e){c&&c.d(e),e&&se(t),i&&i.d(e),e&&se(a),f&&f.d(e),e&&se(r)}}}function Kr(e,t,a){var r;Y(e,Wt,(function(e){return a(3,r=e)}));var n=t.walletSelectModule,c=t.walletSelect,i=t.walletCheck;return e.$$set=function(e){"walletSelectModule"in e&&a(0,n=e.walletSelectModule),"walletSelect"in e&&a(1,c=e.walletSelect),"walletCheck"in e&&a(2,i=e.walletCheck)},[n,c,i,r]}var Wr=function(e){M(a,e);var t=S(a);function a(e){var r;return F(this,a),r=t.call(this),document.getElementById("svelte-1yxy612-style")||function(){var e=be("style");e.id="svelte-1yxy612-style",e.textContent=".bn-onboard-custom.bn-onboard-dark-mode{background:#283944;color:#ffffff}.bn-onboard-custom.bn-onboard-dark-mode-background-hover:hover, .bn-onboard-custom.bn-onboard-dark-mode-background{background:#0e212a}.bn-onboard-clickable{text-decoration:none}.bn-onboard-clickable:hover{cursor:pointer;text-decoration:underline}.bn-onboard-custom.bn-onboard-dark-mode-link{color:#91bced;border-color:#91bced}.bn-onboard-wallet-check-section select{padding:0.5rem}",de(document.head,e)}(),dt(E(r),e,Kr,qr,Z,{walletSelectModule:0,walletSelect:1,walletCheck:2}),r}return a}(ot),Vr=["metamask","binance","frame","torus","opera","liquality","blankwallet"],$r=["metamask","coinbase","trust","torus","opera","operaTouch","status","hyperpay","tokenpocket","dcent","atoken","liquality","alphawallet","ownbit","bitpie","authereum","tp"];function Gr(e,t,a){var r,n,c,i;if(null!==(r=window)&&void 0!==r&&r.ethereum&&(n=Mt(window.ethereum))&&(c="imToken"===(i=n)?i:"WalletConnect"===i?"walletConnect":i.toLocaleLowerCase()),e){var f=e.every((function(e){return Ct(e)&&e.walletName!==c}));c&&f?e.unshift({walletName:c}):n&&e.unshift({walletName:"detectedwallet"});var d=new Set;return Promise.all(e.map((function(e){if(Ct(e)&&!function(e){return(null===e||void 0===e?void 0:e.display)&&!1===(null===e||void 0===e?void 0:e.display[a?"mobile":"desktop"])}(e)){var r=e.walletName,n=R(e,y);if(!d.has(r))try{var c=Zr(r).then((function(e){return e.default(T(T({},n),{},{networkId:t,isMobile:a}))}));return d.add(r),c}catch(o){var i=o.type,f=o.message;if("DeprecatedWalletError"!==i)throw o;console.warn(f)}}return Promise.resolve(e)})))}var o=a?$r:Vr;return c&&!o.includes(c)?o.unshift(c):!c&&n&&o.unshift("detectedwallet"),Promise.all(o.map((function(e){return Zr(e).then((function(e){return e.default({networkId:t})}))})))}function Zr(e){switch(e){case"dapper":case"squarelink":case"unilogin":throw{type:"DeprecatedWalletError",message:"".concat(e," wallet has been deprecated")};case"meetone":return a.e(54).then(a.bind(null,576));case"metamask":return a.e(55).then(a.bind(null,577));case"portis":return a.e(80).then(a.bind(null,578));case"fortmatic":return a.e(74).then(a.bind(null,579));case"authereum":return a.e(71).then(a.bind(null,580));case"trust":return a.e(63).then(a.bind(null,581));case"coinbase":return a.e(41).then(a.bind(null,582));case"walletConnect":return a.e(83).then(a.bind(null,583));case"opera":return a.e(57).then(a.bind(null,584));case"operaTouch":return a.e(58).then(a.bind(null,585));case"torus":return a.e(81).then(a.bind(null,586));case"status":return a.e(60).then(a.bind(null,587));case"trezor":return a.e(82).then(a.bind(null,588));case"lattice":return a.e(77).then(a.bind(null,589));case"keystone":return Promise.all([a.e(5),a.e(7),a.e(10),a.e(24),a.e(67)]).then(a.bind(null,590));case"cobovault":return Promise.all([a.e(5),a.e(7),a.e(10),a.e(31),a.e(86)]).then(a.bind(null,591));case"ledger":return a.e(78).then(a.bind(null,592));case"walletLink":return a.e(66).then(a.bind(null,593));case"imToken":return a.e(52).then(a.bind(null,594));case"mykey":return a.e(56).then(a.bind(null,595));case"huobiwallet":return a.e(50).then(a.bind(null,596));case"wallet.io":return a.e(64).then(a.bind(null,597));case"hyperpay":return a.e(51).then(a.bind(null,598));case"tokenpocket":return a.e(61).then(a.bind(null,599));case"dcent":return a.e(47).then(a.bind(null,600));case"atoken":return a.e(43).then(a.bind(null,601));case"liquality":return a.e(53).then(a.bind(null,602));case"frame":return a.e(49).then(a.bind(null,603));case"xdefi":return a.e(65).then(a.bind(null,604));case"alphawallet":return a.e(42).then(a.bind(null,605));case"ownbit":return a.e(59).then(a.bind(null,606));case"keepkey":return Promise.all([a.e(6),a.e(76),a.e(87)]).then(a.bind(null,607));case"bitpie":return a.e(45).then(a.bind(null,608));case"gnosis":return a.e(16).then(a.bind(null,274));case"binance":return a.e(44).then(a.bind(null,609));case"detectedwallet":return a.e(48).then(a.bind(null,610));case"tp":return a.e(62).then(a.bind(null,611));case"blankwallet":return a.e(46).then(a.bind(null,612));default:throw new Error("".concat(e," is not a valid walletName."))}}var Jr=["connect","network"];function Xr(e,t){return Yr.apply(this,arguments)}function Yr(){return Yr=I(n.a.mark((function e(t,a){var r;return n.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=3;break}return r=t.map((function(e){if(!It(e)){var t=e.checkName,r=R(e,w),n=Qr(t);return n&&n.then((function(e){return e.default(T(T({},r),{},{networkId:a}))}))}return Promise.resolve(e)})),e.abrupt("return",Promise.all(r));case 3:return e.abrupt("return",Promise.all(Jr.map((function(e){var t=Qr(e);return t&&t.then((function(e){return e.default({networkId:a})}))}))));case 4:case"end":return e.stop()}}),e)}))),Yr.apply(this,arguments)}function Qr(e){switch(e){case"connect":return a.e(73).then(a.bind(null,613));case"network":return a.e(79).then(a.bind(null,614));case"balance":return a.e(72).then(a.bind(null,615));case"accounts":return Promise.resolve().then((function(){return Pr}));case"derivationPath":return Promise.resolve().then((function(){return Fr}));default:throw new Error("invalid module name: ".concat(e))}}var en;function tn(e){var t,r;if("undefined"===typeof window)return console.warn("Onboard.js must be run in a browser environment. If you are utilizing server side rendering you can ignore this warning."),{walletSelect:function(){return Promise.resolve(!1)},walletCheck:function(){return Promise.resolve(!1)},walletReset:function(){},config:function(){},getState:function(){return X(Ht)},accountSelect:function(){return Promise.resolve(!1)}};en&&(console.warn("Initializing Onboard and destroying previously initialized instance."),function(){var e;null===(e=ht)||void 0===e||e.destroy()}(),Gt(),en.$destroy()),Bt(e);var n,c=e.subscriptions,i=e.dappId,f=e.networkId,d=e.networkName,s=e.darkMode,b=e.apiUrl,u=e.hideBranding,l=e.blockPollingInterval,h=void 0===l?4e3:l,p=function(){var e=o.a.getParser(window.navigator.userAgent),t=e.getOS(),a=e.getBrowser(),r=e.getPlatform().type;return{isMobile:r?"desktop"!==r:window.innerWidth<600,os:t,browser:a}}(),m=p.os,v=p.browser,g=p.isMobile,y=function(e,t,a,r){var n=Gr(t&&t.wallets,e,r),c=t||{},i=c.heading,f=void 0===i?"Select a Wallet":i,d=c.description,o=void 0===d?"Please select a wallet to connect to this dapp:":d,s=c.explanation;return{walletSelect:{heading:f,description:o,wallets:n,explanation:void 0===s?'Wallets are used to send, receive, and store digital assets like Ether. Wallets come in many forms. They are either built into your browser, an extension added to your browser, a piece of hardware plugged into your computer or even an app on your phone. For more information about wallets, see this explanation.':s,agreement:c.agreement},walletCheck:Xr(a,e)}}(f,e.walletSelect,e.walletCheck,g);function w(e){return new Promise((function(t){Wt.update((function(t){return T(T({},t),{},{walletSelectInProgress:!0,autoSelectWallet:"string"===typeof e&&e})}));var a=Wt.subscribe((function(e){var r=e.walletSelectInProgress,n=e.walletSelectCompleted,c=e.walletSelectDisplayedUI;!1===r&&(a(),c?setTimeout((function(){t(n),Wt.update((function(e){return T(T({},e),{},{displayedUI:!1})}))}),500):t(n))}))}))}function _(){return new Promise((function(e){if(!X(qt))throw new Error("walletSelect must be called before walletCheck");Wt.update((function(e){return T(T({},e),{},{walletCheckInProgress:!0})}));var t=Wt.subscribe((function(a){var r=a.walletCheckInProgress,n=a.walletCheckCompleted,c=a.walletCheckDisplayedUI;a.switchingWallets||!1!==r||(t(),c?setTimeout((function(){e(n),Wt.update((function(e){return T(T({},e),{},{displayedUI:!1})}))}),500):e(n))}))}))}n=i?!1===u:!0!==u,Wt.update((function(t){var a;return T(T({},t),{},{dappId:i,apiUrl:b,networkId:f,networkName:d,version:xt,mobileDevice:g,os:m,browser:v,darkMode:s,displayBranding:n,checkModules:y.walletCheck,blockPollingInterval:h,agreement:(null===(a=e.walletSelect)||void 0===a?void 0:a.agreement)||null})})),$t(),en=new Wr({target:document.body,props:{walletSelectModule:y.walletSelect,walletSelect:w,walletCheck:_}}),c&&(c.address&&Ut.subscribe((function(e){null!==e&&c.address&&c.address(e)})),c.ens&&ut([Ut,zt],(function(e,t){var a=C(e,2),r=a[0],n=a[1];r&&n&&n.provider?function(e,t){return gt.apply(this,arguments)}(n.provider,r).then(t):t(void 0)})).subscribe((function(e){null!==e&&c.ens&&c.ens(e)})),c.network&&Ft.subscribe((function(e){null!==e&&c.network&&c.network(e)})),c.balance&&Dt.subscribe((function(e){null!==e&&c.balance&&c.balance(e)})),c.wallet&&zt.subscribe((function(e){null!==e.provider&&c.wallet&&c.wallet(e)})));var M=(null===(t=e.walletSelect)||void 0===t||null===(r=t.wallets)||void 0===r?void 0:r.find((function(e){return Ct(e)&&"gnosis"===e.walletName})))||{},k=M.label,S=void 0===k?"Gnosis Safe":k;return S&&a.e(16).then(a.bind(null,274)).then((function(e){return(0,e.checkGnosisSafeContext)((function(){return w(S)}))})),{walletSelect:w,walletCheck:_,walletReset:function(){Gt()},config:function(e){!function(e){Pt({name:"configuration",value:e,type:"object"});var t=e.darkMode,a=e.networkId;Tt(R(e,x),["darkMode","networkId"],"configuration"),Pt({name:"darkMode",value:t,type:"boolean",optional:!0}),Pt({name:"networkId",value:a,type:"number",optional:!0})}(e),Wt.update((function(t){return T(T({},t),e)}))},getState:function(){return X(Ht)},accountSelect:function(){return new Promise((function(e){"hardware"!==X(zt).type&&e(!1),Wt.update((function(e){return T(T({},e),{},{accountSelectInProgress:!0})}));var t=Wt.subscribe((function(a){var r=a.accountSelectInProgress,n=a.walletSelectDisplayedUI;!1===r&&(t(),n?setTimeout((function(){e(!0),Wt.update((function(e){return T(T({},e),{},{displayedUI:!1})}))}),500):e(!0))}))}))}}}},function(e,t){e.exports=function(){for(var e={},t=0;t=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},a(347),t.setImmediate="undefined"!==typeof self&&self.setImmediate||"undefined"!==typeof e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!==typeof self&&self.clearImmediate||"undefined"!==typeof e&&e.clearImmediate||this&&this.clearImmediate}).call(this,a(15))},function(e,t,a){"use strict";var r=a(10).Buffer;e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),a=0;a>>0,s=new Uint8Array(i);e[a];){var b=t[e.charCodeAt(a)];if(255===b)return;for(var u=0,l=i-1;(0!==b||u>>0,s[l]=b%256>>>0,b=b/256>>>0;if(0!==b)throw new Error("Non-zero carry");c=u,a++}for(var h=i-c;h!==i&&0===s[h];)h++;var x=r.allocUnsafe(n+(i-h));x.fill(0,0,n);for(var p=n;h!==i;)x[p++]=s[h++];return x}return{encode:function(t){if((Array.isArray(t)||t instanceof Uint8Array)&&(t=r.from(t)),!r.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var a=0,n=0,c=0,i=t.length;c!==i&&0===t[c];)c++,a++;for(var o=(i-c)*s+1>>>0,b=new Uint8Array(o);c!==i;){for(var u=t[c],l=0,h=o-1;(0!==u||l>>0,b[h]=u%f>>>0,u=u/f>>>0;if(0!==u)throw new Error("Non-zero carry");n=l,c++}for(var x=o-n;x!==o&&0===b[x];)x++;for(var p=d.repeat(a);x=0;n--){var f=r(i[n]);a=r(new e(a+f,"hex"))}}return"0x"+a},t.normalize=c}).call(this,a(3).Buffer)},function(e,t,a){"use strict";a.d(t,"a",(function(){return n}));var r=a(77);function n(e,t){if(e){if("string"===typeof e)return Object(r.a)(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Object(r.a)(e,t):void 0}}},function(e,t,a){"use strict";var r=a(7),n=a(434),c=a(36),i=a(10).Buffer,f=a(205),d=a(108),o=a(109),s=i.alloc(128);function b(e,t){c.call(this,"digest"),"string"===typeof t&&(t=i.from(t));var a="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>a)?t=("rmd160"===e?new d:o(e)).update(t).digest():t.length0&&e.topics.length!==r+1&&(t={anonymous:!0,inputs:[]})}var n=t.anonymous?e.topics:e.topics.slice(1);return a.returnValues=b.decodeLog(t.inputs,e.data,n),delete a.returnValues.__length__,a.event=t.name,a.signature=t.anonymous||!e.topics[0]?null:e.topics[0],a.raw={data:a.data,topics:a.topics},delete a.data,delete a.topics,a},u.prototype._encodeMethodABI=function(){var e=this._method.signature,t=this.arguments||[],a=!1,r=this._parent.options.jsonInterface.filter((function(t){return"constructor"===e&&t.type===e||(t.signature===e||t.signature===e.replace("0x","")||t.name===e)&&"function"===t.type})).map((function(e){var r=Array.isArray(e.inputs)?e.inputs.length:0;if(r!==t.length)throw new Error("The number of arguments is not matching the methods required number. You need to pass "+r+" arguments.");return"function"===e.type&&(a=e.signature),Array.isArray(e.inputs)?e.inputs:[]})).map((function(e){return b.encodeParameters(e,t).replace("0x","")}))[0]||"";if("constructor"===e){if(!this._deployData)throw new Error("The contract has no contract data option set. This is necessary to append the constructor parameters.");return this._deployData.startsWith("0x")||(this._deployData="0x"+this._deployData),this._deployData+r}var n=a?a+r:r;if(!n)throw new Error("Couldn't find a matching contract method named \""+this._method.name+'".');return n},u.prototype._decodeMethodReturn=function(e,t){if(!t)return null;t=t.length>=2?t.slice(2):t;var a=b.decodeParameters(e,t);return 1===a.__length__?a[0]:(delete a.__length__,a)},u.prototype.deploy=function(e,t){if((e=e||{}).arguments=e.arguments||[],!(e=this._getOrSetDefaultOptions(e)).data){if("function"===typeof t)return t(o.ContractMissingDeployDataError());throw o.ContractMissingDeployDataError()}var a=this.options.jsonInterface.find((function(e){return"constructor"===e.type}))||{};return a.signature="constructor",this._createTxObject.apply({method:a,parent:this,deployData:e.data,_ethAccounts:this.constructor._ethAccounts},e.arguments)},u.prototype._generateEventOptions=function(){var e=Array.prototype.slice.call(arguments),t=this._getCallback(e),a="object"===(!!e[e.length-1]&&typeof e[e.length-1])?e.pop():{},r="string"===typeof e[0]?e[0]:"allevents",n="allevents"===r.toLowerCase()?{name:"ALLEVENTS",jsonInterface:this.options.jsonInterface}:this.options.jsonInterface.find((function(e){return"event"===e.type&&(e.name===r||e.signature==="0x"+r.replace("0x",""))}));if(!n)throw o.ContractEventDoesNotExistError(r);if(!i.isAddress(this.options.address))throw o.ContractNoAddressDefinedError();return{params:this._encodeEventABI(n,a),event:n,callback:t}},u.prototype.clone=function(){return new this.constructor(this.options.jsonInterface,this.options.address,this.options)},u.prototype.once=function(e,t,a){var r=Array.prototype.slice.call(arguments);if(!(a=this._getCallback(r)))throw o.ContractOnceRequiresCallbackError();t&&delete t.fromBlock,this._on(e,t,(function(e,t,r){r.unsubscribe(),"function"===typeof a&&a(e,t,r)}))},u.prototype._on=function(){var e=this._generateEventOptions.apply(this,arguments);e.params&&e.params.toBlock&&(delete e.params.toBlock,console.warn("Invalid option: toBlock. Use getPastEvents for specific range.")),this._checkListener("newListener",e.event.name),this._checkListener("removeListener",e.event.name);var t=new f({subscription:{params:1,inputFormatter:[d.inputLogFormatter],outputFormatter:this._decodeEventABI.bind(e.event),subscriptionHandler:function(e){e.removed?this.emit("changed",e):this.emit("data",e),"function"===typeof this.callback&&this.callback(null,e,this)}},type:"eth",requestManager:this._requestManager});return t.subscribe("logs",e.params,e.callback||function(){}),t},u.prototype.getPastEvents=function(){var e=this._generateEventOptions.apply(this,arguments),t=new c({name:"getPastLogs",call:"eth_getLogs",params:1,inputFormatter:[d.inputLogFormatter],outputFormatter:this._decodeEventABI.bind(e.event)});t.setRequestManager(this._requestManager);var a=t.buildCall();return t=null,a(e.params,e.callback)},u.prototype._createTxObject=function(){var e=Array.prototype.slice.call(arguments),t={};if("function"===this.method.type&&(t.call=this.parent._executeMethod.bind(t,"call"),t.call.request=this.parent._executeMethod.bind(t,"call",!0)),t.send=this.parent._executeMethod.bind(t,"send"),t.send.request=this.parent._executeMethod.bind(t,"send",!0),t.encodeABI=this.parent._encodeMethodABI.bind(t),t.estimateGas=this.parent._executeMethod.bind(t,"estimate"),t.createAccessList=this.parent._executeMethod.bind(t,"createAccessList"),e&&this.method.inputs&&e.length!==this.method.inputs.length){if(this.nextMethod)return this.nextMethod.apply(null,e);throw o.InvalidNumberOfParams(e.length,this.method.inputs.length,this.method.name)}return t.arguments=e||[],t._method=this.method,t._parent=this.parent,t._ethAccounts=this.parent.constructor._ethAccounts||this._ethAccounts,this.deployData&&(t._deployData=this.deployData),t},u.prototype._processExecuteArguments=function(e,t){var a={};if(a.type=e.shift(),a.callback=this._parent._getCallback(e),"call"!==a.type||!0===e[e.length-1]||"string"!==typeof e[e.length-1]&&!isFinite(e[e.length-1])||(a.defaultBlock=e.pop()),a.options="object"===(!!e[e.length-1]&&typeof e[e.length-1])?e.pop():{},a.generateRequest=!0===e[e.length-1]&&e.pop(),a.options=this._parent._getOrSetDefaultOptions(a.options),a.options.data=this.encodeABI(),!this._deployData&&!i.isAddress(this._parent.options.address))throw o.ContractNoAddressDefinedError();return this._deployData||(a.options.to=this._parent.options.address),a.options.data?a:i._fireError(new Error("Couldn't find a matching contract method, or the number of parameters is wrong."),t.eventEmitter,t.reject,a.callback)},u.prototype._executeMethod=function(){var e=this,t=this._parent._processExecuteArguments.call(this,Array.prototype.slice.call(arguments),a),a=s("send"!==t.type),r=e.constructor._ethAccounts||e._ethAccounts;if(t.generateRequest){var n={params:[d.inputCallFormatter.call(this._parent,t.options)],callback:t.callback};return"call"===t.type?(n.params.push(d.inputDefaultBlockNumberFormatter.call(this._parent,t.defaultBlock)),n.method="eth_call",n.format=this._parent._decodeMethodReturn.bind(null,this._method.outputs)):n.method="eth_sendTransaction",n}switch(t.type){case"createAccessList":if(!i.isAddress(t.options.from))return i._fireError(o.ContractNoFromAddressDefinedError(),a.eventEmitter,a.reject,t.callback);var f=new c({name:"createAccessList",call:"eth_createAccessList",params:2,inputFormatter:[d.inputTransactionFormatter,d.inputDefaultBlockNumberFormatter],requestManager:e._parent._requestManager,accounts:r,defaultAccount:e._parent.defaultAccount,defaultBlock:e._parent.defaultBlock}).createFunction();return f(t.options,t.callback);case"estimate":var u=new c({name:"estimateGas",call:"eth_estimateGas",params:1,inputFormatter:[d.inputCallFormatter],outputFormatter:i.hexToNumber,requestManager:e._parent._requestManager,accounts:r,defaultAccount:e._parent.defaultAccount,defaultBlock:e._parent.defaultBlock}).createFunction();return u(t.options,t.callback);case"call":var l=new c({name:"call",call:"eth_call",params:2,inputFormatter:[d.inputCallFormatter,d.inputDefaultBlockNumberFormatter],outputFormatter:function(t){return e._parent._decodeMethodReturn(e._method.outputs,t)},requestManager:e._parent._requestManager,accounts:r,defaultAccount:e._parent.defaultAccount,defaultBlock:e._parent.defaultBlock,handleRevert:e._parent.handleRevert,abiCoder:b}).createFunction();return l(t.options,t.defaultBlock,t.callback);case"send":if(!i.isAddress(t.options.from))return i._fireError(o.ContractNoFromAddressDefinedError(),a.eventEmitter,a.reject,t.callback);if("boolean"===typeof this._method.payable&&!this._method.payable&&t.options.value&&t.options.value>0)return i._fireError(new Error("Can not send value to non-payable contract method or constructor"),a.eventEmitter,a.reject,t.callback);var h={receiptFormatter:function(t){if(Array.isArray(t.logs)){var a=t.logs.map((function(t){return e._parent._decodeEventABI.call({name:"ALLEVENTS",jsonInterface:e._parent.options.jsonInterface},t)}));t.events={};var r=0;a.forEach((function(e){e.event?t.events[e.event]?Array.isArray(t.events[e.event])?t.events[e.event].push(e):t.events[e.event]=[t.events[e.event],e]:t.events[e.event]=e:(t.events[r]=e,r++)})),delete t.logs}return t},contractDeployFormatter:function(t){var a=e._parent.clone();return a.options.address=t.contractAddress,a}},x=new c({name:"sendTransaction",call:"eth_sendTransaction",params:1,inputFormatter:[d.inputTransactionFormatter],requestManager:e._parent._requestManager,accounts:e.constructor._ethAccounts||e._ethAccounts,defaultAccount:e._parent.defaultAccount,defaultBlock:e._parent.defaultBlock,transactionBlockTimeout:e._parent.transactionBlockTimeout,transactionConfirmationBlocks:e._parent.transactionConfirmationBlocks,transactionPollingTimeout:e._parent.transactionPollingTimeout,defaultCommon:e._parent.defaultCommon,defaultChain:e._parent.defaultChain,defaultHardfork:e._parent.defaultHardfork,handleRevert:e._parent.handleRevert,extraFormatters:h,abiCoder:b}).createFunction();return x(t.options,t.callback);default:throw new Error('Method "'+t.type+'" not implemented.')}},e.exports=u},function(e,t,a){t.pbkdf2=a(436),t.pbkdf2Sync=a(209)},function(e,t,a){"use strict";a.d(t,"a",(function(){return c}));var r=a(77);var n=a(151);function c(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Object(n.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,a){"use strict";a.d(t,"a",(function(){return c}));var r=a(97),n=a(98);function c(e,t,a){return c=Object(n.a)()?Reflect.construct:function(e,t,a){var n=[null];n.push.apply(n,t);var c=new(Function.bind.apply(e,n));return a&&Object(r.a)(c,a.prototype),c},c.apply(null,arguments)}},function(e,t){var a={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==a.call(e)}},function(e,t,a){(function(t){var r=a(6),n=a(154),c=a(265),i=a(292),f=a(357),d=function(e){return r.isBN(e)},o=function(e){return e&&e.constructor&&"BigNumber"===e.constructor.name},s=function(e){try{return n.apply(null,arguments)}catch(t){throw new Error(t+' Given value: "'+e+'"')}},b=function(e){return!!/^(0x)?[0-9a-f]{40}$/i.test(e)&&(!(!/^(0x|0X)?[0-9a-f]{40}$/.test(e)&&!/^(0x|0X)?[0-9A-F]{40}$/.test(e))||u(e))},u=function(e){e=e.replace(/^0x/i,"");for(var t=y(e.toLowerCase()).replace(/^0x/i,""),a=0;a<40;a++)if(parseInt(t[a],16)>7&&e[a].toUpperCase()!==e[a]||parseInt(t[a],16)<=7&&e[a].toLowerCase()!==e[a])return!1;return!0},l=function(e){var t="";e=(e=(e=(e=(e=c.encode(e)).replace(/^(?:\u0000)*/,"")).split("").reverse().join("")).replace(/^(?:\u0000)*/,"")).split("").reverse().join("");for(var a=0;a>>4).toString(16)),t.push((15&e[a]).toString(16));return"0x"+t.join("")},isHex:v,isHexStrict:m,stripHexPrefix:function(e){return 0!==e&&v(e)?e.replace(/^(-)?0x/i,"$1"):e},leftPad:function(e,t,a){var r=/^0x/i.test(e)||"number"===typeof e,n=t-(e=e.toString(16).replace(/^0x/i,"")).length+1>=0?t-e.length+1:0;return(r?"0x":"")+new Array(n).join(a||"0")+e},rightPad:function(e,t,a){var r=/^0x/i.test(e)||"number"===typeof e,n=t-(e=e.toString(16).replace(/^0x/i,"")).length+1>=0?t-e.length+1:0;return(r?"0x":"")+e+new Array(n).join(a||"0")},toTwosComplement:function(e){return"0x"+s(e).toTwos(256).toString(16,64)},sha3:y,sha3Raw:function(e){return null===(e=y(e))?g:e},toNumber:function(e){return"number"===typeof e?e:h(p(e))}}}).call(this,a(3).Buffer)},function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.KECCAK256_RLP=t.KECCAK256_RLP_S=t.KECCAK256_RLP_ARRAY=t.KECCAK256_RLP_ARRAY_S=t.KECCAK256_NULL=t.KECCAK256_NULL_S=t.TWO_POW256=t.MAX_INTEGER=void 0;var n=a(3).Buffer,c=r(a(42));t.MAX_INTEGER=new c.default("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),t.TWO_POW256=new c.default("10000000000000000000000000000000000000000000000000000000000000000",16),t.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",t.KECCAK256_NULL=n.from(t.KECCAK256_NULL_S,"hex"),t.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",t.KECCAK256_RLP_ARRAY=n.from(t.KECCAK256_RLP_ARRAY_S,"hex"),t.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",t.KECCAK256_RLP=n.from(t.KECCAK256_RLP_S,"hex")},function(e,t,a){"use strict";(function(e){var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){void 0===r&&(r=a),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,r){void 0===r&&(r=a),e[r]=t[a]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)"default"!==a&&Object.prototype.hasOwnProperty.call(e,a)&&r(t,e,a);return n(t,e),t},i=this&&this.__read||function(e,t){var a="function"===typeof Symbol&&e[Symbol.iterator];if(!a)return e;var r,n,c=a.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=c.next()).done;)i.push(r.value)}catch(f){n={error:f}}finally{try{r&&!r.done&&(a=c.return)&&a.call(c)}finally{if(n)throw n.error}}return i},f=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isZeroAddress=t.zeroAddress=t.importPublic=t.privateToAddress=t.privateToPublic=t.publicToAddress=t.pubToAddress=t.isValidPublic=t.isValidPrivate=t.generateAddress2=t.generateAddress=t.isValidChecksumAddress=t.toChecksumAddress=t.isValidAddress=t.Account=void 0;var d=f(a(21)),o=f(a(42)),s=c(a(17)),b=a(33),u=a(56),l=a(161),h=a(43),x=a(113),p=a(85),m=a(119),v=function(){function e(e,t,a,r){void 0===e&&(e=new o.default(0)),void 0===t&&(t=new o.default(0)),void 0===a&&(a=l.KECCAK256_RLP),void 0===r&&(r=l.KECCAK256_NULL),this.nonce=e,this.balance=t,this.stateRoot=a,this.codeHash=r,this._validate()}return e.fromAccountData=function(t){var a=t.nonce,r=t.balance,n=t.stateRoot,c=t.codeHash;return new e(a?new o.default((0,h.toBuffer)(a)):void 0,r?new o.default((0,h.toBuffer)(r)):void 0,n?(0,h.toBuffer)(n):void 0,c?(0,h.toBuffer)(c):void 0)},e.fromRlpSerializedAccount=function(e){var t=s.decode(e);if(!Array.isArray(t))throw new Error("Invalid serialized account input. Must be array");return this.fromValuesArray(t)},e.fromValuesArray=function(t){var a=i(t,4),r=a[0],n=a[1],c=a[2],f=a[3];return new e(new o.default(r),new o.default(n),c,f)},e.prototype._validate=function(){if(this.nonce.lt(new o.default(0)))throw new Error("nonce must be greater than zero");if(this.balance.lt(new o.default(0)))throw new Error("balance must be greater than zero");if(32!==this.stateRoot.length)throw new Error("stateRoot must have a length of 32");if(32!==this.codeHash.length)throw new Error("codeHash must have a length of 32")},e.prototype.raw=function(){return[(0,m.bnToUnpaddedBuffer)(this.nonce),(0,m.bnToUnpaddedBuffer)(this.balance),this.stateRoot,this.codeHash]},e.prototype.serialize=function(){return s.encode(this.raw())},e.prototype.isContract=function(){return!this.codeHash.equals(l.KECCAK256_NULL)},e.prototype.isEmpty=function(){return this.balance.isZero()&&this.nonce.isZero()&&this.codeHash.equals(l.KECCAK256_NULL)},e}();t.Account=v;t.isValidAddress=function(e){try{(0,p.assertIsString)(e)}catch(t){return!1}return/^0x[0-9a-fA-F]{40}$/.test(e)};t.toChecksumAddress=function(e,t){(0,p.assertIsHexString)(e);var a=(0,u.stripHexPrefix)(e).toLowerCase(),r="";t&&(r=(0,m.toType)(t,m.TypeOutput.BN).toString()+"0x");for(var n=(0,x.keccakFromString)(r+a).toString("hex"),c="0x",i=0;i=8?c+=a[i].toUpperCase():c+=a[i];return c};t.isValidChecksumAddress=function(e,a){return(0,t.isValidAddress)(e)&&(0,t.toChecksumAddress)(e,a)===e};t.generateAddress=function(t,a){(0,p.assertIsBuffer)(t),(0,p.assertIsBuffer)(a);var r=new o.default(a);return r.isZero()?(0,x.rlphash)([t,null]).slice(-20):(0,x.rlphash)([t,e.from(r.toArray())]).slice(-20)};t.generateAddress2=function(t,a,r){return(0,p.assertIsBuffer)(t),(0,p.assertIsBuffer)(a),(0,p.assertIsBuffer)(r),(0,d.default)(20===t.length),(0,d.default)(32===a.length),(0,x.keccak256)(e.concat([e.from("ff","hex"),t,a,(0,x.keccak256)(r)])).slice(-20)};t.isValidPrivate=function(e){return(0,b.privateKeyVerify)(e)};t.isValidPublic=function(t,a){return void 0===a&&(a=!1),(0,p.assertIsBuffer)(t),64===t.length?(0,b.publicKeyVerify)(e.concat([e.from([4]),t])):!!a&&(0,b.publicKeyVerify)(t)};t.pubToAddress=function(t,a){return void 0===a&&(a=!1),(0,p.assertIsBuffer)(t),a&&64!==t.length&&(t=e.from((0,b.publicKeyConvert)(t,!1).slice(1))),(0,d.default)(64===t.length),(0,x.keccak)(t).slice(-20)},t.publicToAddress=t.pubToAddress;t.privateToPublic=function(t){return(0,p.assertIsBuffer)(t),e.from((0,b.publicKeyCreate)(t,!1)).slice(1)};t.privateToAddress=function(e){return(0,t.publicToAddress)((0,t.privateToPublic)(e))};t.importPublic=function(t){return(0,p.assertIsBuffer)(t),64!==t.length&&(t=e.from((0,b.publicKeyConvert)(t,!1).slice(1))),t};t.zeroAddress=function(){var e=(0,h.zeros)(20);return(0,h.bufferToHex)(e)};t.isZeroAddress=function(e){try{(0,p.assertIsString)(e)}catch(a){return!1}return(0,t.zeroAddress)()===e}}).call(this,a(3).Buffer)},function(e,t,a){e.exports=a(296)(a(297))},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=new Array(t);a>8,i=255&n;c?a.push(c,i):a.push(i)}return a},r.zero2=n,r.toHex=c,r.encode=function(e,t){return"hex"===t?c(e):e}},function(e,t,a){"use strict";var r=t;r.base=a(84),r.short=a(300),r.mont=a(301),r.edwards=a(302)},function(e,t,a){"use strict";var r=a(28).rotr32;function n(e,t,a){return e&t^~e&a}function c(e,t,a){return e&t^e&a^t&a}function i(e,t,a){return e^t^a}t.ft_1=function(e,t,a,r){return 0===e?n(t,a,r):1===e||3===e?i(t,a,r):2===e?c(t,a,r):void 0},t.ch32=n,t.maj32=c,t.p32=i,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},function(e,t,a){"use strict";var r=a(28),n=a(72),c=a(167),i=a(23),f=r.sum32,d=r.sum32_4,o=r.sum32_5,s=c.ch32,b=c.maj32,u=c.s0_256,l=c.s1_256,h=c.g0_256,x=c.g1_256,p=n.BlockHash,m=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function v(){if(!(this instanceof v))return new v;p.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=m,this.W=new Array(64)}r.inherits(v,p),e.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(e,t){for(var a=this.W,r=0;r<16;r++)a[r]=e[t+r];for(;r0)if("string"===typeof t||i.objectMode||Object.getPrototypeOf(t)===f.prototype||(t=function(e){return f.from(e)}(t)),r)i.endEmitted?_(e,new w):E(e,i,t,!0);else if(i.ended)_(e,new g);else{if(i.destroyed)return!1;i.reading=!1,i.decoder&&!a?(t=i.decoder.write(t),i.objectMode||0!==t.length?E(e,i,t,!1):R(e,i)):E(e,i,t,!1)}else r||(i.reading=!1,R(e,i));return!i.ended&&(i.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=O?e=O:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function T(e){var t=e._readableState;o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(B,e))}function B(e){var t=e._readableState;o("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,L(e)}function R(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(C,e,t))}function C(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function I(e){o("readable nexttick read 0"),e.read(0)}function N(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),L(e),t.flowing&&!t.reading&&e.read(0)}function L(e){var t=e._readableState;for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function U(e,t){return 0===t.length?null:(t.objectMode?a=t.buffer.shift():!e||e>=t.length?(a=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):a=t.buffer.consume(e,t.decoder),a);var a}function F(e){var t=e._readableState;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(D,t,e))}function D(e,t){if(o("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var a=t._writableState;(!a||a.autoDestroy&&a.finished)&&t.destroy()}}function z(e,t){for(var a=0,r=e.length;a=t.highWaterMark:t.length>0)||t.ended))return o("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?F(this):T(this),null;if(0===(e=P(e,t))&&t.ended)return 0===t.length&&F(this),null;var r,n=t.needReadable;return o("need readable",n),(0===t.length||t.length-e0?U(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),a!==e&&t.ended&&F(this)),null!==r&&this.emit("data",r),r},S.prototype._read=function(e){_(this,new y("_read()"))},S.prototype.pipe=function(e,t){var a=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,o("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?d:p;function f(t,r){o("onunpipe"),t===a&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,o("cleanup"),e.removeListener("close",h),e.removeListener("finish",x),e.removeListener("drain",s),e.removeListener("error",l),e.removeListener("unpipe",f),a.removeListener("end",d),a.removeListener("end",p),a.removeListener("data",u),b=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||s())}function d(){o("onend"),e.end()}n.endEmitted?r.nextTick(i):a.once("end",i),e.on("unpipe",f);var s=function(e){return function(){var t=e._readableState;o("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&c(e,"data")&&(t.flowing=!0,L(e))}}(a);e.on("drain",s);var b=!1;function u(t){o("ondata");var r=e.write(t);o("dest.write",r),!1===r&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==z(n.pipes,e))&&!b&&(o("false write response, pause",n.awaitDrain),n.awaitDrain++),a.pause())}function l(t){o("onerror",t),p(),e.removeListener("error",l),0===c(e,"error")&&_(e,t)}function h(){e.removeListener("finish",x),p()}function x(){o("onfinish"),e.removeListener("close",h),p()}function p(){o("unpipe"),a.unpipe(e)}return a.on("data",u),function(e,t,a){if("function"===typeof e.prependListener)return e.prependListener(t,a);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(a):e._events[t]=[a,e._events[t]]:e.on(t,a)}(e,"error",l),e.once("close",h),e.once("finish",x),e.emit("pipe",a),n.flowing||(o("pipe resume"),a.resume()),e},S.prototype.unpipe=function(e){var t=this._readableState,a={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,a)),this;if(!e){var r=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var c=0;c0,!1!==n.flowing&&this.resume()):"readable"===e&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,o("on readable",n.length,n.reading),n.length?T(this):n.reading||r.nextTick(I,this))),a},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(e,t){var a=i.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(j,this),a},S.prototype.removeAllListeners=function(e){var t=i.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||r.nextTick(j,this),t},S.prototype.resume=function(){var e=this._readableState;return e.flowing||(o("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(N,e,t))}(this,e)),e.paused=!1,this},S.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(e){var t=this,a=this._readableState,r=!1;for(var n in e.on("end",(function(){if(o("wrapped end"),a.decoder&&!a.ended){var e=a.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(n){(o("wrapped data"),a.decoder&&(n=a.decoder.write(n)),!a.objectMode||null!==n&&void 0!==n)&&((a.objectMode||n&&n.length)&&(t.push(n)||(r=!0,e.pause())))})),e)void 0===this[n]&&"function"===typeof e[n]&&(this[n]=function(t){return function(){return e[t].apply(e,arguments)}}(n));for(var c=0;c-1))throw new w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(e,t,a){a(new x("_write()"))},S.prototype._writev=null,S.prototype.end=function(e,t,a){var n=this._writableState;return"function"===typeof e?(a=e,e=null,t=null):"function"===typeof t&&(a=t,t=null),null!==e&&void 0!==e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,a){t.ending=!0,B(e,t),a&&(t.finished?r.nextTick(a):e.once("finish",a));t.ended=!0,e.writable=!1}(this,n,a),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),S.prototype.destroy=b.destroy,S.prototype._undestroy=b.undestroy,S.prototype._destroy=function(e,t){t(e)}}).call(this,a(15),a(14))},function(e,t,a){"use strict";e.exports=s;var r=a(57).codes,n=r.ERR_METHOD_NOT_IMPLEMENTED,c=r.ERR_MULTIPLE_CALLBACK,i=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,f=r.ERR_TRANSFORM_WITH_LENGTH_0,d=a(58);function o(e,t){var a=this._transformState;a.transforming=!1;var r=a.writecb;if(null===r)return this.emit("error",new c);a.writechunk=null,a.writecb=null,null!=t&&this.push(t),r(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length=this._blockSize;){for(var c=this._blockOffset;c0;++i)this._length[i]+=f,(f=this._length[i]/4294967296|0)>0&&(this._length[i]-=4294967296*f);return this},c.prototype._update=function(){throw new Error("_update is not implemented")},c.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var a=0;a<4;++a)this._length[a]=0;return t},c.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=c},function(e,t,a){"use strict";(function(t,r){var n;e.exports=S,S.ReadableState=k;a(27).EventEmitter;var c=function(e,t){return e.listeners(t).length},i=a(180),f=a(3).Buffer,d=t.Uint8Array||function(){};var o,s=a(333);o=s&&s.debuglog?s.debuglog("stream"):function(){};var b,u,l,h=a(334),x=a(181),p=a(182).getHighWaterMark,m=a(59).codes,v=m.ERR_INVALID_ARG_TYPE,g=m.ERR_STREAM_PUSH_AFTER_EOF,y=m.ERR_METHOD_NOT_IMPLEMENTED,w=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;a(7)(S,i);var _=x.errorOrDestroy,M=["error","close","destroy","pause","resume"];function k(e,t,r){n=n||a(60),e=e||{},"boolean"!==typeof r&&(r=t instanceof n),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=p(this,e,"readableHighWaterMark",r),this.buffer=new h,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(b||(b=a(31).StringDecoder),this.decoder=new b(e.encoding),this.encoding=e.encoding)}function S(e){if(n=n||a(60),!(this instanceof S))return new S(e);var t=this instanceof n;this._readableState=new k(e,this,t),this.readable=!0,e&&("function"===typeof e.read&&(this._read=e.read),"function"===typeof e.destroy&&(this._destroy=e.destroy)),i.call(this)}function A(e,t,a,r,n){o("readableAddChunk",t);var c,i=e._readableState;if(null===t)i.reading=!1,function(e,t){if(o("onEofChunk"),t.ended)return;if(t.decoder){var a=t.decoder.end();a&&a.length&&(t.buffer.push(a),t.length+=t.objectMode?1:a.length)}t.ended=!0,t.sync?T(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,B(e)))}(e,i);else if(n||(c=function(e,t){var a;r=t,f.isBuffer(r)||r instanceof d||"string"===typeof t||void 0===t||e.objectMode||(a=new v("chunk",["string","Buffer","Uint8Array"],t));var r;return a}(i,t)),c)_(e,c);else if(i.objectMode||t&&t.length>0)if("string"===typeof t||i.objectMode||Object.getPrototypeOf(t)===f.prototype||(t=function(e){return f.from(e)}(t)),r)i.endEmitted?_(e,new w):E(e,i,t,!0);else if(i.ended)_(e,new g);else{if(i.destroyed)return!1;i.reading=!1,i.decoder&&!a?(t=i.decoder.write(t),i.objectMode||0!==t.length?E(e,i,t,!1):R(e,i)):E(e,i,t,!1)}else r||(i.reading=!1,R(e,i));return!i.ended&&(i.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=O?e=O:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function T(e){var t=e._readableState;o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(B,e))}function B(e){var t=e._readableState;o("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,L(e)}function R(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(C,e,t))}function C(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function I(e){o("readable nexttick read 0"),e.read(0)}function N(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),L(e),t.flowing&&!t.reading&&e.read(0)}function L(e){var t=e._readableState;for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function U(e,t){return 0===t.length?null:(t.objectMode?a=t.buffer.shift():!e||e>=t.length?(a=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):a=t.buffer.consume(e,t.decoder),a);var a}function F(e){var t=e._readableState;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(D,t,e))}function D(e,t){if(o("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var a=t._writableState;(!a||a.autoDestroy&&a.finished)&&t.destroy()}}function z(e,t){for(var a=0,r=e.length;a=t.highWaterMark:t.length>0)||t.ended))return o("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?F(this):T(this),null;if(0===(e=P(e,t))&&t.ended)return 0===t.length&&F(this),null;var r,n=t.needReadable;return o("need readable",n),(0===t.length||t.length-e0?U(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),a!==e&&t.ended&&F(this)),null!==r&&this.emit("data",r),r},S.prototype._read=function(e){_(this,new y("_read()"))},S.prototype.pipe=function(e,t){var a=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,o("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?d:p;function f(t,r){o("onunpipe"),t===a&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,o("cleanup"),e.removeListener("close",h),e.removeListener("finish",x),e.removeListener("drain",s),e.removeListener("error",l),e.removeListener("unpipe",f),a.removeListener("end",d),a.removeListener("end",p),a.removeListener("data",u),b=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||s())}function d(){o("onend"),e.end()}n.endEmitted?r.nextTick(i):a.once("end",i),e.on("unpipe",f);var s=function(e){return function(){var t=e._readableState;o("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&c(e,"data")&&(t.flowing=!0,L(e))}}(a);e.on("drain",s);var b=!1;function u(t){o("ondata");var r=e.write(t);o("dest.write",r),!1===r&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==z(n.pipes,e))&&!b&&(o("false write response, pause",n.awaitDrain),n.awaitDrain++),a.pause())}function l(t){o("onerror",t),p(),e.removeListener("error",l),0===c(e,"error")&&_(e,t)}function h(){e.removeListener("finish",x),p()}function x(){o("onfinish"),e.removeListener("close",h),p()}function p(){o("unpipe"),a.unpipe(e)}return a.on("data",u),function(e,t,a){if("function"===typeof e.prependListener)return e.prependListener(t,a);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(a):e._events[t]=[a,e._events[t]]:e.on(t,a)}(e,"error",l),e.once("close",h),e.once("finish",x),e.emit("pipe",a),n.flowing||(o("pipe resume"),a.resume()),e},S.prototype.unpipe=function(e){var t=this._readableState,a={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,a)),this;if(!e){var r=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var c=0;c0,!1!==n.flowing&&this.resume()):"readable"===e&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,o("on readable",n.length,n.reading),n.length?T(this):n.reading||r.nextTick(I,this))),a},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(e,t){var a=i.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(j,this),a},S.prototype.removeAllListeners=function(e){var t=i.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||r.nextTick(j,this),t},S.prototype.resume=function(){var e=this._readableState;return e.flowing||(o("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(N,e,t))}(this,e)),e.paused=!1,this},S.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(e){var t=this,a=this._readableState,r=!1;for(var n in e.on("end",(function(){if(o("wrapped end"),a.decoder&&!a.ended){var e=a.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(n){(o("wrapped data"),a.decoder&&(n=a.decoder.write(n)),!a.objectMode||null!==n&&void 0!==n)&&((a.objectMode||n&&n.length)&&(t.push(n)||(r=!0,e.pause())))})),e)void 0===this[n]&&"function"===typeof e[n]&&(this[n]=function(t){return function(){return e[t].apply(e,arguments)}}(n));for(var c=0;c-1))throw new w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(e,t,a){a(new x("_write()"))},S.prototype._writev=null,S.prototype.end=function(e,t,a){var n=this._writableState;return"function"===typeof e?(a=e,e=null,t=null):"function"===typeof t&&(a=t,t=null),null!==e&&void 0!==e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,a){t.ending=!0,B(e,t),a&&(t.finished?r.nextTick(a):e.once("finish",a));t.ended=!0,e.writable=!1}(this,n,a),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),S.prototype.destroy=b.destroy,S.prototype._undestroy=b.undestroy,S.prototype._destroy=function(e,t){t(e)}}).call(this,a(15),a(14))},function(e,t,a){"use strict";e.exports=s;var r=a(59).codes,n=r.ERR_METHOD_NOT_IMPLEMENTED,c=r.ERR_MULTIPLE_CALLBACK,i=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,f=r.ERR_TRANSFORM_WITH_LENGTH_0,d=a(60);function o(e,t){var a=this._transformState;a.transforming=!1;var r=a.writecb;if(null===r)return this.emit("error",new c);a.writechunk=null,a.writecb=null,null!=t&&this.push(t),r(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function u(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function l(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}r(d,n),d.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},d.prototype._update=function(e){for(var t,a=this._w,r=0|this._a,n=0|this._b,c=0|this._c,f=0|this._d,d=0|this._e,h=0|this._f,x=0|this._g,p=0|this._h,m=0;m<16;++m)a[m]=e.readInt32BE(4*m);for(;m<64;++m)a[m]=0|(((t=a[m-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+a[m-7]+l(a[m-15])+a[m-16];for(var v=0;v<64;++v){var g=p+u(d)+o(d,h,x)+i[v]+a[v]|0,y=b(r)+s(r,n,c)|0;p=x,x=h,h=d,d=f+g|0,f=c,c=n,n=r,r=g+y|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=c+this._c|0,this._d=f+this._d|0,this._e=d+this._e|0,this._f=h+this._f|0,this._g=x+this._g|0,this._h=p+this._h|0},d.prototype._hash=function(){var e=c.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=d},function(e,t,a){var r=a(7),n=a(61),c=a(10).Buffer,i=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],f=new Array(160);function d(){this.init(),this._w=f,n.call(this,128,112)}function o(e,t,a){return a^e&(t^a)}function s(e,t,a){return e&t|a&(e|t)}function b(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function u(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function l(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function x(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function p(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function m(e,t){return e>>>0>>0?1:0}r(d,n),d.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},d.prototype._update=function(e){for(var t=this._w,a=0|this._ah,r=0|this._bh,n=0|this._ch,c=0|this._dh,f=0|this._eh,d=0|this._fh,v=0|this._gh,g=0|this._hh,y=0|this._al,w=0|this._bl,_=0|this._cl,M=0|this._dl,k=0|this._el,S=0|this._fl,A=0|this._gl,E=0|this._hl,O=0;O<32;O+=2)t[O]=e.readInt32BE(4*O),t[O+1]=e.readInt32BE(4*O+4);for(;O<160;O+=2){var P=t[O-30],T=t[O-30+1],B=l(P,T),R=h(T,P),C=x(P=t[O-4],T=t[O-4+1]),j=p(T,P),I=t[O-14],N=t[O-14+1],L=t[O-32],U=t[O-32+1],F=R+N|0,D=B+I+m(F,R)|0;D=(D=D+C+m(F=F+j|0,j)|0)+L+m(F=F+U|0,U)|0,t[O]=D,t[O+1]=F}for(var z=0;z<160;z+=2){D=t[z],F=t[z+1];var H=s(a,r,n),q=s(y,w,_),K=b(a,y),W=b(y,a),V=u(f,k),$=u(k,f),G=i[z],Z=i[z+1],J=o(f,d,v),X=o(k,S,A),Y=E+$|0,Q=g+V+m(Y,E)|0;Q=(Q=(Q=Q+J+m(Y=Y+X|0,X)|0)+G+m(Y=Y+Z|0,Z)|0)+D+m(Y=Y+F|0,F)|0;var ee=W+q|0,te=K+H+m(ee,W)|0;g=v,E=A,v=d,A=S,d=f,S=k,f=c+Q+m(k=M+Y|0,M)|0,c=n,M=_,n=r,_=w,r=a,w=y,a=Q+te+m(y=Y+ee|0,Y)|0}this._al=this._al+y|0,this._bl=this._bl+w|0,this._cl=this._cl+_|0,this._dl=this._dl+M|0,this._el=this._el+k|0,this._fl=this._fl+S|0,this._gl=this._gl+A|0,this._hl=this._hl+E|0,this._ah=this._ah+a+m(this._al,y)|0,this._bh=this._bh+r+m(this._bl,w)|0,this._ch=this._ch+n+m(this._cl,_)|0,this._dh=this._dh+c+m(this._dl,M)|0,this._eh=this._eh+f+m(this._el,k)|0,this._fh=this._fh+d+m(this._fl,S)|0,this._gh=this._gh+v+m(this._gl,A)|0,this._hh=this._hh+g+m(this._hl,E)|0},d.prototype._hash=function(){var e=c.allocUnsafe(64);function t(t,a,r){e.writeInt32BE(t,r),e.writeInt32BE(a,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=d},function(e,t,a){"use strict";(function(t,r){var n=a(86);e.exports=g;var c,i=a(159);g.ReadableState=v;a(27).EventEmitter;var f=function(e,t){return e.listeners(t).length},d=a(188),o=a(117).Buffer,s=t.Uint8Array||function(){};var b=Object.create(a(73));b.inherits=a(7);var u=a(344),l=void 0;l=u&&u.debuglog?u.debuglog("stream"):function(){};var h,x=a(345),p=a(189);b.inherits(g,d);var m=["error","close","destroy","pause","resume"];function v(e,t){e=e||{};var r=t instanceof(c=c||a(44));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,i=e.readableHighWaterMark,f=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r&&(i||0===i)?i:f,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new x,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(h||(h=a(31).StringDecoder),this.decoder=new h(e.encoding),this.encoding=e.encoding)}function g(e){if(c=c||a(44),!(this instanceof g))return new g(e);this._readableState=new v(e,this),this.readable=!0,e&&("function"===typeof e.read&&(this._read=e.read),"function"===typeof e.destroy&&(this._destroy=e.destroy)),d.call(this)}function y(e,t,a,r,n){var c,i=e._readableState;null===t?(i.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var a=t.decoder.end();a&&a.length&&(t.buffer.push(a),t.length+=t.objectMode?1:a.length)}t.ended=!0,k(e)}(e,i)):(n||(c=function(e,t){var a;r=t,o.isBuffer(r)||r instanceof s||"string"===typeof t||void 0===t||e.objectMode||(a=new TypeError("Invalid non-string/buffer chunk"));var r;return a}(i,t)),c?e.emit("error",c):i.objectMode||t&&t.length>0?("string"===typeof t||i.objectMode||Object.getPrototypeOf(t)===o.prototype||(t=function(e){return o.from(e)}(t)),r?i.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):w(e,i,t,!0):i.ended?e.emit("error",new Error("stream.push() after EOF")):(i.reading=!1,i.decoder&&!a?(t=i.decoder.write(t),i.objectMode||0!==t.length?w(e,i,t,!1):A(e,i)):w(e,i,t,!1))):r||(i.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=_?e=_:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function k(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(l("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?n.nextTick(S,e):S(e))}function S(e){l("emit readable"),e.emit("readable"),T(e)}function A(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(E,e,t))}function E(e,t){for(var a=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(a=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):a=function(e,t,a){var r;ec.length?c.length:e;if(i===c.length?n+=c:n+=c.slice(0,e),0===(e-=i)){i===c.length?(++r,a.next?t.head=a.next:t.head=t.tail=null):(t.head=a,a.data=c.slice(i));break}++r}return t.length-=r,n}(e,t):function(e,t){var a=o.allocUnsafe(e),r=t.head,n=1;r.data.copy(a),e-=r.data.length;for(;r=r.next;){var c=r.data,i=e>c.length?c.length:e;if(c.copy(a,a.length-e,0,i),0===(e-=i)){i===c.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=c.slice(i));break}++n}return t.length-=n,a}(e,t);return r}(e,t.buffer,t.decoder),a);var a}function R(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,n.nextTick(C,t,e))}function C(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function j(e,t){for(var a=0,r=e.length;a=t.highWaterMark||t.ended))return l("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?R(this):k(this),null;if(0===(e=M(e,t))&&t.ended)return 0===t.length&&R(this),null;var r,n=t.needReadable;return l("need readable",n),(0===t.length||t.length-e0?B(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),a!==e&&t.ended&&R(this)),null!==r&&this.emit("data",r),r},g.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},g.prototype.pipe=function(e,t){var a=this,c=this._readableState;switch(c.pipesCount){case 0:c.pipes=e;break;case 1:c.pipes=[c.pipes,e];break;default:c.pipes.push(e)}c.pipesCount+=1,l("pipe count=%d opts=%j",c.pipesCount,t);var d=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?s:g;function o(t,r){l("onunpipe"),t===a&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,l("cleanup"),e.removeListener("close",m),e.removeListener("finish",v),e.removeListener("drain",b),e.removeListener("error",p),e.removeListener("unpipe",o),a.removeListener("end",s),a.removeListener("end",g),a.removeListener("data",x),u=!0,!c.awaitDrain||e._writableState&&!e._writableState.needDrain||b())}function s(){l("onend"),e.end()}c.endEmitted?n.nextTick(d):a.once("end",d),e.on("unpipe",o);var b=function(e){return function(){var t=e._readableState;l("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&f(e,"data")&&(t.flowing=!0,T(e))}}(a);e.on("drain",b);var u=!1;var h=!1;function x(t){l("ondata"),h=!1,!1!==e.write(t)||h||((1===c.pipesCount&&c.pipes===e||c.pipesCount>1&&-1!==j(c.pipes,e))&&!u&&(l("false write response, pause",a._readableState.awaitDrain),a._readableState.awaitDrain++,h=!0),a.pause())}function p(t){l("onerror",t),g(),e.removeListener("error",p),0===f(e,"error")&&e.emit("error",t)}function m(){e.removeListener("finish",v),g()}function v(){l("onfinish"),e.removeListener("close",m),g()}function g(){l("unpipe"),a.unpipe(e)}return a.on("data",x),function(e,t,a){if("function"===typeof e.prependListener)return e.prependListener(t,a);e._events&&e._events[t]?i(e._events[t])?e._events[t].unshift(a):e._events[t]=[a,e._events[t]]:e.on(t,a)}(e,"error",p),e.once("close",m),e.once("finish",v),e.emit("pipe",a),c.flowing||(l("pipe resume"),a.resume()),e},g.prototype.unpipe=function(e){var t=this._readableState,a={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,a)),this;if(!e){var r=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var c=0;c=t&&r<=a?r-t+10:e})).join("")},d=function(e){for(var t,a=e;a.length>2;)t=a.slice(0,9),a=parseInt(t,10)%97+a.slice(t.length);return parseInt(a,10)%97},o=function(){function e(t){r(this,e),this._iban=t}return n(e,[{key:"isValid",value:function(){return/^XE[0-9]{2}(ETH[0-9A-Z]{13}|[0-9A-Z]{30,31})$/.test(this._iban)&&1===d(f(this._iban))}},{key:"isDirect",value:function(){return 34===this._iban.length||35===this._iban.length}},{key:"isIndirect",value:function(){return 20===this._iban.length}},{key:"checksum",value:function(){return this._iban.substr(2,2)}},{key:"institution",value:function(){return this.isIndirect()?this._iban.substr(7,4):""}},{key:"client",value:function(){return this.isIndirect()?this._iban.substr(11):""}},{key:"toAddress",value:function(){if(this.isDirect()){var e=this._iban.substr(4),t=new i(e,36);return c.toChecksumAddress(t.toString(16,20))}return""}},{key:"toString",value:function(){return this._iban}}],[{key:"toAddress",value:function(t){if(!(t=new e(t)).isDirect())throw new Error("IBAN is indirect and can't be converted");return t.toAddress()}},{key:"toIban",value:function(t){return e.fromAddress(t).toString()}},{key:"fromAddress",value:function(t){if(!c.isAddress(t))throw new Error("Provided address is not a valid address: "+t);t=t.replace("0x","").replace("0X","");var a=function(e,t){for(var a=e;a.length<2*t;)a="0"+a;return a}(new i(t,16).toString(36),15);return e.fromBban(a.toUpperCase())}},{key:"fromBban",value:function(t){return new e("XE"+("0"+(98-d(f("XE00"+t)))).slice(-2)+t)}},{key:"createIndirect",value:function(t){return e.fromBban("ETH"+t.institution+t.identifier)}},{key:"isValid",value:function(t){return new e(t).isValid()}}]),e}();e.exports=o},function(e,t,a){"use strict";var r={messageId:0,toPayload:function(e,t){if(!e)throw new Error('JSONRPC method should be specified for params: "'+JSON.stringify(t)+'"!');return r.messageId++,{jsonrpc:"2.0",id:r.messageId,method:e,params:t||[]}},isValidResponse:function(e){return Array.isArray(e)?e.every(t):t(e);function t(e){return!!e&&!e.error&&"2.0"===e.jsonrpc&&("number"===typeof e.id||"string"===typeof e.id)&&void 0!==e.result}},toBatchPayload:function(e){return e.map((function(e){return r.toPayload(e.method,e.params)}))}};e.exports=r},function(e,t,a){(function(e,r){var n;!function(c){t&&t.nodeType,e&&e.nodeType;var i="object"==typeof r&&r;i.global!==i&&i.window!==i&&i.self;var f,d=2147483647,o=36,s=/^xn--/,b=/[^\x20-\x7E]/,u=/[\x2E\u3002\uFF0E\uFF61]/g,l={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},h=Math.floor,x=String.fromCharCode;function p(e){throw new RangeError(l[e])}function m(e,t){for(var a=e.length,r=[];a--;)r[a]=t(e[a]);return r}function v(e,t){var a=e.split("@"),r="";return a.length>1&&(r=a[0]+"@",e=a[1]),r+m((e=e.replace(u,".")).split("."),t).join(".")}function g(e){for(var t,a,r=[],n=0,c=e.length;n=55296&&t<=56319&&n65535&&(t+=x((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=x(e)})).join("")}function w(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function _(e,t,a){var r=0;for(e=a?h(e/700):e>>1,e+=h(e/t);e>455;r+=o)e=h(e/35);return h(r+36*e/(e+38))}function M(e){var t,a,r,n,c,i,f,s,b,u,l,x=[],m=e.length,v=0,g=128,w=72;for((a=e.lastIndexOf("-"))<0&&(a=0),r=0;r=128&&p("not-basic"),x.push(e.charCodeAt(r));for(n=a>0?a+1:0;n=m&&p("invalid-input"),((s=(l=e.charCodeAt(n++))-48<10?l-22:l-65<26?l-65:l-97<26?l-97:o)>=o||s>h((d-v)/i))&&p("overflow"),v+=s*i,!(s<(b=f<=w?1:f>=w+26?26:f-w));f+=o)i>h(d/(u=o-b))&&p("overflow"),i*=u;w=_(v-c,t=x.length+1,0==c),h(v/t)>d-g&&p("overflow"),g+=h(v/t),v%=t,x.splice(v++,0,g)}return y(x)}function k(e){var t,a,r,n,c,i,f,s,b,u,l,m,v,y,M,k=[];for(m=(e=g(e)).length,t=128,a=0,c=72,i=0;i=t&&lh((d-a)/(v=r+1))&&p("overflow"),a+=(f-t)*v,t=f,i=0;id&&p("overflow"),l==t){for(s=a,b=o;!(s<(u=b<=c?1:b>=c+26?26:b-c));b+=o)M=s-u,y=o-u,k.push(x(w(u+M%y,0))),s=h(M/y);k.push(x(w(s,0))),c=_(a,v,r==n),a=0,++r}++a,++t}return k.join("")}f={version:"1.4.1",ucs2:{decode:g,encode:y},decode:M,encode:k,toASCII:function(e){return v(e,(function(e){return b.test(e)?"xn--"+k(e):e}))},toUnicode:function(e){return v(e,(function(e){return s.test(e)?M(e.slice(4).toLowerCase()):e}))}},void 0===(n=function(){return f}.call(t,a,t,e))||(e.exports=n)}()}).call(this,a(24)(e),a(15))},function(e,t,a){(function(e){t.fetch=f(e.fetch)&&f(e.ReadableStream),t.writableStream=f(e.WritableStream),t.abortController=f(e.AbortController),t.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),t.blobConstructor=!0}catch(d){}var a;function r(){if(void 0!==a)return a;if(e.XMLHttpRequest){a=new e.XMLHttpRequest;try{a.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(d){a=null}}else a=null;return a}function n(e){var t=r();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(d){}return!1}var c="undefined"!==typeof e.ArrayBuffer,i=c&&f(e.ArrayBuffer.prototype.slice);function f(e){return"function"===typeof e}t.arraybuffer=t.fetch||c&&n("arraybuffer"),t.msstream=!t.fetch&&i&&n("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&c&&n("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!r()&&f(r().overrideMimeType),t.vbArray=f(e.VBArray),a=null}).call(this,a(15))},function(e,t,a){(function(e,r,n){var c=a(194),i=a(7),f=a(69),d=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},o=t.IncomingMessage=function(t,a,i,d){var o=this;if(f.Readable.call(o),o._mode=i,o.headers={},o.rawHeaders=[],o.trailers={},o.rawTrailers=[],o.on("end",(function(){e.nextTick((function(){o.emit("close")}))})),"fetch"===i){if(o._fetchResponse=a,o.url=a.url,o.statusCode=a.status,o.statusMessage=a.statusText,a.headers.forEach((function(e,t){o.headers[t.toLowerCase()]=e,o.rawHeaders.push(t,e)})),c.writableStream){var s=new WritableStream({write:function(e){return new Promise((function(t,a){o._destroyed?a():o.push(new r(e))?t():o._resumeFetch=t}))},close:function(){n.clearTimeout(d),o._destroyed||o.push(null)},abort:function(e){o._destroyed||o.emit("error",e)}});try{return void a.body.pipeTo(s).catch((function(e){n.clearTimeout(d),o._destroyed||o.emit("error",e)}))}catch(h){}}var b=a.body.getReader();!function e(){b.read().then((function(t){if(!o._destroyed){if(t.done)return n.clearTimeout(d),void o.push(null);o.push(new r(t.value)),e()}})).catch((function(e){n.clearTimeout(d),o._destroyed||o.emit("error",e)}))}()}else{if(o._xhr=t,o._pos=0,o.url=t.responseURL,o.statusCode=t.status,o.statusMessage=t.statusText,t.getAllResponseHeaders().split(/\r?\n/).forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var a=t[1].toLowerCase();"set-cookie"===a?(void 0===o.headers[a]&&(o.headers[a]=[]),o.headers[a].push(t[2])):void 0!==o.headers[a]?o.headers[a]+=", "+t[2]:o.headers[a]=t[2],o.rawHeaders.push(t[1],t[2])}})),o._charset="x-user-defined",!c.overrideMimeType){var u=o.rawHeaders["mime-type"];if(u){var l=u.match(/;\s*charset=([^;])(;|$)/);l&&(o._charset=l[1].toLowerCase())}o._charset||(o._charset="utf-8")}}};i(o,f.Readable),o.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},o.prototype._onXHRProgress=function(){var e=this,t=e._xhr,a=null;switch(e._mode){case"text:vbarray":if(t.readyState!==d.DONE)break;try{a=new n.VBArray(t.responseBody).toArray()}catch(s){}if(null!==a){e.push(new r(a));break}case"text":try{a=t.responseText}catch(s){e._mode="text:vbarray";break}if(a.length>e._pos){var c=a.substr(e._pos);if("x-user-defined"===e._charset){for(var i=new r(c.length),f=0;fe._pos&&(e.push(new r(new Uint8Array(o.result.slice(e._pos)))),e._pos=o.result.byteLength)},o.onload=function(){e.push(null)},o.readAsArrayBuffer(a)}e._xhr.readyState===d.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this,a(14),a(3).Buffer,a(15))},function(e,t,a){var r=a(121),n=a(70),c=e.exports;for(var i in r)r.hasOwnProperty(i)&&(c[i]=r[i]);function f(e){if("string"===typeof e&&(e=n.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}c.request=function(e,t){return e=f(e),r.request.call(this,e,t)},c.get=function(e,t){return e=f(e),r.get.call(this,e,t)}},function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var r="bignumber/5.5.0"},function(e,t,a){"use strict";e.exports={addresses:{main:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",ropsten:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",rinkeby:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",goerli:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},interfaceIds:{addr:"0x3b3b57de",setAddr:"0x3b3b57de",pubkey:"0xc8690233",setPubkey:"0xc8690233",contenthash:"0xbc1c58d1",setContenthash:"0xbc1c58d1",content:"0xd8389dc5",setContent:"0xd8389dc5"}}},function(e,t,a){var r=a(3).Buffer,n=a(19),c=a(246).AbiCoder,i=a(246).ParamType,f=new c((function(e,t){return!e.match(/^u?int/)||Array.isArray(t)||t&&"object"===typeof t&&"BN"===t.constructor.name?t:t.toString()}));function d(){}var o=function(){};o.prototype.encodeFunctionSignature=function(e){return("function"===typeof e||"object"===typeof e&&e)&&(e=n._jsonInterfaceMethodToString(e)),n.sha3(e).slice(0,10)},o.prototype.encodeEventSignature=function(e){return("function"===typeof e||"object"===typeof e&&e)&&(e=n._jsonInterfaceMethodToString(e)),n.sha3(e)},o.prototype.encodeParameter=function(e,t){return this.encodeParameters([e],[t])},o.prototype.encodeParameters=function(e,t){var a=this;return e=a.mapTypes(e),t=t.map((function(t,r){var n=e[r];if("object"===typeof n&&n.type&&(n=n.type),t=a.formatParam(n,t),"string"===typeof n&&n.includes("tuple")){!function e(t,r){if("array"===t.name)return r.map((function(a){return e(f._getCoder(i.from(t.type.replace("[]",""))),a)}));t.coders.forEach((function(t,n){"tuple"===t.name?e(t,r[n]):r[n]=a.formatParam(t.name,r[n])}))}(f._getCoder(i.from(n)),t)}return t})),f.encode(e,t)},o.prototype.mapTypes=function(e){var t=this,a=[];return e.forEach((function(e){if("object"===typeof e&&"function"===e.type&&(e=Object.assign({},e,{type:"bytes24"})),t.isSimplifiedStructFormat(e)){var r=Object.keys(e)[0];a.push(Object.assign(t.mapStructNameAndType(r),{components:t.mapStructToCoderFormat(e[r])}))}else a.push(e)})),a},o.prototype.isSimplifiedStructFormat=function(e){return"object"===typeof e&&"undefined"===typeof e.components&&"undefined"===typeof e.name},o.prototype.mapStructNameAndType=function(e){var t="tuple";return e.indexOf("[]")>-1&&(t="tuple[]",e=e.slice(0,-2)),{type:t,name:e}},o.prototype.mapStructToCoderFormat=function(e){var t=this,a=[];return Object.keys(e).forEach((function(r){"object"!==typeof e[r]?a.push({name:r,type:e[r]}):a.push(Object.assign(t.mapStructNameAndType(r),{components:t.mapStructToCoderFormat(e[r])}))})),a},o.prototype.formatParam=function(e,t){var a=this,c=new RegExp(/^bytes([0-9]*)$/),i=new RegExp(/^bytes([0-9]*)\[\]$/),f=new RegExp(/^(u?int)([0-9]*)$/),d=new RegExp(/^(u?int)([0-9]*)\[\]$/);if(n.isBN(t)||n.isBigNumber(t))return t.toString(10);if(e.match(i)||e.match(d))return t.map((function(t){return a.formatParam(e.replace("[]",""),t)}));var o=e.match(f);if(o){var s=parseInt(o[2]||"256");s/80&&(!t||"0x"===t||"0X"===t))throw new Error("Returned values aren't valid, did it run Out of Gas? You might also see this error if you are not using the correct ABI for the contract you are retrieving data from, requesting data from a block number that does not exist, or querying a node which is not fully synced.");var r=f.decode(this.mapTypes(e),"0x"+t.replace(/0x/i,""),a),n=new d;return n.__length__=0,e.forEach((function(e,t){var a=r[n.__length__];a="0x"===a?null:a,n[t]=a,("function"===typeof e||e&&"object"===typeof e)&&e.name&&(n[e.name]=a),n.__length__++})),n},o.prototype.decodeLog=function(e,t,a){var r=this;a=Array.isArray(a)?a:[a],t=t||"";var n=[],c=[],i=0;e.forEach((function(e,t){e.indexed?(c[t]=["bool","int","uint","address","fixed","ufixed"].find((function(t){return-1!==e.type.indexOf(t)}))?r.decodeParameter(e.type,a[i]):a[i],i++):n[t]=e}));var f=t,o=f?this.decodeParametersWith(n,f,!0):[],s=new d;return s.__length__=0,e.forEach((function(e,t){s[t]="string"===e.type?"":null,"undefined"!==typeof o[t]&&(s[t]=o[t]),"undefined"!==typeof c[t]&&(s[t]=c[t]),e.name&&(s[e.name]=s[t]),s.__length__++})),s};var s=new o;e.exports=s},function(e,t,a){"use strict";(function(t){var r=a(71);function n(e){return parseInt(e.toString("hex"),16)}function c(e){var a=e.toString(16);return a.length%2===1&&(a="0"+a),t.from(a,"hex")}e.exports={numberToBuffer:c,bufferToNumber:n,varintBufferEncode:function(e){return t.from(r.encode(n(e)))},varintBufferDecode:function(e){return c(r.decode(e))},varintEncode:function(e){return t.from(r.encode(e))}}}).call(this,a(3).Buffer)},function(e,t,a){"use strict";var r=a(38),n=a(39),c=a(3).Buffer,i=a(123),f=a(414),d=a(420),o=a(74),s=a(425),b=a(426),u=function(e){function t(e,a,n,o){if(r(this,t),l.isCID(e)){var s=e;return this.version=s.version,this.codec=s.codec,this.multihash=c.from(s.multihash),void(this.multibaseName=s.multibaseName||(0===s.version?"base58btc":"base32"))}if("string"===typeof e){var b=f.isEncoded(e);if(b){var u=f.decode(e);this.version=parseInt(u.slice(0,1).toString("hex"),16),this.codec=d.getCodec(u.slice(1)),this.multihash=d.rmPrefix(u.slice(1)),this.multibaseName=b}else this.version=0,this.codec="dag-pb",this.multihash=i.fromB58String(e),this.multibaseName="base58btc";return t.validateCID(this),void Object.defineProperty(this,"string",{value:e})}if(c.isBuffer(e)){var h=e.slice(0,1),x=parseInt(h.toString("hex"),16);if(1===x){var p=e;this.version=x,this.codec=d.getCodec(p.slice(1)),this.multihash=d.rmPrefix(p.slice(1)),this.multibaseName="base32"}else this.version=0,this.codec="dag-pb",this.multihash=e,this.multibaseName="base58btc";t.validateCID(this)}else this.version=e,this.codec=a,this.multihash=n,this.multibaseName=o||(0===e?"base58btc":"base32"),t.validateCID(this)}return n(t,[{key:"buffer",get:function(){var e=this._buffer;if(!e){if(0===this.version)e=this.multihash;else{if(1!==this.version)throw new Error("unsupported version");e=c.concat([c.from("01","hex"),d.getCodeVarint(this.codec),this.multihash])}Object.defineProperty(this,"_buffer",{value:e})}return e}},{key:"prefix",get:function(){return c.concat([c.from("0".concat(this.version),"hex"),d.getCodeVarint(this.codec),i.prefix(this.multihash)])}},{key:"toV0",value:function(){if("dag-pb"!==this.codec)throw new Error("Cannot convert a non dag-pb CID to CIDv0");var e=i.decode(this.multihash),t=e.name,a=e.length;if("sha2-256"!==t)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");if(32!==a)throw new Error("Cannot convert non 32 byte multihash CID to CIDv0");return new l(0,this.codec,this.multihash)}},{key:"toV1",value:function(){return new l(1,this.codec,this.multihash)}},{key:"toBaseEncodedString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.multibaseName;if(this.string&&e===this.multibaseName)return this.string;var t=null;if(0===this.version){if("base58btc"!==e)throw new Error("not supported with CIDv0, to support different bases, please migrate the instance do CIDv1, you can do that through cid.toV1()");t=i.toB58String(this.multihash)}else{if(1!==this.version)throw new Error("unsupported version");t=f.encode(e,this.buffer).toString()}return e===this.multibaseName&&Object.defineProperty(this,"string",{value:t}),t}},{key:e,value:function(){return"CID("+this.toString()+")"}},{key:"toString",value:function(e){return this.toBaseEncodedString(e)}},{key:"toJSON",value:function(){return{codec:this.codec,version:this.version,hash:this.multihash}}},{key:"equals",value:function(e){return this.codec===e.codec&&this.version===e.version&&this.multihash.equals(e.multihash)}}],[{key:"validateCID",value:function(e){var t=s.checkCIDComponents(e);if(t)throw new Error(t)}}]),t}(Symbol.for("nodejs.util.inspect.custom")),l=b(u,{className:"CID",symbolName:"@ipld/js-cid/CID"});l.codecs=o,e.exports=l},function(e,t,a){"use strict";var r=a(71),n=a(3).Buffer;function c(e){return parseInt(e.toString("hex"),16)}function i(e){var t=e.toString(16);return t.length%2===1&&(t="0"+t),n.from(t,"hex")}e.exports={numberToBuffer:i,bufferToNumber:c,varintBufferEncode:function(e){return n.from(r.encode(c(e)))},varintBufferDecode:function(e){return i(r.decode(e))},varintEncode:function(e){return n.from(r.encode(e))}}},function(e,t,a){"use strict";var r=a(41),n=a(45),c=a(19),i=a(89),f=a(16).formatters,d=function(){var e=this;r.packageInit(this,arguments),this.net=new i(this);var t=null,a="latest";Object.defineProperty(this,"defaultAccount",{get:function(){return t},set:function(e){return e&&(t=c.toChecksumAddress(f.inputAddressFormatter(e))),d.forEach((function(e){e.defaultAccount=t})),e},enumerable:!0}),Object.defineProperty(this,"defaultBlock",{get:function(){return a},set:function(e){return a=e,d.forEach((function(e){e.defaultBlock=a})),e},enumerable:!0});var d=[new n({name:"getAccounts",call:"personal_listAccounts",params:0,outputFormatter:c.toChecksumAddress}),new n({name:"newAccount",call:"personal_newAccount",params:1,inputFormatter:[null],outputFormatter:c.toChecksumAddress}),new n({name:"unlockAccount",call:"personal_unlockAccount",params:3,inputFormatter:[f.inputAddressFormatter,null,null]}),new n({name:"lockAccount",call:"personal_lockAccount",params:1,inputFormatter:[f.inputAddressFormatter]}),new n({name:"importRawKey",call:"personal_importRawKey",params:2}),new n({name:"sendTransaction",call:"personal_sendTransaction",params:2,inputFormatter:[f.inputTransactionFormatter,null]}),new n({name:"signTransaction",call:"personal_signTransaction",params:2,inputFormatter:[f.inputTransactionFormatter,null]}),new n({name:"sign",call:"personal_sign",params:3,inputFormatter:[f.inputSignFormatter,f.inputAddressFormatter,null]}),new n({name:"ecRecover",call:"personal_ecRecover",params:2,inputFormatter:[f.inputSignFormatter,null]})];d.forEach((function(t){t.attachToObject(e),t.setRequestManager(e._requestManager),t.defaultBlock=e.defaultBlock,t.defaultAccount=e.defaultAccount}))};r.addProviders(d),e.exports=d},function(e,t,a){a(433);var r=function(e,t){return parseInt(e.slice(2*t+2,2*t+4),16)},n=function(e){return(e.length-2)/2},c=function(e){for(var t=[],a=2,r=e.length;a>6|192);else{if(n>55295&&n<56320){if(++r==e.length)return null;var c=e.charCodeAt(r);if(c<56320||c>57343)return null;a+=t((n=65536+((1023&n)<<10)+(1023&c))>>18|240),a+=t(n>>12&63|128)}else a+=t(n>>12|224);a+=t(n>>6&63|128)}a+=t(63&n|128)}}return a},toString:function(e){for(var t="",a=0,c=n(e);a127){if(i>191&&i<224){if(a>=c)return null;i=(31&i)<<6|63&r(e,a)}else if(i>223&&i<240){if(a+1>=c)return null;i=(15&i)<<12|(63&r(e,a))<<6|63&r(e,++a)}else{if(!(i>239&&i<248))return null;if(a+2>=c)return null;i=(7&i)<<18|(63&r(e,a))<<12|(63&r(e,++a))<<6|63&r(e,++a)}++a}if(i<=65535)t+=String.fromCharCode(i);else{if(!(i<=1114111))return null;i-=65536,t+=String.fromCharCode(i>>10|55296),t+=String.fromCharCode(1023&i|56320)}}return t},fromNumber:function(e){var t=e.toString(16);return t.length%2===0?"0x"+t:"0x0"+t},toNumber:function(e){return parseInt(e.slice(2),16)},fromNat:function(e){return"0x0"===e?"0x":e.length%2===0?e:"0x0"+e.slice(2)},toNat:function(e){return"0"===e[2]?"0x"+e.slice(3):e},fromArray:i,toArray:c,fromUint8Array:function(e){return i([].slice.call(e,0))},toUint8Array:function(e){return new Uint8Array(c(e))}}},function(e,t,a){var r=a(115);e.exports=function(e){return(new r).update(e).digest()}},function(e){e.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},function(e,t){var a=Math.pow(2,30)-1;e.exports=function(e,t){if("number"!==typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!==typeof t)throw new TypeError("Key length not a number");if(t<0||t>a||t!==t)throw new TypeError("Bad key length")}},function(e,t,a){(function(t,a){var r;if(t.process&&t.process.browser)r="utf-8";else if(t.process&&t.process.version){r=parseInt(a.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary"}else r="utf-8";e.exports=r}).call(this,a(15),a(14))},function(e,t,a){var r=a(205),n=a(108),c=a(109),i=a(10).Buffer,f=a(207),d=a(208),o=a(210),s=i.alloc(128),b={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function u(e,t,a){var f=function(e){function t(t){return c(e).update(t).digest()}function a(e){return(new n).update(e).digest()}return"rmd160"===e||"ripemd160"===e?a:"md5"===e?r:t}(e),d="sha512"===e||"sha384"===e?128:64;t.length>d?t=f(t):t.length>>0},t.writeUInt32BE=function(e,t,a){e[0+a]=t>>>24,e[1+a]=t>>>16&255,e[2+a]=t>>>8&255,e[3+a]=255&t},t.ip=function(e,t,a,r){for(var n=0,c=0,i=6;i>=0;i-=2){for(var f=0;f<=24;f+=8)n<<=1,n|=t>>>f+i&1;for(f=0;f<=24;f+=8)n<<=1,n|=e>>>f+i&1}for(i=6;i>=0;i-=2){for(f=1;f<=25;f+=8)c<<=1,c|=t>>>f+i&1;for(f=1;f<=25;f+=8)c<<=1,c|=e>>>f+i&1}a[r+0]=n>>>0,a[r+1]=c>>>0},t.rip=function(e,t,a,r){for(var n=0,c=0,i=0;i<4;i++)for(var f=24;f>=0;f-=8)n<<=1,n|=t>>>f+i&1,n<<=1,n|=e>>>f+i&1;for(i=4;i<8;i++)for(f=24;f>=0;f-=8)c<<=1,c|=t>>>f+i&1,c<<=1,c|=e>>>f+i&1;a[r+0]=n>>>0,a[r+1]=c>>>0},t.pc1=function(e,t,a,r){for(var n=0,c=0,i=7;i>=5;i--){for(var f=0;f<=24;f+=8)n<<=1,n|=t>>f+i&1;for(f=0;f<=24;f+=8)n<<=1,n|=e>>f+i&1}for(f=0;f<=24;f+=8)n<<=1,n|=t>>f+i&1;for(i=1;i<=3;i++){for(f=0;f<=24;f+=8)c<<=1,c|=t>>f+i&1;for(f=0;f<=24;f+=8)c<<=1,c|=e>>f+i&1}for(f=0;f<=24;f+=8)c<<=1,c|=e>>f+i&1;a[r+0]=n>>>0,a[r+1]=c>>>0},t.r28shl=function(e,t){return e<>>28-t};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,a,n){for(var c=0,i=0,f=r.length>>>1,d=0;d>>r[d]&1;for(d=f;d>>r[d]&1;a[n+0]=c>>>0,a[n+1]=i>>>0},t.expand=function(e,t,a){var r=0,n=0;r=(1&e)<<5|e>>>27;for(var c=23;c>=15;c-=4)r<<=6,r|=e>>>c&63;for(c=11;c>=3;c-=4)n|=e>>>c&63,n<<=6;n|=(31&e)<<1|e>>>31,t[a+0]=r>>>0,t[a+1]=n>>>0};var n=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var a=0,r=0;r<4;r++){a<<=4,a|=n[64*r+(e>>>18-6*r&63)]}for(r=0;r<4;r++){a<<=4,a|=n[256+64*r+(t>>>18-6*r&63)]}return a>>>0};var c=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,a=0;a>>c[a]&1;return t>>>0},t.padSplit=function(e,t,a){for(var r=e.toString(2);r.length>>1];a=c.r28shl(a,f),n=c.r28shl(n,f),c.pc2(a,n,e.keys,i)}},d.prototype._update=function(e,t,a,r){var n=this._desState,i=c.readUInt32BE(e,t),f=c.readUInt32BE(e,t+4);c.ip(i,f,n.tmp,0),i=n.tmp[0],f=n.tmp[1],"encrypt"===this.type?this._encrypt(n,i,f,n.tmp,0):this._decrypt(n,i,f,n.tmp,0),i=n.tmp[0],f=n.tmp[1],c.writeUInt32BE(a,i,r),c.writeUInt32BE(a,f,r+4)},d.prototype._pad=function(e,t){for(var a=e.length-t,r=t;r>>0,i=u}c.rip(f,i,r,n)},d.prototype._decrypt=function(e,t,a,r,n){for(var i=a,f=t,d=e.keys.length-2;d>=0;d-=2){var o=e.keys[d],s=e.keys[d+1];c.expand(i,e.tmp,0),o^=e.tmp[0],s^=e.tmp[1];var b=c.substitute(o,s),u=i;i=(f^c.permute(b))>>>0,f=u}c.rip(i,f,r,n)}},function(e,t,a){var r=a(75),n=a(10).Buffer,c=a(214);function i(e){var t=e._cipher.encryptBlockRaw(e._prev);return c(e._prev),t}t.encrypt=function(e,t){var a=Math.ceil(t.length/16),c=e._cache.length;e._cache=n.concat([e._cache,n.allocUnsafe(16*a)]);for(var f=0;fe;)a.ishrn(1);if(a.isEven()&&a.iadd(f),a.testn(1)||a.iadd(d),t.cmp(d)){if(!t.cmp(o))for(;a.mod(s).cmp(b);)a.iadd(l)}else for(;a.mod(c).cmp(u);)a.iadd(l);if(p(h=a.shrn(1))&&p(a)&&m(h)&&m(a)&&i.test(h)&&i.test(a))return a}}},function(e,t,a){var r=a(6),n=a(111);function c(e){this.rand=e||new n.Rand}e.exports=c,c.create=function(e){return new c(e)},c.prototype._randbelow=function(e){var t=e.bitLength(),a=Math.ceil(t/8);do{var n=new r(this.rand.generate(a))}while(n.cmp(e)>=0);return n},c.prototype._randrange=function(e,t){var a=t.sub(e);return e.add(this._randbelow(a))},c.prototype.test=function(e,t,a){var n=e.bitLength(),c=r.mont(e),i=new r(1).toRed(c);t||(t=Math.max(1,n/48|0));for(var f=e.subn(1),d=0;!f.testn(d);d++);for(var o=e.shrn(d),s=f.toRed(c);t>0;t--){var b=this._randrange(new r(2),f);a&&a(b);var u=b.toRed(c).redPow(o);if(0!==u.cmp(i)&&0!==u.cmp(s)){for(var l=1;l0;t--){var s=this._randrange(new r(2),i),b=e.gcd(s);if(0!==b.cmpn(1))return b;var u=s.toRed(n).redPow(d);if(0!==u.cmp(c)&&0!==u.cmp(o)){for(var l=1;l0)if("string"===typeof t||i.objectMode||Object.getPrototypeOf(t)===f.prototype||(t=function(e){return f.from(e)}(t)),r)i.endEmitted?_(e,new w):E(e,i,t,!0);else if(i.ended)_(e,new g);else{if(i.destroyed)return!1;i.reading=!1,i.decoder&&!a?(t=i.decoder.write(t),i.objectMode||0!==t.length?E(e,i,t,!1):R(e,i)):E(e,i,t,!1)}else r||(i.reading=!1,R(e,i));return!i.ended&&(i.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=O?e=O:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function T(e){var t=e._readableState;o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(B,e))}function B(e){var t=e._readableState;o("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,L(e)}function R(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(C,e,t))}function C(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function I(e){o("readable nexttick read 0"),e.read(0)}function N(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),L(e),t.flowing&&!t.reading&&e.read(0)}function L(e){var t=e._readableState;for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function U(e,t){return 0===t.length?null:(t.objectMode?a=t.buffer.shift():!e||e>=t.length?(a=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):a=t.buffer.consume(e,t.decoder),a);var a}function F(e){var t=e._readableState;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(D,t,e))}function D(e,t){if(o("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var a=t._writableState;(!a||a.autoDestroy&&a.finished)&&t.destroy()}}function z(e,t){for(var a=0,r=e.length;a=t.highWaterMark:t.length>0)||t.ended))return o("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?F(this):T(this),null;if(0===(e=P(e,t))&&t.ended)return 0===t.length&&F(this),null;var r,n=t.needReadable;return o("need readable",n),(0===t.length||t.length-e0?U(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),a!==e&&t.ended&&F(this)),null!==r&&this.emit("data",r),r},S.prototype._read=function(e){_(this,new y("_read()"))},S.prototype.pipe=function(e,t){var a=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,o("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?d:p;function f(t,r){o("onunpipe"),t===a&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,o("cleanup"),e.removeListener("close",h),e.removeListener("finish",x),e.removeListener("drain",s),e.removeListener("error",l),e.removeListener("unpipe",f),a.removeListener("end",d),a.removeListener("end",p),a.removeListener("data",u),b=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||s())}function d(){o("onend"),e.end()}n.endEmitted?r.nextTick(i):a.once("end",i),e.on("unpipe",f);var s=function(e){return function(){var t=e._readableState;o("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&c(e,"data")&&(t.flowing=!0,L(e))}}(a);e.on("drain",s);var b=!1;function u(t){o("ondata");var r=e.write(t);o("dest.write",r),!1===r&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==z(n.pipes,e))&&!b&&(o("false write response, pause",n.awaitDrain),n.awaitDrain++),a.pause())}function l(t){o("onerror",t),p(),e.removeListener("error",l),0===c(e,"error")&&_(e,t)}function h(){e.removeListener("finish",x),p()}function x(){o("onfinish"),e.removeListener("close",h),p()}function p(){o("unpipe"),a.unpipe(e)}return a.on("data",u),function(e,t,a){if("function"===typeof e.prependListener)return e.prependListener(t,a);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(a):e._events[t]=[a,e._events[t]]:e.on(t,a)}(e,"error",l),e.once("close",h),e.once("finish",x),e.emit("pipe",a),n.flowing||(o("pipe resume"),a.resume()),e},S.prototype.unpipe=function(e){var t=this._readableState,a={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,a)),this;if(!e){var r=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var c=0;c0,!1!==n.flowing&&this.resume()):"readable"===e&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,o("on readable",n.length,n.reading),n.length?T(this):n.reading||r.nextTick(I,this))),a},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(e,t){var a=i.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(j,this),a},S.prototype.removeAllListeners=function(e){var t=i.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||r.nextTick(j,this),t},S.prototype.resume=function(){var e=this._readableState;return e.flowing||(o("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(N,e,t))}(this,e)),e.paused=!1,this},S.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(e){var t=this,a=this._readableState,r=!1;for(var n in e.on("end",(function(){if(o("wrapped end"),a.decoder&&!a.ended){var e=a.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(n){(o("wrapped data"),a.decoder&&(n=a.decoder.write(n)),!a.objectMode||null!==n&&void 0!==n)&&((a.objectMode||n&&n.length)&&(t.push(n)||(r=!0,e.pause())))})),e)void 0===this[n]&&"function"===typeof e[n]&&(this[n]=function(t){return function(){return e[t].apply(e,arguments)}}(n));for(var c=0;c-1))throw new w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(e,t,a){a(new x("_write()"))},S.prototype._writev=null,S.prototype.end=function(e,t,a){var n=this._writableState;return"function"===typeof e?(a=e,e=null,t=null):"function"===typeof t&&(a=t,t=null),null!==e&&void 0!==e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,a){t.ending=!0,B(e,t),a&&(t.finished?r.nextTick(a):e.once("finish",a));t.ended=!0,e.writable=!1}(this,n,a),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),S.prototype.destroy=b.destroy,S.prototype._undestroy=b.undestroy,S.prototype._destroy=function(e,t){t(e)}}).call(this,a(15),a(14))},function(e,t,a){"use strict";e.exports=s;var r=a(62).codes,n=r.ERR_METHOD_NOT_IMPLEMENTED,c=r.ERR_MULTIPLE_CALLBACK,i=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,f=r.ERR_TRANSFORM_WITH_LENGTH_0,d=a(63);function o(e,t){var a=this._transformState;a.transforming=!1;var r=a.writecb;if(null===r)return this.emit("error",new c);a.writechunk=null,a.writecb=null,null!=t&&this.push(t),r(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length=48&&a<=57?a-48:a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:void r(!1,"Invalid character in "+e)}function d(e,t,a){var r=f(e,a);return a-1>=t&&(r|=f(e,a-1)<<4),r}function o(e,t,a,n){for(var c=0,i=0,f=Math.min(e.length,a),d=t;d=49?o-49+10:o>=17?o-17+10:o,r(o>=0&&i0?e:t},c.min=function(e,t){return e.cmp(t)<0?e:t},c.prototype._init=function(e,t,a){if("number"===typeof e)return this._initNumber(e,t,a);if("object"===typeof e)return this._initArray(e,t,a);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;n-=3)i=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[c]|=i<>>26-f&67108863,(f+=24)>=26&&(f-=26,c++);else if("le"===a)for(n=0,c=0;n>>26-f&67108863,(f+=24)>=26&&(f-=26,c++);return this._strip()},c.prototype._parseHex=function(e,t,a){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)n=d(e,t,r)<=18?(c-=18,i+=1,this.words[i]|=n>>>26):c+=8;else for(r=(e.length-t)%2===0?t+1:t;r=18?(c-=18,i+=1,this.words[i]|=n>>>26):c+=8;this._strip()},c.prototype._parseBase=function(e,t,a){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=t)r++;r--,n=n/t|0;for(var c=e.length-a,i=c%r,f=Math.min(c,c-i)+a,d=0,s=a;s1&&0===this.words[this.length-1];)this.length--;return this._normSign()},c.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!==typeof Symbol&&"function"===typeof Symbol.for)try{c.prototype[Symbol.for("nodejs.util.inspect.custom")]=b}catch(O){c.prototype.inspect=b}else c.prototype.inspect=b;function b(){return(this.red?""}var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];c.prototype.toString=function(e,t){var a;if(t=0|t||1,16===(e=e||10)||"hex"===e){a="";for(var n=0,c=0,i=0;i>>24-n&16777215)||i!==this.length-1?u[6-d.length]+d+a:d+a,(n+=2)>=26&&(n-=26,i--)}for(0!==c&&(a=c.toString(16)+a);a.length%t!==0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}if(e===(0|e)&&e>=2&&e<=36){var o=l[e],s=h[e];a="";var b=this.clone();for(b.negative=0;!b.isZero();){var x=b.modrn(s).toString(e);a=(b=b.idivn(s)).isZero()?x+a:u[o-x.length]+x+a}for(this.isZero()&&(a="0"+a);a.length%t!==0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}r(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},c.prototype.toJSON=function(){return this.toString(16,2)},i&&(c.prototype.toBuffer=function(e,t){return this.toArrayLike(i,e,t)}),c.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function x(e,t,a){a.negative=t.negative^e.negative;var r=e.length+t.length|0;a.length=r,r=r-1|0;var n=0|e.words[0],c=0|t.words[0],i=n*c,f=67108863&i,d=i/67108864|0;a.words[0]=f;for(var o=1;o>>26,b=67108863&d,u=Math.min(o,t.length-1),l=Math.max(0,o-e.length+1);l<=u;l++){var h=o-l|0;s+=(i=(n=0|e.words[h])*(c=0|t.words[l])+b)/67108864|0,b=67108863&i}a.words[o]=0|b,d=0|s}return 0!==d?a.words[o]=0|d:a.length--,a._strip()}c.prototype.toArrayLike=function(e,t,a){this._strip();var n=this.byteLength(),c=a||Math.max(1,n);r(n<=c,"byte array longer than desired length"),r(c>0,"Requested array length <= 0");var i=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,c);return this["_toArrayLike"+("le"===t?"LE":"BE")](i,n),i},c.prototype._toArrayLikeLE=function(e,t){for(var a=0,r=0,n=0,c=0;n>8&255),a>16&255),6===c?(a>24&255),r=0,c=0):(r=i>>>24,c+=2)}if(a=0&&(e[a--]=i>>8&255),a>=0&&(e[a--]=i>>16&255),6===c?(a>=0&&(e[a--]=i>>24&255),r=0,c=0):(r=i>>>24,c+=2)}if(a>=0)for(e[a--]=r;a>=0;)e[a--]=0},Math.clz32?c.prototype._countBits=function(e){return 32-Math.clz32(e)}:c.prototype._countBits=function(e){var t=e,a=0;return t>=4096&&(a+=13,t>>>=13),t>=64&&(a+=7,t>>>=7),t>=8&&(a+=4,t>>>=4),t>=2&&(a+=2,t>>>=2),a+t},c.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,a=0;return 0===(8191&t)&&(a+=13,t>>>=13),0===(127&t)&&(a+=7,t>>>=7),0===(15&t)&&(a+=4,t>>>=4),0===(3&t)&&(a+=2,t>>>=2),0===(1&t)&&a++,a},c.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},c.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},c.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var a=0;ae.length?this.clone().iand(e):e.clone().iand(this)},c.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},c.prototype.iuxor=function(e){var t,a;this.length>e.length?(t=this,a=e):(t=e,a=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},c.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},c.prototype.inotn=function(e){r("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),a=e%26;this._expand(t),a>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-a),this._strip()},c.prototype.notn=function(e){return this.clone().inotn(e)},c.prototype.setn=function(e,t){r("number"===typeof e&&e>=0);var a=e/26|0,n=e%26;return this._expand(a+1),this.words[a]=t?this.words[a]|1<e.length?(a=this,r=e):(a=e,r=this);for(var n=0,c=0;c>>26;for(;0!==n&&c>>26;if(this.length=a.length,0!==n)this.words[this.length]=n,this.length++;else if(a!==this)for(;ce.length?this.clone().iadd(e):e.clone().iadd(this)},c.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var a,r,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(a=this,r=e):(a=e,r=this);for(var c=0,i=0;i>26,this.words[i]=67108863&t;for(;0!==c&&i>26,this.words[i]=67108863&t;if(0===c&&i>>13,l=0|i[1],h=8191&l,x=l>>>13,p=0|i[2],m=8191&p,v=p>>>13,g=0|i[3],y=8191&g,w=g>>>13,_=0|i[4],M=8191&_,k=_>>>13,S=0|i[5],A=8191&S,E=S>>>13,O=0|i[6],P=8191&O,T=O>>>13,B=0|i[7],R=8191&B,C=B>>>13,j=0|i[8],I=8191&j,N=j>>>13,L=0|i[9],U=8191&L,F=L>>>13,D=0|f[0],z=8191&D,H=D>>>13,q=0|f[1],K=8191&q,W=q>>>13,V=0|f[2],$=8191&V,G=V>>>13,Z=0|f[3],J=8191&Z,X=Z>>>13,Y=0|f[4],Q=8191&Y,ee=Y>>>13,te=0|f[5],ae=8191&te,re=te>>>13,ne=0|f[6],ce=8191&ne,ie=ne>>>13,fe=0|f[7],de=8191&fe,oe=fe>>>13,se=0|f[8],be=8191&se,ue=se>>>13,le=0|f[9],he=8191&le,xe=le>>>13;a.negative=e.negative^t.negative,a.length=19;var pe=(o+(r=Math.imul(b,z))|0)+((8191&(n=(n=Math.imul(b,H))+Math.imul(u,z)|0))<<13)|0;o=((c=Math.imul(u,H))+(n>>>13)|0)+(pe>>>26)|0,pe&=67108863,r=Math.imul(h,z),n=(n=Math.imul(h,H))+Math.imul(x,z)|0,c=Math.imul(x,H);var me=(o+(r=r+Math.imul(b,K)|0)|0)+((8191&(n=(n=n+Math.imul(b,W)|0)+Math.imul(u,K)|0))<<13)|0;o=((c=c+Math.imul(u,W)|0)+(n>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(m,z),n=(n=Math.imul(m,H))+Math.imul(v,z)|0,c=Math.imul(v,H),r=r+Math.imul(h,K)|0,n=(n=n+Math.imul(h,W)|0)+Math.imul(x,K)|0,c=c+Math.imul(x,W)|0;var ve=(o+(r=r+Math.imul(b,$)|0)|0)+((8191&(n=(n=n+Math.imul(b,G)|0)+Math.imul(u,$)|0))<<13)|0;o=((c=c+Math.imul(u,G)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(y,z),n=(n=Math.imul(y,H))+Math.imul(w,z)|0,c=Math.imul(w,H),r=r+Math.imul(m,K)|0,n=(n=n+Math.imul(m,W)|0)+Math.imul(v,K)|0,c=c+Math.imul(v,W)|0,r=r+Math.imul(h,$)|0,n=(n=n+Math.imul(h,G)|0)+Math.imul(x,$)|0,c=c+Math.imul(x,G)|0;var ge=(o+(r=r+Math.imul(b,J)|0)|0)+((8191&(n=(n=n+Math.imul(b,X)|0)+Math.imul(u,J)|0))<<13)|0;o=((c=c+Math.imul(u,X)|0)+(n>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(M,z),n=(n=Math.imul(M,H))+Math.imul(k,z)|0,c=Math.imul(k,H),r=r+Math.imul(y,K)|0,n=(n=n+Math.imul(y,W)|0)+Math.imul(w,K)|0,c=c+Math.imul(w,W)|0,r=r+Math.imul(m,$)|0,n=(n=n+Math.imul(m,G)|0)+Math.imul(v,$)|0,c=c+Math.imul(v,G)|0,r=r+Math.imul(h,J)|0,n=(n=n+Math.imul(h,X)|0)+Math.imul(x,J)|0,c=c+Math.imul(x,X)|0;var ye=(o+(r=r+Math.imul(b,Q)|0)|0)+((8191&(n=(n=n+Math.imul(b,ee)|0)+Math.imul(u,Q)|0))<<13)|0;o=((c=c+Math.imul(u,ee)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(A,z),n=(n=Math.imul(A,H))+Math.imul(E,z)|0,c=Math.imul(E,H),r=r+Math.imul(M,K)|0,n=(n=n+Math.imul(M,W)|0)+Math.imul(k,K)|0,c=c+Math.imul(k,W)|0,r=r+Math.imul(y,$)|0,n=(n=n+Math.imul(y,G)|0)+Math.imul(w,$)|0,c=c+Math.imul(w,G)|0,r=r+Math.imul(m,J)|0,n=(n=n+Math.imul(m,X)|0)+Math.imul(v,J)|0,c=c+Math.imul(v,X)|0,r=r+Math.imul(h,Q)|0,n=(n=n+Math.imul(h,ee)|0)+Math.imul(x,Q)|0,c=c+Math.imul(x,ee)|0;var we=(o+(r=r+Math.imul(b,ae)|0)|0)+((8191&(n=(n=n+Math.imul(b,re)|0)+Math.imul(u,ae)|0))<<13)|0;o=((c=c+Math.imul(u,re)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(P,z),n=(n=Math.imul(P,H))+Math.imul(T,z)|0,c=Math.imul(T,H),r=r+Math.imul(A,K)|0,n=(n=n+Math.imul(A,W)|0)+Math.imul(E,K)|0,c=c+Math.imul(E,W)|0,r=r+Math.imul(M,$)|0,n=(n=n+Math.imul(M,G)|0)+Math.imul(k,$)|0,c=c+Math.imul(k,G)|0,r=r+Math.imul(y,J)|0,n=(n=n+Math.imul(y,X)|0)+Math.imul(w,J)|0,c=c+Math.imul(w,X)|0,r=r+Math.imul(m,Q)|0,n=(n=n+Math.imul(m,ee)|0)+Math.imul(v,Q)|0,c=c+Math.imul(v,ee)|0,r=r+Math.imul(h,ae)|0,n=(n=n+Math.imul(h,re)|0)+Math.imul(x,ae)|0,c=c+Math.imul(x,re)|0;var _e=(o+(r=r+Math.imul(b,ce)|0)|0)+((8191&(n=(n=n+Math.imul(b,ie)|0)+Math.imul(u,ce)|0))<<13)|0;o=((c=c+Math.imul(u,ie)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(R,z),n=(n=Math.imul(R,H))+Math.imul(C,z)|0,c=Math.imul(C,H),r=r+Math.imul(P,K)|0,n=(n=n+Math.imul(P,W)|0)+Math.imul(T,K)|0,c=c+Math.imul(T,W)|0,r=r+Math.imul(A,$)|0,n=(n=n+Math.imul(A,G)|0)+Math.imul(E,$)|0,c=c+Math.imul(E,G)|0,r=r+Math.imul(M,J)|0,n=(n=n+Math.imul(M,X)|0)+Math.imul(k,J)|0,c=c+Math.imul(k,X)|0,r=r+Math.imul(y,Q)|0,n=(n=n+Math.imul(y,ee)|0)+Math.imul(w,Q)|0,c=c+Math.imul(w,ee)|0,r=r+Math.imul(m,ae)|0,n=(n=n+Math.imul(m,re)|0)+Math.imul(v,ae)|0,c=c+Math.imul(v,re)|0,r=r+Math.imul(h,ce)|0,n=(n=n+Math.imul(h,ie)|0)+Math.imul(x,ce)|0,c=c+Math.imul(x,ie)|0;var Me=(o+(r=r+Math.imul(b,de)|0)|0)+((8191&(n=(n=n+Math.imul(b,oe)|0)+Math.imul(u,de)|0))<<13)|0;o=((c=c+Math.imul(u,oe)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(I,z),n=(n=Math.imul(I,H))+Math.imul(N,z)|0,c=Math.imul(N,H),r=r+Math.imul(R,K)|0,n=(n=n+Math.imul(R,W)|0)+Math.imul(C,K)|0,c=c+Math.imul(C,W)|0,r=r+Math.imul(P,$)|0,n=(n=n+Math.imul(P,G)|0)+Math.imul(T,$)|0,c=c+Math.imul(T,G)|0,r=r+Math.imul(A,J)|0,n=(n=n+Math.imul(A,X)|0)+Math.imul(E,J)|0,c=c+Math.imul(E,X)|0,r=r+Math.imul(M,Q)|0,n=(n=n+Math.imul(M,ee)|0)+Math.imul(k,Q)|0,c=c+Math.imul(k,ee)|0,r=r+Math.imul(y,ae)|0,n=(n=n+Math.imul(y,re)|0)+Math.imul(w,ae)|0,c=c+Math.imul(w,re)|0,r=r+Math.imul(m,ce)|0,n=(n=n+Math.imul(m,ie)|0)+Math.imul(v,ce)|0,c=c+Math.imul(v,ie)|0,r=r+Math.imul(h,de)|0,n=(n=n+Math.imul(h,oe)|0)+Math.imul(x,de)|0,c=c+Math.imul(x,oe)|0;var ke=(o+(r=r+Math.imul(b,be)|0)|0)+((8191&(n=(n=n+Math.imul(b,ue)|0)+Math.imul(u,be)|0))<<13)|0;o=((c=c+Math.imul(u,ue)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(U,z),n=(n=Math.imul(U,H))+Math.imul(F,z)|0,c=Math.imul(F,H),r=r+Math.imul(I,K)|0,n=(n=n+Math.imul(I,W)|0)+Math.imul(N,K)|0,c=c+Math.imul(N,W)|0,r=r+Math.imul(R,$)|0,n=(n=n+Math.imul(R,G)|0)+Math.imul(C,$)|0,c=c+Math.imul(C,G)|0,r=r+Math.imul(P,J)|0,n=(n=n+Math.imul(P,X)|0)+Math.imul(T,J)|0,c=c+Math.imul(T,X)|0,r=r+Math.imul(A,Q)|0,n=(n=n+Math.imul(A,ee)|0)+Math.imul(E,Q)|0,c=c+Math.imul(E,ee)|0,r=r+Math.imul(M,ae)|0,n=(n=n+Math.imul(M,re)|0)+Math.imul(k,ae)|0,c=c+Math.imul(k,re)|0,r=r+Math.imul(y,ce)|0,n=(n=n+Math.imul(y,ie)|0)+Math.imul(w,ce)|0,c=c+Math.imul(w,ie)|0,r=r+Math.imul(m,de)|0,n=(n=n+Math.imul(m,oe)|0)+Math.imul(v,de)|0,c=c+Math.imul(v,oe)|0,r=r+Math.imul(h,be)|0,n=(n=n+Math.imul(h,ue)|0)+Math.imul(x,be)|0,c=c+Math.imul(x,ue)|0;var Se=(o+(r=r+Math.imul(b,he)|0)|0)+((8191&(n=(n=n+Math.imul(b,xe)|0)+Math.imul(u,he)|0))<<13)|0;o=((c=c+Math.imul(u,xe)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(U,K),n=(n=Math.imul(U,W))+Math.imul(F,K)|0,c=Math.imul(F,W),r=r+Math.imul(I,$)|0,n=(n=n+Math.imul(I,G)|0)+Math.imul(N,$)|0,c=c+Math.imul(N,G)|0,r=r+Math.imul(R,J)|0,n=(n=n+Math.imul(R,X)|0)+Math.imul(C,J)|0,c=c+Math.imul(C,X)|0,r=r+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(T,Q)|0,c=c+Math.imul(T,ee)|0,r=r+Math.imul(A,ae)|0,n=(n=n+Math.imul(A,re)|0)+Math.imul(E,ae)|0,c=c+Math.imul(E,re)|0,r=r+Math.imul(M,ce)|0,n=(n=n+Math.imul(M,ie)|0)+Math.imul(k,ce)|0,c=c+Math.imul(k,ie)|0,r=r+Math.imul(y,de)|0,n=(n=n+Math.imul(y,oe)|0)+Math.imul(w,de)|0,c=c+Math.imul(w,oe)|0,r=r+Math.imul(m,be)|0,n=(n=n+Math.imul(m,ue)|0)+Math.imul(v,be)|0,c=c+Math.imul(v,ue)|0;var Ae=(o+(r=r+Math.imul(h,he)|0)|0)+((8191&(n=(n=n+Math.imul(h,xe)|0)+Math.imul(x,he)|0))<<13)|0;o=((c=c+Math.imul(x,xe)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(U,$),n=(n=Math.imul(U,G))+Math.imul(F,$)|0,c=Math.imul(F,G),r=r+Math.imul(I,J)|0,n=(n=n+Math.imul(I,X)|0)+Math.imul(N,J)|0,c=c+Math.imul(N,X)|0,r=r+Math.imul(R,Q)|0,n=(n=n+Math.imul(R,ee)|0)+Math.imul(C,Q)|0,c=c+Math.imul(C,ee)|0,r=r+Math.imul(P,ae)|0,n=(n=n+Math.imul(P,re)|0)+Math.imul(T,ae)|0,c=c+Math.imul(T,re)|0,r=r+Math.imul(A,ce)|0,n=(n=n+Math.imul(A,ie)|0)+Math.imul(E,ce)|0,c=c+Math.imul(E,ie)|0,r=r+Math.imul(M,de)|0,n=(n=n+Math.imul(M,oe)|0)+Math.imul(k,de)|0,c=c+Math.imul(k,oe)|0,r=r+Math.imul(y,be)|0,n=(n=n+Math.imul(y,ue)|0)+Math.imul(w,be)|0,c=c+Math.imul(w,ue)|0;var Ee=(o+(r=r+Math.imul(m,he)|0)|0)+((8191&(n=(n=n+Math.imul(m,xe)|0)+Math.imul(v,he)|0))<<13)|0;o=((c=c+Math.imul(v,xe)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(U,J),n=(n=Math.imul(U,X))+Math.imul(F,J)|0,c=Math.imul(F,X),r=r+Math.imul(I,Q)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(N,Q)|0,c=c+Math.imul(N,ee)|0,r=r+Math.imul(R,ae)|0,n=(n=n+Math.imul(R,re)|0)+Math.imul(C,ae)|0,c=c+Math.imul(C,re)|0,r=r+Math.imul(P,ce)|0,n=(n=n+Math.imul(P,ie)|0)+Math.imul(T,ce)|0,c=c+Math.imul(T,ie)|0,r=r+Math.imul(A,de)|0,n=(n=n+Math.imul(A,oe)|0)+Math.imul(E,de)|0,c=c+Math.imul(E,oe)|0,r=r+Math.imul(M,be)|0,n=(n=n+Math.imul(M,ue)|0)+Math.imul(k,be)|0,c=c+Math.imul(k,ue)|0;var Oe=(o+(r=r+Math.imul(y,he)|0)|0)+((8191&(n=(n=n+Math.imul(y,xe)|0)+Math.imul(w,he)|0))<<13)|0;o=((c=c+Math.imul(w,xe)|0)+(n>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(U,Q),n=(n=Math.imul(U,ee))+Math.imul(F,Q)|0,c=Math.imul(F,ee),r=r+Math.imul(I,ae)|0,n=(n=n+Math.imul(I,re)|0)+Math.imul(N,ae)|0,c=c+Math.imul(N,re)|0,r=r+Math.imul(R,ce)|0,n=(n=n+Math.imul(R,ie)|0)+Math.imul(C,ce)|0,c=c+Math.imul(C,ie)|0,r=r+Math.imul(P,de)|0,n=(n=n+Math.imul(P,oe)|0)+Math.imul(T,de)|0,c=c+Math.imul(T,oe)|0,r=r+Math.imul(A,be)|0,n=(n=n+Math.imul(A,ue)|0)+Math.imul(E,be)|0,c=c+Math.imul(E,ue)|0;var Pe=(o+(r=r+Math.imul(M,he)|0)|0)+((8191&(n=(n=n+Math.imul(M,xe)|0)+Math.imul(k,he)|0))<<13)|0;o=((c=c+Math.imul(k,xe)|0)+(n>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(U,ae),n=(n=Math.imul(U,re))+Math.imul(F,ae)|0,c=Math.imul(F,re),r=r+Math.imul(I,ce)|0,n=(n=n+Math.imul(I,ie)|0)+Math.imul(N,ce)|0,c=c+Math.imul(N,ie)|0,r=r+Math.imul(R,de)|0,n=(n=n+Math.imul(R,oe)|0)+Math.imul(C,de)|0,c=c+Math.imul(C,oe)|0,r=r+Math.imul(P,be)|0,n=(n=n+Math.imul(P,ue)|0)+Math.imul(T,be)|0,c=c+Math.imul(T,ue)|0;var Te=(o+(r=r+Math.imul(A,he)|0)|0)+((8191&(n=(n=n+Math.imul(A,xe)|0)+Math.imul(E,he)|0))<<13)|0;o=((c=c+Math.imul(E,xe)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(U,ce),n=(n=Math.imul(U,ie))+Math.imul(F,ce)|0,c=Math.imul(F,ie),r=r+Math.imul(I,de)|0,n=(n=n+Math.imul(I,oe)|0)+Math.imul(N,de)|0,c=c+Math.imul(N,oe)|0,r=r+Math.imul(R,be)|0,n=(n=n+Math.imul(R,ue)|0)+Math.imul(C,be)|0,c=c+Math.imul(C,ue)|0;var Be=(o+(r=r+Math.imul(P,he)|0)|0)+((8191&(n=(n=n+Math.imul(P,xe)|0)+Math.imul(T,he)|0))<<13)|0;o=((c=c+Math.imul(T,xe)|0)+(n>>>13)|0)+(Be>>>26)|0,Be&=67108863,r=Math.imul(U,de),n=(n=Math.imul(U,oe))+Math.imul(F,de)|0,c=Math.imul(F,oe),r=r+Math.imul(I,be)|0,n=(n=n+Math.imul(I,ue)|0)+Math.imul(N,be)|0,c=c+Math.imul(N,ue)|0;var Re=(o+(r=r+Math.imul(R,he)|0)|0)+((8191&(n=(n=n+Math.imul(R,xe)|0)+Math.imul(C,he)|0))<<13)|0;o=((c=c+Math.imul(C,xe)|0)+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863,r=Math.imul(U,be),n=(n=Math.imul(U,ue))+Math.imul(F,be)|0,c=Math.imul(F,ue);var Ce=(o+(r=r+Math.imul(I,he)|0)|0)+((8191&(n=(n=n+Math.imul(I,xe)|0)+Math.imul(N,he)|0))<<13)|0;o=((c=c+Math.imul(N,xe)|0)+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863;var je=(o+(r=Math.imul(U,he))|0)+((8191&(n=(n=Math.imul(U,xe))+Math.imul(F,he)|0))<<13)|0;return o=((c=Math.imul(F,xe))+(n>>>13)|0)+(je>>>26)|0,je&=67108863,d[0]=pe,d[1]=me,d[2]=ve,d[3]=ge,d[4]=ye,d[5]=we,d[6]=_e,d[7]=Me,d[8]=ke,d[9]=Se,d[10]=Ae,d[11]=Ee,d[12]=Oe,d[13]=Pe,d[14]=Te,d[15]=Be,d[16]=Re,d[17]=Ce,d[18]=je,0!==o&&(d[19]=o,a.length++),a};function m(e,t,a){a.negative=t.negative^e.negative,a.length=e.length+t.length;for(var r=0,n=0,c=0;c>>26)|0)>>>26,i&=67108863}a.words[c]=f,r=i,i=n}return 0!==r?a.words[c]=r:a.length--,a._strip()}function v(e,t,a){return m(e,t,a)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=x),c.prototype.mulTo=function(e,t){var a=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):a<63?x(this,e,t):a<1024?m(this,e,t):v(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),a=c.prototype._countBits(e)-1,r=0;r>=1;return r},g.prototype.permute=function(e,t,a,r,n,c){for(var i=0;i>>=1)n++;return 1<>>=13,a[2*i+1]=8191&c,c>>>=13;for(i=2*t;i>=26,a+=c/67108864|0,a+=i>>>26,this.words[n]=67108863&i}return 0!==a&&(this.words[n]=a,this.length++),t?this.ineg():this},c.prototype.muln=function(e){return this.clone().imuln(e)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),a=0;a>>n&1}return t}(e);if(0===t.length)return new c(1);for(var a=this,r=0;r=0);var t,a=e%26,n=(e-a)/26,c=67108863>>>26-a<<26-a;if(0!==a){var i=0;for(t=0;t>>26-a}i&&(this.words[t]=i,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var c=e%26,i=Math.min((e-c)/26,this.length),f=67108863^67108863>>>c<i)for(this.length-=i,o=0;o=0&&(0!==s||o>=n);o--){var b=0|this.words[o];this.words[o]=s<<26-c|b>>>c,s=b&f}return d&&0!==s&&(d.words[d.length++]=s),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},c.prototype.ishrn=function(e,t,a){return r(0===this.negative),this.iushrn(e,t,a)},c.prototype.shln=function(e){return this.clone().ishln(e)},c.prototype.ushln=function(e){return this.clone().iushln(e)},c.prototype.shrn=function(e){return this.clone().ishrn(e)},c.prototype.ushrn=function(e){return this.clone().iushrn(e)},c.prototype.testn=function(e){r("number"===typeof e&&e>=0);var t=e%26,a=(e-t)/26,n=1<=0);var t=e%26,a=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=a)return this;if(0!==t&&a++,this.length=Math.min(a,this.length),0!==t){var n=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},c.prototype.isubn=function(e){if(r("number"===typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(d/67108864|0),this.words[n+a]=67108863&c}for(;n>26,this.words[n+a]=67108863&c;if(0===f)return this._strip();for(r(-1===f),f=0,n=0;n>26,this.words[n]=67108863&c;return this.negative=1,this._strip()},c.prototype._wordDiv=function(e,t){var a=(this.length,e.length),r=this.clone(),n=e,i=0|n.words[n.length-1];0!==(a=26-this._countBits(i))&&(n=n.ushln(a),r.iushln(a),i=0|n.words[n.length-1]);var f,d=r.length-n.length;if("mod"!==t){(f=new c(null)).length=d+1,f.words=new Array(f.length);for(var o=0;o=0;b--){var u=67108864*(0|r.words[n.length+b])+(0|r.words[n.length+b-1]);for(u=Math.min(u/i|0,67108863),r._ishlnsubmul(n,u,b);0!==r.negative;)u--,r.negative=0,r._ishlnsubmul(n,1,b),r.isZero()||(r.negative^=1);f&&(f.words[b]=u)}return f&&f._strip(),r._strip(),"div"!==t&&0!==a&&r.iushrn(a),{div:f||null,mod:r}},c.prototype.divmod=function(e,t,a){return r(!e.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:0!==this.negative&&0===e.negative?(f=this.neg().divmod(e,t),"mod"!==t&&(n=f.div.neg()),"div"!==t&&(i=f.mod.neg(),a&&0!==i.negative&&i.iadd(e)),{div:n,mod:i}):0===this.negative&&0!==e.negative?(f=this.divmod(e.neg(),t),"mod"!==t&&(n=f.div.neg()),{div:n,mod:f.mod}):0!==(this.negative&e.negative)?(f=this.neg().divmod(e.neg(),t),"div"!==t&&(i=f.mod.neg(),a&&0!==i.negative&&i.isub(e)),{div:f.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new c(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new c(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new c(this.modrn(e.words[0]))}:this._wordDiv(e,t);var n,i,f},c.prototype.div=function(e){return this.divmod(e,"div",!1).div},c.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},c.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},c.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var a=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),n=e.andln(1),c=a.cmp(r);return c<0||1===n&&0===c?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},c.prototype.modrn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var a=(1<<26)%e,n=0,c=this.length-1;c>=0;c--)n=(a*n+(0|this.words[c]))%e;return t?-n:n},c.prototype.modn=function(e){return this.modrn(e)},c.prototype.idivn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var a=0,n=this.length-1;n>=0;n--){var c=(0|this.words[n])+67108864*a;this.words[n]=c/e|0,a=c%e}return this._strip(),t?this.ineg():this},c.prototype.divn=function(e){return this.clone().idivn(e)},c.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new c(1),i=new c(0),f=new c(0),d=new c(1),o=0;t.isEven()&&a.isEven();)t.iushrn(1),a.iushrn(1),++o;for(var s=a.clone(),b=t.clone();!t.isZero();){for(var u=0,l=1;0===(t.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(t.iushrn(u);u-- >0;)(n.isOdd()||i.isOdd())&&(n.iadd(s),i.isub(b)),n.iushrn(1),i.iushrn(1);for(var h=0,x=1;0===(a.words[0]&x)&&h<26;++h,x<<=1);if(h>0)for(a.iushrn(h);h-- >0;)(f.isOdd()||d.isOdd())&&(f.iadd(s),d.isub(b)),f.iushrn(1),d.iushrn(1);t.cmp(a)>=0?(t.isub(a),n.isub(f),i.isub(d)):(a.isub(t),f.isub(n),d.isub(i))}return{a:f,b:d,gcd:a.iushln(o)}},c.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,i=new c(1),f=new c(0),d=a.clone();t.cmpn(1)>0&&a.cmpn(1)>0;){for(var o=0,s=1;0===(t.words[0]&s)&&o<26;++o,s<<=1);if(o>0)for(t.iushrn(o);o-- >0;)i.isOdd()&&i.iadd(d),i.iushrn(1);for(var b=0,u=1;0===(a.words[0]&u)&&b<26;++b,u<<=1);if(b>0)for(a.iushrn(b);b-- >0;)f.isOdd()&&f.iadd(d),f.iushrn(1);t.cmp(a)>=0?(t.isub(a),i.isub(f)):(a.isub(t),f.isub(i))}return(n=0===t.cmpn(1)?i:f).cmpn(0)<0&&n.iadd(e),n},c.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),a=e.clone();t.negative=0,a.negative=0;for(var r=0;t.isEven()&&a.isEven();r++)t.iushrn(1),a.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;a.isEven();)a.iushrn(1);var n=t.cmp(a);if(n<0){var c=t;t=a,a=c}else if(0===n||0===a.cmpn(1))break;t.isub(a)}return a.iushln(r)},c.prototype.invm=function(e){return this.egcd(e).a.umod(e)},c.prototype.isEven=function(){return 0===(1&this.words[0])},c.prototype.isOdd=function(){return 1===(1&this.words[0])},c.prototype.andln=function(e){return this.words[0]&e},c.prototype.bincn=function(e){r("number"===typeof e);var t=e%26,a=(e-t)/26,n=1<>>26,f&=67108863,this.words[i]=f}return 0!==c&&(this.words[i]=c,this.length++),this},c.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},c.prototype.cmpn=function(e){var t,a=e<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this._strip(),this.length>1)t=1;else{a&&(e=-e),r(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;a--){var r=0|this.words[a],n=0|e.words[a];if(r!==n){rn&&(t=1);break}}return t},c.prototype.gtn=function(e){return 1===this.cmpn(e)},c.prototype.gt=function(e){return 1===this.cmp(e)},c.prototype.gten=function(e){return this.cmpn(e)>=0},c.prototype.gte=function(e){return this.cmp(e)>=0},c.prototype.ltn=function(e){return-1===this.cmpn(e)},c.prototype.lt=function(e){return-1===this.cmp(e)},c.prototype.lten=function(e){return this.cmpn(e)<=0},c.prototype.lte=function(e){return this.cmp(e)<=0},c.prototype.eqn=function(e){return 0===this.cmpn(e)},c.prototype.eq=function(e){return 0===this.cmp(e)},c.red=function(e){return new A(e)},c.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},c.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(e){return this.red=e,this},c.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},c.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},c.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},c.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},c.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},c.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},c.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},c.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},c.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function w(e,t){this.name=e,this.p=new c(t,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(e){if("string"===typeof e){var t=c._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){A.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new c(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var e=new c(null);return e.words=new Array(Math.ceil(this.n/13)),e},w.prototype.ireduce=function(e){var t,a=e;do{this.split(a,this.tmp),t=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},w.prototype.split=function(e,t){e.iushrn(this.n,0,t)},w.prototype.imulK=function(e){return e.imul(this.k)},n(_,w),_.prototype.split=function(e,t){for(var a=4194303,r=Math.min(e.length,9),n=0;n>>22,c=i}c>>>=22,e.words[n-10]=c,0===c&&e.length>10?e.length-=10:e.length-=9},_.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,a=0;a>>=26,e.words[a]=n,t=r}return 0!==t&&(e.words[e.length++]=t),e},c._prime=function(e){if(y[e])return y[e];var t;if("k256"===e)t=new _;else if("p224"===e)t=new M;else if("p192"===e)t=new k;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new S}return y[e]=t,t},A.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},A.prototype._verify2=function(e,t){r(0===(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},A.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(s(e,e.umod(this.m)._forceRed(this)),e)},A.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},A.prototype.add=function(e,t){this._verify2(e,t);var a=e.add(t);return a.cmp(this.m)>=0&&a.isub(this.m),a._forceRed(this)},A.prototype.iadd=function(e,t){this._verify2(e,t);var a=e.iadd(t);return a.cmp(this.m)>=0&&a.isub(this.m),a},A.prototype.sub=function(e,t){this._verify2(e,t);var a=e.sub(t);return a.cmpn(0)<0&&a.iadd(this.m),a._forceRed(this)},A.prototype.isub=function(e,t){this._verify2(e,t);var a=e.isub(t);return a.cmpn(0)<0&&a.iadd(this.m),a},A.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},A.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},A.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},A.prototype.isqr=function(e){return this.imul(e,e.clone())},A.prototype.sqr=function(e){return this.mul(e,e)},A.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2===1),3===t){var a=this.m.add(new c(1)).iushrn(2);return this.pow(e,a)}for(var n=this.m.subn(1),i=0;!n.isZero()&&0===n.andln(1);)i++,n.iushrn(1);r(!n.isZero());var f=new c(1).toRed(this),d=f.redNeg(),o=this.m.subn(1).iushrn(1),s=this.m.bitLength();for(s=new c(2*s*s).toRed(this);0!==this.pow(s,o).cmp(d);)s.redIAdd(d);for(var b=this.pow(s,n),u=this.pow(e,n.addn(1).iushrn(1)),l=this.pow(e,n),h=i;0!==l.cmp(f);){for(var x=l,p=0;0!==x.cmp(f);p++)x=x.redSqr();r(p=0;r--){for(var o=t.words[r],s=d-1;s>=0;s--){var b=o>>s&1;n!==a[0]&&(n=this.sqr(n)),0!==b||0!==i?(i<<=1,i|=b,(4===++f||0===r&&0===s)&&(n=this.mul(n,a[i]),f=0,i=0)):f=0}d=26}return n},A.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},A.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},c.mont=function(e){return new E(e)},n(E,A),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var a=e.imul(t),r=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(r).iushrn(this.shift),c=n;return n.cmp(this.m)>=0?c=n.isub(this.m):n.cmpn(0)<0&&(c=n.iadd(this.m)),c._forceRed(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new c(0)._forceRed(this);var a=e.mul(t),r=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=a.isub(r).iushrn(this.shift),i=n;return n.cmp(this.m)>=0?i=n.isub(this.m):n.cmpn(0)<0&&(i=n.iadd(this.m)),i._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,a(24)(e))},function(e,t,a){"use strict";var r=t;r.bignum=a(6),r.define=a(469).define,r.base=a(472),r.constants=a(473),r.decoders=a(230),r.encoders=a(228)},function(e,t,a){"use strict";var r=t;r.der=a(229),r.pem=a(470)},function(e,t,a){"use strict";var r=a(7),n=a(129).Buffer,c=a(130),i=a(132);function f(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new d,this.tree._init(e.body)}function d(e){c.call(this,"der",e)}function o(e){return e<10?"0"+e:e}e.exports=f,f.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},r(d,c),d.prototype._encodeComposite=function(e,t,a,r){var c=function(e,t,a,r){var n;"seqof"===e?e="seq":"setof"===e&&(e="set");if(i.tagByName.hasOwnProperty(e))n=i.tagByName[e];else{if("number"!==typeof e||(0|e)!==e)return r.error("Unknown tag: "+e);n=e}if(n>=31)return r.error("Multi-octet tag encoding unsupported");t||(n|=32);return n|=i.tagClassByName[a||"universal"]<<6}(e,t,a,this.reporter);if(r.length<128){var f=n.alloc(2);return f[0]=c,f[1]=r.length,this._createEncoderBuffer([f,r])}for(var d=1,o=r.length;o>=256;o>>=8)d++;var s=n.alloc(2+d);s[0]=c,s[1]=128|d;for(var b=1+d,u=r.length;u>0;b--,u>>=8)s[b]=255&u;return this._createEncoderBuffer([s,r])},d.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var a=n.alloc(2*e.length),r=0;r=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}for(var i=0,f=0;f=128;d>>=7)i++}for(var o=n.alloc(i),s=o.length-1,b=e.length-1;b>=0;b--){var u=e[b];for(o[s--]=127&u;(u>>=7)>0;)o[s--]=128|127&u}return this._createEncoderBuffer(o)},d.prototype._encodeTime=function(e,t){var a,r=new Date(e);return"gentime"===t?a=[o(r.getUTCFullYear()),o(r.getUTCMonth()+1),o(r.getUTCDate()),o(r.getUTCHours()),o(r.getUTCMinutes()),o(r.getUTCSeconds()),"Z"].join(""):"utctime"===t?a=[o(r.getUTCFullYear()%100),o(r.getUTCMonth()+1),o(r.getUTCDate()),o(r.getUTCHours()),o(r.getUTCMinutes()),o(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(a,"octstr")},d.prototype._encodeNull=function(){return this._createEncoderBuffer("")},d.prototype._encodeInt=function(e,t){if("string"===typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!==typeof e&&!n.isBuffer(e)){var a=e.toArray();!e.sign&&128&a[0]&&a.unshift(0),e=n.from(a)}if(n.isBuffer(e)){var r=e.length;0===e.length&&r++;var c=n.alloc(r);return e.copy(c),0===e.length&&(c[0]=0),this._createEncoderBuffer(c)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);for(var i=1,f=e;f>=256;f>>=8)i++;for(var d=new Array(i),o=d.length-1;o>=0;o--)d[o]=255&e,e>>=8;return 128&d[0]&&d.unshift(0),this._createEncoderBuffer(n.from(d))},d.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},d.prototype._use=function(e,t){return"function"===typeof e&&(e=e(t)),e._getEncoder("der").tree},d.prototype._skipDefault=function(e,t,a){var r,n=this._baseState;if(null===n.default)return!1;var c=e.join();if(void 0===n.defaultBuffer&&(n.defaultBuffer=this._encodeValue(n.default,t,a).join()),c.length!==n.defaultBuffer.length)return!1;for(r=0;r>6],n=0===(32&a);if(31===(31&a)){var c=a;for(a=0;128===(128&c);){if(c=e.readUInt8(t),e.isError(c))return c;a<<=7,a|=127&c}}else a&=31;return{cls:r,primitive:n,tag:a,tagStr:f.tag[a]}}function b(e,t,a){var r=e.readUInt8(a);if(e.isError(r))return r;if(!t&&128===r)return null;if(0===(128&r))return r;var n=127&r;if(n>4)return e.error("length octect is too long");r=0;for(var c=0;c>>((3&t)<<3)&255;return n}}},function(e,t){for(var a=[],r=0;r<256;++r)a[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,n=a;return[n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]]].join("")}},function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.KECCAK256_RLP=t.KECCAK256_RLP_S=t.KECCAK256_RLP_ARRAY=t.KECCAK256_RLP_ARRAY_S=t.KECCAK256_NULL=t.KECCAK256_NULL_S=t.TWO_POW256=t.MAX_INTEGER=void 0;var n=a(3).Buffer,c=r(a(47));t.MAX_INTEGER=new c.default("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),t.TWO_POW256=new c.default("10000000000000000000000000000000000000000000000000000000000000000",16),t.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",t.KECCAK256_NULL=n.from(t.KECCAK256_NULL_S,"hex"),t.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",t.KECCAK256_RLP_ARRAY=n.from(t.KECCAK256_RLP_ARRAY_S,"hex"),t.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",t.KECCAK256_RLP=n.from(t.KECCAK256_RLP_S,"hex")},function(e,t,a){"use strict";(function(e){var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){void 0===r&&(r=a),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,r){void 0===r&&(r=a),e[r]=t[a]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)"default"!==a&&Object.prototype.hasOwnProperty.call(e,a)&&r(t,e,a);return n(t,e),t},i=this&&this.__read||function(e,t){var a="function"===typeof Symbol&&e[Symbol.iterator];if(!a)return e;var r,n,c=a.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=c.next()).done;)i.push(r.value)}catch(f){n={error:f}}finally{try{r&&!r.done&&(a=c.return)&&a.call(c)}finally{if(n)throw n.error}}return i},f=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isZeroAddress=t.zeroAddress=t.importPublic=t.privateToAddress=t.privateToPublic=t.publicToAddress=t.pubToAddress=t.isValidPublic=t.isValidPrivate=t.generateAddress2=t.generateAddress=t.isValidChecksumAddress=t.toChecksumAddress=t.isValidAddress=t.Account=void 0;var d=f(a(21)),o=f(a(47)),s=c(a(17)),b=a(33),u=a(64),l=a(238),h=a(48),x=a(133),p=a(94),m=a(134),v=function(){function e(e,t,a,r){void 0===e&&(e=new o.default(0)),void 0===t&&(t=new o.default(0)),void 0===a&&(a=l.KECCAK256_RLP),void 0===r&&(r=l.KECCAK256_NULL),this.nonce=e,this.balance=t,this.stateRoot=a,this.codeHash=r,this._validate()}return e.fromAccountData=function(t){var a=t.nonce,r=t.balance,n=t.stateRoot,c=t.codeHash;return new e(a?new o.default((0,h.toBuffer)(a)):void 0,r?new o.default((0,h.toBuffer)(r)):void 0,n?(0,h.toBuffer)(n):void 0,c?(0,h.toBuffer)(c):void 0)},e.fromRlpSerializedAccount=function(e){var t=s.decode(e);if(!Array.isArray(t))throw new Error("Invalid serialized account input. Must be array");return this.fromValuesArray(t)},e.fromValuesArray=function(t){var a=i(t,4),r=a[0],n=a[1],c=a[2],f=a[3];return new e(new o.default(r),new o.default(n),c,f)},e.prototype._validate=function(){if(this.nonce.lt(new o.default(0)))throw new Error("nonce must be greater than zero");if(this.balance.lt(new o.default(0)))throw new Error("balance must be greater than zero");if(32!==this.stateRoot.length)throw new Error("stateRoot must have a length of 32");if(32!==this.codeHash.length)throw new Error("codeHash must have a length of 32")},e.prototype.raw=function(){return[(0,m.bnToUnpaddedBuffer)(this.nonce),(0,m.bnToUnpaddedBuffer)(this.balance),this.stateRoot,this.codeHash]},e.prototype.serialize=function(){return s.encode(this.raw())},e.prototype.isContract=function(){return!this.codeHash.equals(l.KECCAK256_NULL)},e.prototype.isEmpty=function(){return this.balance.isZero()&&this.nonce.isZero()&&this.codeHash.equals(l.KECCAK256_NULL)},e}();t.Account=v;t.isValidAddress=function(e){try{(0,p.assertIsString)(e)}catch(t){return!1}return/^0x[0-9a-fA-F]{40}$/.test(e)};t.toChecksumAddress=function(e,t){(0,p.assertIsHexString)(e);var a=(0,u.stripHexPrefix)(e).toLowerCase(),r="";t&&(r=(0,m.toType)(t,m.TypeOutput.BN).toString()+"0x");for(var n=(0,x.keccakFromString)(r+a).toString("hex"),c="0x",i=0;i=8?c+=a[i].toUpperCase():c+=a[i];return c};t.isValidChecksumAddress=function(e,a){return(0,t.isValidAddress)(e)&&(0,t.toChecksumAddress)(e,a)===e};t.generateAddress=function(t,a){(0,p.assertIsBuffer)(t),(0,p.assertIsBuffer)(a);var r=new o.default(a);return r.isZero()?(0,x.rlphash)([t,null]).slice(-20):(0,x.rlphash)([t,e.from(r.toArray())]).slice(-20)};t.generateAddress2=function(t,a,r){return(0,p.assertIsBuffer)(t),(0,p.assertIsBuffer)(a),(0,p.assertIsBuffer)(r),(0,d.default)(20===t.length),(0,d.default)(32===a.length),(0,x.keccak256)(e.concat([e.from("ff","hex"),t,a,(0,x.keccak256)(r)])).slice(-20)};t.isValidPrivate=function(e){return(0,b.privateKeyVerify)(e)};t.isValidPublic=function(t,a){return void 0===a&&(a=!1),(0,p.assertIsBuffer)(t),64===t.length?(0,b.publicKeyVerify)(e.concat([e.from([4]),t])):!!a&&(0,b.publicKeyVerify)(t)};t.pubToAddress=function(t,a){return void 0===a&&(a=!1),(0,p.assertIsBuffer)(t),a&&64!==t.length&&(t=e.from((0,b.publicKeyConvert)(t,!1).slice(1))),(0,d.default)(64===t.length),(0,x.keccak)(t).slice(-20)},t.publicToAddress=t.pubToAddress;t.privateToPublic=function(t){return(0,p.assertIsBuffer)(t),e.from((0,b.publicKeyCreate)(t,!1)).slice(1)};t.privateToAddress=function(e){return(0,t.publicToAddress)((0,t.privateToPublic)(e))};t.importPublic=function(t){return(0,p.assertIsBuffer)(t),64!==t.length&&(t=e.from((0,b.publicKeyConvert)(t,!1).slice(1))),t};t.zeroAddress=function(){var e=(0,h.zeros)(20);return(0,h.bufferToHex)(e)};t.isZeroAddress=function(e){try{(0,p.assertIsString)(e)}catch(a){return!1}return(0,t.zeroAddress)()===e}}).call(this,a(3).Buffer)},function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.KECCAK256_RLP=t.KECCAK256_RLP_S=t.KECCAK256_RLP_ARRAY=t.KECCAK256_RLP_ARRAY_S=t.KECCAK256_NULL=t.KECCAK256_NULL_S=t.TWO_POW256=t.MAX_INTEGER=void 0;var n=a(3).Buffer,c=r(a(49));t.MAX_INTEGER=new c.default("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),t.TWO_POW256=new c.default("10000000000000000000000000000000000000000000000000000000000000000",16),t.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",t.KECCAK256_NULL=n.from(t.KECCAK256_NULL_S,"hex"),t.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",t.KECCAK256_RLP_ARRAY=n.from(t.KECCAK256_RLP_ARRAY_S,"hex"),t.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",t.KECCAK256_RLP=n.from(t.KECCAK256_RLP_S,"hex")},function(e,t,a){"use strict";(function(e){var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){void 0===r&&(r=a),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,r){void 0===r&&(r=a),e[r]=t[a]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)"default"!==a&&Object.prototype.hasOwnProperty.call(e,a)&&r(t,e,a);return n(t,e),t},i=this&&this.__read||function(e,t){var a="function"===typeof Symbol&&e[Symbol.iterator];if(!a)return e;var r,n,c=a.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=c.next()).done;)i.push(r.value)}catch(f){n={error:f}}finally{try{r&&!r.done&&(a=c.return)&&a.call(c)}finally{if(n)throw n.error}}return i},f=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isZeroAddress=t.zeroAddress=t.importPublic=t.privateToAddress=t.privateToPublic=t.publicToAddress=t.pubToAddress=t.isValidPublic=t.isValidPrivate=t.generateAddress2=t.generateAddress=t.isValidChecksumAddress=t.toChecksumAddress=t.isValidAddress=t.Account=void 0;var d=f(a(21)),o=f(a(49)),s=c(a(17)),b=a(33),u=a(66),l=a(240),h=a(50),x=a(136),p=a(95),m=a(137),v=function(){function e(e,t,a,r){void 0===e&&(e=new o.default(0)),void 0===t&&(t=new o.default(0)),void 0===a&&(a=l.KECCAK256_RLP),void 0===r&&(r=l.KECCAK256_NULL),this.nonce=e,this.balance=t,this.stateRoot=a,this.codeHash=r,this._validate()}return e.fromAccountData=function(t){var a=t.nonce,r=t.balance,n=t.stateRoot,c=t.codeHash;return new e(a?new o.default((0,h.toBuffer)(a)):void 0,r?new o.default((0,h.toBuffer)(r)):void 0,n?(0,h.toBuffer)(n):void 0,c?(0,h.toBuffer)(c):void 0)},e.fromRlpSerializedAccount=function(e){var t=s.decode(e);if(!Array.isArray(t))throw new Error("Invalid serialized account input. Must be array");return this.fromValuesArray(t)},e.fromValuesArray=function(t){var a=i(t,4),r=a[0],n=a[1],c=a[2],f=a[3];return new e(new o.default(r),new o.default(n),c,f)},e.prototype._validate=function(){if(this.nonce.lt(new o.default(0)))throw new Error("nonce must be greater than zero");if(this.balance.lt(new o.default(0)))throw new Error("balance must be greater than zero");if(32!==this.stateRoot.length)throw new Error("stateRoot must have a length of 32");if(32!==this.codeHash.length)throw new Error("codeHash must have a length of 32")},e.prototype.raw=function(){return[(0,m.bnToUnpaddedBuffer)(this.nonce),(0,m.bnToUnpaddedBuffer)(this.balance),this.stateRoot,this.codeHash]},e.prototype.serialize=function(){return s.encode(this.raw())},e.prototype.isContract=function(){return!this.codeHash.equals(l.KECCAK256_NULL)},e.prototype.isEmpty=function(){return this.balance.isZero()&&this.nonce.isZero()&&this.codeHash.equals(l.KECCAK256_NULL)},e}();t.Account=v;t.isValidAddress=function(e){try{(0,p.assertIsString)(e)}catch(t){return!1}return/^0x[0-9a-fA-F]{40}$/.test(e)};t.toChecksumAddress=function(e,t){(0,p.assertIsHexString)(e);var a=(0,u.stripHexPrefix)(e).toLowerCase(),r="";t&&(r=(0,m.toType)(t,m.TypeOutput.BN).toString()+"0x");for(var n=(0,x.keccakFromString)(r+a).toString("hex"),c="0x",i=0;i=8?c+=a[i].toUpperCase():c+=a[i];return c};t.isValidChecksumAddress=function(e,a){return(0,t.isValidAddress)(e)&&(0,t.toChecksumAddress)(e,a)===e};t.generateAddress=function(t,a){(0,p.assertIsBuffer)(t),(0,p.assertIsBuffer)(a);var r=new o.default(a);return r.isZero()?(0,x.rlphash)([t,null]).slice(-20):(0,x.rlphash)([t,e.from(r.toArray())]).slice(-20)};t.generateAddress2=function(t,a,r){return(0,p.assertIsBuffer)(t),(0,p.assertIsBuffer)(a),(0,p.assertIsBuffer)(r),(0,d.default)(20===t.length),(0,d.default)(32===a.length),(0,x.keccak256)(e.concat([e.from("ff","hex"),t,a,(0,x.keccak256)(r)])).slice(-20)};t.isValidPrivate=function(e){return(0,b.privateKeyVerify)(e)};t.isValidPublic=function(t,a){return void 0===a&&(a=!1),(0,p.assertIsBuffer)(t),64===t.length?(0,b.publicKeyVerify)(e.concat([e.from([4]),t])):!!a&&(0,b.publicKeyVerify)(t)};t.pubToAddress=function(t,a){return void 0===a&&(a=!1),(0,p.assertIsBuffer)(t),a&&64!==t.length&&(t=e.from((0,b.publicKeyConvert)(t,!1).slice(1))),(0,d.default)(64===t.length),(0,x.keccak)(t).slice(-20)},t.publicToAddress=t.pubToAddress;t.privateToPublic=function(t){return(0,p.assertIsBuffer)(t),e.from((0,b.publicKeyCreate)(t,!1)).slice(1)};t.privateToAddress=function(e){return(0,t.publicToAddress)((0,t.privateToPublic)(e))};t.importPublic=function(t){return(0,p.assertIsBuffer)(t),64!==t.length&&(t=e.from((0,b.publicKeyConvert)(t,!1).slice(1))),t};t.zeroAddress=function(){var e=(0,h.zeros)(20);return(0,h.bufferToHex)(e)};t.isZeroAddress=function(e){try{(0,p.assertIsString)(e)}catch(a){return!1}return(0,t.zeroAddress)()===e}}).call(this,a(3).Buffer)},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AccessLists=void 0;var r=a(46),n=a(65),c=function(){function e(){}return e.getAccessListData=function(e){var t,a;if(e&&(0,n.isAccessList)(e)){t=e;for(var c=[],i=0;i0)&&!(r=c.next()).done;)i.push(r.value)}catch(f){n={error:f}}finally{try{r&&!r.done&&(a=c.return)&&a.call(c)}finally{if(n)throw n.error}}return i},f=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isZeroAddress=t.zeroAddress=t.importPublic=t.privateToAddress=t.privateToPublic=t.publicToAddress=t.pubToAddress=t.isValidPublic=t.isValidPrivate=t.generateAddress2=t.generateAddress=t.isValidChecksumAddress=t.toChecksumAddress=t.isValidAddress=t.Account=void 0;var d=f(a(21)),o=f(a(51)),s=c(a(17)),b=a(33),u=a(67),l=a(243),h=a(52),x=a(138),p=a(96),m=a(139),v=function(){function e(e,t,a,r){void 0===e&&(e=new o.default(0)),void 0===t&&(t=new o.default(0)),void 0===a&&(a=l.KECCAK256_RLP),void 0===r&&(r=l.KECCAK256_NULL),this.nonce=e,this.balance=t,this.stateRoot=a,this.codeHash=r,this._validate()}return e.fromAccountData=function(t){var a=t.nonce,r=t.balance,n=t.stateRoot,c=t.codeHash;return new e(a?new o.default((0,h.toBuffer)(a)):void 0,r?new o.default((0,h.toBuffer)(r)):void 0,n?(0,h.toBuffer)(n):void 0,c?(0,h.toBuffer)(c):void 0)},e.fromRlpSerializedAccount=function(e){var t=s.decode(e);if(!Array.isArray(t))throw new Error("Invalid serialized account input. Must be array");return this.fromValuesArray(t)},e.fromValuesArray=function(t){var a=i(t,4),r=a[0],n=a[1],c=a[2],f=a[3];return new e(new o.default(r),new o.default(n),c,f)},e.prototype._validate=function(){if(this.nonce.lt(new o.default(0)))throw new Error("nonce must be greater than zero");if(this.balance.lt(new o.default(0)))throw new Error("balance must be greater than zero");if(32!==this.stateRoot.length)throw new Error("stateRoot must have a length of 32");if(32!==this.codeHash.length)throw new Error("codeHash must have a length of 32")},e.prototype.raw=function(){return[(0,m.bnToUnpaddedBuffer)(this.nonce),(0,m.bnToUnpaddedBuffer)(this.balance),this.stateRoot,this.codeHash]},e.prototype.serialize=function(){return s.encode(this.raw())},e.prototype.isContract=function(){return!this.codeHash.equals(l.KECCAK256_NULL)},e.prototype.isEmpty=function(){return this.balance.isZero()&&this.nonce.isZero()&&this.codeHash.equals(l.KECCAK256_NULL)},e}();t.Account=v;t.isValidAddress=function(e){try{(0,p.assertIsString)(e)}catch(t){return!1}return/^0x[0-9a-fA-F]{40}$/.test(e)};t.toChecksumAddress=function(e,t){(0,p.assertIsHexString)(e);var a=(0,u.stripHexPrefix)(e).toLowerCase(),r="";t&&(r=(0,m.toType)(t,m.TypeOutput.BN).toString()+"0x");for(var n=(0,x.keccakFromString)(r+a).toString("hex"),c="0x",i=0;i=8?c+=a[i].toUpperCase():c+=a[i];return c};t.isValidChecksumAddress=function(e,a){return(0,t.isValidAddress)(e)&&(0,t.toChecksumAddress)(e,a)===e};t.generateAddress=function(t,a){(0,p.assertIsBuffer)(t),(0,p.assertIsBuffer)(a);var r=new o.default(a);return r.isZero()?(0,x.rlphash)([t,null]).slice(-20):(0,x.rlphash)([t,e.from(r.toArray())]).slice(-20)};t.generateAddress2=function(t,a,r){return(0,p.assertIsBuffer)(t),(0,p.assertIsBuffer)(a),(0,p.assertIsBuffer)(r),(0,d.default)(20===t.length),(0,d.default)(32===a.length),(0,x.keccak256)(e.concat([e.from("ff","hex"),t,a,(0,x.keccak256)(r)])).slice(-20)};t.isValidPrivate=function(e){return(0,b.privateKeyVerify)(e)};t.isValidPublic=function(t,a){return void 0===a&&(a=!1),(0,p.assertIsBuffer)(t),64===t.length?(0,b.publicKeyVerify)(e.concat([e.from([4]),t])):!!a&&(0,b.publicKeyVerify)(t)};t.pubToAddress=function(t,a){return void 0===a&&(a=!1),(0,p.assertIsBuffer)(t),a&&64!==t.length&&(t=e.from((0,b.publicKeyConvert)(t,!1).slice(1))),(0,d.default)(64===t.length),(0,x.keccak)(t).slice(-20)},t.publicToAddress=t.pubToAddress;t.privateToPublic=function(t){return(0,p.assertIsBuffer)(t),e.from((0,b.publicKeyCreate)(t,!1)).slice(1)};t.privateToAddress=function(e){return(0,t.publicToAddress)((0,t.privateToPublic)(e))};t.importPublic=function(t){return(0,p.assertIsBuffer)(t),64!==t.length&&(t=e.from((0,b.publicKeyConvert)(t,!1).slice(1))),t};t.zeroAddress=function(){var e=(0,h.zeros)(20);return(0,h.bufferToHex)(e)};t.isZeroAddress=function(e){try{(0,p.assertIsString)(e)}catch(a){return!1}return(0,t.zeroAddress)()===e}}).call(this,a(3).Buffer)},function(e,t,a){a(565);var r=function(e,t){return parseInt(e.slice(2*t+2,2*t+4),16)},n=function(e){return(e.length-2)/2},c=function(e){for(var t=[],a=2,r=e.length;a>6|192);else{if(n>55295&&n<56320){if(++r==e.length)return null;var c=e.charCodeAt(r);if(c<56320||c>57343)return null;a+=t((n=65536+((1023&n)<<10)+(1023&c))>>18|240),a+=t(n>>12&63|128)}else a+=t(n>>12|224);a+=t(n>>6&63|128)}a+=t(63&n|128)}}return a},toString:function(e){for(var t="",a=0,c=n(e);a127){if(i>191&&i<224){if(a>=c)return null;i=(31&i)<<6|63&r(e,a)}else if(i>223&&i<240){if(a+1>=c)return null;i=(15&i)<<12|(63&r(e,a))<<6|63&r(e,++a)}else{if(!(i>239&&i<248))return null;if(a+2>=c)return null;i=(7&i)<<18|(63&r(e,a))<<12|(63&r(e,++a))<<6|63&r(e,++a)}++a}if(i<=65535)t+=String.fromCharCode(i);else{if(!(i<=1114111))return null;i-=65536,t+=String.fromCharCode(i>>10|55296),t+=String.fromCharCode(1023&i|56320)}}return t},fromNumber:function(e){var t=e.toString(16);return t.length%2===0?"0x"+t:"0x0"+t},toNumber:function(e){return parseInt(e.slice(2),16)},fromNat:function(e){return"0x0"===e?"0x":e.length%2===0?e:"0x0"+e.slice(2)},toNat:function(e){return"0"===e[2]?"0x"+e.slice(3):e},fromArray:i,toArray:c,fromUint8Array:function(e){return i([].slice.call(e,0))},toUint8Array:function(e){return new Uint8Array(c(e))}}},function(e,t,a){"use strict";a.r(t),a.d(t,"ConstructorFragment",(function(){return A})),a.d(t,"EventFragment",(function(){return _})),a.d(t,"Fragment",(function(){return w})),a.d(t,"FunctionFragment",(function(){return E})),a.d(t,"ParamType",(function(){return g})),a.d(t,"FormatTypes",(function(){return m})),a.d(t,"AbiCoder",(function(){return ie})),a.d(t,"defaultAbiCoder",(function(){return fe})),a.d(t,"Interface",(function(){return xe})),a.d(t,"Indexed",(function(){return le})),a.d(t,"checkResultErrors",(function(){return j})),a.d(t,"LogDescription",(function(){return be})),a.d(t,"TransactionDescription",(function(){return ue}));var r=a(4),n=a(5),c=a(1),i=a(2),f=a(37),d=a(12),o=a(8),s="abi/5.0.7",b=new o.b(s),u={},l={calldata:!0,memory:!0,storage:!0},h={calldata:!0,memory:!0};function x(e,t){if("bytes"===e||"string"===e){if(l[t])return!0}else if("address"===e){if("payable"===t)return!0}else if((e.indexOf("[")>=0||"tuple"===e)&&h[t])return!0;return(l[t]||"payable"===t)&&b.throwArgumentError("invalid modifier","name",t),!1}function p(e,t){for(var a in t)Object(d.d)(e,a,t[a])}var m=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),v=new RegExp(/^(.*)\[([0-9]*)\]$/),g=function(){function e(t,a){Object(c.a)(this,e),t!==u&&b.throwError("use fromString",o.b.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),p(this,a);var r=this.type.match(v);p(this,r?{arrayLength:parseInt(r[2]||"-1"),arrayChildren:e.fromObject({type:r[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}return Object(i.a)(e,[{key:"format",value:function(e){if(e||(e=m.sighash),m[e]||b.throwArgumentError("invalid format type","format",e),e===m.json){var t={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"===typeof this.indexed&&(t.indexed=this.indexed),this.components&&(t.components=this.components.map((function(t){return JSON.parse(t.format(e))}))),JSON.stringify(t)}var a="";return"array"===this.baseType?(a+=this.arrayChildren.format(e),a+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(e!==m.sighash&&(a+=this.type),a+="("+this.components.map((function(t){return t.format(e)})).join(e===m.full?", ":",")+")"):a+=this.type,e!==m.sighash&&(!0===this.indexed&&(a+=" indexed"),e===m.full&&this.name&&(a+=" "+this.name)),a}}],[{key:"from",value:function(t,a){return"string"===typeof t?e.fromString(t,a):e.fromObject(t)}},{key:"fromObject",value:function(t){return e.isParamType(t)?t:new e(u,{name:t.name||null,type:O(t.type),indexed:null==t.indexed?null:!!t.indexed,components:t.components?t.components.map(e.fromObject):null})}},{key:"fromString",value:function(t,a){return r=function(e,t){var a=e;function r(t){b.throwArgumentError("unexpected character at position ".concat(t),"param",e)}function n(e){var a={type:"",name:"",parent:e,state:{allowType:!0}};return t&&(a.indexed=!1),a}e=e.replace(/\s/g," ");for(var c={type:"",name:"",state:{allowType:!0}},i=c,f=0;f2&&b.throwArgumentError("invalid human-readable ABI signature","value",e),a[1].match(/^[0-9]+$/)||b.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=f.a.from(a[1]),a[0]):e}function k(e,t){t.constant=!1,t.payable=!1,t.stateMutability="nonpayable",e.split(" ").forEach((function(e){switch(e.trim()){case"constant":t.constant=!0;break;case"payable":t.payable=!0,t.stateMutability="payable";break;case"nonpayable":t.payable=!1,t.stateMutability="nonpayable";break;case"pure":t.constant=!0,t.stateMutability="pure";break;case"view":t.constant=!0,t.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+e)}}))}function S(e){var t={constant:!1,payable:!0,stateMutability:"payable"};return null!=e.stateMutability?(t.stateMutability=e.stateMutability,t.constant="view"===t.stateMutability||"pure"===t.stateMutability,null!=e.constant&&!!e.constant!==t.constant&&b.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable="payable"===t.stateMutability,null!=e.payable&&!!e.payable!==t.payable&&b.throwArgumentError("cannot have payable function with mutability "+t.stateMutability,"value",e)):null!=e.payable?(t.payable=!!e.payable,null!=e.constant||t.payable||"constructor"===e.type||b.throwArgumentError("unable to determine stateMutability","value",e),t.constant=!!e.constant,t.constant?t.stateMutability="view":t.stateMutability=t.payable?"payable":"nonpayable",t.payable&&t.constant&&b.throwArgumentError("cannot have constant payable function","value",e)):null!=e.constant?(t.constant=!!e.constant,t.payable=!t.constant,t.stateMutability=t.constant?"view":"payable"):"constructor"!==e.type&&b.throwArgumentError("unable to determine stateMutability","value",e),t}var A=function(e){Object(r.a)(a,e);var t=Object(n.a)(a);function a(){return Object(c.a)(this,a),t.apply(this,arguments)}return Object(i.a)(a,[{key:"format",value:function(e){if(e||(e=m.sighash),m[e]||b.throwArgumentError("invalid format type","format",e),e===m.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payble:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))}))});e===m.sighash&&b.throwError("cannot format a constructor for sighash",o.b.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});var t="constructor("+this.inputs.map((function(t){return t.format(e)})).join(e===m.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "),t.trim()}}],[{key:"from",value:function(e){return"string"===typeof e?a.fromString(e):a.fromObject(e)}},{key:"fromObject",value:function(e){if(a.isConstructorFragment(e))return e;"constructor"!==e.type&&b.throwArgumentError("invalid constructor object","value",e);var t=S(e);t.constant&&b.throwArgumentError("constructor cannot be constant","value",e);var r={name:null,type:e.type,inputs:e.inputs?e.inputs.map(g.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?f.a.from(e.gas):null};return new a(u,r)}},{key:"fromString",value:function(e){var t={type:"constructor"},r=(e=M(e,t)).match(B);return r&&"constructor"===r[1].trim()||b.throwArgumentError("invalid constructor string","value",e),t.inputs=y(r[2].trim(),!1),k(r[3].trim(),t),a.fromObject(t)}},{key:"isConstructorFragment",value:function(e){return e&&e._isFragment&&"constructor"===e.type}}]),a}(w),E=function(e){Object(r.a)(a,e);var t=Object(n.a)(a);function a(){return Object(c.a)(this,a),t.apply(this,arguments)}return Object(i.a)(a,[{key:"format",value:function(e){if(e||(e=m.sighash),m[e]||b.throwArgumentError("invalid format type","format",e),e===m.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payble:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))})),ouputs:this.outputs.map((function(t){return JSON.parse(t.format(e))}))});var t="";return e!==m.sighash&&(t+="function "),t+=this.name+"("+this.inputs.map((function(t){return t.format(e)})).join(e===m.full?", ":",")+") ",e!==m.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "):this.constant&&(t+="view "),this.outputs&&this.outputs.length&&(t+="returns ("+this.outputs.map((function(t){return t.format(e)})).join(", ")+") "),null!=this.gas&&(t+="@"+this.gas.toString()+" ")),t.trim()}}],[{key:"from",value:function(e){return"string"===typeof e?a.fromString(e):a.fromObject(e)}},{key:"fromObject",value:function(e){if(a.isFunctionFragment(e))return e;"function"!==e.type&&b.throwArgumentError("invalid function object","value",e);var t=S(e),r={type:e.type,name:T(e.name),constant:t.constant,inputs:e.inputs?e.inputs.map(g.fromObject):[],outputs:e.outputs?e.outputs.map(g.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?f.a.from(e.gas):null};return new a(u,r)}},{key:"fromString",value:function(e){var t={type:"function"},r=(e=M(e,t)).split(" returns ");r.length>2&&b.throwArgumentError("invalid function string","value",e);var n=r[0].match(B);if(n||b.throwArgumentError("invalid function signature","value",e),t.name=n[1].trim(),t.name&&T(t.name),t.inputs=y(n[2],!1),k(n[3].trim(),t),r.length>1){var c=r[1].match(B);""==c[1].trim()&&""==c[3].trim()||b.throwArgumentError("unexpected tokens","value",e),t.outputs=y(c[2],!1)}else t.outputs=[];return a.fromObject(t)}},{key:"isFunctionFragment",value:function(e){return e&&e._isFragment&&"function"===e.type}}]),a}(A);function O(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}var P=new RegExp("^[A-Za-z_][A-Za-z0-9_]*$");function T(e){return e&&e.match(P)||b.throwArgumentError('invalid identifier "'.concat(e,'"'),"value",e),e}var B=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");var R=a(0),C=new o.b(s);function j(e){var t=[];return function e(a,r){if(Array.isArray(r))for(var n in r){var c=a.slice();c.push(n);try{e(c,r[n])}catch(i){t.push({path:c,error:i})}}}([],e),t}var I=function(){function e(t,a,r,n){Object(c.a)(this,e),this.name=t,this.type=a,this.localName=r,this.dynamic=n}return Object(i.a)(e,[{key:"_throwError",value:function(e,t){C.throwArgumentError(e,this.localName,t)}}]),e}(),N=function(){function e(t){Object(c.a)(this,e),Object(d.d)(this,"wordSize",t||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(t)}return Object(i.a)(e,[{key:"data",get:function(){return Object(R.c)(this._data)}},{key:"length",get:function(){return this._dataLength}},{key:"_writeData",value:function(e){return this._data.push(e),this._dataLength+=e.length,e.length}},{key:"appendWriter",value:function(e){return this._writeData(Object(R.b)(e._data))}},{key:"writeBytes",value:function(e){var t=Object(R.a)(e),a=t.length%this.wordSize;return a&&(t=Object(R.b)([t,this._padding.slice(a)])),this._writeData(t)}},{key:"_getValue",value:function(e){var t=Object(R.a)(f.a.from(e));return t.length>this.wordSize&&C.throwError("value out-of-bounds",o.b.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=Object(R.b)([this._padding.slice(t.length%this.wordSize),t])),t}},{key:"writeValue",value:function(e){return this._writeData(this._getValue(e))}},{key:"writeUpdatableValue",value:function(){var e=this,t=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,function(a){e._data[t]=e._getValue(a)}}}]),e}(),L=function(){function e(t,a,r,n){Object(c.a)(this,e),Object(d.d)(this,"_data",Object(R.a)(t)),Object(d.d)(this,"wordSize",a||32),Object(d.d)(this,"_coerceFunc",r),Object(d.d)(this,"allowLoose",n),this._offset=0}return Object(i.a)(e,[{key:"data",get:function(){return Object(R.i)(this._data)}},{key:"consumed",get:function(){return this._offset}},{key:"coerce",value:function(t,a){return this._coerceFunc?this._coerceFunc(t,a):e.coerce(t,a)}},{key:"_peekBytes",value:function(e,t,a){var r=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+r>this._data.length&&(this.allowLoose&&a&&this._offset+t<=this._data.length?r=t:C.throwError("data out-of-bounds",o.b.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+r})),this._data.slice(this._offset,this._offset+r)}},{key:"subReader",value:function(t){return new e(this._data.slice(this._offset+t),this.wordSize,this._coerceFunc,this.allowLoose)}},{key:"readBytes",value:function(e,t){var a=this._peekBytes(0,e,!!t);return this._offset+=a.length,a.slice(0,e)}},{key:"readValue",value:function(){return f.a.from(this.readBytes(this.wordSize))}}],[{key:"coerce",value:function(e,t){var a=e.match("^u?int([0-9]+)$");return a&&parseInt(a[1])<=48&&(t=t.toNumber()),t}}]),e}(),U=a(25),F=function(e){Object(r.a)(a,e);var t=Object(n.a)(a);function a(e){return Object(c.a)(this,a),t.call(this,"address","address",e,!1)}return Object(i.a)(a,[{key:"encode",value:function(e,t){try{Object(U.a)(t)}catch(a){this._throwError(a.message,t)}return e.writeValue(t)}},{key:"decode",value:function(e){return Object(U.a)(Object(R.h)(e.readValue().toHexString(),20))}}]),a}(I),D=function(e){Object(r.a)(a,e);var t=Object(n.a)(a);function a(e){var r;return Object(c.a)(this,a),(r=t.call(this,e.name,e.type,void 0,e.dynamic)).coder=e,r}return Object(i.a)(a,[{key:"encode",value:function(e,t){return this.coder.encode(e,t)}},{key:"decode",value:function(e){return this.coder.decode(e)}}]),a}(I),z=new o.b(s);function H(e,t,a){var r=null;if(Array.isArray(a))r=a;else if(a&&"object"===typeof a){var n={};r=t.map((function(e){var t=e.localName;return t||z.throwError("cannot encode object for signature with missing names",o.b.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:a}),n[t]&&z.throwError("cannot encode object for signature with duplicate names",o.b.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:a}),n[t]=!0,a[t]}))}else z.throwArgumentError("invalid tuple value","tuple",a);t.length!==r.length&&z.throwArgumentError("types/value length mismatch","tuple",a);var c=new N(e.wordSize),i=new N(e.wordSize),f=[];t.forEach((function(e,t){var a=r[t];if(e.dynamic){var n=i.length;e.encode(i,a);var d=c.writeUpdatableValue();f.push((function(e){d(e+n)}))}else e.encode(c,a)})),f.forEach((function(e){e(c.length)}));var d=e.appendWriter(c);return d+=e.appendWriter(i)}function q(e,t){var a=[],r=e.subReader(0);t.forEach((function(t){var n=null;if(t.dynamic){var c=e.readValue(),i=r.subReader(c.toNumber());try{n=t.decode(i)}catch(f){if(f.code===o.b.errors.BUFFER_OVERRUN)throw f;(n=f).baseType=t.name,n.name=t.localName,n.type=t.type}}else try{n=t.decode(e)}catch(f){if(f.code===o.b.errors.BUFFER_OVERRUN)throw f;(n=f).baseType=t.name,n.name=t.localName,n.type=t.type}void 0!=n&&a.push(n)}));var n=t.reduce((function(e,t){var a=t.localName;return a&&(e[a]||(e[a]=0),e[a]++),e}),{});t.forEach((function(e,t){var r=e.localName;if(r&&1===n[r]&&("length"===r&&(r="_length"),null==a[r])){var c=a[t];c instanceof Error?Object.defineProperty(a,r,{get:function(){throw c}}):a[r]=c}}));for(var c=function(e){var t=a[e];t instanceof Error&&Object.defineProperty(a,e,{get:function(){throw t}})},i=0;i=0?r:"")+"]",d=-1===r||e.dynamic;return(i=t.call(this,"array",f,n,d)).coder=e,i.length=r,i}return Object(i.a)(a,[{key:"encode",value:function(e,t){Array.isArray(t)||this._throwError("expected array value",t);var a=this.length;-1===a&&(a=t.length,e.writeValue(t.length)),z.checkArgumentCount(t.length,a,"coder array"+(this.localName?" "+this.localName:""));for(var r=[],n=0;n256||r%8!==0)&&re.throwArgumentError("invalid "+a[1]+" bit length","param",e),new Q(r/8,"int"===a[1],e.name)}if(a=e.type.match(ne)){var n=parseInt(a[1]);return(0===n||n>32)&&re.throwArgumentError("invalid bytes length","param",e),new J(n,e.name)}return re.throwArgumentError("invalid type","type",e.type)}},{key:"_getWordSize",value:function(){return 32}},{key:"_getReader",value:function(e,t){return new L(e,this._getWordSize(),this.coerceFunc,t)}},{key:"_getWriter",value:function(){return new N(this._getWordSize())}},{key:"encode",value:function(e,t){var a=this;e.length!==t.length&&re.throwError("types/values length mismatch",o.b.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});var r=e.map((function(e){return a._getCoder(g.from(e))})),n=new ae(r,"_"),c=this._getWriter();return n.encode(c,t),c.data}},{key:"decode",value:function(e,t,a){var r=this,n=e.map((function(e){return r._getCoder(g.from(e))}));return new ae(n,"_").decode(this._getReader(Object(R.a)(t),a))}}]),e}(),fe=new ie,de=a(574),oe=a(18),se=new o.b(s),be=function(e){Object(r.a)(a,e);var t=Object(n.a)(a);function a(){return Object(c.a)(this,a),t.apply(this,arguments)}return a}(d.a),ue=function(e){Object(r.a)(a,e);var t=Object(n.a)(a);function a(){return Object(c.a)(this,a),t.apply(this,arguments)}return a}(d.a),le=function(e){Object(r.a)(a,e);var t=Object(n.a)(a);function a(){return Object(c.a)(this,a),t.apply(this,arguments)}return Object(i.a)(a,null,[{key:"isIndexed",value:function(e){return!(!e||!e._isIndexed)}}]),a}(d.a);function he(e,t){var a=new Error("deferred error during ABI decoding triggered accessing ".concat(e));return a.error=t,a}var xe=function(){function e(t){var a=this;Object(c.a)(this,e),se.checkNew(this instanceof e?this.constructor:void 0,e);var r=[];r="string"===typeof t?JSON.parse(t):t,Object(d.d)(this,"fragments",r.map((function(e){return w.from(e)})).filter((function(e){return null!=e}))),Object(d.d)(this,"_abiCoder",Object(d.e)(this instanceof e?this.constructor:void 0,"getAbiCoder")()),Object(d.d)(this,"functions",{}),Object(d.d)(this,"errors",{}),Object(d.d)(this,"events",{}),Object(d.d)(this,"structs",{}),this.fragments.forEach((function(e){var t=null;switch(e.type){case"constructor":return a.deploy?void se.warn("duplicate definition - constructor"):void Object(d.d)(a,"deploy",e);case"function":t=a.functions;break;case"event":t=a.events;break;default:return}var r=e.format();t[r]?se.warn("duplicate definition - "+r):t[r]=e})),this.deploy||Object(d.d)(this,"deploy",A.from({payable:!1,type:"constructor"})),Object(d.d)(this,"_isInterface",!0)}return Object(i.a)(e,[{key:"format",value:function(e){e||(e=m.full),e===m.sighash&&se.throwArgumentError("interface does not support formatting sighash","format",e);var t=this.fragments.map((function(t){return t.format(e)}));return e===m.json?JSON.stringify(t.map((function(e){return JSON.parse(e)}))):t}},{key:"getFunction",value:function(e){if(Object(R.l)(e)){for(var t in this.functions)if(e===this.getSighash(t))return this.functions[t];se.throwArgumentError("no matching function","sighash",e)}if(-1===e.indexOf("(")){var a=e.trim(),r=Object.keys(this.functions).filter((function(e){return e.split("(")[0]===a}));return 0===r.length?se.throwArgumentError("no matching function","name",a):r.length>1&&se.throwArgumentError("multiple matching functions","name",a),this.functions[r[0]]}var n=this.functions[E.fromString(e).format()];return n||se.throwArgumentError("no matching function","signature",e),n}},{key:"getEvent",value:function(e){if(Object(R.l)(e)){var t=e.toLowerCase();for(var a in this.events)if(t===this.getEventTopic(a))return this.events[a];se.throwArgumentError("no matching event","topichash",t)}if(-1===e.indexOf("(")){var r=e.trim(),n=Object.keys(this.events).filter((function(e){return e.split("(")[0]===r}));return 0===n.length?se.throwArgumentError("no matching event","name",r):n.length>1&&se.throwArgumentError("multiple matching events","name",r),this.events[n[0]]}var c=this.events[_.fromString(e).format()];return c||se.throwArgumentError("no matching event","signature",e),c}},{key:"getSighash",value:function(e){return"string"===typeof e&&(e=this.getFunction(e)),Object(d.e)(this.constructor,"getSighash")(e)}},{key:"getEventTopic",value:function(e){return"string"===typeof e&&(e=this.getEvent(e)),Object(d.e)(this.constructor,"getEventTopic")(e)}},{key:"_decodeParams",value:function(e,t){return this._abiCoder.decode(e,t)}},{key:"_encodeParams",value:function(e,t){return this._abiCoder.encode(e,t)}},{key:"encodeDeploy",value:function(e){return this._encodeParams(this.deploy.inputs,e||[])}},{key:"decodeFunctionData",value:function(e,t){"string"===typeof e&&(e=this.getFunction(e));var a=Object(R.a)(t);return Object(R.i)(a.slice(0,4))!==this.getSighash(e)&&se.throwArgumentError("data signature does not match function ".concat(e.name,"."),"data",Object(R.i)(a)),this._decodeParams(e.inputs,a.slice(4))}},{key:"encodeFunctionData",value:function(e,t){return"string"===typeof e&&(e=this.getFunction(e)),Object(R.i)(Object(R.b)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}},{key:"decodeFunctionResult",value:function(e,t){"string"===typeof e&&(e=this.getFunction(e));var a=Object(R.a)(t),r=null,n=null;switch(a.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,a)}catch(c){}break;case 4:"0x08c379a0"===Object(R.i)(a.slice(0,4))&&(n="Error(string)",r=this._abiCoder.decode(["string"],a.slice(4))[0])}return se.throwError("call revert exception",o.b.errors.CALL_EXCEPTION,{method:e.format(),errorSignature:n,errorArgs:[r],reason:r})}},{key:"encodeFunctionResult",value:function(e,t){return"string"===typeof e&&(e=this.getFunction(e)),Object(R.i)(this._abiCoder.encode(e.outputs,t||[]))}},{key:"encodeFilterTopics",value:function(e,t){var a=this;"string"===typeof e&&(e=this.getEvent(e)),t.length>e.inputs.length&&se.throwError("too many arguments for "+e.format(),o.b.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t});var r=[];e.anonymous||r.push(this.getEventTopic(e));var n=function(e,t){return"string"===e.type?Object(de.a)(t):"bytes"===e.type?Object(oe.a)(Object(R.i)(t)):("address"===e.type&&a._abiCoder.encode(["address"],[t]),Object(R.h)(Object(R.i)(t),32))};for(t.forEach((function(t,a){var c=e.inputs[a];c.indexed?null==t?r.push(null):"array"===c.baseType||"tuple"===c.baseType?se.throwArgumentError("filtering with tuples or arrays not supported","contract."+c.name,t):Array.isArray(t)?r.push(t.map((function(e){return n(c,e)}))):r.push(n(c,t)):null!=t&&se.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+c.name,t)}));r.length&&null===r[r.length-1];)r.pop();return r}},{key:"encodeEventLog",value:function(e,t){var a=this;"string"===typeof e&&(e=this.getEvent(e));var r=[],n=[],c=[];return e.anonymous||r.push(this.getEventTopic(e)),t.length!==e.inputs.length&&se.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach((function(e,i){var f=t[i];if(e.indexed)if("string"===e.type)r.push(Object(de.a)(f));else if("bytes"===e.type)r.push(Object(oe.a)(f));else{if("tuple"===e.baseType||"array"===e.baseType)throw new Error("not implemented");r.push(a._abiCoder.encode([e.type],[f]))}else n.push(e),c.push(f)})),{data:this._abiCoder.encode(n,c),topics:r}}},{key:"decodeEventLog",value:function(e,t,a){if("string"===typeof e&&(e=this.getEvent(e)),null!=a&&!e.anonymous){var r=this.getEventTopic(e);Object(R.l)(a[0],32)&&a[0].toLowerCase()===r||se.throwError("fragment/topic mismatch",o.b.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:r,value:a[0]}),a=a.slice(1)}var n=[],c=[],i=[];e.inputs.forEach((function(e,t){e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(n.push(g.fromObject({type:"bytes32",name:e.name})),i.push(!0)):(n.push(e),i.push(!1)):(c.push(e),i.push(!1))}));var f=null!=a?this._abiCoder.decode(n,Object(R.b)(a)):null,d=this._abiCoder.decode(c,t,!0),s=[],b=0,u=0;e.inputs.forEach((function(e,t){if(e.indexed)if(null==f)s[t]=new le({_isIndexed:!0,hash:null});else if(i[t])s[t]=new le({_isIndexed:!0,hash:f[u++]});else try{s[t]=f[u++]}catch(r){s[t]=r}else try{s[t]=d[b++]}catch(r){s[t]=r}if(e.name&&null==s[e.name]){var a=s[t];a instanceof Error?Object.defineProperty(s,e.name,{get:function(){throw he("property ".concat(JSON.stringify(e.name)),a)}}):s[e.name]=a}}));for(var l=function(e){var t=s[e];t instanceof Error&&Object.defineProperty(s,e,{get:function(){throw he("index ".concat(e),t)}})},h=0;h=r)this.stopReconnecting(e,this.getTooManyFailedReconnectsMessage());else{var c=n(e);"boolean"===typeof c?this.handleWillReconnect(c,e,"Provided shouldReconnect() returned false. Closing permanently."):c.then((function(a){t.isClosed||t.handleWillReconnect(a,e,"Provided shouldReconnect() resolved to false. Closing permanently.")}))}}},e.prototype.handleError=function(e){this.dispatchEventOfType("error",e),this.debugLog("WebSocket encountered an error.")},e.prototype.handleWillReconnect=function(e,t,a){e?this.reconnect():this.stopReconnecting(t,a)},e.prototype.reconnect=function(){var e=this,t=this.options,a=t.minReconnectDelay,r=t.maxReconnectDelay,n=t.reconnectBackoffFactor;this.reconnectCount++;var c=this.nextRetryTime;this.nextRetryTime=Math.max(a,Math.min(this.nextRetryTime*n,r)),setTimeout((function(){return e.openNewWebSocket()}),c);var i=c/1e3|0;this.debugLog("WebSocket was closed. Re-opening in "+i+" seconds.")},e.prototype.stopReconnecting=function(e,t){this.debugLog(t),this.shutdown(),this.dispatchEventOfType("close",e)},e.prototype.shutdown=function(){this.isClosed=!0,this.clearAllTimeouts(),this.messageBuffer=[]},e.prototype.clearAllTimeouts=function(){this.clearConnectTimeout(),this.clearAllClearTimeout()},e.prototype.clearConnectTimeout=function(){null!=this.connectTimeoutId&&(clearTimeout(this.connectTimeoutId),this.connectTimeoutId=void 0)},e.prototype.clearAllClearTimeout=function(){null!=this.allClearTimeoutId&&(clearTimeout(this.allClearTimeoutId),this.allClearTimeoutId=void 0)},e.prototype.dispatchEventOfType=function(e,t){var a=this;switch(e){case"close":this.onclose&&this.onclose(t);break;case"error":this.onerror&&this.onerror(t);break;case"message":this.onmessage&&this.onmessage(t);break;case"open":this.onopen&&this.onopen(t);break;case"down":this.ondown&&this.ondown(t);break;case"reopen":this.onreopen&&this.onreopen(t)}return e in this.listeners&&this.listeners[e].slice().forEach((function(e){return a.callListener(e,t)})),!t||!t.defaultPrevented},e.prototype.callListener=function(e,t){"function"===typeof e?e.call(this,t):e.handleEvent.call(this,t)},e.prototype.debugLog=function(e){this.options.debug&&console.log(e)},e.prototype.getTooManyFailedReconnectsMessage=function(){var e,t=this.options.maxReconnectAttempts;return"Failed to reconnect after "+t+" "+(e="attempt",(1===t?e:e+"s")+". Closing permanently.")},e.DEFAULT_OPTIONS={allClearResetTime:5e3,connectTimeout:5e3,debug:!1,minReconnectDelay:1e3,maxReconnectDelay:3e4,maxReconnectAttempts:Number.POSITIVE_INFINITY,reconnectBackoffFactor:1.5,shouldReconnect:function(){return!0},wsConstructor:void 0},e.CONNECTING=0,e.OPEN=1,e.CLOSING=2,e.CLOSED=3,e}();t.default=n},function(e,t,a){"use strict";var r=a(282).version,n=a(41),c=a(387),i=a(89),f=a(203),d=a(552),o=a(553),s=a(19),b=function(){var e=this;n.packageInit(this,arguments),this.version=r,this.utils=s,this.eth=new c(this),this.shh=new d(this),this.bzz=new o(this);var t=this.setProvider;this.setProvider=function(a,r){return t.apply(e,arguments),e.eth.setRequestManager(e._requestManager),e.shh.setRequestManager(e._requestManager),e.bzz.setProvider(a),!0}};b.version=r,b.utils=s,b.modules={Eth:c,Net:i,Personal:f,Shh:d,Bzz:o},n.addProviders(b),e.exports=b},function(e,t,a){"use strict";(function(e){a.d(t,"a",(function(){return H}));var r=a(6),n=a.n(r),c=a(20),i=a.n(c);"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e||"undefined"!==typeof self&&self;function f(e,t,a){return a={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}((void 0===t||null===t)&&a.path)}},e(a,a.exports),a.exports}var d=o;function o(e,t){if(!e)throw new Error(t||"Assertion failed")}o.equal=function(e,t,a){if(e!=t)throw new Error(a||"Assertion failed: "+e+" != "+t)};var s=f((function(e,t){var a=t;function r(e){return 1===e.length?"0"+e:e}function n(e){for(var t="",a=0;a>8,i=255&n;c?a.push(c,i):a.push(i)}return a},a.zero2=r,a.toHex=n,a.encode=function(e,t){return"hex"===t?n(e):e}})),b=f((function(e,t){var a=t;a.assert=d,a.toArray=s.toArray,a.zero2=s.zero2,a.toHex=s.toHex,a.encode=s.encode,a.getNAF=function(e,t,a){var r=new Array(Math.max(e.bitLength(),a)+1);r.fill(0);for(var n=1<(n>>1)-1?(n>>1)-d:d,c.isubn(f)):f=0,r[i]=f,c.iushrn(1)}return r},a.getJSF=function(e,t){var a=[[],[]];e=e.clone(),t=t.clone();for(var r,n=0,c=0;e.cmpn(-n)>0||t.cmpn(-c)>0;){var i,f,d=e.andln(3)+n&3,o=t.andln(3)+c&3;3===d&&(d=-1),3===o&&(o=-1),i=0===(1&d)?0:3!==(r=e.andln(7)+n&7)&&5!==r||2!==o?d:-d,a[0].push(i),f=0===(1&o)?0:3!==(r=t.andln(7)+c&7)&&5!==r||2!==d?o:-o,a[1].push(f),2*n===i+1&&(n=1-n),2*c===f+1&&(c=1-c),e.iushrn(1),t.iushrn(1)}return a},a.cachedProperty=function(e,t,a){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=a.call(this)}},a.parseBytes=function(e){return"string"===typeof e?a.toArray(e,"hex"):e},a.intFromLE=function(e){return new n.a(e,"hex","le")}})),u=b.getNAF,l=b.getJSF,h=b.assert;function x(e,t){this.type=e,this.p=new n.a(t.p,16),this.red=t.prime?n.a.red(t.prime):n.a.mont(this.p),this.zero=new n.a(0).toRed(this.red),this.one=new n.a(1).toRed(this.red),this.two=new n.a(2).toRed(this.red),this.n=t.n&&new n.a(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var a=this.n&&this.p.div(this.n);!a||a.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var p=x;function m(e,t){this.curve=e,this.type=t,this.precomputed=null}x.prototype.point=function(){throw new Error("Not implemented")},x.prototype.validate=function(){throw new Error("Not implemented")},x.prototype._fixedNafMul=function(e,t){h(e.precomputed);var a=e._getDoubles(),r=u(t,1,this._bitLength),n=(1<=c;d--)i=(i<<1)+r[d];f.push(i)}for(var o=this.jpoint(null,null,null),s=this.jpoint(null,null,null),b=n;b>0;b--){for(c=0;c=0;f--){for(var d=0;f>=0&&0===c[f];f--)d++;if(f>=0&&d++,i=i.dblp(d),f<0)break;var o=c[f];h(0!==o),i="affine"===e.type?o>0?i.mixedAdd(n[o-1>>1]):i.mixedAdd(n[-o-1>>1].neg()):o>0?i.add(n[o-1>>1]):i.add(n[-o-1>>1].neg())}return"affine"===e.type?i.toP():i},x.prototype._wnafMulAdd=function(e,t,a,r,n){var c,i,f,d=this._wnafT1,o=this._wnafT2,s=this._wnafT3,b=0;for(c=0;c=1;c-=2){var x=c-1,p=c;if(1===d[x]&&1===d[p]){var m=[t[x],null,null,t[p]];0===t[x].y.cmp(t[p].y)?(m[1]=t[x].add(t[p]),m[2]=t[x].toJ().mixedAdd(t[p].neg())):0===t[x].y.cmp(t[p].y.redNeg())?(m[1]=t[x].toJ().mixedAdd(t[p]),m[2]=t[x].add(t[p].neg())):(m[1]=t[x].toJ().mixedAdd(t[p]),m[2]=t[x].toJ().mixedAdd(t[p].neg()));var v=[-3,-1,-5,-7,0,7,5,1,3],g=l(a[x],a[p]);for(b=Math.max(g[0].length,b),s[x]=new Array(b),s[p]=new Array(b),i=0;i=0;c--){for(var k=0;c>=0;){var S=!0;for(i=0;i=0&&k++,_=_.dblp(k),c<0)break;for(i=0;i0?f=o[i][A-1>>1]:A<0&&(f=o[i][-A-1>>1].neg()),_="affine"===f.type?_.mixedAdd(f):_.add(f))}}for(c=0;c=Math.ceil((e.bitLength()+1)/t.step)},m.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var a=[this],r=this,n=0;n=0&&(i=t,f=a),r.negative&&(r=r.neg(),c=c.neg()),i.negative&&(i=i.neg(),f=f.neg()),[{a:r,b:c},{a:i,b:f}]},y.prototype._endoSplit=function(e){var t=this.endo.basis,a=t[0],r=t[1],n=r.b.mul(e).divRound(this.n),c=a.b.neg().mul(e).divRound(this.n),i=n.mul(a.a),f=c.mul(r.a),d=n.mul(a.b),o=c.mul(r.b);return{k1:e.sub(i).sub(f),k2:d.add(o).neg()}},y.prototype.pointFromX=function(e,t){(e=new n.a(e,16)).red||(e=e.toRed(this.red));var a=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=a.redSqrt();if(0!==r.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var c=r.fromRed().isOdd();return(t&&!c||!t&&c)&&(r=r.redNeg()),this.point(e,r)},y.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,a=e.y,r=this.a.redMul(t),n=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===a.redSqr().redISub(n).cmpn(0)},y.prototype._endoWnafMulAdd=function(e,t,a){for(var r=this._endoWnafT1,n=this._endoWnafT2,c=0;c":""},_.prototype.isInfinity=function(){return this.inf},_.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var a=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,r)},_.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,a=this.x.redSqr(),r=e.redInvm(),n=a.redAdd(a).redIAdd(a).redIAdd(t).redMul(r),c=n.redSqr().redISub(this.x.redAdd(this.x)),i=n.redMul(this.x.redSub(c)).redISub(this.y);return this.curve.point(c,i)},_.prototype.getX=function(){return this.x.fromRed()},_.prototype.getY=function(){return this.y.fromRed()},_.prototype.mul=function(e){return e=new n.a(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},_.prototype.mulAdd=function(e,t,a){var r=[this,t],n=[e,a];return this.curve.endo?this.curve._endoWnafMulAdd(r,n):this.curve._wnafMulAdd(1,r,n,2)},_.prototype.jmulAdd=function(e,t,a){var r=[this,t],n=[e,a];return this.curve.endo?this.curve._endoWnafMulAdd(r,n,!0):this.curve._wnafMulAdd(1,r,n,2,!0)},_.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},_.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var a=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:a.naf&&{wnd:a.naf.wnd,points:a.naf.points.map(r)},doubles:a.doubles&&{step:a.doubles.step,points:a.doubles.points.map(r)}}}return t},_.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},v(M,p.BasePoint),y.prototype.jpoint=function(e,t,a){return new M(this,e,t,a)},M.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),a=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(a,r)},M.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},M.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),a=this.z.redSqr(),r=this.x.redMul(t),n=e.x.redMul(a),c=this.y.redMul(t.redMul(e.z)),i=e.y.redMul(a.redMul(this.z)),f=r.redSub(n),d=c.redSub(i);if(0===f.cmpn(0))return 0!==d.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var o=f.redSqr(),s=o.redMul(f),b=r.redMul(o),u=d.redSqr().redIAdd(s).redISub(b).redISub(b),l=d.redMul(b.redISub(u)).redISub(c.redMul(s)),h=this.z.redMul(e.z).redMul(f);return this.curve.jpoint(u,l,h)},M.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),a=this.x,r=e.x.redMul(t),n=this.y,c=e.y.redMul(t).redMul(this.z),i=a.redSub(r),f=n.redSub(c);if(0===i.cmpn(0))return 0!==f.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var d=i.redSqr(),o=d.redMul(i),s=a.redMul(d),b=f.redSqr().redIAdd(o).redISub(s).redISub(s),u=f.redMul(s.redISub(b)).redISub(n.redMul(o)),l=this.z.redMul(i);return this.curve.jpoint(b,u,l)},M.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var a=this;for(t=0;t=0)return!1;if(a.redIAdd(n),0===this.x.cmp(a))return!0}},M.prototype.inspect=function(){return this.isInfinity()?"":""},M.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var k=f((function(e,t){var a=t;a.base=p,a.short=w,a.mont=null,a.edwards=null})),S=f((function(e,t){var a,r=t,n=b.assert;function c(e){"short"===e.type?this.curve=new k.short(e):"edwards"===e.type?this.curve=new k.edwards(e):this.curve=new k.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,n(this.g.validate(),"Invalid curve"),n(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function f(e,t){Object.defineProperty(r,e,{configurable:!0,enumerable:!0,get:function(){var a=new c(t);return Object.defineProperty(r,e,{configurable:!0,enumerable:!0,value:a}),a}})}r.PresetCurve=c,f("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:i.a.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),f("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:i.a.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),f("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:i.a.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),f("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:i.a.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),f("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:i.a.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),f("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:i.a.sha256,gRed:!1,g:["9"]}),f("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:i.a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{a=null.crash()}catch(d){a=void 0}f("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:i.a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",a]})}));function A(e){if(!(this instanceof A))return new A(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=s.toArray(e.entropy,e.entropyEnc||"hex"),a=s.toArray(e.nonce,e.nonceEnc||"hex"),r=s.toArray(e.pers,e.persEnc||"hex");d(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,a,r)}var E=A;A.prototype._init=function(e,t,a){var r=e.concat(t).concat(a);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var n=0;n=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(a||[])),this._reseed=1},A.prototype.generate=function(e,t,a,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!==typeof t&&(r=a,a=t,t=null),a&&(a=s.toArray(a,r||"hex"),this._update(a));for(var n=[];n.length"};var B=b.assert;function R(e,t){if(e instanceof R)return e;this._importDER(e,t)||(B(e.r&&e.s,"Signature without r or s"),this.r=new n.a(e.r,16),this.s=new n.a(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var C=R;function j(){this.place=0}function I(e,t){var a=e[t.place++];if(!(128&a))return a;var r=15&a;if(0===r||r>4)return!1;for(var n=0,c=0,i=t.place;c>>=0;return!(n<=127)&&(t.place=i,n)}function N(e){for(var t=0,a=e.length-1;!e[t]&&!(128&e[t+1])&&t>>3);for(e.push(128|a);--a;)e.push(t>>>(a<<3)&255);e.push(t)}}R.prototype._importDER=function(e,t){e=b.toArray(e,t);var a=new j;if(48!==e[a.place++])return!1;var r=I(e,a);if(!1===r)return!1;if(r+a.place!==e.length)return!1;if(2!==e[a.place++])return!1;var c=I(e,a);if(!1===c)return!1;var i=e.slice(a.place,c+a.place);if(a.place+=c,2!==e[a.place++])return!1;var f=I(e,a);if(!1===f)return!1;if(e.length!==f+a.place)return!1;var d=e.slice(a.place,f+a.place);if(0===i[0]){if(!(128&i[1]))return!1;i=i.slice(1)}if(0===d[0]){if(!(128&d[1]))return!1;d=d.slice(1)}return this.r=new n.a(i),this.s=new n.a(d),this.recoveryParam=null,!0},R.prototype.toDER=function(e){var t=this.r.toArray(),a=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&a[0]&&(a=[0].concat(a)),t=N(t),a=N(a);!a[0]&&!(128&a[1]);)a=a.slice(1);var r=[2];L(r,t.length),(r=r.concat(t)).push(2),L(r,a.length);var n=r.concat(a),c=[48];return L(c,n.length),c=c.concat(n),b.encode(c,e)};var U=function(){throw new Error("unsupported")},F=b.assert;function D(e){if(!(this instanceof D))return new D(e);"string"===typeof e&&(F(Object.prototype.hasOwnProperty.call(S,e),"Unknown curve "+e),e=S[e]),e instanceof S.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}var z=D;D.prototype.keyPair=function(e){return new T(this,e)},D.prototype.keyFromPrivate=function(e,t){return T.fromPrivate(this,e,t)},D.prototype.keyFromPublic=function(e,t){return T.fromPublic(this,e,t)},D.prototype.genKeyPair=function(e){e||(e={});for(var t=new E({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||U(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),a=this.n.byteLength(),r=this.n.sub(new n.a(2));;){var c=new n.a(t.generate(a));if(!(c.cmp(r)>0))return c.iaddn(1),this.keyFromPrivate(c)}},D.prototype._truncateToN=function(e,t){var a=8*e.byteLength()-this.n.bitLength();return a>0&&(e=e.ushrn(a)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},D.prototype.sign=function(e,t,a,r){"object"===typeof a&&(r=a,a=null),r||(r={}),t=this.keyFromPrivate(t,a),e=this._truncateToN(new n.a(e,16));for(var c=this.n.byteLength(),i=t.getPrivate().toArray("be",c),f=e.toArray("be",c),d=new E({hash:this.hash,entropy:i,nonce:f,pers:r.pers,persEnc:r.persEnc||"utf8"}),o=this.n.sub(new n.a(1)),s=0;;s++){var b=r.k?r.k(s):new n.a(d.generate(this.n.byteLength()));if(!((b=this._truncateToN(b,!0)).cmpn(1)<=0||b.cmp(o)>=0)){var u=this.g.mul(b);if(!u.isInfinity()){var l=u.getX(),h=l.umod(this.n);if(0!==h.cmpn(0)){var x=b.invm(this.n).mul(h.mul(t.getPrivate()).iadd(e));if(0!==(x=x.umod(this.n)).cmpn(0)){var p=(u.getY().isOdd()?1:0)|(0!==l.cmp(h)?2:0);return r.canonical&&x.cmp(this.nh)>0&&(x=this.n.sub(x),p^=1),new C({r:h,s:x,recoveryParam:p})}}}}}},D.prototype.verify=function(e,t,a,r){e=this._truncateToN(new n.a(e,16)),a=this.keyFromPublic(a,r);var c=(t=new C(t,"hex")).r,i=t.s;if(c.cmpn(1)<0||c.cmp(this.n)>=0)return!1;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;var f,d=i.invm(this.n),o=d.mul(e).umod(this.n),s=d.mul(c).umod(this.n);return this.curve._maxwellTrick?!(f=this.g.jmulAdd(o,a.getPublic(),s)).isInfinity()&&f.eqXToP(c):!(f=this.g.mulAdd(o,a.getPublic(),s)).isInfinity()&&0===f.getX().umod(this.n).cmp(c)},D.prototype.recoverPubKey=function(e,t,a,r){F((3&a)===a,"The recovery param is more than two bits"),t=new C(t,r);var c=this.n,i=new n.a(e),f=t.r,d=t.s,o=1&a,s=a>>1;if(f.cmp(this.curve.p.umod(this.curve.n))>=0&&s)throw new Error("Unable to find sencond key candinate");f=s?this.curve.pointFromX(f.add(this.curve.n),o):this.curve.pointFromX(f,o);var b=t.r.invm(c),u=c.sub(i).mul(b).umod(c),l=d.mul(b).umod(c);return this.g.mulAdd(u,f,l)},D.prototype.getKeyRecoveryParam=function(e,t,a,r){if(null!==(t=new C(t,r)).recoveryParam)return t.recoveryParam;for(var n=0;n<4;n++){var c;try{c=this.recoverPubKey(e,t,n)}catch(e){continue}if(c.eq(a))return n}throw new Error("Unable to find valid recovery factor")};var H=f((function(e,t){var a=t;a.version="6.5.4",a.utils=b,a.rand=function(){throw new Error("unsupported")},a.curve=k,a.curves=S,a.ec=z,a.eddsa=null})).ec}).call(this,a(15))},function(e,t,a){var r=a(429),n=a(430),c=a(110),i=a(431);e.exports=function(e){return r(e)||n(e)||c(e)||i()}},function(e,t){function a(t){return e.exports=a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},a(t)}e.exports=a},function(e,t,a){"use strict";a.r(t),a.d(t,"TransactionTypes",(function(){return r})),a.d(t,"computeAddress",(function(){return v})),a.d(t,"recoverAddress",(function(){return g})),a.d(t,"accessListify",(function(){return _})),a.d(t,"serialize",(function(){return A})),a.d(t,"parse",(function(){return O}));var r,n=a(25),c=a(37),i=a(0),f=a(572),d=a(18),o=a(12),s=a(26),b=a(107),u=a(8),l=new u.b("transactions/5.5.0");function h(e){return"0x"===e?null:Object(n.a)(e)}function x(e){return"0x"===e?f.h:c.a.from(e)}!function(e){e[e.legacy=0]="legacy",e[e.eip2930=1]="eip2930",e[e.eip1559=2]="eip1559"}(r||(r={}));var p=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],m={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function v(e){var t=Object(b.b)(e);return Object(n.a)(Object(i.e)(Object(d.a)(Object(i.e)(t,1)),12))}function g(e,t){return v(Object(b.c)(Object(i.a)(e),t))}function y(e,t){var a=Object(i.o)(c.a.from(e).toHexString());return a.length>32&&l.throwArgumentError("invalid length for "+t,"transaction:"+t,e),a}function w(e,t){return{address:Object(n.a)(e),storageKeys:(t||[]).map((function(t,a){return 32!==Object(i.d)(t)&&l.throwArgumentError("invalid access list storageKey","accessList[".concat(e,":").concat(a,"]"),t),t.toLowerCase()}))}}function _(e){if(Array.isArray(e))return e.map((function(e,t){return Array.isArray(e)?(e.length>2&&l.throwArgumentError("access list expected to be [ address, storageKeys[] ]","value[".concat(t,"]"),e),w(e[0],e[1])):w(e.address,e.storageKeys)}));var t=Object.keys(e).map((function(t){var a=e[t].reduce((function(e,t){return e[t]=!0,e}),{});return w(t,Object.keys(a).sort())}));return t.sort((function(e,t){return e.address.localeCompare(t.address)})),t}function M(e){return _(e).map((function(e){return[e.address,e.storageKeys]}))}function k(e,t){if(null!=e.gasPrice){var a=c.a.from(e.gasPrice),r=c.a.from(e.maxFeePerGas||0);a.eq(r)||l.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:a,maxFeePerGas:r})}var f=[y(e.chainId||0,"chainId"),y(e.nonce||0,"nonce"),y(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),y(e.maxFeePerGas||0,"maxFeePerGas"),y(e.gasLimit||0,"gasLimit"),null!=e.to?Object(n.a)(e.to):"0x",y(e.value||0,"value"),e.data||"0x",M(e.accessList||[])];if(t){var d=Object(i.n)(t);f.push(y(d.recoveryParam,"recoveryParam")),f.push(Object(i.o)(d.r)),f.push(Object(i.o)(d.s))}return Object(i.c)(["0x02",s.encode(f)])}function S(e,t){var a=[y(e.chainId||0,"chainId"),y(e.nonce||0,"nonce"),y(e.gasPrice||0,"gasPrice"),y(e.gasLimit||0,"gasLimit"),null!=e.to?Object(n.a)(e.to):"0x",y(e.value||0,"value"),e.data||"0x",M(e.accessList||[])];if(t){var r=Object(i.n)(t);a.push(y(r.recoveryParam,"recoveryParam")),a.push(Object(i.o)(r.r)),a.push(Object(i.o)(r.s))}return Object(i.c)(["0x01",s.encode(a)])}function A(e,t){if(null==e.type||0===e.type)return null!=e.accessList&&l.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",e),function(e,t){Object(o.b)(e,m);var a=[];p.forEach((function(t){var r=e[t.name]||[],n={};t.numeric&&(n.hexPad="left"),r=Object(i.a)(Object(i.i)(r,n)),t.length&&r.length!==t.length&&r.length>0&&l.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,r),t.maxLength&&(r=Object(i.o)(r)).length>t.maxLength&&l.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,r),a.push(Object(i.i)(r))}));var r=0;if(null!=e.chainId?"number"!==typeof(r=e.chainId)&&l.throwArgumentError("invalid transaction.chainId","transaction",e):t&&!Object(i.k)(t)&&t.v>28&&(r=Math.floor((t.v-35)/2)),0!==r&&(a.push(Object(i.i)(r)),a.push("0x"),a.push("0x")),!t)return s.encode(a);var n=Object(i.n)(t),c=27+n.recoveryParam;return 0!==r?(a.pop(),a.pop(),a.pop(),c+=2*r+8,n.v>28&&n.v!==c&&l.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t)):n.v!==c&&l.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t),a.push(Object(i.i)(c)),a.push(Object(i.o)(Object(i.a)(n.r))),a.push(Object(i.o)(Object(i.a)(n.s))),s.encode(a)}(e,t);switch(e.type){case 1:return S(e,t);case 2:return k(e,t)}return l.throwError("unsupported transaction type: ".concat(e.type),u.b.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:e.type})}function E(e,t,a){try{var r=x(t[0]).toNumber();if(0!==r&&1!==r)throw new Error("bad recid");e.v=r}catch(c){l.throwArgumentError("invalid v for transaction type: 1","v",t[0])}e.r=Object(i.h)(t[1],32),e.s=Object(i.h)(t[2],32);try{var n=Object(d.a)(a(e));e.from=g(n,{r:e.r,s:e.s,recoveryParam:e.v})}catch(c){console.log(c)}}function O(e){var t=Object(i.a)(e);if(t[0]>127)return function(e){var t=s.decode(e);9!==t.length&&6!==t.length&&l.throwArgumentError("invalid raw transaction","rawTransaction",e);var a={nonce:x(t[0]).toNumber(),gasPrice:x(t[1]),gasLimit:x(t[2]),to:h(t[3]),value:x(t[4]),data:t[5],chainId:0};if(6===t.length)return a;try{a.v=c.a.from(t[6]).toNumber()}catch(o){return console.log(o),a}if(a.r=Object(i.h)(t[7],32),a.s=Object(i.h)(t[8],32),c.a.from(a.r).isZero()&&c.a.from(a.s).isZero())a.chainId=a.v,a.v=0;else{a.chainId=Math.floor((a.v-35)/2),a.chainId<0&&(a.chainId=0);var r=a.v-27,n=t.slice(0,6);0!==a.chainId&&(n.push(Object(i.i)(a.chainId)),n.push("0x"),n.push("0x"),r-=2*a.chainId+8);var f=Object(d.a)(s.encode(n));try{a.from=g(f,{r:Object(i.i)(a.r),s:Object(i.i)(a.s),recoveryParam:r})}catch(o){console.log(o)}a.hash=Object(d.a)(e)}return a.type=null,a}(t);switch(t[0]){case 1:return function(e){var t=s.decode(e.slice(1));8!==t.length&&11!==t.length&&l.throwArgumentError("invalid component count for transaction type: 1","payload",Object(i.i)(e));var a={type:1,chainId:x(t[0]).toNumber(),nonce:x(t[1]).toNumber(),gasPrice:x(t[2]),gasLimit:x(t[3]),to:h(t[4]),value:x(t[5]),data:t[6],accessList:_(t[7])};return 8===t.length||(a.hash=Object(d.a)(e),E(a,t.slice(8),S)),a}(t);case 2:return function(e){var t=s.decode(e.slice(1));9!==t.length&&12!==t.length&&l.throwArgumentError("invalid component count for transaction type: 2","payload",Object(i.i)(e));var a=x(t[2]),r=x(t[3]),n={type:2,chainId:x(t[0]).toNumber(),nonce:x(t[1]).toNumber(),maxPriorityFeePerGas:a,maxFeePerGas:r,gasPrice:null,gasLimit:x(t[4]),to:h(t[5]),value:x(t[6]),data:t[7],accessList:_(t[8])};return 9===t.length||(n.hash=Object(d.a)(e),E(n,t.slice(9),k)),n}(t)}return l.throwError("unsupported transaction type: ".concat(t[0]),u.b.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:t[0]})}},,,function(e,t,a){var r=a(146),n=a(170);function c(t,a,i){return n()?e.exports=c=Reflect.construct:e.exports=c=function(e,t,a){var n=[null];n.push.apply(n,t);var c=new(Function.bind.apply(e,n));return a&&r(c,a.prototype),c},c.apply(null,arguments)}e.exports=c},function(e,t,a){e.exports=a(319)(a(330))},function(e,t,a){e.exports=n;var r=a(27).EventEmitter;function n(){r.call(this)}a(7)(n,r),n.Readable=a(69),n.Writable=a(349),n.Duplex=a(350),n.Transform=a(351),n.PassThrough=a(352),n.Stream=n,n.prototype.pipe=function(e,t){var a=this;function n(t){e.writable&&!1===e.write(t)&&a.pause&&a.pause()}function c(){a.readable&&a.resume&&a.resume()}a.on("data",n),e.on("drain",c),e._isStdio||t&&!1===t.end||(a.on("end",f),a.on("close",d));var i=!1;function f(){i||(i=!0,e.end())}function d(){i||(i=!0,"function"===typeof e.destroy&&e.destroy())}function o(e){if(s(),0===r.listenerCount(this,"error"))throw e}function s(){a.removeListener("data",n),e.removeListener("drain",c),a.removeListener("end",f),a.removeListener("close",d),a.removeListener("error",o),e.removeListener("error",o),a.removeListener("end",s),a.removeListener("close",s),e.removeListener("close",s)}return a.on("error",o),e.on("error",o),a.on("end",s),a.on("close",s),e.on("close",s),e.emit("pipe",a),e}},function(e,t,a){var r=a(260);e.exports=function(e){return"string"!==typeof e?e:r(e)?e.slice(2):e}},function(e,t){e.exports=function(e){if("string"!==typeof e)throw new Error("[is-hex-prefixed] value must be type 'string', is currently type "+typeof e+", while checking isHexPrefixed.");return"0x"===e.slice(0,2)}},function(e,t,a){var r=a(321),n=a(144);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?n(e):t}},function(e,t,a){"use strict";var r=a(561),n=a(562),c=a(563),i=a(143);function f(e,t,a){var r=e;return n(t)?(a=t,"string"===typeof e&&(r={uri:e})):r=i(t,{uri:e}),r.callback=a,r}function d(e,t,a){return o(t=f(e,t,a))}function o(e){if("undefined"===typeof e.callback)throw new Error("callback argument missing");var t=!1,a=function(a,r,n){t||(t=!0,e.callback(a,r,n))};function r(){var e=void 0;if(e=s.response?s.response:s.responseText||function(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch(a){}return null}(s),m)try{e=JSON.parse(e)}catch(t){}return e}function n(e){return clearTimeout(b),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,a(e,v)}function i(){if(!o){var t;clearTimeout(b),t=e.useXDR&&void 0===s.status?200:1223===s.status?204:s.status;var n=v,i=null;return 0!==t?(n={body:r(),statusCode:t,method:l,headers:{},url:u,rawRequest:s},s.getAllResponseHeaders&&(n.headers=c(s.getAllResponseHeaders()))):i=new Error("Internal XMLHttpRequest Error"),a(i,n,n.body)}}var f,o,s=e.xhr||null;s||(s=e.cors||e.useXDR?new d.XDomainRequest:new d.XMLHttpRequest);var b,u=s.url=e.uri||e.url,l=s.method=e.method||"GET",h=e.body||e.data,x=s.headers=e.headers||{},p=!!e.sync,m=!1,v={body:void 0,headers:{},statusCode:0,method:l,url:u,rawRequest:s};if("json"in e&&!1!==e.json&&(m=!0,x.accept||x.Accept||(x.Accept="application/json"),"GET"!==l&&"HEAD"!==l&&(x["content-type"]||x["Content-Type"]||(x["Content-Type"]="application/json"),h=JSON.stringify(!0===e.json?h:e.json))),s.onreadystatechange=function(){4===s.readyState&&setTimeout(i,0)},s.onload=i,s.onerror=n,s.onprogress=function(){},s.onabort=function(){o=!0},s.ontimeout=n,s.open(l,u,!p,e.username,e.password),p||(s.withCredentials=!!e.withCredentials),!p&&e.timeout>0&&(b=setTimeout((function(){if(!o){o=!0,s.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",n(e)}}),e.timeout)),s.setRequestHeader)for(f in x)x.hasOwnProperty(f)&&s.setRequestHeader(f,x[f]);else if(e.headers&&!function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(s.responseType=e.responseType),"beforeSend"in e&&"function"===typeof e.beforeSend&&e.beforeSend(s),s.send(h||null),s}e.exports=d,e.exports.default=d,d.XMLHttpRequest=r.XMLHttpRequest||function(){},d.XDomainRequest="withCredentials"in new d.XMLHttpRequest?d.XMLHttpRequest:r.XDomainRequest,function(e,t){for(var a=0;a2)throw new Error("[ethjs-unit] while converting number "+e+" to wei, too many decimal points");var u=b[0],l=b[1];if(u||(u="0"),l||(l="0"),l.length>c)throw new Error("[ethjs-unit] while converting number "+e+" to wei, too many decimal places");for(;l.length>1,s=-7,b=a?n-1:0,u=a?-1:1,l=e[t+b];for(b+=u,c=l&(1<<-s)-1,l>>=-s,s+=f;s>0;c=256*c+e[t+b],b+=u,s-=8);for(i=c&(1<<-s)-1,c>>=-s,s+=r;s>0;i=256*i+e[t+b],b+=u,s-=8);if(0===c)c=1-o;else{if(c===d)return i?NaN:1/0*(l?-1:1);i+=Math.pow(2,r),c-=o}return(l?-1:1)*i*Math.pow(2,c-r)},t.write=function(e,t,a,r,n,c){var i,f,d,o=8*c-n-1,s=(1<>1,u=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,l=r?0:c-1,h=r?1:-1,x=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(f=isNaN(t)?1:0,i=s):(i=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-i))<1&&(i--,d*=2),(t+=i+b>=1?u/d:u*Math.pow(2,1-b))*d>=2&&(i++,d/=2),i+b>=s?(f=0,i=s):i+b>=1?(f=(t*d-1)*Math.pow(2,n),i+=b):(f=t*Math.pow(2,b-1)*Math.pow(2,n),i=0));n>=8;e[a+l]=255&f,l+=h,f/=256,n-=8);for(i=i<0;e[a+l]=255&i,l+=h,i/=256,o-=8);e[a+l-h]|=128*x}},function(e,t,a){!function(e){var t,a,r,n=String.fromCharCode;function c(e){for(var t,a,r=[],n=0,c=e.length;n=55296&&t<=56319&&n=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}function f(e,t){return n(e>>t&63|128)}function d(e){if(0==(4294967168&e))return n(e);var t="";return 0==(4294965248&e)?t=n(e>>6&31|192):0==(4294901760&e)?(i(e),t=n(e>>12&15|224),t+=f(e,6)):0==(4292870144&e)&&(t=n(e>>18&7|240),t+=f(e,12),t+=f(e,6)),t+=n(63&e|128)}function o(){if(r>=a)throw Error("Invalid byte index");var e=255&t[r];if(r++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function s(){var e,n;if(r>a)throw Error("Invalid byte index");if(r==a)return!1;if(e=255&t[r],r++,0==(128&e))return e;if(192==(224&e)){if((n=(31&e)<<6|o())>=128)return n;throw Error("Invalid continuation byte")}if(224==(240&e)){if((n=(15&e)<<12|o()<<6|o())>=2048)return i(n),n;throw Error("Invalid continuation byte")}if(240==(248&e)&&(n=(7&e)<<18|o()<<12|o()<<6|o())>=65536&&n<=1114111)return n;throw Error("Invalid UTF-8 detected")}e.version="3.0.0",e.encode=function(e){for(var t=c(e),a=t.length,r=-1,n="";++r65535&&(c+=n((t-=65536)>>>10&1023|55296),t=56320|1023&t),c+=n(t);return c}(f)}}(t)},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,a){"use strict";t.decode=t.parse=a(365),t.encode=t.stringify=a(366)},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var a in e)t.hasOwnProperty(a)||(t[a]=e[a])}(a(372));var r=a(122);t.XMLHttpRequestEventTarget=r.XMLHttpRequestEventTarget},function(e,t){t.endianness=function(){return"LE"},t.hostname=function(){return"undefined"!==typeof location?location.hostname:""},t.loadavg=function(){return[]},t.uptime=function(){return 0},t.freemem=function(){return Number.MAX_VALUE},t.totalmem=function(){return Number.MAX_VALUE},t.cpus=function(){return[]},t.type=function(){return"Browser"},t.release=function(){return"undefined"!==typeof navigator?navigator.appVersion:""},t.networkInterfaces=t.getNetworkInterfaces=function(){return{}},t.arch=function(){return"javascript"},t.platform=function(){return"browser"},t.tmpdir=t.tmpDir=function(){return"/tmp"},t.EOL="\n",t.homedir=function(){return"/"}},function(e,t,a){var r=a(398),n=a(406),c=n.hexStringToBuffer,i=n.profiles,f=a(427).cidV0ToV1Base32;e.exports={helpers:{cidV0ToV1Base32:f},decode:function(e){var t=c(e),a=r.getCodec(t),n=r.rmPrefix(t),f=i[a];return f||(f=i.default),f.decode(n)},fromIpfs:function(e){return this.encode("ipfs-ns",e)},fromSwarm:function(e){return this.encode("swarm-ns",e)},encode:function(e,t){var a=i[e];a||(a=i.default);var n=a.encode(t);return r.addPrefix(e,n).toString("hex")},getCodec:function(e){var t=c(e);return r.getCodec(t)}}},function(e,t,a){"use strict";(function(t){!function(a){var r=2147483647;function n(e){var t=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),a=1779033703,r=3144134277,n=1013904242,c=2773480762,i=1359893119,f=2600822924,d=528734635,o=1541459225,s=new Uint32Array(64);function b(e){for(var b=0,u=e.length;u>=64;){var l=a,h=r,x=n,p=c,m=i,v=f,g=d,y=o,w=void 0,_=void 0,M=void 0,k=void 0,S=void 0;for(_=0;_<16;_++)M=b+4*_,s[_]=(255&e[M])<<24|(255&e[M+1])<<16|(255&e[M+2])<<8|255&e[M+3];for(_=16;_<64;_++)k=((w=s[_-2])>>>17|w<<15)^(w>>>19|w<<13)^w>>>10,S=((w=s[_-15])>>>7|w<<25)^(w>>>18|w<<14)^w>>>3,s[_]=(k+s[_-7]|0)+(S+s[_-16]|0)|0;for(_=0;_<64;_++)k=(((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&v^~m&g)|0)+(y+(t[_]+s[_]|0)|0)|0,S=((l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10))+(l&h^l&x^h&x)|0,y=g,g=v,v=m,m=p+k|0,p=x,x=h,h=l,l=k+S|0;a=a+l|0,r=r+h|0,n=n+x|0,c=c+p|0,i=i+m|0,f=f+v|0,d=d+g|0,o=o+y|0,b+=64,u-=64}}b(e);var u,l=e.length%64,h=e.length/536870912|0,x=e.length<<3,p=l<56?56:120,m=e.slice(e.length-l,e.length);for(m.push(128),u=l+1;u>>24&255),m.push(h>>>16&255),m.push(h>>>8&255),m.push(h>>>0&255),m.push(x>>>24&255),m.push(x>>>16&255),m.push(x>>>8&255),m.push(x>>>0&255),b(m),[a>>>24&255,a>>>16&255,a>>>8&255,a>>>0&255,r>>>24&255,r>>>16&255,r>>>8&255,r>>>0&255,n>>>24&255,n>>>16&255,n>>>8&255,n>>>0&255,c>>>24&255,c>>>16&255,c>>>8&255,c>>>0&255,i>>>24&255,i>>>16&255,i>>>8&255,i>>>0&255,f>>>24&255,f>>>16&255,f>>>8&255,f>>>0&255,d>>>24&255,d>>>16&255,d>>>8&255,d>>>0&255,o>>>24&255,o>>>16&255,o>>>8&255,o>>>0&255]}function c(e,t,a){e=e.length<=64?e:n(e);var r,c=64+t.length+4,i=new Array(c),f=new Array(64),d=[];for(r=0;r<64;r++)i[r]=54;for(r=0;r=c-4;e--){if(i[e]++,i[e]<=255)return;i[e]=0}}for(;a>=32;)o(),d=d.concat(n(f.concat(n(i)))),a-=32;return a>0&&(o(),d=d.concat(n(f.concat(n(i))).slice(0,a))),d}function i(e,t,a,r,n){var c;for(s(e,16*(2*a-1),n,0,16),c=0;c<2*a;c++)o(e,16*c,n,16),d(n,r),s(n,0,e,t+16*c,16);for(c=0;c>>32-t}function d(e,t){s(e,0,t,0,16);for(var a=8;a>0;a-=2)t[4]^=f(t[0]+t[12],7),t[8]^=f(t[4]+t[0],9),t[12]^=f(t[8]+t[4],13),t[0]^=f(t[12]+t[8],18),t[9]^=f(t[5]+t[1],7),t[13]^=f(t[9]+t[5],9),t[1]^=f(t[13]+t[9],13),t[5]^=f(t[1]+t[13],18),t[14]^=f(t[10]+t[6],7),t[2]^=f(t[14]+t[10],9),t[6]^=f(t[2]+t[14],13),t[10]^=f(t[6]+t[2],18),t[3]^=f(t[15]+t[11],7),t[7]^=f(t[3]+t[15],9),t[11]^=f(t[7]+t[3],13),t[15]^=f(t[11]+t[7],18),t[1]^=f(t[0]+t[3],7),t[2]^=f(t[1]+t[0],9),t[3]^=f(t[2]+t[1],13),t[0]^=f(t[3]+t[2],18),t[6]^=f(t[5]+t[4],7),t[7]^=f(t[6]+t[5],9),t[4]^=f(t[7]+t[6],13),t[5]^=f(t[4]+t[7],18),t[11]^=f(t[10]+t[9],7),t[8]^=f(t[11]+t[10],9),t[9]^=f(t[8]+t[11],13),t[10]^=f(t[9]+t[8],18),t[12]^=f(t[15]+t[14],7),t[13]^=f(t[12]+t[15],9),t[14]^=f(t[13]+t[12],13),t[15]^=f(t[14]+t[13],18);for(var r=0;r<16;++r)e[r]+=t[r]}function o(e,t,a,r){for(var n=0;n=256)return!1}return!0}function u(e,t){if("number"!==typeof e||e%1)throw new Error("invalid "+t);return e}function l(e,a,n,f,d,l,h){if(n=u(n,"N"),f=u(f,"r"),d=u(d,"p"),l=u(l,"dkLen"),0===n||0!==(n&n-1))throw new Error("N must be power of 2");if(n>r/128/f)throw new Error("N too large");if(f>r/128/d)throw new Error("r too large");if(!b(e))throw new Error("password must be an array or buffer");if(e=Array.prototype.slice.call(e),!b(a))throw new Error("salt must be an array or buffer");a=Array.prototype.slice.call(a);for(var x=c(e,a,128*d*f),p=new Uint32Array(32*d*f),m=0;mR&&(a=R);for(var r=0;rR&&(a=R);for(var u=0;u>0&255),x.push(p[j]>>8&255),x.push(p[j]>>16&255),x.push(p[j]>>24&255);var I=c(e,x,l);return h&&h(null,1,I),I}h&&C(t)};if(!h)for(;;){var I=j();if(void 0!=I)return I}j()}var h={scrypt:function(e,t,a,r,n,c,i){return new Promise((function(f,d){var o=0;i&&i(0),l(e,t,a,r,n,c,(function(e,t,a){if(e)d(e);else if(a)i&&1!==o&&i(1),f(new Uint8Array(a));else if(i&&t!==o)return o=t,i(t)}))}))},syncScrypt:function(e,t,a,r,n,c){return new Uint8Array(l(e,t,a,r,n,c))}};e.exports=h}()}).call(this,a(148).setImmediate)},function(e,t,a){var r;r=function(e){e.version="1.2.0";var t=function(){for(var e=0,t=new Array(256),a=0;256!=a;++a)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=a)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,t[a]=e;return"undefined"!==typeof Int32Array?new Int32Array(t):t}();e.table=t,e.bstr=function(e,a){for(var r=-1^a,n=e.length-1,c=0;c>>8^t[255&(r^e.charCodeAt(c++))])>>>8^t[255&(r^e.charCodeAt(c++))];return c===n&&(r=r>>>8^t[255&(r^e.charCodeAt(c))]),-1^r},e.buf=function(e,a){if(e.length>1e4)return function(e,a){for(var r=-1^a,n=e.length-7,c=0;c>>8^t[255&(r^e[c++])])>>>8^t[255&(r^e[c++])])>>>8^t[255&(r^e[c++])])>>>8^t[255&(r^e[c++])])>>>8^t[255&(r^e[c++])])>>>8^t[255&(r^e[c++])])>>>8^t[255&(r^e[c++])])>>>8^t[255&(r^e[c++])];for(;c>>8^t[255&(r^e[c++])];return-1^r}(e,a);for(var r=-1^a,n=e.length-3,c=0;c>>8^t[255&(r^e[c++])])>>>8^t[255&(r^e[c++])])>>>8^t[255&(r^e[c++])])>>>8^t[255&(r^e[c++])];for(;c>>8^t[255&(r^e[c++])];return-1^r},e.str=function(e,a){for(var r,n,c=-1^a,i=0,f=e.length;i>>8^t[255&(c^r)]:r<2048?c=(c=c>>>8^t[255&(c^(192|r>>6&31))])>>>8^t[255&(c^(128|63&r))]:r>=55296&&r<57344?(r=64+(1023&r),n=1023&e.charCodeAt(i++),c=(c=(c=(c=c>>>8^t[255&(c^(240|r>>8&7))])>>>8^t[255&(c^(128|r>>2&63))])>>>8^t[255&(c^(128|n>>6&15|(3&r)<<4))])>>>8^t[255&(c^(128|63&n))]):c=(c=(c=c>>>8^t[255&(c^(224|r>>12&15))])>>>8^t[255&(c^(128|r>>6&63))])>>>8^t[255&(c^(128|63&r))];return-1^c}},"undefined"===typeof DO_NOT_EXPORT_CRC?r(t):r({})},function(e,t,a){"use strict";var r="%[a-f0-9]{2}",n=new RegExp(r,"gi"),c=new RegExp("("+r+")+","gi");function i(e,t){try{return decodeURIComponent(e.join(""))}catch(n){}if(1===e.length)return e;t=t||1;var a=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],i(a),i(r))}function f(e){try{return decodeURIComponent(e)}catch(r){for(var t=e.match(n),a=1;a>6===2;f++)i++;return i}return e===n.OVERRUN?a.length-t-1:0}!function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"}(r||(r={})),function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"}(n||(n={}));var d=Object.freeze({error:function(e,t,a,r,n){return i.throwArgumentError("invalid codepoint at offset ".concat(t,"; ").concat(e),"bytes",a)},ignore:f,replace:function(e,t,a,r,c){return e===n.OVERLONG?(r.push(c),0):(r.push(65533),f(e,t,a))}});function o(e,t){null==t&&(t=d.error),e=Object(c.a)(e);for(var a=[],r=0;r>7!==0){var f=null,o=null;if(192===(224&i))f=1,o=127;else if(224===(240&i))f=2,o=2047;else{if(240!==(248&i)){r+=t(128===(192&i)?n.UNEXPECTED_CONTINUE:n.BAD_PREFIX,r-1,e,a);continue}f=3,o=65535}if(r-1+f>=e.length)r+=t(n.OVERRUN,r-1,e,a);else{for(var s=i&(1<<8-f-1)-1,b=0;b1114111?r+=t(n.OUT_OF_RANGE,r-1-f,e,a,s):s>=55296&&s<=57343?r+=t(n.UTF16_SURROGATE,r-1-f,e,a,s):s<=o?r+=t(n.OVERLONG,r-1-f,e,a,s):a.push(s))}}else a.push(i)}return a}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.current;t!=r.current&&(i.checkNormalize(),e=e.normalize(t));for(var a=[],n=0;n>6|192),a.push(63&f|128);else if(55296==(64512&f)){n++;var d=e.charCodeAt(n);if(n>=e.length||56320!==(64512&d))throw new Error("invalid utf-8 string");var o=65536+((1023&f)<<10)+(1023&d);a.push(o>>18|240),a.push(o>>12&63|128),a.push(o>>6&63|128),a.push(63&o|128)}else a.push(f>>12|224),a.push(f>>6&63|128),a.push(63&f|128)}return Object(c.a)(a)}function b(e){var t="0000"+e.toString(16);return"\\u"+t.substring(t.length-4)}function u(e,t){return'"'+o(e,t).map((function(e){if(e<256){switch(e){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(e>=32&&e<127)return String.fromCharCode(e)}return e<=65535?b(e):b(55296+((e-=65536)>>10&1023))+b(56320+(1023&e))})).join("")+'"'}function l(e){return e.map((function(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e)))})).join("")}function h(e,t){return l(o(e,t))}function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.current;return o(s(e,t))}},function(e,t,a){"use strict";var r=a(55),n=60103,c=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var i=60109,f=60110,d=60112;t.Suspense=60113;var o=60115,s=60116;if("function"===typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),c=b("react.portal"),t.Fragment=b("react.fragment"),t.StrictMode=b("react.strict_mode"),t.Profiler=b("react.profiler"),i=b("react.provider"),f=b("react.context"),d=b("react.forward_ref"),t.Suspense=b("react.suspense"),o=b("react.memo"),s=b("react.lazy")}var u="function"===typeof Symbol&&Symbol.iterator;function l(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,a=1;a