vendor: 4,774 bytes, line 1
1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[61684],{138697:(e,t,n)=>{n.d(t,{BD:()=>o,D5:()=>r,Ge:()=>s});let r=/^(.*)\[([0-9]*)\]$/,o=/^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)?$/},179731:(e,t,n)=>{function r(e){return"string"==typeof e[0]?s(e):o(e)}function o(e){let t=0;for(let n of e)t+=n.length;let n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}function s(e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}n.d(t,{Id:()=>o,aP:()=>s,xW:()=>r})},259126:(e,t,n)=>{function r(e,t){let n=e.exec(t);return n?.groups}n.d(t,{BD:()=>o,Ge:()=>s,Yv:()=>r,wj:()=>a});let o=/^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)?$/,a=/^\(.+?\).*?$/},393727:(e,t,n)=>{n.d(t,{A1:()=>c,di:()=>a,iN:()=>d});var r=n(558980),o=n(632840),s=n(87094);function a(e,t,n,{strict:r}={}){return(0,o.q)(e,{strict:!1})?d(e,t,n,{strict:r}):c(e,t,n,{strict:r})}function i(e,t){if("number"==typeof t&&t>0&&t>(0,s.E)(e)-1)throw new r.ii({offset:t,position:"start",size:(0,s.E)(e)})}function u(e,t,n){if("number"==typeof t&&"number"==typeof n&&(0,s.E)(e)!==n-t)throw new r.ii({offset:n,position:"end",size:(0,s.E)(e)})}function c(e,t,n,{strict:r}={}){i(e,t);let o=e.slice(t,n);return r&&u(o,t,n),o}function d(e,t,n,{strict:r}={}){i(e,t);let o=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return r&&u(o,t,n),o}},513423:(e,t,n)=>{n.d(t,{h:()=>m,k:()=>f});var r=n(699702),o=n(336444),s=n(7441),a=n(994201),i=n(581757),u=n(179731),c=n(36984),d=n(87094),l=n(393727),p=n(567622),h=n(138697);function m(e,t){if(e.length!==t.length)throw new r.YE({expectedLength:e.length,givenLength:t.length});let n=y(function({params:e,values:t}){let n=[];for(let m=0;m<e.length;m++)n.push(function e({param:t,value:n}){let m=f(t.type);if(m){let[o,s]=m;return function(t,{length:n,param:o}){let s=null===n;if(!Array.isArray(t))throw new r.dm(t);if(!s&&t.length!==n)throw new r.Nc({expectedLength:n,givenLength:t.length,type:`${o.type}[${n}]`});let a=!1,i=[];for(let n=0;n<t.length;n++){let r=e({param:o,value:t[n]});r.dynamic&&(a=!0),i.push(r)}if(s||a){let e=y(i);if(s){let t=(0,p.cK)(i.length,{size:32});return{dynamic:!0,encoded:i.length>0?(0,u.xW)([t,e]):t}}if(a)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,u.xW)(i.map(({encoded:e})=>e))}}(n,{length:o,param:{...t,type:s}})}if("tuple"===t.type)return function(t,{param:n}){let r=!1,o=[];for(let s=0;s<n.components.length;s++){let a=n.components[s],i=Array.isArray(t)?s:a.name,u=e({param:a,value:t[i]});o.push(u),u.dynamic&&(r=!0)}return{dynamic:r,encoded:r?y(o):(0,u.xW)(o.map(({encoded:e})=>e))}}(n,{param:t});if("address"===t.type){var b=n;if(!(0,i.P)(b))throw new o.M({address:b});return{dynamic:!1,encoded:(0,c.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,c.db)((0,p.$P)(g))}}if(t.type.startsWith("uint")||t.type.startsWith("int")){let e=t.type.startsWith("int"),[,,r="256"]=h.Ge.exec(t.type)??[];return function(e,{signed:t,size:n=256}){if("number"==typeof n){let r=2n**(BigInt(n)-(t?1n:0n))-1n,o=t?-r-1n:0n;if(e>r||e<o)throw new a.Ty({max:r.toString(),min:o.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:(0,p.cK)(e,{size:32,signed:t})}}(n,{signed:e,size:Number(r)})}if(t.type.startsWith("bytes"))return function(e,{param:t}){let[,n]=t.type.split("bytes"),o=(0,d.E)(e);if(!n){let t=e;return o%32!=0&&(t=(0,c.db)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,u.xW)([(0,c.db)((0,p.cK)(o,{size:32})),t])}}if(o!==Number.parseInt(n,10))throw new r.gH({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:(0,c.db)(e,{dir:"right"})}}(n,{param:t});if("string"===t.type){var v=n;let e=(0,p.i3)(v),t=Math.ceil((0,d.E)(e)/32),r=[];for(let n=0;n<t;n++)r.push((0,c.db)((0,l.di)(e,32*n,(n+1)*32),{dir:"right"}));return{dynamic:!0,encoded:(0,u.xW)([(0,c.db)((0,p.cK)((0,d.E)(e),{size:32})),...r])}}throw new r.nK(t.type,{docsPath:"/docs/contract/encodeAbiParameters"})}({param:e[m],value:t[m]}));return n}({params:e,values:t}));return 0===n.length?"0x":n}function y(e){let t=0;for(let n=0;n<e.length;n++){let{dynamic:r,encoded:o}=e[n];r?t+=32:t+=(0,d.E)(o)}let n=[],r=[],o=0;for(let s=0;s<e.length;s++){let{dynamic:a,encoded:i}=e[s];a?(n.push((0,p.cK)(t+o,{size:32})),r.push(i),o+=(0,d.E)(i)):n.push(i)}return(0,u.xW)([...n,...r])}function f(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}}
vendor: 7,739 bytes, lines 1-22
1,699702:(e,t,n)=>{n.d(t,{BI:()=>I,CL:()=>u,EB:()=>A,Iy:()=>c,Iz:()=>$,MR:()=>x,M_:()=>v,Nc:()=>l,O:()=>d,Wl:()=>N,Wq:()=>f,YE:()=>h,YF:()=>i,YW:()=>a,ZP:()=>m,_z:()=>b,d_:()=>k,dm:()=>M,fo:()=>w,gH:()=>p,j:()=>z,kE:()=>g,l3:()=>B,nK:()=>C,nM:()=>E,yy:()=>y});var r=n(821159),o=n(87094),s=n(7441);class a 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 i 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"})}}class u extends s.C{constructor({data:e,size:t}){super(`Data size of ${t} bytes is invalid. 2Size must be in increments of 32 bytes (size % 32 === 0).`,{metaMessages:[`Data: ${e} (${t} bytes)`],name:"AbiDecodingDataSizeInvalidError"})}}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,r.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 d extends s.C{constructor({cause:e}={}){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError",cause:e})}}class l extends s.C{constructor({expectedLength:e,givenLength:t,type:n}){super(`ABI encoding array length mismatch for type ${n}. 3Expected length: ${e} 4Given length: ${t}`,{name:"AbiEncodingArrayLengthMismatchError"})}}class p extends s.C{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${(0,o.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. 5Expected length (params): ${e} 6Given length (values): ${t}`,{name:"AbiEncodingLengthMismatchError"})}}class m 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\`). 7Cannot encode error result without knowing what the parameter types are. 8Make sure you are using the correct ABI and that the inputs exist on it.`,{docsPath:t,name:"AbiErrorInputsNotFoundError"})}}class y extends s.C{constructor(e,{docsPath:t}={}){super(`Error ${e?`"${e}" `:""}not found on ABI. 9Make sure you are using the correct ABI and that the error exists on it.`,{docsPath:t,name:"AbiErrorNotFoundError"})}}class f extends s.C{constructor(e,{docsPath:t,cause:n}){super(`Encoded error signature "${e}" not found on ABI. 10Make sure you are using the correct ABI and that the error exists on it. 11You can look up the decoded signature here: https://4byte.sourcify.dev/?q=${e}.`,{docsPath:t,name:"AbiErrorSignatureNotFoundError",cause:n}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}class b extends s.C{constructor({docsPath:e}){super("Cannot extract event signature from empty topics.",{docsPath:e,name:"AbiEventSignatureEmptyTopicsError"})}}class g extends s.C{constructor(e,{docsPath:t}){super(`Encoded event signature "${e}" not found on ABI. 12Make sure you are using the correct ABI and that the event exists on it. 13You can look up the signature here: https://4byte.sourcify.dev/?q=${e}.`,{docsPath:t,name:"AbiEventSignatureNotFoundError"})}}class v extends s.C{constructor(e,{docsPath:t}={}){super(`Event ${e?`"${e}" `:""}not found on ABI. 14Make sure you are using the correct ABI and that the event exists on it.`,{docsPath:t,name:"AbiEventNotFoundError"})}}class $ extends s.C{constructor(e,{docsPath:t}={}){super(`Function ${e?`"${e}" `:""}not found on ABI. 15Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t,name:"AbiFunctionNotFoundError"})}}class x extends s.C{constructor(e,{docsPath:t}){super(`Function "${e}" does not contain any \`outputs\` on ABI. 16Cannot decode function result without knowing what the parameter types are. 17Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t,name:"AbiFunctionOutputsNotFoundError"})}}class A extends s.C{constructor(e,{docsPath:t}){super(`Encoded function signature "${e}" not found on ABI. 18Make sure you are using the correct ABI and that the function exists on it. 19You can look up the signature here: https://4byte.sourcify.dev/?q=${e}.`,{docsPath:t,name:"AbiFunctionSignatureNotFoundError"})}}class E extends s.C{constructor(e,t){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${e.type}\` in \`${(0,r.B)(e.abiItem)}\`, and`,`\`${t.type}\` in \`${(0,r.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 I extends s.C{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`,{name:"BytesSizeMismatchError"})}}class w extends s.C{constructor({abiItem:e,data:t,params:n,size:o}){super(`Data size of ${o} bytes is too small for non-indexed event parameters.`,{metaMessages:[`Params: (${(0,r.A)(n,{includeName:!0})})`,`Data: ${t} (${o} 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=o}}class B extends s.C{constructor({abiItem:e,param:t}){super(`Expected a topic for indexed event parameter${t.name?` "${t.name}"`:""} on event "${(0,r.B)(e,{includeName:!0})}".`,{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}class C extends s.C{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid encoding type. 20Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiEncodingType"})}}class z extends s.C{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid decoding type. 21Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiDecodingType"})}}class M extends s.C{constructor(e){super(`Value "${e}" is not a valid array.`,{name:"InvalidArrayError"})}}class k extends s.C{constructor(e){super(`"${e}" is not a valid definition type. 22Valid types: "function", "event", "error"`,{name:"InvalidDefinitionTypeError"})}}class N extends s.C{constructor(e){super(`Type "${e}" is not supported for packed encoding.`,{name:"UnsupportedPackedAbiType"})}}},821159:(e,t,n)=>{n.d(t,{A:()=>s,B:()=>o});var r=n(699702);function o(e,{includeName:t=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new r.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?", ":","):""}}}]);
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.