@dcl/shop 1.9.1-32382821804.commit-866b44f → 1.9.2-32490364182.commit-e2e4c6b
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-BSrmrWRK.js → Activity-C4Kzn5fk.js} +6 -6
- package/_assets/{AnimatedBackground-CZP38k9i.js → AnimatedBackground-BwuwfNrk.js} +6 -6
- package/_assets/{Assets-CqqFECKQ.js → Assets-CTbQPjcM.js} +3 -3
- package/_assets/{Authorizations-CcbKTNoV.js → Authorizations-N-jDljmP.js} +2 -2
- package/_assets/{Cart-2NZyMCJx.js → Cart-ywFlNL9H.js} +2 -2
- package/_assets/{CircularProgress-DbQM92U9.js → CircularProgress-DPY51kqk.js} +2 -2
- package/_assets/{Collection-Dhpebc0V.js → Collection-BbPumsdq.js} +2 -2
- package/_assets/{CollectionCarousel-we2QxelV.js → CollectionCarousel-CoM9Gv9s.js} +3 -3
- package/_assets/{Confetti-DKl8MQFt.js → Confetti-C0-okGdM.js} +4 -4
- package/_assets/{ConstantsUtil-DtsccOOq.js → ConstantsUtil-BX0kJSLy.js} +2 -2
- package/_assets/{ContentClient-CLRYXrjB.js → ContentClient-FkKb15O9.js} +2 -2
- package/_assets/{Creator-BUFbxupK.js → Creator-B-q7Mpyx.js} +2 -2
- package/_assets/{DeploymentBuilder-CNv6NZ1A.js → DeploymentBuilder-B-vRvz4q.js} +2 -2
- package/_assets/{EmotePlaybackBar-CF6KpX-_.js → EmotePlaybackBar-DLxsISmS.js} +3 -3
- package/_assets/{ErrorNotice-BCxPR2Ax.js → ErrorNotice-Bwbke-jb.js} +2 -2
- package/_assets/{ExchangeController-BF5JxvN4.js → ExchangeController-wLrEO73T.js} +2 -2
- package/_assets/{Faq-DVz1pBqy.js → Faq-Bn3oD9jJ.js} +2 -2
- package/_assets/{GetCredits-C_KhA045.js → GetCredits-1dwWdfH1.js} +2 -2
- package/_assets/{Grow-BBd4bYd-.js → Grow-A1ryBOre.js} +2 -2
- package/_assets/{HelpersUtil-uHcaRsLh.js → HelpersUtil-zE-WUDXf.js} +2 -2
- package/_assets/{ItemDetail-sqJthgun.js → ItemDetail-DtAVOGXV.js} +34 -34
- package/_assets/{LoadMore-vtwf5_Lg.js → LoadMore-D-zzUoTF.js} +2 -2
- package/_assets/{ManaPricingBanner.styles-CqzwfgY9.js → ManaPricingBanner.styles-CdSp5zDl.js} +2 -2
- package/_assets/{MyAssets-DUJbBngU.js → MyAssets-vSbkMz3D.js} +2 -2
- package/_assets/{MyFavorites-BMn1fis8.js → MyFavorites-V0_oPzp8.js} +2 -2
- package/_assets/{NetworkUtil-BmA8iOEv.js → NetworkUtil-C2E64C4n.js} +2 -2
- package/_assets/{NotFound-B04Mqsmf.js → NotFound-BDte9RrV.js} +2 -2
- package/_assets/{NotificationsBell-CfeExEv1.js → NotificationsBell-D2-6APUI.js} +2 -2
- package/_assets/{OutfitDetail-CvQEecLH.js → OutfitDetail-2F7CkzM9.js} +2 -2
- package/_assets/{OutfitPreview-CMZBXiBC.js → OutfitPreview-vLgRLTXf.js} +2 -2
- package/_assets/{OutfitStudio-CZtzuWSP.js → OutfitStudio-B7-5-HLr.js} +2 -2
- package/_assets/{StoreSettings-B1KPZB0m.js → StoreSettings-DYpES0Qy.js} +3 -3
- package/_assets/{Success-CDX_OkhI.js → Success-CbxoRTGm.js} +2 -2
- package/_assets/{SwapController-BOmeOoQQ.js → SwapController-CNhuabdS.js} +2 -2
- package/_assets/{TradeService-3FsTnRv4.js → TradeService-Dq5kA3hU.js} +2 -2
- package/_assets/{W3MFrameProviderSingleton-BqbXaXu_.js → W3MFrameProviderSingleton-qLuUEBFJ.js} +4 -4
- package/_assets/{WebCryptoP256-BzgD06zi.js → WebCryptoP256-BNgcFtmR.js} +2 -2
- package/_assets/{authorizations-DgXSZ5vO.js → authorizations-Wa0_wT0Z.js} +2 -2
- package/_assets/{basic-BgoRKCsb.js → basic-CFDlu1LL.js} +2 -2
- package/_assets/{biconomy-DakMmMc_.js → biconomy-CbaORytl.js} +2 -2
- package/_assets/{browseLayout.styles-BhonGTMu.js → browseLayout.styles-CuE2syAy.js} +2 -2
- package/_assets/{browser-JPDl05qz.js → browser-XADW-5I9.js} +2 -2
- package/_assets/{browser-ponyfill-3MkNHsmi.js → browser-ponyfill-ByHh5PGV.js} +2 -2
- package/_assets/{builder-BSEXTAQm.js → builder-Cil_nXWA.js} +2 -2
- package/_assets/{buy-uUAF9E4q.js → buy-DAGs2gvU.js} +2 -2
- package/_assets/{buy-gasless-CmCzE1hE.js → buy-gasless-CXg0ob_0.js} +2 -2
- package/_assets/{categories-BetQ_rij.js → categories-Bwi3LuIK.js} +2 -2
- package/_assets/{ccip-CuIDry4d.js → ccip-CABvxDcN.js} +2 -2
- package/_assets/{ccip-C0xzvy5D.js → ccip-DxEPKiwF.js} +2 -2
- package/_assets/{chains-Bgk7UFPN.js → chains-CKHFLxhm.js} +2 -2
- package/_assets/collectionPage.styles-DZFdmcAO.js +40 -0
- package/_assets/{common-BMj3cH5D.js → common-AHgzOdSB.js} +2 -2
- package/_assets/{controller-B7mRkFyD.js → controller-389ptNLt.js} +3 -3
- package/_assets/{core-CfWHRl0S.js → core-CWqAJwp-.js} +5 -5
- package/_assets/{createSvgIcon-BkGdF_hy.js → createSvgIcon-RTgYqIT0.js} +2 -2
- package/_assets/{custom-6ZCElfZ_.js → custom-B6FOcLFS.js} +2 -2
- package/_assets/{data-capture-BAcKvje5.js → data-capture-DZoFqspx.js} +2 -2
- package/_assets/{dcl-schemas-D87tt755.js → dcl-schemas-CQsQxWYK.js} +2 -2
- package/_assets/{decimals-8DwEKvdc.js → decimals-B8ji3I9T.js} +2 -2
- package/_assets/{decimals-EjHGOrR9.js → decimals-BrfaLWeO.js} +2 -2
- package/_assets/{detectExtension-BYOxeyub.js → detectExtension-CBEeT0QS.js} +2 -2
- package/_assets/{disposePreview-DbfLuxEX.js → disposePreview-NijpZXe_.js} +2 -2
- package/_assets/{email-C3Aj1Kqh.js → email-WN7zlIKb.js} +2 -2
- package/_assets/{embedded-wallet-BbGSuDgy.js → embedded-wallet-c9wepCXs.js} +2 -2
- package/_assets/{emotion-styled.browser.esm-D9_F29Cv.js → emotion-styled.browser.esm-CYlNKf9I.js} +2 -2
- package/_assets/{engine-BlnB7LTf.js → engine-C91fSUt_.js} +2 -2
- package/_assets/{errors-BGWk5C7H.js → errors-DGWrzcZ2.js} +2 -2
- package/_assets/{estimate-l1-fee-B38p86WG.js → estimate-l1-fee-BscyCbli.js} +2 -2
- package/_assets/{eth_estimateGas-B016hIPr.js → eth_estimateGas-zf8E350c.js} +2 -2
- package/_assets/{eth_getStorageAt-iMKYBVfE.js → eth_getStorageAt-C7mDOh_o.js} +2 -2
- package/_assets/{eth_getTransactionCount-Dstw9Y-E.js → eth_getTransactionCount-BZuLOO7k.js} +2 -2
- package/_assets/{ethereum-D9m_dnC4.js → ethereum-RVBnTLaL.js} +2 -2
- package/_assets/{ethers-k08ZHkMS.js → ethers-DXUQI3Ut.js} +2 -2
- package/_assets/{events-WxaR6frf.js → events-DLLBOQYG.js} +2 -2
- package/_assets/{execute-plWr2gMO.js → execute-C57BG5lJ.js} +3 -3
- package/_assets/{extractIPFS-CeMFCpPM.js → extractIPFS-BKXzy-Rh.js} +2 -2
- package/_assets/{features-aNTeEc3_.js → features-ALZAg55_.js} +2 -2
- package/_assets/{fetchTokenMetadata-TTyuYQIK.js → fetchTokenMetadata-Cr3PV6X1.js} +3 -3
- package/_assets/{field.styles-el-KlGmS.js → field.styles-1qNXB2de.js} +2 -2
- package/_assets/{fortmatic-nxvKGRyH.js → fortmatic-VEuLc1E0.js} +2 -2
- package/_assets/{get-bytecode-hcin1AZI.js → get-bytecode-Dgh4Jb3X.js} +2 -2
- package/_assets/{get-ecosystem-wallet-info-DWhP6scd.js → get-ecosystem-wallet-info-Bo9paKe6.js} +2 -2
- package/_assets/{getBalance-DBOjjDc1.js → getBalance-BE7W--GK.js} +3 -3
- package/_assets/{getInstalledModules-BKE5yQRM.js → getInstalledModules-BQ_ILdNe.js} +2 -2
- package/_assets/{getNFT-7KoEVL3Q.js → getNFT-BYOtm54v.js} +3 -3
- package/_assets/{getNFT-Ca8JnUlc.js → getNFT-C4VCKNcO.js} +2 -2
- package/_assets/{grid.styles-CVH1gwsk.js → grid.styles-DzvODQdq.js} +2 -2
- package/_assets/{hashTypedData-IhCnAvCf.js → hashTypedData-ChT5ZbgL.js} +2 -2
- package/_assets/{hashTypedData-DcRf-gIm.js → hashTypedData-X0KUMzG4.js} +2 -2
- package/_assets/{in-app-wallet-calls-LiCDGDGN.js → in-app-wallet-calls-BrnhR34A.js} +2 -2
- package/_assets/{in-app-SRaBGqsb.js → in-app-zluvfGQX.js} +2 -2
- package/_assets/{index-CB1D7jkK.js → index-1nMFaDfq.js} +2 -2
- package/_assets/{index-C-6X-CRI.js → index-2QDRSKTI.js} +2 -2
- package/_assets/{index-DgbutbcP.js → index-36NDvu3w.js} +2 -2
- package/_assets/{index-DTzqdOvR.js → index-4dXpSk57.js} +2 -2
- package/_assets/{index-DRKUCKx8.js → index-6m82mLa-.js} +2 -2
- package/_assets/{index-DoehF-DY.js → index-B9WM1WTc.js} +2 -2
- package/_assets/{index-1JAhTF79.js → index-BAeUu19q.js} +3 -3
- package/_assets/{index-CzykJMMD.js → index-BD0UDtYF.js} +2 -2
- package/_assets/{index-C-_m22JG.js → index-BGw5m7Uo.js} +2 -2
- package/_assets/{index-BKrvE2CZ.js → index-BJ83OlRb.js} +2 -2
- package/_assets/{index-BxZ19Fo-.js → index-BN-bGk3n.js} +3 -3
- package/_assets/{index-D3lG3JeW.js → index-BPpGc36z.js} +2 -2
- package/_assets/{index-Ub5J1-kK.js → index-BQ0ZshU5.js} +2 -2
- package/_assets/{index-B4q6R1kx.js → index-BZPiWmJM.js} +2 -2
- package/_assets/{index-uHpVoQ2Y.js → index-BcpaMHLt.js} +2 -2
- package/_assets/{index-rUQAaRiW.js → index-BpQETbke.js} +4 -4
- package/_assets/{index-DSdGM_Z4.js → index-BrC_okhM.js} +2 -2
- package/_assets/{index-NoGoi7lx.js → index-BuABw98X.js} +2 -2
- package/_assets/{index-sRJ8agyK.js → index-BzhoSaGz.js} +2 -2
- package/_assets/{index-NIUJkKgR.js → index-C-SyxpJI.js} +2 -2
- package/_assets/{index-B46yy43s.js → index-C-cuJat3.js} +2 -2
- package/_assets/{index-BreEu8Vm.js → index-C0fNNzGI.js} +2 -2
- package/_assets/{index-rhrMNrRN.js → index-C4iYwCkM.js} +2 -2
- package/_assets/{index-C7aVvmTk.js → index-C5onHlUQ.js} +2 -2
- package/_assets/{index-BeSUmLj4.js → index-C8H2vLAP.js} +2 -2
- package/_assets/{index-CyiA0KTt.js → index-CLfKjViB.js} +2 -2
- package/_assets/{index-CWw9b8Ez.js → index-CQ3eT5S4.js} +2 -2
- package/_assets/{index-fyvhTUmw.js → index-CRP5QaPb.js} +2 -2
- package/_assets/{index-CQWmuFt_.js → index-CSBo6qrQ.js} +4 -4
- package/_assets/{index-DdCk6V28.js → index-CTAs_Ona.js} +2 -2
- package/_assets/{index-D9303MLB.js → index-CZJQqq1_.js} +2 -2
- package/_assets/{index-C_W1HRUc.js → index-CaHn1v4Y.js} +3 -3
- package/_assets/{index-C1s6lqXx.js → index-CarTIHBr.js} +2 -2
- package/_assets/{index-D4uDo7Xn.js → index-CbZQowQ5.js} +2 -2
- package/_assets/{index-pxK-Etbi.js → index-CimY5gmO.js} +2 -2
- package/_assets/{index-BPruMdt1.js → index-CpeNCh1-.js} +2 -2
- package/_assets/{index-CIVfNXPU.js → index-CwSVzkMY.js} +2 -2
- package/_assets/{index-BiGTR54o.js → index-CwlpUkJ3.js} +2 -2
- package/_assets/{index-kLN1G-IB.js → index-Cwx8-XY7.js} +2 -2
- package/_assets/{index-CysQ5uxt.js → index-Cx1edpy0.js} +2 -2
- package/_assets/{index-CXv6hMtN.js → index-D3jeiuFw.js} +2 -2
- package/_assets/{index-Dk1kPTfQ.js → index-D6hTzS8e.js} +2 -2
- package/_assets/{index-Rdl45RPz.js → index-D8CbiuvG.js} +2 -2
- package/_assets/{index-DgV04kO2.js → index-DAuK57Cr.js} +2 -2
- package/_assets/{index-C0Ai0YVS.js → index-DCSeDwHz.js} +2 -2
- package/_assets/{index-BG8WFDX8.js → index-DDxLpm0Z.js} +2 -2
- package/_assets/{index-D_TZyW-U.js → index-DHM5xCcE.js} +2 -2
- package/_assets/{index-pgy-INln.js → index-DJA_1O-1.js} +2 -2
- package/_assets/{index-CBWbfoYI.js → index-DNuGqPWd.js} +3 -3
- package/_assets/{index-CZvjDFlC.js → index-DVqruI7F.js} +2 -2
- package/_assets/{index-Dk1scdF7.js → index-DX-xaYge.js} +2 -2
- package/_assets/{index-C5TDIb_A.js → index-D_3daVMJ.js} +2 -2
- package/_assets/{index-BmTZFb65.js → index-Dbp8PJtv.js} +2 -2
- package/_assets/{index-CFXAPsQq.js → index-DlWdq6Mw.js} +2 -2
- package/_assets/{index-BN_IYMno.js → index-DvfEbLUY.js} +2 -2
- package/_assets/{index-Csi21eQG.js → index-DwCKhtFu.js} +2 -2
- package/_assets/{index-BGX6Zi9c.js → index-LDPyoGDo.js} +12 -12
- package/_assets/{index-pgDNRCQq.js → index-NJ_79PUz.js} +2 -2
- package/_assets/{index-DbebD-nK.js → index-OeIHT0cR.js} +2 -2
- package/_assets/{index-B_NoQabU.js → index-PPamm-Fm.js} +2 -2
- package/_assets/{index-CrAtmdm_.js → index-RYnkqAG_.js} +2 -2
- package/_assets/{index-WBNkaw9w.js → index-SPFq-ZCl.js} +2 -2
- package/_assets/{index-B3_LUnA4.js → index-drol9D68.js} +2 -2
- package/_assets/{index-D3OtDiDD.js → index-fKbajirP.js} +2 -2
- package/_assets/{index-DjzBTYhx.js → index-g_xcW_-R.js} +2 -2
- package/_assets/{index-BnEwr7si.js → index-ioIg36Q5.js} +4 -4
- package/_assets/{index-RLW9nNR3.js → index-vnVB3yV9.js} +2 -2
- package/_assets/{index.es-4QDqcuuG.js → index.es-B7WIB4xs.js} +2 -2
- package/_assets/{index.es-WMc9GCmQ.js → index.es-BmijG_o0.js} +2 -2
- package/_assets/{index.es-Cc3rZjCa.js → index.es-Bmub6mvo.js} +2 -2
- package/_assets/{index.es-sLutbBvs.js → index.es-DW9WuktD.js} +5 -5
- package/_assets/{items-empty-DdYPtveT.js → items-empty-Bs5yNmsR.js} +2 -2
- package/_assets/{jump-BJCM89Ry.js → jump-DpEhRseo.js} +2 -2
- package/_assets/{linkAccount-BhaxskOH.js → linkAccount-Ce-F8zrz.js} +2 -2
- package/_assets/{localBatchGatewayRequest-BgV2nDH9.js → localBatchGatewayRequest-Dx1kkAvc.js} +2 -2
- package/_assets/{native-CV6uaoOD.js → native-vLlkzvxI.js} +2 -2
- package/_assets/{networks-ikKNyFrB.js → networks-DZ7rrynN.js} +2 -2
- package/_assets/{onramp-CiJb1pzz.js → onramp-DLuIEWh8.js} +2 -2
- package/_assets/{openzeppelin-Dhh-tnbn.js → openzeppelin-B3-AW1et.js} +2 -2
- package/_assets/{ownerOf-Bn9fMHE3.js → ownerOf-Dj22dy0c.js} +2 -2
- package/_assets/{parseNft-DJnt7l-N.js → parseNft-DIyPdcOK.js} +3 -3
- package/_assets/{parseSignature-BJ-AqeVW.js → parseSignature-D8jGniDr.js} +2 -2
- package/_assets/{parseSignature-CFxaO21p.js → parseSignature-xueulJgr.js} +4 -4
- package/_assets/{passkeys-Bd98oouH.js → passkeys-CZmD8fl-.js} +2 -2
- package/_assets/{pay-with-exchange-CyjwrY7i.js → pay-with-exchange-Bc61S8fk.js} +2 -2
- package/_assets/{prepare-contract-call-CB6jqq2C.js → prepare-contract-call-a0euYGw1.js} +2 -2
- package/_assets/{qr-overlay-l521hxD6.js → qr-overlay-Bxcymc80.js} +4 -4
- package/_assets/{react-Dr4Tcsco.js → react-G9L2um0r.js} +2 -2
- package/_assets/{receive-oyftPMF3.js → receive-B2L8XUAK.js} +2 -2
- package/_assets/{resolveImplementation-De283wMl.js → resolveImplementation-CyW7nJOY.js} +2 -2
- package/_assets/{resume-buy-DUKiE5Jx.js → resume-buy-DjsRBHGc.js} +2 -2
- package/_assets/{rpc-CqgCRizd.js → rpc-HuV61zaY.js} +2 -2
- package/_assets/{sales-empty-Ddx58pJb.js → sales-empty-C2d5fYtD.js} +2 -2
- package/_assets/{search-empty-DtPBUWg4.js → search-empty-a5Cznk_m.js} +2 -2
- package/_assets/{secp256k1-BfWQSSTU.js → secp256k1-DRRm-iBM.js} +2 -2
- package/_assets/{secp256k1-_3ckqkff.js → secp256k1-DVs4vnDB.js} +2 -2
- package/_assets/{secp256k1-DZaDspSP.js → secp256k1-D_V4Ye8O.js} +2 -2
- package/_assets/{send-sRMC_lOt.js → send-7zzvm8CG.js} +2 -2
- package/_assets/{send-batch-transaction-7t48Xfse.js → send-batch-transaction-DzSQ0vye.js} +2 -2
- package/_assets/{send-eip712-transaction-B4blAIrA.js → send-eip712-transaction-C8xbqwl4.js} +3 -3
- package/_assets/{send-gasless-transaction-C0dKKock.js → send-gasless-transaction-BApkPjqX.js} +3 -3
- package/_assets/{send-transaction-D6Ix3lqV.js → send-transaction-BWqOlzuO.js} +3 -3
- package/_assets/{sendMetaTransaction-CjbMijcb.js → sendMetaTransaction-DtqCFoTt.js} +2 -2
- package/_assets/{sendRawTransaction-DIvNHPZY.js → sendRawTransaction-DxOSpPmA.js} +4 -4
- package/_assets/{sentry-D_sNDIgV.js → sentry-RCtiQtjC.js} +3 -3
- package/_assets/{serializeTransaction-D18tkEVN.js → serializeTransaction-DMjWbKEY.js} +2 -2
- package/_assets/{session-proposal-CRcm15Ic.js → session-proposal-CDANnhiF.js} +2 -2
- package/_assets/{session-request-CZESc-Zx.js → session-request-Bn0fkTkw.js} +3 -3
- package/_assets/{sha256-CkpoaafX.js → sha256-Cbk06XOV.js} +2 -2
- package/_assets/{signing-CE--wAYa.js → signing-BH_9uHTG.js} +4 -4
- package/_assets/{skeleton.styles-BWop61U4.js → skeleton.styles-KSeN66We.js} +2 -2
- package/_assets/{socials-DfbeeqYq.js → socials-DGCX2gsj.js} +2 -2
- package/_assets/{styled-ORcRXYSI.js → styled-K_r8RfK3.js} +2 -2
- package/_assets/{swaps-C2RJvBix.js → swaps-CLkWisZt.js} +2 -2
- package/_assets/{thirdweb-BUrZkYdY.js → thirdweb-DbdkDnGO.js} +4 -4
- package/_assets/{to-serializable-transaction-Dp5o3oCB.js → to-serializable-transaction-DeE9YtTe.js} +3 -3
- package/_assets/{totalSupply-DdcGvihH.js → totalSupply-f-_lj4s2.js} +2 -2
- package/_assets/{transaction-DBChxg1G.js → transaction-fETmGUb_.js} +2 -2
- package/_assets/{transactionReceipt-BvG-9nbK.js → transactionReceipt-BHye7StB.js} +2 -2
- package/_assets/{transactions-DyvF6ZEq.js → transactions-DUAV8yRm.js} +2 -2
- package/_assets/{useCreditPacks-egMuY2z_.js → useCreditPacks-DFJcm3cB.js} +2 -2
- package/_assets/{useInfiniteGrid-MOvu65jA.js → useInfiniteGrid-CLHeOKn3.js} +2 -2
- package/_assets/{useStore-5BZQHC35.js → useStore-BBUVWiPd.js} +3 -3
- package/_assets/{useTheme-BR9qB7sa.js → useTheme-DD0IQ_3Z.js} +2 -2
- package/_assets/{utils-uvVrYISg.js → utils-u4hNmxb_.js} +2 -2
- package/_assets/{verifyHash-DdoBCgDT.js → verifyHash-CY-z2bj3.js} +2 -2
- package/_assets/{w3m-modal-Ctea5ZFV.js → w3m-modal-CAKNlWwi.js} +2 -2
- package/_assets/{w3m-modal-PuYVFUV4.js → w3m-modal-O6Eqk9dV.js} +2 -2
- package/_assets/{wait-for-tx-receipt-CP2ntJy1.js → wait-for-tx-receipt-1jFQBtZz.js} +2 -2
- package/_assets/{wallets-BDHDQ_iy.js → wallets-D1PAyMOY.js} +6 -6
- package/_assets/{web-connector-Dv-MdZ5g.js → web-connector-Dnqy9LKi.js} +4 -4
- package/_assets/{writeContract-TxAKJiOs.js → writeContract-V_-ojxW6.js} +2 -2
- package/_assets/{zora-sepolia-bQwgNYfh.js → zora-sepolia-CIIRKC4C.js} +2 -2
- package/_assets/{zoraTestnet-ZDIjZadx.js → zoraTestnet-C2UcAlsp.js} +2 -2
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/collectionPage.styles-BbtFhfmp.js +0 -40
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{f as Vv,g as Wv}from"./react-
|
|
1
|
+
import{f as Vv,g as Wv}from"./react-G9L2um0r.js";import{r as Kv}from"./index-6m82mLa-.js";import{n as Zv}from"./native-vLlkzvxI.js";import{r as Yv}from"./events-DLLBOQYG.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]="6222587e-d22c-4ec4-93ca-e47011915284",e._sentryDebugIdIdentifier="sentry-dbid-6222587e-d22c-4ec4-93ca-e47011915284")}catch{}})();function Jv(e,r){for(var n=0;n<r.length;n++){const t=r[n];if(typeof t!="string"&&!Array.isArray(t)){for(const o in t)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(t,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>t[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Nd={},Wn={},Nt={},sn={},xr={},Kn={},Zn={},Tl;function wg(){if(Tl)return Zn;Tl=1,Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.getSDKVersion=void 0;const e=()=>"9.1.0";return Zn.getSDKVersion=e,Zn}var Yn={},Sl;function Xv(){if(Sl)return Yn;Sl=1,Object.defineProperty(Yn,"__esModule",{value:!0}),Yn.generateRequestId=void 0;const e=t=>t.toString(16).padStart(2,"0"),r=t=>{const o=new Uint8Array(t/2);return window.crypto.getRandomValues(o),Array.from(o,e).join("")},n=()=>typeof window<"u"?r(10):new Date().getTime().toString(36);return Yn.generateRequestId=n,Yn}var Il;function Pg(){if(Il)return Kn;Il=1,Object.defineProperty(Kn,"__esModule",{value:!0}),Kn.MessageFormatter=void 0;const e=wg(),r=Xv();class n{}return Kn.MessageFormatter=n,n.makeRequest=(t,o)=>({id:(0,r.generateRequestId)(),method:t,params:o,env:{sdkVersion:(0,e.getSDKVersion)()}}),n.makeResponse=(t,o,s)=>({id:t,success:!0,version:s,data:o}),n.makeErrorResponse=(t,o,s)=>({id:t,success:!1,error:o,version:s}),Kn}var qr={},Rl;function Kr(){if(Rl)return qr;Rl=1,Object.defineProperty(qr,"__esModule",{value:!0}),qr.RestrictedMethods=qr.Methods=void 0;var e;(function(n){n.sendTransactions="sendTransactions",n.rpcCall="rpcCall",n.getChainInfo="getChainInfo",n.getSafeInfo="getSafeInfo",n.getTxBySafeTxHash="getTxBySafeTxHash",n.getSafeBalances="getSafeBalances",n.signMessage="signMessage",n.signTypedMessage="signTypedMessage",n.getEnvironmentInfo="getEnvironmentInfo",n.getOffChainSignature="getOffChainSignature",n.requestAddressBook="requestAddressBook",n.wallet_getPermissions="wallet_getPermissions",n.wallet_requestPermissions="wallet_requestPermissions"})(e||(qr.Methods=e={}));var r;return(function(n){n.requestAddressBook="requestAddressBook"})(r||(qr.RestrictedMethods=r={})),qr}var Bl;function Qv(){return Bl||(Bl=1,(function(e){var r=xr&&xr.__createBinding||(Object.create?(function(s,a,i,c){c===void 0&&(c=i);var d=Object.getOwnPropertyDescriptor(a,i);(!d||("get"in d?!a.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return a[i]}}),Object.defineProperty(s,c,d)}):(function(s,a,i,c){c===void 0&&(c=i),s[c]=a[i]})),n=xr&&xr.__exportStar||function(s,a){for(var i in s)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&r(a,s,i)};Object.defineProperty(e,"__esModule",{value:!0});const t=Pg();class o{constructor(a=null,i=!1){this.allowedOrigins=null,this.callbacks=new Map,this.debugMode=!1,this.isServer=typeof window>"u",this.isValidMessage=({origin:c,data:d,source:f})=>{const l=!d,m=!this.isServer&&f===window.parent,y=typeof d.version<"u"&&parseInt(d.version.split(".")[0]),h=typeof y=="number"&&y>=1;let b=!0;return Array.isArray(this.allowedOrigins)&&(b=this.allowedOrigins.find(E=>E.test(c))!==void 0),!l&&m&&h&&b},this.logIncomingMessage=c=>{console.info(`Safe Apps SDK v1: A message was received from origin ${c.origin}. `,c.data)},this.onParentMessage=c=>{this.isValidMessage(c)&&(this.debugMode&&this.logIncomingMessage(c),this.handleIncomingMessage(c.data))},this.handleIncomingMessage=c=>{const{id:d}=c,f=this.callbacks.get(d);f&&(f(c),this.callbacks.delete(d))},this.send=(c,d)=>{const f=t.MessageFormatter.makeRequest(c,d);if(this.isServer)throw new Error("Window doesn't exist");return window.parent.postMessage(f,"*"),new Promise((l,m)=>{this.callbacks.set(f.id,y=>{if(!y.success){m(new Error(y.error));return}l(y)})})},this.allowedOrigins=a,this.debugMode=i,this.isServer||window.addEventListener("message",this.onParentMessage)}}e.default=o,n(Kr(),e)})(xr)),xr}var Jn={},Mr={},Xn={},Ol;function e6(){if(Ol)return Xn;Ol=1,Object.defineProperty(Xn,"__esModule",{value:!0}),Xn.isObjectEIP712TypedData=void 0;const e=r=>typeof r=="object"&&r!=null&&"domain"in r&&"types"in r&&"message"in r;return Xn.isObjectEIP712TypedData=e,Xn}var $d={},Cl;function t6(){return Cl||(Cl=1,Object.defineProperty($d,"__esModule",{value:!0})),$d}var zd={},xl;function r6(){return xl||(xl=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TransferDirection=e.TransactionStatus=e.TokenType=e.Operation=void 0;var r=Kv();Object.defineProperty(e,"Operation",{enumerable:!0,get:function(){return r.Operation}}),Object.defineProperty(e,"TokenType",{enumerable:!0,get:function(){return r.TokenType}}),Object.defineProperty(e,"TransactionStatus",{enumerable:!0,get:function(){return r.TransactionStatus}}),Object.defineProperty(e,"TransferDirection",{enumerable:!0,get:function(){return r.TransferDirection}})})(zd)),zd}var Ld={},ql;function n6(){return ql||(ql=1,Object.defineProperty(Ld,"__esModule",{value:!0}),Kr()),Ld}var Ml;function gf(){return Ml||(Ml=1,(function(e){var r=Mr&&Mr.__createBinding||(Object.create?(function(t,o,s,a){a===void 0&&(a=s);var i=Object.getOwnPropertyDescriptor(o,s);(!i||("get"in i?!o.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return o[s]}}),Object.defineProperty(t,a,i)}):(function(t,o,s,a){a===void 0&&(a=s),t[a]=o[s]})),n=Mr&&Mr.__exportStar||function(t,o){for(var s in t)s!=="default"&&!Object.prototype.hasOwnProperty.call(o,s)&&r(o,t,s)};Object.defineProperty(e,"__esModule",{value:!0}),n(e6(),e),n(t6(),e),n(r6(),e),n(n6(),e)})(Mr)),Mr}var kl;function o6(){if(kl)return Jn;kl=1,Object.defineProperty(Jn,"__esModule",{value:!0}),Jn.TXs=void 0;const e=Kr(),r=gf();class n{constructor(o){this.communicator=o}async getBySafeTxHash(o){if(!o)throw new Error("Invalid safeTxHash");return(await this.communicator.send(e.Methods.getTxBySafeTxHash,{safeTxHash:o})).data}async signMessage(o){const s={message:o};return(await this.communicator.send(e.Methods.signMessage,s)).data}async signTypedMessage(o){if(!(0,r.isObjectEIP712TypedData)(o))throw new Error("Invalid typed data");return(await this.communicator.send(e.Methods.signTypedMessage,{typedData:o})).data}async send({txs:o,params:s}){if(!o||!o.length)throw new Error("No transactions were passed");const a={txs:o,params:s};return(await this.communicator.send(e.Methods.sendTransactions,a)).data}}return Jn.TXs=n,Jn}var Qn={},eo={},Hl;function _f(){return Hl||(Hl=1,Object.defineProperty(eo,"__esModule",{value:!0}),eo.RPC_CALLS=void 0,eo.RPC_CALLS={eth_call:"eth_call",eth_gasPrice:"eth_gasPrice",eth_getLogs:"eth_getLogs",eth_getBalance:"eth_getBalance",eth_getCode:"eth_getCode",eth_getBlockByHash:"eth_getBlockByHash",eth_getBlockByNumber:"eth_getBlockByNumber",eth_getStorageAt:"eth_getStorageAt",eth_getTransactionByHash:"eth_getTransactionByHash",eth_getTransactionReceipt:"eth_getTransactionReceipt",eth_getTransactionCount:"eth_getTransactionCount",eth_estimateGas:"eth_estimateGas",safe_setSettings:"safe_setSettings"}),eo}var Fl;function a6(){if(Fl)return Qn;Fl=1,Object.defineProperty(Qn,"__esModule",{value:!0}),Qn.Eth=void 0;const e=_f(),r=Kr(),n={defaultBlockParam:(o="latest")=>o,returnFullTxObjectParam:(o=!1)=>o,blockNumberToHex:o=>Number.isInteger(o)?`0x${o.toString(16)}`:o};class t{constructor(s){this.communicator=s,this.call=this.buildRequest({call:e.RPC_CALLS.eth_call,formatters:[null,n.defaultBlockParam]}),this.getBalance=this.buildRequest({call:e.RPC_CALLS.eth_getBalance,formatters:[null,n.defaultBlockParam]}),this.getCode=this.buildRequest({call:e.RPC_CALLS.eth_getCode,formatters:[null,n.defaultBlockParam]}),this.getStorageAt=this.buildRequest({call:e.RPC_CALLS.eth_getStorageAt,formatters:[null,n.blockNumberToHex,n.defaultBlockParam]}),this.getPastLogs=this.buildRequest({call:e.RPC_CALLS.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:e.RPC_CALLS.eth_getBlockByHash,formatters:[null,n.returnFullTxObjectParam]}),this.getBlockByNumber=this.buildRequest({call:e.RPC_CALLS.eth_getBlockByNumber,formatters:[n.blockNumberToHex,n.returnFullTxObjectParam]}),this.getTransactionByHash=this.buildRequest({call:e.RPC_CALLS.eth_getTransactionByHash}),this.getTransactionReceipt=this.buildRequest({call:e.RPC_CALLS.eth_getTransactionReceipt}),this.getTransactionCount=this.buildRequest({call:e.RPC_CALLS.eth_getTransactionCount,formatters:[null,n.defaultBlockParam]}),this.getGasPrice=this.buildRequest({call:e.RPC_CALLS.eth_gasPrice}),this.getEstimateGas=a=>this.buildRequest({call:e.RPC_CALLS.eth_estimateGas})([a]),this.setSafeSettings=this.buildRequest({call:e.RPC_CALLS.safe_setSettings})}buildRequest(s){const{call:a,formatters:i}=s;return async c=>{i&&Array.isArray(c)&&i.forEach((l,m)=>{l&&(c[m]=l(c[m]))});const d={call:a,params:c||[]};return(await this.communicator.send(r.Methods.rpcCall,d)).data}}}return Qn.Eth=t,Qn}var $t={},Ud={},Dd={},to={},ro={},Nl;function i6(){return Nl||(Nl=1,Object.defineProperty(ro,"__esModule",{value:!0}),ro.version=void 0,ro.version="1.2.3"),ro}var $l;function Bn(){if($l)return to;$l=1,Object.defineProperty(to,"__esModule",{value:!0}),to.BaseError=void 0;const e=i6();class r extends Error{constructor(t,o={}){var c;const s=o.cause instanceof r?o.cause.details:(c=o.cause)!=null&&c.message?o.cause.message:o.details,a=o.cause instanceof r&&o.cause.docsPath||o.docsPath,i=[t||"An error occurred.","",...o.metaMessages?[...o.metaMessages,""]:[],...a?[`Docs: https://abitype.dev${a}`]:[],...s?[`Details: ${s}`]:[],`Version: abitype@${e.version}`].join(`
|
|
2
2
|
`);super(i),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),o.cause&&(this.cause=o.cause),this.details=s,this.docsPath=a,this.metaMessages=o.metaMessages,this.shortMessage=t}}return to.BaseError=r,to}var Ia={},zl;function s6(){if(zl)return Ia;zl=1,Object.defineProperty(Ia,"__esModule",{value:!0}),Ia.narrow=e;function e(r){return r}return Ia}var Ra={},Ba={},Oa={},Ca={},qt={},Ll;function Ku(){if(Ll)return qt;Ll=1,Object.defineProperty(qt,"__esModule",{value:!0}),qt.isTupleRegex=qt.integerRegex=qt.bytesRegex=void 0,qt.execTyped=e;function e(r,n){const t=r.exec(n);return t==null?void 0:t.groups}return qt.bytesRegex=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,qt.integerRegex=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,qt.isTupleRegex=/^\(.+?\).*?$/,qt}var Ul;function Ag(){if(Ul)return Ca;Ul=1,Object.defineProperty(Ca,"__esModule",{value:!0}),Ca.formatAbiParameter=n;const e=Ku(),r=/^tuple(?<array>(\[(\d*)\])*)$/;function n(t){let o=t.type;if(r.test(t.type)&&"components"in t){o="(";const s=t.components.length;for(let i=0;i<s;i++){const c=t.components[i];o+=n(c),i<s-1&&(o+=", ")}const a=(0,e.execTyped)(r,t.type);return o+=`)${(a==null?void 0:a.array)||""}`,n({...t,type:o})}return"indexed"in t&&t.indexed&&(o=`${o} indexed`),t.name?`${o} ${t.name}`:o}return Ca}var Dl;function Tg(){if(Dl)return Oa;Dl=1,Object.defineProperty(Oa,"__esModule",{value:!0}),Oa.formatAbiParameters=r;const e=Ag();function r(n){let t="";const o=n.length;for(let s=0;s<o;s++){const a=n[s];t+=(0,e.formatAbiParameter)(a),s!==o-1&&(t+=", ")}return t}return Oa}var Gl;function Sg(){if(Gl)return Ba;Gl=1,Object.defineProperty(Ba,"__esModule",{value:!0}),Ba.formatAbiItem=r;const e=Tg();function r(n){var t;return n.type==="function"?`function ${n.name}(${(0,e.formatAbiParameters)(n.inputs)})${n.stateMutability&&n.stateMutability!=="nonpayable"?` ${n.stateMutability}`:""}${(t=n.outputs)!=null&&t.length?` returns (${(0,e.formatAbiParameters)(n.outputs)})`:""}`:n.type==="event"?`event ${n.name}(${(0,e.formatAbiParameters)(n.inputs)})`:n.type==="error"?`error ${n.name}(${(0,e.formatAbiParameters)(n.inputs)})`:n.type==="constructor"?`constructor(${(0,e.formatAbiParameters)(n.inputs)})${n.stateMutability==="payable"?" payable":""}`:n.type==="fallback"?`fallback() external${n.stateMutability==="payable"?" payable":""}`:"receive() external payable"}return Ba}var Vl;function c6(){if(Vl)return Ra;Vl=1,Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.formatAbi=r;const e=Sg();function r(n){const t=[],o=n.length;for(let s=0;s<o;s++){const a=n[s],i=(0,e.formatAbiItem)(a);t.push(i)}return t}return Ra}var xa={},Ce={},Wl;function On(){if(Wl)return Ce;Wl=1,Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.functionModifiers=Ce.eventModifiers=Ce.modifiers=void 0,Ce.isErrorSignature=n,Ce.execErrorSignature=t,Ce.isEventSignature=s,Ce.execEventSignature=a,Ce.isFunctionSignature=c,Ce.execFunctionSignature=d,Ce.isStructSignature=l,Ce.execStructSignature=m,Ce.isConstructorSignature=h,Ce.execConstructorSignature=b,Ce.isFallbackSignature=g,Ce.execFallbackSignature=v,Ce.isReceiveSignature=u;const e=Ku(),r=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function n(w){return r.test(w)}function t(w){return(0,e.execTyped)(r,w)}const o=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function s(w){return o.test(w)}function a(w){return(0,e.execTyped)(o,w)}const i=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;function c(w){return i.test(w)}function d(w){return(0,e.execTyped)(i,w)}const f=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function l(w){return f.test(w)}function m(w){return(0,e.execTyped)(f,w)}const y=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function h(w){return y.test(w)}function b(w){return(0,e.execTyped)(y,w)}const E=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;function g(w){return E.test(w)}function v(w){return(0,e.execTyped)(E,w)}const P=/^receive\(\) external payable$/;function u(w){return P.test(w)}return Ce.modifiers=new Set(["memory","indexed","storage","calldata"]),Ce.eventModifiers=new Set(["indexed"]),Ce.functionModifiers=new Set(["calldata","memory","storage"]),Ce}var qa={},zt={},Kl;function Zu(){if(Kl)return zt;Kl=1,Object.defineProperty(zt,"__esModule",{value:!0}),zt.UnknownSolidityTypeError=zt.UnknownTypeError=zt.InvalidAbiItemError=void 0;const e=Bn();class r extends e.BaseError{constructor({signature:s}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(s,null,2)})`,docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}zt.InvalidAbiItemError=r;class n extends e.BaseError{constructor({type:s}){super("Unknown type.",{metaMessages:[`Type "${s}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}zt.UnknownTypeError=n;class t extends e.BaseError{constructor({type:s}){super("Unknown type.",{metaMessages:[`Type "${s}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}return zt.UnknownSolidityTypeError=t,zt}var Fe={},Zl;function Qo(){if(Zl)return Fe;Zl=1,Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.InvalidAbiTypeParameterError=Fe.InvalidFunctionModifierError=Fe.InvalidModifierError=Fe.SolidityProtectedKeywordError=Fe.InvalidParameterError=Fe.InvalidAbiParametersError=Fe.InvalidAbiParameterError=void 0;const e=Bn();class r extends e.BaseError{constructor({param:d}){super("Failed to parse ABI parameter.",{details:`parseAbiParameter(${JSON.stringify(d,null,2)})`,docsPath:"/api/human#parseabiparameter-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParameterError"})}}Fe.InvalidAbiParameterError=r;class n extends e.BaseError{constructor({params:d}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(d,null,2)})`,docsPath:"/api/human#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}}Fe.InvalidAbiParametersError=n;class t extends e.BaseError{constructor({param:d}){super("Invalid ABI parameter.",{details:d}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}Fe.InvalidParameterError=t;class o extends e.BaseError{constructor({param:d,name:f}){super("Invalid ABI parameter.",{details:d,metaMessages:[`"${f}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}Fe.SolidityProtectedKeywordError=o;class s extends e.BaseError{constructor({param:d,type:f,modifier:l}){super("Invalid ABI parameter.",{details:d,metaMessages:[`Modifier "${l}" not allowed${f?` in "${f}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}Fe.InvalidModifierError=s;class a extends e.BaseError{constructor({param:d,type:f,modifier:l}){super("Invalid ABI parameter.",{details:d,metaMessages:[`Modifier "${l}" not allowed${f?` in "${f}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${l}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}Fe.InvalidFunctionModifierError=a;class i extends e.BaseError{constructor({abiParameter:d}){super("Invalid ABI parameter.",{details:JSON.stringify(d,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}return Fe.InvalidAbiTypeParameterError=i,Fe}var Lt={},Yl;function vf(){if(Yl)return Lt;Yl=1,Object.defineProperty(Lt,"__esModule",{value:!0}),Lt.InvalidStructSignatureError=Lt.UnknownSignatureError=Lt.InvalidSignatureError=void 0;const e=Bn();class r extends e.BaseError{constructor({signature:s,type:a}){super(`Invalid ${a} signature.`,{details:s}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}Lt.InvalidSignatureError=r;class n extends e.BaseError{constructor({signature:s}){super("Unknown signature.",{details:s}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}Lt.UnknownSignatureError=n;class t extends e.BaseError{constructor({signature:s}){super("Invalid struct signature.",{details:s,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}return Lt.InvalidStructSignatureError=t,Lt}var no={},Jl;function Ig(){if(Jl)return no;Jl=1,Object.defineProperty(no,"__esModule",{value:!0}),no.CircularReferenceError=void 0;const e=Bn();class r extends e.BaseError{constructor({type:t}){super("Circular reference detected.",{metaMessages:[`Struct "${t}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}return no.CircularReferenceError=r,no}var at={},oo={},Xl;function Rg(){if(Xl)return oo;Xl=1,Object.defineProperty(oo,"__esModule",{value:!0}),oo.InvalidParenthesisError=void 0;const e=Bn();class r extends e.BaseError{constructor({current:t,depth:o}){super("Unbalanced parentheses.",{metaMessages:[`"${t.trim()}" has too many ${o>0?"opening":"closing"} parentheses.`],details:`Depth "${o}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}return oo.InvalidParenthesisError=r,oo}var cn={},Ql;function u6(){if(Ql)return cn;Ql=1,Object.defineProperty(cn,"__esModule",{value:!0}),cn.parameterCache=void 0,cn.getParameterCacheKey=e;function e(r,n,t){let o="";if(t)for(const s of Object.entries(t)){if(!s)continue;let a="";for(const i of s[1])a+=`[${i.type}${i.name?`:${i.name}`:""}]`;o+=`(${s[0]}{${a}})`}return n?`${n}:${r}${o}`:`${r}${o}`}return cn.parameterCache=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]),cn}var e0;function Rn(){if(e0)return at;e0=1,Object.defineProperty(at,"__esModule",{value:!0}),at.parseSignature=i,at.parseFunctionSignature=c,at.parseEventSignature=d,at.parseErrorSignature=f,at.parseConstructorSignature=l,at.parseFallbackSignature=m,at.parseAbiParameter=E,at.splitParameters=g,at.isSolidityType=v,at.isSolidityKeyword=u,at.isValidDataLocation=w;const e=Ku(),r=Zu(),n=Qo(),t=vf(),o=Rg(),s=u6(),a=On();function i(_,p={}){if((0,a.isFunctionSignature)(_))return c(_,p);if((0,a.isEventSignature)(_))return d(_,p);if((0,a.isErrorSignature)(_))return f(_,p);if((0,a.isConstructorSignature)(_))return l(_,p);if((0,a.isFallbackSignature)(_))return m(_);if((0,a.isReceiveSignature)(_))return{type:"receive",stateMutability:"payable"};throw new t.UnknownSignatureError({signature:_})}function c(_,p={}){const S=(0,a.execFunctionSignature)(_);if(!S)throw new t.InvalidSignatureError({signature:_,type:"function"});const A=g(S.parameters),T=[],O=A.length;for(let R=0;R<O;R++)T.push(E(A[R],{modifiers:a.functionModifiers,structs:p,type:"function"}));const I=[];if(S.returns){const R=g(S.returns),H=R.length;for(let F=0;F<H;F++)I.push(E(R[F],{modifiers:a.functionModifiers,structs:p,type:"function"}))}return{name:S.name,type:"function",stateMutability:S.stateMutability??"nonpayable",inputs:T,outputs:I}}function d(_,p={}){const S=(0,a.execEventSignature)(_);if(!S)throw new t.InvalidSignatureError({signature:_,type:"event"});const A=g(S.parameters),T=[],O=A.length;for(let I=0;I<O;I++)T.push(E(A[I],{modifiers:a.eventModifiers,structs:p,type:"event"}));return{name:S.name,type:"event",inputs:T}}function f(_,p={}){const S=(0,a.execErrorSignature)(_);if(!S)throw new t.InvalidSignatureError({signature:_,type:"error"});const A=g(S.parameters),T=[],O=A.length;for(let I=0;I<O;I++)T.push(E(A[I],{structs:p,type:"error"}));return{name:S.name,type:"error",inputs:T}}function l(_,p={}){const S=(0,a.execConstructorSignature)(_);if(!S)throw new t.InvalidSignatureError({signature:_,type:"constructor"});const A=g(S.parameters),T=[],O=A.length;for(let I=0;I<O;I++)T.push(E(A[I],{structs:p,type:"constructor"}));return{type:"constructor",stateMutability:S.stateMutability??"nonpayable",inputs:T}}function m(_){const p=(0,a.execFallbackSignature)(_);if(!p)throw new t.InvalidSignatureError({signature:_,type:"fallback"});return{type:"fallback",stateMutability:p.stateMutability??"nonpayable"}}const y=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,h=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,b=/^u?int$/;function E(_,p){var j,k;const S=(0,s.getParameterCacheKey)(_,p==null?void 0:p.type,p==null?void 0:p.structs);if(s.parameterCache.has(S))return s.parameterCache.get(S);const A=e.isTupleRegex.test(_),T=(0,e.execTyped)(A?h:y,_);if(!T)throw new n.InvalidParameterError({param:_});if(T.name&&u(T.name))throw new n.SolidityProtectedKeywordError({param:_,name:T.name});const O=T.name?{name:T.name}:{},I=T.modifier==="indexed"?{indexed:!0}:{},R=(p==null?void 0:p.structs)??{};let H,F={};if(A){H="tuple";const B=g(T.type),C=[],q=B.length;for(let M=0;M<q;M++)C.push(E(B[M],{structs:R}));F={components:C}}else if(T.type in R)H="tuple",F={components:R[T.type]};else if(b.test(T.type))H=`${T.type}256`;else if(T.type==="address payable")H="address";else if(H=T.type,(p==null?void 0:p.type)!=="struct"&&!v(H))throw new r.UnknownSolidityTypeError({type:H});if(T.modifier){if(!((k=(j=p==null?void 0:p.modifiers)==null?void 0:j.has)!=null&&k.call(j,T.modifier)))throw new n.InvalidModifierError({param:_,type:p==null?void 0:p.type,modifier:T.modifier});if(a.functionModifiers.has(T.modifier)&&!w(H,!!T.array))throw new n.InvalidFunctionModifierError({param:_,type:p==null?void 0:p.type,modifier:T.modifier})}const x={type:`${H}${T.array??""}`,...O,...I,...F};return s.parameterCache.set(S,x),x}function g(_,p=[],S="",A=0){const T=_.trim().length;for(let O=0;O<T;O++){const I=_[O],R=_.slice(O+1);switch(I){case",":return A===0?g(R,[...p,S.trim()]):g(R,p,`${S}${I}`,A);case"(":return g(R,p,`${S}${I}`,A+1);case")":return g(R,p,`${S}${I}`,A-1);default:return g(R,p,`${S}${I}`,A)}}if(S==="")return p;if(A!==0)throw new o.InvalidParenthesisError({current:S,depth:A});return p.push(S.trim()),p}function v(_){return _==="address"||_==="bool"||_==="function"||_==="string"||e.bytesRegex.test(_)||e.integerRegex.test(_)}const P=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;function u(_){return _==="address"||_==="bool"||_==="function"||_==="string"||_==="tuple"||e.bytesRegex.test(_)||e.integerRegex.test(_)||P.test(_)}function w(_,p){return p||_==="bytes"||_==="string"||_==="tuple"}return at}var t0;function Yu(){if(t0)return qa;t0=1,Object.defineProperty(qa,"__esModule",{value:!0}),qa.parseStructs=i;const e=Ku(),r=Zu(),n=Qo(),t=vf(),o=Ig(),s=On(),a=Rn();function i(f){const l={},m=f.length;for(let E=0;E<m;E++){const g=f[E];if(!(0,s.isStructSignature)(g))continue;const v=(0,s.execStructSignature)(g);if(!v)throw new t.InvalidSignatureError({signature:g,type:"struct"});const P=v.properties.split(";"),u=[],w=P.length;for(let _=0;_<w;_++){const S=P[_].trim();if(!S)continue;const A=(0,a.parseAbiParameter)(S,{type:"struct"});u.push(A)}if(!u.length)throw new t.InvalidStructSignatureError({signature:g});l[v.name]=u}const y={},h=Object.entries(l),b=h.length;for(let E=0;E<b;E++){const[g,v]=h[E];y[g]=d(v,l)}return y}const c=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;function d(f=[],l={},m=new Set){const y=[],h=f.length;for(let b=0;b<h;b++){const E=f[b];if(e.isTupleRegex.test(E.type))y.push(E);else{const v=(0,e.execTyped)(c,E.type);if(!(v!=null&&v.type))throw new n.InvalidAbiTypeParameterError({abiParameter:E});const{array:P,type:u}=v;if(u in l){if(m.has(u))throw new o.CircularReferenceError({type:u});y.push({...E,type:`tuple${P??""}`,components:d(l[u],l,new Set([...m,u]))})}else if((0,a.isSolidityType)(u))y.push(E);else throw new r.UnknownTypeError({type:u})}}return y}return qa}var r0;function d6(){if(r0)return xa;r0=1,Object.defineProperty(xa,"__esModule",{value:!0}),xa.parseAbi=t;const e=On(),r=Yu(),n=Rn();function t(o){const s=(0,r.parseStructs)(o),a=[],i=o.length;for(let c=0;c<i;c++){const d=o[c];(0,e.isStructSignature)(d)||a.push((0,n.parseSignature)(d,s))}return a}return xa}var Ma={},n0;function f6(){if(n0)return Ma;n0=1,Object.defineProperty(Ma,"__esModule",{value:!0}),Ma.parseAbiItem=o;const e=Zu(),r=On(),n=Yu(),t=Rn();function o(s){let a;if(typeof s=="string")a=(0,t.parseSignature)(s);else{const i=(0,n.parseStructs)(s),c=s.length;for(let d=0;d<c;d++){const f=s[d];if(!(0,r.isStructSignature)(f)){a=(0,t.parseSignature)(f,i);break}}}if(!a)throw new e.InvalidAbiItemError({signature:s});return a}return Ma}var ka={},o0;function l6(){if(o0)return ka;o0=1,Object.defineProperty(ka,"__esModule",{value:!0}),ka.parseAbiParameter=o;const e=Qo(),r=On(),n=Yu(),t=Rn();function o(s){let a;if(typeof s=="string")a=(0,t.parseAbiParameter)(s,{modifiers:r.modifiers});else{const i=(0,n.parseStructs)(s),c=s.length;for(let d=0;d<c;d++){const f=s[d];if(!(0,r.isStructSignature)(f)){a=(0,t.parseAbiParameter)(f,{modifiers:r.modifiers,structs:i});break}}}if(!a)throw new e.InvalidAbiParameterError({param:s});return a}return ka}var Ha={},a0;function b6(){if(a0)return Ha;a0=1,Object.defineProperty(Ha,"__esModule",{value:!0}),Ha.parseAbiParameters=s;const e=Qo(),r=On(),n=Yu(),t=Rn(),o=Rn();function s(a){const i=[];if(typeof a=="string"){const c=(0,t.splitParameters)(a),d=c.length;for(let f=0;f<d;f++)i.push((0,o.parseAbiParameter)(c[f],{modifiers:r.modifiers}))}else{const c=(0,n.parseStructs)(a),d=a.length;for(let f=0;f<d;f++){const l=a[f];if((0,r.isStructSignature)(l))continue;const m=(0,t.splitParameters)(l),y=m.length;for(let h=0;h<y;h++)i.push((0,o.parseAbiParameter)(m[h],{modifiers:r.modifiers,structs:c}))}}if(i.length===0)throw new e.InvalidAbiParametersError({params:a});return i}return Ha}var i0;function hr(){return i0||(i0=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CircularReferenceError=e.InvalidParenthesisError=e.UnknownSignatureError=e.InvalidSignatureError=e.InvalidStructSignatureError=e.InvalidAbiParameterError=e.InvalidAbiParametersError=e.InvalidParameterError=e.SolidityProtectedKeywordError=e.InvalidModifierError=e.InvalidFunctionModifierError=e.InvalidAbiTypeParameterError=e.UnknownSolidityTypeError=e.InvalidAbiItemError=e.UnknownTypeError=e.parseAbiParameters=e.parseAbiParameter=e.parseAbiItem=e.parseAbi=e.formatAbiParameters=e.formatAbiParameter=e.formatAbiItem=e.formatAbi=e.narrow=e.BaseError=void 0;var r=Bn();Object.defineProperty(e,"BaseError",{enumerable:!0,get:function(){return r.BaseError}});var n=s6();Object.defineProperty(e,"narrow",{enumerable:!0,get:function(){return n.narrow}});var t=c6();Object.defineProperty(e,"formatAbi",{enumerable:!0,get:function(){return t.formatAbi}});var o=Sg();Object.defineProperty(e,"formatAbiItem",{enumerable:!0,get:function(){return o.formatAbiItem}});var s=Ag();Object.defineProperty(e,"formatAbiParameter",{enumerable:!0,get:function(){return s.formatAbiParameter}});var a=Tg();Object.defineProperty(e,"formatAbiParameters",{enumerable:!0,get:function(){return a.formatAbiParameters}});var i=d6();Object.defineProperty(e,"parseAbi",{enumerable:!0,get:function(){return i.parseAbi}});var c=f6();Object.defineProperty(e,"parseAbiItem",{enumerable:!0,get:function(){return c.parseAbiItem}});var d=l6();Object.defineProperty(e,"parseAbiParameter",{enumerable:!0,get:function(){return d.parseAbiParameter}});var f=b6();Object.defineProperty(e,"parseAbiParameters",{enumerable:!0,get:function(){return f.parseAbiParameters}});var l=Zu();Object.defineProperty(e,"UnknownTypeError",{enumerable:!0,get:function(){return l.UnknownTypeError}}),Object.defineProperty(e,"InvalidAbiItemError",{enumerable:!0,get:function(){return l.InvalidAbiItemError}}),Object.defineProperty(e,"UnknownSolidityTypeError",{enumerable:!0,get:function(){return l.UnknownSolidityTypeError}});var m=Qo();Object.defineProperty(e,"InvalidAbiTypeParameterError",{enumerable:!0,get:function(){return m.InvalidAbiTypeParameterError}}),Object.defineProperty(e,"InvalidFunctionModifierError",{enumerable:!0,get:function(){return m.InvalidFunctionModifierError}}),Object.defineProperty(e,"InvalidModifierError",{enumerable:!0,get:function(){return m.InvalidModifierError}}),Object.defineProperty(e,"SolidityProtectedKeywordError",{enumerable:!0,get:function(){return m.SolidityProtectedKeywordError}}),Object.defineProperty(e,"InvalidParameterError",{enumerable:!0,get:function(){return m.InvalidParameterError}}),Object.defineProperty(e,"InvalidAbiParametersError",{enumerable:!0,get:function(){return m.InvalidAbiParametersError}}),Object.defineProperty(e,"InvalidAbiParameterError",{enumerable:!0,get:function(){return m.InvalidAbiParameterError}});var y=vf();Object.defineProperty(e,"InvalidStructSignatureError",{enumerable:!0,get:function(){return y.InvalidStructSignatureError}}),Object.defineProperty(e,"InvalidSignatureError",{enumerable:!0,get:function(){return y.InvalidSignatureError}}),Object.defineProperty(e,"UnknownSignatureError",{enumerable:!0,get:function(){return y.UnknownSignatureError}});var h=Rg();Object.defineProperty(e,"InvalidParenthesisError",{enumerable:!0,get:function(){return h.InvalidParenthesisError}});var b=Ig();Object.defineProperty(e,"CircularReferenceError",{enumerable:!0,get:function(){return b.CircularReferenceError}})})(Dd)),Dd}var un={},Fa={},s0;function me(){if(s0)return Fa;s0=1,Object.defineProperty(Fa,"__esModule",{value:!0}),Fa.getAction=e;function e(r,n,t){const o=r[n.name];if(typeof o=="function")return o;const s=r[t];return typeof s=="function"?s:a=>n(r,a)}return Fa}var Na={},$a={},se={},ao={},c0;function er(){if(c0)return ao;c0=1,Object.defineProperty(ao,"__esModule",{value:!0}),ao.formatAbiItem=r,ao.formatAbiParams=n;const e=Be();function r(o,{includeName:s=!1}={}){if(o.type!=="function"&&o.type!=="event"&&o.type!=="error")throw new e.InvalidDefinitionTypeError(o.type);return`${o.name}(${n(o.inputs,{includeName:s})})`}function n(o,{includeName:s=!1}={}){return o?o.map(a=>t(a,{includeName:s})).join(s?", ":","):""}function t(o,{includeName:s}){return o.type.startsWith("tuple")?`(${n(o.components,{includeName:s})})${o.type.slice(5)}`:o.type+(s&&o.name?` ${o.name}`:"")}return ao}var za={},La={},u0;function Qe(){if(u0)return La;u0=1,Object.defineProperty(La,"__esModule",{value:!0}),La.isHex=e;function e(r,{strict:n=!0}={}){return!r||typeof r!="string"?!1:n?/^0x[0-9a-fA-F]*$/.test(r):r.startsWith("0x")}return La}var d0;function De(){if(d0)return za;d0=1,Object.defineProperty(za,"__esModule",{value:!0}),za.size=r;const e=Qe();function r(n){return(0,e.isHex)(n,{strict:!1})?Math.ceil((n.length-2)/2):n.length}return za}var dn={},io={},f0;function m6(){return f0||(f0=1,Object.defineProperty(io,"__esModule",{value:!0}),io.version=void 0,io.version="2.54.1"),io}var l0;function ue(){if(l0)return dn;l0=1,Object.defineProperty(dn,"__esModule",{value:!0}),dn.BaseError=void 0,dn.setErrorConfig=n;const e=m6();let r={getDocsUrl:({docsBaseUrl:s,docsPath:a="",docsSlug:i})=>a?`${s??"https://viem.sh"}${a}${i?`#${i}`:""}`:void 0,version:`viem@${e.version}`};function n(s){r=s}class t extends Error{constructor(a,i={}){var m;const c=(()=>{var y;return i.cause instanceof t?i.cause.details:(y=i.cause)!=null&&y.message?i.cause.message:i.details})(),d=i.cause instanceof t&&i.cause.docsPath||i.docsPath,f=(m=r.getDocsUrl)==null?void 0:m.call(r,{...i,docsPath:d}),l=[a||"An error occurred.","",...i.metaMessages?[...i.metaMessages,""]:[],...f?[`Docs: ${f}`]:[],...c?[`Details: ${c}`]:[],...r.version?[`Version: ${r.version}`]:[]].join(`
|
|
3
3
|
`);super(l,i.cause?{cause:i.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=c,this.docsPath=d,this.metaMessages=i.metaMessages,this.name=i.name??this.name,this.shortMessage=a,this.version=e.version}walk(a){return o(this,a)}}dn.BaseError=t;function o(s,a){return a!=null&&a(s)?s:s&&typeof s=="object"&&"cause"in s&&s.cause!==void 0?o(s.cause,a):a?null:s}return dn}var b0;function Be(){if(b0)return se;b0=1,Object.defineProperty(se,"__esModule",{value:!0}),se.UnsupportedPackedAbiType=se.InvalidDefinitionTypeError=se.InvalidArrayError=se.InvalidAbiDecodingTypeError=se.InvalidAbiEncodingTypeError=se.DecodeLogTopicsMismatch=se.DecodeLogDataMismatch=se.BytesSizeMismatchError=se.AbiItemAmbiguityError=se.AbiFunctionSignatureNotFoundError=se.AbiFunctionOutputsNotFoundError=se.AbiFunctionNotFoundError=se.AbiEventNotFoundError=se.AbiEventSignatureNotFoundError=se.AbiEventSignatureEmptyTopicsError=se.AbiErrorSignatureNotFoundError=se.AbiErrorNotFoundError=se.AbiErrorInputsNotFoundError=se.AbiEncodingLengthMismatchError=se.AbiEncodingBytesSizeMismatchError=se.AbiEncodingArrayLengthMismatchError=se.AbiDecodingZeroDataError=se.AbiDecodingDataSizeTooSmallError=se.AbiDecodingDataSizeInvalidError=se.AbiConstructorParamsNotFoundError=se.AbiConstructorNotFoundError=void 0;const e=er(),r=De(),n=ue();class t extends n.BaseError{constructor({docsPath:H}){super(["A constructor was not found on the ABI.","Make sure you are using the correct ABI and that the constructor exists on it."].join(`
|
|
4
4
|
`),{docsPath:H,name:"AbiConstructorNotFoundError"})}}se.AbiConstructorNotFoundError=t;class o extends n.BaseError{constructor({docsPath:H}){super(["Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.","Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."].join(`
|
|
@@ -45,4 +45,4 @@ ${(0,f.prettyStateOverride)(x)}`),super(u.shortMessage,{cause:u,docsPath:_,metaM
|
|
|
45
45
|
`),$o}var Eh;function R_(){if(Eh)return Zs;Eh=1,Object.defineProperty(Zs,"__esModule",{value:!0}),Zs.toPrefixedMessage=o;const e=I_(),r=Me(),n=De(),t=oe();function o(s){const a=typeof s=="string"?(0,t.stringToHex)(s):typeof s.raw=="string"?s.raw:(0,t.bytesToHex)(s.raw),i=(0,t.stringToHex)(`${e.presignMessagePrefix}${(0,n.size)(a)}`);return(0,r.concat)([i,a])}return Zs}var jh;function _a(){if(jh)return Ks;jh=1,Object.defineProperty(Ks,"__esModule",{value:!0}),Ks.hashMessage=n;const e=st(),r=R_();function n(t,o){return(0,e.keccak256)((0,r.toPrefixedMessage)(t),o)}return Ks}var $r={},zr={},Qt={},wh;function B_(){if(wh)return Qt;wh=1,Object.defineProperty(Qt,"__esModule",{value:!0}),Qt.InvalidStructTypeError=Qt.InvalidPrimaryTypeError=Qt.InvalidDomainError=void 0;const e=Ne(),r=ue();class n extends r.BaseError{constructor({domain:a}){super(`Invalid domain "${(0,e.stringify)(a)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}}Qt.InvalidDomainError=n;class t extends r.BaseError{constructor({primaryType:a,types:i}){super(`Invalid primary type \`${a}\` must be one of \`${JSON.stringify(Object.keys(i))}\`.`,{docsPath:"/api/glossary/Errors#typeddatainvalidprimarytypeerror",metaMessages:["Check that the primary type is a key in `types`."]})}}Qt.InvalidPrimaryTypeError=t;class o extends r.BaseError{constructor({type:a}){super(`Struct type "${a}" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}}return Qt.InvalidStructTypeError=o,Qt}var Ph;function vd(){if(Ph)return zr;Ph=1,Object.defineProperty(zr,"__esModule",{value:!0}),zr.serializeTypedData=d,zr.validateTypedData=f,zr.getTypesForEIP712Domain=l,zr.domainSeparator=m;const e=Be(),r=It(),n=B_(),t=tt(),o=De(),s=oe(),a=Qu(),i=va(),c=Ne();function d(h){const{domain:b,message:E,primaryType:g,types:v}=h,P=(_,p)=>{const S={...p};for(const A of _){const{name:T,type:O}=A;O==="address"&&(S[T]=S[T].toLowerCase())}return S},u=v.EIP712Domain?b?P(v.EIP712Domain,b):{}:{},w=(()=>{if(g!=="EIP712Domain")return P(v[g],E)})();return(0,c.stringify)({domain:u,message:w,primaryType:g,types:v})}function f(h){const{domain:b,message:E,primaryType:g,types:v}=h,P=(u,w)=>{for(const _ of u){const{name:p,type:S}=_,A=w[p],T=S.match(a.integerRegex);if(T&&(typeof A=="number"||typeof A=="bigint")){const[R,H,F]=T;(0,s.numberToHex)(A,{signed:H==="int",size:Number.parseInt(F,10)/8})}if(S==="address"&&typeof A=="string"&&!(0,t.isAddress)(A))throw new r.InvalidAddressError({address:A});const O=S.match(a.bytesRegex);if(O){const[R,H]=O;if(H&&(0,o.size)(A)!==Number.parseInt(H,10))throw new e.BytesSizeMismatchError({expectedSize:Number.parseInt(H,10),givenSize:(0,o.size)(A)})}const I=v[S];I&&(y(S),P(I,A))}};if(v.EIP712Domain&&b){if(typeof b!="object")throw new n.InvalidDomainError({domain:b});P(v.EIP712Domain,b)}if(g!=="EIP712Domain")if(v[g])P(v[g],E);else throw new n.InvalidPrimaryTypeError({primaryType:g,types:v})}function l({domain:h}){return[typeof(h==null?void 0:h.name)=="string"&&{name:"name",type:"string"},(h==null?void 0:h.version)&&{name:"version",type:"string"},(typeof(h==null?void 0:h.chainId)=="number"||typeof(h==null?void 0:h.chainId)=="bigint")&&{name:"chainId",type:"uint256"},(h==null?void 0:h.verifyingContract)&&{name:"verifyingContract",type:"address"},(h==null?void 0:h.salt)&&{name:"salt",type:"bytes32"}].filter(Boolean)}function m({domain:h}){return(0,i.hashDomain)({domain:h,types:{EIP712Domain:l({domain:h})}})}function y(h){if(h==="address"||h==="bool"||h==="string"||h.startsWith("bytes")||h.startsWith("uint")||h.startsWith("int"))throw new n.InvalidStructTypeError({type:h})}return zr}var Ah;function va(){if(Ah)return $r;Ah=1,Object.defineProperty($r,"__esModule",{value:!0}),$r.hashTypedData=s,$r.hashDomain=a,$r.hashStruct=i,$r.encodeType=f;const e=Rt(),r=Me(),n=oe(),t=st(),o=vd();function s(y){const{domain:h={},message:b,primaryType:E}=y,g={EIP712Domain:(0,o.getTypesForEIP712Domain)({domain:h}),...y.types};(0,o.validateTypedData)({domain:h,message:b,primaryType:E,types:g});const v=["0x1901"];return h&&v.push(a({domain:h,types:g})),E!=="EIP712Domain"&&v.push(i({data:b,primaryType:E,types:g})),(0,t.keccak256)((0,r.concat)(v))}function a({domain:y,types:h}){return i({data:y,primaryType:"EIP712Domain",types:h})}function i({data:y,primaryType:h,types:b}){const E=c({data:y,primaryType:h,types:b});return(0,t.keccak256)(E)}function c({data:y,primaryType:h,types:b}){const E=[{type:"bytes32"}],g=[d({primaryType:h,types:b})];for(const v of b[h]){const[P,u]=m({types:b,name:v.name,type:v.type,value:y[v.name]});E.push(P),g.push(u)}return(0,e.encodeAbiParameters)(E,g)}function d({primaryType:y,types:h}){const b=(0,n.toHex)(f({primaryType:y,types:h}));return(0,t.keccak256)(b)}function f({primaryType:y,types:h}){let b="";const E=l({primaryType:y,types:h});E.delete(y);const g=[y,...Array.from(E).sort()];for(const v of g)b+=`${v}(${h[v].map(({name:P,type:u})=>`${u} ${P}`).join(",")})`;return b}function l({primaryType:y,types:h},b=new Set){const E=y.match(/^\w*/u),g=E==null?void 0:E[0];if(b.has(g)||h[g]===void 0)return b;b.add(g);for(const v of h[g])l({primaryType:v.type,types:h},b);return b}function m({types:y,name:h,type:b,value:E}){if(y[b]!==void 0)return[{type:"bytes32"},(0,t.keccak256)(c({data:E,primaryType:b,types:y}))];if(b==="bytes")return[{type:"bytes32"},(0,t.keccak256)(E)];if(b==="string")return[{type:"bytes32"},(0,t.keccak256)((0,n.toHex)(E))];if(b.lastIndexOf("]")===b.length-1){const g=b.slice(0,b.lastIndexOf("[")),v=E.map(P=>m({name:h,type:g,types:y,value:P}));return[{type:"bytes32"},(0,t.keccak256)((0,e.encodeAbiParameters)(v.map(([P])=>P),v.map(([,P])=>P)))]}return[{type:b},E]}return $r}var Ys={},Lr={},Th;function ol(){return Th||(Th=1,Object.defineProperty(Lr,"__esModule",{value:!0}),Lr.zeroHash=Lr.erc6492MagicBytes=void 0,Lr.erc6492MagicBytes="0x6492649264926492649264926492649264926492649264926492649264926492",Lr.zeroHash="0x0000000000000000000000000000000000000000000000000000000000000000"),Lr}var Sh;function al(){if(Sh)return Ys;Sh=1,Object.defineProperty(Ys,"__esModule",{value:!0}),Ys.isErc6492Signature=n;const e=ol(),r=mt();function n(t){return(0,r.sliceHex)(t,-32)===e.erc6492MagicBytes}return Ys}var Js={},zo={},hf={},Ie={},Je={},Pn={},Lo={},Ih;function Z6(){if(Ih)return Lo;Ih=1,Object.defineProperty(Lo,"__esModule",{value:!0}),Lo.LruMap=void 0;class e extends Map{constructor(n){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=n}get(n){const t=super.get(n);return super.has(n)&&t!==void 0&&(this.delete(n),super.set(n,t)),t}set(n,t){if(super.set(n,t),this.maxSize&&this.size>this.maxSize){const o=this.keys().next().value;o&&this.delete(o)}return this}}return Lo.LruMap=e,Lo}var Rh;function Y6(){if(Rh)return Pn;Rh=1,Object.defineProperty(Pn,"__esModule",{value:!0}),Pn.checksum=void 0,Pn.clear=n;const e=Z6(),r={checksum:new e.LruMap(8192)};Pn.checksum=r.checksum;function n(){for(const t of Object.values(r))t.clear()}return Pn}var br={},Bh;function il(){if(Bh)return br;Bh=1,Object.defineProperty(br,"__esModule",{value:!0}),br.keccak256=a,br.hmac256=i,br.ripemd160=c,br.sha256=d,br.validate=f;const e=Ng(),r=g_(),n=Cg(),t=Vg(),o=Ft(),s=$e();function a(l,m={}){const{as:y=typeof l=="string"?"Hex":"Bytes"}=m,h=(0,n.keccak_256)(o.from(l));return y==="Bytes"?h:s.fromBytes(h)}function i(l,m,y={}){const{as:h=typeof m=="string"?"Hex":"Bytes"}=y,b=(0,e.hmac)(t.sha256,o.from(l),o.from(m));return h==="Bytes"?b:s.fromBytes(b)}function c(l,m={}){const{as:y=typeof l=="string"?"Hex":"Bytes"}=m,h=(0,r.ripemd160)(o.from(l));return y==="Bytes"?h:s.fromBytes(h)}function d(l,m={}){const{as:y=typeof l=="string"?"Hex":"Bytes"}=m,h=(0,t.sha256)(o.from(l));return y==="Bytes"?h:s.fromBytes(h)}function f(l){return s.validate(l)&&s.size(l)===32}return br}var qe={},Oh;function O_(){if(Oh)return qe;Oh=1,Object.defineProperty(qe,"__esModule",{value:!0}),qe.InvalidSerializedSizeError=qe.InvalidUncompressedPrefixError=qe.InvalidCompressedPrefixError=qe.InvalidPrefixError=qe.InvalidError=void 0,qe.assert=o,qe.compress=s,qe.from=a,qe.fromBytes=i,qe.fromHex=c,qe.toBytes=d,qe.toHex=f,qe.validate=l;const e=Ft(),r=yt(),n=$e(),t=fd();function o(g,v={}){const{compressed:P}=v,{prefix:u,x:w,y:_}=g;if(P===!1||typeof w=="bigint"&&typeof _=="bigint"){if(u!==4)throw new y({prefix:u,cause:new b});return}if(P===!0||typeof w=="bigint"&&typeof _>"u"){if(u!==3&&u!==2)throw new y({prefix:u,cause:new h});return}throw new m({publicKey:g})}function s(g){const{x:v,y:P}=g;return{prefix:P%2n===0n?2:3,x:v}}function a(g){const v=(()=>{if(n.validate(g))return c(g);if(e.validate(g))return i(g);const{prefix:P,x:u,y:w}=g;return typeof u=="bigint"&&typeof w=="bigint"?{prefix:P??4,x:u,y:w}:{prefix:P,x:u}})();return o(v),v}function i(g){return c(n.fromBytes(g))}function c(g){if(g.length!==132&&g.length!==130&&g.length!==68)throw new E({publicKey:g});if(g.length===130){const u=BigInt(n.slice(g,0,32)),w=BigInt(n.slice(g,32,64));return{prefix:4,x:u,y:w}}if(g.length===132){const u=Number(n.slice(g,0,1)),w=BigInt(n.slice(g,1,33)),_=BigInt(n.slice(g,33,65));return{prefix:u,x:w,y:_}}const v=Number(n.slice(g,0,1)),P=BigInt(n.slice(g,1,33));return{prefix:v,x:P}}function d(g,v={}){return e.fromHex(f(g,v))}function f(g,v={}){o(g);const{prefix:P,x:u,y:w}=g,{includePrefix:_=!0}=v;return n.concat(_?n.fromNumber(P,{size:1}):"0x",n.fromNumber(u,{size:32}),typeof w=="bigint"?n.fromNumber(w,{size:32}):"0x")}function l(g,v={}){try{return o(g,v),!0}catch{return!1}}class m extends r.BaseError{constructor({publicKey:v}){super(`Value \`${t.stringify(v)}\` 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"})}}qe.InvalidError=m;class y extends r.BaseError{constructor({prefix:v,cause:P}){super(`Prefix "${v}" is invalid.`,{cause:P}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidPrefixError"})}}qe.InvalidPrefixError=y;class h extends r.BaseError{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"})}}qe.InvalidCompressedPrefixError=h;class b extends r.BaseError{constructor(){super("Prefix must be 4 for uncompressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidUncompressedPrefixError"})}}qe.InvalidUncompressedPrefixError=b;class E extends r.BaseError{constructor({publicKey:v}){super(`Value \`${v}\` is an invalid public key size.`,{metaMessages:["Expected: 33 bytes (compressed + prefix), 64 bytes (uncompressed) or 65 bytes (uncompressed + prefix).",`Received ${n.size(n.from(v))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidSerializedSizeError"})}}return qe.InvalidSerializedSizeError=E,qe}var Ch;function Ed(){if(Ch)return Je;Ch=1,Object.defineProperty(Je,"__esModule",{value:!0}),Je.InvalidChecksumError=Je.InvalidInputError=Je.InvalidAddressError=void 0,Je.assert=a,Je.checksum=i,Je.from=c,Je.fromPublicKey=d,Je.isEqual=f,Je.validate=l;const e=Ft(),r=Y6(),n=yt(),t=il(),o=O_(),s=/^0x[a-fA-F0-9]{40}$/;function a(b,E={}){const{strict:g=!0}=E;if(!s.test(b))throw new m({address:b,cause:new y});if(g){if(b.toLowerCase()===b)return;if(i(b)!==b)throw new m({address:b,cause:new h})}}function i(b){if(r.checksum.has(b))return r.checksum.get(b);a(b,{strict:!1});const E=b.substring(2).toLowerCase(),g=t.keccak256(e.fromString(E),{as:"Bytes"}),v=E.split("");for(let u=0;u<40;u+=2)g[u>>1]>>4>=8&&v[u]&&(v[u]=v[u].toUpperCase()),(g[u>>1]&15)>=8&&v[u+1]&&(v[u+1]=v[u+1].toUpperCase());const P=`0x${v.join("")}`;return r.checksum.set(b,P),P}function c(b,E={}){const{checksum:g=!1}=E;return a(b),g?i(b):b}function d(b,E={}){const g=t.keccak256(`0x${o.toHex(b).slice(4)}`).substring(26);return c(`0x${g}`,E)}function f(b,E){return a(b,{strict:!1}),a(E,{strict:!1}),b.toLowerCase()===E.toLowerCase()}function l(b,E={}){const{strict:g=!0}=E??{};try{return a(b,{strict:g}),!0}catch{return!1}}class m extends n.BaseError{constructor({address:E,cause:g}){super(`Address "${E}" is invalid.`,{cause:g}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}}Je.InvalidAddressError=m;class y extends n.BaseError{constructor(){super("Address is not a 20 byte (40 hexadecimal character) value."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidInputError"})}}Je.InvalidInputError=y;class h extends n.BaseError{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}}return Je.InvalidChecksumError=h,Je}var Re={},U={},xh;function sl(){return xh||(xh=1,Object.defineProperty(U,"__esModule",{value:!0}),U.minInt120=U.minInt112=U.minInt104=U.minInt96=U.minInt88=U.minInt80=U.minInt72=U.minInt64=U.minInt56=U.minInt48=U.minInt40=U.minInt32=U.minInt24=U.minInt16=U.minInt8=U.maxInt256=U.maxInt248=U.maxInt240=U.maxInt232=U.maxInt224=U.maxInt216=U.maxInt208=U.maxInt200=U.maxInt192=U.maxInt184=U.maxInt176=U.maxInt168=U.maxInt160=U.maxInt152=U.maxInt144=U.maxInt136=U.maxInt128=U.maxInt120=U.maxInt112=U.maxInt104=U.maxInt96=U.maxInt88=U.maxInt80=U.maxInt72=U.maxInt64=U.maxInt56=U.maxInt48=U.maxInt40=U.maxInt32=U.maxInt24=U.maxInt16=U.maxInt8=U.integerRegex=U.bytesRegex=U.arrayRegex=void 0,U.maxUint256=U.maxUint248=U.maxUint240=U.maxUint232=U.maxUint224=U.maxUint216=U.maxUint208=U.maxUint200=U.maxUint192=U.maxUint184=U.maxUint176=U.maxUint168=U.maxUint160=U.maxUint152=U.maxUint144=U.maxUint136=U.maxUint128=U.maxUint120=U.maxUint112=U.maxUint104=U.maxUint96=U.maxUint88=U.maxUint80=U.maxUint72=U.maxUint64=U.maxUint56=U.maxUint48=U.maxUint40=U.maxUint32=U.maxUint24=U.maxUint16=U.maxUint8=U.minInt256=U.minInt248=U.minInt240=U.minInt232=U.minInt224=U.minInt216=U.minInt208=U.minInt200=U.minInt192=U.minInt184=U.minInt176=U.minInt168=U.minInt160=U.minInt152=U.minInt144=U.minInt136=U.minInt128=void 0,U.arrayRegex=/^(.*)\[([0-9]*)\]$/,U.bytesRegex=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,U.integerRegex=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,U.maxInt8=2n**(8n-1n)-1n,U.maxInt16=2n**(16n-1n)-1n,U.maxInt24=2n**(24n-1n)-1n,U.maxInt32=2n**(32n-1n)-1n,U.maxInt40=2n**(40n-1n)-1n,U.maxInt48=2n**(48n-1n)-1n,U.maxInt56=2n**(56n-1n)-1n,U.maxInt64=2n**(64n-1n)-1n,U.maxInt72=2n**(72n-1n)-1n,U.maxInt80=2n**(80n-1n)-1n,U.maxInt88=2n**(88n-1n)-1n,U.maxInt96=2n**(96n-1n)-1n,U.maxInt104=2n**(104n-1n)-1n,U.maxInt112=2n**(112n-1n)-1n,U.maxInt120=2n**(120n-1n)-1n,U.maxInt128=2n**(128n-1n)-1n,U.maxInt136=2n**(136n-1n)-1n,U.maxInt144=2n**(144n-1n)-1n,U.maxInt152=2n**(152n-1n)-1n,U.maxInt160=2n**(160n-1n)-1n,U.maxInt168=2n**(168n-1n)-1n,U.maxInt176=2n**(176n-1n)-1n,U.maxInt184=2n**(184n-1n)-1n,U.maxInt192=2n**(192n-1n)-1n,U.maxInt200=2n**(200n-1n)-1n,U.maxInt208=2n**(208n-1n)-1n,U.maxInt216=2n**(216n-1n)-1n,U.maxInt224=2n**(224n-1n)-1n,U.maxInt232=2n**(232n-1n)-1n,U.maxInt240=2n**(240n-1n)-1n,U.maxInt248=2n**(248n-1n)-1n,U.maxInt256=2n**(256n-1n)-1n,U.minInt8=-(2n**(8n-1n)),U.minInt16=-(2n**(16n-1n)),U.minInt24=-(2n**(24n-1n)),U.minInt32=-(2n**(32n-1n)),U.minInt40=-(2n**(40n-1n)),U.minInt48=-(2n**(48n-1n)),U.minInt56=-(2n**(56n-1n)),U.minInt64=-(2n**(64n-1n)),U.minInt72=-(2n**(72n-1n)),U.minInt80=-(2n**(80n-1n)),U.minInt88=-(2n**(88n-1n)),U.minInt96=-(2n**(96n-1n)),U.minInt104=-(2n**(104n-1n)),U.minInt112=-(2n**(112n-1n)),U.minInt120=-(2n**(120n-1n)),U.minInt128=-(2n**(128n-1n)),U.minInt136=-(2n**(136n-1n)),U.minInt144=-(2n**(144n-1n)),U.minInt152=-(2n**(152n-1n)),U.minInt160=-(2n**(160n-1n)),U.minInt168=-(2n**(168n-1n)),U.minInt176=-(2n**(176n-1n)),U.minInt184=-(2n**(184n-1n)),U.minInt192=-(2n**(192n-1n)),U.minInt200=-(2n**(200n-1n)),U.minInt208=-(2n**(208n-1n)),U.minInt216=-(2n**(216n-1n)),U.minInt224=-(2n**(224n-1n)),U.minInt232=-(2n**(232n-1n)),U.minInt240=-(2n**(240n-1n)),U.minInt248=-(2n**(248n-1n)),U.minInt256=-(2n**(256n-1n)),U.maxUint8=2n**8n-1n,U.maxUint16=2n**16n-1n,U.maxUint24=2n**24n-1n,U.maxUint32=2n**32n-1n,U.maxUint40=2n**40n-1n,U.maxUint48=2n**48n-1n,U.maxUint56=2n**56n-1n,U.maxUint64=2n**64n-1n,U.maxUint72=2n**72n-1n,U.maxUint80=2n**80n-1n,U.maxUint88=2n**88n-1n,U.maxUint96=2n**96n-1n,U.maxUint104=2n**104n-1n,U.maxUint112=2n**112n-1n,U.maxUint120=2n**120n-1n,U.maxUint128=2n**128n-1n,U.maxUint136=2n**136n-1n,U.maxUint144=2n**144n-1n,U.maxUint152=2n**152n-1n,U.maxUint160=2n**160n-1n,U.maxUint168=2n**168n-1n,U.maxUint176=2n**176n-1n,U.maxUint184=2n**184n-1n,U.maxUint192=2n**192n-1n,U.maxUint200=2n**200n-1n,U.maxUint208=2n**208n-1n,U.maxUint216=2n**216n-1n,U.maxUint224=2n**224n-1n,U.maxUint232=2n**232n-1n,U.maxUint240=2n**240n-1n,U.maxUint248=2n**248n-1n,U.maxUint256=2n**256n-1n),U}var qh;function J6(){if(qh)return Re;qh=1,Object.defineProperty(Re,"__esModule",{value:!0}),Re.decodeParameter=a,Re.decodeAddress=d,Re.decodeArray=f,Re.decodeBool=l,Re.decodeBytes=m,Re.decodeNumber=y,Re.decodeTuple=h,Re.decodeString=b,Re.prepareParameters=E,Re.prepareParameter=g,Re.encode=v,Re.encodeAddress=P,Re.encodeArray=u,Re.encodeBytes=w,Re.encodeBoolean=_,Re.encodeNumber=p,Re.encodeString=S,Re.encodeTuple=A,Re.getArrayComponents=T,Re.hasDynamicChild=O;const e=Ea(),r=Ed(),n=Ft(),t=yt(),o=$e(),s=sl();function a(I,R,H){const{checksumAddress:F,staticPosition:x}=H,j=T(R.type);if(j){const[k,B]=j;return f(I,{...R,type:B},{checksumAddress:F,length:k,staticPosition:x})}if(R.type==="tuple")return h(I,R,{checksumAddress:F,staticPosition:x});if(R.type==="address")return d(I,{checksum:F});if(R.type==="bool")return l(I);if(R.type.startsWith("bytes"))return m(I,R,{staticPosition:x});if(R.type.startsWith("uint")||R.type.startsWith("int"))return y(I,R);if(R.type==="string")return b(I,{staticPosition:x});throw new e.InvalidTypeError(R.type)}const i=32,c=32;function d(I,R={}){const{checksum:H=!1}=R,F=I.readBytes(32);return[(j=>H?r.checksum(j):j)(o.fromBytes(n.slice(F,-20))),32]}function f(I,R,H){const{checksumAddress:F,length:x,staticPosition:j}=H;if(!x){const C=n.toNumber(I.readBytes(c)),q=j+C,M=q+i;I.setPosition(q);const N=n.toNumber(I.readBytes(i)),z=O(R);let $=0;const L=[];for(let G=0;G<N;++G){I.setPosition(M+(z?G*32:$));const[Z,W]=a(I,R,{checksumAddress:F,staticPosition:M});$+=W,L.push(Z)}return I.setPosition(j+32),[L,32]}if(O(R)){const C=n.toNumber(I.readBytes(c)),q=j+C,M=[];for(let N=0;N<x;++N){I.setPosition(q+N*32);const[z]=a(I,R,{checksumAddress:F,staticPosition:q});M.push(z)}return I.setPosition(j+32),[M,32]}let k=0;const B=[];for(let C=0;C<x;++C){const[q,M]=a(I,R,{checksumAddress:F,staticPosition:j+k});k+=M,B.push(q)}return[B,k]}function l(I){return[n.toBoolean(I.readBytes(32),{size:32}),32]}function m(I,R,{staticPosition:H}){const[F,x]=R.type.split("bytes");if(!x){const k=n.toNumber(I.readBytes(32));I.setPosition(H+k);const B=n.toNumber(I.readBytes(32));if(B===0)return I.setPosition(H+32),["0x",32];const C=I.readBytes(B);return I.setPosition(H+32),[o.fromBytes(C),32]}return[o.fromBytes(I.readBytes(Number.parseInt(x,10),32)),32]}function y(I,R){const H=R.type.startsWith("int"),F=Number.parseInt(R.type.split("int")[1]||"256",10),x=I.readBytes(32);return[F>48?n.toBigInt(x,{signed:H}):n.toNumber(x,{signed:H}),32]}function h(I,R,H){const{checksumAddress:F,staticPosition:x}=H,j=R.components.length===0||R.components.some(({name:C})=>!C),k=j?[]:{};let B=0;if(O(R)){const C=n.toNumber(I.readBytes(c)),q=x+C;for(let M=0;M<R.components.length;++M){const N=R.components[M];I.setPosition(q+B);const[z,$]=a(I,N,{checksumAddress:F,staticPosition:q});B+=$,k[j?M:N==null?void 0:N.name]=z}return I.setPosition(x+32),[k,32]}for(let C=0;C<R.components.length;++C){const q=R.components[C],[M,N]=a(I,q,{checksumAddress:F,staticPosition:x});k[j?C:q==null?void 0:q.name]=M,B+=N}return[k,B]}function b(I,{staticPosition:R}){const H=n.toNumber(I.readBytes(32)),F=R+H;I.setPosition(F);const x=n.toNumber(I.readBytes(32));if(x===0)return I.setPosition(R+32),["",32];const j=I.readBytes(x,32),k=n.toString(n.trimLeft(j));return I.setPosition(R+32),[k,32]}function E({checksumAddress:I,parameters:R,values:H}){const F=[];for(let x=0;x<R.length;x++)F.push(g({checksumAddress:I,parameter:R[x],value:H[x]}));return F}function g({checksumAddress:I=!1,parameter:R,value:H}){const F=R,x=T(F.type);if(x){const[j,k]=x;return u(H,{checksumAddress:I,length:j,parameter:{...F,type:k}})}if(F.type==="tuple")return A(H,{checksumAddress:I,parameter:F});if(F.type==="address")return P(H,{checksum:I});if(F.type==="bool")return _(H);if(F.type.startsWith("uint")||F.type.startsWith("int")){const j=F.type.startsWith("int"),[,,k="256"]=s.integerRegex.exec(F.type)??[];return p(H,{signed:j,size:Number(k)})}if(F.type.startsWith("bytes"))return w(H,{type:F.type});if(F.type==="string")return S(H);throw new e.InvalidTypeError(F.type)}function v(I){let R=0;for(let j=0;j<I.length;j++){const{dynamic:k,encoded:B}=I[j];k?R+=32:R+=o.size(B)}const H=[],F=[];let x=0;for(let j=0;j<I.length;j++){const{dynamic:k,encoded:B}=I[j];k?(H.push(o.fromNumber(R+x,{size:32})),F.push(B),x+=o.size(B)):H.push(B)}return o.concat(...H,...F)}function P(I,R){const{checksum:H=!1}=R;return r.assert(I,{strict:H}),{dynamic:!1,encoded:o.padLeft(I.toLowerCase())}}function u(I,R){const{checksumAddress:H,length:F,parameter:x}=R,j=F===null;if(!Array.isArray(I))throw new e.InvalidArrayError(I);if(!j&&I.length!==F)throw new e.ArrayLengthMismatchError({expectedLength:F,givenLength:I.length,type:`${x.type}[${F}]`});let k=!1;const B=[];for(let C=0;C<I.length;C++){const q=g({checksumAddress:H,parameter:x,value:I[C]});q.dynamic&&(k=!0),B.push(q)}if(j||k){const C=v(B);if(j){const q=o.fromNumber(B.length,{size:32});return{dynamic:!0,encoded:B.length>0?o.concat(q,C):q}}if(k)return{dynamic:!0,encoded:C}}return{dynamic:!1,encoded:o.concat(...B.map(({encoded:C})=>C))}}function w(I,{type:R}){const[,H]=R.split("bytes"),F=o.size(I);if(!H){let x=I;return F%32!==0&&(x=o.padRight(x,Math.ceil((I.length-2)/2/32)*32)),{dynamic:!0,encoded:o.concat(o.padLeft(o.fromNumber(F,{size:32})),x)}}if(F!==Number.parseInt(H,10))throw new e.BytesSizeMismatchError({expectedSize:Number.parseInt(H,10),value:I});return{dynamic:!1,encoded:o.padRight(I)}}function _(I){if(typeof I!="boolean")throw new t.BaseError(`Invalid boolean value: "${I}" (type: ${typeof I}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:o.padLeft(o.fromBoolean(I))}}function p(I,{signed:R,size:H}){if(typeof H=="number"){const F=2n**(BigInt(H)-(R?1n:0n))-1n,x=R?-F-1n:0n;if(I>F||I<x)throw new o.IntegerOutOfRangeError({max:F.toString(),min:x.toString(),signed:R,size:H/8,value:I.toString()})}return{dynamic:!1,encoded:o.fromNumber(I,{size:32,signed:R})}}function S(I){const R=o.fromString(I),H=Math.ceil(o.size(R)/32),F=[];for(let x=0;x<H;x++)F.push(o.padRight(o.slice(R,x*32,(x+1)*32)));return{dynamic:!0,encoded:o.concat(o.padRight(o.fromNumber(o.size(R),{size:32})),...F)}}function A(I,R){const{checksumAddress:H,parameter:F}=R;let x=!1;const j=[];for(let k=0;k<F.components.length;k++){const B=F.components[k],C=Array.isArray(I)?k:B.name,q=g({checksumAddress:H,parameter:B,value:I[C]});j.push(q),q.dynamic&&(x=!0)}return{dynamic:x,encoded:x?v(j):o.concat(...j.map(({encoded:k})=>k))}}function T(I){const R=I.match(/^(.*)\[(\d+)?\]$/);return R?[R[2]?Number(R[2]):null,R[1]]:void 0}function O(I){var F;const{type:R}=I;if(R==="string"||R==="bytes"||R.endsWith("[]"))return!0;if(R==="tuple")return(F=I.components)==null?void 0:F.some(O);const H=T(I.type);return!!(H&&O({...I,type:H[1]}))}return Re}var Mt={},Mh;function C_(){if(Mh)return Mt;Mh=1,Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.RecursiveReadLimitExceededError=Mt.PositionOutOfBoundsError=Mt.NegativeOffsetError=void 0,Mt.create=n;const e=yt(),r={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new s({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(a){if(a<0||a>this.bytes.length-1)throw new o({length:this.bytes.length,position:a})},decrementPosition(a){if(a<0)throw new t({offset:a});const i=this.position-a;this.assertPosition(i),this.position=i},getReadCount(a){return this.positionReadCount.get(a||this.position)||0},incrementPosition(a){if(a<0)throw new t({offset:a});const i=this.position+a;this.assertPosition(i),this.position=i},inspectByte(a){const i=a??this.position;return this.assertPosition(i),this.bytes[i]},inspectBytes(a,i){const c=i??this.position;return this.assertPosition(c+a-1),this.bytes.subarray(c,c+a)},inspectUint8(a){const i=a??this.position;return this.assertPosition(i),this.bytes[i]},inspectUint16(a){const i=a??this.position;return this.assertPosition(i+1),this.dataView.getUint16(i)},inspectUint24(a){const i=a??this.position;return this.assertPosition(i+2),(this.dataView.getUint16(i)<<8)+this.dataView.getUint8(i+2)},inspectUint32(a){const i=a??this.position;return this.assertPosition(i+3),this.dataView.getUint32(i)},pushByte(a){this.assertPosition(this.position),this.bytes[this.position]=a,this.position++},pushBytes(a){this.assertPosition(this.position+a.length-1),this.bytes.set(a,this.position),this.position+=a.length},pushUint8(a){this.assertPosition(this.position),this.bytes[this.position]=a,this.position++},pushUint16(a){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,a),this.position+=2},pushUint24(a){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,a>>8),this.dataView.setUint8(this.position+2,a&255),this.position+=3},pushUint32(a){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,a),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const a=this.inspectByte();return this.position++,a},readBytes(a,i){this.assertReadLimit(),this._touch();const c=this.inspectBytes(a);return this.position+=i??a,c},readUint8(){this.assertReadLimit(),this._touch();const a=this.inspectUint8();return this.position+=1,a},readUint16(){this.assertReadLimit(),this._touch();const a=this.inspectUint16();return this.position+=2,a},readUint24(){this.assertReadLimit(),this._touch();const a=this.inspectUint24();return this.position+=3,a},readUint32(){this.assertReadLimit(),this._touch();const a=this.inspectUint32();return this.position+=4,a},get remaining(){return this.bytes.length-this.position},setPosition(a){const i=this.position;return this.assertPosition(a),this.position=a,()=>this.position=i},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const a=this.getReadCount();this.positionReadCount.set(this.position,a+1),a>0&&this.recursiveReadCount++}};function n(a,{recursiveReadLimit:i=8192}={}){const c=Object.create(r);return c.bytes=a,c.dataView=new DataView(a.buffer,a.byteOffset,a.byteLength),c.positionReadCount=new Map,c.recursiveReadLimit=i,c}class t extends e.BaseError{constructor({offset:i}){super(`Offset \`${i}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.NegativeOffsetError"})}}Mt.NegativeOffsetError=t;class o extends e.BaseError{constructor({length:i,position:c}){super(`Position \`${c}\` is out of bounds (\`0 < position < ${i}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.PositionOutOfBoundsError"})}}Mt.PositionOutOfBoundsError=o;class s extends e.BaseError{constructor({count:i,limit:c}){super(`Recursive read limit of \`${c}\` exceeded (recursive read count: \`${i}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.RecursiveReadLimitExceededError"})}}return Mt.RecursiveReadLimitExceededError=s,Mt}var kh;function Ea(){if(kh)return Ie;kh=1,Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.InvalidTypeError=Ie.InvalidArrayError=Ie.LengthMismatchError=Ie.BytesSizeMismatchError=Ie.ArrayLengthMismatchError=Ie.ZeroDataError=Ie.DataSizeTooSmallError=void 0,Ie.decode=c,Ie.encode=d,Ie.encodePacked=f,Ie.format=l,Ie.from=m;const e=hr(),r=Ed(),n=Ft(),t=yt(),o=$e(),s=J6(),a=C_(),i=sl();function c(u,w,_={}){const{as:p="Array",checksumAddress:S=!1}=_,A=typeof w=="string"?n.fromHex(w):w,T=a.create(A);if(n.size(A)===0&&u.length>0)throw new h;if(n.size(A)&&n.size(A)<32)throw new y({data:typeof w=="string"?w:o.fromBytes(w),parameters:u,size:n.size(A)});let O=0;const I=p==="Array"?[]:{};for(let R=0;R<u.length;++R){const H=u[R];T.setPosition(O);const[F,x]=s.decodeParameter(T,H,{checksumAddress:S,staticPosition:0});O+=x,p==="Array"?I.push(F):I[H.name??R]=F}return I}function d(u,w,_){const{checksumAddress:p=!1}=_??{};if(u.length!==w.length)throw new g({expectedLength:u.length,givenLength:w.length});const S=s.prepareParameters({checksumAddress:p,parameters:u,values:w}),A=s.encode(S);return A.length===0?"0x":A}function f(u,w){if(u.length!==w.length)throw new g({expectedLength:u.length,givenLength:w.length});const _=[];for(let p=0;p<u.length;p++){const S=u[p],A=w[p];_.push(f.encode(S,A))}return o.concat(..._)}(function(u){function w(_,p,S=!1){if(_==="address"){const I=p;return r.assert(I),o.padLeft(I.toLowerCase(),S?32:0)}if(_==="string")return o.fromString(p);if(_==="bytes")return p;if(_==="bool")return o.padLeft(o.fromBoolean(p),S?32:1);const A=_.match(i.integerRegex);if(A){const[I,R,H="256"]=A,F=Number.parseInt(H,10)/8;return o.fromNumber(p,{size:S?32:F,signed:R==="int"})}const T=_.match(i.bytesRegex);if(T){const[I,R]=T;if(Number.parseInt(R,10)!==(p.length-2)/2)throw new E({expectedSize:Number.parseInt(R,10),value:p});return o.padRight(p,S?32:0)}const O=_.match(i.arrayRegex);if(O&&Array.isArray(p)){const[I,R]=O,H=[];for(let F=0;F<p.length;F++)H.push(w(R,p[F],!0));return H.length===0?"0x":o.concat(...H)}throw new P(_)}u.encode=w})(f||(Ie.encodePacked=f={}));function l(u){return e.formatAbiParameters(u)}function m(u){return Array.isArray(u)&&typeof u[0]=="string"||typeof u=="string"?e.parseAbiParameters(u):u}class y extends t.BaseError{constructor({data:w,parameters:_,size:p}){super(`Data size of ${p} bytes is too small for given parameters.`,{metaMessages:[`Params: (${e.formatAbiParameters(_)})`,`Data: ${w} (${p} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.DataSizeTooSmallError"})}}Ie.DataSizeTooSmallError=y;class h extends t.BaseError{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ZeroDataError"})}}Ie.ZeroDataError=h;class b extends t.BaseError{constructor({expectedLength:w,givenLength:_,type:p}){super(`Array length mismatch for type \`${p}\`. Expected: \`${w}\`. Given: \`${_}\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ArrayLengthMismatchError"})}}Ie.ArrayLengthMismatchError=b;class E extends t.BaseError{constructor({expectedSize:w,value:_}){super(`Size of bytes "${_}" (bytes${o.size(_)}) does not match expected size (bytes${w}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}}Ie.BytesSizeMismatchError=E;class g extends t.BaseError{constructor({expectedLength:w,givenLength:_}){super(["ABI encoding parameters/values length mismatch.",`Expected length (parameters): ${w}`,`Given length (values): ${_}`].join(`
|
|
46
46
|
`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}}Ie.LengthMismatchError=g;class v extends t.BaseError{constructor(w){super(`Value \`${w}\` is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidArrayError"})}}Ie.InvalidArrayError=v;class P extends t.BaseError{constructor(w){super(`Type \`${w}\` is not a valid ABI Type.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidTypeError"})}}return Ie.InvalidTypeError=P,Ie}var it={},_t={},Hh;function X6(){if(Hh)return _t;Hh=1,Object.defineProperty(_t,"__esModule",{value:!0}),_t.toBytes=o,_t.toHex=s,_t.to=a,_t.decodeRlpCursor=i,_t.readLength=c,_t.readList=d,_t.from=f,_t.fromBytes=l,_t.fromHex=m;const e=Ft(),r=yt(),n=$e(),t=C_();function o(g){return a(g,"Bytes")}function s(g){return a(g,"Hex")}function a(g,v){const P=v??(typeof g=="string"?"Hex":"Bytes"),u=(()=>{if(typeof g=="string"){if(g.length>3&&g.length%2!==0)throw new n.InvalidLengthError(g);return e.fromHex(g)}return g})(),w=t.create(u,{recursiveReadLimit:Number.POSITIVE_INFINITY});return i(w,P)}function i(g,v="Hex"){if(g.bytes.length===0)return v==="Hex"?n.fromBytes(g.bytes):g.bytes;const P=g.readByte();if(P<128&&g.decrementPosition(1),P<192){const w=c(g,P,128),_=g.readBytes(w);return v==="Hex"?n.fromBytes(_):_}const u=c(g,P,192);return d(g,u,v)}function c(g,v,P){if(P===128&&v<128)return 1;if(v<=P+55)return v-P;if(v===P+55+1)return g.readUint8();if(v===P+55+2)return g.readUint16();if(v===P+55+3)return g.readUint24();if(v===P+55+4)return g.readUint32();throw new r.BaseError("Invalid RLP prefix")}function d(g,v,P){const u=g.position,w=[];for(;g.position-u<v;)w.push(i(g,P));return w}function f(g,v){const{as:P}=v,u=y(g),w=t.create(new Uint8Array(u.length));return u.encode(w),P==="Hex"?n.fromBytes(w.bytes):w.bytes}function l(g,v={}){const{as:P="Bytes"}=v;return f(g,{as:P})}function m(g,v={}){const{as:P="Hex"}=v;return f(g,{as:P})}function y(g){return Array.isArray(g)?h(g.map(v=>y(v))):b(g)}function h(g){const v=g.reduce((w,_)=>w+_.length,0),P=E(v);return{length:v<=55?1+v:1+P+v,encode(w){v<=55?w.pushByte(192+v):(w.pushByte(247+P),P===1?w.pushUint8(v):P===2?w.pushUint16(v):P===3?w.pushUint24(v):w.pushUint32(v));for(const{encode:_}of g)_(w)}}}function b(g){const v=typeof g=="string"?e.fromHex(g):g,P=E(v.length);return{length:v.length===1&&v[0]<128?1:v.length<=55?1+v.length:1+P+v.length,encode(w){v.length===1&&v[0]<128?w.pushBytes(v):v.length<=55?(w.pushByte(128+v.length),w.pushBytes(v)):(w.pushByte(183+P),P===1?w.pushUint8(v.length):P===2?w.pushUint16(v.length):P===3?w.pushUint24(v.length):w.pushUint32(v.length),w.pushBytes(v))}}}function E(g){if(g<=255)return 1;if(g<=65535)return 2;if(g<=16777215)return 3;if(g<=4294967295)return 4;throw new r.BaseError("Length is too large.")}return _t}var be={},Fh;function x_(){if(Fh)return be;Fh=1,Object.defineProperty(be,"__esModule",{value:!0}),be.InvalidVError=be.InvalidYParityError=be.InvalidSError=be.InvalidRError=be.MissingPropertiesError=be.InvalidSerializedSizeError=void 0,be.assert=a,be.fromBytes=i,be.fromHex=c,be.extract=d,be.from=f,be.fromDerBytes=l,be.fromDerHex=m,be.fromLegacy=y,be.fromRpc=h,be.fromTuple=b,be.toBytes=E,be.toHex=g,be.toDerBytes=v,be.toDerHex=P,be.toLegacy=u,be.toRpc=w,be.toTuple=_,be.validate=p,be.vToYParity=S,be.yParityToV=A;const e=tn(),r=Ft(),n=yt(),t=$e(),o=fd(),s=sl();function a(x,j={}){const{recovered:k}=j;if(typeof x.r>"u")throw new O({signature:x});if(typeof x.s>"u")throw new O({signature:x});if(k&&typeof x.yParity>"u")throw new O({signature:x});if(x.r<0n||x.r>s.maxUint256)throw new I({value:x.r});if(x.s<0n||x.s>s.maxUint256)throw new R({value:x.s});if(typeof x.yParity=="number"&&x.yParity!==0&&x.yParity!==1)throw new H({value:x.yParity})}function i(x){return c(t.fromBytes(x))}function c(x){if(x.length!==130&&x.length!==132)throw new T({signature:x});const j=BigInt(t.slice(x,0,32)),k=BigInt(t.slice(x,32,64)),B=(()=>{const C=+`0x${x.slice(130)}`;if(!Number.isNaN(C))try{return S(C)}catch{throw new H({value:C})}})();return typeof B>"u"?{r:j,s:k}:{r:j,s:k,yParity:B}}function d(x){if(!(typeof x.r>"u")&&!(typeof x.s>"u"))return f(x)}function f(x){const j=typeof x=="string"?c(x):x instanceof Uint8Array?i(x):typeof x.r=="string"?h(x):x.v?y(x):{r:x.r,s:x.s,...typeof x.yParity<"u"?{yParity:x.yParity}:{}};return a(j),j}function l(x){return m(t.fromBytes(x))}function m(x){const{r:j,s:k}=e.secp256k1.Signature.fromDER(t.from(x).slice(2));return{r:j,s:k}}function y(x){return{r:x.r,s:x.s,yParity:S(x.v)}}function h(x){const j=(()=>{const k=x.v?Number(x.v):void 0;let B=x.yParity?Number(x.yParity):void 0;if(typeof k=="number"&&typeof B!="number"&&(B=S(k)),typeof B!="number")throw new H({value:x.yParity});return B})();return{r:BigInt(x.r),s:BigInt(x.s),yParity:j}}function b(x){const[j,k,B]=x;return f({r:k==="0x"?0n:BigInt(k),s:B==="0x"?0n:BigInt(B),yParity:j==="0x"?0:Number(j)})}function E(x){return r.fromHex(g(x))}function g(x){a(x);const j=x.r,k=x.s;return t.concat(t.fromNumber(j,{size:32}),t.fromNumber(k,{size:32}),typeof x.yParity=="number"?t.fromNumber(A(x.yParity),{size:1}):"0x")}function v(x){return new e.secp256k1.Signature(x.r,x.s).toDERRawBytes()}function P(x){return`0x${new e.secp256k1.Signature(x.r,x.s).toDERHex()}`}function u(x){return{r:x.r,s:x.s,v:A(x.yParity)}}function w(x){const{r:j,s:k,yParity:B}=x;return{r:t.fromNumber(j,{size:32}),s:t.fromNumber(k,{size:32}),yParity:B===0?"0x0":"0x1"}}function _(x){const{r:j,s:k,yParity:B}=x;return[B?"0x01":"0x",j===0n?"0x":t.trimLeft(t.fromNumber(j)),k===0n?"0x":t.trimLeft(t.fromNumber(k))]}function p(x,j={}){try{return a(x,j),!0}catch{return!1}}function S(x){if(x===0||x===27)return 0;if(x===1||x===28)return 1;if(x>=35)return x%2===0?1:0;throw new F({value:x})}function A(x){if(x===0)return 27;if(x===1)return 28;throw new H({value:x})}class T extends n.BaseError{constructor({signature:j}){super(`Value \`${j}\` is an invalid signature size.`,{metaMessages:["Expected: 64 bytes or 65 bytes.",`Received ${t.size(t.from(j))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSerializedSizeError"})}}be.InvalidSerializedSizeError=T;class O extends n.BaseError{constructor({signature:j}){super(`Signature \`${o.stringify(j)}\` is missing either an \`r\`, \`s\`, or \`yParity\` property.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.MissingPropertiesError"})}}be.MissingPropertiesError=O;class I extends n.BaseError{constructor({value:j}){super(`Value \`${j}\` 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"})}}be.InvalidRError=I;class R extends n.BaseError{constructor({value:j}){super(`Value \`${j}\` 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"})}}be.InvalidSError=R;class H extends n.BaseError{constructor({value:j}){super(`Value \`${j}\` 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"})}}be.InvalidYParityError=H;class F extends n.BaseError{constructor({value:j}){super(`Value \`${j}\` 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"})}}return be.InvalidVError=F,be}var Nh;function Q6(){if(Nh)return it;Nh=1,Object.defineProperty(it,"__esModule",{value:!0}),it.from=o,it.fromRpc=s,it.fromRpcList=a,it.fromTuple=i,it.fromTupleList=c,it.getSignPayload=d,it.hash=f,it.toRpc=l,it.toRpcList=m,it.toTuple=y,it.toTupleList=h;const e=il(),r=$e(),n=X6(),t=x_();function o(b,E={}){return typeof b.chainId=="string"?s(b):{...b,...E.signature}}function s(b){const{address:E,chainId:g,nonce:v}=b,P=t.extract(b);return{address:E,chainId:Number(g),nonce:BigInt(v),...P}}function a(b){return b.map(s)}function i(b){const[E,g,v,P,u,w]=b;let _={address:g,chainId:E==="0x"?0:Number(E),nonce:v==="0x"?0n:BigInt(v)};return P&&u&&w&&(_={..._,...t.fromTuple([P,u,w])}),o(_)}function c(b){const E=[];for(const g of b)E.push(i(g));return E}function d(b){return f(b,{presign:!0})}function f(b,E={}){const{presign:g}=E;return e.keccak256(r.concat("0x05",n.fromHex(y(g?{address:b.address,chainId:b.chainId,nonce:b.nonce}:b))))}function l(b){const{address:E,chainId:g,nonce:v,...P}=b;return{address:E,chainId:r.fromNumber(g),nonce:r.fromNumber(v),...t.toRpc(P)}}function m(b){return b.map(l)}function y(b){const{address:E,chainId:g,nonce:v}=b,P=t.extract(b);return[g?r.fromNumber(g):"0x",E,v?r.fromNumber(v):"0x",...P?t.toTuple(P):[]]}function h(b){if(!b||b.length===0)return[];const E=[];for(const g of b)E.push(y(g));return E}return it}var bt={},Ur={},$h;function e2(){if($h)return Ur;$h=1,Object.defineProperty(Ur,"__esModule",{value:!0}),Ur.extraEntropy=void 0,Ur.setExtraEntropy=e,Ur.extraEntropy=!1;function e(r){Ur.extraEntropy=r}return Ur}var zh;function t2(){if(zh)return bt;zh=1,Object.defineProperty(bt,"__esModule",{value:!0}),bt.noble=void 0,bt.createKeyPair=a,bt.getPublicKey=i,bt.getSharedSecret=c,bt.randomPrivateKey=d,bt.recoverAddress=f,bt.recoverPublicKey=l,bt.sign=m,bt.verify=y;const e=tn(),r=Ed(),n=Ft(),t=$e(),o=e2(),s=O_();bt.noble=e.secp256k1;function a(h={}){const{as:b="Hex"}=h,E=d({as:b}),g=i({privateKey:E});return{privateKey:E,publicKey:g}}function i(h){const{privateKey:b}=h,E=e.secp256k1.ProjectivePoint.fromPrivateKey(t.from(b).slice(2));return s.from(E)}function c(h){const{as:b="Hex",privateKey:E,publicKey:g}=h,u=e.secp256k1.ProjectivePoint.fromHex(s.toHex(g).slice(2)).multiply(e.secp256k1.utils.normPrivateKeyToScalar(t.from(E).slice(2))).toRawBytes(!0);return b==="Hex"?t.fromBytes(u):u}function d(h={}){const{as:b="Hex"}=h,E=e.secp256k1.utils.randomPrivateKey();return b==="Hex"?t.fromBytes(E):E}function f(h){return r.fromPublicKey(l(h))}function l(h){const{payload:b,signature:E}=h,{r:g,s:v,yParity:P}=E,w=new e.secp256k1.Signature(BigInt(g),BigInt(v)).addRecoveryBit(P).recoverPublicKey(t.from(b).substring(2));return s.from(w)}function m(h){const{extraEntropy:b=o.extraEntropy,hash:E,payload:g,privateKey:v}=h,{r:P,s:u,recovery:w}=e.secp256k1.sign(n.from(g),n.from(v),{extraEntropy:typeof b=="boolean"?b:t.from(b).slice(2),lowS:!0,...E?{prehash:!0}:{}});return{r:P,s:u,yParity:w}}function y(h){const{hash:b,payload:E}=h;return h.address?r.isEqual(h.address,f({payload:E,signature:h.signature})):e.secp256k1.verify(h.signature,n.from(E),s.toBytes(h.publicKey),...b?[{prehash:!0,lowS:!0}]:[])}return bt}var Lh;function r2(){return Lh||(Lh=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.InvalidWrappedSignatureError=e.suffixParameters=e.magicBytes=void 0,e.assert=i,e.from=c,e.unwrap=d,e.wrap=f,e.validate=l;const r=Ea(),n=Q6(),t=yt(),o=$e(),s=t2(),a=x_();e.magicBytes="0x8010801080108010801080108010801080108010801080108010801080108010",e.suffixParameters=r.from("(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data");function i(y){if(typeof y=="string"){if(o.slice(y,-32)!==e.magicBytes)throw new m(y)}else a.assert(y.authorization)}function c(y){return typeof y=="string"?d(y):y}function d(y){i(y);const h=o.toNumber(o.slice(y,-64,-32)),b=o.slice(y,-h-64,-64),E=o.slice(y,0,-h-64),[g,v,P]=r.decode(e.suffixParameters,b);return{authorization:n.from({address:g.delegation,chainId:Number(g.chainId),nonce:g.nonce,yParity:g.yParity,r:g.r,s:g.s}),signature:E,...P&&P!=="0x"?{data:P,to:v}:{}}}function f(y){const{data:h,signature:b}=y;i(y);const E=s.recoverAddress({payload:n.getSignPayload(y.authorization),signature:a.from(y.authorization)}),g=r.encode(e.suffixParameters,[{...y.authorization,delegation:y.authorization.address,chainId:BigInt(y.authorization.chainId)},y.to??E,h??"0x"]),v=o.fromNumber(o.size(g),{size:32});return o.concat(b,g,v,e.magicBytes)}function l(y){try{return i(y),!0}catch{return!1}}class m extends t.BaseError{constructor(h){super(`Value \`${h}\` is an invalid ERC-8010 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc8010.InvalidWrappedSignatureError"})}}e.InvalidWrappedSignatureError=m})(hf)),hf}var Uh;function jd(){return Uh||(Uh=1,Object.defineProperty(zo,"__esModule",{value:!0}),zo.SignatureErc8010=void 0,zo.SignatureErc8010=r2()),zo}var Dh;function cl(){if(Dh)return Js;Dh=1,Object.defineProperty(Js,"__esModule",{value:!0}),Js.isErc8010Signature=r;const e=jd();function r(n){return e.SignatureErc8010.validate(n)}return Js}var Xs={},Gh;function q_(){if(Gh)return Xs;Gh=1,Object.defineProperty(Xs,"__esModule",{value:!0}),Xs.parseErc6492Signature=n;const e=gr(),r=al();function n(t){if(!(0,r.isErc6492Signature)(t))return{signature:t};const[o,s,a]=(0,e.decodeAbiParameters)([{type:"address"},{type:"bytes"},{type:"bytes"}],t);return{address:o,data:s,signature:a}}return Xs}var Qs={},Vh;function M_(){if(Vh)return Qs;Vh=1,Object.defineProperty(Qs,"__esModule",{value:!0}),Qs.parseErc8010Signature=t;const e=jd(),r=oe(),n=cl();function t(o){if(!(0,n.isErc8010Signature)(o))return{signature:o};const{authorization:s,to:a,...i}=e.SignatureErc8010.unwrap(o);return{authorization:{address:s.address,chainId:s.chainId,nonce:Number(s.nonce),r:(0,r.numberToHex)(s.r,{size:32}),s:(0,r.numberToHex)(s.s,{size:32}),yParity:s.yParity},...a?{address:a}:{},...i}}return Qs}var ec={},Wh;function ul(){if(Wh)return ec;Wh=1,Object.defineProperty(ec,"__esModule",{value:!0}),ec.recoverMessageAddress=n;const e=_a(),r=jr();async function n({message:t,signature:o}){return(0,r.recoverAddress)({hash:(0,e.hashMessage)(t),signature:o})}return ec}var tc={},Kh;function dl(){if(Kh)return tc;Kh=1,Object.defineProperty(tc,"__esModule",{value:!0}),tc.recoverTypedDataAddress=n;const e=va(),r=jr();async function n(t){const{domain:o,message:s,primaryType:a,signature:i,types:c}=t;return(0,r.recoverAddress)({hash:(0,e.hashTypedData)({domain:o,message:s,primaryType:a,types:c}),signature:i})}return tc}var rc={},Zh;function k_(){if(Zh)return rc;Zh=1,Object.defineProperty(rc,"__esModule",{value:!0}),rc.serializeErc6492Signature=o;const e=ol(),r=Rt(),n=Me(),t=Pe();function o(s){const{address:a,data:i,signature:c,to:d="hex"}=s,f=(0,n.concatHex)([(0,r.encodeAbiParameters)([{type:"address"},{type:"bytes"},{type:"bytes"}],[a,i,c]),e.erc6492MagicBytes]);return d==="hex"?f:(0,t.hexToBytes)(f)}return rc}var nc={},Yh;function H_(){if(Yh)return nc;Yh=1,Object.defineProperty(nc,"__esModule",{value:!0}),nc.serializeErc8010Signature=n;const e=jd(),r=Pe();function n(t){const{address:o,data:s,signature:a,to:i="hex"}=t,c=e.SignatureErc8010.wrap({authorization:{address:t.authorization.address,chainId:t.authorization.chainId,nonce:BigInt(t.authorization.nonce),r:BigInt(t.authorization.r),s:BigInt(t.authorization.s),yParity:t.authorization.yParity},data:s,signature:a,to:o});return i==="hex"?c:(0,r.hexToBytes)(c)}return nc}var oc={},Jh;function F_(){if(Jh)return oc;Jh=1,Object.defineProperty(oc,"__esModule",{value:!0}),oc.verifyHash=t;const e=et(),r=ht(),n=jr();async function t({address:o,hash:s,signature:a}){return(0,r.isAddressEqual)((0,e.getAddress)(o),await(0,n.recoverAddress)({hash:s,signature:a}))}return oc}var ac={},Xh;function N_(){if(Xh)return ac;Xh=1,Object.defineProperty(ac,"__esModule",{value:!0}),ac.verifyMessage=t;const e=et(),r=ht(),n=ul();async function t({address:o,message:s,signature:a}){return(0,r.isAddressEqual)((0,e.getAddress)(o),await(0,n.recoverMessageAddress)({message:s,signature:a}))}return ac}var ic={},Qh;function $_(){if(Qh)return ic;Qh=1,Object.defineProperty(ic,"__esModule",{value:!0}),ic.verifyTypedData=t;const e=et(),r=ht(),n=dl();async function t(o){const{address:s,domain:a,message:i,primaryType:c,signature:d,types:f}=o;return(0,r.isAddressEqual)((0,e.getAddress)(s),await(0,n.recoverTypedDataAddress)({domain:a,message:i,primaryType:c,signature:d,types:f}))}return ic}var sc={},ey;function fl(){if(ey)return sc;ey=1,Object.defineProperty(sc,"__esModule",{value:!0}),sc.getSerializedTransactionType=t;const e=ct(),r=mt(),n=xe();function t(o){const s=(0,r.sliceHex)(o,0,1);if(s==="0x04")return"eip7702";if(s==="0x03")return"eip4844";if(s==="0x02")return"eip1559";if(s==="0x01")return"eip2930";if(s!=="0x"&&(0,n.hexToNumber)(s)>=192)return"legacy";throw new e.InvalidSerializedTransactionTypeError({serializedType:s})}return sc}var An={},ty;function ll(){if(ty)return An;ty=1,Object.defineProperty(An,"__esModule",{value:!0}),An.parseTransaction=m,An.toTransactionArray=v,An.parseAccessList=P;const e=It(),r=ct(),n=tt(),t=cd(),o=Qe(),s=yr(),a=tr(),i=xe(),c=Qf(),d=el(),f=gd(),l=fl();function m(_){const p=(0,l.getSerializedTransactionType)(_);return p==="eip1559"?b(_):p==="eip2930"?E(_):p==="eip4844"?h(_):p==="eip7702"?y(_):g(_)}function y(_){const p=v(_),[S,A,T,O,I,R,H,F,x,j,k,B,C]=p;if(p.length!==10&&p.length!==13)throw new r.InvalidSerializedTransactionError({attributes:{chainId:S,nonce:A,maxPriorityFeePerGas:T,maxFeePerGas:O,gas:I,to:R,value:H,data:F,accessList:x,authorizationList:j,...p.length>9?{v:k,r:B,s:C}:{}},serializedTransaction:_,type:"eip7702"});const q={chainId:(0,i.hexToNumber)(S),type:"eip7702"};return(0,o.isHex)(R)&&R!=="0x"&&(q.to=R),(0,o.isHex)(I)&&I!=="0x"&&(q.gas=(0,i.hexToBigInt)(I)),(0,o.isHex)(F)&&F!=="0x"&&(q.data=F),(0,o.isHex)(A)&&(q.nonce=A==="0x"?0:(0,i.hexToNumber)(A)),(0,o.isHex)(H)&&H!=="0x"&&(q.value=(0,i.hexToBigInt)(H)),(0,o.isHex)(O)&&O!=="0x"&&(q.maxFeePerGas=(0,i.hexToBigInt)(O)),(0,o.isHex)(T)&&T!=="0x"&&(q.maxPriorityFeePerGas=(0,i.hexToBigInt)(T)),x.length!==0&&x!=="0x"&&(q.accessList=P(x)),j.length!==0&&j!=="0x"&&(q.authorizationList=u(j)),(0,f.assertTransactionEIP7702)(q),{...p.length===13?w(p):void 0,...q}}function h(_){const p=v(_),S=p.length===4,A=S?p[0]:p,T=S?p.slice(1):[],[O,I,R,H,F,x,j,k,B,C,q,M,N,z]=A,[$,L,G]=T;if(!(A.length===11||A.length===14))throw new r.InvalidSerializedTransactionError({attributes:{chainId:O,nonce:I,maxPriorityFeePerGas:R,maxFeePerGas:H,gas:F,to:x,value:j,data:k,accessList:B,...A.length>9?{v:M,r:N,s:z}:{}},serializedTransaction:_,type:"eip4844"});const Z={blobVersionedHashes:q,chainId:(0,i.hexToNumber)(O),to:x,type:"eip4844"};return(0,o.isHex)(F)&&F!=="0x"&&(Z.gas=(0,i.hexToBigInt)(F)),(0,o.isHex)(k)&&k!=="0x"&&(Z.data=k),(0,o.isHex)(I)&&(Z.nonce=I==="0x"?0:(0,i.hexToNumber)(I)),(0,o.isHex)(j)&&j!=="0x"&&(Z.value=(0,i.hexToBigInt)(j)),(0,o.isHex)(C)&&C!=="0x"&&(Z.maxFeePerBlobGas=(0,i.hexToBigInt)(C)),(0,o.isHex)(H)&&H!=="0x"&&(Z.maxFeePerGas=(0,i.hexToBigInt)(H)),(0,o.isHex)(R)&&R!=="0x"&&(Z.maxPriorityFeePerGas=(0,i.hexToBigInt)(R)),B.length!==0&&B!=="0x"&&(Z.accessList=P(B)),$&&L&&G&&(Z.sidecars=(0,t.toBlobSidecars)({blobs:$,commitments:L,proofs:G})),(0,f.assertTransactionEIP4844)(Z),{...A.length===14?w(A):void 0,...Z}}function b(_){const p=v(_),[S,A,T,O,I,R,H,F,x,j,k,B]=p;if(!(p.length===9||p.length===12))throw new r.InvalidSerializedTransactionError({attributes:{chainId:S,nonce:A,maxPriorityFeePerGas:T,maxFeePerGas:O,gas:I,to:R,value:H,data:F,accessList:x,...p.length>9?{v:j,r:k,s:B}:{}},serializedTransaction:_,type:"eip1559"});const C={chainId:(0,i.hexToNumber)(S),type:"eip1559"};return(0,o.isHex)(R)&&R!=="0x"&&(C.to=R),(0,o.isHex)(I)&&I!=="0x"&&(C.gas=(0,i.hexToBigInt)(I)),(0,o.isHex)(F)&&F!=="0x"&&(C.data=F),(0,o.isHex)(A)&&(C.nonce=A==="0x"?0:(0,i.hexToNumber)(A)),(0,o.isHex)(H)&&H!=="0x"&&(C.value=(0,i.hexToBigInt)(H)),(0,o.isHex)(O)&&O!=="0x"&&(C.maxFeePerGas=(0,i.hexToBigInt)(O)),(0,o.isHex)(T)&&T!=="0x"&&(C.maxPriorityFeePerGas=(0,i.hexToBigInt)(T)),x.length!==0&&x!=="0x"&&(C.accessList=P(x)),(0,f.assertTransactionEIP1559)(C),{...p.length===12?w(p):void 0,...C}}function E(_){const p=v(_),[S,A,T,O,I,R,H,F,x,j,k]=p;if(!(p.length===8||p.length===11))throw new r.InvalidSerializedTransactionError({attributes:{chainId:S,nonce:A,gasPrice:T,gas:O,to:I,value:R,data:H,accessList:F,...p.length>8?{v:x,r:j,s:k}:{}},serializedTransaction:_,type:"eip2930"});const B={chainId:(0,i.hexToNumber)(S),type:"eip2930"};return(0,o.isHex)(I)&&I!=="0x"&&(B.to=I),(0,o.isHex)(O)&&O!=="0x"&&(B.gas=(0,i.hexToBigInt)(O)),(0,o.isHex)(H)&&H!=="0x"&&(B.data=H),(0,o.isHex)(A)&&(B.nonce=A==="0x"?0:(0,i.hexToNumber)(A)),(0,o.isHex)(R)&&R!=="0x"&&(B.value=(0,i.hexToBigInt)(R)),(0,o.isHex)(T)&&T!=="0x"&&(B.gasPrice=(0,i.hexToBigInt)(T)),F.length!==0&&F!=="0x"&&(B.accessList=P(F)),(0,f.assertTransactionEIP2930)(B),{...p.length===11?w(p):void 0,...B}}function g(_){const p=(0,c.fromRlp)(_,"hex"),[S,A,T,O,I,R,H,F,x]=p;if(!(p.length===6||p.length===9))throw new r.InvalidSerializedTransactionError({attributes:{nonce:S,gasPrice:A,gas:T,to:O,value:I,data:R,...p.length>6?{v:H,r:F,s:x}:{}},serializedTransaction:_,type:"legacy"});const j={type:"legacy"};if((0,o.isHex)(O)&&O!=="0x"&&(j.to=O),(0,o.isHex)(T)&&T!=="0x"&&(j.gas=(0,i.hexToBigInt)(T)),(0,o.isHex)(R)&&R!=="0x"&&(j.data=R),(0,o.isHex)(S)&&(j.nonce=S==="0x"?0:(0,i.hexToNumber)(S)),(0,o.isHex)(I)&&I!=="0x"&&(j.value=(0,i.hexToBigInt)(I)),(0,o.isHex)(A)&&A!=="0x"&&(j.gasPrice=(0,i.hexToBigInt)(A)),(0,f.assertTransactionLegacy)(j),p.length===6)return j;const k=(0,o.isHex)(H)&&H!=="0x"?(0,i.hexToBigInt)(H):0n;if(x==="0x"&&F==="0x")return k>0&&(j.chainId=Number(k)),j;const B=k,C=Number((B-35n)/2n);if(C>0)j.chainId=C;else if(B!==27n&&B!==28n)throw new r.InvalidLegacyVError({v:B});return j.v=B,j.s=x,j.r=F,j.yParity=B%2n===0n?1:0,j}function v(_){return(0,c.fromRlp)(`0x${_.slice(4)}`,"hex")}function P(_){const p=[];for(let S=0;S<_.length;S++){const[A,T]=_[S];if(!(0,n.isAddress)(A,{strict:!1}))throw new e.InvalidAddressError({address:A});p.push({address:A,storageKeys:T.map(O=>(0,d.isHash)(O)?O:(0,a.trim)(O))})}return p}function u(_){const p=[];for(let S=0;S<_.length;S++){const[A,T,O,I,R,H]=_[S];p.push({address:T,chainId:A==="0x"?0:(0,i.hexToNumber)(A),nonce:O==="0x"?0:(0,i.hexToNumber)(O),...w([I,R,H])})}return p}function w(_){const p=_.slice(-3),S=p[0]==="0x"?0n:(0,i.hexToBigInt)(p[0]);if(S!==0n&&S!==1n)throw new r.InvalidYParityError({yParity:S});const A=S===0n?27n:28n;return{r:(0,s.padHex)(p[1],{size:32}),s:(0,s.padHex)(p[2],{size:32}),v:A,yParity:A===27n?0:1}}return An}var cc={},uc={},Uo={},ry;function z_(){if(ry)return Uo;ry=1,Object.defineProperty(Uo,"__esModule",{value:!0}),Uo.InvalidDecimalNumberError=void 0;const e=ue();class r extends e.BaseError{constructor({value:t}){super(`Number \`${t}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}return Uo.InvalidDecimalNumberError=r,Uo}var ny;function ja(){if(ny)return uc;ny=1,Object.defineProperty(uc,"__esModule",{value:!0}),uc.parseUnits=r;const e=z_();function r(n,t){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(n))throw new e.InvalidDecimalNumberError({value:n});let[o,s="0"]=n.split(".");const a=o.startsWith("-");if(a&&(o=o.slice(1)),s=s.replace(/(0+)$/,""),t===0)Math.round(+`.${s}`)===1&&(o=`${BigInt(o)+1n}`),s="";else if(s.length>t){const[i,c,d]=[s.slice(0,t-1),s.slice(t-1,t),s.slice(t)],f=Math.round(+`${c}.${d}`);f>9?s=`${BigInt(i)+BigInt(1)}0`.padStart(i.length+1,"0"):s=`${i}${f}`,s.length>t&&(s=s.slice(1),o=`${BigInt(o)+1n}`),s=s.slice(0,t)}else s=s.padEnd(t,"0");return BigInt(`${a?"-":""}${o}${s}`)}return uc}var oy;function L_(){if(oy)return cc;oy=1,Object.defineProperty(cc,"__esModule",{value:!0}),cc.parseEther=n;const e=ra(),r=ja();function n(t,o="wei"){return(0,r.parseUnits)(t,e.etherUnits[o])}return cc}var dc={},ay;function U_(){if(ay)return dc;ay=1,Object.defineProperty(dc,"__esModule",{value:!0}),dc.parseGwei=n;const e=ra(),r=ja();function n(t,o="wei"){return(0,r.parseUnits)(t,e.gweiUnits[o])}return dc}var iy;function bl(){return iy||(iy=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.pad=e.isHex=e.isBytes=e.concatHex=e.concatBytes=e.concat=e.getChainContractAddress=e.extractChain=e.defineChain=e.assertCurrentChain=e.ccipReadTunnel=e.offchainLookupSignature=e.offchainLookupAbiItem=e.offchainLookup=e.ccipFetch=e.ccipRequest=e.buildRequest=e.verifyAuthorization=e.serializeAuthorizationList=e.recoverAuthorizationAddress=e.hashAuthorization=e.isAddressEqual=e.isAddress=e.getCreateAddress=e.getCreate2Address=e.getContractAddress=e.getAddress=e.parseEventLogs=e.getAbiItem=e.formatAbiItemWithArgs=e.formatAbiParams=e.formatAbiItem=e.encodePacked=e.encodeFunctionResult=e.encodeFunctionData=e.encodeEventTopics=e.encodeErrorResult=e.encodeDeployData=e.encodeAbiParameters=e.decodeFunctionResult=e.decodeFunctionData=e.decodeEventLog=e.decodeErrorResult=e.decodeAbiParameters=e.publicKeyToAddress=e.parseAccount=e.parseAbiParameters=e.parseAbiParameter=e.parseAbiItem=e.parseAbi=void 0,e.keccak256=e.isHash=e.getAction=e.formatTransactionRequest=e.defineTransactionRequest=e.defineTransactionReceipt=e.transactionType=e.formatTransaction=e.defineTransaction=e.formatLog=e.defineFormatter=e.extract=e.formatBlock=e.defineBlock=e.getTransactionError=e.getNodeError=e.containsNodeError=e.getEstimateGasError=e.getContractError=e.getCallError=e.toRlp=e.toHex=e.stringToHex=e.numberToHex=e.bytesToHex=e.boolToHex=e.toBytes=e.stringToBytes=e.numberToBytes=e.hexToBytes=e.boolToBytes=e.fromRlp=e.hexToString=e.hexToNumber=e.hexToBool=e.hexToBigInt=e.fromHex=e.fromBytes=e.bytesToString=e.bytesToNumber=e.bytesToBool=e.bytesToBigint=e.bytesToBigInt=e.trim=e.sliceHex=e.sliceBytes=e.slice=e.size=e.padHex=e.padBytes=void 0,e.serializeTypedData=e.serializeTransaction=e.serializeAccessList=e.parseTransaction=e.getTransactionType=e.getSerializedTransactionType=e.assertTransactionLegacy=e.assertTransactionEIP2930=e.assertTransactionEIP1559=e.assertRequest=e.stringify=e.verifyTypedData=e.verifyMessage=e.verifyHash=e.serializeErc8010Signature=e.serializeErc6492Signature=e.recoverTypedDataAddress=e.recoverPublicKey=e.recoverMessageAddress=e.recoverAddress=e.parseErc8010Signature=e.parseErc6492Signature=e.isErc8010Signature=e.isErc6492Signature=e.hashTypedData=e.hashStruct=e.hashMessage=e.getWebSocketRpcClient=e.socketClientCache=e.getSocketRpcClient=e.getHttpRpcClient=e.rpc=e.getSocket=e.integerRegex=e.bytesRegex=e.arrayRegex=e.nonceManager=e.createNonceManager=e.getFunctionSignature=e.toFunctionSignature=e.getFunctionSelector=e.toFunctionSelector=e.toFunctionHash=e.getEventSignature=e.toEventSignature=e.getEventSelector=e.toEventSelector=e.toEventHash=e.sha256=e.ripemd160=void 0,e.parseUnits=e.parseGwei=e.parseEther=e.formatUnits=e.formatGwei=e.formatEther=e.validateTypedData=void 0;var r=hr();Object.defineProperty(e,"parseAbi",{enumerable:!0,get:function(){return r.parseAbi}}),Object.defineProperty(e,"parseAbiItem",{enumerable:!0,get:function(){return r.parseAbiItem}}),Object.defineProperty(e,"parseAbiParameter",{enumerable:!0,get:function(){return r.parseAbiParameter}}),Object.defineProperty(e,"parseAbiParameters",{enumerable:!0,get:function(){return r.parseAbiParameters}});var n=Se();Object.defineProperty(e,"parseAccount",{enumerable:!0,get:function(){return n.parseAccount}});var t=kg();Object.defineProperty(e,"publicKeyToAddress",{enumerable:!0,get:function(){return t.publicKeyToAddress}});var o=gr();Object.defineProperty(e,"decodeAbiParameters",{enumerable:!0,get:function(){return o.decodeAbiParameters}});var s=ta();Object.defineProperty(e,"decodeErrorResult",{enumerable:!0,get:function(){return s.decodeErrorResult}});var a=fa();Object.defineProperty(e,"decodeEventLog",{enumerable:!0,get:function(){return a.decodeEventLog}});var i=Nf();Object.defineProperty(e,"decodeFunctionData",{enumerable:!0,get:function(){return i.decodeFunctionData}});var c=Ct();Object.defineProperty(e,"decodeFunctionResult",{enumerable:!0,get:function(){return c.decodeFunctionResult}});var d=Rt();Object.defineProperty(e,"encodeAbiParameters",{enumerable:!0,get:function(){return d.encodeAbiParameters}});var f=ma();Object.defineProperty(e,"encodeDeployData",{enumerable:!0,get:function(){return f.encodeDeployData}});var l=$f();Object.defineProperty(e,"encodeErrorResult",{enumerable:!0,get:function(){return l.encodeErrorResult}});var m=Jr();Object.defineProperty(e,"encodeEventTopics",{enumerable:!0,get:function(){return m.encodeEventTopics}});var y=Ge();Object.defineProperty(e,"encodeFunctionData",{enumerable:!0,get:function(){return y.encodeFunctionData}});var h=zf();Object.defineProperty(e,"encodeFunctionResult",{enumerable:!0,get:function(){return h.encodeFunctionResult}});var b=d_();Object.defineProperty(e,"encodePacked",{enumerable:!0,get:function(){return b.encodePacked}});var E=er();Object.defineProperty(e,"formatAbiItem",{enumerable:!0,get:function(){return E.formatAbiItem}}),Object.defineProperty(e,"formatAbiParams",{enumerable:!0,get:function(){return E.formatAbiParams}});var g=Mg();Object.defineProperty(e,"formatAbiItemWithArgs",{enumerable:!0,get:function(){return g.formatAbiItemWithArgs}});var v=rr();Object.defineProperty(e,"getAbiItem",{enumerable:!0,get:function(){return v.getAbiItem}});var P=nn();Object.defineProperty(e,"parseEventLogs",{enumerable:!0,get:function(){return P.parseEventLogs}});var u=et();Object.defineProperty(e,"getAddress",{enumerable:!0,get:function(){return u.getAddress}});var w=f_();Object.defineProperty(e,"getContractAddress",{enumerable:!0,get:function(){return w.getContractAddress}}),Object.defineProperty(e,"getCreate2Address",{enumerable:!0,get:function(){return w.getCreate2Address}}),Object.defineProperty(e,"getCreateAddress",{enumerable:!0,get:function(){return w.getCreateAddress}});var _=tt();Object.defineProperty(e,"isAddress",{enumerable:!0,get:function(){return _.isAddress}});var p=ht();Object.defineProperty(e,"isAddressEqual",{enumerable:!0,get:function(){return p.isAddressEqual}});var S=zg();Object.defineProperty(e,"hashAuthorization",{enumerable:!0,get:function(){return S.hashAuthorization}});var A=aa();Object.defineProperty(e,"recoverAuthorizationAddress",{enumerable:!0,get:function(){return A.recoverAuthorizationAddress}});var T=l_();Object.defineProperty(e,"serializeAuthorizationList",{enumerable:!0,get:function(){return T.serializeAuthorizationList}});var O=b_();Object.defineProperty(e,"verifyAuthorization",{enumerable:!0,get:function(){return O.verifyAuthorization}});var I=m_();Object.defineProperty(e,"buildRequest",{enumerable:!0,get:function(){return I.buildRequest}});var R=ld();Object.defineProperty(e,"ccipRequest",{enumerable:!0,get:function(){return R.ccipRequest}}),Object.defineProperty(e,"ccipFetch",{enumerable:!0,get:function(){return R.ccipRequest}}),Object.defineProperty(e,"offchainLookup",{enumerable:!0,get:function(){return R.offchainLookup}}),Object.defineProperty(e,"offchainLookupAbiItem",{enumerable:!0,get:function(){return R.offchainLookupAbiItem}}),Object.defineProperty(e,"offchainLookupSignature",{enumerable:!0,get:function(){return R.offchainLookupSignature}});var H=h_();Object.defineProperty(e,"ccipReadTunnel",{enumerable:!0,get:function(){return H.ccipReadTunnel}});var F=pa();Object.defineProperty(e,"assertCurrentChain",{enumerable:!0,get:function(){return F.assertCurrentChain}});var x=y_();Object.defineProperty(e,"defineChain",{enumerable:!0,get:function(){return x.defineChain}});var j=p_();Object.defineProperty(e,"extractChain",{enumerable:!0,get:function(){return j.extractChain}});var k=Ar();Object.defineProperty(e,"getChainContractAddress",{enumerable:!0,get:function(){return k.getChainContractAddress}});var B=Me();Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return B.concat}}),Object.defineProperty(e,"concatBytes",{enumerable:!0,get:function(){return B.concatBytes}}),Object.defineProperty(e,"concatHex",{enumerable:!0,get:function(){return B.concatHex}});var C=Jf();Object.defineProperty(e,"isBytes",{enumerable:!0,get:function(){return C.isBytes}});var q=Qe();Object.defineProperty(e,"isHex",{enumerable:!0,get:function(){return q.isHex}});var M=yr();Object.defineProperty(e,"pad",{enumerable:!0,get:function(){return M.pad}}),Object.defineProperty(e,"padBytes",{enumerable:!0,get:function(){return M.padBytes}}),Object.defineProperty(e,"padHex",{enumerable:!0,get:function(){return M.padHex}});var N=De();Object.defineProperty(e,"size",{enumerable:!0,get:function(){return N.size}});var z=mt();Object.defineProperty(e,"slice",{enumerable:!0,get:function(){return z.slice}}),Object.defineProperty(e,"sliceBytes",{enumerable:!0,get:function(){return z.sliceBytes}}),Object.defineProperty(e,"sliceHex",{enumerable:!0,get:function(){return z.sliceHex}});var $=tr();Object.defineProperty(e,"trim",{enumerable:!0,get:function(){return $.trim}});var L=wf();Object.defineProperty(e,"bytesToBigInt",{enumerable:!0,get:function(){return L.bytesToBigInt}}),Object.defineProperty(e,"bytesToBigint",{enumerable:!0,get:function(){return L.bytesToBigInt}}),Object.defineProperty(e,"bytesToBool",{enumerable:!0,get:function(){return L.bytesToBool}}),Object.defineProperty(e,"bytesToNumber",{enumerable:!0,get:function(){return L.bytesToNumber}}),Object.defineProperty(e,"bytesToString",{enumerable:!0,get:function(){return L.bytesToString}}),Object.defineProperty(e,"fromBytes",{enumerable:!0,get:function(){return L.fromBytes}});var G=xe();Object.defineProperty(e,"fromHex",{enumerable:!0,get:function(){return G.fromHex}}),Object.defineProperty(e,"hexToBigInt",{enumerable:!0,get:function(){return G.hexToBigInt}}),Object.defineProperty(e,"hexToBool",{enumerable:!0,get:function(){return G.hexToBool}}),Object.defineProperty(e,"hexToNumber",{enumerable:!0,get:function(){return G.hexToNumber}}),Object.defineProperty(e,"hexToString",{enumerable:!0,get:function(){return G.hexToString}});var Z=Qf();Object.defineProperty(e,"fromRlp",{enumerable:!0,get:function(){return Z.fromRlp}});var W=Pe();Object.defineProperty(e,"boolToBytes",{enumerable:!0,get:function(){return W.boolToBytes}}),Object.defineProperty(e,"hexToBytes",{enumerable:!0,get:function(){return W.hexToBytes}}),Object.defineProperty(e,"numberToBytes",{enumerable:!0,get:function(){return W.numberToBytes}}),Object.defineProperty(e,"stringToBytes",{enumerable:!0,get:function(){return W.stringToBytes}}),Object.defineProperty(e,"toBytes",{enumerable:!0,get:function(){return W.toBytes}});var V=oe();Object.defineProperty(e,"boolToHex",{enumerable:!0,get:function(){return V.boolToHex}}),Object.defineProperty(e,"bytesToHex",{enumerable:!0,get:function(){return V.bytesToHex}}),Object.defineProperty(e,"numberToHex",{enumerable:!0,get:function(){return V.numberToHex}}),Object.defineProperty(e,"stringToHex",{enumerable:!0,get:function(){return V.stringToHex}}),Object.defineProperty(e,"toHex",{enumerable:!0,get:function(){return V.toHex}});var J=oa();Object.defineProperty(e,"toRlp",{enumerable:!0,get:function(){return J.toRlp}});var te=kf();Object.defineProperty(e,"getCallError",{enumerable:!0,get:function(){return te.getCallError}});var K=Er();Object.defineProperty(e,"getContractError",{enumerable:!0,get:function(){return K.getContractError}});var X=Ug();Object.defineProperty(e,"getEstimateGasError",{enumerable:!0,get:function(){return X.getEstimateGasError}});var Q=ia();Object.defineProperty(e,"containsNodeError",{enumerable:!0,get:function(){return Q.containsNodeError}}),Object.defineProperty(e,"getNodeError",{enumerable:!0,get:function(){return Q.getNodeError}});var ne=ua();Object.defineProperty(e,"getTransactionError",{enumerable:!0,get:function(){return ne.getTransactionError}});var re=od();Object.defineProperty(e,"defineBlock",{enumerable:!0,get:function(){return re.defineBlock}}),Object.defineProperty(e,"formatBlock",{enumerable:!0,get:function(){return re.formatBlock}});var ae=wr();Object.defineProperty(e,"extract",{enumerable:!0,get:function(){return ae.extract}});var ce=sa();Object.defineProperty(e,"defineFormatter",{enumerable:!0,get:function(){return ce.defineFormatter}});var he=Ht();Object.defineProperty(e,"formatLog",{enumerable:!0,get:function(){return he.formatLog}});var ve=qn();Object.defineProperty(e,"defineTransaction",{enumerable:!0,get:function(){return ve.defineTransaction}}),Object.defineProperty(e,"formatTransaction",{enumerable:!0,get:function(){return ve.formatTransaction}}),Object.defineProperty(e,"transactionType",{enumerable:!0,get:function(){return ve.transactionType}});var ge=Fn();Object.defineProperty(e,"defineTransactionReceipt",{enumerable:!0,get:function(){return ge.defineTransactionReceipt}});var ye=Bt();Object.defineProperty(e,"defineTransactionRequest",{enumerable:!0,get:function(){return ye.defineTransactionRequest}}),Object.defineProperty(e,"formatTransactionRequest",{enumerable:!0,get:function(){return ye.formatTransactionRequest}});var Oe=me();Object.defineProperty(e,"getAction",{enumerable:!0,get:function(){return Oe.getAction}});var ee=el();Object.defineProperty(e,"isHash",{enumerable:!0,get:function(){return ee.isHash}});var Y=st();Object.defineProperty(e,"keccak256",{enumerable:!0,get:function(){return Y.keccak256}});var nt=__();Object.defineProperty(e,"ripemd160",{enumerable:!0,get:function(){return nt.ripemd160}});var pt=Rf();Object.defineProperty(e,"sha256",{enumerable:!0,get:function(){return pt.sha256}});var xt=v_();Object.defineProperty(e,"toEventHash",{enumerable:!0,get:function(){return xt.toEventHash}});var ut=xn();Object.defineProperty(e,"toEventSelector",{enumerable:!0,get:function(){return ut.toEventSelector}}),Object.defineProperty(e,"getEventSelector",{enumerable:!0,get:function(){return ut.toEventSelector}});var Ve=E_();Object.defineProperty(e,"toEventSignature",{enumerable:!0,get:function(){return Ve.toEventSignature}}),Object.defineProperty(e,"getEventSignature",{enumerable:!0,get:function(){return Ve.toEventSignature}});var gt=j_();Object.defineProperty(e,"toFunctionHash",{enumerable:!0,get:function(){return gt.toFunctionHash}});var dt=Yr();Object.defineProperty(e,"toFunctionSelector",{enumerable:!0,get:function(){return dt.toFunctionSelector}}),Object.defineProperty(e,"getFunctionSelector",{enumerable:!0,get:function(){return dt.toFunctionSelector}});var ot=w_();Object.defineProperty(e,"toFunctionSignature",{enumerable:!0,get:function(){return ot.toFunctionSignature}}),Object.defineProperty(e,"getFunctionSignature",{enumerable:!0,get:function(){return ot.toFunctionSignature}});var jt=P_();Object.defineProperty(e,"createNonceManager",{enumerable:!0,get:function(){return jt.createNonceManager}}),Object.defineProperty(e,"nonceManager",{enumerable:!0,get:function(){return jt.nonceManager}});var ke=Qu();Object.defineProperty(e,"arrayRegex",{enumerable:!0,get:function(){return ke.arrayRegex}}),Object.defineProperty(e,"bytesRegex",{enumerable:!0,get:function(){return ke.bytesRegex}}),Object.defineProperty(e,"integerRegex",{enumerable:!0,get:function(){return ke.integerRegex}});var He=S_();Object.defineProperty(e,"getSocket",{enumerable:!0,get:function(){return He.getSocket}}),Object.defineProperty(e,"rpc",{enumerable:!0,get:function(){return He.rpc}});var ar=rl();Object.defineProperty(e,"getHttpRpcClient",{enumerable:!0,get:function(){return ar.getHttpRpcClient}});var $n=T_();Object.defineProperty(e,"getSocketRpcClient",{enumerable:!0,get:function(){return $n.getSocketRpcClient}}),Object.defineProperty(e,"socketClientCache",{enumerable:!0,get:function(){return $n.socketClientCache}});var ir=nl();Object.defineProperty(e,"getWebSocketRpcClient",{enumerable:!0,get:function(){return ir.getWebSocketRpcClient}});var zn=_a();Object.defineProperty(e,"hashMessage",{enumerable:!0,get:function(){return zn.hashMessage}});var Sr=va();Object.defineProperty(e,"hashStruct",{enumerable:!0,get:function(){return Sr.hashStruct}}),Object.defineProperty(e,"hashTypedData",{enumerable:!0,get:function(){return Sr.hashTypedData}});var Le=al();Object.defineProperty(e,"isErc6492Signature",{enumerable:!0,get:function(){return Le.isErc6492Signature}});var Ir=cl();Object.defineProperty(e,"isErc8010Signature",{enumerable:!0,get:function(){return Ir.isErc8010Signature}});var Pd=q_();Object.defineProperty(e,"parseErc6492Signature",{enumerable:!0,get:function(){return Pd.parseErc6492Signature}});var Ln=M_();Object.defineProperty(e,"parseErc8010Signature",{enumerable:!0,get:function(){return Ln.parseErc8010Signature}});var Ad=jr();Object.defineProperty(e,"recoverAddress",{enumerable:!0,get:function(){return Ad.recoverAddress}});var Un=ul();Object.defineProperty(e,"recoverMessageAddress",{enumerable:!0,get:function(){return Un.recoverMessageAddress}});var Td=Af();Object.defineProperty(e,"recoverPublicKey",{enumerable:!0,get:function(){return Td.recoverPublicKey}});var Rr=dl();Object.defineProperty(e,"recoverTypedDataAddress",{enumerable:!0,get:function(){return Rr.recoverTypedDataAddress}});var Br=k_();Object.defineProperty(e,"serializeErc6492Signature",{enumerable:!0,get:function(){return Br.serializeErc6492Signature}});var Sd=H_();Object.defineProperty(e,"serializeErc8010Signature",{enumerable:!0,get:function(){return Sd.serializeErc8010Signature}});var Or=F_();Object.defineProperty(e,"verifyHash",{enumerable:!0,get:function(){return Or.verifyHash}});var Cr=N_();Object.defineProperty(e,"verifyMessage",{enumerable:!0,get:function(){return Cr.verifyMessage}});var Dn=$_();Object.defineProperty(e,"verifyTypedData",{enumerable:!0,get:function(){return Dn.verifyTypedData}});var Id=Ne();Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return Id.stringify}});var Rd=Ot();Object.defineProperty(e,"assertRequest",{enumerable:!0,get:function(){return Rd.assertRequest}});var Gn=gd();Object.defineProperty(e,"assertTransactionEIP1559",{enumerable:!0,get:function(){return Gn.assertTransactionEIP1559}}),Object.defineProperty(e,"assertTransactionEIP2930",{enumerable:!0,get:function(){return Gn.assertTransactionEIP2930}}),Object.defineProperty(e,"assertTransactionLegacy",{enumerable:!0,get:function(){return Gn.assertTransactionLegacy}});var Bd=fl();Object.defineProperty(e,"getSerializedTransactionType",{enumerable:!0,get:function(){return Bd.getSerializedTransactionType}});var Pa=ud();Object.defineProperty(e,"getTransactionType",{enumerable:!0,get:function(){return Pa.getTransactionType}});var Od=ll();Object.defineProperty(e,"parseTransaction",{enumerable:!0,get:function(){return Od.parseTransaction}});var Vn=Xf();Object.defineProperty(e,"serializeAccessList",{enumerable:!0,get:function(){return Vn.serializeAccessList}});var Aa=_d();Object.defineProperty(e,"serializeTransaction",{enumerable:!0,get:function(){return Aa.serializeTransaction}});var an=vd();Object.defineProperty(e,"serializeTypedData",{enumerable:!0,get:function(){return an.serializeTypedData}}),Object.defineProperty(e,"validateTypedData",{enumerable:!0,get:function(){return an.validateTypedData}});var Cd=na();Object.defineProperty(e,"formatEther",{enumerable:!0,get:function(){return Cd.formatEther}});var xd=Qr();Object.defineProperty(e,"formatGwei",{enumerable:!0,get:function(){return xd.formatGwei}});var qd=Xr();Object.defineProperty(e,"formatUnits",{enumerable:!0,get:function(){return qd.formatUnits}});var Md=L_();Object.defineProperty(e,"parseEther",{enumerable:!0,get:function(){return Md.parseEther}});var kd=U_();Object.defineProperty(e,"parseGwei",{enumerable:!0,get:function(){return kd.parseGwei}});var Ta=ja();Object.defineProperty(e,"parseUnits",{enumerable:!0,get:function(){return Ta.parseUnits}})})(cf)),cf}var sy;function n2(){if(sy)return Ms;sy=1,Object.defineProperty(Ms,"__esModule",{value:!0}),Ms.formatProof=n;const e=bl();function r(t){return t.map(o=>({...o,value:BigInt(o.value)}))}function n(t){return{...t,balance:t.balance?BigInt(t.balance):void 0,nonce:t.nonce?(0,e.hexToNumber)(t.nonce):void 0,storageProof:t.storageProof?r(t.storageProof):void 0}}return Ms}var cy;function o2(){if(cy)return qs;cy=1,Object.defineProperty(qs,"__esModule",{value:!0}),qs.getProof=n;const e=Mn(),r=n2();async function n(t,{address:o,blockHash:s,blockNumber:a,blockTag:i="latest",requireCanonical:c,storageKeys:d}){const f=(0,e.formatBlockParameter)({blockHash:s,blockNumber:a,blockTag:i,requireCanonical:c}),l=await t.request({method:"eth_getProof",params:[o,d,f]});return(0,r.formatProof)(l)}return qs}var fc={},uy;function a2(){if(uy)return fc;uy=1,Object.defineProperty(fc,"__esModule",{value:!0}),fc.getStorageAt=r;const e=Mn();async function r(n,{address:t,blockHash:o,blockNumber:s,blockTag:a="latest",requireCanonical:i,slot:c}){const d=(0,e.formatBlockParameter)({blockHash:o,blockNumber:s,blockTag:a,requireCanonical:i});return await n.request({method:"eth_getStorageAt",params:[t,c,d]})}return fc}var lc={},dy;function ml(){if(dy)return lc;dy=1,Object.defineProperty(lc,"__esModule",{value:!0}),lc.getTransaction=t;const e=ct(),r=oe(),n=qn();async function t(o,{blockHash:s,blockNumber:a,blockTag:i,hash:c,index:d,sender:f,nonce:l}){var E,g,v;const m=i||"latest",y=a!==void 0?(0,r.numberToHex)(a):void 0;let h=null;if(c?h=await o.request({method:"eth_getTransactionByHash",params:[c]},{dedupe:!0}):s?h=await o.request({method:"eth_getTransactionByBlockHashAndIndex",params:[s,(0,r.numberToHex)(d)]},{dedupe:!0}):typeof d=="number"?h=await o.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[y||m,(0,r.numberToHex)(d)]},{dedupe:!!y}):f&&typeof l=="number"&&(h=await o.request({method:"eth_getTransactionBySenderAndNonce",params:[f,(0,r.numberToHex)(l)]},{dedupe:!0})),!h)throw new e.TransactionNotFoundError({blockHash:s,blockNumber:a,blockTag:m,hash:c,index:d});return(((v=(g=(E=o.chain)==null?void 0:E.formatters)==null?void 0:g.transaction)==null?void 0:v.format)||n.formatTransaction)(h,"getTransaction")}return lc}var bc={},fy;function i2(){if(fy)return bc;fy=1,Object.defineProperty(bc,"__esModule",{value:!0}),bc.getTransactionConfirmations=t;const e=me(),r=ya(),n=ml();async function t(o,{hash:s,transactionReceipt:a}){const[i,c]=await Promise.all([(0,e.getAction)(o,r.getBlockNumber,"getBlockNumber")({}),s?(0,e.getAction)(o,n.getTransaction,"getTransaction")({hash:s}):void 0]),d=(a==null?void 0:a.blockNumber)||(c==null?void 0:c.blockNumber);return d?i-d+1n:0n}return bc}var mc={},ly;function D_(){if(ly)return mc;ly=1,Object.defineProperty(mc,"__esModule",{value:!0}),mc.getTransactionReceipt=n;const e=ct(),r=Fn();async function n(t,{hash:o}){var i,c,d;const s=await t.request({method:"eth_getTransactionReceipt",params:[o]},{dedupe:!0});if(!s)throw new e.TransactionReceiptNotFoundError({hash:o});return(((d=(c=(i=t.chain)==null?void 0:i.formatters)==null?void 0:c.transactionReceipt)==null?void 0:d.format)||r.formatTransactionReceipt)(s,"getTransactionReceipt")}return mc}var hc={},by;function s2(){if(by)return hc;by=1,Object.defineProperty(hc,"__esModule",{value:!0}),hc.multicall=l;const e=ze(),r=la(),n=Be(),t=ue(),o=_r(),s=Ct(),a=Ge(),i=Ar(),c=Er(),d=me(),f=rt();async function l(m,y){var x;const{account:h,authorizationList:b,allowFailure:E=!0,blockHash:g,blockNumber:v,blockOverrides:P,blockTag:u,requireCanonical:w,stateOverride:_}=y,p=y.contracts,{batchSize:S=y.batchSize??1024,deployless:A=y.deployless??!1}=typeof((x=m.batch)==null?void 0:x.multicall)=="object"?m.batch.multicall:{},T=(()=>{if(y.multicallAddress)return y.multicallAddress;if(A)return null;if(m.chain)return(0,i.getChainContractAddress)({blockNumber:v,chain:m.chain,contract:"multicall3"});throw new Error("client chain not configured. multicallAddress is required.")})(),O=[[]];let I=0,R=0;for(let j=0;j<p.length;j++){const{abi:k,address:B,args:C,functionName:q}=p[j];try{const M=(0,a.encodeFunctionData)({abi:k,args:C,functionName:q});R+=(M.length-2)/2,S>0&&R>S&&O[I].length>0&&(I++,R=(M.length-2)/2,O[I]=[]),O[I]=[...O[I],{allowFailure:!0,callData:M,target:B}]}catch(M){const N=(0,c.getContractError)(M,{abi:k,address:B,args:C,docsPath:"/docs/contract/multicall",functionName:q,sender:h});if(!E)throw N;O[I]=[...O[I],{allowFailure:!0,callData:"0x",target:B}]}}const H=await Promise.allSettled(O.map(j=>(0,d.getAction)(m,f.readContract,"readContract")({...T===null?{code:r.multicall3Bytecode}:{address:T},abi:e.multicall3Abi,account:h,args:[j],authorizationList:b,blockHash:g,blockNumber:v,blockOverrides:P,blockTag:u,functionName:"aggregate3",requireCanonical:w,stateOverride:_}))),F=[];for(let j=0;j<H.length;j++){const k=H[j];if(k.status==="rejected"){if(!E)throw k.reason;for(let C=0;C<O[j].length;C++)F.push({status:"failure",error:k.reason,result:void 0});continue}const B=k.value;for(let C=0;C<B.length;C++){const{returnData:q,success:M}=B[C],{callData:N}=O[j][C],{abi:z,address:$,functionName:L,args:G}=p[F.length];try{if(N==="0x")throw new n.AbiDecodingZeroDataError;if(!M)throw new o.RawContractError({data:q});const Z=(0,s.decodeFunctionResult)({abi:z,args:G,data:q,functionName:L});F.push(E?{result:Z,status:"success"}:Z)}catch(Z){const W=(0,c.getContractError)(Z,{abi:z,address:$,args:G,docsPath:"/docs/contract/multicall",functionName:L});if(!E)throw W;F.push({error:W,result:void 0,status:"failure"})}}}if(F.length!==p.length)throw new t.BaseError("multicall results mismatch");return F}return hc}var yc={},my;function G_(){if(my)return yc;my=1,Object.defineProperty(yc,"__esModule",{value:!0}),yc.simulateBlocks=E;const e=Xg(),r=Se(),n=Be(),t=_r(),o=nr(),s=Ct(),a=Ge(),i=Me(),c=oe(),d=Er(),f=ia(),l=od(),m=Ht(),y=Bt(),h=Tf(),b=Ot();async function E(g,v){const{blockNumber:P,blockTag:u=g.experimental_blockTag??"latest",blocks:w,returnFullTransactions:_,traceTransfers:p,validation:S}=v;try{const A=[];for(const R of w){const H=R.blockOverrides?e.toRpc(R.blockOverrides):void 0,F=R.calls.map(j=>{const k=j,B=k.account?(0,r.parseAccount)(k.account):void 0,C=k.abi?(0,a.encodeFunctionData)(k):k.data,q={...k,account:B,data:k.dataSuffix?(0,i.concat)([C||"0x",k.dataSuffix]):C,from:k.from??(B==null?void 0:B.address)};return(0,b.assertRequest)(q),(0,y.formatTransactionRequest)(q)}),x=R.stateOverrides?(0,h.serializeStateOverride)(R.stateOverrides):void 0;A.push({blockOverrides:H,calls:F,stateOverrides:x})}const O=(typeof P=="bigint"?(0,c.numberToHex)(P):void 0)||u;return(await g.request({method:"eth_simulateV1",params:[{blockStateCalls:A,returnFullTransactions:_,traceTransfers:p,validation:S},O]})).map((R,H)=>({...(0,l.formatBlock)(R),calls:R.calls.map((F,x)=>{var G,Z;const{abi:j,args:k,functionName:B,to:C}=w[H].calls[x],q=((G=F.error)==null?void 0:G.data)??F.returnData,M=BigInt(F.gasUsed),N=(Z=F.logs)==null?void 0:Z.map(W=>(0,m.formatLog)(W)),z=F.status==="0x1"?"success":"failure",$=j&&z==="success"&&q!=="0x"?(0,s.decodeFunctionResult)({abi:j,data:q,functionName:B}):null,L=(()=>{if(z==="success")return;let W;if(q==="0x"?W=new n.AbiDecodingZeroDataError:q&&(W=new t.RawContractError({data:q})),!!W)return(0,d.getContractError)(W,{abi:j??[],address:C??"0x",args:k,functionName:B??"<unknown>"})})();return{data:q,gasUsed:M,logs:N,status:z,...z==="success"?{result:$}:{error:L}}})}))}catch(A){const T=A,O=(0,f.getNodeError)(T,{});throw O instanceof o.UnknownNodeError?T:O}}return yc}var pc={},mr={},Xe={},Tn={},hy;function c2(){if(hy)return Tn;hy=1,Object.defineProperty(Tn,"__esModule",{value:!0}),Tn.normalizeSignature=n,Tn.isArgOfType=t,Tn.getAmbiguousTypes=o;const e=Ed(),r=yt();function n(s){let a=!0,i="",c=0,d="",f=!1;for(let l=0;l<s.length;l++){const m=s[l];if(["(",")",","].includes(m)&&(a=!0),m==="("&&c++,m===")"&&c--,!!a){if(c===0){if(m===" "&&["event","function","error",""].includes(d))d="";else if(d+=m,m===")"){f=!0;break}continue}if(m===" "){s[l-1]!==","&&i!==","&&i!==",("&&(i="",a=!1);continue}d+=m,i+=m}}if(!f)throw new r.BaseError("Unable to normalize signature.");return d}function t(s,a){const i=typeof s,c=a.type;switch(c){case"address":return e.validate(s,{strict:!1});case"bool":return i==="boolean";case"function":return i==="string";case"string":return i==="string";default:return c==="tuple"&&"components"in a?Object.values(a.components).every((d,f)=>t(Object.values(s)[f],d)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(c)?i==="number"||i==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(c)?i==="string"||s instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(c)?Array.isArray(s)&&s.every(d=>t(d,{...a,type:c.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function o(s,a,i){for(const c in s){const d=s[c],f=a[c];if(d.type==="tuple"&&f.type==="tuple"&&"components"in d&&"components"in f)return o(d.components,f.components,i[c]);const l=[d.type,f.type];if(l.includes("address")&&l.includes("bytes20")?!0:l.includes("address")&&l.includes("string")?e.validate(i[c],{strict:!1}):l.includes("address")&&l.includes("bytes")?e.validate(i[c],{strict:!1}):!1)return l}}return Tn}var yy;function V_(){if(yy)return Xe;yy=1,Object.defineProperty(Xe,"__esModule",{value:!0}),Xe.InvalidSelectorSizeError=Xe.NotFoundError=Xe.AmbiguityError=void 0,Xe.format=s,Xe.from=a,Xe.fromAbi=i,Xe.getSelector=c,Xe.getSignature=d,Xe.getSignatureHash=f;const e=hr(),r=yt(),n=il(),t=$e(),o=c2();function s(h){return e.formatAbiItem(h)}function a(h,b={}){const{prepare:E=!0}=b,g=Array.isArray(h)||typeof h=="string"?e.parseAbiItem(h):h;return{...g,...E?{hash:f(g)}:{}}}function i(h,b,E){const{args:g=[],prepare:v=!0}=E??{},P=t.validate(b,{strict:!1}),u=h.filter(p=>P?p.type==="function"||p.type==="error"?c(p)===t.slice(b,0,4):p.type==="event"?f(p)===b:!1:"name"in p&&p.name===b);if(u.length===0)throw new m({name:b});if(u.length===1)return{...u[0],...v?{hash:f(u[0])}:{}};let w;for(const p of u){if(!("inputs"in p))continue;if(!g||g.length===0){if(!p.inputs||p.inputs.length===0)return{...p,...v?{hash:f(p)}:{}};continue}if(!p.inputs||p.inputs.length===0||p.inputs.length!==g.length)continue;if(g.every((A,T)=>{const O="inputs"in p&&p.inputs[T];return O?o.isArgOfType(A,O):!1})){if(w&&"inputs"in w&&w.inputs){const A=o.getAmbiguousTypes(p.inputs,w.inputs,g);if(A)throw new l({abiItem:p,type:A[0]},{abiItem:w,type:A[1]})}w=p}}const _=(()=>{if(w)return w;const[p,...S]=u;return{...p,overloads:S}})();if(!_)throw new m({name:b});return{..._,...v?{hash:f(_)}:{}}}function c(...h){const b=(()=>{if(Array.isArray(h[0])){const[E,g]=h;return i(E,g)}return h[0]})();return t.slice(f(b),0,4)}function d(...h){const b=(()=>{if(Array.isArray(h[0])){const[g,v]=h;return i(g,v)}return h[0]})(),E=typeof b=="string"?b:e.formatAbiItem(b);return o.normalizeSignature(E)}function f(...h){const b=(()=>{if(Array.isArray(h[0])){const[E,g]=h;return i(E,g)}return h[0]})();return typeof b!="string"&&"hash"in b&&b.hash?b.hash:n.keccak256(t.fromString(d(b)))}class l extends r.BaseError{constructor(b,E){super("Found ambiguous types in overloaded ABI Items.",{metaMessages:[`\`${b.type}\` in \`${o.normalizeSignature(e.formatAbiItem(b.abiItem))}\`, and`,`\`${E.type}\` in \`${o.normalizeSignature(e.formatAbiItem(E.abiItem))}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.AmbiguityError"})}}Xe.AmbiguityError=l;class m extends r.BaseError{constructor({name:b,data:E,type:g="item"}){const v=b?` with name "${b}"`:E?` with data "${E}"`:"";super(`ABI ${g}${v} not found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.NotFoundError"})}}Xe.NotFoundError=m;class y extends r.BaseError{constructor({data:b}){super(`Selector size is invalid. Expected 4 bytes. Received ${t.size(b)} bytes ("${b}").`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.InvalidSelectorSizeError"})}}return Xe.InvalidSelectorSizeError=y,Xe}var py;function u2(){if(py)return mr;py=1,Object.defineProperty(mr,"__esModule",{value:!0}),mr.decode=o,mr.encode=s,mr.format=a,mr.from=i,mr.fromAbi=c;const e=hr(),r=V_(),n=Ea(),t=$e();function o(...d){var h;const[f,l]=(()=>{if(Array.isArray(d[0])){const[b,E]=d;return[c(b),E]}return d})(),{bytecode:m}=l;if(((h=f.inputs)==null?void 0:h.length)===0)return;const y=l.data.replace(m,"0x");return n.decode(f.inputs,y)}function s(...d){var h;const[f,l]=(()=>{if(Array.isArray(d[0])){const[b,E]=d;return[c(b),E]}return d})(),{bytecode:m,args:y}=l;return t.concat(m,(h=f.inputs)!=null&&h.length&&(y!=null&&y.length)?n.encode(f.inputs,y):"0x")}function a(d){return e.formatAbiItem(d)}function i(d){return r.from(d)}function c(d){const f=d.find(l=>l.type==="constructor");if(!f)throw new r.NotFoundError({name:"constructor"});return f}return mr}var St={},gy;function d2(){if(gy)return St;gy=1,Object.defineProperty(St,"__esModule",{value:!0}),St.decodeData=o,St.decodeResult=s,St.encodeData=a,St.encodeResult=i,St.format=c,St.from=d,St.fromAbi=f,St.getSelector=l;const e=hr(),r=V_(),n=Ea(),t=$e();function o(...m){var g;const[y,h]=(()=>{if(Array.isArray(m[0])){const[v,P,u]=m;return[f(v,P),u]}return m})(),{overloads:b}=y;if(t.size(h)<4)throw new r.InvalidSelectorSizeError({data:h});if(((g=y.inputs)==null?void 0:g.length)===0)return;const E=b?f([y,...b],h):y;if(!(t.size(h)<=4))return n.decode(E.inputs,t.slice(h,4))}function s(...m){const[y,h,b={}]=(()=>{if(Array.isArray(m[0])){const[g,v,P,u]=m;return[f(g,v),P,u]}return m})(),E=n.decode(y.outputs,h,b);if(!(E&&Object.keys(E).length===0))return E&&Object.keys(E).length===1?Array.isArray(E)?E[0]:Object.values(E)[0]:E}function a(...m){const[y,h=[]]=(()=>{if(Array.isArray(m[0])){const[w,_,p]=m;return[f(w,_,{args:p}),p]}const[P,u]=m;return[P,u]})(),{overloads:b}=y,E=b?f([y,...b],y.name,{args:h}):y,g=l(E),v=h.length>0?n.encode(E.inputs,h):void 0;return v?t.concat(g,v):g}function i(...m){const[y,h,b={}]=(()=>{if(Array.isArray(m[0])){const[v,P,u,w]=m;return[f(v,P),u,w]}return m})(),{as:E="Array"}=b,g=y.outputs.length===1?[h]:Array.isArray(h)?h:E==="Object"?Object.values(h):[h];return n.encode(y.outputs,g)}function c(m){return e.formatAbiItem(m)}function d(m,y={}){return r.from(m,y)}function f(m,y,h){const b=r.fromAbi(m,y,h);if(b.type!=="function")throw new r.NotFoundError({name:y,type:"function"});return b}function l(m){return r.getSelector(m)}return St}var Dr={},_y;function W_(){return _y||(_y=1,Object.defineProperty(Dr,"__esModule",{value:!0}),Dr.zeroAddress=Dr.ethAddress=void 0,Dr.ethAddress="0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",Dr.zeroAddress="0x0000000000000000000000000000000000000000"),Dr}var vy;function f2(){if(vy)return pc;vy=1,Object.defineProperty(pc,"__esModule",{value:!0}),pc.simulateCalls=l;const e=u2(),r=d2(),n=Se(),t=W_(),o=la(),s=ue(),a=Ge(),i=bl(),c=s_(),d=G_(),f="0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033";async function l(m,y){const{blockNumber:h,blockTag:b,calls:E,stateOverrides:g,traceAssetChanges:v,traceTransfers:P,validation:u}=y,w=y.account?(0,n.parseAccount)(y.account):void 0;if(v&&!w)throw new s.BaseError("`account` is required when `traceAssetChanges` is true");const _=w?e.encode(e.from("constructor(bytes, bytes)"),{bytecode:o.deploylessCallViaBytecodeBytecode,args:[f,r.encodeData(r.from("function getBalance(address)"),[w.address])]}):void 0,p=v?await Promise.all(y.calls.map(async V=>{if(!V.data&&!V.abi)return;const{accessList:J}=await(0,c.createAccessList)(m,{account:w.address,...V,data:V.abi?(0,a.encodeFunctionData)(V):V.data});return J.map(({address:te,storageKeys:K})=>K.length>0?te:null)})).then(V=>V.flat().filter(Boolean)):[],S=await(0,d.simulateBlocks)(m,{blockNumber:h,blockTag:b,blocks:[...v?[{calls:[{data:_}],stateOverrides:g},{calls:p.map((V,J)=>({abi:[r.from("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[w.address],to:V,from:t.zeroAddress,nonce:J})),stateOverrides:[{address:t.zeroAddress,nonce:0}]}]:[],{calls:[...E,{to:t.zeroAddress}].map(V=>({...V,from:w==null?void 0:w.address})),stateOverrides:g},...v?[{calls:[{data:_}]},{calls:p.map((V,J)=>({abi:[r.from("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[w.address],to:V,from:t.zeroAddress,nonce:J})),stateOverrides:[{address:t.zeroAddress,nonce:0}]},{calls:p.map((V,J)=>({to:V,abi:[r.from("function decimals() returns (uint256)")],functionName:"decimals",from:t.zeroAddress,nonce:J})),stateOverrides:[{address:t.zeroAddress,nonce:0}]},{calls:p.map((V,J)=>({to:V,abi:[r.from("function tokenURI(uint256) returns (string)")],functionName:"tokenURI",args:[0n],from:t.zeroAddress,nonce:J})),stateOverrides:[{address:t.zeroAddress,nonce:0}]},{calls:p.map((V,J)=>({to:V,abi:[r.from("function symbol() returns (string)")],functionName:"symbol",from:t.zeroAddress,nonce:J})),stateOverrides:[{address:t.zeroAddress,nonce:0}]}]:[]],traceTransfers:P,validation:u}),A=v?S[2]:S[0],[T,O,,I,R,H,F,x]=v?S:[],{calls:j,...k}=A,B=j.slice(0,-1)??[],C=(T==null?void 0:T.calls)??[],q=(O==null?void 0:O.calls)??[],M=[...C,...q].map(V=>V.status==="success"?(0,i.hexToBigInt)(V.data):null),N=(I==null?void 0:I.calls)??[],z=(R==null?void 0:R.calls)??[],$=[...N,...z].map(V=>V.status==="success"?(0,i.hexToBigInt)(V.data):null),L=((H==null?void 0:H.calls)??[]).map(V=>V.status==="success"?V.result:null),G=((x==null?void 0:x.calls)??[]).map(V=>V.status==="success"?V.result:null),Z=((F==null?void 0:F.calls)??[]).map(V=>V.status==="success"?V.result:null),W=[];for(const[V,J]of $.entries()){const te=M[V];if(typeof J!="bigint"||typeof te!="bigint")continue;const K=L[V-1],X=G[V-1],Q=Z[V-1],ne=V===0?{address:t.ethAddress,decimals:18,symbol:"ETH"}:{address:p[V-1],decimals:Q||K?Number(K??1):void 0,symbol:X??void 0};W.some(re=>re.token.address===ne.address)||W.push({token:ne,value:{pre:te,post:J,diff:J-te}})}return{assetChanges:W,block:k,results:B}}return pc}var Sn={},Do={},yf={},Ey;function l2(){return Ey||(Ey=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.InvalidWrappedSignatureError=e.universalSignatureValidatorAbi=e.universalSignatureValidatorBytecode=e.magicBytes=void 0,e.assert=o,e.from=s,e.unwrap=a,e.wrap=i,e.validate=c;const r=Ea(),n=yt(),t=$e();e.magicBytes="0x6492649264926492649264926492649264926492649264926492649264926492",e.universalSignatureValidatorBytecode="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572",e.universalSignatureValidatorAbi=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}];function o(f){if(t.slice(f,-32)!==e.magicBytes)throw new d(f)}function s(f){return typeof f=="string"?a(f):f}function a(f){o(f);const[l,m,y]=r.decode(r.from("address, bytes, bytes"),f);return{data:m,signature:y,to:l}}function i(f){const{data:l,signature:m,to:y}=f;return t.concat(r.encode(r.from("address, bytes, bytes"),[y,l,m]),e.magicBytes)}function c(f){try{return o(f),!0}catch{return!1}}class d extends n.BaseError{constructor(l){super(`Value \`${l}\` is an invalid ERC-6492 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc6492.InvalidWrappedSignatureError"})}}e.InvalidWrappedSignatureError=d})(yf)),yf}var jy;function b2(){return jy||(jy=1,Object.defineProperty(Do,"__esModule",{value:!0}),Do.SignatureErc6492=void 0,Do.SignatureErc6492=l2()),Do}var gc={},wy;function K_(){if(wy)return gc;wy=1,Object.defineProperty(gc,"__esModule",{value:!0}),gc.serializeSignature=t;const e=tn(),r=xe(),n=Pe();function t({r:o,s,to:a="hex",v:i,yParity:c}){const d=(()=>{if(c===0||c===1)return c;if(i&&(i===27n||i===28n||i>=35n))return i%2n===0n?1:0;throw new Error("Invalid `v` or `yParity` value")})(),f=`0x${new e.secp256k1.Signature((0,r.hexToBigInt)(o),(0,r.hexToBigInt)(s)).toCompactHex()}${d===0?"1b":"1c"}`;return a==="hex"?f:(0,n.hexToBytes)(f)}return gc}var Py;function wd(){if(Py)return Sn;Py=1,Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.verifyHash=u,Sn.verifyErc8010=w,Sn.verifyErc1271=p;const e=b2(),r=jd(),n=ze(),t=la(),o=_r(),s=ma(),a=Ge(),i=et(),c=ht(),d=b_(),f=Me(),l=Qe(),m=xe(),y=oe(),h=me(),b=jr(),E=K_(),g=kn(),v=Yf(),P=rt();async function u(A,T){var k,B,C,q;const{address:O,chain:I=A.chain,hash:R,erc6492VerifierAddress:H=T.universalSignatureVerifierAddress??((B=(k=I==null?void 0:I.contracts)==null?void 0:k.erc6492Verifier)==null?void 0:B.address),multicallAddress:F=T.multicallAddress??((q=(C=I==null?void 0:I.contracts)==null?void 0:C.multicall3)==null?void 0:q.address),mode:x="auto"}=T;if(I!=null&&I.verifyHash)return await I.verifyHash(A,T);const j=(()=>{const M=T.signature;return(0,l.isHex)(M)?M:typeof M=="object"&&"r"in M&&"s"in M?(0,E.serializeSignature)(M):(0,y.bytesToHex)(M)})();try{if(x==="eoa")try{if((0,c.isAddressEqual)((0,i.getAddress)(O),await(0,b.recoverAddress)({hash:R,signature:j})))return!0}catch{}return r.SignatureErc8010.validate(j)?await w(A,{...T,multicallAddress:F,signature:j}):await _(A,{...T,verifierAddress:H,signature:j})}catch(M){if(x!=="eoa")try{if((0,c.isAddressEqual)((0,i.getAddress)(O),await(0,b.recoverAddress)({hash:R,signature:j})))return!0}catch{}if(M instanceof S)return!1;throw M}}async function w(A,T){var $;const{address:O,blockNumber:I,blockTag:R,hash:H,multicallAddress:F}=T,{authorization:x,data:j,signature:k,to:B}=r.SignatureErc8010.unwrap(T.signature);if(await(0,v.getCode)(A,{address:O,blockNumber:I,blockTag:R})===(0,f.concatHex)(["0xef0100",x.address]))return await p(A,{address:O,blockNumber:I,blockTag:R,hash:H,signature:k});const q={address:x.address,chainId:Number(x.chainId),nonce:Number(x.nonce),r:(0,y.numberToHex)(x.r,{size:32}),s:(0,y.numberToHex)(x.s,{size:32}),yParity:x.yParity};if(!await(0,d.verifyAuthorization)({address:O,authorization:q}))throw new S;const N=await(0,h.getAction)(A,P.readContract,"readContract")({...F?{address:F}:{code:t.multicall3Bytecode},authorizationList:[q],abi:n.multicall3Abi,blockNumber:I,blockTag:"pending",functionName:"aggregate3",args:[[...j?[{allowFailure:!0,target:B??O,callData:j}]:[],{allowFailure:!0,target:O,callData:(0,a.encodeFunctionData)({abi:n.erc1271Abi,functionName:"isValidSignature",args:[H,k]})}]]}),z=($=N[N.length-1])==null?void 0:$.returnData;if(z!=null&&z.startsWith("0x1626ba7e"))return!0;throw new S}async function _(A,T){const{address:O,factory:I,factoryData:R,hash:H,signature:F,verifierAddress:x,...j}=T,k=await(async()=>!I&&!R||e.SignatureErc6492.validate(F)?F:e.SignatureErc6492.wrap({data:R,signature:F,to:I}))(),B=x?{to:x,data:(0,a.encodeFunctionData)({abi:n.erc6492SignatureValidatorAbi,functionName:"isValidSig",args:[O,H,k]}),...j}:{data:(0,s.encodeDeployData)({abi:n.erc6492SignatureValidatorAbi,args:[O,H,k],bytecode:t.erc6492SignatureValidatorByteCode}),...j},{data:C}=await(0,h.getAction)(A,g.call,"call")(B).catch(q=>{throw q instanceof o.CallExecutionError?new S:q});if((0,m.hexToBool)(C??"0x0"))return!0;throw new S}async function p(A,T){const{address:O,blockNumber:I,blockTag:R,hash:H,signature:F}=T;if((await(0,h.getAction)(A,P.readContract,"readContract")({address:O,abi:n.erc1271Abi,args:[H,F],blockNumber:I,blockTag:R,functionName:"isValidSignature"}).catch(j=>{throw j instanceof o.ContractFunctionExecutionError?new S:j})).startsWith("0x1626ba7e"))return!0;throw new S}class S extends Error{}return Sn}var _c={},Ay;function m2(){if(Ay)return _c;Ay=1,Object.defineProperty(_c,"__esModule",{value:!0}),_c.verifyMessage=t;const e=me(),r=_a(),n=wd();async function t(o,{address:s,message:a,factory:i,factoryData:c,signature:d,...f}){const l=(0,r.hashMessage)(a);return(0,e.getAction)(o,n.verifyHash,"verifyHash")({address:s,factory:i,factoryData:c,hash:l,signature:d,...f})}return _c}var vc={},Ty;function h2(){if(Ty)return vc;Ty=1,Object.defineProperty(vc,"__esModule",{value:!0}),vc.verifyTypedData=t;const e=me(),r=va(),n=wd();async function t(o,s){const{address:a,factory:i,factoryData:c,signature:d,message:f,primaryType:l,types:m,domain:y,...h}=s,b=(0,r.hashTypedData)({message:f,primaryType:l,types:m,domain:y});return(0,e.getAction)(o,n.verifyHash,"verifyHash")({address:a,factory:i,factoryData:c,hash:b,signature:d,...h})}return vc}var Ec={},jc={},Sy;function Z_(){if(Sy)return jc;Sy=1,Object.defineProperty(jc,"__esModule",{value:!0}),jc.watchBlockNumber=a;const e=xe(),r=me(),n=on(),t=Hn(),o=Ne(),s=ya();function a(i,{emitOnBegin:c=!1,emitMissed:d=!1,onBlockNumber:f,onError:l,poll:m,pollingInterval:y=i.pollingInterval}){const h=typeof m<"u"?m:!(i.transport.type==="webSocket"||i.transport.type==="ipc"||i.transport.type==="fallback"&&(i.transport.transports[0].config.type==="webSocket"||i.transport.transports[0].config.type==="ipc"));let b;return h?(()=>{const v=(0,o.stringify)(["watchBlockNumber",i.uid,c,d,y]);return(0,n.observe)(v,{onBlockNumber:f,onError:l},P=>(0,t.poll)(async()=>{var u;try{const w=await(0,r.getAction)(i,s.getBlockNumber,"getBlockNumber")({cacheTime:0});if(b!==void 0){if(w===b)return;if(w-b>1&&d)for(let _=b+1n;_<w;_++)P.onBlockNumber(_,b),b=_}(b===void 0||w>b)&&(P.onBlockNumber(w,b),b=w)}catch(w){(u=P.onError)==null||u.call(P,w)}},{emitOnBegin:c,interval:y}))})():(()=>{const v=(0,o.stringify)(["watchBlockNumber",i.uid,c,d]);return(0,n.observe)(v,{onBlockNumber:f,onError:l},P=>{let u=!0,w=()=>u=!1;return(async()=>{try{const _=(()=>{if(i.transport.type==="fallback"){const S=i.transport.transports.find(A=>A.config.type==="webSocket"||A.config.type==="ipc");return S?S.value:i.transport}return i.transport})(),{unsubscribe:p}=await _.subscribe({params:["newHeads"],onData(S){var T;if(!u)return;const A=(0,e.hexToBigInt)((T=S.result)==null?void 0:T.number);P.onBlockNumber(A,b),b=A},onError(S){var A;(A=P.onError)==null||A.call(P,S)}});w=p,u||w()}catch(_){l==null||l(_)}})(),()=>w()})})()}return jc}var Iy;function Y_(){if(Iy)return Ec;Iy=1,Object.defineProperty(Ec,"__esModule",{value:!0}),Ec.waitForTransactionReceipt=l;const e=nd(),r=ct(),n=me(),t=on(),o=Hf(),s=pd(),a=Ne(),i=rn(),c=ml(),d=D_(),f=Z_();async function l(m,y){const{checkReplacement:h=!0,confirmations:b=1,hash:E,onReplaced:g,retryCount:v=6,retryDelay:P=({count:j})=>~~(1<<j)*200,timeout:u=18e4}=y,w=(0,a.stringify)(["waitForTransactionReceipt",m.uid,E]),_=(()=>{var j;return y.pollingInterval?y.pollingInterval:(j=m.chain)!=null&&j.experimental_preconfirmationTime?m.chain.experimental_preconfirmationTime:m.pollingInterval})();let p,S,A,T=!1,O,I;const{promise:R,resolve:H,reject:F}=(0,o.withResolvers)(),x=u?setTimeout(()=>{I==null||I(),O==null||O(),F(new r.WaitForTransactionReceiptTimeoutError({hash:E}))},u):void 0;return O=(0,t.observe)(w,{onReplaced:g,resolve:H,reject:F},async j=>{if(A=await(0,n.getAction)(m,d.getTransactionReceipt,"getTransactionReceipt")({hash:E}).catch(()=>{}),A&&b<=1){clearTimeout(x),j.resolve(A),O==null||O();return}I=(0,n.getAction)(m,f.watchBlockNumber,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:_,async onBlockNumber(k){const B=q=>{clearTimeout(x),I==null||I(),q(),O==null||O()};let C=k;if(!T)try{if(A){if(b>1&&(!A.blockNumber||C-A.blockNumber+1n<b))return;B(()=>j.resolve(A));return}if(h&&!p&&(T=!0,await(0,s.withRetry)(async()=>{p=await(0,n.getAction)(m,c.getTransaction,"getTransaction")({hash:E}),p.blockNumber&&(C=p.blockNumber)},{delay:P,retryCount:v}),T=!1),A=await(0,n.getAction)(m,d.getTransactionReceipt,"getTransactionReceipt")({hash:E}),b>1&&(!A.blockNumber||C-A.blockNumber+1n<b))return;B(()=>j.resolve(A))}catch(q){if(q instanceof r.TransactionNotFoundError||q instanceof r.TransactionReceiptNotFoundError){if(!p){T=!1;return}try{S=p,T=!0;const M=await(0,s.withRetry)(()=>(0,n.getAction)(m,i.getBlock,"getBlock")({blockNumber:C,includeTransactions:!0}),{delay:P,retryCount:v,shouldRetry:({error:$})=>$ instanceof e.BlockNotFoundError});T=!1;const N=M.transactions.find(({from:$,nonce:L})=>$===S.from&&L===S.nonce);if(!N||(A=await(0,n.getAction)(m,d.getTransactionReceipt,"getTransactionReceipt")({hash:N.hash}),b>1&&(!A.blockNumber||C-A.blockNumber+1n<b)))return;let z="replaced";N.to===S.to&&N.value===S.value&&N.input===S.input?z="repriced":N.from===N.to&&N.value===0n&&(z="cancelled"),B(()=>{var $;($=j.onReplaced)==null||$.call(j,{reason:z,replacedTransaction:S,transaction:N,transactionReceipt:A}),j.resolve(A)})}catch(M){B(()=>j.reject(M))}}else B(()=>j.reject(q))}}})}),R}return Ec}var wc={},Ry;function y2(){if(Ry)return wc;Ry=1,Object.defineProperty(wc,"__esModule",{value:!0}),wc.watchBlocks=s;const e=me(),r=on(),n=Hn(),t=Ne(),o=rn();function s(a,{blockTag:i=a.experimental_blockTag??"latest",emitMissed:c=!1,emitOnBegin:d=!1,onBlock:f,onError:l,includeTransactions:m,poll:y,pollingInterval:h=a.pollingInterval}){const b=typeof y<"u"?y:!(a.transport.type==="webSocket"||a.transport.type==="ipc"||a.transport.type==="fallback"&&(a.transport.transports[0].config.type==="webSocket"||a.transport.transports[0].config.type==="ipc")),E=m??!1;let g;return b?(()=>{const u=(0,t.stringify)(["watchBlocks",a.uid,i,c,d,E,h]);return(0,r.observe)(u,{onBlock:f,onError:l},w=>(0,n.poll)(async()=>{var _;try{const p=await(0,e.getAction)(a,o.getBlock,"getBlock")({blockTag:i,includeTransactions:E});if(p.number!==null&&(g==null?void 0:g.number)!=null){if(p.number===g.number)return;if(p.number-g.number>1&&c)for(let S=(g==null?void 0:g.number)+1n;S<p.number;S++){const A=await(0,e.getAction)(a,o.getBlock,"getBlock")({blockNumber:S,includeTransactions:E});w.onBlock(A,g),g=A}}((g==null?void 0:g.number)==null||i==="pending"&&(p==null?void 0:p.number)==null||p.number!==null&&p.number>g.number)&&(w.onBlock(p,g),g=p)}catch(p){(_=w.onError)==null||_.call(w,p)}},{emitOnBegin:d,interval:h}))})():(()=>{let u=!0,w=!0,_=()=>u=!1;return(async()=>{try{d&&(0,e.getAction)(a,o.getBlock,"getBlock")({blockTag:i,includeTransactions:E}).then(A=>{u&&w&&(f(A,void 0),w=!1)}).catch(l);const p=(()=>{if(a.transport.type==="fallback"){const A=a.transport.transports.find(T=>T.config.type==="webSocket"||T.config.type==="ipc");return A?A.value:a.transport}return a.transport})(),{unsubscribe:S}=await p.subscribe({params:["newHeads"],async onData(A){var O;if(!u)return;const T=await(0,e.getAction)(a,o.getBlock,"getBlock")({blockNumber:(O=A.result)==null?void 0:O.number,includeTransactions:E}).catch(()=>{});u&&(f(T,g),w=!1,g=T)},onError(A){l==null||l(A)}});_=S,u||_()}catch(p){l==null||l(p)}})(),()=>_()})()}return wc}var Pc={},By;function p2(){if(By)return Pc;By=1,Object.defineProperty(Pc,"__esModule",{value:!0}),Pc.watchEvent=h;const e=Be(),r=vr(),n=fa(),t=Jr(),o=Ht(),s=me(),a=on(),i=Hn(),c=Ne(),d=c_(),f=ya(),l=md(),m=qf(),y=hd();function h(b,{address:E,args:g,batch:v=!0,event:P,events:u,fromBlock:w,onError:_,onLogs:p,poll:S,pollingInterval:A=b.pollingInterval,strict:T}){const O=typeof S<"u"?S:typeof w=="bigint"?!0:!(b.transport.type==="webSocket"||b.transport.type==="ipc"||b.transport.type==="fallback"&&(b.transport.transports[0].config.type==="webSocket"||b.transport.transports[0].config.type==="ipc")),I=T??!1;return O?(()=>{const F=(0,c.stringify)(["watchEvent",E,g,v,b.uid,P,A,w]);return(0,a.observe)(F,{onLogs:p,onError:_},x=>{let j;w!==void 0&&(j=w-1n);let k,B=!1;const C=(0,i.poll)(async()=>{var q;if(!B){try{k=await(0,s.getAction)(b,d.createEventFilter,"createEventFilter")({address:E,args:g,event:P,events:u,strict:I,fromBlock:w})}catch{}B=!0;return}try{let M;if(k)M=await(0,s.getAction)(b,l.getFilterChanges,"getFilterChanges")({filter:k});else{const N=await(0,s.getAction)(b,f.getBlockNumber,"getBlockNumber")({});j&&j!==N?M=await(0,s.getAction)(b,m.getLogs,"getLogs")({address:E,args:g,event:P,events:u,fromBlock:j+1n,toBlock:N}):M=[],j=N}if(M.length===0)return;if(v)x.onLogs(M);else for(const N of M)x.onLogs([N])}catch(M){k&&M instanceof r.InvalidInputRpcError&&(B=!1),(q=x.onError)==null||q.call(x,M)}},{emitOnBegin:!0,interval:A});return async()=>{k&&await(0,s.getAction)(b,y.uninstallFilter,"uninstallFilter")({filter:k}),C()}})})():(()=>{let F=!0,x=()=>F=!1;return(async()=>{try{const j=(()=>{if(b.transport.type==="fallback"){const q=b.transport.transports.find(M=>M.config.type==="webSocket"||M.config.type==="ipc");return q?q.value:b.transport}return b.transport})(),k=u??(P?[P]:void 0);let B=[];k&&(B=[k.flatMap(M=>(0,t.encodeEventTopics)({abi:[M],eventName:M.name,args:g}))],P&&(B=B[0]));const{unsubscribe:C}=await j.subscribe({params:["logs",{address:E,topics:B}],onData(q){var N;if(!F)return;const M=q.result;try{const{eventName:z,args:$}=(0,n.decodeEventLog)({abi:k??[],data:M.data,topics:M.topics,strict:I}),L=(0,o.formatLog)(M,{args:$,eventName:z});p([L])}catch(z){let $,L;if(z instanceof e.DecodeLogDataMismatch||z instanceof e.DecodeLogTopicsMismatch){if(T)return;$=z.abiItem.name,L=(N=z.abiItem.inputs)==null?void 0:N.some(Z=>!("name"in Z&&Z.name))}const G=(0,o.formatLog)(M,{args:L?[]:{},eventName:$});p([G])}},onError(q){_==null||_(q)}});x=C,F||x()}catch(j){_==null||_(j)}})(),()=>x()})()}return Pc}var Ac={},Oy;function g2(){if(Oy)return Ac;Oy=1,Object.defineProperty(Ac,"__esModule",{value:!0}),Ac.watchPendingTransactions=i;const e=me(),r=on(),n=Hn(),t=Ne(),o=u_(),s=md(),a=hd();function i(c,{batch:d=!0,onError:f,onTransactions:l,poll:m,pollingInterval:y=c.pollingInterval}){return(typeof m<"u"?m:c.transport.type!=="webSocket"&&c.transport.type!=="ipc")?(()=>{const g=(0,t.stringify)(["watchPendingTransactions",c.uid,d,y]);return(0,r.observe)(g,{onTransactions:l,onError:f},v=>{let P;const u=(0,n.poll)(async()=>{var w;try{if(!P)try{P=await(0,e.getAction)(c,o.createPendingTransactionFilter,"createPendingTransactionFilter")({});return}catch(p){throw u(),p}const _=await(0,e.getAction)(c,s.getFilterChanges,"getFilterChanges")({filter:P});if(_.length===0)return;if(d)v.onTransactions(_);else for(const p of _)v.onTransactions([p])}catch(_){(w=v.onError)==null||w.call(v,_)}},{emitOnBegin:!0,interval:y});return async()=>{P&&await(0,e.getAction)(c,a.uninstallFilter,"uninstallFilter")({filter:P}),u()}})})():(()=>{let g=!0,v=()=>g=!1;return(async()=>{try{const{unsubscribe:P}=await c.transport.subscribe({params:["newPendingTransactions"],onData(u){if(!g)return;const w=u.result;l([w])},onError(u){f==null||f(u)}});v=P,g||v()}catch(P){f==null||f(P)}})(),()=>v()})()}return Ac}var Tc={},Sc={},Cy;function _2(){if(Cy)return Sc;Cy=1,Object.defineProperty(Sc,"__esModule",{value:!0}),Sc.parseSiweMessage=e;function e(t){var h,b,E;const{scheme:o,statement:s,...a}=((h=t.match(r))==null?void 0:h.groups)??{},{chainId:i,expirationTime:c,issuedAt:d,notBefore:f,requestId:l,...m}=((b=t.match(n))==null?void 0:b.groups)??{},y=(E=t.split("Resources:")[1])==null?void 0:E.split(`
|
|
47
47
|
- `).slice(1);return{...a,...m,...i?{chainId:Number(i)}:{},...c?{expirationTime:new Date(c)}:{},...d?{issuedAt:new Date(d)}:{},...f?{notBefore:new Date(f)}:{},...l?{requestId:l}:{},...y?{resources:y}:{},...o?{scheme:o}:{},...s?{statement:s}:{}}}const r=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\/\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\n)(?<address>0x[a-fA-F0-9]{40})\n\n(?:(?<statement>.*)\n\n)?/,n=/(?:URI: (?<uri>.+))\n(?:Version: (?<version>.+))\n(?:Chain ID: (?<chainId>\d+))\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\n(?:Issued At: (?<issuedAt>.+))(?:\nExpiration Time: (?<expirationTime>.+))?(?:\nNot Before: (?<notBefore>.+))?(?:\nRequest ID: (?<requestId>.+))?/;return Sc}var Ic={},xy;function v2(){if(xy)return Ic;xy=1,Object.defineProperty(Ic,"__esModule",{value:!0}),Ic.validateSiweMessage=n;const e=tt(),r=ht();function n(t){const{address:o,domain:s,message:a,nonce:i,scheme:c,time:d=new Date}=t;if(s&&a.domain!==s||i&&a.nonce!==i||c&&a.scheme!==c||a.expirationTime&&d>=a.expirationTime||a.notBefore&&d<a.notBefore)return!1;try{if(!a.address||!(0,e.isAddress)(a.address,{strict:!1})||o&&!(0,r.isAddressEqual)(a.address,o))return!1}catch{return!1}return!0}return Ic}var qy;function E2(){if(qy)return Tc;qy=1,Object.defineProperty(Tc,"__esModule",{value:!0}),Tc.verifySiweMessage=o;const e=_a(),r=_2(),n=v2(),t=wd();async function o(s,a){const{address:i,domain:c,message:d,nonce:f,scheme:l,signature:m,time:y=new Date,...h}=a,b=(0,r.parseSiweMessage)(d);if(!b.address||!(0,n.validateSiweMessage)({address:i,domain:c,message:b,nonce:f,scheme:l,time:y}))return!1;const g=(0,e.hashMessage)(d);return(0,t.verifyHash)(s,{address:b.address,hash:g,signature:m,...h})}return Tc}var pf={},Go={},vt={},My;function Tr(){if(My)return vt;My=1,Object.defineProperty(vt,"__esModule",{value:!0}),vt.toAmount=i,vt.toBaseUnits=c,vt.requireTokenDecimals=d,vt.resolveAmountDecimals=f,vt.resolveToken=l,vt.findDeclaredToken=m,vt.resolveTokenWithDecimals=E,vt.pickWriteParameters=g,vt.defineCall=v;const e=ze(),r=tt(),n=ht(),t=bl(),o=Xr(),s=ja(),a=rt();function i(P,u){return{amount:P,decimals:u,formatted:(0,o.formatUnits)(P,u)}}function c(P,u){if(typeof P=="bigint")return P;const w=P.decimals??u;return(0,s.parseUnits)(P.formatted,d(w))}function d(P){if(P===void 0)throw new Error("Token decimals are required. Pass `amount.decimals` or select a declared token.");return P}function f(P,u){return typeof P=="bigint"?u:P.decimals??u}function l(P,u){const{decimals:w,token:_}=u,p=m(P,_);if(p)return{address:p.address,decimals:w??p.decimals};if((0,r.isAddress)(_,{strict:!1}))return{address:_,decimals:w??b(P,_)};throw new Error(`Token "${_}" is not a declared ERC-20 token on the client's \`tokens\` array (with an address for the client's chain), and is not a valid address.`)}function m(P,u){var S;const w=P.tokens,_=(S=P.chain)==null?void 0:S.id;if(!w||_===void 0)return;const p=h(w,u);if(p)return y(p,_);if((0,r.isAddress)(u,{strict:!1}))for(const A of w){const T=y(A,_);if(T&&(0,n.isAddressEqual)(T.address,u))return T}}function y(P,u){const w=P.addresses[u];if(w)return{address:w,currency:P.currency,decimals:P.decimals,name:P.name,popular:P.popular,symbol:P.symbol}}function h(P,u){var _;const w=u.toLowerCase();for(const p of P)if(((_=p.symbol)==null?void 0:_.toLowerCase())===w)return p}function b(P,u){var p;const w=P.tokens,_=(p=P.chain)==null?void 0:p.id;if(w&&_!==void 0)for(const S of w){const A=y(S,_);if(A&&(0,n.isAddressEqual)(A.address,u))return A.decimals}}async function E(P,u){const{address:w,decimals:_}=l(P,u);return _!==void 0?{address:w,decimals:_}:{address:w,decimals:await(0,a.readContract)(P,{abi:e.erc20Abi,address:w,functionName:"decimals"})}}function g(P){const{account:u,chain:w,gas:_,maxFeePerGas:p,maxPriorityFeePerGas:S,nonce:A}=P;return{account:u,chain:w,gas:_,maxFeePerGas:p,maxPriorityFeePerGas:S,nonce:A}}function v(P){return{...P,data:(0,t.encodeFunctionData)(P),to:P.address}}return vt}var ky;function J_(){if(ky)return Go;ky=1,Object.defineProperty(Go,"__esModule",{value:!0}),Go.approve=a;const e=ze(),r=nn(),n=dd(),t=bd(),o=ga(),s=Tr();async function a(c,d){return a.inner(o.writeContract,c,d)}(function(c){async function d(h,b,E){return await h(b,{...E,...c.call(b,E)})}c.inner=d;function f(h,b){return(0,s.defineCall)(i(h,b))}c.call=f;async function l(h,b){return(0,n.estimateContractGas)(h,{...(0,s.pickWriteParameters)(b),...c.call(h,b)})}c.estimateGas=l;async function m(h,b){return(0,t.simulateContract)(h,{...(0,s.pickWriteParameters)(b),...c.call(h,b)})}c.simulate=m;function y(h){const[b]=(0,r.parseEventLogs)({abi:e.erc20Abi,logs:h,eventName:"Approval",strict:!0});if(!b)throw new Error("`Approval` event not found.");return b}c.extractEvent=y})(a||(Go.approve=a={}));function i(c,d){const{amount:f,spender:l,token:m}=d,{address:y,decimals:h}=(0,s.resolveToken)(c,{token:m});return{abi:e.erc20Abi,address:y,args:[l,(0,s.toBaseUnits)(f,h)],functionName:"approve"}}return Go}var Rc={},Bc={},Oc={},Cc={},Hy;function hl(){if(Hy)return Cc;Hy=1,Object.defineProperty(Cc,"__esModule",{value:!0}),Cc.sendRawTransactionSync=n;const e=ct(),r=Fn();async function n(t,{serializedTransaction:o,throwOnReceiptRevert:s,timeout:a}){var f,l,m;const i=await t.request({method:"eth_sendRawTransactionSync",params:a?[o,a]:[o]},{retryCount:0}),d=(((m=(l=(f=t.chain)==null?void 0:f.formatters)==null?void 0:l.transactionReceipt)==null?void 0:m.format)||r.formatTransactionReceipt)(i);if(d.status==="reverted"&&s)throw new e.TransactionReceiptRevertedError({receipt:d});return d}return Cc}var Fy;function X_(){if(Fy)return Oc;Fy=1,Object.defineProperty(Oc,"__esModule",{value:!0}),Oc.sendTransactionSync=v;const e=Se(),r=or(),n=ue(),t=ct(),o=aa(),s=pa(),a=Me(),i=ua(),c=wr(),d=Bt(),f=me(),l=Zr(),m=Ot(),y=Pr(),h=Y_(),b=da(),E=hl(),g=new l.LruMap(128);async function v(P,u){var G,Z,W,V,J,te;const{account:w=P.account,assertChainId:_=!0,chain:p=P.chain,accessList:S,authorizationList:A,blobs:T,data:O,dataSuffix:I=typeof P.dataSuffix=="string"?P.dataSuffix:(G=P.dataSuffix)==null?void 0:G.value,gas:R,gasPrice:H,maxFeePerBlobGas:F,maxFeePerGas:x,maxPriorityFeePerGas:j,nonce:k,pollingInterval:B,throwOnReceiptRevert:C,type:q,value:M,...N}=u,z=u.timeout??Math.max(((p==null?void 0:p.blockTime)??0)*3,5e3);if(typeof w>"u")throw new r.AccountNotFoundError({docsPath:"/docs/actions/wallet/sendTransactionSync"});const $=w?(0,e.parseAccount)(w):null;let L;try{(0,m.assertRequest)(u);const K=await(async()=>{if(u.to)return u.to;if(u.to!==null&&A&&A.length>0)return await(0,o.recoverAuthorizationAddress)({authorization:A[0]}).catch(()=>{throw new n.BaseError("`to` is required. Could not infer from `authorizationList`.")})})();if(($==null?void 0:$.type)==="json-rpc"||$===null){let X;p!==null&&(X=await(0,f.getAction)(P,y.getChainId,"getChainId")({}),_&&(0,s.assertCurrentChain)({currentChainId:X,chain:p}));const Q=(V=(W=(Z=P.chain)==null?void 0:Z.formatters)==null?void 0:W.transactionRequest)==null?void 0:V.format,re=(Q||d.formatTransactionRequest)({...(0,c.extract)(N,{format:Q}),accessList:S,account:$,authorizationList:A,blobs:T,chainId:X,data:I?(0,a.concat)([O??"0x",I]):O,gas:R,gasPrice:H,maxFeePerBlobGas:F,maxFeePerGas:x,maxPriorityFeePerGas:j,nonce:k,to:K,type:q,value:M},"sendTransaction"),ae=g.get(P.uid),ce=ae?"wallet_sendTransaction":"eth_sendTransaction",he=await(async()=>{try{return await P.request({method:ce,params:[re]},{retryCount:0})}catch(ge){if(ae===!1)throw ge;const ye=ge;if(ye.name==="InvalidInputRpcError"||ye.name==="InvalidParamsRpcError"||ye.name==="MethodNotFoundRpcError"||ye.name==="MethodNotSupportedRpcError")return await P.request({method:"wallet_sendTransaction",params:[re]},{retryCount:0}).then(Oe=>(g.set(P.uid,!0),Oe)).catch(Oe=>{const ee=Oe;throw ee.name==="MethodNotFoundRpcError"||ee.name==="MethodNotSupportedRpcError"?(g.set(P.uid,!1),ye):ee});throw ye}})(),ve=await(0,f.getAction)(P,h.waitForTransactionReceipt,"waitForTransactionReceipt")({checkReplacement:!1,hash:he,pollingInterval:B,timeout:z});if(C&&ve.status==="reverted")throw new t.TransactionReceiptRevertedError({receipt:ve});return ve}if(($==null?void 0:$.type)==="local"){if($.nonceManager&&typeof k>"u"){const re=N.chainId,ae=await(async()=>typeof re=="number"?re:p?p.id:(0,f.getAction)(P,y.getChainId,"getChainId")({}))();L={address:$.address,chainId:ae}}const X=await(0,f.getAction)(P,b.prepareTransactionRequest,"prepareTransactionRequest")({account:$,accessList:S,authorizationList:A,blobs:T,chain:p,data:I?(0,a.concat)([O??"0x",I]):O,gas:R,gasPrice:H,maxFeePerBlobGas:F,maxFeePerGas:x,maxPriorityFeePerGas:j,nonce:k,nonceManager:$.nonceManager,parameters:[...b.defaultParameters,"sidecars"],type:q,value:M,...N,to:K}),Q=(J=p==null?void 0:p.serializers)==null?void 0:J.transaction,ne=await $.signTransaction(X,{serializer:Q});return await(0,f.getAction)(P,E.sendRawTransactionSync,"sendRawTransactionSync")({serializedTransaction:ne,throwOnReceiptRevert:C,timeout:u.timeout})}throw($==null?void 0:$.type)==="smart"?new r.AccountTypeNotSupportedError({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new r.AccountTypeNotSupportedError({docsPath:"/docs/actions/wallet/sendTransactionSync",type:$==null?void 0:$.type})}catch(K){throw K instanceof r.AccountTypeNotSupportedError?K:(L&&!(K instanceof t.TransactionReceiptRevertedError)&&((te=$==null?void 0:$.nonceManager)==null||te.reset(L)),(0,i.getTransactionError)(K,{...u,account:$,chain:u.chain||void 0}))}}return Oc}var Ny;function yl(){if(Ny)return Bc;Ny=1,Object.defineProperty(Bc,"__esModule",{value:!0}),Bc.writeContractSync=n;const e=X_(),r=ga();async function n(t,o){return r.writeContract.internal(t,e.sendTransactionSync,"sendTransactionSync",o)}return Bc}var $y;function j2(){if($y)return Rc;$y=1,Object.defineProperty(Rc,"__esModule",{value:!0}),Rc.approveSync=o;const e=Xr(),r=yl(),n=J_(),t=Tr();async function o(s,a){const{amount:i,token:c,throwOnReceiptRevert:d=!0}=a,{decimals:f}=(0,t.resolveToken)(s,{token:c}),l=(0,t.resolveAmountDecimals)(i,f),m=await n.approve.inner(r.writeContractSync,s,{...a,throwOnReceiptRevert:d}),{args:y}=n.approve.extractEvent(m.logs);return{...y,...l===void 0?{}:{decimals:l,formatted:(0,e.formatUnits)(y.value,l)},receipt:m}}return Rc}var Vo={},zy;function w2(){if(zy)return Vo;zy=1,Object.defineProperty(Vo,"__esModule",{value:!0}),Vo.getAllowance=t;const e=ze(),r=rt(),n=Tr();async function t(o,s){const{account:a,decimals:i,spender:c,token:d,...f}=s,[l,{decimals:m}]=await Promise.all([(0,r.readContract)(o,{...f,...t.call(o,{account:a,spender:c,token:d})}),(0,n.resolveTokenWithDecimals)(o,{decimals:i,token:d})]);return(0,n.toAmount)(l,m)}return(function(o){function s(a,i){return(0,n.defineCall)({address:(0,n.resolveToken)(a,i).address,abi:e.erc20Abi,functionName:"allowance",args:[i.account,i.spender]})}o.call=s})(t||(Vo.getAllowance=t={})),Vo}var Wo={},Ly;function P2(){if(Ly)return Wo;Ly=1,Object.defineProperty(Wo,"__esModule",{value:!0}),Wo.getBalance=s;const e=Se(),r=ze(),n=or(),t=rt(),o=Tr();async function s(a,i){const{account:c=a.account,decimals:d,token:f,...l}=i;if(!c)throw new n.AccountNotFoundError;const m=(0,e.parseAccount)(c).address,[y,{decimals:h}]=await Promise.all([(0,t.readContract)(a,{...l,...s.call(a,{account:m,token:f})}),(0,o.resolveTokenWithDecimals)(a,{decimals:d,token:f})]);return(0,o.toAmount)(y,h)}return(function(a){function i(c,d){const f=d.account??c.account;if(!f)throw new n.AccountNotFoundError;const l=(0,e.parseAccount)(f).address;return(0,o.defineCall)({address:(0,o.resolveToken)(c,d).address,abi:r.erc20Abi,functionName:"balanceOf",args:[l]})}a.call=i})(s||(Wo.getBalance=s={})),Wo}var xc={},Uy;function A2(){if(Uy)return xc;Uy=1,Object.defineProperty(xc,"__esModule",{value:!0}),xc.getMetadata=t;const e=ze(),r=rt(),n=Tr();async function t(o,s){const{token:a,...i}=s,{address:c}=(0,n.resolveToken)(o,{token:a}),d=(0,n.findDeclaredToken)(o,a),[f,l,m]=await Promise.all([(d==null?void 0:d.decimals)??(0,r.readContract)(o,{...i,abi:e.erc20Abi,address:c,functionName:"decimals"}),(d==null?void 0:d.name)??(0,r.readContract)(o,{...i,abi:e.erc20Abi,address:c,functionName:"name"}),(d==null?void 0:d.symbol)??(0,r.readContract)(o,{...i,abi:e.erc20Abi,address:c,functionName:"symbol"})]);return{decimals:f,name:l,symbol:m}}return xc}var Ko={},Dy;function T2(){if(Dy)return Ko;Dy=1,Object.defineProperty(Ko,"__esModule",{value:!0}),Ko.getTotalSupply=t;const e=ze(),r=rt(),n=Tr();async function t(o,s){const{decimals:a,token:i,...c}=s,[d,{decimals:f}]=await Promise.all([(0,r.readContract)(o,{...c,...t.call(o,{token:i})}),(0,n.resolveTokenWithDecimals)(o,{decimals:a,token:i})]);return(0,n.toAmount)(d,f)}return(function(o){function s(a,i){return(0,n.defineCall)({address:(0,n.resolveToken)(a,i).address,abi:e.erc20Abi,args:[],functionName:"totalSupply"})}o.call=s})(t||(Ko.getTotalSupply=t={})),Ko}var Zo={},Gy;function Q_(){if(Gy)return Zo;Gy=1,Object.defineProperty(Zo,"__esModule",{value:!0}),Zo.transfer=a;const e=ze(),r=nn(),n=dd(),t=bd(),o=ga(),s=Tr();async function a(c,d){return a.inner(o.writeContract,c,d)}(function(c){async function d(h,b,E){return await h(b,{...E,...c.call(b,E)})}c.inner=d;function f(h,b){return(0,s.defineCall)(i(h,b))}c.call=f;async function l(h,b){return(0,n.estimateContractGas)(h,{...(0,s.pickWriteParameters)(b),...c.call(h,b)})}c.estimateGas=l;async function m(h,b){return(0,t.simulateContract)(h,{...(0,s.pickWriteParameters)(b),...c.call(h,b)})}c.simulate=m;function y(h){const[b]=(0,r.parseEventLogs)({abi:e.erc20Abi,logs:h,eventName:"Transfer",strict:!0});if(!b)throw new Error("`Transfer` event not found.");return b}c.extractEvent=y})(a||(Zo.transfer=a={}));function i(c,d){const{amount:f,from:l,to:m,token:y}=d,{address:h,decimals:b}=(0,s.resolveToken)(c,{token:y}),E=(0,s.toBaseUnits)(f,b);return l?{abi:e.erc20Abi,address:h,args:[l,m,E],functionName:"transferFrom"}:{abi:e.erc20Abi,address:h,args:[m,E],functionName:"transfer"}}return Zo}var qc={},Vy;function S2(){if(Vy)return qc;Vy=1,Object.defineProperty(qc,"__esModule",{value:!0}),qc.transferSync=o;const e=Xr(),r=yl(),n=Tr(),t=Q_();async function o(s,a){const{amount:i,token:c,throwOnReceiptRevert:d=!0}=a,{decimals:f}=(0,n.resolveToken)(s,{token:c}),l=(0,n.resolveAmountDecimals)(i,f),m=await t.transfer.inner(r.writeContractSync,s,{...a,throwOnReceiptRevert:d}),{args:y}=t.transfer.extractEvent(m.logs);return{...y,...l===void 0?{}:{decimals:l,formatted:(0,e.formatUnits)(y.value,l)},receipt:m}}return qc}var Wy;function ev(){return Wy||(Wy=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.transferSync=e.transfer=e.getTotalSupply=e.getMetadata=e.getBalance=e.getAllowance=e.approveSync=e.approve=void 0;var r=J_();Object.defineProperty(e,"approve",{enumerable:!0,get:function(){return r.approve}});var n=j2();Object.defineProperty(e,"approveSync",{enumerable:!0,get:function(){return n.approveSync}});var t=w2();Object.defineProperty(e,"getAllowance",{enumerable:!0,get:function(){return t.getAllowance}});var o=P2();Object.defineProperty(e,"getBalance",{enumerable:!0,get:function(){return o.getBalance}});var s=A2();Object.defineProperty(e,"getMetadata",{enumerable:!0,get:function(){return s.getMetadata}});var a=T2();Object.defineProperty(e,"getTotalSupply",{enumerable:!0,get:function(){return a.getTotalSupply}});var i=Q_();Object.defineProperty(e,"transfer",{enumerable:!0,get:function(){return i.transfer}});var c=S2();Object.defineProperty(e,"transferSync",{enumerable:!0,get:function(){return c.transferSync}})})(pf)),pf}var Ky;function tv(){if(Ky)return ss;Ky=1,Object.defineProperty(ss,"__esModule",{value:!0}),ss.publicActions=ye;const e=R6(),r=C6(),n=x6(),t=q6(),o=i_(),s=kn(),a=s_(),i=M6(),c=jf(),d=c_(),f=u_(),l=dd(),m=Gg(),y=xf(),h=Dg(),b=Cf(),E=k6(),g=H6(),v=rn(),P=ya(),u=F6(),w=N6(),_=Pr(),p=Yf(),S=Mf(),A=$6(),T=L6(),O=D6(),I=md(),R=G6(),H=If(),F=qf(),x=o2(),j=a2(),k=ml(),B=i2(),C=ad(),q=D_(),M=s2(),N=rt(),z=G_(),$=f2(),L=bd(),G=hd(),Z=wd(),W=m2(),V=h2(),J=Y_(),te=Z_(),K=y2(),X=e_(),Q=p2(),ne=g2(),re=E2(),ae=ev(),ce=da(),he=Uf(),ve=hl(),ge=Nn();function ye(ee){return{call:Y=>(0,s.call)(ee,Y),createAccessList:Y=>(0,a.createAccessList)(ee,Y),createBlockFilter:()=>(0,i.createBlockFilter)(ee),createContractEventFilter:Y=>(0,c.createContractEventFilter)(ee,Y),createEventFilter:Y=>(0,d.createEventFilter)(ee,Y),createPendingTransactionFilter:()=>(0,f.createPendingTransactionFilter)(ee),estimateContractGas:Y=>(0,l.estimateContractGas)(ee,Y),estimateGas:Y=>(0,y.estimateGas)(ee,Y),getBalance:Y=>(0,E.getBalance)(ee,Y),getBlobBaseFee:()=>(0,g.getBlobBaseFee)(ee),getBlock:Y=>(0,v.getBlock)(ee,Y),getBlockNumber:Y=>(0,P.getBlockNumber)(ee,Y),getBlockReceipts:Y=>(0,u.getBlockReceipts)(ee,Y),getBlockTransactionCount:Y=>(0,w.getBlockTransactionCount)(ee,Y),getBytecode:Y=>(0,p.getCode)(ee,Y),getChainId:()=>(0,_.getChainId)(ee),getCode:Y=>(0,p.getCode)(ee,Y),getContractEvents:Y=>(0,S.getContractEvents)(ee,Y),getDelegation:Y=>(0,A.getDelegation)(ee,Y),getEip712Domain:Y=>(0,T.getEip712Domain)(ee,Y),getEnsAddress:Y=>(0,e.getEnsAddress)(ee,Y),getEnsAvatar:Y=>(0,r.getEnsAvatar)(ee,Y),getEnsName:Y=>(0,n.getEnsName)(ee,Y),getEnsResolver:Y=>(0,t.getEnsResolver)(ee,Y),getEnsText:Y=>(0,o.getEnsText)(ee,Y),getFeeHistory:Y=>(0,O.getFeeHistory)(ee,Y),estimateFeesPerGas:Y=>(0,m.estimateFeesPerGas)(ee,Y),getFilterChanges:Y=>(0,I.getFilterChanges)(ee,Y),getFilterLogs:Y=>(0,R.getFilterLogs)(ee,Y),getGasPrice:()=>(0,H.getGasPrice)(ee),getLogs:Y=>(0,F.getLogs)(ee,Y),getProof:Y=>(0,x.getProof)(ee,Y),estimateMaxPriorityFeePerGas:Y=>(0,h.estimateMaxPriorityFeePerGas)(ee,Y),fillTransaction:Y=>(0,b.fillTransaction)(ee,Y),getStorageAt:Y=>(0,j.getStorageAt)(ee,Y),getTransaction:Y=>(0,k.getTransaction)(ee,Y),getTransactionConfirmations:Y=>(0,B.getTransactionConfirmations)(ee,Y),getTransactionCount:Y=>(0,C.getTransactionCount)(ee,Y),getTransactionReceipt:Y=>(0,q.getTransactionReceipt)(ee,Y),multicall:Y=>(0,M.multicall)(ee,Y),prepareTransactionRequest:Y=>(0,ce.prepareTransactionRequest)(ee,Y),readContract:Y=>(0,N.readContract)(ee,Y),sendRawTransaction:Y=>(0,he.sendRawTransaction)(ee,Y),sendRawTransactionSync:Y=>(0,ve.sendRawTransactionSync)(ee,Y),simulate:Y=>(0,z.simulateBlocks)(ee,Y),simulateBlocks:Y=>(0,z.simulateBlocks)(ee,Y),simulateCalls:Y=>(0,$.simulateCalls)(ee,Y),simulateContract:Y=>(0,L.simulateContract)(ee,Y),verifyHash:Y=>(0,Z.verifyHash)(ee,Y),verifyMessage:Y=>(0,W.verifyMessage)(ee,Y),verifySiweMessage:Y=>(0,re.verifySiweMessage)(ee,Y),verifyTypedData:Y=>(0,V.verifyTypedData)(ee,Y),uninstallFilter:Y=>(0,G.uninstallFilter)(ee,Y),waitForTransactionReceipt:Y=>(0,J.waitForTransactionReceipt)(ee,Y),watchBlocks:Y=>(0,K.watchBlocks)(ee,Y),watchBlockNumber:Y=>(0,te.watchBlockNumber)(ee,Y),watchContractEvent:Y=>(0,X.watchContractEvent)(ee,Y),watchEvent:Y=>(0,Q.watchEvent)(ee,Y),watchPendingTransactions:Y=>(0,ne.watchPendingTransactions)(ee,Y),token:Oe(ee)}}function Oe(ee){return{getAllowance:(0,ge.bindActionDecorators)(ee,ae.getAllowance),getBalance:(0,ge.bindActionDecorators)(ee,ae.getBalance),getMetadata:(0,ge.bindActionDecorators)(ee,ae.getMetadata),getTotalSupply:(0,ge.bindActionDecorators)(ee,ae.getTotalSupply)}}return ss}var Zy;function I2(){if(Zy)return is;Zy=1,Object.defineProperty(is,"__esModule",{value:!0}),is.createPublicClient=n;const e=Nn(),r=tv();function n(t){const{key:o="public",name:s="Public Client"}=t;return(0,e.createClient)({...t,key:o,name:s,type:"publicClient"}).extend(r.publicActions)}return is}var Mc={},kc={},Hc={},Yy;function R2(){if(Yy)return Hc;Yy=1,Object.defineProperty(Hc,"__esModule",{value:!0}),Hc.dropTransaction=e;async function e(r,{hash:n}){await r.request({method:`${r.mode}_dropTransaction`,params:[n]})}return Hc}var Fc={},Jy;function B2(){if(Jy)return Fc;Jy=1,Object.defineProperty(Fc,"__esModule",{value:!0}),Fc.dumpState=e;async function e(r){return r.request({method:`${r.mode}_dumpState`})}return Fc}var Nc={},Xy;function O2(){if(Xy)return Nc;Xy=1,Object.defineProperty(Nc,"__esModule",{value:!0}),Nc.getAutomine=e;async function e(r){return r.mode==="ganache"?await r.request({method:"eth_mining"}):await r.request({method:`${r.mode}_getAutomine`})}return Nc}var $c={},Qy;function C2(){if(Qy)return $c;Qy=1,Object.defineProperty($c,"__esModule",{value:!0}),$c.getTxpoolContent=e;async function e(r){return await r.request({method:"txpool_content"})}return $c}var zc={},ep;function x2(){if(ep)return zc;ep=1,Object.defineProperty(zc,"__esModule",{value:!0}),zc.getTxpoolStatus=r;const e=xe();async function r(n){const{pending:t,queued:o}=await n.request({method:"txpool_status"});return{pending:(0,e.hexToNumber)(t),queued:(0,e.hexToNumber)(o)}}return zc}var Lc={},tp;function q2(){if(tp)return Lc;tp=1,Object.defineProperty(Lc,"__esModule",{value:!0}),Lc.impersonateAccount=e;async function e(r,{address:n}){await r.request({method:`${r.mode}_impersonateAccount`,params:[n]})}return Lc}var Uc={},rp;function M2(){if(rp)return Uc;rp=1,Object.defineProperty(Uc,"__esModule",{value:!0}),Uc.increaseTime=r;const e=oe();async function r(n,{seconds:t}){return await n.request({method:"evm_increaseTime",params:[(0,e.numberToHex)(t)]})}return Uc}var Dc={},np;function k2(){if(np)return Dc;np=1,Object.defineProperty(Dc,"__esModule",{value:!0}),Dc.inspectTxpool=e;async function e(r){return await r.request({method:"txpool_inspect"})}return Dc}var Gc={},op;function H2(){if(op)return Gc;op=1,Object.defineProperty(Gc,"__esModule",{value:!0}),Gc.loadState=e;async function e(r,{state:n}){await r.request({method:`${r.mode}_loadState`,params:[n]})}return Gc}var Vc={},ap;function F2(){if(ap)return Vc;ap=1,Object.defineProperty(Vc,"__esModule",{value:!0}),Vc.mine=r;const e=oe();async function r(n,{blocks:t,interval:o}){n.mode==="ganache"?await n.request({method:"evm_mine",params:[{blocks:(0,e.numberToHex)(t)}]}):await n.request({method:`${n.mode}_mine`,params:[(0,e.numberToHex)(t),(0,e.numberToHex)(o||0)]})}return Vc}var Wc={},ip;function N2(){if(ip)return Wc;ip=1,Object.defineProperty(Wc,"__esModule",{value:!0}),Wc.removeBlockTimestampInterval=e;async function e(r){await r.request({method:`${r.mode}_removeBlockTimestampInterval`})}return Wc}var Kc={},sp;function $2(){if(sp)return Kc;sp=1,Object.defineProperty(Kc,"__esModule",{value:!0}),Kc.reset=e;async function e(r,{blockNumber:n,jsonRpcUrl:t}={}){await r.request({method:`${r.mode}_reset`,params:[{forking:{blockNumber:Number(n),jsonRpcUrl:t}}]})}return Kc}var Zc={},cp;function z2(){if(cp)return Zc;cp=1,Object.defineProperty(Zc,"__esModule",{value:!0}),Zc.revert=e;async function e(r,{id:n}){await r.request({method:"evm_revert",params:[n]})}return Zc}var Yc={},up;function L2(){if(up)return Yc;up=1,Object.defineProperty(Yc,"__esModule",{value:!0}),Yc.sendUnsignedTransaction=n;const e=wr(),r=Bt();async function n(t,o){var u,w,_;const{accessList:s,data:a,from:i,gas:c,gasPrice:d,maxFeePerGas:f,maxPriorityFeePerGas:l,nonce:m,to:y,value:h,...b}=o,E=(_=(w=(u=t.chain)==null?void 0:u.formatters)==null?void 0:w.transactionRequest)==null?void 0:_.format,v=(E||r.formatTransactionRequest)({...(0,e.extract)(b,{format:E}),accessList:s,data:a,from:i,gas:c,gasPrice:d,maxFeePerGas:f,maxPriorityFeePerGas:l,nonce:m,to:y,value:h},"sendUnsignedTransaction");return await t.request({method:"eth_sendUnsignedTransaction",params:[v]})}return Yc}var Jc={},dp;function U2(){if(dp)return Jc;dp=1,Object.defineProperty(Jc,"__esModule",{value:!0}),Jc.setAutomine=e;async function e(r,n){r.mode==="ganache"?n?await r.request({method:"miner_start"}):await r.request({method:"miner_stop"}):await r.request({method:"evm_setAutomine",params:[n]})}return Jc}var Xc={},fp;function D2(){if(fp)return Xc;fp=1,Object.defineProperty(Xc,"__esModule",{value:!0}),Xc.setBalance=r;const e=oe();async function r(n,{address:t,value:o}){n.mode==="ganache"?await n.request({method:"evm_setAccountBalance",params:[t,(0,e.numberToHex)(o)]}):await n.request({method:`${n.mode}_setBalance`,params:[t,(0,e.numberToHex)(o)]})}return Xc}var Qc={},lp;function G2(){if(lp)return Qc;lp=1,Object.defineProperty(Qc,"__esModule",{value:!0}),Qc.setBlockGasLimit=r;const e=oe();async function r(n,{gasLimit:t}){await n.request({method:"evm_setBlockGasLimit",params:[(0,e.numberToHex)(t)]})}return Qc}var eu={},bp;function V2(){if(bp)return eu;bp=1,Object.defineProperty(eu,"__esModule",{value:!0}),eu.setBlockTimestampInterval=e;async function e(r,{interval:n}){const t=r.mode==="hardhat"?n*1e3:n;await r.request({method:`${r.mode}_setBlockTimestampInterval`,params:[t]})}return eu}var tu={},mp;function W2(){if(mp)return tu;mp=1,Object.defineProperty(tu,"__esModule",{value:!0}),tu.setCode=e;async function e(r,{address:n,bytecode:t}){r.mode==="ganache"?await r.request({method:"evm_setAccountCode",params:[n,t]}):await r.request({method:`${r.mode}_setCode`,params:[n,t]})}return tu}var ru={},hp;function K2(){if(hp)return ru;hp=1,Object.defineProperty(ru,"__esModule",{value:!0}),ru.setCoinbase=e;async function e(r,{address:n}){await r.request({method:`${r.mode}_setCoinbase`,params:[n]})}return ru}var nu={},yp;function Z2(){if(yp)return nu;yp=1,Object.defineProperty(nu,"__esModule",{value:!0}),nu.setIntervalMining=e;async function e(r,{interval:n}){const t=r.mode==="hardhat"?n*1e3:n;await r.request({method:"evm_setIntervalMining",params:[t]})}return nu}var ou={},pp;function Y2(){if(pp)return ou;pp=1,Object.defineProperty(ou,"__esModule",{value:!0}),ou.setLoggingEnabled=e;async function e(r,n){await r.request({method:`${r.mode}_setLoggingEnabled`,params:[n]})}return ou}var au={},gp;function J2(){if(gp)return au;gp=1,Object.defineProperty(au,"__esModule",{value:!0}),au.setMinGasPrice=r;const e=oe();async function r(n,{gasPrice:t}){await n.request({method:`${n.mode}_setMinGasPrice`,params:[(0,e.numberToHex)(t)]})}return au}var iu={},_p;function X2(){if(_p)return iu;_p=1,Object.defineProperty(iu,"__esModule",{value:!0}),iu.setNextBlockBaseFeePerGas=r;const e=oe();async function r(n,{baseFeePerGas:t}){await n.request({method:`${n.mode}_setNextBlockBaseFeePerGas`,params:[(0,e.numberToHex)(t)]})}return iu}var su={},vp;function Q2(){if(vp)return su;vp=1,Object.defineProperty(su,"__esModule",{value:!0}),su.setNextBlockTimestamp=r;const e=oe();async function r(n,{timestamp:t}){await n.request({method:"evm_setNextBlockTimestamp",params:[(0,e.numberToHex)(t)]})}return su}var cu={},Ep;function e5(){if(Ep)return cu;Ep=1,Object.defineProperty(cu,"__esModule",{value:!0}),cu.setNonce=r;const e=oe();async function r(n,{address:t,nonce:o}){await n.request({method:`${n.mode}_setNonce`,params:[t,(0,e.numberToHex)(o)]})}return cu}var uu={},jp;function t5(){if(jp)return uu;jp=1,Object.defineProperty(uu,"__esModule",{value:!0}),uu.setRpcUrl=e;async function e(r,n){await r.request({method:`${r.mode}_setRpcUrl`,params:[n]})}return uu}var du={},wp;function r5(){if(wp)return du;wp=1,Object.defineProperty(du,"__esModule",{value:!0}),du.setStorageAt=r;const e=oe();async function r(n,{address:t,index:o,value:s}){await n.request({method:`${n.mode}_setStorageAt`,params:[t,typeof o=="number"?(0,e.numberToHex)(o):o,s]})}return du}var fu={},Pp;function n5(){if(Pp)return fu;Pp=1,Object.defineProperty(fu,"__esModule",{value:!0}),fu.snapshot=e;async function e(r){return await r.request({method:"evm_snapshot"})}return fu}var lu={},Ap;function o5(){if(Ap)return lu;Ap=1,Object.defineProperty(lu,"__esModule",{value:!0}),lu.stopImpersonatingAccount=e;async function e(r,{address:n}){await r.request({method:`${r.mode}_stopImpersonatingAccount`,params:[n]})}return lu}var Tp;function rv(){if(Tp)return kc;Tp=1,Object.defineProperty(kc,"__esModule",{value:!0}),kc.testActions=H;const e=R2(),r=B2(),n=O2(),t=C2(),o=x2(),s=q2(),a=M2(),i=k2(),c=H2(),d=F2(),f=N2(),l=$2(),m=z2(),y=L2(),h=U2(),b=D2(),E=G2(),g=V2(),v=W2(),P=K2(),u=Z2(),w=Y2(),_=J2(),p=X2(),S=Q2(),A=e5(),T=t5(),O=r5(),I=n5(),R=o5();function H({mode:F}){return x=>{const j=x.extend(()=>({mode:F}));return{dropTransaction:k=>(0,e.dropTransaction)(j,k),dumpState:()=>(0,r.dumpState)(j),getAutomine:()=>(0,n.getAutomine)(j),getTxpoolContent:()=>(0,t.getTxpoolContent)(j),getTxpoolStatus:()=>(0,o.getTxpoolStatus)(j),impersonateAccount:k=>(0,s.impersonateAccount)(j,k),increaseTime:k=>(0,a.increaseTime)(j,k),inspectTxpool:()=>(0,i.inspectTxpool)(j),loadState:k=>(0,c.loadState)(j,k),mine:k=>(0,d.mine)(j,k),removeBlockTimestampInterval:()=>(0,f.removeBlockTimestampInterval)(j),reset:k=>(0,l.reset)(j,k),revert:k=>(0,m.revert)(j,k),sendUnsignedTransaction:k=>(0,y.sendUnsignedTransaction)(j,k),setAutomine:k=>(0,h.setAutomine)(j,k),setBalance:k=>(0,b.setBalance)(j,k),setBlockGasLimit:k=>(0,E.setBlockGasLimit)(j,k),setBlockTimestampInterval:k=>(0,g.setBlockTimestampInterval)(j,k),setCode:k=>(0,v.setCode)(j,k),setCoinbase:k=>(0,P.setCoinbase)(j,k),setIntervalMining:k=>(0,u.setIntervalMining)(j,k),setLoggingEnabled:k=>(0,w.setLoggingEnabled)(j,k),setMinGasPrice:k=>(0,_.setMinGasPrice)(j,k),setNextBlockBaseFeePerGas:k=>(0,p.setNextBlockBaseFeePerGas)(j,k),setNextBlockTimestamp:k=>(0,S.setNextBlockTimestamp)(j,k),setNonce:k=>(0,A.setNonce)(j,k),setRpcUrl:k=>(0,T.setRpcUrl)(j,k),setStorageAt:k=>(0,O.setStorageAt)(j,k),snapshot:()=>(0,I.snapshot)(j),stopImpersonatingAccount:k=>(0,R.stopImpersonatingAccount)(j,k)}}}return kc}var Sp;function a5(){if(Sp)return Mc;Sp=1,Object.defineProperty(Mc,"__esModule",{value:!0}),Mc.createTestClient=n;const e=Nn(),r=rv();function n(t){const{key:o="test",name:s="Test Client",mode:a}=t;return(0,e.createClient)({...t,key:o,name:s,type:"testClient"}).extend(c=>({mode:a,...(0,r.testActions)({mode:a})(c)}))}return Mc}var bu={},mu={},hu={},Ip;function i5(){if(Ip)return hu;Ip=1,Object.defineProperty(hu,"__esModule",{value:!0}),hu.addChain=r;const e=oe();async function r(n,{chain:t}){const{id:o,name:s,nativeCurrency:a,rpcUrls:i,blockExplorers:c}=t;await n.request({method:"wallet_addEthereumChain",params:[{chainId:(0,e.numberToHex)(o),chainName:s,nativeCurrency:a,rpcUrls:i.default.http,blockExplorerUrls:c?Object.values(c).map(({url:d})=>d):void 0}]},{dedupe:!0,retryCount:0})}return hu}var yu={},Rp;function s5(){if(Rp)return yu;Rp=1,Object.defineProperty(yu,"__esModule",{value:!0}),yu.deployContract=n;const e=ma(),r=yd();function n(t,o){const{abi:s,args:a,bytecode:i,...c}=o,d=(0,e.encodeDeployData)({abi:s,args:a,bytecode:i});return(0,r.sendTransaction)(t,{...c,...c.authorizationList?{to:null}:{},data:d})}return yu}var pu={},Bp;function c5(){if(Bp)return pu;Bp=1,Object.defineProperty(pu,"__esModule",{value:!0}),pu.getAddresses=r;const e=et();async function r(n){var o;return((o=n.account)==null?void 0:o.type)==="local"?[n.account.address]:(await n.request({method:"eth_accounts"},{dedupe:!0})).map(s=>(0,e.checksumAddress)(s))}return pu}var gu={},Op;function u5(){if(Op)return gu;Op=1,Object.defineProperty(gu,"__esModule",{value:!0}),gu.getCapabilities=n;const e=Se(),r=oe();async function n(t,o={}){const{account:s=t.account,chainId:a}=o,i=s?(0,e.parseAccount)(s):void 0,c=a?[i==null?void 0:i.address,[(0,r.numberToHex)(a)]]:[i==null?void 0:i.address],d=await t.request({method:"wallet_getCapabilities",params:c}),f={};for(const[l,m]of Object.entries(d)){f[Number(l)]={};for(let[y,h]of Object.entries(m))y==="addSubAccount"&&(y="unstable_addSubAccount"),f[Number(l)][y]=h}return typeof a=="number"?f[a]:f}return gu}var _u={},Cp;function d5(){if(Cp)return _u;Cp=1,Object.defineProperty(_u,"__esModule",{value:!0}),_u.getPermissions=e;async function e(r){return await r.request({method:"wallet_getPermissions"},{dedupe:!0})}return _u}var vu={},xp;function nv(){if(xp)return vu;xp=1,Object.defineProperty(vu,"__esModule",{value:!0}),vu.prepareAuthorization=a;const e=Se(),r=or(),n=ht(),t=me(),o=Pr(),s=ad();async function a(i,c){var b;const{account:d=i.account,chainId:f,nonce:l}=c;if(!d)throw new r.AccountNotFoundError({docsPath:"/docs/eip7702/prepareAuthorization"});const m=(0,e.parseAccount)(d),y=(()=>{if(c.executor)return c.executor==="self"?c.executor:(0,e.parseAccount)(c.executor)})(),h={address:c.contractAddress??c.address,chainId:f,nonce:l};return typeof h.chainId>"u"&&(h.chainId=((b=i.chain)==null?void 0:b.id)??await(0,t.getAction)(i,o.getChainId,"getChainId")({})),typeof h.nonce>"u"&&(h.nonce=await(0,t.getAction)(i,s.getTransactionCount,"getTransactionCount")({address:m.address,blockTag:"pending"}),(y==="self"||y!=null&&y.address&&(0,n.isAddressEqual)(y.address,m.address))&&(h.nonce+=1)),h}return vu}var Eu={},qp;function f5(){if(qp)return Eu;qp=1,Object.defineProperty(Eu,"__esModule",{value:!0}),Eu.requestAddresses=r;const e=et();async function r(n){return(await n.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(o=>(0,e.getAddress)(o))}return Eu}var ju={},Mp;function l5(){if(Mp)return ju;Mp=1,Object.defineProperty(ju,"__esModule",{value:!0}),ju.requestPermissions=e;async function e(r,n){return r.request({method:"wallet_requestPermissions",params:[n]},{retryCount:0})}return ju}var wu={},kp;function b5(){if(kp)return wu;kp=1,Object.defineProperty(wu,"__esModule",{value:!0}),wu.sendCallsSync=t;const e=me(),r=Df(),n=Gf();async function t(o,s){const{chain:a=o.chain}=s,i=s.timeout??Math.max(((a==null?void 0:a.blockTime)??0)*3,5e3),c=await(0,e.getAction)(o,r.sendCalls,"sendCalls")(s);return await(0,e.getAction)(o,n.waitForCallsStatus,"waitForCallsStatus")({...s,id:c.id,timeout:i})}return wu}var Pu={},Hp;function m5(){if(Hp)return Pu;Hp=1,Object.defineProperty(Pu,"__esModule",{value:!0}),Pu.showCallsStatus=e;async function e(r,n){const{id:t}=n;await r.request({method:"wallet_showCallsStatus",params:[t]})}return Pu}var Au={},Fp;function h5(){if(Fp)return Au;Fp=1,Object.defineProperty(Au,"__esModule",{value:!0}),Au.signAuthorization=t;const e=Se(),r=or(),n=nv();async function t(o,s){const{account:a=o.account}=s;if(!a)throw new r.AccountNotFoundError({docsPath:"/docs/eip7702/signAuthorization"});const i=(0,e.parseAccount)(a);if(!i.signAuthorization)throw new r.AccountTypeNotSupportedError({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:i.type});const c=await(0,n.prepareAuthorization)(o,s);return i.signAuthorization(c)}return Au}var Tu={},Np;function y5(){if(Np)return Tu;Np=1,Object.defineProperty(Tu,"__esModule",{value:!0}),Tu.signMessage=t;const e=Se(),r=or(),n=oe();async function t(o,{account:s=o.account,message:a}){if(!s)throw new r.AccountNotFoundError({docsPath:"/docs/actions/wallet/signMessage"});const i=(0,e.parseAccount)(s);if(i.signMessage)return i.signMessage({message:a});const c=typeof a=="string"?(0,n.stringToHex)(a):a.raw instanceof Uint8Array?(0,n.toHex)(a.raw):a.raw;return o.request({method:"personal_sign",params:[c,i.address]},{retryCount:0})}return Tu}var Su={},$p;function p5(){if($p)return Su;$p=1,Object.defineProperty(Su,"__esModule",{value:!0}),Su.signTransaction=c;const e=Se(),r=or(),n=pa(),t=oe(),o=Bt(),s=me(),a=Ot(),i=Pr();async function c(d,f){var v,P,u,w;const{account:l=d.account,chain:m=d.chain,...y}=f;if(!l)throw new r.AccountNotFoundError({docsPath:"/docs/actions/wallet/signTransaction"});const h=(0,e.parseAccount)(l);(0,a.assertRequest)({account:h,...f});const b=await(0,s.getAction)(d,i.getChainId,"getChainId")({});m!==null&&(0,n.assertCurrentChain)({currentChainId:b,chain:m});const E=(m==null?void 0:m.formatters)||((v=d.chain)==null?void 0:v.formatters),g=((P=E==null?void 0:E.transactionRequest)==null?void 0:P.format)||o.formatTransactionRequest;return h.signTransaction?h.signTransaction({...y,account:h,chainId:b},{serializer:(w=(u=d.chain)==null?void 0:u.serializers)==null?void 0:w.transaction}):await d.request({method:"eth_signTransaction",params:[{...g({...y,account:h},"signTransaction"),chainId:(0,t.numberToHex)(b),from:h.address}]},{retryCount:0})}return Su}var Iu={},zp;function g5(){if(zp)return Iu;zp=1,Object.defineProperty(Iu,"__esModule",{value:!0}),Iu.signTypedData=t;const e=Se(),r=or(),n=vd();async function t(o,s){const{account:a=o.account,domain:i,message:c,primaryType:d}=s;if(!a)throw new r.AccountNotFoundError({docsPath:"/docs/actions/wallet/signTypedData"});const f=(0,e.parseAccount)(a),l={EIP712Domain:(0,n.getTypesForEIP712Domain)({domain:i}),...s.types};if((0,n.validateTypedData)({domain:i,message:c,primaryType:d,types:l}),f.signTypedData)return f.signTypedData({domain:i,message:c,primaryType:d,types:l});const m=(0,n.serializeTypedData)({domain:i,message:c,primaryType:d,types:l});return o.request({method:"eth_signTypedData_v4",params:[f.address,m]},{retryCount:0})}return Iu}var Ru={},Lp;function _5(){if(Lp)return Ru;Lp=1,Object.defineProperty(Ru,"__esModule",{value:!0}),Ru.switchChain=r;const e=oe();async function r(n,{id:t}){await n.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,e.numberToHex)(t)}]},{retryCount:0})}return Ru}var Bu={},Up;function v5(){if(Up)return Bu;Up=1,Object.defineProperty(Bu,"__esModule",{value:!0}),Bu.watchAsset=e;async function e(r,n){return await r.request({method:"wallet_watchAsset",params:n},{retryCount:0})}return Bu}var Dp;function ov(){if(Dp)return mu;Dp=1,Object.defineProperty(mu,"__esModule",{value:!0}),mu.walletActions=H;const e=Cf(),r=Pr(),n=ev(),t=i5(),o=s5(),s=c5(),a=r_(),i=u5(),c=d5(),d=nv(),f=da(),l=f5(),m=l5(),y=Df(),h=b5(),b=Uf(),E=hl(),g=yd(),v=X_(),P=m5(),u=h5(),w=y5(),_=p5(),p=g5(),S=_5(),A=Gf(),T=v5(),O=ga(),I=yl(),R=Nn();function H(F){return{addChain:x=>(0,t.addChain)(F,x),deployContract:x=>(0,o.deployContract)(F,x),fillTransaction:x=>(0,e.fillTransaction)(F,x),getAddresses:()=>(0,s.getAddresses)(F),getCallsStatus:x=>(0,a.getCallsStatus)(F,x),getCapabilities:x=>(0,i.getCapabilities)(F,x),getChainId:()=>(0,r.getChainId)(F),getPermissions:()=>(0,c.getPermissions)(F),prepareAuthorization:x=>(0,d.prepareAuthorization)(F,x),prepareTransactionRequest:x=>(0,f.prepareTransactionRequest)(F,x),requestAddresses:()=>(0,l.requestAddresses)(F),requestPermissions:x=>(0,m.requestPermissions)(F,x),sendCalls:x=>(0,y.sendCalls)(F,x),sendCallsSync:x=>(0,h.sendCallsSync)(F,x),sendRawTransaction:x=>(0,b.sendRawTransaction)(F,x),sendRawTransactionSync:x=>(0,E.sendRawTransactionSync)(F,x),sendTransaction:x=>(0,g.sendTransaction)(F,x),sendTransactionSync:x=>(0,v.sendTransactionSync)(F,x),showCallsStatus:x=>(0,P.showCallsStatus)(F,x),signAuthorization:x=>(0,u.signAuthorization)(F,x),signMessage:x=>(0,w.signMessage)(F,x),signTransaction:x=>(0,_.signTransaction)(F,x),signTypedData:x=>(0,p.signTypedData)(F,x),switchChain:x=>(0,S.switchChain)(F,x),waitForCallsStatus:x=>(0,A.waitForCallsStatus)(F,x),watchAsset:x=>(0,T.watchAsset)(F,x),writeContract:x=>(0,O.writeContract)(F,x),writeContractSync:x=>(0,I.writeContractSync)(F,x),token:{approve:(0,R.bindActionDecorators)(F,n.approve),approveSync:(0,R.bindActionDecorators)(F,n.approveSync),transfer:(0,R.bindActionDecorators)(F,n.transfer),transferSync:(0,R.bindActionDecorators)(F,n.transferSync)}}}return mu}var Gp;function E5(){if(Gp)return bu;Gp=1,Object.defineProperty(bu,"__esModule",{value:!0}),bu.createWalletClient=n;const e=Nn(),r=ov();function n(t){const{key:o="wallet",name:s="Wallet Client",transport:a}=t;return(0,e.createClient)({...t,key:o,name:s,transport:a,type:"walletClient"}).extend(r.walletActions)}return bu}var Ou={},Vp;function wa(){if(Vp)return Ou;Vp=1,Object.defineProperty(Ou,"__esModule",{value:!0}),Ou.createTransport=n;const e=m_(),r=n_();function n({key:t,methods:o,name:s,request:a,retryCount:i=3,retryDelay:c=150,timeout:d,type:f},l){const m=(0,r.uid)();return{config:{key:t,methods:o,name:s,request:a,retryCount:i,retryDelay:c,timeout:d,type:f},request:(0,e.buildRequest)(a,{methods:o,retryCount:i,retryDelay:c,uid:m}),value:l}}return Ou}var Cu={},Wp;function j5(){if(Wp)return Cu;Wp=1,Object.defineProperty(Cu,"__esModule",{value:!0}),Cu.custom=r;const e=wa();function r(n,t={}){const{key:o="custom",methods:s,name:a="Custom Provider",retryDelay:i}=t;return({retryCount:c})=>(0,e.createTransport)({key:o,methods:s,name:a,request:n.request.bind(n),retryCount:t.retryCount??c,retryDelay:i,type:"custom"})}return Cu}var In={},Kp;function w5(){if(Kp)return In;Kp=1,Object.defineProperty(In,"__esModule",{value:!0}),In.fallback=o,In.shouldThrow=s,In.rankTransports=a;const e=nr(),r=vr(),n=Lf(),t=wa();function o(i,c={}){const{key:d="fallback",name:f="Fallback",rank:l=!1,shouldThrow:m=s,retryCount:y,retryDelay:h}=c;return(({chain:b,pollingInterval:E=4e3,timeout:g,...v})=>{let P=i,u=()=>{};const w=(0,t.createTransport)({key:d,name:f,async request({method:_,params:p}){let S;const A=async(T=0)=>{const O=P[T]({...v,chain:b,retryCount:0,timeout:g});try{const I=await O.request({method:_,params:p});return u({method:_,params:p,response:I,transport:O,status:"success"}),I}catch(I){if(u({error:I,method:_,params:p,transport:O,status:"error"}),m(I)||T===P.length-1||(S??(S=P.slice(T+1).some(R=>{const{include:H,exclude:F}=R({chain:b}).config.methods||{};return H?H.includes(_):F?!F.includes(_):!0})),!S))throw I;return A(T+1)}};return A()},retryCount:y,retryDelay:h,type:"fallback"},{onResponse:_=>u=_,transports:P.map(_=>_({chain:b,retryCount:0}))});if(l){const _=typeof l=="object"?l:{};a({chain:b,interval:_.interval??E,onTransports:p=>P=p,ping:_.ping,sampleCount:_.sampleCount,timeout:_.timeout,transports:P,weights:_.weights})}return w})}function s(i){return!!("code"in i&&typeof i.code=="number"&&(i.code===r.TransactionRejectedRpcError.code||i.code===r.UserRejectedRequestError.code||i.code===r.WalletConnectSessionSettlementError.code||e.ExecutionRevertedError.nodeMessage.test(i.message)||i.code===5e3))}function a({chain:i,interval:c=4e3,onTransports:d,ping:f,sampleCount:l=10,timeout:m=1e3,transports:y,weights:h={}}){const{stability:b=.7,latency:E=.3}=h,g=[],v=async()=>{const P=await Promise.all(y.map(async _=>{const p=_({chain:i,retryCount:0,timeout:m}),S=Date.now();let A,T;try{await(f?f({transport:p}):p.request({method:"net_listening"})),T=1}catch{T=0}finally{A=Date.now()}return{latency:A-S,success:T}}));g.push(P),g.length>l&&g.shift();const u=Math.max(...g.map(_=>Math.max(..._.map(({latency:p})=>p)))),w=y.map((_,p)=>{const S=g.map(R=>R[p].latency),T=1-S.reduce((R,H)=>R+H,0)/S.length/u,O=g.map(R=>R[p].success),I=O.reduce((R,H)=>R+H,0)/O.length;return I===0?[0,p]:[E*T+b*I,p]}).sort((_,p)=>p[0]-_[0]);d(w.map(([,_])=>y[_])),await(0,n.wait)(c),v()};v()}return In}var xu={},Yo={},Zp;function pl(){if(Zp)return Yo;Zp=1,Object.defineProperty(Yo,"__esModule",{value:!0}),Yo.UrlRequiredError=void 0;const e=ue();class r extends e.BaseError{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}return Yo.UrlRequiredError=r,Yo}var Yp;function P5(){if(Yp)return xu;Yp=1,Object.defineProperty(xu,"__esModule",{value:!0}),xu.http=c;const e=Et(),r=pl(),n=Ff(),t=rl(),o=wa();let s=0;const a=new WeakMap;function i(d){if(!d)return"default";const f=a.get(d);if(f!==void 0)return f;const l=s++;return a.set(d,l),l}function c(d,f={}){const{batch:l,fetchFn:m,fetchOptions:y,key:h="http",maxResponseBodySize:b,methods:E,name:g="HTTP JSON-RPC",onFetchRequest:v,onFetchResponse:P,retryDelay:u,raw:w}=f;return({chain:_,retryCount:p,timeout:S})=>{const{batchSize:A=1e3,wait:T=0}=typeof l=="object"?l:{},O=f.retryCount??p,I=S??f.timeout??1e4,R=d||(_==null?void 0:_.rpcUrls.default.http[0]);if(!R)throw new r.UrlRequiredError;const H=(0,t.getHttpRpcClient)(R,{fetchFn:m,fetchOptions:y,maxResponseBodySize:b,onRequest:v,onResponse:P,timeout:I});return(0,o.createTransport)({key:h,methods:E,name:g,async request({method:F,params:x},j){const k={method:F,params:x},B=j!=null&&j.signal?{signal:j.signal}:void 0,{schedule:C}=(0,n.createBatchScheduler)({id:`${R}.${i(j==null?void 0:j.signal)}`,wait:T,shouldSplitBatch(z){return z.length>A},fn:z=>H.request({body:z,fetchOptions:B}),sort:(z,$)=>z.id-$.id}),q=async z=>l?C(z):[await H.request({body:z,fetchOptions:B})],[{error:M,result:N}]=await q(k);if(w)return{error:M,result:N};if(M)throw new e.RpcRequestError({body:k,error:M,url:R});return N},retryCount:O,retryDelay:u,timeout:I,type:"http"},{fetchOptions:y,url:R})}}return xu}var qu={},Jp;function A5(){if(Jp)return qu;Jp=1,Object.defineProperty(qu,"__esModule",{value:!0}),qu.webSocket=s;const e=Et(),r=pl(),n=S_(),t=nl(),o=wa();function s(a,i={}){const{keepAlive:c,key:d="webSocket",methods:f,name:l="WebSocket JSON-RPC",reconnect:m,retryDelay:y}=i;return({chain:h,retryCount:b,timeout:E})=>{var w;const g=i.retryCount??b,v=E??i.timeout??1e4,P=a||((w=h==null?void 0:h.rpcUrls.default.webSocket)==null?void 0:w[0]),u={keepAlive:c,reconnect:m};if(!P)throw new r.UrlRequiredError;return(0,o.createTransport)({key:d,methods:f,name:l,async request({method:_,params:p}){const S={method:_,params:p},A=await(0,t.getWebSocketRpcClient)(P,u),{error:T,result:O}=await A.requestAsync({body:S,timeout:v});if(T)throw new e.RpcRequestError({body:S,error:T,url:P});return O},retryCount:g,retryDelay:y,timeout:v,type:"webSocket"},{getSocket(){return(0,n.getSocket)(P)},getRpcClient(){return(0,t.getWebSocketRpcClient)(P,u)},async subscribe({params:_,onData:p,onError:S}){const A=await(0,t.getWebSocketRpcClient)(P,u),{result:T}=await new Promise((O,I)=>A.request({body:{method:"eth_subscribe",params:_},onError(R){I(R),S==null||S(R)},onResponse(R){if(R.error){I(R.error),S==null||S(R.error);return}if(typeof R.id=="number"){O(R);return}R.method==="eth_subscription"&&p(R.params)}}));return{subscriptionId:T,async unsubscribe(){return new Promise(O=>A.request({body:{method:"eth_unsubscribe",params:[T]},onResponse:O}))}}}})}}return qu}var Jo={},Xp;function T5(){if(Xp)return Jo;Xp=1,Object.defineProperty(Jo,"__esModule",{value:!0}),Jo.ProviderRpcError=void 0;class e extends Error{constructor(n,t){super(t),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=n,this.details=t}}return Jo.ProviderRpcError=e,Jo}var Mu={},Qp;function S5(){if(Qp)return Mu;Qp=1,Object.defineProperty(Mu,"__esModule",{value:!0}),Mu.decodeDeployData=t;const e=Be(),r=gr(),n="/docs/contract/decodeDeployData";function t(o){const{abi:s,bytecode:a,data:i}=o;if(i===a)return{bytecode:a};const c=s.find(f=>"type"in f&&f.type==="constructor");if(!c)throw new e.AbiConstructorNotFoundError({docsPath:n});if(!("inputs"in c))throw new e.AbiConstructorParamsNotFoundError({docsPath:n});if(!c.inputs||c.inputs.length===0)throw new e.AbiConstructorParamsNotFoundError({docsPath:n});return{args:(0,r.decodeAbiParameters)(c.inputs,`0x${i.replace(a,"")}`),bytecode:a}}return Mu}var ku={},eg;function I5(){if(eg)return ku;eg=1,Object.defineProperty(ku,"__esModule",{value:!0}),ku.fromBlobs=t;const e=ea(),r=Pe(),n=oe();function t(o){const s=o.to??(typeof o.blobs[0]=="string"?"hex":"bytes"),a=typeof o.blobs[0]=="string"?o.blobs.map(l=>(0,r.hexToBytes)(l)):o.blobs,i=a.reduce((l,m)=>l+m.length,0),c=(0,e.createCursor)(new Uint8Array(i));let d=!0;for(const l of a){const m=(0,e.createCursor)(l);for(;d&&m.position<l.length;){m.incrementPosition(1);let y=31;l.length-m.position<31&&(y=l.length-m.position);for(const h in Array.from({length:y})){const b=m.readByte();if(b===128&&!m.inspectBytes(m.remaining).includes(128)){d=!1;break}c.pushByte(b)}}}const f=c.bytes.slice(0,c.position);return s==="hex"?(0,n.bytesToHex)(f):f}return ku}var Hu={},tg;function R5(){if(tg)return Hu;tg=1,Object.defineProperty(Hu,"__esModule",{value:!0}),Hu.sidecarsToVersionedHashes=r;const e=Bf();function r(n){const{sidecars:t,version:o}=n,s=n.to??(typeof t[0].blob=="string"?"hex":"bytes"),a=[];for(const{commitment:i}of t)a.push((0,e.commitmentToVersionedHash)({commitment:i,to:s,version:o}));return a}return Hu}var Fu={},rg;function B5(){if(rg)return Fu;rg=1,Object.defineProperty(Fu,"__esModule",{value:!0}),Fu.toCoinType=n;const e=Zf(),r=2147483648;function n(t){if(t===1)return 60n;if(t>=r||t<0)throw new e.EnsInvalidChainIdError({chainId:t});return BigInt((2147483648|t)>>>0)}return Fu}var Nu={},ng;function av(){if(ng)return Nu;ng=1,Object.defineProperty(Nu,"__esModule",{value:!0}),Nu.defineKzg=e;function e({blobToKzgCommitment:r,computeBlobKzgProof:n}){return{blobToKzgCommitment:r,computeBlobKzgProof:n}}return Nu}var $u={},og;function O5(){if(og)return $u;og=1,Object.defineProperty($u,"__esModule",{value:!0}),$u.setupKzg=r;const e=av();function r(n,t){try{n.loadTrustedSetup(t)}catch(o){const s=o;if(!s.message.includes("trusted setup is already loaded"))throw s}return(0,e.defineKzg)(n)}return $u}var zu={},ag;function C5(){if(ag)return zu;ag=1,Object.defineProperty(zu,"__esModule",{value:!0}),zu.compactSignatureToSignature=n;const e=Pe(),r=oe();function n({r:t,yParityAndS:o}){const s=(0,e.hexToBytes)(o),a=s[0]&128?1:0,i=s;return a===1&&(i[0]&=127),{r:t,s:(0,r.bytesToHex)(i),yParity:a}}return zu}var Lu={},ig;function x5(){if(ig)return Lu;ig=1,Object.defineProperty(Lu,"__esModule",{value:!0}),Lu.parseCompactSignature=n;const e=tn(),r=oe();function n(t){const{r:o,s}=e.secp256k1.Signature.fromCompact(t.slice(2,130));return{r:(0,r.numberToHex)(o,{size:32}),yParityAndS:(0,r.numberToHex)(s,{size:32})}}return Lu}var Uu={},sg;function q5(){if(sg)return Uu;sg=1,Object.defineProperty(Uu,"__esModule",{value:!0}),Uu.parseSignature=n;const e=tn(),r=oe();function n(t){const{r:o,s}=e.secp256k1.Signature.fromCompact(t.slice(2,130)),a=+`0x${t.slice(130)}`,[i,c]=(()=>{if(a===0||a===1)return[void 0,a];if(a===27)return[BigInt(a),0];if(a===28)return[BigInt(a),1];throw new Error("Invalid yParityOrV value")})();return typeof i<"u"?{r:(0,r.numberToHex)(o,{size:32}),s:(0,r.numberToHex)(s,{size:32}),v:i,yParity:c}:{r:(0,r.numberToHex)(o,{size:32}),s:(0,r.numberToHex)(s,{size:32}),yParity:c}}return Uu}var Du={},cg;function M5(){if(cg)return Du;cg=1,Object.defineProperty(Du,"__esModule",{value:!0}),Du.recoverTransactionAddress=o;const e=st(),r=ll(),n=_d(),t=jr();async function o(s){const{serializedTransaction:a,signature:i}=s,c=(0,r.parseTransaction)(a),d=i??{r:c.r,s:c.s,v:c.v,yParity:c.yParity},f=(0,n.serializeTransaction)({...c,r:void 0,s:void 0,v:void 0,yParity:void 0,sidecars:void 0});return await(0,t.recoverAddress)({hash:(0,e.keccak256)(f),signature:d})}return Du}var Gu={},ug;function k5(){if(ug)return Gu;ug=1,Object.defineProperty(Gu,"__esModule",{value:!0}),Gu.serializeCompactSignature=n;const e=tn(),r=xe();function n({r:t,yParityAndS:o}){return`0x${new e.secp256k1.Signature((0,r.hexToBigInt)(t),(0,r.hexToBigInt)(o)).toCompactHex()}`}return Gu}var Vu={},dg;function H5(){if(dg)return Vu;dg=1,Object.defineProperty(Vu,"__esModule",{value:!0}),Vu.signatureToCompactSignature=n;const e=Pe(),r=oe();function n(t){const{r:o,s,v:a,yParity:i}=t,c=Number(i??a-27n);let d=s;if(c===1){const f=(0,e.hexToBytes)(s);f[0]|=128,d=(0,r.bytesToHex)(f)}return{r:o,yParityAndS:d}}return Vu}var fg;function F5(){return fg||(fg=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.maxInt8=e.universalSignatureValidatorByteCode=e.erc6492SignatureValidatorByteCode=e.deploylessCallViaFactoryBytecode=e.deploylessCallViaBytecodeBytecode=e.zeroHash=e.zeroAddress=e.ethAddress=e.multicall3Abi=e.universalSignatureValidatorAbi=e.erc6492SignatureValidatorAbi=e.erc4626Abi=e.erc1155Abi=e.erc721Abi=e.erc20Abi_bytes32=e.erc20Abi=e.webSocket=e.http=e.shouldThrow=e.fallback=e.custom=e.createTransport=e.walletActions=e.testActions=e.publicActions=e.createWalletClient=e.createTestClient=e.createPublicClient=e.rpcSchema=e.createClient=e.WaitForCallsStatusTimeoutError=e.getContract=e.UnknownTypeError=e.UnknownSignatureError=e.SolidityProtectedKeywordError=e.parseAbiParameters=e.parseAbiParameter=e.parseAbiItem=e.parseAbi=e.InvalidStructSignatureError=e.InvalidSignatureError=e.InvalidParenthesisError=e.InvalidParameterError=e.InvalidModifierError=e.InvalidFunctionModifierError=e.InvalidAbiTypeParameterError=e.InvalidAbiParametersError=e.InvalidAbiParameterError=e.InvalidAbiItemError=e.CircularReferenceError=void 0,e.maxUint152=e.maxUint144=e.maxUint136=e.maxUint128=e.maxUint120=e.maxUint112=e.maxUint104=e.maxUint96=e.maxUint88=e.maxUint80=e.maxUint72=e.maxUint64=e.maxUint56=e.maxUint48=e.maxUint40=e.maxUint32=e.maxUint24=e.maxUint16=e.maxUint8=e.maxInt256=e.maxInt248=e.maxInt240=e.maxInt232=e.maxInt224=e.maxInt216=e.maxInt208=e.maxInt200=e.maxInt192=e.maxInt184=e.maxInt176=e.maxInt168=e.maxInt160=e.maxInt152=e.maxInt144=e.maxInt136=e.maxInt128=e.maxInt120=e.maxInt112=e.maxInt104=e.maxInt96=e.maxInt88=e.maxInt80=e.maxInt72=e.maxInt64=e.maxInt56=e.maxInt48=e.maxInt40=e.maxInt32=e.maxInt24=e.maxInt16=void 0,e.AbiConstructorNotFoundError=e.weiUnits=e.gweiUnits=e.etherUnits=e.presignMessagePrefix=e.minInt256=e.minInt248=e.minInt240=e.minInt232=e.minInt224=e.minInt216=e.minInt208=e.minInt200=e.minInt192=e.minInt184=e.minInt176=e.minInt168=e.minInt160=e.minInt152=e.minInt144=e.minInt136=e.minInt128=e.minInt120=e.minInt112=e.minInt104=e.minInt96=e.minInt88=e.minInt80=e.minInt72=e.minInt64=e.minInt56=e.minInt48=e.minInt40=e.minInt32=e.minInt24=e.minInt16=e.minInt8=e.maxUint256=e.maxUint248=e.maxUint240=e.maxUint232=e.maxUint224=e.maxUint216=e.maxUint208=e.maxUint200=e.maxUint192=e.maxUint184=e.maxUint176=e.maxUint168=e.maxUint160=void 0,e.EnsAvatarUnsupportedNamespaceError=e.EnsAvatarInvalidNftUriError=e.SizeOverflowError=e.RlpDepthLimitExceededError=e.InvalidHexValueError=e.InvalidHexBooleanError=e.InvalidBytesBooleanError=e.IntegerOutOfRangeError=e.SliceOffsetOutOfBoundsError=e.SizeExceedsPaddingSizeError=e.RawContractError=e.CounterfactualDeploymentFailedError=e.ContractFunctionZeroDataError=e.ContractFunctionRevertedError=e.ContractFunctionExecutionError=e.CallExecutionError=e.InvalidChainIdError=e.ClientChainNotConfiguredError=e.ChainNotFoundError=e.ChainMismatchError=e.ChainDoesNotSupportContract=e.BundleFailedError=e.BlockNotFoundError=e.setErrorConfig=e.BaseError=e.InvalidAddressError=e.UnsupportedPackedAbiType=e.InvalidDefinitionTypeError=e.InvalidArrayError=e.InvalidAbiEncodingTypeError=e.InvalidAbiDecodingTypeError=e.DecodeLogTopicsMismatch=e.DecodeLogDataMismatch=e.BytesSizeMismatchError=e.AbiFunctionSignatureNotFoundError=e.AbiFunctionOutputsNotFoundError=e.AbiFunctionNotFoundError=e.AbiEventSignatureNotFoundError=e.AbiEventSignatureEmptyTopicsError=e.AbiEventNotFoundError=e.AbiErrorSignatureNotFoundError=e.AbiErrorNotFoundError=e.AbiErrorInputsNotFoundError=e.AbiEncodingLengthMismatchError=e.AbiEncodingBytesSizeMismatchError=e.AbiEncodingArrayLengthMismatchError=e.AbiDecodingZeroDataError=e.AbiDecodingDataSizeTooSmallError=e.AbiDecodingDataSizeInvalidError=e.AbiConstructorParamsNotFoundError=void 0,e.UnsupportedChainIdError=e.UnknownRpcError=e.UnknownBundleIdError=e.UnauthorizedProviderError=e.TransactionRejectedRpcError=e.SwitchChainError=e.RpcError=e.ResourceUnavailableRpcError=e.ResourceNotFoundRpcError=e.ProviderRpcError=e.ProviderDisconnectedError=e.ParseRpcError=e.MethodNotSupportedRpcError=e.MethodNotFoundRpcError=e.LimitExceededRpcError=e.JsonRpcVersionUnsupportedError=e.InvalidRequestRpcError=e.InvalidParamsRpcError=e.InvalidInputRpcError=e.InternalRpcError=e.DuplicateIdError=e.ChainDisconnectedError=e.BundleTooLargeError=e.AtomicReadyWalletRejectedUpgradeError=e.AtomicityNotSupportedError=e.WebSocketRequestError=e.TimeoutError=e.SocketClosedError=e.RpcRequestError=e.ResponseBodyTooLargeError=e.HttpRequestError=e.UnknownNodeError=e.TransactionTypeNotSupportedError=e.TipAboveFeeCapError=e.NonceTooLowError=e.NonceTooHighError=e.NonceMaxValueError=e.IntrinsicGasTooLowError=e.IntrinsicGasTooHighError=e.InsufficientFundsError=e.FeeCapTooLowError=e.FeeCapTooHighError=e.ExecutionRevertedError=e.FilterTypeNotSupportedError=e.MaxFeePerGasTooLowError=e.Eip1559FeesNotSupportedError=e.BaseFeeScalarError=e.EstimateGasExecutionError=e.EnsInvalidChainIdError=e.EnsAvatarUriResolutionError=void 0,e.fromBlobs=e.commitmentToVersionedHash=e.commitmentsToVersionedHashes=e.blobsToProofs=e.blobsToCommitments=e.isAddressEqual=e.isAddress=e.getCreateAddress=e.getCreate2Address=e.getContractAddress=e.getAddress=e.checksumAddress=e.prepareEncodeFunctionData=e.parseEventLogs=e.getAbiItem=e.encodePacked=e.encodeFunctionResult=e.encodeFunctionData=e.encodeEventTopics=e.encodeErrorResult=e.encodeDeployData=e.encodeAbiParameters=e.decodeFunctionResult=e.decodeFunctionData=e.decodeEventLog=e.decodeErrorResult=e.decodeDeployData=e.decodeAbiParameters=e.EIP1193ProviderRpcError=e.InvalidDecimalNumberError=e.InvalidStructTypeError=e.InvalidPrimaryTypeError=e.InvalidDomainError=e.UrlRequiredError=e.WaitForTransactionReceiptTimeoutError=e.TransactionReceiptNotFoundError=e.TransactionNotFoundError=e.TransactionExecutionError=e.InvalidYParityError=e.InvalidStorageKeySizeError=e.InvalidSerializedTransactionTypeError=e.InvalidSerializedTransactionError=e.InvalidSerializableTransactionError=e.InvalidLegacyVError=e.FeeConflictError=e.StateAssignmentConflictError=e.AccountStateConflictError=e.UserRejectedRequestError=e.UnsupportedProviderMethodError=e.UnsupportedNonOptionalCapabilityError=void 0,e.hexToRlp=e.bytesToRlp=e.toHex=e.stringToHex=e.numberToHex=e.bytesToHex=e.boolToHex=e.toBytes=e.stringToBytes=e.numberToBytes=e.hexToBytes=e.boolToBytes=e.fromRlp=e.hexToString=e.hexToNumber=e.hexToBool=e.hexToBigInt=e.fromHex=e.fromBytes=e.bytesToString=e.bytesToNumber=e.bytesToBool=e.bytesToBigInt=e.trim=e.sliceHex=e.sliceBytes=e.slice=e.size=e.padHex=e.padBytes=e.pad=e.isHex=e.isBytes=e.concatHex=e.concatBytes=e.concat=e.getChainContractAddress=e.extractChain=e.extendSchema=e.defineChain=e.assertCurrentChain=e.ccipReadTunnel=e.offchainLookupSignature=e.offchainLookupAbiItem=e.offchainLookup=e.ccipFetch=e.ccipRequest=e.toBlobs=e.toBlobSidecars=e.sidecarsToVersionedHashes=void 0,e.parseSignature=e.hexToSignature=e.parseErc8010Signature=e.parseErc6492Signature=e.parseCompactSignature=e.hexToCompactSignature=e.isErc8010Signature=e.isErc6492Signature=e.hashTypedData=e.hashStruct=e.hashDomain=e.hashMessage=e.compactSignatureToSignature=e.withTimeout=e.withRetry=e.withCache=e.nonceManager=e.createNonceManager=e.setupKzg=e.defineKzg=e.getFunctionSignature=e.toFunctionSignature=e.getFunctionSelector=e.toFunctionSelector=e.toFunctionHash=e.getEventSignature=e.toEventSignature=e.getEventSelector=e.toEventSelector=e.toEventHash=e.sha256=e.ripemd160=e.keccak256=e.isHash=e.rpcTransactionType=e.formatTransactionRequest=e.defineTransactionRequest=e.formatTransactionReceipt=e.defineTransactionReceipt=e.transactionType=e.formatTransaction=e.defineTransaction=e.formatLog=e.formatBlock=e.defineBlock=e.getContractError=e.toCoinType=e.namehash=e.labelhash=e.toRlp=void 0,e.parseUnits=e.parseGwei=e.parseEther=e.formatUnits=e.formatGwei=e.formatEther=e.validateTypedData=e.serializeTypedData=e.getTypesForEIP712Domain=e.domainSeparator=e.serializeTransaction=e.serializeAccessList=e.parseTransaction=e.getTransactionType=e.getSerializedTransactionType=e.assertTransactionLegacy=e.assertTransactionEIP2930=e.assertTransactionEIP1559=e.assertRequest=e.stringify=e.verifyTypedData=e.verifyMessage=e.verifyHash=e.toPrefixedMessage=e.signatureToCompactSignature=e.serializeSignature=e.signatureToHex=e.serializeErc8010Signature=e.serializeErc6492Signature=e.serializeCompactSignature=e.compactSignatureToHex=e.recoverTypedDataAddress=e.recoverTransactionAddress=e.recoverPublicKey=e.recoverMessageAddress=e.recoverAddress=void 0;var r=hr();Object.defineProperty(e,"CircularReferenceError",{enumerable:!0,get:function(){return r.CircularReferenceError}}),Object.defineProperty(e,"InvalidAbiItemError",{enumerable:!0,get:function(){return r.InvalidAbiItemError}}),Object.defineProperty(e,"InvalidAbiParameterError",{enumerable:!0,get:function(){return r.InvalidAbiParameterError}}),Object.defineProperty(e,"InvalidAbiParametersError",{enumerable:!0,get:function(){return r.InvalidAbiParametersError}}),Object.defineProperty(e,"InvalidAbiTypeParameterError",{enumerable:!0,get:function(){return r.InvalidAbiTypeParameterError}}),Object.defineProperty(e,"InvalidFunctionModifierError",{enumerable:!0,get:function(){return r.InvalidFunctionModifierError}}),Object.defineProperty(e,"InvalidModifierError",{enumerable:!0,get:function(){return r.InvalidModifierError}}),Object.defineProperty(e,"InvalidParameterError",{enumerable:!0,get:function(){return r.InvalidParameterError}}),Object.defineProperty(e,"InvalidParenthesisError",{enumerable:!0,get:function(){return r.InvalidParenthesisError}}),Object.defineProperty(e,"InvalidSignatureError",{enumerable:!0,get:function(){return r.InvalidSignatureError}}),Object.defineProperty(e,"InvalidStructSignatureError",{enumerable:!0,get:function(){return r.InvalidStructSignatureError}}),Object.defineProperty(e,"parseAbi",{enumerable:!0,get:function(){return r.parseAbi}}),Object.defineProperty(e,"parseAbiItem",{enumerable:!0,get:function(){return r.parseAbiItem}}),Object.defineProperty(e,"parseAbiParameter",{enumerable:!0,get:function(){return r.parseAbiParameter}}),Object.defineProperty(e,"parseAbiParameters",{enumerable:!0,get:function(){return r.parseAbiParameters}}),Object.defineProperty(e,"SolidityProtectedKeywordError",{enumerable:!0,get:function(){return r.SolidityProtectedKeywordError}}),Object.defineProperty(e,"UnknownSignatureError",{enumerable:!0,get:function(){return r.UnknownSignatureError}}),Object.defineProperty(e,"UnknownTypeError",{enumerable:!0,get:function(){return r.UnknownTypeError}});var n=S6();Object.defineProperty(e,"getContract",{enumerable:!0,get:function(){return n.getContract}});var t=Gf();Object.defineProperty(e,"WaitForCallsStatusTimeoutError",{enumerable:!0,get:function(){return t.WaitForCallsStatusTimeoutError}});var o=Nn();Object.defineProperty(e,"createClient",{enumerable:!0,get:function(){return o.createClient}}),Object.defineProperty(e,"rpcSchema",{enumerable:!0,get:function(){return o.rpcSchema}});var s=I2();Object.defineProperty(e,"createPublicClient",{enumerable:!0,get:function(){return s.createPublicClient}});var a=a5();Object.defineProperty(e,"createTestClient",{enumerable:!0,get:function(){return a.createTestClient}});var i=E5();Object.defineProperty(e,"createWalletClient",{enumerable:!0,get:function(){return i.createWalletClient}});var c=tv();Object.defineProperty(e,"publicActions",{enumerable:!0,get:function(){return c.publicActions}});var d=rv();Object.defineProperty(e,"testActions",{enumerable:!0,get:function(){return d.testActions}});var f=ov();Object.defineProperty(e,"walletActions",{enumerable:!0,get:function(){return f.walletActions}});var l=wa();Object.defineProperty(e,"createTransport",{enumerable:!0,get:function(){return l.createTransport}});var m=j5();Object.defineProperty(e,"custom",{enumerable:!0,get:function(){return m.custom}});var y=w5();Object.defineProperty(e,"fallback",{enumerable:!0,get:function(){return y.fallback}}),Object.defineProperty(e,"shouldThrow",{enumerable:!0,get:function(){return y.shouldThrow}});var h=P5();Object.defineProperty(e,"http",{enumerable:!0,get:function(){return h.http}});var b=A5();Object.defineProperty(e,"webSocket",{enumerable:!0,get:function(){return b.webSocket}});var E=ze();Object.defineProperty(e,"erc20Abi",{enumerable:!0,get:function(){return E.erc20Abi}}),Object.defineProperty(e,"erc20Abi_bytes32",{enumerable:!0,get:function(){return E.erc20Abi_bytes32}}),Object.defineProperty(e,"erc721Abi",{enumerable:!0,get:function(){return E.erc721Abi}}),Object.defineProperty(e,"erc1155Abi",{enumerable:!0,get:function(){return E.erc1155Abi}}),Object.defineProperty(e,"erc4626Abi",{enumerable:!0,get:function(){return E.erc4626Abi}}),Object.defineProperty(e,"erc6492SignatureValidatorAbi",{enumerable:!0,get:function(){return E.erc6492SignatureValidatorAbi}}),Object.defineProperty(e,"universalSignatureValidatorAbi",{enumerable:!0,get:function(){return E.erc6492SignatureValidatorAbi}}),Object.defineProperty(e,"multicall3Abi",{enumerable:!0,get:function(){return E.multicall3Abi}});var g=W_();Object.defineProperty(e,"ethAddress",{enumerable:!0,get:function(){return g.ethAddress}}),Object.defineProperty(e,"zeroAddress",{enumerable:!0,get:function(){return g.zeroAddress}});var v=ol();Object.defineProperty(e,"zeroHash",{enumerable:!0,get:function(){return v.zeroHash}});var P=la();Object.defineProperty(e,"deploylessCallViaBytecodeBytecode",{enumerable:!0,get:function(){return P.deploylessCallViaBytecodeBytecode}}),Object.defineProperty(e,"deploylessCallViaFactoryBytecode",{enumerable:!0,get:function(){return P.deploylessCallViaFactoryBytecode}}),Object.defineProperty(e,"erc6492SignatureValidatorByteCode",{enumerable:!0,get:function(){return P.erc6492SignatureValidatorByteCode}}),Object.defineProperty(e,"universalSignatureValidatorByteCode",{enumerable:!0,get:function(){return P.erc6492SignatureValidatorByteCode}});var u=Sf();Object.defineProperty(e,"maxInt8",{enumerable:!0,get:function(){return u.maxInt8}}),Object.defineProperty(e,"maxInt16",{enumerable:!0,get:function(){return u.maxInt16}}),Object.defineProperty(e,"maxInt24",{enumerable:!0,get:function(){return u.maxInt24}}),Object.defineProperty(e,"maxInt32",{enumerable:!0,get:function(){return u.maxInt32}}),Object.defineProperty(e,"maxInt40",{enumerable:!0,get:function(){return u.maxInt40}}),Object.defineProperty(e,"maxInt48",{enumerable:!0,get:function(){return u.maxInt48}}),Object.defineProperty(e,"maxInt56",{enumerable:!0,get:function(){return u.maxInt56}}),Object.defineProperty(e,"maxInt64",{enumerable:!0,get:function(){return u.maxInt64}}),Object.defineProperty(e,"maxInt72",{enumerable:!0,get:function(){return u.maxInt72}}),Object.defineProperty(e,"maxInt80",{enumerable:!0,get:function(){return u.maxInt80}}),Object.defineProperty(e,"maxInt88",{enumerable:!0,get:function(){return u.maxInt88}}),Object.defineProperty(e,"maxInt96",{enumerable:!0,get:function(){return u.maxInt96}}),Object.defineProperty(e,"maxInt104",{enumerable:!0,get:function(){return u.maxInt104}}),Object.defineProperty(e,"maxInt112",{enumerable:!0,get:function(){return u.maxInt112}}),Object.defineProperty(e,"maxInt120",{enumerable:!0,get:function(){return u.maxInt120}}),Object.defineProperty(e,"maxInt128",{enumerable:!0,get:function(){return u.maxInt128}}),Object.defineProperty(e,"maxInt136",{enumerable:!0,get:function(){return u.maxInt136}}),Object.defineProperty(e,"maxInt144",{enumerable:!0,get:function(){return u.maxInt144}}),Object.defineProperty(e,"maxInt152",{enumerable:!0,get:function(){return u.maxInt152}}),Object.defineProperty(e,"maxInt160",{enumerable:!0,get:function(){return u.maxInt160}}),Object.defineProperty(e,"maxInt168",{enumerable:!0,get:function(){return u.maxInt168}}),Object.defineProperty(e,"maxInt176",{enumerable:!0,get:function(){return u.maxInt176}}),Object.defineProperty(e,"maxInt184",{enumerable:!0,get:function(){return u.maxInt184}}),Object.defineProperty(e,"maxInt192",{enumerable:!0,get:function(){return u.maxInt192}}),Object.defineProperty(e,"maxInt200",{enumerable:!0,get:function(){return u.maxInt200}}),Object.defineProperty(e,"maxInt208",{enumerable:!0,get:function(){return u.maxInt208}}),Object.defineProperty(e,"maxInt216",{enumerable:!0,get:function(){return u.maxInt216}}),Object.defineProperty(e,"maxInt224",{enumerable:!0,get:function(){return u.maxInt224}}),Object.defineProperty(e,"maxInt232",{enumerable:!0,get:function(){return u.maxInt232}}),Object.defineProperty(e,"maxInt240",{enumerable:!0,get:function(){return u.maxInt240}}),Object.defineProperty(e,"maxInt248",{enumerable:!0,get:function(){return u.maxInt248}}),Object.defineProperty(e,"maxInt256",{enumerable:!0,get:function(){return u.maxInt256}}),Object.defineProperty(e,"maxUint8",{enumerable:!0,get:function(){return u.maxUint8}}),Object.defineProperty(e,"maxUint16",{enumerable:!0,get:function(){return u.maxUint16}}),Object.defineProperty(e,"maxUint24",{enumerable:!0,get:function(){return u.maxUint24}}),Object.defineProperty(e,"maxUint32",{enumerable:!0,get:function(){return u.maxUint32}}),Object.defineProperty(e,"maxUint40",{enumerable:!0,get:function(){return u.maxUint40}}),Object.defineProperty(e,"maxUint48",{enumerable:!0,get:function(){return u.maxUint48}}),Object.defineProperty(e,"maxUint56",{enumerable:!0,get:function(){return u.maxUint56}}),Object.defineProperty(e,"maxUint64",{enumerable:!0,get:function(){return u.maxUint64}}),Object.defineProperty(e,"maxUint72",{enumerable:!0,get:function(){return u.maxUint72}}),Object.defineProperty(e,"maxUint80",{enumerable:!0,get:function(){return u.maxUint80}}),Object.defineProperty(e,"maxUint88",{enumerable:!0,get:function(){return u.maxUint88}}),Object.defineProperty(e,"maxUint96",{enumerable:!0,get:function(){return u.maxUint96}}),Object.defineProperty(e,"maxUint104",{enumerable:!0,get:function(){return u.maxUint104}}),Object.defineProperty(e,"maxUint112",{enumerable:!0,get:function(){return u.maxUint112}}),Object.defineProperty(e,"maxUint120",{enumerable:!0,get:function(){return u.maxUint120}}),Object.defineProperty(e,"maxUint128",{enumerable:!0,get:function(){return u.maxUint128}}),Object.defineProperty(e,"maxUint136",{enumerable:!0,get:function(){return u.maxUint136}}),Object.defineProperty(e,"maxUint144",{enumerable:!0,get:function(){return u.maxUint144}}),Object.defineProperty(e,"maxUint152",{enumerable:!0,get:function(){return u.maxUint152}}),Object.defineProperty(e,"maxUint160",{enumerable:!0,get:function(){return u.maxUint160}}),Object.defineProperty(e,"maxUint168",{enumerable:!0,get:function(){return u.maxUint168}}),Object.defineProperty(e,"maxUint176",{enumerable:!0,get:function(){return u.maxUint176}}),Object.defineProperty(e,"maxUint184",{enumerable:!0,get:function(){return u.maxUint184}}),Object.defineProperty(e,"maxUint192",{enumerable:!0,get:function(){return u.maxUint192}}),Object.defineProperty(e,"maxUint200",{enumerable:!0,get:function(){return u.maxUint200}}),Object.defineProperty(e,"maxUint208",{enumerable:!0,get:function(){return u.maxUint208}}),Object.defineProperty(e,"maxUint216",{enumerable:!0,get:function(){return u.maxUint216}}),Object.defineProperty(e,"maxUint224",{enumerable:!0,get:function(){return u.maxUint224}}),Object.defineProperty(e,"maxUint232",{enumerable:!0,get:function(){return u.maxUint232}}),Object.defineProperty(e,"maxUint240",{enumerable:!0,get:function(){return u.maxUint240}}),Object.defineProperty(e,"maxUint248",{enumerable:!0,get:function(){return u.maxUint248}}),Object.defineProperty(e,"maxUint256",{enumerable:!0,get:function(){return u.maxUint256}}),Object.defineProperty(e,"minInt8",{enumerable:!0,get:function(){return u.minInt8}}),Object.defineProperty(e,"minInt16",{enumerable:!0,get:function(){return u.minInt16}}),Object.defineProperty(e,"minInt24",{enumerable:!0,get:function(){return u.minInt24}}),Object.defineProperty(e,"minInt32",{enumerable:!0,get:function(){return u.minInt32}}),Object.defineProperty(e,"minInt40",{enumerable:!0,get:function(){return u.minInt40}}),Object.defineProperty(e,"minInt48",{enumerable:!0,get:function(){return u.minInt48}}),Object.defineProperty(e,"minInt56",{enumerable:!0,get:function(){return u.minInt56}}),Object.defineProperty(e,"minInt64",{enumerable:!0,get:function(){return u.minInt64}}),Object.defineProperty(e,"minInt72",{enumerable:!0,get:function(){return u.minInt72}}),Object.defineProperty(e,"minInt80",{enumerable:!0,get:function(){return u.minInt80}}),Object.defineProperty(e,"minInt88",{enumerable:!0,get:function(){return u.minInt88}}),Object.defineProperty(e,"minInt96",{enumerable:!0,get:function(){return u.minInt96}}),Object.defineProperty(e,"minInt104",{enumerable:!0,get:function(){return u.minInt104}}),Object.defineProperty(e,"minInt112",{enumerable:!0,get:function(){return u.minInt112}}),Object.defineProperty(e,"minInt120",{enumerable:!0,get:function(){return u.minInt120}}),Object.defineProperty(e,"minInt128",{enumerable:!0,get:function(){return u.minInt128}}),Object.defineProperty(e,"minInt136",{enumerable:!0,get:function(){return u.minInt136}}),Object.defineProperty(e,"minInt144",{enumerable:!0,get:function(){return u.minInt144}}),Object.defineProperty(e,"minInt152",{enumerable:!0,get:function(){return u.minInt152}}),Object.defineProperty(e,"minInt160",{enumerable:!0,get:function(){return u.minInt160}}),Object.defineProperty(e,"minInt168",{enumerable:!0,get:function(){return u.minInt168}}),Object.defineProperty(e,"minInt176",{enumerable:!0,get:function(){return u.minInt176}}),Object.defineProperty(e,"minInt184",{enumerable:!0,get:function(){return u.minInt184}}),Object.defineProperty(e,"minInt192",{enumerable:!0,get:function(){return u.minInt192}}),Object.defineProperty(e,"minInt200",{enumerable:!0,get:function(){return u.minInt200}}),Object.defineProperty(e,"minInt208",{enumerable:!0,get:function(){return u.minInt208}}),Object.defineProperty(e,"minInt216",{enumerable:!0,get:function(){return u.minInt216}}),Object.defineProperty(e,"minInt224",{enumerable:!0,get:function(){return u.minInt224}}),Object.defineProperty(e,"minInt232",{enumerable:!0,get:function(){return u.minInt232}}),Object.defineProperty(e,"minInt240",{enumerable:!0,get:function(){return u.minInt240}}),Object.defineProperty(e,"minInt248",{enumerable:!0,get:function(){return u.minInt248}}),Object.defineProperty(e,"minInt256",{enumerable:!0,get:function(){return u.minInt256}});var w=I_();Object.defineProperty(e,"presignMessagePrefix",{enumerable:!0,get:function(){return w.presignMessagePrefix}});var _=ra();Object.defineProperty(e,"etherUnits",{enumerable:!0,get:function(){return _.etherUnits}}),Object.defineProperty(e,"gweiUnits",{enumerable:!0,get:function(){return _.gweiUnits}}),Object.defineProperty(e,"weiUnits",{enumerable:!0,get:function(){return _.weiUnits}});var p=Be();Object.defineProperty(e,"AbiConstructorNotFoundError",{enumerable:!0,get:function(){return p.AbiConstructorNotFoundError}}),Object.defineProperty(e,"AbiConstructorParamsNotFoundError",{enumerable:!0,get:function(){return p.AbiConstructorParamsNotFoundError}}),Object.defineProperty(e,"AbiDecodingDataSizeInvalidError",{enumerable:!0,get:function(){return p.AbiDecodingDataSizeInvalidError}}),Object.defineProperty(e,"AbiDecodingDataSizeTooSmallError",{enumerable:!0,get:function(){return p.AbiDecodingDataSizeTooSmallError}}),Object.defineProperty(e,"AbiDecodingZeroDataError",{enumerable:!0,get:function(){return p.AbiDecodingZeroDataError}}),Object.defineProperty(e,"AbiEncodingArrayLengthMismatchError",{enumerable:!0,get:function(){return p.AbiEncodingArrayLengthMismatchError}}),Object.defineProperty(e,"AbiEncodingBytesSizeMismatchError",{enumerable:!0,get:function(){return p.AbiEncodingBytesSizeMismatchError}}),Object.defineProperty(e,"AbiEncodingLengthMismatchError",{enumerable:!0,get:function(){return p.AbiEncodingLengthMismatchError}}),Object.defineProperty(e,"AbiErrorInputsNotFoundError",{enumerable:!0,get:function(){return p.AbiErrorInputsNotFoundError}}),Object.defineProperty(e,"AbiErrorNotFoundError",{enumerable:!0,get:function(){return p.AbiErrorNotFoundError}}),Object.defineProperty(e,"AbiErrorSignatureNotFoundError",{enumerable:!0,get:function(){return p.AbiErrorSignatureNotFoundError}}),Object.defineProperty(e,"AbiEventNotFoundError",{enumerable:!0,get:function(){return p.AbiEventNotFoundError}}),Object.defineProperty(e,"AbiEventSignatureEmptyTopicsError",{enumerable:!0,get:function(){return p.AbiEventSignatureEmptyTopicsError}}),Object.defineProperty(e,"AbiEventSignatureNotFoundError",{enumerable:!0,get:function(){return p.AbiEventSignatureNotFoundError}}),Object.defineProperty(e,"AbiFunctionNotFoundError",{enumerable:!0,get:function(){return p.AbiFunctionNotFoundError}}),Object.defineProperty(e,"AbiFunctionOutputsNotFoundError",{enumerable:!0,get:function(){return p.AbiFunctionOutputsNotFoundError}}),Object.defineProperty(e,"AbiFunctionSignatureNotFoundError",{enumerable:!0,get:function(){return p.AbiFunctionSignatureNotFoundError}}),Object.defineProperty(e,"BytesSizeMismatchError",{enumerable:!0,get:function(){return p.BytesSizeMismatchError}}),Object.defineProperty(e,"DecodeLogDataMismatch",{enumerable:!0,get:function(){return p.DecodeLogDataMismatch}}),Object.defineProperty(e,"DecodeLogTopicsMismatch",{enumerable:!0,get:function(){return p.DecodeLogTopicsMismatch}}),Object.defineProperty(e,"InvalidAbiDecodingTypeError",{enumerable:!0,get:function(){return p.InvalidAbiDecodingTypeError}}),Object.defineProperty(e,"InvalidAbiEncodingTypeError",{enumerable:!0,get:function(){return p.InvalidAbiEncodingTypeError}}),Object.defineProperty(e,"InvalidArrayError",{enumerable:!0,get:function(){return p.InvalidArrayError}}),Object.defineProperty(e,"InvalidDefinitionTypeError",{enumerable:!0,get:function(){return p.InvalidDefinitionTypeError}}),Object.defineProperty(e,"UnsupportedPackedAbiType",{enumerable:!0,get:function(){return p.UnsupportedPackedAbiType}});var S=It();Object.defineProperty(e,"InvalidAddressError",{enumerable:!0,get:function(){return S.InvalidAddressError}});var A=ue();Object.defineProperty(e,"BaseError",{enumerable:!0,get:function(){return A.BaseError}}),Object.defineProperty(e,"setErrorConfig",{enumerable:!0,get:function(){return A.setErrorConfig}});var T=nd();Object.defineProperty(e,"BlockNotFoundError",{enumerable:!0,get:function(){return T.BlockNotFoundError}});var O=t_();Object.defineProperty(e,"BundleFailedError",{enumerable:!0,get:function(){return O.BundleFailedError}});var I=ba();Object.defineProperty(e,"ChainDoesNotSupportContract",{enumerable:!0,get:function(){return I.ChainDoesNotSupportContract}}),Object.defineProperty(e,"ChainMismatchError",{enumerable:!0,get:function(){return I.ChainMismatchError}}),Object.defineProperty(e,"ChainNotFoundError",{enumerable:!0,get:function(){return I.ChainNotFoundError}}),Object.defineProperty(e,"ClientChainNotConfiguredError",{enumerable:!0,get:function(){return I.ClientChainNotConfiguredError}}),Object.defineProperty(e,"InvalidChainIdError",{enumerable:!0,get:function(){return I.InvalidChainIdError}});var R=_r();Object.defineProperty(e,"CallExecutionError",{enumerable:!0,get:function(){return R.CallExecutionError}}),Object.defineProperty(e,"ContractFunctionExecutionError",{enumerable:!0,get:function(){return R.ContractFunctionExecutionError}}),Object.defineProperty(e,"ContractFunctionRevertedError",{enumerable:!0,get:function(){return R.ContractFunctionRevertedError}}),Object.defineProperty(e,"ContractFunctionZeroDataError",{enumerable:!0,get:function(){return R.ContractFunctionZeroDataError}}),Object.defineProperty(e,"CounterfactualDeploymentFailedError",{enumerable:!0,get:function(){return R.CounterfactualDeploymentFailedError}}),Object.defineProperty(e,"RawContractError",{enumerable:!0,get:function(){return R.RawContractError}});var H=Ju();Object.defineProperty(e,"SizeExceedsPaddingSizeError",{enumerable:!0,get:function(){return H.SizeExceedsPaddingSizeError}}),Object.defineProperty(e,"SliceOffsetOutOfBoundsError",{enumerable:!0,get:function(){return H.SliceOffsetOutOfBoundsError}});var F=Cn();Object.defineProperty(e,"IntegerOutOfRangeError",{enumerable:!0,get:function(){return F.IntegerOutOfRangeError}}),Object.defineProperty(e,"InvalidBytesBooleanError",{enumerable:!0,get:function(){return F.InvalidBytesBooleanError}}),Object.defineProperty(e,"InvalidHexBooleanError",{enumerable:!0,get:function(){return F.InvalidHexBooleanError}}),Object.defineProperty(e,"InvalidHexValueError",{enumerable:!0,get:function(){return F.InvalidHexValueError}}),Object.defineProperty(e,"RlpDepthLimitExceededError",{enumerable:!0,get:function(){return F.RlpDepthLimitExceededError}}),Object.defineProperty(e,"SizeOverflowError",{enumerable:!0,get:function(){return F.SizeOverflowError}});var x=Zf();Object.defineProperty(e,"EnsAvatarInvalidNftUriError",{enumerable:!0,get:function(){return x.EnsAvatarInvalidNftUriError}}),Object.defineProperty(e,"EnsAvatarUnsupportedNamespaceError",{enumerable:!0,get:function(){return x.EnsAvatarUnsupportedNamespaceError}}),Object.defineProperty(e,"EnsAvatarUriResolutionError",{enumerable:!0,get:function(){return x.EnsAvatarUriResolutionError}}),Object.defineProperty(e,"EnsInvalidChainIdError",{enumerable:!0,get:function(){return x.EnsInvalidChainIdError}});var j=Lg();Object.defineProperty(e,"EstimateGasExecutionError",{enumerable:!0,get:function(){return j.EstimateGasExecutionError}});var k=ca();Object.defineProperty(e,"BaseFeeScalarError",{enumerable:!0,get:function(){return k.BaseFeeScalarError}}),Object.defineProperty(e,"Eip1559FeesNotSupportedError",{enumerable:!0,get:function(){return k.Eip1559FeesNotSupportedError}}),Object.defineProperty(e,"MaxFeePerGasTooLowError",{enumerable:!0,get:function(){return k.MaxFeePerGasTooLowError}});var B=Bg();Object.defineProperty(e,"FilterTypeNotSupportedError",{enumerable:!0,get:function(){return B.FilterTypeNotSupportedError}});var C=nr();Object.defineProperty(e,"ExecutionRevertedError",{enumerable:!0,get:function(){return C.ExecutionRevertedError}}),Object.defineProperty(e,"FeeCapTooHighError",{enumerable:!0,get:function(){return C.FeeCapTooHighError}}),Object.defineProperty(e,"FeeCapTooLowError",{enumerable:!0,get:function(){return C.FeeCapTooLowError}}),Object.defineProperty(e,"InsufficientFundsError",{enumerable:!0,get:function(){return C.InsufficientFundsError}}),Object.defineProperty(e,"IntrinsicGasTooHighError",{enumerable:!0,get:function(){return C.IntrinsicGasTooHighError}}),Object.defineProperty(e,"IntrinsicGasTooLowError",{enumerable:!0,get:function(){return C.IntrinsicGasTooLowError}}),Object.defineProperty(e,"NonceMaxValueError",{enumerable:!0,get:function(){return C.NonceMaxValueError}}),Object.defineProperty(e,"NonceTooHighError",{enumerable:!0,get:function(){return C.NonceTooHighError}}),Object.defineProperty(e,"NonceTooLowError",{enumerable:!0,get:function(){return C.NonceTooLowError}}),Object.defineProperty(e,"TipAboveFeeCapError",{enumerable:!0,get:function(){return C.TipAboveFeeCapError}}),Object.defineProperty(e,"TransactionTypeNotSupportedError",{enumerable:!0,get:function(){return C.TransactionTypeNotSupportedError}}),Object.defineProperty(e,"UnknownNodeError",{enumerable:!0,get:function(){return C.UnknownNodeError}});var q=Et();Object.defineProperty(e,"HttpRequestError",{enumerable:!0,get:function(){return q.HttpRequestError}}),Object.defineProperty(e,"ResponseBodyTooLargeError",{enumerable:!0,get:function(){return q.ResponseBodyTooLargeError}}),Object.defineProperty(e,"RpcRequestError",{enumerable:!0,get:function(){return q.RpcRequestError}}),Object.defineProperty(e,"SocketClosedError",{enumerable:!0,get:function(){return q.SocketClosedError}}),Object.defineProperty(e,"TimeoutError",{enumerable:!0,get:function(){return q.TimeoutError}}),Object.defineProperty(e,"WebSocketRequestError",{enumerable:!0,get:function(){return q.WebSocketRequestError}});var M=vr();Object.defineProperty(e,"AtomicityNotSupportedError",{enumerable:!0,get:function(){return M.AtomicityNotSupportedError}}),Object.defineProperty(e,"AtomicReadyWalletRejectedUpgradeError",{enumerable:!0,get:function(){return M.AtomicReadyWalletRejectedUpgradeError}}),Object.defineProperty(e,"BundleTooLargeError",{enumerable:!0,get:function(){return M.BundleTooLargeError}}),Object.defineProperty(e,"ChainDisconnectedError",{enumerable:!0,get:function(){return M.ChainDisconnectedError}}),Object.defineProperty(e,"DuplicateIdError",{enumerable:!0,get:function(){return M.DuplicateIdError}}),Object.defineProperty(e,"InternalRpcError",{enumerable:!0,get:function(){return M.InternalRpcError}}),Object.defineProperty(e,"InvalidInputRpcError",{enumerable:!0,get:function(){return M.InvalidInputRpcError}}),Object.defineProperty(e,"InvalidParamsRpcError",{enumerable:!0,get:function(){return M.InvalidParamsRpcError}}),Object.defineProperty(e,"InvalidRequestRpcError",{enumerable:!0,get:function(){return M.InvalidRequestRpcError}}),Object.defineProperty(e,"JsonRpcVersionUnsupportedError",{enumerable:!0,get:function(){return M.JsonRpcVersionUnsupportedError}}),Object.defineProperty(e,"LimitExceededRpcError",{enumerable:!0,get:function(){return M.LimitExceededRpcError}}),Object.defineProperty(e,"MethodNotFoundRpcError",{enumerable:!0,get:function(){return M.MethodNotFoundRpcError}}),Object.defineProperty(e,"MethodNotSupportedRpcError",{enumerable:!0,get:function(){return M.MethodNotSupportedRpcError}}),Object.defineProperty(e,"ParseRpcError",{enumerable:!0,get:function(){return M.ParseRpcError}}),Object.defineProperty(e,"ProviderDisconnectedError",{enumerable:!0,get:function(){return M.ProviderDisconnectedError}}),Object.defineProperty(e,"ProviderRpcError",{enumerable:!0,get:function(){return M.ProviderRpcError}}),Object.defineProperty(e,"ResourceNotFoundRpcError",{enumerable:!0,get:function(){return M.ResourceNotFoundRpcError}}),Object.defineProperty(e,"ResourceUnavailableRpcError",{enumerable:!0,get:function(){return M.ResourceUnavailableRpcError}}),Object.defineProperty(e,"RpcError",{enumerable:!0,get:function(){return M.RpcError}}),Object.defineProperty(e,"SwitchChainError",{enumerable:!0,get:function(){return M.SwitchChainError}}),Object.defineProperty(e,"TransactionRejectedRpcError",{enumerable:!0,get:function(){return M.TransactionRejectedRpcError}}),Object.defineProperty(e,"UnauthorizedProviderError",{enumerable:!0,get:function(){return M.UnauthorizedProviderError}}),Object.defineProperty(e,"UnknownBundleIdError",{enumerable:!0,get:function(){return M.UnknownBundleIdError}}),Object.defineProperty(e,"UnknownRpcError",{enumerable:!0,get:function(){return M.UnknownRpcError}}),Object.defineProperty(e,"UnsupportedChainIdError",{enumerable:!0,get:function(){return M.UnsupportedChainIdError}}),Object.defineProperty(e,"UnsupportedNonOptionalCapabilityError",{enumerable:!0,get:function(){return M.UnsupportedNonOptionalCapabilityError}}),Object.defineProperty(e,"UnsupportedProviderMethodError",{enumerable:!0,get:function(){return M.UnsupportedProviderMethodError}}),Object.defineProperty(e,"UserRejectedRequestError",{enumerable:!0,get:function(){return M.UserRejectedRequestError}});var N=Pf();Object.defineProperty(e,"AccountStateConflictError",{enumerable:!0,get:function(){return N.AccountStateConflictError}}),Object.defineProperty(e,"StateAssignmentConflictError",{enumerable:!0,get:function(){return N.StateAssignmentConflictError}});var z=ct();Object.defineProperty(e,"FeeConflictError",{enumerable:!0,get:function(){return z.FeeConflictError}}),Object.defineProperty(e,"InvalidLegacyVError",{enumerable:!0,get:function(){return z.InvalidLegacyVError}}),Object.defineProperty(e,"InvalidSerializableTransactionError",{enumerable:!0,get:function(){return z.InvalidSerializableTransactionError}}),Object.defineProperty(e,"InvalidSerializedTransactionError",{enumerable:!0,get:function(){return z.InvalidSerializedTransactionError}}),Object.defineProperty(e,"InvalidSerializedTransactionTypeError",{enumerable:!0,get:function(){return z.InvalidSerializedTransactionTypeError}}),Object.defineProperty(e,"InvalidStorageKeySizeError",{enumerable:!0,get:function(){return z.InvalidStorageKeySizeError}}),Object.defineProperty(e,"InvalidYParityError",{enumerable:!0,get:function(){return z.InvalidYParityError}}),Object.defineProperty(e,"TransactionExecutionError",{enumerable:!0,get:function(){return z.TransactionExecutionError}}),Object.defineProperty(e,"TransactionNotFoundError",{enumerable:!0,get:function(){return z.TransactionNotFoundError}}),Object.defineProperty(e,"TransactionReceiptNotFoundError",{enumerable:!0,get:function(){return z.TransactionReceiptNotFoundError}}),Object.defineProperty(e,"WaitForTransactionReceiptTimeoutError",{enumerable:!0,get:function(){return z.WaitForTransactionReceiptTimeoutError}});var $=pl();Object.defineProperty(e,"UrlRequiredError",{enumerable:!0,get:function(){return $.UrlRequiredError}});var L=B_();Object.defineProperty(e,"InvalidDomainError",{enumerable:!0,get:function(){return L.InvalidDomainError}}),Object.defineProperty(e,"InvalidPrimaryTypeError",{enumerable:!0,get:function(){return L.InvalidPrimaryTypeError}}),Object.defineProperty(e,"InvalidStructTypeError",{enumerable:!0,get:function(){return L.InvalidStructTypeError}});var G=z_();Object.defineProperty(e,"InvalidDecimalNumberError",{enumerable:!0,get:function(){return G.InvalidDecimalNumberError}});var Z=T5();Object.defineProperty(e,"EIP1193ProviderRpcError",{enumerable:!0,get:function(){return Z.ProviderRpcError}});var W=gr();Object.defineProperty(e,"decodeAbiParameters",{enumerable:!0,get:function(){return W.decodeAbiParameters}});var V=S5();Object.defineProperty(e,"decodeDeployData",{enumerable:!0,get:function(){return V.decodeDeployData}});var J=ta();Object.defineProperty(e,"decodeErrorResult",{enumerable:!0,get:function(){return J.decodeErrorResult}});var te=fa();Object.defineProperty(e,"decodeEventLog",{enumerable:!0,get:function(){return te.decodeEventLog}});var K=Nf();Object.defineProperty(e,"decodeFunctionData",{enumerable:!0,get:function(){return K.decodeFunctionData}});var X=Ct();Object.defineProperty(e,"decodeFunctionResult",{enumerable:!0,get:function(){return X.decodeFunctionResult}});var Q=Rt();Object.defineProperty(e,"encodeAbiParameters",{enumerable:!0,get:function(){return Q.encodeAbiParameters}});var ne=ma();Object.defineProperty(e,"encodeDeployData",{enumerable:!0,get:function(){return ne.encodeDeployData}});var re=$f();Object.defineProperty(e,"encodeErrorResult",{enumerable:!0,get:function(){return re.encodeErrorResult}});var ae=Jr();Object.defineProperty(e,"encodeEventTopics",{enumerable:!0,get:function(){return ae.encodeEventTopics}});var ce=Ge();Object.defineProperty(e,"encodeFunctionData",{enumerable:!0,get:function(){return ce.encodeFunctionData}});var he=zf();Object.defineProperty(e,"encodeFunctionResult",{enumerable:!0,get:function(){return he.encodeFunctionResult}});var ve=d_();Object.defineProperty(e,"encodePacked",{enumerable:!0,get:function(){return ve.encodePacked}});var ge=rr();Object.defineProperty(e,"getAbiItem",{enumerable:!0,get:function(){return ge.getAbiItem}});var ye=nn();Object.defineProperty(e,"parseEventLogs",{enumerable:!0,get:function(){return ye.parseEventLogs}});var Oe=xg();Object.defineProperty(e,"prepareEncodeFunctionData",{enumerable:!0,get:function(){return Oe.prepareEncodeFunctionData}});var ee=et();Object.defineProperty(e,"checksumAddress",{enumerable:!0,get:function(){return ee.checksumAddress}}),Object.defineProperty(e,"getAddress",{enumerable:!0,get:function(){return ee.getAddress}});var Y=f_();Object.defineProperty(e,"getContractAddress",{enumerable:!0,get:function(){return Y.getContractAddress}}),Object.defineProperty(e,"getCreate2Address",{enumerable:!0,get:function(){return Y.getCreate2Address}}),Object.defineProperty(e,"getCreateAddress",{enumerable:!0,get:function(){return Y.getCreateAddress}});var nt=tt();Object.defineProperty(e,"isAddress",{enumerable:!0,get:function(){return nt.isAddress}});var pt=ht();Object.defineProperty(e,"isAddressEqual",{enumerable:!0,get:function(){return pt.isAddressEqual}});var xt=id();Object.defineProperty(e,"blobsToCommitments",{enumerable:!0,get:function(){return xt.blobsToCommitments}});var ut=sd();Object.defineProperty(e,"blobsToProofs",{enumerable:!0,get:function(){return ut.blobsToProofs}});var Ve=Of();Object.defineProperty(e,"commitmentsToVersionedHashes",{enumerable:!0,get:function(){return Ve.commitmentsToVersionedHashes}});var gt=Bf();Object.defineProperty(e,"commitmentToVersionedHash",{enumerable:!0,get:function(){return gt.commitmentToVersionedHash}});var dt=I5();Object.defineProperty(e,"fromBlobs",{enumerable:!0,get:function(){return dt.fromBlobs}});var ot=R5();Object.defineProperty(e,"sidecarsToVersionedHashes",{enumerable:!0,get:function(){return ot.sidecarsToVersionedHashes}});var jt=cd();Object.defineProperty(e,"toBlobSidecars",{enumerable:!0,get:function(){return jt.toBlobSidecars}});var ke=Zg();Object.defineProperty(e,"toBlobs",{enumerable:!0,get:function(){return ke.toBlobs}});var He=ld();Object.defineProperty(e,"ccipRequest",{enumerable:!0,get:function(){return He.ccipRequest}}),Object.defineProperty(e,"ccipFetch",{enumerable:!0,get:function(){return He.ccipRequest}}),Object.defineProperty(e,"offchainLookup",{enumerable:!0,get:function(){return He.offchainLookup}}),Object.defineProperty(e,"offchainLookupAbiItem",{enumerable:!0,get:function(){return He.offchainLookupAbiItem}}),Object.defineProperty(e,"offchainLookupSignature",{enumerable:!0,get:function(){return He.offchainLookupSignature}});var ar=h_();Object.defineProperty(e,"ccipReadTunnel",{enumerable:!0,get:function(){return ar.ccipReadTunnel}});var $n=pa();Object.defineProperty(e,"assertCurrentChain",{enumerable:!0,get:function(){return $n.assertCurrentChain}});var ir=y_();Object.defineProperty(e,"defineChain",{enumerable:!0,get:function(){return ir.defineChain}}),Object.defineProperty(e,"extendSchema",{enumerable:!0,get:function(){return ir.extendSchema}});var zn=p_();Object.defineProperty(e,"extractChain",{enumerable:!0,get:function(){return zn.extractChain}});var Sr=Ar();Object.defineProperty(e,"getChainContractAddress",{enumerable:!0,get:function(){return Sr.getChainContractAddress}});var Le=Me();Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return Le.concat}}),Object.defineProperty(e,"concatBytes",{enumerable:!0,get:function(){return Le.concatBytes}}),Object.defineProperty(e,"concatHex",{enumerable:!0,get:function(){return Le.concatHex}});var Ir=Jf();Object.defineProperty(e,"isBytes",{enumerable:!0,get:function(){return Ir.isBytes}});var Pd=Qe();Object.defineProperty(e,"isHex",{enumerable:!0,get:function(){return Pd.isHex}});var Ln=yr();Object.defineProperty(e,"pad",{enumerable:!0,get:function(){return Ln.pad}}),Object.defineProperty(e,"padBytes",{enumerable:!0,get:function(){return Ln.padBytes}}),Object.defineProperty(e,"padHex",{enumerable:!0,get:function(){return Ln.padHex}});var Ad=De();Object.defineProperty(e,"size",{enumerable:!0,get:function(){return Ad.size}});var Un=mt();Object.defineProperty(e,"slice",{enumerable:!0,get:function(){return Un.slice}}),Object.defineProperty(e,"sliceBytes",{enumerable:!0,get:function(){return Un.sliceBytes}}),Object.defineProperty(e,"sliceHex",{enumerable:!0,get:function(){return Un.sliceHex}});var Td=tr();Object.defineProperty(e,"trim",{enumerable:!0,get:function(){return Td.trim}});var Rr=wf();Object.defineProperty(e,"bytesToBigInt",{enumerable:!0,get:function(){return Rr.bytesToBigInt}}),Object.defineProperty(e,"bytesToBool",{enumerable:!0,get:function(){return Rr.bytesToBool}}),Object.defineProperty(e,"bytesToNumber",{enumerable:!0,get:function(){return Rr.bytesToNumber}}),Object.defineProperty(e,"bytesToString",{enumerable:!0,get:function(){return Rr.bytesToString}}),Object.defineProperty(e,"fromBytes",{enumerable:!0,get:function(){return Rr.fromBytes}});var Br=xe();Object.defineProperty(e,"fromHex",{enumerable:!0,get:function(){return Br.fromHex}}),Object.defineProperty(e,"hexToBigInt",{enumerable:!0,get:function(){return Br.hexToBigInt}}),Object.defineProperty(e,"hexToBool",{enumerable:!0,get:function(){return Br.hexToBool}}),Object.defineProperty(e,"hexToNumber",{enumerable:!0,get:function(){return Br.hexToNumber}}),Object.defineProperty(e,"hexToString",{enumerable:!0,get:function(){return Br.hexToString}});var Sd=Qf();Object.defineProperty(e,"fromRlp",{enumerable:!0,get:function(){return Sd.fromRlp}});var Or=Pe();Object.defineProperty(e,"boolToBytes",{enumerable:!0,get:function(){return Or.boolToBytes}}),Object.defineProperty(e,"hexToBytes",{enumerable:!0,get:function(){return Or.hexToBytes}}),Object.defineProperty(e,"numberToBytes",{enumerable:!0,get:function(){return Or.numberToBytes}}),Object.defineProperty(e,"stringToBytes",{enumerable:!0,get:function(){return Or.stringToBytes}}),Object.defineProperty(e,"toBytes",{enumerable:!0,get:function(){return Or.toBytes}});var Cr=oe();Object.defineProperty(e,"boolToHex",{enumerable:!0,get:function(){return Cr.boolToHex}}),Object.defineProperty(e,"bytesToHex",{enumerable:!0,get:function(){return Cr.bytesToHex}}),Object.defineProperty(e,"numberToHex",{enumerable:!0,get:function(){return Cr.numberToHex}}),Object.defineProperty(e,"stringToHex",{enumerable:!0,get:function(){return Cr.stringToHex}}),Object.defineProperty(e,"toHex",{enumerable:!0,get:function(){return Cr.toHex}});var Dn=oa();Object.defineProperty(e,"bytesToRlp",{enumerable:!0,get:function(){return Dn.bytesToRlp}}),Object.defineProperty(e,"hexToRlp",{enumerable:!0,get:function(){return Dn.hexToRlp}}),Object.defineProperty(e,"toRlp",{enumerable:!0,get:function(){return Dn.toRlp}});var Id=a_();Object.defineProperty(e,"labelhash",{enumerable:!0,get:function(){return Id.labelhash}});var Rd=Wf();Object.defineProperty(e,"namehash",{enumerable:!0,get:function(){return Rd.namehash}});var Gn=B5();Object.defineProperty(e,"toCoinType",{enumerable:!0,get:function(){return Gn.toCoinType}});var Bd=Er();Object.defineProperty(e,"getContractError",{enumerable:!0,get:function(){return Bd.getContractError}});var Pa=od();Object.defineProperty(e,"defineBlock",{enumerable:!0,get:function(){return Pa.defineBlock}}),Object.defineProperty(e,"formatBlock",{enumerable:!0,get:function(){return Pa.formatBlock}});var Od=Ht();Object.defineProperty(e,"formatLog",{enumerable:!0,get:function(){return Od.formatLog}});var Vn=qn();Object.defineProperty(e,"defineTransaction",{enumerable:!0,get:function(){return Vn.defineTransaction}}),Object.defineProperty(e,"formatTransaction",{enumerable:!0,get:function(){return Vn.formatTransaction}}),Object.defineProperty(e,"transactionType",{enumerable:!0,get:function(){return Vn.transactionType}});var Aa=Fn();Object.defineProperty(e,"defineTransactionReceipt",{enumerable:!0,get:function(){return Aa.defineTransactionReceipt}}),Object.defineProperty(e,"formatTransactionReceipt",{enumerable:!0,get:function(){return Aa.formatTransactionReceipt}});var an=Bt();Object.defineProperty(e,"defineTransactionRequest",{enumerable:!0,get:function(){return an.defineTransactionRequest}}),Object.defineProperty(e,"formatTransactionRequest",{enumerable:!0,get:function(){return an.formatTransactionRequest}}),Object.defineProperty(e,"rpcTransactionType",{enumerable:!0,get:function(){return an.rpcTransactionType}});var Cd=el();Object.defineProperty(e,"isHash",{enumerable:!0,get:function(){return Cd.isHash}});var xd=st();Object.defineProperty(e,"keccak256",{enumerable:!0,get:function(){return xd.keccak256}});var qd=__();Object.defineProperty(e,"ripemd160",{enumerable:!0,get:function(){return qd.ripemd160}});var Md=Rf();Object.defineProperty(e,"sha256",{enumerable:!0,get:function(){return Md.sha256}});var kd=v_();Object.defineProperty(e,"toEventHash",{enumerable:!0,get:function(){return kd.toEventHash}});var Ta=xn();Object.defineProperty(e,"toEventSelector",{enumerable:!0,get:function(){return Ta.toEventSelector}}),Object.defineProperty(e,"getEventSelector",{enumerable:!0,get:function(){return Ta.toEventSelector}});var gl=E_();Object.defineProperty(e,"toEventSignature",{enumerable:!0,get:function(){return gl.toEventSignature}}),Object.defineProperty(e,"getEventSignature",{enumerable:!0,get:function(){return gl.toEventSignature}});var uv=j_();Object.defineProperty(e,"toFunctionHash",{enumerable:!0,get:function(){return uv.toFunctionHash}});var _l=Yr();Object.defineProperty(e,"toFunctionSelector",{enumerable:!0,get:function(){return _l.toFunctionSelector}}),Object.defineProperty(e,"getFunctionSelector",{enumerable:!0,get:function(){return _l.toFunctionSelector}});var vl=w_();Object.defineProperty(e,"toFunctionSignature",{enumerable:!0,get:function(){return vl.toFunctionSignature}}),Object.defineProperty(e,"getFunctionSignature",{enumerable:!0,get:function(){return vl.toFunctionSignature}});var dv=av();Object.defineProperty(e,"defineKzg",{enumerable:!0,get:function(){return dv.defineKzg}});var fv=O5();Object.defineProperty(e,"setupKzg",{enumerable:!0,get:function(){return fv.setupKzg}});var El=P_();Object.defineProperty(e,"createNonceManager",{enumerable:!0,get:function(){return El.createNonceManager}}),Object.defineProperty(e,"nonceManager",{enumerable:!0,get:function(){return El.nonceManager}});var lv=Qg();Object.defineProperty(e,"withCache",{enumerable:!0,get:function(){return lv.withCache}});var bv=pd();Object.defineProperty(e,"withRetry",{enumerable:!0,get:function(){return bv.withRetry}});var mv=tl();Object.defineProperty(e,"withTimeout",{enumerable:!0,get:function(){return mv.withTimeout}});var hv=C5();Object.defineProperty(e,"compactSignatureToSignature",{enumerable:!0,get:function(){return hv.compactSignatureToSignature}});var yv=_a();Object.defineProperty(e,"hashMessage",{enumerable:!0,get:function(){return yv.hashMessage}});var Hd=va();Object.defineProperty(e,"hashDomain",{enumerable:!0,get:function(){return Hd.hashDomain}}),Object.defineProperty(e,"hashStruct",{enumerable:!0,get:function(){return Hd.hashStruct}}),Object.defineProperty(e,"hashTypedData",{enumerable:!0,get:function(){return Hd.hashTypedData}});var pv=al();Object.defineProperty(e,"isErc6492Signature",{enumerable:!0,get:function(){return pv.isErc6492Signature}});var gv=cl();Object.defineProperty(e,"isErc8010Signature",{enumerable:!0,get:function(){return gv.isErc8010Signature}});var jl=x5();Object.defineProperty(e,"hexToCompactSignature",{enumerable:!0,get:function(){return jl.parseCompactSignature}}),Object.defineProperty(e,"parseCompactSignature",{enumerable:!0,get:function(){return jl.parseCompactSignature}});var _v=q_();Object.defineProperty(e,"parseErc6492Signature",{enumerable:!0,get:function(){return _v.parseErc6492Signature}});var vv=M_();Object.defineProperty(e,"parseErc8010Signature",{enumerable:!0,get:function(){return vv.parseErc8010Signature}});var wl=q5();Object.defineProperty(e,"hexToSignature",{enumerable:!0,get:function(){return wl.parseSignature}}),Object.defineProperty(e,"parseSignature",{enumerable:!0,get:function(){return wl.parseSignature}});var Ev=jr();Object.defineProperty(e,"recoverAddress",{enumerable:!0,get:function(){return Ev.recoverAddress}});var jv=ul();Object.defineProperty(e,"recoverMessageAddress",{enumerable:!0,get:function(){return jv.recoverMessageAddress}});var wv=Af();Object.defineProperty(e,"recoverPublicKey",{enumerable:!0,get:function(){return wv.recoverPublicKey}});var Pv=M5();Object.defineProperty(e,"recoverTransactionAddress",{enumerable:!0,get:function(){return Pv.recoverTransactionAddress}});var Av=dl();Object.defineProperty(e,"recoverTypedDataAddress",{enumerable:!0,get:function(){return Av.recoverTypedDataAddress}});var Pl=k5();Object.defineProperty(e,"compactSignatureToHex",{enumerable:!0,get:function(){return Pl.serializeCompactSignature}}),Object.defineProperty(e,"serializeCompactSignature",{enumerable:!0,get:function(){return Pl.serializeCompactSignature}});var Tv=k_();Object.defineProperty(e,"serializeErc6492Signature",{enumerable:!0,get:function(){return Tv.serializeErc6492Signature}});var Sv=H_();Object.defineProperty(e,"serializeErc8010Signature",{enumerable:!0,get:function(){return Sv.serializeErc8010Signature}});var Al=K_();Object.defineProperty(e,"signatureToHex",{enumerable:!0,get:function(){return Al.serializeSignature}}),Object.defineProperty(e,"serializeSignature",{enumerable:!0,get:function(){return Al.serializeSignature}});var Iv=H5();Object.defineProperty(e,"signatureToCompactSignature",{enumerable:!0,get:function(){return Iv.signatureToCompactSignature}});var Rv=R_();Object.defineProperty(e,"toPrefixedMessage",{enumerable:!0,get:function(){return Rv.toPrefixedMessage}});var Bv=F_();Object.defineProperty(e,"verifyHash",{enumerable:!0,get:function(){return Bv.verifyHash}});var Ov=N_();Object.defineProperty(e,"verifyMessage",{enumerable:!0,get:function(){return Ov.verifyMessage}});var Cv=$_();Object.defineProperty(e,"verifyTypedData",{enumerable:!0,get:function(){return Cv.verifyTypedData}});var xv=Ne();Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return xv.stringify}});var qv=Ot();Object.defineProperty(e,"assertRequest",{enumerable:!0,get:function(){return qv.assertRequest}});var Fd=gd();Object.defineProperty(e,"assertTransactionEIP1559",{enumerable:!0,get:function(){return Fd.assertTransactionEIP1559}}),Object.defineProperty(e,"assertTransactionEIP2930",{enumerable:!0,get:function(){return Fd.assertTransactionEIP2930}}),Object.defineProperty(e,"assertTransactionLegacy",{enumerable:!0,get:function(){return Fd.assertTransactionLegacy}});var Mv=fl();Object.defineProperty(e,"getSerializedTransactionType",{enumerable:!0,get:function(){return Mv.getSerializedTransactionType}});var kv=ud();Object.defineProperty(e,"getTransactionType",{enumerable:!0,get:function(){return kv.getTransactionType}});var Hv=ll();Object.defineProperty(e,"parseTransaction",{enumerable:!0,get:function(){return Hv.parseTransaction}});var Fv=Xf();Object.defineProperty(e,"serializeAccessList",{enumerable:!0,get:function(){return Fv.serializeAccessList}});var Nv=_d();Object.defineProperty(e,"serializeTransaction",{enumerable:!0,get:function(){return Nv.serializeTransaction}});var Sa=vd();Object.defineProperty(e,"domainSeparator",{enumerable:!0,get:function(){return Sa.domainSeparator}}),Object.defineProperty(e,"getTypesForEIP712Domain",{enumerable:!0,get:function(){return Sa.getTypesForEIP712Domain}}),Object.defineProperty(e,"serializeTypedData",{enumerable:!0,get:function(){return Sa.serializeTypedData}}),Object.defineProperty(e,"validateTypedData",{enumerable:!0,get:function(){return Sa.validateTypedData}});var $v=na();Object.defineProperty(e,"formatEther",{enumerable:!0,get:function(){return $v.formatEther}});var zv=Qr();Object.defineProperty(e,"formatGwei",{enumerable:!0,get:function(){return zv.formatGwei}});var Lv=Xr();Object.defineProperty(e,"formatUnits",{enumerable:!0,get:function(){return Lv.formatUnits}});var Uv=L_();Object.defineProperty(e,"parseEther",{enumerable:!0,get:function(){return Uv.parseEther}});var Dv=U_();Object.defineProperty(e,"parseGwei",{enumerable:!0,get:function(){return Dv.parseGwei}});var Gv=ja();Object.defineProperty(e,"parseUnits",{enumerable:!0,get:function(){return Gv.parseUnits}})})(Ud)),Ud}var Gr={},lg;function N5(){if(lg)return Gr;lg=1,Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.MAGIC_VALUE_BYTES=Gr.MAGIC_VALUE=void 0;const e="0x1626ba7e";Gr.MAGIC_VALUE=e;const r="0x20c13b0b";return Gr.MAGIC_VALUE_BYTES=r,Gr}var Wu={},Xo={},Vr={},bg;function iv(){if(bg)return Vr;bg=1,Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.PermissionsError=Vr.PERMISSIONS_REQUEST_REJECTED=void 0,Vr.PERMISSIONS_REQUEST_REJECTED=4001;class e extends Error{constructor(n,t,o){super(n),this.code=t,this.data=o,Object.setPrototypeOf(this,e.prototype)}}return Vr.PermissionsError=e,Vr}var mg;function sv(){if(mg)return Xo;mg=1,Object.defineProperty(Xo,"__esModule",{value:!0}),Xo.Wallet=void 0;const e=Kr(),r=iv();class n{constructor(o){this.communicator=o}async getPermissions(){return(await this.communicator.send(e.Methods.wallet_getPermissions,void 0)).data}async requestPermissions(o){if(!this.isPermissionRequestValid(o))throw new r.PermissionsError("Permissions request is invalid",r.PERMISSIONS_REQUEST_REJECTED);try{return(await this.communicator.send(e.Methods.wallet_requestPermissions,o)).data}catch{throw new r.PermissionsError("Permissions rejected",r.PERMISSIONS_REQUEST_REJECTED)}}isPermissionRequestValid(o){return o.every(s=>typeof s=="object"?Object.keys(s).every(a=>!!Object.values(e.RestrictedMethods).includes(a)):!1)}}return Xo.Wallet=n,Xo}var hg;function $5(){if(hg)return Wu;hg=1,Object.defineProperty(Wu,"__esModule",{value:!0});const e=sv(),r=iv(),n=(o,s)=>s.some(a=>a.parentCapability===o),t=()=>(o,s,a)=>{const i=a.value;return a.value=async function(){const c=new e.Wallet(this.communicator);let d=await c.getPermissions();if(n(s,d)||(d=await c.requestPermissions([{[s]:{}}])),!n(s,d))throw new r.PermissionsError("Permissions rejected",r.PERMISSIONS_REQUEST_REJECTED);return i.apply(this)},a};return Wu.default=t,Wu}var yg;function z5(){if(yg)return $t;yg=1;var e=$t&&$t.__decorate||function(d,f,l,m){var y=arguments.length,h=y<3?f:m===null?m=Object.getOwnPropertyDescriptor(f,l):m,b;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(d,f,l,m);else for(var E=d.length-1;E>=0;E--)(b=d[E])&&(h=(y<3?b(h):y>3?b(f,l,h):b(f,l))||h);return y>3&&h&&Object.defineProperty(f,l,h),h},r=$t&&$t.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty($t,"__esModule",{value:!0}),$t.Safe=void 0;const n=F5(),t=N5(),o=Kr(),s=_f(),a=gf(),i=r($5());class c{constructor(f){this.communicator=f}async getChainInfo(){return(await this.communicator.send(o.Methods.getChainInfo,void 0)).data}async getInfo(){return(await this.communicator.send(o.Methods.getSafeInfo,void 0)).data}async experimental_getBalances({currency:f="usd"}={}){return(await this.communicator.send(o.Methods.getSafeBalances,{currency:f})).data}async check1271Signature(f,l="0x"){const m=await this.getInfo(),y=(0,n.encodeFunctionData)({abi:[{constant:!1,inputs:[{name:"_dataHash",type:"bytes32"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[f,l]}),h={call:s.RPC_CALLS.eth_call,params:[{to:m.safeAddress,data:y},"latest"]};try{return(await this.communicator.send(o.Methods.rpcCall,h)).data.slice(0,10).toLowerCase()===t.MAGIC_VALUE}catch{return!1}}async check1271SignatureBytes(f,l="0x"){const m=await this.getInfo(),y=(0,n.encodeFunctionData)({abi:[{constant:!1,inputs:[{name:"_data",type:"bytes"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[f,l]}),h={call:s.RPC_CALLS.eth_call,params:[{to:m.safeAddress,data:y},"latest"]};try{return(await this.communicator.send(o.Methods.rpcCall,h)).data.slice(0,10).toLowerCase()===t.MAGIC_VALUE_BYTES}catch{return!1}}calculateMessageHash(f){return(0,n.hashMessage)(f)}calculateTypedMessageHash(f){const l=typeof f.domain.chainId=="object"?f.domain.chainId.toNumber():Number(f.domain.chainId);let m=f.primaryType;if(!m){const y=Object.values(f.types),h=Object.keys(f.types).filter(b=>y.every(E=>E.every(({type:g})=>g.replace("[","").replace("]","")!==b)));if(h.length===0||h.length>1)throw new Error("Please specify primaryType");m=h[0]}return(0,n.hashTypedData)({message:f.message,domain:{...f.domain,chainId:l,verifyingContract:f.domain.verifyingContract,salt:f.domain.salt},types:f.types,primaryType:m})}async getOffChainSignature(f){return(await this.communicator.send(o.Methods.getOffChainSignature,f)).data}async isMessageSigned(f,l="0x"){let m;if(typeof f=="string"&&(m=async()=>{const y=this.calculateMessageHash(f);return await this.isMessageHashSigned(y,l)}),(0,a.isObjectEIP712TypedData)(f)&&(m=async()=>{const y=this.calculateTypedMessageHash(f);return await this.isMessageHashSigned(y,l)}),m)return await m();throw new Error("Invalid message type")}async isMessageHashSigned(f,l="0x"){const m=[this.check1271Signature.bind(this),this.check1271SignatureBytes.bind(this)];for(const y of m)if(await y(f,l))return!0;return!1}async getEnvironmentInfo(){return(await this.communicator.send(o.Methods.getEnvironmentInfo,void 0)).data}async requestAddressBook(){return(await this.communicator.send(o.Methods.requestAddressBook,void 0)).data}}return $t.Safe=c,e([(0,i.default)()],c.prototype,"requestAddressBook",null),$t}var pg;function gg(){if(pg)return sn;pg=1;var e=sn&&sn.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(sn,"__esModule",{value:!0});const r=e(Qv()),n=o6(),t=a6(),o=z5(),s=sv();class a{constructor(c={}){const{allowedDomains:d=null,debug:f=!1}=c;this.communicator=new r.default(d,f),this.eth=new t.Eth(this.communicator),this.txs=new n.TXs(this.communicator),this.safe=new o.Safe(this.communicator),this.wallet=new s.Wallet(this.communicator)}}return sn.default=a,sn}var _g;function L5(){return _g||(_g=1,(function(e){var r=Nt&&Nt.__createBinding||(Object.create?(function(a,i,c,d){d===void 0&&(d=c);var f=Object.getOwnPropertyDescriptor(i,c);(!f||("get"in f?!i.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return i[c]}}),Object.defineProperty(a,d,f)}):(function(a,i,c,d){d===void 0&&(d=c),a[d]=i[c]})),n=Nt&&Nt.__exportStar||function(a,i){for(var c in a)c!=="default"&&!Object.prototype.hasOwnProperty.call(i,c)&&r(i,a,c)},t=Nt&&Nt.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0}),e.getSDKVersion=void 0;const o=t(gg());e.default=o.default,n(gg(),e),n(gf(),e),n(Kr(),e),n(Pg(),e);var s=wg();Object.defineProperty(e,"getSDKVersion",{enumerable:!0,get:function(){return s.getSDKVersion}}),n(_f(),e)})(Nt)),Nt}var Wr={},vg;function U5(){if(vg)return Wr;vg=1,Object.defineProperty(Wr,"__esModule",{value:!0}),Wr.numberToHex=Wr.getLowerCase=void 0;function e(n){return n&&n.toLowerCase()}Wr.getLowerCase=e;function r(n){return`0x${n.toString(16)}`}return Wr.numberToHex=r,Wr}var Eg;function D5(){if(Eg)return Wn;Eg=1,Object.defineProperty(Wn,"__esModule",{value:!0}),Wn.SafeAppProvider=void 0;const e=L5(),r=Yv(),n=U5();class t extends r.EventEmitter{constructor(s,a){super(),this.submittedTxs=new Map,this.safe=s,this.sdk=a}async connect(){this.emit("connect",{chainId:this.chainId})}async disconnect(){}get chainId(){return this.safe.chainId}async request(s){var c,d,f,l;const{method:a,params:i=[]}=s;switch(a){case"eth_accounts":return[this.safe.safeAddress];case"net_version":case"eth_chainId":return(0,n.numberToHex)(this.chainId);case"personal_sign":{const[E,g]=i;if(this.safe.safeAddress.toLowerCase()!==g.toLowerCase())throw new Error("The address or message hash is invalid");const v=await this.sdk.txs.signMessage(E);return("signature"in v?v.signature:void 0)||"0x"}case"eth_sign":{const[E,g]=i;if(this.safe.safeAddress.toLowerCase()!==E.toLowerCase()||!g.startsWith("0x"))throw new Error("The address or message hash is invalid");const v=await this.sdk.txs.signMessage(g);return("signature"in v?v.signature:void 0)||"0x"}case"eth_signTypedData":case"eth_signTypedData_v4":{const[E,g]=i,v=typeof g=="string"?JSON.parse(g):g;if(this.safe.safeAddress.toLowerCase()!==E.toLowerCase())throw new Error("The address is invalid");const P=await this.sdk.txs.signTypedMessage(v);return("signature"in P?P.signature:void 0)||"0x"}case"eth_sendTransaction":const m={...i[0],value:i[0].value||"0",data:i[0].data||"0x"};typeof m.gas=="string"&&m.gas.startsWith("0x")&&(m.gas=parseInt(m.gas,16));const y=await this.sdk.txs.send({txs:[m],params:{safeTxGas:m.gas}});return this.submittedTxs.set(y.safeTxHash,{from:this.safe.safeAddress,hash:y.safeTxHash,gas:0,gasPrice:"0x00",nonce:0,input:m.data,value:m.value,to:m.to,blockHash:null,blockNumber:null,transactionIndex:null}),y.safeTxHash;case"eth_blockNumber":return(await this.sdk.eth.getBlockByNumber(["latest"])).number;case"eth_getBalance":return this.sdk.eth.getBalance([(0,n.getLowerCase)(i[0]),i[1]]);case"eth_getCode":return this.sdk.eth.getCode([(0,n.getLowerCase)(i[0]),i[1]]);case"eth_getTransactionCount":return this.sdk.eth.getTransactionCount([(0,n.getLowerCase)(i[0]),i[1]]);case"eth_getStorageAt":return this.sdk.eth.getStorageAt([(0,n.getLowerCase)(i[0]),i[1],i[2]]);case"eth_getBlockByNumber":return this.sdk.eth.getBlockByNumber([i[0],i[1]]);case"eth_getBlockByHash":return this.sdk.eth.getBlockByHash([i[0],i[1]]);case"eth_getTransactionByHash":let b=i[0];try{b=(await this.sdk.txs.getBySafeTxHash(b)).txHash||b}catch{}return this.submittedTxs.has(b)?this.submittedTxs.get(b):this.sdk.eth.getTransactionByHash([b]).then(E=>(E&&(E.hash=i[0]),E));case"eth_getTransactionReceipt":{let E=i[0];try{E=(await this.sdk.txs.getBySafeTxHash(E)).txHash||E}catch{}return this.sdk.eth.getTransactionReceipt([E]).then(g=>(g&&(g.transactionHash=i[0]),g))}case"eth_estimateGas":return this.sdk.eth.getEstimateGas(i[0]);case"eth_call":return this.sdk.eth.call([i[0],i[1]]);case"eth_getLogs":return this.sdk.eth.getPastLogs([i[0]]);case"eth_gasPrice":return this.sdk.eth.getGasPrice();case"wallet_getPermissions":return this.sdk.wallet.getPermissions();case"wallet_requestPermissions":return this.sdk.wallet.requestPermissions(i[0]);case"safe_setSettings":return this.sdk.eth.setSafeSettings([i[0]]);case"wallet_sendCalls":{const{from:E,calls:g,chainId:v}=i[0];if(v!==(0,n.numberToHex)(this.chainId))throw new Error(`Safe is not on chain ${v}`);if(E!==this.safe.safeAddress)throw Error("Invalid from address");const P=g.map((_,p)=>{if(!_.to)throw new Error(`Invalid call #${p}: missing "to" field`);return{to:_.to,data:_.data??"0x",value:_.value??(0,n.numberToHex)(0)}}),{safeTxHash:u}=await this.sdk.txs.send({txs:P});return{id:u}}case"wallet_getCallsStatus":{const E=i[0],g={[e.TransactionStatus.AWAITING_CONFIRMATIONS]:100,[e.TransactionStatus.AWAITING_EXECUTION]:100,[e.TransactionStatus.SUCCESS]:200,[e.TransactionStatus.CANCELLED]:400,[e.TransactionStatus.FAILED]:500},v=await this.sdk.txs.getBySafeTxHash(E),P={version:"1.0",id:E,chainId:(0,n.numberToHex)(this.chainId),status:g[v.txStatus]};if(!v.txHash)return P;const u=await this.sdk.eth.getTransactionReceipt([v.txHash]);if(!u)return P;const w=((d=(c=v.txData)==null?void 0:c.dataDecoded)==null?void 0:d.method)!=="multiSend"?1:((l=(f=v.txData.dataDecoded.parameters)==null?void 0:f[0].valueDecoded)==null?void 0:l.length)??1,_=Number(u.blockNumber),p=Number(u.gasUsed);return P.receipts=Array(w).fill({logs:u.logs,status:(0,n.numberToHex)(v.txStatus===e.TransactionStatus.SUCCESS?1:0),blockHash:u.blockHash,blockNumber:(0,n.numberToHex)(_),gasUsed:(0,n.numberToHex)(p),transactionHash:v.txHash}),P}case"wallet_showCallsStatus":throw new Error(`"${s.method}" not supported`);case"wallet_getCapabilities":return{[(0,n.numberToHex)(this.chainId)]:{atomicBatch:{supported:!0}}};default:throw Error(`"${s.method}" not implemented`)}}send(s,a){s||a("Undefined request"),this.request(s).then(i=>a(null,{jsonrpc:"2.0",id:s.id,result:i})).catch(i=>a(i,null))}}return Wn.SafeAppProvider=t,Wn}var jg;function G5(){return jg||(jg=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SafeAppProvider=void 0;var r=D5();Object.defineProperty(e,"SafeAppProvider",{enumerable:!0,get:function(){return r.SafeAppProvider}})})(Nd)),Nd}var cv=G5();const V5=Wv(cv),J5=Jv({__proto__:null,default:V5},[cv]);export{J5 as i};
|
|
48
|
-
//# sourceMappingURL=index-
|
|
48
|
+
//# sourceMappingURL=index-4dXpSk57.js.map
|