@dcl/shop 1.9.2-32493339792.commit-9dd6f23 → 1.9.2
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/_assets/{Activity-BOBru6F-.js → Activity-Dt6DfbvQ.js} +8 -8
- package/_assets/{AnimatedBackground-ChPsWRtA.js → AnimatedBackground-D9fqKZZL.js} +2 -2
- package/_assets/{Assets-DWI4NaVr.js → Assets-Cpt6sCyJ.js} +7 -7
- package/_assets/{Authorizations-xVmNfbFf.js → Authorizations-QDcGhwOD.js} +2 -2
- package/_assets/{Cart-BGUrce5E.js → Cart-k83ms4yR.js} +2 -2
- package/_assets/{CircularProgress-DO_ZwmA1.js → CircularProgress-Zi497kNF.js} +2 -2
- package/_assets/{Collection-CHpDQHJq.js → Collection-DN9kyHxU.js} +2 -2
- package/_assets/{CollectionCarousel-BRzHQV17.js → CollectionCarousel-CiQjTUxK.js} +3 -3
- package/_assets/{Confetti-BB86KAAN.js → Confetti-BxjiVKPm.js} +4 -4
- package/_assets/{ConstantsUtil-jo9GWluc.js → ConstantsUtil-DaE8obaZ.js} +2 -2
- package/_assets/{ContentClient-DxrhRvzn.js → ContentClient-D0SQSgXF.js} +2 -2
- package/_assets/{Creator-CjNMUbTO.js → Creator-DV2Q_EhN.js} +2 -2
- package/_assets/{DeploymentBuilder-83ix5TQu.js → DeploymentBuilder-xN7K8y9o.js} +2 -2
- package/_assets/{EmotePlaybackBar-19e05uCD.js → EmotePlaybackBar-DiG0rn9W.js} +3 -3
- package/_assets/{ErrorNotice-BbDJ7oSM.js → ErrorNotice-BW8aXw_7.js} +2 -2
- package/_assets/{ExchangeController-DQz0ozwB.js → ExchangeController-B4BdmoV9.js} +2 -2
- package/_assets/{Faq-RFP04LeF.js → Faq-CI78-N0I.js} +2 -2
- package/_assets/{GetCredits-C4q9KCPa.js → GetCredits-LUpSuIG_.js} +8 -8
- package/_assets/{Grow-DbyGwris.js → Grow-CjEYi24F.js} +2 -2
- package/_assets/{HelpersUtil-sn-EX4sD.js → HelpersUtil-B76CBImb.js} +2 -2
- package/_assets/{ItemDetail-BT1EJeg9.js → ItemDetail--_To60pF.js} +2 -2
- package/_assets/{LoadMore-DWB-tGRB.js → LoadMore-BXkJAed-.js} +2 -2
- package/_assets/{ManaPricingBanner.styles-C9kR0xkR.js → ManaPricingBanner.styles-C4fJtJh-.js} +2 -2
- package/_assets/{MyAssets-BcVgG-ED.js → MyAssets-1QA09uaq.js} +2 -2
- package/_assets/{MyFavorites-CJwXz0t5.js → MyFavorites-BGBd9cHu.js} +2 -2
- package/_assets/{NetworkUtil-BdwtOd1-.js → NetworkUtil-CUhhiBwq.js} +2 -2
- package/_assets/{NotFound-B-UIb9Nr.js → NotFound-1d5l0fPQ.js} +2 -2
- package/_assets/{NotificationsBell-DaKv2283.js → NotificationsBell-cuQUq5HL.js} +2 -2
- package/_assets/{OutfitDetail-Dabdj6Zq.js → OutfitDetail-Hft483Ec.js} +2 -2
- package/_assets/{OutfitPreview-CLNkogeE.js → OutfitPreview-WwPNEOjI.js} +2 -2
- package/_assets/{OutfitStudio-DxgrYDdK.js → OutfitStudio-Ccib9vIn.js} +2 -2
- package/_assets/{StoreSettings-DpMAQomJ.js → StoreSettings-CX45pls-.js} +2 -2
- package/_assets/{Success-D4YczCOw.js → Success-C7bxhod-.js} +2 -2
- package/_assets/{SwapController-BTOBBLzw.js → SwapController-2o6kQ91x.js} +2 -2
- package/_assets/{TradeService-h-QSpBV6.js → TradeService-p9Z6Y0wD.js} +2 -2
- package/_assets/{W3MFrameProviderSingleton-DNYBXqcl.js → W3MFrameProviderSingleton-Cil5qlaS.js} +4 -4
- package/_assets/{WebCryptoP256-42HMh_PV.js → WebCryptoP256-BZht8npt.js} +2 -2
- package/_assets/{authorizations-DkRdd-1d.js → authorizations-CJLGounG.js} +2 -2
- package/_assets/{basic-xgd_UIZp.js → basic-CV4HIKM2.js} +2 -2
- package/_assets/{biconomy-LnVXJyVN.js → biconomy-C1M_WGYX.js} +2 -2
- package/_assets/{browseLayout.styles-B8_UmpYi.js → browseLayout.styles-CbyAhCls.js} +2 -2
- package/_assets/{browser-DCf3IQS1.js → browser-BsRaY-pm.js} +2 -2
- package/_assets/{browser-ponyfill-Dqmkl3JZ.js → browser-ponyfill--2nwarnr.js} +2 -2
- package/_assets/{builder-lLfr3elt.js → builder-CeLuOnuM.js} +2 -2
- package/_assets/{buy-B_nE_K_L.js → buy-DymchWn5.js} +2 -2
- package/_assets/{buy-gasless-DK9YnK5W.js → buy-gasless-_tY7hzCY.js} +2 -2
- package/_assets/{categories-CUsrLJsQ.js → categories-CXj1P-ln.js} +2 -2
- package/_assets/{ccip-B2FezZBB.js → ccip-CQiZ3-qM.js} +2 -2
- package/_assets/{ccip-Bumbcuu6.js → ccip-FnhUFIYm.js} +2 -2
- package/_assets/{chains-DAwnzJtp.js → chains-DfMERfnW.js} +2 -2
- package/_assets/collectionPage.styles-ADf8X1pQ.js +40 -0
- package/_assets/{common-CZ2_t92X.js → common-C_ndt6fZ.js} +2 -2
- package/_assets/{controller-C_Z7GwZl.js → controller-DDEQmJXP.js} +3 -3
- package/_assets/{core-C0V9LYxl.js → core-j77nIizU.js} +5 -5
- package/_assets/{createSvgIcon-BDETCLue.js → createSvgIcon-Du97wPGf.js} +2 -2
- package/_assets/{custom-Bpch6eDt.js → custom-Dxc1jEzQ.js} +2 -2
- package/_assets/{data-capture-CgzhJSuI.js → data-capture-BU8pDw-T.js} +2 -2
- package/_assets/{dcl-schemas-D-HY5c5S.js → dcl-schemas-BBgGLe8k.js} +2 -2
- package/_assets/{decimals-CvLYuks1.js → decimals-e9gwXexf.js} +2 -2
- package/_assets/{decimals-CMPrx8H9.js → decimals-letC916t.js} +2 -2
- package/_assets/{detectExtension-eKsK5_7N.js → detectExtension-C9d6YCCt.js} +2 -2
- package/_assets/{disposePreview-7gQAmFWx.js → disposePreview-Dezrw02g.js} +2 -2
- package/_assets/{email-CzUruI1B.js → email-DSscz4Vl.js} +2 -2
- package/_assets/{embedded-wallet-Dzt0EALS.js → embedded-wallet-Kj2rnf5C.js} +2 -2
- package/_assets/{emotion-styled.browser.esm-CKkXZGM0.js → emotion-styled.browser.esm-JObVDgrH.js} +2 -2
- package/_assets/{engine-BdqWc7md.js → engine-HowSqiPZ.js} +2 -2
- package/_assets/{errors-gm41DtjH.js → errors-CqEjLz14.js} +2 -2
- package/_assets/{estimate-l1-fee-CNM3A5EY.js → estimate-l1-fee-4Nc3yCK1.js} +2 -2
- package/_assets/{eth_estimateGas-C51fArBf.js → eth_estimateGas-07hHMEkF.js} +2 -2
- package/_assets/{eth_getStorageAt-Cpp_9_JB.js → eth_getStorageAt-B_6XaGoO.js} +2 -2
- package/_assets/{eth_getTransactionCount-DwpZpPfN.js → eth_getTransactionCount-BvPk5RHG.js} +2 -2
- package/_assets/{ethereum-CWRHwHnG.js → ethereum-eDYZBrz5.js} +2 -2
- package/_assets/{ethers-D5UuIc_H.js → ethers-BKRWnjV9.js} +2 -2
- package/_assets/{events-BgG191wB.js → events-S6R_9oRG.js} +2 -2
- package/_assets/{execute-C13MuCL-.js → execute-DxIYEcvB.js} +3 -3
- package/_assets/{extractIPFS-C0y057MY.js → extractIPFS-DKyUVdVV.js} +2 -2
- package/_assets/{features-DhJBxZ00.js → features-PyWxVTLV.js} +2 -2
- package/_assets/{fetchTokenMetadata-oE-PbhMg.js → fetchTokenMetadata-DTgK8IFo.js} +3 -3
- package/_assets/{field.styles-CAUTIJXl.js → field.styles-DKQS3oWo.js} +2 -2
- package/_assets/{fortmatic-2c1nSnhu.js → fortmatic-Cd8UWzR7.js} +2 -2
- package/_assets/{get-bytecode-LEW7S20n.js → get-bytecode-CNrt-FoQ.js} +2 -2
- package/_assets/{get-ecosystem-wallet-info-GQiNBhTt.js → get-ecosystem-wallet-info-Ddh0TZp5.js} +2 -2
- package/_assets/{getBalance-Wt9rkI1m.js → getBalance-HweKqf1d.js} +3 -3
- package/_assets/{getInstalledModules-CCjhRkB7.js → getInstalledModules-DIY2QXZg.js} +2 -2
- package/_assets/{getNFT-BIVMfh86.js → getNFT--CbGnkWO.js} +2 -2
- package/_assets/{getNFT-DX_76hyk.js → getNFT-Dm-BLuw5.js} +3 -3
- package/_assets/{grid.styles-B7j4ZE-1.js → grid.styles-C24oAL5O.js} +2 -2
- package/_assets/{hashTypedData-C2S6ISWi.js → hashTypedData-Cs3JQ0er.js} +2 -2
- package/_assets/{hashTypedData-OVmkM126.js → hashTypedData-DQ_Lbi0o.js} +2 -2
- package/_assets/{in-app-Baurkd2s.js → in-app-CW-TClWX.js} +2 -2
- package/_assets/{in-app-wallet-calls-DYr60akb.js → in-app-wallet-calls-Td7jQu3N.js} +2 -2
- package/_assets/{index-B9CqKPcy.js → index--RzAwV6Q.js} +2 -2
- package/_assets/{index-Lmp-vKwx.js → index-9jY2-EBG.js} +2 -2
- package/_assets/{index-sKrDbJHW.js → index-AiBvYRW5.js} +2 -2
- package/_assets/{index-D-XFph9c.js → index-B0zOOgnV.js} +2 -2
- package/_assets/{index-D9i93oWe.js → index-B3XA61Pm.js} +2 -2
- package/_assets/{index-Mdjd149J.js → index-B6SpJox_.js} +2 -2
- package/_assets/{index-BoJu_Nfn.js → index-B7lHpbYl.js} +2 -2
- package/_assets/{index-CYBANRcc.js → index-BCN8HQIT.js} +2 -2
- package/_assets/{index-72qrJRLP.js → index-BEfcKQqS.js} +2 -2
- package/_assets/{index-Bs1IwEFK.js → index-BJ6Fw5Al.js} +2 -2
- package/_assets/{index-BCTIVQ38.js → index-BJITEOWs.js} +2 -2
- package/_assets/{index-BAyQKXeX.js → index-BKoIacqr.js} +3 -3
- package/_assets/{index-DRvURtEA.js → index-BRF6gJ7Q.js} +2 -2
- package/_assets/{index-McQPTb3I.js → index-BSzD0ncl.js} +2 -2
- package/_assets/{index-D90e8KfQ.js → index-BTGMdjiQ.js} +2 -2
- package/_assets/{index-BoLVFQhU.js → index-BTdE-853.js} +2 -2
- package/_assets/{index-BM1Is6f3.js → index-BTkKLFzm.js} +2 -2
- package/_assets/{index-Du4TWaea.js → index-BVuZOuvn.js} +3 -3
- package/_assets/{index-CSh0mTD_.js → index-BXQ9FyQv.js} +3 -3
- package/_assets/{index-CMb63NTm.js → index-BYZ634H2.js} +2 -2
- package/_assets/{index-nfljjUsr.js → index-Bbs_JDF9.js} +2 -2
- package/_assets/{index-CwLlEfsN.js → index-BdM6GuSo.js} +2 -2
- package/_assets/{index-Cg7UsMUc.js → index-BfNdu86e.js} +2 -2
- package/_assets/{index-Db70RtN9.js → index-BhsA-pb-.js} +2 -2
- package/_assets/{index-Cq6EUh9o.js → index-BjW_aHIh.js} +2 -2
- package/_assets/{index-Bk5SRPIO.js → index-BpCu9mM3.js} +2 -2
- package/_assets/{index-uKWDNSAp.js → index-C2gUP7Wd.js} +2 -2
- package/_assets/{index-Bth6O8wI.js → index-C5UkgriS.js} +2 -2
- package/_assets/{index-ClNVZsZJ.js → index-C7fDOFW2.js} +2 -2
- package/_assets/{index-c8Ld0DY9.js → index-CGZa27zg.js} +2 -2
- package/_assets/{index-COAnC5q2.js → index-CMZjflvo.js} +2 -2
- package/_assets/{index-M6WjC5UC.js → index-CNbMuq6z.js} +2 -2
- package/_assets/{index-Do0EDxo0.js → index-CR-CF0bF.js} +2 -2
- package/_assets/{index-BpwQPG2r.js → index-CWMBT2iW.js} +2 -2
- package/_assets/{index-at-KdJKv.js → index-CZXqNGbb.js} +2 -2
- package/_assets/{index-BRQHDmfJ.js → index-CdfCxJMq.js} +2 -2
- package/_assets/{index-D5UBGQRC.js → index-CeMa_Fpw.js} +2 -2
- package/_assets/{index-BAZW_9En.js → index-CoCdUrpV.js} +2 -2
- package/_assets/{index-DgewcXtQ.js → index-CoFmUEdb.js} +4 -4
- package/_assets/{index-CyOZb_GG.js → index-CuBLDtFZ.js} +4 -4
- package/_assets/{index-DaAnU2xP.js → index-CxkbKeKD.js} +2 -2
- package/_assets/{index-CNPhraPm.js → index-CzbStCVl.js} +2 -2
- package/_assets/{index-CieO3ayk.js → index-CzuWMO-_.js} +2 -2
- package/_assets/{index-C_c-NZp-.js → index-D-M7F27b.js} +2 -2
- package/_assets/{index-Dm14m91b.js → index-D2bN0_3y.js} +2 -2
- package/_assets/{index-BQ7twFQE.js → index-D9kntTpl.js} +2 -2
- package/_assets/{index-lgfAposA.js → index-DEOUkXMy.js} +2 -2
- package/_assets/{index-yMykCGD4.js → index-DF089E3i.js} +2 -2
- package/_assets/{index-mtunB8HD.js → index-DNROAxKm.js} +2 -2
- package/_assets/{index-Dfsi8IW9.js → index-DQdcxui0.js} +2 -2
- package/_assets/{index-BqRCIJLW.js → index-DY6pIrBT.js} +2 -2
- package/_assets/{index-DJCj-1zL.js → index-D_nXvzND.js} +2 -2
- package/_assets/{index-CU7TM-NA.js → index-DjP3X3Jh.js} +2 -2
- package/_assets/{index-rd-W7f1j.js → index-Djpq4q5g.js} +4 -4
- package/_assets/{index-i8480yQ2.js → index-DpMjDWPc.js} +2 -2
- package/_assets/{index-BKwSv05S.js → index-Dq2Ka7mB.js} +3 -3
- package/_assets/{index-C8MVNekM.js → index-EW0m5fIH.js} +2 -2
- package/_assets/{index-C1roXIZW.js → index-FPMEVY0k.js} +2 -2
- package/_assets/{index-Bk62vTwq.js → index-Kerq77jm.js} +2 -2
- package/_assets/{index-CBSi566e.js → index-YSCl74H6.js} +2 -2
- package/_assets/{index-CEpjUJOV.js → index-_iT3UM2o.js} +2 -2
- package/_assets/{index-DzcRYNtx.js → index-hGWc_5eF.js} +2 -2
- package/_assets/{index-BksLSPkQ.js → index-haPNmxuN.js} +2 -2
- package/_assets/{index-Dqfr2bvx.js → index-kizwd9je.js} +2 -2
- package/_assets/{index-C6i7o4u4.js → index-sQFfvNZX.js} +16 -16
- package/_assets/{index-wQXlFsU6.js → index-uVLu1nYC.js} +2 -2
- package/_assets/{index-CPRN9-ev.js → index-zyd0LxKG.js} +2 -2
- package/_assets/{index.es-DAAXIk2h.js → index.es-CReVKXvk.js} +2 -2
- package/_assets/{index.es-BjOWM-FW.js → index.es-CnQERyF2.js} +2 -2
- package/_assets/{index.es-m3UaQXcT.js → index.es-NKUXf-un.js} +5 -5
- package/_assets/{index.es-BmdpcFeJ.js → index.es-iv8hf5ai.js} +2 -2
- package/_assets/items-empty-CJboE1w9.js +2 -0
- package/_assets/{jump-DnjeXKXd.js → jump-CeInMpQz.js} +2 -2
- package/_assets/{linkAccount-BWENOnOz.js → linkAccount-CJSln8y3.js} +2 -2
- package/_assets/{localBatchGatewayRequest-DM1HFidU.js → localBatchGatewayRequest-C4ULrlUp.js} +2 -2
- package/_assets/{native-mzGBZPh4.js → native-d_18A6YH.js} +2 -2
- package/_assets/{networks-z8EeFSod.js → networks-a6Oqotld.js} +2 -2
- package/_assets/{onramp-BBvFzwFo.js → onramp-CDgb9WlA.js} +2 -2
- package/_assets/{openzeppelin-Bxko_dSX.js → openzeppelin-MXrpXJs9.js} +2 -2
- package/_assets/{ownerOf-sdNRPM2v.js → ownerOf-BSpUUDYN.js} +2 -2
- package/_assets/{parseNft-CjIpSfSz.js → parseNft-Dq5u9zmT.js} +3 -3
- package/_assets/{parseSignature-Mth-LmNb.js → parseSignature-JDi4tHpL.js} +2 -2
- package/_assets/{parseSignature-BOKtx4yn.js → parseSignature-bTbb9ogg.js} +4 -4
- package/_assets/{passkeys-Cpm0QB1F.js → passkeys-BeLLEm8_.js} +2 -2
- package/_assets/{pay-with-exchange-rU1x0moE.js → pay-with-exchange-uspxaKYi.js} +2 -2
- package/_assets/{prepare-contract-call-DtjN716O.js → prepare-contract-call-glyYfDZw.js} +2 -2
- package/_assets/{qr-overlay-BImQqiJI.js → qr-overlay-Cfm7lv4J.js} +4 -4
- package/_assets/{react-SYhE92K6.js → react-9aRvCYbm.js} +2 -2
- package/_assets/{receive-DFIcjnfC.js → receive-DzqSGOBo.js} +2 -2
- package/_assets/{resolveImplementation-CSCILjga.js → resolveImplementation-CGlyDT1c.js} +2 -2
- package/_assets/{resume-buy-BNBLokSW.js → resume-buy-DzrSPRFa.js} +2 -2
- package/_assets/{rpc-jefUZ4Bj.js → rpc-B4vokLJn.js} +2 -2
- package/_assets/{sales-empty-Ce36ffdP.js → sales-empty-DqC1PsNb.js} +2 -2
- package/_assets/{search-empty-BJh8_Eyt.js → search-empty-DCFe-ryo.js} +2 -2
- package/_assets/{secp256k1-CTWVG6WG.js → secp256k1-0pYvee0N.js} +2 -2
- package/_assets/{secp256k1-DO42QIx6.js → secp256k1-C-dCnxvN.js} +2 -2
- package/_assets/{secp256k1-CbAignr4.js → secp256k1-mA2HPwtH.js} +2 -2
- package/_assets/{send-DJzyFf15.js → send-BhFWXDEQ.js} +2 -2
- package/_assets/{send-batch-transaction-BOFIpnOE.js → send-batch-transaction-ClbwXouE.js} +2 -2
- package/_assets/{send-eip712-transaction-DuoqHyKY.js → send-eip712-transaction-Cvujs_IY.js} +3 -3
- package/_assets/{send-gasless-transaction-YBxtKwo3.js → send-gasless-transaction-o6WLUU8m.js} +3 -3
- package/_assets/{send-transaction-Byed_Cu-.js → send-transaction-brMtxtLa.js} +3 -3
- package/_assets/{sendMetaTransaction-CXtHI3NS.js → sendMetaTransaction-BO1lGCgN.js} +2 -2
- package/_assets/{sendRawTransaction-DQMs5ieU.js → sendRawTransaction-ClZJFTYs.js} +4 -4
- package/_assets/{sentry-flvYKJxM.js → sentry-CJqFbG11.js} +3 -3
- package/_assets/{serializeTransaction-DqFhIpxY.js → serializeTransaction-CHRQ4nRc.js} +2 -2
- package/_assets/{session-proposal-C-GXMZMY.js → session-proposal-DIVrgaZs.js} +2 -2
- package/_assets/{session-request-CsCmwm0y.js → session-request-DQ1KJ9v-.js} +3 -3
- package/_assets/{sha256-C5W5i7rt.js → sha256-D95xpIOk.js} +2 -2
- package/_assets/{signing-Dpz11FOI.js → signing-CF8ZzSie.js} +4 -4
- package/_assets/{skeleton.styles-Dv2nMvXK.js → skeleton.styles-CDClgQZa.js} +2 -2
- package/_assets/{socials-B5INsQgB.js → socials-Bh2JNm2f.js} +2 -2
- package/_assets/{styled-DrFcx2PN.js → styled-BJAerMAa.js} +2 -2
- package/_assets/{swaps-CkTo6sG3.js → swaps-CP0hsXom.js} +2 -2
- package/_assets/{thirdweb-C9Ryt_0k.js → thirdweb-CvWXAZKa.js} +4 -4
- package/_assets/{to-serializable-transaction-mjCZOK9T.js → to-serializable-transaction-BKfOcqcV.js} +3 -3
- package/_assets/{totalSupply-C3Y3dVY2.js → totalSupply-Civ1rKAR.js} +2 -2
- package/_assets/{transaction-Cc9XNVmp.js → transaction-LdbEZ3QP.js} +2 -2
- package/_assets/{transactionReceipt-BAc8T_v0.js → transactionReceipt-BWD_rE0W.js} +2 -2
- package/_assets/{transactions-0LjvD8Sd.js → transactions-BTkg5Hbg.js} +2 -2
- package/_assets/{useCreditPacks-FF3y6iFZ.js → useCreditPacks-DnU6Nk_-.js} +2 -2
- package/_assets/{useInfiniteGrid-9swTZj8O.js → useInfiniteGrid-DvgTy6W_.js} +2 -2
- package/_assets/{useStore-Cxw9Sr5l.js → useStore-CgGE1SzL.js} +3 -3
- package/_assets/{useTheme-DdSZ7F1l.js → useTheme-DCVzmxd7.js} +2 -2
- package/_assets/{utils-CZTvMbsX.js → utils-DF0qXAQT.js} +2 -2
- package/_assets/{verifyHash-CtlkCupL.js → verifyHash-DbgcJwW2.js} +2 -2
- package/_assets/{w3m-modal-CcPo41nd.js → w3m-modal-BCt908iO.js} +2 -2
- package/_assets/{w3m-modal-BGxKEkzq.js → w3m-modal-MofBNC-s.js} +2 -2
- package/_assets/{wait-for-tx-receipt-D9z3OJAO.js → wait-for-tx-receipt-BWYdev56.js} +2 -2
- package/_assets/{wallets-D0M1sVP6.js → wallets-CyXKPtLh.js} +6 -6
- package/_assets/{web-connector-CVpQzhWi.js → web-connector-CBmqwNC1.js} +4 -4
- package/_assets/{writeContract-nXAVqaHU.js → writeContract-U8xgcLR7.js} +2 -2
- package/_assets/{zora-sepolia--H9g3TEn.js → zora-sepolia-BcoXfUYO.js} +2 -2
- package/_assets/{zoraTestnet-B8r51b6X.js → zoraTestnet-CdLP96ll.js} +2 -2
- package/index.html +11 -11
- package/package.json +1 -1
- package/_assets/collectionPage.styles-CMg9-nBi.js +0 -40
- package/_assets/items-empty-BKfeE0c0.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{C as b,w as g}from"./execute-
|
|
2
|
-
//# sourceMappingURL=passkeys-
|
|
1
|
+
import{C as b,w as g}from"./execute-DxIYEcvB.js";import{a as d,b as p}from"./uint8-array-BMe04WIx.js";import"./prepare-contract-call-glyYfDZw.js";import"./utils-DF0qXAQT.js";import"./sentry-CJqFbG11.js";import"./react-9aRvCYbm.js";import"./index-sQFfvNZX.js";import"./dcl-schemas-BBgGLe8k.js";import"./ethers-BKRWnjV9.js";import"./intl-AKLEHPeO.js";import"./detectExtension-C9d6YCCt.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="73d4d7c0-b4cb-46bc-a820-7253b4994ce3",e._sentryDebugIdIdentifier="sentry-dbid-73d4d7c0-b4cb-46bc-a820-7253b4994ce3")}catch{}})();function f(e){return Uint8Array.from(e,t=>t.charCodeAt(0)).buffer}function h(e){return String.fromCharCode(...new Uint8Array(e))}function y(e){return e.match(/^[a-zA-Z0-9\-_]+=*$/)!==null}function l(e){return btoa(h(e)).replaceAll("+","-").replaceAll("/","_")}function s(e){return e=e.replaceAll("-","+").replaceAll("_","/"),f(atob(e))}function m(){return!!window.PublicKeyCredential}function w(e){if(!(!e||e.length===0))return e.includes("client-device")?e.includes("security-key")||e.includes("hybrid")?void 0:"platform":"cross-platform"}let i=null;async function D(e){if(!e.challenge)throw new Error('"challenge" required');if(!e.user)throw new Error('"user" required');if(!y(e.challenge))throw new Error("Provided challenge is not properly encoded in Base64url");const t=typeof e.user=="string"?{name:e.user}:e.user;t.id||(t.id=crypto.randomUUID());const n={challenge:s(e.challenge),rp:{id:e.domain??window.location.hostname,name:e.domain??window.location.hostname},user:{id:f(t.id),name:t.name,displayName:t.displayName??t.name},hints:e.hints,pubKeyCredParams:[{alg:-7,type:"public-key"},{alg:-257,type:"public-key"}],timeout:e.timeout,authenticatorSelection:{userVerification:e.userVerification,authenticatorAttachment:w(e.hints),residentKey:e.discoverable??"preferred",requireResidentKey:e.discoverable==="required"},attestation:"direct",...e.customProperties};console.debug(n),i!=null&&i.abort("Cancel ongoing authentication"),i=new AbortController;const r=await navigator.credentials.create({publicKey:n,signal:i==null?void 0:i.signal}),o=r.response;if(i=null,console.debug(r),r.type!="public-key")throw"Unexpected credential type!";const a=o.getPublicKey();if(!a)throw"Non-compliant browser or authenticator!";return{type:r.type,id:r.id,rawId:l(r.rawId),authenticatorAttachment:r.authenticatorAttachment,clientExtensionResults:r.getClientExtensionResults(),response:{attestationObject:l(o.attestationObject),authenticatorData:l(o.getAuthenticatorData()),clientDataJSON:l(o.clientDataJSON),publicKey:l(a),publicKeyAlgorithm:o.getPublicKeyAlgorithm(),transports:o.getTransports()},user:t}}async function A(){return PublicKeyCredential.isConditionalMediationAvailable&&PublicKeyCredential.isConditionalMediationAvailable()}async function C(e){var a;if(!y(e.challenge))throw new Error("Provided challenge is not properly encoded in Base64url");if(e.autocomplete&&!await A())throw new Error("Passkeys autocomplete with conditional mediation is not available in this browser.");let t={challenge:s(e.challenge),rpId:e.domain??window.location.hostname,allowCredentials:(a=e.allowCredentials)==null?void 0:a.map(S),hints:e.hints,userVerification:e.userVerification,timeout:e.timeout,...e.customProperties};console.debug(t),i!=null&&i.abort("Cancel ongoing authentication"),i=new AbortController;const n=await navigator.credentials.get({publicKey:t,mediation:e.autocomplete?"conditional":void 0,signal:i==null?void 0:i.signal});if(n.type!="public-key")throw"Unexpected credential type!";i=null,console.debug(n);const r=n.response;return{clientExtensionResults:n.getClientExtensionResults(),id:n.id,rawId:l(n.rawId),type:n.type,authenticatorAttachment:n.authenticatorAttachment,response:{authenticatorData:l(r.authenticatorData),clientDataJSON:l(r.clientDataJSON),signature:l(r.signature),userHandle:r.userHandle?l(r.userHandle):void 0}}}function S(e){return typeof e=="string"?{id:s(e),type:"public-key"}:{id:s(e.id),type:"public-key",transports:e.transports}}new TextDecoder("utf-8");function I(e){switch(e){case-7:return"ES256";case-8:return"EdDSA";case-257:return"RS256";default:throw new Error(`Unknown algorithm code: ${e}`)}}class _{isAvailable(){return m()}async register(t){const{name:n,challenge:r,rp:o}=t,a=await D({challenge:r,domain:o.id,user:n,userVerification:"required"}),c=d(a.response.clientDataJSON),u=JSON.parse(p(c));return{authenticatorData:a.response.authenticatorData,clientData:a.response.clientDataJSON,credential:{algorithm:I(a.response.publicKeyAlgorithm),publicKey:a.response.publicKey},credentialId:a.id,origin:u.origin}}async authenticate(t){const{credentialId:n,challenge:r,rp:o}=t,a=await C({allowCredentials:n?[n]:[],challenge:r,domain:o.id,userVerification:"required"}),c=d(a.response.clientDataJSON),u=JSON.parse(p(c));return{authenticatorData:a.response.authenticatorData,clientData:a.response.clientDataJSON,credentialId:a.id,origin:u.origin,signature:a.response.signature}}}async function j(e,t,n){return!!await new b({clientId:e.clientId,ecosystem:t?{id:t}:void 0,storage:n??g}).getPasskeyCredentialId()}export{_ as PasskeyWebClient,j as hasStoredPasskey};
|
|
2
|
+
//# sourceMappingURL=passkeys-BeLLEm8_.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as $,b as u}from"./lit-element-wjYUA6aF.js";import{n as h,o as P,r as d}from"./class-map-DopF_Eyi.js";import{d as A,r as D,e as _}from"./index-
|
|
1
|
+
import{i as $,b as u}from"./lit-element-wjYUA6aF.js";import{n as h,o as P,r as d}from"./class-map-DopF_Eyi.js";import{d as A,r as D,e as _}from"./index-CuBLDtFZ.js";import{c as I}from"./index-B6SpJox_.js";import"./index-BfNdu86e.js";import"./index-CeMa_Fpw.js";import"./index-CWMBT2iW.js";import"./index-FPMEVY0k.js";import"./index-C2gUP7Wd.js";import"./index-BjW_aHIh.js";import"./index-DY6pIrBT.js";import{C as x,R as g,q as E,S as b,k as z,b as S}from"./W3MFrameProviderSingleton-Cil5qlaS.js";import{E as r}from"./ExchangeController-B4BdmoV9.js";import"./index-YSCl74H6.js";import"./index-DEOUkXMy.js";import"./index-zyd0LxKG.js";import"./index-BSzD0ncl.js";import"./index-sQFfvNZX.js";import"./react-9aRvCYbm.js";import"./dcl-schemas-BBgGLe8k.js";import"./sentry-CJqFbG11.js";import"./ethers-BKRWnjV9.js";import"./intl-AKLEHPeO.js";import"./index-BVuZOuvn.js";import"./events-S6R_9oRG.js";import"./index-Kerq77jm.js";import"./index--RzAwV6Q.js";import"./index-OpYIGLSa.js";import"./index-DpMjDWPc.js";import"./index.es-CReVKXvk.js";import"./browser-ponyfill--2nwarnr.js";import"./NetworkUtil-CUhhiBwq.js";import"./index-9jY2-EBG.js";import"./ref-Uk7bJ2Ii.js";import"./async-directive-BF5rCMgn.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="dc5d77dc-3d9c-4eca-9615-e37e16bb0bec",t._sentryDebugIdIdentifier="sentry-dbid-dc5d77dc-3d9c-4eca-9615-e37e16bb0bec")}catch{}})();const T=A`
|
|
2
2
|
button {
|
|
3
3
|
border: none;
|
|
4
4
|
border-radius: ${({borderRadius:t})=>t[20]};
|
|
@@ -278,4 +278,4 @@ import{i as $,b as u}from"./lit-element-wjYUA6aF.js";import{n as h,o as P,r as d
|
|
|
278
278
|
</wui-flex>
|
|
279
279
|
</wui-flex>
|
|
280
280
|
`}onBuyClick(){g.push("OnRampProviders")}onInputChange(e){this.onDebouncedSearch(e.detail)}handleTokenClick(e){r.setPaymentAsset(e),g.goBack()}};y.styles=O;k([d()],y.prototype,"assets",void 0);k([d()],y.prototype,"search",void 0);y=k([I("w3m-deposit-from-exchange-select-asset-view")],y);export{y as W3mDepositFromExchangeSelectAssetView,l as W3mDepositFromExchangeView};
|
|
281
|
-
//# sourceMappingURL=pay-with-exchange-
|
|
281
|
+
//# sourceMappingURL=pay-with-exchange-uspxaKYi.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{L as gt,e as Me,b as Pn,c as Tn}from"./utils-
|
|
1
|
+
import{L as gt,e as Me,b as Pn,c as Tn}from"./utils-DF0qXAQT.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7e112b40-858e-435b-ae9b-5026c1202668",e._sentryDebugIdIdentifier="sentry-dbid-7e112b40-858e-435b-ae9b-5026c1202668")}catch{}})();function _(e,t,n){return JSON.stringify(e,(s,o)=>{const i=typeof o=="bigint"?o.toString():o;return typeof t=="function"?t(s,i):i},n)}const Mo=Object.freeze(Object.defineProperty({__proto__:null,stringify:_},Symbol.toStringTag,{value:"Module"})),On="0.1.1";function Mn(){return On}let x=class Be extends Error{constructor(t,n={}){const r=(()=>{var c;if(n.cause instanceof Be){if(n.cause.details)return n.cause.details;if(n.cause.shortMessage)return n.cause.shortMessage}return n.cause&&"details"in n.cause&&typeof n.cause.details=="string"?n.cause.details:(c=n.cause)!=null&&c.message?n.cause.message:n.details})(),s=n.cause instanceof Be&&n.cause.docsPath||n.docsPath,i=`https://oxlib.sh${s??""}`,a=[t||"An error occurred.",...n.metaMessages?["",...n.metaMessages]:[],...r||s?["",r?`Details: ${r}`:void 0,s?`See: ${i}`:void 0]:[]].filter(c=>typeof c=="string").join(`
|
|
2
2
|
`);super(a,n.cause?{cause:n.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:`ox@${Mn()}`}),this.cause=n.cause,this.details=r,this.docs=i,this.docsPath=s,this.shortMessage=t}walk(t){return mt(this,t)}};function mt(e,t){return t!=null&&t(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause?mt(e.cause,t):t?null:e}const kn="#__bigint";function $t(e,t,n){return JSON.stringify(e,(r,s)=>typeof t=="function"?t(r,s):typeof s=="bigint"?s.toString()+kn:s,n)}function H(e,t){if(Ye(e)>t)throw new ur({givenSize:Ye(e),maxSize:t})}const z={zero:48,nine:57,A:65,F:70,a:97,f:102};function Ke(e){if(e>=z.zero&&e<=z.nine)return e-z.zero;if(e>=z.A&&e<=z.F)return e-(z.A-10);if(e>=z.a&&e<=z.f)return e-(z.a-10)}function wt(e,t={}){const{dir:n,size:r=32}=t;if(r===0)return e;if(e.length>r)throw new fr({size:e.length,targetSize:r,type:"Bytes"});const s=new Uint8Array(r);for(let o=0;o<r;o++){const i=n==="right";s[i?o:r-o-1]=e[i?o:e.length-o-1]}return s}function xt(e,t={}){const{dir:n="left"}=t;let r=e,s=0;for(let o=0;o<r.length-1&&r[n==="left"?o:r.length-o-1].toString()==="0";o++)s++;return r=n==="left"?r.slice(s):r.slice(0,r.length-s),r}function oe(e,t){if(X(e)>t)throw new Gn({givenSize:X(e),maxSize:t})}function jn(e,t){if(typeof t=="number"&&t>0&&t>X(e)-1)throw new vt({offset:t,position:"start",size:X(e)})}function _n(e,t,n){if(typeof t=="number"&&typeof n=="number"&&X(e)!==n-t)throw new vt({offset:n,position:"end",size:X(e)})}function At(e,t={}){const{dir:n,size:r=32}=t;if(r===0)return e;const s=e.replace("0x","");if(s.length>r*2)throw new Yn({size:Math.ceil(s.length/2),targetSize:r,type:"Hex"});return`0x${s[n==="right"?"padEnd":"padStart"](r*2,"0")}`}function Un(e,t={}){const{dir:n="left"}=t;let r=e.replace("0x",""),s=0;for(let o=0;o<r.length-1&&r[n==="left"?o:r.length-o-1].toString()==="0";o++)s++;return r=n==="left"?r.slice(s):r.slice(0,r.length-s),r==="0"?"0x":n==="right"&&r.length%2===1?`0x${r}0`:`0x${r}`}const Ln=new TextEncoder,Rn=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Cn(e,t={}){const{strict:n=!1}=t;if(!e)throw new Xe(e);if(typeof e!="string")throw new Xe(e);if(n&&!/^0x[0-9a-fA-F]*$/.test(e))throw new Ge(e);if(!e.startsWith("0x"))throw new Ge(e)}function Z(...e){return`0x${e.reduce((t,n)=>t+n.replace("0x",""),"")}`}function ko(e){return e instanceof Uint8Array?K(e):Array.isArray(e)?K(new Uint8Array(e)):e}function Hn(e,t={}){const n=`0x${Number(e)}`;return typeof t.size=="number"?(oe(n,t.size),ke(n,t.size)):n}function K(e,t={}){let n="";for(let s=0;s<e.length;s++)n+=Rn[e[s]];const r=`0x${n}`;return typeof t.size=="number"?(oe(r,t.size),je(r,t.size)):r}function Et(e,t={}){const{signed:n,size:r}=t,s=BigInt(e);let o;r?n?o=(1n<<BigInt(r)*8n-1n)-1n:o=2n**(BigInt(r)*8n)-1n:typeof e=="number"&&(o=BigInt(Number.MAX_SAFE_INTEGER));const i=typeof o=="bigint"&&n?-o-1n:0;if(o&&s>o||s<i){const u=typeof e=="bigint"?"n":"";throw new Kn({max:o?`${o}${u}`:void 0,min:`${i}${u}`,signed:n,size:r,value:`${e}${u}`})}const c=`0x${(n&&s<0?(1n<<BigInt(r*8))+BigInt(s):s).toString(16)}`;return r?ke(c,r):c}function Nn(e,t={}){return K(Ln.encode(e),t)}function ke(e,t){return At(e,{dir:"left",size:t})}function je(e,t){return At(e,{dir:"right",size:t})}function Fn(e,t,n,r={}){const{strict:s}=r;jn(e,t);const o=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return s&&_n(o,t,n),o}function X(e){return Math.ceil((e.length-2)/2)}function Dn(e){return Un(e,{dir:"left"})}function _e(e,t={}){const{signed:n}=t;t.size&&oe(e,t.size);const r=BigInt(e);if(!n)return r;const s=(e.length-2)/2,o=(1n<<BigInt(s)*8n)-1n,i=o>>1n;return r<=i?r:r-o-1n}function Vn(e,t={}){t.size&&oe(e,t.size);const n=Dn(e);if(n==="0x")return!1;if(n==="0x1")return!0;throw new Xn(e)}function qn(e,t={}){return ae(e,t)}function St(e,t={}){const{signed:n,size:r}=t;return Number(!n&&!r?e:_e(e,t))}function Wn(e,t={}){const{size:n}=t;let r=ae(e);return n&&(H(r,n),r=Bt(r)),new TextDecoder().decode(r)}function Zn(e,t={}){const{strict:n=!1}=t;try{return Cn(e,{strict:n}),!0}catch{return!1}}let Kn=class extends x{constructor({max:t,min:n,signed:r,size:s,value:o}){super(`Number \`${o}\` is not in safe${s?` ${s*8}-bit`:""}${r?" signed":" unsigned"} integer range ${t?`(\`${n}\` to \`${t}\`)`:`(above \`${n}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}},Xn=class extends x{constructor(t){super(`Hex value \`"${t}"\` is not a valid boolean.`,{metaMessages:['The hex value must be `"0x0"` (false) or `"0x1"` (true).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexBooleanError"})}};class Xe extends x{constructor(t){super(`Value \`${typeof t=="object"?$t(t):t}\` of type \`${typeof t}\` is an invalid hex type.`,{metaMessages:['Hex types must be represented as `"0x${string}"`.']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexTypeError"})}}let Ge=class extends x{constructor(t){super(`Value \`${t}\` is an invalid hex value.`,{metaMessages:['Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexValueError"})}},Gn=class extends x{constructor({givenSize:t,maxSize:n}){super(`Size cannot exceed \`${n}\` bytes. Given size: \`${t}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}},vt=class extends x{constructor({offset:t,position:n,size:r}){super(`Slice ${n==="start"?"starting":"ending"} at offset \`${t}\` is out-of-bounds (size: \`${r}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SliceOffsetOutOfBoundsError"})}},Yn=class extends x{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${t}\`) exceeds padding size (\`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}};const Jn=new TextDecoder,Qn=new TextEncoder;function er(e){if(!(e instanceof Uint8Array)){if(!e)throw new le(e);if(typeof e!="object")throw new le(e);if(!("BYTES_PER_ELEMENT"in e))throw new le(e);if(e.BYTES_PER_ELEMENT!==1||e.constructor.name!=="Uint8Array")throw new le(e)}}function Ho(...e){let t=0;for(const r of e)t+=r.length;const n=new Uint8Array(t);for(let r=0,s=0;r<e.length;r++){const o=e[r];n.set(o,s),s+=o.length}return n}function No(e){return e instanceof Uint8Array?e:typeof e=="string"?ae(e):tr(e)}function tr(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function nr(e,t={}){const{size:n}=t,r=new Uint8Array(1);return r[0]=Number(e),typeof n=="number"?(H(r,n),ir(r,n)):r}function ae(e,t={}){const{size:n}=t;let r=e;n&&(oe(e,n),r=je(e,n));let s=r.slice(2);s.length%2&&(s=`0${s}`);const o=s.length/2,i=new Uint8Array(o);for(let a=0,c=0;a<o;a++){const u=Ke(s.charCodeAt(c++)),f=Ke(s.charCodeAt(c++));if(u===void 0||f===void 0)throw new x(`Invalid byte sequence ("${s[c-2]}${s[c-1]}" in "${s}").`);i[a]=u*16+f}return i}function rr(e,t){const n=Et(e,t);return ae(n)}function sr(e,t={}){const{size:n}=t,r=Qn.encode(e);return typeof n=="number"?(H(r,n),or(r,n)):r}function ir(e,t){return wt(e,{dir:"left",size:t})}function or(e,t){return wt(e,{dir:"right",size:t})}function Ye(e){return e.length}function Fo(e,t,n,r={}){const{strict:s}=r;return e.slice(t,n)}function Do(e,t={}){const{size:n}=t;typeof n<"u"&&H(e,n);const r=K(e,t);return _e(r,t)}function Vo(e,t={}){const{size:n}=t;let r=e;if(typeof n<"u"&&(H(r,n),r=ar(r)),r.length>1||r[0]>1)throw new cr(r);return!!r[0]}function qo(e,t={}){const{size:n}=t;typeof n<"u"&&H(e,n);const r=K(e,t);return St(r,t)}function Wo(e,t={}){const{size:n}=t;let r=e;return typeof n<"u"&&(H(r,n),r=Bt(r)),Jn.decode(r)}function ar(e){return xt(e,{dir:"left"})}function Bt(e){return xt(e,{dir:"right"})}function Zo(e){try{return er(e),!0}catch{return!1}}let cr=class extends x{constructor(t){super(`Bytes value \`${t}\` is not a valid boolean.`,{metaMessages:["The bytes array must contain a single byte of either a `0` or `1` value."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesBooleanError"})}};class le extends x{constructor(t){super(`Value \`${typeof t=="object"?$t(t):t}\` of type \`${typeof t}\` is an invalid Bytes value.`,{metaMessages:["Bytes values must be of type `Bytes`."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesTypeError"})}}let ur=class extends x{constructor({givenSize:t,maxSize:n}){super(`Size cannot exceed \`${n}\` bytes. Given size: \`${t}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeOverflowError"})}},fr=class extends x{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${t}\`) exceeds padding size (\`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeExceedsPaddingSizeError"})}};function Ue(e,t={}){return Zn(e,t)}function Yo(e,t={}){switch(typeof e){case"number":case"bigint":return hr(e,t);case"boolean":return lr(e,t);default:return Ue(e)?dr(e,t):zt(e,t)}}function lr(e,t={}){return nr(e,t)}function dr(e,t={}){return ae(e,t)}function hr(e,t){return rr(e,t)}function zt(e,t={}){return sr(e,t)}function pe(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function pr(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function ce(e,...t){if(!pr(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 Jo(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");pe(e.outputLen),pe(e.blockLen)}function Je(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 yr(e,t){ce(e);const n=t.outputLen;if(e.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}const de=BigInt(2**32-1),Qe=BigInt(32);function br(e,t=!1){return t?{h:Number(e&de),l:Number(e>>Qe&de)}:{h:Number(e>>Qe&de)|0,l:Number(e&de)|0}}function gr(e,t=!1){let n=new Uint32Array(e.length),r=new Uint32Array(e.length);for(let s=0;s<e.length;s++){const{h:o,l:i}=br(e[s],t);[n[s],r[s]]=[o,i]}return[n,r]}const mr=(e,t,n)=>e<<n|t>>>32-n,$r=(e,t,n)=>t<<n|e>>>32-n,wr=(e,t,n)=>t<<n-32|e>>>64-n,xr=(e,t,n)=>e<<n-32|t>>>64-n,D=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Ar(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function Qo(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function ea(e,t){return e<<32-t|e>>>t}const et=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function Er(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function tt(e){for(let t=0;t<e.length;t++)e[t]=Er(e[t])}const Sr=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",vr=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function ta(e){if(ce(e),Sr)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=vr[e[n]];return t}function Br(e){if(typeof e!="string")throw new Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array(new TextEncoder().encode(e))}function It(e){return typeof e=="string"&&(e=Br(e)),ce(e),e}function na(...e){let t=0;for(let r=0;r<e.length;r++){const s=e[r];ce(s),t+=s.length}const n=new Uint8Array(t);for(let r=0,s=0;r<e.length;r++){const o=e[r];n.set(o,s),s+=o.length}return n}let zr=class{clone(){return this._cloneInto()}};function Ir(e){const t=r=>e().update(It(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function sa(e=32){if(D&&typeof D.getRandomValues=="function")return D.getRandomValues(new Uint8Array(e));if(D&&typeof D.randomBytes=="function")return Uint8Array.from(D.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}const Pt=[],Tt=[],Ot=[],Pr=BigInt(0),Q=BigInt(1),Tr=BigInt(2),Or=BigInt(7),Mr=BigInt(256),kr=BigInt(113);for(let e=0,t=Q,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],Pt.push(2*(5*r+n)),Tt.push((e+1)*(e+2)/2%64);let s=Pr;for(let o=0;o<7;o++)t=(t<<Q^(t>>Or)*kr)%Mr,t&Tr&&(s^=Q<<(Q<<BigInt(o))-Q);Ot.push(s)}const[jr,_r]=gr(Ot,!0),nt=(e,t,n)=>n>32?wr(e,t,n):mr(e,t,n),rt=(e,t,n)=>n>32?xr(e,t,n):$r(e,t,n);function Ur(e,t=24){const n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let i=0;i<10;i++)n[i]=e[i]^e[i+10]^e[i+20]^e[i+30]^e[i+40];for(let i=0;i<10;i+=2){const a=(i+8)%10,c=(i+2)%10,u=n[c],f=n[c+1],d=nt(u,f,1)^n[a],h=rt(u,f,1)^n[a+1];for(let p=0;p<50;p+=10)e[i+p]^=d,e[i+p+1]^=h}let s=e[2],o=e[3];for(let i=0;i<24;i++){const a=Tt[i],c=nt(s,o,a),u=rt(s,o,a),f=Pt[i];s=e[f],o=e[f+1],e[f]=c,e[f+1]=u}for(let i=0;i<50;i+=10){for(let a=0;a<10;a++)n[a]=e[i+a];for(let a=0;a<10;a++)e[i+a]^=~n[(a+2)%10]&n[(a+4)%10]}e[0]^=jr[r],e[1]^=_r[r]}n.fill(0)}let Lr=class Mt extends zr{constructor(t,n,r,s=!1,o=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=t,this.suffix=n,this.outputLen=r,this.enableXOF=s,this.rounds=o,pe(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=Ar(this.state)}keccak(){et||tt(this.state32),Ur(this.state32,this.rounds),et||tt(this.state32),this.posOut=0,this.pos=0}update(t){Je(this);const{blockLen:n,state:r}=this;t=It(t);const s=t.length;for(let o=0;o<s;){const i=Math.min(n-this.pos,s-o);for(let a=0;a<i;a++)r[this.pos++]^=t[o++];this.pos===n&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:t,suffix:n,pos:r,blockLen:s}=this;t[r]^=n,(n&128)!==0&&r===s-1&&this.keccak(),t[s-1]^=128,this.keccak()}writeInto(t){Je(this,!1),ce(t),this.finish();const n=this.state,{blockLen:r}=this;for(let s=0,o=t.length;s<o;){this.posOut>=r&&this.keccak();const i=Math.min(r-this.posOut,o-s);t.set(n.subarray(this.posOut,this.posOut+i),s),this.posOut+=i,s+=i}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return pe(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(yr(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){const{blockLen:n,suffix:r,outputLen:s,rounds:o,enableXOF:i}=this;return t||(t=new Mt(n,r,s,i,o)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=o,t.suffix=r,t.outputLen=s,t.enableXOF=i,t.destroyed=this.destroyed,t}};const Rr=(e,t,n)=>Ir(()=>new Lr(t,e,n)),Cr=Rr(1,136,256/8);function L(e,t={}){const{dir:n,size:r=32}=t;return r===null?e:n==="right"?je(e,r):ke(e,r)}function Hr(e,t={}){return Wn(e,t)}function Nr(e,t={}){return _e(e,t)}function Fr(e,t={}){return St(e,t)}function Dr(e,t={}){return Vn(e,t)}function kt(e,t={}){return qn(e,t)}function ia(e,t){const n=typeof t=="string"?{to:t}:t;switch(n.to){case"number":return Fr(e,n);case"bigint":return Nr(e,n);case"string":return Hr(e,n);case"boolean":return Dr(e,n);default:return kt(e,n)}}function jt(e,t={}){return Hn(e,t)}function _t(e,t={}){return K(e,t)}function P(e,t={}){return Et(e,t)}function Ut(e,t={}){return Nn(e,t)}function oa(e,t={}){switch(typeof e){case"number":case"bigint":return P(e,t);case"string":return Ut(e,t);case"boolean":return jt(e,t);default:return _t(e,t)}}function Vr(e,t){const n=Cr(Ue(e,{strict:!1})?kt(e):e);return t==="bytes"?n:_t(n)}const qr=/^0x[a-fA-F0-9]{40}$/,we=new gt(4096);function Lt(e){if(we.has(e))return we.get(e);const t=qr.test(e)&&(e.toLowerCase()===e||Rt(e)===e);return we.set(e,t),t}function Rt(e){const t=e.substring(2).toLowerCase(),n=Vr(zt(t),"bytes"),r=t.split("");for(let s=0;s<40;s+=2)n[s>>1]>>4>=8&&e[s]&&(r[s]=r[s].toUpperCase()),(n[s>>1]&15)>=8&&e[s+1]&&(r[s+1]=r[s+1].toUpperCase());return`0x${r.join("")}`}function Wr(e){if(!Lt(e))throw new Error(`Invalid address: ${e}`);return Rt(e)}function Zr(e,t){const n=e.exec(t);return n==null?void 0:n.groups}const aa=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,ca=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,ua=/^\(.+?\).*?$/,st=/^tuple(?<array>(\[(\d*)\])*)$/;function ze(e){let t=e.type;if(st.test(e.type)&&"components"in e){t="(";const n=e.components.length;for(let s=0;s<n;s++){const o=e.components[s];t+=ze(o),s<n-1&&(t+=", ")}const r=Zr(st,e.type);return t+=`)${(r==null?void 0:r.array)??""}`,ze({...e,type:t})}return"indexed"in e&&e.indexed&&(t=`${t} indexed`),e.name?`${t} ${e.name}`:t}function ee(e){let t="";const n=e.length;for(let r=0;r<n;r++){const s=e[r];t+=ze(s),r!==n-1&&(t+=", ")}return t}function Kr(e){var t;return e.type==="function"?`function ${e.name}(${ee(e.inputs)})${e.stateMutability&&e.stateMutability!=="nonpayable"?` ${e.stateMutability}`:""}${(t=e.outputs)!=null&&t.length?` returns (${ee(e.outputs)})`:""}`:e.type==="event"?`event ${e.name}(${ee(e.inputs)})`:e.type==="error"?`error ${e.name}(${ee(e.inputs)})`:e.type==="constructor"?`constructor(${ee(e.inputs)})${e.stateMutability==="payable"?" payable":""}`:e.type==="fallback"?`fallback() external${e.stateMutability==="payable"?" payable":""}`:"receive() external payable"}function ye(e,{includeName:t=!1}={}){if(e.type!=="function"&&e.type!=="event"&&e.type!=="error")throw new is(e.type);return`${e.name}(${ge(e.inputs,{includeName:t})})`}function ge(e,{includeName:t=!1}={}){return e?e.map(n=>Xr(n,{includeName:t})).join(t?", ":","):""}function Xr(e,{includeName:t}){return e.type.startsWith("tuple")?`(${ge(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")}function ue(e,{strict:t=!0}={}){return!e||typeof e!="string"?!1:t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")}function y(e){return ue(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}const Ct="2.39.0";let q={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:n})=>t?`${e??"https://viem.sh"}${t}${n?`#${n}`:""}`:void 0,version:`viem@${Ct}`};function fa(e){q=e}let l=class Ie extends Error{constructor(t,n={}){var a;const r=(()=>{var c;return n.cause instanceof Ie?n.cause.details:(c=n.cause)!=null&&c.message?n.cause.message:n.details})(),s=n.cause instanceof Ie&&n.cause.docsPath||n.docsPath,o=(a=q.getDocsUrl)==null?void 0:a.call(q,{...n,docsPath:s}),i=[t||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...o?[`Docs: ${o}`]:[],...r?[`Details: ${r}`]:[],...q.version?[`Version: ${q.version}`]:[]].join(`
|
|
3
3
|
`);super(i,n.cause?{cause:n.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=r,this.docsPath=s,this.metaMessages=n.metaMessages,this.name=n.name??this.name,this.shortMessage=t,this.version=Ct}walk(t){return Ht(this,t)}};function Ht(e,t){return t!=null&&t(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause!==void 0?Ht(e.cause,t):t?null:e}class la extends l{constructor({docsPath:t}){super(["A constructor was not found on the ABI.","Make sure you are using the correct ABI and that the constructor exists on it."].join(`
|
|
4
4
|
`),{docsPath:t,name:"AbiConstructorNotFoundError"})}}class da extends l{constructor({docsPath:t}){super(["Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.","Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."].join(`
|
|
@@ -24,4 +24,4 @@ import{L as gt,e as Me,b as Pn,c as Tn}from"./utils-CZTvMbsX.js";(function(){try
|
|
|
24
24
|
requests: ${_(v)}
|
|
25
25
|
responses: ${_(w)}`))})}).catch(w=>{for(const m of $)m.reject(w)}).finally(()=>{a.clear()})}return o===1?async v=>{var M;v.id=1,v.jsonrpc="2.0";const $=await Ei(s,e.client,{request:v,requestTimeoutMs:(M=e.config)==null?void 0:M.requestTimeoutMs});if(!$)throw new Error("No response");if("error"in $)throw $.error;return $.result}:async v=>{const $=vi(v);if(a.has($))return a.get($);let M,w;const m=new Promise(($e,E)=>{M=$e,w=E});return a.set($,m),c.push({reject:w,request:v,requestKey:$,resolve:M}),o>1?(u||(u=setTimeout(f,i)),c.length>=o&&f()):f(),m}})();return t.set(n,r),r}const Ca=Object.freeze(Object.defineProperty({__proto__:null,getRpcClient:hn},Symbol.toStringTag,{value:"Module"}));async function Ii(e){return typeof e=="function"?await e():e}async function Ha({client:e,ecosystem:t,data:n}){const r=Me(e,t),s={source:"sdk",...n};return r(`${Tn("analytics")}/event`,{body:_(s),method:"POST"}).catch(()=>{})}const Pi="1.0.8";class b extends Error{constructor(t,n={}){var i;const r=n.cause instanceof b?n.cause.details:(i=n.cause)!=null&&i.message?n.cause.message:n.details,s=n.cause instanceof b&&n.cause.docsPath||n.docsPath,o=[t||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...s?[`Docs: https://abitype.dev${s}`]:[],...r?[`Details: ${r}`]:[],`Version: abitype@${Pi}`].join(`
|
|
26
26
|
`);super(o),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),n.cause&&(this.cause=n.cause),this.details=r,this.docsPath=s,this.metaMessages=n.metaMessages,this.shortMessage=t}}function U(e,t){const n=e.exec(t);return n==null?void 0:n.groups}const pn=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,yn=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,bn=/^\(.+?\).*?$/,gn=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function Ti(e){return gn.test(e)}function Oi(e){return U(gn,e)}const mn=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function Mi(e){return mn.test(e)}function ki(e){return U(mn,e)}const $n=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;function ji(e){return $n.test(e)}function _i(e){return U($n,e)}const wn=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function xn(e){return wn.test(e)}function Ui(e){return U(wn,e)}const An=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function Li(e){return An.test(e)}function Ri(e){return U(An,e)}const En=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;function Ci(e){return En.test(e)}function Hi(e){return U(En,e)}const Ni=/^receive\(\) external payable$/;function Fi(e){return Ni.test(e)}const Di=new Set(["indexed"]),Oe=new Set(["calldata","memory","storage"]);class Vi extends b{constructor({signature:t}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(t,null,2)})`,docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}class qi extends b{constructor({type:t}){super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}class Wi extends b{constructor({type:t}){super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}class Zi extends b{constructor({param:t}){super("Invalid ABI parameter.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class Ki extends b{constructor({param:t,name:n}){super("Invalid ABI parameter.",{details:t,metaMessages:[`"${n}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}class Xi extends b{constructor({param:t,type:n,modifier:r}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${r}" not allowed${n?` in "${n}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class Gi extends b{constructor({param:t,type:n,modifier:r}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${r}" not allowed${n?` in "${n}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${r}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class Yi extends b{constructor({abiParameter:t}){super("Invalid ABI parameter.",{details:JSON.stringify(t,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}class J extends b{constructor({signature:t,type:n}){super(`Invalid ${n} signature.`,{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class Ji extends b{constructor({signature:t}){super("Unknown signature.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class Qi extends b{constructor({signature:t}){super("Invalid struct signature.",{details:t,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}class eo extends b{constructor({type:t}){super("Circular reference detected.",{metaMessages:[`Struct "${t}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}class to extends b{constructor({current:t,depth:n}){super("Unbalanced parentheses.",{metaMessages:[`"${t.trim()}" has too many ${n>0?"opening":"closing"} parentheses.`],details:`Depth "${n}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}function no(e,t,n){let r="";if(n)for(const s of Object.entries(n)){if(!s)continue;let o="";for(const i of s[1])o+=`[${i.type}${i.name?`:${i.name}`:""}]`;r+=`(${s[0]}{${o}})`}return t?`${t}:${e}${r}`:e}const Se=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]);function bt(e,t={}){if(ji(e))return ro(e,t);if(Mi(e))return so(e,t);if(Ti(e))return io(e,t);if(Li(e))return oo(e,t);if(Ci(e))return ao(e);if(Fi(e))return{type:"receive",stateMutability:"payable"};throw new Ji({signature:e})}function ro(e,t={}){const n=_i(e);if(!n)throw new J({signature:e,type:"function"});const r=S(n.parameters),s=[],o=r.length;for(let a=0;a<o;a++)s.push(C(r[a],{modifiers:Oe,structs:t,type:"function"}));const i=[];if(n.returns){const a=S(n.returns),c=a.length;for(let u=0;u<c;u++)i.push(C(a[u],{modifiers:Oe,structs:t,type:"function"}))}return{name:n.name,type:"function",stateMutability:n.stateMutability??"nonpayable",inputs:s,outputs:i}}function so(e,t={}){const n=ki(e);if(!n)throw new J({signature:e,type:"event"});const r=S(n.parameters),s=[],o=r.length;for(let i=0;i<o;i++)s.push(C(r[i],{modifiers:Di,structs:t,type:"event"}));return{name:n.name,type:"event",inputs:s}}function io(e,t={}){const n=Oi(e);if(!n)throw new J({signature:e,type:"error"});const r=S(n.parameters),s=[],o=r.length;for(let i=0;i<o;i++)s.push(C(r[i],{structs:t,type:"error"}));return{name:n.name,type:"error",inputs:s}}function oo(e,t={}){const n=Ri(e);if(!n)throw new J({signature:e,type:"constructor"});const r=S(n.parameters),s=[],o=r.length;for(let i=0;i<o;i++)s.push(C(r[i],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:n.stateMutability??"nonpayable",inputs:s}}function ao(e){const t=Hi(e);if(!t)throw new J({signature:e,type:"fallback"});return{type:"fallback",stateMutability:t.stateMutability??"nonpayable"}}const co=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,uo=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,fo=/^u?int$/;function C(e,t){var d,h;const n=no(e,t==null?void 0:t.type,t==null?void 0:t.structs);if(Se.has(n))return Se.get(n);const r=bn.test(e),s=U(r?uo:co,e);if(!s)throw new Zi({param:e});if(s.name&&ho(s.name))throw new Ki({param:e,name:s.name});const o=s.name?{name:s.name}:{},i=s.modifier==="indexed"?{indexed:!0}:{},a=(t==null?void 0:t.structs)??{};let c,u={};if(r){c="tuple";const p=S(s.type),g=[],O=p.length;for(let F=0;F<O;F++)g.push(C(p[F],{structs:a}));u={components:g}}else if(s.type in a)c="tuple",u={components:a[s.type]};else if(fo.test(s.type))c=`${s.type}256`;else if(c=s.type,(t==null?void 0:t.type)!=="struct"&&!Sn(c))throw new Wi({type:c});if(s.modifier){if(!((h=(d=t==null?void 0:t.modifiers)==null?void 0:d.has)!=null&&h.call(d,s.modifier)))throw new Xi({param:e,type:t==null?void 0:t.type,modifier:s.modifier});if(Oe.has(s.modifier)&&!po(c,!!s.array))throw new Gi({param:e,type:t==null?void 0:t.type,modifier:s.modifier})}const f={type:`${c}${s.array??""}`,...o,...i,...u};return Se.set(n,f),f}function S(e,t=[],n="",r=0){const s=e.trim().length;for(let o=0;o<s;o++){const i=e[o],a=e.slice(o+1);switch(i){case",":return r===0?S(a,[...t,n.trim()]):S(a,t,`${n}${i}`,r);case"(":return S(a,t,`${n}${i}`,r+1);case")":return S(a,t,`${n}${i}`,r-1);default:return S(a,t,`${n}${i}`,r)}}if(n==="")return t;if(r!==0)throw new to({current:n,depth:r});return t.push(n.trim()),t}function Sn(e){return e==="address"||e==="bool"||e==="function"||e==="string"||pn.test(e)||yn.test(e)}const lo=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;function ho(e){return e==="address"||e==="bool"||e==="function"||e==="string"||e==="tuple"||pn.test(e)||yn.test(e)||lo.test(e)}function po(e,t){return t||e==="bytes"||e==="string"||e==="tuple"}function yo(e){const t={},n=e.length;for(let i=0;i<n;i++){const a=e[i];if(!xn(a))continue;const c=Ui(a);if(!c)throw new J({signature:a,type:"struct"});const u=c.properties.split(";"),f=[],d=u.length;for(let h=0;h<d;h++){const g=u[h].trim();if(!g)continue;const O=C(g,{type:"struct"});f.push(O)}if(!f.length)throw new Qi({signature:a});t[c.name]=f}const r={},s=Object.entries(t),o=s.length;for(let i=0;i<o;i++){const[a,c]=s[i];r[a]=vn(c,t)}return r}const bo=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;function vn(e,t,n=new Set){const r=[],s=e.length;for(let o=0;o<s;o++){const i=e[o];if(bn.test(i.type))r.push(i);else{const c=U(bo,i.type);if(!(c!=null&&c.type))throw new Yi({abiParameter:i});const{array:u,type:f}=c;if(f in t){if(n.has(f))throw new eo({type:f});r.push({...i,type:`tuple${u??""}`,components:vn(t[f]??[],t,new Set([...n,f]))})}else if(Sn(f))r.push(i);else throw new qi({type:f})}}return r}function me(e){let t;if(typeof e=="string")t=bt(e);else{const n=yo(e),r=e.length;for(let s=0;s<r;s++){const o=e[s];if(!xn(o)){t=bt(o,n);break}}}if(!t)throw new Vi({signature:e});return t}function go(e){return Object.fromEntries(Object.entries(e).map(([t,n])=>[t,{balance:n.balance?P(n.balance):void 0,code:n.code,nonce:n.nonce?P(n.nonce):void 0,state:n.state,stateDiff:n.stateDiff}]))}async function mo(e,t){const{blockNumber:n,blockTag:r,...s}=t,i=(n?P(n):void 0)||r||"latest";return await e({method:"eth_call",params:t.stateOverrides?[s,i,go(t.stateOverrides)]:[s,i]})}function $o(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="event")}function Na(e){const{signature:t}=e;let n;return $o(t)?n=t:n=me(t),{abiEvent:n,hash:Ne(n),topics:ui({abi:[n],args:e.filters})}}function ie(e){return Ue(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}function Bn(e,t){if(e.length!==t.length)throw new Error("The number of parameters and values must match.");const n=wo({params:e,values:t}),r=Ze(n);return r.length===0?"0x":r}function wo({params:e,values:t}){const n=[];for(let r=0;r<e.length;r++)n.push(We({param:e[r],value:t[r]}));return n}function We({param:e,value:t}){const n=Io(e.type);if(n){const[r,s]=n;return Ao(t,{length:r,param:{...e,type:s}})}if(e.type==="tuple")return zo(t,{param:e});if(e.type==="address")return xo(t);if(e.type==="bool")return So(t);if(e.type.startsWith("uint")||e.type.startsWith("int")){const r=e.type.startsWith("int");return vo(t,{signed:r})}if(e.type.startsWith("bytes"))return Eo(t,{param:e});if(e.type==="string")return Bo(t);throw new Error(`Unsupported parameter type: ${e.type}`)}function Ze(e){let t=0;for(let o=0;o<e.length;o++){const{dynamic:i,encoded:a}=e[o];i?t+=32:t+=ie(a)}const n=[],r=[];let s=0;for(let o=0;o<e.length;o++){const{dynamic:i,encoded:a}=e[o];i?(n.push(P(t+s,{size:32})),r.push(a),s+=ie(a)):n.push(a)}return Z(...n,...r)}function xo(e){if(e!==""&&e!==void 0&&!Lt(e))throw new Error(`Invalid address: ${e}`);return{dynamic:!1,encoded:L(e.toLowerCase())}}function Ao(e,{length:t,param:n}){const r=t===null;if(!Array.isArray(e))throw new Error("Invalid array value.");if(!r&&e.length!==t)throw new Error("Invalid array length.");let s=!1;const o=[];for(let i=0;i<e.length;i++){const a=We({param:n,value:e[i]});a.dynamic&&(s=!0),o.push(a)}if(r||s){const i=Ze(o);if(r){const a=P(o.length,{size:32});return{dynamic:!0,encoded:o.length>0?Z(a,i):a}}if(s)return{dynamic:!0,encoded:i}}return{dynamic:!1,encoded:Z(...o.map(({encoded:i})=>i))}}function Eo(e,{param:t}){const[,n]=t.type.split("bytes"),r=ie(e);if(!n){let s=e;return r%32!==0&&(s=L(s,{dir:"right",size:Math.ceil((e.length-2)/2/32)*32})),{dynamic:!0,encoded:Z(L(P(r,{size:32})),s)}}if(r!==Number.parseInt(n))throw new Error(`Invalid bytes${n} size: ${r}`);return{dynamic:!1,encoded:L(e,{dir:"right"})}}function So(e){return{dynamic:!1,encoded:L(jt(e))}}function vo(e,{signed:t}){return{dynamic:!1,encoded:P(e,{signed:t,size:32})}}function Bo(e){const t=Ut(e),n=Math.ceil(ie(t)/32),r=[];for(let s=0;s<n;s++)r.push(L(Fn(t,s*32,(s+1)*32),{dir:"right"}));return{dynamic:!0,encoded:Z(L(P(ie(t),{size:32})),...r)}}function zo(e,{param:t}){let n=!1;const r=[];for(let s=0;s<t.components.length;s++){const o=t.components[s],i=Array.isArray(e)?s:o.name,a=We({param:o,value:e[i]});r.push(a),a.dynamic&&(n=!0)}return{dynamic:n,encoded:n?Ze(r):Z(...r.map(({encoded:s})=>s))}}function Io(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}const ve=new gt(4096);function k(e){const t=typeof e=="string"?e:_(e);if(ve.has(t))return ve.get(t);const n=typeof e=="string"?me(e):e,s=[cn(n),n.inputs,n.outputs];return ve.set(t,s),s}function zn(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="function")}async function Po(e){const{contract:t,method:n,params:r}=e,s=async()=>{var d,h;if(Array.isArray(n))return n;if(zn(n))return k(n);if(typeof n=="function")return k(await n(t));if(typeof n=="string"&&n.startsWith("function ")){const p=me(n);if(p.type==="function")return k(p);throw new Error('"method" passed is not of type "function"')}if(t.abi&&((d=t.abi)==null?void 0:d.length)>0){const p=(h=t.abi)==null?void 0:h.find(g=>g.type==="function"&&g.name===n);if(p)return k(p)}throw new Error(`Could not resolve method "${n}".`)},[o,i]=await Promise.all([s(),typeof r=="function"?r():r]);let a;o[1].length===0?a=o[0]:a=o[0]+Bn(o[1],i).slice(2);const c=hn({chain:t.chain,client:t.client}),u=await mo(c,{data:a,from:e.from?Wr(e.from):void 0,to:t.address}),f=pi(o[2],u);return Array.isArray(f)&&f.length===1?f[0]:f}const Fa=Object.freeze(Object.defineProperty({__proto__:null,readContract:Po},Symbol.toStringTag,{value:"Module"})),To={eip1559:1,eip2930:2,eip4844:3,eip7702:4,legacy:0};function In(e,t){return t&&(e.__preparedMethod=t.preparedMethod,e.__contract=t.contract),e}const Da=Object.freeze(Object.defineProperty({__proto__:null,TransactionTypeMap:To,prepareTransaction:In},Symbol.toStringTag,{value:"Module"}));function Va(e){const{contract:t,method:n,params:r,...s}=e,o=()=>(async()=>{var i,a;if(Array.isArray(n))return n;if(zn(n))return k(n);if(typeof n=="function")return k(await n(t));if(typeof n=="string"&&n.startsWith("function ")){const c=me(n);if(c.type==="function")return k(c);throw new Error('"method" passed is not of type "function"')}if(t.abi&&((i=t.abi)==null?void 0:i.length)>0){const c=(a=t.abi)==null?void 0:a.find(u=>u.type==="function"&&u.name===n);if(c)return k(c)}throw new Error(`Could not resolve method "${n}".`)})();return In({...s,chain:t.chain,client:t.client,data:async()=>{let i;return Array.isArray(n)?i=n:i=await o(),i[1].length===0?i[0]:i[0]+Bn(i[1],await Ii(r??[])).slice(2)},to:t.address},{contract:t,preparedMethod:o})}export{ne as $,N as A,l as B,re as C,La as D,y as E,Aa as F,ps as G,dr as H,tn as I,ga as J,en as K,ye as L,ma as M,Sa as N,Gr as O,fi as P,Ea as Q,Re as R,Y as S,oa as T,fe as U,hi as V,T as W,Ms as X,Ta as Y,ct as Z,Xt as _,Fr as a,ia as a$,Bs as a0,Kt as a1,ks as a2,Oa as a3,Na as a4,Va as a5,Hr as a6,rn as a7,Yr as a8,ba as a9,Fo as aA,Vo as aB,Do as aC,Wo as aD,ar as aE,ke as aF,Hn as aG,Kn as aH,je as aI,ae as aJ,Ye as aK,Jo as aL,ce as aM,sa as aN,na as aO,Dn as aP,_e as aQ,mo as aR,Dr as aS,zt as aT,Yo as aU,Ho as aV,ta as aW,kt as aX,$o as aY,lr as aZ,jt as a_,U as aa,yo as ab,xn as ac,bt as ad,Et as ae,zr as af,Qo as ag,Je as ah,It as ai,yr as aj,Ir as ak,ea as al,Cr as am,No as an,K as ao,Z as ap,Zo as aq,Fn as ar,x as as,$t as at,X as au,ko as av,sr as aw,me as ax,Nn as ay,qo as az,Ut as b,Ua as b$,hr as b0,L as b1,In as b2,_a as b3,za as b4,Ma as b5,Ys as b6,Le as b7,R as b8,j as b9,gs as bA,qt as bB,fn as bC,ln as bD,B as bE,dn as bF,Xs as bG,Gs as bH,ui as bI,Ra as bJ,Ia as bK,ci as bL,Zs as bM,ls as bN,ds as bO,ms as bP,as as bQ,fa as bR,an as bS,Zt as bT,Ne as bU,Rt as bV,Zr as bW,aa as bX,ca as bY,ua as bZ,Ba as b_,nn as ba,Wt as bb,la as bc,da as bd,ha as be,Jr as bf,Qr as bg,es as bh,pa as bi,ya as bj,it as bk,$a as bl,wa as bm,xa as bn,os as bo,Dt as bp,rs as bq,ns as br,ss as bs,cs as bt,is as bu,us as bv,Ft as bw,fs as bx,Nt as by,va as bz,hn as c,Ds as c0,ee as c1,Pa as c2,be as c3,ja as c4,ka as c5,Kr as c6,Mo as c7,Ca as c8,Fa as c9,Da as ca,pi as d,Bn as e,Ue as f,Wr as g,Nr as h,Lt as i,Qs as j,Vr as k,Ii as l,Vt as m,P as n,Ha as o,St as p,ue as q,Po as r,_ as s,cn as t,_t as u,Zn as v,G as w,He as x,Fe as y,Js as z};
|
|
27
|
-
//# sourceMappingURL=prepare-contract-call-
|
|
27
|
+
//# sourceMappingURL=prepare-contract-call-glyYfDZw.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/browser-
|
|
2
|
-
import{_ as C}from"./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/browser-BsRaY-pm.js","_assets/react-9aRvCYbm.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as C}from"./index-sQFfvNZX.js";import"./react-9aRvCYbm.js";import"./dcl-schemas-BBgGLe8k.js";import"./sentry-CJqFbG11.js";import"./ethers-BKRWnjV9.js";import"./intl-AKLEHPeO.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new a.Error().stack;n&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[n]="7b0feb45-4ada-4ae5-be39-d4141997de3e",a._sentryDebugIdIdentifier="sentry-dbid-7b0feb45-4ada-4ae5-be39-d4141997de3e")}catch{}})();function $(a,n={}){const{qrSize:i=280,showCloseButton:m=!0,closeButtonText:p="×",theme:o="light",container:y=document.body,onCancel:x}=n,t=document.createElement("div");t.style.cssText=`
|
|
3
3
|
position: fixed;
|
|
4
4
|
inset: 0;
|
|
5
5
|
background-color: ${o==="dark"?"rgba(0, 0, 0, 0.8)":"rgba(0, 0, 0, 0.5)"};
|
|
@@ -74,5 +74,5 @@ import{_ as C}from"./index-C6i7o4u4.js";import"./react-SYhE92K6.js";import"./dcl
|
|
|
74
74
|
from { transform: scale(1); opacity: 1; }
|
|
75
75
|
to { transform: scale(0.9); opacity: 0; }
|
|
76
76
|
}
|
|
77
|
-
`,document.head.appendChild(l);const b=e=>{e.key==="Escape"&&f(!0)},g=e=>{e.target===t&&f(!0)};document.addEventListener("keydown",b),t.addEventListener("click",g),y.appendChild(t);function f(e=!1){document.removeEventListener("keydown",b),t.removeEventListener("click",g),e&&x&&x(),t.style.animation="fadeOut 200ms ease-in",s.style.animation="scaleOut 200ms ease-in";const h=()=>{t.parentNode&&t.parentNode.removeChild(t),l.parentNode&&l.parentNode.removeChild(l)};t.addEventListener("animationend",h,{once:!0}),setTimeout(h,250)}function v(){t.style.display="none"}function k(){t.style.display="flex"}return{destroy:()=>f(!1),hide:v,show:k}}async function w(a,n,i){if(!n.getContext("2d"))return;const{toCanvas:p}=await C(async()=>{const{toCanvas:o}=await import("./browser-
|
|
78
|
-
//# sourceMappingURL=qr-overlay-
|
|
77
|
+
`,document.head.appendChild(l);const b=e=>{e.key==="Escape"&&f(!0)},g=e=>{e.target===t&&f(!0)};document.addEventListener("keydown",b),t.addEventListener("click",g),y.appendChild(t);function f(e=!1){document.removeEventListener("keydown",b),t.removeEventListener("click",g),e&&x&&x(),t.style.animation="fadeOut 200ms ease-in",s.style.animation="scaleOut 200ms ease-in";const h=()=>{t.parentNode&&t.parentNode.removeChild(t),l.parentNode&&l.parentNode.removeChild(l)};t.addEventListener("animationend",h,{once:!0}),setTimeout(h,250)}function v(){t.style.display="none"}function k(){t.style.display="flex"}return{destroy:()=>f(!1),hide:v,show:k}}async function w(a,n,i){if(!n.getContext("2d"))return;const{toCanvas:p}=await C(async()=>{const{toCanvas:o}=await import("./browser-BsRaY-pm.js").then(y=>y.b);return{toCanvas:o}},__vite__mapDeps([0,1]));await p(n,a,{width:i,margin:2,color:{dark:"#000000",light:"#ffffff"}})}export{$ as createQROverlay};
|
|
78
|
+
//# sourceMappingURL=qr-overlay-Cfm7lv4J.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){try{var u=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},c=new u.Error().stack;c&&(u._sentryDebugIds=u._sentryDebugIds||{},u._sentryDebugIds[c]="
|
|
1
|
+
(function(){try{var u=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},c=new u.Error().stack;c&&(u._sentryDebugIds=u._sentryDebugIds||{},u._sentryDebugIds[c]="9dfdc1ca-ebbd-49dc-be99-934a224274a6",u._sentryDebugIdIdentifier="sentry-dbid-9dfdc1ca-ebbd-49dc-be99-934a224274a6")}catch{}})();function Ed(u,c){for(var a=0;a<c.length;a++){const p=c[a];if(typeof p!="string"&&!Array.isArray(p)){for(const y in p)if(y!=="default"&&!(y in u)){const w=Object.getOwnPropertyDescriptor(p,y);w&&Object.defineProperty(u,y,w.get?w:{enumerable:!0,get:()=>p[y]})}}}return Object.freeze(Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}))}var Cd=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};Cd.SENTRY_RELEASE={id:"shop@1.9.2"};var Bp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jo(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}function Ap(u){if(Object.prototype.hasOwnProperty.call(u,"__esModule"))return u;var c=u.default;if(typeof c=="function"){var a=function p(){return this instanceof p?Reflect.construct(c,arguments,this.constructor):c.apply(this,arguments)};a.prototype=c.prototype}else a={};return Object.defineProperty(a,"__esModule",{value:!0}),Object.keys(u).forEach(function(p){var y=Object.getOwnPropertyDescriptor(u,p);Object.defineProperty(a,p,y.get?y:{enumerable:!0,get:function(){return u[p]}})}),a}var Bo={exports:{}},Pr={},Ao={exports:{}},J={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react.production.min.js
|
|
4
4
|
*
|
|
@@ -65,4 +65,4 @@ Error generating stack: `+i.message+`
|
|
|
65
65
|
*
|
|
66
66
|
* @license MIT
|
|
67
67
|
*/function $l(){return $l=Object.assign?Object.assign.bind():function(u){for(var c=1;c<arguments.length;c++){var a=arguments[c];for(var p in a)({}).hasOwnProperty.call(a,p)&&(u[p]=a[p])}return u},$l.apply(null,arguments)}function xc(u,c){if(u==null)return{};var a={};for(var p in u)if({}.hasOwnProperty.call(u,p)){if(c.indexOf(p)!==-1)continue;a[p]=u[p]}return a}function _p(u){return!!(u.metaKey||u.altKey||u.ctrlKey||u.shiftKey)}function Pp(u,c){return u.button===0&&(!c||c==="_self")&&!_p(u)}function Xo(u){return u===void 0&&(u=""),new URLSearchParams(typeof u=="string"||Array.isArray(u)||u instanceof URLSearchParams?u:Object.keys(u).reduce((c,a)=>{let p=u[a];return c.concat(Array.isArray(p)?p.map(y=>[a,y]):[[a,p]])},[]))}function Np(u,c){let a=Xo(u);return c&&c.forEach((p,y)=>{a.has(y)||c.getAll(y).forEach(w=>{a.append(y,w)})}),a}const Rp=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Lp=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],Tp="6";try{window.__reactRouterVersion=Tp}catch{}const zp=T.createContext({isTransitioning:!1}),Op="startTransition",fc=Rd[Op];function Xp(u){let{basename:c,children:a,future:p,window:y}=u,w=T.useRef();w.current==null&&(w.current=Dd({window:y,v5Compat:!0}));let S=w.current,[P,k]=T.useState({action:S.action,location:S.location}),{v7_startTransition:L}=p||{},I=T.useCallback(R=>{L&&fc?fc(()=>k(R)):k(R)},[k,L]);return T.useLayoutEffect(()=>S.listen(I),[S,I]),T.useEffect(()=>Ep(p),[p]),T.createElement(xp,{basename:c,children:a,location:P.location,navigationType:P.action,navigator:S,future:p})}const Ip=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Mp=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Dp=T.forwardRef(function(c,a){let{onClick:p,relative:y,reloadDocument:w,replace:S,state:P,target:k,to:L,preventScrollReset:I,viewTransition:R}=c,A=xc(c,Rp),{basename:b}=T.useContext(Lt),K,V=!1;if(typeof L=="string"&&Mp.test(L)&&(K=L,Ip))try{let q=new URL(window.location.href),G=L.startsWith("//")?new URL(q.protocol+L):new URL(L),Se=Un(G.pathname,b);G.origin===q.origin&&Se!=null?L=Se+G.search+G.hash:V=!0}catch{}let z=up(L,{relative:y}),le=Fp(L,{replace:S,state:P,target:k,preventScrollReset:I,relative:y,viewTransition:R});function X(q){p&&p(q),q.defaultPrevented||le(q)}return T.createElement("a",$l({},A,{href:K||z,onClick:V||w?p:X,ref:a,target:k}))}),Gp=T.forwardRef(function(c,a){let{"aria-current":p="page",caseSensitive:y=!1,className:w="",end:S=!1,style:P,to:k,viewTransition:L,children:I}=c,R=xc(c,Lp),A=Hl(k,{relative:R.relative}),b=dn(),K=T.useContext(gc),{navigator:V,basename:z}=T.useContext(Lt),le=K!=null&&Up(A)&&L===!0,X=V.encodeLocation?V.encodeLocation(A).pathname:A.pathname,q=b.pathname,G=K&&K.navigation&&K.navigation.location?K.navigation.location.pathname:null;y||(q=q.toLowerCase(),G=G?G.toLowerCase():null,X=X.toLowerCase()),G&&z&&(G=Un(G,z)||G);const Se=X!=="/"&&X.endsWith("/")?X.length-1:X.length;let Ee=q===X||!S&&q.startsWith(X)&&q.charAt(Se)==="/",Re=G!=null&&(G===X||!S&&G.startsWith(X)&&G.charAt(X.length)==="/"),ze={isActive:Ee,isPending:Re,isTransitioning:le},dt=Ee?p:void 0,Qe;typeof w=="function"?Qe=w(ze):Qe=[w,Ee?"active":null,Re?"pending":null,le?"transitioning":null].filter(Boolean).join(" ");let St=typeof P=="function"?P(ze):P;return T.createElement(Dp,$l({},R,{"aria-current":dt,className:Qe,ref:a,style:St,to:k,viewTransition:L}),typeof I=="function"?I(ze):I)});var Go;(function(u){u.UseScrollRestoration="useScrollRestoration",u.UseSubmit="useSubmit",u.UseSubmitFetcher="useSubmitFetcher",u.UseFetcher="useFetcher",u.useViewTransitionState="useViewTransitionState"})(Go||(Go={}));var dc;(function(u){u.UseFetcher="useFetcher",u.UseFetchers="useFetchers",u.UseScrollRestoration="useScrollRestoration"})(dc||(dc={}));function jp(u){let c=T.useContext(Wl);return c||me(!1),c}function Fp(u,c){let{target:a,replace:p,state:y,preventScrollReset:w,relative:S,viewTransition:P}=c===void 0?{}:c,k=tu(),L=dn(),I=Hl(u,{relative:S});return T.useCallback(R=>{if(Pp(R,a)){R.preventDefault();let A=p!==void 0?p:Vl(L)===Vl(I);k(u,{replace:A,state:y,preventScrollReset:w,relative:S,viewTransition:P})}},[L,k,I,p,y,a,u,w,S,P])}function Jp(u){let c=T.useRef(Xo(u)),a=T.useRef(!1),p=dn(),y=T.useMemo(()=>Np(p.search,a.current?null:c.current),[p.search]),w=tu(),S=T.useCallback((P,k)=>{const L=Xo(typeof P=="function"?P(y):P);a.current=!0,w("?"+L,k)},[w,y]);return[y,S]}function Up(u,c){c===void 0&&(c={});let a=T.useContext(zp);a==null&&me(!1);let{basename:p}=jp(Go.useViewTransitionState),y=Hl(u,{relative:c.relative});if(!a.isTransitioning)return!1;let w=Un(a.currentLocation.pathname,p)||a.currentLocation.pathname,S=Un(a.nextLocation.pathname,p)||a.nextLocation.pathname;return Ko(y.pathname,S)!=null||Ko(y.pathname,w)!=null}export{Jt as A,Xp as B,Dp as L,Kp as N,Nd as R,dn as a,tu as b,Bp as c,Qp as d,Md as e,Ap as f,Jo as g,Wp as h,Zo as i,Vp as j,Pd as k,Rd as l,Gp as m,Hp as n,Yp as o,Cp as p,$p as q,T as r,Jp as u};
|
|
68
|
-
//# sourceMappingURL=react-
|
|
68
|
+
//# sourceMappingURL=react-9aRvCYbm.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as k,b as d}from"./lit-element-wjYUA6aF.js";import{n as x,o as v,r as b}from"./class-map-DopF_Eyi.js";import{d as $,r as N,e as I}from"./index-
|
|
1
|
+
import{i as k,b as d}from"./lit-element-wjYUA6aF.js";import{n as x,o as v,r as b}from"./class-map-DopF_Eyi.js";import{d as $,r as N,e as I}from"./index-CuBLDtFZ.js";import{c as C,U as R}from"./index-B6SpJox_.js";import"./index-BfNdu86e.js";import"./index-CzuWMO-_.js";import{C as c,S as w,q as f,T as h,l as A,W as S,R as _,b as T}from"./W3MFrameProviderSingleton-Cil5qlaS.js";import"./index-sQFfvNZX.js";import"./react-9aRvCYbm.js";import"./dcl-schemas-BBgGLe8k.js";import"./sentry-CJqFbG11.js";import"./ethers-BKRWnjV9.js";import"./intl-AKLEHPeO.js";import"./index-BVuZOuvn.js";import"./events-S6R_9oRG.js";import"./index-Kerq77jm.js";import"./index--RzAwV6Q.js";import"./index-OpYIGLSa.js";import"./index-DpMjDWPc.js";import"./index.es-CReVKXvk.js";import"./browser-ponyfill--2nwarnr.js";import"./NetworkUtil-CUhhiBwq.js";import"./browser-BsRaY-pm.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="08cbe722-d9b3-4212-866c-dcfba1b83bd2",e._sentryDebugIdIdentifier="sentry-dbid-08cbe722-d9b3-4212-866c-dcfba1b83bd2")}catch{}})();const D=$`
|
|
2
2
|
button {
|
|
3
3
|
width: 100%;
|
|
4
4
|
display: flex;
|
|
@@ -129,4 +129,4 @@ import{i as k,b as d}from"./lit-element-wjYUA6aF.js";import{n as x,o as v,r as b
|
|
|
129
129
|
text="Only receive assets on these networks"
|
|
130
130
|
.networkImages=${s}
|
|
131
131
|
></wui-compatible-network>`}onReceiveClick(){_.push("WalletCompatibleNetworks")}onCopyClick(){try{this.address&&(T.copyToClopboard(this.address),w.showSuccess("Address copied"))}catch{w.showError("Failed to copy")}}};u.styles=E;m([b()],u.prototype,"address",void 0);m([b()],u.prototype,"profileName",void 0);m([b()],u.prototype,"network",void 0);u=m([C("w3m-wallet-receive-view")],u);export{u as W3mWalletReceiveView};
|
|
132
|
-
//# sourceMappingURL=receive-
|
|
132
|
+
//# sourceMappingURL=receive-DzqSGOBo.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{g as a}from"./get-bytecode-
|
|
2
|
-
//# sourceMappingURL=resolveImplementation-
|
|
1
|
+
import{g as a}from"./get-bytecode-CNrt-FoQ.js";import{g as f}from"./to-serializable-transaction-BKfOcqcV.js";import{e as d}from"./eth_getStorageAt-B_6XaGoO.js";import{i as p,c as l,r as c}from"./prepare-contract-call-glyYfDZw.js";import"./index-sQFfvNZX.js";import"./react-9aRvCYbm.js";import"./dcl-schemas-BBgGLe8k.js";import"./sentry-CJqFbG11.js";import"./ethers-BKRWnjV9.js";import"./intl-AKLEHPeO.js";import"./transaction-LdbEZ3QP.js";import"./utils-DF0qXAQT.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c76630f1-8e89-4576-9dd4-02446eb3bbed",e._sentryDebugIdIdentifier="sentry-dbid-c76630f1-8e89-4576-9dd4-02446eb3bbed")}catch{}})();function u(e){if(e.startsWith("0x")||(e=`0x${e}`),e.startsWith("0x363d3d373d3d3d363d73"))return`0x${e.slice(22,62)}`;if(e.startsWith("0x36603057343d5230"))return`0x${e.slice(122,162)}`;if(e.startsWith("0x3d3d3d3d363d3d37363d73"))return`0x${e.slice(24,64)}`;if(e.startsWith("0x366000600037611000600036600073"))return`0x${e.slice(32,72)}`;if(e.startsWith("0x36600080376020600036600073"))return`0x${e.slice(28,68)}`;if(e.startsWith("0x365f5f375f5f365f73"))return`0x${e.slice(20,60)}`;if(e.length===48&&e.startsWith("0xef0100"))return`0x${e.slice(8,48)}`}const o="0x0000000000000000000000000000000000000000",x="0x0000000000000000000000000000000000000000000000000000000000000000";async function E(e){const[t,s]=await Promise.all([a(e),g(e)]),n=u(t);if(n)return{address:n,bytecode:await a(f({...e,address:n}))};s&&s!==o&&(e=f({...e,address:s}));const r=await Promise.all([A(e),b(e)]);for(const i of r)if(i&&p(i)&&i!==o){const m=await a({...e,address:i});return m==="0x"?{address:e.address,bytecode:t}:{address:i,bytecode:m}}return{address:e.address,bytecode:t}}async function g(e){const t=l({chain:e.chain,client:e.client});try{const s=await d(t,{address:e.address,position:"0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50"});return s.length>=40?`0x${s.slice(-40)}`:void 0}catch{return}}async function A(e){const t=l({chain:e.chain,client:e.client});try{const s=[d(t,{address:e.address,position:"0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc"}),d(t,{address:e.address,position:"0xbaab7dbf64751104133af04abc7d9979f0fda3b059a322a8333f533d3f32bf7f"}),d(t,{address:e.address,position:"0x7050c9e0f4ca769c69bd3a8ef740bc37934f8e2c036e5a723fd8ee048ed3f8c3"})],r=(await Promise.all(s)).find(i=>i!==x);return r?`0x${r.slice(-40)}`:o}catch{return}}const h={inputs:[],name:"implementation",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"};async function b(e){try{return await c({contract:e,method:h})}catch{return}}export{E as resolveImplementation};
|
|
2
|
+
//# sourceMappingURL=resolveImplementation-CGlyDT1c.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"./react-
|
|
2
|
-
//# sourceMappingURL=resume-buy-
|
|
1
|
+
import"./react-9aRvCYbm.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="21dc54b9-49e8-4e3b-9026-098825bbd449",e._sentryDebugIdIdentifier="sentry-dbid-21dc54b9-49e8-4e3b-9026-098825bbd449")}catch{}})();const t="dcl_shop_resume_buy";export{t as R};
|
|
2
|
+
//# sourceMappingURL=resume-buy-DzrSPRFa.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{B as c}from"./prepare-contract-call-
|
|
1
|
+
import{B as c}from"./prepare-contract-call-glyYfDZw.js";import{s as l}from"./to-serializable-transaction-BKfOcqcV.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="fe6f5f8e-5f39-4b19-9d95-c24a53437f82",t._sentryDebugIdIdentifier="sentry-dbid-fe6f5f8e-5f39-4b19-9d95-c24a53437f82")}catch{}})();const L=t=>t,d=t=>t;class J extends c{constructor({body:e,cause:r,details:a,headers:n,status:u,url:i}){super("HTTP request failed.",{cause:r,details:a,metaMessages:[u&&`Status: ${u}`,`URL: ${d(i)}`,e&&`Request body: ${l(e)}`].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=e,this.headers=n,this.status=u,this.url=i}}class H extends c{constructor({body:e,cause:r,details:a,url:n}){super("WebSocket request failed.",{cause:r,details:a,metaMessages:[`URL: ${d(n)}`,e&&`Request body: ${l(e)}`].filter(Boolean),name:"WebSocketRequestError"})}}class N extends c{constructor({body:e,error:r,url:a}){super("RPC Request failed.",{cause:r,details:r.message,metaMessages:[`URL: ${d(a)}`,`Request body: ${l(e)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=r.code,this.data=r.data}}class F extends c{constructor({url:e}={}){super("The socket has been closed.",{metaMessages:[e&&`URL: ${d(e)}`].filter(Boolean),name:"SocketClosedError"})}}class z extends c{constructor({body:e,url:r}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${d(r)}`,`Request body: ${l(e)}`],name:"TimeoutError"})}}const W=-1;class o extends c{constructor(e,{code:r,docsPath:a,metaMessages:n,name:u,shortMessage:i}){super(i,{cause:e,docsPath:a,metaMessages:n||(e==null?void 0:e.metaMessages),name:u||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=u||e.name,this.code=e instanceof N?e.code:r??W}}class s extends o{constructor(e,r){super(e,r),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=r.data}}class b extends o{constructor(e){super(e,{code:b.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(b,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class p extends o{constructor(e){super(e,{code:p.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(p,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class f extends o{constructor(e,{method:r}={}){super(e,{code:f.code,name:"MethodNotFoundRpcError",shortMessage:`The method${r?` "${r}"`:""} does not exist / is not available.`})}}Object.defineProperty(f,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class h extends o{constructor(e){super(e,{code:h.code,name:"InvalidParamsRpcError",shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join(`
|
|
2
2
|
`)})}}Object.defineProperty(h,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class m extends o{constructor(e){super(e,{code:m.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(m,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class g extends o{constructor(e){super(e,{code:g.code,name:"InvalidInputRpcError",shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join(`
|
|
3
3
|
`)})}}Object.defineProperty(g,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class v extends o{constructor(e){super(e,{code:v.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(v,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class y extends o{constructor(e){super(e,{code:y.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(y,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class w extends o{constructor(e){super(e,{code:w.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(w,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class R extends o{constructor(e,{method:r}={}){super(e,{code:R.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${r?` "${r}"`:""} is not supported.`})}}Object.defineProperty(R,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class P extends o{constructor(e){super(e,{code:P.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(P,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class E extends o{constructor(e){super(e,{code:E.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(E,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class j extends s{constructor(e){super(e,{code:j.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(j,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class x extends s{constructor(e){super(e,{code:x.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(x,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class M extends s{constructor(e,{method:r}={}){super(e,{code:M.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${r?` " ${r}"`:""}.`})}}Object.defineProperty(M,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class O extends s{constructor(e){super(e,{code:O.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(O,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class q extends s{constructor(e){super(e,{code:q.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(q,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class T extends s{constructor(e){super(e,{code:T.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(T,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class U extends s{constructor(e){super(e,{code:U.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}Object.defineProperty(U,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class k extends s{constructor(e){super(e,{code:k.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}Object.defineProperty(k,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class I extends s{constructor(e){super(e,{code:I.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}Object.defineProperty(I,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class $ extends s{constructor(e){super(e,{code:$.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}Object.defineProperty($,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class S extends s{constructor(e){super(e,{code:S.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}Object.defineProperty(S,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class C extends s{constructor(e){super(e,{code:C.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}Object.defineProperty(C,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750});class D extends s{constructor(e){super(e,{code:D.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}Object.defineProperty(D,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class V extends o{constructor(e){super(e,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}export{C as A,S as B,q as C,I as D,J as H,m as I,E as J,P as L,f as M,b as P,N as R,T as S,z as T,j as U,H as W,F as a,w as b,D as c,g as d,h as e,p as f,d as g,R as h,O as i,s as j,v as k,y as l,o as m,x as n,$ as o,V as p,k as q,U as r,M as s,L as t};
|
|
4
|
-
//# sourceMappingURL=rpc-
|
|
4
|
+
//# sourceMappingURL=rpc-B4vokLJn.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var y=Object.defineProperty;var h=(e,n,t)=>n in e?y(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var g=(e,n,t)=>h(e,typeof n!="symbol"?n+"":n,t);import{r as C}from"./react-
|
|
2
|
-
//# sourceMappingURL=sales-empty-
|
|
1
|
+
var y=Object.defineProperty;var h=(e,n,t)=>n in e?y(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var g=(e,n,t)=>h(e,typeof n!="symbol"?n+"":n,t);import{r as C}from"./react-9aRvCYbm.js";import{R as m,U as _,V as I,W as A,c as u,X as M,Y as S,o as b,Z as k,l as E}from"./index-sQFfvNZX.js";import{i as T,c as F,e as v,a as x,d as L,f as R}from"./buy-DymchWn5.js";import{e as U,c as D}from"./authorizations-CJLGounG.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="dda79967-a544-4c29-9846-ce8967284390",e._sentryDebugIdIdentifier="sentry-dbid-dda79967-a544-4c29-9846-ce8967284390")}catch{}})();const f=1e3*60*60*24*182;async function O(e){const n=await fetch(`${u.marketplaceServerUrl}/v3/catalog/importable?seller=${e.toLowerCase()}`);if(!n.ok)throw new Error(`fetchImportable ${n.status}`);const{data:t}=await n.json(),a=t??[];if(a.length===0)return{creations:[],owned:[]};const r=a[0].chainId||u.chainId,o=await M(r),s=a.map(i=>({...i,suggestedCredits:S(i.manaWei,o)??1}));return{creations:s.filter(i=>i.listingType==="primary"),owned:s.filter(i=>i.listingType==="secondary")}}const l=[3e3,3e3,4e3,5e3,6e3,8e3,8e3];async function w(e,n,t){for(let a=0;;a++)try{t==null||t(a===0?{step:"publishing"}:{step:"indexing",attempt:a,of:l.length}),await A(e,n);return}catch(r){if(!/already an open order/i.test((r==null?void 0:r.message)??"")||a>=l.length)throw r;await new Promise(s=>setTimeout(s,l[a]))}}class B extends Error{constructor(t){super("Your old listing was removed, but re-listing in the Shop failed — re-list it from My Assets.");g(this,"original");this.name="RelistFailedError",this.original=t}}async function Z(e,n){try{const a=new Map;for(const s of e){const i=`${s.contractAddress.toLowerCase()}:${s.listingType}:${s.chainId}`;a.has(i)||a.set(i,s)}const o=(await Promise.all([...a.values()].map(s=>s.listingType==="primary"?T({contractAddress:s.contractAddress,chainId:s.chainId}):U(D(s.contractAddress,s.chainId),n)))).filter(s=>!s).length;return{perItem:2,approvals:o,total:e.length*2+o}}catch{return null}}async function q(e,n,t,a={}){const r=a.onPhase,o=n/10,s=e.chainId,i=e.network;if(e.listingType==="secondary"&&!await m())throw new Error("The Shop does not offer secondary sales; this listing cannot be migrated.");let p=!1;if(a.cancelOld!==!1){const c=await _(e.oldTradeId).catch(d=>{if(d instanceof I)return null;throw d});if(c){r==null||r({step:"cancelling"});const d=F({trade:c,signer:t.signer});r==null||r({step:"confirming-cancel"}),await d,p=!0}}try{if(e.listingType==="primary"){r==null||r({step:"authorising"}),await v({signer:t.signer,contractAddress:e.contractAddress,chainId:s}),r==null||r({step:"signing"});const c=await x({signer:t.signer,item:{contractAddress:e.contractAddress,itemId:e.itemId??"",network:i,chainId:s},usdPrice:o,uses:e.available,expiresAtMs:Date.now()+f});await w(c,t.identity,r)}else{r==null||r({step:"authorising"}),await L({signer:t.signer,contractAddress:e.contractAddress,chainId:s}),r==null||r({step:"signing"});const c=await R({signer:t.signer,nft:{contractAddress:e.contractAddress,tokenId:e.tokenId??"",network:i,chainId:s},usdPrice:o,expiresAtMs:Date.now()+f});await w(c,t.identity,r)}}catch(c){throw p?new B(c):c}}function z(){const e=b(o=>{var s;return(s=o.session)==null?void 0:s.address}),n=k(),{data:t,isLoading:a}=E({queryKey:["importable",e],queryFn:()=>O(e),enabled:!!e,staleTime:5*6e4}),r=C.useMemo(()=>[...(t==null?void 0:t.creations)??[],...n?(t==null?void 0:t.owned)??[]:[]],[t,n]);return{items:r,count:t?r.length:void 0,isLoading:a}}const N="data:image/svg+xml,%3csvg%20width='138'%20height='138'%20viewBox='0%200%20138%20138'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M91.5495%2040.2979C93.1805%2040.2979%2094.7448%2040.9458%2095.8982%2042.0992C97.0515%2043.2525%2097.6995%2044.8168%2097.6995%2046.4479C97.6995%2048.079%2097.0515%2049.6433%2095.8982%2050.7966C94.7448%2051.95%2093.1805%2052.5979%2091.5495%2052.5979C89.9184%2052.5979%2088.3541%2051.95%2087.2007%2050.7966C86.0474%2049.6433%2085.3994%2048.079%2085.3994%2046.4479C85.3994%2044.8168%2086.0474%2043.2525%2087.2007%2042.0992C88.3541%2040.9458%2089.9184%2040.2979%2091.5495%2040.2979Z'%20stroke='url(%23paint0_linear_2467_343450)'%20stroke-width='6'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M31.173%2065.4885C27.0606%2070.0806%2026.9745%2077.0096%2030.7466%2081.8886C38.0733%2091.3998%2046.5981%2099.9246%2056.1093%20107.251C60.9883%20111.023%2067.9174%20110.937%2072.5094%20106.825C84.9225%2095.7215%2096.5867%2083.8081%20107.425%2071.163C108.519%2069.9053%20109.193%2068.337%20109.352%2066.6775C110.025%2059.3139%20111.415%2038.1004%20105.654%2032.3439C99.8935%2026.5875%2078.684%2027.9733%2071.3204%2028.6498C69.6609%2028.8088%2068.0926%2029.4826%2066.835%2030.5768C54.19%2041.4141%2042.2766%2053.0768%2031.173%2065.4885Z'%20stroke='url(%23paint1_linear_2467_343450)'%20stroke-width='6'/%3e%3cpath%20d='M76.3311%2070.5029C76.4214%2068.8588%2076.8806%2065.8494%2074.3795%2063.5615C73.4253%2062.7324%2072.314%2062.1035%2071.1118%2061.7124C65.9581%2059.8961%2059.6317%2065.9724%2064.109%2071.5361C66.5157%2074.5291%2068.373%2075.4475%2068.1926%2078.8423C68.0696%2081.2285%2065.7244%2083.7255%2062.633%2084.6767C59.9474%2085.5049%2056.9831%2084.4102%2055.1094%2082.3151C52.8175%2079.7566%2053.0512%2077.3458%2053.0307%2076.2962M74.3836%2063.5656L77.2004%2060.7407M55.3062%2082.6349L52.6289%2085.3122'%20stroke='url(%23paint2_linear_2467_343450)'%20stroke-width='6'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_2467_343450'%20x1='85.0119'%20y1='46.4487'%20x2='106.706'%20y2='44.4048'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF2D55'/%3e%3cstop%20offset='1'%20stop-color='%23FFBC5B'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_2467_343450'%20x1='25.4163'%20y1='69.0042'%20x2='170.044'%20y2='55.378'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF2D55'/%3e%3cstop%20offset='1'%20stop-color='%23FFBC5B'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_2467_343450'%20x1='51.8547'%20y1='73.028'%20x2='95.1927'%20y2='68.945'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF2D55'/%3e%3cstop%20offset='1'%20stop-color='%23FFBC5B'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";export{B as R,Z as c,q as i,N as s,z as u};
|
|
2
|
+
//# sourceMappingURL=sales-empty-DqC1PsNb.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{u as y,r as a}from"./react-
|
|
2
|
-
//# sourceMappingURL=search-empty-
|
|
1
|
+
import{u as y,r as a}from"./react-9aRvCYbm.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="c194c84f-5e50-445c-9c2b-d0dafcbf90ba",e._sentryDebugIdIdentifier="sentry-dbid-c194c84f-5e50-445c-9c2b-d0dafcbf90ba")}catch{}})();function d(e){return e===null||e===!1||e===""?null:Array.isArray(e)?e.length?e.join(","):null:e===!0?"true":String(e)}function p(e,r){return e===null?r:Array.isArray(r)?e?e.split(",").filter(Boolean):[]:typeof r=="boolean"?e==="true":e}function h(e){const[r,c]=y(),f=a.useMemo(()=>{const s={...e};for(const t of Object.keys(e))s[t]=p(r.get(String(t)),e[t]);return s},[r,e]),l=a.useCallback((s,t)=>{c(u=>{const o=new URLSearchParams(u);for(const n of(t==null?void 0:t.drop)??[])o.delete(n);for(const[n,C]of Object.entries(s)){const i=d(C);i===null||i===d(e[n])?o.delete(n):o.set(n,i)}return o},{replace:!0})},[c,e]);return[f,l]}const b="data:image/svg+xml,%3csvg%20width='138'%20height='138'%20viewBox='0%200%20138%20138'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M58%2056L42.0004%2071.9996'%20stroke='%23FF5A57'%20stroke-width='4.3125'%20stroke-linecap='round'/%3e%3cpath%20d='M42%2056L57.9996%2071.9996'%20stroke='%23FF5A57'%20stroke-width='4.3125'%20stroke-linecap='round'/%3e%3cpath%20d='M49.5462%2097.0925C40.45%2097.0925%2032.7524%2093.9413%2026.4534%2087.639C20.1545%2081.3367%2017.0033%2073.6391%2017%2064.5462C16.9967%2055.4533%2020.1478%2047.7557%2026.4534%2041.4534C32.7591%2035.1511%2040.4567%2032%2049.5462%2032C58.6358%2032%2066.3351%2035.1511%2072.644%2041.4534C78.953%2047.7557%2082.1025%2055.4533%2082.0925%2064.5462C82.0925%2068.2181%2081.5083%2071.6814%2080.34%2074.936C79.1716%2078.1906%2077.5861%2081.0697%2075.5832%2083.5733L103.623%20111.613C104.541%20112.531%20105%20113.699%20105%20115.118C105%20116.537%20104.541%20117.705%20103.623%20118.623C102.705%20119.541%20101.537%20120%20100.118%20120C98.6994%20120%2097.5311%20119.541%2096.6131%20118.623L68.5733%2090.5832C66.0697%2092.5861%2063.1906%2094.1716%2059.936%2095.34C56.6814%2096.5083%2053.2181%2097.0925%2049.5462%2097.0925ZM49.5462%2087.0782C55.8051%2087.0782%2061.126%2084.8885%2065.5089%2080.5089C69.8918%2076.1293%2072.0816%2070.8085%2072.0782%2064.5462C72.0749%2058.284%2069.8851%2052.9648%2065.5089%2048.5886C61.1327%2044.2123%2055.8118%2042.0209%2049.5462%2042.0142C43.2807%2042.0075%2037.9614%2044.199%2033.5886%2048.5886C29.2157%2052.9781%2027.0242%2058.2974%2027.0142%2064.5462C27.0042%2070.7951%2029.1957%2076.116%2033.5886%2080.5089C37.9815%2084.9018%2043.3007%2087.0916%2049.5462%2087.0782Z'%20fill='url(%23paint0_linear_1565_322526)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_1565_322526'%20x1='14.2272'%20y1='76.0056'%20x2='169.438'%20y2='61.3827'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF2D55'/%3e%3cstop%20offset='1'%20stop-color='%23FFBC5B'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";export{b as s,h as u};
|
|
2
|
+
//# sourceMappingURL=search-empty-DCFe-ryo.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{H as Xt,c as At,a as Et,t as Qt,b as de,w as he,r as D,d as ge,e as we,f as pe,g as be}from"./index.es-m3UaQXcT.js";import"./index-C6i7o4u4.js";import"./react-SYhE92K6.js";import"./dcl-schemas-D-HY5c5S.js";import"./sentry-flvYKJxM.js";import"./ethers-D5UuIc_H.js";import"./intl-AKLEHPeO.js";import"./index-Du4TWaea.js";import"./events-BgG191wB.js";import"./index-Bk62vTwq.js";import"./index-B9CqKPcy.js";import"./index-OpYIGLSa.js";import"./index-Dqfr2bvx.js";import"./index.es-DAAXIk2h.js";import"./browser-ponyfill-Dqmkl3JZ.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new n.Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="5b873fb3-e7bf-4a22-9aae-789a66ebba49",n._sentryDebugIdIdentifier="sentry-dbid-5b873fb3-e7bf-4a22-9aae-789a66ebba49")}catch{}})();function ye(n,e,t,r){if(typeof n.setBigUint64=="function")return n.setBigUint64(e,t,r);const o=BigInt(32),s=BigInt(4294967295),c=Number(t>>o&s),f=Number(t&s),i=r?4:0,u=r?0:4;n.setUint32(e+i,c,r),n.setUint32(e+u,f,r)}function me(n,e,t){return n&e^~n&t}function xe(n,e,t){return n&e^n&t^e&t}class Ee extends Xt{constructor(e,t,r,o){super(),this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=o,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=At(this.buffer)}update(e){Et(this);const{view:t,buffer:r,blockLen:o}=this;e=Qt(e);const s=e.length;for(let c=0;c<s;){const f=Math.min(o-this.pos,s-c);if(f===o){const i=At(e);for(;o<=s-c;c+=o)this.process(i,c);continue}r.set(e.subarray(c,c+f),this.pos),this.pos+=f,c+=f,this.pos===o&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){Et(this),de(e,this),this.finished=!0;const{buffer:t,view:r,blockLen:o,isLE:s}=this;let{pos:c}=this;t[c++]=128,this.buffer.subarray(c).fill(0),this.padOffset>o-c&&(this.process(r,0),c=0);for(let h=c;h<o;h++)t[h]=0;ye(r,o-8,BigInt(this.length*8),s),this.process(r,0);const f=At(e),i=this.outputLen;if(i%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=i/4,y=this.get();if(u>y.length)throw new Error("_sha2: outputLen bigger than state");for(let h=0;h<u;h++)f.setUint32(4*h,y[h],s)}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:t,buffer:r,length:o,finished:s,destroyed:c,pos:f}=this;return e.length=o,e.pos=f,e.finished=s,e.destroyed=c,o%t&&e.buffer.set(r),e}}const Be=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Q=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),J=new Uint32Array(64);class ve extends Ee{constructor(){super(64,32,8,!1),this.A=Q[0]|0,this.B=Q[1]|0,this.C=Q[2]|0,this.D=Q[3]|0,this.E=Q[4]|0,this.F=Q[5]|0,this.G=Q[6]|0,this.H=Q[7]|0}get(){const{A:e,B:t,C:r,D:o,E:s,F:c,G:f,H:i}=this;return[e,t,r,o,s,c,f,i]}set(e,t,r,o,s,c,f,i){this.A=e|0,this.B=t|0,this.C=r|0,this.D=o|0,this.E=s|0,this.F=c|0,this.G=f|0,this.H=i|0}process(e,t){for(let h=0;h<16;h++,t+=4)J[h]=e.getUint32(t,!1);for(let h=16;h<64;h++){const l=J[h-15],m=J[h-2],N=D(l,7)^D(l,18)^l>>>3,b=D(m,17)^D(m,19)^m>>>10;J[h]=b+J[h-7]+N+J[h-16]|0}let{A:r,B:o,C:s,D:c,E:f,F:i,G:u,H:y}=this;for(let h=0;h<64;h++){const l=D(f,6)^D(f,11)^D(f,25),m=y+l+me(f,i,u)+Be[h]+J[h]|0,b=(D(r,2)^D(r,13)^D(r,22))+xe(r,o,s)|0;y=u,u=i,i=f,f=c+m|0,c=s,s=o,o=r,r=m+b|0}r=r+this.A|0,o=o+this.B|0,s=s+this.C|0,c=c+this.D|0,f=f+this.E|0,i=i+this.F|0,u=u+this.G|0,y=y+this.H|0,this.set(r,o,s,c,f,i,u,y)}roundClean(){J.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const Se=he(()=>new ve);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Ct=BigInt(0),Jt=BigInt(1),Ae=BigInt(2);function it(n){return n instanceof Uint8Array||ArrayBuffer.isView(n)&&n.constructor.name==="Uint8Array"}function yt(n){if(!it(n))throw new Error("Uint8Array expected")}function at(n,e){if(typeof e!="boolean")throw new Error(n+" boolean expected, got "+e)}const Ie=Array.from({length:256},(n,e)=>e.toString(16).padStart(2,"0"));function ut(n){yt(n);let e="";for(let t=0;t<n.length;t++)e+=Ie[n[t]];return e}function wt(n){const e=n.toString(16);return e.length&1?"0"+e:e}function Zt(n){if(typeof n!="string")throw new Error("hex string expected, got "+typeof n);return n===""?Ct:BigInt("0x"+n)}const G={_0:48,_9:57,A:65,F:70,a:97,f:102};function jt(n){if(n>=G._0&&n<=G._9)return n-G._0;if(n>=G.A&&n<=G.F)return n-(G.A-10);if(n>=G.a&&n<=G.f)return n-(G.a-10)}function pt(n){if(typeof n!="string")throw new Error("hex string expected, got "+typeof n);const e=n.length,t=e/2;if(e%2)throw new Error("hex string expected, got unpadded hex of length "+e);const r=new Uint8Array(t);for(let o=0,s=0;o<t;o++,s+=2){const c=jt(n.charCodeAt(s)),f=jt(n.charCodeAt(s+1));if(c===void 0||f===void 0){const i=n[s]+n[s+1];throw new Error('hex string expected, got non-hex character "'+i+'" at index '+s)}r[o]=c*16+f}return r}function rt(n){return Zt(ut(n))}function Rt(n){return yt(n),Zt(ut(Uint8Array.from(n).reverse()))}function lt(n,e){return pt(n.toString(16).padStart(e*2,"0"))}function Mt(n,e){return lt(n,e).reverse()}function K(n,e,t){let r;if(typeof e=="string")try{r=pt(e)}catch(s){throw new Error(n+" must be hex string or Uint8Array, cause: "+s)}else if(it(e))r=Uint8Array.from(e);else throw new Error(n+" must be hex string or Uint8Array");const o=r.length;if(typeof t=="number"&&o!==t)throw new Error(n+" of length "+t+" expected, got "+o);return r}function bt(...n){let e=0;for(let r=0;r<n.length;r++){const o=n[r];yt(o),e+=o.length}const t=new Uint8Array(e);for(let r=0,o=0;r<n.length;r++){const s=n[r];t.set(s,o),o+=s.length}return t}const It=n=>typeof n=="bigint"&&Ct<=n;function Bt(n,e,t){return It(n)&&It(e)&&It(t)&&e<=n&&n<t}function ot(n,e,t,r){if(!Bt(e,t,r))throw new Error("expected valid "+n+": "+t+" <= n < "+r+", got "+e)}function te(n){let e;for(e=0;n>Ct;n>>=Jt,e+=1);return e}const Vt=n=>(Ae<<BigInt(n-1))-Jt,Nt=n=>new Uint8Array(n),Yt=n=>Uint8Array.from(n);function ee(n,e,t){if(typeof n!="number"||n<2)throw new Error("hashLen must be a number");if(typeof e!="number"||e<2)throw new Error("qByteLen must be a number");if(typeof t!="function")throw new Error("hmacFn must be a function");let r=Nt(n),o=Nt(n),s=0;const c=()=>{r.fill(1),o.fill(0),s=0},f=(...h)=>t(o,r,...h),i=(h=Nt())=>{o=f(Yt([0]),h),r=f(),h.length!==0&&(o=f(Yt([1]),h),r=f())},u=()=>{if(s++>=1e3)throw new Error("drbg: tried 1000 values");let h=0;const l=[];for(;h<e;){r=f();const m=r.slice();l.push(m),h+=r.length}return bt(...l)};return(h,l)=>{c(),i(h);let m;for(;!(m=l(u()));)i();return c(),m}}const Ne={bigint:n=>typeof n=="bigint",function:n=>typeof n=="function",boolean:n=>typeof n=="boolean",string:n=>typeof n=="string",stringOrUint8Array:n=>typeof n=="string"||it(n),isSafeInteger:n=>Number.isSafeInteger(n),array:n=>Array.isArray(n),field:(n,e)=>e.Fp.isValid(n),hash:n=>typeof n=="function"&&Number.isSafeInteger(n.outputLen)};function mt(n,e,t={}){const r=(o,s,c)=>{const f=Ne[s];if(typeof f!="function")throw new Error("invalid validator function");const i=n[o];if(!(c&&i===void 0)&&!f(i,n))throw new Error("param "+String(o)+" is invalid. Expected "+s+", got "+i)};for(const[o,s]of Object.entries(e))r(o,s,!1);for(const[o,s]of Object.entries(t))r(o,s,!0);return n}function _t(n){const e=new WeakMap;return(t,...r)=>{const o=e.get(t);if(o!==void 0)return o;const s=n(t,...r);return e.set(t,s),s}}const qe=Object.freeze(Object.defineProperty({__proto__:null,aInRange:ot,abool:at,abytes:yt,bitLen:te,bitMask:Vt,bytesToHex:ut,bytesToNumberBE:rt,bytesToNumberLE:Rt,concatBytes:bt,createHmacDrbg:ee,ensureBytes:K,hexToBytes:pt,hexToNumber:Zt,inRange:Bt,isBytes:it,memoized:_t,numberToBytesBE:lt,numberToBytesLE:Mt,numberToHexUnpadded:wt,validateObject:mt},Symbol.toStringTag,{value:"Module"}));class ne extends Xt{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,ge(e);const r=Qt(t);if(this.iHash=e.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const o=this.blockLen,s=new Uint8Array(o);s.set(r.length>o?e.create().update(r).digest():r);for(let c=0;c<s.length;c++)s[c]^=54;this.iHash.update(s),this.oHash=e.create();for(let c=0;c<s.length;c++)s[c]^=106;this.oHash.update(s),s.fill(0)}update(e){return Et(this),this.iHash.update(e),this}digestInto(e){Et(this),we(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:t,iHash:r,finished:o,destroyed:s,blockLen:c,outputLen:f}=this;return e=e,e.finished=o,e.destroyed=s,e.blockLen=c,e.outputLen=f,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const re=(n,e,t)=>new ne(n,e).update(t).digest();re.create=(n,e)=>new ne(n,e);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const z=BigInt(0),U=BigInt(1),nt=BigInt(2),Oe=BigInt(3),Ut=BigInt(4),Ft=BigInt(5),Kt=BigInt(8);function V(n,e){const t=n%e;return t>=z?t:e+t}function Le(n,e,t){if(e<z)throw new Error("invalid exponent, negatives unsupported");if(t<=z)throw new Error("invalid modulus");if(t===U)return z;let r=U;for(;e>z;)e&U&&(r=r*n%t),n=n*n%t,e>>=U;return r}function Y(n,e,t){let r=n;for(;e-- >z;)r*=r,r%=t;return r}function kt(n,e){if(n===z)throw new Error("invert: expected non-zero number");if(e<=z)throw new Error("invert: expected positive modulus, got "+e);let t=V(n,e),r=e,o=z,s=U;for(;t!==z;){const f=r/t,i=r%t,u=o-s*f;r=t,t=i,o=s,s=u}if(r!==U)throw new Error("invert: does not exist");return V(o,e)}function He(n){const e=(n-U)/nt;let t,r,o;for(t=n-U,r=0;t%nt===z;t/=nt,r++);for(o=nt;o<n&&Le(o,e,n)!==n-U;o++)if(o>1e3)throw new Error("Cannot find square root: likely non-prime P");if(r===1){const c=(n+U)/Ut;return function(i,u){const y=i.pow(u,c);if(!i.eql(i.sqr(y),u))throw new Error("Cannot find square root");return y}}const s=(t+U)/nt;return function(f,i){if(f.pow(i,e)===f.neg(f.ONE))throw new Error("Cannot find square root");let u=r,y=f.pow(f.mul(f.ONE,o),t),h=f.pow(i,s),l=f.pow(i,t);for(;!f.eql(l,f.ONE);){if(f.eql(l,f.ZERO))return f.ZERO;let m=1;for(let b=f.sqr(l);m<u&&!f.eql(b,f.ONE);m++)b=f.sqr(b);const N=f.pow(y,U<<BigInt(u-m-1));y=f.sqr(N),h=f.mul(h,N),l=f.mul(l,y),u=m}return h}}function _e(n){if(n%Ut===Oe){const e=(n+U)/Ut;return function(r,o){const s=r.pow(o,e);if(!r.eql(r.sqr(s),o))throw new Error("Cannot find square root");return s}}if(n%Kt===Ft){const e=(n-Ft)/Kt;return function(r,o){const s=r.mul(o,nt),c=r.pow(s,e),f=r.mul(o,c),i=r.mul(r.mul(f,nt),c),u=r.mul(f,r.sub(i,r.ONE));if(!r.eql(r.sqr(u),o))throw new Error("Cannot find square root");return u}}return He(n)}const Ue=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function ke(n){const e={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},t=Ue.reduce((r,o)=>(r[o]="function",r),e);return mt(n,t)}function Te(n,e,t){if(t<z)throw new Error("invalid exponent, negatives unsupported");if(t===z)return n.ONE;if(t===U)return e;let r=n.ONE,o=e;for(;t>z;)t&U&&(r=n.mul(r,o)),o=n.sqr(o),t>>=U;return r}function ze(n,e){const t=new Array(e.length),r=e.reduce((s,c,f)=>n.is0(c)?s:(t[f]=s,n.mul(s,c)),n.ONE),o=n.inv(r);return e.reduceRight((s,c,f)=>n.is0(c)?s:(t[f]=n.mul(s,t[f]),n.mul(s,c)),o),t}function oe(n,e){const t=e!==void 0?e:n.toString(2).length,r=Math.ceil(t/8);return{nBitLength:t,nByteLength:r}}function ie(n,e,t=!1,r={}){if(n<=z)throw new Error("invalid field: expected ORDER > 0, got "+n);const{nBitLength:o,nByteLength:s}=oe(n,e);if(s>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let c;const f=Object.freeze({ORDER:n,isLE:t,BITS:o,BYTES:s,MASK:Vt(o),ZERO:z,ONE:U,create:i=>V(i,n),isValid:i=>{if(typeof i!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof i);return z<=i&&i<n},is0:i=>i===z,isOdd:i=>(i&U)===U,neg:i=>V(-i,n),eql:(i,u)=>i===u,sqr:i=>V(i*i,n),add:(i,u)=>V(i+u,n),sub:(i,u)=>V(i-u,n),mul:(i,u)=>V(i*u,n),pow:(i,u)=>Te(f,i,u),div:(i,u)=>V(i*kt(u,n),n),sqrN:i=>i*i,addN:(i,u)=>i+u,subN:(i,u)=>i-u,mulN:(i,u)=>i*u,inv:i=>kt(i,n),sqrt:r.sqrt||(i=>(c||(c=_e(n)),c(f,i))),invertBatch:i=>ze(f,i),cmov:(i,u,y)=>y?u:i,toBytes:i=>t?Mt(i,s):lt(i,s),fromBytes:i=>{if(i.length!==s)throw new Error("Field.fromBytes: expected "+s+" bytes, got "+i.length);return t?Rt(i):rt(i)}});return Object.freeze(f)}function se(n){if(typeof n!="bigint")throw new Error("field order must be bigint");const e=n.toString(2).length;return Math.ceil(e/8)}function ce(n){const e=se(n);return e+Math.ceil(e/2)}function Ce(n,e,t=!1){const r=n.length,o=se(e),s=ce(e);if(r<16||r<s||r>1024)throw new Error("expected "+s+"-1024 bytes of input, got "+r);const c=t?Rt(n):rt(n),f=V(c,e-U)+U;return t?Mt(f,o):lt(f,o)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Dt=BigInt(0),xt=BigInt(1);function qt(n,e){const t=e.negate();return n?t:e}function fe(n,e){if(!Number.isSafeInteger(n)||n<=0||n>e)throw new Error("invalid window size, expected [1.."+e+"], got W="+n)}function Ot(n,e){fe(n,e);const t=Math.ceil(e/n)+1,r=2**(n-1);return{windows:t,windowSize:r}}function Ze(n,e){if(!Array.isArray(n))throw new Error("array expected");n.forEach((t,r)=>{if(!(t instanceof e))throw new Error("invalid point at index "+r)})}function Re(n,e){if(!Array.isArray(n))throw new Error("array of scalars expected");n.forEach((t,r)=>{if(!e.isValid(t))throw new Error("invalid scalar at index "+r)})}const Lt=new WeakMap,ae=new WeakMap;function Ht(n){return ae.get(n)||1}function Me(n,e){return{constTimeNegate:qt,hasPrecomputes(t){return Ht(t)!==1},unsafeLadder(t,r,o=n.ZERO){let s=t;for(;r>Dt;)r&xt&&(o=o.add(s)),s=s.double(),r>>=xt;return o},precomputeWindow(t,r){const{windows:o,windowSize:s}=Ot(r,e),c=[];let f=t,i=f;for(let u=0;u<o;u++){i=f,c.push(i);for(let y=1;y<s;y++)i=i.add(f),c.push(i);f=i.double()}return c},wNAF(t,r,o){const{windows:s,windowSize:c}=Ot(t,e);let f=n.ZERO,i=n.BASE;const u=BigInt(2**t-1),y=2**t,h=BigInt(t);for(let l=0;l<s;l++){const m=l*c;let N=Number(o&u);o>>=h,N>c&&(N-=y,o+=xt);const b=m,a=m+Math.abs(N)-1,g=l%2!==0,x=N<0;N===0?i=i.add(qt(g,r[b])):f=f.add(qt(x,r[a]))}return{p:f,f:i}},wNAFUnsafe(t,r,o,s=n.ZERO){const{windows:c,windowSize:f}=Ot(t,e),i=BigInt(2**t-1),u=2**t,y=BigInt(t);for(let h=0;h<c;h++){const l=h*f;if(o===Dt)break;let m=Number(o&i);if(o>>=y,m>f&&(m-=u,o+=xt),m===0)continue;let N=r[l+Math.abs(m)-1];m<0&&(N=N.negate()),s=s.add(N)}return s},getPrecomputes(t,r,o){let s=Lt.get(r);return s||(s=this.precomputeWindow(r,t),t!==1&&Lt.set(r,o(s))),s},wNAFCached(t,r,o){const s=Ht(t);return this.wNAF(s,this.getPrecomputes(s,t,o),r)},wNAFCachedUnsafe(t,r,o,s){const c=Ht(t);return c===1?this.unsafeLadder(t,r,s):this.wNAFUnsafe(c,this.getPrecomputes(c,t,o),r,s)},setWindowSize(t,r){fe(r,e),ae.set(t,r),Lt.delete(t)}}}function Ve(n,e,t,r){if(Ze(t,n),Re(r,e),t.length!==r.length)throw new Error("arrays of points and scalars must have equal length");const o=n.ZERO,s=te(BigInt(t.length)),c=s>12?s-3:s>4?s-2:s?2:1,f=(1<<c)-1,i=new Array(f+1).fill(o),u=Math.floor((e.BITS-1)/c)*c;let y=o;for(let h=u;h>=0;h-=c){i.fill(o);for(let m=0;m<r.length;m++){const N=r[m],b=Number(N>>BigInt(h)&BigInt(f));i[b]=i[b].add(t[m])}let l=o;for(let m=i.length-1,N=o;m>0;m--)N=N.add(i[m]),l=l.add(N);if(y=y.add(l),h!==0)for(let m=0;m<c;m++)y=y.double()}return y}function ue(n){return ke(n.Fp),mt(n,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...oe(n.n,n.nBitLength),...n,p:n.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Pt(n){n.lowS!==void 0&&at("lowS",n.lowS),n.prehash!==void 0&&at("prehash",n.prehash)}function je(n){const e=ue(n);mt(e,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:t,Fp:r,a:o}=e;if(t){if(!r.eql(o,r.ZERO))throw new Error("invalid endomorphism, can only be defined for Koblitz curves that have a=0");if(typeof t!="object"||typeof t.beta!="bigint"||typeof t.splitScalar!="function")throw new Error("invalid endomorphism, expected beta: bigint and splitScalar: function")}return Object.freeze({...e})}const{bytesToNumberBE:Ye,hexToBytes:Fe}=qe;class Ke extends Error{constructor(e=""){super(e)}}const $={Err:Ke,_tlv:{encode:(n,e)=>{const{Err:t}=$;if(n<0||n>256)throw new t("tlv.encode: wrong tag");if(e.length&1)throw new t("tlv.encode: unpadded data");const r=e.length/2,o=wt(r);if(o.length/2&128)throw new t("tlv.encode: long form length too big");const s=r>127?wt(o.length/2|128):"";return wt(n)+s+o+e},decode(n,e){const{Err:t}=$;let r=0;if(n<0||n>256)throw new t("tlv.encode: wrong tag");if(e.length<2||e[r++]!==n)throw new t("tlv.decode: wrong tlv");const o=e[r++],s=!!(o&128);let c=0;if(!s)c=o;else{const i=o&127;if(!i)throw new t("tlv.decode(long): indefinite length not supported");if(i>4)throw new t("tlv.decode(long): byte length is too big");const u=e.subarray(r,r+i);if(u.length!==i)throw new t("tlv.decode: length bytes not complete");if(u[0]===0)throw new t("tlv.decode(long): zero leftmost byte");for(const y of u)c=c<<8|y;if(r+=i,c<128)throw new t("tlv.decode(long): not minimal encoding")}const f=e.subarray(r,r+c);if(f.length!==c)throw new t("tlv.decode: wrong value length");return{v:f,l:e.subarray(r+c)}}},_int:{encode(n){const{Err:e}=$;if(n<W)throw new e("integer: negative integers are not allowed");let t=wt(n);if(Number.parseInt(t[0],16)&8&&(t="00"+t),t.length&1)throw new e("unexpected DER parsing assertion: unpadded hex");return t},decode(n){const{Err:e}=$;if(n[0]&128)throw new e("invalid signature integer: negative");if(n[0]===0&&!(n[1]&128))throw new e("invalid signature integer: unnecessary leading zero");return Ye(n)}},toSig(n){const{Err:e,_int:t,_tlv:r}=$,o=typeof n=="string"?Fe(n):n;yt(o);const{v:s,l:c}=r.decode(48,o);if(c.length)throw new e("invalid signature: left bytes after parsing");const{v:f,l:i}=r.decode(2,s),{v:u,l:y}=r.decode(2,i);if(y.length)throw new e("invalid signature: left bytes after parsing");return{r:t.decode(f),s:t.decode(u)}},hexFromSig(n){const{_tlv:e,_int:t}=$,r=e.encode(2,t.encode(n.r)),o=e.encode(2,t.encode(n.s)),s=r+o;return e.encode(48,s)}},W=BigInt(0),T=BigInt(1);BigInt(2);const Gt=BigInt(3);BigInt(4);function De(n){const e=je(n),{Fp:t}=e,r=ie(e.n,e.nBitLength),o=e.toBytes||((b,a,g)=>{const x=a.toAffine();return bt(Uint8Array.from([4]),t.toBytes(x.x),t.toBytes(x.y))}),s=e.fromBytes||(b=>{const a=b.subarray(1),g=t.fromBytes(a.subarray(0,t.BYTES)),x=t.fromBytes(a.subarray(t.BYTES,2*t.BYTES));return{x:g,y:x}});function c(b){const{a,b:g}=e,x=t.sqr(b),E=t.mul(x,b);return t.add(t.add(E,t.mul(b,a)),g)}if(!t.eql(t.sqr(e.Gy),c(e.Gx)))throw new Error("bad generator point: equation left != right");function f(b){return Bt(b,T,e.n)}function i(b){const{allowedPrivateKeyLengths:a,nByteLength:g,wrapPrivateKey:x,n:E}=e;if(a&&typeof b!="bigint"){if(it(b)&&(b=ut(b)),typeof b!="string"||!a.includes(b.length))throw new Error("invalid private key");b=b.padStart(g*2,"0")}let q;try{q=typeof b=="bigint"?b:rt(K("private key",b,g))}catch{throw new Error("invalid private key, expected hex or "+g+" bytes, got "+typeof b)}return x&&(q=V(q,E)),ot("private key",q,T,E),q}function u(b){if(!(b instanceof l))throw new Error("ProjectivePoint expected")}const y=_t((b,a)=>{const{px:g,py:x,pz:E}=b;if(t.eql(E,t.ONE))return{x:g,y:x};const q=b.is0();a==null&&(a=q?t.ONE:t.inv(E));const L=t.mul(g,a),I=t.mul(x,a),B=t.mul(E,a);if(q)return{x:t.ZERO,y:t.ZERO};if(!t.eql(B,t.ONE))throw new Error("invZ was invalid");return{x:L,y:I}}),h=_t(b=>{if(b.is0()){if(e.allowInfinityPoint&&!t.is0(b.py))return;throw new Error("bad point: ZERO")}const{x:a,y:g}=b.toAffine();if(!t.isValid(a)||!t.isValid(g))throw new Error("bad point: x or y not FE");const x=t.sqr(g),E=c(a);if(!t.eql(x,E))throw new Error("bad point: equation left != right");if(!b.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});class l{constructor(a,g,x){if(this.px=a,this.py=g,this.pz=x,a==null||!t.isValid(a))throw new Error("x required");if(g==null||!t.isValid(g))throw new Error("y required");if(x==null||!t.isValid(x))throw new Error("z required");Object.freeze(this)}static fromAffine(a){const{x:g,y:x}=a||{};if(!a||!t.isValid(g)||!t.isValid(x))throw new Error("invalid affine point");if(a instanceof l)throw new Error("projective point not allowed");const E=q=>t.eql(q,t.ZERO);return E(g)&&E(x)?l.ZERO:new l(g,x,t.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(a){const g=t.invertBatch(a.map(x=>x.pz));return a.map((x,E)=>x.toAffine(g[E])).map(l.fromAffine)}static fromHex(a){const g=l.fromAffine(s(K("pointHex",a)));return g.assertValidity(),g}static fromPrivateKey(a){return l.BASE.multiply(i(a))}static msm(a,g){return Ve(l,r,a,g)}_setWindowSize(a){N.setWindowSize(this,a)}assertValidity(){h(this)}hasEvenY(){const{y:a}=this.toAffine();if(t.isOdd)return!t.isOdd(a);throw new Error("Field doesn't support isOdd")}equals(a){u(a);const{px:g,py:x,pz:E}=this,{px:q,py:L,pz:I}=a,B=t.eql(t.mul(g,I),t.mul(q,E)),A=t.eql(t.mul(x,I),t.mul(L,E));return B&&A}negate(){return new l(this.px,t.neg(this.py),this.pz)}double(){const{a,b:g}=e,x=t.mul(g,Gt),{px:E,py:q,pz:L}=this;let I=t.ZERO,B=t.ZERO,A=t.ZERO,v=t.mul(E,E),C=t.mul(q,q),_=t.mul(L,L),H=t.mul(E,q);return H=t.add(H,H),A=t.mul(E,L),A=t.add(A,A),I=t.mul(a,A),B=t.mul(x,_),B=t.add(I,B),I=t.sub(C,B),B=t.add(C,B),B=t.mul(I,B),I=t.mul(H,I),A=t.mul(x,A),_=t.mul(a,_),H=t.sub(v,_),H=t.mul(a,H),H=t.add(H,A),A=t.add(v,v),v=t.add(A,v),v=t.add(v,_),v=t.mul(v,H),B=t.add(B,v),_=t.mul(q,L),_=t.add(_,_),v=t.mul(_,H),I=t.sub(I,v),A=t.mul(_,C),A=t.add(A,A),A=t.add(A,A),new l(I,B,A)}add(a){u(a);const{px:g,py:x,pz:E}=this,{px:q,py:L,pz:I}=a;let B=t.ZERO,A=t.ZERO,v=t.ZERO;const C=e.a,_=t.mul(e.b,Gt);let H=t.mul(g,q),j=t.mul(x,L),d=t.mul(E,I),w=t.add(g,x),p=t.add(q,L);w=t.mul(w,p),p=t.add(H,j),w=t.sub(w,p),p=t.add(g,E);let S=t.add(q,I);return p=t.mul(p,S),S=t.add(H,d),p=t.sub(p,S),S=t.add(x,E),B=t.add(L,I),S=t.mul(S,B),B=t.add(j,d),S=t.sub(S,B),v=t.mul(C,p),B=t.mul(_,d),v=t.add(B,v),B=t.sub(j,v),v=t.add(j,v),A=t.mul(B,v),j=t.add(H,H),j=t.add(j,H),d=t.mul(C,d),p=t.mul(_,p),j=t.add(j,d),d=t.sub(H,d),d=t.mul(C,d),p=t.add(p,d),H=t.mul(j,p),A=t.add(A,H),H=t.mul(S,p),B=t.mul(w,B),B=t.sub(B,H),H=t.mul(w,j),v=t.mul(S,v),v=t.add(v,H),new l(B,A,v)}subtract(a){return this.add(a.negate())}is0(){return this.equals(l.ZERO)}wNAF(a){return N.wNAFCached(this,a,l.normalizeZ)}multiplyUnsafe(a){const{endo:g,n:x}=e;ot("scalar",a,W,x);const E=l.ZERO;if(a===W)return E;if(this.is0()||a===T)return this;if(!g||N.hasPrecomputes(this))return N.wNAFCachedUnsafe(this,a,l.normalizeZ);let{k1neg:q,k1:L,k2neg:I,k2:B}=g.splitScalar(a),A=E,v=E,C=this;for(;L>W||B>W;)L&T&&(A=A.add(C)),B&T&&(v=v.add(C)),C=C.double(),L>>=T,B>>=T;return q&&(A=A.negate()),I&&(v=v.negate()),v=new l(t.mul(v.px,g.beta),v.py,v.pz),A.add(v)}multiply(a){const{endo:g,n:x}=e;ot("scalar",a,T,x);let E,q;if(g){const{k1neg:L,k1:I,k2neg:B,k2:A}=g.splitScalar(a);let{p:v,f:C}=this.wNAF(I),{p:_,f:H}=this.wNAF(A);v=N.constTimeNegate(L,v),_=N.constTimeNegate(B,_),_=new l(t.mul(_.px,g.beta),_.py,_.pz),E=v.add(_),q=C.add(H)}else{const{p:L,f:I}=this.wNAF(a);E=L,q=I}return l.normalizeZ([E,q])[0]}multiplyAndAddUnsafe(a,g,x){const E=l.BASE,q=(I,B)=>B===W||B===T||!I.equals(E)?I.multiplyUnsafe(B):I.multiply(B),L=q(this,g).add(q(a,x));return L.is0()?void 0:L}toAffine(a){return y(this,a)}isTorsionFree(){const{h:a,isTorsionFree:g}=e;if(a===T)return!0;if(g)return g(l,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:a,clearCofactor:g}=e;return a===T?this:g?g(l,this):this.multiplyUnsafe(e.h)}toRawBytes(a=!0){return at("isCompressed",a),this.assertValidity(),o(l,this,a)}toHex(a=!0){return at("isCompressed",a),ut(this.toRawBytes(a))}}l.BASE=new l(e.Gx,e.Gy,t.ONE),l.ZERO=new l(t.ZERO,t.ONE,t.ZERO);const m=e.nBitLength,N=Me(l,e.endo?Math.ceil(m/2):m);return{CURVE:e,ProjectivePoint:l,normPrivateKeyToScalar:i,weierstrassEquation:c,isWithinCurveOrder:f}}function Pe(n){const e=ue(n);return mt(e,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...e})}function Ge(n){const e=Pe(n),{Fp:t,n:r}=e,o=t.BYTES+1,s=2*t.BYTES+1;function c(d){return V(d,r)}function f(d){return kt(d,r)}const{ProjectivePoint:i,normPrivateKeyToScalar:u,weierstrassEquation:y,isWithinCurveOrder:h}=De({...e,toBytes(d,w,p){const S=w.toAffine(),O=t.toBytes(S.x),k=bt;return at("isCompressed",p),p?k(Uint8Array.from([w.hasEvenY()?2:3]),O):k(Uint8Array.from([4]),O,t.toBytes(S.y))},fromBytes(d){const w=d.length,p=d[0],S=d.subarray(1);if(w===o&&(p===2||p===3)){const O=rt(S);if(!Bt(O,T,t.ORDER))throw new Error("Point is not on curve");const k=y(O);let R;try{R=t.sqrt(k)}catch(F){const M=F instanceof Error?": "+F.message:"";throw new Error("Point is not on curve"+M)}const Z=(R&T)===T;return(p&1)===1!==Z&&(R=t.neg(R)),{x:O,y:R}}else if(w===s&&p===4){const O=t.fromBytes(S.subarray(0,t.BYTES)),k=t.fromBytes(S.subarray(t.BYTES,2*t.BYTES));return{x:O,y:k}}else{const O=o,k=s;throw new Error("invalid Point, expected length of "+O+", or uncompressed "+k+", got "+w)}}}),l=d=>ut(lt(d,e.nByteLength));function m(d){const w=r>>T;return d>w}function N(d){return m(d)?c(-d):d}const b=(d,w,p)=>rt(d.slice(w,p));class a{constructor(w,p,S){this.r=w,this.s=p,this.recovery=S,this.assertValidity()}static fromCompact(w){const p=e.nByteLength;return w=K("compactSignature",w,p*2),new a(b(w,0,p),b(w,p,2*p))}static fromDER(w){const{r:p,s:S}=$.toSig(K("DER",w));return new a(p,S)}assertValidity(){ot("r",this.r,T,r),ot("s",this.s,T,r)}addRecoveryBit(w){return new a(this.r,this.s,w)}recoverPublicKey(w){const{r:p,s:S,recovery:O}=this,k=I(K("msgHash",w));if(O==null||![0,1,2,3].includes(O))throw new Error("recovery id invalid");const R=O===2||O===3?p+e.n:p;if(R>=t.ORDER)throw new Error("recovery id 2 or 3 invalid");const Z=(O&1)===0?"02":"03",P=i.fromHex(Z+l(R)),F=f(R),M=c(-k*F),st=c(S*F),X=i.BASE.multiplyAndAddUnsafe(P,M,st);if(!X)throw new Error("point at infinify");return X.assertValidity(),X}hasHighS(){return m(this.s)}normalizeS(){return this.hasHighS()?new a(this.r,c(-this.s),this.recovery):this}toDERRawBytes(){return pt(this.toDERHex())}toDERHex(){return $.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return pt(this.toCompactHex())}toCompactHex(){return l(this.r)+l(this.s)}}const g={isValidPrivateKey(d){try{return u(d),!0}catch{return!1}},normPrivateKeyToScalar:u,randomPrivateKey:()=>{const d=ce(e.n);return Ce(e.randomBytes(d),e.n)},precompute(d=8,w=i.BASE){return w._setWindowSize(d),w.multiply(BigInt(3)),w}};function x(d,w=!0){return i.fromPrivateKey(d).toRawBytes(w)}function E(d){const w=it(d),p=typeof d=="string",S=(w||p)&&d.length;return w?S===o||S===s:p?S===2*o||S===2*s:d instanceof i}function q(d,w,p=!0){if(E(d))throw new Error("first arg must be private key");if(!E(w))throw new Error("second arg must be public key");return i.fromHex(w).multiply(u(d)).toRawBytes(p)}const L=e.bits2int||function(d){if(d.length>8192)throw new Error("input is too large");const w=rt(d),p=d.length*8-e.nBitLength;return p>0?w>>BigInt(p):w},I=e.bits2int_modN||function(d){return c(L(d))},B=Vt(e.nBitLength);function A(d){return ot("num < 2^"+e.nBitLength,d,W,B),lt(d,e.nByteLength)}function v(d,w,p=C){if(["recovered","canonical"].some(tt=>tt in p))throw new Error("sign() legacy options not supported");const{hash:S,randomBytes:O}=e;let{lowS:k,prehash:R,extraEntropy:Z}=p;k==null&&(k=!0),d=K("msgHash",d),Pt(p),R&&(d=K("prehashed msgHash",S(d)));const P=I(d),F=u(w),M=[A(F),A(P)];if(Z!=null&&Z!==!1){const tt=Z===!0?O(t.BYTES):Z;M.push(K("extraEntropy",tt))}const st=bt(...M),X=P;function vt(tt){const ct=L(tt);if(!h(ct))return;const St=f(ct),dt=i.BASE.multiply(ct).toAffine(),et=c(dt.x);if(et===W)return;const ht=c(St*c(X+et*F));if(ht===W)return;let gt=(dt.x===et?0:2)|Number(dt.y&T),ft=ht;return k&&m(ht)&&(ft=N(ht),gt^=1),new a(et,ft,gt)}return{seed:st,k2sig:vt}}const C={lowS:e.lowS,prehash:!1},_={lowS:e.lowS,prehash:!1};function H(d,w,p=C){const{seed:S,k2sig:O}=v(d,w,p),k=e;return ee(k.hash.outputLen,k.nByteLength,k.hmac)(S,O)}i.BASE._setWindowSize(8);function j(d,w,p,S=_){var gt;const O=d;w=K("msgHash",w),p=K("publicKey",p);const{lowS:k,prehash:R,format:Z}=S;if(Pt(S),"strict"in S)throw new Error("options.strict was renamed to lowS");if(Z!==void 0&&Z!=="compact"&&Z!=="der")throw new Error("format must be compact or der");const P=typeof O=="string"||it(O),F=!P&&!Z&&typeof O=="object"&&O!==null&&typeof O.r=="bigint"&&typeof O.s=="bigint";if(!P&&!F)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let M,st;try{if(F&&(M=new a(O.r,O.s)),P){try{Z!=="compact"&&(M=a.fromDER(O))}catch(ft){if(!(ft instanceof $.Err))throw ft}!M&&Z!=="der"&&(M=a.fromCompact(O))}st=i.fromHex(p)}catch{return!1}if(!M||k&&M.hasHighS())return!1;R&&(w=e.hash(w));const{r:X,s:vt}=M,tt=I(w),ct=f(vt),St=c(tt*ct),dt=c(X*ct),et=(gt=i.BASE.multiplyAndAddUnsafe(st,St,dt))==null?void 0:gt.toAffine();return et?c(et.x)===X:!1}return{CURVE:e,getPublicKey:x,getSharedSecret:q,sign:H,verify:j,ProjectivePoint:i,Signature:a,utils:g}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function $e(n){return{hash:n,hmac:(e,...t)=>re(n,e,be(...t)),randomBytes:pe}}function We(n,e){const t=r=>Ge({...n,...$e(r)});return{...t(e),create:t}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const le=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),$t=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Xe=BigInt(1),Tt=BigInt(2),Wt=(n,e)=>(n+e/Tt)/e;function Qe(n){const e=le,t=BigInt(3),r=BigInt(6),o=BigInt(11),s=BigInt(22),c=BigInt(23),f=BigInt(44),i=BigInt(88),u=n*n*n%e,y=u*u*n%e,h=Y(y,t,e)*y%e,l=Y(h,t,e)*y%e,m=Y(l,Tt,e)*u%e,N=Y(m,o,e)*m%e,b=Y(N,s,e)*N%e,a=Y(b,f,e)*b%e,g=Y(a,i,e)*a%e,x=Y(g,f,e)*b%e,E=Y(x,t,e)*y%e,q=Y(E,c,e)*N%e,L=Y(q,r,e)*u%e,I=Y(L,Tt,e);if(!zt.eql(zt.sqr(I),n))throw new Error("Cannot find square root");return I}const zt=ie(le,void 0,void 0,{sqrt:Qe}),Je=We({a:BigInt(0),b:BigInt(7),Fp:zt,n:$t,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:n=>{const e=$t,t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-Xe*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),o=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),s=t,c=BigInt("0x100000000000000000000000000000000"),f=Wt(s*n,e),i=Wt(-r*n,e);let u=V(n-f*t-i*o,e),y=V(-f*r-i*s,e);const h=u>c,l=y>c;if(h&&(u=e-u),l&&(y=e-y),u>c||y>c)throw new Error("splitScalar: Endomorphism failed, k="+n);return{k1neg:h,k1:u,k2neg:l,k2:y}}}},Se);BigInt(0);Je.ProjectivePoint;export{Je as secp256k1};
|
|
2
|
-
//# sourceMappingURL=secp256k1-
|
|
1
|
+
import{H as Xt,c as At,a as Et,t as Qt,b as de,w as he,r as D,d as ge,e as we,f as pe,g as be}from"./index.es-NKUXf-un.js";import"./index-sQFfvNZX.js";import"./react-9aRvCYbm.js";import"./dcl-schemas-BBgGLe8k.js";import"./sentry-CJqFbG11.js";import"./ethers-BKRWnjV9.js";import"./intl-AKLEHPeO.js";import"./index-BVuZOuvn.js";import"./events-S6R_9oRG.js";import"./index-Kerq77jm.js";import"./index--RzAwV6Q.js";import"./index-OpYIGLSa.js";import"./index-kizwd9je.js";import"./index.es-CReVKXvk.js";import"./browser-ponyfill--2nwarnr.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new n.Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="5b873fb3-e7bf-4a22-9aae-789a66ebba49",n._sentryDebugIdIdentifier="sentry-dbid-5b873fb3-e7bf-4a22-9aae-789a66ebba49")}catch{}})();function ye(n,e,t,r){if(typeof n.setBigUint64=="function")return n.setBigUint64(e,t,r);const o=BigInt(32),s=BigInt(4294967295),c=Number(t>>o&s),f=Number(t&s),i=r?4:0,u=r?0:4;n.setUint32(e+i,c,r),n.setUint32(e+u,f,r)}function me(n,e,t){return n&e^~n&t}function xe(n,e,t){return n&e^n&t^e&t}class Ee extends Xt{constructor(e,t,r,o){super(),this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=o,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=At(this.buffer)}update(e){Et(this);const{view:t,buffer:r,blockLen:o}=this;e=Qt(e);const s=e.length;for(let c=0;c<s;){const f=Math.min(o-this.pos,s-c);if(f===o){const i=At(e);for(;o<=s-c;c+=o)this.process(i,c);continue}r.set(e.subarray(c,c+f),this.pos),this.pos+=f,c+=f,this.pos===o&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){Et(this),de(e,this),this.finished=!0;const{buffer:t,view:r,blockLen:o,isLE:s}=this;let{pos:c}=this;t[c++]=128,this.buffer.subarray(c).fill(0),this.padOffset>o-c&&(this.process(r,0),c=0);for(let h=c;h<o;h++)t[h]=0;ye(r,o-8,BigInt(this.length*8),s),this.process(r,0);const f=At(e),i=this.outputLen;if(i%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=i/4,y=this.get();if(u>y.length)throw new Error("_sha2: outputLen bigger than state");for(let h=0;h<u;h++)f.setUint32(4*h,y[h],s)}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:t,buffer:r,length:o,finished:s,destroyed:c,pos:f}=this;return e.length=o,e.pos=f,e.finished=s,e.destroyed=c,o%t&&e.buffer.set(r),e}}const Be=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Q=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),J=new Uint32Array(64);class ve extends Ee{constructor(){super(64,32,8,!1),this.A=Q[0]|0,this.B=Q[1]|0,this.C=Q[2]|0,this.D=Q[3]|0,this.E=Q[4]|0,this.F=Q[5]|0,this.G=Q[6]|0,this.H=Q[7]|0}get(){const{A:e,B:t,C:r,D:o,E:s,F:c,G:f,H:i}=this;return[e,t,r,o,s,c,f,i]}set(e,t,r,o,s,c,f,i){this.A=e|0,this.B=t|0,this.C=r|0,this.D=o|0,this.E=s|0,this.F=c|0,this.G=f|0,this.H=i|0}process(e,t){for(let h=0;h<16;h++,t+=4)J[h]=e.getUint32(t,!1);for(let h=16;h<64;h++){const l=J[h-15],m=J[h-2],N=D(l,7)^D(l,18)^l>>>3,b=D(m,17)^D(m,19)^m>>>10;J[h]=b+J[h-7]+N+J[h-16]|0}let{A:r,B:o,C:s,D:c,E:f,F:i,G:u,H:y}=this;for(let h=0;h<64;h++){const l=D(f,6)^D(f,11)^D(f,25),m=y+l+me(f,i,u)+Be[h]+J[h]|0,b=(D(r,2)^D(r,13)^D(r,22))+xe(r,o,s)|0;y=u,u=i,i=f,f=c+m|0,c=s,s=o,o=r,r=m+b|0}r=r+this.A|0,o=o+this.B|0,s=s+this.C|0,c=c+this.D|0,f=f+this.E|0,i=i+this.F|0,u=u+this.G|0,y=y+this.H|0,this.set(r,o,s,c,f,i,u,y)}roundClean(){J.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const Se=he(()=>new ve);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Ct=BigInt(0),Jt=BigInt(1),Ae=BigInt(2);function it(n){return n instanceof Uint8Array||ArrayBuffer.isView(n)&&n.constructor.name==="Uint8Array"}function yt(n){if(!it(n))throw new Error("Uint8Array expected")}function at(n,e){if(typeof e!="boolean")throw new Error(n+" boolean expected, got "+e)}const Ie=Array.from({length:256},(n,e)=>e.toString(16).padStart(2,"0"));function ut(n){yt(n);let e="";for(let t=0;t<n.length;t++)e+=Ie[n[t]];return e}function wt(n){const e=n.toString(16);return e.length&1?"0"+e:e}function Zt(n){if(typeof n!="string")throw new Error("hex string expected, got "+typeof n);return n===""?Ct:BigInt("0x"+n)}const G={_0:48,_9:57,A:65,F:70,a:97,f:102};function jt(n){if(n>=G._0&&n<=G._9)return n-G._0;if(n>=G.A&&n<=G.F)return n-(G.A-10);if(n>=G.a&&n<=G.f)return n-(G.a-10)}function pt(n){if(typeof n!="string")throw new Error("hex string expected, got "+typeof n);const e=n.length,t=e/2;if(e%2)throw new Error("hex string expected, got unpadded hex of length "+e);const r=new Uint8Array(t);for(let o=0,s=0;o<t;o++,s+=2){const c=jt(n.charCodeAt(s)),f=jt(n.charCodeAt(s+1));if(c===void 0||f===void 0){const i=n[s]+n[s+1];throw new Error('hex string expected, got non-hex character "'+i+'" at index '+s)}r[o]=c*16+f}return r}function rt(n){return Zt(ut(n))}function Rt(n){return yt(n),Zt(ut(Uint8Array.from(n).reverse()))}function lt(n,e){return pt(n.toString(16).padStart(e*2,"0"))}function Mt(n,e){return lt(n,e).reverse()}function K(n,e,t){let r;if(typeof e=="string")try{r=pt(e)}catch(s){throw new Error(n+" must be hex string or Uint8Array, cause: "+s)}else if(it(e))r=Uint8Array.from(e);else throw new Error(n+" must be hex string or Uint8Array");const o=r.length;if(typeof t=="number"&&o!==t)throw new Error(n+" of length "+t+" expected, got "+o);return r}function bt(...n){let e=0;for(let r=0;r<n.length;r++){const o=n[r];yt(o),e+=o.length}const t=new Uint8Array(e);for(let r=0,o=0;r<n.length;r++){const s=n[r];t.set(s,o),o+=s.length}return t}const It=n=>typeof n=="bigint"&&Ct<=n;function Bt(n,e,t){return It(n)&&It(e)&&It(t)&&e<=n&&n<t}function ot(n,e,t,r){if(!Bt(e,t,r))throw new Error("expected valid "+n+": "+t+" <= n < "+r+", got "+e)}function te(n){let e;for(e=0;n>Ct;n>>=Jt,e+=1);return e}const Vt=n=>(Ae<<BigInt(n-1))-Jt,Nt=n=>new Uint8Array(n),Yt=n=>Uint8Array.from(n);function ee(n,e,t){if(typeof n!="number"||n<2)throw new Error("hashLen must be a number");if(typeof e!="number"||e<2)throw new Error("qByteLen must be a number");if(typeof t!="function")throw new Error("hmacFn must be a function");let r=Nt(n),o=Nt(n),s=0;const c=()=>{r.fill(1),o.fill(0),s=0},f=(...h)=>t(o,r,...h),i=(h=Nt())=>{o=f(Yt([0]),h),r=f(),h.length!==0&&(o=f(Yt([1]),h),r=f())},u=()=>{if(s++>=1e3)throw new Error("drbg: tried 1000 values");let h=0;const l=[];for(;h<e;){r=f();const m=r.slice();l.push(m),h+=r.length}return bt(...l)};return(h,l)=>{c(),i(h);let m;for(;!(m=l(u()));)i();return c(),m}}const Ne={bigint:n=>typeof n=="bigint",function:n=>typeof n=="function",boolean:n=>typeof n=="boolean",string:n=>typeof n=="string",stringOrUint8Array:n=>typeof n=="string"||it(n),isSafeInteger:n=>Number.isSafeInteger(n),array:n=>Array.isArray(n),field:(n,e)=>e.Fp.isValid(n),hash:n=>typeof n=="function"&&Number.isSafeInteger(n.outputLen)};function mt(n,e,t={}){const r=(o,s,c)=>{const f=Ne[s];if(typeof f!="function")throw new Error("invalid validator function");const i=n[o];if(!(c&&i===void 0)&&!f(i,n))throw new Error("param "+String(o)+" is invalid. Expected "+s+", got "+i)};for(const[o,s]of Object.entries(e))r(o,s,!1);for(const[o,s]of Object.entries(t))r(o,s,!0);return n}function _t(n){const e=new WeakMap;return(t,...r)=>{const o=e.get(t);if(o!==void 0)return o;const s=n(t,...r);return e.set(t,s),s}}const qe=Object.freeze(Object.defineProperty({__proto__:null,aInRange:ot,abool:at,abytes:yt,bitLen:te,bitMask:Vt,bytesToHex:ut,bytesToNumberBE:rt,bytesToNumberLE:Rt,concatBytes:bt,createHmacDrbg:ee,ensureBytes:K,hexToBytes:pt,hexToNumber:Zt,inRange:Bt,isBytes:it,memoized:_t,numberToBytesBE:lt,numberToBytesLE:Mt,numberToHexUnpadded:wt,validateObject:mt},Symbol.toStringTag,{value:"Module"}));class ne extends Xt{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,ge(e);const r=Qt(t);if(this.iHash=e.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const o=this.blockLen,s=new Uint8Array(o);s.set(r.length>o?e.create().update(r).digest():r);for(let c=0;c<s.length;c++)s[c]^=54;this.iHash.update(s),this.oHash=e.create();for(let c=0;c<s.length;c++)s[c]^=106;this.oHash.update(s),s.fill(0)}update(e){return Et(this),this.iHash.update(e),this}digestInto(e){Et(this),we(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:t,iHash:r,finished:o,destroyed:s,blockLen:c,outputLen:f}=this;return e=e,e.finished=o,e.destroyed=s,e.blockLen=c,e.outputLen=f,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const re=(n,e,t)=>new ne(n,e).update(t).digest();re.create=(n,e)=>new ne(n,e);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const z=BigInt(0),U=BigInt(1),nt=BigInt(2),Oe=BigInt(3),Ut=BigInt(4),Ft=BigInt(5),Kt=BigInt(8);function V(n,e){const t=n%e;return t>=z?t:e+t}function Le(n,e,t){if(e<z)throw new Error("invalid exponent, negatives unsupported");if(t<=z)throw new Error("invalid modulus");if(t===U)return z;let r=U;for(;e>z;)e&U&&(r=r*n%t),n=n*n%t,e>>=U;return r}function Y(n,e,t){let r=n;for(;e-- >z;)r*=r,r%=t;return r}function kt(n,e){if(n===z)throw new Error("invert: expected non-zero number");if(e<=z)throw new Error("invert: expected positive modulus, got "+e);let t=V(n,e),r=e,o=z,s=U;for(;t!==z;){const f=r/t,i=r%t,u=o-s*f;r=t,t=i,o=s,s=u}if(r!==U)throw new Error("invert: does not exist");return V(o,e)}function He(n){const e=(n-U)/nt;let t,r,o;for(t=n-U,r=0;t%nt===z;t/=nt,r++);for(o=nt;o<n&&Le(o,e,n)!==n-U;o++)if(o>1e3)throw new Error("Cannot find square root: likely non-prime P");if(r===1){const c=(n+U)/Ut;return function(i,u){const y=i.pow(u,c);if(!i.eql(i.sqr(y),u))throw new Error("Cannot find square root");return y}}const s=(t+U)/nt;return function(f,i){if(f.pow(i,e)===f.neg(f.ONE))throw new Error("Cannot find square root");let u=r,y=f.pow(f.mul(f.ONE,o),t),h=f.pow(i,s),l=f.pow(i,t);for(;!f.eql(l,f.ONE);){if(f.eql(l,f.ZERO))return f.ZERO;let m=1;for(let b=f.sqr(l);m<u&&!f.eql(b,f.ONE);m++)b=f.sqr(b);const N=f.pow(y,U<<BigInt(u-m-1));y=f.sqr(N),h=f.mul(h,N),l=f.mul(l,y),u=m}return h}}function _e(n){if(n%Ut===Oe){const e=(n+U)/Ut;return function(r,o){const s=r.pow(o,e);if(!r.eql(r.sqr(s),o))throw new Error("Cannot find square root");return s}}if(n%Kt===Ft){const e=(n-Ft)/Kt;return function(r,o){const s=r.mul(o,nt),c=r.pow(s,e),f=r.mul(o,c),i=r.mul(r.mul(f,nt),c),u=r.mul(f,r.sub(i,r.ONE));if(!r.eql(r.sqr(u),o))throw new Error("Cannot find square root");return u}}return He(n)}const Ue=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function ke(n){const e={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},t=Ue.reduce((r,o)=>(r[o]="function",r),e);return mt(n,t)}function Te(n,e,t){if(t<z)throw new Error("invalid exponent, negatives unsupported");if(t===z)return n.ONE;if(t===U)return e;let r=n.ONE,o=e;for(;t>z;)t&U&&(r=n.mul(r,o)),o=n.sqr(o),t>>=U;return r}function ze(n,e){const t=new Array(e.length),r=e.reduce((s,c,f)=>n.is0(c)?s:(t[f]=s,n.mul(s,c)),n.ONE),o=n.inv(r);return e.reduceRight((s,c,f)=>n.is0(c)?s:(t[f]=n.mul(s,t[f]),n.mul(s,c)),o),t}function oe(n,e){const t=e!==void 0?e:n.toString(2).length,r=Math.ceil(t/8);return{nBitLength:t,nByteLength:r}}function ie(n,e,t=!1,r={}){if(n<=z)throw new Error("invalid field: expected ORDER > 0, got "+n);const{nBitLength:o,nByteLength:s}=oe(n,e);if(s>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let c;const f=Object.freeze({ORDER:n,isLE:t,BITS:o,BYTES:s,MASK:Vt(o),ZERO:z,ONE:U,create:i=>V(i,n),isValid:i=>{if(typeof i!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof i);return z<=i&&i<n},is0:i=>i===z,isOdd:i=>(i&U)===U,neg:i=>V(-i,n),eql:(i,u)=>i===u,sqr:i=>V(i*i,n),add:(i,u)=>V(i+u,n),sub:(i,u)=>V(i-u,n),mul:(i,u)=>V(i*u,n),pow:(i,u)=>Te(f,i,u),div:(i,u)=>V(i*kt(u,n),n),sqrN:i=>i*i,addN:(i,u)=>i+u,subN:(i,u)=>i-u,mulN:(i,u)=>i*u,inv:i=>kt(i,n),sqrt:r.sqrt||(i=>(c||(c=_e(n)),c(f,i))),invertBatch:i=>ze(f,i),cmov:(i,u,y)=>y?u:i,toBytes:i=>t?Mt(i,s):lt(i,s),fromBytes:i=>{if(i.length!==s)throw new Error("Field.fromBytes: expected "+s+" bytes, got "+i.length);return t?Rt(i):rt(i)}});return Object.freeze(f)}function se(n){if(typeof n!="bigint")throw new Error("field order must be bigint");const e=n.toString(2).length;return Math.ceil(e/8)}function ce(n){const e=se(n);return e+Math.ceil(e/2)}function Ce(n,e,t=!1){const r=n.length,o=se(e),s=ce(e);if(r<16||r<s||r>1024)throw new Error("expected "+s+"-1024 bytes of input, got "+r);const c=t?Rt(n):rt(n),f=V(c,e-U)+U;return t?Mt(f,o):lt(f,o)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Dt=BigInt(0),xt=BigInt(1);function qt(n,e){const t=e.negate();return n?t:e}function fe(n,e){if(!Number.isSafeInteger(n)||n<=0||n>e)throw new Error("invalid window size, expected [1.."+e+"], got W="+n)}function Ot(n,e){fe(n,e);const t=Math.ceil(e/n)+1,r=2**(n-1);return{windows:t,windowSize:r}}function Ze(n,e){if(!Array.isArray(n))throw new Error("array expected");n.forEach((t,r)=>{if(!(t instanceof e))throw new Error("invalid point at index "+r)})}function Re(n,e){if(!Array.isArray(n))throw new Error("array of scalars expected");n.forEach((t,r)=>{if(!e.isValid(t))throw new Error("invalid scalar at index "+r)})}const Lt=new WeakMap,ae=new WeakMap;function Ht(n){return ae.get(n)||1}function Me(n,e){return{constTimeNegate:qt,hasPrecomputes(t){return Ht(t)!==1},unsafeLadder(t,r,o=n.ZERO){let s=t;for(;r>Dt;)r&xt&&(o=o.add(s)),s=s.double(),r>>=xt;return o},precomputeWindow(t,r){const{windows:o,windowSize:s}=Ot(r,e),c=[];let f=t,i=f;for(let u=0;u<o;u++){i=f,c.push(i);for(let y=1;y<s;y++)i=i.add(f),c.push(i);f=i.double()}return c},wNAF(t,r,o){const{windows:s,windowSize:c}=Ot(t,e);let f=n.ZERO,i=n.BASE;const u=BigInt(2**t-1),y=2**t,h=BigInt(t);for(let l=0;l<s;l++){const m=l*c;let N=Number(o&u);o>>=h,N>c&&(N-=y,o+=xt);const b=m,a=m+Math.abs(N)-1,g=l%2!==0,x=N<0;N===0?i=i.add(qt(g,r[b])):f=f.add(qt(x,r[a]))}return{p:f,f:i}},wNAFUnsafe(t,r,o,s=n.ZERO){const{windows:c,windowSize:f}=Ot(t,e),i=BigInt(2**t-1),u=2**t,y=BigInt(t);for(let h=0;h<c;h++){const l=h*f;if(o===Dt)break;let m=Number(o&i);if(o>>=y,m>f&&(m-=u,o+=xt),m===0)continue;let N=r[l+Math.abs(m)-1];m<0&&(N=N.negate()),s=s.add(N)}return s},getPrecomputes(t,r,o){let s=Lt.get(r);return s||(s=this.precomputeWindow(r,t),t!==1&&Lt.set(r,o(s))),s},wNAFCached(t,r,o){const s=Ht(t);return this.wNAF(s,this.getPrecomputes(s,t,o),r)},wNAFCachedUnsafe(t,r,o,s){const c=Ht(t);return c===1?this.unsafeLadder(t,r,s):this.wNAFUnsafe(c,this.getPrecomputes(c,t,o),r,s)},setWindowSize(t,r){fe(r,e),ae.set(t,r),Lt.delete(t)}}}function Ve(n,e,t,r){if(Ze(t,n),Re(r,e),t.length!==r.length)throw new Error("arrays of points and scalars must have equal length");const o=n.ZERO,s=te(BigInt(t.length)),c=s>12?s-3:s>4?s-2:s?2:1,f=(1<<c)-1,i=new Array(f+1).fill(o),u=Math.floor((e.BITS-1)/c)*c;let y=o;for(let h=u;h>=0;h-=c){i.fill(o);for(let m=0;m<r.length;m++){const N=r[m],b=Number(N>>BigInt(h)&BigInt(f));i[b]=i[b].add(t[m])}let l=o;for(let m=i.length-1,N=o;m>0;m--)N=N.add(i[m]),l=l.add(N);if(y=y.add(l),h!==0)for(let m=0;m<c;m++)y=y.double()}return y}function ue(n){return ke(n.Fp),mt(n,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...oe(n.n,n.nBitLength),...n,p:n.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Pt(n){n.lowS!==void 0&&at("lowS",n.lowS),n.prehash!==void 0&&at("prehash",n.prehash)}function je(n){const e=ue(n);mt(e,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:t,Fp:r,a:o}=e;if(t){if(!r.eql(o,r.ZERO))throw new Error("invalid endomorphism, can only be defined for Koblitz curves that have a=0");if(typeof t!="object"||typeof t.beta!="bigint"||typeof t.splitScalar!="function")throw new Error("invalid endomorphism, expected beta: bigint and splitScalar: function")}return Object.freeze({...e})}const{bytesToNumberBE:Ye,hexToBytes:Fe}=qe;class Ke extends Error{constructor(e=""){super(e)}}const $={Err:Ke,_tlv:{encode:(n,e)=>{const{Err:t}=$;if(n<0||n>256)throw new t("tlv.encode: wrong tag");if(e.length&1)throw new t("tlv.encode: unpadded data");const r=e.length/2,o=wt(r);if(o.length/2&128)throw new t("tlv.encode: long form length too big");const s=r>127?wt(o.length/2|128):"";return wt(n)+s+o+e},decode(n,e){const{Err:t}=$;let r=0;if(n<0||n>256)throw new t("tlv.encode: wrong tag");if(e.length<2||e[r++]!==n)throw new t("tlv.decode: wrong tlv");const o=e[r++],s=!!(o&128);let c=0;if(!s)c=o;else{const i=o&127;if(!i)throw new t("tlv.decode(long): indefinite length not supported");if(i>4)throw new t("tlv.decode(long): byte length is too big");const u=e.subarray(r,r+i);if(u.length!==i)throw new t("tlv.decode: length bytes not complete");if(u[0]===0)throw new t("tlv.decode(long): zero leftmost byte");for(const y of u)c=c<<8|y;if(r+=i,c<128)throw new t("tlv.decode(long): not minimal encoding")}const f=e.subarray(r,r+c);if(f.length!==c)throw new t("tlv.decode: wrong value length");return{v:f,l:e.subarray(r+c)}}},_int:{encode(n){const{Err:e}=$;if(n<W)throw new e("integer: negative integers are not allowed");let t=wt(n);if(Number.parseInt(t[0],16)&8&&(t="00"+t),t.length&1)throw new e("unexpected DER parsing assertion: unpadded hex");return t},decode(n){const{Err:e}=$;if(n[0]&128)throw new e("invalid signature integer: negative");if(n[0]===0&&!(n[1]&128))throw new e("invalid signature integer: unnecessary leading zero");return Ye(n)}},toSig(n){const{Err:e,_int:t,_tlv:r}=$,o=typeof n=="string"?Fe(n):n;yt(o);const{v:s,l:c}=r.decode(48,o);if(c.length)throw new e("invalid signature: left bytes after parsing");const{v:f,l:i}=r.decode(2,s),{v:u,l:y}=r.decode(2,i);if(y.length)throw new e("invalid signature: left bytes after parsing");return{r:t.decode(f),s:t.decode(u)}},hexFromSig(n){const{_tlv:e,_int:t}=$,r=e.encode(2,t.encode(n.r)),o=e.encode(2,t.encode(n.s)),s=r+o;return e.encode(48,s)}},W=BigInt(0),T=BigInt(1);BigInt(2);const Gt=BigInt(3);BigInt(4);function De(n){const e=je(n),{Fp:t}=e,r=ie(e.n,e.nBitLength),o=e.toBytes||((b,a,g)=>{const x=a.toAffine();return bt(Uint8Array.from([4]),t.toBytes(x.x),t.toBytes(x.y))}),s=e.fromBytes||(b=>{const a=b.subarray(1),g=t.fromBytes(a.subarray(0,t.BYTES)),x=t.fromBytes(a.subarray(t.BYTES,2*t.BYTES));return{x:g,y:x}});function c(b){const{a,b:g}=e,x=t.sqr(b),E=t.mul(x,b);return t.add(t.add(E,t.mul(b,a)),g)}if(!t.eql(t.sqr(e.Gy),c(e.Gx)))throw new Error("bad generator point: equation left != right");function f(b){return Bt(b,T,e.n)}function i(b){const{allowedPrivateKeyLengths:a,nByteLength:g,wrapPrivateKey:x,n:E}=e;if(a&&typeof b!="bigint"){if(it(b)&&(b=ut(b)),typeof b!="string"||!a.includes(b.length))throw new Error("invalid private key");b=b.padStart(g*2,"0")}let q;try{q=typeof b=="bigint"?b:rt(K("private key",b,g))}catch{throw new Error("invalid private key, expected hex or "+g+" bytes, got "+typeof b)}return x&&(q=V(q,E)),ot("private key",q,T,E),q}function u(b){if(!(b instanceof l))throw new Error("ProjectivePoint expected")}const y=_t((b,a)=>{const{px:g,py:x,pz:E}=b;if(t.eql(E,t.ONE))return{x:g,y:x};const q=b.is0();a==null&&(a=q?t.ONE:t.inv(E));const L=t.mul(g,a),I=t.mul(x,a),B=t.mul(E,a);if(q)return{x:t.ZERO,y:t.ZERO};if(!t.eql(B,t.ONE))throw new Error("invZ was invalid");return{x:L,y:I}}),h=_t(b=>{if(b.is0()){if(e.allowInfinityPoint&&!t.is0(b.py))return;throw new Error("bad point: ZERO")}const{x:a,y:g}=b.toAffine();if(!t.isValid(a)||!t.isValid(g))throw new Error("bad point: x or y not FE");const x=t.sqr(g),E=c(a);if(!t.eql(x,E))throw new Error("bad point: equation left != right");if(!b.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});class l{constructor(a,g,x){if(this.px=a,this.py=g,this.pz=x,a==null||!t.isValid(a))throw new Error("x required");if(g==null||!t.isValid(g))throw new Error("y required");if(x==null||!t.isValid(x))throw new Error("z required");Object.freeze(this)}static fromAffine(a){const{x:g,y:x}=a||{};if(!a||!t.isValid(g)||!t.isValid(x))throw new Error("invalid affine point");if(a instanceof l)throw new Error("projective point not allowed");const E=q=>t.eql(q,t.ZERO);return E(g)&&E(x)?l.ZERO:new l(g,x,t.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(a){const g=t.invertBatch(a.map(x=>x.pz));return a.map((x,E)=>x.toAffine(g[E])).map(l.fromAffine)}static fromHex(a){const g=l.fromAffine(s(K("pointHex",a)));return g.assertValidity(),g}static fromPrivateKey(a){return l.BASE.multiply(i(a))}static msm(a,g){return Ve(l,r,a,g)}_setWindowSize(a){N.setWindowSize(this,a)}assertValidity(){h(this)}hasEvenY(){const{y:a}=this.toAffine();if(t.isOdd)return!t.isOdd(a);throw new Error("Field doesn't support isOdd")}equals(a){u(a);const{px:g,py:x,pz:E}=this,{px:q,py:L,pz:I}=a,B=t.eql(t.mul(g,I),t.mul(q,E)),A=t.eql(t.mul(x,I),t.mul(L,E));return B&&A}negate(){return new l(this.px,t.neg(this.py),this.pz)}double(){const{a,b:g}=e,x=t.mul(g,Gt),{px:E,py:q,pz:L}=this;let I=t.ZERO,B=t.ZERO,A=t.ZERO,v=t.mul(E,E),C=t.mul(q,q),_=t.mul(L,L),H=t.mul(E,q);return H=t.add(H,H),A=t.mul(E,L),A=t.add(A,A),I=t.mul(a,A),B=t.mul(x,_),B=t.add(I,B),I=t.sub(C,B),B=t.add(C,B),B=t.mul(I,B),I=t.mul(H,I),A=t.mul(x,A),_=t.mul(a,_),H=t.sub(v,_),H=t.mul(a,H),H=t.add(H,A),A=t.add(v,v),v=t.add(A,v),v=t.add(v,_),v=t.mul(v,H),B=t.add(B,v),_=t.mul(q,L),_=t.add(_,_),v=t.mul(_,H),I=t.sub(I,v),A=t.mul(_,C),A=t.add(A,A),A=t.add(A,A),new l(I,B,A)}add(a){u(a);const{px:g,py:x,pz:E}=this,{px:q,py:L,pz:I}=a;let B=t.ZERO,A=t.ZERO,v=t.ZERO;const C=e.a,_=t.mul(e.b,Gt);let H=t.mul(g,q),j=t.mul(x,L),d=t.mul(E,I),w=t.add(g,x),p=t.add(q,L);w=t.mul(w,p),p=t.add(H,j),w=t.sub(w,p),p=t.add(g,E);let S=t.add(q,I);return p=t.mul(p,S),S=t.add(H,d),p=t.sub(p,S),S=t.add(x,E),B=t.add(L,I),S=t.mul(S,B),B=t.add(j,d),S=t.sub(S,B),v=t.mul(C,p),B=t.mul(_,d),v=t.add(B,v),B=t.sub(j,v),v=t.add(j,v),A=t.mul(B,v),j=t.add(H,H),j=t.add(j,H),d=t.mul(C,d),p=t.mul(_,p),j=t.add(j,d),d=t.sub(H,d),d=t.mul(C,d),p=t.add(p,d),H=t.mul(j,p),A=t.add(A,H),H=t.mul(S,p),B=t.mul(w,B),B=t.sub(B,H),H=t.mul(w,j),v=t.mul(S,v),v=t.add(v,H),new l(B,A,v)}subtract(a){return this.add(a.negate())}is0(){return this.equals(l.ZERO)}wNAF(a){return N.wNAFCached(this,a,l.normalizeZ)}multiplyUnsafe(a){const{endo:g,n:x}=e;ot("scalar",a,W,x);const E=l.ZERO;if(a===W)return E;if(this.is0()||a===T)return this;if(!g||N.hasPrecomputes(this))return N.wNAFCachedUnsafe(this,a,l.normalizeZ);let{k1neg:q,k1:L,k2neg:I,k2:B}=g.splitScalar(a),A=E,v=E,C=this;for(;L>W||B>W;)L&T&&(A=A.add(C)),B&T&&(v=v.add(C)),C=C.double(),L>>=T,B>>=T;return q&&(A=A.negate()),I&&(v=v.negate()),v=new l(t.mul(v.px,g.beta),v.py,v.pz),A.add(v)}multiply(a){const{endo:g,n:x}=e;ot("scalar",a,T,x);let E,q;if(g){const{k1neg:L,k1:I,k2neg:B,k2:A}=g.splitScalar(a);let{p:v,f:C}=this.wNAF(I),{p:_,f:H}=this.wNAF(A);v=N.constTimeNegate(L,v),_=N.constTimeNegate(B,_),_=new l(t.mul(_.px,g.beta),_.py,_.pz),E=v.add(_),q=C.add(H)}else{const{p:L,f:I}=this.wNAF(a);E=L,q=I}return l.normalizeZ([E,q])[0]}multiplyAndAddUnsafe(a,g,x){const E=l.BASE,q=(I,B)=>B===W||B===T||!I.equals(E)?I.multiplyUnsafe(B):I.multiply(B),L=q(this,g).add(q(a,x));return L.is0()?void 0:L}toAffine(a){return y(this,a)}isTorsionFree(){const{h:a,isTorsionFree:g}=e;if(a===T)return!0;if(g)return g(l,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:a,clearCofactor:g}=e;return a===T?this:g?g(l,this):this.multiplyUnsafe(e.h)}toRawBytes(a=!0){return at("isCompressed",a),this.assertValidity(),o(l,this,a)}toHex(a=!0){return at("isCompressed",a),ut(this.toRawBytes(a))}}l.BASE=new l(e.Gx,e.Gy,t.ONE),l.ZERO=new l(t.ZERO,t.ONE,t.ZERO);const m=e.nBitLength,N=Me(l,e.endo?Math.ceil(m/2):m);return{CURVE:e,ProjectivePoint:l,normPrivateKeyToScalar:i,weierstrassEquation:c,isWithinCurveOrder:f}}function Pe(n){const e=ue(n);return mt(e,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...e})}function Ge(n){const e=Pe(n),{Fp:t,n:r}=e,o=t.BYTES+1,s=2*t.BYTES+1;function c(d){return V(d,r)}function f(d){return kt(d,r)}const{ProjectivePoint:i,normPrivateKeyToScalar:u,weierstrassEquation:y,isWithinCurveOrder:h}=De({...e,toBytes(d,w,p){const S=w.toAffine(),O=t.toBytes(S.x),k=bt;return at("isCompressed",p),p?k(Uint8Array.from([w.hasEvenY()?2:3]),O):k(Uint8Array.from([4]),O,t.toBytes(S.y))},fromBytes(d){const w=d.length,p=d[0],S=d.subarray(1);if(w===o&&(p===2||p===3)){const O=rt(S);if(!Bt(O,T,t.ORDER))throw new Error("Point is not on curve");const k=y(O);let R;try{R=t.sqrt(k)}catch(F){const M=F instanceof Error?": "+F.message:"";throw new Error("Point is not on curve"+M)}const Z=(R&T)===T;return(p&1)===1!==Z&&(R=t.neg(R)),{x:O,y:R}}else if(w===s&&p===4){const O=t.fromBytes(S.subarray(0,t.BYTES)),k=t.fromBytes(S.subarray(t.BYTES,2*t.BYTES));return{x:O,y:k}}else{const O=o,k=s;throw new Error("invalid Point, expected length of "+O+", or uncompressed "+k+", got "+w)}}}),l=d=>ut(lt(d,e.nByteLength));function m(d){const w=r>>T;return d>w}function N(d){return m(d)?c(-d):d}const b=(d,w,p)=>rt(d.slice(w,p));class a{constructor(w,p,S){this.r=w,this.s=p,this.recovery=S,this.assertValidity()}static fromCompact(w){const p=e.nByteLength;return w=K("compactSignature",w,p*2),new a(b(w,0,p),b(w,p,2*p))}static fromDER(w){const{r:p,s:S}=$.toSig(K("DER",w));return new a(p,S)}assertValidity(){ot("r",this.r,T,r),ot("s",this.s,T,r)}addRecoveryBit(w){return new a(this.r,this.s,w)}recoverPublicKey(w){const{r:p,s:S,recovery:O}=this,k=I(K("msgHash",w));if(O==null||![0,1,2,3].includes(O))throw new Error("recovery id invalid");const R=O===2||O===3?p+e.n:p;if(R>=t.ORDER)throw new Error("recovery id 2 or 3 invalid");const Z=(O&1)===0?"02":"03",P=i.fromHex(Z+l(R)),F=f(R),M=c(-k*F),st=c(S*F),X=i.BASE.multiplyAndAddUnsafe(P,M,st);if(!X)throw new Error("point at infinify");return X.assertValidity(),X}hasHighS(){return m(this.s)}normalizeS(){return this.hasHighS()?new a(this.r,c(-this.s),this.recovery):this}toDERRawBytes(){return pt(this.toDERHex())}toDERHex(){return $.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return pt(this.toCompactHex())}toCompactHex(){return l(this.r)+l(this.s)}}const g={isValidPrivateKey(d){try{return u(d),!0}catch{return!1}},normPrivateKeyToScalar:u,randomPrivateKey:()=>{const d=ce(e.n);return Ce(e.randomBytes(d),e.n)},precompute(d=8,w=i.BASE){return w._setWindowSize(d),w.multiply(BigInt(3)),w}};function x(d,w=!0){return i.fromPrivateKey(d).toRawBytes(w)}function E(d){const w=it(d),p=typeof d=="string",S=(w||p)&&d.length;return w?S===o||S===s:p?S===2*o||S===2*s:d instanceof i}function q(d,w,p=!0){if(E(d))throw new Error("first arg must be private key");if(!E(w))throw new Error("second arg must be public key");return i.fromHex(w).multiply(u(d)).toRawBytes(p)}const L=e.bits2int||function(d){if(d.length>8192)throw new Error("input is too large");const w=rt(d),p=d.length*8-e.nBitLength;return p>0?w>>BigInt(p):w},I=e.bits2int_modN||function(d){return c(L(d))},B=Vt(e.nBitLength);function A(d){return ot("num < 2^"+e.nBitLength,d,W,B),lt(d,e.nByteLength)}function v(d,w,p=C){if(["recovered","canonical"].some(tt=>tt in p))throw new Error("sign() legacy options not supported");const{hash:S,randomBytes:O}=e;let{lowS:k,prehash:R,extraEntropy:Z}=p;k==null&&(k=!0),d=K("msgHash",d),Pt(p),R&&(d=K("prehashed msgHash",S(d)));const P=I(d),F=u(w),M=[A(F),A(P)];if(Z!=null&&Z!==!1){const tt=Z===!0?O(t.BYTES):Z;M.push(K("extraEntropy",tt))}const st=bt(...M),X=P;function vt(tt){const ct=L(tt);if(!h(ct))return;const St=f(ct),dt=i.BASE.multiply(ct).toAffine(),et=c(dt.x);if(et===W)return;const ht=c(St*c(X+et*F));if(ht===W)return;let gt=(dt.x===et?0:2)|Number(dt.y&T),ft=ht;return k&&m(ht)&&(ft=N(ht),gt^=1),new a(et,ft,gt)}return{seed:st,k2sig:vt}}const C={lowS:e.lowS,prehash:!1},_={lowS:e.lowS,prehash:!1};function H(d,w,p=C){const{seed:S,k2sig:O}=v(d,w,p),k=e;return ee(k.hash.outputLen,k.nByteLength,k.hmac)(S,O)}i.BASE._setWindowSize(8);function j(d,w,p,S=_){var gt;const O=d;w=K("msgHash",w),p=K("publicKey",p);const{lowS:k,prehash:R,format:Z}=S;if(Pt(S),"strict"in S)throw new Error("options.strict was renamed to lowS");if(Z!==void 0&&Z!=="compact"&&Z!=="der")throw new Error("format must be compact or der");const P=typeof O=="string"||it(O),F=!P&&!Z&&typeof O=="object"&&O!==null&&typeof O.r=="bigint"&&typeof O.s=="bigint";if(!P&&!F)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let M,st;try{if(F&&(M=new a(O.r,O.s)),P){try{Z!=="compact"&&(M=a.fromDER(O))}catch(ft){if(!(ft instanceof $.Err))throw ft}!M&&Z!=="der"&&(M=a.fromCompact(O))}st=i.fromHex(p)}catch{return!1}if(!M||k&&M.hasHighS())return!1;R&&(w=e.hash(w));const{r:X,s:vt}=M,tt=I(w),ct=f(vt),St=c(tt*ct),dt=c(X*ct),et=(gt=i.BASE.multiplyAndAddUnsafe(st,St,dt))==null?void 0:gt.toAffine();return et?c(et.x)===X:!1}return{CURVE:e,getPublicKey:x,getSharedSecret:q,sign:H,verify:j,ProjectivePoint:i,Signature:a,utils:g}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function $e(n){return{hash:n,hmac:(e,...t)=>re(n,e,be(...t)),randomBytes:pe}}function We(n,e){const t=r=>Ge({...n,...$e(r)});return{...t(e),create:t}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const le=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),$t=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Xe=BigInt(1),Tt=BigInt(2),Wt=(n,e)=>(n+e/Tt)/e;function Qe(n){const e=le,t=BigInt(3),r=BigInt(6),o=BigInt(11),s=BigInt(22),c=BigInt(23),f=BigInt(44),i=BigInt(88),u=n*n*n%e,y=u*u*n%e,h=Y(y,t,e)*y%e,l=Y(h,t,e)*y%e,m=Y(l,Tt,e)*u%e,N=Y(m,o,e)*m%e,b=Y(N,s,e)*N%e,a=Y(b,f,e)*b%e,g=Y(a,i,e)*a%e,x=Y(g,f,e)*b%e,E=Y(x,t,e)*y%e,q=Y(E,c,e)*N%e,L=Y(q,r,e)*u%e,I=Y(L,Tt,e);if(!zt.eql(zt.sqr(I),n))throw new Error("Cannot find square root");return I}const zt=ie(le,void 0,void 0,{sqrt:Qe}),Je=We({a:BigInt(0),b:BigInt(7),Fp:zt,n:$t,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:n=>{const e=$t,t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-Xe*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),o=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),s=t,c=BigInt("0x100000000000000000000000000000000"),f=Wt(s*n,e),i=Wt(-r*n,e);let u=V(n-f*t-i*o,e),y=V(-f*r-i*s,e);const h=u>c,l=y>c;if(h&&(u=e-u),l&&(y=e-y),u>c||y>c)throw new Error("splitScalar: Endomorphism failed, k="+n);return{k1neg:h,k1:u,k2neg:l,k2:y}}}},Se);BigInt(0);Je.ProjectivePoint;export{Je as secp256k1};
|
|
2
|
+
//# sourceMappingURL=secp256k1-0pYvee0N.js.map
|