PageSourceSearch

https://static.kinguin.net/madka/41.61.7/dist/vendors-e1fccdb3.07a4e3c50542410cf9bf.js

js kinguin.net collected 2026-09-24 15:30:25 UTC 30,104 bytes, 1 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[6002],{235273:(e,t,n)=>{n.d(t,{y:()=>I});var r=n(657339),s=n(421228),a=n(930031),i=n(727033),o=n(819353);class l extends s.Ue{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,t){let n=o.V.dereference(t,"string");try{n=(0,a.b)(n)}catch(e){return this._throwError(e.message,t)}return e.writeValue(n)}decode(e){return(0,a.b)((0,i.up)(e.readValue(),20))}}var u=n(888081);class c extends s.Ue{coder;constructor(e){super(e.name,e.type,"_",e.dynamic),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,t){return this.coder.encode(e,t)}decode(e){return this.coder.decode(e)}}function h(e,t,n){let a=[];if(Array.isArray(n))a=n;else if(n&&"object"==typeof n){let e={};a=t.map(t=>{const s=t.localName;return(0,r.vA)(s,"cannot encode object for signature with missing names","INVALID_ARGUMENT",{argument:"values",info:{coder:t},value:n}),(0,r.vA)(!e[s],"cannot encode object for signature with duplicate names","INVALID_ARGUMENT",{argument:"values",info:{coder:t},value:n}),e[s]=!0,n[s]})}else(0,r.MR)(!1,"invalid tuple value","tuple",n);(0,r.MR)(t.length===a.length,"types/value length mismatch","tuple",n);let i=new s.AU,o=new s.AU,l=[];t.forEach((e,t)=>{let n=a[t];if(e.dynamic){let t=o.length;e.encode(o,n);let r=i.writeUpdatableValue();l.push(e=>{r(e+t)})}else e.encode(i,n)}),l.forEach(e=>{e(i.length)});let u=e.appendWriter(i);return u+=e.appendWriter(o),u}function f(e,t){let n=[],a=[],i=e.subReader(0);return t.forEach(t=>{let s=null;if(t.dynamic){let n=e.readIndex(),a=i.subReader(n);try{s=t.decode(a)}catch(e){if((0,r.bJ)(e,"BUFFER_OVERRUN"))throw e;s=e,s.baseType=t.name,s.name=t.localName,s.type=t.type}}else try{s=t.decode(e)}catch(e){if((0,r.bJ)(e,"BUFFER_OVERRUN"))throw e;s=e,s.baseType=t.name,s.name=t.localName,s.type=t.type}if(null==s)throw new Error("investigate");n.push(s),a.push(t.localName||null)}),s.Q7.fromItems(n,a)}class p extends s.Ue{coder;length;constructor(e,t,n){super("array",e.type+"["+(t>=0?t:"")+"]",n,-1===t||e.dynamic),(0,u.n)(this,{coder:e,length:t})}defaultValue(){const e=this.coder.defaultValue(),t=[];for(let n=0;n<this.length;n++)t.push(e);return t}encode(e,t){const n=o.V.dereference(t,"array");Array.isArray(n)||this._throwError("expected array value",n);let s=this.length;-1===s&&(s=n.length,e.writeValue(n.length)),(0,r.dd)(n.length,s,"coder array"+(this.localName?" "+this.localName:""));let a=[];for(let e=0;e<n.length;e++)a.push(this.coder);return h(e,a,n)}decode(e){let t=this.length;-1===t&&(t=e.readIndex(),(0,r.vA)(t*s.Yx<=e.dataLength,"insufficient data length","BUFFER_OVERRUN",{buffer:e.bytes,offset:t*s.Yx,length:e.dataLength}));let n=[];for(let e=0;e<t;e++)n.push(new c(this.coder));return f(e,n)}}class d extends s.Ue{constructor(e){super("bool","bool",e,!1)}defaultValue(){return!1}encode(e,t){const n=o.V.dereference(t,"bool");return e.writeValue(n?1:0)}decode(e){return!!e.readValue()}}var y=n(236212);class m extends s.Ue{constructor(e,t){super(e,e,t,!0)}defaultValue(){return"0x"}encode(e,t){t=(0,y.Lm)(t);let n=e.writeValue(t.length);return n+=e.writeBytes(t),n}decode(e){return e.readBytes(e.readIndex(),!0)}}class g extends m{constructor(e){super("bytes",e)}decode(e){return(0,y.c$)(super.decode(e))}}class b extends s.Ue{size;constructor(e,t){let n="bytes"+String(e);super(n,n,t,!1),(0,u.n)(this,{size:e},{size:"number"})}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}encode(e,t){let n=(0,y.Lm)(o.V.dereference(t,this.type));return n.length!==this.size&&this._throwError("incorrect data length",t),e.writeBytes(n)}decode(e){return(0,y.c$)(e.readBytes(this.size))}}const w=new Uint8Array([]);class E extends s.Ue{constructor(e){super("null","",e,!1)}defaultValue(){return null}encode(e,t){return null!=t&&this._throwError("not null",t),e.writeBytes(w)}decode(e){return e.readBytes(0),null}}const x=BigInt(0),v=BigInt(1),R=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");class A extends s.Ue{size;signed;constructor(e,t,n){const r=(t?"int":"uint")+8*e;super(r,r,n,!1),(0,u.n)(this,{size:e,signed:t},{size:"number",signed:"boolean"})}defaultValue(){return 0}encode(e,t){let n=(0,i.Ab)(o.V.dereference(t,this.type)),r=(0,i.dK)(R,8*s.Yx);if(this.signed){let e=(0,i.dK)(r,8*this.size-1);(n>e||n<-(e+v))&&this._throwError("value out-of-bounds",t),n=(0,i.JJ)(n,8*s.Yx)}else(n<x||n>(0,i.dK)(r,8*this.size))&&this._throwError("value out-of-bounds",t);return e.writeValue(n)}decode(e){let t=(0,i.dK)(e.readValue(),8*this.size);return this.signed&&(t=(0,i.ST)(t,8*this.size)),t}}var O=n(787303);class k extends m{constructor(e){super("string",e)}defaultValue(){return""}encode(e,t){return super.encode(e,(0,O.YW)(o.V.dereference(t,"string")))}decode(e){return(0,O._v)(super.decode(e))}}class N extends s.Ue{coders;constructor(e,t){let n=!1;const r=[];
1e.forEach(e=>{e.dynamic&&(n=!0),r.push(e.type)});super("tuple","tuple("+r.join(",")+")",t,n),(0,u.n)(this,{coders:Object.freeze(e.slice())})}defaultValue(){const e=[];this.coders.forEach(t=>{e.push(t.defaultValue())});const t=this.coders.reduce((e,t)=>{const n=t.localName;return n&&(e[n]||(e[n]=0),e[n]++),e},{});return this.coders.forEach((n,r)=>{let s=n.localName;s&&1===t[s]&&("length"===s&&(s="_length"),null==e[s]&&(e[s]=e[r]))}),Object.freeze(e)}encode(e,t){const n=o.V.dereference(t,"tuple");return h(e,this.coders,n)}decode(e){return f(e,this.coders)}}var _=n(276124);const j=new Map;j.set(0,"GENERIC_PANIC"),j.set(1,"ASSERT_FALSE"),j.set(17,"OVERFLOW"),j.set(18,"DIVIDE_BY_ZERO"),j.set(33,"ENUM_RANGE_ERROR"),j.set(34,"BAD_STORAGE_DATA"),j.set(49,"STACK_UNDERFLOW"),j.set(50,"ARRAY_RANGE_ERROR"),j.set(65,"OUT_OF_MEMORY"),j.set(81,"UNINITIALIZED_FUNCTION_CALL");const T=new RegExp(/^bytes([0-9]*)$/),$=new RegExp(/^(u?int)([0-9]*)$/);let M=null,L=1024;class I{#e(e){if(e.isArray())return new p(this.#e(e.arrayChildren),e.arrayLength,e.name);if(e.isTuple())return new N(e.components.map(e=>this.#e(e)),e.name);switch(e.baseType){case"address":return new l(e.name);case"bool":return new d(e.name);case"string":return new k(e.name);case"bytes":return new g(e.name);case"":return new E(e.name)}let t=e.type.match($);if(t){let n=parseInt(t[2]||"256");return(0,r.MR)(0!==n&&n<=256&&n%8==0,"invalid "+t[1]+" bit length","param",e),new A(n/8,"int"===t[1],e.name)}if(t=e.type.match(T),t){let n=parseInt(t[1]);
1return(0,r.MR)(0!==n&&n<=32,"invalid bytes length","param",e),new b(n,e.name)}(0,r.MR)(!1,"invalid type","type",e.type)}getDefaultValue(e){const t=e.map(e=>this.#e(_.aX.from(e)));return new N(t,"_").defaultValue()}encode(e,t){(0,r.dd)(t.length,e.length,"types/values length mismatch");const n=e.map(e=>this.#e(_.aX.from(e))),a=new N(n,"_"),i=new s.AU;return a.encode(i,t),i.data}decode(e,t,n){const r=e.map(e=>this.#e(_.aX.from(e)));return new N(r,"_").decode(new s.mP(t,n,L))}static _setDefaultMaxInflation(e){(0,r.MR)("number"==typeof e&&Number.isInteger(e),"invalid defaultMaxInflation factor","value",e),L=e}static defaultAbiCoder(){return null==M&&(M=new I),M}static getBuiltinCallException(e,t,n){return function(e,t,n,s){let i="missing revert data",o=null,l=null;if(n){i="execution reverted";const e=(0,y.q5)(n);if(n=(0,y.c$)(n),0===e.length)i+=" (no data present; likely require(false) occurred",o="require(false)";else if(e.length%32!=4)i+=" (could not decode reason; invalid data length)";else if("0x08c379a0"===(0,y.c$)(e.slice(0,4)))try{o=s.decode(["string"],e.slice(4))[0],l={signature:"Error(string)",name:"Error",args:[o]},i+=`: ${JSON.stringify(o)}`}catch(e){i+=" (could not decode reason; invalid string data)"}else if("0x4e487b71"===(0,y.c$)(e.slice(0,4)))try{const t=Number(s.decode(["uint256"],e.slice(4))[0]);l={signature:"Panic(uint256)",name:"Panic",args:[t]},o=`Panic due to ${j.get(t)||"UNKNOWN"}(${t})`,i+=`: ${o}`}catch(e){i+=" (could not decode panic code)"}else i+=" (unknown custom error)"}const u={to:t.to?(0,a.b)(t.to):null,data:t.data||"0x"};return t.from&&(u.from=(0,a.b)(t.from)),(0,r.xz)(i,"CALL_EXCEPTION",{action:e,data:n,reason:o,transaction:u,invocation:null,revert:l})}(e,t,n,I.defaultAbiCoder())}}},276124:(e,t,n)=>{n.d(t,{FK:()=>z,Pw:()=>Z,Zp:()=>Y,aX:()=>D,bp:()=>W,hc:()=>H});var r=n(657339),s=n(727033),a=n(888081),i=n(38264);function o(e){const t=new Set;return e.forEach(e=>t.add(e)),Object.freeze(t)}const l=o("external public payable override".split(" ")),u="constant external internal payable private public pure view override",c=o(u.split(" ")),h="constructor error event fallback function receive struct",f=o(h.split(" ")),p="calldata memory storage payable indexed",d=o(p.split(" ")),y=o([h,p,"tuple returns",u].join(" ").split(" ")),m={"(":"OPEN_PAREN",")":"CLOSE_PAREN","[":"OPEN_BRACKET","]":"CLOSE_BRACKET",",":"COMMA","@":"AT"},g=new RegExp("^(\\s*)"),b=new RegExp("^([0-9]+)"),w=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"),E=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"),x=new RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$");class v{#t;#n;get offset(){return this.#t}get length(){return this.#n.length-this.#t}constructor(e){this.#t=0,this.#n=e.slice()}clone(){return new v(this.#n)}reset(){this.#t=0}#r(e=0,t=0){return new v(this.#n.slice(e,t).map(t=>Object.freeze(Object.assign({},t,{match:t.match-e,linkBack:t.linkBack-e,linkNext:t.linkNext-e}))))}popKeyword(e){const t=this.peek();if("KEYWORD"!==t.type||!e.has(t.text))throw new Error(`expected keyword ${t.text}`);return this.pop().text}popType(e){if(this.peek().type!==e){const t=this.peek();throw new Error(`expected ${e}; got ${t.type} ${JSON.stringify(t.text)}`)}return this.pop().text}popParen(){const e=this.peek();if("OPEN_PAREN"!==e.type)throw new Error("bad start");const t=this.#r(this.#t+1,e.match+1);return this.#t=e.match+1,t}popParams(){const e=this.peek();if("OPEN_PAREN"!==e.type)throw new Error("bad start");const t=[];for(;this.#t<e.match-1;){const e=this.peek().linkNext;t.push(this.#r(this.#t+1,e)),this.#t=e}return this.#t=e.match+1,t}peek(){if(this.#t>=this.#n.length)throw new Error("out-of-bounds");return this.#n[this.#t]}peekKeyword(e){const t=this.peekType("KEYWORD");return null!=t&&e.has(t)?t:null}peekType(e){if(0===this.length)return null;const t=this.peek();return t.type===e?t.text:null}pop(){const e=this.peek();return this.#t++,e}toString(){const e=[];for(let t=this.#t;t<this.#n.length;t++){const n=this.#n[t];e.push(`${n.type}:${n.text}`)}return`<TokenString ${e.join(" ")}>`}}function R(e){const t=[],n=t=>{const n=i<e.length?JSON.stringify(e[i]):"$EOI";throw new Error(`invalid token ${n} at ${i}: ${t}`)};let r=[],a=[],i=0;for(;i<e.length;){let o=e.substring(i),l=o.match(g);l&&(i+=l[1].length,o=e.substring(i));const u={depth:r.length,linkBack:-1,linkNext:-1,match:-1,type:"",text:"",offset:i,value:-1};t.push(u);let c=m[o[0]]||"";if(c){if(u.type=c,u.text=o[0],i++,"OPEN_PAREN"===c)r.push(t.length-1),a.push(t.length-1);else if("CLOSE_PAREN"==c)0===r.length&&n("no matching open bracket"),u.match=r.pop(),t[u.match].match=t.length-1,u.depth--,u.linkBack=a.pop(),t[u.linkBack].linkNext=t.length-1;else if("COMMA"===c)u.linkBack=a.pop(),t[u.linkBack].linkNext=t.length-1,a.push(t.length-1);else if("OPEN_BRACKET"===c)u.type="BRACKET";else if("CLOSE_BRACKET"===c){let e=t.pop().text;if(t.length>0&&"NUMBER"===t[t.length-1].type){const n=t.pop().text;e=n+e,t[t.length-1].value=(0,s.WZ)(n)}if(0===t.length||"BRACKET"!==t[t.length-1].type)throw new Error("missing opening bracket");t[t.length-1].text+=e}}else if(l=o.match(w),l){if(u.text=l[1],i+=u.text.length,y.has(u.text)){u.type="KEYWORD";continue}if(u.text.match(x)){u.type="TYPE";continue}u.type="ID"}else{if(l=o.match(b),!l)throw new Error(`unexpected token ${JSON.stringify(o[0])} at position ${i}`);u.text=l[1],u.type="NUMBER",i+=u.text.length}}return new v(t.map(e=>Object.freeze(e)))}function A(e,t){let n=[];for(const r in t.keys())e.has(r)&&n.push(r);if(n.length>1)throw new Error(`conflicting types: ${n.join(", ")}`)}function O(e,t){if(t.peekKeyword(f)){const n=t.pop().text;if(n!==e)throw new Error(`expected ${e}, got ${n}`)}return t.popType("ID")}function k(e,t){const n=new Set;for(;;
1){const r=e.peekType("KEYWORD");if(null==r||t&&!t.has(r))break;if(e.pop(),n.has(r))throw new Error(`duplicate keywords: ${JSON.stringify(r)}`);n.add(r)}return Object.freeze(n)}function N(e){let t=k(e,c);return A(t,o("constant payable nonpayable".split(" "))),A(t,o("pure view payable nonpayable".split(" "))),t.has("view")?"view":t.has("pure")?"pure":t.has("payable")?"payable":t.has("nonpayable")?"nonpayable":t.has("constant")?"view":"nonpayable"}function _(e,t){return e.popParams().map(e=>D.from(e,t))}function j(e){if(e.peekType("AT")){if(e.pop(),e.peekType("NUMBER"))return(0,s.Ab)(e.pop().text);throw new Error("invalid gas")}return null}function T(e){if(e.length)throw new Error(`unexpected tokens at offset ${e.offset}: ${e.toString()}`)}const $=new RegExp(/^(.*)\[([0-9]*)\]$/);function M(e){const t=e.match(x);if((0,r.MR)(t,"invalid type","type",e),"uint"===e)return"uint256";if("int"===e)return"int256";if(t[2]){const n=parseInt(t[2]);(0,r.MR)(0!==n&&n<=32,"invalid bytes length","type",e)}else if(t[3]){const n=parseInt(t[3]);(0,r.MR)(0!==n&&n<=256&&n%8==0,"invalid numeric width","type",e)}return e}const L={},I=Symbol.for("_ethers_internal"),S="_ParamTypeInternal",P="_ErrorInternal",U="_EventInternal",B="_ConstructorInternal",V="_FallbackInternal",C="_FunctionInternal",F="_StructInternal";class D{name;type;baseType;indexed;components;arrayLength;arrayChildren;constructor(e,t,n,s,i,o,l,u){if((0,r.gk)(e,L,"ParamType"),Object.defineProperty(this,I,{value:S}),o&&(o=Object.freeze(o.slice())),"array"===s){if(null==l||null==u)throw new Error("")}else if(null!=l||null!=u)throw new Error("");if("tuple"===s){if(null==o)throw new Error("")}else if(null!=o)throw new Error("");(0,a.n)(this,{name:t,type:n,baseType:s,indexed:i,components:o,arrayLength:l,arrayChildren:u})}format(e){if(null==e&&(e="sighash"),"json"===e){const t=this.name||"";if(this.isArray()){const e=JSON.parse(this.arrayChildren.format("json"));return e.name=t,e.type+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`,JSON.stringify(e)}const n={type:"tuple"===this.baseType?"tuple":this.type,name:t};return"boolean"==typeof this.indexed&&(n.indexed=this.indexed),this.isTuple()&&(n.components=this.components.map(t=>JSON.parse(t.format(e)))),JSON.stringify(n)}let t="";return this.isArray()?(t+=this.arrayChildren.format(e),t+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`):this.isTuple()?t+="("+this.components.map(t=>t.format(e)).join("full"===e?", ":",")+")":t+=this.type,"sighash"!==e&&(!0===this.indexed&&(t+=" indexed"),"full"===e&&this.name&&(t+=" "+this.name)),t}isArray(){return"array"===this.baseType}isTuple(){return"tuple"===this.baseType}isIndexable(){return null!=this.indexed}walk(e,t){if(this.isArray()){if(!Array.isArray(e))throw new Error("invalid array value");if(-1!==this.arrayLength&&e.length!==this.arrayLength)throw new Error("array is wrong length");const n=this;return e.map(e=>n.arrayChildren.walk(e,t))}if(this.isTuple()){if(!Array.isArray(e))throw new Error("invalid tuple value");if(e.length!==this.components.length)throw new Error("array is wrong length");const n=this;return e.map((e,r)=>n.components[r].walk(e,t))}return t(this.type,e)}#s(e,t,n,r){if(this.isArray()){if(!Array.isArray(t))throw new Error("invalid array value");if(-1!==this.arrayLength&&t.length!==this.arrayLength)throw new Error("array is wrong length");const s=this.arrayChildren,a=t.slice();return a.forEach((t,r)=>{s.#s(e,t,n,e=>{a[r]=e})}),void r(a)}if(this.isTuple()){const s=this.components;let a;if(Array.isArray(t))a=t.slice();else{if(null==t||"object"!=typeof t)throw new Error("invalid tuple value");a=s.map(e=>{if(!e.name)throw new Error("cannot use object value with unnamed components");if(!(e.name in t))throw new Error(`missing value for component ${e.name}`);return t[e.name]})}if(a.length!==this.components.length)throw new Error("array is wrong length");return a.forEach((t,r)=>{s[r].#s(e,t,n,e=>{a[r]=e})}),void r(a)}const s=n(this.type,t);s.then?e.push(async function(){r(await s)}()):r(s)}async walkAsync(e,t){const n=[],r=[e];return this.#s(n,e,t,e=>{r[0]=e}),n.length&&await Promise.all(n),r[0]}static from(e,t){if(D.isParamType(e))return e;if("string"==typeof e)try{return D.from(R(e),t)}catch(t){(0,r.MR)(!1,"invalid param type","obj",e)}else if(e instanceof v){let n="",r="",s=null;k(e,o(["tuple"])).has("tuple")||e.peekType("OPEN_PAREN")?(r="tuple",s=e.popParams().map(e=>D.from(e)),n=`tuple(${s.map(e=>e.format()).join(",")})`):(n=M(e.popType("TYPE")),r=n);let a=null,i=null;for(;e.length&&e.peekType("BRACKET");){const t=e.pop();a=new D(L,"",n,r,null,s,i,a),i=t.value,n+=t.text,r="array",s=null}let l=null;if(k(e,d).has("indexed")){if(!t)throw new Error("");l=!0}
1const u=e.peekType("ID")?e.pop().text:"";if(e.length)throw new Error("leftover tokens");return new D(L,u,n,r,l,s,i,a)}const n=e.name;(0,r.MR)(!n||"string"==typeof n&&n.match(E),"invalid name","obj.name",n);let s=e.indexed;null!=s&&((0,r.MR)(t,"parameter cannot be indexed","obj.indexed",e.indexed),s=!!s);let a=e.type,i=a.match($);if(i){const t=parseInt(i[2]||"-1"),r=D.from({type:i[1],components:e.components});return new D(L,n||"",a,"array",s,null,t,r)}if("tuple"===a||a.startsWith("tuple(")||a.startsWith("(")){const t=null!=e.components?e.components.map(e=>D.from(e)):null;return new D(L,n||"",a,"tuple",s,t,null,null)}return a=M(e.type),new D(L,n||"",a,a,s,null,null,null)}static isParamType(e){return e&&e[I]===S}}class z{type;inputs;constructor(e,t,n){(0,r.gk)(e,L,"Fragment"),n=Object.freeze(n.slice()),(0,a.n)(this,{type:t,inputs:n})}static from(e){if("string"==typeof e){try{z.from(JSON.parse(e))}catch(e){}return z.from(R(e))}if(e instanceof v){switch(e.peekKeyword(f)){case"constructor":return Z.from(e);case"error":return W.from(e);case"event":return Y.from(e);case"fallback":case"receive":return G.from(e);case"function":return H.from(e);case"struct":return X.from(e)}}else if("object"==typeof e){switch(e.type){case"constructor":return Z.from(e);case"error":return W.from(e);case"event":return Y.from(e);case"fallback":case"receive":return G.from(e);case"function":return H.from(e);case"struct":return X.from(e)}(0,r.vA)(!1,`unsupported type: ${e.type}`,"UNSUPPORTED_OPERATION",{operation:"Fragment.from"})}(0,r.MR)(!1,"unsupported frgament object","obj",e)}static isConstructor(e){return Z.isFragment(e)}static isError(e){return W.isFragment(e)}static isEvent(e){return Y.isFragment(e)}static isFunction(e){return H.isFragment(e)}static isStruct(e){return X.isFragment(e)}}class K extends z{name;
1constructor(e,t,n,s){super(e,t,s),(0,r.MR)("string"==typeof n&&n.match(E),"invalid identifier","name",n),s=Object.freeze(s.slice()),(0,a.n)(this,{name:n})}}function J(e,t){return"("+t.map(t=>t.format(e)).join("full"===e?", ":",")+")"}class W extends K{constructor(e,t,n){super(e,"error",t,n),Object.defineProperty(this,I,{value:P})}get selector(){return(0,i.id)(this.format("sighash")).substring(0,10)}format(e){if(null==e&&(e="sighash"),"json"===e)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});const t=[];return"sighash"!==e&&t.push("error"),t.push(this.name+J(e,this.inputs)),t.join(" ")}static from(e){if(W.isFragment(e))return e;if("string"==typeof e)return W.from(R(e));if(e instanceof v){const t=O("error",e),n=_(e);return T(e),new W(L,t,n)}return new W(L,e.name,e.inputs?e.inputs.map(D.from):[])}static isFragment(e){return e&&e[I]===P}}class Y extends K{anonymous;constructor(e,t,n,r){super(e,"event",t,n),Object.defineProperty(this,I,{value:U}),(0,a.n)(this,{anonymous:r})}get topicHash(){return(0,i.id)(this.format("sighash"))}format(e){if(null==e&&(e="sighash"),"json"===e)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});const t=[];return"sighash"!==e&&t.push("event"),t.push(this.name+J(e,this.inputs)),"sighash"!==e&&this.anonymous&&t.push("anonymous"),t.join(" ")}static getTopicHash(e,t){t=(t||[]).map(e=>D.from(e));return new Y(L,e,t,!1).topicHash}static from(e){if(Y.isFragment(e))return e;if("string"==typeof e)try{return Y.from(R(e))}catch(t){(0,r.MR)(!1,"invalid event fragment","obj",e)}else if(e instanceof v){const t=O("event",e),n=_(e,!0),r=!!k(e,o(["anonymous"])).has("anonymous");return T(e),new Y(L,t,n,r)}return new Y(L,e.name,e.inputs?e.inputs.map(e=>D.from(e,!0)):[],!!e.anonymous)}static isFragment(e){return e&&e[I]===U}}class Z extends z{payable;gas;constructor(e,t,n,r,s){super(e,t,n),Object.defineProperty(this,I,{value:B}),(0,a.n)(this,{payable:r,gas:s})}format(e){if((0,r.vA)(null!=e&&"sighash"!==e,"cannot format a constructor for sighash","UNSUPPORTED_OPERATION",{operation:"format(sighash)"}),"json"===e)return JSON.stringify({type:"constructor",stateMutability:this.payable?"payable":"undefined",payable:this.payable,gas:null!=this.gas?this.gas:void 0,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});const t=[`constructor${J(e,this.inputs)}`];return this.payable&&t.push("payable"),null!=this.gas&&t.push(`@${this.gas.toString()}`),t.join(" ")}static from(e){if(Z.isFragment(e))return e;if("string"==typeof e)try{return Z.from(R(e))}catch(t){(0,r.MR)(!1,"invalid constuctor fragment","obj",e)}else if(e instanceof v){k(e,o(["constructor"]));const t=_(e),n=!!k(e,l).has("payable"),r=j(e);return T(e),new Z(L,"constructor",t,n,r)}return new Z(L,"constructor",e.inputs?e.inputs.map(D.from):[],!!e.payable,null!=e.gas?e.gas:null)}static isFragment(e){return e&&e[I]===B}}class G extends z{payable;constructor(e,t,n){super(e,"fallback",t),Object.defineProperty(this,I,{value:V}),(0,a.n)(this,{payable:n})}format(e){const t=0===this.inputs.length?"receive":"fallback";if("json"===e){const e=this.payable?"payable":"nonpayable";return JSON.stringify({type:t,stateMutability:e})}return`${t}()${this.payable?" payable":""}`}static from(e){if(G.isFragment(e))return e;if("string"==typeof e)try{return G.from(R(e))}catch(t){(0,r.MR)(!1,"invalid fallback fragment","obj",e)}else if(e instanceof v){const t=e.toString(),n=e.peekKeyword(o(["fallback","receive"]));(0,r.MR)(n,"type must be fallback or receive","obj",t);if("receive"===e.popKeyword(o(["fallback","receive"]))){const t=_(e);return(0,r.MR)(0===t.length,"receive cannot have arguments","obj.inputs",t),k(e,o(["payable"])),T(e),new G(L,[],!0)}let s=_(e);s.length?(0,r.MR)(1===s.length&&"bytes"===s[0].type,"invalid fallback inputs","obj.inputs",s.map(e=>e.format("minimal")).join(", ")):s=[D.from("bytes")];const a=N(e);if((0,r.MR)("nonpayable"===a||"payable"===a,"fallback cannot be constants","obj.stateMutability",a),k(e,o(["returns"])).has("returns")){const t=_(e);
1(0,r.MR)(1===t.length&&"bytes"===t[0].type,"invalid fallback outputs","obj.outputs",t.map(e=>e.format("minimal")).join(", "))}return T(e),new G(L,s,"payable"===a)}if("receive"===e.type)return new G(L,[],!0);if("fallback"===e.type){const t=[D.from("bytes")],n="payable"===e.stateMutability;return new G(L,t,n)}(0,r.MR)(!1,"invalid fallback description","obj",e)}static isFragment(e){return e&&e[I]===V}}class H extends K{constant;outputs;stateMutability;payable;gas;constructor(e,t,n,r,s,i){super(e,"function",t,r),Object.defineProperty(this,I,{value:C}),s=Object.freeze(s.slice());const o="view"===n||"pure"===n,l="payable"===n;(0,a.n)(this,{constant:o,gas:i,outputs:s,payable:l,stateMutability:n})}get selector(){return(0,i.id)(this.format("sighash")).substring(0,10)}format(e){if(null==e&&(e="sighash"),"json"===e)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:null!=this.gas?this.gas:void 0,inputs:this.inputs.map(t=>JSON.parse(t.format(e))),outputs:this.outputs.map(t=>JSON.parse(t.format(e)))});const t=[];return"sighash"!==e&&t.push("function"),t.push(this.name+J(e,this.inputs)),"sighash"!==e&&("nonpayable"!==this.stateMutability&&t.push(this.stateMutability),this.outputs&&this.outputs.length&&(t.push("returns"),t.push(J(e,this.outputs))),null!=this.gas&&t.push(`@${this.gas.toString()}`)),t.join(" ")}static getSelector(e,t){t=(t||[]).map(e=>D.from(e));return new H(L,e,"view",t,[],null).selector}static from(e){if(H.isFragment(e))return e;if("string"==typeof e)try{return H.from(R(e))}catch(t){(0,r.MR)(!1,"invalid function fragment","obj",e)}else if(e instanceof v){const t=O("function",e),n=_(e),r=N(e);let s=[];k(e,o(["returns"])).has("returns")&&(s=_(e));const a=j(e);return T(e),new H(L,t,r,n,s,a)}let t=e.stateMutability;return null==t&&(t="payable","boolean"==typeof e.constant?(t="view",e.constant||(t="payable","boolean"!=typeof e.payable||e.payable||(t="nonpayable"))):"boolean"!=typeof e.payable||e.payable||(t="nonpayable")),new H(L,e.name,t,e.inputs?e.inputs.map(D.from):[],e.outputs?e.outputs.map(D.from):[],null!=e.gas?e.gas:null)}static isFragment(e){return e&&e[I]===C}}class X extends K{constructor(e,t,n){super(e,"struct",t,n),Object.defineProperty(this,I,{value:F})}format(){throw new Error("@TODO")}static from(e){if("string"==typeof e)try{return X.from(R(e))}catch(t){(0,r.MR)(!1,"invalid struct fragment","obj",e)}else if(e instanceof v){const t=O("struct",e),n=_(e);return T(e),new X(L,t,n)}return new X(L,e.name,e.inputs?e.inputs.map(D.from):[])}static isFragment(e){return e&&e[I]===F}}},421228:(e,t,n)=>{n.d(t,{AU:()=>w,Q7:()=>m,Ue:()=>b,Yx:()=>o,mP:()=>E});var r=n(236212),s=n(657339),a=n(727033),i=n(888081);const o=32,l=new Uint8Array(o),u=["then"],c={},h=new WeakMap;function f(e){return h.get(e)}function p(e,t){h.set(e,t)}function d(e,t){const n=new Error(`deferred error during ABI decoding triggered accessing ${e}`);throw n.error=t,n}function y(e,t,n){return e.indexOf(null)>=0?t.map((e,t)=>e instanceof m?y(f(e),e,n):e):e.reduce((e,r,s)=>{let a=t.getValue(r);return r in e||(n&&a instanceof m&&(a=y(f(a),a,n)),e[r]=a),e},{})}class m extends Array{#a;constructor(...e){const t=e[0];let n=e[1],r=(e[2]||[]).slice(),s=!0;t!==c&&(n=e,r=[],s=!1),super(n.length),n.forEach((e,t)=>{this[t]=e});const i=r.reduce((e,t)=>("string"==typeof t&&e.set(t,(e.get(t)||0)+1),e),new Map);if(p(this,Object.freeze(n.map((e,t)=>{const n=r[t];return null!=n&&1===i.get(n)?n:null}))),this.#a=[],null==this.#a&&this.#a,!s)return;Object.freeze(this);const o=new Proxy(this,{get:(e,t,n)=>{if("string"==typeof t){if(t.match(/^[0-9]+$/)){const n=(0,a.WZ)(t,"%index");if(n<0||n>=this.length)throw new RangeError("out of result range");const r=e[n];return r instanceof Error&&d(`index ${n}`,r),r}if(u.indexOf(t)>=0)return Reflect.get(e,t,n);const r=e[t];if(r instanceof Function)return function(...t){return r.apply(this===n?e:this,t)};if(!(t in e))return e.getValue.apply(this===n?e:this,[t])}return Reflect.get(e,t,n)}});return p(o,f(this)),o}toArray(e){const t=[];return this.forEach((n,r)=>{n instanceof Error&&d(`index ${r}`,n),e&&n instanceof m&&(n=n.toArray(e)),t.push(n)}),t}toObject(e){const t=f(this);return t.reduce((n,r,a)=>((0,s.vA)(null!=r,`value at index ${a} unnamed`,"UNSUPPORTED_OPERATION",{operation:"toObject()"}),y(t,this,e)),{})}slice(e,t){null==e&&(e=0),e<0&&(e+=this.length)<0&&(e=0),null==t&&(t=this.length),t<0&&(t+=this.length)<0&&(t=0),t>this.length&&(t=this.length);const n=f(this),r=[],s=[];for(let a=e;a<t;a++)r.push(this[a]),s.push(n[a]);return new m(c,r,s)}filter(e,t){const n=f(this),r=[],s=[];for(let a=0;a<this.length;a++){const i=this[a];i instanceof Error&&d(`index ${a}`,i),e.call(t,i,a,this)&&(r.push(i),s.push(n[a]))}return new m(c,r,s)}map(e,t){const n=[];for(let r=0;r<this.length;r++){const s=this[r];s instanceof Error&&d(`index ${r}`,s),n.push(e.call(t,s,r,this))}return n}getValue(e){const t=f(this).indexOf(e);if(-1===t)return;const n=this[t];return n instanceof Error&&d(`property ${JSON.stringify(e)}`,n.error),n}static fromItems(e,t){return new m(c,e,t)}}function g(e){let t=(0,a.c4)(e);return(0,s.vA)(t.length<=o,"value out-of-bounds","BUFFER_OVERRUN",{buffer:t,length:o,offset:t.length}),t.length!==o&&(t=(0,r.Lm)((0,r.xW)([l.slice(t.length%o),t]))),t}class b{name;type;localName;dynamic;constructor(e,t,n,r){(0,i.n)(this,{name:e,type:t,localName:n,dynamic:r},{name:"string",type:"string",localName:"string",dynamic:"boolean"})}_throwError(e,t){(0,s.MR)(!1,e,this.localName,t)}}class w{#i;#o;constructor(){this.#i=[],this.#o=0}get data(){return(0,r.xW)(this.#i)}get length(){return this.#o}#l(e){return this.#i.push(e),this.#o+=e.length,e.length}appendWriter(e){return this.#l((0,r.Lm)(e.data))}writeBytes(e){let t=(0,r.Lm)(e);const n=t.length%o;
1return n&&(t=(0,r.Lm)((0,r.xW)([t,l.slice(n)]))),this.#l(t)}writeValue(e){return this.#l(g(e))}writeUpdatableValue(){const e=this.#i.length;return this.#i.push(l),this.#o+=o,t=>{this.#i[e]=g(t)}}}class E{allowLoose;#i;#t;#u;#c;#h;constructor(e,t,n){(0,i.n)(this,{allowLoose:!!t}),this.#i=(0,r.Lm)(e),this.#u=0,this.#c=null,this.#h=null!=n?n:1024,this.#t=0}get data(){return(0,r.c$)(this.#i)}get dataLength(){return this.#i.length}get consumed(){return this.#t}get bytes(){return new Uint8Array(this.#i)}#f(e){if(this.#c)return this.#c.#f(e);this.#u+=e,(0,s.vA)(this.#h<1||this.#u<=this.#h*this.dataLength,`compressed ABI data exceeds inflation ratio of ${this.#h} ( see: https://github.com/ethers-io/ethers.js/issues/4537 )`,"BUFFER_OVERRUN",{buffer:(0,r.Lm)(this.#i),offset:this.#t,length:e,info:{bytesRead:this.#u,dataLength:this.dataLength}})}#p(e,t,n){let a=Math.ceil(t/o)*o;return this.#t+a>this.#i.length&&(this.allowLoose&&n&&this.#t+t<=this.#i.length?a=t:(0,s.vA)(!1,"data out-of-bounds","BUFFER_OVERRUN",{buffer:(0,r.Lm)(this.#i),length:this.#i.length,offset:this.#t+a})),this.#i.slice(this.#t,this.#t+a)}subReader(e){const t=new E(this.#i.slice(this.#t+e),this.allowLoose,this.#h);return t.#c=this,t}readBytes(e,t){let n=this.#p(0,e,!!t);return this.#f(e),this.#t+=n.length,n.slice(0,e)}readValue(){return(0,a.Dg)(this.readBytes(o))}readIndex(){return(0,a.Ro)(this.readBytes(o))}}},999529:(e,t,n)=>{n.d(t,{r:()=>r});const r="6.15.0"}}]);

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.