1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="a7f38493-1413-50a9-52dd-364e3ac49974")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,769213,t=>{"use strict";var e=t.i(571650);t.s(["EventEmitter",()=>e.default])},632832,t=>{"use strict";var e=t.i(741211),n=t.i(177265);let r=(0,n.createContext)({plugins:{current:{}}});t.s(["P",0,({children:t,configPlugins:a})=>{let i=(0,n.useRef)({});return(0,n.useEffect)(()=>{if(a&&0!==a.length){for(let t of a)i.current[t.id]=t;return()=>{for(let t of a)delete i.current[t.id]}}},[a]),(0,e.jsx)(r.Provider,{value:{plugins:i},children:t})},"a",0,(...t)=>{let{plugins:e}=(0,n.useContext)(r);(0,n.useEffect)(()=>{for(let n of t)e.current[n.id]=n;return()=>{for(let n of t)delete e.current[n.id]}},[e])},"u",0,()=>{let{plugins:t}=(0,n.useContext)(r);return(0,n.useCallback)(e=>t.current[e],[t])}])},559927,960802,89973,688948,99175,32545,849118,331596,902516,267405,908429,425858,412370,840829,218229,558395,t=>{"use strict";var e=t.i(893765);async function n(t,{chain:r}){let{id:a,name:i,nativeCurrency:o,rpcUrls:s,blockExplorers:c}=r;await t.request({method:"wallet_addEthereumChain",params:[{chainId:(0,e.numberToHex)(a),chainName:i,nativeCurrency:o,rpcUrls:s.default.http,blockExplorerUrls:c?Object.values(c).map(({url:t})=>t):void 0}]},{dedupe:!0,retryCount:0})}t.s(["addChain",0,n],559927);var r=t.i(482062),a=t.i(116068);t.s(["deployContract",0,function(t,e){let{abi:n,args:i,bytecode:o,...s}=e,c=(0,r.encodeDeployData)({abi:n,args:i,bytecode:o});return(0,a.sendTransaction)(t,{...s,...s.authorizationList?{to:null}:{},data:c})}],960802);var i=t.i(560869);async function o(t){return t.account?.type==="local"?[t.account.address]:(await t.request({method:"eth_accounts"},{dedupe:!0})).map(t=>(0,i.checksumAddress)(t))}t.s(["getAddresses",0,o],89973);var s=t.i(975810);async function c(t,n={}){let{account:r=t.account,chainId:a}=n,i=r?(0,s.parseAccount)(r):void 0,o=a?[i?.address,[(0,e.numberToHex)(a)]]:[i?.address],u=await t.request({method:"wallet_getCapabilities",params:o}),d={};for(let[t,e]of Object.entries(u))for(let[n,r]of(d[Number(t)]={},Object.entries(e)))"addSubAccount"===n&&(n="unstable_addSubAccount"),d[Number(t)][n]=r;return"number"==typeof a?d[a]:d}async function u(t){return await t.request({method:"wallet_getPermissions"},{dedupe:!0})}async function d(t){return(await t.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(t=>(0,i.getAddress)(t))}async function l(t,e){return t.request({method:"wallet_requestPermissions",params:[e]},{retryCount:0})}t.s(["getCapabilities",0,c],688948),t.s(["getPermissions",0,u],99175),t.s(["requestAddresses",0,d],32545),t.s(["requestPermissions",0,l],849118);var p=t.i(153915),h=t.i(778213),f=t.i(348658);async function w(t,e){let{chain:n=t.chain}=e,r=e.timeout??Math.max((n?.blockTime??0)*3,5e3),a=await (0,p.getAction)(t,h.sendCalls,"sendCalls")(e);return await (0,p.getAction)(t,f.waitForCallsStatus,"waitForCallsStatus")({...e,id:a.id,timeout:r})}t.s(["sendCallsSync",0,w],331596);var m=t.i(467893),g=t.i(949759),y=t.i(668090),C=t.i(652407),T=t.i(151224),A=t.i(370597),v=t.i(798344),E=t.i(539188),S=t.i(752551),b=t.i(200411),_=t.i(608248),x=t.i(691243),R=t.i(298277),O=t.i(372563),N=t.i(460190);let P=new b.LruMap(128);async function q(t,e){let{account:n=t.account,assertChainId:r=!0,chain:a=t.chain,accessList:i,authorizationList:o,blobs:c,data:u,dataSuffix:d="string"==typeof t.dataSuffix?t.dataSuffix:t.dataSuffix?.value,gas:l,gasPrice:h,maxFeePerBlobGas:f,maxFeePerGas:w,maxPriorityFeePerGas:b,nonce:q,pollingInterval:I,throwOnReceiptRevert:M,type:U,value:F,...z}=e,j=e.timeout??Math.max((a?.blockTime??0)*3,5e3);if(void 0===n)throw new m.AccountNotFoundError({docsPath:"/docs/actions/wallet/sendTransactionSync"});let D=n?(0,s.parseAccount)(n):null;try{(0,_.assertRequest)(e);let n=await (async()=>e.to?e.to:null!==e.to&&o&&o.length>0?await (0,C.recoverAuthorizationAddress)({authorization:o[0]}).catch(()=>{throw new g.BaseError("`to` is required. Could not infer from `authorizationList`.")}):void 0)();if(D?.type==="json-rpc"||null===D){let e;null!==a&&(e=await (0,p.getAction)(t,x.getChainId,"getChainId")({}),r&&(0,T.assertCurrentChain)({currentChainId:e,chain:a}));let s=t.chain?.formatters?.transactionRequest?.format,m=(s||S.formatTransactionRequest)({...(0,E.extract)(z,{format:s}),accessList:i,account:D,authorizationList:o,blobs:c,chainId:e,data:u?(0,A.concat)([u,d??"0x"]):u,gas:l,gasPrice:h,maxFeePerBlobGas:f,maxFeePerGas:w,maxPriorityFeePerGas:b,nonce:q,to:n,type:U,value:F},"sendTransaction"),g=P.get(t.uid),C=g?"wallet_sendTransaction":"eth_sendTransaction",v=await (async()=>{try{return await t.request({method:C,params:[m]},{retryCount:0})}catch(e){if(!1===g)throw e;if("InvalidInputRpcError"===e.name||"InvalidParamsRpcError"===e.name||"MethodNotFoundRpcError"===e.name||"MethodNotSupportedRpcError"===e.name)return await t.request({method:"wallet_sendTransaction",params:[m]},{retryCount:0}).then(e=>(P.set(t.uid,!0),e)).catch(n=>{if("MethodNotFoundRpcError"===n.name||"MethodNotSupportedRpcError"===n.name)throw P.set(t.uid,!1),e;throw n});throw e}})(),_=await (0,p.getAction)(t,R.waitForTransactionReceipt,"waitForTransactionReceipt")({checkReplacement:!1,hash:v,pollingInterval:I,timeout:j});if(M&&"reverted"===_.status)throw new y.TransactionReceiptRevertedError({receipt:_});return _}if(D?.type==="local"){let r=await (0,p.getAction)(t,O.prepareTransactionRequest,"prepareTransactionRequest")({account:D,accessList:i,authorizationList:o,blobs:c,chain:a,data:u?(0,A.concat)([u,d??"0x"]):u,gas:l,gasPrice:h,maxFeePerBlobGas:f,maxFeePerGas:w,maxPriorityFeePerGas:b,nonce:q,nonceManager:D.nonceManager,parameters:[...O.defaultParameters,"sidecars"],type:U,value:F,...z,to:n}),s=a?.serializers?.transaction,m=await D.signTransaction(r,{serializer:s});return await (0,p.getAction)(t,N.sendRawTransactionSync,"sendRawTransactionSync")({serializedTransaction:m,throwOnReceiptRevert:M,timeout:e.timeout})}if(D?.type==="smart")throw new m.AccountTypeNotSupportedError({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"});throw new m.AccountTypeNotSupportedError({docsPath:"/docs/actions/wallet/sendTransactionSync",type:D?.type})}catch(t){if(t instanceof m.AccountTypeNotSupportedError)throw t;throw(0,v.getTransactionError)(t,{...e,account:D,chain:e.chain||void 0})}}async function I(t,e){let{id:n}=e;await t.request({method:"wallet_showCallsStatus",params:[n]})}t.s(["sendTransactionSync",0,q],902516),t.s(["showCallsStatus",0,I],267405);
2var M=t.i(724565);async function U(t,e){let{account:n=t.account}=e;if(!n)throw new m.AccountNotFoundError({docsPath:"/docs/eip7702/signAuthorization"});let r=(0,s.parseAccount)(n);if(!r.signAuthorization)throw new m.AccountTypeNotSupportedError({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:r.type});let a=await (0,M.prepareAuthorization)(t,e);return r.signAuthorization(a)}async function F(t,{account:n=t.account,message:r}){if(!n)throw new m.AccountNotFoundError({docsPath:"/docs/actions/wallet/signMessage"});let a=(0,s.parseAccount)(n);if(a.signMessage)return a.signMessage({message:r});let i="string"==typeof r?(0,e.stringToHex)(r):r.raw instanceof Uint8Array?(0,e.toHex)(r.raw):r.raw;return t.request({method:"personal_sign",params:[i,a.address]},{retryCount:0})}async function z(t,n){let{account:r=t.account,chain:a=t.chain,...i}=n;if(!r)throw new m.AccountNotFoundError({docsPath:"/docs/actions/wallet/signTransaction"});let o=(0,s.parseAccount)(r);(0,_.assertRequest)({account:o,...n});let c=await (0,p.getAction)(t,x.getChainId,"getChainId")({});null!==a&&(0,T.assertCurrentChain)({currentChainId:c,chain:a});let u=a?.formatters||t.chain?.formatters,d=u?.transactionRequest?.format||S.formatTransactionRequest;return o.signTransaction?o.signTransaction({...i,chainId:c},{serializer:t.chain?.serializers?.transaction}):await t.request({method:"eth_signTransaction",params:[{...d({...i,account:o},"signTransaction"),chainId:(0,e.numberToHex)(c),from:o.address}]},{retryCount:0})}t.s(["signAuthorization",0,U],908429),t.s(["signMessage",0,F],425858),t.s(["signTransaction",0,z],412370);var j=t.i(281433);async function D(t,e){let{account:n=t.account,domain:r,message:a,primaryType:i}=e;if(!n)throw new m.AccountNotFoundError({docsPath:"/docs/actions/wallet/signTypedData"});let o=(0,s.parseAccount)(n),c={EIP712Domain:(0,j.getTypesForEIP712Domain)({domain:r}),...e.types};if((0,j.validateTypedData)({domain:r,message:a,primaryType:i,types:c}),o.signTypedData)return o.signTypedData({domain:r,message:a,primaryType:i,types:c});let u=(0,j.serializeTypedData)({domain:r,message:a,primaryType:i,types:c});return t.request({method:"eth_signTypedData_v4",params:[o.address,u]},{retryCount:0})}async function H(t,{id:n}){await t.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,e.numberToHex)(n)}]},{retryCount:0})}async function L(t,e){return await t.request({method:"wallet_watchAsset",params:e},{retryCount:0})}t.s(["signTypedData",0,D],840829),t.s(["switchChain",0,H],218229),t.s(["watchAsset",0,L],558395)},41797,t=>{"use strict";var e=t.i(975810),n=t.i(467893),r=t.i(367512),a=t.i(955892),i=t.i(153915),o=t.i(116068);async function s(t,e){return s.internal(t,o.sendTransaction,"sendTransaction",e)}(s||(s={})).internal=async function(t,o,s,c){let{abi:u,account:d=t.account,address:l,args:p,functionName:h,...f}=c;if(void 0===d)throw new n.AccountNotFoundError({docsPath:"/docs/contract/writeContract"});let w=d?(0,e.parseAccount)(d):null,m=(0,r.encodeFunctionData)({abi:u,args:p,functionName:h});try{return await (0,i.getAction)(t,o,s)({data:m,to:l,account:w,...f})}catch(t){throw(0,a.getContractError)(t,{abi:u,address:l,args:p,docsPath:"/docs/contract/writeContract",functionName:h,sender:w?.address})}},t.s(["writeContract",0,s])},937297,319021,t=>{"use strict";var e=t.i(293147),n=t.i(967568),r=t.i(691243),a=t.i(559927),i=t.i(960802),o=t.i(89973),s=t.i(858628),c=t.i(688948),u=t.i(99175),d=t.i(724565),l=t.i(372563),p=t.i(32545),h=t.i(849118),f=t.i(778213),w=t.i(331596),m=t.i(847293),g=t.i(460190),y=t.i(116068),C=t.i(902516),T=t.i(267405),A=t.i(908429),v=t.i(425858),E=t.i(412370),S=t.i(840829),b=t.i(218229),_=t.i(348658),x=t.i(558395),R=t.i(41797);async function O(t,e){return R.writeContract.internal(t,C.sendTransactionSync,"sendTransactionSync",e)}function N(t){return{addChain:e=>(0,a.addChain)(t,e),deployContract:e=>(0,i.deployContract)(t,e),fillTransaction:e=>(0,n.fillTransaction)(t,e),getAddresses:()=>(0,o.getAddresses)(t),getCallsStatus:e=>(0,s.getCallsStatus)(t,e),getCapabilities:e=>(0,c.getCapabilities)(t,e),getChainId:()=>(0,r.getChainId)(t),getPermissions:()=>(0,u.getPermissions)(t),prepareAuthorization:e=>(0,d.prepareAuthorization)(t,e),prepareTransactionRequest:e=>(0,l.prepareTransactionRequest)(t,e),requestAddresses:()=>(0,p.requestAddresses)(t),requestPermissions:e=>(0,h.requestPermissions)(t,e),sendCalls:e=>(0,f.sendCalls)(t,e),sendCallsSync:e=>(0,w.sendCallsSync)(t,e),sendRawTransaction:e=>(0,m.sendRawTransaction)(t,e),sendRawTransactionSync:e=>(0,g.sendRawTransactionSync)(t,e),sendTransaction:e=>(0,y.sendTransaction)(t,e),sendTransactionSync:e=>(0,C.sendTransactionSync)(t,e),showCallsStatus:e=>(0,T.showCallsStatus)(t,e),signAuthorization:e=>(0,A.signAuthorization)(t,e),signMessage:e=>(0,v.signMessage)(t,e),signTransaction:e=>(0,E.signTransaction)(t,e),signTypedData:e=>(0,S.signTypedData)(t,e),switchChain:e=>(0,b.switchChain)(t,e),waitForCallsStatus:e=>(0,_.waitForCallsStatus)(t,e),watchAsset:e=>(0,x.watchAsset)(t,e),writeContract:e=>(0,R.writeContract)(t,e),writeContractSync:e=>O(t,e)}}t.s(["walletActions",0,N],319021),t.s(["createWalletClient",0,function(t){let{key:n="wallet",name:r="Wallet Client",transport:a}=t;return(0,e.createClient)({...t,key:n,name:r,transport:a,type:"walletClient"}).extend(N)}],937297)},467893,t=>{"use strict";var e=t.i(949759);class n extends e.BaseError{constructor({docsPath:t}={}){super("Could not find an Account to execute with this Action.\nPlease provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client.",{docsPath:t,docsSlug:"account",name:"AccountNotFoundError"})}}class r extends e.BaseError{constructor({docsPath:t,metaMessages:e,type:n}){super(`Account type "${n}" is not supported.`,{docsPath:t,metaMessages:e,name:"AccountTypeNotSupportedError"})}}t.s(["AccountNotFoundError",0,n,"AccountTypeNotSupportedError",0,r])},116068,151224,t=>{"use strict";var e=t.i(975810),n=t.i(467893),r=t.i(949759),a=t.i(652407),i=t.i(538882);function o({chain:t,currentChainId:e}){if(!t)throw new i.ChainNotFoundError;if(e!==t.id)throw new i.ChainMismatchError({chain:t,currentChainId:e})}t.s(["assertCurrentChain",0,o],151224);
2var s=t.i(370597),c=t.i(798344),u=t.i(539188),d=t.i(752551),l=t.i(153915),p=t.i(200411),h=t.i(608248),f=t.i(691243),w=t.i(372563),m=t.i(847293);let g=new p.LruMap(128);async function y(t,i){let{account:p=t.account,assertChainId:y=!0,chain:C=t.chain,accessList:T,authorizationList:A,blobs:v,data:E,dataSuffix:S="string"==typeof t.dataSuffix?t.dataSuffix:t.dataSuffix?.value,gas:b,gasPrice:_,maxFeePerBlobGas:x,maxFeePerGas:R,maxPriorityFeePerGas:O,nonce:N,type:P,value:q,...I}=i;if(void 0===p)throw new n.AccountNotFoundError({docsPath:"/docs/actions/wallet/sendTransaction"});let M=p?(0,e.parseAccount)(p):null;try{(0,h.assertRequest)(i);let e=await (async()=>i.to?i.to:null!==i.to&&A&&A.length>0?await (0,a.recoverAuthorizationAddress)({authorization:A[0]}).catch(()=>{throw new r.BaseError("`to` is required. Could not infer from `authorizationList`.")}):void 0)();if(M?.type==="json-rpc"||null===M){let n;null!==C&&(n=await (0,l.getAction)(t,f.getChainId,"getChainId")({}),y&&o({currentChainId:n,chain:C}));let r=t.chain?.formatters?.transactionRequest?.format,a=(r||d.formatTransactionRequest)({...(0,u.extract)(I,{format:r}),accessList:T,account:M,authorizationList:A,blobs:v,chainId:n,data:E?(0,s.concat)([E,S??"0x"]):E,gas:b,gasPrice:_,maxFeePerBlobGas:x,maxFeePerGas:R,maxPriorityFeePerGas:O,nonce:N,to:e,type:P,value:q},"sendTransaction"),i=g.get(t.uid);try{return await t.request({method:i?"wallet_sendTransaction":"eth_sendTransaction",params:[a]},{retryCount:0})}catch(e){if(!1===i)throw e;if("InvalidInputRpcError"===e.name||"InvalidParamsRpcError"===e.name||"MethodNotFoundRpcError"===e.name||"MethodNotSupportedRpcError"===e.name)return await t.request({method:"wallet_sendTransaction",params:[a]},{retryCount:0}).then(e=>(g.set(t.uid,!0),e)).catch(n=>{if("MethodNotFoundRpcError"===n.name||"MethodNotSupportedRpcError"===n.name)throw g.set(t.uid,!1),e;throw n});throw e}}if(M?.type==="local"){let n=await (0,l.getAction)(t,w.prepareTransactionRequest,"prepareTransactionRequest")({account:M,accessList:T,authorizationList:A,blobs:v,chain:C,data:E?(0,s.concat)([E,S??"0x"]):E,gas:b,gasPrice:_,maxFeePerBlobGas:x,maxFeePerGas:R,maxPriorityFeePerGas:O,nonce:N,nonceManager:M.nonceManager,parameters:[...w.defaultParameters,"sidecars"],type:P,value:q,...I,to:e}),r=C?.serializers?.transaction,a=await M.signTransaction(n,{serializer:r});return await (0,l.getAction)(t,m.sendRawTransaction,"sendRawTransaction")({serializedTransaction:a})}if(M?.type==="smart")throw new n.AccountTypeNotSupportedError({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"});throw new n.AccountTypeNotSupportedError({docsPath:"/docs/actions/wallet/sendTransaction",type:M?.type})}catch(t){if(t instanceof n.AccountTypeNotSupportedError)throw t;throw(0,c.getTransactionError)(t,{...i,account:M,chain:i.chain||void 0})}}t.s(["sendTransaction",0,y],116068)},858628,778213,t=>{"use strict";var e=t.i(383482),n=t.i(439547),r=t.i(358858),a=t.i(359238),i=t.i(975810),o=t.i(949759),s=t.i(398488),c=t.i(367512),u=t.i(370597),d=t.i(893765),l=t.i(798344),p=t.i(116068);let h="0x5792579257925792579257925792579257925792579257925792579257925792",f=(0,d.numberToHex)(0,{size:32});async function w(t,e){let{account:n=t.account,chain:a=t.chain,experimental_fallback:w,experimental_fallbackDelay:m=32,forceAtomic:g=!1,id:y,version:C="2.0.0"}=e,T=n?(0,i.parseAccount)(n):null,A=e.capabilities;t.dataSuffix&&!e.capabilities?.dataSuffix&&(A="string"==typeof t.dataSuffix?{...e.capabilities,dataSuffix:{value:t.dataSuffix,optional:!0}}:{...e.capabilities,dataSuffix:{value:t.dataSuffix.value,...t.dataSuffix.required?{}:{optional:!0}}});let v=e.calls.map(t=>{let e=t.abi?(0,c.encodeFunctionData)({abi:t.abi,functionName:t.functionName,args:t.args}):t.data;return{data:t.dataSuffix&&e?(0,u.concat)([e,t.dataSuffix]):e,to:t.to,value:t.value?(0,d.numberToHex)(t.value):void 0}});try{let e=await t.request({method:"wallet_sendCalls",params:[{atomicRequired:g,calls:v,capabilities:A,chainId:(0,d.numberToHex)(a.id),from:T?.address,id:y,version:C}]},{retryCount:0});if("string"==typeof e)return{id:e};return e}catch(n){if(w&&("MethodNotFoundRpcError"===n.name||"MethodNotSupportedRpcError"===n.name||"UnknownRpcError"===n.name||n.details.toLowerCase().includes("does not exist / is not available")||n.details.toLowerCase().includes("missing or invalid. request()")||n.details.toLowerCase().includes("did n
2ot match any variant of untagged enum")||n.details.toLowerCase().includes("account upgraded to unsupported contract")||n.details.toLowerCase().includes("eip-7702 not supported")||n.details.toLowerCase().includes("unsupported wc_ method")||n.details.toLowerCase().includes("feature toggled misconfigured")||n.details.toLowerCase().includes("jsonrpcengine: response has no error or result for request"))){if(A&&Object.values(A).some(t=>!t.optional)){let t="non-optional `capabilities` are not supported on fallback to `eth_sendTransaction`.";throw new s.UnsupportedNonOptionalCapabilityError(new o.BaseError(t,{details:t}))}if(g&&v.length>1){let t="`forceAtomic` is not supported on fallback to `eth_sendTransaction`.";throw new s.AtomicityNotSupportedError(new o.BaseError(t,{details:t}))}let e=[];for(let n of v){let i=(0,p.sendTransaction)(t,{account:T,chain:a,data:n.data,to:n.to,value:n.value?(0,r.hexToBigInt)(n.value):void 0});e.push(i),m>0&&await new Promise(t=>setTimeout(t,m))}let n=await Promise.allSettled(e);if(n.every(t=>"rejected"===t.status))throw n[0].reason;let i=n.map(t=>"fulfilled"===t.status?t.value:f);return{id:(0,u.concat)([...i,(0,d.numberToHex)(a.id,{size:32}),h])}}throw(0,l.getTransactionError)(n,{...e,account:T,chain:e.chain})}}async function m(t,i){let o;async function s(a){if(a.endsWith(h.slice(2))){let i=(0,n.trim)((0,e.sliceHex)(a,-64,-32)),o=(0,e.sliceHex)(a,0,-64).slice(2).match(/.{1,64}/g),s=await Promise.all(o.map(e=>f.slice(2)!==e?t.request({method:"eth_getTransactionReceipt",params:[`0x${e}`]},{dedupe:!0}):void 0)),c=s.some(t=>null===t)?100:s.every(t=>t?.status==="0x1")?200:s.every(t=>t?.status==="0x0")?500:600;return{atomic:!1,chainId:(0,r.hexToNumber)(i),receipts:s.filter(
2Boolean),status:c,version:"2.0.0"}}return t.request({method:"wallet_getCallsStatus",params:[a]})}let{atomic:c=!1,chainId:u,receipts:d,version:l="2.0.0",...p}=await s(i.id),[w,m]=(o=p.status)>=100&&o<200?["pending",o]:o>=200&&o<300?["success",o]:o>=300&&o<700?["failure",o]:"CONFIRMED"===o?["success",200]:"PENDING"===o?["pending",100]:[void 0,o];return{...p,atomic:c,chainId:u?(0,r.hexToNumber)(u):void 0,receipts:d?.map(t=>({...t,blockNumber:(0,r.hexToBigInt)(t.blockNumber),gasUsed:(0,r.hexToBigInt)(t.gasUsed),status:a.receiptStatuses[t.status]}))??[],statusCode:m,status:w,version:l}}t.s(["fallbackMagicIdentifier",0,h,"fallbackTransactionErrorMagicIdentifier",0,f,"sendCalls",0,w],778213),t.s(["getCallsStatus",0,m],858628)},724565,t=>{"use strict";var e=t.i(975810),n=t.i(467893),r=t.i(71517),a=t.i(153915),i=t.i(691243),o=t.i(35381);async function s(t,s){let{account:c=t.account,chainId:u,nonce:d}=s;if(!c)throw new n.AccountNotFoundError({docsPath:"/docs/eip7702/prepareAuthorization"});let l=(0,e.parseAccount)(c),p=(()=>{if(s.executor)return"self"===s.executor?s.executor:(0,e.parseAccount)(s.executor)})(),h={address:s.contractAddress??s.address,chainId:u,nonce:d};return void 0===h.chainId&&(h.chainId=t.chain?.id??await (0,a.getAction)(t,i.getChainId,"getChainId")({})),void 0===h.nonce&&(h.nonce=await (0,a.getAction)(t,o.getTransactionCount,"getTransactionCount")({address:l.address,blockTag:"pending"}),("self"===p||p?.address&&(0,r.isAddressEqual)(p.address,l.address))&&(h.nonce+=1)),h}t.s(["prepareAuthorization",0,s])},426376,t=>{"use strict";var e=t.i(949759);class n extends e.BaseError{constructor(t){super(`Call bundle failed with status: ${t.statusCode}`,{name:"BundleFailedError"}),Object.defineProperty(this,"result",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.result=t}}t.s(["BundleFailedError",0,n])},348658,t=>{"use strict";var e=t.i(949759),n=t.i(426376),r=t.i(153915),a=t.i(678533),i=t.i(348927),o=t.i(286724),s=t.i(421568),c=t.i(424241),u=t.i(858628);async function d(t,e){let d,{id:p,pollingInterval:h=t.pollingInterval,status:f=({statusCode:t})=>200===t||t>=300,retryCount:w=4,retryDelay:m=({count:t})=>200*~~(1<<t),timeout:g=6e4,throwOnFailure:y=!1}=e,C=(0,c.stringify)(["waitForCallsStatus",t.uid,p]),{promise:T,resolve:A,reject:v}=(0,o.withResolvers)(),E=(0,a.observe)(C,{resolve:A,reject:v},e=>{let a=(0,i.poll)(async()=>{let i=t=>{clearTimeout(d),a(),t(),E()};try{let a=await (0,s.withRetry)(async()=>{let e=await (0,r.getAction)(t,u.getCallsStatus,"getCallsStatus")({id:p});if(y&&"failure"===e.status)throw new n.BundleFailedError(e);return e},{retryCount:w,delay:m});if(!f(a))return;i(()=>e.resolve(a))}catch(t){i(()=>e.reject(t))}},{interval:h,emitOnBegin:!0});return a});return d=g?setTimeout(()=>{E(),clearTimeout(d),v(new l({id:p}))},g):void 0,await T}class l extends e.BaseError{constructor({id:t}){super(`Timed out while waiting for call bundle with id "${t}" to be confirmed.`,{name:"WaitForCallsStatusTimeoutError"})}}t.s(["WaitForCallsStatusTimeoutError",0,l,"waitForCallsStatus",0,d])},745307,t=>{"use strict";var e=t.i(300059),n=t.i(893765);t.s(["parseSignature",0,function(t){let{r,s:a}=e.secp256k1.Signature.fromCompact(t.slice(2,130)),i=Number(`0x${t.slice(130)}`),[o,s]=(()=>{if(0===i||1===i)return[void 0,i];if(27===i)return[BigInt(i),0];if(28===i)return[BigInt(i),1];throw Error("Invalid yParityOrV value")})();return void 0!==o?{r:(0,n.numberToHex)(r,{size:32}),s:(0,n.numberToHex)(a,{size:32}),v:o,yParity:s}:{r:(0,n.numberToHex)(r,{size:32}),s:(0,n.numberToHex)(a,{size:32}),yParity:s}}])},722978,t=>{"use strict";t.s(["clsx",0,function(){for(var t,e,n=0,r="";n<arguments.length;)(t=arguments[n++])&&(e=function t(e){var n,r,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e))for(n=0;n<e.length;n++)e[n]&&(r=t(e[n]))&&(a&&(a+=" "),a+=r);else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}(t))&&(r&&(r+=" "),r+=e);return r}])},824627,t=>{"use strict";var e=function(){return(e=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var a in e=arguments[n])Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t}).apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError,t.s(["__assign",()=>
2e,"__awaiter",0,function(t,e,n,r){return new(n||(n=Promise))(function(a,i){function o(t){try{c(r.next(t))}catch(t){i(t)}}function s(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?a(t.value):((e=t.value)instanceof n?e:new n(function(t){t(e)})).then(o,s)}c((r=r.apply(t,e||[])).next())})},"__rest",0,function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(t);a<r.length;a++)0>e.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]]);return n},"__spreadArray",0,function(t,e,n){if(n||2==arguments.length)for(var r,a=0,i=e.length;a<i;a++)!r&&a in e||(r||(r=Array.prototype.slice.call(e,0,a)),r[a]=e[a]);return t.concat(r||Array.prototype.slice.call(e))}])},757086,t=>{"use strict";var e=t.i(311629);let n="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:t.g,r=n.fetch?(...t)=>n.fetch(...t):()=>Promise.reject(Error("[ofetch] global.fetch is not supported!")),a=n.Headers,i=n.AbortController,o=(0,e.c)({fetch:r,Headers:a,AbortController:i});t.s(["ofetch",0,o])},371507,t=>{"use strict";t.s(["trigger",0,t=>window.open(t?.location,void 0,(({w:t,h:e})=>{let n=void 0!==window.screenLeft?window.screenLeft:window.screenX,r=void 0!==window.screenTop?window.screenTop:window.screenY,a=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:screen.width,i=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height;return`toolbar=0,location=0,menubar=0,height=${e},width=${t},popup=1,left=${(a-t)/2/(a/window.screen.availWidth)+n},top=${(i-e)/2/(i/window.screen.availHeight)+r}`})({w:440,h:680}))],371507)},914761,t=>{"use strict";var e=t.i(556391),n=t.i(249489),r=t.i(403808),a=t.i(671043),i=t.i(857800),o=t.i(560818),s=t.i(513575),c=t.i(501691);let u=new Set([e.mainnet.id,n.arbitrum.id,r.base.id,a.polygon.id,i.avalanche.id,o.celo.id,s.monadMainnet.id]),d=new Set([e.mainnet.id,n.arbitrum.id,c.optimism.id,r.base.id,a.polygon.id,i.avalanche.id]);t.s(["MoonpayEnvironments",0,{prod:{url:"https://api.moonpay.com/v1",key:"pk_live_hirbpu0cVcLHrjktC9l7fbc9ctjv0SL"},sandbox:{url:"https://api.moonpay.com/v1",key:"pk_test_fqWjXZMSFwloh7orvJsRfjiUHXJqFzI"}},"chainToMoonpayCurrency",0,function(t,c){switch(t){case n.arbitrum.id:return"native-currency"===c?"ETH_ARBITRUM":"USDC_ARBITRUM";case i.avalanche.id:return"native-currency"===c?"AVAX_CCHAIN":"USDC_CCHAIN";case r.base.id:return"native-currency"===c?"ETH_BASE":"USDC_BASE";case o.celo.id:return"CELO_CELO";case a.polygon.id:return"native-currency"===c?"MATIC_POLYGON":"USDC_POLYGON";case s.monadMainnet.id:return"MON_MON";case e.mainnet.id:return"native-currency"===c?"ETH_ETHEREUM":"USDC_ETHEREUM";default:return console.warn(`Chain ${t} not supported by Moonpay, defaulting to Ethereum mainnet`),"ETH_ETHEREUM"}},"isSupportedChainIdForMoonpay",0,function(t,e){switch(e){case"native-currency":return u.has(t);case"USDC":return d.has(t);default:return console.warn("Unknown asset passed to MoonPay Onramp"),!1}}])},807072,t=>{"use strict";t.s(["constructURL",0,({origin:t,path:e,query:n={},hash:r={}})=>{let a=new URL(e,t.endsWith("/")?t:`${t}/`);for(let[t,e]of Object.entries(n))void 0!==e&&a.searchParams.set(t,e);let i=Object.entries(r);if(i.length>0){let t=new URLSearchParams;for(let[e,n]of i)void 0!==n&&t.append(e,n);a.hash=t.toString()}return a.href}])},299710,t=>{"use strict";var e=t.i(47748),n=t.i(240832);function r(t,e){if(!e)return Object.freeze({address:t,exists:!1});let r=(0,n.getBase64Encoder)().encode(e.data[0]);return Object.freeze({...i(e),address:t,data:r,exists:!0})}function a(t,e){if(!e)return Object.freeze({address:t,exists:!1});let n=e.data.parsed.info||{};return(e.data.program||e.data.parsed.type)&&(n.parsedAccountMeta={program:e.data.program,type:e.data.parsed.type}),Object.freeze({...i(e),address:t,data:n,exists:!0})}function i(t){return Object.freeze({executable:t.executable,lamports:t.lamports,programAddress:t.owner,space:t.space})}async function o(t,e,n={}){let{abortSignal:a,...i}=n,s=await t.getAccountInfo(e,{...i,encoding:"base64"}).send({abortSignal:a});return r(e,s.value)}async function s(t,e,n={}){let{abortSignal:i,...o}=n,{value:c}=await t.getAccountInfo(e,{...o,encoding:"jsonParsed"}).send({abortSignal:i});return c&&"object"==typeof c&&"parsed"in c.data?a(e,c):r(e,c)}async function c(t,e,n={}){let{abortSignal:a,...i}=n;return(await t.getMultipleAccounts(e,{...i,encoding:"base64"}).send({abortSignal:a})).value.map((t,n)=>r(e[n],t))}async function u(t,e,n={}){let{abortSignal:i,...o}=n;return(await t.getMultipleAccounts(e,{...o,encoding:"jsonParsed"}).send({abortSignal:i})).value.map((t,n)=>t&&"object"==typeof t&&"parsed"in t.data?a(e[n],t):r(e[n],t))}t.s(["BASE_ACCOUNT_SIZE",0,128,"assertAccountExists",0,function(t){if(!t.exists)throw new e.SolanaError(e.SOLANA_ERROR__ACCOUNTS__ACCOUNT_NOT_FOUND,{address:t.address})},"assertAccountsDecoded",0,function(t){let n=t.filter(t=>(!("exists"in t)||"exists"in t&&t.exists)&&t.data instanceof Uint8Array);if(n.length>0){let t=n.map(t=>t.address);throw new e.SolanaError(e.SOLANA_ERROR__ACCOUNTS__EXPECTED_ALL_ACCOUNTS_TO_BE_DECODED,{addresses:t})}},"assertAccountsExist",0,function(t){let n=t.filter(t=>!t.exists);if(n.length>0){let t=n.map(t=>t.address);throw new e.SolanaError(e.SOLANA_ERROR__ACCOUNTS__ONE_OR_MORE_ACCOUNTS_NOT_FOUND,{addresses:t})}},"decodeAccount",0,function(t,n){try{if("exists"in t&&!t.exists)return t;return Object.freeze({...t,data:n.decode(t.data)})}catch{throw new e.SolanaError(e.SOLANA_ERROR__ACCOUNTS__FAILED_TO_DECODE_ACCOUNT,{address:t.address})}},"fetchEncodedAccount",0,o,"fetchEncodedAccounts",0,c,"fetchJsonParsedAccount",0,s,"fetchJsonParsedAccounts",0,u])}]); 3 4//# debugId=a7f38493-1413-50a9-52dd-364e3ac49974 5//# sourceMappingURL=139w0p.3g9l9w.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.