@wormhole-foundation/wormhole-connect 3.0.0 → 3.0.1-beta.1-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/assets/{add-DcSO6g7v.js → add-Cy39EVaY.js} +1 -1
- package/dist/assets/{all-wallets-DWzxa3vS.js → all-wallets-BG4OMn19.js} +1 -1
- package/dist/assets/{app-store-6phYCHjG.js → app-store-B2VJcnKc.js} +1 -1
- package/dist/assets/{apple-DWWnLevU.js → apple-6OWWifFn.js} +1 -1
- package/dist/assets/{aptos-DkSiRwPH.js → aptos-BuLH7jck.js} +3 -3
- package/dist/assets/{aptos-63ExGocu.js → aptos-gb8snog6.js} +1 -1
- package/dist/assets/{arrow-bottom-BAP07o8i.js → arrow-bottom-YGKzRes5.js} +1 -1
- package/dist/assets/{arrow-bottom-circle-DsrpzBMS.js → arrow-bottom-circle-BH-P4D_L.js} +1 -1
- package/dist/assets/{arrow-left-DUwketVX.js → arrow-left-DF2t0i5J.js} +1 -1
- package/dist/assets/{arrow-right-NA0HPVOL.js → arrow-right-CP40LqnJ.js} +1 -1
- package/dist/assets/{arrow-top-EZdWHthM.js → arrow-top-DnKSFz-5.js} +1 -1
- package/dist/assets/{bank-u2fFSB-h.js → bank-BpG6sNAE.js} +1 -1
- package/dist/assets/{basic-BZbF5gyr.js → basic-CLnavz_q.js} +1 -1
- package/dist/assets/{blake2b-Bb1VZYtg.js → blake2b-B2b685Yu.js} +1 -1
- package/dist/assets/{browser-clrim_u1.js → browser-BhlgRcS6.js} +1 -1
- package/dist/assets/{card-7RD9NrX1.js → card-BTep0Fm_.js} +1 -1
- package/dist/assets/{ccip-CpYYPW6X.js → ccip-By49zU3M.js} +1 -1
- package/dist/assets/{chain-DF9mIQM9.js → chain-Du7paeNG.js} +1 -1
- package/dist/assets/{checkmark-BNiNaYKO.js → checkmark-UEyfqUU3.js} +1 -1
- package/dist/assets/{checkmark-bold-DIgBXK3A.js → checkmark-bold-DMLl2gC5.js} +1 -1
- package/dist/assets/{chevron-bottom-lLKkTFta.js → chevron-bottom-CPv_izmZ.js} +1 -1
- package/dist/assets/{chevron-left-7fy1dk8e.js → chevron-left-0a7IeWd5.js} +1 -1
- package/dist/assets/{chevron-right-DN4RsCT_.js → chevron-right-B-0wsh8g.js} +1 -1
- package/dist/assets/{chevron-top-CxEvK7Z7.js → chevron-top-BHFncmmu.js} +1 -1
- package/dist/assets/{chrome-store-C_EP1Dya.js → chrome-store-BIaI9-ba.js} +1 -1
- package/dist/assets/{chunk-KJH4KKG6-B7DCZZVY.js → chunk-KJH4KKG6-Po5MChR6.js} +1 -1
- package/dist/assets/{clock-DJtk2vKP.js → clock-BQdD9J7H.js} +1 -1
- package/dist/assets/{close-DhVxMT3P.js → close-Cjok36co.js} +1 -1
- package/dist/assets/{coinPlaceholder-CmJrU68z.js → coinPlaceholder-CneTHrCz.js} +1 -1
- package/dist/assets/{compass-DDACJ8hx.js → compass-Dit7B215.js} +1 -1
- package/dist/assets/{contract-bGGxC9_m.js → contract-BhySpM-Z.js} +1 -1
- package/dist/assets/{copy-CyDvDXaX.js → copy-JvNImG5R.js} +1 -1
- package/dist/assets/{create-CbRd6EbF.js → create-gkOVonha.js} +1 -1
- package/dist/assets/{cursor-DMi-8XQe.js → cursor-CSwolbdC.js} +1 -1
- package/dist/assets/{cursor-transparent-CZoHZhIC.js → cursor-transparent-DQ2bEHaM.js} +1 -1
- package/dist/assets/{desktop-ZKhBfFcs.js → desktop-F3wMUZcL.js} +1 -1
- package/dist/assets/{disconnect-D6_W2NeZ.js → disconnect-vvd6SXmG.js} +1 -1
- package/dist/assets/{discord-CNw9YLkF.js → discord-mwjbbdll.js} +1 -1
- package/dist/assets/{etherscan-ZR8F73yU.js → etherscan-ZpIOVA81.js} +1 -1
- package/dist/assets/{evm-DwqzhXfk.js → evm-CWAxZ2a7.js} +3 -3
- package/dist/assets/{evm-CaU1lKeB.js → evm-fcQsoqVd.js} +4 -4
- package/dist/assets/{exclamation-triangle-es13TDGx.js → exclamation-triangle-CrFNsvqc.js} +1 -1
- package/dist/assets/{extension-CdAdgyKr.js → extension-C_zCCj6H.js} +1 -1
- package/dist/assets/{external-link-BX1h33YE.js → external-link-B0LEq1D3.js} +1 -1
- package/dist/assets/{facebook-Jhm06hzF.js → facebook-B_HaXZVY.js} +1 -1
- package/dist/assets/{farcaster-DqQ_p1hK.js → farcaster-C9d4q5--.js} +1 -1
- package/dist/assets/{filters-tJXH7Nb1.js → filters-Coi2MlO2.js} +1 -1
- package/dist/assets/{github-Ct6wtKmx.js → github-DiDkJ9-4.js} +1 -1
- package/dist/assets/{google-B0PPXdke.js → google-BHKYD7dA.js} +1 -1
- package/dist/assets/{help-circle-CZWvsEZP.js → help-circle-lf3f_u3Q.js} +1 -1
- package/dist/assets/{id-BvW00BCn.js → id-BoAkobNw.js} +1 -1
- package/dist/assets/{image-C24xCI2p.js → image-C9_T15rA.js} +1 -1
- package/dist/assets/{index-CKPf-3Vo.js → index--d0JCrsI.js} +1 -1
- package/dist/assets/{index-C0-WLpMA.js → index-BE55BSK7.js} +1 -1
- package/dist/assets/{index-Cu0b-jgK.js → index-BJYqkXUw.js} +1 -1
- package/dist/assets/{index-C_YTupmk.js → index-BYTZG2bF.js} +1 -1
- package/dist/assets/{index-CuKiKQIt.js → index-BZCSByFC.js} +3 -3
- package/dist/assets/{index-CVqQ68io.js → index-BedU_k3i.js} +1 -1
- package/dist/assets/{index-BTkoFKAW.js → index-BgLBca6k.js} +1 -1
- package/dist/assets/{index-DynC8vQ4.js → index-BjvqCh5g.js} +1 -1
- package/dist/assets/{index-BqLA4xTj.js → index-BpI-Jtyb.js} +3 -3
- package/dist/assets/{index-GmuqTVr0.js → index-Breet2G4.js} +1 -1
- package/dist/assets/{index-BUtdFAj3.js → index-Bx8vjRmV.js} +1 -1
- package/dist/assets/{index-DA4wR-ie.js → index-DB7g9m_R.js} +1 -1
- package/dist/assets/{index-DKdokzug.js → index-DMWfYwZZ.js} +1 -1
- package/dist/assets/{index-COZ2cSR6.js → index-DSTd1tRp.js} +1 -1
- package/dist/assets/{index-CVqXQiSE.js → index-DZ96gAj4.js} +1 -1
- package/dist/assets/{index-CYFq9U58.js → index-TYicGq2L.js} +1 -1
- package/dist/assets/index-Z3Xir6L3.js +1 -0
- package/dist/assets/{index-DC3x_AFd.js → index-kF0xEQ0E.js} +1 -1
- package/dist/assets/{index-CCOXtJ1P.js → index-zEIfo2_n.js} +1 -1
- package/dist/assets/index.es-3Tq6bjFW.js +47 -0
- package/dist/assets/index.es-CBqWEk7T.js +15 -0
- package/dist/assets/{info-SvuGOfi5.js → info-C0I2HHbp.js} +1 -1
- package/dist/assets/{info-circle-84iqM8-Q.js → info-circle-BJmxBusI.js} +1 -1
- package/dist/assets/{lightbulb-DGPyF6jt.js → lightbulb-Chfw09TV.js} +1 -1
- package/dist/assets/{mail-OnqfCeMQ.js → mail-BGqa051c.js} +1 -1
- package/dist/assets/{mobile-MUTbclBT.js → mobile-DkPjbMNa.js} +1 -1
- package/dist/assets/{more-D7xvB08n.js → more-f7FKhsyw.js} +1 -1
- package/dist/assets/{network-placeholder-B3oNxx7m.js → network-placeholder-DyyxIB08.js} +1 -1
- package/dist/assets/{nftPlaceholder-BpspzVAZ.js → nftPlaceholder-CfDPimUz.js} +1 -1
- package/dist/assets/{off-CKJS0rlt.js → off-BvnUT7bh.js} +1 -1
- package/dist/assets/{play-store-DPdM8tTb.js → play-store-Dl8Di4Xz.js} +1 -1
- package/dist/assets/{plus-BEacG4PU.js → plus-Dtc5pm0q.js} +1 -1
- package/dist/assets/{provider-jsonrpc-DTnJKzTS.js → provider-jsonrpc-CG-x8-V6.js} +1 -1
- package/dist/assets/{qr-code-D5Z-jGKj.js → qr-code-b5m8lMyQ.js} +1 -1
- package/dist/assets/{recycle-horizontal-Cv9AatSG.js → recycle-horizontal-DztIZMpd.js} +1 -1
- package/dist/assets/{refresh-D3McR5aq.js → refresh-Z55s9i8s.js} +1 -1
- package/dist/assets/{reown-logo-LTh9tOQw.js → reown-logo-BVpI-nfV.js} +1 -1
- package/dist/assets/{search-BbBy9kw3.js → search-CjKBf0db.js} +1 -1
- package/dist/assets/{secp256k1-BmFL2ykZ.js → secp256k1-BHTD1Qmp.js} +1 -1
- package/dist/assets/{secp256k1-Dzt1ocCq.js → secp256k1-CCS9UBYD.js} +1 -1
- package/dist/assets/{send-B86sPReU.js → send-DRsIh8XD.js} +1 -1
- package/dist/assets/signer-BRan8q4C.js +2 -0
- package/dist/assets/solana-B3bc0p0T.js +2 -0
- package/dist/assets/{solana-BqDLZw3p.js → solana-D0M1N7L4.js} +9 -9
- package/dist/assets/solanaEmbed.esm-Mnq6o_qa.js +10 -0
- package/dist/assets/{sui-Pc10JTxL.js → sui-CXoaI0gx.js} +2 -2
- package/dist/assets/{sui-DXg2Lhyt.js → sui-DXdm7DBB.js} +4 -4
- package/dist/assets/{swapHorizontal-Dhmacw5x.js → swapHorizontal-COY_WODc.js} +1 -1
- package/dist/assets/{swapHorizontalBold-CDIQPrQ8.js → swapHorizontalBold-C0JXN9CW.js} +1 -1
- package/dist/assets/{swapHorizontalMedium-DylShk_S.js → swapHorizontalMedium-DH34hVvb.js} +1 -1
- package/dist/assets/{swapHorizontalRoundedBold-CfplGW6w.js → swapHorizontalRoundedBold-Cbu2lR_U.js} +1 -1
- package/dist/assets/{swapVertical-DrDE8l8C.js → swapVertical-CjpRMkF_.js} +1 -1
- package/dist/assets/{telegram-DbwUz_vy.js → telegram-DxmYoEg_.js} +1 -1
- package/dist/assets/{three-dots-B8-Bf1M-.js → three-dots-GsCsg39y.js} +1 -1
- package/dist/assets/{tokens-BjeNFBPV.js → tokens-DNQKjj3l.js} +2 -2
- package/dist/assets/{twitch-CSNqjiLg.js → twitch-LH0w9yHE.js} +1 -1
- package/dist/assets/{twitterIcon-Bja28Sjm.js → twitterIcon-Ci6YQIIR.js} +1 -1
- package/dist/assets/{verify-BeTF48Me.js → verify-CLWJXQKG.js} +1 -1
- package/dist/assets/{verify-filled-CtyAqLP0.js → verify-filled-Bgbn2dT_.js} +1 -1
- package/dist/assets/{w3m-modal-CPF3wa2e.js → w3m-modal-BR4v9o5N.js} +1 -1
- package/dist/assets/{wallet-BBddJ-Oq.js → wallet-Dy9a13FP.js} +1 -1
- package/dist/assets/{wallet-placeholder-CNd4KccY.js → wallet-placeholder-BlMcAG8z.js} +1 -1
- package/dist/assets/{walletconnect-ayJrSmrJ.js → walletconnect-BmSWYy7N.js} +1 -1
- package/dist/assets/{warning-circle-BGHnveRG.js → warning-circle-DUSLmVwm.js} +1 -1
- package/dist/assets/{x-B520PEWg.js → x-D-BfG-2C.js} +1 -1
- package/dist/main.js +79 -79
- package/dist/src/utils/index.d.ts +1 -1
- package/dist/src/utils/index.d.ts.map +1 -1
- package/dist/src/views/v2/Bridge/Routes/index.d.ts.map +1 -1
- package/dist/src/views/v2/Redeem/TransactionDetails/index.d.ts.map +1 -1
- package/dist/src/views/v2/TxHistory/Item/index.d.ts.map +1 -1
- package/lib/{add-CR5Ztf9K.mjs → add-B42z-BMK.mjs} +1 -1
- package/lib/{add-DsQYu8-3.js → add-DjQ9ptJ3.js} +1 -1
- package/lib/{all-wallets-DjH7e8Le.js → all-wallets-CTXkmZGh.js} +1 -1
- package/lib/{all-wallets-DuQYa3_A.mjs → all-wallets-DafV-6aS.mjs} +1 -1
- package/lib/{app-store-BxXQ176e.js → app-store-CEiGuBPg.js} +1 -1
- package/lib/{app-store-BDd6cFgE.mjs → app-store-Cl2NeyfU.mjs} +1 -1
- package/lib/{apple-CAgvMnTl.mjs → apple-Bgd40Qpf.mjs} +1 -1
- package/lib/{apple-Djo4pf9S.js → apple-I35UUnyy.js} +1 -1
- package/lib/{aptos-CkGw1Mfc.mjs → aptos-CFxhkz1T.mjs} +1 -1
- package/lib/{aptos-BSB6qX7S.js → aptos-Cwu1YPJ4.js} +1 -1
- package/lib/{arrow-bottom-D9foyHjG.js → arrow-bottom-ChKqsjAW.js} +1 -1
- package/lib/{arrow-bottom-circle-DM0xE-Kv.js → arrow-bottom-circle-CZ_7PXrz.js} +1 -1
- package/lib/{arrow-bottom-circle-BjCfUqTl.mjs → arrow-bottom-circle-CrW7hvKb.mjs} +1 -1
- package/lib/{arrow-bottom-U8uSFPEG.mjs → arrow-bottom-oM7dsIav.mjs} +1 -1
- package/lib/{arrow-left-CvpUHKKM.mjs → arrow-left-BnsvMZrw.mjs} +1 -1
- package/lib/{arrow-left-D_2byrHa.js → arrow-left-Bsuqh6ly.js} +1 -1
- package/lib/{arrow-right-Dz6L1I_M.js → arrow-right-BnOX1FPQ.js} +1 -1
- package/lib/{arrow-right-Cngz1-ce.mjs → arrow-right-DCVdKrqV.mjs} +1 -1
- package/lib/{arrow-top-C_hqOn2K.js → arrow-top-CGNi9Abs.js} +1 -1
- package/lib/{arrow-top-CoJfLN99.mjs → arrow-top-HQD35uzA.mjs} +1 -1
- package/lib/{bank-CF44-N3R.mjs → bank-5_XGvsWz.mjs} +1 -1
- package/lib/{bank-DCEhbelz.js → bank-CC-gMFj5.js} +1 -1
- package/lib/{basic-DFvA-W2I.js → basic-Cg6_7ml5.js} +1 -1
- package/lib/{basic-zSaFlloC.mjs → basic-kfkYJmqS.mjs} +2 -2
- package/lib/{browser-CZB6pBHh.mjs → browser-CnMcQaL7.mjs} +1 -1
- package/lib/{browser-BmnrqP_d.js → browser-QU3oDASy.js} +1 -1
- package/lib/{card-CDV4C5Yo.mjs → card-2RHw5YuR.mjs} +1 -1
- package/lib/{card-CcJnzKXd.js → card-Drhs2ElR.js} +1 -1
- package/lib/{ccip-DNxNSRd4.js → ccip-B-6LnaS-.js} +1 -1
- package/lib/{ccip-C3r5a63m.mjs → ccip-HRN5GU9R.mjs} +1 -1
- package/lib/{checkmark-5PyusBI3.js → checkmark-DBiIELPX.js} +1 -1
- package/lib/{checkmark-Bjj5gfFz.mjs → checkmark-DzamL7X4.mjs} +1 -1
- package/lib/{checkmark-bold-dOE8wbJm.mjs → checkmark-bold-Bj1aj7It.mjs} +1 -1
- package/lib/{checkmark-bold-NRwRKH0S.js → checkmark-bold-BtLa1z0X.js} +1 -1
- package/lib/{chevron-bottom-Uo73BZVA.js → chevron-bottom-BoXMZSSJ.js} +1 -1
- package/lib/{chevron-bottom-DwMHk5_9.mjs → chevron-bottom-BwEoAp0U.mjs} +1 -1
- package/lib/{chevron-left-qMKjlzUK.js → chevron-left-C8qlvot4.js} +1 -1
- package/lib/{chevron-left-DFZlw99v.mjs → chevron-left-Cd53L2Rd.mjs} +1 -1
- package/lib/{chevron-right-Ca1KQVa4.js → chevron-right-BKR2Cj8x.js} +1 -1
- package/lib/{chevron-right-CsJHgvgE.mjs → chevron-right-BjnbXBQh.mjs} +1 -1
- package/lib/{chevron-top-CQgrgMDC.js → chevron-top-C1-UVQzc.js} +1 -1
- package/lib/{chevron-top-DmxacwcX.mjs → chevron-top-DZM0Kk5N.mjs} +1 -1
- package/lib/{chrome-store-B-3SO4tn.mjs → chrome-store-Be16ARhh.mjs} +1 -1
- package/lib/{chrome-store-j17yBO59.js → chrome-store-DEpEGVnh.js} +1 -1
- package/lib/{clock-j5OYPG9G.js → clock-2d6ryT3H.js} +1 -1
- package/lib/{clock-DND917Zx.mjs → clock-lGyym1Yu.mjs} +1 -1
- package/lib/{close-D5eQIZeo.js → close-B-KS6tMf.js} +1 -1
- package/lib/{close-BnzlOwgC.mjs → close-Bd0ixtrI.mjs} +1 -1
- package/lib/{coinPlaceholder-DZB3lmBK.js → coinPlaceholder-1F-4zLUF.js} +1 -1
- package/lib/{coinPlaceholder-5MD4FxJz.mjs → coinPlaceholder-CM171HV_.mjs} +1 -1
- package/lib/{compass-BFGiiRyj.mjs → compass-BC4EBgBf.mjs} +1 -1
- package/lib/{compass-Hnnvqf4W.js → compass-BtYGtp4s.js} +1 -1
- package/lib/{constants-DlMk_6zA.mjs → constants-CbX2Dhdb.mjs} +4 -4
- package/lib/constants-D2XMo5x9.js +1 -0
- package/lib/{copy-_cD0YCcN.mjs → copy-CBZyjKhN.mjs} +1 -1
- package/lib/{copy-BG1v_IT3.js → copy-YhaE0x9J.js} +1 -1
- package/lib/{cursor-4OCaNc3A.js → cursor-DbW8CM2r.js} +1 -1
- package/lib/{cursor-D51EWHtw.mjs → cursor-HObwislP.mjs} +1 -1
- package/lib/{cursor-transparent-D4G8CiJu.js → cursor-transparent-D8qt_JkJ.js} +1 -1
- package/lib/{cursor-transparent-BbRm_WoL.mjs → cursor-transparent-DRSuTF8F.mjs} +1 -1
- package/lib/{desktop-_jVvy3G9.mjs → desktop-BXB88_hI.mjs} +1 -1
- package/lib/{desktop-BPV4Jq7C.js → desktop-DPSb6pT6.js} +1 -1
- package/lib/{disconnect-Dp0kUWeF.mjs → disconnect-DQlW_0l3.mjs} +1 -1
- package/lib/{disconnect-BRh7LOf_.js → disconnect-voPLjD1W.js} +1 -1
- package/lib/{discord-DfkQh97Z.js → discord-ZKqi5hgs.js} +1 -1
- package/lib/{discord-DVlxZDzX.mjs → discord-rENS1KkQ.mjs} +1 -1
- package/lib/{etherscan-CVTkTQkY.mjs → etherscan-CQI3NP6J.mjs} +1 -1
- package/lib/{etherscan-BYTtEWXg.js → etherscan-DuY447FG.js} +1 -1
- package/lib/{evm-A_PshNGs.mjs → evm-B2lMpZxw.mjs} +5 -4
- package/lib/{evm-AmBHj3pD.js → evm-G8FJAICS.js} +3 -3
- package/lib/{exclamation-triangle-CqvJcLBM.mjs → exclamation-triangle-D_u6lS5N.mjs} +1 -1
- package/lib/{exclamation-triangle-CW2RfEyP.js → exclamation-triangle-zkHXR2rM.js} +1 -1
- package/lib/{extension-DXI0EvM-.mjs → extension-ClXThzlK.mjs} +1 -1
- package/lib/{extension-DJMyrtMq.js → extension-DG4qfZ6E.js} +1 -1
- package/lib/{external-link-BWqola9w.mjs → external-link-DMigdm5_.mjs} +1 -1
- package/lib/{external-link-BwuF5S4F.js → external-link-DzFTOSFi.js} +1 -1
- package/lib/{facebook-CL4jfLuQ.mjs → facebook-CXPHu-CF.mjs} +1 -1
- package/lib/{facebook-C_UUBb6g.js → facebook-DZcyCqTR.js} +1 -1
- package/lib/{farcaster-CzKUflnu.mjs → farcaster-3fnaNorD.mjs} +1 -1
- package/lib/{farcaster-BIoquIGI.js → farcaster-DGzbpSpo.js} +1 -1
- package/lib/{filters-olRHEzRz.mjs → filters-DOCA08Tb.mjs} +1 -1
- package/lib/{filters-BW7K6cO8.js → filters-GdndcLvS.js} +1 -1
- package/lib/{github-BYG4fdMZ.mjs → github-Bt6o8gEP.mjs} +1 -1
- package/lib/{github-Cdb2MSS8.js → github-CS10Dwev.js} +1 -1
- package/lib/{google-DyaGudk1.js → google-C3HmxVw4.js} +1 -1
- package/lib/{google-Cj5iFHjT.mjs → google-oL8KgGKh.mjs} +1 -1
- package/lib/{help-circle-Y9FUcqDe.mjs → help-circle-Bwas4fUE.mjs} +1 -1
- package/lib/{help-circle-C3cz2mhr.js → help-circle-vyJ6xZHu.js} +1 -1
- package/lib/hosted.js +1 -1
- package/lib/hosted.mjs +1 -1
- package/lib/{id-k-6XX-i3.mjs → id-BMthpDYz.mjs} +1 -1
- package/lib/{id-WMVfV2eA.js → id-Cn7OOd5x.js} +1 -1
- package/lib/{image-Dq1CEatm.js → image-CgBZH2xZ.js} +1 -1
- package/lib/{image-Cv9d6W9m.mjs → image-Ci9ZM4mR.mjs} +1 -1
- package/lib/{index-B3BPxQII.js → index-B5zOthpC.js} +2 -2
- package/lib/{index-CSme-v_P.mjs → index-BI7ozQB8.mjs} +19202 -19189
- package/lib/{index-dPmy3HXi.mjs → index-BvNzRolu.mjs} +78 -78
- package/lib/index-Drek_-UI.js +304 -0
- package/lib/{index.es-Baasatwd.mjs → index.es-B0qJRcfn.mjs} +3 -3
- package/lib/{index.es-CEy-pF4C.mjs → index.es-BT9MvJ7o.mjs} +1 -1
- package/lib/{index.es-DkYlA3ur.js → index.es-C1D-rKkY.js} +1 -1
- package/lib/{index.es-BPWrzgLw.js → index.es-CUXwE1pM.js} +1 -1
- package/lib/index.js +1 -1
- package/lib/index.mjs +1 -1
- package/lib/{info-DKtbpKFe.js → info-D85fqVFL.js} +1 -1
- package/lib/{info-C-APj01Z.mjs → info-ELzT7QIr.mjs} +1 -1
- package/lib/{info-circle-D-VQKTUY.mjs → info-circle-DK-6CdS6.mjs} +1 -1
- package/lib/{info-circle-CrAp5FW5.js → info-circle-NpvKzNp7.js} +1 -1
- package/lib/{lightbulb-Bch6Bif3.js → lightbulb-CiJVLtFu.js} +1 -1
- package/lib/{lightbulb-D6OnARen.mjs → lightbulb-Dy_NOzox.mjs} +1 -1
- package/lib/{mail-9in0xpOQ.js → mail-DMR6frsv.js} +1 -1
- package/lib/{mail-CGX6Ebtq.mjs → mail-X76s8rfB.mjs} +1 -1
- package/lib/{mobile-NmA6wrO4.mjs → mobile-CTWZtoa-.mjs} +1 -1
- package/lib/{mobile-CyagzH3-.js → mobile-Dz75gLYD.js} +1 -1
- package/lib/{more-CFca7uI_.mjs → more-BGUpPogP.mjs} +1 -1
- package/lib/{more-DcJPJGe5.js → more-BwPnu0VI.js} +1 -1
- package/lib/{network-placeholder-BYXUJOeS.js → network-placeholder-CF8oh182.js} +1 -1
- package/lib/{network-placeholder-Cd1Q08rr.mjs → network-placeholder-DU2R8jQ2.mjs} +1 -1
- package/lib/{nftPlaceholder-Dzx7XKJd.mjs → nftPlaceholder-CoKZUHau.mjs} +1 -1
- package/lib/{nftPlaceholder-DdfFTwua.js → nftPlaceholder-buAZxl05.js} +1 -1
- package/lib/{off-8JP1Gy_j.mjs → off-D0Z3jgVT.mjs} +1 -1
- package/lib/{off-NE8r79uo.js → off-qyRQY4Vl.js} +1 -1
- package/lib/{play-store-BtkXn6Qi.mjs → play-store-CYMg-nje.mjs} +1 -1
- package/lib/{play-store-CjR8Ye5i.js → play-store-jvvEP4Tn.js} +1 -1
- package/lib/{plus-BcelSf8P.mjs → plus-B1VhqUcA.mjs} +1 -1
- package/lib/{plus-DYoXeuFJ.js → plus-Bu2X2bwl.js} +1 -1
- package/lib/{qr-code-BH5tvrnq.mjs → qr-code-BAYTKQF7.mjs} +1 -1
- package/lib/{qr-code-CvM_r_h_.js → qr-code-CbgdCuGb.js} +1 -1
- package/lib/{recycle-horizontal-DF-bpqgQ.mjs → recycle-horizontal-DEJL9OlS.mjs} +1 -1
- package/lib/{recycle-horizontal-CtsSBIRS.js → recycle-horizontal-DRYNZsFE.js} +1 -1
- package/lib/{refresh-CQOZ2mAu.mjs → refresh-KOIfdwUh.mjs} +1 -1
- package/lib/{refresh-NdMm4wug.js → refresh-oE_ngLqp.js} +1 -1
- package/lib/{reown-logo-Dvzu-NrE.js → reown-logo-C3Mide1i.js} +1 -1
- package/lib/{reown-logo-nJjEHWXo.mjs → reown-logo-Dmpg2FAv.mjs} +1 -1
- package/lib/{search-BJolJxEl.mjs → search-CuC3rSF2.mjs} +1 -1
- package/lib/{search-Deat4EBf.js → search-mOkjsGJ1.js} +1 -1
- package/lib/{secp256k1-C56YnRUb.mjs → secp256k1-Bja14kVd.mjs} +1 -1
- package/lib/{secp256k1-BFBj5yVh.mjs → secp256k1-C0qkk-vR.mjs} +1 -1
- package/lib/{secp256k1-BNlpZRIz.js → secp256k1-D4Srooit.js} +1 -1
- package/lib/{secp256k1-D72Q3VYt.js → secp256k1-rd_mphQA.js} +1 -1
- package/lib/{send-BAAbPeec.js → send-BB0_nSIX.js} +1 -1
- package/lib/{send-Cg8O9lHI.mjs → send-yzjpu02e.mjs} +1 -1
- package/lib/{solana-CIjJKPC4.mjs → solana-BiosgjxK.mjs} +6 -6
- package/lib/{solana-CgmPqyOk.js → solana-Dr0ynR-F.js} +4 -4
- package/lib/{solanaEmbed.esm-a7S5N_pS.mjs → solanaEmbed.esm-0jQKzy4d.mjs} +1 -1
- package/lib/{solanaEmbed.esm-Ci_SmLQ5.js → solanaEmbed.esm-r6Bac8PP.js} +1 -1
- package/lib/src/utils/index.d.ts +1 -1
- package/lib/src/utils/index.d.ts.map +1 -1
- package/lib/src/views/v2/Bridge/Routes/index.d.ts.map +1 -1
- package/lib/src/views/v2/Redeem/TransactionDetails/index.d.ts.map +1 -1
- package/lib/src/views/v2/TxHistory/Item/index.d.ts.map +1 -1
- package/lib/{sui-DreWttXF.mjs → sui-CfRHIkOa.mjs} +1 -1
- package/lib/{sui-BwPdGPGy.js → sui-ggIMQCwd.js} +1 -1
- package/lib/{swapHorizontal-DWeRan0H.js → swapHorizontal-C6KHRSpK.js} +1 -1
- package/lib/{swapHorizontal-BNQcyra_.mjs → swapHorizontal-zZeZYYWF.mjs} +1 -1
- package/lib/{swapHorizontalBold-CMU4Ln4I.mjs → swapHorizontalBold-1MC8ZOxh.mjs} +1 -1
- package/lib/{swapHorizontalBold-DiLlPFUH.js → swapHorizontalBold-DoVEdayo.js} +1 -1
- package/lib/{swapHorizontalMedium-CZFnTcX4.mjs → swapHorizontalMedium-BOHZ9Dg5.mjs} +1 -1
- package/lib/{swapHorizontalMedium-B93wR42U.js → swapHorizontalMedium-DcR2VrrT.js} +1 -1
- package/lib/{swapHorizontalRoundedBold-TWMTV7dt.mjs → swapHorizontalRoundedBold-JEVvyOfQ.mjs} +1 -1
- package/lib/{swapHorizontalRoundedBold-wlGfwhPM.js → swapHorizontalRoundedBold-N6P7ZpxL.js} +1 -1
- package/lib/{swapVertical-hcNqr9L_.mjs → swapVertical-BULwQAah.mjs} +1 -1
- package/lib/{swapVertical-dLQL4U_l.js → swapVertical-CS2a-XY6.js} +1 -1
- package/lib/{telegram-C39Le0iS.mjs → telegram-DSzKqVhj.mjs} +1 -1
- package/lib/{telegram-D-ZDOgyu.js → telegram-DuIkJcxV.js} +1 -1
- package/lib/{three-dots-BbsgFUd9.mjs → three-dots-DgHvZG77.mjs} +1 -1
- package/lib/{three-dots-xVml4oxI.js → three-dots-sLfFBOoe.js} +1 -1
- package/lib/{tokens-Biwt_Vlp.mjs → tokens-CA42f7sB.mjs} +1 -1
- package/lib/{tokens-sw1ixfEi.js → tokens-Dl_W_iHS.js} +1 -1
- package/lib/{twitch-C5rtlsn8.mjs → twitch-BhO_1W8r.mjs} +1 -1
- package/lib/{twitch-9p6JjObE.js → twitch-m9JiCf-P.js} +1 -1
- package/lib/{twitterIcon-CLEf6yY1.js → twitterIcon--GnF9nvE.js} +1 -1
- package/lib/{twitterIcon-CvHEure8.mjs → twitterIcon-fsFN1hu7.mjs} +1 -1
- package/lib/{verify-Dws0cvKw.js → verify-Bjs90N4f.js} +1 -1
- package/lib/{verify-DKZ0iyjc.mjs → verify-Db3SLGRB.mjs} +1 -1
- package/lib/{verify-filled-CtJGAYrO.mjs → verify-filled-LLxJtqw8.mjs} +1 -1
- package/lib/{verify-filled-BbZK0pKJ.js → verify-filled-Q7X_30fP.js} +1 -1
- package/lib/{w3m-modal-DksS6aIT.mjs → w3m-modal-By8X9uSa.mjs} +2 -2
- package/lib/{w3m-modal-DdtDvE03.js → w3m-modal-bNYiLd7-.js} +1 -1
- package/lib/{wallet-CyH12dYP.js → wallet-C6wn2W37.js} +1 -1
- package/lib/{wallet-DXVeRjbu.mjs → wallet-DyFpD6Ri.mjs} +1 -1
- package/lib/{wallet-placeholder-BMnT070m.mjs → wallet-placeholder-C0U4gPUC.mjs} +1 -1
- package/lib/{wallet-placeholder-x6zsaldG.js → wallet-placeholder-CX66BGYj.js} +1 -1
- package/lib/{walletconnect-BaiHrAQU.mjs → walletconnect-BaXoBzrQ.mjs} +1 -1
- package/lib/{walletconnect-DWLSx2RY.js → walletconnect-C0zt_mNA.js} +1 -1
- package/lib/{warning-circle-Dv8U36XN.mjs → warning-circle-DqwHoo9u.mjs} +1 -1
- package/lib/{warning-circle-D-Cxtafm.js → warning-circle-Dy3ZubCh.js} +1 -1
- package/lib/{x-CDag6DSG.js → x-C4e8AToN.js} +1 -1
- package/lib/{x-iPGjMI8Y.mjs → x-OReg0vUC.mjs} +1 -1
- package/package.json +2 -2
- package/dist/assets/index-BZFyhaji.js +0 -1
- package/dist/assets/index.es-FdLcv4RX.js +0 -47
- package/dist/assets/index.es-g5_0R3zE.js +0 -15
- package/dist/assets/signer-7-tpWjBV.js +0 -2
- package/dist/assets/solana-C6mHMmQi.js +0 -2
- package/dist/assets/solanaEmbed.esm-DhAz8SOB.js +0 -10
- package/lib/constants-DdwxK2TX.js +0 -1
- package/lib/index-DuCVZm5q.js +0 -304
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { e as gt, E as Fo } from "./index-
|
|
1
|
+
import { e as gt, E as Fo } from "./index-BI7ozQB8.mjs";
|
|
2
2
|
import { d as Q, V as qo, g as gw } from "./address-BkeBsCZD.mjs";
|
|
3
|
-
import { s as jo, x as Ah, r as Th, H as yw, c as Dh, q as Ss } from "./evm-
|
|
4
|
-
import { I as ur, h as dt, t as nt, l as Ru, C as mw, i as vw, d as gs, s as Cs, a as Ns, c as ww, b as _w, k as bw, e as Ew, f as Iw, g as $u, r as Pw, m as xr, n as Fh, o as bt, p as xs, q as Cu, u as Sw, v as Ow, w as Mo, x as Rw, D as As, y as Ts, E as Le, z as Qe, P as Nu, Q as $w, G as Cw, B as Uo, F as Ds, J as Wt, H as Nw, K as xw, L as Yt } from "./index.es-
|
|
3
|
+
import { s as jo, x as Ah, r as Th, H as yw, c as Dh, q as Ss } from "./evm-B2lMpZxw.mjs";
|
|
4
|
+
import { I as ur, h as dt, t as nt, l as Ru, C as mw, i as vw, d as gs, s as Cs, a as Ns, c as ww, b as _w, k as bw, e as Ew, f as Iw, g as $u, r as Pw, m as xr, n as Fh, o as bt, p as xs, q as Cu, u as Sw, v as Ow, w as Mo, x as Rw, D as As, y as Ts, E as Le, z as Qe, P as Nu, Q as $w, G as Cw, B as Uo, F as Ds, J as Wt, H as Nw, K as xw, L as Yt } from "./index.es-BT9MvJ7o.mjs";
|
|
5
5
|
import { a4 as Aw, a3 as F, a6 as qh, a5 as jh, a7 as Tw } from "./index-CNWcuxPc.mjs";
|
|
6
6
|
const Dw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7
7
|
__proto__: null,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a8 as po, a9 as bo, aa as go, ab as wo, ac as yo, ad as vo, ae as mo, af as _o, ag as xo, ah as Eo, a3 as Fo } from "./index-CNWcuxPc.mjs";
|
|
2
2
|
import { d as Ne, g as Bn, V as Ao, U as ge } from "./address-BkeBsCZD.mjs";
|
|
3
|
-
import { e as Bo } from "./index-
|
|
3
|
+
import { e as Bo } from "./index-BI7ozQB8.mjs";
|
|
4
4
|
import { o as $r } from "./browser-ponyfill-B32wgiqZ.mjs";
|
|
5
5
|
function Sn(e = 0) {
|
|
6
6
|
return globalThis.Buffer != null && globalThis.Buffer.allocUnsafe != null ? globalThis.Buffer.allocUnsafe(e) : new Uint8Array(e);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ke=require("./index-DuCVZm5q.js"),B=require("./address-DKM11kf_.js"),Le=require("./evm-AmBHj3pD.js"),I=require("./index.es-BPWrzgLw.js"),j=require("./index-Cjz6EL9G.js"),kv=Object.freeze(Object.defineProperty({__proto__:null,IEvents:I.IEvents},Symbol.toStringTag,{value:"Module"})),Lv=":";function Kv(o){const[t,r]=o.split(Lv);return{namespace:t,reference:r}}function Hv(o,t=[]){const r=[];return Object.keys(o).forEach(s=>{if(t.length&&!t.includes(s))return;const a=o[s];r.push(...a.accounts)}),r}function ch(o,t){return o.includes(":")?[o]:t.chains||[]}const uh="base10",Te="base16",co="base64pad",bo="utf8",hh=0,sr=1,Vv=0,au=1,uo=12,Eo=32;function Bv(){const o=Le.x25519.generateKeyPair();return{privateKey:I.toString(o.secretKey,Te),publicKey:I.toString(o.publicKey,Te)}}function ho(){const o=Le.random.randomBytes(Eo);return I.toString(o,Te)}function Wv(o,t){const r=Le.x25519.sharedKey(I.fromString(o,Te),I.fromString(t,Te),!0),s=new Le.HKDF_1(Le.sha256.SHA256,r).expand(Eo);return I.toString(s,Te)}function Jv(o){const t=Le.sha256.hash(I.fromString(o,Te));return I.toString(t,Te)}function Sr(o){const t=Le.sha256.hash(I.fromString(o,bo));return I.toString(t,Te)}function Gv(o){return I.fromString(`${o}`,uh)}function li(o){return Number(I.toString(o,uh))}function Qv(o){const t=Gv(typeof o.type<"u"?o.type:hh);if(li(t)===sr&&typeof o.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");const r=typeof o.senderPublicKey<"u"?I.fromString(o.senderPublicKey,Te):void 0,s=typeof o.iv<"u"?I.fromString(o.iv,Te):Le.random.randomBytes(uo),a=new Le.chacha20poly1305.ChaCha20Poly1305(I.fromString(o.symKey,Te)).seal(s,I.fromString(o.message,bo));return Zv({type:t,sealed:a,iv:s,senderPublicKey:r})}function Yv(o){const t=new Le.chacha20poly1305.ChaCha20Poly1305(I.fromString(o.symKey,Te)),{sealed:r,iv:s}=ms(o.encoded),a=t.open(s,r);if(a===null)throw new Error("Failed to decrypt");return I.toString(a,bo)}function Zv(o){if(li(o.type)===sr){if(typeof o.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return I.toString(I.concat([o.type,o.senderPublicKey,o.iv,o.sealed]),co)}return I.toString(I.concat([o.type,o.iv,o.sealed]),co)}function ms(o){const t=I.fromString(o,co),r=t.slice(Vv,au),s=au;if(li(r)===sr){const g=s+Eo,w=g+uo,d=t.slice(s,g),b=t.slice(g,w),E=t.slice(w);return{type:r,sealed:E,iv:b,senderPublicKey:d}}const a=s+uo,u=t.slice(s,a),l=t.slice(a);return{type:r,sealed:l,iv:u}}function Xv(o,t){const r=ms(o);return lh({type:li(r.type),senderPublicKey:typeof r.senderPublicKey<"u"?I.toString(r.senderPublicKey,Te):void 0,receiverPublicKey:t==null?void 0:t.receiverPublicKey})}function lh(o){const t=(o==null?void 0:o.type)||hh;if(t===sr){if(typeof(o==null?void 0:o.senderPublicKey)>"u")throw new Error("missing sender public key");if(typeof(o==null?void 0:o.receiverPublicKey)>"u")throw new Error("missing receiver public key")}return{type:t,senderPublicKey:o==null?void 0:o.senderPublicKey,receiverPublicKey:o==null?void 0:o.receiverPublicKey}}function cu(o){return o.type===sr&&typeof o.senderPublicKey=="string"&&typeof o.receiverPublicKey=="string"}var ew=Object.defineProperty,uu=Object.getOwnPropertySymbols,tw=Object.prototype.hasOwnProperty,rw=Object.prototype.propertyIsEnumerable,hu=(o,t,r)=>t in o?ew(o,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[t]=r,lu=(o,t)=>{for(var r in t||(t={}))tw.call(t,r)&&hu(o,r,t[r]);if(uu)for(var r of uu(t))rw.call(t,r)&&hu(o,r,t[r]);return o};const iw="ReactNative",Qe={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"},sw="js";function Io(){return typeof B.dist.process<"u"&&typeof B.dist.process.versions<"u"&&typeof B.dist.process.versions.node<"u"}function Or(){return!j.getDocument_1()&&!!j.getNavigator_1()&&navigator.product===iw}function $r(){return!Io()&&!!j.getNavigator_1()&&!!j.getDocument_1()}function pi(){return Or()?Qe.reactNative:Io()?Qe.node:$r()?Qe.browser:Qe.unknown}function nw(){var o;try{return Or()&&typeof B.dist.global<"u"&&typeof(B.dist.global==null?void 0:B.dist.global.Application)<"u"?(o=B.dist.global.Application)==null?void 0:o.applicationId:void 0}catch{return}}function ow(o,t){let r=Le.queryString.parse(o);return r=lu(lu({},r),t),o=Le.queryString.stringify(r),o}function aw(){return j.getWindowMetadata_1()||{name:"",description:"",url:"",icons:[""]}}function cw(){if(pi()===Qe.reactNative&&typeof B.dist.global<"u"&&typeof(B.dist.global==null?void 0:B.dist.global.Platform)<"u"){const{OS:r,Version:s}=B.dist.global.Platform;return[r,s].join("-")}const o=I.detect();if(o===null)return"unknown";const t=o.os?o.os.replace(" ","").toLowerCase():"unknown";return o.type==="browser"?[t,o.name,o.version].join("-"):[t,o.version].join("-")}function uw(){var o;const t=pi();return t===Qe.browser?[t,((o=j.getLocation_1())==null?void 0:o.host)||"unknown"].join(":"):t}function hw(o,t,r){const s=cw(),a=uw();return[[o,t].join("-"),[sw,r].join("-"),s,a].join("/")}function lw({protocol:o,version:t,relayUrl:r,sdkVersion:s,auth:a,projectId:u,useOnCloseEvent:l,bundleId:g}){const w=r.split("?"),d=hw(o,t,s),b={auth:a,ua:d,projectId:u,useOnCloseEvent:l,origin:g||void 0},E=ow(w[1]||"",b);return w[0]+"?"+E}function ir(o,t){return o.filter(r=>t.includes(r)).length===o.length}function ph(o){return Object.fromEntries(o.entries())}function fh(o){return new Map(Object.entries(o))}function Ir(o=j.cjs.FIVE_MINUTES,t){const r=j.cjs.toMiliseconds(o||j.cjs.FIVE_MINUTES);let s,a,u;return{resolve:l=>{u&&s&&(clearTimeout(u),s(l))},reject:l=>{u&&a&&(clearTimeout(u),a(l))},done:()=>new Promise((l,g)=>{u=setTimeout(()=>{g(new Error(t))},r),s=l,a=g})}}function ui(o,t,r){return new Promise(async(s,a)=>{const u=setTimeout(()=>a(new Error(r)),t);try{const l=await o;s(l)}catch(l){a(l)}clearTimeout(u)})}function dh(o,t){if(typeof t=="string"&&t.startsWith(`${o}:`))return t;if(o.toLowerCase()==="topic"){if(typeof t!="string")throw new Error('Value must be "string" for expirer target type: topic');return`topic:${t}`}else if(o.toLowerCase()==="id"){if(typeof t!="number")throw new Error('Value must be "number" for expirer target type: id');return`id:${t}`}throw new Error(`Unknown expirer target type: ${o}`)}function pw(o){return dh("topic",o)}function fw(o){return dh("id",o)}function gh(o){const[t,r]=o.split(":"),s={id:void 0,topic:void 0};if(t==="topic"&&typeof r=="string")s.topic=r;else if(t==="id"&&Number.isInteger(Number(r)))s.id=Number(r);else throw new Error(`Invalid target, expected id:number or topic:string, got ${t}:${r}`);return s}function ft(o,t){return j.cjs.fromMiliseconds(Date.now()+j.cjs.toMiliseconds(o))}function Ht(o){return Date.now()>=j.cjs.toMiliseconds(o)}function ge(o,t){return`${o}${t?`:${t}`:""}`}function Jn(o=[],t=[]){return[...new Set([...o,...t])]}async function dw({id:o,topic:t,wcDeepLink:r}){try{if(!r)return;const s=typeof r=="string"?JSON.parse(r):r;let a=s==null?void 0:s.href;if(typeof a!="string")return;a.endsWith("/")&&(a=a.slice(0,-1));const u=`${a}/wc?requestId=${o}&sessionTopic=${t}`,l=pi();l===Qe.browser?u.startsWith("https://")?window.open(u,"_blank","noreferrer noopener"):window.open(u,"_self","noreferrer noopener"):l===Qe.reactNative&&typeof(B.dist.global==null?void 0:B.dist.global.Linking)<"u"&&await B.dist.global.Linking.openURL(u)}catch(s){console.error(s)}}async function gw(o,t){try{return await o.getItem(t)||($r()?localStorage.getItem(t):void 0)}catch(r){console.error(r)}}const yw="irn";function lo(o){return(o==null?void 0:o.relay)||{protocol:yw}}function fs(o){const t=I.C[o];if(typeof t>"u")throw new Error(`Relay Protocol not supported: ${o}`);return t}var mw=Object.defineProperty,pu=Object.getOwnPropertySymbols,vw=Object.prototype.hasOwnProperty,ww=Object.prototype.propertyIsEnumerable,fu=(o,t,r)=>t in o?mw(o,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[t]=r,_w=(o,t)=>{for(var r in t||(t={}))vw.call(t,r)&&fu(o,r,t[r]);if(pu)for(var r of pu(t))ww.call(t,r)&&fu(o,r,t[r]);return o};function bw(o,t="-"){const r={},s="relay"+t;return Object.keys(o).forEach(a=>{if(a.startsWith(s)){const u=a.replace(s,""),l=o[a];r[u]=l}}),r}function du(o){o=o.includes("wc://")?o.replace("wc://",""):o,o=o.includes("wc:")?o.replace("wc:",""):o;const t=o.indexOf(":"),r=o.indexOf("?")!==-1?o.indexOf("?"):void 0,s=o.substring(0,t),a=o.substring(t+1,r).split("@"),u=typeof r<"u"?o.substring(r):"",l=Le.queryString.parse(u);return{protocol:s,topic:Ew(a[0]),version:parseInt(a[1],10),symKey:l.symKey,relay:bw(l)}}function Ew(o){return o.startsWith("//")?o.substring(2):o}function Iw(o,t="-"){const r="relay",s={};return Object.keys(o).forEach(a=>{const u=r+t+a;o[a]&&(s[u]=o[a])}),s}function Pw(o){return`${o.protocol}:${o.topic}@${o.version}?`+Le.queryString.stringify(_w({symKey:o.symKey},Iw(o.relay)))}function Cr(o){const t=[];return o.forEach(r=>{const[s,a]=r.split(":");t.push(`${s}:${a}`)}),t}function Sw(o){const t=[];return Object.values(o).forEach(r=>{t.push(...Cr(r.accounts))}),t}function Rw(o,t){const r=[];return Object.values(o).forEach(s=>{Cr(s.accounts).includes(t)&&r.push(...s.methods)}),r}function Ow(o,t){const r=[];return Object.values(o).forEach(s=>{Cr(s.accounts).includes(t)&&r.push(...s.events)}),r}function $w(o,t){const r=ds(o,t);if(r)throw new Error(r.message);const s={};for(const[a,u]of Object.entries(o))s[a]={methods:u.methods,events:u.events,chains:u.accounts.map(l=>`${l.split(":")[0]}:${l.split(":")[1]}`)};return s}function Po(o){return o.includes(":")}function oi(o){return Po(o)?o.split(":")[0]:o}const Cw={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},xw={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function N(o,t){const{message:r,code:s}=xw[o];return{message:t?`${r} ${t}`:r,code:s}}function le(o,t){const{message:r,code:s}=Cw[o];return{message:t?`${r} ${t}`:r,code:s}}function wt(o,t){return!!Array.isArray(o)}function Rr(o){return Object.getPrototypeOf(o)===Object.prototype&&Object.keys(o).length}function Ae(o){return typeof o>"u"}function be(o,t){return t&&Ae(o)?!0:typeof o=="string"&&!!o.trim().length}function So(o,t){return t&&Ae(o)?!0:typeof o=="number"&&!isNaN(o)}function Nw(o,t){const{requiredNamespaces:r}=t,s=Object.keys(o.namespaces),a=Object.keys(r);let u=!0;return ir(a,s)?(s.forEach(l=>{const{accounts:g,methods:w,events:d}=o.namespaces[l],b=Cr(g),E=r[l];(!ir(ch(l,E),b)||!ir(E.methods,w)||!ir(E.events,d))&&(u=!1)}),u):!1}function vs(o){return be(o,!1)&&o.includes(":")?o.split(":").length===2:!1}function Aw(o){if(be(o,!1)&&o.includes(":")){const t=o.split(":");if(t.length===3){const r=t[0]+":"+t[1];return!!t[2]&&vs(r)}}return!1}function Tw(o){if(be(o,!1))try{return typeof new URL(o)<"u"}catch{return!1}return!1}function Dw(o){var t;return(t=o==null?void 0:o.proposer)==null?void 0:t.publicKey}function jw(o){return o==null?void 0:o.topic}function Fw(o,t){let r=null;return be(o==null?void 0:o.publicKey,!1)||(r=N("MISSING_OR_INVALID",`${t} controller public key should be a string`)),r}function gu(o){let t=!0;return wt(o)?o.length&&(t=o.every(r=>be(r,!1))):t=!1,t}function qw(o,t,r){let s=null;return wt(t)&&t.length?t.forEach(a=>{s||vs(a)||(s=le("UNSUPPORTED_CHAINS",`${r}, chain ${a} should be a string and conform to "namespace:chainId" format`))}):vs(o)||(s=le("UNSUPPORTED_CHAINS",`${r}, chains must be defined as "namespace:chainId" e.g. "eip155:1": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: ["eip155:1", "eip155:5"] }`)),s}function Mw(o,t,r){let s=null;return Object.entries(o).forEach(([a,u])=>{if(s)return;const l=qw(a,ch(a,u),`${t} ${r}`);l&&(s=l)}),s}function Uw(o,t){let r=null;return wt(o)?o.forEach(s=>{r||Aw(s)||(r=le("UNSUPPORTED_ACCOUNTS",`${t}, account ${s} should be a string and conform to "namespace:chainId:address" format`))}):r=le("UNSUPPORTED_ACCOUNTS",`${t}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),r}function zw(o,t){let r=null;return Object.values(o).forEach(s=>{if(r)return;const a=Uw(s==null?void 0:s.accounts,`${t} namespace`);a&&(r=a)}),r}function kw(o,t){let r=null;return gu(o==null?void 0:o.methods)?gu(o==null?void 0:o.events)||(r=le("UNSUPPORTED_EVENTS",`${t}, events should be an array of strings or empty array for no events`)):r=le("UNSUPPORTED_METHODS",`${t}, methods should be an array of strings or empty array for no methods`),r}function yh(o,t){let r=null;return Object.values(o).forEach(s=>{if(r)return;const a=kw(s,`${t}, namespace`);a&&(r=a)}),r}function Lw(o,t,r){let s=null;if(o&&Rr(o)){const a=yh(o,t);a&&(s=a);const u=Mw(o,t,r);u&&(s=u)}else s=N("MISSING_OR_INVALID",`${t}, ${r} should be an object with data`);return s}function ds(o,t){let r=null;if(o&&Rr(o)){const s=yh(o,t);s&&(r=s);const a=zw(o,t);a&&(r=a)}else r=N("MISSING_OR_INVALID",`${t}, namespaces should be an object with data`);return r}function mh(o){return be(o.protocol,!0)}function Kw(o,t){let r=!1;return o?o&&wt(o)&&o.length&&o.forEach(s=>{r=mh(s)}):r=!0,r}function Hw(o){return typeof o=="number"}function ke(o){return typeof o<"u"&&typeof o!==null}function Vw(o){return!(!o||typeof o!="object"||!o.code||!So(o.code,!1)||!o.message||!be(o.message,!1))}function Bw(o){return!(Ae(o)||!be(o.method,!1))}function Ww(o){return!(Ae(o)||Ae(o.result)&&Ae(o.error)||!So(o.id,!1)||!be(o.jsonrpc,!1))}function Jw(o){return!(Ae(o)||!be(o.name,!1))}function yu(o,t){return!(!vs(t)||!Sw(o).includes(t))}function Gw(o,t,r){return be(r,!1)?Rw(o,t).includes(r):!1}function Qw(o,t,r){return be(r,!1)?Ow(o,t).includes(r):!1}function mu(o,t,r){let s=null;const a=Yw(o),u=Zw(t),l=Object.keys(a),g=Object.keys(u),w=vu(Object.keys(o)),d=vu(Object.keys(t)),b=w.filter(E=>!d.includes(E));return b.length&&(s=N("NON_CONFORMING_NAMESPACES",`${r} namespaces keys don't satisfy requiredNamespaces.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ke=require("./index-Drek_-UI.js"),B=require("./address-DKM11kf_.js"),Le=require("./evm-G8FJAICS.js"),I=require("./index.es-CUXwE1pM.js"),j=require("./index-Cjz6EL9G.js"),kv=Object.freeze(Object.defineProperty({__proto__:null,IEvents:I.IEvents},Symbol.toStringTag,{value:"Module"})),Lv=":";function Kv(o){const[t,r]=o.split(Lv);return{namespace:t,reference:r}}function Hv(o,t=[]){const r=[];return Object.keys(o).forEach(s=>{if(t.length&&!t.includes(s))return;const a=o[s];r.push(...a.accounts)}),r}function ch(o,t){return o.includes(":")?[o]:t.chains||[]}const uh="base10",Te="base16",co="base64pad",bo="utf8",hh=0,sr=1,Vv=0,au=1,uo=12,Eo=32;function Bv(){const o=Le.x25519.generateKeyPair();return{privateKey:I.toString(o.secretKey,Te),publicKey:I.toString(o.publicKey,Te)}}function ho(){const o=Le.random.randomBytes(Eo);return I.toString(o,Te)}function Wv(o,t){const r=Le.x25519.sharedKey(I.fromString(o,Te),I.fromString(t,Te),!0),s=new Le.HKDF_1(Le.sha256.SHA256,r).expand(Eo);return I.toString(s,Te)}function Jv(o){const t=Le.sha256.hash(I.fromString(o,Te));return I.toString(t,Te)}function Sr(o){const t=Le.sha256.hash(I.fromString(o,bo));return I.toString(t,Te)}function Gv(o){return I.fromString(`${o}`,uh)}function li(o){return Number(I.toString(o,uh))}function Qv(o){const t=Gv(typeof o.type<"u"?o.type:hh);if(li(t)===sr&&typeof o.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");const r=typeof o.senderPublicKey<"u"?I.fromString(o.senderPublicKey,Te):void 0,s=typeof o.iv<"u"?I.fromString(o.iv,Te):Le.random.randomBytes(uo),a=new Le.chacha20poly1305.ChaCha20Poly1305(I.fromString(o.symKey,Te)).seal(s,I.fromString(o.message,bo));return Zv({type:t,sealed:a,iv:s,senderPublicKey:r})}function Yv(o){const t=new Le.chacha20poly1305.ChaCha20Poly1305(I.fromString(o.symKey,Te)),{sealed:r,iv:s}=ms(o.encoded),a=t.open(s,r);if(a===null)throw new Error("Failed to decrypt");return I.toString(a,bo)}function Zv(o){if(li(o.type)===sr){if(typeof o.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return I.toString(I.concat([o.type,o.senderPublicKey,o.iv,o.sealed]),co)}return I.toString(I.concat([o.type,o.iv,o.sealed]),co)}function ms(o){const t=I.fromString(o,co),r=t.slice(Vv,au),s=au;if(li(r)===sr){const g=s+Eo,w=g+uo,d=t.slice(s,g),b=t.slice(g,w),E=t.slice(w);return{type:r,sealed:E,iv:b,senderPublicKey:d}}const a=s+uo,u=t.slice(s,a),l=t.slice(a);return{type:r,sealed:l,iv:u}}function Xv(o,t){const r=ms(o);return lh({type:li(r.type),senderPublicKey:typeof r.senderPublicKey<"u"?I.toString(r.senderPublicKey,Te):void 0,receiverPublicKey:t==null?void 0:t.receiverPublicKey})}function lh(o){const t=(o==null?void 0:o.type)||hh;if(t===sr){if(typeof(o==null?void 0:o.senderPublicKey)>"u")throw new Error("missing sender public key");if(typeof(o==null?void 0:o.receiverPublicKey)>"u")throw new Error("missing receiver public key")}return{type:t,senderPublicKey:o==null?void 0:o.senderPublicKey,receiverPublicKey:o==null?void 0:o.receiverPublicKey}}function cu(o){return o.type===sr&&typeof o.senderPublicKey=="string"&&typeof o.receiverPublicKey=="string"}var ew=Object.defineProperty,uu=Object.getOwnPropertySymbols,tw=Object.prototype.hasOwnProperty,rw=Object.prototype.propertyIsEnumerable,hu=(o,t,r)=>t in o?ew(o,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[t]=r,lu=(o,t)=>{for(var r in t||(t={}))tw.call(t,r)&&hu(o,r,t[r]);if(uu)for(var r of uu(t))rw.call(t,r)&&hu(o,r,t[r]);return o};const iw="ReactNative",Qe={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"},sw="js";function Io(){return typeof B.dist.process<"u"&&typeof B.dist.process.versions<"u"&&typeof B.dist.process.versions.node<"u"}function Or(){return!j.getDocument_1()&&!!j.getNavigator_1()&&navigator.product===iw}function $r(){return!Io()&&!!j.getNavigator_1()&&!!j.getDocument_1()}function pi(){return Or()?Qe.reactNative:Io()?Qe.node:$r()?Qe.browser:Qe.unknown}function nw(){var o;try{return Or()&&typeof B.dist.global<"u"&&typeof(B.dist.global==null?void 0:B.dist.global.Application)<"u"?(o=B.dist.global.Application)==null?void 0:o.applicationId:void 0}catch{return}}function ow(o,t){let r=Le.queryString.parse(o);return r=lu(lu({},r),t),o=Le.queryString.stringify(r),o}function aw(){return j.getWindowMetadata_1()||{name:"",description:"",url:"",icons:[""]}}function cw(){if(pi()===Qe.reactNative&&typeof B.dist.global<"u"&&typeof(B.dist.global==null?void 0:B.dist.global.Platform)<"u"){const{OS:r,Version:s}=B.dist.global.Platform;return[r,s].join("-")}const o=I.detect();if(o===null)return"unknown";const t=o.os?o.os.replace(" ","").toLowerCase():"unknown";return o.type==="browser"?[t,o.name,o.version].join("-"):[t,o.version].join("-")}function uw(){var o;const t=pi();return t===Qe.browser?[t,((o=j.getLocation_1())==null?void 0:o.host)||"unknown"].join(":"):t}function hw(o,t,r){const s=cw(),a=uw();return[[o,t].join("-"),[sw,r].join("-"),s,a].join("/")}function lw({protocol:o,version:t,relayUrl:r,sdkVersion:s,auth:a,projectId:u,useOnCloseEvent:l,bundleId:g}){const w=r.split("?"),d=hw(o,t,s),b={auth:a,ua:d,projectId:u,useOnCloseEvent:l,origin:g||void 0},E=ow(w[1]||"",b);return w[0]+"?"+E}function ir(o,t){return o.filter(r=>t.includes(r)).length===o.length}function ph(o){return Object.fromEntries(o.entries())}function fh(o){return new Map(Object.entries(o))}function Ir(o=j.cjs.FIVE_MINUTES,t){const r=j.cjs.toMiliseconds(o||j.cjs.FIVE_MINUTES);let s,a,u;return{resolve:l=>{u&&s&&(clearTimeout(u),s(l))},reject:l=>{u&&a&&(clearTimeout(u),a(l))},done:()=>new Promise((l,g)=>{u=setTimeout(()=>{g(new Error(t))},r),s=l,a=g})}}function ui(o,t,r){return new Promise(async(s,a)=>{const u=setTimeout(()=>a(new Error(r)),t);try{const l=await o;s(l)}catch(l){a(l)}clearTimeout(u)})}function dh(o,t){if(typeof t=="string"&&t.startsWith(`${o}:`))return t;if(o.toLowerCase()==="topic"){if(typeof t!="string")throw new Error('Value must be "string" for expirer target type: topic');return`topic:${t}`}else if(o.toLowerCase()==="id"){if(typeof t!="number")throw new Error('Value must be "number" for expirer target type: id');return`id:${t}`}throw new Error(`Unknown expirer target type: ${o}`)}function pw(o){return dh("topic",o)}function fw(o){return dh("id",o)}function gh(o){const[t,r]=o.split(":"),s={id:void 0,topic:void 0};if(t==="topic"&&typeof r=="string")s.topic=r;else if(t==="id"&&Number.isInteger(Number(r)))s.id=Number(r);else throw new Error(`Invalid target, expected id:number or topic:string, got ${t}:${r}`);return s}function ft(o,t){return j.cjs.fromMiliseconds(Date.now()+j.cjs.toMiliseconds(o))}function Ht(o){return Date.now()>=j.cjs.toMiliseconds(o)}function ge(o,t){return`${o}${t?`:${t}`:""}`}function Jn(o=[],t=[]){return[...new Set([...o,...t])]}async function dw({id:o,topic:t,wcDeepLink:r}){try{if(!r)return;const s=typeof r=="string"?JSON.parse(r):r;let a=s==null?void 0:s.href;if(typeof a!="string")return;a.endsWith("/")&&(a=a.slice(0,-1));const u=`${a}/wc?requestId=${o}&sessionTopic=${t}`,l=pi();l===Qe.browser?u.startsWith("https://")?window.open(u,"_blank","noreferrer noopener"):window.open(u,"_self","noreferrer noopener"):l===Qe.reactNative&&typeof(B.dist.global==null?void 0:B.dist.global.Linking)<"u"&&await B.dist.global.Linking.openURL(u)}catch(s){console.error(s)}}async function gw(o,t){try{return await o.getItem(t)||($r()?localStorage.getItem(t):void 0)}catch(r){console.error(r)}}const yw="irn";function lo(o){return(o==null?void 0:o.relay)||{protocol:yw}}function fs(o){const t=I.C[o];if(typeof t>"u")throw new Error(`Relay Protocol not supported: ${o}`);return t}var mw=Object.defineProperty,pu=Object.getOwnPropertySymbols,vw=Object.prototype.hasOwnProperty,ww=Object.prototype.propertyIsEnumerable,fu=(o,t,r)=>t in o?mw(o,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[t]=r,_w=(o,t)=>{for(var r in t||(t={}))vw.call(t,r)&&fu(o,r,t[r]);if(pu)for(var r of pu(t))ww.call(t,r)&&fu(o,r,t[r]);return o};function bw(o,t="-"){const r={},s="relay"+t;return Object.keys(o).forEach(a=>{if(a.startsWith(s)){const u=a.replace(s,""),l=o[a];r[u]=l}}),r}function du(o){o=o.includes("wc://")?o.replace("wc://",""):o,o=o.includes("wc:")?o.replace("wc:",""):o;const t=o.indexOf(":"),r=o.indexOf("?")!==-1?o.indexOf("?"):void 0,s=o.substring(0,t),a=o.substring(t+1,r).split("@"),u=typeof r<"u"?o.substring(r):"",l=Le.queryString.parse(u);return{protocol:s,topic:Ew(a[0]),version:parseInt(a[1],10),symKey:l.symKey,relay:bw(l)}}function Ew(o){return o.startsWith("//")?o.substring(2):o}function Iw(o,t="-"){const r="relay",s={};return Object.keys(o).forEach(a=>{const u=r+t+a;o[a]&&(s[u]=o[a])}),s}function Pw(o){return`${o.protocol}:${o.topic}@${o.version}?`+Le.queryString.stringify(_w({symKey:o.symKey},Iw(o.relay)))}function Cr(o){const t=[];return o.forEach(r=>{const[s,a]=r.split(":");t.push(`${s}:${a}`)}),t}function Sw(o){const t=[];return Object.values(o).forEach(r=>{t.push(...Cr(r.accounts))}),t}function Rw(o,t){const r=[];return Object.values(o).forEach(s=>{Cr(s.accounts).includes(t)&&r.push(...s.methods)}),r}function Ow(o,t){const r=[];return Object.values(o).forEach(s=>{Cr(s.accounts).includes(t)&&r.push(...s.events)}),r}function $w(o,t){const r=ds(o,t);if(r)throw new Error(r.message);const s={};for(const[a,u]of Object.entries(o))s[a]={methods:u.methods,events:u.events,chains:u.accounts.map(l=>`${l.split(":")[0]}:${l.split(":")[1]}`)};return s}function Po(o){return o.includes(":")}function oi(o){return Po(o)?o.split(":")[0]:o}const Cw={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},xw={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function N(o,t){const{message:r,code:s}=xw[o];return{message:t?`${r} ${t}`:r,code:s}}function le(o,t){const{message:r,code:s}=Cw[o];return{message:t?`${r} ${t}`:r,code:s}}function wt(o,t){return!!Array.isArray(o)}function Rr(o){return Object.getPrototypeOf(o)===Object.prototype&&Object.keys(o).length}function Ae(o){return typeof o>"u"}function be(o,t){return t&&Ae(o)?!0:typeof o=="string"&&!!o.trim().length}function So(o,t){return t&&Ae(o)?!0:typeof o=="number"&&!isNaN(o)}function Nw(o,t){const{requiredNamespaces:r}=t,s=Object.keys(o.namespaces),a=Object.keys(r);let u=!0;return ir(a,s)?(s.forEach(l=>{const{accounts:g,methods:w,events:d}=o.namespaces[l],b=Cr(g),E=r[l];(!ir(ch(l,E),b)||!ir(E.methods,w)||!ir(E.events,d))&&(u=!1)}),u):!1}function vs(o){return be(o,!1)&&o.includes(":")?o.split(":").length===2:!1}function Aw(o){if(be(o,!1)&&o.includes(":")){const t=o.split(":");if(t.length===3){const r=t[0]+":"+t[1];return!!t[2]&&vs(r)}}return!1}function Tw(o){if(be(o,!1))try{return typeof new URL(o)<"u"}catch{return!1}return!1}function Dw(o){var t;return(t=o==null?void 0:o.proposer)==null?void 0:t.publicKey}function jw(o){return o==null?void 0:o.topic}function Fw(o,t){let r=null;return be(o==null?void 0:o.publicKey,!1)||(r=N("MISSING_OR_INVALID",`${t} controller public key should be a string`)),r}function gu(o){let t=!0;return wt(o)?o.length&&(t=o.every(r=>be(r,!1))):t=!1,t}function qw(o,t,r){let s=null;return wt(t)&&t.length?t.forEach(a=>{s||vs(a)||(s=le("UNSUPPORTED_CHAINS",`${r}, chain ${a} should be a string and conform to "namespace:chainId" format`))}):vs(o)||(s=le("UNSUPPORTED_CHAINS",`${r}, chains must be defined as "namespace:chainId" e.g. "eip155:1": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: ["eip155:1", "eip155:5"] }`)),s}function Mw(o,t,r){let s=null;return Object.entries(o).forEach(([a,u])=>{if(s)return;const l=qw(a,ch(a,u),`${t} ${r}`);l&&(s=l)}),s}function Uw(o,t){let r=null;return wt(o)?o.forEach(s=>{r||Aw(s)||(r=le("UNSUPPORTED_ACCOUNTS",`${t}, account ${s} should be a string and conform to "namespace:chainId:address" format`))}):r=le("UNSUPPORTED_ACCOUNTS",`${t}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),r}function zw(o,t){let r=null;return Object.values(o).forEach(s=>{if(r)return;const a=Uw(s==null?void 0:s.accounts,`${t} namespace`);a&&(r=a)}),r}function kw(o,t){let r=null;return gu(o==null?void 0:o.methods)?gu(o==null?void 0:o.events)||(r=le("UNSUPPORTED_EVENTS",`${t}, events should be an array of strings or empty array for no events`)):r=le("UNSUPPORTED_METHODS",`${t}, methods should be an array of strings or empty array for no methods`),r}function yh(o,t){let r=null;return Object.values(o).forEach(s=>{if(r)return;const a=kw(s,`${t}, namespace`);a&&(r=a)}),r}function Lw(o,t,r){let s=null;if(o&&Rr(o)){const a=yh(o,t);a&&(s=a);const u=Mw(o,t,r);u&&(s=u)}else s=N("MISSING_OR_INVALID",`${t}, ${r} should be an object with data`);return s}function ds(o,t){let r=null;if(o&&Rr(o)){const s=yh(o,t);s&&(r=s);const a=zw(o,t);a&&(r=a)}else r=N("MISSING_OR_INVALID",`${t}, namespaces should be an object with data`);return r}function mh(o){return be(o.protocol,!0)}function Kw(o,t){let r=!1;return o?o&&wt(o)&&o.length&&o.forEach(s=>{r=mh(s)}):r=!0,r}function Hw(o){return typeof o=="number"}function ke(o){return typeof o<"u"&&typeof o!==null}function Vw(o){return!(!o||typeof o!="object"||!o.code||!So(o.code,!1)||!o.message||!be(o.message,!1))}function Bw(o){return!(Ae(o)||!be(o.method,!1))}function Ww(o){return!(Ae(o)||Ae(o.result)&&Ae(o.error)||!So(o.id,!1)||!be(o.jsonrpc,!1))}function Jw(o){return!(Ae(o)||!be(o.name,!1))}function yu(o,t){return!(!vs(t)||!Sw(o).includes(t))}function Gw(o,t,r){return be(r,!1)?Rw(o,t).includes(r):!1}function Qw(o,t,r){return be(r,!1)?Ow(o,t).includes(r):!1}function mu(o,t,r){let s=null;const a=Yw(o),u=Zw(t),l=Object.keys(a),g=Object.keys(u),w=vu(Object.keys(o)),d=vu(Object.keys(t)),b=w.filter(E=>!d.includes(E));return b.length&&(s=N("NON_CONFORMING_NAMESPACES",`${r} namespaces keys don't satisfy requiredNamespaces.
|
|
2
2
|
Required: ${b.toString()}
|
|
3
3
|
Received: ${Object.keys(t).toString()}`)),ir(l,g)||(s=N("NON_CONFORMING_NAMESPACES",`${r} namespaces chains don't satisfy required namespaces.
|
|
4
4
|
Required: ${l.toString()}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const de=require("./index-Cjz6EL9G.js"),V=require("./address-DKM11kf_.js"),_o=require("./index-DuCVZm5q.js"),kr=require("./browser-ponyfill-UnUv8h3i.js");function Tn(e=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?globalThis.Buffer.allocUnsafe(e):new Uint8Array(e)}function Eo(e,t){t||(t=e.reduce((i,o)=>i+o.length,0));const r=Tn(t);let n=0;for(const i of e)r.set(i,n),n+=i.length;return r}const qr={...de.identityBase,...de.base2,...de.base8,...de.base10,...de.base16,...de.base32,...de.base36,...de.base58,...de.base64,...de.base256emoji};function Cn(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}const Wr=Cn("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),Kt=Cn("ascii","a",e=>{let t="a";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},e=>{e=e.substring(1);const t=Tn(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),In={utf8:Wr,"utf-8":Wr,hex:qr.base16,latin1:Kt,ascii:Kt,binary:Kt,...qr};function xo(e,t="utf8"){const r=In[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return(t==="utf8"||t==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(e,"utf8"):r.decoder.decode(`${r.prefix}${e}`)}function Fo(e,t="utf8"){const r=In[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return(t==="utf8"||t==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8"):r.encoder.encode(e).substring(1)}var Vr=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))},Ao=function(){function e(t,r,n){this.name=t,this.version=r,this.os=n,this.type="browser"}return e}(),So=function(){function e(t){this.version=t,this.type="node",this.name="node",this.os=V.dist.process.platform}return e}(),Bo=function(){function e(t,r,n,i){this.name=t,this.version=r,this.os=n,this.bot=i,this.type="bot-device"}return e}(),Oo=function(){function e(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return e}(),To=function(){function e(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return e}(),Co=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,Io=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,Jr=3,Ro=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",Co]],Kr=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function Lo(e){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new To:typeof navigator<"u"?jo(navigator.userAgent):No()}function Po(e){return e!==""&&Ro.reduce(function(t,r){var n=r[0],i=r[1];if(t)return t;var o=i.exec(e);return!!o&&[n,o]},!1)}function jo(e){var t=Po(e);if(!t)return null;var r=t[0],n=t[1];if(r==="searchbot")return new Oo;var i=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);i?i.length<Jr&&(i=Vr(Vr([],i,!0),zo(Jr-i.length),!0)):i=[];var o=i.join("."),a=Uo(e),l=Io.exec(e);return l&&l[1]?new Bo(r,o,a,l[1]):new Ao(r,o,a)}function Uo(e){for(var t=0,r=Kr.length;t<r;t++){var n=Kr[t],i=n[0],o=n[1],a=o.exec(e);if(a)return i}return null}function No(){var e=typeof V.dist.process<"u"&&V.dist.process.version;return e?new So(V.dist.process.version.slice(1)):null}function zo(e){for(var t=[],r=0;r<e;r++)t.push("0");return t}const Do={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe",batchFetchMessages:"waku_batchFetchMessages"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe",batchFetchMessages:"irn_batchFetchMessages"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe",batchFetchMessages:"iridium_batchFetchMessages"}};class Mo{}const $o=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Ho=/"(?: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)"\s*:/,Go=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function ko(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){qo(e);return}return t}function qo(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Wo(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const r=e.trim();if(r.length<=9)switch(r.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!Go.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if($o.test(e)||Ho.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,ko)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}function ze(e){return new Promise((t,r)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>r(e.error)})}function Rn(e,t){let r;const n=()=>{if(r)return r;const i=indexedDB.open(e);return i.onupgradeneeded=()=>i.result.createObjectStore(t),r=ze(i),r.then(o=>{o.onclose=()=>r=void 0},()=>{}),r};return(i,o)=>n().then(a=>o(a.transaction(t,i).objectStore(t)))}let Zt;function at(){return Zt||(Zt=Rn("keyval-store","keyval")),Zt}function Vo(e,t=at()){return t("readonly",r=>ze(r.get(e)))}function Jo(e,t,r=at()){return r("readwrite",n=>(n.put(t,e),ze(n.transaction)))}function Ko(e,t=at()){return t("readwrite",r=>(r.delete(e),ze(r.transaction)))}function Zo(e=at()){return e("readwrite",t=>(t.clear(),ze(t.transaction)))}function Yo(e,t){return e.openCursor().onsuccess=function(){this.result&&(t(this.result),this.result.continue())},ze(e.transaction)}function Xo(e=at()){return e("readonly",t=>{if(t.getAllKeys)return ze(t.getAllKeys());const r=[];return Yo(t,n=>r.push(n.key)).then(()=>r)})}const Qo=e=>JSON.stringify(e,(t,r)=>typeof r=="bigint"?r.toString()+"n":r),es=e=>{const t=/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,r=e.replace(t,'$1"$2n"$3');return JSON.parse(r,(n,i)=>typeof i=="string"&&i.match(/^\d+n$/)?BigInt(i.substring(0,i.length-1)):i)};function br(e){if(typeof e!="string")throw new Error(`Cannot safe json parse value of type ${typeof e}`);try{return es(e)}catch{return e}}function qe(e){return typeof e=="string"?e:Qo(e)||""}function ts(e){try{return JSON.stringify(e)}catch{return'"[Circular]"'}}var rs=ns;function ns(e,t,r){var n=r&&r.stringify||ts,i=1;if(typeof e=="object"&&e!==null){var o=t.length+i;if(o===1)return e;var a=new Array(o);a[0]=n(e);for(var l=1;l<o;l++)a[l]=n(t[l]);return a.join(" ")}if(typeof e!="string")return e;var u=t.length;if(u===0)return e;for(var h="",f=1-i,p=-1,w=e&&e.length||0,g=0;g<w;){if(e.charCodeAt(g)===37&&g+1<w){switch(p=p>-1?p:0,e.charCodeAt(g+1)){case 100:case 102:if(f>=u||t[f]==null)break;p<g&&(h+=e.slice(p,g)),h+=Number(t[f]),p=g+2,g++;break;case 105:if(f>=u||t[f]==null)break;p<g&&(h+=e.slice(p,g)),h+=Math.floor(Number(t[f])),p=g+2,g++;break;case 79:case 111:case 106:if(f>=u||t[f]===void 0)break;p<g&&(h+=e.slice(p,g));var b=typeof t[f];if(b==="string"){h+="'"+t[f]+"'",p=g+2,g++;break}if(b==="function"){h+=t[f].name||"<anonymous>",p=g+2,g++;break}h+=n(t[f]),p=g+2,g++;break;case 115:if(f>=u)break;p<g&&(h+=e.slice(p,g)),h+=String(t[f]),p=g+2,g++;break;case 37:p<g&&(h+=e.slice(p,g)),h+="%",p=g+2,g++,f--;break}++f}++g}return p===-1?e:(p<w&&(h+=e.slice(p)),h)}const Zr=rs;var ke=we;const it=ds().console||{},is={mapHttpRequest:At,mapHttpResponse:At,wrapRequestSerializer:Yt,wrapResponseSerializer:Yt,wrapErrorSerializer:Yt,req:At,res:At,err:cs};function os(e,t){return Array.isArray(e)?e.filter(function(n){return n!=="!stdSerializers.err"}):e===!0?Object.keys(t):!1}function we(e){e=e||{},e.browser=e.browser||{};const t=e.browser.transmit;if(t&&typeof t.send!="function")throw Error("pino: transmit option must have a send function");const r=e.browser.write||it;e.browser.write&&(e.browser.asObject=!0);const n=e.serializers||{},i=os(e.browser.serialize,n);let o=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf("!stdSerializers.err")>-1&&(o=!1);const a=["error","fatal","warn","info","debug","trace"];typeof r=="function"&&(r.error=r.fatal=r.warn=r.info=r.debug=r.trace=r),e.enabled===!1&&(e.level="silent");const l=e.level||"info",u=Object.create(r);u.log||(u.log=ot),Object.defineProperty(u,"levelVal",{get:f}),Object.defineProperty(u,"level",{get:p,set:w});const h={transmit:t,serialize:i,asObject:e.browser.asObject,levels:a,timestamp:fs(e)};u.levels=we.levels,u.level=l,u.setMaxListeners=u.getMaxListeners=u.emit=u.addListener=u.on=u.prependListener=u.once=u.prependOnceListener=u.removeListener=u.removeAllListeners=u.listeners=u.listenerCount=u.eventNames=u.write=u.flush=ot,u.serializers=n,u._serialize=i,u._stdErrSerialize=o,u.child=g,t&&(u._logEvent=sr());function f(){return this.level==="silent"?1/0:this.levels.values[this.level]}function p(){return this._level}function w(b){if(b!=="silent"&&!this.levels.values[b])throw Error("unknown level "+b);this._level=b,$e(h,u,"error","log"),$e(h,u,"fatal","error"),$e(h,u,"warn","error"),$e(h,u,"info","log"),$e(h,u,"debug","log"),$e(h,u,"trace","log")}function g(b,_){if(!b)throw new Error("missing bindings for child Pino");_=_||{},i&&b.serializers&&(_.serializers=b.serializers);const R=_.serializers;if(i&&R){var P=Object.assign({},n,R),I=e.browser.serialize===!0?Object.keys(P):i;delete b.serializers,jt([b],I,P,this._stdErrSerialize)}function m(O){this._childLevel=(O._childLevel|0)+1,this.error=He(O,b,"error"),this.fatal=He(O,b,"fatal"),this.warn=He(O,b,"warn"),this.info=He(O,b,"info"),this.debug=He(O,b,"debug"),this.trace=He(O,b,"trace"),P&&(this.serializers=P,this._serialize=I),t&&(this._logEvent=sr([].concat(O._logEvent.bindings,b)))}return m.prototype=this,new m(this)}return u}we.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}};we.stdSerializers=is;we.stdTimeFunctions=Object.assign({},{nullTime:Ln,epochTime:Pn,unixTime:ls,isoTime:hs});function $e(e,t,r,n){const i=Object.getPrototypeOf(t);t[r]=t.levelVal>t.levels.values[r]?ot:i[r]?i[r]:it[r]||it[n]||ot,ss(e,t,r)}function ss(e,t,r){!e.transmit&&t[r]===ot||(t[r]=function(n){return function(){const o=e.timestamp(),a=new Array(arguments.length),l=Object.getPrototypeOf&&Object.getPrototypeOf(this)===it?it:this;for(var u=0;u<a.length;u++)a[u]=arguments[u];if(e.serialize&&!e.asObject&&jt(a,this._serialize,this.serializers,this._stdErrSerialize),e.asObject?n.call(l,as(this,r,a,o)):n.apply(l,a),e.transmit){const h=e.transmit.level||t.level,f=we.levels.values[h],p=we.levels.values[r];if(p<f)return;us(this,{ts:o,methodLevel:r,methodValue:p,transmitValue:we.levels.values[e.transmit.level||t.level],send:e.transmit.send,val:t.levelVal},a)}}}(t[r]))}function as(e,t,r,n){e._serialize&&jt(r,e._serialize,e.serializers,e._stdErrSerialize);const i=r.slice();let o=i[0];const a={};n&&(a.time=n),a.level=we.levels.values[t];let l=(e._childLevel|0)+1;if(l<1&&(l=1),o!==null&&typeof o=="object"){for(;l--&&typeof i[0]=="object";)Object.assign(a,i.shift());o=i.length?Zr(i.shift(),i):void 0}else typeof o=="string"&&(o=Zr(i.shift(),i));return o!==void 0&&(a.msg=o),a}function jt(e,t,r,n){for(const i in e)if(n&&e[i]instanceof Error)e[i]=we.stdSerializers.err(e[i]);else if(typeof e[i]=="object"&&!Array.isArray(e[i]))for(const o in e[i])t&&t.indexOf(o)>-1&&o in r&&(e[i][o]=r[o](e[i][o]))}function He(e,t,r){return function(){const n=new Array(1+arguments.length);n[0]=t;for(var i=1;i<n.length;i++)n[i]=arguments[i-1];return e[r].apply(this,n)}}function us(e,t,r){const n=t.send,i=t.ts,o=t.methodLevel,a=t.methodValue,l=t.val,u=e._logEvent.bindings;jt(r,e._serialize||Object.keys(e.serializers),e.serializers,e._stdErrSerialize===void 0?!0:e._stdErrSerialize),e._logEvent.ts=i,e._logEvent.messages=r.filter(function(h){return u.indexOf(h)===-1}),e._logEvent.level.label=o,e._logEvent.level.value=a,n(o,e._logEvent,l),e._logEvent=sr(u)}function sr(e){return{ts:0,messages:[],bindings:e||[],level:{label:"",value:0}}}function cs(e){const t={type:e.constructor.name,msg:e.message,stack:e.stack};for(const r in e)t[r]===void 0&&(t[r]=e[r]);return t}function fs(e){return typeof e.timestamp=="function"?e.timestamp:e.timestamp===!1?Ln:Pn}function At(){return{}}function Yt(e){return e}function ot(){}function Ln(){return!1}function Pn(){return Date.now()}function ls(){return Math.round(Date.now()/1e3)}function hs(){return new Date(Date.now()).toISOString()}function ds(){function e(t){return typeof t<"u"&&t}try{return typeof globalThis<"u"||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch{return e(self)||e(window)||e(this)||{}}}const gr=V.getDefaultExportFromCjs(ke),ps={level:"info"},ut="custom_context",yr=1e3*1024;let bs=class{constructor(t){this.nodeValue=t,this.sizeInBytes=new TextEncoder().encode(this.nodeValue).length,this.next=null}get value(){return this.nodeValue}get size(){return this.sizeInBytes}},Yr=class{constructor(t){this.head=null,this.tail=null,this.lengthInNodes=0,this.maxSizeInBytes=t,this.sizeInBytes=0}append(t){const r=new bs(t);if(r.size>this.maxSizeInBytes)throw new Error(`[LinkedList] Value too big to insert into list: ${t} with size ${r.size}`);for(;this.size+r.size>this.maxSizeInBytes;)this.shift();this.head?(this.tail&&(this.tail.next=r),this.tail=r):(this.head=r,this.tail=r),this.lengthInNodes++,this.sizeInBytes+=r.size}shift(){if(!this.head)return;const t=this.head;this.head=this.head.next,this.head||(this.tail=null),this.lengthInNodes--,this.sizeInBytes-=t.size}toArray(){const t=[];let r=this.head;for(;r!==null;)t.push(r.value),r=r.next;return t}get length(){return this.lengthInNodes}get size(){return this.sizeInBytes}toOrderedArray(){return Array.from(this)}[Symbol.iterator](){let t=this.head;return{next:()=>{if(!t)return{done:!0,value:null};const r=t.value;return t=t.next,{done:!1,value:r}}}}},jn=class{constructor(t,r=yr){this.level=t??"error",this.levelValue=ke.levels.values[this.level],this.MAX_LOG_SIZE_IN_BYTES=r,this.logs=new Yr(this.MAX_LOG_SIZE_IN_BYTES)}forwardToConsole(t,r){r===ke.levels.values.error?console.error(t):r===ke.levels.values.warn?console.warn(t):r===ke.levels.values.debug?console.debug(t):r===ke.levels.values.trace?console.trace(t):console.log(t)}appendToLogs(t){this.logs.append(qe({timestamp:new Date().toISOString(),log:t}));const r=typeof t=="string"?JSON.parse(t).level:t.level;r>=this.levelValue&&this.forwardToConsole(t,r)}getLogs(){return this.logs}clearLogs(){this.logs=new Yr(this.MAX_LOG_SIZE_IN_BYTES)}getLogArray(){return Array.from(this.logs)}logsToBlob(t){const r=this.getLogArray();return r.push(qe({extraMetadata:t})),new Blob(r,{type:"application/json"})}};class gs{constructor(t,r=yr){this.baseChunkLogger=new jn(t,r)}write(t){this.baseChunkLogger.appendToLogs(t)}getLogs(){return this.baseChunkLogger.getLogs()}clearLogs(){this.baseChunkLogger.clearLogs()}getLogArray(){return this.baseChunkLogger.getLogArray()}logsToBlob(t){return this.baseChunkLogger.logsToBlob(t)}downloadLogsBlobInBrowser(t){const r=URL.createObjectURL(this.logsToBlob(t)),n=document.createElement("a");n.href=r,n.download=`walletconnect-logs-${new Date().toISOString()}.txt`,document.body.appendChild(n),n.click(),document.body.removeChild(n),URL.revokeObjectURL(r)}}class ys{constructor(t,r=yr){this.baseChunkLogger=new jn(t,r)}write(t){this.baseChunkLogger.appendToLogs(t)}getLogs(){return this.baseChunkLogger.getLogs()}clearLogs(){this.baseChunkLogger.clearLogs()}getLogArray(){return this.baseChunkLogger.getLogArray()}logsToBlob(t){return this.baseChunkLogger.logsToBlob(t)}}var ws=Object.defineProperty,ms=Object.defineProperties,vs=Object.getOwnPropertyDescriptors,Xr=Object.getOwnPropertySymbols,_s=Object.prototype.hasOwnProperty,Es=Object.prototype.propertyIsEnumerable,Qr=(e,t,r)=>t in e?ws(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ct=(e,t)=>{for(var r in t||(t={}))_s.call(t,r)&&Qr(e,r,t[r]);if(Xr)for(var r of Xr(t))Es.call(t,r)&&Qr(e,r,t[r]);return e},It=(e,t)=>ms(e,vs(t));function xs(e){return It(Ct({},e),{level:(e==null?void 0:e.level)||ps.level})}function Fs(e,t=ut){return e[t]||""}function As(e,t,r=ut){return e[r]=t,e}function Un(e,t=ut){let r="";return typeof e.bindings>"u"?r=Fs(e,t):r=e.bindings().context||"",r}function Ss(e,t,r=ut){const n=Un(e,r);return n.trim()?`${n}/${t}`:t}function Bs(e,t,r=ut){const n=Ss(e,t,r),i=e.child({context:n});return As(i,n,r)}function Os(e){var t,r;const n=new gs((t=e.opts)==null?void 0:t.level,e.maxSizeInBytes);return{logger:gr(It(Ct({},e.opts),{level:"trace",browser:It(Ct({},(r=e.opts)==null?void 0:r.browser),{write:i=>n.write(i)})})),chunkLoggerController:n}}function Ts(e){var t;const r=new ys((t=e.opts)==null?void 0:t.level,e.maxSizeInBytes);return{logger:gr(It(Ct({},e.opts),{level:"trace"}),r),chunkLoggerController:r}}function Cs(e){return typeof e.loggerOverride<"u"&&typeof e.loggerOverride!="string"?{logger:e.loggerOverride,chunkLoggerController:null}:typeof window<"u"?Os(e):Ts(e)}function Is(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function Nn(e,...t){if(!Is(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function en(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Rs(e,t){Nn(e);const r=t.outputLen;if(e.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)}const Ge=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Xt=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);function Ls(e){if(typeof e!="string")throw new Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array(new TextEncoder().encode(e))}function zn(e){return typeof e=="string"&&(e=Ls(e)),Nn(e),e}class Ps{clone(){return this._cloneInto()}}function js(e){const t=n=>e().update(zn(n)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function Dn(e=32){if(Ge&&typeof Ge.getRandomValues=="function")return Ge.getRandomValues(new Uint8Array(e));if(Ge&&typeof Ge.randomBytes=="function")return Ge.randomBytes(e);throw new Error("crypto.getRandomValues must be defined")}function Us(e,t,r,n){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,r,n);const i=BigInt(32),o=BigInt(4294967295),a=Number(r>>i&o),l=Number(r&o),u=n?4:0,h=n?0:4;e.setUint32(t+u,a,n),e.setUint32(t+h,l,n)}class Ns extends Ps{constructor(t,r,n,i){super(),this.blockLen=t,this.outputLen=r,this.padOffset=n,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=Xt(this.buffer)}update(t){en(this);const{view:r,buffer:n,blockLen:i}=this;t=zn(t);const o=t.length;for(let a=0;a<o;){const l=Math.min(i-this.pos,o-a);if(l===i){const u=Xt(t);for(;i<=o-a;a+=i)this.process(u,a);continue}n.set(t.subarray(a,a+l),this.pos),this.pos+=l,a+=l,this.pos===i&&(this.process(r,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){en(this),Rs(t,this),this.finished=!0;const{buffer:r,view:n,blockLen:i,isLE:o}=this;let{pos:a}=this;r[a++]=128,this.buffer.subarray(a).fill(0),this.padOffset>i-a&&(this.process(n,0),a=0);for(let p=a;p<i;p++)r[p]=0;Us(n,i-8,BigInt(this.length*8),o),this.process(n,0);const l=Xt(t),u=this.outputLen;if(u%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const h=u/4,f=this.get();if(h>f.length)throw new Error("_sha2: outputLen bigger than state");for(let p=0;p<h;p++)l.setUint32(4*p,f[p],o)}digest(){const{buffer:t,outputLen:r}=this;this.digestInto(t);const n=t.slice(0,r);return this.destroy(),n}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:r,buffer:n,length:i,finished:o,destroyed:a,pos:l}=this;return t.length=i,t.pos=l,t.finished=o,t.destroyed=a,i%r&&t.buffer.set(n),t}}const St=BigInt(2**32-1),ar=BigInt(32);function Mn(e,t=!1){return t?{h:Number(e&St),l:Number(e>>ar&St)}:{h:Number(e>>ar&St)|0,l:Number(e&St)|0}}function zs(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let i=0;i<e.length;i++){const{h:o,l:a}=Mn(e[i],t);[r[i],n[i]]=[o,a]}return[r,n]}const Ds=(e,t)=>BigInt(e>>>0)<<ar|BigInt(t>>>0),Ms=(e,t,r)=>e>>>r,$s=(e,t,r)=>e<<32-r|t>>>r,Hs=(e,t,r)=>e>>>r|t<<32-r,Gs=(e,t,r)=>e<<32-r|t>>>r,ks=(e,t,r)=>e<<64-r|t>>>r-32,qs=(e,t,r)=>e>>>r-32|t<<64-r,Ws=(e,t)=>t,Vs=(e,t)=>e,Js=(e,t,r)=>e<<r|t>>>32-r,Ks=(e,t,r)=>t<<r|e>>>32-r,Zs=(e,t,r)=>t<<r-32|e>>>64-r,Ys=(e,t,r)=>e<<r-32|t>>>64-r;function Xs(e,t,r,n){const i=(t>>>0)+(n>>>0);return{h:e+r+(i/2**32|0)|0,l:i|0}}const Qs=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),ea=(e,t,r,n)=>t+r+n+(e/2**32|0)|0,ta=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),ra=(e,t,r,n,i)=>t+r+n+i+(e/2**32|0)|0,na=(e,t,r,n,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(i>>>0),ia=(e,t,r,n,i,o)=>t+r+n+i+o+(e/2**32|0)|0,B={fromBig:Mn,split:zs,toBig:Ds,shrSH:Ms,shrSL:$s,rotrSH:Hs,rotrSL:Gs,rotrBH:ks,rotrBL:qs,rotr32H:Ws,rotr32L:Vs,rotlSH:Js,rotlSL:Ks,rotlBH:Zs,rotlBL:Ys,add:Xs,add3L:Qs,add3H:ea,add4L:ta,add4H:ra,add5H:ia,add5L:na},[oa,sa]=B.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(e=>BigInt(e))),Te=new Uint32Array(80),Ce=new Uint32Array(80);class aa extends Ns{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:t,Al:r,Bh:n,Bl:i,Ch:o,Cl:a,Dh:l,Dl:u,Eh:h,El:f,Fh:p,Fl:w,Gh:g,Gl:b,Hh:_,Hl:R}=this;return[t,r,n,i,o,a,l,u,h,f,p,w,g,b,_,R]}set(t,r,n,i,o,a,l,u,h,f,p,w,g,b,_,R){this.Ah=t|0,this.Al=r|0,this.Bh=n|0,this.Bl=i|0,this.Ch=o|0,this.Cl=a|0,this.Dh=l|0,this.Dl=u|0,this.Eh=h|0,this.El=f|0,this.Fh=p|0,this.Fl=w|0,this.Gh=g|0,this.Gl=b|0,this.Hh=_|0,this.Hl=R|0}process(t,r){for(let m=0;m<16;m++,r+=4)Te[m]=t.getUint32(r),Ce[m]=t.getUint32(r+=4);for(let m=16;m<80;m++){const O=Te[m-15]|0,N=Ce[m-15]|0,H=B.rotrSH(O,N,1)^B.rotrSH(O,N,8)^B.shrSH(O,N,7),k=B.rotrSL(O,N,1)^B.rotrSL(O,N,8)^B.shrSL(O,N,7),z=Te[m-2]|0,q=Ce[m-2]|0,pe=B.rotrSH(z,q,19)^B.rotrBH(z,q,61)^B.shrSH(z,q,6),be=B.rotrSL(z,q,19)^B.rotrBL(z,q,61)^B.shrSL(z,q,6),ue=B.add4L(k,be,Ce[m-7],Ce[m-16]),Ie=B.add4H(ue,H,pe,Te[m-7],Te[m-16]);Te[m]=Ie|0,Ce[m]=ue|0}let{Ah:n,Al:i,Bh:o,Bl:a,Ch:l,Cl:u,Dh:h,Dl:f,Eh:p,El:w,Fh:g,Fl:b,Gh:_,Gl:R,Hh:P,Hl:I}=this;for(let m=0;m<80;m++){const O=B.rotrSH(p,w,14)^B.rotrSH(p,w,18)^B.rotrBH(p,w,41),N=B.rotrSL(p,w,14)^B.rotrSL(p,w,18)^B.rotrBL(p,w,41),H=p&g^~p&_,k=w&b^~w&R,z=B.add5L(I,N,k,sa[m],Ce[m]),q=B.add5H(z,P,O,H,oa[m],Te[m]),pe=z|0,be=B.rotrSH(n,i,28)^B.rotrBH(n,i,34)^B.rotrBH(n,i,39),ue=B.rotrSL(n,i,28)^B.rotrBL(n,i,34)^B.rotrBL(n,i,39),Ie=n&o^n&l^o&l,Ve=i&a^i&u^a&u;P=_|0,I=R|0,_=g|0,R=b|0,g=p|0,b=w|0,{h:p,l:w}=B.add(h|0,f|0,q|0,pe|0),h=l|0,f=u|0,l=o|0,u=a|0,o=n|0,a=i|0;const x=B.add3L(pe,ue,Ve);n=B.add3H(x,q,be,Ie),i=x|0}({h:n,l:i}=B.add(this.Ah|0,this.Al|0,n|0,i|0)),{h:o,l:a}=B.add(this.Bh|0,this.Bl|0,o|0,a|0),{h:l,l:u}=B.add(this.Ch|0,this.Cl|0,l|0,u|0),{h,l:f}=B.add(this.Dh|0,this.Dl|0,h|0,f|0),{h:p,l:w}=B.add(this.Eh|0,this.El|0,p|0,w|0),{h:g,l:b}=B.add(this.Fh|0,this.Fl|0,g|0,b|0),{h:_,l:R}=B.add(this.Gh|0,this.Gl|0,_|0,R|0),{h:P,l:I}=B.add(this.Hh|0,this.Hl|0,P|0,I|0),this.set(n,i,o,a,l,u,h,f,p,w,g,b,_,R,P,I)}roundClean(){Te.fill(0),Ce.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const ua=js(()=>new aa);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const wr=BigInt(0),$n=BigInt(1),ca=BigInt(2);function mr(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function vr(e){if(!mr(e))throw new Error("Uint8Array expected")}function Qt(e,t){if(typeof t!="boolean")throw new Error(e+" boolean expected, got "+t)}const fa=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function _r(e){vr(e);let t="";for(let r=0;r<e.length;r++)t+=fa[e[r]];return t}function Hn(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?wr:BigInt("0x"+e)}const _e={_0:48,_9:57,A:65,F:70,a:97,f:102};function tn(e){if(e>=_e._0&&e<=_e._9)return e-_e._0;if(e>=_e.A&&e<=_e.F)return e-(_e.A-10);if(e>=_e.a&&e<=_e.f)return e-(_e.a-10)}function Gn(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);const t=e.length,r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(r);for(let i=0,o=0;i<r;i++,o+=2){const a=tn(e.charCodeAt(o)),l=tn(e.charCodeAt(o+1));if(a===void 0||l===void 0){const u=e[o]+e[o+1];throw new Error('hex string expected, got non-hex character "'+u+'" at index '+o)}n[i]=a*16+l}return n}function la(e){return Hn(_r(e))}function Tt(e){return vr(e),Hn(_r(Uint8Array.from(e).reverse()))}function kn(e,t){return Gn(e.toString(16).padStart(t*2,"0"))}function ur(e,t){return kn(e,t).reverse()}function Ee(e,t,r){let n;if(typeof t=="string")try{n=Gn(t)}catch(o){throw new Error(e+" must be hex string or Uint8Array, cause: "+o)}else if(mr(t))n=Uint8Array.from(t);else throw new Error(e+" must be hex string or Uint8Array");const i=n.length;if(typeof r=="number"&&i!==r)throw new Error(e+" of length "+r+" expected, got "+i);return n}function rn(...e){let t=0;for(let n=0;n<e.length;n++){const i=e[n];vr(i),t+=i.length}const r=new Uint8Array(t);for(let n=0,i=0;n<e.length;n++){const o=e[n];r.set(o,i),i+=o.length}return r}const er=e=>typeof e=="bigint"&&wr<=e;function ha(e,t,r){return er(e)&&er(t)&&er(r)&&t<=e&&e<r}function rt(e,t,r,n){if(!ha(t,r,n))throw new Error("expected valid "+e+": "+r+" <= n < "+n+", got "+t)}function da(e){let t;for(t=0;e>wr;e>>=$n,t+=1);return t}const pa=e=>(ca<<BigInt(e-1))-$n,ba={bigint:e=>typeof e=="bigint",function:e=>typeof e=="function",boolean:e=>typeof e=="boolean",string:e=>typeof e=="string",stringOrUint8Array:e=>typeof e=="string"||mr(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>typeof e=="function"&&Number.isSafeInteger(e.outputLen)};function Er(e,t,r={}){const n=(i,o,a)=>{const l=ba[o];if(typeof l!="function")throw new Error("invalid validator function");const u=e[i];if(!(a&&u===void 0)&&!l(u,e))throw new Error("param "+String(i)+" is invalid. Expected "+o+", got "+u)};for(const[i,o]of Object.entries(t))n(i,o,!1);for(const[i,o]of Object.entries(r))n(i,o,!0);return e}function nn(e){const t=new WeakMap;return(r,...n)=>{const i=t.get(r);if(i!==void 0)return i;const o=e(r,...n);return t.set(r,o),o}}const Y=BigInt(0),W=BigInt(1),Ne=BigInt(2),ga=BigInt(3),cr=BigInt(4),on=BigInt(5),sn=BigInt(8);function K(e,t){const r=e%t;return r>=Y?r:t+r}function ya(e,t,r){if(t<Y)throw new Error("invalid exponent, negatives unsupported");if(r<=Y)throw new Error("invalid modulus");if(r===W)return Y;let n=W;for(;t>Y;)t&W&&(n=n*e%r),e=e*e%r,t>>=W;return n}function ye(e,t,r){let n=e;for(;t-- >Y;)n*=n,n%=r;return n}function an(e,t){if(e===Y)throw new Error("invert: expected non-zero number");if(t<=Y)throw new Error("invert: expected positive modulus, got "+t);let r=K(e,t),n=t,i=Y,o=W;for(;r!==Y;){const a=n/r,l=n%r,u=i-o*a;n=r,r=l,i=o,o=u}if(n!==W)throw new Error("invert: does not exist");return K(i,t)}function wa(e){const t=(e-W)/Ne;let r,n,i;for(r=e-W,n=0;r%Ne===Y;r/=Ne,n++);for(i=Ne;i<e&&ya(i,t,e)!==e-W;i++)if(i>1e3)throw new Error("Cannot find square root: likely non-prime P");if(n===1){const a=(e+W)/cr;return function(l,u){const h=l.pow(u,a);if(!l.eql(l.sqr(h),u))throw new Error("Cannot find square root");return h}}const o=(r+W)/Ne;return function(a,l){if(a.pow(l,t)===a.neg(a.ONE))throw new Error("Cannot find square root");let u=n,h=a.pow(a.mul(a.ONE,i),r),f=a.pow(l,o),p=a.pow(l,r);for(;!a.eql(p,a.ONE);){if(a.eql(p,a.ZERO))return a.ZERO;let w=1;for(let b=a.sqr(p);w<u&&!a.eql(b,a.ONE);w++)b=a.sqr(b);const g=a.pow(h,W<<BigInt(u-w-1));h=a.sqr(g),f=a.mul(f,g),p=a.mul(p,h),u=w}return f}}function ma(e){if(e%cr===ga){const t=(e+W)/cr;return function(r,n){const i=r.pow(n,t);if(!r.eql(r.sqr(i),n))throw new Error("Cannot find square root");return i}}if(e%sn===on){const t=(e-on)/sn;return function(r,n){const i=r.mul(n,Ne),o=r.pow(i,t),a=r.mul(n,o),l=r.mul(r.mul(a,Ne),o),u=r.mul(a,r.sub(l,r.ONE));if(!r.eql(r.sqr(u),n))throw new Error("Cannot find square root");return u}}return wa(e)}const va=(e,t)=>(K(e,t)&W)===W,_a=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function Ea(e){const t={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},r=_a.reduce((n,i)=>(n[i]="function",n),t);return Er(e,r)}function xa(e,t,r){if(r<Y)throw new Error("invalid exponent, negatives unsupported");if(r===Y)return e.ONE;if(r===W)return t;let n=e.ONE,i=t;for(;r>Y;)r&W&&(n=e.mul(n,i)),i=e.sqr(i),r>>=W;return n}function Fa(e,t){const r=new Array(t.length),n=t.reduce((o,a,l)=>e.is0(a)?o:(r[l]=o,e.mul(o,a)),e.ONE),i=e.inv(n);return t.reduceRight((o,a,l)=>e.is0(a)?o:(r[l]=e.mul(o,r[l]),e.mul(o,a)),i),r}function qn(e,t){const r=t!==void 0?t:e.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function Wn(e,t,r=!1,n={}){if(e<=Y)throw new Error("invalid field: expected ORDER > 0, got "+e);const{nBitLength:i,nByteLength:o}=qn(e,t);if(o>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let a;const l=Object.freeze({ORDER:e,isLE:r,BITS:i,BYTES:o,MASK:pa(i),ZERO:Y,ONE:W,create:u=>K(u,e),isValid:u=>{if(typeof u!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof u);return Y<=u&&u<e},is0:u=>u===Y,isOdd:u=>(u&W)===W,neg:u=>K(-u,e),eql:(u,h)=>u===h,sqr:u=>K(u*u,e),add:(u,h)=>K(u+h,e),sub:(u,h)=>K(u-h,e),mul:(u,h)=>K(u*h,e),pow:(u,h)=>xa(l,u,h),div:(u,h)=>K(u*an(h,e),e),sqrN:u=>u*u,addN:(u,h)=>u+h,subN:(u,h)=>u-h,mulN:(u,h)=>u*h,inv:u=>an(u,e),sqrt:n.sqrt||(u=>(a||(a=ma(e)),a(l,u))),invertBatch:u=>Fa(l,u),cmov:(u,h,f)=>f?h:u,toBytes:u=>r?ur(u,o):kn(u,o),fromBytes:u=>{if(u.length!==o)throw new Error("Field.fromBytes: expected "+o+" bytes, got "+u.length);return r?Tt(u):la(u)}});return Object.freeze(l)}const un=BigInt(0),Bt=BigInt(1);function tr(e,t){const r=t.negate();return e?r:t}function Vn(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function rr(e,t){Vn(e,t);const r=Math.ceil(t/e)+1,n=2**(e-1);return{windows:r,windowSize:n}}function Aa(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((r,n)=>{if(!(r instanceof t))throw new Error("invalid point at index "+n)})}function Sa(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((r,n)=>{if(!t.isValid(r))throw new Error("invalid scalar at index "+n)})}const nr=new WeakMap,Jn=new WeakMap;function ir(e){return Jn.get(e)||1}function Ba(e,t){return{constTimeNegate:tr,hasPrecomputes(r){return ir(r)!==1},unsafeLadder(r,n,i=e.ZERO){let o=r;for(;n>un;)n&Bt&&(i=i.add(o)),o=o.double(),n>>=Bt;return i},precomputeWindow(r,n){const{windows:i,windowSize:o}=rr(n,t),a=[];let l=r,u=l;for(let h=0;h<i;h++){u=l,a.push(u);for(let f=1;f<o;f++)u=u.add(l),a.push(u);l=u.double()}return a},wNAF(r,n,i){const{windows:o,windowSize:a}=rr(r,t);let l=e.ZERO,u=e.BASE;const h=BigInt(2**r-1),f=2**r,p=BigInt(r);for(let w=0;w<o;w++){const g=w*a;let b=Number(i&h);i>>=p,b>a&&(b-=f,i+=Bt);const _=g,R=g+Math.abs(b)-1,P=w%2!==0,I=b<0;b===0?u=u.add(tr(P,n[_])):l=l.add(tr(I,n[R]))}return{p:l,f:u}},wNAFUnsafe(r,n,i,o=e.ZERO){const{windows:a,windowSize:l}=rr(r,t),u=BigInt(2**r-1),h=2**r,f=BigInt(r);for(let p=0;p<a;p++){const w=p*l;if(i===un)break;let g=Number(i&u);if(i>>=f,g>l&&(g-=h,i+=Bt),g===0)continue;let b=n[w+Math.abs(g)-1];g<0&&(b=b.negate()),o=o.add(b)}return o},getPrecomputes(r,n,i){let o=nr.get(n);return o||(o=this.precomputeWindow(n,r),r!==1&&nr.set(n,i(o))),o},wNAFCached(r,n,i){const o=ir(r);return this.wNAF(o,this.getPrecomputes(o,r,i),n)},wNAFCachedUnsafe(r,n,i,o){const a=ir(r);return a===1?this.unsafeLadder(r,n,o):this.wNAFUnsafe(a,this.getPrecomputes(a,r,i),n,o)},setWindowSize(r,n){Vn(n,t),Jn.set(r,n),nr.delete(r)}}}function Oa(e,t,r,n){if(Aa(r,e),Sa(n,t),r.length!==n.length)throw new Error("arrays of points and scalars must have equal length");const i=e.ZERO,o=da(BigInt(r.length)),a=o>12?o-3:o>4?o-2:o?2:1,l=(1<<a)-1,u=new Array(l+1).fill(i),h=Math.floor((t.BITS-1)/a)*a;let f=i;for(let p=h;p>=0;p-=a){u.fill(i);for(let g=0;g<n.length;g++){const b=n[g],_=Number(b>>BigInt(p)&BigInt(l));u[_]=u[_].add(r[g])}let w=i;for(let g=u.length-1,b=i;g>0;g--)b=b.add(u[g]),w=w.add(b);if(f=f.add(w),p!==0)for(let g=0;g<a;g++)f=f.double()}return f}function Ta(e){return Ea(e.Fp),Er(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...qn(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}const he=BigInt(0),ne=BigInt(1),Ot=BigInt(2),Ca=BigInt(8),Ia={zip215:!0};function Ra(e){const t=Ta(e);return Er(e,{hash:"function",a:"bigint",d:"bigint",randomBytes:"function"},{adjustScalarBytes:"function",domain:"function",uvRatio:"function",mapToCurve:"function"}),Object.freeze({...t})}function La(e){const t=Ra(e),{Fp:r,n,prehash:i,hash:o,randomBytes:a,nByteLength:l,h:u}=t,h=Ot<<BigInt(l*8)-ne,f=r.create,p=Wn(t.n,t.nBitLength),w=t.uvRatio||((x,y)=>{try{return{isValid:!0,value:r.sqrt(x*r.inv(y))}}catch{return{isValid:!1,value:he}}}),g=t.adjustScalarBytes||(x=>x),b=t.domain||((x,y,E)=>{if(Qt("phflag",E),y.length||E)throw new Error("Contexts/pre-hash are not supported");return x});function _(x,y){rt("coordinate "+x,y,he,h)}function R(x){if(!(x instanceof m))throw new Error("ExtendedPoint expected")}const P=nn((x,y)=>{const{ex:E,ey:F,ez:T}=x,C=x.is0();y==null&&(y=C?Ca:r.inv(T));const L=f(E*y),D=f(F*y),j=f(T*y);if(C)return{x:he,y:ne};if(j!==ne)throw new Error("invZ was invalid");return{x:L,y:D}}),I=nn(x=>{const{a:y,d:E}=t;if(x.is0())throw new Error("bad point: ZERO");const{ex:F,ey:T,ez:C,et:L}=x,D=f(F*F),j=f(T*T),M=f(C*C),A=f(M*M),X=f(D*y),ce=f(M*f(X+j)),J=f(A+f(E*f(D*j)));if(ce!==J)throw new Error("bad point: equation left != right (1)");const re=f(F*T),fe=f(C*L);if(re!==fe)throw new Error("bad point: equation left != right (2)");return!0});class m{constructor(y,E,F,T){this.ex=y,this.ey=E,this.ez=F,this.et=T,_("x",y),_("y",E),_("z",F),_("t",T),Object.freeze(this)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static fromAffine(y){if(y instanceof m)throw new Error("extended point not allowed");const{x:E,y:F}=y||{};return _("x",E),_("y",F),new m(E,F,ne,f(E*F))}static normalizeZ(y){const E=r.invertBatch(y.map(F=>F.ez));return y.map((F,T)=>F.toAffine(E[T])).map(m.fromAffine)}static msm(y,E){return Oa(m,p,y,E)}_setWindowSize(y){H.setWindowSize(this,y)}assertValidity(){I(this)}equals(y){R(y);const{ex:E,ey:F,ez:T}=this,{ex:C,ey:L,ez:D}=y,j=f(E*D),M=f(C*T),A=f(F*D),X=f(L*T);return j===M&&A===X}is0(){return this.equals(m.ZERO)}negate(){return new m(f(-this.ex),this.ey,this.ez,f(-this.et))}double(){const{a:y}=t,{ex:E,ey:F,ez:T}=this,C=f(E*E),L=f(F*F),D=f(Ot*f(T*T)),j=f(y*C),M=E+F,A=f(f(M*M)-C-L),X=j+L,ce=X-D,J=j-L,re=f(A*ce),fe=f(X*J),ge=f(A*J),Ae=f(ce*X);return new m(re,fe,Ae,ge)}add(y){R(y);const{a:E,d:F}=t,{ex:T,ey:C,ez:L,et:D}=this,{ex:j,ey:M,ez:A,et:X}=y;if(E===BigInt(-1)){const ft=f((C-T)*(M+j)),lt=f((C+T)*(M-j)),Ze=f(lt-ft);if(Ze===he)return this.double();const ht=f(L*Ot*X),dt=f(D*Ot*A),pt=dt+ht,bt=lt+ft,gt=dt-ht,De=f(pt*Ze),Ye=f(bt*gt),yt=f(pt*gt),oe=f(Ze*bt);return new m(De,Ye,oe,yt)}const ce=f(T*j),J=f(C*M),re=f(D*F*X),fe=f(L*A),ge=f((T+C)*(j+M)-ce-J),Ae=fe-re,Je=fe+re,Ke=f(J-E*ce),Dt=f(ge*Ae),Mt=f(Je*Ke),$t=f(ge*Ke),Ht=f(Ae*Je);return new m(Dt,Mt,Ht,$t)}subtract(y){return this.add(y.negate())}wNAF(y){return H.wNAFCached(this,y,m.normalizeZ)}multiply(y){const E=y;rt("scalar",E,ne,n);const{p:F,f:T}=this.wNAF(E);return m.normalizeZ([F,T])[0]}multiplyUnsafe(y,E=m.ZERO){const F=y;return rt("scalar",F,he,n),F===he?N:this.is0()||F===ne?this:H.wNAFCachedUnsafe(this,F,m.normalizeZ,E)}isSmallOrder(){return this.multiplyUnsafe(u).is0()}isTorsionFree(){return H.unsafeLadder(this,n).is0()}toAffine(y){return P(this,y)}clearCofactor(){const{h:y}=t;return y===ne?this:this.multiplyUnsafe(y)}static fromHex(y,E=!1){const{d:F,a:T}=t,C=r.BYTES;y=Ee("pointHex",y,C),Qt("zip215",E);const L=y.slice(),D=y[C-1];L[C-1]=D&-129;const j=Tt(L),M=E?h:r.ORDER;rt("pointHex.y",j,he,M);const A=f(j*j),X=f(A-ne),ce=f(F*A-T);let{isValid:J,value:re}=w(X,ce);if(!J)throw new Error("Point.fromHex: invalid y coordinate");const fe=(re&ne)===ne,ge=(D&128)!==0;if(!E&&re===he&&ge)throw new Error("Point.fromHex: x=0 and x_0=1");return ge!==fe&&(re=f(-re)),m.fromAffine({x:re,y:j})}static fromPrivateKey(y){return q(y).point}toRawBytes(){const{x:y,y:E}=this.toAffine(),F=ur(E,r.BYTES);return F[F.length-1]|=y&ne?128:0,F}toHex(){return _r(this.toRawBytes())}}m.BASE=new m(t.Gx,t.Gy,ne,f(t.Gx*t.Gy)),m.ZERO=new m(he,ne,ne,he);const{BASE:O,ZERO:N}=m,H=Ba(m,l*8);function k(x){return K(x,n)}function z(x){return k(Tt(x))}function q(x){const y=r.BYTES;x=Ee("private key",x,y);const E=Ee("hashed private key",o(x),2*y),F=g(E.slice(0,y)),T=E.slice(y,2*y),C=z(F),L=O.multiply(C),D=L.toRawBytes();return{head:F,prefix:T,scalar:C,point:L,pointBytes:D}}function pe(x){return q(x).pointBytes}function be(x=new Uint8Array,...y){const E=rn(...y);return z(o(b(E,Ee("context",x),!!i)))}function ue(x,y,E={}){x=Ee("message",x),i&&(x=i(x));const{prefix:F,scalar:T,pointBytes:C}=q(y),L=be(E.context,F,x),D=O.multiply(L).toRawBytes(),j=be(E.context,D,C,x),M=k(L+j*T);rt("signature.s",M,he,n);const A=rn(D,ur(M,r.BYTES));return Ee("result",A,r.BYTES*2)}const Ie=Ia;function Ve(x,y,E,F=Ie){const{context:T,zip215:C}=F,L=r.BYTES;x=Ee("signature",x,2*L),y=Ee("message",y),E=Ee("publicKey",E,L),C!==void 0&&Qt("zip215",C),i&&(y=i(y));const D=Tt(x.slice(L,2*L));let j,M,A;try{j=m.fromHex(E,C),M=m.fromHex(x.slice(0,L),C),A=O.multiplyUnsafe(D)}catch{return!1}if(!C&&j.isSmallOrder())return!1;const X=be(T,M.toRawBytes(),j.toRawBytes(),y);return M.add(j.multiplyUnsafe(X)).subtract(A).clearCofactor().equals(m.ZERO)}return O._setWindowSize(8),{CURVE:t,getPublicKey:pe,sign:ue,verify:Ve,ExtendedPoint:m,utils:{getExtendedPublicKey:q,randomPrivateKey:()=>a(r.BYTES),precompute(x=8,y=m.BASE){return y._setWindowSize(x),y.multiply(BigInt(3)),y}}}}BigInt(0),BigInt(1);const xr=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),cn=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");BigInt(0);const Pa=BigInt(1),fn=BigInt(2);BigInt(3);const ja=BigInt(5),Ua=BigInt(8);function Na(e){const t=BigInt(10),r=BigInt(20),n=BigInt(40),i=BigInt(80),o=xr,a=e*e%o*e%o,l=ye(a,fn,o)*a%o,u=ye(l,Pa,o)*e%o,h=ye(u,ja,o)*u%o,f=ye(h,t,o)*h%o,p=ye(f,r,o)*f%o,w=ye(p,n,o)*p%o,g=ye(w,i,o)*w%o,b=ye(g,i,o)*w%o,_=ye(b,t,o)*h%o;return{pow_p_5_8:ye(_,fn,o)*e%o,b2:a}}function za(e){return e[0]&=248,e[31]&=127,e[31]|=64,e}function Da(e,t){const r=xr,n=K(t*t*t,r),i=K(n*n*t,r),o=Na(e*i).pow_p_5_8;let a=K(e*n*o,r);const l=K(t*a*a,r),u=a,h=K(a*cn,r),f=l===e,p=l===K(-e,r),w=l===K(-e*cn,r);return f&&(a=u),(p||w)&&(a=h),va(a,r)&&(a=K(-a,r)),{isValid:f||p,value:a}}const Ma=Wn(xr,void 0,!0),$a={a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),Fp:Ma,n:BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),h:Ua,Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),hash:ua,randomBytes:Dn,adjustScalarBytes:za,uvRatio:Da},Kn=La($a),Ha="EdDSA",Ga="JWT",Rt=".",Ut="base64url",Zn="utf8",Yn="utf8",ka=":",qa="did",Wa="key",ln="base58btc",Va="z",Ja="K36",Ka=32;function Fr(e){return globalThis.Buffer!=null?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}function Xn(e=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?Fr(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}function Qn(e,t){t||(t=e.reduce((i,o)=>i+o.length,0));const r=Xn(t);let n=0;for(const i of e)r.set(i,n),n+=i.length;return Fr(r)}function Za(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n<r.length;n++)r[n]=255;for(var i=0;i<e.length;i++){var o=e.charAt(i),a=o.charCodeAt(0);if(r[a]!==255)throw new TypeError(o+" is ambiguous");r[a]=i}var l=e.length,u=e.charAt(0),h=Math.log(l)/Math.log(256),f=Math.log(256)/Math.log(l);function p(b){if(b instanceof Uint8Array||(ArrayBuffer.isView(b)?b=new Uint8Array(b.buffer,b.byteOffset,b.byteLength):Array.isArray(b)&&(b=Uint8Array.from(b))),!(b instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(b.length===0)return"";for(var _=0,R=0,P=0,I=b.length;P!==I&&b[P]===0;)P++,_++;for(var m=(I-P)*f+1>>>0,O=new Uint8Array(m);P!==I;){for(var N=b[P],H=0,k=m-1;(N!==0||H<R)&&k!==-1;k--,H++)N+=256*O[k]>>>0,O[k]=N%l>>>0,N=N/l>>>0;if(N!==0)throw new Error("Non-zero carry");R=H,P++}for(var z=m-R;z!==m&&O[z]===0;)z++;for(var q=u.repeat(_);z<m;++z)q+=e.charAt(O[z]);return q}function w(b){if(typeof b!="string")throw new TypeError("Expected String");if(b.length===0)return new Uint8Array;var _=0;if(b[_]!==" "){for(var R=0,P=0;b[_]===u;)R++,_++;for(var I=(b.length-_)*h+1>>>0,m=new Uint8Array(I);b[_];){var O=r[b.charCodeAt(_)];if(O===255)return;for(var N=0,H=I-1;(O!==0||N<P)&&H!==-1;H--,N++)O+=l*m[H]>>>0,m[H]=O%256>>>0,O=O/256>>>0;if(O!==0)throw new Error("Non-zero carry");P=N,_++}if(b[_]!==" "){for(var k=I-P;k!==I&&m[k]===0;)k++;for(var z=new Uint8Array(R+(I-k)),q=R;k!==I;)z[q++]=m[k++];return z}}}function g(b){var _=w(b);if(_)return _;throw new Error(`Non-${t} character`)}return{encode:p,decodeUnsafe:w,decode:g}}var Ya=Za,Xa=Ya;const ei=e=>{if(e instanceof Uint8Array&&e.constructor.name==="Uint8Array")return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")},Qa=e=>new TextEncoder().encode(e),eu=e=>new TextDecoder().decode(e);class tu{constructor(t,r,n){this.name=t,this.prefix=r,this.baseEncode=n}encode(t){if(t instanceof Uint8Array)return`${this.prefix}${this.baseEncode(t)}`;throw Error("Unknown type, must be binary type")}}class ru{constructor(t,r,n){if(this.name=t,this.prefix=r,r.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=r.codePointAt(0),this.baseDecode=n}decode(t){if(typeof t=="string"){if(t.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(t)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(t.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(t){return ti(this,t)}}class nu{constructor(t){this.decoders=t}or(t){return ti(this,t)}decode(t){const r=t[0],n=this.decoders[r];if(n)return n.decode(t);throw RangeError(`Unable to decode multibase string ${JSON.stringify(t)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const ti=(e,t)=>new nu({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class iu{constructor(t,r,n,i){this.name=t,this.prefix=r,this.baseEncode=n,this.baseDecode=i,this.encoder=new tu(t,r,n),this.decoder=new ru(t,r,i)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}}const Nt=({name:e,prefix:t,encode:r,decode:n})=>new iu(e,t,r,n),ct=({prefix:e,name:t,alphabet:r})=>{const{encode:n,decode:i}=Xa(r,t);return Nt({prefix:e,name:t,encode:n,decode:o=>ei(i(o))})},ou=(e,t,r,n)=>{const i={};for(let f=0;f<t.length;++f)i[t[f]]=f;let o=e.length;for(;e[o-1]==="=";)--o;const a=new Uint8Array(o*r/8|0);let l=0,u=0,h=0;for(let f=0;f<o;++f){const p=i[e[f]];if(p===void 0)throw new SyntaxError(`Non-${n} character`);u=u<<r|p,l+=r,l>=8&&(l-=8,a[h++]=255&u>>l)}if(l>=r||255&u<<8-l)throw new SyntaxError("Unexpected end of data");return a},su=(e,t,r)=>{const n=t[t.length-1]==="=",i=(1<<r)-1;let o="",a=0,l=0;for(let u=0;u<e.length;++u)for(l=l<<8|e[u],a+=8;a>r;)a-=r,o+=t[i&l>>a];if(a&&(o+=t[i&l<<r-a]),n)for(;o.length*r&7;)o+="=";return o},ee=({name:e,prefix:t,bitsPerChar:r,alphabet:n})=>Nt({prefix:t,name:e,encode(i){return su(i,n,r)},decode(i){return ou(i,n,r,e)}}),au=Nt({prefix:"\0",name:"identity",encode:e=>eu(e),decode:e=>Qa(e)});var uu=Object.freeze({__proto__:null,identity:au});const cu=ee({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var fu=Object.freeze({__proto__:null,base2:cu});const lu=ee({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var hu=Object.freeze({__proto__:null,base8:lu});const du=ct({prefix:"9",name:"base10",alphabet:"0123456789"});var pu=Object.freeze({__proto__:null,base10:du});const bu=ee({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),gu=ee({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var yu=Object.freeze({__proto__:null,base16:bu,base16upper:gu});const wu=ee({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),mu=ee({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),vu=ee({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),_u=ee({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),Eu=ee({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),xu=ee({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),Fu=ee({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),Au=ee({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),Su=ee({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var Bu=Object.freeze({__proto__:null,base32:wu,base32upper:mu,base32pad:vu,base32padupper:_u,base32hex:Eu,base32hexupper:xu,base32hexpad:Fu,base32hexpadupper:Au,base32z:Su});const Ou=ct({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),Tu=ct({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var Cu=Object.freeze({__proto__:null,base36:Ou,base36upper:Tu});const Iu=ct({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),Ru=ct({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var Lu=Object.freeze({__proto__:null,base58btc:Iu,base58flickr:Ru});const Pu=ee({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),ju=ee({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),Uu=ee({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),Nu=ee({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var zu=Object.freeze({__proto__:null,base64:Pu,base64pad:ju,base64url:Uu,base64urlpad:Nu});const ri=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),Du=ri.reduce((e,t,r)=>(e[r]=t,e),[]),Mu=ri.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]);function $u(e){return e.reduce((t,r)=>(t+=Du[r],t),"")}function Hu(e){const t=[];for(const r of e){const n=Mu[r.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${r}`);t.push(n)}return new Uint8Array(t)}const Gu=Nt({prefix:"🚀",name:"base256emoji",encode:$u,decode:Hu});var ku=Object.freeze({__proto__:null,base256emoji:Gu}),qu=ni,hn=128,Wu=-128,Vu=Math.pow(2,31);function ni(e,t,r){t=t||[],r=r||0;for(var n=r;e>=Vu;)t[r++]=e&255|hn,e/=128;for(;e&Wu;)t[r++]=e&255|hn,e>>>=7;return t[r]=e|0,ni.bytes=r-n+1,t}var Ju=fr,Ku=128,dn=127;function fr(e,n){var r=0,n=n||0,i=0,o=n,a,l=e.length;do{if(o>=l)throw fr.bytes=0,new RangeError("Could not decode varint");a=e[o++],r+=i<28?(a&dn)<<i:(a&dn)*Math.pow(2,i),i+=7}while(a>=Ku);return fr.bytes=o-n,r}var Zu=Math.pow(2,7),Yu=Math.pow(2,14),Xu=Math.pow(2,21),Qu=Math.pow(2,28),ec=Math.pow(2,35),tc=Math.pow(2,42),rc=Math.pow(2,49),nc=Math.pow(2,56),ic=Math.pow(2,63),oc=function(e){return e<Zu?1:e<Yu?2:e<Xu?3:e<Qu?4:e<ec?5:e<tc?6:e<rc?7:e<nc?8:e<ic?9:10},sc={encode:qu,decode:Ju,encodingLength:oc},ii=sc;const pn=(e,t,r=0)=>(ii.encode(e,t,r),t),bn=e=>ii.encodingLength(e),lr=(e,t)=>{const r=t.byteLength,n=bn(e),i=n+bn(r),o=new Uint8Array(i+r);return pn(e,o,0),pn(r,o,n),o.set(t,i),new ac(e,r,t,o)};class ac{constructor(t,r,n,i){this.code=t,this.size=r,this.digest=n,this.bytes=i}}const oi=({name:e,code:t,encode:r})=>new uc(e,t,r);class uc{constructor(t,r,n){this.name=t,this.code=r,this.encode=n}digest(t){if(t instanceof Uint8Array){const r=this.encode(t);return r instanceof Uint8Array?lr(this.code,r):r.then(n=>lr(this.code,n))}else throw Error("Unknown type, must be binary type")}}const si=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),cc=oi({name:"sha2-256",code:18,encode:si("SHA-256")}),fc=oi({name:"sha2-512",code:19,encode:si("SHA-512")});var lc=Object.freeze({__proto__:null,sha256:cc,sha512:fc});const ai=0,hc="identity",ui=ei,dc=e=>lr(ai,ui(e)),pc={code:ai,name:hc,encode:ui,digest:dc};var bc=Object.freeze({__proto__:null,identity:pc});new TextEncoder,new TextDecoder;const gn={...uu,...fu,...hu,...pu,...yu,...Bu,...Cu,...Lu,...zu,...ku};({...lc,...bc});function ci(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}const yn=ci("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),or=ci("ascii","a",e=>{let t="a";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},e=>{e=e.substring(1);const t=Xn(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),fi={utf8:yn,"utf-8":yn,hex:gn.base16,latin1:or,ascii:or,binary:or,...gn};function zt(e,t="utf8"){const r=fi[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return(t==="utf8"||t==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8"):r.encoder.encode(e).substring(1)}function We(e,t="utf8"){const r=fi[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return(t==="utf8"||t==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?Fr(globalThis.Buffer.from(e,"utf-8")):r.decoder.decode(`${r.prefix}${e}`)}function wn(e){return br(zt(We(e,Ut),Zn))}function Lt(e){return zt(We(qe(e),Zn),Ut)}function li(e){const t=We(Ja,ln),r=Va+zt(Qn([t,e]),ln);return[qa,Wa,r].join(ka)}function gc(e){return zt(e,Ut)}function yc(e){return We(e,Ut)}function wc(e){return We([Lt(e.header),Lt(e.payload)].join(Rt),Yn)}function mc(e){return[Lt(e.header),Lt(e.payload),gc(e.signature)].join(Rt)}function vc(e){const t=e.split(Rt),r=wn(t[0]),n=wn(t[1]),i=yc(t[2]),o=We(t.slice(0,2).join(Rt),Yn);return{header:r,payload:n,signature:i,data:o}}function _c(e=Dn(Ka)){const t=Kn.getPublicKey(e);return{secretKey:Qn([e,t]),publicKey:t}}async function Ec(e,t,r,n,i=de.cjs.fromMiliseconds(Date.now())){const o={alg:Ha,typ:Ga},a=li(n.publicKey),l=i+r,u={iss:a,sub:e,aud:t,iat:i,exp:l},h=wc({header:o,payload:u}),f=Kn.sign(h,n.secretKey.slice(0,32));return mc({header:o,payload:u,signature:f})}const xc="PARSE_ERROR",Fc="INVALID_REQUEST",Ac="METHOD_NOT_FOUND",Sc="INVALID_PARAMS",hi="INTERNAL_ERROR",Ar="SERVER_ERROR",Bc=[-32700,-32600,-32601,-32602,-32603],nt={[xc]:{code:-32700,message:"Parse error"},[Fc]:{code:-32600,message:"Invalid Request"},[Ac]:{code:-32601,message:"Method not found"},[Sc]:{code:-32602,message:"Invalid params"},[hi]:{code:-32603,message:"Internal error"},[Ar]:{code:-32e3,message:"Server error"}},di=Ar;function Oc(e){return Bc.includes(e)}function mn(e){return Object.keys(nt).includes(e)?nt[e]:nt[di]}function Tc(e){const t=Object.values(nt).find(r=>r.code===e);return t||nt[di]}function pi(e,t,r){return e.message.includes("getaddrinfo ENOTFOUND")||e.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${r} RPC url at ${t}`):e}var bi={};/*! *****************************************************************************
|
|
1
|
+
"use strict";const de=require("./index-Cjz6EL9G.js"),V=require("./address-DKM11kf_.js"),_o=require("./index-Drek_-UI.js"),kr=require("./browser-ponyfill-UnUv8h3i.js");function Tn(e=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?globalThis.Buffer.allocUnsafe(e):new Uint8Array(e)}function Eo(e,t){t||(t=e.reduce((i,o)=>i+o.length,0));const r=Tn(t);let n=0;for(const i of e)r.set(i,n),n+=i.length;return r}const qr={...de.identityBase,...de.base2,...de.base8,...de.base10,...de.base16,...de.base32,...de.base36,...de.base58,...de.base64,...de.base256emoji};function Cn(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}const Wr=Cn("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),Kt=Cn("ascii","a",e=>{let t="a";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},e=>{e=e.substring(1);const t=Tn(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),In={utf8:Wr,"utf-8":Wr,hex:qr.base16,latin1:Kt,ascii:Kt,binary:Kt,...qr};function xo(e,t="utf8"){const r=In[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return(t==="utf8"||t==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(e,"utf8"):r.decoder.decode(`${r.prefix}${e}`)}function Fo(e,t="utf8"){const r=In[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return(t==="utf8"||t==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8"):r.encoder.encode(e).substring(1)}var Vr=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))},Ao=function(){function e(t,r,n){this.name=t,this.version=r,this.os=n,this.type="browser"}return e}(),So=function(){function e(t){this.version=t,this.type="node",this.name="node",this.os=V.dist.process.platform}return e}(),Bo=function(){function e(t,r,n,i){this.name=t,this.version=r,this.os=n,this.bot=i,this.type="bot-device"}return e}(),Oo=function(){function e(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return e}(),To=function(){function e(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return e}(),Co=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,Io=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,Jr=3,Ro=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",Co]],Kr=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function Lo(e){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new To:typeof navigator<"u"?jo(navigator.userAgent):No()}function Po(e){return e!==""&&Ro.reduce(function(t,r){var n=r[0],i=r[1];if(t)return t;var o=i.exec(e);return!!o&&[n,o]},!1)}function jo(e){var t=Po(e);if(!t)return null;var r=t[0],n=t[1];if(r==="searchbot")return new Oo;var i=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);i?i.length<Jr&&(i=Vr(Vr([],i,!0),zo(Jr-i.length),!0)):i=[];var o=i.join("."),a=Uo(e),l=Io.exec(e);return l&&l[1]?new Bo(r,o,a,l[1]):new Ao(r,o,a)}function Uo(e){for(var t=0,r=Kr.length;t<r;t++){var n=Kr[t],i=n[0],o=n[1],a=o.exec(e);if(a)return i}return null}function No(){var e=typeof V.dist.process<"u"&&V.dist.process.version;return e?new So(V.dist.process.version.slice(1)):null}function zo(e){for(var t=[],r=0;r<e;r++)t.push("0");return t}const Do={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe",batchFetchMessages:"waku_batchFetchMessages"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe",batchFetchMessages:"irn_batchFetchMessages"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe",batchFetchMessages:"iridium_batchFetchMessages"}};class Mo{}const $o=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Ho=/"(?: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)"\s*:/,Go=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function ko(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){qo(e);return}return t}function qo(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Wo(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const r=e.trim();if(r.length<=9)switch(r.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!Go.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if($o.test(e)||Ho.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,ko)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}function ze(e){return new Promise((t,r)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>r(e.error)})}function Rn(e,t){let r;const n=()=>{if(r)return r;const i=indexedDB.open(e);return i.onupgradeneeded=()=>i.result.createObjectStore(t),r=ze(i),r.then(o=>{o.onclose=()=>r=void 0},()=>{}),r};return(i,o)=>n().then(a=>o(a.transaction(t,i).objectStore(t)))}let Zt;function at(){return Zt||(Zt=Rn("keyval-store","keyval")),Zt}function Vo(e,t=at()){return t("readonly",r=>ze(r.get(e)))}function Jo(e,t,r=at()){return r("readwrite",n=>(n.put(t,e),ze(n.transaction)))}function Ko(e,t=at()){return t("readwrite",r=>(r.delete(e),ze(r.transaction)))}function Zo(e=at()){return e("readwrite",t=>(t.clear(),ze(t.transaction)))}function Yo(e,t){return e.openCursor().onsuccess=function(){this.result&&(t(this.result),this.result.continue())},ze(e.transaction)}function Xo(e=at()){return e("readonly",t=>{if(t.getAllKeys)return ze(t.getAllKeys());const r=[];return Yo(t,n=>r.push(n.key)).then(()=>r)})}const Qo=e=>JSON.stringify(e,(t,r)=>typeof r=="bigint"?r.toString()+"n":r),es=e=>{const t=/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,r=e.replace(t,'$1"$2n"$3');return JSON.parse(r,(n,i)=>typeof i=="string"&&i.match(/^\d+n$/)?BigInt(i.substring(0,i.length-1)):i)};function br(e){if(typeof e!="string")throw new Error(`Cannot safe json parse value of type ${typeof e}`);try{return es(e)}catch{return e}}function qe(e){return typeof e=="string"?e:Qo(e)||""}function ts(e){try{return JSON.stringify(e)}catch{return'"[Circular]"'}}var rs=ns;function ns(e,t,r){var n=r&&r.stringify||ts,i=1;if(typeof e=="object"&&e!==null){var o=t.length+i;if(o===1)return e;var a=new Array(o);a[0]=n(e);for(var l=1;l<o;l++)a[l]=n(t[l]);return a.join(" ")}if(typeof e!="string")return e;var u=t.length;if(u===0)return e;for(var h="",f=1-i,p=-1,w=e&&e.length||0,g=0;g<w;){if(e.charCodeAt(g)===37&&g+1<w){switch(p=p>-1?p:0,e.charCodeAt(g+1)){case 100:case 102:if(f>=u||t[f]==null)break;p<g&&(h+=e.slice(p,g)),h+=Number(t[f]),p=g+2,g++;break;case 105:if(f>=u||t[f]==null)break;p<g&&(h+=e.slice(p,g)),h+=Math.floor(Number(t[f])),p=g+2,g++;break;case 79:case 111:case 106:if(f>=u||t[f]===void 0)break;p<g&&(h+=e.slice(p,g));var b=typeof t[f];if(b==="string"){h+="'"+t[f]+"'",p=g+2,g++;break}if(b==="function"){h+=t[f].name||"<anonymous>",p=g+2,g++;break}h+=n(t[f]),p=g+2,g++;break;case 115:if(f>=u)break;p<g&&(h+=e.slice(p,g)),h+=String(t[f]),p=g+2,g++;break;case 37:p<g&&(h+=e.slice(p,g)),h+="%",p=g+2,g++,f--;break}++f}++g}return p===-1?e:(p<w&&(h+=e.slice(p)),h)}const Zr=rs;var ke=we;const it=ds().console||{},is={mapHttpRequest:At,mapHttpResponse:At,wrapRequestSerializer:Yt,wrapResponseSerializer:Yt,wrapErrorSerializer:Yt,req:At,res:At,err:cs};function os(e,t){return Array.isArray(e)?e.filter(function(n){return n!=="!stdSerializers.err"}):e===!0?Object.keys(t):!1}function we(e){e=e||{},e.browser=e.browser||{};const t=e.browser.transmit;if(t&&typeof t.send!="function")throw Error("pino: transmit option must have a send function");const r=e.browser.write||it;e.browser.write&&(e.browser.asObject=!0);const n=e.serializers||{},i=os(e.browser.serialize,n);let o=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf("!stdSerializers.err")>-1&&(o=!1);const a=["error","fatal","warn","info","debug","trace"];typeof r=="function"&&(r.error=r.fatal=r.warn=r.info=r.debug=r.trace=r),e.enabled===!1&&(e.level="silent");const l=e.level||"info",u=Object.create(r);u.log||(u.log=ot),Object.defineProperty(u,"levelVal",{get:f}),Object.defineProperty(u,"level",{get:p,set:w});const h={transmit:t,serialize:i,asObject:e.browser.asObject,levels:a,timestamp:fs(e)};u.levels=we.levels,u.level=l,u.setMaxListeners=u.getMaxListeners=u.emit=u.addListener=u.on=u.prependListener=u.once=u.prependOnceListener=u.removeListener=u.removeAllListeners=u.listeners=u.listenerCount=u.eventNames=u.write=u.flush=ot,u.serializers=n,u._serialize=i,u._stdErrSerialize=o,u.child=g,t&&(u._logEvent=sr());function f(){return this.level==="silent"?1/0:this.levels.values[this.level]}function p(){return this._level}function w(b){if(b!=="silent"&&!this.levels.values[b])throw Error("unknown level "+b);this._level=b,$e(h,u,"error","log"),$e(h,u,"fatal","error"),$e(h,u,"warn","error"),$e(h,u,"info","log"),$e(h,u,"debug","log"),$e(h,u,"trace","log")}function g(b,_){if(!b)throw new Error("missing bindings for child Pino");_=_||{},i&&b.serializers&&(_.serializers=b.serializers);const R=_.serializers;if(i&&R){var P=Object.assign({},n,R),I=e.browser.serialize===!0?Object.keys(P):i;delete b.serializers,jt([b],I,P,this._stdErrSerialize)}function m(O){this._childLevel=(O._childLevel|0)+1,this.error=He(O,b,"error"),this.fatal=He(O,b,"fatal"),this.warn=He(O,b,"warn"),this.info=He(O,b,"info"),this.debug=He(O,b,"debug"),this.trace=He(O,b,"trace"),P&&(this.serializers=P,this._serialize=I),t&&(this._logEvent=sr([].concat(O._logEvent.bindings,b)))}return m.prototype=this,new m(this)}return u}we.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}};we.stdSerializers=is;we.stdTimeFunctions=Object.assign({},{nullTime:Ln,epochTime:Pn,unixTime:ls,isoTime:hs});function $e(e,t,r,n){const i=Object.getPrototypeOf(t);t[r]=t.levelVal>t.levels.values[r]?ot:i[r]?i[r]:it[r]||it[n]||ot,ss(e,t,r)}function ss(e,t,r){!e.transmit&&t[r]===ot||(t[r]=function(n){return function(){const o=e.timestamp(),a=new Array(arguments.length),l=Object.getPrototypeOf&&Object.getPrototypeOf(this)===it?it:this;for(var u=0;u<a.length;u++)a[u]=arguments[u];if(e.serialize&&!e.asObject&&jt(a,this._serialize,this.serializers,this._stdErrSerialize),e.asObject?n.call(l,as(this,r,a,o)):n.apply(l,a),e.transmit){const h=e.transmit.level||t.level,f=we.levels.values[h],p=we.levels.values[r];if(p<f)return;us(this,{ts:o,methodLevel:r,methodValue:p,transmitValue:we.levels.values[e.transmit.level||t.level],send:e.transmit.send,val:t.levelVal},a)}}}(t[r]))}function as(e,t,r,n){e._serialize&&jt(r,e._serialize,e.serializers,e._stdErrSerialize);const i=r.slice();let o=i[0];const a={};n&&(a.time=n),a.level=we.levels.values[t];let l=(e._childLevel|0)+1;if(l<1&&(l=1),o!==null&&typeof o=="object"){for(;l--&&typeof i[0]=="object";)Object.assign(a,i.shift());o=i.length?Zr(i.shift(),i):void 0}else typeof o=="string"&&(o=Zr(i.shift(),i));return o!==void 0&&(a.msg=o),a}function jt(e,t,r,n){for(const i in e)if(n&&e[i]instanceof Error)e[i]=we.stdSerializers.err(e[i]);else if(typeof e[i]=="object"&&!Array.isArray(e[i]))for(const o in e[i])t&&t.indexOf(o)>-1&&o in r&&(e[i][o]=r[o](e[i][o]))}function He(e,t,r){return function(){const n=new Array(1+arguments.length);n[0]=t;for(var i=1;i<n.length;i++)n[i]=arguments[i-1];return e[r].apply(this,n)}}function us(e,t,r){const n=t.send,i=t.ts,o=t.methodLevel,a=t.methodValue,l=t.val,u=e._logEvent.bindings;jt(r,e._serialize||Object.keys(e.serializers),e.serializers,e._stdErrSerialize===void 0?!0:e._stdErrSerialize),e._logEvent.ts=i,e._logEvent.messages=r.filter(function(h){return u.indexOf(h)===-1}),e._logEvent.level.label=o,e._logEvent.level.value=a,n(o,e._logEvent,l),e._logEvent=sr(u)}function sr(e){return{ts:0,messages:[],bindings:e||[],level:{label:"",value:0}}}function cs(e){const t={type:e.constructor.name,msg:e.message,stack:e.stack};for(const r in e)t[r]===void 0&&(t[r]=e[r]);return t}function fs(e){return typeof e.timestamp=="function"?e.timestamp:e.timestamp===!1?Ln:Pn}function At(){return{}}function Yt(e){return e}function ot(){}function Ln(){return!1}function Pn(){return Date.now()}function ls(){return Math.round(Date.now()/1e3)}function hs(){return new Date(Date.now()).toISOString()}function ds(){function e(t){return typeof t<"u"&&t}try{return typeof globalThis<"u"||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch{return e(self)||e(window)||e(this)||{}}}const gr=V.getDefaultExportFromCjs(ke),ps={level:"info"},ut="custom_context",yr=1e3*1024;let bs=class{constructor(t){this.nodeValue=t,this.sizeInBytes=new TextEncoder().encode(this.nodeValue).length,this.next=null}get value(){return this.nodeValue}get size(){return this.sizeInBytes}},Yr=class{constructor(t){this.head=null,this.tail=null,this.lengthInNodes=0,this.maxSizeInBytes=t,this.sizeInBytes=0}append(t){const r=new bs(t);if(r.size>this.maxSizeInBytes)throw new Error(`[LinkedList] Value too big to insert into list: ${t} with size ${r.size}`);for(;this.size+r.size>this.maxSizeInBytes;)this.shift();this.head?(this.tail&&(this.tail.next=r),this.tail=r):(this.head=r,this.tail=r),this.lengthInNodes++,this.sizeInBytes+=r.size}shift(){if(!this.head)return;const t=this.head;this.head=this.head.next,this.head||(this.tail=null),this.lengthInNodes--,this.sizeInBytes-=t.size}toArray(){const t=[];let r=this.head;for(;r!==null;)t.push(r.value),r=r.next;return t}get length(){return this.lengthInNodes}get size(){return this.sizeInBytes}toOrderedArray(){return Array.from(this)}[Symbol.iterator](){let t=this.head;return{next:()=>{if(!t)return{done:!0,value:null};const r=t.value;return t=t.next,{done:!1,value:r}}}}},jn=class{constructor(t,r=yr){this.level=t??"error",this.levelValue=ke.levels.values[this.level],this.MAX_LOG_SIZE_IN_BYTES=r,this.logs=new Yr(this.MAX_LOG_SIZE_IN_BYTES)}forwardToConsole(t,r){r===ke.levels.values.error?console.error(t):r===ke.levels.values.warn?console.warn(t):r===ke.levels.values.debug?console.debug(t):r===ke.levels.values.trace?console.trace(t):console.log(t)}appendToLogs(t){this.logs.append(qe({timestamp:new Date().toISOString(),log:t}));const r=typeof t=="string"?JSON.parse(t).level:t.level;r>=this.levelValue&&this.forwardToConsole(t,r)}getLogs(){return this.logs}clearLogs(){this.logs=new Yr(this.MAX_LOG_SIZE_IN_BYTES)}getLogArray(){return Array.from(this.logs)}logsToBlob(t){const r=this.getLogArray();return r.push(qe({extraMetadata:t})),new Blob(r,{type:"application/json"})}};class gs{constructor(t,r=yr){this.baseChunkLogger=new jn(t,r)}write(t){this.baseChunkLogger.appendToLogs(t)}getLogs(){return this.baseChunkLogger.getLogs()}clearLogs(){this.baseChunkLogger.clearLogs()}getLogArray(){return this.baseChunkLogger.getLogArray()}logsToBlob(t){return this.baseChunkLogger.logsToBlob(t)}downloadLogsBlobInBrowser(t){const r=URL.createObjectURL(this.logsToBlob(t)),n=document.createElement("a");n.href=r,n.download=`walletconnect-logs-${new Date().toISOString()}.txt`,document.body.appendChild(n),n.click(),document.body.removeChild(n),URL.revokeObjectURL(r)}}class ys{constructor(t,r=yr){this.baseChunkLogger=new jn(t,r)}write(t){this.baseChunkLogger.appendToLogs(t)}getLogs(){return this.baseChunkLogger.getLogs()}clearLogs(){this.baseChunkLogger.clearLogs()}getLogArray(){return this.baseChunkLogger.getLogArray()}logsToBlob(t){return this.baseChunkLogger.logsToBlob(t)}}var ws=Object.defineProperty,ms=Object.defineProperties,vs=Object.getOwnPropertyDescriptors,Xr=Object.getOwnPropertySymbols,_s=Object.prototype.hasOwnProperty,Es=Object.prototype.propertyIsEnumerable,Qr=(e,t,r)=>t in e?ws(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ct=(e,t)=>{for(var r in t||(t={}))_s.call(t,r)&&Qr(e,r,t[r]);if(Xr)for(var r of Xr(t))Es.call(t,r)&&Qr(e,r,t[r]);return e},It=(e,t)=>ms(e,vs(t));function xs(e){return It(Ct({},e),{level:(e==null?void 0:e.level)||ps.level})}function Fs(e,t=ut){return e[t]||""}function As(e,t,r=ut){return e[r]=t,e}function Un(e,t=ut){let r="";return typeof e.bindings>"u"?r=Fs(e,t):r=e.bindings().context||"",r}function Ss(e,t,r=ut){const n=Un(e,r);return n.trim()?`${n}/${t}`:t}function Bs(e,t,r=ut){const n=Ss(e,t,r),i=e.child({context:n});return As(i,n,r)}function Os(e){var t,r;const n=new gs((t=e.opts)==null?void 0:t.level,e.maxSizeInBytes);return{logger:gr(It(Ct({},e.opts),{level:"trace",browser:It(Ct({},(r=e.opts)==null?void 0:r.browser),{write:i=>n.write(i)})})),chunkLoggerController:n}}function Ts(e){var t;const r=new ys((t=e.opts)==null?void 0:t.level,e.maxSizeInBytes);return{logger:gr(It(Ct({},e.opts),{level:"trace"}),r),chunkLoggerController:r}}function Cs(e){return typeof e.loggerOverride<"u"&&typeof e.loggerOverride!="string"?{logger:e.loggerOverride,chunkLoggerController:null}:typeof window<"u"?Os(e):Ts(e)}function Is(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function Nn(e,...t){if(!Is(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function en(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Rs(e,t){Nn(e);const r=t.outputLen;if(e.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)}const Ge=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Xt=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);function Ls(e){if(typeof e!="string")throw new Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array(new TextEncoder().encode(e))}function zn(e){return typeof e=="string"&&(e=Ls(e)),Nn(e),e}class Ps{clone(){return this._cloneInto()}}function js(e){const t=n=>e().update(zn(n)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function Dn(e=32){if(Ge&&typeof Ge.getRandomValues=="function")return Ge.getRandomValues(new Uint8Array(e));if(Ge&&typeof Ge.randomBytes=="function")return Ge.randomBytes(e);throw new Error("crypto.getRandomValues must be defined")}function Us(e,t,r,n){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,r,n);const i=BigInt(32),o=BigInt(4294967295),a=Number(r>>i&o),l=Number(r&o),u=n?4:0,h=n?0:4;e.setUint32(t+u,a,n),e.setUint32(t+h,l,n)}class Ns extends Ps{constructor(t,r,n,i){super(),this.blockLen=t,this.outputLen=r,this.padOffset=n,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=Xt(this.buffer)}update(t){en(this);const{view:r,buffer:n,blockLen:i}=this;t=zn(t);const o=t.length;for(let a=0;a<o;){const l=Math.min(i-this.pos,o-a);if(l===i){const u=Xt(t);for(;i<=o-a;a+=i)this.process(u,a);continue}n.set(t.subarray(a,a+l),this.pos),this.pos+=l,a+=l,this.pos===i&&(this.process(r,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){en(this),Rs(t,this),this.finished=!0;const{buffer:r,view:n,blockLen:i,isLE:o}=this;let{pos:a}=this;r[a++]=128,this.buffer.subarray(a).fill(0),this.padOffset>i-a&&(this.process(n,0),a=0);for(let p=a;p<i;p++)r[p]=0;Us(n,i-8,BigInt(this.length*8),o),this.process(n,0);const l=Xt(t),u=this.outputLen;if(u%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const h=u/4,f=this.get();if(h>f.length)throw new Error("_sha2: outputLen bigger than state");for(let p=0;p<h;p++)l.setUint32(4*p,f[p],o)}digest(){const{buffer:t,outputLen:r}=this;this.digestInto(t);const n=t.slice(0,r);return this.destroy(),n}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:r,buffer:n,length:i,finished:o,destroyed:a,pos:l}=this;return t.length=i,t.pos=l,t.finished=o,t.destroyed=a,i%r&&t.buffer.set(n),t}}const St=BigInt(2**32-1),ar=BigInt(32);function Mn(e,t=!1){return t?{h:Number(e&St),l:Number(e>>ar&St)}:{h:Number(e>>ar&St)|0,l:Number(e&St)|0}}function zs(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let i=0;i<e.length;i++){const{h:o,l:a}=Mn(e[i],t);[r[i],n[i]]=[o,a]}return[r,n]}const Ds=(e,t)=>BigInt(e>>>0)<<ar|BigInt(t>>>0),Ms=(e,t,r)=>e>>>r,$s=(e,t,r)=>e<<32-r|t>>>r,Hs=(e,t,r)=>e>>>r|t<<32-r,Gs=(e,t,r)=>e<<32-r|t>>>r,ks=(e,t,r)=>e<<64-r|t>>>r-32,qs=(e,t,r)=>e>>>r-32|t<<64-r,Ws=(e,t)=>t,Vs=(e,t)=>e,Js=(e,t,r)=>e<<r|t>>>32-r,Ks=(e,t,r)=>t<<r|e>>>32-r,Zs=(e,t,r)=>t<<r-32|e>>>64-r,Ys=(e,t,r)=>e<<r-32|t>>>64-r;function Xs(e,t,r,n){const i=(t>>>0)+(n>>>0);return{h:e+r+(i/2**32|0)|0,l:i|0}}const Qs=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),ea=(e,t,r,n)=>t+r+n+(e/2**32|0)|0,ta=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),ra=(e,t,r,n,i)=>t+r+n+i+(e/2**32|0)|0,na=(e,t,r,n,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(i>>>0),ia=(e,t,r,n,i,o)=>t+r+n+i+o+(e/2**32|0)|0,B={fromBig:Mn,split:zs,toBig:Ds,shrSH:Ms,shrSL:$s,rotrSH:Hs,rotrSL:Gs,rotrBH:ks,rotrBL:qs,rotr32H:Ws,rotr32L:Vs,rotlSH:Js,rotlSL:Ks,rotlBH:Zs,rotlBL:Ys,add:Xs,add3L:Qs,add3H:ea,add4L:ta,add4H:ra,add5H:ia,add5L:na},[oa,sa]=B.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(e=>BigInt(e))),Te=new Uint32Array(80),Ce=new Uint32Array(80);class aa extends Ns{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:t,Al:r,Bh:n,Bl:i,Ch:o,Cl:a,Dh:l,Dl:u,Eh:h,El:f,Fh:p,Fl:w,Gh:g,Gl:b,Hh:_,Hl:R}=this;return[t,r,n,i,o,a,l,u,h,f,p,w,g,b,_,R]}set(t,r,n,i,o,a,l,u,h,f,p,w,g,b,_,R){this.Ah=t|0,this.Al=r|0,this.Bh=n|0,this.Bl=i|0,this.Ch=o|0,this.Cl=a|0,this.Dh=l|0,this.Dl=u|0,this.Eh=h|0,this.El=f|0,this.Fh=p|0,this.Fl=w|0,this.Gh=g|0,this.Gl=b|0,this.Hh=_|0,this.Hl=R|0}process(t,r){for(let m=0;m<16;m++,r+=4)Te[m]=t.getUint32(r),Ce[m]=t.getUint32(r+=4);for(let m=16;m<80;m++){const O=Te[m-15]|0,N=Ce[m-15]|0,H=B.rotrSH(O,N,1)^B.rotrSH(O,N,8)^B.shrSH(O,N,7),k=B.rotrSL(O,N,1)^B.rotrSL(O,N,8)^B.shrSL(O,N,7),z=Te[m-2]|0,q=Ce[m-2]|0,pe=B.rotrSH(z,q,19)^B.rotrBH(z,q,61)^B.shrSH(z,q,6),be=B.rotrSL(z,q,19)^B.rotrBL(z,q,61)^B.shrSL(z,q,6),ue=B.add4L(k,be,Ce[m-7],Ce[m-16]),Ie=B.add4H(ue,H,pe,Te[m-7],Te[m-16]);Te[m]=Ie|0,Ce[m]=ue|0}let{Ah:n,Al:i,Bh:o,Bl:a,Ch:l,Cl:u,Dh:h,Dl:f,Eh:p,El:w,Fh:g,Fl:b,Gh:_,Gl:R,Hh:P,Hl:I}=this;for(let m=0;m<80;m++){const O=B.rotrSH(p,w,14)^B.rotrSH(p,w,18)^B.rotrBH(p,w,41),N=B.rotrSL(p,w,14)^B.rotrSL(p,w,18)^B.rotrBL(p,w,41),H=p&g^~p&_,k=w&b^~w&R,z=B.add5L(I,N,k,sa[m],Ce[m]),q=B.add5H(z,P,O,H,oa[m],Te[m]),pe=z|0,be=B.rotrSH(n,i,28)^B.rotrBH(n,i,34)^B.rotrBH(n,i,39),ue=B.rotrSL(n,i,28)^B.rotrBL(n,i,34)^B.rotrBL(n,i,39),Ie=n&o^n&l^o&l,Ve=i&a^i&u^a&u;P=_|0,I=R|0,_=g|0,R=b|0,g=p|0,b=w|0,{h:p,l:w}=B.add(h|0,f|0,q|0,pe|0),h=l|0,f=u|0,l=o|0,u=a|0,o=n|0,a=i|0;const x=B.add3L(pe,ue,Ve);n=B.add3H(x,q,be,Ie),i=x|0}({h:n,l:i}=B.add(this.Ah|0,this.Al|0,n|0,i|0)),{h:o,l:a}=B.add(this.Bh|0,this.Bl|0,o|0,a|0),{h:l,l:u}=B.add(this.Ch|0,this.Cl|0,l|0,u|0),{h,l:f}=B.add(this.Dh|0,this.Dl|0,h|0,f|0),{h:p,l:w}=B.add(this.Eh|0,this.El|0,p|0,w|0),{h:g,l:b}=B.add(this.Fh|0,this.Fl|0,g|0,b|0),{h:_,l:R}=B.add(this.Gh|0,this.Gl|0,_|0,R|0),{h:P,l:I}=B.add(this.Hh|0,this.Hl|0,P|0,I|0),this.set(n,i,o,a,l,u,h,f,p,w,g,b,_,R,P,I)}roundClean(){Te.fill(0),Ce.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const ua=js(()=>new aa);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const wr=BigInt(0),$n=BigInt(1),ca=BigInt(2);function mr(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function vr(e){if(!mr(e))throw new Error("Uint8Array expected")}function Qt(e,t){if(typeof t!="boolean")throw new Error(e+" boolean expected, got "+t)}const fa=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function _r(e){vr(e);let t="";for(let r=0;r<e.length;r++)t+=fa[e[r]];return t}function Hn(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?wr:BigInt("0x"+e)}const _e={_0:48,_9:57,A:65,F:70,a:97,f:102};function tn(e){if(e>=_e._0&&e<=_e._9)return e-_e._0;if(e>=_e.A&&e<=_e.F)return e-(_e.A-10);if(e>=_e.a&&e<=_e.f)return e-(_e.a-10)}function Gn(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);const t=e.length,r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(r);for(let i=0,o=0;i<r;i++,o+=2){const a=tn(e.charCodeAt(o)),l=tn(e.charCodeAt(o+1));if(a===void 0||l===void 0){const u=e[o]+e[o+1];throw new Error('hex string expected, got non-hex character "'+u+'" at index '+o)}n[i]=a*16+l}return n}function la(e){return Hn(_r(e))}function Tt(e){return vr(e),Hn(_r(Uint8Array.from(e).reverse()))}function kn(e,t){return Gn(e.toString(16).padStart(t*2,"0"))}function ur(e,t){return kn(e,t).reverse()}function Ee(e,t,r){let n;if(typeof t=="string")try{n=Gn(t)}catch(o){throw new Error(e+" must be hex string or Uint8Array, cause: "+o)}else if(mr(t))n=Uint8Array.from(t);else throw new Error(e+" must be hex string or Uint8Array");const i=n.length;if(typeof r=="number"&&i!==r)throw new Error(e+" of length "+r+" expected, got "+i);return n}function rn(...e){let t=0;for(let n=0;n<e.length;n++){const i=e[n];vr(i),t+=i.length}const r=new Uint8Array(t);for(let n=0,i=0;n<e.length;n++){const o=e[n];r.set(o,i),i+=o.length}return r}const er=e=>typeof e=="bigint"&&wr<=e;function ha(e,t,r){return er(e)&&er(t)&&er(r)&&t<=e&&e<r}function rt(e,t,r,n){if(!ha(t,r,n))throw new Error("expected valid "+e+": "+r+" <= n < "+n+", got "+t)}function da(e){let t;for(t=0;e>wr;e>>=$n,t+=1);return t}const pa=e=>(ca<<BigInt(e-1))-$n,ba={bigint:e=>typeof e=="bigint",function:e=>typeof e=="function",boolean:e=>typeof e=="boolean",string:e=>typeof e=="string",stringOrUint8Array:e=>typeof e=="string"||mr(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>typeof e=="function"&&Number.isSafeInteger(e.outputLen)};function Er(e,t,r={}){const n=(i,o,a)=>{const l=ba[o];if(typeof l!="function")throw new Error("invalid validator function");const u=e[i];if(!(a&&u===void 0)&&!l(u,e))throw new Error("param "+String(i)+" is invalid. Expected "+o+", got "+u)};for(const[i,o]of Object.entries(t))n(i,o,!1);for(const[i,o]of Object.entries(r))n(i,o,!0);return e}function nn(e){const t=new WeakMap;return(r,...n)=>{const i=t.get(r);if(i!==void 0)return i;const o=e(r,...n);return t.set(r,o),o}}const Y=BigInt(0),W=BigInt(1),Ne=BigInt(2),ga=BigInt(3),cr=BigInt(4),on=BigInt(5),sn=BigInt(8);function K(e,t){const r=e%t;return r>=Y?r:t+r}function ya(e,t,r){if(t<Y)throw new Error("invalid exponent, negatives unsupported");if(r<=Y)throw new Error("invalid modulus");if(r===W)return Y;let n=W;for(;t>Y;)t&W&&(n=n*e%r),e=e*e%r,t>>=W;return n}function ye(e,t,r){let n=e;for(;t-- >Y;)n*=n,n%=r;return n}function an(e,t){if(e===Y)throw new Error("invert: expected non-zero number");if(t<=Y)throw new Error("invert: expected positive modulus, got "+t);let r=K(e,t),n=t,i=Y,o=W;for(;r!==Y;){const a=n/r,l=n%r,u=i-o*a;n=r,r=l,i=o,o=u}if(n!==W)throw new Error("invert: does not exist");return K(i,t)}function wa(e){const t=(e-W)/Ne;let r,n,i;for(r=e-W,n=0;r%Ne===Y;r/=Ne,n++);for(i=Ne;i<e&&ya(i,t,e)!==e-W;i++)if(i>1e3)throw new Error("Cannot find square root: likely non-prime P");if(n===1){const a=(e+W)/cr;return function(l,u){const h=l.pow(u,a);if(!l.eql(l.sqr(h),u))throw new Error("Cannot find square root");return h}}const o=(r+W)/Ne;return function(a,l){if(a.pow(l,t)===a.neg(a.ONE))throw new Error("Cannot find square root");let u=n,h=a.pow(a.mul(a.ONE,i),r),f=a.pow(l,o),p=a.pow(l,r);for(;!a.eql(p,a.ONE);){if(a.eql(p,a.ZERO))return a.ZERO;let w=1;for(let b=a.sqr(p);w<u&&!a.eql(b,a.ONE);w++)b=a.sqr(b);const g=a.pow(h,W<<BigInt(u-w-1));h=a.sqr(g),f=a.mul(f,g),p=a.mul(p,h),u=w}return f}}function ma(e){if(e%cr===ga){const t=(e+W)/cr;return function(r,n){const i=r.pow(n,t);if(!r.eql(r.sqr(i),n))throw new Error("Cannot find square root");return i}}if(e%sn===on){const t=(e-on)/sn;return function(r,n){const i=r.mul(n,Ne),o=r.pow(i,t),a=r.mul(n,o),l=r.mul(r.mul(a,Ne),o),u=r.mul(a,r.sub(l,r.ONE));if(!r.eql(r.sqr(u),n))throw new Error("Cannot find square root");return u}}return wa(e)}const va=(e,t)=>(K(e,t)&W)===W,_a=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function Ea(e){const t={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},r=_a.reduce((n,i)=>(n[i]="function",n),t);return Er(e,r)}function xa(e,t,r){if(r<Y)throw new Error("invalid exponent, negatives unsupported");if(r===Y)return e.ONE;if(r===W)return t;let n=e.ONE,i=t;for(;r>Y;)r&W&&(n=e.mul(n,i)),i=e.sqr(i),r>>=W;return n}function Fa(e,t){const r=new Array(t.length),n=t.reduce((o,a,l)=>e.is0(a)?o:(r[l]=o,e.mul(o,a)),e.ONE),i=e.inv(n);return t.reduceRight((o,a,l)=>e.is0(a)?o:(r[l]=e.mul(o,r[l]),e.mul(o,a)),i),r}function qn(e,t){const r=t!==void 0?t:e.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function Wn(e,t,r=!1,n={}){if(e<=Y)throw new Error("invalid field: expected ORDER > 0, got "+e);const{nBitLength:i,nByteLength:o}=qn(e,t);if(o>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let a;const l=Object.freeze({ORDER:e,isLE:r,BITS:i,BYTES:o,MASK:pa(i),ZERO:Y,ONE:W,create:u=>K(u,e),isValid:u=>{if(typeof u!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof u);return Y<=u&&u<e},is0:u=>u===Y,isOdd:u=>(u&W)===W,neg:u=>K(-u,e),eql:(u,h)=>u===h,sqr:u=>K(u*u,e),add:(u,h)=>K(u+h,e),sub:(u,h)=>K(u-h,e),mul:(u,h)=>K(u*h,e),pow:(u,h)=>xa(l,u,h),div:(u,h)=>K(u*an(h,e),e),sqrN:u=>u*u,addN:(u,h)=>u+h,subN:(u,h)=>u-h,mulN:(u,h)=>u*h,inv:u=>an(u,e),sqrt:n.sqrt||(u=>(a||(a=ma(e)),a(l,u))),invertBatch:u=>Fa(l,u),cmov:(u,h,f)=>f?h:u,toBytes:u=>r?ur(u,o):kn(u,o),fromBytes:u=>{if(u.length!==o)throw new Error("Field.fromBytes: expected "+o+" bytes, got "+u.length);return r?Tt(u):la(u)}});return Object.freeze(l)}const un=BigInt(0),Bt=BigInt(1);function tr(e,t){const r=t.negate();return e?r:t}function Vn(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function rr(e,t){Vn(e,t);const r=Math.ceil(t/e)+1,n=2**(e-1);return{windows:r,windowSize:n}}function Aa(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((r,n)=>{if(!(r instanceof t))throw new Error("invalid point at index "+n)})}function Sa(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((r,n)=>{if(!t.isValid(r))throw new Error("invalid scalar at index "+n)})}const nr=new WeakMap,Jn=new WeakMap;function ir(e){return Jn.get(e)||1}function Ba(e,t){return{constTimeNegate:tr,hasPrecomputes(r){return ir(r)!==1},unsafeLadder(r,n,i=e.ZERO){let o=r;for(;n>un;)n&Bt&&(i=i.add(o)),o=o.double(),n>>=Bt;return i},precomputeWindow(r,n){const{windows:i,windowSize:o}=rr(n,t),a=[];let l=r,u=l;for(let h=0;h<i;h++){u=l,a.push(u);for(let f=1;f<o;f++)u=u.add(l),a.push(u);l=u.double()}return a},wNAF(r,n,i){const{windows:o,windowSize:a}=rr(r,t);let l=e.ZERO,u=e.BASE;const h=BigInt(2**r-1),f=2**r,p=BigInt(r);for(let w=0;w<o;w++){const g=w*a;let b=Number(i&h);i>>=p,b>a&&(b-=f,i+=Bt);const _=g,R=g+Math.abs(b)-1,P=w%2!==0,I=b<0;b===0?u=u.add(tr(P,n[_])):l=l.add(tr(I,n[R]))}return{p:l,f:u}},wNAFUnsafe(r,n,i,o=e.ZERO){const{windows:a,windowSize:l}=rr(r,t),u=BigInt(2**r-1),h=2**r,f=BigInt(r);for(let p=0;p<a;p++){const w=p*l;if(i===un)break;let g=Number(i&u);if(i>>=f,g>l&&(g-=h,i+=Bt),g===0)continue;let b=n[w+Math.abs(g)-1];g<0&&(b=b.negate()),o=o.add(b)}return o},getPrecomputes(r,n,i){let o=nr.get(n);return o||(o=this.precomputeWindow(n,r),r!==1&&nr.set(n,i(o))),o},wNAFCached(r,n,i){const o=ir(r);return this.wNAF(o,this.getPrecomputes(o,r,i),n)},wNAFCachedUnsafe(r,n,i,o){const a=ir(r);return a===1?this.unsafeLadder(r,n,o):this.wNAFUnsafe(a,this.getPrecomputes(a,r,i),n,o)},setWindowSize(r,n){Vn(n,t),Jn.set(r,n),nr.delete(r)}}}function Oa(e,t,r,n){if(Aa(r,e),Sa(n,t),r.length!==n.length)throw new Error("arrays of points and scalars must have equal length");const i=e.ZERO,o=da(BigInt(r.length)),a=o>12?o-3:o>4?o-2:o?2:1,l=(1<<a)-1,u=new Array(l+1).fill(i),h=Math.floor((t.BITS-1)/a)*a;let f=i;for(let p=h;p>=0;p-=a){u.fill(i);for(let g=0;g<n.length;g++){const b=n[g],_=Number(b>>BigInt(p)&BigInt(l));u[_]=u[_].add(r[g])}let w=i;for(let g=u.length-1,b=i;g>0;g--)b=b.add(u[g]),w=w.add(b);if(f=f.add(w),p!==0)for(let g=0;g<a;g++)f=f.double()}return f}function Ta(e){return Ea(e.Fp),Er(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...qn(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}const he=BigInt(0),ne=BigInt(1),Ot=BigInt(2),Ca=BigInt(8),Ia={zip215:!0};function Ra(e){const t=Ta(e);return Er(e,{hash:"function",a:"bigint",d:"bigint",randomBytes:"function"},{adjustScalarBytes:"function",domain:"function",uvRatio:"function",mapToCurve:"function"}),Object.freeze({...t})}function La(e){const t=Ra(e),{Fp:r,n,prehash:i,hash:o,randomBytes:a,nByteLength:l,h:u}=t,h=Ot<<BigInt(l*8)-ne,f=r.create,p=Wn(t.n,t.nBitLength),w=t.uvRatio||((x,y)=>{try{return{isValid:!0,value:r.sqrt(x*r.inv(y))}}catch{return{isValid:!1,value:he}}}),g=t.adjustScalarBytes||(x=>x),b=t.domain||((x,y,E)=>{if(Qt("phflag",E),y.length||E)throw new Error("Contexts/pre-hash are not supported");return x});function _(x,y){rt("coordinate "+x,y,he,h)}function R(x){if(!(x instanceof m))throw new Error("ExtendedPoint expected")}const P=nn((x,y)=>{const{ex:E,ey:F,ez:T}=x,C=x.is0();y==null&&(y=C?Ca:r.inv(T));const L=f(E*y),D=f(F*y),j=f(T*y);if(C)return{x:he,y:ne};if(j!==ne)throw new Error("invZ was invalid");return{x:L,y:D}}),I=nn(x=>{const{a:y,d:E}=t;if(x.is0())throw new Error("bad point: ZERO");const{ex:F,ey:T,ez:C,et:L}=x,D=f(F*F),j=f(T*T),M=f(C*C),A=f(M*M),X=f(D*y),ce=f(M*f(X+j)),J=f(A+f(E*f(D*j)));if(ce!==J)throw new Error("bad point: equation left != right (1)");const re=f(F*T),fe=f(C*L);if(re!==fe)throw new Error("bad point: equation left != right (2)");return!0});class m{constructor(y,E,F,T){this.ex=y,this.ey=E,this.ez=F,this.et=T,_("x",y),_("y",E),_("z",F),_("t",T),Object.freeze(this)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static fromAffine(y){if(y instanceof m)throw new Error("extended point not allowed");const{x:E,y:F}=y||{};return _("x",E),_("y",F),new m(E,F,ne,f(E*F))}static normalizeZ(y){const E=r.invertBatch(y.map(F=>F.ez));return y.map((F,T)=>F.toAffine(E[T])).map(m.fromAffine)}static msm(y,E){return Oa(m,p,y,E)}_setWindowSize(y){H.setWindowSize(this,y)}assertValidity(){I(this)}equals(y){R(y);const{ex:E,ey:F,ez:T}=this,{ex:C,ey:L,ez:D}=y,j=f(E*D),M=f(C*T),A=f(F*D),X=f(L*T);return j===M&&A===X}is0(){return this.equals(m.ZERO)}negate(){return new m(f(-this.ex),this.ey,this.ez,f(-this.et))}double(){const{a:y}=t,{ex:E,ey:F,ez:T}=this,C=f(E*E),L=f(F*F),D=f(Ot*f(T*T)),j=f(y*C),M=E+F,A=f(f(M*M)-C-L),X=j+L,ce=X-D,J=j-L,re=f(A*ce),fe=f(X*J),ge=f(A*J),Ae=f(ce*X);return new m(re,fe,Ae,ge)}add(y){R(y);const{a:E,d:F}=t,{ex:T,ey:C,ez:L,et:D}=this,{ex:j,ey:M,ez:A,et:X}=y;if(E===BigInt(-1)){const ft=f((C-T)*(M+j)),lt=f((C+T)*(M-j)),Ze=f(lt-ft);if(Ze===he)return this.double();const ht=f(L*Ot*X),dt=f(D*Ot*A),pt=dt+ht,bt=lt+ft,gt=dt-ht,De=f(pt*Ze),Ye=f(bt*gt),yt=f(pt*gt),oe=f(Ze*bt);return new m(De,Ye,oe,yt)}const ce=f(T*j),J=f(C*M),re=f(D*F*X),fe=f(L*A),ge=f((T+C)*(j+M)-ce-J),Ae=fe-re,Je=fe+re,Ke=f(J-E*ce),Dt=f(ge*Ae),Mt=f(Je*Ke),$t=f(ge*Ke),Ht=f(Ae*Je);return new m(Dt,Mt,Ht,$t)}subtract(y){return this.add(y.negate())}wNAF(y){return H.wNAFCached(this,y,m.normalizeZ)}multiply(y){const E=y;rt("scalar",E,ne,n);const{p:F,f:T}=this.wNAF(E);return m.normalizeZ([F,T])[0]}multiplyUnsafe(y,E=m.ZERO){const F=y;return rt("scalar",F,he,n),F===he?N:this.is0()||F===ne?this:H.wNAFCachedUnsafe(this,F,m.normalizeZ,E)}isSmallOrder(){return this.multiplyUnsafe(u).is0()}isTorsionFree(){return H.unsafeLadder(this,n).is0()}toAffine(y){return P(this,y)}clearCofactor(){const{h:y}=t;return y===ne?this:this.multiplyUnsafe(y)}static fromHex(y,E=!1){const{d:F,a:T}=t,C=r.BYTES;y=Ee("pointHex",y,C),Qt("zip215",E);const L=y.slice(),D=y[C-1];L[C-1]=D&-129;const j=Tt(L),M=E?h:r.ORDER;rt("pointHex.y",j,he,M);const A=f(j*j),X=f(A-ne),ce=f(F*A-T);let{isValid:J,value:re}=w(X,ce);if(!J)throw new Error("Point.fromHex: invalid y coordinate");const fe=(re&ne)===ne,ge=(D&128)!==0;if(!E&&re===he&&ge)throw new Error("Point.fromHex: x=0 and x_0=1");return ge!==fe&&(re=f(-re)),m.fromAffine({x:re,y:j})}static fromPrivateKey(y){return q(y).point}toRawBytes(){const{x:y,y:E}=this.toAffine(),F=ur(E,r.BYTES);return F[F.length-1]|=y&ne?128:0,F}toHex(){return _r(this.toRawBytes())}}m.BASE=new m(t.Gx,t.Gy,ne,f(t.Gx*t.Gy)),m.ZERO=new m(he,ne,ne,he);const{BASE:O,ZERO:N}=m,H=Ba(m,l*8);function k(x){return K(x,n)}function z(x){return k(Tt(x))}function q(x){const y=r.BYTES;x=Ee("private key",x,y);const E=Ee("hashed private key",o(x),2*y),F=g(E.slice(0,y)),T=E.slice(y,2*y),C=z(F),L=O.multiply(C),D=L.toRawBytes();return{head:F,prefix:T,scalar:C,point:L,pointBytes:D}}function pe(x){return q(x).pointBytes}function be(x=new Uint8Array,...y){const E=rn(...y);return z(o(b(E,Ee("context",x),!!i)))}function ue(x,y,E={}){x=Ee("message",x),i&&(x=i(x));const{prefix:F,scalar:T,pointBytes:C}=q(y),L=be(E.context,F,x),D=O.multiply(L).toRawBytes(),j=be(E.context,D,C,x),M=k(L+j*T);rt("signature.s",M,he,n);const A=rn(D,ur(M,r.BYTES));return Ee("result",A,r.BYTES*2)}const Ie=Ia;function Ve(x,y,E,F=Ie){const{context:T,zip215:C}=F,L=r.BYTES;x=Ee("signature",x,2*L),y=Ee("message",y),E=Ee("publicKey",E,L),C!==void 0&&Qt("zip215",C),i&&(y=i(y));const D=Tt(x.slice(L,2*L));let j,M,A;try{j=m.fromHex(E,C),M=m.fromHex(x.slice(0,L),C),A=O.multiplyUnsafe(D)}catch{return!1}if(!C&&j.isSmallOrder())return!1;const X=be(T,M.toRawBytes(),j.toRawBytes(),y);return M.add(j.multiplyUnsafe(X)).subtract(A).clearCofactor().equals(m.ZERO)}return O._setWindowSize(8),{CURVE:t,getPublicKey:pe,sign:ue,verify:Ve,ExtendedPoint:m,utils:{getExtendedPublicKey:q,randomPrivateKey:()=>a(r.BYTES),precompute(x=8,y=m.BASE){return y._setWindowSize(x),y.multiply(BigInt(3)),y}}}}BigInt(0),BigInt(1);const xr=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),cn=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");BigInt(0);const Pa=BigInt(1),fn=BigInt(2);BigInt(3);const ja=BigInt(5),Ua=BigInt(8);function Na(e){const t=BigInt(10),r=BigInt(20),n=BigInt(40),i=BigInt(80),o=xr,a=e*e%o*e%o,l=ye(a,fn,o)*a%o,u=ye(l,Pa,o)*e%o,h=ye(u,ja,o)*u%o,f=ye(h,t,o)*h%o,p=ye(f,r,o)*f%o,w=ye(p,n,o)*p%o,g=ye(w,i,o)*w%o,b=ye(g,i,o)*w%o,_=ye(b,t,o)*h%o;return{pow_p_5_8:ye(_,fn,o)*e%o,b2:a}}function za(e){return e[0]&=248,e[31]&=127,e[31]|=64,e}function Da(e,t){const r=xr,n=K(t*t*t,r),i=K(n*n*t,r),o=Na(e*i).pow_p_5_8;let a=K(e*n*o,r);const l=K(t*a*a,r),u=a,h=K(a*cn,r),f=l===e,p=l===K(-e,r),w=l===K(-e*cn,r);return f&&(a=u),(p||w)&&(a=h),va(a,r)&&(a=K(-a,r)),{isValid:f||p,value:a}}const Ma=Wn(xr,void 0,!0),$a={a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),Fp:Ma,n:BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),h:Ua,Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),hash:ua,randomBytes:Dn,adjustScalarBytes:za,uvRatio:Da},Kn=La($a),Ha="EdDSA",Ga="JWT",Rt=".",Ut="base64url",Zn="utf8",Yn="utf8",ka=":",qa="did",Wa="key",ln="base58btc",Va="z",Ja="K36",Ka=32;function Fr(e){return globalThis.Buffer!=null?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}function Xn(e=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?Fr(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}function Qn(e,t){t||(t=e.reduce((i,o)=>i+o.length,0));const r=Xn(t);let n=0;for(const i of e)r.set(i,n),n+=i.length;return Fr(r)}function Za(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n<r.length;n++)r[n]=255;for(var i=0;i<e.length;i++){var o=e.charAt(i),a=o.charCodeAt(0);if(r[a]!==255)throw new TypeError(o+" is ambiguous");r[a]=i}var l=e.length,u=e.charAt(0),h=Math.log(l)/Math.log(256),f=Math.log(256)/Math.log(l);function p(b){if(b instanceof Uint8Array||(ArrayBuffer.isView(b)?b=new Uint8Array(b.buffer,b.byteOffset,b.byteLength):Array.isArray(b)&&(b=Uint8Array.from(b))),!(b instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(b.length===0)return"";for(var _=0,R=0,P=0,I=b.length;P!==I&&b[P]===0;)P++,_++;for(var m=(I-P)*f+1>>>0,O=new Uint8Array(m);P!==I;){for(var N=b[P],H=0,k=m-1;(N!==0||H<R)&&k!==-1;k--,H++)N+=256*O[k]>>>0,O[k]=N%l>>>0,N=N/l>>>0;if(N!==0)throw new Error("Non-zero carry");R=H,P++}for(var z=m-R;z!==m&&O[z]===0;)z++;for(var q=u.repeat(_);z<m;++z)q+=e.charAt(O[z]);return q}function w(b){if(typeof b!="string")throw new TypeError("Expected String");if(b.length===0)return new Uint8Array;var _=0;if(b[_]!==" "){for(var R=0,P=0;b[_]===u;)R++,_++;for(var I=(b.length-_)*h+1>>>0,m=new Uint8Array(I);b[_];){var O=r[b.charCodeAt(_)];if(O===255)return;for(var N=0,H=I-1;(O!==0||N<P)&&H!==-1;H--,N++)O+=l*m[H]>>>0,m[H]=O%256>>>0,O=O/256>>>0;if(O!==0)throw new Error("Non-zero carry");P=N,_++}if(b[_]!==" "){for(var k=I-P;k!==I&&m[k]===0;)k++;for(var z=new Uint8Array(R+(I-k)),q=R;k!==I;)z[q++]=m[k++];return z}}}function g(b){var _=w(b);if(_)return _;throw new Error(`Non-${t} character`)}return{encode:p,decodeUnsafe:w,decode:g}}var Ya=Za,Xa=Ya;const ei=e=>{if(e instanceof Uint8Array&&e.constructor.name==="Uint8Array")return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")},Qa=e=>new TextEncoder().encode(e),eu=e=>new TextDecoder().decode(e);class tu{constructor(t,r,n){this.name=t,this.prefix=r,this.baseEncode=n}encode(t){if(t instanceof Uint8Array)return`${this.prefix}${this.baseEncode(t)}`;throw Error("Unknown type, must be binary type")}}class ru{constructor(t,r,n){if(this.name=t,this.prefix=r,r.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=r.codePointAt(0),this.baseDecode=n}decode(t){if(typeof t=="string"){if(t.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(t)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(t.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(t){return ti(this,t)}}class nu{constructor(t){this.decoders=t}or(t){return ti(this,t)}decode(t){const r=t[0],n=this.decoders[r];if(n)return n.decode(t);throw RangeError(`Unable to decode multibase string ${JSON.stringify(t)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const ti=(e,t)=>new nu({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class iu{constructor(t,r,n,i){this.name=t,this.prefix=r,this.baseEncode=n,this.baseDecode=i,this.encoder=new tu(t,r,n),this.decoder=new ru(t,r,i)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}}const Nt=({name:e,prefix:t,encode:r,decode:n})=>new iu(e,t,r,n),ct=({prefix:e,name:t,alphabet:r})=>{const{encode:n,decode:i}=Xa(r,t);return Nt({prefix:e,name:t,encode:n,decode:o=>ei(i(o))})},ou=(e,t,r,n)=>{const i={};for(let f=0;f<t.length;++f)i[t[f]]=f;let o=e.length;for(;e[o-1]==="=";)--o;const a=new Uint8Array(o*r/8|0);let l=0,u=0,h=0;for(let f=0;f<o;++f){const p=i[e[f]];if(p===void 0)throw new SyntaxError(`Non-${n} character`);u=u<<r|p,l+=r,l>=8&&(l-=8,a[h++]=255&u>>l)}if(l>=r||255&u<<8-l)throw new SyntaxError("Unexpected end of data");return a},su=(e,t,r)=>{const n=t[t.length-1]==="=",i=(1<<r)-1;let o="",a=0,l=0;for(let u=0;u<e.length;++u)for(l=l<<8|e[u],a+=8;a>r;)a-=r,o+=t[i&l>>a];if(a&&(o+=t[i&l<<r-a]),n)for(;o.length*r&7;)o+="=";return o},ee=({name:e,prefix:t,bitsPerChar:r,alphabet:n})=>Nt({prefix:t,name:e,encode(i){return su(i,n,r)},decode(i){return ou(i,n,r,e)}}),au=Nt({prefix:"\0",name:"identity",encode:e=>eu(e),decode:e=>Qa(e)});var uu=Object.freeze({__proto__:null,identity:au});const cu=ee({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var fu=Object.freeze({__proto__:null,base2:cu});const lu=ee({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var hu=Object.freeze({__proto__:null,base8:lu});const du=ct({prefix:"9",name:"base10",alphabet:"0123456789"});var pu=Object.freeze({__proto__:null,base10:du});const bu=ee({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),gu=ee({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var yu=Object.freeze({__proto__:null,base16:bu,base16upper:gu});const wu=ee({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),mu=ee({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),vu=ee({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),_u=ee({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),Eu=ee({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),xu=ee({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),Fu=ee({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),Au=ee({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),Su=ee({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var Bu=Object.freeze({__proto__:null,base32:wu,base32upper:mu,base32pad:vu,base32padupper:_u,base32hex:Eu,base32hexupper:xu,base32hexpad:Fu,base32hexpadupper:Au,base32z:Su});const Ou=ct({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),Tu=ct({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var Cu=Object.freeze({__proto__:null,base36:Ou,base36upper:Tu});const Iu=ct({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),Ru=ct({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var Lu=Object.freeze({__proto__:null,base58btc:Iu,base58flickr:Ru});const Pu=ee({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),ju=ee({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),Uu=ee({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),Nu=ee({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var zu=Object.freeze({__proto__:null,base64:Pu,base64pad:ju,base64url:Uu,base64urlpad:Nu});const ri=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),Du=ri.reduce((e,t,r)=>(e[r]=t,e),[]),Mu=ri.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]);function $u(e){return e.reduce((t,r)=>(t+=Du[r],t),"")}function Hu(e){const t=[];for(const r of e){const n=Mu[r.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${r}`);t.push(n)}return new Uint8Array(t)}const Gu=Nt({prefix:"🚀",name:"base256emoji",encode:$u,decode:Hu});var ku=Object.freeze({__proto__:null,base256emoji:Gu}),qu=ni,hn=128,Wu=-128,Vu=Math.pow(2,31);function ni(e,t,r){t=t||[],r=r||0;for(var n=r;e>=Vu;)t[r++]=e&255|hn,e/=128;for(;e&Wu;)t[r++]=e&255|hn,e>>>=7;return t[r]=e|0,ni.bytes=r-n+1,t}var Ju=fr,Ku=128,dn=127;function fr(e,n){var r=0,n=n||0,i=0,o=n,a,l=e.length;do{if(o>=l)throw fr.bytes=0,new RangeError("Could not decode varint");a=e[o++],r+=i<28?(a&dn)<<i:(a&dn)*Math.pow(2,i),i+=7}while(a>=Ku);return fr.bytes=o-n,r}var Zu=Math.pow(2,7),Yu=Math.pow(2,14),Xu=Math.pow(2,21),Qu=Math.pow(2,28),ec=Math.pow(2,35),tc=Math.pow(2,42),rc=Math.pow(2,49),nc=Math.pow(2,56),ic=Math.pow(2,63),oc=function(e){return e<Zu?1:e<Yu?2:e<Xu?3:e<Qu?4:e<ec?5:e<tc?6:e<rc?7:e<nc?8:e<ic?9:10},sc={encode:qu,decode:Ju,encodingLength:oc},ii=sc;const pn=(e,t,r=0)=>(ii.encode(e,t,r),t),bn=e=>ii.encodingLength(e),lr=(e,t)=>{const r=t.byteLength,n=bn(e),i=n+bn(r),o=new Uint8Array(i+r);return pn(e,o,0),pn(r,o,n),o.set(t,i),new ac(e,r,t,o)};class ac{constructor(t,r,n,i){this.code=t,this.size=r,this.digest=n,this.bytes=i}}const oi=({name:e,code:t,encode:r})=>new uc(e,t,r);class uc{constructor(t,r,n){this.name=t,this.code=r,this.encode=n}digest(t){if(t instanceof Uint8Array){const r=this.encode(t);return r instanceof Uint8Array?lr(this.code,r):r.then(n=>lr(this.code,n))}else throw Error("Unknown type, must be binary type")}}const si=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),cc=oi({name:"sha2-256",code:18,encode:si("SHA-256")}),fc=oi({name:"sha2-512",code:19,encode:si("SHA-512")});var lc=Object.freeze({__proto__:null,sha256:cc,sha512:fc});const ai=0,hc="identity",ui=ei,dc=e=>lr(ai,ui(e)),pc={code:ai,name:hc,encode:ui,digest:dc};var bc=Object.freeze({__proto__:null,identity:pc});new TextEncoder,new TextDecoder;const gn={...uu,...fu,...hu,...pu,...yu,...Bu,...Cu,...Lu,...zu,...ku};({...lc,...bc});function ci(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}const yn=ci("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),or=ci("ascii","a",e=>{let t="a";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},e=>{e=e.substring(1);const t=Xn(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),fi={utf8:yn,"utf-8":yn,hex:gn.base16,latin1:or,ascii:or,binary:or,...gn};function zt(e,t="utf8"){const r=fi[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return(t==="utf8"||t==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8"):r.encoder.encode(e).substring(1)}function We(e,t="utf8"){const r=fi[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return(t==="utf8"||t==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?Fr(globalThis.Buffer.from(e,"utf-8")):r.decoder.decode(`${r.prefix}${e}`)}function wn(e){return br(zt(We(e,Ut),Zn))}function Lt(e){return zt(We(qe(e),Zn),Ut)}function li(e){const t=We(Ja,ln),r=Va+zt(Qn([t,e]),ln);return[qa,Wa,r].join(ka)}function gc(e){return zt(e,Ut)}function yc(e){return We(e,Ut)}function wc(e){return We([Lt(e.header),Lt(e.payload)].join(Rt),Yn)}function mc(e){return[Lt(e.header),Lt(e.payload),gc(e.signature)].join(Rt)}function vc(e){const t=e.split(Rt),r=wn(t[0]),n=wn(t[1]),i=yc(t[2]),o=We(t.slice(0,2).join(Rt),Yn);return{header:r,payload:n,signature:i,data:o}}function _c(e=Dn(Ka)){const t=Kn.getPublicKey(e);return{secretKey:Qn([e,t]),publicKey:t}}async function Ec(e,t,r,n,i=de.cjs.fromMiliseconds(Date.now())){const o={alg:Ha,typ:Ga},a=li(n.publicKey),l=i+r,u={iss:a,sub:e,aud:t,iat:i,exp:l},h=wc({header:o,payload:u}),f=Kn.sign(h,n.secretKey.slice(0,32));return mc({header:o,payload:u,signature:f})}const xc="PARSE_ERROR",Fc="INVALID_REQUEST",Ac="METHOD_NOT_FOUND",Sc="INVALID_PARAMS",hi="INTERNAL_ERROR",Ar="SERVER_ERROR",Bc=[-32700,-32600,-32601,-32602,-32603],nt={[xc]:{code:-32700,message:"Parse error"},[Fc]:{code:-32600,message:"Invalid Request"},[Ac]:{code:-32601,message:"Method not found"},[Sc]:{code:-32602,message:"Invalid params"},[hi]:{code:-32603,message:"Internal error"},[Ar]:{code:-32e3,message:"Server error"}},di=Ar;function Oc(e){return Bc.includes(e)}function mn(e){return Object.keys(nt).includes(e)?nt[e]:nt[di]}function Tc(e){const t=Object.values(nt).find(r=>r.code===e);return t||nt[di]}function pi(e,t,r){return e.message.includes("getaddrinfo ENOTFOUND")||e.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${r} RPC url at ${t}`):e}var bi={};/*! *****************************************************************************
|
|
2
2
|
Copyright (c) Microsoft Corporation.
|
|
3
3
|
|
|
4
4
|
Permission to use, copy, modify, and/or distribute this software for any
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const R=require("./index-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const R=require("./index-Drek_-UI.js");exports.AutomaticCCTPRoute=R.AutomaticCCTPRoute;exports.AutomaticPorticoRoute=R.AutomaticPorticoRoute;exports.AutomaticTokenBridgeRoute=R.AutomaticTokenBridgeRoute;exports.CCTPRoute=R.CCTPRoute;exports.DEFAULT_ROUTES=R.DEFAULT_ROUTES;exports.ERR_AMOUNT_TOO_LARGE=R.ERR_AMOUNT_TOO_LARGE;exports.ERR_AMOUNT_TOO_SMALL=R.ERR_AMOUNT_TOO_SMALL;exports.ERR_DESTINATION_CONTRACT_PAUSED=R.ERR_DESTINATION_CONTRACT_PAUSED;exports.ERR_INSUFFICIENT_ALLOWANCE=R.ERR_INSUFFICIENT_ALLOWANCE;exports.ERR_INSUFFICIENT_GAS=R.ERR_INSUFFICIENT_GAS;exports.ERR_NOT_ENOUGH_CAPACITY=R.ERR_NOT_ENOUGH_CAPACITY;exports.ERR_RELAY_FAILED=R.ERR_RELAY_FAILED;exports.ERR_SOURCE_CONTRACT_PAUSED=R.ERR_SOURCE_CONTRACT_PAUSED;exports.ERR_TIMEOUT=R.ERR_TIMEOUT;exports.ERR_UNKNOWN=R.ERR_UNKNOWN;exports.ERR_UNSUPPORTED_ABI_VERSION=R.ERR_UNSUPPORTED_ABI_VERSION;exports.ERR_USER_REJECTED=R.ERR_USER_REJECTED;exports.MAINNET=R.MAINNET;exports.TESTNET=R.TESTNET;exports.Token=R.Token;exports.TokenBridgeRoute=R.TokenBridgeRoute;exports.buildConfig=R.buildConfig;exports.config=R.types;exports.default=R.WormholeConnect;exports.getTokenDetails=R.getTokenDetails;exports.getTransferDetails=R.getTransferDetails;
|
package/lib/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as a, H as T, A as _, G as s, D as A, V as N, X as O, Q as e, L as o, U as t, O as C, $ as U, P as I, Z as S, _ as i, R as u, Y as D, M as L, T as P, y as n, z as r, x as F, I as g, w as M, J as c, K as f } from "./index-
|
|
1
|
+
import { F as a, H as T, A as _, G as s, D as A, V as N, X as O, Q as e, L as o, U as t, O as C, $ as U, P as I, Z as S, _ as i, R as u, Y as D, M as L, T as P, y as n, z as r, x as F, I as g, w as M, J as c, K as f } from "./index-BI7ozQB8.mjs";
|
|
2
2
|
export {
|
|
3
3
|
a as AutomaticCCTPRoute,
|
|
4
4
|
T as AutomaticPorticoRoute,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("./solana-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("./solana-Dr0ynR-F.js"),o=C.b`<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
2
|
<path d="M9.125 6.875C9.125 6.57833 9.21298 6.28832 9.3778 6.04165C9.54262 5.79497 9.77689 5.60271 10.051 5.48918C10.3251 5.37565 10.6267 5.34594 10.9176 5.40382C11.2086 5.4617 11.4759 5.60456 11.6857 5.81434C11.8954 6.02412 12.0383 6.29139 12.0962 6.58236C12.1541 6.87334 12.1244 7.17494 12.0108 7.44903C11.8973 7.72311 11.705 7.95738 11.4584 8.1222C11.2117 8.28703 10.9217 8.375 10.625 8.375C10.2272 8.375 9.84565 8.21696 9.56434 7.93566C9.28304 7.65436 9.125 7.27282 9.125 6.875ZM21.125 11C21.125 13.0025 20.5312 14.9601 19.4186 16.6251C18.3061 18.2902 16.7248 19.5879 14.8747 20.3543C13.0246 21.1206 10.9888 21.3211 9.02471 20.9305C7.06066 20.5398 5.25656 19.5755 3.84055 18.1595C2.42454 16.7435 1.46023 14.9393 1.06955 12.9753C0.678878 11.0112 0.879387 8.97543 1.64572 7.12533C2.41206 5.27523 3.70981 3.69392 5.37486 2.58137C7.0399 1.46882 8.99747 0.875 11 0.875C13.6844 0.877978 16.258 1.94567 18.1562 3.84383C20.0543 5.74199 21.122 8.3156 21.125 11ZM18.875 11C18.875 9.44247 18.4131 7.91992 17.5478 6.62488C16.6825 5.32985 15.4526 4.32049 14.0136 3.72445C12.5747 3.12841 10.9913 2.97246 9.46367 3.27632C7.93607 3.58017 6.53288 4.3302 5.43154 5.43153C4.3302 6.53287 3.58018 7.93606 3.27632 9.46366C2.97246 10.9913 3.12841 12.5747 3.72445 14.0136C4.32049 15.4526 5.32985 16.6825 6.62489 17.5478C7.91993 18.4131 9.44248 18.875 11 18.875C13.0879 18.8728 15.0896 18.0424 16.566 16.566C18.0424 15.0896 18.8728 13.0879 18.875 11ZM12.125 14.4387V11.375C12.125 10.8777 11.9275 10.4008 11.5758 10.0492C11.2242 9.69754 10.7473 9.5 10.25 9.5C9.98433 9.4996 9.72708 9.59325 9.52383 9.76435C9.32058 9.93544 9.18444 10.173 9.13952 10.4348C9.09461 10.6967 9.14381 10.966 9.27843 11.195C9.41304 11.4241 9.62438 11.5981 9.875 11.6863V14.75C9.875 15.2473 10.0725 15.7242 10.4242 16.0758C10.7758 16.4275 11.2527 16.625 11.75 16.625C12.0157 16.6254 12.2729 16.5318 12.4762 16.3607C12.6794 16.1896 12.8156 15.952 12.8605 15.6902C12.9054 15.4283 12.8562 15.159 12.7216 14.93C12.587 14.7009 12.3756 14.5269 12.125 14.4387Z" fill="currentColor"/>
|
|
3
3
|
</svg>`;exports.infoSvg=o;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as C } from "./solana-
|
|
1
|
+
import { l as C } from "./solana-BiosgjxK.mjs";
|
|
2
2
|
const t = C`<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
3
|
<path d="M9.125 6.875C9.125 6.57833 9.21298 6.28832 9.3778 6.04165C9.54262 5.79497 9.77689 5.60271 10.051 5.48918C10.3251 5.37565 10.6267 5.34594 10.9176 5.40382C11.2086 5.4617 11.4759 5.60456 11.6857 5.81434C11.8954 6.02412 12.0383 6.29139 12.0962 6.58236C12.1541 6.87334 12.1244 7.17494 12.0108 7.44903C11.8973 7.72311 11.705 7.95738 11.4584 8.1222C11.2117 8.28703 10.9217 8.375 10.625 8.375C10.2272 8.375 9.84565 8.21696 9.56434 7.93566C9.28304 7.65436 9.125 7.27282 9.125 6.875ZM21.125 11C21.125 13.0025 20.5312 14.9601 19.4186 16.6251C18.3061 18.2902 16.7248 19.5879 14.8747 20.3543C13.0246 21.1206 10.9888 21.3211 9.02471 20.9305C7.06066 20.5398 5.25656 19.5755 3.84055 18.1595C2.42454 16.7435 1.46023 14.9393 1.06955 12.9753C0.678878 11.0112 0.879387 8.97543 1.64572 7.12533C2.41206 5.27523 3.70981 3.69392 5.37486 2.58137C7.0399 1.46882 8.99747 0.875 11 0.875C13.6844 0.877978 16.258 1.94567 18.1562 3.84383C20.0543 5.74199 21.122 8.3156 21.125 11ZM18.875 11C18.875 9.44247 18.4131 7.91992 17.5478 6.62488C16.6825 5.32985 15.4526 4.32049 14.0136 3.72445C12.5747 3.12841 10.9913 2.97246 9.46367 3.27632C7.93607 3.58017 6.53288 4.3302 5.43154 5.43153C4.3302 6.53287 3.58018 7.93606 3.27632 9.46366C2.97246 10.9913 3.12841 12.5747 3.72445 14.0136C4.32049 15.4526 5.32985 16.6825 6.62489 17.5478C7.91993 18.4131 9.44248 18.875 11 18.875C13.0879 18.8728 15.0896 18.0424 16.566 16.566C18.0424 15.0896 18.8728 13.0879 18.875 11ZM12.125 14.4387V11.375C12.125 10.8777 11.9275 10.4008 11.5758 10.0492C11.2242 9.69754 10.7473 9.5 10.25 9.5C9.98433 9.4996 9.72708 9.59325 9.52383 9.76435C9.32058 9.93544 9.18444 10.173 9.13952 10.4348C9.09461 10.6967 9.14381 10.966 9.27843 11.195C9.41304 11.4241 9.62438 11.5981 9.875 11.6863V14.75C9.875 15.2473 10.0725 15.7242 10.4242 16.0758C10.7758 16.4275 11.2527 16.625 11.75 16.625C12.0157 16.6254 12.2729 16.5318 12.4762 16.3607C12.6794 16.1896 12.8156 15.952 12.8605 15.6902C12.9054 15.4283 12.8562 15.159 12.7216 14.93C12.587 14.7009 12.3756 14.5269 12.125 14.4387Z" fill="currentColor"/>
|
|
4
4
|
</svg>`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./solana-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./solana-Dr0ynR-F.js"),l=e.b`<svg fill="none" viewBox="0 0 14 15">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
d="M6 10.49a1 1 0 1 0 2 0v-2a1 1 0 0 0-2 0v2ZM7 4.49a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z"
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("./solana-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("./solana-Dr0ynR-F.js"),e=C.b`<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
2
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.00177 1.78569C3.8179 1.78569 2.85819 2.74508 2.85819 3.92855C2.85819 4.52287 3.09928 5.05956 3.49077 5.4485L3.5005 5.45817C3.64381 5.60054 3.76515 5.72108 3.85631 5.81845C3.93747 5.90512 4.05255 6.03218 4.12889 6.1805C4.16999 6.26034 4.19 6.30843 4.21768 6.39385C4.22145 6.40546 4.22499 6.41703 4.22833 6.42855H5.77521C5.77854 6.41703 5.78208 6.40547 5.78585 6.39385C5.81353 6.30843 5.83354 6.26034 5.87464 6.1805C5.95098 6.03218 6.06606 5.90512 6.14722 5.81845C6.23839 5.72108 6.35973 5.60053 6.50304 5.45816L6.51276 5.4485C6.90425 5.05956 7.14534 4.52287 7.14534 3.92855C7.14534 2.74508 6.18563 1.78569 5.00177 1.78569ZM5.71629 7.85712H4.28724C4.28724 8.21403 4.28876 8.40985 4.30703 8.54571C4.30727 8.54748 4.30751 8.54921 4.30774 8.55091C4.30944 8.55115 4.31118 8.55138 4.31295 8.55162C4.44884 8.56989 4.64474 8.5714 5.00177 8.5714C5.3588 8.5714 5.55469 8.56989 5.69059 8.55162C5.69236 8.55138 5.69409 8.55115 5.69579 8.55091C5.69603 8.54921 5.69627 8.54748 5.6965 8.54571C5.71477 8.40985 5.71629 8.21403 5.71629 7.85712ZM2.85819 7.14283C2.85819 6.9948 2.85796 6.91114 2.8548 6.85032C2.85461 6.84656 2.85441 6.84309 2.85421 6.83988C2.84393 6.8282 2.83047 6.81334 2.81301 6.79469C2.74172 6.71856 2.63908 6.61643 2.48342 6.46178C1.83307 5.81566 1.42914 4.91859 1.42914 3.92855C1.42914 1.9561 3.02866 0.357117 5.00177 0.357117C6.97487 0.357117 8.57439 1.9561 8.57439 3.92855C8.57439 4.91859 8.17047 5.81566 7.52012 6.46178C7.36445 6.61643 7.26182 6.71856 7.19053 6.79469C7.17306 6.81334 7.1596 6.8282 7.14932 6.83988C7.14912 6.84309 7.14892 6.84656 7.14873 6.85032C7.14557 6.91114 7.14534 6.9948 7.14534 7.14283V7.85712C7.14534 7.87009 7.14535 7.88304 7.14535 7.89598C7.14541 8.19889 7.14547 8.49326 7.11281 8.73606C7.076 9.00978 6.98631 9.32212 6.72678 9.58156C6.46726 9.841 6.15481 9.93065 5.881 9.96745C5.63813 10.0001 5.34365 10 5.04064 9.99998C5.0277 9.99998 5.01474 9.99998 5.00177 9.99998C4.98879 9.99998 4.97583 9.99998 4.96289 9.99998C4.65988 10 4.36541 10.0001 4.12253 9.96745C3.84872 9.93065 3.53628 9.841 3.27675 9.58156C3.01722 9.32212 2.92753 9.00978 2.89072 8.73606C2.85807 8.49326 2.85812 8.19889 2.85818 7.89598C2.85819 7.88304 2.85819 7.87008 2.85819 7.85712V7.14283ZM7.1243 6.86977C7.12366 6.87069 7.1233 6.87116 7.12327 6.87119C7.12323 6.87123 7.12356 6.87076 7.1243 6.86977ZM2.88027 6.8712C2.88025 6.87119 2.87988 6.8707 2.87921 6.86975C2.87995 6.87072 2.88028 6.8712 2.88027 6.8712Z" fill="#949E9E"/>
|
|
3
3
|
</svg>`;exports.lightbulbSvg=e;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as C } from "./solana-
|
|
1
|
+
import { l as C } from "./solana-BiosgjxK.mjs";
|
|
2
2
|
const e = C`<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
3
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.00177 1.78569C3.8179 1.78569 2.85819 2.74508 2.85819 3.92855C2.85819 4.52287 3.09928 5.05956 3.49077 5.4485L3.5005 5.45817C3.64381 5.60054 3.76515 5.72108 3.85631 5.81845C3.93747 5.90512 4.05255 6.03218 4.12889 6.1805C4.16999 6.26034 4.19 6.30843 4.21768 6.39385C4.22145 6.40546 4.22499 6.41703 4.22833 6.42855H5.77521C5.77854 6.41703 5.78208 6.40547 5.78585 6.39385C5.81353 6.30843 5.83354 6.26034 5.87464 6.1805C5.95098 6.03218 6.06606 5.90512 6.14722 5.81845C6.23839 5.72108 6.35973 5.60053 6.50304 5.45816L6.51276 5.4485C6.90425 5.05956 7.14534 4.52287 7.14534 3.92855C7.14534 2.74508 6.18563 1.78569 5.00177 1.78569ZM5.71629 7.85712H4.28724C4.28724 8.21403 4.28876 8.40985 4.30703 8.54571C4.30727 8.54748 4.30751 8.54921 4.30774 8.55091C4.30944 8.55115 4.31118 8.55138 4.31295 8.55162C4.44884 8.56989 4.64474 8.5714 5.00177 8.5714C5.3588 8.5714 5.55469 8.56989 5.69059 8.55162C5.69236 8.55138 5.69409 8.55115 5.69579 8.55091C5.69603 8.54921 5.69627 8.54748 5.6965 8.54571C5.71477 8.40985 5.71629 8.21403 5.71629 7.85712ZM2.85819 7.14283C2.85819 6.9948 2.85796 6.91114 2.8548 6.85032C2.85461 6.84656 2.85441 6.84309 2.85421 6.83988C2.84393 6.8282 2.83047 6.81334 2.81301 6.79469C2.74172 6.71856 2.63908 6.61643 2.48342 6.46178C1.83307 5.81566 1.42914 4.91859 1.42914 3.92855C1.42914 1.9561 3.02866 0.357117 5.00177 0.357117C6.97487 0.357117 8.57439 1.9561 8.57439 3.92855C8.57439 4.91859 8.17047 5.81566 7.52012 6.46178C7.36445 6.61643 7.26182 6.71856 7.19053 6.79469C7.17306 6.81334 7.1596 6.8282 7.14932 6.83988C7.14912 6.84309 7.14892 6.84656 7.14873 6.85032C7.14557 6.91114 7.14534 6.9948 7.14534 7.14283V7.85712C7.14534 7.87009 7.14535 7.88304 7.14535 7.89598C7.14541 8.19889 7.14547 8.49326 7.11281 8.73606C7.076 9.00978 6.98631 9.32212 6.72678 9.58156C6.46726 9.841 6.15481 9.93065 5.881 9.96745C5.63813 10.0001 5.34365 10 5.04064 9.99998C5.0277 9.99998 5.01474 9.99998 5.00177 9.99998C4.98879 9.99998 4.97583 9.99998 4.96289 9.99998C4.65988 10 4.36541 10.0001 4.12253 9.96745C3.84872 9.93065 3.53628 9.841 3.27675 9.58156C3.01722 9.32212 2.92753 9.00978 2.89072 8.73606C2.85807 8.49326 2.85812 8.19889 2.85818 7.89598C2.85819 7.88304 2.85819 7.87008 2.85819 7.85712V7.14283ZM7.1243 6.86977C7.12366 6.87069 7.1233 6.87116 7.12327 6.87119C7.12323 6.87123 7.12356 6.87076 7.1243 6.86977ZM2.88027 6.8712C2.88025 6.87119 2.87988 6.8707 2.87921 6.86975C2.87995 6.87072 2.88028 6.8712 2.88027 6.8712Z" fill="#949E9E"/>
|
|
4
4
|
</svg>`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./solana-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./solana-Dr0ynR-F.js"),l=e.b`<svg fill="none" viewBox="0 0 16 16">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./solana-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./solana-Dr0ynR-F.js"),l=e.b`<svg fill="none" viewBox="0 0 20 20">
|
|
2
2
|
<path fill="currentColor" d="M10.81 5.81a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z" />
|
|
3
3
|
<path
|
|
4
4
|
fill="currentColor"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./solana-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./solana-Dr0ynR-F.js"),l=e.b`<svg fill="none" viewBox="0 0 41 40">
|
|
2
2
|
<path
|
|
3
3
|
style="fill: var(--wui-color-fg-100);"
|
|
4
4
|
fill-opacity=".05"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./solana-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./solana-Dr0ynR-F.js"),e=l.b`<svg fill="none" viewBox="0 0 22 20">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./solana-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./solana-Dr0ynR-F.js"),l=c.b`<svg fill="none" viewBox="0 0 20 20">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|