1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="1ed9de28-83cb-41a8-af19-66f41a48e99c",e._sentryDebugIdIdentifier="sentry-dbid-1ed9de28-83cb-41a8-af19-66f41a48e99c")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2212],{1208:(e,t,n)=>{n.d(t,{c:()=>u});var i=n(3773);let r=2n**256n-1n;var s=n(78568),o=n(60764),a=n(1260),c=n(10461);function u(e){let{account:t,gasPrice:n,maxFeePerGas:u,maxPriorityFeePerGas:l,to:d}=e,h=t?(0,i.J)(t):void 0;if(h&&!(0,c.P)(h.address))throw new s.M({address:h.address});if(d&&!(0,c.P)(d))throw new s.M({address:d});if(void 0!==n&&(void 0!==u||void 0!==l))throw new a.n3;if(u&&u>r)throw new o.BG({maxFeePerGas:u});if(l&&u&&l>u)throw new o.lN({maxFeePerGas:u,maxPriorityFeePerGas:l})}},1260:(e,t,n)=>{n.d(t,{$s:()=>u,Kc:()=>d,Kz:()=>l,Vg:()=>c,WA:()=>h,aO:()=>o,n3:()=>a});var i=n(33030),r=n(52350),s=n(39827);function o(e){let t=Object.entries(e).map(([e,t])=>void 0===t||!1===t?null:[e,t]).filter(Boolean),n=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>` ${`${e}:`.padEnd(n+1)} ${t}`).join("\n")}class a extends s.C{constructor(){super("Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.\nUse `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others.",{name:"FeeConflictError"})}}s.C;class c extends s.C{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",o(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"})}}s.C,s.C,s.C;class u extends s.C{constructor(e,{account:t,docsPath:n,chain:s,data:a,gas:c,gasPrice:u,maxFeePerGas:l,maxPriorityFeePerGas:d,nonce:h,to:p,value:f}){super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",o({chain:s&&`${s?.name} (id: ${s?.id})`,from:t?.address,to:p,value:void 0!==f&&`${(0,i.c)(f)} ${s?.nativeCurrency?.symbol||"ETH"}`,data:a,gas:c,gasPrice:void 0!==u&&`${(0,r.Q)(u)} gwei`,maxFeePerGas:void 0!==l&&`${(0,r.Q)(l)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,r.Q)(d)} gwei`,nonce:h})].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class l extends s.C{constructor({blockHash:e,blockNumber:t,blockTag:n,hash:i,index:r}){let s="Transaction";n&&void 0!==r&&(s=`Transaction at block time "${n}" at index "${r}"`),e&&void 0!==r&&(s=`Transaction at block hash "${e}" at index "${r}"`),t&&void 0!==r&&(s=`Transaction at block number "${t}" at index "${r}"`),i&&(s=`Transaction with hash "${i}"`),super(`${s} could not be found.`,{name:"TransactionNotFoundError"})}}class d extends s.C{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 h extends s.C{constructor({hash:e}){super(`Timed out while waiting for transaction with hash "${e}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}},2835:(e,t,n)=>{n.d(t,{Bv:()=>s});var i=n(63502);let r={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function s(e){let t={};return void 0!==e.authorizationList&&(t.authorizationList=e.authorizationList.map(e=>({address:e.address,r:e.r?(0,i.cK)(BigInt(e.r)):e.r,s:e.s?(0,i.cK)(BigInt(e.s)):e.s,chainId:(0,i.cK)(e.chainId),nonce:(0,i.cK)(e.nonce),...void 0!==e.yParity?{yParity:(0,i.cK)(e.yParity)}:{},...void 0!==e.v&&void 0===e.yParity?{v:(0,i.cK)(e.v)}:{}}))),void 0!==e.accessList&&(t.accessList=e.accessList),void 0!==e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes),void 0!==e.blobs&&("string"!=typeof e.blobs[0]?t.blobs=e.blobs.map(e=>(0,i.My)(e)):t.blobs=e.blobs),void 0!==e.data&&(t.data=e.data),void 0!==e.from&&(t.from=e.from),void 0!==e.gas&&(t.gas=(0,i.cK)(e.gas)),void 0!==e.gasPrice&&(t.gasPrice=(0,i.cK)(e.gasPrice)),void 0!==e.maxFeePerBlobGas&&(t.maxFeePerBlobGas=(0,i.cK)(e.maxFeePerBlobGas)),void 0!==e.maxFeePerGas&&(t.maxFeePerGas=(0,i.cK)(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=(0,i.cK)(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(t.nonce=(0,i.cK)(e.nonce)),void 0!==e.to&&(t.to=e.to),void 0!==e.type&&(t.type=r[e.type]),void 0!==e.value&&(t.value=(0,i.cK)(e.value)),t}},5320:(e,t,n)=>{n.d(t,{RR:()=>a,pw:()=>o,sM:()=>s});var i=n(52350),r=n(39827);class s extends r.C{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class o extends r.C{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class a extends r.C{constructor({maxPriorityFeePerGas:e}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${(0,i.Q)(e)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}},5875:(e,t,n)=>{n.d(t,{g:()=>o});var i=n(35925),r=n(63502),s=n(19499);async function o(e,{blockHash:t,blockNumber:n,blockTag:a=e.experimental_blockTag??"latest",includeTransactions:c}={}){let u=c??!1,l=void 0!==n?(0,r.cK)(n):void 0,d=null;if(!(d=t?await e.request({method:"eth_getBlockByHash",params:[t,u]},{dedupe:!0}):await e.request({method:"eth_getBlockByNumber",params:[l||a,u]},{dedupe:!!l})))throw new i.l({blockHash:t,blockNumber:n});return(e.chain?.formatters?.block?.format||s.$)(d)}},6310:(e,t,n)=>{n.d(t,{B:()=>r});var i=n(55072);function r(e){return"function"===e.type?`function ${e.name}(${(0,i.Q)(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${e.outputs?.length?` returns (${(0,i.Q)(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${(0,i.Q)(e.inputs)})`:"error"===e.type?`error ${e.name}(${(0,i.Q)(e.inputs)})`:"constructor"===e.type?`constructor(${(0,i.Q)(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?`fallback() external${"payable"===e.stateMutability?" payable":""}`:"receive() external payable"}}
vendor: 5,336 bytes, lines 1-3
1,10052:(e,t,n)=>{n.d(t,{s:()=>a});var i=n(38744),r=n(36652),s=n(2168),o=n(63502);function a(e,t){let n=(0,i.sc)((0,r.q)(e,{strict:!1})?(0,s.ZJ)(e):e);return"bytes"===(t||"hex")?n:(0,o.nj)(n)}},10660:(e,t,n)=>{n.d(t,{l:()=>s});var i=n(48902);let r={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 i.hX({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new i.SK({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new i.B4({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 i.B4({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 n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+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 n=this.inspectBytes(e);return this.position+=t??e,n},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++}};function s(e,{recursiveReadLimit:t=8192}={}){let n=Object.create(r);return n.bytes=e,n.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}},12454:(e,t,n)=>{n.d(t,{r:()=>r});var i=n(63502);async function r(e,{address:t,blockNumber:n,blockTag:r=e.experimental_blockTag??"latest"}){let s="bigint"==typeof n?(0,i.cK)(n):void 0;return BigInt(await e.request({method:"eth_getBalance",params:[t,s||r]}))}},13982:(e,t,n)=>{n.d(t,{BI:()=>$,EB:()=>P,Iy:()=>c,Iz:()=>v,MR:()=>w,M_:()=>g,Nc:()=>l,O:()=>u,Wl:()=>M,Wq:()=>m,YE:()=>h,YF:()=>a,YW:()=>o,ZP:()=>p,_z:()=>y,d_:()=>A,dm:()=>I,fo:()=>B,gH:()=>d,j:()=>F,kE:()=>b,l3:()=>C,nK:()=>E,nM:()=>x,yy:()=>f});var i=n(60723),r=n(39550),s=n(39827);class o extends s.C{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 s.C{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"})}}s.C;class c extends s.C{constructor({data:e,params:t,size:n}){super(`Data size of ${n} bytes is too small for given parameters.`,{metaMessages:[`Params: (${(0,i.A)(t,{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=t,this.size=n}}class u extends s.C{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}}class l extends s.C{constructor({expectedLength:e,givenLength:t,type:n}){super(`ABI encoding array length mismatch for type ${n}. 2Expected length: ${e} 3Given length: ${t}
3`,{name:"AbiEncodingArrayLengthMismatchError"})}}class d extends s.C{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${(0,r.E)(t)}) does not match expected size (bytes${e}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class h extends s.C{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding params/values length mismatch. 4Expected length (params): ${e} 5Given length (values): ${t}`,{name:"AbiEncodingLengthMismatchError"})}}class p extends s.C{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 f extends s.C{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 m extends s.C{constructor(e,{docsPath:t}){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://openchain.xyz/signatures?query=${e}.`,{docsPath:t,name:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}class y extends s.C{constructor({docsPath:e}){super("Cannot extract event signature from empty topics.",{docsPath:e,name:"AbiEventSignatureEmptyTopicsError"})}}class b extends s.C{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://openchain.xyz/signatures?query=${e}.`,{docsPath:t,name:"AbiEventSignatureNotFoundError"})}}class g extends s.C{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 v extends s.C{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 w extends s.C{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 P extends s.C{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://openchain.xyz/signatures?query=${e}.`,{docsPath:t,name:"AbiFunctionSignatureNotFoundError"})}}class x extends s.C{constructor(e,t){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${e.type}\` in \`${(0,i.B)(e.abiItem)}\`, and`,`\`${t.type}\` in \`${(0,i.B)(t.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}class $ extends s.C{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`,{name:"BytesSizeMismatchError"})}}class B extends s.C{constructor({abiItem:e,data:t,params:n,size:r}){super(`Data size of ${r} bytes is too small for non-indexed event parameters.`,{metaMessages:[`Params: (${(0,i.A)(n,{includeName:!0})})`,`Data: ${t} (${r} 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=t,this.params=n,this.size=r}}class C extends s.C{constructor({abiItem:e,param:t}){super(`Expected a topic for indexed event parameter${t.name?` "${t.name}"`:""} on event "${(0,i.B)(e,{includeName:!0})}".`,{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}class E extends s.C{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid encoding type. 19Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiEncodingType"})}}class F extends s.C{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid decoding type. 20Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiDecodingType"})}}class I extends s.C{constructor(e){super(`Value "${e}" is not a valid array.`,{name:"InvalidArrayError"})}}class A extends s.C{constructor(e){super(`"${e}" is not a valid definition type. 21Valid types: "function", "event", "error"`,{name:"InvalidDefinitionTypeError"})}}class M extends s.C{constructor(e){super(`Type "${e}" is not supported for packed encoding.`,{name:"UnsupportedPackedAbiType"})}}}
21,19499:(e,t,n)=>{n.d(t,{$:()=>r});var i=n(49282);function r(e){let t=(e.transactions??[]).map(e=>"string"==typeof e?e:(0,i.uP)(e));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:t,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}},21563:(e,t,n)=>{n.d(t,{h:()=>i});let i=n(65505).k},22088:(e,t,n)=>{n.d(t,{l:()=>s});var i=n(39827),r=n(60764);function s(e,t){let n=(e.details||"").toLowerCase(),s=e instanceof i.C?e.walk(e=>e?.code===r.A7.code):e;return s instanceof i.C?new r.A7({cause:e,message:s.details}):r.A7.nodeMessage.test(n)?new r.A7({cause:e,message:e.details}):r.BG.nodeMessage.test(n)?new r.BG({cause:e,maxFeePerGas:t?.maxFeePerGas}):r.jj.nodeMessage.test(n)?new r.jj({cause:e,maxFeePerGas:t?.maxFeePerGas}):r.K0.nodeMessage.test(n)?new r.K0({cause:e,nonce:t?.nonce}):r.Oh.nodeMessage.test(n)?new r.Oh({cause:e,nonce:t?.nonce}):r.vW.nodeMessage.test(n)?new r.vW({cause:e,nonce:t?.nonce}):r.k5.nodeMessage.test(n)?new r.k5({cause:e}):r.lY.nodeMessage.test(n)?new r.lY({cause:e,gas:t?.gas}):r.Fo.nodeMessage.test(n)?new r.Fo({cause:e,gas:t?.gas}):r.uC.nodeMessage.test(n)?new r.uC({cause:e}):r.lN.nodeMessage.test(n)?new r.lN({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas}):new r.RM({cause:e})}},32808:(e,t,n)=>{function i(e,t){let n=e.exec(t);return n?.groups}n.d(t,{BD:()=>r,Ge:()=>s,Yv:()=>i,wj:()=>o});let r=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,s=/^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)?$/,o=/^\(.+?\).*?$/},33030:(e,t,n)=>{n.d(t,{c:()=>s});var i=n(68052),r=n(91197);function s(e,t="wei"){return(0,r.J)(e,i.eL[t])}},35925:(e,t,n)=>{n.d(t,{l:()=>r});var i=n(39827);class r extends i.C{constructor({blockHash:e,blockNumber:t}){let n="Block";e&&(n=`Block at hash "${e}"`),t&&(n=`Block at number "${t}"`),super(`${n} could not be found.`,{name:"BlockNotFoundError"})}}},36562:(e,t,n)=>{n.d(t,{W:()=>u});var i=n(76367),r=n(13982),s=n(49547),o=n(63771),a=n(60237),c=n(60723);function u(e){let{abi:t,data:n}=e,u=(0,s.di)(n,0,4);if("0x"===u)throw new r.O;let l=[...t||[],i.Mc,i.J9].find(e=>"error"===e.type&&u===(0,o.V)((0,c.B)(e)));if(!l)throw new r.Wq(u,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:l,args:"inputs"in l&&l.inputs&&l.inputs.length>0?(0,a.n)(l.inputs,(0,s.di)(n,4)):void 0,errorName:l.name}}},38744:(e,t,n)=>{n.d(t,{sc:()=>i});let i=n(40164).sc},39754:(e,t,n)=>{n.d(t,{j:()=>c});var i=n(13982),r=n(39827),s=n(75534),o=n(82301),a=n(78375);function c(e,{abi:t,address:n,args:c,docsPath:u,functionName:l,sender:d}){let h=e instanceof s.$S?e:e instanceof r.C?e.walk(e=>"data"in e)||e.walk():{},{code:p,data:f,details:m,message:y,shortMessage:b}=h,g=e instanceof i.O?new s.rR({functionName:l}):[3,a.bq.code].includes(p)&&(f||m||y||b)?new s.M({abi:t,data:"object"==typeof f?f.data:f,functionName:l,message:h instanceof o.J8?m:b??y}):e;return new s.bG(g,{abi:t,args:c,contractAddress:n,docsPath:u,functionName:l,sender:d})}},41040:(e,t,n)=>{n.d(t,{p:()=>l});var i=n(77223),r=n(83227),s=n(13982),o=n(63771),a=n(60723),c=n(71620);let u="/docs/contract/encodeFunctionData";function l(e){let{args:t}=e,{abi:n,functionName:l}=(()=>{if(1===e.abi.length&&e.functionName?.startsWith("0x"))return e;let{abi:t,args:n,functionName:i}=e,r=t[0];if(i){let e=(0,c.iY)({abi:t,args:n,name:i});if(!e)throw new s.Iz(i,{docsPath:u});r=e}if("function"!==r.type)throw new s.Iz(void 0,{docsPath:u});return{abi:[r],functionName:(0,o.V)((0,a.B)(r))}})(),d=n[0],h="inputs"in d&&d.inputs?(0,r.h)(d.inputs,t??[]):void 0;return(0,i.aP)([l,h??"0x"])}},41116:(e,t,n)=>{n.d(t,{L:()=>i});async function i(e){return BigInt(await e.request({method:"eth_gasPrice"}))}}
21,48902:(e,t,n)=>{n.d(t,{B4:()=>r,SK:()=>s,hX:()=>o});var i=n(39827);class r extends i.C{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class s extends i.C{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`,{name:"PositionOutOfBoundsError"})}}class o extends i.C{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`,{name:"RecursiveReadLimitExceededError"})}}},49282:(e,t,n)=>{n.d(t,{b4:()=>r,uP:()=>s});var i=n(8853);let r={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function s(e){let t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?(0,i.ME)(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?(0,i.ME)(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?r[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return e.authorizationList&&(t.authorizationList=e.authorizationList.map(e=>({address:e.address,chainId:Number(e.chainId),nonce:Number(e.nonce),r:e.r,s:e.s,yParity:Number(e.yParity)}))),t.yParity=(()=>{if(e.yParity)return Number(e.yParity);if("bigint"==typeof t.v){if(0n===t.v||27n===t.v)return 0;if(1n===t.v||28n===t.v)return 1;if(t.v>=35n)return+(t.v%2n===0n)}})(),"legacy"===t.type&&(delete t.accessList,delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas,delete t.yParity),"eip2930"===t.type&&(delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),"eip1559"===t.type&&delete t.maxFeePerBlobGas,t}},49547:(e,t,n)=>{n.d(t,{A1:()=>u,di:()=>o,iN:()=>l});var i=n(1392),r=n(36652),s=n(39550);function o(e,t,n,{strict:i}={}){return(0,r.q)(e,{strict:!1})?l(e,t,n,{strict:i}):u(e,t,n,{strict:i})}function a(e,t){if("number"==typeof t&&t>0&&t>(0,s.E)(e)-1)throw new i.ii({offset:t,position:"start",size:(0,s.E)(e)})}function c(e,t,n){if("number"==typeof t&&"number"==typeof n&&(0,s.E)(e)!==n-t)throw new i.ii({offset:n,position:"end",size:(0,s.E)(e)})}function u(e,t,n,{strict:i}={}){a(e,t);let r=e.slice(t,n);return i&&c(r,t,n),r}function l(e,t,n,{strict:i}={}){a(e,t);let r=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return i&&c(r,t,n),r}},53565:(e,t,n)=>{n.d(t,{O:()=>u,_:()=>c});var i=n(5320),r=n(65400),s=n(86070),o=n(5875),a=n(41116);async function c(e,t){return u(e,t)}async function u(e,t){let{block:n,chain:c=e.chain,request:u,type:l="eip1559"}=t||{},d=await (async()=>"function"==typeof c?.fees?.baseFeeMultiplier?c.fees.baseFeeMultiplier({block:n,client:e,request:u}):c?.fees?.baseFeeMultiplier??1.2)();if(d<1)throw new i.sM;let h=d.toString().split(".")[1]?.length??0,p=10**h,f=e=>e*BigInt(Math.ceil(d*p))/BigInt(p),m=n||await (0,r.T)(e,o.g,"getBlock")({});if("function"==typeof c?.fees?.estimateFeesPerGas){let t=await c.fees.estimateFeesPerGas({block:n,client:e,multiply:f,request:u,type:l});if(null!==t)return t}if("eip1559"===l){if("bigint"!=typeof m.baseFeePerGas)throw new i.pw;let t="bigint"==typeof u?.maxPriorityFeePerGas?u.maxPriorityFeePerGas:await (0,s.N)(e,{block:m,chain:c,request:u}),n=f(m.baseFeePerGas);return{maxFeePerGas:u?.maxFeePerGas??n+t,maxPriorityFeePerGas:t}}return{gasPrice:u?.gasPrice??f(await (0,r.T)(e,a.L,"getGasPrice")({}))}}},55072:(e,t,n)=>{n.d(t,{Q:()=>s});var i=n(32808);let r=/^tuple(?<array>(\[(\d*)\])*)$/;function s(e){let t="",n=e.length;for(let s=0;s<n;s++)t+=function e(t){let n=t.type;if(r.test(t.type)&&"components"in t){n="(";let s=t.components.length;for(let i=0;i<s;i++)n+=e(t.components[i]),i<s-1&&(n+=", ");let o=(0,i.Yv)(r,t.type);return n+=`)${o?.array??""}`,e({...t,type:n})}return("indexed"in t&&t.indexed&&(n=`${n}
21 indexed`),t.name)?`${n} ${t.name}`:n}(e[s]),s!==n-1&&(t+=", ");return t}},60237:(e,t,n)=>{n.d(t,{n:()=>m});var i=n(13982),r=n(70079),s=n(10660),o=n(39550),a=n(49547),c=n(53147),u=n(46641),l=n(8853),d=n(63502);function h(e,t={}){void 0!==t.size&&(0,l.Sl)(e,{size:t.size});let n=(0,d.My)(e,t);return(0,l.ME)(n,t)}var p=n(2168),f=n(83227);function m(e,t){let n="string"==typeof t?(0,p.aT)(t):t,m=(0,s.l)(n);if(0===(0,o.E)(n)&&e.length>0)throw new i.O;if((0,o.E)(t)&&32>(0,o.E)(t))throw new i.Iy({data:"string"==typeof t?t:(0,d.My)(t),params:e,size:(0,o.E)(t)});let b=0,g=[];for(let t=0;t<e.length;++t){let n=e[t];m.setPosition(b);let[s,o]=function e(t,n,{staticPosition:s}){let o=(0,f.k)(n.type);if(o){let[i,r]=o;return function(t,n,{length:i,staticPosition:r}){if(!i){let i=r+h(t.readBytes(32)),s=i+32;t.setPosition(i);let o=h(t.readBytes(32)),a=y(n),c=0,u=[];for(let i=0;i<o;++i){t.setPosition(s+(a?32*i:c));let[r,o]=e(t,n,{staticPosition:s});c+=o,u.push(r)}return t.setPosition(r+32),[u,32]}if(y(n)){let s=r+h(t.readBytes(32)),o=[];for(let r=0;r<i;++r){t.setPosition(s+32*r);let[i]=e(t,n,{staticPosition:s});o.push(i)}return t.setPosition(r+32),[o,32]}let s=0,o=[];for(let a=0;a<i;++a){let[i,a]=e(t,n,{staticPosition:r+s});s+=a,o.push(i)}return[o,s]}(t,{...n,type:r},{length:i,staticPosition:s})}if("tuple"===n.type)return function(t,n,{staticPosition:i}){let r=0===n.components.length||n.components.some(({name:e})=>!e),s=r?[]:{},o=0;if(y(n)){let a=i+h(t.readBytes(32));for(let i=0;i<n.components.length;++i){let c=n.components[i];t.setPosition(a+o);let[u,l]=e(t,c,{staticPosition:a});o+=l,s[r?i:c?.name]=u}return t.setPosition(i+32),[s,32]}for(let a=0;a<n.components.length;++a){let c=n.components[a],[u,l]=e(t,c,{staticPosition:i});s[r?a:c?.name]=u,o+=l}return[s,o]}(t,n,{staticPosition:s});if("address"===n.type){var p=t;let e=p.readBytes(32);return[(0,r.o)((0,d.My)((0,a.A1)(e,-20))),32]}if("bool"===n.type)return[function(e,t={}){let n=e;if(void 0!==t.size&&((0,l.Sl)(n,{size:t.size}),n=(0,c.B)(n)),n.length>1||n[0]>1)throw new u.xO(n);return!!n[0]}(t.readBytes(32),{size:32}),32];if(n.type.startsWith("bytes"))return function(e,t,{staticPosition:n}){let[i,r]=t.type.split("bytes");if(!r){let t=h(e.readBytes(32));e.setPosition(n+t);let i=h(e.readBytes(32));if(0===i)return e.setPosition(n+32),["0x",32];let r=e.readBytes(i);return e.setPosition(n+32),[(0,d.My)(r),32]}return[(0,d.My)(e.readBytes(Number.parseInt(r,10),32)),32]}(t,n,{staticPosition:s});if(n.type.startsWith("uint")||n.type.startsWith("int")){var m=t,b=n;let e=b.type.startsWith("int"),i=Number.parseInt(b.type.split("int")[1]||"256",10),r=m.readBytes(32);return[i>48?function(e,t={}){void 0!==t.size&&(0,l.Sl)(e,{size:t.size});let n=(0,d.My)(e,t);return(0,l.uU)(n,t)}(r,{signed:e}):h(r,{signed:e}),32]}if("string"===n.type)return function(e,{staticPosition:t}){let n=h(e.readBytes(32));e.setPosition(t+n);let i=h(e.readBytes(32));if(0===i)return e.setPosition(t+32),["",32];let r=e.readBytes(i,32),s=function(e,t={}){let n=e;return void 0!==t.size&&((0,l.Sl)(n,{size:t.size}),n=(0,c.B)(n,{dir:"right"})),new TextDecoder().decode(n)}((0,c.B)(r));return e.setPosition(t+32),[s,32]}(t,{staticPosition:s});throw new i.j(n.type,{docsPath:"/docs/contract/decodeAbiParameters"})}(m,n,{staticPosition:0});b+=o,g.push(s)}return g}function y(e){let{type:t}=e;if("string"===t||"bytes"===t||t.endsWith("[]"))return!0;if("tuple"===t)return e.components?.some(y);let n=(0,f.k)(e.type);return!!(n&&y({...e,type:n[1]}))}},60723:(e,t,n)=>{n.d(t,{A:()=>s,B:()=>r});var i=n(13982);function r(e,{includeName:t=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new i.d_(e.type);return`${e.name}(${s(e.inputs,{includeName:t})})`}function s(e,{includeName:t=!1}={}){return e?e.map(e=>(function(e,{includeName:t}){return e.type.startsWith("tuple")?`(${s(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")})(e,{includeName:t})).join(t?", ":","):""}},63771:(e,t,n)=>{n.d(t,{V:()=>s});var i=n(49547),r=n(65505);let s=e=>(0,i.di)((0,r.k)(e),0,4)},65400:(e,t,n)=>{n.d(t,{T:()=>i});function i(e,t,n){let i=e[t.name];if("function"==typeof i)return i;let r=e[n];return"function"==typeof r?r:n=>t(e,n)}},65505:(e,t,n)=>{n.d(t,{k:()=>a});var i=n(2168),r=n(98674),s=n(6310),o=n(39827);function a(e){var t;return t=function(e){let t=!0,n="",i=0,r="",s=!1;for(let o=0;o<e.length;o++){let a=e[o];if(["(",")",","].includes(a)&&(t=!0),"("===a&&i++,")"===a&&i--,t){if(0===i){if(" "===a&&["event","function",""].includes(r))r="";else if(r+=a,")"===a){s=!0;break}continue}if(" "===a){","!==e[o-1]&&","!==n&&",("!==n&&(n="",t=!1);continue}r+=a,n+=a}}if(!s)throw new o.C("Unable to normalize signature.");return r}("string"==typeof e?e:(0,s.B)(e)),(0,r.S)((0,i.ZJ)(t))}},65507:(e,t,n)=>{n.d(t,{o:()=>i});function i(e,{format:t}){if(!t)return{};let n={};return!function t(i){for(let r of Object.keys(i))r in e&&(n[r]=e[r]),i[r]&&"object"==typeof i[r]&&!Array.isArray(i[r])&&t(i[r])}(t(e||{})),n}},70753:(e,t,n)=>{n.d(t,{BD:()=>r,D5:()=>i,Ge:()=>s});let i=/^(.*)\[([0-9]*)\]$/,r=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,s=/^(u?int)(8|
2116|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)?$/},71620:(e,t,n)=>{n.d(t,{iY:()=>c});var i=n(13982),r=n(36652),s=n(10461),o=n(21563),a=n(63771);function c(e){let t,{abi:n,args:c=[],name:u}=e,l=(0,r.q)(u,{strict:!1}),d=n.filter(e=>l?"function"===e.type?(0,a.V)(e)===u:"event"===e.type&&(0,o.h)(e)===u:"name"in e&&e.name===u);if(0!==d.length){if(1===d.length)return d[0];for(let e of d){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,n)=>{let i="inputs"in e&&e.inputs[n];return!!i&&function e(t,n){let i=typeof t,r=n.type;switch(r){case"address":return(0,s.P)(t,{strict:!1});case"bool":return"boolean"===i;case"function":case"string":return"string"===i;default:if("tuple"===r&&"components"in n)return Object.values(n.components).every((n,i)=>e(Object.values(t)[i],n));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(r))return"number"===i||"bigint"===i;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r))return"string"===i||t instanceof Uint8Array;
vendor: 6,646 bytes, lines 21-22
21if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(r))return Array.isArray(t)&&t.every(t=>e(t,{...n,type:r.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}(t,i)})){if(t&&"inputs"in t&&t.inputs){let n=function e(t,n,i){for(let r in t){let o=t[r],a=n[r];if("tuple"===o.type&&"tuple"===a.type&&"components"in o&&"components"in a)return e(o.components,a.components,i[r]);let c=[o.type,a.type];if(c.includes("address")&&c.includes("bytes20")||(c.includes("address")&&c.includes("string")||c.includes("address")&&c.includes("bytes"))&&(0,s.P)(i[r],{strict:!1}))return c}}(e.inputs,t.inputs,c);if(n)throw new i.nM({abiItem:e,type:n[0]},{abiItem:t,type:n[1]})}t=e}}}return t||d[0]}}},72199:(e,t,n)=>{n.d(t,{yH:()=>u});var i=n(78568),r=n(1392),s=n(87829),o=n(10461),a=n(63502);function c(e){if(e&&0!==e.length)return e.reduce((e,{slot:t,value:n})=>{if(66!==t.length)throw new r.NV({size:t.length,targetSize:66,type:"hex"});if(66!==n.length)throw new r.NV({size:n.length,targetSize:66,type:"hex"});return e[t]=n,e},{})}function u(e){if(!e)return;let t={};for(let{address:n,...r}of e){if(!(0,o.P)(n,{strict:!1}))throw new i.M({address:n});if(t[n])throw new s.Hi({address:n});t[n]=function(e){let{balance:t,nonce:n,state:i,stateDiff:r,code:o}=e,u={};if(void 0!==o&&(u.code=o),void 0!==t&&(u.balance=(0,a.cK)(t)),void 0!==n&&(u.nonce=(0,a.cK)(n)),void 0!==i&&(u.state=c(i)),void 0!==r){if(u.state)throw new s.ft;u.stateDiff=c(r)}return u}(r)}return t}},75534:(e,t,n)=>{n.d(t,{zX:()=>b,bG:()=>g,M:()=>v,rR:()=>w,Po:()=>P,$S:()=>x});var i=n(3773),r=n(76367),s=n(36562),o=n(60723),a=n(2779);function c({abiItem:e,args:t,includeFunctionName:n=!0,includeName:i=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${n?e.name:""}(${e.inputs.map((e,n)=>`${i&&e.name?`${e.name}: `:""}${"object"==typeof t[n]?(0,a.A)(t[n]):t[n]}`).join(", ")})`}var u=n(71620),l=n(33030),d=n(52350),h=n(13982),p=n(39827),f=n(87829),m=n(1260),y=n(83997);class b extends p.C{constructor(e,{account:t,docsPath:n,chain:r,data:s,gas:o,gasPrice:a,maxFeePerGas:c,maxPriorityFeePerGas:u,nonce:h,to:p,value:y,stateOverride:b}){let g=t?(0,i.J)(t):void 0,v=(0,m.aO)({from:g?.address,to:p,value:void 0!==y&&`${(0,l.c)(y)} ${r?.nativeCurrency?.symbol||"ETH"}`,data:s,gas:o,gasPrice:void 0!==a&&`${(0,d.Q)(a)} gwei`,maxFeePerGas:void 0!==c&&`${(0,d.Q)(c)} gwei`,maxPriorityFeePerGas:void 0!==u&&`${(0,d.Q)(u)} gwei`,nonce:h});b&&(v+=` 22${(0,f.uj)(b)}`),super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",v].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class g extends p.C{constructor(e,{abi:t,args:n,contractAddress:i,docsPath:r,functionName:s,sender:a}){let l=(0,u.iY)({abi:t,args:n,name:s}),d=l?c({abiItem:l,args:n,includeFunctionName:!1,includeName:!1}):void 0,h=l?(0,o.B)(l,{includeName:!0}):void 0,p=(0,m.aO)({address:i&&(0,y.R)(i),function:h,args:d&&"()"!==d&&`${[...Array(s?.length??0).keys()].map(()=>" ").join("")}${d}`,sender:a});super(e.shortMessage||`An unknown error occurred while executing the contract function "${s}".`,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],p&&"Contract Call:",p].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=n,this.cause=e,this.contractAddress=i,this.functionName=s,this.sender=a}}class v extends p.C{constructor({abi:e,data:t,functionName:n,message:i}){let a,u,l,d,p;if(t&&"0x"!==t)try{let{abiItem:n,errorName:i,args:a}=u=(0,s.W)({abi:e,data:t});if("Error"===i)d=a[0];else if("Panic"===i){let[e]=a;d=r.fD[e]}else{let e=n?(0,o.B)(n,{includeName:!0}):void 0,t=n&&a?c({abiItem:n,args:a,includeFunctionName:!1,includeName:!1}):void 0;l=[e?`Error: ${e}`:"",t&&"()"!==t?` ${[...Array(i?.length??0).keys()].map(()=>" ").join("")}${t}`:""]}}catch(e){a=e}else i&&(d=i);a instanceof h.Wq&&(p=a.signature,l=[`Unable to decode signature "${p}" 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://openchain.xyz/signatures?query=${p}.`]),super(d&&"execution reverted"!==d||p?[`The contract function "${n}" reverted with the following ${p?"signature":"reason"}:`,d||p].join("\n"):`The contract function "${n}" reverted.`,{cause:a,metaMessages:l,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=u,this.raw=t,this.reason=d,this.signature=p}}class w extends p.C{constructor({functionName:e}){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"})}}class P extends p.C{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 x extends p.C{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}}},76367:(e,t,n)=>{n.d(t,{J9:()=>s,Mc:()=>r,fD:()=>i});
vendor: 7,193 bytes, lines 22-27
22let i={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."},r={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},s={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}},77223:(e,t,n)=>{function i(e){return"string"==typeof e[0]?r(e):function(e){let t=0;for(let n of e)t+=n.length;let n=new Uint8Array(t),i=0;for(let t of e)n.set(t,i),i+=t.length;return n}(e)}function r(e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}n.d(t,{aP:()=>r,xW:()=>i})},83227:(e,t,n)=>{n.d(t,{h:()=>f,k:()=>y});var i=n(13982),r=n(78568),s=n(39827),o=n(46641),a=n(10461),c=n(77223),u=n(16460),l=n(39550),d=n(49547),h=n(63502),p=n(70753);function f(e,t){if(e.length!==t.length)throw new i.YE({expectedLength:e.length,givenLength:t.length});let n=m(function({params:e,values:t}){let n=[];for(let f=0;f<e.length;f++)n.push(function e({param:t,value:n}){let f=y(t.type);if(f){let[r,s]=f;return function(t,{length:n,param:r}){let s=null===n;if(!Array.isArray(t))throw new i.dm(t);if(!s&&t.length!==n)throw new i.Nc({expectedLength:n,givenLength:t.length,type:`${r.type}[${n}]`});let o=!1,a=[];for(let n=0;n<t.length;n++){let i=e({param:r,value:t[n]});i.dynamic&&(o=!0),a.push(i)}if(s||o){let e=m(a);if(s){let t=(0,h.cK)(a.length,{size:32});return{dynamic:!0,encoded:a.length>0?(0,c.xW)([t,e]):t}}if(o)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,c.xW)(a.map(({encoded:e})=>e))}}(n,{length:r,param:{...t,type:s}})}if("tuple"===t.type)return function(t,{param:n}){let i=!1,r=[];for(let s=0;s<n.components.length;s++){let o=n.components[s],a=Array.isArray(t)?s:o.name,c=e({param:o,value:t[a]});r.push(c),c.dynamic&&(i=!0)}return{dynamic:i,encoded:i?m(r):(0,c.xW)(r.map(({encoded:e})=>e))}}(n,{param:t});if("address"===t.type){var b=n;if(!(0,a.P)(b))throw new r.M({address:b});return{dynamic:!1,encoded:(0,u.db)(b.toLowerCase())}}if("bool"===t.type){var g=n;if("boolean"!=typeof g)throw new s.C(`Invalid boolean value: "${g}" (type: ${typeof g}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:(0,u.db)((0,h.$P)(g))}}if(t.type.startsWith("uint")||t.type.startsWith("int")){let e=t.type.startsWith("int"),[,,i="256"]=p.Ge.exec(t.type)??[];return function(e,{signed:t,size:n=256}){if("number"==typeof n){let i=2n**(BigInt(n)-(t?1n:0n))-1n,r=t?-i-1n:0n;if(e>i||e<r)throw new o.Ty({max:i.toString(),min:r.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:(0,h.cK)(e,{size:32,signed:t})}}(n,{signed:e,size:Number(i)})}if(t.type.startsWith("bytes"))return function(e,{param:t}){let[,n]=t.type.split("bytes"),r=(0,l.E)(e);if(!n){let t=e;return r%32!=0&&(t=(0,u.db)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,c.xW)([(0,u.db)((0,h.cK)(r,{size:32})),t])}}if(r!==Number.parseInt(n,10))throw new i.gH({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:(0,u.db)(e,{dir:"right"})}}(n,{param:t});if("string"===t.type){var v=n;let e=(0,h.i3)(v),t=Math.ceil((0,l.E)(e)/32),i=[];for(let n=0;n<t;n++)i.push((0,u.db)((0,d.di)(e,32*n,(n+1)*32),{dir:"right"}));return{dynamic:!0,encoded:(0,c.xW)([(0,u.db)((0,h.cK)((0,l.E)(e),{size:32})),...i])}}throw new i.nK(t.type,{docsPath:"/docs/contract/encodeAbiParameters"})}({param:e[f],value:t[f]}));return n}({params:e,values:t}));return 0===n.length?"0x":n}function m(e){let t=0;for(let n=0;n<e.length;n++){let{dynamic:i,encoded:r}=e[n];i?t+=32:t+=(0,l.E)(r)}let n=[],i=[],r=0;for(let s=0;s<e.length;s++){let{dynamic:o,encoded:a}=e[s];o?(n.push((0,h.cK)(t+r,{size:32})),i.push(a),r+=(0,l.E)(a)):n.push(a)}return(0,c.xW)([...n,...i])}function y(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}},86070:(e,t,n)=>{n.d(t,{N:()=>u,b:()=>c});var i=n(5320),r=n(8853),s=n(65400),o=n(5875),a=n(41116);async function c(e,t){return u(e,t)}async function u(e,t){let{block:n,chain:c=e.chain,request:u}=t||{};try{let t=c?.fees?.maxPriorityFeePerGas??c?.fees?.defaultPriorityFee;if("function"==typeof t){let i=n||await (0,s.T)(e,o.g,"getBlock")({}),r=await t({block:i,client:e,request:u});if(null===r)throw Error();return r}if(void 0!==t)return t;let i=await e.request({method:"eth_maxPriorityFeePerGas"});return(0,r.uU)(i)}catch{let[t,r]=await Promise.all([n?Promise.resolve(n):(0,s.T)(e,o.g,"getBlock")({}),(0,s.T)(e,a.L,"getGasPrice")({})]);if("bigint"!=typeof t.baseFeePerGas)throw new i.pw;let c=r-t.baseFeePerGas;if(c<0n)return 0n;return c}}},87829:(e,t,n)=>{n.d(t,{Hi:()=>r,ft:()=>s,uj:()=>a});var i=n(39827);class r extends i.C{constructor({address:e}){super(`State for account "${e}" is set multiple times.`,{name:"AccountStateConflictError"})}}class s extends i.C{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function o(e){return e.reduce((e,{slot:t,value:n})=>`${e} ${t}: ${n} 23`,"")}function a(e){return e.reduce((e,{address:t,...n})=>{let i=`${e} ${t}: 24`;return n.nonce&&(i+=` nonce: ${n.nonce} 25`),n.balance&&(i+=` balance: ${n.balance} 26`),n.code&&(i+=` code: ${n.code} 27`),n.state&&(i+=" state:\n",i+=o(n.state)),n.stateDiff&&(i+=" stateDiff:\n",i+=o(n.stateDiff)),i}," State Override:\n").slice(0,-1)}},91901:(e,t,n)=>{n.d(t,{EH:()=>s,YE:()=>a,jF:()=>o,rj:()=>r});var i=n(39827);class r extends i.C{constructor({blockNumber:e,chain:t,contract:n}){super(`Chain "${t.name}" does not support contract "${n.name}".`,{metaMessages:["This could be due to any of the following:",...e&&n.blockCreated&&n.blockCreated>e?[`- The contract "${n.name}" was not deployed until block ${n.blockCreated} (current block ${e}).`]:[`- The chain does not have the contract "${n.name}" configured.`]],name:"ChainDoesNotSupportContract"})}}class s extends i.C{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 o extends i.C{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 i.C{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}i.C},99628:(e,t,n)=>{n.d(t,{m:()=>a});var i=n(13982),r=n(77223),s=n(83227);let o="/docs/contract/encodeDeployData";function a(e){let{abi:t,args:n,bytecode:a}=e;if(!n||0===n.length)return a;let c=t.find(e=>"type"in e&&"constructor"===e.type);if(!c)throw new i.YW({docsPath:o});if(!("inputs"in c)||!c.inputs||0===c.inputs.length)throw new i.YF({docsPath:o});let u=(0,s.h)(c.inputs,n);return(0,r.aP)([a,u])}}}]);
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.