@dcl/shop 0.1.0-28705659740.commit-2cebfbe → 0.1.0-28716680419.commit-115ef85
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/{Assets-DM3NHvTG.js → Assets-DokepZqK.js} +1 -1
- package/assets/{Cart-qsgyFN2N.js → Cart-m5buv6cO.js} +1 -1
- package/assets/Collection-CQmLgLU7.js +1 -0
- package/assets/Creator-IjVK-CLN.js +1 -0
- package/assets/{ExchangeController-BhumqtlQ.js → ExchangeController-oKZCI5Cm.js} +1 -1
- package/assets/{GetCredits-DWLoB4FX.js → GetCredits-DDBBHPyF.js} +2 -2
- package/assets/{HelpersUtil-DAPWXPm-.js → HelpersUtil-DlwsWqwo.js} +1 -1
- package/assets/{ImportListings-Bwxc8Mmb.js → ImportListings-B4ddKo7M.js} +1 -1
- package/assets/{ItemDetail-D2CedZlX.js → ItemDetail-DpuaTZWb.js} +1 -1
- package/assets/{Market-CEnnPAj2.js → Market-CmN66hf8.js} +1 -1
- package/assets/{MyAssets-ZivUnVkG.js → MyAssets-BSfT19rO.js} +1 -1
- package/assets/{MyFavorites-BFzQNbxY.js → MyFavorites-CE_zEiSL.js} +1 -1
- package/assets/{MyPurchases-8Oel-AwP.js → MyPurchases-Dsoq_U6b.js} +1 -1
- package/assets/{RealCheckout-DqzchDLG.js → RealCheckout-B-VZgd32.js} +1 -1
- package/assets/{Success-D3OOlQnv.js → Success-UyUVmhqC.js} +1 -1
- package/assets/{SwapController-CHZGHDp-.js → SwapController-C4kBShaN.js} +1 -1
- package/assets/{TradeService-DmUewLSI.js → TradeService-DJv1m80G.js} +1 -1
- package/assets/{W3MFrameProviderSingleton-8nOQYUFl.js → W3MFrameProviderSingleton-BajAKkgJ.js} +3 -3
- package/assets/{WebCryptoP256-C7eow4Df.js → WebCryptoP256-1b46_-Gp.js} +1 -1
- package/assets/{basic-CelCYHMb.js → basic-BYmmYUvJ.js} +1 -1
- package/assets/{biconomy-BqVW-rsA.js → biconomy-Dn8n1yMa.js} +1 -1
- package/assets/{buy-C15POIFV.js → buy-B7s3xnPy.js} +1 -1
- package/assets/{buy-gasless-Box0kob9.js → buy-gasless-DvmGkt5H.js} +1 -1
- package/assets/{ccip-CLcImasK.js → ccip-6aROGgJo.js} +1 -1
- package/assets/{ccip-DL59QCK1.js → ccip-ns4bJSsS.js} +1 -1
- package/assets/collection-Clqatgq9.js +1 -0
- package/assets/{collection-Bp-GjNsA.css → collection-Ds5shVfK.css} +1 -1
- package/assets/{controller-CfjWMbVE.js → controller-Bv77GbzU.js} +2 -2
- package/assets/{core-BDXYKhgA.js → core-fQqw9elX.js} +4 -4
- package/assets/{custom-CDDSYhU8.js → custom-CDeGqBaz.js} +1 -1
- package/assets/{data-capture-Bkp-UhN7.js → data-capture-Du4NJ56P.js} +1 -1
- package/assets/decimals-CFPKxJPz.js +1 -0
- package/assets/{decimals-CtEbpsEJ.js → decimals-DAUiLOwK.js} +1 -1
- package/assets/{detectExtension-BIiGvA9o.js → detectExtension-Ds3yS-BV.js} +1 -1
- package/assets/{email-aXh1ma2P.js → email-B_pxpP5c.js} +1 -1
- package/assets/{embedded-wallet-DHtx2k0n.js → embedded-wallet-DPVZun8j.js} +1 -1
- package/assets/{engine-DTNrERz7.js → engine-hhTljyZB.js} +1 -1
- package/assets/{estimate-l1-fee-BGkkMBUf.js → estimate-l1-fee-C4oOyuI_.js} +1 -1
- package/assets/{eth_estimateGas-Btb3MP3p.js → eth_estimateGas-D0gecbs_.js} +1 -1
- package/assets/{eth_getStorageAt-CpNlcQTF.js → eth_getStorageAt-BFVhklul.js} +1 -1
- package/assets/{eth_getTransactionCount-CRegXjS3.js → eth_getTransactionCount-DCcVmIL3.js} +1 -1
- package/assets/{extractIPFS-CxHSpUep.js → extractIPFS-_lNiLeth.js} +1 -1
- package/assets/{features-Dxfjhzpg.js → features-DncncE5f.js} +1 -1
- package/assets/{fetchTokenMetadata-DAoAv0LE.js → fetchTokenMetadata-DvRBbgwu.js} +2 -2
- package/assets/{get-ecosystem-wallet-info-d2DzMnWL.js → get-ecosystem-wallet-info-B7f_phjw.js} +1 -1
- package/assets/{getBalance-BSheXeeM.js → getBalance-BnpIAunn.js} +1 -1
- package/assets/{getInstalledModules-DeN6a3ZH.js → getInstalledModules-uDQciopR.js} +1 -1
- package/assets/{getNFT-BI25yrzD.js → getNFT-CTXTVdrc.js} +1 -1
- package/assets/{getNFT-D1S-LFvC.js → getNFT-DoDC41xG.js} +2 -2
- package/assets/{hashTypedData-CYuFZOJY.js → hashTypedData-CFB72Lv_.js} +1 -1
- package/assets/{hashTypedData-DcFID7ts.js → hashTypedData-DK4wFgd9.js} +1 -1
- package/assets/{import-Du99DOn3.js → import-Cnia99Q3.js} +1 -1
- package/assets/{in-app-wallet-calls-NtKERckH.js → in-app-wallet-calls-BjNeExD4.js} +1 -1
- package/assets/{index-Dqraov_6.js → index-B8QnqxlO.js} +3 -3
- package/assets/{index-BMyAB8ba.js → index-BBAS_XzU.js} +1 -1
- package/assets/{index-WviPcgqv.js → index-BCqi-WJ_.js} +2 -2
- package/assets/{index-D5VEppxJ.js → index-BE8AJRWt.js} +1 -1
- package/assets/{index-nSj5oXfE.js → index-BI9iNAKi.js} +1 -1
- package/assets/{index-G_KYX4HF.js → index-BKpKjRh2.js} +1 -1
- package/assets/{index-CzEqvsaZ.js → index-BQIH261h.js} +1 -1
- package/assets/{index-CnmPuGxO.js → index-BQfq4rEJ.js} +1 -1
- package/assets/{index-B4ee4O3I.js → index-BTNxDX2G.js} +1 -1
- package/assets/{index-CwH_CbRI.js → index-BZHLf8Dx.js} +1 -1
- package/assets/{index-C1CCV2uB.js → index-BhN3BfbK.js} +1 -1
- package/assets/{index-7-ZZ9_Gr.js → index-Bo3uMk6y.js} +1 -1
- package/assets/{index-BAI1_GfY.js → index-BqlddYem.js} +1 -1
- package/assets/{index-DovlEefs.js → index-BrCIZMhr.js} +1 -1
- package/assets/{index-EW5aTHZL.js → index-BwIPPZe_.js} +1 -1
- package/assets/{index-C-zCPWSP.js → index-Bx0NX1Wy.js} +1 -1
- package/assets/{index-CgMttnOM.js → index-C0KPF2ok.js} +1 -1
- package/assets/{index-Df9Gh_0A.js → index-C3xQgbb2.js} +1 -1
- package/assets/{index-DeUxKJX9.js → index-C7mxuo2v.js} +2 -2
- package/assets/{index-BayKSaLv.js → index-CAWxx-t9.js} +1 -1
- package/assets/{index-B9TLT9cn.js → index-CDefEfgf.js} +2 -2
- package/assets/{index-D8VICbUE.js → index-CLIt2qWt.js} +1 -1
- package/assets/{index-CPffpuyV.js → index-CPTeXTyI.js} +1 -1
- package/assets/{index-DiaV7Xnj.js → index-CRymZiKW.js} +1 -1
- package/assets/{index-DRvvHEZB.js → index-CWLWfuhG.js} +1 -1
- package/assets/{index-lfVdBzEM.js → index-CWVYaGnK.js} +1 -1
- package/assets/{index-BwxkgPV1.js → index-CXpxRn3z.js} +1 -1
- package/assets/{index-BX9VHotQ.js → index-Cd6ChLZW.js} +1 -1
- package/assets/{index-CF5_zKOn.js → index-ChCcNci6.js} +1 -1
- package/assets/{index-9N6Vz9JJ.js → index-CifOEt4M.js} +1 -1
- package/assets/{index-jfsclK1c.js → index-CqbILdiv.js} +1 -1
- package/assets/{index-fwX9_hYz.js → index-Cqm_NJEy.js} +3 -3
- package/assets/{index-Bj8T-xg9.js → index-Cvs_N0Ve.js} +1 -1
- package/assets/{index-DT6RahHj.js → index-D-cD9Fhz.js} +1 -1
- package/assets/{index-CXlRV1MY.js → index-D9Y2-jjA.js} +1 -1
- package/assets/{index-BzDco18P.js → index-DAPfm2Hj.js} +1 -1
- package/assets/{index-Cu4WAmtc.js → index-DFpOueb5.js} +1 -1
- package/assets/{index-CwVhVFpE.js → index-DLmaljHx.js} +1 -1
- package/assets/{index-DqX4doZc.js → index-DbbWMdX8.js} +1 -1
- package/assets/{index-B6wMbha0.js → index-Dfm9U86F.js} +1 -1
- package/assets/{index-CGlNYcKT.js → index-Djj4c5iy.js} +3 -3
- package/assets/{index-pyiHqEdT.js → index-Dr1f_0US.js} +1 -1
- package/assets/{index-DjRaneFj.js → index-G2m5zW4B.js} +1 -1
- package/assets/{index-vShxy5Ak.js → index-ORO4OGRK.js} +1 -1
- package/assets/{index-qEoMlTEM.js → index-W3bT5EjH.js} +1 -1
- package/assets/{index-C9SgubrF.js → index-_6K_Lm8_.js} +1 -1
- package/assets/{index-DYsleGM1.js → index-l6gRgJ4r.js} +1 -1
- package/assets/{index-bOxT2TLM.js → index-nGmuCx2o.js} +1 -1
- package/assets/{index-CCzuxvSh.js → index-ra_FFhx_.js} +1 -1
- package/assets/{index-BbqyUr8v.js → index-yU_-adaI.js} +1 -1
- package/assets/{index-Dvt1PbKM.js → index-yxg1tO6a.js} +1 -1
- package/assets/{index.es-iPKbpugX.js → index.es-CKLkgDZt.js} +1 -1
- package/assets/{index.es-CTNruN_b.js → index.es-DGdHHHtp.js} +1 -1
- package/assets/{index.es-0svf3soC.js → index.es-HUt3VpyX.js} +4 -4
- package/assets/{localBatchGatewayRequest-CTO_i3Dr.js → localBatchGatewayRequest-iNoZcrHT.js} +1 -1
- package/assets/{mana-rate-BbMVb7F-.js → mana-rate-C_Yy03l8.js} +1 -1
- package/assets/network-3abJoeoe.js +1 -0
- package/assets/{networks-DnGttac2.js → networks-BWmZZyaq.js} +1 -1
- package/assets/{onramp-THdAL_Er.js → onramp-QCIxEeo3.js} +1 -1
- package/assets/{openzeppelin-Fq6_rWoH.js → openzeppelin-xqR8JMTB.js} +1 -1
- package/assets/{ownerOf-Z20onMkc.js → ownerOf-B89ptWrA.js} +1 -1
- package/assets/{parseNft-gP4B6iOB.js → parseNft-AcTYDuXN.js} +2 -2
- package/assets/{parseSignature-BdtqsPta.js → parseSignature-DBgAZruJ.js} +1 -1
- package/assets/{parseSignature-DGDthF4Q.js → parseSignature-DpYdqsGi.js} +3 -3
- package/assets/{pay-with-exchange-CHsxAsOQ.js → pay-with-exchange-CWJUDtoF.js} +1 -1
- package/assets/{qr-overlay-D72wyOOO.js → qr-overlay-DgpsQY2R.js} +1 -1
- package/assets/{receive-CfEyIRNT.js → receive-D1oWMsub.js} +1 -1
- package/assets/{resolveImplementation-ByZ6aAsR.js → resolveImplementation-CCmXeJg1.js} +1 -1
- package/assets/{rpc-Ba9vojp-.js → rpc-BuAzgf8H.js} +1 -1
- package/assets/{secp256k1-BOgggVbv.js → secp256k1-BPbHjUCl.js} +1 -1
- package/assets/{secp256k1-Dv2AcO6I.js → secp256k1-DDtV5KEA.js} +1 -1
- package/assets/{secp256k1-CTrgIgRO.js → secp256k1-Dnfgbr2s.js} +1 -1
- package/assets/{send-Dvf7cim2.js → send-BQ0FuoZ9.js} +1 -1
- package/assets/{send-batch-transaction-Du7dMQIj.js → send-batch-transaction-DyiLluuy.js} +1 -1
- package/assets/{send-eip712-transaction-COsgKdIg.js → send-eip712-transaction-C_eikAWL.js} +2 -2
- package/assets/{send-gasless-transaction-OrBMq_IW.js → send-gasless-transaction-D7W_wzMo.js} +2 -2
- package/assets/{sendRawTransaction-BFwhC1CW.js → sendRawTransaction-BSnJUgqM.js} +3 -3
- package/assets/{serializeTransaction-BYG_Sf_9.js → serializeTransaction-DKint7z0.js} +1 -1
- package/assets/{session-proposal-B4vPzIrJ.js → session-proposal-D3LluU_8.js} +1 -1
- package/assets/{session-request-q9sdhHDe.js → session-request-DQlplaEX.js} +2 -2
- package/assets/{sha256-DXORZCoT.js → sha256-bqbJ7V3D.js} +1 -1
- package/assets/{signing-DUKQER6N.js → signing-vGxXLj5d.js} +4 -4
- package/assets/{socials-Bx7HctQO.js → socials-S8l_pJBo.js} +1 -1
- package/assets/{swaps-CI-42_Yf.js → swaps-CTxiHwdM.js} +1 -1
- package/assets/{thirdweb-h1G-rly1.js → thirdweb-utLlPpMo.js} +3 -3
- package/assets/{totalSupply-BbOO_R3o.js → totalSupply-B4hRGo3K.js} +1 -1
- package/assets/{transactionReceipt-CpVXwo1b.js → transactionReceipt-C8k8Opcm.js} +1 -1
- package/assets/{transactions-CKq6M4QY.js → transactions-2nmqx5cb.js} +1 -1
- package/assets/{verifyHash-Bt7GZqI2.js → verifyHash-Bf81sELO.js} +1 -1
- package/assets/{w3m-modal-CifFtb0O.js → w3m-modal-8A7Qjg8T.js} +1 -1
- package/assets/{w3m-modal-CIN8ZRvw.js → w3m-modal-CsNCA81W.js} +1 -1
- package/assets/{wait-for-tx-receipt-CmkqIogk.js → wait-for-tx-receipt-C76Hb5Zh.js} +1 -1
- package/assets/{wallet-kind-D3L7EkWx.js → wallet-kind-D_XdST5P.js} +1 -1
- package/assets/{wallets-Opxx6sfN.js → wallets-D8P40Wbw.js} +6 -6
- package/assets/{web-connector-6Zhvgl2A.js → web-connector-CkTchwt2.js} +3 -3
- package/assets/{writeContract-BV7sfUmk.js → writeContract-DmDACNNF.js} +1 -1
- package/assets/{zoraTestnet-BiS-YFuH.js → zoraTestnet-BaDaLVMN.js} +1 -1
- package/index.html +8 -8
- package/package.json +2 -2
- package/assets/Collection-0Q-OVkt1.js +0 -1
- package/assets/Creator-Cg1iIZhw.js +0 -1
- package/assets/decimals-CuBSJMXb.js +0 -1
- package/assets/network-6KrvOfIJ.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as Vv,g as Wv}from"./react-E8ng6RF2.js";import{r as Kv}from"./index-BV8s6ez1.js";import{n as Zv}from"./native-Df5jPT-i.js";import{r as Yv}from"./index-
|
|
1
|
+
import{e as Vv,g as Wv}from"./react-E8ng6RF2.js";import{r as Kv}from"./index-BV8s6ez1.js";import{n as Zv}from"./native-Df5jPT-i.js";import{r as Yv}from"./index-BCqi-WJ_.js";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(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as ai,c as yo,g as rt,r as d,j as L,f as ss,h as yt,R as vt,i as Pr,k as ls,l as us}from"./react-E8ng6RF2.js";import{X as cs,Y as fs}from"./index-fwX9_hYz.js";import{h as ii,i as si,j as li,a as nt,k as ps,l as wr,m as jt,b as Nt,e as ds,n as vs,o as ms,p as hs,q as gs,d as Fr,s as ui,g as ci,c as fi,f as ys,t as bs,r as xs}from"./index-B5lBgsVo.js";import{p as Qr}from"./ethers-BxoDGoYp.js";import{n as je,c as Ss,S as bo}from"./SvgIcon-CqOcU2_R.js";import{b as O,C as pi,d as ce,n as bt,T as ws,o as Es,p as Rs,q as Cs,t as Ps,_ as Te,v as di,x as $s,g as Pt,a as ot,u as ut,c as be,e as xt,s as Re,y as Me,k as no,z as Os,A as Jt,B as ks,D as Is,E as Ms,F as vi,G as mi}from"./generateUtilityClasses-sji8XAMf.js";import{C as Ts}from"./CircularProgress-D-iaLmF3.js";var Ue=cs(),en,xo;function hi(){if(xo)return en;xo=1;var e=Object.prototype.toString;return en=function(r){var n=e.call(r),o=n==="[object Arguments]";return o||(o=n!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&e.call(r.callee)==="[object Function]"),o},en}var tn,So;function As(){if(So)return tn;So=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=hi(),o=Object.prototype.propertyIsEnumerable,a=!o.call({toString:null},"toString"),i=o.call(function(){},"prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(y){var v=y.constructor;return v&&v.prototype===y},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=(function(){if(typeof window>"u")return!1;for(var y in window)try{if(!u["$"+y]&&t.call(window,y)&&window[y]!==null&&typeof window[y]=="object")try{l(window[y])}catch{return!0}}catch{return!0}return!1})(),f=function(y){if(typeof window>"u"||!c)return l(y);try{return l(y)}catch{return!1}};e=function(v){var g=v!==null&&typeof v=="object",b=r.call(v)==="[object Function]",h=n(v),R=g&&r.call(v)==="[object String]",P=[];if(!g&&!b&&!h)throw new TypeError("Object.keys called on a non-object");var S=i&&b;if(R&&v.length>0&&!t.call(v,0))for(var x=0;x<v.length;++x)P.push(String(x));if(h&&v.length>0)for(var C=0;C<v.length;++C)P.push(String(C));else for(var I in v)!(S&&I==="prototype")&&t.call(v,I)&&P.push(String(I));if(a)for(var $=f(v),A=0;A<s.length;++A)!($&&s[A]==="constructor")&&t.call(v,s[A])&&P.push(s[A]);return P}}return tn=e,tn}var rn,wo;function oo(){if(wo)return rn;wo=1;var e=Array.prototype.slice,t=hi(),r=Object.keys,n=r?function(i){return r(i)}:As(),o=Object.keys;return n.shim=function(){if(Object.keys){var i=(function(){var s=Object.keys(arguments);return s&&s.length===arguments.length})(1,2);i||(Object.keys=function(l){return t(l)?o(e.call(l)):o(l)})}else Object.keys=n;return Object.keys||n},rn=n,rn}var nn,Eo;function _t(){if(Eo)return nn;Eo=1;var e=oo(),t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",r=Object.prototype.toString,n=Array.prototype.concat,o=si(),a=function(u){return typeof u=="function"&&r.call(u)==="[object Function]"},i=ii()(),s=function(u,c,f,y){if(c in u){if(y===!0){if(u[c]===f)return}else if(!a(y)||!y())return}i?o(u,c,f,!0):o(u,c,f)},l=function(u,c){var f=arguments.length>2?arguments[2]:{},y=e(c);t&&(y=n.call(y,Object.getOwnPropertySymbols(c)));for(var v=0;v<y.length;v+=1)s(u,y[v],c[y[v]],f[y[v]])};return l.supportsDescriptors=!!i,nn=l,nn}var on,Ro;function gi(){if(Ro)return on;Ro=1;var e=oo(),t=li()(),r=nt(),n=ps(),o=r("Array.prototype.push"),a=r("Object.prototype.propertyIsEnumerable"),i=t?n.getOwnPropertySymbols:null;return on=function(l,u){if(l==null)throw new TypeError("target must be an object");var c=n(l);if(arguments.length===1)return c;for(var f=1;f<arguments.length;++f){var y=n(arguments[f]),v=e(y),g=t&&(n.getOwnPropertySymbols||i);if(g)for(var b=g(y),h=0;h<b.length;++h){var R=b[h];a(y,R)&&o(v,R)}for(var P=0;P<v.length;++P){var S=v[P];if(a(y,S)){var x=y[S];c[S]=x}}}return c},on}var an,Co;function yi(){if(Co)return an;Co=1;var e=gi(),t=function(){if(!Object.assign)return!1;for(var n="abcdefghijklmnopqrst",o=n.split(""),a={},i=0;i<o.length;++i)a[o[i]]=o[i];var s=Object.assign({},a),l="";for(var u in s)l+=u;return n!==l},r=function(){if(!Object.assign||!Object.preventExtensions)return!1;var n=Object.preventExtensions({1:2});try{Object.assign(n,"xy")}catch{return n[1]==="y"}return!1};return an=function(){return!Object.assign||t()||r()?e:Object.assign},an}var sn,Po;function Bs(){if(Po)return sn;Po=1;var e=_t(),t=yi();return sn=function(){var n=t();return e(Object,{assign:n},{assign:function(){return Object.assign!==n}}),n},sn}var ln,$o;function Ls(){if($o)return ln;$o=1;var e=_t(),t=wr(),r=gi(),n=yi(),o=Bs(),a=t.apply(n()),i=function(l,u){return a(Object,arguments)};return e(i,{getPolyfill:n,implementation:r,shim:o}),ln=i,ln}var un,Oo;function bi(){if(Oo)return un;Oo=1;var e=jt(),t=wr(),r=t(e("String.prototype.indexOf"));return un=function(o,a){var i=e(o,!!a);return typeof i=="function"&&r(o,".prototype.")>-1?t(i):i},un}var cn,ko;function Ds(){if(ko)return cn;ko=1;var e=function(){return typeof(function(){}).name=="string"},t=Object.getOwnPropertyDescriptor;if(t)try{t([],"length")}catch{t=null}e.functionsHaveConfigurableNames=function(){if(!e()||!t)return!1;var o=t(function(){},"name");return!!o&&!!o.configurable};var r=Function.prototype.bind;return e.boundFunctionsHaveNames=function(){return e()&&typeof r=="function"&&(function(){}).bind().name!==""},cn=e,cn}var fn,Io;function js(){if(Io)return fn;Io=1;var e=si(),t=ii()(),r=Ds().functionsHaveConfigurableNames(),n=Nt();return fn=function(a,i){if(typeof a!="function")throw new n("`fn` is not a function");var s=arguments.length>2&&!!arguments[2];return(!s||r)&&(t?e(a,"name",i,!0,!0):e(a,"name",i)),a},fn}var pn,Mo;function xi(){if(Mo)return pn;Mo=1;var e=js(),t=Nt(),r=Object;return pn=e(function(){if(this==null||this!==r(this))throw new t("RegExp.prototype.flags getter called on non-object");var o="";return this.hasIndices&&(o+="d"),this.global&&(o+="g"),this.ignoreCase&&(o+="i"),this.multiline&&(o+="m"),this.dotAll&&(o+="s"),this.unicode&&(o+="u"),this.unicodeSets&&(o+="v"),this.sticky&&(o+="y"),o},"get flags",!0),pn}var dn,To;function Si(){if(To)return dn;To=1;var e=xi(),t=_t().supportsDescriptors,r=Object.getOwnPropertyDescriptor;return dn=function(){if(t&&/a/mig.flags==="gim"){var o=r(RegExp.prototype,"flags");if(o&&typeof o.get=="function"&&"dotAll"in RegExp.prototype&&"hasIndices"in RegExp.prototype){var a="",i={};if(Object.defineProperty(i,"hasIndices",{get:function(){a+="d"}}),Object.defineProperty(i,"sticky",{get:function(){a+="y"}}),o.get.call(i),a==="dy")return o.get}}return e},dn}var vn,Ao;function Ns(){if(Ao)return vn;Ao=1;var e=_t().supportsDescriptors,t=Si(),r=ms(),n=Object.defineProperty,o=vs(),a=ds(),i=/a/;return vn=function(){if(!e||!a)throw new o("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var l=t(),u=a(i),c=r(u,"flags");return(!c||c.get!==l)&&n(u,"flags",{configurable:!0,enumerable:!1,get:l}),l},vn}var mn,Bo;function _s(){if(Bo)return mn;Bo=1;var e=_t(),t=wr(),r=xi(),n=Si(),o=Ns(),a=t(n());return e(a,{getPolyfill:n,implementation:r,shim:o}),mn=a,mn}var Qt={exports:{}};const qs={},Ws=Object.freeze(Object.defineProperty({__proto__:null,default:qs},Symbol.toStringTag,{value:"Module"})),zs=ai(Ws);var hn,Lo;function Hr(){if(Lo)return hn;Lo=1;var e=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=e&&t&&typeof t.get=="function"?t.get:null,n=e&&Map.prototype.forEach,o=typeof Set=="function"&&Set.prototype,a=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,i=o&&a&&typeof a.get=="function"?a.get:null,s=o&&Set.prototype.forEach,l=typeof WeakMap=="function"&&WeakMap.prototype,u=l?WeakMap.prototype.has:null,c=typeof WeakSet=="function"&&WeakSet.prototype,f=c?WeakSet.prototype.has:null,y=typeof WeakRef=="function"&&WeakRef.prototype,v=y?WeakRef.prototype.deref:null,g=Boolean.prototype.valueOf,b=Object.prototype.toString,h=Function.prototype.toString,R=String.prototype.match,P=String.prototype.slice,S=String.prototype.replace,x=String.prototype.toUpperCase,C=String.prototype.toLowerCase,I=RegExp.prototype.test,$=Array.prototype.concat,A=Array.prototype.join,k=Array.prototype.slice,B=Math.floor,N=typeof BigInt=="function"?BigInt.prototype.valueOf:null,z=Object.getOwnPropertySymbols,j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,X=typeof Symbol=="function"&&typeof Symbol.iterator=="object",D=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===X||!0)?Symbol.toStringTag:null,H=Object.prototype.propertyIsEnumerable,W=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(p){return p.__proto__}:null);function Y(p,m){if(p===1/0||p===-1/0||p!==p||p&&p>-1e3&&p<1e3||I.call(/e/,m))return m;var re=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof p=="number"){var pe=p<0?-B(-p):B(p);if(pe!==p){var de=String(pe),Q=P.call(m,de.length+1);return S.call(de,re,"$&_")+"."+S.call(S.call(Q,/([0-9]{3})/g,"$&_"),/_$/,"")}}return S.call(m,re,"$&_")}var Z=zs,fe=Z.custom,Ce=le(fe)?fe:null,_={__proto__:null,double:'"',single:"'"},he={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};hn=function p(m,re,pe,de){var Q=re||{};if(ge(Q,"quoteStyle")&&!ge(_,Q.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ge(Q,"maxStringLength")&&(typeof Q.maxStringLength=="number"?Q.maxStringLength<0&&Q.maxStringLength!==1/0:Q.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var We=ge(Q,"customInspect")?Q.customInspect:!0;if(typeof We!="boolean"&&We!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ge(Q,"indent")&&Q.indent!==null&&Q.indent!==" "&&!(parseInt(Q.indent,10)===Q.indent&&Q.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ge(Q,"numericSeparator")&&typeof Q.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var He=Q.numericSeparator;if(typeof m>"u")return"undefined";if(m===null)return"null";if(typeof m=="boolean")return m?"true":"false";if(typeof m=="string")return Ee(m,Q);if(typeof m=="number"){if(m===0)return 1/0/m>0?"0":"-0";var ke=String(m);return He?Y(m,ke):ke}if(typeof m=="bigint"){var ze=String(m)+"n";return He?Y(m,ze):ze}var Ot=typeof Q.depth>"u"?5:Q.depth;if(typeof pe>"u"&&(pe=0),pe>=Ot&&Ot>0&&typeof m=="object")return F(m)?"[Array]":"[Object]";var Ke=ae(Q,pe);if(typeof de>"u")de=[];else if(ue(de,m)>=0)return"[Circular]";function Le(Ie,Ft,Jr){if(Ft&&(de=k.call(de),de.push(Ft)),Jr){var Cr={depth:Q.depth};return ge(Q,"quoteStyle")&&(Cr.quoteStyle=Q.quoteStyle),p(Ie,Cr,pe+1,de)}return p(Ie,Q,pe+1,de)}if(typeof m=="function"&&!J(m)){var Et=qe(m),qt=Be(m,Le);return"[Function"+(Et?": "+Et:" (anonymous)")+"]"+(qt.length>0?" { "+A.call(qt,", ")+" }":"")}if(le(m)){var Wt=X?S.call(String(m),/^(Symbol\(.*\))_[^)]*$/,"$1"):j.call(m);return typeof m=="object"&&!X?E(Wt):Wt}if($e(m)){for(var ct="<"+C.call(String(m.nodeName)),kt=m.attributes||[],Rt=0;Rt<kt.length;Rt++)ct+=" "+kt[Rt].name+"="+w(T(kt[Rt].value),"double",Q);return ct+=">",m.childNodes&&m.childNodes.length&&(ct+="..."),ct+="</"+C.call(String(m.nodeName))+">",ct}if(F(m)){if(m.length===0)return"[]";var It=Be(m,Le);return Ke&&!ie(It)?"["+Ae(It,Ke)+"]":"[ "+A.call(It,", ")+" ]"}if(se(m)){var ft=Be(m,Le);return!("cause"in Error.prototype)&&"cause"in m&&!H.call(m,"cause")?"{ ["+String(m)+"] "+A.call($.call("[cause]: "+Le(m.cause),ft),", ")+" }":ft.length===0?"["+String(m)+"]":"{ ["+String(m)+"] "+A.call(ft,", ")+" }"}if(typeof m=="object"&&We){if(Ce&&typeof m[Ce]=="function"&&Z)return Z(m,{depth:Ot-pe});if(We!=="symbol"&&typeof m.inspect=="function")return m.inspect()}if(Se(m)){var zt=[];return n&&n.call(m,function(Ie,Ft){zt.push(Le(Ft,m,!0)+" => "+Le(Ie,m))}),oe("Map",r.call(m),zt,Ke)}if(Pe(m)){var Ct=[];return s&&s.call(m,function(Ie){Ct.push(Le(Ie,m))}),oe("Set",i.call(m),Ct,Ke)}if(Ne(m))return q("WeakMap");if(Oe(m))return q("WeakSet");if(_e(m))return q("WeakRef");if(G(m))return E(Le(Number(m)));if(te(m))return E(Le(N.call(m)));if(ee(m))return E(g.call(m));if(ne(m))return E(Le(String(m)));if(typeof window<"u"&&m===window)return"{ [object Window] }";if(typeof globalThis<"u"&&m===globalThis||typeof yo<"u"&&m===yo)return"{ [object globalThis] }";if(!U(m)&&!J(m)){var pt=Be(m,Le),Vt=W?W(m)===Object.prototype:m instanceof Object||m.constructor===Object,ye=m instanceof Object?"":"null prototype",we=!Vt&&D&&Object(m)===m&&D in m?P.call(me(m),8,-1):ye?"Object":"",Mt=Vt||typeof m.constructor!="function"?"":m.constructor.name?m.constructor.name+" ":"",at=Mt+(we||ye?"["+A.call($.call([],we||[],ye||[]),": ")+"] ":"");return pt.length===0?at+"{}":Ke?at+"{"+Ae(pt,Ke)+"}":at+"{ "+A.call(pt,", ")+" }"}return String(m)};function w(p,m,re){var pe=re.quoteStyle||m,de=_[pe];return de+p+de}function T(p){return S.call(String(p),/"/g,""")}function V(p){return!D||!(typeof p=="object"&&(D in p||typeof p[D]<"u"))}function F(p){return me(p)==="[object Array]"&&V(p)}function U(p){return me(p)==="[object Date]"&&V(p)}function J(p){return me(p)==="[object RegExp]"&&V(p)}function se(p){return me(p)==="[object Error]"&&V(p)}function ne(p){return me(p)==="[object String]"&&V(p)}function G(p){return me(p)==="[object Number]"&&V(p)}function ee(p){return me(p)==="[object Boolean]"&&V(p)}function le(p){if(X)return p&&typeof p=="object"&&p instanceof Symbol;if(typeof p=="symbol")return!0;if(!p||typeof p!="object"||!j)return!1;try{return j.call(p),!0}catch{}return!1}function te(p){if(!p||typeof p!="object"||!N)return!1;try{return N.call(p),!0}catch{}return!1}var xe=Object.prototype.hasOwnProperty||function(p){return p in this};function ge(p,m){return xe.call(p,m)}function me(p){return b.call(p)}function qe(p){if(p.name)return p.name;var m=R.call(h.call(p),/^function\s*([\w$]+)/);return m?m[1]:null}function ue(p,m){if(p.indexOf)return p.indexOf(m);for(var re=0,pe=p.length;re<pe;re++)if(p[re]===m)return re;return-1}function Se(p){if(!r||!p||typeof p!="object")return!1;try{r.call(p);try{i.call(p)}catch{return!0}return p instanceof Map}catch{}return!1}function Ne(p){if(!u||!p||typeof p!="object")return!1;try{u.call(p,u);try{f.call(p,f)}catch{return!0}return p instanceof WeakMap}catch{}return!1}function _e(p){if(!v||!p||typeof p!="object")return!1;try{return v.call(p),!0}catch{}return!1}function Pe(p){if(!i||!p||typeof p!="object")return!1;try{i.call(p);try{r.call(p)}catch{return!0}return p instanceof Set}catch{}return!1}function Oe(p){if(!f||!p||typeof p!="object")return!1;try{f.call(p,f);try{u.call(p,u)}catch{return!0}return p instanceof WeakSet}catch{}return!1}function $e(p){return!p||typeof p!="object"?!1:typeof HTMLElement<"u"&&p instanceof HTMLElement?!0:typeof p.nodeName=="string"&&typeof p.getAttribute=="function"}function Ee(p,m){if(p.length>m.maxStringLength){var re=p.length-m.maxStringLength,pe="... "+re+" more character"+(re>1?"s":"");return Ee(P.call(p,0,m.maxStringLength),m)+pe}var de=he[m.quoteStyle||"single"];de.lastIndex=0;var Q=S.call(S.call(p,de,"\\$1"),/[\x00-\x1f]/g,M);return w(Q,"single",m)}function M(p){var m=p.charCodeAt(0),re={8:"b",9:"t",10:"n",12:"f",13:"r"}[m];return re?"\\"+re:"\\x"+(m<16?"0":"")+x.call(m.toString(16))}function E(p){return"Object("+p+")"}function q(p){return p+" { ? }"}function oe(p,m,re,pe){var de=pe?Ae(re,pe):A.call(re,", ");return p+" ("+m+") {"+de+"}"}function ie(p){for(var m=0;m<p.length;m++)if(ue(p[m],`
|
|
1
|
+
import{e as ai,c as yo,g as rt,r as d,j as L,f as ss,h as yt,R as vt,i as Pr,k as ls,l as us}from"./react-E8ng6RF2.js";import{X as cs,Y as fs}from"./index-Cqm_NJEy.js";import{h as ii,i as si,j as li,a as nt,k as ps,l as wr,m as jt,b as Nt,e as ds,n as vs,o as ms,p as hs,q as gs,d as Fr,s as ui,g as ci,c as fi,f as ys,t as bs,r as xs}from"./index-B5lBgsVo.js";import{p as Qr}from"./ethers-BxoDGoYp.js";import{n as je,c as Ss,S as bo}from"./SvgIcon-CqOcU2_R.js";import{b as O,C as pi,d as ce,n as bt,T as ws,o as Es,p as Rs,q as Cs,t as Ps,_ as Te,v as di,x as $s,g as Pt,a as ot,u as ut,c as be,e as xt,s as Re,y as Me,k as no,z as Os,A as Jt,B as ks,D as Is,E as Ms,F as vi,G as mi}from"./generateUtilityClasses-sji8XAMf.js";import{C as Ts}from"./CircularProgress-D-iaLmF3.js";var Ue=cs(),en,xo;function hi(){if(xo)return en;xo=1;var e=Object.prototype.toString;return en=function(r){var n=e.call(r),o=n==="[object Arguments]";return o||(o=n!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&e.call(r.callee)==="[object Function]"),o},en}var tn,So;function As(){if(So)return tn;So=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=hi(),o=Object.prototype.propertyIsEnumerable,a=!o.call({toString:null},"toString"),i=o.call(function(){},"prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(y){var v=y.constructor;return v&&v.prototype===y},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=(function(){if(typeof window>"u")return!1;for(var y in window)try{if(!u["$"+y]&&t.call(window,y)&&window[y]!==null&&typeof window[y]=="object")try{l(window[y])}catch{return!0}}catch{return!0}return!1})(),f=function(y){if(typeof window>"u"||!c)return l(y);try{return l(y)}catch{return!1}};e=function(v){var g=v!==null&&typeof v=="object",b=r.call(v)==="[object Function]",h=n(v),R=g&&r.call(v)==="[object String]",P=[];if(!g&&!b&&!h)throw new TypeError("Object.keys called on a non-object");var S=i&&b;if(R&&v.length>0&&!t.call(v,0))for(var x=0;x<v.length;++x)P.push(String(x));if(h&&v.length>0)for(var C=0;C<v.length;++C)P.push(String(C));else for(var I in v)!(S&&I==="prototype")&&t.call(v,I)&&P.push(String(I));if(a)for(var $=f(v),A=0;A<s.length;++A)!($&&s[A]==="constructor")&&t.call(v,s[A])&&P.push(s[A]);return P}}return tn=e,tn}var rn,wo;function oo(){if(wo)return rn;wo=1;var e=Array.prototype.slice,t=hi(),r=Object.keys,n=r?function(i){return r(i)}:As(),o=Object.keys;return n.shim=function(){if(Object.keys){var i=(function(){var s=Object.keys(arguments);return s&&s.length===arguments.length})(1,2);i||(Object.keys=function(l){return t(l)?o(e.call(l)):o(l)})}else Object.keys=n;return Object.keys||n},rn=n,rn}var nn,Eo;function _t(){if(Eo)return nn;Eo=1;var e=oo(),t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",r=Object.prototype.toString,n=Array.prototype.concat,o=si(),a=function(u){return typeof u=="function"&&r.call(u)==="[object Function]"},i=ii()(),s=function(u,c,f,y){if(c in u){if(y===!0){if(u[c]===f)return}else if(!a(y)||!y())return}i?o(u,c,f,!0):o(u,c,f)},l=function(u,c){var f=arguments.length>2?arguments[2]:{},y=e(c);t&&(y=n.call(y,Object.getOwnPropertySymbols(c)));for(var v=0;v<y.length;v+=1)s(u,y[v],c[y[v]],f[y[v]])};return l.supportsDescriptors=!!i,nn=l,nn}var on,Ro;function gi(){if(Ro)return on;Ro=1;var e=oo(),t=li()(),r=nt(),n=ps(),o=r("Array.prototype.push"),a=r("Object.prototype.propertyIsEnumerable"),i=t?n.getOwnPropertySymbols:null;return on=function(l,u){if(l==null)throw new TypeError("target must be an object");var c=n(l);if(arguments.length===1)return c;for(var f=1;f<arguments.length;++f){var y=n(arguments[f]),v=e(y),g=t&&(n.getOwnPropertySymbols||i);if(g)for(var b=g(y),h=0;h<b.length;++h){var R=b[h];a(y,R)&&o(v,R)}for(var P=0;P<v.length;++P){var S=v[P];if(a(y,S)){var x=y[S];c[S]=x}}}return c},on}var an,Co;function yi(){if(Co)return an;Co=1;var e=gi(),t=function(){if(!Object.assign)return!1;for(var n="abcdefghijklmnopqrst",o=n.split(""),a={},i=0;i<o.length;++i)a[o[i]]=o[i];var s=Object.assign({},a),l="";for(var u in s)l+=u;return n!==l},r=function(){if(!Object.assign||!Object.preventExtensions)return!1;var n=Object.preventExtensions({1:2});try{Object.assign(n,"xy")}catch{return n[1]==="y"}return!1};return an=function(){return!Object.assign||t()||r()?e:Object.assign},an}var sn,Po;function Bs(){if(Po)return sn;Po=1;var e=_t(),t=yi();return sn=function(){var n=t();return e(Object,{assign:n},{assign:function(){return Object.assign!==n}}),n},sn}var ln,$o;function Ls(){if($o)return ln;$o=1;var e=_t(),t=wr(),r=gi(),n=yi(),o=Bs(),a=t.apply(n()),i=function(l,u){return a(Object,arguments)};return e(i,{getPolyfill:n,implementation:r,shim:o}),ln=i,ln}var un,Oo;function bi(){if(Oo)return un;Oo=1;var e=jt(),t=wr(),r=t(e("String.prototype.indexOf"));return un=function(o,a){var i=e(o,!!a);return typeof i=="function"&&r(o,".prototype.")>-1?t(i):i},un}var cn,ko;function Ds(){if(ko)return cn;ko=1;var e=function(){return typeof(function(){}).name=="string"},t=Object.getOwnPropertyDescriptor;if(t)try{t([],"length")}catch{t=null}e.functionsHaveConfigurableNames=function(){if(!e()||!t)return!1;var o=t(function(){},"name");return!!o&&!!o.configurable};var r=Function.prototype.bind;return e.boundFunctionsHaveNames=function(){return e()&&typeof r=="function"&&(function(){}).bind().name!==""},cn=e,cn}var fn,Io;function js(){if(Io)return fn;Io=1;var e=si(),t=ii()(),r=Ds().functionsHaveConfigurableNames(),n=Nt();return fn=function(a,i){if(typeof a!="function")throw new n("`fn` is not a function");var s=arguments.length>2&&!!arguments[2];return(!s||r)&&(t?e(a,"name",i,!0,!0):e(a,"name",i)),a},fn}var pn,Mo;function xi(){if(Mo)return pn;Mo=1;var e=js(),t=Nt(),r=Object;return pn=e(function(){if(this==null||this!==r(this))throw new t("RegExp.prototype.flags getter called on non-object");var o="";return this.hasIndices&&(o+="d"),this.global&&(o+="g"),this.ignoreCase&&(o+="i"),this.multiline&&(o+="m"),this.dotAll&&(o+="s"),this.unicode&&(o+="u"),this.unicodeSets&&(o+="v"),this.sticky&&(o+="y"),o},"get flags",!0),pn}var dn,To;function Si(){if(To)return dn;To=1;var e=xi(),t=_t().supportsDescriptors,r=Object.getOwnPropertyDescriptor;return dn=function(){if(t&&/a/mig.flags==="gim"){var o=r(RegExp.prototype,"flags");if(o&&typeof o.get=="function"&&"dotAll"in RegExp.prototype&&"hasIndices"in RegExp.prototype){var a="",i={};if(Object.defineProperty(i,"hasIndices",{get:function(){a+="d"}}),Object.defineProperty(i,"sticky",{get:function(){a+="y"}}),o.get.call(i),a==="dy")return o.get}}return e},dn}var vn,Ao;function Ns(){if(Ao)return vn;Ao=1;var e=_t().supportsDescriptors,t=Si(),r=ms(),n=Object.defineProperty,o=vs(),a=ds(),i=/a/;return vn=function(){if(!e||!a)throw new o("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var l=t(),u=a(i),c=r(u,"flags");return(!c||c.get!==l)&&n(u,"flags",{configurable:!0,enumerable:!1,get:l}),l},vn}var mn,Bo;function _s(){if(Bo)return mn;Bo=1;var e=_t(),t=wr(),r=xi(),n=Si(),o=Ns(),a=t(n());return e(a,{getPolyfill:n,implementation:r,shim:o}),mn=a,mn}var Qt={exports:{}};const qs={},Ws=Object.freeze(Object.defineProperty({__proto__:null,default:qs},Symbol.toStringTag,{value:"Module"})),zs=ai(Ws);var hn,Lo;function Hr(){if(Lo)return hn;Lo=1;var e=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=e&&t&&typeof t.get=="function"?t.get:null,n=e&&Map.prototype.forEach,o=typeof Set=="function"&&Set.prototype,a=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,i=o&&a&&typeof a.get=="function"?a.get:null,s=o&&Set.prototype.forEach,l=typeof WeakMap=="function"&&WeakMap.prototype,u=l?WeakMap.prototype.has:null,c=typeof WeakSet=="function"&&WeakSet.prototype,f=c?WeakSet.prototype.has:null,y=typeof WeakRef=="function"&&WeakRef.prototype,v=y?WeakRef.prototype.deref:null,g=Boolean.prototype.valueOf,b=Object.prototype.toString,h=Function.prototype.toString,R=String.prototype.match,P=String.prototype.slice,S=String.prototype.replace,x=String.prototype.toUpperCase,C=String.prototype.toLowerCase,I=RegExp.prototype.test,$=Array.prototype.concat,A=Array.prototype.join,k=Array.prototype.slice,B=Math.floor,N=typeof BigInt=="function"?BigInt.prototype.valueOf:null,z=Object.getOwnPropertySymbols,j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,X=typeof Symbol=="function"&&typeof Symbol.iterator=="object",D=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===X||!0)?Symbol.toStringTag:null,H=Object.prototype.propertyIsEnumerable,W=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(p){return p.__proto__}:null);function Y(p,m){if(p===1/0||p===-1/0||p!==p||p&&p>-1e3&&p<1e3||I.call(/e/,m))return m;var re=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof p=="number"){var pe=p<0?-B(-p):B(p);if(pe!==p){var de=String(pe),Q=P.call(m,de.length+1);return S.call(de,re,"$&_")+"."+S.call(S.call(Q,/([0-9]{3})/g,"$&_"),/_$/,"")}}return S.call(m,re,"$&_")}var Z=zs,fe=Z.custom,Ce=le(fe)?fe:null,_={__proto__:null,double:'"',single:"'"},he={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};hn=function p(m,re,pe,de){var Q=re||{};if(ge(Q,"quoteStyle")&&!ge(_,Q.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ge(Q,"maxStringLength")&&(typeof Q.maxStringLength=="number"?Q.maxStringLength<0&&Q.maxStringLength!==1/0:Q.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var We=ge(Q,"customInspect")?Q.customInspect:!0;if(typeof We!="boolean"&&We!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ge(Q,"indent")&&Q.indent!==null&&Q.indent!==" "&&!(parseInt(Q.indent,10)===Q.indent&&Q.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ge(Q,"numericSeparator")&&typeof Q.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var He=Q.numericSeparator;if(typeof m>"u")return"undefined";if(m===null)return"null";if(typeof m=="boolean")return m?"true":"false";if(typeof m=="string")return Ee(m,Q);if(typeof m=="number"){if(m===0)return 1/0/m>0?"0":"-0";var ke=String(m);return He?Y(m,ke):ke}if(typeof m=="bigint"){var ze=String(m)+"n";return He?Y(m,ze):ze}var Ot=typeof Q.depth>"u"?5:Q.depth;if(typeof pe>"u"&&(pe=0),pe>=Ot&&Ot>0&&typeof m=="object")return F(m)?"[Array]":"[Object]";var Ke=ae(Q,pe);if(typeof de>"u")de=[];else if(ue(de,m)>=0)return"[Circular]";function Le(Ie,Ft,Jr){if(Ft&&(de=k.call(de),de.push(Ft)),Jr){var Cr={depth:Q.depth};return ge(Q,"quoteStyle")&&(Cr.quoteStyle=Q.quoteStyle),p(Ie,Cr,pe+1,de)}return p(Ie,Q,pe+1,de)}if(typeof m=="function"&&!J(m)){var Et=qe(m),qt=Be(m,Le);return"[Function"+(Et?": "+Et:" (anonymous)")+"]"+(qt.length>0?" { "+A.call(qt,", ")+" }":"")}if(le(m)){var Wt=X?S.call(String(m),/^(Symbol\(.*\))_[^)]*$/,"$1"):j.call(m);return typeof m=="object"&&!X?E(Wt):Wt}if($e(m)){for(var ct="<"+C.call(String(m.nodeName)),kt=m.attributes||[],Rt=0;Rt<kt.length;Rt++)ct+=" "+kt[Rt].name+"="+w(T(kt[Rt].value),"double",Q);return ct+=">",m.childNodes&&m.childNodes.length&&(ct+="..."),ct+="</"+C.call(String(m.nodeName))+">",ct}if(F(m)){if(m.length===0)return"[]";var It=Be(m,Le);return Ke&&!ie(It)?"["+Ae(It,Ke)+"]":"[ "+A.call(It,", ")+" ]"}if(se(m)){var ft=Be(m,Le);return!("cause"in Error.prototype)&&"cause"in m&&!H.call(m,"cause")?"{ ["+String(m)+"] "+A.call($.call("[cause]: "+Le(m.cause),ft),", ")+" }":ft.length===0?"["+String(m)+"]":"{ ["+String(m)+"] "+A.call(ft,", ")+" }"}if(typeof m=="object"&&We){if(Ce&&typeof m[Ce]=="function"&&Z)return Z(m,{depth:Ot-pe});if(We!=="symbol"&&typeof m.inspect=="function")return m.inspect()}if(Se(m)){var zt=[];return n&&n.call(m,function(Ie,Ft){zt.push(Le(Ft,m,!0)+" => "+Le(Ie,m))}),oe("Map",r.call(m),zt,Ke)}if(Pe(m)){var Ct=[];return s&&s.call(m,function(Ie){Ct.push(Le(Ie,m))}),oe("Set",i.call(m),Ct,Ke)}if(Ne(m))return q("WeakMap");if(Oe(m))return q("WeakSet");if(_e(m))return q("WeakRef");if(G(m))return E(Le(Number(m)));if(te(m))return E(Le(N.call(m)));if(ee(m))return E(g.call(m));if(ne(m))return E(Le(String(m)));if(typeof window<"u"&&m===window)return"{ [object Window] }";if(typeof globalThis<"u"&&m===globalThis||typeof yo<"u"&&m===yo)return"{ [object globalThis] }";if(!U(m)&&!J(m)){var pt=Be(m,Le),Vt=W?W(m)===Object.prototype:m instanceof Object||m.constructor===Object,ye=m instanceof Object?"":"null prototype",we=!Vt&&D&&Object(m)===m&&D in m?P.call(me(m),8,-1):ye?"Object":"",Mt=Vt||typeof m.constructor!="function"?"":m.constructor.name?m.constructor.name+" ":"",at=Mt+(we||ye?"["+A.call($.call([],we||[],ye||[]),": ")+"] ":"");return pt.length===0?at+"{}":Ke?at+"{"+Ae(pt,Ke)+"}":at+"{ "+A.call(pt,", ")+" }"}return String(m)};function w(p,m,re){var pe=re.quoteStyle||m,de=_[pe];return de+p+de}function T(p){return S.call(String(p),/"/g,""")}function V(p){return!D||!(typeof p=="object"&&(D in p||typeof p[D]<"u"))}function F(p){return me(p)==="[object Array]"&&V(p)}function U(p){return me(p)==="[object Date]"&&V(p)}function J(p){return me(p)==="[object RegExp]"&&V(p)}function se(p){return me(p)==="[object Error]"&&V(p)}function ne(p){return me(p)==="[object String]"&&V(p)}function G(p){return me(p)==="[object Number]"&&V(p)}function ee(p){return me(p)==="[object Boolean]"&&V(p)}function le(p){if(X)return p&&typeof p=="object"&&p instanceof Symbol;if(typeof p=="symbol")return!0;if(!p||typeof p!="object"||!j)return!1;try{return j.call(p),!0}catch{}return!1}function te(p){if(!p||typeof p!="object"||!N)return!1;try{return N.call(p),!0}catch{}return!1}var xe=Object.prototype.hasOwnProperty||function(p){return p in this};function ge(p,m){return xe.call(p,m)}function me(p){return b.call(p)}function qe(p){if(p.name)return p.name;var m=R.call(h.call(p),/^function\s*([\w$]+)/);return m?m[1]:null}function ue(p,m){if(p.indexOf)return p.indexOf(m);for(var re=0,pe=p.length;re<pe;re++)if(p[re]===m)return re;return-1}function Se(p){if(!r||!p||typeof p!="object")return!1;try{r.call(p);try{i.call(p)}catch{return!0}return p instanceof Map}catch{}return!1}function Ne(p){if(!u||!p||typeof p!="object")return!1;try{u.call(p,u);try{f.call(p,f)}catch{return!0}return p instanceof WeakMap}catch{}return!1}function _e(p){if(!v||!p||typeof p!="object")return!1;try{return v.call(p),!0}catch{}return!1}function Pe(p){if(!i||!p||typeof p!="object")return!1;try{i.call(p);try{r.call(p)}catch{return!0}return p instanceof Set}catch{}return!1}function Oe(p){if(!f||!p||typeof p!="object")return!1;try{f.call(p,f);try{u.call(p,u)}catch{return!0}return p instanceof WeakSet}catch{}return!1}function $e(p){return!p||typeof p!="object"?!1:typeof HTMLElement<"u"&&p instanceof HTMLElement?!0:typeof p.nodeName=="string"&&typeof p.getAttribute=="function"}function Ee(p,m){if(p.length>m.maxStringLength){var re=p.length-m.maxStringLength,pe="... "+re+" more character"+(re>1?"s":"");return Ee(P.call(p,0,m.maxStringLength),m)+pe}var de=he[m.quoteStyle||"single"];de.lastIndex=0;var Q=S.call(S.call(p,de,"\\$1"),/[\x00-\x1f]/g,M);return w(Q,"single",m)}function M(p){var m=p.charCodeAt(0),re={8:"b",9:"t",10:"n",12:"f",13:"r"}[m];return re?"\\"+re:"\\x"+(m<16?"0":"")+x.call(m.toString(16))}function E(p){return"Object("+p+")"}function q(p){return p+" { ? }"}function oe(p,m,re,pe){var de=pe?Ae(re,pe):A.call(re,", ");return p+" ("+m+") {"+de+"}"}function ie(p){for(var m=0;m<p.length;m++)if(ue(p[m],`
|
|
2
2
|
`)>=0)return!1;return!0}function ae(p,m){var re;if(p.indent===" ")re=" ";else if(typeof p.indent=="number"&&p.indent>0)re=A.call(Array(p.indent+1)," ");else return null;return{base:re,prev:A.call(Array(m+1),re)}}function Ae(p,m){if(p.length===0)return"";var re=`
|
|
3
3
|
`+m.prev+m.base;return re+A.call(p,","+re)+`
|
|
4
4
|
`+m.prev}function Be(p,m){var re=F(p),pe=[];if(re){pe.length=p.length;for(var de=0;de<p.length;de++)pe[de]=ge(p,de)?m(p[de],p):""}var Q=typeof z=="function"?z(p):[],We;if(X){We={};for(var He=0;He<Q.length;He++)We["$"+Q[He]]=Q[He]}for(var ke in p)ge(p,ke)&&(re&&String(Number(ke))===ke&&ke<p.length||X&&We["$"+ke]instanceof Symbol||(I.call(/[^\w$]/,ke)?pe.push(m(ke,p)+": "+m(p[ke],p)):pe.push(ke+": "+m(p[ke],p))));if(typeof z=="function")for(var ze=0;ze<Q.length;ze++)H.call(p,Q[ze])&&pe.push("["+m(Q[ze])+"]: "+m(p[Q[ze]],p));return pe}return hn}var gn,Do;function Vs(){if(Do)return gn;Do=1;var e=Hr(),t=Nt(),r=function(s,l,u){for(var c=s,f;(f=c.next)!=null;c=f)if(f.key===l)return c.next=f.next,u||(f.next=s.next,s.next=f),f},n=function(s,l){if(s){var u=r(s,l);return u&&u.value}},o=function(s,l,u){var c=r(s,l);c?c.value=u:s.next={key:l,next:s.next,value:u}},a=function(s,l){return s?!!r(s,l):!1},i=function(s,l){if(s)return r(s,l,!0)};return gn=function(){var l,u={assert:function(c){if(!u.has(c))throw new t("Side channel does not contain "+e(c))},delete:function(c){var f=i(l,c);return f&&l&&!l.next&&(l=void 0),!!f},get:function(c){return n(l,c)},has:function(c){return a(l,c)},set:function(c,f){l||(l={next:void 0}),o(l,c,f)}};return u},gn}var yn,jo;function wi(){if(jo)return yn;jo=1;var e=jt(),t=nt(),r=Hr(),n=Nt(),o=e("%Map%",!0),a=t("Map.prototype.get",!0),i=t("Map.prototype.set",!0),s=t("Map.prototype.has",!0),l=t("Map.prototype.delete",!0),u=t("Map.prototype.size",!0);return yn=!!o&&function(){var f,y={assert:function(v){if(!y.has(v))throw new n("Side channel does not contain "+r(v))},delete:function(v){if(f){var g=l(f,v);return u(f)===0&&(f=void 0),g}return!1},get:function(v){if(f)return a(f,v)},has:function(v){return f?s(f,v):!1},set:function(v,g){f||(f=new o),i(f,v,g)}};return y},yn}var bn,No;function Fs(){if(No)return bn;No=1;var e=jt(),t=nt(),r=Hr(),n=wi(),o=Nt(),a=e("%WeakMap%",!0),i=t("WeakMap.prototype.get",!0),s=t("WeakMap.prototype.set",!0),l=t("WeakMap.prototype.has",!0),u=t("WeakMap.prototype.delete",!0);return bn=a?function(){var f,y,v={assert:function(g){if(!v.has(g))throw new o("Side channel does not contain "+r(g))},delete:function(g){if(a&&g&&(typeof g=="object"||typeof g=="function")){if(f)return u(f,g)}else if(n&&y)return y.delete(g);return!1},get:function(g){return a&&g&&(typeof g=="object"||typeof g=="function")&&f?i(f,g):y&&y.get(g)},has:function(g){return a&&g&&(typeof g=="object"||typeof g=="function")&&f?l(f,g):!!y&&y.has(g)},set:function(g,b){a&&g&&(typeof g=="object"||typeof g=="function")?(f||(f=new a),s(f,g,b)):n&&(y||(y=n()),y.set(g,b))}};return v}:n,bn}var xn,_o;function Ei(){if(_o)return xn;_o=1;var e=Nt(),t=Hr(),r=Vs(),n=wi(),o=Fs(),a=o||n||r;return xn=function(){var s,l={assert:function(u){if(!l.has(u)){var c=u&&Object(u)===u?"the given object key":t(u);throw new e("Side channel does not contain "+c)}},delete:function(u){return!!s&&s.delete(u)},get:function(u){return s&&s.get(u)},has:function(u){return!!s&&s.has(u)},set:function(u,c){s||(s=a()),s.set(u,c)}};return l},xn}var Sn,qo;function Hs(){if(qo)return Sn;qo=1;var e=hs(),t=Ei()(),r=Nt(),n={assert:function(o,a){if(!o||typeof o!="object"&&typeof o!="function")throw new r("`O` is not an object");if(typeof a!="string")throw new r("`slot` must be a string");if(t.assert(o),!n.has(o,a))throw new r("`"+a+"` is not present on `O`")},get:function(o,a){if(!o||typeof o!="object"&&typeof o!="function")throw new r("`O` is not an object");if(typeof a!="string")throw new r("`slot` must be a string");var i=t.get(o);return i&&i["$"+a]},has:function(o,a){if(!o||typeof o!="object"&&typeof o!="function")throw new r("`O` is not an object");if(typeof a!="string")throw new r("`slot` must be a string");var i=t.get(o);return!!i&&e(i,"$"+a)},set:function(o,a,i){if(!o||typeof o!="object"&&typeof o!="function")throw new r("`O` is not an object");if(typeof a!="string")throw new r("`slot` must be a string");var s=t.get(o);s||(s={},t.set(o,s)),s["$"+a]=i}};return Object.freeze&&Object.freeze(n),Sn=n,Sn}var wn,Wo;function Us(){if(Wo)return wn;Wo=1;var e=Hs(),t=gs(),r=typeof StopIteration=="object"?StopIteration:null;return wn=function(o){if(!r)throw new t("this environment lacks StopIteration");e.set(o,"[[Done]]",!1);var a={next:function(){var s=e.get(this,"[[Iterator]]"),l=!!e.get(s,"[[Done]]");try{return{done:l,value:l?void 0:s.next()}}catch(u){if(e.set(s,"[[Done]]",!0),u!==r)throw u;return{done:!0,value:void 0}}}};return e.set(a,"[[Iterator]]",o),a},wn}var En,zo;function Ri(){if(zo)return En;zo=1;var e=nt(),t=e("String.prototype.valueOf"),r=function(s){try{return t(s),!0}catch{return!1}},n=e("Object.prototype.toString"),o="[object String]",a=Fr()();return En=function(s){return typeof s=="string"?!0:!s||typeof s!="object"?!1:a?r(s):n(s)===o},En}var Rn,Vo;function Ci(){if(Vo)return Rn;Vo=1;var e=typeof Map=="function"&&Map.prototype?Map:null,t=typeof Set=="function"&&Set.prototype?Set:null,r;e||(r=function(i){return!1});var n=e?Map.prototype.has:null,o=t?Set.prototype.has:null;return!r&&!n&&(r=function(i){return!1}),Rn=r||function(i){if(!i||typeof i!="object")return!1;try{if(n.call(i),o)try{o.call(i)}catch{return!0}return i instanceof e}catch{}return!1},Rn}var Cn,Fo;function Pi(){if(Fo)return Cn;Fo=1;var e=typeof Map=="function"&&Map.prototype?Map:null,t=typeof Set=="function"&&Set.prototype?Set:null,r;t||(r=function(i){return!1});var n=e?Map.prototype.has:null,o=t?Set.prototype.has:null;return!r&&!o&&(r=function(i){return!1}),Cn=r||function(i){if(!i||typeof i!="object")return!1;try{if(o.call(i),n)try{n.call(i)}catch{return!0}return i instanceof t}catch{}return!1},Cn}var Ho;function Gs(){if(Ho)return Qt.exports;Ho=1;var e=ci(),t=Us();if(ui()()||li()()){var r=Symbol.iterator;Qt.exports=function(k){if(k!=null&&typeof k[r]<"u")return k[r]();if(e(k))return Array.prototype[r].call(k)}}else{var n=fi(),o=Ri(),a=jt(),i=a("%Map%",!0),s=a("%Set%",!0),l=bi(),u=l("Array.prototype.push"),c=l("String.prototype.charCodeAt"),f=l("String.prototype.slice"),y=function(k,B){var N=k.length;if(B+1>=N)return B+1;var z=c(k,B);if(z<55296||z>56319)return B+1;var j=c(k,B+1);return j<56320||j>57343?B+1:B+2},v=function(k){var B=0;return{next:function(){var z=B>=k.length,j;return z||(j=k[B],B+=1),{done:z,value:j}}}},g=function(k,B){if(n(k)||e(k))return v(k);if(o(k)){var N=0;return{next:function(){var j=y(k,N),X=f(k,N,j);return N=j,{done:j>k.length,value:X}}}}if(B&&typeof k["_es6-shim iterator_"]<"u")return k["_es6-shim iterator_"]()};if(!i&&!s)Qt.exports=function(k){if(k!=null)return g(k,!0)};else{var b=Ci(),h=Pi(),R=l("Map.prototype.forEach",!0),P=l("Set.prototype.forEach",!0);if(typeof Qr>"u"||!Qr.versions||!Qr.versions.node)var S=l("Map.prototype.iterator",!0),x=l("Set.prototype.iterator",!0);var C=l("Map.prototype.@@iterator",!0)||l("Map.prototype._es6-shim iterator_",!0),I=l("Set.prototype.@@iterator",!0)||l("Set.prototype._es6-shim iterator_",!0),$=function(k){if(b(k)){if(S)return t(S(k));if(C)return C(k);if(R){var B=[];return R(k,function(z,j){u(B,[j,z])}),v(B)}}if(h(k)){if(x)return t(x(k));if(I)return I(k);if(P){var N=[];return P(k,function(z){u(N,z)}),v(N)}}};Qt.exports=function(k){return $(k)||g(k)}}}return Qt.exports}var Pn,Uo;function $i(){if(Uo)return Pn;Uo=1;var e=function(t){return t!==t};return Pn=function(r,n){return r===0&&n===0?1/r===1/n:!!(r===n||e(r)&&e(n))},Pn}var $n,Go;function Oi(){if(Go)return $n;Go=1;var e=$i();return $n=function(){return typeof Object.is=="function"?Object.is:e},$n}var On,Yo;function Ys(){if(Yo)return On;Yo=1;var e=Oi(),t=_t();return On=function(){var n=e();return t(Object,{is:n},{is:function(){return Object.is!==n}}),n},On}var kn,Xo;function Xs(){if(Xo)return kn;Xo=1;var e=_t(),t=wr(),r=$i(),n=Oi(),o=Ys(),a=t(n(),Object);return e(a,{getPolyfill:n,implementation:r,shim:o}),kn=a,kn}var In,Ko;function ki(){if(Ko)return In;Ko=1;var e=wr(),t=nt(),r=jt(),n=r("%ArrayBuffer%",!0),o=t("ArrayBuffer.prototype.byteLength",!0),a=t("Object.prototype.toString"),i=!!n&&!o&&new n(0).slice,s=!!i&&e(i);return In=o||s?function(u){if(!u||typeof u!="object")return!1;try{return o?o(u):s(u,0),!0}catch{return!1}}:n?function(u){return a(u)==="[object ArrayBuffer]"}:function(u){return!1},In}var Mn,Zo;function Ks(){if(Zo)return Mn;Zo=1;var e=nt(),t=e("Date.prototype.getDay"),r=function(s){try{return t(s),!0}catch{return!1}},n=e("Object.prototype.toString"),o="[object Date]",a=Fr()();return Mn=function(s){return typeof s!="object"||s===null?!1:a?r(s):n(s)===o},Mn}var Tn,Jo;function Zs(){if(Jo)return Tn;Jo=1;var e=nt(),t=e("SharedArrayBuffer.prototype.byteLength",!0);return Tn=t?function(n){if(!n||typeof n!="object")return!1;try{return t(n),!0}catch{return!1}}:function(n){return!1},Tn}var An,Qo;function Js(){if(Qo)return An;Qo=1;var e=nt(),t=e("Number.prototype.toString"),r=function(s){try{return t(s),!0}catch{return!1}},n=e("Object.prototype.toString"),o="[object Number]",a=Fr()();return An=function(s){return typeof s=="number"?!0:!s||typeof s!="object"?!1:a?r(s):n(s)===o},An}var Bn,ea;function Qs(){if(ea)return Bn;ea=1;var e=nt(),t=e("Boolean.prototype.toString"),r=e("Object.prototype.toString"),n=function(s){try{return t(s),!0}catch{return!1}},o="[object Boolean]",a=Fr()();return Bn=function(s){return typeof s=="boolean"?!0:s===null||typeof s!="object"?!1:a?n(s):r(s)===o},Bn}var $r={exports:{}},ta;function el(){if(ta)return $r.exports;ta=1;var e=nt(),t=e("Object.prototype.toString"),r=ui()(),n=ys();if(r){var o=e("Symbol.prototype.toString"),a=n(/^Symbol\(.*\)$/),i=function(l){return typeof l.valueOf()!="symbol"?!1:a(o(l))};$r.exports=function(l){if(typeof l=="symbol")return!0;if(!l||typeof l!="object"||t(l)!=="[object Symbol]")return!1;try{return i(l)}catch{return!1}}}else $r.exports=function(l){return!1};return $r.exports}var Or={exports:{}},Ln,ra;function tl(){if(ra)return Ln;ra=1;var e=typeof BigInt<"u"&&BigInt;return Ln=function(){return typeof e=="function"&&typeof BigInt=="function"&&typeof e(42)=="bigint"&&typeof BigInt(42)=="bigint"},Ln}var na;function rl(){if(na)return Or.exports;na=1;var e=tl()();if(e){var t=BigInt.prototype.valueOf,r=function(o){try{return t.call(o),!0}catch{}return!1};Or.exports=function(o){return o===null||typeof o>"u"||typeof o=="boolean"||typeof o=="string"||typeof o=="number"||typeof o=="symbol"||typeof o=="function"?!1:typeof o=="bigint"?!0:r(o)}}else Or.exports=function(o){return!1};return Or.exports}var Dn,oa;function nl(){if(oa)return Dn;oa=1;var e=Ri(),t=Js(),r=Qs(),n=el(),o=rl();return Dn=function(i){if(i==null||typeof i!="object"&&typeof i!="function")return null;if(e(i))return"String";if(t(i))return"Number";if(r(i))return"Boolean";if(n(i))return"Symbol";if(o(i))return"BigInt"},Dn}var jn,aa;function ol(){if(aa)return jn;aa=1;var e=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,t=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,r;e||(r=function(i){return!1});var n=e?e.prototype.has:null,o=t?t.prototype.has:null;return!r&&!n&&(r=function(i){return!1}),jn=r||function(i){if(!i||typeof i!="object")return!1;try{if(n.call(i,n),o)try{o.call(i,o)}catch{return!0}return i instanceof e}catch{}return!1},jn}var kr={exports:{}},ia;function al(){if(ia)return kr.exports;ia=1;var e=jt(),t=nt(),r=e("%WeakSet%",!0),n=t("WeakSet.prototype.has",!0);if(n){var o=t("WeakMap.prototype.has",!0);kr.exports=function(i){if(!i||typeof i!="object")return!1;try{if(n(i,n),o)try{o(i,o)}catch{return!0}return i instanceof r}catch{}return!1}}else kr.exports=function(i){return!1};return kr.exports}var Nn,sa;function il(){if(sa)return Nn;sa=1;var e=Ci(),t=Pi(),r=ol(),n=al();return Nn=function(a){if(a&&typeof a=="object"){if(e(a))return"Map";if(t(a))return"Set";if(r(a))return"WeakMap";if(n(a))return"WeakSet"}return!1},Nn}var _n,la;function sl(){if(la)return _n;la=1;var e=nt(),t=e("ArrayBuffer.prototype.byteLength",!0),r=ki();return _n=function(o){return r(o)?t?t(o):o.byteLength:NaN},_n}var qn,ua;function ll(){if(ua)return qn;ua=1;var e=Ls(),t=bi(),r=_s(),n=jt(),o=Gs(),a=Ei(),i=Xs(),s=ci(),l=fi(),u=ki(),c=Ks(),f=bs(),y=Zs(),v=oo(),g=nl(),b=il(),h=xs(),R=sl(),P=t("SharedArrayBuffer.prototype.byteLength",!0),S=t("Date.prototype.getTime"),x=Object.getPrototypeOf,C=t("Object.prototype.toString"),I=n("%Set%",!0),$=t("Map.prototype.has",!0),A=t("Map.prototype.get",!0),k=t("Map.prototype.size",!0),B=t("Set.prototype.add",!0),N=t("Set.prototype.delete",!0),z=t("Set.prototype.has",!0),j=t("Set.prototype.size",!0);function X(w,T,V,F){for(var U=o(w),J;(J=U.next())&&!J.done;)if(Z(T,J.value,V,F))return N(w,J.value),!0;return!1}function D(w){if(typeof w>"u")return null;if(typeof w!="object")return typeof w=="symbol"?!1:typeof w=="string"||typeof w=="number"?+w==+w:!0}function H(w,T,V,F,U,J){var se=D(V);if(se!=null)return se;var ne=A(T,se),G=e({},U,{strict:!1});return typeof ne>"u"&&!$(T,se)||!Z(F,ne,G,J)?!1:!$(w,se)&&Z(F,ne,G,J)}function W(w,T,V){var F=D(V);return F??(z(T,F)&&!z(w,F))}function Y(w,T,V,F,U,J){for(var se=o(w),ne,G;(ne=se.next())&&!ne.done;)if(G=ne.value,Z(V,G,U,J)&&Z(F,A(T,G),U,J))return N(w,G),!0;return!1}function Z(w,T,V,F){var U=V||{};if(U.strict?i(w,T):w===T)return!0;var J=g(w),se=g(T);if(J!==se)return!1;if(!w||!T||typeof w!="object"&&typeof T!="object")return U.strict?i(w,T):w==T;var ne=F.has(w),G=F.has(T),ee;if(ne&&G){if(F.get(w)===F.get(T))return!0}else ee={};return ne||F.set(w,ee),G||F.set(T,ee),he(w,T,U,F)}function fe(w){return!w||typeof w!="object"||typeof w.length!="number"||typeof w.copy!="function"||typeof w.slice!="function"||w.length>0&&typeof w[0]!="number"?!1:!!(w.constructor&&w.constructor.isBuffer&&w.constructor.isBuffer(w))}function Ce(w,T,V,F){if(j(w)!==j(T))return!1;for(var U=o(w),J=o(T),se,ne,G;(se=U.next())&&!se.done;)if(se.value&&typeof se.value=="object")G||(G=new I),B(G,se.value);else if(!z(T,se.value)){if(V.strict||!W(w,T,se.value))return!1;G||(G=new I),B(G,se.value)}if(G){for(;(ne=J.next())&&!ne.done;)if(ne.value&&typeof ne.value=="object"){if(!X(G,ne.value,V.strict,F))return!1}else if(!V.strict&&!z(w,ne.value)&&!X(G,ne.value,V.strict,F))return!1;return j(G)===0}return!0}function _(w,T,V,F){if(k(w)!==k(T))return!1;for(var U=o(w),J=o(T),se,ne,G,ee,le,te;(se=U.next())&&!se.done;)if(ee=se.value[0],le=se.value[1],ee&&typeof ee=="object")G||(G=new I),B(G,ee);else if(te=A(T,ee),typeof te>"u"&&!$(T,ee)||!Z(le,te,V,F)){if(V.strict||!H(w,T,ee,le,V,F))return!1;G||(G=new I),B(G,ee)}if(G){for(;(ne=J.next())&&!ne.done;)if(ee=ne.value[0],te=ne.value[1],ee&&typeof ee=="object"){if(!Y(G,w,ee,te,V,F))return!1}else if(!V.strict&&(!w.has(ee)||!Z(A(w,ee),te,V,F))&&!Y(G,w,ee,te,e({},V,{strict:!1}),F))return!1;return j(G)===0}return!0}function he(w,T,V,F){var U,J;if(typeof w!=typeof T||w==null||T==null||C(w)!==C(T)||s(w)!==s(T))return!1;var se=l(w),ne=l(T);if(se!==ne)return!1;var G=w instanceof Error,ee=T instanceof Error;if(G!==ee||(G||ee)&&(w.name!==T.name||w.message!==T.message))return!1;var le=f(w),te=f(T);if(le!==te||(le||te)&&(w.source!==T.source||r(w)!==r(T)))return!1;var xe=c(w),ge=c(T);if(xe!==ge||(xe||ge)&&S(w)!==S(T)||V.strict&&x&&x(w)!==x(T))return!1;var me=h(w),qe=h(T);if(me!==qe)return!1;if(me||qe){if(w.length!==T.length)return!1;for(U=0;U<w.length;U++)if(w[U]!==T[U])return!1;return!0}var ue=fe(w),Se=fe(T);if(ue!==Se)return!1;if(ue||Se){if(w.length!==T.length)return!1;for(U=0;U<w.length;U++)if(w[U]!==T[U])return!1;return!0}var Ne=u(w),_e=u(T);if(Ne!==_e)return!1;if(Ne||_e)return R(w)!==R(T)?!1:typeof Uint8Array=="function"&&Z(new Uint8Array(w),new Uint8Array(T),V,F);var Pe=y(w),Oe=y(T);if(Pe!==Oe)return!1;if(Pe||Oe)return P(w)!==P(T)?!1:typeof Uint8Array=="function"&&Z(new Uint8Array(w),new Uint8Array(T),V,F);if(typeof w!=typeof T)return!1;var $e=v(w),Ee=v(T);if($e.length!==Ee.length)return!1;for($e.sort(),Ee.sort(),U=$e.length-1;U>=0;U--)if($e[U]!=Ee[U])return!1;for(U=$e.length-1;U>=0;U--)if(J=$e[U],!Z(w[J],T[J],V,F))return!1;var M=b(w),E=b(T);return M!==E?!1:M==="Set"||E==="Set"?Ce(w,T,V,F):M==="Map"?_(w,T,V,F):!0}return qn=function(T,V,F){return Z(T,V,F,a())},qn}var ul=ll();const ca=rt(ul);var er={},fa;function cl(){if(fa)return er;fa=1,Object.defineProperty(er,"__esModule",{value:!0});function e(){let t,r;const n=new Promise((o,a)=>{t=i=>{o(i),n.isPending=!1},r=i=>{a(i),n.isPending=!1}}).catch(o=>Promise.reject(o));return n.resolve=t,n.reject=r,"finally"in n||(n.finally=o=>{n.then(o),n.catch(o)}),n.isPending=!0,n}return er.future=e,er.default=e,er}var fl=cl();const pl=rt(fl);function pa(e){return{all:e=e||new Map,on:function(t,r){var n=e.get(t);n?n.push(r):e.set(t,[r])},off:function(t,r){var n=e.get(t);n&&(r?n.splice(n.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var n=e.get(t);n&&n.slice().map(function(o){o(r)}),(n=e.get("*"))&&n.slice().map(function(o){o(t,r)})}}}const Gt=new Map,Un=new Map,ao=new Map,Nr=new Map;function da(e){const t=document.getElementById(e);return!t||!t.contentWindow?!1:ao.get(t.contentWindow)??!1}function Gn(e){if(e.data&&e.data.type)try{switch(e.data.type){case Ue.PreviewMessageType.CONTROLLER_RESPONSE:{const t=e.data.payload,{id:r}=t,n=Gt.get(r);n&&(Gt.delete(r),t.ok?n.resolve(t.result):t.ok===!1&&n.reject(new Error(t.error)));break}case Ue.PreviewMessageType.EMOTE_EVENT:{const t=e.data.payload,{type:r,payload:n}=t,o=e.source?Un.get(e.source):null;o&&r&&o.emit(r,n);break}case Ue.PreviewMessageType.LOAD:{e.source&&(ao.set(e.source,!0),(Nr.get(e.source)||[]).filter(n=>{var o;return((o=n.data)==null?void 0:o.type)!==Ue.PreviewMessageType.LOAD}).forEach(Gn),Nr.delete(e.source));break}default:}}catch(t){console.error("Error processing WearablePreview message:",t)}}const dl=e=>{var r;if(((r=e.data)==null?void 0:r.type)===Ue.PreviewMessageType.LOAD){Gn(e);return}if(!(e.source?ao.get(e.source):!1)&&e.source){const n=Nr.get(e.source)||[];n.push(e),Nr.set(e.source,n);return}Gn(e)};typeof window<"u"&&window.addEventListener("message",dl,!1);let va=0;function vl(e){return function(r,n,o){const a=document.getElementById(e);if(!a||!a.contentWindow){const v=new Error("iframe not found or not accessible");return Promise.reject(v)}const i=e+"-"+va,s=pl();Gt.set(i,s);const l=Ue.PreviewMessageType.CONTROLLER_REQUEST,u={id:i,namespace:r,method:n,params:o},c=setTimeout(()=>{Gt.delete(i),s.reject(new Error(`Request timeout for ${n}`))},1e4),f=s.resolve,y=s.reject;s.resolve=v=>{clearTimeout(c),f(v)},s.reject=v=>{clearTimeout(c),y(v)};try{Ue.sendMessage(a.contentWindow,l,u)}catch(v){const g=v instanceof Error?v.message:String(v);s.reject(new Error(`Failed to send message: ${g}`)),Gt.delete(i),clearTimeout(c)}return va++,s}}function Ii(e){const t=document.getElementById(e);if(!t)throw new Error(`Could not find an iframe with id="${e}"`);Gt.clear();const r=t.contentWindow?Un.get(t.contentWindow)??pa():pa();t.contentWindow&&Un.set(t.contentWindow,r);const n=vl(e);return{scene:{getScreenshot(o,a){return n("scene","getScreenshot",[o,a])},getMetrics(){return n("scene","getMetrics",[])},changeZoom:function(o){return n("scene","changeZoom",[o])},panCamera:function(o){return n("scene","panCamera",[o])},changeCameraPosition:function(o){return n("scene","changeCameraPosition",[o])},cleanup(){return n("scene","cleanup",[])},setUsername:function(o){return n("scene","setUsername",[o])}},emote:{getLength(){return n("emote","getLength",[])},isPlaying(){return n("emote","isPlaying",[])},goTo(o){return n("emote","goTo",[o])},play(){return n("emote","play",[])},pause(){return n("emote","pause",[])},stop(){return n("emote","stop",[])},enableSound(){return n("emote","enableSound",[])},disableSound(){return n("emote","disableSound",[])},hasSound(){return n("emote","hasSound",[])},isSocialEmote(){return n("emote","isSocialEmote",[])},getSocialEmoteAnimations(){return n("emote","getSocialEmoteAnimations",[])},getPlayingSocialEmoteAnimation(){return n("emote","getPlayingSocialEmoteAnimation",[])},emote:null,events:r},physics:{setSpringBonesParams(o,a){return n("physics","setSpringBonesParams",[o,a])}}}}function ml(){let e=null;return(t,r,...n)=>{e&&clearTimeout(e),e=setTimeout(t,r,...n)}}const hl=je("iframe")({background:"transparent",border:0,width:"100%",height:"100%"}),gl=ml(),K=(e,t)=>t==null||t===""?"":Array.isArray(t)?t.length>0?t.map(r=>`${e}=${encodeURIComponent(String(r))}`).join("&"):"":`${e}=${encodeURIComponent(String(t))}`,yl=e=>{const{dev:t=!1,baseUrl:r=Ss.get("WEARABLE_PREVIEW_URL"),unity:n=!1,onLoad:o=()=>{},onError:a=()=>{},onUpdate:i=()=>{},...s}=e,[l,u]=d.useState({isReady:!1,pendingOptions:null}),c=d.useRef(null),f=d.useRef(null),y=d.useMemo(()=>{const{contractAddress:R,tokenId:P,itemId:S,profile:x,urns:C,urls:I,base64s:$,skin:A,hair:k,eyes:B,bodyShape:N,emote:z,camera:j,projection:X,zoom:D,background:H,offsetX:W,offsetY:Y,offsetZ:Z,cameraX:fe,cameraY:Ce,cameraZ:_,wheelZoom:he,wheelPrecision:w,wheelStart:T,disableBackground:V,disableAutoRotate:F,disableAutoCenter:U,disableFace:J,disableDefaultWearables:se,disableDefaultEmotes:ne,disableFadeEffect:G,showSceneBoundaries:ee,showThumbnailBoundaries:le,panning:te,lockAlpha:xe,lockBeta:ge,lockRadius:me,peerUrl:qe,nftServerUrl:ue,marketplaceServerUrl:Se,type:Ne,unityMode:_e,username:Pe,socialEmote:Oe}=s,$e=K("contract",R),Ee=K("token",P),M=K("item",S),E=K("profile",x),q=K("urn",C),oe=K("url",I),ie=K("base64",$),ae=K("skin",A),Ae=K("hair",k),Be=K("eyes",B),p=K("bodyShape",N),m=K("emote",z),re=K("camera",j),pe=K("projection",X),de=K("zoom",D),Q=K("background",H),We=K("offsetX",W),He=K("offsetY",Y),ke=K("offsetZ",Z),ze=K("cameraX",fe),Ot=K("cameraY",Ce),Ke=K("cameraZ",_),Le=K("wheelZoom",he),Et=K("wheelPrecision",w),qt=K("wheelStart",T),Wt=K("disableBackground",V),ct=K("disableAutoRotate",F),kt=K("disableAutoCenter",U),Rt=K("disableFace",J),It=K("disableDefaultWearables",se),ft=K("disableDefaultEmotes",ne),zt=K("disableFadeEffect",G),Ct=K("showSceneBoundaries",ee),pt=K("showThumbnailBoundaries",le),Vt=K("peerUrl",qe),we=K("marketplaceServerUrl",Se??ue),Mt=K("type",Ne),at=K("panning",te),Ie=K("lockAlpha",xe),Ft=K("lockBeta",ge),Jr=K("lockRadius",me),Cr=K("env",t?"dev":void 0),rs=K("unity",n),ns=K("mode",_e),os=K("username",Pe),as=K("socialEmote",Oe);return r+"?"+[$e,Ee,M,E,q,oe,ie,ae,Ae,Be,p,m,re,pe,de,Q,We,He,ke,ze,Ot,Ke,Le,Et,qt,Wt,ct,kt,Rt,It,ft,zt,Ct,pt,Vt,we,Mt,at,Ie,Ft,Jr,Cr,rs,ns,os,as].filter(is=>!!is).join("&")},[s,r,t,n]),v=d.useMemo(()=>{const R={};for(const P in s)typeof s[P]!="function"&&(R[P]=s[P]);return R},[s]),g=d.useCallback(R=>{var S;const P=f.current;(!P||!ca(R,P))&&((S=c.current)!=null&&S.contentWindow&&Ue.sendMessage(c.current.contentWindow,Ue.PreviewMessageType.UPDATE,{options:R}),i(R),f.current=R)},[i]),b=d.useCallback(()=>{c.current?typeof window<"u"&&(l.isReady?g(v):ca(l.pendingOptions,v)||u(R=>({...R,pendingOptions:v,url:y}))):console.warn("Could not send update, iframe is not referenced")},[v,l.pendingOptions,l.isReady,g]),h=d.useCallback(R=>{var x;const{origin:P}=R;if(P!==r||!((x=R.data)!=null&&x.type))return;switch(R.data.type){case Ue.PreviewMessageType.LOAD:{const C=R.data.payload;o(C==null?void 0:C.renderer);break}case Ue.PreviewMessageType.ERROR:{const C=R.data.payload;a(new Error(C.message));break}case Ue.PreviewMessageType.READY:{u(C=>C.isReady?C:C.pendingOptions!==null?(g(C.pendingOptions),{...C,isReady:!0,pendingOptions:null}):{...C,isReady:!0});break}}},[r,o,a,g]);return d.useEffect(()=>(window.addEventListener("message",h,!1),()=>{window.removeEventListener("message",h,!1)}),[h]),d.useEffect(()=>{e.blob&&b()},[e.blob,b]),d.useEffect(()=>{gl(b,500)},[b]),e.tokenId&&e.itemId&&console.warn("You should NOT use `tokenId` and `itemId` props simultaneously"),L.jsx(hl,{id:e.id,src:y,ref:c,allow:"autoplay"})};yl.createController=Ii;var it=fs(),tr={},Wn={};function bl(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function xl(e,t=166){let r;function n(...o){const a=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function Sl(e,t){return()=>null}function wl(e,t){var r,n;return d.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function Ge(e){return e&&e.ownerDocument||document}function El(e){return Ge(e).defaultView||window}function Rl(e,t){return()=>null}function _r(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const ht=typeof window<"u"?d.useLayoutEffect:d.useEffect;let ma=0;function Cl(e){const[t,r]=d.useState(e),n=e||t;return d.useEffect(()=>{t==null&&(ma+=1,r(`mui-${ma}`))},[t]),n}const ha=ss.useId;function Pl(e){if(ha!==void 0){const t=ha();return e??t}return Cl(e)}function $l(e,t,r,n,o){return null}function Mi({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=d.useRef(e!==void 0),[a,i]=d.useState(t),s=o?e:a,l=d.useCallback(u=>{o||i(u)},[]);return[s,l]}function mt(e){const t=d.useRef(e);return ht(()=>{t.current=e}),d.useRef((...r)=>(0,t.current)(...r)).current}function Ye(...e){return d.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{_r(r,t)})},e)}const ga={};function Ol(e,t){const r=d.useRef(ga);return r.current===ga&&(r.current=e(t)),r}const kl=[];function Il(e){d.useEffect(e,kl)}class Ur{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Ur}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function Ti(){const e=Ol(Ur.create).current;return Il(e.disposeEffect),e}let Gr=!0,Yn=!1;const Ml=new Ur,Tl={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Al(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&Tl[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Bl(e){e.metaKey||e.altKey||e.ctrlKey||(Gr=!0)}function zn(){Gr=!1}function Ll(){this.visibilityState==="hidden"&&Yn&&(Gr=!0)}function Dl(e){e.addEventListener("keydown",Bl,!0),e.addEventListener("mousedown",zn,!0),e.addEventListener("pointerdown",zn,!0),e.addEventListener("touchstart",zn,!0),e.addEventListener("visibilitychange",Ll,!0)}function jl(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Gr||Al(t)}function io(){const e=d.useCallback(o=>{o!=null&&Dl(o.ownerDocument)},[]),t=d.useRef(!1);function r(){return t.current?(Yn=!0,Ml.start(100,()=>{Yn=!1}),t.current=!1,!0):!1}function n(o){return jl(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function Nl(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function _l(e){return d.Children.toArray(e).filter(t=>d.isValidElement(t))}const ql={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Wl(e,t){function r(n,o){return L.jsx(bo,O({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return r.muiName=bo.muiName,d.memo(d.forwardRef(r))}const zl={configure:e=>{pi.configure(e)}},Vl=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ce,createChainedFunction:bl,createSvgIcon:Wl,debounce:xl,deprecatedPropType:Sl,isMuiElement:wl,ownerDocument:Ge,ownerWindow:El,requirePropFactory:Rl,setRef:_r,unstable_ClassNameGenerator:zl,unstable_useEnhancedEffect:ht,unstable_useId:Pl,unsupportedProp:$l,useControlled:Mi,useEventCallback:mt,useForkRef:Ye,useIsFocusVisible:io},Symbol.toStringTag,{value:"Module"})),Fl=ai(Vl);var ya;function St(){return ya||(ya=1,(function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Fl})(Wn)),Wn}var ba;function Hl(){if(ba)return tr;ba=1;var e=bt();Object.defineProperty(tr,"__esModule",{value:!0}),tr.default=void 0;var t=e(St()),r=yt();return tr.default=(0,t.default)((0,r.jsx)("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"}),"Pause"),tr}var Ul=Hl();const Gl=rt(Ul);var rr={},xa;function Yl(){if(xa)return rr;xa=1;var e=bt();Object.defineProperty(rr,"__esModule",{value:!0}),rr.default=void 0;var t=e(St()),r=yt();return rr.default=(0,t.default)((0,r.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow"),rr}var Xl=Yl();const Kl=rt(Xl);var nr={},Sa;function Zl(){if(Sa)return nr;Sa=1;var e=bt();Object.defineProperty(nr,"__esModule",{value:!0}),nr.default=void 0;var t=e(St()),r=yt();return nr.default=(0,t.default)((0,r.jsx)("path",{d:"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63m2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71M4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9zM12 4 9.91 6.09 12 8.18z"}),"VolumeOff"),nr}var Jl=Zl();const Ql=rt(Jl);var or={},wa;function eu(){if(wa)return or;wa=1;var e=bt();Object.defineProperty(or,"__esModule",{value:!0}),or.default=void 0;var t=e(St()),r=yt();return or.default=(0,t.default)((0,r.jsx)("path",{d:"M3 9v6h4l5 5V4L7 9zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02M14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77"}),"VolumeUp"),or}var tu=eu();const ru=rt(tu),Yr=(e,t)=>{const r=d.useRef(null),[n,o]=d.useState(!1);return d.useEffect(()=>{const a=t??Ii(e);if(r.current=a,da(e)){o(!0);return}const i=document.getElementById(e);if(!i){console.error(`Could not find iframe with id="${e}"`);return}if(!i.contentWindow){console.error(`Iframe contentWindow is not accessible for id="${e}"`);return}const l=u=>{var c;((c=u.data)==null?void 0:c.type)===Ue.PreviewMessageType.LOAD&&da(e)&&o(!0)};return window.addEventListener("message",l),()=>{window.removeEventListener("message",l),o(!1),r.current=null}},[e,t]),{controllerRef:r,isReady:n}};function nu(e){return Object.keys(e).length===0}function ou(e=null){const t=d.useContext(ws);return!t||nu(t)?e:t}const au=Es();function Ai(e=au){return ou(e)}function Bi(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Bi(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function iu(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Bi(e))&&(n&&(n+=" "),n+=t);return n}const su=["className","component"];function lu(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,a=Rs("div",{shouldForwardProp:s=>s!=="theme"&&s!=="sx"&&s!=="as"})(Cs);return d.forwardRef(function(l,u){const c=Ai(r),f=Ps(l),{className:y,component:v="div"}=f,g=Te(f,su);return L.jsx(a,O({as:v,ref:u,className:iu(y,o?o(n):n),theme:t&&c[t]||c},g))})}const uu=d.createContext(),cu=()=>{const e=d.useContext(uu);return e??!1};function fu(){const e=Ai($s);return e[di]||e}const Ea=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};var Vn={exports:{}},ve={};/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as b,b as l}from"./lit-element-B3y9oplH.js";import{n as s}from"./class-map-CxwNmq0D.js";import{c as p}from"./index-
|
|
1
|
+
import{i as b,b as l}from"./lit-element-B3y9oplH.js";import{n as s}from"./class-map-CxwNmq0D.js";import{c as p}from"./index-yxg1tO6a.js";import{d as m,r as f,e as v}from"./index-Djj4c5iy.js";const h=m`
|
|
2
2
|
button {
|
|
3
3
|
border: none;
|
|
4
4
|
background: transparent;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as c,b as a}from"./lit-element-B3y9oplH.js";import{n as o,o as h}from"./class-map-CxwNmq0D.js";import{e as m,n as b}from"./ref-BsAZ42-h.js";import{c as x}from"./index-
|
|
1
|
+
import{i as c,b as a}from"./lit-element-B3y9oplH.js";import{n as o,o as h}from"./class-map-CxwNmq0D.js";import{e as m,n as b}from"./ref-BsAZ42-h.js";import{c as x}from"./index-yxg1tO6a.js";import{d as f,r as $,e as g}from"./index-Djj4c5iy.js";const w=f`
|
|
2
2
|
:host {
|
|
3
3
|
position: relative;
|
|
4
4
|
width: 100%;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/native-Df5jPT-i.js","assets/ethers-BxoDGoYp.js","assets/react-E8ng6RF2.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{p as gt,b as Yt,i as Zt,I as Qt,m as bt,s as ut,A as D,e as Xt,g as U,d as te,f as N,r as ee,h as ae,j as ne,k as re,w as se,n as oe,o as ie,q as ce,t as ue,v as de,u as le,x as Q,y as me,z as fe,B as he,C as $,D as pe,E as ye,F as ge,G as be,H as we,J as xe,K as Ee,L as Ie,M as Te,N as St,O as At,P as Ce,Q as Pt,R as _t,S as Rt,T as ve,U as dt,V as qt,W as Se,X as Ae,Y as Ft,Z as Pe,_ as Ut,$ as J,a0 as _e,a1 as kt,a2 as Re,a3 as qe,a4 as lt,a5 as Fe,a6 as Ue,a7 as ke,a8 as Be,a9 as Ne,aa as Bt,ab as Le}from"./parseSignature-DGDthF4Q.js";import{ac as Ir,ad as Tr,ae as Cr,af as vr,ag as Sr,ah as Ar,ai as Pr,aj as _r,ak as Rr,al as qr,am as Fr,an as Ur,ao as kr,ap as Br,aq as Nr,ar as Lr,as as Mr,at as Dr,au as zr,av as Gr,aw as $r,ax as Hr,ay as Or,az as jr,aA as Wr,aB as Vr,aC as Jr,aD as Kr,aE as Yr,aF as Zr,aG as Qr,aH as Xr,aI as ts,aJ as es,aK as as,aL as ns,aM as rs,aN as ss,aO as os,aP as is,aQ as cs,aR as us,aS as ds,aT as ls,aU as ms,aV as fs,aW as hs,aX as ps,aY as ys,aZ as gs,a_ as bs,a$ as ws,b0 as xs,b1 as Es,b2 as Is,b3 as Ts,b4 as Cs,b5 as vs,b6 as Ss,b7 as As,b8 as Ps,b9 as _s,ba as Rs,bb as qs,bc as Fs,bd as Us,be as ks,bf as Bs,bg as Ns,bh as Ls,bi as Ms,bj as Ds,bk as zs,bl as Gs,bm as $s,bn as Hs,bo as Os,bp as js,bq as Ws,br as Vs,bs as Js,bt as Ks,bu as Ys,bv as Zs,bw as Qs,bx as Xs,by as to,bz as eo,br as ao,bA as no,bB as ro,bC as so,bD as oo,bE as io,bF as co,bG as uo,bH as lo,bH as mo,bI as fo,bJ as ho,bi as po,bj as yo,bK as go,bL as bo,bM as wo,bN as xo,bO as Eo}from"./parseSignature-DGDthF4Q.js";import{T as B,b9 as k,U as Me,I as Y,ba as De,G as ze,bb as Ge,X as H,_ as ct,$ as G,B as mt,D as E,P as $e,a7 as He,bc as j,a6 as wt,R as Nt,bd as Lt,d as Mt,L as R,F as ft,A as F,be as A,M as Oe,N as je,bf as We,bg as xt,aG as ht,J as Ve,bh as Je,bi as Ke,bj as Ye,bk as Et}from"./signing-DUKQER6N.js";import{bl as To,bm as Co,bn as vo,bo as So,bp as Ao,bq as Po,br as _o,bs as Ro,bt as qo,bu as Fo,bv as Uo,bw as ko,bx as Bo,by as No,bz as Lo,Q as Mo,bA as Do,bB as zo,bC as Go,bD as $o,bE as Ho,bF as Oo,bG as jo,bH as Wo,bI as Vo,bJ as Jo,bK as Ko,bL as Yo,bM as Zo,bN as Qo,bO as Xo,bP as ti,bQ as ei,bR as ai,bS as ni,bT as ri,bU as si,bV as oi,E as ii,bW as ci,bX as ui,bY as di,bZ as li,b_ as mi,p as fi,b$ as hi,at as pi,au as yi,c0 as gi,c1 as bi,c2 as wi,c3 as xi,c4 as Ei,f as Ii,c4 as Ti,c5 as Ci,c6 as vi,c7 as Si,c8 as Ai,c9 as Pi,ca as _i,cb as Ri,cc as qi,cd as Fi,C as Ui,ce as ki,c3 as Bi,c4 as Ni,ce as Li,f as Mi,c4 as Di,z as zi}from"./signing-DUKQER6N.js";import{w as Ze,h as Qe,g as Xe,v as ta,s as ea}from"./hashTypedData-CYuFZOJY.js";import{I as $i,a as Hi,b as Oi,d as ji,c as Wi,e as Vi}from"./hashTypedData-CYuFZOJY.js";import{T as aa,a as Z,W as It,b as na,U as ra,R as sa}from"./rpc-Ba9vojp-.js";import{A as Ki,c as Yi,B as Zi,C as Qi,D as Xi,H as tc,I as ec,d as ac,e as nc,f as rc,J as sc,L as oc,M as ic,h as cc,P as uc,i as dc,j as lc,k as mc,l as fc,m as hc,S as pc,n as yc,o as gc,p as bc,q as wc,r as xc,s as Ec}from"./rpc-Ba9vojp-.js";import{_ as oa}from"./index-fwX9_hYz.js";import{t as ia,H as ca}from"./sha256-DXORZCoT.js";import{b as Tc,h as Cc,a as vc,c as Sc,d as Ac,e as Pc,f as _c,g as Rc,i as qc,j as Fc,k as Uc,l as kc,n as Bc,o as Nc,p as Lc,q as Mc,r as Dc,u as zc,v as Gc,w as $c,x as Hc,y as Oc,z as jc,A as Wc,B as Vc,C as Jc,D as Kc,E as Yc,F as Zc,G as Qc,I as Xc,J as tu,K as eu,L as au,M as nu,N as ru,O as su,P as ou,Q as iu,R as cu,S as uu,m as du,T as lu,U as mu,V as fu,W as hu,X as pu,Y as yu,Z as gu,_ as bu,$ as wu,a0 as xu,a1 as Eu,a2 as Iu,a3 as Tu,a4 as Cu,a5 as vu,a6 as Su,a7 as Au,a8 as Pu,a9 as _u,aa as Ru,ab as qu,ac as Fu,ad as Uu,ae as ku,af as Bu,ag as Nu,ah as Lu,ai as Mu,aj as Du,ak as zu,al as Gu,am as $u,an as Hu,ao as Ou,ap as ju,aq as Wu,ar as Vu,as as Ju,at as Ku,au as Yu,av as Zu,aw as Qu,ax as Xu,ay as td,az as ed,aA as ad,aB as nd,aC as rd,aD as sd,aE as od,aF as id,aG as cd,aH as ud,aI as dd,aJ as ld,aK as md,s as fd}from"./sha256-DXORZCoT.js";import{ccipRequest as pd,ccipRequest as yd,offchainLookup as gd,offchainLookupAbiItem as bd,offchainLookupSignature as wd}from"./ccip-CLcImasK.js";import{d as Ed,a as Id,f as Td}from"./transactionReceipt-CpVXwo1b.js";import"./utils-CtSpY5KY.js";import"./ethers-BxoDGoYp.js";import"./react-E8ng6RF2.js";function jn(t){let e;if(typeof t=="string")e=gt(t,{modifiers:bt});else{const a=Yt(t),n=t.length;for(let r=0;r<n;r++){const s=t[r];if(!Zt(s)){e=gt(s,{modifiers:bt,structs:a});break}}}if(!e)throw new Qt({param:t});return e}async function M(t,e){return M.internal(t,ut,"sendTransaction",e)}(function(t){async function e(a,n,r,s){const{abi:u,account:d=a.account,address:c,args:i,dataSuffix:f,functionName:m,...h}=s;if(typeof d>"u")throw new D({docsPath:"/docs/contract/writeContract"});const o=d?N(d):null,p=Xt({abi:u,args:i,functionName:m});try{return await U(a,n,r)({data:`${p}${f?f.replace("0x",""):""}`,to:c,account:o,...h})}catch(l){throw te(l,{abi:u,address:c,args:i,docsPath:"/docs/contract/writeContract",functionName:m,sender:o==null?void 0:o.address})}}t.internal=e})(M||(M={}));function Wn({abi:t,address:e,client:a}){const n=a,[r,s]=n?"public"in n&&"wallet"in n?[n.public,n.wallet]:"public"in n?[n.public,void 0]:"wallet"in n?[void 0,n.wallet]:[n,n]:[void 0,void 0],u=r!=null,d=s!=null,c={};let i=!1,f=!1,m=!1;for(const h of t)if(h.type==="function"?h.stateMutability==="view"||h.stateMutability==="pure"?i=!0:f=!0:h.type==="event"&&(m=!0),i&&f&&m)break;return u&&(i&&(c.read=new Proxy({},{get(h,o){return(...p)=>{const{args:l,options:y}=W(p);return U(r,ee,"readContract")({abi:t,address:e,functionName:o,args:l,...y})}}})),f&&(c.simulate=new Proxy({},{get(h,o){return(...p)=>{const{args:l,options:y}=W(p);return U(r,ae,"simulateContract")({abi:t,address:e,functionName:o,args:l,...y})}}})),m&&(c.createEventFilter=new Proxy({},{get(h,o){return(...p)=>{const l=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(p,l);return U(r,ne,"createContractEventFilter")({abi:t,address:e,eventName:o,args:y,...w})}}}),c.getEvents=new Proxy({},{get(h,o){return(...p)=>{const l=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(p,l);return U(r,re,"getContractEvents")({abi:t,address:e,eventName:o,args:y,...w})}}}),c.watchEvent=new Proxy({},{get(h,o){return(...p)=>{const l=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(p,l);return U(r,se,"watchContractEvent")({abi:t,address:e,eventName:o,args:y,...w})}}}))),d&&f&&(c.write=new Proxy({},{get(h,o){return(...p)=>{const{args:l,options:y}=W(p);return U(s,M,"writeContract")({abi:t,address:e,functionName:o,args:l,...y})}}})),(u||d)&&f&&(c.estimateGas=new Proxy({},{get(h,o){return(...p)=>{const{args:l,options:y}=W(p);return U(r??s,oe,"estimateContractGas")({abi:t,address:e,functionName:o,args:l,...y,account:y.account??s.account})}}})),c.address=e,c.abi=t,c}function W(t){const e=t.length&&Array.isArray(t[0]),a=e?t[0]:[],n=(e?t[1]:t[0])??{};return{args:a,options:n}}function rt(t,e){let a=!1;Array.isArray(t[0])?a=!0:t.length===1?a=e.inputs.some(s=>s.indexed):t.length===2&&(a=!0);const n=a?t[0]:void 0,r=(a?t[1]:t[0])??{};return{args:n,options:r}}function Tt(t){return!t||typeof t!="object"||!("BYTES_PER_ELEMENT"in t)?!1:t.BYTES_PER_ELEMENT===1&&t.constructor.name==="Uint8Array"}function Vn(t){return t.opcode==="CREATE2"?da(t):ua(t)}function ua(t){const e=B(k(t.from));let a=B(t.nonce);return a[0]===0&&(a=new Uint8Array([])),k(`0x${Y(ia([e,a],"bytes")).slice(26)}`)}function da(t){const e=B(k(t.from)),a=Me(Tt(t.salt)?t.salt:B(t.salt),{size:32}),n="bytecodeHash"in t?Tt(t.bytecodeHash)?t.bytecodeHash:B(t.bytecodeHash):Y(t.bytecode,"bytes");return k(De(Y(ze([B("0xff"),e,a,n])),12))}function Jn({chains:t,id:e}){return t.find(a=>a.id===e)}function Dt(t,e="hex"){const a=(()=>{if(typeof t=="string"){if(t.length>3&&t.length%2!==0)throw new Ge(t);return H(t)}return t})(),n=ct(a,{recursiveReadLimit:Number.POSITIVE_INFINITY});return zt(n,e)}function zt(t,e="hex"){if(t.bytes.length===0)return e==="hex"?G(t.bytes):t.bytes;const a=t.readByte();if(a<128&&t.decrementPosition(1),a<192){const r=Ct(t,a,128),s=t.readBytes(r);return e==="hex"?G(s):s}const n=Ct(t,a,192);return la(t,n,e)}function Ct(t,e,a){if(a===128&&e<128)return 1;if(e<=a+55)return e-a;if(e===a+55+1)return t.readUint8();if(e===a+55+2)return t.readUint16();if(e===a+55+3)return t.readUint24();if(e===a+55+4)return t.readUint32();throw new mt("Invalid RLP prefix")}function la(t,e,a){const n=t.position,r=[];for(;t.position-n<e;)r.push(zt(t,a));return r}function ma(t){return E(t)&&$e(t)===32}const fa=Uint8Array.from([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),Gt=Uint8Array.from(new Array(16).fill(0).map((t,e)=>e)),ha=Gt.map(t=>(9*t+5)%16),$t=(()=>{const a=[[Gt],[ha]];for(let n=0;n<4;n++)for(let r of a)r.push(r[n].map(s=>fa[s]));return a})(),Ht=$t[0],Ot=$t[1],jt=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(t=>Uint8Array.from(t)),pa=Ht.map((t,e)=>t.map(a=>jt[e][a])),ya=Ot.map((t,e)=>t.map(a=>jt[e][a])),ga=Uint32Array.from([0,1518500249,1859775393,2400959708,2840853838]),ba=Uint32Array.from([1352829926,1548603684,1836072691,2053994217,0]);function vt(t,e,a,n){return t===0?e^a^n:t===1?e&a|~e&n:t===2?(e|~a)^n:t===3?e&n|a&~n:e^(a|~n)}const V=new Uint32Array(16);class wa extends ca{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:a,h2:n,h3:r,h4:s}=this;return[e,a,n,r,s]}set(e,a,n,r,s){this.h0=e|0,this.h1=a|0,this.h2=n|0,this.h3=r|0,this.h4=s|0}process(e,a){for(let o=0;o<16;o++,a+=4)V[o]=e.getUint32(a,!0);let n=this.h0|0,r=n,s=this.h1|0,u=s,d=this.h2|0,c=d,i=this.h3|0,f=i,m=this.h4|0,h=m;for(let o=0;o<5;o++){const p=4-o,l=ga[o],y=ba[o],w=Ht[o],g=Ot[o],C=pa[o],b=ya[o];for(let x=0;x<16;x++){const I=j(n+vt(o,s,d,i)+V[w[x]]+l,C[x])+m|0;n=m,m=i,i=j(d,10)|0,d=s,s=I}for(let x=0;x<16;x++){const I=j(r+vt(p,u,c,f)+V[g[x]]+y,b[x])+h|0;r=h,h=f,f=j(c,10)|0,c=u,u=I}}this.set(this.h1+d+f|0,this.h2+i+h|0,this.h3+m+r|0,this.h4+n+u|0,this.h0+s+c|0)}roundClean(){wt(V)}destroy(){this.destroyed=!0,wt(this.buffer),this.set(0,0,0,0,0)}}const xa=He(()=>new wa),Ea=xa;function Kn(t,e){const a=e||"hex",n=Ea(E(t,{strict:!1})?B(t):t);return a==="bytes"?n:Nt(n)}const st=new Map;async function Ia(t){const{getSocket:e,keepAlive:a=!0,key:n="socket",reconnect:r=!0,url:s}=t,{interval:u=3e4}=typeof a=="object"?a:{},{attempts:d=5,delay:c=2e3}=typeof r=="object"?r:{},i=JSON.stringify({keepAlive:a,key:n,url:s,reconnect:r});let f=st.get(i);if(f)return f;let m=0;const{schedule:h}=ie({id:i,fn:async()=>{const l=new Map,y=new Map;let w,g,C,b=!1;function x(){if(r&&m<d){if(b)return;b=!0,m++,g==null||g.close(),setTimeout(async()=>{await I().catch(console.error),b=!1},c)}else l.clear(),y.clear()}async function I(){const T=await e({onClose(){var v,P;for(const S of l.values())(v=S.onError)==null||v.call(S,new Z({url:s}));for(const S of y.values())(P=S.onError)==null||P.call(S,new Z({url:s}));x()},onError(v){var P,S;w=v;for(const _ of l.values())(P=_.onError)==null||P.call(_,w);for(const _ of y.values())(S=_.onError)==null||S.call(_,w);x()},onOpen(){w=void 0,m=0},onResponse(v){const P=v.method==="eth_subscription",S=P?v.params.subscription:v.id,_=P?y:l,q=_.get(S);q&&q.onResponse(v),P||_.delete(S)}});if(g=T,a&&(C&&clearInterval(C),C=setInterval(()=>{var v;return(v=g.ping)==null?void 0:v.call(g)},u)),r&&y.size>0){const v=y.entries();for(const[P,{onResponse:S,body:_,onError:q}]of v)_&&(y.delete(P),f==null||f.request({body:_,onResponse:S,onError:q}))}return T}return await I(),w=void 0,f={close(){C&&clearInterval(C),g.close(),st.delete(i)},get socket(){return g},request({body:T,onError:v,onResponse:P}){w&&v&&v(w);const S=T.id??ce.take(),_=q=>{var z;typeof q.id=="number"&&S!==q.id||(T.method==="eth_subscribe"&&typeof q.result=="string"&&y.set(q.result,{onResponse:_,onError:v,body:T}),T.method==="eth_unsubscribe"&&y.delete((z=T.params)==null?void 0:z[0]),P(q))};l.set(S,{onResponse:_,onError:v});try{g.request({body:{jsonrpc:"2.0",id:S,...T}})}catch(q){v==null||v(q)}},requestAsync({body:T,timeout:v=1e4}){return Ze(()=>new Promise((P,S)=>this.request({body:T,onError:S,onResponse:P})),{errorInstance:new aa({body:T,url:s}),timeout:v})},requests:l,subscriptions:y,url:s},st.set(i,f),[f]}}),[o,[p]]=await h();return p}async function K(t,e={}){const{keepAlive:a,reconnect:n}=e;return Ia({async getSocket({onClose:r,onError:s,onOpen:u,onResponse:d}){const c=await oa(()=>import("./native-Df5jPT-i.js").then(o=>o.n),__vite__mapDeps([0,1,2])).then(o=>o.WebSocket),i=new c(t);function f(){i.removeEventListener("close",f),i.removeEventListener("message",m),i.removeEventListener("error",s),i.removeEventListener("open",u),r()}function m({data:o}){if(!(typeof o=="string"&&o.trim().length===0))try{const p=JSON.parse(o);d(p)}catch(p){s(p)}}i.addEventListener("close",f),i.addEventListener("message",m),i.addEventListener("error",s),i.addEventListener("open",u),i.readyState===c.CONNECTING&&await new Promise((o,p)=>{i&&(i.onopen=o,i.onerror=p)});const{close:h}=i;return Object.assign(i,{close(){h.bind(i)(),f()},ping(){try{if(i.readyState===i.CLOSED||i.readyState===i.CLOSING)throw new It({url:i.url,cause:new Z({url:i.url})});const o={jsonrpc:"2.0",id:null,method:"net_version",params:[]};i.send(JSON.stringify(o))}catch(o){s(o)}},request({body:o}){if(i.readyState===i.CLOSED||i.readyState===i.CLOSING)throw new It({body:o,url:i.url,cause:new Z({url:i.url})});return i.send(JSON.stringify(o))}})},keepAlive:a,reconnect:n,url:t})}async function Ta(t){const e=await K(t);return Object.assign(e.socket,{requests:e.requests,subscriptions:e.subscriptions})}function Ca(t){return Lt(t,-32)===ue}function va(t){return de(t)}function Yn(t){if(!Ca(t))return{signature:t};const[e,a,n]=Mt([{type:"address"},{type:"bytes"},{type:"bytes"}],t);return{address:e,data:a,signature:n}}function Zn(t){if(!va(t))return{signature:t};const{authorization:e,to:a,...n}=le(t);return{authorization:{address:e.address,chainId:e.chainId,nonce:Number(e.nonce),r:R(e.r,{size:32}),s:R(e.s,{size:32}),yParity:e.yParity},...a?{address:a}:{},...n}}async function Sa({message:t,signature:e}){return Q({hash:me(t),signature:e})}async function Aa(t){const{domain:e,message:a,primaryType:n,signature:r,types:s}=t;return Q({hash:Qe({domain:e,message:a,primaryType:n,types:s}),signature:r})}function Qn(t){const{address:e,data:a,signature:n,to:r="hex"}=t,s=fe({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:a,signature:n,to:e});return r==="hex"?s:H(s)}async function Xn({address:t,hash:e,signature:a}){return ft(k(t),await Q({hash:e,signature:a}))}async function tr({address:t,message:e,signature:a}){return ft(k(t),await Sa({message:e,signature:a}))}async function er(t){const{address:e,domain:a,message:n,primaryType:r,signature:s,types:u}=t;return ft(k(e),await Aa({domain:a,message:n,primaryType:r,signature:s,types:u}))}function Pa(t){const e=Lt(t,0,1);if(e==="0x04")return"eip7702";if(e==="0x03")return"eip4844";if(e==="0x02")return"eip1559";if(e==="0x01")return"eip2930";if(e!=="0x"&&F(e)>=192)return"legacy";throw new he({serializedType:e})}function _a(t){const e=Pa(t);return e==="eip1559"?Fa(t):e==="eip2930"?Ua(t):e==="eip4844"?qa(t):e==="eip7702"?Ra(t):ka(t)}function Ra(t){const e=X(t),[a,n,r,s,u,d,c,i,f,m,h,o,p]=e;if(e.length!==10&&e.length!==13)throw new $({attributes:{chainId:a,nonce:n,maxPriorityFeePerGas:r,maxFeePerGas:s,gas:u,to:d,value:c,data:i,accessList:f,authorizationList:m,...e.length>9?{v:h,r:o,s:p}:{}},serializedTransaction:t,type:"eip7702"});const l={chainId:F(a),type:"eip7702"};return E(d)&&d!=="0x"&&(l.to=d),E(u)&&u!=="0x"&&(l.gas=A(u)),E(i)&&i!=="0x"&&(l.data=i),E(n)&&(l.nonce=n==="0x"?0:F(n)),E(c)&&c!=="0x"&&(l.value=A(c)),E(s)&&s!=="0x"&&(l.maxFeePerGas=A(s)),E(r)&&r!=="0x"&&(l.maxPriorityFeePerGas=A(r)),f.length!==0&&f!=="0x"&&(l.accessList=tt(f)),m.length!==0&&m!=="0x"&&(l.authorizationList=Ba(m)),we(l),{...e.length===13?O(e):void 0,...l}}function qa(t){const e=X(t),a=e.length===4,n=a?e[0]:e,r=a?e.slice(1):[],[s,u,d,c,i,f,m,h,o,p,l,y,w,g]=n,[C,b,x]=r;if(!(n.length===11||n.length===14))throw new $({attributes:{chainId:s,nonce:u,maxPriorityFeePerGas:d,maxFeePerGas:c,gas:i,to:f,value:m,data:h,accessList:o,...n.length>9?{v:y,r:w,s:g}:{}},serializedTransaction:t,type:"eip4844"});const I={blobVersionedHashes:l,chainId:F(s),to:f,type:"eip4844"};return E(i)&&i!=="0x"&&(I.gas=A(i)),E(h)&&h!=="0x"&&(I.data=h),E(u)&&(I.nonce=u==="0x"?0:F(u)),E(m)&&m!=="0x"&&(I.value=A(m)),E(p)&&p!=="0x"&&(I.maxFeePerBlobGas=A(p)),E(c)&&c!=="0x"&&(I.maxFeePerGas=A(c)),E(d)&&d!=="0x"&&(I.maxPriorityFeePerGas=A(d)),o.length!==0&&o!=="0x"&&(I.accessList=tt(o)),C&&b&&x&&(I.sidecars=ge({blobs:C,commitments:b,proofs:x})),be(I),{...n.length===14?O(n):void 0,...I}}function Fa(t){const e=X(t),[a,n,r,s,u,d,c,i,f,m,h,o]=e;if(!(e.length===9||e.length===12))throw new $({attributes:{chainId:a,nonce:n,maxPriorityFeePerGas:r,maxFeePerGas:s,gas:u,to:d,value:c,data:i,accessList:f,...e.length>9?{v:m,r:h,s:o}:{}},serializedTransaction:t,type:"eip1559"});const p={chainId:F(a),type:"eip1559"};return E(d)&&d!=="0x"&&(p.to=d),E(u)&&u!=="0x"&&(p.gas=A(u)),E(i)&&i!=="0x"&&(p.data=i),E(n)&&(p.nonce=n==="0x"?0:F(n)),E(c)&&c!=="0x"&&(p.value=A(c)),E(s)&&s!=="0x"&&(p.maxFeePerGas=A(s)),E(r)&&r!=="0x"&&(p.maxPriorityFeePerGas=A(r)),f.length!==0&&f!=="0x"&&(p.accessList=tt(f)),pe(p),{...e.length===12?O(e):void 0,...p}}function Ua(t){const e=X(t),[a,n,r,s,u,d,c,i,f,m,h]=e;if(!(e.length===8||e.length===11))throw new $({attributes:{chainId:a,nonce:n,gasPrice:r,gas:s,to:u,value:d,data:c,accessList:i,...e.length>8?{v:f,r:m,s:h}:{}},serializedTransaction:t,type:"eip2930"});const o={chainId:F(a),type:"eip2930"};return E(u)&&u!=="0x"&&(o.to=u),E(s)&&s!=="0x"&&(o.gas=A(s)),E(c)&&c!=="0x"&&(o.data=c),E(n)&&(o.nonce=n==="0x"?0:F(n)),E(d)&&d!=="0x"&&(o.value=A(d)),E(r)&&r!=="0x"&&(o.gasPrice=A(r)),i.length!==0&&i!=="0x"&&(o.accessList=tt(i)),ye(o),{...e.length===11?O(e):void 0,...o}}function ka(t){const e=Dt(t,"hex"),[a,n,r,s,u,d,c,i,f]=e;if(!(e.length===6||e.length===9))throw new $({attributes:{nonce:a,gasPrice:n,gas:r,to:s,value:u,data:d,...e.length>6?{v:c,r:i,s:f}:{}},serializedTransaction:t,type:"legacy"});const m={type:"legacy"};if(E(s)&&s!=="0x"&&(m.to=s),E(r)&&r!=="0x"&&(m.gas=A(r)),E(d)&&d!=="0x"&&(m.data=d),E(a)&&(m.nonce=a==="0x"?0:F(a)),E(u)&&u!=="0x"&&(m.value=A(u)),E(n)&&n!=="0x"&&(m.gasPrice=A(n)),xe(m),e.length===6)return m;const h=E(c)&&c!=="0x"?A(c):0n;if(f==="0x"&&i==="0x")return h>0&&(m.chainId=Number(h)),m;const o=h,p=Number((o-35n)/2n);if(p>0)m.chainId=p;else if(o!==27n&&o!==28n)throw new Ee({v:o});return m.v=o,m.s=f,m.r=i,m.yParity=o%2n===0n?1:0,m}function X(t){return Dt(`0x${t.slice(4)}`,"hex")}function tt(t){const e=[];for(let a=0;a<t.length;a++){const[n,r]=t[a];if(!Oe(n,{strict:!1}))throw new je({address:n});e.push({address:n,storageKeys:r.map(s=>ma(s)?s:We(s))})}return e}function Ba(t){const e=[];for(let a=0;a<t.length;a++){const[n,r,s,u,d,c]=t[a];e.push({address:r,chainId:n==="0x"?0:F(n),nonce:s==="0x"?0:F(s),...O([u,d,c])})}return e}function O(t){const e=t.slice(-3),a=e[0]==="0x"||A(e[0])===0n?27n:28n;return{r:xt(e[1],{size:32}),s:xt(e[2],{size:32}),v:a,yParity:a===27n?0:1}}class Na extends mt{constructor({value:e}){super(`Number \`${e}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}function Wt(t,e){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(t))throw new Na({value:t});let[a,n="0"]=t.split(".");const r=a.startsWith("-");if(r&&(a=a.slice(1)),n=n.replace(/(0+)$/,""),e===0)Math.round(+`.${n}`)===1&&(a=`${BigInt(a)+1n}`),n="";else if(n.length>e){const[s,u,d]=[n.slice(0,e-1),n.slice(e-1,e),n.slice(e)],c=Math.round(+`${u}.${d}`);c>9?n=`${BigInt(s)+BigInt(1)}0`.padStart(s.length+1,"0"):n=`${s}${c}`,n.length>e&&(n=n.slice(1),a=`${BigInt(a)+1n}`),n=n.slice(0,e)}else n=n.padEnd(e,"0");return BigInt(`${r?"-":""}${a}${n}`)}function ar(t,e="wei"){return Wt(t,Ie[e])}function nr(t,e="wei"){return Wt(t,Te[e])}async function La(t,{hash:e}){await t.request({method:`${t.mode}_dropTransaction`,params:[e]})}async function Ma(t){return t.request({method:`${t.mode}_dumpState`})}async function Da(t){return t.mode==="ganache"?await t.request({method:"eth_mining"}):await t.request({method:`${t.mode}_getAutomine`})}async function za(t){return await t.request({method:"txpool_content"})}async function Ga(t){const{pending:e,queued:a}=await t.request({method:"txpool_status"});return{pending:F(e),queued:F(a)}}async function $a(t,{address:e}){await t.request({method:`${t.mode}_impersonateAccount`,params:[e]})}async function Ha(t,{seconds:e}){return await t.request({method:"evm_increaseTime",params:[R(e)]})}async function Oa(t){return await t.request({method:"txpool_inspect"})}async function ja(t,{state:e}){await t.request({method:`${t.mode}_loadState`,params:[e]})}async function Wa(t,{blocks:e,interval:a}){t.mode==="ganache"?await t.request({method:"evm_mine",params:[{blocks:R(e)}]}):await t.request({method:`${t.mode}_mine`,params:[R(e),R(a||0)]})}async function Va(t){await t.request({method:`${t.mode}_removeBlockTimestampInterval`})}async function Ja(t,{blockNumber:e,jsonRpcUrl:a}={}){await t.request({method:`${t.mode}_reset`,params:[{forking:{blockNumber:Number(e),jsonRpcUrl:a}}]})}async function Ka(t,{id:e}){await t.request({method:"evm_revert",params:[e]})}async function Ya(t,e){var w,g,C;const{accessList:a,data:n,from:r,gas:s,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:c,nonce:i,to:f,value:m,...h}=e,o=(C=(g=(w=t.chain)==null?void 0:w.formatters)==null?void 0:g.transactionRequest)==null?void 0:C.format,l=(o||ht)({...St(h,{format:o}),accessList:a,data:n,from:r,gas:s,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:c,nonce:i,to:f,value:m},"sendUnsignedTransaction");return await t.request({method:"eth_sendUnsignedTransaction",params:[l]})}async function Za(t,e){t.mode==="ganache"?e?await t.request({method:"miner_start"}):await t.request({method:"miner_stop"}):await t.request({method:"evm_setAutomine",params:[e]})}async function Qa(t,{address:e,value:a}){t.mode==="ganache"?await t.request({method:"evm_setAccountBalance",params:[e,R(a)]}):await t.request({method:`${t.mode}_setBalance`,params:[e,R(a)]})}async function Xa(t,{gasLimit:e}){await t.request({method:"evm_setBlockGasLimit",params:[R(e)]})}async function tn(t,{interval:e}){const a=t.mode==="hardhat"?e*1e3:e;await t.request({method:`${t.mode}_setBlockTimestampInterval`,params:[a]})}async function en(t,{address:e,bytecode:a}){t.mode==="ganache"?await t.request({method:"evm_setAccountCode",params:[e,a]}):await t.request({method:`${t.mode}_setCode`,params:[e,a]})}async function an(t,{address:e}){await t.request({method:`${t.mode}_setCoinbase`,params:[e]})}async function nn(t,{interval:e}){const a=t.mode==="hardhat"?e*1e3:e;await t.request({method:"evm_setIntervalMining",params:[a]})}async function rn(t,e){await t.request({method:`${t.mode}_setLoggingEnabled`,params:[e]})}async function sn(t,{gasPrice:e}){await t.request({method:`${t.mode}_setMinGasPrice`,params:[R(e)]})}async function on(t,{baseFeePerGas:e}){await t.request({method:`${t.mode}_setNextBlockBaseFeePerGas`,params:[R(e)]})}async function cn(t,{timestamp:e}){await t.request({method:"evm_setNextBlockTimestamp",params:[R(e)]})}async function un(t,{address:e,nonce:a}){await t.request({method:`${t.mode}_setNonce`,params:[e,R(a)]})}async function dn(t,e){await t.request({method:`${t.mode}_setRpcUrl`,params:[e]})}async function ln(t,{address:e,index:a,value:n}){await t.request({method:`${t.mode}_setStorageAt`,params:[e,typeof a=="number"?R(a):a,n]})}async function mn(t){return await t.request({method:"evm_snapshot"})}async function fn(t,{address:e}){await t.request({method:`${t.mode}_stopImpersonatingAccount`,params:[e]})}function hn({mode:t}){return e=>{const a=e.extend(()=>({mode:t}));return{dropTransaction:n=>La(a,n),dumpState:()=>Ma(a),getAutomine:()=>Da(a),getTxpoolContent:()=>za(a),getTxpoolStatus:()=>Ga(a),impersonateAccount:n=>$a(a,n),increaseTime:n=>Ha(a,n),inspectTxpool:()=>Oa(a),loadState:n=>ja(a,n),mine:n=>Wa(a,n),removeBlockTimestampInterval:()=>Va(a),reset:n=>Ja(a,n),revert:n=>Ka(a,n),sendUnsignedTransaction:n=>Ya(a,n),setAutomine:n=>Za(a,n),setBalance:n=>Qa(a,n),setBlockGasLimit:n=>Xa(a,n),setBlockTimestampInterval:n=>tn(a,n),setCode:n=>en(a,n),setCoinbase:n=>an(a,n),setIntervalMining:n=>nn(a,n),setLoggingEnabled:n=>rn(a,n),setMinGasPrice:n=>sn(a,n),setNextBlockBaseFeePerGas:n=>on(a,n),setNextBlockTimestamp:n=>cn(a,n),setNonce:n=>un(a,n),setRpcUrl:n=>dn(a,n),setStorageAt:n=>ln(a,n),snapshot:()=>mn(a),stopImpersonatingAccount:n=>fn(a,n)}}}function rr(t){const{key:e="test",name:a="Test Client",mode:n}=t;return At({...t,key:e,name:a,type:"testClient"}).extend(s=>({mode:n,...hn({mode:n})(s)}))}async function pn(t,{chain:e}){const{id:a,name:n,nativeCurrency:r,rpcUrls:s,blockExplorers:u}=e;await t.request({method:"wallet_addEthereumChain",params:[{chainId:R(a),chainName:n,nativeCurrency:r,rpcUrls:s.default.http,blockExplorerUrls:u?Object.values(u).map(({url:d})=>d):void 0}]},{dedupe:!0,retryCount:0})}function yn(t,e){const{abi:a,args:n,bytecode:r,...s}=e,u=Ce({abi:a,args:n,bytecode:r});return ut(t,{...s,...s.authorizationList?{to:null}:{},data:u})}async function gn(t){var a;return((a=t.account)==null?void 0:a.type)==="local"?[t.account.address]:(await t.request({method:"eth_accounts"},{dedupe:!0})).map(n=>Ve(n))}async function bn(t,e={}){const{account:a=t.account,chainId:n}=e,r=a?N(a):void 0,s=n?[r==null?void 0:r.address,[R(n)]]:[r==null?void 0:r.address],u=await t.request({method:"wallet_getCapabilities",params:s}),d={};for(const[c,i]of Object.entries(u)){d[Number(c)]={};for(let[f,m]of Object.entries(i))f==="addSubAccount"&&(f="unstable_addSubAccount"),d[Number(c)][f]=m}return typeof n=="number"?d[n]:d}async function wn(t){return await t.request({method:"wallet_getPermissions"},{dedupe:!0})}async function xn(t){return(await t.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(a=>k(a))}async function En(t,e){return t.request({method:"wallet_requestPermissions",params:[e]},{retryCount:0})}async function In(t,e){const{chain:a=t.chain}=e,n=e.timeout??Math.max(((a==null?void 0:a.blockTime)??0)*3,5e3),r=await Pt(t,e);return await _t(t,{...e,id:r.id,timeout:n})}const ot=new Je(128);async function Vt(t,e){var x,I,T,v;const{account:a=t.account,chain:n=t.chain,accessList:r,authorizationList:s,blobs:u,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:m,maxPriorityFeePerGas:h,nonce:o,pollingInterval:p,throwOnReceiptRevert:l,type:y,value:w,...g}=e,C=e.timeout??Math.max(((n==null?void 0:n.blockTime)??0)*3,5e3);if(typeof a>"u")throw new D({docsPath:"/docs/actions/wallet/sendTransactionSync"});const b=a?N(a):null;try{Rt(e);const P=await(async()=>{if(e.to)return e.to;if(e.to!==null&&s&&s.length>0)return await ve({authorization:s[0]}).catch(()=>{throw new mt("`to` is required. Could not infer from `authorizationList`.")})})();if((b==null?void 0:b.type)==="json-rpc"||b===null){let S;n!==null&&(S=await U(t,dt,"getChainId")({}),qt({currentChainId:S,chain:n}));const _=(T=(I=(x=t.chain)==null?void 0:x.formatters)==null?void 0:I.transactionRequest)==null?void 0:T.format,z=(_||ht)({...St(g,{format:_}),accessList:r,account:b,authorizationList:s,blobs:u,chainId:S,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:m,maxPriorityFeePerGas:h,nonce:o,to:P,type:y,value:w},"sendTransaction"),pt=ot.get(t.uid),Jt=pt?"wallet_sendTransaction":"eth_sendTransaction",Kt=await(async()=>{try{return await t.request({method:Jt,params:[z]},{retryCount:0})}catch(yt){if(pt===!1)throw yt;const L=yt;if(L.name==="InvalidInputRpcError"||L.name==="InvalidParamsRpcError"||L.name==="MethodNotFoundRpcError"||L.name==="MethodNotSupportedRpcError")return await t.request({method:"wallet_sendTransaction",params:[z]},{retryCount:0}).then(at=>(ot.set(t.uid,!0),at)).catch(at=>{const nt=at;throw nt.name==="MethodNotFoundRpcError"||nt.name==="MethodNotSupportedRpcError"?(ot.set(t.uid,!1),L):nt});throw L}})(),et=await U(t,Se,"waitForTransactionReceipt")({checkReplacement:!1,hash:Kt,pollingInterval:p,timeout:C});if(l&&et.status==="reverted")throw new Ae({receipt:et});return et}if((b==null?void 0:b.type)==="local"){const S=await U(t,Ft,"prepareTransactionRequest")({account:b,accessList:r,authorizationList:s,blobs:u,chain:n,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:m,maxPriorityFeePerGas:h,nonce:o,nonceManager:b.nonceManager,parameters:[...Pe,"sidecars"],type:y,value:w,...g,to:P}),_=(v=n==null?void 0:n.serializers)==null?void 0:v.transaction,q=await b.signTransaction(S,{serializer:_});return await U(t,Ut,"sendRawTransactionSync")({serializedTransaction:q,throwOnReceiptRevert:l})}throw(b==null?void 0:b.type)==="smart"?new J({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new J({docsPath:"/docs/actions/wallet/sendTransactionSync",type:b==null?void 0:b.type})}catch(P){throw P instanceof J?P:_e(P,{...e,account:b,chain:e.chain||void 0})}}async function Tn(t,e){const{id:a}=e;await t.request({method:"wallet_showCallsStatus",params:[a]})}async function Cn(t,e){const{account:a=t.account}=e;if(!a)throw new D({docsPath:"/docs/eip7702/signAuthorization"});const n=N(a);if(!n.signAuthorization)throw new J({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:n.type});const r=await kt(t,e);return n.signAuthorization(r)}async function vn(t,{account:e=t.account,message:a}){if(!e)throw new D({docsPath:"/docs/actions/wallet/signMessage"});const n=N(e);if(n.signMessage)return n.signMessage({message:a});const r=typeof a=="string"?Ke(a):a.raw instanceof Uint8Array?Nt(a.raw):a.raw;return t.request({method:"personal_sign",params:[r,n.address]},{retryCount:0})}async function Sn(t,e){var i,f,m,h;const{account:a=t.account,chain:n=t.chain,...r}=e;if(!a)throw new D({docsPath:"/docs/actions/wallet/signTransaction"});const s=N(a);Rt({account:s,...e});const u=await U(t,dt,"getChainId")({});n!==null&&qt({currentChainId:u,chain:n});const d=(n==null?void 0:n.formatters)||((i=t.chain)==null?void 0:i.formatters),c=((f=d==null?void 0:d.transactionRequest)==null?void 0:f.format)||ht;return s.signTransaction?s.signTransaction({...r,chainId:u},{serializer:(h=(m=t.chain)==null?void 0:m.serializers)==null?void 0:h.transaction}):await t.request({method:"eth_signTransaction",params:[{...c({...r,account:s},"signTransaction"),chainId:R(u),from:s.address}]},{retryCount:0})}async function An(t,e){const{account:a=t.account,domain:n,message:r,primaryType:s}=e;if(!a)throw new D({docsPath:"/docs/actions/wallet/signTypedData"});const u=N(a),d={EIP712Domain:Xe({domain:n}),...e.types};if(ta({domain:n,message:r,primaryType:s,types:d}),u.signTypedData)return u.signTypedData({domain:n,message:r,primaryType:s,types:d});const c=ea({domain:n,message:r,primaryType:s,types:d});return t.request({method:"eth_signTypedData_v4",params:[u.address,c]},{retryCount:0})}async function Pn(t,{id:e}){await t.request({method:"wallet_switchEthereumChain",params:[{chainId:R(e)}]},{retryCount:0})}async function _n(t,e){return await t.request({method:"wallet_watchAsset",params:e},{retryCount:0})}async function Rn(t,e){return M.internal(t,Vt,"sendTransactionSync",e)}function qn(t){return{addChain:e=>pn(t,e),deployContract:e=>yn(t,e),getAddresses:()=>gn(t),getCallsStatus:e=>qe(t,e),getCapabilities:e=>bn(t,e),getChainId:()=>dt(t),getPermissions:()=>wn(t),prepareAuthorization:e=>kt(t,e),prepareTransactionRequest:e=>Ft(t,e),requestAddresses:()=>xn(t),requestPermissions:e=>En(t,e),sendCalls:e=>Pt(t,e),sendCallsSync:e=>In(t,e),sendRawTransaction:e=>Re(t,e),sendRawTransactionSync:e=>Ut(t,e),sendTransaction:e=>ut(t,e),sendTransactionSync:e=>Vt(t,e),showCallsStatus:e=>Tn(t,e),signAuthorization:e=>Cn(t,e),signMessage:e=>vn(t,e),signTransaction:e=>Sn(t,e),signTypedData:e=>An(t,e),switchChain:e=>Pn(t,e),waitForCallsStatus:e=>_t(t,e),watchAsset:e=>_n(t,e),writeContract:e=>M(t,e),writeContractSync:e=>Rn(t,e)}}function sr(t){const{key:e="wallet",name:a="Wallet Client",transport:n}=t;return At({...t,key:e,name:a,transport:n,type:"walletClient"}).extend(qn)}function or(t,e={}){const{key:a="custom",methods:n,name:r="Custom Provider",retryDelay:s}=e;return({retryCount:u})=>lt({key:a,methods:n,name:r,request:t.request.bind(t),retryCount:e.retryCount??u,retryDelay:s,type:"custom"})}function ir(t,e={}){const{key:a="fallback",name:n="Fallback",rank:r=!1,shouldThrow:s=Fn,retryCount:u,retryDelay:d}=e;return(({chain:c,pollingInterval:i=4e3,timeout:f,...m})=>{let h=t,o=()=>{};const p=lt({key:a,name:n,async request({method:l,params:y}){let w;const g=async(C=0)=>{const b=h[C]({...m,chain:c,retryCount:0,timeout:f});try{const x=await b.request({method:l,params:y});return o({method:l,params:y,response:x,transport:b,status:"success"}),x}catch(x){if(o({error:x,method:l,params:y,transport:b,status:"error"}),s(x)||C===h.length-1||(w??(w=h.slice(C+1).some(I=>{const{include:T,exclude:v}=I({chain:c}).config.methods||{};return T?T.includes(l):v?!v.includes(l):!0})),!w))throw x;return g(C+1)}};return g()},retryCount:u,retryDelay:d,type:"fallback"},{onResponse:l=>o=l,transports:h.map(l=>l({chain:c,retryCount:0}))});if(r){const l=typeof r=="object"?r:{};Un({chain:c,interval:l.interval??i,onTransports:y=>h=y,ping:l.ping,sampleCount:l.sampleCount,timeout:l.timeout,transports:h,weights:l.weights})}return p})}function Fn(t){return!!("code"in t&&typeof t.code=="number"&&(t.code===na.code||t.code===ra.code||Fe.nodeMessage.test(t.message)||t.code===5e3))}function Un({chain:t,interval:e=4e3,onTransports:a,ping:n,sampleCount:r=10,timeout:s=1e3,transports:u,weights:d={}}){const{stability:c=.7,latency:i=.3}=d,f=[],m=async()=>{const h=await Promise.all(u.map(async l=>{const y=l({chain:t,retryCount:0,timeout:s}),w=Date.now();let g,C;try{await(n?n({transport:y}):y.request({method:"net_listening"})),C=1}catch{C=0}finally{g=Date.now()}return{latency:g-w,success:C}}));f.push(h),f.length>r&&f.shift();const o=Math.max(...f.map(l=>Math.max(...l.map(({latency:y})=>y)))),p=u.map((l,y)=>{const w=f.map(I=>I[y].latency),C=1-w.reduce((I,T)=>I+T,0)/w.length/o,b=f.map(I=>I[y].success),x=b.reduce((I,T)=>I+T,0)/b.length;return x===0?[0,y]:[i*C+c*x,y]}).sort((l,y)=>y[0]-l[0]);a(p.map(([,l])=>u[l])),await Ue(e),m()};m()}function cr(t,e={}){const{keepAlive:a,key:n="webSocket",methods:r,name:s="WebSocket JSON-RPC",reconnect:u,retryDelay:d}=e;return({chain:c,retryCount:i,timeout:f})=>{var l;const m=e.retryCount??i,h=f??e.timeout??1e4,o=t||((l=c==null?void 0:c.rpcUrls.default.webSocket)==null?void 0:l[0]),p={keepAlive:a,reconnect:u};if(!o)throw new ke;return lt({key:n,methods:r,name:s,async request({method:y,params:w}){const g={method:y,params:w},C=await K(o,p),{error:b,result:x}=await C.requestAsync({body:g,timeout:h});if(b)throw new sa({body:g,error:b,url:o});return x},retryCount:m,retryDelay:d,timeout:h,type:"webSocket"},{getSocket(){return Ta(o)},getRpcClient(){return K(o,p)},async subscribe({params:y,onData:w,onError:g}){const C=await K(o,p),{result:b}=await new Promise((x,I)=>C.request({body:{method:"eth_subscribe",params:y},onError(T){I(T),g==null||g(T)},onResponse(T){if(T.error){I(T.error),g==null||g(T.error);return}if(typeof T.id=="number"){x(T);return}T.method==="eth_subscription"&&w(T.params)}}));return{subscriptionId:b,async unsubscribe(){return new Promise(x=>C.request({body:{method:"eth_unsubscribe",params:[b]},onResponse:x}))}}}})}}class ur extends Error{constructor(e,a){super(a),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=e,this.details=a}}const it="/docs/contract/decodeDeployData";function dr(t){const{abi:e,bytecode:a,data:n}=t;if(n===a)return{bytecode:a};const r=e.find(u=>"type"in u&&u.type==="constructor");if(!r)throw new Ye({docsPath:it});if(!("inputs"in r))throw new Et({docsPath:it});if(!r.inputs||r.inputs.length===0)throw new Et({docsPath:it});return{args:Mt(r.inputs,`0x${n.replace(a,"")}`),bytecode:a}}function lr(t){const e=t.to??(typeof t.blobs[0]=="string"?"hex":"bytes"),a=typeof t.blobs[0]=="string"?t.blobs.map(d=>H(d)):t.blobs,n=a.reduce((d,c)=>d+c.length,0),r=ct(new Uint8Array(n));let s=!0;for(const d of a){const c=ct(d);for(;s&&c.position<d.length;){c.incrementPosition(1);let i=31;d.length-c.position<31&&(i=d.length-c.position);for(const f in Array.from({length:i})){const m=c.readByte();if(m===128&&!c.inspectBytes(c.remaining).includes(128)){s=!1;break}r.pushByte(m)}}}const u=r.bytes.slice(0,r.position);return e==="hex"?G(u):u}function mr(t){const{sidecars:e,version:a}=t,n=t.to??(typeof e[0].blob=="string"?"hex":"bytes"),r=[];for(const{commitment:s}of e)r.push(Be({commitment:s,to:n,version:a}));return r}const kn=2147483648;function fr(t){if(t===1)return 60n;if(t>=kn||t<0)throw new Ne({chainId:t});return BigInt((2147483648|t)>>>0)}function Bn({blobToKzgCommitment:t,computeBlobKzgProof:e}){return{blobToKzgCommitment:t,computeBlobKzgProof:e}}function hr(t,e){try{t.loadTrustedSetup(e)}catch(a){const n=a;if(!n.message.includes("trusted setup is already loaded"))throw n}return Bn(t)}function pr({r:t,yParityAndS:e}){const a=H(e),n=a[0]&128?1:0,r=a;return n===1&&(r[0]&=127),{r:t,s:G(r),yParity:n}}function yr(t){const{r:e,s:a}=Bt.Signature.fromCompact(t.slice(2,130));return{r:R(e,{size:32}),yParityAndS:R(a,{size:32})}}async function gr(t){const{serializedTransaction:e,signature:a}=t,n=_a(e),r=a??{r:n.r,s:n.s,v:n.v,yParity:n.yParity},s=Le({...n,r:void 0,s:void 0,v:void 0,yParity:void 0,sidecars:void 0});return await Q({hash:Y(s),signature:r})}function br({r:t,yParityAndS:e}){return`0x${new Bt.Signature(A(t),A(e)).toCompactHex()}`}function wr(t){const{r:e,s:a,v:n,yParity:r}=t,s=Number(r??n-27n);let u=a;if(s===1){const d=H(a);d[0]|=128,u=G(d)}return{r:e,yParityAndS:u}}export{Ye as AbiConstructorNotFoundError,Et as AbiConstructorParamsNotFoundError,To as AbiDecodingDataSizeInvalidError,Co as AbiDecodingDataSizeTooSmallError,vo as AbiDecodingZeroDataError,So as AbiEncodingArrayLengthMismatchError,Ao as AbiEncodingBytesSizeMismatchError,Po as AbiEncodingLengthMismatchError,_o as AbiErrorInputsNotFoundError,Ro as AbiErrorNotFoundError,qo as AbiErrorSignatureNotFoundError,Fo as AbiEventNotFoundError,Uo as AbiEventSignatureEmptyTopicsError,ko as AbiEventSignatureNotFoundError,Bo as AbiFunctionNotFoundError,No as AbiFunctionOutputsNotFoundError,Lo as AbiFunctionSignatureNotFoundError,Ir as AccountStateConflictError,Ki as AtomicReadyWalletRejectedUpgradeError,Yi as AtomicityNotSupportedError,mt as BaseError,Tr as BaseFeeScalarError,Cr as BlockNotFoundError,vr as BundleFailedError,Zi as BundleTooLargeError,Mo as BytesSizeMismatchError,Sr as CallExecutionError,Qi as ChainDisconnectedError,Ar as ChainDoesNotSupportContract,Pr as ChainMismatchError,_r as ChainNotFoundError,Rr as CircularReferenceError,qr as ClientChainNotConfiguredError,Fr as ContractFunctionExecutionError,Ur as ContractFunctionRevertedError,kr as ContractFunctionZeroDataError,Br as CounterfactualDeploymentFailedError,Do as DecodeLogDataMismatch,zo as DecodeLogTopicsMismatch,Xi as DuplicateIdError,ur as EIP1193ProviderRpcError,Nr as Eip1559FeesNotSupportedError,Lr as EnsAvatarInvalidNftUriError,Mr as EnsAvatarUnsupportedNamespaceError,Dr as EnsAvatarUriResolutionError,Ne as EnsInvalidChainIdError,zr as EstimateGasExecutionError,Fe as ExecutionRevertedError,Gr as FeeCapTooHighError,$r as FeeCapTooLowError,Hr as FeeConflictError,Go as FilterTypeNotSupportedError,tc as HttpRequestError,Or as InsufficientFundsError,$o as IntegerOutOfRangeError,ec as InternalRpcError,jr as IntrinsicGasTooHighError,Wr as IntrinsicGasTooLowError,Ho as InvalidAbiDecodingTypeError,Oo as InvalidAbiEncodingTypeError,Vr as InvalidAbiItemError,Qt as InvalidAbiParameterError,Jr as InvalidAbiParametersError,Kr as InvalidAbiTypeParameterError,je as InvalidAddressError,jo as InvalidArrayError,Wo as InvalidBytesBooleanError,Yr as InvalidChainIdError,Na as InvalidDecimalNumberError,Vo as InvalidDefinitionTypeError,$i as InvalidDomainError,Zr as InvalidFunctionModifierError,Jo as InvalidHexBooleanError,Ge as InvalidHexValueError,ac as InvalidInputRpcError,Ee as InvalidLegacyVError,Qr as InvalidModifierError,Xr as InvalidParameterError,nc as InvalidParamsRpcError,ts as InvalidParenthesisError,Hi as InvalidPrimaryTypeError,rc as InvalidRequestRpcError,es as InvalidSerializableTransactionError,$ as InvalidSerializedTransactionError,he as InvalidSerializedTransactionTypeError,as as InvalidSignatureError,ns as InvalidStorageKeySizeError,rs as InvalidStructSignatureError,Oi as InvalidStructTypeError,sc as JsonRpcVersionUnsupportedError,oc as LimitExceededRpcError,ss as MaxFeePerGasTooLowError,ic as MethodNotFoundRpcError,cc as MethodNotSupportedRpcError,os as NonceMaxValueError,is as NonceTooHighError,cs as NonceTooLowError,uc as ParseRpcError,dc as ProviderDisconnectedError,lc as ProviderRpcError,us as RawContractError,mc as ResourceNotFoundRpcError,fc as ResourceUnavailableRpcError,hc as RpcError,sa as RpcRequestError,Ko as SizeExceedsPaddingSizeError,Yo as SizeOverflowError,Zo as SliceOffsetOutOfBoundsError,Z as SocketClosedError,ds as SolidityProtectedKeywordError,ls as StateAssignmentConflictError,pc as SwitchChainError,aa as TimeoutError,ms as TipAboveFeeCapError,fs as TransactionExecutionError,hs as TransactionNotFoundError,ps as TransactionReceiptNotFoundError,na as TransactionRejectedRpcError,ys as TransactionTypeNotSupportedError,yc as UnauthorizedProviderError,gc as UnknownBundleIdError,gs as UnknownNodeError,bc as UnknownRpcError,bs as UnknownSignatureError,ws as UnknownTypeError,wc as UnsupportedChainIdError,xc as UnsupportedNonOptionalCapabilityError,Qo as UnsupportedPackedAbiType,Ec as UnsupportedProviderMethodError,ke as UrlRequiredError,ra as UserRejectedRequestError,xs as WaitForCallsStatusTimeoutError,Es as WaitForTransactionReceiptTimeoutError,It as WebSocketRequestError,qt as assertCurrentChain,Rt as assertRequest,pe as assertTransactionEIP1559,ye as assertTransactionEIP2930,xe as assertTransactionLegacy,Is as blobsToCommitments,Ts as blobsToProofs,Xo as boolToBytes,ti as boolToHex,ei as bytesToBigInt,ai as bytesToBool,G as bytesToHex,ni as bytesToNumber,Tc as bytesToRlp,ri as bytesToString,pd as ccipFetch,yd as ccipRequest,Ve as checksumAddress,Be as commitmentToVersionedHash,Cs as commitmentsToVersionedHashes,br as compactSignatureToHex,pr as compactSignatureToSignature,ze as concat,si as concatBytes,oi as concatHex,At as createClient,vs as createNonceManager,Ss as createPublicClient,rr as createTestClient,lt as createTransport,sr as createWalletClient,or as custom,Mt as decodeAbiParameters,dr as decodeDeployData,ii as decodeErrorResult,ci as decodeEventLog,As as decodeFunctionData,Ps as decodeFunctionResult,ui as defineBlock,di as defineChain,Bn as defineKzg,li as defineTransaction,Ed as defineTransactionReceipt,mi as defineTransactionRequest,_s as deploylessCallViaBytecodeBytecode,Rs as deploylessCallViaFactoryBytecode,ji as domainSeparator,fi as encodeAbiParameters,Ce as encodeDeployData,qs as encodeErrorResult,hi as encodeEventTopics,Xt as encodeFunctionData,Fs as encodeFunctionResult,Us as encodePacked,ks as erc1155Abi,Bs as erc20Abi,Ns as erc20Abi_bytes32,Ls as erc4626Abi,Ms as erc6492SignatureValidatorAbi,Ds as erc6492SignatureValidatorByteCode,zs as erc721Abi,Gs as ethAddress,Ie as etherUnits,Jn as extractChain,ir as fallback,pi as formatBlock,$s as formatEther,Hs as formatGwei,Id as formatLog,yi as formatTransaction,Td as formatTransactionReceipt,ht as formatTransactionRequest,Os as formatUnits,lr as fromBlobs,gi as fromBytes,bi as fromHex,Dt as fromRlp,wi as getAbiItem,k as getAddress,js as getChainContractAddress,Wn as getContract,Vn as getContractAddress,te as getContractError,da as getCreate2Address,ua as getCreateAddress,xi as getEventSelector,Ei as getEventSignature,Ii as getFunctionSelector,Ti as getFunctionSignature,Pa as getSerializedTransactionType,Ws as getTransactionType,Xe as getTypesForEIP712Domain,Te as gweiUnits,Wi as hashDomain,me as hashMessage,Vi as hashStruct,Qe as hashTypedData,A as hexToBigInt,Ci as hexToBool,H as hexToBytes,yr as hexToCompactSignature,F as hexToNumber,Cc as hexToRlp,Vs as hexToSignature,vi as hexToString,Js as http,Oe as isAddress,ft as isAddressEqual,Tt as isBytes,Ca as isErc6492Signature,va as isErc8010Signature,ma as isHash,E as isHex,Y as keccak256,Ks as labelhash,vc as maxInt104,Sc as maxInt112,Ac as maxInt120,Pc as maxInt128,_c as maxInt136,Rc as maxInt144,qc as maxInt152,Fc as maxInt16,Uc as maxInt160,kc as maxInt168,Bc as maxInt176,Nc as maxInt184,Lc as maxInt192,Mc as maxInt200,Dc as maxInt208,zc as maxInt216,Gc as maxInt224,$c as maxInt232,Hc as maxInt24,Oc as maxInt240,jc as maxInt248,Wc as maxInt256,Vc as maxInt32,Jc as maxInt40,Kc as maxInt48,Yc as maxInt56,Zc as maxInt64,Qc as maxInt72,Xc as maxInt8,tu as maxInt80,eu as maxInt88,au as maxInt96,nu as maxUint104,ru as maxUint112,su as maxUint120,ou as maxUint128,iu as maxUint136,cu as maxUint144,uu as maxUint152,du as maxUint16,lu as maxUint160,mu as maxUint168,fu as maxUint176,hu as maxUint184,pu as maxUint192,yu as maxUint200,gu as maxUint208,bu as maxUint216,wu as maxUint224,xu as maxUint232,Eu as maxUint24,Iu as maxUint240,Tu as maxUint248,Cu as maxUint256,vu as maxUint32,Su as maxUint40,Au as maxUint48,Pu as maxUint56,_u as maxUint64,Ru as maxUint72,qu as maxUint8,Fu as maxUint80,Uu as maxUint88,ku as maxUint96,Bu as minInt104,Nu as minInt112,Lu as minInt120,Mu as minInt128,Du as minInt136,zu as minInt144,Gu as minInt152,$u as minInt16,Hu as minInt160,Ou as minInt168,ju as minInt176,Wu as minInt184,Vu as minInt192,Ju as minInt200,Ku as minInt208,Yu as minInt216,Zu as minInt224,Qu as minInt232,Xu as minInt24,td as minInt240,ed as minInt248,ad as minInt256,nd as minInt32,rd as minInt40,sd as minInt48,od as minInt56,id as minInt64,cd as minInt72,ud as minInt8,dd as minInt80,ld as minInt88,md as minInt96,Ys as multicall3Abi,Zs as namehash,Qs as nonceManager,Si as numberToBytes,R as numberToHex,gd as offchainLookup,bd as offchainLookupAbiItem,wd as offchainLookupSignature,Me as pad,Ai as padBytes,xt as padHex,Xs as parseAbi,to as parseAbiItem,jn as parseAbiParameter,eo as parseAbiParameters,yr as parseCompactSignature,Yn as parseErc6492Signature,Zn as parseErc8010Signature,ar as parseEther,Pi as parseEventLogs,nr as parseGwei,ao as parseSignature,_a as parseTransaction,Wt as parseUnits,no as prepareEncodeFunctionData,ro as presignMessagePrefix,so as publicActions,Q as recoverAddress,Sa as recoverMessageAddress,oo as recoverPublicKey,gr as recoverTransactionAddress,Aa as recoverTypedDataAddress,Kn as ripemd160,io as rpcSchema,_i as rpcTransactionType,co as serializeAccessList,br as serializeCompactSignature,uo as serializeErc6492Signature,Qn as serializeErc8010Signature,lo as serializeSignature,Le as serializeTransaction,ea as serializeTypedData,Ri as setErrorConfig,hr as setupKzg,fd as sha256,Fn as shouldThrow,mr as sidecarsToVersionedHashes,wr as signatureToCompactSignature,mo as signatureToHex,$e as size,De as slice,qi as sliceBytes,Lt as sliceHex,Fi as stringToBytes,Ke as stringToHex,Ui as stringify,hn as testActions,ge as toBlobSidecars,fo as toBlobs,B as toBytes,fr as toCoinType,ki as toEventHash,Bi as toEventSelector,Ni as toEventSignature,Li as toFunctionHash,Mi as toFunctionSelector,Di as toFunctionSignature,Nt as toHex,ho as toPrefixedMessage,ia as toRlp,zi as transactionType,We as trim,po as universalSignatureValidatorAbi,yo as universalSignatureValidatorByteCode,ta as validateTypedData,Xn as verifyHash,tr as verifyMessage,er as verifyTypedData,qn as walletActions,cr as webSocket,go as weiUnits,bo as withCache,wo as withRetry,Ze as withTimeout,xo as zeroAddress,Eo as zeroHash};
|
|
2
|
+
import{p as gt,b as Yt,i as Zt,I as Qt,m as bt,s as ut,A as D,e as Xt,g as U,d as te,f as N,r as ee,h as ae,j as ne,k as re,w as se,n as oe,o as ie,q as ce,t as ue,v as de,u as le,x as Q,y as me,z as fe,B as he,C as $,D as pe,E as ye,F as ge,G as be,H as we,J as xe,K as Ee,L as Ie,M as Te,N as St,O as At,P as Ce,Q as Pt,R as _t,S as Rt,T as ve,U as dt,V as qt,W as Se,X as Ae,Y as Ft,Z as Pe,_ as Ut,$ as J,a0 as _e,a1 as kt,a2 as Re,a3 as qe,a4 as lt,a5 as Fe,a6 as Ue,a7 as ke,a8 as Be,a9 as Ne,aa as Bt,ab as Le}from"./parseSignature-DpYdqsGi.js";import{ac as Ir,ad as Tr,ae as Cr,af as vr,ag as Sr,ah as Ar,ai as Pr,aj as _r,ak as Rr,al as qr,am as Fr,an as Ur,ao as kr,ap as Br,aq as Nr,ar as Lr,as as Mr,at as Dr,au as zr,av as Gr,aw as $r,ax as Hr,ay as Or,az as jr,aA as Wr,aB as Vr,aC as Jr,aD as Kr,aE as Yr,aF as Zr,aG as Qr,aH as Xr,aI as ts,aJ as es,aK as as,aL as ns,aM as rs,aN as ss,aO as os,aP as is,aQ as cs,aR as us,aS as ds,aT as ls,aU as ms,aV as fs,aW as hs,aX as ps,aY as ys,aZ as gs,a_ as bs,a$ as ws,b0 as xs,b1 as Es,b2 as Is,b3 as Ts,b4 as Cs,b5 as vs,b6 as Ss,b7 as As,b8 as Ps,b9 as _s,ba as Rs,bb as qs,bc as Fs,bd as Us,be as ks,bf as Bs,bg as Ns,bh as Ls,bi as Ms,bj as Ds,bk as zs,bl as Gs,bm as $s,bn as Hs,bo as Os,bp as js,bq as Ws,br as Vs,bs as Js,bt as Ks,bu as Ys,bv as Zs,bw as Qs,bx as Xs,by as to,bz as eo,br as ao,bA as no,bB as ro,bC as so,bD as oo,bE as io,bF as co,bG as uo,bH as lo,bH as mo,bI as fo,bJ as ho,bi as po,bj as yo,bK as go,bL as bo,bM as wo,bN as xo,bO as Eo}from"./parseSignature-DpYdqsGi.js";import{T as B,b9 as k,U as Me,I as Y,ba as De,G as ze,bb as Ge,X as H,_ as ct,$ as G,B as mt,D as E,P as $e,a7 as He,bc as j,a6 as wt,R as Nt,bd as Lt,d as Mt,L as R,F as ft,A as F,be as A,M as Oe,N as je,bf as We,bg as xt,aG as ht,J as Ve,bh as Je,bi as Ke,bj as Ye,bk as Et}from"./signing-vGxXLj5d.js";import{bl as To,bm as Co,bn as vo,bo as So,bp as Ao,bq as Po,br as _o,bs as Ro,bt as qo,bu as Fo,bv as Uo,bw as ko,bx as Bo,by as No,bz as Lo,Q as Mo,bA as Do,bB as zo,bC as Go,bD as $o,bE as Ho,bF as Oo,bG as jo,bH as Wo,bI as Vo,bJ as Jo,bK as Ko,bL as Yo,bM as Zo,bN as Qo,bO as Xo,bP as ti,bQ as ei,bR as ai,bS as ni,bT as ri,bU as si,bV as oi,E as ii,bW as ci,bX as ui,bY as di,bZ as li,b_ as mi,p as fi,b$ as hi,at as pi,au as yi,c0 as gi,c1 as bi,c2 as wi,c3 as xi,c4 as Ei,f as Ii,c4 as Ti,c5 as Ci,c6 as vi,c7 as Si,c8 as Ai,c9 as Pi,ca as _i,cb as Ri,cc as qi,cd as Fi,C as Ui,ce as ki,c3 as Bi,c4 as Ni,ce as Li,f as Mi,c4 as Di,z as zi}from"./signing-vGxXLj5d.js";import{w as Ze,h as Qe,g as Xe,v as ta,s as ea}from"./hashTypedData-CFB72Lv_.js";import{I as $i,a as Hi,b as Oi,d as ji,c as Wi,e as Vi}from"./hashTypedData-CFB72Lv_.js";import{T as aa,a as Z,W as It,b as na,U as ra,R as sa}from"./rpc-BuAzgf8H.js";import{A as Ki,c as Yi,B as Zi,C as Qi,D as Xi,H as tc,I as ec,d as ac,e as nc,f as rc,J as sc,L as oc,M as ic,h as cc,P as uc,i as dc,j as lc,k as mc,l as fc,m as hc,S as pc,n as yc,o as gc,p as bc,q as wc,r as xc,s as Ec}from"./rpc-BuAzgf8H.js";import{_ as oa}from"./index-Cqm_NJEy.js";import{t as ia,H as ca}from"./sha256-bqbJ7V3D.js";import{b as Tc,h as Cc,a as vc,c as Sc,d as Ac,e as Pc,f as _c,g as Rc,i as qc,j as Fc,k as Uc,l as kc,n as Bc,o as Nc,p as Lc,q as Mc,r as Dc,u as zc,v as Gc,w as $c,x as Hc,y as Oc,z as jc,A as Wc,B as Vc,C as Jc,D as Kc,E as Yc,F as Zc,G as Qc,I as Xc,J as tu,K as eu,L as au,M as nu,N as ru,O as su,P as ou,Q as iu,R as cu,S as uu,m as du,T as lu,U as mu,V as fu,W as hu,X as pu,Y as yu,Z as gu,_ as bu,$ as wu,a0 as xu,a1 as Eu,a2 as Iu,a3 as Tu,a4 as Cu,a5 as vu,a6 as Su,a7 as Au,a8 as Pu,a9 as _u,aa as Ru,ab as qu,ac as Fu,ad as Uu,ae as ku,af as Bu,ag as Nu,ah as Lu,ai as Mu,aj as Du,ak as zu,al as Gu,am as $u,an as Hu,ao as Ou,ap as ju,aq as Wu,ar as Vu,as as Ju,at as Ku,au as Yu,av as Zu,aw as Qu,ax as Xu,ay as td,az as ed,aA as ad,aB as nd,aC as rd,aD as sd,aE as od,aF as id,aG as cd,aH as ud,aI as dd,aJ as ld,aK as md,s as fd}from"./sha256-bqbJ7V3D.js";import{ccipRequest as pd,ccipRequest as yd,offchainLookup as gd,offchainLookupAbiItem as bd,offchainLookupSignature as wd}from"./ccip-6aROGgJo.js";import{d as Ed,a as Id,f as Td}from"./transactionReceipt-C8k8Opcm.js";import"./utils-CtSpY5KY.js";import"./ethers-BxoDGoYp.js";import"./react-E8ng6RF2.js";function jn(t){let e;if(typeof t=="string")e=gt(t,{modifiers:bt});else{const a=Yt(t),n=t.length;for(let r=0;r<n;r++){const s=t[r];if(!Zt(s)){e=gt(s,{modifiers:bt,structs:a});break}}}if(!e)throw new Qt({param:t});return e}async function M(t,e){return M.internal(t,ut,"sendTransaction",e)}(function(t){async function e(a,n,r,s){const{abi:u,account:d=a.account,address:c,args:i,dataSuffix:f,functionName:m,...h}=s;if(typeof d>"u")throw new D({docsPath:"/docs/contract/writeContract"});const o=d?N(d):null,p=Xt({abi:u,args:i,functionName:m});try{return await U(a,n,r)({data:`${p}${f?f.replace("0x",""):""}`,to:c,account:o,...h})}catch(l){throw te(l,{abi:u,address:c,args:i,docsPath:"/docs/contract/writeContract",functionName:m,sender:o==null?void 0:o.address})}}t.internal=e})(M||(M={}));function Wn({abi:t,address:e,client:a}){const n=a,[r,s]=n?"public"in n&&"wallet"in n?[n.public,n.wallet]:"public"in n?[n.public,void 0]:"wallet"in n?[void 0,n.wallet]:[n,n]:[void 0,void 0],u=r!=null,d=s!=null,c={};let i=!1,f=!1,m=!1;for(const h of t)if(h.type==="function"?h.stateMutability==="view"||h.stateMutability==="pure"?i=!0:f=!0:h.type==="event"&&(m=!0),i&&f&&m)break;return u&&(i&&(c.read=new Proxy({},{get(h,o){return(...p)=>{const{args:l,options:y}=W(p);return U(r,ee,"readContract")({abi:t,address:e,functionName:o,args:l,...y})}}})),f&&(c.simulate=new Proxy({},{get(h,o){return(...p)=>{const{args:l,options:y}=W(p);return U(r,ae,"simulateContract")({abi:t,address:e,functionName:o,args:l,...y})}}})),m&&(c.createEventFilter=new Proxy({},{get(h,o){return(...p)=>{const l=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(p,l);return U(r,ne,"createContractEventFilter")({abi:t,address:e,eventName:o,args:y,...w})}}}),c.getEvents=new Proxy({},{get(h,o){return(...p)=>{const l=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(p,l);return U(r,re,"getContractEvents")({abi:t,address:e,eventName:o,args:y,...w})}}}),c.watchEvent=new Proxy({},{get(h,o){return(...p)=>{const l=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(p,l);return U(r,se,"watchContractEvent")({abi:t,address:e,eventName:o,args:y,...w})}}}))),d&&f&&(c.write=new Proxy({},{get(h,o){return(...p)=>{const{args:l,options:y}=W(p);return U(s,M,"writeContract")({abi:t,address:e,functionName:o,args:l,...y})}}})),(u||d)&&f&&(c.estimateGas=new Proxy({},{get(h,o){return(...p)=>{const{args:l,options:y}=W(p);return U(r??s,oe,"estimateContractGas")({abi:t,address:e,functionName:o,args:l,...y,account:y.account??s.account})}}})),c.address=e,c.abi=t,c}function W(t){const e=t.length&&Array.isArray(t[0]),a=e?t[0]:[],n=(e?t[1]:t[0])??{};return{args:a,options:n}}function rt(t,e){let a=!1;Array.isArray(t[0])?a=!0:t.length===1?a=e.inputs.some(s=>s.indexed):t.length===2&&(a=!0);const n=a?t[0]:void 0,r=(a?t[1]:t[0])??{};return{args:n,options:r}}function Tt(t){return!t||typeof t!="object"||!("BYTES_PER_ELEMENT"in t)?!1:t.BYTES_PER_ELEMENT===1&&t.constructor.name==="Uint8Array"}function Vn(t){return t.opcode==="CREATE2"?da(t):ua(t)}function ua(t){const e=B(k(t.from));let a=B(t.nonce);return a[0]===0&&(a=new Uint8Array([])),k(`0x${Y(ia([e,a],"bytes")).slice(26)}`)}function da(t){const e=B(k(t.from)),a=Me(Tt(t.salt)?t.salt:B(t.salt),{size:32}),n="bytecodeHash"in t?Tt(t.bytecodeHash)?t.bytecodeHash:B(t.bytecodeHash):Y(t.bytecode,"bytes");return k(De(Y(ze([B("0xff"),e,a,n])),12))}function Jn({chains:t,id:e}){return t.find(a=>a.id===e)}function Dt(t,e="hex"){const a=(()=>{if(typeof t=="string"){if(t.length>3&&t.length%2!==0)throw new Ge(t);return H(t)}return t})(),n=ct(a,{recursiveReadLimit:Number.POSITIVE_INFINITY});return zt(n,e)}function zt(t,e="hex"){if(t.bytes.length===0)return e==="hex"?G(t.bytes):t.bytes;const a=t.readByte();if(a<128&&t.decrementPosition(1),a<192){const r=Ct(t,a,128),s=t.readBytes(r);return e==="hex"?G(s):s}const n=Ct(t,a,192);return la(t,n,e)}function Ct(t,e,a){if(a===128&&e<128)return 1;if(e<=a+55)return e-a;if(e===a+55+1)return t.readUint8();if(e===a+55+2)return t.readUint16();if(e===a+55+3)return t.readUint24();if(e===a+55+4)return t.readUint32();throw new mt("Invalid RLP prefix")}function la(t,e,a){const n=t.position,r=[];for(;t.position-n<e;)r.push(zt(t,a));return r}function ma(t){return E(t)&&$e(t)===32}const fa=Uint8Array.from([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),Gt=Uint8Array.from(new Array(16).fill(0).map((t,e)=>e)),ha=Gt.map(t=>(9*t+5)%16),$t=(()=>{const a=[[Gt],[ha]];for(let n=0;n<4;n++)for(let r of a)r.push(r[n].map(s=>fa[s]));return a})(),Ht=$t[0],Ot=$t[1],jt=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(t=>Uint8Array.from(t)),pa=Ht.map((t,e)=>t.map(a=>jt[e][a])),ya=Ot.map((t,e)=>t.map(a=>jt[e][a])),ga=Uint32Array.from([0,1518500249,1859775393,2400959708,2840853838]),ba=Uint32Array.from([1352829926,1548603684,1836072691,2053994217,0]);function vt(t,e,a,n){return t===0?e^a^n:t===1?e&a|~e&n:t===2?(e|~a)^n:t===3?e&n|a&~n:e^(a|~n)}const V=new Uint32Array(16);class wa extends ca{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:a,h2:n,h3:r,h4:s}=this;return[e,a,n,r,s]}set(e,a,n,r,s){this.h0=e|0,this.h1=a|0,this.h2=n|0,this.h3=r|0,this.h4=s|0}process(e,a){for(let o=0;o<16;o++,a+=4)V[o]=e.getUint32(a,!0);let n=this.h0|0,r=n,s=this.h1|0,u=s,d=this.h2|0,c=d,i=this.h3|0,f=i,m=this.h4|0,h=m;for(let o=0;o<5;o++){const p=4-o,l=ga[o],y=ba[o],w=Ht[o],g=Ot[o],C=pa[o],b=ya[o];for(let x=0;x<16;x++){const I=j(n+vt(o,s,d,i)+V[w[x]]+l,C[x])+m|0;n=m,m=i,i=j(d,10)|0,d=s,s=I}for(let x=0;x<16;x++){const I=j(r+vt(p,u,c,f)+V[g[x]]+y,b[x])+h|0;r=h,h=f,f=j(c,10)|0,c=u,u=I}}this.set(this.h1+d+f|0,this.h2+i+h|0,this.h3+m+r|0,this.h4+n+u|0,this.h0+s+c|0)}roundClean(){wt(V)}destroy(){this.destroyed=!0,wt(this.buffer),this.set(0,0,0,0,0)}}const xa=He(()=>new wa),Ea=xa;function Kn(t,e){const a=e||"hex",n=Ea(E(t,{strict:!1})?B(t):t);return a==="bytes"?n:Nt(n)}const st=new Map;async function Ia(t){const{getSocket:e,keepAlive:a=!0,key:n="socket",reconnect:r=!0,url:s}=t,{interval:u=3e4}=typeof a=="object"?a:{},{attempts:d=5,delay:c=2e3}=typeof r=="object"?r:{},i=JSON.stringify({keepAlive:a,key:n,url:s,reconnect:r});let f=st.get(i);if(f)return f;let m=0;const{schedule:h}=ie({id:i,fn:async()=>{const l=new Map,y=new Map;let w,g,C,b=!1;function x(){if(r&&m<d){if(b)return;b=!0,m++,g==null||g.close(),setTimeout(async()=>{await I().catch(console.error),b=!1},c)}else l.clear(),y.clear()}async function I(){const T=await e({onClose(){var v,P;for(const S of l.values())(v=S.onError)==null||v.call(S,new Z({url:s}));for(const S of y.values())(P=S.onError)==null||P.call(S,new Z({url:s}));x()},onError(v){var P,S;w=v;for(const _ of l.values())(P=_.onError)==null||P.call(_,w);for(const _ of y.values())(S=_.onError)==null||S.call(_,w);x()},onOpen(){w=void 0,m=0},onResponse(v){const P=v.method==="eth_subscription",S=P?v.params.subscription:v.id,_=P?y:l,q=_.get(S);q&&q.onResponse(v),P||_.delete(S)}});if(g=T,a&&(C&&clearInterval(C),C=setInterval(()=>{var v;return(v=g.ping)==null?void 0:v.call(g)},u)),r&&y.size>0){const v=y.entries();for(const[P,{onResponse:S,body:_,onError:q}]of v)_&&(y.delete(P),f==null||f.request({body:_,onResponse:S,onError:q}))}return T}return await I(),w=void 0,f={close(){C&&clearInterval(C),g.close(),st.delete(i)},get socket(){return g},request({body:T,onError:v,onResponse:P}){w&&v&&v(w);const S=T.id??ce.take(),_=q=>{var z;typeof q.id=="number"&&S!==q.id||(T.method==="eth_subscribe"&&typeof q.result=="string"&&y.set(q.result,{onResponse:_,onError:v,body:T}),T.method==="eth_unsubscribe"&&y.delete((z=T.params)==null?void 0:z[0]),P(q))};l.set(S,{onResponse:_,onError:v});try{g.request({body:{jsonrpc:"2.0",id:S,...T}})}catch(q){v==null||v(q)}},requestAsync({body:T,timeout:v=1e4}){return Ze(()=>new Promise((P,S)=>this.request({body:T,onError:S,onResponse:P})),{errorInstance:new aa({body:T,url:s}),timeout:v})},requests:l,subscriptions:y,url:s},st.set(i,f),[f]}}),[o,[p]]=await h();return p}async function K(t,e={}){const{keepAlive:a,reconnect:n}=e;return Ia({async getSocket({onClose:r,onError:s,onOpen:u,onResponse:d}){const c=await oa(()=>import("./native-Df5jPT-i.js").then(o=>o.n),__vite__mapDeps([0,1,2])).then(o=>o.WebSocket),i=new c(t);function f(){i.removeEventListener("close",f),i.removeEventListener("message",m),i.removeEventListener("error",s),i.removeEventListener("open",u),r()}function m({data:o}){if(!(typeof o=="string"&&o.trim().length===0))try{const p=JSON.parse(o);d(p)}catch(p){s(p)}}i.addEventListener("close",f),i.addEventListener("message",m),i.addEventListener("error",s),i.addEventListener("open",u),i.readyState===c.CONNECTING&&await new Promise((o,p)=>{i&&(i.onopen=o,i.onerror=p)});const{close:h}=i;return Object.assign(i,{close(){h.bind(i)(),f()},ping(){try{if(i.readyState===i.CLOSED||i.readyState===i.CLOSING)throw new It({url:i.url,cause:new Z({url:i.url})});const o={jsonrpc:"2.0",id:null,method:"net_version",params:[]};i.send(JSON.stringify(o))}catch(o){s(o)}},request({body:o}){if(i.readyState===i.CLOSED||i.readyState===i.CLOSING)throw new It({body:o,url:i.url,cause:new Z({url:i.url})});return i.send(JSON.stringify(o))}})},keepAlive:a,reconnect:n,url:t})}async function Ta(t){const e=await K(t);return Object.assign(e.socket,{requests:e.requests,subscriptions:e.subscriptions})}function Ca(t){return Lt(t,-32)===ue}function va(t){return de(t)}function Yn(t){if(!Ca(t))return{signature:t};const[e,a,n]=Mt([{type:"address"},{type:"bytes"},{type:"bytes"}],t);return{address:e,data:a,signature:n}}function Zn(t){if(!va(t))return{signature:t};const{authorization:e,to:a,...n}=le(t);return{authorization:{address:e.address,chainId:e.chainId,nonce:Number(e.nonce),r:R(e.r,{size:32}),s:R(e.s,{size:32}),yParity:e.yParity},...a?{address:a}:{},...n}}async function Sa({message:t,signature:e}){return Q({hash:me(t),signature:e})}async function Aa(t){const{domain:e,message:a,primaryType:n,signature:r,types:s}=t;return Q({hash:Qe({domain:e,message:a,primaryType:n,types:s}),signature:r})}function Qn(t){const{address:e,data:a,signature:n,to:r="hex"}=t,s=fe({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:a,signature:n,to:e});return r==="hex"?s:H(s)}async function Xn({address:t,hash:e,signature:a}){return ft(k(t),await Q({hash:e,signature:a}))}async function tr({address:t,message:e,signature:a}){return ft(k(t),await Sa({message:e,signature:a}))}async function er(t){const{address:e,domain:a,message:n,primaryType:r,signature:s,types:u}=t;return ft(k(e),await Aa({domain:a,message:n,primaryType:r,signature:s,types:u}))}function Pa(t){const e=Lt(t,0,1);if(e==="0x04")return"eip7702";if(e==="0x03")return"eip4844";if(e==="0x02")return"eip1559";if(e==="0x01")return"eip2930";if(e!=="0x"&&F(e)>=192)return"legacy";throw new he({serializedType:e})}function _a(t){const e=Pa(t);return e==="eip1559"?Fa(t):e==="eip2930"?Ua(t):e==="eip4844"?qa(t):e==="eip7702"?Ra(t):ka(t)}function Ra(t){const e=X(t),[a,n,r,s,u,d,c,i,f,m,h,o,p]=e;if(e.length!==10&&e.length!==13)throw new $({attributes:{chainId:a,nonce:n,maxPriorityFeePerGas:r,maxFeePerGas:s,gas:u,to:d,value:c,data:i,accessList:f,authorizationList:m,...e.length>9?{v:h,r:o,s:p}:{}},serializedTransaction:t,type:"eip7702"});const l={chainId:F(a),type:"eip7702"};return E(d)&&d!=="0x"&&(l.to=d),E(u)&&u!=="0x"&&(l.gas=A(u)),E(i)&&i!=="0x"&&(l.data=i),E(n)&&(l.nonce=n==="0x"?0:F(n)),E(c)&&c!=="0x"&&(l.value=A(c)),E(s)&&s!=="0x"&&(l.maxFeePerGas=A(s)),E(r)&&r!=="0x"&&(l.maxPriorityFeePerGas=A(r)),f.length!==0&&f!=="0x"&&(l.accessList=tt(f)),m.length!==0&&m!=="0x"&&(l.authorizationList=Ba(m)),we(l),{...e.length===13?O(e):void 0,...l}}function qa(t){const e=X(t),a=e.length===4,n=a?e[0]:e,r=a?e.slice(1):[],[s,u,d,c,i,f,m,h,o,p,l,y,w,g]=n,[C,b,x]=r;if(!(n.length===11||n.length===14))throw new $({attributes:{chainId:s,nonce:u,maxPriorityFeePerGas:d,maxFeePerGas:c,gas:i,to:f,value:m,data:h,accessList:o,...n.length>9?{v:y,r:w,s:g}:{}},serializedTransaction:t,type:"eip4844"});const I={blobVersionedHashes:l,chainId:F(s),to:f,type:"eip4844"};return E(i)&&i!=="0x"&&(I.gas=A(i)),E(h)&&h!=="0x"&&(I.data=h),E(u)&&(I.nonce=u==="0x"?0:F(u)),E(m)&&m!=="0x"&&(I.value=A(m)),E(p)&&p!=="0x"&&(I.maxFeePerBlobGas=A(p)),E(c)&&c!=="0x"&&(I.maxFeePerGas=A(c)),E(d)&&d!=="0x"&&(I.maxPriorityFeePerGas=A(d)),o.length!==0&&o!=="0x"&&(I.accessList=tt(o)),C&&b&&x&&(I.sidecars=ge({blobs:C,commitments:b,proofs:x})),be(I),{...n.length===14?O(n):void 0,...I}}function Fa(t){const e=X(t),[a,n,r,s,u,d,c,i,f,m,h,o]=e;if(!(e.length===9||e.length===12))throw new $({attributes:{chainId:a,nonce:n,maxPriorityFeePerGas:r,maxFeePerGas:s,gas:u,to:d,value:c,data:i,accessList:f,...e.length>9?{v:m,r:h,s:o}:{}},serializedTransaction:t,type:"eip1559"});const p={chainId:F(a),type:"eip1559"};return E(d)&&d!=="0x"&&(p.to=d),E(u)&&u!=="0x"&&(p.gas=A(u)),E(i)&&i!=="0x"&&(p.data=i),E(n)&&(p.nonce=n==="0x"?0:F(n)),E(c)&&c!=="0x"&&(p.value=A(c)),E(s)&&s!=="0x"&&(p.maxFeePerGas=A(s)),E(r)&&r!=="0x"&&(p.maxPriorityFeePerGas=A(r)),f.length!==0&&f!=="0x"&&(p.accessList=tt(f)),pe(p),{...e.length===12?O(e):void 0,...p}}function Ua(t){const e=X(t),[a,n,r,s,u,d,c,i,f,m,h]=e;if(!(e.length===8||e.length===11))throw new $({attributes:{chainId:a,nonce:n,gasPrice:r,gas:s,to:u,value:d,data:c,accessList:i,...e.length>8?{v:f,r:m,s:h}:{}},serializedTransaction:t,type:"eip2930"});const o={chainId:F(a),type:"eip2930"};return E(u)&&u!=="0x"&&(o.to=u),E(s)&&s!=="0x"&&(o.gas=A(s)),E(c)&&c!=="0x"&&(o.data=c),E(n)&&(o.nonce=n==="0x"?0:F(n)),E(d)&&d!=="0x"&&(o.value=A(d)),E(r)&&r!=="0x"&&(o.gasPrice=A(r)),i.length!==0&&i!=="0x"&&(o.accessList=tt(i)),ye(o),{...e.length===11?O(e):void 0,...o}}function ka(t){const e=Dt(t,"hex"),[a,n,r,s,u,d,c,i,f]=e;if(!(e.length===6||e.length===9))throw new $({attributes:{nonce:a,gasPrice:n,gas:r,to:s,value:u,data:d,...e.length>6?{v:c,r:i,s:f}:{}},serializedTransaction:t,type:"legacy"});const m={type:"legacy"};if(E(s)&&s!=="0x"&&(m.to=s),E(r)&&r!=="0x"&&(m.gas=A(r)),E(d)&&d!=="0x"&&(m.data=d),E(a)&&(m.nonce=a==="0x"?0:F(a)),E(u)&&u!=="0x"&&(m.value=A(u)),E(n)&&n!=="0x"&&(m.gasPrice=A(n)),xe(m),e.length===6)return m;const h=E(c)&&c!=="0x"?A(c):0n;if(f==="0x"&&i==="0x")return h>0&&(m.chainId=Number(h)),m;const o=h,p=Number((o-35n)/2n);if(p>0)m.chainId=p;else if(o!==27n&&o!==28n)throw new Ee({v:o});return m.v=o,m.s=f,m.r=i,m.yParity=o%2n===0n?1:0,m}function X(t){return Dt(`0x${t.slice(4)}`,"hex")}function tt(t){const e=[];for(let a=0;a<t.length;a++){const[n,r]=t[a];if(!Oe(n,{strict:!1}))throw new je({address:n});e.push({address:n,storageKeys:r.map(s=>ma(s)?s:We(s))})}return e}function Ba(t){const e=[];for(let a=0;a<t.length;a++){const[n,r,s,u,d,c]=t[a];e.push({address:r,chainId:n==="0x"?0:F(n),nonce:s==="0x"?0:F(s),...O([u,d,c])})}return e}function O(t){const e=t.slice(-3),a=e[0]==="0x"||A(e[0])===0n?27n:28n;return{r:xt(e[1],{size:32}),s:xt(e[2],{size:32}),v:a,yParity:a===27n?0:1}}class Na extends mt{constructor({value:e}){super(`Number \`${e}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}function Wt(t,e){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(t))throw new Na({value:t});let[a,n="0"]=t.split(".");const r=a.startsWith("-");if(r&&(a=a.slice(1)),n=n.replace(/(0+)$/,""),e===0)Math.round(+`.${n}`)===1&&(a=`${BigInt(a)+1n}`),n="";else if(n.length>e){const[s,u,d]=[n.slice(0,e-1),n.slice(e-1,e),n.slice(e)],c=Math.round(+`${u}.${d}`);c>9?n=`${BigInt(s)+BigInt(1)}0`.padStart(s.length+1,"0"):n=`${s}${c}`,n.length>e&&(n=n.slice(1),a=`${BigInt(a)+1n}`),n=n.slice(0,e)}else n=n.padEnd(e,"0");return BigInt(`${r?"-":""}${a}${n}`)}function ar(t,e="wei"){return Wt(t,Ie[e])}function nr(t,e="wei"){return Wt(t,Te[e])}async function La(t,{hash:e}){await t.request({method:`${t.mode}_dropTransaction`,params:[e]})}async function Ma(t){return t.request({method:`${t.mode}_dumpState`})}async function Da(t){return t.mode==="ganache"?await t.request({method:"eth_mining"}):await t.request({method:`${t.mode}_getAutomine`})}async function za(t){return await t.request({method:"txpool_content"})}async function Ga(t){const{pending:e,queued:a}=await t.request({method:"txpool_status"});return{pending:F(e),queued:F(a)}}async function $a(t,{address:e}){await t.request({method:`${t.mode}_impersonateAccount`,params:[e]})}async function Ha(t,{seconds:e}){return await t.request({method:"evm_increaseTime",params:[R(e)]})}async function Oa(t){return await t.request({method:"txpool_inspect"})}async function ja(t,{state:e}){await t.request({method:`${t.mode}_loadState`,params:[e]})}async function Wa(t,{blocks:e,interval:a}){t.mode==="ganache"?await t.request({method:"evm_mine",params:[{blocks:R(e)}]}):await t.request({method:`${t.mode}_mine`,params:[R(e),R(a||0)]})}async function Va(t){await t.request({method:`${t.mode}_removeBlockTimestampInterval`})}async function Ja(t,{blockNumber:e,jsonRpcUrl:a}={}){await t.request({method:`${t.mode}_reset`,params:[{forking:{blockNumber:Number(e),jsonRpcUrl:a}}]})}async function Ka(t,{id:e}){await t.request({method:"evm_revert",params:[e]})}async function Ya(t,e){var w,g,C;const{accessList:a,data:n,from:r,gas:s,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:c,nonce:i,to:f,value:m,...h}=e,o=(C=(g=(w=t.chain)==null?void 0:w.formatters)==null?void 0:g.transactionRequest)==null?void 0:C.format,l=(o||ht)({...St(h,{format:o}),accessList:a,data:n,from:r,gas:s,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:c,nonce:i,to:f,value:m},"sendUnsignedTransaction");return await t.request({method:"eth_sendUnsignedTransaction",params:[l]})}async function Za(t,e){t.mode==="ganache"?e?await t.request({method:"miner_start"}):await t.request({method:"miner_stop"}):await t.request({method:"evm_setAutomine",params:[e]})}async function Qa(t,{address:e,value:a}){t.mode==="ganache"?await t.request({method:"evm_setAccountBalance",params:[e,R(a)]}):await t.request({method:`${t.mode}_setBalance`,params:[e,R(a)]})}async function Xa(t,{gasLimit:e}){await t.request({method:"evm_setBlockGasLimit",params:[R(e)]})}async function tn(t,{interval:e}){const a=t.mode==="hardhat"?e*1e3:e;await t.request({method:`${t.mode}_setBlockTimestampInterval`,params:[a]})}async function en(t,{address:e,bytecode:a}){t.mode==="ganache"?await t.request({method:"evm_setAccountCode",params:[e,a]}):await t.request({method:`${t.mode}_setCode`,params:[e,a]})}async function an(t,{address:e}){await t.request({method:`${t.mode}_setCoinbase`,params:[e]})}async function nn(t,{interval:e}){const a=t.mode==="hardhat"?e*1e3:e;await t.request({method:"evm_setIntervalMining",params:[a]})}async function rn(t,e){await t.request({method:`${t.mode}_setLoggingEnabled`,params:[e]})}async function sn(t,{gasPrice:e}){await t.request({method:`${t.mode}_setMinGasPrice`,params:[R(e)]})}async function on(t,{baseFeePerGas:e}){await t.request({method:`${t.mode}_setNextBlockBaseFeePerGas`,params:[R(e)]})}async function cn(t,{timestamp:e}){await t.request({method:"evm_setNextBlockTimestamp",params:[R(e)]})}async function un(t,{address:e,nonce:a}){await t.request({method:`${t.mode}_setNonce`,params:[e,R(a)]})}async function dn(t,e){await t.request({method:`${t.mode}_setRpcUrl`,params:[e]})}async function ln(t,{address:e,index:a,value:n}){await t.request({method:`${t.mode}_setStorageAt`,params:[e,typeof a=="number"?R(a):a,n]})}async function mn(t){return await t.request({method:"evm_snapshot"})}async function fn(t,{address:e}){await t.request({method:`${t.mode}_stopImpersonatingAccount`,params:[e]})}function hn({mode:t}){return e=>{const a=e.extend(()=>({mode:t}));return{dropTransaction:n=>La(a,n),dumpState:()=>Ma(a),getAutomine:()=>Da(a),getTxpoolContent:()=>za(a),getTxpoolStatus:()=>Ga(a),impersonateAccount:n=>$a(a,n),increaseTime:n=>Ha(a,n),inspectTxpool:()=>Oa(a),loadState:n=>ja(a,n),mine:n=>Wa(a,n),removeBlockTimestampInterval:()=>Va(a),reset:n=>Ja(a,n),revert:n=>Ka(a,n),sendUnsignedTransaction:n=>Ya(a,n),setAutomine:n=>Za(a,n),setBalance:n=>Qa(a,n),setBlockGasLimit:n=>Xa(a,n),setBlockTimestampInterval:n=>tn(a,n),setCode:n=>en(a,n),setCoinbase:n=>an(a,n),setIntervalMining:n=>nn(a,n),setLoggingEnabled:n=>rn(a,n),setMinGasPrice:n=>sn(a,n),setNextBlockBaseFeePerGas:n=>on(a,n),setNextBlockTimestamp:n=>cn(a,n),setNonce:n=>un(a,n),setRpcUrl:n=>dn(a,n),setStorageAt:n=>ln(a,n),snapshot:()=>mn(a),stopImpersonatingAccount:n=>fn(a,n)}}}function rr(t){const{key:e="test",name:a="Test Client",mode:n}=t;return At({...t,key:e,name:a,type:"testClient"}).extend(s=>({mode:n,...hn({mode:n})(s)}))}async function pn(t,{chain:e}){const{id:a,name:n,nativeCurrency:r,rpcUrls:s,blockExplorers:u}=e;await t.request({method:"wallet_addEthereumChain",params:[{chainId:R(a),chainName:n,nativeCurrency:r,rpcUrls:s.default.http,blockExplorerUrls:u?Object.values(u).map(({url:d})=>d):void 0}]},{dedupe:!0,retryCount:0})}function yn(t,e){const{abi:a,args:n,bytecode:r,...s}=e,u=Ce({abi:a,args:n,bytecode:r});return ut(t,{...s,...s.authorizationList?{to:null}:{},data:u})}async function gn(t){var a;return((a=t.account)==null?void 0:a.type)==="local"?[t.account.address]:(await t.request({method:"eth_accounts"},{dedupe:!0})).map(n=>Ve(n))}async function bn(t,e={}){const{account:a=t.account,chainId:n}=e,r=a?N(a):void 0,s=n?[r==null?void 0:r.address,[R(n)]]:[r==null?void 0:r.address],u=await t.request({method:"wallet_getCapabilities",params:s}),d={};for(const[c,i]of Object.entries(u)){d[Number(c)]={};for(let[f,m]of Object.entries(i))f==="addSubAccount"&&(f="unstable_addSubAccount"),d[Number(c)][f]=m}return typeof n=="number"?d[n]:d}async function wn(t){return await t.request({method:"wallet_getPermissions"},{dedupe:!0})}async function xn(t){return(await t.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(a=>k(a))}async function En(t,e){return t.request({method:"wallet_requestPermissions",params:[e]},{retryCount:0})}async function In(t,e){const{chain:a=t.chain}=e,n=e.timeout??Math.max(((a==null?void 0:a.blockTime)??0)*3,5e3),r=await Pt(t,e);return await _t(t,{...e,id:r.id,timeout:n})}const ot=new Je(128);async function Vt(t,e){var x,I,T,v;const{account:a=t.account,chain:n=t.chain,accessList:r,authorizationList:s,blobs:u,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:m,maxPriorityFeePerGas:h,nonce:o,pollingInterval:p,throwOnReceiptRevert:l,type:y,value:w,...g}=e,C=e.timeout??Math.max(((n==null?void 0:n.blockTime)??0)*3,5e3);if(typeof a>"u")throw new D({docsPath:"/docs/actions/wallet/sendTransactionSync"});const b=a?N(a):null;try{Rt(e);const P=await(async()=>{if(e.to)return e.to;if(e.to!==null&&s&&s.length>0)return await ve({authorization:s[0]}).catch(()=>{throw new mt("`to` is required. Could not infer from `authorizationList`.")})})();if((b==null?void 0:b.type)==="json-rpc"||b===null){let S;n!==null&&(S=await U(t,dt,"getChainId")({}),qt({currentChainId:S,chain:n}));const _=(T=(I=(x=t.chain)==null?void 0:x.formatters)==null?void 0:I.transactionRequest)==null?void 0:T.format,z=(_||ht)({...St(g,{format:_}),accessList:r,account:b,authorizationList:s,blobs:u,chainId:S,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:m,maxPriorityFeePerGas:h,nonce:o,to:P,type:y,value:w},"sendTransaction"),pt=ot.get(t.uid),Jt=pt?"wallet_sendTransaction":"eth_sendTransaction",Kt=await(async()=>{try{return await t.request({method:Jt,params:[z]},{retryCount:0})}catch(yt){if(pt===!1)throw yt;const L=yt;if(L.name==="InvalidInputRpcError"||L.name==="InvalidParamsRpcError"||L.name==="MethodNotFoundRpcError"||L.name==="MethodNotSupportedRpcError")return await t.request({method:"wallet_sendTransaction",params:[z]},{retryCount:0}).then(at=>(ot.set(t.uid,!0),at)).catch(at=>{const nt=at;throw nt.name==="MethodNotFoundRpcError"||nt.name==="MethodNotSupportedRpcError"?(ot.set(t.uid,!1),L):nt});throw L}})(),et=await U(t,Se,"waitForTransactionReceipt")({checkReplacement:!1,hash:Kt,pollingInterval:p,timeout:C});if(l&&et.status==="reverted")throw new Ae({receipt:et});return et}if((b==null?void 0:b.type)==="local"){const S=await U(t,Ft,"prepareTransactionRequest")({account:b,accessList:r,authorizationList:s,blobs:u,chain:n,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:m,maxPriorityFeePerGas:h,nonce:o,nonceManager:b.nonceManager,parameters:[...Pe,"sidecars"],type:y,value:w,...g,to:P}),_=(v=n==null?void 0:n.serializers)==null?void 0:v.transaction,q=await b.signTransaction(S,{serializer:_});return await U(t,Ut,"sendRawTransactionSync")({serializedTransaction:q,throwOnReceiptRevert:l})}throw(b==null?void 0:b.type)==="smart"?new J({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new J({docsPath:"/docs/actions/wallet/sendTransactionSync",type:b==null?void 0:b.type})}catch(P){throw P instanceof J?P:_e(P,{...e,account:b,chain:e.chain||void 0})}}async function Tn(t,e){const{id:a}=e;await t.request({method:"wallet_showCallsStatus",params:[a]})}async function Cn(t,e){const{account:a=t.account}=e;if(!a)throw new D({docsPath:"/docs/eip7702/signAuthorization"});const n=N(a);if(!n.signAuthorization)throw new J({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:n.type});const r=await kt(t,e);return n.signAuthorization(r)}async function vn(t,{account:e=t.account,message:a}){if(!e)throw new D({docsPath:"/docs/actions/wallet/signMessage"});const n=N(e);if(n.signMessage)return n.signMessage({message:a});const r=typeof a=="string"?Ke(a):a.raw instanceof Uint8Array?Nt(a.raw):a.raw;return t.request({method:"personal_sign",params:[r,n.address]},{retryCount:0})}async function Sn(t,e){var i,f,m,h;const{account:a=t.account,chain:n=t.chain,...r}=e;if(!a)throw new D({docsPath:"/docs/actions/wallet/signTransaction"});const s=N(a);Rt({account:s,...e});const u=await U(t,dt,"getChainId")({});n!==null&&qt({currentChainId:u,chain:n});const d=(n==null?void 0:n.formatters)||((i=t.chain)==null?void 0:i.formatters),c=((f=d==null?void 0:d.transactionRequest)==null?void 0:f.format)||ht;return s.signTransaction?s.signTransaction({...r,chainId:u},{serializer:(h=(m=t.chain)==null?void 0:m.serializers)==null?void 0:h.transaction}):await t.request({method:"eth_signTransaction",params:[{...c({...r,account:s},"signTransaction"),chainId:R(u),from:s.address}]},{retryCount:0})}async function An(t,e){const{account:a=t.account,domain:n,message:r,primaryType:s}=e;if(!a)throw new D({docsPath:"/docs/actions/wallet/signTypedData"});const u=N(a),d={EIP712Domain:Xe({domain:n}),...e.types};if(ta({domain:n,message:r,primaryType:s,types:d}),u.signTypedData)return u.signTypedData({domain:n,message:r,primaryType:s,types:d});const c=ea({domain:n,message:r,primaryType:s,types:d});return t.request({method:"eth_signTypedData_v4",params:[u.address,c]},{retryCount:0})}async function Pn(t,{id:e}){await t.request({method:"wallet_switchEthereumChain",params:[{chainId:R(e)}]},{retryCount:0})}async function _n(t,e){return await t.request({method:"wallet_watchAsset",params:e},{retryCount:0})}async function Rn(t,e){return M.internal(t,Vt,"sendTransactionSync",e)}function qn(t){return{addChain:e=>pn(t,e),deployContract:e=>yn(t,e),getAddresses:()=>gn(t),getCallsStatus:e=>qe(t,e),getCapabilities:e=>bn(t,e),getChainId:()=>dt(t),getPermissions:()=>wn(t),prepareAuthorization:e=>kt(t,e),prepareTransactionRequest:e=>Ft(t,e),requestAddresses:()=>xn(t),requestPermissions:e=>En(t,e),sendCalls:e=>Pt(t,e),sendCallsSync:e=>In(t,e),sendRawTransaction:e=>Re(t,e),sendRawTransactionSync:e=>Ut(t,e),sendTransaction:e=>ut(t,e),sendTransactionSync:e=>Vt(t,e),showCallsStatus:e=>Tn(t,e),signAuthorization:e=>Cn(t,e),signMessage:e=>vn(t,e),signTransaction:e=>Sn(t,e),signTypedData:e=>An(t,e),switchChain:e=>Pn(t,e),waitForCallsStatus:e=>_t(t,e),watchAsset:e=>_n(t,e),writeContract:e=>M(t,e),writeContractSync:e=>Rn(t,e)}}function sr(t){const{key:e="wallet",name:a="Wallet Client",transport:n}=t;return At({...t,key:e,name:a,transport:n,type:"walletClient"}).extend(qn)}function or(t,e={}){const{key:a="custom",methods:n,name:r="Custom Provider",retryDelay:s}=e;return({retryCount:u})=>lt({key:a,methods:n,name:r,request:t.request.bind(t),retryCount:e.retryCount??u,retryDelay:s,type:"custom"})}function ir(t,e={}){const{key:a="fallback",name:n="Fallback",rank:r=!1,shouldThrow:s=Fn,retryCount:u,retryDelay:d}=e;return(({chain:c,pollingInterval:i=4e3,timeout:f,...m})=>{let h=t,o=()=>{};const p=lt({key:a,name:n,async request({method:l,params:y}){let w;const g=async(C=0)=>{const b=h[C]({...m,chain:c,retryCount:0,timeout:f});try{const x=await b.request({method:l,params:y});return o({method:l,params:y,response:x,transport:b,status:"success"}),x}catch(x){if(o({error:x,method:l,params:y,transport:b,status:"error"}),s(x)||C===h.length-1||(w??(w=h.slice(C+1).some(I=>{const{include:T,exclude:v}=I({chain:c}).config.methods||{};return T?T.includes(l):v?!v.includes(l):!0})),!w))throw x;return g(C+1)}};return g()},retryCount:u,retryDelay:d,type:"fallback"},{onResponse:l=>o=l,transports:h.map(l=>l({chain:c,retryCount:0}))});if(r){const l=typeof r=="object"?r:{};Un({chain:c,interval:l.interval??i,onTransports:y=>h=y,ping:l.ping,sampleCount:l.sampleCount,timeout:l.timeout,transports:h,weights:l.weights})}return p})}function Fn(t){return!!("code"in t&&typeof t.code=="number"&&(t.code===na.code||t.code===ra.code||Fe.nodeMessage.test(t.message)||t.code===5e3))}function Un({chain:t,interval:e=4e3,onTransports:a,ping:n,sampleCount:r=10,timeout:s=1e3,transports:u,weights:d={}}){const{stability:c=.7,latency:i=.3}=d,f=[],m=async()=>{const h=await Promise.all(u.map(async l=>{const y=l({chain:t,retryCount:0,timeout:s}),w=Date.now();let g,C;try{await(n?n({transport:y}):y.request({method:"net_listening"})),C=1}catch{C=0}finally{g=Date.now()}return{latency:g-w,success:C}}));f.push(h),f.length>r&&f.shift();const o=Math.max(...f.map(l=>Math.max(...l.map(({latency:y})=>y)))),p=u.map((l,y)=>{const w=f.map(I=>I[y].latency),C=1-w.reduce((I,T)=>I+T,0)/w.length/o,b=f.map(I=>I[y].success),x=b.reduce((I,T)=>I+T,0)/b.length;return x===0?[0,y]:[i*C+c*x,y]}).sort((l,y)=>y[0]-l[0]);a(p.map(([,l])=>u[l])),await Ue(e),m()};m()}function cr(t,e={}){const{keepAlive:a,key:n="webSocket",methods:r,name:s="WebSocket JSON-RPC",reconnect:u,retryDelay:d}=e;return({chain:c,retryCount:i,timeout:f})=>{var l;const m=e.retryCount??i,h=f??e.timeout??1e4,o=t||((l=c==null?void 0:c.rpcUrls.default.webSocket)==null?void 0:l[0]),p={keepAlive:a,reconnect:u};if(!o)throw new ke;return lt({key:n,methods:r,name:s,async request({method:y,params:w}){const g={method:y,params:w},C=await K(o,p),{error:b,result:x}=await C.requestAsync({body:g,timeout:h});if(b)throw new sa({body:g,error:b,url:o});return x},retryCount:m,retryDelay:d,timeout:h,type:"webSocket"},{getSocket(){return Ta(o)},getRpcClient(){return K(o,p)},async subscribe({params:y,onData:w,onError:g}){const C=await K(o,p),{result:b}=await new Promise((x,I)=>C.request({body:{method:"eth_subscribe",params:y},onError(T){I(T),g==null||g(T)},onResponse(T){if(T.error){I(T.error),g==null||g(T.error);return}if(typeof T.id=="number"){x(T);return}T.method==="eth_subscription"&&w(T.params)}}));return{subscriptionId:b,async unsubscribe(){return new Promise(x=>C.request({body:{method:"eth_unsubscribe",params:[b]},onResponse:x}))}}}})}}class ur extends Error{constructor(e,a){super(a),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=e,this.details=a}}const it="/docs/contract/decodeDeployData";function dr(t){const{abi:e,bytecode:a,data:n}=t;if(n===a)return{bytecode:a};const r=e.find(u=>"type"in u&&u.type==="constructor");if(!r)throw new Ye({docsPath:it});if(!("inputs"in r))throw new Et({docsPath:it});if(!r.inputs||r.inputs.length===0)throw new Et({docsPath:it});return{args:Mt(r.inputs,`0x${n.replace(a,"")}`),bytecode:a}}function lr(t){const e=t.to??(typeof t.blobs[0]=="string"?"hex":"bytes"),a=typeof t.blobs[0]=="string"?t.blobs.map(d=>H(d)):t.blobs,n=a.reduce((d,c)=>d+c.length,0),r=ct(new Uint8Array(n));let s=!0;for(const d of a){const c=ct(d);for(;s&&c.position<d.length;){c.incrementPosition(1);let i=31;d.length-c.position<31&&(i=d.length-c.position);for(const f in Array.from({length:i})){const m=c.readByte();if(m===128&&!c.inspectBytes(c.remaining).includes(128)){s=!1;break}r.pushByte(m)}}}const u=r.bytes.slice(0,r.position);return e==="hex"?G(u):u}function mr(t){const{sidecars:e,version:a}=t,n=t.to??(typeof e[0].blob=="string"?"hex":"bytes"),r=[];for(const{commitment:s}of e)r.push(Be({commitment:s,to:n,version:a}));return r}const kn=2147483648;function fr(t){if(t===1)return 60n;if(t>=kn||t<0)throw new Ne({chainId:t});return BigInt((2147483648|t)>>>0)}function Bn({blobToKzgCommitment:t,computeBlobKzgProof:e}){return{blobToKzgCommitment:t,computeBlobKzgProof:e}}function hr(t,e){try{t.loadTrustedSetup(e)}catch(a){const n=a;if(!n.message.includes("trusted setup is already loaded"))throw n}return Bn(t)}function pr({r:t,yParityAndS:e}){const a=H(e),n=a[0]&128?1:0,r=a;return n===1&&(r[0]&=127),{r:t,s:G(r),yParity:n}}function yr(t){const{r:e,s:a}=Bt.Signature.fromCompact(t.slice(2,130));return{r:R(e,{size:32}),yParityAndS:R(a,{size:32})}}async function gr(t){const{serializedTransaction:e,signature:a}=t,n=_a(e),r=a??{r:n.r,s:n.s,v:n.v,yParity:n.yParity},s=Le({...n,r:void 0,s:void 0,v:void 0,yParity:void 0,sidecars:void 0});return await Q({hash:Y(s),signature:r})}function br({r:t,yParityAndS:e}){return`0x${new Bt.Signature(A(t),A(e)).toCompactHex()}`}function wr(t){const{r:e,s:a,v:n,yParity:r}=t,s=Number(r??n-27n);let u=a;if(s===1){const d=H(a);d[0]|=128,u=G(d)}return{r:e,yParityAndS:u}}export{Ye as AbiConstructorNotFoundError,Et as AbiConstructorParamsNotFoundError,To as AbiDecodingDataSizeInvalidError,Co as AbiDecodingDataSizeTooSmallError,vo as AbiDecodingZeroDataError,So as AbiEncodingArrayLengthMismatchError,Ao as AbiEncodingBytesSizeMismatchError,Po as AbiEncodingLengthMismatchError,_o as AbiErrorInputsNotFoundError,Ro as AbiErrorNotFoundError,qo as AbiErrorSignatureNotFoundError,Fo as AbiEventNotFoundError,Uo as AbiEventSignatureEmptyTopicsError,ko as AbiEventSignatureNotFoundError,Bo as AbiFunctionNotFoundError,No as AbiFunctionOutputsNotFoundError,Lo as AbiFunctionSignatureNotFoundError,Ir as AccountStateConflictError,Ki as AtomicReadyWalletRejectedUpgradeError,Yi as AtomicityNotSupportedError,mt as BaseError,Tr as BaseFeeScalarError,Cr as BlockNotFoundError,vr as BundleFailedError,Zi as BundleTooLargeError,Mo as BytesSizeMismatchError,Sr as CallExecutionError,Qi as ChainDisconnectedError,Ar as ChainDoesNotSupportContract,Pr as ChainMismatchError,_r as ChainNotFoundError,Rr as CircularReferenceError,qr as ClientChainNotConfiguredError,Fr as ContractFunctionExecutionError,Ur as ContractFunctionRevertedError,kr as ContractFunctionZeroDataError,Br as CounterfactualDeploymentFailedError,Do as DecodeLogDataMismatch,zo as DecodeLogTopicsMismatch,Xi as DuplicateIdError,ur as EIP1193ProviderRpcError,Nr as Eip1559FeesNotSupportedError,Lr as EnsAvatarInvalidNftUriError,Mr as EnsAvatarUnsupportedNamespaceError,Dr as EnsAvatarUriResolutionError,Ne as EnsInvalidChainIdError,zr as EstimateGasExecutionError,Fe as ExecutionRevertedError,Gr as FeeCapTooHighError,$r as FeeCapTooLowError,Hr as FeeConflictError,Go as FilterTypeNotSupportedError,tc as HttpRequestError,Or as InsufficientFundsError,$o as IntegerOutOfRangeError,ec as InternalRpcError,jr as IntrinsicGasTooHighError,Wr as IntrinsicGasTooLowError,Ho as InvalidAbiDecodingTypeError,Oo as InvalidAbiEncodingTypeError,Vr as InvalidAbiItemError,Qt as InvalidAbiParameterError,Jr as InvalidAbiParametersError,Kr as InvalidAbiTypeParameterError,je as InvalidAddressError,jo as InvalidArrayError,Wo as InvalidBytesBooleanError,Yr as InvalidChainIdError,Na as InvalidDecimalNumberError,Vo as InvalidDefinitionTypeError,$i as InvalidDomainError,Zr as InvalidFunctionModifierError,Jo as InvalidHexBooleanError,Ge as InvalidHexValueError,ac as InvalidInputRpcError,Ee as InvalidLegacyVError,Qr as InvalidModifierError,Xr as InvalidParameterError,nc as InvalidParamsRpcError,ts as InvalidParenthesisError,Hi as InvalidPrimaryTypeError,rc as InvalidRequestRpcError,es as InvalidSerializableTransactionError,$ as InvalidSerializedTransactionError,he as InvalidSerializedTransactionTypeError,as as InvalidSignatureError,ns as InvalidStorageKeySizeError,rs as InvalidStructSignatureError,Oi as InvalidStructTypeError,sc as JsonRpcVersionUnsupportedError,oc as LimitExceededRpcError,ss as MaxFeePerGasTooLowError,ic as MethodNotFoundRpcError,cc as MethodNotSupportedRpcError,os as NonceMaxValueError,is as NonceTooHighError,cs as NonceTooLowError,uc as ParseRpcError,dc as ProviderDisconnectedError,lc as ProviderRpcError,us as RawContractError,mc as ResourceNotFoundRpcError,fc as ResourceUnavailableRpcError,hc as RpcError,sa as RpcRequestError,Ko as SizeExceedsPaddingSizeError,Yo as SizeOverflowError,Zo as SliceOffsetOutOfBoundsError,Z as SocketClosedError,ds as SolidityProtectedKeywordError,ls as StateAssignmentConflictError,pc as SwitchChainError,aa as TimeoutError,ms as TipAboveFeeCapError,fs as TransactionExecutionError,hs as TransactionNotFoundError,ps as TransactionReceiptNotFoundError,na as TransactionRejectedRpcError,ys as TransactionTypeNotSupportedError,yc as UnauthorizedProviderError,gc as UnknownBundleIdError,gs as UnknownNodeError,bc as UnknownRpcError,bs as UnknownSignatureError,ws as UnknownTypeError,wc as UnsupportedChainIdError,xc as UnsupportedNonOptionalCapabilityError,Qo as UnsupportedPackedAbiType,Ec as UnsupportedProviderMethodError,ke as UrlRequiredError,ra as UserRejectedRequestError,xs as WaitForCallsStatusTimeoutError,Es as WaitForTransactionReceiptTimeoutError,It as WebSocketRequestError,qt as assertCurrentChain,Rt as assertRequest,pe as assertTransactionEIP1559,ye as assertTransactionEIP2930,xe as assertTransactionLegacy,Is as blobsToCommitments,Ts as blobsToProofs,Xo as boolToBytes,ti as boolToHex,ei as bytesToBigInt,ai as bytesToBool,G as bytesToHex,ni as bytesToNumber,Tc as bytesToRlp,ri as bytesToString,pd as ccipFetch,yd as ccipRequest,Ve as checksumAddress,Be as commitmentToVersionedHash,Cs as commitmentsToVersionedHashes,br as compactSignatureToHex,pr as compactSignatureToSignature,ze as concat,si as concatBytes,oi as concatHex,At as createClient,vs as createNonceManager,Ss as createPublicClient,rr as createTestClient,lt as createTransport,sr as createWalletClient,or as custom,Mt as decodeAbiParameters,dr as decodeDeployData,ii as decodeErrorResult,ci as decodeEventLog,As as decodeFunctionData,Ps as decodeFunctionResult,ui as defineBlock,di as defineChain,Bn as defineKzg,li as defineTransaction,Ed as defineTransactionReceipt,mi as defineTransactionRequest,_s as deploylessCallViaBytecodeBytecode,Rs as deploylessCallViaFactoryBytecode,ji as domainSeparator,fi as encodeAbiParameters,Ce as encodeDeployData,qs as encodeErrorResult,hi as encodeEventTopics,Xt as encodeFunctionData,Fs as encodeFunctionResult,Us as encodePacked,ks as erc1155Abi,Bs as erc20Abi,Ns as erc20Abi_bytes32,Ls as erc4626Abi,Ms as erc6492SignatureValidatorAbi,Ds as erc6492SignatureValidatorByteCode,zs as erc721Abi,Gs as ethAddress,Ie as etherUnits,Jn as extractChain,ir as fallback,pi as formatBlock,$s as formatEther,Hs as formatGwei,Id as formatLog,yi as formatTransaction,Td as formatTransactionReceipt,ht as formatTransactionRequest,Os as formatUnits,lr as fromBlobs,gi as fromBytes,bi as fromHex,Dt as fromRlp,wi as getAbiItem,k as getAddress,js as getChainContractAddress,Wn as getContract,Vn as getContractAddress,te as getContractError,da as getCreate2Address,ua as getCreateAddress,xi as getEventSelector,Ei as getEventSignature,Ii as getFunctionSelector,Ti as getFunctionSignature,Pa as getSerializedTransactionType,Ws as getTransactionType,Xe as getTypesForEIP712Domain,Te as gweiUnits,Wi as hashDomain,me as hashMessage,Vi as hashStruct,Qe as hashTypedData,A as hexToBigInt,Ci as hexToBool,H as hexToBytes,yr as hexToCompactSignature,F as hexToNumber,Cc as hexToRlp,Vs as hexToSignature,vi as hexToString,Js as http,Oe as isAddress,ft as isAddressEqual,Tt as isBytes,Ca as isErc6492Signature,va as isErc8010Signature,ma as isHash,E as isHex,Y as keccak256,Ks as labelhash,vc as maxInt104,Sc as maxInt112,Ac as maxInt120,Pc as maxInt128,_c as maxInt136,Rc as maxInt144,qc as maxInt152,Fc as maxInt16,Uc as maxInt160,kc as maxInt168,Bc as maxInt176,Nc as maxInt184,Lc as maxInt192,Mc as maxInt200,Dc as maxInt208,zc as maxInt216,Gc as maxInt224,$c as maxInt232,Hc as maxInt24,Oc as maxInt240,jc as maxInt248,Wc as maxInt256,Vc as maxInt32,Jc as maxInt40,Kc as maxInt48,Yc as maxInt56,Zc as maxInt64,Qc as maxInt72,Xc as maxInt8,tu as maxInt80,eu as maxInt88,au as maxInt96,nu as maxUint104,ru as maxUint112,su as maxUint120,ou as maxUint128,iu as maxUint136,cu as maxUint144,uu as maxUint152,du as maxUint16,lu as maxUint160,mu as maxUint168,fu as maxUint176,hu as maxUint184,pu as maxUint192,yu as maxUint200,gu as maxUint208,bu as maxUint216,wu as maxUint224,xu as maxUint232,Eu as maxUint24,Iu as maxUint240,Tu as maxUint248,Cu as maxUint256,vu as maxUint32,Su as maxUint40,Au as maxUint48,Pu as maxUint56,_u as maxUint64,Ru as maxUint72,qu as maxUint8,Fu as maxUint80,Uu as maxUint88,ku as maxUint96,Bu as minInt104,Nu as minInt112,Lu as minInt120,Mu as minInt128,Du as minInt136,zu as minInt144,Gu as minInt152,$u as minInt16,Hu as minInt160,Ou as minInt168,ju as minInt176,Wu as minInt184,Vu as minInt192,Ju as minInt200,Ku as minInt208,Yu as minInt216,Zu as minInt224,Qu as minInt232,Xu as minInt24,td as minInt240,ed as minInt248,ad as minInt256,nd as minInt32,rd as minInt40,sd as minInt48,od as minInt56,id as minInt64,cd as minInt72,ud as minInt8,dd as minInt80,ld as minInt88,md as minInt96,Ys as multicall3Abi,Zs as namehash,Qs as nonceManager,Si as numberToBytes,R as numberToHex,gd as offchainLookup,bd as offchainLookupAbiItem,wd as offchainLookupSignature,Me as pad,Ai as padBytes,xt as padHex,Xs as parseAbi,to as parseAbiItem,jn as parseAbiParameter,eo as parseAbiParameters,yr as parseCompactSignature,Yn as parseErc6492Signature,Zn as parseErc8010Signature,ar as parseEther,Pi as parseEventLogs,nr as parseGwei,ao as parseSignature,_a as parseTransaction,Wt as parseUnits,no as prepareEncodeFunctionData,ro as presignMessagePrefix,so as publicActions,Q as recoverAddress,Sa as recoverMessageAddress,oo as recoverPublicKey,gr as recoverTransactionAddress,Aa as recoverTypedDataAddress,Kn as ripemd160,io as rpcSchema,_i as rpcTransactionType,co as serializeAccessList,br as serializeCompactSignature,uo as serializeErc6492Signature,Qn as serializeErc8010Signature,lo as serializeSignature,Le as serializeTransaction,ea as serializeTypedData,Ri as setErrorConfig,hr as setupKzg,fd as sha256,Fn as shouldThrow,mr as sidecarsToVersionedHashes,wr as signatureToCompactSignature,mo as signatureToHex,$e as size,De as slice,qi as sliceBytes,Lt as sliceHex,Fi as stringToBytes,Ke as stringToHex,Ui as stringify,hn as testActions,ge as toBlobSidecars,fo as toBlobs,B as toBytes,fr as toCoinType,ki as toEventHash,Bi as toEventSelector,Ni as toEventSignature,Li as toFunctionHash,Mi as toFunctionSelector,Di as toFunctionSignature,Nt as toHex,ho as toPrefixedMessage,ia as toRlp,zi as transactionType,We as trim,po as universalSignatureValidatorAbi,yo as universalSignatureValidatorByteCode,ta as validateTypedData,Xn as verifyHash,tr as verifyMessage,er as verifyTypedData,qn as walletActions,cr as webSocket,go as weiUnits,bo as withCache,wo as withRetry,Ze as withTimeout,xo as zeroAddress,Eo as zeroHash};
|