@wormhole-foundation/wormhole-connect 5.2.0-beta.0-development → 5.2.0-beta.2-development
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.mjs +1 -1
- package/lib/{add-aiIIchuh.js → add-CsKFlygp.js} +1 -1
- package/lib/{add-D933OgYB.mjs → add-DjE3EcEV.mjs} +1 -1
- package/lib/{add-Bk86euc7.mjs → add-DyWulnuS.mjs} +1 -1
- package/lib/{add-97pK9XEM.js → add-bXKhUwqm.js} +1 -1
- package/lib/{all-wallets-BTvSiRPI.js → all-wallets-CjJkeTbL.js} +1 -1
- package/lib/{all-wallets-BQRsMuoL.mjs → all-wallets-DHqzP6L8.mjs} +1 -1
- package/lib/{all-wallets-DEdvco8E.js → all-wallets-DuVECYbS.js} +1 -1
- package/lib/{all-wallets-P7I2GUtT.mjs → all-wallets-vsNOuzqB.mjs} +1 -1
- package/lib/{app-store-PKRc14_u.mjs → app-store-BqQ0jSql.mjs} +1 -1
- package/lib/{app-store-J4rqIlQc.js → app-store-C7d9uBwB.js} +1 -1
- package/lib/{app-store-Ccyl3JgX.js → app-store-D9Uf0g65.js} +1 -1
- package/lib/{app-store-hWgU_cp-.mjs → app-store-UdtOo-dU.mjs} +1 -1
- package/lib/{apple-CINOjLmM.mjs → apple-BbL0nfeU.mjs} +1 -1
- package/lib/{apple-ChYiEhFV.js → apple-C-UBDZE5.js} +1 -1
- package/lib/{apple-DNp3WspA.mjs → apple-Vysn1QLU.mjs} +1 -1
- package/lib/{apple-BXDArpi0.js → apple-wWE5v0dD.js} +1 -1
- package/lib/{aptos-C1_xdEsg.mjs → aptos-CRLnl4L1.mjs} +2 -2
- package/lib/{aptos-CXdv298G.js → aptos-CfulxqiY.js} +1 -1
- package/lib/{arrow-bottom-DOre80s_.mjs → arrow-bottom-9yPqOOG8.mjs} +1 -1
- package/lib/{arrow-bottom-ie6olxwk.js → arrow-bottom-BBJZscVl.js} +1 -1
- package/lib/{arrow-bottom-DcRkICnt.mjs → arrow-bottom-BGYif__M.mjs} +1 -1
- package/lib/{arrow-bottom-B8L0wWMn.js → arrow-bottom-C-OOeDgc.js} +1 -1
- package/lib/{arrow-bottom-circle-BuL2N_oX.js → arrow-bottom-circle-CTY2zo9T.js} +1 -1
- package/lib/{arrow-bottom-circle-D8u24ZEa.mjs → arrow-bottom-circle-CqVKSEcX.mjs} +1 -1
- package/lib/{arrow-bottom-circle-BV6cJiB3.mjs → arrow-bottom-circle-D0nATh37.mjs} +1 -1
- package/lib/{arrow-bottom-circle-CfZspJKC.js → arrow-bottom-circle-D3Z0Vp2Y.js} +1 -1
- package/lib/{arrow-left-DHcEpLcY.mjs → arrow-left-BNgvZYhH.mjs} +1 -1
- package/lib/{arrow-left-DhhbmAr7.js → arrow-left-JnPB5GSd.js} +1 -1
- package/lib/{arrow-left-BHDzDcxf.js → arrow-left-Ltg2X3oS.js} +1 -1
- package/lib/{arrow-left-C84MPyPi.mjs → arrow-left-O1B6lnQQ.mjs} +1 -1
- package/lib/{arrow-right-DpXjSQ0c.mjs → arrow-right-Bh49cjrw.mjs} +1 -1
- package/lib/{arrow-right-CsXtQhBn.mjs → arrow-right-CcdvbUHJ.mjs} +1 -1
- package/lib/{arrow-right-DkR-9vfb.js → arrow-right-D_chbEOv.js} +1 -1
- package/lib/{arrow-right-x2g1cqBz.js → arrow-right-Db115d3K.js} +1 -1
- package/lib/{arrow-top-DWWBqjoA.mjs → arrow-top-CrrEgZiG.mjs} +1 -1
- package/lib/{arrow-top-BU-bRRci.mjs → arrow-top-D3Cn3i5J.mjs} +1 -1
- package/lib/{arrow-top-JFr4DWJC.js → arrow-top-NsizVEZs.js} +1 -1
- package/lib/{arrow-top-CiXPjp0l.js → arrow-top-v7JHs5yr.js} +1 -1
- package/lib/{bank-DKdS2VCZ.mjs → bank-BLISl4z-.mjs} +1 -1
- package/lib/{bank-DmBobOMj.mjs → bank-DYm6Brrt.mjs} +1 -1
- package/lib/{bank-BhT6RPyg.js → bank-MKPdWaVj.js} +1 -1
- package/lib/{bank-CQl-oPnD.js → bank-VxPvAyIR.js} +1 -1
- package/lib/{basic-r93BHfDA.js → basic-At2DeO6e.js} +1 -1
- package/lib/{basic-BJb3ei_N.js → basic-Bag02rxR.js} +1 -1
- package/lib/{basic-BU5Z7yE0.mjs → basic-CZS3r-7y.mjs} +2 -2
- package/lib/{basic-BvTuoRNI.mjs → basic-mhTL58sP.mjs} +2 -2
- package/lib/{browser-Zcx5baKN.js → browser-BOdwTvLM.js} +1 -1
- package/lib/{browser-BEew_Uly.mjs → browser-CQoATCsU.mjs} +1 -1
- package/lib/{browser-DFBCBTuC.js → browser-DC17lLQo.js} +1 -1
- package/lib/{browser-gnOPx-dW.mjs → browser-Dhq2eg1F.mjs} +1 -1
- package/lib/{card-BVvKhU54.js → card-B1jkqvQw.js} +1 -1
- package/lib/{card-DkwY6orl.mjs → card-Bnhxo8qg.mjs} +1 -1
- package/lib/{card-Da6LlLKJ.js → card-CyD4w17N.js} +1 -1
- package/lib/{card-CvhyzxFz.mjs → card-QUPRN71N.mjs} +1 -1
- package/lib/{checkmark-C_MrkABo.js → checkmark-CMV_m5HB.js} +1 -1
- package/lib/{checkmark-BPev3geK.mjs → checkmark-Ck1oHQed.mjs} +1 -1
- package/lib/{checkmark-C4b4JK_V.mjs → checkmark-DpHJ69gx.mjs} +1 -1
- package/lib/{checkmark-pTrffkn9.js → checkmark-PcRLVwM7.js} +1 -1
- package/lib/{checkmark-bold-CNzoS5-K.mjs → checkmark-bold-B5gYm08I.mjs} +1 -1
- package/lib/{checkmark-bold-24IAAOBU.js → checkmark-bold-CBYhZkvd.js} +1 -1
- package/lib/{checkmark-bold-DU2Ys96v.js → checkmark-bold-CQpK4eqT.js} +1 -1
- package/lib/{checkmark-bold-d7sIsIhC.mjs → checkmark-bold-CehhvElT.mjs} +1 -1
- package/lib/{chevron-bottom-DI3dfXns.js → chevron-bottom-CLOFEFwk.js} +1 -1
- package/lib/{chevron-bottom-C8gro0Kz.js → chevron-bottom-cCJ79L3b.js} +1 -1
- package/lib/{chevron-bottom-zdvXtD2j.mjs → chevron-bottom-kzZqZ7cD.mjs} +1 -1
- package/lib/{chevron-bottom-d0mN_6fk.mjs → chevron-bottom-zSmwaICv.mjs} +1 -1
- package/lib/{chevron-left-DANMl7rL.mjs → chevron-left-BJoHbC-q.mjs} +1 -1
- package/lib/{chevron-left-DDqfGA8F.mjs → chevron-left-CetDiLJ5.mjs} +1 -1
- package/lib/{chevron-left-Bzq_gNUa.js → chevron-left-D1eQItCZ.js} +1 -1
- package/lib/{chevron-left-p6FO5KDX.js → chevron-left-DtwepZEO.js} +1 -1
- package/lib/{chevron-right-BR0_7iUL.mjs → chevron-right-BElFJP8x.mjs} +1 -1
- package/lib/{chevron-right-B_qqkmjC.js → chevron-right-BK72iuUp.js} +1 -1
- package/lib/{chevron-right-O1UkCV2Q.mjs → chevron-right-BPKqB4CI.mjs} +1 -1
- package/lib/{chevron-right-xz6TmL5j.js → chevron-right-C4M4ehTo.js} +1 -1
- package/lib/{chevron-top-CtMVRHg0.js → chevron-top-BsUpwWoO.js} +1 -1
- package/lib/{chevron-top-WroSANio.mjs → chevron-top-DrplS-a-.mjs} +1 -1
- package/lib/{chevron-top-vUGPtgYd.mjs → chevron-top-HSamTfwf.mjs} +1 -1
- package/lib/{chevron-top-CIHODxwA.js → chevron-top-lx2Zjd8U.js} +1 -1
- package/lib/{chrome-store-Dseq-owD.mjs → chrome-store-72u2IREP.mjs} +1 -1
- package/lib/{chrome-store-CPgKITck.js → chrome-store-CKlW00NE.js} +1 -1
- package/lib/{chrome-store-QAYF3oF_.mjs → chrome-store-D5vKSXEJ.mjs} +1 -1
- package/lib/{chrome-store-BEJYIo9O.js → chrome-store-DEjNj4C1.js} +1 -1
- package/lib/{clock-Bsk_aDnw.mjs → clock-BJnEmJF_.mjs} +1 -1
- package/lib/{clock-Cqv12DGe.js → clock-CegkCEjG.js} +1 -1
- package/lib/{clock-CgYyeM_w.mjs → clock-D8tmafKX.mjs} +1 -1
- package/lib/{clock-BRLal-tt.js → clock-c-XKF-YF.js} +1 -1
- package/lib/{close-WYOtsYpc.js → close-B1DNieDl.js} +1 -1
- package/lib/{close-Ch1yI0EA.mjs → close-BLaMCEER.mjs} +1 -1
- package/lib/{close-OchiXtTe.js → close-BXqDsx2V.js} +1 -1
- package/lib/{close-DtK4vwQg.mjs → close-KbDW0r_h.mjs} +1 -1
- package/lib/{coinPlaceholder-BMvMfRBE.mjs → coinPlaceholder-BT1Y-3-M.mjs} +1 -1
- package/lib/{coinPlaceholder-xkgrfWI-.js → coinPlaceholder-D8bKyc3B.js} +1 -1
- package/lib/{coinPlaceholder-xe-1dqKD.js → coinPlaceholder-DXry0FTZ.js} +1 -1
- package/lib/{coinPlaceholder-DbsI02Af.mjs → coinPlaceholder-Khb7TWos.mjs} +1 -1
- package/lib/{compass-HTfh4eZi.mjs → compass-B-B5LrsP.mjs} +1 -1
- package/lib/{compass-COTmQcOw.js → compass-BlTWcnQW.js} +1 -1
- package/lib/{compass-Bi7B2PWo.js → compass-JmtJwxxN.js} +1 -1
- package/lib/{compass-BePMLyDl.mjs → compass-U-g2nxny.mjs} +1 -1
- package/lib/constants-0NS634P7.js +1 -0
- package/lib/{constants-Dp6TwkwE.mjs → constants-mdk7Ai0-.mjs} +3 -3
- package/lib/{copy-B-kaRfPD.mjs → copy-BvSO3cWO.mjs} +1 -1
- package/lib/{copy-Cj1h89Ke.js → copy-DUVgOnZ0.js} +1 -1
- package/lib/{copy-C_zx4IY2.js → copy-Db1iZINZ.js} +1 -1
- package/lib/{copy-CnGyA6GV.mjs → copy-EenPqnRM.mjs} +1 -1
- package/lib/{core-C-bE_KN6.js → core-B8BH62nw.js} +3 -3
- package/lib/{core-IZrQV2Qu.mjs → core-CebHe-Zk.mjs} +4 -4
- package/lib/{cursor-COWtX4qp.js → cursor-C1vKbs6D.js} +1 -1
- package/lib/{cursor-BqTyYhSX.mjs → cursor-CpavELPr.mjs} +1 -1
- package/lib/{cursor-kcpx1EXW.mjs → cursor-Y_J2NVyX.mjs} +1 -1
- package/lib/{cursor-transparent-IOBIgHsw.mjs → cursor-transparent-BmduW9te.mjs} +1 -1
- package/lib/{cursor-transparent-DS1K2i2e.js → cursor-transparent-D-zs9Ci-.js} +1 -1
- package/lib/{cursor-transparent-97JW8Enk.mjs → cursor-transparent-DB4tN9bG.mjs} +1 -1
- package/lib/{cursor-transparent-CfY_uwZk.js → cursor-transparent-DLISjDWq.js} +1 -1
- package/lib/{cursor-CYo5NSr5.js → cursor-ubFxdRQ2.js} +1 -1
- package/lib/{desktop-DFWKsjai.js → desktop-C5un7nSf.js} +1 -1
- package/lib/{desktop-CKJpmxK6.mjs → desktop-CCnIAsli.mjs} +1 -1
- package/lib/{desktop-BrMt6GS7.mjs → desktop-Xt7PaZC0.mjs} +1 -1
- package/lib/{desktop-BcdZWHYb.js → desktop-aNSoY7vR.js} +1 -1
- package/lib/{disconnect-ZG9G-DHl.mjs → disconnect-C8GkaVa4.mjs} +1 -1
- package/lib/{disconnect-CtjdEYQ-.js → disconnect-CfkBFFvh.js} +1 -1
- package/lib/{disconnect-vLqW6M9O.js → disconnect-DMgKQybs.js} +1 -1
- package/lib/{disconnect-BgfdJJVf.mjs → disconnect-YLOHKTM7.mjs} +1 -1
- package/lib/{discord-DkQXfpz6.js → discord-BN-USOhL.js} +1 -1
- package/lib/{discord-BHswKhhZ.js → discord-CvxC97sE.js} +1 -1
- package/lib/{discord-mwpOzt8L.mjs → discord-D1oPOGJI.mjs} +1 -1
- package/lib/{discord-DC940Urt.mjs → discord-O_jJHDL7.mjs} +1 -1
- package/lib/{etherscan-Bn5vjO6j.js → etherscan-3zg6RVUm.js} +1 -1
- package/lib/{etherscan-Dn1sDQFu.mjs → etherscan-Bss5SYdE.mjs} +1 -1
- package/lib/{etherscan-Rf8mBFu1.mjs → etherscan-D-4oyw9M.mjs} +1 -1
- package/lib/{etherscan-B67ePaGv.js → etherscan-D-Im_svB.js} +1 -1
- package/lib/{evm-CdYu0zev.js → evm-B1r0-d85.js} +2 -2
- package/lib/{evm-DAZuPeF5.mjs → evm-B9Foo-Fc.mjs} +3 -3
- package/lib/{evm-CNU3nm8Y.mjs → evm-D6v_yOIF.mjs} +3 -3
- package/lib/{evm-Dn0mVgjI.js → evm-DviFlx-R.js} +1 -1
- package/lib/{exclamation-triangle-9I8CABeM.js → exclamation-triangle-B_5amtlW.js} +1 -1
- package/lib/{exclamation-triangle-DvVRCFzL.mjs → exclamation-triangle-DOzBPDHq.mjs} +1 -1
- package/lib/{exclamation-triangle-pqE-ucld.js → exclamation-triangle-DtvIimzC.js} +1 -1
- package/lib/{exclamation-triangle-CpaZlCyJ.mjs → exclamation-triangle-DyLghy3P.mjs} +1 -1
- package/lib/{extension-CIeAycIs.js → extension-C2ZOdhvk.js} +1 -1
- package/lib/{extension-Cn1fNZM2.js → extension-ChidYt_2.js} +1 -1
- package/lib/{extension-D7bW7OOD.mjs → extension-ClxdT5sv.mjs} +1 -1
- package/lib/{extension-pZFS9WoU.mjs → extension-XP0Cxc3a.mjs} +1 -1
- package/lib/{external-link-D5-QPN4I.mjs → external-link-9KNXLmMz.mjs} +1 -1
- package/lib/{external-link-Cf6FDbnV.mjs → external-link-BHvdXmV0.mjs} +1 -1
- package/lib/{external-link-DHZjpSQH.js → external-link-DFtIt6g1.js} +1 -1
- package/lib/{external-link-CxxBPRGW.js → external-link-Dts-4Sk6.js} +1 -1
- package/lib/{facebook-8iR_zZp9.mjs → facebook-BZ86PCoF.mjs} +1 -1
- package/lib/{facebook-C-E3U6O7.js → facebook-BhtZqeWN.js} +1 -1
- package/lib/{facebook-D5N3SRkh.mjs → facebook-D1ClEy04.mjs} +1 -1
- package/lib/{facebook-D7MA9djH.js → facebook-Dn_bhYL7.js} +1 -1
- package/lib/{farcaster-lOXlLwtA.mjs → farcaster-BE4Jp2jQ.mjs} +1 -1
- package/lib/{farcaster-DbrJ_aQn.js → farcaster-BTbmAgvi.js} +1 -1
- package/lib/{farcaster-7r5cimcS.mjs → farcaster-D5wA55pg.mjs} +1 -1
- package/lib/{farcaster-DdOFazmr.js → farcaster-cOdQDShS.js} +1 -1
- package/lib/{filters-DEwlKNNr.js → filters-9M72BaSe.js} +1 -1
- package/lib/{filters-CoCF6gLm.mjs → filters-CevFjA1u.mjs} +1 -1
- package/lib/{filters-Cj5yX6NN.mjs → filters-DBWBF_sX.mjs} +1 -1
- package/lib/{filters-DCCnSUtl.js → filters-DU-C_SVc.js} +1 -1
- package/lib/{github-5sLZXyd5.js → github-BXvu9xPz.js} +1 -1
- package/lib/{github-D5MAuYPM.mjs → github-BbpuqjN2.mjs} +1 -1
- package/lib/{github-CaEinWU-.js → github-CUgzRfE2.js} +1 -1
- package/lib/{github-C4yWxVDh.mjs → github-DrYHJIJe.mjs} +1 -1
- package/lib/{google-D5bcUgOU.mjs → google-C0OkaUs7.mjs} +1 -1
- package/lib/{google-a9RziYXe.mjs → google-huTnWdlg.mjs} +1 -1
- package/lib/{google-Dj6-oKVI.js → google-n_csvYgo.js} +1 -1
- package/lib/{google-D3d0VPJL.js → google-sRPd04eZ.js} +1 -1
- package/lib/{help-circle-CHzLMVpP.js → help-circle-Bn8Y_0jP.js} +1 -1
- package/lib/{help-circle-CIFo9ynr.js → help-circle-DD1uNYG1.js} +1 -1
- package/lib/{help-circle-DErEmy6B.mjs → help-circle-DHfEXweO.mjs} +1 -1
- package/lib/{help-circle-CF5ABQc8.mjs → help-circle-NWXXQDwT.mjs} +1 -1
- package/lib/hosted.js +1 -1
- package/lib/hosted.mjs +1 -1
- package/lib/{hypercore-DFWadWGd.mjs → hypercore-B9UmlJWh.mjs} +9 -9
- package/lib/{hypercore-j2gTG79l.js → hypercore-DWVgITsg.js} +1 -1
- package/lib/{id-U-pH30u_.js → id-Cs-jcmzE.js} +1 -1
- package/lib/{id-BU0BV530.mjs → id-CxLQ5PPh.mjs} +1 -1
- package/lib/{id-CLwA8Kux.mjs → id-DQA-GcPk.mjs} +1 -1
- package/lib/{id-CnZDmFwN.js → id-Dh2EW9hF.js} +1 -1
- package/lib/{image-BR4koxKg.js → image-C28LaM6Q.js} +1 -1
- package/lib/{image--wME0li9.mjs → image-H6yEsFi5.mjs} +1 -1
- package/lib/{image-dLUM0VDy.js → image-JeKn_hvH.js} +1 -1
- package/lib/{image-D_KZJUGe.mjs → image-wLpPfXgm.mjs} +1 -1
- package/lib/{index-Qtm35u93.mjs → index-BHURLsGo.mjs} +1 -1
- package/lib/{index-Dj10OmNz.js → index-Bircjm-u.js} +1 -1
- package/lib/{index-CL4gAJYS.js → index-BjTalDhN.js} +1 -1
- package/lib/{index-BSybO7hw.mjs → index-CDRfkHVR.mjs} +78 -78
- package/lib/{index-CFKAjTDz.mjs → index-CGaLT_H7.mjs} +78 -78
- package/lib/{index-GVBg1nW4.mjs → index-CYflVh0l.mjs} +1 -1
- package/lib/{index-BjR_EisA.js → index-C_Sdh7IS.js} +2 -2
- package/lib/{index-D6Wxtq_q.mjs → index-Cpg9jRCx.mjs} +1 -1
- package/lib/{index-KEK3qFIE.js → index-Cv7Y2G3w.js} +2 -2
- package/lib/{index-ChQLvH1j.js → index-DKsmI0k_.js} +1 -1
- package/lib/{index-DiCrhDSW.js → index-Db6-b_fu.js} +2 -2
- package/lib/{index-BdboBJrC.js → index-DtIfurr3.js} +1 -1
- package/lib/{index-DUE9_pKC.mjs → index-kPwB0sVz.mjs} +1 -1
- package/lib/{index-Bsuff962.mjs → index-tBNddJw6.mjs} +3 -3
- package/lib/{index.es-fVqKroFx.js → index.es-CCdg9Kcb.js} +3 -3
- package/lib/{index.es-BaPdiD6L.js → index.es-D5cfl75E.js} +1 -1
- package/lib/{index.es-BaB7YazU.mjs → index.es-DL7qNQxZ.mjs} +2 -2
- package/lib/{index.es-GRR3MC7p.mjs → index.es-NIH5Fjyc.mjs} +3 -3
- package/lib/index.js +351 -56
- package/lib/index.mjs +45948 -22469
- package/lib/{info-DsDJ9PCj.js → info-3tKvMSGK.js} +1 -1
- package/lib/{info-CP6AYP0r.mjs → info-D1P1BYvd.mjs} +1 -1
- package/lib/{info-DyXA2Rde.js → info-DZ8mFZ5I.js} +1 -1
- package/lib/{info-circle-DLZBZmJA.js → info-circle-BWTGwB05.js} +1 -1
- package/lib/{info-circle-BrAhGxdr.mjs → info-circle-CBoblsmh.mjs} +1 -1
- package/lib/{info-circle-_RX3sEw0.mjs → info-circle-D2Tm0COC.mjs} +1 -1
- package/lib/{info-circle-DLvvWSso.js → info-circle-DWpUIxPL.js} +1 -1
- package/lib/{info-IVaoMU5h.mjs → info-vy3IpaAd.mjs} +1 -1
- package/lib/lifi.js +1 -1
- package/lib/lifi.mjs +2 -2
- package/lib/{lightbulb-CMukua6v.js → lightbulb-BOEWy2Rz.js} +1 -1
- package/lib/{lightbulb-BI1LAtBz.js → lightbulb-DZHQdxc7.js} +1 -1
- package/lib/{lightbulb-ByzF21_6.mjs → lightbulb-Dk9UCkA8.mjs} +1 -1
- package/lib/{lightbulb-BthaBnif.mjs → lightbulb-n7B2hmGB.mjs} +1 -1
- package/lib/{mail-CO-FJbD4.js → mail-CVJU8oQm.js} +1 -1
- package/lib/{mail-DwnzyWxK.mjs → mail-D1TMsRtq.mjs} +1 -1
- package/lib/{mail-C-wk-7Ix.js → mail-ghlLDYMn.js} +1 -1
- package/lib/{mail-4nSLMLPv.mjs → mail-vpaKmnyj.mjs} +1 -1
- package/lib/mayan.js +1 -1
- package/lib/mayan.mjs +2 -2
- package/lib/{mobile-sYUJ3_wv.js → mobile-CIjo1PIt.js} +1 -1
- package/lib/{mobile-CsmFql-e.mjs → mobile-Nl5-39QD.mjs} +1 -1
- package/lib/{mobile-BLoALBXq.js → mobile-OJfwf5iq.js} +1 -1
- package/lib/{mobile-Ckxm1bvv.mjs → mobile-XD26WLUC.mjs} +1 -1
- package/lib/{more-CKJE84tK.js → more-BgXKD3yk.js} +1 -1
- package/lib/{more-CCgU8azx.mjs → more-BhUbEmgG.mjs} +1 -1
- package/lib/{more-ECvX119L.js → more-BwBE0n-c.js} +1 -1
- package/lib/{more-CtJ9lyp8.mjs → more-Dif8cdfi.mjs} +1 -1
- package/lib/{network-placeholder-GGHKQlvF.js → network-placeholder-BQRWPjks.js} +1 -1
- package/lib/{network-placeholder-dB9F7ppX.js → network-placeholder-BbuoxtHw.js} +1 -1
- package/lib/{network-placeholder-BDBBro30.mjs → network-placeholder-Bhrzds35.mjs} +1 -1
- package/lib/{network-placeholder-CGr9IJpY.mjs → network-placeholder-C2aJv5DP.mjs} +1 -1
- package/lib/{nftPlaceholder-CB3ngIY3.mjs → nftPlaceholder-BDBtmgsF.mjs} +1 -1
- package/lib/{nftPlaceholder-sPby7kJU.js → nftPlaceholder-BmyG2OA3.js} +1 -1
- package/lib/{nftPlaceholder-BuITp3pd.mjs → nftPlaceholder-D3L3lYNG.mjs} +1 -1
- package/lib/{nftPlaceholder-oMt3XSVj.js → nftPlaceholder-UwX_upXy.js} +1 -1
- package/lib/{off-COhe1fTc.mjs → off-BY4DlvOg.mjs} +1 -1
- package/lib/{off-DTeZDvdH.js → off-CcLMdVvT.js} +1 -1
- package/lib/{off-TfkIQXeB.mjs → off-DC1r69jz.mjs} +1 -1
- package/lib/{off-D-AAXhtB.js → off-DgHo3MD-.js} +1 -1
- package/lib/{play-store-DKQhW1gn.js → play-store-0OC2D6-S.js} +1 -1
- package/lib/{play-store-C4xcHryf.js → play-store-BJ1EzGT-.js} +1 -1
- package/lib/{play-store-DzNvggFH.mjs → play-store-Ddp0iLCA.mjs} +1 -1
- package/lib/{play-store-BjYbtsE6.mjs → play-store-rS2tQFht.mjs} +1 -1
- package/lib/{plus-BghwgfqX.js → plus-BbFv3eUM.js} +1 -1
- package/lib/{plus-C7MKTgK7.mjs → plus-Bdj0NxMO.mjs} +1 -1
- package/lib/{plus-wMnOnwz3.js → plus-BiqsWZTU.js} +1 -1
- package/lib/{plus-DxzPtYL0.mjs → plus-l8xvIUjr.mjs} +1 -1
- package/lib/{qr-code-Bx0AMx0M.mjs → qr-code-CrlCde0x.mjs} +1 -1
- package/lib/{qr-code-8MQaIZZC.js → qr-code-CwVMQOBz.js} +1 -1
- package/lib/{qr-code-C35_cZkC.mjs → qr-code-DwQDvjbs.mjs} +1 -1
- package/lib/{qr-code-Dfyo_DBs.js → qr-code-lOm2J3lG.js} +1 -1
- package/lib/{recycle-horizontal-DY4vj3Rv.mjs → recycle-horizontal-BLDEBDKQ.mjs} +1 -1
- package/lib/{recycle-horizontal-DAgiwwJ1.mjs → recycle-horizontal-DOXJkLkE.mjs} +1 -1
- package/lib/{recycle-horizontal-B1A2LB8b.js → recycle-horizontal-D_KYiXB2.js} +1 -1
- package/lib/{recycle-horizontal-CTIgISfH.js → recycle-horizontal-vcfEBLHF.js} +1 -1
- package/lib/{refresh-DJMvIMS2.js → refresh-BSOKVuqM.js} +1 -1
- package/lib/{refresh-Cb6tVUdi.mjs → refresh-BXxBUdnO.mjs} +1 -1
- package/lib/{refresh-DzN-ylL6.mjs → refresh-D2E75sGo.mjs} +1 -1
- package/lib/{refresh-BnZQPsz5.js → refresh-DyTPW1lm.js} +1 -1
- package/lib/{reown-logo-Dx8QrTgS.mjs → reown-logo-BasQMgg6.mjs} +1 -1
- package/lib/{reown-logo-B3PfsCFy.mjs → reown-logo-Ca0n-4co.mjs} +1 -1
- package/lib/{reown-logo-DkW-wu5O.js → reown-logo-I-0VXJcs.js} +1 -1
- package/lib/{reown-logo-CqWZKbtk.js → reown-logo-zFtk69x0.js} +1 -1
- package/lib/{search-C5IsnJYj.mjs → search-C8Dr302a.mjs} +1 -1
- package/lib/{search-Zxp1yZ-I.mjs → search-Cs5OMH24.mjs} +1 -1
- package/lib/{search-SfO-_tu8.js → search-D4N5PCXY.js} +1 -1
- package/lib/{search-BiXmWWs6.js → search-DKkge_rX.js} +1 -1
- package/lib/{secp256k1-C330P-og.mjs → secp256k1-BApZtlJM.mjs} +1 -1
- package/lib/{secp256k1-BARTIWl8.js → secp256k1-BvEkCzAq.js} +1 -1
- package/lib/{secp256k1-D_Gn-jqQ.js → secp256k1-BxlHgrPu.js} +1 -1
- package/lib/{secp256k1-BEvvZ05v.js → secp256k1-Cob6dKlh.js} +1 -1
- package/lib/{secp256k1-sVIcIy0c.mjs → secp256k1-D6LTGgSG.mjs} +1 -1
- package/lib/{secp256k1-BQTFpnzy.mjs → secp256k1-DMo8iyn0.mjs} +1 -1
- package/lib/{secp256k1-C2Yei8lW.mjs → secp256k1-Szby676i.mjs} +1 -1
- package/lib/{secp256k1-CSiCK8mp.js → secp256k1-e1mb-DFW.js} +1 -1
- package/lib/{send-n_oSfesi.js → send-CWr-_fO9.js} +1 -1
- package/lib/{send-QuB_6fVE.mjs → send-CvrTc0pM.mjs} +1 -1
- package/lib/{send-CfjifILw.mjs → send-DTWzuOtI.mjs} +1 -1
- package/lib/{send-Bf5YMSxJ.js → send-f0aDSW2z.js} +1 -1
- package/lib/{solana-D5jguotU.mjs → solana-Bu1QCXxV.mjs} +8 -8
- package/lib/{solana-DE2kkwFm.js → solana-DBtle7NE.js} +4 -4
- package/lib/{solanaEmbed.esm-DcZi3RfD.js → solanaEmbed.esm-2zbmc9eY.js} +1 -1
- package/lib/{solanaEmbed.esm-DisZ7Nce.mjs → solanaEmbed.esm-Ekp0oGzh.mjs} +2 -2
- package/lib/{sui-DKHLUOgB.js → sui-Dai0MBus.js} +1 -1
- package/lib/{sui-DPA4pds6.mjs → sui-ybNGBjmb.mjs} +2 -2
- package/lib/{swapHorizontal-BFcauuvN.js → swapHorizontal-BiYn3yW8.js} +1 -1
- package/lib/{swapHorizontal-Dw5zhkPQ.js → swapHorizontal-CzdzeOB3.js} +1 -1
- package/lib/{swapHorizontal-C-_HtGEy.mjs → swapHorizontal-WwJR0_Dj.mjs} +1 -1
- package/lib/{swapHorizontal-Dgx2K3vn.mjs → swapHorizontal-vKLfqFpk.mjs} +1 -1
- package/lib/{swapHorizontalBold-8c-d6K5o.mjs → swapHorizontalBold-2i6pbDOS.mjs} +1 -1
- package/lib/{swapHorizontalBold-BFaqLN1O.js → swapHorizontalBold-DaCZ8LV2.js} +1 -1
- package/lib/{swapHorizontalBold-Bhr2ebxy.mjs → swapHorizontalBold-DfD-NVuF.mjs} +1 -1
- package/lib/{swapHorizontalBold-C7J8iBLm.js → swapHorizontalBold-DwoIuf9J.js} +1 -1
- package/lib/{swapHorizontalMedium-KzsE-Nxz.js → swapHorizontalMedium-7lGQEzS_.js} +1 -1
- package/lib/{swapHorizontalMedium-DbhSl29t.mjs → swapHorizontalMedium-B6bvh8T3.mjs} +1 -1
- package/lib/{swapHorizontalMedium-DN36AGSD.js → swapHorizontalMedium-BITalXpE.js} +1 -1
- package/lib/{swapHorizontalMedium-Cqky1zP_.mjs → swapHorizontalMedium-DKlsnxq3.mjs} +1 -1
- package/lib/{swapHorizontalRoundedBold-Ds5xFvSn.js → swapHorizontalRoundedBold-DFUk0LD-.js} +1 -1
- package/lib/{swapHorizontalRoundedBold-B5rbO9hU.mjs → swapHorizontalRoundedBold-DMN64jKj.mjs} +1 -1
- package/lib/{swapHorizontalRoundedBold-CE4v1uqm.js → swapHorizontalRoundedBold-Dh7YccsV.js} +1 -1
- package/lib/{swapHorizontalRoundedBold-Cv-mTC_8.mjs → swapHorizontalRoundedBold-X09CF7C1.mjs} +1 -1
- package/lib/{swapVertical-UvstCFOe.mjs → swapVertical-DFfJ4ib5.mjs} +1 -1
- package/lib/{swapVertical-DmP8q9T0.js → swapVertical-DTpt3txk.js} +1 -1
- package/lib/{swapVertical-BNaDyBce.mjs → swapVertical-DYWBLAIn.mjs} +1 -1
- package/lib/{swapVertical-BIde62-t.js → swapVertical-j_z5zwC9.js} +1 -1
- package/lib/{telegram-B8DOK8LQ.js → telegram-C-Fp394u.js} +1 -1
- package/lib/{telegram-DpxYicfc.mjs → telegram-CjnGu7GA.mjs} +1 -1
- package/lib/{telegram-_UlrbcuL.mjs → telegram-SL_ehdQ1.mjs} +1 -1
- package/lib/{telegram-DUZ1mhSy.js → telegram-jAlzfvmm.js} +1 -1
- package/lib/{three-dots-DCZa3ccg.mjs → three-dots-A97eKq-t.mjs} +1 -1
- package/lib/{three-dots-BHL8D_Zg.mjs → three-dots-CqqJjHxY.mjs} +1 -1
- package/lib/{three-dots-eLSxq0uy.js → three-dots-DBwclFqo.js} +1 -1
- package/lib/{three-dots-Cz5fvhME.js → three-dots-DX75nC3P.js} +1 -1
- package/lib/{tokenHelpers-a1B-ORAA.mjs → tokenHelpers-C4pLIPnz.mjs} +1 -1
- package/lib/{tokenHelpers-DaXKXvMS.js → tokenHelpers-CMFBs8po.js} +1 -1
- package/lib/{tokens-B113FI9J.js → tokens-DKt-90PV.js} +1 -1
- package/lib/{tokens-PXiNoKQV.mjs → tokens-r-3L-zm5.mjs} +1 -1
- package/lib/{twitch-BUKpSNF3.js → twitch-BPtSPWwi.js} +1 -1
- package/lib/{twitch-CUtpYc4R.mjs → twitch-BjnldiJg.mjs} +1 -1
- package/lib/{twitch-BBMn8FzK.js → twitch-CnX1zLyh.js} +1 -1
- package/lib/{twitch-DULME7lx.mjs → twitch-UUmNfBhR.mjs} +1 -1
- package/lib/{twitterIcon-_TKDsIPY.mjs → twitterIcon-Bug3Ov3V.mjs} +1 -1
- package/lib/{twitterIcon-YR7_nZMl.mjs → twitterIcon-CORzXqes.mjs} +1 -1
- package/lib/{twitterIcon-BN9ansTN.js → twitterIcon-CuzAcNnN.js} +1 -1
- package/lib/{twitterIcon-Blj3OB-w.js → twitterIcon-DPZQ1g4F.js} +1 -1
- package/lib/{verify-BCgymggd.js → verify-BcHypLx-.js} +1 -1
- package/lib/{verify-B8aWF7Gd.mjs → verify-BzcXHXHH.mjs} +1 -1
- package/lib/{verify-x9oxN_9S.mjs → verify-CGTYC5Gb.mjs} +1 -1
- package/lib/{verify-DYCo-SIH.js → verify-DF_R0wi3.js} +1 -1
- package/lib/{verify-filled-BwdAKqTz.js → verify-filled-BIxOwlrY.js} +1 -1
- package/lib/{verify-filled-DWDmZ4fK.mjs → verify-filled-BdtikQ9V.mjs} +1 -1
- package/lib/{verify-filled-BRds-xGX.js → verify-filled-Bpb0HYP3.js} +1 -1
- package/lib/{verify-filled-i5Ro5Kmd.mjs → verify-filled-woSjwI7B.mjs} +1 -1
- package/lib/{w3m-modal-DSnDVaJG.mjs → w3m-modal-1TEj0hI8.mjs} +2 -2
- package/lib/{w3m-modal-DveKC-Y6.js → w3m-modal-CQc0dHrk.js} +1 -1
- package/lib/{w3m-modal-C-HyORJE.js → w3m-modal-DskVGuLl.js} +1 -1
- package/lib/{w3m-modal-cG8zSQMG.mjs → w3m-modal-Xo0_Tr7j.mjs} +2 -2
- package/lib/{wallet-CmtyVlua.js → wallet-BGd3SuA7.js} +1 -1
- package/lib/{wallet-AYipPwJz.mjs → wallet-ClQpKYZP.mjs} +1 -1
- package/lib/{wallet-CuTms3TO.mjs → wallet-DGfBrlb3.mjs} +1 -1
- package/lib/{wallet-Bt2WxOPa.js → wallet-E8LGI5Yo.js} +1 -1
- package/lib/{wallet-placeholder-Cs6XgbFk.js → wallet-placeholder-BYbEXUsl.js} +1 -1
- package/lib/{wallet-placeholder-rVyGjFzG.mjs → wallet-placeholder-BwiUHiNG.mjs} +1 -1
- package/lib/{wallet-placeholder-CtXzlAiV.js → wallet-placeholder-DS2lYgtI.js} +1 -1
- package/lib/{wallet-placeholder-Dn06LVhc.mjs → wallet-placeholder-eA_d6nk7.mjs} +1 -1
- package/lib/{walletconnect-CSwzK9gd.js → walletconnect-BV7N-T1F.js} +1 -1
- package/lib/{walletconnect-BkeRK6O2.js → walletconnect-BpbAq3o_.js} +1 -1
- package/lib/{walletconnect-B4dzE_Rv.mjs → walletconnect-Ca3Q0Xhv.mjs} +1 -1
- package/lib/{walletconnect-BmvLBckC.mjs → walletconnect-CupXpY7C.mjs} +1 -1
- package/lib/{warning-circle-GTQjQ3h1.mjs → warning-circle-8ClY5fmd.mjs} +1 -1
- package/lib/{warning-circle-DsN-kfbo.js → warning-circle-C41Ocsy3.js} +1 -1
- package/lib/{warning-circle-DYLyFPIa.js → warning-circle-Dx395109.js} +1 -1
- package/lib/{warning-circle-LztOYzFY.mjs → warning-circle-jzOn90Sg.mjs} +1 -1
- package/lib/{x-DMcJACHl.js → x-BvVb63M2.js} +1 -1
- package/lib/{x-BCJR57go.mjs → x-CbB6unwR.mjs} +1 -1
- package/lib/{x--ZenK7QD.mjs → x-CigOCsqT.mjs} +1 -1
- package/lib/{x-GwL6d9Wb.js → x-fQKPMjaI.js} +1 -1
- package/package.json +9 -9
- package/lib/constants-DGfLD4vt.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const xe=require("./platform-DH1Olrgt.js"),Fi=require("./constants-
|
|
1
|
+
"use strict";const xe=require("./platform-DH1Olrgt.js"),Fi=require("./constants-0NS634P7.js"),Qe=require("./unsignedTransaction-DPs4ICFO.js"),gr=require("./address-MD5-FrpX.js"),Wc=require("./platform-B7H14r00.js");require("./types-veyyeRUF.js");const Kd=require("./multiToken-CoyZ5Q7F.js"),Yf=require("react"),Wd={env:"Testnet",rpcs:{Bsc:"https://data-seed-prebsc-1-s3.binance.org:8545",Avalanche:"https://api.avax-test.network/ext/bc/C/rpc",Fantom:"https://rpc.testnet.fantom.network",Celo:"https://alfajores-forno.celo-testnet.org",Solana:"https://api.devnet.solana.com",Fogo:"https://testnet.fogo.io",Moonbeam:"https://rpc.api.moonbase.moonbeam.network",Sui:"https://fullnode.testnet.sui.io",Aptos:"https://fullnode.testnet.aptoslabs.com/v1",Sei:"https://rpc.atlantic-2.seinetwork.io",Klaytn:"https://public-en-kairos.node.kaia.io",Sepolia:"https://ethereum-sepolia-rpc.publicnode.com",ArbitrumSepolia:"https://sepolia-rollup.arbitrum.io/rpc",BaseSepolia:"https://base-sepolia-rpc.publicnode.com",OptimismSepolia:"https://sepolia.optimism.io",Scroll:"https://scroll-sepolia-rpc.publicnode.com",Xlayer:"https://testrpc.xlayer.tech",Mantle:"https://rpc.sepolia.mantle.xyz",Worldchain:"https://worldchain-sepolia.g.alchemy.com/public",Unichain:"https://sepolia.unichain.org",Mezo:"https://rpc.test.mezo.org",Linea:"https://linea-sepolia-rpc.publicnode.com",Sonic:"https://sonic-blaze-rpc.publicnode.com",XRPLEVM:"https://rpc.testnet.xrplevm.org/",Monad:"https://testnet-rpc.monad.xyz",Ink:"https://rpc-gel-sepolia.inkonchain.com",Moca:"https://testnet-rpc.mocachain.org",MonadTestnet:"https://testnet-rpc.monad.xyz/"}},Gd={env:"Mainnet",rpcs:{Ethereum:"https://ethereum-rpc.publicnode.com",Solana:"https://solana-rpc.publicnode.com",Polygon:"https://polygon-bor-rpc.publicnode.com",Bsc:"https://bscrpc.com",Avalanche:"https://avalanche-c-chain-rpc.publicnode.com",Fantom:"https://rpcapi.fantom.network",Celo:"https://celo-rpc.publicnode.com",Moonbeam:"https://moonbeam-rpc.publicnode.com",Sui:"https://rpc.mainnet.sui.io",Aptos:"https://fullnode.mainnet.aptoslabs.com/v1",Arbitrum:"https://arbitrum-one-rpc.publicnode.com",Optimism:"https://optimism-rpc.publicnode.com",Base:"https://base.publicnode.com",Sei:"",Klaytn:"https://public-en.node.kaia.io",Scroll:"https://scroll-rpc.publicnode.com",Xlayer:"https://rpc.xlayer.tech",Mantle:"https://rpc.mantle.xyz",Worldchain:"https://worldchain-mainnet.g.alchemy.com/public",Unichain:"https://mainnet.unichain.org",Berachain:"https://rpc.berachain.com",Linea:"https://linea-rpc.publicnode.com",Sonic:"https://sonic-rpc.publicnode.com",Mezo:"https://jsonrpc-mezo.boar.network",HyperEVM:"https://rpc.hyperliquid.xyz/evm",HyperCore:"https://arbitrum-one-rpc.publicnode.com",XRPLEVM:"https://rpc.xrplevm.org/",Plume:"https://rpc.plume.org",Ink:"https://ink.drpc.org",CreditCoin:"https://mainnet3.creditcoin.network",Fogo:"https://mainnet.fogo.io",Monad:"https://rpc3.monad.xyz",MegaETH:"https://mainnet.megaeth.com/rpc"}},Vd={env:"Devnet",rpcs:{Ethereum:"http://localhost:8545"}},Zd={MAINNET:Gd,TESTNET:Wd,DEVNET:Vd},Xd={Ethereum:{displayName:"Ethereum",sdkName:"Ethereum",explorerUrl:"https://etherscan.io/",explorerName:"Etherscan",icon:"Ethereum",symbol:"ETH",gasReserve:"0.01"},Bsc:{displayName:"BNB",sdkName:"Bsc",explorerUrl:"https://bscscan.com/",explorerName:"BscScan",icon:"Bsc",symbol:"BSC",gasReserve:"0.01"},Polygon:{displayName:"Polygon",sdkName:"Polygon",explorerUrl:"https://polygonscan.com/",explorerName:"PolygonScan",icon:"Polygon",symbol:"POL",gasReserve:"0.01"},Avalanche:{displayName:"Avalanche",sdkName:"Avalanche",explorerUrl:"https://snowtrace.io/",explorerName:"Snowtrace",icon:"Avalanche",symbol:"AVAX",gasReserve:"0.01"},Fantom:{displayName:"Fantom",sdkName:"Fantom",explorerUrl:"https://explorer.fantom.network/",explorerName:"Fantom Explorer",icon:"Fantom",symbol:"FTM"},Celo:{displayName:"Celo",sdkName:"Celo",explorerUrl:"https://explorer.celo.org/mainnet/",explorerName:"Celo Explorer",icon:"Celo",symbol:"CELO",gasReserve:"0.01"},Moonbeam:{displayName:"Moonbeam",sdkName:"Moonbeam",explorerUrl:"https://moonscan.io/",explorerName:"Moonscan",icon:"Moonbeam",symbol:"GLMR",gasReserve:"0.03"},Solana:{displayName:"Solana",sdkName:"Solana",explorerUrl:"https://explorer.solana.com/",explorerName:"Solana Explorer",icon:"Solana",symbol:"SOL",gasReserve:"0.01"},Sui:{displayName:"Sui",sdkName:"Sui",explorerUrl:"https://suiscan.xyz/",explorerName:"Suiscan",icon:"Sui",symbol:"SUI",gasReserve:"0.01"},Aptos:{displayName:"Aptos",sdkName:"Aptos",explorerUrl:"https://explorer.aptoslabs.com/",explorerName:"Aptos Explorer",icon:"Aptos",symbol:"APT",gasReserve:"0.01"},Base:{displayName:"Base",sdkName:"Base",explorerUrl:"https://basescan.org/",explorerName:"BaseScan",icon:"Base",symbol:"BASE",gasReserve:"0.001"},Arbitrum:{displayName:"Arbitrum",sdkName:"Arbitrum",explorerUrl:"https://arbiscan.io/",explorerName:"Arbitrum Explorer",icon:"Arbitrum",symbol:"ARB",gasReserve:"0.001"},Optimism:{displayName:"Optimism",sdkName:"Optimism",explorerUrl:"https://optimistic.etherscan.io/",explorerName:"Optimistic Etherscan",icon:"Optimism",symbol:"OP",gasReserve:"0.001"},Klaytn:{displayName:"Kaia",sdkName:"Klaytn",explorerUrl:"https://kaiascan.io/",explorerName:"KaiaScan",icon:"Klaytn",symbol:"KAIA",gasReserve:"0.01"},Scroll:{displayName:"Scroll",sdkName:"Scroll",explorerUrl:"https://scrollscan.com/",explorerName:"Scrollscan",icon:"Scroll",symbol:"SCR",gasReserve:"0.001"},Xlayer:{displayName:"X Layer",sdkName:"Xlayer",explorerUrl:"https://www.okx.com/web3/explorer/xlayer/",explorerName:"OKX Explorer",icon:"Xlayer",symbol:"OKX",gasReserve:"0.001"},Mantle:{displayName:"Mantle",sdkName:"Mantle",explorerUrl:"https://explorer.mantle.xyz/",explorerName:"Mantle Explorer",icon:"Mantle",symbol:"MNT",gasReserve:"0.001"},Worldchain:{displayName:"World Chain",sdkName:"Worldchain",explorerUrl:"https://worldscan.org/",explorerName:"World Scan",icon:"Worldchain",symbol:"WORLD"},Unichain:{displayName:"Unichain",sdkName:"Unichain",explorerUrl:"https://uniscan.xyz/",explorerName:"Uniscan",icon:"Unichain",symbol:"UNI"},Berachain:{displayName:"Berachain",sdkName:"Berachain",explorerUrl:"https://berascan.com/",explorerName:"Berascan",icon:"Berachain",symbol:"BERA"},Ink:{displayName:"Ink",sdkName:"Ink",explorerUrl:"https://explorer.inkonchain.com/",explorerName:"Ink Explorer",icon:"Ink",symbol:"INK"},Linea:{displayName:"Linea",sdkName:"Linea",explorerUrl:"https://lineascan.build/",explorerName:"Lineascan",icon:"Linea",symbol:"LINEA"},Sonic:{displayName:"Sonic",sdkName:"Sonic",explorerUrl:"https://sonicscan.org/",explorerName:"Sonicscan",icon:"Sonic",symbol:"S"},Mezo:{displayName:"Mezo",sdkName:"Mezo",explorerUrl:"https://explorer.mezo.org",explorerName:"Mezo Explorer",icon:"Mezo",symbol:"BTC"},Seievm:{displayName:"SeiEVM",sdkName:"Seievm",explorerUrl:"https://seitrace.com/?chain=pacific-1",explorerName:"Seitrace",icon:"Seievm",symbol:"SEI"},Plume:{displayName:"Plume",sdkName:"Plume",explorerUrl:"https://explorer.plume.org",explorerName:"Plume Explorer",icon:"Plume",symbol:"PLUME"},HyperEVM:{displayName:"HyperEVM",sdkName:"HyperEVM",explorerUrl:"https://hyperevmscan.io/",explorerName:"HyperEVMScan",icon:"HyperEVM",symbol:"HYPE"},HyperCore:{displayName:"HyperCore",sdkName:"HyperCore",explorerUrl:"https://app.hyperliquid.xyz/explorer/",explorerName:"Hyperliquid Explorer",icon:"HyperCore",symbol:"HyperCore"},XRPLEVM:{displayName:"XRPL EVM",sdkName:"XRPLEVM",explorerUrl:"https://explorer.xrplevm.org/",explorerName:"XRPL EVM Explorer",icon:"XRPLEVM",symbol:"XRP",gasReserve:"0.01"},CreditCoin:{displayName:"Creditcoin",sdkName:"CreditCoin",explorerUrl:"https://creditcoin.blockscout.com",explorerName:"Blockscout",icon:"CreditCoin",symbol:"CTC"},Fogo:{displayName:"Fogo",sdkName:"Fogo",explorerUrl:"https://explorer.fogo.io/",explorerName:"Fogo Explorer",icon:"Fogo",symbol:"FOGO",gasReserve:"0.01"},Monad:{displayName:"Monad",sdkName:"Monad",explorerUrl:"https://monadvision.com/",explorerName:"MonadVision",icon:"Monad",symbol:"MON",gasReserve:"0.01"},MegaETH:{displayName:"MegaETH",sdkName:"MegaETH",explorerUrl:"https://megaeth.blockscout.com/",explorerName:"Blockscout",icon:"MegaETH",symbol:"MEGA",gasReserve:"0.001"},Moca:{displayName:"Moca",sdkName:"Moca",explorerUrl:"https://scan.mocachain.org/",explorerName:"Blockscout",icon:"Moca",symbol:"MOCA"}};function Yd(m){throw new Error('Could not dynamically require "'+m+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Hi={exports:{}},xt={},jr={exports:{}},zr={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var Jf;function Jd(){return Jf||(Jf=1,(function(m,g){var S=Qe.requireDist(),s=S.Buffer;function A(l,b){for(var p in l)b[p]=l[p]}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?m.exports=S:(A(S,g),g.Buffer=i);function i(l,b,p){return s(l,b,p)}i.prototype=Object.create(s.prototype),A(s,i),i.from=function(l,b,p){if(typeof l=="number")throw new TypeError("Argument must not be a number");return s(l,b,p)},i.alloc=function(l,b,p){if(typeof l!="number")throw new TypeError("Argument must be a number");var o=s(l);return b!==void 0?typeof p=="string"?o.fill(b,p):o.fill(b):o.fill(0),o},i.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return s(l)},i.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return S.SlowBuffer(l)}})(zr,zr.exports)),zr.exports}var Qf;function _r(){if(Qf)return jr.exports;Qf=1;var m=65536,g=4294967295;function S(){throw new Error(`Secure random number generation is not supported by this browser.
|
|
2
2
|
Use Chrome, Firefox or Internet Explorer 11`)}var s=Jd().Buffer,A=Qe.commonjsGlobal.crypto||Qe.commonjsGlobal.msCrypto;A&&A.getRandomValues?jr.exports=i:jr.exports=S;function i(l,b){if(l>g)throw new RangeError("requested too many random bytes");var p=s.allocUnsafe(l);if(l>0)if(l>m)for(var o=0;o<l;o+=m)A.getRandomValues(p.slice(o,o+m));else A.getRandomValues(p);return typeof b=="function"?xe.process$1.nextTick(function(){b(null,p)}):p}return jr.exports}var Kr={exports:{}},eo;function dt(){return eo||(eo=1,typeof Object.create=="function"?Kr.exports=function(g,S){S&&(g.super_=S,g.prototype=Object.create(S.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}))}:Kr.exports=function(g,S){if(S){g.super_=S;var s=function(){};s.prototype=S.prototype,g.prototype=new s,g.prototype.constructor=g}}),Kr.exports}var Wr={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var to;function Qd(){return to||(to=1,(function(m,g){var S=Qe.requireDist(),s=S.Buffer;function A(l,b){for(var p in l)b[p]=l[p]}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?m.exports=S:(A(S,g),g.Buffer=i);function i(l,b,p){return s(l,b,p)}i.prototype=Object.create(s.prototype),A(s,i),i.from=function(l,b,p){if(typeof l=="number")throw new TypeError("Argument must not be a number");return s(l,b,p)},i.alloc=function(l,b,p){if(typeof l!="number")throw new TypeError("Argument must be a number");var o=s(l);return b!==void 0?typeof p=="string"?o.fill(b,p):o.fill(b):o.fill(0),o},i.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return s(l)},i.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return S.SlowBuffer(l)}})(Wr,Wr.exports)),Wr.exports}var Gr={exports:{}},ro;function Ar(){if(ro)return Gr.exports;ro=1;var m=typeof Reflect=="object"?Reflect:null,g=m&&typeof m.apply=="function"?m.apply:function(q,O,Y){return Function.prototype.apply.call(q,O,Y)},S;m&&typeof m.ownKeys=="function"?S=m.ownKeys:Object.getOwnPropertySymbols?S=function(q){return Object.getOwnPropertyNames(q).concat(Object.getOwnPropertySymbols(q))}:S=function(q){return Object.getOwnPropertyNames(q)};function s(D){console&&console.warn&&console.warn(D)}var A=Number.isNaN||function(q){return q!==q};function i(){i.init.call(this)}Gr.exports=i,Gr.exports.once=F,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var l=10;function b(D){if(typeof D!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof D)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(D){if(typeof D!="number"||D<0||A(D))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+D+".");l=D}}),i.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(q){if(typeof q!="number"||q<0||A(q))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+q+".");return this._maxListeners=q,this};function p(D){return D._maxListeners===void 0?i.defaultMaxListeners:D._maxListeners}i.prototype.getMaxListeners=function(){return p(this)},i.prototype.emit=function(q){for(var O=[],Y=1;Y<arguments.length;Y++)O.push(arguments[Y]);var Q=q==="error",L=this._events;if(L!==void 0)Q=Q&&L.error===void 0;else if(!Q)return!1;if(Q){var X;if(O.length>0&&(X=O[0]),X instanceof Error)throw X;var c=new Error("Unhandled error."+(X?" ("+X.message+")":""));throw c.context=X,c}var e=L[q];if(e===void 0)return!1;if(typeof e=="function")g(e,this,O);else for(var r=e.length,n=_(e,r),Y=0;Y<r;++Y)g(n[Y],this,O);return!0};function o(D,q,O,Y){var Q,L,X;if(b(O),L=D._events,L===void 0?(L=D._events=Object.create(null),D._eventsCount=0):(L.newListener!==void 0&&(D.emit("newListener",q,O.listener?O.listener:O),L=D._events),X=L[q]),X===void 0)X=L[q]=O,++D._eventsCount;else if(typeof X=="function"?X=L[q]=Y?[O,X]:[X,O]:Y?X.unshift(O):X.push(O),Q=p(D),Q>0&&X.length>Q&&!X.warned){X.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+X.length+" "+String(q)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=D,c.type=q,c.count=X.length,s(c)}return D}i.prototype.addListener=function(q,O){return o(this,q,O,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(q,O){return o(this,q,O,!0)};function v(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function y(D,q,O){var Y={fired:!1,wrapFn:void 0,target:D,type:q,listener:O},Q=v.bind(Y);return Q.listener=O,Y.wrapFn=Q,Q}i.prototype.once=function(q,O){return b(O),this.on(q,y(this,q,O)),this},i.prototype.prependOnceListener=function(q,O){return b(O),this.prependListener(q,y(this,q,O)),this},i.prototype.removeListener=function(q,O){var Y,Q,L,X,c;if(b(O),Q=this._events,Q===void 0)return this;if(Y=Q[q],Y===void 0)return this;if(Y===O||Y.listener===O)--this._eventsCount===0?this._events=Object.create(null):(delete Q[q],Q.removeListener&&this.emit("removeListener",q,Y.listener||O));else if(typeof Y!="function"){for(L=-1,X=Y.length-1;X>=0;X--)if(Y[X]===O||Y[X].listener===O){c=Y[X].listener,L=X;break}if(L<0)return this;L===0?Y.shift():E(Y,L),Y.length===1&&(Q[q]=Y[0]),Q.removeListener!==void 0&&this.emit("removeListener",q,c||O)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(q){var O,Y,Q;if(Y=this._events,Y===void 0)return this;if(Y.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):Y[q]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete Y[q]),this;if(arguments.length===0){var L=Object.keys(Y),X;for(Q=0;Q<L.length;++Q)X=L[Q],X!=="removeListener"&&this.removeAllListeners(X);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(O=Y[q],typeof O=="function")this.removeListener(q,O);else if(O!==void 0)for(Q=O.length-1;Q>=0;Q--)this.removeListener(q,O[Q]);return this};function x(D,q,O){var Y=D._events;if(Y===void 0)return[];var Q=Y[q];return Q===void 0?[]:typeof Q=="function"?O?[Q.listener||Q]:[Q]:O?B(Q):_(Q,Q.length)}i.prototype.listeners=function(q){return x(this,q,!0)},i.prototype.rawListeners=function(q){return x(this,q,!1)},i.listenerCount=function(D,q){return typeof D.listenerCount=="function"?D.listenerCount(q):M.call(D,q)},i.prototype.listenerCount=M;function M(D){var q=this._events;if(q!==void 0){var O=q[D];if(typeof O=="function")return 1;if(O!==void 0)return O.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?S(this._events):[]};function _(D,q){for(var O=new Array(q),Y=0;Y<q;++Y)O[Y]=D[Y];return O}function E(D,q){for(;q+1<D.length;q++)D[q]=D[q+1];D.pop()}function B(D){for(var q=new Array(D.length),O=0;O<q.length;++O)q[O]=D[O].listener||D[O];return q}function F(D,q){return new Promise(function(O,Y){function Q(X){D.removeListener(q,L),Y(X)}function L(){typeof D.removeListener=="function"&&D.removeListener("error",Q),O([].slice.call(arguments))}R(D,q,L,{once:!0}),q!=="error"&&C(D,Q,{once:!0})})}function C(D,q,O){typeof D.on=="function"&&R(D,"error",q,O)}function R(D,q,O,Y){if(typeof D.on=="function")Y.once?D.once(q,O):D.on(q,O);else if(typeof D.addEventListener=="function")D.addEventListener(q,function Q(L){Y.once&&D.removeEventListener(q,Q),O(L)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof D)}return Gr.exports}var $i,io;function Gc(){return io||(io=1,$i=Ar().EventEmitter),$i}const e1={},t1=Object.freeze(Object.defineProperty({__proto__:null,default:e1},Symbol.toStringTag,{value:"Module"})),Er=Qe.getAugmentedNamespace(t1);var ji,no;function r1(){if(no)return ji;no=1;function m(_,E){var B=Object.keys(_);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(_);E&&(F=F.filter(function(C){return Object.getOwnPropertyDescriptor(_,C).enumerable})),B.push.apply(B,F)}return B}function g(_){for(var E=1;E<arguments.length;E++){var B=arguments[E]!=null?arguments[E]:{};E%2?m(Object(B),!0).forEach(function(F){S(_,F,B[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(B)):m(Object(B)).forEach(function(F){Object.defineProperty(_,F,Object.getOwnPropertyDescriptor(B,F))})}return _}function S(_,E,B){return E=l(E),E in _?Object.defineProperty(_,E,{value:B,enumerable:!0,configurable:!0,writable:!0}):_[E]=B,_}function s(_,E){if(!(_ instanceof E))throw new TypeError("Cannot call a class as a function")}function A(_,E){for(var B=0;B<E.length;B++){var F=E[B];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(_,l(F.key),F)}}function i(_,E,B){return E&&A(_.prototype,E),Object.defineProperty(_,"prototype",{writable:!1}),_}function l(_){var E=b(_,"string");return typeof E=="symbol"?E:String(E)}function b(_,E){if(typeof _!="object"||_===null)return _;var B=_[Symbol.toPrimitive];if(B!==void 0){var F=B.call(_,E);if(typeof F!="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(_)}var p=Qe.requireDist(),o=p.Buffer,v=Er,y=v.inspect,x=y&&y.custom||"inspect";function M(_,E,B){o.prototype.copy.call(_,E,B)}return ji=(function(){function _(){s(this,_),this.head=null,this.tail=null,this.length=0}return i(_,[{key:"push",value:function(B){var F={data:B,next:null};this.length>0?this.tail.next=F:this.head=F,this.tail=F,++this.length}},{key:"unshift",value:function(B){var F={data:B,next:this.head};this.length===0&&(this.tail=F),this.head=F,++this.length}},{key:"shift",value:function(){if(this.length!==0){var B=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,B}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(B){if(this.length===0)return"";for(var F=this.head,C=""+F.data;F=F.next;)C+=B+F.data;return C}},{key:"concat",value:function(B){if(this.length===0)return o.alloc(0);for(var F=o.allocUnsafe(B>>>0),C=this.head,R=0;C;)M(C.data,F,R),R+=C.data.length,C=C.next;return F}},{key:"consume",value:function(B,F){var C;return B<this.head.data.length?(C=this.head.data.slice(0,B),this.head.data=this.head.data.slice(B)):B===this.head.data.length?C=this.shift():C=F?this._getString(B):this._getBuffer(B),C}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(B){var F=this.head,C=1,R=F.data;for(B-=R.length;F=F.next;){var D=F.data,q=B>D.length?D.length:B;if(q===D.length?R+=D:R+=D.slice(0,B),B-=q,B===0){q===D.length?(++C,F.next?this.head=F.next:this.head=this.tail=null):(this.head=F,F.data=D.slice(q));break}++C}return this.length-=C,R}},{key:"_getBuffer",value:function(B){var F=o.allocUnsafe(B),C=this.head,R=1;for(C.data.copy(F),B-=C.data.length;C=C.next;){var D=C.data,q=B>D.length?D.length:B;if(D.copy(F,F.length-B,0,q),B-=q,B===0){q===D.length?(++R,C.next?this.head=C.next:this.head=this.tail=null):(this.head=C,C.data=D.slice(q));break}++R}return this.length-=R,F}},{key:x,value:function(B,F){return y(this,g(g({},F),{},{depth:0,customInspect:!1}))}}]),_})(),ji}var zi,ao;function Vc(){if(ao)return zi;ao=1;function m(l,b){var p=this,o=this._readableState&&this._readableState.destroyed,v=this._writableState&&this._writableState.destroyed;return o||v?(b?b(l):l&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,xe.process$1.nextTick(A,this,l)):xe.process$1.nextTick(A,this,l)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(l||null,function(y){!b&&y?p._writableState?p._writableState.errorEmitted?xe.process$1.nextTick(S,p):(p._writableState.errorEmitted=!0,xe.process$1.nextTick(g,p,y)):xe.process$1.nextTick(g,p,y):b?(xe.process$1.nextTick(S,p),b(y)):xe.process$1.nextTick(S,p)}),this)}function g(l,b){A(l,b),S(l)}function S(l){l._writableState&&!l._writableState.emitClose||l._readableState&&!l._readableState.emitClose||l.emit("close")}function s(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function A(l,b){l.emit("error",b)}function i(l,b){var p=l._readableState,o=l._writableState;p&&p.autoDestroy||o&&o.autoDestroy?l.destroy(b):l.emit("error",b)}return zi={destroy:m,undestroy:s,errorOrDestroy:i},zi}var Ki={},fo;function Sr(){if(fo)return Ki;fo=1;function m(b,p){b.prototype=Object.create(p.prototype),b.prototype.constructor=b,b.__proto__=p}var g={};function S(b,p,o){o||(o=Error);function v(x,M,_){return typeof p=="string"?p:p(x,M,_)}var y=(function(x){m(M,x);function M(_,E,B){return x.call(this,v(_,E,B))||this}return M})(o);y.prototype.name=o.name,y.prototype.code=b,g[b]=y}function s(b,p){if(Array.isArray(b)){var o=b.length;return b=b.map(function(v){return String(v)}),o>2?"one of ".concat(p," ").concat(b.slice(0,o-1).join(", "),", or ")+b[o-1]:o===2?"one of ".concat(p," ").concat(b[0]," or ").concat(b[1]):"of ".concat(p," ").concat(b[0])}else return"of ".concat(p," ").concat(String(b))}function A(b,p,o){return b.substr(0,p.length)===p}function i(b,p,o){return(o===void 0||o>b.length)&&(o=b.length),b.substring(o-p.length,o)===p}function l(b,p,o){return typeof o!="number"&&(o=0),o+p.length>b.length?!1:b.indexOf(p,o)!==-1}return S("ERR_INVALID_OPT_VALUE",function(b,p){return'The value "'+p+'" is invalid for option "'+b+'"'},TypeError),S("ERR_INVALID_ARG_TYPE",function(b,p,o){var v;typeof p=="string"&&A(p,"not ")?(v="must not be",p=p.replace(/^not /,"")):v="must be";var y;if(i(b," argument"))y="The ".concat(b," ").concat(v," ").concat(s(p,"type"));else{var x=l(b,".")?"property":"argument";y='The "'.concat(b,'" ').concat(x," ").concat(v," ").concat(s(p,"type"))}return y+=". Received type ".concat(typeof o),y},TypeError),S("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),S("ERR_METHOD_NOT_IMPLEMENTED",function(b){return"The "+b+" method is not implemented"}),S("ERR_STREAM_PREMATURE_CLOSE","Premature close"),S("ERR_STREAM_DESTROYED",function(b){return"Cannot call "+b+" after a stream was destroyed"}),S("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),S("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),S("ERR_STREAM_WRITE_AFTER_END","write after end"),S("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),S("ERR_UNKNOWN_ENCODING",function(b){return"Unknown encoding: "+b},TypeError),S("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Ki.codes=g,Ki}var Wi,oo;function Zc(){if(oo)return Wi;oo=1;var m=Sr().codes.ERR_INVALID_OPT_VALUE;function g(s,A,i){return s.highWaterMark!=null?s.highWaterMark:A?s[i]:null}function S(s,A,i,l){var b=g(A,l,i);if(b!=null){if(!(isFinite(b)&&Math.floor(b)===b)||b<0){var p=l?i:"highWaterMark";throw new m(p,b)}return Math.floor(b)}return s.objectMode?16:16*1024}return Wi={getHighWaterMark:S},Wi}var Gi,so;function Xc(){if(so)return Gi;so=1,Gi=m;function m(S,s){if(g("noDeprecation"))return S;var A=!1;function i(){if(!A){if(g("throwDeprecation"))throw new Error(s);g("traceDeprecation")?console.trace(s):console.warn(s),A=!0}return S.apply(this,arguments)}return i}function g(S){try{if(!Qe.commonjsGlobal.localStorage)return!1}catch{return!1}var s=Qe.commonjsGlobal.localStorage[S];return s==null?!1:String(s).toLowerCase()==="true"}return Gi}var Vi,ho;function wf(){if(ho)return Vi;ho=1,Vi=Q;function m(J){var N=this;this.next=null,this.entry=null,this.finish=function(){ee(N,J)}}var g;Q.WritableState=O;var S={deprecate:Xc()},s=Gc(),A=Qe.requireDist().Buffer,i=(typeof Qe.commonjsGlobal<"u"?Qe.commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function l(J){return A.from(J)}function b(J){return A.isBuffer(J)||J instanceof i}var p=Vc(),o=Zc(),v=o.getHighWaterMark,y=Sr().codes,x=y.ERR_INVALID_ARG_TYPE,M=y.ERR_METHOD_NOT_IMPLEMENTED,_=y.ERR_MULTIPLE_CALLBACK,E=y.ERR_STREAM_CANNOT_PIPE,B=y.ERR_STREAM_DESTROYED,F=y.ERR_STREAM_NULL_VALUES,C=y.ERR_STREAM_WRITE_AFTER_END,R=y.ERR_UNKNOWN_ENCODING,D=p.errorOrDestroy;dt()(Q,s);function q(){}function O(J,N,z){g=g||pr(),J=J||{},typeof z!="boolean"&&(z=N instanceof g),this.objectMode=!!J.objectMode,z&&(this.objectMode=this.objectMode||!!J.writableObjectMode),this.highWaterMark=v(this,J,"writableHighWaterMark",z),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Z=J.decodeStrings===!1;this.decodeStrings=!Z,this.defaultEncoding=J.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(k){u(N,k)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=J.emitClose!==!1,this.autoDestroy=!!J.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new m(this)}O.prototype.getBuffer=function(){for(var N=this.bufferedRequest,z=[];N;)z.push(N),N=N.next;return z},(function(){try{Object.defineProperty(O.prototype,"buffer",{get:S.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Y;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Y=Function.prototype[Symbol.hasInstance],Object.defineProperty(Q,Symbol.hasInstance,{value:function(N){return Y.call(this,N)?!0:this!==Q?!1:N&&N._writableState instanceof O}})):Y=function(N){return N instanceof this};function Q(J){g=g||pr();var N=this instanceof g;if(!N&&!Y.call(Q,this))return new Q(J);this._writableState=new O(J,this,N),this.writable=!0,J&&(typeof J.write=="function"&&(this._write=J.write),typeof J.writev=="function"&&(this._writev=J.writev),typeof J.destroy=="function"&&(this._destroy=J.destroy),typeof J.final=="function"&&(this._final=J.final)),s.call(this)}Q.prototype.pipe=function(){D(this,new E)};function L(J,N){var z=new C;D(J,z),xe.process$1.nextTick(N,z)}function X(J,N,z,Z){var k;return z===null?k=new F:typeof z!="string"&&!N.objectMode&&(k=new x("chunk",["string","Buffer"],z)),k?(D(J,k),xe.process$1.nextTick(Z,k),!1):!0}Q.prototype.write=function(J,N,z){var Z=this._writableState,k=!1,P=!Z.objectMode&&b(J);return P&&!A.isBuffer(J)&&(J=l(J)),typeof N=="function"&&(z=N,N=null),P?N="buffer":N||(N=Z.defaultEncoding),typeof z!="function"&&(z=q),Z.ending?L(this,z):(P||X(this,Z,J,z))&&(Z.pendingcb++,k=e(this,Z,P,J,N,z)),k},Q.prototype.cork=function(){this._writableState.corked++},Q.prototype.uncork=function(){var J=this._writableState;J.corked&&(J.corked--,!J.writing&&!J.corked&&!J.bufferProcessing&&J.bufferedRequest&&f(this,J))},Q.prototype.setDefaultEncoding=function(N){if(typeof N=="string"&&(N=N.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((N+"").toLowerCase())>-1))throw new R(N);return this._writableState.defaultEncoding=N,this},Object.defineProperty(Q.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function c(J,N,z){return!J.objectMode&&J.decodeStrings!==!1&&typeof N=="string"&&(N=A.from(N,z)),N}Object.defineProperty(Q.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function e(J,N,z,Z,k,P){if(!z){var T=c(N,Z,k);Z!==T&&(z=!0,k="buffer",Z=T)}var G=N.objectMode?1:Z.length;N.length+=G;var fe=N.length<N.highWaterMark;if(fe||(N.needDrain=!0),N.writing||N.corked){var te=N.lastBufferedRequest;N.lastBufferedRequest={chunk:Z,encoding:k,isBuf:z,callback:P,next:null},te?te.next=N.lastBufferedRequest:N.bufferedRequest=N.lastBufferedRequest,N.bufferedRequestCount+=1}else r(J,N,!1,G,Z,k,P);return fe}function r(J,N,z,Z,k,P,T){N.writelen=Z,N.writecb=T,N.writing=!0,N.sync=!0,N.destroyed?N.onwrite(new B("write")):z?J._writev(k,N.onwrite):J._write(k,P,N.onwrite),N.sync=!1}function n(J,N,z,Z,k){--N.pendingcb,z?(xe.process$1.nextTick(k,Z),xe.process$1.nextTick(j,J,N),J._writableState.errorEmitted=!0,D(J,Z)):(k(Z),J._writableState.errorEmitted=!0,D(J,Z),j(J,N))}function a(J){J.writing=!1,J.writecb=null,J.length-=J.writelen,J.writelen=0}function u(J,N){var z=J._writableState,Z=z.sync,k=z.writecb;if(typeof k!="function")throw new _;if(a(z),N)n(J,z,Z,N,k);else{var P=t(z)||J.destroyed;!P&&!z.corked&&!z.bufferProcessing&&z.bufferedRequest&&f(J,z),Z?xe.process$1.nextTick(d,J,z,P,k):d(J,z,P,k)}}function d(J,N,z,Z){z||w(J,N),N.pendingcb--,Z(),j(J,N)}function w(J,N){N.length===0&&N.needDrain&&(N.needDrain=!1,J.emit("drain"))}function f(J,N){N.bufferProcessing=!0;var z=N.bufferedRequest;if(J._writev&&z&&z.next){var Z=N.bufferedRequestCount,k=new Array(Z),P=N.corkedRequestsFree;P.entry=z;for(var T=0,G=!0;z;)k[T]=z,z.isBuf||(G=!1),z=z.next,T+=1;k.allBuffers=G,r(J,N,!0,N.length,k,"",P.finish),N.pendingcb++,N.lastBufferedRequest=null,P.next?(N.corkedRequestsFree=P.next,P.next=null):N.corkedRequestsFree=new m(N),N.bufferedRequestCount=0}else{for(;z;){var fe=z.chunk,te=z.encoding,re=z.callback,he=N.objectMode?1:fe.length;if(r(J,N,!1,he,fe,te,re),z=z.next,N.bufferedRequestCount--,N.writing)break}z===null&&(N.lastBufferedRequest=null)}N.bufferedRequest=z,N.bufferProcessing=!1}Q.prototype._write=function(J,N,z){z(new M("_write()"))},Q.prototype._writev=null,Q.prototype.end=function(J,N,z){var Z=this._writableState;return typeof J=="function"?(z=J,J=null,N=null):typeof N=="function"&&(z=N,N=null),J!=null&&this.write(J,N),Z.corked&&(Z.corked=1,this.uncork()),Z.ending||U(this,Z,z),this},Object.defineProperty(Q.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function t(J){return J.ending&&J.length===0&&J.bufferedRequest===null&&!J.finished&&!J.writing}function h(J,N){J._final(function(z){N.pendingcb--,z&&D(J,z),N.prefinished=!0,J.emit("prefinish"),j(J,N)})}function H(J,N){!N.prefinished&&!N.finalCalled&&(typeof J._final=="function"&&!N.destroyed?(N.pendingcb++,N.finalCalled=!0,xe.process$1.nextTick(h,J,N)):(N.prefinished=!0,J.emit("prefinish")))}function j(J,N){var z=t(N);if(z&&(H(J,N),N.pendingcb===0&&(N.finished=!0,J.emit("finish"),N.autoDestroy))){var Z=J._readableState;(!Z||Z.autoDestroy&&Z.endEmitted)&&J.destroy()}return z}function U(J,N,z){N.ending=!0,j(J,N),z&&(N.finished?xe.process$1.nextTick(z):J.once("finish",z)),N.ended=!0,J.writable=!1}function ee(J,N,z){var Z=J.entry;for(J.entry=null;Z;){var k=Z.callback;N.pendingcb--,k(z),Z=Z.next}N.corkedRequestsFree.next=J}return Object.defineProperty(Q.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(N){this._writableState&&(this._writableState.destroyed=N)}}),Q.prototype.destroy=p.destroy,Q.prototype._undestroy=p.undestroy,Q.prototype._destroy=function(J,N){N(J)},Vi}var Zi,uo;function pr(){if(uo)return Zi;uo=1;var m=Object.keys||function(o){var v=[];for(var y in o)v.push(y);return v};Zi=l;var g=Mf(),S=wf();dt()(l,g);for(var s=m(S.prototype),A=0;A<s.length;A++){var i=s[A];l.prototype[i]||(l.prototype[i]=S.prototype[i])}function l(o){if(!(this instanceof l))return new l(o);g.call(this,o),S.call(this,o),this.allowHalfOpen=!0,o&&(o.readable===!1&&(this.readable=!1),o.writable===!1&&(this.writable=!1),o.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",b)))}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function b(){this._writableState.ended||xe.process$1.nextTick(p,this)}function p(o){o.end()}return Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(v){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=v,this._writableState.destroyed=v)}}),Zi}var Xi={},Vr={exports:{}},co;function i1(){return co||(co=1,(function(m,g){var S=Qe.requireDist(),s=S.Buffer;function A(l,b){for(var p in l)b[p]=l[p]}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?m.exports=S:(A(S,g),g.Buffer=i);function i(l,b,p){return s(l,b,p)}A(s,i),i.from=function(l,b,p){if(typeof l=="number")throw new TypeError("Argument must not be a number");return s(l,b,p)},i.alloc=function(l,b,p){if(typeof l!="number")throw new TypeError("Argument must be a number");var o=s(l);return b!==void 0?typeof p=="string"?o.fill(b,p):o.fill(b):o.fill(0),o},i.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return s(l)},i.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return S.SlowBuffer(l)}})(Vr,Vr.exports)),Vr.exports}var lo;function kr(){if(lo)return Xi;lo=1;var m=i1().Buffer,g=m.isEncoding||function(F){switch(F=""+F,F&&F.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 S(F){if(!F)return"utf8";for(var C;;)switch(F){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 F;default:if(C)return;F=(""+F).toLowerCase(),C=!0}}function s(F){var C=S(F);if(typeof C!="string"&&(m.isEncoding===g||!g(F)))throw new Error("Unknown encoding: "+F);return C||F}Xi.StringDecoder=A;function A(F){this.encoding=s(F);var C;switch(this.encoding){case"utf16le":this.text=y,this.end=x,C=4;break;case"utf8":this.fillLast=p,C=4;break;case"base64":this.text=M,this.end=_,C=3;break;default:this.write=E,this.end=B;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=m.allocUnsafe(C)}A.prototype.write=function(F){if(F.length===0)return"";var C,R;if(this.lastNeed){if(C=this.fillLast(F),C===void 0)return"";R=this.lastNeed,this.lastNeed=0}else R=0;return R<F.length?C?C+this.text(F,R):this.text(F,R):C||""},A.prototype.end=v,A.prototype.text=o,A.prototype.fillLast=function(F){if(this.lastNeed<=F.length)return F.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);F.copy(this.lastChar,this.lastTotal-this.lastNeed,0,F.length),this.lastNeed-=F.length};function i(F){return F<=127?0:F>>5===6?2:F>>4===14?3:F>>3===30?4:F>>6===2?-1:-2}function l(F,C,R){var D=C.length-1;if(D<R)return 0;var q=i(C[D]);return q>=0?(q>0&&(F.lastNeed=q-1),q):--D<R||q===-2?0:(q=i(C[D]),q>=0?(q>0&&(F.lastNeed=q-2),q):--D<R||q===-2?0:(q=i(C[D]),q>=0?(q>0&&(q===2?q=0:F.lastNeed=q-3),q):0))}function b(F,C,R){if((C[0]&192)!==128)return F.lastNeed=0,"�";if(F.lastNeed>1&&C.length>1){if((C[1]&192)!==128)return F.lastNeed=1,"�";if(F.lastNeed>2&&C.length>2&&(C[2]&192)!==128)return F.lastNeed=2,"�"}}function p(F){var C=this.lastTotal-this.lastNeed,R=b(this,F);if(R!==void 0)return R;if(this.lastNeed<=F.length)return F.copy(this.lastChar,C,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);F.copy(this.lastChar,C,0,F.length),this.lastNeed-=F.length}function o(F,C){var R=l(this,F,C);if(!this.lastNeed)return F.toString("utf8",C);this.lastTotal=R;var D=F.length-(R-this.lastNeed);return F.copy(this.lastChar,0,D),F.toString("utf8",C,D)}function v(F){var C=F&&F.length?this.write(F):"";return this.lastNeed?C+"�":C}function y(F,C){if((F.length-C)%2===0){var R=F.toString("utf16le",C);if(R){var D=R.charCodeAt(R.length-1);if(D>=55296&&D<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=F[F.length-2],this.lastChar[1]=F[F.length-1],R.slice(0,-1)}return R}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=F[F.length-1],F.toString("utf16le",C,F.length-1)}function x(F){var C=F&&F.length?this.write(F):"";if(this.lastNeed){var R=this.lastTotal-this.lastNeed;return C+this.lastChar.toString("utf16le",0,R)}return C}function M(F,C){var R=(F.length-C)%3;return R===0?F.toString("base64",C):(this.lastNeed=3-R,this.lastTotal=3,R===1?this.lastChar[0]=F[F.length-1]:(this.lastChar[0]=F[F.length-2],this.lastChar[1]=F[F.length-1]),F.toString("base64",C,F.length-R))}function _(F){var C=F&&F.length?this.write(F):"";return this.lastNeed?C+this.lastChar.toString("base64",0,3-this.lastNeed):C}function E(F){return F.toString(this.encoding)}function B(F){return F&&F.length?this.write(F):""}return Xi}var Yi,po;function Di(){if(po)return Yi;po=1;var m=Sr().codes.ERR_STREAM_PREMATURE_CLOSE;function g(i){var l=!1;return function(){if(!l){l=!0;for(var b=arguments.length,p=new Array(b),o=0;o<b;o++)p[o]=arguments[o];i.apply(this,p)}}}function S(){}function s(i){return i.setHeader&&typeof i.abort=="function"}function A(i,l,b){if(typeof l=="function")return A(i,null,l);l||(l={}),b=g(b||S);var p=l.readable||l.readable!==!1&&i.readable,o=l.writable||l.writable!==!1&&i.writable,v=function(){i.writable||x()},y=i._writableState&&i._writableState.finished,x=function(){o=!1,y=!0,p||b.call(i)},M=i._readableState&&i._readableState.endEmitted,_=function(){p=!1,M=!0,o||b.call(i)},E=function(R){b.call(i,R)},B=function(){var R;if(p&&!M)return(!i._readableState||!i._readableState.ended)&&(R=new m),b.call(i,R);if(o&&!y)return(!i._writableState||!i._writableState.ended)&&(R=new m),b.call(i,R)},F=function(){i.req.on("finish",x)};return s(i)?(i.on("complete",x),i.on("abort",B),i.req?F():i.on("request",F)):o&&!i._writableState&&(i.on("end",v),i.on("close",v)),i.on("end",_),i.on("finish",x),l.error!==!1&&i.on("error",E),i.on("close",B),function(){i.removeListener("complete",x),i.removeListener("abort",B),i.removeListener("request",F),i.req&&i.req.removeListener("finish",x),i.removeListener("end",v),i.removeListener("close",v),i.removeListener("finish",x),i.removeListener("end",_),i.removeListener("error",E),i.removeListener("close",B)}}return Yi=A,Yi}var Ji,vo;function n1(){if(vo)return Ji;vo=1;var m;function g(R,D,q){return D=S(D),D in R?Object.defineProperty(R,D,{value:q,enumerable:!0,configurable:!0,writable:!0}):R[D]=q,R}function S(R){var D=s(R,"string");return typeof D=="symbol"?D:String(D)}function s(R,D){if(typeof R!="object"||R===null)return R;var q=R[Symbol.toPrimitive];if(q!==void 0){var O=q.call(R,D);if(typeof O!="object")return O;throw new TypeError("@@toPrimitive must return a primitive value.")}return(D==="string"?String:Number)(R)}var A=Di(),i=Symbol("lastResolve"),l=Symbol("lastReject"),b=Symbol("error"),p=Symbol("ended"),o=Symbol("lastPromise"),v=Symbol("handlePromise"),y=Symbol("stream");function x(R,D){return{value:R,done:D}}function M(R){var D=R[i];if(D!==null){var q=R[y].read();q!==null&&(R[o]=null,R[i]=null,R[l]=null,D(x(q,!1)))}}function _(R){xe.process$1.nextTick(M,R)}function E(R,D){return function(q,O){R.then(function(){if(D[p]){q(x(void 0,!0));return}D[v](q,O)},O)}}var B=Object.getPrototypeOf(function(){}),F=Object.setPrototypeOf((m={get stream(){return this[y]},next:function(){var D=this,q=this[b];if(q!==null)return Promise.reject(q);if(this[p])return Promise.resolve(x(void 0,!0));if(this[y].destroyed)return new Promise(function(L,X){xe.process$1.nextTick(function(){D[b]?X(D[b]):L(x(void 0,!0))})});var O=this[o],Y;if(O)Y=new Promise(E(O,this));else{var Q=this[y].read();if(Q!==null)return Promise.resolve(x(Q,!1));Y=new Promise(this[v])}return this[o]=Y,Y}},g(m,Symbol.asyncIterator,function(){return this}),g(m,"return",function(){var D=this;return new Promise(function(q,O){D[y].destroy(null,function(Y){if(Y){O(Y);return}q(x(void 0,!0))})})}),m),B),C=function(D){var q,O=Object.create(F,(q={},g(q,y,{value:D,writable:!0}),g(q,i,{value:null,writable:!0}),g(q,l,{value:null,writable:!0}),g(q,b,{value:null,writable:!0}),g(q,p,{value:D._readableState.endEmitted,writable:!0}),g(q,v,{value:function(Q,L){var X=O[y].read();X?(O[o]=null,O[i]=null,O[l]=null,Q(x(X,!1))):(O[i]=Q,O[l]=L)},writable:!0}),q));return O[o]=null,A(D,function(Y){if(Y&&Y.code!=="ERR_STREAM_PREMATURE_CLOSE"){var Q=O[l];Q!==null&&(O[o]=null,O[i]=null,O[l]=null,Q(Y)),O[b]=Y;return}var L=O[i];L!==null&&(O[o]=null,O[i]=null,O[l]=null,L(x(void 0,!0))),O[p]=!0}),D.on("readable",_.bind(null,O)),O};return Ji=C,Ji}var Qi,bo;function a1(){return bo||(bo=1,Qi=function(){throw new Error("Readable.from is not available in the browser")}),Qi}var en,mo;function Mf(){if(mo)return en;mo=1,en=L;var m;L.ReadableState=Q,Ar().EventEmitter;var g=function(T,G){return T.listeners(G).length},S=Gc(),s=Qe.requireDist().Buffer,A=(typeof Qe.commonjsGlobal<"u"?Qe.commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function i(P){return s.from(P)}function l(P){return s.isBuffer(P)||P instanceof A}var b=Er,p;b&&b.debuglog?p=b.debuglog("stream"):p=function(){};var o=r1(),v=Vc(),y=Zc(),x=y.getHighWaterMark,M=Sr().codes,_=M.ERR_INVALID_ARG_TYPE,E=M.ERR_STREAM_PUSH_AFTER_EOF,B=M.ERR_METHOD_NOT_IMPLEMENTED,F=M.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,C,R,D;dt()(L,S);var q=v.errorOrDestroy,O=["error","close","destroy","pause","resume"];function Y(P,T,G){if(typeof P.prependListener=="function")return P.prependListener(T,G);!P._events||!P._events[T]?P.on(T,G):Array.isArray(P._events[T])?P._events[T].unshift(G):P._events[T]=[G,P._events[T]]}function Q(P,T,G){m=m||pr(),P=P||{},typeof G!="boolean"&&(G=T instanceof m),this.objectMode=!!P.objectMode,G&&(this.objectMode=this.objectMode||!!P.readableObjectMode),this.highWaterMark=x(this,P,"readableHighWaterMark",G),this.buffer=new o,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=P.emitClose!==!1,this.autoDestroy=!!P.autoDestroy,this.destroyed=!1,this.defaultEncoding=P.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,P.encoding&&(C||(C=kr().StringDecoder),this.decoder=new C(P.encoding),this.encoding=P.encoding)}function L(P){if(m=m||pr(),!(this instanceof L))return new L(P);var T=this instanceof m;this._readableState=new Q(P,this,T),this.readable=!0,P&&(typeof P.read=="function"&&(this._read=P.read),typeof P.destroy=="function"&&(this._destroy=P.destroy)),S.call(this)}Object.defineProperty(L.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(T){this._readableState&&(this._readableState.destroyed=T)}}),L.prototype.destroy=v.destroy,L.prototype._undestroy=v.undestroy,L.prototype._destroy=function(P,T){T(P)},L.prototype.push=function(P,T){var G=this._readableState,fe;return G.objectMode?fe=!0:typeof P=="string"&&(T=T||G.defaultEncoding,T!==G.encoding&&(P=s.from(P,T),T=""),fe=!0),X(this,P,T,!1,fe)},L.prototype.unshift=function(P){return X(this,P,null,!0,!1)};function X(P,T,G,fe,te){p("readableAddChunk",T);var re=P._readableState;if(T===null)re.reading=!1,u(P,re);else{var he;if(te||(he=e(re,T)),he)q(P,he);else if(re.objectMode||T&&T.length>0)if(typeof T!="string"&&!re.objectMode&&Object.getPrototypeOf(T)!==s.prototype&&(T=i(T)),fe)re.endEmitted?q(P,new F):c(P,re,T,!0);else if(re.ended)q(P,new E);else{if(re.destroyed)return!1;re.reading=!1,re.decoder&&!G?(T=re.decoder.write(T),re.objectMode||T.length!==0?c(P,re,T,!1):f(P,re)):c(P,re,T,!1)}else fe||(re.reading=!1,f(P,re))}return!re.ended&&(re.length<re.highWaterMark||re.length===0)}function c(P,T,G,fe){T.flowing&&T.length===0&&!T.sync?(T.awaitDrain=0,P.emit("data",G)):(T.length+=T.objectMode?1:G.length,fe?T.buffer.unshift(G):T.buffer.push(G),T.needReadable&&d(P)),f(P,T)}function e(P,T){var G;return!l(T)&&typeof T!="string"&&T!==void 0&&!P.objectMode&&(G=new _("chunk",["string","Buffer","Uint8Array"],T)),G}L.prototype.isPaused=function(){return this._readableState.flowing===!1},L.prototype.setEncoding=function(P){C||(C=kr().StringDecoder);var T=new C(P);this._readableState.decoder=T,this._readableState.encoding=this._readableState.decoder.encoding;for(var G=this._readableState.buffer.head,fe="";G!==null;)fe+=T.write(G.data),G=G.next;return this._readableState.buffer.clear(),fe!==""&&this._readableState.buffer.push(fe),this._readableState.length=fe.length,this};var r=1073741824;function n(P){return P>=r?P=r:(P--,P|=P>>>1,P|=P>>>2,P|=P>>>4,P|=P>>>8,P|=P>>>16,P++),P}function a(P,T){return P<=0||T.length===0&&T.ended?0:T.objectMode?1:P!==P?T.flowing&&T.length?T.buffer.head.data.length:T.length:(P>T.highWaterMark&&(T.highWaterMark=n(P)),P<=T.length?P:T.ended?T.length:(T.needReadable=!0,0))}L.prototype.read=function(P){p("read",P),P=parseInt(P,10);var T=this._readableState,G=P;if(P!==0&&(T.emittedReadable=!1),P===0&&T.needReadable&&((T.highWaterMark!==0?T.length>=T.highWaterMark:T.length>0)||T.ended))return p("read: emitReadable",T.length,T.ended),T.length===0&&T.ended?z(this):d(this),null;if(P=a(P,T),P===0&&T.ended)return T.length===0&&z(this),null;var fe=T.needReadable;p("need readable",fe),(T.length===0||T.length-P<T.highWaterMark)&&(fe=!0,p("length less than watermark",fe)),T.ended||T.reading?(fe=!1,p("reading or ended",fe)):fe&&(p("do read"),T.reading=!0,T.sync=!0,T.length===0&&(T.needReadable=!0),this._read(T.highWaterMark),T.sync=!1,T.reading||(P=a(G,T)));var te;return P>0?te=N(P,T):te=null,te===null?(T.needReadable=T.length<=T.highWaterMark,P=0):(T.length-=P,T.awaitDrain=0),T.length===0&&(T.ended||(T.needReadable=!0),G!==P&&T.ended&&z(this)),te!==null&&this.emit("data",te),te};function u(P,T){if(p("onEofChunk"),!T.ended){if(T.decoder){var G=T.decoder.end();G&&G.length&&(T.buffer.push(G),T.length+=T.objectMode?1:G.length)}T.ended=!0,T.sync?d(P):(T.needReadable=!1,T.emittedReadable||(T.emittedReadable=!0,w(P)))}}function d(P){var T=P._readableState;p("emitReadable",T.needReadable,T.emittedReadable),T.needReadable=!1,T.emittedReadable||(p("emitReadable",T.flowing),T.emittedReadable=!0,xe.process$1.nextTick(w,P))}function w(P){var T=P._readableState;p("emitReadable_",T.destroyed,T.length,T.ended),!T.destroyed&&(T.length||T.ended)&&(P.emit("readable"),T.emittedReadable=!1),T.needReadable=!T.flowing&&!T.ended&&T.length<=T.highWaterMark,J(P)}function f(P,T){T.readingMore||(T.readingMore=!0,xe.process$1.nextTick(t,P,T))}function t(P,T){for(;!T.reading&&!T.ended&&(T.length<T.highWaterMark||T.flowing&&T.length===0);){var G=T.length;if(p("maybeReadMore read 0"),P.read(0),G===T.length)break}T.readingMore=!1}L.prototype._read=function(P){q(this,new B("_read()"))},L.prototype.pipe=function(P,T){var G=this,fe=this._readableState;switch(fe.pipesCount){case 0:fe.pipes=P;break;case 1:fe.pipes=[fe.pipes,P];break;default:fe.pipes.push(P);break}fe.pipesCount+=1,p("pipe count=%d opts=%j",fe.pipesCount,T);var te=(!T||T.end!==!1)&&P!==xe.process$1.stdout&&P!==xe.process$1.stderr,re=te?ie:ot;fe.endEmitted?xe.process$1.nextTick(re):G.once("end",re),P.on("unpipe",he);function he(be,me){p("onunpipe"),be===G&&me&&me.hasUnpiped===!1&&(me.hasUnpiped=!0,oe())}function ie(){p("onend"),P.end()}var ne=h(G);P.on("drain",ne);var pe=!1;function oe(){p("cleanup"),P.removeListener("close",de),P.removeListener("finish",ve),P.removeListener("drain",ne),P.removeListener("error",Re),P.removeListener("unpipe",he),G.removeListener("end",ie),G.removeListener("end",ot),G.removeListener("data",se),pe=!0,fe.awaitDrain&&(!P._writableState||P._writableState.needDrain)&&ne()}G.on("data",se);function se(be){p("ondata");var me=P.write(be);p("dest.write",me),me===!1&&((fe.pipesCount===1&&fe.pipes===P||fe.pipesCount>1&&k(fe.pipes,P)!==-1)&&!pe&&(p("false write response, pause",fe.awaitDrain),fe.awaitDrain++),G.pause())}function Re(be){p("onerror",be),ot(),P.removeListener("error",Re),g(P,"error")===0&&q(P,be)}Y(P,"error",Re);function de(){P.removeListener("finish",ve),ot()}P.once("close",de);function ve(){p("onfinish"),P.removeListener("close",de),ot()}P.once("finish",ve);function ot(){p("unpipe"),G.unpipe(P)}return P.emit("pipe",G),fe.flowing||(p("pipe resume"),G.resume()),P};function h(P){return function(){var G=P._readableState;p("pipeOnDrain",G.awaitDrain),G.awaitDrain&&G.awaitDrain--,G.awaitDrain===0&&g(P,"data")&&(G.flowing=!0,J(P))}}L.prototype.unpipe=function(P){var T=this._readableState,G={hasUnpiped:!1};if(T.pipesCount===0)return this;if(T.pipesCount===1)return P&&P!==T.pipes?this:(P||(P=T.pipes),T.pipes=null,T.pipesCount=0,T.flowing=!1,P&&P.emit("unpipe",this,G),this);if(!P){var fe=T.pipes,te=T.pipesCount;T.pipes=null,T.pipesCount=0,T.flowing=!1;for(var re=0;re<te;re++)fe[re].emit("unpipe",this,{hasUnpiped:!1});return this}var he=k(T.pipes,P);return he===-1?this:(T.pipes.splice(he,1),T.pipesCount-=1,T.pipesCount===1&&(T.pipes=T.pipes[0]),P.emit("unpipe",this,G),this)},L.prototype.on=function(P,T){var G=S.prototype.on.call(this,P,T),fe=this._readableState;return P==="data"?(fe.readableListening=this.listenerCount("readable")>0,fe.flowing!==!1&&this.resume()):P==="readable"&&!fe.endEmitted&&!fe.readableListening&&(fe.readableListening=fe.needReadable=!0,fe.flowing=!1,fe.emittedReadable=!1,p("on readable",fe.length,fe.reading),fe.length?d(this):fe.reading||xe.process$1.nextTick(j,this)),G},L.prototype.addListener=L.prototype.on,L.prototype.removeListener=function(P,T){var G=S.prototype.removeListener.call(this,P,T);return P==="readable"&&xe.process$1.nextTick(H,this),G},L.prototype.removeAllListeners=function(P){var T=S.prototype.removeAllListeners.apply(this,arguments);return(P==="readable"||P===void 0)&&xe.process$1.nextTick(H,this),T};function H(P){var T=P._readableState;T.readableListening=P.listenerCount("readable")>0,T.resumeScheduled&&!T.paused?T.flowing=!0:P.listenerCount("data")>0&&P.resume()}function j(P){p("readable nexttick read 0"),P.read(0)}L.prototype.resume=function(){var P=this._readableState;return P.flowing||(p("resume"),P.flowing=!P.readableListening,U(this,P)),P.paused=!1,this};function U(P,T){T.resumeScheduled||(T.resumeScheduled=!0,xe.process$1.nextTick(ee,P,T))}function ee(P,T){p("resume",T.reading),T.reading||P.read(0),T.resumeScheduled=!1,P.emit("resume"),J(P),T.flowing&&!T.reading&&P.read(0)}L.prototype.pause=function(){return p("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(p("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function J(P){var T=P._readableState;for(p("flow",T.flowing);T.flowing&&P.read()!==null;);}L.prototype.wrap=function(P){var T=this,G=this._readableState,fe=!1;P.on("end",function(){if(p("wrapped end"),G.decoder&&!G.ended){var he=G.decoder.end();he&&he.length&&T.push(he)}T.push(null)}),P.on("data",function(he){if(p("wrapped data"),G.decoder&&(he=G.decoder.write(he)),!(G.objectMode&&he==null)&&!(!G.objectMode&&(!he||!he.length))){var ie=T.push(he);ie||(fe=!0,P.pause())}});for(var te in P)this[te]===void 0&&typeof P[te]=="function"&&(this[te]=(function(ie){return function(){return P[ie].apply(P,arguments)}})(te));for(var re=0;re<O.length;re++)P.on(O[re],this.emit.bind(this,O[re]));return this._read=function(he){p("wrapped _read",he),fe&&(fe=!1,P.resume())},this},typeof Symbol=="function"&&(L.prototype[Symbol.asyncIterator]=function(){return R===void 0&&(R=n1()),R(this)}),Object.defineProperty(L.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(L.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(L.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(T){this._readableState&&(this._readableState.flowing=T)}}),L._fromList=N,Object.defineProperty(L.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function N(P,T){if(T.length===0)return null;var G;return T.objectMode?G=T.buffer.shift():!P||P>=T.length?(T.decoder?G=T.buffer.join(""):T.buffer.length===1?G=T.buffer.first():G=T.buffer.concat(T.length),T.buffer.clear()):G=T.buffer.consume(P,T.decoder),G}function z(P){var T=P._readableState;p("endReadable",T.endEmitted),T.endEmitted||(T.ended=!0,xe.process$1.nextTick(Z,T,P))}function Z(P,T){if(p("endReadableNT",P.endEmitted,P.length),!P.endEmitted&&P.length===0&&(P.endEmitted=!0,T.readable=!1,T.emit("end"),P.autoDestroy)){var G=T._writableState;(!G||G.autoDestroy&&G.finished)&&T.destroy()}}typeof Symbol=="function"&&(L.from=function(P,T){return D===void 0&&(D=a1()),D(L,P,T)});function k(P,T){for(var G=0,fe=P.length;G<fe;G++)if(P[G]===T)return G;return-1}return en}var tn,yo;function _f(){if(yo)return tn;yo=1,tn=b;var m=Sr().codes,g=m.ERR_METHOD_NOT_IMPLEMENTED,S=m.ERR_MULTIPLE_CALLBACK,s=m.ERR_TRANSFORM_ALREADY_TRANSFORMING,A=m.ERR_TRANSFORM_WITH_LENGTH_0,i=pr();dt()(b,i);function l(v,y){var x=this._transformState;x.transforming=!1;var M=x.writecb;if(M===null)return this.emit("error",new S);x.writechunk=null,x.writecb=null,y!=null&&this.push(y),M(v);var _=this._readableState;_.reading=!1,(_.needReadable||_.length<_.highWaterMark)&&this._read(_.highWaterMark)}function b(v){if(!(this instanceof b))return new b(v);i.call(this,v),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,v&&(typeof v.transform=="function"&&(this._transform=v.transform),typeof v.flush=="function"&&(this._flush=v.flush)),this.on("prefinish",p)}function p(){var v=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(y,x){o(v,y,x)}):o(this,null,null)}b.prototype.push=function(v,y){return this._transformState.needTransform=!1,i.prototype.push.call(this,v,y)},b.prototype._transform=function(v,y,x){x(new g("_transform()"))},b.prototype._write=function(v,y,x){var M=this._transformState;if(M.writecb=x,M.writechunk=v,M.writeencoding=y,!M.transforming){var _=this._readableState;(M.needTransform||_.needReadable||_.length<_.highWaterMark)&&this._read(_.highWaterMark)}},b.prototype._read=function(v){var y=this._transformState;y.writechunk!==null&&!y.transforming?(y.transforming=!0,this._transform(y.writechunk,y.writeencoding,y.afterTransform)):y.needTransform=!0},b.prototype._destroy=function(v,y){i.prototype._destroy.call(this,v,function(x){y(x)})};function o(v,y,x){if(y)return v.emit("error",y);if(x!=null&&v.push(x),v._writableState.length)throw new A;if(v._transformState.transforming)throw new s;return v.push(null)}return tn}var rn,go;function Yc(){if(go)return rn;go=1,rn=g;var m=_f();dt()(g,m);function g(S){if(!(this instanceof g))return new g(S);m.call(this,S)}return g.prototype._transform=function(S,s,A){A(null,S)},rn}var nn,xo;function Jc(){if(xo)return nn;xo=1;var m;function g(x){var M=!1;return function(){M||(M=!0,x.apply(void 0,arguments))}}var S=Sr().codes,s=S.ERR_MISSING_ARGS,A=S.ERR_STREAM_DESTROYED;function i(x){if(x)throw x}function l(x){return x.setHeader&&typeof x.abort=="function"}function b(x,M,_,E){E=g(E);var B=!1;x.on("close",function(){B=!0}),m===void 0&&(m=Di()),m(x,{readable:M,writable:_},function(C){if(C)return E(C);B=!0,E()});var F=!1;return function(C){if(!B&&!F){if(F=!0,l(x))return x.abort();if(typeof x.destroy=="function")return x.destroy();E(C||new A("pipe"))}}}function p(x){x()}function o(x,M){return x.pipe(M)}function v(x){return!x.length||typeof x[x.length-1]!="function"?i:x.pop()}function y(){for(var x=arguments.length,M=new Array(x),_=0;_<x;_++)M[_]=arguments[_];var E=v(M);if(Array.isArray(M[0])&&(M=M[0]),M.length<2)throw new s("streams");var B,F=M.map(function(C,R){var D=R<M.length-1,q=R>0;return b(C,D,q,function(O){B||(B=O),O&&F.forEach(p),!D&&(F.forEach(p),E(B))})});return M.reduce(o)}return nn=y,nn}var an,wo;function Ri(){if(wo)return an;wo=1,an=S;var m=Ar().EventEmitter,g=dt();g(S,m),S.Readable=Mf(),S.Writable=wf(),S.Duplex=pr(),S.Transform=_f(),S.PassThrough=Yc(),S.finished=Di(),S.pipeline=Jc(),S.Stream=S;function S(){m.call(this)}return S.prototype.pipe=function(s,A){var i=this;function l(M){s.writable&&s.write(M)===!1&&i.pause&&i.pause()}i.on("data",l);function b(){i.readable&&i.resume&&i.resume()}s.on("drain",b),!s._isStdio&&(!A||A.end!==!1)&&(i.on("end",o),i.on("close",v));var p=!1;function o(){p||(p=!0,s.end())}function v(){p||(p=!0,typeof s.destroy=="function"&&s.destroy())}function y(M){if(x(),m.listenerCount(this,"error")===0)throw M}i.on("error",y),s.on("error",y);function x(){i.removeListener("data",l),s.removeListener("drain",b),i.removeListener("end",o),i.removeListener("close",v),i.removeListener("error",y),s.removeListener("error",y),i.removeListener("end",x),i.removeListener("close",x),s.removeListener("close",x)}return i.on("end",x),i.on("close",x),s.on("close",x),s.emit("pipe",i),s},an}var fn,Mo;function Qc(){if(Mo)return fn;Mo=1;var m=Qd().Buffer,g=Ri().Transform,S=dt();function s(b){g.call(this),this._block=m.allocUnsafe(b),this._blockSize=b,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}S(s,g),s.prototype._transform=function(b,p,o){var v=null;try{this.update(b,p)}catch(y){v=y}o(v)},s.prototype._flush=function(b){var p=null;try{this.push(this.digest())}catch(o){p=o}b(p)};var A=typeof Uint8Array<"u",i=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(m.prototype instanceof Uint8Array||m.TYPED_ARRAY_SUPPORT);function l(b,p){if(b instanceof m)return b;if(typeof b=="string")return m.from(b,p);if(i&&ArrayBuffer.isView(b)){if(b.byteLength===0)return m.alloc(0);var o=m.from(b.buffer,b.byteOffset,b.byteLength);if(o.byteLength===b.byteLength)return o}if(A&&b instanceof Uint8Array||m.isBuffer(b)&&b.constructor&&typeof b.constructor.isBuffer=="function"&&b.constructor.isBuffer(b))return m.from(b);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}return s.prototype.update=function(b,p){if(this._finalized)throw new Error("Digest already called");b=l(b,p);for(var o=this._block,v=0;this._blockOffset+b.length-v>=this._blockSize;){for(var y=this._blockOffset;y<this._blockSize;)o[y++]=b[v++];this._update(),this._blockOffset=0}for(;v<b.length;)o[this._blockOffset++]=b[v++];for(var x=0,M=b.length*8;M>0;++x)this._length[x]+=M,M=this._length[x]/4294967296|0,M>0&&(this._length[x]-=4294967296*M);return this},s.prototype._update=function(){throw new Error("_update is not implemented")},s.prototype.digest=function(b){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var p=this._digest();b!==void 0&&(p=p.toString(b)),this._block.fill(0),this._blockOffset=0;for(var o=0;o<4;++o)this._length[o]=0;return p},s.prototype._digest=function(){throw new Error("_digest is not implemented")},fn=s,fn}var Zr={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var _o;function f1(){return _o||(_o=1,(function(m,g){var S=Qe.requireDist(),s=S.Buffer;function A(l,b){for(var p in l)b[p]=l[p]}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?m.exports=S:(A(S,g),g.Buffer=i);function i(l,b,p){return s(l,b,p)}i.prototype=Object.create(s.prototype),A(s,i),i.from=function(l,b,p){if(typeof l=="number")throw new TypeError("Argument must not be a number");return s(l,b,p)},i.alloc=function(l,b,p){if(typeof l!="number")throw new TypeError("Argument must be a number");var o=s(l);return b!==void 0?typeof p=="string"?o.fill(b,p):o.fill(b):o.fill(0),o},i.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return s(l)},i.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return S.SlowBuffer(l)}})(Zr,Zr.exports)),Zr.exports}var on,Ao;function Af(){if(Ao)return on;Ao=1;var m=dt(),g=Qc(),S=f1().Buffer,s=new Array(16);function A(){g.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}m(A,g),A.prototype._update=function(){for(var v=s,y=0;y<16;++y)v[y]=this._block.readInt32LE(y*4);var x=this._a,M=this._b,_=this._c,E=this._d;x=l(x,M,_,E,v[0],3614090360,7),E=l(E,x,M,_,v[1],3905402710,12),_=l(_,E,x,M,v[2],606105819,17),M=l(M,_,E,x,v[3],3250441966,22),x=l(x,M,_,E,v[4],4118548399,7),E=l(E,x,M,_,v[5],1200080426,12),_=l(_,E,x,M,v[6],2821735955,17),M=l(M,_,E,x,v[7],4249261313,22),x=l(x,M,_,E,v[8],1770035416,7),E=l(E,x,M,_,v[9],2336552879,12),_=l(_,E,x,M,v[10],4294925233,17),M=l(M,_,E,x,v[11],2304563134,22),x=l(x,M,_,E,v[12],1804603682,7),E=l(E,x,M,_,v[13],4254626195,12),_=l(_,E,x,M,v[14],2792965006,17),M=l(M,_,E,x,v[15],1236535329,22),x=b(x,M,_,E,v[1],4129170786,5),E=b(E,x,M,_,v[6],3225465664,9),_=b(_,E,x,M,v[11],643717713,14),M=b(M,_,E,x,v[0],3921069994,20),x=b(x,M,_,E,v[5],3593408605,5),E=b(E,x,M,_,v[10],38016083,9),_=b(_,E,x,M,v[15],3634488961,14),M=b(M,_,E,x,v[4],3889429448,20),x=b(x,M,_,E,v[9],568446438,5),E=b(E,x,M,_,v[14],3275163606,9),_=b(_,E,x,M,v[3],4107603335,14),M=b(M,_,E,x,v[8],1163531501,20),x=b(x,M,_,E,v[13],2850285829,5),E=b(E,x,M,_,v[2],4243563512,9),_=b(_,E,x,M,v[7],1735328473,14),M=b(M,_,E,x,v[12],2368359562,20),x=p(x,M,_,E,v[5],4294588738,4),E=p(E,x,M,_,v[8],2272392833,11),_=p(_,E,x,M,v[11],1839030562,16),M=p(M,_,E,x,v[14],4259657740,23),x=p(x,M,_,E,v[1],2763975236,4),E=p(E,x,M,_,v[4],1272893353,11),_=p(_,E,x,M,v[7],4139469664,16),M=p(M,_,E,x,v[10],3200236656,23),x=p(x,M,_,E,v[13],681279174,4),E=p(E,x,M,_,v[0],3936430074,11),_=p(_,E,x,M,v[3],3572445317,16),M=p(M,_,E,x,v[6],76029189,23),x=p(x,M,_,E,v[9],3654602809,4),E=p(E,x,M,_,v[12],3873151461,11),_=p(_,E,x,M,v[15],530742520,16),M=p(M,_,E,x,v[2],3299628645,23),x=o(x,M,_,E,v[0],4096336452,6),E=o(E,x,M,_,v[7],1126891415,10),_=o(_,E,x,M,v[14],2878612391,15),M=o(M,_,E,x,v[5],4237533241,21),x=o(x,M,_,E,v[12],1700485571,6),E=o(E,x,M,_,v[3],2399980690,10),_=o(_,E,x,M,v[10],4293915773,15),M=o(M,_,E,x,v[1],2240044497,21),x=o(x,M,_,E,v[8],1873313359,6),E=o(E,x,M,_,v[15],4264355552,10),_=o(_,E,x,M,v[6],2734768916,15),M=o(M,_,E,x,v[13],1309151649,21),x=o(x,M,_,E,v[4],4149444226,6),E=o(E,x,M,_,v[11],3174756917,10),_=o(_,E,x,M,v[2],718787259,15),M=o(M,_,E,x,v[9],3951481745,21),this._a=this._a+x|0,this._b=this._b+M|0,this._c=this._c+_|0,this._d=this._d+E|0},A.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 v=S.allocUnsafe(16);return v.writeInt32LE(this._a,0),v.writeInt32LE(this._b,4),v.writeInt32LE(this._c,8),v.writeInt32LE(this._d,12),v};function i(v,y){return v<<y|v>>>32-y}function l(v,y,x,M,_,E,B){return i(v+(y&x|~y&M)+_+E|0,B)+y|0}function b(v,y,x,M,_,E,B){return i(v+(y&M|x&~M)+_+E|0,B)+y|0}function p(v,y,x,M,_,E,B){return i(v+(y^x^M)+_+E|0,B)+y|0}function o(v,y,x,M,_,E,B){return i(v+(x^(y|~M))+_+E|0,B)+y|0}return on=A,on}var sn,Eo;function el(){if(Eo)return sn;Eo=1;var m=Qe.requireDist().Buffer,g=dt(),S=Qc(),s=new Array(16),A=[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],i=[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],l=[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],b=[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],p=[0,1518500249,1859775393,2400959708,2840853838],o=[1352829926,1548603684,1836072691,2053994217,0];function v(){S.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}g(v,S),v.prototype._update=function(){for(var F=s,C=0;C<16;++C)F[C]=this._block.readInt32LE(C*4);for(var R=this._a|0,D=this._b|0,q=this._c|0,O=this._d|0,Y=this._e|0,Q=this._a|0,L=this._b|0,X=this._c|0,c=this._d|0,e=this._e|0,r=0;r<80;r+=1){var n,a;r<16?(n=x(R,D,q,O,Y,F[A[r]],p[0],l[r]),a=B(Q,L,X,c,e,F[i[r]],o[0],b[r])):r<32?(n=M(R,D,q,O,Y,F[A[r]],p[1],l[r]),a=E(Q,L,X,c,e,F[i[r]],o[1],b[r])):r<48?(n=_(R,D,q,O,Y,F[A[r]],p[2],l[r]),a=_(Q,L,X,c,e,F[i[r]],o[2],b[r])):r<64?(n=E(R,D,q,O,Y,F[A[r]],p[3],l[r]),a=M(Q,L,X,c,e,F[i[r]],o[3],b[r])):(n=B(R,D,q,O,Y,F[A[r]],p[4],l[r]),a=x(Q,L,X,c,e,F[i[r]],o[4],b[r])),R=Y,Y=O,O=y(q,10),q=D,D=n,Q=e,e=c,c=y(X,10),X=L,L=a}var u=this._b+q+c|0;this._b=this._c+O+e|0,this._c=this._d+Y+Q|0,this._d=this._e+R+L|0,this._e=this._a+D+X|0,this._a=u},v.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 F=m.alloc?m.alloc(20):new m(20);return F.writeInt32LE(this._a,0),F.writeInt32LE(this._b,4),F.writeInt32LE(this._c,8),F.writeInt32LE(this._d,12),F.writeInt32LE(this._e,16),F};function y(F,C){return F<<C|F>>>32-C}function x(F,C,R,D,q,O,Y,Q){return y(F+(C^R^D)+O+Y|0,Q)+q|0}function M(F,C,R,D,q,O,Y,Q){return y(F+(C&R|~C&D)+O+Y|0,Q)+q|0}function _(F,C,R,D,q,O,Y,Q){return y(F+((C|~R)^D)+O+Y|0,Q)+q|0}function E(F,C,R,D,q,O,Y,Q){return y(F+(C&D|R&~D)+O+Y|0,Q)+q|0}function B(F,C,R,D,q,O,Y,Q){return y(F+(C^(R|~D))+O+Y|0,Q)+q|0}return sn=v,sn}var hn={exports:{}},Xr={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var So;function br(){return So||(So=1,(function(m,g){var S=Qe.requireDist(),s=S.Buffer;function A(l,b){for(var p in l)b[p]=l[p]}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?m.exports=S:(A(S,g),g.Buffer=i);function i(l,b,p){return s(l,b,p)}i.prototype=Object.create(s.prototype),A(s,i),i.from=function(l,b,p){if(typeof l=="number")throw new TypeError("Argument must not be a number");return s(l,b,p)},i.alloc=function(l,b,p){if(typeof l!="number")throw new TypeError("Argument must be a number");var o=s(l);return b!==void 0?typeof p=="string"?o.fill(b,p):o.fill(b):o.fill(0),o},i.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return s(l)},i.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return S.SlowBuffer(l)}})(Xr,Xr.exports)),Xr.exports}var Yr={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var Bo;function o1(){return Bo||(Bo=1,(function(m,g){var S=Qe.requireDist(),s=S.Buffer;function A(l,b){for(var p in l)b[p]=l[p]}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?m.exports=S:(A(S,g),g.Buffer=i);function i(l,b,p){return s(l,b,p)}i.prototype=Object.create(s.prototype),A(s,i),i.from=function(l,b,p){if(typeof l=="number")throw new TypeError("Argument must not be a number");return s(l,b,p)},i.alloc=function(l,b,p){if(typeof l!="number")throw new TypeError("Argument must be a number");var o=s(l);return b!==void 0?typeof p=="string"?o.fill(b,p):o.fill(b):o.fill(0),o},i.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return s(l)},i.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return S.SlowBuffer(l)}})(Yr,Yr.exports)),Yr.exports}var un,Fo;function s1(){if(Fo)return un;Fo=1;var m={}.toString;return un=Array.isArray||function(g){return m.call(g)=="[object Array]"},un}var cn,Co;function Br(){return Co||(Co=1,cn=TypeError),cn}var ln,Do;function Ef(){return Do||(Do=1,ln=Object),ln}var dn,Ro;function h1(){return Ro||(Ro=1,dn=Error),dn}var pn,To;function u1(){return To||(To=1,pn=EvalError),pn}var vn,Io;function c1(){return Io||(Io=1,vn=RangeError),vn}var bn,ko;function l1(){return ko||(ko=1,bn=ReferenceError),bn}var mn,Po;function tl(){return Po||(Po=1,mn=SyntaxError),mn}var yn,No;function d1(){return No||(No=1,yn=URIError),yn}var gn,Oo;function p1(){return Oo||(Oo=1,gn=Math.abs),gn}var xn,qo;function v1(){return qo||(qo=1,xn=Math.floor),xn}var wn,Uo;function b1(){return Uo||(Uo=1,wn=Math.max),wn}var Mn,Lo;function m1(){return Lo||(Lo=1,Mn=Math.min),Mn}var _n,Ho;function y1(){return Ho||(Ho=1,_n=Math.pow),_n}var An,$o;function g1(){return $o||($o=1,An=Math.round),An}var En,jo;function x1(){return jo||(jo=1,En=Number.isNaN||function(g){return g!==g}),En}var Sn,zo;function w1(){if(zo)return Sn;zo=1;var m=x1();return Sn=function(S){return m(S)||S===0?S:S<0?-1:1},Sn}var Bn,Ko;function M1(){return Ko||(Ko=1,Bn=Object.getOwnPropertyDescriptor),Bn}var Fn,Wo;function Fr(){if(Wo)return Fn;Wo=1;var m=M1();if(m)try{m([],"length")}catch{m=null}return Fn=m,Fn}var Cn,Go;function Ti(){if(Go)return Cn;Go=1;var m=Object.defineProperty||!1;if(m)try{m({},"a",{value:1})}catch{m=!1}return Cn=m,Cn}var Dn,Vo;function Sf(){return Vo||(Vo=1,Dn=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var g={},S=Symbol("test"),s=Object(S);if(typeof S=="string"||Object.prototype.toString.call(S)!=="[object Symbol]"||Object.prototype.toString.call(s)!=="[object Symbol]")return!1;var A=42;g[S]=A;for(var i in g)return!1;if(typeof Object.keys=="function"&&Object.keys(g).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(g).length!==0)return!1;var l=Object.getOwnPropertySymbols(g);if(l.length!==1||l[0]!==S||!Object.prototype.propertyIsEnumerable.call(g,S))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var b=Object.getOwnPropertyDescriptor(g,S);if(b.value!==A||b.enumerable!==!0)return!1}return!0}),Dn}var Rn,Zo;function _1(){if(Zo)return Rn;Zo=1;var m=typeof Symbol<"u"&&Symbol,g=Sf();return Rn=function(){return typeof m!="function"||typeof Symbol!="function"||typeof m("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:g()},Rn}var Tn,Xo;function rl(){return Xo||(Xo=1,Tn=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Tn}var In,Yo;function il(){if(Yo)return In;Yo=1;var m=Ef();return In=m.getPrototypeOf||null,In}var kn,Jo;function A1(){if(Jo)return kn;Jo=1;var m="Function.prototype.bind called on incompatible ",g=Object.prototype.toString,S=Math.max,s="[object Function]",A=function(p,o){for(var v=[],y=0;y<p.length;y+=1)v[y]=p[y];for(var x=0;x<o.length;x+=1)v[x+p.length]=o[x];return v},i=function(p,o){for(var v=[],y=o,x=0;y<p.length;y+=1,x+=1)v[x]=p[y];return v},l=function(b,p){for(var o="",v=0;v<b.length;v+=1)o+=b[v],v+1<b.length&&(o+=p);return o};return kn=function(p){var o=this;if(typeof o!="function"||g.apply(o)!==s)throw new TypeError(m+o);for(var v=i(arguments,1),y,x=function(){if(this instanceof y){var F=o.apply(this,A(v,arguments));return Object(F)===F?F:this}return o.apply(p,A(v,arguments))},M=S(0,o.length-v.length),_=[],E=0;E<M;E++)_[E]="$"+E;if(y=Function("binder","return function ("+l(_,",")+"){ return binder.apply(this,arguments); }")(x),o.prototype){var B=function(){};B.prototype=o.prototype,y.prototype=new B,B.prototype=null}return y},kn}var Pn,Qo;function Nr(){if(Qo)return Pn;Qo=1;var m=A1();return Pn=Function.prototype.bind||m,Pn}var Nn,es;function Bf(){return es||(es=1,Nn=Function.prototype.call),Nn}var On,ts;function Ff(){return ts||(ts=1,On=Function.prototype.apply),On}var qn,rs;function E1(){return rs||(rs=1,qn=typeof Reflect<"u"&&Reflect&&Reflect.apply),qn}var Un,is;function nl(){if(is)return Un;is=1;var m=Nr(),g=Ff(),S=Bf(),s=E1();return Un=s||m.call(S,g),Un}var Ln,ns;function Cf(){if(ns)return Ln;ns=1;var m=Nr(),g=Br(),S=Bf(),s=nl();return Ln=function(i){if(i.length<1||typeof i[0]!="function")throw new g("a function is required");return s(m,S,i)},Ln}var Hn,as;function S1(){if(as)return Hn;as=1;var m=Cf(),g=Fr(),S;try{S=[].__proto__===Array.prototype}catch(l){if(!l||typeof l!="object"||!("code"in l)||l.code!=="ERR_PROTO_ACCESS")throw l}var s=!!S&&g&&g(Object.prototype,"__proto__"),A=Object,i=A.getPrototypeOf;return Hn=s&&typeof s.get=="function"?m([s.get]):typeof i=="function"?function(b){return i(b==null?b:A(b))}:!1,Hn}var $n,fs;function Df(){if(fs)return $n;fs=1;var m=rl(),g=il(),S=S1();return $n=m?function(A){return m(A)}:g?function(A){if(!A||typeof A!="object"&&typeof A!="function")throw new TypeError("getProto: not an object");return g(A)}:S?function(A){return S(A)}:null,$n}var jn,os;function al(){if(os)return jn;os=1;var m=Function.prototype.call,g=Object.prototype.hasOwnProperty,S=Nr();return jn=S.call(m,g),jn}var zn,ss;function Rf(){if(ss)return zn;ss=1;var m,g=Ef(),S=h1(),s=u1(),A=c1(),i=l1(),l=tl(),b=Br(),p=d1(),o=p1(),v=v1(),y=b1(),x=m1(),M=y1(),_=g1(),E=w1(),B=Function,F=function(Z){try{return B('"use strict"; return ('+Z+").constructor;")()}catch{}},C=Fr(),R=Ti(),D=function(){throw new b},q=C?(function(){try{return arguments.callee,D}catch{try{return C(arguments,"callee").get}catch{return D}}})():D,O=_1()(),Y=Df(),Q=il(),L=rl(),X=Ff(),c=Bf(),e={},r=typeof Uint8Array>"u"||!Y?m:Y(Uint8Array),n={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?m:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?m:ArrayBuffer,"%ArrayIteratorPrototype%":O&&Y?Y([][Symbol.iterator]()):m,"%AsyncFromSyncIteratorPrototype%":m,"%AsyncFunction%":e,"%AsyncGenerator%":e,"%AsyncGeneratorFunction%":e,"%AsyncIteratorPrototype%":e,"%Atomics%":typeof Atomics>"u"?m:Atomics,"%BigInt%":typeof BigInt>"u"?m:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?m:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?m:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?m:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":S,"%eval%":eval,"%EvalError%":s,"%Float16Array%":typeof Float16Array>"u"?m:Float16Array,"%Float32Array%":typeof Float32Array>"u"?m:Float32Array,"%Float64Array%":typeof Float64Array>"u"?m:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?m:FinalizationRegistry,"%Function%":B,"%GeneratorFunction%":e,"%Int8Array%":typeof Int8Array>"u"?m:Int8Array,"%Int16Array%":typeof Int16Array>"u"?m:Int16Array,"%Int32Array%":typeof Int32Array>"u"?m:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":O&&Y?Y(Y([][Symbol.iterator]())):m,"%JSON%":typeof JSON=="object"?JSON:m,"%Map%":typeof Map>"u"?m:Map,"%MapIteratorPrototype%":typeof Map>"u"||!O||!Y?m:Y(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":g,"%Object.getOwnPropertyDescriptor%":C,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?m:Promise,"%Proxy%":typeof Proxy>"u"?m:Proxy,"%RangeError%":A,"%ReferenceError%":i,"%Reflect%":typeof Reflect>"u"?m:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?m:Set,"%SetIteratorPrototype%":typeof Set>"u"||!O||!Y?m:Y(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?m:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":O&&Y?Y(""[Symbol.iterator]()):m,"%Symbol%":O?Symbol:m,"%SyntaxError%":l,"%ThrowTypeError%":q,"%TypedArray%":r,"%TypeError%":b,"%Uint8Array%":typeof Uint8Array>"u"?m:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?m:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?m:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?m:Uint32Array,"%URIError%":p,"%WeakMap%":typeof WeakMap>"u"?m:WeakMap,"%WeakRef%":typeof WeakRef>"u"?m:WeakRef,"%WeakSet%":typeof WeakSet>"u"?m:WeakSet,"%Function.prototype.call%":c,"%Function.prototype.apply%":X,"%Object.defineProperty%":R,"%Object.getPrototypeOf%":Q,"%Math.abs%":o,"%Math.floor%":v,"%Math.max%":y,"%Math.min%":x,"%Math.pow%":M,"%Math.round%":_,"%Math.sign%":E,"%Reflect.getPrototypeOf%":L};if(Y)try{null.error}catch(Z){var a=Y(Y(Z));n["%Error.prototype%"]=a}var u=function Z(k){var P;if(k==="%AsyncFunction%")P=F("async function () {}");else if(k==="%GeneratorFunction%")P=F("function* () {}");else if(k==="%AsyncGeneratorFunction%")P=F("async function* () {}");else if(k==="%AsyncGenerator%"){var T=Z("%AsyncGeneratorFunction%");T&&(P=T.prototype)}else if(k==="%AsyncIteratorPrototype%"){var G=Z("%AsyncGenerator%");G&&Y&&(P=Y(G.prototype))}return n[k]=P,P},d={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},w=Nr(),f=al(),t=w.call(c,Array.prototype.concat),h=w.call(X,Array.prototype.splice),H=w.call(c,String.prototype.replace),j=w.call(c,String.prototype.slice),U=w.call(c,RegExp.prototype.exec),ee=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,J=/\\(\\)?/g,N=function(k){var P=j(k,0,1),T=j(k,-1);if(P==="%"&&T!=="%")throw new l("invalid intrinsic syntax, expected closing `%`");if(T==="%"&&P!=="%")throw new l("invalid intrinsic syntax, expected opening `%`");var G=[];return H(k,ee,function(fe,te,re,he){G[G.length]=re?H(he,J,"$1"):te||fe}),G},z=function(k,P){var T=k,G;if(f(d,T)&&(G=d[T],T="%"+G[0]+"%"),f(n,T)){var fe=n[T];if(fe===e&&(fe=u(T)),typeof fe>"u"&&!P)throw new b("intrinsic "+k+" exists, but is not available. Please file an issue!");return{alias:G,name:T,value:fe}}throw new l("intrinsic "+k+" does not exist!")};return zn=function(k,P){if(typeof k!="string"||k.length===0)throw new b("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof P!="boolean")throw new b('"allowMissing" argument must be a boolean');if(U(/^%?[^%]*%?$/,k)===null)throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var T=N(k),G=T.length>0?T[0]:"",fe=z("%"+G+"%",P),te=fe.name,re=fe.value,he=!1,ie=fe.alias;ie&&(G=ie[0],h(T,t([0,1],ie)));for(var ne=1,pe=!0;ne<T.length;ne+=1){var oe=T[ne],se=j(oe,0,1),Re=j(oe,-1);if((se==='"'||se==="'"||se==="`"||Re==='"'||Re==="'"||Re==="`")&&se!==Re)throw new l("property names with quotes must have matching quotes");if((oe==="constructor"||!pe)&&(he=!0),G+="."+oe,te="%"+G+"%",f(n,te))re=n[te];else if(re!=null){if(!(oe in re)){if(!P)throw new b("base intrinsic for "+k+" exists, but the property is not available.");return}if(C&&ne+1>=T.length){var de=C(re,oe);pe=!!de,pe&&"get"in de&&!("originalValue"in de.get)?re=de.get:re=re[oe]}else pe=f(re,oe),re=re[oe];pe&&!he&&(n[te]=re)}}return re},zn}var Kn,hs;function Tf(){if(hs)return Kn;hs=1;var m=Rf(),g=Cf(),S=g([m("%String.prototype.indexOf%")]);return Kn=function(A,i){var l=m(A,!!i);return typeof l=="function"&&S(A,".prototype.")>-1?g([l]):l},Kn}var Wn,us;function B1(){if(us)return Wn;us=1;var m=Function.prototype.toString,g=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,S,s;if(typeof g=="function"&&typeof Object.defineProperty=="function")try{S=Object.defineProperty({},"length",{get:function(){throw s}}),s={},g(function(){throw 42},null,S)}catch(C){C!==s&&(g=null)}else g=null;var A=/^\s*class\b/,i=function(R){try{var D=m.call(R);return A.test(D)}catch{return!1}},l=function(R){try{return i(R)?!1:(m.call(R),!0)}catch{return!1}},b=Object.prototype.toString,p="[object Object]",o="[object Function]",v="[object GeneratorFunction]",y="[object HTMLAllCollection]",x="[object HTML document.all class]",M="[object HTMLCollection]",_=typeof Symbol=="function"&&!!Symbol.toStringTag,E=!(0 in[,]),B=function(){return!1};if(typeof document=="object"){var F=document.all;b.call(F)===b.call(document.all)&&(B=function(R){if((E||!R)&&(typeof R>"u"||typeof R=="object"))try{var D=b.call(R);return(D===y||D===x||D===M||D===p)&&R("")==null}catch{}return!1})}return Wn=g?function(R){if(B(R))return!0;if(!R||typeof R!="function"&&typeof R!="object")return!1;try{g(R,null,S)}catch(D){if(D!==s)return!1}return!i(R)&&l(R)}:function(R){if(B(R))return!0;if(!R||typeof R!="function"&&typeof R!="object")return!1;if(_)return l(R);if(i(R))return!1;var D=b.call(R);return D!==o&&D!==v&&!/^\[object HTML/.test(D)?!1:l(R)},Wn}var Gn,cs;function F1(){if(cs)return Gn;cs=1;var m=B1(),g=Object.prototype.toString,S=Object.prototype.hasOwnProperty,s=function(p,o,v){for(var y=0,x=p.length;y<x;y++)S.call(p,y)&&(v==null?o(p[y],y,p):o.call(v,p[y],y,p))},A=function(p,o,v){for(var y=0,x=p.length;y<x;y++)v==null?o(p.charAt(y),y,p):o.call(v,p.charAt(y),y,p)},i=function(p,o,v){for(var y in p)S.call(p,y)&&(v==null?o(p[y],y,p):o.call(v,p[y],y,p))};function l(b){return g.call(b)==="[object Array]"}return Gn=function(p,o,v){if(!m(o))throw new TypeError("iterator must be a function");var y;arguments.length>=3&&(y=v),l(p)?s(p,o,y):typeof p=="string"?A(p,o,y):i(p,o,y)},Gn}var Vn,ls;function C1(){return ls||(ls=1,Vn=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),Vn}var Zn,ds;function D1(){if(ds)return Zn;ds=1;var m=C1(),g=typeof globalThis>"u"?Qe.commonjsGlobal:globalThis;return Zn=function(){for(var s=[],A=0;A<m.length;A++)typeof g[m[A]]=="function"&&(s[s.length]=m[A]);return s},Zn}var Xn={exports:{}},Yn,ps;function fl(){if(ps)return Yn;ps=1;var m=Ti(),g=tl(),S=Br(),s=Fr();return Yn=function(i,l,b){if(!i||typeof i!="object"&&typeof i!="function")throw new S("`obj` must be an object or a function`");if(typeof l!="string"&&typeof l!="symbol")throw new S("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new S("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new S("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new S("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new S("`loose`, if provided, must be a boolean");var p=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,v=arguments.length>5?arguments[5]:null,y=arguments.length>6?arguments[6]:!1,x=!!s&&s(i,l);if(m)m(i,l,{configurable:v===null&&x?x.configurable:!v,enumerable:p===null&&x?x.enumerable:!p,value:b,writable:o===null&&x?x.writable:!o});else if(y||!p&&!o&&!v)i[l]=b;else throw new g("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Yn}var Jn,vs;function ol(){if(vs)return Jn;vs=1;var m=Ti(),g=function(){return!!m};return g.hasArrayLengthDefineBug=function(){if(!m)return null;try{return m([],"length",{value:1}).length!==1}catch{return!0}},Jn=g,Jn}var Qn,bs;function R1(){if(bs)return Qn;bs=1;var m=Rf(),g=fl(),S=ol()(),s=Fr(),A=Br(),i=m("%Math.floor%");return Qn=function(b,p){if(typeof b!="function")throw new A("`fn` is not a function");if(typeof p!="number"||p<0||p>4294967295||i(p)!==p)throw new A("`length` must be a positive 32-bit integer");var o=arguments.length>2&&!!arguments[2],v=!0,y=!0;if("length"in b&&s){var x=s(b,"length");x&&!x.configurable&&(v=!1),x&&!x.writable&&(y=!1)}return(v||y||!o)&&(S?g(b,"length",p,!0,!0):g(b,"length",p)),b},Qn}var ea,ms;function T1(){if(ms)return ea;ms=1;var m=Nr(),g=Ff(),S=nl();return ea=function(){return S(m,g,arguments)},ea}var ys;function sl(){return ys||(ys=1,(function(m){var g=R1(),S=Ti(),s=Cf(),A=T1();m.exports=function(l){var b=s(arguments),p=l.length-(arguments.length-1);return g(b,1+(p>0?p:0),!0)},S?S(m.exports,"apply",{value:A}):m.exports.apply=A})(Xn)),Xn.exports}var ta,gs;function hl(){if(gs)return ta;gs=1;var m=Sf();return ta=function(){return m()&&!!Symbol.toStringTag},ta}var ra,xs;function ul(){if(xs)return ra;xs=1;var m=F1(),g=D1(),S=sl(),s=Tf(),A=Fr(),i=Df(),l=s("Object.prototype.toString"),b=hl()(),p=typeof globalThis>"u"?Qe.commonjsGlobal:globalThis,o=g(),v=s("String.prototype.slice"),y=s("Array.prototype.indexOf",!0)||function(B,F){for(var C=0;C<B.length;C+=1)if(B[C]===F)return C;return-1},x={__proto__:null};b&&A&&i?m(o,function(E){var B=new p[E];if(Symbol.toStringTag in B&&i){var F=i(B),C=A(F,Symbol.toStringTag);if(!C&&F){var R=i(F);C=A(R,Symbol.toStringTag)}x["$"+E]=S(C.get)}}):m(o,function(E){var B=new p[E],F=B.slice||B.set;F&&(x["$"+E]=S(F))});var M=function(B){var F=!1;return m(x,function(C,R){if(!F)try{"$"+C(B)===R&&(F=v(R,1))}catch{}}),F},_=function(B){var F=!1;return m(x,function(C,R){if(!F)try{C(B),F=v(R,1)}catch{}}),F};return ra=function(B){if(!B||typeof B!="object")return!1;if(!b){var F=v(l(B),8,-1);return y(o,F)>-1?F:F!=="Object"?!1:_(B)}return A?M(B):null},ra}var ia,ws;function cl(){if(ws)return ia;ws=1;var m=ul();return ia=function(S){return!!m(S)},ia}var na,Ms;function I1(){if(Ms)return na;Ms=1;var m=Br(),g=Tf(),S=g("TypedArray.prototype.buffer",!0),s=cl();return na=S||function(i){if(!s(i))throw new m("Not a Typed Array");return i.buffer},na}var aa,_s;function ll(){if(_s)return aa;_s=1;var m=o1().Buffer,g=s1(),S=I1(),s=ArrayBuffer.isView||function(p){try{return S(p),!0}catch{return!1}},A=typeof Uint8Array<"u",i=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",l=i&&(m.prototype instanceof Uint8Array||m.TYPED_ARRAY_SUPPORT);return aa=function(p,o){if(p instanceof m)return p;if(typeof p=="string")return m.from(p,o);if(i&&s(p)){if(p.byteLength===0)return m.alloc(0);if(l){var v=m.from(p.buffer,p.byteOffset,p.byteLength);if(v.byteLength===p.byteLength)return v}var y=p instanceof Uint8Array?p:new Uint8Array(p.buffer,p.byteOffset,p.byteLength),x=m.from(y);if(x.length===p.byteLength)return x}if(A&&p instanceof Uint8Array)return m.from(p);var M=g(p);if(M)for(var _=0;_<p.length;_+=1){var E=p[_];if(typeof E!="number"||E<0||E>255||~~E!==E)throw new RangeError("Array items must be numbers in the range 0-255.")}if(M||m.isBuffer(p)&&p.constructor&&typeof p.constructor.isBuffer=="function"&&p.constructor.isBuffer(p))return m.from(p);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')},aa}var fa,As;function Cr(){if(As)return fa;As=1;var m=br().Buffer,g=ll();function S(s,A){this._block=m.alloc(s),this._finalSize=A,this._blockSize=s,this._len=0}return S.prototype.update=function(s,A){s=g(s,A||"utf8");for(var i=this._block,l=this._blockSize,b=s.length,p=this._len,o=0;o<b;){for(var v=p%l,y=Math.min(b-o,l-v),x=0;x<y;x++)i[v+x]=s[o+x];p+=y,o+=y,p%l===0&&this._update(i)}return this._len+=b,this},S.prototype.digest=function(s){var A=this._len%this._blockSize;this._block[A]=128,this._block.fill(0,A+1),A>=this._finalSize&&(this._update(this._block),this._block.fill(0));var i=this._len*8;if(i<=4294967295)this._block.writeUInt32BE(i,this._blockSize-4);else{var l=(i&4294967295)>>>0,b=(i-l)/4294967296;this._block.writeUInt32BE(b,this._blockSize-8),this._block.writeUInt32BE(l,this._blockSize-4)}this._update(this._block);var p=this._hash();return s?p.toString(s):p},S.prototype._update=function(){throw new Error("_update must be implemented by subclass")},fa=S,fa}var oa,Es;function k1(){if(Es)return oa;Es=1;var m=dt(),g=Cr(),S=br().Buffer,s=[1518500249,1859775393,-1894007588,-899497514],A=new Array(80);function i(){this.init(),this._w=A,g.call(this,64,56)}m(i,g),i.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function l(o){return o<<5|o>>>27}function b(o){return o<<30|o>>>2}function p(o,v,y,x){return o===0?v&y|~v&x:o===2?v&y|v&x|y&x:v^y^x}return i.prototype._update=function(o){for(var v=this._w,y=this._a|0,x=this._b|0,M=this._c|0,_=this._d|0,E=this._e|0,B=0;B<16;++B)v[B]=o.readInt32BE(B*4);for(;B<80;++B)v[B]=v[B-3]^v[B-8]^v[B-14]^v[B-16];for(var F=0;F<80;++F){var C=~~(F/20),R=l(y)+p(C,x,M,_)+E+v[F]+s[C]|0;E=_,_=M,M=b(x),x=y,y=R}this._a=y+this._a|0,this._b=x+this._b|0,this._c=M+this._c|0,this._d=_+this._d|0,this._e=E+this._e|0},i.prototype._hash=function(){var o=S.allocUnsafe(20);return o.writeInt32BE(this._a|0,0),o.writeInt32BE(this._b|0,4),o.writeInt32BE(this._c|0,8),o.writeInt32BE(this._d|0,12),o.writeInt32BE(this._e|0,16),o},oa=i,oa}var sa,Ss;function P1(){if(Ss)return sa;Ss=1;var m=dt(),g=Cr(),S=br().Buffer,s=[1518500249,1859775393,-1894007588,-899497514],A=new Array(80);function i(){this.init(),this._w=A,g.call(this,64,56)}m(i,g),i.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function l(v){return v<<1|v>>>31}function b(v){return v<<5|v>>>27}function p(v){return v<<30|v>>>2}function o(v,y,x,M){return v===0?y&x|~y&M:v===2?y&x|y&M|x&M:y^x^M}return i.prototype._update=function(v){for(var y=this._w,x=this._a|0,M=this._b|0,_=this._c|0,E=this._d|0,B=this._e|0,F=0;F<16;++F)y[F]=v.readInt32BE(F*4);for(;F<80;++F)y[F]=l(y[F-3]^y[F-8]^y[F-14]^y[F-16]);for(var C=0;C<80;++C){var R=~~(C/20),D=b(x)+o(R,M,_,E)+B+y[C]+s[R]|0;B=E,E=_,_=p(M),M=x,x=D}this._a=x+this._a|0,this._b=M+this._b|0,this._c=_+this._c|0,this._d=E+this._d|0,this._e=B+this._e|0},i.prototype._hash=function(){var v=S.allocUnsafe(20);return v.writeInt32BE(this._a|0,0),v.writeInt32BE(this._b|0,4),v.writeInt32BE(this._c|0,8),v.writeInt32BE(this._d|0,12),v.writeInt32BE(this._e|0,16),v},sa=i,sa}var ha,Bs;function dl(){if(Bs)return ha;Bs=1;var m=dt(),g=Cr(),S=br().Buffer,s=[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=new Array(64);function i(){this.init(),this._w=A,g.call(this,64,56)}m(i,g),i.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};function l(x,M,_){return _^x&(M^_)}function b(x,M,_){return x&M|_&(x|M)}function p(x){return(x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10)}function o(x){return(x>>>6|x<<26)^(x>>>11|x<<21)^(x>>>25|x<<7)}function v(x){return(x>>>7|x<<25)^(x>>>18|x<<14)^x>>>3}function y(x){return(x>>>17|x<<15)^(x>>>19|x<<13)^x>>>10}return i.prototype._update=function(x){for(var M=this._w,_=this._a|0,E=this._b|0,B=this._c|0,F=this._d|0,C=this._e|0,R=this._f|0,D=this._g|0,q=this._h|0,O=0;O<16;++O)M[O]=x.readInt32BE(O*4);for(;O<64;++O)M[O]=y(M[O-2])+M[O-7]+v(M[O-15])+M[O-16]|0;for(var Y=0;Y<64;++Y){var Q=q+o(C)+l(C,R,D)+s[Y]+M[Y]|0,L=p(_)+b(_,E,B)|0;q=D,D=R,R=C,C=F+Q|0,F=B,B=E,E=_,_=Q+L|0}this._a=_+this._a|0,this._b=E+this._b|0,this._c=B+this._c|0,this._d=F+this._d|0,this._e=C+this._e|0,this._f=R+this._f|0,this._g=D+this._g|0,this._h=q+this._h|0},i.prototype._hash=function(){var x=S.allocUnsafe(32);return x.writeInt32BE(this._a,0),x.writeInt32BE(this._b,4),x.writeInt32BE(this._c,8),x.writeInt32BE(this._d,12),x.writeInt32BE(this._e,16),x.writeInt32BE(this._f,20),x.writeInt32BE(this._g,24),x.writeInt32BE(this._h,28),x},ha=i,ha}var ua,Fs;function N1(){if(Fs)return ua;Fs=1;var m=dt(),g=dl(),S=Cr(),s=br().Buffer,A=new Array(64);function i(){this.init(),this._w=A,S.call(this,64,56)}return m(i,g),i.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},i.prototype._hash=function(){var l=s.allocUnsafe(28);return l.writeInt32BE(this._a,0),l.writeInt32BE(this._b,4),l.writeInt32BE(this._c,8),l.writeInt32BE(this._d,12),l.writeInt32BE(this._e,16),l.writeInt32BE(this._f,20),l.writeInt32BE(this._g,24),l},ua=i,ua}var ca,Cs;function pl(){if(Cs)return ca;Cs=1;var m=dt(),g=Cr(),S=br().Buffer,s=[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],A=new Array(160);function i(){this.init(),this._w=A,g.call(this,128,112)}m(i,g),i.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};function l(E,B,F){return F^E&(B^F)}function b(E,B,F){return E&B|F&(E|B)}function p(E,B){return(E>>>28|B<<4)^(B>>>2|E<<30)^(B>>>7|E<<25)}function o(E,B){return(E>>>14|B<<18)^(E>>>18|B<<14)^(B>>>9|E<<23)}function v(E,B){return(E>>>1|B<<31)^(E>>>8|B<<24)^E>>>7}function y(E,B){return(E>>>1|B<<31)^(E>>>8|B<<24)^(E>>>7|B<<25)}function x(E,B){return(E>>>19|B<<13)^(B>>>29|E<<3)^E>>>6}function M(E,B){return(E>>>19|B<<13)^(B>>>29|E<<3)^(E>>>6|B<<26)}function _(E,B){return E>>>0<B>>>0?1:0}return i.prototype._update=function(E){for(var B=this._w,F=this._ah|0,C=this._bh|0,R=this._ch|0,D=this._dh|0,q=this._eh|0,O=this._fh|0,Y=this._gh|0,Q=this._hh|0,L=this._al|0,X=this._bl|0,c=this._cl|0,e=this._dl|0,r=this._el|0,n=this._fl|0,a=this._gl|0,u=this._hl|0,d=0;d<32;d+=2)B[d]=E.readInt32BE(d*4),B[d+1]=E.readInt32BE(d*4+4);for(;d<160;d+=2){var w=B[d-30],f=B[d-30+1],t=v(w,f),h=y(f,w);w=B[d-4],f=B[d-4+1];var H=x(w,f),j=M(f,w),U=B[d-14],ee=B[d-14+1],J=B[d-32],N=B[d-32+1],z=h+ee|0,Z=t+U+_(z,h)|0;z=z+j|0,Z=Z+H+_(z,j)|0,z=z+N|0,Z=Z+J+_(z,N)|0,B[d]=Z,B[d+1]=z}for(var k=0;k<160;k+=2){Z=B[k],z=B[k+1];var P=b(F,C,R),T=b(L,X,c),G=p(F,L),fe=p(L,F),te=o(q,r),re=o(r,q),he=s[k],ie=s[k+1],ne=l(q,O,Y),pe=l(r,n,a),oe=u+re|0,se=Q+te+_(oe,u)|0;oe=oe+pe|0,se=se+ne+_(oe,pe)|0,oe=oe+ie|0,se=se+he+_(oe,ie)|0,oe=oe+z|0,se=se+Z+_(oe,z)|0;var Re=fe+T|0,de=G+P+_(Re,fe)|0;Q=Y,u=a,Y=O,a=n,O=q,n=r,r=e+oe|0,q=D+se+_(r,e)|0,D=R,e=c,R=C,c=X,C=F,X=L,L=oe+Re|0,F=se+de+_(L,oe)|0}this._al=this._al+L|0,this._bl=this._bl+X|0,this._cl=this._cl+c|0,this._dl=this._dl+e|0,this._el=this._el+r|0,this._fl=this._fl+n|0,this._gl=this._gl+a|0,this._hl=this._hl+u|0,this._ah=this._ah+F+_(this._al,L)|0,this._bh=this._bh+C+_(this._bl,X)|0,this._ch=this._ch+R+_(this._cl,c)|0,this._dh=this._dh+D+_(this._dl,e)|0,this._eh=this._eh+q+_(this._el,r)|0,this._fh=this._fh+O+_(this._fl,n)|0,this._gh=this._gh+Y+_(this._gl,a)|0,this._hh=this._hh+Q+_(this._hl,u)|0},i.prototype._hash=function(){var E=S.allocUnsafe(64);function B(F,C,R){E.writeInt32BE(F,R),E.writeInt32BE(C,R+4)}return B(this._ah,this._al,0),B(this._bh,this._bl,8),B(this._ch,this._cl,16),B(this._dh,this._dl,24),B(this._eh,this._el,32),B(this._fh,this._fl,40),B(this._gh,this._gl,48),B(this._hh,this._hl,56),E},ca=i,ca}var la,Ds;function O1(){if(Ds)return la;Ds=1;var m=dt(),g=pl(),S=Cr(),s=br().Buffer,A=new Array(160);function i(){this.init(),this._w=A,S.call(this,128,112)}return m(i,g),i.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},i.prototype._hash=function(){var l=s.allocUnsafe(48);function b(p,o,v){l.writeInt32BE(p,v),l.writeInt32BE(o,v+4)}return b(this._ah,this._al,0),b(this._bh,this._bl,8),b(this._ch,this._cl,16),b(this._dh,this._dl,24),b(this._eh,this._el,32),b(this._fh,this._fl,40),l},la=i,la}var Rs;function If(){return Rs||(Rs=1,(function(m){m.exports=function(S){var s=S.toLowerCase(),A=m.exports[s];if(!A)throw new Error(s+" is not supported (we accept pull requests)");return new A},m.exports.sha=k1(),m.exports.sha1=P1(),m.exports.sha224=N1(),m.exports.sha256=dl(),m.exports.sha384=O1(),m.exports.sha512=pl()})(hn)),hn.exports}var Jr={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var Ts;function q1(){return Ts||(Ts=1,(function(m,g){var S=Qe.requireDist(),s=S.Buffer;function A(l,b){for(var p in l)b[p]=l[p]}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?m.exports=S:(A(S,g),g.Buffer=i);function i(l,b,p){return s(l,b,p)}i.prototype=Object.create(s.prototype),A(s,i),i.from=function(l,b,p){if(typeof l=="number")throw new TypeError("Argument must not be a number");return s(l,b,p)},i.alloc=function(l,b,p){if(typeof l!="number")throw new TypeError("Argument must be a number");var o=s(l);return b!==void 0?typeof p=="string"?o.fill(b,p):o.fill(b):o.fill(0),o},i.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return s(l)},i.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return S.SlowBuffer(l)}})(Jr,Jr.exports)),Jr.exports}var da,Is;function or(){if(Is)return da;Is=1;var m=q1().Buffer,g=Ri().Transform,S=kr().StringDecoder,s=dt();function A(p){g.call(this),this.hashMode=typeof p=="string",this.hashMode?this[p]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}s(A,g);var i=typeof Uint8Array<"u",l=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(m.prototype instanceof Uint8Array||m.TYPED_ARRAY_SUPPORT);function b(p,o){if(p instanceof m)return p;if(typeof p=="string")return m.from(p,o);if(l&&ArrayBuffer.isView(p)){if(p.byteLength===0)return m.alloc(0);var v=m.from(p.buffer,p.byteOffset,p.byteLength);if(v.byteLength===p.byteLength)return v}if(i&&p instanceof Uint8Array||m.isBuffer(p)&&p.constructor&&typeof p.constructor.isBuffer=="function"&&p.constructor.isBuffer(p))return m.from(p);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}return A.prototype.update=function(p,o,v){var y=b(p,o),x=this._update(y);return this.hashMode?this:(v&&(x=this._toString(x,v)),x)},A.prototype.setAutoPadding=function(){},A.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},A.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},A.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},A.prototype._transform=function(p,o,v){var y;try{this.hashMode?this._update(p):this.push(this._update(p))}catch(x){y=x}finally{v(y)}},A.prototype._flush=function(p){var o;try{this.push(this.__final())}catch(v){o=v}p(o)},A.prototype._finalOrDigest=function(p){var o=this.__final()||m.alloc(0);return p&&(o=this._toString(o,p,!0)),o},A.prototype._toString=function(p,o,v){if(this._decoder||(this._decoder=new S(o),this._encoding=o),this._encoding!==o)throw new Error("can’t switch encodings");var y=this._decoder.write(p);return v&&(y+=this._decoder.end()),y},da=A,da}var pa,ks;function Or(){if(ks)return pa;ks=1;var m=dt(),g=Af(),S=el(),s=If(),A=or();function i(l){A.call(this,"digest"),this._hash=l}return m(i,A),i.prototype._update=function(l){this._hash.update(l)},i.prototype._final=function(){return this._hash.digest()},pa=function(b){return b=b.toLowerCase(),b==="md5"?new g:b==="rmd160"||b==="ripemd160"?new S:new i(s(b))},pa}var Qr={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var Ps;function vl(){return Ps||(Ps=1,(function(m,g){var S=Qe.requireDist(),s=S.Buffer;function A(l,b){for(var p in l)b[p]=l[p]}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?m.exports=S:(A(S,g),g.Buffer=i);function i(l,b,p){return s(l,b,p)}i.prototype=Object.create(s.prototype),A(s,i),i.from=function(l,b,p){if(typeof l=="number")throw new TypeError("Argument must not be a number");return s(l,b,p)},i.alloc=function(l,b,p){if(typeof l!="number")throw new TypeError("Argument must be a number");var o=s(l);return b!==void 0?typeof p=="string"?o.fill(b,p):o.fill(b):o.fill(0),o},i.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return s(l)},i.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return S.SlowBuffer(l)}})(Qr,Qr.exports)),Qr.exports}var va,Ns;function U1(){if(Ns)return va;Ns=1;var m=dt(),g=vl().Buffer,S=or(),s=g.alloc(128),A=64;function i(l,b){S.call(this,"digest"),typeof b=="string"&&(b=g.from(b)),this._alg=l,this._key=b,b.length>A?b=l(b):b.length<A&&(b=g.concat([b,s],A));for(var p=this._ipad=g.allocUnsafe(A),o=this._opad=g.allocUnsafe(A),v=0;v<A;v++)p[v]=b[v]^54,o[v]=b[v]^92;this._hash=[p]}return m(i,S),i.prototype._update=function(l){this._hash.push(l)},i.prototype._final=function(){var l=this._alg(g.concat(this._hash));return this._alg(g.concat([this._opad,l]))},va=i,va}var ba,Os;function L1(){if(Os)return ba;Os=1;var m=Af();return ba=function(g){return new m().update(g).digest()},ba}var ma,qs;function bl(){if(qs)return ma;qs=1;var m=dt(),g=U1(),S=or(),s=vl().Buffer,A=L1(),i=el(),l=If(),b=s.alloc(128);function p(o,v){S.call(this,"digest"),typeof v=="string"&&(v=s.from(v));var y=o==="sha512"||o==="sha384"?128:64;if(this._alg=o,this._key=v,v.length>y){var x=o==="rmd160"?new i:l(o);v=x.update(v).digest()}else v.length<y&&(v=s.concat([v,b],y));for(var M=this._ipad=s.allocUnsafe(y),_=this._opad=s.allocUnsafe(y),E=0;E<y;E++)M[E]=v[E]^54,_[E]=v[E]^92;this._hash=o==="rmd160"?new i:l(o),this._hash.update(M)}return m(p,S),p.prototype._update=function(o){this._hash.update(o)},p.prototype._final=function(){var o=this._hash.digest(),v=this._alg==="rmd160"?new i:l(this._alg);return v.update(this._opad).update(o).digest()},ma=function(v,y){return v=v.toLowerCase(),v==="rmd160"||v==="ripemd160"?new p("rmd160",y):v==="md5"?new g(A,y):new p(v,y)},ma}const H1={sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},$1={sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},j1={sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},z1={sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},K1={sign:"ecdsa",hash:"sha256",id:""},W1={sign:"ecdsa",hash:"sha224",id:""},G1={sign:"ecdsa",hash:"sha384",id:""},V1={sign:"ecdsa",hash:"sha512",id:""},Z1={sign:"dsa",hash:"sha1",id:""},X1={sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},Y1={sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},ml={sha224WithRSAEncryption:H1,"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:$1,"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:j1,"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:z1,"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:K1,sha224:W1,sha384:G1,sha512:V1,"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:Z1,"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:X1,"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:Y1,"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}};var ya,Us;function J1(){return Us||(Us=1,ya=ml),ya}var ei={},ti={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var Ls;function kf(){return Ls||(Ls=1,(function(m,g){var S=Qe.requireDist(),s=S.Buffer;function A(l,b){for(var p in l)b[p]=l[p]}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?m.exports=S:(A(S,g),g.Buffer=i);function i(l,b,p){return s(l,b,p)}i.prototype=Object.create(s.prototype),A(s,i),i.from=function(l,b,p){if(typeof l=="number")throw new TypeError("Argument must not be a number");return s(l,b,p)},i.alloc=function(l,b,p){if(typeof l!="number")throw new TypeError("Argument must be a number");var o=s(l);return b!==void 0?typeof p=="string"?o.fill(b,p):o.fill(b):o.fill(0),o},i.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return s(l)},i.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return S.SlowBuffer(l)}})(ti,ti.exports)),ti.exports}var ga,Hs;function yl(){if(Hs)return ga;Hs=1;var m=Math.pow(2,30)-1;return ga=function(g,S){if(typeof g!="number")throw new TypeError("Iterations not a number");if(g<0)throw new TypeError("Bad iterations");if(typeof S!="number")throw new TypeError("Key length not a number");if(S<0||S>m||S!==S)throw new TypeError("Bad key length")},ga}var xa,$s;function gl(){if($s)return xa;$s=1;var m;if(Qe.commonjsGlobal.process&&Qe.commonjsGlobal.process.browser)m="utf-8";else if(Qe.commonjsGlobal.process&&Qe.commonjsGlobal.process.version){var g=parseInt(xe.process$1.version.split(".")[0].slice(1),10);m=g>=6?"utf-8":"binary"}else m="utf-8";return xa=m,xa}var wa,js;function Q1(){if(js)return wa;js=1;var m=4,g=new xe.Buffer(m);g.fill(0);var S=8,s=16;function A(i){if(i.length%m!==0){var l=i.length+(m-i.length%m);i=xe.Buffer.concat([i,g],l)}for(var b=new Array(i.length>>>2),p=0,o=0;p<i.length;p+=m,o++)b[o]=i.readInt32LE(p);return b}return wa=function(l,b){var p=b(A(l),l.length*S);l=new xe.Buffer(s);for(var o=0;o<p.length;o++)l.writeInt32LE(p[o],o<<2,!0);return l},wa}var Ma,zs;function ep(){if(zs)return Ma;zs=1;var m=Q1();function g(o,v){o[v>>5]|=128<<v%32,o[(v+64>>>9<<4)+14]=v;for(var y=1732584193,x=-271733879,M=-1732584194,_=271733878,E=0;E<o.length;E+=16){var B=y,F=x,C=M,R=_;y=s(y,x,M,_,o[E+0],7,-680876936),_=s(_,y,x,M,o[E+1],12,-389564586),M=s(M,_,y,x,o[E+2],17,606105819),x=s(x,M,_,y,o[E+3],22,-1044525330),y=s(y,x,M,_,o[E+4],7,-176418897),_=s(_,y,x,M,o[E+5],12,1200080426),M=s(M,_,y,x,o[E+6],17,-1473231341),x=s(x,M,_,y,o[E+7],22,-45705983),y=s(y,x,M,_,o[E+8],7,1770035416),_=s(_,y,x,M,o[E+9],12,-1958414417),M=s(M,_,y,x,o[E+10],17,-42063),x=s(x,M,_,y,o[E+11],22,-1990404162),y=s(y,x,M,_,o[E+12],7,1804603682),_=s(_,y,x,M,o[E+13],12,-40341101),M=s(M,_,y,x,o[E+14],17,-1502002290),x=s(x,M,_,y,o[E+15],22,1236535329),y=A(y,x,M,_,o[E+1],5,-165796510),_=A(_,y,x,M,o[E+6],9,-1069501632),M=A(M,_,y,x,o[E+11],14,643717713),x=A(x,M,_,y,o[E+0],20,-373897302),y=A(y,x,M,_,o[E+5],5,-701558691),_=A(_,y,x,M,o[E+10],9,38016083),M=A(M,_,y,x,o[E+15],14,-660478335),x=A(x,M,_,y,o[E+4],20,-405537848),y=A(y,x,M,_,o[E+9],5,568446438),_=A(_,y,x,M,o[E+14],9,-1019803690),M=A(M,_,y,x,o[E+3],14,-187363961),x=A(x,M,_,y,o[E+8],20,1163531501),y=A(y,x,M,_,o[E+13],5,-1444681467),_=A(_,y,x,M,o[E+2],9,-51403784),M=A(M,_,y,x,o[E+7],14,1735328473),x=A(x,M,_,y,o[E+12],20,-1926607734),y=i(y,x,M,_,o[E+5],4,-378558),_=i(_,y,x,M,o[E+8],11,-2022574463),M=i(M,_,y,x,o[E+11],16,1839030562),x=i(x,M,_,y,o[E+14],23,-35309556),y=i(y,x,M,_,o[E+1],4,-1530992060),_=i(_,y,x,M,o[E+4],11,1272893353),M=i(M,_,y,x,o[E+7],16,-155497632),x=i(x,M,_,y,o[E+10],23,-1094730640),y=i(y,x,M,_,o[E+13],4,681279174),_=i(_,y,x,M,o[E+0],11,-358537222),M=i(M,_,y,x,o[E+3],16,-722521979),x=i(x,M,_,y,o[E+6],23,76029189),y=i(y,x,M,_,o[E+9],4,-640364487),_=i(_,y,x,M,o[E+12],11,-421815835),M=i(M,_,y,x,o[E+15],16,530742520),x=i(x,M,_,y,o[E+2],23,-995338651),y=l(y,x,M,_,o[E+0],6,-198630844),_=l(_,y,x,M,o[E+7],10,1126891415),M=l(M,_,y,x,o[E+14],15,-1416354905),x=l(x,M,_,y,o[E+5],21,-57434055),y=l(y,x,M,_,o[E+12],6,1700485571),_=l(_,y,x,M,o[E+3],10,-1894986606),M=l(M,_,y,x,o[E+10],15,-1051523),x=l(x,M,_,y,o[E+1],21,-2054922799),y=l(y,x,M,_,o[E+8],6,1873313359),_=l(_,y,x,M,o[E+15],10,-30611744),M=l(M,_,y,x,o[E+6],15,-1560198380),x=l(x,M,_,y,o[E+13],21,1309151649),y=l(y,x,M,_,o[E+4],6,-145523070),_=l(_,y,x,M,o[E+11],10,-1120210379),M=l(M,_,y,x,o[E+2],15,718787259),x=l(x,M,_,y,o[E+9],21,-343485551),y=b(y,B),x=b(x,F),M=b(M,C),_=b(_,R)}return[y,x,M,_]}function S(o,v,y,x,M,_){return b(p(b(b(v,o),b(x,_)),M),y)}function s(o,v,y,x,M,_,E){return S(v&y|~v&x,o,v,M,_,E)}function A(o,v,y,x,M,_,E){return S(v&x|y&~x,o,v,M,_,E)}function i(o,v,y,x,M,_,E){return S(v^y^x,o,v,M,_,E)}function l(o,v,y,x,M,_,E){return S(y^(v|~x),o,v,M,_,E)}function b(o,v){var y=(o&65535)+(v&65535),x=(o>>16)+(v>>16)+(y>>16);return x<<16|y&65535}function p(o,v){return o<<v|o>>>32-v}return Ma=function(v){return m(v,g)},Ma}var _a,Ks;function tp(){if(Ks)return _a;Ks=1;var m=Ri().Transform,g=dt();function S(s){m.call(this),this._block=new xe.Buffer(s),this._blockSize=s,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}return g(S,m),S.prototype._transform=function(s,A,i){var l=null;try{A!=="buffer"&&(s=new xe.Buffer(s,A)),this.update(s)}catch(b){l=b}i(l)},S.prototype._flush=function(s){var A=null;try{this.push(this._digest())}catch(i){A=i}s(A)},S.prototype.update=function(s,A){if(!xe.Buffer.isBuffer(s)&&typeof s!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");xe.Buffer.isBuffer(s)||(s=new xe.Buffer(s,A||"binary"));for(var i=this._block,l=0;this._blockOffset+s.length-l>=this._blockSize;){for(var b=this._blockOffset;b<this._blockSize;)i[b++]=s[l++];this._update(),this._blockOffset=0}for(;l<s.length;)i[this._blockOffset++]=s[l++];for(var p=0,o=s.length*8;o>0;++p)this._length[p]+=o,o=this._length[p]/4294967296|0,o>0&&(this._length[p]-=4294967296*o);return this},S.prototype._update=function(s){throw new Error("_update is not implemented")},S.prototype.digest=function(s){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var A=this._digest();return s!==void 0&&(A=A.toString(s)),A},S.prototype._digest=function(){throw new Error("_digest is not implemented")},_a=S,_a}var Aa,Ws;function rp(){if(Ws)return Aa;Ws=1;var m=dt(),g=tp();function S(){g.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}m(S,g),S.prototype._update=function(){for(var o=new Array(16),v=0;v<16;++v)o[v]=this._block.readInt32LE(v*4);var y=this._a,x=this._b,M=this._c,_=this._d,E=this._e;y=A(y,x,M,_,E,o[0],0,11),M=s(M,10),E=A(E,y,x,M,_,o[1],0,14),x=s(x,10),_=A(_,E,y,x,M,o[2],0,15),y=s(y,10),M=A(M,_,E,y,x,o[3],0,12),E=s(E,10),x=A(x,M,_,E,y,o[4],0,5),_=s(_,10),y=A(y,x,M,_,E,o[5],0,8),M=s(M,10),E=A(E,y,x,M,_,o[6],0,7),x=s(x,10),_=A(_,E,y,x,M,o[7],0,9),y=s(y,10),M=A(M,_,E,y,x,o[8],0,11),E=s(E,10),x=A(x,M,_,E,y,o[9],0,13),_=s(_,10),y=A(y,x,M,_,E,o[10],0,14),M=s(M,10),E=A(E,y,x,M,_,o[11],0,15),x=s(x,10),_=A(_,E,y,x,M,o[12],0,6),y=s(y,10),M=A(M,_,E,y,x,o[13],0,7),E=s(E,10),x=A(x,M,_,E,y,o[14],0,9),_=s(_,10),y=A(y,x,M,_,E,o[15],0,8),M=s(M,10),E=i(E,y,x,M,_,o[7],1518500249,7),x=s(x,10),_=i(_,E,y,x,M,o[4],1518500249,6),y=s(y,10),M=i(M,_,E,y,x,o[13],1518500249,8),E=s(E,10),x=i(x,M,_,E,y,o[1],1518500249,13),_=s(_,10),y=i(y,x,M,_,E,o[10],1518500249,11),M=s(M,10),E=i(E,y,x,M,_,o[6],1518500249,9),x=s(x,10),_=i(_,E,y,x,M,o[15],1518500249,7),y=s(y,10),M=i(M,_,E,y,x,o[3],1518500249,15),E=s(E,10),x=i(x,M,_,E,y,o[12],1518500249,7),_=s(_,10),y=i(y,x,M,_,E,o[0],1518500249,12),M=s(M,10),E=i(E,y,x,M,_,o[9],1518500249,15),x=s(x,10),_=i(_,E,y,x,M,o[5],1518500249,9),y=s(y,10),M=i(M,_,E,y,x,o[2],1518500249,11),E=s(E,10),x=i(x,M,_,E,y,o[14],1518500249,7),_=s(_,10),y=i(y,x,M,_,E,o[11],1518500249,13),M=s(M,10),E=i(E,y,x,M,_,o[8],1518500249,12),x=s(x,10),_=l(_,E,y,x,M,o[3],1859775393,11),y=s(y,10),M=l(M,_,E,y,x,o[10],1859775393,13),E=s(E,10),x=l(x,M,_,E,y,o[14],1859775393,6),_=s(_,10),y=l(y,x,M,_,E,o[4],1859775393,7),M=s(M,10),E=l(E,y,x,M,_,o[9],1859775393,14),x=s(x,10),_=l(_,E,y,x,M,o[15],1859775393,9),y=s(y,10),M=l(M,_,E,y,x,o[8],1859775393,13),E=s(E,10),x=l(x,M,_,E,y,o[1],1859775393,15),_=s(_,10),y=l(y,x,M,_,E,o[2],1859775393,14),M=s(M,10),E=l(E,y,x,M,_,o[7],1859775393,8),x=s(x,10),_=l(_,E,y,x,M,o[0],1859775393,13),y=s(y,10),M=l(M,_,E,y,x,o[6],1859775393,6),E=s(E,10),x=l(x,M,_,E,y,o[13],1859775393,5),_=s(_,10),y=l(y,x,M,_,E,o[11],1859775393,12),M=s(M,10),E=l(E,y,x,M,_,o[5],1859775393,7),x=s(x,10),_=l(_,E,y,x,M,o[12],1859775393,5),y=s(y,10),M=b(M,_,E,y,x,o[1],2400959708,11),E=s(E,10),x=b(x,M,_,E,y,o[9],2400959708,12),_=s(_,10),y=b(y,x,M,_,E,o[11],2400959708,14),M=s(M,10),E=b(E,y,x,M,_,o[10],2400959708,15),x=s(x,10),_=b(_,E,y,x,M,o[0],2400959708,14),y=s(y,10),M=b(M,_,E,y,x,o[8],2400959708,15),E=s(E,10),x=b(x,M,_,E,y,o[12],2400959708,9),_=s(_,10),y=b(y,x,M,_,E,o[4],2400959708,8),M=s(M,10),E=b(E,y,x,M,_,o[13],2400959708,9),x=s(x,10),_=b(_,E,y,x,M,o[3],2400959708,14),y=s(y,10),M=b(M,_,E,y,x,o[7],2400959708,5),E=s(E,10),x=b(x,M,_,E,y,o[15],2400959708,6),_=s(_,10),y=b(y,x,M,_,E,o[14],2400959708,8),M=s(M,10),E=b(E,y,x,M,_,o[5],2400959708,6),x=s(x,10),_=b(_,E,y,x,M,o[6],2400959708,5),y=s(y,10),M=b(M,_,E,y,x,o[2],2400959708,12),E=s(E,10),x=p(x,M,_,E,y,o[4],2840853838,9),_=s(_,10),y=p(y,x,M,_,E,o[0],2840853838,15),M=s(M,10),E=p(E,y,x,M,_,o[5],2840853838,5),x=s(x,10),_=p(_,E,y,x,M,o[9],2840853838,11),y=s(y,10),M=p(M,_,E,y,x,o[7],2840853838,6),E=s(E,10),x=p(x,M,_,E,y,o[12],2840853838,8),_=s(_,10),y=p(y,x,M,_,E,o[2],2840853838,13),M=s(M,10),E=p(E,y,x,M,_,o[10],2840853838,12),x=s(x,10),_=p(_,E,y,x,M,o[14],2840853838,5),y=s(y,10),M=p(M,_,E,y,x,o[1],2840853838,12),E=s(E,10),x=p(x,M,_,E,y,o[3],2840853838,13),_=s(_,10),y=p(y,x,M,_,E,o[8],2840853838,14),M=s(M,10),E=p(E,y,x,M,_,o[11],2840853838,11),x=s(x,10),_=p(_,E,y,x,M,o[6],2840853838,8),y=s(y,10),M=p(M,_,E,y,x,o[15],2840853838,5),E=s(E,10),x=p(x,M,_,E,y,o[13],2840853838,6),_=s(_,10);var B=this._a,F=this._b,C=this._c,R=this._d,D=this._e;B=p(B,F,C,R,D,o[5],1352829926,8),C=s(C,10),D=p(D,B,F,C,R,o[14],1352829926,9),F=s(F,10),R=p(R,D,B,F,C,o[7],1352829926,9),B=s(B,10),C=p(C,R,D,B,F,o[0],1352829926,11),D=s(D,10),F=p(F,C,R,D,B,o[9],1352829926,13),R=s(R,10),B=p(B,F,C,R,D,o[2],1352829926,15),C=s(C,10),D=p(D,B,F,C,R,o[11],1352829926,15),F=s(F,10),R=p(R,D,B,F,C,o[4],1352829926,5),B=s(B,10),C=p(C,R,D,B,F,o[13],1352829926,7),D=s(D,10),F=p(F,C,R,D,B,o[6],1352829926,7),R=s(R,10),B=p(B,F,C,R,D,o[15],1352829926,8),C=s(C,10),D=p(D,B,F,C,R,o[8],1352829926,11),F=s(F,10),R=p(R,D,B,F,C,o[1],1352829926,14),B=s(B,10),C=p(C,R,D,B,F,o[10],1352829926,14),D=s(D,10),F=p(F,C,R,D,B,o[3],1352829926,12),R=s(R,10),B=p(B,F,C,R,D,o[12],1352829926,6),C=s(C,10),D=b(D,B,F,C,R,o[6],1548603684,9),F=s(F,10),R=b(R,D,B,F,C,o[11],1548603684,13),B=s(B,10),C=b(C,R,D,B,F,o[3],1548603684,15),D=s(D,10),F=b(F,C,R,D,B,o[7],1548603684,7),R=s(R,10),B=b(B,F,C,R,D,o[0],1548603684,12),C=s(C,10),D=b(D,B,F,C,R,o[13],1548603684,8),F=s(F,10),R=b(R,D,B,F,C,o[5],1548603684,9),B=s(B,10),C=b(C,R,D,B,F,o[10],1548603684,11),D=s(D,10),F=b(F,C,R,D,B,o[14],1548603684,7),R=s(R,10),B=b(B,F,C,R,D,o[15],1548603684,7),C=s(C,10),D=b(D,B,F,C,R,o[8],1548603684,12),F=s(F,10),R=b(R,D,B,F,C,o[12],1548603684,7),B=s(B,10),C=b(C,R,D,B,F,o[4],1548603684,6),D=s(D,10),F=b(F,C,R,D,B,o[9],1548603684,15),R=s(R,10),B=b(B,F,C,R,D,o[1],1548603684,13),C=s(C,10),D=b(D,B,F,C,R,o[2],1548603684,11),F=s(F,10),R=l(R,D,B,F,C,o[15],1836072691,9),B=s(B,10),C=l(C,R,D,B,F,o[5],1836072691,7),D=s(D,10),F=l(F,C,R,D,B,o[1],1836072691,15),R=s(R,10),B=l(B,F,C,R,D,o[3],1836072691,11),C=s(C,10),D=l(D,B,F,C,R,o[7],1836072691,8),F=s(F,10),R=l(R,D,B,F,C,o[14],1836072691,6),B=s(B,10),C=l(C,R,D,B,F,o[6],1836072691,6),D=s(D,10),F=l(F,C,R,D,B,o[9],1836072691,14),R=s(R,10),B=l(B,F,C,R,D,o[11],1836072691,12),C=s(C,10),D=l(D,B,F,C,R,o[8],1836072691,13),F=s(F,10),R=l(R,D,B,F,C,o[12],1836072691,5),B=s(B,10),C=l(C,R,D,B,F,o[2],1836072691,14),D=s(D,10),F=l(F,C,R,D,B,o[10],1836072691,13),R=s(R,10),B=l(B,F,C,R,D,o[0],1836072691,13),C=s(C,10),D=l(D,B,F,C,R,o[4],1836072691,7),F=s(F,10),R=l(R,D,B,F,C,o[13],1836072691,5),B=s(B,10),C=i(C,R,D,B,F,o[8],2053994217,15),D=s(D,10),F=i(F,C,R,D,B,o[6],2053994217,5),R=s(R,10),B=i(B,F,C,R,D,o[4],2053994217,8),C=s(C,10),D=i(D,B,F,C,R,o[1],2053994217,11),F=s(F,10),R=i(R,D,B,F,C,o[3],2053994217,14),B=s(B,10),C=i(C,R,D,B,F,o[11],2053994217,14),D=s(D,10),F=i(F,C,R,D,B,o[15],2053994217,6),R=s(R,10),B=i(B,F,C,R,D,o[0],2053994217,14),C=s(C,10),D=i(D,B,F,C,R,o[5],2053994217,6),F=s(F,10),R=i(R,D,B,F,C,o[12],2053994217,9),B=s(B,10),C=i(C,R,D,B,F,o[2],2053994217,12),D=s(D,10),F=i(F,C,R,D,B,o[13],2053994217,9),R=s(R,10),B=i(B,F,C,R,D,o[9],2053994217,12),C=s(C,10),D=i(D,B,F,C,R,o[7],2053994217,5),F=s(F,10),R=i(R,D,B,F,C,o[10],2053994217,15),B=s(B,10),C=i(C,R,D,B,F,o[14],2053994217,8),D=s(D,10),F=A(F,C,R,D,B,o[12],0,8),R=s(R,10),B=A(B,F,C,R,D,o[15],0,5),C=s(C,10),D=A(D,B,F,C,R,o[10],0,12),F=s(F,10),R=A(R,D,B,F,C,o[4],0,9),B=s(B,10),C=A(C,R,D,B,F,o[1],0,12),D=s(D,10),F=A(F,C,R,D,B,o[5],0,5),R=s(R,10),B=A(B,F,C,R,D,o[8],0,14),C=s(C,10),D=A(D,B,F,C,R,o[7],0,6),F=s(F,10),R=A(R,D,B,F,C,o[6],0,8),B=s(B,10),C=A(C,R,D,B,F,o[2],0,13),D=s(D,10),F=A(F,C,R,D,B,o[13],0,6),R=s(R,10),B=A(B,F,C,R,D,o[14],0,5),C=s(C,10),D=A(D,B,F,C,R,o[0],0,15),F=s(F,10),R=A(R,D,B,F,C,o[3],0,13),B=s(B,10),C=A(C,R,D,B,F,o[9],0,11),D=s(D,10),F=A(F,C,R,D,B,o[11],0,11),R=s(R,10);var q=this._b+M+R|0;this._b=this._c+_+D|0,this._c=this._d+E+B|0,this._d=this._e+y+F|0,this._e=this._a+x+C|0,this._a=q},S.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 o=new xe.Buffer(20);return o.writeInt32LE(this._a,0),o.writeInt32LE(this._b,4),o.writeInt32LE(this._c,8),o.writeInt32LE(this._d,12),o.writeInt32LE(this._e,16),o};function s(o,v){return o<<v|o>>>32-v}function A(o,v,y,x,M,_,E,B){return s(o+(v^y^x)+_+E|0,B)+M|0}function i(o,v,y,x,M,_,E,B){return s(o+(v&y|~v&x)+_+E|0,B)+M|0}function l(o,v,y,x,M,_,E,B){return s(o+((v|~y)^x)+_+E|0,B)+M|0}function b(o,v,y,x,M,_,E,B){return s(o+(v&x|y&~x)+_+E|0,B)+M|0}function p(o,v,y,x,M,_,E,B){return s(o+(v^(y|~x))+_+E|0,B)+M|0}return Aa=S,Aa}var Ea,Gs;function xl(){if(Gs)return Ea;Gs=1;var m=kf().Buffer,g=ll(),S=typeof Uint8Array<"u",s=S&&typeof ArrayBuffer<"u",A=s&&ArrayBuffer.isView;return Ea=function(i,l,b){if(typeof i=="string"||m.isBuffer(i)||S&&i instanceof Uint8Array||A&&A(i))return g(i,l);throw new TypeError(b+" must be a string, a Buffer, a Uint8Array, or a DataView")},Ea}var Sa,Vs;function wl(){if(Vs)return Sa;Vs=1;var m=ep(),g=rp(),S=If(),s=kf().Buffer,A=yl(),i=gl(),l=xl(),b=s.alloc(128),p={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,"sha512-256":32,ripemd160:20,rmd160:20},o={__proto__:null,"sha-1":"sha1","sha-224":"sha224","sha-256":"sha256","sha-384":"sha384","sha-512":"sha512","ripemd-160":"ripemd160"};function v(_){return new g().update(_).digest()}function y(_){function E(B){return S(_).update(B).digest()}return _==="rmd160"||_==="ripemd160"?v:_==="md5"?m:E}function x(_,E,B){var F=y(_),C=_==="sha512"||_==="sha384"?128:64;E.length>C?E=F(E):E.length<C&&(E=s.concat([E,b],C));for(var R=s.allocUnsafe(C+p[_]),D=s.allocUnsafe(C+p[_]),q=0;q<C;q++)R[q]=E[q]^54,D[q]=E[q]^92;var O=s.allocUnsafe(C+B+4);R.copy(O,0,0,C),this.ipad1=O,this.ipad2=R,this.opad=D,this.alg=_,this.blocksize=C,this.hash=F,this.size=p[_]}x.prototype.run=function(_,E){_.copy(E,this.blocksize);var B=this.hash(E);return B.copy(this.opad,this.blocksize),this.hash(this.opad)};function M(_,E,B,F,C){A(B,F),_=l(_,i,"Password"),E=l(E,i,"Salt");var R=(C||"sha1").toLowerCase(),D=o[R]||R,q=p[D];if(typeof q!="number"||!q)throw new TypeError("Digest algorithm not supported: "+C);var O=new x(D,_,E.length),Y=s.allocUnsafe(F),Q=s.allocUnsafe(E.length+4);E.copy(Q,0,0,E.length);for(var L=0,X=q,c=Math.ceil(F/X),e=1;e<=c;e++){Q.writeUInt32BE(e,E.length);for(var r=O.run(Q,O.ipad1),n=r,a=1;a<B;a++){n=O.run(n,O.ipad2);for(var u=0;u<X;u++)r[u]^=n[u]}r.copy(Y,L),L+=X}return Y}return Sa=M,Sa}var Ba,Zs;function ip(){if(Zs)return Ba;Zs=1;var m=kf().Buffer,g=yl(),S=gl(),s=wl(),A=xl(),i,l=Qe.commonjsGlobal.crypto&&Qe.commonjsGlobal.crypto.subtle,b={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},p=[],o;function v(){return o||(Qe.commonjsGlobal.process&&Qe.commonjsGlobal.process.nextTick?o=Qe.commonjsGlobal.process.nextTick:Qe.commonjsGlobal.queueMicrotask?o=Qe.commonjsGlobal.queueMicrotask:Qe.commonjsGlobal.setImmediate?o=Qe.commonjsGlobal.setImmediate:o=Qe.commonjsGlobal.setTimeout,o)}function y(_,E,B,F,C){return l.importKey("raw",_,{name:"PBKDF2"},!1,["deriveBits"]).then(function(R){return l.deriveBits({name:"PBKDF2",salt:E,iterations:B,hash:{name:C}},R,F<<3)}).then(function(R){return m.from(R)})}function x(_){if(Qe.commonjsGlobal.process&&!Qe.commonjsGlobal.process.browser||!l||!l.importKey||!l.deriveBits)return Promise.resolve(!1);if(p[_]!==void 0)return p[_];i=i||m.alloc(8);var E=y(i,i,10,128,_).then(function(){return!0},function(){return!1});return p[_]=E,E}function M(_,E){_.then(function(B){v()(function(){E(null,B)})},function(B){v()(function(){E(B)})})}return Ba=function(_,E,B,F,C,R){typeof C=="function"&&(R=C,C=void 0),C=C||"sha1";var D=b[C.toLowerCase()];if(!D||typeof Qe.commonjsGlobal.Promise!="function"){v()(function(){var q;try{q=s(_,E,B,F,C)}catch(O){R(O);return}R(null,q)});return}if(g(B,F),_=A(_,S,"Password"),E=A(E,S,"Salt"),typeof R!="function")throw new Error("No callback provided to pbkdf2");M(x(D).then(function(q){return q?y(_,E,B,F,D):s(_,E,B,F,C)}),R)},Ba}var Xs;function Ml(){return Xs||(Xs=1,ei.pbkdf2=ip(),ei.pbkdf2Sync=wl()),ei}var Gt={},sr={},Wt={},Ys;function _l(){if(Ys)return Wt;Ys=1,Wt.readUInt32BE=function(A,i){var l=A[0+i]<<24|A[1+i]<<16|A[2+i]<<8|A[3+i];return l>>>0},Wt.writeUInt32BE=function(A,i,l){A[0+l]=i>>>24,A[1+l]=i>>>16&255,A[2+l]=i>>>8&255,A[3+l]=i&255},Wt.ip=function(A,i,l,b){for(var p=0,o=0,v=6;v>=0;v-=2){for(var y=0;y<=24;y+=8)p<<=1,p|=i>>>y+v&1;for(var y=0;y<=24;y+=8)p<<=1,p|=A>>>y+v&1}for(var v=6;v>=0;v-=2){for(var y=1;y<=25;y+=8)o<<=1,o|=i>>>y+v&1;for(var y=1;y<=25;y+=8)o<<=1,o|=A>>>y+v&1}l[b+0]=p>>>0,l[b+1]=o>>>0},Wt.rip=function(A,i,l,b){for(var p=0,o=0,v=0;v<4;v++)for(var y=24;y>=0;y-=8)p<<=1,p|=i>>>y+v&1,p<<=1,p|=A>>>y+v&1;for(var v=4;v<8;v++)for(var y=24;y>=0;y-=8)o<<=1,o|=i>>>y+v&1,o<<=1,o|=A>>>y+v&1;l[b+0]=p>>>0,l[b+1]=o>>>0},Wt.pc1=function(A,i,l,b){for(var p=0,o=0,v=7;v>=5;v--){for(var y=0;y<=24;y+=8)p<<=1,p|=i>>y+v&1;for(var y=0;y<=24;y+=8)p<<=1,p|=A>>y+v&1}for(var y=0;y<=24;y+=8)p<<=1,p|=i>>y+v&1;for(var v=1;v<=3;v++){for(var y=0;y<=24;y+=8)o<<=1,o|=i>>y+v&1;for(var y=0;y<=24;y+=8)o<<=1,o|=A>>y+v&1}for(var y=0;y<=24;y+=8)o<<=1,o|=A>>y+v&1;l[b+0]=p>>>0,l[b+1]=o>>>0},Wt.r28shl=function(A,i){return A<<i&268435455|A>>>28-i};var m=[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];Wt.pc2=function(A,i,l,b){for(var p=0,o=0,v=m.length>>>1,y=0;y<v;y++)p<<=1,p|=A>>>m[y]&1;for(var y=v;y<m.length;y++)o<<=1,o|=i>>>m[y]&1;l[b+0]=p>>>0,l[b+1]=o>>>0},Wt.expand=function(A,i,l){var b=0,p=0;b=(A&1)<<5|A>>>27;for(var o=23;o>=15;o-=4)b<<=6,b|=A>>>o&63;for(var o=11;o>=3;o-=4)p|=A>>>o&63,p<<=6;p|=(A&31)<<1|A>>>31,i[l+0]=b>>>0,i[l+1]=p>>>0};var g=[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];Wt.substitute=function(A,i){for(var l=0,b=0;b<4;b++){var p=A>>>18-b*6&63,o=g[b*64+p];l<<=4,l|=o}for(var b=0;b<4;b++){var p=i>>>18-b*6&63,o=g[256+b*64+p];l<<=4,l|=o}return l>>>0};var S=[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];return Wt.permute=function(A){for(var i=0,l=0;l<S.length;l++)i<<=1,i|=A>>>S[l]&1;return i>>>0},Wt.padSplit=function(A,i,l){for(var b=A.toString(2);b.length<i;)b="0"+b;for(var p=[],o=0;o<i;o+=l)p.push(b.slice(o,o+l));return p.join(" ")},Wt}var Fa,Js;function Xt(){if(Js)return Fa;Js=1,Fa=m;function m(g,S){if(!g)throw new Error(S||"Assertion failed")}return m.equal=function(S,s,A){if(S!=s)throw new Error(A||"Assertion failed: "+S+" != "+s)},Fa}var Ca,Qs;function Pf(){if(Qs)return Ca;Qs=1;var m=Xt();function g(S){this.options=S,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=S.padding!==!1}return Ca=g,g.prototype._init=function(){},g.prototype.update=function(s){return s.length===0?[]:this.type==="decrypt"?this._updateDecrypt(s):this._updateEncrypt(s)},g.prototype._buffer=function(s,A){for(var i=Math.min(this.buffer.length-this.bufferOff,s.length-A),l=0;l<i;l++)this.buffer[this.bufferOff+l]=s[A+l];return this.bufferOff+=i,i},g.prototype._flushBuffer=function(s,A){return this._update(this.buffer,0,s,A),this.bufferOff=0,this.blockSize},g.prototype._updateEncrypt=function(s){var A=0,i=0,l=(this.bufferOff+s.length)/this.blockSize|0,b=new Array(l*this.blockSize);this.bufferOff!==0&&(A+=this._buffer(s,A),this.bufferOff===this.buffer.length&&(i+=this._flushBuffer(b,i)));for(var p=s.length-(s.length-A)%this.blockSize;A<p;A+=this.blockSize)this._update(s,A,b,i),i+=this.blockSize;for(;A<s.length;A++,this.bufferOff++)this.buffer[this.bufferOff]=s[A];return b},g.prototype._updateDecrypt=function(s){for(var A=0,i=0,l=Math.ceil((this.bufferOff+s.length)/this.blockSize)-1,b=new Array(l*this.blockSize);l>0;l--)A+=this._buffer(s,A),i+=this._flushBuffer(b,i);return A+=this._buffer(s,A),b},g.prototype.final=function(s){var A;s&&(A=this.update(s));var i;return this.type==="encrypt"?i=this._finalEncrypt():i=this._finalDecrypt(),A?A.concat(i):i},g.prototype._pad=function(s,A){if(A===0)return!1;for(;A<s.length;)s[A++]=0;return!0},g.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var s=new Array(this.blockSize);return this._update(this.buffer,0,s,0),s},g.prototype._unpad=function(s){return s},g.prototype._finalDecrypt=function(){m.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var s=new Array(this.blockSize);return this._flushBuffer(s,0),this._unpad(s)},Ca}var Da,eh;function Al(){if(eh)return Da;eh=1;var m=Xt(),g=dt(),S=_l(),s=Pf();function A(){this.tmp=new Array(2),this.keys=null}function i(b){s.call(this,b);var p=new A;this._desState=p,this.deriveKeys(p,b.key)}g(i,s),Da=i,i.create=function(p){return new i(p)};var l=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];return i.prototype.deriveKeys=function(p,o){p.keys=new Array(32),m.equal(o.length,this.blockSize,"Invalid key length");var v=S.readUInt32BE(o,0),y=S.readUInt32BE(o,4);S.pc1(v,y,p.tmp,0),v=p.tmp[0],y=p.tmp[1];for(var x=0;x<p.keys.length;x+=2){var M=l[x>>>1];v=S.r28shl(v,M),y=S.r28shl(y,M),S.pc2(v,y,p.keys,x)}},i.prototype._update=function(p,o,v,y){var x=this._desState,M=S.readUInt32BE(p,o),_=S.readUInt32BE(p,o+4);S.ip(M,_,x.tmp,0),M=x.tmp[0],_=x.tmp[1],this.type==="encrypt"?this._encrypt(x,M,_,x.tmp,0):this._decrypt(x,M,_,x.tmp,0),M=x.tmp[0],_=x.tmp[1],S.writeUInt32BE(v,M,y),S.writeUInt32BE(v,_,y+4)},i.prototype._pad=function(p,o){if(this.padding===!1)return!1;for(var v=p.length-o,y=o;y<p.length;y++)p[y]=v;return!0},i.prototype._unpad=function(p){if(this.padding===!1)return p;for(var o=p[p.length-1],v=p.length-o;v<p.length;v++)m.equal(p[v],o);return p.slice(0,p.length-o)},i.prototype._encrypt=function(p,o,v,y,x){for(var M=o,_=v,E=0;E<p.keys.length;E+=2){var B=p.keys[E],F=p.keys[E+1];S.expand(_,p.tmp,0),B^=p.tmp[0],F^=p.tmp[1];var C=S.substitute(B,F),R=S.permute(C),D=_;_=(M^R)>>>0,M=D}S.rip(_,M,y,x)},i.prototype._decrypt=function(p,o,v,y,x){for(var M=v,_=o,E=p.keys.length-2;E>=0;E-=2){var B=p.keys[E],F=p.keys[E+1];S.expand(M,p.tmp,0),B^=p.tmp[0],F^=p.tmp[1];var C=S.substitute(B,F),R=S.permute(C),D=M;M=(_^R)>>>0,_=D}S.rip(M,_,y,x)},Da}var Ra={},th;function np(){if(th)return Ra;th=1;var m=Xt(),g=dt(),S={};function s(i){m.equal(i.length,8,"Invalid IV length"),this.iv=new Array(8);for(var l=0;l<this.iv.length;l++)this.iv[l]=i[l]}function A(i){function l(v){i.call(this,v),this._cbcInit()}g(l,i);for(var b=Object.keys(S),p=0;p<b.length;p++){var o=b[p];l.prototype[o]=S[o]}return l.create=function(y){return new l(y)},l}return Ra.instantiate=A,S._cbcInit=function(){var l=new s(this.options.iv);this._cbcState=l},S._update=function(l,b,p,o){var v=this._cbcState,y=this.constructor.super_.prototype,x=v.iv;if(this.type==="encrypt"){for(var M=0;M<this.blockSize;M++)x[M]^=l[b+M];y._update.call(this,x,0,p,o);for(var M=0;M<this.blockSize;M++)x[M]=p[o+M]}else{y._update.call(this,l,b,p,o);for(var M=0;M<this.blockSize;M++)p[o+M]^=x[M];for(var M=0;M<this.blockSize;M++)x[M]=l[b+M]}},Ra}var Ta,rh;function ap(){if(rh)return Ta;rh=1;var m=Xt(),g=dt(),S=Pf(),s=Al();function A(l,b){m.equal(b.length,24,"Invalid key length");var p=b.slice(0,8),o=b.slice(8,16),v=b.slice(16,24);l==="encrypt"?this.ciphers=[s.create({type:"encrypt",key:p}),s.create({type:"decrypt",key:o}),s.create({type:"encrypt",key:v})]:this.ciphers=[s.create({type:"decrypt",key:v}),s.create({type:"encrypt",key:o}),s.create({type:"decrypt",key:p})]}function i(l){S.call(this,l);var b=new A(this.type,this.options.key);this._edeState=b}return g(i,S),Ta=i,i.create=function(b){return new i(b)},i.prototype._update=function(b,p,o,v){var y=this._edeState;y.ciphers[0]._update(b,p,o,v),y.ciphers[1]._update(o,v,o,v),y.ciphers[2]._update(o,v,o,v)},i.prototype._pad=s.prototype._pad,i.prototype._unpad=s.prototype._unpad,Ta}var ih;function fp(){return ih||(ih=1,sr.utils=_l(),sr.Cipher=Pf(),sr.DES=Al(),sr.CBC=np(),sr.EDE=ap()),sr}var ri={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var nh;function op(){return nh||(nh=1,(function(m,g){var S=Qe.requireDist(),s=S.Buffer;function A(l,b){for(var p in l)b[p]=l[p]}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?m.exports=S:(A(S,g),g.Buffer=i);function i(l,b,p){return s(l,b,p)}i.prototype=Object.create(s.prototype),A(s,i),i.from=function(l,b,p){if(typeof l=="number")throw new TypeError("Argument must not be a number");return s(l,b,p)},i.alloc=function(l,b,p){if(typeof l!="number")throw new TypeError("Argument must be a number");var o=s(l);return b!==void 0?typeof p=="string"?o.fill(b,p):o.fill(b):o.fill(0),o},i.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return s(l)},i.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return S.SlowBuffer(l)}})(ri,ri.exports)),ri.exports}var Ia,ah;function sp(){if(ah)return Ia;ah=1;var m=or(),g=fp(),S=dt(),s=op().Buffer,A={"des-ede3-cbc":g.CBC.instantiate(g.EDE),"des-ede3":g.EDE,"des-ede-cbc":g.CBC.instantiate(g.EDE),"des-ede":g.EDE,"des-cbc":g.CBC.instantiate(g.DES),"des-ecb":g.DES};A.des=A["des-cbc"],A.des3=A["des-ede3-cbc"],Ia=i,S(i,m);function i(l){m.call(this);var b=l.mode.toLowerCase(),p=A[b],o;l.decrypt?o="decrypt":o="encrypt";var v=l.key;s.isBuffer(v)||(v=s.from(v)),(b==="des-ede"||b==="des-ede-cbc")&&(v=s.concat([v,v.slice(0,8)]));var y=l.iv;s.isBuffer(y)||(y=s.from(y)),this._des=p.create({key:v,iv:y,type:o})}return i.prototype._update=function(l){return s.from(this._des.update(l))},i.prototype._final=function(){return s.from(this._des.final())},Ia}var Vt={},ii={},ni={},fh;function hp(){return fh||(fh=1,ni.encrypt=function(m,g){return m._cipher.encryptBlock(g)},ni.decrypt=function(m,g){return m._cipher.decryptBlock(g)}),ni}var ai={},ka,oh;function qr(){return oh||(oh=1,ka=function(g,S){for(var s=Math.min(g.length,S.length),A=new xe.Buffer(s),i=0;i<s;++i)A[i]=g[i]^S[i];return A}),ka}var sh;function up(){if(sh)return ai;sh=1;var m=qr();return ai.encrypt=function(g,S){var s=m(S,g._prev);return g._prev=g._cipher.encryptBlock(s),g._prev},ai.decrypt=function(g,S){var s=g._prev;g._prev=S;var A=g._cipher.decryptBlock(S);return m(A,s)},ai}var Pa={},fi={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var hh;function er(){return hh||(hh=1,(function(m,g){var S=Qe.requireDist(),s=S.Buffer;function A(l,b){for(var p in l)b[p]=l[p]}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?m.exports=S:(A(S,g),g.Buffer=i);function i(l,b,p){return s(l,b,p)}i.prototype=Object.create(s.prototype),A(s,i),i.from=function(l,b,p){if(typeof l=="number")throw new TypeError("Argument must not be a number");return s(l,b,p)},i.alloc=function(l,b,p){if(typeof l!="number")throw new TypeError("Argument must be a number");var o=s(l);return b!==void 0?typeof p=="string"?o.fill(b,p):o.fill(b):o.fill(0),o},i.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return s(l)},i.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return S.SlowBuffer(l)}})(fi,fi.exports)),fi.exports}var uh;function cp(){if(uh)return Pa;uh=1;var m=er().Buffer,g=qr();function S(s,A,i){var l=A.length,b=g(A,s._cache);return s._cache=s._cache.slice(l),s._prev=m.concat([s._prev,i?A:b]),b}return Pa.encrypt=function(s,A,i){for(var l=m.allocUnsafe(0),b;A.length;)if(s._cache.length===0&&(s._cache=s._cipher.encryptBlock(s._prev),s._prev=m.allocUnsafe(0)),s._cache.length<=A.length)b=s._cache.length,l=m.concat([l,S(s,A.slice(0,b),i)]),A=A.slice(b);else{l=m.concat([l,S(s,A,i)]);break}return l},Pa}var Na={},ch;function lp(){if(ch)return Na;ch=1;var m=er().Buffer;function g(S,s,A){var i=S._cipher.encryptBlock(S._prev),l=i[0]^s;return S._prev=m.concat([S._prev.slice(1),m.from([A?s:l])]),l}return Na.encrypt=function(S,s,A){for(var i=s.length,l=m.allocUnsafe(i),b=-1;++b<i;)l[b]=g(S,s[b],A);return l},Na}var Oa={},lh;function dp(){if(lh)return Oa;lh=1;var m=er().Buffer;function g(s,A,i){for(var l,b=-1,p=8,o=0,v,y;++b<p;)l=s._cipher.encryptBlock(s._prev),v=A&1<<7-b?128:0,y=l[0]^v,o+=(y&128)>>b%8,s._prev=S(s._prev,i?v:y);return o}function S(s,A){var i=s.length,l=-1,b=m.allocUnsafe(s.length);for(s=m.concat([s,m.from([A])]);++l<i;)b[l]=s[l]<<1|s[l+1]>>7;return b}return Oa.encrypt=function(s,A,i){for(var l=A.length,b=m.allocUnsafe(l),p=-1;++p<l;)b[p]=g(s,A[p],i);return b},Oa}var qa={},dh;function pp(){if(dh)return qa;dh=1;var m=qr();function g(S){return S._prev=S._cipher.encryptBlock(S._prev),S._prev}return qa.encrypt=function(S,s){for(;S._cache.length<s.length;)S._cache=xe.Buffer.concat([S._cache,g(S)]);var A=S._cache.slice(0,s.length);return S._cache=S._cache.slice(s.length),m(s,A)},qa}var Ua={},La,ph;function El(){if(ph)return La;ph=1;function m(g){for(var S=g.length,s;S--;)if(s=g.readUInt8(S),s===255)g.writeUInt8(0,S);else{s++,g.writeUInt8(s,S);break}}return La=m,La}var vh;function bh(){if(vh)return Ua;vh=1;var m=qr(),g=er().Buffer,S=El();function s(i){var l=i._cipher.encryptBlockRaw(i._prev);return S(i._prev),l}var A=16;return Ua.encrypt=function(i,l){var b=Math.ceil(l.length/A),p=i._cache.length;i._cache=g.concat([i._cache,g.allocUnsafe(b*A)]);for(var o=0;o<b;o++){var v=s(i),y=p+o*A;i._cache.writeUInt32BE(v[0],y+0),i._cache.writeUInt32BE(v[1],y+4),i._cache.writeUInt32BE(v[2],y+8),i._cache.writeUInt32BE(v[3],y+12)}var x=i._cache.slice(0,l.length);return i._cache=i._cache.slice(l.length),m(l,x)},Ua}const vp={cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},bp={cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},mp={cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},Sl={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:vp,aes192:bp,aes256:mp,"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}};var Ha,mh;function Nf(){if(mh)return Ha;mh=1;var m={ECB:hp(),CBC:up(),CFB:cp(),CFB8:lp(),CFB1:dp(),OFB:pp(),CTR:bh(),GCM:bh()},g=Sl;for(var S in g)g[S].module=m[g[S].mode];return Ha=g,Ha}var $a={},yh;function Ii(){if(yh)return $a;yh=1;var m=er().Buffer;function g(b){m.isBuffer(b)||(b=m.from(b));for(var p=b.length/4|0,o=new Array(p),v=0;v<p;v++)o[v]=b.readUInt32BE(v*4);return o}function S(b){for(var p=0;p<b.length;b++)b[p]=0}function s(b,p,o,v,y){for(var x=o[0],M=o[1],_=o[2],E=o[3],B=b[0]^p[0],F=b[1]^p[1],C=b[2]^p[2],R=b[3]^p[3],D,q,O,Y,Q=4,L=1;L<y;L++)D=x[B>>>24]^M[F>>>16&255]^_[C>>>8&255]^E[R&255]^p[Q++],q=x[F>>>24]^M[C>>>16&255]^_[R>>>8&255]^E[B&255]^p[Q++],O=x[C>>>24]^M[R>>>16&255]^_[B>>>8&255]^E[F&255]^p[Q++],Y=x[R>>>24]^M[B>>>16&255]^_[F>>>8&255]^E[C&255]^p[Q++],B=D,F=q,C=O,R=Y;return D=(v[B>>>24]<<24|v[F>>>16&255]<<16|v[C>>>8&255]<<8|v[R&255])^p[Q++],q=(v[F>>>24]<<24|v[C>>>16&255]<<16|v[R>>>8&255]<<8|v[B&255])^p[Q++],O=(v[C>>>24]<<24|v[R>>>16&255]<<16|v[B>>>8&255]<<8|v[F&255])^p[Q++],Y=(v[R>>>24]<<24|v[B>>>16&255]<<16|v[F>>>8&255]<<8|v[C&255])^p[Q++],D=D>>>0,q=q>>>0,O=O>>>0,Y=Y>>>0,[D,q,O,Y]}var A=[0,1,2,4,8,16,32,64,128,27,54],i=(function(){for(var b=new Array(256),p=0;p<256;p++)p<128?b[p]=p<<1:b[p]=p<<1^283;for(var o=[],v=[],y=[[],[],[],[]],x=[[],[],[],[]],M=0,_=0,E=0;E<256;++E){var B=_^_<<1^_<<2^_<<3^_<<4;B=B>>>8^B&255^99,o[M]=B,v[B]=M;var F=b[M],C=b[F],R=b[C],D=b[B]*257^B*16843008;y[0][M]=D<<24|D>>>8,y[1][M]=D<<16|D>>>16,y[2][M]=D<<8|D>>>24,y[3][M]=D,D=R*16843009^C*65537^F*257^M*16843008,x[0][B]=D<<24|D>>>8,x[1][B]=D<<16|D>>>16,x[2][B]=D<<8|D>>>24,x[3][B]=D,M===0?M=_=1:(M=F^b[b[b[R^F]]],_^=b[b[_]])}return{SBOX:o,INV_SBOX:v,SUB_MIX:y,INV_SUB_MIX:x}})();function l(b){this._key=g(b),this._reset()}return l.blockSize=16,l.keySize=256/8,l.prototype.blockSize=l.blockSize,l.prototype.keySize=l.keySize,l.prototype._reset=function(){for(var b=this._key,p=b.length,o=p+6,v=(o+1)*4,y=[],x=0;x<p;x++)y[x]=b[x];for(x=p;x<v;x++){var M=y[x-1];x%p===0?(M=M<<8|M>>>24,M=i.SBOX[M>>>24]<<24|i.SBOX[M>>>16&255]<<16|i.SBOX[M>>>8&255]<<8|i.SBOX[M&255],M^=A[x/p|0]<<24):p>6&&x%p===4&&(M=i.SBOX[M>>>24]<<24|i.SBOX[M>>>16&255]<<16|i.SBOX[M>>>8&255]<<8|i.SBOX[M&255]),y[x]=y[x-p]^M}for(var _=[],E=0;E<v;E++){var B=v-E,F=y[B-(E%4?0:4)];E<4||B<=4?_[E]=F:_[E]=i.INV_SUB_MIX[0][i.SBOX[F>>>24]]^i.INV_SUB_MIX[1][i.SBOX[F>>>16&255]]^i.INV_SUB_MIX[2][i.SBOX[F>>>8&255]]^i.INV_SUB_MIX[3][i.SBOX[F&255]]}this._nRounds=o,this._keySchedule=y,this._invKeySchedule=_},l.prototype.encryptBlockRaw=function(b){return b=g(b),s(b,this._keySchedule,i.SUB_MIX,i.SBOX,this._nRounds)},l.prototype.encryptBlock=function(b){var p=this.encryptBlockRaw(b),o=m.allocUnsafe(16);return o.writeUInt32BE(p[0],0),o.writeUInt32BE(p[1],4),o.writeUInt32BE(p[2],8),o.writeUInt32BE(p[3],12),o},l.prototype.decryptBlock=function(b){b=g(b);var p=b[1];b[1]=b[3],b[3]=p;var o=s(b,this._invKeySchedule,i.INV_SUB_MIX,i.INV_SBOX,this._nRounds),v=m.allocUnsafe(16);return v.writeUInt32BE(o[0],0),v.writeUInt32BE(o[3],4),v.writeUInt32BE(o[2],8),v.writeUInt32BE(o[1],12),v},l.prototype.scrub=function(){S(this._keySchedule),S(this._invKeySchedule),S(this._key)},$a.AES=l,$a}var ja,gh;function yp(){if(gh)return ja;gh=1;var m=er().Buffer,g=m.alloc(16,0);function S(i){return[i.readUInt32BE(0),i.readUInt32BE(4),i.readUInt32BE(8),i.readUInt32BE(12)]}function s(i){var l=m.allocUnsafe(16);return l.writeUInt32BE(i[0]>>>0,0),l.writeUInt32BE(i[1]>>>0,4),l.writeUInt32BE(i[2]>>>0,8),l.writeUInt32BE(i[3]>>>0,12),l}function A(i){this.h=i,this.state=m.alloc(16,0),this.cache=m.allocUnsafe(0)}return A.prototype.ghash=function(i){for(var l=-1;++l<i.length;)this.state[l]^=i[l];this._multiply()},A.prototype._multiply=function(){for(var i=S(this.h),l=[0,0,0,0],b,p,o,v=-1;++v<128;){for(p=(this.state[~~(v/8)]&1<<7-v%8)!==0,p&&(l[0]^=i[0],l[1]^=i[1],l[2]^=i[2],l[3]^=i[3]),o=(i[3]&1)!==0,b=3;b>0;b--)i[b]=i[b]>>>1|(i[b-1]&1)<<31;i[0]=i[0]>>>1,o&&(i[0]=i[0]^225<<24)}this.state=s(l)},A.prototype.update=function(i){this.cache=m.concat([this.cache,i]);for(var l;this.cache.length>=16;)l=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(l)},A.prototype.final=function(i,l){return this.cache.length&&this.ghash(m.concat([this.cache,g],16)),this.ghash(s([0,i,0,l])),this.state},ja=A,ja}var za,xh;function Bl(){if(xh)return za;xh=1;var m=Ii(),g=er().Buffer,S=or(),s=dt(),A=yp(),i=qr(),l=El();function b(v,y){var x=0;v.length!==y.length&&x++;for(var M=Math.min(v.length,y.length),_=0;_<M;++_)x+=v[_]^y[_];return x}function p(v,y,x){if(y.length===12)return v._finID=g.concat([y,g.from([0,0,0,1])]),g.concat([y,g.from([0,0,0,2])]);var M=new A(x),_=y.length,E=_%16;M.update(y),E&&(E=16-E,M.update(g.alloc(E,0))),M.update(g.alloc(8,0));var B=_*8,F=g.alloc(8);F.writeUIntBE(B,0,8),M.update(F),v._finID=M.state;var C=g.from(v._finID);return l(C),C}function o(v,y,x,M){S.call(this);var _=g.alloc(4,0);this._cipher=new m.AES(y);var E=this._cipher.encryptBlock(_);this._ghash=new A(E),x=p(this,x,E),this._prev=g.from(x),this._cache=g.allocUnsafe(0),this._secCache=g.allocUnsafe(0),this._decrypt=M,this._alen=0,this._len=0,this._mode=v,this._authTag=null,this._called=!1}return s(o,S),o.prototype._update=function(v){if(!this._called&&this._alen){var y=16-this._alen%16;y<16&&(y=g.alloc(y,0),this._ghash.update(y))}this._called=!0;var x=this._mode.encrypt(this,v);return this._decrypt?this._ghash.update(v):this._ghash.update(x),this._len+=v.length,x},o.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var v=i(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&b(v,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=v,this._cipher.scrub()},o.prototype.getAuthTag=function(){if(this._decrypt||!g.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},o.prototype.setAuthTag=function(y){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=y},o.prototype.setAAD=function(y){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(y),this._alen+=y.length},za=o,za}var Ka,wh;function Fl(){if(wh)return Ka;wh=1;var m=Ii(),g=er().Buffer,S=or(),s=dt();function A(i,l,b,p){S.call(this),this._cipher=new m.AES(l),this._prev=g.from(b),this._cache=g.allocUnsafe(0),this._secCache=g.allocUnsafe(0),this._decrypt=p,this._mode=i}return s(A,S),A.prototype._update=function(i){return this._mode.encrypt(this,i,this._decrypt)},A.prototype._final=function(){this._cipher.scrub()},Ka=A,Ka}var oi={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var Mh;function gp(){return Mh||(Mh=1,(function(m,g){var S=Qe.requireDist(),s=S.Buffer;function A(l,b){for(var p in l)b[p]=l[p]}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?m.exports=S:(A(S,g),g.Buffer=i);function i(l,b,p){return s(l,b,p)}i.prototype=Object.create(s.prototype),A(s,i),i.from=function(l,b,p){if(typeof l=="number")throw new TypeError("Argument must not be a number");return s(l,b,p)},i.alloc=function(l,b,p){if(typeof l!="number")throw new TypeError("Argument must be a number");var o=s(l);return b!==void 0?typeof p=="string"?o.fill(b,p):o.fill(b):o.fill(0),o},i.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return s(l)},i.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return S.SlowBuffer(l)}})(oi,oi.exports)),oi.exports}var Wa,_h;function ki(){if(_h)return Wa;_h=1;var m=gp().Buffer,g=Af();function S(s,A,i,l){if(m.isBuffer(s)||(s=m.from(s,"binary")),A&&(m.isBuffer(A)||(A=m.from(A,"binary")),A.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var b=i/8,p=m.alloc(b),o=m.alloc(l||0),v=m.alloc(0);b>0||l>0;){var y=new g;y.update(v),y.update(s),A&&y.update(A),v=y.digest();var x=0;if(b>0){var M=p.length-b;x=Math.min(b,v.length),v.copy(p,M,0,x),b-=x}if(x<v.length&&l>0){var _=o.length-l,E=Math.min(l,v.length-x);v.copy(o,_,x,x+E),l-=E}}return v.fill(0),{key:p,iv:o}}return Wa=S,Wa}var Ah;function xp(){if(Ah)return ii;Ah=1;var m=Nf(),g=Bl(),S=er().Buffer,s=Fl(),A=or(),i=Ii(),l=ki(),b=dt();function p(M,_,E){A.call(this),this._cache=new v,this._cipher=new i.AES(_),this._prev=S.from(E),this._mode=M,this._autopadding=!0}b(p,A),p.prototype._update=function(M){this._cache.add(M);for(var _,E,B=[];_=this._cache.get();)E=this._mode.encrypt(this,_),B.push(E);return S.concat(B)};var o=S.alloc(16,16);p.prototype._final=function(){var M=this._cache.flush();if(this._autopadding)return M=this._mode.encrypt(this,M),this._cipher.scrub(),M;if(!M.equals(o))throw this._cipher.scrub(),new Error("data not multiple of block length")},p.prototype.setAutoPadding=function(M){return this._autopadding=!!M,this};function v(){this.cache=S.allocUnsafe(0)}v.prototype.add=function(M){this.cache=S.concat([this.cache,M])},v.prototype.get=function(){if(this.cache.length>15){var M=this.cache.slice(0,16);return this.cache=this.cache.slice(16),M}return null},v.prototype.flush=function(){for(var M=16-this.cache.length,_=S.allocUnsafe(M),E=-1;++E<M;)_.writeUInt8(M,E);return S.concat([this.cache,_])};function y(M,_,E){var B=m[M.toLowerCase()];if(!B)throw new TypeError("invalid suite type");if(typeof _=="string"&&(_=S.from(_)),_.length!==B.key/8)throw new TypeError("invalid key length "+_.length);if(typeof E=="string"&&(E=S.from(E)),B.mode!=="GCM"&&E.length!==B.iv)throw new TypeError("invalid iv length "+E.length);return B.type==="stream"?new s(B.module,_,E):B.type==="auth"?new g(B.module,_,E):new p(B.module,_,E)}function x(M,_){var E=m[M.toLowerCase()];if(!E)throw new TypeError("invalid suite type");var B=l(_,!1,E.key,E.iv);return y(M,B.key,B.iv)}return ii.createCipheriv=y,ii.createCipher=x,ii}var si={},Eh;function wp(){if(Eh)return si;Eh=1;var m=Bl(),g=er().Buffer,S=Nf(),s=Fl(),A=or(),i=Ii(),l=ki(),b=dt();function p(M,_,E){A.call(this),this._cache=new o,this._last=void 0,this._cipher=new i.AES(_),this._prev=g.from(E),this._mode=M,this._autopadding=!0}b(p,A),p.prototype._update=function(M){this._cache.add(M);for(var _,E,B=[];_=this._cache.get(this._autopadding);)E=this._mode.decrypt(this,_),B.push(E);return g.concat(B)},p.prototype._final=function(){var M=this._cache.flush();if(this._autopadding)return v(this._mode.decrypt(this,M));if(M)throw new Error("data not multiple of block length")},p.prototype.setAutoPadding=function(M){return this._autopadding=!!M,this};function o(){this.cache=g.allocUnsafe(0)}o.prototype.add=function(M){this.cache=g.concat([this.cache,M])},o.prototype.get=function(M){var _;if(M){if(this.cache.length>16)return _=this.cache.slice(0,16),this.cache=this.cache.slice(16),_}else if(this.cache.length>=16)return _=this.cache.slice(0,16),this.cache=this.cache.slice(16),_;return null},o.prototype.flush=function(){if(this.cache.length)return this.cache};function v(M){var _=M[15];if(_<1||_>16)throw new Error("unable to decrypt data");for(var E=-1;++E<_;)if(M[E+(16-_)]!==_)throw new Error("unable to decrypt data");if(_!==16)return M.slice(0,16-_)}function y(M,_,E){var B=S[M.toLowerCase()];if(!B)throw new TypeError("invalid suite type");if(typeof E=="string"&&(E=g.from(E)),B.mode!=="GCM"&&E.length!==B.iv)throw new TypeError("invalid iv length "+E.length);if(typeof _=="string"&&(_=g.from(_)),_.length!==B.key/8)throw new TypeError("invalid key length "+_.length);return B.type==="stream"?new s(B.module,_,E,!0):B.type==="auth"?new m(B.module,_,E,!0):new p(B.module,_,E)}function x(M,_){var E=S[M.toLowerCase()];if(!E)throw new TypeError("invalid suite type");var B=l(_,!1,E.key,E.iv);return y(M,B.key,B.iv)}return si.createDecipher=x,si.createDecipheriv=y,si}var Sh;function Of(){if(Sh)return Vt;Sh=1;var m=xp(),g=wp(),S=Sl;function s(){return Object.keys(S)}return Vt.createCipher=Vt.Cipher=m.createCipher,Vt.createCipheriv=Vt.Cipheriv=m.createCipheriv,Vt.createDecipher=Vt.Decipher=g.createDecipher,Vt.createDecipheriv=Vt.Decipheriv=g.createDecipheriv,Vt.listCiphers=Vt.getCiphers=s,Vt}var Ga={},Bh;function Mp(){return Bh||(Bh=1,(function(m){m["des-ecb"]={key:8,iv:0},m["des-cbc"]=m.des={key:8,iv:8},m["des-ede3-cbc"]=m.des3={key:24,iv:8},m["des-ede3"]={key:24,iv:0},m["des-ede-cbc"]={key:16,iv:8},m["des-ede"]={key:16,iv:0}})(Ga)),Ga}var Fh;function _p(){if(Fh)return Gt;Fh=1;var m=sp(),g=Of(),S=Nf(),s=Mp(),A=ki();function i(v,y){v=v.toLowerCase();var x,M;if(S[v])x=S[v].key,M=S[v].iv;else if(s[v])x=s[v].key*8,M=s[v].iv;else throw new TypeError("invalid suite type");var _=A(y,!1,x,M);return b(v,_.key,_.iv)}function l(v,y){v=v.toLowerCase();var x,M;if(S[v])x=S[v].key,M=S[v].iv;else if(s[v])x=s[v].key*8,M=s[v].iv;else throw new TypeError("invalid suite type");var _=A(y,!1,x,M);return p(v,_.key,_.iv)}function b(v,y,x){if(v=v.toLowerCase(),S[v])return g.createCipheriv(v,y,x);if(s[v])return new m({key:y,iv:x,mode:v});throw new TypeError("invalid suite type")}function p(v,y,x){if(v=v.toLowerCase(),S[v])return g.createDecipheriv(v,y,x);if(s[v])return new m({key:y,iv:x,mode:v,decrypt:!0});throw new TypeError("invalid suite type")}function o(){return Object.keys(s).concat(g.getCiphers())}return Gt.createCipher=Gt.Cipher=i,Gt.createCipheriv=Gt.Cipheriv=b,Gt.createDecipher=Gt.Decipher=l,Gt.createDecipheriv=Gt.Decipheriv=p,Gt.listCiphers=Gt.getCiphers=o,Gt}var hr={},xi={exports:{}},Ap=xi.exports,Ch;function Cl(){return Ch||(Ch=1,(function(m){(function(g,S){function s(c,e){if(!c)throw new Error(e||"Assertion failed")}function A(c,e){c.super_=e;var r=function(){};r.prototype=e.prototype,c.prototype=new r,c.prototype.constructor=c}function i(c,e,r){if(i.isBN(c))return c;this.negative=0,this.words=null,this.length=0,this.red=null,c!==null&&((e==="le"||e==="be")&&(r=e,e=10),this._init(c||0,e||10,r||"be"))}typeof g=="object"?g.exports=i:S.BN=i,i.BN=i,i.wordSize=26;var l;try{typeof window<"u"&&typeof window.Buffer<"u"?l=window.Buffer:l=Qe.requireDist().Buffer}catch{}i.isBN=function(e){return e instanceof i?!0:e!==null&&typeof e=="object"&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,r){return e.cmp(r)>0?e:r},i.min=function(e,r){return e.cmp(r)<0?e:r},i.prototype._init=function(e,r,n){if(typeof e=="number")return this._initNumber(e,r,n);if(typeof e=="object")return this._initArray(e,r,n);r==="hex"&&(r=16),s(r===(r|0)&&r>=2&&r<=36),e=e.toString().replace(/\s+/g,"");var a=0;e[0]==="-"&&(a++,this.negative=1),a<e.length&&(r===16?this._parseHex(e,a,n):(this._parseBase(e,r,a),n==="le"&&this._initArray(this.toArray(),r,n)))},i.prototype._initNumber=function(e,r,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[e&67108863],this.length=1):e<4503599627370496?(this.words=[e&67108863,e/67108864&67108863],this.length=2):(s(e<9007199254740992),this.words=[e&67108863,e/67108864&67108863,1],this.length=3),n==="le"&&this._initArray(this.toArray(),r,n)},i.prototype._initArray=function(e,r,n){if(s(typeof e.length=="number"),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var a=0;a<this.length;a++)this.words[a]=0;var u,d,w=0;if(n==="be")for(a=e.length-1,u=0;a>=0;a-=3)d=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[u]|=d<<w&67108863,this.words[u+1]=d>>>26-w&67108863,w+=24,w>=26&&(w-=26,u++);else if(n==="le")for(a=0,u=0;a<e.length;a+=3)d=e[a]|e[a+1]<<8|e[a+2]<<16,this.words[u]|=d<<w&67108863,this.words[u+1]=d>>>26-w&67108863,w+=24,w>=26&&(w-=26,u++);return this.strip()};function b(c,e){var r=c.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function p(c,e,r){var n=b(c,r);return r-1>=e&&(n|=b(c,r-1)<<4),n}i.prototype._parseHex=function(e,r,n){this.length=Math.ceil((e.length-r)/6),this.words=new Array(this.length);for(var a=0;a<this.length;a++)this.words[a]=0;var u=0,d=0,w;if(n==="be")for(a=e.length-1;a>=r;a-=2)w=p(e,r,a)<<u,this.words[d]|=w&67108863,u>=18?(u-=18,d+=1,this.words[d]|=w>>>26):u+=8;else{var f=e.length-r;for(a=f%2===0?r+1:r;a<e.length;a+=2)w=p(e,r,a)<<u,this.words[d]|=w&67108863,u>=18?(u-=18,d+=1,this.words[d]|=w>>>26):u+=8}this.strip()};function o(c,e,r,n){for(var a=0,u=Math.min(c.length,r),d=e;d<u;d++){var w=c.charCodeAt(d)-48;a*=n,w>=49?a+=w-49+10:w>=17?a+=w-17+10:a+=w}return a}i.prototype._parseBase=function(e,r,n){this.words=[0],this.length=1;for(var a=0,u=1;u<=67108863;u*=r)a++;a--,u=u/r|0;for(var d=e.length-n,w=d%a,f=Math.min(d,d-w)+n,t=0,h=n;h<f;h+=a)t=o(e,h,h+a,r),this.imuln(u),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t);if(w!==0){var H=1;for(t=o(e,h,e.length,r),h=0;h<w;h++)H*=r;this.imuln(H),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t)}this.strip()},i.prototype.copy=function(e){e.words=new Array(this.length);for(var r=0;r<this.length;r++)e.words[r]=this.words[r];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var v=["","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"],y=[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],x=[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];i.prototype.toString=function(e,r){e=e||10,r=r|0||1;var n;if(e===16||e==="hex"){n="";for(var a=0,u=0,d=0;d<this.length;d++){var w=this.words[d],f=((w<<a|u)&16777215).toString(16);u=w>>>24-a&16777215,a+=2,a>=26&&(a-=26,d--),u!==0||d!==this.length-1?n=v[6-f.length]+f+n:n=f+n}for(u!==0&&(n=u.toString(16)+n);n.length%r!==0;)n="0"+n;return this.negative!==0&&(n="-"+n),n}if(e===(e|0)&&e>=2&&e<=36){var t=y[e],h=x[e];n="";var H=this.clone();for(H.negative=0;!H.isZero();){var j=H.modn(h).toString(e);H=H.idivn(h),H.isZero()?n=j+n:n=v[t-j.length]+j+n}for(this.isZero()&&(n="0"+n);n.length%r!==0;)n="0"+n;return this.negative!==0&&(n="-"+n),n}s(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return this.length===2?e+=this.words[1]*67108864:this.length===3&&this.words[2]===1?e+=4503599627370496+this.words[1]*67108864:this.length>2&&s(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,r){return s(typeof l<"u"),this.toArrayLike(l,e,r)},i.prototype.toArray=function(e,r){return this.toArrayLike(Array,e,r)},i.prototype.toArrayLike=function(e,r,n){var a=this.byteLength(),u=n||Math.max(1,a);s(a<=u,"byte array longer than desired length"),s(u>0,"Requested array length <= 0"),this.strip();var d=r==="le",w=new e(u),f,t,h=this.clone();if(d){for(t=0;!h.isZero();t++)f=h.andln(255),h.iushrn(8),w[t]=f;for(;t<u;t++)w[t]=0}else{for(t=0;t<u-a;t++)w[t]=0;for(t=0;!h.isZero();t++)f=h.andln(255),h.iushrn(8),w[u-t-1]=f}return w},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var r=e,n=0;return r>=4096&&(n+=13,r>>>=13),r>=64&&(n+=7,r>>>=7),r>=8&&(n+=4,r>>>=4),r>=2&&(n+=2,r>>>=2),n+r},i.prototype._zeroBits=function(e){if(e===0)return 26;var r=e,n=0;return(r&8191)===0&&(n+=13,r>>>=13),(r&127)===0&&(n+=7,r>>>=7),(r&15)===0&&(n+=4,r>>>=4),(r&3)===0&&(n+=2,r>>>=2),(r&1)===0&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],r=this._countBits(e);return(this.length-1)*26+r};function M(c){for(var e=new Array(c.bitLength()),r=0;r<e.length;r++){var n=r/26|0,a=r%26;e[r]=(c.words[n]&1<<a)>>>a}return e}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,r=0;r<this.length;r++){var n=this._zeroBits(this.words[r]);if(e+=n,n!==26)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return this.negative!==0?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]|e.words[r];return this.strip()},i.prototype.ior=function(e){return s((this.negative|e.negative)===0),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var r;this.length>e.length?r=e:r=this;for(var n=0;n<r.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=r.length,this.strip()},i.prototype.iand=function(e){return s((this.negative|e.negative)===0),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var r,n;this.length>e.length?(r=this,n=e):(r=e,n=this);for(var a=0;a<n.length;a++)this.words[a]=r.words[a]^n.words[a];if(this!==r)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=r.length,this.strip()},i.prototype.ixor=function(e){return s((this.negative|e.negative)===0),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){s(typeof e=="number"&&e>=0);var r=Math.ceil(e/26)|0,n=e%26;this._expand(r),n>0&&r--;for(var a=0;a<r;a++)this.words[a]=~this.words[a]&67108863;return n>0&&(this.words[a]=~this.words[a]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,r){s(typeof e=="number"&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),r?this.words[n]=this.words[n]|1<<a:this.words[n]=this.words[n]&~(1<<a),this.strip()},i.prototype.iadd=function(e){var r;if(this.negative!==0&&e.negative===0)return this.negative=0,r=this.isub(e),this.negative^=1,this._normSign();if(this.negative===0&&e.negative!==0)return e.negative=0,r=this.isub(e),e.negative=1,r._normSign();var n,a;this.length>e.length?(n=this,a=e):(n=e,a=this);for(var u=0,d=0;d<a.length;d++)r=(n.words[d]|0)+(a.words[d]|0)+u,this.words[d]=r&67108863,u=r>>>26;for(;u!==0&&d<n.length;d++)r=(n.words[d]|0)+u,this.words[d]=r&67108863,u=r>>>26;if(this.length=n.length,u!==0)this.words[this.length]=u,this.length++;else if(n!==this)for(;d<n.length;d++)this.words[d]=n.words[d];return this},i.prototype.add=function(e){var r;return e.negative!==0&&this.negative===0?(e.negative=0,r=this.sub(e),e.negative^=1,r):e.negative===0&&this.negative!==0?(this.negative=0,r=e.sub(this),this.negative=1,r):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var r=this.iadd(e);return e.negative=1,r._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(n===0)return this.negative=0,this.length=1,this.words[0]=0,this;var a,u;n>0?(a=this,u=e):(a=e,u=this);for(var d=0,w=0;w<u.length;w++)r=(a.words[w]|0)-(u.words[w]|0)+d,d=r>>26,this.words[w]=r&67108863;for(;d!==0&&w<a.length;w++)r=(a.words[w]|0)+d,d=r>>26,this.words[w]=r&67108863;if(d===0&&w<a.length&&a!==this)for(;w<a.length;w++)this.words[w]=a.words[w];return this.length=Math.max(this.length,w),a!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(e){return this.clone().isub(e)};function _(c,e,r){r.negative=e.negative^c.negative;var n=c.length+e.length|0;r.length=n,n=n-1|0;var a=c.words[0]|0,u=e.words[0]|0,d=a*u,w=d&67108863,f=d/67108864|0;r.words[0]=w;for(var t=1;t<n;t++){for(var h=f>>>26,H=f&67108863,j=Math.min(t,e.length-1),U=Math.max(0,t-c.length+1);U<=j;U++){var ee=t-U|0;a=c.words[ee]|0,u=e.words[U]|0,d=a*u+H,h+=d/67108864|0,H=d&67108863}r.words[t]=H|0,f=h|0}return f!==0?r.words[t]=f|0:r.length--,r.strip()}var E=function(e,r,n){var a=e.words,u=r.words,d=n.words,w=0,f,t,h,H=a[0]|0,j=H&8191,U=H>>>13,ee=a[1]|0,J=ee&8191,N=ee>>>13,z=a[2]|0,Z=z&8191,k=z>>>13,P=a[3]|0,T=P&8191,G=P>>>13,fe=a[4]|0,te=fe&8191,re=fe>>>13,he=a[5]|0,ie=he&8191,ne=he>>>13,pe=a[6]|0,oe=pe&8191,se=pe>>>13,Re=a[7]|0,de=Re&8191,ve=Re>>>13,ot=a[8]|0,be=ot&8191,me=ot>>>13,ut=a[9]|0,Fe=ut&8191,Be=ut>>>13,vt=u[0]|0,Ee=vt&8191,Se=vt>>>13,ct=u[1]|0,_e=ct&8191,we=ct>>>13,Mt=u[2]|0,Ce=Mt&8191,De=Mt>>>13,At=u[3]|0,Te=At&8191,Ie=At>>>13,Rt=u[4]|0,Pe=Rt&8191,Ne=Rt>>>13,Nt=u[5]|0,Oe=Nt&8191,qe=Nt>>>13,qt=u[6]|0,ke=qt&8191,Ue=qt>>>13,$=u[7]|0,W=$&8191,K=$>>>13,I=u[8]|0,V=I&8191,ae=I>>>13,ye=u[9]|0,ue=ye&8191,le=ye>>>13;n.negative=e.negative^r.negative,n.length=19,f=Math.imul(j,Ee),t=Math.imul(j,Se),t=t+Math.imul(U,Ee)|0,h=Math.imul(U,Se);var Ye=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,f=Math.imul(J,Ee),t=Math.imul(J,Se),t=t+Math.imul(N,Ee)|0,h=Math.imul(N,Se),f=f+Math.imul(j,_e)|0,t=t+Math.imul(j,we)|0,t=t+Math.imul(U,_e)|0,h=h+Math.imul(U,we)|0;var ze=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(ze>>>26)|0,ze&=67108863,f=Math.imul(Z,Ee),t=Math.imul(Z,Se),t=t+Math.imul(k,Ee)|0,h=Math.imul(k,Se),f=f+Math.imul(J,_e)|0,t=t+Math.imul(J,we)|0,t=t+Math.imul(N,_e)|0,h=h+Math.imul(N,we)|0,f=f+Math.imul(j,Ce)|0,t=t+Math.imul(j,De)|0,t=t+Math.imul(U,Ce)|0,h=h+Math.imul(U,De)|0;var ht=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(ht>>>26)|0,ht&=67108863,f=Math.imul(T,Ee),t=Math.imul(T,Se),t=t+Math.imul(G,Ee)|0,h=Math.imul(G,Se),f=f+Math.imul(Z,_e)|0,t=t+Math.imul(Z,we)|0,t=t+Math.imul(k,_e)|0,h=h+Math.imul(k,we)|0,f=f+Math.imul(J,Ce)|0,t=t+Math.imul(J,De)|0,t=t+Math.imul(N,Ce)|0,h=h+Math.imul(N,De)|0,f=f+Math.imul(j,Te)|0,t=t+Math.imul(j,Ie)|0,t=t+Math.imul(U,Te)|0,h=h+Math.imul(U,Ie)|0;var Ge=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,f=Math.imul(te,Ee),t=Math.imul(te,Se),t=t+Math.imul(re,Ee)|0,h=Math.imul(re,Se),f=f+Math.imul(T,_e)|0,t=t+Math.imul(T,we)|0,t=t+Math.imul(G,_e)|0,h=h+Math.imul(G,we)|0,f=f+Math.imul(Z,Ce)|0,t=t+Math.imul(Z,De)|0,t=t+Math.imul(k,Ce)|0,h=h+Math.imul(k,De)|0,f=f+Math.imul(J,Te)|0,t=t+Math.imul(J,Ie)|0,t=t+Math.imul(N,Te)|0,h=h+Math.imul(N,Ie)|0,f=f+Math.imul(j,Pe)|0,t=t+Math.imul(j,Ne)|0,t=t+Math.imul(U,Pe)|0,h=h+Math.imul(U,Ne)|0;var et=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(et>>>26)|0,et&=67108863,f=Math.imul(ie,Ee),t=Math.imul(ie,Se),t=t+Math.imul(ne,Ee)|0,h=Math.imul(ne,Se),f=f+Math.imul(te,_e)|0,t=t+Math.imul(te,we)|0,t=t+Math.imul(re,_e)|0,h=h+Math.imul(re,we)|0,f=f+Math.imul(T,Ce)|0,t=t+Math.imul(T,De)|0,t=t+Math.imul(G,Ce)|0,h=h+Math.imul(G,De)|0,f=f+Math.imul(Z,Te)|0,t=t+Math.imul(Z,Ie)|0,t=t+Math.imul(k,Te)|0,h=h+Math.imul(k,Ie)|0,f=f+Math.imul(J,Pe)|0,t=t+Math.imul(J,Ne)|0,t=t+Math.imul(N,Pe)|0,h=h+Math.imul(N,Ne)|0,f=f+Math.imul(j,Oe)|0,t=t+Math.imul(j,qe)|0,t=t+Math.imul(U,Oe)|0,h=h+Math.imul(U,qe)|0;var tt=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(tt>>>26)|0,tt&=67108863,f=Math.imul(oe,Ee),t=Math.imul(oe,Se),t=t+Math.imul(se,Ee)|0,h=Math.imul(se,Se),f=f+Math.imul(ie,_e)|0,t=t+Math.imul(ie,we)|0,t=t+Math.imul(ne,_e)|0,h=h+Math.imul(ne,we)|0,f=f+Math.imul(te,Ce)|0,t=t+Math.imul(te,De)|0,t=t+Math.imul(re,Ce)|0,h=h+Math.imul(re,De)|0,f=f+Math.imul(T,Te)|0,t=t+Math.imul(T,Ie)|0,t=t+Math.imul(G,Te)|0,h=h+Math.imul(G,Ie)|0,f=f+Math.imul(Z,Pe)|0,t=t+Math.imul(Z,Ne)|0,t=t+Math.imul(k,Pe)|0,h=h+Math.imul(k,Ne)|0,f=f+Math.imul(J,Oe)|0,t=t+Math.imul(J,qe)|0,t=t+Math.imul(N,Oe)|0,h=h+Math.imul(N,qe)|0,f=f+Math.imul(j,ke)|0,t=t+Math.imul(j,Ue)|0,t=t+Math.imul(U,ke)|0,h=h+Math.imul(U,Ue)|0;var ft=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(ft>>>26)|0,ft&=67108863,f=Math.imul(de,Ee),t=Math.imul(de,Se),t=t+Math.imul(ve,Ee)|0,h=Math.imul(ve,Se),f=f+Math.imul(oe,_e)|0,t=t+Math.imul(oe,we)|0,t=t+Math.imul(se,_e)|0,h=h+Math.imul(se,we)|0,f=f+Math.imul(ie,Ce)|0,t=t+Math.imul(ie,De)|0,t=t+Math.imul(ne,Ce)|0,h=h+Math.imul(ne,De)|0,f=f+Math.imul(te,Te)|0,t=t+Math.imul(te,Ie)|0,t=t+Math.imul(re,Te)|0,h=h+Math.imul(re,Ie)|0,f=f+Math.imul(T,Pe)|0,t=t+Math.imul(T,Ne)|0,t=t+Math.imul(G,Pe)|0,h=h+Math.imul(G,Ne)|0,f=f+Math.imul(Z,Oe)|0,t=t+Math.imul(Z,qe)|0,t=t+Math.imul(k,Oe)|0,h=h+Math.imul(k,qe)|0,f=f+Math.imul(J,ke)|0,t=t+Math.imul(J,Ue)|0,t=t+Math.imul(N,ke)|0,h=h+Math.imul(N,Ue)|0,f=f+Math.imul(j,W)|0,t=t+Math.imul(j,K)|0,t=t+Math.imul(U,W)|0,h=h+Math.imul(U,K)|0;var at=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(at>>>26)|0,at&=67108863,f=Math.imul(be,Ee),t=Math.imul(be,Se),t=t+Math.imul(me,Ee)|0,h=Math.imul(me,Se),f=f+Math.imul(de,_e)|0,t=t+Math.imul(de,we)|0,t=t+Math.imul(ve,_e)|0,h=h+Math.imul(ve,we)|0,f=f+Math.imul(oe,Ce)|0,t=t+Math.imul(oe,De)|0,t=t+Math.imul(se,Ce)|0,h=h+Math.imul(se,De)|0,f=f+Math.imul(ie,Te)|0,t=t+Math.imul(ie,Ie)|0,t=t+Math.imul(ne,Te)|0,h=h+Math.imul(ne,Ie)|0,f=f+Math.imul(te,Pe)|0,t=t+Math.imul(te,Ne)|0,t=t+Math.imul(re,Pe)|0,h=h+Math.imul(re,Ne)|0,f=f+Math.imul(T,Oe)|0,t=t+Math.imul(T,qe)|0,t=t+Math.imul(G,Oe)|0,h=h+Math.imul(G,qe)|0,f=f+Math.imul(Z,ke)|0,t=t+Math.imul(Z,Ue)|0,t=t+Math.imul(k,ke)|0,h=h+Math.imul(k,Ue)|0,f=f+Math.imul(J,W)|0,t=t+Math.imul(J,K)|0,t=t+Math.imul(N,W)|0,h=h+Math.imul(N,K)|0,f=f+Math.imul(j,V)|0,t=t+Math.imul(j,ae)|0,t=t+Math.imul(U,V)|0,h=h+Math.imul(U,ae)|0;var rt=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(rt>>>26)|0,rt&=67108863,f=Math.imul(Fe,Ee),t=Math.imul(Fe,Se),t=t+Math.imul(Be,Ee)|0,h=Math.imul(Be,Se),f=f+Math.imul(be,_e)|0,t=t+Math.imul(be,we)|0,t=t+Math.imul(me,_e)|0,h=h+Math.imul(me,we)|0,f=f+Math.imul(de,Ce)|0,t=t+Math.imul(de,De)|0,t=t+Math.imul(ve,Ce)|0,h=h+Math.imul(ve,De)|0,f=f+Math.imul(oe,Te)|0,t=t+Math.imul(oe,Ie)|0,t=t+Math.imul(se,Te)|0,h=h+Math.imul(se,Ie)|0,f=f+Math.imul(ie,Pe)|0,t=t+Math.imul(ie,Ne)|0,t=t+Math.imul(ne,Pe)|0,h=h+Math.imul(ne,Ne)|0,f=f+Math.imul(te,Oe)|0,t=t+Math.imul(te,qe)|0,t=t+Math.imul(re,Oe)|0,h=h+Math.imul(re,qe)|0,f=f+Math.imul(T,ke)|0,t=t+Math.imul(T,Ue)|0,t=t+Math.imul(G,ke)|0,h=h+Math.imul(G,Ue)|0,f=f+Math.imul(Z,W)|0,t=t+Math.imul(Z,K)|0,t=t+Math.imul(k,W)|0,h=h+Math.imul(k,K)|0,f=f+Math.imul(J,V)|0,t=t+Math.imul(J,ae)|0,t=t+Math.imul(N,V)|0,h=h+Math.imul(N,ae)|0,f=f+Math.imul(j,ue)|0,t=t+Math.imul(j,le)|0,t=t+Math.imul(U,ue)|0,h=h+Math.imul(U,le)|0;var nt=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(nt>>>26)|0,nt&=67108863,f=Math.imul(Fe,_e),t=Math.imul(Fe,we),t=t+Math.imul(Be,_e)|0,h=Math.imul(Be,we),f=f+Math.imul(be,Ce)|0,t=t+Math.imul(be,De)|0,t=t+Math.imul(me,Ce)|0,h=h+Math.imul(me,De)|0,f=f+Math.imul(de,Te)|0,t=t+Math.imul(de,Ie)|0,t=t+Math.imul(ve,Te)|0,h=h+Math.imul(ve,Ie)|0,f=f+Math.imul(oe,Pe)|0,t=t+Math.imul(oe,Ne)|0,t=t+Math.imul(se,Pe)|0,h=h+Math.imul(se,Ne)|0,f=f+Math.imul(ie,Oe)|0,t=t+Math.imul(ie,qe)|0,t=t+Math.imul(ne,Oe)|0,h=h+Math.imul(ne,qe)|0,f=f+Math.imul(te,ke)|0,t=t+Math.imul(te,Ue)|0,t=t+Math.imul(re,ke)|0,h=h+Math.imul(re,Ue)|0,f=f+Math.imul(T,W)|0,t=t+Math.imul(T,K)|0,t=t+Math.imul(G,W)|0,h=h+Math.imul(G,K)|0,f=f+Math.imul(Z,V)|0,t=t+Math.imul(Z,ae)|0,t=t+Math.imul(k,V)|0,h=h+Math.imul(k,ae)|0,f=f+Math.imul(J,ue)|0,t=t+Math.imul(J,le)|0,t=t+Math.imul(N,ue)|0,h=h+Math.imul(N,le)|0;var it=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(it>>>26)|0,it&=67108863,f=Math.imul(Fe,Ce),t=Math.imul(Fe,De),t=t+Math.imul(Be,Ce)|0,h=Math.imul(Be,De),f=f+Math.imul(be,Te)|0,t=t+Math.imul(be,Ie)|0,t=t+Math.imul(me,Te)|0,h=h+Math.imul(me,Ie)|0,f=f+Math.imul(de,Pe)|0,t=t+Math.imul(de,Ne)|0,t=t+Math.imul(ve,Pe)|0,h=h+Math.imul(ve,Ne)|0,f=f+Math.imul(oe,Oe)|0,t=t+Math.imul(oe,qe)|0,t=t+Math.imul(se,Oe)|0,h=h+Math.imul(se,qe)|0,f=f+Math.imul(ie,ke)|0,t=t+Math.imul(ie,Ue)|0,t=t+Math.imul(ne,ke)|0,h=h+Math.imul(ne,Ue)|0,f=f+Math.imul(te,W)|0,t=t+Math.imul(te,K)|0,t=t+Math.imul(re,W)|0,h=h+Math.imul(re,K)|0,f=f+Math.imul(T,V)|0,t=t+Math.imul(T,ae)|0,t=t+Math.imul(G,V)|0,h=h+Math.imul(G,ae)|0,f=f+Math.imul(Z,ue)|0,t=t+Math.imul(Z,le)|0,t=t+Math.imul(k,ue)|0,h=h+Math.imul(k,le)|0;var Ve=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(Ve>>>26)|0,Ve&=67108863,f=Math.imul(Fe,Te),t=Math.imul(Fe,Ie),t=t+Math.imul(Be,Te)|0,h=Math.imul(Be,Ie),f=f+Math.imul(be,Pe)|0,t=t+Math.imul(be,Ne)|0,t=t+Math.imul(me,Pe)|0,h=h+Math.imul(me,Ne)|0,f=f+Math.imul(de,Oe)|0,t=t+Math.imul(de,qe)|0,t=t+Math.imul(ve,Oe)|0,h=h+Math.imul(ve,qe)|0,f=f+Math.imul(oe,ke)|0,t=t+Math.imul(oe,Ue)|0,t=t+Math.imul(se,ke)|0,h=h+Math.imul(se,Ue)|0,f=f+Math.imul(ie,W)|0,t=t+Math.imul(ie,K)|0,t=t+Math.imul(ne,W)|0,h=h+Math.imul(ne,K)|0,f=f+Math.imul(te,V)|0,t=t+Math.imul(te,ae)|0,t=t+Math.imul(re,V)|0,h=h+Math.imul(re,ae)|0,f=f+Math.imul(T,ue)|0,t=t+Math.imul(T,le)|0,t=t+Math.imul(G,ue)|0,h=h+Math.imul(G,le)|0;var Je=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(Je>>>26)|0,Je&=67108863,f=Math.imul(Fe,Pe),t=Math.imul(Fe,Ne),t=t+Math.imul(Be,Pe)|0,h=Math.imul(Be,Ne),f=f+Math.imul(be,Oe)|0,t=t+Math.imul(be,qe)|0,t=t+Math.imul(me,Oe)|0,h=h+Math.imul(me,qe)|0,f=f+Math.imul(de,ke)|0,t=t+Math.imul(de,Ue)|0,t=t+Math.imul(ve,ke)|0,h=h+Math.imul(ve,Ue)|0,f=f+Math.imul(oe,W)|0,t=t+Math.imul(oe,K)|0,t=t+Math.imul(se,W)|0,h=h+Math.imul(se,K)|0,f=f+Math.imul(ie,V)|0,t=t+Math.imul(ie,ae)|0,t=t+Math.imul(ne,V)|0,h=h+Math.imul(ne,ae)|0,f=f+Math.imul(te,ue)|0,t=t+Math.imul(te,le)|0,t=t+Math.imul(re,ue)|0,h=h+Math.imul(re,le)|0;var We=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(We>>>26)|0,We&=67108863,f=Math.imul(Fe,Oe),t=Math.imul(Fe,qe),t=t+Math.imul(Be,Oe)|0,h=Math.imul(Be,qe),f=f+Math.imul(be,ke)|0,t=t+Math.imul(be,Ue)|0,t=t+Math.imul(me,ke)|0,h=h+Math.imul(me,Ue)|0,f=f+Math.imul(de,W)|0,t=t+Math.imul(de,K)|0,t=t+Math.imul(ve,W)|0,h=h+Math.imul(ve,K)|0,f=f+Math.imul(oe,V)|0,t=t+Math.imul(oe,ae)|0,t=t+Math.imul(se,V)|0,h=h+Math.imul(se,ae)|0,f=f+Math.imul(ie,ue)|0,t=t+Math.imul(ie,le)|0,t=t+Math.imul(ne,ue)|0,h=h+Math.imul(ne,le)|0;var Ze=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,f=Math.imul(Fe,ke),t=Math.imul(Fe,Ue),t=t+Math.imul(Be,ke)|0,h=Math.imul(Be,Ue),f=f+Math.imul(be,W)|0,t=t+Math.imul(be,K)|0,t=t+Math.imul(me,W)|0,h=h+Math.imul(me,K)|0,f=f+Math.imul(de,V)|0,t=t+Math.imul(de,ae)|0,t=t+Math.imul(ve,V)|0,h=h+Math.imul(ve,ae)|0,f=f+Math.imul(oe,ue)|0,t=t+Math.imul(oe,le)|0,t=t+Math.imul(se,ue)|0,h=h+Math.imul(se,le)|0;var Xe=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,f=Math.imul(Fe,W),t=Math.imul(Fe,K),t=t+Math.imul(Be,W)|0,h=Math.imul(Be,K),f=f+Math.imul(be,V)|0,t=t+Math.imul(be,ae)|0,t=t+Math.imul(me,V)|0,h=h+Math.imul(me,ae)|0,f=f+Math.imul(de,ue)|0,t=t+Math.imul(de,le)|0,t=t+Math.imul(ve,ue)|0,h=h+Math.imul(ve,le)|0;var je=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(je>>>26)|0,je&=67108863,f=Math.imul(Fe,V),t=Math.imul(Fe,ae),t=t+Math.imul(Be,V)|0,h=Math.imul(Be,ae),f=f+Math.imul(be,ue)|0,t=t+Math.imul(be,le)|0,t=t+Math.imul(me,ue)|0,h=h+Math.imul(me,le)|0;var Me=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(Me>>>26)|0,Me&=67108863,f=Math.imul(Fe,ue),t=Math.imul(Fe,le),t=t+Math.imul(Be,ue)|0,h=Math.imul(Be,le);var Ae=(w+f|0)+((t&8191)<<13)|0;return w=(h+(t>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,d[0]=Ye,d[1]=ze,d[2]=ht,d[3]=Ge,d[4]=et,d[5]=tt,d[6]=ft,d[7]=at,d[8]=rt,d[9]=nt,d[10]=it,d[11]=Ve,d[12]=Je,d[13]=We,d[14]=Ze,d[15]=Xe,d[16]=je,d[17]=Me,d[18]=Ae,w!==0&&(d[19]=w,n.length++),n};Math.imul||(E=_);function B(c,e,r){r.negative=e.negative^c.negative,r.length=c.length+e.length;for(var n=0,a=0,u=0;u<r.length-1;u++){var d=a;a=0;for(var w=n&67108863,f=Math.min(u,e.length-1),t=Math.max(0,u-c.length+1);t<=f;t++){var h=u-t,H=c.words[h]|0,j=e.words[t]|0,U=H*j,ee=U&67108863;d=d+(U/67108864|0)|0,ee=ee+w|0,w=ee&67108863,d=d+(ee>>>26)|0,a+=d>>>26,d&=67108863}r.words[u]=w,n=d,d=a}return n!==0?r.words[u]=n:r.length--,r.strip()}function F(c,e,r){var n=new C;return n.mulp(c,e,r)}i.prototype.mulTo=function(e,r){var n,a=this.length+e.length;return this.length===10&&e.length===10?n=E(this,e,r):a<63?n=_(this,e,r):a<1024?n=B(this,e,r):n=F(this,e,r),n};function C(c,e){this.x=c,this.y=e}C.prototype.makeRBT=function(e){for(var r=new Array(e),n=i.prototype._countBits(e)-1,a=0;a<e;a++)r[a]=this.revBin(a,n,e);return r},C.prototype.revBin=function(e,r,n){if(e===0||e===n-1)return e;for(var a=0,u=0;u<r;u++)a|=(e&1)<<r-u-1,e>>=1;return a},C.prototype.permute=function(e,r,n,a,u,d){for(var w=0;w<d;w++)a[w]=r[e[w]],u[w]=n[e[w]]},C.prototype.transform=function(e,r,n,a,u,d){this.permute(d,e,r,n,a,u);for(var w=1;w<u;w<<=1)for(var f=w<<1,t=Math.cos(2*Math.PI/f),h=Math.sin(2*Math.PI/f),H=0;H<u;H+=f)for(var j=t,U=h,ee=0;ee<w;ee++){var J=n[H+ee],N=a[H+ee],z=n[H+ee+w],Z=a[H+ee+w],k=j*z-U*Z;Z=j*Z+U*z,z=k,n[H+ee]=J+z,a[H+ee]=N+Z,n[H+ee+w]=J-z,a[H+ee+w]=N-Z,ee!==f&&(k=t*j-h*U,U=t*U+h*j,j=k)}},C.prototype.guessLen13b=function(e,r){var n=Math.max(r,e)|1,a=n&1,u=0;for(n=n/2|0;n;n=n>>>1)u++;return 1<<u+1+a},C.prototype.conjugate=function(e,r,n){if(!(n<=1))for(var a=0;a<n/2;a++){var u=e[a];e[a]=e[n-a-1],e[n-a-1]=u,u=r[a],r[a]=-r[n-a-1],r[n-a-1]=-u}},C.prototype.normalize13b=function(e,r){for(var n=0,a=0;a<r/2;a++){var u=Math.round(e[2*a+1]/r)*8192+Math.round(e[2*a]/r)+n;e[a]=u&67108863,u<67108864?n=0:n=u/67108864|0}return e},C.prototype.convert13b=function(e,r,n,a){for(var u=0,d=0;d<r;d++)u=u+(e[d]|0),n[2*d]=u&8191,u=u>>>13,n[2*d+1]=u&8191,u=u>>>13;for(d=2*r;d<a;++d)n[d]=0;s(u===0),s((u&-8192)===0)},C.prototype.stub=function(e){for(var r=new Array(e),n=0;n<e;n++)r[n]=0;return r},C.prototype.mulp=function(e,r,n){var a=2*this.guessLen13b(e.length,r.length),u=this.makeRBT(a),d=this.stub(a),w=new Array(a),f=new Array(a),t=new Array(a),h=new Array(a),H=new Array(a),j=new Array(a),U=n.words;U.length=a,this.convert13b(e.words,e.length,w,a),this.convert13b(r.words,r.length,h,a),this.transform(w,d,f,t,a,u),this.transform(h,d,H,j,a,u);for(var ee=0;ee<a;ee++){var J=f[ee]*H[ee]-t[ee]*j[ee];t[ee]=f[ee]*j[ee]+t[ee]*H[ee],f[ee]=J}return this.conjugate(f,t,a),this.transform(f,t,U,d,a,u),this.conjugate(U,d,a),this.normalize13b(U,a),n.negative=e.negative^r.negative,n.length=e.length+r.length,n.strip()},i.prototype.mul=function(e){var r=new i(null);return r.words=new Array(this.length+e.length),this.mulTo(e,r)},i.prototype.mulf=function(e){var r=new i(null);return r.words=new Array(this.length+e.length),F(this,e,r)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){s(typeof e=="number"),s(e<67108864);for(var r=0,n=0;n<this.length;n++){var a=(this.words[n]|0)*e,u=(a&67108863)+(r&67108863);r>>=26,r+=a/67108864|0,r+=u>>>26,this.words[n]=u&67108863}return r!==0&&(this.words[n]=r,this.length++),this.length=e===0?1:this.length,this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var r=M(e);if(r.length===0)return new i(1);for(var n=this,a=0;a<r.length&&r[a]===0;a++,n=n.sqr());if(++a<r.length)for(var u=n.sqr();a<r.length;a++,u=u.sqr())r[a]!==0&&(n=n.mul(u));return n},i.prototype.iushln=function(e){s(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26,a=67108863>>>26-r<<26-r,u;if(r!==0){var d=0;for(u=0;u<this.length;u++){var w=this.words[u]&a,f=(this.words[u]|0)-w<<r;this.words[u]=f|d,d=w>>>26-r}d&&(this.words[u]=d,this.length++)}if(n!==0){for(u=this.length-1;u>=0;u--)this.words[u+n]=this.words[u];for(u=0;u<n;u++)this.words[u]=0;this.length+=n}return this.strip()},i.prototype.ishln=function(e){return s(this.negative===0),this.iushln(e)},i.prototype.iushrn=function(e,r,n){s(typeof e=="number"&&e>=0);var a;r?a=(r-r%26)/26:a=0;var u=e%26,d=Math.min((e-u)/26,this.length),w=67108863^67108863>>>u<<u,f=n;if(a-=d,a=Math.max(0,a),f){for(var t=0;t<d;t++)f.words[t]=this.words[t];f.length=d}if(d!==0)if(this.length>d)for(this.length-=d,t=0;t<this.length;t++)this.words[t]=this.words[t+d];else this.words[0]=0,this.length=1;var h=0;for(t=this.length-1;t>=0&&(h!==0||t>=a);t--){var H=this.words[t]|0;this.words[t]=h<<26-u|H>>>u,h=H&w}return f&&h!==0&&(f.words[f.length++]=h),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,r,n){return s(this.negative===0),this.iushrn(e,r,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){s(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26,a=1<<r;if(this.length<=n)return!1;var u=this.words[n];return!!(u&a)},i.prototype.imaskn=function(e){s(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26;if(s(this.negative===0,"imaskn works only with positive numbers"),this.length<=n)return this;if(r!==0&&n++,this.length=Math.min(n,this.length),r!==0){var a=67108863^67108863>>>r<<r;this.words[this.length-1]&=a}return this.strip()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return s(typeof e=="number"),s(e<67108864),e<0?this.isubn(-e):this.negative!==0?this.length===1&&(this.words[0]|0)<e?(this.words[0]=e-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},i.prototype._iaddn=function(e){this.words[0]+=e;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},i.prototype.isubn=function(e){if(s(typeof e=="number"),s(e<67108864),e<0)return this.iaddn(-e);if(this.negative!==0)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this.strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,r,n){var a=e.length+n,u;this._expand(a);var d,w=0;for(u=0;u<e.length;u++){d=(this.words[u+n]|0)+w;var f=(e.words[u]|0)*r;d-=f&67108863,w=(d>>26)-(f/67108864|0),this.words[u+n]=d&67108863}for(;u<this.length-n;u++)d=(this.words[u+n]|0)+w,w=d>>26,this.words[u+n]=d&67108863;if(w===0)return this.strip();for(s(w===-1),w=0,u=0;u<this.length;u++)d=-(this.words[u]|0)+w,w=d>>26,this.words[u]=d&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,r){var n=this.length-e.length,a=this.clone(),u=e,d=u.words[u.length-1]|0,w=this._countBits(d);n=26-w,n!==0&&(u=u.ushln(n),a.iushln(n),d=u.words[u.length-1]|0);var f=a.length-u.length,t;if(r!=="mod"){t=new i(null),t.length=f+1,t.words=new Array(t.length);for(var h=0;h<t.length;h++)t.words[h]=0}var H=a.clone()._ishlnsubmul(u,1,f);H.negative===0&&(a=H,t&&(t.words[f]=1));for(var j=f-1;j>=0;j--){var U=(a.words[u.length+j]|0)*67108864+(a.words[u.length+j-1]|0);for(U=Math.min(U/d|0,67108863),a._ishlnsubmul(u,U,j);a.negative!==0;)U--,a.negative=0,a._ishlnsubmul(u,1,j),a.isZero()||(a.negative^=1);t&&(t.words[j]=U)}return t&&t.strip(),a.strip(),r!=="div"&&n!==0&&a.iushrn(n),{div:t||null,mod:a}},i.prototype.divmod=function(e,r,n){if(s(!e.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var a,u,d;return this.negative!==0&&e.negative===0?(d=this.neg().divmod(e,r),r!=="mod"&&(a=d.div.neg()),r!=="div"&&(u=d.mod.neg(),n&&u.negative!==0&&u.iadd(e)),{div:a,mod:u}):this.negative===0&&e.negative!==0?(d=this.divmod(e.neg(),r),r!=="mod"&&(a=d.div.neg()),{div:a,mod:d.mod}):(this.negative&e.negative)!==0?(d=this.neg().divmod(e.neg(),r),r!=="div"&&(u=d.mod.neg(),n&&u.negative!==0&&u.isub(e)),{div:d.div,mod:u}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:e.length===1?r==="div"?{div:this.divn(e.words[0]),mod:null}:r==="mod"?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,r)},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var r=this.divmod(e);if(r.mod.isZero())return r.div;var n=r.div.negative!==0?r.mod.isub(e):r.mod,a=e.ushrn(1),u=e.andln(1),d=n.cmp(a);return d<0||u===1&&d===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},i.prototype.modn=function(e){s(e<=67108863);for(var r=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(r*n+(this.words[a]|0))%e;return n},i.prototype.idivn=function(e){s(e<=67108863);for(var r=0,n=this.length-1;n>=0;n--){var a=(this.words[n]|0)+r*67108864;this.words[n]=a/e|0,r=a%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){s(e.negative===0),s(!e.isZero());var r=this,n=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var a=new i(1),u=new i(0),d=new i(0),w=new i(1),f=0;r.isEven()&&n.isEven();)r.iushrn(1),n.iushrn(1),++f;for(var t=n.clone(),h=r.clone();!r.isZero();){for(var H=0,j=1;(r.words[0]&j)===0&&H<26;++H,j<<=1);if(H>0)for(r.iushrn(H);H-- >0;)(a.isOdd()||u.isOdd())&&(a.iadd(t),u.isub(h)),a.iushrn(1),u.iushrn(1);for(var U=0,ee=1;(n.words[0]&ee)===0&&U<26;++U,ee<<=1);if(U>0)for(n.iushrn(U);U-- >0;)(d.isOdd()||w.isOdd())&&(d.iadd(t),w.isub(h)),d.iushrn(1),w.iushrn(1);r.cmp(n)>=0?(r.isub(n),a.isub(d),u.isub(w)):(n.isub(r),d.isub(a),w.isub(u))}return{a:d,b:w,gcd:n.iushln(f)}},i.prototype._invmp=function(e){s(e.negative===0),s(!e.isZero());var r=this,n=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var a=new i(1),u=new i(0),d=n.clone();r.cmpn(1)>0&&n.cmpn(1)>0;){for(var w=0,f=1;(r.words[0]&f)===0&&w<26;++w,f<<=1);if(w>0)for(r.iushrn(w);w-- >0;)a.isOdd()&&a.iadd(d),a.iushrn(1);for(var t=0,h=1;(n.words[0]&h)===0&&t<26;++t,h<<=1);if(t>0)for(n.iushrn(t);t-- >0;)u.isOdd()&&u.iadd(d),u.iushrn(1);r.cmp(n)>=0?(r.isub(n),a.isub(u)):(n.isub(r),u.isub(a))}var H;return r.cmpn(1)===0?H=a:H=u,H.cmpn(0)<0&&H.iadd(e),H},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var r=this.clone(),n=e.clone();r.negative=0,n.negative=0;for(var a=0;r.isEven()&&n.isEven();a++)r.iushrn(1),n.iushrn(1);do{for(;r.isEven();)r.iushrn(1);for(;n.isEven();)n.iushrn(1);var u=r.cmp(n);if(u<0){var d=r;r=n,n=d}else if(u===0||n.cmpn(1)===0)break;r.isub(n)}while(!0);return n.iushln(a)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){s(typeof e=="number");var r=e%26,n=(e-r)/26,a=1<<r;if(this.length<=n)return this._expand(n+1),this.words[n]|=a,this;for(var u=a,d=n;u!==0&&d<this.length;d++){var w=this.words[d]|0;w+=u,u=w>>>26,w&=67108863,this.words[d]=w}return u!==0&&(this.words[d]=u,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(e){var r=e<0;if(this.negative!==0&&!r)return-1;if(this.negative===0&&r)return 1;this.strip();var n;if(this.length>1)n=1;else{r&&(e=-e),s(e<=67108863,"Number is too big");var a=this.words[0]|0;n=a===e?0:a<e?-1:1}return this.negative!==0?-n|0:n},i.prototype.cmp=function(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var r=this.ucmp(e);return this.negative!==0?-r|0:r},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var r=0,n=this.length-1;n>=0;n--){var a=this.words[n]|0,u=e.words[n]|0;if(a!==u){a<u?r=-1:a>u&&(r=1);break}}return r},i.prototype.gtn=function(e){return this.cmpn(e)===1},i.prototype.gt=function(e){return this.cmp(e)===1},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return this.cmpn(e)===-1},i.prototype.lt=function(e){return this.cmp(e)===-1},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return this.cmpn(e)===0},i.prototype.eq=function(e){return this.cmp(e)===0},i.red=function(e){return new L(e)},i.prototype.toRed=function(e){return s(!this.red,"Already a number in reduction context"),s(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return s(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return s(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return s(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return s(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return s(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return s(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return s(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return s(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return s(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return s(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return s(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return s(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return s(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var R={k256:null,p224:null,p192:null,p25519:null};function D(c,e){this.name=c,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}D.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},D.prototype.ireduce=function(e){var r=e,n;do this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),n=r.bitLength();while(n>this.n);var a=n<this.n?-1:r.ucmp(this.p);return a===0?(r.words[0]=0,r.length=1):a>0?r.isub(this.p):r.strip!==void 0?r.strip():r._strip(),r},D.prototype.split=function(e,r){e.iushrn(this.n,0,r)},D.prototype.imulK=function(e){return e.imul(this.k)};function q(){D.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}A(q,D),q.prototype.split=function(e,r){for(var n=4194303,a=Math.min(e.length,9),u=0;u<a;u++)r.words[u]=e.words[u];if(r.length=a,e.length<=9){e.words[0]=0,e.length=1;return}var d=e.words[9];for(r.words[r.length++]=d&n,u=10;u<e.length;u++){var w=e.words[u]|0;e.words[u-10]=(w&n)<<4|d>>>22,d=w}d>>>=22,e.words[u-10]=d,d===0&&e.length>10?e.length-=10:e.length-=9},q.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var r=0,n=0;n<e.length;n++){var a=e.words[n]|0;r+=a*977,e.words[n]=r&67108863,r=a*64+(r/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e};function O(){D.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}A(O,D);function Y(){D.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}A(Y,D);function Q(){D.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}A(Q,D),Q.prototype.imulK=function(e){for(var r=0,n=0;n<e.length;n++){var a=(e.words[n]|0)*19+r,u=a&67108863;a>>>=26,e.words[n]=u,r=a}return r!==0&&(e.words[e.length++]=r),e},i._prime=function(e){if(R[e])return R[e];var r;if(e==="k256")r=new q;else if(e==="p224")r=new O;else if(e==="p192")r=new Y;else if(e==="p25519")r=new Q;else throw new Error("Unknown prime "+e);return R[e]=r,r};function L(c){if(typeof c=="string"){var e=i._prime(c);this.m=e.p,this.prime=e}else s(c.gtn(1),"modulus must be greater than 1"),this.m=c,this.prime=null}L.prototype._verify1=function(e){s(e.negative===0,"red works only with positives"),s(e.red,"red works only with red numbers")},L.prototype._verify2=function(e,r){s((e.negative|r.negative)===0,"red works only with positives"),s(e.red&&e.red===r.red,"red works only with red numbers")},L.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},L.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},L.prototype.add=function(e,r){this._verify2(e,r);var n=e.add(r);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},L.prototype.iadd=function(e,r){this._verify2(e,r);var n=e.iadd(r);return n.cmp(this.m)>=0&&n.isub(this.m),n},L.prototype.sub=function(e,r){this._verify2(e,r);var n=e.sub(r);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},L.prototype.isub=function(e,r){this._verify2(e,r);var n=e.isub(r);return n.cmpn(0)<0&&n.iadd(this.m),n},L.prototype.shl=function(e,r){return this._verify1(e),this.imod(e.ushln(r))},L.prototype.imul=function(e,r){return this._verify2(e,r),this.imod(e.imul(r))},L.prototype.mul=function(e,r){return this._verify2(e,r),this.imod(e.mul(r))},L.prototype.isqr=function(e){return this.imul(e,e.clone())},L.prototype.sqr=function(e){return this.mul(e,e)},L.prototype.sqrt=function(e){if(e.isZero())return e.clone();var r=this.m.andln(3);if(s(r%2===1),r===3){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),u=0;!a.isZero()&&a.andln(1)===0;)u++,a.iushrn(1);s(!a.isZero());var d=new i(1).toRed(this),w=d.redNeg(),f=this.m.subn(1).iushrn(1),t=this.m.bitLength();for(t=new i(2*t*t).toRed(this);this.pow(t,f).cmp(w)!==0;)t.redIAdd(w);for(var h=this.pow(t,a),H=this.pow(e,a.addn(1).iushrn(1)),j=this.pow(e,a),U=u;j.cmp(d)!==0;){for(var ee=j,J=0;ee.cmp(d)!==0;J++)ee=ee.redSqr();s(J<U);var N=this.pow(h,new i(1).iushln(U-J-1));H=H.redMul(N),h=N.redSqr(),j=j.redMul(h),U=J}return H},L.prototype.invm=function(e){var r=e._invmp(this.m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},L.prototype.pow=function(e,r){if(r.isZero())return new i(1).toRed(this);if(r.cmpn(1)===0)return e.clone();var n=4,a=new Array(1<<n);a[0]=new i(1).toRed(this),a[1]=e;for(var u=2;u<a.length;u++)a[u]=this.mul(a[u-1],e);var d=a[0],w=0,f=0,t=r.bitLength()%26;for(t===0&&(t=26),u=r.length-1;u>=0;u--){for(var h=r.words[u],H=t-1;H>=0;H--){var j=h>>H&1;if(d!==a[0]&&(d=this.sqr(d)),j===0&&w===0){f=0;continue}w<<=1,w|=j,f++,!(f!==n&&(u!==0||H!==0))&&(d=this.mul(d,a[w]),f=0,w=0)}t=26}return d},L.prototype.convertTo=function(e){var r=e.umod(this.m);return r===e?r.clone():r},L.prototype.convertFrom=function(e){var r=e.clone();return r.red=null,r},i.mont=function(e){return new X(e)};function X(c){L.call(this,c),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}A(X,L),X.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},X.prototype.convertFrom=function(e){var r=this.imod(e.mul(this.rinv));return r.red=null,r},X.prototype.imul=function(e,r){if(e.isZero()||r.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(r),a=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=n.isub(a).iushrn(this.shift),d=u;return u.cmp(this.m)>=0?d=u.isub(this.m):u.cmpn(0)<0&&(d=u.iadd(this.m)),d._forceRed(this)},X.prototype.mul=function(e,r){if(e.isZero()||r.isZero())return new i(0)._forceRed(this);var n=e.mul(r),a=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=n.isub(a).iushrn(this.shift),d=u;return u.cmp(this.m)>=0?d=u.isub(this.m):u.cmpn(0)<0&&(d=u.iadd(this.m)),d._forceRed(this)},X.prototype.invm=function(e){var r=this.imod(e._invmp(this.m).mul(this.r2));return r._forceRed(this)}})(m,Ap)})(xi)),xi.exports}var wi={exports:{}},Ep=wi.exports,Dh;function Sp(){return Dh||(Dh=1,(function(m){(function(g,S){function s(c,e){if(!c)throw new Error(e||"Assertion failed")}function A(c,e){c.super_=e;var r=function(){};r.prototype=e.prototype,c.prototype=new r,c.prototype.constructor=c}function i(c,e,r){if(i.isBN(c))return c;this.negative=0,this.words=null,this.length=0,this.red=null,c!==null&&((e==="le"||e==="be")&&(r=e,e=10),this._init(c||0,e||10,r||"be"))}typeof g=="object"?g.exports=i:S.BN=i,i.BN=i,i.wordSize=26;var l;try{typeof window<"u"&&typeof window.Buffer<"u"?l=window.Buffer:l=Qe.requireDist().Buffer}catch{}i.isBN=function(e){return e instanceof i?!0:e!==null&&typeof e=="object"&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,r){return e.cmp(r)>0?e:r},i.min=function(e,r){return e.cmp(r)<0?e:r},i.prototype._init=function(e,r,n){if(typeof e=="number")return this._initNumber(e,r,n);if(typeof e=="object")return this._initArray(e,r,n);r==="hex"&&(r=16),s(r===(r|0)&&r>=2&&r<=36),e=e.toString().replace(/\s+/g,"");var a=0;e[0]==="-"&&(a++,this.negative=1),a<e.length&&(r===16?this._parseHex(e,a,n):(this._parseBase(e,r,a),n==="le"&&this._initArray(this.toArray(),r,n)))},i.prototype._initNumber=function(e,r,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[e&67108863],this.length=1):e<4503599627370496?(this.words=[e&67108863,e/67108864&67108863],this.length=2):(s(e<9007199254740992),this.words=[e&67108863,e/67108864&67108863,1],this.length=3),n==="le"&&this._initArray(this.toArray(),r,n)},i.prototype._initArray=function(e,r,n){if(s(typeof e.length=="number"),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var a=0;a<this.length;a++)this.words[a]=0;var u,d,w=0;if(n==="be")for(a=e.length-1,u=0;a>=0;a-=3)d=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[u]|=d<<w&67108863,this.words[u+1]=d>>>26-w&67108863,w+=24,w>=26&&(w-=26,u++);else if(n==="le")for(a=0,u=0;a<e.length;a+=3)d=e[a]|e[a+1]<<8|e[a+2]<<16,this.words[u]|=d<<w&67108863,this.words[u+1]=d>>>26-w&67108863,w+=24,w>=26&&(w-=26,u++);return this.strip()};function b(c,e){var r=c.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function p(c,e,r){var n=b(c,r);return r-1>=e&&(n|=b(c,r-1)<<4),n}i.prototype._parseHex=function(e,r,n){this.length=Math.ceil((e.length-r)/6),this.words=new Array(this.length);for(var a=0;a<this.length;a++)this.words[a]=0;var u=0,d=0,w;if(n==="be")for(a=e.length-1;a>=r;a-=2)w=p(e,r,a)<<u,this.words[d]|=w&67108863,u>=18?(u-=18,d+=1,this.words[d]|=w>>>26):u+=8;else{var f=e.length-r;for(a=f%2===0?r+1:r;a<e.length;a+=2)w=p(e,r,a)<<u,this.words[d]|=w&67108863,u>=18?(u-=18,d+=1,this.words[d]|=w>>>26):u+=8}this.strip()};function o(c,e,r,n){for(var a=0,u=Math.min(c.length,r),d=e;d<u;d++){var w=c.charCodeAt(d)-48;a*=n,w>=49?a+=w-49+10:w>=17?a+=w-17+10:a+=w}return a}i.prototype._parseBase=function(e,r,n){this.words=[0],this.length=1;for(var a=0,u=1;u<=67108863;u*=r)a++;a--,u=u/r|0;for(var d=e.length-n,w=d%a,f=Math.min(d,d-w)+n,t=0,h=n;h<f;h+=a)t=o(e,h,h+a,r),this.imuln(u),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t);if(w!==0){var H=1;for(t=o(e,h,e.length,r),h=0;h<w;h++)H*=r;this.imuln(H),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t)}this.strip()},i.prototype.copy=function(e){e.words=new Array(this.length);for(var r=0;r<this.length;r++)e.words[r]=this.words[r];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var v=["","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"],y=[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],x=[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];i.prototype.toString=function(e,r){e=e||10,r=r|0||1;var n;if(e===16||e==="hex"){n="";for(var a=0,u=0,d=0;d<this.length;d++){var w=this.words[d],f=((w<<a|u)&16777215).toString(16);u=w>>>24-a&16777215,a+=2,a>=26&&(a-=26,d--),u!==0||d!==this.length-1?n=v[6-f.length]+f+n:n=f+n}for(u!==0&&(n=u.toString(16)+n);n.length%r!==0;)n="0"+n;return this.negative!==0&&(n="-"+n),n}if(e===(e|0)&&e>=2&&e<=36){var t=y[e],h=x[e];n="";var H=this.clone();for(H.negative=0;!H.isZero();){var j=H.modn(h).toString(e);H=H.idivn(h),H.isZero()?n=j+n:n=v[t-j.length]+j+n}for(this.isZero()&&(n="0"+n);n.length%r!==0;)n="0"+n;return this.negative!==0&&(n="-"+n),n}s(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return this.length===2?e+=this.words[1]*67108864:this.length===3&&this.words[2]===1?e+=4503599627370496+this.words[1]*67108864:this.length>2&&s(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,r){return s(typeof l<"u"),this.toArrayLike(l,e,r)},i.prototype.toArray=function(e,r){return this.toArrayLike(Array,e,r)},i.prototype.toArrayLike=function(e,r,n){var a=this.byteLength(),u=n||Math.max(1,a);s(a<=u,"byte array longer than desired length"),s(u>0,"Requested array length <= 0"),this.strip();var d=r==="le",w=new e(u),f,t,h=this.clone();if(d){for(t=0;!h.isZero();t++)f=h.andln(255),h.iushrn(8),w[t]=f;for(;t<u;t++)w[t]=0}else{for(t=0;t<u-a;t++)w[t]=0;for(t=0;!h.isZero();t++)f=h.andln(255),h.iushrn(8),w[u-t-1]=f}return w},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var r=e,n=0;return r>=4096&&(n+=13,r>>>=13),r>=64&&(n+=7,r>>>=7),r>=8&&(n+=4,r>>>=4),r>=2&&(n+=2,r>>>=2),n+r},i.prototype._zeroBits=function(e){if(e===0)return 26;var r=e,n=0;return(r&8191)===0&&(n+=13,r>>>=13),(r&127)===0&&(n+=7,r>>>=7),(r&15)===0&&(n+=4,r>>>=4),(r&3)===0&&(n+=2,r>>>=2),(r&1)===0&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],r=this._countBits(e);return(this.length-1)*26+r};function M(c){for(var e=new Array(c.bitLength()),r=0;r<e.length;r++){var n=r/26|0,a=r%26;e[r]=(c.words[n]&1<<a)>>>a}return e}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,r=0;r<this.length;r++){var n=this._zeroBits(this.words[r]);if(e+=n,n!==26)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return this.negative!==0?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]|e.words[r];return this.strip()},i.prototype.ior=function(e){return s((this.negative|e.negative)===0),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var r;this.length>e.length?r=e:r=this;for(var n=0;n<r.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=r.length,this.strip()},i.prototype.iand=function(e){return s((this.negative|e.negative)===0),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var r,n;this.length>e.length?(r=this,n=e):(r=e,n=this);for(var a=0;a<n.length;a++)this.words[a]=r.words[a]^n.words[a];if(this!==r)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=r.length,this.strip()},i.prototype.ixor=function(e){return s((this.negative|e.negative)===0),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){s(typeof e=="number"&&e>=0);var r=Math.ceil(e/26)|0,n=e%26;this._expand(r),n>0&&r--;for(var a=0;a<r;a++)this.words[a]=~this.words[a]&67108863;return n>0&&(this.words[a]=~this.words[a]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,r){s(typeof e=="number"&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),r?this.words[n]=this.words[n]|1<<a:this.words[n]=this.words[n]&~(1<<a),this.strip()},i.prototype.iadd=function(e){var r;if(this.negative!==0&&e.negative===0)return this.negative=0,r=this.isub(e),this.negative^=1,this._normSign();if(this.negative===0&&e.negative!==0)return e.negative=0,r=this.isub(e),e.negative=1,r._normSign();var n,a;this.length>e.length?(n=this,a=e):(n=e,a=this);for(var u=0,d=0;d<a.length;d++)r=(n.words[d]|0)+(a.words[d]|0)+u,this.words[d]=r&67108863,u=r>>>26;for(;u!==0&&d<n.length;d++)r=(n.words[d]|0)+u,this.words[d]=r&67108863,u=r>>>26;if(this.length=n.length,u!==0)this.words[this.length]=u,this.length++;else if(n!==this)for(;d<n.length;d++)this.words[d]=n.words[d];return this},i.prototype.add=function(e){var r;return e.negative!==0&&this.negative===0?(e.negative=0,r=this.sub(e),e.negative^=1,r):e.negative===0&&this.negative!==0?(this.negative=0,r=e.sub(this),this.negative=1,r):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var r=this.iadd(e);return e.negative=1,r._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(n===0)return this.negative=0,this.length=1,this.words[0]=0,this;var a,u;n>0?(a=this,u=e):(a=e,u=this);for(var d=0,w=0;w<u.length;w++)r=(a.words[w]|0)-(u.words[w]|0)+d,d=r>>26,this.words[w]=r&67108863;for(;d!==0&&w<a.length;w++)r=(a.words[w]|0)+d,d=r>>26,this.words[w]=r&67108863;if(d===0&&w<a.length&&a!==this)for(;w<a.length;w++)this.words[w]=a.words[w];return this.length=Math.max(this.length,w),a!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(e){return this.clone().isub(e)};function _(c,e,r){r.negative=e.negative^c.negative;var n=c.length+e.length|0;r.length=n,n=n-1|0;var a=c.words[0]|0,u=e.words[0]|0,d=a*u,w=d&67108863,f=d/67108864|0;r.words[0]=w;for(var t=1;t<n;t++){for(var h=f>>>26,H=f&67108863,j=Math.min(t,e.length-1),U=Math.max(0,t-c.length+1);U<=j;U++){var ee=t-U|0;a=c.words[ee]|0,u=e.words[U]|0,d=a*u+H,h+=d/67108864|0,H=d&67108863}r.words[t]=H|0,f=h|0}return f!==0?r.words[t]=f|0:r.length--,r.strip()}var E=function(e,r,n){var a=e.words,u=r.words,d=n.words,w=0,f,t,h,H=a[0]|0,j=H&8191,U=H>>>13,ee=a[1]|0,J=ee&8191,N=ee>>>13,z=a[2]|0,Z=z&8191,k=z>>>13,P=a[3]|0,T=P&8191,G=P>>>13,fe=a[4]|0,te=fe&8191,re=fe>>>13,he=a[5]|0,ie=he&8191,ne=he>>>13,pe=a[6]|0,oe=pe&8191,se=pe>>>13,Re=a[7]|0,de=Re&8191,ve=Re>>>13,ot=a[8]|0,be=ot&8191,me=ot>>>13,ut=a[9]|0,Fe=ut&8191,Be=ut>>>13,vt=u[0]|0,Ee=vt&8191,Se=vt>>>13,ct=u[1]|0,_e=ct&8191,we=ct>>>13,Mt=u[2]|0,Ce=Mt&8191,De=Mt>>>13,At=u[3]|0,Te=At&8191,Ie=At>>>13,Rt=u[4]|0,Pe=Rt&8191,Ne=Rt>>>13,Nt=u[5]|0,Oe=Nt&8191,qe=Nt>>>13,qt=u[6]|0,ke=qt&8191,Ue=qt>>>13,$=u[7]|0,W=$&8191,K=$>>>13,I=u[8]|0,V=I&8191,ae=I>>>13,ye=u[9]|0,ue=ye&8191,le=ye>>>13;n.negative=e.negative^r.negative,n.length=19,f=Math.imul(j,Ee),t=Math.imul(j,Se),t=t+Math.imul(U,Ee)|0,h=Math.imul(U,Se);var Ye=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,f=Math.imul(J,Ee),t=Math.imul(J,Se),t=t+Math.imul(N,Ee)|0,h=Math.imul(N,Se),f=f+Math.imul(j,_e)|0,t=t+Math.imul(j,we)|0,t=t+Math.imul(U,_e)|0,h=h+Math.imul(U,we)|0;var ze=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(ze>>>26)|0,ze&=67108863,f=Math.imul(Z,Ee),t=Math.imul(Z,Se),t=t+Math.imul(k,Ee)|0,h=Math.imul(k,Se),f=f+Math.imul(J,_e)|0,t=t+Math.imul(J,we)|0,t=t+Math.imul(N,_e)|0,h=h+Math.imul(N,we)|0,f=f+Math.imul(j,Ce)|0,t=t+Math.imul(j,De)|0,t=t+Math.imul(U,Ce)|0,h=h+Math.imul(U,De)|0;var ht=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(ht>>>26)|0,ht&=67108863,f=Math.imul(T,Ee),t=Math.imul(T,Se),t=t+Math.imul(G,Ee)|0,h=Math.imul(G,Se),f=f+Math.imul(Z,_e)|0,t=t+Math.imul(Z,we)|0,t=t+Math.imul(k,_e)|0,h=h+Math.imul(k,we)|0,f=f+Math.imul(J,Ce)|0,t=t+Math.imul(J,De)|0,t=t+Math.imul(N,Ce)|0,h=h+Math.imul(N,De)|0,f=f+Math.imul(j,Te)|0,t=t+Math.imul(j,Ie)|0,t=t+Math.imul(U,Te)|0,h=h+Math.imul(U,Ie)|0;var Ge=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,f=Math.imul(te,Ee),t=Math.imul(te,Se),t=t+Math.imul(re,Ee)|0,h=Math.imul(re,Se),f=f+Math.imul(T,_e)|0,t=t+Math.imul(T,we)|0,t=t+Math.imul(G,_e)|0,h=h+Math.imul(G,we)|0,f=f+Math.imul(Z,Ce)|0,t=t+Math.imul(Z,De)|0,t=t+Math.imul(k,Ce)|0,h=h+Math.imul(k,De)|0,f=f+Math.imul(J,Te)|0,t=t+Math.imul(J,Ie)|0,t=t+Math.imul(N,Te)|0,h=h+Math.imul(N,Ie)|0,f=f+Math.imul(j,Pe)|0,t=t+Math.imul(j,Ne)|0,t=t+Math.imul(U,Pe)|0,h=h+Math.imul(U,Ne)|0;var et=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(et>>>26)|0,et&=67108863,f=Math.imul(ie,Ee),t=Math.imul(ie,Se),t=t+Math.imul(ne,Ee)|0,h=Math.imul(ne,Se),f=f+Math.imul(te,_e)|0,t=t+Math.imul(te,we)|0,t=t+Math.imul(re,_e)|0,h=h+Math.imul(re,we)|0,f=f+Math.imul(T,Ce)|0,t=t+Math.imul(T,De)|0,t=t+Math.imul(G,Ce)|0,h=h+Math.imul(G,De)|0,f=f+Math.imul(Z,Te)|0,t=t+Math.imul(Z,Ie)|0,t=t+Math.imul(k,Te)|0,h=h+Math.imul(k,Ie)|0,f=f+Math.imul(J,Pe)|0,t=t+Math.imul(J,Ne)|0,t=t+Math.imul(N,Pe)|0,h=h+Math.imul(N,Ne)|0,f=f+Math.imul(j,Oe)|0,t=t+Math.imul(j,qe)|0,t=t+Math.imul(U,Oe)|0,h=h+Math.imul(U,qe)|0;var tt=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(tt>>>26)|0,tt&=67108863,f=Math.imul(oe,Ee),t=Math.imul(oe,Se),t=t+Math.imul(se,Ee)|0,h=Math.imul(se,Se),f=f+Math.imul(ie,_e)|0,t=t+Math.imul(ie,we)|0,t=t+Math.imul(ne,_e)|0,h=h+Math.imul(ne,we)|0,f=f+Math.imul(te,Ce)|0,t=t+Math.imul(te,De)|0,t=t+Math.imul(re,Ce)|0,h=h+Math.imul(re,De)|0,f=f+Math.imul(T,Te)|0,t=t+Math.imul(T,Ie)|0,t=t+Math.imul(G,Te)|0,h=h+Math.imul(G,Ie)|0,f=f+Math.imul(Z,Pe)|0,t=t+Math.imul(Z,Ne)|0,t=t+Math.imul(k,Pe)|0,h=h+Math.imul(k,Ne)|0,f=f+Math.imul(J,Oe)|0,t=t+Math.imul(J,qe)|0,t=t+Math.imul(N,Oe)|0,h=h+Math.imul(N,qe)|0,f=f+Math.imul(j,ke)|0,t=t+Math.imul(j,Ue)|0,t=t+Math.imul(U,ke)|0,h=h+Math.imul(U,Ue)|0;var ft=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(ft>>>26)|0,ft&=67108863,f=Math.imul(de,Ee),t=Math.imul(de,Se),t=t+Math.imul(ve,Ee)|0,h=Math.imul(ve,Se),f=f+Math.imul(oe,_e)|0,t=t+Math.imul(oe,we)|0,t=t+Math.imul(se,_e)|0,h=h+Math.imul(se,we)|0,f=f+Math.imul(ie,Ce)|0,t=t+Math.imul(ie,De)|0,t=t+Math.imul(ne,Ce)|0,h=h+Math.imul(ne,De)|0,f=f+Math.imul(te,Te)|0,t=t+Math.imul(te,Ie)|0,t=t+Math.imul(re,Te)|0,h=h+Math.imul(re,Ie)|0,f=f+Math.imul(T,Pe)|0,t=t+Math.imul(T,Ne)|0,t=t+Math.imul(G,Pe)|0,h=h+Math.imul(G,Ne)|0,f=f+Math.imul(Z,Oe)|0,t=t+Math.imul(Z,qe)|0,t=t+Math.imul(k,Oe)|0,h=h+Math.imul(k,qe)|0,f=f+Math.imul(J,ke)|0,t=t+Math.imul(J,Ue)|0,t=t+Math.imul(N,ke)|0,h=h+Math.imul(N,Ue)|0,f=f+Math.imul(j,W)|0,t=t+Math.imul(j,K)|0,t=t+Math.imul(U,W)|0,h=h+Math.imul(U,K)|0;var at=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(at>>>26)|0,at&=67108863,f=Math.imul(be,Ee),t=Math.imul(be,Se),t=t+Math.imul(me,Ee)|0,h=Math.imul(me,Se),f=f+Math.imul(de,_e)|0,t=t+Math.imul(de,we)|0,t=t+Math.imul(ve,_e)|0,h=h+Math.imul(ve,we)|0,f=f+Math.imul(oe,Ce)|0,t=t+Math.imul(oe,De)|0,t=t+Math.imul(se,Ce)|0,h=h+Math.imul(se,De)|0,f=f+Math.imul(ie,Te)|0,t=t+Math.imul(ie,Ie)|0,t=t+Math.imul(ne,Te)|0,h=h+Math.imul(ne,Ie)|0,f=f+Math.imul(te,Pe)|0,t=t+Math.imul(te,Ne)|0,t=t+Math.imul(re,Pe)|0,h=h+Math.imul(re,Ne)|0,f=f+Math.imul(T,Oe)|0,t=t+Math.imul(T,qe)|0,t=t+Math.imul(G,Oe)|0,h=h+Math.imul(G,qe)|0,f=f+Math.imul(Z,ke)|0,t=t+Math.imul(Z,Ue)|0,t=t+Math.imul(k,ke)|0,h=h+Math.imul(k,Ue)|0,f=f+Math.imul(J,W)|0,t=t+Math.imul(J,K)|0,t=t+Math.imul(N,W)|0,h=h+Math.imul(N,K)|0,f=f+Math.imul(j,V)|0,t=t+Math.imul(j,ae)|0,t=t+Math.imul(U,V)|0,h=h+Math.imul(U,ae)|0;var rt=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(rt>>>26)|0,rt&=67108863,f=Math.imul(Fe,Ee),t=Math.imul(Fe,Se),t=t+Math.imul(Be,Ee)|0,h=Math.imul(Be,Se),f=f+Math.imul(be,_e)|0,t=t+Math.imul(be,we)|0,t=t+Math.imul(me,_e)|0,h=h+Math.imul(me,we)|0,f=f+Math.imul(de,Ce)|0,t=t+Math.imul(de,De)|0,t=t+Math.imul(ve,Ce)|0,h=h+Math.imul(ve,De)|0,f=f+Math.imul(oe,Te)|0,t=t+Math.imul(oe,Ie)|0,t=t+Math.imul(se,Te)|0,h=h+Math.imul(se,Ie)|0,f=f+Math.imul(ie,Pe)|0,t=t+Math.imul(ie,Ne)|0,t=t+Math.imul(ne,Pe)|0,h=h+Math.imul(ne,Ne)|0,f=f+Math.imul(te,Oe)|0,t=t+Math.imul(te,qe)|0,t=t+Math.imul(re,Oe)|0,h=h+Math.imul(re,qe)|0,f=f+Math.imul(T,ke)|0,t=t+Math.imul(T,Ue)|0,t=t+Math.imul(G,ke)|0,h=h+Math.imul(G,Ue)|0,f=f+Math.imul(Z,W)|0,t=t+Math.imul(Z,K)|0,t=t+Math.imul(k,W)|0,h=h+Math.imul(k,K)|0,f=f+Math.imul(J,V)|0,t=t+Math.imul(J,ae)|0,t=t+Math.imul(N,V)|0,h=h+Math.imul(N,ae)|0,f=f+Math.imul(j,ue)|0,t=t+Math.imul(j,le)|0,t=t+Math.imul(U,ue)|0,h=h+Math.imul(U,le)|0;var nt=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(nt>>>26)|0,nt&=67108863,f=Math.imul(Fe,_e),t=Math.imul(Fe,we),t=t+Math.imul(Be,_e)|0,h=Math.imul(Be,we),f=f+Math.imul(be,Ce)|0,t=t+Math.imul(be,De)|0,t=t+Math.imul(me,Ce)|0,h=h+Math.imul(me,De)|0,f=f+Math.imul(de,Te)|0,t=t+Math.imul(de,Ie)|0,t=t+Math.imul(ve,Te)|0,h=h+Math.imul(ve,Ie)|0,f=f+Math.imul(oe,Pe)|0,t=t+Math.imul(oe,Ne)|0,t=t+Math.imul(se,Pe)|0,h=h+Math.imul(se,Ne)|0,f=f+Math.imul(ie,Oe)|0,t=t+Math.imul(ie,qe)|0,t=t+Math.imul(ne,Oe)|0,h=h+Math.imul(ne,qe)|0,f=f+Math.imul(te,ke)|0,t=t+Math.imul(te,Ue)|0,t=t+Math.imul(re,ke)|0,h=h+Math.imul(re,Ue)|0,f=f+Math.imul(T,W)|0,t=t+Math.imul(T,K)|0,t=t+Math.imul(G,W)|0,h=h+Math.imul(G,K)|0,f=f+Math.imul(Z,V)|0,t=t+Math.imul(Z,ae)|0,t=t+Math.imul(k,V)|0,h=h+Math.imul(k,ae)|0,f=f+Math.imul(J,ue)|0,t=t+Math.imul(J,le)|0,t=t+Math.imul(N,ue)|0,h=h+Math.imul(N,le)|0;var it=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(it>>>26)|0,it&=67108863,f=Math.imul(Fe,Ce),t=Math.imul(Fe,De),t=t+Math.imul(Be,Ce)|0,h=Math.imul(Be,De),f=f+Math.imul(be,Te)|0,t=t+Math.imul(be,Ie)|0,t=t+Math.imul(me,Te)|0,h=h+Math.imul(me,Ie)|0,f=f+Math.imul(de,Pe)|0,t=t+Math.imul(de,Ne)|0,t=t+Math.imul(ve,Pe)|0,h=h+Math.imul(ve,Ne)|0,f=f+Math.imul(oe,Oe)|0,t=t+Math.imul(oe,qe)|0,t=t+Math.imul(se,Oe)|0,h=h+Math.imul(se,qe)|0,f=f+Math.imul(ie,ke)|0,t=t+Math.imul(ie,Ue)|0,t=t+Math.imul(ne,ke)|0,h=h+Math.imul(ne,Ue)|0,f=f+Math.imul(te,W)|0,t=t+Math.imul(te,K)|0,t=t+Math.imul(re,W)|0,h=h+Math.imul(re,K)|0,f=f+Math.imul(T,V)|0,t=t+Math.imul(T,ae)|0,t=t+Math.imul(G,V)|0,h=h+Math.imul(G,ae)|0,f=f+Math.imul(Z,ue)|0,t=t+Math.imul(Z,le)|0,t=t+Math.imul(k,ue)|0,h=h+Math.imul(k,le)|0;var Ve=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(Ve>>>26)|0,Ve&=67108863,f=Math.imul(Fe,Te),t=Math.imul(Fe,Ie),t=t+Math.imul(Be,Te)|0,h=Math.imul(Be,Ie),f=f+Math.imul(be,Pe)|0,t=t+Math.imul(be,Ne)|0,t=t+Math.imul(me,Pe)|0,h=h+Math.imul(me,Ne)|0,f=f+Math.imul(de,Oe)|0,t=t+Math.imul(de,qe)|0,t=t+Math.imul(ve,Oe)|0,h=h+Math.imul(ve,qe)|0,f=f+Math.imul(oe,ke)|0,t=t+Math.imul(oe,Ue)|0,t=t+Math.imul(se,ke)|0,h=h+Math.imul(se,Ue)|0,f=f+Math.imul(ie,W)|0,t=t+Math.imul(ie,K)|0,t=t+Math.imul(ne,W)|0,h=h+Math.imul(ne,K)|0,f=f+Math.imul(te,V)|0,t=t+Math.imul(te,ae)|0,t=t+Math.imul(re,V)|0,h=h+Math.imul(re,ae)|0,f=f+Math.imul(T,ue)|0,t=t+Math.imul(T,le)|0,t=t+Math.imul(G,ue)|0,h=h+Math.imul(G,le)|0;var Je=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(Je>>>26)|0,Je&=67108863,f=Math.imul(Fe,Pe),t=Math.imul(Fe,Ne),t=t+Math.imul(Be,Pe)|0,h=Math.imul(Be,Ne),f=f+Math.imul(be,Oe)|0,t=t+Math.imul(be,qe)|0,t=t+Math.imul(me,Oe)|0,h=h+Math.imul(me,qe)|0,f=f+Math.imul(de,ke)|0,t=t+Math.imul(de,Ue)|0,t=t+Math.imul(ve,ke)|0,h=h+Math.imul(ve,Ue)|0,f=f+Math.imul(oe,W)|0,t=t+Math.imul(oe,K)|0,t=t+Math.imul(se,W)|0,h=h+Math.imul(se,K)|0,f=f+Math.imul(ie,V)|0,t=t+Math.imul(ie,ae)|0,t=t+Math.imul(ne,V)|0,h=h+Math.imul(ne,ae)|0,f=f+Math.imul(te,ue)|0,t=t+Math.imul(te,le)|0,t=t+Math.imul(re,ue)|0,h=h+Math.imul(re,le)|0;var We=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(We>>>26)|0,We&=67108863,f=Math.imul(Fe,Oe),t=Math.imul(Fe,qe),t=t+Math.imul(Be,Oe)|0,h=Math.imul(Be,qe),f=f+Math.imul(be,ke)|0,t=t+Math.imul(be,Ue)|0,t=t+Math.imul(me,ke)|0,h=h+Math.imul(me,Ue)|0,f=f+Math.imul(de,W)|0,t=t+Math.imul(de,K)|0,t=t+Math.imul(ve,W)|0,h=h+Math.imul(ve,K)|0,f=f+Math.imul(oe,V)|0,t=t+Math.imul(oe,ae)|0,t=t+Math.imul(se,V)|0,h=h+Math.imul(se,ae)|0,f=f+Math.imul(ie,ue)|0,t=t+Math.imul(ie,le)|0,t=t+Math.imul(ne,ue)|0,h=h+Math.imul(ne,le)|0;var Ze=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,f=Math.imul(Fe,ke),t=Math.imul(Fe,Ue),t=t+Math.imul(Be,ke)|0,h=Math.imul(Be,Ue),f=f+Math.imul(be,W)|0,t=t+Math.imul(be,K)|0,t=t+Math.imul(me,W)|0,h=h+Math.imul(me,K)|0,f=f+Math.imul(de,V)|0,t=t+Math.imul(de,ae)|0,t=t+Math.imul(ve,V)|0,h=h+Math.imul(ve,ae)|0,f=f+Math.imul(oe,ue)|0,t=t+Math.imul(oe,le)|0,t=t+Math.imul(se,ue)|0,h=h+Math.imul(se,le)|0;var Xe=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,f=Math.imul(Fe,W),t=Math.imul(Fe,K),t=t+Math.imul(Be,W)|0,h=Math.imul(Be,K),f=f+Math.imul(be,V)|0,t=t+Math.imul(be,ae)|0,t=t+Math.imul(me,V)|0,h=h+Math.imul(me,ae)|0,f=f+Math.imul(de,ue)|0,t=t+Math.imul(de,le)|0,t=t+Math.imul(ve,ue)|0,h=h+Math.imul(ve,le)|0;var je=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(je>>>26)|0,je&=67108863,f=Math.imul(Fe,V),t=Math.imul(Fe,ae),t=t+Math.imul(Be,V)|0,h=Math.imul(Be,ae),f=f+Math.imul(be,ue)|0,t=t+Math.imul(be,le)|0,t=t+Math.imul(me,ue)|0,h=h+Math.imul(me,le)|0;var Me=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(Me>>>26)|0,Me&=67108863,f=Math.imul(Fe,ue),t=Math.imul(Fe,le),t=t+Math.imul(Be,ue)|0,h=Math.imul(Be,le);var Ae=(w+f|0)+((t&8191)<<13)|0;return w=(h+(t>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,d[0]=Ye,d[1]=ze,d[2]=ht,d[3]=Ge,d[4]=et,d[5]=tt,d[6]=ft,d[7]=at,d[8]=rt,d[9]=nt,d[10]=it,d[11]=Ve,d[12]=Je,d[13]=We,d[14]=Ze,d[15]=Xe,d[16]=je,d[17]=Me,d[18]=Ae,w!==0&&(d[19]=w,n.length++),n};Math.imul||(E=_);function B(c,e,r){r.negative=e.negative^c.negative,r.length=c.length+e.length;for(var n=0,a=0,u=0;u<r.length-1;u++){var d=a;a=0;for(var w=n&67108863,f=Math.min(u,e.length-1),t=Math.max(0,u-c.length+1);t<=f;t++){var h=u-t,H=c.words[h]|0,j=e.words[t]|0,U=H*j,ee=U&67108863;d=d+(U/67108864|0)|0,ee=ee+w|0,w=ee&67108863,d=d+(ee>>>26)|0,a+=d>>>26,d&=67108863}r.words[u]=w,n=d,d=a}return n!==0?r.words[u]=n:r.length--,r.strip()}function F(c,e,r){var n=new C;return n.mulp(c,e,r)}i.prototype.mulTo=function(e,r){var n,a=this.length+e.length;return this.length===10&&e.length===10?n=E(this,e,r):a<63?n=_(this,e,r):a<1024?n=B(this,e,r):n=F(this,e,r),n};function C(c,e){this.x=c,this.y=e}C.prototype.makeRBT=function(e){for(var r=new Array(e),n=i.prototype._countBits(e)-1,a=0;a<e;a++)r[a]=this.revBin(a,n,e);return r},C.prototype.revBin=function(e,r,n){if(e===0||e===n-1)return e;for(var a=0,u=0;u<r;u++)a|=(e&1)<<r-u-1,e>>=1;return a},C.prototype.permute=function(e,r,n,a,u,d){for(var w=0;w<d;w++)a[w]=r[e[w]],u[w]=n[e[w]]},C.prototype.transform=function(e,r,n,a,u,d){this.permute(d,e,r,n,a,u);for(var w=1;w<u;w<<=1)for(var f=w<<1,t=Math.cos(2*Math.PI/f),h=Math.sin(2*Math.PI/f),H=0;H<u;H+=f)for(var j=t,U=h,ee=0;ee<w;ee++){var J=n[H+ee],N=a[H+ee],z=n[H+ee+w],Z=a[H+ee+w],k=j*z-U*Z;Z=j*Z+U*z,z=k,n[H+ee]=J+z,a[H+ee]=N+Z,n[H+ee+w]=J-z,a[H+ee+w]=N-Z,ee!==f&&(k=t*j-h*U,U=t*U+h*j,j=k)}},C.prototype.guessLen13b=function(e,r){var n=Math.max(r,e)|1,a=n&1,u=0;for(n=n/2|0;n;n=n>>>1)u++;return 1<<u+1+a},C.prototype.conjugate=function(e,r,n){if(!(n<=1))for(var a=0;a<n/2;a++){var u=e[a];e[a]=e[n-a-1],e[n-a-1]=u,u=r[a],r[a]=-r[n-a-1],r[n-a-1]=-u}},C.prototype.normalize13b=function(e,r){for(var n=0,a=0;a<r/2;a++){var u=Math.round(e[2*a+1]/r)*8192+Math.round(e[2*a]/r)+n;e[a]=u&67108863,u<67108864?n=0:n=u/67108864|0}return e},C.prototype.convert13b=function(e,r,n,a){for(var u=0,d=0;d<r;d++)u=u+(e[d]|0),n[2*d]=u&8191,u=u>>>13,n[2*d+1]=u&8191,u=u>>>13;for(d=2*r;d<a;++d)n[d]=0;s(u===0),s((u&-8192)===0)},C.prototype.stub=function(e){for(var r=new Array(e),n=0;n<e;n++)r[n]=0;return r},C.prototype.mulp=function(e,r,n){var a=2*this.guessLen13b(e.length,r.length),u=this.makeRBT(a),d=this.stub(a),w=new Array(a),f=new Array(a),t=new Array(a),h=new Array(a),H=new Array(a),j=new Array(a),U=n.words;U.length=a,this.convert13b(e.words,e.length,w,a),this.convert13b(r.words,r.length,h,a),this.transform(w,d,f,t,a,u),this.transform(h,d,H,j,a,u);for(var ee=0;ee<a;ee++){var J=f[ee]*H[ee]-t[ee]*j[ee];t[ee]=f[ee]*j[ee]+t[ee]*H[ee],f[ee]=J}return this.conjugate(f,t,a),this.transform(f,t,U,d,a,u),this.conjugate(U,d,a),this.normalize13b(U,a),n.negative=e.negative^r.negative,n.length=e.length+r.length,n.strip()},i.prototype.mul=function(e){var r=new i(null);return r.words=new Array(this.length+e.length),this.mulTo(e,r)},i.prototype.mulf=function(e){var r=new i(null);return r.words=new Array(this.length+e.length),F(this,e,r)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){s(typeof e=="number"),s(e<67108864);for(var r=0,n=0;n<this.length;n++){var a=(this.words[n]|0)*e,u=(a&67108863)+(r&67108863);r>>=26,r+=a/67108864|0,r+=u>>>26,this.words[n]=u&67108863}return r!==0&&(this.words[n]=r,this.length++),this.length=e===0?1:this.length,this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var r=M(e);if(r.length===0)return new i(1);for(var n=this,a=0;a<r.length&&r[a]===0;a++,n=n.sqr());if(++a<r.length)for(var u=n.sqr();a<r.length;a++,u=u.sqr())r[a]!==0&&(n=n.mul(u));return n},i.prototype.iushln=function(e){s(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26,a=67108863>>>26-r<<26-r,u;if(r!==0){var d=0;for(u=0;u<this.length;u++){var w=this.words[u]&a,f=(this.words[u]|0)-w<<r;this.words[u]=f|d,d=w>>>26-r}d&&(this.words[u]=d,this.length++)}if(n!==0){for(u=this.length-1;u>=0;u--)this.words[u+n]=this.words[u];for(u=0;u<n;u++)this.words[u]=0;this.length+=n}return this.strip()},i.prototype.ishln=function(e){return s(this.negative===0),this.iushln(e)},i.prototype.iushrn=function(e,r,n){s(typeof e=="number"&&e>=0);var a;r?a=(r-r%26)/26:a=0;var u=e%26,d=Math.min((e-u)/26,this.length),w=67108863^67108863>>>u<<u,f=n;if(a-=d,a=Math.max(0,a),f){for(var t=0;t<d;t++)f.words[t]=this.words[t];f.length=d}if(d!==0)if(this.length>d)for(this.length-=d,t=0;t<this.length;t++)this.words[t]=this.words[t+d];else this.words[0]=0,this.length=1;var h=0;for(t=this.length-1;t>=0&&(h!==0||t>=a);t--){var H=this.words[t]|0;this.words[t]=h<<26-u|H>>>u,h=H&w}return f&&h!==0&&(f.words[f.length++]=h),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,r,n){return s(this.negative===0),this.iushrn(e,r,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){s(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26,a=1<<r;if(this.length<=n)return!1;var u=this.words[n];return!!(u&a)},i.prototype.imaskn=function(e){s(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26;if(s(this.negative===0,"imaskn works only with positive numbers"),this.length<=n)return this;if(r!==0&&n++,this.length=Math.min(n,this.length),r!==0){var a=67108863^67108863>>>r<<r;this.words[this.length-1]&=a}return this.strip()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return s(typeof e=="number"),s(e<67108864),e<0?this.isubn(-e):this.negative!==0?this.length===1&&(this.words[0]|0)<e?(this.words[0]=e-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},i.prototype._iaddn=function(e){this.words[0]+=e;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},i.prototype.isubn=function(e){if(s(typeof e=="number"),s(e<67108864),e<0)return this.iaddn(-e);if(this.negative!==0)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this.strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,r,n){var a=e.length+n,u;this._expand(a);var d,w=0;for(u=0;u<e.length;u++){d=(this.words[u+n]|0)+w;var f=(e.words[u]|0)*r;d-=f&67108863,w=(d>>26)-(f/67108864|0),this.words[u+n]=d&67108863}for(;u<this.length-n;u++)d=(this.words[u+n]|0)+w,w=d>>26,this.words[u+n]=d&67108863;if(w===0)return this.strip();for(s(w===-1),w=0,u=0;u<this.length;u++)d=-(this.words[u]|0)+w,w=d>>26,this.words[u]=d&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,r){var n=this.length-e.length,a=this.clone(),u=e,d=u.words[u.length-1]|0,w=this._countBits(d);n=26-w,n!==0&&(u=u.ushln(n),a.iushln(n),d=u.words[u.length-1]|0);var f=a.length-u.length,t;if(r!=="mod"){t=new i(null),t.length=f+1,t.words=new Array(t.length);for(var h=0;h<t.length;h++)t.words[h]=0}var H=a.clone()._ishlnsubmul(u,1,f);H.negative===0&&(a=H,t&&(t.words[f]=1));for(var j=f-1;j>=0;j--){var U=(a.words[u.length+j]|0)*67108864+(a.words[u.length+j-1]|0);for(U=Math.min(U/d|0,67108863),a._ishlnsubmul(u,U,j);a.negative!==0;)U--,a.negative=0,a._ishlnsubmul(u,1,j),a.isZero()||(a.negative^=1);t&&(t.words[j]=U)}return t&&t.strip(),a.strip(),r!=="div"&&n!==0&&a.iushrn(n),{div:t||null,mod:a}},i.prototype.divmod=function(e,r,n){if(s(!e.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var a,u,d;return this.negative!==0&&e.negative===0?(d=this.neg().divmod(e,r),r!=="mod"&&(a=d.div.neg()),r!=="div"&&(u=d.mod.neg(),n&&u.negative!==0&&u.iadd(e)),{div:a,mod:u}):this.negative===0&&e.negative!==0?(d=this.divmod(e.neg(),r),r!=="mod"&&(a=d.div.neg()),{div:a,mod:d.mod}):(this.negative&e.negative)!==0?(d=this.neg().divmod(e.neg(),r),r!=="div"&&(u=d.mod.neg(),n&&u.negative!==0&&u.isub(e)),{div:d.div,mod:u}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:e.length===1?r==="div"?{div:this.divn(e.words[0]),mod:null}:r==="mod"?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,r)},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var r=this.divmod(e);if(r.mod.isZero())return r.div;var n=r.div.negative!==0?r.mod.isub(e):r.mod,a=e.ushrn(1),u=e.andln(1),d=n.cmp(a);return d<0||u===1&&d===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},i.prototype.modn=function(e){s(e<=67108863);for(var r=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(r*n+(this.words[a]|0))%e;return n},i.prototype.idivn=function(e){s(e<=67108863);for(var r=0,n=this.length-1;n>=0;n--){var a=(this.words[n]|0)+r*67108864;this.words[n]=a/e|0,r=a%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){s(e.negative===0),s(!e.isZero());var r=this,n=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var a=new i(1),u=new i(0),d=new i(0),w=new i(1),f=0;r.isEven()&&n.isEven();)r.iushrn(1),n.iushrn(1),++f;for(var t=n.clone(),h=r.clone();!r.isZero();){for(var H=0,j=1;(r.words[0]&j)===0&&H<26;++H,j<<=1);if(H>0)for(r.iushrn(H);H-- >0;)(a.isOdd()||u.isOdd())&&(a.iadd(t),u.isub(h)),a.iushrn(1),u.iushrn(1);for(var U=0,ee=1;(n.words[0]&ee)===0&&U<26;++U,ee<<=1);if(U>0)for(n.iushrn(U);U-- >0;)(d.isOdd()||w.isOdd())&&(d.iadd(t),w.isub(h)),d.iushrn(1),w.iushrn(1);r.cmp(n)>=0?(r.isub(n),a.isub(d),u.isub(w)):(n.isub(r),d.isub(a),w.isub(u))}return{a:d,b:w,gcd:n.iushln(f)}},i.prototype._invmp=function(e){s(e.negative===0),s(!e.isZero());var r=this,n=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var a=new i(1),u=new i(0),d=n.clone();r.cmpn(1)>0&&n.cmpn(1)>0;){for(var w=0,f=1;(r.words[0]&f)===0&&w<26;++w,f<<=1);if(w>0)for(r.iushrn(w);w-- >0;)a.isOdd()&&a.iadd(d),a.iushrn(1);for(var t=0,h=1;(n.words[0]&h)===0&&t<26;++t,h<<=1);if(t>0)for(n.iushrn(t);t-- >0;)u.isOdd()&&u.iadd(d),u.iushrn(1);r.cmp(n)>=0?(r.isub(n),a.isub(u)):(n.isub(r),u.isub(a))}var H;return r.cmpn(1)===0?H=a:H=u,H.cmpn(0)<0&&H.iadd(e),H},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var r=this.clone(),n=e.clone();r.negative=0,n.negative=0;for(var a=0;r.isEven()&&n.isEven();a++)r.iushrn(1),n.iushrn(1);do{for(;r.isEven();)r.iushrn(1);for(;n.isEven();)n.iushrn(1);var u=r.cmp(n);if(u<0){var d=r;r=n,n=d}else if(u===0||n.cmpn(1)===0)break;r.isub(n)}while(!0);return n.iushln(a)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){s(typeof e=="number");var r=e%26,n=(e-r)/26,a=1<<r;if(this.length<=n)return this._expand(n+1),this.words[n]|=a,this;for(var u=a,d=n;u!==0&&d<this.length;d++){var w=this.words[d]|0;w+=u,u=w>>>26,w&=67108863,this.words[d]=w}return u!==0&&(this.words[d]=u,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(e){var r=e<0;if(this.negative!==0&&!r)return-1;if(this.negative===0&&r)return 1;this.strip();var n;if(this.length>1)n=1;else{r&&(e=-e),s(e<=67108863,"Number is too big");var a=this.words[0]|0;n=a===e?0:a<e?-1:1}return this.negative!==0?-n|0:n},i.prototype.cmp=function(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var r=this.ucmp(e);return this.negative!==0?-r|0:r},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var r=0,n=this.length-1;n>=0;n--){var a=this.words[n]|0,u=e.words[n]|0;if(a!==u){a<u?r=-1:a>u&&(r=1);break}}return r},i.prototype.gtn=function(e){return this.cmpn(e)===1},i.prototype.gt=function(e){return this.cmp(e)===1},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return this.cmpn(e)===-1},i.prototype.lt=function(e){return this.cmp(e)===-1},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return this.cmpn(e)===0},i.prototype.eq=function(e){return this.cmp(e)===0},i.red=function(e){return new L(e)},i.prototype.toRed=function(e){return s(!this.red,"Already a number in reduction context"),s(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return s(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return s(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return s(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return s(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return s(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return s(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return s(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return s(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return s(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return s(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return s(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return s(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return s(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var R={k256:null,p224:null,p192:null,p25519:null};function D(c,e){this.name=c,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}D.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},D.prototype.ireduce=function(e){var r=e,n;do this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),n=r.bitLength();while(n>this.n);var a=n<this.n?-1:r.ucmp(this.p);return a===0?(r.words[0]=0,r.length=1):a>0?r.isub(this.p):r.strip!==void 0?r.strip():r._strip(),r},D.prototype.split=function(e,r){e.iushrn(this.n,0,r)},D.prototype.imulK=function(e){return e.imul(this.k)};function q(){D.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}A(q,D),q.prototype.split=function(e,r){for(var n=4194303,a=Math.min(e.length,9),u=0;u<a;u++)r.words[u]=e.words[u];if(r.length=a,e.length<=9){e.words[0]=0,e.length=1;return}var d=e.words[9];for(r.words[r.length++]=d&n,u=10;u<e.length;u++){var w=e.words[u]|0;e.words[u-10]=(w&n)<<4|d>>>22,d=w}d>>>=22,e.words[u-10]=d,d===0&&e.length>10?e.length-=10:e.length-=9},q.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var r=0,n=0;n<e.length;n++){var a=e.words[n]|0;r+=a*977,e.words[n]=r&67108863,r=a*64+(r/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e};function O(){D.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}A(O,D);function Y(){D.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}A(Y,D);function Q(){D.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}A(Q,D),Q.prototype.imulK=function(e){for(var r=0,n=0;n<e.length;n++){var a=(e.words[n]|0)*19+r,u=a&67108863;a>>>=26,e.words[n]=u,r=a}return r!==0&&(e.words[e.length++]=r),e},i._prime=function(e){if(R[e])return R[e];var r;if(e==="k256")r=new q;else if(e==="p224")r=new O;else if(e==="p192")r=new Y;else if(e==="p25519")r=new Q;else throw new Error("Unknown prime "+e);return R[e]=r,r};function L(c){if(typeof c=="string"){var e=i._prime(c);this.m=e.p,this.prime=e}else s(c.gtn(1),"modulus must be greater than 1"),this.m=c,this.prime=null}L.prototype._verify1=function(e){s(e.negative===0,"red works only with positives"),s(e.red,"red works only with red numbers")},L.prototype._verify2=function(e,r){s((e.negative|r.negative)===0,"red works only with positives"),s(e.red&&e.red===r.red,"red works only with red numbers")},L.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},L.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},L.prototype.add=function(e,r){this._verify2(e,r);var n=e.add(r);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},L.prototype.iadd=function(e,r){this._verify2(e,r);var n=e.iadd(r);return n.cmp(this.m)>=0&&n.isub(this.m),n},L.prototype.sub=function(e,r){this._verify2(e,r);var n=e.sub(r);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},L.prototype.isub=function(e,r){this._verify2(e,r);var n=e.isub(r);return n.cmpn(0)<0&&n.iadd(this.m),n},L.prototype.shl=function(e,r){return this._verify1(e),this.imod(e.ushln(r))},L.prototype.imul=function(e,r){return this._verify2(e,r),this.imod(e.imul(r))},L.prototype.mul=function(e,r){return this._verify2(e,r),this.imod(e.mul(r))},L.prototype.isqr=function(e){return this.imul(e,e.clone())},L.prototype.sqr=function(e){return this.mul(e,e)},L.prototype.sqrt=function(e){if(e.isZero())return e.clone();var r=this.m.andln(3);if(s(r%2===1),r===3){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),u=0;!a.isZero()&&a.andln(1)===0;)u++,a.iushrn(1);s(!a.isZero());var d=new i(1).toRed(this),w=d.redNeg(),f=this.m.subn(1).iushrn(1),t=this.m.bitLength();for(t=new i(2*t*t).toRed(this);this.pow(t,f).cmp(w)!==0;)t.redIAdd(w);for(var h=this.pow(t,a),H=this.pow(e,a.addn(1).iushrn(1)),j=this.pow(e,a),U=u;j.cmp(d)!==0;){for(var ee=j,J=0;ee.cmp(d)!==0;J++)ee=ee.redSqr();s(J<U);var N=this.pow(h,new i(1).iushln(U-J-1));H=H.redMul(N),h=N.redSqr(),j=j.redMul(h),U=J}return H},L.prototype.invm=function(e){var r=e._invmp(this.m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},L.prototype.pow=function(e,r){if(r.isZero())return new i(1).toRed(this);if(r.cmpn(1)===0)return e.clone();var n=4,a=new Array(1<<n);a[0]=new i(1).toRed(this),a[1]=e;for(var u=2;u<a.length;u++)a[u]=this.mul(a[u-1],e);var d=a[0],w=0,f=0,t=r.bitLength()%26;for(t===0&&(t=26),u=r.length-1;u>=0;u--){for(var h=r.words[u],H=t-1;H>=0;H--){var j=h>>H&1;if(d!==a[0]&&(d=this.sqr(d)),j===0&&w===0){f=0;continue}w<<=1,w|=j,f++,!(f!==n&&(u!==0||H!==0))&&(d=this.mul(d,a[w]),f=0,w=0)}t=26}return d},L.prototype.convertTo=function(e){var r=e.umod(this.m);return r===e?r.clone():r},L.prototype.convertFrom=function(e){var r=e.clone();return r.red=null,r},i.mont=function(e){return new X(e)};function X(c){L.call(this,c),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}A(X,L),X.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},X.prototype.convertFrom=function(e){var r=this.imod(e.mul(this.rinv));return r.red=null,r},X.prototype.imul=function(e,r){if(e.isZero()||r.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(r),a=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=n.isub(a).iushrn(this.shift),d=u;return u.cmp(this.m)>=0?d=u.isub(this.m):u.cmpn(0)<0&&(d=u.iadd(this.m)),d._forceRed(this)},X.prototype.mul=function(e,r){if(e.isZero()||r.isZero())return new i(0)._forceRed(this);var n=e.mul(r),a=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=n.isub(a).iushrn(this.shift),d=u;return u.cmp(this.m)>=0?d=u.isub(this.m):u.cmpn(0)<0&&(d=u.iadd(this.m)),d._forceRed(this)},X.prototype.invm=function(e){var r=this.imod(e._invmp(this.m).mul(this.r2));return r._forceRed(this)}})(m,Ep)})(wi)),wi.exports}var hi={exports:{}},Rh;function qf(){if(Rh)return hi.exports;Rh=1;var m;hi.exports=function(A){return m||(m=new g(null)),m.generate(A)};function g(s){this.rand=s}if(hi.exports.Rand=g,g.prototype.generate=function(A){return this._rand(A)},g.prototype._rand=function(A){if(this.rand.getBytes)return this.rand.getBytes(A);for(var i=new Uint8Array(A),l=0;l<i.length;l++)i[l]=this.rand.getByte();return i},typeof self=="object")self.crypto&&self.crypto.getRandomValues?g.prototype._rand=function(A){var i=new Uint8Array(A);return self.crypto.getRandomValues(i),i}:self.msCrypto&&self.msCrypto.getRandomValues?g.prototype._rand=function(A){var i=new Uint8Array(A);return self.msCrypto.getRandomValues(i),i}:typeof window=="object"&&(g.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var S=Xl();if(typeof S.randomBytes!="function")throw new Error("Not supported");g.prototype._rand=function(A){return S.randomBytes(A)}}catch{}return hi.exports}var Va,Th;function Dl(){if(Th)return Va;Th=1;var m=Sp(),g=qf();function S(s){this.rand=s||new g.Rand}return Va=S,S.create=function(A){return new S(A)},S.prototype._randbelow=function(A){var i=A.bitLength(),l=Math.ceil(i/8);do var b=new m(this.rand.generate(l));while(b.cmp(A)>=0);return b},S.prototype._randrange=function(A,i){var l=i.sub(A);return A.add(this._randbelow(l))},S.prototype.test=function(A,i,l){var b=A.bitLength(),p=m.mont(A),o=new m(1).toRed(p);i||(i=Math.max(1,b/48|0));for(var v=A.subn(1),y=0;!v.testn(y);y++);for(var x=A.shrn(y),M=v.toRed(p),_=!0;i>0;i--){var E=this._randrange(new m(2),v);l&&l(E);var B=E.toRed(p).redPow(x);if(!(B.cmp(o)===0||B.cmp(M)===0)){for(var F=1;F<y;F++){if(B=B.redSqr(),B.cmp(o)===0)return!1;if(B.cmp(M)===0)break}if(F===y)return!1}}return _},S.prototype.getDivisor=function(A,i){var l=A.bitLength(),b=m.mont(A),p=new m(1).toRed(b);i||(i=Math.max(1,l/48|0));for(var o=A.subn(1),v=0;!o.testn(v);v++);for(var y=A.shrn(v),x=o.toRed(b);i>0;i--){var M=this._randrange(new m(2),o),_=A.gcd(M);if(_.cmpn(1)!==0)return _;var E=M.toRed(b).redPow(y);if(!(E.cmp(p)===0||E.cmp(x)===0)){for(var B=1;B<v;B++){if(E=E.redSqr(),E.cmp(p)===0)return E.fromRed().subn(1).gcd(A);if(E.cmp(x)===0)break}if(B===v)return E=E.redSqr(),E.fromRed().subn(1).gcd(A)}}return!1},Va}var Za,Ih;function Rl(){if(Ih)return Za;Ih=1;var m=_r();Za=B,B.simpleSieve=_,B.fermatTest=E;var g=Cl(),S=new g(24),s=Dl(),A=new s,i=new g(1),l=new g(2),b=new g(5);new g(16),new g(8);var p=new g(10),o=new g(3);new g(7);var v=new g(11),y=new g(4);new g(12);var x=null;function M(){if(x!==null)return x;var F=1048576,C=[];C[0]=2;for(var R=1,D=3;D<F;D+=2){for(var q=Math.ceil(Math.sqrt(D)),O=0;O<R&&C[O]<=q&&D%C[O]!==0;O++);R!==O&&C[O]<=q||(C[R++]=D)}return x=C,C}function _(F){for(var C=M(),R=0;R<C.length;R++)if(F.modn(C[R])===0)return F.cmpn(C[R])===0;return!0}function E(F){var C=g.mont(F);return l.toRed(C).redPow(F.subn(1)).fromRed().cmpn(1)===0}function B(F,C){if(F<16)return C===2||C===5?new g([140,123]):new g([140,39]);C=new g(C);for(var R,D;;){for(R=new g(m(Math.ceil(F/8)));R.bitLength()>F;)R.ishrn(1);if(R.isEven()&&R.iadd(i),R.testn(1)||R.iadd(l),C.cmp(l)){if(!C.cmp(b))for(;R.mod(p).cmp(o);)R.iadd(y)}else for(;R.mod(S).cmp(v);)R.iadd(y);if(D=R.shrn(1),_(D)&&_(R)&&E(D)&&E(R)&&A.test(D)&&A.test(R))return R}}return Za}const Bp={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},Fp={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},Cp={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},Dp={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},Rp={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},Tp={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},Ip={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},kp={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"},Pp={modp1:Bp,modp2:Fp,modp5:Cp,modp14:Dp,modp15:Rp,modp16:Tp,modp17:Ip,modp18:kp};var Xa,kh;function Np(){if(kh)return Xa;kh=1;var m=Cl(),g=Dl(),S=new g,s=new m(24),A=new m(11),i=new m(10),l=new m(3),b=new m(7),p=Rl(),o=_r();Xa=_;function v(B,F){return F=F||"utf8",xe.Buffer.isBuffer(B)||(B=new xe.Buffer(B,F)),this._pub=new m(B),this}function y(B,F){return F=F||"utf8",xe.Buffer.isBuffer(B)||(B=new xe.Buffer(B,F)),this._priv=new m(B),this}var x={};function M(B,F){var C=F.toString("hex"),R=[C,B.toString(16)].join("_");if(R in x)return x[R];var D=0;if(B.isEven()||!p.simpleSieve||!p.fermatTest(B)||!S.test(B))return D+=1,C==="02"||C==="05"?D+=8:D+=4,x[R]=D,D;S.test(B.shrn(1))||(D+=2);var q;switch(C){case"02":B.mod(s).cmp(A)&&(D+=8);break;case"05":q=B.mod(i),q.cmp(l)&&q.cmp(b)&&(D+=8);break;default:D+=4}return x[R]=D,D}function _(B,F,C){this.setGenerator(F),this.__prime=new m(B),this._prime=m.mont(this.__prime),this._primeLen=B.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,C?(this.setPublicKey=v,this.setPrivateKey=y):this._primeCode=8}Object.defineProperty(_.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=M(this.__prime,this.__gen)),this._primeCode}}),_.prototype.generateKeys=function(){return this._priv||(this._priv=new m(o(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},_.prototype.computeSecret=function(B){B=new m(B),B=B.toRed(this._prime);var F=B.redPow(this._priv).fromRed(),C=new xe.Buffer(F.toArray()),R=this.getPrime();if(C.length<R.length){var D=new xe.Buffer(R.length-C.length);D.fill(0),C=xe.Buffer.concat([D,C])}return C},_.prototype.getPublicKey=function(F){return E(this._pub,F)},_.prototype.getPrivateKey=function(F){return E(this._priv,F)},_.prototype.getPrime=function(B){return E(this.__prime,B)},_.prototype.getGenerator=function(B){return E(this._gen,B)},_.prototype.setGenerator=function(B,F){return F=F||"utf8",xe.Buffer.isBuffer(B)||(B=new xe.Buffer(B,F)),this.__gen=B,this._gen=new m(B),this};function E(B,F){var C=new xe.Buffer(B.toArray());return F?C.toString(F):C}return Xa}var Ph;function Op(){if(Ph)return hr;Ph=1;var m=Rl(),g=Pp,S=Np();function s(l){var b=new xe.Buffer(g[l].prime,"hex"),p=new xe.Buffer(g[l].gen,"hex");return new S(b,p)}var A={binary:!0,hex:!0,base64:!0};function i(l,b,p,o){return xe.Buffer.isBuffer(b)||A[b]===void 0?i(l,"binary",b,p):(b=b||"binary",o=o||"binary",p=p||new xe.Buffer([2]),xe.Buffer.isBuffer(p)||(p=new xe.Buffer(p,o)),typeof l=="number"?new S(m(l,p),p,!0):(xe.Buffer.isBuffer(l)||(l=new xe.Buffer(l,b)),new S(l,p,!0)))}return hr.DiffieHellmanGroup=hr.createDiffieHellmanGroup=hr.getDiffieHellman=s,hr.createDiffieHellman=hr.DiffieHellman=i,hr}var ui={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var Nh;function Uf(){return Nh||(Nh=1,(function(m,g){var S=Qe.requireDist(),s=S.Buffer;function A(l,b){for(var p in l)b[p]=l[p]}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?m.exports=S:(A(S,g),g.Buffer=i);function i(l,b,p){return s(l,b,p)}i.prototype=Object.create(s.prototype),A(s,i),i.from=function(l,b,p){if(typeof l=="number")throw new TypeError("Argument must not be a number");return s(l,b,p)},i.alloc=function(l,b,p){if(typeof l!="number")throw new TypeError("Argument must be a number");var o=s(l);return b!==void 0?typeof p=="string"?o.fill(b,p):o.fill(b):o.fill(0),o},i.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return s(l)},i.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return S.SlowBuffer(l)}})(ui,ui.exports)),ui.exports}var ci={exports:{}},li={exports:{}},Oh;function Pi(){if(Oh)return li.exports;Oh=1,typeof xe.process$1>"u"||!xe.process$1.version||xe.process$1.version.indexOf("v0.")===0||xe.process$1.version.indexOf("v1.")===0&&xe.process$1.version.indexOf("v1.8.")!==0?li.exports={nextTick:m}:li.exports=xe.process$1;function m(g,S,s,A){if(typeof g!="function")throw new TypeError('"callback" argument must be a function');var i=arguments.length,l,b;switch(i){case 0:case 1:return xe.process$1.nextTick(g);case 2:return xe.process$1.nextTick(function(){g.call(null,S)});case 3:return xe.process$1.nextTick(function(){g.call(null,S,s)});case 4:return xe.process$1.nextTick(function(){g.call(null,S,s,A)});default:for(l=new Array(i-1),b=0;b<l.length;)l[b++]=arguments[b];return xe.process$1.nextTick(function(){g.apply(null,l)})}}return li.exports}var Ya,qh;function qp(){if(qh)return Ya;qh=1;var m={}.toString;return Ya=Array.isArray||function(g){return m.call(g)=="[object Array]"},Ya}var Ja,Uh;function Tl(){return Uh||(Uh=1,Ja=Ar().EventEmitter),Ja}var di={exports:{}},Lh;function Lf(){return Lh||(Lh=1,(function(m,g){var S=Qe.requireDist(),s=S.Buffer;function A(l,b){for(var p in l)b[p]=l[p]}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?m.exports=S:(A(S,g),g.Buffer=i);function i(l,b,p){return s(l,b,p)}A(s,i),i.from=function(l,b,p){if(typeof l=="number")throw new TypeError("Argument must not be a number");return s(l,b,p)},i.alloc=function(l,b,p){if(typeof l!="number")throw new TypeError("Argument must be a number");var o=s(l);return b!==void 0?typeof p=="string"?o.fill(b,p):o.fill(b):o.fill(0),o},i.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return s(l)},i.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return S.SlowBuffer(l)}})(di,di.exports)),di.exports}var Lt={},Hh;function Ur(){if(Hh)return Lt;Hh=1;function m(E){return Array.isArray?Array.isArray(E):_(E)==="[object Array]"}Lt.isArray=m;function g(E){return typeof E=="boolean"}Lt.isBoolean=g;function S(E){return E===null}Lt.isNull=S;function s(E){return E==null}Lt.isNullOrUndefined=s;function A(E){return typeof E=="number"}Lt.isNumber=A;function i(E){return typeof E=="string"}Lt.isString=i;function l(E){return typeof E=="symbol"}Lt.isSymbol=l;function b(E){return E===void 0}Lt.isUndefined=b;function p(E){return _(E)==="[object RegExp]"}Lt.isRegExp=p;function o(E){return typeof E=="object"&&E!==null}Lt.isObject=o;function v(E){return _(E)==="[object Date]"}Lt.isDate=v;function y(E){return _(E)==="[object Error]"||E instanceof Error}Lt.isError=y;function x(E){return typeof E=="function"}Lt.isFunction=x;function M(E){return E===null||typeof E=="boolean"||typeof E=="number"||typeof E=="string"||typeof E=="symbol"||typeof E>"u"}Lt.isPrimitive=M,Lt.isBuffer=Qe.requireDist().Buffer.isBuffer;function _(E){return Object.prototype.toString.call(E)}return Lt}var Qa={exports:{}},$h;function Up(){return $h||($h=1,(function(m){function g(i,l){if(!(i instanceof l))throw new TypeError("Cannot call a class as a function")}var S=Lf().Buffer,s=Er;function A(i,l,b){i.copy(l,b)}m.exports=(function(){function i(){g(this,i),this.head=null,this.tail=null,this.length=0}return i.prototype.push=function(b){var p={data:b,next:null};this.length>0?this.tail.next=p:this.head=p,this.tail=p,++this.length},i.prototype.unshift=function(b){var p={data:b,next:this.head};this.length===0&&(this.tail=p),this.head=p,++this.length},i.prototype.shift=function(){if(this.length!==0){var b=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,b}},i.prototype.clear=function(){this.head=this.tail=null,this.length=0},i.prototype.join=function(b){if(this.length===0)return"";for(var p=this.head,o=""+p.data;p=p.next;)o+=b+p.data;return o},i.prototype.concat=function(b){if(this.length===0)return S.alloc(0);for(var p=S.allocUnsafe(b>>>0),o=this.head,v=0;o;)A(o.data,p,v),v+=o.data.length,o=o.next;return p},i})(),s&&s.inspect&&s.inspect.custom&&(m.exports.prototype[s.inspect.custom]=function(){var i=s.inspect({length:this.length});return this.constructor.name+" "+i})})(Qa)),Qa.exports}var e0,jh;function Il(){if(jh)return e0;jh=1;var m=Pi();function g(A,i){var l=this,b=this._readableState&&this._readableState.destroyed,p=this._writableState&&this._writableState.destroyed;return b||p?(i?i(A):A&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,m.nextTick(s,this,A)):m.nextTick(s,this,A)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(A||null,function(o){!i&&o?l._writableState?l._writableState.errorEmitted||(l._writableState.errorEmitted=!0,m.nextTick(s,l,o)):m.nextTick(s,l,o):i&&i(o)}),this)}function S(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function s(A,i){A.emit("error",i)}return e0={destroy:g,undestroy:S},e0}var t0,zh;function kl(){if(zh)return t0;zh=1;var m=Pi();t0=E;function g(d){var w=this;this.next=null,this.entry=null,this.finish=function(){u(w,d)}}var S=!xe.process$1.browser&&["v0.10","v0.9."].indexOf(xe.process$1.version.slice(0,5))>-1?setImmediate:m.nextTick,s;E.WritableState=M;var A=Object.create(Ur());A.inherits=dt();var i={deprecate:Xc()},l=Tl(),b=Lf().Buffer,p=(typeof Qe.commonjsGlobal<"u"?Qe.commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function o(d){return b.from(d)}function v(d){return b.isBuffer(d)||d instanceof p}var y=Il();A.inherits(E,l);function x(){}function M(d,w){s=s||Mr(),d=d||{};var f=w instanceof s;this.objectMode=!!d.objectMode,f&&(this.objectMode=this.objectMode||!!d.writableObjectMode);var t=d.highWaterMark,h=d.writableHighWaterMark,H=this.objectMode?16:16*1024;t||t===0?this.highWaterMark=t:f&&(h||h===0)?this.highWaterMark=h:this.highWaterMark=H,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 j=d.decodeStrings===!1;this.decodeStrings=!j,this.defaultEncoding=d.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(U){Y(w,U)},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 g(this)}M.prototype.getBuffer=function(){for(var w=this.bufferedRequest,f=[];w;)f.push(w),w=w.next;return f},(function(){try{Object.defineProperty(M.prototype,"buffer",{get:i.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var _;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(_=Function.prototype[Symbol.hasInstance],Object.defineProperty(E,Symbol.hasInstance,{value:function(d){return _.call(this,d)?!0:this!==E?!1:d&&d._writableState instanceof M}})):_=function(d){return d instanceof this};function E(d){if(s=s||Mr(),!_.call(E,this)&&!(this instanceof s))return new E(d);this._writableState=new M(d,this),this.writable=!0,d&&(typeof d.write=="function"&&(this._write=d.write),typeof d.writev=="function"&&(this._writev=d.writev),typeof d.destroy=="function"&&(this._destroy=d.destroy),typeof d.final=="function"&&(this._final=d.final)),l.call(this)}E.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function B(d,w){var f=new Error("write after end");d.emit("error",f),m.nextTick(w,f)}function F(d,w,f,t){var h=!0,H=!1;return f===null?H=new TypeError("May not write null values to stream"):typeof f!="string"&&f!==void 0&&!w.objectMode&&(H=new TypeError("Invalid non-string/buffer chunk")),H&&(d.emit("error",H),m.nextTick(t,H),h=!1),h}E.prototype.write=function(d,w,f){var t=this._writableState,h=!1,H=!t.objectMode&&v(d);return H&&!b.isBuffer(d)&&(d=o(d)),typeof w=="function"&&(f=w,w=null),H?w="buffer":w||(w=t.defaultEncoding),typeof f!="function"&&(f=x),t.ended?B(this,f):(H||F(this,t,d,f))&&(t.pendingcb++,h=R(this,t,H,d,w,f)),h},E.prototype.cork=function(){var d=this._writableState;d.corked++},E.prototype.uncork=function(){var d=this._writableState;d.corked&&(d.corked--,!d.writing&&!d.corked&&!d.bufferProcessing&&d.bufferedRequest&&X(this,d))},E.prototype.setDefaultEncoding=function(w){if(typeof w=="string"&&(w=w.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((w+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+w);return this._writableState.defaultEncoding=w,this};function C(d,w,f){return!d.objectMode&&d.decodeStrings!==!1&&typeof w=="string"&&(w=b.from(w,f)),w}Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function R(d,w,f,t,h,H){if(!f){var j=C(w,t,h);t!==j&&(f=!0,h="buffer",t=j)}var U=w.objectMode?1:t.length;w.length+=U;var ee=w.length<w.highWaterMark;if(ee||(w.needDrain=!0),w.writing||w.corked){var J=w.lastBufferedRequest;w.lastBufferedRequest={chunk:t,encoding:h,isBuf:f,callback:H,next:null},J?J.next=w.lastBufferedRequest:w.bufferedRequest=w.lastBufferedRequest,w.bufferedRequestCount+=1}else D(d,w,!1,U,t,h,H);return ee}function D(d,w,f,t,h,H,j){w.writelen=t,w.writecb=j,w.writing=!0,w.sync=!0,f?d._writev(h,w.onwrite):d._write(h,H,w.onwrite),w.sync=!1}function q(d,w,f,t,h){--w.pendingcb,f?(m.nextTick(h,t),m.nextTick(n,d,w),d._writableState.errorEmitted=!0,d.emit("error",t)):(h(t),d._writableState.errorEmitted=!0,d.emit("error",t),n(d,w))}function O(d){d.writing=!1,d.writecb=null,d.length-=d.writelen,d.writelen=0}function Y(d,w){var f=d._writableState,t=f.sync,h=f.writecb;if(O(f),w)q(d,f,t,w,h);else{var H=c(f);!H&&!f.corked&&!f.bufferProcessing&&f.bufferedRequest&&X(d,f),t?S(Q,d,f,H,h):Q(d,f,H,h)}}function Q(d,w,f,t){f||L(d,w),w.pendingcb--,t(),n(d,w)}function L(d,w){w.length===0&&w.needDrain&&(w.needDrain=!1,d.emit("drain"))}function X(d,w){w.bufferProcessing=!0;var f=w.bufferedRequest;if(d._writev&&f&&f.next){var t=w.bufferedRequestCount,h=new Array(t),H=w.corkedRequestsFree;H.entry=f;for(var j=0,U=!0;f;)h[j]=f,f.isBuf||(U=!1),f=f.next,j+=1;h.allBuffers=U,D(d,w,!0,w.length,h,"",H.finish),w.pendingcb++,w.lastBufferedRequest=null,H.next?(w.corkedRequestsFree=H.next,H.next=null):w.corkedRequestsFree=new g(w),w.bufferedRequestCount=0}else{for(;f;){var ee=f.chunk,J=f.encoding,N=f.callback,z=w.objectMode?1:ee.length;if(D(d,w,!1,z,ee,J,N),f=f.next,w.bufferedRequestCount--,w.writing)break}f===null&&(w.lastBufferedRequest=null)}w.bufferedRequest=f,w.bufferProcessing=!1}E.prototype._write=function(d,w,f){f(new Error("_write() is not implemented"))},E.prototype._writev=null,E.prototype.end=function(d,w,f){var t=this._writableState;typeof d=="function"?(f=d,d=null,w=null):typeof w=="function"&&(f=w,w=null),d!=null&&this.write(d,w),t.corked&&(t.corked=1,this.uncork()),t.ending||a(this,t,f)};function c(d){return d.ending&&d.length===0&&d.bufferedRequest===null&&!d.finished&&!d.writing}function e(d,w){d._final(function(f){w.pendingcb--,f&&d.emit("error",f),w.prefinished=!0,d.emit("prefinish"),n(d,w)})}function r(d,w){!w.prefinished&&!w.finalCalled&&(typeof d._final=="function"?(w.pendingcb++,w.finalCalled=!0,m.nextTick(e,d,w)):(w.prefinished=!0,d.emit("prefinish")))}function n(d,w){var f=c(w);return f&&(r(d,w),w.pendingcb===0&&(w.finished=!0,d.emit("finish"))),f}function a(d,w,f){w.ending=!0,n(d,w),f&&(w.finished?m.nextTick(f):d.once("finish",f)),w.ended=!0,d.writable=!1}function u(d,w,f){var t=d.entry;for(d.entry=null;t;){var h=t.callback;w.pendingcb--,h(f),t=t.next}w.corkedRequestsFree.next=d}return Object.defineProperty(E.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(d){this._writableState&&(this._writableState.destroyed=d)}}),E.prototype.destroy=y.destroy,E.prototype._undestroy=y.undestroy,E.prototype._destroy=function(d,w){this.end(),w(d)},t0}var r0,Kh;function Mr(){if(Kh)return r0;Kh=1;var m=Pi(),g=Object.keys||function(y){var x=[];for(var M in y)x.push(M);return x};r0=p;var S=Object.create(Ur());S.inherits=dt();var s=Pl(),A=kl();S.inherits(p,s);for(var i=g(A.prototype),l=0;l<i.length;l++){var b=i[l];p.prototype[b]||(p.prototype[b]=A.prototype[b])}function p(y){if(!(this instanceof p))return new p(y);s.call(this,y),A.call(this,y),y&&y.readable===!1&&(this.readable=!1),y&&y.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,y&&y.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",o)}Object.defineProperty(p.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function o(){this.allowHalfOpen||this._writableState.ended||m.nextTick(v,this)}function v(y){y.end()}return Object.defineProperty(p.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(y){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=y,this._writableState.destroyed=y)}}),p.prototype._destroy=function(y,x){this.push(null),this.end(),m.nextTick(x,y)},r0}var i0,Wh;function Pl(){if(Wh)return i0;Wh=1;var m=Pi();i0=C;var g=qp(),S;C.ReadableState=F,Ar().EventEmitter;var s=function(N,z){return N.listeners(z).length},A=Tl(),i=Lf().Buffer,l=(typeof Qe.commonjsGlobal<"u"?Qe.commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function b(N){return i.from(N)}function p(N){return i.isBuffer(N)||N instanceof l}var o=Object.create(Ur());o.inherits=dt();var v=Er,y=void 0;v&&v.debuglog?y=v.debuglog("stream"):y=function(){};var x=Up(),M=Il(),_;o.inherits(C,A);var E=["error","close","destroy","pause","resume"];function B(N,z,Z){if(typeof N.prependListener=="function")return N.prependListener(z,Z);!N._events||!N._events[z]?N.on(z,Z):g(N._events[z])?N._events[z].unshift(Z):N._events[z]=[Z,N._events[z]]}function F(N,z){S=S||Mr(),N=N||{};var Z=z instanceof S;this.objectMode=!!N.objectMode,Z&&(this.objectMode=this.objectMode||!!N.readableObjectMode);var k=N.highWaterMark,P=N.readableHighWaterMark,T=this.objectMode?16:16*1024;k||k===0?this.highWaterMark=k:Z&&(P||P===0)?this.highWaterMark=P:this.highWaterMark=T,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=N.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,N.encoding&&(_||(_=kr().StringDecoder),this.decoder=new _(N.encoding),this.encoding=N.encoding)}function C(N){if(S=S||Mr(),!(this instanceof C))return new C(N);this._readableState=new F(N,this),this.readable=!0,N&&(typeof N.read=="function"&&(this._read=N.read),typeof N.destroy=="function"&&(this._destroy=N.destroy)),A.call(this)}Object.defineProperty(C.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(N){this._readableState&&(this._readableState.destroyed=N)}}),C.prototype.destroy=M.destroy,C.prototype._undestroy=M.undestroy,C.prototype._destroy=function(N,z){this.push(null),z(N)},C.prototype.push=function(N,z){var Z=this._readableState,k;return Z.objectMode?k=!0:typeof N=="string"&&(z=z||Z.defaultEncoding,z!==Z.encoding&&(N=i.from(N,z),z=""),k=!0),R(this,N,z,!1,k)},C.prototype.unshift=function(N){return R(this,N,null,!0,!1)};function R(N,z,Z,k,P){var T=N._readableState;if(z===null)T.reading=!1,X(N,T);else{var G;P||(G=q(T,z)),G?N.emit("error",G):T.objectMode||z&&z.length>0?(typeof z!="string"&&!T.objectMode&&Object.getPrototypeOf(z)!==i.prototype&&(z=b(z)),k?T.endEmitted?N.emit("error",new Error("stream.unshift() after end event")):D(N,T,z,!0):T.ended?N.emit("error",new Error("stream.push() after EOF")):(T.reading=!1,T.decoder&&!Z?(z=T.decoder.write(z),T.objectMode||z.length!==0?D(N,T,z,!1):r(N,T)):D(N,T,z,!1))):k||(T.reading=!1)}return O(T)}function D(N,z,Z,k){z.flowing&&z.length===0&&!z.sync?(N.emit("data",Z),N.read(0)):(z.length+=z.objectMode?1:Z.length,k?z.buffer.unshift(Z):z.buffer.push(Z),z.needReadable&&c(N)),r(N,z)}function q(N,z){var Z;return!p(z)&&typeof z!="string"&&z!==void 0&&!N.objectMode&&(Z=new TypeError("Invalid non-string/buffer chunk")),Z}function O(N){return!N.ended&&(N.needReadable||N.length<N.highWaterMark||N.length===0)}C.prototype.isPaused=function(){return this._readableState.flowing===!1},C.prototype.setEncoding=function(N){return _||(_=kr().StringDecoder),this._readableState.decoder=new _(N),this._readableState.encoding=N,this};var Y=8388608;function Q(N){return N>=Y?N=Y:(N--,N|=N>>>1,N|=N>>>2,N|=N>>>4,N|=N>>>8,N|=N>>>16,N++),N}function L(N,z){return N<=0||z.length===0&&z.ended?0:z.objectMode?1:N!==N?z.flowing&&z.length?z.buffer.head.data.length:z.length:(N>z.highWaterMark&&(z.highWaterMark=Q(N)),N<=z.length?N:z.ended?z.length:(z.needReadable=!0,0))}C.prototype.read=function(N){y("read",N),N=parseInt(N,10);var z=this._readableState,Z=N;if(N!==0&&(z.emittedReadable=!1),N===0&&z.needReadable&&(z.length>=z.highWaterMark||z.ended))return y("read: emitReadable",z.length,z.ended),z.length===0&&z.ended?U(this):c(this),null;if(N=L(N,z),N===0&&z.ended)return z.length===0&&U(this),null;var k=z.needReadable;y("need readable",k),(z.length===0||z.length-N<z.highWaterMark)&&(k=!0,y("length less than watermark",k)),z.ended||z.reading?(k=!1,y("reading or ended",k)):k&&(y("do read"),z.reading=!0,z.sync=!0,z.length===0&&(z.needReadable=!0),this._read(z.highWaterMark),z.sync=!1,z.reading||(N=L(Z,z)));var P;return N>0?P=t(N,z):P=null,P===null?(z.needReadable=!0,N=0):z.length-=N,z.length===0&&(z.ended||(z.needReadable=!0),Z!==N&&z.ended&&U(this)),P!==null&&this.emit("data",P),P};function X(N,z){if(!z.ended){if(z.decoder){var Z=z.decoder.end();Z&&Z.length&&(z.buffer.push(Z),z.length+=z.objectMode?1:Z.length)}z.ended=!0,c(N)}}function c(N){var z=N._readableState;z.needReadable=!1,z.emittedReadable||(y("emitReadable",z.flowing),z.emittedReadable=!0,z.sync?m.nextTick(e,N):e(N))}function e(N){y("emit readable"),N.emit("readable"),f(N)}function r(N,z){z.readingMore||(z.readingMore=!0,m.nextTick(n,N,z))}function n(N,z){for(var Z=z.length;!z.reading&&!z.flowing&&!z.ended&&z.length<z.highWaterMark&&(y("maybeReadMore read 0"),N.read(0),Z!==z.length);)Z=z.length;z.readingMore=!1}C.prototype._read=function(N){this.emit("error",new Error("_read() is not implemented"))},C.prototype.pipe=function(N,z){var Z=this,k=this._readableState;switch(k.pipesCount){case 0:k.pipes=N;break;case 1:k.pipes=[k.pipes,N];break;default:k.pipes.push(N);break}k.pipesCount+=1,y("pipe count=%d opts=%j",k.pipesCount,z);var P=(!z||z.end!==!1)&&N!==xe.process$1.stdout&&N!==xe.process$1.stderr,T=P?fe:Re;k.endEmitted?m.nextTick(T):Z.once("end",T),N.on("unpipe",G);function G(de,ve){y("onunpipe"),de===Z&&ve&&ve.hasUnpiped===!1&&(ve.hasUnpiped=!0,he())}function fe(){y("onend"),N.end()}var te=a(Z);N.on("drain",te);var re=!1;function he(){y("cleanup"),N.removeListener("close",oe),N.removeListener("finish",se),N.removeListener("drain",te),N.removeListener("error",pe),N.removeListener("unpipe",G),Z.removeListener("end",fe),Z.removeListener("end",Re),Z.removeListener("data",ne),re=!0,k.awaitDrain&&(!N._writableState||N._writableState.needDrain)&&te()}var ie=!1;Z.on("data",ne);function ne(de){y("ondata"),ie=!1;var ve=N.write(de);ve===!1&&!ie&&((k.pipesCount===1&&k.pipes===N||k.pipesCount>1&&J(k.pipes,N)!==-1)&&!re&&(y("false write response, pause",k.awaitDrain),k.awaitDrain++,ie=!0),Z.pause())}function pe(de){y("onerror",de),Re(),N.removeListener("error",pe),s(N,"error")===0&&N.emit("error",de)}B(N,"error",pe);function oe(){N.removeListener("finish",se),Re()}N.once("close",oe);function se(){y("onfinish"),N.removeListener("close",oe),Re()}N.once("finish",se);function Re(){y("unpipe"),Z.unpipe(N)}return N.emit("pipe",Z),k.flowing||(y("pipe resume"),Z.resume()),N};function a(N){return function(){var z=N._readableState;y("pipeOnDrain",z.awaitDrain),z.awaitDrain&&z.awaitDrain--,z.awaitDrain===0&&s(N,"data")&&(z.flowing=!0,f(N))}}C.prototype.unpipe=function(N){var z=this._readableState,Z={hasUnpiped:!1};if(z.pipesCount===0)return this;if(z.pipesCount===1)return N&&N!==z.pipes?this:(N||(N=z.pipes),z.pipes=null,z.pipesCount=0,z.flowing=!1,N&&N.emit("unpipe",this,Z),this);if(!N){var k=z.pipes,P=z.pipesCount;z.pipes=null,z.pipesCount=0,z.flowing=!1;for(var T=0;T<P;T++)k[T].emit("unpipe",this,{hasUnpiped:!1});return this}var G=J(z.pipes,N);return G===-1?this:(z.pipes.splice(G,1),z.pipesCount-=1,z.pipesCount===1&&(z.pipes=z.pipes[0]),N.emit("unpipe",this,Z),this)},C.prototype.on=function(N,z){var Z=A.prototype.on.call(this,N,z);if(N==="data")this._readableState.flowing!==!1&&this.resume();else if(N==="readable"){var k=this._readableState;!k.endEmitted&&!k.readableListening&&(k.readableListening=k.needReadable=!0,k.emittedReadable=!1,k.reading?k.length&&c(this):m.nextTick(u,this))}return Z},C.prototype.addListener=C.prototype.on;function u(N){y("readable nexttick read 0"),N.read(0)}C.prototype.resume=function(){var N=this._readableState;return N.flowing||(y("resume"),N.flowing=!0,d(this,N)),this};function d(N,z){z.resumeScheduled||(z.resumeScheduled=!0,m.nextTick(w,N,z))}function w(N,z){z.reading||(y("resume read 0"),N.read(0)),z.resumeScheduled=!1,z.awaitDrain=0,N.emit("resume"),f(N),z.flowing&&!z.reading&&N.read(0)}C.prototype.pause=function(){return y("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(y("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function f(N){var z=N._readableState;for(y("flow",z.flowing);z.flowing&&N.read()!==null;);}C.prototype.wrap=function(N){var z=this,Z=this._readableState,k=!1;N.on("end",function(){if(y("wrapped end"),Z.decoder&&!Z.ended){var G=Z.decoder.end();G&&G.length&&z.push(G)}z.push(null)}),N.on("data",function(G){if(y("wrapped data"),Z.decoder&&(G=Z.decoder.write(G)),!(Z.objectMode&&G==null)&&!(!Z.objectMode&&(!G||!G.length))){var fe=z.push(G);fe||(k=!0,N.pause())}});for(var P in N)this[P]===void 0&&typeof N[P]=="function"&&(this[P]=(function(G){return function(){return N[G].apply(N,arguments)}})(P));for(var T=0;T<E.length;T++)N.on(E[T],this.emit.bind(this,E[T]));return this._read=function(G){y("wrapped _read",G),k&&(k=!1,N.resume())},this},Object.defineProperty(C.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),C._fromList=t;function t(N,z){if(z.length===0)return null;var Z;return z.objectMode?Z=z.buffer.shift():!N||N>=z.length?(z.decoder?Z=z.buffer.join(""):z.buffer.length===1?Z=z.buffer.head.data:Z=z.buffer.concat(z.length),z.buffer.clear()):Z=h(N,z.buffer,z.decoder),Z}function h(N,z,Z){var k;return N<z.head.data.length?(k=z.head.data.slice(0,N),z.head.data=z.head.data.slice(N)):N===z.head.data.length?k=z.shift():k=Z?H(N,z):j(N,z),k}function H(N,z){var Z=z.head,k=1,P=Z.data;for(N-=P.length;Z=Z.next;){var T=Z.data,G=N>T.length?T.length:N;if(G===T.length?P+=T:P+=T.slice(0,N),N-=G,N===0){G===T.length?(++k,Z.next?z.head=Z.next:z.head=z.tail=null):(z.head=Z,Z.data=T.slice(G));break}++k}return z.length-=k,P}function j(N,z){var Z=i.allocUnsafe(N),k=z.head,P=1;for(k.data.copy(Z),N-=k.data.length;k=k.next;){var T=k.data,G=N>T.length?T.length:N;if(T.copy(Z,Z.length-N,0,G),N-=G,N===0){G===T.length?(++P,k.next?z.head=k.next:z.head=z.tail=null):(z.head=k,k.data=T.slice(G));break}++P}return z.length-=P,Z}function U(N){var z=N._readableState;if(z.length>0)throw new Error('"endReadable()" called on non-empty stream');z.endEmitted||(z.ended=!0,m.nextTick(ee,z,N))}function ee(N,z){!N.endEmitted&&N.length===0&&(N.endEmitted=!0,z.readable=!1,z.emit("end"))}function J(N,z){for(var Z=0,k=N.length;Z<k;Z++)if(N[Z]===z)return Z;return-1}return i0}var n0,Gh;function Nl(){if(Gh)return n0;Gh=1,n0=s;var m=Mr(),g=Object.create(Ur());g.inherits=dt(),g.inherits(s,m);function S(l,b){var p=this._transformState;p.transforming=!1;var o=p.writecb;if(!o)return this.emit("error",new Error("write callback called multiple times"));p.writechunk=null,p.writecb=null,b!=null&&this.push(b),o(l);var v=this._readableState;v.reading=!1,(v.needReadable||v.length<v.highWaterMark)&&this._read(v.highWaterMark)}function s(l){if(!(this instanceof s))return new s(l);m.call(this,l),this._transformState={afterTransform:S.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,l&&(typeof l.transform=="function"&&(this._transform=l.transform),typeof l.flush=="function"&&(this._flush=l.flush)),this.on("prefinish",A)}function A(){var l=this;typeof this._flush=="function"?this._flush(function(b,p){i(l,b,p)}):i(this,null,null)}s.prototype.push=function(l,b){return this._transformState.needTransform=!1,m.prototype.push.call(this,l,b)},s.prototype._transform=function(l,b,p){throw new Error("_transform() is not implemented")},s.prototype._write=function(l,b,p){var o=this._transformState;if(o.writecb=p,o.writechunk=l,o.writeencoding=b,!o.transforming){var v=this._readableState;(o.needTransform||v.needReadable||v.length<v.highWaterMark)&&this._read(v.highWaterMark)}},s.prototype._read=function(l){var b=this._transformState;b.writechunk!==null&&b.writecb&&!b.transforming?(b.transforming=!0,this._transform(b.writechunk,b.writeencoding,b.afterTransform)):b.needTransform=!0},s.prototype._destroy=function(l,b){var p=this;m.prototype._destroy.call(this,l,function(o){b(o),p.emit("close")})};function i(l,b,p){if(b)return l.emit("error",b);if(p!=null&&l.push(p),l._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(l._transformState.transforming)throw new Error("Calling transform done when still transforming");return l.push(null)}return n0}var a0,Vh;function Lp(){if(Vh)return a0;Vh=1,a0=S;var m=Nl(),g=Object.create(Ur());g.inherits=dt(),g.inherits(S,m);function S(s){if(!(this instanceof S))return new S(s);m.call(this,s)}return S.prototype._transform=function(s,A,i){i(null,s)},a0}var Zh;function Hp(){return Zh||(Zh=1,(function(m,g){g=m.exports=Pl(),g.Stream=g,g.Readable=g,g.Writable=kl(),g.Duplex=Mr(),g.Transform=Nl(),g.PassThrough=Lp()})(ci,ci.exports)),ci.exports}var Dr={exports:{}},pi={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var Xh;function $p(){return Xh||(Xh=1,(function(m,g){var S=Qe.requireDist(),s=S.Buffer;function A(l,b){for(var p in l)b[p]=l[p]}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?m.exports=S:(A(S,g),g.Buffer=i);function i(l,b,p){return s(l,b,p)}i.prototype=Object.create(s.prototype),A(s,i),i.from=function(l,b,p){if(typeof l=="number")throw new TypeError("Argument must not be a number");return s(l,b,p)},i.alloc=function(l,b,p){if(typeof l!="number")throw new TypeError("Argument must be a number");var o=s(l);return b!==void 0?typeof p=="string"?o.fill(b,p):o.fill(b):o.fill(0),o},i.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return s(l)},i.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return S.SlowBuffer(l)}})(pi,pi.exports)),pi.exports}var f0,Yh;function Hf(){if(Yh)return f0;Yh=1;var m=Qe.requireBn(),g=_r(),S=$p().Buffer;function s(l){var b=l.modulus.byteLength(),p;do p=new m(g(b));while(p.cmp(l.modulus)>=0||!p.umod(l.prime1)||!p.umod(l.prime2));return p}function A(l){var b=s(l),p=b.toRed(m.mont(l.modulus)).redPow(new m(l.publicExponent)).fromRed();return{blinder:p,unblinder:b.invm(l.modulus)}}function i(l,b){var p=A(b),o=b.modulus.byteLength(),v=new m(l).mul(p.blinder).umod(b.modulus),y=v.toRed(m.mont(b.prime1)),x=v.toRed(m.mont(b.prime2)),M=b.coefficient,_=b.prime1,E=b.prime2,B=y.redPow(b.exponent1).fromRed(),F=x.redPow(b.exponent2).fromRed(),C=B.isub(F).imul(M).umod(_).imul(E);return F.iadd(C).imul(p.unblinder).umod(b.modulus).toArrayLike(S,"be",o)}return i.getr=s,f0=i,f0}var o0={};const jp="6.6.1",zp={version:jp};var s0={},Mi={exports:{}},Kp=Mi.exports,Jh;function rr(){return Jh||(Jh=1,(function(m){(function(g,S){function s(c,e){if(!c)throw new Error(e||"Assertion failed")}function A(c,e){c.super_=e;var r=function(){};r.prototype=e.prototype,c.prototype=new r,c.prototype.constructor=c}function i(c,e,r){if(i.isBN(c))return c;this.negative=0,this.words=null,this.length=0,this.red=null,c!==null&&((e==="le"||e==="be")&&(r=e,e=10),this._init(c||0,e||10,r||"be"))}typeof g=="object"?g.exports=i:S.BN=i,i.BN=i,i.wordSize=26;var l;try{typeof window<"u"&&typeof window.Buffer<"u"?l=window.Buffer:l=Qe.requireDist().Buffer}catch{}i.isBN=function(e){return e instanceof i?!0:e!==null&&typeof e=="object"&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,r){return e.cmp(r)>0?e:r},i.min=function(e,r){return e.cmp(r)<0?e:r},i.prototype._init=function(e,r,n){if(typeof e=="number")return this._initNumber(e,r,n);if(typeof e=="object")return this._initArray(e,r,n);r==="hex"&&(r=16),s(r===(r|0)&&r>=2&&r<=36),e=e.toString().replace(/\s+/g,"");var a=0;e[0]==="-"&&(a++,this.negative=1),a<e.length&&(r===16?this._parseHex(e,a,n):(this._parseBase(e,r,a),n==="le"&&this._initArray(this.toArray(),r,n)))},i.prototype._initNumber=function(e,r,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[e&67108863],this.length=1):e<4503599627370496?(this.words=[e&67108863,e/67108864&67108863],this.length=2):(s(e<9007199254740992),this.words=[e&67108863,e/67108864&67108863,1],this.length=3),n==="le"&&this._initArray(this.toArray(),r,n)},i.prototype._initArray=function(e,r,n){if(s(typeof e.length=="number"),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var a=0;a<this.length;a++)this.words[a]=0;var u,d,w=0;if(n==="be")for(a=e.length-1,u=0;a>=0;a-=3)d=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[u]|=d<<w&67108863,this.words[u+1]=d>>>26-w&67108863,w+=24,w>=26&&(w-=26,u++);else if(n==="le")for(a=0,u=0;a<e.length;a+=3)d=e[a]|e[a+1]<<8|e[a+2]<<16,this.words[u]|=d<<w&67108863,this.words[u+1]=d>>>26-w&67108863,w+=24,w>=26&&(w-=26,u++);return this.strip()};function b(c,e){var r=c.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function p(c,e,r){var n=b(c,r);return r-1>=e&&(n|=b(c,r-1)<<4),n}i.prototype._parseHex=function(e,r,n){this.length=Math.ceil((e.length-r)/6),this.words=new Array(this.length);for(var a=0;a<this.length;a++)this.words[a]=0;var u=0,d=0,w;if(n==="be")for(a=e.length-1;a>=r;a-=2)w=p(e,r,a)<<u,this.words[d]|=w&67108863,u>=18?(u-=18,d+=1,this.words[d]|=w>>>26):u+=8;else{var f=e.length-r;for(a=f%2===0?r+1:r;a<e.length;a+=2)w=p(e,r,a)<<u,this.words[d]|=w&67108863,u>=18?(u-=18,d+=1,this.words[d]|=w>>>26):u+=8}this.strip()};function o(c,e,r,n){for(var a=0,u=Math.min(c.length,r),d=e;d<u;d++){var w=c.charCodeAt(d)-48;a*=n,w>=49?a+=w-49+10:w>=17?a+=w-17+10:a+=w}return a}i.prototype._parseBase=function(e,r,n){this.words=[0],this.length=1;for(var a=0,u=1;u<=67108863;u*=r)a++;a--,u=u/r|0;for(var d=e.length-n,w=d%a,f=Math.min(d,d-w)+n,t=0,h=n;h<f;h+=a)t=o(e,h,h+a,r),this.imuln(u),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t);if(w!==0){var H=1;for(t=o(e,h,e.length,r),h=0;h<w;h++)H*=r;this.imuln(H),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t)}this.strip()},i.prototype.copy=function(e){e.words=new Array(this.length);for(var r=0;r<this.length;r++)e.words[r]=this.words[r];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var v=["","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"],y=[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],x=[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];i.prototype.toString=function(e,r){e=e||10,r=r|0||1;var n;if(e===16||e==="hex"){n="";for(var a=0,u=0,d=0;d<this.length;d++){var w=this.words[d],f=((w<<a|u)&16777215).toString(16);u=w>>>24-a&16777215,a+=2,a>=26&&(a-=26,d--),u!==0||d!==this.length-1?n=v[6-f.length]+f+n:n=f+n}for(u!==0&&(n=u.toString(16)+n);n.length%r!==0;)n="0"+n;return this.negative!==0&&(n="-"+n),n}if(e===(e|0)&&e>=2&&e<=36){var t=y[e],h=x[e];n="";var H=this.clone();for(H.negative=0;!H.isZero();){var j=H.modn(h).toString(e);H=H.idivn(h),H.isZero()?n=j+n:n=v[t-j.length]+j+n}for(this.isZero()&&(n="0"+n);n.length%r!==0;)n="0"+n;return this.negative!==0&&(n="-"+n),n}s(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return this.length===2?e+=this.words[1]*67108864:this.length===3&&this.words[2]===1?e+=4503599627370496+this.words[1]*67108864:this.length>2&&s(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,r){return s(typeof l<"u"),this.toArrayLike(l,e,r)},i.prototype.toArray=function(e,r){return this.toArrayLike(Array,e,r)},i.prototype.toArrayLike=function(e,r,n){var a=this.byteLength(),u=n||Math.max(1,a);s(a<=u,"byte array longer than desired length"),s(u>0,"Requested array length <= 0"),this.strip();var d=r==="le",w=new e(u),f,t,h=this.clone();if(d){for(t=0;!h.isZero();t++)f=h.andln(255),h.iushrn(8),w[t]=f;for(;t<u;t++)w[t]=0}else{for(t=0;t<u-a;t++)w[t]=0;for(t=0;!h.isZero();t++)f=h.andln(255),h.iushrn(8),w[u-t-1]=f}return w},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var r=e,n=0;return r>=4096&&(n+=13,r>>>=13),r>=64&&(n+=7,r>>>=7),r>=8&&(n+=4,r>>>=4),r>=2&&(n+=2,r>>>=2),n+r},i.prototype._zeroBits=function(e){if(e===0)return 26;var r=e,n=0;return(r&8191)===0&&(n+=13,r>>>=13),(r&127)===0&&(n+=7,r>>>=7),(r&15)===0&&(n+=4,r>>>=4),(r&3)===0&&(n+=2,r>>>=2),(r&1)===0&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],r=this._countBits(e);return(this.length-1)*26+r};function M(c){for(var e=new Array(c.bitLength()),r=0;r<e.length;r++){var n=r/26|0,a=r%26;e[r]=(c.words[n]&1<<a)>>>a}return e}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,r=0;r<this.length;r++){var n=this._zeroBits(this.words[r]);if(e+=n,n!==26)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return this.negative!==0?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]|e.words[r];return this.strip()},i.prototype.ior=function(e){return s((this.negative|e.negative)===0),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var r;this.length>e.length?r=e:r=this;for(var n=0;n<r.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=r.length,this.strip()},i.prototype.iand=function(e){return s((this.negative|e.negative)===0),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var r,n;this.length>e.length?(r=this,n=e):(r=e,n=this);for(var a=0;a<n.length;a++)this.words[a]=r.words[a]^n.words[a];if(this!==r)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=r.length,this.strip()},i.prototype.ixor=function(e){return s((this.negative|e.negative)===0),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){s(typeof e=="number"&&e>=0);var r=Math.ceil(e/26)|0,n=e%26;this._expand(r),n>0&&r--;for(var a=0;a<r;a++)this.words[a]=~this.words[a]&67108863;return n>0&&(this.words[a]=~this.words[a]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,r){s(typeof e=="number"&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),r?this.words[n]=this.words[n]|1<<a:this.words[n]=this.words[n]&~(1<<a),this.strip()},i.prototype.iadd=function(e){var r;if(this.negative!==0&&e.negative===0)return this.negative=0,r=this.isub(e),this.negative^=1,this._normSign();if(this.negative===0&&e.negative!==0)return e.negative=0,r=this.isub(e),e.negative=1,r._normSign();var n,a;this.length>e.length?(n=this,a=e):(n=e,a=this);for(var u=0,d=0;d<a.length;d++)r=(n.words[d]|0)+(a.words[d]|0)+u,this.words[d]=r&67108863,u=r>>>26;for(;u!==0&&d<n.length;d++)r=(n.words[d]|0)+u,this.words[d]=r&67108863,u=r>>>26;if(this.length=n.length,u!==0)this.words[this.length]=u,this.length++;else if(n!==this)for(;d<n.length;d++)this.words[d]=n.words[d];return this},i.prototype.add=function(e){var r;return e.negative!==0&&this.negative===0?(e.negative=0,r=this.sub(e),e.negative^=1,r):e.negative===0&&this.negative!==0?(this.negative=0,r=e.sub(this),this.negative=1,r):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var r=this.iadd(e);return e.negative=1,r._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(n===0)return this.negative=0,this.length=1,this.words[0]=0,this;var a,u;n>0?(a=this,u=e):(a=e,u=this);for(var d=0,w=0;w<u.length;w++)r=(a.words[w]|0)-(u.words[w]|0)+d,d=r>>26,this.words[w]=r&67108863;for(;d!==0&&w<a.length;w++)r=(a.words[w]|0)+d,d=r>>26,this.words[w]=r&67108863;if(d===0&&w<a.length&&a!==this)for(;w<a.length;w++)this.words[w]=a.words[w];return this.length=Math.max(this.length,w),a!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(e){return this.clone().isub(e)};function _(c,e,r){r.negative=e.negative^c.negative;var n=c.length+e.length|0;r.length=n,n=n-1|0;var a=c.words[0]|0,u=e.words[0]|0,d=a*u,w=d&67108863,f=d/67108864|0;r.words[0]=w;for(var t=1;t<n;t++){for(var h=f>>>26,H=f&67108863,j=Math.min(t,e.length-1),U=Math.max(0,t-c.length+1);U<=j;U++){var ee=t-U|0;a=c.words[ee]|0,u=e.words[U]|0,d=a*u+H,h+=d/67108864|0,H=d&67108863}r.words[t]=H|0,f=h|0}return f!==0?r.words[t]=f|0:r.length--,r.strip()}var E=function(e,r,n){var a=e.words,u=r.words,d=n.words,w=0,f,t,h,H=a[0]|0,j=H&8191,U=H>>>13,ee=a[1]|0,J=ee&8191,N=ee>>>13,z=a[2]|0,Z=z&8191,k=z>>>13,P=a[3]|0,T=P&8191,G=P>>>13,fe=a[4]|0,te=fe&8191,re=fe>>>13,he=a[5]|0,ie=he&8191,ne=he>>>13,pe=a[6]|0,oe=pe&8191,se=pe>>>13,Re=a[7]|0,de=Re&8191,ve=Re>>>13,ot=a[8]|0,be=ot&8191,me=ot>>>13,ut=a[9]|0,Fe=ut&8191,Be=ut>>>13,vt=u[0]|0,Ee=vt&8191,Se=vt>>>13,ct=u[1]|0,_e=ct&8191,we=ct>>>13,Mt=u[2]|0,Ce=Mt&8191,De=Mt>>>13,At=u[3]|0,Te=At&8191,Ie=At>>>13,Rt=u[4]|0,Pe=Rt&8191,Ne=Rt>>>13,Nt=u[5]|0,Oe=Nt&8191,qe=Nt>>>13,qt=u[6]|0,ke=qt&8191,Ue=qt>>>13,$=u[7]|0,W=$&8191,K=$>>>13,I=u[8]|0,V=I&8191,ae=I>>>13,ye=u[9]|0,ue=ye&8191,le=ye>>>13;n.negative=e.negative^r.negative,n.length=19,f=Math.imul(j,Ee),t=Math.imul(j,Se),t=t+Math.imul(U,Ee)|0,h=Math.imul(U,Se);var Ye=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,f=Math.imul(J,Ee),t=Math.imul(J,Se),t=t+Math.imul(N,Ee)|0,h=Math.imul(N,Se),f=f+Math.imul(j,_e)|0,t=t+Math.imul(j,we)|0,t=t+Math.imul(U,_e)|0,h=h+Math.imul(U,we)|0;var ze=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(ze>>>26)|0,ze&=67108863,f=Math.imul(Z,Ee),t=Math.imul(Z,Se),t=t+Math.imul(k,Ee)|0,h=Math.imul(k,Se),f=f+Math.imul(J,_e)|0,t=t+Math.imul(J,we)|0,t=t+Math.imul(N,_e)|0,h=h+Math.imul(N,we)|0,f=f+Math.imul(j,Ce)|0,t=t+Math.imul(j,De)|0,t=t+Math.imul(U,Ce)|0,h=h+Math.imul(U,De)|0;var ht=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(ht>>>26)|0,ht&=67108863,f=Math.imul(T,Ee),t=Math.imul(T,Se),t=t+Math.imul(G,Ee)|0,h=Math.imul(G,Se),f=f+Math.imul(Z,_e)|0,t=t+Math.imul(Z,we)|0,t=t+Math.imul(k,_e)|0,h=h+Math.imul(k,we)|0,f=f+Math.imul(J,Ce)|0,t=t+Math.imul(J,De)|0,t=t+Math.imul(N,Ce)|0,h=h+Math.imul(N,De)|0,f=f+Math.imul(j,Te)|0,t=t+Math.imul(j,Ie)|0,t=t+Math.imul(U,Te)|0,h=h+Math.imul(U,Ie)|0;var Ge=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,f=Math.imul(te,Ee),t=Math.imul(te,Se),t=t+Math.imul(re,Ee)|0,h=Math.imul(re,Se),f=f+Math.imul(T,_e)|0,t=t+Math.imul(T,we)|0,t=t+Math.imul(G,_e)|0,h=h+Math.imul(G,we)|0,f=f+Math.imul(Z,Ce)|0,t=t+Math.imul(Z,De)|0,t=t+Math.imul(k,Ce)|0,h=h+Math.imul(k,De)|0,f=f+Math.imul(J,Te)|0,t=t+Math.imul(J,Ie)|0,t=t+Math.imul(N,Te)|0,h=h+Math.imul(N,Ie)|0,f=f+Math.imul(j,Pe)|0,t=t+Math.imul(j,Ne)|0,t=t+Math.imul(U,Pe)|0,h=h+Math.imul(U,Ne)|0;var et=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(et>>>26)|0,et&=67108863,f=Math.imul(ie,Ee),t=Math.imul(ie,Se),t=t+Math.imul(ne,Ee)|0,h=Math.imul(ne,Se),f=f+Math.imul(te,_e)|0,t=t+Math.imul(te,we)|0,t=t+Math.imul(re,_e)|0,h=h+Math.imul(re,we)|0,f=f+Math.imul(T,Ce)|0,t=t+Math.imul(T,De)|0,t=t+Math.imul(G,Ce)|0,h=h+Math.imul(G,De)|0,f=f+Math.imul(Z,Te)|0,t=t+Math.imul(Z,Ie)|0,t=t+Math.imul(k,Te)|0,h=h+Math.imul(k,Ie)|0,f=f+Math.imul(J,Pe)|0,t=t+Math.imul(J,Ne)|0,t=t+Math.imul(N,Pe)|0,h=h+Math.imul(N,Ne)|0,f=f+Math.imul(j,Oe)|0,t=t+Math.imul(j,qe)|0,t=t+Math.imul(U,Oe)|0,h=h+Math.imul(U,qe)|0;var tt=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(tt>>>26)|0,tt&=67108863,f=Math.imul(oe,Ee),t=Math.imul(oe,Se),t=t+Math.imul(se,Ee)|0,h=Math.imul(se,Se),f=f+Math.imul(ie,_e)|0,t=t+Math.imul(ie,we)|0,t=t+Math.imul(ne,_e)|0,h=h+Math.imul(ne,we)|0,f=f+Math.imul(te,Ce)|0,t=t+Math.imul(te,De)|0,t=t+Math.imul(re,Ce)|0,h=h+Math.imul(re,De)|0,f=f+Math.imul(T,Te)|0,t=t+Math.imul(T,Ie)|0,t=t+Math.imul(G,Te)|0,h=h+Math.imul(G,Ie)|0,f=f+Math.imul(Z,Pe)|0,t=t+Math.imul(Z,Ne)|0,t=t+Math.imul(k,Pe)|0,h=h+Math.imul(k,Ne)|0,f=f+Math.imul(J,Oe)|0,t=t+Math.imul(J,qe)|0,t=t+Math.imul(N,Oe)|0,h=h+Math.imul(N,qe)|0,f=f+Math.imul(j,ke)|0,t=t+Math.imul(j,Ue)|0,t=t+Math.imul(U,ke)|0,h=h+Math.imul(U,Ue)|0;var ft=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(ft>>>26)|0,ft&=67108863,f=Math.imul(de,Ee),t=Math.imul(de,Se),t=t+Math.imul(ve,Ee)|0,h=Math.imul(ve,Se),f=f+Math.imul(oe,_e)|0,t=t+Math.imul(oe,we)|0,t=t+Math.imul(se,_e)|0,h=h+Math.imul(se,we)|0,f=f+Math.imul(ie,Ce)|0,t=t+Math.imul(ie,De)|0,t=t+Math.imul(ne,Ce)|0,h=h+Math.imul(ne,De)|0,f=f+Math.imul(te,Te)|0,t=t+Math.imul(te,Ie)|0,t=t+Math.imul(re,Te)|0,h=h+Math.imul(re,Ie)|0,f=f+Math.imul(T,Pe)|0,t=t+Math.imul(T,Ne)|0,t=t+Math.imul(G,Pe)|0,h=h+Math.imul(G,Ne)|0,f=f+Math.imul(Z,Oe)|0,t=t+Math.imul(Z,qe)|0,t=t+Math.imul(k,Oe)|0,h=h+Math.imul(k,qe)|0,f=f+Math.imul(J,ke)|0,t=t+Math.imul(J,Ue)|0,t=t+Math.imul(N,ke)|0,h=h+Math.imul(N,Ue)|0,f=f+Math.imul(j,W)|0,t=t+Math.imul(j,K)|0,t=t+Math.imul(U,W)|0,h=h+Math.imul(U,K)|0;var at=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(at>>>26)|0,at&=67108863,f=Math.imul(be,Ee),t=Math.imul(be,Se),t=t+Math.imul(me,Ee)|0,h=Math.imul(me,Se),f=f+Math.imul(de,_e)|0,t=t+Math.imul(de,we)|0,t=t+Math.imul(ve,_e)|0,h=h+Math.imul(ve,we)|0,f=f+Math.imul(oe,Ce)|0,t=t+Math.imul(oe,De)|0,t=t+Math.imul(se,Ce)|0,h=h+Math.imul(se,De)|0,f=f+Math.imul(ie,Te)|0,t=t+Math.imul(ie,Ie)|0,t=t+Math.imul(ne,Te)|0,h=h+Math.imul(ne,Ie)|0,f=f+Math.imul(te,Pe)|0,t=t+Math.imul(te,Ne)|0,t=t+Math.imul(re,Pe)|0,h=h+Math.imul(re,Ne)|0,f=f+Math.imul(T,Oe)|0,t=t+Math.imul(T,qe)|0,t=t+Math.imul(G,Oe)|0,h=h+Math.imul(G,qe)|0,f=f+Math.imul(Z,ke)|0,t=t+Math.imul(Z,Ue)|0,t=t+Math.imul(k,ke)|0,h=h+Math.imul(k,Ue)|0,f=f+Math.imul(J,W)|0,t=t+Math.imul(J,K)|0,t=t+Math.imul(N,W)|0,h=h+Math.imul(N,K)|0,f=f+Math.imul(j,V)|0,t=t+Math.imul(j,ae)|0,t=t+Math.imul(U,V)|0,h=h+Math.imul(U,ae)|0;var rt=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(rt>>>26)|0,rt&=67108863,f=Math.imul(Fe,Ee),t=Math.imul(Fe,Se),t=t+Math.imul(Be,Ee)|0,h=Math.imul(Be,Se),f=f+Math.imul(be,_e)|0,t=t+Math.imul(be,we)|0,t=t+Math.imul(me,_e)|0,h=h+Math.imul(me,we)|0,f=f+Math.imul(de,Ce)|0,t=t+Math.imul(de,De)|0,t=t+Math.imul(ve,Ce)|0,h=h+Math.imul(ve,De)|0,f=f+Math.imul(oe,Te)|0,t=t+Math.imul(oe,Ie)|0,t=t+Math.imul(se,Te)|0,h=h+Math.imul(se,Ie)|0,f=f+Math.imul(ie,Pe)|0,t=t+Math.imul(ie,Ne)|0,t=t+Math.imul(ne,Pe)|0,h=h+Math.imul(ne,Ne)|0,f=f+Math.imul(te,Oe)|0,t=t+Math.imul(te,qe)|0,t=t+Math.imul(re,Oe)|0,h=h+Math.imul(re,qe)|0,f=f+Math.imul(T,ke)|0,t=t+Math.imul(T,Ue)|0,t=t+Math.imul(G,ke)|0,h=h+Math.imul(G,Ue)|0,f=f+Math.imul(Z,W)|0,t=t+Math.imul(Z,K)|0,t=t+Math.imul(k,W)|0,h=h+Math.imul(k,K)|0,f=f+Math.imul(J,V)|0,t=t+Math.imul(J,ae)|0,t=t+Math.imul(N,V)|0,h=h+Math.imul(N,ae)|0,f=f+Math.imul(j,ue)|0,t=t+Math.imul(j,le)|0,t=t+Math.imul(U,ue)|0,h=h+Math.imul(U,le)|0;var nt=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(nt>>>26)|0,nt&=67108863,f=Math.imul(Fe,_e),t=Math.imul(Fe,we),t=t+Math.imul(Be,_e)|0,h=Math.imul(Be,we),f=f+Math.imul(be,Ce)|0,t=t+Math.imul(be,De)|0,t=t+Math.imul(me,Ce)|0,h=h+Math.imul(me,De)|0,f=f+Math.imul(de,Te)|0,t=t+Math.imul(de,Ie)|0,t=t+Math.imul(ve,Te)|0,h=h+Math.imul(ve,Ie)|0,f=f+Math.imul(oe,Pe)|0,t=t+Math.imul(oe,Ne)|0,t=t+Math.imul(se,Pe)|0,h=h+Math.imul(se,Ne)|0,f=f+Math.imul(ie,Oe)|0,t=t+Math.imul(ie,qe)|0,t=t+Math.imul(ne,Oe)|0,h=h+Math.imul(ne,qe)|0,f=f+Math.imul(te,ke)|0,t=t+Math.imul(te,Ue)|0,t=t+Math.imul(re,ke)|0,h=h+Math.imul(re,Ue)|0,f=f+Math.imul(T,W)|0,t=t+Math.imul(T,K)|0,t=t+Math.imul(G,W)|0,h=h+Math.imul(G,K)|0,f=f+Math.imul(Z,V)|0,t=t+Math.imul(Z,ae)|0,t=t+Math.imul(k,V)|0,h=h+Math.imul(k,ae)|0,f=f+Math.imul(J,ue)|0,t=t+Math.imul(J,le)|0,t=t+Math.imul(N,ue)|0,h=h+Math.imul(N,le)|0;var it=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(it>>>26)|0,it&=67108863,f=Math.imul(Fe,Ce),t=Math.imul(Fe,De),t=t+Math.imul(Be,Ce)|0,h=Math.imul(Be,De),f=f+Math.imul(be,Te)|0,t=t+Math.imul(be,Ie)|0,t=t+Math.imul(me,Te)|0,h=h+Math.imul(me,Ie)|0,f=f+Math.imul(de,Pe)|0,t=t+Math.imul(de,Ne)|0,t=t+Math.imul(ve,Pe)|0,h=h+Math.imul(ve,Ne)|0,f=f+Math.imul(oe,Oe)|0,t=t+Math.imul(oe,qe)|0,t=t+Math.imul(se,Oe)|0,h=h+Math.imul(se,qe)|0,f=f+Math.imul(ie,ke)|0,t=t+Math.imul(ie,Ue)|0,t=t+Math.imul(ne,ke)|0,h=h+Math.imul(ne,Ue)|0,f=f+Math.imul(te,W)|0,t=t+Math.imul(te,K)|0,t=t+Math.imul(re,W)|0,h=h+Math.imul(re,K)|0,f=f+Math.imul(T,V)|0,t=t+Math.imul(T,ae)|0,t=t+Math.imul(G,V)|0,h=h+Math.imul(G,ae)|0,f=f+Math.imul(Z,ue)|0,t=t+Math.imul(Z,le)|0,t=t+Math.imul(k,ue)|0,h=h+Math.imul(k,le)|0;var Ve=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(Ve>>>26)|0,Ve&=67108863,f=Math.imul(Fe,Te),t=Math.imul(Fe,Ie),t=t+Math.imul(Be,Te)|0,h=Math.imul(Be,Ie),f=f+Math.imul(be,Pe)|0,t=t+Math.imul(be,Ne)|0,t=t+Math.imul(me,Pe)|0,h=h+Math.imul(me,Ne)|0,f=f+Math.imul(de,Oe)|0,t=t+Math.imul(de,qe)|0,t=t+Math.imul(ve,Oe)|0,h=h+Math.imul(ve,qe)|0,f=f+Math.imul(oe,ke)|0,t=t+Math.imul(oe,Ue)|0,t=t+Math.imul(se,ke)|0,h=h+Math.imul(se,Ue)|0,f=f+Math.imul(ie,W)|0,t=t+Math.imul(ie,K)|0,t=t+Math.imul(ne,W)|0,h=h+Math.imul(ne,K)|0,f=f+Math.imul(te,V)|0,t=t+Math.imul(te,ae)|0,t=t+Math.imul(re,V)|0,h=h+Math.imul(re,ae)|0,f=f+Math.imul(T,ue)|0,t=t+Math.imul(T,le)|0,t=t+Math.imul(G,ue)|0,h=h+Math.imul(G,le)|0;var Je=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(Je>>>26)|0,Je&=67108863,f=Math.imul(Fe,Pe),t=Math.imul(Fe,Ne),t=t+Math.imul(Be,Pe)|0,h=Math.imul(Be,Ne),f=f+Math.imul(be,Oe)|0,t=t+Math.imul(be,qe)|0,t=t+Math.imul(me,Oe)|0,h=h+Math.imul(me,qe)|0,f=f+Math.imul(de,ke)|0,t=t+Math.imul(de,Ue)|0,t=t+Math.imul(ve,ke)|0,h=h+Math.imul(ve,Ue)|0,f=f+Math.imul(oe,W)|0,t=t+Math.imul(oe,K)|0,t=t+Math.imul(se,W)|0,h=h+Math.imul(se,K)|0,f=f+Math.imul(ie,V)|0,t=t+Math.imul(ie,ae)|0,t=t+Math.imul(ne,V)|0,h=h+Math.imul(ne,ae)|0,f=f+Math.imul(te,ue)|0,t=t+Math.imul(te,le)|0,t=t+Math.imul(re,ue)|0,h=h+Math.imul(re,le)|0;var We=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(We>>>26)|0,We&=67108863,f=Math.imul(Fe,Oe),t=Math.imul(Fe,qe),t=t+Math.imul(Be,Oe)|0,h=Math.imul(Be,qe),f=f+Math.imul(be,ke)|0,t=t+Math.imul(be,Ue)|0,t=t+Math.imul(me,ke)|0,h=h+Math.imul(me,Ue)|0,f=f+Math.imul(de,W)|0,t=t+Math.imul(de,K)|0,t=t+Math.imul(ve,W)|0,h=h+Math.imul(ve,K)|0,f=f+Math.imul(oe,V)|0,t=t+Math.imul(oe,ae)|0,t=t+Math.imul(se,V)|0,h=h+Math.imul(se,ae)|0,f=f+Math.imul(ie,ue)|0,t=t+Math.imul(ie,le)|0,t=t+Math.imul(ne,ue)|0,h=h+Math.imul(ne,le)|0;var Ze=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,f=Math.imul(Fe,ke),t=Math.imul(Fe,Ue),t=t+Math.imul(Be,ke)|0,h=Math.imul(Be,Ue),f=f+Math.imul(be,W)|0,t=t+Math.imul(be,K)|0,t=t+Math.imul(me,W)|0,h=h+Math.imul(me,K)|0,f=f+Math.imul(de,V)|0,t=t+Math.imul(de,ae)|0,t=t+Math.imul(ve,V)|0,h=h+Math.imul(ve,ae)|0,f=f+Math.imul(oe,ue)|0,t=t+Math.imul(oe,le)|0,t=t+Math.imul(se,ue)|0,h=h+Math.imul(se,le)|0;var Xe=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,f=Math.imul(Fe,W),t=Math.imul(Fe,K),t=t+Math.imul(Be,W)|0,h=Math.imul(Be,K),f=f+Math.imul(be,V)|0,t=t+Math.imul(be,ae)|0,t=t+Math.imul(me,V)|0,h=h+Math.imul(me,ae)|0,f=f+Math.imul(de,ue)|0,t=t+Math.imul(de,le)|0,t=t+Math.imul(ve,ue)|0,h=h+Math.imul(ve,le)|0;var je=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(je>>>26)|0,je&=67108863,f=Math.imul(Fe,V),t=Math.imul(Fe,ae),t=t+Math.imul(Be,V)|0,h=Math.imul(Be,ae),f=f+Math.imul(be,ue)|0,t=t+Math.imul(be,le)|0,t=t+Math.imul(me,ue)|0,h=h+Math.imul(me,le)|0;var Me=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(Me>>>26)|0,Me&=67108863,f=Math.imul(Fe,ue),t=Math.imul(Fe,le),t=t+Math.imul(Be,ue)|0,h=Math.imul(Be,le);var Ae=(w+f|0)+((t&8191)<<13)|0;return w=(h+(t>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,d[0]=Ye,d[1]=ze,d[2]=ht,d[3]=Ge,d[4]=et,d[5]=tt,d[6]=ft,d[7]=at,d[8]=rt,d[9]=nt,d[10]=it,d[11]=Ve,d[12]=Je,d[13]=We,d[14]=Ze,d[15]=Xe,d[16]=je,d[17]=Me,d[18]=Ae,w!==0&&(d[19]=w,n.length++),n};Math.imul||(E=_);function B(c,e,r){r.negative=e.negative^c.negative,r.length=c.length+e.length;for(var n=0,a=0,u=0;u<r.length-1;u++){var d=a;a=0;for(var w=n&67108863,f=Math.min(u,e.length-1),t=Math.max(0,u-c.length+1);t<=f;t++){var h=u-t,H=c.words[h]|0,j=e.words[t]|0,U=H*j,ee=U&67108863;d=d+(U/67108864|0)|0,ee=ee+w|0,w=ee&67108863,d=d+(ee>>>26)|0,a+=d>>>26,d&=67108863}r.words[u]=w,n=d,d=a}return n!==0?r.words[u]=n:r.length--,r.strip()}function F(c,e,r){var n=new C;return n.mulp(c,e,r)}i.prototype.mulTo=function(e,r){var n,a=this.length+e.length;return this.length===10&&e.length===10?n=E(this,e,r):a<63?n=_(this,e,r):a<1024?n=B(this,e,r):n=F(this,e,r),n};function C(c,e){this.x=c,this.y=e}C.prototype.makeRBT=function(e){for(var r=new Array(e),n=i.prototype._countBits(e)-1,a=0;a<e;a++)r[a]=this.revBin(a,n,e);return r},C.prototype.revBin=function(e,r,n){if(e===0||e===n-1)return e;for(var a=0,u=0;u<r;u++)a|=(e&1)<<r-u-1,e>>=1;return a},C.prototype.permute=function(e,r,n,a,u,d){for(var w=0;w<d;w++)a[w]=r[e[w]],u[w]=n[e[w]]},C.prototype.transform=function(e,r,n,a,u,d){this.permute(d,e,r,n,a,u);for(var w=1;w<u;w<<=1)for(var f=w<<1,t=Math.cos(2*Math.PI/f),h=Math.sin(2*Math.PI/f),H=0;H<u;H+=f)for(var j=t,U=h,ee=0;ee<w;ee++){var J=n[H+ee],N=a[H+ee],z=n[H+ee+w],Z=a[H+ee+w],k=j*z-U*Z;Z=j*Z+U*z,z=k,n[H+ee]=J+z,a[H+ee]=N+Z,n[H+ee+w]=J-z,a[H+ee+w]=N-Z,ee!==f&&(k=t*j-h*U,U=t*U+h*j,j=k)}},C.prototype.guessLen13b=function(e,r){var n=Math.max(r,e)|1,a=n&1,u=0;for(n=n/2|0;n;n=n>>>1)u++;return 1<<u+1+a},C.prototype.conjugate=function(e,r,n){if(!(n<=1))for(var a=0;a<n/2;a++){var u=e[a];e[a]=e[n-a-1],e[n-a-1]=u,u=r[a],r[a]=-r[n-a-1],r[n-a-1]=-u}},C.prototype.normalize13b=function(e,r){for(var n=0,a=0;a<r/2;a++){var u=Math.round(e[2*a+1]/r)*8192+Math.round(e[2*a]/r)+n;e[a]=u&67108863,u<67108864?n=0:n=u/67108864|0}return e},C.prototype.convert13b=function(e,r,n,a){for(var u=0,d=0;d<r;d++)u=u+(e[d]|0),n[2*d]=u&8191,u=u>>>13,n[2*d+1]=u&8191,u=u>>>13;for(d=2*r;d<a;++d)n[d]=0;s(u===0),s((u&-8192)===0)},C.prototype.stub=function(e){for(var r=new Array(e),n=0;n<e;n++)r[n]=0;return r},C.prototype.mulp=function(e,r,n){var a=2*this.guessLen13b(e.length,r.length),u=this.makeRBT(a),d=this.stub(a),w=new Array(a),f=new Array(a),t=new Array(a),h=new Array(a),H=new Array(a),j=new Array(a),U=n.words;U.length=a,this.convert13b(e.words,e.length,w,a),this.convert13b(r.words,r.length,h,a),this.transform(w,d,f,t,a,u),this.transform(h,d,H,j,a,u);for(var ee=0;ee<a;ee++){var J=f[ee]*H[ee]-t[ee]*j[ee];t[ee]=f[ee]*j[ee]+t[ee]*H[ee],f[ee]=J}return this.conjugate(f,t,a),this.transform(f,t,U,d,a,u),this.conjugate(U,d,a),this.normalize13b(U,a),n.negative=e.negative^r.negative,n.length=e.length+r.length,n.strip()},i.prototype.mul=function(e){var r=new i(null);return r.words=new Array(this.length+e.length),this.mulTo(e,r)},i.prototype.mulf=function(e){var r=new i(null);return r.words=new Array(this.length+e.length),F(this,e,r)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){s(typeof e=="number"),s(e<67108864);for(var r=0,n=0;n<this.length;n++){var a=(this.words[n]|0)*e,u=(a&67108863)+(r&67108863);r>>=26,r+=a/67108864|0,r+=u>>>26,this.words[n]=u&67108863}return r!==0&&(this.words[n]=r,this.length++),this.length=e===0?1:this.length,this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var r=M(e);if(r.length===0)return new i(1);for(var n=this,a=0;a<r.length&&r[a]===0;a++,n=n.sqr());if(++a<r.length)for(var u=n.sqr();a<r.length;a++,u=u.sqr())r[a]!==0&&(n=n.mul(u));return n},i.prototype.iushln=function(e){s(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26,a=67108863>>>26-r<<26-r,u;if(r!==0){var d=0;for(u=0;u<this.length;u++){var w=this.words[u]&a,f=(this.words[u]|0)-w<<r;this.words[u]=f|d,d=w>>>26-r}d&&(this.words[u]=d,this.length++)}if(n!==0){for(u=this.length-1;u>=0;u--)this.words[u+n]=this.words[u];for(u=0;u<n;u++)this.words[u]=0;this.length+=n}return this.strip()},i.prototype.ishln=function(e){return s(this.negative===0),this.iushln(e)},i.prototype.iushrn=function(e,r,n){s(typeof e=="number"&&e>=0);var a;r?a=(r-r%26)/26:a=0;var u=e%26,d=Math.min((e-u)/26,this.length),w=67108863^67108863>>>u<<u,f=n;if(a-=d,a=Math.max(0,a),f){for(var t=0;t<d;t++)f.words[t]=this.words[t];f.length=d}if(d!==0)if(this.length>d)for(this.length-=d,t=0;t<this.length;t++)this.words[t]=this.words[t+d];else this.words[0]=0,this.length=1;var h=0;for(t=this.length-1;t>=0&&(h!==0||t>=a);t--){var H=this.words[t]|0;this.words[t]=h<<26-u|H>>>u,h=H&w}return f&&h!==0&&(f.words[f.length++]=h),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,r,n){return s(this.negative===0),this.iushrn(e,r,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){s(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26,a=1<<r;if(this.length<=n)return!1;var u=this.words[n];return!!(u&a)},i.prototype.imaskn=function(e){s(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26;if(s(this.negative===0,"imaskn works only with positive numbers"),this.length<=n)return this;if(r!==0&&n++,this.length=Math.min(n,this.length),r!==0){var a=67108863^67108863>>>r<<r;this.words[this.length-1]&=a}return this.strip()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return s(typeof e=="number"),s(e<67108864),e<0?this.isubn(-e):this.negative!==0?this.length===1&&(this.words[0]|0)<e?(this.words[0]=e-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},i.prototype._iaddn=function(e){this.words[0]+=e;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},i.prototype.isubn=function(e){if(s(typeof e=="number"),s(e<67108864),e<0)return this.iaddn(-e);if(this.negative!==0)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this.strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,r,n){var a=e.length+n,u;this._expand(a);var d,w=0;for(u=0;u<e.length;u++){d=(this.words[u+n]|0)+w;var f=(e.words[u]|0)*r;d-=f&67108863,w=(d>>26)-(f/67108864|0),this.words[u+n]=d&67108863}for(;u<this.length-n;u++)d=(this.words[u+n]|0)+w,w=d>>26,this.words[u+n]=d&67108863;if(w===0)return this.strip();for(s(w===-1),w=0,u=0;u<this.length;u++)d=-(this.words[u]|0)+w,w=d>>26,this.words[u]=d&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,r){var n=this.length-e.length,a=this.clone(),u=e,d=u.words[u.length-1]|0,w=this._countBits(d);n=26-w,n!==0&&(u=u.ushln(n),a.iushln(n),d=u.words[u.length-1]|0);var f=a.length-u.length,t;if(r!=="mod"){t=new i(null),t.length=f+1,t.words=new Array(t.length);for(var h=0;h<t.length;h++)t.words[h]=0}var H=a.clone()._ishlnsubmul(u,1,f);H.negative===0&&(a=H,t&&(t.words[f]=1));for(var j=f-1;j>=0;j--){var U=(a.words[u.length+j]|0)*67108864+(a.words[u.length+j-1]|0);for(U=Math.min(U/d|0,67108863),a._ishlnsubmul(u,U,j);a.negative!==0;)U--,a.negative=0,a._ishlnsubmul(u,1,j),a.isZero()||(a.negative^=1);t&&(t.words[j]=U)}return t&&t.strip(),a.strip(),r!=="div"&&n!==0&&a.iushrn(n),{div:t||null,mod:a}},i.prototype.divmod=function(e,r,n){if(s(!e.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var a,u,d;return this.negative!==0&&e.negative===0?(d=this.neg().divmod(e,r),r!=="mod"&&(a=d.div.neg()),r!=="div"&&(u=d.mod.neg(),n&&u.negative!==0&&u.iadd(e)),{div:a,mod:u}):this.negative===0&&e.negative!==0?(d=this.divmod(e.neg(),r),r!=="mod"&&(a=d.div.neg()),{div:a,mod:d.mod}):(this.negative&e.negative)!==0?(d=this.neg().divmod(e.neg(),r),r!=="div"&&(u=d.mod.neg(),n&&u.negative!==0&&u.isub(e)),{div:d.div,mod:u}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:e.length===1?r==="div"?{div:this.divn(e.words[0]),mod:null}:r==="mod"?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,r)},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var r=this.divmod(e);if(r.mod.isZero())return r.div;var n=r.div.negative!==0?r.mod.isub(e):r.mod,a=e.ushrn(1),u=e.andln(1),d=n.cmp(a);return d<0||u===1&&d===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},i.prototype.modn=function(e){s(e<=67108863);for(var r=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(r*n+(this.words[a]|0))%e;return n},i.prototype.idivn=function(e){s(e<=67108863);for(var r=0,n=this.length-1;n>=0;n--){var a=(this.words[n]|0)+r*67108864;this.words[n]=a/e|0,r=a%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){s(e.negative===0),s(!e.isZero());var r=this,n=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var a=new i(1),u=new i(0),d=new i(0),w=new i(1),f=0;r.isEven()&&n.isEven();)r.iushrn(1),n.iushrn(1),++f;for(var t=n.clone(),h=r.clone();!r.isZero();){for(var H=0,j=1;(r.words[0]&j)===0&&H<26;++H,j<<=1);if(H>0)for(r.iushrn(H);H-- >0;)(a.isOdd()||u.isOdd())&&(a.iadd(t),u.isub(h)),a.iushrn(1),u.iushrn(1);for(var U=0,ee=1;(n.words[0]&ee)===0&&U<26;++U,ee<<=1);if(U>0)for(n.iushrn(U);U-- >0;)(d.isOdd()||w.isOdd())&&(d.iadd(t),w.isub(h)),d.iushrn(1),w.iushrn(1);r.cmp(n)>=0?(r.isub(n),a.isub(d),u.isub(w)):(n.isub(r),d.isub(a),w.isub(u))}return{a:d,b:w,gcd:n.iushln(f)}},i.prototype._invmp=function(e){s(e.negative===0),s(!e.isZero());var r=this,n=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var a=new i(1),u=new i(0),d=n.clone();r.cmpn(1)>0&&n.cmpn(1)>0;){for(var w=0,f=1;(r.words[0]&f)===0&&w<26;++w,f<<=1);if(w>0)for(r.iushrn(w);w-- >0;)a.isOdd()&&a.iadd(d),a.iushrn(1);for(var t=0,h=1;(n.words[0]&h)===0&&t<26;++t,h<<=1);if(t>0)for(n.iushrn(t);t-- >0;)u.isOdd()&&u.iadd(d),u.iushrn(1);r.cmp(n)>=0?(r.isub(n),a.isub(u)):(n.isub(r),u.isub(a))}var H;return r.cmpn(1)===0?H=a:H=u,H.cmpn(0)<0&&H.iadd(e),H},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var r=this.clone(),n=e.clone();r.negative=0,n.negative=0;for(var a=0;r.isEven()&&n.isEven();a++)r.iushrn(1),n.iushrn(1);do{for(;r.isEven();)r.iushrn(1);for(;n.isEven();)n.iushrn(1);var u=r.cmp(n);if(u<0){var d=r;r=n,n=d}else if(u===0||n.cmpn(1)===0)break;r.isub(n)}while(!0);return n.iushln(a)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){s(typeof e=="number");var r=e%26,n=(e-r)/26,a=1<<r;if(this.length<=n)return this._expand(n+1),this.words[n]|=a,this;for(var u=a,d=n;u!==0&&d<this.length;d++){var w=this.words[d]|0;w+=u,u=w>>>26,w&=67108863,this.words[d]=w}return u!==0&&(this.words[d]=u,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(e){var r=e<0;if(this.negative!==0&&!r)return-1;if(this.negative===0&&r)return 1;this.strip();var n;if(this.length>1)n=1;else{r&&(e=-e),s(e<=67108863,"Number is too big");var a=this.words[0]|0;n=a===e?0:a<e?-1:1}return this.negative!==0?-n|0:n},i.prototype.cmp=function(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var r=this.ucmp(e);return this.negative!==0?-r|0:r},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var r=0,n=this.length-1;n>=0;n--){var a=this.words[n]|0,u=e.words[n]|0;if(a!==u){a<u?r=-1:a>u&&(r=1);break}}return r},i.prototype.gtn=function(e){return this.cmpn(e)===1},i.prototype.gt=function(e){return this.cmp(e)===1},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return this.cmpn(e)===-1},i.prototype.lt=function(e){return this.cmp(e)===-1},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return this.cmpn(e)===0},i.prototype.eq=function(e){return this.cmp(e)===0},i.red=function(e){return new L(e)},i.prototype.toRed=function(e){return s(!this.red,"Already a number in reduction context"),s(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return s(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return s(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return s(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return s(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return s(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return s(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return s(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return s(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return s(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return s(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return s(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return s(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return s(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var R={k256:null,p224:null,p192:null,p25519:null};function D(c,e){this.name=c,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}D.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},D.prototype.ireduce=function(e){var r=e,n;do this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),n=r.bitLength();while(n>this.n);var a=n<this.n?-1:r.ucmp(this.p);return a===0?(r.words[0]=0,r.length=1):a>0?r.isub(this.p):r.strip!==void 0?r.strip():r._strip(),r},D.prototype.split=function(e,r){e.iushrn(this.n,0,r)},D.prototype.imulK=function(e){return e.imul(this.k)};function q(){D.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}A(q,D),q.prototype.split=function(e,r){for(var n=4194303,a=Math.min(e.length,9),u=0;u<a;u++)r.words[u]=e.words[u];if(r.length=a,e.length<=9){e.words[0]=0,e.length=1;return}var d=e.words[9];for(r.words[r.length++]=d&n,u=10;u<e.length;u++){var w=e.words[u]|0;e.words[u-10]=(w&n)<<4|d>>>22,d=w}d>>>=22,e.words[u-10]=d,d===0&&e.length>10?e.length-=10:e.length-=9},q.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var r=0,n=0;n<e.length;n++){var a=e.words[n]|0;r+=a*977,e.words[n]=r&67108863,r=a*64+(r/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e};function O(){D.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}A(O,D);function Y(){D.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}A(Y,D);function Q(){D.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}A(Q,D),Q.prototype.imulK=function(e){for(var r=0,n=0;n<e.length;n++){var a=(e.words[n]|0)*19+r,u=a&67108863;a>>>=26,e.words[n]=u,r=a}return r!==0&&(e.words[e.length++]=r),e},i._prime=function(e){if(R[e])return R[e];var r;if(e==="k256")r=new q;else if(e==="p224")r=new O;else if(e==="p192")r=new Y;else if(e==="p25519")r=new Q;else throw new Error("Unknown prime "+e);return R[e]=r,r};function L(c){if(typeof c=="string"){var e=i._prime(c);this.m=e.p,this.prime=e}else s(c.gtn(1),"modulus must be greater than 1"),this.m=c,this.prime=null}L.prototype._verify1=function(e){s(e.negative===0,"red works only with positives"),s(e.red,"red works only with red numbers")},L.prototype._verify2=function(e,r){s((e.negative|r.negative)===0,"red works only with positives"),s(e.red&&e.red===r.red,"red works only with red numbers")},L.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},L.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},L.prototype.add=function(e,r){this._verify2(e,r);var n=e.add(r);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},L.prototype.iadd=function(e,r){this._verify2(e,r);var n=e.iadd(r);return n.cmp(this.m)>=0&&n.isub(this.m),n},L.prototype.sub=function(e,r){this._verify2(e,r);var n=e.sub(r);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},L.prototype.isub=function(e,r){this._verify2(e,r);var n=e.isub(r);return n.cmpn(0)<0&&n.iadd(this.m),n},L.prototype.shl=function(e,r){return this._verify1(e),this.imod(e.ushln(r))},L.prototype.imul=function(e,r){return this._verify2(e,r),this.imod(e.imul(r))},L.prototype.mul=function(e,r){return this._verify2(e,r),this.imod(e.mul(r))},L.prototype.isqr=function(e){return this.imul(e,e.clone())},L.prototype.sqr=function(e){return this.mul(e,e)},L.prototype.sqrt=function(e){if(e.isZero())return e.clone();var r=this.m.andln(3);if(s(r%2===1),r===3){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),u=0;!a.isZero()&&a.andln(1)===0;)u++,a.iushrn(1);s(!a.isZero());var d=new i(1).toRed(this),w=d.redNeg(),f=this.m.subn(1).iushrn(1),t=this.m.bitLength();for(t=new i(2*t*t).toRed(this);this.pow(t,f).cmp(w)!==0;)t.redIAdd(w);for(var h=this.pow(t,a),H=this.pow(e,a.addn(1).iushrn(1)),j=this.pow(e,a),U=u;j.cmp(d)!==0;){for(var ee=j,J=0;ee.cmp(d)!==0;J++)ee=ee.redSqr();s(J<U);var N=this.pow(h,new i(1).iushln(U-J-1));H=H.redMul(N),h=N.redSqr(),j=j.redMul(h),U=J}return H},L.prototype.invm=function(e){var r=e._invmp(this.m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},L.prototype.pow=function(e,r){if(r.isZero())return new i(1).toRed(this);if(r.cmpn(1)===0)return e.clone();var n=4,a=new Array(1<<n);a[0]=new i(1).toRed(this),a[1]=e;for(var u=2;u<a.length;u++)a[u]=this.mul(a[u-1],e);var d=a[0],w=0,f=0,t=r.bitLength()%26;for(t===0&&(t=26),u=r.length-1;u>=0;u--){for(var h=r.words[u],H=t-1;H>=0;H--){var j=h>>H&1;if(d!==a[0]&&(d=this.sqr(d)),j===0&&w===0){f=0;continue}w<<=1,w|=j,f++,!(f!==n&&(u!==0||H!==0))&&(d=this.mul(d,a[w]),f=0,w=0)}t=26}return d},L.prototype.convertTo=function(e){var r=e.umod(this.m);return r===e?r.clone():r},L.prototype.convertFrom=function(e){var r=e.clone();return r.red=null,r},i.mont=function(e){return new X(e)};function X(c){L.call(this,c),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}A(X,L),X.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},X.prototype.convertFrom=function(e){var r=this.imod(e.mul(this.rinv));return r.red=null,r},X.prototype.imul=function(e,r){if(e.isZero()||r.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(r),a=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=n.isub(a).iushrn(this.shift),d=u;return u.cmp(this.m)>=0?d=u.isub(this.m):u.cmpn(0)<0&&(d=u.iadd(this.m)),d._forceRed(this)},X.prototype.mul=function(e,r){if(e.isZero()||r.isZero())return new i(0)._forceRed(this);var n=e.mul(r),a=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=n.isub(a).iushrn(this.shift),d=u;return u.cmp(this.m)>=0?d=u.isub(this.m):u.cmpn(0)<0&&(d=u.iadd(this.m)),d._forceRed(this)},X.prototype.invm=function(e){var r=this.imod(e._invmp(this.m).mul(this.r2));return r._forceRed(this)}})(m,Kp)})(Mi)),Mi.exports}var h0={},Qh;function Ol(){return Qh||(Qh=1,(function(m){var g=m;function S(i,l){if(Array.isArray(i))return i.slice();if(!i)return[];var b=[];if(typeof i!="string"){for(var p=0;p<i.length;p++)b[p]=i[p]|0;return b}if(l==="hex"){i=i.replace(/[^a-z0-9]+/ig,""),i.length%2!==0&&(i="0"+i);for(var p=0;p<i.length;p+=2)b.push(parseInt(i[p]+i[p+1],16))}else for(var p=0;p<i.length;p++){var o=i.charCodeAt(p),v=o>>8,y=o&255;v?b.push(v,y):b.push(y)}return b}g.toArray=S;function s(i){return i.length===1?"0"+i:i}g.zero2=s;function A(i){for(var l="",b=0;b<i.length;b++)l+=s(i[b].toString(16));return l}g.toHex=A,g.encode=function(l,b){return b==="hex"?A(l):l}})(h0)),h0}var eu;function Yt(){return eu||(eu=1,(function(m){var g=m,S=rr(),s=Xt(),A=Ol();g.assert=s,g.toArray=A.toArray,g.zero2=A.zero2,g.toHex=A.toHex,g.encode=A.encode;function i(v,y,x){var M=new Array(Math.max(v.bitLength(),x)+1),_;for(_=0;_<M.length;_+=1)M[_]=0;var E=1<<y+1,B=v.clone();for(_=0;_<M.length;_++){var F,C=B.andln(E-1);B.isOdd()?(C>(E>>1)-1?F=(E>>1)-C:F=C,B.isubn(F)):F=0,M[_]=F,B.iushrn(1)}return M}g.getNAF=i;function l(v,y){var x=[[],[]];v=v.clone(),y=y.clone();for(var M=0,_=0,E;v.cmpn(-M)>0||y.cmpn(-_)>0;){var B=v.andln(3)+M&3,F=y.andln(3)+_&3;B===3&&(B=-1),F===3&&(F=-1);var C;(B&1)===0?C=0:(E=v.andln(7)+M&7,(E===3||E===5)&&F===2?C=-B:C=B),x[0].push(C);var R;(F&1)===0?R=0:(E=y.andln(7)+_&7,(E===3||E===5)&&B===2?R=-F:R=F),x[1].push(R),2*M===C+1&&(M=1-M),2*_===R+1&&(_=1-_),v.iushrn(1),y.iushrn(1)}return x}g.getJSF=l;function b(v,y,x){var M="_"+y;v.prototype[y]=function(){return this[M]!==void 0?this[M]:this[M]=x.call(this)}}g.cachedProperty=b;function p(v){return typeof v=="string"?g.toArray(v,"hex"):v}g.parseBytes=p;function o(v){return new S(v,"hex","le")}g.intFromLE=o})(s0)),s0}var u0={},c0,tu;function Ni(){if(tu)return c0;tu=1;var m=rr(),g=Yt(),S=g.getNAF,s=g.getJSF,A=g.assert;function i(b,p){this.type=b,this.p=new m(p.p,16),this.red=p.prime?m.red(p.prime):m.mont(this.p),this.zero=new m(0).toRed(this.red),this.one=new m(1).toRed(this.red),this.two=new m(2).toRed(this.red),this.n=p.n&&new m(p.n,16),this.g=p.g&&this.pointFromJSON(p.g,p.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 o=this.n&&this.p.div(this.n);!o||o.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}c0=i,i.prototype.point=function(){throw new Error("Not implemented")},i.prototype.validate=function(){throw new Error("Not implemented")},i.prototype._fixedNafMul=function(p,o){A(p.precomputed);var v=p._getDoubles(),y=S(o,1,this._bitLength),x=(1<<v.step+1)-(v.step%2===0?2:1);x/=3;var M=[],_,E;for(_=0;_<y.length;_+=v.step){E=0;for(var B=_+v.step-1;B>=_;B--)E=(E<<1)+y[B];M.push(E)}for(var F=this.jpoint(null,null,null),C=this.jpoint(null,null,null),R=x;R>0;R--){for(_=0;_<M.length;_++)E=M[_],E===R?C=C.mixedAdd(v.points[_]):E===-R&&(C=C.mixedAdd(v.points[_].neg()));F=F.add(C)}return F.toP()},i.prototype._wnafMul=function(p,o){var v=4,y=p._getNAFPoints(v);v=y.wnd;for(var x=y.points,M=S(o,v,this._bitLength),_=this.jpoint(null,null,null),E=M.length-1;E>=0;E--){for(var B=0;E>=0&&M[E]===0;E--)B++;if(E>=0&&B++,_=_.dblp(B),E<0)break;var F=M[E];A(F!==0),p.type==="affine"?F>0?_=_.mixedAdd(x[F-1>>1]):_=_.mixedAdd(x[-F-1>>1].neg()):F>0?_=_.add(x[F-1>>1]):_=_.add(x[-F-1>>1].neg())}return p.type==="affine"?_.toP():_},i.prototype._wnafMulAdd=function(p,o,v,y,x){var M=this._wnafT1,_=this._wnafT2,E=this._wnafT3,B=0,F,C,R;for(F=0;F<y;F++){R=o[F];var D=R._getNAFPoints(p);M[F]=D.wnd,_[F]=D.points}for(F=y-1;F>=1;F-=2){var q=F-1,O=F;if(M[q]!==1||M[O]!==1){E[q]=S(v[q],M[q],this._bitLength),E[O]=S(v[O],M[O],this._bitLength),B=Math.max(E[q].length,B),B=Math.max(E[O].length,B);continue}var Y=[o[q],null,null,o[O]];o[q].y.cmp(o[O].y)===0?(Y[1]=o[q].add(o[O]),Y[2]=o[q].toJ().mixedAdd(o[O].neg())):o[q].y.cmp(o[O].y.redNeg())===0?(Y[1]=o[q].toJ().mixedAdd(o[O]),Y[2]=o[q].add(o[O].neg())):(Y[1]=o[q].toJ().mixedAdd(o[O]),Y[2]=o[q].toJ().mixedAdd(o[O].neg()));var Q=[-3,-1,-5,-7,0,7,5,1,3],L=s(v[q],v[O]);for(B=Math.max(L[0].length,B),E[q]=new Array(B),E[O]=new Array(B),C=0;C<B;C++){var X=L[0][C]|0,c=L[1][C]|0;E[q][C]=Q[(X+1)*3+(c+1)],E[O][C]=0,_[q]=Y}}var e=this.jpoint(null,null,null),r=this._wnafT4;for(F=B;F>=0;F--){for(var n=0;F>=0;){var a=!0;for(C=0;C<y;C++)r[C]=E[C][F]|0,r[C]!==0&&(a=!1);if(!a)break;n++,F--}if(F>=0&&n++,e=e.dblp(n),F<0)break;for(C=0;C<y;C++){var u=r[C];u!==0&&(u>0?R=_[C][u-1>>1]:u<0&&(R=_[C][-u-1>>1].neg()),R.type==="affine"?e=e.mixedAdd(R):e=e.add(R))}}for(F=0;F<y;F++)_[F]=null;return x?e:e.toP()};function l(b,p){this.curve=b,this.type=p,this.precomputed=null}return i.BasePoint=l,l.prototype.eq=function(){throw new Error("Not implemented")},l.prototype.validate=function(){return this.curve.validate(this)},i.prototype.decodePoint=function(p,o){p=g.toArray(p,o);var v=this.p.byteLength();if((p[0]===4||p[0]===6||p[0]===7)&&p.length-1===2*v){p[0]===6?A(p[p.length-1]%2===0):p[0]===7&&A(p[p.length-1]%2===1);var y=this.point(p.slice(1,1+v),p.slice(1+v,1+2*v));return y}else if((p[0]===2||p[0]===3)&&p.length-1===v)return this.pointFromX(p.slice(1,1+v),p[0]===3);throw new Error("Unknown point format")},l.prototype.encodeCompressed=function(p){return this.encode(p,!0)},l.prototype._encode=function(p){var o=this.curve.p.byteLength(),v=this.getX().toArray("be",o);return p?[this.getY().isEven()?2:3].concat(v):[4].concat(v,this.getY().toArray("be",o))},l.prototype.encode=function(p,o){return g.encode(this._encode(o),p)},l.prototype.precompute=function(p){if(this.precomputed)return this;var o={doubles:null,naf:null,beta:null};return o.naf=this._getNAFPoints(8),o.doubles=this._getDoubles(4,p),o.beta=this._getBeta(),this.precomputed=o,this},l.prototype._hasDoubles=function(p){if(!this.precomputed)return!1;var o=this.precomputed.doubles;return o?o.points.length>=Math.ceil((p.bitLength()+1)/o.step):!1},l.prototype._getDoubles=function(p,o){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var v=[this],y=this,x=0;x<o;x+=p){for(var M=0;M<p;M++)y=y.dbl();v.push(y)}return{step:p,points:v}},l.prototype._getNAFPoints=function(p){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var o=[this],v=(1<<p)-1,y=v===1?null:this.dbl(),x=1;x<v;x++)o[x]=o[x-1].add(y);return{wnd:p,points:o}},l.prototype._getBeta=function(){return null},l.prototype.dblp=function(p){for(var o=this,v=0;v<p;v++)o=o.dbl();return o},c0}var l0,ru;function Wp(){if(ru)return l0;ru=1;var m=Yt(),g=rr(),S=dt(),s=Ni(),A=m.assert;function i(p){s.call(this,"short",p),this.a=new g(p.a,16).toRed(this.red),this.b=new g(p.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(p),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}S(i,s),l0=i,i.prototype._getEndomorphism=function(o){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var v,y;if(o.beta)v=new g(o.beta,16).toRed(this.red);else{var x=this._getEndoRoots(this.p);v=x[0].cmp(x[1])<0?x[0]:x[1],v=v.toRed(this.red)}if(o.lambda)y=new g(o.lambda,16);else{var M=this._getEndoRoots(this.n);this.g.mul(M[0]).x.cmp(this.g.x.redMul(v))===0?y=M[0]:(y=M[1],A(this.g.mul(y).x.cmp(this.g.x.redMul(v))===0))}var _;return o.basis?_=o.basis.map(function(E){return{a:new g(E.a,16),b:new g(E.b,16)}}):_=this._getEndoBasis(y),{beta:v,lambda:y,basis:_}}},i.prototype._getEndoRoots=function(o){var v=o===this.p?this.red:g.mont(o),y=new g(2).toRed(v).redInvm(),x=y.redNeg(),M=new g(3).toRed(v).redNeg().redSqrt().redMul(y),_=x.redAdd(M).fromRed(),E=x.redSub(M).fromRed();return[_,E]},i.prototype._getEndoBasis=function(o){for(var v=this.n.ushrn(Math.floor(this.n.bitLength()/2)),y=o,x=this.n.clone(),M=new g(1),_=new g(0),E=new g(0),B=new g(1),F,C,R,D,q,O,Y,Q=0,L,X;y.cmpn(0)!==0;){var c=x.div(y);L=x.sub(c.mul(y)),X=E.sub(c.mul(M));var e=B.sub(c.mul(_));if(!R&&L.cmp(v)<0)F=Y.neg(),C=M,R=L.neg(),D=X;else if(R&&++Q===2)break;Y=L,x=y,y=L,E=M,M=X,B=_,_=e}q=L.neg(),O=X;var r=R.sqr().add(D.sqr()),n=q.sqr().add(O.sqr());return n.cmp(r)>=0&&(q=F,O=C),R.negative&&(R=R.neg(),D=D.neg()),q.negative&&(q=q.neg(),O=O.neg()),[{a:R,b:D},{a:q,b:O}]},i.prototype._endoSplit=function(o){var v=this.endo.basis,y=v[0],x=v[1],M=x.b.mul(o).divRound(this.n),_=y.b.neg().mul(o).divRound(this.n),E=M.mul(y.a),B=_.mul(x.a),F=M.mul(y.b),C=_.mul(x.b),R=o.sub(E).sub(B),D=F.add(C).neg();return{k1:R,k2:D}},i.prototype.pointFromX=function(o,v){o=new g(o,16),o.red||(o=o.toRed(this.red));var y=o.redSqr().redMul(o).redIAdd(o.redMul(this.a)).redIAdd(this.b),x=y.redSqrt();if(x.redSqr().redSub(y).cmp(this.zero)!==0)throw new Error("invalid point");var M=x.fromRed().isOdd();return(v&&!M||!v&&M)&&(x=x.redNeg()),this.point(o,x)},i.prototype.validate=function(o){if(o.inf)return!0;var v=o.x,y=o.y,x=this.a.redMul(v),M=v.redSqr().redMul(v).redIAdd(x).redIAdd(this.b);return y.redSqr().redISub(M).cmpn(0)===0},i.prototype._endoWnafMulAdd=function(o,v,y){for(var x=this._endoWnafT1,M=this._endoWnafT2,_=0;_<o.length;_++){var E=this._endoSplit(v[_]),B=o[_],F=B._getBeta();E.k1.negative&&(E.k1.ineg(),B=B.neg(!0)),E.k2.negative&&(E.k2.ineg(),F=F.neg(!0)),x[_*2]=B,x[_*2+1]=F,M[_*2]=E.k1,M[_*2+1]=E.k2}for(var C=this._wnafMulAdd(1,x,M,_*2,y),R=0;R<_*2;R++)x[R]=null,M[R]=null;return C};function l(p,o,v,y){s.BasePoint.call(this,p,"affine"),o===null&&v===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new g(o,16),this.y=new g(v,16),y&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}S(l,s.BasePoint),i.prototype.point=function(o,v,y){return new l(this,o,v,y)},i.prototype.pointFromJSON=function(o,v){return l.fromJSON(this,o,v)},l.prototype._getBeta=function(){if(this.curve.endo){var o=this.precomputed;if(o&&o.beta)return o.beta;var v=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(o){var y=this.curve,x=function(M){return y.point(M.x.redMul(y.endo.beta),M.y)};o.beta=v,v.precomputed={beta:null,naf:o.naf&&{wnd:o.naf.wnd,points:o.naf.points.map(x)},doubles:o.doubles&&{step:o.doubles.step,points:o.doubles.points.map(x)}}}return v}},l.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},l.fromJSON=function(o,v,y){typeof v=="string"&&(v=JSON.parse(v));var x=o.point(v[0],v[1],y);if(!v[2])return x;function M(E){return o.point(E[0],E[1],y)}var _=v[2];return x.precomputed={beta:null,doubles:_.doubles&&{step:_.doubles.step,points:[x].concat(_.doubles.points.map(M))},naf:_.naf&&{wnd:_.naf.wnd,points:[x].concat(_.naf.points.map(M))}},x},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return this.inf},l.prototype.add=function(o){if(this.inf)return o;if(o.inf)return this;if(this.eq(o))return this.dbl();if(this.neg().eq(o))return this.curve.point(null,null);if(this.x.cmp(o.x)===0)return this.curve.point(null,null);var v=this.y.redSub(o.y);v.cmpn(0)!==0&&(v=v.redMul(this.x.redSub(o.x).redInvm()));var y=v.redSqr().redISub(this.x).redISub(o.x),x=v.redMul(this.x.redSub(y)).redISub(this.y);return this.curve.point(y,x)},l.prototype.dbl=function(){if(this.inf)return this;var o=this.y.redAdd(this.y);if(o.cmpn(0)===0)return this.curve.point(null,null);var v=this.curve.a,y=this.x.redSqr(),x=o.redInvm(),M=y.redAdd(y).redIAdd(y).redIAdd(v).redMul(x),_=M.redSqr().redISub(this.x.redAdd(this.x)),E=M.redMul(this.x.redSub(_)).redISub(this.y);return this.curve.point(_,E)},l.prototype.getX=function(){return this.x.fromRed()},l.prototype.getY=function(){return this.y.fromRed()},l.prototype.mul=function(o){return o=new g(o,16),this.isInfinity()?this:this._hasDoubles(o)?this.curve._fixedNafMul(this,o):this.curve.endo?this.curve._endoWnafMulAdd([this],[o]):this.curve._wnafMul(this,o)},l.prototype.mulAdd=function(o,v,y){var x=[this,v],M=[o,y];return this.curve.endo?this.curve._endoWnafMulAdd(x,M):this.curve._wnafMulAdd(1,x,M,2)},l.prototype.jmulAdd=function(o,v,y){var x=[this,v],M=[o,y];return this.curve.endo?this.curve._endoWnafMulAdd(x,M,!0):this.curve._wnafMulAdd(1,x,M,2,!0)},l.prototype.eq=function(o){return this===o||this.inf===o.inf&&(this.inf||this.x.cmp(o.x)===0&&this.y.cmp(o.y)===0)},l.prototype.neg=function(o){if(this.inf)return this;var v=this.curve.point(this.x,this.y.redNeg());if(o&&this.precomputed){var y=this.precomputed,x=function(M){return M.neg()};v.precomputed={naf:y.naf&&{wnd:y.naf.wnd,points:y.naf.points.map(x)},doubles:y.doubles&&{step:y.doubles.step,points:y.doubles.points.map(x)}}}return v},l.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var o=this.curve.jpoint(this.x,this.y,this.curve.one);return o};function b(p,o,v,y){s.BasePoint.call(this,p,"jacobian"),o===null&&v===null&&y===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new g(0)):(this.x=new g(o,16),this.y=new g(v,16),this.z=new g(y,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}return S(b,s.BasePoint),i.prototype.jpoint=function(o,v,y){return new b(this,o,v,y)},b.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var o=this.z.redInvm(),v=o.redSqr(),y=this.x.redMul(v),x=this.y.redMul(v).redMul(o);return this.curve.point(y,x)},b.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},b.prototype.add=function(o){if(this.isInfinity())return o;if(o.isInfinity())return this;var v=o.z.redSqr(),y=this.z.redSqr(),x=this.x.redMul(v),M=o.x.redMul(y),_=this.y.redMul(v.redMul(o.z)),E=o.y.redMul(y.redMul(this.z)),B=x.redSub(M),F=_.redSub(E);if(B.cmpn(0)===0)return F.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var C=B.redSqr(),R=C.redMul(B),D=x.redMul(C),q=F.redSqr().redIAdd(R).redISub(D).redISub(D),O=F.redMul(D.redISub(q)).redISub(_.redMul(R)),Y=this.z.redMul(o.z).redMul(B);return this.curve.jpoint(q,O,Y)},b.prototype.mixedAdd=function(o){if(this.isInfinity())return o.toJ();if(o.isInfinity())return this;var v=this.z.redSqr(),y=this.x,x=o.x.redMul(v),M=this.y,_=o.y.redMul(v).redMul(this.z),E=y.redSub(x),B=M.redSub(_);if(E.cmpn(0)===0)return B.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var F=E.redSqr(),C=F.redMul(E),R=y.redMul(F),D=B.redSqr().redIAdd(C).redISub(R).redISub(R),q=B.redMul(R.redISub(D)).redISub(M.redMul(C)),O=this.z.redMul(E);return this.curve.jpoint(D,q,O)},b.prototype.dblp=function(o){if(o===0)return this;if(this.isInfinity())return this;if(!o)return this.dbl();var v;if(this.curve.zeroA||this.curve.threeA){var y=this;for(v=0;v<o;v++)y=y.dbl();return y}var x=this.curve.a,M=this.curve.tinv,_=this.x,E=this.y,B=this.z,F=B.redSqr().redSqr(),C=E.redAdd(E);for(v=0;v<o;v++){var R=_.redSqr(),D=C.redSqr(),q=D.redSqr(),O=R.redAdd(R).redIAdd(R).redIAdd(x.redMul(F)),Y=_.redMul(D),Q=O.redSqr().redISub(Y.redAdd(Y)),L=Y.redISub(Q),X=O.redMul(L);X=X.redIAdd(X).redISub(q);var c=C.redMul(B);v+1<o&&(F=F.redMul(q)),_=Q,B=c,C=X}return this.curve.jpoint(_,C.redMul(M),B)},b.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},b.prototype._zeroDbl=function(){var o,v,y;if(this.zOne){var x=this.x.redSqr(),M=this.y.redSqr(),_=M.redSqr(),E=this.x.redAdd(M).redSqr().redISub(x).redISub(_);E=E.redIAdd(E);var B=x.redAdd(x).redIAdd(x),F=B.redSqr().redISub(E).redISub(E),C=_.redIAdd(_);C=C.redIAdd(C),C=C.redIAdd(C),o=F,v=B.redMul(E.redISub(F)).redISub(C),y=this.y.redAdd(this.y)}else{var R=this.x.redSqr(),D=this.y.redSqr(),q=D.redSqr(),O=this.x.redAdd(D).redSqr().redISub(R).redISub(q);O=O.redIAdd(O);var Y=R.redAdd(R).redIAdd(R),Q=Y.redSqr(),L=q.redIAdd(q);L=L.redIAdd(L),L=L.redIAdd(L),o=Q.redISub(O).redISub(O),v=Y.redMul(O.redISub(o)).redISub(L),y=this.y.redMul(this.z),y=y.redIAdd(y)}return this.curve.jpoint(o,v,y)},b.prototype._threeDbl=function(){var o,v,y;if(this.zOne){var x=this.x.redSqr(),M=this.y.redSqr(),_=M.redSqr(),E=this.x.redAdd(M).redSqr().redISub(x).redISub(_);E=E.redIAdd(E);var B=x.redAdd(x).redIAdd(x).redIAdd(this.curve.a),F=B.redSqr().redISub(E).redISub(E);o=F;var C=_.redIAdd(_);C=C.redIAdd(C),C=C.redIAdd(C),v=B.redMul(E.redISub(F)).redISub(C),y=this.y.redAdd(this.y)}else{var R=this.z.redSqr(),D=this.y.redSqr(),q=this.x.redMul(D),O=this.x.redSub(R).redMul(this.x.redAdd(R));O=O.redAdd(O).redIAdd(O);var Y=q.redIAdd(q);Y=Y.redIAdd(Y);var Q=Y.redAdd(Y);o=O.redSqr().redISub(Q),y=this.y.redAdd(this.z).redSqr().redISub(D).redISub(R);var L=D.redSqr();L=L.redIAdd(L),L=L.redIAdd(L),L=L.redIAdd(L),v=O.redMul(Y.redISub(o)).redISub(L)}return this.curve.jpoint(o,v,y)},b.prototype._dbl=function(){var o=this.curve.a,v=this.x,y=this.y,x=this.z,M=x.redSqr().redSqr(),_=v.redSqr(),E=y.redSqr(),B=_.redAdd(_).redIAdd(_).redIAdd(o.redMul(M)),F=v.redAdd(v);F=F.redIAdd(F);var C=F.redMul(E),R=B.redSqr().redISub(C.redAdd(C)),D=C.redISub(R),q=E.redSqr();q=q.redIAdd(q),q=q.redIAdd(q),q=q.redIAdd(q);var O=B.redMul(D).redISub(q),Y=y.redAdd(y).redMul(x);return this.curve.jpoint(R,O,Y)},b.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var o=this.x.redSqr(),v=this.y.redSqr(),y=this.z.redSqr(),x=v.redSqr(),M=o.redAdd(o).redIAdd(o),_=M.redSqr(),E=this.x.redAdd(v).redSqr().redISub(o).redISub(x);E=E.redIAdd(E),E=E.redAdd(E).redIAdd(E),E=E.redISub(_);var B=E.redSqr(),F=x.redIAdd(x);F=F.redIAdd(F),F=F.redIAdd(F),F=F.redIAdd(F);var C=M.redIAdd(E).redSqr().redISub(_).redISub(B).redISub(F),R=v.redMul(C);R=R.redIAdd(R),R=R.redIAdd(R);var D=this.x.redMul(B).redISub(R);D=D.redIAdd(D),D=D.redIAdd(D);var q=this.y.redMul(C.redMul(F.redISub(C)).redISub(E.redMul(B)));q=q.redIAdd(q),q=q.redIAdd(q),q=q.redIAdd(q);var O=this.z.redAdd(E).redSqr().redISub(y).redISub(B);return this.curve.jpoint(D,q,O)},b.prototype.mul=function(o,v){return o=new g(o,v),this.curve._wnafMul(this,o)},b.prototype.eq=function(o){if(o.type==="affine")return this.eq(o.toJ());if(this===o)return!0;var v=this.z.redSqr(),y=o.z.redSqr();if(this.x.redMul(y).redISub(o.x.redMul(v)).cmpn(0)!==0)return!1;var x=v.redMul(this.z),M=y.redMul(o.z);return this.y.redMul(M).redISub(o.y.redMul(x)).cmpn(0)===0},b.prototype.eqXToP=function(o){var v=this.z.redSqr(),y=o.toRed(this.curve.red).redMul(v);if(this.x.cmp(y)===0)return!0;for(var x=o.clone(),M=this.curve.redN.redMul(v);;){if(x.iadd(this.curve.n),x.cmp(this.curve.p)>=0)return!1;if(y.redIAdd(M),this.x.cmp(y)===0)return!0}},b.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},b.prototype.isInfinity=function(){return this.z.cmpn(0)===0},l0}var d0,iu;function Gp(){if(iu)return d0;iu=1;var m=rr(),g=dt(),S=Ni(),s=Yt();function A(l){S.call(this,"mont",l),this.a=new m(l.a,16).toRed(this.red),this.b=new m(l.b,16).toRed(this.red),this.i4=new m(4).toRed(this.red).redInvm(),this.two=new m(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}g(A,S),d0=A,A.prototype.validate=function(b){var p=b.normalize().x,o=p.redSqr(),v=o.redMul(p).redAdd(o.redMul(this.a)).redAdd(p),y=v.redSqrt();return y.redSqr().cmp(v)===0};function i(l,b,p){S.BasePoint.call(this,l,"projective"),b===null&&p===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new m(b,16),this.z=new m(p,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}return g(i,S.BasePoint),A.prototype.decodePoint=function(b,p){return this.point(s.toArray(b,p),1)},A.prototype.point=function(b,p){return new i(this,b,p)},A.prototype.pointFromJSON=function(b){return i.fromJSON(this,b)},i.prototype.precompute=function(){},i.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},i.fromJSON=function(b,p){return new i(b,p[0],p[1]||b.one)},i.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},i.prototype.isInfinity=function(){return this.z.cmpn(0)===0},i.prototype.dbl=function(){var b=this.x.redAdd(this.z),p=b.redSqr(),o=this.x.redSub(this.z),v=o.redSqr(),y=p.redSub(v),x=p.redMul(v),M=y.redMul(v.redAdd(this.curve.a24.redMul(y)));return this.curve.point(x,M)},i.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.diffAdd=function(b,p){var o=this.x.redAdd(this.z),v=this.x.redSub(this.z),y=b.x.redAdd(b.z),x=b.x.redSub(b.z),M=x.redMul(o),_=y.redMul(v),E=p.z.redMul(M.redAdd(_).redSqr()),B=p.x.redMul(M.redISub(_).redSqr());return this.curve.point(E,B)},i.prototype.mul=function(b){for(var p=b.clone(),o=this,v=this.curve.point(null,null),y=this,x=[];p.cmpn(0)!==0;p.iushrn(1))x.push(p.andln(1));for(var M=x.length-1;M>=0;M--)x[M]===0?(o=o.diffAdd(v,y),v=v.dbl()):(v=o.diffAdd(v,y),o=o.dbl());return v},i.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.eq=function(b){return this.getX().cmp(b.getX())===0},i.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},i.prototype.getX=function(){return this.normalize(),this.x.fromRed()},d0}var p0,nu;function Vp(){if(nu)return p0;nu=1;var m=Yt(),g=rr(),S=dt(),s=Ni(),A=m.assert;function i(b){this.twisted=(b.a|0)!==1,this.mOneA=this.twisted&&(b.a|0)===-1,this.extended=this.mOneA,s.call(this,"edwards",b),this.a=new g(b.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new g(b.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new g(b.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),A(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(b.c|0)===1}S(i,s),p0=i,i.prototype._mulA=function(p){return this.mOneA?p.redNeg():this.a.redMul(p)},i.prototype._mulC=function(p){return this.oneC?p:this.c.redMul(p)},i.prototype.jpoint=function(p,o,v,y){return this.point(p,o,v,y)},i.prototype.pointFromX=function(p,o){p=new g(p,16),p.red||(p=p.toRed(this.red));var v=p.redSqr(),y=this.c2.redSub(this.a.redMul(v)),x=this.one.redSub(this.c2.redMul(this.d).redMul(v)),M=y.redMul(x.redInvm()),_=M.redSqrt();if(_.redSqr().redSub(M).cmp(this.zero)!==0)throw new Error("invalid point");var E=_.fromRed().isOdd();return(o&&!E||!o&&E)&&(_=_.redNeg()),this.point(p,_)},i.prototype.pointFromY=function(p,o){p=new g(p,16),p.red||(p=p.toRed(this.red));var v=p.redSqr(),y=v.redSub(this.c2),x=v.redMul(this.d).redMul(this.c2).redSub(this.a),M=y.redMul(x.redInvm());if(M.cmp(this.zero)===0){if(o)throw new Error("invalid point");return this.point(this.zero,p)}var _=M.redSqrt();if(_.redSqr().redSub(M).cmp(this.zero)!==0)throw new Error("invalid point");return _.fromRed().isOdd()!==o&&(_=_.redNeg()),this.point(_,p)},i.prototype.validate=function(p){if(p.isInfinity())return!0;p.normalize();var o=p.x.redSqr(),v=p.y.redSqr(),y=o.redMul(this.a).redAdd(v),x=this.c2.redMul(this.one.redAdd(this.d.redMul(o).redMul(v)));return y.cmp(x)===0};function l(b,p,o,v,y){s.BasePoint.call(this,b,"projective"),p===null&&o===null&&v===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new g(p,16),this.y=new g(o,16),this.z=v?new g(v,16):this.curve.one,this.t=y&&new g(y,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}return S(l,s.BasePoint),i.prototype.pointFromJSON=function(p){return l.fromJSON(this,p)},i.prototype.point=function(p,o,v,y){return new l(this,p,o,v,y)},l.fromJSON=function(p,o){return new l(p,o[0],o[1],o[2])},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},l.prototype._extDbl=function(){var p=this.x.redSqr(),o=this.y.redSqr(),v=this.z.redSqr();v=v.redIAdd(v);var y=this.curve._mulA(p),x=this.x.redAdd(this.y).redSqr().redISub(p).redISub(o),M=y.redAdd(o),_=M.redSub(v),E=y.redSub(o),B=x.redMul(_),F=M.redMul(E),C=x.redMul(E),R=_.redMul(M);return this.curve.point(B,F,R,C)},l.prototype._projDbl=function(){var p=this.x.redAdd(this.y).redSqr(),o=this.x.redSqr(),v=this.y.redSqr(),y,x,M,_,E,B;if(this.curve.twisted){_=this.curve._mulA(o);var F=_.redAdd(v);this.zOne?(y=p.redSub(o).redSub(v).redMul(F.redSub(this.curve.two)),x=F.redMul(_.redSub(v)),M=F.redSqr().redSub(F).redSub(F)):(E=this.z.redSqr(),B=F.redSub(E).redISub(E),y=p.redSub(o).redISub(v).redMul(B),x=F.redMul(_.redSub(v)),M=F.redMul(B))}else _=o.redAdd(v),E=this.curve._mulC(this.z).redSqr(),B=_.redSub(E).redSub(E),y=this.curve._mulC(p.redISub(_)).redMul(B),x=this.curve._mulC(_).redMul(o.redISub(v)),M=_.redMul(B);return this.curve.point(y,x,M)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},l.prototype._extAdd=function(p){var o=this.y.redSub(this.x).redMul(p.y.redSub(p.x)),v=this.y.redAdd(this.x).redMul(p.y.redAdd(p.x)),y=this.t.redMul(this.curve.dd).redMul(p.t),x=this.z.redMul(p.z.redAdd(p.z)),M=v.redSub(o),_=x.redSub(y),E=x.redAdd(y),B=v.redAdd(o),F=M.redMul(_),C=E.redMul(B),R=M.redMul(B),D=_.redMul(E);return this.curve.point(F,C,D,R)},l.prototype._projAdd=function(p){var o=this.z.redMul(p.z),v=o.redSqr(),y=this.x.redMul(p.x),x=this.y.redMul(p.y),M=this.curve.d.redMul(y).redMul(x),_=v.redSub(M),E=v.redAdd(M),B=this.x.redAdd(this.y).redMul(p.x.redAdd(p.y)).redISub(y).redISub(x),F=o.redMul(_).redMul(B),C,R;return this.curve.twisted?(C=o.redMul(E).redMul(x.redSub(this.curve._mulA(y))),R=_.redMul(E)):(C=o.redMul(E).redMul(x.redSub(y)),R=this.curve._mulC(_).redMul(E)),this.curve.point(F,C,R)},l.prototype.add=function(p){return this.isInfinity()?p:p.isInfinity()?this:this.curve.extended?this._extAdd(p):this._projAdd(p)},l.prototype.mul=function(p){return this._hasDoubles(p)?this.curve._fixedNafMul(this,p):this.curve._wnafMul(this,p)},l.prototype.mulAdd=function(p,o,v){return this.curve._wnafMulAdd(1,[this,o],[p,v],2,!1)},l.prototype.jmulAdd=function(p,o,v){return this.curve._wnafMulAdd(1,[this,o],[p,v],2,!0)},l.prototype.normalize=function(){if(this.zOne)return this;var p=this.z.redInvm();return this.x=this.x.redMul(p),this.y=this.y.redMul(p),this.t&&(this.t=this.t.redMul(p)),this.z=this.curve.one,this.zOne=!0,this},l.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()},l.prototype.getY=function(){return this.normalize(),this.y.fromRed()},l.prototype.eq=function(p){return this===p||this.getX().cmp(p.getX())===0&&this.getY().cmp(p.getY())===0},l.prototype.eqXToP=function(p){var o=p.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(o)===0)return!0;for(var v=p.clone(),y=this.curve.redN.redMul(this.z);;){if(v.iadd(this.curve.n),v.cmp(this.curve.p)>=0)return!1;if(o.redIAdd(y),this.x.cmp(o)===0)return!0}},l.prototype.toP=l.prototype.normalize,l.prototype.mixedAdd=l.prototype.add,p0}var au;function ql(){return au||(au=1,(function(m){var g=m;g.base=Ni(),g.short=Wp(),g.mont=Gp(),g.edwards=Vp()})(u0)),u0}var v0={},b0={},Dt={},fu;function tr(){if(fu)return Dt;fu=1;var m=Xt(),g=dt();Dt.inherits=g;function S(e,r){return(e.charCodeAt(r)&64512)!==55296||r<0||r+1>=e.length?!1:(e.charCodeAt(r+1)&64512)===56320}function s(e,r){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if(typeof e=="string")if(r){if(r==="hex")for(e=e.replace(/[^a-z0-9]+/ig,""),e.length%2!==0&&(e="0"+e),u=0;u<e.length;u+=2)n.push(parseInt(e[u]+e[u+1],16))}else for(var a=0,u=0;u<e.length;u++){var d=e.charCodeAt(u);d<128?n[a++]=d:d<2048?(n[a++]=d>>6|192,n[a++]=d&63|128):S(e,u)?(d=65536+((d&1023)<<10)+(e.charCodeAt(++u)&1023),n[a++]=d>>18|240,n[a++]=d>>12&63|128,n[a++]=d>>6&63|128,n[a++]=d&63|128):(n[a++]=d>>12|224,n[a++]=d>>6&63|128,n[a++]=d&63|128)}else for(u=0;u<e.length;u++)n[u]=e[u]|0;return n}Dt.toArray=s;function A(e){for(var r="",n=0;n<e.length;n++)r+=b(e[n].toString(16));return r}Dt.toHex=A;function i(e){var r=e>>>24|e>>>8&65280|e<<8&16711680|(e&255)<<24;return r>>>0}Dt.htonl=i;function l(e,r){for(var n="",a=0;a<e.length;a++){var u=e[a];r==="little"&&(u=i(u)),n+=p(u.toString(16))}return n}Dt.toHex32=l;function b(e){return e.length===1?"0"+e:e}Dt.zero2=b;function p(e){return e.length===7?"0"+e:e.length===6?"00"+e:e.length===5?"000"+e:e.length===4?"0000"+e:e.length===3?"00000"+e:e.length===2?"000000"+e:e.length===1?"0000000"+e:e}Dt.zero8=p;function o(e,r,n,a){var u=n-r;m(u%4===0);for(var d=new Array(u/4),w=0,f=r;w<d.length;w++,f+=4){var t;a==="big"?t=e[f]<<24|e[f+1]<<16|e[f+2]<<8|e[f+3]:t=e[f+3]<<24|e[f+2]<<16|e[f+1]<<8|e[f],d[w]=t>>>0}return d}Dt.join32=o;function v(e,r){for(var n=new Array(e.length*4),a=0,u=0;a<e.length;a++,u+=4){var d=e[a];r==="big"?(n[u]=d>>>24,n[u+1]=d>>>16&255,n[u+2]=d>>>8&255,n[u+3]=d&255):(n[u+3]=d>>>24,n[u+2]=d>>>16&255,n[u+1]=d>>>8&255,n[u]=d&255)}return n}Dt.split32=v;function y(e,r){return e>>>r|e<<32-r}Dt.rotr32=y;function x(e,r){return e<<r|e>>>32-r}Dt.rotl32=x;function M(e,r){return e+r>>>0}Dt.sum32=M;function _(e,r,n){return e+r+n>>>0}Dt.sum32_3=_;function E(e,r,n,a){return e+r+n+a>>>0}Dt.sum32_4=E;function B(e,r,n,a,u){return e+r+n+a+u>>>0}Dt.sum32_5=B;function F(e,r,n,a){var u=e[r],d=e[r+1],w=a+d>>>0,f=(w<a?1:0)+n+u;e[r]=f>>>0,e[r+1]=w}Dt.sum64=F;function C(e,r,n,a){var u=r+a>>>0,d=(u<r?1:0)+e+n;return d>>>0}Dt.sum64_hi=C;function R(e,r,n,a){var u=r+a;return u>>>0}Dt.sum64_lo=R;function D(e,r,n,a,u,d,w,f){var t=0,h=r;h=h+a>>>0,t+=h<r?1:0,h=h+d>>>0,t+=h<d?1:0,h=h+f>>>0,t+=h<f?1:0;var H=e+n+u+w+t;return H>>>0}Dt.sum64_4_hi=D;function q(e,r,n,a,u,d,w,f){var t=r+a+d+f;return t>>>0}Dt.sum64_4_lo=q;function O(e,r,n,a,u,d,w,f,t,h){var H=0,j=r;j=j+a>>>0,H+=j<r?1:0,j=j+d>>>0,H+=j<d?1:0,j=j+f>>>0,H+=j<f?1:0,j=j+h>>>0,H+=j<h?1:0;var U=e+n+u+w+t+H;return U>>>0}Dt.sum64_5_hi=O;function Y(e,r,n,a,u,d,w,f,t,h){var H=r+a+d+f+h;return H>>>0}Dt.sum64_5_lo=Y;function Q(e,r,n){var a=r<<32-n|e>>>n;return a>>>0}Dt.rotr64_hi=Q;function L(e,r,n){var a=e<<32-n|r>>>n;return a>>>0}Dt.rotr64_lo=L;function X(e,r,n){return e>>>n}Dt.shr64_hi=X;function c(e,r,n){var a=e<<32-n|r>>>n;return a>>>0}return Dt.shr64_lo=c,Dt}var m0={},ou;function Lr(){if(ou)return m0;ou=1;var m=tr(),g=Xt();function S(){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}return m0.BlockHash=S,S.prototype.update=function(A,i){if(A=m.toArray(A,i),this.pending?this.pending=this.pending.concat(A):this.pending=A,this.pendingTotal+=A.length,this.pending.length>=this._delta8){A=this.pending;var l=A.length%this._delta8;this.pending=A.slice(A.length-l,A.length),this.pending.length===0&&(this.pending=null),A=m.join32(A,0,A.length-l,this.endian);for(var b=0;b<A.length;b+=this._delta32)this._update(A,b,b+this._delta32)}return this},S.prototype.digest=function(A){return this.update(this._pad()),g(this.pending===null),this._digest(A)},S.prototype._pad=function(){var A=this.pendingTotal,i=this._delta8,l=i-(A+this.padLength)%i,b=new Array(l+this.padLength);b[0]=128;for(var p=1;p<l;p++)b[p]=0;if(A<<=3,this.endian==="big"){for(var o=8;o<this.padLength;o++)b[p++]=0;b[p++]=0,b[p++]=0,b[p++]=0,b[p++]=0,b[p++]=A>>>24&255,b[p++]=A>>>16&255,b[p++]=A>>>8&255,b[p++]=A&255}else for(b[p++]=A&255,b[p++]=A>>>8&255,b[p++]=A>>>16&255,b[p++]=A>>>24&255,b[p++]=0,b[p++]=0,b[p++]=0,b[p++]=0,o=8;o<this.padLength;o++)b[p++]=0;return b},m0}var ur={},Qt={},su;function Ul(){if(su)return Qt;su=1;var m=tr(),g=m.rotr32;function S(v,y,x,M){if(v===0)return s(y,x,M);if(v===1||v===3)return i(y,x,M);if(v===2)return A(y,x,M)}Qt.ft_1=S;function s(v,y,x){return v&y^~v&x}Qt.ch32=s;function A(v,y,x){return v&y^v&x^y&x}Qt.maj32=A;function i(v,y,x){return v^y^x}Qt.p32=i;function l(v){return g(v,2)^g(v,13)^g(v,22)}Qt.s0_256=l;function b(v){return g(v,6)^g(v,11)^g(v,25)}Qt.s1_256=b;function p(v){return g(v,7)^g(v,18)^v>>>3}Qt.g0_256=p;function o(v){return g(v,17)^g(v,19)^v>>>10}return Qt.g1_256=o,Qt}var y0,hu;function Zp(){if(hu)return y0;hu=1;var m=tr(),g=Lr(),S=Ul(),s=m.rotl32,A=m.sum32,i=m.sum32_5,l=S.ft_1,b=g.BlockHash,p=[1518500249,1859775393,2400959708,3395469782];function o(){if(!(this instanceof o))return new o;b.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}return m.inherits(o,b),y0=o,o.blockSize=512,o.outSize=160,o.hmacStrength=80,o.padLength=64,o.prototype._update=function(y,x){for(var M=this.W,_=0;_<16;_++)M[_]=y[x+_];for(;_<M.length;_++)M[_]=s(M[_-3]^M[_-8]^M[_-14]^M[_-16],1);var E=this.h[0],B=this.h[1],F=this.h[2],C=this.h[3],R=this.h[4];for(_=0;_<M.length;_++){var D=~~(_/20),q=i(s(E,5),l(D,B,F,C),R,M[_],p[D]);R=C,C=F,F=s(B,30),B=E,E=q}this.h[0]=A(this.h[0],E),this.h[1]=A(this.h[1],B),this.h[2]=A(this.h[2],F),this.h[3]=A(this.h[3],C),this.h[4]=A(this.h[4],R)},o.prototype._digest=function(y){return y==="hex"?m.toHex32(this.h,"big"):m.split32(this.h,"big")},y0}var g0,uu;function Ll(){if(uu)return g0;uu=1;var m=tr(),g=Lr(),S=Ul(),s=Xt(),A=m.sum32,i=m.sum32_4,l=m.sum32_5,b=S.ch32,p=S.maj32,o=S.s0_256,v=S.s1_256,y=S.g0_256,x=S.g1_256,M=g.BlockHash,_=[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 E(){if(!(this instanceof E))return new E;M.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=_,this.W=new Array(64)}return m.inherits(E,M),g0=E,E.blockSize=512,E.outSize=256,E.hmacStrength=192,E.padLength=64,E.prototype._update=function(F,C){for(var R=this.W,D=0;D<16;D++)R[D]=F[C+D];for(;D<R.length;D++)R[D]=i(x(R[D-2]),R[D-7],y(R[D-15]),R[D-16]);var q=this.h[0],O=this.h[1],Y=this.h[2],Q=this.h[3],L=this.h[4],X=this.h[5],c=this.h[6],e=this.h[7];for(s(this.k.length===R.length),D=0;D<R.length;D++){var r=l(e,v(L),b(L,X,c),this.k[D],R[D]),n=A(o(q),p(q,O,Y));e=c,c=X,X=L,L=A(Q,r),Q=Y,Y=O,O=q,q=A(r,n)}this.h[0]=A(this.h[0],q),this.h[1]=A(this.h[1],O),this.h[2]=A(this.h[2],Y),this.h[3]=A(this.h[3],Q),this.h[4]=A(this.h[4],L),this.h[5]=A(this.h[5],X),this.h[6]=A(this.h[6],c),this.h[7]=A(this.h[7],e)},E.prototype._digest=function(F){return F==="hex"?m.toHex32(this.h,"big"):m.split32(this.h,"big")},g0}var x0,cu;function Xp(){if(cu)return x0;cu=1;var m=tr(),g=Ll();function S(){if(!(this instanceof S))return new S;g.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}return m.inherits(S,g),x0=S,S.blockSize=512,S.outSize=224,S.hmacStrength=192,S.padLength=64,S.prototype._digest=function(A){return A==="hex"?m.toHex32(this.h.slice(0,7),"big"):m.split32(this.h.slice(0,7),"big")},x0}var w0,lu;function Hl(){if(lu)return w0;lu=1;var m=tr(),g=Lr(),S=Xt(),s=m.rotr64_hi,A=m.rotr64_lo,i=m.shr64_hi,l=m.shr64_lo,b=m.sum64,p=m.sum64_hi,o=m.sum64_lo,v=m.sum64_4_hi,y=m.sum64_4_lo,x=m.sum64_5_hi,M=m.sum64_5_lo,_=g.BlockHash,E=[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];function B(){if(!(this instanceof B))return new B;_.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=E,this.W=new Array(160)}m.inherits(B,_),w0=B,B.blockSize=1024,B.outSize=512,B.hmacStrength=192,B.padLength=128,B.prototype._prepareBlock=function(n,a){for(var u=this.W,d=0;d<32;d++)u[d]=n[a+d];for(;d<u.length;d+=2){var w=c(u[d-4],u[d-3]),f=e(u[d-4],u[d-3]),t=u[d-14],h=u[d-13],H=L(u[d-30],u[d-29]),j=X(u[d-30],u[d-29]),U=u[d-32],ee=u[d-31];u[d]=v(w,f,t,h,H,j,U,ee),u[d+1]=y(w,f,t,h,H,j,U,ee)}},B.prototype._update=function(n,a){this._prepareBlock(n,a);var u=this.W,d=this.h[0],w=this.h[1],f=this.h[2],t=this.h[3],h=this.h[4],H=this.h[5],j=this.h[6],U=this.h[7],ee=this.h[8],J=this.h[9],N=this.h[10],z=this.h[11],Z=this.h[12],k=this.h[13],P=this.h[14],T=this.h[15];S(this.k.length===u.length);for(var G=0;G<u.length;G+=2){var fe=P,te=T,re=Y(ee,J),he=Q(ee,J),ie=F(ee,J,N,z,Z),ne=C(ee,J,N,z,Z,k),pe=this.k[G],oe=this.k[G+1],se=u[G],Re=u[G+1],de=x(fe,te,re,he,ie,ne,pe,oe,se,Re),ve=M(fe,te,re,he,ie,ne,pe,oe,se,Re);fe=q(d,w),te=O(d,w),re=R(d,w,f,t,h),he=D(d,w,f,t,h,H);var ot=p(fe,te,re,he),be=o(fe,te,re,he);P=Z,T=k,Z=N,k=z,N=ee,z=J,ee=p(j,U,de,ve),J=o(U,U,de,ve),j=h,U=H,h=f,H=t,f=d,t=w,d=p(de,ve,ot,be),w=o(de,ve,ot,be)}b(this.h,0,d,w),b(this.h,2,f,t),b(this.h,4,h,H),b(this.h,6,j,U),b(this.h,8,ee,J),b(this.h,10,N,z),b(this.h,12,Z,k),b(this.h,14,P,T)},B.prototype._digest=function(n){return n==="hex"?m.toHex32(this.h,"big"):m.split32(this.h,"big")};function F(r,n,a,u,d){var w=r&a^~r&d;return w<0&&(w+=4294967296),w}function C(r,n,a,u,d,w){var f=n&u^~n&w;return f<0&&(f+=4294967296),f}function R(r,n,a,u,d){var w=r&a^r&d^a&d;return w<0&&(w+=4294967296),w}function D(r,n,a,u,d,w){var f=n&u^n&w^u&w;return f<0&&(f+=4294967296),f}function q(r,n){var a=s(r,n,28),u=s(n,r,2),d=s(n,r,7),w=a^u^d;return w<0&&(w+=4294967296),w}function O(r,n){var a=A(r,n,28),u=A(n,r,2),d=A(n,r,7),w=a^u^d;return w<0&&(w+=4294967296),w}function Y(r,n){var a=s(r,n,14),u=s(r,n,18),d=s(n,r,9),w=a^u^d;return w<0&&(w+=4294967296),w}function Q(r,n){var a=A(r,n,14),u=A(r,n,18),d=A(n,r,9),w=a^u^d;return w<0&&(w+=4294967296),w}function L(r,n){var a=s(r,n,1),u=s(r,n,8),d=i(r,n,7),w=a^u^d;return w<0&&(w+=4294967296),w}function X(r,n){var a=A(r,n,1),u=A(r,n,8),d=l(r,n,7),w=a^u^d;return w<0&&(w+=4294967296),w}function c(r,n){var a=s(r,n,19),u=s(n,r,29),d=i(r,n,6),w=a^u^d;return w<0&&(w+=4294967296),w}function e(r,n){var a=A(r,n,19),u=A(n,r,29),d=l(r,n,6),w=a^u^d;return w<0&&(w+=4294967296),w}return w0}var M0,du;function Yp(){if(du)return M0;du=1;var m=tr(),g=Hl();function S(){if(!(this instanceof S))return new S;g.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}return m.inherits(S,g),M0=S,S.blockSize=1024,S.outSize=384,S.hmacStrength=192,S.padLength=128,S.prototype._digest=function(A){return A==="hex"?m.toHex32(this.h.slice(0,12),"big"):m.split32(this.h.slice(0,12),"big")},M0}var pu;function Jp(){return pu||(pu=1,ur.sha1=Zp(),ur.sha224=Xp(),ur.sha256=Ll(),ur.sha384=Yp(),ur.sha512=Hl()),ur}var _0={},vu;function Qp(){if(vu)return _0;vu=1;var m=tr(),g=Lr(),S=m.rotl32,s=m.sum32,A=m.sum32_3,i=m.sum32_4,l=g.BlockHash;function b(){if(!(this instanceof b))return new b;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}m.inherits(b,l),_0.ripemd160=b,b.blockSize=512,b.outSize=160,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(B,F){for(var C=this.h[0],R=this.h[1],D=this.h[2],q=this.h[3],O=this.h[4],Y=C,Q=R,L=D,X=q,c=O,e=0;e<80;e++){var r=s(S(i(C,p(e,R,D,q),B[y[e]+F],o(e)),M[e]),O);C=O,O=q,q=S(D,10),D=R,R=r,r=s(S(i(Y,p(79-e,Q,L,X),B[x[e]+F],v(e)),_[e]),c),Y=c,c=X,X=S(L,10),L=Q,Q=r}r=A(this.h[1],D,X),this.h[1]=A(this.h[2],q,c),this.h[2]=A(this.h[3],O,Y),this.h[3]=A(this.h[4],C,Q),this.h[4]=A(this.h[0],R,L),this.h[0]=r},b.prototype._digest=function(B){return B==="hex"?m.toHex32(this.h,"little"):m.split32(this.h,"little")};function p(E,B,F,C){return E<=15?B^F^C:E<=31?B&F|~B&C:E<=47?(B|~F)^C:E<=63?B&C|F&~C:B^(F|~C)}function o(E){return E<=15?0:E<=31?1518500249:E<=47?1859775393:E<=63?2400959708:2840853838}function v(E){return E<=15?1352829926:E<=31?1548603684:E<=47?1836072691:E<=63?2053994217:0}var y=[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],x=[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],M=[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],_=[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];return _0}var A0,bu;function e2(){if(bu)return A0;bu=1;var m=tr(),g=Xt();function S(s,A,i){if(!(this instanceof S))return new S(s,A,i);this.Hash=s,this.blockSize=s.blockSize/8,this.outSize=s.outSize/8,this.inner=null,this.outer=null,this._init(m.toArray(A,i))}return A0=S,S.prototype._init=function(A){A.length>this.blockSize&&(A=new this.Hash().update(A).digest()),g(A.length<=this.blockSize);for(var i=A.length;i<this.blockSize;i++)A.push(0);for(i=0;i<A.length;i++)A[i]^=54;for(this.inner=new this.Hash().update(A),i=0;i<A.length;i++)A[i]^=106;this.outer=new this.Hash().update(A)},S.prototype.update=function(A,i){return this.inner.update(A,i),this},S.prototype.digest=function(A){return this.outer.update(this.inner.digest()),this.outer.digest(A)},A0}var mu;function $f(){return mu||(mu=1,(function(m){var g=m;g.utils=tr(),g.common=Lr(),g.sha=Jp(),g.ripemd=Qp(),g.hmac=e2(),g.sha1=g.sha.sha1,g.sha256=g.sha.sha256,g.sha224=g.sha.sha224,g.sha384=g.sha.sha384,g.sha512=g.sha.sha512,g.ripemd160=g.ripemd.ripemd160})(b0)),b0}var E0,yu;function t2(){return yu||(yu=1,E0={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}),E0}var gu;function jf(){return gu||(gu=1,(function(m){var g=m,S=$f(),s=ql(),A=Yt(),i=A.assert;function l(o){o.type==="short"?this.curve=new s.short(o):o.type==="edwards"?this.curve=new s.edwards(o):this.curve=new s.mont(o),this.g=this.curve.g,this.n=this.curve.n,this.hash=o.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}g.PresetCurve=l;function b(o,v){Object.defineProperty(g,o,{configurable:!0,enumerable:!0,get:function(){var y=new l(v);return Object.defineProperty(g,o,{configurable:!0,enumerable:!0,value:y}),y}})}b("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:S.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),b("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:S.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),b("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:S.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),b("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:S.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"]}),b("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:S.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"]}),b("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:S.sha256,gRed:!1,g:["9"]}),b("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:S.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var p;try{p=t2()}catch{p=void 0}b("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:S.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",p]})})(v0)),v0}var S0,xu;function r2(){if(xu)return S0;xu=1;var m=$f(),g=Ol(),S=Xt();function s(A){if(!(this instanceof s))return new s(A);this.hash=A.hash,this.predResist=!!A.predResist,this.outLen=this.hash.outSize,this.minEntropy=A.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var i=g.toArray(A.entropy,A.entropyEnc||"hex"),l=g.toArray(A.nonce,A.nonceEnc||"hex"),b=g.toArray(A.pers,A.persEnc||"hex");S(i.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(i,l,b)}return S0=s,s.prototype._init=function(i,l,b){var p=i.concat(l).concat(b);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var o=0;o<this.V.length;o++)this.K[o]=0,this.V[o]=1;this._update(p),this._reseed=1,this.reseedInterval=281474976710656},s.prototype._hmac=function(){return new m.hmac(this.hash,this.K)},s.prototype._update=function(i){var l=this._hmac().update(this.V).update([0]);i&&(l=l.update(i)),this.K=l.digest(),this.V=this._hmac().update(this.V).digest(),i&&(this.K=this._hmac().update(this.V).update([1]).update(i).digest(),this.V=this._hmac().update(this.V).digest())},s.prototype.reseed=function(i,l,b,p){typeof l!="string"&&(p=b,b=l,l=null),i=g.toArray(i,l),b=g.toArray(b,p),S(i.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(i.concat(b||[])),this._reseed=1},s.prototype.generate=function(i,l,b,p){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof l!="string"&&(p=b,b=l,l=null),b&&(b=g.toArray(b,p||"hex"),this._update(b));for(var o=[];o.length<i;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var v=o.slice(0,i);return this._update(b),this._reseed++,g.encode(v,l)},S0}var B0,wu;function i2(){if(wu)return B0;wu=1;var m=rr(),g=Yt(),S=g.assert;function s(A,i){this.ec=A,this.priv=null,this.pub=null,i.priv&&this._importPrivate(i.priv,i.privEnc),i.pub&&this._importPublic(i.pub,i.pubEnc)}return B0=s,s.fromPublic=function(i,l,b){return l instanceof s?l:new s(i,{pub:l,pubEnc:b})},s.fromPrivate=function(i,l,b){return l instanceof s?l:new s(i,{priv:l,privEnc:b})},s.prototype.validate=function(){var i=this.getPublic();return i.isInfinity()?{result:!1,reason:"Invalid public key"}:i.validate()?i.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},s.prototype.getPublic=function(i,l){return typeof i=="string"&&(l=i,i=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),l?this.pub.encode(l,i):this.pub},s.prototype.getPrivate=function(i){return i==="hex"?this.priv.toString(16,2):this.priv},s.prototype._importPrivate=function(i,l){this.priv=new m(i,l||16),this.priv=this.priv.umod(this.ec.curve.n)},s.prototype._importPublic=function(i,l){if(i.x||i.y){this.ec.curve.type==="mont"?S(i.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&S(i.x&&i.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(i.x,i.y);return}this.pub=this.ec.curve.decodePoint(i,l)},s.prototype.derive=function(i){return i.validate()||S(i.validate(),"public point not validated"),i.mul(this.priv).getX()},s.prototype.sign=function(i,l,b){return this.ec.sign(i,this,l,b)},s.prototype.verify=function(i,l,b){return this.ec.verify(i,l,this,void 0,b)},s.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"},B0}var F0,Mu;function n2(){if(Mu)return F0;Mu=1;var m=rr(),g=Yt(),S=g.assert;function s(p,o){if(p instanceof s)return p;this._importDER(p,o)||(S(p.r&&p.s,"Signature without r or s"),this.r=new m(p.r,16),this.s=new m(p.s,16),p.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=p.recoveryParam)}F0=s;function A(){this.place=0}function i(p,o){var v=p[o.place++];if(!(v&128))return v;var y=v&15;if(y===0||y>4||p[o.place]===0)return!1;for(var x=0,M=0,_=o.place;M<y;M++,_++)x<<=8,x|=p[_],x>>>=0;return x<=127?!1:(o.place=_,x)}function l(p){for(var o=0,v=p.length-1;!p[o]&&!(p[o+1]&128)&&o<v;)o++;return o===0?p:p.slice(o)}s.prototype._importDER=function(o,v){o=g.toArray(o,v);var y=new A;if(o[y.place++]!==48)return!1;var x=i(o,y);if(x===!1||x+y.place!==o.length||o[y.place++]!==2)return!1;var M=i(o,y);if(M===!1||(o[y.place]&128)!==0)return!1;var _=o.slice(y.place,M+y.place);if(y.place+=M,o[y.place++]!==2)return!1;var E=i(o,y);if(E===!1||o.length!==E+y.place||(o[y.place]&128)!==0)return!1;var B=o.slice(y.place,E+y.place);if(_[0]===0)if(_[1]&128)_=_.slice(1);else return!1;if(B[0]===0)if(B[1]&128)B=B.slice(1);else return!1;return this.r=new m(_),this.s=new m(B),this.recoveryParam=null,!0};function b(p,o){if(o<128){p.push(o);return}var v=1+(Math.log(o)/Math.LN2>>>3);for(p.push(v|128);--v;)p.push(o>>>(v<<3)&255);p.push(o)}return s.prototype.toDER=function(o){var v=this.r.toArray(),y=this.s.toArray();for(v[0]&128&&(v=[0].concat(v)),y[0]&128&&(y=[0].concat(y)),v=l(v),y=l(y);!y[0]&&!(y[1]&128);)y=y.slice(1);var x=[2];b(x,v.length),x=x.concat(v),x.push(2),b(x,y.length);var M=x.concat(y),_=[48];return b(_,M.length),_=_.concat(M),g.encode(_,o)},F0}var C0,_u;function a2(){if(_u)return C0;_u=1;var m=rr(),g=r2(),S=Yt(),s=jf(),A=qf(),i=S.assert,l=i2(),b=n2();function p(o){if(!(this instanceof p))return new p(o);typeof o=="string"&&(i(Object.prototype.hasOwnProperty.call(s,o),"Unknown curve "+o),o=s[o]),o instanceof s.PresetCurve&&(o={curve:o}),this.curve=o.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=o.curve.g,this.g.precompute(o.curve.n.bitLength()+1),this.hash=o.hash||o.curve.hash}return C0=p,p.prototype.keyPair=function(v){return new l(this,v)},p.prototype.keyFromPrivate=function(v,y){return l.fromPrivate(this,v,y)},p.prototype.keyFromPublic=function(v,y){return l.fromPublic(this,v,y)},p.prototype.genKeyPair=function(v){v||(v={});for(var y=new g({hash:this.hash,pers:v.pers,persEnc:v.persEnc||"utf8",entropy:v.entropy||A(this.hash.hmacStrength),entropyEnc:v.entropy&&v.entropyEnc||"utf8",nonce:this.n.toArray()}),x=this.n.byteLength(),M=this.n.sub(new m(2));;){var _=new m(y.generate(x));if(!(_.cmp(M)>0))return _.iaddn(1),this.keyFromPrivate(_)}},p.prototype._truncateToN=function(v,y,x){var M;if(m.isBN(v)||typeof v=="number")v=new m(v,16),M=v.byteLength();else if(typeof v=="object")M=v.length,v=new m(v,16);else{var _=v.toString();M=_.length+1>>>1,v=new m(_,16)}typeof x!="number"&&(x=M*8);var E=x-this.n.bitLength();return E>0&&(v=v.ushrn(E)),!y&&v.cmp(this.n)>=0?v.sub(this.n):v},p.prototype.sign=function(v,y,x,M){if(typeof x=="object"&&(M=x,x=null),M||(M={}),typeof v!="string"&&typeof v!="number"&&!m.isBN(v)){i(typeof v=="object"&&v&&typeof v.length=="number","Expected message to be an array-like, a hex string, or a BN instance"),i(v.length>>>0===v.length);for(var _=0;_<v.length;_++)i((v[_]&255)===v[_])}y=this.keyFromPrivate(y,x),v=this._truncateToN(v,!1,M.msgBitLength),i(!v.isNeg(),"Can not sign a negative message");var E=this.n.byteLength(),B=y.getPrivate().toArray("be",E),F=v.toArray("be",E);i(new m(F).eq(v),"Can not sign message");for(var C=new g({hash:this.hash,entropy:B,nonce:F,pers:M.pers,persEnc:M.persEnc||"utf8"}),R=this.n.sub(new m(1)),D=0;;D++){var q=M.k?M.k(D):new m(C.generate(this.n.byteLength()));if(q=this._truncateToN(q,!0),!(q.cmpn(1)<=0||q.cmp(R)>=0)){var O=this.g.mul(q);if(!O.isInfinity()){var Y=O.getX(),Q=Y.umod(this.n);if(Q.cmpn(0)!==0){var L=q.invm(this.n).mul(Q.mul(y.getPrivate()).iadd(v));if(L=L.umod(this.n),L.cmpn(0)!==0){var X=(O.getY().isOdd()?1:0)|(Y.cmp(Q)!==0?2:0);return M.canonical&&L.cmp(this.nh)>0&&(L=this.n.sub(L),X^=1),new b({r:Q,s:L,recoveryParam:X})}}}}}},p.prototype.verify=function(v,y,x,M,_){_||(_={}),v=this._truncateToN(v,!1,_.msgBitLength),x=this.keyFromPublic(x,M),y=new b(y,"hex");var E=y.r,B=y.s;if(E.cmpn(1)<0||E.cmp(this.n)>=0||B.cmpn(1)<0||B.cmp(this.n)>=0)return!1;var F=B.invm(this.n),C=F.mul(v).umod(this.n),R=F.mul(E).umod(this.n),D;return this.curve._maxwellTrick?(D=this.g.jmulAdd(C,x.getPublic(),R),D.isInfinity()?!1:D.eqXToP(E)):(D=this.g.mulAdd(C,x.getPublic(),R),D.isInfinity()?!1:D.getX().umod(this.n).cmp(E)===0)},p.prototype.recoverPubKey=function(o,v,y,x){i((3&y)===y,"The recovery param is more than two bits"),v=new b(v,x);var M=this.n,_=new m(o),E=v.r,B=v.s,F=y&1,C=y>>1;if(E.cmp(this.curve.p.umod(this.curve.n))>=0&&C)throw new Error("Unable to find sencond key candinate");C?E=this.curve.pointFromX(E.add(this.curve.n),F):E=this.curve.pointFromX(E,F);var R=v.r.invm(M),D=M.sub(_).mul(R).umod(M),q=B.mul(R).umod(M);return this.g.mulAdd(D,E,q)},p.prototype.getKeyRecoveryParam=function(o,v,y,x){if(v=new b(v,x),v.recoveryParam!==null)return v.recoveryParam;for(var M=0;M<4;M++){var _;try{_=this.recoverPubKey(o,v,M)}catch{continue}if(_.eq(y))return M}throw new Error("Unable to find valid recovery factor")},C0}var D0,Au;function f2(){if(Au)return D0;Au=1;var m=Yt(),g=m.assert,S=m.parseBytes,s=m.cachedProperty;function A(i,l){this.eddsa=i,this._secret=S(l.secret),i.isPoint(l.pub)?this._pub=l.pub:this._pubBytes=S(l.pub)}return A.fromPublic=function(l,b){return b instanceof A?b:new A(l,{pub:b})},A.fromSecret=function(l,b){return b instanceof A?b:new A(l,{secret:b})},A.prototype.secret=function(){return this._secret},s(A,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),s(A,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),s(A,"privBytes",function(){var l=this.eddsa,b=this.hash(),p=l.encodingLength-1,o=b.slice(0,l.encodingLength);return o[0]&=248,o[p]&=127,o[p]|=64,o}),s(A,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),s(A,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),s(A,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),A.prototype.sign=function(l){return g(this._secret,"KeyPair can only verify"),this.eddsa.sign(l,this)},A.prototype.verify=function(l,b){return this.eddsa.verify(l,b,this)},A.prototype.getSecret=function(l){return g(this._secret,"KeyPair is public only"),m.encode(this.secret(),l)},A.prototype.getPublic=function(l){return m.encode(this.pubBytes(),l)},D0=A,D0}var R0,Eu;function o2(){if(Eu)return R0;Eu=1;var m=rr(),g=Yt(),S=g.assert,s=g.cachedProperty,A=g.parseBytes;function i(l,b){this.eddsa=l,typeof b!="object"&&(b=A(b)),Array.isArray(b)&&(S(b.length===l.encodingLength*2,"Signature has invalid size"),b={R:b.slice(0,l.encodingLength),S:b.slice(l.encodingLength)}),S(b.R&&b.S,"Signature without R or S"),l.isPoint(b.R)&&(this._R=b.R),b.S instanceof m&&(this._S=b.S),this._Rencoded=Array.isArray(b.R)?b.R:b.Rencoded,this._Sencoded=Array.isArray(b.S)?b.S:b.Sencoded}return s(i,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),s(i,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),s(i,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),s(i,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),i.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},i.prototype.toHex=function(){return g.encode(this.toBytes(),"hex").toUpperCase()},R0=i,R0}var T0,Su;function s2(){if(Su)return T0;Su=1;var m=$f(),g=jf(),S=Yt(),s=S.assert,A=S.parseBytes,i=f2(),l=o2();function b(p){if(s(p==="ed25519","only tested with ed25519 so far"),!(this instanceof b))return new b(p);p=g[p].curve,this.curve=p,this.g=p.g,this.g.precompute(p.n.bitLength()+1),this.pointClass=p.point().constructor,this.encodingLength=Math.ceil(p.n.bitLength()/8),this.hash=m.sha512}return T0=b,b.prototype.sign=function(o,v){o=A(o);var y=this.keyFromSecret(v),x=this.hashInt(y.messagePrefix(),o),M=this.g.mul(x),_=this.encodePoint(M),E=this.hashInt(_,y.pubBytes(),o).mul(y.priv()),B=x.add(E).umod(this.curve.n);return this.makeSignature({R:M,S:B,Rencoded:_})},b.prototype.verify=function(o,v,y){if(o=A(o),v=this.makeSignature(v),v.S().gte(v.eddsa.curve.n)||v.S().isNeg())return!1;var x=this.keyFromPublic(y),M=this.hashInt(v.Rencoded(),x.pubBytes(),o),_=this.g.mul(v.S()),E=v.R().add(x.pub().mul(M));return E.eq(_)},b.prototype.hashInt=function(){for(var o=this.hash(),v=0;v<arguments.length;v++)o.update(arguments[v]);return S.intFromLE(o.digest()).umod(this.curve.n)},b.prototype.keyFromPublic=function(o){return i.fromPublic(this,o)},b.prototype.keyFromSecret=function(o){return i.fromSecret(this,o)},b.prototype.makeSignature=function(o){return o instanceof l?o:new l(this,o)},b.prototype.encodePoint=function(o){var v=o.getY().toArray("le",this.encodingLength);return v[this.encodingLength-1]|=o.getX().isOdd()?128:0,v},b.prototype.decodePoint=function(o){o=S.parseBytes(o);var v=o.length-1,y=o.slice(0,v).concat(o[v]&-129),x=(o[v]&128)!==0,M=S.intFromLE(y);return this.curve.pointFromY(M,x)},b.prototype.encodeInt=function(o){return o.toArray("le",this.encodingLength)},b.prototype.decodeInt=function(o){return S.intFromLE(o)},b.prototype.isPoint=function(o){return o instanceof this.pointClass},T0}var Bu;function Oi(){return Bu||(Bu=1,(function(m){var g=m;g.version=zp.version,g.utils=Yt(),g.rand=qf(),g.curve=ql(),g.curves=jf(),g.ec=a2(),g.eddsa=s2()})(o0)),o0}var Zt={},I0={},_i={exports:{}},h2=_i.exports,Fu;function u2(){return Fu||(Fu=1,(function(m){(function(g,S){function s(c,e){if(!c)throw new Error(e||"Assertion failed")}function A(c,e){c.super_=e;var r=function(){};r.prototype=e.prototype,c.prototype=new r,c.prototype.constructor=c}function i(c,e,r){if(i.isBN(c))return c;this.negative=0,this.words=null,this.length=0,this.red=null,c!==null&&((e==="le"||e==="be")&&(r=e,e=10),this._init(c||0,e||10,r||"be"))}typeof g=="object"?g.exports=i:S.BN=i,i.BN=i,i.wordSize=26;var l;try{typeof window<"u"&&typeof window.Buffer<"u"?l=window.Buffer:l=Qe.requireDist().Buffer}catch{}i.isBN=function(e){return e instanceof i?!0:e!==null&&typeof e=="object"&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,r){return e.cmp(r)>0?e:r},i.min=function(e,r){return e.cmp(r)<0?e:r},i.prototype._init=function(e,r,n){if(typeof e=="number")return this._initNumber(e,r,n);if(typeof e=="object")return this._initArray(e,r,n);r==="hex"&&(r=16),s(r===(r|0)&&r>=2&&r<=36),e=e.toString().replace(/\s+/g,"");var a=0;e[0]==="-"&&(a++,this.negative=1),a<e.length&&(r===16?this._parseHex(e,a,n):(this._parseBase(e,r,a),n==="le"&&this._initArray(this.toArray(),r,n)))},i.prototype._initNumber=function(e,r,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[e&67108863],this.length=1):e<4503599627370496?(this.words=[e&67108863,e/67108864&67108863],this.length=2):(s(e<9007199254740992),this.words=[e&67108863,e/67108864&67108863,1],this.length=3),n==="le"&&this._initArray(this.toArray(),r,n)},i.prototype._initArray=function(e,r,n){if(s(typeof e.length=="number"),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var a=0;a<this.length;a++)this.words[a]=0;var u,d,w=0;if(n==="be")for(a=e.length-1,u=0;a>=0;a-=3)d=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[u]|=d<<w&67108863,this.words[u+1]=d>>>26-w&67108863,w+=24,w>=26&&(w-=26,u++);else if(n==="le")for(a=0,u=0;a<e.length;a+=3)d=e[a]|e[a+1]<<8|e[a+2]<<16,this.words[u]|=d<<w&67108863,this.words[u+1]=d>>>26-w&67108863,w+=24,w>=26&&(w-=26,u++);return this.strip()};function b(c,e){var r=c.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function p(c,e,r){var n=b(c,r);return r-1>=e&&(n|=b(c,r-1)<<4),n}i.prototype._parseHex=function(e,r,n){this.length=Math.ceil((e.length-r)/6),this.words=new Array(this.length);for(var a=0;a<this.length;a++)this.words[a]=0;var u=0,d=0,w;if(n==="be")for(a=e.length-1;a>=r;a-=2)w=p(e,r,a)<<u,this.words[d]|=w&67108863,u>=18?(u-=18,d+=1,this.words[d]|=w>>>26):u+=8;else{var f=e.length-r;for(a=f%2===0?r+1:r;a<e.length;a+=2)w=p(e,r,a)<<u,this.words[d]|=w&67108863,u>=18?(u-=18,d+=1,this.words[d]|=w>>>26):u+=8}this.strip()};function o(c,e,r,n){for(var a=0,u=Math.min(c.length,r),d=e;d<u;d++){var w=c.charCodeAt(d)-48;a*=n,w>=49?a+=w-49+10:w>=17?a+=w-17+10:a+=w}return a}i.prototype._parseBase=function(e,r,n){this.words=[0],this.length=1;for(var a=0,u=1;u<=67108863;u*=r)a++;a--,u=u/r|0;for(var d=e.length-n,w=d%a,f=Math.min(d,d-w)+n,t=0,h=n;h<f;h+=a)t=o(e,h,h+a,r),this.imuln(u),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t);if(w!==0){var H=1;for(t=o(e,h,e.length,r),h=0;h<w;h++)H*=r;this.imuln(H),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t)}this.strip()},i.prototype.copy=function(e){e.words=new Array(this.length);for(var r=0;r<this.length;r++)e.words[r]=this.words[r];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var v=["","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"],y=[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],x=[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];i.prototype.toString=function(e,r){e=e||10,r=r|0||1;var n;if(e===16||e==="hex"){n="";for(var a=0,u=0,d=0;d<this.length;d++){var w=this.words[d],f=((w<<a|u)&16777215).toString(16);u=w>>>24-a&16777215,a+=2,a>=26&&(a-=26,d--),u!==0||d!==this.length-1?n=v[6-f.length]+f+n:n=f+n}for(u!==0&&(n=u.toString(16)+n);n.length%r!==0;)n="0"+n;return this.negative!==0&&(n="-"+n),n}if(e===(e|0)&&e>=2&&e<=36){var t=y[e],h=x[e];n="";var H=this.clone();for(H.negative=0;!H.isZero();){var j=H.modn(h).toString(e);H=H.idivn(h),H.isZero()?n=j+n:n=v[t-j.length]+j+n}for(this.isZero()&&(n="0"+n);n.length%r!==0;)n="0"+n;return this.negative!==0&&(n="-"+n),n}s(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return this.length===2?e+=this.words[1]*67108864:this.length===3&&this.words[2]===1?e+=4503599627370496+this.words[1]*67108864:this.length>2&&s(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,r){return s(typeof l<"u"),this.toArrayLike(l,e,r)},i.prototype.toArray=function(e,r){return this.toArrayLike(Array,e,r)},i.prototype.toArrayLike=function(e,r,n){var a=this.byteLength(),u=n||Math.max(1,a);s(a<=u,"byte array longer than desired length"),s(u>0,"Requested array length <= 0"),this.strip();var d=r==="le",w=new e(u),f,t,h=this.clone();if(d){for(t=0;!h.isZero();t++)f=h.andln(255),h.iushrn(8),w[t]=f;for(;t<u;t++)w[t]=0}else{for(t=0;t<u-a;t++)w[t]=0;for(t=0;!h.isZero();t++)f=h.andln(255),h.iushrn(8),w[u-t-1]=f}return w},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var r=e,n=0;return r>=4096&&(n+=13,r>>>=13),r>=64&&(n+=7,r>>>=7),r>=8&&(n+=4,r>>>=4),r>=2&&(n+=2,r>>>=2),n+r},i.prototype._zeroBits=function(e){if(e===0)return 26;var r=e,n=0;return(r&8191)===0&&(n+=13,r>>>=13),(r&127)===0&&(n+=7,r>>>=7),(r&15)===0&&(n+=4,r>>>=4),(r&3)===0&&(n+=2,r>>>=2),(r&1)===0&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],r=this._countBits(e);return(this.length-1)*26+r};function M(c){for(var e=new Array(c.bitLength()),r=0;r<e.length;r++){var n=r/26|0,a=r%26;e[r]=(c.words[n]&1<<a)>>>a}return e}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,r=0;r<this.length;r++){var n=this._zeroBits(this.words[r]);if(e+=n,n!==26)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return this.negative!==0?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]|e.words[r];return this.strip()},i.prototype.ior=function(e){return s((this.negative|e.negative)===0),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var r;this.length>e.length?r=e:r=this;for(var n=0;n<r.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=r.length,this.strip()},i.prototype.iand=function(e){return s((this.negative|e.negative)===0),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var r,n;this.length>e.length?(r=this,n=e):(r=e,n=this);for(var a=0;a<n.length;a++)this.words[a]=r.words[a]^n.words[a];if(this!==r)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=r.length,this.strip()},i.prototype.ixor=function(e){return s((this.negative|e.negative)===0),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){s(typeof e=="number"&&e>=0);var r=Math.ceil(e/26)|0,n=e%26;this._expand(r),n>0&&r--;for(var a=0;a<r;a++)this.words[a]=~this.words[a]&67108863;return n>0&&(this.words[a]=~this.words[a]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,r){s(typeof e=="number"&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),r?this.words[n]=this.words[n]|1<<a:this.words[n]=this.words[n]&~(1<<a),this.strip()},i.prototype.iadd=function(e){var r;if(this.negative!==0&&e.negative===0)return this.negative=0,r=this.isub(e),this.negative^=1,this._normSign();if(this.negative===0&&e.negative!==0)return e.negative=0,r=this.isub(e),e.negative=1,r._normSign();var n,a;this.length>e.length?(n=this,a=e):(n=e,a=this);for(var u=0,d=0;d<a.length;d++)r=(n.words[d]|0)+(a.words[d]|0)+u,this.words[d]=r&67108863,u=r>>>26;for(;u!==0&&d<n.length;d++)r=(n.words[d]|0)+u,this.words[d]=r&67108863,u=r>>>26;if(this.length=n.length,u!==0)this.words[this.length]=u,this.length++;else if(n!==this)for(;d<n.length;d++)this.words[d]=n.words[d];return this},i.prototype.add=function(e){var r;return e.negative!==0&&this.negative===0?(e.negative=0,r=this.sub(e),e.negative^=1,r):e.negative===0&&this.negative!==0?(this.negative=0,r=e.sub(this),this.negative=1,r):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var r=this.iadd(e);return e.negative=1,r._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(n===0)return this.negative=0,this.length=1,this.words[0]=0,this;var a,u;n>0?(a=this,u=e):(a=e,u=this);for(var d=0,w=0;w<u.length;w++)r=(a.words[w]|0)-(u.words[w]|0)+d,d=r>>26,this.words[w]=r&67108863;for(;d!==0&&w<a.length;w++)r=(a.words[w]|0)+d,d=r>>26,this.words[w]=r&67108863;if(d===0&&w<a.length&&a!==this)for(;w<a.length;w++)this.words[w]=a.words[w];return this.length=Math.max(this.length,w),a!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(e){return this.clone().isub(e)};function _(c,e,r){r.negative=e.negative^c.negative;var n=c.length+e.length|0;r.length=n,n=n-1|0;var a=c.words[0]|0,u=e.words[0]|0,d=a*u,w=d&67108863,f=d/67108864|0;r.words[0]=w;for(var t=1;t<n;t++){for(var h=f>>>26,H=f&67108863,j=Math.min(t,e.length-1),U=Math.max(0,t-c.length+1);U<=j;U++){var ee=t-U|0;a=c.words[ee]|0,u=e.words[U]|0,d=a*u+H,h+=d/67108864|0,H=d&67108863}r.words[t]=H|0,f=h|0}return f!==0?r.words[t]=f|0:r.length--,r.strip()}var E=function(e,r,n){var a=e.words,u=r.words,d=n.words,w=0,f,t,h,H=a[0]|0,j=H&8191,U=H>>>13,ee=a[1]|0,J=ee&8191,N=ee>>>13,z=a[2]|0,Z=z&8191,k=z>>>13,P=a[3]|0,T=P&8191,G=P>>>13,fe=a[4]|0,te=fe&8191,re=fe>>>13,he=a[5]|0,ie=he&8191,ne=he>>>13,pe=a[6]|0,oe=pe&8191,se=pe>>>13,Re=a[7]|0,de=Re&8191,ve=Re>>>13,ot=a[8]|0,be=ot&8191,me=ot>>>13,ut=a[9]|0,Fe=ut&8191,Be=ut>>>13,vt=u[0]|0,Ee=vt&8191,Se=vt>>>13,ct=u[1]|0,_e=ct&8191,we=ct>>>13,Mt=u[2]|0,Ce=Mt&8191,De=Mt>>>13,At=u[3]|0,Te=At&8191,Ie=At>>>13,Rt=u[4]|0,Pe=Rt&8191,Ne=Rt>>>13,Nt=u[5]|0,Oe=Nt&8191,qe=Nt>>>13,qt=u[6]|0,ke=qt&8191,Ue=qt>>>13,$=u[7]|0,W=$&8191,K=$>>>13,I=u[8]|0,V=I&8191,ae=I>>>13,ye=u[9]|0,ue=ye&8191,le=ye>>>13;n.negative=e.negative^r.negative,n.length=19,f=Math.imul(j,Ee),t=Math.imul(j,Se),t=t+Math.imul(U,Ee)|0,h=Math.imul(U,Se);var Ye=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,f=Math.imul(J,Ee),t=Math.imul(J,Se),t=t+Math.imul(N,Ee)|0,h=Math.imul(N,Se),f=f+Math.imul(j,_e)|0,t=t+Math.imul(j,we)|0,t=t+Math.imul(U,_e)|0,h=h+Math.imul(U,we)|0;var ze=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(ze>>>26)|0,ze&=67108863,f=Math.imul(Z,Ee),t=Math.imul(Z,Se),t=t+Math.imul(k,Ee)|0,h=Math.imul(k,Se),f=f+Math.imul(J,_e)|0,t=t+Math.imul(J,we)|0,t=t+Math.imul(N,_e)|0,h=h+Math.imul(N,we)|0,f=f+Math.imul(j,Ce)|0,t=t+Math.imul(j,De)|0,t=t+Math.imul(U,Ce)|0,h=h+Math.imul(U,De)|0;var ht=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(ht>>>26)|0,ht&=67108863,f=Math.imul(T,Ee),t=Math.imul(T,Se),t=t+Math.imul(G,Ee)|0,h=Math.imul(G,Se),f=f+Math.imul(Z,_e)|0,t=t+Math.imul(Z,we)|0,t=t+Math.imul(k,_e)|0,h=h+Math.imul(k,we)|0,f=f+Math.imul(J,Ce)|0,t=t+Math.imul(J,De)|0,t=t+Math.imul(N,Ce)|0,h=h+Math.imul(N,De)|0,f=f+Math.imul(j,Te)|0,t=t+Math.imul(j,Ie)|0,t=t+Math.imul(U,Te)|0,h=h+Math.imul(U,Ie)|0;var Ge=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,f=Math.imul(te,Ee),t=Math.imul(te,Se),t=t+Math.imul(re,Ee)|0,h=Math.imul(re,Se),f=f+Math.imul(T,_e)|0,t=t+Math.imul(T,we)|0,t=t+Math.imul(G,_e)|0,h=h+Math.imul(G,we)|0,f=f+Math.imul(Z,Ce)|0,t=t+Math.imul(Z,De)|0,t=t+Math.imul(k,Ce)|0,h=h+Math.imul(k,De)|0,f=f+Math.imul(J,Te)|0,t=t+Math.imul(J,Ie)|0,t=t+Math.imul(N,Te)|0,h=h+Math.imul(N,Ie)|0,f=f+Math.imul(j,Pe)|0,t=t+Math.imul(j,Ne)|0,t=t+Math.imul(U,Pe)|0,h=h+Math.imul(U,Ne)|0;var et=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(et>>>26)|0,et&=67108863,f=Math.imul(ie,Ee),t=Math.imul(ie,Se),t=t+Math.imul(ne,Ee)|0,h=Math.imul(ne,Se),f=f+Math.imul(te,_e)|0,t=t+Math.imul(te,we)|0,t=t+Math.imul(re,_e)|0,h=h+Math.imul(re,we)|0,f=f+Math.imul(T,Ce)|0,t=t+Math.imul(T,De)|0,t=t+Math.imul(G,Ce)|0,h=h+Math.imul(G,De)|0,f=f+Math.imul(Z,Te)|0,t=t+Math.imul(Z,Ie)|0,t=t+Math.imul(k,Te)|0,h=h+Math.imul(k,Ie)|0,f=f+Math.imul(J,Pe)|0,t=t+Math.imul(J,Ne)|0,t=t+Math.imul(N,Pe)|0,h=h+Math.imul(N,Ne)|0,f=f+Math.imul(j,Oe)|0,t=t+Math.imul(j,qe)|0,t=t+Math.imul(U,Oe)|0,h=h+Math.imul(U,qe)|0;var tt=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(tt>>>26)|0,tt&=67108863,f=Math.imul(oe,Ee),t=Math.imul(oe,Se),t=t+Math.imul(se,Ee)|0,h=Math.imul(se,Se),f=f+Math.imul(ie,_e)|0,t=t+Math.imul(ie,we)|0,t=t+Math.imul(ne,_e)|0,h=h+Math.imul(ne,we)|0,f=f+Math.imul(te,Ce)|0,t=t+Math.imul(te,De)|0,t=t+Math.imul(re,Ce)|0,h=h+Math.imul(re,De)|0,f=f+Math.imul(T,Te)|0,t=t+Math.imul(T,Ie)|0,t=t+Math.imul(G,Te)|0,h=h+Math.imul(G,Ie)|0,f=f+Math.imul(Z,Pe)|0,t=t+Math.imul(Z,Ne)|0,t=t+Math.imul(k,Pe)|0,h=h+Math.imul(k,Ne)|0,f=f+Math.imul(J,Oe)|0,t=t+Math.imul(J,qe)|0,t=t+Math.imul(N,Oe)|0,h=h+Math.imul(N,qe)|0,f=f+Math.imul(j,ke)|0,t=t+Math.imul(j,Ue)|0,t=t+Math.imul(U,ke)|0,h=h+Math.imul(U,Ue)|0;var ft=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(ft>>>26)|0,ft&=67108863,f=Math.imul(de,Ee),t=Math.imul(de,Se),t=t+Math.imul(ve,Ee)|0,h=Math.imul(ve,Se),f=f+Math.imul(oe,_e)|0,t=t+Math.imul(oe,we)|0,t=t+Math.imul(se,_e)|0,h=h+Math.imul(se,we)|0,f=f+Math.imul(ie,Ce)|0,t=t+Math.imul(ie,De)|0,t=t+Math.imul(ne,Ce)|0,h=h+Math.imul(ne,De)|0,f=f+Math.imul(te,Te)|0,t=t+Math.imul(te,Ie)|0,t=t+Math.imul(re,Te)|0,h=h+Math.imul(re,Ie)|0,f=f+Math.imul(T,Pe)|0,t=t+Math.imul(T,Ne)|0,t=t+Math.imul(G,Pe)|0,h=h+Math.imul(G,Ne)|0,f=f+Math.imul(Z,Oe)|0,t=t+Math.imul(Z,qe)|0,t=t+Math.imul(k,Oe)|0,h=h+Math.imul(k,qe)|0,f=f+Math.imul(J,ke)|0,t=t+Math.imul(J,Ue)|0,t=t+Math.imul(N,ke)|0,h=h+Math.imul(N,Ue)|0,f=f+Math.imul(j,W)|0,t=t+Math.imul(j,K)|0,t=t+Math.imul(U,W)|0,h=h+Math.imul(U,K)|0;var at=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(at>>>26)|0,at&=67108863,f=Math.imul(be,Ee),t=Math.imul(be,Se),t=t+Math.imul(me,Ee)|0,h=Math.imul(me,Se),f=f+Math.imul(de,_e)|0,t=t+Math.imul(de,we)|0,t=t+Math.imul(ve,_e)|0,h=h+Math.imul(ve,we)|0,f=f+Math.imul(oe,Ce)|0,t=t+Math.imul(oe,De)|0,t=t+Math.imul(se,Ce)|0,h=h+Math.imul(se,De)|0,f=f+Math.imul(ie,Te)|0,t=t+Math.imul(ie,Ie)|0,t=t+Math.imul(ne,Te)|0,h=h+Math.imul(ne,Ie)|0,f=f+Math.imul(te,Pe)|0,t=t+Math.imul(te,Ne)|0,t=t+Math.imul(re,Pe)|0,h=h+Math.imul(re,Ne)|0,f=f+Math.imul(T,Oe)|0,t=t+Math.imul(T,qe)|0,t=t+Math.imul(G,Oe)|0,h=h+Math.imul(G,qe)|0,f=f+Math.imul(Z,ke)|0,t=t+Math.imul(Z,Ue)|0,t=t+Math.imul(k,ke)|0,h=h+Math.imul(k,Ue)|0,f=f+Math.imul(J,W)|0,t=t+Math.imul(J,K)|0,t=t+Math.imul(N,W)|0,h=h+Math.imul(N,K)|0,f=f+Math.imul(j,V)|0,t=t+Math.imul(j,ae)|0,t=t+Math.imul(U,V)|0,h=h+Math.imul(U,ae)|0;var rt=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(rt>>>26)|0,rt&=67108863,f=Math.imul(Fe,Ee),t=Math.imul(Fe,Se),t=t+Math.imul(Be,Ee)|0,h=Math.imul(Be,Se),f=f+Math.imul(be,_e)|0,t=t+Math.imul(be,we)|0,t=t+Math.imul(me,_e)|0,h=h+Math.imul(me,we)|0,f=f+Math.imul(de,Ce)|0,t=t+Math.imul(de,De)|0,t=t+Math.imul(ve,Ce)|0,h=h+Math.imul(ve,De)|0,f=f+Math.imul(oe,Te)|0,t=t+Math.imul(oe,Ie)|0,t=t+Math.imul(se,Te)|0,h=h+Math.imul(se,Ie)|0,f=f+Math.imul(ie,Pe)|0,t=t+Math.imul(ie,Ne)|0,t=t+Math.imul(ne,Pe)|0,h=h+Math.imul(ne,Ne)|0,f=f+Math.imul(te,Oe)|0,t=t+Math.imul(te,qe)|0,t=t+Math.imul(re,Oe)|0,h=h+Math.imul(re,qe)|0,f=f+Math.imul(T,ke)|0,t=t+Math.imul(T,Ue)|0,t=t+Math.imul(G,ke)|0,h=h+Math.imul(G,Ue)|0,f=f+Math.imul(Z,W)|0,t=t+Math.imul(Z,K)|0,t=t+Math.imul(k,W)|0,h=h+Math.imul(k,K)|0,f=f+Math.imul(J,V)|0,t=t+Math.imul(J,ae)|0,t=t+Math.imul(N,V)|0,h=h+Math.imul(N,ae)|0,f=f+Math.imul(j,ue)|0,t=t+Math.imul(j,le)|0,t=t+Math.imul(U,ue)|0,h=h+Math.imul(U,le)|0;var nt=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(nt>>>26)|0,nt&=67108863,f=Math.imul(Fe,_e),t=Math.imul(Fe,we),t=t+Math.imul(Be,_e)|0,h=Math.imul(Be,we),f=f+Math.imul(be,Ce)|0,t=t+Math.imul(be,De)|0,t=t+Math.imul(me,Ce)|0,h=h+Math.imul(me,De)|0,f=f+Math.imul(de,Te)|0,t=t+Math.imul(de,Ie)|0,t=t+Math.imul(ve,Te)|0,h=h+Math.imul(ve,Ie)|0,f=f+Math.imul(oe,Pe)|0,t=t+Math.imul(oe,Ne)|0,t=t+Math.imul(se,Pe)|0,h=h+Math.imul(se,Ne)|0,f=f+Math.imul(ie,Oe)|0,t=t+Math.imul(ie,qe)|0,t=t+Math.imul(ne,Oe)|0,h=h+Math.imul(ne,qe)|0,f=f+Math.imul(te,ke)|0,t=t+Math.imul(te,Ue)|0,t=t+Math.imul(re,ke)|0,h=h+Math.imul(re,Ue)|0,f=f+Math.imul(T,W)|0,t=t+Math.imul(T,K)|0,t=t+Math.imul(G,W)|0,h=h+Math.imul(G,K)|0,f=f+Math.imul(Z,V)|0,t=t+Math.imul(Z,ae)|0,t=t+Math.imul(k,V)|0,h=h+Math.imul(k,ae)|0,f=f+Math.imul(J,ue)|0,t=t+Math.imul(J,le)|0,t=t+Math.imul(N,ue)|0,h=h+Math.imul(N,le)|0;var it=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(it>>>26)|0,it&=67108863,f=Math.imul(Fe,Ce),t=Math.imul(Fe,De),t=t+Math.imul(Be,Ce)|0,h=Math.imul(Be,De),f=f+Math.imul(be,Te)|0,t=t+Math.imul(be,Ie)|0,t=t+Math.imul(me,Te)|0,h=h+Math.imul(me,Ie)|0,f=f+Math.imul(de,Pe)|0,t=t+Math.imul(de,Ne)|0,t=t+Math.imul(ve,Pe)|0,h=h+Math.imul(ve,Ne)|0,f=f+Math.imul(oe,Oe)|0,t=t+Math.imul(oe,qe)|0,t=t+Math.imul(se,Oe)|0,h=h+Math.imul(se,qe)|0,f=f+Math.imul(ie,ke)|0,t=t+Math.imul(ie,Ue)|0,t=t+Math.imul(ne,ke)|0,h=h+Math.imul(ne,Ue)|0,f=f+Math.imul(te,W)|0,t=t+Math.imul(te,K)|0,t=t+Math.imul(re,W)|0,h=h+Math.imul(re,K)|0,f=f+Math.imul(T,V)|0,t=t+Math.imul(T,ae)|0,t=t+Math.imul(G,V)|0,h=h+Math.imul(G,ae)|0,f=f+Math.imul(Z,ue)|0,t=t+Math.imul(Z,le)|0,t=t+Math.imul(k,ue)|0,h=h+Math.imul(k,le)|0;var Ve=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(Ve>>>26)|0,Ve&=67108863,f=Math.imul(Fe,Te),t=Math.imul(Fe,Ie),t=t+Math.imul(Be,Te)|0,h=Math.imul(Be,Ie),f=f+Math.imul(be,Pe)|0,t=t+Math.imul(be,Ne)|0,t=t+Math.imul(me,Pe)|0,h=h+Math.imul(me,Ne)|0,f=f+Math.imul(de,Oe)|0,t=t+Math.imul(de,qe)|0,t=t+Math.imul(ve,Oe)|0,h=h+Math.imul(ve,qe)|0,f=f+Math.imul(oe,ke)|0,t=t+Math.imul(oe,Ue)|0,t=t+Math.imul(se,ke)|0,h=h+Math.imul(se,Ue)|0,f=f+Math.imul(ie,W)|0,t=t+Math.imul(ie,K)|0,t=t+Math.imul(ne,W)|0,h=h+Math.imul(ne,K)|0,f=f+Math.imul(te,V)|0,t=t+Math.imul(te,ae)|0,t=t+Math.imul(re,V)|0,h=h+Math.imul(re,ae)|0,f=f+Math.imul(T,ue)|0,t=t+Math.imul(T,le)|0,t=t+Math.imul(G,ue)|0,h=h+Math.imul(G,le)|0;var Je=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(Je>>>26)|0,Je&=67108863,f=Math.imul(Fe,Pe),t=Math.imul(Fe,Ne),t=t+Math.imul(Be,Pe)|0,h=Math.imul(Be,Ne),f=f+Math.imul(be,Oe)|0,t=t+Math.imul(be,qe)|0,t=t+Math.imul(me,Oe)|0,h=h+Math.imul(me,qe)|0,f=f+Math.imul(de,ke)|0,t=t+Math.imul(de,Ue)|0,t=t+Math.imul(ve,ke)|0,h=h+Math.imul(ve,Ue)|0,f=f+Math.imul(oe,W)|0,t=t+Math.imul(oe,K)|0,t=t+Math.imul(se,W)|0,h=h+Math.imul(se,K)|0,f=f+Math.imul(ie,V)|0,t=t+Math.imul(ie,ae)|0,t=t+Math.imul(ne,V)|0,h=h+Math.imul(ne,ae)|0,f=f+Math.imul(te,ue)|0,t=t+Math.imul(te,le)|0,t=t+Math.imul(re,ue)|0,h=h+Math.imul(re,le)|0;var We=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(We>>>26)|0,We&=67108863,f=Math.imul(Fe,Oe),t=Math.imul(Fe,qe),t=t+Math.imul(Be,Oe)|0,h=Math.imul(Be,qe),f=f+Math.imul(be,ke)|0,t=t+Math.imul(be,Ue)|0,t=t+Math.imul(me,ke)|0,h=h+Math.imul(me,Ue)|0,f=f+Math.imul(de,W)|0,t=t+Math.imul(de,K)|0,t=t+Math.imul(ve,W)|0,h=h+Math.imul(ve,K)|0,f=f+Math.imul(oe,V)|0,t=t+Math.imul(oe,ae)|0,t=t+Math.imul(se,V)|0,h=h+Math.imul(se,ae)|0,f=f+Math.imul(ie,ue)|0,t=t+Math.imul(ie,le)|0,t=t+Math.imul(ne,ue)|0,h=h+Math.imul(ne,le)|0;var Ze=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,f=Math.imul(Fe,ke),t=Math.imul(Fe,Ue),t=t+Math.imul(Be,ke)|0,h=Math.imul(Be,Ue),f=f+Math.imul(be,W)|0,t=t+Math.imul(be,K)|0,t=t+Math.imul(me,W)|0,h=h+Math.imul(me,K)|0,f=f+Math.imul(de,V)|0,t=t+Math.imul(de,ae)|0,t=t+Math.imul(ve,V)|0,h=h+Math.imul(ve,ae)|0,f=f+Math.imul(oe,ue)|0,t=t+Math.imul(oe,le)|0,t=t+Math.imul(se,ue)|0,h=h+Math.imul(se,le)|0;var Xe=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,f=Math.imul(Fe,W),t=Math.imul(Fe,K),t=t+Math.imul(Be,W)|0,h=Math.imul(Be,K),f=f+Math.imul(be,V)|0,t=t+Math.imul(be,ae)|0,t=t+Math.imul(me,V)|0,h=h+Math.imul(me,ae)|0,f=f+Math.imul(de,ue)|0,t=t+Math.imul(de,le)|0,t=t+Math.imul(ve,ue)|0,h=h+Math.imul(ve,le)|0;var je=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(je>>>26)|0,je&=67108863,f=Math.imul(Fe,V),t=Math.imul(Fe,ae),t=t+Math.imul(Be,V)|0,h=Math.imul(Be,ae),f=f+Math.imul(be,ue)|0,t=t+Math.imul(be,le)|0,t=t+Math.imul(me,ue)|0,h=h+Math.imul(me,le)|0;var Me=(w+f|0)+((t&8191)<<13)|0;w=(h+(t>>>13)|0)+(Me>>>26)|0,Me&=67108863,f=Math.imul(Fe,ue),t=Math.imul(Fe,le),t=t+Math.imul(Be,ue)|0,h=Math.imul(Be,le);var Ae=(w+f|0)+((t&8191)<<13)|0;return w=(h+(t>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,d[0]=Ye,d[1]=ze,d[2]=ht,d[3]=Ge,d[4]=et,d[5]=tt,d[6]=ft,d[7]=at,d[8]=rt,d[9]=nt,d[10]=it,d[11]=Ve,d[12]=Je,d[13]=We,d[14]=Ze,d[15]=Xe,d[16]=je,d[17]=Me,d[18]=Ae,w!==0&&(d[19]=w,n.length++),n};Math.imul||(E=_);function B(c,e,r){r.negative=e.negative^c.negative,r.length=c.length+e.length;for(var n=0,a=0,u=0;u<r.length-1;u++){var d=a;a=0;for(var w=n&67108863,f=Math.min(u,e.length-1),t=Math.max(0,u-c.length+1);t<=f;t++){var h=u-t,H=c.words[h]|0,j=e.words[t]|0,U=H*j,ee=U&67108863;d=d+(U/67108864|0)|0,ee=ee+w|0,w=ee&67108863,d=d+(ee>>>26)|0,a+=d>>>26,d&=67108863}r.words[u]=w,n=d,d=a}return n!==0?r.words[u]=n:r.length--,r.strip()}function F(c,e,r){var n=new C;return n.mulp(c,e,r)}i.prototype.mulTo=function(e,r){var n,a=this.length+e.length;return this.length===10&&e.length===10?n=E(this,e,r):a<63?n=_(this,e,r):a<1024?n=B(this,e,r):n=F(this,e,r),n};function C(c,e){this.x=c,this.y=e}C.prototype.makeRBT=function(e){for(var r=new Array(e),n=i.prototype._countBits(e)-1,a=0;a<e;a++)r[a]=this.revBin(a,n,e);return r},C.prototype.revBin=function(e,r,n){if(e===0||e===n-1)return e;for(var a=0,u=0;u<r;u++)a|=(e&1)<<r-u-1,e>>=1;return a},C.prototype.permute=function(e,r,n,a,u,d){for(var w=0;w<d;w++)a[w]=r[e[w]],u[w]=n[e[w]]},C.prototype.transform=function(e,r,n,a,u,d){this.permute(d,e,r,n,a,u);for(var w=1;w<u;w<<=1)for(var f=w<<1,t=Math.cos(2*Math.PI/f),h=Math.sin(2*Math.PI/f),H=0;H<u;H+=f)for(var j=t,U=h,ee=0;ee<w;ee++){var J=n[H+ee],N=a[H+ee],z=n[H+ee+w],Z=a[H+ee+w],k=j*z-U*Z;Z=j*Z+U*z,z=k,n[H+ee]=J+z,a[H+ee]=N+Z,n[H+ee+w]=J-z,a[H+ee+w]=N-Z,ee!==f&&(k=t*j-h*U,U=t*U+h*j,j=k)}},C.prototype.guessLen13b=function(e,r){var n=Math.max(r,e)|1,a=n&1,u=0;for(n=n/2|0;n;n=n>>>1)u++;return 1<<u+1+a},C.prototype.conjugate=function(e,r,n){if(!(n<=1))for(var a=0;a<n/2;a++){var u=e[a];e[a]=e[n-a-1],e[n-a-1]=u,u=r[a],r[a]=-r[n-a-1],r[n-a-1]=-u}},C.prototype.normalize13b=function(e,r){for(var n=0,a=0;a<r/2;a++){var u=Math.round(e[2*a+1]/r)*8192+Math.round(e[2*a]/r)+n;e[a]=u&67108863,u<67108864?n=0:n=u/67108864|0}return e},C.prototype.convert13b=function(e,r,n,a){for(var u=0,d=0;d<r;d++)u=u+(e[d]|0),n[2*d]=u&8191,u=u>>>13,n[2*d+1]=u&8191,u=u>>>13;for(d=2*r;d<a;++d)n[d]=0;s(u===0),s((u&-8192)===0)},C.prototype.stub=function(e){for(var r=new Array(e),n=0;n<e;n++)r[n]=0;return r},C.prototype.mulp=function(e,r,n){var a=2*this.guessLen13b(e.length,r.length),u=this.makeRBT(a),d=this.stub(a),w=new Array(a),f=new Array(a),t=new Array(a),h=new Array(a),H=new Array(a),j=new Array(a),U=n.words;U.length=a,this.convert13b(e.words,e.length,w,a),this.convert13b(r.words,r.length,h,a),this.transform(w,d,f,t,a,u),this.transform(h,d,H,j,a,u);for(var ee=0;ee<a;ee++){var J=f[ee]*H[ee]-t[ee]*j[ee];t[ee]=f[ee]*j[ee]+t[ee]*H[ee],f[ee]=J}return this.conjugate(f,t,a),this.transform(f,t,U,d,a,u),this.conjugate(U,d,a),this.normalize13b(U,a),n.negative=e.negative^r.negative,n.length=e.length+r.length,n.strip()},i.prototype.mul=function(e){var r=new i(null);return r.words=new Array(this.length+e.length),this.mulTo(e,r)},i.prototype.mulf=function(e){var r=new i(null);return r.words=new Array(this.length+e.length),F(this,e,r)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){s(typeof e=="number"),s(e<67108864);for(var r=0,n=0;n<this.length;n++){var a=(this.words[n]|0)*e,u=(a&67108863)+(r&67108863);r>>=26,r+=a/67108864|0,r+=u>>>26,this.words[n]=u&67108863}return r!==0&&(this.words[n]=r,this.length++),this.length=e===0?1:this.length,this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var r=M(e);if(r.length===0)return new i(1);for(var n=this,a=0;a<r.length&&r[a]===0;a++,n=n.sqr());if(++a<r.length)for(var u=n.sqr();a<r.length;a++,u=u.sqr())r[a]!==0&&(n=n.mul(u));return n},i.prototype.iushln=function(e){s(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26,a=67108863>>>26-r<<26-r,u;if(r!==0){var d=0;for(u=0;u<this.length;u++){var w=this.words[u]&a,f=(this.words[u]|0)-w<<r;this.words[u]=f|d,d=w>>>26-r}d&&(this.words[u]=d,this.length++)}if(n!==0){for(u=this.length-1;u>=0;u--)this.words[u+n]=this.words[u];for(u=0;u<n;u++)this.words[u]=0;this.length+=n}return this.strip()},i.prototype.ishln=function(e){return s(this.negative===0),this.iushln(e)},i.prototype.iushrn=function(e,r,n){s(typeof e=="number"&&e>=0);var a;r?a=(r-r%26)/26:a=0;var u=e%26,d=Math.min((e-u)/26,this.length),w=67108863^67108863>>>u<<u,f=n;if(a-=d,a=Math.max(0,a),f){for(var t=0;t<d;t++)f.words[t]=this.words[t];f.length=d}if(d!==0)if(this.length>d)for(this.length-=d,t=0;t<this.length;t++)this.words[t]=this.words[t+d];else this.words[0]=0,this.length=1;var h=0;for(t=this.length-1;t>=0&&(h!==0||t>=a);t--){var H=this.words[t]|0;this.words[t]=h<<26-u|H>>>u,h=H&w}return f&&h!==0&&(f.words[f.length++]=h),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,r,n){return s(this.negative===0),this.iushrn(e,r,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){s(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26,a=1<<r;if(this.length<=n)return!1;var u=this.words[n];return!!(u&a)},i.prototype.imaskn=function(e){s(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26;if(s(this.negative===0,"imaskn works only with positive numbers"),this.length<=n)return this;if(r!==0&&n++,this.length=Math.min(n,this.length),r!==0){var a=67108863^67108863>>>r<<r;this.words[this.length-1]&=a}return this.strip()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return s(typeof e=="number"),s(e<67108864),e<0?this.isubn(-e):this.negative!==0?this.length===1&&(this.words[0]|0)<e?(this.words[0]=e-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},i.prototype._iaddn=function(e){this.words[0]+=e;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},i.prototype.isubn=function(e){if(s(typeof e=="number"),s(e<67108864),e<0)return this.iaddn(-e);if(this.negative!==0)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this.strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,r,n){var a=e.length+n,u;this._expand(a);var d,w=0;for(u=0;u<e.length;u++){d=(this.words[u+n]|0)+w;var f=(e.words[u]|0)*r;d-=f&67108863,w=(d>>26)-(f/67108864|0),this.words[u+n]=d&67108863}for(;u<this.length-n;u++)d=(this.words[u+n]|0)+w,w=d>>26,this.words[u+n]=d&67108863;if(w===0)return this.strip();for(s(w===-1),w=0,u=0;u<this.length;u++)d=-(this.words[u]|0)+w,w=d>>26,this.words[u]=d&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,r){var n=this.length-e.length,a=this.clone(),u=e,d=u.words[u.length-1]|0,w=this._countBits(d);n=26-w,n!==0&&(u=u.ushln(n),a.iushln(n),d=u.words[u.length-1]|0);var f=a.length-u.length,t;if(r!=="mod"){t=new i(null),t.length=f+1,t.words=new Array(t.length);for(var h=0;h<t.length;h++)t.words[h]=0}var H=a.clone()._ishlnsubmul(u,1,f);H.negative===0&&(a=H,t&&(t.words[f]=1));for(var j=f-1;j>=0;j--){var U=(a.words[u.length+j]|0)*67108864+(a.words[u.length+j-1]|0);for(U=Math.min(U/d|0,67108863),a._ishlnsubmul(u,U,j);a.negative!==0;)U--,a.negative=0,a._ishlnsubmul(u,1,j),a.isZero()||(a.negative^=1);t&&(t.words[j]=U)}return t&&t.strip(),a.strip(),r!=="div"&&n!==0&&a.iushrn(n),{div:t||null,mod:a}},i.prototype.divmod=function(e,r,n){if(s(!e.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var a,u,d;return this.negative!==0&&e.negative===0?(d=this.neg().divmod(e,r),r!=="mod"&&(a=d.div.neg()),r!=="div"&&(u=d.mod.neg(),n&&u.negative!==0&&u.iadd(e)),{div:a,mod:u}):this.negative===0&&e.negative!==0?(d=this.divmod(e.neg(),r),r!=="mod"&&(a=d.div.neg()),{div:a,mod:d.mod}):(this.negative&e.negative)!==0?(d=this.neg().divmod(e.neg(),r),r!=="div"&&(u=d.mod.neg(),n&&u.negative!==0&&u.isub(e)),{div:d.div,mod:u}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:e.length===1?r==="div"?{div:this.divn(e.words[0]),mod:null}:r==="mod"?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,r)},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var r=this.divmod(e);if(r.mod.isZero())return r.div;var n=r.div.negative!==0?r.mod.isub(e):r.mod,a=e.ushrn(1),u=e.andln(1),d=n.cmp(a);return d<0||u===1&&d===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},i.prototype.modn=function(e){s(e<=67108863);for(var r=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(r*n+(this.words[a]|0))%e;return n},i.prototype.idivn=function(e){s(e<=67108863);for(var r=0,n=this.length-1;n>=0;n--){var a=(this.words[n]|0)+r*67108864;this.words[n]=a/e|0,r=a%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){s(e.negative===0),s(!e.isZero());var r=this,n=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var a=new i(1),u=new i(0),d=new i(0),w=new i(1),f=0;r.isEven()&&n.isEven();)r.iushrn(1),n.iushrn(1),++f;for(var t=n.clone(),h=r.clone();!r.isZero();){for(var H=0,j=1;(r.words[0]&j)===0&&H<26;++H,j<<=1);if(H>0)for(r.iushrn(H);H-- >0;)(a.isOdd()||u.isOdd())&&(a.iadd(t),u.isub(h)),a.iushrn(1),u.iushrn(1);for(var U=0,ee=1;(n.words[0]&ee)===0&&U<26;++U,ee<<=1);if(U>0)for(n.iushrn(U);U-- >0;)(d.isOdd()||w.isOdd())&&(d.iadd(t),w.isub(h)),d.iushrn(1),w.iushrn(1);r.cmp(n)>=0?(r.isub(n),a.isub(d),u.isub(w)):(n.isub(r),d.isub(a),w.isub(u))}return{a:d,b:w,gcd:n.iushln(f)}},i.prototype._invmp=function(e){s(e.negative===0),s(!e.isZero());var r=this,n=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var a=new i(1),u=new i(0),d=n.clone();r.cmpn(1)>0&&n.cmpn(1)>0;){for(var w=0,f=1;(r.words[0]&f)===0&&w<26;++w,f<<=1);if(w>0)for(r.iushrn(w);w-- >0;)a.isOdd()&&a.iadd(d),a.iushrn(1);for(var t=0,h=1;(n.words[0]&h)===0&&t<26;++t,h<<=1);if(t>0)for(n.iushrn(t);t-- >0;)u.isOdd()&&u.iadd(d),u.iushrn(1);r.cmp(n)>=0?(r.isub(n),a.isub(u)):(n.isub(r),u.isub(a))}var H;return r.cmpn(1)===0?H=a:H=u,H.cmpn(0)<0&&H.iadd(e),H},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var r=this.clone(),n=e.clone();r.negative=0,n.negative=0;for(var a=0;r.isEven()&&n.isEven();a++)r.iushrn(1),n.iushrn(1);do{for(;r.isEven();)r.iushrn(1);for(;n.isEven();)n.iushrn(1);var u=r.cmp(n);if(u<0){var d=r;r=n,n=d}else if(u===0||n.cmpn(1)===0)break;r.isub(n)}while(!0);return n.iushln(a)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){s(typeof e=="number");var r=e%26,n=(e-r)/26,a=1<<r;if(this.length<=n)return this._expand(n+1),this.words[n]|=a,this;for(var u=a,d=n;u!==0&&d<this.length;d++){var w=this.words[d]|0;w+=u,u=w>>>26,w&=67108863,this.words[d]=w}return u!==0&&(this.words[d]=u,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(e){var r=e<0;if(this.negative!==0&&!r)return-1;if(this.negative===0&&r)return 1;this.strip();var n;if(this.length>1)n=1;else{r&&(e=-e),s(e<=67108863,"Number is too big");var a=this.words[0]|0;n=a===e?0:a<e?-1:1}return this.negative!==0?-n|0:n},i.prototype.cmp=function(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var r=this.ucmp(e);return this.negative!==0?-r|0:r},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var r=0,n=this.length-1;n>=0;n--){var a=this.words[n]|0,u=e.words[n]|0;if(a!==u){a<u?r=-1:a>u&&(r=1);break}}return r},i.prototype.gtn=function(e){return this.cmpn(e)===1},i.prototype.gt=function(e){return this.cmp(e)===1},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return this.cmpn(e)===-1},i.prototype.lt=function(e){return this.cmp(e)===-1},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return this.cmpn(e)===0},i.prototype.eq=function(e){return this.cmp(e)===0},i.red=function(e){return new L(e)},i.prototype.toRed=function(e){return s(!this.red,"Already a number in reduction context"),s(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return s(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return s(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return s(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return s(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return s(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return s(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return s(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return s(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return s(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return s(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return s(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return s(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return s(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var R={k256:null,p224:null,p192:null,p25519:null};function D(c,e){this.name=c,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}D.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},D.prototype.ireduce=function(e){var r=e,n;do this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),n=r.bitLength();while(n>this.n);var a=n<this.n?-1:r.ucmp(this.p);return a===0?(r.words[0]=0,r.length=1):a>0?r.isub(this.p):r.strip!==void 0?r.strip():r._strip(),r},D.prototype.split=function(e,r){e.iushrn(this.n,0,r)},D.prototype.imulK=function(e){return e.imul(this.k)};function q(){D.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}A(q,D),q.prototype.split=function(e,r){for(var n=4194303,a=Math.min(e.length,9),u=0;u<a;u++)r.words[u]=e.words[u];if(r.length=a,e.length<=9){e.words[0]=0,e.length=1;return}var d=e.words[9];for(r.words[r.length++]=d&n,u=10;u<e.length;u++){var w=e.words[u]|0;e.words[u-10]=(w&n)<<4|d>>>22,d=w}d>>>=22,e.words[u-10]=d,d===0&&e.length>10?e.length-=10:e.length-=9},q.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var r=0,n=0;n<e.length;n++){var a=e.words[n]|0;r+=a*977,e.words[n]=r&67108863,r=a*64+(r/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e};function O(){D.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}A(O,D);function Y(){D.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}A(Y,D);function Q(){D.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}A(Q,D),Q.prototype.imulK=function(e){for(var r=0,n=0;n<e.length;n++){var a=(e.words[n]|0)*19+r,u=a&67108863;a>>>=26,e.words[n]=u,r=a}return r!==0&&(e.words[e.length++]=r),e},i._prime=function(e){if(R[e])return R[e];var r;if(e==="k256")r=new q;else if(e==="p224")r=new O;else if(e==="p192")r=new Y;else if(e==="p25519")r=new Q;else throw new Error("Unknown prime "+e);return R[e]=r,r};function L(c){if(typeof c=="string"){var e=i._prime(c);this.m=e.p,this.prime=e}else s(c.gtn(1),"modulus must be greater than 1"),this.m=c,this.prime=null}L.prototype._verify1=function(e){s(e.negative===0,"red works only with positives"),s(e.red,"red works only with red numbers")},L.prototype._verify2=function(e,r){s((e.negative|r.negative)===0,"red works only with positives"),s(e.red&&e.red===r.red,"red works only with red numbers")},L.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},L.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},L.prototype.add=function(e,r){this._verify2(e,r);var n=e.add(r);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},L.prototype.iadd=function(e,r){this._verify2(e,r);var n=e.iadd(r);return n.cmp(this.m)>=0&&n.isub(this.m),n},L.prototype.sub=function(e,r){this._verify2(e,r);var n=e.sub(r);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},L.prototype.isub=function(e,r){this._verify2(e,r);var n=e.isub(r);return n.cmpn(0)<0&&n.iadd(this.m),n},L.prototype.shl=function(e,r){return this._verify1(e),this.imod(e.ushln(r))},L.prototype.imul=function(e,r){return this._verify2(e,r),this.imod(e.imul(r))},L.prototype.mul=function(e,r){return this._verify2(e,r),this.imod(e.mul(r))},L.prototype.isqr=function(e){return this.imul(e,e.clone())},L.prototype.sqr=function(e){return this.mul(e,e)},L.prototype.sqrt=function(e){if(e.isZero())return e.clone();var r=this.m.andln(3);if(s(r%2===1),r===3){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),u=0;!a.isZero()&&a.andln(1)===0;)u++,a.iushrn(1);s(!a.isZero());var d=new i(1).toRed(this),w=d.redNeg(),f=this.m.subn(1).iushrn(1),t=this.m.bitLength();for(t=new i(2*t*t).toRed(this);this.pow(t,f).cmp(w)!==0;)t.redIAdd(w);for(var h=this.pow(t,a),H=this.pow(e,a.addn(1).iushrn(1)),j=this.pow(e,a),U=u;j.cmp(d)!==0;){for(var ee=j,J=0;ee.cmp(d)!==0;J++)ee=ee.redSqr();s(J<U);var N=this.pow(h,new i(1).iushln(U-J-1));H=H.redMul(N),h=N.redSqr(),j=j.redMul(h),U=J}return H},L.prototype.invm=function(e){var r=e._invmp(this.m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},L.prototype.pow=function(e,r){if(r.isZero())return new i(1).toRed(this);if(r.cmpn(1)===0)return e.clone();var n=4,a=new Array(1<<n);a[0]=new i(1).toRed(this),a[1]=e;for(var u=2;u<a.length;u++)a[u]=this.mul(a[u-1],e);var d=a[0],w=0,f=0,t=r.bitLength()%26;for(t===0&&(t=26),u=r.length-1;u>=0;u--){for(var h=r.words[u],H=t-1;H>=0;H--){var j=h>>H&1;if(d!==a[0]&&(d=this.sqr(d)),j===0&&w===0){f=0;continue}w<<=1,w|=j,f++,!(f!==n&&(u!==0||H!==0))&&(d=this.mul(d,a[w]),f=0,w=0)}t=26}return d},L.prototype.convertTo=function(e){var r=e.umod(this.m);return r===e?r.clone():r},L.prototype.convertFrom=function(e){var r=e.clone();return r.red=null,r},i.mont=function(e){return new X(e)};function X(c){L.call(this,c),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}A(X,L),X.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},X.prototype.convertFrom=function(e){var r=this.imod(e.mul(this.rinv));return r.red=null,r},X.prototype.imul=function(e,r){if(e.isZero()||r.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(r),a=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=n.isub(a).iushrn(this.shift),d=u;return u.cmp(this.m)>=0?d=u.isub(this.m):u.cmpn(0)<0&&(d=u.iadd(this.m)),d._forceRed(this)},X.prototype.mul=function(e,r){if(e.isZero()||r.isZero())return new i(0)._forceRed(this);var n=e.mul(r),a=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=n.isub(a).iushrn(this.shift),d=u;return u.cmp(this.m)>=0?d=u.isub(this.m):u.cmpn(0)<0&&(d=u.iadd(this.m)),d._forceRed(this)},X.prototype.invm=function(e){var r=this.imod(e._invmp(this.m).mul(this.r2));return r._forceRed(this)}})(m,h2)})(_i)),_i.exports}var k0={},Cu;function c2(){return Cu||(Cu=1,(function(m){var g=Hr(),S=dt(),s=m;s.define=function(l,b){return new A(l,b)};function A(i,l){this.name=i,this.body=l,this.decoders={},this.encoders={}}A.prototype._createNamed=function(l){var b;try{b=Er.runInThisContext("(function "+this.name+`(entity) {
|
|
3
3
|
this._initNamed(entity);
|
|
4
4
|
})`)}catch{b=function(o){this._initNamed(o)}}return S(b,l),b.prototype._initNamed=function(o){l.call(this,o)},new b(this)},A.prototype._getDecoder=function(l){return l=l||"der",this.decoders.hasOwnProperty(l)||(this.decoders[l]=this._createNamed(g.decoders[l])),this.decoders[l]},A.prototype.decode=function(l,b,p){return this._getDecoder(b).decode(l,p)},A.prototype._getEncoder=function(l){return l=l||"der",this.encoders.hasOwnProperty(l)||(this.encoders[l]=this._createNamed(g.encoders[l])),this.encoders[l]},A.prototype.encode=function(l,b,p){return this._getEncoder(b).encode(l,p)}})(k0)),k0}var P0={},N0={},Du;function l2(){if(Du)return N0;Du=1;var m=dt();function g(s){this._reporterState={obj:null,path:[],options:s||{},errors:[]}}N0.Reporter=g,g.prototype.isError=function(A){return A instanceof S},g.prototype.save=function(){var A=this._reporterState;return{obj:A.obj,pathLen:A.path.length}},g.prototype.restore=function(A){var i=this._reporterState;i.obj=A.obj,i.path=i.path.slice(0,A.pathLen)},g.prototype.enterKey=function(A){return this._reporterState.path.push(A)},g.prototype.exitKey=function(A){var i=this._reporterState;i.path=i.path.slice(0,A-1)},g.prototype.leaveKey=function(A,i,l){var b=this._reporterState;this.exitKey(A),b.obj!==null&&(b.obj[i]=l)},g.prototype.path=function(){return this._reporterState.path.join("/")},g.prototype.enterObject=function(){var A=this._reporterState,i=A.obj;return A.obj={},i},g.prototype.leaveObject=function(A){var i=this._reporterState,l=i.obj;return i.obj=A,l},g.prototype.error=function(A){var i,l=this._reporterState,b=A instanceof S;if(b?i=A:i=new S(l.path.map(function(p){return"["+JSON.stringify(p)+"]"}).join(""),A.message||A,A.stack),!l.options.partial)throw i;return b||l.errors.push(i),i},g.prototype.wrapResult=function(A){var i=this._reporterState;return i.options.partial?{result:this.isError(A)?null:A,errors:i.errors}:A};function S(s,A){this.path=s,this.rethrow(A)}return m(S,Error),S.prototype.rethrow=function(A){if(this.message=A+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,S),!this.stack)try{throw new Error(this.message)}catch(i){this.stack=i.stack}return this},N0}var vi={},Ru;function Tu(){if(Ru)return vi;Ru=1;var m=dt(),g=Ir().Reporter,S=Qe.requireDist().Buffer;function s(i,l){if(g.call(this,l),!S.isBuffer(i)){this.error("Input not Buffer");return}this.base=i,this.offset=0,this.length=i.length}m(s,g),vi.DecoderBuffer=s,s.prototype.save=function(){return{offset:this.offset,reporter:g.prototype.save.call(this)}},s.prototype.restore=function(l){var b=new s(this.base);return b.offset=l.offset,b.length=this.offset,this.offset=l.offset,g.prototype.restore.call(this,l.reporter),b},s.prototype.isEmpty=function(){return this.offset===this.length},s.prototype.readUInt8=function(l){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(l||"DecoderBuffer overrun")},s.prototype.skip=function(l,b){if(!(this.offset+l<=this.length))return this.error(b||"DecoderBuffer overrun");var p=new s(this.base);return p._reporterState=this._reporterState,p.offset=this.offset,p.length=this.offset+l,this.offset+=l,p},s.prototype.raw=function(l){return this.base.slice(l?l.offset:this.offset,this.length)};function A(i,l){if(Array.isArray(i))this.length=0,this.value=i.map(function(b){return b instanceof A||(b=new A(b,l)),this.length+=b.length,b},this);else if(typeof i=="number"){if(!(0<=i&&i<=255))return l.error("non-byte EncoderBuffer value");this.value=i,this.length=1}else if(typeof i=="string")this.value=i,this.length=S.byteLength(i);else if(S.isBuffer(i))this.value=i,this.length=i.length;else return l.error("Unsupported type: "+typeof i)}return vi.EncoderBuffer=A,A.prototype.join=function(l,b){return l||(l=new S(this.length)),b||(b=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(p){p.join(l,b),b+=p.length}):(typeof this.value=="number"?l[b]=this.value:typeof this.value=="string"?l.write(this.value,b):S.isBuffer(this.value)&&this.value.copy(l,b),b+=this.length)),l},vi}var O0,Iu;function d2(){if(Iu)return O0;Iu=1;var m=Ir().Reporter,g=Ir().EncoderBuffer,S=Ir().DecoderBuffer,s=Xt(),A=["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"],i=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(A),l=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function b(o,v){var y={};this._baseState=y,y.enc=o,y.parent=v||null,y.children=null,y.tag=null,y.args=null,y.reverseArgs=null,y.choice=null,y.optional=!1,y.any=!1,y.obj=!1,y.use=null,y.useDecoder=null,y.key=null,y.default=null,y.explicit=null,y.implicit=null,y.contains=null,y.parent||(y.children=[],this._wrap())}O0=b;var p=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];return b.prototype.clone=function(){var v=this._baseState,y={};p.forEach(function(M){y[M]=v[M]});var x=new this.constructor(y.parent);return x._baseState=y,x},b.prototype._wrap=function(){var v=this._baseState;i.forEach(function(y){this[y]=function(){var M=new this.constructor(this);return v.children.push(M),M[y].apply(M,arguments)}},this)},b.prototype._init=function(v){var y=this._baseState;s(y.parent===null),v.call(this),y.children=y.children.filter(function(x){return x._baseState.parent===this},this),s.equal(y.children.length,1,"Root node can have only one child")},b.prototype._useArgs=function(v){var y=this._baseState,x=v.filter(function(M){return M instanceof this.constructor},this);v=v.filter(function(M){return!(M instanceof this.constructor)},this),x.length!==0&&(s(y.children===null),y.children=x,x.forEach(function(M){M._baseState.parent=this},this)),v.length!==0&&(s(y.args===null),y.args=v,y.reverseArgs=v.map(function(M){if(typeof M!="object"||M.constructor!==Object)return M;var _={};return Object.keys(M).forEach(function(E){E==(E|0)&&(E|=0);var B=M[E];_[B]=E}),_}))},l.forEach(function(o){b.prototype[o]=function(){var y=this._baseState;throw new Error(o+" not implemented for encoding: "+y.enc)}}),A.forEach(function(o){b.prototype[o]=function(){var y=this._baseState,x=Array.prototype.slice.call(arguments);return s(y.tag===null),y.tag=o,this._useArgs(x),this}}),b.prototype.use=function(v){s(v);var y=this._baseState;return s(y.use===null),y.use=v,this},b.prototype.optional=function(){var v=this._baseState;return v.optional=!0,this},b.prototype.def=function(v){var y=this._baseState;return s(y.default===null),y.default=v,y.optional=!0,this},b.prototype.explicit=function(v){var y=this._baseState;return s(y.explicit===null&&y.implicit===null),y.explicit=v,this},b.prototype.implicit=function(v){var y=this._baseState;return s(y.explicit===null&&y.implicit===null),y.implicit=v,this},b.prototype.obj=function(){var v=this._baseState,y=Array.prototype.slice.call(arguments);return v.obj=!0,y.length!==0&&this._useArgs(y),this},b.prototype.key=function(v){var y=this._baseState;return s(y.key===null),y.key=v,this},b.prototype.any=function(){var v=this._baseState;return v.any=!0,this},b.prototype.choice=function(v){var y=this._baseState;return s(y.choice===null),y.choice=v,this._useArgs(Object.keys(v).map(function(x){return v[x]})),this},b.prototype.contains=function(v){var y=this._baseState;return s(y.use===null),y.contains=v,this},b.prototype._decode=function(v,y){var x=this._baseState;if(x.parent===null)return v.wrapResult(x.children[0]._decode(v,y));var M=x.default,_=!0,E=null;if(x.key!==null&&(E=v.enterKey(x.key)),x.optional){var B=null;if(x.explicit!==null?B=x.explicit:x.implicit!==null?B=x.implicit:x.tag!==null&&(B=x.tag),B===null&&!x.any){var F=v.save();try{x.choice===null?this._decodeGeneric(x.tag,v,y):this._decodeChoice(v,y),_=!0}catch{_=!1}v.restore(F)}else if(_=this._peekTag(v,B,x.any),v.isError(_))return _}var C;if(x.obj&&_&&(C=v.enterObject()),_){if(x.explicit!==null){var R=this._decodeTag(v,x.explicit);if(v.isError(R))return R;v=R}var D=v.offset;if(x.use===null&&x.choice===null){if(x.any)var F=v.save();var q=this._decodeTag(v,x.implicit!==null?x.implicit:x.tag,x.any);if(v.isError(q))return q;x.any?M=v.raw(F):v=q}if(y&&y.track&&x.tag!==null&&y.track(v.path(),D,v.length,"tagged"),y&&y.track&&x.tag!==null&&y.track(v.path(),v.offset,v.length,"content"),x.any?M=M:x.choice===null?M=this._decodeGeneric(x.tag,v,y):M=this._decodeChoice(v,y),v.isError(M))return M;if(!x.any&&x.choice===null&&x.children!==null&&x.children.forEach(function(Q){Q._decode(v,y)}),x.contains&&(x.tag==="octstr"||x.tag==="bitstr")){var O=new S(M);M=this._getUse(x.contains,v._reporterState.obj)._decode(O,y)}}return x.obj&&_&&(M=v.leaveObject(C)),x.key!==null&&(M!==null||_===!0)?v.leaveKey(E,x.key,M):E!==null&&v.exitKey(E),M},b.prototype._decodeGeneric=function(v,y,x){var M=this._baseState;return v==="seq"||v==="set"?null:v==="seqof"||v==="setof"?this._decodeList(y,v,M.args[0],x):/str$/.test(v)?this._decodeStr(y,v,x):v==="objid"&&M.args?this._decodeObjid(y,M.args[0],M.args[1],x):v==="objid"?this._decodeObjid(y,null,null,x):v==="gentime"||v==="utctime"?this._decodeTime(y,v,x):v==="null_"?this._decodeNull(y,x):v==="bool"?this._decodeBool(y,x):v==="objDesc"?this._decodeStr(y,v,x):v==="int"||v==="enum"?this._decodeInt(y,M.args&&M.args[0],x):M.use!==null?this._getUse(M.use,y._reporterState.obj)._decode(y,x):y.error("unknown tag: "+v)},b.prototype._getUse=function(v,y){var x=this._baseState;return x.useDecoder=this._use(v,y),s(x.useDecoder._baseState.parent===null),x.useDecoder=x.useDecoder._baseState.children[0],x.implicit!==x.useDecoder._baseState.implicit&&(x.useDecoder=x.useDecoder.clone(),x.useDecoder._baseState.implicit=x.implicit),x.useDecoder},b.prototype._decodeChoice=function(v,y){var x=this._baseState,M=null,_=!1;return Object.keys(x.choice).some(function(E){var B=v.save(),F=x.choice[E];try{var C=F._decode(v,y);if(v.isError(C))return!1;M={type:E,value:C},_=!0}catch{return v.restore(B),!1}return!0},this),_?M:v.error("Choice not matched")},b.prototype._createEncoderBuffer=function(v){return new g(v,this.reporter)},b.prototype._encode=function(v,y,x){var M=this._baseState;if(!(M.default!==null&&M.default===v)){var _=this._encodeValue(v,y,x);if(_!==void 0&&!this._skipDefault(_,y,x))return _}},b.prototype._encodeValue=function(v,y,x){var M=this._baseState;if(M.parent===null)return M.children[0]._encode(v,y||new m);var F=null;if(this.reporter=y,M.optional&&v===void 0)if(M.default!==null)v=M.default;else return;var _=null,E=!1;if(M.any)F=this._createEncoderBuffer(v);else if(M.choice)F=this._encodeChoice(v,y);else if(M.contains)_=this._getUse(M.contains,x)._encode(v,y),E=!0;else if(M.children)_=M.children.map(function(D){if(D._baseState.tag==="null_")return D._encode(null,y,v);if(D._baseState.key===null)return y.error("Child should have a key");var q=y.enterKey(D._baseState.key);if(typeof v!="object")return y.error("Child expected, but input is not object");var O=D._encode(v[D._baseState.key],y,v);return y.leaveKey(q),O},this).filter(function(D){return D}),_=this._createEncoderBuffer(_);else if(M.tag==="seqof"||M.tag==="setof"){if(!(M.args&&M.args.length===1))return y.error("Too many args for : "+M.tag);if(!Array.isArray(v))return y.error("seqof/setof, but data is not Array");var B=this.clone();B._baseState.implicit=null,_=this._createEncoderBuffer(v.map(function(D){var q=this._baseState;return this._getUse(q.args[0],v)._encode(D,y)},B))}else M.use!==null?F=this._getUse(M.use,x)._encode(v,y):(_=this._encodePrimitive(M.tag,v),E=!0);var F;if(!M.any&&M.choice===null){var C=M.implicit!==null?M.implicit:M.tag,R=M.implicit===null?"universal":"context";C===null?M.use===null&&y.error("Tag could be omitted only for .use()"):M.use===null&&(F=this._encodeComposite(C,E,R,_))}return M.explicit!==null&&(F=this._encodeComposite(M.explicit,!1,"context",F)),F},b.prototype._encodeChoice=function(v,y){var x=this._baseState,M=x.choice[v.type];return M||s(!1,v.type+" not found in "+JSON.stringify(Object.keys(x.choice))),M._encode(v.value,y)},b.prototype._encodePrimitive=function(v,y){var x=this._baseState;if(/str$/.test(v))return this._encodeStr(y,v);if(v==="objid"&&x.args)return this._encodeObjid(y,x.reverseArgs[0],x.args[1]);if(v==="objid")return this._encodeObjid(y,null,null);if(v==="gentime"||v==="utctime")return this._encodeTime(y,v);if(v==="null_")return this._encodeNull();if(v==="int"||v==="enum")return this._encodeInt(y,x.args&&x.reverseArgs[0]);if(v==="bool")return this._encodeBool(y);if(v==="objDesc")return this._encodeStr(y,v);throw new Error("Unsupported tag: "+v)},b.prototype._isNumstr=function(v){return/^[0-9 ]*$/.test(v)},b.prototype._isPrintstr=function(v){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(v)},O0}var ku;function Ir(){return ku||(ku=1,(function(m){var g=m;g.Reporter=l2().Reporter,g.DecoderBuffer=Tu().DecoderBuffer,g.EncoderBuffer=Tu().EncoderBuffer,g.Node=d2()})(P0)),P0}var q0={},U0={},Pu;function p2(){return Pu||(Pu=1,(function(m){var g=$l();m.tagClass={0:"universal",1:"application",2:"context",3:"private"},m.tagClassByName=g._reverse(m.tagClass),m.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"},m.tagByName=g._reverse(m.tag)})(U0)),U0}var Nu;function $l(){return Nu||(Nu=1,(function(m){var g=m;g._reverse=function(s){var A={};return Object.keys(s).forEach(function(i){(i|0)==i&&(i=i|0);var l=s[i];A[l]=i}),A},g.der=p2()})(q0)),q0}var L0={},H0,Ou;function jl(){if(Ou)return H0;Ou=1;var m=dt(),g=Hr(),S=g.base,s=g.bignum,A=g.constants.der;function i(o){this.enc="der",this.name=o.name,this.entity=o,this.tree=new l,this.tree._init(o.body)}H0=i,i.prototype.decode=function(v,y){return v instanceof S.DecoderBuffer||(v=new S.DecoderBuffer(v,y)),this.tree._decode(v,y)};function l(o){S.Node.call(this,"der",o)}m(l,S.Node),l.prototype._peekTag=function(v,y,x){if(v.isEmpty())return!1;var M=v.save(),_=b(v,'Failed to peek tag: "'+y+'"');return v.isError(_)?_:(v.restore(M),_.tag===y||_.tagStr===y||_.tagStr+"of"===y||x)},l.prototype._decodeTag=function(v,y,x){var M=b(v,'Failed to decode tag of "'+y+'"');if(v.isError(M))return M;var _=p(v,M.primitive,'Failed to get length of "'+y+'"');if(v.isError(_))return _;if(!x&&M.tag!==y&&M.tagStr!==y&&M.tagStr+"of"!==y)return v.error('Failed to match tag: "'+y+'"');if(M.primitive||_!==null)return v.skip(_,'Failed to match body of: "'+y+'"');var E=v.save(),B=this._skipUntilEnd(v,'Failed to skip indefinite length body: "'+this.tag+'"');return v.isError(B)?B:(_=v.offset-E.offset,v.restore(E),v.skip(_,'Failed to match body of: "'+y+'"'))},l.prototype._skipUntilEnd=function(v,y){for(;;){var x=b(v,y);if(v.isError(x))return x;var M=p(v,x.primitive,y);if(v.isError(M))return M;var _;if(x.primitive||M!==null?_=v.skip(M):_=this._skipUntilEnd(v,y),v.isError(_))return _;if(x.tagStr==="end")break}},l.prototype._decodeList=function(v,y,x,M){for(var _=[];!v.isEmpty();){var E=this._peekTag(v,"end");if(v.isError(E))return E;var B=x.decode(v,"der",M);if(v.isError(B)&&E)break;_.push(B)}return _},l.prototype._decodeStr=function(v,y){if(y==="bitstr"){var x=v.readUInt8();return v.isError(x)?x:{unused:x,data:v.raw()}}else if(y==="bmpstr"){var M=v.raw();if(M.length%2===1)return v.error("Decoding of string type: bmpstr length mismatch");for(var _="",E=0;E<M.length/2;E++)_+=String.fromCharCode(M.readUInt16BE(E*2));return _}else if(y==="numstr"){var B=v.raw().toString("ascii");return this._isNumstr(B)?B:v.error("Decoding of string type: numstr unsupported characters")}else{if(y==="octstr")return v.raw();if(y==="objDesc")return v.raw();if(y==="printstr"){var F=v.raw().toString("ascii");return this._isPrintstr(F)?F:v.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(y)?v.raw().toString():v.error("Decoding of string type: "+y+" unsupported")}},l.prototype._decodeObjid=function(v,y,x){for(var M,_=[],E=0;!v.isEmpty();){var B=v.readUInt8();E<<=7,E|=B&127,(B&128)===0&&(_.push(E),E=0)}B&128&&_.push(E);var F=_[0]/40|0,C=_[0]%40;if(x?M=_:M=[F,C].concat(_.slice(1)),y){var R=y[M.join(" ")];R===void 0&&(R=y[M.join(".")]),R!==void 0&&(M=R)}return M},l.prototype._decodeTime=function(v,y){var x=v.raw().toString();if(y==="gentime")var M=x.slice(0,4)|0,_=x.slice(4,6)|0,E=x.slice(6,8)|0,B=x.slice(8,10)|0,F=x.slice(10,12)|0,C=x.slice(12,14)|0;else if(y==="utctime"){var M=x.slice(0,2)|0,_=x.slice(2,4)|0,E=x.slice(4,6)|0,B=x.slice(6,8)|0,F=x.slice(8,10)|0,C=x.slice(10,12)|0;M<70?M=2e3+M:M=1900+M}else return v.error("Decoding "+y+" time is not supported yet");return Date.UTC(M,_-1,E,B,F,C,0)},l.prototype._decodeNull=function(v){return null},l.prototype._decodeBool=function(v){var y=v.readUInt8();return v.isError(y)?y:y!==0},l.prototype._decodeInt=function(v,y){var x=v.raw(),M=new s(x);return y&&(M=y[M.toString(10)]||M),M},l.prototype._use=function(v,y){return typeof v=="function"&&(v=v(y)),v._getDecoder("der").tree};function b(o,v){var y=o.readUInt8(v);if(o.isError(y))return y;var x=A.tagClass[y>>6],M=(y&32)===0;if((y&31)===31){var _=y;for(y=0;(_&128)===128;){if(_=o.readUInt8(v),o.isError(_))return _;y<<=7,y|=_&127}}else y&=31;var E=A.tag[y];return{cls:x,primitive:M,tag:y,tagStr:E}}function p(o,v,y){var x=o.readUInt8(y);if(o.isError(x))return x;if(!v&&x===128)return null;if((x&128)===0)return x;var M=x&127;if(M>4)return o.error("length octect is too long");x=0;for(var _=0;_<M;_++){x<<=8;var E=o.readUInt8(y);if(o.isError(E))return E;x|=E}return x}return H0}var $0,qu;function v2(){if(qu)return $0;qu=1;var m=dt(),g=Qe.requireDist().Buffer,S=jl();function s(A){S.call(this,A),this.enc="pem"}return m(s,S),$0=s,s.prototype.decode=function(i,l){for(var b=i.toString().split(/[\r\n]+/g),p=l.label.toUpperCase(),o=/^-----(BEGIN|END) ([^-]+)-----$/,v=-1,y=-1,x=0;x<b.length;x++){var M=b[x].match(o);if(M!==null&&M[2]===p)if(v===-1){if(M[1]!=="BEGIN")break;v=x}else{if(M[1]!=="END")break;y=x;break}}if(v===-1||y===-1)throw new Error("PEM section not found for: "+p);var _=b.slice(v+1,y).join("");_.replace(/[^a-z0-9\+\/=]+/gi,"");var E=new g(_,"base64");return S.prototype.decode.call(this,E,l)},$0}var Uu;function b2(){return Uu||(Uu=1,(function(m){var g=m;g.der=jl(),g.pem=v2()})(L0)),L0}var j0={},z0,Lu;function zl(){if(Lu)return z0;Lu=1;var m=dt(),g=Qe.requireDist().Buffer,S=Hr(),s=S.base,A=S.constants.der;function i(o){this.enc="der",this.name=o.name,this.entity=o,this.tree=new l,this.tree._init(o.body)}z0=i,i.prototype.encode=function(v,y){return this.tree._encode(v,y).join()};function l(o){s.Node.call(this,"der",o)}m(l,s.Node),l.prototype._encodeComposite=function(v,y,x,M){var _=p(v,y,x,this.reporter);if(M.length<128){var F=new g(2);return F[0]=_,F[1]=M.length,this._createEncoderBuffer([F,M])}for(var E=1,B=M.length;B>=256;B>>=8)E++;var F=new g(2+E);F[0]=_,F[1]=128|E;for(var B=1+E,C=M.length;C>0;B--,C>>=8)F[B]=C&255;return this._createEncoderBuffer([F,M])},l.prototype._encodeStr=function(v,y){if(y==="bitstr")return this._createEncoderBuffer([v.unused|0,v.data]);if(y==="bmpstr"){for(var x=new g(v.length*2),M=0;M<v.length;M++)x.writeUInt16BE(v.charCodeAt(M),M*2);return this._createEncoderBuffer(x)}else return y==="numstr"?this._isNumstr(v)?this._createEncoderBuffer(v):this.reporter.error("Encoding of string type: numstr supports only digits and space"):y==="printstr"?this._isPrintstr(v)?this._createEncoderBuffer(v):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(y)?this._createEncoderBuffer(v):y==="objDesc"?this._createEncoderBuffer(v):this.reporter.error("Encoding of string type: "+y+" unsupported")},l.prototype._encodeObjid=function(v,y,x){if(typeof v=="string"){if(!y)return this.reporter.error("string objid given, but no values map found");if(!y.hasOwnProperty(v))return this.reporter.error("objid not found in values map");v=y[v].split(/[\s\.]+/g);for(var M=0;M<v.length;M++)v[M]|=0}else if(Array.isArray(v)){v=v.slice();for(var M=0;M<v.length;M++)v[M]|=0}if(!Array.isArray(v))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(v));if(!x){if(v[1]>=40)return this.reporter.error("Second objid identifier OOB");v.splice(0,2,v[0]*40+v[1])}for(var _=0,M=0;M<v.length;M++){var E=v[M];for(_++;E>=128;E>>=7)_++}for(var B=new g(_),F=B.length-1,M=v.length-1;M>=0;M--){var E=v[M];for(B[F--]=E&127;(E>>=7)>0;)B[F--]=128|E&127}return this._createEncoderBuffer(B)};function b(o){return o<10?"0"+o:o}l.prototype._encodeTime=function(v,y){var x,M=new Date(v);return y==="gentime"?x=[b(M.getFullYear()),b(M.getUTCMonth()+1),b(M.getUTCDate()),b(M.getUTCHours()),b(M.getUTCMinutes()),b(M.getUTCSeconds()),"Z"].join(""):y==="utctime"?x=[b(M.getFullYear()%100),b(M.getUTCMonth()+1),b(M.getUTCDate()),b(M.getUTCHours()),b(M.getUTCMinutes()),b(M.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+y+" time is not supported yet"),this._encodeStr(x,"octstr")},l.prototype._encodeNull=function(){return this._createEncoderBuffer("")},l.prototype._encodeInt=function(v,y){if(typeof v=="string"){if(!y)return this.reporter.error("String int or enum given, but no values map");if(!y.hasOwnProperty(v))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(v));v=y[v]}if(typeof v!="number"&&!g.isBuffer(v)){var x=v.toArray();!v.sign&&x[0]&128&&x.unshift(0),v=new g(x)}if(g.isBuffer(v)){var M=v.length;v.length===0&&M++;var E=new g(M);return v.copy(E),v.length===0&&(E[0]=0),this._createEncoderBuffer(E)}if(v<128)return this._createEncoderBuffer(v);if(v<256)return this._createEncoderBuffer([0,v]);for(var M=1,_=v;_>=256;_>>=8)M++;for(var E=new Array(M),_=E.length-1;_>=0;_--)E[_]=v&255,v>>=8;return E[0]&128&&E.unshift(0),this._createEncoderBuffer(new g(E))},l.prototype._encodeBool=function(v){return this._createEncoderBuffer(v?255:0)},l.prototype._use=function(v,y){return typeof v=="function"&&(v=v(y)),v._getEncoder("der").tree},l.prototype._skipDefault=function(v,y,x){var M=this._baseState,_;if(M.default===null)return!1;var E=v.join();if(M.defaultBuffer===void 0&&(M.defaultBuffer=this._encodeValue(M.default,y,x).join()),E.length!==M.defaultBuffer.length)return!1;for(_=0;_<E.length;_++)if(E[_]!==M.defaultBuffer[_])return!1;return!0};function p(o,v,y,x){var M;if(o==="seqof"?o="seq":o==="setof"&&(o="set"),A.tagByName.hasOwnProperty(o))M=A.tagByName[o];else if(typeof o=="number"&&(o|0)===o)M=o;else return x.error("Unknown tag: "+o);return M>=31?x.error("Multi-octet tag encoding unsupported"):(v||(M|=32),M|=A.tagClassByName[y||"universal"]<<6,M)}return z0}var K0,Hu;function m2(){if(Hu)return K0;Hu=1;var m=dt(),g=zl();function S(s){g.call(this,s),this.enc="pem"}return m(S,g),K0=S,S.prototype.encode=function(A,i){for(var l=g.prototype.encode.call(this,A),b=l.toString("base64"),p=["-----BEGIN "+i.label+"-----"],o=0;o<b.length;o+=64)p.push(b.slice(o,o+64));return p.push("-----END "+i.label+"-----"),p.join(`
|
|
@@ -12,4 +12,4 @@ https://github.com/browserify/crypto-browserify`)},xt.constants={DH_CHECK_P_NOT_
|
|
|
12
12
|
`+A+F.join(`,
|
|
13
13
|
`+A)+`
|
|
14
14
|
`+B+"}":"{"+F.join(",")+"}",A=B,_}}typeof S.stringify!="function"&&(S.stringify=function(v,y,x){var M;if(A="",i="",typeof x=="number")for(M=0;M<x;M+=1)i+=" ";else typeof x=="string"&&(i=x);if(b=y,y&&typeof y!="function"&&(typeof y!="object"||typeof y.length!="number"))throw new Error("JSON.stringify");return o("",{"":v})})})()})(ff)),ff.exports}var of,vc;function H2(){if(vc)return of;vc=1;var m=null;const g=/(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])/,S=/(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)/;var s=function(A){var i={strict:!1,storeAsString:!1,alwaysParseAsBig:!1,useNativeBigInt:!1,protoAction:"error",constructorAction:"error"};if(A!=null){if(A.strict===!0&&(i.strict=!0),A.storeAsString===!0&&(i.storeAsString=!0),i.alwaysParseAsBig=A.alwaysParseAsBig===!0?A.alwaysParseAsBig:!1,i.useNativeBigInt=A.useNativeBigInt===!0?A.useNativeBigInt:!1,typeof A.constructorAction<"u")if(A.constructorAction==="error"||A.constructorAction==="ignore"||A.constructorAction==="preserve")i.constructorAction=A.constructorAction;else throw new Error(`Incorrect value for constructorAction option, must be "error", "ignore" or undefined but passed ${A.constructorAction}`);if(typeof A.protoAction<"u")if(A.protoAction==="error"||A.protoAction==="ignore"||A.protoAction==="preserve")i.protoAction=A.protoAction;else throw new Error(`Incorrect value for protoAction option, must be "error", "ignore" or undefined but passed ${A.protoAction}`)}var l,b,p={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
|
15
|
-
`,r:"\r",t:" "},o,v=function(R){throw{name:"SyntaxError",message:R,at:l,text:o}},y=function(R){return R&&R!==b&&v("Expected '"+R+"' instead of '"+b+"'"),b=o.charAt(l),l+=1,b},x=function(){var R,D="";for(b==="-"&&(D="-",y("-"));b>="0"&&b<="9";)D+=b,y();if(b===".")for(D+=".";y()&&b>="0"&&b<="9";)D+=b;if(b==="e"||b==="E")for(D+=b,y(),(b==="-"||b==="+")&&(D+=b,y());b>="0"&&b<="9";)D+=b,y();if(R=+D,!isFinite(R))v("Bad number");else return m==null&&(m=Jl()),D.length>15?i.storeAsString?D:i.useNativeBigInt?BigInt(D):new m(D):i.alwaysParseAsBig?i.useNativeBigInt?BigInt(R):new m(R):R},M=function(){var R,D,q="",O;if(b==='"')for(var Y=l;y();){if(b==='"')return l-1>Y&&(q+=o.substring(Y,l-1)),y(),q;if(b==="\\"){if(l-1>Y&&(q+=o.substring(Y,l-1)),y(),b==="u"){for(O=0,D=0;D<4&&(R=parseInt(y(),16),!!isFinite(R));D+=1)O=O*16+R;q+=String.fromCharCode(O)}else if(typeof p[b]=="string")q+=p[b];else break;Y=l}}v("Bad string")},_=function(){for(;b&&b<=" ";)y()},E=function(){switch(b){case"t":return y("t"),y("r"),y("u"),y("e"),!0;case"f":return y("f"),y("a"),y("l"),y("s"),y("e"),!1;case"n":return y("n"),y("u"),y("l"),y("l"),null}v("Unexpected '"+b+"'")},B,F=function(){var R=[];if(b==="["){if(y("["),_(),b==="]")return y("]"),R;for(;b;){if(R.push(B()),_(),b==="]")return y("]"),R;y(","),_()}}v("Bad array")},C=function(){var R,D=Object.create(null);if(b==="{"){if(y("{"),_(),b==="}")return y("}"),D;for(;b;){if(R=M(),_(),y(":"),i.strict===!0&&Object.hasOwnProperty.call(D,R)&&v('Duplicate key "'+R+'"'),g.test(R)===!0?i.protoAction==="error"?v("Object contains forbidden prototype property"):i.protoAction==="ignore"?B():D[R]=B():S.test(R)===!0?i.constructorAction==="error"?v("Object contains forbidden constructor property"):i.constructorAction==="ignore"?B():D[R]=B():D[R]=B(),_(),b==="}")return y("}"),D;y(","),_()}}v("Bad object")};return B=function(){switch(_(),b){case"{":return C();case"[":return F();case'"':return M();case"-":return x();default:return b>="0"&&b<="9"?x():E()}},function(R,D){var q;return o=R+"",l=0,b=" ",q=B(),_(),b&&v("Syntax error"),typeof D=="function"?(function O(Y,Q){var L,X=Y[Q];return X&&typeof X=="object"&&Object.keys(X).forEach(function(c){L=O(X,c),L!==void 0?X[c]=L:delete X[c]}),D.call(Y,Q,X)})({"":q},""):q}};return of=s,of}var bc;function $2(){if(bc)return Rr.exports;bc=1;var m=L2().stringify,g=H2();return Rr.exports=function(S){return{parse:g(S),stringify:m}},Rr.exports.parse=g(),Rr.exports.stringify=m,Rr.exports}var j2=$2();const z2=Qe.getDefaultExportFromCjs(j2);var mc;(function(m){m.DEFAULT="default",m.SAFE="safe",m.MIXED="mixed",m.BIGINT="bigint"})(mc||(mc={}));z2({useNativeBigInt:!0,strict:!0});function K2(m,g){return m.length!==g.length?!1:Array.from(m).every((S,s)=>S===g[s])}function W2(...m){const g=m.reduce((A,i)=>A+i.length,0),S=new Uint8Array(g);let s=0;for(let A=0;A<m.length;A++)S.set(m[A],s),s+=m[A].length;return S}function Ql(m){return q2.sha512_256.array(m)}const vf=Kf.sign.publicKeyLength;Kf.sign.secretKeyLength;const yc=32;var sf={exports:{}},gc;function G2(){return gc||(gc=1,(function(m){(function(){var g=typeof window=="object"?window:{},S=!g.HI_BASE32_NO_NODE_JS&&typeof xe.process$1=="object"&&xe.process$1.versions&&xe.process$1.versions.node;S&&(g=Qe.commonjsGlobal);var s=!g.HI_BASE32_NO_COMMON_JS&&!0&&m.exports,A="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".split(""),i={A:0,B:1,C:2,D:3,E:4,F:5,G:6,H:7,I:8,J:9,K:10,L:11,M:12,N:13,O:14,P:15,Q:16,R:17,S:18,T:19,U:20,V:21,W:22,X:23,Y:24,Z:25,2:26,3:27,4:28,5:29,6:30,7:31},l=[0,0,0,0,0,0,0,0],b=function(B,F){F.length>10&&(F="..."+F.substr(-10));var C=new Error("Decoded data is not valid UTF-8. Maybe try base32.decode.asBytes()? Partial data after reading "+B+" bytes: "+F+" <-");throw C.position=B,C},p=function(B){for(var F="",C=B.length,R=0,D=0,q,O;R<C;){if(q=B[R++],q<=127){F+=String.fromCharCode(q);continue}else q>191&&q<=223?(O=q&31,D=1):q<=239?(O=q&15,D=2):q<=247?(O=q&7,D=3):b(R,F);for(var Y=0;Y<D;++Y)q=B[R++],(q<128||q>191)&&b(R,F),O<<=6,O+=q&63;O>=55296&&O<=57343&&b(R,F),O>1114111&&b(R,F),O<=65535?F+=String.fromCharCode(O):(O-=65536,F+=String.fromCharCode((O>>10)+55296),F+=String.fromCharCode((O&1023)+56320))}return F},o=function(B){if(B==="")return[];if(!/^[A-Z2-7=]+$/.test(B))throw new Error("Invalid base32 characters");B=B.replace(/=/g,"");for(var F,C,R,D,q,O,Y,Q,L=[],X=0,c=B.length,e=0,r=c>>3<<3;e<r;)F=i[B.charAt(e++)],C=i[B.charAt(e++)],R=i[B.charAt(e++)],D=i[B.charAt(e++)],q=i[B.charAt(e++)],O=i[B.charAt(e++)],Y=i[B.charAt(e++)],Q=i[B.charAt(e++)],L[X++]=(F<<3|C>>>2)&255,L[X++]=(C<<6|R<<1|D>>>4)&255,L[X++]=(D<<4|q>>>1)&255,L[X++]=(q<<7|O<<2|Y>>>3)&255,L[X++]=(Y<<5|Q)&255;var n=c-r;return n===2?(F=i[B.charAt(e++)],C=i[B.charAt(e++)],L[X++]=(F<<3|C>>>2)&255):n===4?(F=i[B.charAt(e++)],C=i[B.charAt(e++)],R=i[B.charAt(e++)],D=i[B.charAt(e++)],L[X++]=(F<<3|C>>>2)&255,L[X++]=(C<<6|R<<1|D>>>4)&255):n===5?(F=i[B.charAt(e++)],C=i[B.charAt(e++)],R=i[B.charAt(e++)],D=i[B.charAt(e++)],q=i[B.charAt(e++)],L[X++]=(F<<3|C>>>2)&255,L[X++]=(C<<6|R<<1|D>>>4)&255,L[X++]=(D<<4|q>>>1)&255):n===7&&(F=i[B.charAt(e++)],C=i[B.charAt(e++)],R=i[B.charAt(e++)],D=i[B.charAt(e++)],q=i[B.charAt(e++)],O=i[B.charAt(e++)],Y=i[B.charAt(e++)],L[X++]=(F<<3|C>>>2)&255,L[X++]=(C<<6|R<<1|D>>>4)&255,L[X++]=(D<<4|q>>>1)&255,L[X++]=(q<<7|O<<2|Y>>>3)&255),L},v=function(B){for(var F,C,R,D,q,O="",Y=B.length,Q=0,L=parseInt(Y/5)*5;Q<L;)F=B.charCodeAt(Q++),C=B.charCodeAt(Q++),R=B.charCodeAt(Q++),D=B.charCodeAt(Q++),q=B.charCodeAt(Q++),O+=A[F>>>3]+A[(F<<2|C>>>6)&31]+A[C>>>1&31]+A[(C<<4|R>>>4)&31]+A[(R<<1|D>>>7)&31]+A[D>>>2&31]+A[(D<<3|q>>>5)&31]+A[q&31];var X=Y-L;return X===1?(F=B.charCodeAt(Q),O+=A[F>>>3]+A[F<<2&31]+"======"):X===2?(F=B.charCodeAt(Q++),C=B.charCodeAt(Q),O+=A[F>>>3]+A[(F<<2|C>>>6)&31]+A[C>>>1&31]+A[C<<4&31]+"===="):X===3?(F=B.charCodeAt(Q++),C=B.charCodeAt(Q++),R=B.charCodeAt(Q),O+=A[F>>>3]+A[(F<<2|C>>>6)&31]+A[C>>>1&31]+A[(C<<4|R>>>4)&31]+A[R<<1&31]+"==="):X===4&&(F=B.charCodeAt(Q++),C=B.charCodeAt(Q++),R=B.charCodeAt(Q++),D=B.charCodeAt(Q),O+=A[F>>>3]+A[(F<<2|C>>>6)&31]+A[C>>>1&31]+A[(C<<4|R>>>4)&31]+A[(R<<1|D>>>7)&31]+A[D>>>2&31]+A[D<<3&31]+"="),O},y=function(B){var F,C,R,D,q,O,Y=!1,Q="",L=0,X,c=0,e=B.length;if(B==="")return Q;do{for(l[0]=l[5],l[1]=l[6],l[2]=l[7],X=c;L<e&&X<5;++L)O=B.charCodeAt(L),O<128?l[X++]=O:O<2048?(l[X++]=192|O>>6,l[X++]=128|O&63):O<55296||O>=57344?(l[X++]=224|O>>12,l[X++]=128|O>>6&63,l[X++]=128|O&63):(O=65536+((O&1023)<<10|B.charCodeAt(++L)&1023),l[X++]=240|O>>18,l[X++]=128|O>>12&63,l[X++]=128|O>>6&63,l[X++]=128|O&63);c=X-5,L===e&&++L,L>e&&X<6&&(Y=!0),F=l[0],X>4?(C=l[1],R=l[2],D=l[3],q=l[4],Q+=A[F>>>3]+A[(F<<2|C>>>6)&31]+A[C>>>1&31]+A[(C<<4|R>>>4)&31]+A[(R<<1|D>>>7)&31]+A[D>>>2&31]+A[(D<<3|q>>>5)&31]+A[q&31]):X===1?Q+=A[F>>>3]+A[F<<2&31]+"======":X===2?(C=l[1],Q+=A[F>>>3]+A[(F<<2|C>>>6)&31]+A[C>>>1&31]+A[C<<4&31]+"===="):X===3?(C=l[1],R=l[2],Q+=A[F>>>3]+A[(F<<2|C>>>6)&31]+A[C>>>1&31]+A[(C<<4|R>>>4)&31]+A[R<<1&31]+"==="):(C=l[1],R=l[2],D=l[3],Q+=A[F>>>3]+A[(F<<2|C>>>6)&31]+A[C>>>1&31]+A[(C<<4|R>>>4)&31]+A[(R<<1|D>>>7)&31]+A[D>>>2&31]+A[D<<3&31]+"=")}while(!Y);return Q},x=function(B){for(var F,C,R,D,q,O="",Y=B.length,Q=0,L=parseInt(Y/5)*5;Q<L;)F=B[Q++],C=B[Q++],R=B[Q++],D=B[Q++],q=B[Q++],O+=A[F>>>3]+A[(F<<2|C>>>6)&31]+A[C>>>1&31]+A[(C<<4|R>>>4)&31]+A[(R<<1|D>>>7)&31]+A[D>>>2&31]+A[(D<<3|q>>>5)&31]+A[q&31];var X=Y-L;return X===1?(F=B[Q],O+=A[F>>>3]+A[F<<2&31]+"======"):X===2?(F=B[Q++],C=B[Q],O+=A[F>>>3]+A[(F<<2|C>>>6)&31]+A[C>>>1&31]+A[C<<4&31]+"===="):X===3?(F=B[Q++],C=B[Q++],R=B[Q],O+=A[F>>>3]+A[(F<<2|C>>>6)&31]+A[C>>>1&31]+A[(C<<4|R>>>4)&31]+A[R<<1&31]+"==="):X===4&&(F=B[Q++],C=B[Q++],R=B[Q++],D=B[Q],O+=A[F>>>3]+A[(F<<2|C>>>6)&31]+A[C>>>1&31]+A[(C<<4|R>>>4)&31]+A[(R<<1|D>>>7)&31]+A[D>>>2&31]+A[D<<3&31]+"="),O},M=function(B,F){var C=typeof B!="string";return C&&B.constructor===ArrayBuffer&&(B=new Uint8Array(B)),C?x(B):F?v(B):y(B)},_=function(B,F){if(!F)return p(o(B));if(B==="")return"";if(!/^[A-Z2-7=]+$/.test(B))throw new Error("Invalid base32 characters");var C,R,D,q,O,Y,Q,L,X="",c=B.indexOf("=");c===-1&&(c=B.length);for(var e=0,r=c>>3<<3;e<r;)C=i[B.charAt(e++)],R=i[B.charAt(e++)],D=i[B.charAt(e++)],q=i[B.charAt(e++)],O=i[B.charAt(e++)],Y=i[B.charAt(e++)],Q=i[B.charAt(e++)],L=i[B.charAt(e++)],X+=String.fromCharCode((C<<3|R>>>2)&255)+String.fromCharCode((R<<6|D<<1|q>>>4)&255)+String.fromCharCode((q<<4|O>>>1)&255)+String.fromCharCode((O<<7|Y<<2|Q>>>3)&255)+String.fromCharCode((Q<<5|L)&255);var n=c-r;return n===2?(C=i[B.charAt(e++)],R=i[B.charAt(e++)],X+=String.fromCharCode((C<<3|R>>>2)&255)):n===4?(C=i[B.charAt(e++)],R=i[B.charAt(e++)],D=i[B.charAt(e++)],q=i[B.charAt(e++)],X+=String.fromCharCode((C<<3|R>>>2)&255)+String.fromCharCode((R<<6|D<<1|q>>>4)&255)):n===5?(C=i[B.charAt(e++)],R=i[B.charAt(e++)],D=i[B.charAt(e++)],q=i[B.charAt(e++)],O=i[B.charAt(e++)],X+=String.fromCharCode((C<<3|R>>>2)&255)+String.fromCharCode((R<<6|D<<1|q>>>4)&255)+String.fromCharCode((q<<4|O>>>1)&255)):n===7&&(C=i[B.charAt(e++)],R=i[B.charAt(e++)],D=i[B.charAt(e++)],q=i[B.charAt(e++)],O=i[B.charAt(e++)],Y=i[B.charAt(e++)],Q=i[B.charAt(e++)],X+=String.fromCharCode((C<<3|R>>>2)&255)+String.fromCharCode((R<<6|D<<1|q>>>4)&255)+String.fromCharCode((q<<4|O>>>1)&255)+String.fromCharCode((O<<7|Y<<2|Q>>>3)&255)),X},E={encode:M,decode:_};_.asBytes=o,s?m.exports=E:g.base32=E})()})(sf)),sf.exports}var V2=G2();const ed=Qe.getDefaultExportFromCjs(V2),hf=36,bf=4,td=58;xe.Buffer$1.from("appID");const xc="address seems to be malformed",Z2="wrong checksum for address";function rd(m){if(typeof m!="string"||m.length!==td)throw new Error(xc);const g=ed.decode.asBytes(m.toString());if(g.length!==hf)throw new Error(xc);const S=new Uint8Array(g.slice(0,hf-bf)),s=new Uint8Array(g.slice(vf,hf)),A=Ql(S).slice(yc-bf,yc);if(!K2(A,s))throw new Error(Z2);return{publicKey:S,checksum:s}}function X2(m){try{rd(m)}catch{return!1}return!0}function Y2(m){const g=Ql(m).slice(vf-bf,vf);return ed.encode(W2(m,g)).toString().slice(0,td)}var wc;(function(m){m.pay="pay",m.keyreg="keyreg",m.acfg="acfg",m.axfer="axfer",m.afrz="afrz",m.appl="appl",m.stpf="stpf"})(wc||(wc={}));var Mc;(function(m){m[m.NoOpOC=0]="NoOpOC",m[m.OptInOC=1]="OptInOC",m[m.CloseOutOC=2]="CloseOutOC",m[m.ClearStateOC=3]="ClearStateOC",m[m.UpdateApplicationOC=4]="UpdateApplicationOC",m[m.DeleteApplicationOC=5]="DeleteApplicationOC"})(Mc||(Mc={}));xe.Buffer$1.from("ProgData");"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("").forEach(function(m,g){});var _c;(function(m){m.any="txn",m.pay="pay",m.keyreg="keyreg",m.acfg="acfg",m.axfer="axfer",m.afrz="afrz",m.appl="appl"})(_c||(_c={}));var Ac;(function(m){m.account="account",m.application="application",m.asset="asset"})(Ac||(Ac={}));xe.Buffer$1.from([21,31,124,117]);var Ec;(function(m){m[m.BUILDING=0]="BUILDING",m[m.BUILT=1]="BUILT",m[m.SIGNED=2]="SIGNED",m[m.SUBMITTED=3]="SUBMITTED",m[m.COMMITTED=4]="COMMITTED"})(Ec||(Ec={}));xe.Buffer$1.from([77,88]);const mf="Algorand";function J2(m){if(m<BigInt(Number.MIN_SAFE_INTEGER)||m>BigInt(Number.MAX_SAFE_INTEGER))throw new Error("Integer is unsafe");return Number(m)}class ar{static byteSize=32;static platform=mf;type="Native";address;constructor(g){if(ar.instanceof(g))this.address=g.address;else if(xe.UniversalAddress.instanceof(g))this.address=g.toUint8Array();else if(g instanceof Uint8Array&&g.byteLength===ar.byteSize)this.address=g;else if(typeof g=="string"&&X2(g))this.address=rd(g).publicKey;else if(typeof g=="string"&&!isNaN(parseInt(g)))this.address=xe.bytes.zpad(xe.bignum.toBytes(BigInt(g),8),ar.byteSize);else if(typeof g=="bigint")this.address=xe.bytes.zpad(xe.bignum.toBytes(g,8),ar.byteSize);else if(g instanceof Uint8Array&&g.byteLength===8)this.address=xe.bytes.zpad(g,ar.byteSize);else throw new Error(`Invalid Algorand address or ASA ID: ${g}`)}unwrap(){return this.toString()}toString(){return Y2(this.address)}toNative(){return this}toUint8Array(){return this.address}toUniversalAddress(){return new xe.UniversalAddress(this.toUint8Array())}toBigInt(){return xe.bignum.decode(this.toUint8Array().slice(24,32))}toInt(){return J2(this.toBigInt())}equals(g){return ar.instanceof(g)?g.address===this.address:this.toUniversalAddress().equals(g)}static instanceof(g){return g.constructor.platform===mf}}xe.registerNative(mf,ar);const id=[["Cosmoshub","cosmos"],["Evmos","evmos"],["Injective","inj"],["Kujira","kuji"],["Osmosis","osmo"],["Sei","sei"],["Wormchain","wormhole"],["Celestia","celestia"],["Stargaze","stars"],["Dymension","dym"],["Neutron","neutron"],["Seda","seda"],["Provenance","pb"],["Noble","noble"]],Q2=xe.constMap(id);xe.constMap(id,[1,[0]]);const nd=[["Mainnet",[["Cosmoshub","uatom"],["Evmos","aevmos"],["Injective","inj"],["Kujira","kuji"],["Osmosis","uosmo"],["Sei","usei"],["Wormchain","uworm"],["Celestia","utia"],["Dymension","adym"],["Stargaze","ustars"],["Neutron","untrn"],["Provenance","nhash"],["Noble","uusdc"]]],["Testnet",[["Cosmoshub","uatom"],["Evmos","atevmos"],["Injective","inj"],["Kujira","kuji"],["Osmosis","uosmo"],["Sei","usei"],["Wormchain","uworm"],["Seda","aseda"]]],["Devnet",[["Cosmoshub","uatom"],["Evmos","atevmos"],["Injective","inj"],["Kujira","kuji"],["Osmosis","uosmo"],["Sei","usei"],["Wormchain","uworm"]]]];xe.constMap(nd);xe.constMap(nd,[[0,2],[1]]);const ev=[["Mainnet",[["Wormchain",{Osmosis:"channel-3",Evmos:"channel-5",Kujira:"channel-9",Stargaze:"channel-12",Injective:"channel-13",Dymension:"channel-15"}],["Osmosis",{Wormchain:"channel-2186"}],["Evmos",{Wormchain:"channel-94"}],["Kujira",{Wormchain:"channel-113"}],["Injective",{Wormchain:"channel-183"}],["Dymension",{Wormchain:"channel-36"}],["Stargaze",{Wormchain:"channel-278"}]]],["Testnet",[["Wormchain",{Cosmoshub:"channel-5",Injective:"channel-15",Kujira:"channel-16",Stargaze:"channel-17",Osmosis:"channel-19",Dymension:"channel-18",Evmos:"channel-20"}],["Cosmoshub",{Wormchain:"channel-3086"}],["Injective",{Wormchain:"channel-76973"}],["Kujira",{Wormchain:"channel-114"}],["Osmosis",{Wormchain:"channel-7904"}],["Stargaze",{Wormchain:"channel-949"}],["Evmos",{Wormchain:"channel-240"}],["Dymension",{Wormchain:"channel-23"}]]],["Devnet",[["Wormchain",{Cosmoshub:"channel-1",Osmosis:"channel-2"}],["Cosmoshub",{Wormchain:"channel-1"}],["Osmosis",{Wormchain:"channel-1"}]]]];xe.constMap(ev);const tv=[["Mainnet",[["Injective","https://lcd.injective.network"],["Evmos","https://rest.bd.evmos.org:1317"]]],["Testnet",[["Injective","https://k8s.testnet.lcd.injective.network"],["Evmos","https://rest.bd.evmos.dev:1317"]]],["Devnet",[["Injective","https://localhost:1234"],["Evmos","https://localhost:1233"]]]];xe.constMap(tv);const rv=[["Mainnet",[["Osmosis","0.025"],["Sei","0.02"],["Cosmoshub","0.025"],["Kujira","0.0051"],["Neutron","0.075"],["Celestia","0.02"],["Stargaze","1.1"],["Injective","700000000"],["Evmos","25000000000"],["Dymension","5000000000"],["Provenance","2100"],["Noble","0.1"]]]];xe.constMap(rv);const ad="Cosmwasm";function Sc(m){try{const g=xe.bech32.decodeToBytes(m);return{data:g.bytes,prefix:g.prefix}}catch{}try{return{data:xe.hex.decode(m)}}catch{}try{return{data:xe.b64.decode(m)}}catch{}throw new Error(`Cannot decode: ${m}`)}class Kt{static contractAddressByteSize=32;static accountAddressByteSize=20;static platform=ad;address;domain;denom;denomType;constructor(g){if(Kt.instanceof(g)){const S=g;this.address=S.address,this.domain=S.domain,this.denom=S.denom,this.denomType=S.denomType;return}if(typeof g=="string"){if(g.length<=8){this.address=new Uint8Array(0),this.denom=g,this.denomType="native";return}if(g.indexOf("/")!==-1){const S=g.split("/");if(S.length>=3){const{data:s,prefix:A}=Sc(S[S.length-2]);this.address=s,this.domain=A,this.denom=S[S.length-1],this.denomType=S.slice(0,S.length-2).join("/")}else{const{data:s}=Sc(S[1]);this.address=s,this.denomType=S[0]}}else{if(!Kt.isValidAddress(g))throw new Error(`Invalid Cosmwasm address: ${g}`);const{bytes:S,prefix:s}=xe.bech32.decodeToBytes(g);this.address=S,this.domain=s}}else if(g instanceof Uint8Array)this.address=g;else if(xe.UniversalAddress.instanceof(g))this.address=g.toUint8Array();else throw new Error(`Invalid Cosmwasm address ${g}`);if(!Kt.validAddressLength(this.address))throw new Error("Expected 20 or 32 bytes address")}unwrap(){return this.toString()}toString(){return this.denomType!==void 0?this.denomType==="native"?this.denom:this.denomType==="ibc"?`${this.denomType.toLowerCase()}/${xe.hex.encode(this.address).toUpperCase()}`:`${this.denomType}/${Kt.encode(this.domain,this.address)}/${this.denom}`:Kt.encode(this.domain,this.address)}toNative(){return this}toUint8Array(){return this.address}toUniversalAddress(){const g=new Uint8Array(xe.UniversalAddress.byteSize);return g.set(this.address,xe.UniversalAddress.byteSize-this.address.length),new xe.UniversalAddress(g)}setChain(g){this.domain=Q2.get(g)}static isValidAddress(g){try{const S=xe.bech32.decodeToBytes(g);return Kt.validAddressLength(S.bytes)}catch{}return!1}static encode(g,S){return xe.bech32.encode(g,xe.bech32.toWords(S))}static validAddressLength(g){if(g.length!==Kt.contractAddressByteSize&&g.length!==Kt.accountAddressByteSize)throw new Error(`Invalid Cosmwasm address, expected ${Kt.contractAddressByteSize} or ${Kt.accountAddressByteSize} bytes but got ${g.length}`);return!0}static instanceof(g){return g.constructor.platform===Kt.platform}equals(g){return Kt.instanceof(g)?this.toString()===g.toString():g.equals(this.toUniversalAddress())}}xe.registerNative(ad,Kt);const fd="Stacks";var uf={},cf={},lf={},Tr={},Bc;function iv(){return Bc||(Bc=1,Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.crypto=void 0,Tr.crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0),Tr}var Fc;function mr(){return Fc||(Fc=1,(function(m){/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(m,"__esModule",{value:!0}),m.wrapXOFConstructorWithOpts=m.wrapConstructorWithOpts=m.wrapConstructor=m.Hash=m.nextTick=m.swap32IfBE=m.byteSwapIfBE=m.swap8IfBE=m.isLE=void 0,m.isBytes=S,m.anumber=s,m.abytes=A,m.ahash=i,m.aexists=l,m.aoutput=b,m.u8=p,m.u32=o,m.clean=v,m.createView=y,m.rotr=x,m.rotl=M,m.byteSwap=_,m.byteSwap32=E,m.bytesToHex=C,m.hexToBytes=q,m.asyncLoop=Y,m.utf8ToBytes=Q,m.bytesToUtf8=L,m.toBytes=X,m.kdfInputToBytes=c,m.concatBytes=e,m.checkOpts=r,m.createHasher=a,m.createOptHasher=u,m.createXOFer=d,m.randomBytes=w;const g=iv();function S(f){return f instanceof Uint8Array||ArrayBuffer.isView(f)&&f.constructor.name==="Uint8Array"}function s(f){if(!Number.isSafeInteger(f)||f<0)throw new Error("positive integer expected, got "+f)}function A(f,...t){if(!S(f))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(f.length))throw new Error("Uint8Array expected of length "+t+", got length="+f.length)}function i(f){if(typeof f!="function"||typeof f.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");s(f.outputLen),s(f.blockLen)}function l(f,t=!0){if(f.destroyed)throw new Error("Hash instance has been destroyed");if(t&&f.finished)throw new Error("Hash#digest() has already been called")}function b(f,t){A(f);const h=t.outputLen;if(f.length<h)throw new Error("digestInto() expects output buffer of length at least "+h)}function p(f){return new Uint8Array(f.buffer,f.byteOffset,f.byteLength)}function o(f){return new Uint32Array(f.buffer,f.byteOffset,Math.floor(f.byteLength/4))}function v(...f){for(let t=0;t<f.length;t++)f[t].fill(0)}function y(f){return new DataView(f.buffer,f.byteOffset,f.byteLength)}function x(f,t){return f<<32-t|f>>>t}function M(f,t){return f<<t|f>>>32-t>>>0}m.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function _(f){return f<<24&4278190080|f<<8&16711680|f>>>8&65280|f>>>24&255}m.swap8IfBE=m.isLE?f=>f:f=>_(f),m.byteSwapIfBE=m.swap8IfBE;function E(f){for(let t=0;t<f.length;t++)f[t]=_(f[t]);return f}m.swap32IfBE=m.isLE?f=>f:E;const B=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",F=Array.from({length:256},(f,t)=>t.toString(16).padStart(2,"0"));function C(f){if(A(f),B)return f.toHex();let t="";for(let h=0;h<f.length;h++)t+=F[f[h]];return t}const R={_0:48,_9:57,A:65,F:70,a:97,f:102};function D(f){if(f>=R._0&&f<=R._9)return f-R._0;if(f>=R.A&&f<=R.F)return f-(R.A-10);if(f>=R.a&&f<=R.f)return f-(R.a-10)}function q(f){if(typeof f!="string")throw new Error("hex string expected, got "+typeof f);if(B)return Uint8Array.fromHex(f);const t=f.length,h=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const H=new Uint8Array(h);for(let j=0,U=0;j<h;j++,U+=2){const ee=D(f.charCodeAt(U)),J=D(f.charCodeAt(U+1));if(ee===void 0||J===void 0){const N=f[U]+f[U+1];throw new Error('hex string expected, got non-hex character "'+N+'" at index '+U)}H[j]=ee*16+J}return H}const O=async()=>{};m.nextTick=O;async function Y(f,t,h){let H=Date.now();for(let j=0;j<f;j++){h(j);const U=Date.now()-H;U>=0&&U<t||(await(0,m.nextTick)(),H+=U)}}function Q(f){if(typeof f!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(f))}function L(f){return new TextDecoder().decode(f)}function X(f){return typeof f=="string"&&(f=Q(f)),A(f),f}function c(f){return typeof f=="string"&&(f=Q(f)),A(f),f}function e(...f){let t=0;for(let H=0;H<f.length;H++){const j=f[H];A(j),t+=j.length}const h=new Uint8Array(t);for(let H=0,j=0;H<f.length;H++){const U=f[H];h.set(U,j),j+=U.length}return h}function r(f,t){if(t!==void 0&&{}.toString.call(t)!=="[object Object]")throw new Error("options should be object or undefined");return Object.assign(f,t)}class n{}m.Hash=n;function a(f){const t=H=>f().update(X(H)).digest(),h=f();return t.outputLen=h.outputLen,t.blockLen=h.blockLen,t.create=()=>f(),t}function u(f){const t=(H,j)=>f(j).update(X(H)).digest(),h=f({});return t.outputLen=h.outputLen,t.blockLen=h.blockLen,t.create=H=>f(H),t}function d(f){const t=(H,j)=>f(j).update(X(H)).digest(),h=f({});return t.outputLen=h.outputLen,t.blockLen=h.blockLen,t.create=H=>f(H),t}m.wrapConstructor=a,m.wrapConstructorWithOpts=u,m.wrapXOFConstructorWithOpts=d;function w(f=32){if(g.crypto&&typeof g.crypto.getRandomValues=="function")return g.crypto.getRandomValues(new Uint8Array(f));if(g.crypto&&typeof g.crypto.randomBytes=="function")return Uint8Array.from(g.crypto.randomBytes(f));throw new Error("crypto.getRandomValues must be defined")}})(lf)),lf}var Cc;function od(){return Cc||(Cc=1,(function(m){Object.defineProperty(m,"__esModule",{value:!0}),m.c32decode=m.c32normalize=m.c32encode=m.c32=void 0;const g=mr();m.c32="0123456789ABCDEFGHJKMNPQRSTVWXYZ";const S="0123456789abcdef";function s(l,b){if(!l.match(/^[0-9a-fA-F]*$/))throw new Error("Not a hex-encoded string");l.length%2!==0&&(l=`0${l}`),l=l.toLowerCase();let p=[],o=0;for(let M=l.length-1;M>=0;M--)if(o<4){const _=S.indexOf(l[M])>>o;let E=0;M!==0&&(E=S.indexOf(l[M-1]));const B=1+o,F=E%(1<<B)<<5-B,C=m.c32[_+F];o=B,p.unshift(C)}else o=0;let v=0;for(let M=0;M<p.length&&p[M]==="0";M++)v++;p=p.slice(v);const y=new TextDecoder().decode((0,g.hexToBytes)(l)).match(/^\u0000*/),x=y?y[0].length:0;for(let M=0;M<x;M++)p.unshift(m.c32[0]);if(b){const M=b-p.length;for(let _=0;_<M;_++)p.unshift(m.c32[0])}return p.join("")}m.c32encode=s;function A(l){return l.toUpperCase().replace(/O/g,"0").replace(/L|I/g,"1")}m.c32normalize=A;function i(l,b){if(l=A(l),!l.match(`^[${m.c32}]*$`))throw new Error("Not a c32-encoded string");const p=l.match(`^${m.c32[0]}*`),o=p?p[0].length:0;let v=[],y=0,x=0;for(let E=l.length-1;E>=0;E--){x===4&&(v.unshift(S[y]),x=0,y=0);const F=(m.c32.indexOf(l[E])<<x)+y,C=S[F%16];if(x+=1,y=F>>4,y>1<<x)throw new Error("Panic error in decoding.");v.unshift(C)}v.unshift(S[y]),v.length%2===1&&v.unshift("0");let M=0;for(let E=0;E<v.length&&v[E]==="0";E++)M++;v=v.slice(M-M%2);let _=v.join("");for(let E=0;E<o;E++)_=`00${_}`;if(b){const E=b*2-_.length;for(let B=0;B<E;B+=2)_=`00${_}`}return _}m.c32decode=i})(cf)),cf}var cr={},Jt={},Tt={},zt={},Dc;function nv(){if(Dc)return zt;Dc=1,Object.defineProperty(zt,"__esModule",{value:!0}),zt.SHA512_IV=zt.SHA384_IV=zt.SHA224_IV=zt.SHA256_IV=zt.HashMD=void 0,zt.setBigUint64=g,zt.Chi=S,zt.Maj=s;const m=mr();function g(i,l,b,p){if(typeof i.setBigUint64=="function")return i.setBigUint64(l,b,p);const o=BigInt(32),v=BigInt(4294967295),y=Number(b>>o&v),x=Number(b&v),M=p?4:0,_=p?0:4;i.setUint32(l+M,y,p),i.setUint32(l+_,x,p)}function S(i,l,b){return i&l^~i&b}function s(i,l,b){return i&l^i&b^l&b}class A extends m.Hash{constructor(l,b,p,o){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=l,this.outputLen=b,this.padOffset=p,this.isLE=o,this.buffer=new Uint8Array(l),this.view=(0,m.createView)(this.buffer)}update(l){(0,m.aexists)(this),l=(0,m.toBytes)(l),(0,m.abytes)(l);const{view:b,buffer:p,blockLen:o}=this,v=l.length;for(let y=0;y<v;){const x=Math.min(o-this.pos,v-y);if(x===o){const M=(0,m.createView)(l);for(;o<=v-y;y+=o)this.process(M,y);continue}p.set(l.subarray(y,y+x),this.pos),this.pos+=x,y+=x,this.pos===o&&(this.process(b,0),this.pos=0)}return this.length+=l.length,this.roundClean(),this}digestInto(l){(0,m.aexists)(this),(0,m.aoutput)(l,this),this.finished=!0;const{buffer:b,view:p,blockLen:o,isLE:v}=this;let{pos:y}=this;b[y++]=128,(0,m.clean)(this.buffer.subarray(y)),this.padOffset>o-y&&(this.process(p,0),y=0);for(let B=y;B<o;B++)b[B]=0;g(p,o-8,BigInt(this.length*8),v),this.process(p,0);const x=(0,m.createView)(l),M=this.outputLen;if(M%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const _=M/4,E=this.get();if(_>E.length)throw new Error("_sha2: outputLen bigger than state");for(let B=0;B<_;B++)x.setUint32(4*B,E[B],v)}digest(){const{buffer:l,outputLen:b}=this;this.digestInto(l);const p=l.slice(0,b);return this.destroy(),p}_cloneInto(l){l||(l=new this.constructor),l.set(...this.get());const{blockLen:b,buffer:p,length:o,finished:v,destroyed:y,pos:x}=this;return l.destroyed=y,l.finished=v,l.length=o,l.pos=x,o%b&&l.buffer.set(p),l}clone(){return this._cloneInto()}}return zt.HashMD=A,zt.SHA256_IV=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),zt.SHA224_IV=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),zt.SHA384_IV=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),zt.SHA512_IV=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),zt}var pt={},Rc;function av(){if(Rc)return pt;Rc=1,Object.defineProperty(pt,"__esModule",{value:!0}),pt.toBig=pt.shrSL=pt.shrSH=pt.rotrSL=pt.rotrSH=pt.rotrBL=pt.rotrBH=pt.rotr32L=pt.rotr32H=pt.rotlSL=pt.rotlSH=pt.rotlBL=pt.rotlBH=pt.add5L=pt.add5H=pt.add4L=pt.add4H=pt.add3L=pt.add3H=void 0,pt.add=F,pt.fromBig=S,pt.split=s;const m=BigInt(2**32-1),g=BigInt(32);function S(L,X=!1){return X?{h:Number(L&m),l:Number(L>>g&m)}:{h:Number(L>>g&m)|0,l:Number(L&m)|0}}function s(L,X=!1){const c=L.length;let e=new Uint32Array(c),r=new Uint32Array(c);for(let n=0;n<c;n++){const{h:a,l:u}=S(L[n],X);[e[n],r[n]]=[a,u]}return[e,r]}const A=(L,X)=>BigInt(L>>>0)<<g|BigInt(X>>>0);pt.toBig=A;const i=(L,X,c)=>L>>>c;pt.shrSH=i;const l=(L,X,c)=>L<<32-c|X>>>c;pt.shrSL=l;const b=(L,X,c)=>L>>>c|X<<32-c;pt.rotrSH=b;const p=(L,X,c)=>L<<32-c|X>>>c;pt.rotrSL=p;const o=(L,X,c)=>L<<64-c|X>>>c-32;pt.rotrBH=o;const v=(L,X,c)=>L>>>c-32|X<<64-c;pt.rotrBL=v;const y=(L,X)=>X;pt.rotr32H=y;const x=(L,X)=>L;pt.rotr32L=x;const M=(L,X,c)=>L<<c|X>>>32-c;pt.rotlSH=M;const _=(L,X,c)=>X<<c|L>>>32-c;pt.rotlSL=_;const E=(L,X,c)=>X<<c-32|L>>>64-c;pt.rotlBH=E;const B=(L,X,c)=>L<<c-32|X>>>64-c;pt.rotlBL=B;function F(L,X,c,e){const r=(X>>>0)+(e>>>0);return{h:L+c+(r/2**32|0)|0,l:r|0}}const C=(L,X,c)=>(L>>>0)+(X>>>0)+(c>>>0);pt.add3L=C;const R=(L,X,c,e)=>X+c+e+(L/2**32|0)|0;pt.add3H=R;const D=(L,X,c,e)=>(L>>>0)+(X>>>0)+(c>>>0)+(e>>>0);pt.add4L=D;const q=(L,X,c,e,r)=>X+c+e+r+(L/2**32|0)|0;pt.add4H=q;const O=(L,X,c,e,r)=>(L>>>0)+(X>>>0)+(c>>>0)+(e>>>0)+(r>>>0);pt.add5L=O;const Y=(L,X,c,e,r,n)=>X+c+e+r+n+(L/2**32|0)|0;pt.add5H=Y;const Q={fromBig:S,split:s,toBig:A,shrSH:i,shrSL:l,rotrSH:b,rotrSL:p,rotrBH:o,rotrBL:v,rotr32H:y,rotr32L:x,rotlSH:M,rotlSL:_,rotlBH:E,rotlBL:B,add:F,add3L:C,add3H:R,add4L:D,add4H:q,add5H:Y,add5L:O};return pt.default=Q,pt}var Tc;function sd(){if(Tc)return Tt;Tc=1,Object.defineProperty(Tt,"__esModule",{value:!0}),Tt.sha512_224=Tt.sha512_256=Tt.sha384=Tt.sha512=Tt.sha224=Tt.sha256=Tt.SHA512_256=Tt.SHA512_224=Tt.SHA384=Tt.SHA512=Tt.SHA224=Tt.SHA256=void 0;const m=nv(),g=av(),S=mr(),s=Uint32Array.from([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=new Uint32Array(64);class i extends m.HashMD{constructor(R=32){super(64,R,8,!1),this.A=m.SHA256_IV[0]|0,this.B=m.SHA256_IV[1]|0,this.C=m.SHA256_IV[2]|0,this.D=m.SHA256_IV[3]|0,this.E=m.SHA256_IV[4]|0,this.F=m.SHA256_IV[5]|0,this.G=m.SHA256_IV[6]|0,this.H=m.SHA256_IV[7]|0}get(){const{A:R,B:D,C:q,D:O,E:Y,F:Q,G:L,H:X}=this;return[R,D,q,O,Y,Q,L,X]}set(R,D,q,O,Y,Q,L,X){this.A=R|0,this.B=D|0,this.C=q|0,this.D=O|0,this.E=Y|0,this.F=Q|0,this.G=L|0,this.H=X|0}process(R,D){for(let r=0;r<16;r++,D+=4)A[r]=R.getUint32(D,!1);for(let r=16;r<64;r++){const n=A[r-15],a=A[r-2],u=(0,S.rotr)(n,7)^(0,S.rotr)(n,18)^n>>>3,d=(0,S.rotr)(a,17)^(0,S.rotr)(a,19)^a>>>10;A[r]=d+A[r-7]+u+A[r-16]|0}let{A:q,B:O,C:Y,D:Q,E:L,F:X,G:c,H:e}=this;for(let r=0;r<64;r++){const n=(0,S.rotr)(L,6)^(0,S.rotr)(L,11)^(0,S.rotr)(L,25),a=e+n+(0,m.Chi)(L,X,c)+s[r]+A[r]|0,d=((0,S.rotr)(q,2)^(0,S.rotr)(q,13)^(0,S.rotr)(q,22))+(0,m.Maj)(q,O,Y)|0;e=c,c=X,X=L,L=Q+a|0,Q=Y,Y=O,O=q,q=a+d|0}q=q+this.A|0,O=O+this.B|0,Y=Y+this.C|0,Q=Q+this.D|0,L=L+this.E|0,X=X+this.F|0,c=c+this.G|0,e=e+this.H|0,this.set(q,O,Y,Q,L,X,c,e)}roundClean(){(0,S.clean)(A)}destroy(){this.set(0,0,0,0,0,0,0,0),(0,S.clean)(this.buffer)}}Tt.SHA256=i;class l extends i{constructor(){super(28),this.A=m.SHA224_IV[0]|0,this.B=m.SHA224_IV[1]|0,this.C=m.SHA224_IV[2]|0,this.D=m.SHA224_IV[3]|0,this.E=m.SHA224_IV[4]|0,this.F=m.SHA224_IV[5]|0,this.G=m.SHA224_IV[6]|0,this.H=m.SHA224_IV[7]|0}}Tt.SHA224=l;const b=g.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(C=>BigInt(C))),p=b[0],o=b[1],v=new Uint32Array(80),y=new Uint32Array(80);class x extends m.HashMD{constructor(R=64){super(128,R,16,!1),this.Ah=m.SHA512_IV[0]|0,this.Al=m.SHA512_IV[1]|0,this.Bh=m.SHA512_IV[2]|0,this.Bl=m.SHA512_IV[3]|0,this.Ch=m.SHA512_IV[4]|0,this.Cl=m.SHA512_IV[5]|0,this.Dh=m.SHA512_IV[6]|0,this.Dl=m.SHA512_IV[7]|0,this.Eh=m.SHA512_IV[8]|0,this.El=m.SHA512_IV[9]|0,this.Fh=m.SHA512_IV[10]|0,this.Fl=m.SHA512_IV[11]|0,this.Gh=m.SHA512_IV[12]|0,this.Gl=m.SHA512_IV[13]|0,this.Hh=m.SHA512_IV[14]|0,this.Hl=m.SHA512_IV[15]|0}get(){const{Ah:R,Al:D,Bh:q,Bl:O,Ch:Y,Cl:Q,Dh:L,Dl:X,Eh:c,El:e,Fh:r,Fl:n,Gh:a,Gl:u,Hh:d,Hl:w}=this;return[R,D,q,O,Y,Q,L,X,c,e,r,n,a,u,d,w]}set(R,D,q,O,Y,Q,L,X,c,e,r,n,a,u,d,w){this.Ah=R|0,this.Al=D|0,this.Bh=q|0,this.Bl=O|0,this.Ch=Y|0,this.Cl=Q|0,this.Dh=L|0,this.Dl=X|0,this.Eh=c|0,this.El=e|0,this.Fh=r|0,this.Fl=n|0,this.Gh=a|0,this.Gl=u|0,this.Hh=d|0,this.Hl=w|0}process(R,D){for(let h=0;h<16;h++,D+=4)v[h]=R.getUint32(D),y[h]=R.getUint32(D+=4);for(let h=16;h<80;h++){const H=v[h-15]|0,j=y[h-15]|0,U=g.rotrSH(H,j,1)^g.rotrSH(H,j,8)^g.shrSH(H,j,7),ee=g.rotrSL(H,j,1)^g.rotrSL(H,j,8)^g.shrSL(H,j,7),J=v[h-2]|0,N=y[h-2]|0,z=g.rotrSH(J,N,19)^g.rotrBH(J,N,61)^g.shrSH(J,N,6),Z=g.rotrSL(J,N,19)^g.rotrBL(J,N,61)^g.shrSL(J,N,6),k=g.add4L(ee,Z,y[h-7],y[h-16]),P=g.add4H(k,U,z,v[h-7],v[h-16]);v[h]=P|0,y[h]=k|0}let{Ah:q,Al:O,Bh:Y,Bl:Q,Ch:L,Cl:X,Dh:c,Dl:e,Eh:r,El:n,Fh:a,Fl:u,Gh:d,Gl:w,Hh:f,Hl:t}=this;for(let h=0;h<80;h++){const H=g.rotrSH(r,n,14)^g.rotrSH(r,n,18)^g.rotrBH(r,n,41),j=g.rotrSL(r,n,14)^g.rotrSL(r,n,18)^g.rotrBL(r,n,41),U=r&a^~r&d,ee=n&u^~n&w,J=g.add5L(t,j,ee,o[h],y[h]),N=g.add5H(J,f,H,U,p[h],v[h]),z=J|0,Z=g.rotrSH(q,O,28)^g.rotrBH(q,O,34)^g.rotrBH(q,O,39),k=g.rotrSL(q,O,28)^g.rotrBL(q,O,34)^g.rotrBL(q,O,39),P=q&Y^q&L^Y&L,T=O&Q^O&X^Q&X;f=d|0,t=w|0,d=a|0,w=u|0,a=r|0,u=n|0,{h:r,l:n}=g.add(c|0,e|0,N|0,z|0),c=L|0,e=X|0,L=Y|0,X=Q|0,Y=q|0,Q=O|0;const G=g.add3L(z,k,T);q=g.add3H(G,N,Z,P),O=G|0}({h:q,l:O}=g.add(this.Ah|0,this.Al|0,q|0,O|0)),{h:Y,l:Q}=g.add(this.Bh|0,this.Bl|0,Y|0,Q|0),{h:L,l:X}=g.add(this.Ch|0,this.Cl|0,L|0,X|0),{h:c,l:e}=g.add(this.Dh|0,this.Dl|0,c|0,e|0),{h:r,l:n}=g.add(this.Eh|0,this.El|0,r|0,n|0),{h:a,l:u}=g.add(this.Fh|0,this.Fl|0,a|0,u|0),{h:d,l:w}=g.add(this.Gh|0,this.Gl|0,d|0,w|0),{h:f,l:t}=g.add(this.Hh|0,this.Hl|0,f|0,t|0),this.set(q,O,Y,Q,L,X,c,e,r,n,a,u,d,w,f,t)}roundClean(){(0,S.clean)(v,y)}destroy(){(0,S.clean)(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}Tt.SHA512=x;class M extends x{constructor(){super(48),this.Ah=m.SHA384_IV[0]|0,this.Al=m.SHA384_IV[1]|0,this.Bh=m.SHA384_IV[2]|0,this.Bl=m.SHA384_IV[3]|0,this.Ch=m.SHA384_IV[4]|0,this.Cl=m.SHA384_IV[5]|0,this.Dh=m.SHA384_IV[6]|0,this.Dl=m.SHA384_IV[7]|0,this.Eh=m.SHA384_IV[8]|0,this.El=m.SHA384_IV[9]|0,this.Fh=m.SHA384_IV[10]|0,this.Fl=m.SHA384_IV[11]|0,this.Gh=m.SHA384_IV[12]|0,this.Gl=m.SHA384_IV[13]|0,this.Hh=m.SHA384_IV[14]|0,this.Hl=m.SHA384_IV[15]|0}}Tt.SHA384=M;const _=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),E=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]);class B extends x{constructor(){super(28),this.Ah=_[0]|0,this.Al=_[1]|0,this.Bh=_[2]|0,this.Bl=_[3]|0,this.Ch=_[4]|0,this.Cl=_[5]|0,this.Dh=_[6]|0,this.Dl=_[7]|0,this.Eh=_[8]|0,this.El=_[9]|0,this.Fh=_[10]|0,this.Fl=_[11]|0,this.Gh=_[12]|0,this.Gl=_[13]|0,this.Hh=_[14]|0,this.Hl=_[15]|0}}Tt.SHA512_224=B;class F extends x{constructor(){super(32),this.Ah=E[0]|0,this.Al=E[1]|0,this.Bh=E[2]|0,this.Bl=E[3]|0,this.Ch=E[4]|0,this.Cl=E[5]|0,this.Dh=E[6]|0,this.Dl=E[7]|0,this.Eh=E[8]|0,this.El=E[9]|0,this.Fh=E[10]|0,this.Fl=E[11]|0,this.Gh=E[12]|0,this.Gl=E[13]|0,this.Hh=E[14]|0,this.Hl=E[15]|0}}return Tt.SHA512_256=F,Tt.sha256=(0,S.createHasher)(()=>new i),Tt.sha224=(0,S.createHasher)(()=>new l),Tt.sha512=(0,S.createHasher)(()=>new x),Tt.sha384=(0,S.createHasher)(()=>new M),Tt.sha512_256=(0,S.createHasher)(()=>new F),Tt.sha512_224=(0,S.createHasher)(()=>new B),Tt}var Ic;function hd(){if(Ic)return Jt;Ic=1,Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.sha224=Jt.SHA224=Jt.sha256=Jt.SHA256=void 0;const m=sd();return Jt.SHA256=m.SHA256,Jt.sha256=m.sha256,Jt.SHA224=m.SHA224,Jt.sha224=m.sha224,Jt}var kc;function ud(){if(kc)return cr;kc=1,Object.defineProperty(cr,"__esModule",{value:!0}),cr.c32checkDecode=cr.c32checkEncode=void 0;const m=hd(),g=mr(),S=od();function s(l){const b=(0,m.sha256)((0,m.sha256)((0,g.hexToBytes)(l)));return(0,g.bytesToHex)(b.slice(0,4))}function A(l,b){if(l<0||l>=32)throw new Error("Invalid version (must be between 0 and 31)");if(!b.match(/^[0-9a-fA-F]*$/))throw new Error("Invalid data (not a hex string)");b=b.toLowerCase(),b.length%2!==0&&(b=`0${b}`);let p=l.toString(16);p.length===1&&(p=`0${p}`);const o=s(`${p}${b}`),v=(0,S.c32encode)(`${b}${o}`);return`${S.c32[l]}${v}`}cr.c32checkEncode=A;function i(l){l=(0,S.c32normalize)(l);const b=(0,S.c32decode)(l.slice(1)),p=l[0],o=S.c32.indexOf(p),v=b.slice(-8);let y=o.toString(16);if(y.length===1&&(y=`0${y}`),s(`${y}${b.substring(0,b.length-8)}`)!==v)throw new Error("Invalid c32check string: checksum mismatch");return[o,b.substring(0,b.length-8)]}return cr.c32checkDecode=i,cr}var df={},lr={},pf,Pc;function fv(){if(Pc)return pf;Pc=1;function m(g){if(g.length>=255)throw new TypeError("Alphabet too long");for(var S=new Uint8Array(256),s=0;s<S.length;s++)S[s]=255;for(var A=0;A<g.length;A++){var i=g.charAt(A),l=i.charCodeAt(0);if(S[l]!==255)throw new TypeError(i+" is ambiguous");S[l]=A}var b=g.length,p=g.charAt(0),o=Math.log(b)/Math.log(256),v=Math.log(256)/Math.log(b);function y(_){if(_ instanceof Uint8Array||(ArrayBuffer.isView(_)?_=new Uint8Array(_.buffer,_.byteOffset,_.byteLength):Array.isArray(_)&&(_=Uint8Array.from(_))),!(_ instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(_.length===0)return"";for(var E=0,B=0,F=0,C=_.length;F!==C&&_[F]===0;)F++,E++;for(var R=(C-F)*v+1>>>0,D=new Uint8Array(R);F!==C;){for(var q=_[F],O=0,Y=R-1;(q!==0||O<B)&&Y!==-1;Y--,O++)q+=256*D[Y]>>>0,D[Y]=q%b>>>0,q=q/b>>>0;if(q!==0)throw new Error("Non-zero carry");B=O,F++}for(var Q=R-B;Q!==R&&D[Q]===0;)Q++;for(var L=p.repeat(E);Q<R;++Q)L+=g.charAt(D[Q]);return L}function x(_){if(typeof _!="string")throw new TypeError("Expected String");if(_.length===0)return new Uint8Array;for(var E=0,B=0,F=0;_[E]===p;)B++,E++;for(var C=(_.length-E)*o+1>>>0,R=new Uint8Array(C);_[E];){var D=_.charCodeAt(E);if(D>255)return;var q=S[D];if(q===255)return;for(var O=0,Y=C-1;(q!==0||O<F)&&Y!==-1;Y--,O++)q+=b*R[Y]>>>0,R[Y]=q%256>>>0,q=q/256>>>0;if(q!==0)throw new Error("Non-zero carry");F=O,E++}for(var Q=C-F;Q!==C&&R[Q]===0;)Q++;for(var L=new Uint8Array(B+(C-Q)),X=B;Q!==C;)L[X++]=R[Q++];return L}function M(_){var E=x(_);if(E)return E;throw new Error("Non-base"+b+" character")}return{encode:y,decodeUnsafe:x,decode:M}}return pf=m,pf}var Nc;function ov(){if(Nc)return lr;Nc=1,Object.defineProperty(lr,"__esModule",{value:!0}),lr.decode=lr.encode=void 0;const m=hd(),g=mr(),S=fv(),s="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";function A(l,b="00"){const p=typeof l=="string"?(0,g.hexToBytes)(l):l,o=typeof b=="string"?(0,g.hexToBytes)(b):l;if(!(p instanceof Uint8Array)||!(o instanceof Uint8Array))throw new TypeError("Argument must be of type Uint8Array or string");const v=(0,m.sha256)((0,m.sha256)(new Uint8Array([...o,...p])));return S(s).encode([...o,...p,...v.slice(0,4)])}lr.encode=A;function i(l){const b=S(s).decode(l),p=b.slice(0,1),o=b.slice(1,-4),v=(0,m.sha256)((0,m.sha256)(new Uint8Array([...p,...o])));return b.slice(-4).forEach((y,x)=>{if(y!==v[x])throw new Error("Invalid checksum")}),{prefix:p,data:o}}return lr.decode=i,lr}var Oc;function sv(){return Oc||(Oc=1,(function(m){Object.defineProperty(m,"__esModule",{value:!0}),m.c32ToB58=m.b58ToC32=m.c32addressDecode=m.c32address=m.versions=void 0;const g=ud(),S=ov(),s=mr();m.versions={mainnet:{p2pkh:22,p2sh:20},testnet:{p2pkh:26,p2sh:21}};const A={};A[0]=m.versions.mainnet.p2pkh,A[5]=m.versions.mainnet.p2sh,A[111]=m.versions.testnet.p2pkh,A[196]=m.versions.testnet.p2sh;const i={};i[m.versions.mainnet.p2pkh]=0,i[m.versions.mainnet.p2sh]=5,i[m.versions.testnet.p2pkh]=111,i[m.versions.testnet.p2sh]=196;function l(v,y){if(!y.match(/^[0-9a-fA-F]{40}$/))throw new Error("Invalid argument: not a hash160 hex string");return`S${(0,g.c32checkEncode)(v,y)}`}m.c32address=l;function b(v){if(v.length<=5)throw new Error("Invalid c32 address: invalid length");if(v[0]!="S")throw new Error('Invalid c32 address: must start with "S"');return(0,g.c32checkDecode)(v.slice(1))}m.c32addressDecode=b;function p(v,y=-1){const x=S.decode(v),M=(0,s.bytesToHex)(x.data),_=parseInt((0,s.bytesToHex)(x.prefix),16);let E;return y<0?(E=_,A[_]!==void 0&&(E=A[_])):E=y,l(E,M)}m.b58ToC32=p;function o(v,y=-1){const x=b(v),M=x[0],_=x[1];let E;y<0?(E=M,i[M]!==void 0&&(E=i[M])):E=y;let B=E.toString(16);return B.length===1&&(B=`0${B}`),S.encode(_,B)}m.c32ToB58=o})(df)),df}var qc;function hv(){return qc||(qc=1,(function(m){Object.defineProperty(m,"__esModule",{value:!0}),m.b58ToC32=m.c32ToB58=m.versions=m.c32normalize=m.c32addressDecode=m.c32address=m.c32checkDecode=m.c32checkEncode=m.c32decode=m.c32encode=void 0;const g=od();Object.defineProperty(m,"c32encode",{enumerable:!0,get:function(){return g.c32encode}}),Object.defineProperty(m,"c32decode",{enumerable:!0,get:function(){return g.c32decode}}),Object.defineProperty(m,"c32normalize",{enumerable:!0,get:function(){return g.c32normalize}});const S=ud();Object.defineProperty(m,"c32checkEncode",{enumerable:!0,get:function(){return S.c32checkEncode}}),Object.defineProperty(m,"c32checkDecode",{enumerable:!0,get:function(){return S.c32checkDecode}});const s=sv();Object.defineProperty(m,"c32address",{enumerable:!0,get:function(){return s.c32address}}),Object.defineProperty(m,"c32addressDecode",{enumerable:!0,get:function(){return s.c32addressDecode}}),Object.defineProperty(m,"c32ToB58",{enumerable:!0,get:function(){return s.c32ToB58}}),Object.defineProperty(m,"b58ToC32",{enumerable:!0,get:function(){return s.b58ToC32}}),Object.defineProperty(m,"versions",{enumerable:!0,get:function(){return s.versions}})})(uf)),uf}var uv=hv();const cv="0123456789ABCDEFGHJKMNPQRSTVWXYZ";function lv(m){const[g,S]=m.split("."),s=uv.c32addressDecode(g);return{version:s[0],versionChar:cv[s[0]],hash160:s[1],contractName:S}}class xr{static byteSize=20;static platform=fd;type="Native";address;constructor(g){if(xr.instanceof(g)){const S=g;this.address=S.address;return}if(typeof g=="string"){if(!xr.isValidAddress(g))throw new Error(`Invalid Stacks address ${g}`);this.address=g}else throw new Error(`Invalid Stacks address ${g}`)}unwrap(){return this.address}toString(){return this.address}toNative(){return this}toUint8Array(){return new Uint8Array(xe.Buffer.from(this.address))}toUniversalAddress(){return new xe.UniversalAddress(this.address,"keccak256")}static isValidAddress(g){try{return lv(g),!0}catch{return!1}}static instanceof(g){return g.constructor.platform===xr.platform}equals(g){return xr.instanceof(g)?g.address===this.address:g.equals(this.toUniversalAddress())}}xe.registerNative(fd,xr);async function dv(m){try{const g=await Promise.all(m.map(async S=>S()));return await Promise.all(g.map(async S=>await pv(S))),g}catch(g){throw console.error("Failed to load required packages",g),g}}async function pv(m,g){try{let S=Object.entries(m.protocols);await Promise.all(S.map(([,s])=>s()))}catch(S){throw console.error("Failed to load required packages",S),S}}async function vv(m,g,S){const s=(await dv(g)).map(A=>A.Platform);return new xe.Wormhole(m,s,S)}const ir=m=>{console.error(`Wormhole Connect: ${m}`)},st=(m,g)=>g?{[m]:g}:{},bv=(m,g)=>{if(!g)return m;for(const S in g)for(const s in g[S])m[S]||(m[S]={}),m[S][s]={...g[S][s],...m[S][s]};return m},mv=(m,g,S)=>{if(m)return m.source?.chain&&(g[m.source.chain]||(ir(`Invalid chain name "${m.source.chain}" specified for defaultInputs.source.chain`),delete m.source)),m.destination?.chain&&(g[m.destination.chain]||(ir(`Invalid chain name "${m.destination.chain}" specified for defaultInputs.destination.chain`),delete m.destination)),m.source?.token&&m.destination?.token&&m.source.token===m.destination.token&&(m.source?.chain===m.destination?.chain?ir("Source and destination cannot be the same when both chain and token are identical, check the defaultInputs configuration"):xe.isNative(m.source.token)||ir("Source and destination token cannot be the same, check the defaultInputs configuration")),m.source?.chain&&m.destination?.chain&&m.requiredChain&&(g[m.requiredChain]||ir(`Invalid network value "${m.requiredChain}" specified for defaultInputs.requiredChain`),m.destination.chain!==m.requiredChain&&m.source.chain!==m.requiredChain&&ir("Source chain or destination chain must equal the required network")),m.source?.chain&&m.source?.token&&(S.findByAddressOrSymbol(m.source.chain,m.source.token)||(ir(`Invalid token "${m.source?.token}" specified for defaultInputs.source.token`),delete m.source.token)),m.destination?.chain&&m.destination?.token&&(S.findByAddressOrSymbol(m.destination.chain,m.destination.token)||(ir(`Invalid token "${m.destination?.token}" specified for defaultInputs.destination.token`),delete m.destination.token)),m},yv=m=>m[0].toUpperCase()+m.slice(1),gv={},{REACT_APP_ETHEREUM_RPC:xv,REACT_APP_SOLANA_RPC:wv,REACT_APP_POLYGON_RPC:Mv,REACT_APP_BSC_RPC:_v,REACT_APP_AVALANCHE_RPC:Av,REACT_APP_FANTOM_RPC:Ev,REACT_APP_CELO_RPC:Sv,REACT_APP_MOONBEAM_RPC:Bv,REACT_APP_SUI_RPC:Fv,REACT_APP_APTOS_RPC:Cv,REACT_APP_BASE_RPC:Dv,REACT_APP_KLAYTN_RPC:Rv,REACT_APP_ARBITRUM_RPC:Tv,REACT_APP_OPTIMISM_RPC:Iv,REACT_APP_SCROLL_RPC:kv,REACT_APP_XLAYER_RPC:Pv,REACT_APP_MANTLE_RPC:Nv,REACT_APP_WORLDCHAIN_RPC:Ov,REACT_APP_UNICHAIN_RPC:qv,REACT_APP_BERACHAIN_RPC:Uv,REACT_APP_INK_RPC:Lv,REACT_APP_LINEA_RPC:Hv,REACT_APP_SONIC_RPC:$v,REACT_APP_SEIEVM_RPC:jv,REACT_APP_MEZO_RPC:zv,REACT_APP_PLUME_RPC:Kv,REACT_APP_HYPEREVM_RPC:Wv,REACT_APP_XRPL_RPC:Gv,REACT_APP_HYPERCORE_RPC:Vv,REACT_APP_CREDITCOIN_RPC:Zv,REACT_APP_FOGO_RPC:Xv,REACT_APP_MONAD_RPC:Yv,REACT_APP_MEGAETH_RPC:Jv,REACT_APP_MOCA_RPC:Qv}=gv,e6={...st("Ethereum",xv),...st("Solana",wv),...st("Polygon",Mv),...st("Bsc",_v),...st("Avalanche",Av),...st("Fantom",Ev),...st("Celo",Sv),...st("Moonbeam",Bv),...st("Sui",Fv),...st("Aptos",Cv),...st("Base",Dv),...st("Arbitrum",Tv),...st("Optimism",Iv),...st("Klaytn",Rv),...st("Scroll",kv),...st("Xlayer",Pv),...st("Mantle",Nv),...st("Worldchain",Ov),...st("Unichain",qv),...st("Berachain",Uv),...st("Ink",Lv),...st("Linea",Hv),...st("Sonic",$v),...st("Seievm",jv),...st("Mezo",zv),...st("Plume",Kv),...st("HyperEVM",Wv),...st("XRPLEVM",Gv),...st("HyperCore",Vv),...st("CreditCoin",Zv),...st("Fogo",Xv),...st("Monad",Yv),...st("MegaETH",Jv),...st("Moca",Qv)};function yf(m){return{...m,showFooter:m.showFooter??!0,experimental:m.experimental??{},walletConnectProjectId:m?.walletConnectProjectId??void 0}}var ge=(m=>(m[m.AVAX=1]="AVAX",m[m.BNB=2]="BNB",m[m.BSC=3]="BSC",m[m.CELO=4]="CELO",m[m.ETH=5]="ETH",m[m.FANTOM=6]="FANTOM",m[m.POLYGON=7]="POLYGON",m[m.SOLANA=8]="SOLANA",m[m.USDC=9]="USDC",m[m.GLMR=10]="GLMR",m[m.DAI=11]="DAI",m[m.USDT=12]="USDT",m[m.BUSD=13]="BUSD",m[m.WBTC=14]="WBTC",m[m.SUI=15]="SUI",m[m.APT=16]="APT",m[m.SEI=17]="SEI",m[m.BASE=18]="BASE",m[m.OSMO=19]="OSMO",m[m.TBTC=20]="TBTC",m[m.WSTETH=21]="WSTETH",m[m.ARBITRUM=22]="ARBITRUM",m[m.OPTIMISM=23]="OPTIMISM",m[m.ATOM=24]="ATOM",m[m.EVMOS=25]="EVMOS",m[m.KUJI=26]="KUJI",m[m.PYTH=27]="PYTH",m[m.INJ=28]="INJ",m[m.KLAY=29]="KLAY",m[m.NTT=30]="NTT",m[m.SCROLL=31]="SCROLL",m[m.XLAYER=32]="XLAYER",m[m.MANTLE=33]="MANTLE",m[m.WORLDCHAIN=34]="WORLDCHAIN",m[m.BERA=35]="BERA",m[m.INK=36]="INK",m[m.BTC=37]="BTC",m[m.SONIC=38]="SONIC",m[m.PLUME=39]="PLUME",m[m.FOGO=40]="FOGO",m[m.HYPE=41]="HYPE",m[m.XRP=42]="XRP",m[m.CTC=43]="CTC",m[m.MONAD=44]="MONAD",m[m.AUSD=45]="AUSD",m[m.MOCA=46]="MOCA",m))(ge||{});const t6=Object.freeze(Object.defineProperty({__proto__:null,TokenIcon:ge,createUiConfig:yf},Symbol.toStringTag,{value:"Module"})),r6=[{symbol:"ETH",decimals:18,icon:ge.ETH,tokenId:{chain:"Ethereum",address:"native"}},{symbol:"WETH",decimals:18,icon:ge.ETH,tokenId:{chain:"Ethereum",address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}},{symbol:"WMON",decimals:18,icon:ge.MONAD,name:"Wrapped MON",tokenId:{chain:"Ethereum",address:"0x6917037f8944201b2648198a89906edf863b9517"}},{symbol:"USDC",decimals:6,icon:ge.USDC,tokenId:{chain:"Ethereum",address:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"}},{symbol:"WBTC",decimals:8,icon:ge.WBTC,tokenId:{chain:"Ethereum",address:"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599"}},{symbol:"USDT",decimals:6,icon:ge.USDT,tokenId:{chain:"Ethereum",address:"0xdAC17F958D2ee523a2206206994597C13D831ec7"}},{symbol:"DAI",decimals:18,icon:ge.DAI,tokenId:{chain:"Ethereum",address:"0x6B175474E89094C44Da98b954EedeAC495271d0F"}},{symbol:"BUSD",decimals:18,icon:ge.BUSD,tokenId:{chain:"Ethereum",address:"0x4Fabb145d64652a948d72533023f6E7A623C7C53"}},{symbol:"POL",decimals:18,icon:ge.POLYGON,tokenId:{chain:"Polygon",address:"native"}},{symbol:"WPOL",decimals:18,icon:ge.POLYGON,tokenId:{chain:"Polygon",address:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270"}},{symbol:"WETH",decimals:18,icon:ge.ETH,tokenId:{chain:"Polygon",address:"0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619"}},{symbol:"USDC",decimals:6,icon:ge.USDC,tokenId:{chain:"Polygon",address:"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"}},{symbol:"USDT",decimals:6,icon:ge.USDT,tokenId:{chain:"Polygon",address:"0xc2132D05D31c914a87C6611C10748AEb04B58e8F"}},{symbol:"BNB",decimals:18,icon:ge.BNB,tokenId:{chain:"Bsc",address:"native"}},{symbol:"WBNB",decimals:18,icon:ge.BNB,tokenId:{chain:"Bsc",address:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"}},{symbol:"USDC",decimals:18,icon:ge.USDC,tokenId:{chain:"Bsc",address:"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d"}},{symbol:"AVAX",decimals:18,icon:ge.AVAX,tokenId:{chain:"Avalanche",address:"native"}},{symbol:"WAVAX",decimals:18,icon:ge.AVAX,tokenId:{chain:"Avalanche",address:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7"}},{symbol:"USDC",decimals:6,icon:ge.USDC,tokenId:{chain:"Avalanche",address:"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"}},{symbol:"USDT",decimals:6,icon:ge.USDT,tokenId:{chain:"Avalanche",address:"0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7"}},{symbol:"WETH",decimals:18,icon:ge.ETH,tokenId:{chain:"Avalanche",address:"0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB"}},{symbol:"CELO",decimals:18,icon:ge.CELO,tokenId:{chain:"Celo",address:"0x471EcE3750Da237f93B8E339c536989b8978a438"}},{symbol:"USDT",decimals:6,icon:ge.USDT,tokenId:{chain:"Celo",address:"0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e"}},{symbol:"GLMR",decimals:18,icon:ge.GLMR,tokenId:{chain:"Moonbeam",address:"native"}},{symbol:"WGLMR",decimals:18,icon:ge.GLMR,tokenId:{chain:"Moonbeam",address:"0xAcc15dC74880C9944775448304B263D191c6077F"}},{symbol:"SOL",decimals:9,icon:ge.SOLANA,tokenId:{chain:"Solana",address:"native"}},{symbol:"SOL",decimals:9,tokenId:{chain:"Solana",address:"So11111111111111111111111111111111111111112"},icon:ge.SOLANA},{symbol:"USDC",decimals:6,tokenId:{chain:"Solana",address:"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"},icon:ge.USDC},{symbol:"USDT",decimals:6,icon:ge.USDT,tokenId:{chain:"Solana",address:"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"}},{symbol:"SUI",decimals:9,tokenId:{chain:"Sui",address:"native"},icon:ge.SUI},{symbol:"USDC",decimals:6,tokenId:{chain:"Sui",address:"0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC"},icon:ge.USDC},{symbol:"APT",decimals:8,tokenId:{chain:"Aptos",address:"native"},icon:ge.APT},{symbol:"USDC",decimals:6,tokenId:{chain:"Aptos",address:"0xbae207659db88bea0cbead6da0ed00aac12edcdda169e591cd41c94180b46f3b"},icon:ge.USDC},{symbol:"ETH",decimals:18,icon:ge.ETH,tokenId:{chain:"Arbitrum",address:"native"}},{symbol:"WETH",decimals:18,icon:ge.ETH,tokenId:{chain:"Arbitrum",address:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1"}},{symbol:"USDC",decimals:6,icon:ge.USDC,tokenId:{chain:"Arbitrum",address:"0xaf88d065e77c8cC2239327C5EDb3A432268e5831"}},{symbol:"USDT",decimals:6,icon:ge.USDT,tokenId:{chain:"Arbitrum",address:"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9"}},{symbol:"ETH",decimals:18,icon:ge.ETH,tokenId:{chain:"Optimism",address:"native"}},{symbol:"WETH",decimals:18,icon:ge.ETH,tokenId:{chain:"Optimism",address:"0x4200000000000000000000000000000000000006"}},{symbol:"USDC",decimals:6,icon:ge.USDC,tokenId:{chain:"Optimism",address:"0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85"}},{symbol:"USDT",decimals:6,icon:ge.USDT,tokenId:{chain:"Optimism",address:"0x94b008aA00579c1307B0EF2c499aD98a8ce58e58"}},{symbol:"WETH",decimals:18,icon:ge.ETH,tokenId:{chain:"Bsc",address:"0x2170Ed0880ac9A755fd29B2688956BD959F933F8"}},{symbol:"USDT",decimals:18,icon:ge.USDT,tokenId:{chain:"Bsc",address:"0x55d398326f99059fF775485246999027B3197955"}},{symbol:"ETH",decimals:18,icon:ge.ETH,tokenId:{chain:"Base",address:"native"}},{symbol:"WETH",decimals:18,icon:ge.ETH,tokenId:{chain:"Base",address:"0x4200000000000000000000000000000000000006"}},{symbol:"USDC",decimals:6,icon:ge.USDC,tokenId:{chain:"Base",address:"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}},{symbol:"USDT",decimals:6,icon:ge.USDT,tokenId:{chain:"Base",address:"0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2"}},{symbol:"wstETH",decimals:18,tokenId:{chain:"Base",address:"0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452"},icon:ge.WSTETH},{symbol:"wstETH",decimals:18,tokenId:{chain:"Ethereum",address:"0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0"},icon:ge.WSTETH},{symbol:"wstETH",decimals:18,tokenId:{chain:"Arbitrum",address:"0x5979D7b546E38E414F7E9822514be443A4800529"},icon:ge.WSTETH},{symbol:"wstETH",decimals:18,tokenId:{chain:"Optimism",address:"0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb"},icon:ge.WSTETH},{symbol:"wstETH",decimals:18,tokenId:{chain:"Polygon",address:"0x03b54A6e9a984069379fae1a4fC4dBAE93B3bCCD"},icon:ge.WSTETH},{symbol:"KAIA",decimals:18,icon:ge.KLAY,tokenId:{chain:"Klaytn",address:"native"}},{symbol:"wKAIA",decimals:18,name:"wKAIA",icon:ge.KLAY,tokenId:{chain:"Klaytn",address:"0xe4f05A66Ec68B54A58B17c22107b02e0232cC817"}},{symbol:"PYTH",decimals:6,tokenId:{chain:"Solana",address:"HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3"},icon:ge.PYTH},{symbol:"ETH",decimals:18,icon:ge.SCROLL,tokenId:{chain:"Scroll",address:"native"}},{symbol:"WETH",decimals:18,icon:ge.SCROLL,tokenId:{chain:"Scroll",address:"0x5300000000000000000000000000000000000004"}},{symbol:"OKB",decimals:18,icon:ge.XLAYER,tokenId:{chain:"Xlayer",address:"native"}},{symbol:"WOKB",decimals:18,icon:ge.XLAYER,tokenId:{chain:"Xlayer",address:"0xe538905cf8410324e03A5A23C1c177a474D59b2b"}},{symbol:"MNT",decimals:18,icon:ge.MANTLE,tokenId:{chain:"Mantle",address:"native"}},{symbol:"WMNT",decimals:18,icon:ge.MANTLE,tokenId:{chain:"Mantle",address:"0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8"}},{symbol:"tBTC",decimals:18,tokenId:{chain:"Ethereum",address:"0x18084fbA666a33d37592fA2633fD49a74DD93a88"},icon:ge.TBTC},{symbol:"tBTC",decimals:18,tokenId:{chain:"Polygon",address:"0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"},icon:ge.TBTC},{symbol:"tBTC",decimals:18,tokenId:{chain:"Optimism",address:"0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"},icon:ge.TBTC},{symbol:"tBTC",decimals:18,tokenId:{chain:"Arbitrum",address:"0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"},icon:ge.TBTC},{symbol:"tBTC",decimals:18,tokenId:{chain:"Base",address:"0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"},icon:ge.TBTC},{symbol:"tBTC",decimals:8,tokenId:{chain:"Solana",address:"6DNSN2BJsaPFdFFc1zP37kkeNe4Usc1Sqkzr9C9vPWcU"},icon:ge.TBTC},{symbol:"ETH",tokenId:{chain:"Worldchain",address:"native"},decimals:18,icon:ge.WORLDCHAIN},{symbol:"WETH",tokenId:{chain:"Worldchain",address:"0x4200000000000000000000000000000000000006"},decimals:18,icon:ge.WORLDCHAIN},{symbol:"USDC",tokenId:{chain:"Worldchain",address:"0x79A02482A880bCE3F13e09Da970dC34db4CD24d1"},decimals:6,icon:ge.USDC},{symbol:"ETH",tokenId:{chain:"Unichain",address:"native"},decimals:18,icon:ge.ETH},{symbol:"WETH",tokenId:{chain:"Unichain",address:"0x4200000000000000000000000000000000000006"},decimals:18,icon:ge.ETH},{symbol:"USDC",tokenId:{chain:"Unichain",address:"0x078D782b760474a361dDA0AF3839290b0EF57AD6"},decimals:6,icon:ge.USDC},{symbol:"USDT",tokenId:{chain:"Unichain",address:"0x9151434b16b9763660705744891fA906F660EcC5"},decimals:6,icon:ge.USDT},{symbol:"BERA",tokenId:{chain:"Berachain",address:"native"},decimals:18,icon:ge.BERA},{symbol:"WBERA",tokenId:{chain:"Berachain",address:"0x6969696969696969696969696969696969696969"},decimals:18,icon:ge.BERA},{symbol:"ETH",tokenId:{chain:"Ink",address:"native"},decimals:18,icon:ge.ETH},{symbol:"ETH",tokenId:{chain:"Linea",address:"native"},decimals:18,icon:ge.ETH},{symbol:"USDC",tokenId:{chain:"Linea",address:"0x176211869cA2b568f2A7D4EE941E073a821EE1ff"},decimals:6,icon:ge.USDC},{symbol:"S",tokenId:{chain:"Sonic",address:"native"},decimals:18,icon:ge.SONIC},{symbol:"USDC",tokenId:{chain:"Sonic",address:"0x29219dd400f2Bf60E5a23d13Be72B486D4038894"},decimals:6,icon:ge.USDC},{symbol:"SEI",tokenId:{chain:"Seievm",address:"native"},decimals:18,icon:ge.SEI},{symbol:"USDC",tokenId:{chain:"Seievm",address:"0xe15fC38F6D8c56aF07bbCBe3BAf5708A2Bf42392"},decimals:6,icon:ge.USDC},{symbol:"USDC",tokenId:{chain:"Plume",address:"0x222365EF19F7947e5484218551B56bb3965Aa7aF"},decimals:6,icon:ge.USDC},{symbol:"PLUME",tokenId:{chain:"Plume",address:"native"},decimals:18,icon:ge.PLUME},{symbol:"BTC",tokenId:{chain:"Mezo",address:"native"},decimals:18,icon:ge.BTC},{symbol:"HYPE",tokenId:{chain:"HyperEVM",address:"native"},decimals:18,icon:ge.HYPE},{symbol:"wHYPE",tokenId:{chain:"HyperEVM",address:"0x5555555555555555555555555555555555555555"},decimals:18,icon:ge.HYPE},{symbol:"USDT0",tokenId:{chain:"HyperEVM",address:"0xb8ce59fc3717ada4c02eadf9682a9e934f625ebb"},decimals:6,icon:ge.USDT},{symbol:"USDC",tokenId:{chain:"HyperEVM",address:"0xb88339CB7199b77E23DB6E890353E22632Ba630f"},decimals:6,icon:ge.USDC},{symbol:"USDC",tokenId:{chain:"Ink",address:"0x2D270e6886d130D724215A266106e6832161EAEd"},decimals:6,icon:ge.USDC},{symbol:"USDC",tokenId:{chain:"HyperCore",address:"native"},decimals:6,icon:ge.USDC},{symbol:"XRP",tokenId:{chain:"XRPLEVM",address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE"},decimals:18,icon:ge.XRP},{symbol:"CTC",tokenId:{chain:"CreditCoin",address:"native"},decimals:18,icon:ge.CTC},{symbol:"FOGO",icon:ge.FOGO,decimals:9,tokenId:{chain:"Fogo",address:"native"}},{symbol:"WFOGO",icon:ge.FOGO,decimals:9,tokenId:{chain:"Fogo",address:"So11111111111111111111111111111111111111112"}},{symbol:"MON",icon:ge.MONAD,decimals:18,tokenId:{chain:"Monad",address:"native"}},{symbol:"WMON",icon:ge.MONAD,decimals:18,tokenId:{chain:"Monad",address:"0x3bd359C1119dA7Da1D913D1C4D2B7c461115433A"}},{symbol:"WETH",icon:ge.ETH,decimals:18,tokenId:{chain:"Monad",address:"0xEE8c0E9f1BFFb4Eb878d8f15f368A02a35481242"}},{symbol:"USDC",icon:ge.USDC,decimals:6,tokenId:{chain:"Monad",address:"0x754704Bc059F8C67012fEd69BC8A327a5aafb603"}},{symbol:"USDT",icon:ge.USDT,decimals:6,tokenId:{chain:"Monad",address:"0xe7cd86e13AC4309349F30B3435a9d337750fC82D"}},{symbol:"WBTC",icon:ge.WBTC,decimals:8,tokenId:{chain:"Monad",address:"0x0555E30da8f98308EdB960aa94C0Db47230d2B9c"}},{symbol:"AUSD",icon:ge.AUSD,decimals:6,tokenId:{chain:"Arbitrum",address:"0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a"}},{symbol:"AUSD",icon:ge.AUSD,decimals:6,tokenId:{chain:"Avalanche",address:"0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a"}},{symbol:"AUSD",icon:ge.AUSD,decimals:6,tokenId:{chain:"Base",address:"0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a"}},{symbol:"AUSD",icon:ge.AUSD,decimals:6,tokenId:{chain:"Bsc",address:"0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a"}},{symbol:"AUSD",icon:ge.AUSD,decimals:6,tokenId:{chain:"Ethereum",address:"0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a"}},{symbol:"AUSD",icon:ge.AUSD,decimals:6,tokenId:{chain:"Mantle",address:"0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a"}},{symbol:"AUSD",icon:ge.AUSD,decimals:6,tokenId:{chain:"Monad",address:"0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a"}},{symbol:"AUSD",icon:ge.AUSD,decimals:6,tokenId:{chain:"Plume",address:"0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a"}},{symbol:"AUSD",icon:ge.AUSD,decimals:6,tokenId:{chain:"Polygon",address:"0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a"}},{symbol:"AUSD",icon:ge.AUSD,decimals:6,tokenId:{chain:"Solana",address:"AUSD1jCcCyPLybk1YnvPWsHQSrZ46dxwoMniN4N2UEB9"}},{symbol:"AUSD",icon:ge.AUSD,decimals:6,tokenId:{chain:"Sui",address:"0x2053d08c1e2bd02791056171aab0fd12bd7cd7efad2ab8f6b9c8902f14df2ff2::ausd::AUSD"}},{symbol:"ETH",icon:ge.ETH,decimals:18,tokenId:{chain:"MegaETH",address:"native"}},{symbol:"MOCA",tokenId:{chain:"Moca",address:"native"},decimals:18,icon:ge.MOCA}],i6={Ethereum:{"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2":{Bsc:"0x4DB5a66E937A9F4473fA95b1cAF1d1E1D62E29EA",Polygon:"0x11CD37bb86F65419713f30673A480EA33c826872",Avalanche:"0x8b82A291F83ca07Af22120ABa21632088fC92931",Fantom:"0x2A126f043BDEBe5A0A9841c51915E562D9B07289",Celo:"0x66803FB87aBd4aaC3cbB3fAd7C3aa01f6F3FB207",Moonbeam:"0xab3f0245B83feB11d15AAffeFD7AD465a59817eD",Solana:"7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs",Sui:"0xaf8cd5edc19c4512f4259f0bee101a40d41ebed738ade5874359610ef8eeced5::coin::COIN",Aptos:"0xcc8a89c8dce9693d354449f1f73e60e14e347417854f029db5bc8e7454008abb::coin::T",Base:"0x71b35ECb35104773537f849FBC353F81303A5860",Arbitrum:"0xD8369C2EDA18dD6518eABb1F85BD60606dEb39Ec",Optimism:"0xb47bC3ed6D70F04fe759b2529c9bc7377889678f",Mantle:"0x115Fcc627AcE0457fbeb7Af3b8BcAcE7Ff6211A4",Klaytn:"0x98A8345bB9D3DDa9D808Ca1c9142a28F6b0430E1",Worldchain:"0x6938c3EfFEf84E5C69e3d7cc41eBC6Cff99EF8A7"},"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48":{Bsc:"0xB04906e95AB5D797aDA81508115611fee694c2b3",Polygon:"0x4318CB63A2b8edf2De971E2F17F77097e499459D",Avalanche:"0xB24CA28D4e2742907115fECda335b40dbda07a4C",Fantom:"0x2Ec752329c3EB419136ca5e4432Aa2CDb1eA23e6",Celo:"0x37f750B7cC259A2f741AF45294f6a16572CF5cAd",Moonbeam:"0x931715FEE2d06333043d11F658C8CE934aC61D0c",Solana:"A9mUU4qviSctJVPJdBJWkb28deg915LYJKrzQ19ji3FM",Sui:"0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf::coin::COIN",Aptos:"0x5e156f1207d0ebfa19a9eeff00d62a282278fb8719f4fab3a586a0a2c0fffbea::coin::T",Base:"0xec267C53f53807c2337C257f8AC3Fc3cC07cc0ed",Arbitrum:"0xC96F2715E2a242d50D1b0bC923dbe1740b8eCf18",Optimism:"0x711e53D031ea9B0bb0C24dD506df11b41AEA419e",Klaytn:"0x608792Deb376CCE1c9FA4D0E6B7b44f507CfFa6A",Worldchain:"0x2cbD3491d687A76bb9C53c30B212855520D47b52"},"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599":{Bsc:"0x43359676E1A3F9FbB5de095333f8e9c1B46dFA44",Polygon:"0x5D49c278340655B56609FdF8976eb0612aF3a0C3",Avalanche:"0x1C0e79C5292c59bbC13C9F9f209D204cf4d65aD6",Fantom:"0x87e9E225aD8a0755B9958fd95BE43DD6A91FF3A7",Celo:"0xd71Ffd0940c920786eC4DbB5A12306669b5b81EF",Moonbeam:"0xE57eBd2d67B462E9926e04a8e33f01cD0D64346D",Solana:"3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh",Sui:"0x027792d9fed7f9844eb4839566001bb6f6cb4804f66aa2da6fe1ee242d896881::coin::COIN",Aptos:"0xae478ff7d83ed072dbc5e264250e67ef58f57c99d89b447efd8a0a2e8b2be76e::coin::T",Base:"0xE6396f780b543dF16ee3b784D789c75B68319db0",Arbitrum:"0x397846a8078d4845c7f5c6Ca76aeBbcFDc044fAe",Optimism:"0xB214C19d81c99E75e84706a3aa0A757319023e26",Klaytn:"0x981846bE8d2d697f4dfeF6689a161A25FfbAb8F9",Worldchain:"0x06c9ec7E18A7900E79Ad5BeCc6Cc29E3eebD81EC"},"0xdAC17F958D2ee523a2206206994597C13D831ec7":{Bsc:"0x524bC91Dc82d6b90EF29F76A3ECAaBAffFD490Bc",Polygon:"0x9417669fBF23357D2774e9D421307bd5eA1006d2",Avalanche:"0x9d228444FC4B7E15A2C481b48E10247A03351FD8",Fantom:"0x14BCb86aEed6a74D3452550a25D37f1c30AA0A66",Celo:"0x617f3112bf5397D0467D315cC709EF968D9ba546",Moonbeam:"0xc30E9cA94CF52f3Bf5692aaCF81353a27052c46f",Solana:"Dn4noZ5jgGfkntzcQSUZ8czkreiZ1ForXYoV2H8Dm7S1",Sui:"0xc060006111016b8a020ad5b33834984a437aaa7d3c74c18e09a95d48aceab08c::coin::COIN",Aptos:"0xa2eda21a58856fda86451436513b867c97eecb4ba099da5775520e0f7492e852::coin::T",Base:"0xFf0C62A4979400841eFaA6faADb07Ac7d5C98b27",Arbitrum:"0xE4728F3E48E94C6DA2B53610E677cc241DAFB134",Optimism:"0xf6B4185FCf8aF291c0E3927fbEab7046b4f6A8CA",Klaytn:"0x5C13E303a62Fc5DEdf5B52D66873f2E59fEdADC2",Xlayer:"0x5866709f926f26C5870191F40333ac462B917bC0",Worldchain:"0x95dd0680Fd6B6c7546e75C1A4E6A3256072C0593"},"0x6B175474E89094C44Da98b954EedeAC495271d0F":{Bsc:"0x3413a030EF81a3dD5a302F4B4D11d911e12ed337",Polygon:"0x732EB1747ecCFC431fF19bc359ffc83755B1918c",Avalanche:"0xca319f81D147559e19A522A0a0310Dd43A96cA0F",Fantom:"0xEE786D3D73Ea645365c7248E4e40eDba08B1169F",Celo:"0x97926a82930bb7B33178E3c2f4ED1BFDc91A9FBF",Moonbeam:"0x06e605775296e851FF43b4dAa541Bb0984E9D6fD",Solana:"EjmyN6qEC1Tf1JxiG1ae7UTJhUxSwk1TCWNWqxWV4J6o",Aptos:"0x407a220699982ebb514568d007938d2447d33667e4418372ffec1ddb24491b6c::coin::T",Base:"0x617Edadb51BfB43A44Bb91C7402129C23bA52381",Arbitrum:"0x5c4f2FEFB97F7DF09E762d95C83f0Ccf8bCe8234",Optimism:"0x098EA47D630b46df1E08e389e5e4466119c7dd30",Sui:"0xc01c54cd767a60835bf100b0a8f7aae66ac9f4e374f76746af60f02493b6f2cf::coin::COIN",Klaytn:"0xCB2C7998696Ef7a582dFD0aAFadCd008D03E791A",Worldchain:"0x69635e59E89000e08a13C3F7B9f7293160Dc83a2"},"0x4Fabb145d64652a948d72533023f6E7A623C7C53":{Bsc:"0x035de3679E692C471072d1A09bEb9298fBB2BD31",Polygon:"0x95ea750420da26bE1Ab0891e209e921bCd84763f",Celo:"0x1dd42c0785ca90B677adc2ABad01dfc5ECcD0b4d",Moonbeam:"0xa2284e1F98E4d0B7Eb6a6b4f3C57f1b209C755F3",Solana:"33fsBLA8djQm82RpHmE3SuVrPGtZBWNYExsEUeKX1HXX",Aptos:"0x77400d2f56a01bad2d7c8c6fa282f62647ce3c03f43f2a8742e47ea01a91e24a::coin::T",Worldchain:"0x276719Fc6a38E62B717c6FF6E39d1C336ee633AB"},"0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0":{Polygon:"0xe082a7Fc696De18172Ad08D956569Ee80BC37f06",Solana:"ZScHuTtqZukUrtZS43teTKGs2VqkKL8k4QCouR2n6Uo",Arbitrum:"0xf2717122Dfdbe988ae811E7eFB157aAa07Ff9D0F",Optimism:"0x855CFcEEe998c8ca34F9c914F584AbF72dC88B87",Base:"0xEd4e2FD35161c3c0e33cA187fce64C70d44Ce32b",Bsc:"0xad80E1A9B5824234afA9dE1F3bbDb8a994796169",Avalanche:"0x11449fd2F05D93827972b40adE96F6ffBE42E35a",Fantom:"0x2a2Ec6Ad3e47C536F47934F63b95BD647F1C730E",Worldchain:"0xd977e0251db8d38155dC5d212944AB7B7a6777Ad"}},Polygon:{"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270":{Ethereum:"0x7c9f4C87d911613Fe9ca58b579f737911AAD2D43",Bsc:"0xc836d8dC361E44DbE64c4862D55BA041F88Ddd39",Avalanche:"0xf2f13f0B7008ab2FA4A2418F4ccC3684E49D20Eb",Fantom:"0xb88A6064B1F3FF5B9AE4A82fFD52560b0dF9FBD3",Celo:"0x9C234706292b1144133ED509ccc5B3CD193BF712",Moonbeam:"0x82DbDa803bb52434B1f4F41A6F0Acb1242A7dFa3",Solana:"Gz7VkD4MacbEB6yC5XD3HcumEiYx2EtDYYrfikGsvopG",Sui:"0xdbe380b13a6d0f5cdedd58de8f04625263f113b3f9db32b3e1983f49e2841676::coin::COIN",Aptos:"0x6781088e2a1629d38eda521467af4a8ca7bfa7e5516338017940389595c85c0f::coin::T",Base:"0xc863399E5c5C4011B1DC3fB602902C77BA72B709",Arbitrum:"0x3ab0E28C3F56616aD7061b4db38aE337E3809AEA",Optimism:"0x8f02B6a32cebcAe44D2Fd17d87966f5B5dD14c6d",Mantle:"0x1d15Dc3B3DB5A182eA8E3091F21EB0549d4a72E0",Klaytn:"0x9858e5A4f8202baD619D4BD39382CA67F4CA0E63",Scroll:"0x982D057feCD66c3af27b16EBC67C4db24810bcD8",Xlayer:"0xc97E2b2d7730C34adC389563721d9dF52EDA4A2a",Worldchain:"0xDcB507ECEA06724d8c4F2f03964f7EE4da504E8C"},"0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619":{Bsc:"0x1384284E16e3375522Be54F50909Bc52A69e90e4",Solana:"DQyeU3oFezEGia761GQ4iPcMCnxnH8fuLrmHZUvTYuby",Aptos:"0x2692323828f627a45a75a05eba8281dd46690c538b4f6ccb7a35ffe8199a28b7::coin::T",Sui:"0xa1ed6e76b06ff8f959cc479fbbd423820a3349dad8707b98ff4309c677fa20ad::coin::COIN",Arbitrum:"0xd2b299eD76d1369Ac8762CFEc85245fFD302FC17",Ethereum:"0x32d222E1f6386B3dF7065d639870bE0ef76D3599",Avalanche:"0x061FE51530768889dc20Ac7fCD29b5307b823395",Optimism:"0x2740220fFa4b206280907ce12b7cDC57445f3B92",Fantom:"0x1cAFd8d3301E4E54Fc1462E7117Eb678bF50C765",Base:"0x7A79923734eDA9c7f7ff69ad9ec1e234F67E7CD6",Moonbeam:"0xf1BB9A987B9edC360580b0c9F28069C808c2a7da",Celo:"0x8Ed68859f162970258992168293232e3Bdd987d0",Klaytn:"0x3eb25C7098AC38a852Cd2366161c5e216af50Df3"},"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359":{Aptos:"0xc5fd7820e9f053e6dd8e7dd8ca3ce8e9b10d200ba1692bdeb7a035217180ad4a::coin::T",Base:"0xFe1579BAc60363c8572CB30Bf4DD1Fd85811BBF8",Moonbeam:"0x4415BfBDee669446550d55c749007EF60B520FC8",Sui:"0x5c8c9082401982e8c2519a5c12883a5475295bf5cec4a0a13c26d35dd9a20d73::coin::COIN",Bsc:"0xe6d82Bbe75041E42E51d755e922cE1BA91af9c4d",Celo:"0x42c76808f3179A091Ee007A2955aF2522978ADE7",Fantom:"0xB4DcfD221048a1Dad989D39456BBd87762c26F06",Avalanche:"0xDb2d08f5A9C9ADBBA0DE5a69bbB1E9Ca03411692",Arbitrum:"0x599ADB10E6A012dF34935D47407450f6D7170e3C",Optimism:"0xbB1EaB9Eb8fDf65F0E291D013DA07B4b65a27a01",Solana:"C321jHPwWBzgfSGndosDTp5pBsiXPyMU1irxKLVcedRB",Ethereum:"0xFbcE0f9e92AD1003e893Ba647bC055D845aAa507",Klaytn:"0x59AEaD999e018a00B162D34de7a81AFFAB88bAbB"},"0x03b54A6e9a984069379fae1a4fC4dBAE93B3bCCD":{Base:"0xcB6D47199d60747152d7671D6497ce8D23cc1D75",Arbitrum:"0x23D3901A635fDd98D8d6509bc0720281f80a8E6D",Ethereum:"0x302F636d723c8Ed75C0d1E9D9C714009184C5624",Optimism:"0x4fad81d2268a7D9E1e0fE7dB38af07FFFA0aA56E",Celo:"0xA4c7302659eCF88a90e62e915Bd486E66B616A4C"}},Bsc:{"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c":{Ethereum:"0x418D75f65a02b3D53B2418FB8E1fe493759c7605",Polygon:"0xeCDCB5B88F8e3C15f95c720C51c71c9E2080525d",Avalanche:"0x442F7f22b1EE2c842bEAFf52880d4573E9201158",Fantom:"0xc033551e05907Ddd643AE14b6D4a9CA72BfF509B",Celo:"0xBf2554ce8A4D1351AFeB1aC3E5545AaF7591042d",Moonbeam:"0xE3b841C3f96e647E6dc01b468d6D0AD3562a9eeb",Solana:"9gP2kCy3wA1ctvYWQk75guqXuHfrEomqydHLtcTCqiLa",Sui:"0xb848cce11ef3a8f62eccea6eb5b35a12c4c2b1ee1af7755d02d7bd6218e8226f::coin::COIN",Aptos:"0x6312bc0a484bc4e37013befc9949df2d7c8a78e01c6fe14a34018449d136ba86::coin::T",Base:"0x7fdAa50d7399ac436943028edA6ed9a1BD89509f",Arbitrum:"0x7AF00405916D823eDb1121546EfA6F4972B51b84",Optimism:"0x6A09fE65ACa27C12573F04aAFa290bD75497E1BC",Mantle:"0x9a7E85260d6F5d3c3d2a1FdDc3D980DBC78e508d",Klaytn:"0xaC9C1E4787139aF4c751B1C0fadfb513C44Ed833",Scroll:"0x5b0da0a36DC415714B53A4f24b56921332F42E7C",Xlayer:"0x8bC46166E06122603bA10D2bCA63b75091c25cAe",Worldchain:"0x59163d9c70E9b3852a504c5F1458e2daD33516Ff"},"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d":{Ethereum:"0x7cd167B101D2808Cfd2C45d17b2E7EA9F46b74B6",Polygon:"0x4B3a922c773BDCF3BA8f1A4FDAc2029E1D0E9868",Avalanche:"0x6145E8a910aE937913426BF32De2b26039728ACF",Fantom:"0x0FcbDAC44c67A43607D3E95886dB19871ADc985F",Celo:"0x9d9abAE97a9344e3854527b4efbB366a1564bfEb",Moonbeam:"0x7f433E22366E03a3758CE22cCf82887d828078f8",Solana:"FCqfQSujuPxy6V42UvafBhsysWtEq1vhjfMN1PUbgaxA",Sui:"0x909cba62ce96d54de25bec9502de5ca7b4f28901747bbf96b76c2e63ec5f1cba::coin::COIN",Aptos:"0x79a6ed7a0607fdad2d18d67d1a0e552d4b09ebce5951f1e5c851732c02437595::coin::T",Base:"0x68E2b07F92ed506f92935d7359ECA84D5342dbb4",Arbitrum:"0x1a0590F951bc9C3818Ce75ba5Bbe92831b2cf57e",Optimism:"0x1C15057d1F3794C934a6cBC1f7EceE934050F219",Klaytn:"0x01B342d26FEF5749E87CBe412e16163771b0277c"},"0x2170Ed0880ac9A755fd29B2688956BD959F933F8":{Aptos:"0xd9fc4259ec5def95477dba9f0861c2882d1f8bee9a4138b476dd0720a3444547::coin::T",Solana:"FzjTz2cD1DfqYvafrbHWZvf1dK9qjwXGLuaU7xYXQjxP",Sui:"0x5029d5a94429a73b8036cd67192d9c5e09bbc2c0fee942d50075a9edba66744f::coin::COIN",Base:"0xf50509Bb6aF76E20c6E1eD493699c5f70764BcCC",Arbitrum:"0x6478377A399bE8c92bD35254aA7bF287836de32e",Ethereum:"0x5DbBB101CDc29443d12055eCDDdD7ca037Dce721",Fantom:"0xc511E3aec79CABD605021C237c475Ec553B002d4",Celo:"0x09F236D3708894581b1Cf679e582ba9eA5BE16f0",Klaytn:"0x4C07075BB44076106f3389766946b79784Fb5C58",Avalanche:"0xf0e509144CfA602d0A5e8C75d76FF74077f52f2b",Optimism:"0x8088Bc767c392b5769b94c9ec1D07c62874c8d5f",Polygon:"0x2D291e940DbDdaa9E847Ba5cC49451575f086b27",Moonbeam:"0xBefd7902B682938b29B3FD3D4AdECD9A984D5930"}},Avalanche:{"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7":{Ethereum:"0x85f138bfEE4ef8e540890CFb48F620571d67Eda3",Bsc:"0x96412902aa9aFf61E13f085e70D3152C6ef2a817",Polygon:"0x7Bb11E7f8b10E9e571E5d8Eace04735fDFB2358a",Fantom:"0x358CE030DC6116Cc296E8B9F002728e65459C146",Celo:"0xFFdb274b4909fC2efE26C8e4Ddc9fe91963cAA4d",Moonbeam:"0xd4937A95BeC789CC1AE1640714C61c160279B22F",Solana:"KgV1GvrHQmRBY8sHQQeUKwTm2r2h8t4C8qt12Cw1HVE",Sui:"0x1e8b532cca6569cab9f9b9ebc73f8c13885012ade714729aa3b450e0339ac766::coin::COIN",Aptos:"0x5b1bbc25524d41b17a95dac402cf2f584f56400bf5cc06b53c36b331b1ec6e8f::coin::T",Base:"0xc449A60A31E1eebFE83c42E9465fd4Dc318aE9a7",Arbitrum:"0x565609fAF65B92F7be02468acF86f8979423e514",Optimism:"0x8418C1d909842f458c9394886b83F19d62bF1A0D",Mantle:"0x2cAb4233d42043AEBbbb1445af362Ef686f3C133",Klaytn:"0x45830b92443a8f750247da2A76C85c70d0f1EBF3",Scroll:"0xC043c8A3672f397e7b52bF0a04F47d6f1aA952Ed",Xlayer:"0x5208Fb676B2DBab7aFaFB56e8997237F0ceECF71",Worldchain:"0x5Bf2A0622aa1254D963A3074b593A379784C116a"},"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E":{Ethereum:"0x39EbF69137D98FB7659Ef8D4ea21ec26394389d7",Bsc:"0xc88Dc63bf0c8c8198C97Db0945E3eF25Ca89A8e4",Polygon:"0xAEA5CC14DefbC1b845FDE729E563B717Ee6825ae",Fantom:"0xEfE7701cb2B80664385Be226d0300912CA92f66A",Celo:"0x62FFf2D2D1692D52eAf043AeeC727F7918d269D3",Moonbeam:"0xd4918c40cA9f02d42Cb53d06587aF42017Bc345D",Solana:"FHfba3ov5P3RjaiLVgh8FTv4oirxQDoVXuoUUDvHuXax",Sui:"0xe596782fbaebef51ae99ffac8731aed98a80642b9dc193ed659c97fbc2cc0f84::coin::COIN",Aptos:"0x39d84c2af3b0c9895b45d4da098049e382c451ba63bec0ce0396ff7af4bb5dff::coin::T",Arbitrum:"0x93e0FcbEd43CD6fC30DF00CcBD4669718dc74e77",Optimism:"0x355f0a8a7ecAeD971b8Fbd50994558291ff2413a",Base:"0xD83385fE100E20c269a5975D4Bf92525BcE09F87",Klaytn:"0x9C97D4c09679Dfd00A39681f6d3b61A285312B13",Scroll:"0xbEFc3d0457fB88f82364Dd982F7BA195FEE96b74"},"0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB":{Aptos:"0x25ff8e0c07552c392c9e5dd4c9c07cf0382765c1bca560e80b6296a702034219::coin::T",Solana:"F9B9qLwUN3TAWGV9EGsuzFzS2PxWvKAmLhvfeqYNaS7J",Bsc:"0xBDfe278268524de38Da89B3023C1F49deBDFdA8A",Sui:"0xc1ea686a329e35808c61484d95904d50522f1d1616cab4b416d9cfa9b274bc6c::coin::COIN",Base:"0xEfe64b52bc0bDfa109790736F25cefb79724adF0",Arbitrum:"0xdF64fB41b7f45304a786695E0D5daD8d033C01eF",Polygon:"0x2912b3a9586Fc2AB177dC869e878c688DAA7d06E",Ethereum:"0xD85a87Edbe9fB3Baf6a1Bbd1E46f1C04B291331d",Optimism:"0xBe6EA3e70e2bbB0dbD093B657fbbc0DFF0BA67eC",Moonbeam:"0x9C673c6b651D6FDEF57441125A6AC16b08bba939",Celo:"0xDac2C97b5E64d7C79d040cd2906EBe02341F1Ab5",Klaytn:"0x9971F9d9170D787C4e4E01c56E1BDB308291CacF",Fantom:"0x86a09597fc91b116511B990D29CB46ddedC0fCb0"}},Fantom:{"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83":{Ethereum:"0x4cD2690d86284e044cb63E60F1EB218a825a7e92",Bsc:"0xbF8413EE8612E0E4f66Aa63B5ebE27f3C5883d47",Polygon:"0x3726831304D77f585f1Aca9d9841cc3Ef80dAa62",Avalanche:"0xd19abc09B7b36F7558929b97a866f499a26c2f83",Celo:"0xd1A342eE2210238233a347FEd61EE7Faf9f251ce",Moonbeam:"0x609AedD990bf45926bca9E4eE988b4Fb98587D3A",Solana:"DRQBDBEWmwWGK13fRTLhSPzjbvMSUavhV6nW4RUH8W6T",Sui:"0x6081300950a4f1e2081580e919c210436a1bed49080502834950d31ee55a2396::coin::COIN",Aptos:"0xd1aa2ff36a0e93e1b4e4fecdecf8bb95bc5de399061c5e84b515281f48718842::coin::T",Base:"0x936Fa2DE8380Dc5BF34C80F1BaD53a9f3630263B",Arbitrum:"0x7f7dcDb91930033a4Eb269196EBb6fd5f0644E4B",Optimism:"0x0b0ecbe5C3995541876d27633B63296570FB34Af",Mantle:"0x6BFDc59ECBC5503aE16F71851064597D0a75dA76",Klaytn:"0xF3AebeA789F30C22F3657F70f4CaA0f8b49ed676",Scroll:"0x16f077e2e9bF99Adfb1FEEc8360ee002842C44A2",Xlayer:"0x956b5E88c311b976C76CB415C7E030A5Af87373b"},"0x2F733095B80A04b38b0D10cC884524a3d09b836a":{Bsc:"0x521af8b1c43B503BE91F542d82EEFEabc0C93340",Arbitrum:"0xF68734163731ad6A6108f76A8e09862C1d412B42",Ethereum:"0xfcC349c14013EdeFAAcAE09Ba30F4ef2571b8D2c"}},Celo:{"0x471EcE3750Da237f93B8E339c536989b8978a438":{Ethereum:"0x3294395e62F4eB6aF3f1Fcf89f5602D90Fb3Ef69",Bsc:"0x2A335e327a55b177f5B40132fEC5D7298aa0D7e6",Polygon:"0x922F49a9911effc034eE756196E59BE7b90D43b3",Avalanche:"0x494317B8521c5a5287a06DEE467dd6fe285dA4a8",Fantom:"0xF432490C6c96C9d3bF523a499a1CEaFd8208A373",Moonbeam:"0xc1a792041985F65c17Eb65E66E254DC879CF380b",Solana:"9kvAcwQbqejuJMd59mKuw2bfSsLRaQ7zuvaTVHEeBBec",Sui:"0xa198f3be41cda8c07b3bf3fee02263526e535d682499806979a111e88a5a8d0f::coin::COIN",Aptos:"0xac0c3c35d50f6ef00e3b4db6998732fe9ed6331384925fe8ec95fcd7745a9112::coin::T",Base:"0x74df3823aA29D278cAD0A3632fCB56C896a38eD4",Arbitrum:"0x4E51aC49bC5e2d87e0EF713E9e5AB2D71EF4F336",Optimism:"0x9b88D293b7a791E40d36A39765FFd5A1B9b5c349",Klaytn:"0xB2b5bC9bc872c7107CBC8E8e0E2805Db0ac4FBc2",Worldchain:"0x2250A0E2532A745b585B69dd2CdC75207384917c"}},Moonbeam:{"0xAcc15dC74880C9944775448304B263D191c6077F":{Ethereum:"0x93d3696A9F879b331f40CB5059e37015423A3Bd0",Bsc:"0x1C063db3c621BF901FC6C1D03328b08b2F9bbfba",Polygon:"0xcC48d6CF842083fEc0E01d913fB964b585975F05",Avalanche:"0x375aA6C67BF499fBf01804A9f92C03c0776F372d",Fantom:"0xBF227E92D6754EB4BFE26C40cb299ff2809Da45f",Celo:"0x383A5513AbE4Fe36e0E00d484F710148E348Aa9D",Solana:"7ixSaXGsHAFy34wogPk2YXiUX3BMmQMFdercdaHLnBby",Sui:"0x66f87084e49c38f76502d17f87d17f943f183bb94117561eb573e075fdc5ff75::coin::COIN",Aptos:"0x7ab1283a7b13c4254d4e1f803d7ce6578442c1d7a40d0faee41cd48ba4884c8a::coin::T",Base:"0xfdB7311BeC3b2CcCF8407d0585f81B97b3b5eff1",Arbitrum:"0x944C5b67a03e6Cb93Ae1E4B70081f13b04CDB6Bd",Optimism:"0xbffD46DFDb8d3a02b8D2E0F864a2cD712090a4D3",Klaytn:"0x52a4558f98dDc7cb40cd9114C005f0B9571258Fc",Scroll:"0x2Aba1Ed24EaFC17F801b1A7dF1c3a06737F8aB72",Xlayer:"0xE2a44Dad57004517738FbD84cdf09Bd1451b4e43",Worldchain:"0xaAe2Bd4EB640f02dD3a53bd994ad19110b4191b0"}},Solana:{So11111111111111111111111111111111111111112:{Ethereum:"0xD31a59c85aE9D8edEFeC411D448f90841571b89c",Bsc:"0xfA54fF1a158B5189Ebba6ae130CEd6bbd3aEA76e",Polygon:"0xd93f7E271cB87c23AaA73edC008A79646d1F9912",Avalanche:"0xFE6B19286885a4F7F55AdAD09C3Cd1f906D2478F",Fantom:"0xd99021C2A33e4Cf243010539c9e9b7c52E0236c1",Celo:"0x4581E64115d46CcdeE65Be2336bEc86c9BA54C01",Moonbeam:"0x99Fec54a5Ad36D50A4Bba3a41CAB983a5BB86A7d",Sui:"0xb7844e289a8410e50fb3ca48d69eb9cf29e27d223ef90353fe1bd8e27ff8f3f8::coin::COIN",Aptos:"0xdd89c0e695df0692205912fb69fc290418bed0dbe6e4573d744a6d5e6bab6c13::coin::T",Base:"0x1C61629598e4a901136a81BC138E5828dc150d67",Arbitrum:"0x2bcC6D6CdBbDC0a4071e48bb3B969b06B3330c07",Optimism:"0xba1Cf949c382A32a09A17B2AdF3587fc7fA664f1",Mantle:"0xDA03239f428c76A527e1ceCa0ecA6cC367A2D945",Klaytn:"0xfAA03A2AC2d1B8481Ec3fF44A0152eA818340e6d",Xlayer:"0x3a859D92da2E16Ad32C5C6F3ADAddFBa4dE3A47e",Scroll:"0xCDf95E1F720caade4b1DC83ABfE15400D2a458AD",Worldchain:"0xEfae32D1c15EDBaEA3ebdDe1e2C51003AED04d30",Unichain:"0xbdE8A5331E8Ac4831cf8ea9e42e229219EafaB97",Fogo:"HLc5hqihQGFU68488j7HkdyF6rywyJfV46BN6Dn8W5ug",Monad:"0xea17E5a9efEBf1477dB45082d67010E2245217f1",MegaETH:"0x9a96e366f6b2ed5850a38b58d355a80afd998411"},EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v:{Ethereum:"0x41f7B8b9b897276b7AAE926a9016935280b44E97",Bsc:"0x91Ca579B0D47E5cfD5D0862c21D5659d39C8eCf0",Polygon:"0x576Cf361711cd940CD9C397BB98C4C896cBd38De",Avalanche:"0x0950Fc1AD509358dAeaD5eB8020a3c7d8b43b9DA",Fantom:"0xb8398DA4FB3BC4306B9D9d9d13d9573e7d0E299f",Celo:"0x8B6eef6C449D3Ac723a9C06a9eaE2dCd7d308BA9",Moonbeam:"0x098d6eE48341D6a0a0A72dE5baaF80A10E0F6082",Sui:"0xb231fcda8bbddb31f2ef02e6161444aec64a514e2c89279584ac9806ce9cf037::coin::COIN",Aptos:"0xc91d826e29a3183eb3b6f6aa3a722089fdffb8e9642b94c5fcd4c48d035c0080::coin::T",Arbitrum:"0x3870546cfd600ba87e4180686d29dC993A45d3B7",Optimism:"0x6F974A6dfD5B166731704Be226795901c45Bb815",Base:"0xe8CE40EBBB844142400D21558a2F1c9683d69139",Klaytn:"0xa1a7feeD29EbFa38079D943486c23f401939Ce80",Scroll:"0x883Ccb5aEfD0084f1e4D04b133675acd6D5F123F"},HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3:{Aptos:"0x770211b47954e15bec1a4271bf33bacebc2d2adb43b7dc1ca45efa787615dd4c::coin::T",Bsc:"0xb0188B0bb2cD4a6D2744637fC83C94a284B247Da",Base:"0x4c5d8A75F3762c1561D96f177694f67378705E98",Celo:"0x985aa4814419ba338379A634785216301e51113D",Avalanche:"0x8A0691e602B7a5FCc51a27E4a08376dE50889B42",Polygon:"0xFa4B761A1e07909Ba31331a5dfa12390E3ff5583",Fantom:"0x77ad3B2dA29FBd208F12c3C701E969F4422aAD79",Optimism:"0x99C59ACeBFEF3BBFB7129DC90D1a11DB0E91187f",Ethereum:"0xeFc0CED4B3D536103e76a1c4c74F0385C8F4Bdd3",Arbitrum:"0xE4D5c6aE46ADFAF04313081e8C0052A30b6Dd724",Sui:"0x9c6d76eb273e6b5ba2ec8d708b7fa336a5531f6be59f326b5be8d4d8b12348a4::coin::COIN",Moonbeam:"0x27cc3FDbDD1F415b09a41232D0fD71345DAB8030",Xlayer:"0x057b766b3fB76527cf815c3b5C38Dfa8144335CF",Worldchain:"0x838f3045F3B2dcDFF8cB4e5CaB0c0092A69B790a"}},Sui:{native:{Ethereum:"0x84074EA631dEc7a4edcD5303d164D5dEa4c653D6",Bsc:"0x8314f6Bf1B4dd8604A0fC33C84F9AF2fc07AABC8",Polygon:"0x34bE049fEbfc6C64Ffd82Da08a8931A9a45f2cc8",Avalanche:"0x1703CB0F762D2a435199B64Ea47E5349B7C17480",Fantom:"0xC277423a21F6e32D886BF85Ef6cCB945d5D28347",Celo:"0x1Cb9859B1A16A67ef83A0c7b9A21eeC17d9a97Dc",Moonbeam:"0x484eCCE6775143D3335Ed2C7bCB22151C53B9F49",Solana:"G1vJEgzepqhnVu35BN4jrkv3wVwkujYWFFCxhbEZ1CZr",Aptos:"0xa72a97e872be9ee3d2f14d56fd511eb7e4a53f4055be3a267d8602e7685b41c0::coin::T",Base:"0x36c6FBF7B49bF65f5F82b674af219C05b2a4aDD1",Arbitrum:"0xCF79d86B8a830030aF6D835737d6eac3bE823fD7",Optimism:"0x27A533e438892DA192725b4C9AcA51447F457212",Mantle:"0x9ef1BB6072d7d6B9C935d9c040133036aD532119",Klaytn:"0xB0B40516293e0204fB376A18aA230A210cbE0305",Xlayer:"0xEa76dBFE6e449420f294e74E057518F750E99A16",Worldchain:"0xf69005c35B5d9AcC22E4DbCf52f892cAE21F83B0"}},Aptos:{native:{Ethereum:"0x8CDf7AF57E4c8B930e1B23c477c22f076530585e",Bsc:"0x2Ba98cf7Edd2c5C794e21bc3Dc6973D3C2585eE3",Polygon:"0xa4ef199d3ad524E9C3C51Ac46B303B103A307Cef",Avalanche:"0x43c588459b3243fA541B98CC4B2E995b3de553A2",Fantom:"0x3Cd9162Ca5256b8E26A0e3Ad14CCfF7C0Da0F174",Celo:"0x89F2b718Ca518db39d377F0ABBa6B42582b549F7",Moonbeam:"0x25331575641d35D9765e1934acC8F0991c58e904",Solana:"6LNeTYMqtNm1pBFN8PfhQaoLyegAH8GD32WmHU9erXKN",Sui:"0x3a5143bb1196e3bcdfab6203d1683ae29edd26294fc8bfeafe4aaa9d2704df37::coin::COIN",Base:"0x1d36126289Be1658297A35CC3EB2BB80A7D7A04b",Arbitrum:"0x4EdeF400eDe5309240814b5FC403F224504604e9",Optimism:"0xC5B3AC2DF8D8D7AC851F763a5b3Ff23B4A696d59",Klaytn:"0x68d5254007BE3a6d3d2A37e2C1ad3921D049F46D",Xlayer:"0xEdF2AEaCE382A3c0722f110c4927d34b78bce34F",Worldchain:"0xfC5011f2037f2Dad9c9aC05CbB6749B383C3099c"}},Arbitrum:{"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1":{Ethereum:"0xb945E3F853B5f8033C8513Cf3cE9F8AD9beBB1c9",Bsc:"0xaA1eEdABC48D078350ccBdD620bD088848e299E5",Polygon:"0x6a5c59AB16268d2c872916054C50440B999e417C",Avalanche:"0xDfDA518A1612030536bD77Fd67eAcbe90dDC52Ab",Fantom:"0xE8367853A0823515D37b1538331B4704089becb4",Celo:"0xc6F962fCcb140ece554AfD0E589f971532A57f14",Solana:"CSD6JQMvLi46psjHdpfFdr826mF336pEVMJgjwcoS1m4",Sui:"0x33744e7df340a4d01c23f6b18c13563f767545ea95f976f8045f056358419da3::coin::COIN",Aptos:"0xe977796d7bfb3263609b90dffd264c7bd078ce35dac42b55302858d9fa3452b::coin::T",Base:"0x9D36e0edb8BBaBeec5edE8a218dc2B9a6Fce494F",Optimism:"0x825206E1D29456337769e6f1384101E997C6A732",Moonbeam:"0x18872b45c603eD2EbC508b9C5514a85c2e2791FB",Klaytn:"0x3CF1751E32c4225CB12ba953786C260C2cE89008"},"0xaf88d065e77c8cC2239327C5EDb3A432268e5831":{Ethereum:"0xCFc006a32a98031C2338BF9d5ff8ED2c0Cae4a9e",Bsc:"0x5caa170b465122D15a6D20FD9A804a9613CE7882",Polygon:"0x7800FE8951cdc1cDea748d878fAce63018D97960",Avalanche:"0x4b5fE357Eb11c735078e47526D6e853DBff18541",Celo:"0xA41a62567d9eb960D84b72663FdaeBE0BCdE2683",Solana:"CR4xnGrhsu1fWNPoX4KbTUUtqGMF3mzRLfj4S6YEs1Yo",Sui:"0xc3f8927de33d3deb52c282a836082a413bc73c6ee0bd4d7ec7e3b6b4c28e9abf::coin::COIN",Aptos:"0xca3a2c28bc8c6c762f752dd2a4ebbfd00356ca99977ce6636e3af5897124a87a::coin::T",Optimism:"0xa6252F56cc6eEA21165d56744C795F91c8a3Cf68",Base:"0xb96B82Cd6D45d98Fb6897D16A5E4EE888329C513",Fantom:"0x2228703672906fEe5eD681Ec28e42B4506b8c336",Moonbeam:"0xbd2B6D665439514EEaA8519f4fE87CC8C46e9167",Klaytn:"0x3d5973fF7288f47857dAa5a32C53976A9A968928",Xlayer:"0xd53bD30985B4125fc561774e388d9f679BB84117"},"0x5979D7b546E38E414F7E9822514be443A4800529":{Bsc:"0x159167e842C586a81f02E55bc043AC8EdB033E0b",Aptos:"0xd2ca17516bc4ca57c1c69577e0c9cc0129153286695b46b97f438ecc138c225e::coin::T",Solana:"8wJakbZuv7WApfHmRo2sdkeQfu6hXqfEqjb7BYXDKpKe",Sui:"0xb607aed1c09e676384d14ae638dbcb08523fc691d309e71c856c7fdcb60d4430::coin::COIN",Base:"0xbE3981b37CcE5eCb6925d2ad9D9E28dE7b165793",Optimism:"0xEae5ccc3c36beF59f6794b467e7e228CB3720415",Fantom:"0xf65BF40A3299Df500D440520dF7e6ce1BEa53E73",Ethereum:"0x906310cE867C22c5016248Bd791FA5dd162c9D6d",Polygon:"0xcf0aa97c2fD78Ee0f0C3090B9EB65d2bd6C1D81a"}},Optimism:{"0x4200000000000000000000000000000000000006":{Fantom:"0xe8E8f941377A955bFA72880ec0dc2319dbC827a8",Celo:"0x8d53771b1Ec7461f8e45Bca2609c45bC0bbd0677",Solana:"8M6d63oL7dvMZ1gNbgGe3h8afMSWJEKEhtPTFM2u8h3c",Sui:"0x0aab14ec22908de73d1b0619f5e03842398f8e68262981bd35ef44b42d22b23a::coin::COIN",Aptos:"0x6a7a7f36ef5e2d0e65fcf72669c20d514d68298b0f76c7554517208f73260aaf::coin::T",Arbitrum:"0xB1fC645a86fB5085e12D8BDDb77702F728D2A26F",Avalanche:"0xDf11535274c0FD2Fe41A88bd1bBF802D72296037",Bsc:"0x94AEc09B5e2CE591e39DC6aa58A3A6E85Ed45265",Ethereum:"0x8B5653Ae095529155462eDa8CF664eD96773F557",Polygon:"0x8182De59485Bb646542Db8C7E5958148Dc699319",Base:"0xCb725aC8d9985D3bE306Dd9e1517d3702929176c",Moonbeam:"0xd4870F7F5AD8Ae5139E1a5D8AD4ac55204aE4490",Klaytn:"0x4ab77AF7059435b71dBC3B7c5255983C8628eFdf"},"0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85":{Fantom:"0x385b219f0C4fa2e84EfE5aaf9692a821C57B8248",Celo:"0xEe48963C003e21EaCEdFA8a0A19BB3cbF7E776Fe",Moonbeam:"0x7143e8EA96e158381057a58AfdDF44601c7e532C",Base:"0xc6bfBeb3002aD563D2d1f72614C61C83Bf147Acd",Arbitrum:"0x3A5C2Da9E30741cb59a5e9446A23A86886fC9DC2",Aptos:"0x4f6ecb05a797902d472abc2f5804bde93a53d8b75f14f767824cdb1623a4ee83::coin::T",Bsc:"0xa41ae127D04F7ee73B5058E2C60Fb7c7A2D21F79",Avalanche:"0xBe04f76A0ba2100c3F2d6Aa1FD8484F415469573",Polygon:"0x31F12aCb60C3c32EE884F3894a873347C097D925",Sui:"0x6037801f060f0f54b3817bca05e3c8b9b9ffaa2da8e93fd5b80fa662aa3c9e55::coin::COIN",Solana:"J8kcD4Wnd1ehne1dpL8WNtgZQR6Jpui2cTZcrmg5ybAa",Klaytn:"0x7Ee2AB1443fDB59AECEa3aDD8F81296d68c2D1e3",Ethereum:"0xe77C99b64414e0fd9aeEA48AFFBBD2E97A895020"},"0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb":{Bsc:"0x1f29fAD000255BF49D72803b2A8FaC8e31947eF8",Base:"0xBb0BeaB819dEAf091C193bE4bBEeA9D5b0F5227C",Arbitrum:"0xf99C5EEd186601955a9a1027536D1b46b1f909F8",Polygon:"0x9065e1D25E65F7A1D60bb6197154386B52faA469",Ethereum:"0xB3ceE6DCa1dD528CB7CC258e32D8B50ce9Ee46f5"}},Base:{"0x4200000000000000000000000000000000000006":{Ethereum:"0x1D4241F7370253C0f12EFC536B7e16E462Fb3526",Bsc:"0x9dc152F4941cE1A138326e70c3600385bf0C22dD",Polygon:"0x5BCf8d8c097FbB35C371F921E3FF3e6F6Eb54B41",Avalanche:"0xFA83178c66fE51ee99109b5cC912f8098Ff812eF",Fantom:"0xd3365E7355230c78098b44B172eE27DAB95B041A",Celo:"0x905CADB645684140E285e2D09D39dF5a2082BC87",Moonbeam:"0x6C6f83366A42fcA4D30a2D3f1914284de995Ac3a",Solana:"DWXe1hxpnb8LAH21iyXcjvMbiAGzoYyuCVQtRLvZdLYd",Sui:"0xaecbc804fa7ca7cffc74c9a05eb6ae86fda0c68375b5c1724204a1065bcb239a::coin::COIN",Aptos:"0x5b5f14781164cf77185a7b6acd8e4f3cbb7e7cfb1cd5760d2b8af81075fc153d::coin::T",Arbitrum:"0xBAfbCB010D920e0Dab9DFdcF634De1B777028a85",Optimism:"0x3F369a664fa665e01e8EB9f20bFcE03A0CAb8971",Mantle:"0x4a2176DE2Fb36485704965bd1Cc471854f21303B",Klaytn:"0x7Bf9ad1D104dEAE4B59Ef1be6a273Cb46BA16362"},"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913":{Solana:"EfqRM8ZGWhDTKJ7BHmFvNagKVu3AxQRDQs8WMMaoBCu6",Moonbeam:"0xE6d02a875CcC153c076fe418f33De3A5C420f505",Celo:"0x2e2acb1782Aad0490f8446b6fD4626C467987bD6",Bsc:"0x55CaD531c8E303Cab8B3BE4bB4744Db4f896ac81",Optimism:"0xb931c7BbD87A6e249EaA7355B13927F9c99Bce87",Arbitrum:"0x8619F97D4d08382548F536E5CE1D3e0D9bA40326",Polygon:"0x1eeCaB0F75fE93abbFa0cDFfb4fB13d1dC8706c8",Avalanche:"0xab933e939a9236BD439F7d29b87CE712f42bAC06",Fantom:"0xd9E4C283d8A49Dc3767A6F5a4dFdc1d0cEf21604",Sui:"0x7e3e74afcc1913aa9491c8cee89b02131a6e5519b090f16b54321835c1241cfb::coin::COIN",Aptos:"0xfcc4fcd734d5b8578fb629d238d15264a49eca6165c7444c21feec3b4962eb88::coin::T",Mantle:"0x5D628a3285a10fdd93AEa704007957F294e05F91",Ethereum:"0xc38261846c42C1E1D59E04dA675Eb1974E9cE7b1",Klaytn:"0x0a2330c1C46E9A74e8651F7117a1264410eA3C88",Scroll:"0x22C9bde4Ad49C4b6CCFB8D394B5ED42A57853d58"},"0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452":{Arbitrum:"0x09E79693E44c8813A8CA25EeD7A40e5E24cD9c01",Ethereum:"0x187175c7a526f48c905202Bd2Bf8D25A457F479F",Polygon:"0x95d4C8e851D9E8c6B92aa518474E991c373E9Fb2",Optimism:"0x6ee40855c0BaB20585d17D2b9dd8d2Cd1cd41801",Avalanche:"0x5e513CA12DbD8424bDFc5B50711dF4AE999a8C58"}},Klaytn:{"0xe4f05A66Ec68B54A58B17c22107b02e0232cC817":{Aptos:"0x539b652f8230a0e42adaeda4706b5639893d22362eda6ea897493c210cb48219::coin::T",Ethereum:"0x9AEA32B459e96C8eF5010f69130bf95fd129ac05",Celo:"0xe304254de5c2048F9bFb042dDFB54f84d1d77730",Polygon:"0x415ce980fde17F1FF102e1c6e4ce860Acc615D74",Base:"0x41c433c146c47Dc53FC48cDc69e406e365e298E1",Arbitrum:"0xFA95f6c796E54F9C4a99392CAE84410a25794BB3",Moonbeam:"0xf0a9476E4712123A807859f9Fd25fe98213379BD",Fantom:"0x787e2F3509583C0F03A339Be0826463C839CBE5E",Sui:"0xa5ec915864d7f37b25ca9144b2db6ebcf29e73603c2ccf9d0e765adcd9049a98::coin::COIN",Avalanche:"0x126C03982Ad6D7ef7E6aF020bF219e87185a6BC3",Bsc:"0xEA970e7b7D131Ea36c3051C9Ca11e785462fE00c",Optimism:"0xbbeF8233a0d10EEAb84E913FaDB337ab9b62F683",Solana:"2b8fZGLBZjpxFugCdnJbbLLBYxvx23rsrsvLYYueiHb7",Scroll:"0xA55FB7A046454998b2f6d8D99Df5F0E108b38229",Worldchain:"0xC080f0082029fC6e8A4Bb33a9B0655B8d4f2BAB0"}},Scroll:{"0x5300000000000000000000000000000000000004":{Arbitrum:"0xAe81a542e20270b48Bd5297E3e0f280f79E46C42"}},Mantle:{"0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8":{Optimism:"0xf704F6a3241609Cfb3E44Db1237E68EB6CaC7C04"}},Monad:{"0x3bd359C1119dA7Da1D913D1C4D2B7c461115433A":{Solana:"AXSTN3GQHS4Mc7GDZwWmfp8H8qUVqyx3Ck5rPRT9g7RM"}}},cd={chains:Xd,tokens:r6,wrappedTokens:i6,rpcs:e6,guardianSet:{index:4,keys:["0x5893b5a76c3f739645648885bdccc06cd70a3cd3","0xff6cb952589bde862c25ef4392132fb9d4a42157","0x114de8460193bdf3a2fcf81f86a09765f4762fd1","0x107a0086b32d7a0977926a205131d8731d39cbeb","0x8c82b2fd82faed2711d59af0f2499d16e726f6b2","0x11b39756c042441be6d8650b69b54ebe715e2343","0x54ce5b4d348fb74b958e8966e2ec3dbd4958a7cd","0x15e7caf07c4e3dc8e7c469f92c8cd88fb8005a20","0x74a3bf913953d695260d88bc1aa25a4eee363ef0","0x000ac0076727b35fbea2dac28fee5ccb0fea768e","0xaf45ced136b9d9e24903464ae889f5c8a723fc14","0xf93124b7c738843cbb89e864c862c38cddcccf95","0xd2cc37a4dc036a8d232b48f62cdd4731412f4890","0xda798f6896a3331f64b48c12d1d57fd9cbe70811","0x71aa1be1d36cafe3867910f99c09e347899c19c3","0x8192b6e7387ccd768277c17dab1b7a5027c0b3cf","0x178e21ad2e77ae06711549cfbb1f9c7a9d8096e8","0x5e1487f35515d02a92753504a8d75471b9f49edb","0x6fbebc898f403e4773e95feb15e80c9a99c8348d"]}},n6={Bsc:{displayName:"BNB",explorerUrl:"https://testnet.bscscan.com/",explorerName:"BscScan",icon:"Bsc",symbol:"BSC",sdkName:"Bsc"},Avalanche:{displayName:"Fuji",explorerUrl:"https://testnet.snowtrace.io/",explorerName:"Snowtrace",icon:"Avalanche",symbol:"AVAX",sdkName:"Avalanche"},Fantom:{displayName:"Fantom",explorerUrl:"https://testnet.ftmscan.com/",explorerName:"FtmScan",icon:"Fantom",symbol:"FTM",sdkName:"Fantom"},Celo:{displayName:"Alfajores",explorerUrl:"https://explorer.celo.org/alfajores/",explorerName:"Celo Explorer",icon:"Celo",symbol:"CELO",sdkName:"Celo"},Moonbeam:{displayName:"Moonbase",explorerUrl:"https://moonbase.moonscan.io/",explorerName:"Moonscan",icon:"Moonbeam",symbol:"GLMR",sdkName:"Moonbeam"},Solana:{displayName:"Solana",explorerUrl:"https://explorer.solana.com/?cluster=devnet",explorerName:"Solana Explorer",icon:"Solana",symbol:"SOL",sdkName:"Solana"},Sui:{displayName:"Sui",explorerUrl:"https://suiscan.xyz/testnet/",explorerName:"Suiscan",icon:"Sui",symbol:"SUI",sdkName:"Sui"},Aptos:{displayName:"Aptos",explorerUrl:"https://explorer.aptoslabs.com/",explorerName:"Aptos Explorer",icon:"Aptos",symbol:"APT",sdkName:"Aptos"},Klaytn:{displayName:"Kaia",explorerUrl:"https://kairos.kaiascan.io/",explorerName:"KaiaScan",icon:"Klaytn",symbol:"KAIA",sdkName:"Klaytn"},Sepolia:{displayName:"Sepolia",explorerUrl:"https://sepolia.etherscan.io/",explorerName:"Etherscan",icon:"Ethereum",symbol:"ETH",sdkName:"Sepolia"},ArbitrumSepolia:{displayName:"Arbitrum Sepolia",explorerUrl:"https://sepolia.arbiscan.io/",explorerName:"Etherscan",icon:"Arbitrum",symbol:"ARB",sdkName:"ArbitrumSepolia"},BaseSepolia:{displayName:"Base Sepolia",explorerUrl:"https://sepolia.basescan.org/",explorerName:"Etherscan",icon:"Base",symbol:"BASE",sdkName:"BaseSepolia"},OptimismSepolia:{displayName:"Optimism Sepolia",explorerUrl:"https://sepolia-optimistic.etherscan.io/",explorerName:"Etherscan",icon:"Optimism",symbol:"OP",sdkName:"OptimismSepolia"},Scroll:{displayName:"Scroll",explorerUrl:"https://sepolia.scrollscan.dev/",explorerName:"Scrollscan",icon:"Scroll",symbol:"SCR",sdkName:"Scroll"},Xlayer:{displayName:"X Layer",explorerUrl:"https://www.okx.com/web3/explorer/xlayer-test/",explorerName:"OKX Explorer",icon:"Xlayer",symbol:"OKX",sdkName:"Xlayer"},Mantle:{displayName:"Mantle",explorerUrl:"https://explorer.testnet.mantle.xyz/",explorerName:"Mantle Explorer",icon:"Mantle",symbol:"MNT",sdkName:"Mantle"},Worldchain:{displayName:"World Chain",explorerUrl:"https://worldchain-sepolia.explorer.alchemy.com/",explorerName:"World Scan",icon:"Worldchain",sdkName:"Worldchain",symbol:"WORLD"},Unichain:{displayName:"Unichain",explorerUrl:"https://unichain-sepolia.blockscout.com/",explorerName:"Unichain Explorer",icon:"Unichain",symbol:"UNI",sdkName:"Unichain"},Mezo:{displayName:"Mezo",explorerUrl:"https://explorer.test.mezo.org/",explorerName:"Mezo Explorer",icon:"Mezo",sdkName:"Mezo",symbol:"MEZO"},Linea:{displayName:"Linea",sdkName:"Linea",explorerUrl:"https://sepolia.lineascan.build/",explorerName:"Lineascan",icon:"Linea",symbol:"LINEA"},Sonic:{displayName:"Sonic",sdkName:"Sonic",explorerUrl:"https://testnet.sonicscan.org/",explorerName:"Sonicscan",icon:"Sonic",symbol:"S"},Seievm:{displayName:"SeiEVM",explorerUrl:"https://seitrace.com/?chain=atlantic-2",explorerName:"Seitrace",icon:"Seievm",sdkName:"Seievm",symbol:"SEI"},Plume:{displayName:"Plume",sdkName:"Plume",explorerUrl:"https://testnet-explorer.plume.org",explorerName:"Plume Explorer",icon:"Plume",symbol:"PLUME"},Fogo:{displayName:"Fogo",sdkName:"Fogo",explorerUrl:"https://explorer.fogo.io/",explorerName:"Fogo Explorer",icon:"Fogo",symbol:"FOGO"},XRPLEVM:{displayName:"XRPL EVM",sdkName:"XRPLEVM",icon:"XRPLEVM",explorerUrl:"https://explorer.testnet.xrplevm.org/",explorerName:"XRPL EVM Explorer",symbol:"XRP"},Ink:{displayName:"Ink Sepolia",sdkName:"Ink",explorerUrl:"https://explorer-sepolia.inkonchain.com/",explorerName:"Ink Sepolia Explorer",icon:"Ink",symbol:"INK"},Moca:{displayName:"Moca",sdkName:"Moca",icon:"Moca",explorerUrl:"https://testnet-scan.mocachain.org/",explorerName:"Moca Chain Explorer",symbol:"MOCA"},MonadTestnet:{displayName:"Monad",explorerUrl:"https://testnet.monadexplorer.com/",explorerName:"Monad Explorer",icon:"Monad",symbol:"MON",sdkName:"MonadTestnet"}},a6={},{REACT_APP_SEPOLIA_RPC:f6,REACT_APP_BSC_TESTNET_RPC:o6,REACT_APP_FUJI_RPC:s6,REACT_APP_FANTOM_TESTNET_RPC:h6,REACT_APP_ALFAJORES_RPC:u6,REACT_APP_SOLANA_DEVNET_RPC:c6,REACT_APP_FOGO_TESTNET_RPC:l6,REACT_APP_MOONBASE_RPC:d6,REACT_APP_SUI_TESTNET_RPC:p6,REACT_APP_APTOS_TESTNET_RPC:v6,REACT_APP_BASE_SEPOLIA_RPC:b6,REACT_APP_KLAYTN_TESTNET_RPC:m6,REACT_APP_ARBITRUM_SEPOLIA_RPC:y6,REACT_APP_OPTIMISM_SEPOLIA_RPC:g6,REACT_APP_SCROLL_TESTNET_RPC:x6,REACT_APP_XLAYER_TESTNET_RPC:w6,REACT_APP_MANTLE_TESTNET_RPC:M6,REACT_APP_WORLDCHAIN_TESTNET_RPC:_6,REACT_APP_UNICHAIN_TESTNET_RPC:A6,REACT_APP_MEZO_TESTNET_RPC:E6,REACT_APP_LINEA_TESTNET_RPC:S6,REACT_APP_SONIC_TESTNET_RPC:B6,REACT_APP_SEIEVM_TESTNET_RPC:F6,REACT_APP_PLUME_RPC:C6,REACT_APP_XRPLEVM_TESTNET_RPC:D6,REACT_APP_MONAD_TESTNET_RPC:R6,REACT_APP_INK_TESTNET_RPC:T6,REACT_APP_MOCA_TESTNET_RPC:I6}=a6,k6={...st("Sepolia",f6),...st("Bsc",o6),...st("Avalanche",s6),...st("Fantom",h6),...st("Celo",u6),...st("Solana",c6),...st("Fogo",l6),...st("Moonbeam",d6),...st("Sui",p6),...st("Aptos",v6),...st("BaseSepolia",b6),...st("ArbitrumSepolia",y6),...st("OptimismSepolia",g6),...st("Klaytn",m6),...st("Scroll",x6),...st("Xlayer",w6),...st("Mantle",M6),...st("Worldchain",_6),...st("Unichain",A6),...st("Mezo",E6),...st("Linea",S6),...st("Sonic",B6),...st("Seievm",F6),...st("Plume",C6),...st("XRPLEVM",D6),...st("Monad",R6),...st("Ink",T6),...st("Moca",I6)},P6=[{symbol:"BNB",icon:ge.BNB,decimals:18,tokenId:{chain:"Bsc",address:"native"}},{symbol:"WBNB",icon:ge.BNB,decimals:18,tokenId:{chain:"Bsc",address:"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd"}},{symbol:"AVAX",icon:ge.AVAX,decimals:18,tokenId:{chain:"Avalanche",address:"native"}},{symbol:"WAVAX",icon:ge.AVAX,decimals:18,tokenId:{chain:"Avalanche",address:"0xd00ae08403B9bbb9124bB305C09058E32C39A48c"}},{symbol:"USDC",icon:ge.USDC,decimals:6,tokenId:{chain:"Avalanche",address:"0x5425890298aed601595a70AB815c96711a31Bc65"}},{symbol:"CELO",icon:ge.CELO,decimals:18,tokenId:{chain:"Celo",address:"0xF194afDf50B03e69Bd7D057c1Aa9e10c9954E4C9"}},{symbol:"USDC.e",icon:ge.USDC,decimals:6,tokenId:{chain:"Celo",address:"0x72CAaa7e9889E0a63e016748179b43911A3ec9e5"}},{symbol:"GLMR",icon:ge.GLMR,decimals:18,tokenId:{chain:"Moonbeam",address:"native"}},{symbol:"WGLMR",icon:ge.GLMR,decimals:18,tokenId:{chain:"Moonbeam",address:"0xD909178CC99d318e4D46e7E66a972955859670E1"}},{symbol:"SOL",icon:ge.SOLANA,decimals:9,tokenId:{chain:"Solana",address:"native"}},{symbol:"SOL",tokenId:{chain:"Solana",address:"So11111111111111111111111111111111111111112"},icon:ge.SOLANA,decimals:9},{symbol:"FOGO",icon:ge.FOGO,decimals:9,tokenId:{chain:"Fogo",address:"native"}},{symbol:"WFOGO",icon:ge.FOGO,decimals:9,tokenId:{chain:"Fogo",address:"So11111111111111111111111111111111111111112"}},{symbol:"USDC",tokenId:{chain:"Solana",address:"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU"},icon:ge.USDC,decimals:6},{symbol:"SUI",tokenId:{chain:"Sui",address:"native"},icon:ge.SUI,decimals:9},{symbol:"USDC",decimals:6,tokenId:{chain:"Sui",address:"0xa1ec7fc00a6f40db9693ad1415d0c193ad3906494428cf252621037bd7117e29::usdc::USDC"},icon:ge.USDC},{symbol:"APT",tokenId:{chain:"Aptos",address:"native"},icon:ge.APT,decimals:8},{symbol:"USDC",decimals:6,tokenId:{chain:"Aptos",address:"0x69091fbab5f7d635ee7ac5098cf0c1efbe31d68fec0f2cd565e8d168daf52832"},icon:ge.USDC},{symbol:"KAIA",icon:ge.KLAY,decimals:18,tokenId:{chain:"Klaytn",address:"native"}},{symbol:"wKAIA",name:"wKAIA",icon:ge.KLAY,decimals:18,tokenId:{chain:"Klaytn",address:"0x0339d5Eb6D195Ba90B13ed1BCeAa97EbD198b106"}},{symbol:"ETH",icon:ge.ETH,decimals:18,tokenId:{chain:"Sepolia",address:"native"}},{symbol:"WETH",icon:ge.ETH,decimals:18,tokenId:{chain:"Sepolia",address:"0xeef12A83EE5b7161D3873317c8E0E7B76e0B5D9c"}},{symbol:"USDC",icon:ge.USDC,decimals:6,tokenId:{chain:"Sepolia",address:"0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238"}},{symbol:"USDT",icon:ge.USDT,decimals:6,tokenId:{chain:"Sepolia",address:"0xaA8E23Fb1079EA71e0a56F48a2aA51851D8433D0"}},{symbol:"WBTC",icon:ge.WBTC,decimals:8,tokenId:{chain:"Sepolia",address:"0x52eea312378ef46140ebe67de8a143ba2304fd7c"}},{symbol:"UNI",icon:"https://assets.coingecko.com/coins/images/12504/standard/uniswap-logo.png",decimals:18,tokenId:{chain:"Sepolia",address:"0x1f9840a85d5af5bf1d1762f925bdaddc4201f984"}},{symbol:"ETH",icon:ge.ETH,decimals:18,tokenId:{chain:"ArbitrumSepolia",address:"native"}},{symbol:"WETH",icon:ge.ETH,decimals:18,tokenId:{chain:"ArbitrumSepolia",address:"0x980B62Da83eFf3D4576C647993b0c1D7faf17c73"}},{symbol:"ETH",icon:ge.ETH,decimals:18,tokenId:{chain:"BaseSepolia",address:"native"}},{symbol:"WETH",icon:ge.ETH,decimals:18,tokenId:{chain:"BaseSepolia",address:"0x4200000000000000000000000000000000000006"}},{symbol:"USDC",icon:ge.USDC,decimals:6,tokenId:{chain:"BaseSepolia",address:"0x036CbD53842c5426634e7929541eC2318f3dCF7e"}},{symbol:"ETH",icon:ge.ETH,decimals:18,tokenId:{chain:"OptimismSepolia",address:"native"}},{symbol:"WETH",icon:ge.ETH,decimals:18,tokenId:{chain:"OptimismSepolia",address:"0x4200000000000000000000000000000000000006"}},{symbol:"ETH",icon:ge.SCROLL,decimals:18,tokenId:{chain:"Scroll",address:"native"}},{symbol:"WETH",icon:ge.SCROLL,decimals:18,tokenId:{chain:"Scroll",address:"0x5300000000000000000000000000000000000004"}},{symbol:"OKB",icon:ge.XLAYER,decimals:18,tokenId:{chain:"Xlayer",address:"native"}},{symbol:"WOKB",icon:ge.XLAYER,decimals:18,tokenId:{chain:"Xlayer",address:"0xa2aFfd8301BfB3c5b815829f2F509f053556D21B"}},{symbol:"MNT",icon:ge.MANTLE,decimals:18,tokenId:{chain:"Mantle",address:"native"}},{symbol:"WMNT",icon:ge.MANTLE,decimals:18,tokenId:{chain:"Mantle",address:"0xa4c4cb2A072eE99f77212Fa18c2B7Ca26DA23905"}},{symbol:"ETH",tokenId:{chain:"Worldchain",address:"native"},decimals:18,icon:ge.WORLDCHAIN},{symbol:"WETH",tokenId:{chain:"Worldchain",address:"0x4200000000000000000000000000000000000006"},decimals:18,icon:ge.WORLDCHAIN},{symbol:"ETH",tokenId:{chain:"Unichain",address:"native"},decimals:18,icon:ge.ETH},{symbol:"WETH",tokenId:{chain:"Unichain",address:"0x4200000000000000000000000000000000000006"},decimals:18,icon:ge.ETH},{symbol:"USDC",tokenId:{chain:"Unichain",address:"0x31d0220469e10c4E71834a79b1f276d740d3768F"},decimals:6,icon:ge.USDC},{symbol:"BTC",tokenId:{chain:"Mezo",address:"native"},decimals:18,icon:ge.BTC},{symbol:"ETH",tokenId:{chain:"Linea",address:"native"},decimals:18,icon:ge.ETH},{symbol:"USDC",tokenId:{chain:"Linea",address:"0xFEce4462D57bD51A6A552365A011b95f0E16d9B7"},decimals:6,icon:ge.USDC},{symbol:"S",tokenId:{chain:"Sonic",address:"native"},decimals:18,icon:ge.SONIC},{symbol:"USDC",tokenId:{chain:"Sonic",address:"0xA4879Fed32Ecbef99399e5cbC247E533421C4eC6"},decimals:6,icon:ge.USDC},{symbol:"SEI",tokenId:{chain:"Seievm",address:"native"},decimals:18,icon:ge.SEI},{symbol:"USDC",tokenId:{chain:"Seievm",address:"0x4fCF1784B31630811181f670Aea7A7bEF803eaED"},decimals:6,icon:ge.USDC},{symbol:"PLUME",decimals:18,icon:ge.PLUME,tokenId:{chain:"Plume",address:"native"}},{symbol:"USDC",tokenId:{chain:"HyperEVM",address:"0x2B3370eE501B4a559b57D449569354196457D8Ab"},decimals:6,icon:ge.USDC},{symbol:"XRP",tokenId:{chain:"XRPLEVM",address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE"},decimals:18,icon:ge.XRP},{symbol:"ETH",icon:ge.ETH,decimals:18,tokenId:{chain:"Ink",address:"native"}},{symbol:"MOCA",tokenId:{chain:"Moca",address:"native"},decimals:18,icon:ge.MOCA},{symbol:"MON",icon:ge.MONAD,decimals:18,tokenId:{chain:"MonadTestnet",address:"native"}},{symbol:"WMON",icon:ge.MONAD,decimals:18,tokenId:{chain:"MonadTestnet",address:"0xFb8bf4c1CC7a94c73D209a149eA2AbEa852BC541"}}],N6={Bsc:{"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd":{Avalanche:"0x10F1053bF2884b28ee0Bd7a2dDBa237Af3511d29",Fantom:"0xfB174b43228950C2055CFc25AE93f2DCe8E2beF0",Celo:"0xa8050be9389466c3c524F10F131f244ACbf21A0D",Moonbeam:"0x6097E80331B0c6aF4F74D7F2363E70Cb2Fd078A5",Solana:"BaGfF51MQ3a61papTRDYaNefBgTQ9ywnVne5fCff4bxT",Sui:"0xddcf8680a8a4b8a527d8c85ec203274991590c2ea898d1c4635b70164d9c584b::coin::COIN",Aptos:"0xa5894f5ddb8647e6143102aa336ff07374f7b32e88c1c703aef5b7c9a370bf80::coin::T",Klaytn:"0xEFa3626825C33C4cd83850920Ad7Ac0a392E1faE",Sepolia:"0x02CdD5eB55934663F0aD8fbA3516dC7DE4E22894"}},Avalanche:{"0xd00ae08403B9bbb9124bB305C09058E32C39A48c":{Bsc:"0x6cE9E2c8b59bbcf65dA375D3d8AB503c8524caf7",Fantom:"0x0f545Be981C37fB15ab7c65404648761e99016e4",Celo:"0x502c8C83008D9Dd812a7C5fB886C063060C73Dbf",Moonbeam:"0x2E8afeCC19842229358f3650cc3F091908dcbaB4",Solana:"3Ftc5hTz9sG4huk79onufGiebJNDMZNL8HYgdMJ9E7JR",Sui:"0xa600741c469fb57ed01497ddf101e798fa79a9c529bd176675c5c4d970811f80::coin::COIN",Aptos:"0xbe8f4301c0b54e870902b9a23eeb95ce74ac190531782aa3262337ceb145401a::coin::T",Klaytn:"0x10257392a2B5e3C4D4bEe1607650a1C0C738202a",Scroll:"0x5Bd1ba0040C16b13894A6EbE3d55708c91eF08bb",Xlayer:"0xb13a464ceE7455A9b2941bFAe1bB1eB5A6833867"},"0x5425890298aed601595a70AB815c96711a31Bc65":{Bsc:"0x1cfeCf72bcBE1E429A21A5B11E708C7c397AaC54",Fantom:"0x6BC4E8D8c1d54656D1DeBCa96efc53aFd1408aD2",Celo:"0xDDB349c976cA2C873644F21f594767Eb5390C831",Moonbeam:"0x6533CE14804D113b1F494dC56c5D60A43cb5C3b5",Solana:"GQtMXZxnuacCFTXVeTvyHi6P9F6chbtzhVc8JgD8hv7c",Sui:"0x2aa8c885d04e676c4e87b7d0f94d4f3b243b1b5d93239d1cc41d5528ce1714c1::coin::COIN",Aptos:"0x2ef7697bdb33361ca39d228671203afc0dea3202e792d79d2072b761d87c834::coin::T"}},Fantom:{"0xf1277d1Ed8AD466beddF92ef448A132661956621":{Bsc:"0x9aB305B792DBdb8253bEE909E7006611Cb45175b",Avalanche:"0x094cB577C21Ab1360178beE74B9591fa12216dAD",Celo:"0xE6F8710cA14CFe7F5aAAD3A799C3d1D92dCba938",Moonbeam:"0x566c1cebc6A4AFa1C122E039C4BEBe77043148Ee",Solana:"DMw2tLaq1bVoAEKtkoUtieSk9bfCPUvubYLatTMsSVop",Sui:"0x14e756ff65e0ac810a5f69ca5276ef5b899a6df3c4717de1f85559d8b5ae6ea6::coin::COIN",Aptos:"0x533c6ade00d15d1e014c41e29e34853e87df92c4e01a6a3f41318dbd098048d6::coin::T",Klaytn:"0x097c8878A0d852581Dc4D8820151094Ddd3663Ac",Sepolia:"0x852132647d301B7EED02589B1dc73545E73c8596"}},Celo:{"0xF194afDf50B03e69Bd7D057c1Aa9e10c9954E4C9":{Bsc:"0x1471698cBD9cAB0228F2EEA9303A2b3aA0ABDC2B",Avalanche:"0xC66d9c2b33c347d4A4441975f4688fcD5DD4c441",Fantom:"0xB18E73a69c3Aaea39a610372537Cf8482622d199",Moonbeam:"0x3406a9b09adf0cb36DC04c1523C4b294C6b79513",Solana:"84F2QX9278ToDmA98u4A86xSV9hz1ovazr8zwGaX6qjS",Sui:"0x81868174a6b11e1acc337b3414f9912455435d486609fb8d50b34312865085f2::coin::COIN",Aptos:"0xecbb0f7e7d049499ca83ca1358344f56557886f6f7adc740d6734cce7bfc9a14::coin::T",Klaytn:"0xC951826bbB310a8160BB78c2eEe6C98246292ba7",Sepolia:"0x648f226f3bDcAEdc844622d604F76935DC05bC24"}},Moonbeam:{"0xD909178CC99d318e4D46e7E66a972955859670E1":{Bsc:"0x5C31B36599ED7f06b09c0ffC7A2F928cE496F046",Avalanche:"0xf080782DF38eD5228D2FC2882d13D56c8f1D6f21",Fantom:"0x41E3CFDFC255A4bF3C8D3560Bc8D3D9b5080338e",Celo:"0x132D2172D89cd9CfD480A8887c6bF92360fB460e",Solana:"8987WGkYa5viiZ9DD8sS3PB5XghKmWjkEgmzvwDuoAEc",Sui:"0xeffae382de96981f7ddd2d294429924827e8f325d612487a12d6a0b249171002::coin::COIN",Aptos:"0x338373b6694f71dbeac5ca4a30503bf5f083888d71678aed31255de416be37c0::coin::T",Sepolia:"0x3F7CD70ECd402BBe71f45A95156A2CAC0d6A822E"}},Solana:{So11111111111111111111111111111111111111112:{Bsc:"0x30f19eBba919954FDc020B8A20aEF13ab5e02Af0",Avalanche:"0xb10563644a6AB8948ee6d7f5b0a1fb15AaEa1E03",Fantom:"0xED1a08Fc69A7008d225890A96aaE258c465CC7ad",Celo:"0x05EEF2AE1A7A938D78598F7d9e8b97A9bED0c9eC",Sui:"0xbc03aaab4c11eb84df8bf39fdc714fa5d5b65b16eb7d155e22c74a68c8d4e17f::coin::COIN",Aptos:"0xdd89c0e695df0692205912fb69fc290418bed0dbe6e4573d744a6d5e6bab6c13::coin::T",Klaytn:"0x48D99C16638E6FFD2ED60375cD35ef6c139e5f41",Moonbeam:"0x5babD0d267Adf2081626654E51d1cABF8c477440",Sepolia:"0x824CB8fC742F8D3300d29f16cA8beE94471169f5",Monad:"0x369CD1E20Fa7ea1F8e6dc0759709bA0bD978abE7"},"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU":{Bsc:"0x51a3cc54eA30Da607974C5D07B8502599801AC08"}},Sui:{native:{Bsc:"0x5A73D76e09Af2E428EC64aE10F91B78AC990B298",Avalanche:"0xfc5128F8556a6F059466E67740e6cC31EE5C2C47",Fantom:"0xd882AB49372eC093E8697B5153f54ab5e7738e3b",Celo:"0xa40d9E69ca9867C4bFbeC11Ce79C939991e9bf26",Solana:"BJZ72CjPQojVoH68mzrd4VQ4nr6KuhbAGnhZEZCujKxY",Aptos:"0x7b22d0e02f653d4fd1caddcfa4719a2b329da56eb81d8f27db703f02466c26a5::coin::T",Moonbeam:"0x2ed4B5B1071A3C676664E9085C0e3826542C1b27",Klaytn:"0xbA5F07a20681Add3A396E7606c6DC9B03d71d28A"}},Aptos:{native:{Bsc:"0x4A7Bd5E135f421057F97BbA8BCeeE5c18334f454",Avalanche:"0x996a3f12C1FcD7339Ea8801f629201e4d42EAD04",Fantom:"0xAb2297E8994149BA91737944E40891881aF762a4",Celo:"0xAC0a2fF7DD597de863878a3372142b07B614C125",Moonbeam:"0xCaa2A1d3BbbA0D1466571e83b4E2CbE04252593D",Solana:"7EvFD3JKCJVdtkAYdaSVKJsrPEJCzy2neJha7TREGrCa",Sui:"0x812d6feb8b84e55d47a0bfcae9fb6a4e7e09be5ec86ce0a729e0f67d5f59f477::coin::COIN"}},Klaytn:{"0x0339d5Eb6D195Ba90B13ed1BCeAa97EbD198b106":{Bsc:"0x79D34FDb686B5D139949E4F92D83EEe376489176",Aptos:"0xa8ffe1ffe3057756019345cdf9cf3d1f1a3d9a355147dd9440878c448a057579::coin::T",Celo:"0x8e50fC4b7F8B7018E72475f78C640F973218C8Cf",Avalanche:"0x84f3298Bcc019BD5B995756494095e1Eb72B565C",Solana:"6p7qTfX4tRFtQovxwT77Jn9HFQEV7nxLbux9C31Tgm23",Fantom:"0x72A1C24dA7F08d11a7668E228Ec287Fc6ec16E48",Sepolia:"0x142D0E977768cA4De6f2161D9E5B5C9F00435F9e",Moonbeam:"0x6eFf019D79D4136e57A7FC141967F3D0AD41089a",Sui:"0xd4a59fb612b162df75a9d190c0f72098dcae883e88bd0eb28667c31f8208dc3c::coin::COIN"}},Sepolia:{"0xeef12A83EE5b7161D3873317c8E0E7B76e0B5D9c":{Solana:"6F5YWWrUMNpee8C6BDUc6DmRvYRMDDTgJHwKhbXuifWs",Celo:"0x890ad4a7eD5bD08b7d6638515157dF3bF4BaD1Bc",Bsc:"0x667a61Efa611399970AE927637dD6f9A16f51e40",Moonbeam:"0xa7276055a1d45fB9982575411801e10ac9970Da8",ArbitrumSepolia:"0x97Ee87C7Db6049669a518730a2Ee60d1Fc58844E",Avalanche:"0x12bFE94230daaE3d48067577F45b7b031dD357f3",Fantom:"0x7F96D67186561Aa17cEb699494E94bEE3F3499D4"},"0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238":{Aptos:"0x3f2912a313c5bea312dbf19f9080101d2e762df6546a6fe9f60a4de72c93d015::coin::T",Solana:"23Adx8na44L3M1Nf9RrUpQPb41eufdRXKseg25FfcJtw",Celo:"0xD6A34325e5F6BE27b7006bf06651444196Da579a",Bsc:"0xb8850F591019F0794F813426d4A4A9b5fB8f23C8",BaseSepolia:"0x3F872340B6A75397aa9b0A463000349962a8795D",ArbitrumSepolia:"0x27B8F40Cf0915e729ae5A96970E91045Fe9724dF",Fantom:"0xa686203C86140142230f44A724281E1BEd09c369",Klaytn:"0x25f2a470a2e1E75DDAc40289AB277eDE4DD98aFa",Sui:"0x6529fef82a8a09470c550a3129bbd889030b62306f0c14161224b1a40ef1346f::coin::COIN"}},OptimismSepolia:{"0x4200000000000000000000000000000000000006":{ArbitrumSepolia:"0xa2610700cCA8361DECD27dB2564848C530f20813"}}},ld={chains:n6,tokens:P6,wrappedTokens:N6,rpcs:k6,guardianSet:{index:0,keys:["0x13947Bd48b18E53fdAeEe77F3473391aC727C638"]}},O6={Ethereum:{sdkName:"Ethereum",displayName:"EVM",explorerUrl:"",explorerName:"",icon:"Ethereum",symbol:"ETH"}},q6={},{REACT_APP_ETHEREUM_DEVNET_RPC:U6}=q6,L6={...st("Ethereum",U6)},H6=[{symbol:"ETH",icon:ge.ETH,decimals:18,tokenId:{chain:"Ethereum",address:"native"}},{symbol:"WETH",icon:ge.ETH,decimals:18,tokenId:{chain:"Ethereum",address:"0xDDb64fE46a91D46ee29420539FC25FD07c5FEa3E"}},{symbol:"TKN",icon:ge.ETH,decimals:18,tokenId:{chain:"Ethereum",address:"0x2D8BE6BF0baA74e0A907016679CaE9190e80dD0A"}}],$6={chains:O6,tokens:H6,wrappedTokens:{},rpcs:L6,guardianSet:{index:0,keys:["0x13947Bd48b18E53fdAeEe77F3473391aC727C638"]}};function j6(m,g){const S=typeof window>"u"?void 0:window.location?.host;return function(s){const A={meta:{version:Fi.CONNECT_VERSION,hash:Fi.CONNECT_GIT_HASH,host:S,network:m},...s};if(console.debug("Wormhole Connect event:",A),g)try{g(A)}catch(i){console.error("Error handling event:",i)}}}const z6=async()=>(await Promise.resolve().then(()=>require("./evm-Dn0mVgjI.js"))).default,K6=async()=>(await Promise.resolve().then(()=>require("./solana-UwIlWLao.js"))).default,W6=async()=>(await Promise.resolve().then(()=>require("./aptos-BVM1lgBZ.js"))).default,G6=async()=>(await Promise.resolve().then(()=>require("./sui-ZtBIYozr.js"))).default,V6="https://api.coingecko.com",Z6="https://pro-api.coingecko.com",Uc={Solana:"solana",Ethereum:"ethereum",Arbitrum:"ethereum",Optimism:"ethereum",Base:"ethereum",Scroll:"ethereum",Bsc:"binancecoin",Polygon:"matic-network",Avalanche:"avalanche-2",Fantom:"fantom",Moonbeam:"moonbeam",Klaytn:"kaia",Xlayer:"okb",Mantle:"mantle",Aptos:"aptos",Sui:"sui",Berachain:"berachain-bera",Unichain:"ethereum",Sonic:"sonic-3",Linea:"ethereum",Worldchain:"ethereum",Seievm:"sei",Mezo:"wrapped-bitcoin",Plume:"plume",Ink:"ethereum",HyperEVM:"hyperliquid",HyperCore:"usd-coin",CreditCoin:"wrapped-ctc",Monad:"monad",Fogo:"fogo",Moca:"moca",MegaETH:"ethereum"},X6={Bsc:"binance-smart-chain",Arbitrum:"arbitrum-one",Optimism:"optimistic-ethereum",Polygon:"polygon-pos",Klaytn:"klay-token",Xlayer:"x-layer",Worldchain:"world-chain",Seievm:"sei-v2",Mezo:"mezo",HyperEVM:"hyperevm",Plume:"plume-network",Ink:"ink",HyperCore:"hypercore",Monad:"monad",Fogo:"fogo",Moca:"moca"},gf=async(m,g)=>{const S=new Headers({...yt.coingecko?.apiKey?{"x-cg-pro-api-key":yt.coingecko.apiKey}:{}}),s=yt.coingecko?.customUrl?yt.coingecko.customUrl:yt.coingecko?.apiKey?Z6:V6;return fetch(`${s}${m}`,{signal:g?.abort?.signal,headers:S}).then(A=>A.json()).catch(A=>(console.error("Error fetching from Coingecko",A),null))},Y6=async(m,g)=>yt.network!=="Mainnet"?null:gf(`/api/v3/coins/${m.chain.toLowerCase()}/contract/${m.address.toString()}`,g),J6=async(m,g)=>{const S=new $r;if(yt.network!=="Mainnet")return S;const s={},A=[];for(const b of m)xe.isNative(b.address)?A.push(b):(s[b.chain]===void 0&&(s[b.chain]=[]),s[b.chain].push(b.address.toString()));const i=Object.keys(s).map(b=>{const p=s[b];return new Promise((o,v)=>{const y=p.join(","),x=X6[b]||b.toLowerCase();gf(`/api/v3/simple/token_price/${x}?contract_addresses=${y}&vs_currencies=usd`,g).then(M=>{M.error!==void 0||M.error_code!==void 0?v(M.error):o(Object.keys(M).map(_=>{try{const E=xe.Wormhole.tokenId(b,_);return M[_]?{tokenId:E,price:M[_].usd}:null}catch(E){return console.error("Coingecko error",E),null}}).filter(_=>_!==null))}).catch(v)})});A.length>0&&i.push(new Promise((b,p)=>{const o=[];for(const v of A){const y=Uc[v.chain];y?o.push(y):console.error(`Don't know a coingecko ID for native token for chain ${v.chain}`)}gf(`/api/v3/simple/price?ids=${o.join(",")}&vs_currencies=usd`,g).then(v=>b(A.map(y=>{const x=Uc[y.chain];if(x){const{usd:M}=v[x];return{tokenId:y,price:M}}else return null}).filter(y=>!!y))).catch(p)}));const l=(await Promise.allSettled(i)).map(b=>b.status==="fulfilled"?b.value:null).filter(b=>!!b).flat();for(const{tokenId:b,price:p}of l)S.add(b,p);return S},Q6=1,Lc=typeof localStorage<"u";class vr{chain;addressString;_address;constructor(g,S){this.chain=g,this.addressString=S}get address(){return xe.isNative(this.addressString)?this.addressString:(this._address||(this._address=xe.toNative(this.chain,this.addressString)),this._address)}static fromTokenTuple(g){return new vr(g[0],g[1])}}class fr extends vr{decimals;symbol;name;icon;tokenBridgeOriginalTokenId;coingeckoWebId;isBuiltin;isUnattested;constructor({chain:g,address:S,decimals:s,symbol:A,name:i,icon:l,tokenBridgeOriginalTokenId:b,coingeckoId:p,isUnattested:o}){super(g,S),this.decimals=s,this.symbol=A,this.name=i,this.icon=l,this.tokenBridgeOriginalTokenId=b,this.coingeckoWebId=p,this.isUnattested=o}get display(){return this.name?this.name:this.symbol!==""?this.symbol:this.shortAddress}get shortAddress(){const g=this.addressString;return`${g.substring(0,5)}...${g.substring(g.length-6)}`}get tuple(){return[this.chain,this.addressString]}get key(){return Li(this.tokenId)}get tokenId(){return{chain:this.chain,address:this.address}}get isNativeGasToken(){return xe.isNative(this.address)}get isTokenBridgeWrappedToken(){return!!this.tokenBridgeOriginalTokenId}get nativeChain(){return this.tokenBridgeOriginalTokenId?.chain||this.chain}equals(g){return vd(this,g)}toJson(){return{chain:this.chain,address:this.addressString,decimals:this.decimals,symbol:this.symbol,name:this.name??"",icon:this.icon?this.icon:"",tokenBridgeOriginalTokenId:this.tokenBridgeOriginalTokenId?dd(this.tokenBridgeOriginalTokenId):void 0,coingeckoWebId:this.coingeckoWebId}}static fromJson({chain:g,address:S,decimals:s,symbol:A,name:i,icon:l,tokenBridgeOriginalTokenId:b,coingeckoWebId:p}){return new fr({chain:g,address:S,decimals:s,symbol:A,name:i,icon:l===""?void 0:l,tokenBridgeOriginalTokenId:b?Gf(b):void 0,coingeckoId:p})}}class $r{lastUpdate;_localStorageKey;_mapping;size;constructor(){this.lastUpdate=new Date,this._mapping=new Map,this.size=0}add(g,S){this._mapping.has(g.chain)||this._mapping.set(g.chain,new Map),this._mapping.get(g.chain).set(Pr(g).toLowerCase(),S),this.lastUpdate=new Date,this.size+=1}get(g,S){if(typeof g=="string"&&typeof S=="string"&&xe.isChain(g))return this._mapping.get(g)?.get(S.toLowerCase());if(g instanceof vr)return this._mapping.get(g.chain)?.get(g.addressString.toLowerCase());if(xe.isTokenId(g))return this._mapping.get(g.chain)?.get(g.address.toString().toLowerCase());if(Wf(g))return this._mapping.get(g[0])?.get(g[1].toLowerCase());{const s=pd(g);return this._mapping.get(s.chain)?.get(Pr(s).toLowerCase())}}mustGet(g,S){const s=this.get(g,S);if(!s)throw new Error("Failed to get token");return s}getList(g){return g.map(S=>this.get(S)).filter(S=>S!==void 0)}getAllForChain(g){const S=this._mapping.get(g);return S?Array.from(S.values()):[]}getAll(){return Array.from(this._mapping.values()).flatMap(g=>Array.from(g.values()))}get chains(){return Array.from(this._mapping.keys())}merge(g){g.forEach(this.add)}clear(){this.lastUpdate=new Date,this._mapping=new Map,this.size=0}forEach(g){this._mapping.forEach((S,s)=>{S.forEach((A,i)=>{const l=new vr(s,i);g(l,A)})})}get empty(){return this.size===0}clone(){const g=new $r;return this.forEach((S,s)=>{g.add(S,s)}),g}}class Ci extends $r{add(g){if(g.tokenBridgeOriginalTokenId){const S=this.get(g.tokenBridgeOriginalTokenId);S&&(g.icon=S.icon,g.name=S.name,g.symbol=S.symbol)}super.add(g,g)}getGasToken(g){return g==="Celo"?this.findBySymbol("Celo","CELO"):g==="XRPLEVM"?this.findBySymbol("XRPLEVM","XRP"):this.get(g,"native")}findByAddressOrSymbol(g,S){const s=this.get(g,S);if(s)return s;const A=this.findBySymbol(g,S);if(A)return A}queryBySymbol(g,S){return this.getAllForChain(g).filter(s=>s.symbol.toLowerCase().startsWith(S.toLowerCase())||s.name?.toLowerCase().startsWith(S.toLowerCase()))}findBySymbol(g,S){const s=yt.ui?.tokenNameOverrides?.[g],A=S.toLowerCase();let i=this.getAllForChain(g).filter(l=>{const b=A===l.symbol.toLowerCase(),p=A===s?.[l.address.toString()]?.toLowerCase();return b||p});if(i.length>1&&(i=i.filter(l=>!l.isTokenBridgeWrappedToken)),i.length===1)return i[0];if(i.length>1){const l=i.find(b=>b.address==="native");if(l)return l;console.error(`Ambiguous token symbol: ${S}`)}}setLocalStorageKey(g){this._localStorageKey=g}async addFromTokenId(g){if(g.chain==="Sui"&&!Wc.isValidSuiType(g.address.toString()))throw new Error(`Not a valid Sui token address: ${g.address.toString()}`);if(xe.isUnattestedTokenId(g)){const M=this.get(g.originalTokenId);console.debug(`Token ${g} is unattested`);const _=new fr({chain:g.chain,address:xe.canonicalAddress(g),decimals:g.decimals,symbol:M?.symbol||"",name:M?.name,icon:M?.icon,isUnattested:!0});return this.add(_),_}const S=await wr(),s=S.getChain(g.chain),A=await s.getDecimals(g.address);let i={};try{i=await Y6(g)||{}}catch(M){console.error("Error fetching token metadata:",M)}let l=i?.symbol?.toUpperCase()||"",b=i?.name||"",p=i?.image?.large||null;const o=i?.web_slug;if(!l){const{getTokenMetadataFromRpc:M}=await Promise.resolve().then(()=>require("./tokens-B113FI9J.js")),_=await M(g);_&&(console.info("Got metadata from RPC",_),l=_.symbol,b=_.name,p=_.icon)}let v,y;try{y=await s.getTokenBridge()}catch{}if(y&&await y.isWrappedAsset(g.address)&&(v=await y.getOriginalAsset(g.address),xe.UniversalAddress.instanceof(v.address)&&(v.address=await S.getTokenNativeAddress(v.chain,v.chain,v.address)),v)){const M=this.get(v);M&&M.icon&&(p=M.icon,l=M.symbol)}if(!v&&(!l||!p))try{const M=yt.routes.get("MonadBridgeExecutorRoute");if(M?.isSupportedChain(g.chain)){const _=new M.rc(S);if(_ instanceof Kd.MultiTokenNttExecutorRoute&&await _.isWrappedToken(g)){const E=await _.getOriginalToken(g),B=this.get(E);B&&(p=p??B.icon,l=l??B.symbol)}}}catch{}const x=new fr({chain:g.chain,address:xe.canonicalAddress(g),decimals:A,symbol:l,name:b,icon:p,tokenBridgeOriginalTokenId:v,coingeckoId:o});return this.add(x),x}persist(){if(Lc&&this._localStorageKey){const g={version:Q6,tokens:{}};this.forEach((s,A)=>{A.isUnattested||(g.tokens[Li(s)]=A.toJson())});const S=JSON.stringify(g);localStorage.setItem(this._localStorageKey,S)}}static load(g){if(Lc){const s=localStorage.getItem(g);if(s)try{const A=JSON.parse(s),i=new Ci;i.setLocalStorageKey(g);for(const[,l]of Object.entries(A.tokens)){const b=fr.fromJson(l);i.add(b)}return i}catch(A){console.error("Error parsing cached TokenCache",A)}}const S=new Ci;return S.setLocalStorageKey(g),S}}function e3(m,g,S){const s=Ci.load(S);for(const{tokenId:A,symbol:i,name:l,icon:b,decimals:p}of m){const o=new fr({chain:A.chain,address:A.address.toString(),decimals:p,symbol:i,name:l,icon:b});o.isBuiltin=!0,s.add(o)}for(const A in g)for(const i in g[A]){const l=g[A][i];for(const b in l){const p=s.get(A,i);if(p){const o=l[b];let v=xe.chainToPlatform(b)==="Evm"?18:8;v=Math.min(v,p.decimals);const y=new fr({chain:b,address:o,decimals:v,symbol:p.symbol,name:p.name,icon:p.icon,tokenBridgeOriginalTokenId:p});y.isBuiltin=!0,s.add(y)}}}return s.persist(),s}function Wf(m){return Array.isArray(m)&&m.length==2&&xe.isChain(m[0])}function dd(m){return[m.chain,Pr(m)]}function Gf(m){return vr.fromTokenTuple(m)}function Li(m,g){return JSON.stringify(typeof m=="string"?[m,g]:dd(m))}function pd(m){const g=JSON.parse(m);if(Wf(g))return Gf(g);throw new Error(`Invalid token key "${m}"; couldn't parse`)}function Pr(m){return m instanceof vr?m.addressString:m.address.toString()}function vd(m,g){return m.chain===g.chain&&m.addressString===g.addressString}const bd="insufficient_allowance",t3="swap_failed",r3="source_contract_paused",i3="destination_contract_paused",n3="unsupported_abi_version",xf="insufficient_gas",md="insufficient_funds",yd="amount_too_large",gd="amount_too_small",xd="user_rejected",wd="user_timeout",Md="unknown",_d="relay_failed",Ad="slippage_exceeded";var Ed=(m=>(m.SelectSrcToken="select.src.token",m.SelectSrcChain="select.src.chain",m.SelectDestToken="select.dest.token",m.SelectDestChain="select.dest.chain",m))(Ed||{});const Sd={Mainnet:{Arbitrum:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",Avalanche:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",Base:"0x4200000000000000000000000000000000000006",Bsc:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",Celo:"0x0000000000000000000000000000000000000000",Ethereum:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",Fantom:"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83",Klaytn:"0xe4f05A66Ec68B54A58B17c22107b02e0232cC817",Moonbeam:"0xAcc15dC74880C9944775448304B263D191c6077F",Optimism:"0x4200000000000000000000000000000000000006",Polygon:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",Mantle:"0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8",Scroll:"0x5300000000000000000000000000000000000004",Berachain:"0x6969696969696969696969696969696969696969",Unichain:"0x4200000000000000000000000000000000000006",Worldchain:"0x4200000000000000000000000000000000000006",Ink:"0x4200000000000000000000000000000000000006",Sonic:"0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38",Monad:"0x3bd359C1119dA7Da1D913D1C4D2B7c461115433A"},Testnet:{Avalanche:"0xd00ae08403B9bbb9124bB305C09058E32C39A48c",Bsc:"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd",Fantom:"0xf1277d1Ed8AD466beddF92ef448A132661956621",Klaytn:"0x0339d5Eb6D195Ba90B13ed1BCeAa97EbD198b106",Moonbeam:"0xD909178CC99d318e4D46e7E66a972955859670E1",Sepolia:"0xeef12A83EE5b7161D3873317c8E0E7B76e0B5D9c",ArbitrumSepolia:"0x980B62Da83eFf3D4576C647993b0c1D7faf17c73",BaseSepolia:"0x4200000000000000000000000000000000000006",OptimismSepolia:"0x4200000000000000000000000000000000000006",PolygonSepolia:"0x0000000000000000000000000000000000000000",Scroll:"0x5300000000000000000000000000000000000004",Linea:"0x0000000000000000000000000000000000000000",Berachain:"0x6969696969696969696969696969696969696969",Seievm:"0x3921eA6Cf927BE80211Bb57f19830700285b0AdA",Unichain:"0x4200000000000000000000000000000000000006",Worldchain:"0x4200000000000000000000000000000000000006",Ink:"0x4200000000000000000000000000000000000006",MonadTestnet:"0xFb8bf4c1CC7a94c73D209a149eA2AbEa852BC541",Mezo:"0x0000000000000000000000000000000000000000",Sonic:"0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38"},Devnet:{}},a3="So11111111111111111111111111111111111111112";function Vf(m,g){const S=xe.chainToPlatform(g);if(S==="Evm")return Sd[m]?.[g];if(S==="Solana")return a3;if(S==="Aptos")return"0x1::aptos_coin::AptosCoin";if(S==="Sui")return"0x2::sui::SUI"}function Bd(m,g,S){if(!m)return!1;const s=m.address.toString(),A=S.address.toString();if(A===s)return!0;if(g){const i=xe.isNative(m.address),l=s.toLowerCase()===g,b=A.toLowerCase()===g,p=xe.isNative(S.address);if(i&&b||l&&p)return!0}return!1}function f3(m){return m.length===22?m:`0x${m.slice(m.length-40,m.length)}`}function Bi(m,g=6){return m.slice(0,g)+"..."+m.slice(m.length-4,m.length)}function o3(m,g=6,S=4){const s=m.slice(0,g),A=m.slice(m.length-S,m.length);return`${s}...${A}`}function s3(m,g){return m?m==="Evm"?Bi(f3(g)):m==="Solana"?Bi(g,4):Bi(g):""}function Fd(m){const g=yt.tokens.getGasToken(m);if(!g)throw new Error(`gas token not found for ${m}`);return g}function Cd(m){const g=yt.ui?.tokenNameOverrides?.[m.chain];if(!g)return m.display;const S=m.addressString.toLowerCase();for(const[s,A]of Object.entries(g))if(s.toLowerCase()===S)return A;return m.display}function Dd(m){const g=yt.chains[m];return g?g.displayName:m}function Hc(m){const g=document.createElement("textarea");g.value=m,g.style.top="0",g.style.left="0",g.style.position="fixed",document.body.appendChild(g),g.focus(),g.select();try{return document.execCommand("copy"),!0}catch{return!1}finally{document.body.removeChild(g)}}function h3(m){return navigator.clipboard&&navigator.clipboard.writeText(m).then(function(){return!0},function(){return Hc(m)}),Hc(m)}function u3(m){return m.startsWith("0x")?m:`0x${m}`}function c3(m,g){return m==="Sui"?Wc.isValidTransactionDigest(g):m==="Sei"?xe.isHexString(u3(g),32):g.startsWith("0x")&&g.length===66?!0:g.length>70&&g.length<100}function l3(m){const g=Yf.useRef(void 0);return Yf.useEffect(()=>{g.current=m}),g.current}async function Rd(m){return new Promise(g=>setTimeout(g,m))}const Td=m=>typeof m>"u"?"":m===0?"$0":m>0&&m<.01?"<$0.01":Intl.NumberFormat("en-EN",{style:"currency",currency:"USD"}).format(m),Id=(m,g,S)=>{if(typeof g>"u"||!S)return;const s=typeof m=="function"?m(S):m;if(s)return typeof g=="number"?g*s:xe.whole(g)*s},d3=(m,g,S)=>Td(Id(m,g,S)),p3=m=>{if(m==null)return!0;for(const g in m)if(m.hasOwnProperty.call(m,g))return!1;return!0},dr=(m,g)=>{const S=new URL(m),s=S.pathname.replace(/\/+$/,""),A=g.replace(/^\/+/,"");return S.pathname=`${s}/${A}`,S.toString()},v3=(m,g)=>{const S=yt.chains[m];if(!S?.explorerUrl)return;const s=S.explorerUrl;switch(m){case"Sui":return dr(s,`coin/${g}`);case"Aptos":return dr(s,`${xe.isHexString(g)?"fungible_asset":"coin"}/${g}`);case"Fantom":case"Solana":case"Fogo":return`${s}address/${g}`;default:return dr(s,`token/${g}`)}},b3=(m,g)=>{const S=yt.chains[m];if(!S?.explorerUrl)return;const s=S.explorerUrl;return m==="Aptos"?dr(s,`txn/${g}`):dr(s,`tx/${g}`)},m3=(m,g)=>{const S=yt.chains[m];if(!S?.explorerUrl)return;const s=S.explorerUrl;return m==="Aptos"?dr(s,`account/${g}`):dr(s,`address/${g}`)},kd=(m,g)=>{if(!m.isTokenBridgeWrappedToken)return!1;const{nativeChain:S,symbol:s}=m;if(s==="USDC"||m.symbol==="tBTC"||m.symbol==="WMON"&&g==="Solana"||g==="Base"||g==="BaseSepolia")return!0;const{tokenBridgeOriginalTokenId:A}=m;if(A){const i=["Ethereum","Sepolia"];if(g==="Monad"&&i.includes(A.chain)||i.includes(g)&&A.chain==="Monad"){if(A.address==="native")return!0;const b=Vf(yt.network,A.chain);return!!b&&xe.isSameToken(A,xe.Wormhole.tokenId(A.chain,b))}}return S!=="Ethereum"&&["ETH","WETH","wstETH","USDT","USDC","USDC.e"].includes(s)},y3=m=>m>=2*6e4?`${Math.ceil(m/6e4)} min`:`${Math.ceil(m/1e3)} sec`,g3=m=>{if(m>864e5){const A=Math.floor(m/864e5);return`${A} ${A===1?"day":"days"} ago`}else if(m>36e5){const A=Math.floor(m/36e5);return`${A} ${A===1?"hour":"hours"} ago`}else if(m>6e4){const A=Math.floor(m/6e4);return`${A} ${A===1?"minute":"minutes"} ago`}else return"1 minute ago"},x3=m=>{if(m<60)return m===1?`${m} second`:`${m} seconds`;if(m<3600){const g=Math.floor(m/60);return g===1?`${g} minute`:`${g} minutes`}else{const g=Math.floor(m/3600);return g===1?`${g} hour`:`${g} hours`}},Pd=m=>m?m.endsWith("ExecutorRoute")||m==="BaseBridgeRoute":!1,w3=m=>JSON.stringify(m,(g,S)=>typeof S=="bigint"?S.toString():S),M3=/insufficient token allowance/im,_3=/insufficient lamports.*?(\d+).*?(\d+)/im,A3=/simulation failed:.*accountnotfound/i,E3=new RegExp("user rejected|rejected the request|rejected from user|user cancel|aborted by user|plugin closed|denied request signature|user denied|action_rejected|ethers-user-denied|approval denied","mi"),S3=new RegExp("AmountInTooSmall","m"),B3=/Simulation failed:.*InstructionError.*Custom.*6001/,F3=/insufficient.*(gas|fee|lamports|rent|intrinsic|settlement)/gi,C3=/insufficient (funds|balance)/gi,$c="Insufficient gas for this transfer. Please add more gas and try again",D3="Insufficient funds for this transfer. Please add more funds and try again";function nr(m,g){return g.test(m?.message)||g.test(m?.info?.error?.message)||g.test(m?.info?.error?.data?.message)}function R3(m,g,S){let s="Error with transfer, please try again",A=Md;if(m.message){if(m instanceof xe.RelayFailedError)s=m.message,A=_d;else if(g.route.includes("MayanSwapMONOCHAIN")&&nr(m,B3))s="Slippage exceeded. Please try again",A=Ad;else if(nr(m,M3))s="Error with transfer, please try again",A=bd;else if(m.name==="TransactionExpiredTimeoutError"||m.name==="TransactionExpiredBlockheightExceededError")s="Transfer timed out, please try again",A=wd;else if(nr(m,F3))s=$c,A=xf;else if(nr(m,C3))s=D3,A=md;else if(nr(m,E3))s="Wallet request declined. Transfer not started.",A=xd;else if(nr(m,S3))s="Amount is too small for the selected route",A=gd;else if(g.route.includes("CCTP")&&/burn.*exceed/i.test(m?.toString())){const{amount:l}=g;s=`Amount exceeds Circle limit${l!==void 0&&xe.whole(l)>1e6?" of 10,000,000":""}. Please reduce transfer amount.`,A=yd}else if(nr(m,A3)||nr(m,_3)){const i=S==="send"?g.fromChain:g.toChain;try{const l=Fd(i),b=Cd(l),p=Dd(i),o=p?` on ${p}`:"";s=`Insufficient ${b} for fees${o}. Please add more ${b} and try again`}catch{s=$c}A=xf}}return[s,{type:A,original:m}]}function Nd(m,g){m instanceof Error&&m.message.startsWith("No protocols registered for")||console.error(g?`${g}: ${m}`:m)}var gi={exports:{}},jc;function T3(){if(jc)return gi.exports;jc=1;function m(y,x){var M=x&&x.cache?x.cache:v,_=x&&x.serializer?x.serializer:p,E=x&&x.strategy?x.strategy:i;return E(y,{cache:M,serializer:_})}function g(y){return y==null||typeof y=="number"||typeof y=="boolean"}function S(y,x,M,_){var E=g(_)?_:M(_),B=x.get(E);return typeof B>"u"&&(B=y.call(this,_),x.set(E,B)),B}function s(y,x,M){var _=Array.prototype.slice.call(arguments,3),E=M(_),B=x.get(E);return typeof B>"u"&&(B=y.apply(this,_),x.set(E,B)),B}function A(y,x,M,_,E){return M.bind(x,y,_,E)}function i(y,x){var M=y.length===1?S:s;return A(y,this,M,x.cache.create(),x.serializer)}function l(y,x){var M=s;return A(y,this,M,x.cache.create(),x.serializer)}function b(y,x){var M=S;return A(y,this,M,x.cache.create(),x.serializer)}function p(){return JSON.stringify(arguments)}function o(){this.cache=Object.create(null)}o.prototype.has=function(y){return y in this.cache},o.prototype.get=function(y){return this.cache[y]},o.prototype.set=function(y,x){this.cache[y]=x};var v={create:function(){return new o}};return gi.exports=m,gi.exports.strategies={variadic:l,monadic:b},gi.exports}var I3=T3();const Od=Qe.getDefaultExportFromCjs(I3);class k3{constructor(g){this.TTLms=g}cache=new Map;pendingRequests=new Map;async requestWithCache(g,S){const s=Date.now(),A=this.cache.get(g);if(A&&s-A.timestamp<this.TTLms){if(console.debug("[Cache Debug] Cache HIT - using cached value"),A.isError)throw A.value;return A.value}let i=this.pendingRequests.get(g);return i?console.debug("[Cache Debug] Cache MISS - using pending request"):(console.debug("[Cache Debug] Cache MISS - initiating new request"),i=S().then(l=>(this.cache.set(g,{value:l,timestamp:Date.now(),isError:!1}),this.pendingRequests.delete(g),l)).catch(l=>{throw console.debug("[Cache Debug] Cache ERROR - storing error"),this.cache.set(g,{value:l,timestamp:Date.now(),isError:!0}),this.pendingRequests.delete(g),l}),this.pendingRequests.set(g,i)),i}}const Zf=["ManualNtt","AutomaticNtt","M0AutomaticRoute","NttExecutorRoute"],P3=m=>Zf.includes(m),qd=m=>{const g=yt.routes.get(m);if(!g)return;const S=g.rc.config;if(S)return m==="NttExecutorRoute"?S.ntt?.tokens:S.tokens},Ud=m=>{const g=Pr(m);for(const S of Zf){const s=qd(S);if(s)for(const A in s){const i=s[A];if(!i)continue;if(i.some(b=>b.chain===m.chain&&b.token===g))return!0}}return!1},N3=m=>{const g=[],S=Pr(m);for(const s of Zf){const A=qd(s);if(A)for(const i in A){const l=A[i];if(!l)continue;if(l.some(p=>p.chain===m.chain&&p.token===S)){for(const p of l)if(p.chain!==m.chain||p.token!==S){const o=yt.tokens.get(p.chain,p.token);o&&g.push(o)}return g}}}return g};class Ld{constructor(g){this.rc=g,this.IS_TOKEN_BRIDGE_ROUTE=["ManualTokenBridge","AutomaticTokenBridge","TokenBridgeExecutorRoute"].includes(g.meta.name),this.IS_MONAD_BRIDGE_ROUTE=["MonadBridgeManualRoute","MonadBridgeExecutorRoute"].includes(g.meta.name)}IS_TOKEN_BRIDGE_ROUTE=!1;IS_MONAD_BRIDGE_ROUTE=!1;tokenCache=new k3(1440*60*1e3);get AUTOMATIC_DEPOSIT(){return this.rc.IS_AUTOMATIC}get NATIVE_GAS_DROPOFF_SUPPORTED(){return this.rc.NATIVE_GAS_DROPOFF_SUPPORTED}async getV2ChainContext(g){const s=(await wr()).getPlatform(xe.chainToPlatform(g)).getChain(g);return{chain:g,context:s}}async isRouteSupported(g,S,s,A){if(s===A&&!this.rc.supportsSameChainSwaps?.(yt.network,s))return!1;const l=await this.getV2ChainContext(s),b=await this.getV2ChainContext(A),p=this.rc.supportedChains(yt.network),o=p.includes(l.chain),v=p.includes(b.chain);if(!o||!v)return!1;try{return!!(await this.supportedDestTokens(g,s,A)).find(x=>xe.isSameToken(x,S))}catch(y){return console.error("Error checking route support:",y),!1}}isSupportedChain(g){return this.rc.supportedChains(yt.network).includes(g)}async supportedDestTokens(g,S,s){if(!S||!s||!g)return[];const A=await this.getV2ChainContext(S),i=await this.getV2ChainContext(s);if(await this.isIlliquidDestToken(g,s))return[];const b=S===s,p=`supportedDestTokens-${g.address}-${S}-${s}`,o=async()=>{try{return await this.rc.supportedDestinationTokens(g.tokenId,A.context,i.context)}catch{return[]}},v=await this.tokenCache.requestWithCache(p,o),y=b?Vf(yt.network,i.chain)?.toLowerCase():void 0;return v.filter(M=>{const _=yt.tokens.get(M);return _&&kd(_,i.chain)?!1:b?!Bd(g,y,M):!0})}async getQuote(g,S,s,A,i,l,b,p){if(!A||!i||!S||!s)throw new Error("Malformed quote request");const o=await this.createRequest(S,s,A,i,b,p),v=await this.createRouteInstance(),y=await v.validate(o,{amount:xe.display(g),options:l});if(!y.valid)throw y.error;const x=await v.quote(o,y.params);return{routeInstance:v,quote:x,request:o}}async createRouteInstance(){const g=await wr();return new this.rc(g)}async createRequest(g,S,s,A,i,l){const b=(await this.getV2ChainContext(s)).context,p=(await this.getV2ChainContext(A)).context,o=await wr();return await gr.RouteTransferRequest.create(o,{source:g.tokenId,destination:S.tokenId,sender:i?xe.Wormhole.chainAddress(s,i):void 0,recipient:l?xe.Wormhole.chainAddress(A,l):void 0,sourceDecimals:g.decimals,destinationDecimals:S.decimals},b,p)}async send(g,S,s,A){const{quote:i,routeInstance:l,request:b}=g;if(!i.success)throw i.error;let p=await l.initiate(b,S,i,xe.Wormhole.chainAddress(s,A));if(p.state===xe.TransferState.SourceInitiated||p.state===xe.TransferState.SourceFinalized)return[l,p];let o=0;const v=5,y=1e3;for(;o<v;)try{for await(p of l.track(p,120*1e3))if(p.state>=xe.TransferState.SourceInitiated)return[l,p]}catch(x){console.error(`Error tracking transfer (attempt ${o+1} / ${v}):`,x);const M=y*Math.pow(2,o);await Rd(M),o++}throw new Error("Never got a SourceInitiated state in receipt")}async resumeIfManual(g){const S=await wr(),s=new this.rc(S);return xe.isManual(s)||xe.isFinalizable(s)?s.resume(g):null}async isIlliquidDestToken(g,S){if(this.IS_MONAD_BRIDGE_ROUTE&&g?.isTokenBridgeWrappedToken)return!0;if(this.IS_TOKEN_BRIDGE_ROUTE){if(Ud(g))return!0;const{symbol:A,nativeChain:i}=g;if(["ETH","WETH"].includes(A)&&i==="Ethereum"&&["Scroll","Xlayer","Mantle","Unichain"].includes(S))return!0}return!1}}function O3(m,g,S=6){if(g<=S)return m;const s=10n**BigInt(g-S),A=m%s;return m-A}function zc(m,g,S){let s=xe.units(m)*g/(S-g);return s=O3(s,m.decimals),xe.fromBaseUnits(s,m.decimals)}function Hd(m,g,S,s){if(!S||!g||!m||xe.units(g)===0n||S.chain===s?.chain)return;let i;if(typeof m=="string"){if(i=yt.routes.get(m),!i)return}else if(m instanceof Ld)i=m;else return;if(i.rc.meta.name.startsWith("MayanSwap")){const p=i.rc;if(p.getReferrerBps&&S&&s){const o={source:{id:S.tokenId||{chain:S.chain,address:S.address},symbol:S.symbol,decimals:S.decimals},destination:{id:s.tokenId||{chain:s.chain,address:s.address},symbol:s.symbol,decimals:s.decimals}},v=p.getReferrerBps(o);if(v>0)return zc(g,BigInt(v),10000n)}return}const l=i.rc.config;if(!l)return;let b=0n;if(Pd(i.rc.meta.name)){if(l.referrerFeeDbps!==void 0)b=l.referrerFeeDbps;else if(l.referrerFee?.feeDbps!==void 0)if(l.referrerFee.perTokenOverrides!==void 0&&S){const p=l.referrerFee.perTokenOverrides[S.chain]?.[S.addressString];p?.referrerFeeDbps!==void 0?b=p.referrerFeeDbps:b=l.referrerFee.feeDbps}else b=l.referrerFee.feeDbps;else if(l.referrerFee?.referrerFeeDbps!==void 0)if(l.referrerFee.tokenFeeOverrides&&S){const p=l.referrerFee.tokenFeeOverrides[yt.network]?.[S.chain]?.[S.addressString];p!==void 0?b=p:b=l.referrerFee.referrerFeeDbps}else b=l.referrerFee.referrerFeeDbps}if(b!==0n)return zc(g,b,100000n)}const q3=(m,g)=>{let S={name:"",eta:1/0},s={name:"",amountOut:0n};for(const A of m){const i=g[A];if(!i||!i.success)continue;if(i.eta!==void 0&&i.eta<S.eta&&(S={name:A,eta:i.eta}),yt.routes.get(A)?.AUTOMATIC_DEPOSIT){const b=BigInt(i.destinationToken.amount.amount);b>s.amountOut&&(s={name:A,amountOut:b})}}return{fastestRoute:S,cheapestRoute:s}};function $d(m){return new Date(m+3e4)}function U3(m){const g=Date.now();return m instanceof Date&&m.getTime()>g+5e3?m:$d(g)}const jd=[gr.AutomaticCCTPRoute,gr.CCTPRoute,gr.AutomaticTokenBridgeRoute,gr.TokenBridgeRoute,gr.TBTCRoute];class L3{preference;routes;quoteMetadataCache;constructor(g=jd){const S={},s=[];for(const A of g){const i=A.meta.name;if(i==="")throw new Error("Route has empty meta.name");if(i in S)throw new Error(`Route has duplicate meta.name: ${i}`);s.push(i),S[i]=new Ld(A)}this.routes=S,this.preference=s,this.quoteMetadataCache=new H3}get(g){return this.routes[g]}async forEach(g){return Promise.all(this.preference.map(S=>g(S,this.routes[S])))}async resumeFromTx(g){return new Promise((S,s)=>{const A=Object.keys(this.routes).length;let i=0;this.forEach((l,b)=>{b.resumeIfManual(g).then(p=>{p!==null?S({route:l,receipt:p}):i+=1}).catch(p=>{i+=1}).finally(()=>{i===A&&S(null)})})})}allSupportedChains(){const g=new Set;for(const S of this.preference)this.routes[S].rc.supportedChains(yt.network).forEach(i=>g.add(i));return Array.from(g)}async allSupportedDestTokens(g,S,s){const A=new Map;return await this.forEach(async(i,l)=>{try{const b=await l.supportedDestTokens(g,S,s);for(const p of b){const o=Li(p);xe.isUnattestedTokenId(p)?A.set(o,p):A.set(o,pd(o))}}catch(b){Nd(b)}}),[...A.values()]}async getQuotes(g,S){const s=await Promise.allSettled(g.map(i=>{const l=this.quoteMetadataCache.get(i,S);return l?.quote?l.quote:this.quoteMetadataCache.fetchQuote(i,S,this.get(i))})),A={};for(let i=0;i<g.length;i++){const l=g[i],b=s[i];b.status==="rejected"?A[l]={success:!1,error:b.reason}:A[l]=b.value}return A}isSameChainSwapSupported=Od(g=>Object.values(this.routes).some(s=>{const{supportsSameChainSwaps:A,supportedChains:i}=s.rc;return typeof A=="function"&&A(yt.network,g)&&i(yt.network).includes(g)}));async execute(g,S,s,A,i,l,b,p,o,v){const y=this.get(g),x={amount:s,sourceChain:A,sourceToken:S,destChain:l,destToken:o,nativeGas:v.nativeGas,sender:b,recipient:p};let M=this.quoteMetadataCache.get(g,x);return M||(M=await y.getQuote(s,S,o,A,l,v,b,p)),y.send(M,i,l,p)}}class H3{cache;pending;constructor(){this.cache={},this.pending={}}quoteParamsKey(g,S){return`${g}:${S.sourceChain}:${S.sourceToken.address.toString()}:${S.destChain}:${S.destToken.address.toString()}:${xe.units(S.amount)}:${S.nativeGas}:${S.recipient}:${S.sender}`}get(g,S){const s=this.quoteParamsKey(g,S),A=this.cache[s],i=A?.ttl()<=5e3;return!A||i?(delete this.cache[s],null):{quote:A.quote,request:A.request,routeInstance:A.routeInstance}}async fetchQuote(g,S,s){console.debug("Fetching quote using",g,S);const A=this.quoteParamsKey(g,S),i=this.pending[A];if(i)return new Promise((b,p)=>{i.push({resolve:b,reject:p})});let l=S.amount;if(yt.ui?.experimental?.feeOffsetting){const b=Hd(s,S.amount,S.sourceToken,S.destToken);b&&xe.units(b)>0n&&(l=xe.fromBaseUnits(xe.units(S.amount)+xe.units(b),S.amount.decimals))}return s.getQuote(l,S.sourceToken,S.destToken,S.sourceChain,S.destChain,{nativeGas:S.nativeGas},S.sender,S.recipient).then(({routeInstance:b,quote:p,request:o})=>{console.debug("\x1B[32mSuccessfully fetched quote using",g,p);const v=this.pending[A];for(const{resolve:y}of v)y(p);delete this.pending[A],p.success&&(p.expires=U3(p.expires)),this.cache[A]=new Kc(p,b,o)}).catch(b=>{console.debug("\x1B[31mFailed to fetch quote using",g,b);const p=this.pending[A];for(const{reject:o}of p)o(b);delete this.pending[A],this.cache[A]=new Kc({success:!1,error:b},{},{})}),new Promise((b,p)=>{this.pending[A]=[{resolve:b,reject:p}]})}nextExpiry(g,S){const s=g.map(A=>{const i=this.quoteParamsKey(A,S);if(this.cache[i])return this.cache[i].expires()}).filter(A=>A!==void 0).sort((A,i)=>A.valueOf()-i.valueOf());if(s.length>0)return s[0]}}class Kc{quote;timestamp;routeInstance;request;constructor(g,S,s){this.quote=g,this.routeInstance=S,this.request=s,this.timestamp=new Date}expires(){return this.quote.success?this.quote.expires??$d(this.timestamp.getTime()):new Date(this.timestamp.getTime()+12e4)}ttl(){return this.expires().getTime()-Date.now()}}function Xf(m={}){const g=yv(m.network||void 0||"Mainnet");if(!["Mainnet","Testnet","Devnet"].includes(g))throw new Error(`Invalid env "${g}": Use "Testnet", "Devnet", or "Mainnet"`);const S={MAINNET:cd,DEVNET:$6,TESTNET:ld}[g.toUpperCase()],s=bv(S.wrappedTokens,m.wrappedTokens),A=o=>m.cacheNamespace?`wormhole-connect:${m.cacheNamespace}:${o}`:`wormhole-connect:${o}`,i=e3([...S.tokens,...m.tokensConfig?Object.values(m.tokensConfig):[]],s,A(`token-cache:${g}`)),l=Zd[g.toUpperCase()],b=Object.assign({},l.rpcs,S.rpcs,m.rpcs);m.ui?.defaultInputs&&mv(m.ui.defaultInputs,S.chains,i);const p=yf(m.ui??{});return m.tokens&&m.tokens.length>0&&p.disableUserInputtedTokens===void 0&&(p.disableUserInputtedTokens=!0),{sdkConfig:l,network:g,isMainnet:g==="Mainnet",rpcs:b,evmIndexers:m.evmIndexers,mayanApi:"https://explorer-api.mayan.finance",lifiExplorerUrl:"https://li.quest",wormholeApi:{Mainnet:"https://api.wormholescan.io/",Testnet:"https://api.testnet.wormholescan.io/",Devnet:""}[g],wormholeRpcHosts:{Mainnet:["https://wormhole-v2-mainnet-api.mcf.rocks","https://wormhole-v2-mainnet-api.chainlayer.network","https://wormhole-v2-mainnet-api.staking.fund"],Testnet:["https://guardian.testnet.xlabs.xyz","https://guardian-01.testnet.xlabs.xyz","https://guardian-02.testnet.xlabs.xyz"],Devnet:["http://localhost:7071"]}[g],coingecko:m.coingecko,triggerEvent:j6(g,m.eventHandler),validateTransfer:m.validateTransferHandler,isChainSupportedHandler:m.isChainSupportedHandler,isRouteSupportedHandler:m.isRouteSupportedHandler,isTokenSupportedHandler:m.isTokenSupportedHandler,filterRoutes:m.filterRoutes,chains:S.chains,chainsArr:Object.values(S.chains).filter(o=>m.chains?m.chains.includes(o.sdkName):!0).sort((o,v)=>{const y=Fi.CHAIN_ORDER.indexOf(o.sdkName),x=Fi.CHAIN_ORDER.indexOf(v.sdkName);return y>=0&&x>=0?y-x:y===-1?1:x===-1?-1:0}),tokens:i,tokenWhitelist:m.tokens,routes:new L3(m.routes),ui:yf({...m.ui}),cacheKey:A,guardianSet:S.guardianSet,transactionSettings:m?.transactionSettings||{}}}const yt=Xf();async function wr(){return yt._v2Wormhole||(yt._v2Wormhole=await $3()),yt._v2Wormhole}async function zd(){delete yt._v2Wormhole}async function $3(){const m={chains:{}};for(const g in yt.chains){const S=g,s=yt.rpcs[S],A={};for(const i of yt.tokens.getAllForChain(S)){const l={key:i.key,chain:S,symbol:i.symbol,address:i.address.toString(),decimals:i.decimals};A[i.address.toString()]=l}m.chains[S]={rpc:s,tokenMap:A}}return await vv(yt.network,[z6,K6,W6,G6],m)}function j3(m={}){const g=Xf(m);zd();for(const S in g)yt[S]=g[S];typeof window<"u"&&(window._connectConfig=yt)}exports.DEFAULT_ROUTES=jd;exports.ERR_AMOUNT_TOO_LARGE=yd;exports.ERR_AMOUNT_TOO_SMALL=gd;exports.ERR_DESTINATION_CONTRACT_PAUSED=i3;exports.ERR_INSUFFICIENT_ALLOWANCE=bd;exports.ERR_INSUFFICIENT_FUNDS=md;exports.ERR_INSUFFICIENT_GAS=xf;exports.ERR_NOT_ENOUGH_CAPACITY=t3;exports.ERR_RELAY_FAILED=_d;exports.ERR_SLIPPAGE_EXCEEDED=Ad;exports.ERR_SOURCE_CONTRACT_PAUSED=r3;exports.ERR_TIMEOUT=wd;exports.ERR_UNKNOWN=Md;exports.ERR_UNSUPPORTED_ABI_VERSION=n3;exports.ERR_USER_REJECTED=xd;exports.MAINNET=cd;exports.TESTNET=ld;exports.Token=fr;exports.TokenIcon=ge;exports.TokenMapping=$r;exports.UserActions=Ed;exports.WETH_CONTRACTS=Sd;exports.buildConfig=Xf;exports.calculateFeeOffset=Hd;exports.calculateUSDPrice=d3;exports.calculateUSDPriceRaw=Id;exports.chainDisplayName=Dd;exports.clearWormholeContextV2=zd;exports.config=yt;exports.copyTextToClipboard=h3;exports.displayWalletAddress=s3;exports.fetchTokenPrices=J6;exports.formatDuration=x3;exports.getBestRoutes=q3;exports.getGasToken=Fd;exports.getNttTokenGroup=N3;exports.getTokenDisplaySymbolByTokenAddress=Cd;exports.getTokenExplorerUrl=v3;exports.getTransactionExplorerUrl=b3;exports.getUSDFormat=Td;exports.getWalletExplorerUrl=m3;exports.getWormholeContextV2=wr;exports.getWrappedNativeToken=Vf;exports.interpretTransferError=R3;exports.isEmptyObject=p3;exports.isExecutorRoute=Pd;exports.isFrankensteinToken=kd;exports.isNttRoute=P3;exports.isNttToken=Ud;exports.isSameToken=vd;exports.isTokenTuple=Wf;exports.isValidTxId=c3;exports.maybeLogSdkError=Nd;exports.memoize=Od;exports.millisToHumanString=y3;exports.millisToRelativeTime=g3;exports.nacl2=Kf;exports.require$$2=Er;exports.requireCallBind=sl;exports.requireCallBound=Tf;exports.requireDefineDataProperty=fl;exports.requireElliptic=Oi;exports.requireEndOfStream=Di;exports.requireEsObjectAtoms=Ef;exports.requireEvents=Ar;exports.requireGetIntrinsic=Rf;exports.requireGetProto=Df;exports.requireGopd=Fr;exports.requireHasPropertyDescriptors=ol;exports.requireHasown=al;exports.requireInherits_browser=dt;exports.requireIsTypedArray=cl;exports.requireNaclFast=Yl;exports.requirePipeline=Jc;exports.requireSha2=sd;exports.requireShams=hl;exports.requireShams$1=Sf;exports.requireStreamBrowserify=Ri;exports.requireType=Br;exports.requireUtils=mr;exports.requireWhichTypedArray=ul;exports.require_stream_duplex=pr;exports.require_stream_passthrough=Yc;exports.require_stream_readable=Mf;exports.require_stream_transform=_f;exports.require_stream_writable=wf;exports.setConfig=j3;exports.shouldFilterSameChainToken=Bd;exports.sleep=Rd;exports.stringifyWithBigInt=w3;exports.tokenIdFromTuple=Gf;exports.tokenKey=Li;exports.trimAddress=Bi;exports.trimTxHash=o3;exports.types=t6;exports.usePrevious=l3;
|
|
15
|
+
`,r:"\r",t:" "},o,v=function(R){throw{name:"SyntaxError",message:R,at:l,text:o}},y=function(R){return R&&R!==b&&v("Expected '"+R+"' instead of '"+b+"'"),b=o.charAt(l),l+=1,b},x=function(){var R,D="";for(b==="-"&&(D="-",y("-"));b>="0"&&b<="9";)D+=b,y();if(b===".")for(D+=".";y()&&b>="0"&&b<="9";)D+=b;if(b==="e"||b==="E")for(D+=b,y(),(b==="-"||b==="+")&&(D+=b,y());b>="0"&&b<="9";)D+=b,y();if(R=+D,!isFinite(R))v("Bad number");else return m==null&&(m=Jl()),D.length>15?i.storeAsString?D:i.useNativeBigInt?BigInt(D):new m(D):i.alwaysParseAsBig?i.useNativeBigInt?BigInt(R):new m(R):R},M=function(){var R,D,q="",O;if(b==='"')for(var Y=l;y();){if(b==='"')return l-1>Y&&(q+=o.substring(Y,l-1)),y(),q;if(b==="\\"){if(l-1>Y&&(q+=o.substring(Y,l-1)),y(),b==="u"){for(O=0,D=0;D<4&&(R=parseInt(y(),16),!!isFinite(R));D+=1)O=O*16+R;q+=String.fromCharCode(O)}else if(typeof p[b]=="string")q+=p[b];else break;Y=l}}v("Bad string")},_=function(){for(;b&&b<=" ";)y()},E=function(){switch(b){case"t":return y("t"),y("r"),y("u"),y("e"),!0;case"f":return y("f"),y("a"),y("l"),y("s"),y("e"),!1;case"n":return y("n"),y("u"),y("l"),y("l"),null}v("Unexpected '"+b+"'")},B,F=function(){var R=[];if(b==="["){if(y("["),_(),b==="]")return y("]"),R;for(;b;){if(R.push(B()),_(),b==="]")return y("]"),R;y(","),_()}}v("Bad array")},C=function(){var R,D=Object.create(null);if(b==="{"){if(y("{"),_(),b==="}")return y("}"),D;for(;b;){if(R=M(),_(),y(":"),i.strict===!0&&Object.hasOwnProperty.call(D,R)&&v('Duplicate key "'+R+'"'),g.test(R)===!0?i.protoAction==="error"?v("Object contains forbidden prototype property"):i.protoAction==="ignore"?B():D[R]=B():S.test(R)===!0?i.constructorAction==="error"?v("Object contains forbidden constructor property"):i.constructorAction==="ignore"?B():D[R]=B():D[R]=B(),_(),b==="}")return y("}"),D;y(","),_()}}v("Bad object")};return B=function(){switch(_(),b){case"{":return C();case"[":return F();case'"':return M();case"-":return x();default:return b>="0"&&b<="9"?x():E()}},function(R,D){var q;return o=R+"",l=0,b=" ",q=B(),_(),b&&v("Syntax error"),typeof D=="function"?(function O(Y,Q){var L,X=Y[Q];return X&&typeof X=="object"&&Object.keys(X).forEach(function(c){L=O(X,c),L!==void 0?X[c]=L:delete X[c]}),D.call(Y,Q,X)})({"":q},""):q}};return of=s,of}var bc;function $2(){if(bc)return Rr.exports;bc=1;var m=L2().stringify,g=H2();return Rr.exports=function(S){return{parse:g(S),stringify:m}},Rr.exports.parse=g(),Rr.exports.stringify=m,Rr.exports}var j2=$2();const z2=Qe.getDefaultExportFromCjs(j2);var mc;(function(m){m.DEFAULT="default",m.SAFE="safe",m.MIXED="mixed",m.BIGINT="bigint"})(mc||(mc={}));z2({useNativeBigInt:!0,strict:!0});function K2(m,g){return m.length!==g.length?!1:Array.from(m).every((S,s)=>S===g[s])}function W2(...m){const g=m.reduce((A,i)=>A+i.length,0),S=new Uint8Array(g);let s=0;for(let A=0;A<m.length;A++)S.set(m[A],s),s+=m[A].length;return S}function Ql(m){return q2.sha512_256.array(m)}const vf=Kf.sign.publicKeyLength;Kf.sign.secretKeyLength;const yc=32;var sf={exports:{}},gc;function G2(){return gc||(gc=1,(function(m){(function(){var g=typeof window=="object"?window:{},S=!g.HI_BASE32_NO_NODE_JS&&typeof xe.process$1=="object"&&xe.process$1.versions&&xe.process$1.versions.node;S&&(g=Qe.commonjsGlobal);var s=!g.HI_BASE32_NO_COMMON_JS&&!0&&m.exports,A="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".split(""),i={A:0,B:1,C:2,D:3,E:4,F:5,G:6,H:7,I:8,J:9,K:10,L:11,M:12,N:13,O:14,P:15,Q:16,R:17,S:18,T:19,U:20,V:21,W:22,X:23,Y:24,Z:25,2:26,3:27,4:28,5:29,6:30,7:31},l=[0,0,0,0,0,0,0,0],b=function(B,F){F.length>10&&(F="..."+F.substr(-10));var C=new Error("Decoded data is not valid UTF-8. Maybe try base32.decode.asBytes()? Partial data after reading "+B+" bytes: "+F+" <-");throw C.position=B,C},p=function(B){for(var F="",C=B.length,R=0,D=0,q,O;R<C;){if(q=B[R++],q<=127){F+=String.fromCharCode(q);continue}else q>191&&q<=223?(O=q&31,D=1):q<=239?(O=q&15,D=2):q<=247?(O=q&7,D=3):b(R,F);for(var Y=0;Y<D;++Y)q=B[R++],(q<128||q>191)&&b(R,F),O<<=6,O+=q&63;O>=55296&&O<=57343&&b(R,F),O>1114111&&b(R,F),O<=65535?F+=String.fromCharCode(O):(O-=65536,F+=String.fromCharCode((O>>10)+55296),F+=String.fromCharCode((O&1023)+56320))}return F},o=function(B){if(B==="")return[];if(!/^[A-Z2-7=]+$/.test(B))throw new Error("Invalid base32 characters");B=B.replace(/=/g,"");for(var F,C,R,D,q,O,Y,Q,L=[],X=0,c=B.length,e=0,r=c>>3<<3;e<r;)F=i[B.charAt(e++)],C=i[B.charAt(e++)],R=i[B.charAt(e++)],D=i[B.charAt(e++)],q=i[B.charAt(e++)],O=i[B.charAt(e++)],Y=i[B.charAt(e++)],Q=i[B.charAt(e++)],L[X++]=(F<<3|C>>>2)&255,L[X++]=(C<<6|R<<1|D>>>4)&255,L[X++]=(D<<4|q>>>1)&255,L[X++]=(q<<7|O<<2|Y>>>3)&255,L[X++]=(Y<<5|Q)&255;var n=c-r;return n===2?(F=i[B.charAt(e++)],C=i[B.charAt(e++)],L[X++]=(F<<3|C>>>2)&255):n===4?(F=i[B.charAt(e++)],C=i[B.charAt(e++)],R=i[B.charAt(e++)],D=i[B.charAt(e++)],L[X++]=(F<<3|C>>>2)&255,L[X++]=(C<<6|R<<1|D>>>4)&255):n===5?(F=i[B.charAt(e++)],C=i[B.charAt(e++)],R=i[B.charAt(e++)],D=i[B.charAt(e++)],q=i[B.charAt(e++)],L[X++]=(F<<3|C>>>2)&255,L[X++]=(C<<6|R<<1|D>>>4)&255,L[X++]=(D<<4|q>>>1)&255):n===7&&(F=i[B.charAt(e++)],C=i[B.charAt(e++)],R=i[B.charAt(e++)],D=i[B.charAt(e++)],q=i[B.charAt(e++)],O=i[B.charAt(e++)],Y=i[B.charAt(e++)],L[X++]=(F<<3|C>>>2)&255,L[X++]=(C<<6|R<<1|D>>>4)&255,L[X++]=(D<<4|q>>>1)&255,L[X++]=(q<<7|O<<2|Y>>>3)&255),L},v=function(B){for(var F,C,R,D,q,O="",Y=B.length,Q=0,L=parseInt(Y/5)*5;Q<L;)F=B.charCodeAt(Q++),C=B.charCodeAt(Q++),R=B.charCodeAt(Q++),D=B.charCodeAt(Q++),q=B.charCodeAt(Q++),O+=A[F>>>3]+A[(F<<2|C>>>6)&31]+A[C>>>1&31]+A[(C<<4|R>>>4)&31]+A[(R<<1|D>>>7)&31]+A[D>>>2&31]+A[(D<<3|q>>>5)&31]+A[q&31];var X=Y-L;return X===1?(F=B.charCodeAt(Q),O+=A[F>>>3]+A[F<<2&31]+"======"):X===2?(F=B.charCodeAt(Q++),C=B.charCodeAt(Q),O+=A[F>>>3]+A[(F<<2|C>>>6)&31]+A[C>>>1&31]+A[C<<4&31]+"===="):X===3?(F=B.charCodeAt(Q++),C=B.charCodeAt(Q++),R=B.charCodeAt(Q),O+=A[F>>>3]+A[(F<<2|C>>>6)&31]+A[C>>>1&31]+A[(C<<4|R>>>4)&31]+A[R<<1&31]+"==="):X===4&&(F=B.charCodeAt(Q++),C=B.charCodeAt(Q++),R=B.charCodeAt(Q++),D=B.charCodeAt(Q),O+=A[F>>>3]+A[(F<<2|C>>>6)&31]+A[C>>>1&31]+A[(C<<4|R>>>4)&31]+A[(R<<1|D>>>7)&31]+A[D>>>2&31]+A[D<<3&31]+"="),O},y=function(B){var F,C,R,D,q,O,Y=!1,Q="",L=0,X,c=0,e=B.length;if(B==="")return Q;do{for(l[0]=l[5],l[1]=l[6],l[2]=l[7],X=c;L<e&&X<5;++L)O=B.charCodeAt(L),O<128?l[X++]=O:O<2048?(l[X++]=192|O>>6,l[X++]=128|O&63):O<55296||O>=57344?(l[X++]=224|O>>12,l[X++]=128|O>>6&63,l[X++]=128|O&63):(O=65536+((O&1023)<<10|B.charCodeAt(++L)&1023),l[X++]=240|O>>18,l[X++]=128|O>>12&63,l[X++]=128|O>>6&63,l[X++]=128|O&63);c=X-5,L===e&&++L,L>e&&X<6&&(Y=!0),F=l[0],X>4?(C=l[1],R=l[2],D=l[3],q=l[4],Q+=A[F>>>3]+A[(F<<2|C>>>6)&31]+A[C>>>1&31]+A[(C<<4|R>>>4)&31]+A[(R<<1|D>>>7)&31]+A[D>>>2&31]+A[(D<<3|q>>>5)&31]+A[q&31]):X===1?Q+=A[F>>>3]+A[F<<2&31]+"======":X===2?(C=l[1],Q+=A[F>>>3]+A[(F<<2|C>>>6)&31]+A[C>>>1&31]+A[C<<4&31]+"===="):X===3?(C=l[1],R=l[2],Q+=A[F>>>3]+A[(F<<2|C>>>6)&31]+A[C>>>1&31]+A[(C<<4|R>>>4)&31]+A[R<<1&31]+"==="):(C=l[1],R=l[2],D=l[3],Q+=A[F>>>3]+A[(F<<2|C>>>6)&31]+A[C>>>1&31]+A[(C<<4|R>>>4)&31]+A[(R<<1|D>>>7)&31]+A[D>>>2&31]+A[D<<3&31]+"=")}while(!Y);return Q},x=function(B){for(var F,C,R,D,q,O="",Y=B.length,Q=0,L=parseInt(Y/5)*5;Q<L;)F=B[Q++],C=B[Q++],R=B[Q++],D=B[Q++],q=B[Q++],O+=A[F>>>3]+A[(F<<2|C>>>6)&31]+A[C>>>1&31]+A[(C<<4|R>>>4)&31]+A[(R<<1|D>>>7)&31]+A[D>>>2&31]+A[(D<<3|q>>>5)&31]+A[q&31];var X=Y-L;return X===1?(F=B[Q],O+=A[F>>>3]+A[F<<2&31]+"======"):X===2?(F=B[Q++],C=B[Q],O+=A[F>>>3]+A[(F<<2|C>>>6)&31]+A[C>>>1&31]+A[C<<4&31]+"===="):X===3?(F=B[Q++],C=B[Q++],R=B[Q],O+=A[F>>>3]+A[(F<<2|C>>>6)&31]+A[C>>>1&31]+A[(C<<4|R>>>4)&31]+A[R<<1&31]+"==="):X===4&&(F=B[Q++],C=B[Q++],R=B[Q++],D=B[Q],O+=A[F>>>3]+A[(F<<2|C>>>6)&31]+A[C>>>1&31]+A[(C<<4|R>>>4)&31]+A[(R<<1|D>>>7)&31]+A[D>>>2&31]+A[D<<3&31]+"="),O},M=function(B,F){var C=typeof B!="string";return C&&B.constructor===ArrayBuffer&&(B=new Uint8Array(B)),C?x(B):F?v(B):y(B)},_=function(B,F){if(!F)return p(o(B));if(B==="")return"";if(!/^[A-Z2-7=]+$/.test(B))throw new Error("Invalid base32 characters");var C,R,D,q,O,Y,Q,L,X="",c=B.indexOf("=");c===-1&&(c=B.length);for(var e=0,r=c>>3<<3;e<r;)C=i[B.charAt(e++)],R=i[B.charAt(e++)],D=i[B.charAt(e++)],q=i[B.charAt(e++)],O=i[B.charAt(e++)],Y=i[B.charAt(e++)],Q=i[B.charAt(e++)],L=i[B.charAt(e++)],X+=String.fromCharCode((C<<3|R>>>2)&255)+String.fromCharCode((R<<6|D<<1|q>>>4)&255)+String.fromCharCode((q<<4|O>>>1)&255)+String.fromCharCode((O<<7|Y<<2|Q>>>3)&255)+String.fromCharCode((Q<<5|L)&255);var n=c-r;return n===2?(C=i[B.charAt(e++)],R=i[B.charAt(e++)],X+=String.fromCharCode((C<<3|R>>>2)&255)):n===4?(C=i[B.charAt(e++)],R=i[B.charAt(e++)],D=i[B.charAt(e++)],q=i[B.charAt(e++)],X+=String.fromCharCode((C<<3|R>>>2)&255)+String.fromCharCode((R<<6|D<<1|q>>>4)&255)):n===5?(C=i[B.charAt(e++)],R=i[B.charAt(e++)],D=i[B.charAt(e++)],q=i[B.charAt(e++)],O=i[B.charAt(e++)],X+=String.fromCharCode((C<<3|R>>>2)&255)+String.fromCharCode((R<<6|D<<1|q>>>4)&255)+String.fromCharCode((q<<4|O>>>1)&255)):n===7&&(C=i[B.charAt(e++)],R=i[B.charAt(e++)],D=i[B.charAt(e++)],q=i[B.charAt(e++)],O=i[B.charAt(e++)],Y=i[B.charAt(e++)],Q=i[B.charAt(e++)],X+=String.fromCharCode((C<<3|R>>>2)&255)+String.fromCharCode((R<<6|D<<1|q>>>4)&255)+String.fromCharCode((q<<4|O>>>1)&255)+String.fromCharCode((O<<7|Y<<2|Q>>>3)&255)),X},E={encode:M,decode:_};_.asBytes=o,s?m.exports=E:g.base32=E})()})(sf)),sf.exports}var V2=G2();const ed=Qe.getDefaultExportFromCjs(V2),hf=36,bf=4,td=58;xe.Buffer$1.from("appID");const xc="address seems to be malformed",Z2="wrong checksum for address";function rd(m){if(typeof m!="string"||m.length!==td)throw new Error(xc);const g=ed.decode.asBytes(m.toString());if(g.length!==hf)throw new Error(xc);const S=new Uint8Array(g.slice(0,hf-bf)),s=new Uint8Array(g.slice(vf,hf)),A=Ql(S).slice(yc-bf,yc);if(!K2(A,s))throw new Error(Z2);return{publicKey:S,checksum:s}}function X2(m){try{rd(m)}catch{return!1}return!0}function Y2(m){const g=Ql(m).slice(vf-bf,vf);return ed.encode(W2(m,g)).toString().slice(0,td)}var wc;(function(m){m.pay="pay",m.keyreg="keyreg",m.acfg="acfg",m.axfer="axfer",m.afrz="afrz",m.appl="appl",m.stpf="stpf"})(wc||(wc={}));var Mc;(function(m){m[m.NoOpOC=0]="NoOpOC",m[m.OptInOC=1]="OptInOC",m[m.CloseOutOC=2]="CloseOutOC",m[m.ClearStateOC=3]="ClearStateOC",m[m.UpdateApplicationOC=4]="UpdateApplicationOC",m[m.DeleteApplicationOC=5]="DeleteApplicationOC"})(Mc||(Mc={}));xe.Buffer$1.from("ProgData");"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("").forEach(function(m,g){});var _c;(function(m){m.any="txn",m.pay="pay",m.keyreg="keyreg",m.acfg="acfg",m.axfer="axfer",m.afrz="afrz",m.appl="appl"})(_c||(_c={}));var Ac;(function(m){m.account="account",m.application="application",m.asset="asset"})(Ac||(Ac={}));xe.Buffer$1.from([21,31,124,117]);var Ec;(function(m){m[m.BUILDING=0]="BUILDING",m[m.BUILT=1]="BUILT",m[m.SIGNED=2]="SIGNED",m[m.SUBMITTED=3]="SUBMITTED",m[m.COMMITTED=4]="COMMITTED"})(Ec||(Ec={}));xe.Buffer$1.from([77,88]);const mf="Algorand";function J2(m){if(m<BigInt(Number.MIN_SAFE_INTEGER)||m>BigInt(Number.MAX_SAFE_INTEGER))throw new Error("Integer is unsafe");return Number(m)}class ar{static byteSize=32;static platform=mf;type="Native";address;constructor(g){if(ar.instanceof(g))this.address=g.address;else if(xe.UniversalAddress.instanceof(g))this.address=g.toUint8Array();else if(g instanceof Uint8Array&&g.byteLength===ar.byteSize)this.address=g;else if(typeof g=="string"&&X2(g))this.address=rd(g).publicKey;else if(typeof g=="string"&&!isNaN(parseInt(g)))this.address=xe.bytes.zpad(xe.bignum.toBytes(BigInt(g),8),ar.byteSize);else if(typeof g=="bigint")this.address=xe.bytes.zpad(xe.bignum.toBytes(g,8),ar.byteSize);else if(g instanceof Uint8Array&&g.byteLength===8)this.address=xe.bytes.zpad(g,ar.byteSize);else throw new Error(`Invalid Algorand address or ASA ID: ${g}`)}unwrap(){return this.toString()}toString(){return Y2(this.address)}toNative(){return this}toUint8Array(){return this.address}toUniversalAddress(){return new xe.UniversalAddress(this.toUint8Array())}toBigInt(){return xe.bignum.decode(this.toUint8Array().slice(24,32))}toInt(){return J2(this.toBigInt())}equals(g){return ar.instanceof(g)?g.address===this.address:this.toUniversalAddress().equals(g)}static instanceof(g){return g.constructor.platform===mf}}xe.registerNative(mf,ar);const id=[["Cosmoshub","cosmos"],["Evmos","evmos"],["Injective","inj"],["Kujira","kuji"],["Osmosis","osmo"],["Sei","sei"],["Wormchain","wormhole"],["Celestia","celestia"],["Stargaze","stars"],["Dymension","dym"],["Neutron","neutron"],["Seda","seda"],["Provenance","pb"],["Noble","noble"]],Q2=xe.constMap(id);xe.constMap(id,[1,[0]]);const nd=[["Mainnet",[["Cosmoshub","uatom"],["Evmos","aevmos"],["Injective","inj"],["Kujira","kuji"],["Osmosis","uosmo"],["Sei","usei"],["Wormchain","uworm"],["Celestia","utia"],["Dymension","adym"],["Stargaze","ustars"],["Neutron","untrn"],["Provenance","nhash"],["Noble","uusdc"]]],["Testnet",[["Cosmoshub","uatom"],["Evmos","atevmos"],["Injective","inj"],["Kujira","kuji"],["Osmosis","uosmo"],["Sei","usei"],["Wormchain","uworm"],["Seda","aseda"]]],["Devnet",[["Cosmoshub","uatom"],["Evmos","atevmos"],["Injective","inj"],["Kujira","kuji"],["Osmosis","uosmo"],["Sei","usei"],["Wormchain","uworm"]]]];xe.constMap(nd);xe.constMap(nd,[[0,2],[1]]);const ev=[["Mainnet",[["Wormchain",{Osmosis:"channel-3",Evmos:"channel-5",Kujira:"channel-9",Stargaze:"channel-12",Injective:"channel-13",Dymension:"channel-15"}],["Osmosis",{Wormchain:"channel-2186"}],["Evmos",{Wormchain:"channel-94"}],["Kujira",{Wormchain:"channel-113"}],["Injective",{Wormchain:"channel-183"}],["Dymension",{Wormchain:"channel-36"}],["Stargaze",{Wormchain:"channel-278"}]]],["Testnet",[["Wormchain",{Cosmoshub:"channel-5",Injective:"channel-15",Kujira:"channel-16",Stargaze:"channel-17",Osmosis:"channel-19",Dymension:"channel-18",Evmos:"channel-20"}],["Cosmoshub",{Wormchain:"channel-3086"}],["Injective",{Wormchain:"channel-76973"}],["Kujira",{Wormchain:"channel-114"}],["Osmosis",{Wormchain:"channel-7904"}],["Stargaze",{Wormchain:"channel-949"}],["Evmos",{Wormchain:"channel-240"}],["Dymension",{Wormchain:"channel-23"}]]],["Devnet",[["Wormchain",{Cosmoshub:"channel-1",Osmosis:"channel-2"}],["Cosmoshub",{Wormchain:"channel-1"}],["Osmosis",{Wormchain:"channel-1"}]]]];xe.constMap(ev);const tv=[["Mainnet",[["Injective","https://lcd.injective.network"],["Evmos","https://rest.bd.evmos.org:1317"]]],["Testnet",[["Injective","https://k8s.testnet.lcd.injective.network"],["Evmos","https://rest.bd.evmos.dev:1317"]]],["Devnet",[["Injective","https://localhost:1234"],["Evmos","https://localhost:1233"]]]];xe.constMap(tv);const rv=[["Mainnet",[["Osmosis","0.025"],["Sei","0.02"],["Cosmoshub","0.025"],["Kujira","0.0051"],["Neutron","0.075"],["Celestia","0.02"],["Stargaze","1.1"],["Injective","700000000"],["Evmos","25000000000"],["Dymension","5000000000"],["Provenance","2100"],["Noble","0.1"]]]];xe.constMap(rv);const ad="Cosmwasm";function Sc(m){try{const g=xe.bech32.decodeToBytes(m);return{data:g.bytes,prefix:g.prefix}}catch{}try{return{data:xe.hex.decode(m)}}catch{}try{return{data:xe.b64.decode(m)}}catch{}throw new Error(`Cannot decode: ${m}`)}class Kt{static contractAddressByteSize=32;static accountAddressByteSize=20;static platform=ad;address;domain;denom;denomType;constructor(g){if(Kt.instanceof(g)){const S=g;this.address=S.address,this.domain=S.domain,this.denom=S.denom,this.denomType=S.denomType;return}if(typeof g=="string"){if(g.length<=8){this.address=new Uint8Array(0),this.denom=g,this.denomType="native";return}if(g.indexOf("/")!==-1){const S=g.split("/");if(S.length>=3){const{data:s,prefix:A}=Sc(S[S.length-2]);this.address=s,this.domain=A,this.denom=S[S.length-1],this.denomType=S.slice(0,S.length-2).join("/")}else{const{data:s}=Sc(S[1]);this.address=s,this.denomType=S[0]}}else{if(!Kt.isValidAddress(g))throw new Error(`Invalid Cosmwasm address: ${g}`);const{bytes:S,prefix:s}=xe.bech32.decodeToBytes(g);this.address=S,this.domain=s}}else if(g instanceof Uint8Array)this.address=g;else if(xe.UniversalAddress.instanceof(g))this.address=g.toUint8Array();else throw new Error(`Invalid Cosmwasm address ${g}`);if(!Kt.validAddressLength(this.address))throw new Error("Expected 20 or 32 bytes address")}unwrap(){return this.toString()}toString(){return this.denomType!==void 0?this.denomType==="native"?this.denom:this.denomType==="ibc"?`${this.denomType.toLowerCase()}/${xe.hex.encode(this.address).toUpperCase()}`:`${this.denomType}/${Kt.encode(this.domain,this.address)}/${this.denom}`:Kt.encode(this.domain,this.address)}toNative(){return this}toUint8Array(){return this.address}toUniversalAddress(){const g=new Uint8Array(xe.UniversalAddress.byteSize);return g.set(this.address,xe.UniversalAddress.byteSize-this.address.length),new xe.UniversalAddress(g)}setChain(g){this.domain=Q2.get(g)}static isValidAddress(g){try{const S=xe.bech32.decodeToBytes(g);return Kt.validAddressLength(S.bytes)}catch{}return!1}static encode(g,S){return xe.bech32.encode(g,xe.bech32.toWords(S))}static validAddressLength(g){if(g.length!==Kt.contractAddressByteSize&&g.length!==Kt.accountAddressByteSize)throw new Error(`Invalid Cosmwasm address, expected ${Kt.contractAddressByteSize} or ${Kt.accountAddressByteSize} bytes but got ${g.length}`);return!0}static instanceof(g){return g.constructor.platform===Kt.platform}equals(g){return Kt.instanceof(g)?this.toString()===g.toString():g.equals(this.toUniversalAddress())}}xe.registerNative(ad,Kt);const fd="Stacks";var uf={},cf={},lf={},Tr={},Bc;function iv(){return Bc||(Bc=1,Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.crypto=void 0,Tr.crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0),Tr}var Fc;function mr(){return Fc||(Fc=1,(function(m){/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(m,"__esModule",{value:!0}),m.wrapXOFConstructorWithOpts=m.wrapConstructorWithOpts=m.wrapConstructor=m.Hash=m.nextTick=m.swap32IfBE=m.byteSwapIfBE=m.swap8IfBE=m.isLE=void 0,m.isBytes=S,m.anumber=s,m.abytes=A,m.ahash=i,m.aexists=l,m.aoutput=b,m.u8=p,m.u32=o,m.clean=v,m.createView=y,m.rotr=x,m.rotl=M,m.byteSwap=_,m.byteSwap32=E,m.bytesToHex=C,m.hexToBytes=q,m.asyncLoop=Y,m.utf8ToBytes=Q,m.bytesToUtf8=L,m.toBytes=X,m.kdfInputToBytes=c,m.concatBytes=e,m.checkOpts=r,m.createHasher=a,m.createOptHasher=u,m.createXOFer=d,m.randomBytes=w;const g=iv();function S(f){return f instanceof Uint8Array||ArrayBuffer.isView(f)&&f.constructor.name==="Uint8Array"}function s(f){if(!Number.isSafeInteger(f)||f<0)throw new Error("positive integer expected, got "+f)}function A(f,...t){if(!S(f))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(f.length))throw new Error("Uint8Array expected of length "+t+", got length="+f.length)}function i(f){if(typeof f!="function"||typeof f.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");s(f.outputLen),s(f.blockLen)}function l(f,t=!0){if(f.destroyed)throw new Error("Hash instance has been destroyed");if(t&&f.finished)throw new Error("Hash#digest() has already been called")}function b(f,t){A(f);const h=t.outputLen;if(f.length<h)throw new Error("digestInto() expects output buffer of length at least "+h)}function p(f){return new Uint8Array(f.buffer,f.byteOffset,f.byteLength)}function o(f){return new Uint32Array(f.buffer,f.byteOffset,Math.floor(f.byteLength/4))}function v(...f){for(let t=0;t<f.length;t++)f[t].fill(0)}function y(f){return new DataView(f.buffer,f.byteOffset,f.byteLength)}function x(f,t){return f<<32-t|f>>>t}function M(f,t){return f<<t|f>>>32-t>>>0}m.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function _(f){return f<<24&4278190080|f<<8&16711680|f>>>8&65280|f>>>24&255}m.swap8IfBE=m.isLE?f=>f:f=>_(f),m.byteSwapIfBE=m.swap8IfBE;function E(f){for(let t=0;t<f.length;t++)f[t]=_(f[t]);return f}m.swap32IfBE=m.isLE?f=>f:E;const B=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",F=Array.from({length:256},(f,t)=>t.toString(16).padStart(2,"0"));function C(f){if(A(f),B)return f.toHex();let t="";for(let h=0;h<f.length;h++)t+=F[f[h]];return t}const R={_0:48,_9:57,A:65,F:70,a:97,f:102};function D(f){if(f>=R._0&&f<=R._9)return f-R._0;if(f>=R.A&&f<=R.F)return f-(R.A-10);if(f>=R.a&&f<=R.f)return f-(R.a-10)}function q(f){if(typeof f!="string")throw new Error("hex string expected, got "+typeof f);if(B)return Uint8Array.fromHex(f);const t=f.length,h=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const H=new Uint8Array(h);for(let j=0,U=0;j<h;j++,U+=2){const ee=D(f.charCodeAt(U)),J=D(f.charCodeAt(U+1));if(ee===void 0||J===void 0){const N=f[U]+f[U+1];throw new Error('hex string expected, got non-hex character "'+N+'" at index '+U)}H[j]=ee*16+J}return H}const O=async()=>{};m.nextTick=O;async function Y(f,t,h){let H=Date.now();for(let j=0;j<f;j++){h(j);const U=Date.now()-H;U>=0&&U<t||(await(0,m.nextTick)(),H+=U)}}function Q(f){if(typeof f!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(f))}function L(f){return new TextDecoder().decode(f)}function X(f){return typeof f=="string"&&(f=Q(f)),A(f),f}function c(f){return typeof f=="string"&&(f=Q(f)),A(f),f}function e(...f){let t=0;for(let H=0;H<f.length;H++){const j=f[H];A(j),t+=j.length}const h=new Uint8Array(t);for(let H=0,j=0;H<f.length;H++){const U=f[H];h.set(U,j),j+=U.length}return h}function r(f,t){if(t!==void 0&&{}.toString.call(t)!=="[object Object]")throw new Error("options should be object or undefined");return Object.assign(f,t)}class n{}m.Hash=n;function a(f){const t=H=>f().update(X(H)).digest(),h=f();return t.outputLen=h.outputLen,t.blockLen=h.blockLen,t.create=()=>f(),t}function u(f){const t=(H,j)=>f(j).update(X(H)).digest(),h=f({});return t.outputLen=h.outputLen,t.blockLen=h.blockLen,t.create=H=>f(H),t}function d(f){const t=(H,j)=>f(j).update(X(H)).digest(),h=f({});return t.outputLen=h.outputLen,t.blockLen=h.blockLen,t.create=H=>f(H),t}m.wrapConstructor=a,m.wrapConstructorWithOpts=u,m.wrapXOFConstructorWithOpts=d;function w(f=32){if(g.crypto&&typeof g.crypto.getRandomValues=="function")return g.crypto.getRandomValues(new Uint8Array(f));if(g.crypto&&typeof g.crypto.randomBytes=="function")return Uint8Array.from(g.crypto.randomBytes(f));throw new Error("crypto.getRandomValues must be defined")}})(lf)),lf}var Cc;function od(){return Cc||(Cc=1,(function(m){Object.defineProperty(m,"__esModule",{value:!0}),m.c32decode=m.c32normalize=m.c32encode=m.c32=void 0;const g=mr();m.c32="0123456789ABCDEFGHJKMNPQRSTVWXYZ";const S="0123456789abcdef";function s(l,b){if(!l.match(/^[0-9a-fA-F]*$/))throw new Error("Not a hex-encoded string");l.length%2!==0&&(l=`0${l}`),l=l.toLowerCase();let p=[],o=0;for(let M=l.length-1;M>=0;M--)if(o<4){const _=S.indexOf(l[M])>>o;let E=0;M!==0&&(E=S.indexOf(l[M-1]));const B=1+o,F=E%(1<<B)<<5-B,C=m.c32[_+F];o=B,p.unshift(C)}else o=0;let v=0;for(let M=0;M<p.length&&p[M]==="0";M++)v++;p=p.slice(v);const y=new TextDecoder().decode((0,g.hexToBytes)(l)).match(/^\u0000*/),x=y?y[0].length:0;for(let M=0;M<x;M++)p.unshift(m.c32[0]);if(b){const M=b-p.length;for(let _=0;_<M;_++)p.unshift(m.c32[0])}return p.join("")}m.c32encode=s;function A(l){return l.toUpperCase().replace(/O/g,"0").replace(/L|I/g,"1")}m.c32normalize=A;function i(l,b){if(l=A(l),!l.match(`^[${m.c32}]*$`))throw new Error("Not a c32-encoded string");const p=l.match(`^${m.c32[0]}*`),o=p?p[0].length:0;let v=[],y=0,x=0;for(let E=l.length-1;E>=0;E--){x===4&&(v.unshift(S[y]),x=0,y=0);const F=(m.c32.indexOf(l[E])<<x)+y,C=S[F%16];if(x+=1,y=F>>4,y>1<<x)throw new Error("Panic error in decoding.");v.unshift(C)}v.unshift(S[y]),v.length%2===1&&v.unshift("0");let M=0;for(let E=0;E<v.length&&v[E]==="0";E++)M++;v=v.slice(M-M%2);let _=v.join("");for(let E=0;E<o;E++)_=`00${_}`;if(b){const E=b*2-_.length;for(let B=0;B<E;B+=2)_=`00${_}`}return _}m.c32decode=i})(cf)),cf}var cr={},Jt={},Tt={},zt={},Dc;function nv(){if(Dc)return zt;Dc=1,Object.defineProperty(zt,"__esModule",{value:!0}),zt.SHA512_IV=zt.SHA384_IV=zt.SHA224_IV=zt.SHA256_IV=zt.HashMD=void 0,zt.setBigUint64=g,zt.Chi=S,zt.Maj=s;const m=mr();function g(i,l,b,p){if(typeof i.setBigUint64=="function")return i.setBigUint64(l,b,p);const o=BigInt(32),v=BigInt(4294967295),y=Number(b>>o&v),x=Number(b&v),M=p?4:0,_=p?0:4;i.setUint32(l+M,y,p),i.setUint32(l+_,x,p)}function S(i,l,b){return i&l^~i&b}function s(i,l,b){return i&l^i&b^l&b}class A extends m.Hash{constructor(l,b,p,o){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=l,this.outputLen=b,this.padOffset=p,this.isLE=o,this.buffer=new Uint8Array(l),this.view=(0,m.createView)(this.buffer)}update(l){(0,m.aexists)(this),l=(0,m.toBytes)(l),(0,m.abytes)(l);const{view:b,buffer:p,blockLen:o}=this,v=l.length;for(let y=0;y<v;){const x=Math.min(o-this.pos,v-y);if(x===o){const M=(0,m.createView)(l);for(;o<=v-y;y+=o)this.process(M,y);continue}p.set(l.subarray(y,y+x),this.pos),this.pos+=x,y+=x,this.pos===o&&(this.process(b,0),this.pos=0)}return this.length+=l.length,this.roundClean(),this}digestInto(l){(0,m.aexists)(this),(0,m.aoutput)(l,this),this.finished=!0;const{buffer:b,view:p,blockLen:o,isLE:v}=this;let{pos:y}=this;b[y++]=128,(0,m.clean)(this.buffer.subarray(y)),this.padOffset>o-y&&(this.process(p,0),y=0);for(let B=y;B<o;B++)b[B]=0;g(p,o-8,BigInt(this.length*8),v),this.process(p,0);const x=(0,m.createView)(l),M=this.outputLen;if(M%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const _=M/4,E=this.get();if(_>E.length)throw new Error("_sha2: outputLen bigger than state");for(let B=0;B<_;B++)x.setUint32(4*B,E[B],v)}digest(){const{buffer:l,outputLen:b}=this;this.digestInto(l);const p=l.slice(0,b);return this.destroy(),p}_cloneInto(l){l||(l=new this.constructor),l.set(...this.get());const{blockLen:b,buffer:p,length:o,finished:v,destroyed:y,pos:x}=this;return l.destroyed=y,l.finished=v,l.length=o,l.pos=x,o%b&&l.buffer.set(p),l}clone(){return this._cloneInto()}}return zt.HashMD=A,zt.SHA256_IV=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),zt.SHA224_IV=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),zt.SHA384_IV=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),zt.SHA512_IV=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),zt}var pt={},Rc;function av(){if(Rc)return pt;Rc=1,Object.defineProperty(pt,"__esModule",{value:!0}),pt.toBig=pt.shrSL=pt.shrSH=pt.rotrSL=pt.rotrSH=pt.rotrBL=pt.rotrBH=pt.rotr32L=pt.rotr32H=pt.rotlSL=pt.rotlSH=pt.rotlBL=pt.rotlBH=pt.add5L=pt.add5H=pt.add4L=pt.add4H=pt.add3L=pt.add3H=void 0,pt.add=F,pt.fromBig=S,pt.split=s;const m=BigInt(2**32-1),g=BigInt(32);function S(L,X=!1){return X?{h:Number(L&m),l:Number(L>>g&m)}:{h:Number(L>>g&m)|0,l:Number(L&m)|0}}function s(L,X=!1){const c=L.length;let e=new Uint32Array(c),r=new Uint32Array(c);for(let n=0;n<c;n++){const{h:a,l:u}=S(L[n],X);[e[n],r[n]]=[a,u]}return[e,r]}const A=(L,X)=>BigInt(L>>>0)<<g|BigInt(X>>>0);pt.toBig=A;const i=(L,X,c)=>L>>>c;pt.shrSH=i;const l=(L,X,c)=>L<<32-c|X>>>c;pt.shrSL=l;const b=(L,X,c)=>L>>>c|X<<32-c;pt.rotrSH=b;const p=(L,X,c)=>L<<32-c|X>>>c;pt.rotrSL=p;const o=(L,X,c)=>L<<64-c|X>>>c-32;pt.rotrBH=o;const v=(L,X,c)=>L>>>c-32|X<<64-c;pt.rotrBL=v;const y=(L,X)=>X;pt.rotr32H=y;const x=(L,X)=>L;pt.rotr32L=x;const M=(L,X,c)=>L<<c|X>>>32-c;pt.rotlSH=M;const _=(L,X,c)=>X<<c|L>>>32-c;pt.rotlSL=_;const E=(L,X,c)=>X<<c-32|L>>>64-c;pt.rotlBH=E;const B=(L,X,c)=>L<<c-32|X>>>64-c;pt.rotlBL=B;function F(L,X,c,e){const r=(X>>>0)+(e>>>0);return{h:L+c+(r/2**32|0)|0,l:r|0}}const C=(L,X,c)=>(L>>>0)+(X>>>0)+(c>>>0);pt.add3L=C;const R=(L,X,c,e)=>X+c+e+(L/2**32|0)|0;pt.add3H=R;const D=(L,X,c,e)=>(L>>>0)+(X>>>0)+(c>>>0)+(e>>>0);pt.add4L=D;const q=(L,X,c,e,r)=>X+c+e+r+(L/2**32|0)|0;pt.add4H=q;const O=(L,X,c,e,r)=>(L>>>0)+(X>>>0)+(c>>>0)+(e>>>0)+(r>>>0);pt.add5L=O;const Y=(L,X,c,e,r,n)=>X+c+e+r+n+(L/2**32|0)|0;pt.add5H=Y;const Q={fromBig:S,split:s,toBig:A,shrSH:i,shrSL:l,rotrSH:b,rotrSL:p,rotrBH:o,rotrBL:v,rotr32H:y,rotr32L:x,rotlSH:M,rotlSL:_,rotlBH:E,rotlBL:B,add:F,add3L:C,add3H:R,add4L:D,add4H:q,add5H:Y,add5L:O};return pt.default=Q,pt}var Tc;function sd(){if(Tc)return Tt;Tc=1,Object.defineProperty(Tt,"__esModule",{value:!0}),Tt.sha512_224=Tt.sha512_256=Tt.sha384=Tt.sha512=Tt.sha224=Tt.sha256=Tt.SHA512_256=Tt.SHA512_224=Tt.SHA384=Tt.SHA512=Tt.SHA224=Tt.SHA256=void 0;const m=nv(),g=av(),S=mr(),s=Uint32Array.from([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=new Uint32Array(64);class i extends m.HashMD{constructor(R=32){super(64,R,8,!1),this.A=m.SHA256_IV[0]|0,this.B=m.SHA256_IV[1]|0,this.C=m.SHA256_IV[2]|0,this.D=m.SHA256_IV[3]|0,this.E=m.SHA256_IV[4]|0,this.F=m.SHA256_IV[5]|0,this.G=m.SHA256_IV[6]|0,this.H=m.SHA256_IV[7]|0}get(){const{A:R,B:D,C:q,D:O,E:Y,F:Q,G:L,H:X}=this;return[R,D,q,O,Y,Q,L,X]}set(R,D,q,O,Y,Q,L,X){this.A=R|0,this.B=D|0,this.C=q|0,this.D=O|0,this.E=Y|0,this.F=Q|0,this.G=L|0,this.H=X|0}process(R,D){for(let r=0;r<16;r++,D+=4)A[r]=R.getUint32(D,!1);for(let r=16;r<64;r++){const n=A[r-15],a=A[r-2],u=(0,S.rotr)(n,7)^(0,S.rotr)(n,18)^n>>>3,d=(0,S.rotr)(a,17)^(0,S.rotr)(a,19)^a>>>10;A[r]=d+A[r-7]+u+A[r-16]|0}let{A:q,B:O,C:Y,D:Q,E:L,F:X,G:c,H:e}=this;for(let r=0;r<64;r++){const n=(0,S.rotr)(L,6)^(0,S.rotr)(L,11)^(0,S.rotr)(L,25),a=e+n+(0,m.Chi)(L,X,c)+s[r]+A[r]|0,d=((0,S.rotr)(q,2)^(0,S.rotr)(q,13)^(0,S.rotr)(q,22))+(0,m.Maj)(q,O,Y)|0;e=c,c=X,X=L,L=Q+a|0,Q=Y,Y=O,O=q,q=a+d|0}q=q+this.A|0,O=O+this.B|0,Y=Y+this.C|0,Q=Q+this.D|0,L=L+this.E|0,X=X+this.F|0,c=c+this.G|0,e=e+this.H|0,this.set(q,O,Y,Q,L,X,c,e)}roundClean(){(0,S.clean)(A)}destroy(){this.set(0,0,0,0,0,0,0,0),(0,S.clean)(this.buffer)}}Tt.SHA256=i;class l extends i{constructor(){super(28),this.A=m.SHA224_IV[0]|0,this.B=m.SHA224_IV[1]|0,this.C=m.SHA224_IV[2]|0,this.D=m.SHA224_IV[3]|0,this.E=m.SHA224_IV[4]|0,this.F=m.SHA224_IV[5]|0,this.G=m.SHA224_IV[6]|0,this.H=m.SHA224_IV[7]|0}}Tt.SHA224=l;const b=g.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(C=>BigInt(C))),p=b[0],o=b[1],v=new Uint32Array(80),y=new Uint32Array(80);class x extends m.HashMD{constructor(R=64){super(128,R,16,!1),this.Ah=m.SHA512_IV[0]|0,this.Al=m.SHA512_IV[1]|0,this.Bh=m.SHA512_IV[2]|0,this.Bl=m.SHA512_IV[3]|0,this.Ch=m.SHA512_IV[4]|0,this.Cl=m.SHA512_IV[5]|0,this.Dh=m.SHA512_IV[6]|0,this.Dl=m.SHA512_IV[7]|0,this.Eh=m.SHA512_IV[8]|0,this.El=m.SHA512_IV[9]|0,this.Fh=m.SHA512_IV[10]|0,this.Fl=m.SHA512_IV[11]|0,this.Gh=m.SHA512_IV[12]|0,this.Gl=m.SHA512_IV[13]|0,this.Hh=m.SHA512_IV[14]|0,this.Hl=m.SHA512_IV[15]|0}get(){const{Ah:R,Al:D,Bh:q,Bl:O,Ch:Y,Cl:Q,Dh:L,Dl:X,Eh:c,El:e,Fh:r,Fl:n,Gh:a,Gl:u,Hh:d,Hl:w}=this;return[R,D,q,O,Y,Q,L,X,c,e,r,n,a,u,d,w]}set(R,D,q,O,Y,Q,L,X,c,e,r,n,a,u,d,w){this.Ah=R|0,this.Al=D|0,this.Bh=q|0,this.Bl=O|0,this.Ch=Y|0,this.Cl=Q|0,this.Dh=L|0,this.Dl=X|0,this.Eh=c|0,this.El=e|0,this.Fh=r|0,this.Fl=n|0,this.Gh=a|0,this.Gl=u|0,this.Hh=d|0,this.Hl=w|0}process(R,D){for(let h=0;h<16;h++,D+=4)v[h]=R.getUint32(D),y[h]=R.getUint32(D+=4);for(let h=16;h<80;h++){const H=v[h-15]|0,j=y[h-15]|0,U=g.rotrSH(H,j,1)^g.rotrSH(H,j,8)^g.shrSH(H,j,7),ee=g.rotrSL(H,j,1)^g.rotrSL(H,j,8)^g.shrSL(H,j,7),J=v[h-2]|0,N=y[h-2]|0,z=g.rotrSH(J,N,19)^g.rotrBH(J,N,61)^g.shrSH(J,N,6),Z=g.rotrSL(J,N,19)^g.rotrBL(J,N,61)^g.shrSL(J,N,6),k=g.add4L(ee,Z,y[h-7],y[h-16]),P=g.add4H(k,U,z,v[h-7],v[h-16]);v[h]=P|0,y[h]=k|0}let{Ah:q,Al:O,Bh:Y,Bl:Q,Ch:L,Cl:X,Dh:c,Dl:e,Eh:r,El:n,Fh:a,Fl:u,Gh:d,Gl:w,Hh:f,Hl:t}=this;for(let h=0;h<80;h++){const H=g.rotrSH(r,n,14)^g.rotrSH(r,n,18)^g.rotrBH(r,n,41),j=g.rotrSL(r,n,14)^g.rotrSL(r,n,18)^g.rotrBL(r,n,41),U=r&a^~r&d,ee=n&u^~n&w,J=g.add5L(t,j,ee,o[h],y[h]),N=g.add5H(J,f,H,U,p[h],v[h]),z=J|0,Z=g.rotrSH(q,O,28)^g.rotrBH(q,O,34)^g.rotrBH(q,O,39),k=g.rotrSL(q,O,28)^g.rotrBL(q,O,34)^g.rotrBL(q,O,39),P=q&Y^q&L^Y&L,T=O&Q^O&X^Q&X;f=d|0,t=w|0,d=a|0,w=u|0,a=r|0,u=n|0,{h:r,l:n}=g.add(c|0,e|0,N|0,z|0),c=L|0,e=X|0,L=Y|0,X=Q|0,Y=q|0,Q=O|0;const G=g.add3L(z,k,T);q=g.add3H(G,N,Z,P),O=G|0}({h:q,l:O}=g.add(this.Ah|0,this.Al|0,q|0,O|0)),{h:Y,l:Q}=g.add(this.Bh|0,this.Bl|0,Y|0,Q|0),{h:L,l:X}=g.add(this.Ch|0,this.Cl|0,L|0,X|0),{h:c,l:e}=g.add(this.Dh|0,this.Dl|0,c|0,e|0),{h:r,l:n}=g.add(this.Eh|0,this.El|0,r|0,n|0),{h:a,l:u}=g.add(this.Fh|0,this.Fl|0,a|0,u|0),{h:d,l:w}=g.add(this.Gh|0,this.Gl|0,d|0,w|0),{h:f,l:t}=g.add(this.Hh|0,this.Hl|0,f|0,t|0),this.set(q,O,Y,Q,L,X,c,e,r,n,a,u,d,w,f,t)}roundClean(){(0,S.clean)(v,y)}destroy(){(0,S.clean)(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}Tt.SHA512=x;class M extends x{constructor(){super(48),this.Ah=m.SHA384_IV[0]|0,this.Al=m.SHA384_IV[1]|0,this.Bh=m.SHA384_IV[2]|0,this.Bl=m.SHA384_IV[3]|0,this.Ch=m.SHA384_IV[4]|0,this.Cl=m.SHA384_IV[5]|0,this.Dh=m.SHA384_IV[6]|0,this.Dl=m.SHA384_IV[7]|0,this.Eh=m.SHA384_IV[8]|0,this.El=m.SHA384_IV[9]|0,this.Fh=m.SHA384_IV[10]|0,this.Fl=m.SHA384_IV[11]|0,this.Gh=m.SHA384_IV[12]|0,this.Gl=m.SHA384_IV[13]|0,this.Hh=m.SHA384_IV[14]|0,this.Hl=m.SHA384_IV[15]|0}}Tt.SHA384=M;const _=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),E=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]);class B extends x{constructor(){super(28),this.Ah=_[0]|0,this.Al=_[1]|0,this.Bh=_[2]|0,this.Bl=_[3]|0,this.Ch=_[4]|0,this.Cl=_[5]|0,this.Dh=_[6]|0,this.Dl=_[7]|0,this.Eh=_[8]|0,this.El=_[9]|0,this.Fh=_[10]|0,this.Fl=_[11]|0,this.Gh=_[12]|0,this.Gl=_[13]|0,this.Hh=_[14]|0,this.Hl=_[15]|0}}Tt.SHA512_224=B;class F extends x{constructor(){super(32),this.Ah=E[0]|0,this.Al=E[1]|0,this.Bh=E[2]|0,this.Bl=E[3]|0,this.Ch=E[4]|0,this.Cl=E[5]|0,this.Dh=E[6]|0,this.Dl=E[7]|0,this.Eh=E[8]|0,this.El=E[9]|0,this.Fh=E[10]|0,this.Fl=E[11]|0,this.Gh=E[12]|0,this.Gl=E[13]|0,this.Hh=E[14]|0,this.Hl=E[15]|0}}return Tt.SHA512_256=F,Tt.sha256=(0,S.createHasher)(()=>new i),Tt.sha224=(0,S.createHasher)(()=>new l),Tt.sha512=(0,S.createHasher)(()=>new x),Tt.sha384=(0,S.createHasher)(()=>new M),Tt.sha512_256=(0,S.createHasher)(()=>new F),Tt.sha512_224=(0,S.createHasher)(()=>new B),Tt}var Ic;function hd(){if(Ic)return Jt;Ic=1,Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.sha224=Jt.SHA224=Jt.sha256=Jt.SHA256=void 0;const m=sd();return Jt.SHA256=m.SHA256,Jt.sha256=m.sha256,Jt.SHA224=m.SHA224,Jt.sha224=m.sha224,Jt}var kc;function ud(){if(kc)return cr;kc=1,Object.defineProperty(cr,"__esModule",{value:!0}),cr.c32checkDecode=cr.c32checkEncode=void 0;const m=hd(),g=mr(),S=od();function s(l){const b=(0,m.sha256)((0,m.sha256)((0,g.hexToBytes)(l)));return(0,g.bytesToHex)(b.slice(0,4))}function A(l,b){if(l<0||l>=32)throw new Error("Invalid version (must be between 0 and 31)");if(!b.match(/^[0-9a-fA-F]*$/))throw new Error("Invalid data (not a hex string)");b=b.toLowerCase(),b.length%2!==0&&(b=`0${b}`);let p=l.toString(16);p.length===1&&(p=`0${p}`);const o=s(`${p}${b}`),v=(0,S.c32encode)(`${b}${o}`);return`${S.c32[l]}${v}`}cr.c32checkEncode=A;function i(l){l=(0,S.c32normalize)(l);const b=(0,S.c32decode)(l.slice(1)),p=l[0],o=S.c32.indexOf(p),v=b.slice(-8);let y=o.toString(16);if(y.length===1&&(y=`0${y}`),s(`${y}${b.substring(0,b.length-8)}`)!==v)throw new Error("Invalid c32check string: checksum mismatch");return[o,b.substring(0,b.length-8)]}return cr.c32checkDecode=i,cr}var df={},lr={},pf,Pc;function fv(){if(Pc)return pf;Pc=1;function m(g){if(g.length>=255)throw new TypeError("Alphabet too long");for(var S=new Uint8Array(256),s=0;s<S.length;s++)S[s]=255;for(var A=0;A<g.length;A++){var i=g.charAt(A),l=i.charCodeAt(0);if(S[l]!==255)throw new TypeError(i+" is ambiguous");S[l]=A}var b=g.length,p=g.charAt(0),o=Math.log(b)/Math.log(256),v=Math.log(256)/Math.log(b);function y(_){if(_ instanceof Uint8Array||(ArrayBuffer.isView(_)?_=new Uint8Array(_.buffer,_.byteOffset,_.byteLength):Array.isArray(_)&&(_=Uint8Array.from(_))),!(_ instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(_.length===0)return"";for(var E=0,B=0,F=0,C=_.length;F!==C&&_[F]===0;)F++,E++;for(var R=(C-F)*v+1>>>0,D=new Uint8Array(R);F!==C;){for(var q=_[F],O=0,Y=R-1;(q!==0||O<B)&&Y!==-1;Y--,O++)q+=256*D[Y]>>>0,D[Y]=q%b>>>0,q=q/b>>>0;if(q!==0)throw new Error("Non-zero carry");B=O,F++}for(var Q=R-B;Q!==R&&D[Q]===0;)Q++;for(var L=p.repeat(E);Q<R;++Q)L+=g.charAt(D[Q]);return L}function x(_){if(typeof _!="string")throw new TypeError("Expected String");if(_.length===0)return new Uint8Array;for(var E=0,B=0,F=0;_[E]===p;)B++,E++;for(var C=(_.length-E)*o+1>>>0,R=new Uint8Array(C);_[E];){var D=_.charCodeAt(E);if(D>255)return;var q=S[D];if(q===255)return;for(var O=0,Y=C-1;(q!==0||O<F)&&Y!==-1;Y--,O++)q+=b*R[Y]>>>0,R[Y]=q%256>>>0,q=q/256>>>0;if(q!==0)throw new Error("Non-zero carry");F=O,E++}for(var Q=C-F;Q!==C&&R[Q]===0;)Q++;for(var L=new Uint8Array(B+(C-Q)),X=B;Q!==C;)L[X++]=R[Q++];return L}function M(_){var E=x(_);if(E)return E;throw new Error("Non-base"+b+" character")}return{encode:y,decodeUnsafe:x,decode:M}}return pf=m,pf}var Nc;function ov(){if(Nc)return lr;Nc=1,Object.defineProperty(lr,"__esModule",{value:!0}),lr.decode=lr.encode=void 0;const m=hd(),g=mr(),S=fv(),s="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";function A(l,b="00"){const p=typeof l=="string"?(0,g.hexToBytes)(l):l,o=typeof b=="string"?(0,g.hexToBytes)(b):l;if(!(p instanceof Uint8Array)||!(o instanceof Uint8Array))throw new TypeError("Argument must be of type Uint8Array or string");const v=(0,m.sha256)((0,m.sha256)(new Uint8Array([...o,...p])));return S(s).encode([...o,...p,...v.slice(0,4)])}lr.encode=A;function i(l){const b=S(s).decode(l),p=b.slice(0,1),o=b.slice(1,-4),v=(0,m.sha256)((0,m.sha256)(new Uint8Array([...p,...o])));return b.slice(-4).forEach((y,x)=>{if(y!==v[x])throw new Error("Invalid checksum")}),{prefix:p,data:o}}return lr.decode=i,lr}var Oc;function sv(){return Oc||(Oc=1,(function(m){Object.defineProperty(m,"__esModule",{value:!0}),m.c32ToB58=m.b58ToC32=m.c32addressDecode=m.c32address=m.versions=void 0;const g=ud(),S=ov(),s=mr();m.versions={mainnet:{p2pkh:22,p2sh:20},testnet:{p2pkh:26,p2sh:21}};const A={};A[0]=m.versions.mainnet.p2pkh,A[5]=m.versions.mainnet.p2sh,A[111]=m.versions.testnet.p2pkh,A[196]=m.versions.testnet.p2sh;const i={};i[m.versions.mainnet.p2pkh]=0,i[m.versions.mainnet.p2sh]=5,i[m.versions.testnet.p2pkh]=111,i[m.versions.testnet.p2sh]=196;function l(v,y){if(!y.match(/^[0-9a-fA-F]{40}$/))throw new Error("Invalid argument: not a hash160 hex string");return`S${(0,g.c32checkEncode)(v,y)}`}m.c32address=l;function b(v){if(v.length<=5)throw new Error("Invalid c32 address: invalid length");if(v[0]!="S")throw new Error('Invalid c32 address: must start with "S"');return(0,g.c32checkDecode)(v.slice(1))}m.c32addressDecode=b;function p(v,y=-1){const x=S.decode(v),M=(0,s.bytesToHex)(x.data),_=parseInt((0,s.bytesToHex)(x.prefix),16);let E;return y<0?(E=_,A[_]!==void 0&&(E=A[_])):E=y,l(E,M)}m.b58ToC32=p;function o(v,y=-1){const x=b(v),M=x[0],_=x[1];let E;y<0?(E=M,i[M]!==void 0&&(E=i[M])):E=y;let B=E.toString(16);return B.length===1&&(B=`0${B}`),S.encode(_,B)}m.c32ToB58=o})(df)),df}var qc;function hv(){return qc||(qc=1,(function(m){Object.defineProperty(m,"__esModule",{value:!0}),m.b58ToC32=m.c32ToB58=m.versions=m.c32normalize=m.c32addressDecode=m.c32address=m.c32checkDecode=m.c32checkEncode=m.c32decode=m.c32encode=void 0;const g=od();Object.defineProperty(m,"c32encode",{enumerable:!0,get:function(){return g.c32encode}}),Object.defineProperty(m,"c32decode",{enumerable:!0,get:function(){return g.c32decode}}),Object.defineProperty(m,"c32normalize",{enumerable:!0,get:function(){return g.c32normalize}});const S=ud();Object.defineProperty(m,"c32checkEncode",{enumerable:!0,get:function(){return S.c32checkEncode}}),Object.defineProperty(m,"c32checkDecode",{enumerable:!0,get:function(){return S.c32checkDecode}});const s=sv();Object.defineProperty(m,"c32address",{enumerable:!0,get:function(){return s.c32address}}),Object.defineProperty(m,"c32addressDecode",{enumerable:!0,get:function(){return s.c32addressDecode}}),Object.defineProperty(m,"c32ToB58",{enumerable:!0,get:function(){return s.c32ToB58}}),Object.defineProperty(m,"b58ToC32",{enumerable:!0,get:function(){return s.b58ToC32}}),Object.defineProperty(m,"versions",{enumerable:!0,get:function(){return s.versions}})})(uf)),uf}var uv=hv();const cv="0123456789ABCDEFGHJKMNPQRSTVWXYZ";function lv(m){const[g,S]=m.split("."),s=uv.c32addressDecode(g);return{version:s[0],versionChar:cv[s[0]],hash160:s[1],contractName:S}}class xr{static byteSize=20;static platform=fd;type="Native";address;constructor(g){if(xr.instanceof(g)){const S=g;this.address=S.address;return}if(typeof g=="string"){if(!xr.isValidAddress(g))throw new Error(`Invalid Stacks address ${g}`);this.address=g}else throw new Error(`Invalid Stacks address ${g}`)}unwrap(){return this.address}toString(){return this.address}toNative(){return this}toUint8Array(){return new Uint8Array(xe.Buffer.from(this.address))}toUniversalAddress(){return new xe.UniversalAddress(this.address,"keccak256")}static isValidAddress(g){try{return lv(g),!0}catch{return!1}}static instanceof(g){return g.constructor.platform===xr.platform}equals(g){return xr.instanceof(g)?g.address===this.address:g.equals(this.toUniversalAddress())}}xe.registerNative(fd,xr);async function dv(m){try{const g=await Promise.all(m.map(async S=>S()));return await Promise.all(g.map(async S=>await pv(S))),g}catch(g){throw console.error("Failed to load required packages",g),g}}async function pv(m,g){try{let S=Object.entries(m.protocols);await Promise.all(S.map(([,s])=>s()))}catch(S){throw console.error("Failed to load required packages",S),S}}async function vv(m,g,S){const s=(await dv(g)).map(A=>A.Platform);return new xe.Wormhole(m,s,S)}const ir=m=>{console.error(`Wormhole Connect: ${m}`)},st=(m,g)=>g?{[m]:g}:{},bv=(m,g)=>{if(!g)return m;for(const S in g)for(const s in g[S])m[S]||(m[S]={}),m[S][s]={...g[S][s],...m[S][s]};return m},mv=(m,g,S)=>{if(m)return m.source?.chain&&(g[m.source.chain]||(ir(`Invalid chain name "${m.source.chain}" specified for defaultInputs.source.chain`),delete m.source)),m.destination?.chain&&(g[m.destination.chain]||(ir(`Invalid chain name "${m.destination.chain}" specified for defaultInputs.destination.chain`),delete m.destination)),m.source?.token&&m.destination?.token&&m.source.token===m.destination.token&&(m.source?.chain===m.destination?.chain?ir("Source and destination cannot be the same when both chain and token are identical, check the defaultInputs configuration"):xe.isNative(m.source.token)||ir("Source and destination token cannot be the same, check the defaultInputs configuration")),m.source?.chain&&m.destination?.chain&&m.requiredChain&&(g[m.requiredChain]||ir(`Invalid network value "${m.requiredChain}" specified for defaultInputs.requiredChain`),m.destination.chain!==m.requiredChain&&m.source.chain!==m.requiredChain&&ir("Source chain or destination chain must equal the required network")),m.source?.chain&&m.source?.token&&(S.findByAddressOrSymbol(m.source.chain,m.source.token)||(ir(`Invalid token "${m.source?.token}" specified for defaultInputs.source.token`),delete m.source.token)),m.destination?.chain&&m.destination?.token&&(S.findByAddressOrSymbol(m.destination.chain,m.destination.token)||(ir(`Invalid token "${m.destination?.token}" specified for defaultInputs.destination.token`),delete m.destination.token)),m},yv=m=>m[0].toUpperCase()+m.slice(1),gv={},{REACT_APP_ETHEREUM_RPC:xv,REACT_APP_SOLANA_RPC:wv,REACT_APP_POLYGON_RPC:Mv,REACT_APP_BSC_RPC:_v,REACT_APP_AVALANCHE_RPC:Av,REACT_APP_FANTOM_RPC:Ev,REACT_APP_CELO_RPC:Sv,REACT_APP_MOONBEAM_RPC:Bv,REACT_APP_SUI_RPC:Fv,REACT_APP_APTOS_RPC:Cv,REACT_APP_BASE_RPC:Dv,REACT_APP_KLAYTN_RPC:Rv,REACT_APP_ARBITRUM_RPC:Tv,REACT_APP_OPTIMISM_RPC:Iv,REACT_APP_SCROLL_RPC:kv,REACT_APP_XLAYER_RPC:Pv,REACT_APP_MANTLE_RPC:Nv,REACT_APP_WORLDCHAIN_RPC:Ov,REACT_APP_UNICHAIN_RPC:qv,REACT_APP_BERACHAIN_RPC:Uv,REACT_APP_INK_RPC:Lv,REACT_APP_LINEA_RPC:Hv,REACT_APP_SONIC_RPC:$v,REACT_APP_SEIEVM_RPC:jv,REACT_APP_MEZO_RPC:zv,REACT_APP_PLUME_RPC:Kv,REACT_APP_HYPEREVM_RPC:Wv,REACT_APP_XRPL_RPC:Gv,REACT_APP_HYPERCORE_RPC:Vv,REACT_APP_CREDITCOIN_RPC:Zv,REACT_APP_FOGO_RPC:Xv,REACT_APP_MONAD_RPC:Yv,REACT_APP_MEGAETH_RPC:Jv,REACT_APP_MOCA_RPC:Qv}=gv,e6={...st("Ethereum",xv),...st("Solana",wv),...st("Polygon",Mv),...st("Bsc",_v),...st("Avalanche",Av),...st("Fantom",Ev),...st("Celo",Sv),...st("Moonbeam",Bv),...st("Sui",Fv),...st("Aptos",Cv),...st("Base",Dv),...st("Arbitrum",Tv),...st("Optimism",Iv),...st("Klaytn",Rv),...st("Scroll",kv),...st("Xlayer",Pv),...st("Mantle",Nv),...st("Worldchain",Ov),...st("Unichain",qv),...st("Berachain",Uv),...st("Ink",Lv),...st("Linea",Hv),...st("Sonic",$v),...st("Seievm",jv),...st("Mezo",zv),...st("Plume",Kv),...st("HyperEVM",Wv),...st("XRPLEVM",Gv),...st("HyperCore",Vv),...st("CreditCoin",Zv),...st("Fogo",Xv),...st("Monad",Yv),...st("MegaETH",Jv),...st("Moca",Qv)};function yf(m){return{...m,showFooter:m.showFooter??!0,experimental:m.experimental??{},walletConnectProjectId:m?.walletConnectProjectId??void 0}}var ge=(m=>(m[m.AVAX=1]="AVAX",m[m.BNB=2]="BNB",m[m.BSC=3]="BSC",m[m.CELO=4]="CELO",m[m.ETH=5]="ETH",m[m.FANTOM=6]="FANTOM",m[m.POLYGON=7]="POLYGON",m[m.SOLANA=8]="SOLANA",m[m.USDC=9]="USDC",m[m.GLMR=10]="GLMR",m[m.DAI=11]="DAI",m[m.USDT=12]="USDT",m[m.BUSD=13]="BUSD",m[m.WBTC=14]="WBTC",m[m.SUI=15]="SUI",m[m.APT=16]="APT",m[m.SEI=17]="SEI",m[m.BASE=18]="BASE",m[m.OSMO=19]="OSMO",m[m.TBTC=20]="TBTC",m[m.WSTETH=21]="WSTETH",m[m.ARBITRUM=22]="ARBITRUM",m[m.OPTIMISM=23]="OPTIMISM",m[m.ATOM=24]="ATOM",m[m.EVMOS=25]="EVMOS",m[m.KUJI=26]="KUJI",m[m.PYTH=27]="PYTH",m[m.INJ=28]="INJ",m[m.KLAY=29]="KLAY",m[m.NTT=30]="NTT",m[m.SCROLL=31]="SCROLL",m[m.XLAYER=32]="XLAYER",m[m.MANTLE=33]="MANTLE",m[m.WORLDCHAIN=34]="WORLDCHAIN",m[m.BERA=35]="BERA",m[m.INK=36]="INK",m[m.BTC=37]="BTC",m[m.SONIC=38]="SONIC",m[m.PLUME=39]="PLUME",m[m.FOGO=40]="FOGO",m[m.HYPE=41]="HYPE",m[m.XRP=42]="XRP",m[m.CTC=43]="CTC",m[m.MONAD=44]="MONAD",m[m.AUSD=45]="AUSD",m[m.MOCA=46]="MOCA",m))(ge||{});const t6=Object.freeze(Object.defineProperty({__proto__:null,TokenIcon:ge,createUiConfig:yf},Symbol.toStringTag,{value:"Module"})),r6=[{symbol:"ETH",decimals:18,icon:ge.ETH,tokenId:{chain:"Ethereum",address:"native"}},{symbol:"WETH",decimals:18,icon:ge.ETH,tokenId:{chain:"Ethereum",address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}},{symbol:"WMON",decimals:18,icon:ge.MONAD,name:"Wrapped MON",tokenId:{chain:"Ethereum",address:"0x6917037f8944201b2648198a89906edf863b9517"}},{symbol:"USDC",decimals:6,icon:ge.USDC,tokenId:{chain:"Ethereum",address:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"}},{symbol:"WBTC",decimals:8,icon:ge.WBTC,tokenId:{chain:"Ethereum",address:"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599"}},{symbol:"USDT",decimals:6,icon:ge.USDT,tokenId:{chain:"Ethereum",address:"0xdAC17F958D2ee523a2206206994597C13D831ec7"}},{symbol:"DAI",decimals:18,icon:ge.DAI,tokenId:{chain:"Ethereum",address:"0x6B175474E89094C44Da98b954EedeAC495271d0F"}},{symbol:"BUSD",decimals:18,icon:ge.BUSD,tokenId:{chain:"Ethereum",address:"0x4Fabb145d64652a948d72533023f6E7A623C7C53"}},{symbol:"POL",decimals:18,icon:ge.POLYGON,tokenId:{chain:"Polygon",address:"native"}},{symbol:"WPOL",decimals:18,icon:ge.POLYGON,tokenId:{chain:"Polygon",address:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270"}},{symbol:"WETH",decimals:18,icon:ge.ETH,tokenId:{chain:"Polygon",address:"0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619"}},{symbol:"USDC",decimals:6,icon:ge.USDC,tokenId:{chain:"Polygon",address:"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"}},{symbol:"USDT",decimals:6,icon:ge.USDT,tokenId:{chain:"Polygon",address:"0xc2132D05D31c914a87C6611C10748AEb04B58e8F"}},{symbol:"BNB",decimals:18,icon:ge.BNB,tokenId:{chain:"Bsc",address:"native"}},{symbol:"WBNB",decimals:18,icon:ge.BNB,tokenId:{chain:"Bsc",address:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"}},{symbol:"USDC",decimals:18,icon:ge.USDC,tokenId:{chain:"Bsc",address:"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d"}},{symbol:"AVAX",decimals:18,icon:ge.AVAX,tokenId:{chain:"Avalanche",address:"native"}},{symbol:"WAVAX",decimals:18,icon:ge.AVAX,tokenId:{chain:"Avalanche",address:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7"}},{symbol:"USDC",decimals:6,icon:ge.USDC,tokenId:{chain:"Avalanche",address:"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"}},{symbol:"USDT",decimals:6,icon:ge.USDT,tokenId:{chain:"Avalanche",address:"0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7"}},{symbol:"WETH",decimals:18,icon:ge.ETH,tokenId:{chain:"Avalanche",address:"0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB"}},{symbol:"CELO",decimals:18,icon:ge.CELO,tokenId:{chain:"Celo",address:"0x471EcE3750Da237f93B8E339c536989b8978a438"}},{symbol:"USDT",decimals:6,icon:ge.USDT,tokenId:{chain:"Celo",address:"0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e"}},{symbol:"GLMR",decimals:18,icon:ge.GLMR,tokenId:{chain:"Moonbeam",address:"native"}},{symbol:"WGLMR",decimals:18,icon:ge.GLMR,tokenId:{chain:"Moonbeam",address:"0xAcc15dC74880C9944775448304B263D191c6077F"}},{symbol:"SOL",decimals:9,icon:ge.SOLANA,tokenId:{chain:"Solana",address:"native"}},{symbol:"SOL",decimals:9,tokenId:{chain:"Solana",address:"So11111111111111111111111111111111111111112"},icon:ge.SOLANA},{symbol:"USDC",decimals:6,tokenId:{chain:"Solana",address:"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"},icon:ge.USDC},{symbol:"USDT",decimals:6,icon:ge.USDT,tokenId:{chain:"Solana",address:"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"}},{symbol:"SUI",decimals:9,tokenId:{chain:"Sui",address:"native"},icon:ge.SUI},{symbol:"USDC",decimals:6,tokenId:{chain:"Sui",address:"0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC"},icon:ge.USDC},{symbol:"APT",decimals:8,tokenId:{chain:"Aptos",address:"native"},icon:ge.APT},{symbol:"USDC",decimals:6,tokenId:{chain:"Aptos",address:"0xbae207659db88bea0cbead6da0ed00aac12edcdda169e591cd41c94180b46f3b"},icon:ge.USDC},{symbol:"ETH",decimals:18,icon:ge.ETH,tokenId:{chain:"Arbitrum",address:"native"}},{symbol:"WETH",decimals:18,icon:ge.ETH,tokenId:{chain:"Arbitrum",address:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1"}},{symbol:"USDC",decimals:6,icon:ge.USDC,tokenId:{chain:"Arbitrum",address:"0xaf88d065e77c8cC2239327C5EDb3A432268e5831"}},{symbol:"USDT",decimals:6,icon:ge.USDT,tokenId:{chain:"Arbitrum",address:"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9"}},{symbol:"ETH",decimals:18,icon:ge.ETH,tokenId:{chain:"Optimism",address:"native"}},{symbol:"WETH",decimals:18,icon:ge.ETH,tokenId:{chain:"Optimism",address:"0x4200000000000000000000000000000000000006"}},{symbol:"USDC",decimals:6,icon:ge.USDC,tokenId:{chain:"Optimism",address:"0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85"}},{symbol:"USDT",decimals:6,icon:ge.USDT,tokenId:{chain:"Optimism",address:"0x94b008aA00579c1307B0EF2c499aD98a8ce58e58"}},{symbol:"WETH",decimals:18,icon:ge.ETH,tokenId:{chain:"Bsc",address:"0x2170Ed0880ac9A755fd29B2688956BD959F933F8"}},{symbol:"USDT",decimals:18,icon:ge.USDT,tokenId:{chain:"Bsc",address:"0x55d398326f99059fF775485246999027B3197955"}},{symbol:"ETH",decimals:18,icon:ge.ETH,tokenId:{chain:"Base",address:"native"}},{symbol:"WETH",decimals:18,icon:ge.ETH,tokenId:{chain:"Base",address:"0x4200000000000000000000000000000000000006"}},{symbol:"USDC",decimals:6,icon:ge.USDC,tokenId:{chain:"Base",address:"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}},{symbol:"USDT",decimals:6,icon:ge.USDT,tokenId:{chain:"Base",address:"0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2"}},{symbol:"wstETH",decimals:18,tokenId:{chain:"Base",address:"0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452"},icon:ge.WSTETH},{symbol:"wstETH",decimals:18,tokenId:{chain:"Ethereum",address:"0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0"},icon:ge.WSTETH},{symbol:"wstETH",decimals:18,tokenId:{chain:"Arbitrum",address:"0x5979D7b546E38E414F7E9822514be443A4800529"},icon:ge.WSTETH},{symbol:"wstETH",decimals:18,tokenId:{chain:"Optimism",address:"0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb"},icon:ge.WSTETH},{symbol:"wstETH",decimals:18,tokenId:{chain:"Polygon",address:"0x03b54A6e9a984069379fae1a4fC4dBAE93B3bCCD"},icon:ge.WSTETH},{symbol:"KAIA",decimals:18,icon:ge.KLAY,tokenId:{chain:"Klaytn",address:"native"}},{symbol:"wKAIA",decimals:18,name:"wKAIA",icon:ge.KLAY,tokenId:{chain:"Klaytn",address:"0xe4f05A66Ec68B54A58B17c22107b02e0232cC817"}},{symbol:"PYTH",decimals:6,tokenId:{chain:"Solana",address:"HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3"},icon:ge.PYTH},{symbol:"ETH",decimals:18,icon:ge.SCROLL,tokenId:{chain:"Scroll",address:"native"}},{symbol:"WETH",decimals:18,icon:ge.SCROLL,tokenId:{chain:"Scroll",address:"0x5300000000000000000000000000000000000004"}},{symbol:"OKB",decimals:18,icon:ge.XLAYER,tokenId:{chain:"Xlayer",address:"native"}},{symbol:"WOKB",decimals:18,icon:ge.XLAYER,tokenId:{chain:"Xlayer",address:"0xe538905cf8410324e03A5A23C1c177a474D59b2b"}},{symbol:"MNT",decimals:18,icon:ge.MANTLE,tokenId:{chain:"Mantle",address:"native"}},{symbol:"WMNT",decimals:18,icon:ge.MANTLE,tokenId:{chain:"Mantle",address:"0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8"}},{symbol:"tBTC",decimals:18,tokenId:{chain:"Ethereum",address:"0x18084fbA666a33d37592fA2633fD49a74DD93a88"},icon:ge.TBTC},{symbol:"tBTC",decimals:18,tokenId:{chain:"Polygon",address:"0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"},icon:ge.TBTC},{symbol:"tBTC",decimals:18,tokenId:{chain:"Optimism",address:"0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"},icon:ge.TBTC},{symbol:"tBTC",decimals:18,tokenId:{chain:"Arbitrum",address:"0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"},icon:ge.TBTC},{symbol:"tBTC",decimals:18,tokenId:{chain:"Base",address:"0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"},icon:ge.TBTC},{symbol:"tBTC",decimals:8,tokenId:{chain:"Solana",address:"6DNSN2BJsaPFdFFc1zP37kkeNe4Usc1Sqkzr9C9vPWcU"},icon:ge.TBTC},{symbol:"ETH",tokenId:{chain:"Worldchain",address:"native"},decimals:18,icon:ge.WORLDCHAIN},{symbol:"WETH",tokenId:{chain:"Worldchain",address:"0x4200000000000000000000000000000000000006"},decimals:18,icon:ge.WORLDCHAIN},{symbol:"USDC",tokenId:{chain:"Worldchain",address:"0x79A02482A880bCE3F13e09Da970dC34db4CD24d1"},decimals:6,icon:ge.USDC},{symbol:"ETH",tokenId:{chain:"Unichain",address:"native"},decimals:18,icon:ge.ETH},{symbol:"WETH",tokenId:{chain:"Unichain",address:"0x4200000000000000000000000000000000000006"},decimals:18,icon:ge.ETH},{symbol:"USDC",tokenId:{chain:"Unichain",address:"0x078D782b760474a361dDA0AF3839290b0EF57AD6"},decimals:6,icon:ge.USDC},{symbol:"USDT",tokenId:{chain:"Unichain",address:"0x9151434b16b9763660705744891fA906F660EcC5"},decimals:6,icon:ge.USDT},{symbol:"BERA",tokenId:{chain:"Berachain",address:"native"},decimals:18,icon:ge.BERA},{symbol:"WBERA",tokenId:{chain:"Berachain",address:"0x6969696969696969696969696969696969696969"},decimals:18,icon:ge.BERA},{symbol:"ETH",tokenId:{chain:"Ink",address:"native"},decimals:18,icon:ge.ETH},{symbol:"ETH",tokenId:{chain:"Linea",address:"native"},decimals:18,icon:ge.ETH},{symbol:"USDC",tokenId:{chain:"Linea",address:"0x176211869cA2b568f2A7D4EE941E073a821EE1ff"},decimals:6,icon:ge.USDC},{symbol:"S",tokenId:{chain:"Sonic",address:"native"},decimals:18,icon:ge.SONIC},{symbol:"USDC",tokenId:{chain:"Sonic",address:"0x29219dd400f2Bf60E5a23d13Be72B486D4038894"},decimals:6,icon:ge.USDC},{symbol:"SEI",tokenId:{chain:"Seievm",address:"native"},decimals:18,icon:ge.SEI},{symbol:"USDC",tokenId:{chain:"Seievm",address:"0xe15fC38F6D8c56aF07bbCBe3BAf5708A2Bf42392"},decimals:6,icon:ge.USDC},{symbol:"USDC",tokenId:{chain:"Plume",address:"0x222365EF19F7947e5484218551B56bb3965Aa7aF"},decimals:6,icon:ge.USDC},{symbol:"PLUME",tokenId:{chain:"Plume",address:"native"},decimals:18,icon:ge.PLUME},{symbol:"BTC",tokenId:{chain:"Mezo",address:"native"},decimals:18,icon:ge.BTC},{symbol:"HYPE",tokenId:{chain:"HyperEVM",address:"native"},decimals:18,icon:ge.HYPE},{symbol:"wHYPE",tokenId:{chain:"HyperEVM",address:"0x5555555555555555555555555555555555555555"},decimals:18,icon:ge.HYPE},{symbol:"USDT0",tokenId:{chain:"HyperEVM",address:"0xb8ce59fc3717ada4c02eadf9682a9e934f625ebb"},decimals:6,icon:ge.USDT},{symbol:"USDC",tokenId:{chain:"HyperEVM",address:"0xb88339CB7199b77E23DB6E890353E22632Ba630f"},decimals:6,icon:ge.USDC},{symbol:"USDC",tokenId:{chain:"Ink",address:"0x2D270e6886d130D724215A266106e6832161EAEd"},decimals:6,icon:ge.USDC},{symbol:"USDC",tokenId:{chain:"HyperCore",address:"native"},decimals:6,icon:ge.USDC},{symbol:"XRP",tokenId:{chain:"XRPLEVM",address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE"},decimals:18,icon:ge.XRP},{symbol:"CTC",tokenId:{chain:"CreditCoin",address:"native"},decimals:18,icon:ge.CTC},{symbol:"FOGO",icon:ge.FOGO,decimals:9,tokenId:{chain:"Fogo",address:"native"}},{symbol:"WFOGO",icon:ge.FOGO,decimals:9,tokenId:{chain:"Fogo",address:"So11111111111111111111111111111111111111112"}},{symbol:"MON",icon:ge.MONAD,decimals:18,tokenId:{chain:"Monad",address:"native"}},{symbol:"WMON",icon:ge.MONAD,decimals:18,tokenId:{chain:"Monad",address:"0x3bd359C1119dA7Da1D913D1C4D2B7c461115433A"}},{symbol:"WETH",icon:ge.ETH,decimals:18,tokenId:{chain:"Monad",address:"0xEE8c0E9f1BFFb4Eb878d8f15f368A02a35481242"}},{symbol:"USDC",icon:ge.USDC,decimals:6,tokenId:{chain:"Monad",address:"0x754704Bc059F8C67012fEd69BC8A327a5aafb603"}},{symbol:"USDT",icon:ge.USDT,decimals:6,tokenId:{chain:"Monad",address:"0xe7cd86e13AC4309349F30B3435a9d337750fC82D"}},{symbol:"WBTC",icon:ge.WBTC,decimals:8,tokenId:{chain:"Monad",address:"0x0555E30da8f98308EdB960aa94C0Db47230d2B9c"}},{symbol:"AUSD",icon:ge.AUSD,decimals:6,tokenId:{chain:"Arbitrum",address:"0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a"}},{symbol:"AUSD",icon:ge.AUSD,decimals:6,tokenId:{chain:"Avalanche",address:"0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a"}},{symbol:"AUSD",icon:ge.AUSD,decimals:6,tokenId:{chain:"Base",address:"0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a"}},{symbol:"AUSD",icon:ge.AUSD,decimals:6,tokenId:{chain:"Bsc",address:"0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a"}},{symbol:"AUSD",icon:ge.AUSD,decimals:6,tokenId:{chain:"Ethereum",address:"0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a"}},{symbol:"AUSD",icon:ge.AUSD,decimals:6,tokenId:{chain:"Mantle",address:"0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a"}},{symbol:"AUSD",icon:ge.AUSD,decimals:6,tokenId:{chain:"Monad",address:"0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a"}},{symbol:"AUSD",icon:ge.AUSD,decimals:6,tokenId:{chain:"Plume",address:"0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a"}},{symbol:"AUSD",icon:ge.AUSD,decimals:6,tokenId:{chain:"Polygon",address:"0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a"}},{symbol:"AUSD",icon:ge.AUSD,decimals:6,tokenId:{chain:"Solana",address:"AUSD1jCcCyPLybk1YnvPWsHQSrZ46dxwoMniN4N2UEB9"}},{symbol:"AUSD",icon:ge.AUSD,decimals:6,tokenId:{chain:"Sui",address:"0x2053d08c1e2bd02791056171aab0fd12bd7cd7efad2ab8f6b9c8902f14df2ff2::ausd::AUSD"}},{symbol:"ETH",icon:ge.ETH,decimals:18,tokenId:{chain:"MegaETH",address:"native"}},{symbol:"MOCA",tokenId:{chain:"Moca",address:"native"},decimals:18,icon:ge.MOCA}],i6={Ethereum:{"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2":{Bsc:"0x4DB5a66E937A9F4473fA95b1cAF1d1E1D62E29EA",Polygon:"0x11CD37bb86F65419713f30673A480EA33c826872",Avalanche:"0x8b82A291F83ca07Af22120ABa21632088fC92931",Fantom:"0x2A126f043BDEBe5A0A9841c51915E562D9B07289",Celo:"0x66803FB87aBd4aaC3cbB3fAd7C3aa01f6F3FB207",Moonbeam:"0xab3f0245B83feB11d15AAffeFD7AD465a59817eD",Solana:"7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs",Sui:"0xaf8cd5edc19c4512f4259f0bee101a40d41ebed738ade5874359610ef8eeced5::coin::COIN",Aptos:"0xcc8a89c8dce9693d354449f1f73e60e14e347417854f029db5bc8e7454008abb::coin::T",Base:"0x71b35ECb35104773537f849FBC353F81303A5860",Arbitrum:"0xD8369C2EDA18dD6518eABb1F85BD60606dEb39Ec",Optimism:"0xb47bC3ed6D70F04fe759b2529c9bc7377889678f",Mantle:"0x115Fcc627AcE0457fbeb7Af3b8BcAcE7Ff6211A4",Klaytn:"0x98A8345bB9D3DDa9D808Ca1c9142a28F6b0430E1",Worldchain:"0x6938c3EfFEf84E5C69e3d7cc41eBC6Cff99EF8A7"},"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48":{Bsc:"0xB04906e95AB5D797aDA81508115611fee694c2b3",Polygon:"0x4318CB63A2b8edf2De971E2F17F77097e499459D",Avalanche:"0xB24CA28D4e2742907115fECda335b40dbda07a4C",Fantom:"0x2Ec752329c3EB419136ca5e4432Aa2CDb1eA23e6",Celo:"0x37f750B7cC259A2f741AF45294f6a16572CF5cAd",Moonbeam:"0x931715FEE2d06333043d11F658C8CE934aC61D0c",Solana:"A9mUU4qviSctJVPJdBJWkb28deg915LYJKrzQ19ji3FM",Sui:"0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf::coin::COIN",Aptos:"0x5e156f1207d0ebfa19a9eeff00d62a282278fb8719f4fab3a586a0a2c0fffbea::coin::T",Base:"0xec267C53f53807c2337C257f8AC3Fc3cC07cc0ed",Arbitrum:"0xC96F2715E2a242d50D1b0bC923dbe1740b8eCf18",Optimism:"0x711e53D031ea9B0bb0C24dD506df11b41AEA419e",Klaytn:"0x608792Deb376CCE1c9FA4D0E6B7b44f507CfFa6A",Worldchain:"0x2cbD3491d687A76bb9C53c30B212855520D47b52"},"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599":{Bsc:"0x43359676E1A3F9FbB5de095333f8e9c1B46dFA44",Polygon:"0x5D49c278340655B56609FdF8976eb0612aF3a0C3",Avalanche:"0x1C0e79C5292c59bbC13C9F9f209D204cf4d65aD6",Fantom:"0x87e9E225aD8a0755B9958fd95BE43DD6A91FF3A7",Celo:"0xd71Ffd0940c920786eC4DbB5A12306669b5b81EF",Moonbeam:"0xE57eBd2d67B462E9926e04a8e33f01cD0D64346D",Solana:"3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh",Sui:"0x027792d9fed7f9844eb4839566001bb6f6cb4804f66aa2da6fe1ee242d896881::coin::COIN",Aptos:"0xae478ff7d83ed072dbc5e264250e67ef58f57c99d89b447efd8a0a2e8b2be76e::coin::T",Base:"0xE6396f780b543dF16ee3b784D789c75B68319db0",Arbitrum:"0x397846a8078d4845c7f5c6Ca76aeBbcFDc044fAe",Optimism:"0xB214C19d81c99E75e84706a3aa0A757319023e26",Klaytn:"0x981846bE8d2d697f4dfeF6689a161A25FfbAb8F9",Worldchain:"0x06c9ec7E18A7900E79Ad5BeCc6Cc29E3eebD81EC"},"0xdAC17F958D2ee523a2206206994597C13D831ec7":{Bsc:"0x524bC91Dc82d6b90EF29F76A3ECAaBAffFD490Bc",Polygon:"0x9417669fBF23357D2774e9D421307bd5eA1006d2",Avalanche:"0x9d228444FC4B7E15A2C481b48E10247A03351FD8",Fantom:"0x14BCb86aEed6a74D3452550a25D37f1c30AA0A66",Celo:"0x617f3112bf5397D0467D315cC709EF968D9ba546",Moonbeam:"0xc30E9cA94CF52f3Bf5692aaCF81353a27052c46f",Solana:"Dn4noZ5jgGfkntzcQSUZ8czkreiZ1ForXYoV2H8Dm7S1",Sui:"0xc060006111016b8a020ad5b33834984a437aaa7d3c74c18e09a95d48aceab08c::coin::COIN",Aptos:"0xa2eda21a58856fda86451436513b867c97eecb4ba099da5775520e0f7492e852::coin::T",Base:"0xFf0C62A4979400841eFaA6faADb07Ac7d5C98b27",Arbitrum:"0xE4728F3E48E94C6DA2B53610E677cc241DAFB134",Optimism:"0xf6B4185FCf8aF291c0E3927fbEab7046b4f6A8CA",Klaytn:"0x5C13E303a62Fc5DEdf5B52D66873f2E59fEdADC2",Xlayer:"0x5866709f926f26C5870191F40333ac462B917bC0",Worldchain:"0x95dd0680Fd6B6c7546e75C1A4E6A3256072C0593"},"0x6B175474E89094C44Da98b954EedeAC495271d0F":{Bsc:"0x3413a030EF81a3dD5a302F4B4D11d911e12ed337",Polygon:"0x732EB1747ecCFC431fF19bc359ffc83755B1918c",Avalanche:"0xca319f81D147559e19A522A0a0310Dd43A96cA0F",Fantom:"0xEE786D3D73Ea645365c7248E4e40eDba08B1169F",Celo:"0x97926a82930bb7B33178E3c2f4ED1BFDc91A9FBF",Moonbeam:"0x06e605775296e851FF43b4dAa541Bb0984E9D6fD",Solana:"EjmyN6qEC1Tf1JxiG1ae7UTJhUxSwk1TCWNWqxWV4J6o",Aptos:"0x407a220699982ebb514568d007938d2447d33667e4418372ffec1ddb24491b6c::coin::T",Base:"0x617Edadb51BfB43A44Bb91C7402129C23bA52381",Arbitrum:"0x5c4f2FEFB97F7DF09E762d95C83f0Ccf8bCe8234",Optimism:"0x098EA47D630b46df1E08e389e5e4466119c7dd30",Sui:"0xc01c54cd767a60835bf100b0a8f7aae66ac9f4e374f76746af60f02493b6f2cf::coin::COIN",Klaytn:"0xCB2C7998696Ef7a582dFD0aAFadCd008D03E791A",Worldchain:"0x69635e59E89000e08a13C3F7B9f7293160Dc83a2"},"0x4Fabb145d64652a948d72533023f6E7A623C7C53":{Bsc:"0x035de3679E692C471072d1A09bEb9298fBB2BD31",Polygon:"0x95ea750420da26bE1Ab0891e209e921bCd84763f",Celo:"0x1dd42c0785ca90B677adc2ABad01dfc5ECcD0b4d",Moonbeam:"0xa2284e1F98E4d0B7Eb6a6b4f3C57f1b209C755F3",Solana:"33fsBLA8djQm82RpHmE3SuVrPGtZBWNYExsEUeKX1HXX",Aptos:"0x77400d2f56a01bad2d7c8c6fa282f62647ce3c03f43f2a8742e47ea01a91e24a::coin::T",Worldchain:"0x276719Fc6a38E62B717c6FF6E39d1C336ee633AB"},"0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0":{Polygon:"0xe082a7Fc696De18172Ad08D956569Ee80BC37f06",Solana:"ZScHuTtqZukUrtZS43teTKGs2VqkKL8k4QCouR2n6Uo",Arbitrum:"0xf2717122Dfdbe988ae811E7eFB157aAa07Ff9D0F",Optimism:"0x855CFcEEe998c8ca34F9c914F584AbF72dC88B87",Base:"0xEd4e2FD35161c3c0e33cA187fce64C70d44Ce32b",Bsc:"0xad80E1A9B5824234afA9dE1F3bbDb8a994796169",Avalanche:"0x11449fd2F05D93827972b40adE96F6ffBE42E35a",Fantom:"0x2a2Ec6Ad3e47C536F47934F63b95BD647F1C730E",Worldchain:"0xd977e0251db8d38155dC5d212944AB7B7a6777Ad"}},Polygon:{"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270":{Ethereum:"0x7c9f4C87d911613Fe9ca58b579f737911AAD2D43",Bsc:"0xc836d8dC361E44DbE64c4862D55BA041F88Ddd39",Avalanche:"0xf2f13f0B7008ab2FA4A2418F4ccC3684E49D20Eb",Fantom:"0xb88A6064B1F3FF5B9AE4A82fFD52560b0dF9FBD3",Celo:"0x9C234706292b1144133ED509ccc5B3CD193BF712",Moonbeam:"0x82DbDa803bb52434B1f4F41A6F0Acb1242A7dFa3",Solana:"Gz7VkD4MacbEB6yC5XD3HcumEiYx2EtDYYrfikGsvopG",Sui:"0xdbe380b13a6d0f5cdedd58de8f04625263f113b3f9db32b3e1983f49e2841676::coin::COIN",Aptos:"0x6781088e2a1629d38eda521467af4a8ca7bfa7e5516338017940389595c85c0f::coin::T",Base:"0xc863399E5c5C4011B1DC3fB602902C77BA72B709",Arbitrum:"0x3ab0E28C3F56616aD7061b4db38aE337E3809AEA",Optimism:"0x8f02B6a32cebcAe44D2Fd17d87966f5B5dD14c6d",Mantle:"0x1d15Dc3B3DB5A182eA8E3091F21EB0549d4a72E0",Klaytn:"0x9858e5A4f8202baD619D4BD39382CA67F4CA0E63",Scroll:"0x982D057feCD66c3af27b16EBC67C4db24810bcD8",Xlayer:"0xc97E2b2d7730C34adC389563721d9dF52EDA4A2a",Worldchain:"0xDcB507ECEA06724d8c4F2f03964f7EE4da504E8C"},"0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619":{Bsc:"0x1384284E16e3375522Be54F50909Bc52A69e90e4",Solana:"DQyeU3oFezEGia761GQ4iPcMCnxnH8fuLrmHZUvTYuby",Aptos:"0x2692323828f627a45a75a05eba8281dd46690c538b4f6ccb7a35ffe8199a28b7::coin::T",Sui:"0xa1ed6e76b06ff8f959cc479fbbd423820a3349dad8707b98ff4309c677fa20ad::coin::COIN",Arbitrum:"0xd2b299eD76d1369Ac8762CFEc85245fFD302FC17",Ethereum:"0x32d222E1f6386B3dF7065d639870bE0ef76D3599",Avalanche:"0x061FE51530768889dc20Ac7fCD29b5307b823395",Optimism:"0x2740220fFa4b206280907ce12b7cDC57445f3B92",Fantom:"0x1cAFd8d3301E4E54Fc1462E7117Eb678bF50C765",Base:"0x7A79923734eDA9c7f7ff69ad9ec1e234F67E7CD6",Moonbeam:"0xf1BB9A987B9edC360580b0c9F28069C808c2a7da",Celo:"0x8Ed68859f162970258992168293232e3Bdd987d0",Klaytn:"0x3eb25C7098AC38a852Cd2366161c5e216af50Df3"},"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359":{Aptos:"0xc5fd7820e9f053e6dd8e7dd8ca3ce8e9b10d200ba1692bdeb7a035217180ad4a::coin::T",Base:"0xFe1579BAc60363c8572CB30Bf4DD1Fd85811BBF8",Moonbeam:"0x4415BfBDee669446550d55c749007EF60B520FC8",Sui:"0x5c8c9082401982e8c2519a5c12883a5475295bf5cec4a0a13c26d35dd9a20d73::coin::COIN",Bsc:"0xe6d82Bbe75041E42E51d755e922cE1BA91af9c4d",Celo:"0x42c76808f3179A091Ee007A2955aF2522978ADE7",Fantom:"0xB4DcfD221048a1Dad989D39456BBd87762c26F06",Avalanche:"0xDb2d08f5A9C9ADBBA0DE5a69bbB1E9Ca03411692",Arbitrum:"0x599ADB10E6A012dF34935D47407450f6D7170e3C",Optimism:"0xbB1EaB9Eb8fDf65F0E291D013DA07B4b65a27a01",Solana:"C321jHPwWBzgfSGndosDTp5pBsiXPyMU1irxKLVcedRB",Ethereum:"0xFbcE0f9e92AD1003e893Ba647bC055D845aAa507",Klaytn:"0x59AEaD999e018a00B162D34de7a81AFFAB88bAbB"},"0x03b54A6e9a984069379fae1a4fC4dBAE93B3bCCD":{Base:"0xcB6D47199d60747152d7671D6497ce8D23cc1D75",Arbitrum:"0x23D3901A635fDd98D8d6509bc0720281f80a8E6D",Ethereum:"0x302F636d723c8Ed75C0d1E9D9C714009184C5624",Optimism:"0x4fad81d2268a7D9E1e0fE7dB38af07FFFA0aA56E",Celo:"0xA4c7302659eCF88a90e62e915Bd486E66B616A4C"}},Bsc:{"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c":{Ethereum:"0x418D75f65a02b3D53B2418FB8E1fe493759c7605",Polygon:"0xeCDCB5B88F8e3C15f95c720C51c71c9E2080525d",Avalanche:"0x442F7f22b1EE2c842bEAFf52880d4573E9201158",Fantom:"0xc033551e05907Ddd643AE14b6D4a9CA72BfF509B",Celo:"0xBf2554ce8A4D1351AFeB1aC3E5545AaF7591042d",Moonbeam:"0xE3b841C3f96e647E6dc01b468d6D0AD3562a9eeb",Solana:"9gP2kCy3wA1ctvYWQk75guqXuHfrEomqydHLtcTCqiLa",Sui:"0xb848cce11ef3a8f62eccea6eb5b35a12c4c2b1ee1af7755d02d7bd6218e8226f::coin::COIN",Aptos:"0x6312bc0a484bc4e37013befc9949df2d7c8a78e01c6fe14a34018449d136ba86::coin::T",Base:"0x7fdAa50d7399ac436943028edA6ed9a1BD89509f",Arbitrum:"0x7AF00405916D823eDb1121546EfA6F4972B51b84",Optimism:"0x6A09fE65ACa27C12573F04aAFa290bD75497E1BC",Mantle:"0x9a7E85260d6F5d3c3d2a1FdDc3D980DBC78e508d",Klaytn:"0xaC9C1E4787139aF4c751B1C0fadfb513C44Ed833",Scroll:"0x5b0da0a36DC415714B53A4f24b56921332F42E7C",Xlayer:"0x8bC46166E06122603bA10D2bCA63b75091c25cAe",Worldchain:"0x59163d9c70E9b3852a504c5F1458e2daD33516Ff"},"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d":{Ethereum:"0x7cd167B101D2808Cfd2C45d17b2E7EA9F46b74B6",Polygon:"0x4B3a922c773BDCF3BA8f1A4FDAc2029E1D0E9868",Avalanche:"0x6145E8a910aE937913426BF32De2b26039728ACF",Fantom:"0x0FcbDAC44c67A43607D3E95886dB19871ADc985F",Celo:"0x9d9abAE97a9344e3854527b4efbB366a1564bfEb",Moonbeam:"0x7f433E22366E03a3758CE22cCf82887d828078f8",Solana:"FCqfQSujuPxy6V42UvafBhsysWtEq1vhjfMN1PUbgaxA",Sui:"0x909cba62ce96d54de25bec9502de5ca7b4f28901747bbf96b76c2e63ec5f1cba::coin::COIN",Aptos:"0x79a6ed7a0607fdad2d18d67d1a0e552d4b09ebce5951f1e5c851732c02437595::coin::T",Base:"0x68E2b07F92ed506f92935d7359ECA84D5342dbb4",Arbitrum:"0x1a0590F951bc9C3818Ce75ba5Bbe92831b2cf57e",Optimism:"0x1C15057d1F3794C934a6cBC1f7EceE934050F219",Klaytn:"0x01B342d26FEF5749E87CBe412e16163771b0277c"},"0x2170Ed0880ac9A755fd29B2688956BD959F933F8":{Aptos:"0xd9fc4259ec5def95477dba9f0861c2882d1f8bee9a4138b476dd0720a3444547::coin::T",Solana:"FzjTz2cD1DfqYvafrbHWZvf1dK9qjwXGLuaU7xYXQjxP",Sui:"0x5029d5a94429a73b8036cd67192d9c5e09bbc2c0fee942d50075a9edba66744f::coin::COIN",Base:"0xf50509Bb6aF76E20c6E1eD493699c5f70764BcCC",Arbitrum:"0x6478377A399bE8c92bD35254aA7bF287836de32e",Ethereum:"0x5DbBB101CDc29443d12055eCDDdD7ca037Dce721",Fantom:"0xc511E3aec79CABD605021C237c475Ec553B002d4",Celo:"0x09F236D3708894581b1Cf679e582ba9eA5BE16f0",Klaytn:"0x4C07075BB44076106f3389766946b79784Fb5C58",Avalanche:"0xf0e509144CfA602d0A5e8C75d76FF74077f52f2b",Optimism:"0x8088Bc767c392b5769b94c9ec1D07c62874c8d5f",Polygon:"0x2D291e940DbDdaa9E847Ba5cC49451575f086b27",Moonbeam:"0xBefd7902B682938b29B3FD3D4AdECD9A984D5930"}},Avalanche:{"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7":{Ethereum:"0x85f138bfEE4ef8e540890CFb48F620571d67Eda3",Bsc:"0x96412902aa9aFf61E13f085e70D3152C6ef2a817",Polygon:"0x7Bb11E7f8b10E9e571E5d8Eace04735fDFB2358a",Fantom:"0x358CE030DC6116Cc296E8B9F002728e65459C146",Celo:"0xFFdb274b4909fC2efE26C8e4Ddc9fe91963cAA4d",Moonbeam:"0xd4937A95BeC789CC1AE1640714C61c160279B22F",Solana:"KgV1GvrHQmRBY8sHQQeUKwTm2r2h8t4C8qt12Cw1HVE",Sui:"0x1e8b532cca6569cab9f9b9ebc73f8c13885012ade714729aa3b450e0339ac766::coin::COIN",Aptos:"0x5b1bbc25524d41b17a95dac402cf2f584f56400bf5cc06b53c36b331b1ec6e8f::coin::T",Base:"0xc449A60A31E1eebFE83c42E9465fd4Dc318aE9a7",Arbitrum:"0x565609fAF65B92F7be02468acF86f8979423e514",Optimism:"0x8418C1d909842f458c9394886b83F19d62bF1A0D",Mantle:"0x2cAb4233d42043AEBbbb1445af362Ef686f3C133",Klaytn:"0x45830b92443a8f750247da2A76C85c70d0f1EBF3",Scroll:"0xC043c8A3672f397e7b52bF0a04F47d6f1aA952Ed",Xlayer:"0x5208Fb676B2DBab7aFaFB56e8997237F0ceECF71",Worldchain:"0x5Bf2A0622aa1254D963A3074b593A379784C116a"},"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E":{Ethereum:"0x39EbF69137D98FB7659Ef8D4ea21ec26394389d7",Bsc:"0xc88Dc63bf0c8c8198C97Db0945E3eF25Ca89A8e4",Polygon:"0xAEA5CC14DefbC1b845FDE729E563B717Ee6825ae",Fantom:"0xEfE7701cb2B80664385Be226d0300912CA92f66A",Celo:"0x62FFf2D2D1692D52eAf043AeeC727F7918d269D3",Moonbeam:"0xd4918c40cA9f02d42Cb53d06587aF42017Bc345D",Solana:"FHfba3ov5P3RjaiLVgh8FTv4oirxQDoVXuoUUDvHuXax",Sui:"0xe596782fbaebef51ae99ffac8731aed98a80642b9dc193ed659c97fbc2cc0f84::coin::COIN",Aptos:"0x39d84c2af3b0c9895b45d4da098049e382c451ba63bec0ce0396ff7af4bb5dff::coin::T",Arbitrum:"0x93e0FcbEd43CD6fC30DF00CcBD4669718dc74e77",Optimism:"0x355f0a8a7ecAeD971b8Fbd50994558291ff2413a",Base:"0xD83385fE100E20c269a5975D4Bf92525BcE09F87",Klaytn:"0x9C97D4c09679Dfd00A39681f6d3b61A285312B13",Scroll:"0xbEFc3d0457fB88f82364Dd982F7BA195FEE96b74"},"0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB":{Aptos:"0x25ff8e0c07552c392c9e5dd4c9c07cf0382765c1bca560e80b6296a702034219::coin::T",Solana:"F9B9qLwUN3TAWGV9EGsuzFzS2PxWvKAmLhvfeqYNaS7J",Bsc:"0xBDfe278268524de38Da89B3023C1F49deBDFdA8A",Sui:"0xc1ea686a329e35808c61484d95904d50522f1d1616cab4b416d9cfa9b274bc6c::coin::COIN",Base:"0xEfe64b52bc0bDfa109790736F25cefb79724adF0",Arbitrum:"0xdF64fB41b7f45304a786695E0D5daD8d033C01eF",Polygon:"0x2912b3a9586Fc2AB177dC869e878c688DAA7d06E",Ethereum:"0xD85a87Edbe9fB3Baf6a1Bbd1E46f1C04B291331d",Optimism:"0xBe6EA3e70e2bbB0dbD093B657fbbc0DFF0BA67eC",Moonbeam:"0x9C673c6b651D6FDEF57441125A6AC16b08bba939",Celo:"0xDac2C97b5E64d7C79d040cd2906EBe02341F1Ab5",Klaytn:"0x9971F9d9170D787C4e4E01c56E1BDB308291CacF",Fantom:"0x86a09597fc91b116511B990D29CB46ddedC0fCb0"}},Fantom:{"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83":{Ethereum:"0x4cD2690d86284e044cb63E60F1EB218a825a7e92",Bsc:"0xbF8413EE8612E0E4f66Aa63B5ebE27f3C5883d47",Polygon:"0x3726831304D77f585f1Aca9d9841cc3Ef80dAa62",Avalanche:"0xd19abc09B7b36F7558929b97a866f499a26c2f83",Celo:"0xd1A342eE2210238233a347FEd61EE7Faf9f251ce",Moonbeam:"0x609AedD990bf45926bca9E4eE988b4Fb98587D3A",Solana:"DRQBDBEWmwWGK13fRTLhSPzjbvMSUavhV6nW4RUH8W6T",Sui:"0x6081300950a4f1e2081580e919c210436a1bed49080502834950d31ee55a2396::coin::COIN",Aptos:"0xd1aa2ff36a0e93e1b4e4fecdecf8bb95bc5de399061c5e84b515281f48718842::coin::T",Base:"0x936Fa2DE8380Dc5BF34C80F1BaD53a9f3630263B",Arbitrum:"0x7f7dcDb91930033a4Eb269196EBb6fd5f0644E4B",Optimism:"0x0b0ecbe5C3995541876d27633B63296570FB34Af",Mantle:"0x6BFDc59ECBC5503aE16F71851064597D0a75dA76",Klaytn:"0xF3AebeA789F30C22F3657F70f4CaA0f8b49ed676",Scroll:"0x16f077e2e9bF99Adfb1FEEc8360ee002842C44A2",Xlayer:"0x956b5E88c311b976C76CB415C7E030A5Af87373b"},"0x2F733095B80A04b38b0D10cC884524a3d09b836a":{Bsc:"0x521af8b1c43B503BE91F542d82EEFEabc0C93340",Arbitrum:"0xF68734163731ad6A6108f76A8e09862C1d412B42",Ethereum:"0xfcC349c14013EdeFAAcAE09Ba30F4ef2571b8D2c"}},Celo:{"0x471EcE3750Da237f93B8E339c536989b8978a438":{Ethereum:"0x3294395e62F4eB6aF3f1Fcf89f5602D90Fb3Ef69",Bsc:"0x2A335e327a55b177f5B40132fEC5D7298aa0D7e6",Polygon:"0x922F49a9911effc034eE756196E59BE7b90D43b3",Avalanche:"0x494317B8521c5a5287a06DEE467dd6fe285dA4a8",Fantom:"0xF432490C6c96C9d3bF523a499a1CEaFd8208A373",Moonbeam:"0xc1a792041985F65c17Eb65E66E254DC879CF380b",Solana:"9kvAcwQbqejuJMd59mKuw2bfSsLRaQ7zuvaTVHEeBBec",Sui:"0xa198f3be41cda8c07b3bf3fee02263526e535d682499806979a111e88a5a8d0f::coin::COIN",Aptos:"0xac0c3c35d50f6ef00e3b4db6998732fe9ed6331384925fe8ec95fcd7745a9112::coin::T",Base:"0x74df3823aA29D278cAD0A3632fCB56C896a38eD4",Arbitrum:"0x4E51aC49bC5e2d87e0EF713E9e5AB2D71EF4F336",Optimism:"0x9b88D293b7a791E40d36A39765FFd5A1B9b5c349",Klaytn:"0xB2b5bC9bc872c7107CBC8E8e0E2805Db0ac4FBc2",Worldchain:"0x2250A0E2532A745b585B69dd2CdC75207384917c"}},Moonbeam:{"0xAcc15dC74880C9944775448304B263D191c6077F":{Ethereum:"0x93d3696A9F879b331f40CB5059e37015423A3Bd0",Bsc:"0x1C063db3c621BF901FC6C1D03328b08b2F9bbfba",Polygon:"0xcC48d6CF842083fEc0E01d913fB964b585975F05",Avalanche:"0x375aA6C67BF499fBf01804A9f92C03c0776F372d",Fantom:"0xBF227E92D6754EB4BFE26C40cb299ff2809Da45f",Celo:"0x383A5513AbE4Fe36e0E00d484F710148E348Aa9D",Solana:"7ixSaXGsHAFy34wogPk2YXiUX3BMmQMFdercdaHLnBby",Sui:"0x66f87084e49c38f76502d17f87d17f943f183bb94117561eb573e075fdc5ff75::coin::COIN",Aptos:"0x7ab1283a7b13c4254d4e1f803d7ce6578442c1d7a40d0faee41cd48ba4884c8a::coin::T",Base:"0xfdB7311BeC3b2CcCF8407d0585f81B97b3b5eff1",Arbitrum:"0x944C5b67a03e6Cb93Ae1E4B70081f13b04CDB6Bd",Optimism:"0xbffD46DFDb8d3a02b8D2E0F864a2cD712090a4D3",Klaytn:"0x52a4558f98dDc7cb40cd9114C005f0B9571258Fc",Scroll:"0x2Aba1Ed24EaFC17F801b1A7dF1c3a06737F8aB72",Xlayer:"0xE2a44Dad57004517738FbD84cdf09Bd1451b4e43",Worldchain:"0xaAe2Bd4EB640f02dD3a53bd994ad19110b4191b0"}},Solana:{So11111111111111111111111111111111111111112:{Ethereum:"0xD31a59c85aE9D8edEFeC411D448f90841571b89c",Bsc:"0xfA54fF1a158B5189Ebba6ae130CEd6bbd3aEA76e",Polygon:"0xd93f7E271cB87c23AaA73edC008A79646d1F9912",Avalanche:"0xFE6B19286885a4F7F55AdAD09C3Cd1f906D2478F",Fantom:"0xd99021C2A33e4Cf243010539c9e9b7c52E0236c1",Celo:"0x4581E64115d46CcdeE65Be2336bEc86c9BA54C01",Moonbeam:"0x99Fec54a5Ad36D50A4Bba3a41CAB983a5BB86A7d",Sui:"0xb7844e289a8410e50fb3ca48d69eb9cf29e27d223ef90353fe1bd8e27ff8f3f8::coin::COIN",Aptos:"0xdd89c0e695df0692205912fb69fc290418bed0dbe6e4573d744a6d5e6bab6c13::coin::T",Base:"0x1C61629598e4a901136a81BC138E5828dc150d67",Arbitrum:"0x2bcC6D6CdBbDC0a4071e48bb3B969b06B3330c07",Optimism:"0xba1Cf949c382A32a09A17B2AdF3587fc7fA664f1",Mantle:"0xDA03239f428c76A527e1ceCa0ecA6cC367A2D945",Klaytn:"0xfAA03A2AC2d1B8481Ec3fF44A0152eA818340e6d",Xlayer:"0x3a859D92da2E16Ad32C5C6F3ADAddFBa4dE3A47e",Scroll:"0xCDf95E1F720caade4b1DC83ABfE15400D2a458AD",Worldchain:"0xEfae32D1c15EDBaEA3ebdDe1e2C51003AED04d30",Unichain:"0xbdE8A5331E8Ac4831cf8ea9e42e229219EafaB97",Fogo:"HLc5hqihQGFU68488j7HkdyF6rywyJfV46BN6Dn8W5ug",Monad:"0xea17E5a9efEBf1477dB45082d67010E2245217f1",MegaETH:"0x9a96e366f6b2ed5850a38b58d355a80afd998411"},EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v:{Ethereum:"0x41f7B8b9b897276b7AAE926a9016935280b44E97",Bsc:"0x91Ca579B0D47E5cfD5D0862c21D5659d39C8eCf0",Polygon:"0x576Cf361711cd940CD9C397BB98C4C896cBd38De",Avalanche:"0x0950Fc1AD509358dAeaD5eB8020a3c7d8b43b9DA",Fantom:"0xb8398DA4FB3BC4306B9D9d9d13d9573e7d0E299f",Celo:"0x8B6eef6C449D3Ac723a9C06a9eaE2dCd7d308BA9",Moonbeam:"0x098d6eE48341D6a0a0A72dE5baaF80A10E0F6082",Sui:"0xb231fcda8bbddb31f2ef02e6161444aec64a514e2c89279584ac9806ce9cf037::coin::COIN",Aptos:"0xc91d826e29a3183eb3b6f6aa3a722089fdffb8e9642b94c5fcd4c48d035c0080::coin::T",Arbitrum:"0x3870546cfd600ba87e4180686d29dC993A45d3B7",Optimism:"0x6F974A6dfD5B166731704Be226795901c45Bb815",Base:"0xe8CE40EBBB844142400D21558a2F1c9683d69139",Klaytn:"0xa1a7feeD29EbFa38079D943486c23f401939Ce80",Scroll:"0x883Ccb5aEfD0084f1e4D04b133675acd6D5F123F"},HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3:{Aptos:"0x770211b47954e15bec1a4271bf33bacebc2d2adb43b7dc1ca45efa787615dd4c::coin::T",Bsc:"0xb0188B0bb2cD4a6D2744637fC83C94a284B247Da",Base:"0x4c5d8A75F3762c1561D96f177694f67378705E98",Celo:"0x985aa4814419ba338379A634785216301e51113D",Avalanche:"0x8A0691e602B7a5FCc51a27E4a08376dE50889B42",Polygon:"0xFa4B761A1e07909Ba31331a5dfa12390E3ff5583",Fantom:"0x77ad3B2dA29FBd208F12c3C701E969F4422aAD79",Optimism:"0x99C59ACeBFEF3BBFB7129DC90D1a11DB0E91187f",Ethereum:"0xeFc0CED4B3D536103e76a1c4c74F0385C8F4Bdd3",Arbitrum:"0xE4D5c6aE46ADFAF04313081e8C0052A30b6Dd724",Sui:"0x9c6d76eb273e6b5ba2ec8d708b7fa336a5531f6be59f326b5be8d4d8b12348a4::coin::COIN",Moonbeam:"0x27cc3FDbDD1F415b09a41232D0fD71345DAB8030",Xlayer:"0x057b766b3fB76527cf815c3b5C38Dfa8144335CF",Worldchain:"0x838f3045F3B2dcDFF8cB4e5CaB0c0092A69B790a"}},Sui:{native:{Ethereum:"0x84074EA631dEc7a4edcD5303d164D5dEa4c653D6",Bsc:"0x8314f6Bf1B4dd8604A0fC33C84F9AF2fc07AABC8",Polygon:"0x34bE049fEbfc6C64Ffd82Da08a8931A9a45f2cc8",Avalanche:"0x1703CB0F762D2a435199B64Ea47E5349B7C17480",Fantom:"0xC277423a21F6e32D886BF85Ef6cCB945d5D28347",Celo:"0x1Cb9859B1A16A67ef83A0c7b9A21eeC17d9a97Dc",Moonbeam:"0x484eCCE6775143D3335Ed2C7bCB22151C53B9F49",Solana:"G1vJEgzepqhnVu35BN4jrkv3wVwkujYWFFCxhbEZ1CZr",Aptos:"0xa72a97e872be9ee3d2f14d56fd511eb7e4a53f4055be3a267d8602e7685b41c0::coin::T",Base:"0x36c6FBF7B49bF65f5F82b674af219C05b2a4aDD1",Arbitrum:"0xCF79d86B8a830030aF6D835737d6eac3bE823fD7",Optimism:"0x27A533e438892DA192725b4C9AcA51447F457212",Mantle:"0x9ef1BB6072d7d6B9C935d9c040133036aD532119",Klaytn:"0xB0B40516293e0204fB376A18aA230A210cbE0305",Xlayer:"0xEa76dBFE6e449420f294e74E057518F750E99A16",Worldchain:"0xf69005c35B5d9AcC22E4DbCf52f892cAE21F83B0"}},Aptos:{native:{Ethereum:"0x8CDf7AF57E4c8B930e1B23c477c22f076530585e",Bsc:"0x2Ba98cf7Edd2c5C794e21bc3Dc6973D3C2585eE3",Polygon:"0xa4ef199d3ad524E9C3C51Ac46B303B103A307Cef",Avalanche:"0x43c588459b3243fA541B98CC4B2E995b3de553A2",Fantom:"0x3Cd9162Ca5256b8E26A0e3Ad14CCfF7C0Da0F174",Celo:"0x89F2b718Ca518db39d377F0ABBa6B42582b549F7",Moonbeam:"0x25331575641d35D9765e1934acC8F0991c58e904",Solana:"6LNeTYMqtNm1pBFN8PfhQaoLyegAH8GD32WmHU9erXKN",Sui:"0x3a5143bb1196e3bcdfab6203d1683ae29edd26294fc8bfeafe4aaa9d2704df37::coin::COIN",Base:"0x1d36126289Be1658297A35CC3EB2BB80A7D7A04b",Arbitrum:"0x4EdeF400eDe5309240814b5FC403F224504604e9",Optimism:"0xC5B3AC2DF8D8D7AC851F763a5b3Ff23B4A696d59",Klaytn:"0x68d5254007BE3a6d3d2A37e2C1ad3921D049F46D",Xlayer:"0xEdF2AEaCE382A3c0722f110c4927d34b78bce34F",Worldchain:"0xfC5011f2037f2Dad9c9aC05CbB6749B383C3099c"}},Arbitrum:{"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1":{Ethereum:"0xb945E3F853B5f8033C8513Cf3cE9F8AD9beBB1c9",Bsc:"0xaA1eEdABC48D078350ccBdD620bD088848e299E5",Polygon:"0x6a5c59AB16268d2c872916054C50440B999e417C",Avalanche:"0xDfDA518A1612030536bD77Fd67eAcbe90dDC52Ab",Fantom:"0xE8367853A0823515D37b1538331B4704089becb4",Celo:"0xc6F962fCcb140ece554AfD0E589f971532A57f14",Solana:"CSD6JQMvLi46psjHdpfFdr826mF336pEVMJgjwcoS1m4",Sui:"0x33744e7df340a4d01c23f6b18c13563f767545ea95f976f8045f056358419da3::coin::COIN",Aptos:"0xe977796d7bfb3263609b90dffd264c7bd078ce35dac42b55302858d9fa3452b::coin::T",Base:"0x9D36e0edb8BBaBeec5edE8a218dc2B9a6Fce494F",Optimism:"0x825206E1D29456337769e6f1384101E997C6A732",Moonbeam:"0x18872b45c603eD2EbC508b9C5514a85c2e2791FB",Klaytn:"0x3CF1751E32c4225CB12ba953786C260C2cE89008"},"0xaf88d065e77c8cC2239327C5EDb3A432268e5831":{Ethereum:"0xCFc006a32a98031C2338BF9d5ff8ED2c0Cae4a9e",Bsc:"0x5caa170b465122D15a6D20FD9A804a9613CE7882",Polygon:"0x7800FE8951cdc1cDea748d878fAce63018D97960",Avalanche:"0x4b5fE357Eb11c735078e47526D6e853DBff18541",Celo:"0xA41a62567d9eb960D84b72663FdaeBE0BCdE2683",Solana:"CR4xnGrhsu1fWNPoX4KbTUUtqGMF3mzRLfj4S6YEs1Yo",Sui:"0xc3f8927de33d3deb52c282a836082a413bc73c6ee0bd4d7ec7e3b6b4c28e9abf::coin::COIN",Aptos:"0xca3a2c28bc8c6c762f752dd2a4ebbfd00356ca99977ce6636e3af5897124a87a::coin::T",Optimism:"0xa6252F56cc6eEA21165d56744C795F91c8a3Cf68",Base:"0xb96B82Cd6D45d98Fb6897D16A5E4EE888329C513",Fantom:"0x2228703672906fEe5eD681Ec28e42B4506b8c336",Moonbeam:"0xbd2B6D665439514EEaA8519f4fE87CC8C46e9167",Klaytn:"0x3d5973fF7288f47857dAa5a32C53976A9A968928",Xlayer:"0xd53bD30985B4125fc561774e388d9f679BB84117"},"0x5979D7b546E38E414F7E9822514be443A4800529":{Bsc:"0x159167e842C586a81f02E55bc043AC8EdB033E0b",Aptos:"0xd2ca17516bc4ca57c1c69577e0c9cc0129153286695b46b97f438ecc138c225e::coin::T",Solana:"8wJakbZuv7WApfHmRo2sdkeQfu6hXqfEqjb7BYXDKpKe",Sui:"0xb607aed1c09e676384d14ae638dbcb08523fc691d309e71c856c7fdcb60d4430::coin::COIN",Base:"0xbE3981b37CcE5eCb6925d2ad9D9E28dE7b165793",Optimism:"0xEae5ccc3c36beF59f6794b467e7e228CB3720415",Fantom:"0xf65BF40A3299Df500D440520dF7e6ce1BEa53E73",Ethereum:"0x906310cE867C22c5016248Bd791FA5dd162c9D6d",Polygon:"0xcf0aa97c2fD78Ee0f0C3090B9EB65d2bd6C1D81a"}},Optimism:{"0x4200000000000000000000000000000000000006":{Fantom:"0xe8E8f941377A955bFA72880ec0dc2319dbC827a8",Celo:"0x8d53771b1Ec7461f8e45Bca2609c45bC0bbd0677",Solana:"8M6d63oL7dvMZ1gNbgGe3h8afMSWJEKEhtPTFM2u8h3c",Sui:"0x0aab14ec22908de73d1b0619f5e03842398f8e68262981bd35ef44b42d22b23a::coin::COIN",Aptos:"0x6a7a7f36ef5e2d0e65fcf72669c20d514d68298b0f76c7554517208f73260aaf::coin::T",Arbitrum:"0xB1fC645a86fB5085e12D8BDDb77702F728D2A26F",Avalanche:"0xDf11535274c0FD2Fe41A88bd1bBF802D72296037",Bsc:"0x94AEc09B5e2CE591e39DC6aa58A3A6E85Ed45265",Ethereum:"0x8B5653Ae095529155462eDa8CF664eD96773F557",Polygon:"0x8182De59485Bb646542Db8C7E5958148Dc699319",Base:"0xCb725aC8d9985D3bE306Dd9e1517d3702929176c",Moonbeam:"0xd4870F7F5AD8Ae5139E1a5D8AD4ac55204aE4490",Klaytn:"0x4ab77AF7059435b71dBC3B7c5255983C8628eFdf"},"0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85":{Fantom:"0x385b219f0C4fa2e84EfE5aaf9692a821C57B8248",Celo:"0xEe48963C003e21EaCEdFA8a0A19BB3cbF7E776Fe",Moonbeam:"0x7143e8EA96e158381057a58AfdDF44601c7e532C",Base:"0xc6bfBeb3002aD563D2d1f72614C61C83Bf147Acd",Arbitrum:"0x3A5C2Da9E30741cb59a5e9446A23A86886fC9DC2",Aptos:"0x4f6ecb05a797902d472abc2f5804bde93a53d8b75f14f767824cdb1623a4ee83::coin::T",Bsc:"0xa41ae127D04F7ee73B5058E2C60Fb7c7A2D21F79",Avalanche:"0xBe04f76A0ba2100c3F2d6Aa1FD8484F415469573",Polygon:"0x31F12aCb60C3c32EE884F3894a873347C097D925",Sui:"0x6037801f060f0f54b3817bca05e3c8b9b9ffaa2da8e93fd5b80fa662aa3c9e55::coin::COIN",Solana:"J8kcD4Wnd1ehne1dpL8WNtgZQR6Jpui2cTZcrmg5ybAa",Klaytn:"0x7Ee2AB1443fDB59AECEa3aDD8F81296d68c2D1e3",Ethereum:"0xe77C99b64414e0fd9aeEA48AFFBBD2E97A895020"},"0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb":{Bsc:"0x1f29fAD000255BF49D72803b2A8FaC8e31947eF8",Base:"0xBb0BeaB819dEAf091C193bE4bBEeA9D5b0F5227C",Arbitrum:"0xf99C5EEd186601955a9a1027536D1b46b1f909F8",Polygon:"0x9065e1D25E65F7A1D60bb6197154386B52faA469",Ethereum:"0xB3ceE6DCa1dD528CB7CC258e32D8B50ce9Ee46f5"}},Base:{"0x4200000000000000000000000000000000000006":{Ethereum:"0x1D4241F7370253C0f12EFC536B7e16E462Fb3526",Bsc:"0x9dc152F4941cE1A138326e70c3600385bf0C22dD",Polygon:"0x5BCf8d8c097FbB35C371F921E3FF3e6F6Eb54B41",Avalanche:"0xFA83178c66fE51ee99109b5cC912f8098Ff812eF",Fantom:"0xd3365E7355230c78098b44B172eE27DAB95B041A",Celo:"0x905CADB645684140E285e2D09D39dF5a2082BC87",Moonbeam:"0x6C6f83366A42fcA4D30a2D3f1914284de995Ac3a",Solana:"DWXe1hxpnb8LAH21iyXcjvMbiAGzoYyuCVQtRLvZdLYd",Sui:"0xaecbc804fa7ca7cffc74c9a05eb6ae86fda0c68375b5c1724204a1065bcb239a::coin::COIN",Aptos:"0x5b5f14781164cf77185a7b6acd8e4f3cbb7e7cfb1cd5760d2b8af81075fc153d::coin::T",Arbitrum:"0xBAfbCB010D920e0Dab9DFdcF634De1B777028a85",Optimism:"0x3F369a664fa665e01e8EB9f20bFcE03A0CAb8971",Mantle:"0x4a2176DE2Fb36485704965bd1Cc471854f21303B",Klaytn:"0x7Bf9ad1D104dEAE4B59Ef1be6a273Cb46BA16362"},"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913":{Solana:"EfqRM8ZGWhDTKJ7BHmFvNagKVu3AxQRDQs8WMMaoBCu6",Moonbeam:"0xE6d02a875CcC153c076fe418f33De3A5C420f505",Celo:"0x2e2acb1782Aad0490f8446b6fD4626C467987bD6",Bsc:"0x55CaD531c8E303Cab8B3BE4bB4744Db4f896ac81",Optimism:"0xb931c7BbD87A6e249EaA7355B13927F9c99Bce87",Arbitrum:"0x8619F97D4d08382548F536E5CE1D3e0D9bA40326",Polygon:"0x1eeCaB0F75fE93abbFa0cDFfb4fB13d1dC8706c8",Avalanche:"0xab933e939a9236BD439F7d29b87CE712f42bAC06",Fantom:"0xd9E4C283d8A49Dc3767A6F5a4dFdc1d0cEf21604",Sui:"0x7e3e74afcc1913aa9491c8cee89b02131a6e5519b090f16b54321835c1241cfb::coin::COIN",Aptos:"0xfcc4fcd734d5b8578fb629d238d15264a49eca6165c7444c21feec3b4962eb88::coin::T",Mantle:"0x5D628a3285a10fdd93AEa704007957F294e05F91",Ethereum:"0xc38261846c42C1E1D59E04dA675Eb1974E9cE7b1",Klaytn:"0x0a2330c1C46E9A74e8651F7117a1264410eA3C88",Scroll:"0x22C9bde4Ad49C4b6CCFB8D394B5ED42A57853d58"},"0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452":{Arbitrum:"0x09E79693E44c8813A8CA25EeD7A40e5E24cD9c01",Ethereum:"0x187175c7a526f48c905202Bd2Bf8D25A457F479F",Polygon:"0x95d4C8e851D9E8c6B92aa518474E991c373E9Fb2",Optimism:"0x6ee40855c0BaB20585d17D2b9dd8d2Cd1cd41801",Avalanche:"0x5e513CA12DbD8424bDFc5B50711dF4AE999a8C58"}},Klaytn:{"0xe4f05A66Ec68B54A58B17c22107b02e0232cC817":{Aptos:"0x539b652f8230a0e42adaeda4706b5639893d22362eda6ea897493c210cb48219::coin::T",Ethereum:"0x9AEA32B459e96C8eF5010f69130bf95fd129ac05",Celo:"0xe304254de5c2048F9bFb042dDFB54f84d1d77730",Polygon:"0x415ce980fde17F1FF102e1c6e4ce860Acc615D74",Base:"0x41c433c146c47Dc53FC48cDc69e406e365e298E1",Arbitrum:"0xFA95f6c796E54F9C4a99392CAE84410a25794BB3",Moonbeam:"0xf0a9476E4712123A807859f9Fd25fe98213379BD",Fantom:"0x787e2F3509583C0F03A339Be0826463C839CBE5E",Sui:"0xa5ec915864d7f37b25ca9144b2db6ebcf29e73603c2ccf9d0e765adcd9049a98::coin::COIN",Avalanche:"0x126C03982Ad6D7ef7E6aF020bF219e87185a6BC3",Bsc:"0xEA970e7b7D131Ea36c3051C9Ca11e785462fE00c",Optimism:"0xbbeF8233a0d10EEAb84E913FaDB337ab9b62F683",Solana:"2b8fZGLBZjpxFugCdnJbbLLBYxvx23rsrsvLYYueiHb7",Scroll:"0xA55FB7A046454998b2f6d8D99Df5F0E108b38229",Worldchain:"0xC080f0082029fC6e8A4Bb33a9B0655B8d4f2BAB0"}},Scroll:{"0x5300000000000000000000000000000000000004":{Arbitrum:"0xAe81a542e20270b48Bd5297E3e0f280f79E46C42"}},Mantle:{"0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8":{Optimism:"0xf704F6a3241609Cfb3E44Db1237E68EB6CaC7C04"}},Monad:{"0x3bd359C1119dA7Da1D913D1C4D2B7c461115433A":{Solana:"AXSTN3GQHS4Mc7GDZwWmfp8H8qUVqyx3Ck5rPRT9g7RM"}}},cd={chains:Xd,tokens:r6,wrappedTokens:i6,rpcs:e6,guardianSet:{index:4,keys:["0x5893b5a76c3f739645648885bdccc06cd70a3cd3","0xff6cb952589bde862c25ef4392132fb9d4a42157","0x114de8460193bdf3a2fcf81f86a09765f4762fd1","0x107a0086b32d7a0977926a205131d8731d39cbeb","0x8c82b2fd82faed2711d59af0f2499d16e726f6b2","0x11b39756c042441be6d8650b69b54ebe715e2343","0x54ce5b4d348fb74b958e8966e2ec3dbd4958a7cd","0x15e7caf07c4e3dc8e7c469f92c8cd88fb8005a20","0x74a3bf913953d695260d88bc1aa25a4eee363ef0","0x000ac0076727b35fbea2dac28fee5ccb0fea768e","0xaf45ced136b9d9e24903464ae889f5c8a723fc14","0xf93124b7c738843cbb89e864c862c38cddcccf95","0xd2cc37a4dc036a8d232b48f62cdd4731412f4890","0xda798f6896a3331f64b48c12d1d57fd9cbe70811","0x71aa1be1d36cafe3867910f99c09e347899c19c3","0x8192b6e7387ccd768277c17dab1b7a5027c0b3cf","0x178e21ad2e77ae06711549cfbb1f9c7a9d8096e8","0x5e1487f35515d02a92753504a8d75471b9f49edb","0x6fbebc898f403e4773e95feb15e80c9a99c8348d"]}},n6={Bsc:{displayName:"BNB",explorerUrl:"https://testnet.bscscan.com/",explorerName:"BscScan",icon:"Bsc",symbol:"BSC",sdkName:"Bsc"},Avalanche:{displayName:"Fuji",explorerUrl:"https://testnet.snowtrace.io/",explorerName:"Snowtrace",icon:"Avalanche",symbol:"AVAX",sdkName:"Avalanche"},Fantom:{displayName:"Fantom",explorerUrl:"https://testnet.ftmscan.com/",explorerName:"FtmScan",icon:"Fantom",symbol:"FTM",sdkName:"Fantom"},Celo:{displayName:"Alfajores",explorerUrl:"https://explorer.celo.org/alfajores/",explorerName:"Celo Explorer",icon:"Celo",symbol:"CELO",sdkName:"Celo"},Moonbeam:{displayName:"Moonbase",explorerUrl:"https://moonbase.moonscan.io/",explorerName:"Moonscan",icon:"Moonbeam",symbol:"GLMR",sdkName:"Moonbeam"},Solana:{displayName:"Solana",explorerUrl:"https://explorer.solana.com/?cluster=devnet",explorerName:"Solana Explorer",icon:"Solana",symbol:"SOL",sdkName:"Solana"},Sui:{displayName:"Sui",explorerUrl:"https://suiscan.xyz/testnet/",explorerName:"Suiscan",icon:"Sui",symbol:"SUI",sdkName:"Sui"},Aptos:{displayName:"Aptos",explorerUrl:"https://explorer.aptoslabs.com/",explorerName:"Aptos Explorer",icon:"Aptos",symbol:"APT",sdkName:"Aptos"},Klaytn:{displayName:"Kaia",explorerUrl:"https://kairos.kaiascan.io/",explorerName:"KaiaScan",icon:"Klaytn",symbol:"KAIA",sdkName:"Klaytn"},Sepolia:{displayName:"Sepolia",explorerUrl:"https://sepolia.etherscan.io/",explorerName:"Etherscan",icon:"Ethereum",symbol:"ETH",sdkName:"Sepolia"},ArbitrumSepolia:{displayName:"Arbitrum Sepolia",explorerUrl:"https://sepolia.arbiscan.io/",explorerName:"Etherscan",icon:"Arbitrum",symbol:"ARB",sdkName:"ArbitrumSepolia"},BaseSepolia:{displayName:"Base Sepolia",explorerUrl:"https://sepolia.basescan.org/",explorerName:"Etherscan",icon:"Base",symbol:"BASE",sdkName:"BaseSepolia"},OptimismSepolia:{displayName:"Optimism Sepolia",explorerUrl:"https://sepolia-optimistic.etherscan.io/",explorerName:"Etherscan",icon:"Optimism",symbol:"OP",sdkName:"OptimismSepolia"},Scroll:{displayName:"Scroll",explorerUrl:"https://sepolia.scrollscan.dev/",explorerName:"Scrollscan",icon:"Scroll",symbol:"SCR",sdkName:"Scroll"},Xlayer:{displayName:"X Layer",explorerUrl:"https://www.okx.com/web3/explorer/xlayer-test/",explorerName:"OKX Explorer",icon:"Xlayer",symbol:"OKX",sdkName:"Xlayer"},Mantle:{displayName:"Mantle",explorerUrl:"https://explorer.testnet.mantle.xyz/",explorerName:"Mantle Explorer",icon:"Mantle",symbol:"MNT",sdkName:"Mantle"},Worldchain:{displayName:"World Chain",explorerUrl:"https://worldchain-sepolia.explorer.alchemy.com/",explorerName:"World Scan",icon:"Worldchain",sdkName:"Worldchain",symbol:"WORLD"},Unichain:{displayName:"Unichain",explorerUrl:"https://unichain-sepolia.blockscout.com/",explorerName:"Unichain Explorer",icon:"Unichain",symbol:"UNI",sdkName:"Unichain"},Mezo:{displayName:"Mezo",explorerUrl:"https://explorer.test.mezo.org/",explorerName:"Mezo Explorer",icon:"Mezo",sdkName:"Mezo",symbol:"MEZO"},Linea:{displayName:"Linea",sdkName:"Linea",explorerUrl:"https://sepolia.lineascan.build/",explorerName:"Lineascan",icon:"Linea",symbol:"LINEA"},Sonic:{displayName:"Sonic",sdkName:"Sonic",explorerUrl:"https://testnet.sonicscan.org/",explorerName:"Sonicscan",icon:"Sonic",symbol:"S"},Seievm:{displayName:"SeiEVM",explorerUrl:"https://seitrace.com/?chain=atlantic-2",explorerName:"Seitrace",icon:"Seievm",sdkName:"Seievm",symbol:"SEI"},Plume:{displayName:"Plume",sdkName:"Plume",explorerUrl:"https://testnet-explorer.plume.org",explorerName:"Plume Explorer",icon:"Plume",symbol:"PLUME"},Fogo:{displayName:"Fogo",sdkName:"Fogo",explorerUrl:"https://explorer.fogo.io/",explorerName:"Fogo Explorer",icon:"Fogo",symbol:"FOGO"},XRPLEVM:{displayName:"XRPL EVM",sdkName:"XRPLEVM",icon:"XRPLEVM",explorerUrl:"https://explorer.testnet.xrplevm.org/",explorerName:"XRPL EVM Explorer",symbol:"XRP"},Ink:{displayName:"Ink Sepolia",sdkName:"Ink",explorerUrl:"https://explorer-sepolia.inkonchain.com/",explorerName:"Ink Sepolia Explorer",icon:"Ink",symbol:"INK"},Moca:{displayName:"Moca",sdkName:"Moca",icon:"Moca",explorerUrl:"https://testnet-scan.mocachain.org/",explorerName:"Moca Chain Explorer",symbol:"MOCA"},MonadTestnet:{displayName:"Monad",explorerUrl:"https://testnet.monadexplorer.com/",explorerName:"Monad Explorer",icon:"Monad",symbol:"MON",sdkName:"MonadTestnet"}},a6={},{REACT_APP_SEPOLIA_RPC:f6,REACT_APP_BSC_TESTNET_RPC:o6,REACT_APP_FUJI_RPC:s6,REACT_APP_FANTOM_TESTNET_RPC:h6,REACT_APP_ALFAJORES_RPC:u6,REACT_APP_SOLANA_DEVNET_RPC:c6,REACT_APP_FOGO_TESTNET_RPC:l6,REACT_APP_MOONBASE_RPC:d6,REACT_APP_SUI_TESTNET_RPC:p6,REACT_APP_APTOS_TESTNET_RPC:v6,REACT_APP_BASE_SEPOLIA_RPC:b6,REACT_APP_KLAYTN_TESTNET_RPC:m6,REACT_APP_ARBITRUM_SEPOLIA_RPC:y6,REACT_APP_OPTIMISM_SEPOLIA_RPC:g6,REACT_APP_SCROLL_TESTNET_RPC:x6,REACT_APP_XLAYER_TESTNET_RPC:w6,REACT_APP_MANTLE_TESTNET_RPC:M6,REACT_APP_WORLDCHAIN_TESTNET_RPC:_6,REACT_APP_UNICHAIN_TESTNET_RPC:A6,REACT_APP_MEZO_TESTNET_RPC:E6,REACT_APP_LINEA_TESTNET_RPC:S6,REACT_APP_SONIC_TESTNET_RPC:B6,REACT_APP_SEIEVM_TESTNET_RPC:F6,REACT_APP_PLUME_RPC:C6,REACT_APP_XRPLEVM_TESTNET_RPC:D6,REACT_APP_MONAD_TESTNET_RPC:R6,REACT_APP_INK_TESTNET_RPC:T6,REACT_APP_MOCA_TESTNET_RPC:I6}=a6,k6={...st("Sepolia",f6),...st("Bsc",o6),...st("Avalanche",s6),...st("Fantom",h6),...st("Celo",u6),...st("Solana",c6),...st("Fogo",l6),...st("Moonbeam",d6),...st("Sui",p6),...st("Aptos",v6),...st("BaseSepolia",b6),...st("ArbitrumSepolia",y6),...st("OptimismSepolia",g6),...st("Klaytn",m6),...st("Scroll",x6),...st("Xlayer",w6),...st("Mantle",M6),...st("Worldchain",_6),...st("Unichain",A6),...st("Mezo",E6),...st("Linea",S6),...st("Sonic",B6),...st("Seievm",F6),...st("Plume",C6),...st("XRPLEVM",D6),...st("Monad",R6),...st("Ink",T6),...st("Moca",I6)},P6=[{symbol:"BNB",icon:ge.BNB,decimals:18,tokenId:{chain:"Bsc",address:"native"}},{symbol:"WBNB",icon:ge.BNB,decimals:18,tokenId:{chain:"Bsc",address:"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd"}},{symbol:"AVAX",icon:ge.AVAX,decimals:18,tokenId:{chain:"Avalanche",address:"native"}},{symbol:"WAVAX",icon:ge.AVAX,decimals:18,tokenId:{chain:"Avalanche",address:"0xd00ae08403B9bbb9124bB305C09058E32C39A48c"}},{symbol:"USDC",icon:ge.USDC,decimals:6,tokenId:{chain:"Avalanche",address:"0x5425890298aed601595a70AB815c96711a31Bc65"}},{symbol:"CELO",icon:ge.CELO,decimals:18,tokenId:{chain:"Celo",address:"0xF194afDf50B03e69Bd7D057c1Aa9e10c9954E4C9"}},{symbol:"USDC.e",icon:ge.USDC,decimals:6,tokenId:{chain:"Celo",address:"0x72CAaa7e9889E0a63e016748179b43911A3ec9e5"}},{symbol:"GLMR",icon:ge.GLMR,decimals:18,tokenId:{chain:"Moonbeam",address:"native"}},{symbol:"WGLMR",icon:ge.GLMR,decimals:18,tokenId:{chain:"Moonbeam",address:"0xD909178CC99d318e4D46e7E66a972955859670E1"}},{symbol:"SOL",icon:ge.SOLANA,decimals:9,tokenId:{chain:"Solana",address:"native"}},{symbol:"SOL",tokenId:{chain:"Solana",address:"So11111111111111111111111111111111111111112"},icon:ge.SOLANA,decimals:9},{symbol:"FOGO",icon:ge.FOGO,decimals:9,tokenId:{chain:"Fogo",address:"native"}},{symbol:"WFOGO",icon:ge.FOGO,decimals:9,tokenId:{chain:"Fogo",address:"So11111111111111111111111111111111111111112"}},{symbol:"USDC",tokenId:{chain:"Solana",address:"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU"},icon:ge.USDC,decimals:6},{symbol:"SUI",tokenId:{chain:"Sui",address:"native"},icon:ge.SUI,decimals:9},{symbol:"USDC",decimals:6,tokenId:{chain:"Sui",address:"0xa1ec7fc00a6f40db9693ad1415d0c193ad3906494428cf252621037bd7117e29::usdc::USDC"},icon:ge.USDC},{symbol:"APT",tokenId:{chain:"Aptos",address:"native"},icon:ge.APT,decimals:8},{symbol:"USDC",decimals:6,tokenId:{chain:"Aptos",address:"0x69091fbab5f7d635ee7ac5098cf0c1efbe31d68fec0f2cd565e8d168daf52832"},icon:ge.USDC},{symbol:"KAIA",icon:ge.KLAY,decimals:18,tokenId:{chain:"Klaytn",address:"native"}},{symbol:"wKAIA",name:"wKAIA",icon:ge.KLAY,decimals:18,tokenId:{chain:"Klaytn",address:"0x0339d5Eb6D195Ba90B13ed1BCeAa97EbD198b106"}},{symbol:"ETH",icon:ge.ETH,decimals:18,tokenId:{chain:"Sepolia",address:"native"}},{symbol:"WETH",icon:ge.ETH,decimals:18,tokenId:{chain:"Sepolia",address:"0xeef12A83EE5b7161D3873317c8E0E7B76e0B5D9c"}},{symbol:"USDC",icon:ge.USDC,decimals:6,tokenId:{chain:"Sepolia",address:"0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238"}},{symbol:"USDT",icon:ge.USDT,decimals:6,tokenId:{chain:"Sepolia",address:"0xaA8E23Fb1079EA71e0a56F48a2aA51851D8433D0"}},{symbol:"WBTC",icon:ge.WBTC,decimals:8,tokenId:{chain:"Sepolia",address:"0x52eea312378ef46140ebe67de8a143ba2304fd7c"}},{symbol:"UNI",icon:"https://assets.coingecko.com/coins/images/12504/standard/uniswap-logo.png",decimals:18,tokenId:{chain:"Sepolia",address:"0x1f9840a85d5af5bf1d1762f925bdaddc4201f984"}},{symbol:"ETH",icon:ge.ETH,decimals:18,tokenId:{chain:"ArbitrumSepolia",address:"native"}},{symbol:"WETH",icon:ge.ETH,decimals:18,tokenId:{chain:"ArbitrumSepolia",address:"0x980B62Da83eFf3D4576C647993b0c1D7faf17c73"}},{symbol:"ETH",icon:ge.ETH,decimals:18,tokenId:{chain:"BaseSepolia",address:"native"}},{symbol:"WETH",icon:ge.ETH,decimals:18,tokenId:{chain:"BaseSepolia",address:"0x4200000000000000000000000000000000000006"}},{symbol:"USDC",icon:ge.USDC,decimals:6,tokenId:{chain:"BaseSepolia",address:"0x036CbD53842c5426634e7929541eC2318f3dCF7e"}},{symbol:"ETH",icon:ge.ETH,decimals:18,tokenId:{chain:"OptimismSepolia",address:"native"}},{symbol:"WETH",icon:ge.ETH,decimals:18,tokenId:{chain:"OptimismSepolia",address:"0x4200000000000000000000000000000000000006"}},{symbol:"ETH",icon:ge.SCROLL,decimals:18,tokenId:{chain:"Scroll",address:"native"}},{symbol:"WETH",icon:ge.SCROLL,decimals:18,tokenId:{chain:"Scroll",address:"0x5300000000000000000000000000000000000004"}},{symbol:"OKB",icon:ge.XLAYER,decimals:18,tokenId:{chain:"Xlayer",address:"native"}},{symbol:"WOKB",icon:ge.XLAYER,decimals:18,tokenId:{chain:"Xlayer",address:"0xa2aFfd8301BfB3c5b815829f2F509f053556D21B"}},{symbol:"MNT",icon:ge.MANTLE,decimals:18,tokenId:{chain:"Mantle",address:"native"}},{symbol:"WMNT",icon:ge.MANTLE,decimals:18,tokenId:{chain:"Mantle",address:"0xa4c4cb2A072eE99f77212Fa18c2B7Ca26DA23905"}},{symbol:"ETH",tokenId:{chain:"Worldchain",address:"native"},decimals:18,icon:ge.WORLDCHAIN},{symbol:"WETH",tokenId:{chain:"Worldchain",address:"0x4200000000000000000000000000000000000006"},decimals:18,icon:ge.WORLDCHAIN},{symbol:"ETH",tokenId:{chain:"Unichain",address:"native"},decimals:18,icon:ge.ETH},{symbol:"WETH",tokenId:{chain:"Unichain",address:"0x4200000000000000000000000000000000000006"},decimals:18,icon:ge.ETH},{symbol:"USDC",tokenId:{chain:"Unichain",address:"0x31d0220469e10c4E71834a79b1f276d740d3768F"},decimals:6,icon:ge.USDC},{symbol:"BTC",tokenId:{chain:"Mezo",address:"native"},decimals:18,icon:ge.BTC},{symbol:"ETH",tokenId:{chain:"Linea",address:"native"},decimals:18,icon:ge.ETH},{symbol:"USDC",tokenId:{chain:"Linea",address:"0xFEce4462D57bD51A6A552365A011b95f0E16d9B7"},decimals:6,icon:ge.USDC},{symbol:"S",tokenId:{chain:"Sonic",address:"native"},decimals:18,icon:ge.SONIC},{symbol:"USDC",tokenId:{chain:"Sonic",address:"0xA4879Fed32Ecbef99399e5cbC247E533421C4eC6"},decimals:6,icon:ge.USDC},{symbol:"SEI",tokenId:{chain:"Seievm",address:"native"},decimals:18,icon:ge.SEI},{symbol:"USDC",tokenId:{chain:"Seievm",address:"0x4fCF1784B31630811181f670Aea7A7bEF803eaED"},decimals:6,icon:ge.USDC},{symbol:"PLUME",decimals:18,icon:ge.PLUME,tokenId:{chain:"Plume",address:"native"}},{symbol:"USDC",tokenId:{chain:"HyperEVM",address:"0x2B3370eE501B4a559b57D449569354196457D8Ab"},decimals:6,icon:ge.USDC},{symbol:"XRP",tokenId:{chain:"XRPLEVM",address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE"},decimals:18,icon:ge.XRP},{symbol:"ETH",icon:ge.ETH,decimals:18,tokenId:{chain:"Ink",address:"native"}},{symbol:"MOCA",tokenId:{chain:"Moca",address:"native"},decimals:18,icon:ge.MOCA},{symbol:"MON",icon:ge.MONAD,decimals:18,tokenId:{chain:"MonadTestnet",address:"native"}},{symbol:"WMON",icon:ge.MONAD,decimals:18,tokenId:{chain:"MonadTestnet",address:"0xFb8bf4c1CC7a94c73D209a149eA2AbEa852BC541"}}],N6={Bsc:{"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd":{Avalanche:"0x10F1053bF2884b28ee0Bd7a2dDBa237Af3511d29",Fantom:"0xfB174b43228950C2055CFc25AE93f2DCe8E2beF0",Celo:"0xa8050be9389466c3c524F10F131f244ACbf21A0D",Moonbeam:"0x6097E80331B0c6aF4F74D7F2363E70Cb2Fd078A5",Solana:"BaGfF51MQ3a61papTRDYaNefBgTQ9ywnVne5fCff4bxT",Sui:"0xddcf8680a8a4b8a527d8c85ec203274991590c2ea898d1c4635b70164d9c584b::coin::COIN",Aptos:"0xa5894f5ddb8647e6143102aa336ff07374f7b32e88c1c703aef5b7c9a370bf80::coin::T",Klaytn:"0xEFa3626825C33C4cd83850920Ad7Ac0a392E1faE",Sepolia:"0x02CdD5eB55934663F0aD8fbA3516dC7DE4E22894"}},Avalanche:{"0xd00ae08403B9bbb9124bB305C09058E32C39A48c":{Bsc:"0x6cE9E2c8b59bbcf65dA375D3d8AB503c8524caf7",Fantom:"0x0f545Be981C37fB15ab7c65404648761e99016e4",Celo:"0x502c8C83008D9Dd812a7C5fB886C063060C73Dbf",Moonbeam:"0x2E8afeCC19842229358f3650cc3F091908dcbaB4",Solana:"3Ftc5hTz9sG4huk79onufGiebJNDMZNL8HYgdMJ9E7JR",Sui:"0xa600741c469fb57ed01497ddf101e798fa79a9c529bd176675c5c4d970811f80::coin::COIN",Aptos:"0xbe8f4301c0b54e870902b9a23eeb95ce74ac190531782aa3262337ceb145401a::coin::T",Klaytn:"0x10257392a2B5e3C4D4bEe1607650a1C0C738202a",Scroll:"0x5Bd1ba0040C16b13894A6EbE3d55708c91eF08bb",Xlayer:"0xb13a464ceE7455A9b2941bFAe1bB1eB5A6833867"},"0x5425890298aed601595a70AB815c96711a31Bc65":{Bsc:"0x1cfeCf72bcBE1E429A21A5B11E708C7c397AaC54",Fantom:"0x6BC4E8D8c1d54656D1DeBCa96efc53aFd1408aD2",Celo:"0xDDB349c976cA2C873644F21f594767Eb5390C831",Moonbeam:"0x6533CE14804D113b1F494dC56c5D60A43cb5C3b5",Solana:"GQtMXZxnuacCFTXVeTvyHi6P9F6chbtzhVc8JgD8hv7c",Sui:"0x2aa8c885d04e676c4e87b7d0f94d4f3b243b1b5d93239d1cc41d5528ce1714c1::coin::COIN",Aptos:"0x2ef7697bdb33361ca39d228671203afc0dea3202e792d79d2072b761d87c834::coin::T"}},Fantom:{"0xf1277d1Ed8AD466beddF92ef448A132661956621":{Bsc:"0x9aB305B792DBdb8253bEE909E7006611Cb45175b",Avalanche:"0x094cB577C21Ab1360178beE74B9591fa12216dAD",Celo:"0xE6F8710cA14CFe7F5aAAD3A799C3d1D92dCba938",Moonbeam:"0x566c1cebc6A4AFa1C122E039C4BEBe77043148Ee",Solana:"DMw2tLaq1bVoAEKtkoUtieSk9bfCPUvubYLatTMsSVop",Sui:"0x14e756ff65e0ac810a5f69ca5276ef5b899a6df3c4717de1f85559d8b5ae6ea6::coin::COIN",Aptos:"0x533c6ade00d15d1e014c41e29e34853e87df92c4e01a6a3f41318dbd098048d6::coin::T",Klaytn:"0x097c8878A0d852581Dc4D8820151094Ddd3663Ac",Sepolia:"0x852132647d301B7EED02589B1dc73545E73c8596"}},Celo:{"0xF194afDf50B03e69Bd7D057c1Aa9e10c9954E4C9":{Bsc:"0x1471698cBD9cAB0228F2EEA9303A2b3aA0ABDC2B",Avalanche:"0xC66d9c2b33c347d4A4441975f4688fcD5DD4c441",Fantom:"0xB18E73a69c3Aaea39a610372537Cf8482622d199",Moonbeam:"0x3406a9b09adf0cb36DC04c1523C4b294C6b79513",Solana:"84F2QX9278ToDmA98u4A86xSV9hz1ovazr8zwGaX6qjS",Sui:"0x81868174a6b11e1acc337b3414f9912455435d486609fb8d50b34312865085f2::coin::COIN",Aptos:"0xecbb0f7e7d049499ca83ca1358344f56557886f6f7adc740d6734cce7bfc9a14::coin::T",Klaytn:"0xC951826bbB310a8160BB78c2eEe6C98246292ba7",Sepolia:"0x648f226f3bDcAEdc844622d604F76935DC05bC24"}},Moonbeam:{"0xD909178CC99d318e4D46e7E66a972955859670E1":{Bsc:"0x5C31B36599ED7f06b09c0ffC7A2F928cE496F046",Avalanche:"0xf080782DF38eD5228D2FC2882d13D56c8f1D6f21",Fantom:"0x41E3CFDFC255A4bF3C8D3560Bc8D3D9b5080338e",Celo:"0x132D2172D89cd9CfD480A8887c6bF92360fB460e",Solana:"8987WGkYa5viiZ9DD8sS3PB5XghKmWjkEgmzvwDuoAEc",Sui:"0xeffae382de96981f7ddd2d294429924827e8f325d612487a12d6a0b249171002::coin::COIN",Aptos:"0x338373b6694f71dbeac5ca4a30503bf5f083888d71678aed31255de416be37c0::coin::T",Sepolia:"0x3F7CD70ECd402BBe71f45A95156A2CAC0d6A822E"}},Solana:{So11111111111111111111111111111111111111112:{Bsc:"0x30f19eBba919954FDc020B8A20aEF13ab5e02Af0",Avalanche:"0xb10563644a6AB8948ee6d7f5b0a1fb15AaEa1E03",Fantom:"0xED1a08Fc69A7008d225890A96aaE258c465CC7ad",Celo:"0x05EEF2AE1A7A938D78598F7d9e8b97A9bED0c9eC",Sui:"0xbc03aaab4c11eb84df8bf39fdc714fa5d5b65b16eb7d155e22c74a68c8d4e17f::coin::COIN",Aptos:"0xdd89c0e695df0692205912fb69fc290418bed0dbe6e4573d744a6d5e6bab6c13::coin::T",Klaytn:"0x48D99C16638E6FFD2ED60375cD35ef6c139e5f41",Moonbeam:"0x5babD0d267Adf2081626654E51d1cABF8c477440",Sepolia:"0x824CB8fC742F8D3300d29f16cA8beE94471169f5",Monad:"0x369CD1E20Fa7ea1F8e6dc0759709bA0bD978abE7"},"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU":{Bsc:"0x51a3cc54eA30Da607974C5D07B8502599801AC08"}},Sui:{native:{Bsc:"0x5A73D76e09Af2E428EC64aE10F91B78AC990B298",Avalanche:"0xfc5128F8556a6F059466E67740e6cC31EE5C2C47",Fantom:"0xd882AB49372eC093E8697B5153f54ab5e7738e3b",Celo:"0xa40d9E69ca9867C4bFbeC11Ce79C939991e9bf26",Solana:"BJZ72CjPQojVoH68mzrd4VQ4nr6KuhbAGnhZEZCujKxY",Aptos:"0x7b22d0e02f653d4fd1caddcfa4719a2b329da56eb81d8f27db703f02466c26a5::coin::T",Moonbeam:"0x2ed4B5B1071A3C676664E9085C0e3826542C1b27",Klaytn:"0xbA5F07a20681Add3A396E7606c6DC9B03d71d28A"}},Aptos:{native:{Bsc:"0x4A7Bd5E135f421057F97BbA8BCeeE5c18334f454",Avalanche:"0x996a3f12C1FcD7339Ea8801f629201e4d42EAD04",Fantom:"0xAb2297E8994149BA91737944E40891881aF762a4",Celo:"0xAC0a2fF7DD597de863878a3372142b07B614C125",Moonbeam:"0xCaa2A1d3BbbA0D1466571e83b4E2CbE04252593D",Solana:"7EvFD3JKCJVdtkAYdaSVKJsrPEJCzy2neJha7TREGrCa",Sui:"0x812d6feb8b84e55d47a0bfcae9fb6a4e7e09be5ec86ce0a729e0f67d5f59f477::coin::COIN"}},Klaytn:{"0x0339d5Eb6D195Ba90B13ed1BCeAa97EbD198b106":{Bsc:"0x79D34FDb686B5D139949E4F92D83EEe376489176",Aptos:"0xa8ffe1ffe3057756019345cdf9cf3d1f1a3d9a355147dd9440878c448a057579::coin::T",Celo:"0x8e50fC4b7F8B7018E72475f78C640F973218C8Cf",Avalanche:"0x84f3298Bcc019BD5B995756494095e1Eb72B565C",Solana:"6p7qTfX4tRFtQovxwT77Jn9HFQEV7nxLbux9C31Tgm23",Fantom:"0x72A1C24dA7F08d11a7668E228Ec287Fc6ec16E48",Sepolia:"0x142D0E977768cA4De6f2161D9E5B5C9F00435F9e",Moonbeam:"0x6eFf019D79D4136e57A7FC141967F3D0AD41089a",Sui:"0xd4a59fb612b162df75a9d190c0f72098dcae883e88bd0eb28667c31f8208dc3c::coin::COIN"}},Sepolia:{"0xeef12A83EE5b7161D3873317c8E0E7B76e0B5D9c":{Solana:"6F5YWWrUMNpee8C6BDUc6DmRvYRMDDTgJHwKhbXuifWs",Celo:"0x890ad4a7eD5bD08b7d6638515157dF3bF4BaD1Bc",Bsc:"0x667a61Efa611399970AE927637dD6f9A16f51e40",Moonbeam:"0xa7276055a1d45fB9982575411801e10ac9970Da8",ArbitrumSepolia:"0x97Ee87C7Db6049669a518730a2Ee60d1Fc58844E",Avalanche:"0x12bFE94230daaE3d48067577F45b7b031dD357f3",Fantom:"0x7F96D67186561Aa17cEb699494E94bEE3F3499D4"},"0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238":{Aptos:"0x3f2912a313c5bea312dbf19f9080101d2e762df6546a6fe9f60a4de72c93d015::coin::T",Solana:"23Adx8na44L3M1Nf9RrUpQPb41eufdRXKseg25FfcJtw",Celo:"0xD6A34325e5F6BE27b7006bf06651444196Da579a",Bsc:"0xb8850F591019F0794F813426d4A4A9b5fB8f23C8",BaseSepolia:"0x3F872340B6A75397aa9b0A463000349962a8795D",ArbitrumSepolia:"0x27B8F40Cf0915e729ae5A96970E91045Fe9724dF",Fantom:"0xa686203C86140142230f44A724281E1BEd09c369",Klaytn:"0x25f2a470a2e1E75DDAc40289AB277eDE4DD98aFa",Sui:"0x6529fef82a8a09470c550a3129bbd889030b62306f0c14161224b1a40ef1346f::coin::COIN"}},OptimismSepolia:{"0x4200000000000000000000000000000000000006":{ArbitrumSepolia:"0xa2610700cCA8361DECD27dB2564848C530f20813"}}},ld={chains:n6,tokens:P6,wrappedTokens:N6,rpcs:k6,guardianSet:{index:0,keys:["0x13947Bd48b18E53fdAeEe77F3473391aC727C638"]}},O6={Ethereum:{sdkName:"Ethereum",displayName:"EVM",explorerUrl:"",explorerName:"",icon:"Ethereum",symbol:"ETH"}},q6={},{REACT_APP_ETHEREUM_DEVNET_RPC:U6}=q6,L6={...st("Ethereum",U6)},H6=[{symbol:"ETH",icon:ge.ETH,decimals:18,tokenId:{chain:"Ethereum",address:"native"}},{symbol:"WETH",icon:ge.ETH,decimals:18,tokenId:{chain:"Ethereum",address:"0xDDb64fE46a91D46ee29420539FC25FD07c5FEa3E"}},{symbol:"TKN",icon:ge.ETH,decimals:18,tokenId:{chain:"Ethereum",address:"0x2D8BE6BF0baA74e0A907016679CaE9190e80dD0A"}}],$6={chains:O6,tokens:H6,wrappedTokens:{},rpcs:L6,guardianSet:{index:0,keys:["0x13947Bd48b18E53fdAeEe77F3473391aC727C638"]}};function j6(m,g){const S=typeof window>"u"?void 0:window.location?.host;return function(s){const A={meta:{version:Fi.CONNECT_VERSION,hash:Fi.CONNECT_GIT_HASH,host:S,network:m},...s};if(console.debug("Wormhole Connect event:",A),g)try{g(A)}catch(i){console.error("Error handling event:",i)}}}const z6=async()=>(await Promise.resolve().then(()=>require("./evm-DviFlx-R.js"))).default,K6=async()=>(await Promise.resolve().then(()=>require("./solana-UwIlWLao.js"))).default,W6=async()=>(await Promise.resolve().then(()=>require("./aptos-BVM1lgBZ.js"))).default,G6=async()=>(await Promise.resolve().then(()=>require("./sui-ZtBIYozr.js"))).default,V6="https://api.coingecko.com",Z6="https://pro-api.coingecko.com",Uc={Solana:"solana",Ethereum:"ethereum",Arbitrum:"ethereum",Optimism:"ethereum",Base:"ethereum",Scroll:"ethereum",Bsc:"binancecoin",Polygon:"matic-network",Avalanche:"avalanche-2",Fantom:"fantom",Moonbeam:"moonbeam",Klaytn:"kaia",Xlayer:"okb",Mantle:"mantle",Aptos:"aptos",Sui:"sui",Berachain:"berachain-bera",Unichain:"ethereum",Sonic:"sonic-3",Linea:"ethereum",Worldchain:"ethereum",Seievm:"sei",Mezo:"wrapped-bitcoin",Plume:"plume",Ink:"ethereum",HyperEVM:"hyperliquid",HyperCore:"usd-coin",CreditCoin:"wrapped-ctc",Monad:"monad",Fogo:"fogo",Moca:"moca",MegaETH:"ethereum"},X6={Bsc:"binance-smart-chain",Arbitrum:"arbitrum-one",Optimism:"optimistic-ethereum",Polygon:"polygon-pos",Klaytn:"klay-token",Xlayer:"x-layer",Worldchain:"world-chain",Seievm:"sei-v2",Mezo:"mezo",HyperEVM:"hyperevm",Plume:"plume-network",Ink:"ink",HyperCore:"hypercore",Monad:"monad",Fogo:"fogo",Moca:"moca"},gf=async(m,g)=>{const S=new Headers({...yt.coingecko?.apiKey?{"x-cg-pro-api-key":yt.coingecko.apiKey}:{}}),s=yt.coingecko?.customUrl?yt.coingecko.customUrl:yt.coingecko?.apiKey?Z6:V6;return fetch(`${s}${m}`,{signal:g?.abort?.signal,headers:S}).then(A=>A.json()).catch(A=>(console.error("Error fetching from Coingecko",A),null))},Y6=async(m,g)=>yt.network!=="Mainnet"?null:gf(`/api/v3/coins/${m.chain.toLowerCase()}/contract/${m.address.toString()}`,g),J6=async(m,g)=>{const S=new $r;if(yt.network!=="Mainnet")return S;const s={},A=[];for(const b of m)xe.isNative(b.address)?A.push(b):(s[b.chain]===void 0&&(s[b.chain]=[]),s[b.chain].push(b.address.toString()));const i=Object.keys(s).map(b=>{const p=s[b];return new Promise((o,v)=>{const y=p.join(","),x=X6[b]||b.toLowerCase();gf(`/api/v3/simple/token_price/${x}?contract_addresses=${y}&vs_currencies=usd`,g).then(M=>{M.error!==void 0||M.error_code!==void 0?v(M.error):o(Object.keys(M).map(_=>{try{const E=xe.Wormhole.tokenId(b,_);return M[_]?{tokenId:E,price:M[_].usd}:null}catch(E){return console.error("Coingecko error",E),null}}).filter(_=>_!==null))}).catch(v)})});A.length>0&&i.push(new Promise((b,p)=>{const o=[];for(const v of A){const y=Uc[v.chain];y?o.push(y):console.error(`Don't know a coingecko ID for native token for chain ${v.chain}`)}gf(`/api/v3/simple/price?ids=${o.join(",")}&vs_currencies=usd`,g).then(v=>b(A.map(y=>{const x=Uc[y.chain];if(x){const{usd:M}=v[x];return{tokenId:y,price:M}}else return null}).filter(y=>!!y))).catch(p)}));const l=(await Promise.allSettled(i)).map(b=>b.status==="fulfilled"?b.value:null).filter(b=>!!b).flat();for(const{tokenId:b,price:p}of l)S.add(b,p);return S},Q6=1,Lc=typeof localStorage<"u";class vr{chain;addressString;_address;constructor(g,S){this.chain=g,this.addressString=S}get address(){return xe.isNative(this.addressString)?this.addressString:(this._address||(this._address=xe.toNative(this.chain,this.addressString)),this._address)}static fromTokenTuple(g){return new vr(g[0],g[1])}}class fr extends vr{decimals;symbol;name;icon;tokenBridgeOriginalTokenId;coingeckoWebId;isBuiltin;isUnattested;constructor({chain:g,address:S,decimals:s,symbol:A,name:i,icon:l,tokenBridgeOriginalTokenId:b,coingeckoId:p,isUnattested:o}){super(g,S),this.decimals=s,this.symbol=A,this.name=i,this.icon=l,this.tokenBridgeOriginalTokenId=b,this.coingeckoWebId=p,this.isUnattested=o}get display(){return this.name?this.name:this.symbol!==""?this.symbol:this.shortAddress}get shortAddress(){const g=this.addressString;return`${g.substring(0,5)}...${g.substring(g.length-6)}`}get tuple(){return[this.chain,this.addressString]}get key(){return Li(this.tokenId)}get tokenId(){return{chain:this.chain,address:this.address}}get isNativeGasToken(){return xe.isNative(this.address)}get isTokenBridgeWrappedToken(){return!!this.tokenBridgeOriginalTokenId}get nativeChain(){return this.tokenBridgeOriginalTokenId?.chain||this.chain}equals(g){return vd(this,g)}toJson(){return{chain:this.chain,address:this.addressString,decimals:this.decimals,symbol:this.symbol,name:this.name??"",icon:this.icon?this.icon:"",tokenBridgeOriginalTokenId:this.tokenBridgeOriginalTokenId?dd(this.tokenBridgeOriginalTokenId):void 0,coingeckoWebId:this.coingeckoWebId}}static fromJson({chain:g,address:S,decimals:s,symbol:A,name:i,icon:l,tokenBridgeOriginalTokenId:b,coingeckoWebId:p}){return new fr({chain:g,address:S,decimals:s,symbol:A,name:i,icon:l===""?void 0:l,tokenBridgeOriginalTokenId:b?Gf(b):void 0,coingeckoId:p})}}class $r{lastUpdate;_localStorageKey;_mapping;size;constructor(){this.lastUpdate=new Date,this._mapping=new Map,this.size=0}add(g,S){this._mapping.has(g.chain)||this._mapping.set(g.chain,new Map),this._mapping.get(g.chain).set(Pr(g).toLowerCase(),S),this.lastUpdate=new Date,this.size+=1}get(g,S){if(typeof g=="string"&&typeof S=="string"&&xe.isChain(g))return this._mapping.get(g)?.get(S.toLowerCase());if(g instanceof vr)return this._mapping.get(g.chain)?.get(g.addressString.toLowerCase());if(xe.isTokenId(g))return this._mapping.get(g.chain)?.get(g.address.toString().toLowerCase());if(Wf(g))return this._mapping.get(g[0])?.get(g[1].toLowerCase());{const s=pd(g);return this._mapping.get(s.chain)?.get(Pr(s).toLowerCase())}}mustGet(g,S){const s=this.get(g,S);if(!s)throw new Error("Failed to get token");return s}getList(g){return g.map(S=>this.get(S)).filter(S=>S!==void 0)}getAllForChain(g){const S=this._mapping.get(g);return S?Array.from(S.values()):[]}getAll(){return Array.from(this._mapping.values()).flatMap(g=>Array.from(g.values()))}get chains(){return Array.from(this._mapping.keys())}merge(g){g.forEach(this.add)}clear(){this.lastUpdate=new Date,this._mapping=new Map,this.size=0}forEach(g){this._mapping.forEach((S,s)=>{S.forEach((A,i)=>{const l=new vr(s,i);g(l,A)})})}get empty(){return this.size===0}clone(){const g=new $r;return this.forEach((S,s)=>{g.add(S,s)}),g}}class Ci extends $r{add(g){if(g.tokenBridgeOriginalTokenId){const S=this.get(g.tokenBridgeOriginalTokenId);S&&(g.icon=S.icon,g.name=S.name,g.symbol=S.symbol)}super.add(g,g)}getGasToken(g){return g==="Celo"?this.findBySymbol("Celo","CELO"):g==="XRPLEVM"?this.findBySymbol("XRPLEVM","XRP"):this.get(g,"native")}findByAddressOrSymbol(g,S){const s=this.get(g,S);if(s)return s;const A=this.findBySymbol(g,S);if(A)return A}queryBySymbol(g,S){return this.getAllForChain(g).filter(s=>s.symbol.toLowerCase().startsWith(S.toLowerCase())||s.name?.toLowerCase().startsWith(S.toLowerCase()))}findBySymbol(g,S){const s=yt.ui?.tokenNameOverrides?.[g],A=S.toLowerCase();let i=this.getAllForChain(g).filter(l=>{const b=A===l.symbol.toLowerCase(),p=A===s?.[l.address.toString()]?.toLowerCase();return b||p});if(i.length>1&&(i=i.filter(l=>!l.isTokenBridgeWrappedToken)),i.length===1)return i[0];if(i.length>1){const l=i.find(b=>b.address==="native");if(l)return l;console.error(`Ambiguous token symbol: ${S}`)}}setLocalStorageKey(g){this._localStorageKey=g}async addFromTokenId(g){if(g.chain==="Sui"&&!Wc.isValidSuiType(g.address.toString()))throw new Error(`Not a valid Sui token address: ${g.address.toString()}`);if(xe.isUnattestedTokenId(g)){const M=this.get(g.originalTokenId);console.debug(`Token ${g} is unattested`);const _=new fr({chain:g.chain,address:xe.canonicalAddress(g),decimals:g.decimals,symbol:M?.symbol||"",name:M?.name,icon:M?.icon,isUnattested:!0});return this.add(_),_}const S=await wr(),s=S.getChain(g.chain),A=await s.getDecimals(g.address);let i={};try{i=await Y6(g)||{}}catch(M){console.error("Error fetching token metadata:",M)}let l=i?.symbol?.toUpperCase()||"",b=i?.name||"",p=i?.image?.large||null;const o=i?.web_slug;if(!l){const{getTokenMetadataFromRpc:M}=await Promise.resolve().then(()=>require("./tokens-DKt-90PV.js")),_=await M(g);_&&(console.info("Got metadata from RPC",_),l=_.symbol,b=_.name,p=_.icon)}let v,y;try{y=await s.getTokenBridge()}catch{}if(y&&await y.isWrappedAsset(g.address)&&(v=await y.getOriginalAsset(g.address),xe.UniversalAddress.instanceof(v.address)&&(v.address=await S.getTokenNativeAddress(v.chain,v.chain,v.address)),v)){const M=this.get(v);M&&M.icon&&(p=M.icon,l=M.symbol)}if(!v&&(!l||!p))try{const M=yt.routes.get("MonadBridgeExecutorRoute");if(M?.isSupportedChain(g.chain)){const _=new M.rc(S);if(_ instanceof Kd.MultiTokenNttExecutorRoute&&await _.isWrappedToken(g)){const E=await _.getOriginalToken(g),B=this.get(E);B&&(p=p??B.icon,l=l??B.symbol)}}}catch{}const x=new fr({chain:g.chain,address:xe.canonicalAddress(g),decimals:A,symbol:l,name:b,icon:p,tokenBridgeOriginalTokenId:v,coingeckoId:o});return this.add(x),x}persist(){if(Lc&&this._localStorageKey){const g={version:Q6,tokens:{}};this.forEach((s,A)=>{A.isUnattested||(g.tokens[Li(s)]=A.toJson())});const S=JSON.stringify(g);localStorage.setItem(this._localStorageKey,S)}}static load(g){if(Lc){const s=localStorage.getItem(g);if(s)try{const A=JSON.parse(s),i=new Ci;i.setLocalStorageKey(g);for(const[,l]of Object.entries(A.tokens)){const b=fr.fromJson(l);i.add(b)}return i}catch(A){console.error("Error parsing cached TokenCache",A)}}const S=new Ci;return S.setLocalStorageKey(g),S}}function e3(m,g,S){const s=Ci.load(S);for(const{tokenId:A,symbol:i,name:l,icon:b,decimals:p}of m){const o=new fr({chain:A.chain,address:A.address.toString(),decimals:p,symbol:i,name:l,icon:b});o.isBuiltin=!0,s.add(o)}for(const A in g)for(const i in g[A]){const l=g[A][i];for(const b in l){const p=s.get(A,i);if(p){const o=l[b];let v=xe.chainToPlatform(b)==="Evm"?18:8;v=Math.min(v,p.decimals);const y=new fr({chain:b,address:o,decimals:v,symbol:p.symbol,name:p.name,icon:p.icon,tokenBridgeOriginalTokenId:p});y.isBuiltin=!0,s.add(y)}}}return s.persist(),s}function Wf(m){return Array.isArray(m)&&m.length==2&&xe.isChain(m[0])}function dd(m){return[m.chain,Pr(m)]}function Gf(m){return vr.fromTokenTuple(m)}function Li(m,g){return JSON.stringify(typeof m=="string"?[m,g]:dd(m))}function pd(m){const g=JSON.parse(m);if(Wf(g))return Gf(g);throw new Error(`Invalid token key "${m}"; couldn't parse`)}function Pr(m){return m instanceof vr?m.addressString:m.address.toString()}function vd(m,g){return m.chain===g.chain&&m.addressString===g.addressString}const bd="insufficient_allowance",t3="swap_failed",r3="source_contract_paused",i3="destination_contract_paused",n3="unsupported_abi_version",xf="insufficient_gas",md="insufficient_funds",yd="amount_too_large",gd="amount_too_small",xd="user_rejected",wd="user_timeout",Md="unknown",_d="relay_failed",Ad="slippage_exceeded";var Ed=(m=>(m.SelectSrcToken="select.src.token",m.SelectSrcChain="select.src.chain",m.SelectDestToken="select.dest.token",m.SelectDestChain="select.dest.chain",m))(Ed||{});const Sd={Mainnet:{Arbitrum:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",Avalanche:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",Base:"0x4200000000000000000000000000000000000006",Bsc:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",Celo:"0x0000000000000000000000000000000000000000",Ethereum:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",Fantom:"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83",Klaytn:"0xe4f05A66Ec68B54A58B17c22107b02e0232cC817",Moonbeam:"0xAcc15dC74880C9944775448304B263D191c6077F",Optimism:"0x4200000000000000000000000000000000000006",Polygon:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",Mantle:"0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8",Scroll:"0x5300000000000000000000000000000000000004",Berachain:"0x6969696969696969696969696969696969696969",Unichain:"0x4200000000000000000000000000000000000006",Worldchain:"0x4200000000000000000000000000000000000006",Ink:"0x4200000000000000000000000000000000000006",Sonic:"0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38",Monad:"0x3bd359C1119dA7Da1D913D1C4D2B7c461115433A"},Testnet:{Avalanche:"0xd00ae08403B9bbb9124bB305C09058E32C39A48c",Bsc:"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd",Fantom:"0xf1277d1Ed8AD466beddF92ef448A132661956621",Klaytn:"0x0339d5Eb6D195Ba90B13ed1BCeAa97EbD198b106",Moonbeam:"0xD909178CC99d318e4D46e7E66a972955859670E1",Sepolia:"0xeef12A83EE5b7161D3873317c8E0E7B76e0B5D9c",ArbitrumSepolia:"0x980B62Da83eFf3D4576C647993b0c1D7faf17c73",BaseSepolia:"0x4200000000000000000000000000000000000006",OptimismSepolia:"0x4200000000000000000000000000000000000006",PolygonSepolia:"0x0000000000000000000000000000000000000000",Scroll:"0x5300000000000000000000000000000000000004",Linea:"0x0000000000000000000000000000000000000000",Berachain:"0x6969696969696969696969696969696969696969",Seievm:"0x3921eA6Cf927BE80211Bb57f19830700285b0AdA",Unichain:"0x4200000000000000000000000000000000000006",Worldchain:"0x4200000000000000000000000000000000000006",Ink:"0x4200000000000000000000000000000000000006",MonadTestnet:"0xFb8bf4c1CC7a94c73D209a149eA2AbEa852BC541",Mezo:"0x0000000000000000000000000000000000000000",Sonic:"0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38"},Devnet:{}},a3="So11111111111111111111111111111111111111112";function Vf(m,g){const S=xe.chainToPlatform(g);if(S==="Evm")return Sd[m]?.[g];if(S==="Solana")return a3;if(S==="Aptos")return"0x1::aptos_coin::AptosCoin";if(S==="Sui")return"0x2::sui::SUI"}function Bd(m,g,S){if(!m)return!1;const s=m.address.toString(),A=S.address.toString();if(A===s)return!0;if(g){const i=xe.isNative(m.address),l=s.toLowerCase()===g,b=A.toLowerCase()===g,p=xe.isNative(S.address);if(i&&b||l&&p)return!0}return!1}function f3(m){return m.length===22?m:`0x${m.slice(m.length-40,m.length)}`}function Bi(m,g=6){return m.slice(0,g)+"..."+m.slice(m.length-4,m.length)}function o3(m,g=6,S=4){const s=m.slice(0,g),A=m.slice(m.length-S,m.length);return`${s}...${A}`}function s3(m,g){return m?m==="Evm"?Bi(f3(g)):m==="Solana"?Bi(g,4):Bi(g):""}function Fd(m){const g=yt.tokens.getGasToken(m);if(!g)throw new Error(`gas token not found for ${m}`);return g}function Cd(m){const g=yt.ui?.tokenNameOverrides?.[m.chain];if(!g)return m.display;const S=m.addressString.toLowerCase();for(const[s,A]of Object.entries(g))if(s.toLowerCase()===S)return A;return m.display}function Dd(m){const g=yt.chains[m];return g?g.displayName:m}function Hc(m){const g=document.createElement("textarea");g.value=m,g.style.top="0",g.style.left="0",g.style.position="fixed",document.body.appendChild(g),g.focus(),g.select();try{return document.execCommand("copy"),!0}catch{return!1}finally{document.body.removeChild(g)}}function h3(m){return navigator.clipboard&&navigator.clipboard.writeText(m).then(function(){return!0},function(){return Hc(m)}),Hc(m)}function u3(m){return m.startsWith("0x")?m:`0x${m}`}function c3(m,g){return m==="Sui"?Wc.isValidTransactionDigest(g):m==="Sei"?xe.isHexString(u3(g),32):g.startsWith("0x")&&g.length===66?!0:g.length>70&&g.length<100}function l3(m){const g=Yf.useRef(void 0);return Yf.useEffect(()=>{g.current=m}),g.current}async function Rd(m){return new Promise(g=>setTimeout(g,m))}const Td=m=>typeof m>"u"?"":m===0?"$0":m>0&&m<.01?"<$0.01":Intl.NumberFormat("en-EN",{style:"currency",currency:"USD"}).format(m),Id=(m,g,S)=>{if(typeof g>"u"||!S)return;const s=typeof m=="function"?m(S):m;if(s)return typeof g=="number"?g*s:xe.whole(g)*s},d3=(m,g,S)=>Td(Id(m,g,S)),p3=m=>{if(m==null)return!0;for(const g in m)if(m.hasOwnProperty.call(m,g))return!1;return!0},dr=(m,g)=>{const S=new URL(m),s=S.pathname.replace(/\/+$/,""),A=g.replace(/^\/+/,"");return S.pathname=`${s}/${A}`,S.toString()},v3=(m,g)=>{const S=yt.chains[m];if(!S?.explorerUrl)return;const s=S.explorerUrl;switch(m){case"Sui":return dr(s,`coin/${g}`);case"Aptos":return dr(s,`${xe.isHexString(g)?"fungible_asset":"coin"}/${g}`);case"Fantom":case"Solana":case"Fogo":return`${s}address/${g}`;default:return dr(s,`token/${g}`)}},b3=(m,g)=>{const S=yt.chains[m];if(!S?.explorerUrl)return;const s=S.explorerUrl;return m==="Aptos"?dr(s,`txn/${g}`):dr(s,`tx/${g}`)},m3=(m,g)=>{const S=yt.chains[m];if(!S?.explorerUrl)return;const s=S.explorerUrl;return m==="Aptos"?dr(s,`account/${g}`):dr(s,`address/${g}`)},kd=(m,g)=>{if(!m.isTokenBridgeWrappedToken)return!1;const{nativeChain:S,symbol:s}=m;if(s==="USDC"||m.symbol==="tBTC"||m.symbol==="WMON"&&g==="Solana"||g==="Base"||g==="BaseSepolia")return!0;const{tokenBridgeOriginalTokenId:A}=m;if(A){const i=["Ethereum","Sepolia"];if(g==="Monad"&&i.includes(A.chain)||i.includes(g)&&A.chain==="Monad"){if(A.address==="native")return!0;const b=Vf(yt.network,A.chain);return!!b&&xe.isSameToken(A,xe.Wormhole.tokenId(A.chain,b))}}return S!=="Ethereum"&&["ETH","WETH","wstETH","USDT","USDC","USDC.e"].includes(s)},y3=m=>m>=2*6e4?`${Math.ceil(m/6e4)} min`:`${Math.ceil(m/1e3)} sec`,g3=m=>{if(m>864e5){const A=Math.floor(m/864e5);return`${A} ${A===1?"day":"days"} ago`}else if(m>36e5){const A=Math.floor(m/36e5);return`${A} ${A===1?"hour":"hours"} ago`}else if(m>6e4){const A=Math.floor(m/6e4);return`${A} ${A===1?"minute":"minutes"} ago`}else return"1 minute ago"},x3=m=>{if(m<60)return m===1?`${m} second`:`${m} seconds`;if(m<3600){const g=Math.floor(m/60);return g===1?`${g} minute`:`${g} minutes`}else{const g=Math.floor(m/3600);return g===1?`${g} hour`:`${g} hours`}},Pd=m=>m?m.endsWith("ExecutorRoute")||m==="BaseBridgeRoute":!1,w3=m=>JSON.stringify(m,(g,S)=>typeof S=="bigint"?S.toString():S),M3=/insufficient token allowance/im,_3=/insufficient lamports.*?(\d+).*?(\d+)/im,A3=/simulation failed:.*accountnotfound/i,E3=new RegExp("user rejected|rejected the request|rejected from user|user cancel|aborted by user|plugin closed|denied request signature|user denied|action_rejected|ethers-user-denied|approval denied","mi"),S3=new RegExp("AmountInTooSmall","m"),B3=/Simulation failed:.*InstructionError.*Custom.*6001/,F3=/insufficient.*(gas|fee|lamports|rent|intrinsic|settlement)/gi,C3=/insufficient (funds|balance)/gi,$c="Insufficient gas for this transfer. Please add more gas and try again",D3="Insufficient funds for this transfer. Please add more funds and try again";function nr(m,g){return g.test(m?.message)||g.test(m?.info?.error?.message)||g.test(m?.info?.error?.data?.message)}function R3(m,g,S){let s="Error with transfer, please try again",A=Md;if(m.message){if(m instanceof xe.RelayFailedError)s=m.message,A=_d;else if(g.route.includes("MayanSwapMONOCHAIN")&&nr(m,B3))s="Slippage exceeded. Please try again",A=Ad;else if(nr(m,M3))s="Error with transfer, please try again",A=bd;else if(m.name==="TransactionExpiredTimeoutError"||m.name==="TransactionExpiredBlockheightExceededError")s="Transfer timed out, please try again",A=wd;else if(nr(m,F3))s=$c,A=xf;else if(nr(m,C3))s=D3,A=md;else if(nr(m,E3))s="Wallet request declined. Transfer not started.",A=xd;else if(nr(m,S3))s="Amount is too small for the selected route",A=gd;else if(g.route.includes("CCTP")&&/burn.*exceed/i.test(m?.toString())){const{amount:l}=g;s=`Amount exceeds Circle limit${l!==void 0&&xe.whole(l)>1e6?" of 10,000,000":""}. Please reduce transfer amount.`,A=yd}else if(nr(m,A3)||nr(m,_3)){const i=S==="send"?g.fromChain:g.toChain;try{const l=Fd(i),b=Cd(l),p=Dd(i),o=p?` on ${p}`:"";s=`Insufficient ${b} for fees${o}. Please add more ${b} and try again`}catch{s=$c}A=xf}}return[s,{type:A,original:m}]}function Nd(m,g){m instanceof Error&&m.message.startsWith("No protocols registered for")||console.error(g?`${g}: ${m}`:m)}var gi={exports:{}},jc;function T3(){if(jc)return gi.exports;jc=1;function m(y,x){var M=x&&x.cache?x.cache:v,_=x&&x.serializer?x.serializer:p,E=x&&x.strategy?x.strategy:i;return E(y,{cache:M,serializer:_})}function g(y){return y==null||typeof y=="number"||typeof y=="boolean"}function S(y,x,M,_){var E=g(_)?_:M(_),B=x.get(E);return typeof B>"u"&&(B=y.call(this,_),x.set(E,B)),B}function s(y,x,M){var _=Array.prototype.slice.call(arguments,3),E=M(_),B=x.get(E);return typeof B>"u"&&(B=y.apply(this,_),x.set(E,B)),B}function A(y,x,M,_,E){return M.bind(x,y,_,E)}function i(y,x){var M=y.length===1?S:s;return A(y,this,M,x.cache.create(),x.serializer)}function l(y,x){var M=s;return A(y,this,M,x.cache.create(),x.serializer)}function b(y,x){var M=S;return A(y,this,M,x.cache.create(),x.serializer)}function p(){return JSON.stringify(arguments)}function o(){this.cache=Object.create(null)}o.prototype.has=function(y){return y in this.cache},o.prototype.get=function(y){return this.cache[y]},o.prototype.set=function(y,x){this.cache[y]=x};var v={create:function(){return new o}};return gi.exports=m,gi.exports.strategies={variadic:l,monadic:b},gi.exports}var I3=T3();const Od=Qe.getDefaultExportFromCjs(I3);class k3{constructor(g){this.TTLms=g}cache=new Map;pendingRequests=new Map;async requestWithCache(g,S){const s=Date.now(),A=this.cache.get(g);if(A&&s-A.timestamp<this.TTLms){if(console.debug("[Cache Debug] Cache HIT - using cached value"),A.isError)throw A.value;return A.value}let i=this.pendingRequests.get(g);return i?console.debug("[Cache Debug] Cache MISS - using pending request"):(console.debug("[Cache Debug] Cache MISS - initiating new request"),i=S().then(l=>(this.cache.set(g,{value:l,timestamp:Date.now(),isError:!1}),this.pendingRequests.delete(g),l)).catch(l=>{throw console.debug("[Cache Debug] Cache ERROR - storing error"),this.cache.set(g,{value:l,timestamp:Date.now(),isError:!0}),this.pendingRequests.delete(g),l}),this.pendingRequests.set(g,i)),i}}const Zf=["ManualNtt","AutomaticNtt","M0AutomaticRoute","NttExecutorRoute"],P3=m=>Zf.includes(m),qd=m=>{const g=yt.routes.get(m);if(!g)return;const S=g.rc.config;if(S)return m==="NttExecutorRoute"?S.ntt?.tokens:S.tokens},Ud=m=>{const g=Pr(m);for(const S of Zf){const s=qd(S);if(s)for(const A in s){const i=s[A];if(!i)continue;if(i.some(b=>b.chain===m.chain&&b.token===g))return!0}}return!1},N3=m=>{const g=[],S=Pr(m);for(const s of Zf){const A=qd(s);if(A)for(const i in A){const l=A[i];if(!l)continue;if(l.some(p=>p.chain===m.chain&&p.token===S)){for(const p of l)if(p.chain!==m.chain||p.token!==S){const o=yt.tokens.get(p.chain,p.token);o&&g.push(o)}return g}}}return g};class Ld{constructor(g){this.rc=g,this.IS_TOKEN_BRIDGE_ROUTE=["ManualTokenBridge","AutomaticTokenBridge","TokenBridgeExecutorRoute"].includes(g.meta.name),this.IS_MONAD_BRIDGE_ROUTE=["MonadBridgeManualRoute","MonadBridgeExecutorRoute"].includes(g.meta.name)}IS_TOKEN_BRIDGE_ROUTE=!1;IS_MONAD_BRIDGE_ROUTE=!1;tokenCache=new k3(1440*60*1e3);get AUTOMATIC_DEPOSIT(){return this.rc.IS_AUTOMATIC}get NATIVE_GAS_DROPOFF_SUPPORTED(){return this.rc.NATIVE_GAS_DROPOFF_SUPPORTED}async getV2ChainContext(g){const s=(await wr()).getPlatform(xe.chainToPlatform(g)).getChain(g);return{chain:g,context:s}}async isRouteSupported(g,S,s,A){if(s===A&&!this.rc.supportsSameChainSwaps?.(yt.network,s))return!1;const l=await this.getV2ChainContext(s),b=await this.getV2ChainContext(A),p=this.rc.supportedChains(yt.network),o=p.includes(l.chain),v=p.includes(b.chain);if(!o||!v)return!1;try{return!!(await this.supportedDestTokens(g,s,A)).find(x=>xe.isSameToken(x,S))}catch(y){return console.error("Error checking route support:",y),!1}}isSupportedChain(g){return this.rc.supportedChains(yt.network).includes(g)}async supportedDestTokens(g,S,s){if(!S||!s||!g)return[];const A=await this.getV2ChainContext(S),i=await this.getV2ChainContext(s);if(await this.isIlliquidDestToken(g,s))return[];const b=S===s,p=`supportedDestTokens-${g.address}-${S}-${s}`,o=async()=>{try{return await this.rc.supportedDestinationTokens(g.tokenId,A.context,i.context)}catch{return[]}},v=await this.tokenCache.requestWithCache(p,o),y=b?Vf(yt.network,i.chain)?.toLowerCase():void 0;return v.filter(M=>{const _=yt.tokens.get(M);return _&&kd(_,i.chain)?!1:b?!Bd(g,y,M):!0})}async getQuote(g,S,s,A,i,l,b,p){if(!A||!i||!S||!s)throw new Error("Malformed quote request");const o=await this.createRequest(S,s,A,i,b,p),v=await this.createRouteInstance(),y=await v.validate(o,{amount:xe.display(g),options:l});if(!y.valid)throw y.error;const x=await v.quote(o,y.params);return{routeInstance:v,quote:x,request:o}}async createRouteInstance(){const g=await wr();return new this.rc(g)}async createRequest(g,S,s,A,i,l){const b=(await this.getV2ChainContext(s)).context,p=(await this.getV2ChainContext(A)).context,o=await wr();return await gr.RouteTransferRequest.create(o,{source:g.tokenId,destination:S.tokenId,sender:i?xe.Wormhole.chainAddress(s,i):void 0,recipient:l?xe.Wormhole.chainAddress(A,l):void 0,sourceDecimals:g.decimals,destinationDecimals:S.decimals},b,p)}async send(g,S,s,A){const{quote:i,routeInstance:l,request:b}=g;if(!i.success)throw i.error;let p=await l.initiate(b,S,i,xe.Wormhole.chainAddress(s,A));if(p.state===xe.TransferState.SourceInitiated||p.state===xe.TransferState.SourceFinalized)return[l,p];let o=0;const v=5,y=1e3;for(;o<v;)try{for await(p of l.track(p,120*1e3))if(p.state>=xe.TransferState.SourceInitiated)return[l,p]}catch(x){console.error(`Error tracking transfer (attempt ${o+1} / ${v}):`,x);const M=y*Math.pow(2,o);await Rd(M),o++}throw new Error("Never got a SourceInitiated state in receipt")}async resumeIfManual(g){const S=await wr(),s=new this.rc(S);return xe.isManual(s)||xe.isFinalizable(s)?s.resume(g):null}async isIlliquidDestToken(g,S){if(this.IS_MONAD_BRIDGE_ROUTE&&g?.isTokenBridgeWrappedToken)return!0;if(this.IS_TOKEN_BRIDGE_ROUTE){if(Ud(g))return!0;const{symbol:A,nativeChain:i}=g;if(["ETH","WETH"].includes(A)&&i==="Ethereum"&&["Scroll","Xlayer","Mantle","Unichain"].includes(S))return!0}return!1}}function O3(m,g,S=6){if(g<=S)return m;const s=10n**BigInt(g-S),A=m%s;return m-A}function zc(m,g,S){let s=xe.units(m)*g/(S-g);return s=O3(s,m.decimals),xe.fromBaseUnits(s,m.decimals)}function Hd(m,g,S,s){if(!S||!g||!m||xe.units(g)===0n||S.chain===s?.chain)return;let i;if(typeof m=="string"){if(i=yt.routes.get(m),!i)return}else if(m instanceof Ld)i=m;else return;if(i.rc.meta.name.startsWith("MayanSwap")){const p=i.rc;if(p.getReferrerBps&&S&&s){const o={source:{id:S.tokenId||{chain:S.chain,address:S.address},symbol:S.symbol,decimals:S.decimals},destination:{id:s.tokenId||{chain:s.chain,address:s.address},symbol:s.symbol,decimals:s.decimals}},v=p.getReferrerBps(o);if(v>0)return zc(g,BigInt(v),10000n)}return}const l=i.rc.config;if(!l)return;let b=0n;if(Pd(i.rc.meta.name)){if(l.referrerFeeDbps!==void 0)b=l.referrerFeeDbps;else if(l.referrerFee?.feeDbps!==void 0)if(l.referrerFee.perTokenOverrides!==void 0&&S){const p=l.referrerFee.perTokenOverrides[S.chain]?.[S.addressString];p?.referrerFeeDbps!==void 0?b=p.referrerFeeDbps:b=l.referrerFee.feeDbps}else b=l.referrerFee.feeDbps;else if(l.referrerFee?.referrerFeeDbps!==void 0)if(l.referrerFee.tokenFeeOverrides&&S){const p=l.referrerFee.tokenFeeOverrides[yt.network]?.[S.chain]?.[S.addressString];p!==void 0?b=p:b=l.referrerFee.referrerFeeDbps}else b=l.referrerFee.referrerFeeDbps}if(b!==0n)return zc(g,b,100000n)}const q3=(m,g)=>{let S={name:"",eta:1/0},s={name:"",amountOut:0n};for(const A of m){const i=g[A];if(!i||!i.success)continue;if(i.eta!==void 0&&i.eta<S.eta&&(S={name:A,eta:i.eta}),yt.routes.get(A)?.AUTOMATIC_DEPOSIT){const b=BigInt(i.destinationToken.amount.amount);b>s.amountOut&&(s={name:A,amountOut:b})}}return{fastestRoute:S,cheapestRoute:s}};function $d(m){return new Date(m+3e4)}function U3(m){const g=Date.now();return m instanceof Date&&m.getTime()>g+5e3?m:$d(g)}const jd=[gr.AutomaticCCTPRoute,gr.CCTPRoute,gr.AutomaticTokenBridgeRoute,gr.TokenBridgeRoute,gr.TBTCRoute];class L3{preference;routes;quoteMetadataCache;constructor(g=jd){const S={},s=[];for(const A of g){const i=A.meta.name;if(i==="")throw new Error("Route has empty meta.name");if(i in S)throw new Error(`Route has duplicate meta.name: ${i}`);s.push(i),S[i]=new Ld(A)}this.routes=S,this.preference=s,this.quoteMetadataCache=new H3}get(g){return this.routes[g]}async forEach(g){return Promise.all(this.preference.map(S=>g(S,this.routes[S])))}async resumeFromTx(g){return new Promise((S,s)=>{const A=Object.keys(this.routes).length;let i=0;this.forEach((l,b)=>{b.resumeIfManual(g).then(p=>{p!==null?S({route:l,receipt:p}):i+=1}).catch(p=>{i+=1}).finally(()=>{i===A&&S(null)})})})}allSupportedChains(){const g=new Set;for(const S of this.preference)this.routes[S].rc.supportedChains(yt.network).forEach(i=>g.add(i));return Array.from(g)}async allSupportedDestTokens(g,S,s){const A=new Map;return await this.forEach(async(i,l)=>{try{const b=await l.supportedDestTokens(g,S,s);for(const p of b){const o=Li(p);xe.isUnattestedTokenId(p)?A.set(o,p):A.set(o,pd(o))}}catch(b){Nd(b)}}),[...A.values()]}async getQuotes(g,S){const s=await Promise.allSettled(g.map(i=>{const l=this.quoteMetadataCache.get(i,S);return l?.quote?l.quote:this.quoteMetadataCache.fetchQuote(i,S,this.get(i))})),A={};for(let i=0;i<g.length;i++){const l=g[i],b=s[i];b.status==="rejected"?A[l]={success:!1,error:b.reason}:A[l]=b.value}return A}isSameChainSwapSupported=Od(g=>Object.values(this.routes).some(s=>{const{supportsSameChainSwaps:A,supportedChains:i}=s.rc;return typeof A=="function"&&A(yt.network,g)&&i(yt.network).includes(g)}));async execute(g,S,s,A,i,l,b,p,o,v){const y=this.get(g),x={amount:s,sourceChain:A,sourceToken:S,destChain:l,destToken:o,nativeGas:v.nativeGas,sender:b,recipient:p};let M=this.quoteMetadataCache.get(g,x);return M||(M=await y.getQuote(s,S,o,A,l,v,b,p)),y.send(M,i,l,p)}}class H3{cache;pending;constructor(){this.cache={},this.pending={}}quoteParamsKey(g,S){return`${g}:${S.sourceChain}:${S.sourceToken.address.toString()}:${S.destChain}:${S.destToken.address.toString()}:${xe.units(S.amount)}:${S.nativeGas}:${S.recipient}:${S.sender}`}get(g,S){const s=this.quoteParamsKey(g,S),A=this.cache[s],i=A?.ttl()<=5e3;return!A||i?(delete this.cache[s],null):{quote:A.quote,request:A.request,routeInstance:A.routeInstance}}async fetchQuote(g,S,s){console.debug("Fetching quote using",g,S);const A=this.quoteParamsKey(g,S),i=this.pending[A];if(i)return new Promise((b,p)=>{i.push({resolve:b,reject:p})});let l=S.amount;if(yt.ui?.experimental?.feeOffsetting){const b=Hd(s,S.amount,S.sourceToken,S.destToken);b&&xe.units(b)>0n&&(l=xe.fromBaseUnits(xe.units(S.amount)+xe.units(b),S.amount.decimals))}return s.getQuote(l,S.sourceToken,S.destToken,S.sourceChain,S.destChain,{nativeGas:S.nativeGas},S.sender,S.recipient).then(({routeInstance:b,quote:p,request:o})=>{console.debug("\x1B[32mSuccessfully fetched quote using",g,p);const v=this.pending[A];for(const{resolve:y}of v)y(p);delete this.pending[A],p.success&&(p.expires=U3(p.expires)),this.cache[A]=new Kc(p,b,o)}).catch(b=>{console.debug("\x1B[31mFailed to fetch quote using",g,b);const p=this.pending[A];for(const{reject:o}of p)o(b);delete this.pending[A],this.cache[A]=new Kc({success:!1,error:b},{},{})}),new Promise((b,p)=>{this.pending[A]=[{resolve:b,reject:p}]})}nextExpiry(g,S){const s=g.map(A=>{const i=this.quoteParamsKey(A,S);if(this.cache[i])return this.cache[i].expires()}).filter(A=>A!==void 0).sort((A,i)=>A.valueOf()-i.valueOf());if(s.length>0)return s[0]}}class Kc{quote;timestamp;routeInstance;request;constructor(g,S,s){this.quote=g,this.routeInstance=S,this.request=s,this.timestamp=new Date}expires(){return this.quote.success?this.quote.expires??$d(this.timestamp.getTime()):new Date(this.timestamp.getTime()+12e4)}ttl(){return this.expires().getTime()-Date.now()}}function Xf(m={}){const g=yv(m.network||void 0||"Mainnet");if(!["Mainnet","Testnet","Devnet"].includes(g))throw new Error(`Invalid env "${g}": Use "Testnet", "Devnet", or "Mainnet"`);const S={MAINNET:cd,DEVNET:$6,TESTNET:ld}[g.toUpperCase()],s=bv(S.wrappedTokens,m.wrappedTokens),A=o=>m.cacheNamespace?`wormhole-connect:${m.cacheNamespace}:${o}`:`wormhole-connect:${o}`,i=e3([...S.tokens,...m.tokensConfig?Object.values(m.tokensConfig):[]],s,A(`token-cache:${g}`)),l=Zd[g.toUpperCase()],b=Object.assign({},l.rpcs,S.rpcs,m.rpcs);m.ui?.defaultInputs&&mv(m.ui.defaultInputs,S.chains,i);const p=yf(m.ui??{});return m.tokens&&m.tokens.length>0&&p.disableUserInputtedTokens===void 0&&(p.disableUserInputtedTokens=!0),{sdkConfig:l,network:g,isMainnet:g==="Mainnet",rpcs:b,evmIndexers:m.evmIndexers,mayanApi:"https://explorer-api.mayan.finance",lifiExplorerUrl:"https://li.quest",wormholeApi:{Mainnet:"https://api.wormholescan.io/",Testnet:"https://api.testnet.wormholescan.io/",Devnet:""}[g],wormholeRpcHosts:{Mainnet:["https://wormhole-v2-mainnet-api.mcf.rocks","https://wormhole-v2-mainnet-api.chainlayer.network","https://wormhole-v2-mainnet-api.staking.fund"],Testnet:["https://guardian.testnet.xlabs.xyz","https://guardian-01.testnet.xlabs.xyz","https://guardian-02.testnet.xlabs.xyz"],Devnet:["http://localhost:7071"]}[g],coingecko:m.coingecko,triggerEvent:j6(g,m.eventHandler),validateTransfer:m.validateTransferHandler,isChainSupportedHandler:m.isChainSupportedHandler,isRouteSupportedHandler:m.isRouteSupportedHandler,isTokenSupportedHandler:m.isTokenSupportedHandler,filterRoutes:m.filterRoutes,chains:S.chains,chainsArr:Object.values(S.chains).filter(o=>m.chains?m.chains.includes(o.sdkName):!0).sort((o,v)=>{const y=Fi.CHAIN_ORDER.indexOf(o.sdkName),x=Fi.CHAIN_ORDER.indexOf(v.sdkName);return y>=0&&x>=0?y-x:y===-1?1:x===-1?-1:0}),tokens:i,tokenWhitelist:m.tokens,routes:new L3(m.routes),ui:yf({...m.ui}),cacheKey:A,guardianSet:S.guardianSet,transactionSettings:m?.transactionSettings||{}}}const yt=Xf();async function wr(){return yt._v2Wormhole||(yt._v2Wormhole=await $3()),yt._v2Wormhole}async function zd(){delete yt._v2Wormhole}async function $3(){const m={chains:{}};for(const g in yt.chains){const S=g,s=yt.rpcs[S],A={};for(const i of yt.tokens.getAllForChain(S)){const l={key:i.key,chain:S,symbol:i.symbol,address:i.address.toString(),decimals:i.decimals};A[i.address.toString()]=l}m.chains[S]={rpc:s,tokenMap:A}}return await vv(yt.network,[z6,K6,W6,G6],m)}function j3(m={}){const g=Xf(m);zd();for(const S in g)yt[S]=g[S];typeof window<"u"&&(window._connectConfig=yt)}exports.DEFAULT_ROUTES=jd;exports.ERR_AMOUNT_TOO_LARGE=yd;exports.ERR_AMOUNT_TOO_SMALL=gd;exports.ERR_DESTINATION_CONTRACT_PAUSED=i3;exports.ERR_INSUFFICIENT_ALLOWANCE=bd;exports.ERR_INSUFFICIENT_FUNDS=md;exports.ERR_INSUFFICIENT_GAS=xf;exports.ERR_NOT_ENOUGH_CAPACITY=t3;exports.ERR_RELAY_FAILED=_d;exports.ERR_SLIPPAGE_EXCEEDED=Ad;exports.ERR_SOURCE_CONTRACT_PAUSED=r3;exports.ERR_TIMEOUT=wd;exports.ERR_UNKNOWN=Md;exports.ERR_UNSUPPORTED_ABI_VERSION=n3;exports.ERR_USER_REJECTED=xd;exports.MAINNET=cd;exports.TESTNET=ld;exports.Token=fr;exports.TokenIcon=ge;exports.TokenMapping=$r;exports.UserActions=Ed;exports.WETH_CONTRACTS=Sd;exports.buildConfig=Xf;exports.calculateFeeOffset=Hd;exports.calculateUSDPrice=d3;exports.calculateUSDPriceRaw=Id;exports.chainDisplayName=Dd;exports.clearWormholeContextV2=zd;exports.config=yt;exports.copyTextToClipboard=h3;exports.displayWalletAddress=s3;exports.fetchTokenPrices=J6;exports.formatDuration=x3;exports.getBestRoutes=q3;exports.getGasToken=Fd;exports.getNttTokenGroup=N3;exports.getTokenDisplaySymbolByTokenAddress=Cd;exports.getTokenExplorerUrl=v3;exports.getTransactionExplorerUrl=b3;exports.getUSDFormat=Td;exports.getWalletExplorerUrl=m3;exports.getWormholeContextV2=wr;exports.getWrappedNativeToken=Vf;exports.interpretTransferError=R3;exports.isEmptyObject=p3;exports.isExecutorRoute=Pd;exports.isFrankensteinToken=kd;exports.isNttRoute=P3;exports.isNttToken=Ud;exports.isSameToken=vd;exports.isTokenTuple=Wf;exports.isValidTxId=c3;exports.maybeLogSdkError=Nd;exports.memoize=Od;exports.millisToHumanString=y3;exports.millisToRelativeTime=g3;exports.nacl2=Kf;exports.require$$2=Er;exports.requireCallBind=sl;exports.requireCallBound=Tf;exports.requireDefineDataProperty=fl;exports.requireElliptic=Oi;exports.requireEndOfStream=Di;exports.requireEsObjectAtoms=Ef;exports.requireEvents=Ar;exports.requireGetIntrinsic=Rf;exports.requireGetProto=Df;exports.requireGopd=Fr;exports.requireHasPropertyDescriptors=ol;exports.requireHasown=al;exports.requireInherits_browser=dt;exports.requireIsTypedArray=cl;exports.requireNaclFast=Yl;exports.requirePipeline=Jc;exports.requireSha2=sd;exports.requireShams=hl;exports.requireShams$1=Sf;exports.requireStreamBrowserify=Ri;exports.requireType=Br;exports.requireUtils=mr;exports.requireWhichTypedArray=ul;exports.require_stream_duplex=pr;exports.require_stream_passthrough=Yc;exports.require_stream_readable=Mf;exports.require_stream_transform=_f;exports.require_stream_writable=wf;exports.setConfig=j3;exports.shouldFilterSameChainToken=Bd;exports.sleep=Rd;exports.stringifyWithBigInt=w3;exports.tokenIdFromTuple=Gf;exports.tokenKey=Li;exports.trimAddress=Bi;exports.trimTxHash=o3;exports.types=t6;exports.usePrevious=l3;
|