@dcl/shop 1.9.0 → 1.9.1-32347078472.commit-6fd78df
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-DBPUImIR.js → Activity-B3Ur3SbH.js} +6 -6
- package/_assets/{AnimatedBackground-Bg_SBj_k.js → AnimatedBackground-B2ieJRyp.js} +2 -2
- package/_assets/{Assets-sYJOQIp2.js → Assets-Cij0pDEO.js} +3 -3
- package/_assets/{Authorizations-CFgFqnMC.js → Authorizations-Bvn8WhpO.js} +2 -2
- package/_assets/{Cart-CQUe4oxA.js → Cart-DrZKAS7S.js} +2 -2
- package/_assets/{CircularProgress-BNyAzlW4.js → CircularProgress-Li1YEYc4.js} +2 -2
- package/_assets/{Collection-BRVhqvLd.js → Collection-DqGijhfE.js} +2 -2
- package/_assets/{CollectionCarousel-BovzvzXj.js → CollectionCarousel-CVZnVEEU.js} +3 -3
- package/_assets/{Confetti-B6m6dtjF.js → Confetti-O1rxrM7O.js} +4 -4
- package/_assets/{ConstantsUtil-DKdGq3N0.js → ConstantsUtil-CnMocnxx.js} +2 -2
- package/_assets/{ContentClient-Dbyl7e49.js → ContentClient-C24qMiht.js} +2 -2
- package/_assets/{Creator-DAA2xafw.js → Creator-CAie9F9V.js} +2 -2
- package/_assets/{DeploymentBuilder-B67LRmWd.js → DeploymentBuilder-1WlbUEAU.js} +2 -2
- package/_assets/{EmotePlaybackBar-C-xjUo7n.js → EmotePlaybackBar-Bcsz4_2P.js} +3 -3
- package/_assets/{ErrorNotice-BQLofOGT.js → ErrorNotice-BGyE4ydN.js} +2 -2
- package/_assets/{ExchangeController-r7cTCAgN.js → ExchangeController-C7xkZHep.js} +2 -2
- package/_assets/{Faq-BTo931EF.js → Faq-D_VGw0ng.js} +2 -2
- package/_assets/{GetCredits-ONFf5xnv.js → GetCredits-Bdjg_8TH.js} +8 -8
- package/_assets/{Grow-CvUT_ozs.js → Grow-CYnolJsR.js} +2 -2
- package/_assets/{HelpersUtil-DbJvbu16.js → HelpersUtil-Chox_JTz.js} +2 -2
- package/_assets/{ItemDetail-BX-oZsXj.js → ItemDetail-DR_-rynm.js} +2 -2
- package/_assets/{LoadMore-Dd98Y7bI.js → LoadMore-B8H-cA3Y.js} +2 -2
- package/_assets/{ManaPricingBanner.styles-Cl6UCi5q.js → ManaPricingBanner.styles-3v0VsNxT.js} +2 -2
- package/_assets/{MyAssets-CDGU95R0.js → MyAssets-9m3VH3y_.js} +2 -2
- package/_assets/{MyFavorites-BWmwnaQL.js → MyFavorites-CwSiqGTs.js} +2 -2
- package/_assets/{NetworkUtil-C_JoaG3I.js → NetworkUtil-lcxMKGH5.js} +2 -2
- package/_assets/{NotFound-DDPdRiYB.js → NotFound-9-n_lLVs.js} +2 -2
- package/_assets/{NotificationsBell-Bpu9bicH.js → NotificationsBell-DBhltxUV.js} +2 -2
- package/_assets/{OutfitDetail-DK_Ym4mZ.js → OutfitDetail-CK66OjhO.js} +2 -2
- package/_assets/{OutfitPreview-DPBW6Nn2.js → OutfitPreview-0Quh1_Ii.js} +2 -2
- package/_assets/{OutfitStudio-BXS0_XOW.js → OutfitStudio-CoKjf72l.js} +2 -2
- package/_assets/{StoreSettings-X1tuW03O.js → StoreSettings-C28rDrBj.js} +2 -2
- package/_assets/{Success-CoBNX6FG.js → Success-BlMfO4VE.js} +2 -2
- package/_assets/{SwapController-DBrjrpgy.js → SwapController-BgNXj62z.js} +2 -2
- package/_assets/{TradeService-DHHqig-L.js → TradeService-CaTdLPU9.js} +2 -2
- package/_assets/{W3MFrameProviderSingleton-DqJPXHTM.js → W3MFrameProviderSingleton-CW_wCSb0.js} +4 -4
- package/_assets/{WebCryptoP256-Tr_wF40K.js → WebCryptoP256-Cjs6z2kn.js} +2 -2
- package/_assets/{authorizations-D1MsXbqr.js → authorizations-DG3pE_Ra.js} +2 -2
- package/_assets/{basic-C4em4Ceg.js → basic-CXwQwXo0.js} +2 -2
- package/_assets/{biconomy-Bx7jEf8A.js → biconomy-Da8VwiKn.js} +2 -2
- package/_assets/{browseLayout.styles-CBAy8GwQ.js → browseLayout.styles-CjADkm7v.js} +2 -2
- package/_assets/{browser-BdgS57KU.js → browser-D7Kn3ZPZ.js} +2 -2
- package/_assets/{browser-ponyfill-C9mImf_3.js → browser-ponyfill-B0kQw77h.js} +2 -2
- package/_assets/{builder-BSngHe-a.js → builder-BdTz7vUG.js} +2 -2
- package/_assets/{buy-6wfeB6ms.js → buy-Canh0kDW.js} +2 -2
- package/_assets/{buy-gasless-D4SuRgKi.js → buy-gasless-C6uGx2gl.js} +2 -2
- package/_assets/{categories-Cbh8Mk7d.js → categories-Da9Kxo6t.js} +2 -2
- package/_assets/{ccip-4YIHpVdS.js → ccip-Bl1lsX1U.js} +2 -2
- package/_assets/{ccip-0OOSwodK.js → ccip-DPZCoSlk.js} +2 -2
- package/_assets/{chains-6ECf1IlM.js → chains-pGuw_Rzw.js} +2 -2
- package/_assets/collectionPage.styles-PiiSDY3W.js +40 -0
- package/_assets/{common-B2tNlV71.js → common-B6dEosvu.js} +2 -2
- package/_assets/{controller-CHdmu3VY.js → controller-CegEnKYK.js} +3 -3
- package/_assets/{core-DcoA7ETW.js → core-oTqh7r_c.js} +5 -5
- package/_assets/{createSvgIcon-I5Rjl2lI.js → createSvgIcon-CGyVlTVC.js} +2 -2
- package/_assets/{custom-BCV3nNfc.js → custom-CS-c_wJn.js} +2 -2
- package/_assets/{data-capture-BcdoZ3Cm.js → data-capture-D5wtgWXS.js} +2 -2
- package/_assets/{dcl-schemas-B3TcvwbH.js → dcl-schemas-dQiKjZkv.js} +2 -2
- package/_assets/{decimals-BPsXORMg.js → decimals-C8h38AFk.js} +2 -2
- package/_assets/{decimals-SzQJygso.js → decimals-CP_Ym_nf.js} +2 -2
- package/_assets/{detectExtension-CFGBz1wF.js → detectExtension-Ch1bo9M0.js} +2 -2
- package/_assets/{disposePreview-Drmuk_q3.js → disposePreview-CN0E69MJ.js} +2 -2
- package/_assets/{email-DfSz3zTn.js → email-CcF9N0Mh.js} +2 -2
- package/_assets/{embedded-wallet-Bo0q1t0L.js → embedded-wallet-C3Kp3NmO.js} +2 -2
- package/_assets/{emotion-styled.browser.esm-CFytwRzz.js → emotion-styled.browser.esm-EhGAEcyw.js} +2 -2
- package/_assets/{engine-C-JuPyx0.js → engine-C6by9kx9.js} +2 -2
- package/_assets/{errors-7wSyxJtI.js → errors-BpiEIy2t.js} +2 -2
- package/_assets/{estimate-l1-fee-By09JgQ4.js → estimate-l1-fee-DTtzsWBz.js} +2 -2
- package/_assets/{eth_estimateGas-aihDh11Z.js → eth_estimateGas-CNeltMGR.js} +2 -2
- package/_assets/{eth_getStorageAt-CUyCHSHS.js → eth_getStorageAt-BUznwYyR.js} +2 -2
- package/_assets/{eth_getTransactionCount-CE-LhKMI.js → eth_getTransactionCount-kqYKXGoK.js} +2 -2
- package/_assets/{ethereum-RGXoaTB8.js → ethereum-BiIZ_avY.js} +2 -2
- package/_assets/{ethers-DToHvD0K.js → ethers-CQ_qCABt.js} +2 -2
- package/_assets/{events-CQKixVTr.js → events-BZM305XI.js} +2 -2
- package/_assets/{execute-CXrkeJbB.js → execute-CdOXMamA.js} +3 -3
- package/_assets/{extractIPFS-CzA01Y4B.js → extractIPFS-B-jJOg2P.js} +2 -2
- package/_assets/{features-CFq2C--5.js → features-tDHaCP8p.js} +2 -2
- package/_assets/{fetchTokenMetadata-B8I4aQcs.js → fetchTokenMetadata-C0yGzAEB.js} +3 -3
- package/_assets/{field.styles-CMQgV2Rw.js → field.styles-vBRBAXCO.js} +2 -2
- package/_assets/{fortmatic-CPaDfn5W.js → fortmatic-Cgkx7btM.js} +2 -2
- package/_assets/{get-bytecode-CK2vxCAD.js → get-bytecode-DuMiiqye.js} +2 -2
- package/_assets/{get-ecosystem-wallet-info-CV7OVl6G.js → get-ecosystem-wallet-info-CjAasvtj.js} +2 -2
- package/_assets/{getBalance-xgft8YLo.js → getBalance-CmUg97sf.js} +3 -3
- package/_assets/{getInstalledModules-Bs-34q3t.js → getInstalledModules-CksnfGdn.js} +2 -2
- package/_assets/{getNFT-CAZtsncX.js → getNFT-C_jqd9qq.js} +2 -2
- package/_assets/{getNFT-Dgydr9WQ.js → getNFT-DRvYfxn0.js} +3 -3
- package/_assets/{grid.styles-CGgnMAIZ.js → grid.styles-C6ztZ_gW.js} +2 -2
- package/_assets/{hashTypedData-CXcm8c0y.js → hashTypedData-BnmZ_i8-.js} +2 -2
- package/_assets/{hashTypedData-Cmhro_Au.js → hashTypedData-DwRBa2yl.js} +2 -2
- package/_assets/{in-app-Bnr1ZUnl.js → in-app-CermU1V-.js} +2 -2
- package/_assets/{in-app-wallet-calls-BwhXVQXS.js → in-app-wallet-calls-DhGDhu5W.js} +2 -2
- package/_assets/{index-0E49u8Gl.js → index-1_plzFrQ.js} +2 -2
- package/_assets/{index-B-s9Cjlx.js → index-1axSR9FF.js} +2 -2
- package/_assets/{index-DsaKZJgI.js → index-1jaPj0M9.js} +2 -2
- package/_assets/{index-BeTPcmP-.js → index-7gJO9gbk.js} +2 -2
- package/_assets/{index-DuqKJaac.js → index-B01h6DI5.js} +2 -2
- package/_assets/{index-D-mInrAY.js → index-B0v9cWut.js} +2 -2
- package/_assets/{index-BM-XtP6e.js → index-B20kS6rt.js} +2 -2
- package/_assets/{index-CT3h435_.js → index-B24NRxqH.js} +2 -2
- package/_assets/{index-CvTf1dip.js → index-B74WWlpo.js} +4 -4
- package/_assets/{index-Bz9mHkwn.js → index-B7PhszZJ.js} +2 -2
- package/_assets/{index-CCS25qw0.js → index-B9x4ETZ3.js} +2 -2
- package/_assets/{index-CaV5eEsp.js → index-BEFTFKUm.js} +3 -3
- package/_assets/{index-D9hIggy2.js → index-BI-fgcrS.js} +2 -2
- package/_assets/{index-BXA13Adb.js → index-BICpaciQ.js} +2 -2
- package/_assets/{index-DwskHteW.js → index-BRr8HQ_m.js} +3 -3
- package/_assets/{index-DbcvKsX1.js → index-BTz2PZq8.js} +2 -2
- package/_assets/{index-DHwBpJcE.js → index-BXICTYLN.js} +2 -2
- package/_assets/{index-eFwvK7ZQ.js → index-Bl3TZQ5u.js} +2 -2
- package/_assets/{index-C9dub8OC.js → index-BmCLYb_E.js} +2 -2
- package/_assets/{index-CDzpeq0b.js → index-BmIF5kA3.js} +2 -2
- package/_assets/{index-DySZUSuQ.js → index-BnmsJ20W.js} +2 -2
- package/_assets/{index-CaylNkxV.js → index-Bp5lJL4E.js} +2 -2
- package/_assets/{index-_VS9AuJ5.js → index-BqXqTtBQ.js} +2 -2
- package/_assets/{index-nxFaa_nn.js → index-BvzEvcaE.js} +2 -2
- package/_assets/{index-DMKHPjGW.js → index-BwXf-bFn.js} +2 -2
- package/_assets/{index-BnrHmdtA.js → index-By_Q7ZkV.js} +2 -2
- package/_assets/{index-BagL89F2.js → index-Bz9gq0V3.js} +2 -2
- package/_assets/{index-BZuvFWVA.js → index-C-eizA7U.js} +2 -2
- package/_assets/{index-DHFD8iid.js → index-C4KTX-D8.js} +2 -2
- package/_assets/{index-D8RD5-xZ.js → index-C6Puyb_s.js} +2 -2
- package/_assets/{index-FCMWTGYX.js → index-C6qMfplf.js} +2 -2
- package/_assets/{index-Z2M9wrxx.js → index-CAyGt-H1.js} +2 -2
- package/_assets/{index-Dzcx49SF.js → index-CB-tj37v.js} +2 -2
- package/_assets/{index-Di-4jy6c.js → index-CFMD7lw4.js} +2 -2
- package/_assets/{index-BJudNiH7.js → index-CHGMexeX.js} +2 -2
- package/_assets/{index-CgzrvrNO.js → index-CM-SmeDe.js} +2 -2
- package/_assets/{index-D638IbeZ.js → index-CWxF26ss.js} +2 -2
- package/_assets/{index-BA_H-ZwI.js → index-Cc7-mCfi.js} +2 -2
- package/_assets/{index-D55T8f67.js → index-Ce_MH3Ou.js} +2 -2
- package/_assets/{index-CeDl4q1r.js → index-ChsotZJy.js} +2 -2
- package/_assets/{index-8bp5-naq.js → index-Chstbar0.js} +2 -2
- package/_assets/{index-CytJfvKu.js → index-CiIbZXQB.js} +2 -2
- package/_assets/{index-CyqWD9Fe.js → index-CmWaC32M.js} +2 -2
- package/_assets/{index-CiEaVZIT.js → index-Cp8lXuGT.js} +2 -2
- package/_assets/{index-_eZi8Blx.js → index-D2EqszFh.js} +2 -2
- package/_assets/{index-dfR3XPLy.js → index-DGBu48Km.js} +2 -2
- package/_assets/{index-wPGuAe9a.js → index-DIzBObt9.js} +2 -2
- package/_assets/{index-C23Ni51N.js → index-DQ0VTInt.js} +2 -2
- package/_assets/{index-PKZcoc3r.js → index-DXJMqHrx.js} +2 -2
- package/_assets/{index-Cf6MS_zi.js → index-DaZLzU0w.js} +2 -2
- package/_assets/{index-DA-mqTVN.js → index-Dcts-V1v.js} +3 -3
- package/_assets/{index-Db-pjXNT.js → index-Dgsq9ZDq.js} +2 -2
- package/_assets/{index-BNIkiUkB.js → index-Dhp8jJc3.js} +2 -2
- package/_assets/{index-TW2BXc3m.js → index-DkGhtY8z.js} +2 -2
- package/_assets/{index-ljxMbmb-.js → index-DkZVU_zh.js} +2 -2
- package/_assets/{index-BLvTgPPY.js → index-DkvsywiT.js} +12 -12
- package/_assets/{index-DQLcqVlb.js → index-DnqX_Def.js} +2 -2
- package/_assets/{index-AtzMVSJI.js → index-Dv384wbW.js} +2 -2
- package/_assets/{index-Dmrp4a0w.js → index-F3yEN77j.js} +4 -4
- package/_assets/{index-B960BbxI.js → index-GIrbuizT.js} +2 -2
- package/_assets/{index-B7SOoljA.js → index-Ix2H8XUp.js} +3 -3
- package/_assets/{index-B7HMNOma.js → index-TTnLLMpw.js} +2 -2
- package/_assets/{index-BYKEYRYq.js → index-aRbIDABT.js} +2 -2
- package/_assets/{index-CMisjKcz.js → index-jg5RRpl_.js} +2 -2
- package/_assets/{index-C0IeFOmc.js → index-mJjG0eVU.js} +2 -2
- package/_assets/{index-Cwt9Zm6l.js → index-t6A6OPhl.js} +2 -2
- package/_assets/{index-CmXB7cdP.js → index-tBC1iXpB.js} +4 -4
- package/_assets/{index.es-CWJ8eMNg.js → index.es-B1KquLos.js} +2 -2
- package/_assets/{index.es-BG4NwWK9.js → index.es-C1Q_3dWG.js} +2 -2
- package/_assets/{index.es-DOJbNnbs.js → index.es-CKhVCdN_.js} +2 -2
- package/_assets/{index.es-Sy9Wryor.js → index.es-Cl4n0_18.js} +5 -5
- package/_assets/items-empty-CqulMWmP.js +2 -0
- package/_assets/{jump-B3Fq6y8f.js → jump-Cpq3lMXV.js} +2 -2
- package/_assets/{linkAccount-BtAb7eSx.js → linkAccount-BiaXu5-F.js} +2 -2
- package/_assets/{localBatchGatewayRequest-ByOqH6ox.js → localBatchGatewayRequest-Bjsyk6mP.js} +2 -2
- package/_assets/{native-D0QxjwFi.js → native-CRY3YDPQ.js} +2 -2
- package/_assets/{networks-R5gUhcw3.js → networks-NqKOaUGv.js} +2 -2
- package/_assets/{onramp-Bh9uVUTf.js → onramp-sA50SZHs.js} +2 -2
- package/_assets/{openzeppelin-DPKhH51u.js → openzeppelin-oNIjyiQj.js} +2 -2
- package/_assets/{ownerOf-BmNN-HZv.js → ownerOf-DzBOeGvP.js} +2 -2
- package/_assets/{parseNft-BoKhIW_L.js → parseNft-CeCSqAiM.js} +3 -3
- package/_assets/{parseSignature-C2lUdPUw.js → parseSignature-DaBVKXd_.js} +4 -4
- package/_assets/{parseSignature-CH6Ju48e.js → parseSignature-mAxoNc1a.js} +2 -2
- package/_assets/{passkeys-BqPkrIDi.js → passkeys-CjtDPVdF.js} +2 -2
- package/_assets/{pay-with-exchange-Vybd_uJF.js → pay-with-exchange-VDM-J9Ux.js} +2 -2
- package/_assets/{prepare-contract-call-Dctf7ww5.js → prepare-contract-call-CVdKW0Wj.js} +2 -2
- package/_assets/{qr-overlay-B7PesP0J.js → qr-overlay-CuVawdxk.js} +4 -4
- package/_assets/{react-DW39N_gE.js → react-BJ9otK4B.js} +2 -2
- package/_assets/{receive-DeOfYdDW.js → receive-CmUJNwTK.js} +2 -2
- package/_assets/{resolveImplementation-Dsjdmxvk.js → resolveImplementation-4kyOyXZj.js} +2 -2
- package/_assets/{resume-buy-C6HtCWfT.js → resume-buy-DboyyrzK.js} +2 -2
- package/_assets/{rpc-BpfftZD6.js → rpc-6EX2a2Zl.js} +2 -2
- package/_assets/{sales-empty-Cuevajq2.js → sales-empty-D6E0Ciia.js} +2 -2
- package/_assets/{search-empty-CzgznuOW.js → search-empty-Dv3Dntut.js} +2 -2
- package/_assets/{secp256k1-CavhGniN.js → secp256k1-Bqf3XCB0.js} +2 -2
- package/_assets/{secp256k1-CN0_WmoL.js → secp256k1-Dj6kDpyD.js} +2 -2
- package/_assets/{secp256k1-B6bxQpxa.js → secp256k1-NPbZJk2p.js} +2 -2
- package/_assets/{send-DiQ6219T.js → send-C5zhWkdR.js} +2 -2
- package/_assets/{send-batch-transaction-Cf4Vthe6.js → send-batch-transaction-DGra_7aR.js} +2 -2
- package/_assets/{send-eip712-transaction-Ss1Sh2uI.js → send-eip712-transaction-CXKgr5Y_.js} +3 -3
- package/_assets/{send-gasless-transaction-ByGzlL3a.js → send-gasless-transaction-CeWg6mlf.js} +3 -3
- package/_assets/{send-transaction-CNOyQ5NB.js → send-transaction-CEylozQg.js} +3 -3
- package/_assets/{sendMetaTransaction-CZkFsiF6.js → sendMetaTransaction-CjSg1CLo.js} +2 -2
- package/_assets/{sendRawTransaction-CZzFQ13N.js → sendRawTransaction-DvPllr2w.js} +4 -4
- package/_assets/{sentry-7PhYXfgO.js → sentry-BKNqu5k2.js} +3 -3
- package/_assets/{serializeTransaction-BMGF1AiX.js → serializeTransaction-CX44CRrn.js} +2 -2
- package/_assets/{session-proposal-D0VJkVMU.js → session-proposal-BNfbASjk.js} +2 -2
- package/_assets/{session-request-Cg0ePVoP.js → session-request-sCAO5PPc.js} +3 -3
- package/_assets/{sha256-C561VWBc.js → sha256-DqaTm3xj.js} +2 -2
- package/_assets/{signing-DUwlZBS7.js → signing-Cvf-U-NY.js} +4 -4
- package/_assets/{skeleton.styles-GTIVlD_g.js → skeleton.styles-BwxykyN6.js} +2 -2
- package/_assets/{socials-CdC_chST.js → socials-D6HENDDd.js} +2 -2
- package/_assets/{styled-DcGCfAHk.js → styled-Bkmqq4eH.js} +2 -2
- package/_assets/{swaps-DQqPLJ9O.js → swaps-C8WcVOWs.js} +2 -2
- package/_assets/{thirdweb-BkSVIJK1.js → thirdweb-3aIJ7CDk.js} +4 -4
- package/_assets/{to-serializable-transaction-B_YSWBlf.js → to-serializable-transaction-DnisUJFN.js} +3 -3
- package/_assets/{totalSupply-Cl44qXYm.js → totalSupply-D-Netl7b.js} +2 -2
- package/_assets/{transaction-Cam-rpCU.js → transaction-CFTtmwuP.js} +2 -2
- package/_assets/{transactionReceipt-BAGZMzr7.js → transactionReceipt-BPc-mc1v.js} +2 -2
- package/_assets/{transactions-wX4Ji3cN.js → transactions-9q5bjutL.js} +2 -2
- package/_assets/{useCreditPacks-R2u3C7TB.js → useCreditPacks-CIV8XIJK.js} +2 -2
- package/_assets/{useInfiniteGrid-Djj1BnVK.js → useInfiniteGrid-D3UFqEMH.js} +2 -2
- package/_assets/{useStore-Bsv5Dl1T.js → useStore-BthkKcWa.js} +3 -3
- package/_assets/{useTheme-BN79b_we.js → useTheme-DDdkg_K3.js} +2 -2
- package/_assets/{utils-CWtC64SZ.js → utils-Dbmr4uXy.js} +2 -2
- package/_assets/{verifyHash-iz346HoF.js → verifyHash-hpoSPL39.js} +2 -2
- package/_assets/{w3m-modal-D7F_FFIj.js → w3m-modal-DTg3JEdf.js} +2 -2
- package/_assets/{w3m-modal-Di9N0KXJ.js → w3m-modal-Dq5itanf.js} +2 -2
- package/_assets/{wait-for-tx-receipt-DfopCFF9.js → wait-for-tx-receipt-BGQJ8t17.js} +2 -2
- package/_assets/{wallets-C2ucqOmM.js → wallets-BbwUdw48.js} +6 -6
- package/_assets/{web-connector-BdK64WKE.js → web-connector-C1NBiIxN.js} +4 -4
- package/_assets/{writeContract-DxziVbXE.js → writeContract-D4eiKbqi.js} +2 -2
- package/_assets/{zora-sepolia-BENghxOR.js → zora-sepolia-Bhd9l0LK.js} +2 -2
- package/_assets/{zoraTestnet-CpwOt7FB.js → zoraTestnet-lKdQear1.js} +2 -2
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/collectionPage.styles-D8EQZXnJ.js +0 -40
- package/_assets/items-empty-CpBYkpVZ.js +0 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{b7 as ot,bh as Re,b9 as te,ba as Xt,cw as Gr,aQ as Ur,ak as Oe,ax as yt,aR as de,aU as Lr,cx as Dr,ao as Cr,z as $r,y as Hr,x as Vr,az as Rr,cy as jr,cz as Fr,aD as zr,aF as _r}from"./sendRawTransaction-CZzFQ13N.js";import{e as Tr}from"./hashTypedData-Cmhro_Au.js";import{ag as ae,af as z,aj as Nr,B as I,a3 as un,a7 as qe,am as kr}from"./NetworkUtil-C_JoaG3I.js";import{g as Mr,r as Zr}from"./verifyHash-iz346HoF.js";import{d as qr,s as pt}from"./parseSignature-CH6Ju48e.js";import{o as Kr,f as Yr,c as Xr}from"./custom-BCV3nNfc.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]="c76e4862-a759-4f37-96d6-98622db0d037",e._sentryDebugIdIdentifier="sentry-dbid-c76e4862-a759-4f37-96d6-98622db0d037")}catch{}})();async function Wr(e,t){var f;const{account:r=e.account,chainId:n,nonce:a}=t;if(!r)throw new ot({docsPath:"/docs/eip7702/prepareAuthorization"});const i=Re(r),s=(()=>{if(t.executor)return t.executor==="self"?t.executor:Re(t.executor)})(),o={address:t.contractAddress??t.address,chainId:n,nonce:a};return typeof o.chainId>"u"&&(o.chainId=((f=e.chain)==null?void 0:f.id)??await te(e,Xt,"getChainId")({})),typeof o.nonce>"u"&&(o.nonce=await te(e,Gr,"getTransactionCount")({address:i.address,blockTag:"pending"}),(s==="self"||s!=null&&s.address&&Ur(s.address,i.address))&&(o.nonce+=1)),o}const us=[{inputs:[{name:"preOpGas",type:"uint256"},{name:"paid",type:"uint256"},{name:"validAfter",type:"uint48"},{name:"validUntil",type:"uint48"},{name:"targetSuccess",type:"bool"},{name:"targetResult",type:"bytes"}],name:"ExecutionResult",type:"error"},{inputs:[{name:"opIndex",type:"uint256"},{name:"reason",type:"string"}],name:"FailedOp",type:"error"},{inputs:[{name:"sender",type:"address"}],name:"SenderAddressResult",type:"error"},{inputs:[{name:"aggregator",type:"address"}],name:"SignatureValidationFailed",type:"error"},{inputs:[{components:[{name:"preOpGas",type:"uint256"},{name:"prefund",type:"uint256"},{name:"sigFailed",type:"bool"},{name:"validAfter",type:"uint48"},{name:"validUntil",type:"uint48"},{name:"paymasterContext",type:"bytes"}],name:"returnInfo",type:"tuple"},{components:[{name:"stake",type:"uint256"},{name:"unstakeDelaySec",type:"uint256"}],name:"senderInfo",type:"tuple"},{components:[{name:"stake",type:"uint256"},{name:"unstakeDelaySec",type:"uint256"}],name:"factoryInfo",type:"tuple"},{components:[{name:"stake",type:"uint256"},{name:"unstakeDelaySec",type:"uint256"}],name:"paymasterInfo",type:"tuple"}],name:"ValidationResult",type:"error"},{inputs:[{components:[{name:"preOpGas",type:"uint256"},{name:"prefund",type:"uint256"},{name:"sigFailed",type:"bool"},{name:"validAfter",type:"uint48"},{name:"validUntil",type:"uint48"},{name:"paymasterContext",type:"bytes"}],name:"returnInfo",type:"tuple"},{components:[{name:"stake",type:"uint256"},{name:"unstakeDelaySec",type:"uint256"}],name:"senderInfo",type:"tuple"},{components:[{name:"stake",type:"uint256"},{name:"unstakeDelaySec",type:"uint256"}],name:"factoryInfo",type:"tuple"},{components:[{name:"stake",type:"uint256"},{name:"unstakeDelaySec",type:"uint256"}],name:"paymasterInfo",type:"tuple"},{components:[{name:"aggregator",type:"address"},{components:[{name:"stake",type:"uint256"},{name:"unstakeDelaySec",type:"uint256"}],name:"stakeInfo",type:"tuple"}],name:"aggregatorInfo",type:"tuple"}],name:"ValidationResultWithAggregation",type:"error"},{anonymous:!1,inputs:[{indexed:!0,name:"userOpHash",type:"bytes32"},{indexed:!0,name:"sender",type:"address"},{indexed:!1,name:"factory",type:"address"},{indexed:!1,name:"paymaster",type:"address"}],name:"AccountDeployed",type:"event"},{anonymous:!1,inputs:[],name:"BeforeExecution",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"totalDeposit",type:"uint256"}],name:"Deposited",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"aggregator",type:"address"}],name:"SignatureAggregatorChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"totalStaked",type:"uint256"},{indexed:!1,name:"unstakeDelaySec",type:"uint256"}],name:"StakeLocked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"withdrawTime",type:"uint256"}],name:"StakeUnlocked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"withdrawAddress",type:"address"},{indexed:!1,name:"amount",type:"uint256"}],name:"StakeWithdrawn",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"userOpHash",type:"bytes32"},{indexed:!0,name:"sender",type:"address"},{indexed:!0,name:"paymaster",type:"address"},{indexed:!1,name:"nonce",type:"uint256"},{indexed:!1,name:"success",type:"bool"},{indexed:!1,name:"actualGasCost",type:"uint256"},{indexed:!1,name:"actualGasUsed",type:"uint256"}],name:"UserOperationEvent",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"userOpHash",type:"bytes32"},{indexed:!0,name:"sender",type:"address"},{indexed:!1,name:"nonce",type:"uint256"},{indexed:!1,name:"revertReason",type:"bytes"}],name:"UserOperationRevertReason",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"withdrawAddress",type:"address"},{indexed:!1,name:"amount",type:"uint256"}],name:"Withdrawn",type:"event"},{inputs:[],name:"SIG_VALIDATION_FAILED",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"initCode",type:"bytes"},{name:"sender",type:"address"},{name:"paymasterAndData",type:"bytes"}],name:"_validateSenderAndPaymaster",outputs:[],stateMutability:"view",type:"function"},{inputs:[{name:"unstakeDelaySec",type:"uint32"}],name:"addStake",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{name:"account",type:"address"}],name:"balanceOf",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"account",type:"address"}],name:"depositTo",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{name:"",type:"address"}],name:"deposits",outputs:[{name:"deposit",type:"uint112"},{name:"staked",type:"bool"},{name:"stake",type:"uint112"},{name:"unstakeDelaySec",type:"uint32"},{name:"withdrawTime",type:"uint48"}],stateMutability:"view",type:"function"},{inputs:[{name:"account",type:"address"}],name:"getDepositInfo",outputs:[{components:[{name:"deposit",type:"uint112"},{name:"staked",type:"bool"},{name:"stake",type:"uint112"},{name:"unstakeDelaySec",type:"uint32"},{name:"withdrawTime",type:"uint48"}],name:"info",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{name:"sender",type:"address"},{name:"key",type:"uint192"}],name:"getNonce",outputs:[{name:"nonce",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"initCode",type:"bytes"}],name:"getSenderAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOp",type:"tuple"}],name:"getUserOpHash",outputs:[{name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{components:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOps",type:"tuple[]"},{name:"aggregator",type:"address"},{name:"signature",type:"bytes"}],name:"opsPerAggregator",type:"tuple[]"},{name:"beneficiary",type:"address"}],name:"handleAggregatedOps",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"ops",type:"tuple[]"},{name:"beneficiary",type:"address"}],name:"handleOps",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"key",type:"uint192"}],name:"incrementNonce",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"callData",type:"bytes"},{components:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"paymaster",type:"address"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"}],name:"mUserOp",type:"tuple"},{name:"userOpHash",type:"bytes32"},{name:"prefund",type:"uint256"},{name:"contextOffset",type:"uint256"},{name:"preOpGas",type:"uint256"}],name:"opInfo",type:"tuple"},{name:"context",type:"bytes"}],name:"innerHandleOp",outputs:[{name:"actualGasCost",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"",type:"address"},{name:"",type:"uint192"}],name:"nonceSequenceNumber",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"op",type:"tuple"},{name:"target",type:"address"},{name:"targetCallData",type:"bytes"}],name:"simulateHandleOp",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOp",type:"tuple"}],name:"simulateValidation",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unlockStake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"withdrawAddress",type:"address"}],name:"withdrawStake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"withdrawAddress",type:"address"},{name:"withdrawAmount",type:"uint256"}],name:"withdrawTo",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}],ds="0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789";function Dn(e,t={}){const{forHash:r}=t,{authorization:n,factory:a,factoryData:i}=e;return r&&(a==="0x7702"||a==="0x7702000000000000000000000000000000000000")?n?Oe([n.address,i??"0x"]):"0x7702000000000000000000000000000000000000":a?Oe([a,i??"0x"]):"0x"}const dn="0x22e325a297439656";function Cn(e,t={}){const{callGasLimit:r,callData:n,maxPriorityFeePerGas:a,maxFeePerGas:i,paymaster:s,paymasterData:o,paymasterPostOpGasLimit:f,paymasterSignature:c,paymasterVerificationGasLimit:p,sender:m,signature:u="0x",verificationGasLimit:l}=e,d=Oe([ae(z(l||0n),{size:16}),ae(z(r||0n),{size:16})]),w=Dn(e,t),P=Oe([ae(z(a||0n),{size:16}),ae(z(i||0n),{size:16})]),U=e.nonce??0n,$=s?Oe([s,ae(z(p||0n),{size:16}),ae(z(f||0n),{size:16}),o||"0x",...c?t.forHash?[dn]:[c,ae(z(Nr(c)),{size:2}),dn]:[]]):"0x",v=e.preVerificationGas??0n;return{accountGasLimits:d,callData:n,initCode:w,gasFees:P,nonce:U,paymasterAndData:$,preVerificationGas:v,sender:m,signature:u}}const Jr={PackedUserOperation:[{type:"address",name:"sender"},{type:"uint256",name:"nonce"},{type:"bytes",name:"initCode"},{type:"bytes",name:"callData"},{type:"bytes32",name:"accountGasLimits"},{type:"uint256",name:"preVerificationGas"},{type:"bytes32",name:"gasFees"},{type:"bytes",name:"paymasterAndData"}]};function Qr(e){const{chainId:t,entryPointAddress:r,userOperation:n}=e,a=Cn(n,{forHash:!0});return{types:Jr,primaryType:"PackedUserOperation",domain:{name:"ERC4337",version:"1",chainId:t,verifyingContract:r},message:a}}function ls(e){const{chainId:t,entryPointAddress:r,entryPointVersion:n}=e,a=e.userOperation,{authorization:i,callData:s="0x",callGasLimit:o,maxFeePerGas:f,maxPriorityFeePerGas:c,nonce:p,paymasterAndData:m="0x",preVerificationGas:u,sender:l,verificationGasLimit:d}=a;if(n==="0.8"||n==="0.9")return Tr(Qr({chainId:t,entryPointAddress:r,userOperation:a}));const w=(()=>{var P,U;if(n==="0.6"){const $=(P=a.initCode)==null?void 0:P.slice(0,42),v=(U=a.initCode)==null?void 0:U.slice(42),R=Dn({authorization:i,factory:$,factoryData:v},{forHash:!0});return yt([{type:"address"},{type:"uint256"},{type:"bytes32"},{type:"bytes32"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"bytes32"}],[l,p,de(R),de(s),o,d,u,f,c,de(m)])}if(n==="0.7"){const $=Cn(a,{forHash:!0});return yt([{type:"address"},{type:"uint256"},{type:"bytes32"},{type:"bytes32"},{type:"bytes32"},{type:"uint256"},{type:"bytes32"},{type:"bytes32"}],[$.sender,$.nonce,de($.initCode),de($.callData),$.accountGasLimits,$.preVerificationGas,$.gasFees,de($.paymasterAndData)])}throw new Error(`entryPointVersion "${n}" not supported.`)})();return de(yt([{type:"bytes32"},{type:"address"},{type:"uint256"}],[de(w),r,BigInt(t)]))}async function ys(e){const{extend:t,nonceKeyManager:r=qr({source:{get(){return Date.now()},set(){}}}),...n}=e;let a=!1;const i=await e.getAddress();return{...t,...n,address:i,async getFactoryArgs(){return"isDeployed"in this&&await this.isDeployed()?{factory:void 0,factoryData:void 0}:e.getFactoryArgs()},async getNonce(s){const o=(s==null?void 0:s.key)??BigInt(await r.consume({address:i,chainId:e.client.chain.id,client:e.client}));return e.getNonce?await e.getNonce({...s,key:o}):await Zr(e.client,{abi:Lr(["function getNonce(address, uint192) pure returns (uint256)"]),address:e.entryPoint.address,functionName:"getNonce",args:[i,o]})},async isDeployed(){return a?!0:(a=!!await te(e.client,Mr,"getCode")({address:i}),a)},...e.sign?{async sign(s){const[{factory:o,factoryData:f},c]=await Promise.all([this.getFactoryArgs(),e.sign(s)]);return o&&f?pt({address:o,data:f,signature:c}):c}}:{},async signMessage(s){const[{factory:o,factoryData:f},c]=await Promise.all([this.getFactoryArgs(),e.signMessage(s)]);return o&&f&&o!=="0x7702"?pt({address:o,data:f,signature:c}):c},async signTypedData(s){const[{factory:o,factoryData:f},c]=await Promise.all([this.getFactoryArgs(),e.signTypedData(s)]);return o&&f&&o!=="0x7702"?pt({address:o,data:f,signature:c}):c},type:"smart"}}class Ot extends I{constructor({cause:t}){super("Smart Account is not deployed.",{cause:t,metaMessages:["This could arise when:","- No `factory`/`factoryData` or `initCode` properties are provided for Smart Account deployment.","- An incorrect `sender` address is provided."],name:"AccountNotDeployedError"})}}Object.defineProperty(Ot,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa20/});class De extends I{constructor({cause:t,data:r,message:n}={}){var i;const a=(i=n==null?void 0:n.replace("execution reverted: ",""))==null?void 0:i.replace("execution reverted","");super(`Execution reverted ${a?`with reason: ${a}`:"for an unknown reason"}.`,{cause:t,name:"ExecutionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=r}}Object.defineProperty(De,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32521});Object.defineProperty(De,"message",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class Bt extends I{constructor({cause:t}){super("Failed to send funds to beneficiary.",{cause:t,name:"FailedToSendToBeneficiaryError"})}}Object.defineProperty(Bt,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa91/});class Pt extends I{constructor({cause:t}){super("Gas value overflowed.",{cause:t,metaMessages:["This could arise when:","- one of the gas values exceeded 2**120 (uint120)"].filter(Boolean),name:"GasValuesOverflowError"})}}Object.defineProperty(Pt,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa94/});class St extends I{constructor({cause:t}){super("The `handleOps` function was called by the Bundler with a gas limit too low.",{cause:t,name:"HandleOpsOutOfGasError"})}}Object.defineProperty(St,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa95/});class At extends I{constructor({cause:t,factory:r,factoryData:n,initCode:a}){super("Failed to simulate deployment for Smart Account.",{cause:t,metaMessages:["This could arise when:","- Invalid `factory`/`factoryData` or `initCode` properties are present","- Smart Account deployment execution ran out of gas (low `verificationGasLimit` value)",`- Smart Account deployment execution reverted with an error
|
|
1
|
+
import{b7 as ot,bh as Re,b9 as te,ba as Xt,cw as Gr,aQ as Ur,ak as Oe,ax as yt,aR as de,aU as Lr,cx as Dr,ao as Cr,z as $r,y as Hr,x as Vr,az as Rr,cy as jr,cz as Fr,aD as zr,aF as _r}from"./sendRawTransaction-DvPllr2w.js";import{e as Tr}from"./hashTypedData-DwRBa2yl.js";import{ag as ae,af as z,aj as Nr,B as I,a3 as un,a7 as qe,am as kr}from"./NetworkUtil-lcxMKGH5.js";import{g as Mr,r as Zr}from"./verifyHash-hpoSPL39.js";import{d as qr,s as pt}from"./parseSignature-mAxoNc1a.js";import{o as Kr,f as Yr,c as Xr}from"./custom-CS-c_wJn.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]="c76e4862-a759-4f37-96d6-98622db0d037",e._sentryDebugIdIdentifier="sentry-dbid-c76e4862-a759-4f37-96d6-98622db0d037")}catch{}})();async function Wr(e,t){var f;const{account:r=e.account,chainId:n,nonce:a}=t;if(!r)throw new ot({docsPath:"/docs/eip7702/prepareAuthorization"});const i=Re(r),s=(()=>{if(t.executor)return t.executor==="self"?t.executor:Re(t.executor)})(),o={address:t.contractAddress??t.address,chainId:n,nonce:a};return typeof o.chainId>"u"&&(o.chainId=((f=e.chain)==null?void 0:f.id)??await te(e,Xt,"getChainId")({})),typeof o.nonce>"u"&&(o.nonce=await te(e,Gr,"getTransactionCount")({address:i.address,blockTag:"pending"}),(s==="self"||s!=null&&s.address&&Ur(s.address,i.address))&&(o.nonce+=1)),o}const us=[{inputs:[{name:"preOpGas",type:"uint256"},{name:"paid",type:"uint256"},{name:"validAfter",type:"uint48"},{name:"validUntil",type:"uint48"},{name:"targetSuccess",type:"bool"},{name:"targetResult",type:"bytes"}],name:"ExecutionResult",type:"error"},{inputs:[{name:"opIndex",type:"uint256"},{name:"reason",type:"string"}],name:"FailedOp",type:"error"},{inputs:[{name:"sender",type:"address"}],name:"SenderAddressResult",type:"error"},{inputs:[{name:"aggregator",type:"address"}],name:"SignatureValidationFailed",type:"error"},{inputs:[{components:[{name:"preOpGas",type:"uint256"},{name:"prefund",type:"uint256"},{name:"sigFailed",type:"bool"},{name:"validAfter",type:"uint48"},{name:"validUntil",type:"uint48"},{name:"paymasterContext",type:"bytes"}],name:"returnInfo",type:"tuple"},{components:[{name:"stake",type:"uint256"},{name:"unstakeDelaySec",type:"uint256"}],name:"senderInfo",type:"tuple"},{components:[{name:"stake",type:"uint256"},{name:"unstakeDelaySec",type:"uint256"}],name:"factoryInfo",type:"tuple"},{components:[{name:"stake",type:"uint256"},{name:"unstakeDelaySec",type:"uint256"}],name:"paymasterInfo",type:"tuple"}],name:"ValidationResult",type:"error"},{inputs:[{components:[{name:"preOpGas",type:"uint256"},{name:"prefund",type:"uint256"},{name:"sigFailed",type:"bool"},{name:"validAfter",type:"uint48"},{name:"validUntil",type:"uint48"},{name:"paymasterContext",type:"bytes"}],name:"returnInfo",type:"tuple"},{components:[{name:"stake",type:"uint256"},{name:"unstakeDelaySec",type:"uint256"}],name:"senderInfo",type:"tuple"},{components:[{name:"stake",type:"uint256"},{name:"unstakeDelaySec",type:"uint256"}],name:"factoryInfo",type:"tuple"},{components:[{name:"stake",type:"uint256"},{name:"unstakeDelaySec",type:"uint256"}],name:"paymasterInfo",type:"tuple"},{components:[{name:"aggregator",type:"address"},{components:[{name:"stake",type:"uint256"},{name:"unstakeDelaySec",type:"uint256"}],name:"stakeInfo",type:"tuple"}],name:"aggregatorInfo",type:"tuple"}],name:"ValidationResultWithAggregation",type:"error"},{anonymous:!1,inputs:[{indexed:!0,name:"userOpHash",type:"bytes32"},{indexed:!0,name:"sender",type:"address"},{indexed:!1,name:"factory",type:"address"},{indexed:!1,name:"paymaster",type:"address"}],name:"AccountDeployed",type:"event"},{anonymous:!1,inputs:[],name:"BeforeExecution",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"totalDeposit",type:"uint256"}],name:"Deposited",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"aggregator",type:"address"}],name:"SignatureAggregatorChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"totalStaked",type:"uint256"},{indexed:!1,name:"unstakeDelaySec",type:"uint256"}],name:"StakeLocked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"withdrawTime",type:"uint256"}],name:"StakeUnlocked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"withdrawAddress",type:"address"},{indexed:!1,name:"amount",type:"uint256"}],name:"StakeWithdrawn",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"userOpHash",type:"bytes32"},{indexed:!0,name:"sender",type:"address"},{indexed:!0,name:"paymaster",type:"address"},{indexed:!1,name:"nonce",type:"uint256"},{indexed:!1,name:"success",type:"bool"},{indexed:!1,name:"actualGasCost",type:"uint256"},{indexed:!1,name:"actualGasUsed",type:"uint256"}],name:"UserOperationEvent",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"userOpHash",type:"bytes32"},{indexed:!0,name:"sender",type:"address"},{indexed:!1,name:"nonce",type:"uint256"},{indexed:!1,name:"revertReason",type:"bytes"}],name:"UserOperationRevertReason",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"withdrawAddress",type:"address"},{indexed:!1,name:"amount",type:"uint256"}],name:"Withdrawn",type:"event"},{inputs:[],name:"SIG_VALIDATION_FAILED",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"initCode",type:"bytes"},{name:"sender",type:"address"},{name:"paymasterAndData",type:"bytes"}],name:"_validateSenderAndPaymaster",outputs:[],stateMutability:"view",type:"function"},{inputs:[{name:"unstakeDelaySec",type:"uint32"}],name:"addStake",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{name:"account",type:"address"}],name:"balanceOf",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"account",type:"address"}],name:"depositTo",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{name:"",type:"address"}],name:"deposits",outputs:[{name:"deposit",type:"uint112"},{name:"staked",type:"bool"},{name:"stake",type:"uint112"},{name:"unstakeDelaySec",type:"uint32"},{name:"withdrawTime",type:"uint48"}],stateMutability:"view",type:"function"},{inputs:[{name:"account",type:"address"}],name:"getDepositInfo",outputs:[{components:[{name:"deposit",type:"uint112"},{name:"staked",type:"bool"},{name:"stake",type:"uint112"},{name:"unstakeDelaySec",type:"uint32"},{name:"withdrawTime",type:"uint48"}],name:"info",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{name:"sender",type:"address"},{name:"key",type:"uint192"}],name:"getNonce",outputs:[{name:"nonce",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"initCode",type:"bytes"}],name:"getSenderAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOp",type:"tuple"}],name:"getUserOpHash",outputs:[{name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{components:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOps",type:"tuple[]"},{name:"aggregator",type:"address"},{name:"signature",type:"bytes"}],name:"opsPerAggregator",type:"tuple[]"},{name:"beneficiary",type:"address"}],name:"handleAggregatedOps",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"ops",type:"tuple[]"},{name:"beneficiary",type:"address"}],name:"handleOps",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"key",type:"uint192"}],name:"incrementNonce",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"callData",type:"bytes"},{components:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"paymaster",type:"address"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"}],name:"mUserOp",type:"tuple"},{name:"userOpHash",type:"bytes32"},{name:"prefund",type:"uint256"},{name:"contextOffset",type:"uint256"},{name:"preOpGas",type:"uint256"}],name:"opInfo",type:"tuple"},{name:"context",type:"bytes"}],name:"innerHandleOp",outputs:[{name:"actualGasCost",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"",type:"address"},{name:"",type:"uint192"}],name:"nonceSequenceNumber",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"op",type:"tuple"},{name:"target",type:"address"},{name:"targetCallData",type:"bytes"}],name:"simulateHandleOp",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOp",type:"tuple"}],name:"simulateValidation",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unlockStake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"withdrawAddress",type:"address"}],name:"withdrawStake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"withdrawAddress",type:"address"},{name:"withdrawAmount",type:"uint256"}],name:"withdrawTo",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}],ds="0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789";function Dn(e,t={}){const{forHash:r}=t,{authorization:n,factory:a,factoryData:i}=e;return r&&(a==="0x7702"||a==="0x7702000000000000000000000000000000000000")?n?Oe([n.address,i??"0x"]):"0x7702000000000000000000000000000000000000":a?Oe([a,i??"0x"]):"0x"}const dn="0x22e325a297439656";function Cn(e,t={}){const{callGasLimit:r,callData:n,maxPriorityFeePerGas:a,maxFeePerGas:i,paymaster:s,paymasterData:o,paymasterPostOpGasLimit:f,paymasterSignature:c,paymasterVerificationGasLimit:p,sender:m,signature:u="0x",verificationGasLimit:l}=e,d=Oe([ae(z(l||0n),{size:16}),ae(z(r||0n),{size:16})]),w=Dn(e,t),P=Oe([ae(z(a||0n),{size:16}),ae(z(i||0n),{size:16})]),U=e.nonce??0n,$=s?Oe([s,ae(z(p||0n),{size:16}),ae(z(f||0n),{size:16}),o||"0x",...c?t.forHash?[dn]:[c,ae(z(Nr(c)),{size:2}),dn]:[]]):"0x",v=e.preVerificationGas??0n;return{accountGasLimits:d,callData:n,initCode:w,gasFees:P,nonce:U,paymasterAndData:$,preVerificationGas:v,sender:m,signature:u}}const Jr={PackedUserOperation:[{type:"address",name:"sender"},{type:"uint256",name:"nonce"},{type:"bytes",name:"initCode"},{type:"bytes",name:"callData"},{type:"bytes32",name:"accountGasLimits"},{type:"uint256",name:"preVerificationGas"},{type:"bytes32",name:"gasFees"},{type:"bytes",name:"paymasterAndData"}]};function Qr(e){const{chainId:t,entryPointAddress:r,userOperation:n}=e,a=Cn(n,{forHash:!0});return{types:Jr,primaryType:"PackedUserOperation",domain:{name:"ERC4337",version:"1",chainId:t,verifyingContract:r},message:a}}function ls(e){const{chainId:t,entryPointAddress:r,entryPointVersion:n}=e,a=e.userOperation,{authorization:i,callData:s="0x",callGasLimit:o,maxFeePerGas:f,maxPriorityFeePerGas:c,nonce:p,paymasterAndData:m="0x",preVerificationGas:u,sender:l,verificationGasLimit:d}=a;if(n==="0.8"||n==="0.9")return Tr(Qr({chainId:t,entryPointAddress:r,userOperation:a}));const w=(()=>{var P,U;if(n==="0.6"){const $=(P=a.initCode)==null?void 0:P.slice(0,42),v=(U=a.initCode)==null?void 0:U.slice(42),R=Dn({authorization:i,factory:$,factoryData:v},{forHash:!0});return yt([{type:"address"},{type:"uint256"},{type:"bytes32"},{type:"bytes32"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"bytes32"}],[l,p,de(R),de(s),o,d,u,f,c,de(m)])}if(n==="0.7"){const $=Cn(a,{forHash:!0});return yt([{type:"address"},{type:"uint256"},{type:"bytes32"},{type:"bytes32"},{type:"bytes32"},{type:"uint256"},{type:"bytes32"},{type:"bytes32"}],[$.sender,$.nonce,de($.initCode),de($.callData),$.accountGasLimits,$.preVerificationGas,$.gasFees,de($.paymasterAndData)])}throw new Error(`entryPointVersion "${n}" not supported.`)})();return de(yt([{type:"bytes32"},{type:"address"},{type:"uint256"}],[de(w),r,BigInt(t)]))}async function ys(e){const{extend:t,nonceKeyManager:r=qr({source:{get(){return Date.now()},set(){}}}),...n}=e;let a=!1;const i=await e.getAddress();return{...t,...n,address:i,async getFactoryArgs(){return"isDeployed"in this&&await this.isDeployed()?{factory:void 0,factoryData:void 0}:e.getFactoryArgs()},async getNonce(s){const o=(s==null?void 0:s.key)??BigInt(await r.consume({address:i,chainId:e.client.chain.id,client:e.client}));return e.getNonce?await e.getNonce({...s,key:o}):await Zr(e.client,{abi:Lr(["function getNonce(address, uint192) pure returns (uint256)"]),address:e.entryPoint.address,functionName:"getNonce",args:[i,o]})},async isDeployed(){return a?!0:(a=!!await te(e.client,Mr,"getCode")({address:i}),a)},...e.sign?{async sign(s){const[{factory:o,factoryData:f},c]=await Promise.all([this.getFactoryArgs(),e.sign(s)]);return o&&f?pt({address:o,data:f,signature:c}):c}}:{},async signMessage(s){const[{factory:o,factoryData:f},c]=await Promise.all([this.getFactoryArgs(),e.signMessage(s)]);return o&&f&&o!=="0x7702"?pt({address:o,data:f,signature:c}):c},async signTypedData(s){const[{factory:o,factoryData:f},c]=await Promise.all([this.getFactoryArgs(),e.signTypedData(s)]);return o&&f&&o!=="0x7702"?pt({address:o,data:f,signature:c}):c},type:"smart"}}class Ot extends I{constructor({cause:t}){super("Smart Account is not deployed.",{cause:t,metaMessages:["This could arise when:","- No `factory`/`factoryData` or `initCode` properties are provided for Smart Account deployment.","- An incorrect `sender` address is provided."],name:"AccountNotDeployedError"})}}Object.defineProperty(Ot,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa20/});class De extends I{constructor({cause:t,data:r,message:n}={}){var i;const a=(i=n==null?void 0:n.replace("execution reverted: ",""))==null?void 0:i.replace("execution reverted","");super(`Execution reverted ${a?`with reason: ${a}`:"for an unknown reason"}.`,{cause:t,name:"ExecutionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=r}}Object.defineProperty(De,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32521});Object.defineProperty(De,"message",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class Bt extends I{constructor({cause:t}){super("Failed to send funds to beneficiary.",{cause:t,name:"FailedToSendToBeneficiaryError"})}}Object.defineProperty(Bt,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa91/});class Pt extends I{constructor({cause:t}){super("Gas value overflowed.",{cause:t,metaMessages:["This could arise when:","- one of the gas values exceeded 2**120 (uint120)"].filter(Boolean),name:"GasValuesOverflowError"})}}Object.defineProperty(Pt,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa94/});class St extends I{constructor({cause:t}){super("The `handleOps` function was called by the Bundler with a gas limit too low.",{cause:t,name:"HandleOpsOutOfGasError"})}}Object.defineProperty(St,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa95/});class At extends I{constructor({cause:t,factory:r,factoryData:n,initCode:a}){super("Failed to simulate deployment for Smart Account.",{cause:t,metaMessages:["This could arise when:","- Invalid `factory`/`factoryData` or `initCode` properties are present","- Smart Account deployment execution ran out of gas (low `verificationGasLimit` value)",`- Smart Account deployment execution reverted with an error
|
|
2
2
|
`,r&&`factory: ${r}`,n&&`factoryData: ${n}`,a&&`initCode: ${a}`].filter(Boolean),name:"InitCodeFailedError"})}}Object.defineProperty(At,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa13/});class It extends I{constructor({cause:t,factory:r,factoryData:n,initCode:a}){super("Smart Account initialization implementation did not create an account.",{cause:t,metaMessages:["This could arise when:","- `factory`/`factoryData` or `initCode` properties are invalid",`- Smart Account initialization implementation is incorrect
|
|
3
3
|
`,r&&`factory: ${r}`,n&&`factoryData: ${n}`,a&&`initCode: ${a}`].filter(Boolean),name:"InitCodeMustCreateSenderError"})}}Object.defineProperty(It,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa15/});class Gt extends I{constructor({cause:t,factory:r,factoryData:n,initCode:a,sender:i}){super("Smart Account initialization implementation does not return the expected sender.",{cause:t,metaMessages:["This could arise when:",`Smart Account initialization implementation does not return a sender address
|
|
4
4
|
`,r&&`factory: ${r}`,n&&`factoryData: ${n}`,a&&`initCode: ${a}`,i&&`sender: ${i}`].filter(Boolean),name:"InitCodeMustReturnSenderError"})}}Object.defineProperty(Gt,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa14/});class Ut extends I{constructor({cause:t}){super("Smart Account does not have sufficient funds to execute the User Operation.",{cause:t,metaMessages:["This could arise when:","- the Smart Account does not have sufficient funds to cover the required prefund, or","- a Paymaster was not provided"].filter(Boolean),name:"InsufficientPrefundError"})}}Object.defineProperty(Ut,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa21/});class Lt extends I{constructor({cause:t}){super("Bundler attempted to call an invalid function on the EntryPoint.",{cause:t,name:"InternalCallOnlyError"})}}Object.defineProperty(Lt,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa92/});class Dt extends I{constructor({cause:t}){super("Bundler used an invalid aggregator for handling aggregated User Operations.",{cause:t,name:"InvalidAggregatorError"})}}Object.defineProperty(Dt,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa96/});class Ct extends I{constructor({cause:t,nonce:r}){super("Invalid Smart Account nonce used for User Operation.",{cause:t,metaMessages:[r&&`nonce: ${r}`].filter(Boolean),name:"InvalidAccountNonceError"})}}Object.defineProperty(Ct,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa25/});class $t extends I{constructor({cause:t}){super("Bundler has not set a beneficiary address.",{cause:t,name:"InvalidBeneficiaryError"})}}Object.defineProperty($t,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa90/});class Ke extends I{constructor({cause:t}){super("Invalid fields set on User Operation.",{cause:t,name:"InvalidFieldsError"})}}Object.defineProperty(Ke,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class Ht extends I{constructor({cause:t,paymasterAndData:r}){super("Paymaster properties provided are invalid.",{cause:t,metaMessages:["This could arise when:","- the `paymasterAndData` property is of an incorrect length\n",r&&`paymasterAndData: ${r}`].filter(Boolean),name:"InvalidPaymasterAndDataError"})}}Object.defineProperty(Ht,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa93/});class we extends I{constructor({cause:t}){super("Paymaster deposit for the User Operation is too low.",{cause:t,metaMessages:["This could arise when:","- the Paymaster has deposited less than the expected amount via the `deposit` function"].filter(Boolean),name:"PaymasterDepositTooLowError"})}}Object.defineProperty(we,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32508});Object.defineProperty(we,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa31/});class Vt extends I{constructor({cause:t}){super("The `validatePaymasterUserOp` function on the Paymaster reverted.",{cause:t,name:"PaymasterFunctionRevertedError"})}}Object.defineProperty(Vt,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa33/});class Rt extends I{constructor({cause:t}){super("The Paymaster contract has not been deployed.",{cause:t,name:"PaymasterNotDeployedError"})}}Object.defineProperty(Rt,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa30/});class Ye extends I{constructor({cause:t}){super("UserOperation rejected because paymaster (or signature aggregator) is throttled/banned.",{cause:t,name:"PaymasterRateLimitError"})}}Object.defineProperty(Ye,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32504});class Xe extends I{constructor({cause:t}){super("UserOperation rejected because paymaster (or signature aggregator) stake or unstake-delay is too low.",{cause:t,name:"PaymasterStakeTooLowError"})}}Object.defineProperty(Xe,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32505});class jt extends I{constructor({cause:t}){super("Paymaster `postOp` function reverted.",{cause:t,name:"PaymasterPostOpFunctionRevertedError"})}}Object.defineProperty(jt,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa50/});class Ft extends I{constructor({cause:t,factory:r,factoryData:n,initCode:a}){super("Smart Account has already been deployed.",{cause:t,metaMessages:["Remove the following properties and try again:",r&&"`factory`",n&&"`factoryData`",a&&"`initCode`"].filter(Boolean),name:"SenderAlreadyConstructedError"})}}Object.defineProperty(Ft,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa10/});class We extends I{constructor({cause:t}){super("UserOperation rejected because account signature check failed (or paymaster signature, if the paymaster uses its data as signature).",{cause:t,name:"SignatureCheckFailedError"})}}Object.defineProperty(We,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32507});class zt extends I{constructor({cause:t}){super("The `validateUserOp` function on the Smart Account reverted.",{cause:t,name:"SmartAccountFunctionRevertedError"})}}Object.defineProperty(zt,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa23/});class Je extends I{constructor({cause:t}){super("UserOperation rejected because account specified unsupported signature aggregator.",{cause:t,name:"UnsupportedSignatureAggregatorError"})}}Object.defineProperty(Je,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32506});class _t extends I{constructor({cause:t}){super("User Operation expired.",{cause:t,metaMessages:["This could arise when:","- the `validAfter` or `validUntil` values returned from `validateUserOp` on the Smart Account are not satisfied"].filter(Boolean),name:"UserOperationExpiredError"})}}Object.defineProperty(_t,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa22/});class Tt extends I{constructor({cause:t}){super("Paymaster for User Operation expired.",{cause:t,metaMessages:["This could arise when:","- the `validAfter` or `validUntil` values returned from `validatePaymasterUserOp` on the Paymaster are not satisfied"].filter(Boolean),name:"UserOperationPaymasterExpiredError"})}}Object.defineProperty(Tt,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa32/});class Nt extends I{constructor({cause:t}){super("Signature provided for the User Operation is invalid.",{cause:t,metaMessages:["This could arise when:","- the `signature` for the User Operation is incorrectly computed, and unable to be verified by the Smart Account"].filter(Boolean),name:"UserOperationSignatureError"})}}Object.defineProperty(Nt,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa24/});class kt extends I{constructor({cause:t}){super("Signature provided for the User Operation is invalid.",{cause:t,metaMessages:["This could arise when:","- the `signature` for the User Operation is incorrectly computed, and unable to be verified by the Paymaster"].filter(Boolean),name:"UserOperationPaymasterSignatureError"})}}Object.defineProperty(kt,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa34/});class Qe extends I{constructor({cause:t}){super("User Operation rejected by EntryPoint's `simulateValidation` during account creation or validation.",{cause:t,name:"UserOperationRejectedByEntryPointError"})}}Object.defineProperty(Qe,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32500});class et extends I{constructor({cause:t}){super("User Operation rejected by Paymaster's `validatePaymasterUserOp`.",{cause:t,name:"UserOperationRejectedByPaymasterError"})}}Object.defineProperty(et,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32501});class tt extends I{constructor({cause:t}){super("User Operation rejected with op code validation error.",{cause:t,name:"UserOperationRejectedByOpCodeError"})}}Object.defineProperty(tt,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32502});class nt extends I{constructor({cause:t}){super("UserOperation out of time-range: either wallet or paymaster returned a time-range, and it is already expired (or will expire soon).",{cause:t,name:"UserOperationOutOfTimeRangeError"})}}Object.defineProperty(nt,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32503});class ea extends I{constructor({cause:t}){super(`An error occurred while executing user operation: ${t==null?void 0:t.shortMessage}`,{cause:t,name:"UnknownBundlerError"})}}class Mt extends I{constructor({cause:t}){super("User Operation verification gas limit exceeded.",{cause:t,metaMessages:["This could arise when:","- the gas used for verification exceeded the `verificationGasLimit`"].filter(Boolean),name:"VerificationGasLimitExceededError"})}}Object.defineProperty(Mt,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa40/});class Zt extends I{constructor({cause:t}){super("User Operation verification gas limit is too low.",{cause:t,metaMessages:["This could arise when:","- the `verificationGasLimit` is too low to verify the User Operation"].filter(Boolean),name:"VerificationGasLimitTooLowError"})}}Object.defineProperty(Zt,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa41/});class ta extends I{constructor(t,{callData:r,callGasLimit:n,docsPath:a,factory:i,factoryData:s,initCode:o,maxFeePerGas:f,maxPriorityFeePerGas:c,nonce:p,paymaster:m,paymasterAndData:u,paymasterData:l,paymasterPostOpGasLimit:d,paymasterVerificationGasLimit:w,preVerificationGas:P,sender:U,signature:$,verificationGasLimit:v}){const R=Dr({callData:r,callGasLimit:n,factory:i,factoryData:s,initCode:o,maxFeePerGas:typeof f<"u"&&`${un(f)} gwei`,maxPriorityFeePerGas:typeof c<"u"&&`${un(c)} gwei`,nonce:p,paymaster:m,paymasterAndData:u,paymasterData:l,paymasterPostOpGasLimit:d,paymasterVerificationGasLimit:w,preVerificationGas:P,sender:U,signature:$,verificationGasLimit:v});super(t.shortMessage,{cause:t,docsPath:a,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Request Arguments:",R].filter(Boolean),name:"UserOperationExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}class na extends I{constructor({hash:t}){super(`User Operation receipt with hash "${t}" could not be found. The User Operation may not have been processed yet.`,{name:"UserOperationReceiptNotFoundError"})}}class ra extends I{constructor({hash:t}){super(`User Operation with hash "${t}" could not be found.`,{name:"UserOperationNotFoundError"})}}class ln extends I{constructor({hash:t}){super(`Timed out while waiting for User Operation with hash "${t}" to be confirmed.`,{name:"WaitForUserOperationReceiptTimeoutError"})}}const aa=[De,Ke,we,Ye,Xe,We,Je,nt,Qe,et,tt];function ia(e,t){const r=(e.details||"").toLowerCase();if(Ot.message.test(r))return new Ot({cause:e});if(Bt.message.test(r))return new Bt({cause:e});if(Pt.message.test(r))return new Pt({cause:e});if(St.message.test(r))return new St({cause:e});if(At.message.test(r))return new At({cause:e,factory:t.factory,factoryData:t.factoryData,initCode:t.initCode});if(It.message.test(r))return new It({cause:e,factory:t.factory,factoryData:t.factoryData,initCode:t.initCode});if(Gt.message.test(r))return new Gt({cause:e,factory:t.factory,factoryData:t.factoryData,initCode:t.initCode,sender:t.sender});if(Ut.message.test(r))return new Ut({cause:e});if(Lt.message.test(r))return new Lt({cause:e});if(Ct.message.test(r))return new Ct({cause:e,nonce:t.nonce});if(Dt.message.test(r))return new Dt({cause:e});if($t.message.test(r))return new $t({cause:e});if(Ht.message.test(r))return new Ht({cause:e});if(we.message.test(r))return new we({cause:e});if(Vt.message.test(r))return new Vt({cause:e});if(Rt.message.test(r))return new Rt({cause:e});if(jt.message.test(r))return new jt({cause:e});if(zt.message.test(r))return new zt({cause:e});if(Ft.message.test(r))return new Ft({cause:e,factory:t.factory,factoryData:t.factoryData,initCode:t.initCode});if(_t.message.test(r))return new _t({cause:e});if(Tt.message.test(r))return new Tt({cause:e});if(kt.message.test(r))return new kt({cause:e});if(Nt.message.test(r))return new Nt({cause:e});if(Mt.message.test(r))return new Mt({cause:e});if(Zt.message.test(r))return new Zt({cause:e});const n=e.walk(a=>aa.some(i=>i.code===a.code));if(n){if(n.code===De.code)return new De({cause:e,data:n.data,message:n.details});if(n.code===Ke.code)return new Ke({cause:e});if(n.code===we.code)return new we({cause:e});if(n.code===Ye.code)return new Ye({cause:e});if(n.code===Xe.code)return new Xe({cause:e});if(n.code===We.code)return new We({cause:e});if(n.code===Je.code)return new Je({cause:e});if(n.code===nt.code)return new nt({cause:e});if(n.code===Qe.code)return new Qe({cause:e});if(n.code===et.code)return new et({cause:e});if(n.code===tt.code)return new tt({cause:e})}return new ea({cause:e})}function $n(e,{calls:t,docsPath:r,...n}){const a=(()=>{const i=ia(e,n);if(t&&i instanceof De){const s=sa(i),o=t==null?void 0:t.filter(f=>f.abi);if(s&&o.length>0)return oa({calls:o,revertData:s})}return i})();return new ta(a,{docsPath:r,...n})}function sa(e){let t;return e.walk(r=>{var a,i,s,o;const n=r;if(typeof n.data=="string"||typeof((a=n.data)==null?void 0:a.revertData)=="string"||!(n instanceof I)&&typeof n.message=="string"){const f=(o=(s=((i=n.data)==null?void 0:i.revertData)||n.data||n.message).match)==null?void 0:o.call(s,/(0x[A-Za-z0-9]*)/);if(f)return t=f[1],!0}return!1}),t}function oa(e){const{calls:t,revertData:r}=e,{abi:n,functionName:a,args:i,to:s}=(()=>{const f=t==null?void 0:t.filter(p=>!!p.abi);if(f.length===1)return f[0];const c=f.filter(p=>{try{return!!Cr({abi:p.abi,data:r})}catch{return!1}});return c.length===1?c[0]:{abi:[],functionName:f.reduce((p,m)=>`${p?`${p} | `:""}${m.functionName}`,""),args:void 0,to:void 0}})(),o=r==="0x"?new $r({functionName:a}):new Hr({abi:n,data:r,functionName:a});return new Vr(o,{abi:n,args:i,contractAddress:s,functionName:a})}function fa(e){const t={};return e.callGasLimit&&(t.callGasLimit=BigInt(e.callGasLimit)),e.preVerificationGas&&(t.preVerificationGas=BigInt(e.preVerificationGas)),e.verificationGasLimit&&(t.verificationGasLimit=BigInt(e.verificationGasLimit)),e.paymasterPostOpGasLimit&&(t.paymasterPostOpGasLimit=BigInt(e.paymasterPostOpGasLimit)),e.paymasterVerificationGasLimit&&(t.paymasterVerificationGasLimit=BigInt(e.paymasterVerificationGasLimit)),t}function ft(e){const t={};return typeof e.callData<"u"&&(t.callData=e.callData),typeof e.callGasLimit<"u"&&(t.callGasLimit=z(e.callGasLimit)),typeof e.factory<"u"&&(t.factory=e.factory),typeof e.factoryData<"u"&&(t.factoryData=e.factoryData),typeof e.initCode<"u"&&(t.initCode=e.initCode),typeof e.maxFeePerGas<"u"&&(t.maxFeePerGas=z(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<"u"&&(t.maxPriorityFeePerGas=z(e.maxPriorityFeePerGas)),typeof e.nonce<"u"&&(t.nonce=z(e.nonce)),typeof e.paymaster<"u"&&(t.paymaster=e.paymaster),typeof e.paymasterAndData<"u"&&(t.paymasterAndData=e.paymasterAndData||"0x"),typeof e.paymasterData<"u"&&(t.paymasterData=e.paymasterData),typeof e.paymasterPostOpGasLimit<"u"&&(t.paymasterPostOpGasLimit=z(e.paymasterPostOpGasLimit)),typeof e.paymasterSignature<"u"&&(t.paymasterSignature=e.paymasterSignature),typeof e.paymasterVerificationGasLimit<"u"&&(t.paymasterVerificationGasLimit=z(e.paymasterVerificationGasLimit)),typeof e.preVerificationGas<"u"&&(t.preVerificationGas=z(e.preVerificationGas)),typeof e.sender<"u"&&(t.sender=e.sender),typeof e.signature<"u"&&(t.signature=e.signature),typeof e.verificationGasLimit<"u"&&(t.verificationGasLimit=z(e.verificationGasLimit)),typeof e.authorization<"u"&&(t.eip7702Auth=ca(e.authorization)),t}function ca(e){return{address:e.address,chainId:z(e.chainId),nonce:z(e.nonce),r:e.r?z(BigInt(e.r),{size:32}):ae("0x",{size:32}),s:e.s?z(BigInt(e.s),{size:32}):ae("0x",{size:32}),yParity:e.yParity?z(e.yParity,{size:1}):ae("0x",{size:32})}}async function ua(e,t){const{chainId:r,entryPointAddress:n,context:a,...i}=t,s=ft(i),{paymasterPostOpGasLimit:o,paymasterVerificationGasLimit:f,...c}=await e.request({method:"pm_getPaymasterData",params:[{...s,callGasLimit:s.callGasLimit??"0x0",verificationGasLimit:s.verificationGasLimit??"0x0",preVerificationGas:s.preVerificationGas??"0x0"},n,z(r),a]});return{...c,...o&&{paymasterPostOpGasLimit:qe(o)},...f&&{paymasterVerificationGasLimit:qe(f)}}}async function da(e,t){const{chainId:r,entryPointAddress:n,context:a,...i}=t,s=ft(i),{paymasterPostOpGasLimit:o,paymasterVerificationGasLimit:f,...c}=await e.request({method:"pm_getPaymasterStubData",params:[{...s,callGasLimit:s.callGasLimit??"0x0",verificationGasLimit:s.verificationGasLimit??"0x0",preVerificationGas:s.preVerificationGas??"0x0"},n,z(r),a]});return{...c,...o&&{paymasterPostOpGasLimit:qe(o)},...f&&{paymasterVerificationGasLimit:qe(f)}}}const la=["factory","fees","gas","paymaster","nonce","signature","authorization"];async function Wt(e,t){var Q,_;const r=t,{account:n=e.account,dataSuffix:a=typeof e.dataSuffix=="string"?e.dataSuffix:(Q=e.dataSuffix)==null?void 0:Q.value,parameters:i=la,stateOverride:s}=r;if(!n)throw new ot;const o=Re(n),f=e,c=r.paymaster??(f==null?void 0:f.paymaster),p=typeof c=="string"?c:void 0,{getPaymasterStubData:m,getPaymasterData:u}=(()=>{if(c===!0)return{getPaymasterStubData:g=>te(f,da,"getPaymasterStubData")(g),getPaymasterData:g=>te(f,ua,"getPaymasterData")(g)};if(typeof c=="object"){const{getPaymasterStubData:g,getPaymasterData:C}=c;return{getPaymasterStubData:C&&g?g:C,getPaymasterData:C&&g?C:void 0}}return{getPaymasterStubData:void 0,getPaymasterData:void 0}})(),l=r.paymasterContext?r.paymasterContext:f==null?void 0:f.paymasterContext;let d={...r,paymaster:p,sender:o.address};const[w,P,U,$,v]=await Promise.all([(async()=>r.calls?o.encodeCalls(r.calls.map(g=>{const C=g;return C.abi?{data:Rr(C),to:C.to,value:C.value}:C})):r.callData)(),(async()=>{if(!i.includes("factory"))return;if(r.initCode)return{initCode:r.initCode};if(r.factory&&r.factoryData)return{factory:r.factory,factoryData:r.factoryData};const{factory:g,factoryData:C}=await o.getFactoryArgs();return o.entryPoint.version==="0.6"?{initCode:g&&C?Oe([g,C]):void 0}:{factory:g,factoryData:C}})(),(async()=>{var g;if(i.includes("fees")){if(typeof r.maxFeePerGas=="bigint"&&typeof r.maxPriorityFeePerGas=="bigint")return d;if((g=f==null?void 0:f.userOperation)!=null&&g.estimateFeesPerGas){const C=await f.userOperation.estimateFeesPerGas({account:o,bundlerClient:f,userOperation:d});return{...d,...C}}try{const C=f.client??e,M=await te(C,jr,"estimateFeesPerGas")({chain:C.chain,type:"eip1559"});return{maxFeePerGas:typeof r.maxFeePerGas=="bigint"?r.maxFeePerGas:BigInt(2n*M.maxFeePerGas),maxPriorityFeePerGas:typeof r.maxPriorityFeePerGas=="bigint"?r.maxPriorityFeePerGas:BigInt(2n*M.maxPriorityFeePerGas)}}catch{return}}})(),(async()=>{if(i.includes("nonce"))return typeof r.nonce=="bigint"?r.nonce:o.getNonce()})(),(async()=>{if(i.includes("authorization")){if(typeof r.authorization=="object")return r.authorization;if(o.authorization&&!await o.isDeployed())return{...await Wr(o.client,o.authorization),r:"0xfffffffffffffffffffffffffffffff000000000000000000000000000000000",s:"0x7aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",yParity:1}}})()]);typeof w<"u"&&(d.callData=a?Oe([w,a]):w),typeof P<"u"&&(d={...d,...P}),typeof U<"u"&&(d={...d,...U}),typeof $<"u"&&(d.nonce=$),typeof v<"u"&&(d.authorization=v),i.includes("signature")&&(typeof r.signature<"u"?d.signature=r.signature:d.signature=await o.getStubSignature(d)),o.entryPoint.version==="0.6"&&!d.initCode&&(d.initCode="0x");let R;async function k(){return R||(e.chain?e.chain.id:(R=await te(e,Xt,"getChainId")({}),R))}let ne=!1;if(i.includes("paymaster")&&m&&!p&&!r.paymasterAndData){const{isFinal:g=!1,sponsor:C,...M}=await m({chainId:await k(),entryPointAddress:o.entryPoint.address,context:l,...d});ne=g,d={...d,...M}}if(o.entryPoint.version==="0.6"&&!d.paymasterAndData&&(d.paymasterAndData="0x"),i.includes("gas")){if((_=o.userOperation)!=null&&_.estimateGas){const g=await o.userOperation.estimateGas(d);d={...d,...g}}if(typeof d.callGasLimit>"u"||typeof d.preVerificationGas>"u"||typeof d.verificationGasLimit>"u"||d.paymaster&&typeof d.paymasterPostOpGasLimit>"u"||d.paymaster&&typeof d.paymasterVerificationGasLimit>"u"){const g=await te(f,Hn,"estimateUserOperationGas")({account:o,callGasLimit:0n,preVerificationGas:0n,verificationGasLimit:0n,stateOverride:s,...d.paymaster?{paymasterPostOpGasLimit:0n,paymasterVerificationGasLimit:0n}:{},...d});d={...d,callGasLimit:d.callGasLimit??g.callGasLimit,preVerificationGas:d.preVerificationGas??g.preVerificationGas,verificationGasLimit:d.verificationGasLimit??g.verificationGasLimit,paymasterPostOpGasLimit:d.paymasterPostOpGasLimit??g.paymasterPostOpGasLimit,paymasterVerificationGasLimit:d.paymasterVerificationGasLimit??g.paymasterVerificationGasLimit}}}if(i.includes("paymaster")&&u&&!p&&!r.paymasterAndData&&!ne){const g=await u({chainId:await k(),entryPointAddress:o.entryPoint.address,context:l,...d});d={...d,...g}}return delete d.calls,delete d.parameters,delete d.paymasterContext,typeof d.paymaster!="string"&&delete d.paymaster,d}async function Hn(e,t){var f;const{account:r=e.account,entryPointAddress:n,stateOverride:a}=t;if(!r&&!t.sender)throw new ot;const i=r?Re(r):void 0,s=Fr(a),o=i?await te(e,Wt,"prepareUserOperation")({...t,parameters:["authorization","factory","nonce","paymaster","signature","maxFeePerGas","maxPriorityFeePerGas"]}):t;try{const c=[ft(o),n??((f=i==null?void 0:i.entryPoint)==null?void 0:f.address)],p=await e.request({method:"eth_estimateUserOperationGas",params:s?[...c,s]:[...c]});return fa(p)}catch(c){const p=t.calls;throw $n(c,{...o,...p?{calls:p}:{}})}}function ya(e){return e.request({method:"eth_supportedEntryPoints"})}function pa(e){const t={...e};return e.callGasLimit&&(t.callGasLimit=BigInt(e.callGasLimit)),e.maxFeePerGas&&(t.maxFeePerGas=BigInt(e.maxFeePerGas)),e.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=BigInt(e.maxPriorityFeePerGas)),e.nonce&&(t.nonce=BigInt(e.nonce)),e.paymasterPostOpGasLimit&&(t.paymasterPostOpGasLimit=BigInt(e.paymasterPostOpGasLimit)),e.paymasterVerificationGasLimit&&(t.paymasterVerificationGasLimit=BigInt(e.paymasterVerificationGasLimit)),e.preVerificationGas&&(t.preVerificationGas=BigInt(e.preVerificationGas)),e.verificationGasLimit&&(t.verificationGasLimit=BigInt(e.verificationGasLimit)),t}async function ma(e,{hash:t}){const r=await e.request({method:"eth_getUserOperationByHash",params:[t]},{dedupe:!0});if(!r)throw new ra({hash:t});const{blockHash:n,blockNumber:a,entryPoint:i,transactionHash:s,userOperation:o}=r;return{blockHash:n,blockNumber:BigInt(a),entryPoint:i,transactionHash:s,userOperation:pa(o)}}function ha(e){const t={...e};return e.actualGasCost&&(t.actualGasCost=BigInt(e.actualGasCost)),e.actualGasUsed&&(t.actualGasUsed=BigInt(e.actualGasUsed)),e.logs&&(t.logs=e.logs.map(r=>zr(r))),e.receipt&&(t.receipt=_r(t.receipt)),t}async function Vn(e,{hash:t}){const r=await e.request({method:"eth_getUserOperationReceipt",params:[t]},{dedupe:!0});if(!r)throw new na({hash:t});return ha(r)}async function ba(e,t){var f,c;const{account:r=e.account,entryPointAddress:n}=t;if(!r&&!t.sender)throw new ot;const a=r?Re(r):void 0,i=a?await te(e,Wt,"prepareUserOperation")(t):t,s=t.signature||await((f=a==null?void 0:a.signUserOperation)==null?void 0:f.call(a,i)),o=ft({...i,signature:s});try{return await e.request({method:"eth_sendUserOperation",params:[o,n??((c=a==null?void 0:a.entryPoint)==null?void 0:c.address)]},{retryCount:0})}catch(p){const m=t.calls;throw $n(p,{...i,...m?{calls:m}:{},signature:s})}}function ga(e,t){const{hash:r,pollingInterval:n=e.pollingInterval,retryCount:a,timeout:i=12e4}=t;let s=0;const o=kr(["waitForUserOperationReceipt",e.uid,r]);return new Promise((f,c)=>{const p=Kr(o,{resolve:f,reject:c},m=>{const u=w=>{d(),w(),p()},l=i?setTimeout(()=>u(()=>m.reject(new ln({hash:r}))),i):void 0,d=Yr(async()=>{a&&s>=a&&(clearTimeout(l),u(()=>m.reject(new ln({hash:r}))));try{const w=await te(e,Vn,"getUserOperationReceipt")({hash:r});clearTimeout(l),u(()=>m.resolve(w))}catch(w){const P=w;P.name!=="UserOperationReceiptNotFoundError"&&(clearTimeout(l),u(()=>m.reject(P)))}s++},{emitOnBegin:!0,interval:n});return d})})}function wa(e){return{estimateUserOperationGas:t=>Hn(e,t),getChainId:()=>Xt(e),getSupportedEntryPoints:()=>ya(e),getUserOperation:t=>ma(e,t),getUserOperationReceipt:t=>Vn(e,t),prepareUserOperation:t=>Wt(e,t),sendUserOperation:t=>ba(e,t),waitForUserOperationReceipt:t=>ga(e,t)}}function ps(e){const{client:t,dataSuffix:r,key:n="bundler",name:a="Bundler Client",paymaster:i,paymasterContext:s,transport:o,userOperation:f}=e;return Object.assign(Xr({...e,chain:e.chain??(t==null?void 0:t.chain),key:n,name:a,transport:o,type:"bundlerClient"}),{client:t,dataSuffix:r??(t==null?void 0:t.dataSuffix),paymaster:i,paymasterContext:s,userOperation:f}).extend(wa)}const xa="0.1.1";function Ea(){return xa}class V extends Error{constructor(t,r={}){const n=(()=>{var f;if(r.cause instanceof V){if(r.cause.details)return r.cause.details;if(r.cause.shortMessage)return r.cause.shortMessage}return(f=r.cause)!=null&&f.message?r.cause.message:r.details})(),a=r.cause instanceof V&&r.cause.docsPath||r.docsPath,s=`https://oxlib.sh${a??""}`,o=[t||"An error occurred.",...r.metaMessages?["",...r.metaMessages]:[],...n||a?["",n?`Details: ${n}`:void 0,a?`See: ${s}`:void 0]:[]].filter(f=>typeof f=="string").join(`
|
|
5
5
|
`);super(o,r.cause?{cause:r.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:`ox@${Ea()}`}),this.cause=r.cause,this.details=n,this.docs=s,this.docsPath=a,this.shortMessage=t}walk(t){return Rn(this,t)}}function Rn(e,t){return t!=null&&t(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause?Rn(e.cause,t):t?null:e}const Se=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function ct(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function qt(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function Be(e,...t){if(!ct(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function jn(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");qt(e.outputLen),qt(e.blockLen)}function rt(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function va(e,t){Be(e);const r=t.outputLen;if(e.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)}function Ce(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function mt(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function re(e,t){return e<<32-t|e>>>t}const Fn=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",Oa=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Ue(e){if(Be(e),Fn)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=Oa[e[r]];return t}const ie={_0:48,_9:57,A:65,F:70,a:97,f:102};function yn(e){if(e>=ie._0&&e<=ie._9)return e-ie._0;if(e>=ie.A&&e<=ie.F)return e-(ie.A-10);if(e>=ie.a&&e<=ie.f)return e-(ie.a-10)}function at(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(Fn)return Uint8Array.fromHex(e);const t=e.length,r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(r);for(let a=0,i=0;a<r;a++,i+=2){const s=yn(e.charCodeAt(i)),o=yn(e.charCodeAt(i+1));if(s===void 0||o===void 0){const f=e[i]+e[i+1];throw new Error('hex string expected, got non-hex character "'+f+'" at index '+i)}n[a]=s*16+o}return n}function Ba(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function Jt(e){return typeof e=="string"&&(e=Ba(e)),Be(e),e}function he(...e){let t=0;for(let n=0;n<e.length;n++){const a=e[n];Be(a),t+=a.length}const r=new Uint8Array(t);for(let n=0,a=0;n<e.length;n++){const i=e[n];r.set(i,a),a+=i.length}return r}class zn{}function Qt(e){const t=n=>e().update(Jt(n)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function _n(e=32){if(Se&&typeof Se.getRandomValues=="function")return Se.getRandomValues(new Uint8Array(e));if(Se&&typeof Se.randomBytes=="function")return Uint8Array.from(Se.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}function Pa(e,t,r,n){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,r,n);const a=BigInt(32),i=BigInt(4294967295),s=Number(r>>a&i),o=Number(r&i),f=n?4:0,c=n?0:4;e.setUint32(t+f,s,n),e.setUint32(t+c,o,n)}function Sa(e,t,r){return e&t^~e&r}function Aa(e,t,r){return e&t^e&r^t&r}class Tn extends zn{constructor(t,r,n,a){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=r,this.padOffset=n,this.isLE=a,this.buffer=new Uint8Array(t),this.view=mt(this.buffer)}update(t){rt(this),t=Jt(t),Be(t);const{view:r,buffer:n,blockLen:a}=this,i=t.length;for(let s=0;s<i;){const o=Math.min(a-this.pos,i-s);if(o===a){const f=mt(t);for(;a<=i-s;s+=a)this.process(f,s);continue}n.set(t.subarray(s,s+o),this.pos),this.pos+=o,s+=o,this.pos===a&&(this.process(r,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){rt(this),va(t,this),this.finished=!0;const{buffer:r,view:n,blockLen:a,isLE:i}=this;let{pos:s}=this;r[s++]=128,Ce(this.buffer.subarray(s)),this.padOffset>a-s&&(this.process(n,0),s=0);for(let m=s;m<a;m++)r[m]=0;Pa(n,a-8,BigInt(this.length*8),i),this.process(n,0);const o=mt(t),f=this.outputLen;if(f%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const c=f/4,p=this.get();if(c>p.length)throw new Error("_sha2: outputLen bigger than state");for(let m=0;m<c;m++)o.setUint32(4*m,p[m],i)}digest(){const{buffer:t,outputLen:r}=this;this.digestInto(t);const n=t.slice(0,r);return this.destroy(),n}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:r,buffer:n,length:a,finished:i,destroyed:s,pos:o}=this;return t.destroyed=s,t.finished=i,t.length=a,t.pos=o,a%r&&t.buffer.set(n),t}clone(){return this._cloneInto()}}const le=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),q=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),K=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),ze=BigInt(2**32-1),pn=BigInt(32);function Ia(e,t=!1){return t?{h:Number(e&ze),l:Number(e>>pn&ze)}:{h:Number(e>>pn&ze)|0,l:Number(e&ze)|0}}function Ga(e,t=!1){const r=e.length;let n=new Uint32Array(r),a=new Uint32Array(r);for(let i=0;i<r;i++){const{h:s,l:o}=Ia(e[i],t);[n[i],a[i]]=[s,o]}return[n,a]}const mn=(e,t,r)=>e>>>r,hn=(e,t,r)=>e<<32-r|t>>>r,Ae=(e,t,r)=>e>>>r|t<<32-r,Ie=(e,t,r)=>e<<32-r|t>>>r,_e=(e,t,r)=>e<<64-r|t>>>r-32,Te=(e,t,r)=>e>>>r-32|t<<64-r;function se(e,t,r,n){const a=(t>>>0)+(n>>>0);return{h:e+r+(a/2**32|0)|0,l:a|0}}const Ua=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),La=(e,t,r,n)=>t+r+n+(e/2**32|0)|0,Da=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),Ca=(e,t,r,n,a)=>t+r+n+a+(e/2**32|0)|0,$a=(e,t,r,n,a)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(a>>>0),Ha=(e,t,r,n,a,i)=>t+r+n+a+i+(e/2**32|0)|0,Va=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),ye=new Uint32Array(64);class Ra extends Tn{constructor(t=32){super(64,t,8,!1),this.A=le[0]|0,this.B=le[1]|0,this.C=le[2]|0,this.D=le[3]|0,this.E=le[4]|0,this.F=le[5]|0,this.G=le[6]|0,this.H=le[7]|0}get(){const{A:t,B:r,C:n,D:a,E:i,F:s,G:o,H:f}=this;return[t,r,n,a,i,s,o,f]}set(t,r,n,a,i,s,o,f){this.A=t|0,this.B=r|0,this.C=n|0,this.D=a|0,this.E=i|0,this.F=s|0,this.G=o|0,this.H=f|0}process(t,r){for(let m=0;m<16;m++,r+=4)ye[m]=t.getUint32(r,!1);for(let m=16;m<64;m++){const u=ye[m-15],l=ye[m-2],d=re(u,7)^re(u,18)^u>>>3,w=re(l,17)^re(l,19)^l>>>10;ye[m]=w+ye[m-7]+d+ye[m-16]|0}let{A:n,B:a,C:i,D:s,E:o,F:f,G:c,H:p}=this;for(let m=0;m<64;m++){const u=re(o,6)^re(o,11)^re(o,25),l=p+u+Sa(o,f,c)+Va[m]+ye[m]|0,w=(re(n,2)^re(n,13)^re(n,22))+Aa(n,a,i)|0;p=c,c=f,f=o,o=s+l|0,s=i,i=a,a=n,n=l+w|0}n=n+this.A|0,a=a+this.B|0,i=i+this.C|0,s=s+this.D|0,o=o+this.E|0,f=f+this.F|0,c=c+this.G|0,p=p+this.H|0,this.set(n,a,i,s,o,f,c,p)}roundClean(){Ce(ye)}destroy(){this.set(0,0,0,0,0,0,0,0),Ce(this.buffer)}}const Nn=Ga(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),ja=Nn[0],Fa=Nn[1],pe=new Uint32Array(80),me=new Uint32Array(80);class kn extends Tn{constructor(t=64){super(128,t,16,!1),this.Ah=K[0]|0,this.Al=K[1]|0,this.Bh=K[2]|0,this.Bl=K[3]|0,this.Ch=K[4]|0,this.Cl=K[5]|0,this.Dh=K[6]|0,this.Dl=K[7]|0,this.Eh=K[8]|0,this.El=K[9]|0,this.Fh=K[10]|0,this.Fl=K[11]|0,this.Gh=K[12]|0,this.Gl=K[13]|0,this.Hh=K[14]|0,this.Hl=K[15]|0}get(){const{Ah:t,Al:r,Bh:n,Bl:a,Ch:i,Cl:s,Dh:o,Dl:f,Eh:c,El:p,Fh:m,Fl:u,Gh:l,Gl:d,Hh:w,Hl:P}=this;return[t,r,n,a,i,s,o,f,c,p,m,u,l,d,w,P]}set(t,r,n,a,i,s,o,f,c,p,m,u,l,d,w,P){this.Ah=t|0,this.Al=r|0,this.Bh=n|0,this.Bl=a|0,this.Ch=i|0,this.Cl=s|0,this.Dh=o|0,this.Dl=f|0,this.Eh=c|0,this.El=p|0,this.Fh=m|0,this.Fl=u|0,this.Gh=l|0,this.Gl=d|0,this.Hh=w|0,this.Hl=P|0}process(t,r){for(let v=0;v<16;v++,r+=4)pe[v]=t.getUint32(r),me[v]=t.getUint32(r+=4);for(let v=16;v<80;v++){const R=pe[v-15]|0,k=me[v-15]|0,ne=Ae(R,k,1)^Ae(R,k,8)^mn(R,k,7),Q=Ie(R,k,1)^Ie(R,k,8)^hn(R,k,7),_=pe[v-2]|0,g=me[v-2]|0,C=Ae(_,g,19)^_e(_,g,61)^mn(_,g,6),M=Ie(_,g,19)^Te(_,g,61)^hn(_,g,6),L=Da(Q,M,me[v-7],me[v-16]),b=Ca(L,ne,C,pe[v-7],pe[v-16]);pe[v]=b|0,me[v]=L|0}let{Ah:n,Al:a,Bh:i,Bl:s,Ch:o,Cl:f,Dh:c,Dl:p,Eh:m,El:u,Fh:l,Fl:d,Gh:w,Gl:P,Hh:U,Hl:$}=this;for(let v=0;v<80;v++){const R=Ae(m,u,14)^Ae(m,u,18)^_e(m,u,41),k=Ie(m,u,14)^Ie(m,u,18)^Te(m,u,41),ne=m&l^~m&w,Q=u&d^~u&P,_=$a($,k,Q,Fa[v],me[v]),g=Ha(_,U,R,ne,ja[v],pe[v]),C=_|0,M=Ae(n,a,28)^_e(n,a,34)^_e(n,a,39),L=Ie(n,a,28)^Te(n,a,34)^Te(n,a,39),b=n&i^n&o^i&o,h=a&s^a&f^s&f;U=w|0,$=P|0,w=l|0,P=d|0,l=m|0,d=u|0,{h:m,l:u}=se(c|0,p|0,g|0,C|0),c=o|0,p=f|0,o=i|0,f=s|0,i=n|0,s=a|0;const y=Ua(C,L,h);n=La(y,g,M,b),a=y|0}({h:n,l:a}=se(this.Ah|0,this.Al|0,n|0,a|0)),{h:i,l:s}=se(this.Bh|0,this.Bl|0,i|0,s|0),{h:o,l:f}=se(this.Ch|0,this.Cl|0,o|0,f|0),{h:c,l:p}=se(this.Dh|0,this.Dl|0,c|0,p|0),{h:m,l:u}=se(this.Eh|0,this.El|0,m|0,u|0),{h:l,l:d}=se(this.Fh|0,this.Fl|0,l|0,d|0),{h:w,l:P}=se(this.Gh|0,this.Gl|0,w|0,P|0),{h:U,l:$}=se(this.Hh|0,this.Hl|0,U|0,$|0),this.set(n,a,i,s,o,f,c,p,m,u,l,d,w,P,U,$)}roundClean(){Ce(pe,me)}destroy(){Ce(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class za extends kn{constructor(){super(48),this.Ah=q[0]|0,this.Al=q[1]|0,this.Bh=q[2]|0,this.Bl=q[3]|0,this.Ch=q[4]|0,this.Cl=q[5]|0,this.Dh=q[6]|0,this.Dl=q[7]|0,this.Eh=q[8]|0,this.El=q[9]|0,this.Fh=q[10]|0,this.Fl=q[11]|0,this.Gh=q[12]|0,this.Gl=q[13]|0,this.Hh=q[14]|0,this.Hl=q[15]|0}}const Mn=Qt(()=>new Ra),_a=Qt(()=>new kn),Ta=Qt(()=>new za),Na=Mn;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const en=BigInt(0),Kt=BigInt(1);function it(e,t=""){if(typeof e!="boolean"){const r=t&&`"${t}"`;throw new Error(r+"expected boolean, got type="+typeof e)}return e}function xe(e,t,r=""){const n=ct(e),a=e==null?void 0:e.length,i=t!==void 0;if(!n||i&&a!==t){const s=r&&`"${r}" `,o=i?` of length ${t}`:"",f=n?`length=${a}`:`type=${typeof e}`;throw new Error(s+"expected Uint8Array"+o+", got "+f)}return e}function Ne(e){const t=e.toString(16);return t.length&1?"0"+t:t}function Zn(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?en:BigInt("0x"+e)}function ut(e){return Zn(Ue(e))}function qn(e){return Be(e),Zn(Ue(Uint8Array.from(e).reverse()))}function tn(e,t){return at(e.toString(16).padStart(t*2,"0"))}function Kn(e,t){return tn(e,t).reverse()}function W(e,t,r){let n;if(typeof t=="string")try{n=at(t)}catch(a){throw new Error(e+" must be hex string or Uint8Array, cause: "+a)}else if(ct(t))n=Uint8Array.from(t);else throw new Error(e+" must be hex string or Uint8Array");return n.length,n}const ht=e=>typeof e=="bigint"&&en<=e;function ka(e,t,r){return ht(e)&&ht(t)&&ht(r)&&t<=e&&e<r}function Ma(e,t,r,n){if(!ka(t,r,n))throw new Error("expected valid "+e+": "+r+" <= n < "+n+", got "+t)}function Yn(e){let t;for(t=0;e>en;e>>=Kt,t+=1);return t}const je=e=>(Kt<<BigInt(e))-Kt;function Za(e,t,r){if(typeof e!="number"||e<2)throw new Error("hashLen must be a number");if(typeof t!="number"||t<2)throw new Error("qByteLen must be a number");if(typeof r!="function")throw new Error("hmacFn must be a function");const n=l=>new Uint8Array(l),a=l=>Uint8Array.of(l);let i=n(e),s=n(e),o=0;const f=()=>{i.fill(1),s.fill(0),o=0},c=(...l)=>r(s,i,...l),p=(l=n(0))=>{s=c(a(0),l),i=c(),l.length!==0&&(s=c(a(1),l),i=c())},m=()=>{if(o++>=1e3)throw new Error("drbg: tried 1000 values");let l=0;const d=[];for(;l<t;){i=c();const w=i.slice();d.push(w),l+=i.length}return he(...d)};return(l,d)=>{f(),p(l);let w;for(;!(w=d(m()));)p();return f(),w}}function nn(e,t,r={}){if(!e||typeof e!="object")throw new Error("expected valid options object");function n(a,i,s){const o=e[a];if(s&&o===void 0)return;const f=typeof o;if(f!==i||o===null)throw new Error(`param "${a}" is invalid: expected ${i}, got ${f}`)}Object.entries(t).forEach(([a,i])=>n(a,i,!1)),Object.entries(r).forEach(([a,i])=>n(a,i,!0))}function bn(e){const t=new WeakMap;return(r,...n)=>{const a=t.get(r);if(a!==void 0)return a;const i=e(r,...n);return t.set(r,i),i}}const qa="#__bigint";function dt(e,t,r){return JSON.stringify(e,(n,a)=>typeof a=="bigint"?a.toString()+qa:a,r)}function Ka(e,t){if(He(e)>t)throw new ui({givenSize:He(e),maxSize:t})}function Ya(e,t){if(typeof t=="number"&&t>0&&t>He(e)-1)throw new ar({offset:t,position:"start",size:He(e)})}function Xa(e,t,r){if(typeof t=="number"&&typeof r=="number"&&He(e)!==r-t)throw new ar({offset:r,position:"end",size:He(e)})}const oe={zero:48,nine:57,A:65,F:70,a:97,f:102};function gn(e){if(e>=oe.zero&&e<=oe.nine)return e-oe.zero;if(e>=oe.A&&e<=oe.F)return e-(oe.A-10);if(e>=oe.a&&e<=oe.f)return e-(oe.a-10)}function rn(e,t){if(ge(e)>t)throw new si({givenSize:ge(e),maxSize:t})}function Wa(e,t){if(typeof t=="number"&&t>0&&t>ge(e)-1)throw new er({offset:t,position:"start",size:ge(e)})}function Ja(e,t,r){if(typeof t=="number"&&typeof r=="number"&&ge(e)!==r-t)throw new er({offset:r,position:"end",size:ge(e)})}function Xn(e,t={}){const{dir:r,size:n=32}=t;if(n===0)return e;const a=e.replace("0x","");if(a.length>n*2)throw new oi({size:Math.ceil(a.length/2),targetSize:n,type:"Hex"});return`0x${a[r==="right"?"padEnd":"padStart"](n*2,"0")}`}const Qa=new TextEncoder,ei=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function ti(e,t={}){const{strict:r=!1}=t;if(!e)throw new wn(e);if(typeof e!="string")throw new wn(e);if(r&&!/^0x[0-9a-fA-F]*$/.test(e))throw new xn(e);if(!e.startsWith("0x"))throw new xn(e)}function lt(...e){return`0x${e.reduce((t,r)=>t+r.replace("0x",""),"")}`}function Wn(e){return e instanceof Uint8Array?$e(e):Array.isArray(e)?$e(new Uint8Array(e)):e}function $e(e,t={}){let r="";for(let a=0;a<e.length;a++)r+=ei[e[a]];const n=`0x${r}`;return typeof t.size=="number"?(rn(n,t.size),Qn(n,t.size)):n}function be(e,t={}){const{signed:r,size:n}=t,a=BigInt(e);let i;n?r?i=(1n<<BigInt(n)*8n-1n)-1n:i=2n**(BigInt(n)*8n)-1n:typeof e=="number"&&(i=BigInt(Number.MAX_SAFE_INTEGER));const s=typeof i=="bigint"&&r?-i-1n:0;if(i&&a>i||a<s){const c=typeof e=="bigint"?"n":"";throw new ii({max:i?`${i}${c}`:void 0,min:`${s}${c}`,signed:r,size:n,value:`${e}${c}`})}const f=`0x${(r&&a<0?(1n<<BigInt(n*8))+BigInt(a):a).toString(16)}`;return n?ni(f,n):f}function Jn(e,t={}){return $e(Qa.encode(e),t)}function ni(e,t){return Xn(e,{dir:"left",size:t})}function Qn(e,t){return Xn(e,{dir:"right",size:t})}function fe(e,t,r,n={}){const{strict:a}=n;Wa(e,t);const i=`0x${e.replace("0x","").slice((t??0)*2,(r??e.length)*2)}`;return a&&Ja(i,t,r),i}function ge(e){return Math.ceil((e.length-2)/2)}function ri(e,t={}){const{signed:r}=t;t.size&&rn(e,t.size);const n=BigInt(e);if(!r)return n;const a=(e.length-2)/2,i=(1n<<BigInt(a)*8n)-1n,s=i>>1n;return n<=s?n:n-i-1n}function ai(e,t={}){const{strict:r=!1}=t;try{return ti(e,{strict:r}),!0}catch{return!1}}class ii extends V{constructor({max:t,min:r,signed:n,size:a,value:i}){super(`Number \`${i}\` is not in safe${a?` ${a*8}-bit`:""}${n?" signed":" unsigned"} integer range ${t?`(\`${r}\` to \`${t}\`)`:`(above \`${r}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}}class wn extends V{constructor(t){super(`Value \`${typeof t=="object"?dt(t):t}\` of type \`${typeof t}\` is an invalid hex type.`,{metaMessages:['Hex types must be represented as `"0x${string}"`.']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexTypeError"})}}class xn extends V{constructor(t){super(`Value \`${t}\` is an invalid hex value.`,{metaMessages:['Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexValueError"})}}let si=class extends V{constructor({givenSize:t,maxSize:r}){super(`Size cannot exceed \`${r}\` bytes. Given size: \`${t}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}},er=class extends V{constructor({offset:t,position:r,size:n}){super(`Slice ${r==="start"?"starting":"ending"} at offset \`${t}\` is out-of-bounds (size: \`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SliceOffsetOutOfBoundsError"})}};class oi extends V{constructor({size:t,targetSize:r,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\`${t}\`) exceeds padding size (\`${r}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}}function fi(e){if(!(e instanceof Uint8Array)){if(!e)throw new ke(e);if(typeof e!="object")throw new ke(e);if(!("BYTES_PER_ELEMENT"in e))throw new ke(e);if(e.BYTES_PER_ELEMENT!==1||e.constructor.name!=="Uint8Array")throw new ke(e)}}function tr(e){return e instanceof Uint8Array?e:typeof e=="string"?rr(e):nr(e)}function nr(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function rr(e,t={}){const{size:r}=t;let n=e;r&&(rn(e,r),n=Qn(e,r));let a=n.slice(2);a.length%2&&(a=`0${a}`);const i=a.length/2,s=new Uint8Array(i);for(let o=0,f=0;o<i;o++){const c=gn(a.charCodeAt(f++)),p=gn(a.charCodeAt(f++));if(c===void 0||p===void 0)throw new V(`Invalid byte sequence ("${a[f-2]}${a[f-1]}" in "${a}").`);s[o]=c*16+p}return s}function He(e){return e.length}function En(e,t,r,n={}){const{strict:a}=n;Ya(e,t);const i=e.slice(t,r);return a&&Xa(i,t,r),i}function vn(e,t={}){const{size:r}=t;typeof r<"u"&&Ka(e,r);const n=$e(e,t);return ri(n,t)}function ci(e){try{return fi(e),!0}catch{return!1}}class ke extends V{constructor(t){super(`Value \`${typeof t=="object"?dt(t):t}\` of type \`${typeof t}\` is an invalid Bytes value.`,{metaMessages:["Bytes values must be of type `Bytes`."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesTypeError"})}}class ui extends V{constructor({givenSize:t,maxSize:r}){super(`Size cannot exceed \`${r}\` bytes. Given size: \`${t}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeOverflowError"})}}class ar extends V{constructor({offset:t,position:r,size:n}){super(`Slice ${r==="start"?"starting":"ending"} at offset \`${t}\` is out-of-bounds (size: \`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SliceOffsetOutOfBoundsError"})}}function ir(e,t={}){const{as:r=typeof e=="string"?"Hex":"Bytes"}=t,n=Na(tr(e));return r==="Bytes"?n:$e(n)}function sr(e,t={}){const{compressed:r}=t,{prefix:n,x:a,y:i}=e;if(r===!1||typeof a=="bigint"&&typeof i=="bigint"){if(n!==4)throw new On({prefix:n,cause:new mi});return}if(r===!0||typeof a=="bigint"&&typeof i>"u"){if(n!==3&&n!==2)throw new On({prefix:n,cause:new pi});return}throw new yi({publicKey:e})}function di(e){const t=(()=>{if(ai(e))return or(e);if(ci(e))return li(e);const{prefix:r,x:n,y:a}=e;return typeof n=="bigint"&&typeof a=="bigint"?{prefix:r??4,x:n,y:a}:{prefix:r,x:n}})();return sr(t),t}function li(e){return or($e(e))}function or(e){if(e.length!==132&&e.length!==130&&e.length!==68)throw new hi({publicKey:e});if(e.length===130){const n=BigInt(fe(e,0,32)),a=BigInt(fe(e,32,64));return{prefix:4,x:n,y:a}}if(e.length===132){const n=Number(fe(e,0,1)),a=BigInt(fe(e,1,33)),i=BigInt(fe(e,33,65));return{prefix:n,x:a,y:i}}const t=Number(fe(e,0,1)),r=BigInt(fe(e,1,33));return{prefix:t,x:r}}function bs(e,t={}){sr(e);const{prefix:r,x:n,y:a}=e,{includePrefix:i=!0}=t;return lt(i?be(r,{size:1}):"0x",be(n,{size:32}),typeof a=="bigint"?be(a,{size:32}):"0x")}class yi extends V{constructor({publicKey:t}){super(`Value \`${dt(t)}\` is not a valid public key.`,{metaMessages:["Public key must contain:","- an `x` and `prefix` value (compressed)","- an `x`, `y`, and `prefix` value (uncompressed)"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidError"})}}class On extends V{constructor({prefix:t,cause:r}){super(`Prefix "${t}" is invalid.`,{cause:r}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidPrefixError"})}}class pi extends V{constructor(){super("Prefix must be 2 or 3 for compressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidCompressedPrefixError"})}}class mi extends V{constructor(){super("Prefix must be 4 for uncompressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidUncompressedPrefixError"})}}let hi=class extends V{constructor({publicKey:t}){super(`Value \`${t}\` is an invalid public key size.`,{metaMessages:["Expected: 33 bytes (compressed + prefix), 64 bytes (uncompressed) or 65 bytes (uncompressed + prefix).",`Received ${ge(Wn(t))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidSerializedSizeError"})}};const Bn=2n**256n-1n;class fr extends zn{constructor(t,r){super(),this.finished=!1,this.destroyed=!1,jn(t);const n=Jt(r);if(this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const a=this.blockLen,i=new Uint8Array(a);i.set(n.length>a?t.create().update(n).digest():n);for(let s=0;s<i.length;s++)i[s]^=54;this.iHash.update(i),this.oHash=t.create();for(let s=0;s<i.length;s++)i[s]^=106;this.oHash.update(i),Ce(i)}update(t){return rt(this),this.iHash.update(t),this}digestInto(t){rt(this),Be(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:r,iHash:n,finished:a,destroyed:i,blockLen:s,outputLen:o}=this;return t=t,t.finished=a,t.destroyed=i,t.blockLen=s,t.outputLen=o,t.oHash=r._cloneInto(t.oHash),t.iHash=n._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const cr=(e,t,r)=>new fr(e,t).update(r).digest();cr.create=(e,t)=>new fr(e,t);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const J=BigInt(0),Y=BigInt(1),Ee=BigInt(2),ur=BigInt(3),dr=BigInt(4),lr=BigInt(5),bi=BigInt(7),yr=BigInt(8),gi=BigInt(9),pr=BigInt(16);function ee(e,t){const r=e%t;return r>=J?r:t+r}function Pn(e,t){if(e===J)throw new Error("invert: expected non-zero number");if(t<=J)throw new Error("invert: expected positive modulus, got "+t);let r=ee(e,t),n=t,a=J,i=Y;for(;r!==J;){const o=n/r,f=n%r,c=a-i*o;n=r,r=f,a=i,i=c}if(n!==Y)throw new Error("invert: does not exist");return ee(a,t)}function an(e,t,r){if(!e.eql(e.sqr(t),r))throw new Error("Cannot find square root")}function mr(e,t){const r=(e.ORDER+Y)/dr,n=e.pow(t,r);return an(e,n,t),n}function wi(e,t){const r=(e.ORDER-lr)/yr,n=e.mul(t,Ee),a=e.pow(n,r),i=e.mul(t,a),s=e.mul(e.mul(i,Ee),a),o=e.mul(i,e.sub(s,e.ONE));return an(e,o,t),o}function xi(e){const t=Pe(e),r=hr(e),n=r(t,t.neg(t.ONE)),a=r(t,n),i=r(t,t.neg(n)),s=(e+bi)/pr;return(o,f)=>{let c=o.pow(f,s),p=o.mul(c,n);const m=o.mul(c,a),u=o.mul(c,i),l=o.eql(o.sqr(p),f),d=o.eql(o.sqr(m),f);c=o.cmov(c,p,l),p=o.cmov(u,m,d);const w=o.eql(o.sqr(p),f),P=o.cmov(c,p,w);return an(o,P,f),P}}function hr(e){if(e<ur)throw new Error("sqrt is not defined for small field");let t=e-Y,r=0;for(;t%Ee===J;)t/=Ee,r++;let n=Ee;const a=Pe(e);for(;Sn(a,n)===1;)if(n++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(r===1)return mr;let i=a.pow(n,t);const s=(t+Y)/Ee;return function(f,c){if(f.is0(c))return c;if(Sn(f,c)!==1)throw new Error("Cannot find square root");let p=r,m=f.mul(f.ONE,i),u=f.pow(c,t),l=f.pow(c,s);for(;!f.eql(u,f.ONE);){if(f.is0(u))return f.ZERO;let d=1,w=f.sqr(u);for(;!f.eql(w,f.ONE);)if(d++,w=f.sqr(w),d===p)throw new Error("Cannot find square root");const P=Y<<BigInt(p-d-1),U=f.pow(m,P);p=d,m=f.sqr(U),u=f.mul(u,m),l=f.mul(l,U)}return l}}function Ei(e){return e%dr===ur?mr:e%yr===lr?wi:e%pr===gi?xi(e):hr(e)}const vi=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function Oi(e){const t={ORDER:"bigint",MASK:"bigint",BYTES:"number",BITS:"number"},r=vi.reduce((n,a)=>(n[a]="function",n),t);return nn(e,r),e}function Bi(e,t,r){if(r<J)throw new Error("invalid exponent, negatives unsupported");if(r===J)return e.ONE;if(r===Y)return t;let n=e.ONE,a=t;for(;r>J;)r&Y&&(n=e.mul(n,a)),a=e.sqr(a),r>>=Y;return n}function br(e,t,r=!1){const n=new Array(t.length).fill(r?e.ZERO:void 0),a=t.reduce((s,o,f)=>e.is0(o)?s:(n[f]=s,e.mul(s,o)),e.ONE),i=e.inv(a);return t.reduceRight((s,o,f)=>e.is0(o)?s:(n[f]=e.mul(s,n[f]),e.mul(s,o)),i),n}function Sn(e,t){const r=(e.ORDER-Y)/Ee,n=e.pow(t,r),a=e.eql(n,e.ONE),i=e.eql(n,e.ZERO),s=e.eql(n,e.neg(e.ONE));if(!a&&!i&&!s)throw new Error("invalid Legendre symbol result");return a?1:i?0:-1}function gr(e,t){t!==void 0&&qt(t);const r=t!==void 0?t:e.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function Pe(e,t,r=!1,n={}){if(e<=J)throw new Error("invalid field: expected ORDER > 0, got "+e);let a,i,s=!1,o;if(typeof t=="object"&&t!=null){if(n.sqrt||r)throw new Error("cannot specify opts in two arguments");const u=t;u.BITS&&(a=u.BITS),u.sqrt&&(i=u.sqrt),typeof u.isLE=="boolean"&&(r=u.isLE),typeof u.modFromBytes=="boolean"&&(s=u.modFromBytes),o=u.allowedLengths}else typeof t=="number"&&(a=t),n.sqrt&&(i=n.sqrt);const{nBitLength:f,nByteLength:c}=gr(e,a);if(c>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let p;const m=Object.freeze({ORDER:e,isLE:r,BITS:f,BYTES:c,MASK:je(f),ZERO:J,ONE:Y,allowedLengths:o,create:u=>ee(u,e),isValid:u=>{if(typeof u!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof u);return J<=u&&u<e},is0:u=>u===J,isValidNot0:u=>!m.is0(u)&&m.isValid(u),isOdd:u=>(u&Y)===Y,neg:u=>ee(-u,e),eql:(u,l)=>u===l,sqr:u=>ee(u*u,e),add:(u,l)=>ee(u+l,e),sub:(u,l)=>ee(u-l,e),mul:(u,l)=>ee(u*l,e),pow:(u,l)=>Bi(m,u,l),div:(u,l)=>ee(u*Pn(l,e),e),sqrN:u=>u*u,addN:(u,l)=>u+l,subN:(u,l)=>u-l,mulN:(u,l)=>u*l,inv:u=>Pn(u,e),sqrt:i||(u=>(p||(p=Ei(e)),p(m,u))),toBytes:u=>r?Kn(u,c):tn(u,c),fromBytes:(u,l=!0)=>{if(o){if(!o.includes(u.length)||u.length>c)throw new Error("Field.fromBytes: expected "+o+" bytes, got "+u.length);const w=new Uint8Array(c);w.set(u,r?0:w.length-u.length),u=w}if(u.length!==c)throw new Error("Field.fromBytes: expected "+c+" bytes, got "+u.length);let d=r?qn(u):ut(u);if(s&&(d=ee(d,e)),!l&&!m.isValid(d))throw new Error("invalid field element: outside of range 0..ORDER");return d},invertBatch:u=>br(m,u),cmov:(u,l,d)=>d?l:u});return Object.freeze(m)}function wr(e){if(typeof e!="bigint")throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function xr(e){const t=wr(e);return t+Math.ceil(t/2)}function Pi(e,t,r=!1){const n=e.length,a=wr(t),i=xr(t);if(n<16||n<i||n>1024)throw new Error("expected "+i+"-1024 bytes of input, got "+n);const s=r?qn(e):ut(e),o=ee(s,t-Y)+Y;return r?Kn(o,a):tn(o,a)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Ve=BigInt(0),ve=BigInt(1);function st(e,t){const r=t.negate();return e?r:t}function bt(e,t){const r=br(e.Fp,t.map(n=>n.Z));return t.map((n,a)=>e.fromAffine(n.toAffine(r[a])))}function Er(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function gt(e,t){Er(e,t);const r=Math.ceil(t/e)+1,n=2**(e-1),a=2**e,i=je(e),s=BigInt(e);return{windows:r,windowSize:n,mask:i,maxNumber:a,shiftBy:s}}function An(e,t,r){const{windowSize:n,mask:a,maxNumber:i,shiftBy:s}=r;let o=Number(e&a),f=e>>s;o>n&&(o-=i,f+=ve);const c=t*n,p=c+Math.abs(o)-1,m=o===0,u=o<0,l=t%2!==0;return{nextN:f,offset:p,isZero:m,isNeg:u,isNegF:l,offsetF:c}}function Si(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((r,n)=>{if(!(r instanceof t))throw new Error("invalid point at index "+n)})}function Ai(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((r,n)=>{if(!t.isValid(r))throw new Error("invalid scalar at index "+n)})}const wt=new WeakMap,vr=new WeakMap;function xt(e){return vr.get(e)||1}function In(e){if(e!==Ve)throw new Error("invalid wNAF")}class Ii{constructor(t,r){this.BASE=t.BASE,this.ZERO=t.ZERO,this.Fn=t.Fn,this.bits=r}_unsafeLadder(t,r,n=this.ZERO){let a=t;for(;r>Ve;)r&ve&&(n=n.add(a)),a=a.double(),r>>=ve;return n}precomputeWindow(t,r){const{windows:n,windowSize:a}=gt(r,this.bits),i=[];let s=t,o=s;for(let f=0;f<n;f++){o=s,i.push(o);for(let c=1;c<a;c++)o=o.add(s),i.push(o);s=o.double()}return i}wNAF(t,r,n){if(!this.Fn.isValid(n))throw new Error("invalid scalar");let a=this.ZERO,i=this.BASE;const s=gt(t,this.bits);for(let o=0;o<s.windows;o++){const{nextN:f,offset:c,isZero:p,isNeg:m,isNegF:u,offsetF:l}=An(n,o,s);n=f,p?i=i.add(st(u,r[l])):a=a.add(st(m,r[c]))}return In(n),{p:a,f:i}}wNAFUnsafe(t,r,n,a=this.ZERO){const i=gt(t,this.bits);for(let s=0;s<i.windows&&n!==Ve;s++){const{nextN:o,offset:f,isZero:c,isNeg:p}=An(n,s,i);if(n=o,!c){const m=r[f];a=a.add(p?m.negate():m)}}return In(n),a}getPrecomputes(t,r,n){let a=wt.get(r);return a||(a=this.precomputeWindow(r,t),t!==1&&(typeof n=="function"&&(a=n(a)),wt.set(r,a))),a}cached(t,r,n){const a=xt(t);return this.wNAF(a,this.getPrecomputes(a,t,n),r)}unsafe(t,r,n,a){const i=xt(t);return i===1?this._unsafeLadder(t,r,a):this.wNAFUnsafe(i,this.getPrecomputes(i,t,n),r,a)}createCache(t,r){Er(r,this.bits),vr.set(t,r),wt.delete(t)}hasCache(t){return xt(t)!==1}}function Gi(e,t,r,n){let a=t,i=e.ZERO,s=e.ZERO;for(;r>Ve||n>Ve;)r&ve&&(i=i.add(a)),n&ve&&(s=s.add(a)),a=a.double(),r>>=ve,n>>=ve;return{p1:i,p2:s}}function Ui(e,t,r,n){Si(r,e),Ai(n,t);const a=r.length,i=n.length;if(a!==i)throw new Error("arrays of points and scalars must have equal length");const s=e.ZERO,o=Yn(BigInt(a));let f=1;o>12?f=o-3:o>4?f=o-2:o>0&&(f=2);const c=je(f),p=new Array(Number(c)+1).fill(s),m=Math.floor((t.BITS-1)/f)*f;let u=s;for(let l=m;l>=0;l-=f){p.fill(s);for(let w=0;w<i;w++){const P=n[w],U=Number(P>>BigInt(l)&c);p[U]=p[U].add(r[w])}let d=s;for(let w=p.length-1,P=s;w>0;w--)P=P.add(p[w]),d=d.add(P);if(u=u.add(d),l!==0)for(let w=0;w<f;w++)u=u.double()}return u}function Gn(e,t,r){if(t){if(t.ORDER!==e)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return Oi(t),t}else return Pe(e,{isLE:r})}function Li(e,t,r={},n){if(n===void 0&&(n=e==="edwards"),!t||typeof t!="object")throw new Error(`expected valid ${e} CURVE object`);for(const f of["p","n","h"]){const c=t[f];if(!(typeof c=="bigint"&&c>Ve))throw new Error(`CURVE.${f} must be positive bigint`)}const a=Gn(t.p,r.Fp,n),i=Gn(t.n,r.Fn,n),o=["Gx","Gy","a","b"];for(const f of o)if(!a.isValid(t[f]))throw new Error(`CURVE.${f} must be valid field element of CURVE.Fp`);return t=Object.freeze(Object.assign({},t)),{CURVE:t,Fp:a,Fn:i}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Un=(e,t)=>(e+(e>=0?t:-t)/Or)/t;function Di(e,t,r){const[[n,a],[i,s]]=t,o=Un(s*e,r),f=Un(-a*e,r);let c=e-o*n-f*i,p=-o*a-f*s;const m=c<ue,u=p<ue;m&&(c=-c),u&&(p=-p);const l=je(Math.ceil(Yn(r)/2))+Le;if(c<ue||c>=l||p<ue||p>=l)throw new Error("splitScalar (endomorphism): failed, k="+e);return{k1neg:m,k1:c,k2neg:u,k2:p}}function Yt(e){if(!["compact","recovered","der"].includes(e))throw new Error('Signature format must be "compact", "recovered", or "der"');return e}function Et(e,t){const r={};for(let n of Object.keys(t))r[n]=e[n]===void 0?t[n]:e[n];return it(r.lowS,"lowS"),it(r.prehash,"prehash"),r.format!==void 0&&Yt(r.format),r}class Ci extends Error{constructor(t=""){super(t)}}const ce={Err:Ci,_tlv:{encode:(e,t)=>{const{Err:r}=ce;if(e<0||e>256)throw new r("tlv.encode: wrong tag");if(t.length&1)throw new r("tlv.encode: unpadded data");const n=t.length/2,a=Ne(n);if(a.length/2&128)throw new r("tlv.encode: long form length too big");const i=n>127?Ne(a.length/2|128):"";return Ne(e)+i+a+t},decode(e,t){const{Err:r}=ce;let n=0;if(e<0||e>256)throw new r("tlv.encode: wrong tag");if(t.length<2||t[n++]!==e)throw new r("tlv.decode: wrong tlv");const a=t[n++],i=!!(a&128);let s=0;if(!i)s=a;else{const f=a&127;if(!f)throw new r("tlv.decode(long): indefinite length not supported");if(f>4)throw new r("tlv.decode(long): byte length is too big");const c=t.subarray(n,n+f);if(c.length!==f)throw new r("tlv.decode: length bytes not complete");if(c[0]===0)throw new r("tlv.decode(long): zero leftmost byte");for(const p of c)s=s<<8|p;if(n+=f,s<128)throw new r("tlv.decode(long): not minimal encoding")}const o=t.subarray(n,n+s);if(o.length!==s)throw new r("tlv.decode: wrong value length");return{v:o,l:t.subarray(n+s)}}},_int:{encode(e){const{Err:t}=ce;if(e<ue)throw new t("integer: negative integers are not allowed");let r=Ne(e);if(Number.parseInt(r[0],16)&8&&(r="00"+r),r.length&1)throw new t("unexpected DER parsing assertion: unpadded hex");return r},decode(e){const{Err:t}=ce;if(e[0]&128)throw new t("invalid signature integer: negative");if(e[0]===0&&!(e[1]&128))throw new t("invalid signature integer: unnecessary leading zero");return ut(e)}},toSig(e){const{Err:t,_int:r,_tlv:n}=ce,a=W("signature",e),{v:i,l:s}=n.decode(48,a);if(s.length)throw new t("invalid signature: left bytes after parsing");const{v:o,l:f}=n.decode(2,i),{v:c,l:p}=n.decode(2,f);if(p.length)throw new t("invalid signature: left bytes after parsing");return{r:r.decode(o),s:r.decode(c)}},hexFromSig(e){const{_tlv:t,_int:r}=ce,n=t.encode(2,r.encode(e.r)),a=t.encode(2,r.encode(e.s)),i=n+a;return t.encode(48,i)}},ue=BigInt(0),Le=BigInt(1),Or=BigInt(2),Me=BigInt(3),$i=BigInt(4);function Ge(e,t){const{BYTES:r}=e;let n;if(typeof t=="bigint")n=t;else{let a=W("private key",t);try{n=e.fromBytes(a)}catch{throw new Error(`invalid private key: expected ui8a of size ${r}, got ${typeof t}`)}}if(!e.isValidNot0(n))throw new Error("invalid private key: out of range [1..N-1]");return n}function Hi(e,t={}){const r=Li("weierstrass",e,t),{Fp:n,Fn:a}=r;let i=r.CURVE;const{h:s,n:o}=i;nn(t,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object",wrapPrivateKey:"boolean"});const{endo:f}=t;if(f&&(!n.is0(i.a)||typeof f.beta!="bigint"||!Array.isArray(f.basises)))throw new Error('invalid endo: expected "beta": bigint and "basises": array');const c=Pr(n,a);function p(){if(!n.isOdd)throw new Error("compression is not supported: Field does not have .isOdd()")}function m(L,b,h){const{x:y,y:x}=b.toAffine(),E=n.toBytes(y);if(it(h,"isCompressed"),h){p();const S=!n.isOdd(x);return he(Br(S),E)}else return he(Uint8Array.of(4),E,n.toBytes(x))}function u(L){xe(L,void 0,"Point");const{publicKey:b,publicKeyUncompressed:h}=c,y=L.length,x=L[0],E=L.subarray(1);if(y===b&&(x===2||x===3)){const S=n.fromBytes(E);if(!n.isValid(S))throw new Error("bad point: is not on curve, wrong x");const B=w(S);let O;try{O=n.sqrt(B)}catch(T){const H=T instanceof Error?": "+T.message:"";throw new Error("bad point: is not on curve, sqrt error"+H)}p();const A=n.isOdd(O);return(x&1)===1!==A&&(O=n.neg(O)),{x:S,y:O}}else if(y===h&&x===4){const S=n.BYTES,B=n.fromBytes(E.subarray(0,S)),O=n.fromBytes(E.subarray(S,S*2));if(!P(B,O))throw new Error("bad point: is not on curve");return{x:B,y:O}}else throw new Error(`bad point: got length ${y}, expected compressed=${b} or uncompressed=${h}`)}const l=t.toBytes||m,d=t.fromBytes||u;function w(L){const b=n.sqr(L),h=n.mul(b,L);return n.add(n.add(h,n.mul(L,i.a)),i.b)}function P(L,b){const h=n.sqr(b),y=w(L);return n.eql(h,y)}if(!P(i.Gx,i.Gy))throw new Error("bad curve params: generator point");const U=n.mul(n.pow(i.a,Me),$i),$=n.mul(n.sqr(i.b),BigInt(27));if(n.is0(n.add(U,$)))throw new Error("bad curve params: a or b");function v(L,b,h=!1){if(!n.isValid(b)||h&&n.is0(b))throw new Error(`bad point coordinate ${L}`);return b}function R(L){if(!(L instanceof g))throw new Error("ProjectivePoint expected")}function k(L){if(!f||!f.basises)throw new Error("no endo");return Di(L,f.basises,a.ORDER)}const ne=bn((L,b)=>{const{X:h,Y:y,Z:x}=L;if(n.eql(x,n.ONE))return{x:h,y};const E=L.is0();b==null&&(b=E?n.ONE:n.inv(x));const S=n.mul(h,b),B=n.mul(y,b),O=n.mul(x,b);if(E)return{x:n.ZERO,y:n.ZERO};if(!n.eql(O,n.ONE))throw new Error("invZ was invalid");return{x:S,y:B}}),Q=bn(L=>{if(L.is0()){if(t.allowInfinityPoint&&!n.is0(L.Y))return;throw new Error("bad point: ZERO")}const{x:b,y:h}=L.toAffine();if(!n.isValid(b)||!n.isValid(h))throw new Error("bad point: x or y not field elements");if(!P(b,h))throw new Error("bad point: equation left != right");if(!L.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});function _(L,b,h,y,x){return h=new g(n.mul(h.X,L),h.Y,h.Z),b=st(y,b),h=st(x,h),b.add(h)}class g{constructor(b,h,y){this.X=v("x",b),this.Y=v("y",h,!0),this.Z=v("z",y),Object.freeze(this)}static CURVE(){return i}static fromAffine(b){const{x:h,y}=b||{};if(!b||!n.isValid(h)||!n.isValid(y))throw new Error("invalid affine point");if(b instanceof g)throw new Error("projective point not allowed");return n.is0(h)&&n.is0(y)?g.ZERO:new g(h,y,n.ONE)}static fromBytes(b){const h=g.fromAffine(d(xe(b,void 0,"point")));return h.assertValidity(),h}static fromHex(b){return g.fromBytes(W("pointHex",b))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(b=8,h=!0){return M.createCache(this,b),h||this.multiply(Me),this}assertValidity(){Q(this)}hasEvenY(){const{y:b}=this.toAffine();if(!n.isOdd)throw new Error("Field doesn't support isOdd");return!n.isOdd(b)}equals(b){R(b);const{X:h,Y:y,Z:x}=this,{X:E,Y:S,Z:B}=b,O=n.eql(n.mul(h,B),n.mul(E,x)),A=n.eql(n.mul(y,B),n.mul(S,x));return O&&A}negate(){return new g(this.X,n.neg(this.Y),this.Z)}double(){const{a:b,b:h}=i,y=n.mul(h,Me),{X:x,Y:E,Z:S}=this;let B=n.ZERO,O=n.ZERO,A=n.ZERO,G=n.mul(x,x),T=n.mul(E,E),H=n.mul(S,S),D=n.mul(x,E);return D=n.add(D,D),A=n.mul(x,S),A=n.add(A,A),B=n.mul(b,A),O=n.mul(y,H),O=n.add(B,O),B=n.sub(T,O),O=n.add(T,O),O=n.mul(B,O),B=n.mul(D,B),A=n.mul(y,A),H=n.mul(b,H),D=n.sub(G,H),D=n.mul(b,D),D=n.add(D,A),A=n.add(G,G),G=n.add(A,G),G=n.add(G,H),G=n.mul(G,D),O=n.add(O,G),H=n.mul(E,S),H=n.add(H,H),G=n.mul(H,D),B=n.sub(B,G),A=n.mul(H,T),A=n.add(A,A),A=n.add(A,A),new g(B,O,A)}add(b){R(b);const{X:h,Y:y,Z:x}=this,{X:E,Y:S,Z:B}=b;let O=n.ZERO,A=n.ZERO,G=n.ZERO;const T=i.a,H=n.mul(i.b,Me);let D=n.mul(h,E),j=n.mul(y,S),N=n.mul(x,B),X=n.add(h,y),F=n.add(E,S);X=n.mul(X,F),F=n.add(D,j),X=n.sub(X,F),F=n.add(h,x);let Z=n.add(E,B);return F=n.mul(F,Z),Z=n.add(D,N),F=n.sub(F,Z),Z=n.add(y,x),O=n.add(S,B),Z=n.mul(Z,O),O=n.add(j,N),Z=n.sub(Z,O),G=n.mul(T,F),O=n.mul(H,N),G=n.add(O,G),O=n.sub(j,G),G=n.add(j,G),A=n.mul(O,G),j=n.add(D,D),j=n.add(j,D),N=n.mul(T,N),F=n.mul(H,F),j=n.add(j,N),N=n.sub(D,N),N=n.mul(T,N),F=n.add(F,N),D=n.mul(j,F),A=n.add(A,D),D=n.mul(Z,F),O=n.mul(X,O),O=n.sub(O,D),D=n.mul(X,j),G=n.mul(Z,G),G=n.add(G,D),new g(O,A,G)}subtract(b){return this.add(b.negate())}is0(){return this.equals(g.ZERO)}multiply(b){const{endo:h}=t;if(!a.isValidNot0(b))throw new Error("invalid scalar: out of range");let y,x;const E=S=>M.cached(this,S,B=>bt(g,B));if(h){const{k1neg:S,k1:B,k2neg:O,k2:A}=k(b),{p:G,f:T}=E(B),{p:H,f:D}=E(A);x=T.add(D),y=_(h.beta,G,H,S,O)}else{const{p:S,f:B}=E(b);y=S,x=B}return bt(g,[y,x])[0]}multiplyUnsafe(b){const{endo:h}=t,y=this;if(!a.isValid(b))throw new Error("invalid scalar: out of range");if(b===ue||y.is0())return g.ZERO;if(b===Le)return y;if(M.hasCache(this))return this.multiply(b);if(h){const{k1neg:x,k1:E,k2neg:S,k2:B}=k(b),{p1:O,p2:A}=Gi(g,y,E,B);return _(h.beta,O,A,x,S)}else return M.unsafe(y,b)}multiplyAndAddUnsafe(b,h,y){const x=this.multiplyUnsafe(h).add(b.multiplyUnsafe(y));return x.is0()?void 0:x}toAffine(b){return ne(this,b)}isTorsionFree(){const{isTorsionFree:b}=t;return s===Le?!0:b?b(g,this):M.unsafe(this,o).is0()}clearCofactor(){const{clearCofactor:b}=t;return s===Le?this:b?b(g,this):this.multiplyUnsafe(s)}isSmallOrder(){return this.multiplyUnsafe(s).is0()}toBytes(b=!0){return it(b,"isCompressed"),this.assertValidity(),l(g,this,b)}toHex(b=!0){return Ue(this.toBytes(b))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}get px(){return this.X}get py(){return this.X}get pz(){return this.Z}toRawBytes(b=!0){return this.toBytes(b)}_setWindowSize(b){this.precompute(b)}static normalizeZ(b){return bt(g,b)}static msm(b,h){return Ui(g,a,b,h)}static fromPrivateKey(b){return g.BASE.multiply(Ge(a,b))}}g.BASE=new g(i.Gx,i.Gy,n.ONE),g.ZERO=new g(n.ZERO,n.ONE,n.ZERO),g.Fp=n,g.Fn=a;const C=a.BITS,M=new Ii(g,t.endo?Math.ceil(C/2):C);return g.BASE.precompute(8),g}function Br(e){return Uint8Array.of(e?2:3)}function Pr(e,t){return{secretKey:t.BYTES,publicKey:1+e.BYTES,publicKeyUncompressed:1+2*e.BYTES,publicKeyHasPrefix:!0,signature:2*t.BYTES}}function Vi(e,t={}){const{Fn:r}=e,n=t.randomBytes||_n,a=Object.assign(Pr(e.Fp,r),{seed:xr(r.ORDER)});function i(l){try{return!!Ge(r,l)}catch{return!1}}function s(l,d){const{publicKey:w,publicKeyUncompressed:P}=a;try{const U=l.length;return d===!0&&U!==w||d===!1&&U!==P?!1:!!e.fromBytes(l)}catch{return!1}}function o(l=n(a.seed)){return Pi(xe(l,a.seed,"seed"),r.ORDER)}function f(l,d=!0){return e.BASE.multiply(Ge(r,l)).toBytes(d)}function c(l){const d=o(l);return{secretKey:d,publicKey:f(d)}}function p(l){if(typeof l=="bigint")return!1;if(l instanceof e)return!0;const{secretKey:d,publicKey:w,publicKeyUncompressed:P}=a;if(r.allowedLengths||d===w)return;const U=W("key",l).length;return U===w||U===P}function m(l,d,w=!0){if(p(l)===!0)throw new Error("first arg must be private key");if(p(d)===!1)throw new Error("second arg must be public key");const P=Ge(r,l);return e.fromHex(d).multiply(P).toBytes(w)}return Object.freeze({getPublicKey:f,getSharedSecret:m,keygen:c,Point:e,utils:{isValidSecretKey:i,isValidPublicKey:s,randomSecretKey:o,isValidPrivateKey:i,randomPrivateKey:o,normPrivateKeyToScalar:l=>Ge(r,l),precompute(l=8,d=e.BASE){return d.precompute(l,!1)}},lengths:a})}function Ri(e,t,r={}){jn(t),nn(r,{},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});const n=r.randomBytes||_n,a=r.hmac||((h,...y)=>cr(t,h,he(...y))),{Fp:i,Fn:s}=e,{ORDER:o,BITS:f}=s,{keygen:c,getPublicKey:p,getSharedSecret:m,utils:u,lengths:l}=Vi(e,r),d={prehash:!1,lowS:typeof r.lowS=="boolean"?r.lowS:!1,format:void 0,extraEntropy:!1},w="compact";function P(h){const y=o>>Le;return h>y}function U(h,y){if(!s.isValidNot0(y))throw new Error(`invalid signature ${h}: out of range 1..Point.Fn.ORDER`);return y}function $(h,y){Yt(y);const x=l.signature,E=y==="compact"?x:y==="recovered"?x+1:void 0;return xe(h,E,`${y} signature`)}class v{constructor(y,x,E){this.r=U("r",y),this.s=U("s",x),E!=null&&(this.recovery=E),Object.freeze(this)}static fromBytes(y,x=w){$(y,x);let E;if(x==="der"){const{r:A,s:G}=ce.toSig(xe(y));return new v(A,G)}x==="recovered"&&(E=y[0],x="compact",y=y.subarray(1));const S=s.BYTES,B=y.subarray(0,S),O=y.subarray(S,S*2);return new v(s.fromBytes(B),s.fromBytes(O),E)}static fromHex(y,x){return this.fromBytes(at(y),x)}addRecoveryBit(y){return new v(this.r,this.s,y)}recoverPublicKey(y){const x=i.ORDER,{r:E,s:S,recovery:B}=this;if(B==null||![0,1,2,3].includes(B))throw new Error("recovery id invalid");if(o*Or<x&&B>1)throw new Error("recovery id is ambiguous for h>1 curve");const A=B===2||B===3?E+o:E;if(!i.isValid(A))throw new Error("recovery id 2 or 3 invalid");const G=i.toBytes(A),T=e.fromBytes(he(Br((B&1)===0),G)),H=s.inv(A),D=k(W("msgHash",y)),j=s.create(-D*H),N=s.create(S*H),X=e.BASE.multiplyUnsafe(j).add(T.multiplyUnsafe(N));if(X.is0())throw new Error("point at infinify");return X.assertValidity(),X}hasHighS(){return P(this.s)}toBytes(y=w){if(Yt(y),y==="der")return at(ce.hexFromSig(this));const x=s.toBytes(this.r),E=s.toBytes(this.s);if(y==="recovered"){if(this.recovery==null)throw new Error("recovery bit must be present");return he(Uint8Array.of(this.recovery),x,E)}return he(x,E)}toHex(y){return Ue(this.toBytes(y))}assertValidity(){}static fromCompact(y){return v.fromBytes(W("sig",y),"compact")}static fromDER(y){return v.fromBytes(W("sig",y),"der")}normalizeS(){return this.hasHighS()?new v(this.r,s.neg(this.s),this.recovery):this}toDERRawBytes(){return this.toBytes("der")}toDERHex(){return Ue(this.toBytes("der"))}toCompactRawBytes(){return this.toBytes("compact")}toCompactHex(){return Ue(this.toBytes("compact"))}}const R=r.bits2int||function(y){if(y.length>8192)throw new Error("input is too large");const x=ut(y),E=y.length*8-f;return E>0?x>>BigInt(E):x},k=r.bits2int_modN||function(y){return s.create(R(y))},ne=je(f);function Q(h){return Ma("num < 2^"+f,h,ue,ne),s.toBytes(h)}function _(h,y){return xe(h,void 0,"message"),y?xe(t(h),void 0,"prehashed message"):h}function g(h,y,x){if(["recovered","canonical"].some(j=>j in x))throw new Error("sign() legacy options not supported");const{lowS:E,prehash:S,extraEntropy:B}=Et(x,d);h=_(h,S);const O=k(h),A=Ge(s,y),G=[Q(A),Q(O)];if(B!=null&&B!==!1){const j=B===!0?n(l.secretKey):B;G.push(W("extraEntropy",j))}const T=he(...G),H=O;function D(j){const N=R(j);if(!s.isValidNot0(N))return;const X=s.inv(N),F=e.BASE.multiply(N).toAffine(),Z=s.create(F.x);if(Z===ue)return;const Fe=s.create(X*s.create(H+Z*A));if(Fe===ue)return;let fn=(F.x===Z?0:2)|Number(F.y&Le),cn=Fe;return E&&P(Fe)&&(cn=s.neg(Fe),fn^=1),new v(Z,cn,fn)}return{seed:T,k2sig:D}}function C(h,y,x={}){h=W("message",h);const{seed:E,k2sig:S}=g(h,y,x);return Za(t.outputLen,s.BYTES,a)(E,S)}function M(h){let y;const x=typeof h=="string"||ct(h),E=!x&&h!==null&&typeof h=="object"&&typeof h.r=="bigint"&&typeof h.s=="bigint";if(!x&&!E)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");if(E)y=new v(h.r,h.s);else if(x){try{y=v.fromBytes(W("sig",h),"der")}catch(S){if(!(S instanceof ce.Err))throw S}if(!y)try{y=v.fromBytes(W("sig",h),"compact")}catch{return!1}}return y||!1}function L(h,y,x,E={}){const{lowS:S,prehash:B,format:O}=Et(E,d);if(x=W("publicKey",x),y=_(W("message",y),B),"strict"in E)throw new Error("options.strict was renamed to lowS");const A=O===void 0?M(h):v.fromBytes(W("sig",h),O);if(A===!1)return!1;try{const G=e.fromBytes(x);if(S&&A.hasHighS())return!1;const{r:T,s:H}=A,D=k(y),j=s.inv(H),N=s.create(D*j),X=s.create(T*j),F=e.BASE.multiplyUnsafe(N).add(G.multiplyUnsafe(X));return F.is0()?!1:s.create(F.x)===T}catch{return!1}}function b(h,y,x={}){const{prehash:E}=Et(x,d);return y=_(y,E),v.fromBytes(h,"recovered").recoverPublicKey(y).toBytes()}return Object.freeze({keygen:c,getPublicKey:p,getSharedSecret:m,utils:u,lengths:l,Point:e,sign:C,verify:L,recoverPublicKey:b,Signature:v,hash:t})}function ji(e){const t={a:e.a,b:e.b,p:e.Fp.ORDER,n:e.n,h:e.h,Gx:e.Gx,Gy:e.Gy},r=e.Fp;let n=e.allowedPrivateKeyLengths?Array.from(new Set(e.allowedPrivateKeyLengths.map(s=>Math.ceil(s/2)))):void 0;const a=Pe(t.n,{BITS:e.nBitLength,allowedLengths:n,modFromBytes:e.wrapPrivateKey}),i={Fp:r,Fn:a,allowInfinityPoint:e.allowInfinityPoint,endo:e.endo,isTorsionFree:e.isTorsionFree,clearCofactor:e.clearCofactor,fromBytes:e.fromBytes,toBytes:e.toBytes};return{CURVE:t,curveOpts:i}}function Fi(e){const{CURVE:t,curveOpts:r}=ji(e),n={hmac:e.hmac,randomBytes:e.randomBytes,lowS:e.lowS,bits2int:e.bits2int,bits2int_modN:e.bits2int_modN};return{CURVE:t,curveOpts:r,hash:e.hash,ecdsaOpts:n}}function zi(e,t){const r=t.Point;return Object.assign({},t,{ProjectivePoint:r,CURVE:Object.assign({},e,gr(r.Fn.ORDER,r.Fn.BITS))})}function _i(e){const{CURVE:t,curveOpts:r,hash:n,ecdsaOpts:a}=Fi(e),i=Hi(t,r),s=Ri(i,n,a);return zi(e,s)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function sn(e,t){const r=n=>_i({...e,hash:n});return{...r(t),create:r}}function Ti(e,t={}){const{recovered:r}=t;if(typeof e.r>"u")throw new vt({signature:e});if(typeof e.s>"u")throw new vt({signature:e});if(r&&typeof e.yParity>"u")throw new vt({signature:e});if(e.r<0n||e.r>Bn)throw new Zi({value:e.r});if(e.s<0n||e.s>Bn)throw new qi({value:e.s});if(typeof e.yParity=="number"&&e.yParity!==0&&e.yParity!==1)throw new on({value:e.yParity})}function ws(e){if(e.length!==130&&e.length!==132)throw new Mi({signature:e});const t=BigInt(fe(e,0,32)),r=BigInt(fe(e,32,64)),n=(()=>{const a=+`0x${e.slice(130)}`;if(!Number.isNaN(a))try{return Ni(a)}catch{throw new on({value:a})}})();return typeof n>"u"?{r:t,s:r}:{r:t,s:r,yParity:n}}function xs(e){Ti(e);const t=e.r,r=e.s;return lt(be(t,{size:32}),be(r,{size:32}),typeof e.yParity=="number"?be(ki(e.yParity),{size:1}):"0x")}function Ni(e){if(e===0||e===27)return 0;if(e===1||e===28)return 1;if(e>=35)return e%2===0?1:0;throw new Ki({value:e})}function ki(e){if(e===0)return 27;if(e===1)return 28;throw new on({value:e})}class Mi extends V{constructor({signature:t}){super(`Value \`${t}\` is an invalid signature size.`,{metaMessages:["Expected: 64 bytes or 65 bytes.",`Received ${ge(Wn(t))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSerializedSizeError"})}}class vt extends V{constructor({signature:t}){super(`Signature \`${dt(t)}\` is missing either an \`r\`, \`s\`, or \`yParity\` property.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.MissingPropertiesError"})}}class Zi extends V{constructor({value:t}){super(`Value \`${t}\` is an invalid r value. r must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidRError"})}}class qi extends V{constructor({value:t}){super(`Value \`${t}\` is an invalid s value. s must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSError"})}}class on extends V{constructor({value:t}){super(`Value \`${t}\` is an invalid y-parity value. Y-parity must be 0 or 1.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidYParityError"})}}class Ki extends V{constructor({value:t}){super(`Value \`${t}\` is an invalid v value. v must be 27, 28 or >=35.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidVError"})}}const Yi=new TextDecoder,Ze=Object.fromEntries(Array.from("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/").map((e,t)=>[t,e.charCodeAt(0)]));({...Object.fromEntries(Array.from("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/").map((e,t)=>[e.charCodeAt(0),t]))});function Xi(e,t={}){const{pad:r=!0,url:n=!1}=t,a=new Uint8Array(Math.ceil(e.length/3)*4);for(let f=0,c=0;c<e.length;f+=4,c+=3){const p=(e[c]<<16)+(e[c+1]<<8)+(e[c+2]|0);a[f]=Ze[p>>18],a[f+1]=Ze[p>>12&63],a[f+2]=Ze[p>>6&63],a[f+3]=Ze[p&63]}const i=e.length%3,s=Math.floor(e.length/3)*4+(i&&i+1);let o=Yi.decode(new Uint8Array(a.buffer,0,s));return r&&i===1&&(o+="=="),r&&i===2&&(o+="="),n&&(o=o.replaceAll("+","-").replaceAll("/","_")),o}function Wi(e,t={}){return Xi(rr(e),t)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Sr={p:BigInt("0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff"),n:BigInt("0xffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551"),h:BigInt(1),a:BigInt("0xffffffff00000001000000000000000000000000fffffffffffffffffffffffc"),b:BigInt("0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b"),Gx:BigInt("0x6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296"),Gy:BigInt("0x4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5")},Ar={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000ffffffff"),n:BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffc7634d81f4372ddf581a0db248b0a77aecec196accc52973"),h:BigInt(1),a:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000fffffffc"),b:BigInt("0xb3312fa7e23ee7e4988e056be3f82d19181d9c6efe8141120314088f5013875ac656398d8a2ed19d2a85c8edd3ec2aef"),Gx:BigInt("0xaa87ca22be8b05378eb1c71ef320ad746e1d3b628ba79b9859f741e082542a385502f25dbf55296c3a545e3872760ab7"),Gy:BigInt("0x3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f")},Ir={p:BigInt("0x1ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),n:BigInt("0x01fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa51868783bf2f966b7fcc0148f709a5d03bb5c9b8899c47aebb6fb71e91386409"),h:BigInt(1),a:BigInt("0x1fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc"),b:BigInt("0x0051953eb9618e1c9a1f929a21a0b68540eea2da725b99b315f3b8b489918ef109e156193951ec7e937b1652c0bd3bb1bf073573df883d2c34f1ef451fd46b503f00"),Gx:BigInt("0x00c6858e06b70404e9cd9e3ecb662395b4429c648139053fb521f828af606b4d3dbaa14b5e77efe75928fe1dc127a2ffa8de3348b3c1856a429bf97e7e31c2e5bd66"),Gy:BigInt("0x011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650")},Ji=Pe(Sr.p),Qi=Pe(Ar.p),es=Pe(Ir.p),ts=sn({...Sr,Fp:Ji,lowS:!1},Mn);sn({...Ar,Fp:Qi,lowS:!1},Ta);sn({...Ir,Fp:es,lowS:!1,allowedPrivateKeyLengths:[130,131,132]},_a);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Ln=ts;Uint8Array.from([105,171,180,181,160,222,75,198,42,42,32,31,141,37,186,233]);function ns(e={}){const{flag:t=5,rpId:r=window.location.hostname,signCount:n=0}=e,a=ir(Jn(r)),i=be(t,{size:1}),s=be(n,{size:4});return lt(a,i,s)}function rs(e){const{challenge:t,crossOrigin:r=!1,extraClientData:n,origin:a=window.location.origin}=e;return JSON.stringify({type:"webauthn.get",challenge:Wi(t,{url:!0,pad:!1}),origin:a,crossOrigin:r,...n})}function Es(e){const{challenge:t,crossOrigin:r,extraClientData:n,flag:a,origin:i,rpId:s,signCount:o,userVerification:f="required"}=e,c=ns({flag:a,rpId:s,signCount:o}),p=rs({challenge:t,crossOrigin:r,extraClientData:n,origin:i}),m=ir(Jn(p)),u=p.indexOf('"challenge"'),l=p.indexOf('"type"'),d={authenticatorData:c,clientDataJSON:p,challengeIndex:u,typeIndex:l,userVerificationRequired:f==="required"},w=lt(c,m);return{metadata:d,payload:w}}async function vs(e={}){const{extractable:t=!1}=e,r=await globalThis.crypto.subtle.generateKey({name:"ECDSA",namedCurve:"P-256"},t,["sign","verify"]),n=await globalThis.crypto.subtle.exportKey("raw",r.publicKey),a=di(new Uint8Array(n));return{privateKey:r.privateKey,publicKey:a}}async function Os(e){const{payload:t,privateKey:r}=e,n=await globalThis.crypto.subtle.sign({name:"ECDSA",hash:"SHA-256"},r,tr(t)),a=nr(new Uint8Array(n)),i=vn(En(a,0,32));let s=vn(En(a,32,64));return s>Ln.CURVE.n/2n&&(s=Ln.CURVE.n-s),{r:i,s}}export{Os as a,xs as b,ps as c,vs as d,ys as e,ws as f,Es as g,ds as h,us as i,ls as j,fe as s,bs as t};
|
|
6
|
-
//# sourceMappingURL=WebCryptoP256-
|
|
6
|
+
//# sourceMappingURL=WebCryptoP256-Cjs6z2kn.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as y,g as o,f as i,p as k,h as E,$ as T}from"./index-
|
|
2
|
-
//# sourceMappingURL=authorizations-
|
|
1
|
+
import{c as y,g as o,f as i,p as k,h as E,$ as T}from"./index-DkvsywiT.js";import"./react-BJ9otK4B.js";import{M as _,E as x,s as D}from"./sendMetaTransaction-CjSg1CLo.js";import{C as d,M as z,Z as C,J as R,I}from"./ethers-CQ_qCABt.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="e6d3759c-a501-4c15-982d-8e7955967feb",e._sentryDebugIdIdentifier="sentry-dbid-e6d3759c-a501-4c15-982d-8e7955967feb")}catch{}})();const v="".trim().toLowerCase(),A={enabled:v!=="0"&&v!=="false",relayerUrl:y.relayerUrl};function q(){return A.enabled}class p extends Error{constructor(r,t){super(`${r} reverted on-chain`),this.what=r,this.txHash=t,this.name="MetaTxRevertedError"}}class f extends Error{constructor(r,t,n){super(`${r} was submitted but not confirmed in time`),this.what=r,this.txHash=t,this.name="MetaTxPendingError",n&&"cause"in n&&(this.cause=n.cause)}}async function L(e,r,t){const n=l();let a;try{a=await n.waitForTransaction(e,1,(t==null?void 0:t.timeoutMs)??12e4)}catch(s){throw new f(r,e,{cause:s})}if(!a)throw new f(r,e);if(a.status===0)throw new p(r,e);return e}async function H(e){const{txHash:r,what:t,isDone:n,timeoutMs:a=10*6e4,onWaiting:s}=e,u=Math.max(e.pollMs??5e3,50),w=l(),h=Date.now();for(;Date.now()-h<a;){try{if(await n())return r}catch{}try{const c=await w.getTransactionReceipt(r);if(c){if(c.status===0)throw new p(t,r);return r}}catch(c){if(c instanceof p)throw c}s==null||s(Date.now()-h),await new Promise(c=>setTimeout(c,u))}try{if(await n())return r}catch{}throw new f(t,r)}var F=(e=>(e.Allowance="allowance",e.Approval="approval",e.Minter="minter",e))(F||{});const g=["function allowance(address owner, address spender) view returns (uint256)","function approve(address spender, uint256 amount) returns (bool)"],m=["function isApprovedForAll(address owner, address operator) view returns (bool)","function setApprovalForAll(address operator, bool approved)"],M=["function globalMinters(address minter) view returns (bool)","function setMinters(address[] minters, bool[] values)"],b=z;function l(){return new R(y.rpcUrl)}async function N(e,r,t){const n=l();switch(e.kind){case"allowance":{const s=await new d(e.contractAddress,g,n).allowance(r,e.spenderAddress);return t==null||t<=0n?s.gt(0):s.gte(t.toString())}case"approval":return new d(e.contractAddress,m,n).isApprovedForAll(r,e.spenderAddress);case"minter":{const a=new d(e.contractAddress,M,n);try{return await a.globalMinters(e.spenderAddress)}catch{return!1}}}}function S(e){return e.kind==="allowance"?o(i.MANAToken,e.chainId):{...o(i.ERC721CollectionV2,e.chainId),address:e.contractAddress}}function O(e,r){const t=new I(e.kind==="allowance"?g:e.kind==="approval"?m:M);switch(e.kind){case"allowance":return t.encodeFunctionData("approve",[e.spenderAddress,r?b:C]);case"approval":return t.encodeFunctionData("setApprovalForAll",[e.spenderAddress,r]);case"minter":return t.encodeFunctionData("setMinters",[[e.spenderAddress],[r]])}}const P=new Set(["eth_signTypedData_v4","eth_signTypedData","eth_sign","personal_sign","eth_requestAccounts","eth_accounts","eth_chainId"]);function U(e,r){return{send:(t,n=[])=>P.has(t)?e.send(t,n):r.send(t,n)}}async function V(e,r,t){const n=O(e,t),a=S(e),s=l(),u=U(r.provider,s),w=await D(u,s,n,a,{serverURL:A.relayerUrl});await L(w,"the authorization")}async function $(e){const{auth:r,signer:t,active:n}=e;if(A.enabled)try{await V(r,t,n);return}catch(a){if(a instanceof _&&a.code===x.USER_DENIED)throw a;E(a,{flow:"authorizations",step:"gasless_fallback"})}switch(await T(t.provider,r.chainId),r.kind){case"allowance":{await(await new d(r.contractAddress,g,t).approve(r.spenderAddress,n?b:C)).wait();return}case"approval":{await(await new d(r.contractAddress,m,t).setApprovalForAll(r.spenderAddress,n)).wait();return}case"minter":{await(await new d(r.contractAddress,M,t).setMinters([r.spenderAddress],[n])).wait();return}}}async function W(e){const r=await e.signer.getAddress();await N(e.auth,r,e.requiredWei)||await $({auth:e.auth,signer:e.signer,active:!0})}function X(e,r){return k(e)&&!r}function G(e,r){return{kind:"allowance",contractAddress:o(i.MANAToken,e).address,spenderAddress:r,chainId:e}}function Q(e){const r=o(i.MANAToken,e),t=o(i.CreditsManager,e);return{id:"credits",group:"buying",kind:"allowance",contractAddress:r.address,spenderAddress:t.address,chainId:e}}function Y(e){const r=o(i.MANAToken,e),t=o(i.OffChainMarketplaceV2,e);return{id:"mana-marketplace",group:"buying",kind:"allowance",contractAddress:r.address,spenderAddress:t.address,chainId:e}}function K(e,r){const t=o(i.OffChainMarketplaceV2,r);return{id:`selling:${e.toLowerCase()}`,group:"selling",kind:"approval",contractAddress:e,spenderAddress:t.address,chainId:r}}function ee(e,r){const t=o(i.OffChainMarketplaceV2,r);return{id:`minting:${e.toLowerCase()}`,group:"minting",kind:"minter",contractAddress:e,spenderAddress:t.address,chainId:r}}export{F as A,p as M,Q as a,Y as b,K as c,ee as d,N as e,q as f,A as g,G as h,W as i,H as j,L as k,f as l,U as m,X as n,l as r,$ as s};
|
|
2
|
+
//# sourceMappingURL=authorizations-DG3pE_Ra.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as v,i as h,b as l,w as ve}from"./lit-element-wjYUA6aF.js";import{n as c,o as u,r as d,a as Dt}from"./class-map-DopF_Eyi.js";import{e as k,r as R,g as y,j as m,O as U,l as w,E as N,R as W,n as xe,b as E,o as g,q as Ke,m as At,W as He,C as it,d as mt,T as nt,i as je,M as _t,t as It,c as Bt}from"./core-
|
|
1
|
+
import{a as v,i as h,b as l,w as ve}from"./lit-element-wjYUA6aF.js";import{n as c,o as u,r as d,a as Dt}from"./class-map-DopF_Eyi.js";import{e as k,r as R,g as y,j as m,O as U,l as w,E as N,R as W,n as xe,b as E,o as g,q as Ke,m as At,W as He,C as it,d as mt,T as nt,i as je,M as _t,t as It,c as Bt}from"./core-oTqh7r_c.js";import{c as p,U as Y}from"./index-CAyGt-H1.js";import{Q as Ut}from"./browser-D7Kn3ZPZ.js";import{e as ct,n as dt}from"./ref-Uk7bJ2Ii.js";import"./index-DkvsywiT.js";import"./react-BJ9otK4B.js";import"./dcl-schemas-dQiKjZkv.js";import"./sentry-BKNqu5k2.js";import"./ethers-CQ_qCABt.js";import"./intl-AKLEHPeO.js";import"./index-BRr8HQ_m.js";import"./events-BZM305XI.js";import"./index-BmIF5kA3.js";import"./index-Dv384wbW.js";import"./index.es-Cl4n0_18.js";import"./index-OpYIGLSa.js";import"./index-CM-SmeDe.js";import"./index.es-C1Q_3dWG.js";import"./browser-ponyfill-B0kQw77h.js";import"./NetworkUtil-lcxMKGH5.js";import"./W3MFrameProviderSingleton-CW_wCSb0.js";import"./async-directive-BF5rCMgn.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new a.Error().stack;e&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[e]="0db2b29b-9b98-4447-b87d-98e34a8f86d4",a._sentryDebugIdIdentifier="sentry-dbid-0db2b29b-9b98-4447-b87d-98e34a8f86d4")}catch{}})();const Nt=v`
|
|
2
2
|
:host {
|
|
3
3
|
position: relative;
|
|
4
4
|
background-color: var(--wui-color-gray-glass-002);
|
|
@@ -2115,4 +2115,4 @@ import{a as v,i as h,b as l,w as ve}from"./lit-element-wjYUA6aF.js";import{n as
|
|
|
2115
2115
|
<wui-text variant="paragraph-500" color="fg-100">Website</wui-text>
|
|
2116
2116
|
</wui-list-item>
|
|
2117
2117
|
`:null}onChromeStore(){var e;(e=this.wallet)!=null&&e.chrome_store&&w.openHref(this.wallet.chrome_store,"_blank")}onAppStore(){var e;(e=this.wallet)!=null&&e.app_store&&w.openHref(this.wallet.app_store,"_blank")}onPlayStore(){var e;(e=this.wallet)!=null&&e.play_store&&w.openHref(this.wallet.play_store,"_blank")}onHomePage(){var e;(e=this.wallet)!=null&&e.homepage&&w.openHref(this.wallet.homepage,"_blank")}};Rt=Oi([p("w3m-downloads-view")],Rt);export{Ve as W3mAllWalletsView,st as W3mConnectingWcBasicView,Rt as W3mDownloadsView};
|
|
2118
|
-
//# sourceMappingURL=basic-
|
|
2118
|
+
//# sourceMappingURL=basic-CXwQwXo0.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Z as y}from"./signing-
|
|
2
|
-
//# sourceMappingURL=biconomy-
|
|
1
|
+
import{Z as y}from"./signing-Cvf-U-NY.js";import{g as u}from"./to-serializable-transaction-DnisUJFN.js";import{s as d,f as w,r as h,j as g,g as i,k as l}from"./prepare-contract-call-CVdKW0Wj.js";import"./utils-Dbmr4uXy.js";import"./sentry-BKNqu5k2.js";import"./react-BJ9otK4B.js";import"./index-DkvsywiT.js";import"./dcl-schemas-dQiKjZkv.js";import"./ethers-CQ_qCABt.js";import"./intl-AKLEHPeO.js";import"./get-bytecode-DuMiiqye.js";import"./transaction-CFTtmwuP.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="bde19268-5f27-494e-9a5a-14c9fa74226e",t._sentryDebugIdIdentifier="sentry-dbid-bde19268-5f27-494e-9a5a-14c9fa74226e")}catch{}})();const c=0n;async function b({account:t,serializableTransaction:e,transaction:r,gasless:n}){const o=u({address:n.relayerForwarderAddress,chain:r.chain,client:r.client}),s=await h({contract:o,method:"function getNonce(address,uint256) view returns (uint256)",params:[t.address,c]}),f=Math.floor(Date.now()/1e3)+(n.deadlineSeconds??3600),a={batchId:c,batchNonce:s,data:e.data,deadline:f,from:t.address,to:e.to,token:y,tokenGasPrice:0n,txGas:e.gas};if(!a.to)throw new Error("Cannot send a transaction without a `to` address");if(!a.txGas)throw new Error("Cannot send a transaction without a `gas` value");if(!a.data)throw new Error("Cannot send a transaction without a `data` value");const p=g([{type:"address"},{type:"address"},{type:"address"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"bytes32"}],[i(a.from),i(a.to),i(a.token),a.txGas,a.tokenGasPrice,a.batchId,a.batchNonce,l(a.data)]),m=await t.signMessage({message:p});return[a,m]}async function P(t){const[e,r]=await b(t),n=await fetch("https://api.biconomy.io/api/v2/meta-tx/native",{body:d({apiId:t.gasless.apiId,from:e.from,gasLimit:e.txGas,params:[e,r],to:e.to}),headers:{"Content-Type":"application/json;charset=utf-8","x-api-key":t.gasless.apiKey},method:"POST"});if(!n.ok)throw new Error(`Failed to send transaction: ${await n.text()}`);const o=await n.json(),s=o.txHash;if(w(s))return{chain:t.transaction.chain,client:t.transaction.client,transactionHash:s};throw new Error(`Failed to send transaction: ${d(o)}`)}export{b as prepareBiconomyTransaction,P as relayBiconomyTransaction};
|
|
2
|
+
//# sourceMappingURL=biconomy-Da8VwiKn.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as w,j as e}from"./react-
|
|
1
|
+
import{r as w,j as e}from"./react-BJ9otK4B.js";import{s as t,I as F,t as o,A as Oe,b as r,at as de,C as pe}from"./index-DkvsywiT.js";import{n as E,T as Ae}from"./categories-Da9Kxo6t.js";import{T as Ue}from"./skeleton.styles-BwxykyN6.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new i.Error().stack;a&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[a]="43aa8c34-f5fa-4e53-8d21-167c52483131",i._sentryDebugIdIdentifier="sentry-dbid-43aa8c34-f5fa-4e53-8d21-167c52483131")}catch{}})();function io(i){const a=w.useRef(null);w.useEffect(()=>{const h=a.current;a.current=i,!(h===null||h===i)&&window.scrollTo({top:0,left:0,behavior:"instant"})},[i])}const Ge=t(F)`
|
|
2
2
|
transition: transform 0.15s ease;
|
|
3
3
|
|
|
4
4
|
&[data-up='true'] {
|
|
@@ -1047,4 +1047,4 @@ import{r as w,j as e}from"./react-DW39N_gE.js";import{s as t,I as F,t as o,A as
|
|
|
1047
1047
|
outline-offset: 2px;
|
|
1048
1048
|
}
|
|
1049
1049
|
`;export{oe as C,U as D,G as F,so as M,J as R,_t as S,$t as a,Xe as b,Mt as c,Nt as d,Dt as e,Ht as f,Lt as g,Ot as h,At as i,ro as j,po as k,lo as l,ho as m,xo as n,uo as o,co as p,go as q,fo as r,ao as s,vt as t,io as u,no as v};
|
|
1050
|
-
//# sourceMappingURL=browseLayout.styles-
|
|
1050
|
+
//# sourceMappingURL=browseLayout.styles-CjADkm7v.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as ie}from"./react-
|
|
1
|
+
import{g as ie}from"./react-BJ9otK4B.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new r.Error().stack;o&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[o]="200e9a32-f578-4adc-b012-018d01a5da40",r._sentryDebugIdIdentifier="sentry-dbid-200e9a32-f578-4adc-b012-018d01a5da40")}catch{}})();function ue(r,o){for(var i=0;i<o.length;i++){const n=o[i];if(typeof n!="string"&&!Array.isArray(n)){for(const t in n)if(t!=="default"&&!(t in r)){const e=Object.getOwnPropertyDescriptor(n,t);e&&Object.defineProperty(r,t,e.get?e:{enumerable:!0,get:()=>n[t]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var z={},Q,At;function se(){return At||(At=1,Q=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),Q}var $={},_={},Rt;function U(){if(Rt)return _;Rt=1;let r;const o=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return _.getSymbolSize=function(n){if(!n)throw new Error('"version" cannot be null or undefined');if(n<1||n>40)throw new Error('"version" should be in range from 1 to 40');return n*4+17},_.getSymbolTotalCodewords=function(n){return o[n]},_.getBCHDigit=function(i){let n=0;for(;i!==0;)n++,i>>>=1;return n},_.setToSJISFunction=function(n){if(typeof n!="function")throw new Error('"toSJISFunc" is not a valid function.');r=n},_.isKanjiModeEnabled=function(){return typeof r<"u"},_.toSJIS=function(n){return r(n)},_}var W={},It;function Ct(){return It||(It=1,(function(r){r.L={bit:1},r.M={bit:0},r.Q={bit:3},r.H={bit:2};function o(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"l":case"low":return r.L;case"m":case"medium":return r.M;case"q":case"quartile":return r.Q;case"h":case"high":return r.H;default:throw new Error("Unknown EC Level: "+i)}}r.isValid=function(n){return n&&typeof n.bit<"u"&&n.bit>=0&&n.bit<4},r.from=function(n,t){if(r.isValid(n))return n;try{return o(n)}catch{return t}}})(W)),W}var Z,bt;function ae(){if(bt)return Z;bt=1;function r(){this.buffer=[],this.length=0}return r.prototype={get:function(o){const i=Math.floor(o/8);return(this.buffer[i]>>>7-o%8&1)===1},put:function(o,i){for(let n=0;n<i;n++)this.putBit((o>>>i-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(o){const i=Math.floor(this.length/8);this.buffer.length<=i&&this.buffer.push(0),o&&(this.buffer[i]|=128>>>this.length%8),this.length++}},Z=r,Z}var X,Tt;function ce(){if(Tt)return X;Tt=1;function r(o){if(!o||o<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=o,this.data=new Uint8Array(o*o),this.reservedBit=new Uint8Array(o*o)}return r.prototype.set=function(o,i,n,t){const e=o*this.size+i;this.data[e]=n,t&&(this.reservedBit[e]=!0)},r.prototype.get=function(o,i){return this.data[o*this.size+i]},r.prototype.xor=function(o,i,n){this.data[o*this.size+i]^=n},r.prototype.isReserved=function(o,i){return this.reservedBit[o*this.size+i]},X=r,X}var x={},Nt;function fe(){return Nt||(Nt=1,(function(r){const o=U().getSymbolSize;r.getRowColCoords=function(n){if(n===1)return[];const t=Math.floor(n/7)+2,e=o(n),u=e===145?26:Math.ceil((e-13)/(2*t-2))*2,a=[e-7];for(let s=1;s<t-1;s++)a[s]=a[s-1]-u;return a.push(6),a.reverse()},r.getPositions=function(n){const t=[],e=r.getRowColCoords(n),u=e.length;for(let a=0;a<u;a++)for(let s=0;s<u;s++)a===0&&s===0||a===0&&s===u-1||a===u-1&&s===0||t.push([e[a],e[s]]);return t}})(x)),x}var tt={},Pt;function le(){if(Pt)return tt;Pt=1;const r=U().getSymbolSize,o=7;return tt.getPositions=function(n){const t=r(n);return[[0,0],[t-o,0],[0,t-o]]},tt}var et={},Mt;function de(){return Mt||(Mt=1,(function(r){r.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const o={N1:3,N2:3,N3:40,N4:10};r.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7},r.from=function(t){return r.isValid(t)?parseInt(t,10):void 0},r.getPenaltyN1=function(t){const e=t.size;let u=0,a=0,s=0,c=null,d=null;for(let B=0;B<e;B++){a=s=0,c=d=null;for(let h=0;h<e;h++){let f=t.get(B,h);f===c?a++:(a>=5&&(u+=o.N1+(a-5)),c=f,a=1),f=t.get(h,B),f===d?s++:(s>=5&&(u+=o.N1+(s-5)),d=f,s=1)}a>=5&&(u+=o.N1+(a-5)),s>=5&&(u+=o.N1+(s-5))}return u},r.getPenaltyN2=function(t){const e=t.size;let u=0;for(let a=0;a<e-1;a++)for(let s=0;s<e-1;s++){const c=t.get(a,s)+t.get(a,s+1)+t.get(a+1,s)+t.get(a+1,s+1);(c===4||c===0)&&u++}return u*o.N2},r.getPenaltyN3=function(t){const e=t.size;let u=0,a=0,s=0;for(let c=0;c<e;c++){a=s=0;for(let d=0;d<e;d++)a=a<<1&2047|t.get(c,d),d>=10&&(a===1488||a===93)&&u++,s=s<<1&2047|t.get(d,c),d>=10&&(s===1488||s===93)&&u++}return u*o.N3},r.getPenaltyN4=function(t){let e=0;const u=t.data.length;for(let s=0;s<u;s++)e+=t.data[s];return Math.abs(Math.ceil(e*100/u/5)-10)*o.N4};function i(n,t,e){switch(n){case r.Patterns.PATTERN000:return(t+e)%2===0;case r.Patterns.PATTERN001:return t%2===0;case r.Patterns.PATTERN010:return e%3===0;case r.Patterns.PATTERN011:return(t+e)%3===0;case r.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(e/3))%2===0;case r.Patterns.PATTERN101:return t*e%2+t*e%3===0;case r.Patterns.PATTERN110:return(t*e%2+t*e%3)%2===0;case r.Patterns.PATTERN111:return(t*e%3+(t+e)%2)%2===0;default:throw new Error("bad maskPattern:"+n)}}r.applyMask=function(t,e){const u=e.size;for(let a=0;a<u;a++)for(let s=0;s<u;s++)e.isReserved(s,a)||e.xor(s,a,i(t,s,a))},r.getBestMask=function(t,e){const u=Object.keys(r.Patterns).length;let a=0,s=1/0;for(let c=0;c<u;c++){e(c),r.applyMask(c,t);const d=r.getPenaltyN1(t)+r.getPenaltyN2(t)+r.getPenaltyN3(t)+r.getPenaltyN4(t);r.applyMask(c,t),d<s&&(s=d,a=c)}return a}})(et)),et}var J={},St;function Zt(){if(St)return J;St=1;const r=Ct(),o=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],i=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return J.getBlocksCount=function(t,e){switch(e){case r.L:return o[(t-1)*4+0];case r.M:return o[(t-1)*4+1];case r.Q:return o[(t-1)*4+2];case r.H:return o[(t-1)*4+3];default:return}},J.getTotalCodewordsCount=function(t,e){switch(e){case r.L:return i[(t-1)*4+0];case r.M:return i[(t-1)*4+1];case r.Q:return i[(t-1)*4+2];case r.H:return i[(t-1)*4+3];default:return}},J}var nt={},K={},Dt;function ge(){if(Dt)return K;Dt=1;const r=new Uint8Array(512),o=new Uint8Array(256);return(function(){let n=1;for(let t=0;t<255;t++)r[t]=n,o[n]=t,n<<=1,n&256&&(n^=285);for(let t=255;t<512;t++)r[t]=r[t-255]})(),K.log=function(n){if(n<1)throw new Error("log("+n+")");return o[n]},K.exp=function(n){return r[n]},K.mul=function(n,t){return n===0||t===0?0:r[o[n]+o[t]]},K}var Lt;function he(){return Lt||(Lt=1,(function(r){const o=ge();r.mul=function(n,t){const e=new Uint8Array(n.length+t.length-1);for(let u=0;u<n.length;u++)for(let a=0;a<t.length;a++)e[u+a]^=o.mul(n[u],t[a]);return e},r.mod=function(n,t){let e=new Uint8Array(n);for(;e.length-t.length>=0;){const u=e[0];for(let s=0;s<t.length;s++)e[s]^=o.mul(t[s],u);let a=0;for(;a<e.length&&e[a]===0;)a++;e=e.slice(a)}return e},r.generateECPolynomial=function(n){let t=new Uint8Array([1]);for(let e=0;e<n;e++)t=r.mul(t,new Uint8Array([1,o.exp(e)]));return t}})(nt)),nt}var rt,vt;function me(){if(vt)return rt;vt=1;const r=he();function o(i){this.genPoly=void 0,this.degree=i,this.degree&&this.initialize(this.degree)}return o.prototype.initialize=function(n){this.degree=n,this.genPoly=r.generateECPolynomial(this.degree)},o.prototype.encode=function(n){if(!this.genPoly)throw new Error("Encoder not initialized");const t=new Uint8Array(n.length+this.degree);t.set(n);const e=r.mod(t,this.genPoly),u=this.degree-e.length;if(u>0){const a=new Uint8Array(this.degree);return a.set(e,u),a}return e},rt=o,rt}var ot={},it={},ut={},qt;function Xt(){return qt||(qt=1,ut.isValid=function(o){return!isNaN(o)&&o>=1&&o<=40}),ut}var D={},_t;function xt(){if(_t)return D;_t=1;const r="[0-9]+",o="[A-Z $%*+\\-./:]+";let i="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";i=i.replace(/u/g,"\\u");const n="(?:(?![A-Z0-9 $%*+\\-./:]|"+i+`)(?:.|[\r
|
|
2
2
|
]))+`;D.KANJI=new RegExp(i,"g"),D.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),D.BYTE=new RegExp(n,"g"),D.NUMERIC=new RegExp(r,"g"),D.ALPHANUMERIC=new RegExp(o,"g");const t=new RegExp("^"+i+"$"),e=new RegExp("^"+r+"$"),u=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return D.testKanji=function(s){return t.test(s)},D.testNumeric=function(s){return e.test(s)},D.testAlphanumeric=function(s){return u.test(s)},D}var Ut;function F(){return Ut||(Ut=1,(function(r){const o=Xt(),i=xt();r.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},r.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},r.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},r.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},r.MIXED={bit:-1},r.getCharCountIndicator=function(e,u){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!o.isValid(u))throw new Error("Invalid version: "+u);return u>=1&&u<10?e.ccBits[0]:u<27?e.ccBits[1]:e.ccBits[2]},r.getBestModeForData=function(e){return i.testNumeric(e)?r.NUMERIC:i.testAlphanumeric(e)?r.ALPHANUMERIC:i.testKanji(e)?r.KANJI:r.BYTE},r.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},r.isValid=function(e){return e&&e.bit&&e.ccBits};function n(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return r.NUMERIC;case"alphanumeric":return r.ALPHANUMERIC;case"kanji":return r.KANJI;case"byte":return r.BYTE;default:throw new Error("Unknown mode: "+t)}}r.from=function(e,u){if(r.isValid(e))return e;try{return n(e)}catch{return u}}})(it)),it}var Ft;function we(){return Ft||(Ft=1,(function(r){const o=U(),i=Zt(),n=Ct(),t=F(),e=Xt(),u=7973,a=o.getBCHDigit(u);function s(h,f,T){for(let N=1;N<=40;N++)if(f<=r.getCapacity(N,T,h))return N}function c(h,f){return t.getCharCountIndicator(h,f)+4}function d(h,f){let T=0;return h.forEach(function(N){const M=c(N.mode,f);T+=M+N.getBitsLength()}),T}function B(h,f){for(let T=1;T<=40;T++)if(d(h,T)<=r.getCapacity(T,f,t.MIXED))return T}r.from=function(f,T){return e.isValid(f)?parseInt(f,10):T},r.getCapacity=function(f,T,N){if(!e.isValid(f))throw new Error("Invalid QR Code version");typeof N>"u"&&(N=t.BYTE);const M=o.getSymbolTotalCodewords(f),R=i.getTotalCodewordsCount(f,T),P=(M-R)*8;if(N===t.MIXED)return P;const I=P-c(N,f);switch(N){case t.NUMERIC:return Math.floor(I/10*3);case t.ALPHANUMERIC:return Math.floor(I/11*2);case t.KANJI:return Math.floor(I/13);case t.BYTE:default:return Math.floor(I/8)}},r.getBestVersionForData=function(f,T){let N;const M=n.from(T,n.M);if(Array.isArray(f)){if(f.length>1)return B(f,M);if(f.length===0)return 1;N=f[0]}else N=f;return s(N.mode,N.getLength(),M)},r.getEncodedBits=function(f){if(!e.isValid(f)||f<7)throw new Error("Invalid QR Code version");let T=f<<12;for(;o.getBCHDigit(T)-a>=0;)T^=u<<o.getBCHDigit(T)-a;return f<<12|T}})(ot)),ot}var st={},kt;function ye(){if(kt)return st;kt=1;const r=U(),o=1335,i=21522,n=r.getBCHDigit(o);return st.getEncodedBits=function(e,u){const a=e.bit<<3|u;let s=a<<10;for(;r.getBCHDigit(s)-n>=0;)s^=o<<r.getBCHDigit(s)-n;return(a<<10|s)^i},st}var at={},ct,zt;function Ce(){if(zt)return ct;zt=1;const r=F();function o(i){this.mode=r.NUMERIC,this.data=i.toString()}return o.getBitsLength=function(n){return 10*Math.floor(n/3)+(n%3?n%3*3+1:0)},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(n){let t,e,u;for(t=0;t+3<=this.data.length;t+=3)e=this.data.substr(t,3),u=parseInt(e,10),n.put(u,10);const a=this.data.length-t;a>0&&(e=this.data.substr(t),u=parseInt(e,10),n.put(u,a*3+1))},ct=o,ct}var ft,Vt;function Ee(){if(Vt)return ft;Vt=1;const r=F(),o=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function i(n){this.mode=r.ALPHANUMERIC,this.data=n}return i.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){let e;for(e=0;e+2<=this.data.length;e+=2){let u=o.indexOf(this.data[e])*45;u+=o.indexOf(this.data[e+1]),t.put(u,11)}this.data.length%2&&t.put(o.indexOf(this.data[e]),6)},ft=i,ft}var lt,Kt;function Be(){return Kt||(Kt=1,lt=function(o){for(var i=[],n=o.length,t=0;t<n;t++){var e=o.charCodeAt(t);if(e>=55296&&e<=56319&&n>t+1){var u=o.charCodeAt(t+1);u>=56320&&u<=57343&&(e=(e-55296)*1024+u-56320+65536,t+=1)}if(e<128){i.push(e);continue}if(e<2048){i.push(e>>6|192),i.push(e&63|128);continue}if(e<55296||e>=57344&&e<65536){i.push(e>>12|224),i.push(e>>6&63|128),i.push(e&63|128);continue}if(e>=65536&&e<=1114111){i.push(e>>18|240),i.push(e>>12&63|128),i.push(e>>6&63|128),i.push(e&63|128);continue}i.push(239,191,189)}return new Uint8Array(i).buffer}),lt}var dt,Ht;function pe(){if(Ht)return dt;Ht=1;const r=Be(),o=F();function i(n){this.mode=o.BYTE,typeof n=="string"&&(n=r(n)),this.data=new Uint8Array(n)}return i.getBitsLength=function(t){return t*8},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(n){for(let t=0,e=this.data.length;t<e;t++)n.put(this.data[t],8)},dt=i,dt}var gt,Jt;function Ae(){if(Jt)return gt;Jt=1;const r=F(),o=U();function i(n){this.mode=r.KANJI,this.data=n}return i.getBitsLength=function(t){return t*13},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(n){let t;for(t=0;t<this.data.length;t++){let e=o.toSJIS(this.data[t]);if(e>=33088&&e<=40956)e-=33088;else if(e>=57408&&e<=60351)e-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
|
|
3
3
|
Make sure your charset is UTF-8`);e=(e>>>8&255)*192+(e&255),n.put(e,13)}},gt=i,gt}var ht={exports:{}},Ot;function Re(){return Ot||(Ot=1,(function(r){var o={single_source_shortest_paths:function(i,n,t){var e={},u={};u[n]=0;var a=o.PriorityQueue.make();a.push(n,0);for(var s,c,d,B,h,f,T,N,M;!a.empty();){s=a.pop(),c=s.value,B=s.cost,h=i[c]||{};for(d in h)h.hasOwnProperty(d)&&(f=h[d],T=B+f,N=u[d],M=typeof u[d]>"u",(M||N>T)&&(u[d]=T,a.push(d,T),e[d]=c))}if(typeof t<"u"&&typeof u[t]>"u"){var R=["Could not find a path from ",n," to ",t,"."].join("");throw new Error(R)}return e},extract_shortest_path_from_predecessor_list:function(i,n){for(var t=[],e=n;e;)t.push(e),i[e],e=i[e];return t.reverse(),t},find_path:function(i,n,t){var e=o.single_source_shortest_paths(i,n,t);return o.extract_shortest_path_from_predecessor_list(e,t)},PriorityQueue:{make:function(i){var n=o.PriorityQueue,t={},e;i=i||{};for(e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t.queue=[],t.sorter=i.sorter||n.default_sorter,t},default_sorter:function(i,n){return i.cost-n.cost},push:function(i,n){var t={value:i,cost:n};this.queue.push(t),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};r.exports=o})(ht)),ht.exports}var jt;function Ie(){return jt||(jt=1,(function(r){const o=F(),i=Ce(),n=Ee(),t=pe(),e=Ae(),u=xt(),a=U(),s=Re();function c(R){return unescape(encodeURIComponent(R)).length}function d(R,P,I){const p=[];let S;for(;(S=R.exec(I))!==null;)p.push({data:S[0],index:S.index,mode:P,length:S[0].length});return p}function B(R){const P=d(u.NUMERIC,o.NUMERIC,R),I=d(u.ALPHANUMERIC,o.ALPHANUMERIC,R);let p,S;return a.isKanjiModeEnabled()?(p=d(u.BYTE,o.BYTE,R),S=d(u.KANJI,o.KANJI,R)):(p=d(u.BYTE_KANJI,o.BYTE,R),S=[]),P.concat(I,p,S).sort(function(C,y){return C.index-y.index}).map(function(C){return{data:C.data,mode:C.mode,length:C.length}})}function h(R,P){switch(P){case o.NUMERIC:return i.getBitsLength(R);case o.ALPHANUMERIC:return n.getBitsLength(R);case o.KANJI:return e.getBitsLength(R);case o.BYTE:return t.getBitsLength(R)}}function f(R){return R.reduce(function(P,I){const p=P.length-1>=0?P[P.length-1]:null;return p&&p.mode===I.mode?(P[P.length-1].data+=I.data,P):(P.push(I),P)},[])}function T(R){const P=[];for(let I=0;I<R.length;I++){const p=R[I];switch(p.mode){case o.NUMERIC:P.push([p,{data:p.data,mode:o.ALPHANUMERIC,length:p.length},{data:p.data,mode:o.BYTE,length:p.length}]);break;case o.ALPHANUMERIC:P.push([p,{data:p.data,mode:o.BYTE,length:p.length}]);break;case o.KANJI:P.push([p,{data:p.data,mode:o.BYTE,length:c(p.data)}]);break;case o.BYTE:P.push([{data:p.data,mode:o.BYTE,length:c(p.data)}])}}return P}function N(R,P){const I={},p={start:{}};let S=["start"];for(let g=0;g<R.length;g++){const C=R[g],y=[];for(let l=0;l<C.length;l++){const A=C[l],m=""+g+l;y.push(m),I[m]={node:A,lastCount:0},p[m]={};for(let E=0;E<S.length;E++){const w=S[E];I[w]&&I[w].node.mode===A.mode?(p[w][m]=h(I[w].lastCount+A.length,A.mode)-h(I[w].lastCount,A.mode),I[w].lastCount+=A.length):(I[w]&&(I[w].lastCount=A.length),p[w][m]=h(A.length,A.mode)+4+o.getCharCountIndicator(A.mode,P))}}S=y}for(let g=0;g<S.length;g++)p[S[g]].end=0;return{map:p,table:I}}function M(R,P){let I;const p=o.getBestModeForData(R);if(I=o.from(P,p),I!==o.BYTE&&I.bit<p.bit)throw new Error('"'+R+'" cannot be encoded with mode '+o.toString(I)+`.
|
|
4
4
|
Suggested mode is: `+o.toString(p));switch(I===o.KANJI&&!a.isKanjiModeEnabled()&&(I=o.BYTE),I){case o.NUMERIC:return new i(R);case o.ALPHANUMERIC:return new n(R);case o.KANJI:return new e(R);case o.BYTE:return new t(R)}}r.fromArray=function(P){return P.reduce(function(I,p){return typeof p=="string"?I.push(M(p,null)):p.data&&I.push(M(p.data,p.mode)),I},[])},r.fromString=function(P,I){const p=B(P,a.isKanjiModeEnabled()),S=T(p),g=N(S,I),C=s.find_path(g.map,"start","end"),y=[];for(let l=1;l<C.length-1;l++)y.push(g.table[C[l]].node);return r.fromArray(f(y))},r.rawSplit=function(P){return r.fromArray(B(P,a.isKanjiModeEnabled()))}})(at)),at}var Yt;function be(){if(Yt)return $;Yt=1;const r=U(),o=Ct(),i=ae(),n=ce(),t=fe(),e=le(),u=de(),a=Zt(),s=me(),c=we(),d=ye(),B=F(),h=Ie();function f(g,C){const y=g.size,l=e.getPositions(C);for(let A=0;A<l.length;A++){const m=l[A][0],E=l[A][1];for(let w=-1;w<=7;w++)if(!(m+w<=-1||y<=m+w))for(let b=-1;b<=7;b++)E+b<=-1||y<=E+b||(w>=0&&w<=6&&(b===0||b===6)||b>=0&&b<=6&&(w===0||w===6)||w>=2&&w<=4&&b>=2&&b<=4?g.set(m+w,E+b,!0,!0):g.set(m+w,E+b,!1,!0))}}function T(g){const C=g.size;for(let y=8;y<C-8;y++){const l=y%2===0;g.set(y,6,l,!0),g.set(6,y,l,!0)}}function N(g,C){const y=t.getPositions(C);for(let l=0;l<y.length;l++){const A=y[l][0],m=y[l][1];for(let E=-2;E<=2;E++)for(let w=-2;w<=2;w++)E===-2||E===2||w===-2||w===2||E===0&&w===0?g.set(A+E,m+w,!0,!0):g.set(A+E,m+w,!1,!0)}}function M(g,C){const y=g.size,l=c.getEncodedBits(C);let A,m,E;for(let w=0;w<18;w++)A=Math.floor(w/3),m=w%3+y-8-3,E=(l>>w&1)===1,g.set(A,m,E,!0),g.set(m,A,E,!0)}function R(g,C,y){const l=g.size,A=d.getEncodedBits(C,y);let m,E;for(m=0;m<15;m++)E=(A>>m&1)===1,m<6?g.set(m,8,E,!0):m<8?g.set(m+1,8,E,!0):g.set(l-15+m,8,E,!0),m<8?g.set(8,l-m-1,E,!0):m<9?g.set(8,15-m-1+1,E,!0):g.set(8,15-m-1,E,!0);g.set(l-8,8,1,!0)}function P(g,C){const y=g.size;let l=-1,A=y-1,m=7,E=0;for(let w=y-1;w>0;w-=2)for(w===6&&w--;;){for(let b=0;b<2;b++)if(!g.isReserved(A,w-b)){let q=!1;E<C.length&&(q=(C[E]>>>m&1)===1),g.set(A,w-b,q),m--,m===-1&&(E++,m=7)}if(A+=l,A<0||y<=A){A-=l,l=-l;break}}}function I(g,C,y){const l=new i;y.forEach(function(b){l.put(b.mode.bit,4),l.put(b.getLength(),B.getCharCountIndicator(b.mode,g)),b.write(l)});const A=r.getSymbolTotalCodewords(g),m=a.getTotalCodewordsCount(g,C),E=(A-m)*8;for(l.getLengthInBits()+4<=E&&l.put(0,4);l.getLengthInBits()%8!==0;)l.putBit(0);const w=(E-l.getLengthInBits())/8;for(let b=0;b<w;b++)l.put(b%2?17:236,8);return p(l,g,C)}function p(g,C,y){const l=r.getSymbolTotalCodewords(C),A=a.getTotalCodewordsCount(C,y),m=l-A,E=a.getBlocksCount(C,y),w=l%E,b=E-w,q=Math.floor(l/E),V=Math.floor(m/E),ne=V+1,Et=q-V,re=new s(Et);let O=0;const H=new Array(E),Bt=new Array(E);let j=0;const oe=new Uint8Array(g.buffer);for(let k=0;k<E;k++){const G=k<b?V:ne;H[k]=oe.slice(O,O+G),Bt[k]=re.encode(H[k]),O+=G,j=Math.max(j,G)}const Y=new Uint8Array(l);let pt=0,L,v;for(L=0;L<j;L++)for(v=0;v<E;v++)L<H[v].length&&(Y[pt++]=H[v][L]);for(L=0;L<Et;L++)for(v=0;v<E;v++)Y[pt++]=Bt[v][L];return Y}function S(g,C,y,l){let A;if(Array.isArray(g))A=h.fromArray(g);else if(typeof g=="string"){let q=C;if(!q){const V=h.rawSplit(g);q=c.getBestVersionForData(V,y)}A=h.fromString(g,q||40)}else throw new Error("Invalid data");const m=c.getBestVersionForData(A,y);if(!m)throw new Error("The amount of data is too big to be stored in a QR Code");if(!C)C=m;else if(C<m)throw new Error(`
|
|
@@ -6,4 +6,4 @@ The chosen QR Code version cannot contain this amount of data.
|
|
|
6
6
|
Minimum version required to store current data is: `+m+`.
|
|
7
7
|
`);const E=I(C,y,A),w=r.getSymbolSize(C),b=new n(w);return f(b,C),T(b),N(b,C),R(b,y,0),C>=7&&M(b,C),P(b,E),isNaN(l)&&(l=u.getBestMask(b,R.bind(null,b,y))),u.applyMask(l,b),R(b,y,l),{modules:b,version:C,errorCorrectionLevel:y,maskPattern:l,segments:A}}return $.create=function(C,y){if(typeof C>"u"||C==="")throw new Error("No input text");let l=o.M,A,m;return typeof y<"u"&&(l=o.from(y.errorCorrectionLevel,o.M),A=c.from(y.version),m=u.from(y.maskPattern),y.toSJISFunc&&r.setToSJISFunction(y.toSJISFunc)),S(C,A,l,m)},$}var mt={},wt={},Gt;function te(){return Gt||(Gt=1,(function(r){function o(i){if(typeof i=="number"&&(i=i.toString()),typeof i!="string")throw new Error("Color should be defined as hex string");let n=i.slice().replace("#","").split("");if(n.length<3||n.length===5||n.length>8)throw new Error("Invalid hex color: "+i);(n.length===3||n.length===4)&&(n=Array.prototype.concat.apply([],n.map(function(e){return[e,e]}))),n.length===6&&n.push("F","F");const t=parseInt(n.join(""),16);return{r:t>>24&255,g:t>>16&255,b:t>>8&255,a:t&255,hex:"#"+n.slice(0,6).join("")}}r.getOptions=function(n){n||(n={}),n.color||(n.color={});const t=typeof n.margin>"u"||n.margin===null||n.margin<0?4:n.margin,e=n.width&&n.width>=21?n.width:void 0,u=n.scale||4;return{width:e,scale:e?4:u,margin:t,color:{dark:o(n.color.dark||"#000000ff"),light:o(n.color.light||"#ffffffff")},type:n.type,rendererOpts:n.rendererOpts||{}}},r.getScale=function(n,t){return t.width&&t.width>=n+t.margin*2?t.width/(n+t.margin*2):t.scale},r.getImageWidth=function(n,t){const e=r.getScale(n,t);return Math.floor((n+t.margin*2)*e)},r.qrToImageData=function(n,t,e){const u=t.modules.size,a=t.modules.data,s=r.getScale(u,e),c=Math.floor((u+e.margin*2)*s),d=e.margin*s,B=[e.color.light,e.color.dark];for(let h=0;h<c;h++)for(let f=0;f<c;f++){let T=(h*c+f)*4,N=e.color.light;if(h>=d&&f>=d&&h<c-d&&f<c-d){const M=Math.floor((h-d)/s),R=Math.floor((f-d)/s);N=B[a[M*u+R]?1:0]}n[T++]=N.r,n[T++]=N.g,n[T++]=N.b,n[T]=N.a}}})(wt)),wt}var Qt;function Te(){return Qt||(Qt=1,(function(r){const o=te();function i(t,e,u){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=u,e.width=u,e.style.height=u+"px",e.style.width=u+"px"}function n(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}r.render=function(e,u,a){let s=a,c=u;typeof s>"u"&&(!u||!u.getContext)&&(s=u,u=void 0),u||(c=n()),s=o.getOptions(s);const d=o.getImageWidth(e.modules.size,s),B=c.getContext("2d"),h=B.createImageData(d,d);return o.qrToImageData(h.data,e,s),i(B,c,d),B.putImageData(h,0,0),c},r.renderToDataURL=function(e,u,a){let s=a;typeof s>"u"&&(!u||!u.getContext)&&(s=u,u=void 0),s||(s={});const c=r.render(e,u,s),d=s.type||"image/png",B=s.rendererOpts||{};return c.toDataURL(d,B.quality)}})(mt)),mt}var yt={},$t;function Ne(){if($t)return yt;$t=1;const r=te();function o(t,e){const u=t.a/255,a=e+'="'+t.hex+'"';return u<1?a+" "+e+'-opacity="'+u.toFixed(2).slice(1)+'"':a}function i(t,e,u){let a=t+e;return typeof u<"u"&&(a+=" "+u),a}function n(t,e,u){let a="",s=0,c=!1,d=0;for(let B=0;B<t.length;B++){const h=Math.floor(B%e),f=Math.floor(B/e);!h&&!c&&(c=!0),t[B]?(d++,B>0&&h>0&&t[B-1]||(a+=c?i("M",h+u,.5+f+u):i("m",s,0),s=0,c=!1),h+1<e&&t[B+1]||(a+=i("h",d),d=0)):s++}return a}return yt.render=function(e,u,a){const s=r.getOptions(u),c=e.modules.size,d=e.modules.data,B=c+s.margin*2,h=s.color.light.a?"<path "+o(s.color.light,"fill")+' d="M0 0h'+B+"v"+B+'H0z"/>':"",f="<path "+o(s.color.dark,"stroke")+' d="'+n(d,c,s.margin)+'"/>',T='viewBox="0 0 '+B+" "+B+'"',M='<svg xmlns="http://www.w3.org/2000/svg" '+(s.width?'width="'+s.width+'" height="'+s.width+'" ':"")+T+' shape-rendering="crispEdges">'+h+f+`</svg>
|
|
8
8
|
`;return typeof a=="function"&&a(null,M),M},yt}var Wt;function Pe(){if(Wt)return z;Wt=1;const r=se(),o=be(),i=Te(),n=Ne();function t(e,u,a,s,c){const d=[].slice.call(arguments,1),B=d.length,h=typeof d[B-1]=="function";if(!h&&!r())throw new Error("Callback required as last argument");if(h){if(B<2)throw new Error("Too few arguments provided");B===2?(c=a,a=u,u=s=void 0):B===3&&(u.getContext&&typeof c>"u"?(c=s,s=void 0):(c=s,s=a,a=u,u=void 0))}else{if(B<1)throw new Error("Too few arguments provided");return B===1?(a=u,u=s=void 0):B===2&&!u.getContext&&(s=a,a=u,u=void 0),new Promise(function(f,T){try{const N=o.create(a,s);f(e(N,u,s))}catch(N){T(N)}})}try{const f=o.create(a,s);c(null,e(f,u,s))}catch(f){c(f)}}return z.create=o.create,z.toCanvas=t.bind(null,i.render),z.toDataURL=t.bind(null,i.renderToDataURL),z.toString=t.bind(null,function(e,u,a){return n.render(e,a)}),z}var ee=Pe();const Me=ie(ee),De=ue({__proto__:null,default:Me},[ee]);export{Me as Q,De as b};
|
|
9
|
-
//# sourceMappingURL=browser-
|
|
9
|
+
//# sourceMappingURL=browser-D7Kn3ZPZ.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{c as E,g as z}from"./react-
|
|
1
|
+
import{c as E,g as z}from"./react-BJ9otK4B.js";(function(){try{var y=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},l=new y.Error().stack;l&&(y._sentryDebugIds=y._sentryDebugIds||{},y._sentryDebugIds[l]="685d2d35-7ee5-4798-8e55-f4c6ddc92815",y._sentryDebugIdIdentifier="sentry-dbid-685d2d35-7ee5-4798-8e55-f4c6ddc92815")}catch{}})();var A={exports:{}},I;function X(){return I||(I=1,(function(y,l){var m=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof E<"u"&&E,_=(function(){function v(){this.fetch=!1,this.DOMException=m.DOMException}return v.prototype=m,new v})();(function(v){(function(h){var a=typeof v<"u"&&v||typeof self<"u"&&self||typeof E<"u"&&E||{},u={searchParams:"URLSearchParams"in a,iterable:"Symbol"in a&&"iterator"in Symbol,blob:"FileReader"in a&&"Blob"in a&&(function(){try{return new Blob,!0}catch{return!1}})(),formData:"FormData"in a,arrayBuffer:"ArrayBuffer"in a};function H(e){return e&&DataView.prototype.isPrototypeOf(e)}if(u.arrayBuffer)var F=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],S=ArrayBuffer.isView||function(e){return e&&F.indexOf(Object.prototype.toString.call(e))>-1};function w(e){if(typeof e!="string"&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||e==="")throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function B(e){return typeof e!="string"&&(e=String(e)),e}function T(e){var t={next:function(){var r=e.shift();return{done:r===void 0,value:r}}};return u.iterable&&(t[Symbol.iterator]=function(){return t}),t}function i(e){this.map={},e instanceof i?e.forEach(function(t,r){this.append(r,t)},this):Array.isArray(e)?e.forEach(function(t){if(t.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+t.length);this.append(t[0],t[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}i.prototype.append=function(e,t){e=w(e),t=B(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},i.prototype.delete=function(e){delete this.map[w(e)]},i.prototype.get=function(e){return e=w(e),this.has(e)?this.map[e]:null},i.prototype.has=function(e){return this.map.hasOwnProperty(w(e))},i.prototype.set=function(e,t){this.map[w(e)]=B(t)},i.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},i.prototype.keys=function(){var e=[];return this.forEach(function(t,r){e.push(r)}),T(e)},i.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),T(e)},i.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),T(e)},u.iterable&&(i.prototype[Symbol.iterator]=i.prototype.entries);function O(e){if(!e._noBody){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}}function x(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function q(e){var t=new FileReader,r=x(t);return t.readAsArrayBuffer(e),r}function C(e){var t=new FileReader,r=x(t),n=/charset=([A-Za-z0-9_-]+)/.exec(e.type),s=n?n[1]:"utf-8";return t.readAsText(e,s),r}function M(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}function R(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function U(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?typeof e=="string"?this._bodyText=e:u.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:u.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:u.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():u.arrayBuffer&&u.blob&&H(e)?(this._bodyArrayBuffer=R(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):u.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||S(e))?this._bodyArrayBuffer=R(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof e=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):u.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},u.blob&&(this.blob=function(){var e=O(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=O(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(u.blob)return this.blob().then(q);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var e=O(this);if(e)return e;if(this._bodyBlob)return C(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(M(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},u.formData&&(this.formData=function(){return this.text().then(N)}),this.json=function(){return this.text().then(JSON.parse)},this}var L=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function k(e){var t=e.toUpperCase();return L.indexOf(t)>-1?t:e}function d(e,t){if(!(this instanceof d))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{};var r=t.body;if(e instanceof d){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new i(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,!r&&e._bodyInit!=null&&(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new i(t.headers)),this.method=k(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||(function(){if("AbortController"in a){var o=new AbortController;return o.signal}})(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&r)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(r),(this.method==="GET"||this.method==="HEAD")&&(t.cache==="no-store"||t.cache==="no-cache")){var n=/([?&])_=[^&]*/;if(n.test(this.url))this.url=this.url.replace(n,"$1_="+new Date().getTime());else{var s=/\?/;this.url+=(s.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}d.prototype.clone=function(){return new d(this,{body:this._bodyInit})};function N(e){var t=new FormData;return e.trim().split("&").forEach(function(r){if(r){var n=r.split("="),s=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(s),decodeURIComponent(o))}}),t}function G(e){var t=new i,r=e.replace(/\r?\n[\t ]+/g," ");return r.split("\r").map(function(n){return n.indexOf(`
|
|
2
2
|
`)===0?n.substr(1,n.length):n}).forEach(function(n){var s=n.split(":"),o=s.shift().trim();if(o){var g=s.join(":").trim();try{t.append(o,g)}catch(P){console.warn("Response "+P.message)}}}),t}U.call(d.prototype);function c(e,t){if(!(this instanceof c))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=t.status===void 0?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText===void 0?"":""+t.statusText,this.headers=new i(t.headers),this.url=t.url||"",this._initBody(e)}U.call(c.prototype),c.prototype.clone=function(){return new c(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new i(this.headers),url:this.url})},c.error=function(){var e=new c(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var V=[301,302,303,307,308];c.redirect=function(e,t){if(V.indexOf(t)===-1)throw new RangeError("Invalid status code");return new c(null,{status:t,headers:{location:e}})},h.DOMException=a.DOMException;try{new h.DOMException}catch{h.DOMException=function(t,r){this.message=t,this.name=r;var n=Error(t);this.stack=n.stack},h.DOMException.prototype=Object.create(Error.prototype),h.DOMException.prototype.constructor=h.DOMException}function D(e,t){return new Promise(function(r,n){var s=new d(e,t);if(s.signal&&s.signal.aborted)return n(new h.DOMException("Aborted","AbortError"));var o=new XMLHttpRequest;function g(){o.abort()}o.onload=function(){var f={statusText:o.statusText,headers:G(o.getAllResponseHeaders()||"")};s.url.indexOf("file://")===0&&(o.status<200||o.status>599)?f.status=200:f.status=o.status,f.url="responseURL"in o?o.responseURL:f.headers.get("X-Request-URL");var p="response"in o?o.response:o.responseText;setTimeout(function(){r(new c(p,f))},0)},o.onerror=function(){setTimeout(function(){n(new TypeError("Network request failed"))},0)},o.ontimeout=function(){setTimeout(function(){n(new TypeError("Network request timed out"))},0)},o.onabort=function(){setTimeout(function(){n(new h.DOMException("Aborted","AbortError"))},0)};function P(f){try{return f===""&&a.location.href?a.location.href:f}catch{return f}}if(o.open(s.method,P(s.url),!0),s.credentials==="include"?o.withCredentials=!0:s.credentials==="omit"&&(o.withCredentials=!1),"responseType"in o&&(u.blob?o.responseType="blob":u.arrayBuffer&&(o.responseType="arraybuffer")),t&&typeof t.headers=="object"&&!(t.headers instanceof i||a.Headers&&t.headers instanceof a.Headers)){var j=[];Object.getOwnPropertyNames(t.headers).forEach(function(f){j.push(w(f)),o.setRequestHeader(f,B(t.headers[f]))}),s.headers.forEach(function(f,p){j.indexOf(p)===-1&&o.setRequestHeader(p,f)})}else s.headers.forEach(function(f,p){o.setRequestHeader(p,f)});s.signal&&(s.signal.addEventListener("abort",g),o.onreadystatechange=function(){o.readyState===4&&s.signal.removeEventListener("abort",g)}),o.send(typeof s._bodyInit>"u"?null:s._bodyInit)})}return D.polyfill=!0,a.fetch||(a.fetch=D,a.Headers=i,a.Request=d,a.Response=c),h.Headers=i,h.Request=d,h.Response=c,h.fetch=D,Object.defineProperty(h,"__esModule",{value:!0}),h})({})})(_),_.fetch.ponyfill=!0,delete _.fetch.polyfill;var b=m.fetch?m:_;l=b.fetch,l.default=b.fetch,l.fetch=b.fetch,l.Headers=b.Headers,l.Request=b.Request,l.Response=b.Response,y.exports=l})(A,A.exports)),A.exports}var $=X();const Z=z($);export{Z as o};
|
|
3
|
-
//# sourceMappingURL=browser-ponyfill-
|
|
3
|
+
//# sourceMappingURL=browser-ponyfill-B0kQw77h.js.map
|