(()=>{vart={5851:(t,e,r)=>{"use strict";r.d(e,{i:()=>n});constn="abi/5.7.0"},2734:(t,e,r)=>{"use strict";r.d(e,{R:()=>x,$:()=>O});varn=r(3286),i=r(3587),o=r(711),s=r(5851),a=r(1184),u=r(4594);classlextendsa.XI{constructor(t){super("address","address",t,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(t,e){try{e=(0,u.Kn)(e)}catch(t){this._throwError(t.message,e)}returnt.writeValue(e)}decode(t){return(0,u.Kn)((0,n.$m)(t.readValue().toHexString(),20))}}classhextendsa.XI{constructor(t){super(t.name,t.type,void0,t.dynamic),this.coder=t}defaultValue(){returnthis.coder.defaultValue()}encode(t,e){returnthis.coder.encode(t,e)}decode(t){returnthis.coder.decode(t)}}constc=newo.Yd(s.i);functionf(t,e,r){letn=null;if(Array.isArray(r))n=r;elseif(r&&"object"==typeofr){lett={};n=e.map((e=>{constn=e.localName;returnn||c.throwError("cannot encode object for signature with missing names",o.Yd.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:r}),t[n]&&c.throwError("cannot encode object for signature with duplicate names",o.Yd.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:r}),t[n]=!0,r[n]}))}elsec.throwArgumentError("invalid tuple value","tuple",r);e.length!==n.length&&c.throwArgumentError("types/value length mismatch","tuple",r);leti=newa.QV(t.wordSize),s=newa.QV(t.wordSize),u=[];e.forEach(((t,e)=>{letr=n[e];if(t.dynamic){lete=s.length;t.encode(s,r);letn=i.writeUpdatableValue();u.push((t=>{n(t+e)}))}elset.encode(i,r)})),u.forEach((t=>{t(i.length)}));letl=t.appendWriter(i);returnl+=t.appendWriter(s),l}functiond(t,e){letr=[],n=t.subReader(0);e.forEach((e=>{leti=null;if(e.dynamic){letr=t.readValue(),s=n.subReader(r.toNumber());try{i=e.decode(s)}catch(t){if(t.code===o.Yd.errors.BUFFER_OVERRUN)throwt;i=t,i.baseType=e.name,i.name=e.localName,i.type=e.type}}elsetry{i=e.decode(t)}catch(t){if(t.code===o.Yd.errors.BUFFER_OVERRUN)throwt;i=t,i.baseType=e.name,i.name=e.localName,i.type=e.type}null!=i&&r.push(i)}));consti=e.reduce(((t,e)=>{constr=e.localName;returnr&&(t[r]||(t[r]=0),t[r]++),t}),{});e.forEach(((t,e)=>{letn=t.localName;if(!n||1!==i[n])return;if("length"===n&&(n="_length"),null!=r[n])return;consto=r[e];oinstanceofError?Object.defineProperty(r,n,{enumerable:!0,get:()=>{throwo}}):r[n]=o}));for(lett=0;t<r.length;t++){conste=r[t];einstanceofError&&Object.defineProperty(r,t,{enumerable:!0,get:()=>{throwe}})}returnObject.freeze(r)}classpextendsa.XI{constructor(t,e,r){super("array",t.type+"["+(e>=0?e:"")+"]",r,-1===e||t.dynamic),this.coder=t,this.length=e}defaultValue(){constt=this.coder.defaultValue(),e=[];for(letr=0;r<this.length;r++)e.push(t);returne}encode(t,e){Array.isArray(e)||this._throwError("expected array value",e);letr=this.length;-1===r&&(r=e.length,t.writeValue(e.length)),c.checkArgumentCount(e.length,r,"coder array"+(this.localName?" "+this.localName:""));letn=[];for(lett=0;t<e.length;t++)n.push(this.coder);returnf(t,n,e)}decode(t){lete=this.length;-1===e&&(e=t.readValue().toNumber(),32*e>t._data.length&&c.throwError("insufficient data length",o.Yd.errors.BUFFER_OVERRUN,{length:t._data.length,count:e}));letr=[];for(lett=0;t<e;t++)r.push(newh(this.coder));returnt.coerce(this.name,d(t,r))}}classmextendsa.XI{constructor(t){super("bool","bool",t,!1)}defaultValue(){return!1}encode(t,e){returnt.writeValue(e?1:0)}decode(t){returnt.coerce(this.type,!t.readValue().isZero())}}classgextendsa.XI{constructor(t,e){super(t,t,e,!0)}defaultValue(){return"0x"}encode(t,e){e=(0,n.lE)(e);letr=t.writeValue(e.length);returnr+=t.writeBytes(e),r}decode(t){returnt.readBytes(t.readValue().toNumber(),!0)}}classvextendsg{constructor(t){super("bytes",t)}decode(t){returnt.coerce(this.name,(0,n.Dv)(super.decode(t)))}}classyextendsa.XI{constructor(t,e){letr="bytes"+String(t);super(r,r,e,!1),this.size=t}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}encode(t,e){letr=(0,n.lE)(e);returnr.length!==this.size&&this._throwError("incorrect data length",e),t.writeBytes(r)