PageSourceSearch

https://devnads.com/_next/static/chunks/0yl76vgu.1zi6.js?dpl=dpl_9fUJz9N4Nsns9AdVzRh5spcVLo4U

js devnads.com collected 2026-10-05 08:50:04 UTC 118,068 bytes, 28 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,26363,92365,e=>{"use strict";e.s(["parseAccount",0,function(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}],26363);let t=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{name:"addr",type:"address"}],name:"getEthBalance",outputs:[{name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getCurrentBlockTimestamp",outputs:[{internalType:"uint256",name:"timestamp",type:"uint256"}],stateMutability:"view",type:"function"}],r=[{name:"query",type:"function",stateMutability:"view",inputs:[{type:"tuple[]",name:"queries",components:[{type:"address",name:"sender"},{type:"string[]",name:"urls"},{type:"bytes",name:"data"}]}],outputs:[{type:"bool[]",name:"failures"},{type:"bytes[]",name:"responses"}]},{name:"HttpError",type:"error",inputs:[{type:"uint16",name:"status"},{type:"string",name:"message"}]}],n=[{inputs:[{name:"dns",type:"bytes"}],name:"DNSDecodingFailed",type:"error"},{inputs:[{name:"ens",type:"string"}],name:"DNSEncodingFailed",type:"error"},{inputs:[],name:"EmptyAddress",type:"error"},{inputs:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"HttpError",type:"error"},{inputs:[],name:"InvalidBatchGatewayResponse",type:"error"},{inputs:[{name:"errorData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{name:"name",type:"bytes"},{name:"resolver",type:"address"}],name:"ResolverNotContract",type:"error"},{inputs:[{name:"name",type:"bytes"}],name:"ResolverNotFound",type:"error"},{inputs:[{name:"primary",type:"string"},{name:"primaryAddress",type:"bytes"}],name:"ReverseAddressMismatch",type:"error"},{inputs:[{internalType:"bytes4",name:"selector",type:"bytes4"}],name:"UnsupportedResolverProfile",type:"error"}],i=[...n,{name:"resolveWithGateways",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"},{name:"gateways",type:"string[]"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],a=[...n,{name:"reverseWithGateways",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"uint256",name:"coinType"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolver"},{type:"address",name:"reverseResolver"}]}];e.s(["addressResolverAbi",0,[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],"batchGatewayAbi",0,r,"erc1271Abi",0,[{name:"isValidSignature",type:"function",stateMutability:"view",inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],outputs:[{name:"",type:"bytes4"}]}],"erc20Abi",0,[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]}],"erc6492SignatureValidatorAbi",0,[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}],"multicall3Abi",0,t,"textResolverAbi",0,[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],"universalResolverResolveAbi",0,i,"universalResolverReverseAbi",0,a],92365)},82688,46015,60613,e=>{"use strict";e.s(["formatAbiItem",()=>r,"formatAbiParams",()=>n],82688);var t=e.i(66958);function r(e,{includeName:i=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new t.InvalidDefinitionTypeError(e.type);return`${e.name}(${n(e.inputs,{includeName:i})})`}function n(e,{includeName:t=!1}={}){return e?e.map(e=>(function(e,{includeName:t}){return e.type.startsWith("tuple")?`(${n(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")})(e,{includeName:t})).join(t?", ":","):""}function i(e,{strict:t=!0}={}){return!!e&&"string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x"))}e.s(["isHex",0,i],46015),e.s(["size",0,function(e){return i(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}],60613)},76508,e=>{"use strict";let t="2.56.8",r={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:r})=>t?`${e??"https://viem.sh"}${t}${r?`#${r}`:""}`:void 0,version:`viem@${t}`};
1class n extends Error{constructor(e,i={}){const a=i.cause instanceof n?i.cause.details:i.cause?.message?i.cause.message:i.details,s=i.cause instanceof n&&i.cause.docsPath||i.docsPath,o=r.getDocsUrl?.({...i,docsPath:s});super([e||"An error occurred.","",...i.metaMessages?[...i.metaMessages,""]:[],...o?[`Docs: ${o}`]:[],...a?[`Details: ${a}`]:[],...r.version?[`Version: ${r.version}`]:[]].join("\n"),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=a,this.docsPath=s,this.metaMessages=i.metaMessages,this.name=i.name??this.name,this.shortMessage=e,this.version=t}walk(e){return function e(t,r){return r?.(t)?t:t&&"object"==typeof t&&"cause"in t&&void 0!==t.cause?e(t.cause,r):r?null:t}(this,e)}}e.s(["BaseError",0,n],76508)},66958,e=>{"use strict";e.s(["AbiConstructorNotFoundError",()=>i,"AbiConstructorParamsNotFoundError",()=>a,"AbiDecodingDataSizeTooSmallError",()=>s,"AbiDecodingZeroDataError",()=>o,"AbiEncodingArrayLengthMismatchError",()=>c,"AbiEncodingBytesSizeMismatchError",()=>u,"AbiEncodingLengthMismatchError",()=>l,"AbiErrorInputsNotFoundError",()=>f,"AbiErrorNotFoundError",()=>d,"AbiErrorSignatureNotFoundError",()=>b,"AbiEventNotFoundError",()=>m,"AbiEventSignatureEmptyTopicsError",()=>p,"AbiEventSignatureNotFoundError",()=>h,"AbiFunctionNotFoundError",()=>y,"AbiFunctionOutputsNotFoundError",()=>g,"AbiFunctionSignatureNotFoundError",()=>v,"AbiItemAmbiguityError",()=>w,"BytesSizeMismatchError",()=>E,"DecodeLogDataMismatch",()=>x,"DecodeLogTopicsMismatch",()=>$,"InvalidAbiDecodingTypeError",()=>B,"InvalidAbiEncodingTypeError",()=>A,"InvalidArrayError",()=>P,"InvalidDefinitionTypeError",()=>I]);var t=e.i(82688),r=e.i(60613),n=e.i(76508);class i extends n.BaseError{constructor({docsPath:e}){super("A constructor was not found on the ABI.\nMake sure you are using the correct ABI and that the constructor exists on it.",{docsPath:e,name:"AbiConstructorNotFoundError"})}}class a extends n.BaseError{constructor({docsPath:e}){super("Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.\nMake sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists.",{docsPath:e,name:"AbiConstructorParamsNotFoundError"})}}n.BaseError;class s extends n.BaseError{constructor({data:e,params:r,size:n}){super(`Data size of ${n} bytes is too small for given parameters.`,{metaMessages:[`Params: (${(0,t.formatAbiParams)(r,{includeName:!0})})`,`Data:   ${e} (${n} bytes)`],name:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e,this.params=r,this.size=n}}class o extends n.BaseError{constructor({cause:e}={}){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError",cause:e})}}class c extends n.BaseError{constructor({expectedLength:e,givenLength:t,type:r}){super(`ABI encoding array length mismatch for type ${r}.
2Expected length: ${e}
3Given length: ${t}`,{name:"AbiEncodingArrayLengthMismatchError"})}}class u extends n.BaseError{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${(0,r.size)(t)}) does not match expected size (bytes${e}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class l extends n.BaseError{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding params/values length mismatch.
4Expected length (params): ${e}
5Given length (values): ${t}`,{name:"AbiEncodingLengthMismatchError"})}}class f extends n.BaseError{constructor(e,{docsPath:t}){super(`Arguments (\`args\`) were provided to "${e}", but "${e}" on the ABI does not contain any parameters (\`inputs\`).
6Cannot encode error result without knowing what the parameter types are.
7Make sure you are using the correct ABI and that the inputs exist on it.`,{docsPath:t,name:"AbiErrorInputsNotFoundError"})}}class d extends n.BaseError{constructor(e,{docsPath:t}={}){super(`Error ${e?`"${e}" `:""}not found on ABI.
8Make sure you are using the correct ABI and that the error exists on it.`,{docsPath:t,name:"AbiErrorNotFoundError"})}}class b extends n.BaseError{constructor(e,{docsPath:t,cause:r}){super(`Encoded error signature "${e}" not found on ABI.
9Make sure you are using the correct ABI and that the error exists on it.
10You can look up the decoded signature here: https://4byte.sourcify.dev/?q=${e}.`,{docsPath:t,name:"AbiErrorSignatureNotFoundError",cause:r}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}class p extends n.BaseError{constructor({docsPath:e}){super("Cannot extract event signature from empty topics.",{docsPath:e,name:"AbiEventSignatureEmptyTopicsError"})}}class h extends n.BaseError{constructor(e,{docsPath:t}){super(`Encoded event signature "${e}" not found on ABI.
11Make sure you are using the correct ABI and that the event exists on it.
12You can look up the signature here: https://4byte.sourcify.dev/?q=${e}.`,{docsPath:t,name:"AbiEventSignatureNotFoundError"})}}class m extends n.BaseError{constructor(e,{docsPath:t}={}){super(`Event ${e?`"${e}" `:""}not found on ABI.
13Make sure you are using the correct ABI and that the event exists on it.`,{docsPath:t,name:"AbiEventNotFoundError"})}}class y extends n.BaseError{constructor(e,{docsPath:t}={}){super(`Function ${e?`"${e}" `:""}not found on ABI.
14Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t,name:"AbiFunctionNotFoundError"})}}class g extends n.BaseError{constructor(e,{docsPath:t}){super(`Function "${e}" does not contain any \`outputs\` on ABI.
15Cannot decode function result without knowing what the parameter types are.
16Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t,name:"AbiFunctionOutputsNotFoundError"})}}class v extends n.BaseError{constructor(e,{docsPath:t}){super(`Encoded function signature "${e}" not found on ABI.
17Make sure you are using the correct ABI and that the function exists on it.
18You can look up the signature here: https://4byte.sourcify.dev/?q=${e}.`,{docsPath:t,name:"AbiFunctionSignatureNotFoundError"})}}class w extends n.BaseError{constructor(e,r){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${e.type}
18\` in \`${(0,t.formatAbiItem)(e.abiItem)}\`, and`,`\`${r.type}\` in \`${(0,t.formatAbiItem)(r.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}class E extends n.BaseError{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`,{name:"BytesSizeMismatchError"})}}class x extends n.BaseError{constructor({abiItem:e,data:r,params:n,size:i}){super(`Data size of ${i} bytes is too small for non-indexed event parameters.`,{metaMessages:[`Params: (${(0,t.formatAbiParams)(n,{includeName:!0})})`,`Data:   ${r} (${i} bytes)`],name:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e,this.data=r,this.params=n,this.size=i}}class $ extends n.BaseError{constructor({abiItem:e,param:r}){super(`Expected a topic for indexed event parameter${r.name?` "${r.name}"`:""} on event "${(0,t.formatAbiItem)(e,{includeName:!0})}".`,{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}class A extends n.BaseError{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid encoding type.
19Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiEncodingType"})}}class B extends n.BaseError{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid decoding type.
20Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiDecodingType"})}}class P extends n.BaseError{constructor(e){super(`Value "${e}" is not a valid array.`,{name:"InvalidArrayError"})}}class I extends n.BaseError{constructor(e){super(`"${e}" is not a valid definition type.
21Valid types: "function", "event", "error"`,{name:"InvalidDefinitionTypeError"})}}n.BaseError},33737,e=>{"use strict";var t=e.i(76508);class r extends t.BaseError{constructor({address:e}){super(`Address "${e}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}e.s(["InvalidAddressError",0,r])},26667,e=>{"use strict";var t=e.i(76508);class r extends t.BaseError{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${r}).`,{name:"SliceOffsetOutOfBoundsError"})}}class n extends t.BaseError{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`,{name:"SizeExceedsPaddingSizeError"})}}class i extends t.BaseError{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} is expected to be ${t} ${r} long, but is ${e} ${r} long.`,{name:"InvalidBytesLengthError"})}}e.s(["InvalidBytesLengthError",0,i,"SizeExceedsPaddingSizeError",0,n,"SliceOffsetOutOfBoundsError",0,r])},70403,62856,78040,8496,9475,38828,26014,23160,e=>{"use strict";var t=e.i(76508),r=e.i(46015),n=e.i(26667);function i(e,{dir:t,size:r=32}={}){return"string"==typeof e?a(e,{dir:t,size:r}):function(e,{dir:t,size:r=32}={}){if(null===r)return e;if(e.length>r)throw new n.SizeExceedsPaddingSizeError({size:e.length,targetSize:r,type:"bytes"});let i=new Uint8Array(r);for(let n=0;n<r;n++){let a="right"===t;i[a?n:r-n-1]=e[a?n:e.length-n-1]}return i}(e,{dir:t,size:r})}function a(e,{dir:t,size:r=32}={}){if(null===r)return e;let i=e.replace("0x","");if(i.length>2*r)throw new n.SizeExceedsPaddingSizeError({size:Math.ceil(i.length/2),targetSize:r,type:"hex"});return`0x${i["right"===t?"padEnd":"padStart"](2*r,"0")}`}e.s(["pad",0,i,"padHex",0,a],62856);var s=t;class o extends s.BaseError{constructor({max:e,min:t,signed:r,size:n,value:i}){super(`Number "${i}" is not in safe ${n?`${8*n}-bit ${r?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`,{name:"IntegerOutOfRangeError"})}}class c extends s.BaseError{constructor(e){super(`Bytes value "${e}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}class u extends s.BaseError{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,{name:"InvalidHexBooleanError"})}}s.BaseError,s.BaseError,s.BaseError,s.BaseError;class l extends s.BaseError{constructor({givenSize:e,maxSize:t}
21){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}e.s(["IntegerOutOfRangeError",0,o,"InvalidBytesBooleanError",0,c,"InvalidHexBooleanError",0,u,"SizeOverflowError",0,l],78040);var f=e.i(60613);function d(e,{dir:t="left"}={}){let r="string"==typeof e?e.replace("0x",""):e,n=0;for(let e=0;e<r.length-1;e++)if("0"===r["left"===t?e:r.length-e-1].toString())n++;else break;return(r="left"===t?r.slice(n):r.slice(0,r.length-n),"string"==typeof e)?(1===r.length&&"right"===t&&(r=`${r}0`),`0x${r.length%2==1?`0${r}`:r}`):r}function b(e,{size:t}){if((0,f.size)(e)>t)throw new l({givenSize:(0,f.size)(e),maxSize:t})}function p(e,t={}){let{signed:r}=t;t.size&&b(e,{size:t.size});let n=BigInt(e);if(!r)return n;let i=Math.ceil((e.length-2)/2);return n<=(1n<<8n*BigInt(i)-1n)-1n?n:n-BigInt(`0x${"f".padStart(2*i,"f")}`)-1n}e.s(["trim",0,d],8496),e.s(["assertSize",0,b,"hexToBigInt",0,p,"hexToBool",0,function(e,t={}){let r=e;if(t.size&&(b(r,{size:t.size}),r=d(r)),"0x00"===d(r))return!1;if("0x01"===d(r))return!0;throw new u(r)},"hexToNumber",0,function(e,t={}){let r=p(e,t),n=Number(r);if(!Number.isSafeInteger(n))throw new o({max:`${Number.MAX_SAFE_INTEGER}`,min:`${Number.MIN_SAFE_INTEGER}`,signed:t.signed,size:t.size,value:`${r}n`});return n}],9475);let h=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function m(e,t={}){return"number"==typeof e||"bigint"==typeof e?v(e,t):"string"==typeof e?E(e,t):"boolean"==typeof e?y(e,t):g(e,t)}function y(e,t={}){let r=`0x${Number(e)}`;return"number"==typeof t.size?(b(r,{size:t.size}),i(r,{size:t.size})):r}function g(e,t={}){let r="";for(let t=0;t<e.length;t++)r+=h[e[t]];let n=`0x${r}`;return"number"==typeof t.size?(b(n,{size:t.size}),i(n,{dir:"right",size:t.size})):n}function v(e,t={}){let r,{signed:n,size:a}=t,s=BigInt(e);a?r=n?(1n<<8n*BigInt(a)-1n)-1n:2n**(8n*BigInt(a))-1n:"number"==typeof e&&(r=BigInt(Number.MAX_SAFE_INTEGER));let c="bigint"==typeof r&&n?-r-1n:0;if(r&&s>r||s<c){let t="bigint"==typeof e?"n":"";throw new o({max:r?`${r}${t}`:void 0,min:`${c}${t}`,signed:n,size:a,value:`${e}${t}`})}let u=`0x${(n&&s<0?(1n<<BigInt(8*a))+BigInt(s):s).toString(16)}`;return a?i(u,{size:a}):u}let w=new TextEncoder;function E(e,t={}){return g(w.encode(e),t)}e.s(["boolToHex",0,y,"bytesToHex",0,g,"numberToHex",0,v,"stringToHex",0,E,"toHex",0,m],38828);let x=new TextEncoder;function $(e,t={}){return"number"==typeof e||"bigint"==typeof e?B(v(e,t)):"boolean"==typeof e?function(e,t={}){let r=new Uint8Array(1);return(r[0]=Number(e),"number"==typeof t.size)?(b(r,{size:t.size}),i(r,{size:t.size})):r}(e,t):(0,r.isHex)(e)?B(e,t):P(e,t)}function A(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:void 0}function B(e,r={}){let n=e;r.size&&(b(n,{size:r.size}),n=i(n,{dir:"right",size:r.size}));let a=n.slice(2);a.length%2&&(a=`0${a}`);let s=a.length/2,o=new Uint8Array(s);for(let e=0,r=0;e<s;e++){let n=A(a.charCodeAt(r++)),i=A(a.charCodeAt(r++));if(void 0===n||void 0===i)throw new t.BaseError(`Invalid byte sequence ("${a[r-2]}${a[r-1]}" in "${a}").`);o[e]=16*n+i}return o}function P(e,t={}){let r=x.encode(e);return"number"==typeof t.size?(b(r,{size:t.size}),i(r,{dir:"right",size:t.size})):r}e.s(["hexToBytes",0,B,"stringToBytes",0,P,"toBytes",0,$],70403);var I=e.i(82469),T=e.i(44445);let z=BigInt(0),S=BigInt(1),M=BigInt(2),O=BigInt(7),F=BigInt(256),N=BigInt(113),C=[],R=[],j=[];for(let e=0,t=S,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],C.push(2*(5*n+r)),R.push((e+1)*(e+2)/2%64);let i=z;for(let e=0;e<7;e++)(t=(t<<S^(t>>O)*N)%F)&M&&(i^=S<<(S<<BigInt(e))-S);j.push(i)}let k=(0,I.split)(j,!0),H=k[0],D=k[1],L=(e,t,r)=>r>32?(0,I.rotlBH)(e,t,r):(0,I.rotlSH)(e,t,r),U=(e,t,r)=>r>32?(0,I.rotlBL)(e,t,r):(0,I.rotlSL)(e,t,r);class G extends T.Hash{constructor(e,t,r,n=!1,i=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=n,this.rounds=i,(0,T.anumber)(r),!(0<e&&e<200))throw Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=(0,T.u32)(this.state)}clone(){return this._cloneInto()}keccak(){(0,T.swap32IfBE)(this.state32),function(e,t=24){let r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let n=(t+8)%10,i=(t+2)%10,a=r[i],s=r[i+1],o=L(a,s,1)^r[n],c=U(a,s,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=o,e[t+r+1]^=c}let t=e[2],i=e[3];for(let r=0;r<24;r++){let n=R[r],a=L(t,i,n),s=U(t,i,n),o=C[r];t=e[o],i=e[o+1],e[o]=a,e[o+1]=s}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)r[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~r[(n+2)%10]&r[(n+4)%10]}e[0]^=H[n],e[1]^=D[n]}(0,T.clean)(r)}(this.state32,this.rounds),(0,T.swap32IfBE)(this.state32),this.posOut=0,this.pos=0}update(e){(0,T.aexists)(this),e=(0,T.toBytes)(e),(0,T.abytes)(e);let{blockLen:t,state:r}=this,n=e.length;for(let i=0;i<n;){let a=Math.min(t-this.pos,n-i);for(let t=0;t<a;t++)r[this.pos++]^=e[i++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:r,blockLen:n}=this;e[r]^=t,(128&t)!=0&&r===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){(0,T.aexists)(this,!1),(0,T.abytes)(e),this.finish();let t=this.state,{blockLen:r}=this;for(let n=0,i=e.length;n<i;){this.posOut>=r&&this.keccak();let a=Math.min(r-this.posOut,i-n);e.set(t.subarray(this.posOut,this.posOut+a),n),this.posOut+=a,n+=a}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,T.anumber)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,T.aoutput)(e,this),this.finished)throw Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,(0,T.clean)(this.state)}_cloneInto(e){let{blockLen:t,suffix:r,outputLen:n,rounds:i,enableXOF:a}=this;return e||(e=new G(t,r,n,a,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=n,e.enableXOF=a,e.destroyed=this.destroyed,e}}let _=(0,T.createHasher)(()=>new G(136,1,32));e.s(["keccak_256",0,_],26014),e.s(["keccak256",0,function(e,t){let n=_((0,r.isHex)(e,{strict:!1})?$(e):e);return"bytes"===(t||"hex")?n:m(n)}],23160)},88548,63229,45232,94501,65342,e=>{"use strict";e.s(["checksumAddress",()=>u,"getAddress",()=>l],88548);var t=e.i(33737),r=e.i(70403),n=e.i(23160);class i extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){let t=super.get(e);return super.has(e)&&(super.delete(e),super.set(e,t)),t}set(e,t){if(super.has(e)&&super.delete(e),super.set(e,t),this.maxSize&&this.size>this.maxSize){let e=super.keys().next().value;void 0!==e&&super.delete(e)}return this}}e.s(["LruMap",0,i],63229),e.s(["isAddress",()=>o],45232);let a=/^0x[a-fA-F0-9]{40}$/,s=new i(8192);function o(e,t){let{strict:r=!0}=t??{},n=`${e}.${r}`;if(s.has(n))return s.get(n);let i=!!a.test(e)&&(e.toLowerCase()===e||!r||u(e)===e);return s.set(n,i),i}let c=new i(8192);function u(e,t){if(c.has(`${e}.${t}`))return c.get(`${e}.${t}`);let i=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),a=(0,n.keccak256)((0,r.stringToBytes)(i),"bytes"),s=(t?i.substring(`${t}0x`.length):i).split("");for(let e=0;e<40;e+=2)a[e>>1]>>4>=8&&s[e]&&(s[e]=s[e].toUpperCase()),(15&a[e>>1])>
21=8&&s[e+1]&&(s[e+1]=s[e+1].toUpperCase());let o=`0x${s.join("")}`;return c.set(`${e}.${t}`,o),o}function l(e,r){if(!o(e,{strict:!1}))throw new t.InvalidAddressError({address:e});return u(e,r)}var f=e.i(76508);class d extends f.BaseError{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class b extends f.BaseError{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`,{name:"PositionOutOfBoundsError"})}}class p extends f.BaseError{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`,{name:"RecursiveReadLimitExceededError"})}}e.s(["NegativeOffsetError",0,d,"PositionOutOfBoundsError",0,b,"RecursiveReadLimitExceededError",0,p],94501);let h={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:1/0,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new p({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new b({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new d({offset:e});let t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new d({offset:e});let t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let r=t??this.position;return this.assertPosition(r+e-1),this.bytes.subarray(r,r+e)},inspectUint8(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){let t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){let t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){let t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();let r=this.inspectBytes(e);return this.position+=t??e,r},readUint8(){this.assertReadLimit(),this._touch();let e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();let e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();let e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();let e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){let t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===1/0)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};e.s(["createCursor",0,function(e,{recursiveReadLimit:t=8192}={}){let r=Object.create(h);return r.bytes=e,r.dataView=new DataView(e.buffer??e,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r}],65342)},29,e=>{"use strict";var t=e.i(26667),r=e.i(46015),n=e.i(60613);function i(e,r){if("number"==typeof r&&r>0&&r>(0,n.size)(e)-1)throw new t.SliceOffsetOutOfBoundsError({offset:r,position:"start",size:(0,n.size)(e)})}function a(e,r,i){if("number"==typeof r&&"number"==typeof i&&(0,n.size)(e)!==i-r)throw new t.SliceOffsetOutOfBoundsError({offset:i,position:"end",size:(0,n.size)(e)})}function s(e,t,r,{strict:n}={}){i(e,t);let o=e.slice(t,r);return n&&a(o,t,r),o}function o(e,t,r,{strict:n}={}){i(e,t);let s=`0x${e.replace("0x","").slice((t??0)*2,(r??e.length)*2)}`;return n&&a(s,t,r),s}e.s(["slice",0,function(e,t,n,{strict:i}={}){return(0,r.isHex)(e,{strict:!1})?o(e,t,n,{strict:i}):s(e,t,n,{strict:i})},"sliceBytes",0,s,"sliceHex",0,o])},24020,98054,78956,62172,e=>{"use strict";
21var t=e.i(66958),r=e.i(88548),n=e.i(65342),i=e.i(60613),a=e.i(29),s=e.i(78040),o=e.i(8496),c=e.i(9475),u=e.i(38828);function l(e,t={}){void 0!==t.size&&(0,c.assertSize)(e,{size:t.size});let r=(0,u.bytesToHex)(e);return(0,c.hexToNumber)(r,t)}var f=e.i(70403),d=e.i(33737),b=e.i(76508),p=e.i(45232);function h(e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}e.s(["concat",0,function(e){return"string"==typeof e[0]?h(e):function(e){let t=0;for(let r of e)t+=r.length;let r=new Uint8Array(t),n=0;for(let t of e)r.set(t,n),n+=t.length;return r}(e)},"concatHex",0,h],98054);var m=e.i(62856);let y=/^(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)?$/;e.s(["bytesRegex",0,/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,"integerRegex",0,y],78956);function g(e){let t=0;for(let r=0;r<e.length;r++){let{dynamic:n,encoded:a}=e[r];n?t+=32:t+=(0,i.size)(a)}let r=[],n=[],a=0;for(let s=0;s<e.length;s++){let{dynamic:o,encoded:c}=e[s];o?(r.push((0,u.numberToHex)(t+a,{size:32})),n.push(c),a+=(0,i.size)(c)):r.push(c)}return h([...r,...n])}function v(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}e.s(["encodeAbiParameters",0,function(e,r){if(e.length!==r.length)throw new t.AbiEncodingLengthMismatchError({expectedLength:e.length,givenLength:r.length});return g(function({params:e,values:r}){let n=[];for(let o=0;o<e.length;o++)n.push(function e({param:r,value:n}){let o=v(r.type);if(o){let[i,a]=o;return function(r,{length:n,param:i}){let a=null===n;if(!Array.isArray(r))throw new t.InvalidArrayError(r);if(!a&&r.length!==n)throw new t.AbiEncodingArrayLengthMismatchError({expectedLength:n,givenLength:r.length,type:`${i.type}[${n}]`});let s=0===r.length&&function e(t){let{type:r}=t;if("string"===r||"bytes"===r||r.endsWith("[]"))return!0;if("tuple"===r)return t.components.some(e);let n=v(r);return!!n&&e({...t,type:n[1]})}(i),o=[];for(let t=0;t<r.length;t++){let n=e({param:i,value:r[t]});n.dynamic&&(s=!0),o.push(n)}if(a||s){let e=g(o);if(a)return{dynamic:!0,encoded:h([(0,u.numberToHex)(o.length,{size:32}),e])};if(s)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:h(o.map(({encoded:e})=>e))}}(n,{length:i,param:{...r,type:a}})}if("tuple"===r.type)return function(t,{param:r}){let n=!1,i=[];for(let a=0;a<r.components.length;a++){let s=r.components[a],o=Array.isArray(t)?a:s.name,c=e({param:s,value:t[o]});i.push(c),c.dynamic&&(n=!0)}return{dynamic:n,encoded:n?g(i):h(i.map(({encoded:e})=>e))}}(n,{param:r});if("address"===r.type){var c=n;if(!(0,p.isAddress)(c))throw new d.InvalidAddressError({address:c});return{dynamic:!1,encoded:(0,m.padHex)(c.toLowerCase())}}if("bool"===r.type){var l=n;if("boolean"!=typeof l)throw new b.BaseError(`Invalid boolean value: "${l}" (type: ${typeof l}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:(0,m.padHex)((0,u.boolToHex)(l))}}if(r.type.startsWith("uint")||r.type.startsWith("int")){let e=r.type.startsWith("int"),[,,t="256"]=y.exec(r.type)??[];return function(e,{signed:t,size:r=256}){if("number"==typeof r){let n=2n**(BigInt(r)-(t?1n:0n))-1n,i=t?-n-1n:0n;if(e>n||e<i)throw new s.IntegerOutOfRangeError({max:n.toString(),min:i.toString(),signed:t,size:r/8,value:e.toString()})}return{dynamic:!1,encoded:(0,u.numberToHex)(e,{size:32,signed:t})}}(n,{signed:e,size:Number(t)})}if(r.type.startsWith("bytes"))return function(e,{param:r}){let[,n]=r.type.split("bytes"),a=(0,i.size)(e);if(!n){let t=e;return a%32!=0&&(t=(0,m.padHex)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:h([(0,m.padHex)((0,u.numberToHex)(a,{size:32})),t])}}if(a!==Number.parseInt(n,10))throw new t.AbiEncodingBytesSizeMismatchError({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:(0,m.padHex)(e,{dir:"right"})}}(n,{param:r});if("string"===r.type){var f=n;let e=(0,u.stringToHex)(f),t=Math.ceil((0,i.size)(e)/32),r=[];for(let n=0;n<t;n++)r.push((0,m.padHex)((0,a.slice)(e,32*n,(n+1)*32),{dir:"right"}));return{dynamic:!0,encoded:h([(0,m.padHex)((0,u.numberToHex)((0,i.size)(e),{size:32})),...r])}}throw new t.InvalidAbiEncodingTypeError(r.type,{docsPath:"/docs/contract/encodeAbiParameters"})}({param:e[o],value:r[o]}));return n}({params:e,values:r}))},"getArrayComponents",0,v],62172);function w(e){let{type:t}=e;if("string"===t||"bytes"===t||t.endsWith("[]"))return!0;
21if("tuple"===t)return e.components?.some(w);let r=v(e.type);return!!(r&&w({...e,type:r[1]}))}e.s(["decodeAbiParameters",0,function(e,d){let b="string"==typeof d?(0,f.hexToBytes)(d):d,p=(0,n.createCursor)(b);if(0===(0,i.size)(b)&&e.length>0)throw new t.AbiDecodingZeroDataError;if((0,i.size)(d)&&32>(0,i.size)(d))throw new t.AbiDecodingDataSizeTooSmallError({data:"string"==typeof d?d:(0,u.bytesToHex)(d),params:e,size:(0,i.size)(d)});let h=0,m=[];for(let n=0;n<e.length;++n){let i=e[n];h<b.length&&p.setPosition(h);let[f,d]=function e(n,i,{staticPosition:f}){let d=v(i.type);if(d){let[t,r]=d;return function(t,r,{length:n,staticPosition:i}){if(null===n){let n=i+l(t.readBytes(32)),a=n+32;t.setPosition(n);let s=l(t.readBytes(32)),o=w(r),c=0,u=[];for(let n=0;n<s;++n){t.setPosition(a+(o?32*n:c));let[i,s]=e(t,r,{staticPosition:a});c+=s,u.push(i),0===s&&(t.assertReadLimit(),t._touch())}return t.setPosition(i+32),[u,32]}if(w(r)){let a=i+l(t.readBytes(32)),s=[];for(let i=0;i<n;++i){t.setPosition(a+32*i);let[n]=e(t,r,{staticPosition:a});s.push(n)}return t.setPosition(i+32),[s,32]}let a=0,s=[];for(let o=0;o<n;++o){let[n,o]=e(t,r,{staticPosition:i+a});a+=o,s.push(n),0===o&&(t.assertReadLimit(),t._touch())}return[s,a]}(n,{...i,type:r},{length:t,staticPosition:f})}if("tuple"===i.type)return function(t,r,{staticPosition:n}){let i=0===r.components.length||r.components.some(({name:e})=>!e),a=i?[]:{},s=0;if(w(r)){let o=n+l(t.readBytes(32));for(let n=0;n<r.components.length;++n){let c=r.components[n];t.setPosition(o+s);let[u,l]=e(t,c,{staticPosition:o});s+=l,a[i?n:c?.name]=u}return t.setPosition(n+32),[a,32]}for(let o=0;o<r.components.length;++o){let c=r.components[o],[u,l]=e(t,c,{staticPosition:n});a[i?o:c?.name]=u,s+=l}return[a,s]}(n,i,{staticPosition:f});if("address"===i.type){let e;return e=n.readBytes(32),[(0,r.checksumAddress)((0,u.bytesToHex)((0,a.sliceBytes)(e,-20))),32]}if("bool"===i.type)return[function(e,t={}){let r=e;if(void 0!==t.size&&((0,c.assertSize)(r,{size:t.size}),r=(0,o.trim)(r)),r.length>1||r[0]>1)throw new s.InvalidBytesBooleanError(r);return!!r[0]}(n.readBytes(32),{size:32}),32];if(i.type.startsWith("bytes"))return function(e,t,{staticPosition:r}){let[n,i]=t.type.split("bytes");if(!i){let t=l(e.readBytes(32));e.setPosition(r+t);let n=l(e.readBytes(32));if(0===n)return e.setPosition(r+32),["0x",32];let i=e.readBytes(n);return e.setPosition(r+32),[(0,u.bytesToHex)(i),32]}return[(0,u.bytesToHex)(e.readBytes(Number.parseInt(i,10),32)),32]}(n,i,{staticPosition:f});if(i.type.startsWith("uint")||i.type.startsWith("int")){var b,p;let e,t,r;return b=n,e=(p=i).type.startsWith("int"),t=Number.parseInt(p.type.split("int")[1]||"256",10),r=b.readBytes(32),[t>48?function(e,t={}){void 0!==t.size&&(0,c.assertSize)(e,{size:t.size});let r=(0,u.bytesToHex)(e);return(0,c.hexToBigInt)(r,t)}(r,{signed:e}):l(r,{signed:e}),32]}if("string"===i.type)return function(e,{staticPosition:t}){let r=l(e.readBytes(32));e.setPosition(t+r);let n=l(e.readBytes(32));if(0===n)return e.setPosition(t+32),["",32];let i=function(e,t={}){let r=e;return void 0!==t.size&&((0,c.assertSize)(r,{size:t.size}),r=(0,o.trim)(r,{dir:"right"})),new TextDecoder().decode(r)}(e.readBytes(n,32));return e.setPosition(t+32),[i,32]}(n,{staticPosition:f});throw new t.InvalidAbiDecodingTypeError(i.type,{docsPath:"/docs/contract/decodeAbiParameters"})}(p,i,{staticPosition:0});h+=d,m.push(f)}return m}],24020)},8782,e=>{"use strict";var t=e.i(70403),r=e.i(23160);e.s(["hashSignature",0,function(e){return(0,r.keccak256)((0,t.toBytes)(e))}])},82148,e=>{"use strict";e.s(["bytesRegex",0,/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,"execTyped",0,function(e,t){let r=e.exec(t);return r?.groups},"integerRegex",0,/^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)?$/,"isTupleRegex",0,/^\(.+?\).*?$/])},27922,2737,15218,e=>{"use strict";var t=e.i(8782),r=e.i(82148);let n=/^tuple(?<array>(\[(\d*)\])*)$/;function i(e){let t="",i=e.length;for(let a=0;a<i;a++)t+=function e(t){let i=t.type;if(n.test(t.type)&&"components"in t){i="(";let a=t.components.length;for(let r=0;r<a;r++)i+=e(t.components[r]),r<a-1&&(i+=", ");let s=(0,r.execTyped)(n,t.type);return i+=`)${s?.array||""}`,e({...t,type:i})}return("indexed"in t&&t.indexed&&(i=`${i}
21 indexed`),t.name)?`${i} ${t.name}`:i}(e[a]),a!==i-1&&(t+=", ");return t}function a(e){return"function"===e.type?`function ${e.name}(${i(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${e.outputs?.length?` returns (${i(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${i(e.inputs)})`:"error"===e.type?`error ${e.name}(${i(e.inputs)})`:"constructor"===e.type?`constructor(${i(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?`fallback() external${"payable"===e.stateMutability?" payable":""}`:"receive() external payable"}e.s(["formatAbiParameters",0,i],2737),e.s(["formatAbiItem",0,a],15218);var s=e.i(76508);e.s(["toSignatureHash",0,function(e){return(0,t.hashSignature)(function(e){let t=!0,r="",n=0,i="",a=!1;for(let s=0;s<e.length;s++){let o=e[s];if(["(",")",","].includes(o)&&(t=!0),"("===o&&n++,")"===o&&n--,t){if(0===n){if(" "===o&&["event","function",""].includes(i))i="";else if(i+=o,")"===o){a=!0;break}continue}if(" "===o){","!==e[s-1]&&","!==r&&",("!==r&&(r="",t=!1);continue}i+=o,r+=o}}if(!a)throw new s.BaseError("Unable to normalize signature.");return i}("string"==typeof e?e:a(e)))}],27922)},38466,e=>{"use strict";let t=e.i(27922).toSignatureHash;e.s(["toEventSelector",0,t])},42120,e=>{"use strict";var t=e.i(29),r=e.i(27922);e.s(["toFunctionSelector",0,e=>(0,t.slice)((0,r.toSignatureHash)(e),0,4)])},35496,e=>{"use strict";var t=e.i(66958),r=e.i(46015),n=e.i(45232),i=e.i(38466),a=e.i(42120);e.s(["getAbiItem",0,function(e){let s,{abi:o,args:c=[],name:u}=e,l=(0,r.isHex)(u,{strict:!1}),f=o.filter(e=>l?"function"===e.type?(0,a.toFunctionSelector)(e)===u:"event"===e.type&&(0,i.toEventSelector)(e)===u:"name"in e&&e.name===u);if(0!==f.length){if(1===f.length)return f[0];for(let e of f){if("inputs"in e){if(!c||0===c.length){if(!e.inputs||0===e.inputs.length)return e;continue}if(e.inputs&&0!==e.inputs.length&&e.inputs.length===c.length&&c.every((t,r)=>{let i="inputs"in e&&e.inputs[r];return!!i&&function e(t,r){let i=typeof t,a=r.type;switch(a){case"address":return(0,n.isAddress)(t,{strict:!1});case"bool":return"boolean"===i;case"function":case"string":return"string"===i;default:if("tuple"===a&&"components"in r)return Object.values(r.components).every((r,n)=>"object"===i&&e(Object.values(t)[n],r));if(/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(a))return"number"===i||"bigint"===i;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(a))return"string"===i||t instanceof Uint8Array;
21if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(a))return Array.isArray(t)&&t.every(t=>e(t,{...r,type:a.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}(t,i)})){if(s&&"inputs"in s&&s.inputs){let r=function e(t,r,i){for(let a in t){let s=t[a],o=r[a];if("tuple"===s.type&&"tuple"===o.type&&"components"in s&&"components"in o)return e(s.components,o.components,i[a]);let c=[s.type,o.type];if(c.includes("address")&&c.includes("bytes20")||(c.includes("address")&&c.includes("string")||c.includes("address")&&c.includes("bytes"))&&(0,n.isAddress)(i[a],{strict:!1}))return c}}(e.inputs,s.inputs,c);if(r)throw new t.AbiItemAmbiguityError({abiItem:e,type:r[0]},{abiItem:s,type:r[1]})}s=e}}}return s||f[0]}}])},76013,e=>{"use strict";var t=e.i(66958),r=e.i(24020),n=e.i(35496);let i="/docs/contract/decodeFunctionResult";e.s(["decodeFunctionResult",0,function(e){let{abi:a,args:s,functionName:o,data:c}=e,u=a[0];if(o){let e=(0,n.getAbiItem)({abi:a,args:s,name:o});if(!e)throw new t.AbiFunctionNotFoundError(o,{docsPath:i});u=e}if("function"!==u.type)throw new t.AbiFunctionNotFoundError(void 0,{docsPath:i});if(!u.outputs)throw new t.AbiFunctionOutputsNotFoundError(u.name,{docsPath:i});let l=(0,r.decodeAbiParameters)(u.outputs,c);return l&&l.length>1?l:l&&1===l.length?l[0]:void 0}])},74887,e=>{"use strict";var t=e.i(98054),r=e.i(62172),n=e.i(66958),i=e.i(42120),a=e.i(82688),s=e.i(35496);let o="/docs/contract/encodeFunctionData";e.s(["encodeFunctionData",0,function(e){let{args:c}=e,{abi:u,functionName:l}=1===e.abi.length&&e.functionName?.startsWith("0x")?e:function(e){let{abi:t,args:r,functionName:c}=e,u=t[0];if(c){let e=(0,s.getAbiItem)({abi:t,args:r,name:c});if(!e)throw new n.AbiFunctionNotFoundError(c,{docsPath:o});u=e}if("function"!==u.type)throw new n.AbiFunctionNotFoundError(void 0,{docsPath:o});return{abi:[u],functionName:(0,i.toFunctionSelector)((0,a.formatAbiItem)(u))}}
21(e),f=u[0],d="inputs"in f&&f.inputs?(0,r.encodeAbiParameters)(f.inputs,c??[]):void 0;return(0,t.concatHex)([l,d??"0x"])}],74887)},47134,e=>{"use strict";var t=e.i(76508);class r extends t.BaseError{constructor({blockNumber:e,chain:t,contract:r}){super(`Chain "${t.name}" does not support contract "${r.name}".`,{metaMessages:["This could be due to any of the following:",...e&&r.blockCreated&&r.blockCreated>e?[`- The contract "${r.name}" was not deployed until block ${r.blockCreated} (current block ${e}).`]:[`- The chain does not have the contract "${r.name}" configured.`]],name:"ChainDoesNotSupportContract"})}}class n extends t.BaseError{constructor({chain:e,currentChainId:t}){super(`The current chain of the wallet (id: ${t}) does not match the target chain for the transaction (id: ${e.id} – ${e.name}).`,{metaMessages:[`Current Chain ID:  ${t}`,`Expected Chain ID: ${e.id} – ${e.name}`],name:"ChainMismatchError"})}}class i extends t.BaseError{constructor(){super("No chain was provided to the request.\nPlease provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient.",{name:"ChainNotFoundError"})}}class a extends t.BaseError{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}t.BaseError,e.s(["ChainDoesNotSupportContract",0,r,"ChainMismatchError",0,n,"ChainNotFoundError",0,i,"ClientChainNotConfiguredError",0,a])},44497,e=>{"use strict";var t=e.i(47134);e.s(["getChainContractAddress",0,function({blockNumber:e,chain:r,contract:n}){let i=r?.contracts?.[n];if(!i)throw new t.ChainDoesNotSupportContract({chain:r,contract:{name:n}});if(e&&i.blockCreated&&i.blockCreated>e)throw new t.ChainDoesNotSupportContract({blockNumber:e,chain:r,contract:{name:n,blockCreated:i.blockCreated}});return i.address}])},99489,e=>{"use strict";e.s(["panicReasons",0,{1:"An `assert` condition failed.",17:"Arithmetic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},"solidityError",0,{inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},"solidityPanic",0,{inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}])},49194,1909,7117,e=>{"use strict";var t=e.i(99489),r=e.i(66958),n=e.i(29),i=e.i(42120),a=e.i(24020),s=e.i(82688);e.s(["decodeErrorResult",0,function(e){let{abi:o,data:c,cause:u}=e,l=(0,n.slice)(c,0,4);if("0x"===l)throw new r.AbiDecodingZeroDataError({cause:u});let f=[...o||[],t.solidityError,t.solidityPanic].find(e=>"error"===e.type&&l===(0,i.toFunctionSelector)((0,s.formatAbiItem)(e)));if(!f)throw new r.AbiErrorSignatureNotFoundError(l,{docsPath:"/docs/contract/decodeErrorResult",cause:u});
21return{abiItem:f,args:"inputs"in f&&f.inputs&&f.inputs.length>0?(0,a.decodeAbiParameters)(f.inputs,(0,n.slice)(c,4)):void 0,errorName:f.name}}],49194);let o=(e,t,r)=>JSON.stringify(e,(e,r)=>{let n="bigint"==typeof r?r.toString():r;return"function"==typeof t?t(e,n):n},r);e.s(["stringify",0,o],1909),e.s(["formatAbiItemWithArgs",0,function({abiItem:e,args:t,includeFunctionName:r=!0,includeName:n=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${r?e.name:""}(${e.inputs.map((e,r)=>`${n&&e.name?`${e.name}: `:""}${"object"==typeof t[r]?o(t[r]):t[r]}`).join(", ")})`}],7117)},89749,34123,56001,21791,324,54506,41903,e=>{"use strict";var t=e.i(26363),r=e.i(99489),n=e.i(49194),i=e.i(82688),a=e.i(7117),s=e.i(35496);let o={wei:0,gwei:9,szabo:12,finney:15,ether:18};function c(e,t=0){if(!Number.isInteger(t)||t<0)throw new d({decimals:t});let r=e.toString(),n=r.startsWith("-");n&&(r=r.slice(1));let[i,a]=[(r=r.padStart(t,"0")).slice(0,r.length-t),r.slice(r.length-t)];return a=a.replace(/(0+)$/,""),`${n?"-":""}${i||"0"}${a?`.${a}`:""}`}function u(e,t="wei"){return c(e,o.ether-o[t])}function l(e,t="wei"){return c(e,o.gwei-o[t])}class f extends Error{constructor({value:e}){super(`Value \`${e}\` is not a valid decimal number.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Value.InvalidDecimalNumberError"})}}class d extends Error{constructor({decimals:e}){super(`\`decimals\` must be a non-negative integer. Got \`${e}\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Value.InvalidDecimalsError"})}}function b(e,t="wei"){return u(e,t)}function p(e,t="wei"){return l(e,t)}e.s(["format",0,c,"formatEther",0,u,"formatGwei",0,l,"from",0,function(e,t=0){if(!Number.isInteger(t)||t<0)throw new d({decimals:t});if(!/^-?(?:[0-9]+(?:\.[0-9]*)?|\.[0-9]+)$/.test(e))throw new f({value:e});let[r="",n="0"]=e.split("."),i=r.startsWith("-");if(i&&(r=r.slice(1)),""===r&&(r="0"),n=n.replace(/(0+)$/,""),0===t)n.length>0&&Number.parseInt(n[0],10)>=5&&(r=`${BigInt(r)+1n}`),n="";else if(n.length>t){let e=n.slice(0,t);if(Number.parseInt(n.slice(t,t+1),10)>=5){let i=function(e){let t=e.split(""),r=t.length-1;for(;r>=0;){let e=Number.parseInt(t[r],10)+1;if(e<10)return t[r]=String(e),t.join("");t[r]="0",r--}return`1${t.join("")}`}(e);i.length>t?(n=i.slice(1),r=`${BigInt(r)+1n}`):n=i}else n=e}else n=n.padEnd(t,"0");return BigInt(`${i?"-":""}${r}${n}`)}],34123),e.s(["formatEther",0,b],56001),e.s(["formatGwei",0,p],21791);var h=e.i(66958),m=e.i(76508),y=m;class g extends y.BaseError{constructor({address:e}){super(`State for account "${e}" is set multiple times.`,{name:"AccountStateConflictError"})}}class v extends y.BaseError{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function w(e){return e.reduce((e,{slot:t,value:r})=>`${e}        ${t}: ${r}
22`,"")}function E(e){return e.reduce((e,{address:t,...r})=>{let n=`${e}    ${t}:
23`;return r.nonce&&(n+=`      nonce: ${r.nonce}
24`),r.balance&&(n+=`      balance: ${r.balance}
25`),r.code&&(n+=`      code: ${r.code}
26`),r.state&&(n+="      state:\n",n+=w(r.state)),r.stateDiff&&(n+="      stateDiff:\n",n+=w(r.stateDiff)),n},"  State Override:\n").slice(0,-1)}e.s(["AccountStateConflictError",0,g,"StateAssignmentConflictError",0,v,"prettyStateOverride",0,E],324);var x=m;function $(e){let t=Object.entries(e).map(([e,t])=>void 0===t||!1===t?null:[e,t]).filter(Boolean),r=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>`  ${`${e}:`.padEnd(r+1)}  ${t}`).join("\n")}x.BaseError;class A extends x.BaseError{constructor({filledNonce:e,requestedNonce:t}){super("The filled transaction nonce does not match the requested nonce.",{metaMessages:[`Requested Nonce: ${t}`,`Filled Nonce: ${e}`],name:"FeePayerNonceMismatchError"})}}x.BaseError,x.BaseError;class B extends x.BaseError{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",$(e),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}x.BaseError,x.BaseError,x.BaseError;class P extends x.BaseError{constructor(e,{account:t,docsPath:r,chain:n,data:i,gas:a,gasPrice:s,maxFeePerGas:o,maxPriorityFeePerGas:c,nonce:u,to:l,value:f}){const d=$({chain:n&&`${n?.name} (id: ${n?.id})`,from:t?.address,to:l,value:void 0!==f&&`${b(f)} ${n?.nativeCurrency?.symbol||"ETH"}`,data:i,gas:a,gasPrice:void 0!==s&&`${p(s)} gwei`,maxFeePerGas:void 0!==o&&`${p(o)} gwei`,maxPriorityFeePerGas:void 0!==c&&`${p(c)} gwei`,nonce:u});super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",d].filter(
26Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class I extends x.BaseError{constructor({blockHash:e,blockNumber:t,blockTag:r,hash:n,index:i}){let a="Transaction";r&&void 0!==i&&(a=`Transaction at block time "${r}" at index "${i}"`),e&&void 0!==i&&(a=`Transaction at block hash "${e}" at index "${i}"`),t&&void 0!==i&&(a=`Transaction at block number "${t}" at index "${i}"`),n&&(a=`Transaction with hash "${n}"`),super(`${a} could not be found.`,{name:"TransactionNotFoundError"})}}class T extends x.BaseError{constructor({hash:e}){super(`Transaction receipt with hash "${e}" could not be found. The Transaction may not be processed on a block yet.`,{name:"TransactionReceiptNotFoundError"})}}class z extends x.BaseError{constructor({receipt:e}){super(`Transaction with hash "${e.transactionHash}" reverted.`,{metaMessages:['The receipt marked the transaction as "reverted". This could mean that the function on the contract you are trying to call threw an error.'," ","You can attempt to extract the revert reason by:","- calling the `simulateContract` or `simulateCalls` Action with the `abi` and `functionName` of the contract","- using the `call` Action with raw `data`"],name:"TransactionReceiptRevertedError"}),Object.defineProperty(this,"receipt",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.receipt=e}}class S extends x.BaseError{constructor({hash:e}){super(`Timed out while waiting for transaction with hash "${e}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}e.s(["FeePayerNonceMismatchError",0,A,"InvalidSerializableTransactionError",0,B,"TransactionExecutionError",0,P,"TransactionNotFoundError",0,I,"TransactionReceiptNotFoundError",0,T,"TransactionReceiptRevertedError",0,z,"WaitForTransactionReceiptTimeoutError",0,S,"prettyPrint",0,$],54506);let M=e=>e;e.s(["getAbortError",0,function(e){if(e?.reason)return e.reason;if("function"==typeof DOMException)return new DOMException("This operation was aborted","AbortError");let t=Error("This operation was aborted");return t.name="AbortError",t},"getContractAddress",0,M,"getUrl",0,e=>{try{let t=new URL(e);if(!t.username&&!t.password)return e;return t.username="",t.password="",t.toString()}catch{return e}},"isAbortError",0,function(e){return"object"==typeof e&&null!==e&&"name"in e&&"AbortError"===e.name}],41903);class O extends m.BaseError{constructor(e,{account:r,docsPath:n,chain:i,data:a,gas:s,gasPrice:o,maxFeePerGas:c,maxPriorityFeePerGas:u,nonce:l,to:f,value:d,stateOverride:h}){const m=r?(0,t.parseAccount)(r):void 0;let y=$({from:m?.address,to:f,value:void 0!==d&&`${b(d)} ${i?.nativeCurrency?.symbol||"ETH"}`,data:a,gas:s,gasPrice:void 0!==o&&`${p(o)} gwei`,maxFeePerGas:void 0!==c&&`${p(c)} gwei`,maxPriorityFeePerGas:void 0!==u&&`${p(u)} gwei`,nonce:l});h&&(y+=`
27${E(h)}`),super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",y].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class F extends m.BaseError{constructor(e,{abi:t,args:r,contractAddress:n,docsPath:o,functionName:c,sender:u}){const l=(0,s.getAbiItem)({abi:t,args:r,name:c}),f=l?(0,a.formatAbiItemWithArgs)({abiItem:l,args:r,includeFunctionName:!1,includeName:!1}):void 0,d=l?(0,i.formatAbiItem)(l,{includeName:!0}):void 0,b=$({address:n&&M(n),function:d,args:f&&"()"!==f&&`${[...Array(c?.length??0).keys()].map(()=>" ").join("")}${f}`,sender:u});super(e.shortMessage||`An unknown error occurred while executing the contract function "${c}".`,{cause:e,docsPath:o,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],b&&"Contract Call:",b].filter(Boolean),name:"ContractFunctionExecutionError"}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abi=t,this.args=r,this.cause=e,this.contractAddress=n,this.functionName=c,this.sender=u}}class N extends m.BaseError{constructor({abi:e,data:t,functionName:s,message:o,cause:c}){let u,l,f,d,b;if(t&&"0x"!==t)try{const{abiItem:s,errorName:o,args:u}=l=(0,n.decodeErrorResult)({abi:e,data:t,cause:c});if("Error"===o)d=u[0];else if("Panic"===o){const[e]=u;d=r.panicReasons[e]}else{const e=s?(0,i.formatAbiItem)(s,{includeName:!0}):void 0,t=s&&u?(0,a.formatAbiItemWithArgs)({abiItem:s,args:u,includeFunctionName:!1,includeName:!1}):void 0;f=[e?`Error: ${e}`:"",t&&"()"!==t?`       ${[...Array(o?.length??0).keys()].map(()=>" ").join("")}${t}`:""]}}catch(e){u=e}else o&&(d=o);u instanceof h.AbiErrorSignatureNotFoundError&&(b=u.signature,f=[`Unable to decode signature "${b}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://4byte.sourcify.dev/?q=${b}.`]),super(d&&"execution reverted"!==d||b?[`The contract function "${s}" reverted with the following ${b?"signature":"reason"}:`,d||b].join("\n"):`The contract function "${s}" reverted.`,{cause:u??c,metaMessages:f,name:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"raw",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=l,this.raw=t,this.reason=d,this.signature=b}}class C extends m.BaseError{constructor({functionName:e,cause:t}){super(`The contract function "${e}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",`  - The contract does not have the function "${e}",`,"  - The parameters passed to the contract function may be invalid, or","  - The address is not a contract."],name:"ContractFunctionZeroDataError",cause:t})}}class R extends m.BaseError{constructor({factory:e}){super(`Deployment for counterfactual contract call failed${e?` for factory "${e}".`:""}`,{metaMessages:["Please ensure:","- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).","- The `factoryData` is a valid encoded function call for contract deployment function on the factory."],name:"CounterfactualDeploymentFailedError"})}}class j extends m.BaseError{constructor({data:e,message:t}){super(t||"",{name:"RawContractError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}e.s(["CallExecutionError",0,O,"ContractFunctionExecutionError",0,F,"ContractFunctionRevertedError",0,N,"ContractFunctionZeroDataError",0,C,"CounterfactualDeploymentFailedError",0,R,"RawContractError",0,j],89749)}
27,86524,e=>{"use strict";var t=e.i(92365),r=e.i(99489),n=e.i(66958),i=e.i(29),a=e.i(42120),s=e.i(24020),o=e.i(82688),c=e.i(98054),u=e.i(62172),l=e.i(35496);let f="/docs/contract/encodeErrorResult";function d(e){let{abi:t,errorName:r,args:i}=e,s=t[0];if(r){let e=(0,l.getAbiItem)({abi:t,args:i,name:r});if(!e)throw new n.AbiErrorNotFoundError(r,{docsPath:f});s=e}if("error"!==s.type)throw new n.AbiErrorNotFoundError(void 0,{docsPath:f});let d=(0,o.formatAbiItem)(s),b=(0,a.toFunctionSelector)(d),p="0x";if(i&&i.length>0){if(!s.inputs)throw new n.AbiErrorInputsNotFoundError(s.name,{docsPath:f});p=(0,u.encodeAbiParameters)(s.inputs,i)}return(0,c.concatHex)([b,p])}let b="/docs/contract/encodeFunctionResult",p="x-batch-gateway:true";async function h(e){let{data:c,ccipRequest:f}=e,{args:[m]}=function(e){let{abi:t,data:r}=e,c=(0,i.slice)(r,0,4),u=t.find(e=>"function"===e.type&&c===(0,a.toFunctionSelector)((0,o.formatAbiItem)(e)));if(!u)throw new n.AbiFunctionSignatureNotFoundError(c,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:u.name,args:"inputs"in u&&u.inputs&&u.inputs.length>0?(0,s.decodeAbiParameters)(u.inputs,(0,i.slice)(r,4)):void 0}}({abi:t.batchGatewayAbi,data:c}),y=[],g=[];return await Promise.all(m.map(async(e,n)=>{try{g[n]=e.urls.includes(p)?await h({data:e.data,ccipRequest:f}):await f(e),y[n]=!1}catch(e){var i;y[n]=!0,g[n]="HttpRequestError"===(i=e).name&&i.status?d({abi:t.batchGatewayAbi,errorName:"HttpError",args:[i.status,i.shortMessage]}):d({abi:[r.solidityError],errorName:"Error",args:["shortMessage"in i?i.shortMessage:i.message]})}})),function(e){let{abi:t,functionName:r,result:i}=e,a=t[0];if(r){let e=(0,l.getAbiItem)({abi:t,name:r});if(!e)throw new n.AbiFunctionNotFoundError(r,{docsPath:b});a=e}if("function"!==a.type)throw new n.AbiFunctionNotFoundError(void 0,{docsPath:b});if(!a.outputs)throw new n.AbiFunctionOutputsNotFoundError(a.name,{docsPath:b});let s=(()=>{if(0===a.outputs.length)return[];if(1===a.outputs.length)return[i];if(Array.isArray(i))return i;throw new n.InvalidArrayError(i)})();return(0,u.encodeAbiParameters)(a.outputs,s)}({abi:t.batchGatewayAbi,functionName:"query",result:[y,g]})}e.s(["localBatchGatewayRequest",0,h,"localBatchGatewayUrl",0,p],86524)},76953,e=>{"use strict";var t=e.i(1909),r=e.i(76508),n=e.i(41903);class i extends r.BaseError{constructor({body:e,cause:r,details:i,headers:a,status:s,url:o}){super("HTTP request failed.",{cause:r,details:i,metaMessages:[s&&`Status: ${s}`,`URL: ${(0,n.getUrl)(o)}`,e&&`Request body: ${(0,t.stringify)(e)}`].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=e,this.headers=a,this.status=s,this.url=o}}class a extends r.BaseError{constructor({maxSize:e,size:t}){super("HTTP response body exceeded the size limit.",{metaMessages:[`Max: ${e} bytes`,`Received: ${t} bytes`],name:"ResponseBodyTooLargeError"}),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e,this.size=t}}r.BaseError;class s extends r.BaseError{constructor({body:e,error:r,url:i}){super("RPC Request failed.",{cause:r,details:r.message,metaMessages:[`URL: ${(0,n.getUrl)(i)}`,`Request body: ${(0,t.stringify)(e)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=r.code,this.data=r.data,this.url=i}}r.BaseError;class o extends r.BaseError{constructor({body:e,url:r}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(0,n.getUrl)(r)}`,`Request body: ${(0,t.stringify)(e)}`],name:"TimeoutError"}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.url=r}}e.s(["HttpRequestError",0,i,"ResponseBodyTooLargeError",0,a,"RpcRequestError",0,s,"TimeoutError",0,o])},36006,36530,85210,86994,63841,69487,43582,13632,7078,99249,80143,34983,e=>{"use strict";var t=e.i(82148);let r=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function n(e){return r.test(e)}function i(e){return(0,t.execTyped)(r,e)}let a=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function s(e){return a.test(e)}function o(e){return(0,t.execTyped)(a,e)}let c=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;function u(e){return c.test(e)}function l(e){return(0,t.execTyped)(c,e)}let f=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function d(e){return f.test(e)}function b(e){return(0,t.execTyped)(f,e)}let p=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function h(e){return p.test(e)}function m(e){return(0,t.execTyped)(p,e)}let y=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;function g(e){return y.test(e)}function v(e){return(0,t.execTyped)(y,e)}let w=/^receive\(\) external payable$/;function E(e){return w.test(e)}let x=new Set(["memory","indexed","storage","calldata"]),$=new Set(["indexed"]),A=new Set(["calldata","memory","storage"]);e.s(["eventModifiers",0,$,"execConstructorSignature",0,m,"execErrorSignature",0,i,"execEventSignature",0,o,"execFallbackSignature",0,v,"execFunctionSignature",0,l,"execStructSignature",0,b,"functionModifiers",0,A,"isConstructorSignature",0,h,"isErrorSignature",0,n,"isEventSignature",0,s,"isFallbackSignature",0,g,"isFunctionSignature",0,u,"isReceiveSignature",0,E,"isStructSignature",0,d,"modifiers",0,x],36530);
vendor: 11,244 bytes, line 27
27class B extends Error{constructor(e,t={}){const r=t.cause instanceof B?t.cause.details:t.cause?.message?t.cause.message:t.details,n=t.cause instanceof B&&t.cause.docsPath||t.docsPath;super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...n?[`Docs: https://abitype.dev${n}`]:[],...r?[`Details: ${r}`]:[],"Version: [email protected]"].join("\n")),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"}),t.cause&&(this.cause=t.cause),this.details=r,this.docsPath=n,this.metaMessages=t.metaMessages,this.shortMessage=e}}class P extends B{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" 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"})}}class I extends B{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}e.s(["InvalidAbiItemError",0,class extends B{constructor({signature:e}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}},"UnknownSolidityTypeError",0,I,"UnknownTypeError",0,P],85210);class T extends B{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class z extends B{constructor({param:e,name:t}){super("Invalid ABI parameter.",{details:e,metaMessages:[`"${t}" 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"})}}class S extends B{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class M extends B{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${r}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class O extends B{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}e.s(["InvalidAbiParametersError",0,class extends B{constructor({params:e}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}},"InvalidAbiTypeParameterError",0,O,"InvalidFunctionModifierError",0,M,"InvalidModifierError",0,S,"InvalidParameterError",0,T,"SolidityProtectedKeywordError",0,z],86994);class F extends B{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class N extends B{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class C extends B{constructor({signature:e}){super("Invalid struct signature.",{details:e,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}class R extends B{constructor({type:e}){super("Circular reference detected.",{metaMessages:[`Struct "${e}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}class j extends B{constructor({current:e,depth:t}){super("Unbalanced parentheses.",{metaMessages:[`"${e.trim()}" has too many ${t>0?"opening":"closing"} parentheses.`],details:`Depth "${t}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}let k=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}]]);function H(e,t={}){if(u(e))return function(e,t={}){let r=l(e);if(!r)throw new F({signature:e,type:"function"});let n=_(r.parameters),i=[],a=n.length;for(let e=0;e<a;e++)i.push(G(n[e],{modifiers:A,structs:t,type:"function"}));let s=[];if(r.returns){let e=_(r.returns),n=e.length;for(let r=0;r<n;r++)s.push(G(e[r],{modifiers:A,structs:t,type:"function"}))}return{name:r.name,type:"function",stateMutability:r.stateMutability??"nonpayable",inputs:i,outputs:s}}(e,t);if(s(e))return function(e,t={}){let r=o(e);if(!r)throw new F({signature:e,type:"event"});let n=_(r.parameters),i=[],a=n.length;for(let e=0;e<a;e++)i.push(G(n[e],{modifiers:$,structs:t,type:"event"}));return{name:r.name,type:"event",inputs:i}}(e,t);if(n(e))return function(e,t={}){let r=i(e);if(!r)throw new F({signature:e,type:"error"});let n=_(r.parameters),a=[],s=n.length;for(let e=0;e<s;e++)a.push(G(n[e],{structs:t,type:"error"}));return{name:r.name,type:"error",inputs:a}}(e,t);if(h(e))return function(e,t={}){let r=m(e);if(!r)throw new F({signature:e,type:"constructor"});let n=_(r.parameters),i=[],a=n.length;for(let e=0;e<a;e++)i.push(G(n[e],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:r.stateMutability??"nonpayable",inputs:i}}(e,t);if(g(e)){var r=e;let t=v(r);if(!t)throw new F({signature:r,type:"fallback"});return{type:"fallback",stateMutability:t.stateMutability??"nonpayable"}}if(E(e))return{type:"receive",stateMutability:"payable"};throw new N({signature:e})}let D=/^(?<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$_]*))?$/,L=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,U=/^u?int$/;function G(e,r){var n,i;let a,s=function(e,t,r){let n="";if(r)for(let e of Object.entries(r)){if(!e)continue;let t="";for(let r of e[1])t+=`[${r.type}${r.name?`:${r.name}`:""}]`;n+=`(${e[0]}{${t}})`}return t?`${t}:${e}${n}`:`${e}${n}`}(e,r?.type,r?.structs);if(k.has(s))return k.get(s);let o=t.isTupleRegex.test(e),c=(0,t.execTyped)(o?L:D,e);if(!c)throw new T({param:e});if(c.name&&("address"===(n=c.name)||"bool"===n||"function"===n||"string"===n||"tuple"===n||t.bytesRegex.test(n)||t.integerRegex.test(n)||q.test(n)))throw new z({param:e,name:c.name});let u=c.name?{name:c.name}:{},l="indexed"===c.modifier?{indexed:!0}:{},f=r?.structs??{},d={};if(o){a="tuple";let e=_(c.type),t=[],r=e.length;for(let n=0;n<r;n++)t.push(G(e[n],{structs:f}));d={components:t}}else if(c.type in f)a="tuple",d={components:f[c.type]};else if(U.test(c.type))a=`${c.type}256`;else if("address payable"===c.type)a="address";else if(a=c.type,r?.type!=="struct"&&!V(a))throw new I({type:a});if(c.modifier){if(!r?.modifiers?.has?.(c.modifier))throw new S({param:e,type:r?.type,modifier:c.modifier});if(A.has(c.modifier)&&(i=a,!c.array&&"bytes"!==i&&"string"!==i&&"tuple"!==i))throw new M({param:e,type:r?.type,modifier:c.modifier})}let b={type:`${a}${c.array??""}`,...u,...l,...d};return k.set(s,b),b}function _(e,t=[],r="",n=0){let i=e.trim().length;for(let a=0;a<i;a++){let i=e[a],s=e.slice(a+1);switch(i){case",":return 0===n?_(s,[...t,r.trim()]):_(s,t,`${r}${i}`,n);case"(":return _(s,t,`${r}${i}`,n+1);case")":return _(s,t,`${r}${i}`,n-1);default:return _(s,t,`${r}${i}`,n)}}if(""===r)return t;if(0!==n)throw new j({current:r,depth:n});return t.push(r.trim()),t}function V(e){return"address"===e||"bool"===e||"function"===e||"string"===e||t.bytesRegex.test(e)||t.integerRegex.test(e)}let q=/^(?: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 W(e){let r={},n=e.length;for(let t=0;t<n;t++){let n=e[t];if(!d(n))continue;let i=b(n);if(!i)throw new F({signature:n,type:"struct"});let a=i.properties.split(";"),s=[],o=a.length;for(let e=0;e<o;e++){let t=a[e].trim();if(!t)continue;let r=G(t,{type:"struct"});s.push(r)}if(!s.length)throw new C({signature:n});r[i.name]=s}let i={},a=Object.entries(r),s=a.length;for(let e=0;e<s;e++){let[n,s]=a[e];i[n]=function e(r=[],n={},i=new Set){let a=[],s=r.length;for(let o=0;o<s;o++){let s=r[o];if(t.isTupleRegex.test(s.type))a.push(s);else{let r=(0,t.execTyped)(Z,s.type);if(!r?.type)throw new O({abiParameter:s}
27);let{array:o,type:c}=r;if(c in n){if(i.has(c))throw new R({type:c});a.push({...s,type:`tuple${o??""}`,components:e(n[c],n,new Set([...i,c]))})}else if(V(c))a.push(s);else throw new P({type:c})}}return a}(s,r)}return i}e.s(["isSolidityType",0,V,"parseAbiParameter",0,G,"parseSignature",0,H,"splitParameters",0,_],63841);let Z=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;function X(){return"0.1.1"}e.s(["parseStructs",0,W],69487),e.s(["parseAbi",0,function(e){let t=W(e),r=[],n=e.length;for(let i=0;i<n;i++){let n=e[i];d(n)||r.push(H(n,t))}return r}],36006),e.s(["IntegerOutOfRangeError",()=>ev,"InvalidLengthError",()=>ex,"SizeExceedsPaddingSizeError",()=>eB,"SizeOverflowError",()=>e$,"SliceOffsetOutOfBoundsError",()=>eA,"concat",()=>ea,"from",()=>es,"fromBoolean",()=>eo,"fromBytes",()=>ec,"fromNumber",()=>eu,"fromString",()=>el,"padLeft",()=>ef,"padRight",()=>ed,"size",()=>ep,"slice",()=>eb,"toBigInt",()=>em,"toNumber",()=>ey,"trimLeft",()=>eh,"validate",()=>eg],80143),e.s(["getVersion",0,X,"prettyPrint",0,function(e){if(!e)return"";let t=Object.entries(e).map(([e,t])=>void 0===t||!1===t?null:[e,t]).filter(Boolean),r=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>`  ${`${e}:`.padEnd(r+1)}  ${t}`).join("\n")}],43582);class J extends Error{static setStaticOptions(e){J.prototype.docsOrigin=e.docsOrigin,J.prototype.showVersion=e.showVersion,J.prototype.version=e.version}constructor(e,t={}){const r=(()=>{if(t.cause instanceof J){if(t.cause.details)return t.cause.details;if(t.cause.shortMessage)return t.cause.shortMessage}return t.cause&&"details"in t.cause&&"string"==typeof t.cause.details?t.cause.details:t.cause?.message?t.cause.message:t.details})(),n=t.cause instanceof J&&t.cause.docsPath||t.docsPath,i=t.docsOrigin??J.prototype.docsOrigin,a=`${i}${n??""}`,s=!!(t.version??J.prototype.showVersion),o=t.version??J.prototype.version;super([e||"An error occurred.",...t.metaMessages?["",...t.metaMessages]:[],...r||n||s?["",r?`Details: ${r}`:void 0,n?`See: ${a}`:void 0,s?`Version: ${o}`:void 0]:[]].filter(e=>"string"==typeof e).join("\n"),t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsOrigin",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"showVersion",{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,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.cause=t.cause,this.details=r,this.docs=a,this.docsOrigin=i,this.docsPath=n,this.shortMessage=e,this.showVersion=s,this.version=o}walk(e){return function e(t,r){return r?.(t)?t:t&&"object"==typeof t&&"cause"in t&&t.cause?e(t.cause,r):r?null:t}(this,e)}}function Y(e,t){if(ep(e)>t)throw new e$({givenSize:ep(e),maxSize:t})}function K(e,t){if("number"==typeof t&&t>0&&t>ep(e)-1)throw new eA({offset:t,position:"start",size:ep(e)})}function Q(e,t,r){if("number"==typeof t&&"number"==typeof r&&ep(e)!==r-t)throw new eA({offset:r,position:"end",size:ep(e)})}function ee(e,t={}){let{dir:r,size:n=32}=t;if(0===n)return e;let i=e.replace("0x","");if(i.length>2*n)throw new eB({size:Math.ceil(i.length/2),targetSize:n,type:"Hex"});return`0x${i["right"===r?"padEnd":"padStart"](2*n,"0")}`}function et(e,t={}){let{dir:r="left"}=t,n=e.replace("0x",""),i=0;for(let e=0;e<n.length-1;e++)if("0"===n["left"===r?e:n.length-e-1].toString())i++;else break;return"0"===(n="left"===r?n.slice(i):n.slice(0,n.length-i))?"0x":"right"===r&&n.length%2==1?`0x${n}0`:`0x${n}`}function er(e,t,r){return JSON.stringify(e,(e,r)=>"function"==typeof t?t(e,r):"bigint"==typeof r?r.toString()+"#__bigint":r,r)}Object.defineProperty(J,"defaultStaticOptions",{enumerable:!0,configurable:!0,writable:!0,value:{docsOrigin:"https://oxlib.sh",showVersion:!1,version:`ox@${X()}`}}),J.setStaticOptions(J.defaultStaticOptions),e.s(["BaseError",0,J],13632),e.s(["assertEndOffset",()=>Q,"assertSize",()=>Y,"assertStartOffset",()=>K,"pad",()=>ee,"trim",()=>et],7078),e.s(["stringify",0,er],99249);let en=new TextEncoder,ei=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function ea(...e){return`0x${e.reduce((e,t)=>
27e+t.replace("0x",""),"")}`}function es(e){return e instanceof Uint8Array?ec(e):Array.isArray(e)?ec(new Uint8Array(e)):e}function eo(e,t={}){let r=`0x${Number(e)}`;return"number"==typeof t.size?(Y(r,t.size),ef(r,t.size)):r}function ec(e,t={}){let r="";for(let t=0;t<e.length;t++)r+=ei[e[t]];let n=`0x${r}`;return"number"==typeof t.size?(Y(n,t.size),ed(n,t.size)):n}function eu(e,t={}){let r,{signed:n,size:i}=t,a=BigInt(e);i?r=n?(1n<<8n*BigInt(i)-1n)-1n:2n**(8n*BigInt(i))-1n:"number"==typeof e&&(r=BigInt(Number.MAX_SAFE_INTEGER));let s="bigint"==typeof r&&n?-r-1n:0;if(r&&a>r||a<s){let t="bigint"==typeof e?"n":"";throw new ev({max:r?`${r}${t}`:void 0,min:`${s}${t}`,signed:n,size:i,value:`${e}${t}`})}let o=(n&&a<0?BigInt.asUintN(8*i,BigInt(a)):a).toString(16),c=`0x${o}`;return i?ef(c,i):c}function el(e,t={}){return ec(en.encode(e),t)}function ef(e,t){return ee(e,{dir:"left",size:t})}function ed(e,t){return ee(e,{dir:"right",size:t})}function eb(e,t,r,n={}){let{strict:i}=n;K(e,t);let a=`0x${e.replace("0x","").slice((t??0)*2,(r??e.length)*2)}`;return i&&Q(a,t,r),a}function ep(e){return Math.ceil((e.length-2)/2)}function eh(e){return et(e,{dir:"left"})}function em(e,t={}){let{signed:r}=t;t.size&&Y(e,t.size);let n=BigInt(e);if(!r)return n;let i=(1n<<8n*BigInt((e.length-2)/2))-1n;return n<=i>>1n?n:n-i-1n}function ey(e,t={}){let{signed:r,size:n}=t;return r||n?Number(em(e,t)):Number(e)}function eg(e,t={}){let{strict:r=!1}=t;try{return!function(e,t={}){let{strict:r=!1}=t;if(!e||"string"!=typeof e)throw new ew(e);if(r&&!/^0x[0-9a-fA-F]*$/.test(e)||!e.startsWith("0x"))throw new eE(e)}(e,{strict:r}),!0}catch{return!1}}class ev extends J{constructor({max:e,min:t,signed:r,size:n,value:i}){super(`Number \`${i}\` is not in safe${n?` ${8*n}-bit`:""}${r?" signed":" unsigned"} integer range ${e?`(\`${t}\` to \`${e}\`)`:`(above \`${t}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}}class ew extends J{constructor(e){super(`Value \`${"object"==typeof e?er(e):e}\` of type \`${typeof e}\` is an invalid hex type.`,{metaMessages:['Hex types must be represented as `"0x${string}"`.']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexTypeError"})}}class eE extends J{constructor(e){super(`Value \`${e}\` is an invalid hex value.`,{metaMessages:['Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexValueError"})}}class ex extends J{constructor(e){super(`Hex value \`"${e}"\` is an odd length (${e.length-2} nibbles).`,{metaMessages:["It must be an even length."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidLengthError"})}}class e$ extends J{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed \`${t}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}}class eA extends J{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset \`${e}\` is out-of-bounds (size: \`${r}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SliceOffsetOutOfBoundsError"})}}class eB extends J{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}}function eP(e){return{address:e.address,amount:eu(e.amount),index:eu(e.index),validatorIndex:eu(e.validatorIndex)}}e.s(["toRpc",0,function(e){return{..."bigint"==typeof e.baseFeePerGas&&{baseFeePerGas:eu(e.baseFeePerGas)},..."bigint"==typeof e.blobBaseFee&&{blobBaseFee:eu(e.blobBaseFee)},..."string"==typeof e.feeRecipient&&{feeRecipient:e.feeRecipient},..."bigint"==typeof e.gasLimit&&{gasLimit:eu(e.gasLimit)},..."bigint"==typeof e.number&&{number:eu(e.number)},..."bigint"==typeof e.prevRandao&&{prevRandao:eu(e.prevRandao)},..."bigint"==typeof e.time&&{time:eu(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(eP)}}}],34983)},58172,89042,e=>{"use strict";e.s(["aggregate3Signature",0,"0x82ad56cb"],58172),e.s(["deploylessCallViaBytecodeBytecode",0,"0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b
27602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe","deploylessCallViaFactoryBytecode",0,"0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe","erc6492SignatureValidatorByteCode",0,"0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848
27603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572","multicall3Bytecode",0,"0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9
27150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033"],89042)},5587,e=>{"use strict";var t=e.i(66958),r=e.i(98054),n=e.i(62172);let i="/docs/contract/encodeDeployData";e.s(["encodeDeployData",0,function(e){let{abi:a,args:s,bytecode:o}=e;
27if(!s||0===s.length)return o;let c=a.find(e=>"type"in e&&"constructor"===e.type);if(!c)throw new t.AbiConstructorNotFoundError({docsPath:i});if(!("inputs"in c)||!c.inputs||0===c.inputs.length)throw new t.AbiConstructorParamsNotFoundError({docsPath:i});let u=(0,n.encodeAbiParameters)(c.inputs,s);return(0,r.concatHex)([o,u])}])},27827,42089,e=>{"use strict";var t=e.i(33737),r=e.i(45232);e.s(["isAddressEqual",0,function(e,n){if(!(0,r.isAddress)(e,{strict:!1}))throw new t.InvalidAddressError({address:e});if(!(0,r.isAddress)(n,{strict:!1}))throw new t.InvalidAddressError({address:n});return e.toLowerCase()===n.toLowerCase()}],27827);var n=e.i(76508),i=e.i(38828);e.s(["formatBlockParameter",0,function(e){let{blockHash:t,blockNumber:r,blockTag:a,requireCanonical:s}=e;if(void 0!==s&&!t)throw new n.BaseError("`requireCanonical` can only be provided when `blockHash` is set.");return t?s?{blockHash:t,requireCanonical:s}:{blockHash:t}:"bigint"==typeof r?(0,i.numberToHex)(r):a??"latest"}],42089)},24561,87872,25146,75490,38556,25959,37470,30699,80727,97255,36802,e=>{"use strict";var t=e.i(36006),r=e.i(34983),n=e.i(26363),i=e.i(92365),a=e.i(58172),s=e.i(89042),o=e.i(76508),c=e.i(47134),u=e.i(89749),l=e.i(41903),f=e.i(76013),d=e.i(5587),b=e.i(74887),p=e.i(27827),h=e.i(42089),m=e.i(44497),y=e.i(21791),g=o;class v extends g.BaseError{constructor({cause:e,message:t}={}){const r=t?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${r?`with reason: ${r}`:"for an unknown reason"}.`,{cause:e,name:"ExecutionRevertedError"})}}Object.defineProperty(v,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(v,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted|gas required exceeds allowance/});class w extends g.BaseError{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,y.formatGwei)(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e,name:"FeeCapTooHighError"})}}Object.defineProperty(w,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class E extends g.BaseError{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,y.formatGwei)(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e,name:"FeeCapTooLowError"})}}Object.defineProperty(E,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class x extends g.BaseError{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e,name:"NonceTooHighError"})}}Object.defineProperty(x,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class $ extends g.BaseError{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account.
28Try increasing the nonce or find the latest nonce with \`getTransactionCount\`.`,{cause:e,name:"NonceTooLowError"})}}Object.defineProperty($,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class A extends g.BaseError{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e,name:"NonceMaxValueError"})}}Object.defineProperty(A,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class B extends g.BaseError{constructor({cause:e}={}){super("The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.",{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}Object.defineProperty(B,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class P extends g.BaseError{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(P,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class I extends g.BaseError{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(I,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class T extends g.BaseError{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(T,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class z extends g.BaseError{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:r}={}){super(`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${(0,y.formatGwei)(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r?` = ${(0,y.formatGwei)(r)} gwei`:""}).`,{cause:e,name:"TipAboveFeeCapError"})}}
28Object.defineProperty(z,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class S extends g.BaseError{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e,name:"UnknownNodeError"})}}function M(e,t){let r=(e.details||"").toLowerCase(),n=e instanceof o.BaseError?e.walk(e=>e?.code===v.code):e;return n instanceof o.BaseError?new v({cause:e,message:n.details}):v.nodeMessage.test(r)?new v({cause:e,message:e.details}):w.nodeMessage.test(r)?new w({cause:e,maxFeePerGas:t?.maxFeePerGas}):E.nodeMessage.test(r)?new E({cause:e,maxFeePerGas:t?.maxFeePerGas}):x.nodeMessage.test(r)?new x({cause:e,nonce:t?.nonce}):$.nodeMessage.test(r)?new $({cause:e,nonce:t?.nonce}):A.nodeMessage.test(r)?new A({cause:e,nonce:t?.nonce}):B.nodeMessage.test(r)?new B({cause:e}):P.nodeMessage.test(r)?new P({cause:e,gas:t?.gas}):I.nodeMessage.test(r)?new I({cause:e,gas:t?.gas}):T.nodeMessage.test(r)?new T({cause:e}):z.nodeMessage.test(r)?new z({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas}):new S({cause:e})}function O(e,{docsPath:t,...r}){let n,i=(n=M(e,r))instanceof S?e:n;return new u.CallExecutionError(i,{docsPath:t,...r})}function F(e,{format:t}){if(!t)return{};let r={};return!function t(n){for(let i of Object.keys(n))i in e&&(r[i]=e[i]),n[i]&&"object"==typeof n[i]&&!Array.isArray(n[i])&&t(n[i])}(t(e||{})),r}e.s(["ExecutionRevertedError",0,v,"FeeCapTooHighError",0,w,"FeeCapTooLowError",0,E,"InsufficientFundsError",0,B,"IntrinsicGasTooHighError",0,P,"IntrinsicGasTooLowError",0,I,"NonceMaxValueError",0,A,"NonceTooHighError",0,x,"NonceTooLowError",0,$,"TipAboveFeeCapError",0,z,"TransactionTypeNotSupportedError",0,T,"UnknownNodeError",0,S],87872),e.s(["getNodeError",0,M],25146),e.s(["getCallError",0,O],75490),e.s(["extract",0,F],38556);var N=e.i(38828);e.s(["defineFormatter",0,function(e,t){return({exclude:r,format:n})=>({exclude:r,format:(e,i)=>{let a=t(e,i);if(r)for(let e of r)delete a[e];return{...a,...n(e,i)}},type:e})}],25959);let C={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function R(e,t){let r={};return void 0!==e.authorizationList&&(r.authorizationList=e.authorizationList.map(e=>({address:e.address,r:e.r?(0,N.numberToHex)(BigInt(e.r)):e.r,s:e.s?(0,N.numberToHex)(BigInt(e.s)):e.s,chainId:(0,N.numberToHex)(e.chainId),nonce:(0,N.numberToHex)(e.nonce),...void 0!==e.yParity?{yParity:(0,N.numberToHex)(e.yParity)}:{},...void 0!==e.v&&void 0===e.yParity?{v:(0,N.numberToHex)(e.v)}:{}}))),void 0!==e.accessList&&(r.accessList=e.accessList),void 0!==e.blobVersionedHashes&&(r.blobVersionedHashes=e.blobVersionedHashes),void 0!==e.blobs&&("string"!=typeof e.blobs[0]?r.blobs=e.blobs.map(e=>(0,N.bytesToHex)(e)):r.blobs=e.blobs),void 0!==e.data&&(r.data=e.data),e.account&&(r.from=e.account.address),void 0!==e.from&&(r.from=e.from),void 0!==e.gas&&(r.gas=(0,N.numberToHex)(e.gas)),void 0!==e.gasPrice&&(r.gasPrice=(0,N.numberToHex)(e.gasPrice)),void 0!==e.maxFeePerBlobGas&&(r.maxFeePerBlobGas=(0,N.numberToHex)(e.maxFeePerBlobGas)),void 0!==e.maxFeePerGas&&(r.maxFeePerGas=(0,N.numberToHex)(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=(0,N.numberToHex)(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(r.nonce=(0,N.numberToHex)(e.nonce)),void 0!==e.to&&(r.to=e.to),void 0!==e.type&&(r.type=C[e.type]),void 0!==e.value&&(r.value=(0,N.numberToHex)(e.value)),r}function j(){let e=()=>void 0,t=()=>void 0;return{promise:new Promise((r,n)=>{e=r,t=n}),resolve:e,reject:t}}e.s(["formatTransactionRequest",0,R],37470),e.s(["withResolvers",0,j],30699);let k=new Map;function H({fn:e,id:t,shouldSplitBatch:r,wait:n=0,sort:i}){let a=async()=>
28{let t=o();s();let r=t.map(({args:e})=>e);0!==r.length&&e(r).then(e=>{i&&Array.isArray(e)&&e.sort(i);for(let r=0;r<t.length;r++){let{resolve:n}=t[r];n?.([e[r],e])}}).catch(e=>{for(let r=0;r<t.length;r++){let{reject:n}=t[r];n?.(e)}})},s=()=>k.delete(t),o=()=>k.get(t)||[],c=e=>k.set(t,[...o(),e]);return{flush:s,async schedule(e){let{promise:t,resolve:i,reject:s}=j();return(r?.([...o().map(({args:e})=>e),e])&&a(),o().length>0)?c({args:e,resolve:i,reject:s}):(c({args:e,resolve:i,reject:s}),setTimeout(a,n)),t}}}e.s(["createBatchScheduler",0,H],80727);var D=e.i(33737),L=e.i(26667),U=e.i(324),G=e.i(45232);function _(e){if(e&&0!==e.length)return e.reduce((e,{slot:t,value:r})=>{if(66!==t.length)throw new L.InvalidBytesLengthError({size:t.length,targetSize:66,type:"hex"});if(66!==r.length)throw new L.InvalidBytesLengthError({size:r.length,targetSize:66,type:"hex"});return e[t]=r,e},{})}function V(e){if(!e)return;let t={};for(let{address:r,...n}of e){if(!(0,G.isAddress)(r,{strict:!1}))throw new D.InvalidAddressError({address:r});if(t[r])throw new U.AccountStateConflictError({address:r});t[r]=function(e){let{balance:t,nonce:r,state:n,stateDiff:i,code:a}=e,s={};if(void 0!==a&&(s.code=a),void 0!==t&&(s.balance=(0,N.numberToHex)(t)),void 0!==r&&(s.nonce=(0,N.numberToHex)(r)),void 0!==n&&(s.state=_(n)),void 0!==i){if(s.state)throw new U.StateAssignmentConflictError;s.stateDiff=_(i)}return s}(n)}return t}e.s(["serializeStateOverride",0,V],97255);let q=2n**256n-1n;function W(e){let{account:t,maxFeePerGas:r,maxPriorityFeePerGas:i,to:a}=e,s=t?(0,n.parseAccount)(t):void 0;if(s&&!(0,G.isAddress)(s.address))throw new D.InvalidAddressError({address:s.address});if(a&&!(0,G.isAddress)(a))throw new D.InvalidAddressError({address:a});if(r&&r>q)throw new w({maxFeePerGas:r});if(i&&r&&i>r)throw new z({maxFeePerGas:r,maxPriorityFeePerGas:i})}async function Z(i,f){let{account:b=i.account,authorizationList:m,batch:y=!!i.batch?.multicall,blockHash:g,blockNumber:v,blockTag:w=i.experimental_blockTag??"latest",requireCanonical:E,accessList:x,blobs:$,blockOverrides:A,code:B,data:P,factory:I,factoryData:T,gas:z,gasPrice:S,maxFeePerBlobGas:M,maxFeePerGas:N,maxPriorityFeePerGas:C,nonce:j,requestOptions:k,to:H,value:D,stateOverride:L,...U}=f,G=b?(0,n.parseAccount)(b):void 0;if(B&&(I||T))throw new o.BaseError("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(B&&H)throw new o.BaseError("Cannot provide both `code` & `to` as parameters.");let _=B&&P,q=I&&T&&H&&P,Z=_||q,X=_?Q({code:B,data:P}):q?function(e){let{data:r,factory:n,factoryData:i,to:a}=e;return(0,d.encodeDeployData)({abi:(0,t.parseAbi)(["constructor(address, bytes, address, bytes)"]),bytecode:s.deploylessCallViaFactoryBytecode,args:[a,r,n,i]})}({data:P,factory:I,factoryData:T,to:H}):P;try{let e;W(f);let t=(0,h.formatBlockParameter)({blockHash:g,blockNumber:v,blockTag:w,requireCanonical:E}),n=A?r.toRpc(A):void 0,s=V(L),o=i.chain?.formatters?.transactionRequest?.format,u=(o||R)({...F(U,{format:o}),accessList:x,account:G,authorizationList:m,blobs:$,data:X,gas:z,gasPrice:S,maxFeePerBlobGas:M,maxFeePerGas:N,maxPriorityFeePerGas:C,nonce:j,to:Z?void 0:H,value:D},"call");if(y&&function({request:e}){let{data:t,to:r,...n}=e;return!(!t||t.startsWith(a.aggregate3Signature))&&!!r&&!(Object.values(n).filter(e=>void 0!==e).length>0)}({request:u})&&!n&&void 0===g)try{var J,ee;let{deployless:e=!1}="object"==typeof i.batch?.multicall?i.batch.multicall:{},t=K(i,{blockNumber:v,deployless:e});if(!t||(J=s,ee=t,!(J&&Object.keys(J).some(e=>(0,p.isAddressEqual)(e,ee)))))return await Y(i,{...u,blockHash:g,blockNumber:v,blockTag:w,multicallAddress:t,requestOptions:k,requireCanonical:E,rpcStateOverride:s})}catch(e){if(!(e instanceof c.ClientChainNotConfiguredError)&&!(e instanceof c.ChainDoesNotSupportContract))throw e}let l=(e=[u,t],s&&n?[...e,s,n]:s?[...e,s]:n?[...e,{},n]:e),d=await i.request({method:"eth_call",params:l},k);if("0x"===d)return{data:void 0};return{data:d}}catch(a){if(k?.signal?.aborted)throw(0,l.getAbortError)(k.signal);if((0,l.isAbortError)(a))throw a;let t=function(e){if(!(e instanceof o.BaseError))return;let t=e.walk();return"object"==typeof t?.data?t.data?.data:t.data}(a),{offchainLookup:r,offchainLookupSignature:n}=await e.A(41995);if(!1!==i.ccipRead&&t?.slice(0,10)===n&&H)return{data:await r(i,{data:t,requestOptions:k,to:H})};if(Z&&t?.slice(0,10)==="0x101bb98d")throw new u.CounterfactualDeploymentFailedError({factory:I});throw O(a,{...f,account:G,chain:i.chain})}}e.s(["assertRequest",0,W],36802);let X=0,J=new WeakMap;async function Y(e,t){let{batchSize:r=1024,deployless:n=!1,wait:a=0}="object"==typeof e.batch?.multicall?e.batch.multicall:{},{blockHash:o,blockNumber:c,blockTag:l=e.experimental_blockTag??"latest",requireCanonical:d,data:p,multicallAddress:m,requestOptions:y,rpcStateOverride:g,to:v}=t,w=void 0!==m?m:K(e,{blockNumber:c,deployless:n}),E=(0,h.formatBlockParameter)({blockHash:o,blockNumber:c,blockTag:l,requireCanonical:d}),x="string"==typeof E?E:JSON.stringify(E),$=g?`.${JSON.stringify(g)}`:"",{schedule:A}=H({id:`${e.uid}.${x}.${function(e){if(!e)return"default";let t=J.get(e);if(void 0!==t)return t;let r=X++;return J.set(e,r),r}(y)}${$}`,wait:a,shouldSplitBatch:e=>e.reduce((e,{data:t})=>e+(t.length-2),0)>2*r,fn:async t=>{let r=t.map(e=>
28({allowFailure:!0,callData:e.data,target:e.to})),n=(0,b.encodeFunctionData)({abi:i.multicall3Abi,args:[r],functionName:"aggregate3"}),a={...null===w?{data:Q({code:s.multicall3Bytecode,data:n})}:{to:w,data:n}},o=await e.request({method:"eth_call",params:g?[a,E,g]:[a,E]},y);return(0,f.decodeFunctionResult)({abi:i.multicall3Abi,args:[r],functionName:"aggregate3",data:o||"0x"})}}),[{returnData:B,success:P}]=await A({data:p,to:v});if(!P)throw new u.RawContractError({data:B});return"0x"===B?{data:void 0}:{data:B}}function K(e,t){let{blockNumber:r,deployless:n}=t;if(n)return null;if(e.chain)return(0,m.getChainContractAddress)({blockNumber:r,chain:e.chain,contract:"multicall3"});throw new c.ClientChainNotConfiguredError}function Q(e){let{code:r,data:n}=e;return(0,d.encodeDeployData)({abi:(0,t.parseAbi)(["constructor(bytes, bytes)"]),bytecode:s.deploylessCallViaBytecodeBytecode,args:[r,n]})}e.s(["call",0,Z],24561)}]);

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.