@subql/frontier-evm-processor 0.1.2 → 0.1.3-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bundle.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var q$=Object.create;var ca=Object.defineProperty,U$=Object.defineProperties,Gh=Object.getOwnPropertyDescriptor,V$=Object.getOwnPropertyDescriptors,k$=Object.getOwnPropertyNames,kh=Object.getOwnPropertySymbols,H$=Object.getPrototypeOf,Zh=Object.prototype.hasOwnProperty,G$=Object.prototype.propertyIsEnumerable;var Hh=(e,t,r)=>t in e?ca(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ha=(e,t)=>{for(var r in t||(t={}))Zh.call(t,r)&&Hh(e,r,t[r]);if(kh)for(var r of kh(t))G$.call(t,r)&&Hh(e,r,t[r]);return e},pa=(e,t)=>U$(e,V$(t));var Z$=(e,t)=>()=>(e&&(t=e(e=0)),t);var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),jh=(e,t)=>{for(var r in t)ca(e,r,{get:t[r],enumerable:!0})},Wh=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of k$(t))!Zh.call(e,i)&&i!==r&&ca(e,i,{get:()=>t[i],enumerable:!(n=Gh(t,i))||n.enumerable});return e};var an=(e,t,r)=>(r=e!=null?q$(H$(e)):{},Wh(t||!e||!e.__esModule?ca(r,"default",{value:e,enumerable:!0}):r,e)),fl=e=>Wh(ca({},"__esModule",{value:!0}),e),Yi=(e,t,r,n)=>{for(var i=n>1?void 0:n?Gh(t,r):t,a=e.length-1,u;a>=0;a--)(u=e[a])&&(i=(n?u(t,r,i):u(i))||i);return n&&i&&ca(t,r,i),i};var Yh=h((zh,dl)=>{(function(e,t){"use strict";function r(A,o){if(!A)throw new Error(o||"Assertion failed")}function n(A,o){A.super_=o;var d=function(){};d.prototype=o.prototype,A.prototype=new d,A.prototype.constructor=A}function i(A,o,d){if(i.isBN(A))return A;this.negative=0,this.words=null,this.length=0,this.red=null,A!==null&&((o==="le"||o==="be")&&(d=o,o=10),this._init(A||0,o||10,d||"be"))}typeof e=="object"?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;var a;try{typeof window<"u"&&typeof window.Buffer<"u"?a=window.Buffer:a=require("buffer").Buffer}catch{}i.isBN=function(o){return o instanceof i?!0:o!==null&&typeof o=="object"&&o.constructor.wordSize===i.wordSize&&Array.isArray(o.words)},i.max=function(o,d){return o.cmp(d)>0?o:d},i.min=function(o,d){return o.cmp(d)<0?o:d},i.prototype._init=function(o,d,g){if(typeof o=="number")return this._initNumber(o,d,g);if(typeof o=="object")return this._initArray(o,d,g);d==="hex"&&(d=16),r(d===(d|0)&&d>=2&&d<=36),o=o.toString().replace(/\s+/g,"");var y=0;o[0]==="-"&&(y++,this.negative=1),y<o.length&&(d===16?this._parseHex(o,y,g):(this._parseBase(o,d,y),g==="le"&&this._initArray(this.toArray(),d,g)))},i.prototype._initNumber=function(o,d,g){o<0&&(this.negative=1,o=-o),o<67108864?(this.words=[o&67108863],this.length=1):o<4503599627370496?(this.words=[o&67108863,o/67108864&67108863],this.length=2):(r(o<9007199254740992),this.words=[o&67108863,o/67108864&67108863,1],this.length=3),g==="le"&&this._initArray(this.toArray(),d,g)},i.prototype._initArray=function(o,d,g){if(r(typeof o.length=="number"),o.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(o.length/3),this.words=new Array(this.length);for(var y=0;y<this.length;y++)this.words[y]=0;var v,b,M=0;if(g==="be")for(y=o.length-1,v=0;y>=0;y-=3)b=o[y]|o[y-1]<<8|o[y-2]<<16,this.words[v]|=b<<M&67108863,this.words[v+1]=b>>>26-M&67108863,M+=24,M>=26&&(M-=26,v++);else if(g==="le")for(y=0,v=0;y<o.length;y+=3)b=o[y]|o[y+1]<<8|o[y+2]<<16,this.words[v]|=b<<M&67108863,this.words[v+1]=b>>>26-M&67108863,M+=24,M>=26&&(M-=26,v++);return this._strip()};function u(A,o){var d=A.charCodeAt(o);if(d>=48&&d<=57)return d-48;if(d>=65&&d<=70)return d-55;if(d>=97&&d<=102)return d-87;r(!1,"Invalid character in "+A)}function f(A,o,d){var g=u(A,d);return d-1>=o&&(g|=u(A,d-1)<<4),g}i.prototype._parseHex=function(o,d,g){this.length=Math.ceil((o.length-d)/6),this.words=new Array(this.length);for(var y=0;y<this.length;y++)this.words[y]=0;var v=0,b=0,M;if(g==="be")for(y=o.length-1;y>=d;y-=2)M=f(o,d,y)<<v,this.words[b]|=M&67108863,v>=18?(v-=18,b+=1,this.words[b]|=M>>>26):v+=8;else{var m=o.length-d;for(y=m%2===0?d+1:d;y<o.length;y+=2)M=f(o,d,y)<<v,this.words[b]|=M&67108863,v>=18?(v-=18,b+=1,this.words[b]|=M>>>26):v+=8}this._strip()};function p(A,o,d,g){for(var y=0,v=0,b=Math.min(A.length,d),M=o;M<b;M++){var m=A.charCodeAt(M)-48;y*=g,m>=49?v=m-49+10:m>=17?v=m-17+10:v=m,r(m>=0&&v<g,"Invalid character"),y+=v}return y}i.prototype._parseBase=function(o,d,g){this.words=[0],this.length=1;for(var y=0,v=1;v<=67108863;v*=d)y++;y--,v=v/d|0;for(var b=o.length-g,M=b%y,m=Math.min(b,b-M)+g,s=0,_=g;_<m;_+=y)s=p(o,_,_+y,d),this.imuln(v),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s);if(M!==0){var L=1;for(s=p(o,_,o.length,d),_=0;_<M;_++)L*=d;this.imuln(L),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s)}this._strip()},i.prototype.copy=function(o){o.words=new Array(this.length);for(var d=0;d<this.length;d++)o.words[d]=this.words[d];o.length=this.length,o.negative=this.negative,o.red=this.red};function c(A,o){A.words=o.words,A.length=o.length,A.negative=o.negative,A.red=o.red}if(i.prototype._move=function(o){c(o,this)},i.prototype.clone=function(){var o=new i(null);return this.copy(o),o},i.prototype._expand=function(o){for(;this.length<o;)this.words[this.length++]=0;return this},i.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=$}catch{i.prototype.inspect=$}else i.prototype.inspect=$;function $(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var E=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],C=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],N=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(o,d){o=o||10,d=d|0||1;var g;if(o===16||o==="hex"){g="";for(var y=0,v=0,b=0;b<this.length;b++){var M=this.words[b],m=((M<<y|v)&16777215).toString(16);v=M>>>24-y&16777215,y+=2,y>=26&&(y-=26,b--),v!==0||b!==this.length-1?g=E[6-m.length]+m+g:g=m+g}for(v!==0&&(g=v.toString(16)+g);g.length%d!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}if(o===(o|0)&&o>=2&&o<=36){var s=C[o],_=N[o];g="";var L=this.clone();for(L.negative=0;!L.isZero();){var l=L.modrn(_).toString(o);L=L.idivn(_),L.isZero()?g=l+g:g=E[s-l.length]+l+g}for(this.isZero()&&(g="0"+g);g.length%d!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var o=this.words[0];return this.length===2?o+=this.words[1]*67108864:this.length===3&&this.words[2]===1?o+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-o:o},i.prototype.toJSON=function(){return this.toString(16,2)},a&&(i.prototype.toBuffer=function(o,d){return this.toArrayLike(a,o,d)}),i.prototype.toArray=function(o,d){return this.toArrayLike(Array,o,d)};var P=function(o,d){return o.allocUnsafe?o.allocUnsafe(d):new o(d)};i.prototype.toArrayLike=function(o,d,g){this._strip();var y=this.byteLength(),v=g||Math.max(1,y);r(y<=v,"byte array longer than desired length"),r(v>0,"Requested array length <= 0");var b=P(o,v),M=d==="le"?"LE":"BE";return this["_toArrayLike"+M](b,y),b},i.prototype._toArrayLikeLE=function(o,d){for(var g=0,y=0,v=0,b=0;v<this.length;v++){var M=this.words[v]<<b|y;o[g++]=M&255,g<o.length&&(o[g++]=M>>8&255),g<o.length&&(o[g++]=M>>16&255),b===6?(g<o.length&&(o[g++]=M>>24&255),y=0,b=0):(y=M>>>24,b+=2)}if(g<o.length)for(o[g++]=y;g<o.length;)o[g++]=0},i.prototype._toArrayLikeBE=function(o,d){for(var g=o.length-1,y=0,v=0,b=0;v<this.length;v++){var M=this.words[v]<<b|y;o[g--]=M&255,g>=0&&(o[g--]=M>>8&255),g>=0&&(o[g--]=M>>16&255),b===6?(g>=0&&(o[g--]=M>>24&255),y=0,b=0):(y=M>>>24,b+=2)}if(g>=0)for(o[g--]=y;g>=0;)o[g--]=0},Math.clz32?i.prototype._countBits=function(o){return 32-Math.clz32(o)}:i.prototype._countBits=function(o){var d=o,g=0;return d>=4096&&(g+=13,d>>>=13),d>=64&&(g+=7,d>>>=7),d>=8&&(g+=4,d>>>=4),d>=2&&(g+=2,d>>>=2),g+d},i.prototype._zeroBits=function(o){if(o===0)return 26;var d=o,g=0;return(d&8191)===0&&(g+=13,d>>>=13),(d&127)===0&&(g+=7,d>>>=7),(d&15)===0&&(g+=4,d>>>=4),(d&3)===0&&(g+=2,d>>>=2),(d&1)===0&&g++,g},i.prototype.bitLength=function(){var o=this.words[this.length-1],d=this._countBits(o);return(this.length-1)*26+d};function R(A){for(var o=new Array(A.bitLength()),d=0;d<o.length;d++){var g=d/26|0,y=d%26;o[d]=A.words[g]>>>y&1}return o}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,d=0;d<this.length;d++){var g=this._zeroBits(this.words[d]);if(o+=g,g!==26)break}return o},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(o){return this.negative!==0?this.abs().inotn(o).iaddn(1):this.clone()},i.prototype.fromTwos=function(o){return this.testn(o-1)?this.notn(o).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(o){for(;this.length<o.length;)this.words[this.length++]=0;for(var d=0;d<o.length;d++)this.words[d]=this.words[d]|o.words[d];return this._strip()},i.prototype.ior=function(o){return r((this.negative|o.negative)===0),this.iuor(o)},i.prototype.or=function(o){return this.length>o.length?this.clone().ior(o):o.clone().ior(this)},i.prototype.uor=function(o){return this.length>o.length?this.clone().iuor(o):o.clone().iuor(this)},i.prototype.iuand=function(o){var d;this.length>o.length?d=o:d=this;for(var g=0;g<d.length;g++)this.words[g]=this.words[g]&o.words[g];return this.length=d.length,this._strip()},i.prototype.iand=function(o){return r((this.negative|o.negative)===0),this.iuand(o)},i.prototype.and=function(o){return this.length>o.length?this.clone().iand(o):o.clone().iand(this)},i.prototype.uand=function(o){return this.length>o.length?this.clone().iuand(o):o.clone().iuand(this)},i.prototype.iuxor=function(o){var d,g;this.length>o.length?(d=this,g=o):(d=o,g=this);for(var y=0;y<g.length;y++)this.words[y]=d.words[y]^g.words[y];if(this!==d)for(;y<d.length;y++)this.words[y]=d.words[y];return this.length=d.length,this._strip()},i.prototype.ixor=function(o){return r((this.negative|o.negative)===0),this.iuxor(o)},i.prototype.xor=function(o){return this.length>o.length?this.clone().ixor(o):o.clone().ixor(this)},i.prototype.uxor=function(o){return this.length>o.length?this.clone().iuxor(o):o.clone().iuxor(this)},i.prototype.inotn=function(o){r(typeof o=="number"&&o>=0);var d=Math.ceil(o/26)|0,g=o%26;this._expand(d),g>0&&d--;for(var y=0;y<d;y++)this.words[y]=~this.words[y]&67108863;return g>0&&(this.words[y]=~this.words[y]&67108863>>26-g),this._strip()},i.prototype.notn=function(o){return this.clone().inotn(o)},i.prototype.setn=function(o,d){r(typeof o=="number"&&o>=0);var g=o/26|0,y=o%26;return this._expand(g+1),d?this.words[g]=this.words[g]|1<<y:this.words[g]=this.words[g]&~(1<<y),this._strip()},i.prototype.iadd=function(o){var d;if(this.negative!==0&&o.negative===0)return this.negative=0,d=this.isub(o),this.negative^=1,this._normSign();if(this.negative===0&&o.negative!==0)return o.negative=0,d=this.isub(o),o.negative=1,d._normSign();var g,y;this.length>o.length?(g=this,y=o):(g=o,y=this);for(var v=0,b=0;b<y.length;b++)d=(g.words[b]|0)+(y.words[b]|0)+v,this.words[b]=d&67108863,v=d>>>26;for(;v!==0&&b<g.length;b++)d=(g.words[b]|0)+v,this.words[b]=d&67108863,v=d>>>26;if(this.length=g.length,v!==0)this.words[this.length]=v,this.length++;else if(g!==this)for(;b<g.length;b++)this.words[b]=g.words[b];return this},i.prototype.add=function(o){var d;return o.negative!==0&&this.negative===0?(o.negative=0,d=this.sub(o),o.negative^=1,d):o.negative===0&&this.negative!==0?(this.negative=0,d=o.sub(this),this.negative=1,d):this.length>o.length?this.clone().iadd(o):o.clone().iadd(this)},i.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var d=this.iadd(o);return o.negative=1,d._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(o),this.negative=1,this._normSign();var g=this.cmp(o);if(g===0)return this.negative=0,this.length=1,this.words[0]=0,this;var y,v;g>0?(y=this,v=o):(y=o,v=this);for(var b=0,M=0;M<v.length;M++)d=(y.words[M]|0)-(v.words[M]|0)+b,b=d>>26,this.words[M]=d&67108863;for(;b!==0&&M<y.length;M++)d=(y.words[M]|0)+b,b=d>>26,this.words[M]=d&67108863;if(b===0&&M<y.length&&y!==this)for(;M<y.length;M++)this.words[M]=y.words[M];return this.length=Math.max(this.length,M),y!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(o){return this.clone().isub(o)};function k(A,o,d){d.negative=o.negative^A.negative;var g=A.length+o.length|0;d.length=g,g=g-1|0;var y=A.words[0]|0,v=o.words[0]|0,b=y*v,M=b&67108863,m=b/67108864|0;d.words[0]=M;for(var s=1;s<g;s++){for(var _=m>>>26,L=m&67108863,l=Math.min(s,o.length-1),S=Math.max(0,s-A.length+1);S<=l;S++){var I=s-S|0;y=A.words[I]|0,v=o.words[S]|0,b=y*v+L,_+=b/67108864|0,L=b&67108863}d.words[s]=L|0,m=_|0}return m!==0?d.words[s]=m|0:d.length--,d._strip()}var Q=function(o,d,g){var y=o.words,v=d.words,b=g.words,M=0,m,s,_,L=y[0]|0,l=L&8191,S=L>>>13,I=y[1]|0,w=I&8191,F=I>>>13,V=y[2]|0,B=V&8191,D=V>>>13,ke=y[3]|0,q=ke&8191,j=ke>>>13,xi=y[4]|0,ue=xi&8191,oe=xi>>>13,Fi=y[5]|0,se=Fi&8191,fe=Fi>>>13,Di=y[6]|0,de=Di&8191,le=Di>>>13,Bi=y[7]|0,ce=Bi&8191,he=Bi>>>13,Ri=y[8]|0,pe=Ri&8191,ge=Ri>>>13,Li=y[9]|0,ye=Li&8191,me=Li>>>13,qi=v[0]|0,ve=qi&8191,_e=qi>>>13,Ui=v[1]|0,Ae=Ui&8191,$e=Ui>>>13,Vi=v[2]|0,be=Vi&8191,Ee=Vi>>>13,ki=v[3]|0,Me=ki&8191,Ne=ki>>>13,Hi=v[4]|0,Se=Hi&8191,Ie=Hi>>>13,Gi=v[5]|0,Ce=Gi&8191,Pe=Gi>>>13,Zi=v[6]|0,we=Zi&8191,Te=Zi>>>13,ji=v[7]|0,Oe=ji&8191,xe=ji>>>13,Wi=v[8]|0,Fe=Wi&8191,De=Wi>>>13,zi=v[9]|0,Be=zi&8191,Re=zi>>>13;g.negative=o.negative^d.negative,g.length=19,m=Math.imul(l,ve),s=Math.imul(l,_e),s=s+Math.imul(S,ve)|0,_=Math.imul(S,_e);var ci=(M+m|0)+((s&8191)<<13)|0;M=(_+(s>>>13)|0)+(ci>>>26)|0,ci&=67108863,m=Math.imul(w,ve),s=Math.imul(w,_e),s=s+Math.imul(F,ve)|0,_=Math.imul(F,_e),m=m+Math.imul(l,Ae)|0,s=s+Math.imul(l,$e)|0,s=s+Math.imul(S,Ae)|0,_=_+Math.imul(S,$e)|0;var hi=(M+m|0)+((s&8191)<<13)|0;M=(_+(s>>>13)|0)+(hi>>>26)|0,hi&=67108863,m=Math.imul(B,ve),s=Math.imul(B,_e),s=s+Math.imul(D,ve)|0,_=Math.imul(D,_e),m=m+Math.imul(w,Ae)|0,s=s+Math.imul(w,$e)|0,s=s+Math.imul(F,Ae)|0,_=_+Math.imul(F,$e)|0,m=m+Math.imul(l,be)|0,s=s+Math.imul(l,Ee)|0,s=s+Math.imul(S,be)|0,_=_+Math.imul(S,Ee)|0;var pi=(M+m|0)+((s&8191)<<13)|0;M=(_+(s>>>13)|0)+(pi>>>26)|0,pi&=67108863,m=Math.imul(q,ve),s=Math.imul(q,_e),s=s+Math.imul(j,ve)|0,_=Math.imul(j,_e),m=m+Math.imul(B,Ae)|0,s=s+Math.imul(B,$e)|0,s=s+Math.imul(D,Ae)|0,_=_+Math.imul(D,$e)|0,m=m+Math.imul(w,be)|0,s=s+Math.imul(w,Ee)|0,s=s+Math.imul(F,be)|0,_=_+Math.imul(F,Ee)|0,m=m+Math.imul(l,Me)|0,s=s+Math.imul(l,Ne)|0,s=s+Math.imul(S,Me)|0,_=_+Math.imul(S,Ne)|0;var gi=(M+m|0)+((s&8191)<<13)|0;M=(_+(s>>>13)|0)+(gi>>>26)|0,gi&=67108863,m=Math.imul(ue,ve),s=Math.imul(ue,_e),s=s+Math.imul(oe,ve)|0,_=Math.imul(oe,_e),m=m+Math.imul(q,Ae)|0,s=s+Math.imul(q,$e)|0,s=s+Math.imul(j,Ae)|0,_=_+Math.imul(j,$e)|0,m=m+Math.imul(B,be)|0,s=s+Math.imul(B,Ee)|0,s=s+Math.imul(D,be)|0,_=_+Math.imul(D,Ee)|0,m=m+Math.imul(w,Me)|0,s=s+Math.imul(w,Ne)|0,s=s+Math.imul(F,Me)|0,_=_+Math.imul(F,Ne)|0,m=m+Math.imul(l,Se)|0,s=s+Math.imul(l,Ie)|0,s=s+Math.imul(S,Se)|0,_=_+Math.imul(S,Ie)|0;var yi=(M+m|0)+((s&8191)<<13)|0;M=(_+(s>>>13)|0)+(yi>>>26)|0,yi&=67108863,m=Math.imul(se,ve),s=Math.imul(se,_e),s=s+Math.imul(fe,ve)|0,_=Math.imul(fe,_e),m=m+Math.imul(ue,Ae)|0,s=s+Math.imul(ue,$e)|0,s=s+Math.imul(oe,Ae)|0,_=_+Math.imul(oe,$e)|0,m=m+Math.imul(q,be)|0,s=s+Math.imul(q,Ee)|0,s=s+Math.imul(j,be)|0,_=_+Math.imul(j,Ee)|0,m=m+Math.imul(B,Me)|0,s=s+Math.imul(B,Ne)|0,s=s+Math.imul(D,Me)|0,_=_+Math.imul(D,Ne)|0,m=m+Math.imul(w,Se)|0,s=s+Math.imul(w,Ie)|0,s=s+Math.imul(F,Se)|0,_=_+Math.imul(F,Ie)|0,m=m+Math.imul(l,Ce)|0,s=s+Math.imul(l,Pe)|0,s=s+Math.imul(S,Ce)|0,_=_+Math.imul(S,Pe)|0;var Yd=(M+m|0)+((s&8191)<<13)|0;M=(_+(s>>>13)|0)+(Yd>>>26)|0,Yd&=67108863,m=Math.imul(de,ve),s=Math.imul(de,_e),s=s+Math.imul(le,ve)|0,_=Math.imul(le,_e),m=m+Math.imul(se,Ae)|0,s=s+Math.imul(se,$e)|0,s=s+Math.imul(fe,Ae)|0,_=_+Math.imul(fe,$e)|0,m=m+Math.imul(ue,be)|0,s=s+Math.imul(ue,Ee)|0,s=s+Math.imul(oe,be)|0,_=_+Math.imul(oe,Ee)|0,m=m+Math.imul(q,Me)|0,s=s+Math.imul(q,Ne)|0,s=s+Math.imul(j,Me)|0,_=_+Math.imul(j,Ne)|0,m=m+Math.imul(B,Se)|0,s=s+Math.imul(B,Ie)|0,s=s+Math.imul(D,Se)|0,_=_+Math.imul(D,Ie)|0,m=m+Math.imul(w,Ce)|0,s=s+Math.imul(w,Pe)|0,s=s+Math.imul(F,Ce)|0,_=_+Math.imul(F,Pe)|0,m=m+Math.imul(l,we)|0,s=s+Math.imul(l,Te)|0,s=s+Math.imul(S,we)|0,_=_+Math.imul(S,Te)|0;var Kd=(M+m|0)+((s&8191)<<13)|0;M=(_+(s>>>13)|0)+(Kd>>>26)|0,Kd&=67108863,m=Math.imul(ce,ve),s=Math.imul(ce,_e),s=s+Math.imul(he,ve)|0,_=Math.imul(he,_e),m=m+Math.imul(de,Ae)|0,s=s+Math.imul(de,$e)|0,s=s+Math.imul(le,Ae)|0,_=_+Math.imul(le,$e)|0,m=m+Math.imul(se,be)|0,s=s+Math.imul(se,Ee)|0,s=s+Math.imul(fe,be)|0,_=_+Math.imul(fe,Ee)|0,m=m+Math.imul(ue,Me)|0,s=s+Math.imul(ue,Ne)|0,s=s+Math.imul(oe,Me)|0,_=_+Math.imul(oe,Ne)|0,m=m+Math.imul(q,Se)|0,s=s+Math.imul(q,Ie)|0,s=s+Math.imul(j,Se)|0,_=_+Math.imul(j,Ie)|0,m=m+Math.imul(B,Ce)|0,s=s+Math.imul(B,Pe)|0,s=s+Math.imul(D,Ce)|0,_=_+Math.imul(D,Pe)|0,m=m+Math.imul(w,we)|0,s=s+Math.imul(w,Te)|0,s=s+Math.imul(F,we)|0,_=_+Math.imul(F,Te)|0,m=m+Math.imul(l,Oe)|0,s=s+Math.imul(l,xe)|0,s=s+Math.imul(S,Oe)|0,_=_+Math.imul(S,xe)|0;var Jd=(M+m|0)+((s&8191)<<13)|0;M=(_+(s>>>13)|0)+(Jd>>>26)|0,Jd&=67108863,m=Math.imul(pe,ve),s=Math.imul(pe,_e),s=s+Math.imul(ge,ve)|0,_=Math.imul(ge,_e),m=m+Math.imul(ce,Ae)|0,s=s+Math.imul(ce,$e)|0,s=s+Math.imul(he,Ae)|0,_=_+Math.imul(he,$e)|0,m=m+Math.imul(de,be)|0,s=s+Math.imul(de,Ee)|0,s=s+Math.imul(le,be)|0,_=_+Math.imul(le,Ee)|0,m=m+Math.imul(se,Me)|0,s=s+Math.imul(se,Ne)|0,s=s+Math.imul(fe,Me)|0,_=_+Math.imul(fe,Ne)|0,m=m+Math.imul(ue,Se)|0,s=s+Math.imul(ue,Ie)|0,s=s+Math.imul(oe,Se)|0,_=_+Math.imul(oe,Ie)|0,m=m+Math.imul(q,Ce)|0,s=s+Math.imul(q,Pe)|0,s=s+Math.imul(j,Ce)|0,_=_+Math.imul(j,Pe)|0,m=m+Math.imul(B,we)|0,s=s+Math.imul(B,Te)|0,s=s+Math.imul(D,we)|0,_=_+Math.imul(D,Te)|0,m=m+Math.imul(w,Oe)|0,s=s+Math.imul(w,xe)|0,s=s+Math.imul(F,Oe)|0,_=_+Math.imul(F,xe)|0,m=m+Math.imul(l,Fe)|0,s=s+Math.imul(l,De)|0,s=s+Math.imul(S,Fe)|0,_=_+Math.imul(S,De)|0;var Qd=(M+m|0)+((s&8191)<<13)|0;M=(_+(s>>>13)|0)+(Qd>>>26)|0,Qd&=67108863,m=Math.imul(ye,ve),s=Math.imul(ye,_e),s=s+Math.imul(me,ve)|0,_=Math.imul(me,_e),m=m+Math.imul(pe,Ae)|0,s=s+Math.imul(pe,$e)|0,s=s+Math.imul(ge,Ae)|0,_=_+Math.imul(ge,$e)|0,m=m+Math.imul(ce,be)|0,s=s+Math.imul(ce,Ee)|0,s=s+Math.imul(he,be)|0,_=_+Math.imul(he,Ee)|0,m=m+Math.imul(de,Me)|0,s=s+Math.imul(de,Ne)|0,s=s+Math.imul(le,Me)|0,_=_+Math.imul(le,Ne)|0,m=m+Math.imul(se,Se)|0,s=s+Math.imul(se,Ie)|0,s=s+Math.imul(fe,Se)|0,_=_+Math.imul(fe,Ie)|0,m=m+Math.imul(ue,Ce)|0,s=s+Math.imul(ue,Pe)|0,s=s+Math.imul(oe,Ce)|0,_=_+Math.imul(oe,Pe)|0,m=m+Math.imul(q,we)|0,s=s+Math.imul(q,Te)|0,s=s+Math.imul(j,we)|0,_=_+Math.imul(j,Te)|0,m=m+Math.imul(B,Oe)|0,s=s+Math.imul(B,xe)|0,s=s+Math.imul(D,Oe)|0,_=_+Math.imul(D,xe)|0,m=m+Math.imul(w,Fe)|0,s=s+Math.imul(w,De)|0,s=s+Math.imul(F,Fe)|0,_=_+Math.imul(F,De)|0,m=m+Math.imul(l,Be)|0,s=s+Math.imul(l,Re)|0,s=s+Math.imul(S,Be)|0,_=_+Math.imul(S,Re)|0;var Xd=(M+m|0)+((s&8191)<<13)|0;M=(_+(s>>>13)|0)+(Xd>>>26)|0,Xd&=67108863,m=Math.imul(ye,Ae),s=Math.imul(ye,$e),s=s+Math.imul(me,Ae)|0,_=Math.imul(me,$e),m=m+Math.imul(pe,be)|0,s=s+Math.imul(pe,Ee)|0,s=s+Math.imul(ge,be)|0,_=_+Math.imul(ge,Ee)|0,m=m+Math.imul(ce,Me)|0,s=s+Math.imul(ce,Ne)|0,s=s+Math.imul(he,Me)|0,_=_+Math.imul(he,Ne)|0,m=m+Math.imul(de,Se)|0,s=s+Math.imul(de,Ie)|0,s=s+Math.imul(le,Se)|0,_=_+Math.imul(le,Ie)|0,m=m+Math.imul(se,Ce)|0,s=s+Math.imul(se,Pe)|0,s=s+Math.imul(fe,Ce)|0,_=_+Math.imul(fe,Pe)|0,m=m+Math.imul(ue,we)|0,s=s+Math.imul(ue,Te)|0,s=s+Math.imul(oe,we)|0,_=_+Math.imul(oe,Te)|0,m=m+Math.imul(q,Oe)|0,s=s+Math.imul(q,xe)|0,s=s+Math.imul(j,Oe)|0,_=_+Math.imul(j,xe)|0,m=m+Math.imul(B,Fe)|0,s=s+Math.imul(B,De)|0,s=s+Math.imul(D,Fe)|0,_=_+Math.imul(D,De)|0,m=m+Math.imul(w,Be)|0,s=s+Math.imul(w,Re)|0,s=s+Math.imul(F,Be)|0,_=_+Math.imul(F,Re)|0;var el=(M+m|0)+((s&8191)<<13)|0;M=(_+(s>>>13)|0)+(el>>>26)|0,el&=67108863,m=Math.imul(ye,be),s=Math.imul(ye,Ee),s=s+Math.imul(me,be)|0,_=Math.imul(me,Ee),m=m+Math.imul(pe,Me)|0,s=s+Math.imul(pe,Ne)|0,s=s+Math.imul(ge,Me)|0,_=_+Math.imul(ge,Ne)|0,m=m+Math.imul(ce,Se)|0,s=s+Math.imul(ce,Ie)|0,s=s+Math.imul(he,Se)|0,_=_+Math.imul(he,Ie)|0,m=m+Math.imul(de,Ce)|0,s=s+Math.imul(de,Pe)|0,s=s+Math.imul(le,Ce)|0,_=_+Math.imul(le,Pe)|0,m=m+Math.imul(se,we)|0,s=s+Math.imul(se,Te)|0,s=s+Math.imul(fe,we)|0,_=_+Math.imul(fe,Te)|0,m=m+Math.imul(ue,Oe)|0,s=s+Math.imul(ue,xe)|0,s=s+Math.imul(oe,Oe)|0,_=_+Math.imul(oe,xe)|0,m=m+Math.imul(q,Fe)|0,s=s+Math.imul(q,De)|0,s=s+Math.imul(j,Fe)|0,_=_+Math.imul(j,De)|0,m=m+Math.imul(B,Be)|0,s=s+Math.imul(B,Re)|0,s=s+Math.imul(D,Be)|0,_=_+Math.imul(D,Re)|0;var tl=(M+m|0)+((s&8191)<<13)|0;M=(_+(s>>>13)|0)+(tl>>>26)|0,tl&=67108863,m=Math.imul(ye,Me),s=Math.imul(ye,Ne),s=s+Math.imul(me,Me)|0,_=Math.imul(me,Ne),m=m+Math.imul(pe,Se)|0,s=s+Math.imul(pe,Ie)|0,s=s+Math.imul(ge,Se)|0,_=_+Math.imul(ge,Ie)|0,m=m+Math.imul(ce,Ce)|0,s=s+Math.imul(ce,Pe)|0,s=s+Math.imul(he,Ce)|0,_=_+Math.imul(he,Pe)|0,m=m+Math.imul(de,we)|0,s=s+Math.imul(de,Te)|0,s=s+Math.imul(le,we)|0,_=_+Math.imul(le,Te)|0,m=m+Math.imul(se,Oe)|0,s=s+Math.imul(se,xe)|0,s=s+Math.imul(fe,Oe)|0,_=_+Math.imul(fe,xe)|0,m=m+Math.imul(ue,Fe)|0,s=s+Math.imul(ue,De)|0,s=s+Math.imul(oe,Fe)|0,_=_+Math.imul(oe,De)|0,m=m+Math.imul(q,Be)|0,s=s+Math.imul(q,Re)|0,s=s+Math.imul(j,Be)|0,_=_+Math.imul(j,Re)|0;var rl=(M+m|0)+((s&8191)<<13)|0;M=(_+(s>>>13)|0)+(rl>>>26)|0,rl&=67108863,m=Math.imul(ye,Se),s=Math.imul(ye,Ie),s=s+Math.imul(me,Se)|0,_=Math.imul(me,Ie),m=m+Math.imul(pe,Ce)|0,s=s+Math.imul(pe,Pe)|0,s=s+Math.imul(ge,Ce)|0,_=_+Math.imul(ge,Pe)|0,m=m+Math.imul(ce,we)|0,s=s+Math.imul(ce,Te)|0,s=s+Math.imul(he,we)|0,_=_+Math.imul(he,Te)|0,m=m+Math.imul(de,Oe)|0,s=s+Math.imul(de,xe)|0,s=s+Math.imul(le,Oe)|0,_=_+Math.imul(le,xe)|0,m=m+Math.imul(se,Fe)|0,s=s+Math.imul(se,De)|0,s=s+Math.imul(fe,Fe)|0,_=_+Math.imul(fe,De)|0,m=m+Math.imul(ue,Be)|0,s=s+Math.imul(ue,Re)|0,s=s+Math.imul(oe,Be)|0,_=_+Math.imul(oe,Re)|0;var nl=(M+m|0)+((s&8191)<<13)|0;M=(_+(s>>>13)|0)+(nl>>>26)|0,nl&=67108863,m=Math.imul(ye,Ce),s=Math.imul(ye,Pe),s=s+Math.imul(me,Ce)|0,_=Math.imul(me,Pe),m=m+Math.imul(pe,we)|0,s=s+Math.imul(pe,Te)|0,s=s+Math.imul(ge,we)|0,_=_+Math.imul(ge,Te)|0,m=m+Math.imul(ce,Oe)|0,s=s+Math.imul(ce,xe)|0,s=s+Math.imul(he,Oe)|0,_=_+Math.imul(he,xe)|0,m=m+Math.imul(de,Fe)|0,s=s+Math.imul(de,De)|0,s=s+Math.imul(le,Fe)|0,_=_+Math.imul(le,De)|0,m=m+Math.imul(se,Be)|0,s=s+Math.imul(se,Re)|0,s=s+Math.imul(fe,Be)|0,_=_+Math.imul(fe,Re)|0;var il=(M+m|0)+((s&8191)<<13)|0;M=(_+(s>>>13)|0)+(il>>>26)|0,il&=67108863,m=Math.imul(ye,we),s=Math.imul(ye,Te),s=s+Math.imul(me,we)|0,_=Math.imul(me,Te),m=m+Math.imul(pe,Oe)|0,s=s+Math.imul(pe,xe)|0,s=s+Math.imul(ge,Oe)|0,_=_+Math.imul(ge,xe)|0,m=m+Math.imul(ce,Fe)|0,s=s+Math.imul(ce,De)|0,s=s+Math.imul(he,Fe)|0,_=_+Math.imul(he,De)|0,m=m+Math.imul(de,Be)|0,s=s+Math.imul(de,Re)|0,s=s+Math.imul(le,Be)|0,_=_+Math.imul(le,Re)|0;var al=(M+m|0)+((s&8191)<<13)|0;M=(_+(s>>>13)|0)+(al>>>26)|0,al&=67108863,m=Math.imul(ye,Oe),s=Math.imul(ye,xe),s=s+Math.imul(me,Oe)|0,_=Math.imul(me,xe),m=m+Math.imul(pe,Fe)|0,s=s+Math.imul(pe,De)|0,s=s+Math.imul(ge,Fe)|0,_=_+Math.imul(ge,De)|0,m=m+Math.imul(ce,Be)|0,s=s+Math.imul(ce,Re)|0,s=s+Math.imul(he,Be)|0,_=_+Math.imul(he,Re)|0;var ul=(M+m|0)+((s&8191)<<13)|0;M=(_+(s>>>13)|0)+(ul>>>26)|0,ul&=67108863,m=Math.imul(ye,Fe),s=Math.imul(ye,De),s=s+Math.imul(me,Fe)|0,_=Math.imul(me,De),m=m+Math.imul(pe,Be)|0,s=s+Math.imul(pe,Re)|0,s=s+Math.imul(ge,Be)|0,_=_+Math.imul(ge,Re)|0;var ol=(M+m|0)+((s&8191)<<13)|0;M=(_+(s>>>13)|0)+(ol>>>26)|0,ol&=67108863,m=Math.imul(ye,Be),s=Math.imul(ye,Re),s=s+Math.imul(me,Be)|0,_=Math.imul(me,Re);var sl=(M+m|0)+((s&8191)<<13)|0;return M=(_+(s>>>13)|0)+(sl>>>26)|0,sl&=67108863,b[0]=ci,b[1]=hi,b[2]=pi,b[3]=gi,b[4]=yi,b[5]=Yd,b[6]=Kd,b[7]=Jd,b[8]=Qd,b[9]=Xd,b[10]=el,b[11]=tl,b[12]=rl,b[13]=nl,b[14]=il,b[15]=al,b[16]=ul,b[17]=ol,b[18]=sl,M!==0&&(b[19]=M,g.length++),g};Math.imul||(Q=k);function H(A,o,d){d.negative=o.negative^A.negative,d.length=A.length+o.length;for(var g=0,y=0,v=0;v<d.length-1;v++){var b=y;y=0;for(var M=g&67108863,m=Math.min(v,o.length-1),s=Math.max(0,v-A.length+1);s<=m;s++){var _=v-s,L=A.words[_]|0,l=o.words[s]|0,S=L*l,I=S&67108863;b=b+(S/67108864|0)|0,I=I+M|0,M=I&67108863,b=b+(I>>>26)|0,y+=b>>>26,b&=67108863}d.words[v]=M,g=b,b=y}return g!==0?d.words[v]=g:d.length--,d._strip()}function z(A,o,d){return H(A,o,d)}i.prototype.mulTo=function(o,d){var g,y=this.length+o.length;return this.length===10&&o.length===10?g=Q(this,o,d):y<63?g=k(this,o,d):y<1024?g=H(this,o,d):g=z(this,o,d),g};function ze(A,o){this.x=A,this.y=o}ze.prototype.makeRBT=function(o){for(var d=new Array(o),g=i.prototype._countBits(o)-1,y=0;y<o;y++)d[y]=this.revBin(y,g,o);return d},ze.prototype.revBin=function(o,d,g){if(o===0||o===g-1)return o;for(var y=0,v=0;v<d;v++)y|=(o&1)<<d-v-1,o>>=1;return y},ze.prototype.permute=function(o,d,g,y,v,b){for(var M=0;M<b;M++)y[M]=d[o[M]],v[M]=g[o[M]]},ze.prototype.transform=function(o,d,g,y,v,b){this.permute(b,o,d,g,y,v);for(var M=1;M<v;M<<=1)for(var m=M<<1,s=Math.cos(2*Math.PI/m),_=Math.sin(2*Math.PI/m),L=0;L<v;L+=m)for(var l=s,S=_,I=0;I<M;I++){var w=g[L+I],F=y[L+I],V=g[L+I+M],B=y[L+I+M],D=l*V-S*B;B=l*B+S*V,V=D,g[L+I]=w+V,y[L+I]=F+B,g[L+I+M]=w-V,y[L+I+M]=F-B,I!==m&&(D=s*l-_*S,S=s*S+_*l,l=D)}},ze.prototype.guessLen13b=function(o,d){var g=Math.max(d,o)|1,y=g&1,v=0;for(g=g/2|0;g;g=g>>>1)v++;return 1<<v+1+y},ze.prototype.conjugate=function(o,d,g){if(!(g<=1))for(var y=0;y<g/2;y++){var v=o[y];o[y]=o[g-y-1],o[g-y-1]=v,v=d[y],d[y]=-d[g-y-1],d[g-y-1]=-v}},ze.prototype.normalize13b=function(o,d){for(var g=0,y=0;y<d/2;y++){var v=Math.round(o[2*y+1]/d)*8192+Math.round(o[2*y]/d)+g;o[y]=v&67108863,v<67108864?g=0:g=v/67108864|0}return o},ze.prototype.convert13b=function(o,d,g,y){for(var v=0,b=0;b<d;b++)v=v+(o[b]|0),g[2*b]=v&8191,v=v>>>13,g[2*b+1]=v&8191,v=v>>>13;for(b=2*d;b<y;++b)g[b]=0;r(v===0),r((v&-8192)===0)},ze.prototype.stub=function(o){for(var d=new Array(o),g=0;g<o;g++)d[g]=0;return d},ze.prototype.mulp=function(o,d,g){var y=2*this.guessLen13b(o.length,d.length),v=this.makeRBT(y),b=this.stub(y),M=new Array(y),m=new Array(y),s=new Array(y),_=new Array(y),L=new Array(y),l=new Array(y),S=g.words;S.length=y,this.convert13b(o.words,o.length,M,y),this.convert13b(d.words,d.length,_,y),this.transform(M,b,m,s,y,v),this.transform(_,b,L,l,y,v);for(var I=0;I<y;I++){var w=m[I]*L[I]-s[I]*l[I];s[I]=m[I]*l[I]+s[I]*L[I],m[I]=w}return this.conjugate(m,s,y),this.transform(m,s,S,b,y,v),this.conjugate(S,b,y),this.normalize13b(S,y),g.negative=o.negative^d.negative,g.length=o.length+d.length,g._strip()},i.prototype.mul=function(o){var d=new i(null);return d.words=new Array(this.length+o.length),this.mulTo(o,d)},i.prototype.mulf=function(o){var d=new i(null);return d.words=new Array(this.length+o.length),z(this,o,d)},i.prototype.imul=function(o){return this.clone().mulTo(o,this)},i.prototype.imuln=function(o){var d=o<0;d&&(o=-o),r(typeof o=="number"),r(o<67108864);for(var g=0,y=0;y<this.length;y++){var v=(this.words[y]|0)*o,b=(v&67108863)+(g&67108863);g>>=26,g+=v/67108864|0,g+=b>>>26,this.words[y]=b&67108863}return g!==0&&(this.words[y]=g,this.length++),d?this.ineg():this},i.prototype.muln=function(o){return this.clone().imuln(o)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(o){var d=R(o);if(d.length===0)return new i(1);for(var g=this,y=0;y<d.length&&d[y]===0;y++,g=g.sqr());if(++y<d.length)for(var v=g.sqr();y<d.length;y++,v=v.sqr())d[y]!==0&&(g=g.mul(v));return g},i.prototype.iushln=function(o){r(typeof o=="number"&&o>=0);var d=o%26,g=(o-d)/26,y=67108863>>>26-d<<26-d,v;if(d!==0){var b=0;for(v=0;v<this.length;v++){var M=this.words[v]&y,m=(this.words[v]|0)-M<<d;this.words[v]=m|b,b=M>>>26-d}b&&(this.words[v]=b,this.length++)}if(g!==0){for(v=this.length-1;v>=0;v--)this.words[v+g]=this.words[v];for(v=0;v<g;v++)this.words[v]=0;this.length+=g}return this._strip()},i.prototype.ishln=function(o){return r(this.negative===0),this.iushln(o)},i.prototype.iushrn=function(o,d,g){r(typeof o=="number"&&o>=0);var y;d?y=(d-d%26)/26:y=0;var v=o%26,b=Math.min((o-v)/26,this.length),M=67108863^67108863>>>v<<v,m=g;if(y-=b,y=Math.max(0,y),m){for(var s=0;s<b;s++)m.words[s]=this.words[s];m.length=b}if(b!==0)if(this.length>b)for(this.length-=b,s=0;s<this.length;s++)this.words[s]=this.words[s+b];else this.words[0]=0,this.length=1;var _=0;for(s=this.length-1;s>=0&&(_!==0||s>=y);s--){var L=this.words[s]|0;this.words[s]=_<<26-v|L>>>v,_=L&M}return m&&_!==0&&(m.words[m.length++]=_),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(o,d,g){return r(this.negative===0),this.iushrn(o,d,g)},i.prototype.shln=function(o){return this.clone().ishln(o)},i.prototype.ushln=function(o){return this.clone().iushln(o)},i.prototype.shrn=function(o){return this.clone().ishrn(o)},i.prototype.ushrn=function(o){return this.clone().iushrn(o)},i.prototype.testn=function(o){r(typeof o=="number"&&o>=0);var d=o%26,g=(o-d)/26,y=1<<d;if(this.length<=g)return!1;var v=this.words[g];return!!(v&y)},i.prototype.imaskn=function(o){r(typeof o=="number"&&o>=0);var d=o%26,g=(o-d)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=g)return this;if(d!==0&&g++,this.length=Math.min(g,this.length),d!==0){var y=67108863^67108863>>>d<<d;this.words[this.length-1]&=y}return this._strip()},i.prototype.maskn=function(o){return this.clone().imaskn(o)},i.prototype.iaddn=function(o){return r(typeof o=="number"),r(o<67108864),o<0?this.isubn(-o):this.negative!==0?this.length===1&&(this.words[0]|0)<=o?(this.words[0]=o-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(o),this.negative=1,this):this._iaddn(o)},i.prototype._iaddn=function(o){this.words[0]+=o;for(var d=0;d<this.length&&this.words[d]>=67108864;d++)this.words[d]-=67108864,d===this.length-1?this.words[d+1]=1:this.words[d+1]++;return this.length=Math.max(this.length,d+1),this},i.prototype.isubn=function(o){if(r(typeof o=="number"),r(o<67108864),o<0)return this.iaddn(-o);if(this.negative!==0)return this.negative=0,this.iaddn(o),this.negative=1,this;if(this.words[0]-=o,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var d=0;d<this.length&&this.words[d]<0;d++)this.words[d]+=67108864,this.words[d+1]-=1;return this._strip()},i.prototype.addn=function(o){return this.clone().iaddn(o)},i.prototype.subn=function(o){return this.clone().isubn(o)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(o,d,g){var y=o.length+g,v;this._expand(y);var b,M=0;for(v=0;v<o.length;v++){b=(this.words[v+g]|0)+M;var m=(o.words[v]|0)*d;b-=m&67108863,M=(b>>26)-(m/67108864|0),this.words[v+g]=b&67108863}for(;v<this.length-g;v++)b=(this.words[v+g]|0)+M,M=b>>26,this.words[v+g]=b&67108863;if(M===0)return this._strip();for(r(M===-1),M=0,v=0;v<this.length;v++)b=-(this.words[v]|0)+M,M=b>>26,this.words[v]=b&67108863;return this.negative=1,this._strip()},i.prototype._wordDiv=function(o,d){var g=this.length-o.length,y=this.clone(),v=o,b=v.words[v.length-1]|0,M=this._countBits(b);g=26-M,g!==0&&(v=v.ushln(g),y.iushln(g),b=v.words[v.length-1]|0);var m=y.length-v.length,s;if(d!=="mod"){s=new i(null),s.length=m+1,s.words=new Array(s.length);for(var _=0;_<s.length;_++)s.words[_]=0}var L=y.clone()._ishlnsubmul(v,1,m);L.negative===0&&(y=L,s&&(s.words[m]=1));for(var l=m-1;l>=0;l--){var S=(y.words[v.length+l]|0)*67108864+(y.words[v.length+l-1]|0);for(S=Math.min(S/b|0,67108863),y._ishlnsubmul(v,S,l);y.negative!==0;)S--,y.negative=0,y._ishlnsubmul(v,1,l),y.isZero()||(y.negative^=1);s&&(s.words[l]=S)}return s&&s._strip(),y._strip(),d!=="div"&&g!==0&&y.iushrn(g),{div:s||null,mod:y}},i.prototype.divmod=function(o,d,g){if(r(!o.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var y,v,b;return this.negative!==0&&o.negative===0?(b=this.neg().divmod(o,d),d!=="mod"&&(y=b.div.neg()),d!=="div"&&(v=b.mod.neg(),g&&v.negative!==0&&v.iadd(o)),{div:y,mod:v}):this.negative===0&&o.negative!==0?(b=this.divmod(o.neg(),d),d!=="mod"&&(y=b.div.neg()),{div:y,mod:b.mod}):(this.negative&o.negative)!==0?(b=this.neg().divmod(o.neg(),d),d!=="div"&&(v=b.mod.neg(),g&&v.negative!==0&&v.isub(o)),{div:b.div,mod:v}):o.length>this.length||this.cmp(o)<0?{div:new i(0),mod:this}:o.length===1?d==="div"?{div:this.divn(o.words[0]),mod:null}:d==="mod"?{div:null,mod:new i(this.modrn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new i(this.modrn(o.words[0]))}:this._wordDiv(o,d)},i.prototype.div=function(o){return this.divmod(o,"div",!1).div},i.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},i.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},i.prototype.divRound=function(o){var d=this.divmod(o);if(d.mod.isZero())return d.div;var g=d.div.negative!==0?d.mod.isub(o):d.mod,y=o.ushrn(1),v=o.andln(1),b=g.cmp(y);return b<0||v===1&&b===0?d.div:d.div.negative!==0?d.div.isubn(1):d.div.iaddn(1)},i.prototype.modrn=function(o){var d=o<0;d&&(o=-o),r(o<=67108863);for(var g=(1<<26)%o,y=0,v=this.length-1;v>=0;v--)y=(g*y+(this.words[v]|0))%o;return d?-y:y},i.prototype.modn=function(o){return this.modrn(o)},i.prototype.idivn=function(o){var d=o<0;d&&(o=-o),r(o<=67108863);for(var g=0,y=this.length-1;y>=0;y--){var v=(this.words[y]|0)+g*67108864;this.words[y]=v/o|0,g=v%o}return this._strip(),d?this.ineg():this},i.prototype.divn=function(o){return this.clone().idivn(o)},i.prototype.egcd=function(o){r(o.negative===0),r(!o.isZero());var d=this,g=o.clone();d.negative!==0?d=d.umod(o):d=d.clone();for(var y=new i(1),v=new i(0),b=new i(0),M=new i(1),m=0;d.isEven()&&g.isEven();)d.iushrn(1),g.iushrn(1),++m;for(var s=g.clone(),_=d.clone();!d.isZero();){for(var L=0,l=1;(d.words[0]&l)===0&&L<26;++L,l<<=1);if(L>0)for(d.iushrn(L);L-- >0;)(y.isOdd()||v.isOdd())&&(y.iadd(s),v.isub(_)),y.iushrn(1),v.iushrn(1);for(var S=0,I=1;(g.words[0]&I)===0&&S<26;++S,I<<=1);if(S>0)for(g.iushrn(S);S-- >0;)(b.isOdd()||M.isOdd())&&(b.iadd(s),M.isub(_)),b.iushrn(1),M.iushrn(1);d.cmp(g)>=0?(d.isub(g),y.isub(b),v.isub(M)):(g.isub(d),b.isub(y),M.isub(v))}return{a:b,b:M,gcd:g.iushln(m)}},i.prototype._invmp=function(o){r(o.negative===0),r(!o.isZero());var d=this,g=o.clone();d.negative!==0?d=d.umod(o):d=d.clone();for(var y=new i(1),v=new i(0),b=g.clone();d.cmpn(1)>0&&g.cmpn(1)>0;){for(var M=0,m=1;(d.words[0]&m)===0&&M<26;++M,m<<=1);if(M>0)for(d.iushrn(M);M-- >0;)y.isOdd()&&y.iadd(b),y.iushrn(1);for(var s=0,_=1;(g.words[0]&_)===0&&s<26;++s,_<<=1);if(s>0)for(g.iushrn(s);s-- >0;)v.isOdd()&&v.iadd(b),v.iushrn(1);d.cmp(g)>=0?(d.isub(g),y.isub(v)):(g.isub(d),v.isub(y))}var L;return d.cmpn(1)===0?L=y:L=v,L.cmpn(0)<0&&L.iadd(o),L},i.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var d=this.clone(),g=o.clone();d.negative=0,g.negative=0;for(var y=0;d.isEven()&&g.isEven();y++)d.iushrn(1),g.iushrn(1);do{for(;d.isEven();)d.iushrn(1);for(;g.isEven();)g.iushrn(1);var v=d.cmp(g);if(v<0){var b=d;d=g,g=b}else if(v===0||g.cmpn(1)===0)break;d.isub(g)}while(!0);return g.iushln(y)},i.prototype.invm=function(o){return this.egcd(o).a.umod(o)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(o){return this.words[0]&o},i.prototype.bincn=function(o){r(typeof o=="number");var d=o%26,g=(o-d)/26,y=1<<d;if(this.length<=g)return this._expand(g+1),this.words[g]|=y,this;for(var v=y,b=g;v!==0&&b<this.length;b++){var M=this.words[b]|0;M+=v,v=M>>>26,M&=67108863,this.words[b]=M}return v!==0&&(this.words[b]=v,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(o){var d=o<0;if(this.negative!==0&&!d)return-1;if(this.negative===0&&d)return 1;this._strip();var g;if(this.length>1)g=1;else{d&&(o=-o),r(o<=67108863,"Number is too big");var y=this.words[0]|0;g=y===o?0:y<o?-1:1}return this.negative!==0?-g|0:g},i.prototype.cmp=function(o){if(this.negative!==0&&o.negative===0)return-1;if(this.negative===0&&o.negative!==0)return 1;var d=this.ucmp(o);return this.negative!==0?-d|0:d},i.prototype.ucmp=function(o){if(this.length>o.length)return 1;if(this.length<o.length)return-1;for(var d=0,g=this.length-1;g>=0;g--){var y=this.words[g]|0,v=o.words[g]|0;if(y!==v){y<v?d=-1:y>v&&(d=1);break}}return d},i.prototype.gtn=function(o){return this.cmpn(o)===1},i.prototype.gt=function(o){return this.cmp(o)===1},i.prototype.gten=function(o){return this.cmpn(o)>=0},i.prototype.gte=function(o){return this.cmp(o)>=0},i.prototype.ltn=function(o){return this.cmpn(o)===-1},i.prototype.lt=function(o){return this.cmp(o)===-1},i.prototype.lten=function(o){return this.cmpn(o)<=0},i.prototype.lte=function(o){return this.cmp(o)<=0},i.prototype.eqn=function(o){return this.cmpn(o)===0},i.prototype.eq=function(o){return this.cmp(o)===0},i.red=function(o){return new ne(o)},i.prototype.toRed=function(o){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),o.convertTo(this)._forceRed(o)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(o){return this.red=o,this},i.prototype.forceRed=function(o){return r(!this.red,"Already a number in reduction context"),this._forceRed(o)},i.prototype.redAdd=function(o){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,o)},i.prototype.redIAdd=function(o){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,o)},i.prototype.redSub=function(o){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,o)},i.prototype.redISub=function(o){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,o)},i.prototype.redShl=function(o){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,o)},i.prototype.redMul=function(o){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.mul(this,o)},i.prototype.redIMul=function(o){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.imul(this,o)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(o){return r(this.red&&!o.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,o)};var Ct={k256:null,p224:null,p192:null,p25519:null};function Ve(A,o){this.name=A,this.p=new i(o,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Ve.prototype._tmp=function(){var o=new i(null);return o.words=new Array(Math.ceil(this.n/13)),o},Ve.prototype.ireduce=function(o){var d=o,g;do this.split(d,this.tmp),d=this.imulK(d),d=d.iadd(this.tmp),g=d.bitLength();while(g>this.n);var y=g<this.n?-1:d.ucmp(this.p);return y===0?(d.words[0]=0,d.length=1):y>0?d.isub(this.p):d.strip!==void 0?d.strip():d._strip(),d},Ve.prototype.split=function(o,d){o.iushrn(this.n,0,d)},Ve.prototype.imulK=function(o){return o.imul(this.k)};function Lt(){Ve.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(Lt,Ve),Lt.prototype.split=function(o,d){for(var g=4194303,y=Math.min(o.length,9),v=0;v<y;v++)d.words[v]=o.words[v];if(d.length=y,o.length<=9){o.words[0]=0,o.length=1;return}var b=o.words[9];for(d.words[d.length++]=b&g,v=10;v<o.length;v++){var M=o.words[v]|0;o.words[v-10]=(M&g)<<4|b>>>22,b=M}b>>>=22,o.words[v-10]=b,b===0&&o.length>10?o.length-=10:o.length-=9},Lt.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var d=0,g=0;g<o.length;g++){var y=o.words[g]|0;d+=y*977,o.words[g]=d&67108863,d=y*64+(d/67108864|0)}return o.words[o.length-1]===0&&(o.length--,o.words[o.length-1]===0&&o.length--),o};function qt(){Ve.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}n(qt,Ve);function mt(){Ve.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}n(mt,Ve);function Et(){Ve.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}n(Et,Ve),Et.prototype.imulK=function(o){for(var d=0,g=0;g<o.length;g++){var y=(o.words[g]|0)*19+d,v=y&67108863;y>>>=26,o.words[g]=v,d=y}return d!==0&&(o.words[o.length++]=d),o},i._prime=function(o){if(Ct[o])return Ct[o];var d;if(o==="k256")d=new Lt;else if(o==="p224")d=new qt;else if(o==="p192")d=new mt;else if(o==="p25519")d=new Et;else throw new Error("Unknown prime "+o);return Ct[o]=d,d};function ne(A){if(typeof A=="string"){var o=i._prime(A);this.m=o.p,this.prime=o}else r(A.gtn(1),"modulus must be greater than 1"),this.m=A,this.prime=null}ne.prototype._verify1=function(o){r(o.negative===0,"red works only with positives"),r(o.red,"red works only with red numbers")},ne.prototype._verify2=function(o,d){r((o.negative|d.negative)===0,"red works only with positives"),r(o.red&&o.red===d.red,"red works only with red numbers")},ne.prototype.imod=function(o){return this.prime?this.prime.ireduce(o)._forceRed(this):(c(o,o.umod(this.m)._forceRed(this)),o)},ne.prototype.neg=function(o){return o.isZero()?o.clone():this.m.sub(o)._forceRed(this)},ne.prototype.add=function(o,d){this._verify2(o,d);var g=o.add(d);return g.cmp(this.m)>=0&&g.isub(this.m),g._forceRed(this)},ne.prototype.iadd=function(o,d){this._verify2(o,d);var g=o.iadd(d);return g.cmp(this.m)>=0&&g.isub(this.m),g},ne.prototype.sub=function(o,d){this._verify2(o,d);var g=o.sub(d);return g.cmpn(0)<0&&g.iadd(this.m),g._forceRed(this)},ne.prototype.isub=function(o,d){this._verify2(o,d);var g=o.isub(d);return g.cmpn(0)<0&&g.iadd(this.m),g},ne.prototype.shl=function(o,d){return this._verify1(o),this.imod(o.ushln(d))},ne.prototype.imul=function(o,d){return this._verify2(o,d),this.imod(o.imul(d))},ne.prototype.mul=function(o,d){return this._verify2(o,d),this.imod(o.mul(d))},ne.prototype.isqr=function(o){return this.imul(o,o.clone())},ne.prototype.sqr=function(o){return this.mul(o,o)},ne.prototype.sqrt=function(o){if(o.isZero())return o.clone();var d=this.m.andln(3);if(r(d%2===1),d===3){var g=this.m.add(new i(1)).iushrn(2);return this.pow(o,g)}for(var y=this.m.subn(1),v=0;!y.isZero()&&y.andln(1)===0;)v++,y.iushrn(1);r(!y.isZero());var b=new i(1).toRed(this),M=b.redNeg(),m=this.m.subn(1).iushrn(1),s=this.m.bitLength();for(s=new i(2*s*s).toRed(this);this.pow(s,m).cmp(M)!==0;)s.redIAdd(M);for(var _=this.pow(s,y),L=this.pow(o,y.addn(1).iushrn(1)),l=this.pow(o,y),S=v;l.cmp(b)!==0;){for(var I=l,w=0;I.cmp(b)!==0;w++)I=I.redSqr();r(w<S);var F=this.pow(_,new i(1).iushln(S-w-1));L=L.redMul(F),_=F.redSqr(),l=l.redMul(_),S=w}return L},ne.prototype.invm=function(o){var d=o._invmp(this.m);return d.negative!==0?(d.negative=0,this.imod(d).redNeg()):this.imod(d)},ne.prototype.pow=function(o,d){if(d.isZero())return new i(1).toRed(this);if(d.cmpn(1)===0)return o.clone();var g=4,y=new Array(1<<g);y[0]=new i(1).toRed(this),y[1]=o;for(var v=2;v<y.length;v++)y[v]=this.mul(y[v-1],o);var b=y[0],M=0,m=0,s=d.bitLength()%26;for(s===0&&(s=26),v=d.length-1;v>=0;v--){for(var _=d.words[v],L=s-1;L>=0;L--){var l=_>>L&1;if(b!==y[0]&&(b=this.sqr(b)),l===0&&M===0){m=0;continue}M<<=1,M|=l,m++,!(m!==g&&(v!==0||L!==0))&&(b=this.mul(b,y[M]),m=0,M=0)}s=26}return b},ne.prototype.convertTo=function(o){var d=o.umod(this.m);return d===o?d.clone():d},ne.prototype.convertFrom=function(o){var d=o.clone();return d.red=null,d},i.mont=function(o){return new Pt(o)};function Pt(A){ne.call(this,A),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}n(Pt,ne),Pt.prototype.convertTo=function(o){return this.imod(o.ushln(this.shift))},Pt.prototype.convertFrom=function(o){var d=this.imod(o.mul(this.rinv));return d.red=null,d},Pt.prototype.imul=function(o,d){if(o.isZero()||d.isZero())return o.words[0]=0,o.length=1,o;var g=o.imul(d),y=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=g.isub(y).iushrn(this.shift),b=v;return v.cmp(this.m)>=0?b=v.isub(this.m):v.cmpn(0)<0&&(b=v.iadd(this.m)),b._forceRed(this)},Pt.prototype.mul=function(o,d){if(o.isZero()||d.isZero())return new i(0)._forceRed(this);var g=o.mul(d),y=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=g.isub(y).iushrn(this.shift),b=v;return v.cmp(this.m)>=0?b=v.isub(this.m):v.cmpn(0)<0&&(b=v.iadd(this.m)),b._forceRed(this)},Pt.prototype.invm=function(o){var d=this.imod(o._invmp(this.m).mul(this.r2));return d._forceRed(this)}})(typeof dl>"u"||dl,zh)});var Kh=h(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.version=void 0;ls.version="logger/5.7.0"});var ht=h(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.Logger=on.ErrorCode=on.LogLevel=void 0;var Jh=!1,Qh=!1,cs={debug:1,default:2,info:2,warning:3,error:4,off:5},Xh=cs.default,j$=Kh(),ll=null;function W$(){try{var e=[];if(["NFD","NFC","NFKD","NFKC"].forEach(function(t){try{if("test".normalize(t)!=="test")throw new Error("bad normalize")}catch{e.push(t)}}),e.length)throw new Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}var ep=W$(),rp;(function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"})(rp=on.LogLevel||(on.LogLevel={}));var un;(function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.TIMEOUT="TIMEOUT",e.BUFFER_OVERRUN="BUFFER_OVERRUN",e.NUMERIC_FAULT="NUMERIC_FAULT",e.MISSING_NEW="MISSING_NEW",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",e.TRANSACTION_REPLACED="TRANSACTION_REPLACED",e.ACTION_REJECTED="ACTION_REJECTED"})(un=on.ErrorCode||(on.ErrorCode={}));var tp="0123456789abcdef",z$=function(){function e(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}return e.prototype._log=function(t,r){var n=t.toLowerCase();cs[n]==null&&this.throwArgumentError("invalid log level name","logLevel",t),!(Xh>cs[n])&&console.log.apply(console,r)},e.prototype.debug=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this._log(e.levels.DEBUG,t)},e.prototype.info=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this._log(e.levels.INFO,t)},e.prototype.warn=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this._log(e.levels.WARNING,t)},e.prototype.makeError=function(t,r,n){if(Qh)return this.makeError("censored error",r,{});r||(r=e.errors.UNKNOWN_ERROR),n||(n={});var i=[];Object.keys(n).forEach(function(c){var $=n[c];try{if($ instanceof Uint8Array){for(var E="",C=0;C<$.length;C++)E+=tp[$[C]>>4],E+=tp[$[C]&15];i.push(c+"=Uint8Array(0x"+E+")")}else i.push(c+"="+JSON.stringify($))}catch{i.push(c+"="+JSON.stringify(n[c].toString()))}}),i.push("code="+r),i.push("version="+this.version);var a=t,u="";switch(r){case un.NUMERIC_FAULT:{u="NUMERIC_FAULT";var f=t;switch(f){case"overflow":case"underflow":case"division-by-zero":u+="-"+f;break;case"negative-power":case"negative-width":u+="-unsupported";break;case"unbound-bitwise-result":u+="-unbound-result";break}break}case un.CALL_EXCEPTION:case un.INSUFFICIENT_FUNDS:case un.MISSING_NEW:case un.NONCE_EXPIRED:case un.REPLACEMENT_UNDERPRICED:case un.TRANSACTION_REPLACED:case un.UNPREDICTABLE_GAS_LIMIT:u=r;break}u&&(t+=" [ See: https://links.ethers.org/v5-errors-"+u+" ]"),i.length&&(t+=" ("+i.join(", ")+")");var p=new Error(t);return p.reason=a,p.code=r,Object.keys(n).forEach(function(c){p[c]=n[c]}),p},e.prototype.throwError=function(t,r,n){throw this.makeError(t,r,n)},e.prototype.throwArgumentError=function(t,r,n){return this.throwError(t,e.errors.INVALID_ARGUMENT,{argument:r,value:n})},e.prototype.assert=function(t,r,n,i){t||this.throwError(r,n,i)},e.prototype.assertArgument=function(t,r,n,i){t||this.throwArgumentError(r,n,i)},e.prototype.checkNormalize=function(t){t==null&&(t="platform missing String.prototype.normalize"),ep&&this.throwError("platform missing String.prototype.normalize",e.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:ep})},e.prototype.checkSafeUint53=function(t,r){typeof t=="number"&&(r==null&&(r="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(r,e.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(r,e.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))},e.prototype.checkArgumentCount=function(t,r,n){n?n=": "+n:n="",t<r&&this.throwError("missing argument"+n,e.errors.MISSING_ARGUMENT,{count:t,expectedCount:r}),t>r&&this.throwError("too many arguments"+n,e.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:r})},e.prototype.checkNew=function(t,r){(t===Object||t==null)&&this.throwError("missing new",e.errors.MISSING_NEW,{name:r.name})},e.prototype.checkAbstract=function(t,r){t===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",e.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):(t===Object||t==null)&&this.throwError("missing new",e.errors.MISSING_NEW,{name:r.name})},e.globalLogger=function(){return ll||(ll=new e(j$.version)),ll},e.setCensorship=function(t,r){if(!t&&r&&this.globalLogger().throwError("cannot permanently disable censorship",e.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),Jh){if(!t)return;this.globalLogger().throwError("error censorship permanent",e.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}Qh=!!t,Jh=!!r},e.setLogLevel=function(t){var r=cs[t.toLowerCase()];if(r==null){e.globalLogger().warn("invalid log level - "+t);return}Xh=r},e.from=function(t){return new e(t)},e.errors=un,e.levels=rp,e}();on.Logger=z$});var np=h(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.version=void 0;hs.version="bytes/5.7.0"});var Je=h(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.joinSignature=J.splitSignature=J.hexZeroPad=J.hexStripZeros=J.hexValue=J.hexConcat=J.hexDataSlice=J.hexDataLength=J.hexlify=J.isHexString=J.zeroPad=J.stripZeros=J.concat=J.arrayify=J.isBytes=J.isBytesLike=void 0;var Y$=ht(),K$=np(),Ze=new Y$.Logger(K$.version);function ap(e){return!!e.toHexString}function ga(e){return e.slice||(e.slice=function(){var t=Array.prototype.slice.call(arguments);return ga(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function up(e){return Ut(e)&&!(e.length%2)||gs(e)}J.isBytesLike=up;function ip(e){return typeof e=="number"&&e==e&&e%1===0}function gs(e){if(e==null)return!1;if(e.constructor===Uint8Array)return!0;if(typeof e=="string"||!ip(e.length)||e.length<0)return!1;for(var t=0;t<e.length;t++){var r=e[t];if(!ip(r)||r<0||r>=256)return!1}return!0}J.isBytes=gs;function Ki(e,t){if(t||(t={}),typeof e=="number"){Ze.checkSafeUint53(e,"invalid arrayify value");for(var r=[];e;)r.unshift(e&255),e=parseInt(String(e/256));return r.length===0&&r.push(0),ga(new Uint8Array(r))}if(t.allowMissingPrefix&&typeof e=="string"&&e.substring(0,2)!=="0x"&&(e="0x"+e),ap(e)&&(e=e.toHexString()),Ut(e)){var n=e.substring(2);n.length%2&&(t.hexPad==="left"?n="0"+n:t.hexPad==="right"?n+="0":Ze.throwArgumentError("hex data is odd-length","value",e));for(var r=[],i=0;i<n.length;i+=2)r.push(parseInt(n.substring(i,i+2),16));return ga(new Uint8Array(r))}return gs(e)?ga(new Uint8Array(e)):Ze.throwArgumentError("invalid arrayify value","value",e)}J.arrayify=Ki;function op(e){var t=e.map(function(i){return Ki(i)}),r=t.reduce(function(i,a){return i+a.length},0),n=new Uint8Array(r);return t.reduce(function(i,a){return n.set(a,i),i+a.length},0),ga(n)}J.concat=op;function J$(e){var t=Ki(e);if(t.length===0)return t;for(var r=0;r<t.length&&t[r]===0;)r++;return r&&(t=t.slice(r)),t}J.stripZeros=J$;function sp(e,t){e=Ki(e),e.length>t&&Ze.throwArgumentError("value out of range","value",arguments[0]);var r=new Uint8Array(t);return r.set(e,t-e.length),ga(r)}J.zeroPad=sp;function Ut(e,t){return!(typeof e!="string"||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}J.isHexString=Ut;var cl="0123456789abcdef";function ft(e,t){if(t||(t={}),typeof e=="number"){Ze.checkSafeUint53(e,"invalid hexlify value");for(var r="";e;)r=cl[e&15]+r,e=Math.floor(e/16);return r.length?(r.length%2&&(r="0"+r),"0x"+r):"0x00"}if(typeof e=="bigint")return e=e.toString(16),e.length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&typeof e=="string"&&e.substring(0,2)!=="0x"&&(e="0x"+e),ap(e))return e.toHexString();if(Ut(e))return e.length%2&&(t.hexPad==="left"?e="0x0"+e.substring(2):t.hexPad==="right"?e+="0":Ze.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(gs(e)){for(var n="0x",i=0;i<e.length;i++){var a=e[i];n+=cl[(a&240)>>4]+cl[a&15]}return n}return Ze.throwArgumentError("invalid hexlify value","value",e)}J.hexlify=ft;function Q$(e){if(typeof e!="string")e=ft(e);else if(!Ut(e)||e.length%2)return null;return(e.length-2)/2}J.hexDataLength=Q$;function X$(e,t,r){return typeof e!="string"?e=ft(e):(!Ut(e)||e.length%2)&&Ze.throwArgumentError("invalid hexData","value",e),t=2+2*t,r!=null?"0x"+e.substring(t,2+2*r):"0x"+e.substring(t)}J.hexDataSlice=X$;function eb(e){var t="0x";return e.forEach(function(r){t+=ft(r).substring(2)}),t}J.hexConcat=eb;function tb(e){var t=fp(ft(e,{hexPad:"left"}));return t==="0x"?"0x0":t}J.hexValue=tb;function fp(e){typeof e!="string"&&(e=ft(e)),Ut(e)||Ze.throwArgumentError("invalid hex string","value",e),e=e.substring(2);for(var t=0;t<e.length&&e[t]==="0";)t++;return"0x"+e.substring(t)}J.hexStripZeros=fp;function ps(e,t){for(typeof e!="string"?e=ft(e):Ut(e)||Ze.throwArgumentError("invalid hex string","value",e),e.length>2*t+2&&Ze.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}J.hexZeroPad=ps;function dp(e){var t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(up(e)){var r=Ki(e);r.length===64?(t.v=27+(r[32]>>7),r[32]&=127,t.r=ft(r.slice(0,32)),t.s=ft(r.slice(32,64))):r.length===65?(t.r=ft(r.slice(0,32)),t.s=ft(r.slice(32,64)),t.v=r[64]):Ze.throwArgumentError("invalid signature string","signature",e),t.v<27&&(t.v===0||t.v===1?t.v+=27:Ze.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(r[32]|=128),t._vs=ft(r.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,t._vs!=null){var n=sp(Ki(t._vs),32);t._vs=ft(n);var i=n[0]>=128?1:0;t.recoveryParam==null?t.recoveryParam=i:t.recoveryParam!==i&&Ze.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),n[0]&=127;var a=ft(n);t.s==null?t.s=a:t.s!==a&&Ze.throwArgumentError("signature v mismatch _vs","signature",e)}if(t.recoveryParam==null)t.v==null?Ze.throwArgumentError("signature missing v and recoveryParam","signature",e):t.v===0||t.v===1?t.recoveryParam=t.v:t.recoveryParam=1-t.v%2;else if(t.v==null)t.v=27+t.recoveryParam;else{var u=t.v===0||t.v===1?t.v:1-t.v%2;t.recoveryParam!==u&&Ze.throwArgumentError("signature recoveryParam mismatch v","signature",e)}t.r==null||!Ut(t.r)?Ze.throwArgumentError("signature missing or invalid r","signature",e):t.r=ps(t.r,32),t.s==null||!Ut(t.s)?Ze.throwArgumentError("signature missing or invalid s","signature",e):t.s=ps(t.s,32);var f=Ki(t.s);f[0]>=128&&Ze.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(f[0]|=128);var p=ft(f);t._vs&&(Ut(t._vs)||Ze.throwArgumentError("signature invalid _vs","signature",e),t._vs=ps(t._vs,32)),t._vs==null?t._vs=p:t._vs!==p&&Ze.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t.yParityAndS=t._vs,t.compact=t.r+t.yParityAndS.substring(2),t}J.splitSignature=dp;function rb(e){return e=dp(e),ft(op([e.r,e.s,e.recoveryParam?"0x1c":"0x1b"]))}J.joinSignature=rb});var hl=h(ys=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});ys.version=void 0;ys.version="bignumber/5.7.0"});var vs=h(Tt=>{"use strict";var nb=Tt&&Tt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Tt,"__esModule",{value:!0});Tt._base16To36=Tt._base36To16=Tt.BigNumber=Tt.isBigNumberish=void 0;var ib=nb(Yh()),su=ib.default.BN,ya=Je(),ma=ht(),ab=hl(),$n=new ma.Logger(ab.version),pl={},lp=9007199254740991;function ub(e){return e!=null&&(ms.isBigNumber(e)||typeof e=="number"&&e%1===0||typeof e=="string"&&!!e.match(/^-?[0-9]+$/)||(0,ya.isHexString)(e)||typeof e=="bigint"||(0,ya.isBytes)(e))}Tt.isBigNumberish=ub;var cp=!1,ms=function(){function e(t,r){t!==pl&&$n.throwError("cannot call constructor directly; use BigNumber.from",ma.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=r,this._isBigNumber=!0,Object.freeze(this)}return e.prototype.fromTwos=function(t){return vt(Y(this).fromTwos(t))},e.prototype.toTwos=function(t){return vt(Y(this).toTwos(t))},e.prototype.abs=function(){return this._hex[0]==="-"?e.from(this._hex.substring(1)):this},e.prototype.add=function(t){return vt(Y(this).add(Y(t)))},e.prototype.sub=function(t){return vt(Y(this).sub(Y(t)))},e.prototype.div=function(t){var r=e.from(t);return r.isZero()&&wt("division-by-zero","div"),vt(Y(this).div(Y(t)))},e.prototype.mul=function(t){return vt(Y(this).mul(Y(t)))},e.prototype.mod=function(t){var r=Y(t);return r.isNeg()&&wt("division-by-zero","mod"),vt(Y(this).umod(r))},e.prototype.pow=function(t){var r=Y(t);return r.isNeg()&&wt("negative-power","pow"),vt(Y(this).pow(r))},e.prototype.and=function(t){var r=Y(t);return(this.isNegative()||r.isNeg())&&wt("unbound-bitwise-result","and"),vt(Y(this).and(r))},e.prototype.or=function(t){var r=Y(t);return(this.isNegative()||r.isNeg())&&wt("unbound-bitwise-result","or"),vt(Y(this).or(r))},e.prototype.xor=function(t){var r=Y(t);return(this.isNegative()||r.isNeg())&&wt("unbound-bitwise-result","xor"),vt(Y(this).xor(r))},e.prototype.mask=function(t){return(this.isNegative()||t<0)&&wt("negative-width","mask"),vt(Y(this).maskn(t))},e.prototype.shl=function(t){return(this.isNegative()||t<0)&&wt("negative-width","shl"),vt(Y(this).shln(t))},e.prototype.shr=function(t){return(this.isNegative()||t<0)&&wt("negative-width","shr"),vt(Y(this).shrn(t))},e.prototype.eq=function(t){return Y(this).eq(Y(t))},e.prototype.lt=function(t){return Y(this).lt(Y(t))},e.prototype.lte=function(t){return Y(this).lte(Y(t))},e.prototype.gt=function(t){return Y(this).gt(Y(t))},e.prototype.gte=function(t){return Y(this).gte(Y(t))},e.prototype.isNegative=function(){return this._hex[0]==="-"},e.prototype.isZero=function(){return Y(this).isZero()},e.prototype.toNumber=function(){try{return Y(this).toNumber()}catch{wt("overflow","toNumber",this.toString())}return null},e.prototype.toBigInt=function(){try{return BigInt(this.toString())}catch{}return $n.throwError("this platform does not support BigInt",ma.Logger.errors.UNSUPPORTED_OPERATION,{value:this.toString()})},e.prototype.toString=function(){return arguments.length>0&&(arguments[0]===10?cp||(cp=!0,$n.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?$n.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",ma.Logger.errors.UNEXPECTED_ARGUMENT,{}):$n.throwError("BigNumber.toString does not accept parameters",ma.Logger.errors.UNEXPECTED_ARGUMENT,{})),Y(this).toString(10)},e.prototype.toHexString=function(){return this._hex},e.prototype.toJSON=function(t){return{type:"BigNumber",hex:this.toHexString()}},e.from=function(t){if(t instanceof e)return t;if(typeof t=="string")return t.match(/^-?0x[0-9a-f]+$/i)?new e(pl,fu(t)):t.match(/^-?[0-9]+$/)?new e(pl,fu(new su(t))):$n.throwArgumentError("invalid BigNumber string","value",t);if(typeof t=="number")return t%1&&wt("underflow","BigNumber.from",t),(t>=lp||t<=-lp)&&wt("overflow","BigNumber.from",t),e.from(String(t));var r=t;if(typeof r=="bigint")return e.from(r.toString());if((0,ya.isBytes)(r))return e.from((0,ya.hexlify)(r));if(r)if(r.toHexString){var n=r.toHexString();if(typeof n=="string")return e.from(n)}else{var n=r._hex;if(n==null&&r.type==="BigNumber"&&(n=r.hex),typeof n=="string"&&((0,ya.isHexString)(n)||n[0]==="-"&&(0,ya.isHexString)(n.substring(1))))return e.from(n)}return $n.throwArgumentError("invalid BigNumber value","value",t)},e.isBigNumber=function(t){return!!(t&&t._isBigNumber)},e}();Tt.BigNumber=ms;function fu(e){if(typeof e!="string")return fu(e.toString(16));if(e[0]==="-")return e=e.substring(1),e[0]==="-"&&$n.throwArgumentError("invalid hex","value",e),e=fu(e),e==="0x00"?e:"-"+e;if(e.substring(0,2)!=="0x"&&(e="0x"+e),e==="0x")return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&e.substring(0,4)==="0x00";)e="0x"+e.substring(4);return e}function vt(e){return ms.from(fu(e))}function Y(e){var t=ms.from(e).toHexString();return t[0]==="-"?new su("-"+t.substring(3),16):new su(t.substring(2),16)}function wt(e,t,r){var n={fault:e,operation:t};return r!=null&&(n.value=r),$n.throwError(e,ma.Logger.errors.NUMERIC_FAULT,n)}function ob(e){return new su(e,36).toString(16)}Tt._base36To16=ob;function sb(e){return new su(e,16).toString(36)}Tt._base16To36=sb});var mp=h(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.FixedNumber=fn.FixedFormat=fn.parseFixed=fn.formatFixed=void 0;var _s=Je(),cu=ht(),fb=hl(),pt=new cu.Logger(fb.version),bn=vs(),du={},pp=bn.BigNumber.from(0),gp=bn.BigNumber.from(-1);function yp(e,t,r,n){var i={fault:t,operation:r};return n!==void 0&&(i.value=n),pt.throwError(e,cu.Logger.errors.NUMERIC_FAULT,i)}var lu="0";for(;lu.length<256;)lu+=lu;function gl(e){if(typeof e!="number")try{e=bn.BigNumber.from(e).toNumber()}catch{}return typeof e=="number"&&e>=0&&e<=256&&!(e%1)?"1"+lu.substring(0,e):pt.throwArgumentError("invalid decimal size","decimals",e)}function As(e,t){t==null&&(t=0);var r=gl(t);e=bn.BigNumber.from(e);var n=e.lt(pp);n&&(e=e.mul(gp));for(var i=e.mod(r).toString();i.length<r.length-1;)i="0"+i;i=i.match(/^([0-9]*[1-9]|0)(0*)/)[1];var a=e.div(r).toString();return r.length===1?e=a:e=a+"."+i,n&&(e="-"+e),e}fn.formatFixed=As;function sn(e,t){t==null&&(t=0);var r=gl(t);(typeof e!="string"||!e.match(/^-?[0-9.]+$/))&&pt.throwArgumentError("invalid decimal value","value",e);var n=e.substring(0,1)==="-";n&&(e=e.substring(1)),e==="."&&pt.throwArgumentError("missing value","value",e);var i=e.split(".");i.length>2&&pt.throwArgumentError("too many decimal points","value",e);var a=i[0],u=i[1];for(a||(a="0"),u||(u="0");u[u.length-1]==="0";)u=u.substring(0,u.length-1);for(u.length>r.length-1&&yp("fractional component exceeds decimals","underflow","parseFixed"),u===""&&(u="0");u.length<r.length-1;)u+="0";var f=bn.BigNumber.from(a),p=bn.BigNumber.from(u),c=f.mul(r).add(p);return n&&(c=c.mul(gp)),c}fn.parseFixed=sn;var $s=function(){function e(t,r,n,i){t!==du&&pt.throwError("cannot use FixedFormat constructor; use FixedFormat.from",cu.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.signed=r,this.width=n,this.decimals=i,this.name=(r?"":"u")+"fixed"+String(n)+"x"+String(i),this._multiplier=gl(i),Object.freeze(this)}return e.from=function(t){if(t instanceof e)return t;typeof t=="number"&&(t="fixed128x"+t);var r=!0,n=128,i=18;if(typeof t=="string"){if(t!=="fixed")if(t==="ufixed")r=!1;else{var a=t.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);a||pt.throwArgumentError("invalid fixed format","format",t),r=a[1]!=="u",n=parseInt(a[2]),i=parseInt(a[3])}}else if(t){var u=function(f,p,c){return t[f]==null?c:(typeof t[f]!==p&&pt.throwArgumentError("invalid fixed format ("+f+" not "+p+")","format."+f,t[f]),t[f])};r=u("signed","boolean",r),n=u("width","number",n),i=u("decimals","number",i)}return n%8&&pt.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",n),i>80&&pt.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",i),new e(du,r,n,i)},e}();fn.FixedFormat=$s;var yl=function(){function e(t,r,n,i){t!==du&&pt.throwError("cannot use FixedNumber constructor; use FixedNumber.from",cu.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=i,this._hex=r,this._value=n,this._isFixedNumber=!0,Object.freeze(this)}return e.prototype._checkFormat=function(t){this.format.name!==t.format.name&&pt.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",t)},e.prototype.addUnsafe=function(t){this._checkFormat(t);var r=sn(this._value,this.format.decimals),n=sn(t._value,t.format.decimals);return e.fromValue(r.add(n),this.format.decimals,this.format)},e.prototype.subUnsafe=function(t){this._checkFormat(t);var r=sn(this._value,this.format.decimals),n=sn(t._value,t.format.decimals);return e.fromValue(r.sub(n),this.format.decimals,this.format)},e.prototype.mulUnsafe=function(t){this._checkFormat(t);var r=sn(this._value,this.format.decimals),n=sn(t._value,t.format.decimals);return e.fromValue(r.mul(n).div(this.format._multiplier),this.format.decimals,this.format)},e.prototype.divUnsafe=function(t){this._checkFormat(t);var r=sn(this._value,this.format.decimals),n=sn(t._value,t.format.decimals);return e.fromValue(r.mul(this.format._multiplier).div(n),this.format.decimals,this.format)},e.prototype.floor=function(){var t=this.toString().split(".");t.length===1&&t.push("0");var r=e.from(t[0],this.format),n=!t[1].match(/^(0*)$/);return this.isNegative()&&n&&(r=r.subUnsafe(hp.toFormat(r.format))),r},e.prototype.ceiling=function(){var t=this.toString().split(".");t.length===1&&t.push("0");var r=e.from(t[0],this.format),n=!t[1].match(/^(0*)$/);return!this.isNegative()&&n&&(r=r.addUnsafe(hp.toFormat(r.format))),r},e.prototype.round=function(t){t==null&&(t=0);var r=this.toString().split(".");if(r.length===1&&r.push("0"),(t<0||t>80||t%1)&&pt.throwArgumentError("invalid decimal count","decimals",t),r[1].length<=t)return this;var n=e.from("1"+lu.substring(0,t),this.format),i=db.toFormat(this.format);return this.mulUnsafe(n).addUnsafe(i).floor().divUnsafe(n)},e.prototype.isZero=function(){return this._value==="0.0"||this._value==="0"},e.prototype.isNegative=function(){return this._value[0]==="-"},e.prototype.toString=function(){return this._value},e.prototype.toHexString=function(t){if(t==null)return this._hex;t%8&&pt.throwArgumentError("invalid byte width","width",t);var r=bn.BigNumber.from(this._hex).fromTwos(this.format.width).toTwos(t).toHexString();return(0,_s.hexZeroPad)(r,t/8)},e.prototype.toUnsafeFloat=function(){return parseFloat(this.toString())},e.prototype.toFormat=function(t){return e.fromString(this._value,t)},e.fromValue=function(t,r,n){return n==null&&r!=null&&!(0,bn.isBigNumberish)(r)&&(n=r,r=null),r==null&&(r=0),n==null&&(n="fixed"),e.fromString(As(t,r),$s.from(n))},e.fromString=function(t,r){r==null&&(r="fixed");var n=$s.from(r),i=sn(t,n.decimals);!n.signed&&i.lt(pp)&&yp("unsigned value cannot be negative","overflow","value",t);var a=null;n.signed?a=i.toTwos(n.width).toHexString():(a=i.toHexString(),a=(0,_s.hexZeroPad)(a,n.width/8));var u=As(i,n.decimals);return new e(du,a,u,n)},e.fromBytes=function(t,r){r==null&&(r="fixed");var n=$s.from(r);if((0,_s.arrayify)(t).length>n.width/8)throw new Error("overflow");var i=bn.BigNumber.from(t);n.signed&&(i=i.fromTwos(n.width));var a=i.toTwos((n.signed?0:1)+n.width).toHexString(),u=As(i,n.decimals);return new e(du,a,u,n)},e.from=function(t,r){if(typeof t=="string")return e.fromString(t,r);if((0,_s.isBytes)(t))return e.fromBytes(t,r);try{return e.fromValue(t,0,r)}catch(n){if(n.code!==cu.Logger.errors.INVALID_ARGUMENT)throw n}return pt.throwArgumentError("invalid FixedNumber value","value",t)},e.isFixedNumber=function(t){return!!(t&&t._isFixedNumber)},e}();fn.FixedNumber=yl;var hp=yl.from(1),db=yl.from("0.5")});var En=h(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt._base36To16=dt._base16To36=dt.parseFixed=dt.FixedNumber=dt.FixedFormat=dt.formatFixed=dt.BigNumber=void 0;var lb=vs();Object.defineProperty(dt,"BigNumber",{enumerable:!0,get:function(){return lb.BigNumber}});var bs=mp();Object.defineProperty(dt,"formatFixed",{enumerable:!0,get:function(){return bs.formatFixed}});Object.defineProperty(dt,"FixedFormat",{enumerable:!0,get:function(){return bs.FixedFormat}});Object.defineProperty(dt,"FixedNumber",{enumerable:!0,get:function(){return bs.FixedNumber}});Object.defineProperty(dt,"parseFixed",{enumerable:!0,get:function(){return bs.parseFixed}});var vp=vs();Object.defineProperty(dt,"_base16To36",{enumerable:!0,get:function(){return vp._base16To36}});Object.defineProperty(dt,"_base36To16",{enumerable:!0,get:function(){return vp._base36To16}})});var _p=h(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.version=void 0;Es.version="properties/5.7.0"});var va=h(Qe=>{"use strict";var cb=Qe&&Qe.__awaiter||function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function f($){try{c(n.next($))}catch(E){u(E)}}function p($){try{c(n.throw($))}catch(E){u(E)}}function c($){$.done?a($.value):i($.value).then(f,p)}c((n=n.apply(e,t||[])).next())})},hb=Qe&&Qe.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,u;return u={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function f(c){return function($){return p([c,$])}}function p(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=c[0]&2?i.return:c[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;switch(i=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){r.label=c[1];break}if(c[0]===6&&r.label<a[1]){r.label=a[1],a=c;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(c);break}a[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch($){c=[6,$],i=0}finally{n=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}};Object.defineProperty(Qe,"__esModule",{value:!0});Qe.Description=Qe.deepCopy=Qe.shallowCopy=Qe.checkProperties=Qe.resolveProperties=Qe.getStatic=Qe.defineReadOnly=void 0;var pb=ht(),gb=_p(),Ms=new pb.Logger(gb.version);function Ap(e,t,r){Object.defineProperty(e,t,{enumerable:!0,value:r,writable:!1})}Qe.defineReadOnly=Ap;function yb(e,t){for(var r=0;r<32;r++){if(e[t])return e[t];if(!e.prototype||typeof e.prototype!="object")break;e=Object.getPrototypeOf(e.prototype).constructor}return null}Qe.getStatic=yb;function mb(e){return cb(this,void 0,void 0,function(){var t,r;return hb(this,function(n){switch(n.label){case 0:return t=Object.keys(e).map(function(i){var a=e[i];return Promise.resolve(a).then(function(u){return{key:i,value:u}})}),[4,Promise.all(t)];case 1:return r=n.sent(),[2,r.reduce(function(i,a){return i[a.key]=a.value,i},{})]}})})}Qe.resolveProperties=mb;function vb(e,t){(!e||typeof e!="object")&&Ms.throwArgumentError("invalid object","object",e),Object.keys(e).forEach(function(r){t[r]||Ms.throwArgumentError("invalid object key - "+r,"transaction:"+r,e)})}Qe.checkProperties=vb;function _b(e){var t={};for(var r in e)t[r]=e[r];return t}Qe.shallowCopy=_b;var Ab={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function $p(e){if(e==null||Ab[typeof e])return!0;if(Array.isArray(e)||typeof e=="object"){if(!Object.isFrozen(e))return!1;for(var t=Object.keys(e),r=0;r<t.length;r++){var n=null;try{n=e[t[r]]}catch{continue}if(!$p(n))return!1}return!0}return Ms.throwArgumentError("Cannot deepCopy "+typeof e,"object",e)}function $b(e){if($p(e))return e;if(Array.isArray(e))return Object.freeze(e.map(function(i){return Ns(i)}));if(typeof e=="object"){var t={};for(var r in e){var n=e[r];n!==void 0&&Ap(t,r,Ns(n))}return t}return Ms.throwArgumentError("Cannot deepCopy "+typeof e,"object",e)}function Ns(e){return $b(e)}Qe.deepCopy=Ns;var bb=function(){function e(t){for(var r in t)this[r]=Ns(t[r])}return e}();Qe.Description=bb});var _a=h(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.version=void 0;Ss.version="abi/5.7.0"});var xs=h(G=>{"use strict";var ws=G&&G.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(G,"__esModule",{value:!0});G.ErrorFragment=G.FunctionFragment=G.ConstructorFragment=G.EventFragment=G.Fragment=G.ParamType=G.FormatTypes=void 0;var Al=En(),Eb=va(),Ts=ht(),Mb=_a(),K=new Ts.Logger(Mb.version),Ji={},bp={calldata:!0,memory:!0,storage:!0},Nb={calldata:!0,memory:!0};function Is(e,t){if(e==="bytes"||e==="string"){if(bp[t])return!0}else if(e==="address"){if(t==="payable")return!0}else if((e.indexOf("[")>=0||e==="tuple")&&Nb[t])return!0;return(bp[t]||t==="payable")&&K.throwArgumentError("invalid modifier","name",t),!1}function Sb(e,t){var r=e;function n(E){K.throwArgumentError("unexpected character at position "+E,"param",e)}e=e.replace(/\s/g," ");function i(E){var C={type:"",name:"",parent:E,state:{allowType:!0}};return t&&(C.indexed=!1),C}for(var a={type:"",name:"",state:{allowType:!0}},u=a,f=0;f<e.length;f++){var p=e[f];switch(p){case"(":u.state.allowType&&u.type===""?u.type="tuple":u.state.allowParams||n(f),u.state.allowType=!1,u.type=Aa(u.type),u.components=[i(u)],u=u.components[0];break;case")":delete u.state,u.name==="indexed"&&(t||n(f),u.indexed=!0,u.name=""),Is(u.type,u.name)&&(u.name=""),u.type=Aa(u.type);var c=u;u=u.parent,u||n(f),delete c.parent,u.state.allowParams=!1,u.state.allowName=!0,u.state.allowArray=!0;break;case",":delete u.state,u.name==="indexed"&&(t||n(f),u.indexed=!0,u.name=""),Is(u.type,u.name)&&(u.name=""),u.type=Aa(u.type);var $=i(u.parent);u.parent.components.push($),delete u.parent,u=$;break;case" ":u.state.allowType&&u.type!==""&&(u.type=Aa(u.type),delete u.state.allowType,u.state.allowName=!0,u.state.allowParams=!0),u.state.allowName&&u.name!==""&&(u.name==="indexed"?(t||n(f),u.indexed&&n(f),u.indexed=!0,u.name=""):Is(u.type,u.name)?u.name="":u.state.allowName=!1);break;case"[":u.state.allowArray||n(f),u.type+=p,u.state.allowArray=!1,u.state.allowName=!1,u.state.readArray=!0;break;case"]":u.state.readArray||n(f),u.type+=p,u.state.readArray=!1,u.state.allowArray=!0,u.state.allowName=!0;break;default:u.state.allowType?(u.type+=p,u.state.allowParams=!0,u.state.allowArray=!0):u.state.allowName?(u.name+=p,delete u.state.allowArray):u.state.readArray?u.type+=p:n(f)}}return u.parent&&K.throwArgumentError("unexpected eof","param",e),delete a.state,u.name==="indexed"?(t||n(r.length-7),u.indexed&&n(r.length-7),u.indexed=!0,u.name=""):Is(u.type,u.name)&&(u.name=""),a.type=Aa(a.type),a}function Cs(e,t){for(var r in t)(0,Eb.defineReadOnly)(e,r,t[r])}G.FormatTypes=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"});var Ib=new RegExp(/^(.*)\[([0-9]*)\]$/),Qi=function(){function e(t,r){t!==Ji&&K.throwError("use fromString",Ts.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),Cs(this,r);var n=this.type.match(Ib);n?Cs(this,{arrayLength:parseInt(n[2]||"-1"),arrayChildren:e.fromObject({type:n[1],components:this.components}),baseType:"array"}):Cs(this,{arrayLength:null,arrayChildren:null,baseType:this.components!=null?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}return e.prototype.format=function(t){if(t||(t=G.FormatTypes.sighash),G.FormatTypes[t]||K.throwArgumentError("invalid format type","format",t),t===G.FormatTypes.json){var r={type:this.baseType==="tuple"?"tuple":this.type,name:this.name||void 0};return typeof this.indexed=="boolean"&&(r.indexed=this.indexed),this.components&&(r.components=this.components.map(function(i){return JSON.parse(i.format(t))})),JSON.stringify(r)}var n="";return this.baseType==="array"?(n+=this.arrayChildren.format(t),n+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):this.baseType==="tuple"?(t!==G.FormatTypes.sighash&&(n+=this.type),n+="("+this.components.map(function(i){return i.format(t)}).join(t===G.FormatTypes.full?", ":",")+")"):n+=this.type,t!==G.FormatTypes.sighash&&(this.indexed===!0&&(n+=" indexed"),t===G.FormatTypes.full&&this.name&&(n+=" "+this.name)),n},e.from=function(t,r){return typeof t=="string"?e.fromString(t,r):e.fromObject(t)},e.fromObject=function(t){return e.isParamType(t)?t:new e(Ji,{name:t.name||null,type:Aa(t.type),indexed:t.indexed==null?null:!!t.indexed,components:t.components?t.components.map(e.fromObject):null})},e.fromString=function(t,r){function n(i){return e.fromObject({name:i.name,type:i.type,indexed:i.indexed,components:i.components})}return n(Sb(t,!!r))},e.isParamType=function(t){return!!(t!=null&&t._isParamType)},e}();G.ParamType=Qi;function hu(e,t){return Pb(e).map(function(r){return Qi.fromString(r,t)})}var Os=function(){function e(t,r){t!==Ji&&K.throwError("use a static from method",Ts.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),Cs(this,r),this._isFragment=!0,Object.freeze(this)}return e.from=function(t){return e.isFragment(t)?t:typeof t=="string"?e.fromString(t):e.fromObject(t)},e.fromObject=function(t){if(e.isFragment(t))return t;switch(t.type){case"function":return vl.fromObject(t);case"event":return ml.fromObject(t);case"constructor":return Ps.fromObject(t);case"error":return _l.fromObject(t);case"fallback":case"receive":return null}return K.throwArgumentError("invalid fragment object","value",t)},e.fromString=function(t){return t=t.replace(/\s/g," "),t=t.replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," "),t=t.trim(),t.split(" ")[0]==="event"?ml.fromString(t.substring(5).trim()):t.split(" ")[0]==="function"?vl.fromString(t.substring(8).trim()):t.split("(")[0].trim()==="constructor"?Ps.fromString(t.trim()):t.split(" ")[0]==="error"?_l.fromString(t.substring(5).trim()):K.throwArgumentError("unsupported fragment","value",t)},e.isFragment=function(t){return!!(t&&t._isFragment)},e}();G.Fragment=Os;var ml=function(e){ws(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.format=function(r){if(r||(r=G.FormatTypes.sighash),G.FormatTypes[r]||K.throwArgumentError("invalid format type","format",r),r===G.FormatTypes.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(function(i){return JSON.parse(i.format(r))})});var n="";return r!==G.FormatTypes.sighash&&(n+="event "),n+=this.name+"("+this.inputs.map(function(i){return i.format(r)}).join(r===G.FormatTypes.full?", ":",")+") ",r!==G.FormatTypes.sighash&&this.anonymous&&(n+="anonymous "),n.trim()},t.from=function(r){return typeof r=="string"?t.fromString(r):t.fromObject(r)},t.fromObject=function(r){if(t.isEventFragment(r))return r;r.type!=="event"&&K.throwArgumentError("invalid event object","value",r);var n={name:pu(r.name),anonymous:r.anonymous,inputs:r.inputs?r.inputs.map(Qi.fromObject):[],type:"event"};return new t(Ji,n)},t.fromString=function(r){var n=r.match(gu);n||K.throwArgumentError("invalid event string","value",r);var i=!1;return n[3].split(" ").forEach(function(a){switch(a.trim()){case"anonymous":i=!0;break;case"":break;default:K.warn("unknown modifier: "+a)}}),t.fromObject({name:n[1].trim(),anonymous:i,inputs:hu(n[2],!0),type:"event"})},t.isEventFragment=function(r){return r&&r._isFragment&&r.type==="event"},t}(Os);G.EventFragment=ml;function Mp(e,t){t.gas=null;var r=e.split("@");return r.length!==1?(r.length>2&&K.throwArgumentError("invalid human-readable ABI signature","value",e),r[1].match(/^[0-9]+$/)||K.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=Al.BigNumber.from(r[1]),r[0]):e}function Np(e,t){t.constant=!1,t.payable=!1,t.stateMutability="nonpayable",e.split(" ").forEach(function(r){switch(r.trim()){case"constant":t.constant=!0;break;case"payable":t.payable=!0,t.stateMutability="payable";break;case"nonpayable":t.payable=!1,t.stateMutability="nonpayable";break;case"pure":t.constant=!0,t.stateMutability="pure";break;case"view":t.constant=!0,t.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+r)}})}function Sp(e){var t={constant:!1,payable:!0,stateMutability:"payable"};return e.stateMutability!=null?(t.stateMutability=e.stateMutability,t.constant=t.stateMutability==="view"||t.stateMutability==="pure",e.constant!=null&&!!e.constant!==t.constant&&K.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable=t.stateMutability==="payable",e.payable!=null&&!!e.payable!==t.payable&&K.throwArgumentError("cannot have payable function with mutability "+t.stateMutability,"value",e)):e.payable!=null?(t.payable=!!e.payable,e.constant==null&&!t.payable&&e.type!=="constructor"&&K.throwArgumentError("unable to determine stateMutability","value",e),t.constant=!!e.constant,t.constant?t.stateMutability="view":t.stateMutability=t.payable?"payable":"nonpayable",t.payable&&t.constant&&K.throwArgumentError("cannot have constant payable function","value",e)):e.constant!=null?(t.constant=!!e.constant,t.payable=!t.constant,t.stateMutability=t.constant?"view":"payable"):e.type!=="constructor"&&K.throwArgumentError("unable to determine stateMutability","value",e),t}var Ps=function(e){ws(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.format=function(r){if(r||(r=G.FormatTypes.sighash),G.FormatTypes[r]||K.throwArgumentError("invalid format type","format",r),r===G.FormatTypes.json)return JSON.stringify({type:"constructor",stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(function(i){return JSON.parse(i.format(r))})});r===G.FormatTypes.sighash&&K.throwError("cannot format a constructor for sighash",Ts.Logger.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});var n="constructor("+this.inputs.map(function(i){return i.format(r)}).join(r===G.FormatTypes.full?", ":",")+") ";return this.stateMutability&&this.stateMutability!=="nonpayable"&&(n+=this.stateMutability+" "),n.trim()},t.from=function(r){return typeof r=="string"?t.fromString(r):t.fromObject(r)},t.fromObject=function(r){if(t.isConstructorFragment(r))return r;r.type!=="constructor"&&K.throwArgumentError("invalid constructor object","value",r);var n=Sp(r);n.constant&&K.throwArgumentError("constructor cannot be constant","value",r);var i={name:null,type:r.type,inputs:r.inputs?r.inputs.map(Qi.fromObject):[],payable:n.payable,stateMutability:n.stateMutability,gas:r.gas?Al.BigNumber.from(r.gas):null};return new t(Ji,i)},t.fromString=function(r){var n={type:"constructor"};r=Mp(r,n);var i=r.match(gu);return(!i||i[1].trim()!=="constructor")&&K.throwArgumentError("invalid constructor string","value",r),n.inputs=hu(i[2].trim(),!1),Np(i[3].trim(),n),t.fromObject(n)},t.isConstructorFragment=function(r){return r&&r._isFragment&&r.type==="constructor"},t}(Os);G.ConstructorFragment=Ps;var vl=function(e){ws(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.format=function(r){if(r||(r=G.FormatTypes.sighash),G.FormatTypes[r]||K.throwArgumentError("invalid format type","format",r),r===G.FormatTypes.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(function(i){return JSON.parse(i.format(r))}),outputs:this.outputs.map(function(i){return JSON.parse(i.format(r))})});var n="";return r!==G.FormatTypes.sighash&&(n+="function "),n+=this.name+"("+this.inputs.map(function(i){return i.format(r)}).join(r===G.FormatTypes.full?", ":",")+") ",r!==G.FormatTypes.sighash&&(this.stateMutability?this.stateMutability!=="nonpayable"&&(n+=this.stateMutability+" "):this.constant&&(n+="view "),this.outputs&&this.outputs.length&&(n+="returns ("+this.outputs.map(function(i){return i.format(r)}).join(", ")+") "),this.gas!=null&&(n+="@"+this.gas.toString()+" ")),n.trim()},t.from=function(r){return typeof r=="string"?t.fromString(r):t.fromObject(r)},t.fromObject=function(r){if(t.isFunctionFragment(r))return r;r.type!=="function"&&K.throwArgumentError("invalid function object","value",r);var n=Sp(r),i={type:r.type,name:pu(r.name),constant:n.constant,inputs:r.inputs?r.inputs.map(Qi.fromObject):[],outputs:r.outputs?r.outputs.map(Qi.fromObject):[],payable:n.payable,stateMutability:n.stateMutability,gas:r.gas?Al.BigNumber.from(r.gas):null};return new t(Ji,i)},t.fromString=function(r){var n={type:"function"};r=Mp(r,n);var i=r.split(" returns ");i.length>2&&K.throwArgumentError("invalid function string","value",r);var a=i[0].match(gu);if(a||K.throwArgumentError("invalid function signature","value",r),n.name=a[1].trim(),n.name&&pu(n.name),n.inputs=hu(a[2],!1),Np(a[3].trim(),n),i.length>1){var u=i[1].match(gu);(u[1].trim()!=""||u[3].trim()!="")&&K.throwArgumentError("unexpected tokens","value",r),n.outputs=hu(u[2],!1)}else n.outputs=[];return t.fromObject(n)},t.isFunctionFragment=function(r){return r&&r._isFragment&&r.type==="function"},t}(Ps);G.FunctionFragment=vl;function Ep(e){var t=e.format();return(t==="Error(string)"||t==="Panic(uint256)")&&K.throwArgumentError("cannot specify user defined "+t+" error","fragment",e),e}var _l=function(e){ws(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.format=function(r){if(r||(r=G.FormatTypes.sighash),G.FormatTypes[r]||K.throwArgumentError("invalid format type","format",r),r===G.FormatTypes.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(function(i){return JSON.parse(i.format(r))})});var n="";return r!==G.FormatTypes.sighash&&(n+="error "),n+=this.name+"("+this.inputs.map(function(i){return i.format(r)}).join(r===G.FormatTypes.full?", ":",")+") ",n.trim()},t.from=function(r){return typeof r=="string"?t.fromString(r):t.fromObject(r)},t.fromObject=function(r){if(t.isErrorFragment(r))return r;r.type!=="error"&&K.throwArgumentError("invalid error object","value",r);var n={type:r.type,name:pu(r.name),inputs:r.inputs?r.inputs.map(Qi.fromObject):[]};return Ep(new t(Ji,n))},t.fromString=function(r){var n={type:"error"},i=r.match(gu);return i||K.throwArgumentError("invalid error signature","value",r),n.name=i[1].trim(),n.name&&pu(n.name),n.inputs=hu(i[2],!1),Ep(t.fromObject(n))},t.isErrorFragment=function(r){return r&&r._isFragment&&r.type==="error"},t}(Os);G.ErrorFragment=_l;function Aa(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}var Cb=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function pu(e){return(!e||!e.match(Cb))&&K.throwArgumentError('invalid identifier "'+e+'"',"value",e),e}var gu=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");function Pb(e){e=e.trim();for(var t=[],r="",n=0,i=0;i<e.length;i++){var a=e[i];a===","&&n===0?(t.push(r),r=""):(r+=a,a==="("?n++:a===")"&&(n--,n===-1&&K.throwArgumentError("unbalanced parenthesis","value",e)))}return r&&t.push(r),t}});var Ot=h(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.Reader=dn.Writer=dn.Coder=dn.checkResultErrors=void 0;var mi=Je(),Ip=En(),yu=va(),$l=ht(),wb=_a(),bl=new $l.Logger(wb.version);function Tb(e){var t=[],r=function(n,i){if(!!Array.isArray(i))for(var a in i){var u=n.slice();u.push(a);try{r(u,i[a])}catch(f){t.push({path:u,error:f})}}};return r([],e),t}dn.checkResultErrors=Tb;var Ob=function(){function e(t,r,n,i){this.name=t,this.type=r,this.localName=n,this.dynamic=i}return e.prototype._throwError=function(t,r){bl.throwArgumentError(t,this.localName,r)},e}();dn.Coder=Ob;var xb=function(){function e(t){(0,yu.defineReadOnly)(this,"wordSize",t||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(t)}return Object.defineProperty(e.prototype,"data",{get:function(){return(0,mi.hexConcat)(this._data)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._dataLength},enumerable:!1,configurable:!0}),e.prototype._writeData=function(t){return this._data.push(t),this._dataLength+=t.length,t.length},e.prototype.appendWriter=function(t){return this._writeData((0,mi.concat)(t._data))},e.prototype.writeBytes=function(t){var r=(0,mi.arrayify)(t),n=r.length%this.wordSize;return n&&(r=(0,mi.concat)([r,this._padding.slice(n)])),this._writeData(r)},e.prototype._getValue=function(t){var r=(0,mi.arrayify)(Ip.BigNumber.from(t));return r.length>this.wordSize&&bl.throwError("value out-of-bounds",$l.Logger.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:r.length}),r.length%this.wordSize&&(r=(0,mi.concat)([this._padding.slice(r.length%this.wordSize),r])),r},e.prototype.writeValue=function(t){return this._writeData(this._getValue(t))},e.prototype.writeUpdatableValue=function(){var t=this,r=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,function(n){t._data[r]=t._getValue(n)}},e}();dn.Writer=xb;var Fb=function(){function e(t,r,n,i){(0,yu.defineReadOnly)(this,"_data",(0,mi.arrayify)(t)),(0,yu.defineReadOnly)(this,"wordSize",r||32),(0,yu.defineReadOnly)(this,"_coerceFunc",n),(0,yu.defineReadOnly)(this,"allowLoose",i),this._offset=0}return Object.defineProperty(e.prototype,"data",{get:function(){return(0,mi.hexlify)(this._data)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"consumed",{get:function(){return this._offset},enumerable:!1,configurable:!0}),e.coerce=function(t,r){var n=t.match("^u?int([0-9]+)$");return n&&parseInt(n[1])<=48&&(r=r.toNumber()),r},e.prototype.coerce=function(t,r){return this._coerceFunc?this._coerceFunc(t,r):e.coerce(t,r)},e.prototype._peekBytes=function(t,r,n){var i=Math.ceil(r/this.wordSize)*this.wordSize;return this._offset+i>this._data.length&&(this.allowLoose&&n&&this._offset+r<=this._data.length?i=r:bl.throwError("data out-of-bounds",$l.Logger.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+i})),this._data.slice(this._offset,this._offset+i)},e.prototype.subReader=function(t){return new e(this._data.slice(this._offset+t),this.wordSize,this._coerceFunc,this.allowLoose)},e.prototype.readBytes=function(t,r){var n=this._peekBytes(0,t,!!r);return this._offset+=n.length,n.slice(0,t)},e.prototype.readValue=function(){return Ip.BigNumber.from(this.readBytes(this.wordSize))},e}();dn.Reader=Fb});var Cp=h((qH,Fs)=>{(function(){"use strict";var e="input is invalid type",t="finalize already called",r=typeof window=="object",n=r?window:{};n.JS_SHA3_NO_WINDOW&&(r=!1);var i=!r&&typeof self=="object",a=!n.JS_SHA3_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;a?n=global:i&&(n=self);var u=!n.JS_SHA3_NO_COMMON_JS&&typeof Fs=="object"&&Fs.exports,f=typeof define=="function"&&define.amd,p=!n.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",c="0123456789abcdef".split(""),$=[31,7936,2031616,520093696],E=[4,1024,262144,67108864],C=[1,256,65536,16777216],N=[6,1536,393216,100663296],P=[0,8,16,24],R=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],k=[224,256,384,512],Q=[128,256],H=["hex","buffer","arrayBuffer","array","digest"],z={128:168,256:136};(n.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(l){return Object.prototype.toString.call(l)==="[object Array]"}),p&&(n.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(l){return typeof l=="object"&&l.buffer&&l.buffer.constructor===ArrayBuffer});for(var ze=function(l,S,I){return function(w){return new s(l,S,l).update(w)[I]()}},Ct=function(l,S,I){return function(w,F){return new s(l,S,F).update(w)[I]()}},Ve=function(l,S,I){return function(w,F,V,B){return o["cshake"+l].update(w,F,V,B)[I]()}},Lt=function(l,S,I){return function(w,F,V,B){return o["kmac"+l].update(w,F,V,B)[I]()}},qt=function(l,S,I,w){for(var F=0;F<H.length;++F){var V=H[F];l[V]=S(I,w,V)}return l},mt=function(l,S){var I=ze(l,S,"hex");return I.create=function(){return new s(l,S,l)},I.update=function(w){return I.create().update(w)},qt(I,ze,l,S)},Et=function(l,S){var I=Ct(l,S,"hex");return I.create=function(w){return new s(l,S,w)},I.update=function(w,F){return I.create(F).update(w)},qt(I,Ct,l,S)},ne=function(l,S){var I=z[l],w=Ve(l,S,"hex");return w.create=function(F,V,B){return!V&&!B?o["shake"+l].create(F):new s(l,S,F).bytepad([V,B],I)},w.update=function(F,V,B,D){return w.create(V,B,D).update(F)},qt(w,Ve,l,S)},Pt=function(l,S){var I=z[l],w=Lt(l,S,"hex");return w.create=function(F,V,B){return new _(l,S,V).bytepad(["KMAC",B],I).bytepad([F],I)},w.update=function(F,V,B,D){return w.create(F,B,D).update(V)},qt(w,Lt,l,S)},A=[{name:"keccak",padding:C,bits:k,createMethod:mt},{name:"sha3",padding:N,bits:k,createMethod:mt},{name:"shake",padding:$,bits:Q,createMethod:Et},{name:"cshake",padding:E,bits:Q,createMethod:ne},{name:"kmac",padding:E,bits:Q,createMethod:Pt}],o={},d=[],g=0;g<A.length;++g)for(var y=A[g],v=y.bits,b=0;b<v.length;++b){var M=y.name+"_"+v[b];if(d.push(M),o[M]=y.createMethod(v[b],y.padding),y.name!=="sha3"){var m=y.name+v[b];d.push(m),o[m]=o[M]}}function s(l,S,I){this.blocks=[],this.s=[],this.padding=S,this.outputBits=I,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(l<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=I>>5,this.extraBytes=(I&31)>>3;for(var w=0;w<50;++w)this.s[w]=0}s.prototype.update=function(l){if(this.finalized)throw new Error(t);var S,I=typeof l;if(I!=="string"){if(I==="object"){if(l===null)throw new Error(e);if(p&&l.constructor===ArrayBuffer)l=new Uint8Array(l);else if(!Array.isArray(l)&&(!p||!ArrayBuffer.isView(l)))throw new Error(e)}else throw new Error(e);S=!0}for(var w=this.blocks,F=this.byteCount,V=l.length,B=this.blockCount,D=0,ke=this.s,q,j;D<V;){if(this.reset)for(this.reset=!1,w[0]=this.block,q=1;q<B+1;++q)w[q]=0;if(S)for(q=this.start;D<V&&q<F;++D)w[q>>2]|=l[D]<<P[q++&3];else for(q=this.start;D<V&&q<F;++D)j=l.charCodeAt(D),j<128?w[q>>2]|=j<<P[q++&3]:j<2048?(w[q>>2]|=(192|j>>6)<<P[q++&3],w[q>>2]|=(128|j&63)<<P[q++&3]):j<55296||j>=57344?(w[q>>2]|=(224|j>>12)<<P[q++&3],w[q>>2]|=(128|j>>6&63)<<P[q++&3],w[q>>2]|=(128|j&63)<<P[q++&3]):(j=65536+((j&1023)<<10|l.charCodeAt(++D)&1023),w[q>>2]|=(240|j>>18)<<P[q++&3],w[q>>2]|=(128|j>>12&63)<<P[q++&3],w[q>>2]|=(128|j>>6&63)<<P[q++&3],w[q>>2]|=(128|j&63)<<P[q++&3]);if(this.lastByteIndex=q,q>=F){for(this.start=q-F,this.block=w[B],q=0;q<B;++q)ke[q]^=w[q];L(ke),this.reset=!0}else this.start=q}return this},s.prototype.encode=function(l,S){var I=l&255,w=1,F=[I];for(l=l>>8,I=l&255;I>0;)F.unshift(I),l=l>>8,I=l&255,++w;return S?F.push(w):F.unshift(w),this.update(F),F.length},s.prototype.encodeString=function(l){var S,I=typeof l;if(I!=="string"){if(I==="object"){if(l===null)throw new Error(e);if(p&&l.constructor===ArrayBuffer)l=new Uint8Array(l);else if(!Array.isArray(l)&&(!p||!ArrayBuffer.isView(l)))throw new Error(e)}else throw new Error(e);S=!0}var w=0,F=l.length;if(S)w=F;else for(var V=0;V<l.length;++V){var B=l.charCodeAt(V);B<128?w+=1:B<2048?w+=2:B<55296||B>=57344?w+=3:(B=65536+((B&1023)<<10|l.charCodeAt(++V)&1023),w+=4)}return w+=this.encode(w*8),this.update(l),w},s.prototype.bytepad=function(l,S){for(var I=this.encode(S),w=0;w<l.length;++w)I+=this.encodeString(l[w]);var F=S-I%S,V=[];return V.length=F,this.update(V),this},s.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var l=this.blocks,S=this.lastByteIndex,I=this.blockCount,w=this.s;if(l[S>>2]|=this.padding[S&3],this.lastByteIndex===this.byteCount)for(l[0]=l[I],S=1;S<I+1;++S)l[S]=0;for(l[I-1]|=2147483648,S=0;S<I;++S)w[S]^=l[S];L(w)}},s.prototype.toString=s.prototype.hex=function(){this.finalize();for(var l=this.blockCount,S=this.s,I=this.outputBlocks,w=this.extraBytes,F=0,V=0,B="",D;V<I;){for(F=0;F<l&&V<I;++F,++V)D=S[F],B+=c[D>>4&15]+c[D&15]+c[D>>12&15]+c[D>>8&15]+c[D>>20&15]+c[D>>16&15]+c[D>>28&15]+c[D>>24&15];V%l===0&&(L(S),F=0)}return w&&(D=S[F],B+=c[D>>4&15]+c[D&15],w>1&&(B+=c[D>>12&15]+c[D>>8&15]),w>2&&(B+=c[D>>20&15]+c[D>>16&15])),B},s.prototype.arrayBuffer=function(){this.finalize();var l=this.blockCount,S=this.s,I=this.outputBlocks,w=this.extraBytes,F=0,V=0,B=this.outputBits>>3,D;w?D=new ArrayBuffer(I+1<<2):D=new ArrayBuffer(B);for(var ke=new Uint32Array(D);V<I;){for(F=0;F<l&&V<I;++F,++V)ke[V]=S[F];V%l===0&&L(S)}return w&&(ke[F]=S[F],D=D.slice(0,B)),D},s.prototype.buffer=s.prototype.arrayBuffer,s.prototype.digest=s.prototype.array=function(){this.finalize();for(var l=this.blockCount,S=this.s,I=this.outputBlocks,w=this.extraBytes,F=0,V=0,B=[],D,ke;V<I;){for(F=0;F<l&&V<I;++F,++V)D=V<<2,ke=S[F],B[D]=ke&255,B[D+1]=ke>>8&255,B[D+2]=ke>>16&255,B[D+3]=ke>>24&255;V%l===0&&L(S)}return w&&(D=V<<2,ke=S[F],B[D]=ke&255,w>1&&(B[D+1]=ke>>8&255),w>2&&(B[D+2]=ke>>16&255)),B};function _(l,S,I){s.call(this,l,S,I)}_.prototype=new s,_.prototype.finalize=function(){return this.encode(this.outputBits,!0),s.prototype.finalize.call(this)};var L=function(l){var S,I,w,F,V,B,D,ke,q,j,xi,ue,oe,Fi,se,fe,Di,de,le,Bi,ce,he,Ri,pe,ge,Li,ye,me,qi,ve,_e,Ui,Ae,$e,Vi,be,Ee,ki,Me,Ne,Hi,Se,Ie,Gi,Ce,Pe,Zi,we,Te,ji,Oe,xe,Wi,Fe,De,zi,Be,Re,ci,hi,pi,gi,yi;for(w=0;w<48;w+=2)F=l[0]^l[10]^l[20]^l[30]^l[40],V=l[1]^l[11]^l[21]^l[31]^l[41],B=l[2]^l[12]^l[22]^l[32]^l[42],D=l[3]^l[13]^l[23]^l[33]^l[43],ke=l[4]^l[14]^l[24]^l[34]^l[44],q=l[5]^l[15]^l[25]^l[35]^l[45],j=l[6]^l[16]^l[26]^l[36]^l[46],xi=l[7]^l[17]^l[27]^l[37]^l[47],ue=l[8]^l[18]^l[28]^l[38]^l[48],oe=l[9]^l[19]^l[29]^l[39]^l[49],S=ue^(B<<1|D>>>31),I=oe^(D<<1|B>>>31),l[0]^=S,l[1]^=I,l[10]^=S,l[11]^=I,l[20]^=S,l[21]^=I,l[30]^=S,l[31]^=I,l[40]^=S,l[41]^=I,S=F^(ke<<1|q>>>31),I=V^(q<<1|ke>>>31),l[2]^=S,l[3]^=I,l[12]^=S,l[13]^=I,l[22]^=S,l[23]^=I,l[32]^=S,l[33]^=I,l[42]^=S,l[43]^=I,S=B^(j<<1|xi>>>31),I=D^(xi<<1|j>>>31),l[4]^=S,l[5]^=I,l[14]^=S,l[15]^=I,l[24]^=S,l[25]^=I,l[34]^=S,l[35]^=I,l[44]^=S,l[45]^=I,S=ke^(ue<<1|oe>>>31),I=q^(oe<<1|ue>>>31),l[6]^=S,l[7]^=I,l[16]^=S,l[17]^=I,l[26]^=S,l[27]^=I,l[36]^=S,l[37]^=I,l[46]^=S,l[47]^=I,S=j^(F<<1|V>>>31),I=xi^(V<<1|F>>>31),l[8]^=S,l[9]^=I,l[18]^=S,l[19]^=I,l[28]^=S,l[29]^=I,l[38]^=S,l[39]^=I,l[48]^=S,l[49]^=I,Fi=l[0],se=l[1],Pe=l[11]<<4|l[10]>>>28,Zi=l[10]<<4|l[11]>>>28,me=l[20]<<3|l[21]>>>29,qi=l[21]<<3|l[20]>>>29,hi=l[31]<<9|l[30]>>>23,pi=l[30]<<9|l[31]>>>23,Se=l[40]<<18|l[41]>>>14,Ie=l[41]<<18|l[40]>>>14,$e=l[2]<<1|l[3]>>>31,Vi=l[3]<<1|l[2]>>>31,fe=l[13]<<12|l[12]>>>20,Di=l[12]<<12|l[13]>>>20,we=l[22]<<10|l[23]>>>22,Te=l[23]<<10|l[22]>>>22,ve=l[33]<<13|l[32]>>>19,_e=l[32]<<13|l[33]>>>19,gi=l[42]<<2|l[43]>>>30,yi=l[43]<<2|l[42]>>>30,Fe=l[5]<<30|l[4]>>>2,De=l[4]<<30|l[5]>>>2,be=l[14]<<6|l[15]>>>26,Ee=l[15]<<6|l[14]>>>26,de=l[25]<<11|l[24]>>>21,le=l[24]<<11|l[25]>>>21,ji=l[34]<<15|l[35]>>>17,Oe=l[35]<<15|l[34]>>>17,Ui=l[45]<<29|l[44]>>>3,Ae=l[44]<<29|l[45]>>>3,pe=l[6]<<28|l[7]>>>4,ge=l[7]<<28|l[6]>>>4,zi=l[17]<<23|l[16]>>>9,Be=l[16]<<23|l[17]>>>9,ki=l[26]<<25|l[27]>>>7,Me=l[27]<<25|l[26]>>>7,Bi=l[36]<<21|l[37]>>>11,ce=l[37]<<21|l[36]>>>11,xe=l[47]<<24|l[46]>>>8,Wi=l[46]<<24|l[47]>>>8,Gi=l[8]<<27|l[9]>>>5,Ce=l[9]<<27|l[8]>>>5,Li=l[18]<<20|l[19]>>>12,ye=l[19]<<20|l[18]>>>12,Re=l[29]<<7|l[28]>>>25,ci=l[28]<<7|l[29]>>>25,Ne=l[38]<<8|l[39]>>>24,Hi=l[39]<<8|l[38]>>>24,he=l[48]<<14|l[49]>>>18,Ri=l[49]<<14|l[48]>>>18,l[0]=Fi^~fe&de,l[1]=se^~Di&le,l[10]=pe^~Li&me,l[11]=ge^~ye&qi,l[20]=$e^~be&ki,l[21]=Vi^~Ee&Me,l[30]=Gi^~Pe&we,l[31]=Ce^~Zi&Te,l[40]=Fe^~zi&Re,l[41]=De^~Be&ci,l[2]=fe^~de&Bi,l[3]=Di^~le&ce,l[12]=Li^~me&ve,l[13]=ye^~qi&_e,l[22]=be^~ki&Ne,l[23]=Ee^~Me&Hi,l[32]=Pe^~we&ji,l[33]=Zi^~Te&Oe,l[42]=zi^~Re&hi,l[43]=Be^~ci&pi,l[4]=de^~Bi&he,l[5]=le^~ce&Ri,l[14]=me^~ve&Ui,l[15]=qi^~_e&Ae,l[24]=ki^~Ne&Se,l[25]=Me^~Hi&Ie,l[34]=we^~ji&xe,l[35]=Te^~Oe&Wi,l[44]=Re^~hi&gi,l[45]=ci^~pi&yi,l[6]=Bi^~he&Fi,l[7]=ce^~Ri&se,l[16]=ve^~Ui&pe,l[17]=_e^~Ae&ge,l[26]=Ne^~Se&$e,l[27]=Hi^~Ie&Vi,l[36]=ji^~xe&Gi,l[37]=Oe^~Wi&Ce,l[46]=hi^~gi&Fe,l[47]=pi^~yi&De,l[8]=he^~Fi&fe,l[9]=Ri^~se&Di,l[18]=Ui^~pe&Li,l[19]=Ae^~ge&ye,l[28]=Se^~$e&be,l[29]=Ie^~Vi&Ee,l[38]=xe^~Gi&Pe,l[39]=Wi^~Ce&Zi,l[48]=gi^~Fe&zi,l[49]=yi^~De&Be,l[0]^=R[w],l[1]^=R[w+1]};if(u)Fs.exports=o;else{for(g=0;g<d.length;++g)n[d[g]]=o[d[g]];f&&define(function(){return o})}})()});var Xi=h($a=>{"use strict";var Db=$a&&$a.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty($a,"__esModule",{value:!0});$a.keccak256=void 0;var Bb=Db(Cp()),Rb=Je();function Lb(e){return"0x"+Bb.default.keccak_256((0,Rb.arrayify)(e))}$a.keccak256=Lb});var Pp=h(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Ds.version=void 0;Ds.version="rlp/5.7.0"});var Dp=h(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});ba.decode=ba.encode=void 0;var ea=Je(),Mn=ht(),qb=Pp(),ln=new Mn.Logger(qb.version);function wp(e){for(var t=[];e;)t.unshift(e&255),e>>=8;return t}function Tp(e,t,r){for(var n=0,i=0;i<r;i++)n=n*256+e[t+i];return n}function xp(e){if(Array.isArray(e)){var t=[];if(e.forEach(function(a){t=t.concat(xp(a))}),t.length<=55)return t.unshift(192+t.length),t;var r=wp(t.length);return r.unshift(247+r.length),r.concat(t)}(0,ea.isBytesLike)(e)||ln.throwArgumentError("RLP object must be BytesLike","object",e);var n=Array.prototype.slice.call((0,ea.arrayify)(e));if(n.length===1&&n[0]<=127)return n;if(n.length<=55)return n.unshift(128+n.length),n;var i=wp(n.length);return i.unshift(183+i.length),i.concat(n)}function Ub(e){return(0,ea.hexlify)(xp(e))}ba.encode=Ub;function Op(e,t,r,n){for(var i=[];r<t+1+n;){var a=Fp(e,r);i.push(a.result),r+=a.consumed,r>t+1+n&&ln.throwError("child data too short",Mn.Logger.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:i}}function Fp(e,t){if(e.length===0&&ln.throwError("data too short",Mn.Logger.errors.BUFFER_OVERRUN,{}),e[t]>=248){var r=e[t]-247;t+1+r>e.length&&ln.throwError("data short segment too short",Mn.Logger.errors.BUFFER_OVERRUN,{});var n=Tp(e,t+1,r);return t+1+r+n>e.length&&ln.throwError("data long segment too short",Mn.Logger.errors.BUFFER_OVERRUN,{}),Op(e,t,t+1+r,r+n)}else if(e[t]>=192){var i=e[t]-192;return t+1+i>e.length&&ln.throwError("data array too short",Mn.Logger.errors.BUFFER_OVERRUN,{}),Op(e,t,t+1,i)}else if(e[t]>=184){var r=e[t]-183;t+1+r>e.length&&ln.throwError("data array too short",Mn.Logger.errors.BUFFER_OVERRUN,{});var a=Tp(e,t+1,r);t+1+r+a>e.length&&ln.throwError("data array too short",Mn.Logger.errors.BUFFER_OVERRUN,{});var u=(0,ea.hexlify)(e.slice(t+1+r,t+1+r+a));return{consumed:1+r+a,result:u}}else if(e[t]>=128){var f=e[t]-128;t+1+f>e.length&&ln.throwError("data too short",Mn.Logger.errors.BUFFER_OVERRUN,{});var u=(0,ea.hexlify)(e.slice(t+1,t+1+f));return{consumed:1+f,result:u}}return{consumed:1,result:(0,ea.hexlify)(e[t])}}function Vb(e){var t=(0,ea.arrayify)(e),r=Fp(t,0);return r.consumed!==t.length&&ln.throwArgumentError("invalid rlp data","data",e),r.result}ba.decode=Vb});var Bp=h(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});Bs.version=void 0;Bs.version="address/5.7.0"});var Rs=h(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.getCreate2Address=xt.getContractAddress=xt.getIcapAddress=xt.isAddress=xt.getAddress=void 0;var Nn=Je(),El=En(),Ml=Xi(),kb=Dp(),Hb=ht(),Gb=Bp(),vi=new Hb.Logger(Gb.version);function Rp(e){(0,Nn.isHexString)(e,20)||vi.throwArgumentError("invalid address","address",e),e=e.toLowerCase();for(var t=e.substring(2).split(""),r=new Uint8Array(40),n=0;n<40;n++)r[n]=t[n].charCodeAt(0);for(var i=(0,Nn.arrayify)((0,Ml.keccak256)(r)),n=0;n<40;n+=2)i[n>>1]>>4>=8&&(t[n]=t[n].toUpperCase()),(i[n>>1]&15)>=8&&(t[n+1]=t[n+1].toUpperCase());return"0x"+t.join("")}var Zb=9007199254740991;function jb(e){return Math.log10?Math.log10(e):Math.log(e)/Math.LN10}var Nl={};for(Vt=0;Vt<10;Vt++)Nl[String(Vt)]=String(Vt);var Vt;for(Vt=0;Vt<26;Vt++)Nl[String.fromCharCode(65+Vt)]=String(10+Vt);var Vt,Lp=Math.floor(jb(Zb));function qp(e){e=e.toUpperCase(),e=e.substring(4)+e.substring(0,2)+"00";for(var t=e.split("").map(function(i){return Nl[i]}).join("");t.length>=Lp;){var r=t.substring(0,Lp);t=parseInt(r,10)%97+t.substring(r.length)}for(var n=String(98-parseInt(t,10)%97);n.length<2;)n="0"+n;return n}function ta(e){var t=null;if(typeof e!="string"&&vi.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))e.substring(0,2)!=="0x"&&(e="0x"+e),t=Rp(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&vi.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==qp(e)&&vi.throwArgumentError("bad icap checksum","address",e),t=(0,El._base36To16)(e.substring(4));t.length<40;)t="0"+t;t=Rp("0x"+t)}else vi.throwArgumentError("invalid address","address",e);return t}xt.getAddress=ta;function Wb(e){try{return ta(e),!0}catch{}return!1}xt.isAddress=Wb;function zb(e){for(var t=(0,El._base16To36)(ta(e).substring(2)).toUpperCase();t.length<30;)t="0"+t;return"XE"+qp("XE00"+t)+t}xt.getIcapAddress=zb;function Yb(e){var t=null;try{t=ta(e.from)}catch{vi.throwArgumentError("missing from address","transaction",e)}var r=(0,Nn.stripZeros)((0,Nn.arrayify)(El.BigNumber.from(e.nonce).toHexString()));return ta((0,Nn.hexDataSlice)((0,Ml.keccak256)((0,kb.encode)([t,r])),12))}xt.getContractAddress=Yb;function Kb(e,t,r){return(0,Nn.hexDataLength)(t)!==32&&vi.throwArgumentError("salt must be 32 bytes","salt",t),(0,Nn.hexDataLength)(r)!==32&&vi.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",r),ta((0,Nn.hexDataSlice)((0,Ml.keccak256)((0,Nn.concat)(["0xff",ta(e),t,r])),12))}xt.getCreate2Address=Kb});var Vp=h(Ea=>{"use strict";var Jb=Ea&&Ea.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Ea,"__esModule",{value:!0});Ea.AddressCoder=void 0;var Up=Rs(),Qb=Je(),Xb=Ot(),e5=function(e){Jb(t,e);function t(r){return e.call(this,"address","address",r,!1)||this}return t.prototype.defaultValue=function(){return"0x0000000000000000000000000000000000000000"},t.prototype.encode=function(r,n){try{n=(0,Up.getAddress)(n)}catch(i){this._throwError(i.message,n)}return r.writeValue(n)},t.prototype.decode=function(r){return(0,Up.getAddress)((0,Qb.hexZeroPad)(r.readValue().toHexString(),20))},t}(Xb.Coder);Ea.AddressCoder=e5});var kp=h(Ma=>{"use strict";var t5=Ma&&Ma.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Ma,"__esModule",{value:!0});Ma.AnonymousCoder=void 0;var r5=Ot(),n5=function(e){t5(t,e);function t(r){var n=e.call(this,r.name,r.type,void 0,r.dynamic)||this;return n.coder=r,n}return t.prototype.defaultValue=function(){return this.coder.defaultValue()},t.prototype.encode=function(r,n){return this.coder.encode(r,n)},t.prototype.decode=function(r){return this.coder.decode(r)},t}(r5.Coder);Ma.AnonymousCoder=n5});var Il=h(cn=>{"use strict";var i5=cn&&cn.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(cn,"__esModule",{value:!0});cn.ArrayCoder=cn.unpack=cn.pack=void 0;var Sa=ht(),a5=_a(),Na=new Sa.Logger(a5.version),Sl=Ot(),u5=kp();function Hp(e,t,r){var n=null;if(Array.isArray(r))n=r;else if(r&&typeof r=="object"){var i={};n=t.map(function(c){var $=c.localName;return $||Na.throwError("cannot encode object for signature with missing names",Sa.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:c,value:r}),i[$]&&Na.throwError("cannot encode object for signature with duplicate names",Sa.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:c,value:r}),i[$]=!0,r[$]})}else Na.throwArgumentError("invalid tuple value","tuple",r);t.length!==n.length&&Na.throwArgumentError("types/value length mismatch","tuple",r);var a=new Sl.Writer(e.wordSize),u=new Sl.Writer(e.wordSize),f=[];t.forEach(function(c,$){var E=n[$];if(c.dynamic){var C=u.length;c.encode(u,E);var N=a.writeUpdatableValue();f.push(function(P){N(P+C)})}else c.encode(a,E)}),f.forEach(function(c){c(a.length)});var p=e.appendWriter(a);return p+=e.appendWriter(u),p}cn.pack=Hp;function Gp(e,t){var r=[],n=e.subReader(0);t.forEach(function(f){var p=null;if(f.dynamic){var c=e.readValue(),$=n.subReader(c.toNumber());try{p=f.decode($)}catch(E){if(E.code===Sa.Logger.errors.BUFFER_OVERRUN)throw E;p=E,p.baseType=f.name,p.name=f.localName,p.type=f.type}}else try{p=f.decode(e)}catch(E){if(E.code===Sa.Logger.errors.BUFFER_OVERRUN)throw E;p=E,p.baseType=f.name,p.name=f.localName,p.type=f.type}p!=null&&r.push(p)});var i=t.reduce(function(f,p){var c=p.localName;return c&&(f[c]||(f[c]=0),f[c]++),f},{});t.forEach(function(f,p){var c=f.localName;if(!(!c||i[c]!==1)&&(c==="length"&&(c="_length"),r[c]==null)){var $=r[p];$ instanceof Error?Object.defineProperty(r,c,{enumerable:!0,get:function(){throw $}}):r[c]=$}});for(var a=function(f){var p=r[f];p instanceof Error&&Object.defineProperty(r,f,{enumerable:!0,get:function(){throw p}})},u=0;u<r.length;u++)a(u);return Object.freeze(r)}cn.unpack=Gp;var o5=function(e){i5(t,e);function t(r,n,i){var a=this,u=r.type+"["+(n>=0?n:"")+"]",f=n===-1||r.dynamic;return a=e.call(this,"array",u,i,f)||this,a.coder=r,a.length=n,a}return t.prototype.defaultValue=function(){for(var r=this.coder.defaultValue(),n=[],i=0;i<this.length;i++)n.push(r);return n},t.prototype.encode=function(r,n){Array.isArray(n)||this._throwError("expected array value",n);var i=this.length;i===-1&&(i=n.length,r.writeValue(n.length)),Na.checkArgumentCount(n.length,i,"coder array"+(this.localName?" "+this.localName:""));for(var a=[],u=0;u<n.length;u++)a.push(this.coder);return Hp(r,a,n)},t.prototype.decode=function(r){var n=this.length;n===-1&&(n=r.readValue().toNumber(),n*32>r._data.length&&Na.throwError("insufficient data length",Sa.Logger.errors.BUFFER_OVERRUN,{length:r._data.length,count:n}));for(var i=[],a=0;a<n;a++)i.push(new u5.AnonymousCoder(this.coder));return r.coerce(this.name,Gp(r,i))},t}(Sl.Coder);cn.ArrayCoder=o5});var Zp=h(Ia=>{"use strict";var s5=Ia&&Ia.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Ia,"__esModule",{value:!0});Ia.BooleanCoder=void 0;var f5=Ot(),d5=function(e){s5(t,e);function t(r){return e.call(this,"bool","bool",r,!1)||this}return t.prototype.defaultValue=function(){return!1},t.prototype.encode=function(r,n){return r.writeValue(n?1:0)},t.prototype.decode=function(r){return r.coerce(this.type,!r.readValue().isZero())},t}(f5.Coder);Ia.BooleanCoder=d5});var Cl=h(_i=>{"use strict";var jp=_i&&_i.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(_i,"__esModule",{value:!0});_i.BytesCoder=_i.DynamicBytesCoder=void 0;var Wp=Je(),l5=Ot(),zp=function(e){jp(t,e);function t(r,n){return e.call(this,r,r,n,!0)||this}return t.prototype.defaultValue=function(){return"0x"},t.prototype.encode=function(r,n){n=(0,Wp.arrayify)(n);var i=r.writeValue(n.length);return i+=r.writeBytes(n),i},t.prototype.decode=function(r){return r.readBytes(r.readValue().toNumber(),!0)},t}(l5.Coder);_i.DynamicBytesCoder=zp;var c5=function(e){jp(t,e);function t(r){return e.call(this,"bytes",r)||this}return t.prototype.decode=function(r){return r.coerce(this.name,(0,Wp.hexlify)(e.prototype.decode.call(this,r)))},t}(zp);_i.BytesCoder=c5});var Kp=h(Ca=>{"use strict";var h5=Ca&&Ca.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Ca,"__esModule",{value:!0});Ca.FixedBytesCoder=void 0;var Yp=Je(),p5=Ot(),g5=function(e){h5(t,e);function t(r,n){var i=this,a="bytes"+String(r);return i=e.call(this,a,a,n,!1)||this,i.size=r,i}return t.prototype.defaultValue=function(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+this.size*2)},t.prototype.encode=function(r,n){var i=(0,Yp.arrayify)(n);return i.length!==this.size&&this._throwError("incorrect data length",n),r.writeBytes(i)},t.prototype.decode=function(r){return r.coerce(this.name,(0,Yp.hexlify)(r.readBytes(this.size)))},t}(p5.Coder);Ca.FixedBytesCoder=g5});var Jp=h(Pa=>{"use strict";var y5=Pa&&Pa.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Pa,"__esModule",{value:!0});Pa.NullCoder=void 0;var m5=Ot(),v5=function(e){y5(t,e);function t(r){return e.call(this,"null","",r,!1)||this}return t.prototype.defaultValue=function(){return null},t.prototype.encode=function(r,n){return n!=null&&this._throwError("not null",n),r.writeBytes([])},t.prototype.decode=function(r){return r.readBytes(0),r.coerce(this.name,null)},t}(m5.Coder);Pa.NullCoder=v5});var Qp=h(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.AddressZero=void 0;Ls.AddressZero="0x0000000000000000000000000000000000000000"});var Xp=h(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.MaxInt256=rt.MinInt256=rt.MaxUint256=rt.WeiPerEther=rt.Two=rt.One=rt.Zero=rt.NegativeOne=void 0;var Ai=En(),_5=Ai.BigNumber.from(-1);rt.NegativeOne=_5;var A5=Ai.BigNumber.from(0);rt.Zero=A5;var $5=Ai.BigNumber.from(1);rt.One=$5;var b5=Ai.BigNumber.from(2);rt.Two=b5;var E5=Ai.BigNumber.from("1000000000000000000");rt.WeiPerEther=E5;var M5=Ai.BigNumber.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");rt.MaxUint256=M5;var N5=Ai.BigNumber.from("-0x8000000000000000000000000000000000000000000000000000000000000000");rt.MinInt256=N5;var S5=Ai.BigNumber.from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");rt.MaxInt256=S5});var e2=h(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.HashZero=void 0;qs.HashZero="0x0000000000000000000000000000000000000000000000000000000000000000"});var t2=h(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.EtherSymbol=void 0;Us.EtherSymbol="\u039E"});var Pl=h(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.EtherSymbol=Le.HashZero=Le.MaxInt256=Le.MinInt256=Le.MaxUint256=Le.WeiPerEther=Le.Two=Le.One=Le.Zero=Le.NegativeOne=Le.AddressZero=void 0;var I5=Qp();Object.defineProperty(Le,"AddressZero",{enumerable:!0,get:function(){return I5.AddressZero}});var $i=Xp();Object.defineProperty(Le,"NegativeOne",{enumerable:!0,get:function(){return $i.NegativeOne}});Object.defineProperty(Le,"Zero",{enumerable:!0,get:function(){return $i.Zero}});Object.defineProperty(Le,"One",{enumerable:!0,get:function(){return $i.One}});Object.defineProperty(Le,"Two",{enumerable:!0,get:function(){return $i.Two}});Object.defineProperty(Le,"WeiPerEther",{enumerable:!0,get:function(){return $i.WeiPerEther}});Object.defineProperty(Le,"MaxUint256",{enumerable:!0,get:function(){return $i.MaxUint256}});Object.defineProperty(Le,"MinInt256",{enumerable:!0,get:function(){return $i.MinInt256}});Object.defineProperty(Le,"MaxInt256",{enumerable:!0,get:function(){return $i.MaxInt256}});var C5=e2();Object.defineProperty(Le,"HashZero",{enumerable:!0,get:function(){return C5.HashZero}});var P5=t2();Object.defineProperty(Le,"EtherSymbol",{enumerable:!0,get:function(){return P5.EtherSymbol}})});var r2=h(wa=>{"use strict";var w5=wa&&wa.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(wa,"__esModule",{value:!0});wa.NumberCoder=void 0;var T5=En(),Vs=Pl(),O5=Ot(),x5=function(e){w5(t,e);function t(r,n,i){var a=this,u=(n?"int":"uint")+r*8;return a=e.call(this,u,u,i,!1)||this,a.size=r,a.signed=n,a}return t.prototype.defaultValue=function(){return 0},t.prototype.encode=function(r,n){var i=T5.BigNumber.from(n),a=Vs.MaxUint256.mask(r.wordSize*8);if(this.signed){var u=a.mask(this.size*8-1);(i.gt(u)||i.lt(u.add(Vs.One).mul(Vs.NegativeOne)))&&this._throwError("value out-of-bounds",n)}else(i.lt(Vs.Zero)||i.gt(a.mask(this.size*8)))&&this._throwError("value out-of-bounds",n);return i=i.toTwos(this.size*8).mask(this.size*8),this.signed&&(i=i.fromTwos(this.size*8).toTwos(8*r.wordSize)),r.writeValue(i)},t.prototype.decode=function(r){var n=r.readValue().mask(this.size*8);return this.signed&&(n=n.fromTwos(this.size*8)),r.coerce(this.name,n)},t}(O5.Coder);wa.NumberCoder=x5});var n2=h(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.version=void 0;ks.version="strings/5.7.0"});var Gs=h(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.toUtf8CodePoints=Ye.toUtf8String=Ye._toUtf8String=Ye._toEscapedUtf8String=Ye.toUtf8Bytes=Ye.Utf8ErrorFuncs=Ye.Utf8ErrorReason=Ye.UnicodeNormalizationForm=void 0;var i2=Je(),F5=ht(),D5=n2(),a2=new F5.Logger(D5.version),Hs;(function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"})(Hs=Ye.UnicodeNormalizationForm||(Ye.UnicodeNormalizationForm={}));var Ft;(function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"})(Ft=Ye.Utf8ErrorReason||(Ye.Utf8ErrorReason={}));function B5(e,t,r,n,i){return a2.throwArgumentError("invalid codepoint at offset "+t+"; "+e,"bytes",r)}function u2(e,t,r,n,i){if(e===Ft.BAD_PREFIX||e===Ft.UNEXPECTED_CONTINUE){for(var a=0,u=t+1;u<r.length&&r[u]>>6===2;u++)a++;return a}return e===Ft.OVERRUN?r.length-t-1:0}function R5(e,t,r,n,i){return e===Ft.OVERLONG?(n.push(i),0):(n.push(65533),u2(e,t,r,n,i))}Ye.Utf8ErrorFuncs=Object.freeze({error:B5,ignore:u2,replace:R5});function Tl(e,t){t==null&&(t=Ye.Utf8ErrorFuncs.error),e=(0,i2.arrayify)(e);for(var r=[],n=0;n<e.length;){var i=e[n++];if(i>>7===0){r.push(i);continue}var a=null,u=null;if((i&224)===192)a=1,u=127;else if((i&240)===224)a=2,u=2047;else if((i&248)===240)a=3,u=65535;else{(i&192)===128?n+=t(Ft.UNEXPECTED_CONTINUE,n-1,e,r):n+=t(Ft.BAD_PREFIX,n-1,e,r);continue}if(n-1+a>=e.length){n+=t(Ft.OVERRUN,n-1,e,r);continue}for(var f=i&(1<<8-a-1)-1,p=0;p<a;p++){var c=e[n];if((c&192)!=128){n+=t(Ft.MISSING_CONTINUE,n,e,r),f=null;break}f=f<<6|c&63,n++}if(f!==null){if(f>1114111){n+=t(Ft.OUT_OF_RANGE,n-1-a,e,r,f);continue}if(f>=55296&&f<=57343){n+=t(Ft.UTF16_SURROGATE,n-1-a,e,r,f);continue}if(f<=u){n+=t(Ft.OVERLONG,n-1-a,e,r,f);continue}r.push(f)}}return r}function o2(e,t){t===void 0&&(t=Hs.current),t!=Hs.current&&(a2.checkNormalize(),e=e.normalize(t));for(var r=[],n=0;n<e.length;n++){var i=e.charCodeAt(n);if(i<128)r.push(i);else if(i<2048)r.push(i>>6|192),r.push(i&63|128);else if((i&64512)==55296){n++;var a=e.charCodeAt(n);if(n>=e.length||(a&64512)!==56320)throw new Error("invalid utf-8 string");var u=65536+((i&1023)<<10)+(a&1023);r.push(u>>18|240),r.push(u>>12&63|128),r.push(u>>6&63|128),r.push(u&63|128)}else r.push(i>>12|224),r.push(i>>6&63|128),r.push(i&63|128)}return(0,i2.arrayify)(r)}Ye.toUtf8Bytes=o2;function wl(e){var t="0000"+e.toString(16);return"\\u"+t.substring(t.length-4)}function L5(e,t){return'"'+Tl(e,t).map(function(r){if(r<256){switch(r){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(r>=32&&r<127)return String.fromCharCode(r)}return r<=65535?wl(r):(r-=65536,wl((r>>10&1023)+55296)+wl((r&1023)+56320))}).join("")+'"'}Ye._toEscapedUtf8String=L5;function s2(e){return e.map(function(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10&1023)+55296,(t&1023)+56320))}).join("")}Ye._toUtf8String=s2;function q5(e,t){return s2(Tl(e,t))}Ye.toUtf8String=q5;function U5(e,t){return t===void 0&&(t=Hs.current),Tl(o2(e,t))}Ye.toUtf8CodePoints=U5});var d2=h(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});Ta.parseBytes32String=Ta.formatBytes32String=void 0;var V5=Pl(),Ol=Je(),f2=Gs();function k5(e){var t=(0,f2.toUtf8Bytes)(e);if(t.length>31)throw new Error("bytes32 string must be less than 32 bytes");return(0,Ol.hexlify)((0,Ol.concat)([t,V5.HashZero]).slice(0,32))}Ta.formatBytes32String=k5;function H5(e){var t=(0,Ol.arrayify)(e);if(t.length!==32)throw new Error("invalid bytes32 - not 32 bytes long");if(t[31]!==0)throw new Error("invalid bytes32 string - no null terminator");for(var r=31;t[r-1]===0;)r--;return(0,f2.toUtf8String)(t.slice(0,r))}Ta.parseBytes32String=H5});var g2=h(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.nameprep=hn._nameprepTableC=hn._nameprepTableB2=hn._nameprepTableA1=void 0;var mu=Gs();function G5(e){if(e.length%4!==0)throw new Error("bad data");for(var t=[],r=0;r<e.length;r+=4)t.push(parseInt(e.substring(r,r+4),16));return t}function xl(e,t){t||(t=function(i){return[parseInt(i,16)]});var r=0,n={};return e.split(",").forEach(function(i){var a=i.split(":");r+=parseInt(a[0],16),n[r]=t(a[1])}),n}function l2(e){var t=0;return e.split(",").map(function(r){var n=r.split("-");n.length===1?n[1]="0":n[1]===""&&(n[1]="1");var i=t+parseInt(n[0],16);return t=parseInt(n[1],16),{l:i,h:t}})}function Fl(e,t){for(var r=0,n=0;n<t.length;n++){var i=t[n];if(r+=i.l,e>=r&&e<=r+i.h&&(e-r)%(i.d||1)===0){if(i.e&&i.e.indexOf(e-r)!==-1)continue;return i}}return null}var Z5=l2("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),j5="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map(function(e){return parseInt(e,16)}),W5=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],z5=xl("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),Y5=xl("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),K5=xl("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",G5),J5=l2("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");function Q5(e){return e.reduce(function(t,r){return r.forEach(function(n){t.push(n)}),t},[])}function c2(e){return!!Fl(e,Z5)}hn._nameprepTableA1=c2;function h2(e){var t=Fl(e,W5);if(t)return[e+t.s];var r=z5[e];if(r)return r;var n=Y5[e];if(n)return[e+n[0]];var i=K5[e];return i||null}hn._nameprepTableB2=h2;function p2(e){return!!Fl(e,J5)}hn._nameprepTableC=p2;function X5(e){if(e.match(/^[a-z0-9-]*$/i)&&e.length<=59)return e.toLowerCase();var t=(0,mu.toUtf8CodePoints)(e);t=Q5(t.map(function(n){if(j5.indexOf(n)>=0)return[];if(n>=65024&&n<=65039)return[];var i=h2(n);return i||[n]})),t=(0,mu.toUtf8CodePoints)((0,mu._toUtf8String)(t),mu.UnicodeNormalizationForm.NFKC),t.forEach(function(n){if(p2(n))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")}),t.forEach(function(n){if(c2(n))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")});var r=(0,mu._toUtf8String)(t);if(r.substring(0,1)==="-"||r.substring(2,4)==="--"||r.substring(r.length-1)==="-")throw new Error("invalid hyphen");return r}hn.nameprep=X5});var Oa=h(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.nameprep=je.parseBytes32String=je.formatBytes32String=je.UnicodeNormalizationForm=je.Utf8ErrorReason=je.Utf8ErrorFuncs=je.toUtf8String=je.toUtf8CodePoints=je.toUtf8Bytes=je._toEscapedUtf8String=void 0;var y2=d2();Object.defineProperty(je,"formatBytes32String",{enumerable:!0,get:function(){return y2.formatBytes32String}});Object.defineProperty(je,"parseBytes32String",{enumerable:!0,get:function(){return y2.parseBytes32String}});var e7=g2();Object.defineProperty(je,"nameprep",{enumerable:!0,get:function(){return e7.nameprep}});var ra=Gs();Object.defineProperty(je,"_toEscapedUtf8String",{enumerable:!0,get:function(){return ra._toEscapedUtf8String}});Object.defineProperty(je,"toUtf8Bytes",{enumerable:!0,get:function(){return ra.toUtf8Bytes}});Object.defineProperty(je,"toUtf8CodePoints",{enumerable:!0,get:function(){return ra.toUtf8CodePoints}});Object.defineProperty(je,"toUtf8String",{enumerable:!0,get:function(){return ra.toUtf8String}});Object.defineProperty(je,"UnicodeNormalizationForm",{enumerable:!0,get:function(){return ra.UnicodeNormalizationForm}});Object.defineProperty(je,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return ra.Utf8ErrorFuncs}});Object.defineProperty(je,"Utf8ErrorReason",{enumerable:!0,get:function(){return ra.Utf8ErrorReason}})});var v2=h(xa=>{"use strict";var t7=xa&&xa.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(xa,"__esModule",{value:!0});xa.StringCoder=void 0;var m2=Oa(),r7=Cl(),n7=function(e){t7(t,e);function t(r){return e.call(this,"string",r)||this}return t.prototype.defaultValue=function(){return""},t.prototype.encode=function(r,n){return e.prototype.encode.call(this,r,(0,m2.toUtf8Bytes)(n))},t.prototype.decode=function(r){return(0,m2.toUtf8String)(e.prototype.decode.call(this,r))},t}(r7.DynamicBytesCoder);xa.StringCoder=n7});var A2=h(Fa=>{"use strict";var i7=Fa&&Fa.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Fa,"__esModule",{value:!0});Fa.TupleCoder=void 0;var a7=Ot(),_2=Il(),u7=function(e){i7(t,e);function t(r,n){var i=this,a=!1,u=[];r.forEach(function(p){p.dynamic&&(a=!0),u.push(p.type)});var f="tuple("+u.join(",")+")";return i=e.call(this,"tuple",f,n,a)||this,i.coders=r,i}return t.prototype.defaultValue=function(){var r=[];this.coders.forEach(function(i){r.push(i.defaultValue())});var n=this.coders.reduce(function(i,a){var u=a.localName;return u&&(i[u]||(i[u]=0),i[u]++),i},{});return this.coders.forEach(function(i,a){var u=i.localName;!u||n[u]!==1||(u==="length"&&(u="_length"),r[u]==null&&(r[u]=r[a]))}),Object.freeze(r)},t.prototype.encode=function(r,n){return(0,_2.pack)(r,this.coders,n)},t.prototype.decode=function(r){return r.coerce(this.name,(0,_2.unpack)(r,this.coders))},t}(a7.Coder);Fa.TupleCoder=u7});var Bl=h(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});Da.defaultAbiCoder=Da.AbiCoder=void 0;var o7=Je(),s7=va(),b2=ht(),f7=_a(),Zs=new b2.Logger(f7.version),$2=Ot(),d7=Vp(),l7=Il(),c7=Zp(),h7=Cl(),p7=Kp(),g7=Jp(),y7=r2(),m7=v2(),js=A2(),Dl=xs(),v7=new RegExp(/^bytes([0-9]*)$/),_7=new RegExp(/^(u?int)([0-9]*)$/),E2=function(){function e(t){(0,s7.defineReadOnly)(this,"coerceFunc",t||null)}return e.prototype._getCoder=function(t){var r=this;switch(t.baseType){case"address":return new d7.AddressCoder(t.name);case"bool":return new c7.BooleanCoder(t.name);case"string":return new m7.StringCoder(t.name);case"bytes":return new h7.BytesCoder(t.name);case"array":return new l7.ArrayCoder(this._getCoder(t.arrayChildren),t.arrayLength,t.name);case"tuple":return new js.TupleCoder((t.components||[]).map(function(a){return r._getCoder(a)}),t.name);case"":return new g7.NullCoder(t.name)}var n=t.type.match(_7);if(n){var i=parseInt(n[2]||"256");return(i===0||i>256||i%8!==0)&&Zs.throwArgumentError("invalid "+n[1]+" bit length","param",t),new y7.NumberCoder(i/8,n[1]==="int",t.name)}if(n=t.type.match(v7),n){var i=parseInt(n[1]);return(i===0||i>32)&&Zs.throwArgumentError("invalid bytes length","param",t),new p7.FixedBytesCoder(i,t.name)}return Zs.throwArgumentError("invalid type","type",t.type)},e.prototype._getWordSize=function(){return 32},e.prototype._getReader=function(t,r){return new $2.Reader(t,this._getWordSize(),this.coerceFunc,r)},e.prototype._getWriter=function(){return new $2.Writer(this._getWordSize())},e.prototype.getDefaultValue=function(t){var r=this,n=t.map(function(a){return r._getCoder(Dl.ParamType.from(a))}),i=new js.TupleCoder(n,"_");return i.defaultValue()},e.prototype.encode=function(t,r){var n=this;t.length!==r.length&&Zs.throwError("types/values length mismatch",b2.Logger.errors.INVALID_ARGUMENT,{count:{types:t.length,values:r.length},value:{types:t,values:r}});var i=t.map(function(f){return n._getCoder(Dl.ParamType.from(f))}),a=new js.TupleCoder(i,"_"),u=this._getWriter();return a.encode(u,r),u.data},e.prototype.decode=function(t,r,n){var i=this,a=t.map(function(f){return i._getCoder(Dl.ParamType.from(f))}),u=new js.TupleCoder(a,"_");return u.decode(this._getReader((0,o7.arrayify)(r),n))},e}();Da.AbiCoder=E2;Da.defaultAbiCoder=new E2});var Rl=h(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.id=void 0;var A7=Xi(),$7=Oa();function b7(e){return(0,A7.keccak256)((0,$7.toUtf8Bytes)(e))}Ws.id=b7});var Ll=h(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});zs.version=void 0;zs.version="hash/5.7.0"});var N2=h(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});Ba.encode=Ba.decode=void 0;var M2=Je();function E7(e){return(0,M2.arrayify)(new Uint8Array(Buffer.from(e,"base64")))}Ba.decode=E7;function M7(e){return Buffer.from((0,M2.arrayify)(e)).toString("base64")}Ba.encode=M7});var I2=h(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});Ra.encode=Ra.decode=void 0;var S2=N2();Object.defineProperty(Ra,"decode",{enumerable:!0,get:function(){return S2.decode}});Object.defineProperty(Ra,"encode",{enumerable:!0,get:function(){return S2.encode}})});var Ul=h(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.read_emoji_trie=nt.read_zero_terminated_array=nt.read_mapped_map=nt.read_member_array=nt.signed=nt.read_compressed_payload=nt.read_payload=nt.decode_arithmetic=void 0;function P2(e,t){t==null&&(t=1);var r=[],n=r.forEach,i=function(a,u){n.call(a,function(f){u>0&&Array.isArray(f)?i(f,u-1):r.push(f)})};return i(e,t),r}function N7(e){for(var t={},r=0;r<e.length;r++){var n=e[r];t[n[0]]=n[1]}return t}function w2(e){var t=0;function r(){return e[t++]<<8|e[t++]}for(var n=r(),i=1,a=[0,1],u=1;u<n;u++)a.push(i+=r());var f=r(),p=t;t+=f;var c=0,$=0;function E(){return c==0&&($=$<<8|e[t++],c=8),$>>--c&1}for(var C=31,N=Math.pow(2,C),P=N>>>1,R=P>>1,k=N-1,Q=0,u=0;u<C;u++)Q=Q<<1|E();for(var H=[],z=0,ze=N;;){for(var Ct=Math.floor(((Q-z+1)*i-1)/ze),Ve=0,Lt=n;Lt-Ve>1;){var qt=Ve+Lt>>>1;Ct<a[qt]?Lt=qt:Ve=qt}if(Ve==0)break;H.push(Ve);for(var mt=z+Math.floor(ze*a[Ve]/i),Et=z+Math.floor(ze*a[Ve+1]/i)-1;((mt^Et)&P)==0;)Q=Q<<1&k|E(),mt=mt<<1&k,Et=Et<<1&k|1;for(;mt&~Et&R;)Q=Q&P|Q<<1&k>>>1|E(),mt=mt<<1^P,Et=(Et^P)<<1|P|1;z=mt,ze=1+Et-mt}var ne=n-4;return H.map(function(Pt){switch(Pt-ne){case 3:return ne+65792+(e[p++]<<16|e[p++]<<8|e[p++]);case 2:return ne+256+(e[p++]<<8|e[p++]);case 1:return ne+e[p++];default:return Pt-1}})}nt.decode_arithmetic=w2;function T2(e){var t=0;return function(){return e[t++]}}nt.read_payload=T2;function S7(e){return T2(w2(e))}nt.read_compressed_payload=S7;function O2(e){return e&1?~e>>1:e>>1}nt.signed=O2;function I7(e,t){for(var r=Array(e),n=0;n<e;n++)r[n]=1+t();return r}function C2(e,t){for(var r=Array(e),n=0,i=-1;n<e;n++)r[n]=i+=1+t();return r}function C7(e,t){for(var r=Array(e),n=0,i=0;n<e;n++)r[n]=i+=O2(t());return r}function ql(e,t){for(var r=C2(e(),e),n=e(),i=C2(n,e),a=I7(n,e),u=0;u<n;u++)for(var f=0;f<a[u];f++)r.push(i[u]+f);return t?r.map(function(p){return t[p]}):r}nt.read_member_array=ql;function P7(e){for(var t=[];;){var r=e();if(r==0)break;t.push(w7(r,e))}for(;;){var r=e()-1;if(r<0)break;t.push(T7(r,e))}return N7(P2(t))}nt.read_mapped_map=P7;function x2(e){for(var t=[];;){var r=e();if(r==0)break;t.push(r)}return t}nt.read_zero_terminated_array=x2;function F2(e,t,r){for(var n=Array(e).fill(void 0).map(function(){return[]}),i=0;i<t;i++)C7(e,r).forEach(function(a,u){return n[u].push(a)});return n}function w7(e,t){var r=1+t(),n=t(),i=x2(t),a=F2(i.length,1+e,t);return P2(a.map(function(u,f){var p=u[0],c=u.slice(1);return Array(i[f]).fill(void 0).map(function($,E){var C=E*n;return[p+E*r,c.map(function(N){return N+C})]})}))}function T7(e,t){var r=1+t(),n=F2(r,1+e,t);return n.map(function(i){return[i[0],i.slice(1)]})}function O7(e){var t=ql(e).sort(function(n,i){return n-i});return r();function r(){for(var n=[];;){var i=ql(e,t);if(i.length==0)break;n.push({set:new Set(i),node:r()})}n.sort(function($,E){return E.set.size-$.set.size});var a=e(),u=a%3;a=a/3|0;var f=!!(a&1);a>>=1;var p=a==1,c=a==2;return{branches:n,valid:u,fe0f:f,save:p,check:c}}}nt.read_emoji_trie=O7});var D2=h(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});Ys.getData=void 0;var x7=I2(),F7=Ul();function D7(){return(0,F7.read_compressed_payload)((0,x7.decode)("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAF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j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA=="))}Ys.getData=D7});var q2=h(La=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});La.ens_normalize=La.ens_normalize_post_check=void 0;var B7=Oa(),R7=D2(),Ks=(0,R7.getData)(),Js=Ul(),L7=new Set((0,Js.read_member_array)(Ks)),q7=new Set((0,Js.read_member_array)(Ks)),U7=(0,Js.read_mapped_map)(Ks),V7=(0,Js.read_emoji_trie)(Ks),B2=45,R2=95;function L2(e){return(0,B7.toUtf8CodePoints)(e)}function k7(e){return e.filter(function(t){return t!=65039})}function Vl(e){for(var t=0,r=e.split(".");t<r.length;t++){var n=r[t],i=L2(n);try{for(var a=i.lastIndexOf(R2)-1;a>=0;a--)if(i[a]!==R2)throw new Error("underscore only allowed at start");if(i.length>=4&&i.every(function(u){return u<128})&&i[2]===B2&&i[3]===B2)throw new Error("invalid label extension")}catch(u){throw new Error('Invalid label "'+n+'": '+u.message)}}return e}La.ens_normalize_post_check=Vl;function H7(e){return Vl(G7(e,k7))}La.ens_normalize=H7;function G7(e,t){for(var r=L2(e).reverse(),n=[];r.length;){var i=j7(r);if(i){n.push.apply(n,t(i));continue}var a=r.pop();if(L7.has(a)){n.push(a);continue}if(!q7.has(a)){var u=U7[a];if(u){n.push.apply(n,u);continue}throw new Error("Disallowed codepoint: 0x"+a.toString(16).toUpperCase())}}return Vl(Z7(String.fromCodePoint.apply(String,n)))}function Z7(e){return e.normalize("NFC")}function j7(e,t){var r,n=V7,i,a,u=[],f=e.length;t&&(t.length=0);for(var p=function(){var $=e[--f];if(n=(r=n.branches.find(function(E){return E.set.has($)}))===null||r===void 0?void 0:r.node,!n)return"break";if(n.save)a=$;else if(n.check&&$===a)return"break";u.push($),n.fe0f&&(u.push(65039),f>0&&e[f-1]==65039&&f--),n.valid&&(i=u.slice(),n.valid==2&&i.splice(1,1),t&&t.push.apply(t,e.slice(f).reverse()),e.length=f)};f;){var c=p();if(c==="break")break}return i}});var kl=h(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.dnsEncode=pn.namehash=pn.isValidName=pn.ensNormalize=void 0;var Qs=Je(),k2=Oa(),U2=Xi(),W7=ht(),z7=Ll(),Y7=new W7.Logger(z7.version),K7=q2(),H2=new Uint8Array(32);H2.fill(0);function V2(e){if(e.length===0)throw new Error("invalid ENS name; empty component");return e}function Xs(e){var t=(0,k2.toUtf8Bytes)((0,K7.ens_normalize)(e)),r=[];if(e.length===0)return r;for(var n=0,i=0;i<t.length;i++){var a=t[i];a===46&&(r.push(V2(t.slice(n,i))),n=i+1)}if(n>=t.length)throw new Error("invalid ENS name; empty component");return r.push(V2(t.slice(n))),r}function J7(e){return Xs(e).map(function(t){return(0,k2.toUtf8String)(t)}).join(".")}pn.ensNormalize=J7;function Q7(e){try{return Xs(e).length!==0}catch{}return!1}pn.isValidName=Q7;function X7(e){typeof e!="string"&&Y7.throwArgumentError("invalid ENS name; not a string","name",e);for(var t=H2,r=Xs(e);r.length;)t=(0,U2.keccak256)((0,Qs.concat)([t,(0,U2.keccak256)(r.pop())]));return(0,Qs.hexlify)(t)}pn.namehash=X7;function eE(e){return(0,Qs.hexlify)((0,Qs.concat)(Xs(e).map(function(t){if(t.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");var r=new Uint8Array(t.length+1);return r.set(t,1),r[0]=r.length-1,r})))+"00"}pn.dnsEncode=eE});var G2=h(na=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});na.hashMessage=na.messagePrefix=void 0;var tE=Je(),rE=Xi(),Hl=Oa();na.messagePrefix=`Ethereum Signed Message:
1
+ "use strict";var q$=Object.create;var ca=Object.defineProperty,U$=Object.defineProperties,Gh=Object.getOwnPropertyDescriptor,V$=Object.getOwnPropertyDescriptors,k$=Object.getOwnPropertyNames,kh=Object.getOwnPropertySymbols,H$=Object.getPrototypeOf,Zh=Object.prototype.hasOwnProperty,G$=Object.prototype.propertyIsEnumerable;var Hh=(e,t,r)=>t in e?ca(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ha=(e,t)=>{for(var r in t||={})Zh.call(t,r)&&Hh(e,r,t[r]);if(kh)for(var r of kh(t))G$.call(t,r)&&Hh(e,r,t[r]);return e},pa=(e,t)=>U$(e,V$(t));var Z$=(e,t)=>()=>(e&&(t=e(e=0)),t);var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),jh=(e,t)=>{for(var r in t)ca(e,r,{get:t[r],enumerable:!0})},Wh=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of k$(t))!Zh.call(e,i)&&i!==r&&ca(e,i,{get:()=>t[i],enumerable:!(n=Gh(t,i))||n.enumerable});return e};var an=(e,t,r)=>(r=e!=null?q$(H$(e)):{},Wh(t||!e||!e.__esModule?ca(r,"default",{value:e,enumerable:!0}):r,e)),fl=e=>Wh(ca({},"__esModule",{value:!0}),e),Yi=(e,t,r,n)=>{for(var i=n>1?void 0:n?Gh(t,r):t,a=e.length-1,u;a>=0;a--)(u=e[a])&&(i=(n?u(t,r,i):u(i))||i);return n&&i&&ca(t,r,i),i};var Yh=h((zh,dl)=>{(function(e,t){"use strict";function r(A,o){if(!A)throw new Error(o||"Assertion failed")}function n(A,o){A.super_=o;var d=function(){};d.prototype=o.prototype,A.prototype=new d,A.prototype.constructor=A}function i(A,o,d){if(i.isBN(A))return A;this.negative=0,this.words=null,this.length=0,this.red=null,A!==null&&((o==="le"||o==="be")&&(d=o,o=10),this._init(A||0,o||10,d||"be"))}typeof e=="object"?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;var a;try{typeof window<"u"&&typeof window.Buffer<"u"?a=window.Buffer:a=require("buffer").Buffer}catch{}i.isBN=function(o){return o instanceof i?!0:o!==null&&typeof o=="object"&&o.constructor.wordSize===i.wordSize&&Array.isArray(o.words)},i.max=function(o,d){return o.cmp(d)>0?o:d},i.min=function(o,d){return o.cmp(d)<0?o:d},i.prototype._init=function(o,d,g){if(typeof o=="number")return this._initNumber(o,d,g);if(typeof o=="object")return this._initArray(o,d,g);d==="hex"&&(d=16),r(d===(d|0)&&d>=2&&d<=36),o=o.toString().replace(/\s+/g,"");var y=0;o[0]==="-"&&(y++,this.negative=1),y<o.length&&(d===16?this._parseHex(o,y,g):(this._parseBase(o,d,y),g==="le"&&this._initArray(this.toArray(),d,g)))},i.prototype._initNumber=function(o,d,g){o<0&&(this.negative=1,o=-o),o<67108864?(this.words=[o&67108863],this.length=1):o<4503599627370496?(this.words=[o&67108863,o/67108864&67108863],this.length=2):(r(o<9007199254740992),this.words=[o&67108863,o/67108864&67108863,1],this.length=3),g==="le"&&this._initArray(this.toArray(),d,g)},i.prototype._initArray=function(o,d,g){if(r(typeof o.length=="number"),o.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(o.length/3),this.words=new Array(this.length);for(var y=0;y<this.length;y++)this.words[y]=0;var v,b,M=0;if(g==="be")for(y=o.length-1,v=0;y>=0;y-=3)b=o[y]|o[y-1]<<8|o[y-2]<<16,this.words[v]|=b<<M&67108863,this.words[v+1]=b>>>26-M&67108863,M+=24,M>=26&&(M-=26,v++);else if(g==="le")for(y=0,v=0;y<o.length;y+=3)b=o[y]|o[y+1]<<8|o[y+2]<<16,this.words[v]|=b<<M&67108863,this.words[v+1]=b>>>26-M&67108863,M+=24,M>=26&&(M-=26,v++);return this._strip()};function u(A,o){var d=A.charCodeAt(o);if(d>=48&&d<=57)return d-48;if(d>=65&&d<=70)return d-55;if(d>=97&&d<=102)return d-87;r(!1,"Invalid character in "+A)}function f(A,o,d){var g=u(A,d);return d-1>=o&&(g|=u(A,d-1)<<4),g}i.prototype._parseHex=function(o,d,g){this.length=Math.ceil((o.length-d)/6),this.words=new Array(this.length);for(var y=0;y<this.length;y++)this.words[y]=0;var v=0,b=0,M;if(g==="be")for(y=o.length-1;y>=d;y-=2)M=f(o,d,y)<<v,this.words[b]|=M&67108863,v>=18?(v-=18,b+=1,this.words[b]|=M>>>26):v+=8;else{var m=o.length-d;for(y=m%2===0?d+1:d;y<o.length;y+=2)M=f(o,d,y)<<v,this.words[b]|=M&67108863,v>=18?(v-=18,b+=1,this.words[b]|=M>>>26):v+=8}this._strip()};function p(A,o,d,g){for(var y=0,v=0,b=Math.min(A.length,d),M=o;M<b;M++){var m=A.charCodeAt(M)-48;y*=g,m>=49?v=m-49+10:m>=17?v=m-17+10:v=m,r(m>=0&&v<g,"Invalid character"),y+=v}return y}i.prototype._parseBase=function(o,d,g){this.words=[0],this.length=1;for(var y=0,v=1;v<=67108863;v*=d)y++;y--,v=v/d|0;for(var b=o.length-g,M=b%y,m=Math.min(b,b-M)+g,s=0,_=g;_<m;_+=y)s=p(o,_,_+y,d),this.imuln(v),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s);if(M!==0){var L=1;for(s=p(o,_,o.length,d),_=0;_<M;_++)L*=d;this.imuln(L),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s)}this._strip()},i.prototype.copy=function(o){o.words=new Array(this.length);for(var d=0;d<this.length;d++)o.words[d]=this.words[d];o.length=this.length,o.negative=this.negative,o.red=this.red};function c(A,o){A.words=o.words,A.length=o.length,A.negative=o.negative,A.red=o.red}if(i.prototype._move=function(o){c(o,this)},i.prototype.clone=function(){var o=new i(null);return this.copy(o),o},i.prototype._expand=function(o){for(;this.length<o;)this.words[this.length++]=0;return this},i.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=$}catch{i.prototype.inspect=$}else i.prototype.inspect=$;function $(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var E=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],C=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],N=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(o,d){o=o||10,d=d|0||1;var g;if(o===16||o==="hex"){g="";for(var y=0,v=0,b=0;b<this.length;b++){var M=this.words[b],m=((M<<y|v)&16777215).toString(16);v=M>>>24-y&16777215,y+=2,y>=26&&(y-=26,b--),v!==0||b!==this.length-1?g=E[6-m.length]+m+g:g=m+g}for(v!==0&&(g=v.toString(16)+g);g.length%d!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}if(o===(o|0)&&o>=2&&o<=36){var s=C[o],_=N[o];g="";var L=this.clone();for(L.negative=0;!L.isZero();){var l=L.modrn(_).toString(o);L=L.idivn(_),L.isZero()?g=l+g:g=E[s-l.length]+l+g}for(this.isZero()&&(g="0"+g);g.length%d!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var o=this.words[0];return this.length===2?o+=this.words[1]*67108864:this.length===3&&this.words[2]===1?o+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-o:o},i.prototype.toJSON=function(){return this.toString(16,2)},a&&(i.prototype.toBuffer=function(o,d){return this.toArrayLike(a,o,d)}),i.prototype.toArray=function(o,d){return this.toArrayLike(Array,o,d)};var P=function(o,d){return o.allocUnsafe?o.allocUnsafe(d):new o(d)};i.prototype.toArrayLike=function(o,d,g){this._strip();var y=this.byteLength(),v=g||Math.max(1,y);r(y<=v,"byte array longer than desired length"),r(v>0,"Requested array length <= 0");var b=P(o,v),M=d==="le"?"LE":"BE";return this["_toArrayLike"+M](b,y),b},i.prototype._toArrayLikeLE=function(o,d){for(var g=0,y=0,v=0,b=0;v<this.length;v++){var M=this.words[v]<<b|y;o[g++]=M&255,g<o.length&&(o[g++]=M>>8&255),g<o.length&&(o[g++]=M>>16&255),b===6?(g<o.length&&(o[g++]=M>>24&255),y=0,b=0):(y=M>>>24,b+=2)}if(g<o.length)for(o[g++]=y;g<o.length;)o[g++]=0},i.prototype._toArrayLikeBE=function(o,d){for(var g=o.length-1,y=0,v=0,b=0;v<this.length;v++){var M=this.words[v]<<b|y;o[g--]=M&255,g>=0&&(o[g--]=M>>8&255),g>=0&&(o[g--]=M>>16&255),b===6?(g>=0&&(o[g--]=M>>24&255),y=0,b=0):(y=M>>>24,b+=2)}if(g>=0)for(o[g--]=y;g>=0;)o[g--]=0},Math.clz32?i.prototype._countBits=function(o){return 32-Math.clz32(o)}:i.prototype._countBits=function(o){var d=o,g=0;return d>=4096&&(g+=13,d>>>=13),d>=64&&(g+=7,d>>>=7),d>=8&&(g+=4,d>>>=4),d>=2&&(g+=2,d>>>=2),g+d},i.prototype._zeroBits=function(o){if(o===0)return 26;var d=o,g=0;return(d&8191)===0&&(g+=13,d>>>=13),(d&127)===0&&(g+=7,d>>>=7),(d&15)===0&&(g+=4,d>>>=4),(d&3)===0&&(g+=2,d>>>=2),(d&1)===0&&g++,g},i.prototype.bitLength=function(){var o=this.words[this.length-1],d=this._countBits(o);return(this.length-1)*26+d};function R(A){for(var o=new Array(A.bitLength()),d=0;d<o.length;d++){var g=d/26|0,y=d%26;o[d]=A.words[g]>>>y&1}return o}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,d=0;d<this.length;d++){var g=this._zeroBits(this.words[d]);if(o+=g,g!==26)break}return o},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(o){return this.negative!==0?this.abs().inotn(o).iaddn(1):this.clone()},i.prototype.fromTwos=function(o){return this.testn(o-1)?this.notn(o).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(o){for(;this.length<o.length;)this.words[this.length++]=0;for(var d=0;d<o.length;d++)this.words[d]=this.words[d]|o.words[d];return this._strip()},i.prototype.ior=function(o){return r((this.negative|o.negative)===0),this.iuor(o)},i.prototype.or=function(o){return this.length>o.length?this.clone().ior(o):o.clone().ior(this)},i.prototype.uor=function(o){return this.length>o.length?this.clone().iuor(o):o.clone().iuor(this)},i.prototype.iuand=function(o){var d;this.length>o.length?d=o:d=this;for(var g=0;g<d.length;g++)this.words[g]=this.words[g]&o.words[g];return this.length=d.length,this._strip()},i.prototype.iand=function(o){return r((this.negative|o.negative)===0),this.iuand(o)},i.prototype.and=function(o){return this.length>o.length?this.clone().iand(o):o.clone().iand(this)},i.prototype.uand=function(o){return this.length>o.length?this.clone().iuand(o):o.clone().iuand(this)},i.prototype.iuxor=function(o){var d,g;this.length>o.length?(d=this,g=o):(d=o,g=this);for(var y=0;y<g.length;y++)this.words[y]=d.words[y]^g.words[y];if(this!==d)for(;y<d.length;y++)this.words[y]=d.words[y];return this.length=d.length,this._strip()},i.prototype.ixor=function(o){return r((this.negative|o.negative)===0),this.iuxor(o)},i.prototype.xor=function(o){return this.length>o.length?this.clone().ixor(o):o.clone().ixor(this)},i.prototype.uxor=function(o){return this.length>o.length?this.clone().iuxor(o):o.clone().iuxor(this)},i.prototype.inotn=function(o){r(typeof o=="number"&&o>=0);var d=Math.ceil(o/26)|0,g=o%26;this._expand(d),g>0&&d--;for(var y=0;y<d;y++)this.words[y]=~this.words[y]&67108863;return g>0&&(this.words[y]=~this.words[y]&67108863>>26-g),this._strip()},i.prototype.notn=function(o){return this.clone().inotn(o)},i.prototype.setn=function(o,d){r(typeof o=="number"&&o>=0);var g=o/26|0,y=o%26;return this._expand(g+1),d?this.words[g]=this.words[g]|1<<y:this.words[g]=this.words[g]&~(1<<y),this._strip()},i.prototype.iadd=function(o){var d;if(this.negative!==0&&o.negative===0)return this.negative=0,d=this.isub(o),this.negative^=1,this._normSign();if(this.negative===0&&o.negative!==0)return o.negative=0,d=this.isub(o),o.negative=1,d._normSign();var g,y;this.length>o.length?(g=this,y=o):(g=o,y=this);for(var v=0,b=0;b<y.length;b++)d=(g.words[b]|0)+(y.words[b]|0)+v,this.words[b]=d&67108863,v=d>>>26;for(;v!==0&&b<g.length;b++)d=(g.words[b]|0)+v,this.words[b]=d&67108863,v=d>>>26;if(this.length=g.length,v!==0)this.words[this.length]=v,this.length++;else if(g!==this)for(;b<g.length;b++)this.words[b]=g.words[b];return this},i.prototype.add=function(o){var d;return o.negative!==0&&this.negative===0?(o.negative=0,d=this.sub(o),o.negative^=1,d):o.negative===0&&this.negative!==0?(this.negative=0,d=o.sub(this),this.negative=1,d):this.length>o.length?this.clone().iadd(o):o.clone().iadd(this)},i.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var d=this.iadd(o);return o.negative=1,d._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(o),this.negative=1,this._normSign();var g=this.cmp(o);if(g===0)return this.negative=0,this.length=1,this.words[0]=0,this;var y,v;g>0?(y=this,v=o):(y=o,v=this);for(var b=0,M=0;M<v.length;M++)d=(y.words[M]|0)-(v.words[M]|0)+b,b=d>>26,this.words[M]=d&67108863;for(;b!==0&&M<y.length;M++)d=(y.words[M]|0)+b,b=d>>26,this.words[M]=d&67108863;if(b===0&&M<y.length&&y!==this)for(;M<y.length;M++)this.words[M]=y.words[M];return this.length=Math.max(this.length,M),y!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(o){return this.clone().isub(o)};function k(A,o,d){d.negative=o.negative^A.negative;var g=A.length+o.length|0;d.length=g,g=g-1|0;var y=A.words[0]|0,v=o.words[0]|0,b=y*v,M=b&67108863,m=b/67108864|0;d.words[0]=M;for(var s=1;s<g;s++){for(var _=m>>>26,L=m&67108863,l=Math.min(s,o.length-1),S=Math.max(0,s-A.length+1);S<=l;S++){var I=s-S|0;y=A.words[I]|0,v=o.words[S]|0,b=y*v+L,_+=b/67108864|0,L=b&67108863}d.words[s]=L|0,m=_|0}return m!==0?d.words[s]=m|0:d.length--,d._strip()}var Q=function(o,d,g){var y=o.words,v=d.words,b=g.words,M=0,m,s,_,L=y[0]|0,l=L&8191,S=L>>>13,I=y[1]|0,w=I&8191,F=I>>>13,V=y[2]|0,B=V&8191,D=V>>>13,ke=y[3]|0,q=ke&8191,j=ke>>>13,xi=y[4]|0,ue=xi&8191,oe=xi>>>13,Fi=y[5]|0,se=Fi&8191,fe=Fi>>>13,Di=y[6]|0,de=Di&8191,le=Di>>>13,Bi=y[7]|0,ce=Bi&8191,he=Bi>>>13,Ri=y[8]|0,pe=Ri&8191,ge=Ri>>>13,Li=y[9]|0,ye=Li&8191,me=Li>>>13,qi=v[0]|0,ve=qi&8191,_e=qi>>>13,Ui=v[1]|0,Ae=Ui&8191,$e=Ui>>>13,Vi=v[2]|0,be=Vi&8191,Ee=Vi>>>13,ki=v[3]|0,Me=ki&8191,Ne=ki>>>13,Hi=v[4]|0,Se=Hi&8191,Ie=Hi>>>13,Gi=v[5]|0,Ce=Gi&8191,Pe=Gi>>>13,Zi=v[6]|0,we=Zi&8191,Te=Zi>>>13,ji=v[7]|0,Oe=ji&8191,xe=ji>>>13,Wi=v[8]|0,Fe=Wi&8191,De=Wi>>>13,zi=v[9]|0,Be=zi&8191,Re=zi>>>13;g.negative=o.negative^d.negative,g.length=19,m=Math.imul(l,ve),s=Math.imul(l,_e),s=s+Math.imul(S,ve)|0,_=Math.imul(S,_e);var ci=(M+m|0)+((s&8191)<<13)|0;M=(_+(s>>>13)|0)+(ci>>>26)|0,ci&=67108863,m=Math.imul(w,ve),s=Math.imul(w,_e),s=s+Math.imul(F,ve)|0,_=Math.imul(F,_e),m=m+Math.imul(l,Ae)|0,s=s+Math.imul(l,$e)|0,s=s+Math.imul(S,Ae)|0,_=_+Math.imul(S,$e)|0;var hi=(M+m|0)+((s&8191)<<13)|0;M=(_+(s>>>13)|0)+(hi>>>26)|0,hi&=67108863,m=Math.imul(B,ve),s=Math.imul(B,_e),s=s+Math.imul(D,ve)|0,_=Math.imul(D,_e),m=m+Math.imul(w,Ae)|0,s=s+Math.imul(w,$e)|0,s=s+Math.imul(F,Ae)|0,_=_+Math.imul(F,$e)|0,m=m+Math.imul(l,be)|0,s=s+Math.imul(l,Ee)|0,s=s+Math.imul(S,be)|0,_=_+Math.imul(S,Ee)|0;var pi=(M+m|0)+((s&8191)<<13)|0;M=(_+(s>>>13)|0)+(pi>>>26)|0,pi&=67108863,m=Math.imul(q,ve),s=Math.imul(q,_e),s=s+Math.imul(j,ve)|0,_=Math.imul(j,_e),m=m+Math.imul(B,Ae)|0,s=s+Math.imul(B,$e)|0,s=s+Math.imul(D,Ae)|0,_=_+Math.imul(D,$e)|0,m=m+Math.imul(w,be)|0,s=s+Math.imul(w,Ee)|0,s=s+Math.imul(F,be)|0,_=_+Math.imul(F,Ee)|0,m=m+Math.imul(l,Me)|0,s=s+Math.imul(l,Ne)|0,s=s+Math.imul(S,Me)|0,_=_+Math.imul(S,Ne)|0;var gi=(M+m|0)+((s&8191)<<13)|0;M=(_+(s>>>13)|0)+(gi>>>26)|0,gi&=67108863,m=Math.imul(ue,ve),s=Math.imul(ue,_e),s=s+Math.imul(oe,ve)|0,_=Math.imul(oe,_e),m=m+Math.imul(q,Ae)|0,s=s+Math.imul(q,$e)|0,s=s+Math.imul(j,Ae)|0,_=_+Math.imul(j,$e)|0,m=m+Math.imul(B,be)|0,s=s+Math.imul(B,Ee)|0,s=s+Math.imul(D,be)|0,_=_+Math.imul(D,Ee)|0,m=m+Math.imul(w,Me)|0,s=s+Math.imul(w,Ne)|0,s=s+Math.imul(F,Me)|0,_=_+Math.imul(F,Ne)|0,m=m+Math.imul(l,Se)|0,s=s+Math.imul(l,Ie)|0,s=s+Math.imul(S,Se)|0,_=_+Math.imul(S,Ie)|0;var yi=(M+m|0)+((s&8191)<<13)|0;M=(_+(s>>>13)|0)+(yi>>>26)|0,yi&=67108863,m=Math.imul(se,ve),s=Math.imul(se,_e),s=s+Math.imul(fe,ve)|0,_=Math.imul(fe,_e),m=m+Math.imul(ue,Ae)|0,s=s+Math.imul(ue,$e)|0,s=s+Math.imul(oe,Ae)|0,_=_+Math.imul(oe,$e)|0,m=m+Math.imul(q,be)|0,s=s+Math.imul(q,Ee)|0,s=s+Math.imul(j,be)|0,_=_+Math.imul(j,Ee)|0,m=m+Math.imul(B,Me)|0,s=s+Math.imul(B,Ne)|0,s=s+Math.imul(D,Me)|0,_=_+Math.imul(D,Ne)|0,m=m+Math.imul(w,Se)|0,s=s+Math.imul(w,Ie)|0,s=s+Math.imul(F,Se)|0,_=_+Math.imul(F,Ie)|0,m=m+Math.imul(l,Ce)|0,s=s+Math.imul(l,Pe)|0,s=s+Math.imul(S,Ce)|0,_=_+Math.imul(S,Pe)|0;var Yd=(M+m|0)+((s&8191)<<13)|0;M=(_+(s>>>13)|0)+(Yd>>>26)|0,Yd&=67108863,m=Math.imul(de,ve),s=Math.imul(de,_e),s=s+Math.imul(le,ve)|0,_=Math.imul(le,_e),m=m+Math.imul(se,Ae)|0,s=s+Math.imul(se,$e)|0,s=s+Math.imul(fe,Ae)|0,_=_+Math.imul(fe,$e)|0,m=m+Math.imul(ue,be)|0,s=s+Math.imul(ue,Ee)|0,s=s+Math.imul(oe,be)|0,_=_+Math.imul(oe,Ee)|0,m=m+Math.imul(q,Me)|0,s=s+Math.imul(q,Ne)|0,s=s+Math.imul(j,Me)|0,_=_+Math.imul(j,Ne)|0,m=m+Math.imul(B,Se)|0,s=s+Math.imul(B,Ie)|0,s=s+Math.imul(D,Se)|0,_=_+Math.imul(D,Ie)|0,m=m+Math.imul(w,Ce)|0,s=s+Math.imul(w,Pe)|0,s=s+Math.imul(F,Ce)|0,_=_+Math.imul(F,Pe)|0,m=m+Math.imul(l,we)|0,s=s+Math.imul(l,Te)|0,s=s+Math.imul(S,we)|0,_=_+Math.imul(S,Te)|0;var Kd=(M+m|0)+((s&8191)<<13)|0;M=(_+(s>>>13)|0)+(Kd>>>26)|0,Kd&=67108863,m=Math.imul(ce,ve),s=Math.imul(ce,_e),s=s+Math.imul(he,ve)|0,_=Math.imul(he,_e),m=m+Math.imul(de,Ae)|0,s=s+Math.imul(de,$e)|0,s=s+Math.imul(le,Ae)|0,_=_+Math.imul(le,$e)|0,m=m+Math.imul(se,be)|0,s=s+Math.imul(se,Ee)|0,s=s+Math.imul(fe,be)|0,_=_+Math.imul(fe,Ee)|0,m=m+Math.imul(ue,Me)|0,s=s+Math.imul(ue,Ne)|0,s=s+Math.imul(oe,Me)|0,_=_+Math.imul(oe,Ne)|0,m=m+Math.imul(q,Se)|0,s=s+Math.imul(q,Ie)|0,s=s+Math.imul(j,Se)|0,_=_+Math.imul(j,Ie)|0,m=m+Math.imul(B,Ce)|0,s=s+Math.imul(B,Pe)|0,s=s+Math.imul(D,Ce)|0,_=_+Math.imul(D,Pe)|0,m=m+Math.imul(w,we)|0,s=s+Math.imul(w,Te)|0,s=s+Math.imul(F,we)|0,_=_+Math.imul(F,Te)|0,m=m+Math.imul(l,Oe)|0,s=s+Math.imul(l,xe)|0,s=s+Math.imul(S,Oe)|0,_=_+Math.imul(S,xe)|0;var Jd=(M+m|0)+((s&8191)<<13)|0;M=(_+(s>>>13)|0)+(Jd>>>26)|0,Jd&=67108863,m=Math.imul(pe,ve),s=Math.imul(pe,_e),s=s+Math.imul(ge,ve)|0,_=Math.imul(ge,_e),m=m+Math.imul(ce,Ae)|0,s=s+Math.imul(ce,$e)|0,s=s+Math.imul(he,Ae)|0,_=_+Math.imul(he,$e)|0,m=m+Math.imul(de,be)|0,s=s+Math.imul(de,Ee)|0,s=s+Math.imul(le,be)|0,_=_+Math.imul(le,Ee)|0,m=m+Math.imul(se,Me)|0,s=s+Math.imul(se,Ne)|0,s=s+Math.imul(fe,Me)|0,_=_+Math.imul(fe,Ne)|0,m=m+Math.imul(ue,Se)|0,s=s+Math.imul(ue,Ie)|0,s=s+Math.imul(oe,Se)|0,_=_+Math.imul(oe,Ie)|0,m=m+Math.imul(q,Ce)|0,s=s+Math.imul(q,Pe)|0,s=s+Math.imul(j,Ce)|0,_=_+Math.imul(j,Pe)|0,m=m+Math.imul(B,we)|0,s=s+Math.imul(B,Te)|0,s=s+Math.imul(D,we)|0,_=_+Math.imul(D,Te)|0,m=m+Math.imul(w,Oe)|0,s=s+Math.imul(w,xe)|0,s=s+Math.imul(F,Oe)|0,_=_+Math.imul(F,xe)|0,m=m+Math.imul(l,Fe)|0,s=s+Math.imul(l,De)|0,s=s+Math.imul(S,Fe)|0,_=_+Math.imul(S,De)|0;var Qd=(M+m|0)+((s&8191)<<13)|0;M=(_+(s>>>13)|0)+(Qd>>>26)|0,Qd&=67108863,m=Math.imul(ye,ve),s=Math.imul(ye,_e),s=s+Math.imul(me,ve)|0,_=Math.imul(me,_e),m=m+Math.imul(pe,Ae)|0,s=s+Math.imul(pe,$e)|0,s=s+Math.imul(ge,Ae)|0,_=_+Math.imul(ge,$e)|0,m=m+Math.imul(ce,be)|0,s=s+Math.imul(ce,Ee)|0,s=s+Math.imul(he,be)|0,_=_+Math.imul(he,Ee)|0,m=m+Math.imul(de,Me)|0,s=s+Math.imul(de,Ne)|0,s=s+Math.imul(le,Me)|0,_=_+Math.imul(le,Ne)|0,m=m+Math.imul(se,Se)|0,s=s+Math.imul(se,Ie)|0,s=s+Math.imul(fe,Se)|0,_=_+Math.imul(fe,Ie)|0,m=m+Math.imul(ue,Ce)|0,s=s+Math.imul(ue,Pe)|0,s=s+Math.imul(oe,Ce)|0,_=_+Math.imul(oe,Pe)|0,m=m+Math.imul(q,we)|0,s=s+Math.imul(q,Te)|0,s=s+Math.imul(j,we)|0,_=_+Math.imul(j,Te)|0,m=m+Math.imul(B,Oe)|0,s=s+Math.imul(B,xe)|0,s=s+Math.imul(D,Oe)|0,_=_+Math.imul(D,xe)|0,m=m+Math.imul(w,Fe)|0,s=s+Math.imul(w,De)|0,s=s+Math.imul(F,Fe)|0,_=_+Math.imul(F,De)|0,m=m+Math.imul(l,Be)|0,s=s+Math.imul(l,Re)|0,s=s+Math.imul(S,Be)|0,_=_+Math.imul(S,Re)|0;var Xd=(M+m|0)+((s&8191)<<13)|0;M=(_+(s>>>13)|0)+(Xd>>>26)|0,Xd&=67108863,m=Math.imul(ye,Ae),s=Math.imul(ye,$e),s=s+Math.imul(me,Ae)|0,_=Math.imul(me,$e),m=m+Math.imul(pe,be)|0,s=s+Math.imul(pe,Ee)|0,s=s+Math.imul(ge,be)|0,_=_+Math.imul(ge,Ee)|0,m=m+Math.imul(ce,Me)|0,s=s+Math.imul(ce,Ne)|0,s=s+Math.imul(he,Me)|0,_=_+Math.imul(he,Ne)|0,m=m+Math.imul(de,Se)|0,s=s+Math.imul(de,Ie)|0,s=s+Math.imul(le,Se)|0,_=_+Math.imul(le,Ie)|0,m=m+Math.imul(se,Ce)|0,s=s+Math.imul(se,Pe)|0,s=s+Math.imul(fe,Ce)|0,_=_+Math.imul(fe,Pe)|0,m=m+Math.imul(ue,we)|0,s=s+Math.imul(ue,Te)|0,s=s+Math.imul(oe,we)|0,_=_+Math.imul(oe,Te)|0,m=m+Math.imul(q,Oe)|0,s=s+Math.imul(q,xe)|0,s=s+Math.imul(j,Oe)|0,_=_+Math.imul(j,xe)|0,m=m+Math.imul(B,Fe)|0,s=s+Math.imul(B,De)|0,s=s+Math.imul(D,Fe)|0,_=_+Math.imul(D,De)|0,m=m+Math.imul(w,Be)|0,s=s+Math.imul(w,Re)|0,s=s+Math.imul(F,Be)|0,_=_+Math.imul(F,Re)|0;var el=(M+m|0)+((s&8191)<<13)|0;M=(_+(s>>>13)|0)+(el>>>26)|0,el&=67108863,m=Math.imul(ye,be),s=Math.imul(ye,Ee),s=s+Math.imul(me,be)|0,_=Math.imul(me,Ee),m=m+Math.imul(pe,Me)|0,s=s+Math.imul(pe,Ne)|0,s=s+Math.imul(ge,Me)|0,_=_+Math.imul(ge,Ne)|0,m=m+Math.imul(ce,Se)|0,s=s+Math.imul(ce,Ie)|0,s=s+Math.imul(he,Se)|0,_=_+Math.imul(he,Ie)|0,m=m+Math.imul(de,Ce)|0,s=s+Math.imul(de,Pe)|0,s=s+Math.imul(le,Ce)|0,_=_+Math.imul(le,Pe)|0,m=m+Math.imul(se,we)|0,s=s+Math.imul(se,Te)|0,s=s+Math.imul(fe,we)|0,_=_+Math.imul(fe,Te)|0,m=m+Math.imul(ue,Oe)|0,s=s+Math.imul(ue,xe)|0,s=s+Math.imul(oe,Oe)|0,_=_+Math.imul(oe,xe)|0,m=m+Math.imul(q,Fe)|0,s=s+Math.imul(q,De)|0,s=s+Math.imul(j,Fe)|0,_=_+Math.imul(j,De)|0,m=m+Math.imul(B,Be)|0,s=s+Math.imul(B,Re)|0,s=s+Math.imul(D,Be)|0,_=_+Math.imul(D,Re)|0;var tl=(M+m|0)+((s&8191)<<13)|0;M=(_+(s>>>13)|0)+(tl>>>26)|0,tl&=67108863,m=Math.imul(ye,Me),s=Math.imul(ye,Ne),s=s+Math.imul(me,Me)|0,_=Math.imul(me,Ne),m=m+Math.imul(pe,Se)|0,s=s+Math.imul(pe,Ie)|0,s=s+Math.imul(ge,Se)|0,_=_+Math.imul(ge,Ie)|0,m=m+Math.imul(ce,Ce)|0,s=s+Math.imul(ce,Pe)|0,s=s+Math.imul(he,Ce)|0,_=_+Math.imul(he,Pe)|0,m=m+Math.imul(de,we)|0,s=s+Math.imul(de,Te)|0,s=s+Math.imul(le,we)|0,_=_+Math.imul(le,Te)|0,m=m+Math.imul(se,Oe)|0,s=s+Math.imul(se,xe)|0,s=s+Math.imul(fe,Oe)|0,_=_+Math.imul(fe,xe)|0,m=m+Math.imul(ue,Fe)|0,s=s+Math.imul(ue,De)|0,s=s+Math.imul(oe,Fe)|0,_=_+Math.imul(oe,De)|0,m=m+Math.imul(q,Be)|0,s=s+Math.imul(q,Re)|0,s=s+Math.imul(j,Be)|0,_=_+Math.imul(j,Re)|0;var rl=(M+m|0)+((s&8191)<<13)|0;M=(_+(s>>>13)|0)+(rl>>>26)|0,rl&=67108863,m=Math.imul(ye,Se),s=Math.imul(ye,Ie),s=s+Math.imul(me,Se)|0,_=Math.imul(me,Ie),m=m+Math.imul(pe,Ce)|0,s=s+Math.imul(pe,Pe)|0,s=s+Math.imul(ge,Ce)|0,_=_+Math.imul(ge,Pe)|0,m=m+Math.imul(ce,we)|0,s=s+Math.imul(ce,Te)|0,s=s+Math.imul(he,we)|0,_=_+Math.imul(he,Te)|0,m=m+Math.imul(de,Oe)|0,s=s+Math.imul(de,xe)|0,s=s+Math.imul(le,Oe)|0,_=_+Math.imul(le,xe)|0,m=m+Math.imul(se,Fe)|0,s=s+Math.imul(se,De)|0,s=s+Math.imul(fe,Fe)|0,_=_+Math.imul(fe,De)|0,m=m+Math.imul(ue,Be)|0,s=s+Math.imul(ue,Re)|0,s=s+Math.imul(oe,Be)|0,_=_+Math.imul(oe,Re)|0;var nl=(M+m|0)+((s&8191)<<13)|0;M=(_+(s>>>13)|0)+(nl>>>26)|0,nl&=67108863,m=Math.imul(ye,Ce),s=Math.imul(ye,Pe),s=s+Math.imul(me,Ce)|0,_=Math.imul(me,Pe),m=m+Math.imul(pe,we)|0,s=s+Math.imul(pe,Te)|0,s=s+Math.imul(ge,we)|0,_=_+Math.imul(ge,Te)|0,m=m+Math.imul(ce,Oe)|0,s=s+Math.imul(ce,xe)|0,s=s+Math.imul(he,Oe)|0,_=_+Math.imul(he,xe)|0,m=m+Math.imul(de,Fe)|0,s=s+Math.imul(de,De)|0,s=s+Math.imul(le,Fe)|0,_=_+Math.imul(le,De)|0,m=m+Math.imul(se,Be)|0,s=s+Math.imul(se,Re)|0,s=s+Math.imul(fe,Be)|0,_=_+Math.imul(fe,Re)|0;var il=(M+m|0)+((s&8191)<<13)|0;M=(_+(s>>>13)|0)+(il>>>26)|0,il&=67108863,m=Math.imul(ye,we),s=Math.imul(ye,Te),s=s+Math.imul(me,we)|0,_=Math.imul(me,Te),m=m+Math.imul(pe,Oe)|0,s=s+Math.imul(pe,xe)|0,s=s+Math.imul(ge,Oe)|0,_=_+Math.imul(ge,xe)|0,m=m+Math.imul(ce,Fe)|0,s=s+Math.imul(ce,De)|0,s=s+Math.imul(he,Fe)|0,_=_+Math.imul(he,De)|0,m=m+Math.imul(de,Be)|0,s=s+Math.imul(de,Re)|0,s=s+Math.imul(le,Be)|0,_=_+Math.imul(le,Re)|0;var al=(M+m|0)+((s&8191)<<13)|0;M=(_+(s>>>13)|0)+(al>>>26)|0,al&=67108863,m=Math.imul(ye,Oe),s=Math.imul(ye,xe),s=s+Math.imul(me,Oe)|0,_=Math.imul(me,xe),m=m+Math.imul(pe,Fe)|0,s=s+Math.imul(pe,De)|0,s=s+Math.imul(ge,Fe)|0,_=_+Math.imul(ge,De)|0,m=m+Math.imul(ce,Be)|0,s=s+Math.imul(ce,Re)|0,s=s+Math.imul(he,Be)|0,_=_+Math.imul(he,Re)|0;var ul=(M+m|0)+((s&8191)<<13)|0;M=(_+(s>>>13)|0)+(ul>>>26)|0,ul&=67108863,m=Math.imul(ye,Fe),s=Math.imul(ye,De),s=s+Math.imul(me,Fe)|0,_=Math.imul(me,De),m=m+Math.imul(pe,Be)|0,s=s+Math.imul(pe,Re)|0,s=s+Math.imul(ge,Be)|0,_=_+Math.imul(ge,Re)|0;var ol=(M+m|0)+((s&8191)<<13)|0;M=(_+(s>>>13)|0)+(ol>>>26)|0,ol&=67108863,m=Math.imul(ye,Be),s=Math.imul(ye,Re),s=s+Math.imul(me,Be)|0,_=Math.imul(me,Re);var sl=(M+m|0)+((s&8191)<<13)|0;return M=(_+(s>>>13)|0)+(sl>>>26)|0,sl&=67108863,b[0]=ci,b[1]=hi,b[2]=pi,b[3]=gi,b[4]=yi,b[5]=Yd,b[6]=Kd,b[7]=Jd,b[8]=Qd,b[9]=Xd,b[10]=el,b[11]=tl,b[12]=rl,b[13]=nl,b[14]=il,b[15]=al,b[16]=ul,b[17]=ol,b[18]=sl,M!==0&&(b[19]=M,g.length++),g};Math.imul||(Q=k);function H(A,o,d){d.negative=o.negative^A.negative,d.length=A.length+o.length;for(var g=0,y=0,v=0;v<d.length-1;v++){var b=y;y=0;for(var M=g&67108863,m=Math.min(v,o.length-1),s=Math.max(0,v-A.length+1);s<=m;s++){var _=v-s,L=A.words[_]|0,l=o.words[s]|0,S=L*l,I=S&67108863;b=b+(S/67108864|0)|0,I=I+M|0,M=I&67108863,b=b+(I>>>26)|0,y+=b>>>26,b&=67108863}d.words[v]=M,g=b,b=y}return g!==0?d.words[v]=g:d.length--,d._strip()}function z(A,o,d){return H(A,o,d)}i.prototype.mulTo=function(o,d){var g,y=this.length+o.length;return this.length===10&&o.length===10?g=Q(this,o,d):y<63?g=k(this,o,d):y<1024?g=H(this,o,d):g=z(this,o,d),g};function ze(A,o){this.x=A,this.y=o}ze.prototype.makeRBT=function(o){for(var d=new Array(o),g=i.prototype._countBits(o)-1,y=0;y<o;y++)d[y]=this.revBin(y,g,o);return d},ze.prototype.revBin=function(o,d,g){if(o===0||o===g-1)return o;for(var y=0,v=0;v<d;v++)y|=(o&1)<<d-v-1,o>>=1;return y},ze.prototype.permute=function(o,d,g,y,v,b){for(var M=0;M<b;M++)y[M]=d[o[M]],v[M]=g[o[M]]},ze.prototype.transform=function(o,d,g,y,v,b){this.permute(b,o,d,g,y,v);for(var M=1;M<v;M<<=1)for(var m=M<<1,s=Math.cos(2*Math.PI/m),_=Math.sin(2*Math.PI/m),L=0;L<v;L+=m)for(var l=s,S=_,I=0;I<M;I++){var w=g[L+I],F=y[L+I],V=g[L+I+M],B=y[L+I+M],D=l*V-S*B;B=l*B+S*V,V=D,g[L+I]=w+V,y[L+I]=F+B,g[L+I+M]=w-V,y[L+I+M]=F-B,I!==m&&(D=s*l-_*S,S=s*S+_*l,l=D)}},ze.prototype.guessLen13b=function(o,d){var g=Math.max(d,o)|1,y=g&1,v=0;for(g=g/2|0;g;g=g>>>1)v++;return 1<<v+1+y},ze.prototype.conjugate=function(o,d,g){if(!(g<=1))for(var y=0;y<g/2;y++){var v=o[y];o[y]=o[g-y-1],o[g-y-1]=v,v=d[y],d[y]=-d[g-y-1],d[g-y-1]=-v}},ze.prototype.normalize13b=function(o,d){for(var g=0,y=0;y<d/2;y++){var v=Math.round(o[2*y+1]/d)*8192+Math.round(o[2*y]/d)+g;o[y]=v&67108863,v<67108864?g=0:g=v/67108864|0}return o},ze.prototype.convert13b=function(o,d,g,y){for(var v=0,b=0;b<d;b++)v=v+(o[b]|0),g[2*b]=v&8191,v=v>>>13,g[2*b+1]=v&8191,v=v>>>13;for(b=2*d;b<y;++b)g[b]=0;r(v===0),r((v&-8192)===0)},ze.prototype.stub=function(o){for(var d=new Array(o),g=0;g<o;g++)d[g]=0;return d},ze.prototype.mulp=function(o,d,g){var y=2*this.guessLen13b(o.length,d.length),v=this.makeRBT(y),b=this.stub(y),M=new Array(y),m=new Array(y),s=new Array(y),_=new Array(y),L=new Array(y),l=new Array(y),S=g.words;S.length=y,this.convert13b(o.words,o.length,M,y),this.convert13b(d.words,d.length,_,y),this.transform(M,b,m,s,y,v),this.transform(_,b,L,l,y,v);for(var I=0;I<y;I++){var w=m[I]*L[I]-s[I]*l[I];s[I]=m[I]*l[I]+s[I]*L[I],m[I]=w}return this.conjugate(m,s,y),this.transform(m,s,S,b,y,v),this.conjugate(S,b,y),this.normalize13b(S,y),g.negative=o.negative^d.negative,g.length=o.length+d.length,g._strip()},i.prototype.mul=function(o){var d=new i(null);return d.words=new Array(this.length+o.length),this.mulTo(o,d)},i.prototype.mulf=function(o){var d=new i(null);return d.words=new Array(this.length+o.length),z(this,o,d)},i.prototype.imul=function(o){return this.clone().mulTo(o,this)},i.prototype.imuln=function(o){var d=o<0;d&&(o=-o),r(typeof o=="number"),r(o<67108864);for(var g=0,y=0;y<this.length;y++){var v=(this.words[y]|0)*o,b=(v&67108863)+(g&67108863);g>>=26,g+=v/67108864|0,g+=b>>>26,this.words[y]=b&67108863}return g!==0&&(this.words[y]=g,this.length++),d?this.ineg():this},i.prototype.muln=function(o){return this.clone().imuln(o)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(o){var d=R(o);if(d.length===0)return new i(1);for(var g=this,y=0;y<d.length&&d[y]===0;y++,g=g.sqr());if(++y<d.length)for(var v=g.sqr();y<d.length;y++,v=v.sqr())d[y]!==0&&(g=g.mul(v));return g},i.prototype.iushln=function(o){r(typeof o=="number"&&o>=0);var d=o%26,g=(o-d)/26,y=67108863>>>26-d<<26-d,v;if(d!==0){var b=0;for(v=0;v<this.length;v++){var M=this.words[v]&y,m=(this.words[v]|0)-M<<d;this.words[v]=m|b,b=M>>>26-d}b&&(this.words[v]=b,this.length++)}if(g!==0){for(v=this.length-1;v>=0;v--)this.words[v+g]=this.words[v];for(v=0;v<g;v++)this.words[v]=0;this.length+=g}return this._strip()},i.prototype.ishln=function(o){return r(this.negative===0),this.iushln(o)},i.prototype.iushrn=function(o,d,g){r(typeof o=="number"&&o>=0);var y;d?y=(d-d%26)/26:y=0;var v=o%26,b=Math.min((o-v)/26,this.length),M=67108863^67108863>>>v<<v,m=g;if(y-=b,y=Math.max(0,y),m){for(var s=0;s<b;s++)m.words[s]=this.words[s];m.length=b}if(b!==0)if(this.length>b)for(this.length-=b,s=0;s<this.length;s++)this.words[s]=this.words[s+b];else this.words[0]=0,this.length=1;var _=0;for(s=this.length-1;s>=0&&(_!==0||s>=y);s--){var L=this.words[s]|0;this.words[s]=_<<26-v|L>>>v,_=L&M}return m&&_!==0&&(m.words[m.length++]=_),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(o,d,g){return r(this.negative===0),this.iushrn(o,d,g)},i.prototype.shln=function(o){return this.clone().ishln(o)},i.prototype.ushln=function(o){return this.clone().iushln(o)},i.prototype.shrn=function(o){return this.clone().ishrn(o)},i.prototype.ushrn=function(o){return this.clone().iushrn(o)},i.prototype.testn=function(o){r(typeof o=="number"&&o>=0);var d=o%26,g=(o-d)/26,y=1<<d;if(this.length<=g)return!1;var v=this.words[g];return!!(v&y)},i.prototype.imaskn=function(o){r(typeof o=="number"&&o>=0);var d=o%26,g=(o-d)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=g)return this;if(d!==0&&g++,this.length=Math.min(g,this.length),d!==0){var y=67108863^67108863>>>d<<d;this.words[this.length-1]&=y}return this._strip()},i.prototype.maskn=function(o){return this.clone().imaskn(o)},i.prototype.iaddn=function(o){return r(typeof o=="number"),r(o<67108864),o<0?this.isubn(-o):this.negative!==0?this.length===1&&(this.words[0]|0)<=o?(this.words[0]=o-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(o),this.negative=1,this):this._iaddn(o)},i.prototype._iaddn=function(o){this.words[0]+=o;for(var d=0;d<this.length&&this.words[d]>=67108864;d++)this.words[d]-=67108864,d===this.length-1?this.words[d+1]=1:this.words[d+1]++;return this.length=Math.max(this.length,d+1),this},i.prototype.isubn=function(o){if(r(typeof o=="number"),r(o<67108864),o<0)return this.iaddn(-o);if(this.negative!==0)return this.negative=0,this.iaddn(o),this.negative=1,this;if(this.words[0]-=o,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var d=0;d<this.length&&this.words[d]<0;d++)this.words[d]+=67108864,this.words[d+1]-=1;return this._strip()},i.prototype.addn=function(o){return this.clone().iaddn(o)},i.prototype.subn=function(o){return this.clone().isubn(o)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(o,d,g){var y=o.length+g,v;this._expand(y);var b,M=0;for(v=0;v<o.length;v++){b=(this.words[v+g]|0)+M;var m=(o.words[v]|0)*d;b-=m&67108863,M=(b>>26)-(m/67108864|0),this.words[v+g]=b&67108863}for(;v<this.length-g;v++)b=(this.words[v+g]|0)+M,M=b>>26,this.words[v+g]=b&67108863;if(M===0)return this._strip();for(r(M===-1),M=0,v=0;v<this.length;v++)b=-(this.words[v]|0)+M,M=b>>26,this.words[v]=b&67108863;return this.negative=1,this._strip()},i.prototype._wordDiv=function(o,d){var g=this.length-o.length,y=this.clone(),v=o,b=v.words[v.length-1]|0,M=this._countBits(b);g=26-M,g!==0&&(v=v.ushln(g),y.iushln(g),b=v.words[v.length-1]|0);var m=y.length-v.length,s;if(d!=="mod"){s=new i(null),s.length=m+1,s.words=new Array(s.length);for(var _=0;_<s.length;_++)s.words[_]=0}var L=y.clone()._ishlnsubmul(v,1,m);L.negative===0&&(y=L,s&&(s.words[m]=1));for(var l=m-1;l>=0;l--){var S=(y.words[v.length+l]|0)*67108864+(y.words[v.length+l-1]|0);for(S=Math.min(S/b|0,67108863),y._ishlnsubmul(v,S,l);y.negative!==0;)S--,y.negative=0,y._ishlnsubmul(v,1,l),y.isZero()||(y.negative^=1);s&&(s.words[l]=S)}return s&&s._strip(),y._strip(),d!=="div"&&g!==0&&y.iushrn(g),{div:s||null,mod:y}},i.prototype.divmod=function(o,d,g){if(r(!o.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var y,v,b;return this.negative!==0&&o.negative===0?(b=this.neg().divmod(o,d),d!=="mod"&&(y=b.div.neg()),d!=="div"&&(v=b.mod.neg(),g&&v.negative!==0&&v.iadd(o)),{div:y,mod:v}):this.negative===0&&o.negative!==0?(b=this.divmod(o.neg(),d),d!=="mod"&&(y=b.div.neg()),{div:y,mod:b.mod}):(this.negative&o.negative)!==0?(b=this.neg().divmod(o.neg(),d),d!=="div"&&(v=b.mod.neg(),g&&v.negative!==0&&v.isub(o)),{div:b.div,mod:v}):o.length>this.length||this.cmp(o)<0?{div:new i(0),mod:this}:o.length===1?d==="div"?{div:this.divn(o.words[0]),mod:null}:d==="mod"?{div:null,mod:new i(this.modrn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new i(this.modrn(o.words[0]))}:this._wordDiv(o,d)},i.prototype.div=function(o){return this.divmod(o,"div",!1).div},i.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},i.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},i.prototype.divRound=function(o){var d=this.divmod(o);if(d.mod.isZero())return d.div;var g=d.div.negative!==0?d.mod.isub(o):d.mod,y=o.ushrn(1),v=o.andln(1),b=g.cmp(y);return b<0||v===1&&b===0?d.div:d.div.negative!==0?d.div.isubn(1):d.div.iaddn(1)},i.prototype.modrn=function(o){var d=o<0;d&&(o=-o),r(o<=67108863);for(var g=(1<<26)%o,y=0,v=this.length-1;v>=0;v--)y=(g*y+(this.words[v]|0))%o;return d?-y:y},i.prototype.modn=function(o){return this.modrn(o)},i.prototype.idivn=function(o){var d=o<0;d&&(o=-o),r(o<=67108863);for(var g=0,y=this.length-1;y>=0;y--){var v=(this.words[y]|0)+g*67108864;this.words[y]=v/o|0,g=v%o}return this._strip(),d?this.ineg():this},i.prototype.divn=function(o){return this.clone().idivn(o)},i.prototype.egcd=function(o){r(o.negative===0),r(!o.isZero());var d=this,g=o.clone();d.negative!==0?d=d.umod(o):d=d.clone();for(var y=new i(1),v=new i(0),b=new i(0),M=new i(1),m=0;d.isEven()&&g.isEven();)d.iushrn(1),g.iushrn(1),++m;for(var s=g.clone(),_=d.clone();!d.isZero();){for(var L=0,l=1;(d.words[0]&l)===0&&L<26;++L,l<<=1);if(L>0)for(d.iushrn(L);L-- >0;)(y.isOdd()||v.isOdd())&&(y.iadd(s),v.isub(_)),y.iushrn(1),v.iushrn(1);for(var S=0,I=1;(g.words[0]&I)===0&&S<26;++S,I<<=1);if(S>0)for(g.iushrn(S);S-- >0;)(b.isOdd()||M.isOdd())&&(b.iadd(s),M.isub(_)),b.iushrn(1),M.iushrn(1);d.cmp(g)>=0?(d.isub(g),y.isub(b),v.isub(M)):(g.isub(d),b.isub(y),M.isub(v))}return{a:b,b:M,gcd:g.iushln(m)}},i.prototype._invmp=function(o){r(o.negative===0),r(!o.isZero());var d=this,g=o.clone();d.negative!==0?d=d.umod(o):d=d.clone();for(var y=new i(1),v=new i(0),b=g.clone();d.cmpn(1)>0&&g.cmpn(1)>0;){for(var M=0,m=1;(d.words[0]&m)===0&&M<26;++M,m<<=1);if(M>0)for(d.iushrn(M);M-- >0;)y.isOdd()&&y.iadd(b),y.iushrn(1);for(var s=0,_=1;(g.words[0]&_)===0&&s<26;++s,_<<=1);if(s>0)for(g.iushrn(s);s-- >0;)v.isOdd()&&v.iadd(b),v.iushrn(1);d.cmp(g)>=0?(d.isub(g),y.isub(v)):(g.isub(d),v.isub(y))}var L;return d.cmpn(1)===0?L=y:L=v,L.cmpn(0)<0&&L.iadd(o),L},i.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var d=this.clone(),g=o.clone();d.negative=0,g.negative=0;for(var y=0;d.isEven()&&g.isEven();y++)d.iushrn(1),g.iushrn(1);do{for(;d.isEven();)d.iushrn(1);for(;g.isEven();)g.iushrn(1);var v=d.cmp(g);if(v<0){var b=d;d=g,g=b}else if(v===0||g.cmpn(1)===0)break;d.isub(g)}while(!0);return g.iushln(y)},i.prototype.invm=function(o){return this.egcd(o).a.umod(o)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(o){return this.words[0]&o},i.prototype.bincn=function(o){r(typeof o=="number");var d=o%26,g=(o-d)/26,y=1<<d;if(this.length<=g)return this._expand(g+1),this.words[g]|=y,this;for(var v=y,b=g;v!==0&&b<this.length;b++){var M=this.words[b]|0;M+=v,v=M>>>26,M&=67108863,this.words[b]=M}return v!==0&&(this.words[b]=v,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(o){var d=o<0;if(this.negative!==0&&!d)return-1;if(this.negative===0&&d)return 1;this._strip();var g;if(this.length>1)g=1;else{d&&(o=-o),r(o<=67108863,"Number is too big");var y=this.words[0]|0;g=y===o?0:y<o?-1:1}return this.negative!==0?-g|0:g},i.prototype.cmp=function(o){if(this.negative!==0&&o.negative===0)return-1;if(this.negative===0&&o.negative!==0)return 1;var d=this.ucmp(o);return this.negative!==0?-d|0:d},i.prototype.ucmp=function(o){if(this.length>o.length)return 1;if(this.length<o.length)return-1;for(var d=0,g=this.length-1;g>=0;g--){var y=this.words[g]|0,v=o.words[g]|0;if(y!==v){y<v?d=-1:y>v&&(d=1);break}}return d},i.prototype.gtn=function(o){return this.cmpn(o)===1},i.prototype.gt=function(o){return this.cmp(o)===1},i.prototype.gten=function(o){return this.cmpn(o)>=0},i.prototype.gte=function(o){return this.cmp(o)>=0},i.prototype.ltn=function(o){return this.cmpn(o)===-1},i.prototype.lt=function(o){return this.cmp(o)===-1},i.prototype.lten=function(o){return this.cmpn(o)<=0},i.prototype.lte=function(o){return this.cmp(o)<=0},i.prototype.eqn=function(o){return this.cmpn(o)===0},i.prototype.eq=function(o){return this.cmp(o)===0},i.red=function(o){return new ne(o)},i.prototype.toRed=function(o){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),o.convertTo(this)._forceRed(o)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(o){return this.red=o,this},i.prototype.forceRed=function(o){return r(!this.red,"Already a number in reduction context"),this._forceRed(o)},i.prototype.redAdd=function(o){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,o)},i.prototype.redIAdd=function(o){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,o)},i.prototype.redSub=function(o){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,o)},i.prototype.redISub=function(o){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,o)},i.prototype.redShl=function(o){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,o)},i.prototype.redMul=function(o){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.mul(this,o)},i.prototype.redIMul=function(o){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.imul(this,o)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(o){return r(this.red&&!o.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,o)};var Ct={k256:null,p224:null,p192:null,p25519:null};function Ve(A,o){this.name=A,this.p=new i(o,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Ve.prototype._tmp=function(){var o=new i(null);return o.words=new Array(Math.ceil(this.n/13)),o},Ve.prototype.ireduce=function(o){var d=o,g;do this.split(d,this.tmp),d=this.imulK(d),d=d.iadd(this.tmp),g=d.bitLength();while(g>this.n);var y=g<this.n?-1:d.ucmp(this.p);return y===0?(d.words[0]=0,d.length=1):y>0?d.isub(this.p):d.strip!==void 0?d.strip():d._strip(),d},Ve.prototype.split=function(o,d){o.iushrn(this.n,0,d)},Ve.prototype.imulK=function(o){return o.imul(this.k)};function Lt(){Ve.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(Lt,Ve),Lt.prototype.split=function(o,d){for(var g=4194303,y=Math.min(o.length,9),v=0;v<y;v++)d.words[v]=o.words[v];if(d.length=y,o.length<=9){o.words[0]=0,o.length=1;return}var b=o.words[9];for(d.words[d.length++]=b&g,v=10;v<o.length;v++){var M=o.words[v]|0;o.words[v-10]=(M&g)<<4|b>>>22,b=M}b>>>=22,o.words[v-10]=b,b===0&&o.length>10?o.length-=10:o.length-=9},Lt.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var d=0,g=0;g<o.length;g++){var y=o.words[g]|0;d+=y*977,o.words[g]=d&67108863,d=y*64+(d/67108864|0)}return o.words[o.length-1]===0&&(o.length--,o.words[o.length-1]===0&&o.length--),o};function qt(){Ve.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}n(qt,Ve);function mt(){Ve.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}n(mt,Ve);function Et(){Ve.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}n(Et,Ve),Et.prototype.imulK=function(o){for(var d=0,g=0;g<o.length;g++){var y=(o.words[g]|0)*19+d,v=y&67108863;y>>>=26,o.words[g]=v,d=y}return d!==0&&(o.words[o.length++]=d),o},i._prime=function(o){if(Ct[o])return Ct[o];var d;if(o==="k256")d=new Lt;else if(o==="p224")d=new qt;else if(o==="p192")d=new mt;else if(o==="p25519")d=new Et;else throw new Error("Unknown prime "+o);return Ct[o]=d,d};function ne(A){if(typeof A=="string"){var o=i._prime(A);this.m=o.p,this.prime=o}else r(A.gtn(1),"modulus must be greater than 1"),this.m=A,this.prime=null}ne.prototype._verify1=function(o){r(o.negative===0,"red works only with positives"),r(o.red,"red works only with red numbers")},ne.prototype._verify2=function(o,d){r((o.negative|d.negative)===0,"red works only with positives"),r(o.red&&o.red===d.red,"red works only with red numbers")},ne.prototype.imod=function(o){return this.prime?this.prime.ireduce(o)._forceRed(this):(c(o,o.umod(this.m)._forceRed(this)),o)},ne.prototype.neg=function(o){return o.isZero()?o.clone():this.m.sub(o)._forceRed(this)},ne.prototype.add=function(o,d){this._verify2(o,d);var g=o.add(d);return g.cmp(this.m)>=0&&g.isub(this.m),g._forceRed(this)},ne.prototype.iadd=function(o,d){this._verify2(o,d);var g=o.iadd(d);return g.cmp(this.m)>=0&&g.isub(this.m),g},ne.prototype.sub=function(o,d){this._verify2(o,d);var g=o.sub(d);return g.cmpn(0)<0&&g.iadd(this.m),g._forceRed(this)},ne.prototype.isub=function(o,d){this._verify2(o,d);var g=o.isub(d);return g.cmpn(0)<0&&g.iadd(this.m),g},ne.prototype.shl=function(o,d){return this._verify1(o),this.imod(o.ushln(d))},ne.prototype.imul=function(o,d){return this._verify2(o,d),this.imod(o.imul(d))},ne.prototype.mul=function(o,d){return this._verify2(o,d),this.imod(o.mul(d))},ne.prototype.isqr=function(o){return this.imul(o,o.clone())},ne.prototype.sqr=function(o){return this.mul(o,o)},ne.prototype.sqrt=function(o){if(o.isZero())return o.clone();var d=this.m.andln(3);if(r(d%2===1),d===3){var g=this.m.add(new i(1)).iushrn(2);return this.pow(o,g)}for(var y=this.m.subn(1),v=0;!y.isZero()&&y.andln(1)===0;)v++,y.iushrn(1);r(!y.isZero());var b=new i(1).toRed(this),M=b.redNeg(),m=this.m.subn(1).iushrn(1),s=this.m.bitLength();for(s=new i(2*s*s).toRed(this);this.pow(s,m).cmp(M)!==0;)s.redIAdd(M);for(var _=this.pow(s,y),L=this.pow(o,y.addn(1).iushrn(1)),l=this.pow(o,y),S=v;l.cmp(b)!==0;){for(var I=l,w=0;I.cmp(b)!==0;w++)I=I.redSqr();r(w<S);var F=this.pow(_,new i(1).iushln(S-w-1));L=L.redMul(F),_=F.redSqr(),l=l.redMul(_),S=w}return L},ne.prototype.invm=function(o){var d=o._invmp(this.m);return d.negative!==0?(d.negative=0,this.imod(d).redNeg()):this.imod(d)},ne.prototype.pow=function(o,d){if(d.isZero())return new i(1).toRed(this);if(d.cmpn(1)===0)return o.clone();var g=4,y=new Array(1<<g);y[0]=new i(1).toRed(this),y[1]=o;for(var v=2;v<y.length;v++)y[v]=this.mul(y[v-1],o);var b=y[0],M=0,m=0,s=d.bitLength()%26;for(s===0&&(s=26),v=d.length-1;v>=0;v--){for(var _=d.words[v],L=s-1;L>=0;L--){var l=_>>L&1;if(b!==y[0]&&(b=this.sqr(b)),l===0&&M===0){m=0;continue}M<<=1,M|=l,m++,!(m!==g&&(v!==0||L!==0))&&(b=this.mul(b,y[M]),m=0,M=0)}s=26}return b},ne.prototype.convertTo=function(o){var d=o.umod(this.m);return d===o?d.clone():d},ne.prototype.convertFrom=function(o){var d=o.clone();return d.red=null,d},i.mont=function(o){return new Pt(o)};function Pt(A){ne.call(this,A),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}n(Pt,ne),Pt.prototype.convertTo=function(o){return this.imod(o.ushln(this.shift))},Pt.prototype.convertFrom=function(o){var d=this.imod(o.mul(this.rinv));return d.red=null,d},Pt.prototype.imul=function(o,d){if(o.isZero()||d.isZero())return o.words[0]=0,o.length=1,o;var g=o.imul(d),y=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=g.isub(y).iushrn(this.shift),b=v;return v.cmp(this.m)>=0?b=v.isub(this.m):v.cmpn(0)<0&&(b=v.iadd(this.m)),b._forceRed(this)},Pt.prototype.mul=function(o,d){if(o.isZero()||d.isZero())return new i(0)._forceRed(this);var g=o.mul(d),y=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=g.isub(y).iushrn(this.shift),b=v;return v.cmp(this.m)>=0?b=v.isub(this.m):v.cmpn(0)<0&&(b=v.iadd(this.m)),b._forceRed(this)},Pt.prototype.invm=function(o){var d=this.imod(o._invmp(this.m).mul(this.r2));return d._forceRed(this)}})(typeof dl>"u"||dl,zh)});var Kh=h(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.version=void 0;ls.version="logger/5.7.0"});var ht=h(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.Logger=on.ErrorCode=on.LogLevel=void 0;var Jh=!1,Qh=!1,cs={debug:1,default:2,info:2,warning:3,error:4,off:5},Xh=cs.default,j$=Kh(),ll=null;function W$(){try{var e=[];if(["NFD","NFC","NFKD","NFKC"].forEach(function(t){try{if("test".normalize(t)!=="test")throw new Error("bad normalize")}catch{e.push(t)}}),e.length)throw new Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}var ep=W$(),rp;(function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"})(rp=on.LogLevel||(on.LogLevel={}));var un;(function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.TIMEOUT="TIMEOUT",e.BUFFER_OVERRUN="BUFFER_OVERRUN",e.NUMERIC_FAULT="NUMERIC_FAULT",e.MISSING_NEW="MISSING_NEW",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",e.TRANSACTION_REPLACED="TRANSACTION_REPLACED",e.ACTION_REJECTED="ACTION_REJECTED"})(un=on.ErrorCode||(on.ErrorCode={}));var tp="0123456789abcdef",z$=function(){function e(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}return e.prototype._log=function(t,r){var n=t.toLowerCase();cs[n]==null&&this.throwArgumentError("invalid log level name","logLevel",t),!(Xh>cs[n])&&console.log.apply(console,r)},e.prototype.debug=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this._log(e.levels.DEBUG,t)},e.prototype.info=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this._log(e.levels.INFO,t)},e.prototype.warn=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this._log(e.levels.WARNING,t)},e.prototype.makeError=function(t,r,n){if(Qh)return this.makeError("censored error",r,{});r||(r=e.errors.UNKNOWN_ERROR),n||(n={});var i=[];Object.keys(n).forEach(function(c){var $=n[c];try{if($ instanceof Uint8Array){for(var E="",C=0;C<$.length;C++)E+=tp[$[C]>>4],E+=tp[$[C]&15];i.push(c+"=Uint8Array(0x"+E+")")}else i.push(c+"="+JSON.stringify($))}catch{i.push(c+"="+JSON.stringify(n[c].toString()))}}),i.push("code="+r),i.push("version="+this.version);var a=t,u="";switch(r){case un.NUMERIC_FAULT:{u="NUMERIC_FAULT";var f=t;switch(f){case"overflow":case"underflow":case"division-by-zero":u+="-"+f;break;case"negative-power":case"negative-width":u+="-unsupported";break;case"unbound-bitwise-result":u+="-unbound-result";break}break}case un.CALL_EXCEPTION:case un.INSUFFICIENT_FUNDS:case un.MISSING_NEW:case un.NONCE_EXPIRED:case un.REPLACEMENT_UNDERPRICED:case un.TRANSACTION_REPLACED:case un.UNPREDICTABLE_GAS_LIMIT:u=r;break}u&&(t+=" [ See: https://links.ethers.org/v5-errors-"+u+" ]"),i.length&&(t+=" ("+i.join(", ")+")");var p=new Error(t);return p.reason=a,p.code=r,Object.keys(n).forEach(function(c){p[c]=n[c]}),p},e.prototype.throwError=function(t,r,n){throw this.makeError(t,r,n)},e.prototype.throwArgumentError=function(t,r,n){return this.throwError(t,e.errors.INVALID_ARGUMENT,{argument:r,value:n})},e.prototype.assert=function(t,r,n,i){t||this.throwError(r,n,i)},e.prototype.assertArgument=function(t,r,n,i){t||this.throwArgumentError(r,n,i)},e.prototype.checkNormalize=function(t){t==null&&(t="platform missing String.prototype.normalize"),ep&&this.throwError("platform missing String.prototype.normalize",e.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:ep})},e.prototype.checkSafeUint53=function(t,r){typeof t=="number"&&(r==null&&(r="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(r,e.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(r,e.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))},e.prototype.checkArgumentCount=function(t,r,n){n?n=": "+n:n="",t<r&&this.throwError("missing argument"+n,e.errors.MISSING_ARGUMENT,{count:t,expectedCount:r}),t>r&&this.throwError("too many arguments"+n,e.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:r})},e.prototype.checkNew=function(t,r){(t===Object||t==null)&&this.throwError("missing new",e.errors.MISSING_NEW,{name:r.name})},e.prototype.checkAbstract=function(t,r){t===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",e.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):(t===Object||t==null)&&this.throwError("missing new",e.errors.MISSING_NEW,{name:r.name})},e.globalLogger=function(){return ll||(ll=new e(j$.version)),ll},e.setCensorship=function(t,r){if(!t&&r&&this.globalLogger().throwError("cannot permanently disable censorship",e.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),Jh){if(!t)return;this.globalLogger().throwError("error censorship permanent",e.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}Qh=!!t,Jh=!!r},e.setLogLevel=function(t){var r=cs[t.toLowerCase()];if(r==null){e.globalLogger().warn("invalid log level - "+t);return}Xh=r},e.from=function(t){return new e(t)},e.errors=un,e.levels=rp,e}();on.Logger=z$});var np=h(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.version=void 0;hs.version="bytes/5.7.0"});var Je=h(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.joinSignature=J.splitSignature=J.hexZeroPad=J.hexStripZeros=J.hexValue=J.hexConcat=J.hexDataSlice=J.hexDataLength=J.hexlify=J.isHexString=J.zeroPad=J.stripZeros=J.concat=J.arrayify=J.isBytes=J.isBytesLike=void 0;var Y$=ht(),K$=np(),Ze=new Y$.Logger(K$.version);function ap(e){return!!e.toHexString}function ga(e){return e.slice||(e.slice=function(){var t=Array.prototype.slice.call(arguments);return ga(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function up(e){return Ut(e)&&!(e.length%2)||gs(e)}J.isBytesLike=up;function ip(e){return typeof e=="number"&&e==e&&e%1===0}function gs(e){if(e==null)return!1;if(e.constructor===Uint8Array)return!0;if(typeof e=="string"||!ip(e.length)||e.length<0)return!1;for(var t=0;t<e.length;t++){var r=e[t];if(!ip(r)||r<0||r>=256)return!1}return!0}J.isBytes=gs;function Ki(e,t){if(t||(t={}),typeof e=="number"){Ze.checkSafeUint53(e,"invalid arrayify value");for(var r=[];e;)r.unshift(e&255),e=parseInt(String(e/256));return r.length===0&&r.push(0),ga(new Uint8Array(r))}if(t.allowMissingPrefix&&typeof e=="string"&&e.substring(0,2)!=="0x"&&(e="0x"+e),ap(e)&&(e=e.toHexString()),Ut(e)){var n=e.substring(2);n.length%2&&(t.hexPad==="left"?n="0"+n:t.hexPad==="right"?n+="0":Ze.throwArgumentError("hex data is odd-length","value",e));for(var r=[],i=0;i<n.length;i+=2)r.push(parseInt(n.substring(i,i+2),16));return ga(new Uint8Array(r))}return gs(e)?ga(new Uint8Array(e)):Ze.throwArgumentError("invalid arrayify value","value",e)}J.arrayify=Ki;function op(e){var t=e.map(function(i){return Ki(i)}),r=t.reduce(function(i,a){return i+a.length},0),n=new Uint8Array(r);return t.reduce(function(i,a){return n.set(a,i),i+a.length},0),ga(n)}J.concat=op;function J$(e){var t=Ki(e);if(t.length===0)return t;for(var r=0;r<t.length&&t[r]===0;)r++;return r&&(t=t.slice(r)),t}J.stripZeros=J$;function sp(e,t){e=Ki(e),e.length>t&&Ze.throwArgumentError("value out of range","value",arguments[0]);var r=new Uint8Array(t);return r.set(e,t-e.length),ga(r)}J.zeroPad=sp;function Ut(e,t){return!(typeof e!="string"||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}J.isHexString=Ut;var cl="0123456789abcdef";function ft(e,t){if(t||(t={}),typeof e=="number"){Ze.checkSafeUint53(e,"invalid hexlify value");for(var r="";e;)r=cl[e&15]+r,e=Math.floor(e/16);return r.length?(r.length%2&&(r="0"+r),"0x"+r):"0x00"}if(typeof e=="bigint")return e=e.toString(16),e.length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&typeof e=="string"&&e.substring(0,2)!=="0x"&&(e="0x"+e),ap(e))return e.toHexString();if(Ut(e))return e.length%2&&(t.hexPad==="left"?e="0x0"+e.substring(2):t.hexPad==="right"?e+="0":Ze.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(gs(e)){for(var n="0x",i=0;i<e.length;i++){var a=e[i];n+=cl[(a&240)>>4]+cl[a&15]}return n}return Ze.throwArgumentError("invalid hexlify value","value",e)}J.hexlify=ft;function Q$(e){if(typeof e!="string")e=ft(e);else if(!Ut(e)||e.length%2)return null;return(e.length-2)/2}J.hexDataLength=Q$;function X$(e,t,r){return typeof e!="string"?e=ft(e):(!Ut(e)||e.length%2)&&Ze.throwArgumentError("invalid hexData","value",e),t=2+2*t,r!=null?"0x"+e.substring(t,2+2*r):"0x"+e.substring(t)}J.hexDataSlice=X$;function eb(e){var t="0x";return e.forEach(function(r){t+=ft(r).substring(2)}),t}J.hexConcat=eb;function tb(e){var t=fp(ft(e,{hexPad:"left"}));return t==="0x"?"0x0":t}J.hexValue=tb;function fp(e){typeof e!="string"&&(e=ft(e)),Ut(e)||Ze.throwArgumentError("invalid hex string","value",e),e=e.substring(2);for(var t=0;t<e.length&&e[t]==="0";)t++;return"0x"+e.substring(t)}J.hexStripZeros=fp;function ps(e,t){for(typeof e!="string"?e=ft(e):Ut(e)||Ze.throwArgumentError("invalid hex string","value",e),e.length>2*t+2&&Ze.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}J.hexZeroPad=ps;function dp(e){var t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(up(e)){var r=Ki(e);r.length===64?(t.v=27+(r[32]>>7),r[32]&=127,t.r=ft(r.slice(0,32)),t.s=ft(r.slice(32,64))):r.length===65?(t.r=ft(r.slice(0,32)),t.s=ft(r.slice(32,64)),t.v=r[64]):Ze.throwArgumentError("invalid signature string","signature",e),t.v<27&&(t.v===0||t.v===1?t.v+=27:Ze.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(r[32]|=128),t._vs=ft(r.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,t._vs!=null){var n=sp(Ki(t._vs),32);t._vs=ft(n);var i=n[0]>=128?1:0;t.recoveryParam==null?t.recoveryParam=i:t.recoveryParam!==i&&Ze.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),n[0]&=127;var a=ft(n);t.s==null?t.s=a:t.s!==a&&Ze.throwArgumentError("signature v mismatch _vs","signature",e)}if(t.recoveryParam==null)t.v==null?Ze.throwArgumentError("signature missing v and recoveryParam","signature",e):t.v===0||t.v===1?t.recoveryParam=t.v:t.recoveryParam=1-t.v%2;else if(t.v==null)t.v=27+t.recoveryParam;else{var u=t.v===0||t.v===1?t.v:1-t.v%2;t.recoveryParam!==u&&Ze.throwArgumentError("signature recoveryParam mismatch v","signature",e)}t.r==null||!Ut(t.r)?Ze.throwArgumentError("signature missing or invalid r","signature",e):t.r=ps(t.r,32),t.s==null||!Ut(t.s)?Ze.throwArgumentError("signature missing or invalid s","signature",e):t.s=ps(t.s,32);var f=Ki(t.s);f[0]>=128&&Ze.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(f[0]|=128);var p=ft(f);t._vs&&(Ut(t._vs)||Ze.throwArgumentError("signature invalid _vs","signature",e),t._vs=ps(t._vs,32)),t._vs==null?t._vs=p:t._vs!==p&&Ze.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t.yParityAndS=t._vs,t.compact=t.r+t.yParityAndS.substring(2),t}J.splitSignature=dp;function rb(e){return e=dp(e),ft(op([e.r,e.s,e.recoveryParam?"0x1c":"0x1b"]))}J.joinSignature=rb});var hl=h(ys=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});ys.version=void 0;ys.version="bignumber/5.7.0"});var vs=h(Tt=>{"use strict";var nb=Tt&&Tt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Tt,"__esModule",{value:!0});Tt._base16To36=Tt._base36To16=Tt.BigNumber=Tt.isBigNumberish=void 0;var ib=nb(Yh()),su=ib.default.BN,ya=Je(),ma=ht(),ab=hl(),$n=new ma.Logger(ab.version),pl={},lp=9007199254740991;function ub(e){return e!=null&&(ms.isBigNumber(e)||typeof e=="number"&&e%1===0||typeof e=="string"&&!!e.match(/^-?[0-9]+$/)||(0,ya.isHexString)(e)||typeof e=="bigint"||(0,ya.isBytes)(e))}Tt.isBigNumberish=ub;var cp=!1,ms=function(){function e(t,r){t!==pl&&$n.throwError("cannot call constructor directly; use BigNumber.from",ma.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=r,this._isBigNumber=!0,Object.freeze(this)}return e.prototype.fromTwos=function(t){return vt(Y(this).fromTwos(t))},e.prototype.toTwos=function(t){return vt(Y(this).toTwos(t))},e.prototype.abs=function(){return this._hex[0]==="-"?e.from(this._hex.substring(1)):this},e.prototype.add=function(t){return vt(Y(this).add(Y(t)))},e.prototype.sub=function(t){return vt(Y(this).sub(Y(t)))},e.prototype.div=function(t){var r=e.from(t);return r.isZero()&&wt("division-by-zero","div"),vt(Y(this).div(Y(t)))},e.prototype.mul=function(t){return vt(Y(this).mul(Y(t)))},e.prototype.mod=function(t){var r=Y(t);return r.isNeg()&&wt("division-by-zero","mod"),vt(Y(this).umod(r))},e.prototype.pow=function(t){var r=Y(t);return r.isNeg()&&wt("negative-power","pow"),vt(Y(this).pow(r))},e.prototype.and=function(t){var r=Y(t);return(this.isNegative()||r.isNeg())&&wt("unbound-bitwise-result","and"),vt(Y(this).and(r))},e.prototype.or=function(t){var r=Y(t);return(this.isNegative()||r.isNeg())&&wt("unbound-bitwise-result","or"),vt(Y(this).or(r))},e.prototype.xor=function(t){var r=Y(t);return(this.isNegative()||r.isNeg())&&wt("unbound-bitwise-result","xor"),vt(Y(this).xor(r))},e.prototype.mask=function(t){return(this.isNegative()||t<0)&&wt("negative-width","mask"),vt(Y(this).maskn(t))},e.prototype.shl=function(t){return(this.isNegative()||t<0)&&wt("negative-width","shl"),vt(Y(this).shln(t))},e.prototype.shr=function(t){return(this.isNegative()||t<0)&&wt("negative-width","shr"),vt(Y(this).shrn(t))},e.prototype.eq=function(t){return Y(this).eq(Y(t))},e.prototype.lt=function(t){return Y(this).lt(Y(t))},e.prototype.lte=function(t){return Y(this).lte(Y(t))},e.prototype.gt=function(t){return Y(this).gt(Y(t))},e.prototype.gte=function(t){return Y(this).gte(Y(t))},e.prototype.isNegative=function(){return this._hex[0]==="-"},e.prototype.isZero=function(){return Y(this).isZero()},e.prototype.toNumber=function(){try{return Y(this).toNumber()}catch{wt("overflow","toNumber",this.toString())}return null},e.prototype.toBigInt=function(){try{return BigInt(this.toString())}catch{}return $n.throwError("this platform does not support BigInt",ma.Logger.errors.UNSUPPORTED_OPERATION,{value:this.toString()})},e.prototype.toString=function(){return arguments.length>0&&(arguments[0]===10?cp||(cp=!0,$n.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?$n.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",ma.Logger.errors.UNEXPECTED_ARGUMENT,{}):$n.throwError("BigNumber.toString does not accept parameters",ma.Logger.errors.UNEXPECTED_ARGUMENT,{})),Y(this).toString(10)},e.prototype.toHexString=function(){return this._hex},e.prototype.toJSON=function(t){return{type:"BigNumber",hex:this.toHexString()}},e.from=function(t){if(t instanceof e)return t;if(typeof t=="string")return t.match(/^-?0x[0-9a-f]+$/i)?new e(pl,fu(t)):t.match(/^-?[0-9]+$/)?new e(pl,fu(new su(t))):$n.throwArgumentError("invalid BigNumber string","value",t);if(typeof t=="number")return t%1&&wt("underflow","BigNumber.from",t),(t>=lp||t<=-lp)&&wt("overflow","BigNumber.from",t),e.from(String(t));var r=t;if(typeof r=="bigint")return e.from(r.toString());if((0,ya.isBytes)(r))return e.from((0,ya.hexlify)(r));if(r)if(r.toHexString){var n=r.toHexString();if(typeof n=="string")return e.from(n)}else{var n=r._hex;if(n==null&&r.type==="BigNumber"&&(n=r.hex),typeof n=="string"&&((0,ya.isHexString)(n)||n[0]==="-"&&(0,ya.isHexString)(n.substring(1))))return e.from(n)}return $n.throwArgumentError("invalid BigNumber value","value",t)},e.isBigNumber=function(t){return!!(t&&t._isBigNumber)},e}();Tt.BigNumber=ms;function fu(e){if(typeof e!="string")return fu(e.toString(16));if(e[0]==="-")return e=e.substring(1),e[0]==="-"&&$n.throwArgumentError("invalid hex","value",e),e=fu(e),e==="0x00"?e:"-"+e;if(e.substring(0,2)!=="0x"&&(e="0x"+e),e==="0x")return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&e.substring(0,4)==="0x00";)e="0x"+e.substring(4);return e}function vt(e){return ms.from(fu(e))}function Y(e){var t=ms.from(e).toHexString();return t[0]==="-"?new su("-"+t.substring(3),16):new su(t.substring(2),16)}function wt(e,t,r){var n={fault:e,operation:t};return r!=null&&(n.value=r),$n.throwError(e,ma.Logger.errors.NUMERIC_FAULT,n)}function ob(e){return new su(e,36).toString(16)}Tt._base36To16=ob;function sb(e){return new su(e,16).toString(36)}Tt._base16To36=sb});var mp=h(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.FixedNumber=fn.FixedFormat=fn.parseFixed=fn.formatFixed=void 0;var _s=Je(),cu=ht(),fb=hl(),pt=new cu.Logger(fb.version),bn=vs(),du={},pp=bn.BigNumber.from(0),gp=bn.BigNumber.from(-1);function yp(e,t,r,n){var i={fault:t,operation:r};return n!==void 0&&(i.value=n),pt.throwError(e,cu.Logger.errors.NUMERIC_FAULT,i)}var lu="0";for(;lu.length<256;)lu+=lu;function gl(e){if(typeof e!="number")try{e=bn.BigNumber.from(e).toNumber()}catch{}return typeof e=="number"&&e>=0&&e<=256&&!(e%1)?"1"+lu.substring(0,e):pt.throwArgumentError("invalid decimal size","decimals",e)}function As(e,t){t==null&&(t=0);var r=gl(t);e=bn.BigNumber.from(e);var n=e.lt(pp);n&&(e=e.mul(gp));for(var i=e.mod(r).toString();i.length<r.length-1;)i="0"+i;i=i.match(/^([0-9]*[1-9]|0)(0*)/)[1];var a=e.div(r).toString();return r.length===1?e=a:e=a+"."+i,n&&(e="-"+e),e}fn.formatFixed=As;function sn(e,t){t==null&&(t=0);var r=gl(t);(typeof e!="string"||!e.match(/^-?[0-9.]+$/))&&pt.throwArgumentError("invalid decimal value","value",e);var n=e.substring(0,1)==="-";n&&(e=e.substring(1)),e==="."&&pt.throwArgumentError("missing value","value",e);var i=e.split(".");i.length>2&&pt.throwArgumentError("too many decimal points","value",e);var a=i[0],u=i[1];for(a||(a="0"),u||(u="0");u[u.length-1]==="0";)u=u.substring(0,u.length-1);for(u.length>r.length-1&&yp("fractional component exceeds decimals","underflow","parseFixed"),u===""&&(u="0");u.length<r.length-1;)u+="0";var f=bn.BigNumber.from(a),p=bn.BigNumber.from(u),c=f.mul(r).add(p);return n&&(c=c.mul(gp)),c}fn.parseFixed=sn;var $s=function(){function e(t,r,n,i){t!==du&&pt.throwError("cannot use FixedFormat constructor; use FixedFormat.from",cu.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.signed=r,this.width=n,this.decimals=i,this.name=(r?"":"u")+"fixed"+String(n)+"x"+String(i),this._multiplier=gl(i),Object.freeze(this)}return e.from=function(t){if(t instanceof e)return t;typeof t=="number"&&(t="fixed128x"+t);var r=!0,n=128,i=18;if(typeof t=="string"){if(t!=="fixed")if(t==="ufixed")r=!1;else{var a=t.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);a||pt.throwArgumentError("invalid fixed format","format",t),r=a[1]!=="u",n=parseInt(a[2]),i=parseInt(a[3])}}else if(t){var u=function(f,p,c){return t[f]==null?c:(typeof t[f]!==p&&pt.throwArgumentError("invalid fixed format ("+f+" not "+p+")","format."+f,t[f]),t[f])};r=u("signed","boolean",r),n=u("width","number",n),i=u("decimals","number",i)}return n%8&&pt.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",n),i>80&&pt.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",i),new e(du,r,n,i)},e}();fn.FixedFormat=$s;var yl=function(){function e(t,r,n,i){t!==du&&pt.throwError("cannot use FixedNumber constructor; use FixedNumber.from",cu.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=i,this._hex=r,this._value=n,this._isFixedNumber=!0,Object.freeze(this)}return e.prototype._checkFormat=function(t){this.format.name!==t.format.name&&pt.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",t)},e.prototype.addUnsafe=function(t){this._checkFormat(t);var r=sn(this._value,this.format.decimals),n=sn(t._value,t.format.decimals);return e.fromValue(r.add(n),this.format.decimals,this.format)},e.prototype.subUnsafe=function(t){this._checkFormat(t);var r=sn(this._value,this.format.decimals),n=sn(t._value,t.format.decimals);return e.fromValue(r.sub(n),this.format.decimals,this.format)},e.prototype.mulUnsafe=function(t){this._checkFormat(t);var r=sn(this._value,this.format.decimals),n=sn(t._value,t.format.decimals);return e.fromValue(r.mul(n).div(this.format._multiplier),this.format.decimals,this.format)},e.prototype.divUnsafe=function(t){this._checkFormat(t);var r=sn(this._value,this.format.decimals),n=sn(t._value,t.format.decimals);return e.fromValue(r.mul(this.format._multiplier).div(n),this.format.decimals,this.format)},e.prototype.floor=function(){var t=this.toString().split(".");t.length===1&&t.push("0");var r=e.from(t[0],this.format),n=!t[1].match(/^(0*)$/);return this.isNegative()&&n&&(r=r.subUnsafe(hp.toFormat(r.format))),r},e.prototype.ceiling=function(){var t=this.toString().split(".");t.length===1&&t.push("0");var r=e.from(t[0],this.format),n=!t[1].match(/^(0*)$/);return!this.isNegative()&&n&&(r=r.addUnsafe(hp.toFormat(r.format))),r},e.prototype.round=function(t){t==null&&(t=0);var r=this.toString().split(".");if(r.length===1&&r.push("0"),(t<0||t>80||t%1)&&pt.throwArgumentError("invalid decimal count","decimals",t),r[1].length<=t)return this;var n=e.from("1"+lu.substring(0,t),this.format),i=db.toFormat(this.format);return this.mulUnsafe(n).addUnsafe(i).floor().divUnsafe(n)},e.prototype.isZero=function(){return this._value==="0.0"||this._value==="0"},e.prototype.isNegative=function(){return this._value[0]==="-"},e.prototype.toString=function(){return this._value},e.prototype.toHexString=function(t){if(t==null)return this._hex;t%8&&pt.throwArgumentError("invalid byte width","width",t);var r=bn.BigNumber.from(this._hex).fromTwos(this.format.width).toTwos(t).toHexString();return(0,_s.hexZeroPad)(r,t/8)},e.prototype.toUnsafeFloat=function(){return parseFloat(this.toString())},e.prototype.toFormat=function(t){return e.fromString(this._value,t)},e.fromValue=function(t,r,n){return n==null&&r!=null&&!(0,bn.isBigNumberish)(r)&&(n=r,r=null),r==null&&(r=0),n==null&&(n="fixed"),e.fromString(As(t,r),$s.from(n))},e.fromString=function(t,r){r==null&&(r="fixed");var n=$s.from(r),i=sn(t,n.decimals);!n.signed&&i.lt(pp)&&yp("unsigned value cannot be negative","overflow","value",t);var a=null;n.signed?a=i.toTwos(n.width).toHexString():(a=i.toHexString(),a=(0,_s.hexZeroPad)(a,n.width/8));var u=As(i,n.decimals);return new e(du,a,u,n)},e.fromBytes=function(t,r){r==null&&(r="fixed");var n=$s.from(r);if((0,_s.arrayify)(t).length>n.width/8)throw new Error("overflow");var i=bn.BigNumber.from(t);n.signed&&(i=i.fromTwos(n.width));var a=i.toTwos((n.signed?0:1)+n.width).toHexString(),u=As(i,n.decimals);return new e(du,a,u,n)},e.from=function(t,r){if(typeof t=="string")return e.fromString(t,r);if((0,_s.isBytes)(t))return e.fromBytes(t,r);try{return e.fromValue(t,0,r)}catch(n){if(n.code!==cu.Logger.errors.INVALID_ARGUMENT)throw n}return pt.throwArgumentError("invalid FixedNumber value","value",t)},e.isFixedNumber=function(t){return!!(t&&t._isFixedNumber)},e}();fn.FixedNumber=yl;var hp=yl.from(1),db=yl.from("0.5")});var En=h(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt._base36To16=dt._base16To36=dt.parseFixed=dt.FixedNumber=dt.FixedFormat=dt.formatFixed=dt.BigNumber=void 0;var lb=vs();Object.defineProperty(dt,"BigNumber",{enumerable:!0,get:function(){return lb.BigNumber}});var bs=mp();Object.defineProperty(dt,"formatFixed",{enumerable:!0,get:function(){return bs.formatFixed}});Object.defineProperty(dt,"FixedFormat",{enumerable:!0,get:function(){return bs.FixedFormat}});Object.defineProperty(dt,"FixedNumber",{enumerable:!0,get:function(){return bs.FixedNumber}});Object.defineProperty(dt,"parseFixed",{enumerable:!0,get:function(){return bs.parseFixed}});var vp=vs();Object.defineProperty(dt,"_base16To36",{enumerable:!0,get:function(){return vp._base16To36}});Object.defineProperty(dt,"_base36To16",{enumerable:!0,get:function(){return vp._base36To16}})});var _p=h(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.version=void 0;Es.version="properties/5.7.0"});var va=h(Qe=>{"use strict";var cb=Qe&&Qe.__awaiter||function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function f($){try{c(n.next($))}catch(E){u(E)}}function p($){try{c(n.throw($))}catch(E){u(E)}}function c($){$.done?a($.value):i($.value).then(f,p)}c((n=n.apply(e,t||[])).next())})},hb=Qe&&Qe.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,u;return u={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function f(c){return function($){return p([c,$])}}function p(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=c[0]&2?i.return:c[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;switch(i=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){r.label=c[1];break}if(c[0]===6&&r.label<a[1]){r.label=a[1],a=c;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(c);break}a[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch($){c=[6,$],i=0}finally{n=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}};Object.defineProperty(Qe,"__esModule",{value:!0});Qe.Description=Qe.deepCopy=Qe.shallowCopy=Qe.checkProperties=Qe.resolveProperties=Qe.getStatic=Qe.defineReadOnly=void 0;var pb=ht(),gb=_p(),Ms=new pb.Logger(gb.version);function Ap(e,t,r){Object.defineProperty(e,t,{enumerable:!0,value:r,writable:!1})}Qe.defineReadOnly=Ap;function yb(e,t){for(var r=0;r<32;r++){if(e[t])return e[t];if(!e.prototype||typeof e.prototype!="object")break;e=Object.getPrototypeOf(e.prototype).constructor}return null}Qe.getStatic=yb;function mb(e){return cb(this,void 0,void 0,function(){var t,r;return hb(this,function(n){switch(n.label){case 0:return t=Object.keys(e).map(function(i){var a=e[i];return Promise.resolve(a).then(function(u){return{key:i,value:u}})}),[4,Promise.all(t)];case 1:return r=n.sent(),[2,r.reduce(function(i,a){return i[a.key]=a.value,i},{})]}})})}Qe.resolveProperties=mb;function vb(e,t){(!e||typeof e!="object")&&Ms.throwArgumentError("invalid object","object",e),Object.keys(e).forEach(function(r){t[r]||Ms.throwArgumentError("invalid object key - "+r,"transaction:"+r,e)})}Qe.checkProperties=vb;function _b(e){var t={};for(var r in e)t[r]=e[r];return t}Qe.shallowCopy=_b;var Ab={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function $p(e){if(e==null||Ab[typeof e])return!0;if(Array.isArray(e)||typeof e=="object"){if(!Object.isFrozen(e))return!1;for(var t=Object.keys(e),r=0;r<t.length;r++){var n=null;try{n=e[t[r]]}catch{continue}if(!$p(n))return!1}return!0}return Ms.throwArgumentError("Cannot deepCopy "+typeof e,"object",e)}function $b(e){if($p(e))return e;if(Array.isArray(e))return Object.freeze(e.map(function(i){return Ns(i)}));if(typeof e=="object"){var t={};for(var r in e){var n=e[r];n!==void 0&&Ap(t,r,Ns(n))}return t}return Ms.throwArgumentError("Cannot deepCopy "+typeof e,"object",e)}function Ns(e){return $b(e)}Qe.deepCopy=Ns;var bb=function(){function e(t){for(var r in t)this[r]=Ns(t[r])}return e}();Qe.Description=bb});var _a=h(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.version=void 0;Ss.version="abi/5.7.0"});var xs=h(G=>{"use strict";var ws=G&&G.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(G,"__esModule",{value:!0});G.ErrorFragment=G.FunctionFragment=G.ConstructorFragment=G.EventFragment=G.Fragment=G.ParamType=G.FormatTypes=void 0;var Al=En(),Eb=va(),Ts=ht(),Mb=_a(),K=new Ts.Logger(Mb.version),Ji={},bp={calldata:!0,memory:!0,storage:!0},Nb={calldata:!0,memory:!0};function Is(e,t){if(e==="bytes"||e==="string"){if(bp[t])return!0}else if(e==="address"){if(t==="payable")return!0}else if((e.indexOf("[")>=0||e==="tuple")&&Nb[t])return!0;return(bp[t]||t==="payable")&&K.throwArgumentError("invalid modifier","name",t),!1}function Sb(e,t){var r=e;function n(E){K.throwArgumentError("unexpected character at position "+E,"param",e)}e=e.replace(/\s/g," ");function i(E){var C={type:"",name:"",parent:E,state:{allowType:!0}};return t&&(C.indexed=!1),C}for(var a={type:"",name:"",state:{allowType:!0}},u=a,f=0;f<e.length;f++){var p=e[f];switch(p){case"(":u.state.allowType&&u.type===""?u.type="tuple":u.state.allowParams||n(f),u.state.allowType=!1,u.type=Aa(u.type),u.components=[i(u)],u=u.components[0];break;case")":delete u.state,u.name==="indexed"&&(t||n(f),u.indexed=!0,u.name=""),Is(u.type,u.name)&&(u.name=""),u.type=Aa(u.type);var c=u;u=u.parent,u||n(f),delete c.parent,u.state.allowParams=!1,u.state.allowName=!0,u.state.allowArray=!0;break;case",":delete u.state,u.name==="indexed"&&(t||n(f),u.indexed=!0,u.name=""),Is(u.type,u.name)&&(u.name=""),u.type=Aa(u.type);var $=i(u.parent);u.parent.components.push($),delete u.parent,u=$;break;case" ":u.state.allowType&&u.type!==""&&(u.type=Aa(u.type),delete u.state.allowType,u.state.allowName=!0,u.state.allowParams=!0),u.state.allowName&&u.name!==""&&(u.name==="indexed"?(t||n(f),u.indexed&&n(f),u.indexed=!0,u.name=""):Is(u.type,u.name)?u.name="":u.state.allowName=!1);break;case"[":u.state.allowArray||n(f),u.type+=p,u.state.allowArray=!1,u.state.allowName=!1,u.state.readArray=!0;break;case"]":u.state.readArray||n(f),u.type+=p,u.state.readArray=!1,u.state.allowArray=!0,u.state.allowName=!0;break;default:u.state.allowType?(u.type+=p,u.state.allowParams=!0,u.state.allowArray=!0):u.state.allowName?(u.name+=p,delete u.state.allowArray):u.state.readArray?u.type+=p:n(f)}}return u.parent&&K.throwArgumentError("unexpected eof","param",e),delete a.state,u.name==="indexed"?(t||n(r.length-7),u.indexed&&n(r.length-7),u.indexed=!0,u.name=""):Is(u.type,u.name)&&(u.name=""),a.type=Aa(a.type),a}function Cs(e,t){for(var r in t)(0,Eb.defineReadOnly)(e,r,t[r])}G.FormatTypes=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"});var Ib=new RegExp(/^(.*)\[([0-9]*)\]$/),Qi=function(){function e(t,r){t!==Ji&&K.throwError("use fromString",Ts.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),Cs(this,r);var n=this.type.match(Ib);n?Cs(this,{arrayLength:parseInt(n[2]||"-1"),arrayChildren:e.fromObject({type:n[1],components:this.components}),baseType:"array"}):Cs(this,{arrayLength:null,arrayChildren:null,baseType:this.components!=null?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}return e.prototype.format=function(t){if(t||(t=G.FormatTypes.sighash),G.FormatTypes[t]||K.throwArgumentError("invalid format type","format",t),t===G.FormatTypes.json){var r={type:this.baseType==="tuple"?"tuple":this.type,name:this.name||void 0};return typeof this.indexed=="boolean"&&(r.indexed=this.indexed),this.components&&(r.components=this.components.map(function(i){return JSON.parse(i.format(t))})),JSON.stringify(r)}var n="";return this.baseType==="array"?(n+=this.arrayChildren.format(t),n+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):this.baseType==="tuple"?(t!==G.FormatTypes.sighash&&(n+=this.type),n+="("+this.components.map(function(i){return i.format(t)}).join(t===G.FormatTypes.full?", ":",")+")"):n+=this.type,t!==G.FormatTypes.sighash&&(this.indexed===!0&&(n+=" indexed"),t===G.FormatTypes.full&&this.name&&(n+=" "+this.name)),n},e.from=function(t,r){return typeof t=="string"?e.fromString(t,r):e.fromObject(t)},e.fromObject=function(t){return e.isParamType(t)?t:new e(Ji,{name:t.name||null,type:Aa(t.type),indexed:t.indexed==null?null:!!t.indexed,components:t.components?t.components.map(e.fromObject):null})},e.fromString=function(t,r){function n(i){return e.fromObject({name:i.name,type:i.type,indexed:i.indexed,components:i.components})}return n(Sb(t,!!r))},e.isParamType=function(t){return!!(t!=null&&t._isParamType)},e}();G.ParamType=Qi;function hu(e,t){return Pb(e).map(function(r){return Qi.fromString(r,t)})}var Os=function(){function e(t,r){t!==Ji&&K.throwError("use a static from method",Ts.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),Cs(this,r),this._isFragment=!0,Object.freeze(this)}return e.from=function(t){return e.isFragment(t)?t:typeof t=="string"?e.fromString(t):e.fromObject(t)},e.fromObject=function(t){if(e.isFragment(t))return t;switch(t.type){case"function":return vl.fromObject(t);case"event":return ml.fromObject(t);case"constructor":return Ps.fromObject(t);case"error":return _l.fromObject(t);case"fallback":case"receive":return null}return K.throwArgumentError("invalid fragment object","value",t)},e.fromString=function(t){return t=t.replace(/\s/g," "),t=t.replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," "),t=t.trim(),t.split(" ")[0]==="event"?ml.fromString(t.substring(5).trim()):t.split(" ")[0]==="function"?vl.fromString(t.substring(8).trim()):t.split("(")[0].trim()==="constructor"?Ps.fromString(t.trim()):t.split(" ")[0]==="error"?_l.fromString(t.substring(5).trim()):K.throwArgumentError("unsupported fragment","value",t)},e.isFragment=function(t){return!!(t&&t._isFragment)},e}();G.Fragment=Os;var ml=function(e){ws(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.format=function(r){if(r||(r=G.FormatTypes.sighash),G.FormatTypes[r]||K.throwArgumentError("invalid format type","format",r),r===G.FormatTypes.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(function(i){return JSON.parse(i.format(r))})});var n="";return r!==G.FormatTypes.sighash&&(n+="event "),n+=this.name+"("+this.inputs.map(function(i){return i.format(r)}).join(r===G.FormatTypes.full?", ":",")+") ",r!==G.FormatTypes.sighash&&this.anonymous&&(n+="anonymous "),n.trim()},t.from=function(r){return typeof r=="string"?t.fromString(r):t.fromObject(r)},t.fromObject=function(r){if(t.isEventFragment(r))return r;r.type!=="event"&&K.throwArgumentError("invalid event object","value",r);var n={name:pu(r.name),anonymous:r.anonymous,inputs:r.inputs?r.inputs.map(Qi.fromObject):[],type:"event"};return new t(Ji,n)},t.fromString=function(r){var n=r.match(gu);n||K.throwArgumentError("invalid event string","value",r);var i=!1;return n[3].split(" ").forEach(function(a){switch(a.trim()){case"anonymous":i=!0;break;case"":break;default:K.warn("unknown modifier: "+a)}}),t.fromObject({name:n[1].trim(),anonymous:i,inputs:hu(n[2],!0),type:"event"})},t.isEventFragment=function(r){return r&&r._isFragment&&r.type==="event"},t}(Os);G.EventFragment=ml;function Mp(e,t){t.gas=null;var r=e.split("@");return r.length!==1?(r.length>2&&K.throwArgumentError("invalid human-readable ABI signature","value",e),r[1].match(/^[0-9]+$/)||K.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=Al.BigNumber.from(r[1]),r[0]):e}function Np(e,t){t.constant=!1,t.payable=!1,t.stateMutability="nonpayable",e.split(" ").forEach(function(r){switch(r.trim()){case"constant":t.constant=!0;break;case"payable":t.payable=!0,t.stateMutability="payable";break;case"nonpayable":t.payable=!1,t.stateMutability="nonpayable";break;case"pure":t.constant=!0,t.stateMutability="pure";break;case"view":t.constant=!0,t.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+r)}})}function Sp(e){var t={constant:!1,payable:!0,stateMutability:"payable"};return e.stateMutability!=null?(t.stateMutability=e.stateMutability,t.constant=t.stateMutability==="view"||t.stateMutability==="pure",e.constant!=null&&!!e.constant!==t.constant&&K.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable=t.stateMutability==="payable",e.payable!=null&&!!e.payable!==t.payable&&K.throwArgumentError("cannot have payable function with mutability "+t.stateMutability,"value",e)):e.payable!=null?(t.payable=!!e.payable,e.constant==null&&!t.payable&&e.type!=="constructor"&&K.throwArgumentError("unable to determine stateMutability","value",e),t.constant=!!e.constant,t.constant?t.stateMutability="view":t.stateMutability=t.payable?"payable":"nonpayable",t.payable&&t.constant&&K.throwArgumentError("cannot have constant payable function","value",e)):e.constant!=null?(t.constant=!!e.constant,t.payable=!t.constant,t.stateMutability=t.constant?"view":"payable"):e.type!=="constructor"&&K.throwArgumentError("unable to determine stateMutability","value",e),t}var Ps=function(e){ws(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.format=function(r){if(r||(r=G.FormatTypes.sighash),G.FormatTypes[r]||K.throwArgumentError("invalid format type","format",r),r===G.FormatTypes.json)return JSON.stringify({type:"constructor",stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(function(i){return JSON.parse(i.format(r))})});r===G.FormatTypes.sighash&&K.throwError("cannot format a constructor for sighash",Ts.Logger.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});var n="constructor("+this.inputs.map(function(i){return i.format(r)}).join(r===G.FormatTypes.full?", ":",")+") ";return this.stateMutability&&this.stateMutability!=="nonpayable"&&(n+=this.stateMutability+" "),n.trim()},t.from=function(r){return typeof r=="string"?t.fromString(r):t.fromObject(r)},t.fromObject=function(r){if(t.isConstructorFragment(r))return r;r.type!=="constructor"&&K.throwArgumentError("invalid constructor object","value",r);var n=Sp(r);n.constant&&K.throwArgumentError("constructor cannot be constant","value",r);var i={name:null,type:r.type,inputs:r.inputs?r.inputs.map(Qi.fromObject):[],payable:n.payable,stateMutability:n.stateMutability,gas:r.gas?Al.BigNumber.from(r.gas):null};return new t(Ji,i)},t.fromString=function(r){var n={type:"constructor"};r=Mp(r,n);var i=r.match(gu);return(!i||i[1].trim()!=="constructor")&&K.throwArgumentError("invalid constructor string","value",r),n.inputs=hu(i[2].trim(),!1),Np(i[3].trim(),n),t.fromObject(n)},t.isConstructorFragment=function(r){return r&&r._isFragment&&r.type==="constructor"},t}(Os);G.ConstructorFragment=Ps;var vl=function(e){ws(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.format=function(r){if(r||(r=G.FormatTypes.sighash),G.FormatTypes[r]||K.throwArgumentError("invalid format type","format",r),r===G.FormatTypes.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(function(i){return JSON.parse(i.format(r))}),outputs:this.outputs.map(function(i){return JSON.parse(i.format(r))})});var n="";return r!==G.FormatTypes.sighash&&(n+="function "),n+=this.name+"("+this.inputs.map(function(i){return i.format(r)}).join(r===G.FormatTypes.full?", ":",")+") ",r!==G.FormatTypes.sighash&&(this.stateMutability?this.stateMutability!=="nonpayable"&&(n+=this.stateMutability+" "):this.constant&&(n+="view "),this.outputs&&this.outputs.length&&(n+="returns ("+this.outputs.map(function(i){return i.format(r)}).join(", ")+") "),this.gas!=null&&(n+="@"+this.gas.toString()+" ")),n.trim()},t.from=function(r){return typeof r=="string"?t.fromString(r):t.fromObject(r)},t.fromObject=function(r){if(t.isFunctionFragment(r))return r;r.type!=="function"&&K.throwArgumentError("invalid function object","value",r);var n=Sp(r),i={type:r.type,name:pu(r.name),constant:n.constant,inputs:r.inputs?r.inputs.map(Qi.fromObject):[],outputs:r.outputs?r.outputs.map(Qi.fromObject):[],payable:n.payable,stateMutability:n.stateMutability,gas:r.gas?Al.BigNumber.from(r.gas):null};return new t(Ji,i)},t.fromString=function(r){var n={type:"function"};r=Mp(r,n);var i=r.split(" returns ");i.length>2&&K.throwArgumentError("invalid function string","value",r);var a=i[0].match(gu);if(a||K.throwArgumentError("invalid function signature","value",r),n.name=a[1].trim(),n.name&&pu(n.name),n.inputs=hu(a[2],!1),Np(a[3].trim(),n),i.length>1){var u=i[1].match(gu);(u[1].trim()!=""||u[3].trim()!="")&&K.throwArgumentError("unexpected tokens","value",r),n.outputs=hu(u[2],!1)}else n.outputs=[];return t.fromObject(n)},t.isFunctionFragment=function(r){return r&&r._isFragment&&r.type==="function"},t}(Ps);G.FunctionFragment=vl;function Ep(e){var t=e.format();return(t==="Error(string)"||t==="Panic(uint256)")&&K.throwArgumentError("cannot specify user defined "+t+" error","fragment",e),e}var _l=function(e){ws(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.format=function(r){if(r||(r=G.FormatTypes.sighash),G.FormatTypes[r]||K.throwArgumentError("invalid format type","format",r),r===G.FormatTypes.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(function(i){return JSON.parse(i.format(r))})});var n="";return r!==G.FormatTypes.sighash&&(n+="error "),n+=this.name+"("+this.inputs.map(function(i){return i.format(r)}).join(r===G.FormatTypes.full?", ":",")+") ",n.trim()},t.from=function(r){return typeof r=="string"?t.fromString(r):t.fromObject(r)},t.fromObject=function(r){if(t.isErrorFragment(r))return r;r.type!=="error"&&K.throwArgumentError("invalid error object","value",r);var n={type:r.type,name:pu(r.name),inputs:r.inputs?r.inputs.map(Qi.fromObject):[]};return Ep(new t(Ji,n))},t.fromString=function(r){var n={type:"error"},i=r.match(gu);return i||K.throwArgumentError("invalid error signature","value",r),n.name=i[1].trim(),n.name&&pu(n.name),n.inputs=hu(i[2],!1),Ep(t.fromObject(n))},t.isErrorFragment=function(r){return r&&r._isFragment&&r.type==="error"},t}(Os);G.ErrorFragment=_l;function Aa(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}var Cb=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function pu(e){return(!e||!e.match(Cb))&&K.throwArgumentError('invalid identifier "'+e+'"',"value",e),e}var gu=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");function Pb(e){e=e.trim();for(var t=[],r="",n=0,i=0;i<e.length;i++){var a=e[i];a===","&&n===0?(t.push(r),r=""):(r+=a,a==="("?n++:a===")"&&(n--,n===-1&&K.throwArgumentError("unbalanced parenthesis","value",e)))}return r&&t.push(r),t}});var Ot=h(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.Reader=dn.Writer=dn.Coder=dn.checkResultErrors=void 0;var mi=Je(),Ip=En(),yu=va(),$l=ht(),wb=_a(),bl=new $l.Logger(wb.version);function Tb(e){var t=[],r=function(n,i){if(!!Array.isArray(i))for(var a in i){var u=n.slice();u.push(a);try{r(u,i[a])}catch(f){t.push({path:u,error:f})}}};return r([],e),t}dn.checkResultErrors=Tb;var Ob=function(){function e(t,r,n,i){this.name=t,this.type=r,this.localName=n,this.dynamic=i}return e.prototype._throwError=function(t,r){bl.throwArgumentError(t,this.localName,r)},e}();dn.Coder=Ob;var xb=function(){function e(t){(0,yu.defineReadOnly)(this,"wordSize",t||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(t)}return Object.defineProperty(e.prototype,"data",{get:function(){return(0,mi.hexConcat)(this._data)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._dataLength},enumerable:!1,configurable:!0}),e.prototype._writeData=function(t){return this._data.push(t),this._dataLength+=t.length,t.length},e.prototype.appendWriter=function(t){return this._writeData((0,mi.concat)(t._data))},e.prototype.writeBytes=function(t){var r=(0,mi.arrayify)(t),n=r.length%this.wordSize;return n&&(r=(0,mi.concat)([r,this._padding.slice(n)])),this._writeData(r)},e.prototype._getValue=function(t){var r=(0,mi.arrayify)(Ip.BigNumber.from(t));return r.length>this.wordSize&&bl.throwError("value out-of-bounds",$l.Logger.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:r.length}),r.length%this.wordSize&&(r=(0,mi.concat)([this._padding.slice(r.length%this.wordSize),r])),r},e.prototype.writeValue=function(t){return this._writeData(this._getValue(t))},e.prototype.writeUpdatableValue=function(){var t=this,r=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,function(n){t._data[r]=t._getValue(n)}},e}();dn.Writer=xb;var Fb=function(){function e(t,r,n,i){(0,yu.defineReadOnly)(this,"_data",(0,mi.arrayify)(t)),(0,yu.defineReadOnly)(this,"wordSize",r||32),(0,yu.defineReadOnly)(this,"_coerceFunc",n),(0,yu.defineReadOnly)(this,"allowLoose",i),this._offset=0}return Object.defineProperty(e.prototype,"data",{get:function(){return(0,mi.hexlify)(this._data)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"consumed",{get:function(){return this._offset},enumerable:!1,configurable:!0}),e.coerce=function(t,r){var n=t.match("^u?int([0-9]+)$");return n&&parseInt(n[1])<=48&&(r=r.toNumber()),r},e.prototype.coerce=function(t,r){return this._coerceFunc?this._coerceFunc(t,r):e.coerce(t,r)},e.prototype._peekBytes=function(t,r,n){var i=Math.ceil(r/this.wordSize)*this.wordSize;return this._offset+i>this._data.length&&(this.allowLoose&&n&&this._offset+r<=this._data.length?i=r:bl.throwError("data out-of-bounds",$l.Logger.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+i})),this._data.slice(this._offset,this._offset+i)},e.prototype.subReader=function(t){return new e(this._data.slice(this._offset+t),this.wordSize,this._coerceFunc,this.allowLoose)},e.prototype.readBytes=function(t,r){var n=this._peekBytes(0,t,!!r);return this._offset+=n.length,n.slice(0,t)},e.prototype.readValue=function(){return Ip.BigNumber.from(this.readBytes(this.wordSize))},e}();dn.Reader=Fb});var Cp=h((qH,Fs)=>{(function(){"use strict";var e="input is invalid type",t="finalize already called",r=typeof window=="object",n=r?window:{};n.JS_SHA3_NO_WINDOW&&(r=!1);var i=!r&&typeof self=="object",a=!n.JS_SHA3_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;a?n=global:i&&(n=self);var u=!n.JS_SHA3_NO_COMMON_JS&&typeof Fs=="object"&&Fs.exports,f=typeof define=="function"&&define.amd,p=!n.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",c="0123456789abcdef".split(""),$=[31,7936,2031616,520093696],E=[4,1024,262144,67108864],C=[1,256,65536,16777216],N=[6,1536,393216,100663296],P=[0,8,16,24],R=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],k=[224,256,384,512],Q=[128,256],H=["hex","buffer","arrayBuffer","array","digest"],z={128:168,256:136};(n.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(l){return Object.prototype.toString.call(l)==="[object Array]"}),p&&(n.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(l){return typeof l=="object"&&l.buffer&&l.buffer.constructor===ArrayBuffer});for(var ze=function(l,S,I){return function(w){return new s(l,S,l).update(w)[I]()}},Ct=function(l,S,I){return function(w,F){return new s(l,S,F).update(w)[I]()}},Ve=function(l,S,I){return function(w,F,V,B){return o["cshake"+l].update(w,F,V,B)[I]()}},Lt=function(l,S,I){return function(w,F,V,B){return o["kmac"+l].update(w,F,V,B)[I]()}},qt=function(l,S,I,w){for(var F=0;F<H.length;++F){var V=H[F];l[V]=S(I,w,V)}return l},mt=function(l,S){var I=ze(l,S,"hex");return I.create=function(){return new s(l,S,l)},I.update=function(w){return I.create().update(w)},qt(I,ze,l,S)},Et=function(l,S){var I=Ct(l,S,"hex");return I.create=function(w){return new s(l,S,w)},I.update=function(w,F){return I.create(F).update(w)},qt(I,Ct,l,S)},ne=function(l,S){var I=z[l],w=Ve(l,S,"hex");return w.create=function(F,V,B){return!V&&!B?o["shake"+l].create(F):new s(l,S,F).bytepad([V,B],I)},w.update=function(F,V,B,D){return w.create(V,B,D).update(F)},qt(w,Ve,l,S)},Pt=function(l,S){var I=z[l],w=Lt(l,S,"hex");return w.create=function(F,V,B){return new _(l,S,V).bytepad(["KMAC",B],I).bytepad([F],I)},w.update=function(F,V,B,D){return w.create(F,B,D).update(V)},qt(w,Lt,l,S)},A=[{name:"keccak",padding:C,bits:k,createMethod:mt},{name:"sha3",padding:N,bits:k,createMethod:mt},{name:"shake",padding:$,bits:Q,createMethod:Et},{name:"cshake",padding:E,bits:Q,createMethod:ne},{name:"kmac",padding:E,bits:Q,createMethod:Pt}],o={},d=[],g=0;g<A.length;++g)for(var y=A[g],v=y.bits,b=0;b<v.length;++b){var M=y.name+"_"+v[b];if(d.push(M),o[M]=y.createMethod(v[b],y.padding),y.name!=="sha3"){var m=y.name+v[b];d.push(m),o[m]=o[M]}}function s(l,S,I){this.blocks=[],this.s=[],this.padding=S,this.outputBits=I,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(l<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=I>>5,this.extraBytes=(I&31)>>3;for(var w=0;w<50;++w)this.s[w]=0}s.prototype.update=function(l){if(this.finalized)throw new Error(t);var S,I=typeof l;if(I!=="string"){if(I==="object"){if(l===null)throw new Error(e);if(p&&l.constructor===ArrayBuffer)l=new Uint8Array(l);else if(!Array.isArray(l)&&(!p||!ArrayBuffer.isView(l)))throw new Error(e)}else throw new Error(e);S=!0}for(var w=this.blocks,F=this.byteCount,V=l.length,B=this.blockCount,D=0,ke=this.s,q,j;D<V;){if(this.reset)for(this.reset=!1,w[0]=this.block,q=1;q<B+1;++q)w[q]=0;if(S)for(q=this.start;D<V&&q<F;++D)w[q>>2]|=l[D]<<P[q++&3];else for(q=this.start;D<V&&q<F;++D)j=l.charCodeAt(D),j<128?w[q>>2]|=j<<P[q++&3]:j<2048?(w[q>>2]|=(192|j>>6)<<P[q++&3],w[q>>2]|=(128|j&63)<<P[q++&3]):j<55296||j>=57344?(w[q>>2]|=(224|j>>12)<<P[q++&3],w[q>>2]|=(128|j>>6&63)<<P[q++&3],w[q>>2]|=(128|j&63)<<P[q++&3]):(j=65536+((j&1023)<<10|l.charCodeAt(++D)&1023),w[q>>2]|=(240|j>>18)<<P[q++&3],w[q>>2]|=(128|j>>12&63)<<P[q++&3],w[q>>2]|=(128|j>>6&63)<<P[q++&3],w[q>>2]|=(128|j&63)<<P[q++&3]);if(this.lastByteIndex=q,q>=F){for(this.start=q-F,this.block=w[B],q=0;q<B;++q)ke[q]^=w[q];L(ke),this.reset=!0}else this.start=q}return this},s.prototype.encode=function(l,S){var I=l&255,w=1,F=[I];for(l=l>>8,I=l&255;I>0;)F.unshift(I),l=l>>8,I=l&255,++w;return S?F.push(w):F.unshift(w),this.update(F),F.length},s.prototype.encodeString=function(l){var S,I=typeof l;if(I!=="string"){if(I==="object"){if(l===null)throw new Error(e);if(p&&l.constructor===ArrayBuffer)l=new Uint8Array(l);else if(!Array.isArray(l)&&(!p||!ArrayBuffer.isView(l)))throw new Error(e)}else throw new Error(e);S=!0}var w=0,F=l.length;if(S)w=F;else for(var V=0;V<l.length;++V){var B=l.charCodeAt(V);B<128?w+=1:B<2048?w+=2:B<55296||B>=57344?w+=3:(B=65536+((B&1023)<<10|l.charCodeAt(++V)&1023),w+=4)}return w+=this.encode(w*8),this.update(l),w},s.prototype.bytepad=function(l,S){for(var I=this.encode(S),w=0;w<l.length;++w)I+=this.encodeString(l[w]);var F=S-I%S,V=[];return V.length=F,this.update(V),this},s.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var l=this.blocks,S=this.lastByteIndex,I=this.blockCount,w=this.s;if(l[S>>2]|=this.padding[S&3],this.lastByteIndex===this.byteCount)for(l[0]=l[I],S=1;S<I+1;++S)l[S]=0;for(l[I-1]|=2147483648,S=0;S<I;++S)w[S]^=l[S];L(w)}},s.prototype.toString=s.prototype.hex=function(){this.finalize();for(var l=this.blockCount,S=this.s,I=this.outputBlocks,w=this.extraBytes,F=0,V=0,B="",D;V<I;){for(F=0;F<l&&V<I;++F,++V)D=S[F],B+=c[D>>4&15]+c[D&15]+c[D>>12&15]+c[D>>8&15]+c[D>>20&15]+c[D>>16&15]+c[D>>28&15]+c[D>>24&15];V%l===0&&(L(S),F=0)}return w&&(D=S[F],B+=c[D>>4&15]+c[D&15],w>1&&(B+=c[D>>12&15]+c[D>>8&15]),w>2&&(B+=c[D>>20&15]+c[D>>16&15])),B},s.prototype.arrayBuffer=function(){this.finalize();var l=this.blockCount,S=this.s,I=this.outputBlocks,w=this.extraBytes,F=0,V=0,B=this.outputBits>>3,D;w?D=new ArrayBuffer(I+1<<2):D=new ArrayBuffer(B);for(var ke=new Uint32Array(D);V<I;){for(F=0;F<l&&V<I;++F,++V)ke[V]=S[F];V%l===0&&L(S)}return w&&(ke[F]=S[F],D=D.slice(0,B)),D},s.prototype.buffer=s.prototype.arrayBuffer,s.prototype.digest=s.prototype.array=function(){this.finalize();for(var l=this.blockCount,S=this.s,I=this.outputBlocks,w=this.extraBytes,F=0,V=0,B=[],D,ke;V<I;){for(F=0;F<l&&V<I;++F,++V)D=V<<2,ke=S[F],B[D]=ke&255,B[D+1]=ke>>8&255,B[D+2]=ke>>16&255,B[D+3]=ke>>24&255;V%l===0&&L(S)}return w&&(D=V<<2,ke=S[F],B[D]=ke&255,w>1&&(B[D+1]=ke>>8&255),w>2&&(B[D+2]=ke>>16&255)),B};function _(l,S,I){s.call(this,l,S,I)}_.prototype=new s,_.prototype.finalize=function(){return this.encode(this.outputBits,!0),s.prototype.finalize.call(this)};var L=function(l){var S,I,w,F,V,B,D,ke,q,j,xi,ue,oe,Fi,se,fe,Di,de,le,Bi,ce,he,Ri,pe,ge,Li,ye,me,qi,ve,_e,Ui,Ae,$e,Vi,be,Ee,ki,Me,Ne,Hi,Se,Ie,Gi,Ce,Pe,Zi,we,Te,ji,Oe,xe,Wi,Fe,De,zi,Be,Re,ci,hi,pi,gi,yi;for(w=0;w<48;w+=2)F=l[0]^l[10]^l[20]^l[30]^l[40],V=l[1]^l[11]^l[21]^l[31]^l[41],B=l[2]^l[12]^l[22]^l[32]^l[42],D=l[3]^l[13]^l[23]^l[33]^l[43],ke=l[4]^l[14]^l[24]^l[34]^l[44],q=l[5]^l[15]^l[25]^l[35]^l[45],j=l[6]^l[16]^l[26]^l[36]^l[46],xi=l[7]^l[17]^l[27]^l[37]^l[47],ue=l[8]^l[18]^l[28]^l[38]^l[48],oe=l[9]^l[19]^l[29]^l[39]^l[49],S=ue^(B<<1|D>>>31),I=oe^(D<<1|B>>>31),l[0]^=S,l[1]^=I,l[10]^=S,l[11]^=I,l[20]^=S,l[21]^=I,l[30]^=S,l[31]^=I,l[40]^=S,l[41]^=I,S=F^(ke<<1|q>>>31),I=V^(q<<1|ke>>>31),l[2]^=S,l[3]^=I,l[12]^=S,l[13]^=I,l[22]^=S,l[23]^=I,l[32]^=S,l[33]^=I,l[42]^=S,l[43]^=I,S=B^(j<<1|xi>>>31),I=D^(xi<<1|j>>>31),l[4]^=S,l[5]^=I,l[14]^=S,l[15]^=I,l[24]^=S,l[25]^=I,l[34]^=S,l[35]^=I,l[44]^=S,l[45]^=I,S=ke^(ue<<1|oe>>>31),I=q^(oe<<1|ue>>>31),l[6]^=S,l[7]^=I,l[16]^=S,l[17]^=I,l[26]^=S,l[27]^=I,l[36]^=S,l[37]^=I,l[46]^=S,l[47]^=I,S=j^(F<<1|V>>>31),I=xi^(V<<1|F>>>31),l[8]^=S,l[9]^=I,l[18]^=S,l[19]^=I,l[28]^=S,l[29]^=I,l[38]^=S,l[39]^=I,l[48]^=S,l[49]^=I,Fi=l[0],se=l[1],Pe=l[11]<<4|l[10]>>>28,Zi=l[10]<<4|l[11]>>>28,me=l[20]<<3|l[21]>>>29,qi=l[21]<<3|l[20]>>>29,hi=l[31]<<9|l[30]>>>23,pi=l[30]<<9|l[31]>>>23,Se=l[40]<<18|l[41]>>>14,Ie=l[41]<<18|l[40]>>>14,$e=l[2]<<1|l[3]>>>31,Vi=l[3]<<1|l[2]>>>31,fe=l[13]<<12|l[12]>>>20,Di=l[12]<<12|l[13]>>>20,we=l[22]<<10|l[23]>>>22,Te=l[23]<<10|l[22]>>>22,ve=l[33]<<13|l[32]>>>19,_e=l[32]<<13|l[33]>>>19,gi=l[42]<<2|l[43]>>>30,yi=l[43]<<2|l[42]>>>30,Fe=l[5]<<30|l[4]>>>2,De=l[4]<<30|l[5]>>>2,be=l[14]<<6|l[15]>>>26,Ee=l[15]<<6|l[14]>>>26,de=l[25]<<11|l[24]>>>21,le=l[24]<<11|l[25]>>>21,ji=l[34]<<15|l[35]>>>17,Oe=l[35]<<15|l[34]>>>17,Ui=l[45]<<29|l[44]>>>3,Ae=l[44]<<29|l[45]>>>3,pe=l[6]<<28|l[7]>>>4,ge=l[7]<<28|l[6]>>>4,zi=l[17]<<23|l[16]>>>9,Be=l[16]<<23|l[17]>>>9,ki=l[26]<<25|l[27]>>>7,Me=l[27]<<25|l[26]>>>7,Bi=l[36]<<21|l[37]>>>11,ce=l[37]<<21|l[36]>>>11,xe=l[47]<<24|l[46]>>>8,Wi=l[46]<<24|l[47]>>>8,Gi=l[8]<<27|l[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g]]=o[d[g]];f&&define(function(){return o})}})()});var Xi=h($a=>{"use strict";var Db=$a&&$a.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty($a,"__esModule",{value:!0});$a.keccak256=void 0;var Bb=Db(Cp()),Rb=Je();function Lb(e){return"0x"+Bb.default.keccak_256((0,Rb.arrayify)(e))}$a.keccak256=Lb});var Pp=h(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Ds.version=void 0;Ds.version="rlp/5.7.0"});var Dp=h(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});ba.decode=ba.encode=void 0;var ea=Je(),Mn=ht(),qb=Pp(),ln=new Mn.Logger(qb.version);function wp(e){for(var t=[];e;)t.unshift(e&255),e>>=8;return t}function Tp(e,t,r){for(var n=0,i=0;i<r;i++)n=n*256+e[t+i];return n}function xp(e){if(Array.isArray(e)){var t=[];if(e.forEach(function(a){t=t.concat(xp(a))}),t.length<=55)return t.unshift(192+t.length),t;var r=wp(t.length);return r.unshift(247+r.length),r.concat(t)}(0,ea.isBytesLike)(e)||ln.throwArgumentError("RLP object must be BytesLike","object",e);var n=Array.prototype.slice.call((0,ea.arrayify)(e));if(n.length===1&&n[0]<=127)return n;if(n.length<=55)return n.unshift(128+n.length),n;var i=wp(n.length);return i.unshift(183+i.length),i.concat(n)}function Ub(e){return(0,ea.hexlify)(xp(e))}ba.encode=Ub;function Op(e,t,r,n){for(var i=[];r<t+1+n;){var a=Fp(e,r);i.push(a.result),r+=a.consumed,r>t+1+n&&ln.throwError("child data too short",Mn.Logger.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:i}}function Fp(e,t){if(e.length===0&&ln.throwError("data too short",Mn.Logger.errors.BUFFER_OVERRUN,{}),e[t]>=248){var r=e[t]-247;t+1+r>e.length&&ln.throwError("data short segment too short",Mn.Logger.errors.BUFFER_OVERRUN,{});var n=Tp(e,t+1,r);return t+1+r+n>e.length&&ln.throwError("data long segment too short",Mn.Logger.errors.BUFFER_OVERRUN,{}),Op(e,t,t+1+r,r+n)}else if(e[t]>=192){var i=e[t]-192;return t+1+i>e.length&&ln.throwError("data array too short",Mn.Logger.errors.BUFFER_OVERRUN,{}),Op(e,t,t+1,i)}else if(e[t]>=184){var r=e[t]-183;t+1+r>e.length&&ln.throwError("data array too short",Mn.Logger.errors.BUFFER_OVERRUN,{});var a=Tp(e,t+1,r);t+1+r+a>e.length&&ln.throwError("data array too short",Mn.Logger.errors.BUFFER_OVERRUN,{});var u=(0,ea.hexlify)(e.slice(t+1+r,t+1+r+a));return{consumed:1+r+a,result:u}}else if(e[t]>=128){var f=e[t]-128;t+1+f>e.length&&ln.throwError("data too short",Mn.Logger.errors.BUFFER_OVERRUN,{});var u=(0,ea.hexlify)(e.slice(t+1,t+1+f));return{consumed:1+f,result:u}}return{consumed:1,result:(0,ea.hexlify)(e[t])}}function Vb(e){var t=(0,ea.arrayify)(e),r=Fp(t,0);return r.consumed!==t.length&&ln.throwArgumentError("invalid rlp data","data",e),r.result}ba.decode=Vb});var Bp=h(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});Bs.version=void 0;Bs.version="address/5.7.0"});var Rs=h(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.getCreate2Address=xt.getContractAddress=xt.getIcapAddress=xt.isAddress=xt.getAddress=void 0;var Nn=Je(),El=En(),Ml=Xi(),kb=Dp(),Hb=ht(),Gb=Bp(),vi=new Hb.Logger(Gb.version);function Rp(e){(0,Nn.isHexString)(e,20)||vi.throwArgumentError("invalid address","address",e),e=e.toLowerCase();for(var t=e.substring(2).split(""),r=new Uint8Array(40),n=0;n<40;n++)r[n]=t[n].charCodeAt(0);for(var i=(0,Nn.arrayify)((0,Ml.keccak256)(r)),n=0;n<40;n+=2)i[n>>1]>>4>=8&&(t[n]=t[n].toUpperCase()),(i[n>>1]&15)>=8&&(t[n+1]=t[n+1].toUpperCase());return"0x"+t.join("")}var Zb=9007199254740991;function jb(e){return Math.log10?Math.log10(e):Math.log(e)/Math.LN10}var Nl={};for(Vt=0;Vt<10;Vt++)Nl[String(Vt)]=String(Vt);var Vt;for(Vt=0;Vt<26;Vt++)Nl[String.fromCharCode(65+Vt)]=String(10+Vt);var Vt,Lp=Math.floor(jb(Zb));function qp(e){e=e.toUpperCase(),e=e.substring(4)+e.substring(0,2)+"00";for(var t=e.split("").map(function(i){return Nl[i]}).join("");t.length>=Lp;){var r=t.substring(0,Lp);t=parseInt(r,10)%97+t.substring(r.length)}for(var n=String(98-parseInt(t,10)%97);n.length<2;)n="0"+n;return n}function ta(e){var t=null;if(typeof e!="string"&&vi.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))e.substring(0,2)!=="0x"&&(e="0x"+e),t=Rp(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&vi.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==qp(e)&&vi.throwArgumentError("bad icap checksum","address",e),t=(0,El._base36To16)(e.substring(4));t.length<40;)t="0"+t;t=Rp("0x"+t)}else vi.throwArgumentError("invalid address","address",e);return t}xt.getAddress=ta;function Wb(e){try{return ta(e),!0}catch{}return!1}xt.isAddress=Wb;function zb(e){for(var t=(0,El._base16To36)(ta(e).substring(2)).toUpperCase();t.length<30;)t="0"+t;return"XE"+qp("XE00"+t)+t}xt.getIcapAddress=zb;function Yb(e){var t=null;try{t=ta(e.from)}catch{vi.throwArgumentError("missing from address","transaction",e)}var r=(0,Nn.stripZeros)((0,Nn.arrayify)(El.BigNumber.from(e.nonce).toHexString()));return ta((0,Nn.hexDataSlice)((0,Ml.keccak256)((0,kb.encode)([t,r])),12))}xt.getContractAddress=Yb;function Kb(e,t,r){return(0,Nn.hexDataLength)(t)!==32&&vi.throwArgumentError("salt must be 32 bytes","salt",t),(0,Nn.hexDataLength)(r)!==32&&vi.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",r),ta((0,Nn.hexDataSlice)((0,Ml.keccak256)((0,Nn.concat)(["0xff",ta(e),t,r])),12))}xt.getCreate2Address=Kb});var Vp=h(Ea=>{"use strict";var Jb=Ea&&Ea.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Ea,"__esModule",{value:!0});Ea.AddressCoder=void 0;var Up=Rs(),Qb=Je(),Xb=Ot(),e5=function(e){Jb(t,e);function t(r){return e.call(this,"address","address",r,!1)||this}return t.prototype.defaultValue=function(){return"0x0000000000000000000000000000000000000000"},t.prototype.encode=function(r,n){try{n=(0,Up.getAddress)(n)}catch(i){this._throwError(i.message,n)}return r.writeValue(n)},t.prototype.decode=function(r){return(0,Up.getAddress)((0,Qb.hexZeroPad)(r.readValue().toHexString(),20))},t}(Xb.Coder);Ea.AddressCoder=e5});var kp=h(Ma=>{"use strict";var t5=Ma&&Ma.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Ma,"__esModule",{value:!0});Ma.AnonymousCoder=void 0;var r5=Ot(),n5=function(e){t5(t,e);function t(r){var n=e.call(this,r.name,r.type,void 0,r.dynamic)||this;return n.coder=r,n}return t.prototype.defaultValue=function(){return this.coder.defaultValue()},t.prototype.encode=function(r,n){return this.coder.encode(r,n)},t.prototype.decode=function(r){return this.coder.decode(r)},t}(r5.Coder);Ma.AnonymousCoder=n5});var Il=h(cn=>{"use strict";var i5=cn&&cn.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(cn,"__esModule",{value:!0});cn.ArrayCoder=cn.unpack=cn.pack=void 0;var Sa=ht(),a5=_a(),Na=new Sa.Logger(a5.version),Sl=Ot(),u5=kp();function Hp(e,t,r){var n=null;if(Array.isArray(r))n=r;else if(r&&typeof r=="object"){var i={};n=t.map(function(c){var $=c.localName;return $||Na.throwError("cannot encode object for signature with missing names",Sa.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:c,value:r}),i[$]&&Na.throwError("cannot encode object for signature with duplicate names",Sa.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:c,value:r}),i[$]=!0,r[$]})}else Na.throwArgumentError("invalid tuple value","tuple",r);t.length!==n.length&&Na.throwArgumentError("types/value length mismatch","tuple",r);var a=new Sl.Writer(e.wordSize),u=new Sl.Writer(e.wordSize),f=[];t.forEach(function(c,$){var E=n[$];if(c.dynamic){var C=u.length;c.encode(u,E);var N=a.writeUpdatableValue();f.push(function(P){N(P+C)})}else c.encode(a,E)}),f.forEach(function(c){c(a.length)});var p=e.appendWriter(a);return p+=e.appendWriter(u),p}cn.pack=Hp;function Gp(e,t){var r=[],n=e.subReader(0);t.forEach(function(f){var p=null;if(f.dynamic){var c=e.readValue(),$=n.subReader(c.toNumber());try{p=f.decode($)}catch(E){if(E.code===Sa.Logger.errors.BUFFER_OVERRUN)throw E;p=E,p.baseType=f.name,p.name=f.localName,p.type=f.type}}else try{p=f.decode(e)}catch(E){if(E.code===Sa.Logger.errors.BUFFER_OVERRUN)throw E;p=E,p.baseType=f.name,p.name=f.localName,p.type=f.type}p!=null&&r.push(p)});var i=t.reduce(function(f,p){var c=p.localName;return c&&(f[c]||(f[c]=0),f[c]++),f},{});t.forEach(function(f,p){var c=f.localName;if(!(!c||i[c]!==1)&&(c==="length"&&(c="_length"),r[c]==null)){var $=r[p];$ instanceof Error?Object.defineProperty(r,c,{enumerable:!0,get:function(){throw $}}):r[c]=$}});for(var a=function(f){var p=r[f];p instanceof Error&&Object.defineProperty(r,f,{enumerable:!0,get:function(){throw p}})},u=0;u<r.length;u++)a(u);return Object.freeze(r)}cn.unpack=Gp;var o5=function(e){i5(t,e);function t(r,n,i){var a=this,u=r.type+"["+(n>=0?n:"")+"]",f=n===-1||r.dynamic;return a=e.call(this,"array",u,i,f)||this,a.coder=r,a.length=n,a}return t.prototype.defaultValue=function(){for(var r=this.coder.defaultValue(),n=[],i=0;i<this.length;i++)n.push(r);return n},t.prototype.encode=function(r,n){Array.isArray(n)||this._throwError("expected array value",n);var i=this.length;i===-1&&(i=n.length,r.writeValue(n.length)),Na.checkArgumentCount(n.length,i,"coder array"+(this.localName?" "+this.localName:""));for(var a=[],u=0;u<n.length;u++)a.push(this.coder);return Hp(r,a,n)},t.prototype.decode=function(r){var n=this.length;n===-1&&(n=r.readValue().toNumber(),n*32>r._data.length&&Na.throwError("insufficient data length",Sa.Logger.errors.BUFFER_OVERRUN,{length:r._data.length,count:n}));for(var i=[],a=0;a<n;a++)i.push(new u5.AnonymousCoder(this.coder));return r.coerce(this.name,Gp(r,i))},t}(Sl.Coder);cn.ArrayCoder=o5});var Zp=h(Ia=>{"use strict";var s5=Ia&&Ia.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Ia,"__esModule",{value:!0});Ia.BooleanCoder=void 0;var f5=Ot(),d5=function(e){s5(t,e);function t(r){return e.call(this,"bool","bool",r,!1)||this}return t.prototype.defaultValue=function(){return!1},t.prototype.encode=function(r,n){return r.writeValue(n?1:0)},t.prototype.decode=function(r){return r.coerce(this.type,!r.readValue().isZero())},t}(f5.Coder);Ia.BooleanCoder=d5});var Cl=h(_i=>{"use strict";var jp=_i&&_i.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(_i,"__esModule",{value:!0});_i.BytesCoder=_i.DynamicBytesCoder=void 0;var Wp=Je(),l5=Ot(),zp=function(e){jp(t,e);function t(r,n){return e.call(this,r,r,n,!0)||this}return t.prototype.defaultValue=function(){return"0x"},t.prototype.encode=function(r,n){n=(0,Wp.arrayify)(n);var i=r.writeValue(n.length);return i+=r.writeBytes(n),i},t.prototype.decode=function(r){return r.readBytes(r.readValue().toNumber(),!0)},t}(l5.Coder);_i.DynamicBytesCoder=zp;var c5=function(e){jp(t,e);function t(r){return e.call(this,"bytes",r)||this}return t.prototype.decode=function(r){return r.coerce(this.name,(0,Wp.hexlify)(e.prototype.decode.call(this,r)))},t}(zp);_i.BytesCoder=c5});var Kp=h(Ca=>{"use strict";var h5=Ca&&Ca.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Ca,"__esModule",{value:!0});Ca.FixedBytesCoder=void 0;var Yp=Je(),p5=Ot(),g5=function(e){h5(t,e);function t(r,n){var i=this,a="bytes"+String(r);return i=e.call(this,a,a,n,!1)||this,i.size=r,i}return t.prototype.defaultValue=function(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+this.size*2)},t.prototype.encode=function(r,n){var i=(0,Yp.arrayify)(n);return i.length!==this.size&&this._throwError("incorrect data length",n),r.writeBytes(i)},t.prototype.decode=function(r){return r.coerce(this.name,(0,Yp.hexlify)(r.readBytes(this.size)))},t}(p5.Coder);Ca.FixedBytesCoder=g5});var Jp=h(Pa=>{"use strict";var y5=Pa&&Pa.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Pa,"__esModule",{value:!0});Pa.NullCoder=void 0;var m5=Ot(),v5=function(e){y5(t,e);function t(r){return e.call(this,"null","",r,!1)||this}return t.prototype.defaultValue=function(){return null},t.prototype.encode=function(r,n){return n!=null&&this._throwError("not null",n),r.writeBytes([])},t.prototype.decode=function(r){return r.readBytes(0),r.coerce(this.name,null)},t}(m5.Coder);Pa.NullCoder=v5});var Qp=h(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.AddressZero=void 0;Ls.AddressZero="0x0000000000000000000000000000000000000000"});var Xp=h(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.MaxInt256=rt.MinInt256=rt.MaxUint256=rt.WeiPerEther=rt.Two=rt.One=rt.Zero=rt.NegativeOne=void 0;var Ai=En(),_5=Ai.BigNumber.from(-1);rt.NegativeOne=_5;var A5=Ai.BigNumber.from(0);rt.Zero=A5;var $5=Ai.BigNumber.from(1);rt.One=$5;var b5=Ai.BigNumber.from(2);rt.Two=b5;var E5=Ai.BigNumber.from("1000000000000000000");rt.WeiPerEther=E5;var M5=Ai.BigNumber.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");rt.MaxUint256=M5;var N5=Ai.BigNumber.from("-0x8000000000000000000000000000000000000000000000000000000000000000");rt.MinInt256=N5;var S5=Ai.BigNumber.from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");rt.MaxInt256=S5});var e2=h(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.HashZero=void 0;qs.HashZero="0x0000000000000000000000000000000000000000000000000000000000000000"});var t2=h(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.EtherSymbol=void 0;Us.EtherSymbol="\u039E"});var Pl=h(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.EtherSymbol=Le.HashZero=Le.MaxInt256=Le.MinInt256=Le.MaxUint256=Le.WeiPerEther=Le.Two=Le.One=Le.Zero=Le.NegativeOne=Le.AddressZero=void 0;var I5=Qp();Object.defineProperty(Le,"AddressZero",{enumerable:!0,get:function(){return I5.AddressZero}});var $i=Xp();Object.defineProperty(Le,"NegativeOne",{enumerable:!0,get:function(){return $i.NegativeOne}});Object.defineProperty(Le,"Zero",{enumerable:!0,get:function(){return $i.Zero}});Object.defineProperty(Le,"One",{enumerable:!0,get:function(){return $i.One}});Object.defineProperty(Le,"Two",{enumerable:!0,get:function(){return $i.Two}});Object.defineProperty(Le,"WeiPerEther",{enumerable:!0,get:function(){return $i.WeiPerEther}});Object.defineProperty(Le,"MaxUint256",{enumerable:!0,get:function(){return $i.MaxUint256}});Object.defineProperty(Le,"MinInt256",{enumerable:!0,get:function(){return $i.MinInt256}});Object.defineProperty(Le,"MaxInt256",{enumerable:!0,get:function(){return $i.MaxInt256}});var C5=e2();Object.defineProperty(Le,"HashZero",{enumerable:!0,get:function(){return C5.HashZero}});var P5=t2();Object.defineProperty(Le,"EtherSymbol",{enumerable:!0,get:function(){return P5.EtherSymbol}})});var r2=h(wa=>{"use strict";var w5=wa&&wa.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(wa,"__esModule",{value:!0});wa.NumberCoder=void 0;var T5=En(),Vs=Pl(),O5=Ot(),x5=function(e){w5(t,e);function t(r,n,i){var a=this,u=(n?"int":"uint")+r*8;return a=e.call(this,u,u,i,!1)||this,a.size=r,a.signed=n,a}return t.prototype.defaultValue=function(){return 0},t.prototype.encode=function(r,n){var i=T5.BigNumber.from(n),a=Vs.MaxUint256.mask(r.wordSize*8);if(this.signed){var u=a.mask(this.size*8-1);(i.gt(u)||i.lt(u.add(Vs.One).mul(Vs.NegativeOne)))&&this._throwError("value out-of-bounds",n)}else(i.lt(Vs.Zero)||i.gt(a.mask(this.size*8)))&&this._throwError("value out-of-bounds",n);return i=i.toTwos(this.size*8).mask(this.size*8),this.signed&&(i=i.fromTwos(this.size*8).toTwos(8*r.wordSize)),r.writeValue(i)},t.prototype.decode=function(r){var n=r.readValue().mask(this.size*8);return this.signed&&(n=n.fromTwos(this.size*8)),r.coerce(this.name,n)},t}(O5.Coder);wa.NumberCoder=x5});var n2=h(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.version=void 0;ks.version="strings/5.7.0"});var Gs=h(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.toUtf8CodePoints=Ye.toUtf8String=Ye._toUtf8String=Ye._toEscapedUtf8String=Ye.toUtf8Bytes=Ye.Utf8ErrorFuncs=Ye.Utf8ErrorReason=Ye.UnicodeNormalizationForm=void 0;var i2=Je(),F5=ht(),D5=n2(),a2=new F5.Logger(D5.version),Hs;(function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"})(Hs=Ye.UnicodeNormalizationForm||(Ye.UnicodeNormalizationForm={}));var Ft;(function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"})(Ft=Ye.Utf8ErrorReason||(Ye.Utf8ErrorReason={}));function B5(e,t,r,n,i){return a2.throwArgumentError("invalid codepoint at offset "+t+"; "+e,"bytes",r)}function u2(e,t,r,n,i){if(e===Ft.BAD_PREFIX||e===Ft.UNEXPECTED_CONTINUE){for(var a=0,u=t+1;u<r.length&&r[u]>>6===2;u++)a++;return a}return e===Ft.OVERRUN?r.length-t-1:0}function R5(e,t,r,n,i){return e===Ft.OVERLONG?(n.push(i),0):(n.push(65533),u2(e,t,r,n,i))}Ye.Utf8ErrorFuncs=Object.freeze({error:B5,ignore:u2,replace:R5});function Tl(e,t){t==null&&(t=Ye.Utf8ErrorFuncs.error),e=(0,i2.arrayify)(e);for(var r=[],n=0;n<e.length;){var i=e[n++];if(i>>7===0){r.push(i);continue}var a=null,u=null;if((i&224)===192)a=1,u=127;else if((i&240)===224)a=2,u=2047;else if((i&248)===240)a=3,u=65535;else{(i&192)===128?n+=t(Ft.UNEXPECTED_CONTINUE,n-1,e,r):n+=t(Ft.BAD_PREFIX,n-1,e,r);continue}if(n-1+a>=e.length){n+=t(Ft.OVERRUN,n-1,e,r);continue}for(var f=i&(1<<8-a-1)-1,p=0;p<a;p++){var c=e[n];if((c&192)!=128){n+=t(Ft.MISSING_CONTINUE,n,e,r),f=null;break}f=f<<6|c&63,n++}if(f!==null){if(f>1114111){n+=t(Ft.OUT_OF_RANGE,n-1-a,e,r,f);continue}if(f>=55296&&f<=57343){n+=t(Ft.UTF16_SURROGATE,n-1-a,e,r,f);continue}if(f<=u){n+=t(Ft.OVERLONG,n-1-a,e,r,f);continue}r.push(f)}}return r}function o2(e,t){t===void 0&&(t=Hs.current),t!=Hs.current&&(a2.checkNormalize(),e=e.normalize(t));for(var r=[],n=0;n<e.length;n++){var i=e.charCodeAt(n);if(i<128)r.push(i);else if(i<2048)r.push(i>>6|192),r.push(i&63|128);else if((i&64512)==55296){n++;var a=e.charCodeAt(n);if(n>=e.length||(a&64512)!==56320)throw new Error("invalid utf-8 string");var u=65536+((i&1023)<<10)+(a&1023);r.push(u>>18|240),r.push(u>>12&63|128),r.push(u>>6&63|128),r.push(u&63|128)}else r.push(i>>12|224),r.push(i>>6&63|128),r.push(i&63|128)}return(0,i2.arrayify)(r)}Ye.toUtf8Bytes=o2;function wl(e){var t="0000"+e.toString(16);return"\\u"+t.substring(t.length-4)}function L5(e,t){return'"'+Tl(e,t).map(function(r){if(r<256){switch(r){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(r>=32&&r<127)return String.fromCharCode(r)}return r<=65535?wl(r):(r-=65536,wl((r>>10&1023)+55296)+wl((r&1023)+56320))}).join("")+'"'}Ye._toEscapedUtf8String=L5;function s2(e){return e.map(function(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10&1023)+55296,(t&1023)+56320))}).join("")}Ye._toUtf8String=s2;function q5(e,t){return s2(Tl(e,t))}Ye.toUtf8String=q5;function U5(e,t){return t===void 0&&(t=Hs.current),Tl(o2(e,t))}Ye.toUtf8CodePoints=U5});var d2=h(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});Ta.parseBytes32String=Ta.formatBytes32String=void 0;var V5=Pl(),Ol=Je(),f2=Gs();function k5(e){var t=(0,f2.toUtf8Bytes)(e);if(t.length>31)throw new Error("bytes32 string must be less than 32 bytes");return(0,Ol.hexlify)((0,Ol.concat)([t,V5.HashZero]).slice(0,32))}Ta.formatBytes32String=k5;function H5(e){var t=(0,Ol.arrayify)(e);if(t.length!==32)throw new Error("invalid bytes32 - not 32 bytes long");if(t[31]!==0)throw new Error("invalid bytes32 string - no null terminator");for(var r=31;t[r-1]===0;)r--;return(0,f2.toUtf8String)(t.slice(0,r))}Ta.parseBytes32String=H5});var g2=h(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.nameprep=hn._nameprepTableC=hn._nameprepTableB2=hn._nameprepTableA1=void 0;var mu=Gs();function G5(e){if(e.length%4!==0)throw new Error("bad data");for(var t=[],r=0;r<e.length;r+=4)t.push(parseInt(e.substring(r,r+4),16));return t}function xl(e,t){t||(t=function(i){return[parseInt(i,16)]});var r=0,n={};return e.split(",").forEach(function(i){var a=i.split(":");r+=parseInt(a[0],16),n[r]=t(a[1])}),n}function l2(e){var t=0;return e.split(",").map(function(r){var n=r.split("-");n.length===1?n[1]="0":n[1]===""&&(n[1]="1");var i=t+parseInt(n[0],16);return t=parseInt(n[1],16),{l:i,h:t}})}function Fl(e,t){for(var r=0,n=0;n<t.length;n++){var i=t[n];if(r+=i.l,e>=r&&e<=r+i.h&&(e-r)%(i.d||1)===0){if(i.e&&i.e.indexOf(e-r)!==-1)continue;return i}}return null}var Z5=l2("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),j5="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map(function(e){return parseInt(e,16)}),W5=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],z5=xl("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),Y5=xl("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),K5=xl("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",G5),J5=l2("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");function Q5(e){return e.reduce(function(t,r){return r.forEach(function(n){t.push(n)}),t},[])}function c2(e){return!!Fl(e,Z5)}hn._nameprepTableA1=c2;function h2(e){var t=Fl(e,W5);if(t)return[e+t.s];var r=z5[e];if(r)return r;var n=Y5[e];if(n)return[e+n[0]];var i=K5[e];return i||null}hn._nameprepTableB2=h2;function p2(e){return!!Fl(e,J5)}hn._nameprepTableC=p2;function X5(e){if(e.match(/^[a-z0-9-]*$/i)&&e.length<=59)return e.toLowerCase();var t=(0,mu.toUtf8CodePoints)(e);t=Q5(t.map(function(n){if(j5.indexOf(n)>=0)return[];if(n>=65024&&n<=65039)return[];var i=h2(n);return i||[n]})),t=(0,mu.toUtf8CodePoints)((0,mu._toUtf8String)(t),mu.UnicodeNormalizationForm.NFKC),t.forEach(function(n){if(p2(n))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")}),t.forEach(function(n){if(c2(n))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")});var r=(0,mu._toUtf8String)(t);if(r.substring(0,1)==="-"||r.substring(2,4)==="--"||r.substring(r.length-1)==="-")throw new Error("invalid hyphen");return r}hn.nameprep=X5});var Oa=h(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.nameprep=je.parseBytes32String=je.formatBytes32String=je.UnicodeNormalizationForm=je.Utf8ErrorReason=je.Utf8ErrorFuncs=je.toUtf8String=je.toUtf8CodePoints=je.toUtf8Bytes=je._toEscapedUtf8String=void 0;var y2=d2();Object.defineProperty(je,"formatBytes32String",{enumerable:!0,get:function(){return y2.formatBytes32String}});Object.defineProperty(je,"parseBytes32String",{enumerable:!0,get:function(){return y2.parseBytes32String}});var e7=g2();Object.defineProperty(je,"nameprep",{enumerable:!0,get:function(){return e7.nameprep}});var ra=Gs();Object.defineProperty(je,"_toEscapedUtf8String",{enumerable:!0,get:function(){return ra._toEscapedUtf8String}});Object.defineProperty(je,"toUtf8Bytes",{enumerable:!0,get:function(){return ra.toUtf8Bytes}});Object.defineProperty(je,"toUtf8CodePoints",{enumerable:!0,get:function(){return ra.toUtf8CodePoints}});Object.defineProperty(je,"toUtf8String",{enumerable:!0,get:function(){return ra.toUtf8String}});Object.defineProperty(je,"UnicodeNormalizationForm",{enumerable:!0,get:function(){return ra.UnicodeNormalizationForm}});Object.defineProperty(je,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return ra.Utf8ErrorFuncs}});Object.defineProperty(je,"Utf8ErrorReason",{enumerable:!0,get:function(){return ra.Utf8ErrorReason}})});var v2=h(xa=>{"use strict";var t7=xa&&xa.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(xa,"__esModule",{value:!0});xa.StringCoder=void 0;var m2=Oa(),r7=Cl(),n7=function(e){t7(t,e);function t(r){return e.call(this,"string",r)||this}return t.prototype.defaultValue=function(){return""},t.prototype.encode=function(r,n){return e.prototype.encode.call(this,r,(0,m2.toUtf8Bytes)(n))},t.prototype.decode=function(r){return(0,m2.toUtf8String)(e.prototype.decode.call(this,r))},t}(r7.DynamicBytesCoder);xa.StringCoder=n7});var A2=h(Fa=>{"use strict";var i7=Fa&&Fa.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Fa,"__esModule",{value:!0});Fa.TupleCoder=void 0;var a7=Ot(),_2=Il(),u7=function(e){i7(t,e);function t(r,n){var i=this,a=!1,u=[];r.forEach(function(p){p.dynamic&&(a=!0),u.push(p.type)});var f="tuple("+u.join(",")+")";return i=e.call(this,"tuple",f,n,a)||this,i.coders=r,i}return t.prototype.defaultValue=function(){var r=[];this.coders.forEach(function(i){r.push(i.defaultValue())});var n=this.coders.reduce(function(i,a){var u=a.localName;return u&&(i[u]||(i[u]=0),i[u]++),i},{});return this.coders.forEach(function(i,a){var u=i.localName;!u||n[u]!==1||(u==="length"&&(u="_length"),r[u]==null&&(r[u]=r[a]))}),Object.freeze(r)},t.prototype.encode=function(r,n){return(0,_2.pack)(r,this.coders,n)},t.prototype.decode=function(r){return r.coerce(this.name,(0,_2.unpack)(r,this.coders))},t}(a7.Coder);Fa.TupleCoder=u7});var Bl=h(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});Da.defaultAbiCoder=Da.AbiCoder=void 0;var o7=Je(),s7=va(),b2=ht(),f7=_a(),Zs=new b2.Logger(f7.version),$2=Ot(),d7=Vp(),l7=Il(),c7=Zp(),h7=Cl(),p7=Kp(),g7=Jp(),y7=r2(),m7=v2(),js=A2(),Dl=xs(),v7=new RegExp(/^bytes([0-9]*)$/),_7=new RegExp(/^(u?int)([0-9]*)$/),E2=function(){function e(t){(0,s7.defineReadOnly)(this,"coerceFunc",t||null)}return e.prototype._getCoder=function(t){var r=this;switch(t.baseType){case"address":return new d7.AddressCoder(t.name);case"bool":return new c7.BooleanCoder(t.name);case"string":return new m7.StringCoder(t.name);case"bytes":return new h7.BytesCoder(t.name);case"array":return new l7.ArrayCoder(this._getCoder(t.arrayChildren),t.arrayLength,t.name);case"tuple":return new js.TupleCoder((t.components||[]).map(function(a){return r._getCoder(a)}),t.name);case"":return new g7.NullCoder(t.name)}var n=t.type.match(_7);if(n){var i=parseInt(n[2]||"256");return(i===0||i>256||i%8!==0)&&Zs.throwArgumentError("invalid "+n[1]+" bit length","param",t),new y7.NumberCoder(i/8,n[1]==="int",t.name)}if(n=t.type.match(v7),n){var i=parseInt(n[1]);return(i===0||i>32)&&Zs.throwArgumentError("invalid bytes length","param",t),new p7.FixedBytesCoder(i,t.name)}return Zs.throwArgumentError("invalid type","type",t.type)},e.prototype._getWordSize=function(){return 32},e.prototype._getReader=function(t,r){return new $2.Reader(t,this._getWordSize(),this.coerceFunc,r)},e.prototype._getWriter=function(){return new $2.Writer(this._getWordSize())},e.prototype.getDefaultValue=function(t){var r=this,n=t.map(function(a){return r._getCoder(Dl.ParamType.from(a))}),i=new js.TupleCoder(n,"_");return i.defaultValue()},e.prototype.encode=function(t,r){var n=this;t.length!==r.length&&Zs.throwError("types/values length mismatch",b2.Logger.errors.INVALID_ARGUMENT,{count:{types:t.length,values:r.length},value:{types:t,values:r}});var i=t.map(function(f){return n._getCoder(Dl.ParamType.from(f))}),a=new js.TupleCoder(i,"_"),u=this._getWriter();return a.encode(u,r),u.data},e.prototype.decode=function(t,r,n){var i=this,a=t.map(function(f){return i._getCoder(Dl.ParamType.from(f))}),u=new js.TupleCoder(a,"_");return u.decode(this._getReader((0,o7.arrayify)(r),n))},e}();Da.AbiCoder=E2;Da.defaultAbiCoder=new E2});var Rl=h(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.id=void 0;var A7=Xi(),$7=Oa();function b7(e){return(0,A7.keccak256)((0,$7.toUtf8Bytes)(e))}Ws.id=b7});var Ll=h(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});zs.version=void 0;zs.version="hash/5.7.0"});var N2=h(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});Ba.encode=Ba.decode=void 0;var M2=Je();function E7(e){return(0,M2.arrayify)(new Uint8Array(Buffer.from(e,"base64")))}Ba.decode=E7;function M7(e){return Buffer.from((0,M2.arrayify)(e)).toString("base64")}Ba.encode=M7});var I2=h(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});Ra.encode=Ra.decode=void 0;var S2=N2();Object.defineProperty(Ra,"decode",{enumerable:!0,get:function(){return S2.decode}});Object.defineProperty(Ra,"encode",{enumerable:!0,get:function(){return S2.encode}})});var Ul=h(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.read_emoji_trie=nt.read_zero_terminated_array=nt.read_mapped_map=nt.read_member_array=nt.signed=nt.read_compressed_payload=nt.read_payload=nt.decode_arithmetic=void 0;function P2(e,t){t==null&&(t=1);var r=[],n=r.forEach,i=function(a,u){n.call(a,function(f){u>0&&Array.isArray(f)?i(f,u-1):r.push(f)})};return i(e,t),r}function N7(e){for(var t={},r=0;r<e.length;r++){var n=e[r];t[n[0]]=n[1]}return t}function w2(e){var t=0;function r(){return e[t++]<<8|e[t++]}for(var n=r(),i=1,a=[0,1],u=1;u<n;u++)a.push(i+=r());var f=r(),p=t;t+=f;var c=0,$=0;function E(){return c==0&&($=$<<8|e[t++],c=8),$>>--c&1}for(var C=31,N=Math.pow(2,C),P=N>>>1,R=P>>1,k=N-1,Q=0,u=0;u<C;u++)Q=Q<<1|E();for(var H=[],z=0,ze=N;;){for(var Ct=Math.floor(((Q-z+1)*i-1)/ze),Ve=0,Lt=n;Lt-Ve>1;){var qt=Ve+Lt>>>1;Ct<a[qt]?Lt=qt:Ve=qt}if(Ve==0)break;H.push(Ve);for(var mt=z+Math.floor(ze*a[Ve]/i),Et=z+Math.floor(ze*a[Ve+1]/i)-1;((mt^Et)&P)==0;)Q=Q<<1&k|E(),mt=mt<<1&k,Et=Et<<1&k|1;for(;mt&~Et&R;)Q=Q&P|Q<<1&k>>>1|E(),mt=mt<<1^P,Et=(Et^P)<<1|P|1;z=mt,ze=1+Et-mt}var ne=n-4;return H.map(function(Pt){switch(Pt-ne){case 3:return ne+65792+(e[p++]<<16|e[p++]<<8|e[p++]);case 2:return ne+256+(e[p++]<<8|e[p++]);case 1:return ne+e[p++];default:return Pt-1}})}nt.decode_arithmetic=w2;function T2(e){var t=0;return function(){return e[t++]}}nt.read_payload=T2;function S7(e){return T2(w2(e))}nt.read_compressed_payload=S7;function O2(e){return e&1?~e>>1:e>>1}nt.signed=O2;function I7(e,t){for(var r=Array(e),n=0;n<e;n++)r[n]=1+t();return r}function C2(e,t){for(var r=Array(e),n=0,i=-1;n<e;n++)r[n]=i+=1+t();return r}function C7(e,t){for(var r=Array(e),n=0,i=0;n<e;n++)r[n]=i+=O2(t());return r}function ql(e,t){for(var r=C2(e(),e),n=e(),i=C2(n,e),a=I7(n,e),u=0;u<n;u++)for(var f=0;f<a[u];f++)r.push(i[u]+f);return t?r.map(function(p){return t[p]}):r}nt.read_member_array=ql;function P7(e){for(var t=[];;){var r=e();if(r==0)break;t.push(w7(r,e))}for(;;){var r=e()-1;if(r<0)break;t.push(T7(r,e))}return N7(P2(t))}nt.read_mapped_map=P7;function x2(e){for(var t=[];;){var r=e();if(r==0)break;t.push(r)}return t}nt.read_zero_terminated_array=x2;function F2(e,t,r){for(var n=Array(e).fill(void 0).map(function(){return[]}),i=0;i<t;i++)C7(e,r).forEach(function(a,u){return n[u].push(a)});return n}function w7(e,t){var r=1+t(),n=t(),i=x2(t),a=F2(i.length,1+e,t);return P2(a.map(function(u,f){var p=u[0],c=u.slice(1);return Array(i[f]).fill(void 0).map(function($,E){var C=E*n;return[p+E*r,c.map(function(N){return N+C})]})}))}function T7(e,t){var r=1+t(),n=F2(r,1+e,t);return n.map(function(i){return[i[0],i.slice(1)]})}function O7(e){var t=ql(e).sort(function(n,i){return n-i});return r();function r(){for(var n=[];;){var i=ql(e,t);if(i.length==0)break;n.push({set:new Set(i),node:r()})}n.sort(function($,E){return E.set.size-$.set.size});var a=e(),u=a%3;a=a/3|0;var f=!!(a&1);a>>=1;var p=a==1,c=a==2;return{branches:n,valid:u,fe0f:f,save:p,check:c}}}nt.read_emoji_trie=O7});var D2=h(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});Ys.getData=void 0;var x7=I2(),F7=Ul();function D7(){return(0,F7.read_compressed_payload)((0,x7.decode)("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/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(La=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});La.ens_normalize=La.ens_normalize_post_check=void 0;var B7=Oa(),R7=D2(),Ks=(0,R7.getData)(),Js=Ul(),L7=new Set((0,Js.read_member_array)(Ks)),q7=new Set((0,Js.read_member_array)(Ks)),U7=(0,Js.read_mapped_map)(Ks),V7=(0,Js.read_emoji_trie)(Ks),B2=45,R2=95;function L2(e){return(0,B7.toUtf8CodePoints)(e)}function k7(e){return e.filter(function(t){return t!=65039})}function Vl(e){for(var t=0,r=e.split(".");t<r.length;t++){var n=r[t],i=L2(n);try{for(var a=i.lastIndexOf(R2)-1;a>=0;a--)if(i[a]!==R2)throw new Error("underscore only allowed at start");if(i.length>=4&&i.every(function(u){return u<128})&&i[2]===B2&&i[3]===B2)throw new Error("invalid label extension")}catch(u){throw new Error('Invalid label "'+n+'": '+u.message)}}return e}La.ens_normalize_post_check=Vl;function H7(e){return Vl(G7(e,k7))}La.ens_normalize=H7;function G7(e,t){for(var r=L2(e).reverse(),n=[];r.length;){var i=j7(r);if(i){n.push.apply(n,t(i));continue}var a=r.pop();if(L7.has(a)){n.push(a);continue}if(!q7.has(a)){var u=U7[a];if(u){n.push.apply(n,u);continue}throw new Error("Disallowed codepoint: 0x"+a.toString(16).toUpperCase())}}return Vl(Z7(String.fromCodePoint.apply(String,n)))}function Z7(e){return e.normalize("NFC")}function j7(e,t){var r,n=V7,i,a,u=[],f=e.length;t&&(t.length=0);for(var p=function(){var $=e[--f];if(n=(r=n.branches.find(function(E){return E.set.has($)}))===null||r===void 0?void 0:r.node,!n)return"break";if(n.save)a=$;else if(n.check&&$===a)return"break";u.push($),n.fe0f&&(u.push(65039),f>0&&e[f-1]==65039&&f--),n.valid&&(i=u.slice(),n.valid==2&&i.splice(1,1),t&&t.push.apply(t,e.slice(f).reverse()),e.length=f)};f;){var c=p();if(c==="break")break}return i}});var kl=h(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.dnsEncode=pn.namehash=pn.isValidName=pn.ensNormalize=void 0;var Qs=Je(),k2=Oa(),U2=Xi(),W7=ht(),z7=Ll(),Y7=new W7.Logger(z7.version),K7=q2(),H2=new Uint8Array(32);H2.fill(0);function V2(e){if(e.length===0)throw new Error("invalid ENS name; empty component");return e}function Xs(e){var t=(0,k2.toUtf8Bytes)((0,K7.ens_normalize)(e)),r=[];if(e.length===0)return r;for(var n=0,i=0;i<t.length;i++){var a=t[i];a===46&&(r.push(V2(t.slice(n,i))),n=i+1)}if(n>=t.length)throw new Error("invalid ENS name; empty component");return r.push(V2(t.slice(n))),r}function J7(e){return Xs(e).map(function(t){return(0,k2.toUtf8String)(t)}).join(".")}pn.ensNormalize=J7;function Q7(e){try{return Xs(e).length!==0}catch{}return!1}pn.isValidName=Q7;function X7(e){typeof e!="string"&&Y7.throwArgumentError("invalid ENS name; not a string","name",e);for(var t=H2,r=Xs(e);r.length;)t=(0,U2.keccak256)((0,Qs.concat)([t,(0,U2.keccak256)(r.pop())]));return(0,Qs.hexlify)(t)}pn.namehash=X7;function eE(e){return(0,Qs.hexlify)((0,Qs.concat)(Xs(e).map(function(t){if(t.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");var r=new Uint8Array(t.length+1);return r.set(t,1),r[0]=r.length-1,r})))+"00"}pn.dnsEncode=eE});var G2=h(na=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});na.hashMessage=na.messagePrefix=void 0;var tE=Je(),rE=Xi(),Hl=Oa();na.messagePrefix=`Ethereum Signed Message:
2
2
  `;function nE(e){return typeof e=="string"&&(e=(0,Hl.toUtf8Bytes)(e)),(0,rE.keccak256)((0,tE.concat)([(0,Hl.toUtf8Bytes)(na.messagePrefix),(0,Hl.toUtf8Bytes)(String(e.length)),e]))}na.hashMessage=nE});var X2=h(bi=>{"use strict";var iE=bi&&bi.__awaiter||function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function f($){try{c(n.next($))}catch(E){u(E)}}function p($){try{c(n.throw($))}catch(E){u(E)}}function c($){$.done?a($.value):i($.value).then(f,p)}c((n=n.apply(e,t||[])).next())})},aE=bi&&bi.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,u;return u={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function f(c){return function($){return p([c,$])}}function p(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=c[0]&2?i.return:c[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;switch(i=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){r.label=c[1];break}if(c[0]===6&&r.label<a[1]){r.label=a[1],a=c;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(c);break}a[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch($){c=[6,$],i=0}finally{n=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}};Object.defineProperty(bi,"__esModule",{value:!0});bi.TypedDataEncoder=void 0;var z2=Rs(),aa=En(),ut=Je(),qa=Xi(),ia=va(),uE=ht(),oE=Ll(),He=new uE.Logger(oE.version),Y2=Rl(),K2=new Uint8Array(32);K2.fill(0);var sE=aa.BigNumber.from(-1),J2=aa.BigNumber.from(0),Q2=aa.BigNumber.from(1),fE=aa.BigNumber.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function dE(e){var t=(0,ut.arrayify)(e),r=t.length%32;return r?(0,ut.hexConcat)([t,K2.slice(r)]):(0,ut.hexlify)(t)}var lE=(0,ut.hexZeroPad)(Q2.toHexString(),32),cE=(0,ut.hexZeroPad)(J2.toHexString(),32),Z2={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},Gl=["name","version","chainId","verifyingContract","salt"];function j2(e){return function(t){return typeof t!="string"&&He.throwArgumentError("invalid domain value for "+JSON.stringify(e),"domain."+e,t),t}}var hE={name:j2("name"),version:j2("version"),chainId:function(e){try{return aa.BigNumber.from(e).toString()}catch{}return He.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",e)},verifyingContract:function(e){try{return(0,z2.getAddress)(e).toLowerCase()}catch{}return He.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){try{var t=(0,ut.arrayify)(e);if(t.length!==32)throw new Error("bad length");return(0,ut.hexlify)(t)}catch{}return He.throwArgumentError('invalid domain value "salt"',"domain.salt",e)}};function Zl(e){{var t=e.match(/^(u?)int(\d*)$/);if(t){var r=t[1]==="",n=parseInt(t[2]||"256");(n%8!==0||n>256||t[2]&&t[2]!==String(n))&&He.throwArgumentError("invalid numeric width","type",e);var i=fE.mask(r?n-1:n),a=r?i.add(Q2).mul(sE):J2;return function(f){var p=aa.BigNumber.from(f);return(p.lt(a)||p.gt(i))&&He.throwArgumentError("value out-of-bounds for "+e,"value",f),(0,ut.hexZeroPad)(p.toTwos(256).toHexString(),32)}}}{var t=e.match(/^bytes(\d+)$/);if(t){var u=parseInt(t[1]);return(u===0||u>32||t[1]!==String(u))&&He.throwArgumentError("invalid bytes width","type",e),function(p){var c=(0,ut.arrayify)(p);return c.length!==u&&He.throwArgumentError("invalid length for "+e,"value",p),dE(p)}}}switch(e){case"address":return function(f){return(0,ut.hexZeroPad)((0,z2.getAddress)(f),32)};case"bool":return function(f){return f?lE:cE};case"bytes":return function(f){return(0,qa.keccak256)(f)};case"string":return function(f){return(0,Y2.id)(f)}}return null}function W2(e,t){return e+"("+t.map(function(r){var n=r.name,i=r.type;return i+" "+n}).join(",")+")"}var pE=function(){function e(t){(0,ia.defineReadOnly)(this,"types",Object.freeze((0,ia.deepCopy)(t))),(0,ia.defineReadOnly)(this,"_encoderCache",{}),(0,ia.defineReadOnly)(this,"_types",{});var r={},n={},i={};Object.keys(t).forEach(function(E){r[E]={},n[E]=[],i[E]={}});var a=function(E){var C={};t[E].forEach(function(N){C[N.name]&&He.throwArgumentError("duplicate variable name "+JSON.stringify(N.name)+" in "+JSON.stringify(E),"types",t),C[N.name]=!0;var P=N.type.match(/^([^\x5b]*)(\x5b|$)/)[1];P===E&&He.throwArgumentError("circular type reference to "+JSON.stringify(P),"types",t);var R=Zl(P);R||(n[P]||He.throwArgumentError("unknown type "+JSON.stringify(P),"types",t),n[P].push(E),r[E][P]=!0)})};for(var u in t)a(u);var f=Object.keys(n).filter(function(E){return n[E].length===0});f.length===0?He.throwArgumentError("missing primary type","types",t):f.length>1&&He.throwArgumentError("ambiguous primary types or unused types: "+f.map(function(E){return JSON.stringify(E)}).join(", "),"types",t),(0,ia.defineReadOnly)(this,"primaryType",f[0]);function p(E,C){C[E]&&He.throwArgumentError("circular type reference to "+JSON.stringify(E),"types",t),C[E]=!0,Object.keys(r[E]).forEach(function(N){!n[N]||(p(N,C),Object.keys(C).forEach(function(P){i[P][N]=!0}))}),delete C[E]}p(this.primaryType,{});for(var c in i){var $=Object.keys(i[c]);$.sort(),this._types[c]=W2(c,t[c])+$.map(function(E){return W2(E,t[E])}).join("")}}return e.prototype.getEncoder=function(t){var r=this._encoderCache[t];return r||(r=this._encoderCache[t]=this._getEncoder(t)),r},e.prototype._getEncoder=function(t){var r=this;{var n=Zl(t);if(n)return n}var i=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(i){var a=i[1],u=this.getEncoder(a),f=parseInt(i[3]);return function($){f>=0&&$.length!==f&&He.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",$);var E=$.map(u);return r._types[a]&&(E=E.map(qa.keccak256)),(0,qa.keccak256)((0,ut.hexConcat)(E))}}var p=this.types[t];if(p){var c=(0,Y2.id)(this._types[t]);return function($){var E=p.map(function(C){var N=C.name,P=C.type,R=r.getEncoder(P)($[N]);return r._types[P]?(0,qa.keccak256)(R):R});return E.unshift(c),(0,ut.hexConcat)(E)}}return He.throwArgumentError("unknown type: "+t,"type",t)},e.prototype.encodeType=function(t){var r=this._types[t];return r||He.throwArgumentError("unknown type: "+JSON.stringify(t),"name",t),r},e.prototype.encodeData=function(t,r){return this.getEncoder(t)(r)},e.prototype.hashStruct=function(t,r){return(0,qa.keccak256)(this.encodeData(t,r))},e.prototype.encode=function(t){return this.encodeData(this.primaryType,t)},e.prototype.hash=function(t){return this.hashStruct(this.primaryType,t)},e.prototype._visit=function(t,r,n){var i=this;{var a=Zl(t);if(a)return n(t,r)}var u=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(u){var f=u[1],p=parseInt(u[3]);return p>=0&&r.length!==p&&He.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",r),r.map(function($){return i._visit(f,$,n)})}var c=this.types[t];return c?c.reduce(function($,E){var C=E.name,N=E.type;return $[C]=i._visit(N,r[C],n),$},{}):He.throwArgumentError("unknown type: "+t,"type",t)},e.prototype.visit=function(t,r){return this._visit(this.primaryType,t,r)},e.from=function(t){return new e(t)},e.getPrimaryType=function(t){return e.from(t).primaryType},e.hashStruct=function(t,r,n){return e.from(r).hashStruct(t,n)},e.hashDomain=function(t){var r=[];for(var n in t){var i=Z2[n];i||He.throwArgumentError("invalid typed-data domain key: "+JSON.stringify(n),"domain",t),r.push({name:n,type:i})}return r.sort(function(a,u){return Gl.indexOf(a.name)-Gl.indexOf(u.name)}),e.hashStruct("EIP712Domain",{EIP712Domain:r},t)},e.encode=function(t,r,n){return(0,ut.hexConcat)(["0x1901",e.hashDomain(t),e.from(r).hash(n)])},e.hash=function(t,r,n){return(0,qa.keccak256)(e.encode(t,r,n))},e.resolveNames=function(t,r,n,i){return iE(this,void 0,void 0,function(){var a,u,f,p,c,$,E,C;return aE(this,function(N){switch(N.label){case 0:t=(0,ia.shallowCopy)(t),a={},t.verifyingContract&&!(0,ut.isHexString)(t.verifyingContract,20)&&(a[t.verifyingContract]="0x"),u=e.from(r),u.visit(n,function(P,R){return P==="address"&&!(0,ut.isHexString)(R,20)&&(a[R]="0x"),R}),f=[];for(p in a)f.push(p);c=0,N.label=1;case 1:return c<f.length?($=f[c],E=a,C=$,[4,i($)]):[3,4];case 2:E[C]=N.sent(),N.label=3;case 3:return c++,[3,1];case 4:return t.verifyingContract&&a[t.verifyingContract]&&(t.verifyingContract=a[t.verifyingContract]),n=u.visit(n,function(P,R){return P==="address"&&a[R]?a[R]:R}),[2,{domain:t,value:n}]}})})},e.getPayload=function(t,r,n){e.hashDomain(t);var i={},a=[];Gl.forEach(function(p){var c=t[p];c!=null&&(i[p]=hE[p](c),a.push({name:p,type:Z2[p]}))});var u=e.from(r),f=(0,ia.shallowCopy)(r);return f.EIP712Domain?He.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",r):f.EIP712Domain=a,u.encode(n),{types:f,domain:i,primaryType:u.primaryType,message:u.visit(n,function(p,c){if(p.match(/^bytes(\d*)/))return(0,ut.hexlify)((0,ut.arrayify)(c));if(p.match(/^u?int/))return aa.BigNumber.from(c).toString();switch(p){case"address":return c.toLowerCase();case"bool":return!!c;case"string":return typeof c!="string"&&He.throwArgumentError("invalid string","value",c),c}return He.throwArgumentError("unsupported type","type",p)})}},e}();bi.TypedDataEncoder=pE});var Wl=h(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it._TypedDataEncoder=it.hashMessage=it.messagePrefix=it.ensNormalize=it.isValidName=it.namehash=it.dnsEncode=it.id=void 0;var gE=Rl();Object.defineProperty(it,"id",{enumerable:!0,get:function(){return gE.id}});var jl=kl();Object.defineProperty(it,"dnsEncode",{enumerable:!0,get:function(){return jl.dnsEncode}});Object.defineProperty(it,"isValidName",{enumerable:!0,get:function(){return jl.isValidName}});Object.defineProperty(it,"namehash",{enumerable:!0,get:function(){return jl.namehash}});var eg=G2();Object.defineProperty(it,"hashMessage",{enumerable:!0,get:function(){return eg.hashMessage}});Object.defineProperty(it,"messagePrefix",{enumerable:!0,get:function(){return eg.messagePrefix}});var yE=kl();Object.defineProperty(it,"ensNormalize",{enumerable:!0,get:function(){return yE.ensNormalize}});var mE=X2();Object.defineProperty(it,"_TypedDataEncoder",{enumerable:!0,get:function(){return mE.TypedDataEncoder}})});var og=h(lt=>{"use strict";var rf=lt&&lt.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(lt,"__esModule",{value:!0});lt.Interface=lt.Indexed=lt.ErrorDescription=lt.TransactionDescription=lt.LogDescription=lt.checkResultErrors=void 0;var vE=Rs(),tg=En(),qe=Je(),ef=Wl(),rg=Xi(),ot=va(),_E=Bl(),AE=Ot();Object.defineProperty(lt,"checkResultErrors",{enumerable:!0,get:function(){return AE.checkResultErrors}});var Sn=xs(),tf=ht(),$E=_a(),Ge=new tf.Logger($E.version),ig=function(e){rf(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(ot.Description);lt.LogDescription=ig;var ag=function(e){rf(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(ot.Description);lt.TransactionDescription=ag;var ug=function(e){rf(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(ot.Description);lt.ErrorDescription=ug;var zl=function(e){rf(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.isIndexed=function(r){return!!(r&&r._isIndexed)},t}(ot.Description);lt.Indexed=zl;var bE={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function ng(e,t){var r=new Error("deferred error during ABI decoding triggered accessing "+e);return r.error=t,r}var EE=function(){function e(t){var r=this.constructor,n=this,i=[];typeof t=="string"?i=JSON.parse(t):i=t,(0,ot.defineReadOnly)(this,"fragments",i.map(function(a){return Sn.Fragment.from(a)}).filter(function(a){return a!=null})),(0,ot.defineReadOnly)(this,"_abiCoder",(0,ot.getStatic)(r,"getAbiCoder")()),(0,ot.defineReadOnly)(this,"functions",{}),(0,ot.defineReadOnly)(this,"errors",{}),(0,ot.defineReadOnly)(this,"events",{}),(0,ot.defineReadOnly)(this,"structs",{}),this.fragments.forEach(function(a){var u=null;switch(a.type){case"constructor":if(n.deploy){Ge.warn("duplicate definition - constructor");return}(0,ot.defineReadOnly)(n,"deploy",a);return;case"function":u=n.functions;break;case"event":u=n.events;break;case"error":u=n.errors;break;default:return}var f=a.format();if(u[f]){Ge.warn("duplicate definition - "+f);return}u[f]=a}),this.deploy||(0,ot.defineReadOnly)(this,"deploy",Sn.ConstructorFragment.from({payable:!1,type:"constructor"})),(0,ot.defineReadOnly)(this,"_isInterface",!0)}return e.prototype.format=function(t){t||(t=Sn.FormatTypes.full),t===Sn.FormatTypes.sighash&&Ge.throwArgumentError("interface does not support formatting sighash","format",t);var r=this.fragments.map(function(n){return n.format(t)});return t===Sn.FormatTypes.json?JSON.stringify(r.map(function(n){return JSON.parse(n)})):r},e.getAbiCoder=function(){return _E.defaultAbiCoder},e.getAddress=function(t){return(0,vE.getAddress)(t)},e.getSighash=function(t){return(0,qe.hexDataSlice)((0,ef.id)(t.format()),0,4)},e.getEventTopic=function(t){return(0,ef.id)(t.format())},e.prototype.getFunction=function(t){if((0,qe.isHexString)(t)){for(var r in this.functions)if(t===this.getSighash(r))return this.functions[r];Ge.throwArgumentError("no matching function","sighash",t)}if(t.indexOf("(")===-1){var n=t.trim(),i=Object.keys(this.functions).filter(function(u){return u.split("(")[0]===n});return i.length===0?Ge.throwArgumentError("no matching function","name",n):i.length>1&&Ge.throwArgumentError("multiple matching functions","name",n),this.functions[i[0]]}var a=this.functions[Sn.FunctionFragment.fromString(t).format()];return a||Ge.throwArgumentError("no matching function","signature",t),a},e.prototype.getEvent=function(t){if((0,qe.isHexString)(t)){var r=t.toLowerCase();for(var n in this.events)if(r===this.getEventTopic(n))return this.events[n];Ge.throwArgumentError("no matching event","topichash",r)}if(t.indexOf("(")===-1){var i=t.trim(),a=Object.keys(this.events).filter(function(f){return f.split("(")[0]===i});return a.length===0?Ge.throwArgumentError("no matching event","name",i):a.length>1&&Ge.throwArgumentError("multiple matching events","name",i),this.events[a[0]]}var u=this.events[Sn.EventFragment.fromString(t).format()];return u||Ge.throwArgumentError("no matching event","signature",t),u},e.prototype.getError=function(t){if((0,qe.isHexString)(t)){var r=(0,ot.getStatic)(this.constructor,"getSighash");for(var n in this.errors){var i=this.errors[n];if(t===r(i))return this.errors[n]}Ge.throwArgumentError("no matching error","sighash",t)}if(t.indexOf("(")===-1){var a=t.trim(),u=Object.keys(this.errors).filter(function(p){return p.split("(")[0]===a});return u.length===0?Ge.throwArgumentError("no matching error","name",a):u.length>1&&Ge.throwArgumentError("multiple matching errors","name",a),this.errors[u[0]]}var f=this.errors[Sn.FunctionFragment.fromString(t).format()];return f||Ge.throwArgumentError("no matching error","signature",t),f},e.prototype.getSighash=function(t){if(typeof t=="string")try{t=this.getFunction(t)}catch(r){try{t=this.getError(t)}catch{throw r}}return(0,ot.getStatic)(this.constructor,"getSighash")(t)},e.prototype.getEventTopic=function(t){return typeof t=="string"&&(t=this.getEvent(t)),(0,ot.getStatic)(this.constructor,"getEventTopic")(t)},e.prototype._decodeParams=function(t,r){return this._abiCoder.decode(t,r)},e.prototype._encodeParams=function(t,r){return this._abiCoder.encode(t,r)},e.prototype.encodeDeploy=function(t){return this._encodeParams(this.deploy.inputs,t||[])},e.prototype.decodeErrorResult=function(t,r){typeof t=="string"&&(t=this.getError(t));var n=(0,qe.arrayify)(r);return(0,qe.hexlify)(n.slice(0,4))!==this.getSighash(t)&&Ge.throwArgumentError("data signature does not match error "+t.name+".","data",(0,qe.hexlify)(n)),this._decodeParams(t.inputs,n.slice(4))},e.prototype.encodeErrorResult=function(t,r){return typeof t=="string"&&(t=this.getError(t)),(0,qe.hexlify)((0,qe.concat)([this.getSighash(t),this._encodeParams(t.inputs,r||[])]))},e.prototype.decodeFunctionData=function(t,r){typeof t=="string"&&(t=this.getFunction(t));var n=(0,qe.arrayify)(r);return(0,qe.hexlify)(n.slice(0,4))!==this.getSighash(t)&&Ge.throwArgumentError("data signature does not match function "+t.name+".","data",(0,qe.hexlify)(n)),this._decodeParams(t.inputs,n.slice(4))},e.prototype.encodeFunctionData=function(t,r){return typeof t=="string"&&(t=this.getFunction(t)),(0,qe.hexlify)((0,qe.concat)([this.getSighash(t),this._encodeParams(t.inputs,r||[])]))},e.prototype.decodeFunctionResult=function(t,r){typeof t=="string"&&(t=this.getFunction(t));var n=(0,qe.arrayify)(r),i=null,a="",u=null,f=null,p=null;switch(n.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(t.outputs,n)}catch{}break;case 4:{var c=(0,qe.hexlify)(n.slice(0,4)),$=bE[c];if($)u=this._abiCoder.decode($.inputs,n.slice(4)),f=$.name,p=$.signature,$.reason&&(i=u[0]),f==="Error"?a="; VM Exception while processing transaction: reverted with reason string "+JSON.stringify(u[0]):f==="Panic"&&(a="; VM Exception while processing transaction: reverted with panic code "+u[0]);else try{var E=this.getError(c);u=this._abiCoder.decode(E.inputs,n.slice(4)),f=E.name,p=E.format()}catch{}break}}return Ge.throwError("call revert exception"+a,tf.Logger.errors.CALL_EXCEPTION,{method:t.format(),data:(0,qe.hexlify)(r),errorArgs:u,errorName:f,errorSignature:p,reason:i})},e.prototype.encodeFunctionResult=function(t,r){return typeof t=="string"&&(t=this.getFunction(t)),(0,qe.hexlify)(this._abiCoder.encode(t.outputs,r||[]))},e.prototype.encodeFilterTopics=function(t,r){var n=this;typeof t=="string"&&(t=this.getEvent(t)),r.length>t.inputs.length&&Ge.throwError("too many arguments for "+t.format(),tf.Logger.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:r});var i=[];t.anonymous||i.push(this.getEventTopic(t));var a=function(u,f){return u.type==="string"?(0,ef.id)(f):u.type==="bytes"?(0,rg.keccak256)((0,qe.hexlify)(f)):(u.type==="bool"&&typeof f=="boolean"&&(f=f?"0x01":"0x00"),u.type.match(/^u?int/)&&(f=tg.BigNumber.from(f).toHexString()),u.type==="address"&&n._abiCoder.encode(["address"],[f]),(0,qe.hexZeroPad)((0,qe.hexlify)(f),32))};for(r.forEach(function(u,f){var p=t.inputs[f];if(!p.indexed){u!=null&&Ge.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+p.name,u);return}u==null?i.push(null):p.baseType==="array"||p.baseType==="tuple"?Ge.throwArgumentError("filtering with tuples or arrays not supported","contract."+p.name,u):Array.isArray(u)?i.push(u.map(function(c){return a(p,c)})):i.push(a(p,u))});i.length&&i[i.length-1]===null;)i.pop();return i},e.prototype.encodeEventLog=function(t,r){var n=this;typeof t=="string"&&(t=this.getEvent(t));var i=[],a=[],u=[];return t.anonymous||i.push(this.getEventTopic(t)),r.length!==t.inputs.length&&Ge.throwArgumentError("event arguments/values mismatch","values",r),t.inputs.forEach(function(f,p){var c=r[p];if(f.indexed)if(f.type==="string")i.push((0,ef.id)(c));else if(f.type==="bytes")i.push((0,rg.keccak256)(c));else{if(f.baseType==="tuple"||f.baseType==="array")throw new Error("not implemented");i.push(n._abiCoder.encode([f.type],[c]))}else a.push(f),u.push(c)}),{data:this._abiCoder.encode(a,u),topics:i}},e.prototype.decodeEventLog=function(t,r,n){if(typeof t=="string"&&(t=this.getEvent(t)),n!=null&&!t.anonymous){var i=this.getEventTopic(t);(!(0,qe.isHexString)(n[0],32)||n[0].toLowerCase()!==i)&&Ge.throwError("fragment/topic mismatch",tf.Logger.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:i,value:n[0]}),n=n.slice(1)}var a=[],u=[],f=[];t.inputs.forEach(function(R,k){R.indexed?R.type==="string"||R.type==="bytes"||R.baseType==="tuple"||R.baseType==="array"?(a.push(Sn.ParamType.fromObject({type:"bytes32",name:R.name})),f.push(!0)):(a.push(R),f.push(!1)):(u.push(R),f.push(!1))});var p=n!=null?this._abiCoder.decode(a,(0,qe.concat)(n)):null,c=this._abiCoder.decode(u,r,!0),$=[],E=0,C=0;t.inputs.forEach(function(R,k){if(R.indexed)if(p==null)$[k]=new zl({_isIndexed:!0,hash:null});else if(f[k])$[k]=new zl({_isIndexed:!0,hash:p[C++]});else try{$[k]=p[C++]}catch(H){$[k]=H}else try{$[k]=c[E++]}catch(H){$[k]=H}if(R.name&&$[R.name]==null){var Q=$[k];Q instanceof Error?Object.defineProperty($,R.name,{enumerable:!0,get:function(){throw ng("property "+JSON.stringify(R.name),Q)}}):$[R.name]=Q}});for(var N=function(R){var k=$[R];k instanceof Error&&Object.defineProperty($,R,{enumerable:!0,get:function(){throw ng("index "+R,k)}})},P=0;P<$.length;P++)N(P);return Object.freeze($)},e.prototype.parseTransaction=function(t){var r=this.getFunction(t.data.substring(0,10).toLowerCase());return r?new ag({args:this._abiCoder.decode(r.inputs,"0x"+t.data.substring(10)),functionFragment:r,name:r.name,signature:r.format(),sighash:this.getSighash(r),value:tg.BigNumber.from(t.value||"0")}):null},e.prototype.parseLog=function(t){var r=this.getEvent(t.topics[0]);return!r||r.anonymous?null:new ig({eventFragment:r,name:r.name,signature:r.format(),topic:this.getEventTopic(r),args:this.decodeEventLog(r,t.data,t.topics)})},e.prototype.parseError=function(t){var r=(0,qe.hexlify)(t),n=this.getError(r.substring(0,10).toLowerCase());return n?new ug({args:this._abiCoder.decode(n.inputs,"0x"+r.substring(10)),errorFragment:n,name:n.name,signature:n.format(),sighash:this.getSighash(n)}):null},e.isInterface=function(t){return!!(t&&t._isInterface)},e}();lt.Interface=EE});var Yl=h(ee=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0});ee.TransactionDescription=ee.LogDescription=ee.checkResultErrors=ee.Indexed=ee.Interface=ee.defaultAbiCoder=ee.AbiCoder=ee.FormatTypes=ee.ParamType=ee.FunctionFragment=ee.Fragment=ee.EventFragment=ee.ErrorFragment=ee.ConstructorFragment=void 0;var ua=xs();Object.defineProperty(ee,"ConstructorFragment",{enumerable:!0,get:function(){return ua.ConstructorFragment}});Object.defineProperty(ee,"ErrorFragment",{enumerable:!0,get:function(){return ua.ErrorFragment}});Object.defineProperty(ee,"EventFragment",{enumerable:!0,get:function(){return ua.EventFragment}});Object.defineProperty(ee,"FormatTypes",{enumerable:!0,get:function(){return ua.FormatTypes}});Object.defineProperty(ee,"Fragment",{enumerable:!0,get:function(){return ua.Fragment}});Object.defineProperty(ee,"FunctionFragment",{enumerable:!0,get:function(){return ua.FunctionFragment}});Object.defineProperty(ee,"ParamType",{enumerable:!0,get:function(){return ua.ParamType}});var sg=Bl();Object.defineProperty(ee,"AbiCoder",{enumerable:!0,get:function(){return sg.AbiCoder}});Object.defineProperty(ee,"defaultAbiCoder",{enumerable:!0,get:function(){return sg.defaultAbiCoder}});var vu=og();Object.defineProperty(ee,"checkResultErrors",{enumerable:!0,get:function(){return vu.checkResultErrors}});Object.defineProperty(ee,"Indexed",{enumerable:!0,get:function(){return vu.Indexed}});Object.defineProperty(ee,"Interface",{enumerable:!0,get:function(){return vu.Interface}});Object.defineProperty(ee,"LogDescription",{enumerable:!0,get:function(){return vu.LogDescription}});Object.defineProperty(ee,"TransactionDescription",{enumerable:!0,get:function(){return vu.TransactionDescription}})});var dg=h(fg=>{"use strict";Object.defineProperty(fg,"__esModule",{value:!0})});var lg=h(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.SubstrateHandlerKind=Ei.SubstrateDatasourceKind=void 0;var ME;(function(e){e.Runtime="substrate/Runtime"})(ME=Ei.SubstrateDatasourceKind||(Ei.SubstrateDatasourceKind={}));var NE;(function(e){e.Block="substrate/BlockHandler",e.Call="substrate/CallHandler",e.Event="substrate/EventHandler"})(NE=Ei.SubstrateHandlerKind||(Ei.SubstrateHandlerKind={}))});var hg=h(Mi=>{"use strict";var SE=Mi&&Mi.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),cg=Mi&&Mi.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&SE(t,e,r)};Object.defineProperty(Mi,"__esModule",{value:!0});cg(dg(),Mi);cg(lg(),Mi)});var pg=h(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});_u.TransformationType=void 0;var IE;(function(e){e[e.PLAIN_TO_CLASS=0]="PLAIN_TO_CLASS",e[e.CLASS_TO_PLAIN=1]="CLASS_TO_PLAIN",e[e.CLASS_TO_CLASS=2]="CLASS_TO_CLASS"})(IE=_u.TransformationType||(_u.TransformationType={}))});var Au=h(oa=>{"use strict";var CE=oa&&oa.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),PE=oa&&oa.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&CE(t,e,r)};Object.defineProperty(oa,"__esModule",{value:!0});PE(pg(),oa)});var gg=h(nf=>{"use strict";Object.defineProperty(nf,"__esModule",{value:!0});nf.MetadataStorage=void 0;var In=Au(),Kl=class{constructor(){this._typeMetadatas=new Map,this._transformMetadatas=new Map,this._exposeMetadatas=new Map,this._excludeMetadatas=new Map,this._ancestorsMap=new Map}addTypeMetadata(t){this._typeMetadatas.has(t.target)||this._typeMetadatas.set(t.target,new Map),this._typeMetadatas.get(t.target).set(t.propertyName,t)}addTransformMetadata(t){this._transformMetadatas.has(t.target)||this._transformMetadatas.set(t.target,new Map),this._transformMetadatas.get(t.target).has(t.propertyName)||this._transformMetadatas.get(t.target).set(t.propertyName,[]),this._transformMetadatas.get(t.target).get(t.propertyName).push(t)}addExposeMetadata(t){this._exposeMetadatas.has(t.target)||this._exposeMetadatas.set(t.target,new Map),this._exposeMetadatas.get(t.target).set(t.propertyName,t)}addExcludeMetadata(t){this._excludeMetadatas.has(t.target)||this._excludeMetadatas.set(t.target,new Map),this._excludeMetadatas.get(t.target).set(t.propertyName,t)}findTransformMetadatas(t,r,n){return this.findMetadatas(this._transformMetadatas,t,r).filter(i=>!i.options||i.options.toClassOnly===!0&&i.options.toPlainOnly===!0?!0:i.options.toClassOnly===!0?n===In.TransformationType.CLASS_TO_CLASS||n===In.TransformationType.PLAIN_TO_CLASS:i.options.toPlainOnly===!0?n===In.TransformationType.CLASS_TO_PLAIN:!0)}findExcludeMetadata(t,r){return this.findMetadata(this._excludeMetadatas,t,r)}findExposeMetadata(t,r){return this.findMetadata(this._exposeMetadatas,t,r)}findExposeMetadataByCustomName(t,r){return this.getExposedMetadatas(t).find(n=>n.options&&n.options.name===r)}findTypeMetadata(t,r){return this.findMetadata(this._typeMetadatas,t,r)}getStrategy(t){let r=this._excludeMetadatas.get(t),n=r&&r.get(void 0),i=this._exposeMetadatas.get(t),a=i&&i.get(void 0);return n&&a||!n&&!a?"none":n?"excludeAll":"exposeAll"}getExposedMetadatas(t){return this.getMetadata(this._exposeMetadatas,t)}getExcludedMetadatas(t){return this.getMetadata(this._excludeMetadatas,t)}getExposedProperties(t,r){return this.getExposedMetadatas(t).filter(n=>!n.options||n.options.toClassOnly===!0&&n.options.toPlainOnly===!0?!0:n.options.toClassOnly===!0?r===In.TransformationType.CLASS_TO_CLASS||r===In.TransformationType.PLAIN_TO_CLASS:n.options.toPlainOnly===!0?r===In.TransformationType.CLASS_TO_PLAIN:!0).map(n=>n.propertyName)}getExcludedProperties(t,r){return this.getExcludedMetadatas(t).filter(n=>!n.options||n.options.toClassOnly===!0&&n.options.toPlainOnly===!0?!0:n.options.toClassOnly===!0?r===In.TransformationType.CLASS_TO_CLASS||r===In.TransformationType.PLAIN_TO_CLASS:n.options.toPlainOnly===!0?r===In.TransformationType.CLASS_TO_PLAIN:!0).map(n=>n.propertyName)}clear(){this._typeMetadatas.clear(),this._exposeMetadatas.clear(),this._excludeMetadatas.clear(),this._ancestorsMap.clear()}getMetadata(t,r){let n=t.get(r),i;n&&(i=Array.from(n.values()).filter(u=>u.propertyName!==void 0));let a=[];for(let u of this.getAncestors(r)){let f=t.get(u);if(f){let p=Array.from(f.values()).filter(c=>c.propertyName!==void 0);a.push(...p)}}return a.concat(i||[])}findMetadata(t,r,n){let i=t.get(r);if(i){let a=i.get(n);if(a)return a}for(let a of this.getAncestors(r)){let u=t.get(a);if(u){let f=u.get(n);if(f)return f}}}findMetadatas(t,r,n){let i=t.get(r),a;i&&(a=i.get(n));let u=[];for(let f of this.getAncestors(r)){let p=t.get(f);p&&p.has(n)&&u.push(...p.get(n))}return u.slice().reverse().concat((a||[]).slice().reverse())}getAncestors(t){if(!t)return[];if(!this._ancestorsMap.has(t)){let r=[];for(let n=Object.getPrototypeOf(t.prototype.constructor);typeof n.prototype<"u";n=Object.getPrototypeOf(n.prototype.constructor))r.push(n);this._ancestorsMap.set(t,r)}return this._ancestorsMap.get(t)}};nf.MetadataStorage=Kl});var Ua=h(af=>{"use strict";Object.defineProperty(af,"__esModule",{value:!0});af.defaultMetadataStorage=void 0;var wE=gg();af.defaultMetadataStorage=new wE.MetadataStorage});var yg=h(uf=>{"use strict";Object.defineProperty(uf,"__esModule",{value:!0});uf.getGlobal=void 0;function TE(){if(typeof globalThis<"u")return globalThis;if(typeof global<"u")return global;if(typeof window<"u")return window;if(typeof self<"u")return self}uf.getGlobal=TE});var mg=h(of=>{"use strict";Object.defineProperty(of,"__esModule",{value:!0});of.isPromise=void 0;function OE(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}of.isPromise=OE});var _g=h(Ni=>{"use strict";var xE=Ni&&Ni.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),vg=Ni&&Ni.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&xE(t,e,r)};Object.defineProperty(Ni,"__esModule",{value:!0});vg(yg(),Ni);vg(mg(),Ni)});var $g=h(sf=>{"use strict";Object.defineProperty(sf,"__esModule",{value:!0});sf.TransformOperationExecutor=void 0;var _t=Ua(),Ke=Au(),Ag=_g();function FE(e){let t=new e;return!(t instanceof Set)&&!("push"in t)?[]:t}var Jl=class{constructor(t,r){this.transformationType=t,this.options=r,this.recursionStack=new Set}transform(t,r,n,i,a,u=0){if(Array.isArray(r)||r instanceof Set){let f=i&&this.transformationType===Ke.TransformationType.PLAIN_TO_CLASS?FE(i):[];return r.forEach((p,c)=>{let $=t?t[c]:void 0;if(!this.options.enableCircularCheck||!this.isCircular(p)){let E;if(typeof n!="function"&&n&&n.options&&n.options.discriminator&&n.options.discriminator.property&&n.options.discriminator.subTypes){if(this.transformationType===Ke.TransformationType.PLAIN_TO_CLASS){E=n.options.discriminator.subTypes.find(R=>R.name===p[n.options.discriminator.property]);let N={newObject:f,object:p,property:void 0},P=n.typeFunction(N);E===void 0?E=P:E=E.value,n.options.keepDiscriminatorProperty||delete p[n.options.discriminator.property]}this.transformationType===Ke.TransformationType.CLASS_TO_CLASS&&(E=p.constructor),this.transformationType===Ke.TransformationType.CLASS_TO_PLAIN&&(p[n.options.discriminator.property]=n.options.discriminator.subTypes.find(N=>N.value===p.constructor).name)}else E=n;let C=this.transform($,p,E,void 0,p instanceof Map,u+1);f instanceof Set?f.add(C):f.push(C)}else this.transformationType===Ke.TransformationType.CLASS_TO_CLASS&&(f instanceof Set?f.add(p):f.push(p))}),f}else{if(n===String&&!a)return r==null?r:String(r);if(n===Number&&!a)return r==null?r:Number(r);if(n===Boolean&&!a)return r==null?r:Boolean(r);if((n===Date||r instanceof Date)&&!a)return r instanceof Date?new Date(r.valueOf()):r==null?r:new Date(r);if(!!(0,Ag.getGlobal)().Buffer&&(n===Buffer||r instanceof Buffer)&&!a)return r==null?r:Buffer.from(r);if((0,Ag.isPromise)(r)&&!a)return new Promise((f,p)=>{r.then(c=>f(this.transform(void 0,c,n,void 0,void 0,u+1)),p)});if(!a&&r!==null&&typeof r=="object"&&typeof r.then=="function")return r;if(typeof r=="object"&&r!==null){!n&&r.constructor!==Object&&(!Array.isArray(r)&&r.constructor===Array||(n=r.constructor)),!n&&t&&(n=t.constructor),this.options.enableCircularCheck&&this.recursionStack.add(r);let f=this.getKeys(n,r,a),p=t||{};!t&&(this.transformationType===Ke.TransformationType.PLAIN_TO_CLASS||this.transformationType===Ke.TransformationType.CLASS_TO_CLASS)&&(a?p=new Map:n?p=new n:p={});for(let c of f){if(c==="__proto__"||c==="constructor")continue;let $=c,E=c,C=c;if(!this.options.ignoreDecorators&&n){if(this.transformationType===Ke.TransformationType.PLAIN_TO_CLASS){let H=_t.defaultMetadataStorage.findExposeMetadataByCustomName(n,c);H&&(C=H.propertyName,E=H.propertyName)}else if(this.transformationType===Ke.TransformationType.CLASS_TO_PLAIN||this.transformationType===Ke.TransformationType.CLASS_TO_CLASS){let H=_t.defaultMetadataStorage.findExposeMetadata(n,c);H&&H.options&&H.options.name&&(E=H.options.name)}}let N;this.transformationType===Ke.TransformationType.PLAIN_TO_CLASS?N=r[$]:r instanceof Map?N=r.get($):r[$]instanceof Function?N=r[$]():N=r[$];let P,R=N instanceof Map;if(n&&a)P=n;else if(n){let H=_t.defaultMetadataStorage.findTypeMetadata(n,C);if(H){let z={newObject:p,object:r,property:C},ze=H.typeFunction?H.typeFunction(z):H.reflectedType;H.options&&H.options.discriminator&&H.options.discriminator.property&&H.options.discriminator.subTypes?r[$]instanceof Array?P=H:(this.transformationType===Ke.TransformationType.PLAIN_TO_CLASS&&(P=H.options.discriminator.subTypes.find(Ct=>{if(N&&N instanceof Object&&H.options.discriminator.property in N)return Ct.name===N[H.options.discriminator.property]}),P===void 0?P=ze:P=P.value,H.options.keepDiscriminatorProperty||N&&N instanceof Object&&H.options.discriminator.property in N&&delete N[H.options.discriminator.property]),this.transformationType===Ke.TransformationType.CLASS_TO_CLASS&&(P=N.constructor),this.transformationType===Ke.TransformationType.CLASS_TO_PLAIN&&N&&(N[H.options.discriminator.property]=H.options.discriminator.subTypes.find(Ct=>Ct.value===N.constructor).name)):P=ze,R=R||H.reflectedType===Map}else if(this.options.targetMaps)this.options.targetMaps.filter(z=>z.target===n&&!!z.properties[C]).forEach(z=>P=z.properties[C]);else if(this.options.enableImplicitConversion&&this.transformationType===Ke.TransformationType.PLAIN_TO_CLASS){let z=Reflect.getMetadata("design:type",n.prototype,C);z&&(P=z)}}let k=Array.isArray(r[$])?this.getReflectedType(n,C):void 0,Q=t?t[$]:void 0;if(p.constructor.prototype){let H=Object.getOwnPropertyDescriptor(p.constructor.prototype,E);if((this.transformationType===Ke.TransformationType.PLAIN_TO_CLASS||this.transformationType===Ke.TransformationType.CLASS_TO_CLASS)&&(H&&!H.set||p[E]instanceof Function))continue}if(!this.options.enableCircularCheck||!this.isCircular(N)){let H=this.transformationType===Ke.TransformationType.PLAIN_TO_CLASS?E:c,z;this.transformationType===Ke.TransformationType.CLASS_TO_PLAIN?(z=r[H],z=this.applyCustomTransformations(z,n,H,r,this.transformationType),z=r[H]===z?N:z,z=this.transform(Q,z,P,k,R,u+1)):N===void 0&&this.options.exposeDefaultValues?z=p[E]:(z=this.transform(Q,N,P,k,R,u+1),z=this.applyCustomTransformations(z,n,H,r,this.transformationType)),(z!==void 0||this.options.exposeUnsetFields)&&(p instanceof Map?p.set(E,z):p[E]=z)}else if(this.transformationType===Ke.TransformationType.CLASS_TO_CLASS){let H=N;H=this.applyCustomTransformations(H,n,c,r,this.transformationType),(H!==void 0||this.options.exposeUnsetFields)&&(p instanceof Map?p.set(E,H):p[E]=H)}}return this.options.enableCircularCheck&&this.recursionStack.delete(r),p}else return r}}applyCustomTransformations(t,r,n,i,a){let u=_t.defaultMetadataStorage.findTransformMetadatas(r,n,this.transformationType);return this.options.version!==void 0&&(u=u.filter(f=>f.options?this.checkVersion(f.options.since,f.options.until):!0)),this.options.groups&&this.options.groups.length?u=u.filter(f=>f.options?this.checkGroups(f.options.groups):!0):u=u.filter(f=>!f.options||!f.options.groups||!f.options.groups.length),u.forEach(f=>{t=f.transformFn({value:t,key:n,obj:i,type:a,options:this.options})}),t}isCircular(t){return this.recursionStack.has(t)}getReflectedType(t,r){if(!t)return;let n=_t.defaultMetadataStorage.findTypeMetadata(t,r);return n?n.reflectedType:void 0}getKeys(t,r,n){let i=_t.defaultMetadataStorage.getStrategy(t);i==="none"&&(i=this.options.strategy||"exposeAll");let a=[];if((i==="exposeAll"||n)&&(r instanceof Map?a=Array.from(r.keys()):a=Object.keys(r)),n)return a;if(this.options.ignoreDecorators&&this.options.excludeExtraneousValues&&t){let u=_t.defaultMetadataStorage.getExposedProperties(t,this.transformationType),f=_t.defaultMetadataStorage.getExcludedProperties(t,this.transformationType);a=[...u,...f]}if(!this.options.ignoreDecorators&&t){let u=_t.defaultMetadataStorage.getExposedProperties(t,this.transformationType);this.transformationType===Ke.TransformationType.PLAIN_TO_CLASS&&(u=u.map(p=>{let c=_t.defaultMetadataStorage.findExposeMetadata(t,p);return c&&c.options&&c.options.name?c.options.name:p})),this.options.excludeExtraneousValues?a=u:a=a.concat(u);let f=_t.defaultMetadataStorage.getExcludedProperties(t,this.transformationType);f.length>0&&(a=a.filter(p=>!f.includes(p))),this.options.version!==void 0&&(a=a.filter(p=>{let c=_t.defaultMetadataStorage.findExposeMetadata(t,p);return!c||!c.options?!0:this.checkVersion(c.options.since,c.options.until)})),this.options.groups&&this.options.groups.length?a=a.filter(p=>{let c=_t.defaultMetadataStorage.findExposeMetadata(t,p);return!c||!c.options?!0:this.checkGroups(c.options.groups)}):a=a.filter(p=>{let c=_t.defaultMetadataStorage.findExposeMetadata(t,p);return!c||!c.options||!c.options.groups||!c.options.groups.length})}return this.options.excludePrefixes&&this.options.excludePrefixes.length&&(a=a.filter(u=>this.options.excludePrefixes.every(f=>u.substr(0,f.length)!==f))),a=a.filter((u,f,p)=>p.indexOf(u)===f),a}checkVersion(t,r){let n=!0;return n&&t&&(n=this.options.version>=t),n&&r&&(n=this.options.version<r),n}checkGroups(t){return t?this.options.groups.some(r=>t.includes(r)):!0}};sf.TransformOperationExecutor=Jl});var bg=h(ff=>{"use strict";Object.defineProperty(ff,"__esModule",{value:!0});ff.defaultOptions=void 0;ff.defaultOptions={enableCircularCheck:!1,enableImplicitConversion:!1,excludeExtraneousValues:!1,excludePrefixes:void 0,exposeDefaultValues:!1,exposeUnsetFields:!0,groups:void 0,ignoreDecorators:!1,strategy:void 0,targetMaps:void 0,version:void 0}});var Ga=h(df=>{"use strict";Object.defineProperty(df,"__esModule",{value:!0});df.ClassTransformer=void 0;var Va=$g(),ka=Au(),Ha=bg(),Ql=class{instanceToPlain(t,r){return new Va.TransformOperationExecutor(ka.TransformationType.CLASS_TO_PLAIN,{...Ha.defaultOptions,...r}).transform(void 0,t,void 0,void 0,void 0,void 0)}classToPlainFromExist(t,r,n){return new Va.TransformOperationExecutor(ka.TransformationType.CLASS_TO_PLAIN,{...Ha.defaultOptions,...n}).transform(r,t,void 0,void 0,void 0,void 0)}plainToInstance(t,r,n){return new Va.TransformOperationExecutor(ka.TransformationType.PLAIN_TO_CLASS,{...Ha.defaultOptions,...n}).transform(void 0,r,t,void 0,void 0,void 0)}plainToClassFromExist(t,r,n){return new Va.TransformOperationExecutor(ka.TransformationType.PLAIN_TO_CLASS,{...Ha.defaultOptions,...n}).transform(t,r,void 0,void 0,void 0,void 0)}instanceToInstance(t,r){return new Va.TransformOperationExecutor(ka.TransformationType.CLASS_TO_CLASS,{...Ha.defaultOptions,...r}).transform(void 0,t,void 0,void 0,void 0,void 0)}classToClassFromExist(t,r,n){return new Va.TransformOperationExecutor(ka.TransformationType.CLASS_TO_CLASS,{...Ha.defaultOptions,...n}).transform(r,t,void 0,void 0,void 0,void 0)}serialize(t,r){return JSON.stringify(this.instanceToPlain(t,r))}deserialize(t,r,n){let i=JSON.parse(r);return this.plainToInstance(t,i,n)}deserializeArray(t,r,n){let i=JSON.parse(r);return this.plainToInstance(t,i,n)}};df.ClassTransformer=Ql});var Eg=h(lf=>{"use strict";Object.defineProperty(lf,"__esModule",{value:!0});lf.Exclude=void 0;var DE=Ua();function BE(e={}){return function(t,r){DE.defaultMetadataStorage.addExcludeMetadata({target:t instanceof Function?t:t.constructor,propertyName:r,options:e})}}lf.Exclude=BE});var Mg=h(cf=>{"use strict";Object.defineProperty(cf,"__esModule",{value:!0});cf.Expose=void 0;var RE=Ua();function LE(e={}){return function(t,r){RE.defaultMetadataStorage.addExposeMetadata({target:t instanceof Function?t:t.constructor,propertyName:r,options:e})}}cf.Expose=LE});var Ng=h(hf=>{"use strict";Object.defineProperty(hf,"__esModule",{value:!0});hf.TransformInstanceToInstance=void 0;var qE=Ga();function UE(e){return function(t,r,n){let i=new qE.ClassTransformer,a=n.value;n.value=function(...u){let f=a.apply(this,u);return!!f&&(typeof f=="object"||typeof f=="function")&&typeof f.then=="function"?f.then(c=>i.instanceToInstance(c,e)):i.instanceToInstance(f,e)}}}hf.TransformInstanceToInstance=UE});var Sg=h(pf=>{"use strict";Object.defineProperty(pf,"__esModule",{value:!0});pf.TransformInstanceToPlain=void 0;var VE=Ga();function kE(e){return function(t,r,n){let i=new VE.ClassTransformer,a=n.value;n.value=function(...u){let f=a.apply(this,u);return!!f&&(typeof f=="object"||typeof f=="function")&&typeof f.then=="function"?f.then(c=>i.instanceToPlain(c,e)):i.instanceToPlain(f,e)}}}pf.TransformInstanceToPlain=kE});var Ig=h(gf=>{"use strict";Object.defineProperty(gf,"__esModule",{value:!0});gf.TransformPlainToInstance=void 0;var HE=Ga();function GE(e,t){return function(r,n,i){let a=new HE.ClassTransformer,u=i.value;i.value=function(...f){let p=u.apply(this,f);return!!p&&(typeof p=="object"||typeof p=="function")&&typeof p.then=="function"?p.then($=>a.plainToInstance(e,$,t)):a.plainToInstance(e,p,t)}}}gf.TransformPlainToInstance=GE});var Cg=h(yf=>{"use strict";Object.defineProperty(yf,"__esModule",{value:!0});yf.Transform=void 0;var ZE=Ua();function jE(e,t={}){return function(r,n){ZE.defaultMetadataStorage.addTransformMetadata({target:r.constructor,propertyName:n,transformFn:e,options:t})}}yf.Transform=jE});var Pg=h(mf=>{"use strict";Object.defineProperty(mf,"__esModule",{value:!0});mf.Type=void 0;var WE=Ua();function zE(e,t={}){return function(r,n){let i=Reflect.getMetadata("design:type",r,n);WE.defaultMetadataStorage.addTypeMetadata({target:r.constructor,propertyName:n,reflectedType:i,typeFunction:e,options:t})}}mf.Type=zE});var wg=h(Mt=>{"use strict";var YE=Mt&&Mt.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),sa=Mt&&Mt.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&YE(t,e,r)};Object.defineProperty(Mt,"__esModule",{value:!0});sa(Eg(),Mt);sa(Mg(),Mt);sa(Ng(),Mt);sa(Sg(),Mt);sa(Ig(),Mt);sa(Cg(),Mt);sa(Pg(),Mt)});var Og=h(Tg=>{"use strict";Object.defineProperty(Tg,"__esModule",{value:!0})});var Fg=h(xg=>{"use strict";Object.defineProperty(xg,"__esModule",{value:!0})});var Bg=h(Dg=>{"use strict";Object.defineProperty(Dg,"__esModule",{value:!0})});var Lg=h(Rg=>{"use strict";Object.defineProperty(Rg,"__esModule",{value:!0})});var Ug=h(qg=>{"use strict";Object.defineProperty(qg,"__esModule",{value:!0})});var kg=h(Vg=>{"use strict";Object.defineProperty(Vg,"__esModule",{value:!0})});var Gg=h(Hg=>{"use strict";Object.defineProperty(Hg,"__esModule",{value:!0})});var jg=h(Zg=>{"use strict";Object.defineProperty(Zg,"__esModule",{value:!0})});var zg=h(Wg=>{"use strict";Object.defineProperty(Wg,"__esModule",{value:!0})});var Kg=h(Yg=>{"use strict";Object.defineProperty(Yg,"__esModule",{value:!0})});var Qg=h(Jg=>{"use strict";Object.defineProperty(Jg,"__esModule",{value:!0})});var ey=h(Xg=>{"use strict";Object.defineProperty(Xg,"__esModule",{value:!0})});var ry=h(ty=>{"use strict";Object.defineProperty(ty,"__esModule",{value:!0})});var iy=h(ny=>{"use strict";Object.defineProperty(ny,"__esModule",{value:!0})});var ay=h(Xe=>{"use strict";var KE=Xe&&Xe.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),At=Xe&&Xe.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&KE(t,e,r)};Object.defineProperty(Xe,"__esModule",{value:!0});At(Og(),Xe);At(Fg(),Xe);At(Bg(),Xe);At(Lg(),Xe);At(Ug(),Xe);At(kg(),Xe);At(Gg(),Xe);At(jg(),Xe);At(zg(),Xe);At(Kg(),Xe);At(Qg(),Xe);At(ey(),Xe);At(ry(),Xe);At(iy(),Xe)});var uy=h(X=>{"use strict";var JE=X&&X.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Xl=X&&X.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&JE(t,e,r)};Object.defineProperty(X,"__esModule",{value:!0});X.deserializeArray=X.deserialize=X.serialize=X.classToClassFromExist=X.instanceToInstance=X.plainToClassFromExist=X.plainToInstance=X.plainToClass=X.classToPlainFromExist=X.instanceToPlain=X.classToPlain=X.ClassTransformer=void 0;var QE=Ga(),XE=Ga();Object.defineProperty(X,"ClassTransformer",{enumerable:!0,get:function(){return XE.ClassTransformer}});Xl(wg(),X);Xl(ay(),X);Xl(Au(),X);var kt=new QE.ClassTransformer;function eM(e,t){return kt.instanceToPlain(e,t)}X.classToPlain=eM;function tM(e,t){return kt.instanceToPlain(e,t)}X.instanceToPlain=tM;function rM(e,t,r){return kt.classToPlainFromExist(e,t,r)}X.classToPlainFromExist=rM;function nM(e,t,r){return kt.plainToInstance(e,t,r)}X.plainToClass=nM;function iM(e,t,r){return kt.plainToInstance(e,t,r)}X.plainToInstance=iM;function aM(e,t,r){return kt.plainToClassFromExist(e,t,r)}X.plainToClassFromExist=aM;function uM(e,t){return kt.instanceToInstance(e,t)}X.instanceToInstance=uM;function oM(e,t,r){return kt.classToClassFromExist(e,t,r)}X.classToClassFromExist=oM;function sM(e,t){return kt.serialize(e,t)}X.serialize=sM;function fM(e,t,r){return kt.deserialize(e,t,r)}X.deserialize=fM;function dM(e,t,r){return kt.deserializeArray(e,t,r)}X.deserializeArray=dM});var Cn=h(vf=>{"use strict";Object.defineProperty(vf,"__esModule",{value:!0});vf.ValidationMetadata=void 0;var e0=class{constructor(t){this.groups=[],this.each=!1,this.context=void 0,this.type=t.type,this.target=t.target,this.propertyName=t.propertyName,this.constraints=t.constraints,this.constraintCls=t.constraintCls,this.validationTypeOptions=t.validationTypeOptions,t.validationOptions&&(this.message=t.validationOptions.message,this.groups=t.validationOptions.groups,this.always=t.validationOptions.always,this.each=t.validationOptions.each,this.context=t.validationOptions.context)}};vf.ValidationMetadata=e0});var oy=h(_f=>{"use strict";Object.defineProperty(_f,"__esModule",{value:!0});_f.ValidationSchemaToMetadataTransformer=void 0;var lM=Cn(),t0=class{transform(t){let r=[];return Object.keys(t.properties).forEach(n=>{t.properties[n].forEach(i=>{let a={message:i.message,groups:i.groups,always:i.always,each:i.each},u={type:i.type,target:t.name,propertyName:n,constraints:i.constraints,validationTypeOptions:i.options,validationOptions:a};r.push(new lM.ValidationMetadata(u))})}),r}};_f.ValidationSchemaToMetadataTransformer=t0});var sy=h(Af=>{"use strict";Object.defineProperty(Af,"__esModule",{value:!0});Af.convertToArray=void 0;function cM(e){return e instanceof Map?Array.from(e.values()):Array.isArray(e)?e:Array.from(e)}Af.convertToArray=cM});var fy=h($f=>{"use strict";Object.defineProperty($f,"__esModule",{value:!0});$f.getGlobal=void 0;function hM(){if(typeof globalThis<"u")return globalThis;if(typeof global<"u")return global;if(typeof window<"u")return window;if(typeof self<"u")return self}$f.getGlobal=hM});var dy=h(bf=>{"use strict";Object.defineProperty(bf,"__esModule",{value:!0});bf.isPromise=void 0;function pM(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}bf.isPromise=pM});var n0=h(Pn=>{"use strict";var gM=Pn&&Pn.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),r0=Pn&&Pn.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&gM(t,e,r)};Object.defineProperty(Pn,"__esModule",{value:!0});r0(sy(),Pn);r0(fy(),Pn);r0(dy(),Pn)});var Ht=h(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});Za.getMetadataStorage=Za.MetadataStorage=void 0;var yM=oy(),mM=n0(),Ef=class{constructor(){this.validationMetadatas=[],this.constraintMetadatas=[]}get hasValidationMetaData(){return!!this.validationMetadatas.length}addValidationSchema(t){new yM.ValidationSchemaToMetadataTransformer().transform(t).forEach(n=>this.addValidationMetadata(n))}addValidationMetadata(t){this.validationMetadatas.push(t)}addConstraintMetadata(t){this.constraintMetadatas.push(t)}groupByPropertyName(t){let r={};return t.forEach(n=>{r[n.propertyName]||(r[n.propertyName]=[]),r[n.propertyName].push(n)}),r}getTargetValidationMetadatas(t,r,n,i,a){let u=E=>typeof E.always<"u"?E.always:E.groups&&E.groups.length?!1:n,f=E=>!!(i&&(!a||!a.length)&&E.groups&&E.groups.length),p=this.validationMetadatas.filter(E=>E.target!==t&&E.target!==r?!1:u(E)?!0:f(E)?!1:a&&a.length>0?E.groups&&!!E.groups.find(C=>a.indexOf(C)!==-1):!0),$=this.validationMetadatas.filter(E=>typeof E.target=="string"||E.target===t||E.target instanceof Function&&!(t.prototype instanceof E.target)?!1:u(E)?!0:f(E)?!1:a&&a.length>0?E.groups&&!!E.groups.find(C=>a.indexOf(C)!==-1):!0).filter(E=>!p.find(C=>C.propertyName===E.propertyName&&C.type===E.type));return p.concat($)}getTargetValidatorConstraints(t){return this.constraintMetadatas.filter(r=>r.target===t)}};Za.MetadataStorage=Ef;function vM(){let e=(0,mM.getGlobal)();return e.classValidatorMetadataStorage||(e.classValidatorMetadataStorage=new Ef),e.classValidatorMetadataStorage}Za.getMetadataStorage=vM});var a0=h(Mf=>{"use strict";Object.defineProperty(Mf,"__esModule",{value:!0});Mf.ValidationError=void 0;var i0=class{toString(t=!1,r=!1,n=""){let i=t?"\x1B[1m":"",a=t?"\x1B[22m":"",u=f=>` - property ${i}${n}${f}${a} has failed the following constraints: ${i}${Object.keys(this.constraints).join(", ")}${a}
3
3
  `;if(r){let f=Number.isInteger(+this.property)?`[${this.property}]`:`${n?".":""}${this.property}`;return this.constraints?u(f):this.children?this.children.map(p=>p.toString(t,!0,`${n}${f}`)).join(""):""}else return`An instance of ${i}${this.target?this.target.constructor.name:"an object"}${a} has failed the validation:
4
4
  `+(this.constraints?u(this.property):"")+(this.children?this.children.map(f=>f.toString(t,!0,this.property)).join(""):"")}};Mf.ValidationError=i0});var Gt=h(Nf=>{"use strict";Object.defineProperty(Nf,"__esModule",{value:!0});Nf.ValidationTypes=void 0;var wn=class{static isValid(t){return t!=="isValid"&&t!=="getMessage"&&Object.keys(this).map(r=>this[r]).indexOf(t)!==-1}};Nf.ValidationTypes=wn;wn.CUSTOM_VALIDATION="customValidation";wn.NESTED_VALIDATION="nestedValidation";wn.PROMISE_VALIDATION="promiseValidation";wn.CONDITIONAL_VALIDATION="conditionalValidation";wn.WHITELIST="whitelistValidation";wn.IS_DEFINED="isDefined"});var cy=h(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});ja.ValidationUtils=ja.constraintToString=void 0;function ly(e){return Array.isArray(e)?e.join(", "):`${e}`}ja.constraintToString=ly;var u0=class{static replaceMessageSpecialTokens(t,r){let n;return t instanceof Function?n=t(r):typeof t=="string"&&(n=t),n&&Array.isArray(r.constraints)&&r.constraints.forEach((i,a)=>{n=n.replace(new RegExp(`\\$constraint${a+1}`,"g"),ly(i))}),n&&r.value!==void 0&&r.value!==null&&typeof r.value=="string"&&(n=n.replace(/\$value/g,r.value)),n&&(n=n.replace(/\$property/g,r.property)),n&&(n=n.replace(/\$target/g,r.targetName)),n}};ja.ValidationUtils=u0});var hy=h(If=>{"use strict";Object.defineProperty(If,"__esModule",{value:!0});If.ValidationExecutor=void 0;var o0=a0(),Zt=Gt(),_M=cy(),Sf=n0(),AM=Ht(),s0=class{constructor(t,r){this.validator=t,this.validatorOptions=r,this.awaitingPromises=[],this.ignoreAsyncValidations=!1,this.metadataStorage=(0,AM.getMetadataStorage)()}execute(t,r,n){var i;!this.metadataStorage.hasValidationMetaData&&((i=this.validatorOptions)===null||i===void 0?void 0:i.enableDebugMessages)===!0&&console.warn("No metadata found. There is more than once class-validator version installed probably. You need to flatten your dependencies.");let a=this.validatorOptions?this.validatorOptions.groups:void 0,u=this.validatorOptions&&this.validatorOptions.strictGroups||!1,f=this.validatorOptions&&this.validatorOptions.always||!1,p=this.metadataStorage.getTargetValidationMetadatas(t.constructor,r,f,u,a),c=this.metadataStorage.groupByPropertyName(p);if(this.validatorOptions&&this.validatorOptions.forbidUnknownValues&&!p.length){let $=new o0.ValidationError;(!this.validatorOptions||!this.validatorOptions.validationError||this.validatorOptions.validationError.target===void 0||this.validatorOptions.validationError.target===!0)&&($.target=t),$.value=void 0,$.property=void 0,$.children=[],$.constraints={unknownValue:"an unknown value was passed to the validate function"},n.push($);return}this.validatorOptions&&this.validatorOptions.whitelist&&this.whitelist(t,c,n),Object.keys(c).forEach($=>{let E=t[$],C=c[$].filter(P=>P.type===Zt.ValidationTypes.IS_DEFINED),N=c[$].filter(P=>P.type!==Zt.ValidationTypes.IS_DEFINED&&P.type!==Zt.ValidationTypes.WHITELIST);E instanceof Promise&&N.find(P=>P.type===Zt.ValidationTypes.PROMISE_VALIDATION)?this.awaitingPromises.push(E.then(P=>{this.performValidations(t,P,$,C,N,n)})):this.performValidations(t,E,$,C,N,n)})}whitelist(t,r,n){let i=[];Object.keys(t).forEach(a=>{(!r[a]||r[a].length===0)&&i.push(a)}),i.length>0&&(this.validatorOptions&&this.validatorOptions.forbidNonWhitelisted?i.forEach(a=>{let u=this.generateValidationError(t,t[a],a);u.constraints={[Zt.ValidationTypes.WHITELIST]:`property ${a} should not exist`},u.children=void 0,n.push(u)}):i.forEach(a=>delete t[a]))}stripEmptyErrors(t){return t.filter(r=>{if(r.children&&(r.children=this.stripEmptyErrors(r.children)),Object.keys(r.constraints).length===0){if(r.children.length===0)return!1;delete r.constraints}return!0})}performValidations(t,r,n,i,a,u){let f=a.filter(C=>C.type===Zt.ValidationTypes.CUSTOM_VALIDATION),p=a.filter(C=>C.type===Zt.ValidationTypes.NESTED_VALIDATION),c=a.filter(C=>C.type===Zt.ValidationTypes.CONDITIONAL_VALIDATION),$=this.generateValidationError(t,r,n);u.push($),this.conditionalValidations(t,r,c)&&(this.customValidations(t,r,i,$),this.mapContexts(t,r,i,$),!(r===void 0&&this.validatorOptions&&this.validatorOptions.skipUndefinedProperties===!0)&&(r===null&&this.validatorOptions&&this.validatorOptions.skipNullProperties===!0||r==null&&this.validatorOptions&&this.validatorOptions.skipMissingProperties===!0||(this.customValidations(t,r,f,$),this.nestedValidations(r,p,$.children),this.mapContexts(t,r,a,$),this.mapContexts(t,r,f,$))))}generateValidationError(t,r,n){let i=new o0.ValidationError;return(!this.validatorOptions||!this.validatorOptions.validationError||this.validatorOptions.validationError.target===void 0||this.validatorOptions.validationError.target===!0)&&(i.target=t),(!this.validatorOptions||!this.validatorOptions.validationError||this.validatorOptions.validationError.value===void 0||this.validatorOptions.validationError.value===!0)&&(i.value=r),i.property=n,i.children=[],i.constraints={},i}conditionalValidations(t,r,n){return n.map(i=>i.constraints[0](t,r)).reduce((i,a)=>i&&a,!0)}customValidations(t,r,n,i){n.forEach(a=>{this.metadataStorage.getTargetValidatorConstraints(a.constraintCls).forEach(u=>{if(u.async&&this.ignoreAsyncValidations||this.validatorOptions&&this.validatorOptions.stopAtFirstError&&Object.keys(i.constraints||{}).length>0)return;let f={targetName:t.constructor?t.constructor.name:void 0,property:a.propertyName,object:t,value:r,constraints:a.constraints};if(!a.each||!(Array.isArray(r)||r instanceof Set||r instanceof Map)){let C=u.instance.validate(r,f);if((0,Sf.isPromise)(C)){let N=C.then(P=>{if(!P){let[R,k]=this.createValidationError(t,r,a,u);i.constraints[R]=k,a.context&&(i.contexts||(i.contexts={}),i.contexts[R]=Object.assign(i.contexts[R]||{},a.context))}});this.awaitingPromises.push(N)}else if(!C){let[N,P]=this.createValidationError(t,r,a,u);i.constraints[N]=P}return}let c=(0,Sf.convertToArray)(r).map(C=>u.instance.validate(C,f));if(c.some(C=>(0,Sf.isPromise)(C))){let C=c.map(P=>(0,Sf.isPromise)(P)?P:Promise.resolve(P)),N=Promise.all(C).then(P=>{if(!P.every(k=>k)){let[k,Q]=this.createValidationError(t,r,a,u);i.constraints[k]=Q,a.context&&(i.contexts||(i.contexts={}),i.contexts[k]=Object.assign(i.contexts[k]||{},a.context))}});this.awaitingPromises.push(N);return}if(!c.every(C=>C)){let[C,N]=this.createValidationError(t,r,a,u);i.constraints[C]=N}})})}nestedValidations(t,r,n){t!==void 0&&r.forEach(i=>{if(!(i.type!==Zt.ValidationTypes.NESTED_VALIDATION&&i.type!==Zt.ValidationTypes.PROMISE_VALIDATION))if(Array.isArray(t)||t instanceof Set||t instanceof Map)(t instanceof Set?Array.from(t):t).forEach((u,f)=>{this.performValidations(t,u,f.toString(),[],r,n)});else if(t instanceof Object){let a=typeof i.target=="string"?i.target:i.target.name;this.execute(t,a,n)}else{let a=new o0.ValidationError;a.value=t,a.property=i.propertyName,a.target=i.target;let[u,f]=this.createValidationError(i.target,t,i);a.constraints={[u]:f},n.push(a)}})}mapContexts(t,r,n,i){return n.forEach(a=>{if(a.context){let u;a.type===Zt.ValidationTypes.CUSTOM_VALIDATION&&(u=this.metadataStorage.getTargetValidatorConstraints(a.constraintCls)[0]);let f=this.getConstraintType(a,u);i.constraints[f]&&(i.contexts||(i.contexts={}),i.contexts[f]=Object.assign(i.contexts[f]||{},a.context))}})}createValidationError(t,r,n,i){let a=t.constructor?t.constructor.name:void 0,u=this.getConstraintType(n,i),f={targetName:a,property:n.propertyName,object:t,value:r,constraints:n.constraints},p=n.message||"";!n.message&&(!this.validatorOptions||this.validatorOptions&&!this.validatorOptions.dismissDefaultMessages)&&i&&i.instance.defaultMessage instanceof Function&&(p=i.instance.defaultMessage(f));let c=_M.ValidationUtils.replaceMessageSpecialTokens(p,f);return[u,c]}getConstraintType(t,r){return r&&r.name?r.name:t.type}};If.ValidationExecutor=s0});var d0=h(Cf=>{"use strict";Object.defineProperty(Cf,"__esModule",{value:!0});Cf.Validator=void 0;var py=hy(),f0=class{validate(t,r,n){return this.coreValidate(t,r,n)}async validateOrReject(t,r,n){let i=await this.coreValidate(t,r,n);if(i.length)return Promise.reject(i)}validateSync(t,r,n){let i=typeof t=="string"?r:t,a=typeof t=="string"?n:r,u=typeof t=="string"?t:void 0,f=new py.ValidationExecutor(this,a);f.ignoreAsyncValidations=!0;let p=[];return f.execute(i,u,p),f.stripEmptyErrors(p)}coreValidate(t,r,n){let i=typeof t=="string"?r:t,a=typeof t=="string"?n:r,u=typeof t=="string"?t:void 0,f=new py.ValidationExecutor(this,a),p=[];return f.execute(i,u,p),Promise.all(f.awaitingPromises).then(()=>f.stripEmptyErrors(p))}};Cf.Validator=f0});var bu=h(Wa=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});Wa.getFromContainer=Wa.useContainer=void 0;var $M=new class{constructor(){this.instances=[]}get(e){let t=this.instances.find(r=>r.type===e);return t||(t={type:e,object:new e},this.instances.push(t)),t.object}},l0,$u;function bM(e,t){l0=e,$u=t}Wa.useContainer=bM;function EM(e){if(l0)try{let t=l0.get(e);if(t||!$u||!$u.fallback)return t}catch(t){if(!$u||!$u.fallbackOnErrors)throw t}return $M.get(e)}Wa.getFromContainer=EM});var gy=h(Pf=>{"use strict";Object.defineProperty(Pf,"__esModule",{value:!0});Pf.Allow=void 0;var MM=Gt(),NM=Cn(),SM=Ht();function IM(e){return function(t,r){let n={type:MM.ValidationTypes.WHITELIST,target:t.constructor,propertyName:r,validationOptions:e};(0,SM.getMetadataStorage)().addValidationMetadata(new NM.ValidationMetadata(n))}}Pf.Allow=IM});var h0=h(wf=>{"use strict";Object.defineProperty(wf,"__esModule",{value:!0});wf.ConstraintMetadata=void 0;var CM=bu(),c0=class{constructor(t,r,n=!1){this.target=t,this.name=r,this.async=n}get instance(){return(0,CM.getFromContainer)(this.target)}};wf.ConstraintMetadata=c0});var g0=h(Tf=>{"use strict";Object.defineProperty(Tf,"__esModule",{value:!0});Tf.registerDecorator=void 0;var PM=h0(),wM=Cn(),yy=Gt(),TM=bu(),p0=Ht();function OM(e){let t;if(e.validator instanceof Function){if(t=e.validator,(0,TM.getFromContainer)(p0.MetadataStorage).getTargetValidatorConstraints(e.validator).length>1)throw`More than one implementation of ValidatorConstraintInterface found for validator on: ${e.target.name}:${e.propertyName}`}else{let n=e.validator;t=class{validate(a,u){return n.validate(a,u)}defaultMessage(a){return n.defaultMessage?n.defaultMessage(a):""}},(0,p0.getMetadataStorage)().addConstraintMetadata(new PM.ConstraintMetadata(t,e.name,e.async))}let r={type:e.name&&yy.ValidationTypes.isValid(e.name)?e.name:yy.ValidationTypes.CUSTOM_VALIDATION,target:e.target,propertyName:e.propertyName,validationOptions:e.options,constraintCls:t,constraints:e.constraints};(0,p0.getMetadataStorage)().addValidationMetadata(new wM.ValidationMetadata(r))}Tf.registerDecorator=OM});var x=h(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.ValidateBy=za.buildMessage=void 0;var xM=g0();function FM(e,t){return r=>{let n=t&&t.each?"each value in ":"";return e(n,r)}}za.buildMessage=FM;function DM(e,t){return function(r,n){(0,xM.registerDecorator)({name:e.name,target:r.constructor,propertyName:n,options:t,constraints:e.constraints,validator:e.validator})}}za.ValidateBy=DM});var _y=h(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.IsDefined=Tn.isDefined=Tn.IS_DEFINED=void 0;var my=x(),BM=Gt();Tn.IS_DEFINED=BM.ValidationTypes.IS_DEFINED;function vy(e){return e!=null}Tn.isDefined=vy;function RM(e){return(0,my.ValidateBy)({name:Tn.IS_DEFINED,validator:{validate:t=>vy(t),defaultMessage:(0,my.buildMessage)(t=>t+"$property should not be null or undefined",e)}},e)}Tn.IsDefined=RM});var Ay=h(Of=>{"use strict";Object.defineProperty(Of,"__esModule",{value:!0});Of.IsOptional=void 0;var LM=Gt(),qM=Cn(),UM=Ht();function VM(e){return function(t,r){let n={type:LM.ValidationTypes.CONDITIONAL_VALIDATION,target:t.constructor,propertyName:r,constraints:[(i,a)=>i[r]!==null&&i[r]!==void 0],validationOptions:e};(0,UM.getMetadataStorage)().addValidationMetadata(new qM.ValidationMetadata(n))}}Of.IsOptional=VM});var by=h(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});Ya.Validate=Ya.ValidatorConstraint=void 0;var kM=Cn(),$y=Ht(),HM=Gt(),GM=h0();function ZM(e){return function(t){let r=e&&e.async,n=e&&e.name?e.name:"";n||(n=t.name,n||(n=n.replace(/\.?([A-Z]+)/g,(a,u)=>"_"+u.toLowerCase()).replace(/^_/,"")));let i=new GM.ConstraintMetadata(t,n,r);(0,$y.getMetadataStorage)().addConstraintMetadata(i)}}Ya.ValidatorConstraint=ZM;function jM(e,t,r){return function(n,i){let a={type:HM.ValidationTypes.CUSTOM_VALIDATION,target:n.constructor,propertyName:i,constraintCls:e,constraints:Array.isArray(t)?t:void 0,validationOptions:Array.isArray(t)?r:t};(0,$y.getMetadataStorage)().addValidationMetadata(new kM.ValidationMetadata(a))}}Ya.Validate=jM});var Ey=h(xf=>{"use strict";Object.defineProperty(xf,"__esModule",{value:!0});xf.ValidateIf=void 0;var WM=Gt(),zM=Cn(),YM=Ht();function KM(e,t){return function(r,n){let i={type:WM.ValidationTypes.CONDITIONAL_VALIDATION,target:r.constructor,propertyName:n,constraints:[e],validationOptions:t};(0,YM.getMetadataStorage)().addValidationMetadata(new zM.ValidationMetadata(i))}}xf.ValidateIf=KM});var My=h(Ff=>{"use strict";Object.defineProperty(Ff,"__esModule",{value:!0});Ff.ValidateNested=void 0;var JM=Gt(),QM=Cn(),XM=Ht();function eN(e){let t={...e},r=t.each?"each value in ":"";return t.message=t.message||r+"nested property $property must be either object or array",function(n,i){let a={type:JM.ValidationTypes.NESTED_VALIDATION,target:n.constructor,propertyName:i,validationOptions:t};(0,XM.getMetadataStorage)().addValidationMetadata(new QM.ValidationMetadata(a))}}Ff.ValidateNested=eN});var Ny=h(Df=>{"use strict";Object.defineProperty(Df,"__esModule",{value:!0});Df.ValidatePromise=void 0;var tN=Gt(),rN=Cn(),nN=Ht();function iN(e){return function(t,r){let n={type:tN.ValidationTypes.PROMISE_VALIDATION,target:t.constructor,propertyName:r,validationOptions:e};(0,nN.getMetadataStorage)().addValidationMetadata(new rN.ValidationMetadata(n))}}Df.ValidatePromise=iN});var U=h((Eu,y0)=>{"use strict";Object.defineProperty(Eu,"__esModule",{value:!0});Eu.default=aN;function Bf(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Bf=function(r){return typeof r}:Bf=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Bf(e)}function aN(e){var t=typeof e=="string"||e instanceof String;if(!t){var r=Bf(e);throw e===null?r="null":r==="object"&&(r=e.constructor.name),new TypeError("Expected a string but received a ".concat(r))}}y0.exports=Eu.default;y0.exports.default=Eu.default});var gn=h((Mu,m0)=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});Mu.default=uN;function uN(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var r in t)typeof e[r]>"u"&&(e[r]=t[r]);return e}m0.exports=Mu.default;m0.exports.default=Mu.default});var Iy=h((Nu,v0)=>{"use strict";Object.defineProperty(Nu,"__esModule",{value:!0});Nu.default=pN;var oN=Sy(U()),sN=Sy(gn());function Sy(e){return e&&e.__esModule?e:{default:e}}var fN=/^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/,dN=/^\s?[+-]?(180(\.0+)?|1[0-7]\d(\.\d+)?|\d{1,2}(\.\d+)?)\)?$/,lN=/^(([1-8]?\d)\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|90\D+0\D+0)\D+[NSns]?$/i,cN=/^\s*([1-7]?\d{1,2}\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|180\D+0\D+0)\D+[EWew]?$/i,hN={checkDMS:!1};function pN(e,t){if((0,oN.default)(e),t=(0,sN.default)(t,hN),!e.includes(","))return!1;var r=e.split(",");return r[0].startsWith("(")&&!r[1].endsWith(")")||r[1].endsWith(")")&&!r[0].startsWith("(")?!1:t.checkDMS?lN.test(r[0])&&cN.test(r[1]):fN.test(r[0])&&dN.test(r[1])}v0.exports=Nu.default;v0.exports.default=Nu.default});var Rf=h(jt=>{"use strict";var gN=jt&&jt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(jt,"__esModule",{value:!0});jt.IsLatLong=jt.isLatLong=jt.IS_LATLONG=void 0;var Cy=x(),yN=gN(Iy());jt.IS_LATLONG="isLatLong";function Py(e){return typeof e=="string"&&(0,yN.default)(e)}jt.isLatLong=Py;function mN(e){return(0,Cy.ValidateBy)({name:jt.IS_LATLONG,validator:{validate:(t,r)=>Py(t),defaultMessage:(0,Cy.buildMessage)(t=>t+"$property must be a latitude,longitude string",e)}},e)}jt.IsLatLong=mN});var Oy=h(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.IsLatitude=On.isLatitude=On.IS_LATITUDE=void 0;var wy=x(),vN=Rf();On.IS_LATITUDE="isLatitude";function Ty(e){return(typeof e=="number"||typeof e=="string")&&(0,vN.isLatLong)(`${e},0`)}On.isLatitude=Ty;function _N(e){return(0,wy.ValidateBy)({name:On.IS_LATITUDE,validator:{validate:(t,r)=>Ty(t),defaultMessage:(0,wy.buildMessage)(t=>t+"$property must be a latitude string or number",e)}},e)}On.IsLatitude=_N});var Dy=h(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.IsLongitude=xn.isLongitude=xn.IS_LONGITUDE=void 0;var xy=x(),AN=Rf();xn.IS_LONGITUDE="isLongitude";function Fy(e){return(typeof e=="number"||typeof e=="string")&&(0,AN.isLatLong)(`0,${e}`)}xn.isLongitude=Fy;function $N(e){return(0,xy.ValidateBy)({name:xn.IS_LONGITUDE,validator:{validate:(t,r)=>Fy(t),defaultMessage:(0,xy.buildMessage)(t=>t+"$property must be a longitude string or number",e)}},e)}xn.IsLongitude=$N});var Ly=h(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.Equals=Fn.equals=Fn.EQUALS=void 0;var By=x();Fn.EQUALS="equals";function Ry(e,t){return e===t}Fn.equals=Ry;function bN(e,t){return(0,By.ValidateBy)({name:Fn.EQUALS,constraints:[e],validator:{validate:(r,n)=>Ry(r,n.constraints[0]),defaultMessage:(0,By.buildMessage)(r=>r+"$property must be equal to $constraint1",t)}},t)}Fn.Equals=bN});var Vy=h(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.NotEquals=Dn.notEquals=Dn.NOT_EQUALS=void 0;var qy=x();Dn.NOT_EQUALS="notEquals";function Uy(e,t){return e!==t}Dn.notEquals=Uy;function EN(e,t){return(0,qy.ValidateBy)({name:Dn.NOT_EQUALS,constraints:[e],validator:{validate:(r,n)=>Uy(r,n.constraints[0]),defaultMessage:(0,qy.buildMessage)(r=>r+"$property should not be equal to $constraint1",t)}},t)}Dn.NotEquals=EN});var Gy=h(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.IsEmpty=Bn.isEmpty=Bn.IS_EMPTY=void 0;var ky=x();Bn.IS_EMPTY="isEmpty";function Hy(e){return e===""||e===null||e===void 0}Bn.isEmpty=Hy;function MN(e){return(0,ky.ValidateBy)({name:Bn.IS_EMPTY,validator:{validate:(t,r)=>Hy(t),defaultMessage:(0,ky.buildMessage)(t=>t+"$property must be empty",e)}},e)}Bn.IsEmpty=MN});var Wy=h(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.IsNotEmpty=Rn.isNotEmpty=Rn.IS_NOT_EMPTY=void 0;var Zy=x();Rn.IS_NOT_EMPTY="isNotEmpty";function jy(e){return e!==""&&e!==null&&e!==void 0}Rn.isNotEmpty=jy;function NN(e){return(0,Zy.ValidateBy)({name:Rn.IS_NOT_EMPTY,validator:{validate:(t,r)=>jy(t),defaultMessage:(0,Zy.buildMessage)(t=>t+"$property should not be empty",e)}},e)}Rn.IsNotEmpty=NN});var Ky=h(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.IsIn=Ln.isIn=Ln.IS_IN=void 0;var zy=x();Ln.IS_IN="isIn";function Yy(e,t){return!Array.isArray(t)||t.some(r=>r===e)}Ln.isIn=Yy;function SN(e,t){return(0,zy.ValidateBy)({name:Ln.IS_IN,constraints:[e],validator:{validate:(r,n)=>Yy(r,n.constraints[0]),defaultMessage:(0,zy.buildMessage)(r=>r+"$property must be one of the following values: $constraint1",t)}},t)}Ln.IsIn=SN});var Xy=h(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.IsNotIn=qn.isNotIn=qn.IS_NOT_IN=void 0;var Jy=x();qn.IS_NOT_IN="isNotIn";function Qy(e,t){return!Array.isArray(t)||!t.some(r=>r===e)}qn.isNotIn=Qy;function IN(e,t){return(0,Jy.ValidateBy)({name:qn.IS_NOT_IN,constraints:[e],validator:{validate:(r,n)=>Qy(r,n.constraints[0]),defaultMessage:(0,Jy.buildMessage)(r=>r+"$property should not be one of the following values: $constraint1",t)}},t)}qn.IsNotIn=IN});var Ka=h(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.commaDecimal=at.dotDecimal=at.farsiLocales=at.arabicLocales=at.englishLocales=at.decimal=at.alphanumeric=at.alpha=void 0;var Nt={"en-US":/^[A-Z]+$/i,"az-AZ":/^[A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[А-Я]+$/i,"cs-CZ":/^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[A-ZÆØÅ]+$/i,"de-DE":/^[A-ZÄÖÜß]+$/i,"el-GR":/^[Α-ώ]+$/i,"es-ES":/^[A-ZÁÉÍÑÓÚÜ]+$/i,"fa-IR":/^[ابپتثجچحخدذرزژسشصضطظعغفقکگلمنوهی]+$/i,"fi-FI":/^[A-ZÅÄÖ]+$/i,"fr-FR":/^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[A-ZÀÉÈÌÎÓÒÙ]+$/i,"nb-NO":/^[A-ZÆØÅ]+$/i,"nl-NL":/^[A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[A-ZÆØÅ]+$/i,"hu-HU":/^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"pl-PL":/^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[А-ЯЁ]+$/i,"sl-SI":/^[A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๐\s]+$/i,"tr-TR":/^[A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[А-ЩЬЮЯЄIЇҐі]+$/i,"vi-VN":/^[A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,"ku-IQ":/^[ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,ar:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[א-ת]+$/,fa:/^['آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی']+$/i,"hi-IN":/^[\u0900-\u0961]+[\u0972-\u097F]*$/i};at.alpha=Nt;var St={"en-US":/^[0-9A-Z]+$/i,"az-AZ":/^[0-9A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[0-9А-Я]+$/i,"cs-CZ":/^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[0-9A-ZÆØÅ]+$/i,"de-DE":/^[0-9A-ZÄÖÜß]+$/i,"el-GR":/^[0-9Α-ω]+$/i,"es-ES":/^[0-9A-ZÁÉÍÑÓÚÜ]+$/i,"fi-FI":/^[0-9A-ZÅÄÖ]+$/i,"fr-FR":/^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[0-9A-ZÀÉÈÌÎÓÒÙ]+$/i,"hu-HU":/^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"nb-NO":/^[0-9A-ZÆØÅ]+$/i,"nl-NL":/^[0-9A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[0-9A-ZÆØÅ]+$/i,"pl-PL":/^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[0-9A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[0-9А-ЯЁ]+$/i,"sl-SI":/^[0-9A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[0-9A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[0-9A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[0-9А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[0-9A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๙\s]+$/i,"tr-TR":/^[0-9A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[0-9А-ЩЬЮЯЄIЇҐі]+$/i,"ku-IQ":/^[٠١٢٣٤٥٦٧٨٩0-9ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,"vi-VN":/^[0-9A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,ar:/^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[0-9א-ת]+$/,fa:/^['0-9آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی۱۲۳۴۵۶۷۸۹۰']+$/i,"hi-IN":/^[\u0900-\u0963]+[\u0966-\u097F]*$/i};at.alphanumeric=St;var $t={"en-US":".",ar:"\u066B"};at.decimal=$t;var _0=["AU","GB","HK","IN","NZ","ZA","ZM"];at.englishLocales=_0;for(Lf=0;Lf<_0.length;Lf++)Su="en-".concat(_0[Lf]),Nt[Su]=Nt["en-US"],St[Su]=St["en-US"],$t[Su]=$t["en-US"];var Su,Lf,A0=["AE","BH","DZ","EG","IQ","JO","KW","LB","LY","MA","QM","QA","SA","SD","SY","TN","YE"];at.arabicLocales=A0;for(qf=0;qf<A0.length;qf++)Iu="ar-".concat(A0[qf]),Nt[Iu]=Nt.ar,St[Iu]=St.ar,$t[Iu]=$t.ar;var Iu,qf,$0=["IR","AF"];at.farsiLocales=$0;for(Vf=0;Vf<$0.length;Vf++)Uf="fa-".concat($0[Vf]),St[Uf]=St.fa,$t[Uf]=$t.ar;var Uf,Vf,b0=["ar-EG","ar-LB","ar-LY"];at.dotDecimal=b0;var E0=["bg-BG","cs-CZ","da-DK","de-DE","el-GR","en-ZM","es-ES","fr-CA","fr-FR","id-ID","it-IT","ku-IQ","hi-IN","hu-HU","nb-NO","nn-NO","nl-NL","pl-PL","pt-PT","ru-RU","sl-SI","sr-RS@latin","sr-RS","sv-SE","tr-TR","uk-UA","vi-VN"];at.commaDecimal=E0;for(kf=0;kf<b0.length;kf++)$t[b0[kf]]=$t["en-US"];var kf;for(Hf=0;Hf<E0.length;Hf++)$t[E0[Hf]]=",";var Hf;Nt["fr-CA"]=Nt["fr-FR"];St["fr-CA"]=St["fr-FR"];Nt["pt-BR"]=Nt["pt-PT"];St["pt-BR"]=St["pt-PT"];$t["pt-BR"]=$t["pt-PT"];Nt["pl-Pl"]=Nt["pl-PL"];St["pl-Pl"]=St["pl-PL"];$t["pl-Pl"]=$t["pl-PL"];Nt["fa-AF"]=Nt.fa});var tm=h(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.default=wN;Cu.locales=void 0;var CN=PN(U()),em=Ka();function PN(e){return e&&e.__esModule?e:{default:e}}function wN(e,t){(0,CN.default)(e),t=t||{};var r=new RegExp("^(?:[-+])?(?:[0-9]+)?(?:\\".concat(t.locale?em.decimal[t.locale]:".","[0-9]*)?(?:[eE][\\+\\-]?(?:[0-9]+))?$"));if(e===""||e==="."||e==="-"||e==="+")return!1;var n=parseFloat(e.replace(",","."));return r.test(e)&&(!t.hasOwnProperty("min")||n>=t.min)&&(!t.hasOwnProperty("max")||n<=t.max)&&(!t.hasOwnProperty("lt")||n<t.lt)&&(!t.hasOwnProperty("gt")||n>t.gt)}var TN=Object.keys(em.decimal);Cu.locales=TN});var rm=h((Pu,M0)=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});Pu.default=FN;var ON=xN(tm());function xN(e){return e&&e.__esModule?e:{default:e}}function FN(e){return(0,ON.default)(e)?parseFloat(e):NaN}M0.exports=Pu.default;M0.exports.default=Pu.default});var im=h((wu,N0)=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});wu.default=RN;var DN=nm(U()),BN=nm(rm());function nm(e){return e&&e.__esModule?e:{default:e}}function RN(e,t){return(0,DN.default)(e),(0,BN.default)(e)%parseInt(t,10)===0}N0.exports=wu.default;N0.exports.default=wu.default});var om=h(Wt=>{"use strict";var LN=Wt&&Wt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Wt,"__esModule",{value:!0});Wt.IsDivisibleBy=Wt.isDivisibleBy=Wt.IS_DIVISIBLE_BY=void 0;var am=x(),qN=LN(im());Wt.IS_DIVISIBLE_BY="isDivisibleBy";function um(e,t){return typeof e=="number"&&typeof t=="number"&&(0,qN.default)(String(e),t)}Wt.isDivisibleBy=um;function UN(e,t){return(0,am.ValidateBy)({name:Wt.IS_DIVISIBLE_BY,constraints:[e],validator:{validate:(r,n)=>um(r,n.constraints[0]),defaultMessage:(0,am.buildMessage)(r=>r+"$property must be divisible by $constraint1",t)}},t)}Wt.IsDivisibleBy=UN});var dm=h(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.IsPositive=Un.isPositive=Un.IS_POSITIVE=void 0;var sm=x();Un.IS_POSITIVE="isPositive";function fm(e){return typeof e=="number"&&e>0}Un.isPositive=fm;function VN(e){return(0,sm.ValidateBy)({name:Un.IS_POSITIVE,validator:{validate:(t,r)=>fm(t),defaultMessage:(0,sm.buildMessage)(t=>t+"$property must be a positive number",e)}},e)}Un.IsPositive=VN});var hm=h(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.IsNegative=Vn.isNegative=Vn.IS_NEGATIVE=void 0;var lm=x();Vn.IS_NEGATIVE="isNegative";function cm(e){return typeof e=="number"&&e<0}Vn.isNegative=cm;function kN(e){return(0,lm.ValidateBy)({name:Vn.IS_NEGATIVE,validator:{validate:(t,r)=>cm(t),defaultMessage:(0,lm.buildMessage)(t=>t+"$property must be a negative number",e)}},e)}Vn.IsNegative=kN});var ym=h(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.Max=kn.max=kn.MAX=void 0;var pm=x();kn.MAX="max";function gm(e,t){return typeof e=="number"&&typeof t=="number"&&e<=t}kn.max=gm;function HN(e,t){return(0,pm.ValidateBy)({name:kn.MAX,constraints:[e],validator:{validate:(r,n)=>gm(r,n.constraints[0]),defaultMessage:(0,pm.buildMessage)(r=>r+"$property must not be greater than $constraint1",t)}},t)}kn.Max=HN});var _m=h(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.Min=Hn.min=Hn.MIN=void 0;var mm=x();Hn.MIN="min";function vm(e,t){return typeof e=="number"&&typeof t=="number"&&e>=t}Hn.min=vm;function GN(e,t){return(0,mm.ValidateBy)({name:Hn.MIN,constraints:[e],validator:{validate:(r,n)=>vm(r,n.constraints[0]),defaultMessage:(0,mm.buildMessage)(r=>r+"$property must not be less than $constraint1",t)}},t)}Hn.Min=GN});var bm=h(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.MinDate=Gn.minDate=Gn.MIN_DATE=void 0;var Am=x();Gn.MIN_DATE="minDate";function $m(e,t){return e instanceof Date&&e.getTime()>=t.getTime()}Gn.minDate=$m;function ZN(e,t){return(0,Am.ValidateBy)({name:Gn.MIN_DATE,constraints:[e],validator:{validate:(r,n)=>$m(r,n.constraints[0]),defaultMessage:(0,Am.buildMessage)(r=>"minimal allowed date for "+r+"$property is $constraint1",t)}},t)}Gn.MinDate=ZN});var Nm=h(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.MaxDate=Zn.maxDate=Zn.MAX_DATE=void 0;var Em=x();Zn.MAX_DATE="maxDate";function Mm(e,t){return e instanceof Date&&e.getTime()<=t.getTime()}Zn.maxDate=Mm;function jN(e,t){return(0,Em.ValidateBy)({name:Zn.MAX_DATE,constraints:[e],validator:{validate:(r,n)=>Mm(r,n.constraints[0]),defaultMessage:(0,Em.buildMessage)(r=>"maximal allowed date for "+r+"$property is $constraint1",t)}},t)}Zn.MaxDate=jN});var Sm=h((Tu,S0)=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});Tu.default=WN;function Gf(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Gf=function(r){return typeof r}:Gf=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Gf(e)}function WN(e){return Gf(e)==="object"&&e!==null?typeof e.toString=="function"?e=e.toString():e="[object Object]":(e===null||typeof e>"u"||isNaN(e)&&!e.length)&&(e=""),String(e)}S0.exports=Tu.default;S0.exports.default=Tu.default});var P0=h((Ou,C0)=>{"use strict";Object.defineProperty(Ou,"__esModule",{value:!0});Ou.default=JN;var zN=I0(U()),Im=I0(Sm()),YN=I0(gn());function I0(e){return e&&e.__esModule?e:{default:e}}var KN={ignoreCase:!1,minOccurrences:1};function JN(e,t,r){return(0,zN.default)(e),r=(0,YN.default)(r,KN),r.ignoreCase?e.toLowerCase().split((0,Im.default)(t).toLowerCase()).length>r.minOccurrences:e.split((0,Im.default)(t)).length>r.minOccurrences}C0.exports=Ou.default;C0.exports.default=Ou.default});var wm=h(zt=>{"use strict";var QN=zt&&zt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(zt,"__esModule",{value:!0});zt.Contains=zt.contains=zt.CONTAINS=void 0;var Cm=x(),XN=QN(P0());zt.CONTAINS="contains";function Pm(e,t){return typeof e=="string"&&(0,XN.default)(e,t)}zt.contains=Pm;function eS(e,t){return(0,Cm.ValidateBy)({name:zt.CONTAINS,constraints:[e],validator:{validate:(r,n)=>Pm(r,n.constraints[0]),defaultMessage:(0,Cm.buildMessage)(r=>r+"$property must contain a $constraint1 string",t)}},t)}zt.Contains=eS});var xm=h(Yt=>{"use strict";var tS=Yt&&Yt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Yt,"__esModule",{value:!0});Yt.NotContains=Yt.notContains=Yt.NOT_CONTAINS=void 0;var Tm=x(),rS=tS(P0());Yt.NOT_CONTAINS="notContains";function Om(e,t){return typeof e=="string"&&!(0,rS.default)(e,t)}Yt.notContains=Om;function nS(e,t){return(0,Tm.ValidateBy)({name:Yt.NOT_CONTAINS,constraints:[e],validator:{validate:(r,n)=>Om(r,n.constraints[0]),defaultMessage:(0,Tm.buildMessage)(r=>r+"$property should not contain a $constraint1 string",t)}},t)}Yt.NotContains=nS});var Fm=h(xu=>{"use strict";Object.defineProperty(xu,"__esModule",{value:!0});xu.default=uS;xu.locales=void 0;var iS=aS(U()),w0=Ka();function aS(e){return e&&e.__esModule?e:{default:e}}function uS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"en-US",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};(0,iS.default)(e);var n=e,i=r.ignore;if(i)if(i instanceof RegExp)n=n.replace(i,"");else if(typeof i=="string")n=n.replace(new RegExp("[".concat(i.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"");else throw new Error("ignore should be instance of a String or RegExp");if(t in w0.alpha)return w0.alpha[t].test(n);throw new Error("Invalid locale '".concat(t,"'"))}var oS=Object.keys(w0.alpha);xu.locales=oS});var Rm=h(Kt=>{"use strict";var sS=Kt&&Kt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Kt,"__esModule",{value:!0});Kt.IsAlpha=Kt.isAlpha=Kt.IS_ALPHA=void 0;var Dm=x(),fS=sS(Fm());Kt.IS_ALPHA="isAlpha";function Bm(e,t){return typeof e=="string"&&(0,fS.default)(e,t)}Kt.isAlpha=Bm;function dS(e,t){return(0,Dm.ValidateBy)({name:Kt.IS_ALPHA,constraints:[e],validator:{validate:(r,n)=>Bm(r,n.constraints[0]),defaultMessage:(0,Dm.buildMessage)(r=>r+"$property must contain only letters (a-zA-Z)",t)}},t)}Kt.IsAlpha=dS});var Lm=h(Fu=>{"use strict";Object.defineProperty(Fu,"__esModule",{value:!0});Fu.default=hS;Fu.locales=void 0;var lS=cS(U()),T0=Ka();function cS(e){return e&&e.__esModule?e:{default:e}}function hS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"en-US",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};(0,lS.default)(e);var n=e,i=r.ignore;if(i)if(i instanceof RegExp)n=n.replace(i,"");else if(typeof i=="string")n=n.replace(new RegExp("[".concat(i.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"");else throw new Error("ignore should be instance of a String or RegExp");if(t in T0.alphanumeric)return T0.alphanumeric[t].test(n);throw new Error("Invalid locale '".concat(t,"'"))}var pS=Object.keys(T0.alphanumeric);Fu.locales=pS});var Vm=h(Jt=>{"use strict";var gS=Jt&&Jt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Jt,"__esModule",{value:!0});Jt.IsAlphanumeric=Jt.isAlphanumeric=Jt.IS_ALPHANUMERIC=void 0;var qm=x(),yS=gS(Lm());Jt.IS_ALPHANUMERIC="isAlphanumeric";function Um(e,t){return typeof e=="string"&&(0,yS.default)(e,t)}Jt.isAlphanumeric=Um;function mS(e,t){return(0,qm.ValidateBy)({name:Jt.IS_ALPHANUMERIC,constraints:[e],validator:{validate:(r,n)=>Um(r,n.constraints[0]),defaultMessage:(0,qm.buildMessage)(r=>r+"$property must contain only letters and numbers",t)}},t)}Jt.IsAlphanumeric=mS});var km=h((Ja,O0)=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});Ja.default=void 0;var vS=function(t,r){return t.some(function(n){return r===n})},_S=vS;Ja.default=_S;O0.exports=Ja.default;O0.exports.default=Ja.default});var Gm=h((Du,F0)=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});Du.default=SS;var AS=x0(gn()),$S=x0(U()),bS=x0(km()),Hm=Ka();function x0(e){return e&&e.__esModule?e:{default:e}}function ES(e){var t=new RegExp("^[-+]?([0-9]+)?(\\".concat(Hm.decimal[e.locale],"[0-9]{").concat(e.decimal_digits,"})").concat(e.force_decimal?"":"?","$"));return t}var MS={force_decimal:!1,decimal_digits:"1,",locale:"en-US"},NS=["","-","+"];function SS(e,t){if((0,$S.default)(e),t=(0,AS.default)(t,MS),t.locale in Hm.decimal)return!(0,bS.default)(NS,e.replace(/ /g,""))&&ES(t).test(e);throw new Error("Invalid locale '".concat(t.locale,"'"))}F0.exports=Du.default;F0.exports.default=Du.default});var Wm=h(Qt=>{"use strict";var IS=Qt&&Qt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Qt,"__esModule",{value:!0});Qt.IsDecimal=Qt.isDecimal=Qt.IS_DECIMAL=void 0;var Zm=x(),CS=IS(Gm());Qt.IS_DECIMAL="isDecimal";function jm(e,t){return typeof e=="string"&&(0,CS.default)(e,t)}Qt.isDecimal=jm;function PS(e,t){return(0,Zm.ValidateBy)({name:Qt.IS_DECIMAL,constraints:[e],validator:{validate:(r,n)=>jm(r,n.constraints[0]),defaultMessage:(0,Zm.buildMessage)(r=>r+"$property is not a valid decimal number.",t)}},t)}Qt.IsDecimal=PS});var zm=h((Bu,D0)=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});Bu.default=xS;var wS=TS(U());function TS(e){return e&&e.__esModule?e:{default:e}}var OS=/^[\x00-\x7F]+$/;function xS(e){return(0,wS.default)(e),OS.test(e)}D0.exports=Bu.default;D0.exports.default=Bu.default});var Jm=h(Xt=>{"use strict";var FS=Xt&&Xt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Xt,"__esModule",{value:!0});Xt.IsAscii=Xt.isAscii=Xt.IS_ASCII=void 0;var Ym=x(),DS=FS(zm());Xt.IS_ASCII="isAscii";function Km(e){return typeof e=="string"&&(0,DS.default)(e)}Xt.isAscii=Km;function BS(e){return(0,Ym.ValidateBy)({name:Xt.IS_ASCII,validator:{validate:(t,r)=>Km(t),defaultMessage:(0,Ym.buildMessage)(t=>t+"$property must contain only ASCII characters",e)}},e)}Xt.IsAscii=BS});var R0=h((Ru,B0)=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});Ru.default=kS;var RS=Qm(U()),LS=Qm(gn());function Qm(e){return e&&e.__esModule?e:{default:e}}var qS=/[^A-Z0-9+\/=]/i,US=/^[A-Z0-9_\-]*$/i,VS={urlSafe:!1};function kS(e,t){(0,RS.default)(e),t=(0,LS.default)(t,VS);var r=e.length;if(t.urlSafe)return US.test(e);if(r%4!==0||qS.test(e))return!1;var n=e.indexOf("=");return n===-1||n===r-1||n===r-2&&e[r-1]==="="}B0.exports=Ru.default;B0.exports.default=Ru.default});var t3=h(er=>{"use strict";var HS=er&&er.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(er,"__esModule",{value:!0});er.IsBase64=er.isBase64=er.IS_BASE64=void 0;var Xm=x(),GS=HS(R0());er.IS_BASE64="isBase64";function e3(e){return typeof e=="string"&&(0,GS.default)(e)}er.isBase64=e3;function ZS(e){return(0,Xm.ValidateBy)({name:er.IS_BASE64,validator:{validate:(t,r)=>e3(t),defaultMessage:(0,Xm.buildMessage)(t=>t+"$property must be base64 encoded",e)}},e)}er.IsBase64=ZS});var q0=h((Lu,L0)=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.default=zS;var jS=WS(U());function WS(e){return e&&e.__esModule?e:{default:e}}function Zf(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Zf=function(r){return typeof r}:Zf=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Zf(e)}function zS(e,t){(0,jS.default)(e);var r,n;Zf(t)==="object"?(r=t.min||0,n=t.max):(r=arguments[1],n=arguments[2]);var i=encodeURI(e).split(/%..|./).length-1;return i>=r&&(typeof n>"u"||i<=n)}L0.exports=Lu.default;L0.exports.default=Lu.default});var i3=h(tr=>{"use strict";var YS=tr&&tr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(tr,"__esModule",{value:!0});tr.IsByteLength=tr.isByteLength=tr.IS_BYTE_LENGTH=void 0;var r3=x(),KS=YS(q0());tr.IS_BYTE_LENGTH="isByteLength";function n3(e,t,r){return typeof e=="string"&&(0,KS.default)(e,{min:t,max:r})}tr.isByteLength=n3;function JS(e,t,r){return(0,r3.ValidateBy)({name:tr.IS_BYTE_LENGTH,constraints:[e,t],validator:{validate:(n,i)=>n3(n,i.constraints[0],i.constraints[1]),defaultMessage:(0,r3.buildMessage)(n=>n+"$property's byte length must fall into ($constraint1, $constraint2) range",r)}},r)}tr.IsByteLength=JS});var a3=h((qu,U0)=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.default=tI;var QS=XS(U());function XS(e){return e&&e.__esModule?e:{default:e}}var eI=/^(?:4[0-9]{12}(?:[0-9]{3,6})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12,15}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11}|6[27][0-9]{14}|^(81[0-9]{14,17}))$/;function tI(e){(0,QS.default)(e);var t=e.replace(/[- ]+/g,"");if(!eI.test(t))return!1;for(var r=0,n,i,a,u=t.length-1;u>=0;u--)n=t.substring(u,u+1),i=parseInt(n,10),a?(i*=2,i>=10?r+=i%10+1:r+=i):r+=i,a=!a;return!!(r%10===0&&t)}U0.exports=qu.default;U0.exports.default=qu.default});var s3=h(rr=>{"use strict";var rI=rr&&rr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(rr,"__esModule",{value:!0});rr.IsCreditCard=rr.isCreditCard=rr.IS_CREDIT_CARD=void 0;var u3=x(),nI=rI(a3());rr.IS_CREDIT_CARD="isCreditCard";function o3(e){return typeof e=="string"&&(0,nI.default)(e)}rr.isCreditCard=o3;function iI(e){return(0,u3.ValidateBy)({name:rr.IS_CREDIT_CARD,validator:{validate:(t,r)=>o3(t),defaultMessage:(0,u3.buildMessage)(t=>t+"$property must be a credit card",e)}},e)}rr.IsCreditCard=iI});var d3=h((Uu,V0)=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.default=fI;var aI=f3(gn()),uI=f3(U());function f3(e){return e&&e.__esModule?e:{default:e}}function oI(e){var t="\\d{".concat(e.digits_after_decimal[0],"}");e.digits_after_decimal.forEach(function($,E){E!==0&&(t="".concat(t,"|\\d{").concat($,"}"))});var r="(".concat(e.symbol.replace(/\W/,function($){return"\\".concat($)}),")").concat(e.require_symbol?"":"?"),n="-?",i="[1-9]\\d*",a="[1-9]\\d{0,2}(\\".concat(e.thousands_separator,"\\d{3})*"),u=["0",i,a],f="(".concat(u.join("|"),")?"),p="(\\".concat(e.decimal_separator,"(").concat(t,"))").concat(e.require_decimal?"":"?"),c=f+(e.allow_decimal||e.require_decimal?p:"");return e.allow_negatives&&!e.parens_for_negatives&&(e.negative_sign_after_digits?c+=n:e.negative_sign_before_digits&&(c=n+c)),e.allow_negative_sign_placeholder?c="( (?!\\-))?".concat(c):e.allow_space_after_symbol?c=" ?".concat(c):e.allow_space_after_digits&&(c+="( (?!$))?"),e.symbol_after_digits?c+=r:c=r+c,e.allow_negatives&&(e.parens_for_negatives?c="(\\(".concat(c,"\\)|").concat(c,")"):e.negative_sign_before_digits||e.negative_sign_after_digits||(c=n+c)),new RegExp("^(?!-? )(?=.*\\d)".concat(c,"$"))}var sI={symbol:"$",require_symbol:!1,allow_space_after_symbol:!1,symbol_after_digits:!1,allow_negatives:!0,parens_for_negatives:!1,negative_sign_before_digits:!1,negative_sign_after_digits:!1,allow_negative_sign_placeholder:!1,thousands_separator:",",decimal_separator:".",allow_decimal:!0,require_decimal:!1,digits_after_decimal:[2],allow_space_after_digits:!1};function fI(e,t){return(0,uI.default)(e),t=(0,aI.default)(t,sI),oI(t).test(e)}V0.exports=Uu.default;V0.exports.default=Uu.default});var h3=h(nr=>{"use strict";var dI=nr&&nr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(nr,"__esModule",{value:!0});nr.IsCurrency=nr.isCurrency=nr.IS_CURRENCY=void 0;var l3=x(),lI=dI(d3());nr.IS_CURRENCY="isCurrency";function c3(e,t){return typeof e=="string"&&(0,lI.default)(e,t)}nr.isCurrency=c3;function cI(e,t){return(0,l3.ValidateBy)({name:nr.IS_CURRENCY,constraints:[e],validator:{validate:(r,n)=>c3(r,n.constraints[0]),defaultMessage:(0,l3.buildMessage)(r=>r+"$property must be a currency",t)}},t)}nr.IsCurrency=cI});var jf=h((Vu,k0)=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});Vu.default=yI;var hI=p3(U()),pI=p3(gn());function p3(e){return e&&e.__esModule?e:{default:e}}var gI={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1};function yI(e,t){(0,hI.default)(e),t=(0,pI.default)(t,gI),t.allow_trailing_dot&&e[e.length-1]==="."&&(e=e.substring(0,e.length-1)),t.allow_wildcard===!0&&e.indexOf("*.")===0&&(e=e.substring(2));var r=e.split("."),n=r[r.length-1];return t.require_tld&&(r.length<2||!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(n)||/\s/.test(n))||!t.allow_numeric_tld&&/^\d+$/.test(n)?!1:r.every(function(i){return!(i.length>63||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(i)||/[\uff01-\uff5e]/.test(i)||/^-|-$/.test(i)||!t.allow_underscores&&/_/.test(i))})}k0.exports=Vu.default;k0.exports.default=Vu.default});var Wf=h((ku,G0)=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});ku.default=H0;var mI=vI(U());function vI(e){return e&&e.__esModule?e:{default:e}}var g3="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",Si="(".concat(g3,"[.]){3}").concat(g3),_I=new RegExp("^".concat(Si,"$")),et="(?:[0-9a-fA-F]{1,4})",AI=new RegExp("^("+"(?:".concat(et,":){7}(?:").concat(et,"|:)|")+"(?:".concat(et,":){6}(?:").concat(Si,"|:").concat(et,"|:)|")+"(?:".concat(et,":){5}(?::").concat(Si,"|(:").concat(et,"){1,2}|:)|")+"(?:".concat(et,":){4}(?:(:").concat(et,"){0,1}:").concat(Si,"|(:").concat(et,"){1,3}|:)|")+"(?:".concat(et,":){3}(?:(:").concat(et,"){0,2}:").concat(Si,"|(:").concat(et,"){1,4}|:)|")+"(?:".concat(et,":){2}(?:(:").concat(et,"){0,3}:").concat(Si,"|(:").concat(et,"){1,5}|:)|")+"(?:".concat(et,":){1}(?:(:").concat(et,"){0,4}:").concat(Si,"|(:").concat(et,"){1,6}|:)|")+"(?::((?::".concat(et,"){0,5}:").concat(Si,"|(?::").concat(et,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");function H0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if((0,mI.default)(e),t=String(t),!t)return H0(e,4)||H0(e,6);if(t==="4"){if(!_I.test(e))return!1;var r=e.split(".").sort(function(n,i){return n-i});return r[3]<=255}return t==="6"?!!AI.test(e):!1}G0.exports=ku.default;G0.exports.default=ku.default});var m3=h((Gu,j0)=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});Gu.default=xI;var $I=Hu(U()),bI=Hu(gn()),Z0=Hu(q0()),EI=Hu(jf()),y3=Hu(Wf());function Hu(e){return e&&e.__esModule?e:{default:e}}var MI={allow_display_name:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[]},NI=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,SI=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,II=/^[a-z\d]+$/,CI=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,PI=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,wI=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i,TI=254;function OI(e){var t=e.replace(/^"(.+)"$/,"$1");if(!t.trim())return!1;var r=/[\.";<>]/.test(t);if(r){if(t===e)return!1;var n=t.split('"').length===t.split('\\"').length;if(!n)return!1}return!0}function xI(e,t){if((0,$I.default)(e),t=(0,bI.default)(t,MI),t.require_display_name||t.allow_display_name){var r=e.match(NI);if(r){var n=r[1];if(e=e.replace(n,"").replace(/(^<|>$)/g,""),n.endsWith(" ")&&(n=n.substr(0,n.length-1)),!OI(n))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>TI)return!1;var i=e.split("@"),a=i.pop(),u=a.toLowerCase();if(t.host_blacklist.includes(u))return!1;var f=i.join("@");if(t.domain_specific_validation&&(u==="gmail.com"||u==="googlemail.com")){f=f.toLowerCase();var p=f.split("+")[0];if(!(0,Z0.default)(p.replace(/\./g,""),{min:6,max:30}))return!1;for(var c=p.split("."),$=0;$<c.length;$++)if(!II.test(c[$]))return!1}if(t.ignore_max_length===!1&&(!(0,Z0.default)(f,{max:64})||!(0,Z0.default)(a,{max:254})))return!1;if(!(0,EI.default)(a,{require_tld:t.require_tld})){if(!t.allow_ip_domain)return!1;if(!(0,y3.default)(a)){if(!a.startsWith("[")||!a.endsWith("]"))return!1;var E=a.substr(1,a.length-2);if(E.length===0||!(0,y3.default)(E))return!1}}if(f[0]==='"')return f=f.slice(1,f.length-1),t.allow_utf8_local_part?wI.test(f):CI.test(f);for(var C=t.allow_utf8_local_part?PI:SI,N=f.split("."),P=0;P<N.length;P++)if(!C.test(N[P]))return!1;return!(t.blacklisted_chars&&f.search(new RegExp("[".concat(t.blacklisted_chars,"]+"),"g"))!==-1)}j0.exports=Gu.default;j0.exports.default=Gu.default});var A3=h(ir=>{"use strict";var FI=ir&&ir.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ir,"__esModule",{value:!0});ir.IsEmail=ir.isEmail=ir.IS_EMAIL=void 0;var v3=x(),DI=FI(m3());ir.IS_EMAIL="isEmail";function _3(e,t){return typeof e=="string"&&(0,DI.default)(e,t)}ir.isEmail=_3;function BI(e,t){return(0,v3.ValidateBy)({name:ir.IS_EMAIL,constraints:[e],validator:{validate:(r,n)=>_3(r,n.constraints[0]),defaultMessage:(0,v3.buildMessage)(r=>r+"$property must be an email",t)}},t)}ir.IsEmail=BI});var E3=h(ar=>{"use strict";var RI=ar&&ar.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ar,"__esModule",{value:!0});ar.IsFQDN=ar.isFQDN=ar.IS_FQDN=void 0;var $3=x(),LI=RI(jf());ar.IS_FQDN="isFqdn";function b3(e,t){return typeof e=="string"&&(0,LI.default)(e,t)}ar.isFQDN=b3;function qI(e,t){return(0,$3.ValidateBy)({name:ar.IS_FQDN,constraints:[e],validator:{validate:(r,n)=>b3(r,n.constraints[0]),defaultMessage:(0,$3.buildMessage)(r=>r+"$property must be a valid domain name",t)}},t)}ar.IsFQDN=qI});var W0=h(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});Zu.default=kI;Zu.fullWidth=void 0;var UI=VI(U());function VI(e){return e&&e.__esModule?e:{default:e}}var M3=/[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;Zu.fullWidth=M3;function kI(e){return(0,UI.default)(e),M3.test(e)}});var I3=h(ur=>{"use strict";var HI=ur&&ur.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ur,"__esModule",{value:!0});ur.IsFullWidth=ur.isFullWidth=ur.IS_FULL_WIDTH=void 0;var N3=x(),GI=HI(W0());ur.IS_FULL_WIDTH="isFullWidth";function S3(e){return typeof e=="string"&&(0,GI.default)(e)}ur.isFullWidth=S3;function ZI(e){return(0,N3.ValidateBy)({name:ur.IS_FULL_WIDTH,validator:{validate:(t,r)=>S3(t),defaultMessage:(0,N3.buildMessage)(t=>t+"$property must contain a full-width characters",e)}},e)}ur.IsFullWidth=ZI});var z0=h(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.default=zI;ju.halfWidth=void 0;var jI=WI(U());function WI(e){return e&&e.__esModule?e:{default:e}}var C3=/[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;ju.halfWidth=C3;function zI(e){return(0,jI.default)(e),C3.test(e)}});var T3=h(or=>{"use strict";var YI=or&&or.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(or,"__esModule",{value:!0});or.IsHalfWidth=or.isHalfWidth=or.IS_HALF_WIDTH=void 0;var P3=x(),KI=YI(z0());or.IS_HALF_WIDTH="isHalfWidth";function w3(e){return typeof e=="string"&&(0,KI.default)(e)}or.isHalfWidth=w3;function JI(e){return(0,P3.ValidateBy)({name:or.IS_HALF_WIDTH,validator:{validate:(t,r)=>w3(t),defaultMessage:(0,P3.buildMessage)(t=>t+"$property must contain a half-width characters",e)}},e)}or.IsHalfWidth=JI});var O3=h((Wu,Y0)=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});Wu.default=rC;var QI=tC(U()),XI=W0(),eC=z0();function tC(e){return e&&e.__esModule?e:{default:e}}function rC(e){return(0,QI.default)(e),XI.fullWidth.test(e)&&eC.halfWidth.test(e)}Y0.exports=Wu.default;Y0.exports.default=Wu.default});var D3=h(sr=>{"use strict";var nC=sr&&sr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(sr,"__esModule",{value:!0});sr.IsVariableWidth=sr.isVariableWidth=sr.IS_VARIABLE_WIDTH=void 0;var x3=x(),iC=nC(O3());sr.IS_VARIABLE_WIDTH="isVariableWidth";function F3(e){return typeof e=="string"&&(0,iC.default)(e)}sr.isVariableWidth=F3;function aC(e){return(0,x3.ValidateBy)({name:sr.IS_VARIABLE_WIDTH,validator:{validate:(t,r)=>F3(t),defaultMessage:(0,x3.buildMessage)(t=>t+"$property must contain a full-width and half-width characters",e)}},e)}sr.IsVariableWidth=aC});var B3=h((zu,K0)=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});zu.default=fC;var uC=oC(U());function oC(e){return e&&e.__esModule?e:{default:e}}var sC=/^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;function fC(e){return(0,uC.default)(e),sC.test(e)}K0.exports=zu.default;K0.exports.default=zu.default});var q3=h(fr=>{"use strict";var dC=fr&&fr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fr,"__esModule",{value:!0});fr.IsHexColor=fr.isHexColor=fr.IS_HEX_COLOR=void 0;var R3=x(),lC=dC(B3());fr.IS_HEX_COLOR="isHexColor";function L3(e){return typeof e=="string"&&(0,lC.default)(e)}fr.isHexColor=L3;function cC(e){return(0,R3.ValidateBy)({name:fr.IS_HEX_COLOR,validator:{validate:(t,r)=>L3(t),defaultMessage:(0,R3.buildMessage)(t=>t+"$property must be a hexadecimal color",e)}},e)}fr.IsHexColor=cC});var Q0=h((Yu,J0)=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.default=yC;var hC=pC(U());function pC(e){return e&&e.__esModule?e:{default:e}}var gC=/^(0x|0h)?[0-9A-F]+$/i;function yC(e){return(0,hC.default)(e),gC.test(e)}J0.exports=Yu.default;J0.exports.default=Yu.default});var k3=h(dr=>{"use strict";var mC=dr&&dr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(dr,"__esModule",{value:!0});dr.IsHexadecimal=dr.isHexadecimal=dr.IS_HEXADECIMAL=void 0;var U3=x(),vC=mC(Q0());dr.IS_HEXADECIMAL="isHexadecimal";function V3(e){return typeof e=="string"&&(0,vC.default)(e)}dr.isHexadecimal=V3;function _C(e){return(0,U3.ValidateBy)({name:dr.IS_HEXADECIMAL,validator:{validate:(t,r)=>V3(t),defaultMessage:(0,U3.buildMessage)(t=>t+"$property must be a hexadecimal number",e)}},e)}dr.IsHexadecimal=_C});var X0=h(zf=>{"use strict";Object.defineProperty(zf,"__esModule",{value:!0});zf.isValidationOptions=void 0;function AC(e){return e?"each"in e||"message"in e||"groups"in e||"always"in e||"context"in e:!1}zf.isValidationOptions=AC});var H3=h((Ku,ec)=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});Ku.default=SC;var $C=bC(U());function bC(e){return e&&e.__esModule?e:{default:e}}var EC=/^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){4}([0-9a-fA-F]{2})$/,MC=/^([0-9a-fA-F]){12}$/,NC=/^([0-9a-fA-F]{4}\.){2}([0-9a-fA-F]{4})$/;function SC(e,t){return(0,$C.default)(e),t&&(t.no_colons||t.no_separators)?MC.test(e):EC.test(e)||NC.test(e)}ec.exports=Ku.default;ec.exports.default=Ku.default});var W3=h(lr=>{"use strict";var IC=lr&&lr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(lr,"__esModule",{value:!0});lr.IsMACAddress=lr.isMACAddress=lr.IS_MAC_ADDRESS=void 0;var G3=X0(),Z3=x(),CC=IC(H3());lr.IS_MAC_ADDRESS="isMacAddress";function j3(e,t){return typeof e=="string"&&(0,CC.default)(e,t)}lr.isMACAddress=j3;function PC(e,t){let r=(0,G3.isValidationOptions)(e)?void 0:e,n=(0,G3.isValidationOptions)(e)?e:t;return(0,Z3.ValidateBy)({name:lr.IS_MAC_ADDRESS,constraints:[r],validator:{validate:(i,a)=>j3(i,r),defaultMessage:(0,Z3.buildMessage)(i=>i+"$property must be a MAC Address",n)}},n)}lr.IsMACAddress=PC});var K3=h(cr=>{"use strict";var wC=cr&&cr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(cr,"__esModule",{value:!0});cr.IsIP=cr.isIP=cr.IS_IP=void 0;var z3=x(),TC=wC(Wf());cr.IS_IP="isIp";function Y3(e,t){let r=t?`${t}`:void 0;return typeof e=="string"&&(0,TC.default)(e,r)}cr.isIP=Y3;function OC(e,t){return(0,z3.ValidateBy)({name:cr.IS_IP,constraints:[e],validator:{validate:(r,n)=>Y3(r,n.constraints[0]),defaultMessage:(0,z3.buildMessage)(r=>r+"$property must be an ip address",t)}},t)}cr.IsIP=OC});var rc=h((Ju,tc)=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});Ju.default=RC;var xC=FC(U());function FC(e){return e&&e.__esModule?e:{default:e}}var DC=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,BC=/^[-+]?[0-9]+$/;function RC(e,t){(0,xC.default)(e),t=t||{};var r=t.hasOwnProperty("allow_leading_zeroes")&&!t.allow_leading_zeroes?DC:BC,n=!t.hasOwnProperty("min")||e>=t.min,i=!t.hasOwnProperty("max")||e<=t.max,a=!t.hasOwnProperty("lt")||e<t.lt,u=!t.hasOwnProperty("gt")||e>t.gt;return r.test(e)&&n&&i&&a&&u}tc.exports=Ju.default;tc.exports.default=Ju.default});var J3=h((Qu,nc)=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});Qu.default=UC;var LC=qC(rc());function qC(e){return e&&e.__esModule?e:{default:e}}function UC(e){return(0,LC.default)(e,{min:0,max:65535})}nc.exports=Qu.default;nc.exports.default=Qu.default});var ev=h(hr=>{"use strict";var VC=hr&&hr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(hr,"__esModule",{value:!0});hr.IsPort=hr.isPort=hr.IS_PORT=void 0;var Q3=x(),kC=VC(J3());hr.IS_PORT="isPort";function X3(e){return typeof e=="string"&&(0,kC.default)(e)}hr.isPort=X3;function HC(e){return(0,Q3.ValidateBy)({name:hr.IS_PORT,validator:{validate:(t,r)=>X3(t),defaultMessage:(0,Q3.buildMessage)(t=>t+"$property must be a port",e)}},e)}hr.IsPort=HC});var tv=h((Xu,ac)=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});Xu.default=ic;var GC=ZC(U());function ZC(e){return e&&e.__esModule?e:{default:e}}var jC=/^(?:[0-9]{9}X|[0-9]{10})$/,WC=/^(?:[0-9]{13})$/,zC=[1,3];function ic(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if((0,GC.default)(e),t=String(t),!t)return ic(e,10)||ic(e,13);var r=e.replace(/[\s-]+/g,""),n=0,i;if(t==="10"){if(!jC.test(r))return!1;for(i=0;i<9;i++)n+=(i+1)*r.charAt(i);if(r.charAt(9)==="X"?n+=10*10:n+=10*r.charAt(9),n%11===0)return!!r}else if(t==="13"){if(!WC.test(r))return!1;for(i=0;i<12;i++)n+=zC[i%2]*r.charAt(i);if(r.charAt(12)-(10-n%10)%10===0)return!!r}return!1}ac.exports=Xu.default;ac.exports.default=Xu.default});var iv=h(pr=>{"use strict";var YC=pr&&pr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pr,"__esModule",{value:!0});pr.IsISBN=pr.isISBN=pr.IS_ISBN=void 0;var rv=x(),KC=YC(tv());pr.IS_ISBN="isIsbn";function nv(e,t){let r=t?`${t}`:void 0;return typeof e=="string"&&(0,KC.default)(e,r)}pr.isISBN=nv;function JC(e,t){return(0,rv.ValidateBy)({name:pr.IS_ISBN,constraints:[e],validator:{validate:(r,n)=>nv(r,n.constraints[0]),defaultMessage:(0,rv.buildMessage)(r=>r+"$property must be an ISBN",t)}},t)}pr.IsISBN=JC});var av=h((eo,uc)=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.default=tP;var QC=XC(U());function XC(e){return e&&e.__esModule?e:{default:e}}var eP=/^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;function tP(e){if((0,QC.default)(e),!eP.test(e))return!1;for(var t=!0,r=0,n=e.length-2;n>=0;n--)if(e[n]>="A"&&e[n]<="Z")for(var i=e[n].charCodeAt(0)-55,a=i%10,u=Math.trunc(i/10),f=0,p=[a,u];f<p.length;f++){var c=p[f];t?c>=5?r+=1+(c-5)*2:r+=c*2:r+=c,t=!t}else{var $=e[n].charCodeAt(0)-"0".charCodeAt(0);t?$>=5?r+=1+($-5)*2:r+=$*2:r+=$,t=!t}var E=Math.trunc((r+9)/10)*10-r;return+e[e.length-1]===E}uc.exports=eo.default;uc.exports.default=eo.default});var sv=h(gr=>{"use strict";var rP=gr&&gr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(gr,"__esModule",{value:!0});gr.IsISIN=gr.isISIN=gr.IS_ISIN=void 0;var uv=x(),nP=rP(av());gr.IS_ISIN="isIsin";function ov(e){return typeof e=="string"&&(0,nP.default)(e)}gr.isISIN=ov;function iP(e){return(0,uv.ValidateBy)({name:gr.IS_ISIN,validator:{validate:(t,r)=>ov(t),defaultMessage:(0,uv.buildMessage)(t=>t+"$property must be an ISIN (stock/security identifier)",e)}},e)}gr.IsISIN=iP});var fv=h((to,oc)=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.default=dP;var aP=uP(U());function uP(e){return e&&e.__esModule?e:{default:e}}var oP=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,sP=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,fP=function(t){var r=t.match(/^(\d{4})-?(\d{3})([ T]{1}\.*|$)/);if(r){var n=Number(r[1]),i=Number(r[2]);return n%4===0&&n%100!==0||n%400===0?i<=366:i<=365}var a=t.match(/(\d{4})-?(\d{0,2})-?(\d*)/).map(Number),u=a[1],f=a[2],p=a[3],c=f&&"0".concat(f).slice(-2),$=p&&"0".concat(p).slice(-2),E=new Date("".concat(u,"-").concat(c||"01","-").concat($||"01"));return f&&p?E.getUTCFullYear()===u&&E.getUTCMonth()+1===f&&E.getUTCDate()===p:!0};function dP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,aP.default)(e);var r=t.strictSeparator?sP.test(e):oP.test(e);return r&&t.strict?fP(e):r}oc.exports=to.default;oc.exports.default=to.default});var sc=h(yr=>{"use strict";var lP=yr&&yr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(yr,"__esModule",{value:!0});yr.IsISO8601=yr.isISO8601=yr.IS_ISO8601=void 0;var dv=x(),cP=lP(fv());yr.IS_ISO8601="isIso8601";function lv(e,t){return typeof e=="string"&&(0,cP.default)(e,t)}yr.isISO8601=lv;function hP(e,t){return(0,dv.ValidateBy)({name:yr.IS_ISO8601,constraints:[e],validator:{validate:(r,n)=>lv(r,n.constraints[0]),defaultMessage:(0,dv.buildMessage)(r=>r+"$property must be a valid ISO 8601 date string",t)}},t)}yr.IsISO8601=hP});var hv=h((ro,fc)=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.default=mP;var pP=cv(U()),gP=cv(gn());function cv(e){return e&&e.__esModule?e:{default:e}}function Yf(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Yf=function(r){return typeof r}:Yf=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Yf(e)}var yP={allow_primitives:!1};function mP(e,t){(0,pP.default)(e);try{t=(0,gP.default)(t,yP);var r=[];t.allow_primitives&&(r=[null,!1,!0]);var n=JSON.parse(e);return r.includes(n)||!!n&&Yf(n)==="object"}catch{}return!1}fc.exports=ro.default;fc.exports.default=ro.default});var yv=h(mr=>{"use strict";var vP=mr&&mr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(mr,"__esModule",{value:!0});mr.IsJSON=mr.isJSON=mr.IS_JSON=void 0;var pv=x(),_P=vP(hv());mr.IS_JSON="isJson";function gv(e){return typeof e=="string"&&(0,_P.default)(e)}mr.isJSON=gv;function AP(e){return(0,pv.ValidateBy)({name:mr.IS_JSON,validator:{validate:(t,r)=>gv(t),defaultMessage:(0,pv.buildMessage)(t=>t+"$property must be a json string",e)}},e)}mr.IsJSON=AP});var vv=h((no,dc)=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.default=EP;var $P=mv(U()),bP=mv(R0());function mv(e){return e&&e.__esModule?e:{default:e}}function EP(e){(0,$P.default)(e);var t=e.split("."),r=t.length;return r>3||r<2?!1:t.reduce(function(n,i){return n&&(0,bP.default)(i,{urlSafe:!0})},!0)}dc.exports=no.default;dc.exports.default=no.default});var $v=h(vr=>{"use strict";var MP=vr&&vr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vr,"__esModule",{value:!0});vr.IsJWT=vr.isJWT=vr.IS_JWT=void 0;var _v=x(),NP=MP(vv());vr.IS_JWT="isJwt";function Av(e){return typeof e=="string"&&(0,NP.default)(e)}vr.isJWT=Av;function SP(e){return(0,_v.ValidateBy)({name:vr.IS_JWT,validator:{validate:(t,r)=>Av(t),defaultMessage:(0,_v.buildMessage)(t=>t+"$property must be a jwt string",e)}},e)}vr.IsJWT=SP});var bv=h((io,lc)=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.default=PP;var IP=CP(U());function CP(e){return e&&e.__esModule?e:{default:e}}function PP(e){return(0,IP.default)(e),e===e.toLowerCase()}lc.exports=io.default;lc.exports.default=io.default});var Nv=h(_r=>{"use strict";var wP=_r&&_r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_r,"__esModule",{value:!0});_r.IsLowercase=_r.isLowercase=_r.IS_LOWERCASE=void 0;var Ev=x(),TP=wP(bv());_r.IS_LOWERCASE="isLowercase";function Mv(e){return typeof e=="string"&&(0,TP.default)(e)}_r.isLowercase=Mv;function OP(e){return(0,Ev.ValidateBy)({name:_r.IS_LOWERCASE,validator:{validate:(t,r)=>Mv(t),defaultMessage:(0,Ev.buildMessage)(t=>t+"$property must be a lowercase string",e)}},e)}_r.IsLowercase=OP});var Sv=h(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.default=DP;ao.locales=void 0;var xP=FP(U());function FP(e){return e&&e.__esModule?e:{default:e}}var Ue={"am-AM":/^(\+?374|0)((10|[9|7][0-9])\d{6}$|[2-4]\d{7}$)/,"ar-AE":/^((\+?971)|0)?5[024568]\d{7}$/,"ar-BH":/^(\+?973)?(3|6)\d{7}$/,"ar-DZ":/^(\+?213|0)(5|6|7)\d{8}$/,"ar-LB":/^(\+?961)?((3|81)\d{6}|7\d{7})$/,"ar-EG":/^((\+?20)|0)?1[0125]\d{8}$/,"ar-IQ":/^(\+?964|0)?7[0-9]\d{8}$/,"ar-JO":/^(\+?962|0)?7[789]\d{7}$/,"ar-KW":/^(\+?965)[569]\d{7}$/,"ar-LY":/^((\+?218)|0)?(9[1-6]\d{7}|[1-8]\d{7,9})$/,"ar-MA":/^(?:(?:\+|00)212|0)[5-7]\d{8}$/,"ar-OM":/^((\+|00)968)?(9[1-9])\d{6}$/,"ar-PS":/^(\+?970|0)5[6|9](\d{7})$/,"ar-SA":/^(!?(\+?966)|0)?5\d{8}$/,"ar-SY":/^(!?(\+?963)|0)?9\d{8}$/,"ar-TN":/^(\+?216)?[2459]\d{7}$/,"az-AZ":/^(\+994|0)(5[015]|7[07]|99)\d{7}$/,"bs-BA":/^((((\+|00)3876)|06))((([0-3]|[5-6])\d{6})|(4\d{7}))$/,"be-BY":/^(\+?375)?(24|25|29|33|44)\d{7}$/,"bg-BG":/^(\+?359|0)?8[789]\d{7}$/,"bn-BD":/^(\+?880|0)1[13456789][0-9]{8}$/,"ca-AD":/^(\+376)?[346]\d{5}$/,"cs-CZ":/^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"da-DK":/^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,"de-DE":/^((\+49|0)[1|3])([0|5][0-45-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7,9}$/,"de-AT":/^(\+43|0)\d{1,4}\d{3,12}$/,"de-CH":/^(\+41|0)([1-9])\d{1,9}$/,"de-LU":/^(\+352)?((6\d1)\d{6})$/,"dv-MV":/^(\+?960)?(7[2-9]|91|9[3-9])\d{7}$/,"el-GR":/^(\+?30|0)?(69\d{8})$/,"en-AU":/^(\+?61|0)4\d{8}$/,"en-BM":/^(\+?1)?441(((3|7)\d{6}$)|(5[0-3][0-9]\d{4}$)|(59\d{5}))/,"en-GB":/^(\+?44|0)7\d{9}$/,"en-GG":/^(\+?44|0)1481\d{6}$/,"en-GH":/^(\+233|0)(20|50|24|54|27|57|26|56|23|28|55|59)\d{7}$/,"en-GY":/^(\+592|0)6\d{6}$/,"en-HK":/^(\+?852[-\s]?)?[456789]\d{3}[-\s]?\d{4}$/,"en-MO":/^(\+?853[-\s]?)?[6]\d{3}[-\s]?\d{4}$/,"en-IE":/^(\+?353|0)8[356789]\d{7}$/,"en-IN":/^(\+?91|0)?[6789]\d{9}$/,"en-KE":/^(\+?254|0)(7|1)\d{8}$/,"en-KI":/^((\+686|686)?)?( )?((6|7)(2|3|8)[0-9]{6})$/,"en-MT":/^(\+?356|0)?(99|79|77|21|27|22|25)[0-9]{6}$/,"en-MU":/^(\+?230|0)?\d{8}$/,"en-NA":/^(\+?264|0)(6|8)\d{7}$/,"en-NG":/^(\+?234|0)?[789]\d{9}$/,"en-NZ":/^(\+?64|0)[28]\d{7,9}$/,"en-PK":/^((00|\+)?92|0)3[0-6]\d{8}$/,"en-PH":/^(09|\+639)\d{9}$/,"en-RW":/^(\+?250|0)?[7]\d{8}$/,"en-SG":/^(\+65)?[3689]\d{7}$/,"en-SL":/^(\+?232|0)\d{8}$/,"en-TZ":/^(\+?255|0)?[67]\d{8}$/,"en-UG":/^(\+?256|0)?[7]\d{8}$/,"en-US":/^((\+1|1)?( |-)?)?(\([2-9][0-9]{2}\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/,"en-ZA":/^(\+?27|0)\d{9}$/,"en-ZM":/^(\+?26)?09[567]\d{7}$/,"en-ZW":/^(\+263)[0-9]{9}$/,"en-BW":/^(\+?267)?(7[1-8]{1})\d{6}$/,"es-AR":/^\+?549(11|[2368]\d)\d{8}$/,"es-BO":/^(\+?591)?(6|7)\d{7}$/,"es-CO":/^(\+?57)?3(0(0|1|2|4|5)|1\d|2[0-4]|5(0|1))\d{7}$/,"es-CL":/^(\+?56|0)[2-9]\d{1}\d{7}$/,"es-CR":/^(\+506)?[2-8]\d{7}$/,"es-CU":/^(\+53|0053)?5\d{7}/,"es-DO":/^(\+?1)?8[024]9\d{7}$/,"es-HN":/^(\+?504)?[9|8]\d{7}$/,"es-EC":/^(\+?593|0)([2-7]|9[2-9])\d{7}$/,"es-ES":/^(\+?34)?[6|7]\d{8}$/,"es-PE":/^(\+?51)?9\d{8}$/,"es-MX":/^(\+?52)?(1|01)?\d{10,11}$/,"es-PA":/^(\+?507)\d{7,8}$/,"es-PY":/^(\+?595|0)9[9876]\d{7}$/,"es-SV":/^(\+?503)?[67]\d{7}$/,"es-UY":/^(\+598|0)9[1-9][\d]{6}$/,"es-VE":/^(\+?58)?(2|4)\d{9}$/,"et-EE":/^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/,"fa-IR":/^(\+?98[\-\s]?|0)9[0-39]\d[\-\s]?\d{3}[\-\s]?\d{4}$/,"fi-FI":/^(\+?358|0)\s?(4(0|1|2|4|5|6)?|50)\s?(\d\s?){4,8}\d$/,"fj-FJ":/^(\+?679)?\s?\d{3}\s?\d{4}$/,"fo-FO":/^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"fr-BF":/^(\+226|0)[67]\d{7}$/,"fr-CM":/^(\+?237)6[0-9]{8}$/,"fr-FR":/^(\+?33|0)[67]\d{8}$/,"fr-GF":/^(\+?594|0|00594)[67]\d{8}$/,"fr-GP":/^(\+?590|0|00590)[67]\d{8}$/,"fr-MQ":/^(\+?596|0|00596)[67]\d{8}$/,"fr-PF":/^(\+?689)?8[789]\d{6}$/,"fr-RE":/^(\+?262|0|00262)[67]\d{8}$/,"he-IL":/^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}$/,"hu-HU":/^(\+?36|06)(20|30|31|50|70)\d{7}$/,"id-ID":/^(\+?62|0)8(1[123456789]|2[1238]|3[1238]|5[12356789]|7[78]|9[56789]|8[123456789])([\s?|\d]{5,11})$/,"it-IT":/^(\+?39)?\s?3\d{2} ?\d{6,7}$/,"it-SM":/^((\+378)|(0549)|(\+390549)|(\+3780549))?6\d{5,9}$/,"ja-JP":/^(\+81[ \-]?(\(0\))?|0)[6789]0[ \-]?\d{4}[ \-]?\d{4}$/,"ka-GE":/^(\+?995)?(5|79)\d{7}$/,"kk-KZ":/^(\+?7|8)?7\d{9}$/,"kl-GL":/^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"ko-KR":/^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}$/,"lt-LT":/^(\+370|8)\d{8}$/,"lv-LV":/^(\+?371)2\d{7}$/,"ms-MY":/^(\+?6?01){1}(([0145]{1}(\-|\s)?\d{7,8})|([236789]{1}(\s|\-)?\d{7}))$/,"mz-MZ":/^(\+?258)?8[234567]\d{7}$/,"nb-NO":/^(\+?47)?[49]\d{7}$/,"ne-NP":/^(\+?977)?9[78]\d{8}$/,"nl-BE":/^(\+?32|0)4\d{8}$/,"nl-NL":/^(((\+|00)?31\(0\))|((\+|00)?31)|0)6{1}\d{8}$/,"nn-NO":/^(\+?47)?[49]\d{7}$/,"pl-PL":/^(\+?48)? ?[5-8]\d ?\d{3} ?\d{2} ?\d{2}$/,"pt-BR":/^((\+?55\ ?[1-9]{2}\ ?)|(\+?55\ ?\([1-9]{2}\)\ ?)|(0[1-9]{2}\ ?)|(\([1-9]{2}\)\ ?)|([1-9]{2}\ ?))((\d{4}\-?\d{4})|(9[2-9]{1}\d{3}\-?\d{4}))$/,"pt-PT":/^(\+?351)?9[1236]\d{7}$/,"pt-AO":/^(\+244)\d{9}$/,"ro-RO":/^(\+?4?0)\s?7\d{2}(\/|\s|\.|\-)?\d{3}(\s|\.|\-)?\d{3}$/,"ru-RU":/^(\+?7|8)?9\d{9}$/,"si-LK":/^(?:0|94|\+94)?(7(0|1|2|4|5|6|7|8)( |-)?)\d{7}$/,"sl-SI":/^(\+386\s?|0)(\d{1}\s?\d{3}\s?\d{2}\s?\d{2}|\d{2}\s?\d{3}\s?\d{3})$/,"sk-SK":/^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"sq-AL":/^(\+355|0)6[789]\d{6}$/,"sr-RS":/^(\+3816|06)[- \d]{5,9}$/,"sv-SE":/^(\+?46|0)[\s\-]?7[\s\-]?[02369]([\s\-]?\d){7}$/,"tg-TJ":/^(\+?992)?[5][5]\d{7}$/,"th-TH":/^(\+66|66|0)\d{9}$/,"tr-TR":/^(\+?90|0)?5\d{9}$/,"tk-TM":/^(\+993|993|8)\d{8}$/,"uk-UA":/^(\+?38|8)?0\d{9}$/,"uz-UZ":/^(\+?998)?(6[125-79]|7[1-69]|88|9\d)\d{7}$/,"vi-VN":/^((\+?84)|0)((3([2-9]))|(5([25689]))|(7([0|6-9]))|(8([1-9]))|(9([0-9])))([0-9]{7})$/,"zh-CN":/^((\+|00)86)?(1[3-9]|9[28])\d{9}$/,"zh-TW":/^(\+?886\-?|0)?9\d{8}$/,"dz-BT":/^(\+?975|0)?(17|16|77|02)\d{6}$/};Ue["en-CA"]=Ue["en-US"];Ue["fr-CA"]=Ue["en-CA"];Ue["fr-BE"]=Ue["nl-BE"];Ue["zh-HK"]=Ue["en-HK"];Ue["zh-MO"]=Ue["en-MO"];Ue["ga-IE"]=Ue["en-IE"];Ue["fr-CH"]=Ue["de-CH"];Ue["it-CH"]=Ue["fr-CH"];function DP(e,t,r){if((0,xP.default)(e),r&&r.strictMode&&!e.startsWith("+"))return!1;if(Array.isArray(t))return t.some(function(a){if(Ue.hasOwnProperty(a)){var u=Ue[a];if(u.test(e))return!0}return!1});if(t in Ue)return Ue[t].test(e);if(!t||t==="any"){for(var n in Ue)if(Ue.hasOwnProperty(n)){var i=Ue[n];if(i.test(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))}var BP=Object.keys(Ue);ao.locales=BP});var Pv=h(Ar=>{"use strict";var RP=Ar&&Ar.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ar,"__esModule",{value:!0});Ar.IsMobilePhone=Ar.isMobilePhone=Ar.IS_MOBILE_PHONE=void 0;var Iv=x(),LP=RP(Sv());Ar.IS_MOBILE_PHONE="isMobilePhone";function Cv(e,t,r){return typeof e=="string"&&(0,LP.default)(e,t,r)}Ar.isMobilePhone=Cv;function qP(e,t,r){return(0,Iv.ValidateBy)({name:Ar.IS_MOBILE_PHONE,constraints:[e,t],validator:{validate:(n,i)=>Cv(n,i.constraints[0],i.constraints[1]),defaultMessage:(0,Iv.buildMessage)(n=>n+"$property must be a phone number",r)}},r)}Ar.IsMobilePhone=qP});var cc=h(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.default=kP;uo.CountryCodes=void 0;var UP=VP(U());function VP(e){return e&&e.__esModule?e:{default:e}}var wv=new Set(["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]);function kP(e){return(0,UP.default)(e),wv.has(e.toUpperCase())}var HP=wv;uo.CountryCodes=HP});var xv=h($r=>{"use strict";var GP=$r&&$r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty($r,"__esModule",{value:!0});$r.IsISO31661Alpha2=$r.isISO31661Alpha2=$r.IS_ISO31661_ALPHA_2=void 0;var Tv=x(),ZP=GP(cc());$r.IS_ISO31661_ALPHA_2="isISO31661Alpha2";function Ov(e){return typeof e=="string"&&(0,ZP.default)(e)}$r.isISO31661Alpha2=Ov;function jP(e){return(0,Tv.ValidateBy)({name:$r.IS_ISO31661_ALPHA_2,validator:{validate:(t,r)=>Ov(t),defaultMessage:(0,Tv.buildMessage)(t=>t+"$property must be a valid ISO31661 Alpha2 code",e)}},e)}$r.IsISO31661Alpha2=jP});var Fv=h((oo,hc)=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.default=KP;var WP=zP(U());function zP(e){return e&&e.__esModule?e:{default:e}}var YP=new Set(["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","VAT","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWZ","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","URY","UZB","VUT","VEN","VNM","VGB","VIR","WLF","ESH","YEM","ZMB","ZWE"]);function KP(e){return(0,WP.default)(e),YP.has(e.toUpperCase())}hc.exports=oo.default;hc.exports.default=oo.default});var Rv=h(br=>{"use strict";var JP=br&&br.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(br,"__esModule",{value:!0});br.IsISO31661Alpha3=br.isISO31661Alpha3=br.IS_ISO31661_ALPHA_3=void 0;var Dv=x(),QP=JP(Fv());br.IS_ISO31661_ALPHA_3="isISO31661Alpha3";function Bv(e){return typeof e=="string"&&(0,QP.default)(e)}br.isISO31661Alpha3=Bv;function XP(e){return(0,Dv.ValidateBy)({name:br.IS_ISO31661_ALPHA_3,validator:{validate:(t,r)=>Bv(t),defaultMessage:(0,Dv.buildMessage)(t=>t+"$property must be a valid ISO31661 Alpha3 code",e)}},e)}br.IsISO31661Alpha3=XP});var qv=h((so,pc)=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.default=rw;var ew=Lv(U()),tw=Lv(Q0());function Lv(e){return e&&e.__esModule?e:{default:e}}function rw(e){return(0,ew.default)(e),(0,tw.default)(e)&&e.length===24}pc.exports=so.default;pc.exports.default=so.default});var kv=h(Er=>{"use strict";var nw=Er&&Er.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Er,"__esModule",{value:!0});Er.IsMongoId=Er.isMongoId=Er.IS_MONGO_ID=void 0;var Uv=x(),iw=nw(qv());Er.IS_MONGO_ID="isMongoId";function Vv(e){return typeof e=="string"&&(0,iw.default)(e)}Er.isMongoId=Vv;function aw(e){return(0,Uv.ValidateBy)({name:Er.IS_MONGO_ID,validator:{validate:(t,r)=>Vv(t),defaultMessage:(0,Uv.buildMessage)(t=>t+"$property must be a mongodb id",e)}},e)}Er.IsMongoId=aw});var Hv=h((fo,gc)=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.default=fw;var uw=ow(U());function ow(e){return e&&e.__esModule?e:{default:e}}var sw=/[^\x00-\x7F]/;function fw(e){return(0,uw.default)(e),sw.test(e)}gc.exports=fo.default;gc.exports.default=fo.default});var jv=h(Mr=>{"use strict";var dw=Mr&&Mr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Mr,"__esModule",{value:!0});Mr.IsMultibyte=Mr.isMultibyte=Mr.IS_MULTIBYTE=void 0;var Gv=x(),lw=dw(Hv());Mr.IS_MULTIBYTE="isMultibyte";function Zv(e){return typeof e=="string"&&(0,lw.default)(e)}Mr.isMultibyte=Zv;function cw(e){return(0,Gv.ValidateBy)({name:Mr.IS_MULTIBYTE,validator:{validate:(t,r)=>Zv(t),defaultMessage:(0,Gv.buildMessage)(t=>t+"$property must contain one or more multibyte chars",e)}},e)}Mr.IsMultibyte=cw});var Wv=h((lo,yc)=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.default=yw;var hw=pw(U());function pw(e){return e&&e.__esModule?e:{default:e}}var gw=/[\uD800-\uDBFF][\uDC00-\uDFFF]/;function yw(e){return(0,hw.default)(e),gw.test(e)}yc.exports=lo.default;yc.exports.default=lo.default});var Kv=h(Nr=>{"use strict";var mw=Nr&&Nr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Nr,"__esModule",{value:!0});Nr.IsSurrogatePair=Nr.isSurrogatePair=Nr.IS_SURROGATE_PAIR=void 0;var zv=x(),vw=mw(Wv());Nr.IS_SURROGATE_PAIR="isSurrogatePair";function Yv(e){return typeof e=="string"&&(0,vw.default)(e)}Nr.isSurrogatePair=Yv;function _w(e){return(0,zv.ValidateBy)({name:Nr.IS_SURROGATE_PAIR,validator:{validate:(t,r)=>Yv(t),defaultMessage:(0,zv.buildMessage)(t=>t+"$property must contain any surrogate pairs chars",e)}},e)}Nr.IsSurrogatePair=_w});var e_=h((co,mc)=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.default=Tw;var Aw=Kf(U()),$w=Kf(jf()),Jv=Kf(Wf()),bw=Kf(gn());function Kf(e){return e&&e.__esModule?e:{default:e}}function Ew(e,t){return Iw(e)||Sw(e,t)||Nw(e,t)||Mw()}function Mw(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.