@dcl/shop 1.13.1-35095058100.commit-8d694c8 → 1.13.1-35110739985.commit-7718205
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-CjNbjbB8.js → Activity-O6LT8hqU.js} +4 -4
- package/_assets/{AnimatedBackground-DsRNSmF9.js → AnimatedBackground-CB4PvfXA.js} +6 -6
- package/_assets/{Assets--xiu2hf1.js → Assets-Ctos_NmX.js} +3 -3
- package/_assets/{Authorizations-CAq4bDIU.js → Authorizations-DyW6TgVG.js} +2 -2
- package/_assets/{Cart-Dn-yuO7W.js → Cart-KBBb4RPC.js} +2 -2
- package/_assets/{Collection-DmkDiPC5.js → Collection-B763ift6.js} +2 -2
- package/_assets/{CollectionCarousel-C2aZMUS6.js → CollectionCarousel-DFNRTOFP.js} +3 -3
- package/_assets/{Confetti-CQ1miyT0.js → Confetti-B1XP6v1O.js} +4 -4
- package/_assets/{ConstantsUtil-DxsGGeAI.js → ConstantsUtil-6Pwi3OKY.js} +2 -2
- package/_assets/{ContentClient-DADL-eWJ.js → ContentClient-BuElv52x.js} +2 -2
- package/_assets/{Creator-DZvSnP1W.js → Creator-JaygbdxX.js} +2 -2
- package/_assets/{DeploymentBuilder-DM4wrDOA.js → DeploymentBuilder-aEYKwzH4.js} +2 -2
- package/_assets/{EmotePlaybackBar-DKUTpuQ1.js → EmotePlaybackBar-BJLqHcgD.js} +3 -3
- package/_assets/{ErrorNotice-Dhs1BLZ6.js → ErrorNotice-CehMoY9b.js} +2 -2
- package/_assets/{Event-e3lOCI2G.js → Event-BKsvAEZR.js} +2 -2
- package/_assets/{ExchangeController-D1BhRLY_.js → ExchangeController-m6NotXbL.js} +2 -2
- package/_assets/{Faq-qe1pCR9P.js → Faq-DHIkLMIT.js} +2 -2
- package/_assets/{GetCredits-B96wMekN.js → GetCredits-DcNwBHxf.js} +2 -2
- package/_assets/{Grow-pyVWvnNE.js → Grow-C2g65qe9.js} +2 -2
- package/_assets/{HelpersUtil-B-VhnmAV.js → HelpersUtil-Bnvdbw4V.js} +2 -2
- package/_assets/{ItemDetail-EQYc-D1i.js → ItemDetail-DJM4Utdh.js} +2 -2
- package/_assets/{LoadMore-3LNbX1EU.js → LoadMore-D1ApwWXh.js} +2 -2
- package/_assets/{ManaPricingBanner.styles-Xpaqvszn.js → ManaPricingBanner.styles-BJpi8rP5.js} +2 -2
- package/_assets/{MyAssets-Cw8rL4Qm.js → MyAssets-DC5W_tsB.js} +2 -2
- package/_assets/{MyFavorites-C-H9WoDf.js → MyFavorites-VcdUYwK3.js} +2 -2
- package/_assets/{NetworkUtil-Cp-gtHa0.js → NetworkUtil-DNxN28kF.js} +2 -2
- package/_assets/{NotFound-C_hegLMz.js → NotFound-Bh3Yk2Sb.js} +2 -2
- package/_assets/{NotificationsBell-DEOx8fEC.js → NotificationsBell-CYBZ8jux.js} +2 -2
- package/_assets/{OutfitDetail-DccboofD.js → OutfitDetail-Bsult-u3.js} +2 -2
- package/_assets/{OutfitPreview-BT1g84TM.js → OutfitPreview-MOY2qAET.js} +2 -2
- package/_assets/{OutfitStudio-DVNHreV-.js → OutfitStudio-BPLVgE7b.js} +2 -2
- package/_assets/{SaleCountdown-BCjbqWcU.js → SaleCountdown-CZ2zCEuD.js} +2 -2
- package/_assets/{Spinner-hLMP163F.js → Spinner-Bli82tb5.js} +2 -2
- package/_assets/{StoreSettings-C4lpIKgV.js → StoreSettings-C1Gv-cCN.js} +2 -2
- package/_assets/{Success-DZwN3t4z.js → Success-B2Z93qNy.js} +2 -2
- package/_assets/{SwapController-BPiF_Q9x.js → SwapController-Cek3YsoY.js} +2 -2
- package/_assets/{TradeService-D8Zf_eTM.js → TradeService-C-AbGVlE.js} +2 -2
- package/_assets/{W3MFrameProviderSingleton-ByxVGL9W.js → W3MFrameProviderSingleton-mF4CCLmj.js} +4 -4
- package/_assets/{WebCryptoP256-BowGpuyg.js → WebCryptoP256-B-dLbvSm.js} +2 -2
- package/_assets/{authorizations-D_SudRT-.js → authorizations-BF60RZYU.js} +2 -2
- package/_assets/{basic-sN1HnC_u.js → basic-TAsmd6Xa.js} +2 -2
- package/_assets/{biconomy-BijOlHn5.js → biconomy-BROTTSQq.js} +2 -2
- package/_assets/{browseLayout.styles-6-W9YjOC.js → browseLayout.styles-DJ6ptfco.js} +2 -2
- package/_assets/{browser-DynTtmBx.js → browser-D7KHILZd.js} +2 -2
- package/_assets/{browser-D9YPKxfl.js → browser-DNnsZJT3.js} +2 -2
- package/_assets/{browser-ponyfill-BVvT8_Fp.js → browser-ponyfill-D-2OW3pz.js} +2 -2
- package/_assets/builder-Bi-1rymv.js +2 -0
- package/_assets/{buy-BkbR80Gf.js → buy-CiksvueJ.js} +2 -2
- package/_assets/{buy-gasless-CQdgMa0F.js → buy-gasless-DG2qGHrJ.js} +2 -2
- package/_assets/{categories-Dquh1vbV.js → categories-BNbtxrs7.js} +2 -2
- package/_assets/{ccip-CV07CEfz.js → ccip-BNDG19W5.js} +2 -2
- package/_assets/{ccip-BQaVTqUi.js → ccip-pGTY1Hnw.js} +2 -2
- package/_assets/{chains-Bp3h2aaE.js → chains-1XVMAf69.js} +2 -2
- package/_assets/collectionPage.styles-RZVhtMJK.js +41 -0
- package/_assets/{common-vsCsmUBn.js → common-Bwhl0TxO.js} +2 -2
- package/_assets/{controller-DIQ9DcOx.js → controller-DVUx791t.js} +3 -3
- package/_assets/{core-Cs979BA0.js → core-BwSauelP.js} +5 -5
- package/_assets/{createSvgIcon-P53Pfdxl.js → createSvgIcon-B_LncRTh.js} +2 -2
- package/_assets/{crumbs.styles-N13K8LJF.js → crumbs.styles-BD0KsEdc.js} +2 -2
- package/_assets/{custom-DP7Ww2Mp.js → custom-9Ox9ngZH.js} +2 -2
- package/_assets/{data-capture-r6LhzaPe.js → data-capture-DSDu9OaX.js} +2 -2
- package/_assets/{dcl-schemas-n1W5glLl.js → dcl-schemas-BfFZv5Pe.js} +2 -2
- package/_assets/{decimals-BW5hR24C.js → decimals-C6k5mXUX.js} +2 -2
- package/_assets/{decimals-1-P-OpKN.js → decimals-CeH4Zk94.js} +2 -2
- package/_assets/{detectExtension-DQg6wKZQ.js → detectExtension-BozHquzY.js} +2 -2
- package/_assets/{disposePreview-D5gU11Se.js → disposePreview-CTqm0wil.js} +2 -2
- package/_assets/{email-C4mis8Vg.js → email-W_rvVD_7.js} +2 -2
- package/_assets/{embedded-wallet-CaKg_r8U.js → embedded-wallet-CylC0mwp.js} +2 -2
- package/_assets/{emotion-styled.browser.esm-BUJmozsy.js → emotion-styled.browser.esm-CQtWGpOn.js} +2 -2
- package/_assets/{engine-D07w-XRT.js → engine-XmlRLqF0.js} +2 -2
- package/_assets/{errors-DhRbQUQ8.js → errors-BAO7_A7a.js} +2 -2
- package/_assets/{estimate-l1-fee-CVLkkmbZ.js → estimate-l1-fee-C6pUU9Gj.js} +2 -2
- package/_assets/{eth_estimateGas-DcrnZAhD.js → eth_estimateGas-DjOsaEES.js} +2 -2
- package/_assets/{eth_getStorageAt-D55EQvGL.js → eth_getStorageAt-Bckr5iRY.js} +2 -2
- package/_assets/{eth_getTransactionCount-996c8uw3.js → eth_getTransactionCount-C5Jy7jT6.js} +2 -2
- package/_assets/{ethereum-BB2NY3Ze.js → ethereum-D9mzJwLc.js} +2 -2
- package/_assets/{ethers-OrSZ5jmz.js → ethers-rfaBand6.js} +2 -2
- package/_assets/{events-C-1hKiSc.js → events-C9-d0wKW.js} +2 -2
- package/_assets/{execute-DkcTGxdS.js → execute-97e39I17.js} +3 -3
- package/_assets/{extractIPFS-DGBDqkFQ.js → extractIPFS-DrYyPyFp.js} +2 -2
- package/_assets/{features-Dgji4xPv.js → features-DPENc6M_.js} +2 -2
- package/_assets/{fetchTokenMetadata-CLY3eWo4.js → fetchTokenMetadata-CKjngqLO.js} +3 -3
- package/_assets/{field.styles-B66-mhwP.js → field.styles-SsNLO8pf.js} +2 -2
- package/_assets/{fortmatic-CIXGktdE.js → fortmatic-Br6NCLjK.js} +2 -2
- package/_assets/{get-bytecode-B4ah9_Ee.js → get-bytecode-DnzzQt09.js} +2 -2
- package/_assets/{get-ecosystem-wallet-info-BUVR1h_d.js → get-ecosystem-wallet-info-D5A19ioN.js} +2 -2
- package/_assets/{getBalance-DcjxPvBd.js → getBalance-CG19_hcj.js} +3 -3
- package/_assets/{getInstalledModules-CVmsNb5W.js → getInstalledModules-D3apLTNL.js} +2 -2
- package/_assets/{getNFT-CNkldXgA.js → getNFT-CLwGPsGb.js} +2 -2
- package/_assets/{getNFT-D6Q2R2w8.js → getNFT-DErsYxl1.js} +3 -3
- package/_assets/{grid.styles-CbKnaEaH.js → grid.styles-BRtgKeAE.js} +2 -2
- package/_assets/{hashTypedData-BMQaC5AO.js → hashTypedData-CB0WoLGg.js} +2 -2
- package/_assets/{hashTypedData-BXTiCI6R.js → hashTypedData-DXatJfP_.js} +2 -2
- package/_assets/{import-nI9C4MLI.js → import-vNIvljOs.js} +2 -2
- package/_assets/{in-app-qH_5BfXH.js → in-app-KVeRiFav.js} +2 -2
- package/_assets/{in-app-wallet-calls-D5QY4WMZ.js → in-app-wallet-calls-BGgHKG4E.js} +2 -2
- package/_assets/{index-7LiE_2Hn.js → index-4JmY5_RP.js} +2 -2
- package/_assets/{index-DsKy4xQX.js → index-5rIJfAZy.js} +2 -2
- package/_assets/{index-7jxYsA5x.js → index-ALUnxrx5.js} +2 -2
- package/_assets/{index-DhxbjStl.js → index-B-3nI4H_.js} +2 -2
- package/_assets/{index-CBqzQu4b.js → index-B4z00rU5.js} +3 -3
- package/_assets/{index-C11xAGLj.js → index-B6htjYue.js} +2 -2
- package/_assets/{index-5TanjW1p.js → index-B6oBqK3x.js} +4 -4
- package/_assets/{index-B9LTXTJ_.js → index-BCazbM3i.js} +2 -2
- package/_assets/{index-ChkZ_3N-.js → index-BM-LiAJT.js} +2 -2
- package/_assets/{index-C3N8gNG5.js → index-BOcVPMst.js} +2 -2
- package/_assets/{index-C_vB1IQd.js → index-BXtnar-h.js} +2 -2
- package/_assets/{index-CMGA6Ehu.js → index-BeulnmWl.js} +2 -2
- package/_assets/{index-DEL0w41-.js → index-BgUxbRek.js} +2 -2
- package/_assets/{index-CqA25hIa.js → index-BkL9KpHE.js} +3 -3
- package/_assets/{index-u3wacysv.js → index-BphkB5h5.js} +2 -2
- package/_assets/{index-DGoH3dH-.js → index-By6o2Lqu.js} +2 -2
- package/_assets/{index-BT2VuKr_.js → index-ByLI3MnY.js} +2 -2
- package/_assets/{index-jsed_aC3.js → index-C8lRlbcU.js} +2 -2
- package/_assets/{index-CKir0NTC.js → index-C9c1P_dO.js} +2 -2
- package/_assets/{index-BlyJ0EeU.js → index-CD5F8xRq.js} +2 -2
- package/_assets/{index-Q91sfGFW.js → index-CDYCnNEZ.js} +2 -2
- package/_assets/{index-QEKAtx1e.js → index-CHspDov_.js} +2 -2
- package/_assets/{index-2lALaSI0.js → index-C_KbxGyM.js} +2 -2
- package/_assets/{index-B8pq8JLn.js → index-CcQaDuSy.js} +2 -2
- package/_assets/{index-DuuWxLJb.js → index-CcTwxjsV.js} +2 -2
- package/_assets/{index-BHeP5cAB.js → index-CdYlEnpz.js} +2 -2
- package/_assets/{index-DOE5PvRf.js → index-CeVIXHhQ.js} +4 -4
- package/_assets/{index-CFkA928w.js → index-CfYZS3Gd.js} +2 -2
- package/_assets/{index-FgD-q8nY.js → index-CkxowA1-.js} +2 -2
- package/_assets/{index-t1CDJb0U.js → index-CrcEiZEu.js} +2 -2
- package/_assets/{index-Dbzum1xk.js → index-CuQaF0PK.js} +2 -2
- package/_assets/{index-3xvycxSp.js → index-CuovT0LH.js} +2 -2
- package/_assets/{index-CulTnm_-.js → index-Cwv6CxNk.js} +2 -2
- package/_assets/{index-DzQkIbqv.js → index-CyVGgMkK.js} +12 -12
- package/_assets/{index-Bt53hnH3.js → index-D29HW6CF.js} +2 -2
- package/_assets/{index-BYf--6IB.js → index-D3GehksE.js} +2 -2
- package/_assets/{index-BIDLTLRs.js → index-D4yqXYo7.js} +2 -2
- package/_assets/{index-B0eaBbwk.js → index-D9atNHM1.js} +4 -4
- package/_assets/{index-aYru672w.js → index-DA3Q9xWC.js} +2 -2
- package/_assets/{index-BymYE2Hq.js → index-DHFZfpXa.js} +2 -2
- package/_assets/{index-CTpgpMEc.js → index-DJ2ef_Qi.js} +2 -2
- package/_assets/{index-BbOkb2Lk.js → index-DJNds9OD.js} +2 -2
- package/_assets/{index-CspzAmAd.js → index-DKffn2SX.js} +2 -2
- package/_assets/{index-CZBL8oDN.css → index-DRbMF22n.css} +1 -1
- package/_assets/{index-Cfiy7F58.js → index-DT143eSv.js} +2 -2
- package/_assets/{index-DILi1pU7.js → index-DTtoNYtG.js} +2 -2
- package/_assets/{index-B767Ef3o.js → index-DXiZbXpt.js} +2 -2
- package/_assets/{index-B6gpbqHk.js → index-DYCC7rPf.js} +3 -3
- package/_assets/{index-Cfg8NIxf.js → index-Daf64xZr.js} +2 -2
- package/_assets/{index-BBmOO_5v.js → index-DbWZDnMx.js} +2 -2
- package/_assets/{index-DyXRsRBM.js → index-Dc8QkZVC.js} +2 -2
- package/_assets/{index-DrYTVtgg.js → index-DexDa-x6.js} +2 -2
- package/_assets/{index-BJOeyXU6.js → index-DhIqKIxS.js} +2 -2
- package/_assets/{index-DSZlP7vv.js → index-DmY8v3gX.js} +2 -2
- package/_assets/{index-D2_5jCAk.js → index-Dnf-yL2f.js} +2 -2
- package/_assets/{index-BbvUH58s.js → index-DwU-rTe_.js} +2 -2
- package/_assets/{index-Ci7OJEKI.js → index-DzVDhWN3.js} +2 -2
- package/_assets/{index-BUJII-te.js → index-ISYU3o6e.js} +2 -2
- package/_assets/{index-CzONDXJm.js → index-SvKZEdOG.js} +2 -2
- package/_assets/{index-C9g_L_xU.js → index-TKsvI-NM.js} +2 -2
- package/_assets/{index-gl06JVkD.js → index-fUxRvoXH.js} +2 -2
- package/_assets/{index-DHIc5ihj.js → index-gO3cCHE1.js} +2 -2
- package/_assets/{index-CO3xBlL2.js → index-htwtpupR.js} +2 -2
- package/_assets/{index-DWpJbdNp.js → index-ikXmGLHB.js} +2 -2
- package/_assets/{index-CLkKFzPp.js → index-mvEa1F06.js} +2 -2
- package/_assets/{index-VrmvnTaa.js → index-o0uVygcP.js} +2 -2
- package/_assets/{index-DxPCOmel.js → index-pSYYTNRD.js} +3 -3
- package/_assets/{index-CiVDvcz9.js → index-x2xGnkT4.js} +2 -2
- package/_assets/{index.es-CeXL7thu.js → index.es-Cd0iKBsN.js} +2 -2
- package/_assets/{index.es-O2YZpGjD.js → index.es-CeYojd2g.js} +5 -5
- package/_assets/{index.es-89IU7kpU.js → index.es-D8l4zpKy.js} +2 -2
- package/_assets/{index.es-BxUByfMu.js → index.es-yl8dzxKR.js} +2 -2
- package/_assets/{items-empty-Bo2ok7jY.js → items-empty-DdvLsLv8.js} +2 -2
- package/_assets/{jump-CfxL77MI.js → jump-DVwOeoW4.js} +2 -2
- package/_assets/{linkAccount-CH9thals.js → linkAccount-VTa1gyga.js} +2 -2
- package/_assets/{localBatchGatewayRequest-CSeZ4gRB.js → localBatchGatewayRequest-CiuE3Uyi.js} +2 -2
- package/_assets/{modal.styles-2uQXkegU.js → modal.styles-BrAS9zAx.js} +2 -2
- package/_assets/{native-CTjG-6uw.js → native-CpLbYufg.js} +2 -2
- package/_assets/{networks-DcWUPxCR.js → networks-HjNF9J92.js} +2 -2
- package/_assets/{onramp-i_2R0Aty.js → onramp-BOMs0oY_.js} +2 -2
- package/_assets/{openzeppelin-CRJGheas.js → openzeppelin-BKXlFThB.js} +2 -2
- package/_assets/{ownerOf-Cg4HNQ0Q.js → ownerOf-DN3_LnJB.js} +2 -2
- package/_assets/{parseNft-C5TjCi9l.js → parseNft-d1FcpMcn.js} +3 -3
- package/_assets/{parseSignature-DlxX_eFH.js → parseSignature-CJgDc_lf.js} +4 -4
- package/_assets/{parseSignature-BkGllSKb.js → parseSignature-WztwOX0T.js} +2 -2
- package/_assets/{passkeys-DHzFFqFt.js → passkeys-Bbt6ZFiZ.js} +2 -2
- package/_assets/{pay-with-exchange-Da-95QjC.js → pay-with-exchange-4pYYuso4.js} +2 -2
- package/_assets/{prepare-contract-call-DRyZHwAJ.js → prepare-contract-call-CzqNBdjC.js} +2 -2
- package/_assets/{qr-overlay-B5-Cv-4F.js → qr-overlay-D-zdQAjb.js} +4 -4
- package/_assets/{react-DaBuTM6Q.js → react-BDtnT4_L.js} +2 -2
- package/_assets/{receive-BxwWtavl.js → receive-BAEAd1F0.js} +2 -2
- package/_assets/{resolveImplementation-UAeMoslS.js → resolveImplementation-vgG3euf-.js} +2 -2
- package/_assets/{resume-buy-DshgN9vm.js → resume-buy-CSgJ-XwR.js} +2 -2
- package/_assets/{rpc-xoh1bqpg.js → rpc-CtbKgNnw.js} +2 -2
- package/_assets/{sales-empty-B0QNGz8U.js → sales-empty-D73ma-y1.js} +2 -2
- package/_assets/{search-empty-CiaPLxpu.js → search-empty-D0-TyK_V.js} +2 -2
- package/_assets/{secp256k1-CI4_BdKy.js → secp256k1-Bx7FlDx1.js} +2 -2
- package/_assets/{secp256k1-B6GZ7kat.js → secp256k1-CzsGuHty.js} +2 -2
- package/_assets/{secp256k1-IgPcu2TC.js → secp256k1-M4GB_fDX.js} +2 -2
- package/_assets/{send-CMxH0R30.js → send-B6flY4x2.js} +2 -2
- package/_assets/{send-batch-transaction-_47YxVXu.js → send-batch-transaction-Co4ePIo5.js} +2 -2
- package/_assets/{send-eip712-transaction-dUQPsneg.js → send-eip712-transaction-Cs4IqHVW.js} +3 -3
- package/_assets/{send-gasless-transaction-C9qimzDD.js → send-gasless-transaction-DWAk7bwN.js} +3 -3
- package/_assets/{send-transaction-C00epVak.js → send-transaction-B9T50Ic_.js} +3 -3
- package/_assets/{sendMetaTransaction-D_Udygrx.js → sendMetaTransaction-CVkzKCvR.js} +2 -2
- package/_assets/{sendRawTransaction-3Tc8O82f.js → sendRawTransaction-CQA22kgz.js} +4 -4
- package/_assets/{sentry-ilLelGl_.js → sentry-DJtBihbA.js} +3 -3
- package/_assets/{serializeTransaction-BN5Z150K.js → serializeTransaction-BXSGxjck.js} +2 -2
- package/_assets/{session-proposal-DFNQHP37.js → session-proposal-BZ-s21nV.js} +2 -2
- package/_assets/{session-request-D-kuAKOc.js → session-request-6undDdyN.js} +3 -3
- package/_assets/{sha256-C6I6NkPD.js → sha256-5LafXqux.js} +2 -2
- package/_assets/{sha3-CcKshJ6_.js → sha3--a5gJVIr.js} +2 -2
- package/_assets/signin-empty-pUeXGLFR.js +2 -0
- package/_assets/{signing-D_eQ6aEY.js → signing-smJEu_aC.js} +4 -4
- package/_assets/{skeleton.styles-B7ceCvK9.js → skeleton.styles-Cqgtx7q8.js} +2 -2
- package/_assets/{socials-DCNPHMgt.js → socials-BB50T59X.js} +2 -2
- package/_assets/{styled-TsFrVdC0.js → styled-sEDZsWVx.js} +2 -2
- package/_assets/{swaps-CicFV6pq.js → swaps--hKKZcn7.js} +2 -2
- package/_assets/{thirdweb-Vp1uscmH.js → thirdweb-NC84C-A5.js} +4 -4
- package/_assets/{to-serializable-transaction-BT5px6SS.js → to-serializable-transaction-DhaCLdH1.js} +3 -3
- package/_assets/{totalSupply-CkL8_XXt.js → totalSupply-BEc4Cg1i.js} +2 -2
- package/_assets/{transaction-sOBP-DPj.js → transaction-D4x9bx9b.js} +2 -2
- package/_assets/{transactionReceipt--9bOdV8l.js → transactionReceipt-BqZyCLMn.js} +2 -2
- package/_assets/{transactions-CWkneGU6.js → transactions-BWtQOgJv.js} +2 -2
- package/_assets/{useCreditPacks-DGUqMJ6U.js → useCreditPacks-L9xKGYZ4.js} +2 -2
- package/_assets/{useInfiniteGrid-DpNO4hZU.js → useInfiniteGrid-3LXYF7KT.js} +2 -2
- package/_assets/{useStore-HIvj56kg.js → useStore-pULSLKbx.js} +3 -3
- package/_assets/{useTheme-5m8LACXM.js → useTheme-BblsW0tr.js} +2 -2
- package/_assets/{utils-Ci73E7nx.js → utils-rjss_XXl.js} +2 -2
- package/_assets/{verifyHash-Bk-B5GPz.js → verifyHash-DRixXMjz.js} +2 -2
- package/_assets/{w3m-modal-BtyAd8rE.js → w3m-modal-BZ1FGn4r.js} +2 -2
- package/_assets/{w3m-modal-BTUtrhm6.js → w3m-modal-DMH1kr4I.js} +2 -2
- package/_assets/{wait-for-tx-receipt-Cbmd9TUG.js → wait-for-tx-receipt-ChEdZDPJ.js} +2 -2
- package/_assets/{wallets-CUIygOS2.js → wallets-CFIKit6R.js} +6 -6
- package/_assets/{web-connector-BIkHBHih.js → web-connector-hTbyWCSc.js} +4 -4
- package/_assets/{writeContract-CEDCT-Ld.js → writeContract-B5nOXYik.js} +2 -2
- package/_assets/{zora-sepolia-C43Ueozz.js → zora-sepolia-CmUXMudA.js} +2 -2
- package/_assets/{zoraTestnet-CnMCD5vw.js → zoraTestnet-DiuTPx_I.js} +2 -2
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/builder-BCPamKJP.js +0 -2
- package/_assets/collectionPage.styles-St6jJHia.js +0 -41
- package/_assets/signin-empty-C52WOkGa.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{f as la,u as da,r as ee,j as p,a as yc}from"./react-DaBuTM6Q.js";import{a4 as bc,j as wc,e as At,v as hr,w as pr,d as v,s as F,I as Te,x as Ec,L as fa,c as A,dK as it,dL as Rt,K as zt,S as Ts,dM as Sc,dN as os,al as Wt,N as rs,i as ha,bG as pa,dh as vc,G as Jt,D as Gt,H as $c,E as xc,bg as Cs,X as Ic,cM as Rc,aR as _c,Z as gr,a0 as mr,a1 as yr,P as Ac,Y as jc,dO as Tc,dP as Cc}from"./index-DzQkIbqv.js";import{b as Pc}from"./builder-BCPamKJP.js";import{B as Ps,d as ns}from"./dcl-schemas-n1W5glLl.js";import{r as kc}from"./sha3-CcKshJ6_.js";import{r as Oc}from"./browser-DynTtmBx.js";import{p as Bc}from"./sentry-ilLelGl_.js";import{r as Lc}from"./authorizations-D_SudRT-.js";import{o as Nc,O as ks}from"./buy-BkbR80Gf.js";import{C as ga,a as _t,h as ma,r as Mc,k as qc}from"./ethers-OrSZ5jmz.js";import{S as ya,c as Hc,i as Dc,D as Os,a as Uc}from"./SaleCountdown-BCjbqWcU.js";import{f as ba}from"./errors-DhRbQUQ8.js";import{m as wa}from"./mana-matic-CEqvSwrJ.js";import{T as Fc,n as Ea,S as Bs}from"./categories-Dquh1vbV.js";import{E as Kt}from"./ErrorNotice-Dhs1BLZ6.js";import{L as Vc}from"./LoadMore-3LNbX1EU.js";import{u as zc,R as br,i as Jc,k as Gc,l as Xc,m as wr,n as Er,o as Wc,p as Kc,q as Yc,r as Zc,s as Qc,t as Ls,v as Ns,w as Ms,a as eu,b as tu,c as ru,D as nu,d as su,C as iu,e as ou,f as au,g as cu,M as uu,h as lu,x as du}from"./browseLayout.styles-6-W9YjOC.js";import{u as fu}from"./useInfiniteGrid-DpNO4hZU.js";import{u as hu,s as pu}from"./sales-empty-B0QNGz8U.js";import{C as gu,R as mu,B as yu,T as bu,A as wu,a as Eu,b as Su,D as vu,M as $u}from"./ManaPricingBanner.styles-Xpaqvszn.js";import{C as xu}from"./field.styles-B66-mhwP.js";import{c as Iu,i as Ru}from"./items-empty-Bo2ok7jY.js";import{s as _u}from"./signin-empty-C52WOkGa.js";import{m as Au}from"./mana-matic-light-Bl5duieC.js";import"./intl-AKLEHPeO.js";import"./sendMetaTransaction-D_Udygrx.js";import"./skeleton.styles-B7ceCvK9.js";import"./import-nI9C4MLI.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]="2add0515-fd2b-4a0d-b1b1-6e548064527e",e._sentryDebugIdIdentifier="sentry-dbid-2add0515-fd2b-4a0d-b1b1-6e548064527e")}catch{}})();const Sa="shop:creations-hint:v1";function va(){try{const e=localStorage.getItem(Sa);if(!e)return{};const t=JSON.parse(e);return t&&typeof t=="object"&&!Array.isArray(t)?t:{}}catch{return{}}}function ju(e){if(!e)return null;const t=va()[e.toLowerCase()];return t&&Number.isFinite(t.count)&&t.count>0?{count:t.count}:null}function Tu(e,t){try{const n=va(),s=e.toLowerCase();t>0?n[s]={count:t}:delete n[s],localStorage.setItem(Sa,JSON.stringify(n))}catch{}}var Sr={},Ze={},Qe={},vr={},et={},Pe={},tt={},pt={},qs;function $a(){if(qs)return pt;qs=1,Object.defineProperty(pt,"__esModule",{value:!0}),pt.StructError=void 0;class e extends TypeError{constructor(n,s){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,...s()])}}return pt.StructError=e,pt}var be={},we={},Hs;function Qt(){if(Hs)return we;Hs=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 s(o){return typeof o=="symbol"?o.toString():typeof o=="string"?JSON.stringify(o):`${o}`}we.print=s;function d(o){const{done:f,value:r}=o.next();return f?void 0:r}we.shiftIterator=d;function u(o,f,r,i){if(o===!0)return;o===!1?o={}:typeof o=="string"&&(o={message:o});const{path:l,branch:h}=f,{type:w}=r,{refinement:S,message:D=`Expected a value of type \`${w}\`${S?` with refinement \`${S}\``:""}, but received: \`${s(i)}\``}=o;return{value:i,type:w,refinement:S,key:l[l.length-1],path:l,branch:h,...o,message:D}}we.toFailure=u;function*c(o,f,r,i){e(o)||(o=[o]);for(const l of o){const h=u(l,f,r,i);h&&(yield h)}}we.toFailures=c;function*a(o,f,r={}){const{path:i=[],branch:l=[o],coerce:h=!1,mask:w=!1}=r,S={path:i,branch:l};if(h&&(o=f.coercer(o,S),w&&f.type!=="type"&&t(f.schema)&&t(o)&&!Array.isArray(o)))for(const k in o)f.schema[k]===void 0&&delete o[k];let D="valid";for(const k of f.validator(o,S))k.explanation=r.message,D="not_valid",yield[k,void 0];for(let[k,X,K]of f.entries(o,S)){const R=a(X,K,{path:k===void 0?i:[...i,k],branch:k===void 0?l:[...l,X],coerce:h,mask:w,message:r.message});for(const E of R)E[0]?(D=E[0].refinement===null||E[0].refinement===void 0?"not_valid":"not_refined",yield[E[0],void 0]):h&&(X=E[1],k===void 0?o=X:o instanceof Map?o.set(k,X):o instanceof Set?o.add(X):t(o)&&(X!==void 0||k in o)&&(o[k]=X))}if(D!=="not_valid")for(const k of f.refiner(o,S))k.explanation=r.message,D="not_refined",yield[k,void 0];D==="valid"&&(yield[void 0,o])}return we.run=a,we}var Ds;function jt(){if(Ds)return be;Ds=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=$a(),t=Qt();class n{constructor(i){const{type:l,schema:h,validator:w,refiner:S,coercer:D=X=>X,entries:k=function*(){}}=i;this.type=l,this.schema=h,this.entries=k,this.coercer=D,w?this.validator=(X,K)=>{const R=w(X,K);return(0,t.toFailures)(R,K,this,X)}:this.validator=()=>[],S?this.refiner=(X,K)=>{const R=S(X,K);return(0,t.toFailures)(R,K,this,X)}:this.refiner=()=>[]}assert(i,l){return u(i,this,l)}create(i,l){return c(i,this,l)}is(i){return o(i,this)}mask(i,l){return a(i,this,l)}validate(i,l={}){return f(i,this,l)}}be.Struct=n;const s="EXACT_OPTIONAL";class d extends n{constructor(i){super({...i,type:`exact optional ${i.type}`}),this.brand=s}static isExactOptional(i){return(0,t.isObject)(i)&&"brand"in i&&i.brand===s}}be.ExactOptionalStruct=d;function u(r,i,l){const h=f(r,i,{message:l});if(h[0])throw h[0]}be.assert=u;function c(r,i,l){const h=f(r,i,{coerce:!0,message:l});if(h[0])throw h[0];return h[1]}be.create=c;function a(r,i,l){const h=f(r,i,{coerce:!0,mask:!0,message:l});if(h[0])throw h[0];return h[1]}be.mask=a;function o(r,i){return!f(r,i)[0]}be.is=o;function f(r,i,l={}){const h=(0,t.run)(r,i,l),w=(0,t.shiftIterator)(h);return w[0]?[new e.StructError(w[0],function*(){for(const k of h)k[0]&&(yield k[0])}),void 0]:[void 0,w[1]]}return be.validate=f,be}var Ve={},Q={},pe={},Us;function xa(){if(Us)return pe;Us=1,Object.defineProperty(pe,"__esModule",{value:!0}),pe.pick=pe.partial=pe.omit=pe.lazy=pe.dynamic=pe.deprecated=pe.define=pe.assign=void 0;const e=jt(),t=as();function n(...r){var w;const i=((w=r[0])==null?void 0:w.type)==="type",l=r.map(({schema:S})=>S),h=Object.assign({},...l);return i?(0,t.type)(h):(0,t.object)(h)}pe.assign=n;function s(r,i){return new e.Struct({type:r,schema:null,validator:i})}pe.define=s;function d(r,i){return new e.Struct({...r,refiner:(l,h)=>l===void 0||r.refiner(l,h),validator(l,h){return l===void 0?!0:(i(l,h),r.validator(l,h))}})}pe.deprecated=d;function u(r){return new e.Struct({type:"dynamic",schema:null,*entries(i,l){yield*r(i,l).entries(i,l)},validator(i,l){return r(i,l).validator(i,l)},coercer(i,l){return r(i,l).coercer(i,l)},refiner(i,l){return r(i,l).refiner(i,l)}})}pe.dynamic=u;function c(r){let i;return new e.Struct({type:"lazy",schema:null,*entries(l,h){i??(i=r()),yield*i.entries(l,h)},validator(l,h){return i??(i=r()),i.validator(l,h)},coercer(l,h){return i??(i=r()),i.coercer(l,h)},refiner(l,h){return i??(i=r()),i.refiner(l,h)}})}pe.lazy=c;function a(r,i){const{schema:l}=r,h={...l};for(const w of i)delete h[w];switch(r.type){case"type":return(0,t.type)(h);default:return(0,t.object)(h)}}pe.omit=a;function o(r){const i=r instanceof e.Struct,l=i?{...r.schema}:{...r};for(const h in l)l[h]=(0,t.optional)(l[h]);return i&&r.type==="type"?(0,t.type)(l):(0,t.object)(l)}pe.partial=o;function f(r,i){const{schema:l}=r,h={};for(const w of i)h[w]=l[w];switch(r.type){case"type":return(0,t.type)(h);default:return(0,t.object)(h)}}return pe.pick=f,pe}var Fs;function as(){if(Fs)return Q;Fs=1,Object.defineProperty(Q,"__esModule",{value:!0}),Q.unknown=Q.union=Q.type=Q.tuple=Q.string=Q.set=Q.regexp=Q.record=Q.exactOptional=Q.optional=Q.object=Q.number=Q.nullable=Q.never=Q.map=Q.literal=Q.intersection=Q.integer=Q.instance=Q.func=Q.enums=Q.date=Q.boolean=Q.bigint=Q.array=Q.any=void 0;const e=jt(),t=Qt(),n=xa();function s(){return(0,n.define)("any",()=>!0)}Q.any=s;function d(_){return new e.Struct({type:"array",schema:_,*entries(M){if(_&&Array.isArray(M))for(const[q,J]of M.entries())yield[q,J,_]},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)}`}})}Q.array=d;function u(){return(0,n.define)("bigint",_=>typeof _=="bigint")}Q.bigint=u;function c(){return(0,n.define)("boolean",_=>typeof _=="boolean")}Q.boolean=c;function a(){return(0,n.define)("date",_=>_ instanceof Date&&!isNaN(_.getTime())||`Expected a valid \`Date\` object, but received: ${(0,t.print)(_)}`)}Q.date=a;function o(_){const M={},q=_.map(J=>(0,t.print)(J)).join();for(const J of _)M[J]=J;return new e.Struct({type:"enums",schema:M,validator(J){return _.includes(J)||`Expected one of \`${q}\`, but received: ${(0,t.print)(J)}`}})}Q.enums=o;function f(){return(0,n.define)("func",_=>typeof _=="function"||`Expected a function, but received: ${(0,t.print)(_)}`)}Q.func=f;function r(_){return(0,n.define)("instance",M=>M instanceof _||`Expected a \`${_.name}\` instance, but received: ${(0,t.print)(M)}`)}Q.instance=r;function i(){return(0,n.define)("integer",_=>typeof _=="number"&&!isNaN(_)&&Number.isInteger(_)||`Expected an integer, but received: ${(0,t.print)(_)}`)}Q.integer=i;function l(_){return new e.Struct({type:"intersection",schema:null,*entries(M,q){for(const{entries:J}of _)yield*J(M,q)},*validator(M,q){for(const{validator:J}of _)yield*J(M,q)},*refiner(M,q){for(const{refiner:J}of _)yield*J(M,q)}})}Q.intersection=l;function h(_){const M=(0,t.print)(_),q=typeof _;return new e.Struct({type:"literal",schema:q==="string"||q==="number"||q==="boolean"?_:null,validator(J){return J===_||`Expected the literal \`${M}\`, but received: ${(0,t.print)(J)}`}})}Q.literal=h;function w(_,M){return new e.Struct({type:"map",schema:null,*entries(q){if(_&&M&&q instanceof Map)for(const[J,N]of q.entries())yield[J,J,_],yield[J,N,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)}`}})}Q.map=w;function S(){return(0,n.define)("never",()=>!1)}Q.never=S;function D(_){return new e.Struct({..._,validator:(M,q)=>M===null||_.validator(M,q),refiner:(M,q)=>M===null||_.refiner(M,q)})}Q.nullable=D;function k(){return(0,n.define)("number",_=>typeof _=="number"&&!isNaN(_)||`Expected a number, but received: ${(0,t.print)(_)}`)}Q.number=k;function X(_){const M=_?Object.keys(_):[],q=S();return new e.Struct({type:"object",schema:_??null,*entries(J){if(_&&(0,t.isObject)(J)){const N=new Set(Object.keys(J));for(const H of M){N.delete(H);const b=_[H];e.ExactOptionalStruct.isExactOptional(b)&&!Object.prototype.hasOwnProperty.call(J,H)||(yield[H,J[H],_[H]])}for(const H of N)yield[H,J[H],q]}},validator(J){return(0,t.isObject)(J)||`Expected an object, but received: ${(0,t.print)(J)}`},coercer(J){return(0,t.isObject)(J)?{...J}:J}})}Q.object=X;function K(_){return new e.Struct({..._,validator:(M,q)=>M===void 0||_.validator(M,q),refiner:(M,q)=>M===void 0||_.refiner(M,q)})}Q.optional=K;function R(_){return new e.ExactOptionalStruct(_)}Q.exactOptional=R;function E(_,M){return new e.Struct({type:"record",schema:null,*entries(q){if((0,t.isObject)(q))for(const J in q){const N=q[J];yield[J,J,_],yield[J,N,M]}},validator(q){return(0,t.isObject)(q)||`Expected an object, but received: ${(0,t.print)(q)}`}})}Q.record=E;function P(){return(0,n.define)("regexp",_=>_ instanceof RegExp)}Q.regexp=P;function U(_){return new e.Struct({type:"set",schema:null,*entries(M){if(_&&M instanceof Set)for(const q of M)yield[q,q,_]},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)}`}})}Q.set=U;function B(){return(0,n.define)("string",_=>typeof _=="string"||`Expected a string, but received: ${(0,t.print)(_)}`)}Q.string=B;function L(_){const M=S();return new e.Struct({type:"tuple",schema:null,*entries(q){if(Array.isArray(q)){const J=Math.max(_.length,q.length);for(let N=0;N<J;N++)yield[N,q[N],_[N]||M]}},validator(q){return Array.isArray(q)||`Expected an array, but received: ${(0,t.print)(q)}`}})}Q.tuple=L;function g(_){const M=Object.keys(_);return new e.Struct({type:"type",schema:_,*entries(q){if((0,t.isObject)(q))for(const J of M)yield[J,q[J],_[J]]},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}})}Q.type=g;function $(_){const M=_.map(q=>q.type).join(" | ");return new e.Struct({type:"union",schema:null,coercer(q){for(const J of _){const[N,H]=J.validate(q,{coerce:!0});if(!N)return H}return q},validator(q,J){const N=[];for(const H of _){const[...b]=(0,t.run)(q,H,J),[m]=b;if(!(m!=null&&m[0]))return[];for(const[I]of b)I&&N.push(I)}return[`Expected the value to satisfy a union of \`${M}\`, but received: ${(0,t.print)(q)}`,...N]}})}Q.union=$;function Y(){return(0,n.define)("unknown",()=>!0)}return Q.unknown=Y,Q}var Vs;function Cu(){if(Vs)return Ve;Vs=1,Object.defineProperty(Ve,"__esModule",{value:!0}),Ve.trimmed=Ve.defaulted=Ve.coerce=void 0;const e=jt(),t=Qt(),n=as();function s(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)})}Ve.coerce=s;function d(c,a,o={}){return s(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 i={...f};let l=!1;for(const h in r)i[h]===void 0&&(i[h]=r[h],l=!0);if(l)return i}return f})}Ve.defaulted=d;function u(c){return s(c,(0,n.string)(),a=>a.trim())}return Ve.trimmed=u,Ve}var Ee={},zs;function Pu(){if(zs)return Ee;zs=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=jt(),t=Qt();function n(r){return f(r,"empty",i=>{const l=s(i);return l===0||`Expected an empty ${r.type} but received one with a size of \`${l}\``})}Ee.empty=n;function s(r){return r instanceof Map||r instanceof Set?r.size:r.length}function d(r,i,l={}){const{exclusive:h}=l;return f(r,"max",w=>h?w<i:w<=i||`Expected a ${r.type} less than ${h?"":"or equal to "}${i} but received \`${w}\``)}Ee.max=d;function u(r,i,l={}){const{exclusive:h}=l;return f(r,"min",w=>h?w>i:w>=i||`Expected a ${r.type} greater than ${h?"":"or equal to "}${i} but received \`${w}\``)}Ee.min=u;function c(r){return f(r,"nonempty",i=>s(i)>0||`Expected a nonempty ${r.type} but received an empty one`)}Ee.nonempty=c;function a(r,i){return f(r,"pattern",l=>i.test(l)||`Expected a ${r.type} matching \`/${i.source}/\` but received "${l}"`)}Ee.pattern=a;function o(r,i,l=i){const h=`Expected a ${r.type}`,w=i===l?`of \`${i}\``:`between \`${i}\` and \`${l}\``;return f(r,"size",S=>{if(typeof S=="number"||S instanceof Date)return i<=S&&S<=l||`${h} ${w} but received \`${S}\``;if(S instanceof Map||S instanceof Set){const{size:k}=S;return i<=k&&k<=l||`${h} with a size ${w} but received one with a size of \`${k}\``}const{length:D}=S;return i<=D&&D<=l||`${h} with a length ${w} but received one with a length of \`${D}\``})}Ee.size=o;function f(r,i,l){return new e.Struct({...r,*refiner(h,w){yield*r.refiner(h,w);const S=l(h,w),D=(0,t.toFailures)(S,w,r,h);for(const k of D)yield{...k,refinement:i}}})}return Ee.refine=f,Ee}var Js;function Ue(){return Js||(Js=1,(function(e){var t=tt&&tt.__createBinding||(Object.create?(function(s,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(s,c,a)}):(function(s,d,u,c){c===void 0&&(c=u),s[c]=d[u]})),n=tt&&tt.__exportStar||function(s,d){for(var u in s)u!=="default"&&!Object.prototype.hasOwnProperty.call(d,u)&&t(d,s,u)};Object.defineProperty(e,"__esModule",{value:!0}),n($a(),e),n(jt(),e),n(Cu(),e),n(Pu(),e),n(as(),e),n(xa(),e)})(tt)),tt}var Ie={};class cs extends Error{constructor(t,{cause:n}={}){super(t),this.name=cs.name,n&&(this.cause=n),this.message=t}}const ku=Object.freeze(Object.defineProperty({__proto__:null,ErrorWithCause:cs},Symbol.toStringTag,{value:"Module"})),Ou=la(ku),Bu=(e,t)=>{if(!e||!t||!(e instanceof Error)||!(t.prototype instanceof Error)&&t!==Error)return;const n=new Set;let s=e;for(;s&&!n.has(s);){if(n.add(s),s instanceof t)return s;s=er(s)}},er=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},Ia=(e,t)=>{if(!(e instanceof Error))return"";const n=e.stack||"";if(t.has(e))return n+`
|
|
1
|
+
import{f as la,u as da,r as ee,j as p,a as yc}from"./react-BDtnT4_L.js";import{a4 as bc,j as wc,e as At,v as hr,w as pr,d as v,s as F,I as Te,x as Ec,L as fa,c as A,dK as it,dL as Rt,K as zt,S as Ts,dM as Sc,dN as os,al as Wt,N as rs,i as ha,bG as pa,dh as vc,G as Jt,D as Gt,H as $c,E as xc,bg as Cs,X as Ic,cM as Rc,aR as _c,Z as gr,a0 as mr,a1 as yr,P as Ac,Y as jc,dO as Tc,dP as Cc}from"./index-CyVGgMkK.js";import{b as Pc}from"./builder-Bi-1rymv.js";import{B as Ps,d as ns}from"./dcl-schemas-BfFZv5Pe.js";import{r as kc}from"./sha3--a5gJVIr.js";import{r as Oc}from"./browser-D7KHILZd.js";import{p as Bc}from"./sentry-DJtBihbA.js";import{r as Lc}from"./authorizations-BF60RZYU.js";import{o as Nc,O as ks}from"./buy-CiksvueJ.js";import{C as ga,a as _t,h as ma,r as Mc,k as qc}from"./ethers-rfaBand6.js";import{S as ya,c as Hc,i as Dc,D as Os,a as Uc}from"./SaleCountdown-CZ2zCEuD.js";import{f as ba}from"./errors-BAO7_A7a.js";import{m as wa}from"./mana-matic-CEqvSwrJ.js";import{T as Fc,n as Ea,S as Bs}from"./categories-BNbtxrs7.js";import{E as Kt}from"./ErrorNotice-CehMoY9b.js";import{L as Vc}from"./LoadMore-D1ApwWXh.js";import{u as zc,R as br,i as Jc,k as Gc,l as Xc,m as wr,n as Er,o as Wc,p as Kc,q as Yc,r as Zc,s as Qc,t as Ls,v as Ns,w as Ms,a as eu,b as tu,c as ru,D as nu,d as su,C as iu,e as ou,f as au,g as cu,M as uu,h as lu,x as du}from"./browseLayout.styles-DJ6ptfco.js";import{u as fu}from"./useInfiniteGrid-3LXYF7KT.js";import{u as hu,s as pu}from"./sales-empty-D73ma-y1.js";import{C as gu,R as mu,B as yu,T as bu,A as wu,a as Eu,b as Su,D as vu,M as $u}from"./ManaPricingBanner.styles-BJpi8rP5.js";import{C as xu}from"./field.styles-SsNLO8pf.js";import{c as Iu,i as Ru}from"./items-empty-DdvLsLv8.js";import{s as _u}from"./signin-empty-pUeXGLFR.js";import{m as Au}from"./mana-matic-light-Bl5duieC.js";import"./intl-AKLEHPeO.js";import"./sendMetaTransaction-CVkzKCvR.js";import"./skeleton.styles-Cqgtx7q8.js";import"./import-vNIvljOs.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]="2add0515-fd2b-4a0d-b1b1-6e548064527e",e._sentryDebugIdIdentifier="sentry-dbid-2add0515-fd2b-4a0d-b1b1-6e548064527e")}catch{}})();const Sa="shop:creations-hint:v1";function va(){try{const e=localStorage.getItem(Sa);if(!e)return{};const t=JSON.parse(e);return t&&typeof t=="object"&&!Array.isArray(t)?t:{}}catch{return{}}}function ju(e){if(!e)return null;const t=va()[e.toLowerCase()];return t&&Number.isFinite(t.count)&&t.count>0?{count:t.count}:null}function Tu(e,t){try{const n=va(),s=e.toLowerCase();t>0?n[s]={count:t}:delete n[s],localStorage.setItem(Sa,JSON.stringify(n))}catch{}}var Sr={},Ze={},Qe={},vr={},et={},Pe={},tt={},pt={},qs;function $a(){if(qs)return pt;qs=1,Object.defineProperty(pt,"__esModule",{value:!0}),pt.StructError=void 0;class e extends TypeError{constructor(n,s){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,...s()])}}return pt.StructError=e,pt}var be={},we={},Hs;function Qt(){if(Hs)return we;Hs=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 s(o){return typeof o=="symbol"?o.toString():typeof o=="string"?JSON.stringify(o):`${o}`}we.print=s;function d(o){const{done:f,value:r}=o.next();return f?void 0:r}we.shiftIterator=d;function u(o,f,r,i){if(o===!0)return;o===!1?o={}:typeof o=="string"&&(o={message:o});const{path:l,branch:h}=f,{type:w}=r,{refinement:S,message:D=`Expected a value of type \`${w}\`${S?` with refinement \`${S}\``:""}, but received: \`${s(i)}\``}=o;return{value:i,type:w,refinement:S,key:l[l.length-1],path:l,branch:h,...o,message:D}}we.toFailure=u;function*c(o,f,r,i){e(o)||(o=[o]);for(const l of o){const h=u(l,f,r,i);h&&(yield h)}}we.toFailures=c;function*a(o,f,r={}){const{path:i=[],branch:l=[o],coerce:h=!1,mask:w=!1}=r,S={path:i,branch:l};if(h&&(o=f.coercer(o,S),w&&f.type!=="type"&&t(f.schema)&&t(o)&&!Array.isArray(o)))for(const k in o)f.schema[k]===void 0&&delete o[k];let D="valid";for(const k of f.validator(o,S))k.explanation=r.message,D="not_valid",yield[k,void 0];for(let[k,X,K]of f.entries(o,S)){const R=a(X,K,{path:k===void 0?i:[...i,k],branch:k===void 0?l:[...l,X],coerce:h,mask:w,message:r.message});for(const E of R)E[0]?(D=E[0].refinement===null||E[0].refinement===void 0?"not_valid":"not_refined",yield[E[0],void 0]):h&&(X=E[1],k===void 0?o=X:o instanceof Map?o.set(k,X):o instanceof Set?o.add(X):t(o)&&(X!==void 0||k in o)&&(o[k]=X))}if(D!=="not_valid")for(const k of f.refiner(o,S))k.explanation=r.message,D="not_refined",yield[k,void 0];D==="valid"&&(yield[void 0,o])}return we.run=a,we}var Ds;function jt(){if(Ds)return be;Ds=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=$a(),t=Qt();class n{constructor(i){const{type:l,schema:h,validator:w,refiner:S,coercer:D=X=>X,entries:k=function*(){}}=i;this.type=l,this.schema=h,this.entries=k,this.coercer=D,w?this.validator=(X,K)=>{const R=w(X,K);return(0,t.toFailures)(R,K,this,X)}:this.validator=()=>[],S?this.refiner=(X,K)=>{const R=S(X,K);return(0,t.toFailures)(R,K,this,X)}:this.refiner=()=>[]}assert(i,l){return u(i,this,l)}create(i,l){return c(i,this,l)}is(i){return o(i,this)}mask(i,l){return a(i,this,l)}validate(i,l={}){return f(i,this,l)}}be.Struct=n;const s="EXACT_OPTIONAL";class d extends n{constructor(i){super({...i,type:`exact optional ${i.type}`}),this.brand=s}static isExactOptional(i){return(0,t.isObject)(i)&&"brand"in i&&i.brand===s}}be.ExactOptionalStruct=d;function u(r,i,l){const h=f(r,i,{message:l});if(h[0])throw h[0]}be.assert=u;function c(r,i,l){const h=f(r,i,{coerce:!0,message:l});if(h[0])throw h[0];return h[1]}be.create=c;function a(r,i,l){const h=f(r,i,{coerce:!0,mask:!0,message:l});if(h[0])throw h[0];return h[1]}be.mask=a;function o(r,i){return!f(r,i)[0]}be.is=o;function f(r,i,l={}){const h=(0,t.run)(r,i,l),w=(0,t.shiftIterator)(h);return w[0]?[new e.StructError(w[0],function*(){for(const k of h)k[0]&&(yield k[0])}),void 0]:[void 0,w[1]]}return be.validate=f,be}var Ve={},Q={},pe={},Us;function xa(){if(Us)return pe;Us=1,Object.defineProperty(pe,"__esModule",{value:!0}),pe.pick=pe.partial=pe.omit=pe.lazy=pe.dynamic=pe.deprecated=pe.define=pe.assign=void 0;const e=jt(),t=as();function n(...r){var w;const i=((w=r[0])==null?void 0:w.type)==="type",l=r.map(({schema:S})=>S),h=Object.assign({},...l);return i?(0,t.type)(h):(0,t.object)(h)}pe.assign=n;function s(r,i){return new e.Struct({type:r,schema:null,validator:i})}pe.define=s;function d(r,i){return new e.Struct({...r,refiner:(l,h)=>l===void 0||r.refiner(l,h),validator(l,h){return l===void 0?!0:(i(l,h),r.validator(l,h))}})}pe.deprecated=d;function u(r){return new e.Struct({type:"dynamic",schema:null,*entries(i,l){yield*r(i,l).entries(i,l)},validator(i,l){return r(i,l).validator(i,l)},coercer(i,l){return r(i,l).coercer(i,l)},refiner(i,l){return r(i,l).refiner(i,l)}})}pe.dynamic=u;function c(r){let i;return new e.Struct({type:"lazy",schema:null,*entries(l,h){i??(i=r()),yield*i.entries(l,h)},validator(l,h){return i??(i=r()),i.validator(l,h)},coercer(l,h){return i??(i=r()),i.coercer(l,h)},refiner(l,h){return i??(i=r()),i.refiner(l,h)}})}pe.lazy=c;function a(r,i){const{schema:l}=r,h={...l};for(const w of i)delete h[w];switch(r.type){case"type":return(0,t.type)(h);default:return(0,t.object)(h)}}pe.omit=a;function o(r){const i=r instanceof e.Struct,l=i?{...r.schema}:{...r};for(const h in l)l[h]=(0,t.optional)(l[h]);return i&&r.type==="type"?(0,t.type)(l):(0,t.object)(l)}pe.partial=o;function f(r,i){const{schema:l}=r,h={};for(const w of i)h[w]=l[w];switch(r.type){case"type":return(0,t.type)(h);default:return(0,t.object)(h)}}return pe.pick=f,pe}var Fs;function as(){if(Fs)return Q;Fs=1,Object.defineProperty(Q,"__esModule",{value:!0}),Q.unknown=Q.union=Q.type=Q.tuple=Q.string=Q.set=Q.regexp=Q.record=Q.exactOptional=Q.optional=Q.object=Q.number=Q.nullable=Q.never=Q.map=Q.literal=Q.intersection=Q.integer=Q.instance=Q.func=Q.enums=Q.date=Q.boolean=Q.bigint=Q.array=Q.any=void 0;const e=jt(),t=Qt(),n=xa();function s(){return(0,n.define)("any",()=>!0)}Q.any=s;function d(_){return new e.Struct({type:"array",schema:_,*entries(M){if(_&&Array.isArray(M))for(const[q,J]of M.entries())yield[q,J,_]},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)}`}})}Q.array=d;function u(){return(0,n.define)("bigint",_=>typeof _=="bigint")}Q.bigint=u;function c(){return(0,n.define)("boolean",_=>typeof _=="boolean")}Q.boolean=c;function a(){return(0,n.define)("date",_=>_ instanceof Date&&!isNaN(_.getTime())||`Expected a valid \`Date\` object, but received: ${(0,t.print)(_)}`)}Q.date=a;function o(_){const M={},q=_.map(J=>(0,t.print)(J)).join();for(const J of _)M[J]=J;return new e.Struct({type:"enums",schema:M,validator(J){return _.includes(J)||`Expected one of \`${q}\`, but received: ${(0,t.print)(J)}`}})}Q.enums=o;function f(){return(0,n.define)("func",_=>typeof _=="function"||`Expected a function, but received: ${(0,t.print)(_)}`)}Q.func=f;function r(_){return(0,n.define)("instance",M=>M instanceof _||`Expected a \`${_.name}\` instance, but received: ${(0,t.print)(M)}`)}Q.instance=r;function i(){return(0,n.define)("integer",_=>typeof _=="number"&&!isNaN(_)&&Number.isInteger(_)||`Expected an integer, but received: ${(0,t.print)(_)}`)}Q.integer=i;function l(_){return new e.Struct({type:"intersection",schema:null,*entries(M,q){for(const{entries:J}of _)yield*J(M,q)},*validator(M,q){for(const{validator:J}of _)yield*J(M,q)},*refiner(M,q){for(const{refiner:J}of _)yield*J(M,q)}})}Q.intersection=l;function h(_){const M=(0,t.print)(_),q=typeof _;return new e.Struct({type:"literal",schema:q==="string"||q==="number"||q==="boolean"?_:null,validator(J){return J===_||`Expected the literal \`${M}\`, but received: ${(0,t.print)(J)}`}})}Q.literal=h;function w(_,M){return new e.Struct({type:"map",schema:null,*entries(q){if(_&&M&&q instanceof Map)for(const[J,N]of q.entries())yield[J,J,_],yield[J,N,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)}`}})}Q.map=w;function S(){return(0,n.define)("never",()=>!1)}Q.never=S;function D(_){return new e.Struct({..._,validator:(M,q)=>M===null||_.validator(M,q),refiner:(M,q)=>M===null||_.refiner(M,q)})}Q.nullable=D;function k(){return(0,n.define)("number",_=>typeof _=="number"&&!isNaN(_)||`Expected a number, but received: ${(0,t.print)(_)}`)}Q.number=k;function X(_){const M=_?Object.keys(_):[],q=S();return new e.Struct({type:"object",schema:_??null,*entries(J){if(_&&(0,t.isObject)(J)){const N=new Set(Object.keys(J));for(const H of M){N.delete(H);const b=_[H];e.ExactOptionalStruct.isExactOptional(b)&&!Object.prototype.hasOwnProperty.call(J,H)||(yield[H,J[H],_[H]])}for(const H of N)yield[H,J[H],q]}},validator(J){return(0,t.isObject)(J)||`Expected an object, but received: ${(0,t.print)(J)}`},coercer(J){return(0,t.isObject)(J)?{...J}:J}})}Q.object=X;function K(_){return new e.Struct({..._,validator:(M,q)=>M===void 0||_.validator(M,q),refiner:(M,q)=>M===void 0||_.refiner(M,q)})}Q.optional=K;function R(_){return new e.ExactOptionalStruct(_)}Q.exactOptional=R;function E(_,M){return new e.Struct({type:"record",schema:null,*entries(q){if((0,t.isObject)(q))for(const J in q){const N=q[J];yield[J,J,_],yield[J,N,M]}},validator(q){return(0,t.isObject)(q)||`Expected an object, but received: ${(0,t.print)(q)}`}})}Q.record=E;function P(){return(0,n.define)("regexp",_=>_ instanceof RegExp)}Q.regexp=P;function U(_){return new e.Struct({type:"set",schema:null,*entries(M){if(_&&M instanceof Set)for(const q of M)yield[q,q,_]},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)}`}})}Q.set=U;function B(){return(0,n.define)("string",_=>typeof _=="string"||`Expected a string, but received: ${(0,t.print)(_)}`)}Q.string=B;function L(_){const M=S();return new e.Struct({type:"tuple",schema:null,*entries(q){if(Array.isArray(q)){const J=Math.max(_.length,q.length);for(let N=0;N<J;N++)yield[N,q[N],_[N]||M]}},validator(q){return Array.isArray(q)||`Expected an array, but received: ${(0,t.print)(q)}`}})}Q.tuple=L;function g(_){const M=Object.keys(_);return new e.Struct({type:"type",schema:_,*entries(q){if((0,t.isObject)(q))for(const J of M)yield[J,q[J],_[J]]},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}})}Q.type=g;function $(_){const M=_.map(q=>q.type).join(" | ");return new e.Struct({type:"union",schema:null,coercer(q){for(const J of _){const[N,H]=J.validate(q,{coerce:!0});if(!N)return H}return q},validator(q,J){const N=[];for(const H of _){const[...b]=(0,t.run)(q,H,J),[m]=b;if(!(m!=null&&m[0]))return[];for(const[I]of b)I&&N.push(I)}return[`Expected the value to satisfy a union of \`${M}\`, but received: ${(0,t.print)(q)}`,...N]}})}Q.union=$;function Y(){return(0,n.define)("unknown",()=>!0)}return Q.unknown=Y,Q}var Vs;function Cu(){if(Vs)return Ve;Vs=1,Object.defineProperty(Ve,"__esModule",{value:!0}),Ve.trimmed=Ve.defaulted=Ve.coerce=void 0;const e=jt(),t=Qt(),n=as();function s(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)})}Ve.coerce=s;function d(c,a,o={}){return s(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 i={...f};let l=!1;for(const h in r)i[h]===void 0&&(i[h]=r[h],l=!0);if(l)return i}return f})}Ve.defaulted=d;function u(c){return s(c,(0,n.string)(),a=>a.trim())}return Ve.trimmed=u,Ve}var Ee={},zs;function Pu(){if(zs)return Ee;zs=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=jt(),t=Qt();function n(r){return f(r,"empty",i=>{const l=s(i);return l===0||`Expected an empty ${r.type} but received one with a size of \`${l}\``})}Ee.empty=n;function s(r){return r instanceof Map||r instanceof Set?r.size:r.length}function d(r,i,l={}){const{exclusive:h}=l;return f(r,"max",w=>h?w<i:w<=i||`Expected a ${r.type} less than ${h?"":"or equal to "}${i} but received \`${w}\``)}Ee.max=d;function u(r,i,l={}){const{exclusive:h}=l;return f(r,"min",w=>h?w>i:w>=i||`Expected a ${r.type} greater than ${h?"":"or equal to "}${i} but received \`${w}\``)}Ee.min=u;function c(r){return f(r,"nonempty",i=>s(i)>0||`Expected a nonempty ${r.type} but received an empty one`)}Ee.nonempty=c;function a(r,i){return f(r,"pattern",l=>i.test(l)||`Expected a ${r.type} matching \`/${i.source}/\` but received "${l}"`)}Ee.pattern=a;function o(r,i,l=i){const h=`Expected a ${r.type}`,w=i===l?`of \`${i}\``:`between \`${i}\` and \`${l}\``;return f(r,"size",S=>{if(typeof S=="number"||S instanceof Date)return i<=S&&S<=l||`${h} ${w} but received \`${S}\``;if(S instanceof Map||S instanceof Set){const{size:k}=S;return i<=k&&k<=l||`${h} with a size ${w} but received one with a size of \`${k}\``}const{length:D}=S;return i<=D&&D<=l||`${h} with a length ${w} but received one with a length of \`${D}\``})}Ee.size=o;function f(r,i,l){return new e.Struct({...r,*refiner(h,w){yield*r.refiner(h,w);const S=l(h,w),D=(0,t.toFailures)(S,w,r,h);for(const k of D)yield{...k,refinement:i}}})}return Ee.refine=f,Ee}var Js;function Ue(){return Js||(Js=1,(function(e){var t=tt&&tt.__createBinding||(Object.create?(function(s,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(s,c,a)}):(function(s,d,u,c){c===void 0&&(c=u),s[c]=d[u]})),n=tt&&tt.__exportStar||function(s,d){for(var u in s)u!=="default"&&!Object.prototype.hasOwnProperty.call(d,u)&&t(d,s,u)};Object.defineProperty(e,"__esModule",{value:!0}),n($a(),e),n(jt(),e),n(Cu(),e),n(Pu(),e),n(as(),e),n(xa(),e)})(tt)),tt}var Ie={};class cs extends Error{constructor(t,{cause:n}={}){super(t),this.name=cs.name,n&&(this.cause=n),this.message=t}}const ku=Object.freeze(Object.defineProperty({__proto__:null,ErrorWithCause:cs},Symbol.toStringTag,{value:"Module"})),Ou=la(ku),Bu=(e,t)=>{if(!e||!t||!(e instanceof Error)||!(t.prototype instanceof Error)&&t!==Error)return;const n=new Set;let s=e;for(;s&&!n.has(s);){if(n.add(s),s instanceof t)return s;s=er(s)}},er=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},Ia=(e,t)=>{if(!(e instanceof Error))return"";const n=e.stack||"";if(t.has(e))return n+`
|
|
2
2
|
causes have become circular...`;const s=er(e);return s?(t.add(e),n+`
|
|
3
3
|
caused by: `+Ia(s,t)):n},Lu=e=>Ia(e,new Set),Ra=(e,t,n)=>{if(!(e instanceof Error))return"";const s=n?"":e.message||"";if(t.has(e))return s+": ...";const d=er(e);if(d){t.add(e);const u="cause"in e&&typeof e.cause=="function";return s+(u?"":": ")+Ra(d,t,u)}else return s},Nu=e=>Ra(e,new Set),Mu=Object.freeze(Object.defineProperty({__proto__:null,findCauseByReference:Bu,getErrorCause:er,messageWithCauses:Nu,stackWithCauses:Lu},Symbol.toStringTag,{value:"Module"})),qu=la(Mu);var $r,Gs;function Hu(){if(Gs)return $r;Gs=1;const{ErrorWithCause:e}=Ou,{findCauseByReference:t,getErrorCause:n,messageWithCauses:s,stackWithCauses:d}=qu;return $r={ErrorWithCause:e,findCauseByReference:t,getErrorCause:n,stackWithCauses:d,messageWithCauses:s},$r}var xr={},Xs;function us(){return Xs||(Xs=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 s(r){return!!r&&typeof r=="object"&&!Array.isArray(r)}e.isObject=s;const d=(r,i)=>Object.hasOwnProperty.call(r,i);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 i=r;for(;Object.getPrototypeOf(i)!==null;)i=Object.getPrototypeOf(i);return Object.getPrototypeOf(r)===i}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})(xr)),xr}var Ws;function _a(){if(Ws)return Ie;Ws=1,Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.wrapError=Ie.getErrorMessage=Ie.isErrorWithStack=Ie.isErrorWithMessage=Ie.isErrorWithCode=void 0;const e=Hu(),t=us();function n(o){return o instanceof Error||(0,t.isObject)(o)&&o.constructor.name==="Error"}function s(o){return typeof o=="object"&&o!==null&&"code"in o}Ie.isErrorWithCode=s;function d(o){return typeof o=="object"&&o!==null&&"message"in o}Ie.isErrorWithMessage=d;function u(o){return typeof o=="object"&&o!==null&&"stack"in o}Ie.isErrorWithStack=u;function c(o){return d(o)&&typeof o.message=="string"?o.message:(0,t.isNullOrUndefined)(o)?"":String(o)}Ie.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}),s(o)&&(r.code=o.code),r}return f.length>0?new Error(`${String(o)}: ${f}`):new Error(String(o))}return Ie.wrapError=a,Ie}var Ks;function Ke(){if(Ks)return Pe;Ks=1,Object.defineProperty(Pe,"__esModule",{value:!0}),Pe.assertExhaustive=Pe.assertStruct=Pe.assert=Pe.AssertionError=void 0;const e=Ue(),t=_a();function n(f){var r,i;return typeof((i=(r=f==null?void 0:f.prototype)==null?void 0:r.constructor)==null?void 0:i.name)=="string"}function s(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"}}Pe.AssertionError=u;function c(f,r="Assertion failed.",i=u){if(!f)throw r instanceof Error?r:d(i,r)}Pe.assert=c;function a(f,r,i="Assertion failed",l=u){try{(0,e.assert)(f,r)}catch(h){throw d(l,`${i}: ${s(h)}.`)}}Pe.assertStruct=a;function o(f){throw new Error("Invalid branch reached. Should be detected during compilation.")}return Pe.assertExhaustive=o,Pe}var gt={},Ys;function Aa(){if(Ys)return gt;Ys=1,Object.defineProperty(gt,"__esModule",{value:!0}),gt.base64=void 0;const e=Ue(),t=Ke(),n=(s,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)(s,o)};return gt.base64=n,gt}var se={},Ir={},Zs;function Du(){return Zs||(Zs=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,...x){if(!t(y))throw new Error("Uint8Array expected");if(x.length>0&&!x.includes(y.length))throw new Error("Uint8Array expected of length "+x+", got length="+y.length)}function s(y,x){return Array.isArray(x)?x.length===0?!0:y?x.every(T=>typeof T=="string"):x.every(T=>Number.isSafeInteger(T)):!1}function d(y){if(typeof y!="function")throw new Error("function expected");return!0}function u(y,x){if(typeof x!="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,x){if(!s(!0,x))throw new Error(`${y}: array of strings expected`)}function f(y,x){if(!s(!1,x))throw new Error(`${y}: array of numbers expected`)}function r(...y){const x=W=>W,T=(W,ce)=>ne=>W(ce(ne)),G=y.map(W=>W.encode).reduceRight(T,x),V=y.map(W=>W.decode).reduce(T,x);return{encode:G,decode:V}}function i(y){const x=typeof y=="string"?y.split(""):y,T=x.length;o("alphabet",x);const G=new Map(x.map((V,W)=>[V,W]));return{encode:V=>(a(V),V.map(W=>{if(!Number.isSafeInteger(W)||W<0||W>=T)throw new Error(`alphabet.encode: digit index outside alphabet "${W}". Allowed: ${y}`);return x[W]})),decode:V=>(a(V),V.map(W=>{u("alphabet.decode",W);const ce=G.get(W);if(ce===void 0)throw new Error(`Unknown letter: "${W}". Allowed: ${y}`);return ce}))}}function l(y=""){return u("join",y),{encode:x=>(o("join.decode",x),x.join(y)),decode:x=>(u("join.decode",x),x.split(y))}}function h(y,x="="){return c(y),u("padding",x),{encode(T){for(o("padding.encode",T);T.length*y%8;)T.push(x);return T},decode(T){o("padding.decode",T);let G=T.length;if(G*y%8)throw new Error("padding: invalid, string should have whole number of bytes");for(;G>0&&T[G-1]===x;G--)if((G-1)*y%8===0)throw new Error("padding: invalid, string has too much padding");return T.slice(0,G)}}}function w(y){return d(y),{encode:x=>x,decode:x=>y(x)}}function S(y,x,T){if(x<2)throw new Error(`convertRadix: invalid from=${x}, base cannot be less than 2`);if(T<2)throw new Error(`convertRadix: invalid to=${T}, base cannot be less than 2`);if(a(y),!y.length)return[];let G=0;const V=[],W=Array.from(y,ne=>{if(c(ne),ne<0||ne>=x)throw new Error(`invalid integer: ${ne}`);return ne}),ce=W.length;for(;;){let ne=0,he=!0;for(let fe=G;fe<ce;fe++){const z=W[fe],ie=x*ne,oe=ie+z;if(!Number.isSafeInteger(oe)||ie/x!==ne||oe-z!==ie)throw new Error("convertRadix: carry overflow");const ge=oe/T;ne=oe%T;const le=Math.floor(ge);if(W[fe]=le,!Number.isSafeInteger(le)||le*T+ne!==oe)throw new Error("convertRadix: carry overflow");if(he)le?he=!1:G=fe;else continue}if(V.push(ne),he)break}for(let ne=0;ne<y.length-1&&y[ne]===0;ne++)V.push(0);return V.reverse()}const D=(y,x)=>x===0?y:D(x,y%x),k=(y,x)=>y+(x-D(y,x)),X=(()=>{let y=[];for(let x=0;x<40;x++)y.push(2**x);return y})();function K(y,x,T,G){if(a(y),x<=0||x>32)throw new Error(`convertRadix2: wrong from=${x}`);if(T<=0||T>32)throw new Error(`convertRadix2: wrong to=${T}`);if(k(x,T)>32)throw new Error(`convertRadix2: carry overflow from=${x} to=${T} carryBits=${k(x,T)}`);let V=0,W=0;const ce=X[x],ne=X[T]-1,he=[];for(const fe of y){if(c(fe),fe>=ce)throw new Error(`convertRadix2: invalid data word=${fe} from=${x}`);if(V=V<<x|fe,W+x>32)throw new Error(`convertRadix2: carry overflow pos=${W} from=${x}`);for(W+=x;W>=T;W-=T)he.push((V>>W-T&ne)>>>0);const z=X[W];if(z===void 0)throw new Error("invalid carry");V&=z-1}if(V=V<<T-W&ne,!G&&W>=x)throw new Error("Excess padding");if(!G&&V>0)throw new Error(`Non-zero padding: ${V}`);return G&&W>0&&he.push(V>>>0),he}function R(y){c(y);const x=2**8;return{encode:T=>{if(!t(T))throw new Error("radix.encode input should be Uint8Array");return S(Array.from(T),x,y)},decode:T=>(f("radix.decode",T),Uint8Array.from(S(T,y,x)))}}function E(y,x=!1){if(c(y),y<=0||y>32)throw new Error("radix2: bits should be in (0..32]");if(k(8,y)>32||k(y,8)>32)throw new Error("radix2: carry overflow");return{encode:T=>{if(!t(T))throw new Error("radix2.encode input should be Uint8Array");return K(Array.from(T),8,y,!x)},decode:T=>(f("radix2.decode",T),Uint8Array.from(K(T,y,8,x)))}}function P(y){return d(y),function(...x){try{return y.apply(null,x)}catch{}}}function U(y,x){return c(y),d(x),{encode(T){if(!t(T))throw new Error("checksum.encode: input should be Uint8Array");const G=x(T).slice(0,y),V=new Uint8Array(T.length+y);return V.set(T),V.set(G,T.length),V},decode(T){if(!t(T))throw new Error("checksum.decode: input should be Uint8Array");const G=T.slice(0,-y),V=T.slice(-y),W=x(G).slice(0,y);for(let ce=0;ce<y;ce++)if(W[ce]!==V[ce])throw new Error("Invalid checksum");return G}}}e.utils={alphabet:i,chain:r,checksum:U,convertRadix:S,convertRadix2:K,radix:R,radix2:E,join:l,padding:h},e.base16=r(E(4),i("0123456789ABCDEF"),l("")),e.base32=r(E(5),i("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),h(5),l("")),e.base32nopad=r(E(5),i("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),l("")),e.base32hex=r(E(5),i("0123456789ABCDEFGHIJKLMNOPQRSTUV"),h(5),l("")),e.base32hexnopad=r(E(5),i("0123456789ABCDEFGHIJKLMNOPQRSTUV"),l("")),e.base32crockford=r(E(5),i("0123456789ABCDEFGHJKMNPQRSTVWXYZ"),l(""),w(y=>y.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1")));const B=typeof Uint8Array.from([]).toBase64=="function"&&typeof Uint8Array.fromBase64=="function",L=(y,x)=>{u("base64",y);const T=x?/^[A-Za-z0-9=_-]+$/:/^[A-Za-z0-9=+/]+$/,G=x?"base64url":"base64";if(y.length>0&&!T.test(y))throw new Error("invalid base64");return Uint8Array.fromBase64(y,{alphabet:G,lastChunkHandling:"strict"})};e.base64=B?{encode(y){return n(y),y.toBase64()},decode(y){return L(y,!1)}}:r(E(6),i("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),h(6),l("")),e.base64nopad=r(E(6),i("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),l("")),e.base64url=B?{encode(y){return n(y),y.toBase64({alphabet:"base64url"})},decode(y){return L(y,!0)}}:r(E(6),i("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),h(6),l("")),e.base64urlnopad=r(E(6),i("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),l(""));const g=y=>r(R(58),i(y),l(""));e.base58=g("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),e.base58flickr=g("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),e.base58xrp=g("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz");const $=[0,2,3,5,6,7,9,10,11];e.base58xmr={encode(y){let x="";for(let T=0;T<y.length;T+=8){const G=y.subarray(T,T+8);x+=e.base58.encode(G).padStart($[G.length],"1")}return x},decode(y){let x=[];for(let T=0;T<y.length;T+=11){const G=y.slice(T,T+11),V=$.indexOf(G.length),W=e.base58.decode(G);for(let ce=0;ce<W.length-V;ce++)if(W[ce]!==0)throw new Error("base58xmr: wrong padding");x=x.concat(Array.from(W.slice(W.length-V)))}return Uint8Array.from(x)}};const Y=y=>r(U(4,x=>y(y(x))),e.base58);e.createBase58check=Y,e.base58check=e.createBase58check;const _=r(i("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),l("")),M=[996825010,642813549,513874426,1027748829,705979059];function q(y){const x=y>>25;let T=(y&33554431)<<5;for(let G=0;G<M.length;G++)(x>>G&1)===1&&(T^=M[G]);return T}function J(y,x,T=1){const G=y.length;let V=1;for(let W=0;W<G;W++){const ce=y.charCodeAt(W);if(ce<33||ce>126)throw new Error(`Invalid prefix (${y})`);V=q(V)^ce>>5}V=q(V);for(let W=0;W<G;W++)V=q(V)^y.charCodeAt(W)&31;for(let W of x)V=q(V)^W;for(let W=0;W<6;W++)V=q(V);return V^=T,_.encode(K([V%X[30]],30,5,!1))}function N(y){const x=y==="bech32"?1:734539939,T=E(5),G=T.decode,V=T.encode,W=P(G);function ce(ie,oe,ge=90){u("bech32.encode prefix",ie),t(oe)&&(oe=Array.from(oe)),f("bech32.encode",oe);const le=ie.length;if(le===0)throw new TypeError(`Invalid prefix length ${le}`);const ye=le+7+oe.length;if(ge!==!1&&ye>ge)throw new TypeError(`Length ${ye} exceeds limit ${ge}`);const Ce=ie.toLowerCase(),_e=J(Ce,oe,x);return`${Ce}1${_.encode(oe)}${_e}`}function ne(ie,oe=90){u("bech32.decode input",ie);const ge=ie.length;if(ge<8||oe!==!1&&ge>oe)throw new TypeError(`invalid string length: ${ge} (${ie}). Expected (8..${oe})`);const le=ie.toLowerCase();if(ie!==le&&ie!==ie.toUpperCase())throw new Error("String must be lowercase or uppercase");const ye=le.lastIndexOf("1");if(ye===0||ye===-1)throw new Error('Letter "1" must be present between prefix and data only');const Ce=le.slice(0,ye),_e=le.slice(ye+1);if(_e.length<6)throw new Error("Data must be at least 6 characters long");const at=_.decode(_e).slice(0,-6),Ye=J(Ce,at,x);if(!_e.endsWith(Ye))throw new Error(`Invalid checksum in ${ie}: expected "${Ye}"`);return{prefix:Ce,words:at}}const he=P(ne);function fe(ie){const{prefix:oe,words:ge}=ne(ie,!1);return{prefix:oe,words:ge,bytes:G(ge)}}function z(ie,oe){return ce(ie,V(oe))}return{encode:ce,decode:ne,encodeFromBytes:z,decodeToBytes:fe,decodeUnsafe:he,fromWords:G,fromWordsUnsafe:W,toWords:V}}e.bech32=N("bech32"),e.bech32m=N("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),i("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 m={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",C=(y,x)=>{if(typeof y!="string"||!m.hasOwnProperty(y))throw new TypeError(I);if(!t(x))throw new TypeError("bytesToString() expects Uint8Array");return m[y].encode(x)};e.bytesToString=C,e.str=e.bytesToString;const O=(y,x)=>{if(!m.hasOwnProperty(y))throw new TypeError(I);if(typeof x!="string")throw new TypeError("stringToBytes() expects string");return m[y].decode(x)};e.stringToBytes=O,e.bytes=e.stringToBytes})(Ir)),Ir}var Rr={},Qs;function tr(){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=Ue(),n=kc(),s=Ke(),d=ls();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,s.assert)(u(w),"Value must be a hexadecimal string.")}e.assertIsHexString=a;function o(w){(0,s.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)||i(w)}e.isValidHexAddress=f;function r(w){(0,s.assert)((0,t.is)(w,e.HexChecksumAddressStruct),"Invalid hex address.");const S=h(w.toLowerCase()),D=h((0,d.bytesToHex)((0,n.keccak_256)(S)));return`0x${S.split("").map((k,X)=>{const K=D[X];return(0,s.assert)((0,t.is)(K,(0,t.string)()),"Hash shorter than address."),parseInt(K,16)>7?k.toUpperCase():k}).join("")}`}e.getChecksumAddress=r;function i(w){return(0,t.is)(w,e.HexChecksumAddressStruct)?r(w)===w:!1}e.isValidChecksumAddress=i;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})(Rr)),Rr}var ei;function ls(){if(ei)return se;ei=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=Du(),t=Ke(),n=tr(),s=48,d=58,u=87;function c(){const g=[];return()=>{if(g.length===0)for(let $=0;$<256;$++)g.push($.toString(16).padStart(2,"0"));return g}}const a=c();function o(g){return g instanceof Uint8Array}se.isBytes=o;function f(g){(0,t.assert)(o(g),"Value must be a Uint8Array.")}se.assertIsBytes=f;function r(g){if(f(g),g.length===0)return"0x";const $=a(),Y=new Array(g.length);for(let _=0;_<g.length;_++)Y[_]=$[g[_]];return(0,n.add0x)(Y.join(""))}se.bytesToHex=r;function i(g){f(g);const $=r(g);return BigInt($)}se.bytesToBigInt=i;function l(g){f(g);let $=BigInt(0);for(const Y of g)$=($<<BigInt(8))+BigInt(Y);return BigInt.asIntN(g.length*8,$)}se.bytesToSignedBigInt=l;function h(g){f(g);const $=i(g);return(0,t.assert)($<=BigInt(Number.MAX_SAFE_INTEGER),"Number is not a safe integer. Use `bytesToBigInt` instead."),Number($)}se.bytesToNumber=h;function w(g){return f(g),new TextDecoder().decode(g)}se.bytesToString=w;function S(g){return f(g),e.base64.encode(g)}se.bytesToBase64=S;function D(g){var M;if(((M=g==null?void 0:g.toLowerCase)==null?void 0:M.call(g))==="0x")return new Uint8Array;(0,n.assertIsHexString)(g);const $=(0,n.remove0x)(g).toLowerCase(),Y=$.length%2===0?$:`0${$}`,_=new Uint8Array(Y.length/2);for(let q=0;q<_.length;q++){const J=Y.charCodeAt(q*2),N=Y.charCodeAt(q*2+1),H=J-(J<d?s:u),b=N-(N<d?s:u);_[q]=H*16+b}return _}se.hexToBytes=D;function k(g){(0,t.assert)(typeof g=="bigint","Value must be a bigint."),(0,t.assert)(g>=BigInt(0),"Value must be a non-negative bigint.");const $=g.toString(16);return D($)}se.bigIntToBytes=k;function X(g,$){(0,t.assert)($>0);const Y=g>>BigInt(31);return!((~g&Y)+(g&~Y)>>BigInt($*8+-1))}function K(g,$){(0,t.assert)(typeof g=="bigint","Value must be a bigint."),(0,t.assert)(typeof $=="number","Byte length must be a number."),(0,t.assert)($>0,"Byte length must be greater than 0."),(0,t.assert)(X(g,$),"Byte length is too small to represent the given value.");let Y=g;const _=new Uint8Array($);for(let M=0;M<_.length;M++)_[M]=Number(BigInt.asUintN(8,Y)),Y>>=BigInt(8);return _.reverse()}se.signedBigIntToBytes=K;function R(g){(0,t.assert)(typeof g=="number","Value must be a number."),(0,t.assert)(g>=0,"Value must be a non-negative number."),(0,t.assert)(Number.isSafeInteger(g),"Value is not a safe integer. Use `bigIntToBytes` instead.");const $=g.toString(16);return D($)}se.numberToBytes=R;function E(g){return(0,t.assert)(typeof g=="string","Value must be a string."),new TextEncoder().encode(g)}se.stringToBytes=E;function P(g){return(0,t.assert)(typeof g=="string","Value must be a string."),e.base64.decode(g)}se.base64ToBytes=P;function U(g){if(typeof g=="bigint")return k(g);if(typeof g=="number")return R(g);if(typeof g=="string")return g.startsWith("0x")?D(g):E(g);if(o(g))return g;throw new TypeError(`Unsupported value type: "${typeof g}".`)}se.valueToBytes=U;function B(g){const $=new Array(g.length);let Y=0;for(let M=0;M<g.length;M++){const q=U(g[M]);$[M]=q,Y+=q.length}const _=new Uint8Array(Y);for(let M=0,q=0;M<$.length;M++)_.set($[M],q),q+=$[M].length;return _}se.concatBytes=B;function L(g){if(typeof Ps<"u"&&g instanceof Ps){const $=g.buffer.slice(g.byteOffset,g.byteOffset+g.byteLength);return new DataView($)}return new DataView(g.buffer,g.byteOffset,g.byteLength)}return se.createDataView=L,se}var _r={},ti;function Uu(){return ti||(ti=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=Ue();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 s(l){return(0,t.is)(l,e.CaipNamespaceStruct)}e.isCaipNamespace=s;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 i(l,h){if(!s(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=i})(_r)),_r}var mt={},ri;function Fu(){if(ri)return mt;ri=1,Object.defineProperty(mt,"__esModule",{value:!0}),mt.ChecksumStruct=void 0;const e=Ue(),t=Aa();return mt.ChecksumStruct=(0,e.size)((0,t.base64)((0,e.string)(),{paddingRequired:!0}),44,44),mt}var ke={},ni;function Vu(){if(ni)return ke;ni=1,Object.defineProperty(ke,"__esModule",{value:!0}),ke.createHex=ke.createBytes=ke.createBigInt=ke.createNumber=void 0;const e=Ue(),t=Ke(),n=ls(),s=tr(),d=(0,e.union)([(0,e.number)(),(0,e.bigint)(),(0,e.string)(),s.StrictHexStruct]),u=(0,e.coerce)((0,e.number)(),d,Number),c=(0,e.coerce)((0,e.bigint)(),d,BigInt);(0,e.union)([s.StrictHexStruct,(0,e.instance)(Uint8Array)]);const a=(0,e.coerce)((0,e.instance)(Uint8Array),(0,e.union)([s.StrictHexStruct]),n.hexToBytes),o=(0,e.coerce)(s.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}}ke.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}}ke.createBigInt=r;function i(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}}ke.createBytes=i;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 ke.createHex=l,ke}var Oe={},si;function zu(){if(si)return Oe;si=1;var e=Oe&&Oe.__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=Oe&&Oe.__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,s;Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.FrozenSet=Oe.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,i)=>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(", ")} `:""}}`}}Oe.FrozenMap=d;class u{get size(){return e(this,s,"f").size}[(s=new WeakMap,Symbol.iterator)](){return e(this,s,"f")[Symbol.iterator]()}constructor(a){s.set(this,void 0),t(this,s,new Set(a),"f"),Object.freeze(this)}entries(){return e(this,s,"f").entries()}forEach(a,o){return e(this,s,"f").forEach((f,r,i)=>a.call(o,f,r,this))}has(a){return e(this,s,"f").has(a)}keys(){return e(this,s,"f").keys()}values(){return e(this,s,"f").values()}toString(){return`FrozenSet(${this.size}) {${this.size>0?` ${[...this.values()].map(a=>String(a)).join(", ")} `:""}}`}}return Oe.FrozenSet=u,Object.freeze(d),Object.freeze(d.prototype),Object.freeze(u),Object.freeze(u.prototype),Oe}var Ar={},ii;function Ju(){return ii||(ii=1,Object.defineProperty(Ar,"__esModule",{value:!0})),Ar}var jr={},oi;function Gu(){return oi||(oi=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=Ue(),n=Ke(),s=us(),d=g=>(0,t.object)(g);e.object=d;function u({path:g,branch:$}){const Y=g[g.length-1];return(0,s.hasProperty)($[$.length-2],Y)}function c(g){return new t.Struct({...g,type:`optional ${g.type}`,validator:($,Y)=>!u(Y)||g.validator($,Y),refiner:($,Y)=>!u(Y)||g.refiner($,Y)})}e.exactOptional=c;const a=()=>(0,t.define)("finite number",g=>(0,t.is)(g,(0,t.number)())&&Number.isFinite(g));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)(),g=>((0,n.assertStruct)(g,e.UnsafeJsonStruct),JSON.parse(JSON.stringify(g,($,Y)=>{if(!($==="__proto__"||$==="constructor"))return Y}))));function o(g){try{return f(g),!0}catch{return!1}}e.isValidJson=o;function f(g){return(0,t.create)(g,e.JsonStruct)}e.getSafeJson=f;function r(g){(0,n.assertStruct)(g,e.JsonStruct,"Invalid JSON value");const $=JSON.stringify(g);return new TextEncoder().encode($).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 i(g){return(0,t.is)(g,e.JsonRpcNotificationStruct)}e.isJsonRpcNotification=i;function l(g,$){(0,n.assertStruct)(g,e.JsonRpcNotificationStruct,"Invalid JSON-RPC notification",$)}e.assertIsJsonRpcNotification=l;function h(g){return(0,t.is)(g,e.JsonRpcRequestStruct)}e.isJsonRpcRequest=h;function w(g,$){(0,n.assertStruct)(g,e.JsonRpcRequestStruct,"Invalid JSON-RPC request",$)}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 S(g){return(0,t.is)(g,e.PendingJsonRpcResponseStruct)}e.isPendingJsonRpcResponse=S;function D(g,$){(0,n.assertStruct)(g,e.PendingJsonRpcResponseStruct,"Invalid pending JSON-RPC response",$)}e.assertIsPendingJsonRpcResponse=D;function k(g){return(0,t.is)(g,e.JsonRpcResponseStruct)}e.isJsonRpcResponse=k;function X(g,$){(0,n.assertStruct)(g,e.JsonRpcResponseStruct,"Invalid JSON-RPC response",$)}e.assertIsJsonRpcResponse=X;function K(g){return(0,t.is)(g,e.JsonRpcSuccessStruct)}e.isJsonRpcSuccess=K;function R(g,$){(0,n.assertStruct)(g,e.JsonRpcSuccessStruct,"Invalid JSON-RPC success response",$)}e.assertIsJsonRpcSuccess=R;function E(g){return(0,t.is)(g,e.JsonRpcFailureStruct)}e.isJsonRpcFailure=E;function P(g,$){(0,n.assertStruct)(g,e.JsonRpcFailureStruct,"Invalid JSON-RPC failure response",$)}e.assertIsJsonRpcFailure=P;function U(g){return(0,t.is)(g,e.JsonRpcErrorStruct)}e.isJsonRpcError=U;function B(g,$){(0,n.assertStruct)(g,e.JsonRpcErrorStruct,"Invalid JSON-RPC error",$)}e.assertIsJsonRpcError=B;function L(g){const{permitEmptyString:$,permitFractions:Y,permitNull:_}={permitEmptyString:!0,permitFractions:!1,permitNull:!0,...g};return q=>!!(typeof q=="number"&&(Y||Number.isInteger(q))||typeof q=="string"&&($||q.length>0)||_&&q===null)}e.getJsonRpcIdValidator=L})(jr)),jr}var Tr={},ai;function Xu(){return ai||(ai=1,Object.defineProperty(Tr,"__esModule",{value:!0})),Tr}var ze={},ci;function Wu(){if(ci)return ze;ci=1;var e=ze&&ze.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(ze,"__esModule",{value:!0}),ze.createModuleLogger=ze.createProjectLogger=void 0;const n=(0,e(Oc()).default)("metamask");function s(u){return n.extend(u)}ze.createProjectLogger=s;function d(u,c){return u.extend(c)}return ze.createModuleLogger=d,ze}var Be={},ui;function Ku(){if(ui)return Be;ui=1,Object.defineProperty(Be,"__esModule",{value:!0}),Be.hexToBigInt=Be.hexToNumber=Be.bigIntToHex=Be.numberToHex=void 0;const e=Ke(),t=tr(),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)));Be.numberToHex=n;const s=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)));Be.bigIntToHex=s;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};Be.hexToNumber=d;const u=c=>((0,t.assertIsHexString)(c),BigInt((0,t.add0x)(c)));return Be.hexToBigInt=u,Be}var Cr={},li;function Yu(){return li||(li=1,Object.defineProperty(Cr,"__esModule",{value:!0})),Cr}var yt={},di;function Zu(){if(di)return yt;di=1,Object.defineProperty(yt,"__esModule",{value:!0}),yt.createDeferredPromise=void 0;function e({suppressUnhandledRejection:t=!1}={}){let n,s;const d=new Promise((u,c)=>{n=u,s=c});return t&&d.catch(u=>{}),{promise:d,resolve:n,reject:s}}return yt.createDeferredPromise=e,yt}var Pr={},fi;function Qu(){return fi||(fi=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 s(u,c){return n(u,"count"),u*c}e.inMilliseconds=s;function d(u){return n(u,"timestamp"),Date.now()-u}e.timeSince=d})(Pr)),Pr}var kr={},hi;function el(){return hi||(hi=1,Object.defineProperty(kr,"__esModule",{value:!0})),kr}var Or={},Bt={exports:{}},Br,pi;function Tt(){if(pi)return Br;pi=1;const e="2.0.0",t=256,n=Number.MAX_SAFE_INTEGER||9007199254740991,s=16,d=t-6;return Br={MAX_LENGTH:t,MAX_SAFE_COMPONENT_LENGTH:s,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},Br}var Lr,gi;function rr(){if(gi)return Lr;gi=1;var e={};return Lr=typeof Bc=="object"&&e&&e.NODE_DEBUG&&/\bsemver\b/i.test(e.NODE_DEBUG)?(...n)=>console.error("SEMVER",...n):()=>{},Lr}var mi;function Ct(){return mi||(mi=1,(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:s,MAX_LENGTH:d}=Tt(),u=rr();t=e.exports={};const c=t.re=[],a=t.safeRe=[],o=t.src=[],f=t.safeSrc=[],r=t.t={};let i=0;const l="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",d],[l,s]],w=D=>{for(const[k,X]of h)D=D.split(`${k}*`).join(`${k}{0,${X}}`).split(`${k}+`).join(`${k}{1,${X}}`);return D},S=(D,k,X)=>{const K=w(k),R=i++;u(D,R,k),r[D]=R,o[R]=k,f[R]=K,c[R]=new RegExp(k,X?"g":void 0),a[R]=new RegExp(K,X?"g":void 0)};S("NUMERICIDENTIFIER","0|[1-9]\\d*"),S("NUMERICIDENTIFIERLOOSE","\\d+"),S("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${l}*`),S("MAINVERSION",`(${o[r.NUMERICIDENTIFIER]})\\.(${o[r.NUMERICIDENTIFIER]})\\.(${o[r.NUMERICIDENTIFIER]})`),S("MAINVERSIONLOOSE",`(${o[r.NUMERICIDENTIFIERLOOSE]})\\.(${o[r.NUMERICIDENTIFIERLOOSE]})\\.(${o[r.NUMERICIDENTIFIERLOOSE]})`),S("PRERELEASEIDENTIFIER",`(?:${o[r.NONNUMERICIDENTIFIER]}|${o[r.NUMERICIDENTIFIER]})`),S("PRERELEASEIDENTIFIERLOOSE",`(?:${o[r.NONNUMERICIDENTIFIER]}|${o[r.NUMERICIDENTIFIERLOOSE]})`),S("PRERELEASE",`(?:-(${o[r.PRERELEASEIDENTIFIER]}(?:\\.${o[r.PRERELEASEIDENTIFIER]})*))`),S("PRERELEASELOOSE",`(?:-?(${o[r.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[r.PRERELEASEIDENTIFIERLOOSE]})*))`),S("BUILDIDENTIFIER",`${l}+`),S("BUILD",`(?:\\+(${o[r.BUILDIDENTIFIER]}(?:\\.${o[r.BUILDIDENTIFIER]})*))`),S("FULLPLAIN",`v?${o[r.MAINVERSION]}${o[r.PRERELEASE]}?${o[r.BUILD]}?`),S("FULL",`^${o[r.FULLPLAIN]}$`),S("LOOSEPLAIN",`[v=\\s]*${o[r.MAINVERSIONLOOSE]}${o[r.PRERELEASELOOSE]}?${o[r.BUILD]}?`),S("LOOSE",`^${o[r.LOOSEPLAIN]}$`),S("GTLT","((?:<|>)?=?)"),S("XRANGEIDENTIFIERLOOSE",`${o[r.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),S("XRANGEIDENTIFIER",`${o[r.NUMERICIDENTIFIER]}|x|X|\\*`),S("XRANGEPLAIN",`[v=\\s]*(${o[r.XRANGEIDENTIFIER]})(?:\\.(${o[r.XRANGEIDENTIFIER]})(?:\\.(${o[r.XRANGEIDENTIFIER]})(?:${o[r.PRERELEASE]})?${o[r.BUILD]}?)?)?`),S("XRANGEPLAINLOOSE",`[v=\\s]*(${o[r.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[r.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[r.XRANGEIDENTIFIERLOOSE]})(?:${o[r.PRERELEASELOOSE]})?${o[r.BUILD]}?)?)?`),S("XRANGE",`^${o[r.GTLT]}\\s*${o[r.XRANGEPLAIN]}$`),S("XRANGELOOSE",`^${o[r.GTLT]}\\s*${o[r.XRANGEPLAINLOOSE]}$`),S("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),S("COERCE",`${o[r.COERCEPLAIN]}(?:$|[^\\d])`),S("COERCEFULL",o[r.COERCEPLAIN]+`(?:${o[r.PRERELEASE]})?(?:${o[r.BUILD]})?(?:$|[^\\d])`),S("COERCERTL",o[r.COERCE],!0),S("COERCERTLFULL",o[r.COERCEFULL],!0),S("LONETILDE","(?:~>?)"),S("TILDETRIM",`(\\s*)${o[r.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",S("TILDE",`^${o[r.LONETILDE]}${o[r.XRANGEPLAIN]}$`),S("TILDELOOSE",`^${o[r.LONETILDE]}${o[r.XRANGEPLAINLOOSE]}$`),S("LONECARET","(?:\\^)"),S("CARETTRIM",`(\\s*)${o[r.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",S("CARET",`^${o[r.LONECARET]}${o[r.XRANGEPLAIN]}$`),S("CARETLOOSE",`^${o[r.LONECARET]}${o[r.XRANGEPLAINLOOSE]}$`),S("COMPARATORLOOSE",`^${o[r.GTLT]}\\s*(${o[r.LOOSEPLAIN]})$|^$`),S("COMPARATOR",`^${o[r.GTLT]}\\s*(${o[r.FULLPLAIN]})$|^$`),S("COMPARATORTRIM",`(\\s*)${o[r.GTLT]}\\s*(${o[r.LOOSEPLAIN]}|${o[r.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",S("HYPHENRANGE",`^\\s*(${o[r.XRANGEPLAIN]})\\s+-\\s+(${o[r.XRANGEPLAIN]})\\s*$`),S("HYPHENRANGELOOSE",`^\\s*(${o[r.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[r.XRANGEPLAINLOOSE]})\\s*$`),S("STAR","(<|>)?=?\\s*\\*"),S("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),S("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Bt,Bt.exports)),Bt.exports}var Nr,yi;function ds(){if(yi)return Nr;yi=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return Nr=s=>s?typeof s!="object"?e:s:t,Nr}var Mr,bi;function ja(){if(bi)return Mr;bi=1;const e=/^[0-9]+$/,t=(s,d)=>{if(typeof s=="number"&&typeof d=="number")return s===d?0:s<d?-1:1;const u=e.test(s),c=e.test(d);return u&&c&&(s=+s,d=+d),s===d?0:u&&!c?-1:c&&!u?1:s<d?-1:1};return Mr={compareIdentifiers:t,rcompareIdentifiers:(s,d)=>t(d,s)},Mr}var qr,wi;function ve(){if(wi)return qr;wi=1;const e=rr(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:n}=Tt(),{safeRe:s,t:d}=Ct(),u=ds(),{compareIdentifiers:c}=ja(),a=(f,r)=>{const i=r.split(".");if(i.length>f.length)return!1;for(let l=0;l<i.length;l++)if(c(f[l],i[l])!==0)return!1;return!0};class o{constructor(r,i){if(i=u(i),r instanceof o){if(r.loose===!!i.loose&&r.includePrerelease===!!i.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,i),this.options=i,this.loose=!!i.loose,this.includePrerelease=!!i.includePrerelease;const l=r.trim().match(i.loose?s[d.LOOSE]:s[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 i=0;do{const l=this.prerelease[i],h=r.prerelease[i];if(e("prerelease compare",i,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(++i)}compareBuild(r){r instanceof o||(r=new o(r,this.options));let i=0;do{const l=this.build[i],h=r.build[i];if(e("build compare",i,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(++i)}inc(r,i,l){if(r.startsWith("pre")){if(!i&&l===!1)throw new Error("invalid increment argument: identifier is empty");if(i){const h=`-${i}`.match(this.options.loose?s[d.PRERELEASELOOSE]:s[d.PRERELEASE]);if(!h||h[1]!==i)throw new Error(`invalid identifier: ${i}`)}}switch(r){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",i,l);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",i,l);break;case"prepatch":this.prerelease.length=0,this.inc("patch",i,l),this.inc("pre",i,l);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",i,l),this.inc("pre",i,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(i===this.prerelease.join(".")&&l===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(h)}}if(i){let w=[i,h];if(l===!1&&(w=[i]),a(this.prerelease,i)){const S=this.prerelease[i.split(".").length];isNaN(S)&&(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 qr=o,qr}var Hr,Ei;function ot(){if(Ei)return Hr;Ei=1;const e=ve();return Hr=(n,s,d=!1)=>{if(n instanceof e)return n;try{return new e(n,s)}catch(u){if(!d)return null;throw u}},Hr}var Dr,Si;function tl(){if(Si)return Dr;Si=1;const e=ot();return Dr=(n,s)=>{const d=e(n,s);return d?d.version:null},Dr}var Ur,vi;function rl(){if(vi)return Ur;vi=1;const e=ot();return Ur=(n,s)=>{const d=e(n.trim().replace(/^[=v]+/,""),s);return d?d.version:null},Ur}var Fr,$i;function nl(){if($i)return Fr;$i=1;const e=ve();return Fr=(n,s,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(s,u,c).version}catch{return null}},Fr}var Vr,xi;function sl(){if(xi)return Vr;xi=1;const e=ot();return Vr=(n,s)=>{const d=e(n,null,!0),u=e(s,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"},Vr}var zr,Ii;function il(){if(Ii)return zr;Ii=1;const e=ve();return zr=(n,s)=>new e(n,s).major,zr}var Jr,Ri;function ol(){if(Ri)return Jr;Ri=1;const e=ve();return Jr=(n,s)=>new e(n,s).minor,Jr}var Gr,_i;function al(){if(_i)return Gr;_i=1;const e=ve();return Gr=(n,s)=>new e(n,s).patch,Gr}var Xr,Ai;function cl(){if(Ai)return Xr;Ai=1;const e=ot();return Xr=(n,s)=>{const d=e(n,s);return d&&d.prerelease.length?d.prerelease:null},Xr}var Wr,ji;function He(){if(ji)return Wr;ji=1;const e=ve();return Wr=(n,s,d)=>new e(n,d).compare(new e(s,d)),Wr}var Kr,Ti;function ul(){if(Ti)return Kr;Ti=1;const e=He();return Kr=(n,s,d)=>e(s,n,d),Kr}var Yr,Ci;function ll(){if(Ci)return Yr;Ci=1;const e=He();return Yr=(n,s)=>e(n,s,!0),Yr}var Zr,Pi;function fs(){if(Pi)return Zr;Pi=1;const e=ve();return Zr=(n,s,d)=>{const u=new e(n,d),c=new e(s,d);return u.compare(c)||u.compareBuild(c)},Zr}var Qr,ki;function dl(){if(ki)return Qr;ki=1;const e=fs();return Qr=(n,s)=>n.sort((d,u)=>e(d,u,s)),Qr}var en,Oi;function fl(){if(Oi)return en;Oi=1;const e=fs();return en=(n,s)=>n.sort((d,u)=>e(u,d,s)),en}var tn,Bi;function nr(){if(Bi)return tn;Bi=1;const e=He();return tn=(n,s,d)=>e(n,s,d)>0,tn}var rn,Li;function hs(){if(Li)return rn;Li=1;const e=He();return rn=(n,s,d)=>e(n,s,d)<0,rn}var nn,Ni;function Ta(){if(Ni)return nn;Ni=1;const e=He();return nn=(n,s,d)=>e(n,s,d)===0,nn}var sn,Mi;function Ca(){if(Mi)return sn;Mi=1;const e=He();return sn=(n,s,d)=>e(n,s,d)!==0,sn}var on,qi;function ps(){if(qi)return on;qi=1;const e=He();return on=(n,s,d)=>e(n,s,d)>=0,on}var an,Hi;function gs(){if(Hi)return an;Hi=1;const e=He();return an=(n,s,d)=>e(n,s,d)<=0,an}var cn,Di;function Pa(){if(Di)return cn;Di=1;const e=Ta(),t=Ca(),n=nr(),s=ps(),d=hs(),u=gs();return cn=(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 s(a,f,r);case"<":return d(a,f,r);case"<=":return u(a,f,r);default:throw new TypeError(`Invalid operator: ${o}`)}},cn}var un,Ui;function hl(){if(Ui)return un;Ui=1;const e=ve(),t=ot(),{safeRe:n,t:s}=Ct();return un=(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[s.COERCEFULL]:n[s.COERCE]);else{const h=c.includePrerelease?n[s.COERCERTLFULL]:n[s.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",i=c.includePrerelease&&a[5]?`-${a[5]}`:"",l=c.includePrerelease&&a[6]?`+${a[6]}`:"";return t(`${o}.${f}.${r}${i}${l}`,c)},un}var ln,Fi;function pl(){if(Fi)return ln;Fi=1;const e=ot(),t=Tt(),n=ve(),s=(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 ln=s,ln}var dn,Vi;function gl(){if(Vi)return dn;Vi=1;class e{constructor(){this.max=1e3,this.map=new Map}get(n){const s=this.map.get(n);if(s!==void 0)return this.map.delete(n),this.map.set(n,s),s}delete(n){return this.map.delete(n)}set(n,s){if(!this.delete(n)&&s!==void 0){if(this.map.size>=this.max){const u=this.map.keys().next().value;this.delete(u)}this.map.set(n,s)}return this}}return dn=e,dn}var fn,zi;function De(){if(zi)return fn;zi=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(m=>this.parseRange(m.trim())).filter(m=>m.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const m=this.set[0];if(this.set=this.set.filter(I=>!k(I[0])),this.set.length===0)this.set=[m];else if(this.set.length>1){for(const I of this.set)if(I.length===1&&X(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 m=0;m<b.length;m++)m>0&&(this.formatted+=" "),this.formatted+=b[m].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(H){H=H.replace(D,"");const m=((this.options.includePrerelease&&w)|(this.options.loose&&S))+":"+H,I=s.get(m);if(I)return I;const C=this.options.loose,O=C?o[r.HYPHENRANGELOOSE]:o[r.HYPHENRANGE];H=H.replace(O,q(this.options.includePrerelease)),c("hyphen replace",H),H=H.replace(o[r.COMPARATORTRIM],i),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=>R(V,this.options)).join(" ").split(/\s+/).map(V=>M(V,this.options));C&&(y=y.filter(V=>(c("loose invalid filter",V,this.options),!!V.match(o[r.COMPARATORLOOSE])))),c("range list",y);const x=new Map,T=y.map(V=>new u(V,this.options));for(const V of T){if(k(V))return[V];x.set(V.value,V)}x.size>1&&x.has("")&&x.delete("");const G=[...x.values()];return s.set(m,G),G}intersects(H,b){if(!(H instanceof t))throw new TypeError("a Range is required");return this.set.some(m=>K(m,b)&&H.set.some(I=>K(I,b)&&m.every(C=>I.every(O=>C.intersects(O,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(J(this.set[b],H,this.options))return!0;return!1}}fn=t;const n=gl(),s=new n,d=ds(),u=sr(),c=rr(),a=ve(),{safeRe:o,src:f,t:r,comparatorTrimReplace:i,tildeTrimReplace:l,caretTrimReplace:h}=Ct(),{FLAG_INCLUDE_PRERELEASE:w,FLAG_LOOSE:S}=Tt(),D=new RegExp(f[r.BUILD],"g"),k=N=>N.value==="<0.0.0-0",X=N=>N.value==="",K=(N,H)=>{let b=!0;const m=N.slice();let I=m.pop();for(;b&&m.length;)b=m.every(C=>I.intersects(C,H)),I=m.pop();return b},R=(N,H)=>(N=N.replace(o[r.BUILD],""),c("comp",N,H),N=L(N,H),c("caret",N),N=U(N,H),c("tildes",N),N=$(N,H),c("xrange",N),N=_(N,H),c("stars",N),N),E=N=>!N||N.toLowerCase()==="x"||N==="*",P=(N,H,b)=>E(N)&&!E(H)||E(H)&&b&&!E(b),U=(N,H)=>N.trim().split(/\s+/).map(b=>B(b,H)).join(" "),B=(N,H)=>{const b=H.loose?o[r.TILDELOOSE]:o[r.TILDE],m=H.includePrerelease?"-0":"";return N.replace(b,(I,C,O,y,x)=>{c("tilde",N,I,C,O,y,x);let T;return E(C)?T="":E(O)?T=`>=${C}.0.0${m} <${+C+1}.0.0-0`:E(y)?T=`>=${C}.${O}.0${m} <${C}.${+O+1}.0-0`:x?(c("replaceTilde pr",x),T=`>=${C}.${O}.${y}-${x} <${C}.${+O+1}.0-0`):T=`>=${C}.${O}.${y} <${C}.${+O+1}.0-0`,c("tilde return",T),T})},L=(N,H)=>N.trim().split(/\s+/).map(b=>g(b,H)).join(" "),g=(N,H)=>{c("caret",N,H);const b=H.loose?o[r.CARETLOOSE]:o[r.CARET],m=H.includePrerelease?"-0":"";return N.replace(b,(I,C,O,y,x)=>{c("caret",N,I,C,O,y,x);let T;return E(C)?T="":E(O)?T=`>=${C}.0.0${m} <${+C+1}.0.0-0`:E(y)?C==="0"?T=`>=${C}.${O}.0${m} <${C}.${+O+1}.0-0`:T=`>=${C}.${O}.0${m} <${+C+1}.0.0-0`:x?(c("replaceCaret pr",x),C==="0"?O==="0"?T=`>=${C}.${O}.${y}-${x} <${C}.${O}.${+y+1}-0`:T=`>=${C}.${O}.${y}-${x} <${C}.${+O+1}.0-0`:T=`>=${C}.${O}.${y}-${x} <${+C+1}.0.0-0`):(c("no pr"),C==="0"?O==="0"?T=`>=${C}.${O}.${y} <${C}.${O}.${+y+1}-0`:T=`>=${C}.${O}.${y} <${C}.${+O+1}.0-0`:T=`>=${C}.${O}.${y} <${+C+1}.0.0-0`),c("caret return",T),T})},$=(N,H)=>(c("replaceXRanges",N,H),N.split(/\s+/).map(b=>Y(b,H)).join(" ")),Y=(N,H)=>{N=N.trim();const b=H.loose?o[r.XRANGELOOSE]:o[r.XRANGE];return N.replace(b,(m,I,C,O,y,x)=>{if(c("xRange",N,m,I,C,O,y,x),P(C,O,y))return N;const T=E(C),G=T||E(O),V=G||E(y),W=V;return I==="="&&W&&(I=""),x=H.includePrerelease?"-0":"",T?I===">"||I==="<"?m="<0.0.0-0":m="*":I&&W?(G&&(O=0),y=0,I===">"?(I=">=",G?(C=+C+1,O=0,y=0):(O=+O+1,y=0)):I==="<="&&(I="<",G?C=+C+1:O=+O+1),I==="<"&&(x="-0"),m=`${I+C}.${O}.${y}${x}`):G?m=`>=${C}.0.0${x} <${+C+1}.0.0-0`:V&&(m=`>=${C}.${O}.0${x} <${C}.${+O+1}.0-0`),c("xRange return",m),m})},_=(N,H)=>(c("replaceStars",N,H),N.trim().replace(o[r.STAR],"")),M=(N,H)=>(c("replaceGTE0",N,H),N.trim().replace(o[H.includePrerelease?r.GTE0PRE:r.GTE0],"")),q=N=>(H,b,m,I,C,O,y,x,T,G,V,W)=>(E(m)?b="":E(I)?b=`>=${m}.0.0${N?"-0":""}`:E(C)?b=`>=${m}.${I}.0${N?"-0":""}`:O?b=`>=${b}`:b=`>=${b}${N?"-0":""}`,E(T)?x="":E(G)?x=`<${+T+1}.0.0-0`:E(V)?x=`<${T}.${+G+1}.0-0`:W?x=`<=${T}.${G}.${V}-${W}`:N?x=`<${T}.${G}.${+V+1}-0`:x=`<=${x}`,`${b} ${x}`.trim()),J=(N,H,b)=>{for(let m=0;m<N.length;m++)if(!N[m].test(H))return!1;if(H.prerelease.length&&!b.includePrerelease){for(let m=0;m<N.length;m++)if(c(N[m].semver),N[m].semver!==u.ANY&&N[m].semver.prerelease.length>0){const I=N[m].semver;if(I.major===H.major&&I.minor===H.minor&&I.patch===H.patch)return!0}return!1}return!0};return fn}var hn,Ji;function sr(){if(Ji)return hn;Ji=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(r,i){if(i=n(i),r instanceof t){if(r.loose===!!i.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),c("comparator",r,i),this.options=i,this.loose=!!i.loose,this.parse(r),this.semver===e?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(r){const i=this.options.loose?s[d.COMPARATORLOOSE]:s[d.COMPARATOR],l=r.match(i);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,i){if(!(r instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new o(r.value,i).test(this.value):r.operator===""?r.value===""?!0:new o(this.value,i).test(r.semver):(i=n(i),i.includePrerelease&&(this.value==="<0.0.0-0"||r.value==="<0.0.0-0")||!i.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,i)&&this.operator.startsWith(">")&&r.operator.startsWith("<")||u(this.semver,">",r.semver,i)&&this.operator.startsWith("<")&&r.operator.startsWith(">")))}}hn=t;const n=ds(),{safeRe:s,t:d}=Ct(),u=Pa(),c=rr(),a=ve(),o=De();return hn}var pn,Gi;function ir(){if(Gi)return pn;Gi=1;const e=De();return pn=(n,s,d)=>{try{s=new e(s,d)}catch{return!1}return s.test(n)},pn}var gn,Xi;function ml(){if(Xi)return gn;Xi=1;const e=De();return gn=(n,s)=>new e(n,s).set.map(d=>d.map(u=>u.value).join(" ").trim().split(" ")),gn}var mn,Wi;function yl(){if(Wi)return mn;Wi=1;const e=ve(),t=De();return mn=(s,d,u)=>{let c=null,a=null,o=null;try{o=new t(d,u)}catch{return null}return s.forEach(f=>{o.test(f)&&(!c||a.compare(f)===-1)&&(c=f,a=new e(c,u))}),c},mn}var yn,Ki;function bl(){if(Ki)return yn;Ki=1;const e=ve(),t=De();return yn=(s,d,u)=>{let c=null,a=null,o=null;try{o=new t(d,u)}catch{return null}return s.forEach(f=>{o.test(f)&&(!c||a.compare(f)===1)&&(c=f,a=new e(c,u))}),c},yn}var bn,Yi;function wl(){if(Yi)return bn;Yi=1;const e=ve(),t=De(),n=nr();return bn=(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 i=new e(r.semver.version);switch(r.operator){case">":i.prerelease.length===0?i.patch++:i.prerelease.push(0),i.raw=i.format();case"":case">=":(!f||n(i,f))&&(f=i);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},bn}var wn,Zi;function El(){if(Zi)return wn;Zi=1;const e=De();return wn=(n,s)=>{try{return new e(n,s).range||"*"}catch{return null}},wn}var En,Qi;function ms(){if(Qi)return En;Qi=1;const e=ve(),t=sr(),{ANY:n}=t,s=De(),d=ir(),u=nr(),c=hs(),a=gs(),o=ps();return En=(r,i,l,h)=>{r=new e(r,h),i=new s(i,h);let w,S,D,k,X;switch(l){case">":w=u,S=a,D=c,k=">",X=">=";break;case"<":w=c,S=o,D=u,k="<",X="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(d(r,i,h))return!1;for(let K=0;K<i.set.length;++K){const R=i.set[K];let E=null,P=null;if(R.forEach(U=>{U.semver===n&&(U=new t(">=0.0.0")),E=E||U,P=P||U,w(U.semver,E.semver,h)?E=U:D(U.semver,P.semver,h)&&(P=U)}),E.operator===k||E.operator===X||(!P.operator||P.operator===k)&&S(r,P.semver))return!1;if(P.operator===X&&D(r,P.semver))return!1}return!0},En}var Sn,eo;function Sl(){if(eo)return Sn;eo=1;const e=ms();return Sn=(n,s,d)=>e(n,s,">",d),Sn}var vn,to;function vl(){if(to)return vn;to=1;const e=ms();return vn=(n,s,d)=>e(n,s,"<",d),vn}var $n,ro;function $l(){if(ro)return $n;ro=1;const e=De();return $n=(n,s,d)=>(n=new e(n,d),s=new e(s,d),n.intersects(s,d)),$n}var xn,no;function xl(){if(no)return xn;no=1;const e=ir(),t=He();return xn=(n,s,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,s,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(" || "),i=typeof s.raw=="string"?s.raw:String(s);return r.length<i.length?r:s},xn}var In,so;function Il(){if(so)return In;so=1;const e=De(),t=sr(),{ANY:n}=t,s=ir(),d=He(),u=(i,l,h={})=>{if(i===l)return!0;i=new e(i,h),l=new e(l,h);let w=!1;e:for(const S of i.set){for(const D of l.set){const k=o(S,D,h);if(w=w||k!==null,k)continue e}if(w)return!1}return!0},c=[new t(">=0.0.0-0")],a=[new t(">=0.0.0")],o=(i,l,h)=>{if(i===l)return!0;if(i.length===1&&i[0].semver===n){if(l.length===1&&l[0].semver===n)return!0;h.includePrerelease?i=c:i=a}if(l.length===1&&l[0].semver===n){if(h.includePrerelease)return!0;l=a}const w=new Set;let S,D;for(const B of i)B.operator===">"||B.operator===">="?S=f(S,B,h):B.operator==="<"||B.operator==="<="?D=r(D,B,h):w.add(B.semver);if(w.size>1)return null;let k;if(S&&D){if(k=d(S.semver,D.semver,h),k>0)return null;if(k===0&&(S.operator!==">="||D.operator!=="<="))return null}for(const B of w){if(S&&!s(B,String(S),h)||D&&!s(B,String(D),h))return null;for(const L of l)if(!s(B,String(L),h))return!1;return!0}let X,K,R,E,P=D&&!h.includePrerelease&&D.semver.prerelease.length?D.semver:!1,U=S&&!h.includePrerelease&&S.semver.prerelease.length?S.semver:!1;P&&P.prerelease.length===1&&D.operator==="<"&&P.prerelease[0]===0&&(P=!1);for(const B of l){if(E=E||B.operator===">"||B.operator===">=",R=R||B.operator==="<"||B.operator==="<=",S){if(U&&B.semver.prerelease&&B.semver.prerelease.length&&B.semver.major===U.major&&B.semver.minor===U.minor&&B.semver.patch===U.patch&&(U=!1),B.operator===">"||B.operator===">="){if(X=f(S,B,h),X===B&&X!==S)return!1}else if(S.operator===">="&&!B.test(S.semver))return!1}if(D){if(P&&B.semver.prerelease&&B.semver.prerelease.length&&B.semver.major===P.major&&B.semver.minor===P.minor&&B.semver.patch===P.patch&&(P=!1),B.operator==="<"||B.operator==="<="){if(K=r(D,B,h),K===B&&K!==D)return!1}else if(D.operator==="<="&&!B.test(D.semver))return!1}if(!B.operator&&(D||S)&&k!==0)return!1}return!(S&&R&&!D&&k!==0||D&&E&&!S&&k!==0||U||P)},f=(i,l,h)=>{if(!i)return l;const w=d(i.semver,l.semver,h);return w>0?i:w<0||l.operator===">"&&i.operator===">="?l:i},r=(i,l,h)=>{if(!i)return l;const w=d(i.semver,l.semver,h);return w<0?i:w>0||l.operator==="<"&&i.operator==="<="?l:i};return In=u,In}var Rn,io;function Rl(){if(io)return Rn;io=1;const e=Ct(),t=Tt(),n=ve(),s=ja(),d=ot(),u=tl(),c=rl(),a=nl(),o=sl(),f=il(),r=ol(),i=al(),l=cl(),h=He(),w=ul(),S=ll(),D=fs(),k=dl(),X=fl(),K=nr(),R=hs(),E=Ta(),P=Ca(),U=ps(),B=gs(),L=Pa(),g=hl(),$=pl(),Y=sr(),_=De(),M=ir(),q=ml(),J=yl(),N=bl(),H=wl(),b=El(),m=ms(),I=Sl(),C=vl(),O=$l(),y=xl(),x=Il();return Rn={parse:d,valid:u,clean:c,inc:a,diff:o,major:f,minor:r,patch:i,prerelease:l,compare:h,rcompare:w,compareLoose:S,compareBuild:D,sort:k,rsort:X,gt:K,lt:R,eq:E,neq:P,gte:U,lte:B,cmp:L,coerce:g,truncate:$,Comparator:Y,Range:_,satisfies:M,toComparators:q,maxSatisfying:J,minSatisfying:N,minVersion:H,validRange:b,outside:m,gtr:I,ltr:C,intersects:O,simplifyRange:y,subset:x,SemVer:n,re:e.re,src:e.src,tokens:e.t,SEMVER_SPEC_VERSION:t.SEMVER_SPEC_VERSION,RELEASE_TYPES:t.RELEASE_TYPES,compareIdentifiers:s.compareIdentifiers,rcompareIdentifiers:s.rcompareIdentifiers},Rn}var oo;function _l(){return oo||(oo=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=Ue(),n=Rl(),s=Ke();e.VersionStruct=(0,t.refine)((0,t.string)(),"Version",i=>(0,n.valid)(i)===null?`Expected SemVer version, got "${i}"`:!0),e.VersionRangeStruct=(0,t.refine)((0,t.string)(),"Version range",i=>(0,n.validRange)(i)===null?`Expected SemVer range, got "${i}"`:!0);function d(i){return(0,t.is)(i,e.VersionStruct)}e.isValidSemVerVersion=d;function u(i){return(0,t.is)(i,e.VersionRangeStruct)}e.isValidSemVerRange=u;function c(i){(0,s.assertStruct)(i,e.VersionStruct)}e.assertIsSemVerVersion=c;function a(i){(0,s.assertStruct)(i,e.VersionRangeStruct)}e.assertIsSemVerRange=a;function o(i,l){return(0,n.gt)(i,l)}e.gtVersion=o;function f(i,l){return(0,n.gtr)(i,l)}e.gtRange=f;function r(i,l){return(0,n.satisfies)(i,l,{includePrerelease:!0})}e.satisfiesVersionRange=r})(Or)),Or}var ao;function xe(){return ao||(ao=1,(function(e){var t=et&&et.__createBinding||(Object.create?(function(s,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(s,c,a)}):(function(s,d,u,c){c===void 0&&(c=u),s[c]=d[u]})),n=et&&et.__exportStar||function(s,d){for(var u in s)u!=="default"&&!Object.prototype.hasOwnProperty.call(d,u)&&t(d,s,u)};Object.defineProperty(e,"__esModule",{value:!0}),n(Ke(),e),n(Aa(),e),n(ls(),e),n(Uu(),e),n(Fu(),e),n(Vu(),e),n(zu(),e),n(Ju(),e),n(_a(),e),n(tr(),e),n(Gu(),e),n(Xu(),e),n(Wu(),e),n(us(),e),n(Ku(),e),n(Yu(),e),n(Zu(),e),n(Qu(),e),n(el(),e),n(_l(),e)})(et)),et}var _n={},co;function Fe(){return co||(co=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ParserError=e.getErrorStack=e.getErrorMessage=void 0;const t=xe(),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 s=u=>{if(u instanceof Error)return u.stack};e.getErrorStack=s;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})(_n)),_n}var An={},bt={},uo;function Al(){if(uo)return bt;uo=1,Object.defineProperty(bt,"__esModule",{value:!0}),bt.iterate=void 0;const e=xe(),t=function*(n,s=32){for(let d=0;d<n.length;d+=s){const u=a=>{(0,e.assert)(a>=0,"Cannot skip a negative number of bytes."),(0,e.assert)(a%s===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 bt.iterate=t,bt}var rt={},jn={},nt={},Je={},lo;function jl(){if(lo)return Je;lo=1,Object.defineProperty(Je,"__esModule",{value:!0}),Je.padEnd=Je.padStart=Je.set=void 0;const e=xe(),t=32,n=(u,c,a)=>(0,e.concatBytes)([u.subarray(0,a),c,u.subarray(a+c.length)]);Je.set=n;const s=(u,c=t)=>{const a=new Uint8Array(Math.max(c-u.length,0)).fill(0);return(0,e.concatBytes)([a,u])};Je.padStart=s;const d=(u,c=t)=>{const a=new Uint8Array(Math.max(c-u.length,0)).fill(0);return(0,e.concatBytes)([u,a])};return Je.padEnd=d,Je}var fo;function lt(){return fo||(fo=1,(function(e){var t=nt&&nt.__createBinding||(Object.create?(function(s,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(s,c,a)}):(function(s,d,u,c){c===void 0&&(c=u),s[c]=d[u]})),n=nt&&nt.__exportStar||function(s,d){for(var u in s)u!=="default"&&!Object.prototype.hasOwnProperty.call(d,u)&&t(d,s,u)};Object.defineProperty(e,"__esModule",{value:!0}),n(jl(),e)})(nt)),nt}var ho;function Tl(){return ho||(ho=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.address=e.getAddress=void 0;const t=xe(),n=Fe(),s=lt(),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,s.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,s.padStart)(o);return(0,t.concatBytes)([u,f])},decode({value:u}){return(0,t.add0x)((0,t.bytesToHex)(u.slice(12,32)))}}})(jn)),jn}var Tn={},Cn={},po;function ys(){return po||(po=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.fixedBytes=e.getByteLength=void 0;const t=xe(),n=Fe(),s=lt(),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),i=(0,t.createBytes)(o);return(0,t.assert)(i.length<=r,new n.ParserError(`Expected a value of length ${r}, but received a value of length ${i.length}.`)),f?(0,t.concatBytes)([a,(0,s.padEnd)(i,r)]):(0,t.concatBytes)([a,(0,s.padEnd)(i)])},decode({type:c,value:a}){const o=(0,e.getByteLength)(c);return a.slice(0,o)}}})(Cn)),Cn}var Pn={},go;function ka(){return go||(go=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.tuple=e.getTupleElements=void 0;const t=xe(),n=Fe(),s=bs(),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 i=1;i<a.length-1;i++){const l=a[i];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,s.getParser)(f);return(0,s.isDynamicParser)(r,f)})},isType(a){return u(a)},getByteLength(a){return(0,s.isDynamicParser)(this,a)?32:(0,e.getTupleElements)(a).reduce((f,r)=>f+(0,s.getParser)(r).getByteLength(r),0)},encode({type:a,buffer:o,value:f,packed:r,tight:i}){const l=(0,e.getTupleElements)(a);return(0,s.pack)({types:l,values:f,byteArray:o,packed:r,tight:i})},decode({type:a,value:o,skip:f}){const r=(0,e.getTupleElements)(a),i=this.getByteLength(a)-32;return f(i),(0,s.unpack)(r,o)}}})(Pn)),Pn}var mo;function Cl(){return mo||(mo=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.array=e.getTupleType=e.getArrayType=e.isArrayType=void 0;const t=xe(),n=Fe(),s=bs(),d=lt(),u=ys(),c=ka(),a=/^(?<type>.*)\[(?<length>\d*?)\]$/u,o=i=>a.test(i);e.isArrayType=o;const f=i=>{var h;const l=i.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 "${i}".`)),[l.groups.type,l.groups.length?parseInt(l.groups.length,10):void 0]};e.getArrayType=f;const r=(i,l)=>`(${new Array(l).fill(i).join(",")})`;e.getTupleType=r,e.array={isDynamic(i){const[l,h]=(0,e.getArrayType)(i);return h===void 0||(0,s.isDynamicParser)((0,s.getParser)(l),l)},isType(i){return(0,e.isArrayType)(i)},getByteLength(i){(0,t.assert)((0,e.isArrayType)(i),new n.ParserError(`Expected an array type, but received "${i}".`));const[l,h]=(0,e.getArrayType)(i);return!(0,s.isDynamicParser)(this,i)&&h!==void 0?c.tuple.getByteLength((0,e.getTupleType)(l,h)):32},encode({type:i,buffer:l,value:h,packed:w,tight:S}){const[D,k]=(0,e.getArrayType)(i);if((0,t.assert)(!w||!(0,e.isArrayType)(D),new n.ParserError("Cannot pack nested arrays.")),w&&(0,s.isDynamicParser)((0,s.getParser)(D),D))return(0,s.pack)({types:new Array(h.length).fill(D),values:h,byteArray:l,packed:w,arrayPacked:!0,tight:S});if(k)return(0,t.assert)(k===h.length,new n.ParserError(`Array length does not match type length. Expected a length of ${k}, but received ${h.length}.`)),c.tuple.encode({type:(0,e.getTupleType)(D,k),buffer:l,value:h,packed:u.fixedBytes.isType(D)&&S,tight:S});if(w)return(0,s.pack)({types:new Array(h.length).fill(D),values:h,byteArray:l,packed:u.fixedBytes.isType(D)&&S,arrayPacked:!0,tight:S});const X=(0,d.padStart)((0,t.numberToBytes)(h.length));return(0,s.pack)({types:new Array(h.length).fill(D),values:h,byteArray:(0,t.concatBytes)([l,X]),packed:w,tight:S})},decode({type:i,value:l,...h}){const[w,S]=(0,e.getArrayType)(i);if(S){const k=c.tuple.decode({type:(0,e.getTupleType)(w,S),value:l,...h});return(0,t.assert)(k.length===S,new n.ParserError(`Array length does not match type length. Expected a length of ${S}, but received ${k.length}.`)),k}const D=(0,t.bytesToNumber)(l.subarray(0,32));return(0,s.unpack)(new Array(D).fill(w),l.subarray(32))}}})(Tn)),Tn}var kn={},On={},yo;function Oa(){return yo||(yo=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.number=e.getBigInt=e.assertNumberLength=e.getLength=e.isSigned=void 0;const t=xe(),n=Fe(),s=lt(),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 i=parseInt(r.groups.length,10);return(0,t.assert)(i>=8&&i<=256,new n.ParserError(`Invalid number length. Expected a number between 8 and 256, but received "${f}".`)),(0,t.assert)(i%8===0,new n.ParserError(`Invalid number length. Expected a multiple of 8, but received "${f}".`)),i};e.getLength=c;const a=(f,r)=>{const i=(0,e.getLength)(r),l=BigInt(2)**BigInt(i-((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:i,packed:l}){const h=(0,e.getBigInt)(i);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,s.padStart)((0,t.signedBigIntToBytes)(h,32))])}if(l){const w=(0,e.getLength)(f)/8;return(0,t.concatBytes)([r,(0,s.padStart)((0,t.bigIntToBytes)(h),w)])}return(0,t.concatBytes)([r,(0,s.padStart)((0,t.bigIntToBytes)(h))])},decode({type:f,value:r}){const i=r.subarray(0,32);if((0,e.isSigned)(f)){const h=(0,t.bytesToSignedBigInt)(i);return(0,e.assertNumberLength)(h,f),h}const l=(0,t.bytesToBigInt)(i);return(0,e.assertNumberLength)(l,f),l}}})(On)),On}var bo;function Pl(){return bo||(bo=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.bool=e.getBooleanValue=void 0;const t=Ue(),n=xe(),s=Fe(),d=Oa(),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 s.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 i=(0,e.getBooleanValue)(o);return f?(0,n.concatBytes)([a,(0,n.bigIntToBytes)(i)]):d.number.encode({type:"uint256",buffer:a,value:i,packed:f,tight:r})},decode(a){return d.number.decode({...a,type:"uint256"})===BigInt(1)}}})(kn)),kn}var wt={},wo;function Ba(){if(wo)return wt;wo=1,Object.defineProperty(wt,"__esModule",{value:!0}),wt.bytes=void 0;const e=xe(),t=lt();return wt.bytes={isDynamic:!0,isType:n=>n==="bytes",getByteLength(){return 32},encode({buffer:n,value:s,packed:d}){const u=(0,e.createBytes)(s);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 s=n.subarray(0,32),d=(0,e.bytesToNumber)(s);return n.slice(32,32+d)}},wt}var Bn={},Eo;function kl(){return Eo||(Eo=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.fn=e.getFunction=void 0;const t=Ue(),n=xe(),s=Fe(),d=ys(),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 s.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 i=(0,e.getFunction)(o);return d.fixedBytes.encode({type:"bytes24",buffer:a,value:i,packed:f,tight:r})},decode({value:a}){return{address:(0,n.bytesToHex)(a.slice(0,20)),selector:(0,n.bytesToHex)(a.slice(20,24))}}}})(Bn)),Bn}var Ln={},So;function Ol(){return So||(So=1,Object.defineProperty(Ln,"__esModule",{value:!0})),Ln}var Et={},vo;function Bl(){if(vo)return Et;vo=1,Object.defineProperty(Et,"__esModule",{value:!0}),Et.string=void 0;const e=xe(),t=Ba();return Et.string={isDynamic:!0,isType:n=>n==="string",getByteLength(){return 32},encode({buffer:n,value:s,packed:d,tight:u}){return t.bytes.encode({type:"bytes",buffer:n,value:(0,e.stringToBytes)(s),packed:d,tight:u})},decode(n){return(0,e.bytesToString)(t.bytes.decode(n))}},Et}var $o;function Ll(){return $o||($o=1,(function(e){var t=rt&&rt.__createBinding||(Object.create?(function(s,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(s,c,a)}):(function(s,d,u,c){c===void 0&&(c=u),s[c]=d[u]})),n=rt&&rt.__exportStar||function(s,d){for(var u in s)u!=="default"&&!Object.prototype.hasOwnProperty.call(d,u)&&t(d,s,u)};Object.defineProperty(e,"__esModule",{value:!0}),n(Tl(),e),n(Cl(),e),n(Pl(),e),n(Ba(),e),n(ys(),e),n(kl(),e),n(Oa(),e),n(Ol(),e),n(Bl(),e),n(ka(),e)})(rt)),rt}var xo;function bs(){return xo||(xo=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.unpack=e.pack=e.isDynamicParser=e.getParser=void 0;const t=xe(),n=Fe(),s=Al(),d=Ll(),u=lt(),c=r=>{const i={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=i[r];if(l)return l;const h=Object.values(i).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,i)=>{const{isDynamic:l}=r;return typeof l=="function"?l(i):l};e.isDynamicParser=a;const o=({types:r,values:i,packed:l=!1,tight:h=!1,arrayPacked:w=!1,byteArray:S=new Uint8Array})=>{(0,t.assert)(r.length===i.length,new n.ParserError(`The number of types (${r.length}) does not match the number of values (${i.length}).`));const{staticBuffer:D,dynamicBuffer:k,pointers:X}=r.reduce(({staticBuffer:E,dynamicBuffer:P,pointers:U},B,L)=>{const g=(0,e.getParser)(B),$=i[L];if(l||w||!(0,e.isDynamicParser)(g,B))return{staticBuffer:g.encode({buffer:E,value:$,type:B,packed:l,tight:h}),dynamicBuffer:P,pointers:U};const Y=(0,t.concatBytes)([E,new Uint8Array(32)]),_=g.encode({buffer:P,value:$,type:B,packed:l,tight:h});return{staticBuffer:Y,dynamicBuffer:_,pointers:[...U,{position:E.length,pointer:P.length}]}},{staticBuffer:new Uint8Array,dynamicBuffer:new Uint8Array,pointers:[]});(0,t.assert)(!l&&!w||k.length===0,new n.ParserError("Invalid pack state."));const K=D.length,R=X.reduce((E,{pointer:P,position:U})=>{const B=(0,u.padStart)((0,t.numberToBytes)(K+P));return(0,u.set)(E,B,U)},D);return(0,t.concatBytes)([S,R,k])};e.pack=o;const f=(r,i)=>{const l=(0,s.iterate)(i);return r.map(h=>{const{value:{value:w,skip:S},done:D}=l.next();(0,t.assert)(!D,new n.ParserError(`The encoded value is invalid for the provided types. Reached end of buffer while attempting to parse "${h}".`));const k=(0,e.getParser)(h);if((0,e.isDynamicParser)(k,h)){const K=(0,t.bytesToNumber)(w.subarray(0,32)),R=i.subarray(K);return k.decode({type:h,value:R,skip:S})}return k.decode({type:h,value:w,skip:S})})};e.unpack=f})(An)),An}var Io;function Nl(){return Io||(Io=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeSingle=e.decode=e.encodePacked=e.encodeSingle=e.encode=void 0;const t=xe(),n=Fe(),s=bs(),d=(f,r,i,l)=>{try{return(0,s.pack)({types:f,values:r,packed:i,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,i)=>(0,e.encode)(f,r,!0,i);e.encodePacked=c;const a=(f,r)=>{const i=(0,t.createBytes)(r);try{return(0,s.unpack)(f,i)}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 i=(0,e.decode)([f],r);return(0,t.assert)(i.length===1,new n.ParserError("Decoded value array has unexpected length.")),i[0]};e.decodeSingle=o})(vr)),vr}var st={},Nn={},Ro;function Ml(){return Ro||(Ro=1,Object.defineProperty(Nn,"__esModule",{value:!0})),Nn}var _o;function ql(){return _o||(_o=1,(function(e){var t=st&&st.__createBinding||(Object.create?(function(s,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(s,c,a)}):(function(s,d,u,c){c===void 0&&(c=u),s[c]=d[u]})),n=st&&st.__exportStar||function(s,d){for(var u in s)u!=="default"&&!Object.prototype.hasOwnProperty.call(d,u)&&t(d,s,u)};Object.defineProperty(e,"__esModule",{value:!0}),n(Ml(),e)})(st)),st}var Ao;function La(){return Ao||(Ao=1,(function(e){var t=Qe&&Qe.__createBinding||(Object.create?(function(s,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(s,c,a)}):(function(s,d,u,c){c===void 0&&(c=u),s[c]=d[u]})),n=Qe&&Qe.__exportStar||function(s,d){for(var u in s)u!=="default"&&!Object.prototype.hasOwnProperty.call(d,u)&&t(d,s,u)};Object.defineProperty(e,"__esModule",{value:!0}),n(Nl(),e),n(Fe(),e),n(ql(),e)})(Qe)),Qe}var Le={},Mn={},ae={},jo;function Hl(){if(jo)return ae;jo=1;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(ae,"__esModule",{value:!0}),ae.notImplemented=ae.bitMask=void 0,ae.isBytes=n,ae.abytes=s,ae.abool=d,ae.numberToHexUnpadded=u,ae.hexToNumber=c,ae.bytesToHex=f,ae.hexToBytes=l,ae.bytesToNumberBE=h,ae.bytesToNumberLE=w,ae.numberToBytesBE=S,ae.numberToBytesLE=D,ae.numberToVarBytesBE=k,ae.ensureBytes=X,ae.concatBytes=K,ae.equalBytes=R,ae.utf8ToBytes=E,ae.inRange=U,ae.aInRange=B,ae.bitLen=L,ae.bitGet=g,ae.bitSet=$,ae.createHmacDrbg=q,ae.validateObject=N,ae.memoized=b;const e=BigInt(0),t=BigInt(1);function n(m){return m instanceof Uint8Array||ArrayBuffer.isView(m)&&m.constructor.name==="Uint8Array"}function s(m){if(!n(m))throw new Error("Uint8Array expected")}function d(m,I){if(typeof I!="boolean")throw new Error(m+" boolean expected, got "+I)}function u(m){const I=m.toString(16);return I.length&1?"0"+I:I}function c(m){if(typeof m!="string")throw new Error("hex string expected, got "+typeof m);return m===""?e:BigInt("0x"+m)}const a=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",o=Array.from({length:256},(m,I)=>I.toString(16).padStart(2,"0"));function f(m){if(s(m),a)return m.toHex();let I="";for(let C=0;C<m.length;C++)I+=o[m[C]];return I}const r={_0:48,_9:57,A:65,F:70,a:97,f:102};function i(m){if(m>=r._0&&m<=r._9)return m-r._0;if(m>=r.A&&m<=r.F)return m-(r.A-10);if(m>=r.a&&m<=r.f)return m-(r.a-10)}function l(m){if(typeof m!="string")throw new Error("hex string expected, got "+typeof m);if(a)return Uint8Array.fromHex(m);const I=m.length,C=I/2;if(I%2)throw new Error("hex string expected, got unpadded hex of length "+I);const O=new Uint8Array(C);for(let y=0,x=0;y<C;y++,x+=2){const T=i(m.charCodeAt(x)),G=i(m.charCodeAt(x+1));if(T===void 0||G===void 0){const V=m[x]+m[x+1];throw new Error('hex string expected, got non-hex character "'+V+'" at index '+x)}O[y]=T*16+G}return O}function h(m){return c(f(m))}function w(m){return s(m),c(f(Uint8Array.from(m).reverse()))}function S(m,I){return l(m.toString(16).padStart(I*2,"0"))}function D(m,I){return S(m,I).reverse()}function k(m){return l(u(m))}function X(m,I,C){let O;if(typeof I=="string")try{O=l(I)}catch(x){throw new Error(m+" must be hex string or Uint8Array, cause: "+x)}else if(n(I))O=Uint8Array.from(I);else throw new Error(m+" must be hex string or Uint8Array");const y=O.length;if(typeof C=="number"&&y!==C)throw new Error(m+" of length "+C+" expected, got "+y);return O}function K(...m){let I=0;for(let O=0;O<m.length;O++){const y=m[O];s(y),I+=y.length}const C=new Uint8Array(I);for(let O=0,y=0;O<m.length;O++){const x=m[O];C.set(x,y),y+=x.length}return C}function R(m,I){if(m.length!==I.length)return!1;let C=0;for(let O=0;O<m.length;O++)C|=m[O]^I[O];return C===0}function E(m){if(typeof m!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(m))}const P=m=>typeof m=="bigint"&&e<=m;function U(m,I,C){return P(m)&&P(I)&&P(C)&&I<=m&&m<C}function B(m,I,C,O){if(!U(I,C,O))throw new Error("expected valid "+m+": "+C+" <= n < "+O+", got "+I)}function L(m){let I;for(I=0;m>e;m>>=t,I+=1);return I}function g(m,I){return m>>BigInt(I)&t}function $(m,I,C){return m|(C?t:e)<<BigInt(I)}const Y=m=>(t<<BigInt(m))-t;ae.bitMask=Y;const _=m=>new Uint8Array(m),M=m=>Uint8Array.from(m);function q(m,I,C){if(typeof m!="number"||m<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 C!="function")throw new Error("hmacFn must be a function");let O=_(m),y=_(m),x=0;const T=()=>{O.fill(1),y.fill(0),x=0},G=(...ne)=>C(y,O,...ne),V=(ne=_(0))=>{y=G(M([0]),ne),O=G(),ne.length!==0&&(y=G(M([1]),ne),O=G())},W=()=>{if(x++>=1e3)throw new Error("drbg: tried 1000 values");let ne=0;const he=[];for(;ne<I;){O=G();const fe=O.slice();he.push(fe),ne+=O.length}return K(...he)};return(ne,he)=>{T(),V(ne);let fe;for(;!(fe=he(W()));)V();return T(),fe}}const J={bigint:m=>typeof m=="bigint",function:m=>typeof m=="function",boolean:m=>typeof m=="boolean",string:m=>typeof m=="string",stringOrUint8Array:m=>typeof m=="string"||n(m),isSafeInteger:m=>Number.isSafeInteger(m),array:m=>Array.isArray(m),field:(m,I)=>I.Fp.isValid(m),hash:m=>typeof m=="function"&&Number.isSafeInteger(m.outputLen)};function N(m,I,C={}){const O=(y,x,T)=>{const G=J[x];if(typeof G!="function")throw new Error("invalid validator function");const V=m[y];if(!(T&&V===void 0)&&!G(V,m))throw new Error("param "+String(y)+" is invalid. Expected "+x+", got "+V)};for(const[y,x]of Object.entries(I))O(y,x,!1);for(const[y,x]of Object.entries(C))O(y,x,!0);return m}const H=()=>{throw new Error("not implemented")};ae.notImplemented=H;function b(m){const I=new WeakMap;return(C,...O)=>{const y=I.get(C);if(y!==void 0)return y;const x=m(C,...O);return I.set(C,x),x}}return ae}var Ne={},qn={},St={},To;function Dl(){return To||(To=1,Object.defineProperty(St,"__esModule",{value:!0}),St.crypto=void 0,St.crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0),St}var Co;function Yt(){return Co||(Co=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=s,e.abytes=d,e.ahash=u,e.aexists=c,e.aoutput=a,e.u8=o,e.u32=f,e.clean=r,e.createView=i,e.rotr=l,e.rotl=h,e.byteSwap=w,e.byteSwap32=S,e.bytesToHex=X,e.hexToBytes=E,e.asyncLoop=U,e.utf8ToBytes=B,e.bytesToUtf8=L,e.toBytes=g,e.kdfInputToBytes=$,e.concatBytes=Y,e.checkOpts=_,e.createHasher=q,e.createOptHasher=J,e.createXOFer=N,e.randomBytes=H;const t=Dl();function n(b){return b instanceof Uint8Array||ArrayBuffer.isView(b)&&b.constructor.name==="Uint8Array"}function s(b){if(!Number.isSafeInteger(b)||b<0)throw new Error("positive integer expected, got "+b)}function d(b,...m){if(!n(b))throw new Error("Uint8Array expected");if(m.length>0&&!m.includes(b.length))throw new Error("Uint8Array expected of length "+m+", 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");s(b.outputLen),s(b.blockLen)}function c(b,m=!0){if(b.destroyed)throw new Error("Hash instance has been destroyed");if(m&&b.finished)throw new Error("Hash#digest() has already been called")}function a(b,m){d(b);const I=m.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 m=0;m<b.length;m++)b[m].fill(0)}function i(b){return new DataView(b.buffer,b.byteOffset,b.byteLength)}function l(b,m){return b<<32-m|b>>>m}function h(b,m){return b<<m|b>>>32-m>>>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 S(b){for(let m=0;m<b.length;m++)b[m]=w(b[m]);return b}e.swap32IfBE=e.isLE?b=>b:S;const D=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",k=Array.from({length:256},(b,m)=>m.toString(16).padStart(2,"0"));function X(b){if(d(b),D)return b.toHex();let m="";for(let I=0;I<b.length;I++)m+=k[b[I]];return m}const K={_0:48,_9:57,A:65,F:70,a:97,f:102};function R(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(D)return Uint8Array.fromHex(b);const m=b.length,I=m/2;if(m%2)throw new Error("hex string expected, got unpadded hex of length "+m);const C=new Uint8Array(I);for(let O=0,y=0;O<I;O++,y+=2){const x=R(b.charCodeAt(y)),T=R(b.charCodeAt(y+1));if(x===void 0||T===void 0){const G=b[y]+b[y+1];throw new Error('hex string expected, got non-hex character "'+G+'" at index '+y)}C[O]=x*16+T}return C}const P=async()=>{};e.nextTick=P;async function U(b,m,I){let C=Date.now();for(let O=0;O<b;O++){I(O);const y=Date.now()-C;y>=0&&y<m||(await(0,e.nextTick)(),C+=y)}}function B(b){if(typeof b!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(b))}function L(b){return new TextDecoder().decode(b)}function g(b){return typeof b=="string"&&(b=B(b)),d(b),b}function $(b){return typeof b=="string"&&(b=B(b)),d(b),b}function Y(...b){let m=0;for(let C=0;C<b.length;C++){const O=b[C];d(O),m+=O.length}const I=new Uint8Array(m);for(let C=0,O=0;C<b.length;C++){const y=b[C];I.set(y,O),O+=y.length}return I}function _(b,m){if(m!==void 0&&{}.toString.call(m)!=="[object Object]")throw new Error("options should be object or undefined");return Object.assign(b,m)}class M{}e.Hash=M;function q(b){const m=C=>b().update(g(C)).digest(),I=b();return m.outputLen=I.outputLen,m.blockLen=I.blockLen,m.create=()=>b(),m}function J(b){const m=(C,O)=>b(O).update(g(C)).digest(),I=b({});return m.outputLen=I.outputLen,m.blockLen=I.blockLen,m.create=C=>b(C),m}function N(b){const m=(C,O)=>b(O).update(g(C)).digest(),I=b({});return m.outputLen=I.outputLen,m.blockLen=I.blockLen,m.create=C=>b(C),m}e.wrapConstructor=q,e.wrapConstructorWithOpts=J,e.wrapXOFConstructorWithOpts=N;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")}})(qn)),qn}var Po;function Ul(){if(Po)return Ne;Po=1,Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.aoutput=Ne.anumber=Ne.aexists=Ne.abytes=void 0;const e=Yt();return Ne.abytes=e.abytes,Ne.aexists=e.aexists,Ne.anumber=e.anumber,Ne.aoutput=e.aoutput,Ne}var ko;function Na(){return ko||(ko=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=Hl();Object.defineProperty(e,"assertBool",{enumerable:!0,get:function(){return t.abool}});const n=Ul();Object.defineProperty(e,"assertBytes",{enumerable:!0,get:function(){return n.abytes}});const s=Yt();var d=Yt();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,s.hexToBytes)(r)}function a(f,r){if(f.length!==r.length)return!1;for(let i=0;i<f.length;i++)if(f[i]!==r[i])return!1;return!0}function o(f){return r=>((0,n.abytes)(r),f(r))}})(Mn)),Mn}var Oo;function Pt(){if(Oo)return Le;Oo=1,Object.defineProperty(Le,"__esModule",{value:!0}),Le.compare=Le.concat=Le.toHex=Le.toBytes=void 0;const e=Na();function t(u){return u instanceof Uint8Array?u:typeof u=="string"?(0,e.hexToBytes)(u):new Uint8Array(u)}Le.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))}Le.toHex=n;function s(u){return(0,e.concatBytes)(...u.map(t))}Le.concat=s;function d(u,c){const a=BigInt(n(u))-BigInt(n(c));return a>0?1:a<0?-1:0}return Le.compare=d,Le}var Se={},Ge={},Me={},de={},re={},Bo;function Fl(){if(Bo)return re;Bo=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=k,re.fromBig=n,re.split=s;const e=BigInt(2**32-1),t=BigInt(32);function n(L,g=!1){return g?{h:Number(L&e),l:Number(L>>t&e)}:{h:Number(L>>t&e)|0,l:Number(L&e)|0}}function s(L,g=!1){const $=L.length;let Y=new Uint32Array($),_=new Uint32Array($);for(let M=0;M<$;M++){const{h:q,l:J}=n(L[M],g);[Y[M],_[M]]=[q,J]}return[Y,_]}const d=(L,g)=>BigInt(L>>>0)<<t|BigInt(g>>>0);re.toBig=d;const u=(L,g,$)=>L>>>$;re.shrSH=u;const c=(L,g,$)=>L<<32-$|g>>>$;re.shrSL=c;const a=(L,g,$)=>L>>>$|g<<32-$;re.rotrSH=a;const o=(L,g,$)=>L<<32-$|g>>>$;re.rotrSL=o;const f=(L,g,$)=>L<<64-$|g>>>$-32;re.rotrBH=f;const r=(L,g,$)=>L>>>$-32|g<<64-$;re.rotrBL=r;const i=(L,g)=>g;re.rotr32H=i;const l=(L,g)=>L;re.rotr32L=l;const h=(L,g,$)=>L<<$|g>>>32-$;re.rotlSH=h;const w=(L,g,$)=>g<<$|L>>>32-$;re.rotlSL=w;const S=(L,g,$)=>g<<$-32|L>>>64-$;re.rotlBH=S;const D=(L,g,$)=>L<<$-32|g>>>64-$;re.rotlBL=D;function k(L,g,$,Y){const _=(g>>>0)+(Y>>>0);return{h:L+$+(_/2**32|0)|0,l:_|0}}const X=(L,g,$)=>(L>>>0)+(g>>>0)+($>>>0);re.add3L=X;const K=(L,g,$,Y)=>g+$+Y+(L/2**32|0)|0;re.add3H=K;const R=(L,g,$,Y)=>(L>>>0)+(g>>>0)+($>>>0)+(Y>>>0);re.add4L=R;const E=(L,g,$,Y,_)=>g+$+Y+_+(L/2**32|0)|0;re.add4H=E;const P=(L,g,$,Y,_)=>(L>>>0)+(g>>>0)+($>>>0)+(Y>>>0)+(_>>>0);re.add5L=P;const U=(L,g,$,Y,_,M)=>g+$+Y+_+M+(L/2**32|0)|0;re.add5H=U;const B={fromBig:n,split:s,toBig:d,shrSH:u,shrSL:c,rotrSH:a,rotrSL:o,rotrBH:f,rotrBL:r,rotr32H:i,rotr32L:l,rotlSH:h,rotlSL:w,rotlBH:S,rotlBL:D,add:k,add3L:X,add3H:K,add4L:R,add4H:E,add5H:U,add5L:P};return re.default=B,re}var Lo;function Vl(){if(Lo)return de;Lo=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=D;const e=Fl(),t=Yt(),n=BigInt(0),s=BigInt(1),d=BigInt(2),u=BigInt(7),c=BigInt(256),a=BigInt(113),o=[],f=[],r=[];for(let R=0,E=s,P=1,U=0;R<24;R++){[P,U]=[U,(2*P+3*U)%5],o.push(2*(5*U+P)),f.push((R+1)*(R+2)/2%64);let B=n;for(let L=0;L<7;L++)E=(E<<s^(E>>u)*a)%c,E&d&&(B^=s<<(s<<BigInt(L))-s);r.push(B)}const i=(0,e.split)(r,!0),l=i[0],h=i[1],w=(R,E,P)=>P>32?(0,e.rotlBH)(R,E,P):(0,e.rotlSH)(R,E,P),S=(R,E,P)=>P>32?(0,e.rotlBL)(R,E,P):(0,e.rotlSL)(R,E,P);function D(R,E=24){const P=new Uint32Array(10);for(let U=24-E;U<24;U++){for(let g=0;g<10;g++)P[g]=R[g]^R[g+10]^R[g+20]^R[g+30]^R[g+40];for(let g=0;g<10;g+=2){const $=(g+8)%10,Y=(g+2)%10,_=P[Y],M=P[Y+1],q=w(_,M,1)^P[$],J=S(_,M,1)^P[$+1];for(let N=0;N<50;N+=10)R[g+N]^=q,R[g+N+1]^=J}let B=R[2],L=R[3];for(let g=0;g<24;g++){const $=f[g],Y=w(B,L,$),_=S(B,L,$),M=o[g];B=R[M],L=R[M+1],R[M]=Y,R[M+1]=_}for(let g=0;g<50;g+=10){for(let $=0;$<10;$++)P[$]=R[g+$];for(let $=0;$<10;$++)R[g+$]^=~P[($+2)%10]&P[($+4)%10]}R[0]^=l[U],R[1]^=h[U]}(0,t.clean)(P)}class k extends t.Hash{constructor(E,P,U,B=!1,L=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=U,this.enableXOF=B,this.rounds=L,(0,t.anumber)(U),!(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),D(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:U}=this,B=E.length;for(let L=0;L<B;){const g=Math.min(P-this.pos,B-L);for(let $=0;$<g;$++)U[this.pos++]^=E[L++];this.pos===P&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:E,suffix:P,pos:U,blockLen:B}=this;E[U]^=P,(P&128)!==0&&U===B-1&&this.keccak(),E[B-1]^=128,this.keccak()}writeInto(E){(0,t.aexists)(this,!1),(0,t.abytes)(E),this.finish();const P=this.state,{blockLen:U}=this;for(let B=0,L=E.length;B<L;){this.posOut>=U&&this.keccak();const g=Math.min(U-this.posOut,L-B);E.set(P.subarray(this.posOut,this.posOut+g),B),this.posOut+=g,B+=g}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:U,outputLen:B,rounds:L,enableXOF:g}=this;return E||(E=new k(P,U,B,g,L)),E.state32.set(this.state32),E.pos=this.pos,E.posOut=this.posOut,E.finished=this.finished,E.rounds=L,E.suffix=U,E.outputLen=B,E.enableXOF=g,E.destroyed=this.destroyed,E}}de.Keccak=k;const X=(R,E,P)=>(0,t.createHasher)(()=>new k(E,R,P));de.sha3_224=X(6,144,224/8),de.sha3_256=X(6,136,256/8),de.sha3_384=X(6,104,384/8),de.sha3_512=X(6,72,512/8),de.keccak_224=X(1,144,224/8),de.keccak_256=X(1,136,256/8),de.keccak_384=X(1,104,384/8),de.keccak_512=X(1,72,512/8);const K=(R,E,P)=>(0,t.createXOFer)((U={})=>new k(E,R,U.dkLen===void 0?P:U.dkLen,!0));return de.shake128=K(31,168,128/8),de.shake256=K(31,136,256/8),de}var No;function zl(){if(No)return Me;No=1,Object.defineProperty(Me,"__esModule",{value:!0}),Me.keccak512=Me.keccak384=Me.keccak256=Me.keccak224=void 0;const e=Vl(),t=Na();return Me.keccak224=(0,t.wrapHash)(e.keccak_224),Me.keccak256=(()=>{const n=(0,t.wrapHash)(e.keccak_256);return n.create=e.keccak_256.create,n})(),Me.keccak384=(0,t.wrapHash)(e.keccak_384),Me.keccak512=(0,t.wrapHash)(e.keccak_512),Me}var Mo;function Ma(){if(Mo)return Ge;Mo=1,Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.standardNodeHash=Ge.standardLeafHash=Ge.keccak256=void 0;const e=La(),t=zl(),n=Pt();function s(c){return(0,n.toHex)((0,t.keccak256)((0,n.toBytes)(c)))}Ge.keccak256=s;function d(c,a){return s(s((0,e.encode)(c,a)))}Ge.standardLeafHash=d;function u(c,a){return s((0,n.concat)([c,a].sort(n.compare)))}return Ge.standardNodeHash=u,Ge}var Re={},qo;function or(){if(qo)return Re;qo=1,Object.defineProperty(Re,"__esModule",{value:!0}),Re.invariant=Re.validateArgument=Re.InvalidArgumentError=Re.InvariantError=Re.throwError=void 0;function e(u){throw new Error(u)}Re.throwError=e;class t extends Error{constructor(c){super(c),this.name="InvariantError"}}Re.InvariantError=t;class n extends Error{constructor(c){super(c),this.name="InvalidArgumentError"}}Re.InvalidArgumentError=n;function s(u,c){if(!u)throw new n(c)}Re.validateArgument=s;function d(u,c){if(!u)throw new t(c)}return Re.invariant=d,Re}var Ho;function ws(){if(Ho)return Se;Ho=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=Pt(),t=Ma(),n=or(),s=R=>2*R+1,d=R=>2*R+2,u=R=>R>0?Math.floor((R-1)/2):(0,n.throwError)("Root has no parent"),c=R=>R>0?R-(-1)**(R%2):(0,n.throwError)("Root has no siblings"),a=(R,E)=>E>=0&&E<R.length,o=(R,E)=>a(R,s(E)),f=(R,E)=>a(R,E)&&!o(R,E),r=R=>(0,e.toBytes)(R).length===32,i=(R,E)=>void(f(R,E)||(0,n.throwError)("Index is not a leaf")),l=R=>void(r(R)||(0,n.throwError)("Merkle tree nodes must be Uint8Array of length 32"));function h(R,E=t.standardNodeHash){R.forEach(l),(0,n.validateArgument)(R.length!==0,"Expected non-zero number of leaves");const P=new Array(2*R.length-1);for(const[U,B]of R.entries())P[P.length-1-U]=(0,e.toHex)(B);for(let U=P.length-1-R.length;U>=0;U--)P[U]=E(P[s(U)],P[d(U)]);return P}Se.makeMerkleTree=h;function w(R,E){i(R,E);const P=[];for(;E>0;)P.push((0,e.toHex)(R[c(E)])),E=u(E);return P}Se.getProof=w;function S(R,E,P=t.standardNodeHash){return l(R),E.forEach(l),(0,e.toHex)(E.reduce(P,R))}Se.processProof=S;function D(R,E){E.forEach(L=>i(R,L)),E.sort((L,g)=>g-L),(0,n.validateArgument)(E.slice(1).every((L,g)=>L!==E[g]),"Cannot prove duplicated index");const P=Array.from(E),U=[],B=[];for(;P.length>0&&P[0]>0;){const L=P.shift(),g=c(L),$=u(L);g===P[0]?(B.push(!0),P.shift()):(B.push(!1),U.push((0,e.toHex)(R[g]))),P.push($)}return E.length===0&&U.push((0,e.toHex)(R[0])),{leaves:E.map(L=>(0,e.toHex)(R[L])),proof:U,proofFlags:B}}Se.getMultiProof=D;function k(R,E=t.standardNodeHash){R.leaves.forEach(l),R.proof.forEach(l),(0,n.validateArgument)(R.proof.length>=R.proofFlags.filter(B=>!B).length,"Invalid multiproof format"),(0,n.validateArgument)(R.leaves.length+R.proof.length===R.proofFlags.length+1,"Provided leaves and multiproof are not compatible");const P=Array.from(R.leaves),U=Array.from(R.proof);for(const B of R.proofFlags){const L=P.shift(),g=B?P.shift():U.shift();(0,n.invariant)(L!==void 0&&g!==void 0),P.push(E(L,g))}return(0,n.invariant)(P.length+U.length===1),(0,e.toHex)(P.pop()??U.shift())}Se.processMultiProof=k;function X(R,E=t.standardNodeHash){for(const[P,U]of R.entries()){if(!r(U))return!1;const B=s(P),L=d(P);if(L>=R.length){if(B<R.length)return!1}else if((0,e.compare)(U,E(R[B],R[L])))return!1}return R.length>0}Se.isValidMerkleTree=X;function K(R){(0,n.validateArgument)(R.length!==0,"Expected non-zero number of nodes");const E=[[0,[]]],P=[];for(;E.length>0;){const[U,B]=E.pop();P.push(B.slice(0,-1).map(L=>[" ","│ "][L]).join("")+B.slice(-1).map(L=>["└─ ","├─ "][L]).join("")+U+") "+(0,e.toHex)(R[U])),d(U)<R.length&&(E.push([d(U),B.concat(0)]),E.push([s(U),B.concat(1)]))}return P.join(`
|
|
4
4
|
`)}return Se.renderMerkleTree=K,Se}var vt={},$t={},Do;function Jl(){return Do||(Do=1,Object.defineProperty($t,"__esModule",{value:!0}),$t.defaultOptions=void 0,$t.defaultOptions={sortLeaves:!0}),$t}var Uo;function qa(){if(Uo)return vt;Uo=1,Object.defineProperty(vt,"__esModule",{value:!0}),vt.MerkleTreeImpl=void 0;const e=Pt(),t=ws(),n=Jl(),s=or();class d{constructor(c,a,o,f){this.tree=c,this.values=a,this.leafHash=o,this.nodeHash=f,(0,s.validateArgument)(a.every(({value:r})=>typeof r!="number"),"Leaf values cannot be numbers"),this.hashLookup=Object.fromEntries(a.map(({treeIndex:r},i)=>[c[r],i]))}static prepare(c,a={},o,f){const r=a.sortLeaves??n.defaultOptions.sortLeaves,i=c.map((w,S)=>({value:w,valueIndex:S,hash:o(w)}));r&&i.sort((w,S)=>(0,e.compare)(w.hash,S.hash));const l=(0,t.makeMerkleTree)(i.map(w=>w.hash),f),h=c.map(w=>({value:w,treeIndex:0}));for(const[w,{valueIndex:S}]of i.entries())h[S].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,s.invariant)((0,t.isValidMerkleTree)(this.tree,this.nodeHash),"Merkle tree is invalid")}leafLookup(c){const a=this.hashLookup[this.leafHash(c)];return(0,s.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,s.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,s.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,s.validateArgument)(a!==void 0,"Index out of bounds"),(0,s.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,s.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 vt.MerkleTreeImpl=d,vt}var Fo;function Gl(){if(Fo)return Ze;Fo=1,Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.SimpleMerkleTree=Ze.formatLeaf=void 0;const e=La(),t=Pt(),n=ws(),s=qa(),d=or();function u(a){return(0,t.toHex)((0,e.encode)(["bytes32"],[a]))}Ze.formatLeaf=u;class c extends s.MerkleTreeImpl{static of(o,f={}){const[r,i]=s.MerkleTreeImpl.prepare(o,f,u,f.nodeHash);return new c(r,i,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,i){return(0,t.toHex)(o)===(0,n.processProof)(u(f),r,i)}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 xt={},Vo;function Xl(){if(Vo)return xt;Vo=1,Object.defineProperty(xt,"__esModule",{value:!0}),xt.StandardMerkleTree=void 0;const e=Pt(),t=ws(),n=qa(),s=Ma(),d=or();class u extends n.MerkleTreeImpl{constructor(a,o,f){super(a,o,r=>(0,s.standardLeafHash)(f,r)),this.tree=a,this.values=o,this.leafEncoding=f}static of(a,o,f={}){const[r,i]=n.MerkleTreeImpl.prepare(a,f,l=>(0,s.standardLeafHash)(o,l));return new u(r,i,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,s.standardLeafHash)(o,f),r)}static verifyMultiProof(a,o,f){return(0,e.toHex)(a)===(0,t.processMultiProof)({leaves:f.leaves.map(r=>(0,s.standardLeafHash)(o,r)),proof:f.proof,proofFlags:f.proofFlags})}dump(){return{format:"standard-v1",leafEncoding:this.leafEncoding,tree:this.tree,values:this.values}}}return xt.StandardMerkleTree=u,xt}var zo;function Wl(){return zo||(zo=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.StandardMerkleTree=e.SimpleMerkleTree=void 0;var t=Gl();Object.defineProperty(e,"SimpleMerkleTree",{enumerable:!0,get:function(){return t.SimpleMerkleTree}});var n=Xl();Object.defineProperty(e,"StandardMerkleTree",{enumerable:!0,get:function(){return n.StandardMerkleTree}})})(Sr)),Sr}var Kl=Wl();const Ha=1,Da=5,Ua=70,Yl=720*60*60*1e3,Fa=1e6,Jo={couponManager:"0x3fd3056ee72a2a85e9392fab3a450e7736536081",collectionDiscountCoupon:"0xc914507fe297b2dddd1232ac3a8903f1c125e794"};function Va(e){try{const t=hr(pr.CouponManager,e),n=hr(pr.CollectionDiscountCoupon,e);return{couponManager:{address:t.address,name:t.name,version:t.version,abi:t.abi},collectionDiscountCoupon:n.address}}catch{if(e!==ns.ChainId.MATIC_MAINNET)return null;const{abi:t}=hr(pr.CouponManager,ns.ChainId.MATIC_AMOY);return{couponManager:{address:Jo.couponManager,name:"CouponManager",version:"1.0.0",abi:t},collectionDiscountCoupon:Jo.collectionDiscountCoupon}}}function Es(e){return[...new Set(e.map(t=>t.toLowerCase()))]}function Zl(e){const t=Es(e);if(t.length===0)throw new We("collections");return Kl.StandardMerkleTree.of(t.map(n=>[n]),["address"]).root}function za(e,t){return qc.encode(["uint256","uint256","bytes32"],[Ha,e,t])}function Ql(){return{Coupon:[{name:"checks",type:"Checks"},{name:"couponAddress",type:"address"},{name:"data",type:"bytes"}],Checks:ks.Checks,ExternalCheck:ks.ExternalCheck}}const Zt=e=>Math.floor(e/1e3);function ed(e,t){return{name:t.couponManager.name,version:t.couponManager.version,salt:_t(ma(e),32),verifyingContract:t.couponManager.address}}function td(e,t,n){return{checks:{uses:e.uses,expiration:Zt(e.expiration),effective:Zt(e.effective),salt:_t(e.salt,32),contractSignatureIndex:e.contractSignatureIndex,signerSignatureIndex:e.signerSignatureIndex,allowedRoot:_t(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 Ja(e,t=Date.now()){if(Es(e.collections).length===0)throw new We("collections");if(!Number.isInteger(e.discountPct)||e.discountPct<Da||e.discountPct>Ua)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)>Yl)throw new We("duration");if(e.uses!==void 0&&(!Number.isInteger(e.uses)||e.uses<1))throw new We("uses")}const rd=["function contractSignatureIndex() view returns (uint256)","function signerSignatureIndex(address) view returns (uint256)"];async function nd(e,t){const n=new ga(e,rd,Lc()),[s,d]=await Promise.all([n.contractSignatureIndex(),n.signerSignatureIndex(t)]);return{contractSignatureIndex:s.toNumber(),signerSignatureIndex:d.toNumber()}}async function sd(e,t={}){const n=t.now?t.now():Date.now();Ja(e,n);const s=Va(e.chainId);if(!s)throw new Error(`Coupons are not available on chain ${e.chainId}`);const d=(await e.signer.getAddress()).toLowerCase(),u=Es(e.collections),c=await(t.readIndexes??nd)(s.couponManager.address,d),a={uses:e.uses??Fa,expiration:e.endsAtMs,effective:e.startsAtMs??n,salt:ma(Mc(32)),contractSignatureIndex:c.contractSignatureIndex,signerSignatureIndex:c.signerSignatureIndex,allowedRoot:"0x",externalChecks:[]},o=e.discountPct*1e4,f=za(o,Zl(u)),r=await e.signer._signTypedData(ed(e.chainId,s),Ql(),td(a,s.collectionDiscountCoupon,f));return{signer:d,chainId:e.chainId,network:ns.Network.MATIC,checks:a,couponAddress:s.collectionDiscountCoupon,discountType:Ha,discount:o,collections:u,signature:r}}async function id(e,t){const n=await wc(`${At.marketplaceServerUrl}/v1/coupons`,{method:"POST",identity:t,metadata:{signer:"dcl:marketplace",intent:"dcl:create-coupon"},headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),s=await n.json().catch(()=>({}));if(!n.ok||!s.ok||!s.data)throw new Error(s.message??`postCoupon ${n.status}`);return s.data}async function od(e){var s;const t=await fetch(`${At.marketplaceServerUrl}/v1/coupons?signer=${e.toLowerCase()}`);if(!t.ok)throw(s=t.body)==null||s.cancel(),new Error(`fetchCreatorSales ${t.status}`);return(await t.json()).data??[]}function ad(e){return e.checks.uses<Fa}function cd(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 ud(e){const{sale:t,signer:n}=e;await bc(n.provider,t.chainId);const s=Va(t.chainId);if(!s)throw new Error(`Coupons are not available on chain ${t.chainId}`);const d=new ga(s.couponManager.address,s.couponManager.abi,n),u={signature:t.signature,checks:{uses:t.checks.uses,expiration:Zt(t.checks.expiration),effective:Zt(t.checks.effective),salt:_t(t.checks.salt,32),contractSignatureIndex:t.checks.contractSignatureIndex,signerSignatureIndex:t.checks.signerSignatureIndex,allowedRoot:_t(t.checks.allowedRoot||"0x",32),allowedProof:[],externalChecks:[]},couponAddress:t.couponAddress,data:za(t.discount,t.root),callerData:"0x"};return(await(await d.cancelSignature([u],Nc(t.chainId))).wait()).transactionHash}function Xt(e){return new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"short"}).format(new Date(e))}const Lt=F.div`
|
|
@@ -1139,4 +1139,4 @@ caused by: `+Ia(s,t)):n},Lu=e=>Ia(e,new Set),Ra=(e,t,n)=>{if(!(e instanceof Erro
|
|
|
1139
1139
|
font-size: 16px;
|
|
1140
1140
|
color: ${v.colors.text};
|
|
1141
1141
|
`,Bf=48,oa=[{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"}],Lf=["all","credits","mana"],es={all:"filter.priceAll",credits:"filter.priceCredits",mana:"filter.priceMana"};function Nf(e){return e==="credits"?p.jsx(zt,{size:14}):e==="mana"?p.jsx(du,{src:Au,alt:"","aria-hidden":!0}):null}const ts=[{key:"newest",label:"filterBar.sortNewest",server:"newest"},{key:"name",label:"filterBar.sortName",server:"name"},{key:"cheapest",label:"filterBar.sortCheapest",server:"cheapest"}];function aa(e){return e==="wearables"||e==="emotes"}const ca={wearables:"wearable",emotes:"emote",names:"names",creations:""},Mf={wearable:"wearables",emote:"emotes",names:"names"};function qf(e){return`${At.builderUrl}/names/${encodeURIComponent(e)}`}function ua(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 Hf(e,t,n,s){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:At.chainId,thumbnail:e.thumbnail,priceCredits:t,available:e.remainingSupply,...(s==null?void 0:s.compareAtCredits)!=null?{compareAtCredits:s.compareAtCredits}:{},...(s==null?void 0:s.saleEndsAt)!=null?{saleEndsAt:s.saleEndsAt}:{},gender:null,isSmart:!1}}function gh(){var As,js;$c({title:A("nav.myAssets"),noindex:!0});const{session:e,error:t,signIn:n,restore:s}=xc(),d=da(),[u,c]=yc(),a=u.get("section"),o=oa.some(j=>j.key===a)?a:"wearables",[f,r]=ee.useState("all"),[i,l]=ee.useState("all"),[h,w]=ee.useState([]),[S,D]=ee.useState(null);zc(`${o}:${S??""}`);const[k,X]=ee.useState("newest"),[K,R]=ee.useState(""),[E,P]=ee.useState(""),[U,B]=ee.useState(!1),[L,g]=ee.useState(!0),[$,Y]=ee.useState(!0),[_,M]=ee.useState(!1),[q,J]=ee.useState(!1),[N,H]=ee.useState("idle");ee.useEffect(()=>{s()},[s]),ee.useEffect(()=>{const j=setTimeout(()=>P(K.trim()),300);return()=>clearTimeout(j)},[K]),ee.useEffect(()=>{if(!U)return;const j=te=>{te.key==="Escape"&&B(!1)};document.addEventListener("keydown",j);const Z=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",j),document.body.style.overflow=Z}},[U]);const b=e==null?void 0:e.address,m=oa.find(j=>j.key===o),I=aa(o),C=(ts.find(j=>j.key===k)??ts[0]).server,O=f==="on_sale"?A("filter.onSale"):f==="not_for_sale"?A("filter.notForSale"):"",y=i==="all"?"":A(es[i]),x=br.filter(j=>h.includes(j)).map(Cs).join(", ");function T(j){c(Z=>{const te=new URLSearchParams(Z);return te.set("section",j),te},{replace:!0}),D(null),aa(j)||w([]),j!=="creations"&&l("all"),B(!1)}function G(j){w(Z=>Z.includes(j)?Z.filter(te=>te!==j):[...Z,j])}function V(j){const Z=Mf[j];Z&&T(Z)}const{items:W,total:ce,isLoading:ne,isPlaceholderData:he,error:fe,hasNextPage:z,isFetchingNextPage:ie,isFetchNextPageError:oe,fetchNextPage:ge}=fu(["my-assets",b,o,f,h,S,E,C],j=>Ac(b,{category:m.category,first:Bf,skip:j,search:E||void 0,rarities:I&&h.length?h:void 0,wearableCategories:o==="wearables"&&S?Bs[S]:void 0,emoteCategories:o==="emotes"&&S?Bs[S]:void 0,onlyOnSale:f==="on_sale"||void 0,sortBy:C}).then(Z=>({items:Z.assets,total:Z.total})),{enabled:!!b&&o!=="creations"}),le=ee.useMemo(()=>o==="wearables"||o==="emotes"?[...new Set(W.map(j=>j.contractAddress))]:[],[W,o]),{data:ye}=Gt({queryKey:["secondary-sale-state",le],enabled:le.length>0,queryFn:async()=>{const j=await Promise.all(le.map(async te=>[te,await Tc(te)])),Z={};for(const[te,ue]of j)for(const[je,ct]of Object.entries(ue))Z[`${te}-${je}`]=ct;return Z}}),Ce=j=>ye==null?void 0:ye[`${j.contractAddress}-${j.tokenId}`],_e=j=>!!Ce(j)||j.isOnSale,at=ee.useMemo(()=>f==="not_for_sale"?W.filter(j=>!_e(j)):W,[W,f,ye]),Ye=ee.useMemo(()=>ju(b),[b]),ar=!!e&&(o==="creations"||Ye!==null),{data:Ae,isLoading:Qa,isError:ec}=Gt({queryKey:["publishable-items",b],queryFn:()=>Pc(b,e.identity,{includeSoldOut:!0}),enabled:ar,staleTime:5*6e4,retry:!1});ee.useEffect(()=>{b&&Ae&&Tu(b,Ae.length)},[b,Ae]);const{data:$e,isPending:tc,isError:rc}=Gt({queryKey:["collection-sale-state",b],queryFn:()=>Cc(b),enabled:ar,staleTime:6e4}),Xe=j=>$e==null?void 0:$e[`${j.contractAddress}-${j.blockchainItemId}`],nc=ar&&tc&&!rc&&((Ae==null?void 0:Ae.length)??0)>0,cr=Qa||nc,sc=Math.min(12,Math.max(4,(Ye==null?void 0:Ye.count)??12)),ic=ee.useMemo(()=>Object.values($e??{}).some(j=>!!j.manaWei),[$e]),{data:ur}=Ic(ic),lr=j=>j?!j.manaWei||!ur?j.priceCredits:jc({manaWei:j.manaWei,priceCredits:j.priceCredits},ur):0,dr=Rc(),{data:dt}=Yd(b,dr&&o==="creations"),[oc,xs]=ee.useState(!1),[ac,cc]=ee.useState(void 0),fr=ee.useMemo(()=>{const j=new Map;for(const Z of Ae??[]){if(Z.remainingSupply<=0)continue;const te=$e==null?void 0:$e[`${Z.contractAddress}-${Z.blockchainItemId}`],ue=te!=null&&te.isOnSale?te.manaWei?"classic":"discounted":"unlisted",je=ue==="discounted",ct=Z.contractAddress.toLowerCase(),ht=j.get(ct)??{contractAddress:ct,name:Z.collectionName,listedCount:0,examplePriceCredits:null,items:[]};ht.items.push({key:`${ct}-${Z.blockchainItemId}`,name:Z.name,thumbnail:Z.thumbnail,priceCredits:je&&te?te.priceCredits:null,state:ue,remainingSupply:Z.remainingSupply}),je&&te&&(ht.listedCount+=1,ht.examplePriceCredits=Math.max(ht.examplePriceCredits??0,te.priceCredits)),j.set(ct,ht)}return[...j.values()].filter(Z=>Z.listedCount>0||Z.items.some(te=>te.state==="classic"))},[Ae,$e]),{count:uc}=hu(),kt=uc??0,Ot=ee.useMemo(()=>{let j=Ae??[];if(f==="on_sale"?j=j.filter(te=>{var ue;return(ue=Xe(te))==null?void 0:ue.isOnSale}):f==="not_for_sale"&&(j=j.filter(te=>{var ue;return!((ue=Xe(te))!=null&&ue.isOnSale)})),i==="credits"?j=j.filter(te=>{var ue,je;return!!((ue=Xe(te))!=null&&ue.isOnSale)&&!((je=Xe(te))!=null&&je.manaWei)}):i==="mana"&&(j=j.filter(te=>{var ue;return!!((ue=Xe(te))!=null&&ue.manaWei)})),E){const te=E.toLowerCase();j=j.filter(ue=>ue.name.toLowerCase().includes(te))}const Z=[...j];return k==="name"?Z.sort((te,ue)=>te.name.localeCompare(ue.name)):k==="cheapest"&&Z.sort((te,ue)=>lr(Xe(te))-lr(Xe(ue))),Z},[Ae,$e,f,i,E,k,ur]),lc=ee.useMemo(()=>{var Z;const j=new Map;for(const te of Ot){const ue=te.contractAddress.toLowerCase(),je=j.get(ue)??{contractAddress:ue,name:te.collectionName,listed:0,soldOut:0,items:[]};je.items.push(te),(Z=$e==null?void 0:$e[`${te.contractAddress}-${te.blockchainItemId}`])!=null&&Z.isOnSale&&(je.listed+=1),te.remainingSupply<=0&&(je.soldOut+=1),j.set(ue,je)}return[...j.values()]},[Ot,$e]),dc=ee.useMemo(()=>{const j={};for(const Z of Ae??[])j[Z.contractAddress.toLowerCase()]=Z.collectionName;return j},[Ae]),Is=ee.useMemo(()=>{const j=new Map;for(const Z of dt??[]){if(Z.status!=="active"&&Z.status!=="scheduled")continue;const te=Z.discount/1e4;for(const ue of Z.collections)j.set(ue.toLowerCase(),{status:Z.status,pct:te})}return j},[dt]),fc=ee.useMemo(()=>new Set(fr.map(j=>j.contractAddress.toLowerCase())),[fr]),Rs=fr.find(j=>j.contractAddress===ac);ee.useEffect(()=>{N!=="idle"||kt===0||mf(ia,b)||H("open")},[N,kt,b]);function _s(j){j&&yf(ia,b),H("closed")}if(!e)return p.jsxs(_c,{children:[p.jsx(gr,{testId:"my-items-signin",icon:_u,title:A("myAssets.signInTitle"),body:A("myAssets.signInBody"),cta:{label:A("storeSettings.signIn"),onClick:()=>n()},ctaVariant:"solid",fill:!0}),p.jsx(Kt,{message:t})]});const hc=o==="creations"?cr:ne||he,pc=o==="creations"?Ot.length:f==="not_for_sale"?at.length:ce,ft=[];if(f!=="all"&&ft.push({key:"status",label:f==="on_sale"?A("filter.onSale"):A("filter.notForSale"),onRemove:()=>r("all")}),o==="creations"&&i!=="all"&&ft.push({key:"price",label:A(es[i]),onRemove:()=>l("all")}),I)for(const j of br)h.includes(j)&&ft.push({key:`rarity-${j}`,label:Cs(j),onRemove:()=>G(j)});if(I&&S){const j=(js=(As=Jc.find(Z=>Z.key===ca[o]))==null?void 0:As.subs)==null?void 0:js.find(Z=>Z.key===S);ft.push({key:"sub",label:j?A(j.labelKey):S,onRemove:()=>D(null)})}function gc(){r("all"),l("all"),w([]),D(null)}const mc=p.jsxs(Gc,{children:[p.jsx(Xc,{title:A("myAssets.assetsHeading"),category:ca[o],subCategory:S,onCategory:V,onSub:D,onCollections:()=>T("creations"),collections:o==="creations",extraLabelKey:"myAssets.sectionCreations",hideAll:!0}),I?p.jsxs(p.Fragment,{children:[p.jsx(wr,{}),p.jsx(Er,{title:A("assets.rarity"),open:_,onToggle:()=>M(j=>!j),summary:x,headerTestId:"sidebar-section-toggle",children:p.jsx(Wc,{"data-testid":"rarity-filter",children:br.map(j=>{const Z=h.includes(j);return p.jsxs(Kc,{type:"button",selected:Z,"aria-pressed":Z,onClick:()=>G(j),"data-testid":"rarity-filter-check",children:[p.jsx(Yc,{color:v.rarities[j],children:Z?p.jsx(Zc,{name:"check","aria-hidden":!0}):null}),p.jsx(Qc,{selected:Z,children:j})]},j)})})})]}):null,p.jsx(wr,{}),p.jsx(Er,{title:A("filter.status"),open:L,onToggle:()=>g(j=>!j),summary:O,children:[["all",A("filter.statusAll")],["on_sale",A("filter.onSale")],["not_for_sale",A("filter.notForSale")]].map(([j,Z])=>p.jsxs(Ls,{children:[p.jsx(Ns,{type:"radio",name:"myassets-status",checked:f===j,onChange:()=>r(j)}),p.jsx(Ms,{children:Z})]},j))}),o==="creations"?p.jsxs(p.Fragment,{children:[p.jsx(wr,{}),p.jsx(Er,{title:A("filter.salePrice"),open:$,onToggle:()=>Y(j=>!j),summary:y,children:Lf.map(j=>p.jsxs(Ls,{children:[p.jsx(Ns,{type:"radio",name:"myassets-price",checked:i===j,onChange:()=>l(j),"data-testid":`price-filter-${j}`}),p.jsxs(Ms,{children:[Nf(j),A(es[j])]})]},j))})]}):null]});return p.jsxs(eu,{"data-testid":"my-assets",children:[U?p.jsx(tu,{onClick:()=>B(!1),"aria-hidden":!0}):null,p.jsxs(ru,{"data-open":U||void 0,"data-testid":"my-assets-sidebar",children:[p.jsxs(nu,{children:[p.jsx(su,{children:A("assets.filters")}),p.jsx(iu,{onClick:()=>B(!1),"aria-label":A("assets.closeFilters"),children:"✕"})]}),p.jsx(ou,{children:mc}),p.jsx(au,{children:p.jsx(cu,{type:"button",onClick:()=>B(!1),children:A("assets.showItems")})})]}),p.jsxs(uu,{children:[kt>0&&!q?p.jsx(xf,{count:kt,onDismiss:()=>J(!0)}):null,p.jsx(lu,{sort:k,onSort:X,sortOptions:ts,total:pc,loading:hc,query:E,onOpenFilters:()=>B(!0),chips:ft,onClearChips:gc,search:p.jsxs(wf,{children:[p.jsx(Ef,{name:"search","aria-hidden":!0}),p.jsx(Sf,{type:"search",value:K,placeholder:A("myAssets.searchPlaceholder"),"aria-label":A("myAssets.searchPlaceholder"),onChange:j=>R(j.target.value)}),K?p.jsx(vf,{type:"button","aria-label":A("myAssets.clearSearch"),onClick:()=>R(""),children:p.jsx($f,{name:"close","aria-hidden":!0})}):null]})}),(o==="creations"?ec:fe)?p.jsx(Kt,{message:A("myAssets.ownedError"),testId:"my-assets-error"}):null,o==="creations"?p.jsxs(p.Fragment,{children:[dr&&e&&dt&&dt.length>0?p.jsxs(kf,{"data-testid":"creator-sales-panel",children:[p.jsx(Of,{children:A("creatorSale.salesTitle")}),p.jsx(Kd,{sales:dt,session:e,names:dc})]}):null,oc&&e&&Rs?p.jsx(Md,{session:e,collection:Rs,onClose:()=>xs(!1)}):null,cr?p.jsx(Qn,{"data-testid":"grid",children:p.jsx(mr,{count:sc})}):lc.map(j=>p.jsxs(If,{"data-testid":"creation-group",children:[p.jsxs(Rf,{children:[p.jsx(jf,{children:p.jsx(os,{contractAddress:j.contractAddress})}),p.jsxs(Tf,{children:[p.jsx(Cf,{"data-testid":"creation-group-name",children:j.name}),p.jsxs(Pf,{"data-testid":"creation-group-count",children:[A("myAssets.itemsCount",{count:j.items.length}),j.listed>0?` · ${A("myAssets.groupOnSale",{count:j.listed})}`:"",j.soldOut>0?` · ${A("myAssets.groupSoldOut",{count:j.soldOut})}`:""]})]}),dr&&e&&fc.has(j.contractAddress)?Is.has(j.contractAddress)?(()=>{const Z=Is.get(j.contractAddress);return p.jsx(_f,{"data-heat":Rt(Z.pct),"data-testid":"creation-group-sale-state",children:A(Z.status==="scheduled"?"creatorSale.groupScheduled":"creatorSale.groupActive",{pct:Z.pct})})})():p.jsx(Af,{variant:"purple",size:"sm","data-testid":"creation-group-sale",onClick:()=>{cc(j.contractAddress),xs(!0)},children:A("creatorSale.putOnSale")}):null]}),p.jsx(Qn,{"data-testid":"grid",children:j.items.map(Z=>{const te=Xe(Z);return p.jsx(yr,{item:Hf(Z,lr(te),b??"",te),mode:"manage-link"},`${Z.contractAddress}-${Z.blockchainItemId}`)})})]},j.contractAddress)),!cr&&Ot.length===0?p.jsx(gr,{testId:"creations-empty",icon:Iu,title:A("myAssets.emptyCreationsTitle"),body:A("myAssets.nothingToPublish")}):null]}):p.jsxs(p.Fragment,{children:[p.jsxs(Qn,{"data-testid":"grid",children:[ne||he?p.jsx(mr,{count:12}):at.map(j=>o==="names"?p.jsx(yr,{item:{...ua(j),category:"ens"},mode:"manage-link",manageHref:qf(j.name)},j.id):p.jsx(yr,{item:ua(j,Ce(j)),mode:"manage-link"},j.id)),ie?p.jsx(mr,{count:6}):null]}),f!=="not_for_sale"?p.jsx(Vc,{hasNextPage:z,isFetching:ie,isError:oe,onLoadMore:()=>void ge()}):null,!ne&&!he&&at.length===0?p.jsx(gr,{testId:"owned-empty",icon:f==="on_sale"?pu:Ru,title:o==="names"?A("myAssets.emptyNamesTitle"):A("myAssets.emptyOwnedTitle"),body:o==="names"?A("myAssets.namesEmpty"):A("myAssets.ownedEmpty"),cta:o!=="names"?{label:A("myAssets.emptyBrowse"),to:"/items"}:void 0}):null]})]}),N==="open"?p.jsx(pf,{onClose:_s,onConfirm:j=>{_s(j),d("/import")}}):null]})}export{gh as MyAssets};
|
|
1142
|
-
//# sourceMappingURL=MyAssets-
|
|
1142
|
+
//# sourceMappingURL=MyAssets-DC5W_tsB.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as c,j as t}from"./react-
|
|
1
|
+
import{r as c,j as t}from"./react-BDtnT4_L.js";import{s as a,d as b,H as F,c as s,W as l,X as j,Y as w,Z as E,$ as g,a0 as k,a1 as _}from"./index-CyVGgMkK.js";import{L as $}from"./LoadMore-D1ApwWXh.js";import{E as I}from"./ErrorNotice-CehMoY9b.js";import{G as M}from"./grid.styles-BRtgKeAE.js";import"./dcl-schemas-BfFZv5Pe.js";import"./sentry-DJtBihbA.js";import"./ethers-rfaBand6.js";import"./intl-AKLEHPeO.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new r.Error().stack;i&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[i]="ae9efb32-b7ac-4f7b-9e04-dd3222ae8eda",r._sentryDebugIdIdentifier="sentry-dbid-ae9efb32-b7ac-4f7b-9e04-dd3222ae8eda")}catch{}})();const{colors:o,radius:L}=b,S=a.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: baseline;
|
|
4
4
|
gap: 12px;
|
|
@@ -52,4 +52,4 @@ import{r as c,j as t}from"./react-DaBuTM6Q.js";import{s as a,d as b,H as F,c as
|
|
|
52
52
|
flex-direction: column;
|
|
53
53
|
align-items: center;
|
|
54
54
|
`,R="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",x=24,T=20;function q(){F({title:s("nav.myFavorites"),noindex:!0});const r=l(e=>Object.values(e.items)),i=l(e=>e.status),p=l(e=>e.retry),[u,y]=c.useState(x),{data:m,isPending:h,isError:v}=j(),f=r.some(e=>!!e.manaWei),n=c.useMemo(()=>r.map(e=>({...e,priceCredits:w(e,m)})),[r,m]),C=c.useMemo(()=>n.slice(0,T).map(e=>e.contractAddress&&e.itemId?`${e.contractAddress.toLowerCase()}-${e.itemId}`:null).filter(e=>e!==null),[n]);if(i==="error")return t.jsxs(B,{"data-testid":"favorites-error",children:[t.jsx(I,{message:s("myFavorites.loadError")}),t.jsx(H,{type:"button",onClick:p,children:s("myFavorites.tryAgain")})]});if(i==="ready"&&n.length===0)return t.jsxs(P,{children:[t.jsx(E,{testId:"favorites-empty",icon:R,title:s("myFavorites.emptyTitle"),body:s("myFavorites.emptyBody"),cta:{label:s("myFavorites.emptyCta"),to:"/items"}}),t.jsx(g,{title:s("myFavorites.suggestedTitle"),surface:"favorites"})]});const d=i==="loading"||h&&f;return t.jsxs("section",{children:[t.jsxs(S,{children:[t.jsx(D,{children:s("nav.myFavorites")}),d?null:t.jsx(G,{children:s("myFavorites.itemCount",{count:n.length})})]}),v&&f?t.jsx(A,{children:s("assets.marketUnavailable")}):null,t.jsx(M,{"data-testid":d?"favorites-loading":void 0,children:d?t.jsx(k,{count:8}):n.slice(0,u).map(e=>t.jsx(_,{item:e},e.id))}),t.jsx($,{hasNextPage:!d&&u<n.length,isFetching:!1,onLoadMore:()=>y(e=>e+x)}),d?null:t.jsx(g,{title:s("myFavorites.suggestedTitle"),surface:"favorites",exclude:C})]})}export{q as MyFavorites};
|
|
55
|
-
//# sourceMappingURL=MyFavorites-
|
|
55
|
+
//# sourceMappingURL=MyFavorites-VcdUYwK3.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{p as ee}from"./sentry-
|
|
1
|
+
import{p as ee}from"./sentry-DJtBihbA.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-DNxN28kF.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as o,L as r}from"./react-
|
|
1
|
+
import{j as o,L as r}from"./react-BDtnT4_L.js";import{d as i,s as n,I as d,H as c,c as e,G as a}from"./index-CyVGgMkK.js";import"./dcl-schemas-BfFZv5Pe.js";import"./sentry-DJtBihbA.js";import"./ethers-rfaBand6.js";import"./intl-AKLEHPeO.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new t.Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="7f23286c-b683-4187-9c87-86b284cb5491",t._sentryDebugIdIdentifier="sentry-dbid-7f23286c-b683-4187-9c87-86b284cb5491")}catch{}})();const l=n.div`
|
|
2
2
|
min-height: 52vh;
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -15,4 +15,4 @@ import{j as o,L as r}from"./react-DaBuTM6Q.js";import{d as i,s as n,I as d,H as
|
|
|
15
15
|
margin: 0;
|
|
16
16
|
color: ${i.colors.gray4};
|
|
17
17
|
`;function I(){return c({title:e("seo.notFound.title"),noindex:!0}),o.jsxs(l,{"data-testid":"notfound",children:[o.jsx(u,{name:"cart",size:44}),o.jsx(f,{children:e("notFound.title")}),o.jsx(p,{children:e("notFound.body")}),o.jsx(a,{as:r,to:"/items",variant:"white",children:e("notFound.cta")})]})}export{I as NotFound,I as default};
|
|
18
|
-
//# sourceMappingURL=NotFound-
|
|
18
|
+
//# sourceMappingURL=NotFound-Bh3Yk2Sb.js.map
|