@dcl/shop 1.12.2-34948836375.commit-6cf32c8 → 1.12.2-34952267751.commit-238b526
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-J2iy4jC2.js → Activity-siWjYXXC.js} +4 -4
- package/_assets/{AnimatedBackground-CZSQraQ0.js → AnimatedBackground-BugetQOT.js} +2 -2
- package/_assets/{Assets-rO2myygc.js → Assets-DlgKLJ-E.js} +3 -3
- package/_assets/{Authorizations-RQz4v6iB.js → Authorizations-BbD7n7VP.js} +2 -2
- package/_assets/{Cart-DdbsSYxC.js → Cart-C2JINVsV.js} +2 -2
- package/_assets/{Collection-9Z2j-rTm.js → Collection--VRQWagp.js} +2 -2
- package/_assets/{CollectionCarousel-p9BPJONR.js → CollectionCarousel-DJ22bLsm.js} +3 -3
- package/_assets/{Confetti-BGVbEJbR.js → Confetti-upwjxWRl.js} +4 -4
- package/_assets/{ConstantsUtil-Bp-pnAsz.js → ConstantsUtil-CVlcVbe3.js} +2 -2
- package/_assets/{ContentClient-DTRb9-5C.js → ContentClient-DFKBUKq9.js} +2 -2
- package/_assets/{Creator-BJL4gekm.js → Creator-CnvTIUIR.js} +2 -2
- package/_assets/{DeploymentBuilder-Cjkaft-R.js → DeploymentBuilder-B0_Tu7hd.js} +2 -2
- package/_assets/{EmotePlaybackBar-BPKSzBrx.js → EmotePlaybackBar-r2Vm5Com.js} +3 -3
- package/_assets/{ErrorNotice-nSEXNWXK.js → ErrorNotice-DdXfJJQ5.js} +2 -2
- package/_assets/{Event-mTDtnPdT.js → Event-Di_H3_8X.js} +2 -2
- package/_assets/{ExchangeController-D8uwDzSY.js → ExchangeController-CDFzZYyn.js} +2 -2
- package/_assets/{Faq-CVMMGesq.js → Faq-C6G9icRA.js} +2 -2
- package/_assets/{GetCredits-B-d63Asa.js → GetCredits-C3TmZRkA.js} +2 -2
- package/_assets/{Grow-DpxGM69E.js → Grow-eSBVpy87.js} +2 -2
- package/_assets/{HelpersUtil-CA8woQfF.js → HelpersUtil-DX5u_vH_.js} +2 -2
- package/_assets/{ItemDetail-Bxxs1KIm.js → ItemDetail-D-qm5dRj.js} +25 -25
- package/_assets/{LoadMore-Cr-mnVTu.js → LoadMore-D-sqkeqn.js} +2 -2
- package/_assets/{ManaPricingBanner.styles-CuFOcVnZ.js → ManaPricingBanner.styles-C7DuwIf7.js} +2 -2
- package/_assets/{MyAssets-CIl-ZNFw.js → MyAssets-D-74TXj0.js} +2 -2
- package/_assets/{MyFavorites-CONQ86Ux.js → MyFavorites-BrahbeXJ.js} +2 -2
- package/_assets/{NetworkUtil-ida2KYao.js → NetworkUtil-Clofb_T-.js} +2 -2
- package/_assets/{NotFound-Cjy5dUWa.js → NotFound-C2zk4xTg.js} +2 -2
- package/_assets/{NotificationsBell-CyOkbx1n.js → NotificationsBell-Dbe2NDDi.js} +2 -2
- package/_assets/{OutfitDetail-BsiAngXf.js → OutfitDetail-DNvTjhl5.js} +2 -2
- package/_assets/{OutfitPreview-CS5cySDc.js → OutfitPreview-CzJ7zFyn.js} +2 -2
- package/_assets/{OutfitStudio-D-FGJRNJ.js → OutfitStudio-BQmOHxV3.js} +2 -2
- package/_assets/{StoreSettings-DtLddUAS.js → StoreSettings-DXOqr7lc.js} +22 -22
- package/_assets/{Success--Ei6iKXI.js → Success-0aSNITFG.js} +2 -2
- package/_assets/{SwapController-BA5TjqZA.js → SwapController-B_2D4qoY.js} +2 -2
- package/_assets/{TradeService-DywJ4wNp.js → TradeService-7U6O3-yI.js} +2 -2
- package/_assets/{W3MFrameProviderSingleton-CmmiYZ9j.js → W3MFrameProviderSingleton-o4NRojJJ.js} +4 -4
- package/_assets/{WebCryptoP256-BPfgDNR9.js → WebCryptoP256-DcssHpK7.js} +2 -2
- package/_assets/{authorizations-D-BlJBCy.js → authorizations-BpA7J6nv.js} +2 -2
- package/_assets/{basic-D9ZT1BuA.js → basic-CU1kWM_B.js} +2 -2
- package/_assets/{biconomy-CZoSyrbX.js → biconomy-CG4oe_pD.js} +2 -2
- package/_assets/{browseLayout.styles-DXvUud3S.js → browseLayout.styles-4ap7kx9k.js} +2 -2
- package/_assets/{browser-ShmbZCwm.js → browser-CNhrcETW.js} +2 -2
- package/_assets/{browser-ponyfill-BNu_nbrj.js → browser-ponyfill-DnS23_qH.js} +2 -2
- package/_assets/{browser-DSALTQXN.js → browser-xz-gmjRJ.js} +2 -2
- package/_assets/{builder-g8RNS_Vg.js → builder-Uh_QHIQ6.js} +2 -2
- package/_assets/{buy-DTXSyPtH.js → buy-B5M_2UT-.js} +2 -2
- package/_assets/{buy-gasless-DiikOGgv.js → buy-gasless-By4UCL5G.js} +2 -2
- package/_assets/{categories-v7iHQh9a.js → categories-s25qDcz8.js} +2 -2
- package/_assets/{ccip-CWbNdN46.js → ccip-CfmbFrZH.js} +2 -2
- package/_assets/{ccip-DelhpKhz.js → ccip-DvbgVSwB.js} +2 -2
- package/_assets/{chains-tR4n3Rjk.js → chains-m-fvvDHS.js} +2 -2
- package/_assets/collectionPage.styles-CPno7D9g.js +41 -0
- package/_assets/{common-yKZODGdF.js → common-DxHICWNQ.js} +2 -2
- package/_assets/{controller-Bld7fSw_.js → controller-DqPjxg9H.js} +3 -3
- package/_assets/{core-D92-eur5.js → core-DoDkK-JQ.js} +5 -5
- package/_assets/{createSvgIcon-DxzmVGNY.js → createSvgIcon-AK7VRVN4.js} +2 -2
- package/_assets/{crumbs.styles-B0j-GlvV.js → crumbs.styles-BBOgiQ-V.js} +2 -2
- package/_assets/{custom-CZWdKBPL.js → custom-BnrdIOOX.js} +2 -2
- package/_assets/{data-capture-CX4kn4Xl.js → data-capture-B2_dizO_.js} +2 -2
- package/_assets/{dcl-schemas-BEn5-KfC.js → dcl-schemas-DU0vGMAi.js} +2 -2
- package/_assets/{decimals-E28v80-_.js → decimals-B3xpoTsT.js} +2 -2
- package/_assets/{decimals-epBomYJA.js → decimals-BGOT8ITj.js} +2 -2
- package/_assets/{detectExtension-CwKpcDtv.js → detectExtension-Lc4xlnmZ.js} +2 -2
- package/_assets/{disposePreview-DGzpJsbb.js → disposePreview-BnC_0-K_.js} +2 -2
- package/_assets/{email-BHBQRb65.js → email-CHpYsXDV.js} +2 -2
- package/_assets/{embedded-wallet-C6Gy4WTK.js → embedded-wallet-Bu8ad7yi.js} +2 -2
- package/_assets/{emotion-styled.browser.esm-BJIlADB7.js → emotion-styled.browser.esm-tLBNQtjX.js} +2 -2
- package/_assets/{engine-Yiha65AY.js → engine-WQ_PFTkV.js} +2 -2
- package/_assets/{errors-wEpZJGJP.js → errors-Bska53t6.js} +2 -2
- package/_assets/{estimate-l1-fee-CLftLGg-.js → estimate-l1-fee-CpYC06aO.js} +2 -2
- package/_assets/{eth_estimateGas-BectDuYc.js → eth_estimateGas-BQ8foI_n.js} +2 -2
- package/_assets/{eth_getStorageAt-1yhQzTuj.js → eth_getStorageAt-B6MCehWg.js} +2 -2
- package/_assets/{eth_getTransactionCount-D4KYioQk.js → eth_getTransactionCount-gXfe8bkr.js} +2 -2
- package/_assets/{ethereum-BaJC9L6n.js → ethereum-Csbrq78G.js} +2 -2
- package/_assets/{ethers-DsAoqs4p.js → ethers-DOxpBstR.js} +2 -2
- package/_assets/{events-Z3dAOhvY.js → events-CVTjJMET.js} +2 -2
- package/_assets/{execute-Dp67kIVB.js → execute-BNeM18Ox.js} +3 -3
- package/_assets/{extractIPFS-Cg7kPTyT.js → extractIPFS-YpxmKw9M.js} +2 -2
- package/_assets/{features-NLP5a5Tz.js → features-nCqFC4Hp.js} +2 -2
- package/_assets/{fetchTokenMetadata-DxlcVtmx.js → fetchTokenMetadata-Coko2qOP.js} +3 -3
- package/_assets/{field.styles-CZBu3L1V.js → field.styles-C0hP5Nvw.js} +2 -2
- package/_assets/{fortmatic-giGwlnqU.js → fortmatic-d2zOBJsV.js} +2 -2
- package/_assets/{get-bytecode-g7wo4tN3.js → get-bytecode-DkyBhWG0.js} +2 -2
- package/_assets/{get-ecosystem-wallet-info-DtESs8m7.js → get-ecosystem-wallet-info-JLiYFqKn.js} +2 -2
- package/_assets/{getBalance-D6g2ByQs.js → getBalance-8WdMwmlE.js} +3 -3
- package/_assets/{getInstalledModules-OCneY0pB.js → getInstalledModules-Bn-WMWvZ.js} +2 -2
- package/_assets/{getNFT-DXnohOJa.js → getNFT-BygCA-zb.js} +2 -2
- package/_assets/{getNFT-C2rmwr1y.js → getNFT-D7H4s4bO.js} +3 -3
- package/_assets/{grid.styles-D8y3Md9p.js → grid.styles-BJJSFZSz.js} +2 -2
- package/_assets/{hashTypedData-CqJya2E6.js → hashTypedData-CCQr4xhM.js} +2 -2
- package/_assets/{hashTypedData-DbZ540ih.js → hashTypedData-LyJcbtjj.js} +2 -2
- package/_assets/{in-app-7RIyYwr4.js → in-app-B4RhGBCh.js} +2 -2
- package/_assets/{in-app-wallet-calls-B_Nob2Dp.js → in-app-wallet-calls-9KSXE9GH.js} +2 -2
- package/_assets/{index-DRJSt6_X.js → index-2hLftpjl.js} +2 -2
- package/_assets/{index-D391fIN0.js → index-6WQDsbX1.js} +2 -2
- package/_assets/{index-_HKxCNov.js → index-B0P4rhnH.js} +2 -2
- package/_assets/{index-fUy6m31Q.js → index-B0fhzNVc.js} +3 -3
- package/_assets/{index-DdnyYkRs.js → index-B13-c4P_.js} +2 -2
- package/_assets/{index-B0b3tE0c.js → index-B2jE74v0.js} +2 -2
- package/_assets/{index-QGdB1wb7.js → index-B6UXzlO7.js} +2 -2
- package/_assets/{index-B2LbNj_R.js → index-BAnXoBQa.js} +2 -2
- package/_assets/{index-C73O17Kl.js → index-BIIfWRsm.js} +2 -2
- package/_assets/{index-CaszeEvt.js → index-BOLPfj8p.js} +2 -2
- package/_assets/{index-Bobcegi1.js → index-BR_dJjYg.js} +2 -2
- package/_assets/{index-CcqYtwt3.js → index-BRihLNDO.js} +2 -2
- package/_assets/{index-BWxd86Vj.js → index-BYcTSIVf.js} +2 -2
- package/_assets/{index-CGS4qhMY.js → index-Bbdi2im4.js} +2 -2
- package/_assets/{index-BjFsM0oT.js → index-BuBMGMtY.js} +2 -2
- package/_assets/{index-DZScr1GS.js → index-Bxumz6fq.js} +2 -2
- package/_assets/{index-DIDCs6WQ.js → index-BzrU_xTj.js} +2 -2
- package/_assets/{index-yi3HWnj_.js → index-C-I-VAtj.js} +2 -2
- package/_assets/{index-BRDkcfDz.js → index-C2wWmtlM.js} +2 -2
- package/_assets/{index-Dn4KZdaA.js → index-C8kaVPrn.js} +2 -2
- package/_assets/{index-CP1u55g3.js → index-CAPkL9qq.js} +2 -2
- package/_assets/{index-DomMPXQj.js → index-CAwE9Yy4.js} +4 -4
- package/_assets/{index-BsMA9366.js → index-CKwTnm7g.js} +2 -2
- package/_assets/{index-u2xgc_Gz.js → index-CL1zwzqa.js} +2 -2
- package/_assets/{index-BHH-ygDH.js → index-CTXBNDaR.js} +3 -3
- package/_assets/{index-B6-4doHB.js → index-CUwG9Gow.js} +2 -2
- package/_assets/{index-BgkGjzDI.js → index-CY3jvlYI.js} +2 -2
- package/_assets/{index-DjtvFnLh.js → index-CYQC6fE_.js} +2 -2
- package/_assets/{index-DKQvgIG5.js → index-CZyzFCL9.js} +2 -2
- package/_assets/{index-CDtFhkB_.js → index-CapZaipt.js} +4 -4
- package/_assets/{index-D5norgxm.js → index-ChCaLJWf.js} +2 -2
- package/_assets/{index-DxK-KEEO.js → index-CiyGPGO9.js} +2 -2
- package/_assets/{index-BScED-bZ.js → index-Cn5i7pxA.js} +2 -2
- package/_assets/{index-S7STKBrt.js → index-CoHZlbxe.js} +2 -2
- package/_assets/{index-DVuPr51_.js → index-CrTPPk7j.js} +2 -2
- package/_assets/{index-atuR1r1C.js → index-Ct1LvV9T.js} +2 -2
- package/_assets/{index-t08CzlbS.js → index-CvgtFUyg.js} +2 -2
- package/_assets/{index-CuuExxM6.js → index-CxKeAG-J.js} +2 -2
- package/_assets/{index-DqAm4Wjx.js → index-CxRbA6MI.js} +2 -2
- package/_assets/{index-DWaYKcdc.css → index-D4RODIqW.css} +1 -1
- package/_assets/{index-UrlARuY0.js → index-D7lw4vKg.js} +3 -3
- package/_assets/{index-DskNH7_F.js → index-DAqJHTwr.js} +2 -2
- package/_assets/{index-DjLd5rYK.js → index-DBH3OwKH.js} +2 -2
- package/_assets/{index-COM0SPl1.js → index-DCuIjSa3.js} +2 -2
- package/_assets/{index-DonluLU3.js → index-DThURYeF.js} +2 -2
- package/_assets/{index-DS7j0g6y.js → index-DUOPuDtZ.js} +2 -2
- package/_assets/{index-D0mKR1Uq.js → index-DXza9S1H.js} +2 -2
- package/_assets/{index-RJudh9Ct.js → index-Da4inYY3.js} +2 -2
- package/_assets/{index-BeUJsqeQ.js → index-Dbnvtlu9.js} +2 -2
- package/_assets/{index-7lpgP4PJ.js → index-DdRwH_39.js} +4 -4
- package/_assets/{index-7CCjLw0u.js → index-Df_2haqu.js} +2 -2
- package/_assets/{index-tuk1tZ_u.js → index-Dt4Q6hxP.js} +2 -2
- package/_assets/{index-DzdzPcAF.js → index-DzzXwSZ_.js} +3 -3
- package/_assets/{index-DwipOeoQ.js → index-FeiBiOm6.js} +2 -2
- package/_assets/{index-noVH-Q6R.js → index-G4LsqNWU.js} +2 -2
- package/_assets/{index-m-k1ONxw.js → index-HfXmqqOB.js} +2 -2
- package/_assets/{index-CwvrGPbx.js → index-KGKbIgYc.js} +12 -12
- package/_assets/{index-Cd4qg3y2.js → index-P43ylXlL.js} +2 -2
- package/_assets/{index-DxeSXDhW.js → index-PoXBOo9s.js} +2 -2
- package/_assets/{index-BMTJPKai.js → index-UeOBzUmn.js} +2 -2
- package/_assets/{index-CYHgmrtK.js → index-ZubpwVm5.js} +2 -2
- package/_assets/{index-BkMOX_Op.js → index-b1B_uAjk.js} +2 -2
- package/_assets/{index-CQ25VkJI.js → index-ovYwqG3U.js} +2 -2
- package/_assets/{index-RX4XaJG4.js → index-qdxlhv6O.js} +2 -2
- package/_assets/{index-CXMa-J76.js → index-xAvWfXcL.js} +2 -2
- package/_assets/{index-s3fqrm7k.js → index-xqaY6JvQ.js} +2 -2
- package/_assets/{index-Ds8cBLDT.js → index-xtcL5SzR.js} +2 -2
- package/_assets/{index-BSvARysd.js → index-z3GWPvvT.js} +2 -2
- package/_assets/{index.es-DFtzDt27.js → index.es-CdrKIXAf.js} +5 -5
- package/_assets/{index.es-DN-4f9er.js → index.es-Cn1837qk.js} +2 -2
- package/_assets/{index.es-Y_OTMJEv.js → index.es-DPNqN1VR.js} +2 -2
- package/_assets/{index.es-BOLgFwZv.js → index.es-Hocc0M2s.js} +2 -2
- package/_assets/{items-empty-CDQLWT4f.js → items-empty-Db7ykBge.js} +2 -2
- package/_assets/{jump-lzA8KqWK.js → jump-C3eF7452.js} +2 -2
- package/_assets/{linkAccount-D7Lo5Fky.js → linkAccount-Dg1gRdCu.js} +2 -2
- package/_assets/{localBatchGatewayRequest-CQTaa_Xl.js → localBatchGatewayRequest-o2tz0Xkw.js} +2 -2
- package/_assets/{native-cH_0VsVR.js → native-CvGGXrJP.js} +2 -2
- package/_assets/{networks-9q7XE_b5.js → networks-DpUYbi2j.js} +2 -2
- package/_assets/{onramp-WYoC_2JJ.js → onramp-DrkhTAlE.js} +2 -2
- package/_assets/{openzeppelin-B26CxjRn.js → openzeppelin-CqDJzb_H.js} +2 -2
- package/_assets/{ownerOf-CR-pYgie.js → ownerOf-BtEo_nZi.js} +2 -2
- package/_assets/{parseNft-DoCeRtaz.js → parseNft-5q27IIJ4.js} +3 -3
- package/_assets/{parseSignature-CFwV_3Sj.js → parseSignature-BCGLPNhC.js} +4 -4
- package/_assets/{parseSignature-QwU35EfM.js → parseSignature-iObXbLbJ.js} +2 -2
- package/_assets/{passkeys-BDSLI6JH.js → passkeys-4vxYlgiO.js} +2 -2
- package/_assets/{pay-with-exchange-Dn2ZiQRJ.js → pay-with-exchange-BRIaMBg2.js} +2 -2
- package/_assets/{prepare-contract-call-C5MBXliq.js → prepare-contract-call-DzSUrXuE.js} +2 -2
- package/_assets/{qr-overlay-2y6p10sk.js → qr-overlay-K_inpcHR.js} +4 -4
- package/_assets/{react-BG8VKwrs.js → react-CbiDtrwy.js} +2 -2
- package/_assets/{receive-CGyG04lY.js → receive-BsVhuoyI.js} +2 -2
- package/_assets/{resolveImplementation-DLF7p0HK.js → resolveImplementation-DpzhGxRX.js} +2 -2
- package/_assets/{resume-buy-D6gjpV5I.js → resume-buy-BvCiqn2w.js} +2 -2
- package/_assets/{rpc-DjqI0NmR.js → rpc-C_QkhZkG.js} +2 -2
- package/_assets/{sales-empty-BCFlZ1Kk.js → sales-empty-CbN8gNFb.js} +2 -2
- package/_assets/{search-empty-BpMm9tI6.js → search-empty-v82Jfcsb.js} +2 -2
- package/_assets/{secp256k1-DRppp9VB.js → secp256k1-B5JWxdoq.js} +2 -2
- package/_assets/{secp256k1-BqIlgE5L.js → secp256k1-B8ClqkT8.js} +2 -2
- package/_assets/{secp256k1-UNqqlOQ7.js → secp256k1-DO1HKk_9.js} +2 -2
- package/_assets/{send-avIcUC3Q.js → send-CEpYMZe7.js} +2 -2
- package/_assets/{send-batch-transaction-rKyhIytb.js → send-batch-transaction-CJvetNA5.js} +2 -2
- package/_assets/{send-eip712-transaction-BoRspE2R.js → send-eip712-transaction-BpCm1YSI.js} +3 -3
- package/_assets/{send-gasless-transaction-xdY1TN2_.js → send-gasless-transaction-BQ5n3ZLO.js} +3 -3
- package/_assets/{send-transaction-B3QVkcGi.js → send-transaction-CQcs63ct.js} +3 -3
- package/_assets/{sendMetaTransaction-Dhuf5w6N.js → sendMetaTransaction-CbxM2dJ4.js} +2 -2
- package/_assets/{sendRawTransaction-BbLkhJa0.js → sendRawTransaction-D-J01xpv.js} +4 -4
- package/_assets/{sentry-eiNE_T77.js → sentry-pksVc8Y1.js} +3 -3
- package/_assets/{serializeTransaction-E2BUrxll.js → serializeTransaction-BNmuM5Vp.js} +2 -2
- package/_assets/{session-proposal-Bs7GYJdO.js → session-proposal-xZsE3jVs.js} +2 -2
- package/_assets/{session-request-BUwswPeh.js → session-request-DZrNMJCR.js} +3 -3
- package/_assets/{sha256-QTFcttLy.js → sha256-DWDaWrQD.js} +2 -2
- package/_assets/{sha3-BnLSGe3q.js → sha3-DbomSxuI.js} +2 -2
- package/_assets/{signing-B7DPAVqs.js → signing-BwRlgyGP.js} +4 -4
- package/_assets/{skeleton.styles-bancAmCI.js → skeleton.styles-CTlrCuJj.js} +2 -2
- package/_assets/{socials-Dw7-Rmzi.js → socials-xQSQwdy_.js} +2 -2
- package/_assets/{styled-BAp_hlJt.js → styled-C37YZplh.js} +2 -2
- package/_assets/{swaps-D6QIvCFU.js → swaps-JSJu9ZEk.js} +2 -2
- package/_assets/{thirdweb-CRRacliS.js → thirdweb-0WodtONG.js} +4 -4
- package/_assets/{to-serializable-transaction-COhsgTk_.js → to-serializable-transaction-B9zCzvuC.js} +3 -3
- package/_assets/{totalSupply-DVGh8BDW.js → totalSupply-CQm-t9gk.js} +2 -2
- package/_assets/{transaction-BBI2xlTk.js → transaction-dnqRlxqs.js} +2 -2
- package/_assets/{transactionReceipt-DHzlWkC9.js → transactionReceipt-zwt2ZXmW.js} +2 -2
- package/_assets/{transactions-_PP0VZjh.js → transactions-BOc83Sc_.js} +2 -2
- package/_assets/{useCreditPacks-ZEO0PAYJ.js → useCreditPacks-C9QUVT1i.js} +2 -2
- package/_assets/{useInfiniteGrid-D25SubwU.js → useInfiniteGrid-Cgk7ZeHL.js} +2 -2
- package/_assets/{useStore-DTTkvsJu.js → useStore-D5kMn0mR.js} +3 -3
- package/_assets/{useTheme-L-wqQk2z.js → useTheme-vTP9z_Gm.js} +2 -2
- package/_assets/{utils-BeknD1Pa.js → utils-DrNnWK05.js} +2 -2
- package/_assets/{verifyHash-BlkIyJF8.js → verifyHash-DIESi3OJ.js} +2 -2
- package/_assets/{w3m-modal-CDsMCGJp.js → w3m-modal-6MmYKXgB.js} +2 -2
- package/_assets/{w3m-modal-DRHjwfPR.js → w3m-modal-q9WU-JG5.js} +2 -2
- package/_assets/{wait-for-tx-receipt-T0TE-tdi.js → wait-for-tx-receipt-rUn3vghV.js} +2 -2
- package/_assets/{wallet-Dgo2zwQv.js → wallet-BYrWPu9Q.js} +2 -2
- package/_assets/{wallets-BkI_aTsn.js → wallets-uhB6Tvqm.js} +6 -6
- package/_assets/{web-connector-BOVGNKko.js → web-connector-BOij74Y4.js} +4 -4
- package/_assets/{writeContract-DwmLxQPI.js → writeContract-CfRoYwPI.js} +2 -2
- package/_assets/{zora-sepolia-BNz_fefw.js → zora-sepolia-PqJWDgc_.js} +2 -2
- package/_assets/{zoraTestnet-k5nrTRiy.js → zoraTestnet-C9-KL1tb.js} +2 -2
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/collectionPage.styles-B9DFBjev.js +0 -41
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{r as o,j as u}from"./react-
|
|
1
|
+
import{r as o,j as u}from"./react-CbiDtrwy.js";import{e as p,B as b,c as s}from"./index-KGKbIgYc.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]="0a40960c-5b41-4cca-a05f-ce5436490f70",e._sentryDebugIdIdentifier="sentry-dbid-0a40960c-5b41-4cca-a05f-ce5436490f70")}catch{}})();const x=p.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: center;
|
|
4
4
|
padding: 28px 0 8px;
|
|
5
5
|
`,g=p(b)`
|
|
6
6
|
min-width: 160px;
|
|
7
7
|
`;function m({hasNextPage:e,isFetching:r,isError:t=!1,onLoadMore:n,auto:c=!0}){const d=o.useRef(null),f=o.useRef(n);return f.current=n,o.useEffect(()=>{const i=d.current;if(!i||!e||r||t||!c)return;const a=new IntersectionObserver(y=>{var l;(l=y[0])!=null&&l.isIntersecting&&f.current()},{rootMargin:"600px 0px"});return a.observe(i),()=>a.disconnect()},[e,r,t,c]),e?u.jsx(x,{ref:d,children:u.jsx(g,{variant:"ghost",onClick:n,disabled:r,children:r?s("loadMore.loading"):t?s("loadMore.retry"):s("loadMore.loadMore")})}):null}export{m as L};
|
|
8
|
-
//# sourceMappingURL=LoadMore-
|
|
8
|
+
//# sourceMappingURL=LoadMore-D-sqkeqn.js.map
|
package/_assets/{ManaPricingBanner.styles-CuFOcVnZ.js → ManaPricingBanner.styles-C7DuwIf7.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as u,j as e,L as b}from"./react-
|
|
1
|
+
import{r as u,j as e,L as b}from"./react-CbiDtrwy.js";import{d as a,e as t,be as m,C as w,bf as C,c as r}from"./index-KGKbIgYc.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new n.Error().stack;s&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[s]="a5b005e5-cc38-4e78-ac82-2d643fd6b2ac",n._sentryDebugIdIdentifier="sentry-dbid-a5b005e5-cc38-4e78-ac82-2d643fd6b2ac")}catch{}})();function y({size:n=17,...s}){const o=`credit-mark-${u.useId()}`;return e.jsxs("svg",{viewBox:"0 0 16.9985 16.9985",width:n,height:n,fill:"none","aria-hidden":!0,focusable:"false",...s,children:[e.jsx("defs",{children:e.jsxs("linearGradient",{id:o,x1:"-0.513692",y1:"8.51179",x2:"29.4301",y2:"5.69069",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:a.colors.dclRed}),e.jsx("stop",{offset:"1",stopColor:a.colors.flareAmber})]})}),e.jsx("path",{d:"M11.866 0.605075L16.4734 5.29355L16.4148 11.8658L11.7253 16.4742L5.15405 16.4156L0.545653 11.7271L0.604247 5.1539L5.29175 0.546481L11.866 0.605075Z",fill:`url(#${o})`,stroke:`url(#${o})`,strokeWidth:"1.04738"}),e.jsx("path",{d:"M9.14405 10.9365C9.51965 10.9365 9.87384 10.8794 10.2067 10.7653C10.5395 10.6512 10.7938 10.5371 10.9697 10.423L11.4975 11.4749L12.0252 12.5268C11.8017 12.717 11.4166 12.9095 10.8699 13.1045C10.3279 13.2994 9.68605 13.3969 8.94437 13.3969C8.25023 13.3969 7.59651 13.2756 6.98319 13.0332C6.36988 12.7907 5.82551 12.4507 5.35007 12.0133C4.87939 11.5759 4.51093 11.0625 4.24468 10.4729C3.97844 9.87864 3.84532 9.23205 3.84532 8.53316C3.84532 7.83427 3.97844 7.18767 4.24468 6.59338C4.51093 5.99433 4.87939 5.4761 5.35007 5.0387C5.82075 4.59655 6.36275 4.25423 6.97606 4.01176C7.59413 3.76453 8.25023 3.64092 8.94437 3.64092C9.68605 3.64092 10.3279 3.73838 10.8699 3.93331C11.4166 4.12824 11.8017 4.32079 12.0252 4.51097L10.9697 6.61477C10.7938 6.50067 10.5395 6.38656 10.2067 6.27246C9.87384 6.15835 9.51965 6.1013 9.14405 6.1013C8.67812 6.1013 8.27876 6.17024 7.94595 6.30812C7.6179 6.44599 7.34928 6.63141 7.14009 6.86438C6.9309 7.09734 6.77638 7.35645 6.67654 7.64171C6.58145 7.92698 6.53391 8.21699 6.53391 8.51176C6.53391 8.81129 6.58145 9.10606 6.67654 9.39607C6.77638 9.68133 6.9309 9.94045 7.14009 10.1734C7.34928 10.4064 7.6179 10.5918 7.94595 10.7297C8.27876 10.8675 8.67812 10.9365 9.14405 10.9365Z",fill:a.colors.white})]})}const{colors:l,font:$}=a,j=t.p`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
gap: 4px;
|
|
@@ -126,4 +126,4 @@ import{r as u,j as e,L as b}from"./react-BG8VKwrs.js";import{d as a,e as t,be as
|
|
|
126
126
|
outline-offset: 2px;
|
|
127
127
|
}
|
|
128
128
|
`;export{S as A,M as B,D as C,z as D,T as M,A as R,v as S,E as T,U as a,_ as b};
|
|
129
|
-
//# sourceMappingURL=ManaPricingBanner.styles-
|
|
129
|
+
//# sourceMappingURL=ManaPricingBanner.styles-C7DuwIf7.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{f as ta,u as ra,r as ee,j as m,a as ec}from"./react-BG8VKwrs.js";import{a3 as tc,g as rc,f as It,k as ir,m as or,d as R,e as F,de as Jn,A as na,c as C,I as Me,dx as Fn,dy as Pt,z as ps,K as gs,dz as sa,ak as qt,E as Vn,n as ia,bC as oa,B as vt,v as $t,cG as ms,cF as nc,x as sc,y as ic,be as ys,O as oc,S as ar,R as cr,Q as bs,G as ac,P as cc,dA as uc,dB as lc}from"./index-CwvrGPbx.js";import{b as dc}from"./builder-g8RNS_Vg.js";import{B as ws,d as zn}from"./dcl-schemas-BEn5-KfC.js";import{r as fc}from"./sha3-BnLSGe3q.js";import{r as hc}from"./browser-DSALTQXN.js";import{p as pc}from"./sentry-eiNE_T77.js";import{r as gc}from"./authorizations-D-BlJBCy.js";import{o as mc,O as Es}from"./buy-DTXSyPtH.js";import{C as aa,a as Rt,h as ca,r as yc,k as bc}from"./ethers-DsAoqs4p.js";import{i as wc}from"./wallet-Dgo2zwQv.js";import{f as ua}from"./errors-wEpZJGJP.js";import{E as Ht}from"./ErrorNotice-nSEXNWXK.js";import{L as Ec}from"./LoadMore-Cr-mnVTu.js";import{u as Sc,R as ur,i as vc,j as $c,k as Rc,l as lr,m as dr,n as Ic,o as _c,p as xc,q as Ac,r as Tc,s as Ss,t as vs,v as $s,a as Cc,b as jc,c as Pc,D as Oc,d as kc,C as Bc,e as Lc,f as Nc,g as Mc,M as qc,h as Hc}from"./browseLayout.styles-DXvUud3S.js";import{u as Uc}from"./useInfiniteGrid-D25SubwU.js";import{n as la,S as Rs}from"./categories-v7iHQh9a.js";import{u as Dc,s as Fc}from"./sales-empty-BCFlZ1Kk.js";import{C as Vc,R as zc,B as Gc,T as Jc,A as Xc,a as Wc,b as Kc,D as Yc,M as Zc}from"./ManaPricingBanner.styles-CuFOcVnZ.js";import{C as Qc}from"./field.styles-CZBu3L1V.js";import{c as eu,i as tu}from"./items-empty-CDQLWT4f.js";import{m as ru}from"./mana-matic-CEqvSwrJ.js";import"./intl-AKLEHPeO.js";import"./sendMetaTransaction-Dhuf5w6N.js";import"./skeleton.styles-bancAmCI.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]="fb0f0d1f-c595-417e-ac71-7b8d1df291e2",e._sentryDebugIdIdentifier="sentry-dbid-fb0f0d1f-c595-417e-ac71-7b8d1df291e2")}catch{}})();var fr={},Ze={},Qe={},hr={},et={},Te={},tt={},lt={},Is;function da(){if(Is)return lt;Is=1,Object.defineProperty(lt,"__esModule",{value:!0}),lt.StructError=void 0;class e extends TypeError{constructor(n,i){let d;const{message:u,explanation:c,...a}=n,{path:o}=n,f=o.length===0?u:`At path: ${o.join(".")} -- ${u}`;super(c??f),c!=null&&(this.cause=f),Object.assign(this,a),this.name=this.constructor.name,this.failures=()=>d??(d=[n,...i()])}}return lt.StructError=e,lt}var be={},we={},_s;function Ft(){if(_s)return we;_s=1,Object.defineProperty(we,"__esModule",{value:!0}),we.run=we.toFailures=we.toFailure=we.shiftIterator=we.print=we.isPlainObject=we.isObject=void 0;function e(o){return t(o)&&typeof o[Symbol.iterator]=="function"}function t(o){return typeof o=="object"&&o!==null}we.isObject=t;function n(o){if(Object.prototype.toString.call(o)!=="[object Object]")return!1;const f=Object.getPrototypeOf(o);return f===null||f===Object.prototype}we.isPlainObject=n;function i(o){return typeof o=="symbol"?o.toString():typeof o=="string"?JSON.stringify(o):`${o}`}we.print=i;function d(o){const{done:f,value:r}=o.next();return f?void 0:r}we.shiftIterator=d;function u(o,f,r,s){if(o===!0)return;o===!1?o={}:typeof o=="string"&&(o={message:o});const{path:l,branch:h}=f,{type:w}=r,{refinement:$,message:U=`Expected a value of type \`${w}\`${$?` with refinement \`${$}\``:""}, but received: \`${i(s)}\``}=o;return{value:s,type:w,refinement:$,key:l[l.length-1],path:l,branch:h,...o,message:U}}we.toFailure=u;function*c(o,f,r,s){e(o)||(o=[o]);for(const l of o){const h=u(l,f,r,s);h&&(yield h)}}we.toFailures=c;function*a(o,f,r={}){const{path:s=[],branch:l=[o],coerce:h=!1,mask:w=!1}=r,$={path:s,branch:l};if(h&&(o=f.coercer(o,$),w&&f.type!=="type"&&t(f.schema)&&t(o)&&!Array.isArray(o)))for(const O in o)f.schema[O]===void 0&&delete o[O];let U="valid";for(const O of f.validator(o,$))O.explanation=r.message,U="not_valid",yield[O,void 0];for(let[O,J,K]of f.entries(o,$)){const _=a(J,K,{path:O===void 0?s:[...s,O],branch:O===void 0?l:[...l,J],coerce:h,mask:w,message:r.message});for(const E of _)E[0]?(U=E[0].refinement===null||E[0].refinement===void 0?"not_valid":"not_refined",yield[E[0],void 0]):h&&(J=E[1],O===void 0?o=J:o instanceof Map?o.set(O,J):o instanceof Set?o.add(J):t(o)&&(J!==void 0||O in o)&&(o[O]=J))}if(U!=="not_valid")for(const O of f.refiner(o,$))O.explanation=r.message,U="not_refined",yield[O,void 0];U==="valid"&&(yield[void 0,o])}return we.run=a,we}var xs;function _t(){if(xs)return be;xs=1,Object.defineProperty(be,"__esModule",{value:!0}),be.validate=be.is=be.mask=be.create=be.assert=be.ExactOptionalStruct=be.Struct=void 0;const e=da(),t=Ft();class n{constructor(s){const{type:l,schema:h,validator:w,refiner:$,coercer:U=J=>J,entries:O=function*(){}}=s;this.type=l,this.schema=h,this.entries=O,this.coercer=U,w?this.validator=(J,K)=>{const _=w(J,K);return(0,t.toFailures)(_,K,this,J)}:this.validator=()=>[],$?this.refiner=(J,K)=>{const _=$(J,K);return(0,t.toFailures)(_,K,this,J)}:this.refiner=()=>[]}assert(s,l){return u(s,this,l)}create(s,l){return c(s,this,l)}is(s){return o(s,this)}mask(s,l){return a(s,this,l)}validate(s,l={}){return f(s,this,l)}}be.Struct=n;const i="EXACT_OPTIONAL";class d extends n{constructor(s){super({...s,type:`exact optional ${s.type}`}),this.brand=i}static isExactOptional(s){return(0,t.isObject)(s)&&"brand"in s&&s.brand===i}}be.ExactOptionalStruct=d;function u(r,s,l){const h=f(r,s,{message:l});if(h[0])throw h[0]}be.assert=u;function c(r,s,l){const h=f(r,s,{coerce:!0,message:l});if(h[0])throw h[0];return h[1]}be.create=c;function a(r,s,l){const h=f(r,s,{coerce:!0,mask:!0,message:l});if(h[0])throw h[0];return h[1]}be.mask=a;function o(r,s){return!f(r,s)[0]}be.is=o;function f(r,s,l={}){const h=(0,t.run)(r,s,l),w=(0,t.shiftIterator)(h);return w[0]?[new e.StructError(w[0],function*(){for(const O of h)O[0]&&(yield O[0])}),void 0]:[void 0,w[1]]}return be.validate=f,be}var Fe={},Z={},he={},As;function fa(){if(As)return he;As=1,Object.defineProperty(he,"__esModule",{value:!0}),he.pick=he.partial=he.omit=he.lazy=he.dynamic=he.deprecated=he.define=he.assign=void 0;const e=_t(),t=Xn();function n(...r){var w;const s=((w=r[0])==null?void 0:w.type)==="type",l=r.map(({schema:$})=>$),h=Object.assign({},...l);return s?(0,t.type)(h):(0,t.object)(h)}he.assign=n;function i(r,s){return new e.Struct({type:r,schema:null,validator:s})}he.define=i;function d(r,s){return new e.Struct({...r,refiner:(l,h)=>l===void 0||r.refiner(l,h),validator(l,h){return l===void 0?!0:(s(l,h),r.validator(l,h))}})}he.deprecated=d;function u(r){return new e.Struct({type:"dynamic",schema:null,*entries(s,l){yield*r(s,l).entries(s,l)},validator(s,l){return r(s,l).validator(s,l)},coercer(s,l){return r(s,l).coercer(s,l)},refiner(s,l){return r(s,l).refiner(s,l)}})}he.dynamic=u;function c(r){let s;return new e.Struct({type:"lazy",schema:null,*entries(l,h){s??(s=r()),yield*s.entries(l,h)},validator(l,h){return s??(s=r()),s.validator(l,h)},coercer(l,h){return s??(s=r()),s.coercer(l,h)},refiner(l,h){return s??(s=r()),s.refiner(l,h)}})}he.lazy=c;function a(r,s){const{schema:l}=r,h={...l};for(const w of s)delete h[w];switch(r.type){case"type":return(0,t.type)(h);default:return(0,t.object)(h)}}he.omit=a;function o(r){const s=r instanceof e.Struct,l=s?{...r.schema}:{...r};for(const h in l)l[h]=(0,t.optional)(l[h]);return s&&r.type==="type"?(0,t.type)(l):(0,t.object)(l)}he.partial=o;function f(r,s){const{schema:l}=r,h={};for(const w of s)h[w]=l[w];switch(r.type){case"type":return(0,t.type)(h);default:return(0,t.object)(h)}}return he.pick=f,he}var Ts;function Xn(){if(Ts)return Z;Ts=1,Object.defineProperty(Z,"__esModule",{value:!0}),Z.unknown=Z.union=Z.type=Z.tuple=Z.string=Z.set=Z.regexp=Z.record=Z.exactOptional=Z.optional=Z.object=Z.number=Z.nullable=Z.never=Z.map=Z.literal=Z.intersection=Z.integer=Z.instance=Z.func=Z.enums=Z.date=Z.boolean=Z.bigint=Z.array=Z.any=void 0;const e=_t(),t=Ft(),n=fa();function i(){return(0,n.define)("any",()=>!0)}Z.any=i;function d(x){return new e.Struct({type:"array",schema:x,*entries(M){if(x&&Array.isArray(M))for(const[q,z]of M.entries())yield[q,z,x]},coercer(M){return Array.isArray(M)?M.slice():M},validator(M){return Array.isArray(M)||`Expected an array value, but received: ${(0,t.print)(M)}`}})}Z.array=d;function u(){return(0,n.define)("bigint",x=>typeof x=="bigint")}Z.bigint=u;function c(){return(0,n.define)("boolean",x=>typeof x=="boolean")}Z.boolean=c;function a(){return(0,n.define)("date",x=>x instanceof Date&&!isNaN(x.getTime())||`Expected a valid \`Date\` object, but received: ${(0,t.print)(x)}`)}Z.date=a;function o(x){const M={},q=x.map(z=>(0,t.print)(z)).join();for(const z of x)M[z]=z;return new e.Struct({type:"enums",schema:M,validator(z){return x.includes(z)||`Expected one of \`${q}\`, but received: ${(0,t.print)(z)}`}})}Z.enums=o;function f(){return(0,n.define)("func",x=>typeof x=="function"||`Expected a function, but received: ${(0,t.print)(x)}`)}Z.func=f;function r(x){return(0,n.define)("instance",M=>M instanceof x||`Expected a \`${x.name}\` instance, but received: ${(0,t.print)(M)}`)}Z.instance=r;function s(){return(0,n.define)("integer",x=>typeof x=="number"&&!isNaN(x)&&Number.isInteger(x)||`Expected an integer, but received: ${(0,t.print)(x)}`)}Z.integer=s;function l(x){return new e.Struct({type:"intersection",schema:null,*entries(M,q){for(const{entries:z}of x)yield*z(M,q)},*validator(M,q){for(const{validator:z}of x)yield*z(M,q)},*refiner(M,q){for(const{refiner:z}of x)yield*z(M,q)}})}Z.intersection=l;function h(x){const M=(0,t.print)(x),q=typeof x;return new e.Struct({type:"literal",schema:q==="string"||q==="number"||q==="boolean"?x:null,validator(z){return z===x||`Expected the literal \`${M}\`, but received: ${(0,t.print)(z)}`}})}Z.literal=h;function w(x,M){return new e.Struct({type:"map",schema:null,*entries(q){if(x&&M&&q instanceof Map)for(const[z,L]of q.entries())yield[z,z,x],yield[z,L,M]},coercer(q){return q instanceof Map?new Map(q):q},validator(q){return q instanceof Map||`Expected a \`Map\` object, but received: ${(0,t.print)(q)}`}})}Z.map=w;function $(){return(0,n.define)("never",()=>!1)}Z.never=$;function U(x){return new e.Struct({...x,validator:(M,q)=>M===null||x.validator(M,q),refiner:(M,q)=>M===null||x.refiner(M,q)})}Z.nullable=U;function O(){return(0,n.define)("number",x=>typeof x=="number"&&!isNaN(x)||`Expected a number, but received: ${(0,t.print)(x)}`)}Z.number=O;function J(x){const M=x?Object.keys(x):[],q=$();return new e.Struct({type:"object",schema:x??null,*entries(z){if(x&&(0,t.isObject)(z)){const L=new Set(Object.keys(z));for(const H of M){L.delete(H);const b=x[H];e.ExactOptionalStruct.isExactOptional(b)&&!Object.prototype.hasOwnProperty.call(z,H)||(yield[H,z[H],x[H]])}for(const H of L)yield[H,z[H],q]}},validator(z){return(0,t.isObject)(z)||`Expected an object, but received: ${(0,t.print)(z)}`},coercer(z){return(0,t.isObject)(z)?{...z}:z}})}Z.object=J;function K(x){return new e.Struct({...x,validator:(M,q)=>M===void 0||x.validator(M,q),refiner:(M,q)=>M===void 0||x.refiner(M,q)})}Z.optional=K;function _(x){return new e.ExactOptionalStruct(x)}Z.exactOptional=_;function E(x,M){return new e.Struct({type:"record",schema:null,*entries(q){if((0,t.isObject)(q))for(const z in q){const L=q[z];yield[z,z,x],yield[z,L,M]}},validator(q){return(0,t.isObject)(q)||`Expected an object, but received: ${(0,t.print)(q)}`}})}Z.record=E;function P(){return(0,n.define)("regexp",x=>x instanceof RegExp)}Z.regexp=P;function D(x){return new e.Struct({type:"set",schema:null,*entries(M){if(x&&M instanceof Set)for(const q of M)yield[q,q,x]},coercer(M){return M instanceof Set?new Set(M):M},validator(M){return M instanceof Set||`Expected a \`Set\` object, but received: ${(0,t.print)(M)}`}})}Z.set=D;function k(){return(0,n.define)("string",x=>typeof x=="string"||`Expected a string, but received: ${(0,t.print)(x)}`)}Z.string=k;function B(x){const M=$();return new e.Struct({type:"tuple",schema:null,*entries(q){if(Array.isArray(q)){const z=Math.max(x.length,q.length);for(let L=0;L<z;L++)yield[L,q[L],x[L]||M]}},validator(q){return Array.isArray(q)||`Expected an array, but received: ${(0,t.print)(q)}`}})}Z.tuple=B;function p(x){const M=Object.keys(x);return new e.Struct({type:"type",schema:x,*entries(q){if((0,t.isObject)(q))for(const z of M)yield[z,q[z],x[z]]},validator(q){return(0,t.isObject)(q)||`Expected an object, but received: ${(0,t.print)(q)}`},coercer(q){return(0,t.isObject)(q)?{...q}:q}})}Z.type=p;function S(x){const M=x.map(q=>q.type).join(" | ");return new e.Struct({type:"union",schema:null,coercer(q){for(const z of x){const[L,H]=z.validate(q,{coerce:!0});if(!L)return H}return q},validator(q,z){const L=[];for(const H of x){const[...b]=(0,t.run)(q,H,z),[g]=b;if(!(g!=null&&g[0]))return[];for(const[I]of b)I&&L.push(I)}return[`Expected the value to satisfy a union of \`${M}\`, but received: ${(0,t.print)(q)}`,...L]}})}Z.union=S;function Y(){return(0,n.define)("unknown",()=>!0)}return Z.unknown=Y,Z}var Cs;function nu(){if(Cs)return Fe;Cs=1,Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.trimmed=Fe.defaulted=Fe.coerce=void 0;const e=_t(),t=Ft(),n=Xn();function i(c,a,o){return new e.Struct({...c,coercer:(f,r)=>(0,e.is)(f,a)?c.coercer(o(f,r),r):c.coercer(f,r)})}Fe.coerce=i;function d(c,a,o={}){return i(c,(0,n.unknown)(),f=>{const r=typeof a=="function"?a():a;if(f===void 0)return r;if(!o.strict&&(0,t.isPlainObject)(f)&&(0,t.isPlainObject)(r)){const s={...f};let l=!1;for(const h in r)s[h]===void 0&&(s[h]=r[h],l=!0);if(l)return s}return f})}Fe.defaulted=d;function u(c){return i(c,(0,n.string)(),a=>a.trim())}return Fe.trimmed=u,Fe}var Ee={},js;function su(){if(js)return Ee;js=1,Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.refine=Ee.size=Ee.pattern=Ee.nonempty=Ee.min=Ee.max=Ee.empty=void 0;const e=_t(),t=Ft();function n(r){return f(r,"empty",s=>{const l=i(s);return l===0||`Expected an empty ${r.type} but received one with a size of \`${l}\``})}Ee.empty=n;function i(r){return r instanceof Map||r instanceof Set?r.size:r.length}function d(r,s,l={}){const{exclusive:h}=l;return f(r,"max",w=>h?w<s:w<=s||`Expected a ${r.type} less than ${h?"":"or equal to "}${s} but received \`${w}\``)}Ee.max=d;function u(r,s,l={}){const{exclusive:h}=l;return f(r,"min",w=>h?w>s:w>=s||`Expected a ${r.type} greater than ${h?"":"or equal to "}${s} but received \`${w}\``)}Ee.min=u;function c(r){return f(r,"nonempty",s=>i(s)>0||`Expected a nonempty ${r.type} but received an empty one`)}Ee.nonempty=c;function a(r,s){return f(r,"pattern",l=>s.test(l)||`Expected a ${r.type} matching \`/${s.source}/\` but received "${l}"`)}Ee.pattern=a;function o(r,s,l=s){const h=`Expected a ${r.type}`,w=s===l?`of \`${s}\``:`between \`${s}\` and \`${l}\``;return f(r,"size",$=>{if(typeof $=="number"||$ instanceof Date)return s<=$&&$<=l||`${h} ${w} but received \`${$}\``;if($ instanceof Map||$ instanceof Set){const{size:O}=$;return s<=O&&O<=l||`${h} with a size ${w} but received one with a size of \`${O}\``}const{length:U}=$;return s<=U&&U<=l||`${h} with a length ${w} but received one with a length of \`${U}\``})}Ee.size=o;function f(r,s,l){return new e.Struct({...r,*refiner(h,w){yield*r.refiner(h,w);const $=l(h,w),U=(0,t.toFailures)($,w,r,h);for(const O of U)yield{...O,refinement:s}}})}return Ee.refine=f,Ee}var Ps;function qe(){return Ps||(Ps=1,(function(e){var t=tt&&tt.__createBinding||(Object.create?(function(i,d,u,c){c===void 0&&(c=u);var a=Object.getOwnPropertyDescriptor(d,u);(!a||("get"in a?!d.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return d[u]}}),Object.defineProperty(i,c,a)}):(function(i,d,u,c){c===void 0&&(c=u),i[c]=d[u]})),n=tt&&tt.__exportStar||function(i,d){for(var u in i)u!=="default"&&!Object.prototype.hasOwnProperty.call(d,u)&&t(d,i,u)};Object.defineProperty(e,"__esModule",{value:!0}),n(da(),e),n(_t(),e),n(nu(),e),n(su(),e),n(Xn(),e),n(fa(),e)})(tt)),tt}var _e={};class Wn extends Error{constructor(t,{cause:n}={}){super(t),this.name=Wn.name,n&&(this.cause=n),this.message=t}}const iu=Object.freeze(Object.defineProperty({__proto__:null,ErrorWithCause:Wn},Symbol.toStringTag,{value:"Module"})),ou=ta(iu),au=(e,t)=>{if(!e||!t||!(e instanceof Error)||!(t.prototype instanceof Error)&&t!==Error)return;const n=new Set;let i=e;for(;i&&!n.has(i);){if(n.add(i),i instanceof t)return i;i=Vt(i)}},Vt=e=>{if(!(!e||typeof e!="object"||!("cause"in e)))if(typeof e.cause=="function"){const t=e.cause();return t instanceof Error?t:void 0}else return e.cause instanceof Error?e.cause:void 0},ha=(e,t)=>{if(!(e instanceof Error))return"";const n=e.stack||"";if(t.has(e))return n+`
|
|
1
|
+
import{f as ta,u as ra,r as ee,j as m,a as ec}from"./react-CbiDtrwy.js";import{a3 as tc,g as rc,f as It,k as ir,m as or,d as R,e as F,de as Jn,A as na,c as C,I as Me,dx as Fn,dy as Pt,z as ps,K as gs,dz as sa,ak as qt,E as Vn,n as ia,bC as oa,B as vt,v as $t,cG as ms,cF as nc,x as sc,y as ic,be as ys,O as oc,S as ar,R as cr,Q as bs,G as ac,P as cc,dA as uc,dB as lc}from"./index-KGKbIgYc.js";import{b as dc}from"./builder-Uh_QHIQ6.js";import{B as ws,d as zn}from"./dcl-schemas-DU0vGMAi.js";import{r as fc}from"./sha3-DbomSxuI.js";import{r as hc}from"./browser-xz-gmjRJ.js";import{p as pc}from"./sentry-pksVc8Y1.js";import{r as gc}from"./authorizations-BpA7J6nv.js";import{o as mc,O as Es}from"./buy-B5M_2UT-.js";import{C as aa,a as Rt,h as ca,r as yc,k as bc}from"./ethers-DOxpBstR.js";import{i as wc}from"./wallet-BYrWPu9Q.js";import{f as ua}from"./errors-Bska53t6.js";import{E as Ht}from"./ErrorNotice-DdXfJJQ5.js";import{L as Ec}from"./LoadMore-D-sqkeqn.js";import{u as Sc,R as ur,i as vc,j as $c,k as Rc,l as lr,m as dr,n as Ic,o as _c,p as xc,q as Ac,r as Tc,s as Ss,t as vs,v as $s,a as Cc,b as jc,c as Pc,D as Oc,d as kc,C as Bc,e as Lc,f as Nc,g as Mc,M as qc,h as Hc}from"./browseLayout.styles-4ap7kx9k.js";import{u as Uc}from"./useInfiniteGrid-Cgk7ZeHL.js";import{n as la,S as Rs}from"./categories-s25qDcz8.js";import{u as Dc,s as Fc}from"./sales-empty-CbN8gNFb.js";import{C as Vc,R as zc,B as Gc,T as Jc,A as Xc,a as Wc,b as Kc,D as Yc,M as Zc}from"./ManaPricingBanner.styles-C7DuwIf7.js";import{C as Qc}from"./field.styles-C0hP5Nvw.js";import{c as eu,i as tu}from"./items-empty-Db7ykBge.js";import{m as ru}from"./mana-matic-CEqvSwrJ.js";import"./intl-AKLEHPeO.js";import"./sendMetaTransaction-CbxM2dJ4.js";import"./skeleton.styles-CTlrCuJj.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]="fb0f0d1f-c595-417e-ac71-7b8d1df291e2",e._sentryDebugIdIdentifier="sentry-dbid-fb0f0d1f-c595-417e-ac71-7b8d1df291e2")}catch{}})();var fr={},Ze={},Qe={},hr={},et={},Te={},tt={},lt={},Is;function da(){if(Is)return lt;Is=1,Object.defineProperty(lt,"__esModule",{value:!0}),lt.StructError=void 0;class e extends TypeError{constructor(n,i){let d;const{message:u,explanation:c,...a}=n,{path:o}=n,f=o.length===0?u:`At path: ${o.join(".")} -- ${u}`;super(c??f),c!=null&&(this.cause=f),Object.assign(this,a),this.name=this.constructor.name,this.failures=()=>d??(d=[n,...i()])}}return lt.StructError=e,lt}var be={},we={},_s;function Ft(){if(_s)return we;_s=1,Object.defineProperty(we,"__esModule",{value:!0}),we.run=we.toFailures=we.toFailure=we.shiftIterator=we.print=we.isPlainObject=we.isObject=void 0;function e(o){return t(o)&&typeof o[Symbol.iterator]=="function"}function t(o){return typeof o=="object"&&o!==null}we.isObject=t;function n(o){if(Object.prototype.toString.call(o)!=="[object Object]")return!1;const f=Object.getPrototypeOf(o);return f===null||f===Object.prototype}we.isPlainObject=n;function i(o){return typeof o=="symbol"?o.toString():typeof o=="string"?JSON.stringify(o):`${o}`}we.print=i;function d(o){const{done:f,value:r}=o.next();return f?void 0:r}we.shiftIterator=d;function u(o,f,r,s){if(o===!0)return;o===!1?o={}:typeof o=="string"&&(o={message:o});const{path:l,branch:h}=f,{type:w}=r,{refinement:$,message:U=`Expected a value of type \`${w}\`${$?` with refinement \`${$}\``:""}, but received: \`${i(s)}\``}=o;return{value:s,type:w,refinement:$,key:l[l.length-1],path:l,branch:h,...o,message:U}}we.toFailure=u;function*c(o,f,r,s){e(o)||(o=[o]);for(const l of o){const h=u(l,f,r,s);h&&(yield h)}}we.toFailures=c;function*a(o,f,r={}){const{path:s=[],branch:l=[o],coerce:h=!1,mask:w=!1}=r,$={path:s,branch:l};if(h&&(o=f.coercer(o,$),w&&f.type!=="type"&&t(f.schema)&&t(o)&&!Array.isArray(o)))for(const O in o)f.schema[O]===void 0&&delete o[O];let U="valid";for(const O of f.validator(o,$))O.explanation=r.message,U="not_valid",yield[O,void 0];for(let[O,J,K]of f.entries(o,$)){const _=a(J,K,{path:O===void 0?s:[...s,O],branch:O===void 0?l:[...l,J],coerce:h,mask:w,message:r.message});for(const E of _)E[0]?(U=E[0].refinement===null||E[0].refinement===void 0?"not_valid":"not_refined",yield[E[0],void 0]):h&&(J=E[1],O===void 0?o=J:o instanceof Map?o.set(O,J):o instanceof Set?o.add(J):t(o)&&(J!==void 0||O in o)&&(o[O]=J))}if(U!=="not_valid")for(const O of f.refiner(o,$))O.explanation=r.message,U="not_refined",yield[O,void 0];U==="valid"&&(yield[void 0,o])}return we.run=a,we}var xs;function _t(){if(xs)return be;xs=1,Object.defineProperty(be,"__esModule",{value:!0}),be.validate=be.is=be.mask=be.create=be.assert=be.ExactOptionalStruct=be.Struct=void 0;const e=da(),t=Ft();class n{constructor(s){const{type:l,schema:h,validator:w,refiner:$,coercer:U=J=>J,entries:O=function*(){}}=s;this.type=l,this.schema=h,this.entries=O,this.coercer=U,w?this.validator=(J,K)=>{const _=w(J,K);return(0,t.toFailures)(_,K,this,J)}:this.validator=()=>[],$?this.refiner=(J,K)=>{const _=$(J,K);return(0,t.toFailures)(_,K,this,J)}:this.refiner=()=>[]}assert(s,l){return u(s,this,l)}create(s,l){return c(s,this,l)}is(s){return o(s,this)}mask(s,l){return a(s,this,l)}validate(s,l={}){return f(s,this,l)}}be.Struct=n;const i="EXACT_OPTIONAL";class d extends n{constructor(s){super({...s,type:`exact optional ${s.type}`}),this.brand=i}static isExactOptional(s){return(0,t.isObject)(s)&&"brand"in s&&s.brand===i}}be.ExactOptionalStruct=d;function u(r,s,l){const h=f(r,s,{message:l});if(h[0])throw h[0]}be.assert=u;function c(r,s,l){const h=f(r,s,{coerce:!0,message:l});if(h[0])throw h[0];return h[1]}be.create=c;function a(r,s,l){const h=f(r,s,{coerce:!0,mask:!0,message:l});if(h[0])throw h[0];return h[1]}be.mask=a;function o(r,s){return!f(r,s)[0]}be.is=o;function f(r,s,l={}){const h=(0,t.run)(r,s,l),w=(0,t.shiftIterator)(h);return w[0]?[new e.StructError(w[0],function*(){for(const O of h)O[0]&&(yield O[0])}),void 0]:[void 0,w[1]]}return be.validate=f,be}var Fe={},Z={},he={},As;function fa(){if(As)return he;As=1,Object.defineProperty(he,"__esModule",{value:!0}),he.pick=he.partial=he.omit=he.lazy=he.dynamic=he.deprecated=he.define=he.assign=void 0;const e=_t(),t=Xn();function n(...r){var w;const s=((w=r[0])==null?void 0:w.type)==="type",l=r.map(({schema:$})=>$),h=Object.assign({},...l);return s?(0,t.type)(h):(0,t.object)(h)}he.assign=n;function i(r,s){return new e.Struct({type:r,schema:null,validator:s})}he.define=i;function d(r,s){return new e.Struct({...r,refiner:(l,h)=>l===void 0||r.refiner(l,h),validator(l,h){return l===void 0?!0:(s(l,h),r.validator(l,h))}})}he.deprecated=d;function u(r){return new e.Struct({type:"dynamic",schema:null,*entries(s,l){yield*r(s,l).entries(s,l)},validator(s,l){return r(s,l).validator(s,l)},coercer(s,l){return r(s,l).coercer(s,l)},refiner(s,l){return r(s,l).refiner(s,l)}})}he.dynamic=u;function c(r){let s;return new e.Struct({type:"lazy",schema:null,*entries(l,h){s??(s=r()),yield*s.entries(l,h)},validator(l,h){return s??(s=r()),s.validator(l,h)},coercer(l,h){return s??(s=r()),s.coercer(l,h)},refiner(l,h){return s??(s=r()),s.refiner(l,h)}})}he.lazy=c;function a(r,s){const{schema:l}=r,h={...l};for(const w of s)delete h[w];switch(r.type){case"type":return(0,t.type)(h);default:return(0,t.object)(h)}}he.omit=a;function o(r){const s=r instanceof e.Struct,l=s?{...r.schema}:{...r};for(const h in l)l[h]=(0,t.optional)(l[h]);return s&&r.type==="type"?(0,t.type)(l):(0,t.object)(l)}he.partial=o;function f(r,s){const{schema:l}=r,h={};for(const w of s)h[w]=l[w];switch(r.type){case"type":return(0,t.type)(h);default:return(0,t.object)(h)}}return he.pick=f,he}var Ts;function Xn(){if(Ts)return Z;Ts=1,Object.defineProperty(Z,"__esModule",{value:!0}),Z.unknown=Z.union=Z.type=Z.tuple=Z.string=Z.set=Z.regexp=Z.record=Z.exactOptional=Z.optional=Z.object=Z.number=Z.nullable=Z.never=Z.map=Z.literal=Z.intersection=Z.integer=Z.instance=Z.func=Z.enums=Z.date=Z.boolean=Z.bigint=Z.array=Z.any=void 0;const e=_t(),t=Ft(),n=fa();function i(){return(0,n.define)("any",()=>!0)}Z.any=i;function d(x){return new e.Struct({type:"array",schema:x,*entries(M){if(x&&Array.isArray(M))for(const[q,z]of M.entries())yield[q,z,x]},coercer(M){return Array.isArray(M)?M.slice():M},validator(M){return Array.isArray(M)||`Expected an array value, but received: ${(0,t.print)(M)}`}})}Z.array=d;function u(){return(0,n.define)("bigint",x=>typeof x=="bigint")}Z.bigint=u;function c(){return(0,n.define)("boolean",x=>typeof x=="boolean")}Z.boolean=c;function a(){return(0,n.define)("date",x=>x instanceof Date&&!isNaN(x.getTime())||`Expected a valid \`Date\` object, but received: ${(0,t.print)(x)}`)}Z.date=a;function o(x){const M={},q=x.map(z=>(0,t.print)(z)).join();for(const z of x)M[z]=z;return new e.Struct({type:"enums",schema:M,validator(z){return x.includes(z)||`Expected one of \`${q}\`, but received: ${(0,t.print)(z)}`}})}Z.enums=o;function f(){return(0,n.define)("func",x=>typeof x=="function"||`Expected a function, but received: ${(0,t.print)(x)}`)}Z.func=f;function r(x){return(0,n.define)("instance",M=>M instanceof x||`Expected a \`${x.name}\` instance, but received: ${(0,t.print)(M)}`)}Z.instance=r;function s(){return(0,n.define)("integer",x=>typeof x=="number"&&!isNaN(x)&&Number.isInteger(x)||`Expected an integer, but received: ${(0,t.print)(x)}`)}Z.integer=s;function l(x){return new e.Struct({type:"intersection",schema:null,*entries(M,q){for(const{entries:z}of x)yield*z(M,q)},*validator(M,q){for(const{validator:z}of x)yield*z(M,q)},*refiner(M,q){for(const{refiner:z}of x)yield*z(M,q)}})}Z.intersection=l;function h(x){const M=(0,t.print)(x),q=typeof x;return new e.Struct({type:"literal",schema:q==="string"||q==="number"||q==="boolean"?x:null,validator(z){return z===x||`Expected the literal \`${M}\`, but received: ${(0,t.print)(z)}`}})}Z.literal=h;function w(x,M){return new e.Struct({type:"map",schema:null,*entries(q){if(x&&M&&q instanceof Map)for(const[z,L]of q.entries())yield[z,z,x],yield[z,L,M]},coercer(q){return q instanceof Map?new Map(q):q},validator(q){return q instanceof Map||`Expected a \`Map\` object, but received: ${(0,t.print)(q)}`}})}Z.map=w;function $(){return(0,n.define)("never",()=>!1)}Z.never=$;function U(x){return new e.Struct({...x,validator:(M,q)=>M===null||x.validator(M,q),refiner:(M,q)=>M===null||x.refiner(M,q)})}Z.nullable=U;function O(){return(0,n.define)("number",x=>typeof x=="number"&&!isNaN(x)||`Expected a number, but received: ${(0,t.print)(x)}`)}Z.number=O;function J(x){const M=x?Object.keys(x):[],q=$();return new e.Struct({type:"object",schema:x??null,*entries(z){if(x&&(0,t.isObject)(z)){const L=new Set(Object.keys(z));for(const H of M){L.delete(H);const b=x[H];e.ExactOptionalStruct.isExactOptional(b)&&!Object.prototype.hasOwnProperty.call(z,H)||(yield[H,z[H],x[H]])}for(const H of L)yield[H,z[H],q]}},validator(z){return(0,t.isObject)(z)||`Expected an object, but received: ${(0,t.print)(z)}`},coercer(z){return(0,t.isObject)(z)?{...z}:z}})}Z.object=J;function K(x){return new e.Struct({...x,validator:(M,q)=>M===void 0||x.validator(M,q),refiner:(M,q)=>M===void 0||x.refiner(M,q)})}Z.optional=K;function _(x){return new e.ExactOptionalStruct(x)}Z.exactOptional=_;function E(x,M){return new e.Struct({type:"record",schema:null,*entries(q){if((0,t.isObject)(q))for(const z in q){const L=q[z];yield[z,z,x],yield[z,L,M]}},validator(q){return(0,t.isObject)(q)||`Expected an object, but received: ${(0,t.print)(q)}`}})}Z.record=E;function P(){return(0,n.define)("regexp",x=>x instanceof RegExp)}Z.regexp=P;function D(x){return new e.Struct({type:"set",schema:null,*entries(M){if(x&&M instanceof Set)for(const q of M)yield[q,q,x]},coercer(M){return M instanceof Set?new Set(M):M},validator(M){return M instanceof Set||`Expected a \`Set\` object, but received: ${(0,t.print)(M)}`}})}Z.set=D;function k(){return(0,n.define)("string",x=>typeof x=="string"||`Expected a string, but received: ${(0,t.print)(x)}`)}Z.string=k;function B(x){const M=$();return new e.Struct({type:"tuple",schema:null,*entries(q){if(Array.isArray(q)){const z=Math.max(x.length,q.length);for(let L=0;L<z;L++)yield[L,q[L],x[L]||M]}},validator(q){return Array.isArray(q)||`Expected an array, but received: ${(0,t.print)(q)}`}})}Z.tuple=B;function p(x){const M=Object.keys(x);return new e.Struct({type:"type",schema:x,*entries(q){if((0,t.isObject)(q))for(const z of M)yield[z,q[z],x[z]]},validator(q){return(0,t.isObject)(q)||`Expected an object, but received: ${(0,t.print)(q)}`},coercer(q){return(0,t.isObject)(q)?{...q}:q}})}Z.type=p;function S(x){const M=x.map(q=>q.type).join(" | ");return new e.Struct({type:"union",schema:null,coercer(q){for(const z of x){const[L,H]=z.validate(q,{coerce:!0});if(!L)return H}return q},validator(q,z){const L=[];for(const H of x){const[...b]=(0,t.run)(q,H,z),[g]=b;if(!(g!=null&&g[0]))return[];for(const[I]of b)I&&L.push(I)}return[`Expected the value to satisfy a union of \`${M}\`, but received: ${(0,t.print)(q)}`,...L]}})}Z.union=S;function Y(){return(0,n.define)("unknown",()=>!0)}return Z.unknown=Y,Z}var Cs;function nu(){if(Cs)return Fe;Cs=1,Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.trimmed=Fe.defaulted=Fe.coerce=void 0;const e=_t(),t=Ft(),n=Xn();function i(c,a,o){return new e.Struct({...c,coercer:(f,r)=>(0,e.is)(f,a)?c.coercer(o(f,r),r):c.coercer(f,r)})}Fe.coerce=i;function d(c,a,o={}){return i(c,(0,n.unknown)(),f=>{const r=typeof a=="function"?a():a;if(f===void 0)return r;if(!o.strict&&(0,t.isPlainObject)(f)&&(0,t.isPlainObject)(r)){const s={...f};let l=!1;for(const h in r)s[h]===void 0&&(s[h]=r[h],l=!0);if(l)return s}return f})}Fe.defaulted=d;function u(c){return i(c,(0,n.string)(),a=>a.trim())}return Fe.trimmed=u,Fe}var Ee={},js;function su(){if(js)return Ee;js=1,Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.refine=Ee.size=Ee.pattern=Ee.nonempty=Ee.min=Ee.max=Ee.empty=void 0;const e=_t(),t=Ft();function n(r){return f(r,"empty",s=>{const l=i(s);return l===0||`Expected an empty ${r.type} but received one with a size of \`${l}\``})}Ee.empty=n;function i(r){return r instanceof Map||r instanceof Set?r.size:r.length}function d(r,s,l={}){const{exclusive:h}=l;return f(r,"max",w=>h?w<s:w<=s||`Expected a ${r.type} less than ${h?"":"or equal to "}${s} but received \`${w}\``)}Ee.max=d;function u(r,s,l={}){const{exclusive:h}=l;return f(r,"min",w=>h?w>s:w>=s||`Expected a ${r.type} greater than ${h?"":"or equal to "}${s} but received \`${w}\``)}Ee.min=u;function c(r){return f(r,"nonempty",s=>i(s)>0||`Expected a nonempty ${r.type} but received an empty one`)}Ee.nonempty=c;function a(r,s){return f(r,"pattern",l=>s.test(l)||`Expected a ${r.type} matching \`/${s.source}/\` but received "${l}"`)}Ee.pattern=a;function o(r,s,l=s){const h=`Expected a ${r.type}`,w=s===l?`of \`${s}\``:`between \`${s}\` and \`${l}\``;return f(r,"size",$=>{if(typeof $=="number"||$ instanceof Date)return s<=$&&$<=l||`${h} ${w} but received \`${$}\``;if($ instanceof Map||$ instanceof Set){const{size:O}=$;return s<=O&&O<=l||`${h} with a size ${w} but received one with a size of \`${O}\``}const{length:U}=$;return s<=U&&U<=l||`${h} with a length ${w} but received one with a length of \`${U}\``})}Ee.size=o;function f(r,s,l){return new e.Struct({...r,*refiner(h,w){yield*r.refiner(h,w);const $=l(h,w),U=(0,t.toFailures)($,w,r,h);for(const O of U)yield{...O,refinement:s}}})}return Ee.refine=f,Ee}var Ps;function qe(){return Ps||(Ps=1,(function(e){var t=tt&&tt.__createBinding||(Object.create?(function(i,d,u,c){c===void 0&&(c=u);var a=Object.getOwnPropertyDescriptor(d,u);(!a||("get"in a?!d.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return d[u]}}),Object.defineProperty(i,c,a)}):(function(i,d,u,c){c===void 0&&(c=u),i[c]=d[u]})),n=tt&&tt.__exportStar||function(i,d){for(var u in i)u!=="default"&&!Object.prototype.hasOwnProperty.call(d,u)&&t(d,i,u)};Object.defineProperty(e,"__esModule",{value:!0}),n(da(),e),n(_t(),e),n(nu(),e),n(su(),e),n(Xn(),e),n(fa(),e)})(tt)),tt}var _e={};class Wn extends Error{constructor(t,{cause:n}={}){super(t),this.name=Wn.name,n&&(this.cause=n),this.message=t}}const iu=Object.freeze(Object.defineProperty({__proto__:null,ErrorWithCause:Wn},Symbol.toStringTag,{value:"Module"})),ou=ta(iu),au=(e,t)=>{if(!e||!t||!(e instanceof Error)||!(t.prototype instanceof Error)&&t!==Error)return;const n=new Set;let i=e;for(;i&&!n.has(i);){if(n.add(i),i instanceof t)return i;i=Vt(i)}},Vt=e=>{if(!(!e||typeof e!="object"||!("cause"in e)))if(typeof e.cause=="function"){const t=e.cause();return t instanceof Error?t:void 0}else return e.cause instanceof Error?e.cause:void 0},ha=(e,t)=>{if(!(e instanceof Error))return"";const n=e.stack||"";if(t.has(e))return n+`
|
|
2
2
|
causes have become circular...`;const i=Vt(e);return i?(t.add(e),n+`
|
|
3
3
|
caused by: `+ha(i,t)):n},cu=e=>ha(e,new Set),pa=(e,t,n)=>{if(!(e instanceof Error))return"";const i=n?"":e.message||"";if(t.has(e))return i+": ...";const d=Vt(e);if(d){t.add(e);const u="cause"in e&&typeof e.cause=="function";return i+(u?"":": ")+pa(d,t,u)}else return i},uu=e=>pa(e,new Set),lu=Object.freeze(Object.defineProperty({__proto__:null,findCauseByReference:au,getErrorCause:Vt,messageWithCauses:uu,stackWithCauses:cu},Symbol.toStringTag,{value:"Module"})),du=ta(lu);var pr,Os;function fu(){if(Os)return pr;Os=1;const{ErrorWithCause:e}=ou,{findCauseByReference:t,getErrorCause:n,messageWithCauses:i,stackWithCauses:d}=du;return pr={ErrorWithCause:e,findCauseByReference:t,getErrorCause:n,stackWithCauses:d,messageWithCauses:i},pr}var gr={},ks;function Kn(){return ks||(ks=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.calculateNumberSize=e.calculateStringSize=e.isASCII=e.isPlainObject=e.ESCAPE_CHARACTERS_REGEXP=e.JsonSize=e.getKnownPropertyNames=e.hasProperty=e.isObject=e.isNullOrUndefined=e.isNonEmptyArray=void 0;function t(r){return Array.isArray(r)&&r.length>0}e.isNonEmptyArray=t;function n(r){return r==null}e.isNullOrUndefined=n;function i(r){return!!r&&typeof r=="object"&&!Array.isArray(r)}e.isObject=i;const d=(r,s)=>Object.hasOwnProperty.call(r,s);e.hasProperty=d;function u(r){return Object.getOwnPropertyNames(r)}e.getKnownPropertyNames=u,(function(r){r[r.Null=4]="Null",r[r.Comma=1]="Comma",r[r.Wrapper=1]="Wrapper",r[r.True=4]="True",r[r.False=5]="False",r[r.Quote=1]="Quote",r[r.Colon=1]="Colon",r[r.Date=24]="Date"})(e.JsonSize||(e.JsonSize={})),e.ESCAPE_CHARACTERS_REGEXP=/"|\\|\n|\r|\t/gu;function c(r){if(typeof r!="object"||r===null)return!1;try{let s=r;for(;Object.getPrototypeOf(s)!==null;)s=Object.getPrototypeOf(s);return Object.getPrototypeOf(r)===s}catch{return!1}}e.isPlainObject=c;function a(r){return r.charCodeAt(0)<=127}e.isASCII=a;function o(r){return r.split("").reduce((l,h)=>a(h)?l+1:l+2,0)+(r.match(e.ESCAPE_CHARACTERS_REGEXP)??[]).length}e.calculateStringSize=o;function f(r){return r.toString().length}e.calculateNumberSize=f})(gr)),gr}var Bs;function ga(){if(Bs)return _e;Bs=1,Object.defineProperty(_e,"__esModule",{value:!0}),_e.wrapError=_e.getErrorMessage=_e.isErrorWithStack=_e.isErrorWithMessage=_e.isErrorWithCode=void 0;const e=fu(),t=Kn();function n(o){return o instanceof Error||(0,t.isObject)(o)&&o.constructor.name==="Error"}function i(o){return typeof o=="object"&&o!==null&&"code"in o}_e.isErrorWithCode=i;function d(o){return typeof o=="object"&&o!==null&&"message"in o}_e.isErrorWithMessage=d;function u(o){return typeof o=="object"&&o!==null&&"stack"in o}_e.isErrorWithStack=u;function c(o){return d(o)&&typeof o.message=="string"?o.message:(0,t.isNullOrUndefined)(o)?"":String(o)}_e.getErrorMessage=c;function a(o,f){if(n(o)){let r;return Error.length===2?r=new Error(f,{cause:o}):r=new e.ErrorWithCause(f,{cause:o}),i(o)&&(r.code=o.code),r}return f.length>0?new Error(`${String(o)}: ${f}`):new Error(String(o))}return _e.wrapError=a,_e}var Ls;function Ke(){if(Ls)return Te;Ls=1,Object.defineProperty(Te,"__esModule",{value:!0}),Te.assertExhaustive=Te.assertStruct=Te.assert=Te.AssertionError=void 0;const e=qe(),t=ga();function n(f){var r,s;return typeof((s=(r=f==null?void 0:f.prototype)==null?void 0:r.constructor)==null?void 0:s.name)=="string"}function i(f){return(0,t.getErrorMessage)(f).replace(/\.$/u,"")}function d(f,r){return n(f)?new f({message:r}):f({message:r})}class u extends Error{constructor(r){super(r.message),this.code="ERR_ASSERTION"}}Te.AssertionError=u;function c(f,r="Assertion failed.",s=u){if(!f)throw r instanceof Error?r:d(s,r)}Te.assert=c;function a(f,r,s="Assertion failed",l=u){try{(0,e.assert)(f,r)}catch(h){throw d(l,`${s}: ${i(h)}.`)}}Te.assertStruct=a;function o(f){throw new Error("Invalid branch reached. Should be detected during compilation.")}return Te.assertExhaustive=o,Te}var dt={},Ns;function ma(){if(Ns)return dt;Ns=1,Object.defineProperty(dt,"__esModule",{value:!0}),dt.base64=void 0;const e=qe(),t=Ke(),n=(i,d={})=>{const u=d.paddingRequired??!1,c=d.characterSet??"base64";let a;c==="base64"?a=String.raw`[A-Za-z0-9+\/]`:((0,t.assert)(c==="base64url"),a=String.raw`[-_A-Za-z0-9]`);let o;return u?o=new RegExp(`^(?:${a}{4})*(?:${a}{3}=|${a}{2}==)?$`,"u"):o=new RegExp(`^(?:${a}{4})*(?:${a}{2,3}|${a}{3}=|${a}{2}==)?$`,"u"),(0,e.pattern)(i,o)};return dt.base64=n,dt}var se={},mr={},Ms;function hu(){return Ms||(Ms=1,(function(e){/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(e,"__esModule",{value:!0}),e.bytes=e.stringToBytes=e.str=e.bytesToString=e.hex=e.utf8=e.bech32m=e.bech32=e.base58check=e.createBase58check=e.base58xmr=e.base58xrp=e.base58flickr=e.base58=e.base64urlnopad=e.base64url=e.base64nopad=e.base64=e.base32crockford=e.base32hexnopad=e.base32hex=e.base32nopad=e.base32=e.base16=e.utils=void 0;function t(y){return y instanceof Uint8Array||ArrayBuffer.isView(y)&&y.constructor.name==="Uint8Array"}function n(y,...v){if(!t(y))throw new Error("Uint8Array expected");if(v.length>0&&!v.includes(y.length))throw new Error("Uint8Array expected of length "+v+", got length="+y.length)}function i(y,v){return Array.isArray(v)?v.length===0?!0:y?v.every(A=>typeof A=="string"):v.every(A=>Number.isSafeInteger(A)):!1}function d(y){if(typeof y!="function")throw new Error("function expected");return!0}function u(y,v){if(typeof v!="string")throw new Error(`${y}: string expected`);return!0}function c(y){if(!Number.isSafeInteger(y))throw new Error(`invalid integer: ${y}`)}function a(y){if(!Array.isArray(y))throw new Error("array expected")}function o(y,v){if(!i(!0,v))throw new Error(`${y}: array of strings expected`)}function f(y,v){if(!i(!1,v))throw new Error(`${y}: array of numbers expected`)}function r(...y){const v=W=>W,A=(W,oe)=>ne=>W(oe(ne)),X=y.map(W=>W.encode).reduceRight(A,v),V=y.map(W=>W.decode).reduce(A,v);return{encode:X,decode:V}}function s(y){const v=typeof y=="string"?y.split(""):y,A=v.length;o("alphabet",v);const X=new Map(v.map((V,W)=>[V,W]));return{encode:V=>(a(V),V.map(W=>{if(!Number.isSafeInteger(W)||W<0||W>=A)throw new Error(`alphabet.encode: digit index outside alphabet "${W}". Allowed: ${y}`);return v[W]})),decode:V=>(a(V),V.map(W=>{u("alphabet.decode",W);const oe=X.get(W);if(oe===void 0)throw new Error(`Unknown letter: "${W}". Allowed: ${y}`);return oe}))}}function l(y=""){return u("join",y),{encode:v=>(o("join.decode",v),v.join(y)),decode:v=>(u("join.decode",v),v.split(y))}}function h(y,v="="){return c(y),u("padding",v),{encode(A){for(o("padding.encode",A);A.length*y%8;)A.push(v);return A},decode(A){o("padding.decode",A);let X=A.length;if(X*y%8)throw new Error("padding: invalid, string should have whole number of bytes");for(;X>0&&A[X-1]===v;X--)if((X-1)*y%8===0)throw new Error("padding: invalid, string has too much padding");return A.slice(0,X)}}}function w(y){return d(y),{encode:v=>v,decode:v=>y(v)}}function $(y,v,A){if(v<2)throw new Error(`convertRadix: invalid from=${v}, base cannot be less than 2`);if(A<2)throw new Error(`convertRadix: invalid to=${A}, base cannot be less than 2`);if(a(y),!y.length)return[];let X=0;const V=[],W=Array.from(y,ne=>{if(c(ne),ne<0||ne>=v)throw new Error(`invalid integer: ${ne}`);return ne}),oe=W.length;for(;;){let ne=0,G=!0;for(let ie=X;ie<oe;ie++){const ge=W[ie],ae=v*ne,le=ae+ge;if(!Number.isSafeInteger(le)||ae/v!==ne||le-ge!==ae)throw new Error("convertRadix: carry overflow");const me=le/A;ne=le%A;const fe=Math.floor(me);if(W[ie]=fe,!Number.isSafeInteger(fe)||fe*A+ne!==le)throw new Error("convertRadix: carry overflow");if(G)fe?G=!1:X=ie;else continue}if(V.push(ne),G)break}for(let ne=0;ne<y.length-1&&y[ne]===0;ne++)V.push(0);return V.reverse()}const U=(y,v)=>v===0?y:U(v,y%v),O=(y,v)=>y+(v-U(y,v)),J=(()=>{let y=[];for(let v=0;v<40;v++)y.push(2**v);return y})();function K(y,v,A,X){if(a(y),v<=0||v>32)throw new Error(`convertRadix2: wrong from=${v}`);if(A<=0||A>32)throw new Error(`convertRadix2: wrong to=${A}`);if(O(v,A)>32)throw new Error(`convertRadix2: carry overflow from=${v} to=${A} carryBits=${O(v,A)}`);let V=0,W=0;const oe=J[v],ne=J[A]-1,G=[];for(const ie of y){if(c(ie),ie>=oe)throw new Error(`convertRadix2: invalid data word=${ie} from=${v}`);if(V=V<<v|ie,W+v>32)throw new Error(`convertRadix2: carry overflow pos=${W} from=${v}`);for(W+=v;W>=A;W-=A)G.push((V>>W-A&ne)>>>0);const ge=J[W];if(ge===void 0)throw new Error("invalid carry");V&=ge-1}if(V=V<<A-W&ne,!X&&W>=v)throw new Error("Excess padding");if(!X&&V>0)throw new Error(`Non-zero padding: ${V}`);return X&&W>0&&G.push(V>>>0),G}function _(y){c(y);const v=2**8;return{encode:A=>{if(!t(A))throw new Error("radix.encode input should be Uint8Array");return $(Array.from(A),v,y)},decode:A=>(f("radix.decode",A),Uint8Array.from($(A,y,v)))}}function E(y,v=!1){if(c(y),y<=0||y>32)throw new Error("radix2: bits should be in (0..32]");if(O(8,y)>32||O(y,8)>32)throw new Error("radix2: carry overflow");return{encode:A=>{if(!t(A))throw new Error("radix2.encode input should be Uint8Array");return K(Array.from(A),8,y,!v)},decode:A=>(f("radix2.decode",A),Uint8Array.from(K(A,y,8,v)))}}function P(y){return d(y),function(...v){try{return y.apply(null,v)}catch{}}}function D(y,v){return c(y),d(v),{encode(A){if(!t(A))throw new Error("checksum.encode: input should be Uint8Array");const X=v(A).slice(0,y),V=new Uint8Array(A.length+y);return V.set(A),V.set(X,A.length),V},decode(A){if(!t(A))throw new Error("checksum.decode: input should be Uint8Array");const X=A.slice(0,-y),V=A.slice(-y),W=v(X).slice(0,y);for(let oe=0;oe<y;oe++)if(W[oe]!==V[oe])throw new Error("Invalid checksum");return X}}}e.utils={alphabet:s,chain:r,checksum:D,convertRadix:$,convertRadix2:K,radix:_,radix2:E,join:l,padding:h},e.base16=r(E(4),s("0123456789ABCDEF"),l("")),e.base32=r(E(5),s("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),h(5),l("")),e.base32nopad=r(E(5),s("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),l("")),e.base32hex=r(E(5),s("0123456789ABCDEFGHIJKLMNOPQRSTUV"),h(5),l("")),e.base32hexnopad=r(E(5),s("0123456789ABCDEFGHIJKLMNOPQRSTUV"),l("")),e.base32crockford=r(E(5),s("0123456789ABCDEFGHJKMNPQRSTVWXYZ"),l(""),w(y=>y.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1")));const k=typeof Uint8Array.from([]).toBase64=="function"&&typeof Uint8Array.fromBase64=="function",B=(y,v)=>{u("base64",y);const A=v?/^[A-Za-z0-9=_-]+$/:/^[A-Za-z0-9=+/]+$/,X=v?"base64url":"base64";if(y.length>0&&!A.test(y))throw new Error("invalid base64");return Uint8Array.fromBase64(y,{alphabet:X,lastChunkHandling:"strict"})};e.base64=k?{encode(y){return n(y),y.toBase64()},decode(y){return B(y,!1)}}:r(E(6),s("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),h(6),l("")),e.base64nopad=r(E(6),s("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),l("")),e.base64url=k?{encode(y){return n(y),y.toBase64({alphabet:"base64url"})},decode(y){return B(y,!0)}}:r(E(6),s("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),h(6),l("")),e.base64urlnopad=r(E(6),s("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),l(""));const p=y=>r(_(58),s(y),l(""));e.base58=p("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),e.base58flickr=p("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),e.base58xrp=p("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz");const S=[0,2,3,5,6,7,9,10,11];e.base58xmr={encode(y){let v="";for(let A=0;A<y.length;A+=8){const X=y.subarray(A,A+8);v+=e.base58.encode(X).padStart(S[X.length],"1")}return v},decode(y){let v=[];for(let A=0;A<y.length;A+=11){const X=y.slice(A,A+11),V=S.indexOf(X.length),W=e.base58.decode(X);for(let oe=0;oe<W.length-V;oe++)if(W[oe]!==0)throw new Error("base58xmr: wrong padding");v=v.concat(Array.from(W.slice(W.length-V)))}return Uint8Array.from(v)}};const Y=y=>r(D(4,v=>y(y(v))),e.base58);e.createBase58check=Y,e.base58check=e.createBase58check;const x=r(s("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),l("")),M=[996825010,642813549,513874426,1027748829,705979059];function q(y){const v=y>>25;let A=(y&33554431)<<5;for(let X=0;X<M.length;X++)(v>>X&1)===1&&(A^=M[X]);return A}function z(y,v,A=1){const X=y.length;let V=1;for(let W=0;W<X;W++){const oe=y.charCodeAt(W);if(oe<33||oe>126)throw new Error(`Invalid prefix (${y})`);V=q(V)^oe>>5}V=q(V);for(let W=0;W<X;W++)V=q(V)^y.charCodeAt(W)&31;for(let W of v)V=q(V)^W;for(let W=0;W<6;W++)V=q(V);return V^=A,x.encode(K([V%J[30]],30,5,!1))}function L(y){const v=y==="bech32"?1:734539939,A=E(5),X=A.decode,V=A.encode,W=P(X);function oe(ae,le,me=90){u("bech32.encode prefix",ae),t(le)&&(le=Array.from(le)),f("bech32.encode",le);const fe=ae.length;if(fe===0)throw new TypeError(`Invalid prefix length ${fe}`);const ye=fe+7+le.length;if(me!==!1&&ye>me)throw new TypeError(`Length ${ye} exceeds limit ${me}`);const Je=ae.toLowerCase(),Ye=z(Je,le,v);return`${Je}1${x.encode(le)}${Ye}`}function ne(ae,le=90){u("bech32.decode input",ae);const me=ae.length;if(me<8||le!==!1&&me>le)throw new TypeError(`invalid string length: ${me} (${ae}). Expected (8..${le})`);const fe=ae.toLowerCase();if(ae!==fe&&ae!==ae.toUpperCase())throw new Error("String must be lowercase or uppercase");const ye=fe.lastIndexOf("1");if(ye===0||ye===-1)throw new Error('Letter "1" must be present between prefix and data only');const Je=fe.slice(0,ye),Ye=fe.slice(ye+1);if(Ye.length<6)throw new Error("Data must be at least 6 characters long");const ot=x.decode(Ye).slice(0,-6),Ue=z(Je,ot,v);if(!Ye.endsWith(Ue))throw new Error(`Invalid checksum in ${ae}: expected "${Ue}"`);return{prefix:Je,words:ot}}const G=P(ne);function ie(ae){const{prefix:le,words:me}=ne(ae,!1);return{prefix:le,words:me,bytes:X(me)}}function ge(ae,le){return oe(ae,V(le))}return{encode:oe,decode:ne,encodeFromBytes:ge,decodeToBytes:ie,decodeUnsafe:G,fromWords:X,fromWordsUnsafe:W,toWords:V}}e.bech32=L("bech32"),e.bech32m=L("bech32m"),e.utf8={encode:y=>new TextDecoder().decode(y),decode:y=>new TextEncoder().encode(y)};const H=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",b={encode(y){return n(y),y.toHex()},decode(y){return u("hex",y),Uint8Array.fromHex(y)}};e.hex=H?b:r(E(4),s("0123456789abcdef"),l(""),w(y=>{if(typeof y!="string"||y.length%2!==0)throw new TypeError(`hex.decode: expected string, got ${typeof y} with length ${y.length}`);return y.toLowerCase()}));const g={utf8:e.utf8,hex:e.hex,base16:e.base16,base32:e.base32,base64:e.base64,base64url:e.base64url,base58:e.base58,base58xmr:e.base58xmr},I="Invalid encoding type. Available types: utf8, hex, base16, base32, base64, base64url, base58, base58xmr",j=(y,v)=>{if(typeof y!="string"||!g.hasOwnProperty(y))throw new TypeError(I);if(!t(v))throw new TypeError("bytesToString() expects Uint8Array");return g[y].encode(v)};e.bytesToString=j,e.str=e.bytesToString;const N=(y,v)=>{if(!g.hasOwnProperty(y))throw new TypeError(I);if(typeof v!="string")throw new TypeError("stringToBytes() expects string");return g[y].decode(v)};e.stringToBytes=N,e.bytes=e.stringToBytes})(mr)),mr}var yr={},qs;function zt(){return qs||(qs=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.remove0x=e.add0x=e.isValidChecksumAddress=e.getChecksumAddress=e.isValidHexAddress=e.assertIsStrictHexString=e.assertIsHexString=e.isStrictHexString=e.isHexString=e.HexChecksumAddressStruct=e.HexAddressStruct=e.StrictHexStruct=e.HexStruct=void 0;const t=qe(),n=fc(),i=Ke(),d=Yn();e.HexStruct=(0,t.pattern)((0,t.string)(),/^(?:0x)?[0-9a-f]+$/iu),e.StrictHexStruct=(0,t.pattern)((0,t.string)(),/^0x[0-9a-f]+$/iu),e.HexAddressStruct=(0,t.pattern)((0,t.string)(),/^0x[0-9a-f]{40}$/u),e.HexChecksumAddressStruct=(0,t.pattern)((0,t.string)(),/^0x[0-9a-fA-F]{40}$/u);function u(w){return(0,t.is)(w,e.HexStruct)}e.isHexString=u;function c(w){return(0,t.is)(w,e.StrictHexStruct)}e.isStrictHexString=c;function a(w){(0,i.assert)(u(w),"Value must be a hexadecimal string.")}e.assertIsHexString=a;function o(w){(0,i.assert)(c(w),'Value must be a hexadecimal string, starting with "0x".')}e.assertIsStrictHexString=o;function f(w){return(0,t.is)(w,e.HexAddressStruct)||s(w)}e.isValidHexAddress=f;function r(w){(0,i.assert)((0,t.is)(w,e.HexChecksumAddressStruct),"Invalid hex address.");const $=h(w.toLowerCase()),U=h((0,d.bytesToHex)((0,n.keccak_256)($)));return`0x${$.split("").map((O,J)=>{const K=U[J];return(0,i.assert)((0,t.is)(K,(0,t.string)()),"Hash shorter than address."),parseInt(K,16)>7?O.toUpperCase():O}).join("")}`}e.getChecksumAddress=r;function s(w){return(0,t.is)(w,e.HexChecksumAddressStruct)?r(w)===w:!1}e.isValidChecksumAddress=s;function l(w){return w.startsWith("0x")?w:w.startsWith("0X")?`0x${w.substring(2)}`:`0x${w}`}e.add0x=l;function h(w){return w.startsWith("0x")||w.startsWith("0X")?w.substring(2):w}e.remove0x=h})(yr)),yr}var Hs;function Yn(){if(Hs)return se;Hs=1,Object.defineProperty(se,"__esModule",{value:!0}),se.createDataView=se.concatBytes=se.valueToBytes=se.base64ToBytes=se.stringToBytes=se.numberToBytes=se.signedBigIntToBytes=se.bigIntToBytes=se.hexToBytes=se.bytesToBase64=se.bytesToString=se.bytesToNumber=se.bytesToSignedBigInt=se.bytesToBigInt=se.bytesToHex=se.assertIsBytes=se.isBytes=void 0;const e=hu(),t=Ke(),n=zt(),i=48,d=58,u=87;function c(){const p=[];return()=>{if(p.length===0)for(let S=0;S<256;S++)p.push(S.toString(16).padStart(2,"0"));return p}}const a=c();function o(p){return p instanceof Uint8Array}se.isBytes=o;function f(p){(0,t.assert)(o(p),"Value must be a Uint8Array.")}se.assertIsBytes=f;function r(p){if(f(p),p.length===0)return"0x";const S=a(),Y=new Array(p.length);for(let x=0;x<p.length;x++)Y[x]=S[p[x]];return(0,n.add0x)(Y.join(""))}se.bytesToHex=r;function s(p){f(p);const S=r(p);return BigInt(S)}se.bytesToBigInt=s;function l(p){f(p);let S=BigInt(0);for(const Y of p)S=(S<<BigInt(8))+BigInt(Y);return BigInt.asIntN(p.length*8,S)}se.bytesToSignedBigInt=l;function h(p){f(p);const S=s(p);return(0,t.assert)(S<=BigInt(Number.MAX_SAFE_INTEGER),"Number is not a safe integer. Use `bytesToBigInt` instead."),Number(S)}se.bytesToNumber=h;function w(p){return f(p),new TextDecoder().decode(p)}se.bytesToString=w;function $(p){return f(p),e.base64.encode(p)}se.bytesToBase64=$;function U(p){var M;if(((M=p==null?void 0:p.toLowerCase)==null?void 0:M.call(p))==="0x")return new Uint8Array;(0,n.assertIsHexString)(p);const S=(0,n.remove0x)(p).toLowerCase(),Y=S.length%2===0?S:`0${S}`,x=new Uint8Array(Y.length/2);for(let q=0;q<x.length;q++){const z=Y.charCodeAt(q*2),L=Y.charCodeAt(q*2+1),H=z-(z<d?i:u),b=L-(L<d?i:u);x[q]=H*16+b}return x}se.hexToBytes=U;function O(p){(0,t.assert)(typeof p=="bigint","Value must be a bigint."),(0,t.assert)(p>=BigInt(0),"Value must be a non-negative bigint.");const S=p.toString(16);return U(S)}se.bigIntToBytes=O;function J(p,S){(0,t.assert)(S>0);const Y=p>>BigInt(31);return!((~p&Y)+(p&~Y)>>BigInt(S*8+-1))}function K(p,S){(0,t.assert)(typeof p=="bigint","Value must be a bigint."),(0,t.assert)(typeof S=="number","Byte length must be a number."),(0,t.assert)(S>0,"Byte length must be greater than 0."),(0,t.assert)(J(p,S),"Byte length is too small to represent the given value.");let Y=p;const x=new Uint8Array(S);for(let M=0;M<x.length;M++)x[M]=Number(BigInt.asUintN(8,Y)),Y>>=BigInt(8);return x.reverse()}se.signedBigIntToBytes=K;function _(p){(0,t.assert)(typeof p=="number","Value must be a number."),(0,t.assert)(p>=0,"Value must be a non-negative number."),(0,t.assert)(Number.isSafeInteger(p),"Value is not a safe integer. Use `bigIntToBytes` instead.");const S=p.toString(16);return U(S)}se.numberToBytes=_;function E(p){return(0,t.assert)(typeof p=="string","Value must be a string."),new TextEncoder().encode(p)}se.stringToBytes=E;function P(p){return(0,t.assert)(typeof p=="string","Value must be a string."),e.base64.decode(p)}se.base64ToBytes=P;function D(p){if(typeof p=="bigint")return O(p);if(typeof p=="number")return _(p);if(typeof p=="string")return p.startsWith("0x")?U(p):E(p);if(o(p))return p;throw new TypeError(`Unsupported value type: "${typeof p}".`)}se.valueToBytes=D;function k(p){const S=new Array(p.length);let Y=0;for(let M=0;M<p.length;M++){const q=D(p[M]);S[M]=q,Y+=q.length}const x=new Uint8Array(Y);for(let M=0,q=0;M<S.length;M++)x.set(S[M],q),q+=S[M].length;return x}se.concatBytes=k;function B(p){if(typeof ws<"u"&&p instanceof ws){const S=p.buffer.slice(p.byteOffset,p.byteOffset+p.byteLength);return new DataView(S)}return new DataView(p.buffer,p.byteOffset,p.byteLength)}return se.createDataView=B,se}var br={},Us;function pu(){return Us||(Us=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.toCaipChainId=e.parseCaipAccountId=e.parseCaipChainId=e.isCaipAssetId=e.isCaipAssetType=e.isCaipAccountAddress=e.isCaipAccountId=e.isCaipReference=e.isCaipNamespace=e.isCaipChainId=e.KnownCaipNamespace=e.CaipAssetIdStruct=e.CaipAssetTypeStruct=e.CaipAccountAddressStruct=e.CaipAccountIdStruct=e.CaipReferenceStruct=e.CaipNamespaceStruct=e.CaipChainIdStruct=e.CAIP_ASSET_ID_REGEX=e.CAIP_ASSET_TYPE_REGEX=e.CAIP_ACCOUNT_ADDRESS_REGEX=e.CAIP_ACCOUNT_ID_REGEX=e.CAIP_REFERENCE_REGEX=e.CAIP_NAMESPACE_REGEX=e.CAIP_CHAIN_ID_REGEX=void 0;const t=qe();e.CAIP_CHAIN_ID_REGEX=/^(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32})$/u,e.CAIP_NAMESPACE_REGEX=/^[-a-z0-9]{3,8}$/u,e.CAIP_REFERENCE_REGEX=/^[-_a-zA-Z0-9]{1,32}$/u,e.CAIP_ACCOUNT_ID_REGEX=/^(?<chainId>(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32})):(?<accountAddress>[-.%a-zA-Z0-9]{1,128})$/u,e.CAIP_ACCOUNT_ADDRESS_REGEX=/^[-.%a-zA-Z0-9]{1,128}$/u,e.CAIP_ASSET_TYPE_REGEX=/^(?<chainId>(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32}))\/(?<assetNamespace>[-a-z0-9]{3,8}):(?<assetReference>[-.%a-zA-Z0-9]{1,128})$/u,e.CAIP_ASSET_ID_REGEX=/^(?<chainId>(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32}))\/(?<assetNamespace>[-a-z0-9]{3,8}):(?<assetReference>[-.%a-zA-Z0-9]{1,128})\/(?<tokenId>[-.%a-zA-Z0-9]{1,78})$/u,e.CaipChainIdStruct=(0,t.pattern)((0,t.string)(),e.CAIP_CHAIN_ID_REGEX),e.CaipNamespaceStruct=(0,t.pattern)((0,t.string)(),e.CAIP_NAMESPACE_REGEX),e.CaipReferenceStruct=(0,t.pattern)((0,t.string)(),e.CAIP_REFERENCE_REGEX),e.CaipAccountIdStruct=(0,t.pattern)((0,t.string)(),e.CAIP_ACCOUNT_ID_REGEX),e.CaipAccountAddressStruct=(0,t.pattern)((0,t.string)(),e.CAIP_ACCOUNT_ADDRESS_REGEX),e.CaipAssetTypeStruct=(0,t.pattern)((0,t.string)(),e.CAIP_ASSET_TYPE_REGEX),e.CaipAssetIdStruct=(0,t.pattern)((0,t.string)(),e.CAIP_ASSET_ID_REGEX),(function(l){l.Bip122="bip122",l.Eip155="eip155",l.Wallet="wallet"})(e.KnownCaipNamespace||(e.KnownCaipNamespace={}));function n(l){return(0,t.is)(l,e.CaipChainIdStruct)}e.isCaipChainId=n;function i(l){return(0,t.is)(l,e.CaipNamespaceStruct)}e.isCaipNamespace=i;function d(l){return(0,t.is)(l,e.CaipReferenceStruct)}e.isCaipReference=d;function u(l){return(0,t.is)(l,e.CaipAccountIdStruct)}e.isCaipAccountId=u;function c(l){return(0,t.is)(l,e.CaipAccountAddressStruct)}e.isCaipAccountAddress=c;function a(l){return(0,t.is)(l,e.CaipAssetTypeStruct)}e.isCaipAssetType=a;function o(l){return(0,t.is)(l,e.CaipAssetIdStruct)}e.isCaipAssetId=o;function f(l){const h=e.CAIP_CHAIN_ID_REGEX.exec(l);if(!(h!=null&&h.groups))throw new Error("Invalid CAIP chain ID.");return{namespace:h.groups.namespace,reference:h.groups.reference}}e.parseCaipChainId=f;function r(l){const h=e.CAIP_ACCOUNT_ID_REGEX.exec(l);if(!(h!=null&&h.groups))throw new Error("Invalid CAIP account ID.");return{address:h.groups.accountAddress,chainId:h.groups.chainId,chain:{namespace:h.groups.namespace,reference:h.groups.reference}}}e.parseCaipAccountId=r;function s(l,h){if(!i(l))throw new Error(`Invalid "namespace", must match: ${e.CAIP_NAMESPACE_REGEX.toString()}`);if(!d(h))throw new Error(`Invalid "reference", must match: ${e.CAIP_REFERENCE_REGEX.toString()}`);return`${l}:${h}`}e.toCaipChainId=s})(br)),br}var ft={},Ds;function gu(){if(Ds)return ft;Ds=1,Object.defineProperty(ft,"__esModule",{value:!0}),ft.ChecksumStruct=void 0;const e=qe(),t=ma();return ft.ChecksumStruct=(0,e.size)((0,t.base64)((0,e.string)(),{paddingRequired:!0}),44,44),ft}var Ce={},Fs;function mu(){if(Fs)return Ce;Fs=1,Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.createHex=Ce.createBytes=Ce.createBigInt=Ce.createNumber=void 0;const e=qe(),t=Ke(),n=Yn(),i=zt(),d=(0,e.union)([(0,e.number)(),(0,e.bigint)(),(0,e.string)(),i.StrictHexStruct]),u=(0,e.coerce)((0,e.number)(),d,Number),c=(0,e.coerce)((0,e.bigint)(),d,BigInt);(0,e.union)([i.StrictHexStruct,(0,e.instance)(Uint8Array)]);const a=(0,e.coerce)((0,e.instance)(Uint8Array),(0,e.union)([i.StrictHexStruct]),n.hexToBytes),o=(0,e.coerce)(i.StrictHexStruct,(0,e.instance)(Uint8Array),n.bytesToHex);function f(h){try{const w=(0,e.create)(h,u);return(0,t.assert)(Number.isFinite(w),`Expected a number-like value, got "${h}".`),w}catch(w){throw w instanceof e.StructError?new Error(`Expected a number-like value, got "${h}".`):w}}Ce.createNumber=f;function r(h){try{return(0,e.create)(h,c)}catch(w){throw w instanceof e.StructError?new Error(`Expected a number-like value, got "${String(w.value)}".`):w}}Ce.createBigInt=r;function s(h){if(typeof h=="string"&&h.toLowerCase()==="0x")return new Uint8Array;try{return(0,e.create)(h,a)}catch(w){throw w instanceof e.StructError?new Error(`Expected a bytes-like value, got "${String(w.value)}".`):w}}Ce.createBytes=s;function l(h){if(h instanceof Uint8Array&&h.length===0||typeof h=="string"&&h.toLowerCase()==="0x")return"0x";try{return(0,e.create)(h,o)}catch(w){throw w instanceof e.StructError?new Error(`Expected a bytes-like value, got "${String(w.value)}".`):w}}return Ce.createHex=l,Ce}var je={},Vs;function yu(){if(Vs)return je;Vs=1;var e=je&&je.__classPrivateFieldGet||function(c,a,o,f){if(o==="a"&&!f)throw new TypeError("Private accessor was defined without a getter");if(typeof a=="function"?c!==a||!f:!a.has(c))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?f:o==="a"?f.call(c):f?f.value:a.get(c)},t=je&&je.__classPrivateFieldSet||function(c,a,o,f,r){if(f==="m")throw new TypeError("Private method is not writable");if(f==="a"&&!r)throw new TypeError("Private accessor was defined without a setter");if(typeof a=="function"?c!==a||!r:!a.has(c))throw new TypeError("Cannot write private member to an object whose class did not declare it");return f==="a"?r.call(c,o):r?r.value=o:a.set(c,o),o},n,i;Object.defineProperty(je,"__esModule",{value:!0}),je.FrozenSet=je.FrozenMap=void 0;class d{get size(){return e(this,n,"f").size}[(n=new WeakMap,Symbol.iterator)](){return e(this,n,"f")[Symbol.iterator]()}constructor(a){n.set(this,void 0),t(this,n,new Map(a),"f"),Object.freeze(this)}entries(){return e(this,n,"f").entries()}forEach(a,o){return e(this,n,"f").forEach((f,r,s)=>a.call(o,f,r,this))}get(a){return e(this,n,"f").get(a)}has(a){return e(this,n,"f").has(a)}keys(){return e(this,n,"f").keys()}values(){return e(this,n,"f").values()}toString(){return`FrozenMap(${this.size}) {${this.size>0?` ${[...this.entries()].map(([a,o])=>`${String(a)} => ${String(o)}`).join(", ")} `:""}}`}}je.FrozenMap=d;class u{get size(){return e(this,i,"f").size}[(i=new WeakMap,Symbol.iterator)](){return e(this,i,"f")[Symbol.iterator]()}constructor(a){i.set(this,void 0),t(this,i,new Set(a),"f"),Object.freeze(this)}entries(){return e(this,i,"f").entries()}forEach(a,o){return e(this,i,"f").forEach((f,r,s)=>a.call(o,f,r,this))}has(a){return e(this,i,"f").has(a)}keys(){return e(this,i,"f").keys()}values(){return e(this,i,"f").values()}toString(){return`FrozenSet(${this.size}) {${this.size>0?` ${[...this.values()].map(a=>String(a)).join(", ")} `:""}}`}}return je.FrozenSet=u,Object.freeze(d),Object.freeze(d.prototype),Object.freeze(u),Object.freeze(u.prototype),je}var wr={},zs;function bu(){return zs||(zs=1,Object.defineProperty(wr,"__esModule",{value:!0})),wr}var Er={},Gs;function wu(){return Gs||(Gs=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getJsonRpcIdValidator=e.assertIsJsonRpcError=e.isJsonRpcError=e.assertIsJsonRpcFailure=e.isJsonRpcFailure=e.assertIsJsonRpcSuccess=e.isJsonRpcSuccess=e.assertIsJsonRpcResponse=e.isJsonRpcResponse=e.assertIsPendingJsonRpcResponse=e.isPendingJsonRpcResponse=e.JsonRpcResponseStruct=e.JsonRpcFailureStruct=e.JsonRpcSuccessStruct=e.PendingJsonRpcResponseStruct=e.assertIsJsonRpcRequest=e.isJsonRpcRequest=e.assertIsJsonRpcNotification=e.isJsonRpcNotification=e.JsonRpcNotificationStruct=e.JsonRpcRequestStruct=e.JsonRpcParamsStruct=e.JsonRpcErrorStruct=e.JsonRpcIdStruct=e.JsonRpcVersionStruct=e.jsonrpc2=e.getJsonSize=e.getSafeJson=e.isValidJson=e.JsonStruct=e.UnsafeJsonStruct=e.exactOptional=e.object=void 0;const t=qe(),n=Ke(),i=Kn(),d=p=>(0,t.object)(p);e.object=d;function u({path:p,branch:S}){const Y=p[p.length-1];return(0,i.hasProperty)(S[S.length-2],Y)}function c(p){return new t.Struct({...p,type:`optional ${p.type}`,validator:(S,Y)=>!u(Y)||p.validator(S,Y),refiner:(S,Y)=>!u(Y)||p.refiner(S,Y)})}e.exactOptional=c;const a=()=>(0,t.define)("finite number",p=>(0,t.is)(p,(0,t.number)())&&Number.isFinite(p));e.UnsafeJsonStruct=(0,t.union)([(0,t.literal)(null),(0,t.boolean)(),a(),(0,t.string)(),(0,t.array)((0,t.lazy)(()=>e.UnsafeJsonStruct)),(0,t.record)((0,t.string)(),(0,t.lazy)(()=>e.UnsafeJsonStruct))]),e.JsonStruct=(0,t.coerce)(e.UnsafeJsonStruct,(0,t.any)(),p=>((0,n.assertStruct)(p,e.UnsafeJsonStruct),JSON.parse(JSON.stringify(p,(S,Y)=>{if(!(S==="__proto__"||S==="constructor"))return Y}))));function o(p){try{return f(p),!0}catch{return!1}}e.isValidJson=o;function f(p){return(0,t.create)(p,e.JsonStruct)}e.getSafeJson=f;function r(p){(0,n.assertStruct)(p,e.JsonStruct,"Invalid JSON value");const S=JSON.stringify(p);return new TextEncoder().encode(S).byteLength}e.getJsonSize=r,e.jsonrpc2="2.0",e.JsonRpcVersionStruct=(0,t.literal)(e.jsonrpc2),e.JsonRpcIdStruct=(0,t.nullable)((0,t.union)([(0,t.number)(),(0,t.string)()])),e.JsonRpcErrorStruct=(0,e.object)({code:(0,t.integer)(),message:(0,t.string)(),data:c(e.JsonStruct),stack:c((0,t.string)())}),e.JsonRpcParamsStruct=(0,t.union)([(0,t.record)((0,t.string)(),e.JsonStruct),(0,t.array)(e.JsonStruct)]),e.JsonRpcRequestStruct=(0,e.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,method:(0,t.string)(),params:c(e.JsonRpcParamsStruct)}),e.JsonRpcNotificationStruct=(0,e.object)({jsonrpc:e.JsonRpcVersionStruct,method:(0,t.string)(),params:c(e.JsonRpcParamsStruct)});function s(p){return(0,t.is)(p,e.JsonRpcNotificationStruct)}e.isJsonRpcNotification=s;function l(p,S){(0,n.assertStruct)(p,e.JsonRpcNotificationStruct,"Invalid JSON-RPC notification",S)}e.assertIsJsonRpcNotification=l;function h(p){return(0,t.is)(p,e.JsonRpcRequestStruct)}e.isJsonRpcRequest=h;function w(p,S){(0,n.assertStruct)(p,e.JsonRpcRequestStruct,"Invalid JSON-RPC request",S)}e.assertIsJsonRpcRequest=w,e.PendingJsonRpcResponseStruct=(0,t.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,result:(0,t.optional)((0,t.unknown)()),error:(0,t.optional)(e.JsonRpcErrorStruct)}),e.JsonRpcSuccessStruct=(0,e.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,result:e.JsonStruct}),e.JsonRpcFailureStruct=(0,e.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,error:e.JsonRpcErrorStruct}),e.JsonRpcResponseStruct=(0,t.union)([e.JsonRpcSuccessStruct,e.JsonRpcFailureStruct]);function $(p){return(0,t.is)(p,e.PendingJsonRpcResponseStruct)}e.isPendingJsonRpcResponse=$;function U(p,S){(0,n.assertStruct)(p,e.PendingJsonRpcResponseStruct,"Invalid pending JSON-RPC response",S)}e.assertIsPendingJsonRpcResponse=U;function O(p){return(0,t.is)(p,e.JsonRpcResponseStruct)}e.isJsonRpcResponse=O;function J(p,S){(0,n.assertStruct)(p,e.JsonRpcResponseStruct,"Invalid JSON-RPC response",S)}e.assertIsJsonRpcResponse=J;function K(p){return(0,t.is)(p,e.JsonRpcSuccessStruct)}e.isJsonRpcSuccess=K;function _(p,S){(0,n.assertStruct)(p,e.JsonRpcSuccessStruct,"Invalid JSON-RPC success response",S)}e.assertIsJsonRpcSuccess=_;function E(p){return(0,t.is)(p,e.JsonRpcFailureStruct)}e.isJsonRpcFailure=E;function P(p,S){(0,n.assertStruct)(p,e.JsonRpcFailureStruct,"Invalid JSON-RPC failure response",S)}e.assertIsJsonRpcFailure=P;function D(p){return(0,t.is)(p,e.JsonRpcErrorStruct)}e.isJsonRpcError=D;function k(p,S){(0,n.assertStruct)(p,e.JsonRpcErrorStruct,"Invalid JSON-RPC error",S)}e.assertIsJsonRpcError=k;function B(p){const{permitEmptyString:S,permitFractions:Y,permitNull:x}={permitEmptyString:!0,permitFractions:!1,permitNull:!0,...p};return q=>!!(typeof q=="number"&&(Y||Number.isInteger(q))||typeof q=="string"&&(S||q.length>0)||x&&q===null)}e.getJsonRpcIdValidator=B})(Er)),Er}var Sr={},Js;function Eu(){return Js||(Js=1,Object.defineProperty(Sr,"__esModule",{value:!0})),Sr}var Ve={},Xs;function Su(){if(Xs)return Ve;Xs=1;var e=Ve&&Ve.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(Ve,"__esModule",{value:!0}),Ve.createModuleLogger=Ve.createProjectLogger=void 0;const n=(0,e(hc()).default)("metamask");function i(u){return n.extend(u)}Ve.createProjectLogger=i;function d(u,c){return u.extend(c)}return Ve.createModuleLogger=d,Ve}var Pe={},Ws;function vu(){if(Ws)return Pe;Ws=1,Object.defineProperty(Pe,"__esModule",{value:!0}),Pe.hexToBigInt=Pe.hexToNumber=Pe.bigIntToHex=Pe.numberToHex=void 0;const e=Ke(),t=zt(),n=c=>((0,e.assert)(typeof c=="number","Value must be a number."),(0,e.assert)(c>=0,"Value must be a non-negative number."),(0,e.assert)(Number.isSafeInteger(c),"Value is not a safe integer. Use `bigIntToHex` instead."),(0,t.add0x)(c.toString(16)));Pe.numberToHex=n;const i=c=>((0,e.assert)(typeof c=="bigint","Value must be a bigint."),(0,e.assert)(c>=0,"Value must be a non-negative bigint."),(0,t.add0x)(c.toString(16)));Pe.bigIntToHex=i;const d=c=>{(0,t.assertIsHexString)(c);const a=parseInt(c,16);return(0,e.assert)(Number.isSafeInteger(a),"Value is not a safe integer. Use `hexToBigInt` instead."),a};Pe.hexToNumber=d;const u=c=>((0,t.assertIsHexString)(c),BigInt((0,t.add0x)(c)));return Pe.hexToBigInt=u,Pe}var vr={},Ks;function $u(){return Ks||(Ks=1,Object.defineProperty(vr,"__esModule",{value:!0})),vr}var ht={},Ys;function Ru(){if(Ys)return ht;Ys=1,Object.defineProperty(ht,"__esModule",{value:!0}),ht.createDeferredPromise=void 0;function e({suppressUnhandledRejection:t=!1}={}){let n,i;const d=new Promise((u,c)=>{n=u,i=c});return t&&d.catch(u=>{}),{promise:d,resolve:n,reject:i}}return ht.createDeferredPromise=e,ht}var $r={},Zs;function Iu(){return Zs||(Zs=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.timeSince=e.inMilliseconds=e.Duration=void 0,(function(u){u[u.Millisecond=1]="Millisecond",u[u.Second=1e3]="Second",u[u.Minute=6e4]="Minute",u[u.Hour=36e5]="Hour",u[u.Day=864e5]="Day",u[u.Week=6048e5]="Week",u[u.Year=31536e6]="Year"})(e.Duration||(e.Duration={}));const t=u=>Number.isInteger(u)&&u>=0,n=(u,c)=>{if(!t(u))throw new Error(`"${c}" must be a non-negative integer. Received: "${u}".`)};function i(u,c){return n(u,"count"),u*c}e.inMilliseconds=i;function d(u){return n(u,"timestamp"),Date.now()-u}e.timeSince=d})($r)),$r}var Rr={},Qs;function _u(){return Qs||(Qs=1,Object.defineProperty(Rr,"__esModule",{value:!0})),Rr}var Ir={},Ot={exports:{}},_r,ei;function xt(){if(ei)return _r;ei=1;const e="2.0.0",t=256,n=Number.MAX_SAFE_INTEGER||9007199254740991,i=16,d=t-6;return _r={MAX_LENGTH:t,MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:d,MAX_SAFE_INTEGER:n,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},_r}var xr,ti;function Gt(){if(ti)return xr;ti=1;var e={};return xr=typeof pc=="object"&&e&&e.NODE_DEBUG&&/\bsemver\b/i.test(e.NODE_DEBUG)?(...n)=>console.error("SEMVER",...n):()=>{},xr}var ri;function At(){return ri||(ri=1,(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:d}=xt(),u=Gt();t=e.exports={};const c=t.re=[],a=t.safeRe=[],o=t.src=[],f=t.safeSrc=[],r=t.t={};let s=0;const l="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",d],[l,i]],w=U=>{for(const[O,J]of h)U=U.split(`${O}*`).join(`${O}{0,${J}}`).split(`${O}+`).join(`${O}{1,${J}}`);return U},$=(U,O,J)=>{const K=w(O),_=s++;u(U,_,O),r[U]=_,o[_]=O,f[_]=K,c[_]=new RegExp(O,J?"g":void 0),a[_]=new RegExp(K,J?"g":void 0)};$("NUMERICIDENTIFIER","0|[1-9]\\d*"),$("NUMERICIDENTIFIERLOOSE","\\d+"),$("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${l}*`),$("MAINVERSION",`(${o[r.NUMERICIDENTIFIER]})\\.(${o[r.NUMERICIDENTIFIER]})\\.(${o[r.NUMERICIDENTIFIER]})`),$("MAINVERSIONLOOSE",`(${o[r.NUMERICIDENTIFIERLOOSE]})\\.(${o[r.NUMERICIDENTIFIERLOOSE]})\\.(${o[r.NUMERICIDENTIFIERLOOSE]})`),$("PRERELEASEIDENTIFIER",`(?:${o[r.NONNUMERICIDENTIFIER]}|${o[r.NUMERICIDENTIFIER]})`),$("PRERELEASEIDENTIFIERLOOSE",`(?:${o[r.NONNUMERICIDENTIFIER]}|${o[r.NUMERICIDENTIFIERLOOSE]})`),$("PRERELEASE",`(?:-(${o[r.PRERELEASEIDENTIFIER]}(?:\\.${o[r.PRERELEASEIDENTIFIER]})*))`),$("PRERELEASELOOSE",`(?:-?(${o[r.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[r.PRERELEASEIDENTIFIERLOOSE]})*))`),$("BUILDIDENTIFIER",`${l}+`),$("BUILD",`(?:\\+(${o[r.BUILDIDENTIFIER]}(?:\\.${o[r.BUILDIDENTIFIER]})*))`),$("FULLPLAIN",`v?${o[r.MAINVERSION]}${o[r.PRERELEASE]}?${o[r.BUILD]}?`),$("FULL",`^${o[r.FULLPLAIN]}$`),$("LOOSEPLAIN",`[v=\\s]*${o[r.MAINVERSIONLOOSE]}${o[r.PRERELEASELOOSE]}?${o[r.BUILD]}?`),$("LOOSE",`^${o[r.LOOSEPLAIN]}$`),$("GTLT","((?:<|>)?=?)"),$("XRANGEIDENTIFIERLOOSE",`${o[r.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),$("XRANGEIDENTIFIER",`${o[r.NUMERICIDENTIFIER]}|x|X|\\*`),$("XRANGEPLAIN",`[v=\\s]*(${o[r.XRANGEIDENTIFIER]})(?:\\.(${o[r.XRANGEIDENTIFIER]})(?:\\.(${o[r.XRANGEIDENTIFIER]})(?:${o[r.PRERELEASE]})?${o[r.BUILD]}?)?)?`),$("XRANGEPLAINLOOSE",`[v=\\s]*(${o[r.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[r.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[r.XRANGEIDENTIFIERLOOSE]})(?:${o[r.PRERELEASELOOSE]})?${o[r.BUILD]}?)?)?`),$("XRANGE",`^${o[r.GTLT]}\\s*${o[r.XRANGEPLAIN]}$`),$("XRANGELOOSE",`^${o[r.GTLT]}\\s*${o[r.XRANGEPLAINLOOSE]}$`),$("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),$("COERCE",`${o[r.COERCEPLAIN]}(?:$|[^\\d])`),$("COERCEFULL",o[r.COERCEPLAIN]+`(?:${o[r.PRERELEASE]})?(?:${o[r.BUILD]})?(?:$|[^\\d])`),$("COERCERTL",o[r.COERCE],!0),$("COERCERTLFULL",o[r.COERCEFULL],!0),$("LONETILDE","(?:~>?)"),$("TILDETRIM",`(\\s*)${o[r.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",$("TILDE",`^${o[r.LONETILDE]}${o[r.XRANGEPLAIN]}$`),$("TILDELOOSE",`^${o[r.LONETILDE]}${o[r.XRANGEPLAINLOOSE]}$`),$("LONECARET","(?:\\^)"),$("CARETTRIM",`(\\s*)${o[r.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",$("CARET",`^${o[r.LONECARET]}${o[r.XRANGEPLAIN]}$`),$("CARETLOOSE",`^${o[r.LONECARET]}${o[r.XRANGEPLAINLOOSE]}$`),$("COMPARATORLOOSE",`^${o[r.GTLT]}\\s*(${o[r.LOOSEPLAIN]})$|^$`),$("COMPARATOR",`^${o[r.GTLT]}\\s*(${o[r.FULLPLAIN]})$|^$`),$("COMPARATORTRIM",`(\\s*)${o[r.GTLT]}\\s*(${o[r.LOOSEPLAIN]}|${o[r.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",$("HYPHENRANGE",`^\\s*(${o[r.XRANGEPLAIN]})\\s+-\\s+(${o[r.XRANGEPLAIN]})\\s*$`),$("HYPHENRANGELOOSE",`^\\s*(${o[r.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[r.XRANGEPLAINLOOSE]})\\s*$`),$("STAR","(<|>)?=?\\s*\\*"),$("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),$("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Ot,Ot.exports)),Ot.exports}var Ar,ni;function Zn(){if(ni)return Ar;ni=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return Ar=i=>i?typeof i!="object"?e:i:t,Ar}var Tr,si;function ya(){if(si)return Tr;si=1;const e=/^[0-9]+$/,t=(i,d)=>{if(typeof i=="number"&&typeof d=="number")return i===d?0:i<d?-1:1;const u=e.test(i),c=e.test(d);return u&&c&&(i=+i,d=+d),i===d?0:u&&!c?-1:c&&!u?1:i<d?-1:1};return Tr={compareIdentifiers:t,rcompareIdentifiers:(i,d)=>t(d,i)},Tr}var Cr,ii;function ve(){if(ii)return Cr;ii=1;const e=Gt(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:n}=xt(),{safeRe:i,t:d}=At(),u=Zn(),{compareIdentifiers:c}=ya(),a=(f,r)=>{const s=r.split(".");if(s.length>f.length)return!1;for(let l=0;l<s.length;l++)if(c(f[l],s[l])!==0)return!1;return!0};class o{constructor(r,s){if(s=u(s),r instanceof o){if(r.loose===!!s.loose&&r.includePrerelease===!!s.includePrerelease)return r;r=r.version}else if(typeof r!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof r}".`);if(r.length>t)throw new TypeError(`version is longer than ${t} characters`);e("SemVer",r,s),this.options=s,this.loose=!!s.loose,this.includePrerelease=!!s.includePrerelease;const l=r.trim().match(s.loose?i[d.LOOSE]:i[d.FULL]);if(!l)throw new TypeError(`Invalid Version: ${r}`);if(this.raw=r,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");l[4]?this.prerelease=l[4].split(".").map(h=>{if(/^[0-9]+$/.test(h)){const w=+h;if(w>=0&&w<n)return w}return h}):this.prerelease=[],this.build=l[5]?l[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(r){if(e("SemVer.compare",this.version,this.options,r),!(r instanceof o)){if(typeof r=="string"&&r===this.version)return 0;r=new o(r,this.options)}return r.version===this.version?0:this.compareMain(r)||this.comparePre(r)}compareMain(r){return r instanceof o||(r=new o(r,this.options)),this.major<r.major?-1:this.major>r.major?1:this.minor<r.minor?-1:this.minor>r.minor?1:this.patch<r.patch?-1:this.patch>r.patch?1:0}comparePre(r){if(r instanceof o||(r=new o(r,this.options)),this.prerelease.length&&!r.prerelease.length)return-1;if(!this.prerelease.length&&r.prerelease.length)return 1;if(!this.prerelease.length&&!r.prerelease.length)return 0;let s=0;do{const l=this.prerelease[s],h=r.prerelease[s];if(e("prerelease compare",s,l,h),l===void 0&&h===void 0)return 0;if(h===void 0)return 1;if(l===void 0)return-1;if(l===h)continue;return c(l,h)}while(++s)}compareBuild(r){r instanceof o||(r=new o(r,this.options));let s=0;do{const l=this.build[s],h=r.build[s];if(e("build compare",s,l,h),l===void 0&&h===void 0)return 0;if(h===void 0)return 1;if(l===void 0)return-1;if(l===h)continue;return c(l,h)}while(++s)}inc(r,s,l){if(r.startsWith("pre")){if(!s&&l===!1)throw new Error("invalid increment argument: identifier is empty");if(s){const h=`-${s}`.match(this.options.loose?i[d.PRERELEASELOOSE]:i[d.PRERELEASE]);if(!h||h[1]!==s)throw new Error(`invalid identifier: ${s}`)}}switch(r){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",s,l);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",s,l);break;case"prepatch":this.prerelease.length=0,this.inc("patch",s,l),this.inc("pre",s,l);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",s,l),this.inc("pre",s,l);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const h=Number(l)?1:0;if(this.prerelease.length===0)this.prerelease=[h];else{let w=this.prerelease.length;for(;--w>=0;)typeof this.prerelease[w]=="number"&&(this.prerelease[w]++,w=-2);if(w===-1){if(s===this.prerelease.join(".")&&l===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(h)}}if(s){let w=[s,h];if(l===!1&&(w=[s]),a(this.prerelease,s)){const $=this.prerelease[s.split(".").length];isNaN($)&&(this.prerelease=w)}else this.prerelease=w}break}default:throw new Error(`invalid increment argument: ${r}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return Cr=o,Cr}var jr,oi;function it(){if(oi)return jr;oi=1;const e=ve();return jr=(n,i,d=!1)=>{if(n instanceof e)return n;try{return new e(n,i)}catch(u){if(!d)return null;throw u}},jr}var Pr,ai;function xu(){if(ai)return Pr;ai=1;const e=it();return Pr=(n,i)=>{const d=e(n,i);return d?d.version:null},Pr}var Or,ci;function Au(){if(ci)return Or;ci=1;const e=it();return Or=(n,i)=>{const d=e(n.trim().replace(/^[=v]+/,""),i);return d?d.version:null},Or}var kr,ui;function Tu(){if(ui)return kr;ui=1;const e=ve();return kr=(n,i,d,u,c)=>{typeof d=="string"&&(c=u,u=d,d=void 0);try{return new e(n instanceof e?n.version:n,d).inc(i,u,c).version}catch{return null}},kr}var Br,li;function Cu(){if(li)return Br;li=1;const e=it();return Br=(n,i)=>{const d=e(n,null,!0),u=e(i,null,!0),c=d.compare(u);if(c===0)return null;const a=c>0,o=a?d:u,f=a?u:d,r=!!o.prerelease.length;if(!!f.prerelease.length&&!r){if(!f.patch&&!f.minor)return"major";if(f.compareMain(o)===0)return f.minor&&!f.patch?"minor":"patch"}const l=r?"pre":"";return d.major!==u.major?l+"major":d.minor!==u.minor?l+"minor":d.patch!==u.patch?l+"patch":"prerelease"},Br}var Lr,di;function ju(){if(di)return Lr;di=1;const e=ve();return Lr=(n,i)=>new e(n,i).major,Lr}var Nr,fi;function Pu(){if(fi)return Nr;fi=1;const e=ve();return Nr=(n,i)=>new e(n,i).minor,Nr}var Mr,hi;function Ou(){if(hi)return Mr;hi=1;const e=ve();return Mr=(n,i)=>new e(n,i).patch,Mr}var qr,pi;function ku(){if(pi)return qr;pi=1;const e=it();return qr=(n,i)=>{const d=e(n,i);return d&&d.prerelease.length?d.prerelease:null},qr}var Hr,gi;function Le(){if(gi)return Hr;gi=1;const e=ve();return Hr=(n,i,d)=>new e(n,d).compare(new e(i,d)),Hr}var Ur,mi;function Bu(){if(mi)return Ur;mi=1;const e=Le();return Ur=(n,i,d)=>e(i,n,d),Ur}var Dr,yi;function Lu(){if(yi)return Dr;yi=1;const e=Le();return Dr=(n,i)=>e(n,i,!0),Dr}var Fr,bi;function Qn(){if(bi)return Fr;bi=1;const e=ve();return Fr=(n,i,d)=>{const u=new e(n,d),c=new e(i,d);return u.compare(c)||u.compareBuild(c)},Fr}var Vr,wi;function Nu(){if(wi)return Vr;wi=1;const e=Qn();return Vr=(n,i)=>n.sort((d,u)=>e(d,u,i)),Vr}var zr,Ei;function Mu(){if(Ei)return zr;Ei=1;const e=Qn();return zr=(n,i)=>n.sort((d,u)=>e(u,d,i)),zr}var Gr,Si;function Jt(){if(Si)return Gr;Si=1;const e=Le();return Gr=(n,i,d)=>e(n,i,d)>0,Gr}var Jr,vi;function es(){if(vi)return Jr;vi=1;const e=Le();return Jr=(n,i,d)=>e(n,i,d)<0,Jr}var Xr,$i;function ba(){if($i)return Xr;$i=1;const e=Le();return Xr=(n,i,d)=>e(n,i,d)===0,Xr}var Wr,Ri;function wa(){if(Ri)return Wr;Ri=1;const e=Le();return Wr=(n,i,d)=>e(n,i,d)!==0,Wr}var Kr,Ii;function ts(){if(Ii)return Kr;Ii=1;const e=Le();return Kr=(n,i,d)=>e(n,i,d)>=0,Kr}var Yr,_i;function rs(){if(_i)return Yr;_i=1;const e=Le();return Yr=(n,i,d)=>e(n,i,d)<=0,Yr}var Zr,xi;function Ea(){if(xi)return Zr;xi=1;const e=ba(),t=wa(),n=Jt(),i=ts(),d=es(),u=rs();return Zr=(a,o,f,r)=>{switch(o){case"===":return typeof a=="object"&&(a=a.version),typeof f=="object"&&(f=f.version),a===f;case"!==":return typeof a=="object"&&(a=a.version),typeof f=="object"&&(f=f.version),a!==f;case"":case"=":case"==":return e(a,f,r);case"!=":return t(a,f,r);case">":return n(a,f,r);case">=":return i(a,f,r);case"<":return d(a,f,r);case"<=":return u(a,f,r);default:throw new TypeError(`Invalid operator: ${o}`)}},Zr}var Qr,Ai;function qu(){if(Ai)return Qr;Ai=1;const e=ve(),t=it(),{safeRe:n,t:i}=At();return Qr=(u,c)=>{if(u instanceof e)return u;if(typeof u=="number"&&(u=String(u)),typeof u!="string")return null;c=c||{};let a=null;if(!c.rtl)a=u.match(c.includePrerelease?n[i.COERCEFULL]:n[i.COERCE]);else{const h=c.includePrerelease?n[i.COERCERTLFULL]:n[i.COERCERTL];let w;for(;(w=h.exec(u))&&(!a||a.index+a[0].length!==u.length);)(!a||w.index+w[0].length!==a.index+a[0].length)&&(a=w),h.lastIndex=w.index+w[1].length+w[2].length;h.lastIndex=-1}if(a===null)return null;const o=a[2],f=a[3]||"0",r=a[4]||"0",s=c.includePrerelease&&a[5]?`-${a[5]}`:"",l=c.includePrerelease&&a[6]?`+${a[6]}`:"";return t(`${o}.${f}.${r}${s}${l}`,c)},Qr}var en,Ti;function Hu(){if(Ti)return en;Ti=1;const e=it(),t=xt(),n=ve(),i=(a,o,f)=>{if(!t.RELEASE_TYPES.includes(o))return null;const r=d(a,f);return r&&u(r,o)},d=(a,o)=>{const f=a instanceof n?a.version:a;return e(f,o)},u=(a,o)=>{if(c(o))return a.version;switch(a.prerelease=[],o){case"major":a.minor=0,a.patch=0;break;case"minor":a.patch=0;break}return a.format()},c=a=>a.startsWith("pre");return en=i,en}var tn,Ci;function Uu(){if(Ci)return tn;Ci=1;class e{constructor(){this.max=1e3,this.map=new Map}get(n){const i=this.map.get(n);if(i!==void 0)return this.map.delete(n),this.map.set(n,i),i}delete(n){return this.map.delete(n)}set(n,i){if(!this.delete(n)&&i!==void 0){if(this.map.size>=this.max){const u=this.map.keys().next().value;this.delete(u)}this.map.set(n,i)}return this}}return tn=e,tn}var rn,ji;function Ne(){if(ji)return rn;ji=1;const e=/\s+/g;class t{constructor(H,b){if(b=d(b),H instanceof t)return H.loose===!!b.loose&&H.includePrerelease===!!b.includePrerelease?H:new t(H.raw,b);if(H instanceof u)return this.raw=H.value,this.set=[[H]],this.formatted=void 0,this;if(this.options=b,this.loose=!!b.loose,this.includePrerelease=!!b.includePrerelease,this.raw=H.trim().replace(e," "),this.set=this.raw.split("||").map(g=>this.parseRange(g.trim())).filter(g=>g.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const g=this.set[0];if(this.set=this.set.filter(I=>!O(I[0])),this.set.length===0)this.set=[g];else if(this.set.length>1){for(const I of this.set)if(I.length===1&&J(I[0])){this.set=[I];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let H=0;H<this.set.length;H++){H>0&&(this.formatted+="||");const b=this.set[H];for(let g=0;g<b.length;g++)g>0&&(this.formatted+=" "),this.formatted+=b[g].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(H){H=H.replace(U,"");const g=((this.options.includePrerelease&&w)|(this.options.loose&&$))+":"+H,I=i.get(g);if(I)return I;const j=this.options.loose,N=j?o[r.HYPHENRANGELOOSE]:o[r.HYPHENRANGE];H=H.replace(N,q(this.options.includePrerelease)),c("hyphen replace",H),H=H.replace(o[r.COMPARATORTRIM],s),c("comparator trim",H),H=H.replace(o[r.TILDETRIM],l),c("tilde trim",H),H=H.replace(o[r.CARETTRIM],h),c("caret trim",H);let y=H.split(" ").map(V=>_(V,this.options)).join(" ").split(/\s+/).map(V=>M(V,this.options));j&&(y=y.filter(V=>(c("loose invalid filter",V,this.options),!!V.match(o[r.COMPARATORLOOSE])))),c("range list",y);const v=new Map,A=y.map(V=>new u(V,this.options));for(const V of A){if(O(V))return[V];v.set(V.value,V)}v.size>1&&v.has("")&&v.delete("");const X=[...v.values()];return i.set(g,X),X}intersects(H,b){if(!(H instanceof t))throw new TypeError("a Range is required");return this.set.some(g=>K(g,b)&&H.set.some(I=>K(I,b)&&g.every(j=>I.every(N=>j.intersects(N,b)))))}test(H){if(!H)return!1;if(typeof H=="string")try{H=new a(H,this.options)}catch{return!1}for(let b=0;b<this.set.length;b++)if(z(this.set[b],H,this.options))return!0;return!1}}rn=t;const n=Uu(),i=new n,d=Zn(),u=Xt(),c=Gt(),a=ve(),{safeRe:o,src:f,t:r,comparatorTrimReplace:s,tildeTrimReplace:l,caretTrimReplace:h}=At(),{FLAG_INCLUDE_PRERELEASE:w,FLAG_LOOSE:$}=xt(),U=new RegExp(f[r.BUILD],"g"),O=L=>L.value==="<0.0.0-0",J=L=>L.value==="",K=(L,H)=>{let b=!0;const g=L.slice();let I=g.pop();for(;b&&g.length;)b=g.every(j=>I.intersects(j,H)),I=g.pop();return b},_=(L,H)=>(L=L.replace(o[r.BUILD],""),c("comp",L,H),L=B(L,H),c("caret",L),L=D(L,H),c("tildes",L),L=S(L,H),c("xrange",L),L=x(L,H),c("stars",L),L),E=L=>!L||L.toLowerCase()==="x"||L==="*",P=(L,H,b)=>E(L)&&!E(H)||E(H)&&b&&!E(b),D=(L,H)=>L.trim().split(/\s+/).map(b=>k(b,H)).join(" "),k=(L,H)=>{const b=H.loose?o[r.TILDELOOSE]:o[r.TILDE],g=H.includePrerelease?"-0":"";return L.replace(b,(I,j,N,y,v)=>{c("tilde",L,I,j,N,y,v);let A;return E(j)?A="":E(N)?A=`>=${j}.0.0${g} <${+j+1}.0.0-0`:E(y)?A=`>=${j}.${N}.0${g} <${j}.${+N+1}.0-0`:v?(c("replaceTilde pr",v),A=`>=${j}.${N}.${y}-${v} <${j}.${+N+1}.0-0`):A=`>=${j}.${N}.${y} <${j}.${+N+1}.0-0`,c("tilde return",A),A})},B=(L,H)=>L.trim().split(/\s+/).map(b=>p(b,H)).join(" "),p=(L,H)=>{c("caret",L,H);const b=H.loose?o[r.CARETLOOSE]:o[r.CARET],g=H.includePrerelease?"-0":"";return L.replace(b,(I,j,N,y,v)=>{c("caret",L,I,j,N,y,v);let A;return E(j)?A="":E(N)?A=`>=${j}.0.0${g} <${+j+1}.0.0-0`:E(y)?j==="0"?A=`>=${j}.${N}.0${g} <${j}.${+N+1}.0-0`:A=`>=${j}.${N}.0${g} <${+j+1}.0.0-0`:v?(c("replaceCaret pr",v),j==="0"?N==="0"?A=`>=${j}.${N}.${y}-${v} <${j}.${N}.${+y+1}-0`:A=`>=${j}.${N}.${y}-${v} <${j}.${+N+1}.0-0`:A=`>=${j}.${N}.${y}-${v} <${+j+1}.0.0-0`):(c("no pr"),j==="0"?N==="0"?A=`>=${j}.${N}.${y} <${j}.${N}.${+y+1}-0`:A=`>=${j}.${N}.${y} <${j}.${+N+1}.0-0`:A=`>=${j}.${N}.${y} <${+j+1}.0.0-0`),c("caret return",A),A})},S=(L,H)=>(c("replaceXRanges",L,H),L.split(/\s+/).map(b=>Y(b,H)).join(" ")),Y=(L,H)=>{L=L.trim();const b=H.loose?o[r.XRANGELOOSE]:o[r.XRANGE];return L.replace(b,(g,I,j,N,y,v)=>{if(c("xRange",L,g,I,j,N,y,v),P(j,N,y))return L;const A=E(j),X=A||E(N),V=X||E(y),W=V;return I==="="&&W&&(I=""),v=H.includePrerelease?"-0":"",A?I===">"||I==="<"?g="<0.0.0-0":g="*":I&&W?(X&&(N=0),y=0,I===">"?(I=">=",X?(j=+j+1,N=0,y=0):(N=+N+1,y=0)):I==="<="&&(I="<",X?j=+j+1:N=+N+1),I==="<"&&(v="-0"),g=`${I+j}.${N}.${y}${v}`):X?g=`>=${j}.0.0${v} <${+j+1}.0.0-0`:V&&(g=`>=${j}.${N}.0${v} <${j}.${+N+1}.0-0`),c("xRange return",g),g})},x=(L,H)=>(c("replaceStars",L,H),L.trim().replace(o[r.STAR],"")),M=(L,H)=>(c("replaceGTE0",L,H),L.trim().replace(o[H.includePrerelease?r.GTE0PRE:r.GTE0],"")),q=L=>(H,b,g,I,j,N,y,v,A,X,V,W)=>(E(g)?b="":E(I)?b=`>=${g}.0.0${L?"-0":""}`:E(j)?b=`>=${g}.${I}.0${L?"-0":""}`:N?b=`>=${b}`:b=`>=${b}${L?"-0":""}`,E(A)?v="":E(X)?v=`<${+A+1}.0.0-0`:E(V)?v=`<${A}.${+X+1}.0-0`:W?v=`<=${A}.${X}.${V}-${W}`:L?v=`<${A}.${X}.${+V+1}-0`:v=`<=${v}`,`${b} ${v}`.trim()),z=(L,H,b)=>{for(let g=0;g<L.length;g++)if(!L[g].test(H))return!1;if(H.prerelease.length&&!b.includePrerelease){for(let g=0;g<L.length;g++)if(c(L[g].semver),L[g].semver!==u.ANY&&L[g].semver.prerelease.length>0){const I=L[g].semver;if(I.major===H.major&&I.minor===H.minor&&I.patch===H.patch)return!0}return!1}return!0};return rn}var nn,Pi;function Xt(){if(Pi)return nn;Pi=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(r,s){if(s=n(s),r instanceof t){if(r.loose===!!s.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),c("comparator",r,s),this.options=s,this.loose=!!s.loose,this.parse(r),this.semver===e?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(r){const s=this.options.loose?i[d.COMPARATORLOOSE]:i[d.COMPARATOR],l=r.match(s);if(!l)throw new TypeError(`Invalid comparator: ${r}`);this.operator=l[1]!==void 0?l[1]:"",this.operator==="="&&(this.operator=""),l[2]?this.semver=new a(l[2],this.options.loose):this.semver=e}toString(){return this.value}test(r){if(c("Comparator.test",r,this.options.loose),this.semver===e||r===e)return!0;if(typeof r=="string")try{r=new a(r,this.options)}catch{return!1}return u(r,this.operator,this.semver,this.options)}intersects(r,s){if(!(r instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new o(r.value,s).test(this.value):r.operator===""?r.value===""?!0:new o(this.value,s).test(r.semver):(s=n(s),s.includePrerelease&&(this.value==="<0.0.0-0"||r.value==="<0.0.0-0")||!s.includePrerelease&&(this.value.startsWith("<0.0.0")||r.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&r.operator.startsWith(">")||this.operator.startsWith("<")&&r.operator.startsWith("<")||this.semver.version===r.semver.version&&this.operator.includes("=")&&r.operator.includes("=")||u(this.semver,"<",r.semver,s)&&this.operator.startsWith(">")&&r.operator.startsWith("<")||u(this.semver,">",r.semver,s)&&this.operator.startsWith("<")&&r.operator.startsWith(">")))}}nn=t;const n=Zn(),{safeRe:i,t:d}=At(),u=Ea(),c=Gt(),a=ve(),o=Ne();return nn}var sn,Oi;function Wt(){if(Oi)return sn;Oi=1;const e=Ne();return sn=(n,i,d)=>{try{i=new e(i,d)}catch{return!1}return i.test(n)},sn}var on,ki;function Du(){if(ki)return on;ki=1;const e=Ne();return on=(n,i)=>new e(n,i).set.map(d=>d.map(u=>u.value).join(" ").trim().split(" ")),on}var an,Bi;function Fu(){if(Bi)return an;Bi=1;const e=ve(),t=Ne();return an=(i,d,u)=>{let c=null,a=null,o=null;try{o=new t(d,u)}catch{return null}return i.forEach(f=>{o.test(f)&&(!c||a.compare(f)===-1)&&(c=f,a=new e(c,u))}),c},an}var cn,Li;function Vu(){if(Li)return cn;Li=1;const e=ve(),t=Ne();return cn=(i,d,u)=>{let c=null,a=null,o=null;try{o=new t(d,u)}catch{return null}return i.forEach(f=>{o.test(f)&&(!c||a.compare(f)===1)&&(c=f,a=new e(c,u))}),c},cn}var un,Ni;function zu(){if(Ni)return un;Ni=1;const e=ve(),t=Ne(),n=Jt();return un=(d,u)=>{d=new t(d,u);let c=new e("0.0.0");if(d.test(c)||(c=new e("0.0.0-0"),d.test(c)))return c;c=null;for(let a=0;a<d.set.length;++a){const o=d.set[a];let f=null;o.forEach(r=>{const s=new e(r.semver.version);switch(r.operator){case">":s.prerelease.length===0?s.patch++:s.prerelease.push(0),s.raw=s.format();case"":case">=":(!f||n(s,f))&&(f=s);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${r.operator}`)}}),f&&(!c||n(c,f))&&(c=f)}return c&&d.test(c)?c:null},un}var ln,Mi;function Gu(){if(Mi)return ln;Mi=1;const e=Ne();return ln=(n,i)=>{try{return new e(n,i).range||"*"}catch{return null}},ln}var dn,qi;function ns(){if(qi)return dn;qi=1;const e=ve(),t=Xt(),{ANY:n}=t,i=Ne(),d=Wt(),u=Jt(),c=es(),a=rs(),o=ts();return dn=(r,s,l,h)=>{r=new e(r,h),s=new i(s,h);let w,$,U,O,J;switch(l){case">":w=u,$=a,U=c,O=">",J=">=";break;case"<":w=c,$=o,U=u,O="<",J="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(d(r,s,h))return!1;for(let K=0;K<s.set.length;++K){const _=s.set[K];let E=null,P=null;if(_.forEach(D=>{D.semver===n&&(D=new t(">=0.0.0")),E=E||D,P=P||D,w(D.semver,E.semver,h)?E=D:U(D.semver,P.semver,h)&&(P=D)}),E.operator===O||E.operator===J||(!P.operator||P.operator===O)&&$(r,P.semver))return!1;if(P.operator===J&&U(r,P.semver))return!1}return!0},dn}var fn,Hi;function Ju(){if(Hi)return fn;Hi=1;const e=ns();return fn=(n,i,d)=>e(n,i,">",d),fn}var hn,Ui;function Xu(){if(Ui)return hn;Ui=1;const e=ns();return hn=(n,i,d)=>e(n,i,"<",d),hn}var pn,Di;function Wu(){if(Di)return pn;Di=1;const e=Ne();return pn=(n,i,d)=>(n=new e(n,d),i=new e(i,d),n.intersects(i,d)),pn}var gn,Fi;function Ku(){if(Fi)return gn;Fi=1;const e=Wt(),t=Le();return gn=(n,i,d)=>{const u=[];let c=null,a=null;const o=n.sort((l,h)=>t(l,h,d));for(const l of o)e(l,i,d)?(a=l,c||(c=l)):(a&&u.push([c,a]),a=null,c=null);c&&u.push([c,null]);const f=[];for(const[l,h]of u)l===h?f.push(l):!h&&l===o[0]?f.push("*"):h?l===o[0]?f.push(`<=${h}`):f.push(`${l} - ${h}`):f.push(`>=${l}`);const r=f.join(" || "),s=typeof i.raw=="string"?i.raw:String(i);return r.length<s.length?r:i},gn}var mn,Vi;function Yu(){if(Vi)return mn;Vi=1;const e=Ne(),t=Xt(),{ANY:n}=t,i=Wt(),d=Le(),u=(s,l,h={})=>{if(s===l)return!0;s=new e(s,h),l=new e(l,h);let w=!1;e:for(const $ of s.set){for(const U of l.set){const O=o($,U,h);if(w=w||O!==null,O)continue e}if(w)return!1}return!0},c=[new t(">=0.0.0-0")],a=[new t(">=0.0.0")],o=(s,l,h)=>{if(s===l)return!0;if(s.length===1&&s[0].semver===n){if(l.length===1&&l[0].semver===n)return!0;h.includePrerelease?s=c:s=a}if(l.length===1&&l[0].semver===n){if(h.includePrerelease)return!0;l=a}const w=new Set;let $,U;for(const k of s)k.operator===">"||k.operator===">="?$=f($,k,h):k.operator==="<"||k.operator==="<="?U=r(U,k,h):w.add(k.semver);if(w.size>1)return null;let O;if($&&U){if(O=d($.semver,U.semver,h),O>0)return null;if(O===0&&($.operator!==">="||U.operator!=="<="))return null}for(const k of w){if($&&!i(k,String($),h)||U&&!i(k,String(U),h))return null;for(const B of l)if(!i(k,String(B),h))return!1;return!0}let J,K,_,E,P=U&&!h.includePrerelease&&U.semver.prerelease.length?U.semver:!1,D=$&&!h.includePrerelease&&$.semver.prerelease.length?$.semver:!1;P&&P.prerelease.length===1&&U.operator==="<"&&P.prerelease[0]===0&&(P=!1);for(const k of l){if(E=E||k.operator===">"||k.operator===">=",_=_||k.operator==="<"||k.operator==="<=",$){if(D&&k.semver.prerelease&&k.semver.prerelease.length&&k.semver.major===D.major&&k.semver.minor===D.minor&&k.semver.patch===D.patch&&(D=!1),k.operator===">"||k.operator===">="){if(J=f($,k,h),J===k&&J!==$)return!1}else if($.operator===">="&&!k.test($.semver))return!1}if(U){if(P&&k.semver.prerelease&&k.semver.prerelease.length&&k.semver.major===P.major&&k.semver.minor===P.minor&&k.semver.patch===P.patch&&(P=!1),k.operator==="<"||k.operator==="<="){if(K=r(U,k,h),K===k&&K!==U)return!1}else if(U.operator==="<="&&!k.test(U.semver))return!1}if(!k.operator&&(U||$)&&O!==0)return!1}return!($&&_&&!U&&O!==0||U&&E&&!$&&O!==0||D||P)},f=(s,l,h)=>{if(!s)return l;const w=d(s.semver,l.semver,h);return w>0?s:w<0||l.operator===">"&&s.operator===">="?l:s},r=(s,l,h)=>{if(!s)return l;const w=d(s.semver,l.semver,h);return w<0?s:w>0||l.operator==="<"&&s.operator==="<="?l:s};return mn=u,mn}var yn,zi;function Zu(){if(zi)return yn;zi=1;const e=At(),t=xt(),n=ve(),i=ya(),d=it(),u=xu(),c=Au(),a=Tu(),o=Cu(),f=ju(),r=Pu(),s=Ou(),l=ku(),h=Le(),w=Bu(),$=Lu(),U=Qn(),O=Nu(),J=Mu(),K=Jt(),_=es(),E=ba(),P=wa(),D=ts(),k=rs(),B=Ea(),p=qu(),S=Hu(),Y=Xt(),x=Ne(),M=Wt(),q=Du(),z=Fu(),L=Vu(),H=zu(),b=Gu(),g=ns(),I=Ju(),j=Xu(),N=Wu(),y=Ku(),v=Yu();return yn={parse:d,valid:u,clean:c,inc:a,diff:o,major:f,minor:r,patch:s,prerelease:l,compare:h,rcompare:w,compareLoose:$,compareBuild:U,sort:O,rsort:J,gt:K,lt:_,eq:E,neq:P,gte:D,lte:k,cmp:B,coerce:p,truncate:S,Comparator:Y,Range:x,satisfies:M,toComparators:q,maxSatisfying:z,minSatisfying:L,minVersion:H,validRange:b,outside:g,gtr:I,ltr:j,intersects:N,simplifyRange:y,subset:v,SemVer:n,re:e.re,src:e.src,tokens:e.t,SEMVER_SPEC_VERSION:t.SEMVER_SPEC_VERSION,RELEASE_TYPES:t.RELEASE_TYPES,compareIdentifiers:i.compareIdentifiers,rcompareIdentifiers:i.rcompareIdentifiers},yn}var Gi;function Qu(){return Gi||(Gi=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.satisfiesVersionRange=e.gtRange=e.gtVersion=e.assertIsSemVerRange=e.assertIsSemVerVersion=e.isValidSemVerRange=e.isValidSemVerVersion=e.VersionRangeStruct=e.VersionStruct=void 0;const t=qe(),n=Zu(),i=Ke();e.VersionStruct=(0,t.refine)((0,t.string)(),"Version",s=>(0,n.valid)(s)===null?`Expected SemVer version, got "${s}"`:!0),e.VersionRangeStruct=(0,t.refine)((0,t.string)(),"Version range",s=>(0,n.validRange)(s)===null?`Expected SemVer range, got "${s}"`:!0);function d(s){return(0,t.is)(s,e.VersionStruct)}e.isValidSemVerVersion=d;function u(s){return(0,t.is)(s,e.VersionRangeStruct)}e.isValidSemVerRange=u;function c(s){(0,i.assertStruct)(s,e.VersionStruct)}e.assertIsSemVerVersion=c;function a(s){(0,i.assertStruct)(s,e.VersionRangeStruct)}e.assertIsSemVerRange=a;function o(s,l){return(0,n.gt)(s,l)}e.gtVersion=o;function f(s,l){return(0,n.gtr)(s,l)}e.gtRange=f;function r(s,l){return(0,n.satisfies)(s,l,{includePrerelease:!0})}e.satisfiesVersionRange=r})(Ir)),Ir}var Ji;function Ie(){return Ji||(Ji=1,(function(e){var t=et&&et.__createBinding||(Object.create?(function(i,d,u,c){c===void 0&&(c=u);var a=Object.getOwnPropertyDescriptor(d,u);(!a||("get"in a?!d.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return d[u]}}),Object.defineProperty(i,c,a)}):(function(i,d,u,c){c===void 0&&(c=u),i[c]=d[u]})),n=et&&et.__exportStar||function(i,d){for(var u in i)u!=="default"&&!Object.prototype.hasOwnProperty.call(d,u)&&t(d,i,u)};Object.defineProperty(e,"__esModule",{value:!0}),n(Ke(),e),n(ma(),e),n(Yn(),e),n(pu(),e),n(gu(),e),n(mu(),e),n(yu(),e),n(bu(),e),n(ga(),e),n(zt(),e),n(wu(),e),n(Eu(),e),n(Su(),e),n(Kn(),e),n(vu(),e),n($u(),e),n(Ru(),e),n(Iu(),e),n(_u(),e),n(Qu(),e)})(et)),et}var bn={},Xi;function He(){return Xi||(Xi=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ParserError=e.getErrorStack=e.getErrorMessage=void 0;const t=Ie(),n=u=>typeof u=="string"?u:u instanceof Error||(0,t.isObject)(u)&&(0,t.hasProperty)(u,"message")&&typeof u.message=="string"?u.message:"Unknown error.";e.getErrorMessage=n;const i=u=>{if(u instanceof Error)return u.stack};e.getErrorStack=i;class d extends Error{constructor(c,a){super(c),this.name="ParserError";const o=(0,e.getErrorStack)(a);o&&(this.stack=o)}}e.ParserError=d})(bn)),bn}var wn={},pt={},Wi;function el(){if(Wi)return pt;Wi=1,Object.defineProperty(pt,"__esModule",{value:!0}),pt.iterate=void 0;const e=Ie(),t=function*(n,i=32){for(let d=0;d<n.length;d+=i){const u=a=>{(0,e.assert)(a>=0,"Cannot skip a negative number of bytes."),(0,e.assert)(a%i===0,"Length must be a multiple of the size."),d+=a},c=n.subarray(d);yield{skip:u,value:c}}return{skip:()=>{},value:new Uint8Array}};return pt.iterate=t,pt}var rt={},En={},nt={},ze={},Ki;function tl(){if(Ki)return ze;Ki=1,Object.defineProperty(ze,"__esModule",{value:!0}),ze.padEnd=ze.padStart=ze.set=void 0;const e=Ie(),t=32,n=(u,c,a)=>(0,e.concatBytes)([u.subarray(0,a),c,u.subarray(a+c.length)]);ze.set=n;const i=(u,c=t)=>{const a=new Uint8Array(Math.max(c-u.length,0)).fill(0);return(0,e.concatBytes)([a,u])};ze.padStart=i;const d=(u,c=t)=>{const a=new Uint8Array(Math.max(c-u.length,0)).fill(0);return(0,e.concatBytes)([u,a])};return ze.padEnd=d,ze}var Yi;function ct(){return Yi||(Yi=1,(function(e){var t=nt&&nt.__createBinding||(Object.create?(function(i,d,u,c){c===void 0&&(c=u);var a=Object.getOwnPropertyDescriptor(d,u);(!a||("get"in a?!d.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return d[u]}}),Object.defineProperty(i,c,a)}):(function(i,d,u,c){c===void 0&&(c=u),i[c]=d[u]})),n=nt&&nt.__exportStar||function(i,d){for(var u in i)u!=="default"&&!Object.prototype.hasOwnProperty.call(d,u)&&t(d,i,u)};Object.defineProperty(e,"__esModule",{value:!0}),n(tl(),e)})(nt)),nt}var Zi;function rl(){return Zi||(Zi=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.address=e.getAddress=void 0;const t=Ie(),n=He(),i=ct(),d=u=>{const c=(0,t.createBytes)(u);return(0,t.assert)(c.length<=20,new n.ParserError(`Invalid address value. Expected address to be 20 bytes long, but received ${c.length} bytes.`)),(0,i.padStart)(c,20)};e.getAddress=d,e.address={isDynamic:!1,isType:u=>u==="address",getByteLength(){return 32},encode({buffer:u,value:c,packed:a}){const o=(0,e.getAddress)(c);if(a)return(0,t.concatBytes)([u,o]);const f=(0,i.padStart)(o);return(0,t.concatBytes)([u,f])},decode({value:u}){return(0,t.add0x)((0,t.bytesToHex)(u.slice(12,32)))}}})(En)),En}var Sn={},vn={},Qi;function ss(){return Qi||(Qi=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.fixedBytes=e.getByteLength=void 0;const t=Ie(),n=He(),i=ct(),d=/^bytes([0-9]{1,2})$/u,u=c=>{var f;const a=(f=c.match(d))==null?void 0:f[1];(0,t.assert)(a,`Invalid byte length. Expected a number between 1 and 32, but received "${c}".`);const o=Number(a);return(0,t.assert)(o>0&&o<=32,new n.ParserError(`Invalid byte length. Expected a number between 1 and 32, but received "${c}".`)),o};e.getByteLength=u,e.fixedBytes={isDynamic:!1,isType(c){return d.test(c)},getByteLength(){return 32},encode({type:c,buffer:a,value:o,packed:f}){const r=(0,e.getByteLength)(c),s=(0,t.createBytes)(o);return(0,t.assert)(s.length<=r,new n.ParserError(`Expected a value of length ${r}, but received a value of length ${s.length}.`)),f?(0,t.concatBytes)([a,(0,i.padEnd)(s,r)]):(0,t.concatBytes)([a,(0,i.padEnd)(s)])},decode({type:c,value:a}){const o=(0,e.getByteLength)(c);return a.slice(0,o)}}})(vn)),vn}var $n={},eo;function Sa(){return eo||(eo=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.tuple=e.getTupleElements=void 0;const t=Ie(),n=He(),i=is(),d=/^\((.+)\)$/u,u=a=>d.test(a),c=a=>{(0,t.assert)(a.startsWith("(")&&a.endsWith(")"),new n.ParserError(`Invalid tuple type. Expected tuple type, but received "${a}".`));const o=[];let f="",r=0;for(let s=1;s<a.length-1;s++){const l=a[s];l===","&&r===0?(o.push(f.trim()),f=""):(f+=l,l==="("?r+=1:l===")"&&(r-=1))}return f.trim()&&o.push(f.trim()),o};e.getTupleElements=c,e.tuple={isDynamic(a){return(0,e.getTupleElements)(a).some(f=>{const r=(0,i.getParser)(f);return(0,i.isDynamicParser)(r,f)})},isType(a){return u(a)},getByteLength(a){return(0,i.isDynamicParser)(this,a)?32:(0,e.getTupleElements)(a).reduce((f,r)=>f+(0,i.getParser)(r).getByteLength(r),0)},encode({type:a,buffer:o,value:f,packed:r,tight:s}){const l=(0,e.getTupleElements)(a);return(0,i.pack)({types:l,values:f,byteArray:o,packed:r,tight:s})},decode({type:a,value:o,skip:f}){const r=(0,e.getTupleElements)(a),s=this.getByteLength(a)-32;return f(s),(0,i.unpack)(r,o)}}})($n)),$n}var to;function nl(){return to||(to=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.array=e.getTupleType=e.getArrayType=e.isArrayType=void 0;const t=Ie(),n=He(),i=is(),d=ct(),u=ss(),c=Sa(),a=/^(?<type>.*)\[(?<length>\d*?)\]$/u,o=s=>a.test(s);e.isArrayType=o;const f=s=>{var h;const l=s.match(a);return(0,t.assert)((h=l==null?void 0:l.groups)==null?void 0:h.type,new n.ParserError(`Invalid array type. Expected an array type, but received "${s}".`)),[l.groups.type,l.groups.length?parseInt(l.groups.length,10):void 0]};e.getArrayType=f;const r=(s,l)=>`(${new Array(l).fill(s).join(",")})`;e.getTupleType=r,e.array={isDynamic(s){const[l,h]=(0,e.getArrayType)(s);return h===void 0||(0,i.isDynamicParser)((0,i.getParser)(l),l)},isType(s){return(0,e.isArrayType)(s)},getByteLength(s){(0,t.assert)((0,e.isArrayType)(s),new n.ParserError(`Expected an array type, but received "${s}".`));const[l,h]=(0,e.getArrayType)(s);return!(0,i.isDynamicParser)(this,s)&&h!==void 0?c.tuple.getByteLength((0,e.getTupleType)(l,h)):32},encode({type:s,buffer:l,value:h,packed:w,tight:$}){const[U,O]=(0,e.getArrayType)(s);if((0,t.assert)(!w||!(0,e.isArrayType)(U),new n.ParserError("Cannot pack nested arrays.")),w&&(0,i.isDynamicParser)((0,i.getParser)(U),U))return(0,i.pack)({types:new Array(h.length).fill(U),values:h,byteArray:l,packed:w,arrayPacked:!0,tight:$});if(O)return(0,t.assert)(O===h.length,new n.ParserError(`Array length does not match type length. Expected a length of ${O}, but received ${h.length}.`)),c.tuple.encode({type:(0,e.getTupleType)(U,O),buffer:l,value:h,packed:u.fixedBytes.isType(U)&&$,tight:$});if(w)return(0,i.pack)({types:new Array(h.length).fill(U),values:h,byteArray:l,packed:u.fixedBytes.isType(U)&&$,arrayPacked:!0,tight:$});const J=(0,d.padStart)((0,t.numberToBytes)(h.length));return(0,i.pack)({types:new Array(h.length).fill(U),values:h,byteArray:(0,t.concatBytes)([l,J]),packed:w,tight:$})},decode({type:s,value:l,...h}){const[w,$]=(0,e.getArrayType)(s);if($){const O=c.tuple.decode({type:(0,e.getTupleType)(w,$),value:l,...h});return(0,t.assert)(O.length===$,new n.ParserError(`Array length does not match type length. Expected a length of ${$}, but received ${O.length}.`)),O}const U=(0,t.bytesToNumber)(l.subarray(0,32));return(0,i.unpack)(new Array(U).fill(w),l.subarray(32))}}})(Sn)),Sn}var Rn={},In={},ro;function va(){return ro||(ro=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.number=e.getBigInt=e.assertNumberLength=e.getLength=e.isSigned=void 0;const t=Ie(),n=He(),i=ct(),d=/^u?int(?<length>[0-9]*)?$/u,u=f=>!f.startsWith("u");e.isSigned=u;const c=f=>{var l;if(f==="int"||f==="uint")return 256;const r=f.match(d);(0,t.assert)((l=r==null?void 0:r.groups)==null?void 0:l.length,new n.ParserError(`Invalid number type. Expected a number type, but received "${f}".`));const s=parseInt(r.groups.length,10);return(0,t.assert)(s>=8&&s<=256,new n.ParserError(`Invalid number length. Expected a number between 8 and 256, but received "${f}".`)),(0,t.assert)(s%8===0,new n.ParserError(`Invalid number length. Expected a multiple of 8, but received "${f}".`)),s};e.getLength=c;const a=(f,r)=>{const s=(0,e.getLength)(r),l=BigInt(2)**BigInt(s-((0,e.isSigned)(r)?1:0))-BigInt(1);if((0,e.isSigned)(r)){(0,t.assert)(f>=-(l+BigInt(1))&&f<=l,new n.ParserError(`Number "${f}" is out of range for type "${r}".`));return}(0,t.assert)(f<=l,new n.ParserError(`Number "${f}" is out of range for type "${r}".`))};e.assertNumberLength=a;const o=f=>{try{return(0,t.createBigInt)(f)}catch{throw new n.ParserError(`Invalid number. Expected a valid number value, but received "${f}".`)}};e.getBigInt=o,e.number={isDynamic:!1,isType(f){return d.test(f)},getByteLength(){return 32},encode({type:f,buffer:r,value:s,packed:l}){const h=(0,e.getBigInt)(s);if((0,e.assertNumberLength)(h,f),(0,e.isSigned)(f)){if(l){const w=(0,e.getLength)(f)/8;return(0,t.concatBytes)([r,(0,t.signedBigIntToBytes)(h,w)])}return(0,t.concatBytes)([r,(0,i.padStart)((0,t.signedBigIntToBytes)(h,32))])}if(l){const w=(0,e.getLength)(f)/8;return(0,t.concatBytes)([r,(0,i.padStart)((0,t.bigIntToBytes)(h),w)])}return(0,t.concatBytes)([r,(0,i.padStart)((0,t.bigIntToBytes)(h))])},decode({type:f,value:r}){const s=r.subarray(0,32);if((0,e.isSigned)(f)){const h=(0,t.bytesToSignedBigInt)(s);return(0,e.assertNumberLength)(h,f),h}const l=(0,t.bytesToBigInt)(s);return(0,e.assertNumberLength)(l,f),l}}})(In)),In}var no;function sl(){return no||(no=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.bool=e.getBooleanValue=void 0;const t=qe(),n=Ie(),i=He(),d=va(),u=(0,t.coerce)((0,t.boolean)(),(0,t.union)([(0,t.literal)("true"),(0,t.literal)("false")]),a=>a==="true"),c=a=>{try{return(0,t.create)(a,u)?BigInt(1):BigInt(0)}catch{throw new i.ParserError(`Invalid boolean value. Expected a boolean literal, or the string "true" or "false", but received "${a}".`)}};e.getBooleanValue=c,e.bool={isDynamic:!1,isType:a=>a==="bool",getByteLength(){return 32},encode({buffer:a,value:o,packed:f,tight:r}){const s=(0,e.getBooleanValue)(o);return f?(0,n.concatBytes)([a,(0,n.bigIntToBytes)(s)]):d.number.encode({type:"uint256",buffer:a,value:s,packed:f,tight:r})},decode(a){return d.number.decode({...a,type:"uint256"})===BigInt(1)}}})(Rn)),Rn}var gt={},so;function $a(){if(so)return gt;so=1,Object.defineProperty(gt,"__esModule",{value:!0}),gt.bytes=void 0;const e=Ie(),t=ct();return gt.bytes={isDynamic:!0,isType:n=>n==="bytes",getByteLength(){return 32},encode({buffer:n,value:i,packed:d}){const u=(0,e.createBytes)(i);if(d)return(0,e.concatBytes)([n,u]);const c=Math.ceil(u.byteLength/32)*32;return(0,e.concatBytes)([n,(0,t.padStart)((0,e.numberToBytes)(u.byteLength)),(0,t.padEnd)(u,c)])},decode({value:n}){const i=n.subarray(0,32),d=(0,e.bytesToNumber)(i);return n.slice(32,32+d)}},gt}var _n={},io;function il(){return io||(io=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.fn=e.getFunction=void 0;const t=qe(),n=Ie(),i=He(),d=ss(),u=(0,t.coerce)((0,t.object)({address:n.StrictHexStruct,selector:n.StrictHexStruct}),(0,t.union)([n.StrictHexStruct,(0,t.instance)(Uint8Array)]),a=>{const o=(0,n.createBytes)(a);return(0,n.assert)(o.length===24,new i.ParserError(`Invalid Solidity function. Expected function to be 24 bytes long, but received ${o.length} bytes.`)),{address:(0,n.bytesToHex)(o.subarray(0,20)),selector:(0,n.bytesToHex)(o.subarray(20,24))}}),c=a=>{const o=(0,t.create)(a,u);return(0,n.concatBytes)([(0,n.hexToBytes)(o.address),(0,n.hexToBytes)(o.selector)])};e.getFunction=c,e.fn={isDynamic:!1,isType:a=>a==="function",getByteLength(){return 32},encode({buffer:a,value:o,packed:f,tight:r}){const s=(0,e.getFunction)(o);return d.fixedBytes.encode({type:"bytes24",buffer:a,value:s,packed:f,tight:r})},decode({value:a}){return{address:(0,n.bytesToHex)(a.slice(0,20)),selector:(0,n.bytesToHex)(a.slice(20,24))}}}})(_n)),_n}var xn={},oo;function ol(){return oo||(oo=1,Object.defineProperty(xn,"__esModule",{value:!0})),xn}var mt={},ao;function al(){if(ao)return mt;ao=1,Object.defineProperty(mt,"__esModule",{value:!0}),mt.string=void 0;const e=Ie(),t=$a();return mt.string={isDynamic:!0,isType:n=>n==="string",getByteLength(){return 32},encode({buffer:n,value:i,packed:d,tight:u}){return t.bytes.encode({type:"bytes",buffer:n,value:(0,e.stringToBytes)(i),packed:d,tight:u})},decode(n){return(0,e.bytesToString)(t.bytes.decode(n))}},mt}var co;function cl(){return co||(co=1,(function(e){var t=rt&&rt.__createBinding||(Object.create?(function(i,d,u,c){c===void 0&&(c=u);var a=Object.getOwnPropertyDescriptor(d,u);(!a||("get"in a?!d.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return d[u]}}),Object.defineProperty(i,c,a)}):(function(i,d,u,c){c===void 0&&(c=u),i[c]=d[u]})),n=rt&&rt.__exportStar||function(i,d){for(var u in i)u!=="default"&&!Object.prototype.hasOwnProperty.call(d,u)&&t(d,i,u)};Object.defineProperty(e,"__esModule",{value:!0}),n(rl(),e),n(nl(),e),n(sl(),e),n($a(),e),n(ss(),e),n(il(),e),n(va(),e),n(ol(),e),n(al(),e),n(Sa(),e)})(rt)),rt}var uo;function is(){return uo||(uo=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.unpack=e.pack=e.isDynamicParser=e.getParser=void 0;const t=Ie(),n=He(),i=el(),d=cl(),u=ct(),c=r=>{const s={address:d.address,array:d.array,bool:d.bool,bytes:d.bytes,fixedBytes:d.fixedBytes,function:d.fn,number:d.number,string:d.string,tuple:d.tuple},l=s[r];if(l)return l;const h=Object.values(s).find(w=>w.isType(r));if(h)return h;throw new n.ParserError(`The type "${r}" is not supported.`)};e.getParser=c;const a=(r,s)=>{const{isDynamic:l}=r;return typeof l=="function"?l(s):l};e.isDynamicParser=a;const o=({types:r,values:s,packed:l=!1,tight:h=!1,arrayPacked:w=!1,byteArray:$=new Uint8Array})=>{(0,t.assert)(r.length===s.length,new n.ParserError(`The number of types (${r.length}) does not match the number of values (${s.length}).`));const{staticBuffer:U,dynamicBuffer:O,pointers:J}=r.reduce(({staticBuffer:E,dynamicBuffer:P,pointers:D},k,B)=>{const p=(0,e.getParser)(k),S=s[B];if(l||w||!(0,e.isDynamicParser)(p,k))return{staticBuffer:p.encode({buffer:E,value:S,type:k,packed:l,tight:h}),dynamicBuffer:P,pointers:D};const Y=(0,t.concatBytes)([E,new Uint8Array(32)]),x=p.encode({buffer:P,value:S,type:k,packed:l,tight:h});return{staticBuffer:Y,dynamicBuffer:x,pointers:[...D,{position:E.length,pointer:P.length}]}},{staticBuffer:new Uint8Array,dynamicBuffer:new Uint8Array,pointers:[]});(0,t.assert)(!l&&!w||O.length===0,new n.ParserError("Invalid pack state."));const K=U.length,_=J.reduce((E,{pointer:P,position:D})=>{const k=(0,u.padStart)((0,t.numberToBytes)(K+P));return(0,u.set)(E,k,D)},U);return(0,t.concatBytes)([$,_,O])};e.pack=o;const f=(r,s)=>{const l=(0,i.iterate)(s);return r.map(h=>{const{value:{value:w,skip:$},done:U}=l.next();(0,t.assert)(!U,new n.ParserError(`The encoded value is invalid for the provided types. Reached end of buffer while attempting to parse "${h}".`));const O=(0,e.getParser)(h);if((0,e.isDynamicParser)(O,h)){const K=(0,t.bytesToNumber)(w.subarray(0,32)),_=s.subarray(K);return O.decode({type:h,value:_,skip:$})}return O.decode({type:h,value:w,skip:$})})};e.unpack=f})(wn)),wn}var lo;function ul(){return lo||(lo=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeSingle=e.decode=e.encodePacked=e.encodeSingle=e.encode=void 0;const t=Ie(),n=He(),i=is(),d=(f,r,s,l)=>{try{return(0,i.pack)({types:f,values:r,packed:s,tight:l})}catch(h){throw h instanceof n.ParserError?new n.ParserError(`Unable to encode value: ${h.message}`,h):new n.ParserError(`An unexpected error occurred: ${(0,n.getErrorMessage)(h)}`,h)}};e.encode=d;const u=(f,r)=>(0,e.encode)([f],[r]);e.encodeSingle=u;const c=(f,r,s)=>(0,e.encode)(f,r,!0,s);e.encodePacked=c;const a=(f,r)=>{const s=(0,t.createBytes)(r);try{return(0,i.unpack)(f,s)}catch(l){throw l instanceof n.ParserError?new n.ParserError(`Unable to decode value: ${l.message}`,l):new n.ParserError(`An unexpected error occurred: ${(0,n.getErrorMessage)(l)}`,l)}};e.decode=a;const o=(f,r)=>{const s=(0,e.decode)([f],r);return(0,t.assert)(s.length===1,new n.ParserError("Decoded value array has unexpected length.")),s[0]};e.decodeSingle=o})(hr)),hr}var st={},An={},fo;function ll(){return fo||(fo=1,Object.defineProperty(An,"__esModule",{value:!0})),An}var ho;function dl(){return ho||(ho=1,(function(e){var t=st&&st.__createBinding||(Object.create?(function(i,d,u,c){c===void 0&&(c=u);var a=Object.getOwnPropertyDescriptor(d,u);(!a||("get"in a?!d.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return d[u]}}),Object.defineProperty(i,c,a)}):(function(i,d,u,c){c===void 0&&(c=u),i[c]=d[u]})),n=st&&st.__exportStar||function(i,d){for(var u in i)u!=="default"&&!Object.prototype.hasOwnProperty.call(d,u)&&t(d,i,u)};Object.defineProperty(e,"__esModule",{value:!0}),n(ll(),e)})(st)),st}var po;function Ra(){return po||(po=1,(function(e){var t=Qe&&Qe.__createBinding||(Object.create?(function(i,d,u,c){c===void 0&&(c=u);var a=Object.getOwnPropertyDescriptor(d,u);(!a||("get"in a?!d.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return d[u]}}),Object.defineProperty(i,c,a)}):(function(i,d,u,c){c===void 0&&(c=u),i[c]=d[u]})),n=Qe&&Qe.__exportStar||function(i,d){for(var u in i)u!=="default"&&!Object.prototype.hasOwnProperty.call(d,u)&&t(d,i,u)};Object.defineProperty(e,"__esModule",{value:!0}),n(ul(),e),n(He(),e),n(dl(),e)})(Qe)),Qe}var Oe={},Tn={},ce={},go;function fl(){if(go)return ce;go=1;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(ce,"__esModule",{value:!0}),ce.notImplemented=ce.bitMask=void 0,ce.isBytes=n,ce.abytes=i,ce.abool=d,ce.numberToHexUnpadded=u,ce.hexToNumber=c,ce.bytesToHex=f,ce.hexToBytes=l,ce.bytesToNumberBE=h,ce.bytesToNumberLE=w,ce.numberToBytesBE=$,ce.numberToBytesLE=U,ce.numberToVarBytesBE=O,ce.ensureBytes=J,ce.concatBytes=K,ce.equalBytes=_,ce.utf8ToBytes=E,ce.inRange=D,ce.aInRange=k,ce.bitLen=B,ce.bitGet=p,ce.bitSet=S,ce.createHmacDrbg=q,ce.validateObject=L,ce.memoized=b;const e=BigInt(0),t=BigInt(1);function n(g){return g instanceof Uint8Array||ArrayBuffer.isView(g)&&g.constructor.name==="Uint8Array"}function i(g){if(!n(g))throw new Error("Uint8Array expected")}function d(g,I){if(typeof I!="boolean")throw new Error(g+" boolean expected, got "+I)}function u(g){const I=g.toString(16);return I.length&1?"0"+I:I}function c(g){if(typeof g!="string")throw new Error("hex string expected, got "+typeof g);return g===""?e:BigInt("0x"+g)}const a=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",o=Array.from({length:256},(g,I)=>I.toString(16).padStart(2,"0"));function f(g){if(i(g),a)return g.toHex();let I="";for(let j=0;j<g.length;j++)I+=o[g[j]];return I}const r={_0:48,_9:57,A:65,F:70,a:97,f:102};function s(g){if(g>=r._0&&g<=r._9)return g-r._0;if(g>=r.A&&g<=r.F)return g-(r.A-10);if(g>=r.a&&g<=r.f)return g-(r.a-10)}function l(g){if(typeof g!="string")throw new Error("hex string expected, got "+typeof g);if(a)return Uint8Array.fromHex(g);const I=g.length,j=I/2;if(I%2)throw new Error("hex string expected, got unpadded hex of length "+I);const N=new Uint8Array(j);for(let y=0,v=0;y<j;y++,v+=2){const A=s(g.charCodeAt(v)),X=s(g.charCodeAt(v+1));if(A===void 0||X===void 0){const V=g[v]+g[v+1];throw new Error('hex string expected, got non-hex character "'+V+'" at index '+v)}N[y]=A*16+X}return N}function h(g){return c(f(g))}function w(g){return i(g),c(f(Uint8Array.from(g).reverse()))}function $(g,I){return l(g.toString(16).padStart(I*2,"0"))}function U(g,I){return $(g,I).reverse()}function O(g){return l(u(g))}function J(g,I,j){let N;if(typeof I=="string")try{N=l(I)}catch(v){throw new Error(g+" must be hex string or Uint8Array, cause: "+v)}else if(n(I))N=Uint8Array.from(I);else throw new Error(g+" must be hex string or Uint8Array");const y=N.length;if(typeof j=="number"&&y!==j)throw new Error(g+" of length "+j+" expected, got "+y);return N}function K(...g){let I=0;for(let N=0;N<g.length;N++){const y=g[N];i(y),I+=y.length}const j=new Uint8Array(I);for(let N=0,y=0;N<g.length;N++){const v=g[N];j.set(v,y),y+=v.length}return j}function _(g,I){if(g.length!==I.length)return!1;let j=0;for(let N=0;N<g.length;N++)j|=g[N]^I[N];return j===0}function E(g){if(typeof g!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(g))}const P=g=>typeof g=="bigint"&&e<=g;function D(g,I,j){return P(g)&&P(I)&&P(j)&&I<=g&&g<j}function k(g,I,j,N){if(!D(I,j,N))throw new Error("expected valid "+g+": "+j+" <= n < "+N+", got "+I)}function B(g){let I;for(I=0;g>e;g>>=t,I+=1);return I}function p(g,I){return g>>BigInt(I)&t}function S(g,I,j){return g|(j?t:e)<<BigInt(I)}const Y=g=>(t<<BigInt(g))-t;ce.bitMask=Y;const x=g=>new Uint8Array(g),M=g=>Uint8Array.from(g);function q(g,I,j){if(typeof g!="number"||g<2)throw new Error("hashLen must be a number");if(typeof I!="number"||I<2)throw new Error("qByteLen must be a number");if(typeof j!="function")throw new Error("hmacFn must be a function");let N=x(g),y=x(g),v=0;const A=()=>{N.fill(1),y.fill(0),v=0},X=(...ne)=>j(y,N,...ne),V=(ne=x(0))=>{y=X(M([0]),ne),N=X(),ne.length!==0&&(y=X(M([1]),ne),N=X())},W=()=>{if(v++>=1e3)throw new Error("drbg: tried 1000 values");let ne=0;const G=[];for(;ne<I;){N=X();const ie=N.slice();G.push(ie),ne+=N.length}return K(...G)};return(ne,G)=>{A(),V(ne);let ie;for(;!(ie=G(W()));)V();return A(),ie}}const z={bigint:g=>typeof g=="bigint",function:g=>typeof g=="function",boolean:g=>typeof g=="boolean",string:g=>typeof g=="string",stringOrUint8Array:g=>typeof g=="string"||n(g),isSafeInteger:g=>Number.isSafeInteger(g),array:g=>Array.isArray(g),field:(g,I)=>I.Fp.isValid(g),hash:g=>typeof g=="function"&&Number.isSafeInteger(g.outputLen)};function L(g,I,j={}){const N=(y,v,A)=>{const X=z[v];if(typeof X!="function")throw new Error("invalid validator function");const V=g[y];if(!(A&&V===void 0)&&!X(V,g))throw new Error("param "+String(y)+" is invalid. Expected "+v+", got "+V)};for(const[y,v]of Object.entries(I))N(y,v,!1);for(const[y,v]of Object.entries(j))N(y,v,!0);return g}const H=()=>{throw new Error("not implemented")};ce.notImplemented=H;function b(g){const I=new WeakMap;return(j,...N)=>{const y=I.get(j);if(y!==void 0)return y;const v=g(j,...N);return I.set(j,v),v}}return ce}var ke={},Cn={},yt={},mo;function hl(){return mo||(mo=1,Object.defineProperty(yt,"__esModule",{value:!0}),yt.crypto=void 0,yt.crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0),yt}var yo;function Ut(){return yo||(yo=1,(function(e){/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(e,"__esModule",{value:!0}),e.wrapXOFConstructorWithOpts=e.wrapConstructorWithOpts=e.wrapConstructor=e.Hash=e.nextTick=e.swap32IfBE=e.byteSwapIfBE=e.swap8IfBE=e.isLE=void 0,e.isBytes=n,e.anumber=i,e.abytes=d,e.ahash=u,e.aexists=c,e.aoutput=a,e.u8=o,e.u32=f,e.clean=r,e.createView=s,e.rotr=l,e.rotl=h,e.byteSwap=w,e.byteSwap32=$,e.bytesToHex=J,e.hexToBytes=E,e.asyncLoop=D,e.utf8ToBytes=k,e.bytesToUtf8=B,e.toBytes=p,e.kdfInputToBytes=S,e.concatBytes=Y,e.checkOpts=x,e.createHasher=q,e.createOptHasher=z,e.createXOFer=L,e.randomBytes=H;const t=hl();function n(b){return b instanceof Uint8Array||ArrayBuffer.isView(b)&&b.constructor.name==="Uint8Array"}function i(b){if(!Number.isSafeInteger(b)||b<0)throw new Error("positive integer expected, got "+b)}function d(b,...g){if(!n(b))throw new Error("Uint8Array expected");if(g.length>0&&!g.includes(b.length))throw new Error("Uint8Array expected of length "+g+", got length="+b.length)}function u(b){if(typeof b!="function"||typeof b.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");i(b.outputLen),i(b.blockLen)}function c(b,g=!0){if(b.destroyed)throw new Error("Hash instance has been destroyed");if(g&&b.finished)throw new Error("Hash#digest() has already been called")}function a(b,g){d(b);const I=g.outputLen;if(b.length<I)throw new Error("digestInto() expects output buffer of length at least "+I)}function o(b){return new Uint8Array(b.buffer,b.byteOffset,b.byteLength)}function f(b){return new Uint32Array(b.buffer,b.byteOffset,Math.floor(b.byteLength/4))}function r(...b){for(let g=0;g<b.length;g++)b[g].fill(0)}function s(b){return new DataView(b.buffer,b.byteOffset,b.byteLength)}function l(b,g){return b<<32-g|b>>>g}function h(b,g){return b<<g|b>>>32-g>>>0}e.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function w(b){return b<<24&4278190080|b<<8&16711680|b>>>8&65280|b>>>24&255}e.swap8IfBE=e.isLE?b=>b:b=>w(b),e.byteSwapIfBE=e.swap8IfBE;function $(b){for(let g=0;g<b.length;g++)b[g]=w(b[g]);return b}e.swap32IfBE=e.isLE?b=>b:$;const U=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",O=Array.from({length:256},(b,g)=>g.toString(16).padStart(2,"0"));function J(b){if(d(b),U)return b.toHex();let g="";for(let I=0;I<b.length;I++)g+=O[b[I]];return g}const K={_0:48,_9:57,A:65,F:70,a:97,f:102};function _(b){if(b>=K._0&&b<=K._9)return b-K._0;if(b>=K.A&&b<=K.F)return b-(K.A-10);if(b>=K.a&&b<=K.f)return b-(K.a-10)}function E(b){if(typeof b!="string")throw new Error("hex string expected, got "+typeof b);if(U)return Uint8Array.fromHex(b);const g=b.length,I=g/2;if(g%2)throw new Error("hex string expected, got unpadded hex of length "+g);const j=new Uint8Array(I);for(let N=0,y=0;N<I;N++,y+=2){const v=_(b.charCodeAt(y)),A=_(b.charCodeAt(y+1));if(v===void 0||A===void 0){const X=b[y]+b[y+1];throw new Error('hex string expected, got non-hex character "'+X+'" at index '+y)}j[N]=v*16+A}return j}const P=async()=>{};e.nextTick=P;async function D(b,g,I){let j=Date.now();for(let N=0;N<b;N++){I(N);const y=Date.now()-j;y>=0&&y<g||(await(0,e.nextTick)(),j+=y)}}function k(b){if(typeof b!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(b))}function B(b){return new TextDecoder().decode(b)}function p(b){return typeof b=="string"&&(b=k(b)),d(b),b}function S(b){return typeof b=="string"&&(b=k(b)),d(b),b}function Y(...b){let g=0;for(let j=0;j<b.length;j++){const N=b[j];d(N),g+=N.length}const I=new Uint8Array(g);for(let j=0,N=0;j<b.length;j++){const y=b[j];I.set(y,N),N+=y.length}return I}function x(b,g){if(g!==void 0&&{}.toString.call(g)!=="[object Object]")throw new Error("options should be object or undefined");return Object.assign(b,g)}class M{}e.Hash=M;function q(b){const g=j=>b().update(p(j)).digest(),I=b();return g.outputLen=I.outputLen,g.blockLen=I.blockLen,g.create=()=>b(),g}function z(b){const g=(j,N)=>b(N).update(p(j)).digest(),I=b({});return g.outputLen=I.outputLen,g.blockLen=I.blockLen,g.create=j=>b(j),g}function L(b){const g=(j,N)=>b(N).update(p(j)).digest(),I=b({});return g.outputLen=I.outputLen,g.blockLen=I.blockLen,g.create=j=>b(j),g}e.wrapConstructor=q,e.wrapConstructorWithOpts=z,e.wrapXOFConstructorWithOpts=L;function H(b=32){if(t.crypto&&typeof t.crypto.getRandomValues=="function")return t.crypto.getRandomValues(new Uint8Array(b));if(t.crypto&&typeof t.crypto.randomBytes=="function")return Uint8Array.from(t.crypto.randomBytes(b));throw new Error("crypto.getRandomValues must be defined")}})(Cn)),Cn}var bo;function pl(){if(bo)return ke;bo=1,Object.defineProperty(ke,"__esModule",{value:!0}),ke.aoutput=ke.anumber=ke.aexists=ke.abytes=void 0;const e=Ut();return ke.abytes=e.abytes,ke.aexists=e.aexists,ke.anumber=e.anumber,ke.aoutput=e.aoutput,ke}var wo;function Ia(){return wo||(wo=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.assertBytes=e.assertBool=e.utf8ToBytes=e.toHex=e.createView=e.concatBytes=e.bytesToHex=void 0,e.bytesToUtf8=u,e.hexToBytes=c,e.equalsBytes=a,e.wrapHash=o;const t=fl();Object.defineProperty(e,"assertBool",{enumerable:!0,get:function(){return t.abool}});const n=pl();Object.defineProperty(e,"assertBytes",{enumerable:!0,get:function(){return n.abytes}});const i=Ut();var d=Ut();Object.defineProperty(e,"bytesToHex",{enumerable:!0,get:function(){return d.bytesToHex}}),Object.defineProperty(e,"concatBytes",{enumerable:!0,get:function(){return d.concatBytes}}),Object.defineProperty(e,"createView",{enumerable:!0,get:function(){return d.createView}}),Object.defineProperty(e,"toHex",{enumerable:!0,get:function(){return d.bytesToHex}}),Object.defineProperty(e,"utf8ToBytes",{enumerable:!0,get:function(){return d.utf8ToBytes}});function u(f){if(!(f instanceof Uint8Array))throw new TypeError(`bytesToUtf8 expected Uint8Array, got ${typeof f}`);return new TextDecoder().decode(f)}function c(f){const r=f.startsWith("0x")?f.substring(2):f;return(0,i.hexToBytes)(r)}function a(f,r){if(f.length!==r.length)return!1;for(let s=0;s<f.length;s++)if(f[s]!==r[s])return!1;return!0}function o(f){return r=>((0,n.abytes)(r),f(r))}})(Tn)),Tn}var Eo;function Tt(){if(Eo)return Oe;Eo=1,Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.compare=Oe.concat=Oe.toHex=Oe.toBytes=void 0;const e=Ia();function t(u){return u instanceof Uint8Array?u:typeof u=="string"?(0,e.hexToBytes)(u):new Uint8Array(u)}Oe.toBytes=t;function n(u){return typeof u=="string"?((0,e.hexToBytes)(u),u.replace(/^(0x)?/,"0x")):u instanceof Uint8Array?"0x"+(0,e.bytesToHex)(u):"0x"+(0,e.bytesToHex)(new Uint8Array(u))}Oe.toHex=n;function i(u){return(0,e.concatBytes)(...u.map(t))}Oe.concat=i;function d(u,c){const a=BigInt(n(u))-BigInt(n(c));return a>0?1:a<0?-1:0}return Oe.compare=d,Oe}var Se={},Ge={},Be={},de={},re={},So;function gl(){if(So)return re;So=1,Object.defineProperty(re,"__esModule",{value:!0}),re.toBig=re.shrSL=re.shrSH=re.rotrSL=re.rotrSH=re.rotrBL=re.rotrBH=re.rotr32L=re.rotr32H=re.rotlSL=re.rotlSH=re.rotlBL=re.rotlBH=re.add5L=re.add5H=re.add4L=re.add4H=re.add3L=re.add3H=void 0,re.add=O,re.fromBig=n,re.split=i;const e=BigInt(2**32-1),t=BigInt(32);function n(B,p=!1){return p?{h:Number(B&e),l:Number(B>>t&e)}:{h:Number(B>>t&e)|0,l:Number(B&e)|0}}function i(B,p=!1){const S=B.length;let Y=new Uint32Array(S),x=new Uint32Array(S);for(let M=0;M<S;M++){const{h:q,l:z}=n(B[M],p);[Y[M],x[M]]=[q,z]}return[Y,x]}const d=(B,p)=>BigInt(B>>>0)<<t|BigInt(p>>>0);re.toBig=d;const u=(B,p,S)=>B>>>S;re.shrSH=u;const c=(B,p,S)=>B<<32-S|p>>>S;re.shrSL=c;const a=(B,p,S)=>B>>>S|p<<32-S;re.rotrSH=a;const o=(B,p,S)=>B<<32-S|p>>>S;re.rotrSL=o;const f=(B,p,S)=>B<<64-S|p>>>S-32;re.rotrBH=f;const r=(B,p,S)=>B>>>S-32|p<<64-S;re.rotrBL=r;const s=(B,p)=>p;re.rotr32H=s;const l=(B,p)=>B;re.rotr32L=l;const h=(B,p,S)=>B<<S|p>>>32-S;re.rotlSH=h;const w=(B,p,S)=>p<<S|B>>>32-S;re.rotlSL=w;const $=(B,p,S)=>p<<S-32|B>>>64-S;re.rotlBH=$;const U=(B,p,S)=>B<<S-32|p>>>64-S;re.rotlBL=U;function O(B,p,S,Y){const x=(p>>>0)+(Y>>>0);return{h:B+S+(x/2**32|0)|0,l:x|0}}const J=(B,p,S)=>(B>>>0)+(p>>>0)+(S>>>0);re.add3L=J;const K=(B,p,S,Y)=>p+S+Y+(B/2**32|0)|0;re.add3H=K;const _=(B,p,S,Y)=>(B>>>0)+(p>>>0)+(S>>>0)+(Y>>>0);re.add4L=_;const E=(B,p,S,Y,x)=>p+S+Y+x+(B/2**32|0)|0;re.add4H=E;const P=(B,p,S,Y,x)=>(B>>>0)+(p>>>0)+(S>>>0)+(Y>>>0)+(x>>>0);re.add5L=P;const D=(B,p,S,Y,x,M)=>p+S+Y+x+M+(B/2**32|0)|0;re.add5H=D;const k={fromBig:n,split:i,toBig:d,shrSH:u,shrSL:c,rotrSH:a,rotrSL:o,rotrBH:f,rotrBL:r,rotr32H:s,rotr32L:l,rotlSH:h,rotlSL:w,rotlBH:$,rotlBL:U,add:O,add3L:J,add3H:K,add4L:_,add4H:E,add5H:D,add5L:P};return re.default=k,re}var vo;function ml(){if(vo)return de;vo=1,Object.defineProperty(de,"__esModule",{value:!0}),de.shake256=de.shake128=de.keccak_512=de.keccak_384=de.keccak_256=de.keccak_224=de.sha3_512=de.sha3_384=de.sha3_256=de.sha3_224=de.Keccak=void 0,de.keccakP=U;const e=gl(),t=Ut(),n=BigInt(0),i=BigInt(1),d=BigInt(2),u=BigInt(7),c=BigInt(256),a=BigInt(113),o=[],f=[],r=[];for(let _=0,E=i,P=1,D=0;_<24;_++){[P,D]=[D,(2*P+3*D)%5],o.push(2*(5*D+P)),f.push((_+1)*(_+2)/2%64);let k=n;for(let B=0;B<7;B++)E=(E<<i^(E>>u)*a)%c,E&d&&(k^=i<<(i<<BigInt(B))-i);r.push(k)}const s=(0,e.split)(r,!0),l=s[0],h=s[1],w=(_,E,P)=>P>32?(0,e.rotlBH)(_,E,P):(0,e.rotlSH)(_,E,P),$=(_,E,P)=>P>32?(0,e.rotlBL)(_,E,P):(0,e.rotlSL)(_,E,P);function U(_,E=24){const P=new Uint32Array(10);for(let D=24-E;D<24;D++){for(let p=0;p<10;p++)P[p]=_[p]^_[p+10]^_[p+20]^_[p+30]^_[p+40];for(let p=0;p<10;p+=2){const S=(p+8)%10,Y=(p+2)%10,x=P[Y],M=P[Y+1],q=w(x,M,1)^P[S],z=$(x,M,1)^P[S+1];for(let L=0;L<50;L+=10)_[p+L]^=q,_[p+L+1]^=z}let k=_[2],B=_[3];for(let p=0;p<24;p++){const S=f[p],Y=w(k,B,S),x=$(k,B,S),M=o[p];k=_[M],B=_[M+1],_[M]=Y,_[M+1]=x}for(let p=0;p<50;p+=10){for(let S=0;S<10;S++)P[S]=_[p+S];for(let S=0;S<10;S++)_[p+S]^=~P[(S+2)%10]&P[(S+4)%10]}_[0]^=l[D],_[1]^=h[D]}(0,t.clean)(P)}class O extends t.Hash{constructor(E,P,D,k=!1,B=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=E,this.suffix=P,this.outputLen=D,this.enableXOF=k,this.rounds=B,(0,t.anumber)(D),!(0<E&&E<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=(0,t.u32)(this.state)}clone(){return this._cloneInto()}keccak(){(0,t.swap32IfBE)(this.state32),U(this.state32,this.rounds),(0,t.swap32IfBE)(this.state32),this.posOut=0,this.pos=0}update(E){(0,t.aexists)(this),E=(0,t.toBytes)(E),(0,t.abytes)(E);const{blockLen:P,state:D}=this,k=E.length;for(let B=0;B<k;){const p=Math.min(P-this.pos,k-B);for(let S=0;S<p;S++)D[this.pos++]^=E[B++];this.pos===P&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:E,suffix:P,pos:D,blockLen:k}=this;E[D]^=P,(P&128)!==0&&D===k-1&&this.keccak(),E[k-1]^=128,this.keccak()}writeInto(E){(0,t.aexists)(this,!1),(0,t.abytes)(E),this.finish();const P=this.state,{blockLen:D}=this;for(let k=0,B=E.length;k<B;){this.posOut>=D&&this.keccak();const p=Math.min(D-this.posOut,B-k);E.set(P.subarray(this.posOut,this.posOut+p),k),this.posOut+=p,k+=p}return E}xofInto(E){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(E)}xof(E){return(0,t.anumber)(E),this.xofInto(new Uint8Array(E))}digestInto(E){if((0,t.aoutput)(E,this),this.finished)throw new Error("digest() was already called");return this.writeInto(E),this.destroy(),E}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,(0,t.clean)(this.state)}_cloneInto(E){const{blockLen:P,suffix:D,outputLen:k,rounds:B,enableXOF:p}=this;return E||(E=new O(P,D,k,p,B)),E.state32.set(this.state32),E.pos=this.pos,E.posOut=this.posOut,E.finished=this.finished,E.rounds=B,E.suffix=D,E.outputLen=k,E.enableXOF=p,E.destroyed=this.destroyed,E}}de.Keccak=O;const J=(_,E,P)=>(0,t.createHasher)(()=>new O(E,_,P));de.sha3_224=J(6,144,224/8),de.sha3_256=J(6,136,256/8),de.sha3_384=J(6,104,384/8),de.sha3_512=J(6,72,512/8),de.keccak_224=J(1,144,224/8),de.keccak_256=J(1,136,256/8),de.keccak_384=J(1,104,384/8),de.keccak_512=J(1,72,512/8);const K=(_,E,P)=>(0,t.createXOFer)((D={})=>new O(E,_,D.dkLen===void 0?P:D.dkLen,!0));return de.shake128=K(31,168,128/8),de.shake256=K(31,136,256/8),de}var $o;function yl(){if($o)return Be;$o=1,Object.defineProperty(Be,"__esModule",{value:!0}),Be.keccak512=Be.keccak384=Be.keccak256=Be.keccak224=void 0;const e=ml(),t=Ia();return Be.keccak224=(0,t.wrapHash)(e.keccak_224),Be.keccak256=(()=>{const n=(0,t.wrapHash)(e.keccak_256);return n.create=e.keccak_256.create,n})(),Be.keccak384=(0,t.wrapHash)(e.keccak_384),Be.keccak512=(0,t.wrapHash)(e.keccak_512),Be}var Ro;function _a(){if(Ro)return Ge;Ro=1,Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.standardNodeHash=Ge.standardLeafHash=Ge.keccak256=void 0;const e=Ra(),t=yl(),n=Tt();function i(c){return(0,n.toHex)((0,t.keccak256)((0,n.toBytes)(c)))}Ge.keccak256=i;function d(c,a){return i(i((0,e.encode)(c,a)))}Ge.standardLeafHash=d;function u(c,a){return i((0,n.concat)([c,a].sort(n.compare)))}return Ge.standardNodeHash=u,Ge}var xe={},Io;function Kt(){if(Io)return xe;Io=1,Object.defineProperty(xe,"__esModule",{value:!0}),xe.invariant=xe.validateArgument=xe.InvalidArgumentError=xe.InvariantError=xe.throwError=void 0;function e(u){throw new Error(u)}xe.throwError=e;class t extends Error{constructor(c){super(c),this.name="InvariantError"}}xe.InvariantError=t;class n extends Error{constructor(c){super(c),this.name="InvalidArgumentError"}}xe.InvalidArgumentError=n;function i(u,c){if(!u)throw new n(c)}xe.validateArgument=i;function d(u,c){if(!u)throw new t(c)}return xe.invariant=d,xe}var _o;function os(){if(_o)return Se;_o=1,Object.defineProperty(Se,"__esModule",{value:!0}),Se.renderMerkleTree=Se.isValidMerkleTree=Se.processMultiProof=Se.getMultiProof=Se.processProof=Se.getProof=Se.makeMerkleTree=void 0;const e=Tt(),t=_a(),n=Kt(),i=_=>2*_+1,d=_=>2*_+2,u=_=>_>0?Math.floor((_-1)/2):(0,n.throwError)("Root has no parent"),c=_=>_>0?_-(-1)**(_%2):(0,n.throwError)("Root has no siblings"),a=(_,E)=>E>=0&&E<_.length,o=(_,E)=>a(_,i(E)),f=(_,E)=>a(_,E)&&!o(_,E),r=_=>(0,e.toBytes)(_).length===32,s=(_,E)=>void(f(_,E)||(0,n.throwError)("Index is not a leaf")),l=_=>void(r(_)||(0,n.throwError)("Merkle tree nodes must be Uint8Array of length 32"));function h(_,E=t.standardNodeHash){_.forEach(l),(0,n.validateArgument)(_.length!==0,"Expected non-zero number of leaves");const P=new Array(2*_.length-1);for(const[D,k]of _.entries())P[P.length-1-D]=(0,e.toHex)(k);for(let D=P.length-1-_.length;D>=0;D--)P[D]=E(P[i(D)],P[d(D)]);return P}Se.makeMerkleTree=h;function w(_,E){s(_,E);const P=[];for(;E>0;)P.push((0,e.toHex)(_[c(E)])),E=u(E);return P}Se.getProof=w;function $(_,E,P=t.standardNodeHash){return l(_),E.forEach(l),(0,e.toHex)(E.reduce(P,_))}Se.processProof=$;function U(_,E){E.forEach(B=>s(_,B)),E.sort((B,p)=>p-B),(0,n.validateArgument)(E.slice(1).every((B,p)=>B!==E[p]),"Cannot prove duplicated index");const P=Array.from(E),D=[],k=[];for(;P.length>0&&P[0]>0;){const B=P.shift(),p=c(B),S=u(B);p===P[0]?(k.push(!0),P.shift()):(k.push(!1),D.push((0,e.toHex)(_[p]))),P.push(S)}return E.length===0&&D.push((0,e.toHex)(_[0])),{leaves:E.map(B=>(0,e.toHex)(_[B])),proof:D,proofFlags:k}}Se.getMultiProof=U;function O(_,E=t.standardNodeHash){_.leaves.forEach(l),_.proof.forEach(l),(0,n.validateArgument)(_.proof.length>=_.proofFlags.filter(k=>!k).length,"Invalid multiproof format"),(0,n.validateArgument)(_.leaves.length+_.proof.length===_.proofFlags.length+1,"Provided leaves and multiproof are not compatible");const P=Array.from(_.leaves),D=Array.from(_.proof);for(const k of _.proofFlags){const B=P.shift(),p=k?P.shift():D.shift();(0,n.invariant)(B!==void 0&&p!==void 0),P.push(E(B,p))}return(0,n.invariant)(P.length+D.length===1),(0,e.toHex)(P.pop()??D.shift())}Se.processMultiProof=O;function J(_,E=t.standardNodeHash){for(const[P,D]of _.entries()){if(!r(D))return!1;const k=i(P),B=d(P);if(B>=_.length){if(k<_.length)return!1}else if((0,e.compare)(D,E(_[k],_[B])))return!1}return _.length>0}Se.isValidMerkleTree=J;function K(_){(0,n.validateArgument)(_.length!==0,"Expected non-zero number of nodes");const E=[[0,[]]],P=[];for(;E.length>0;){const[D,k]=E.pop();P.push(k.slice(0,-1).map(B=>[" ","│ "][B]).join("")+k.slice(-1).map(B=>["└─ ","├─ "][B]).join("")+D+") "+(0,e.toHex)(_[D])),d(D)<_.length&&(E.push([d(D),k.concat(0)]),E.push([i(D),k.concat(1)]))}return P.join(`
|
|
4
4
|
`)}return Se.renderMerkleTree=K,Se}var bt={},wt={},xo;function bl(){return xo||(xo=1,Object.defineProperty(wt,"__esModule",{value:!0}),wt.defaultOptions=void 0,wt.defaultOptions={sortLeaves:!0}),wt}var Ao;function xa(){if(Ao)return bt;Ao=1,Object.defineProperty(bt,"__esModule",{value:!0}),bt.MerkleTreeImpl=void 0;const e=Tt(),t=os(),n=bl(),i=Kt();class d{constructor(c,a,o,f){this.tree=c,this.values=a,this.leafHash=o,this.nodeHash=f,(0,i.validateArgument)(a.every(({value:r})=>typeof r!="number"),"Leaf values cannot be numbers"),this.hashLookup=Object.fromEntries(a.map(({treeIndex:r},s)=>[c[r],s]))}static prepare(c,a={},o,f){const r=a.sortLeaves??n.defaultOptions.sortLeaves,s=c.map((w,$)=>({value:w,valueIndex:$,hash:o(w)}));r&&s.sort((w,$)=>(0,e.compare)(w.hash,$.hash));const l=(0,t.makeMerkleTree)(s.map(w=>w.hash),f),h=c.map(w=>({value:w,treeIndex:0}));for(const[w,{valueIndex:$}]of s.entries())h[$].treeIndex=l.length-w-1;return[l,h]}get root(){return this.tree[0]}get length(){return this.values.length}at(c){var a;return(a=this.values.at(c))==null?void 0:a.value}render(){return(0,t.renderMerkleTree)(this.tree)}*entries(){for(const[c,{value:a}]of this.values.entries())yield[c,a]}validate(){this.values.forEach((c,a)=>this._validateValueAt(a)),(0,i.invariant)((0,t.isValidMerkleTree)(this.tree,this.nodeHash),"Merkle tree is invalid")}leafLookup(c){const a=this.hashLookup[this.leafHash(c)];return(0,i.validateArgument)(typeof a<"u","Leaf is not in tree"),a}getProof(c){const a=typeof c=="number"?c:this.leafLookup(c);this._validateValueAt(a);const{treeIndex:o}=this.values[a],f=(0,t.getProof)(this.tree,o);return(0,i.invariant)(this._verify(this.tree[o],f),"Unable to prove value"),f}getMultiProof(c){const a=c.map(r=>typeof r=="number"?r:this.leafLookup(r));for(const r of a)this._validateValueAt(r);const o=a.map(r=>this.values[r].treeIndex),f=(0,t.getMultiProof)(this.tree,o);return(0,i.invariant)(this._verifyMultiProof(f),"Unable to prove values"),{leaves:f.leaves.map(r=>this.values[this.hashLookup[r]].value),proof:f.proof,proofFlags:f.proofFlags}}verify(c,a){return this._verify(this._leafHash(c),a)}verifyMultiProof(c){return this._verifyMultiProof({leaves:c.leaves.map(a=>this._leafHash(a)),proof:c.proof,proofFlags:c.proofFlags})}_validateValueAt(c){const a=this.values[c];(0,i.validateArgument)(a!==void 0,"Index out of bounds"),(0,i.invariant)(this.tree[a.treeIndex]===this.leafHash(a.value),"Merkle tree does not contain the expected value")}_leafHash(c){if(typeof c=="number"){const a=this.values[c];(0,i.validateArgument)(a!==void 0,"Index out of bounds"),c=a.value}return this.leafHash(c)}_verify(c,a){return this.root===(0,t.processProof)(c,a,this.nodeHash)}_verifyMultiProof(c){return this.root===(0,t.processMultiProof)(c,this.nodeHash)}}return bt.MerkleTreeImpl=d,bt}var To;function wl(){if(To)return Ze;To=1,Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.SimpleMerkleTree=Ze.formatLeaf=void 0;const e=Ra(),t=Tt(),n=os(),i=xa(),d=Kt();function u(a){return(0,t.toHex)((0,e.encode)(["bytes32"],[a]))}Ze.formatLeaf=u;class c extends i.MerkleTreeImpl{static of(o,f={}){const[r,s]=i.MerkleTreeImpl.prepare(o,f,u,f.nodeHash);return new c(r,s,u,f.nodeHash)}static load(o,f){(0,d.validateArgument)(o.format==="simple-v1",`Unknown format '${o.format}'`),(0,d.validateArgument)(f==null!=(o.hash=="custom"),f?"Data does not expect a custom node hashing function":"Data expects a custom node hashing function");const r=new c(o.tree,o.values,u,f);return r.validate(),r}static verify(o,f,r,s){return(0,t.toHex)(o)===(0,n.processProof)(u(f),r,s)}static verifyMultiProof(o,f,r){return(0,t.toHex)(o)===(0,n.processMultiProof)(f,r)}dump(){return{format:"simple-v1",tree:this.tree,values:this.values.map(({value:o,treeIndex:f})=>({value:(0,t.toHex)(o),treeIndex:f})),...this.nodeHash?{hash:"custom"}:{}}}}return Ze.SimpleMerkleTree=c,Ze}var Et={},Co;function El(){if(Co)return Et;Co=1,Object.defineProperty(Et,"__esModule",{value:!0}),Et.StandardMerkleTree=void 0;const e=Tt(),t=os(),n=xa(),i=_a(),d=Kt();class u extends n.MerkleTreeImpl{constructor(a,o,f){super(a,o,r=>(0,i.standardLeafHash)(f,r)),this.tree=a,this.values=o,this.leafEncoding=f}static of(a,o,f={}){const[r,s]=n.MerkleTreeImpl.prepare(a,f,l=>(0,i.standardLeafHash)(o,l));return new u(r,s,o)}static load(a){(0,d.validateArgument)(a.format==="standard-v1",`Unknown format '${a.format}'`),(0,d.validateArgument)(a.leafEncoding!==void 0,"Expected leaf encoding");const o=new u(a.tree,a.values,a.leafEncoding);return o.validate(),o}static verify(a,o,f,r){return(0,e.toHex)(a)===(0,t.processProof)((0,i.standardLeafHash)(o,f),r)}static verifyMultiProof(a,o,f){return(0,e.toHex)(a)===(0,t.processMultiProof)({leaves:f.leaves.map(r=>(0,i.standardLeafHash)(o,r)),proof:f.proof,proofFlags:f.proofFlags})}dump(){return{format:"standard-v1",leafEncoding:this.leafEncoding,tree:this.tree,values:this.values}}}return Et.StandardMerkleTree=u,Et}var jo;function Sl(){return jo||(jo=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.StandardMerkleTree=e.SimpleMerkleTree=void 0;var t=wl();Object.defineProperty(e,"SimpleMerkleTree",{enumerable:!0,get:function(){return t.SimpleMerkleTree}});var n=El();Object.defineProperty(e,"StandardMerkleTree",{enumerable:!0,get:function(){return n.StandardMerkleTree}})})(fr)),fr}var vl=Sl();const Aa=1,Ta=5,Ca=70,$l=720*60*60*1e3,ja=1e6,Po={couponManager:"0x3fd3056ee72a2a85e9392fab3a450e7736536081",collectionDiscountCoupon:"0xc914507fe297b2dddd1232ac3a8903f1c125e794"};function Pa(e){try{const t=ir(or.CouponManager,e),n=ir(or.CollectionDiscountCoupon,e);return{couponManager:{address:t.address,name:t.name,version:t.version,abi:t.abi},collectionDiscountCoupon:n.address}}catch{if(e!==zn.ChainId.MATIC_MAINNET)return null;const{abi:t}=ir(or.CouponManager,zn.ChainId.MATIC_AMOY);return{couponManager:{address:Po.couponManager,name:"CouponManager",version:"1.0.0",abi:t},collectionDiscountCoupon:Po.collectionDiscountCoupon}}}function as(e){return[...new Set(e.map(t=>t.toLowerCase()))]}function Rl(e){const t=as(e);if(t.length===0)throw new We("collections");return vl.StandardMerkleTree.of(t.map(n=>[n]),["address"]).root}function Oa(e,t){return bc.encode(["uint256","uint256","bytes32"],[Aa,e,t])}function Il(){return{Coupon:[{name:"checks",type:"Checks"},{name:"couponAddress",type:"address"},{name:"data",type:"bytes"}],Checks:Es.Checks,ExternalCheck:Es.ExternalCheck}}const Dt=e=>Math.floor(e/1e3);function _l(e,t){return{name:t.couponManager.name,version:t.couponManager.version,salt:Rt(ca(e),32),verifyingContract:t.couponManager.address}}function xl(e,t,n){return{checks:{uses:e.uses,expiration:Dt(e.expiration),effective:Dt(e.effective),salt:Rt(e.salt,32),contractSignatureIndex:e.contractSignatureIndex,signerSignatureIndex:e.signerSignatureIndex,allowedRoot:Rt(e.allowedRoot||"0x",32),externalChecks:[]},couponAddress:t,data:n}}class We extends Error{constructor(t){super(`Invalid sale: ${t}`),this.problem=t,this.name="SaleInputError"}}function ka(e,t=Date.now()){if(as(e.collections).length===0)throw new We("collections");if(!Number.isInteger(e.discountPct)||e.discountPct<Ta||e.discountPct>Ca)throw new We("pct");const n=e.startsAtMs??t;if(!(e.endsAtMs>t)||!(e.endsAtMs>n))throw new We("window");if(e.endsAtMs-Math.max(n,t)>$l)throw new We("duration");if(e.uses!==void 0&&(!Number.isInteger(e.uses)||e.uses<1))throw new We("uses")}const Al=["function contractSignatureIndex() view returns (uint256)","function signerSignatureIndex(address) view returns (uint256)"];async function Tl(e,t){const n=new aa(e,Al,gc()),[i,d]=await Promise.all([n.contractSignatureIndex(),n.signerSignatureIndex(t)]);return{contractSignatureIndex:i.toNumber(),signerSignatureIndex:d.toNumber()}}async function Cl(e,t={}){const n=t.now?t.now():Date.now();ka(e,n);const i=Pa(e.chainId);if(!i)throw new Error(`Coupons are not available on chain ${e.chainId}`);const d=(await e.signer.getAddress()).toLowerCase(),u=as(e.collections),c=await(t.readIndexes??Tl)(i.couponManager.address,d),a={uses:e.uses??ja,expiration:e.endsAtMs,effective:e.startsAtMs??n,salt:ca(yc(32)),contractSignatureIndex:c.contractSignatureIndex,signerSignatureIndex:c.signerSignatureIndex,allowedRoot:"0x",externalChecks:[]},o=e.discountPct*1e4,f=Oa(o,Rl(u)),r=await e.signer._signTypedData(_l(e.chainId,i),Il(),xl(a,i.collectionDiscountCoupon,f));return{signer:d,chainId:e.chainId,network:zn.Network.MATIC,checks:a,couponAddress:i.collectionDiscountCoupon,discountType:Aa,discount:o,collections:u,signature:r}}async function jl(e,t){const n=await rc(`${It.marketplaceServerUrl}/v1/coupons`,{method:"POST",identity:t,metadata:{signer:"dcl:marketplace",intent:"dcl:create-coupon"},headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),i=await n.json().catch(()=>({}));if(!n.ok||!i.ok||!i.data)throw new Error(i.message??`postCoupon ${n.status}`);return i.data}async function Pl(e){var i;const t=await fetch(`${It.marketplaceServerUrl}/v1/coupons?signer=${e.toLowerCase()}`);if(!t.ok)throw(i=t.body)==null||i.cancel(),new Error(`fetchCreatorSales ${t.status}`);return(await t.json()).data??[]}function Ol(e){return e.checks.uses<ja}function kl(e,t=Date.now()){return e.status==="cancelled"||e.status==="revoked"||e.status==="exhausted"?e.status:e.checks.expiration<=t?"ended":e.checks.effective>t?"scheduled":"active"}async function Bl(e){const{sale:t,signer:n}=e;await tc(n.provider,t.chainId);const i=Pa(t.chainId);if(!i)throw new Error(`Coupons are not available on chain ${t.chainId}`);const d=new aa(i.couponManager.address,i.couponManager.abi,n),u={signature:t.signature,checks:{uses:t.checks.uses,expiration:Dt(t.checks.expiration),effective:Dt(t.checks.effective),salt:Rt(t.checks.salt,32),contractSignatureIndex:t.checks.contractSignatureIndex,signerSignatureIndex:t.checks.signerSignatureIndex,allowedRoot:Rt(t.checks.allowedRoot||"0x",32),allowedProof:[],externalChecks:[]},couponAddress:t.couponAddress,data:Oa(t.discount,t.root),callerData:"0x"};return(await(await d.cancelSignature([u],mc(t.chainId))).wait()).transactionHash}function Mt(e){return new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"short"}).format(new Date(e))}const jn=F.div`
|
|
@@ -1058,4 +1058,4 @@ caused by: `+ha(i,t)):n},cu=e=>ha(e,new Set),pa=(e,t,n)=>{if(!(e instanceof Erro
|
|
|
1058
1058
|
font-size: 16px;
|
|
1059
1059
|
color: ${R.colors.text};
|
|
1060
1060
|
`,cf=48,Yo=[{key:"wearables",labelKey:"myAssets.sectionWearables",category:"wearable"},{key:"emotes",labelKey:"myAssets.sectionEmotes",category:"emote"},{key:"names",labelKey:"myAssets.sectionNames",category:"ens"},{key:"creations",labelKey:"myAssets.sectionCreations"}],uf=["all","credits","mana"],Un={all:"filter.priceAll",credits:"filter.priceCredits",mana:"filter.priceMana"},Dn=[{key:"newest",label:"filterBar.sortNewest",server:"newest"},{key:"name",label:"filterBar.sortName",server:"name"},{key:"cheapest",label:"filterBar.sortCheapest",server:"cheapest"}];function Zo(e){return e==="wearables"||e==="emotes"}const Qo={wearables:"wearable",emotes:"emote",names:"names",creations:""},lf={wearable:"wearables",emote:"emotes",names:"names"};function df(e){return`${It.builderUrl}/names/${encodeURIComponent(e)}`}function ea(e,t){return{id:e.id,name:e.name,creator:"",contractAddress:e.contractAddress,itemId:e.itemId,category:e.category,rarity:e.rarity??"common",network:e.network,chainId:e.chainId,thumbnail:e.image,priceCredits:(t==null?void 0:t.priceCredits)??e.listingPrice??0,gender:null,isSmart:!1,tokenId:e.tokenId,issuedId:e.issuedId,tradeId:(t==null?void 0:t.tradeId)??e.tradeId}}function ff(e,t,n){return{id:`${e.contractAddress}-${e.blockchainItemId}`,name:e.name,creator:n,contractAddress:e.contractAddress,itemId:e.blockchainItemId,category:e.category,rarity:e.rarity,network:"MATIC",chainId:It.chainId,thumbnail:e.thumbnail,priceCredits:t,gender:null,isSmart:!1}}function Mf(){var fs,hs;sc({title:C("nav.myAssets"),noindex:!0});const{session:e,error:t,signIn:n,restore:i}=ic(),d=ra(),[u,c]=ec(),a=u.get("section"),o=Yo.some(T=>T.key===a)?a:"wearables",[f,r]=ee.useState("all"),[s,l]=ee.useState("all"),[h,w]=ee.useState([]),[$,U]=ee.useState(null);Sc(`${o}:${$??""}`);const[O,J]=ee.useState("newest"),[K,_]=ee.useState(""),[E,P]=ee.useState(""),[D,k]=ee.useState(!1),[B,p]=ee.useState(!0),[S,Y]=ee.useState(!0),[x,M]=ee.useState(!1),[q,z]=ee.useState(!1),[L,H]=ee.useState("idle");ee.useEffect(()=>{i()},[i]),ee.useEffect(()=>{const T=setTimeout(()=>P(K.trim()),300);return()=>clearTimeout(T)},[K]),ee.useEffect(()=>{if(!D)return;const T=te=>{te.key==="Escape"&&k(!1)};document.addEventListener("keydown",T);const Q=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",T),document.body.style.overflow=Q}},[D]);const b=e==null?void 0:e.address,g=Yo.find(T=>T.key===o),I=Zo(o),j=(Dn.find(T=>T.key===O)??Dn[0]).server,N=f==="on_sale"?C("filter.onSale"):f==="not_for_sale"?C("filter.notForSale"):"",y=s==="all"?"":C(Un[s]),v=ur.filter(T=>h.includes(T)).map(ys).join(", ");function A(T){c(Q=>{const te=new URLSearchParams(Q);return te.set("section",T),te},{replace:!0}),U(null),Zo(T)||w([]),T!=="creations"&&l("all"),k(!1)}function X(T){w(Q=>Q.includes(T)?Q.filter(te=>te!==T):[...Q,T])}function V(T){const Q=lf[T];Q&&A(Q)}const{items:W,total:oe,isLoading:ne,isPlaceholderData:G,error:ie,hasNextPage:ge,isFetchingNextPage:ae,isFetchNextPageError:le,fetchNextPage:me}=Uc(["my-assets",b,o,f,h,$,E,j],T=>ac(b,{category:g.category,first:cf,skip:T,search:E||void 0,rarities:I&&h.length?h:void 0,wearableCategories:o==="wearables"&&$?Rs[$]:void 0,emoteCategories:o==="emotes"&&$?Rs[$]:void 0,onlyOnSale:f==="on_sale"||void 0,sortBy:j}).then(Q=>({items:Q.assets,total:Q.total})),{enabled:!!b&&o!=="creations"}),fe=ee.useMemo(()=>o==="wearables"||o==="emotes"?[...new Set(W.map(T=>T.contractAddress))]:[],[W,o]),{data:ye}=$t({queryKey:["secondary-sale-state",fe],enabled:fe.length>0,queryFn:async()=>{const T=await Promise.all(fe.map(async te=>[te,await uc(te)])),Q={};for(const[te,ue]of T)for(const[$e,De]of Object.entries(ue))Q[`${te}-${$e}`]=De;return Q}}),Je=T=>ye==null?void 0:ye[`${T.contractAddress}-${T.tokenId}`],Ye=T=>!!Je(T)||T.isOnSale,ot=ee.useMemo(()=>f==="not_for_sale"?W.filter(T=>!Ye(T)):W,[W,f,ye]),{data:Ue,isLoading:Zt,isError:Da}=$t({queryKey:["publishable-items",b],queryFn:()=>dc(b,e.identity),enabled:!!e&&o==="creations",retry:!1}),Qt=ee.useMemo(()=>[...new Set((Ue??[]).map(T=>T.contractAddress))],[Ue]),{data:Re}=$t({queryKey:["collection-sale-state",b,Qt],enabled:Qt.length>0,queryFn:async()=>{const T=await Promise.all(Qt.map(async te=>[te,await lc(te)])),Q={};for(const[te,ue]of T)for(const[$e,De]of Object.entries(ue))Q[`${te}-${$e}`]=De;return Q}}),Xe=T=>Re==null?void 0:Re[`${T.contractAddress}-${T.blockchainItemId}`],Fa=ee.useMemo(()=>Object.values(Re??{}).some(T=>!!T.manaWei),[Re]),{data:er}=oc(Fa),tr=T=>T?!T.manaWei||!er?T.priceCredits:cc({manaWei:T.manaWei,priceCredits:T.priceCredits},er):0,rr=vd(),{data:nr}=Sd(b,rr&&o==="creations"),[Va,us]=ee.useState(!1),[za,Ga]=ee.useState(void 0),sr=ee.useMemo(()=>{const T=new Map;for(const Q of Ue??[]){const te=Re==null?void 0:Re[`${Q.contractAddress}-${Q.blockchainItemId}`],ue=!!(te!=null&&te.isOnSale)&&!te.manaWei,$e=Q.contractAddress.toLowerCase(),De=T.get($e)??{contractAddress:$e,name:Q.collectionName,listedCount:0,examplePriceCredits:null,items:[]};De.items.push({key:`${$e}-${Q.blockchainItemId}`,name:Q.name,thumbnail:Q.thumbnail,priceCredits:ue?te.priceCredits:null,remainingSupply:Q.remainingSupply}),ue&&(De.listedCount+=1,De.examplePriceCredits=Math.max(De.examplePriceCredits??0,te.priceCredits)),T.set($e,De)}return[...T.values()].filter(Q=>Q.listedCount>0)},[Ue,Re]),{count:Ja}=Dc(),Ct=Ja??0,jt=ee.useMemo(()=>{let T=Ue??[];if(f==="on_sale"?T=T.filter(te=>{var ue;return(ue=Xe(te))==null?void 0:ue.isOnSale}):f==="not_for_sale"&&(T=T.filter(te=>{var ue;return!((ue=Xe(te))!=null&&ue.isOnSale)})),s==="credits"?T=T.filter(te=>{var ue,$e;return!!((ue=Xe(te))!=null&&ue.isOnSale)&&!(($e=Xe(te))!=null&&$e.manaWei)}):s==="mana"&&(T=T.filter(te=>{var ue;return!!((ue=Xe(te))!=null&&ue.manaWei)})),E){const te=E.toLowerCase();T=T.filter(ue=>ue.name.toLowerCase().includes(te))}const Q=[...T];return O==="name"?Q.sort((te,ue)=>te.name.localeCompare(ue.name)):O==="cheapest"&&Q.sort((te,ue)=>tr(Xe(te))-tr(Xe(ue))),Q},[Ue,Re,f,s,E,O,er]),Xa=ee.useMemo(()=>{var Q;const T=new Map;for(const te of jt){const ue=te.contractAddress.toLowerCase(),$e=T.get(ue)??{contractAddress:ue,name:te.collectionName,listed:0,items:[]};$e.items.push(te),(Q=Re==null?void 0:Re[`${te.contractAddress}-${te.blockchainItemId}`])!=null&&Q.isOnSale&&($e.listed+=1),T.set(ue,$e)}return[...T.values()]},[jt,Re]),Wa=ee.useMemo(()=>new Set(sr.map(T=>T.contractAddress.toLowerCase())),[sr]),ls=sr.find(T=>T.contractAddress===za);ee.useEffect(()=>{L!=="idle"||Ct===0||Hd(Ko,b)||H("open")},[L,Ct,b]);function ds(T){T&&Ud(Ko,b),H("closed")}if(!e)return m.jsxs(Xd,{children:[m.jsx(Wd,{children:C("nav.myAssets")}),m.jsx(Kd,{children:C("myAssets.signInPrompt")}),m.jsx(vt,{variant:"white",onClick:()=>n(),children:C("storeSettings.signIn")}),m.jsx(Ht,{message:t})]});const Ka=o==="creations"?Zt:ne||G,Ya=o==="creations"?jt.length:f==="not_for_sale"?ot.length:oe,ut=[];if(f!=="all"&&ut.push({key:"status",label:f==="on_sale"?C("filter.onSale"):C("filter.notForSale"),onRemove:()=>r("all")}),o==="creations"&&s!=="all"&&ut.push({key:"price",label:C(Un[s]),onRemove:()=>l("all")}),I)for(const T of ur)h.includes(T)&&ut.push({key:`rarity-${T}`,label:ys(T),onRemove:()=>X(T)});if(I&&$){const T=(hs=(fs=vc.find(Q=>Q.key===Qo[o]))==null?void 0:fs.subs)==null?void 0:hs.find(Q=>Q.key===$);ut.push({key:"sub",label:T?C(T.labelKey):$,onRemove:()=>U(null)})}function Za(){r("all"),l("all"),w([]),U(null)}const Qa=m.jsxs($c,{children:[m.jsx(Rc,{title:C("myAssets.assetsHeading"),category:Qo[o],subCategory:$,onCategory:V,onSub:U,onCollections:()=>A("creations"),collections:o==="creations",extraLabelKey:"myAssets.sectionCreations",hideAll:!0}),I?m.jsxs(m.Fragment,{children:[m.jsx(lr,{}),m.jsx(dr,{title:C("assets.rarity"),open:x,onToggle:()=>M(T=>!T),summary:v,headerTestId:"sidebar-section-toggle",children:m.jsx(Ic,{"data-testid":"rarity-filter",children:ur.map(T=>{const Q=h.includes(T);return m.jsxs(_c,{type:"button",selected:Q,"aria-pressed":Q,onClick:()=>X(T),"data-testid":"rarity-filter-check",children:[m.jsx(xc,{color:R.rarities[T],children:Q?m.jsx(Ac,{name:"check","aria-hidden":!0}):null}),m.jsx(Tc,{selected:Q,children:T})]},T)})})})]}):null,m.jsx(lr,{}),m.jsx(dr,{title:C("filter.status"),open:B,onToggle:()=>p(T=>!T),summary:N,children:[["all",C("filter.statusAll")],["on_sale",C("filter.onSale")],["not_for_sale",C("filter.notForSale")]].map(([T,Q])=>m.jsxs(Ss,{children:[m.jsx(vs,{type:"radio",name:"myassets-status",checked:f===T,onChange:()=>r(T)}),m.jsx($s,{children:Q})]},T))}),o==="creations"?m.jsxs(m.Fragment,{children:[m.jsx(lr,{}),m.jsx(dr,{title:C("filter.salePrice"),open:S,onToggle:()=>Y(T=>!T),summary:y,children:uf.map(T=>m.jsxs(Ss,{children:[m.jsx(vs,{type:"radio",name:"myassets-price",checked:s===T,onChange:()=>l(T),"data-testid":`price-filter-${T}`}),m.jsx($s,{children:C(Un[T])})]},T))})]}):null]});return m.jsxs(Cc,{"data-testid":"my-assets",children:[D?m.jsx(jc,{onClick:()=>k(!1),"aria-hidden":!0}):null,m.jsxs(Pc,{"data-open":D||void 0,"data-testid":"my-assets-sidebar",children:[m.jsxs(Oc,{children:[m.jsx(kc,{children:C("assets.filters")}),m.jsx(Bc,{onClick:()=>k(!1),"aria-label":C("assets.closeFilters"),children:"✕"})]}),m.jsx(Lc,{children:Qa}),m.jsx(Nc,{children:m.jsx(Mc,{type:"button",onClick:()=>k(!1),children:C("assets.showItems")})})]}),m.jsxs(qc,{children:[Ct>0&&!q?m.jsx(Yd,{count:Ct,onDismiss:()=>z(!0)}):null,m.jsx(Hc,{sort:O,onSort:J,sortOptions:Dn,total:Ya,loading:Ka,query:E,onOpenFilters:()=>k(!0),chips:ut,onClearChips:Za,search:m.jsxs(Fd,{children:[m.jsx(Vd,{name:"search","aria-hidden":!0}),m.jsx(zd,{type:"search",value:K,placeholder:C("myAssets.searchPlaceholder"),"aria-label":C("myAssets.searchPlaceholder"),onChange:T=>_(T.target.value)}),K?m.jsx(Gd,{type:"button","aria-label":C("myAssets.clearSearch"),onClick:()=>_(""),children:m.jsx(Jd,{name:"close","aria-hidden":!0})}):null]})}),(o==="creations"?Da:ie)?m.jsx(Ht,{message:C("myAssets.ownedError"),testId:"my-assets-error"}):null,o==="creations"?m.jsxs(m.Fragment,{children:[rr&&e&&nr&&nr.length>0?m.jsxs(of,{"data-testid":"creator-sales-panel",children:[m.jsx(af,{children:C("creatorSale.salesTitle")}),m.jsx(Ed,{sales:nr,session:e})]}):null,Va&&e&&ls?m.jsx(cd,{session:e,collection:ls,onClose:()=>us(!1)}):null,Zt?m.jsx(Hn,{"data-testid":"grid",children:m.jsx(ar,{count:12})}):Xa.map(T=>m.jsxs(Zd,{"data-testid":"creation-group",children:[m.jsxs(Qd,{children:[m.jsx(tf,{children:m.jsx(sa,{contractAddress:T.contractAddress})}),m.jsxs(rf,{children:[m.jsx(nf,{"data-testid":"creation-group-name",children:T.name}),m.jsxs(sf,{"data-testid":"creation-group-count",children:[C("myAssets.itemsCount",{count:T.items.length}),T.listed>0?` · ${C("myAssets.groupOnSale",{count:T.listed})}`:""]})]}),rr&&e&&Wa.has(T.contractAddress)?m.jsx(ef,{variant:"purple",size:"sm","data-testid":"creation-group-sale",onClick:()=>{Ga(T.contractAddress),us(!0)},children:C("creatorSale.putOnSale")}):null]}),m.jsx(Hn,{"data-testid":"grid",children:T.items.map(Q=>{const te=Xe(Q);return m.jsx(cr,{item:ff(Q,tr(te),b??""),mode:"manage-link"},`${Q.contractAddress}-${Q.blockchainItemId}`)})})]},T.contractAddress)),!Zt&&jt.length===0?m.jsx(bs,{testId:"creations-empty",icon:eu,title:C("myAssets.emptyCreationsTitle"),body:C("myAssets.nothingToPublish")}):null]}):m.jsxs(m.Fragment,{children:[m.jsxs(Hn,{"data-testid":"grid",children:[ne||G?m.jsx(ar,{count:12}):ot.map(T=>o==="names"?m.jsx(cr,{item:{...ea(T),category:"ens"},mode:"manage-link",manageHref:df(T.name)},T.id):m.jsx(cr,{item:ea(T,Je(T)),mode:"manage-link"},T.id)),ae?m.jsx(ar,{count:6}):null]}),f!=="not_for_sale"?m.jsx(Ec,{hasNextPage:ge,isFetching:ae,isError:le,onLoadMore:()=>void me()}):null,!ne&&!G&&ot.length===0?m.jsx(bs,{testId:"owned-empty",icon:f==="on_sale"?Fc:tu,title:o==="names"?C("myAssets.emptyNamesTitle"):C("myAssets.emptyOwnedTitle"),body:o==="names"?C("myAssets.namesEmpty"):C("myAssets.ownedEmpty"),cta:o!=="names"?{label:C("myAssets.emptyBrowse"),to:"/items"}:void 0}):null]})]}),L==="open"?m.jsx(Md,{onClose:ds,onConfirm:T=>{ds(T),d("/import")}}):null]})}export{Mf as MyAssets};
|
|
1061
|
-
//# sourceMappingURL=MyAssets-
|
|
1061
|
+
//# sourceMappingURL=MyAssets-D-74TXj0.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as x,j as t}from"./react-
|
|
1
|
+
import{r as x,j as t}from"./react-CbiDtrwy.js";import{e as i,d as b,x as v,c as r,N as c,O as C,P as F,Q as j,S as k,R as w}from"./index-KGKbIgYc.js";import{L as E}from"./LoadMore-D-sqkeqn.js";import{E as _}from"./ErrorNotice-DdXfJJQ5.js";import{G as I}from"./grid.styles-BJJSFZSz.js";import"./dcl-schemas-DU0vGMAi.js";import"./sentry-pksVc8Y1.js";import"./ethers-DOxpBstR.js";import"./intl-AKLEHPeO.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new s.Error().stack;a&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[a]="2d4ea7e6-db07-464c-843a-2440c0b6868b",s._sentryDebugIdIdentifier="sentry-dbid-2d4ea7e6-db07-464c-843a-2440c0b6868b")}catch{}})();const{colors:o,radius:M}=b,$=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: baseline;
|
|
4
4
|
gap: 12px;
|
|
@@ -52,4 +52,4 @@ import{r as x,j as t}from"./react-BG8VKwrs.js";import{e as i,d as b,x as v,c as
|
|
|
52
52
|
flex-direction: column;
|
|
53
53
|
align-items: center;
|
|
54
54
|
`,P="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='M92.7188%2021.5625V34.5'%20stroke='%23FF7158'%20stroke-width='4.3125'%20stroke-linecap='round'/%3e%3cpath%20d='M86.25%2028.0312H99.1875'%20stroke='%23FF7158'%20stroke-width='4.3125'%20stroke-linecap='round'/%3e%3cpath%20d='M24.7324%2065.5C24.732%2062.8042%2025.2665%2060.1361%2026.3037%2057.6514C27.341%2055.1665%2028.8602%2052.9151%2030.7715%2051.0293C32.6826%2049.1438%2034.9471%2047.6604%2037.4326%2046.666C39.9183%2045.6716%2042.5762%2045.1856%2045.25%2045.2354L45.3008%2045.2363H45.3516C48.581%2045.2192%2051.7779%2045.8923%2054.7305%2047.2109C56.1717%2047.8547%2057.539%2048.6448%2058.8115%2049.5674C60.1459%2050.5348%2061.3766%2051.6478%2062.4795%2052.8887L65.6426%2056.4473L68.8057%2052.8887C69.9086%2051.6478%2071.1392%2050.5348%2072.4736%2049.5674C73.7464%2048.6446%2075.1142%2047.8547%2076.5557%2047.2109C79.5083%2045.8922%2082.705%2045.2191%2085.9346%2045.2363H85.9854L86.0361%2045.2354C88.7097%2045.1856%2091.367%2045.6717%2093.8525%2046.666C96.3383%2047.6604%2098.6034%2049.1436%20100.515%2051.0293C102.426%2052.915%20103.945%2055.1665%20104.982%2057.6514C106.02%2060.1361%20106.554%2062.8043%20106.554%2065.5V65.501C106.554%2074.0645%20102.382%2082.1039%2095.8086%2089.877C89.2296%2097.6565%2080.6704%20104.682%2072.6035%20111.289C71.1421%20112.486%2069.6963%20113.67%2068.2959%20114.832C66.7887%20116.083%2064.5293%20116.081%2063.0176%20114.818C61.4894%20113.542%2059.9072%20112.242%2058.3076%20110.928C50.2836%20104.335%2041.8192%2097.3643%2035.3242%2089.6553C28.8376%2081.9561%2024.7324%2073.9982%2024.7324%2065.501V65.5Z'%20stroke='url(%23paint0_linear_1564_322452)'%20stroke-width='8.46429'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_1564_322452'%20x1='17.6552'%20y1='80.505'%20x2='176.469'%20y2='63.4051'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF2D55'/%3e%3cstop%20offset='1'%20stop-color='%23FFBC5B'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",g=24;function Z(){v({title:r("nav.myFavorites"),noindex:!0});const s=c(e=>Object.values(e.items)),a=c(e=>e.status),l=c(e=>e.retry),[p,f]=x.useState(g),{data:m,isPending:y,isError:h}=C(),u=s.some(e=>!!e.manaWei),n=x.useMemo(()=>s.map(e=>({...e,priceCredits:F(e,m)})),[s,m]);if(a==="error")return t.jsxs(D,{"data-testid":"favorites-error",children:[t.jsx(_,{message:r("myFavorites.loadError")}),t.jsx(G,{type:"button",onClick:l,children:r("myFavorites.tryAgain")})]});if(a==="ready"&&n.length===0)return t.jsx(H,{children:t.jsx(j,{testId:"favorites-empty",icon:P,title:r("myFavorites.emptyTitle"),body:r("myFavorites.emptyBody"),cta:{label:r("myFavorites.emptyCta"),to:"/items"}})});const d=a==="loading"||y&&u;return t.jsxs("section",{children:[t.jsxs($,{children:[t.jsx(L,{children:r("nav.myFavorites")}),d?null:t.jsx(S,{children:r("myFavorites.itemCount",{count:n.length})})]}),h&&u?t.jsx(B,{children:r("assets.marketUnavailable")}):null,t.jsx(I,{"data-testid":d?"favorites-loading":void 0,children:d?t.jsx(k,{count:8}):n.slice(0,p).map(e=>t.jsx(w,{item:e},e.id))}),t.jsx(E,{hasNextPage:!d&&p<n.length,isFetching:!1,onLoadMore:()=>f(e=>e+g)})]})}export{Z as MyFavorites};
|
|
55
|
-
//# sourceMappingURL=MyFavorites-
|
|
55
|
+
//# sourceMappingURL=MyFavorites-BrahbeXJ.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{p as ee}from"./sentry-
|
|
1
|
+
import{p as ee}from"./sentry-pksVc8Y1.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new r.Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="589f0da2-4586-4190-99e2-6d982240a886",r._sentryDebugIdIdentifier="sentry-dbid-589f0da2-4586-4190-99e2-6d982240a886")}catch{}})();const ae="2.54.1";let T={getDocsUrl:({docsBaseUrl:r,docsPath:e="",docsSlug:t})=>e?`${r??"https://viem.sh"}${e}${t?`#${t}`:""}`:void 0,version:`viem@${ae}`};class o extends Error{constructor(e,t={}){var p;const n=(()=>{var u;return t.cause instanceof o?t.cause.details:(u=t.cause)!=null&&u.message?t.cause.message:t.details})(),a=t.cause instanceof o&&t.cause.docsPath||t.docsPath,s=(p=T.getDocsUrl)==null?void 0:p.call(T,{...t,docsPath:a}),i=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...s?[`Docs: ${s}`]:[],...n?[`Details: ${n}`]:[],...T.version?[`Version: ${T.version}`]:[]].join(`
|
|
2
2
|
`);super(i,t.cause?{cause:t.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=n,this.docsPath=a,this.metaMessages=t.metaMessages,this.name=t.name??this.name,this.shortMessage=e,this.version=ae}walk(e){return se(this,e)}}function se(r,e){return e!=null&&e(r)?r:r&&typeof r=="object"&&"cause"in r&&r.cause!==void 0?se(r.cause,e):e?null:r}class oe extends o{constructor({max:e,min:t,signed:n,size:a,value:s}){super(`Number "${s}" is not in safe ${a?`${a*8}-bit ${n?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`,{name:"IntegerOutOfRangeError"})}}class Ke extends o{constructor(e){super(`Bytes value "${e}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}class fe extends o{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,{name:"InvalidHexBooleanError"})}}class me extends o{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}function ie(r,{strict:e=!0}={}){return!r||typeof r!="string"?!1:e?/^0x[0-9a-fA-F]*$/.test(r):r.startsWith("0x")}function te(r){return ie(r,{strict:!1})?Math.ceil((r.length-2)/2):r.length}function w(r,{dir:e="left"}={}){let t=typeof r=="string"?r.replace("0x",""):r,n=0;for(let a=0;a<t.length-1&&t[e==="left"?a:t.length-a-1].toString()==="0";a++)n++;return t=e==="left"?t.slice(n):t.slice(0,t.length-n),typeof r=="string"?(t.length===1&&e==="right"&&(t=`${t}0`),`0x${t.length%2===1?`0${t}`:t}`):t}class Ve extends o{constructor({offset:e,position:t,size:n}){super(`Slice ${t==="start"?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${n}).`,{name:"SliceOffsetOutOfBoundsError"})}}class ue extends o{constructor({size:e,targetSize:t,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`,{name:"SizeExceedsPaddingSizeError"})}}class Ye extends o{constructor({size:e,targetSize:t,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} is expected to be ${t} ${n} long, but is ${e} ${n} long.`,{name:"InvalidBytesLengthError"})}}function g(r,{dir:e,size:t=32}={}){return typeof r=="string"?ye(r,{dir:e,size:t}):he(r,{dir:e,size:t})}function ye(r,{dir:e,size:t=32}={}){if(t===null)return r;const n=r.replace("0x","");if(n.length>t*2)throw new ue({size:Math.ceil(n.length/2),targetSize:t,type:"hex"});return`0x${n[e==="right"?"padEnd":"padStart"](t*2,"0")}`}function he(r,{dir:e,size:t=32}={}){if(t===null)return r;if(r.length>t)throw new ue({size:r.length,targetSize:t,type:"bytes"});const n=new Uint8Array(t);for(let a=0;a<t;a++){const s=e==="right";n[s?a:t-a-1]=r[s?a:r.length-a-1]}return n}const ge=Array.from({length:256},(r,e)=>e.toString(16).padStart(2,"0"));function Xe(r,e={}){return typeof r=="number"||typeof r=="bigint"?le(r,e):typeof r=="string"?Te(r,e):typeof r=="boolean"?Ee(r,e):ce(r,e)}function Ee(r,e={}){const t=`0x${Number(r)}`;return typeof e.size=="number"?(h(t,{size:e.size}),g(t,{size:e.size})):t}function ce(r,e={}){let t="";for(let a=0;a<r.length;a++)t+=ge[r[a]];const n=`0x${t}`;return typeof e.size=="number"?(h(n,{size:e.size}),g(n,{dir:"right",size:e.size})):n}function le(r,e={}){const{signed:t,size:n}=e,a=BigInt(r);let s;n?t?s=(1n<<BigInt(n)*8n-1n)-1n:s=2n**(BigInt(n)*8n)-1n:typeof r=="number"&&(s=BigInt(Number.MAX_SAFE_INTEGER));const i=typeof s=="bigint"&&t?-s-1n:0;if(s&&a>s||a<i){const u=typeof r=="bigint"?"n":"";throw new oe({max:s?`${s}${u}`:void 0,min:`${i}${u}`,signed:t,size:n,value:`${r}${u}`})}const p=`0x${(t&&a<0?(1n<<BigInt(n*8))+BigInt(a):a).toString(16)}`;return n?g(p,{size:n}):p}const Ne=new TextEncoder;function Te(r,e={}){const t=Ne.encode(r);return ce(t,e)}const we=new TextEncoder;function Je(r,e={}){return typeof r=="number"||typeof r=="bigint"?Oe(r,e):typeof r=="boolean"?ve(r,e):ie(r)?O(r,e):Ae(r,e)}function ve(r,e={}){const t=new Uint8Array(1);return t[0]=Number(r),typeof e.size=="number"?(h(t,{size:e.size}),g(t,{size:e.size})):t}const m={zero:48,nine:57,A:65,F:70,a:97,f:102};function re(r){if(r>=m.zero&&r<=m.nine)return r-m.zero;if(r>=m.A&&r<=m.F)return r-(m.A-10);if(r>=m.a&&r<=m.f)return r-(m.a-10)}function O(r,e={}){let t=r;e.size&&(h(t,{size:e.size}),t=g(t,{dir:"right",size:e.size}));let n=t.slice(2);n.length%2&&(n=`0${n}`);const a=n.length/2,s=new Uint8Array(a);for(let i=0,p=0;i<a;i++){const u=re(n.charCodeAt(p++)),E=re(n.charCodeAt(p++));if(u===void 0||E===void 0)throw new o(`Invalid byte sequence ("${n[p-2]}${n[p-1]}" in "${n}").`);s[i]=u*16+E}return s}function Oe(r,e){const t=le(r,e);return O(t)}function Ae(r,e={}){const t=we.encode(r);return typeof e.size=="number"?(h(t,{size:e.size}),g(t,{dir:"right",size:e.size})):t}function h(r,{size:e}){if(te(r)>e)throw new me({givenSize:te(r),maxSize:e})}function Qe(r,e){const t={to:e},n=t.to;return n==="number"?Me(r,t):n==="bigint"?de(r,t):n==="string"?Ce(r,t):n==="boolean"?xe(r,t):O(r,t)}function de(r,e={}){const{signed:t}=e;e.size&&h(r,{size:e.size});const n=BigInt(r);if(!t)return n;const a=(r.length-2)/2,s=(1n<<BigInt(a)*8n-1n)-1n;return n<=s?n:n-BigInt(`0x${"f".padStart(a*2,"f")}`)-1n}function xe(r,e={}){let t=r;if(e.size&&(h(t,{size:e.size}),t=w(t)),w(t)==="0x00")return!1;if(w(t)==="0x01")return!0;throw new fe(t)}function Me(r,e={}){const t=de(r,e),n=Number(t);if(!Number.isSafeInteger(n))throw new oe({max:`${Number.MAX_SAFE_INTEGER}`,min:`${Number.MIN_SAFE_INTEGER}`,signed:e.signed,size:e.size,value:`${t}n`});return n}function Ce(r,e={}){let t=O(r);return e.size&&(h(t,{size:e.size}),t=w(t,{dir:"right"})),new TextDecoder().decode(t)}const Ze={gwei:9,wei:18},Re={ether:-9,wei:9};function Se(r,e){let t=r.toString();const n=t.startsWith("-");n&&(t=t.slice(1)),t=t.padStart(e,"0");let[a,s]=[t.slice(0,t.length-e),t.slice(t.length-e)];return s=s.replace(/(0+)$/,""),`${n?"-":""}${a||"0"}${s?`.${s}`:""}`}function v(r,e="wei"){return Se(r,Re[e])}class pe extends o{constructor({cause:e,message:t}={}){var a;const n=(a=t==null?void 0:t.replace("execution reverted: ",""))==null?void 0:a.replace("execution reverted","");super(`Execution reverted ${n?`with reason: ${n}`:"for an unknown reason"}.`,{cause:e,name:"ExecutionRevertedError"})}}Object.defineProperty(pe,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(pe,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted|gas required exceeds allowance/});class Pe extends o{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${v(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e,name:"FeeCapTooHighError"})}}Object.defineProperty(Pe,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class _e extends o{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${v(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e,name:"FeeCapTooLowError"})}}Object.defineProperty(_e,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class Ie extends o{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e,name:"NonceTooHighError"})}}Object.defineProperty(Ie,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class $e extends o{constructor({cause:e,nonce:t}={}){super([`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join(`
|
|
3
3
|
`),{cause:e,name:"NonceTooLowError"})}}Object.defineProperty($e,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class De extends o{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e,name:"NonceMaxValueError"})}}Object.defineProperty(De,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class Ue extends o{constructor({cause:e}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join(`
|
|
4
4
|
`),{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}Object.defineProperty(Ue,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class je extends o{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(je,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class Le extends o{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(Le,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class ze extends o{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(ze,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class Be extends o{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:n}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${v(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n?` = ${v(n)} gwei`:""}).`].join(`
|
|
5
5
|
`),{cause:e,name:"TipAboveFeeCapError"})}}Object.defineProperty(Be,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class et extends o{constructor({cause:e}){super(`An error occurred while executing: ${e==null?void 0:e.shortMessage}`,{cause:e,name:"UnknownNodeError"})}}class tt extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){const t=super.get(e);return super.has(e)&&(super.delete(e),super.set(e,t)),t}set(e,t){if(super.has(e)&&super.delete(e),super.set(e,t),this.maxSize&&this.size>this.maxSize){const n=super.keys().next().value;n!==void 0&&super.delete(n)}return this}}const x=(r,e,t)=>JSON.stringify(r,(n,a)=>typeof a=="bigint"?a.toString():a,t),rt=r=>r;function nt(r){if(r!=null&&r.reason)return r.reason;if(typeof DOMException=="function")return new DOMException("This operation was aborted","AbortError");const e=new Error("This operation was aborted");return e.name="AbortError",e}function at(r){return typeof r=="object"&&r!==null&&"name"in r&&r.name==="AbortError"}const M=r=>{try{const e=new URL(r);return!e.username&&!e.password?r:(e.username="",e.password="",e.toString())}catch{return r}};class st extends o{constructor({body:e,cause:t,details:n,headers:a,status:s,url:i}){super("HTTP request failed.",{cause:t,details:n,metaMessages:[s&&`Status: ${s}`,`URL: ${M(i)}`,e&&`Request body: ${x(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=a,this.status=s,this.url=i}}class ot extends o{constructor({maxSize:e,size:t}){super("HTTP response body exceeded the size limit.",{metaMessages:[`Max: ${e} bytes`,`Received: ${t} bytes`],name:"ResponseBodyTooLargeError"}),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e,this.size=t}}class He extends o{constructor({body:e,error:t,url:n}){super("RPC Request failed.",{cause:t,details:t.message,metaMessages:[`URL: ${M(n)}`,`Request body: ${x(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}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t.code,this.data=t.data,this.url=n}}class it extends o{constructor({body:e,url:t}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${M(t)}`,`Request body: ${x(e)}`],name:"TimeoutError"}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.url=t}}const ke=-1;class c extends o{constructor(e,{code:t,docsPath:n,metaMessages:a,name:s,shortMessage:i}){super(i,{cause:e,docsPath:n,metaMessages:a||(e==null?void 0:e.metaMessages),name:s||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=s||e.name,this.code=e instanceof He?e.code:t??ke}}class l extends c{constructor(e,t){super(e,t),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t.data}}class C extends c{constructor(e){super(e,{code:C.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(C,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class R extends c{constructor(e){super(e,{code:R.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(R,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class S extends c{constructor(e,{method:t}={}){super(e,{code:S.code,name:"MethodNotFoundRpcError",shortMessage:`The method${t?` "${t}"`:""} does not exist / is not available.`})}}Object.defineProperty(S,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class P extends c{constructor(e){super(e,{code:P.code,name:"InvalidParamsRpcError",shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join(`
|
|
6
6
|
`)})}}Object.defineProperty(P,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class _ extends c{constructor(e){super(e,{code:_.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(_,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class I extends c{constructor(e){super(e,{code:I.code,name:"InvalidInputRpcError",shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join(`
|
|
7
7
|
`)})}}Object.defineProperty(I,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class $ extends c{constructor(e){super(e,{code:$.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty($,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class D extends c{constructor(e){super(e,{code:D.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(D,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class U extends c{constructor(e){super(e,{code:U.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(U,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class j extends c{constructor(e,{method:t}={}){super(e,{code:j.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${t?` "${t}"`:""} is not supported.`})}}Object.defineProperty(j,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class L extends c{constructor(e){super(e,{code:L.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(L,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class z extends c{constructor(e){super(e,{code:z.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(z,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class B extends l{constructor(e){super(e,{code:B.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(B,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class H extends l{constructor(e){super(e,{code:H.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(H,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class k extends l{constructor(e,{method:t}={}){super(e,{code:k.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${t?` " ${t}"`:""}.`})}}Object.defineProperty(k,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class F extends l{constructor(e){super(e,{code:F.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(F,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class W extends l{constructor(e){super(e,{code:W.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(W,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class q extends l{constructor(e){super(e,{code:q.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(q,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class G extends l{constructor(e){super(e,{code:G.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}Object.defineProperty(G,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class K extends l{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 V extends l{constructor(e){super(e,{code:V.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}Object.defineProperty(V,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class Y extends l{constructor(e){super(e,{code:Y.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}Object.defineProperty(Y,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class X extends l{constructor(e){super(e,{code:X.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}Object.defineProperty(X,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class J extends l{constructor(e){super(e,{code:J.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}Object.defineProperty(J,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750});class Q extends l{constructor(e){super(e,{code:Q.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}Object.defineProperty(Q,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class Z extends l{constructor(e){super(e,{code:Z.code,name:"WalletConnectSessionSettlementError",shortMessage:"WalletConnect session settlement failed."})}}Object.defineProperty(Z,"code",{enumerable:!0,configurable:!0,writable:!0,value:7e3});class ut extends c{constructor(e){super(e,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}const ct=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{name:"addr",type:"address"}],name:"getEthBalance",outputs:[{name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getCurrentBlockTimestamp",outputs:[{internalType:"uint256",name:"timestamp",type:"uint256"}],stateMutability:"view",type:"function"}],lt=[{name:"query",type:"function",stateMutability:"view",inputs:[{type:"tuple[]",name:"queries",components:[{type:"address",name:"sender"},{type:"string[]",name:"urls"},{type:"bytes",name:"data"}]}],outputs:[{type:"bool[]",name:"failures"},{type:"bytes[]",name:"responses"}]},{name:"HttpError",type:"error",inputs:[{type:"uint16",name:"status"},{type:"string",name:"message"}]}],be=[{inputs:[{name:"dns",type:"bytes"}],name:"DNSDecodingFailed",type:"error"},{inputs:[{name:"ens",type:"string"}],name:"DNSEncodingFailed",type:"error"},{inputs:[],name:"EmptyAddress",type:"error"},{inputs:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"HttpError",type:"error"},{inputs:[],name:"InvalidBatchGatewayResponse",type:"error"},{inputs:[{name:"errorData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{name:"name",type:"bytes"},{name:"resolver",type:"address"}],name:"ResolverNotContract",type:"error"},{inputs:[{name:"name",type:"bytes"}],name:"ResolverNotFound",type:"error"},{inputs:[{name:"primary",type:"string"},{name:"primaryAddress",type:"bytes"}],name:"ReverseAddressMismatch",type:"error"},{inputs:[{internalType:"bytes4",name:"selector",type:"bytes4"}],name:"UnsupportedResolverProfile",type:"error"}],dt=[...be,{name:"resolveWithGateways",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"},{name:"gateways",type:"string[]"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],pt=[...be,{name:"reverseWithGateways",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"uint256",name:"coinType"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolver"},{type:"address",name:"reverseResolver"}]}],bt=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],ft=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],mt=[{name:"isValidSignature",type:"function",stateMutability:"view",inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],outputs:[{name:"",type:"bytes4"}]}],yt=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}],ht=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]}];function Fe(){let r=()=>{},e=()=>{};return{promise:new Promise((n,a)=>{r=n,e=a}),resolve:r,reject:e}}const A=new Map;function gt({fn:r,id:e,shouldSplitBatch:t,wait:n=0,sort:a}){const s=async()=>{const d=u();i();const N=d.map(({args:b})=>b);N.length!==0&&r(N).then(b=>{a&&Array.isArray(b)&&b.sort(a);for(let f=0;f<d.length;f++){const{resolve:y}=d[f];y==null||y([b[f],b])}}).catch(b=>{for(let f=0;f<d.length;f++){const{reject:y}=d[f];y==null||y(b)}})},i=()=>A.delete(e),p=()=>u().map(({args:d})=>d),u=()=>A.get(e)||[],E=d=>A.set(e,[...u(),d]);return{flush:i,async schedule(d){const{promise:N,resolve:b,reject:f}=Fe();return(t==null?void 0:t([...p(),d]))&&s(),u().length>0?(E({args:d,resolve:b,reject:f}),N):(E({args:d,resolve:b,reject:f}),setTimeout(s,n),N)}}}var ne={};const We={WC_NAME_SUFFIX:".reown.id",WC_NAME_SUFFIX_LEGACY:".wcn.id",BLOCKCHAIN_API_RPC_URL:"https://rpc.walletconnect.org",PULSE_API_URL:"https://pulse.walletconnect.org",W3M_API_URL:"https://api.web3modal.org",CONNECTOR_ID:{WALLET_CONNECT:"walletConnect",INJECTED:"injected",WALLET_STANDARD:"announced",COINBASE:"coinbaseWallet",COINBASE_SDK:"coinbaseWalletSDK",BASE_ACCOUNT:"baseAccount",SAFE:"safe",LEDGER:"ledger",OKX:"okx",EIP6963:"eip6963",AUTH:"AUTH"},CONNECTOR_NAMES:{AUTH:"Auth"},AUTH_CONNECTOR_SUPPORTED_CHAINS:["eip155","solana"],LIMITS:{PENDING_TRANSACTIONS:99},CHAIN:{EVM:"eip155",SOLANA:"solana",POLKADOT:"polkadot",BITCOIN:"bip122",TON:"ton",TRON:"tron"},CHAIN_NAME_MAP:{eip155:"EVM Networks",solana:"Solana",polkadot:"Polkadot",bip122:"Bitcoin",cosmos:"Cosmos",sui:"Sui",stacks:"Stacks",ton:"TON",tron:"TRON"},ADAPTER_TYPES:{BITCOIN:"bitcoin",SOLANA:"solana",WAGMI:"wagmi",ETHERS:"ethers",ETHERS5:"ethers5",TON:"ton",TRON:"tron"},USDT_CONTRACT_ADDRESSES:["0xdac17f958d2ee523a2206206994597c13d831ec7","0xc2132d05d31c914a87c6611c10748aeb04b58e8f","0x9702230a8ea53601f5cd2dc00fdbc13d4df4a8c7","0x919C1c267BC06a7039e03fcc2eF738525769109c","0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e","0x55d398326f99059fF775485246999027B3197955","0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9"],SOLANA_SPL_TOKEN_ADDRESSES:{SOL:"So11111111111111111111111111111111111111112"},NATIVE_IMAGE_IDS_BY_NAMESPACE:{eip155:"ba0ba0cd-17c6-4806-ad93-f9d174f17900",solana:"3e8119e5-2a6f-4818-c50c-1937011d5900",bip122:"0b4838db-0161-4ffe-022d-532bf03dba00"},TOKEN_SYMBOLS_BY_ADDRESS:{"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48":"USDC","0x833589fcd6edb6e08f4c7c32d4f71b54bda02913":"USDC","0x0b2c639c533813f4aa9d7837caf62653d097ff85":"USDC","0xaf88d065e77c8cc2239327c5edb3a432268e5831":"USDC","0x3c499c542cef5e3811e1192ce70d8cc03d5c3359":"USDC","0x2791bca1f2de4661ed88a30c99a7a9449aa84174":"USDC",EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v:"USDC","0xdac17f958d2ee523a2206206994597c13d831ec7":"USDT","0x94b008aa00579c1307b0ef2c499ad98a8ce58e58":"USDT","0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9":"USDT","0xc2132d05d31c914a87c6611c10748aeb04b58e8f":"USDT",Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB:"USDT"},HTTP_STATUS_CODES:{SERVER_ERROR:500,TOO_MANY_REQUESTS:429,SERVICE_UNAVAILABLE:503,FORBIDDEN:403},UNSUPPORTED_NETWORK_NAME:"Unknown Network",SECURE_SITE_SDK_ORIGIN:(typeof ee<"u"&&typeof ne<"u"?ne.NEXT_PUBLIC_SECURE_SITE_ORIGIN:void 0)||"https://secure.walletconnect.org",REMOTE_FEATURES_ALERTS:{MULTI_WALLET_NOT_ENABLED:{DEFAULT:{displayMessage:"Multi-Wallet Not Enabled",debugMessage:"Multi-wallet support is not enabled. Please enable it in your AppKit configuration at cloud.reown.com."},CONNECTIONS_HOOK:{displayMessage:"Multi-Wallet Not Enabled",debugMessage:"Multi-wallet support is not enabled. Please enable it in your AppKit configuration at cloud.reown.com to use the useAppKitConnections hook."},CONNECTION_HOOK:{displayMessage:"Multi-Wallet Not Enabled",debugMessage:"Multi-wallet support is not enabled. Please enable it in your AppKit configuration at cloud.reown.com to use the useAppKitConnection hook."}},HEADLESS_NOT_ENABLED:{DEFAULT:{displayMessage:"",debugMessage:"Headless support is not enabled. Please enable it with the features.headless option in the AppKit configuration and make sure your current plan supports it."}}},IS_DEVELOPMENT:typeof ee<"u"&&!1,DEFAULT_ALLOWED_ANCESTORS:["http://localhost:*","https://localhost:*","http://127.0.0.1:*","https://127.0.0.1:*","https://*.pages.dev","https://*.vercel.app","https://*.ngrok-free.app","https://secure-mobile.walletconnect.com","https://secure-mobile.walletconnect.org"],METMASK_CONNECTOR_NAME:"MetaMask",TRUST_CONNECTOR_NAME:"Trust Wallet",SOLFLARE_CONNECTOR_NAME:"Solflare",PHANTOM_CONNECTOR_NAME:"Phantom",COIN98_CONNECTOR_NAME:"Coin98",MAGIC_EDEN_CONNECTOR_NAME:"Magic Eden",BACKPACK_CONNECTOR_NAME:"Backpack",BITGET_CONNECTOR_NAME:"Bitget Wallet",FRONTIER_CONNECTOR_NAME:"Frontier",XVERSE_CONNECTOR_NAME:"Xverse Wallet",LEATHER_CONNECTOR_NAME:"Leather",OKX_CONNECTOR_NAME:"OKX Wallet",BINANCE_CONNECTOR_NAME:"Binance Wallet",EIP155:"eip155",ADD_CHAIN_METHOD:"wallet_addEthereumChain",EIP6963_ANNOUNCE_EVENT:"eip6963:announceProvider",EIP6963_REQUEST_EVENT:"eip6963:requestProvider",CONNECTOR_RDNS_MAP:{coinbaseWallet:"com.coinbase.wallet",coinbaseWalletSDK:"com.coinbase.wallet"},CONNECTOR_TYPE_EXTERNAL:"EXTERNAL",CONNECTOR_TYPE_WALLET_CONNECT:"WALLET_CONNECT",CONNECTOR_TYPE_INJECTED:"INJECTED",CONNECTOR_TYPE_ANNOUNCED:"ANNOUNCED",CONNECTOR_TYPE_AUTH:"AUTH",CONNECTOR_TYPE_MULTI_CHAIN:"MULTI_CHAIN",CONNECTOR_TYPE_W3M_AUTH:"AUTH"},Et={caipNetworkIdToNumber(r){return r?Number(r.split(":")[1]):void 0},parseEvmChainId(r){return typeof r=="string"?this.caipNetworkIdToNumber(r):r},getNetworksByNamespace(r,e){return(r==null?void 0:r.filter(t=>t.chainNamespace===e))||[]},getFirstNetworkByNamespace(r,e){return this.getNetworksByNamespace(r,e)[0]},getNetworkNameByCaipNetworkId(r,e){var a;if(!e)return;const t=r.find(s=>s.caipNetworkId===e);if(t)return t.name;const[n]=e.split(":");return((a=We.CHAIN_NAME_MAP)==null?void 0:a[n])||void 0}},Nt=["eip155","solana","polkadot","bip122","cosmos","sui","stacks"];export{ce as $,J as A,o as B,W as C,V as D,pe as E,Pe as F,ze as G,st as H,Ue as I,z as J,Y as K,L,S as M,De as N,et as O,C as P,ut as Q,$ as R,ue as S,it as T,H as U,K as V,G as W,k as X,B as Y,ve as Z,Ee as _,Q as a,ht as a0,yt as a1,Ze as a2,v as a3,Se as a4,Qe as a5,Re as a6,de as a7,xe as a8,O as a9,ft as aA,dt as aB,bt as aC,pt as aD,Z as aE,gt as aF,h as aG,rt as aH,Ye as aI,Me as aa,Ce as ab,ie as ac,ct as ad,Oe as ae,le as af,g as ag,he as ah,ye as ai,te as aj,Ae as ak,Te as al,x as am,Je as an,Xe as ao,w as ap,tt as aq,M as ar,nt as as,at,We as au,lt as av,Nt as aw,Fe as ax,mt as ay,Et as az,X as b,_e as c,oe as d,_ as e,je as f,Le as g,Ke as h,fe as i,I as j,P as k,R as l,j as m,Ie as n,$e as o,F as p,l as q,D as r,ot as s,c as t,He as u,me as v,Ve as w,q as x,Be as y,U as z};
|
|
8
|
-
//# sourceMappingURL=NetworkUtil-
|
|
8
|
+
//# sourceMappingURL=NetworkUtil-Clofb_T-.js.map
|