1/*! For license information please see main.f9b8d2c9.js.LICENSE.txt */ 2(()=>{var e={1360:e=>{"use strict";for(var t="qpzry9x8gf2tvdw0s3jn54khce6mua7l",r={},n=0;n<32;n++){var i=t.charAt(n);if(void 0!==r[i])throw new TypeError(i+" is ambiguous");r[i]=n}function o(e){var t=e>>25;return(33554431&e)<<5^996825010&-(t>>0&1)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function a(e){for(var t=1,r=0;r<e.length;++r){var n=e.charCodeAt(r);if(n<33||n>126)return"Invalid prefix ("+e+")";t=o(t)^n>>5}for(t=o(t),r=0;r<e.length;++r){var i=e.charCodeAt(r);t=o(t)^31&i}return t}function s(e,t){if(t=t||90,e.length<8)return e+" too short";if(e.length>t)return"Exceeds length limit";var n=e.toLowerCase(),i=e.toUpperCase();if(e!==n&&e!==i)return"Mixed-case string "+e;var s=(e=n).lastIndexOf("1");if(-1===s)return"No separator character for "+e;if(0===s)return"Missing prefix for "+e;var l=e.slice(0,s),u=e.slice(s+1);if(u.length<6)return"Data too short";var c=a(l);if("string"===typeof c)return c;for(var f=[],d=0;d<u.length;++d){var h=u.charAt(d),p=r[h];if(void 0===p)return"Unknown character "+h;c=o(c)^p,d+6>=u.length||f.push(p)}return 1!==c?"Invalid checksum for "+e:{prefix:l,words:f}}function l(e,t,r,n){for(var i=0,o=0,a=(1<<r)-1,s=[],l=0;l<e.length;++l)for(i=i<<t|e[l],o+=t;o>=r;)o-=r,s.push(i>>o&a);if(n)o>0&&s.push(i<<r-o&a);else{if(o>=t)return"Excess padding";if(i<<r-o&a)return"Non-zero padding"}return s}e.exports={decodeUnsafe:function(){var e=s.apply(null,arguments);if("object"===typeof e)return e},decode:function(e){var t=s.apply(null,arguments);if("object"===typeof t)return t;throw new Error(t)},encode:function(e,r,n){if(n=n||90,e.length+7+r.length>n)throw new TypeError("Exceeds length limit");var i=a(e=e.toLowerCase());if("string"===typeof i)throw new Error(i);for(var s=e+"1",l=0;l<r.length;++l){var u=r[l];if(u>>5!==0)throw new Error("Non 5-bit word");i=o(i)^u,s+=t.charAt(u)}for(l=0;l<6;++l)i=o(i);for(i^=1,l=0;l<6;++l){s+=t.charAt(i>>5*(5-l)&31)}return s},toWordsUnsafe:function(e){var t=l(e,8,5,!0);if(Array.isArray(t))return t},toWords:function(e){var t=l(e,8,5,!0);if(Array.isArray(t))return t;throw new Error(t)},fromWordsUnsafe:function(e){var t=l(e,5,8,!1);if(Array.isArray(t))return t},fromWords:function(e){var t=l(e,5,8,!1);if(Array.isArray(t))return t;throw new Error(t)}}},518:function(e,t,r){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"===typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:r(6601).Buffer}catch(_){}function s(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function l(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}
vendor: 4,118 bytes, line 2
2function u(e,t,r,i){for(var o=0,a=0,s=Math.min(e.length,r),l=t;l<s;l++){var u=e.charCodeAt(l)-48;o*=i,a=u>=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&a<i,"Invalid character"),o+=a}return o}function c(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(o.isBN=function(e){return e instanceof o||null!==e&&"object"===typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"===typeof e)return this._initNumber(e,t,r);if("object"===typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"===typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===r)for(i=e.length-1,o=0;i>=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<e.length;i+=3)a=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,a=0;if("be"===r)for(n=e.length-1;n>=t;n-=2)i=l(e,t,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(e.length-t)%2===0?t+1:t;n<e.length;n+=2)i=l(e,t,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,l=0,c=r;c<s;c+=n)l=u(e,c,c+n,t),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==a){var f=1;for(l=u(e,c,e.length,t),c=0;c<a;c++)f*=t;this.imuln(f),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}this._strip()},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype._move=function(e){c(e,this)},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!==typeof Symbol&&"function"===typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=f}catch(_){o.prototype.inspect=f}else o.prototype.inspect=f;function f(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var d=["","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"],h=[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],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16
vendor: 4,804 bytes, line 2
2777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],l=(16777215&(s<<i|o)).toString(16);o=s>>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?d[6-l.length]+l+r:l+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var u=h[e],c=p[e];r="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modrn(c).toString(e);r=(f=f.idivn(c)).isZero()?m+r:d[u-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(a,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function m(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,l=a/67108864|0;r.words[0]=s;for(var u=1;u<n;u++){for(var c=l>>>26,f=67108863&l,d=Math.min(u,t.length-1),h=Math.max(0,u-e.length+1);h<=d;h++){var p=u-h|0;c+=(a=(i=0|e.words[p])*(o=0|t.words[h])+f)/67108864|0,f=67108863&a}r.words[u]=0|f,l=0|c}return 0!==l?r.words[u]=0|l:r.length--,r._strip()}o.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;e[r++]=255&a,r<e.length&&(e[r++]=a>>8&255),r<e.length&&(e[r++]=a>>16&255),6===o?(r<e.length&&(e[r++]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r<e.length)for(e[r++]=n;r<e.length;)e[r++]=0},o.prototype._toArrayLikeBE=function(e,t){for(var r=e.length-1,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;e[r--]=255&a,r>=0&&(e[r--]=a>>8&255),r>=0&&(e[r--]=a>>16&255),6===o?(r>=0&&(e[r--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0===(8191&t)&&(r+=13,t>>>=13),0===(127&t)&&(r+=7,t>>>=7),0===(15&t)&&(r+=4,t>>>=4),0===(3&t)&&(r+=2,t>>>=2),0===(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},o.prototype.ior=function(e){return n(0===(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this._strip()},o.prototype.iand=function(e){return n(0===(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;
vendor: 9,936 bytes, line 2
2n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this._strip()},o.prototype.ixor=function(e){return n(0===(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"===typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this._strip()},o.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a<n.length;a++)o=(t=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&t;for(;0!==o&&a<r.length;a++)o=(t=(0|r.words[a])+o)>>26,this.words[a]=67108863&t;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var g=function(e,t,r){var n,i,o,a=e.words,s=t.words,l=r.words,u=0,c=0|a[0],f=8191&c,d=c>>>13,h=0|a[1],p=8191&h,m=h>>>13,g=0|a[2],A=8191&g,y=g>>>13,v=0|a[3],b=8191&v,w=v>>>13,E=0|a[4],k=8191&E,S=E>>>13,x=0|a[5],N=8191&x,C=x>>>13,_=0|a[6],M=8191&_,P=_>>>13,T=0|a[7],R=8191&T,I=T>>>13,O=0|a[8],B=8191&O,L=O>>>13,F=0|a[9],D=8191&F,U=F>>>13,j=0|s[0],z=8191&j,Q=j>>>13,H=0|s[1],q=8191&H,G=H>>>13,V=0|s[2],W=8191&V,J=V>>>13,K=0|s[3],Y=8191&K,X=K>>>13,Z=0|s[4],$=8191&Z,ee=Z>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],le=8191&se,ue=se>>>13,ce=0|s[8],fe=8191&ce,de=ce>>>13,he=0|s[9],pe=8191&he,me=he>>>13;r.negative=e.negative^t.negative,r.length=19;var ge=(u+(n=Math.imul(f,z))|0)+((8191&(i=(i=Math.imul(f,Q))+Math.imul(d,z)|0))<<13)|0;u=((o=Math.imul(d,Q))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,Q))+Math.imul(m,z)|0,o=Math.imul(m,Q);var Ae=(u+(n=n+Math.imul(f,q)|0)|0)+((8191&(i=(i=i+Math.imul(f,G)|0)+Math.imul(d,q)|0))<<13)|0;u=((o=o+Math.imul(d,G)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(A,z),i=(i=Math.imul(A,Q))+Math.imul(y,z)|0,o=Math.imul(y,Q),n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,q)|0,o=o+Math.imul(m,G)|0;var ye=(u+(n=n+Math.imul(f,W)|0)|0)+((8191&(i=(i=i+Math.imul(f,J)|0)+Math.imul(d,W)|0))<<13)|0;u=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(b,z),i=(i=Math.imul(b,Q))+Math.imul(w,z)|0,o=Math.imul(w,Q),n=n+Math.imul(A,q)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(y,q)|0,o=o+Math.imul(y,G)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,J)|0;var ve=(u+(n=n+Math.imul(f,Y)|0)|0)+((8191&(i=(i=i+Math.imul(f,X)|0)+Math.imul(d,Y)|0))<<13)|0;u=((o=o+Math.imul(d,X)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(k,z),i=(i=Math.imul(k,Q))+Math.imul(S,z)|0,o=Math.imul(S,Q),n=n+Math.imul(b,q)|0,i=(i=i+Math.imul(b,G)|0)+Math.imul(w,q)|0,o=o+Math.imul(w,G)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(y,W)|0,o=o+Math.imul(y,J)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,X)|0;var be=(u+(n=n+Math.imul(f,$)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(d,$)|0))<<13)|0;u=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(N,z),i=(i=Math.imul(N,Q))+Math.imul(C,z)|0,o=Math.imul(C,Q),n=n+Math.imul(k,q)|0,i=(i=i+Math.imul(k,G)|0)+Math.imul(S,q)|0,o=o+Math.imul(S,G)|0,n=n+Math.imul(b,W)|0,i=(i=i+Math.imul(b,J)|0)+Math.imul(w,W)|0,o=o+Math.imul(w,J)|0,n=n+Math.imul(A,Y)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(y,Y)|0,o=o+Math.imul(y,X)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,ee)|0;var we=(u+(n=n+Math.imul(f,re)|0)|0)+((8191&(i=(i=i+Math.imul(f,ne)|0)+Math.imul(d,re)|0))<<13)|0;u=((o=o+Math.imul(d,ne)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(M,z),i=(i=Math.imul(M,Q))+Math.imul(P,z)|0,o=Math.imul(P,Q),n=n+Math.imul(N,q)|0,i=(i=i+Math.imul(N,G)|0)+Math.imul(C,q)|0,o=o+Math.imul(C,G)|0,n=n+Math.imul(k,W)|0,i=(i=i+Math.imul(k,J)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,J)|0,n=n+Math.imul(b,Y)|0,i=(i=i+Math.imul(b,X)|0)+Math.imul(w,Y)|0,o=o+Math.imul(w,X)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0;var Ee=(u+(n=n+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(d,oe)|0))<<13)|0;u=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(R,z),i=(i=Math.imul(R,Q))+Math.imul(I,z)|0,o=Math.imul(I,Q),n=n+Math.imul(M,q)|0,i=(i=i+Math.imul(M,G)|0)+Math.imul(P,q)|0,o=o+Math.imul(P,G)|0,n=n+Math.imul(N,W)|0,i=(i=i+Math.imul(N,J)|0)+Math.imul(C,W)|0,o=o+Math.imul(C,J)|0,n=n+Math.imul(k,Y)|0,i=(i=i+Math.imul(k,X)|0)+Math.imul(S,Y)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(b,$)|0,i=(i=i+Math.imul(b,ee)|0)+Math.imul(w,$)|0,o=o+Math.imul(w,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(y,re)|0,o=o+Math.imul(y,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0;var ke=(u+(n=n+Math.imul(f,le)|0)|0)+((8191&(i=(i=i+Math.imul(f,ue)|0)+Math.imul(d,le)|0))<<13)|0;u=((o=o+Math.imul(d,ue)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(B,z),i=(i=Math.imul(B,Q))+Math.imul(L,z)|0,o=Math.imul(L,Q),n=n+Math.imul(R,q)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(I,q)|0,o=o+Math.imul(I,G)|0,n=n+Math.imul(M,W)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(P,W)|0,o=o+Math.imul(P,J)|0,n=n+Math.imul(N,Y)|0,i=(i=i+Math.imul(N,X)|0)+Math.imul(C,Y)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(k,$)|0,i=(i=i+Math.imul(k,ee)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,ee)|0,n=n+Math.imul(b,re)|0,i=(i=i+Math.imul(b,ne)|0)+Math.imul(w,re)|0,o=o+Math.imul(w,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(y,oe)|0,o=o+Math.imul(y,ae)|0,n=n+Math.imul(p,le)|0,i=(i=i+Math.imul(p,ue)|0)+Math.imul(m,le)|0,o=o+Math.imul(m,ue)|0;var Se=(u+(n=n+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,de)|0)+Math.imul(d,fe)|0))<<13)|0;u=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(D,z),i=(i=Math.imul(D,Q))+Math.imul(U,z)|0,o=Math.imul(U,Q),n=n+Math.imul(B,q)|0,i=(i=i+Math.imul(B,G)|0)+Math.imul(L,q)|0,o=o+Math.imul(L,G)|0,n=n+Math.imul(R,W)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,J)|0,n=n+Math.imul(M,Y)|0,i=(i=i+Math.imul(M,X)|0)+Math.imul(P,Y)|0,o=o+Math.imul(P,X)|0,n=n+Math.imul(N,$)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(k,re)|0,i=(i=i+Math.imul(k,ne)|0)+Math.imul(S,re)|0,o=o+Math.imul(S,ne)|0,n=n+Math.imul(b,oe)|0,i=(i=i+Math.imul(b,ae)|0)+Math.imul(w,oe)|0,o=o+Math.imul(w,ae)|0,n=n+Math.imul(A,le)|0,i=(i=i+Math.imul(A,ue)|0)+Math.imul(y,le)|0,o=o+Math.imul(y,ue)|0,n=n+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,de)|0;var xe=(u+(n=n+Math.imul(f,pe)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(d,pe)|0))<<13)|0;u=((o=o+Math.imul(d,me)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,G))+Math.imul(U,q)|0,o=Math.imul(U,G),n=n+Math.imul(B,W)|0,i=(i=i+Math.imul(B,J)|0)+Math.imul(L,W)|0,o=o+Math.imul(L,J)|0,n=n+Math.imul(R,Y)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(I,Y)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(M,$)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(P,$)|0,o=o+Math.imul(P,ee)|0,n=n+Math.imul(N,re)|0,i=(i=i+Math.imul(N,ne)|0)+Math.imul(C,re)|0,o=o+Math.imul(C,ne)|0,n=n+Math.imul(k,oe)|0,i=(i=i+Math.imul(k,ae)|0)+Math.imul(S,oe)|0,o=o+Math.imul(S,ae)|0,n=n+Math.imul(b,le)|0,i=(i=i+Math.imul(b,ue)|0)+Math.imul(w,le)|0,o=o+Math.imul(w,ue)|0,n=n+Math.imul(A,fe)|0,i=(i=i+Math.imul(A,de)|0)+Math.imul(y,fe)|0,o=o+Math.imul(y,de)|0;var Ne=(u+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;u=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,n=Math.imul(D,W),i=(i=Math.imul(D,J))+Math.imul(U,W)|0,o=Math.imul(U,J),n=n+Math.imul(B,Y)|0,i=(i=i+Math.imul(B,X)|0)+Math.imul(L,Y)|0,o=o+Math.imul(L,X)|0,n=n+Math.imul(R,$)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(I,$)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(M,re)|0,i=(i=i+Math.imul(M,ne)|0)+Math.imul(P,re)|0,o=o+Math.imul(P,ne)|0,n=n+Math.imul(N,oe)|0,i=(i=i+Math.imul(N,ae)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,ae)|0,n=n+Math.imul(k,le)|0,i=(i=i+Math.imul(k,ue)|0)+Math.imul(S,le)|0,o=o+Math.imul(S,ue)|0,n=n+Math.imul(b,fe)|0,i=(i=i+Math.imul(b,de)|0)+Math.imul(w,fe)|0,o=o+Math.imul(w,de)|0;
vendor: 4,333 bytes, line 2
2var Ce=(u+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(y,pe)|0))<<13)|0;u=((o=o+Math.imul(y,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(D,Y),i=(i=Math.imul(D,X))+Math.imul(U,Y)|0,o=Math.imul(U,X),n=n+Math.imul(B,$)|0,i=(i=i+Math.imul(B,ee)|0)+Math.imul(L,$)|0,o=o+Math.imul(L,ee)|0,n=n+Math.imul(R,re)|0,i=(i=i+Math.imul(R,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(M,oe)|0,i=(i=i+Math.imul(M,ae)|0)+Math.imul(P,oe)|0,o=o+Math.imul(P,ae)|0,n=n+Math.imul(N,le)|0,i=(i=i+Math.imul(N,ue)|0)+Math.imul(C,le)|0,o=o+Math.imul(C,ue)|0,n=n+Math.imul(k,fe)|0,i=(i=i+Math.imul(k,de)|0)+Math.imul(S,fe)|0,o=o+Math.imul(S,de)|0;var _e=(u+(n=n+Math.imul(b,pe)|0)|0)+((8191&(i=(i=i+Math.imul(b,me)|0)+Math.imul(w,pe)|0))<<13)|0;u=((o=o+Math.imul(w,me)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(D,$),i=(i=Math.imul(D,ee))+Math.imul(U,$)|0,o=Math.imul(U,ee),n=n+Math.imul(B,re)|0,i=(i=i+Math.imul(B,ne)|0)+Math.imul(L,re)|0,o=o+Math.imul(L,ne)|0,n=n+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,n=n+Math.imul(M,le)|0,i=(i=i+Math.imul(M,ue)|0)+Math.imul(P,le)|0,o=o+Math.imul(P,ue)|0,n=n+Math.imul(N,fe)|0,i=(i=i+Math.imul(N,de)|0)+Math.imul(C,fe)|0,o=o+Math.imul(C,de)|0;var Me=(u+(n=n+Math.imul(k,pe)|0)|0)+((8191&(i=(i=i+Math.imul(k,me)|0)+Math.imul(S,pe)|0))<<13)|0;u=((o=o+Math.imul(S,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(D,re),i=(i=Math.imul(D,ne))+Math.imul(U,re)|0,o=Math.imul(U,ne),n=n+Math.imul(B,oe)|0,i=(i=i+Math.imul(B,ae)|0)+Math.imul(L,oe)|0,o=o+Math.imul(L,ae)|0,n=n+Math.imul(R,le)|0,i=(i=i+Math.imul(R,ue)|0)+Math.imul(I,le)|0,o=o+Math.imul(I,ue)|0,n=n+Math.imul(M,fe)|0,i=(i=i+Math.imul(M,de)|0)+Math.imul(P,fe)|0,o=o+Math.imul(P,de)|0;var Pe=(u+(n=n+Math.imul(N,pe)|0)|0)+((8191&(i=(i=i+Math.imul(N,me)|0)+Math.imul(C,pe)|0))<<13)|0;u=((o=o+Math.imul(C,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(D,oe),i=(i=Math.imul(D,ae))+Math.imul(U,oe)|0,o=Math.imul(U,ae),n=n+Math.imul(B,le)|0,i=(i=i+Math.imul(B,ue)|0)+Math.imul(L,le)|0,o=o+Math.imul(L,ue)|0,n=n+Math.imul(R,fe)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(I,fe)|0,o=o+Math.imul(I,de)|0;var Te=(u+(n=n+Math.imul(M,pe)|0)|0)+((8191&(i=(i=i+Math.imul(M,me)|0)+Math.imul(P,pe)|0))<<13)|0;u=((o=o+Math.imul(P,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(D,le),i=(i=Math.imul(D,ue))+Math.imul(U,le)|0,o=Math.imul(U,ue),n=n+Math.imul(B,fe)|0,i=(i=i+Math.imul(B,de)|0)+Math.imul(L,fe)|0,o=o+Math.imul(L,de)|0;var Re=(u+(n=n+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(I,pe)|0))<<13)|0;u=((o=o+Math.imul(I,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(D,fe),i=(i=Math.imul(D,de))+Math.imul(U,fe)|0,o=Math.imul(U,de);var Ie=(u+(n=n+Math.imul(B,pe)|0)|0)+((8191&(i=(i=i+Math.imul(B,me)|0)+Math.imul(L,pe)|0))<<13)|0;u=((o=o+Math.imul(L,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863;var Oe=(u+(n=Math.imul(D,pe))|0)+((8191&(i=(i=Math.imul(D,me))+Math.imul(U,pe)|0))<<13)|0;return u=((o=Math.imul(U,me))+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,l[0]=ge,l[1]=Ae,l[2]=ye,l[3]=ve,l[4]=be,l[5]=we,l[6]=Ee,l[7]=ke,l[8]=Se,l[9]=xe,l[10]=Ne,l[11]=Ce,l[12]=_e,l[13]=Me,l[14]=Pe,l[15]=Te,l[16]=Re,l[17]=Ie,l[18]=Oe,0!==u&&(l[19]=u,r.length++),r};function A(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,l=Math.min(o,t.length-1),u=Math.max(0,o-e.length+1);u<=l;u++){var c=o-u,f=(0|e.words[c])*(0|t.words[u]),d=67108863&f;s=67108863&(d=d+s|0),i+=(a=(a=a+(f/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function y(e,t,r){return A(e,t,r)}function v(e,t){this.x=e,this.y=t}Math.imul||(g=m),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?g(this,e,t):r<63?m(this,e,t):r<1024?A(this,e,t):y(this,e,t)},v.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},v.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},v.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a<o;a++)n[a]=t[e[a]],i[a]=r[e[a]]},v.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var a=1;a<i;
vendor: 4,694 bytes, line 2
2a<<=1)for(var s=a<<1,l=Math.cos(2*Math.PI/s),u=Math.sin(2*Math.PI/s),c=0;c<i;c+=s)for(var f=l,d=u,h=0;h<a;h++){var p=r[c+h],m=n[c+h],g=r[c+h+a],A=n[c+h+a],y=f*g-d*A;A=f*A+d*g,g=y,r[c+h]=p+g,n[c+h]=m+A,r[c+h+a]=p-g,n[c+h+a]=m-A,h!==s&&(y=l*f-u*d,d=l*d+u*f,f=y)}},v.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},v.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},v.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},v.prototype.convert13b=function(e,t,r,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)r[a]=0;n(0===o),n(0===(-8192&o))},v.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},v.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),l=new Array(n),u=new Array(n),c=new Array(n),f=new Array(n),d=r.words;d.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,u,n),this.transform(a,o,s,l,n,i),this.transform(u,o,c,f,n,i);for(var h=0;h<n;h++){var p=s[h]*c[h]-l[h]*f[h];l[h]=s[h]*f[h]+l[h]*c[h],s[h]=p}return this.conjugate(s,l,n),this.transform(s,l,d,o,n,i),this.conjugate(d,o,n),this.normalize13b(d,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r._strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),y(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"===typeof e),n(e<67108864);for(var r=0,i=0;i<this.length;i++){var o=(0|this.words[i])*e,a=(67108863&o)+(67108863&r);r>>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=e.words[n]>>>i&1}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(e){n("number"===typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,l=(0|this.words[t])-s<<r;this.words[t]=l|a,a=s>>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this._strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,r){var i;n("number"===typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,l=r;if(i-=a,i=Math.max(0,i),l){for(var u=0;u<a;u++)l.words[u]=this.words[u];l.length=a}if(0===a);else if(this.length>a)for(this.length-=a,u=0;u<this.length;u++)this.words[u]=this.words[u+a];else this.words[0]=0,this.length=1;var c=0;for(u=this.length-1;u>=0&&(0!==c||u>=i);u--){var f=0|this.words[u];this.words[u]=c<<26-o|f>>>o,c=f&s}return l&&0!==c&&(l.words[l.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"===typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(e){n("number"===typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this._strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return n("number"===typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<=e?
vendor: 4,148 bytes, line 2
2(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"===typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,r){var i,o,a=e.length+r;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+s;var l=(0|e.words[i])*t;s=((o-=67108863&l)>>26)-(l/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,l=n.length-i.length;if("mod"!==t){(s=new o(null)).length=l+1,s.words=new Array(s.length);for(var u=0;u<s.length;u++)s.words[u]=0}var c=n.clone()._ishlnsubmul(i,1,l);0===c.negative&&(n=c,s&&(s.words[l]=1));for(var f=l-1;f>=0;f--){var d=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);for(d=Math.min(d/a|0,67108863),n._ishlnsubmul(i,d,f);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);s&&(s.words[f]=d)}return s&&s._strip(),n._strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),l=new o(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var c=r.clone(),f=t.clone();!t.isZero();){for(var d=0,h=1;
vendor: 11,990 bytes, line 2
20===(t.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(c),l.isub(f)),s.iushrn(1),l.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(l)):(r.isub(t),s.isub(i),l.isub(a))}return{a:s,b:l,gcd:r.iushln(u)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),l=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,c=1;0===(t.words[0]&c)&&u<26;++u,c<<=1);if(u>0)for(t.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var f=0,d=1;0===(r.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"===typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new N(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var b={k256:null,p224:null,p192:null,p25519:null};function w(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function E(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function k(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function S(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function N(e){if("string"===typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function C(e){N.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(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)}w.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},w.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},w.prototype.split=function(e,t){e.iushrn(this.n,0,t)},w.prototype.imulK=function(e){return e.imul(this.k)},i(E,w),E.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i<n;i++)t.words[i]=e.words[i];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(t.words[t.length++]=o&r,i=10;i<e.length;i++){var a=0|e.words[i];e.words[i-10]=(a&r)<<4|o>>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},E.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(k,w),i(S,w),i(x,w),x.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(b[e])return b[e];var t;if("k256"===e)t=new E;else if("p224"===e)t=new k;else if("p192"===e)t=new S;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new x}return b[e]=t,t},N.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},N.prototype._verify2=function(e,t){n(0===(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},N.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(c(e,e.umod(this.m)._forceRed(this)),e)},N.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},N.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},N.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},N.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},N.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},N.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},N.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},N.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},N.prototype.isqr=function(e){return this.imul(e,e.clone())},N.prototype.sqr=function(e){return this.mul(e,e)},N.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2===1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),l=s.redNeg(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,u).cmp(l);)c.redIAdd(l);for(var f=this.pow(c,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var m=h,g=0;0!==m.cmp(s);g++)m=m.redSqr();n(g<p);var A=this.pow(f,new o(1).iushln(p-g-1));d=d.redMul(A),f=A.redSqr(),h=h.redMul(f),p=g}return d},N.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},N.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],a=0,s=0,l=t.bitLength()%26;for(0===l&&(l=26),n=t.length-1;n>=0;n--){for(var u=t.words[n],c=l-1;c>=0;c--){var f=u>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===n&&0===c)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}l=26}return i},N.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},N.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new C(e)},i(C,N),C.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},C.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},C.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},C.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},C.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},3125:(e,t,r)=>{var n=t;n.utils=r(9046),n.common=r(9684),n.sha=r(9194),n.ripemd=r(6645),n.hmac=r(3609),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},9684:(e,t,r)=>{"use strict";var n=r(9046),i=r(2325);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}
vendor: 14,544 bytes, line 2
2t.BlockHash=o,o.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=new Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=e>>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o<this.padLength;o++)n[i++]=0;return n}},3609:(e,t,r)=>{"use strict";var n=r(9046),i=r(2325);function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}e.exports=o,o.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},o.prototype.update=function(e,t){return this.inner.update(e,t),this},o.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},6645:(e,t,r)=>{"use strict";var n=r(9046),i=r(9684),o=n.rotl32,a=n.sum32,s=n.sum32_3,l=n.sum32_4,u=i.BlockHash;function c(){if(!(this instanceof c))return new c;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function f(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function d(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function h(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}n.inherits(c,u),t.ripemd160=c,c.blockSize=512,c.outSize=160,c.hmacStrength=192,c.padLength=64,c.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],i=this.h[2],u=this.h[3],c=this.h[4],y=r,v=n,b=i,w=u,E=c,k=0;k<80;k++){var S=a(o(l(r,f(k,n,i,u),e[p[k]+t],d(k)),g[k]),c);r=c,c=u,u=o(i,10),i=n,n=S,S=a(o(l(y,f(79-k,v,b,w),e[m[k]+t],h(k)),A[k]),E),y=E,E=w,w=o(b,10),b=v,v=S}S=s(this.h[1],i,w),this.h[1]=s(this.h[2],u,E),this.h[2]=s(this.h[3],c,y),this.h[3]=s(this.h[4],r,v),this.h[4]=s(this.h[0],n,b),this.h[0]=S},c.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],g=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],A=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},9194:(e,t,r)=>{"use strict";t.sha1=r(7361),t.sha224=r(7753),t.sha256=r(6966),t.sha384=r(1233),t.sha512=r(9063)},7361:(e,t,r)=>{"use strict";var n=r(9046),i=r(9684),o=r(4343),a=n.rotl32,s=n.sum32,l=n.sum32_5,u=o.ft_1,c=i.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(d,c),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=a(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],o=this.h[1],c=this.h[2],d=this.h[3],h=this.h[4];for(n=0;n<r.length;n++){var p=~~(n/20),m=l(a(i,5),u(p,o,c,d),h,r[n],f[p]);h=d,d=c,c=a(o,30),o=i,i=m}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],c),this.h[3]=s(this.h[3],d),this.h[4]=s(this.h[4],h)},d.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},7753:(e,t,r)=>{"use strict";var n=r(9046),i=r(6966);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(o,i),e.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},6966:(e,t,r)=>{"use strict";var n=r(9046),i=r(9684),o=r(4343),a=r(2325),s=n.sum32,l=n.sum32_4,u=n.sum32_5,c=o.ch32,f=o.maj32,d=o.s0_256,h=o.s1_256,p=o.g0_256,m=o.g1_256,g=i.BlockHash,A=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function y(){if(!(this instanceof y))return new y;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=A,this.W=new Array(64)}n.inherits(y,g),e.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=l(m(r[n-2]),r[n-7],p(r[n-15]),r[n-16]);var i=this.h[0],o=this.h[1],g=this.h[2],A=this.h[3],y=this.h[4],v=this.h[5],b=this.h[6],w=this.h[7];for(a(this.k.length===r.length),n=0;n<r.length;n++){var E=u(w,h(y),c(y,v,b),this.k[n],r[n]),k=s(d(i),f(i,o,g));w=b,b=v,v=y,y=s(A,E),A=g,g=o,o=i,i=s(E,k)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],g),this.h[3]=s(this.h[3],A),this.h[4]=s(this.h[4],y),this.h[5]=s(this.h[5],v),this.h[6]=s(this.h[6],b),this.h[7]=s(this.h[7],w)},y.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},1233:(e,t,r)=>{"use strict";var n=r(9046),i=r(9063);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(o,i),e.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},9063:(e,t,r)=>{"use strict";var n=r(9046),i=r(9684),o=r(2325),a=n.rotr64_hi,s=n.rotr64_lo,l=n.shr64_hi,u=n.shr64_lo,c=n.sum64,f=n.sum64_hi,d=n.sum64_lo,h=n.sum64_4_hi,p=n.sum64_4_lo,m=n.sum64_5_hi,g=n.sum64_5_lo,A=i.BlockHash,y=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function v(){if(!(this instanceof v))return new v;A.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=y,this.W=new Array(160)}function b(e,t,r,n,i){var o=e&r^~e&i;return o<0&&(o+=4294967296),o}function w(e,t,r,n,i,o){var a=t&n^~t&o;return a<0&&(a+=4294967296),a}function E(e,t,r,n,i){var o=e&r^e&i^r&i;return o<0&&(o+=4294967296),o}function k(e,t,r,n,i,o){var a=t&n^t&o^n&o;return a<0&&(a+=4294967296),a}function S(e,t){var r=a(e,t,28)^a(t,e,2)^a(t,e,7);return r<0&&(r+=4294967296),r}function x(e,t){var r=s(e,t,28)^s(t,e,2)^s(t,e,7);return r<0&&(r+=4294967296),r}function N(e,t){var r=a(e,t,14)^a(e,t,18)^a(t,e,9);return r<0&&(r+=4294967296),r}function C(e,t){var r=s(e,t,14)^s(e,t,18)^s(t,e,9);return r<0&&(r+=4294967296),r}function _(e,t){var r=a(e,t,1)^a(e,t,8)^l(e,t,7);return r<0&&(r+=4294967296),r}function M(e,t){var r=s(e,t,1)^s(e,t,8)^u(e,t,7);return r<0&&(r+=4294967296),r}function P(e,t){var r=a(e,t,19)^a(t,e,29)^l(e,t,6);return r<0&&(r+=4294967296),r}function T(e,t){var r=s(e,t,19)^s(t,e,29)^u(e,t,6);return r<0&&(r+=4294967296),r}n.inherits(v,A),e.exports=v,v.blockSize=1024,v.outSize=512,v.hmacStrength=192,v.padLength=128,v.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var i=P(r[n-4],r[n-3]),o=T(r[n-4],r[n-3]),a=r[n-14],s=r[n-13],l=_(r[n-30],r[n-29]),u=M(r[n-30],r[n-29]),c=r[n-32],f=r[n-31];r[n]=h(i,o,a,s,l,u,c,f),r[n+1]=p(i,o,a,s,l,u,c,f)}},v.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,n=this.h[0],i=this.h[1],a=this.h[2],s=this.h[3],l=this.h[4],u=this.h[5],h=this.h[6],p=this.h[7],A=this.h[8],y=this.h[9],v=this.h[10],_=this.h[11],M=this.h[12],P=this.h[13],T=this.h[14],R=this.h[15];o(this.k.length===r.length);for(var I=0;I<r.length;I+=2){var O=T,B=R,L=N(A,y),F=C(A,y),D=b(A,y,v,_,M),U=w(A,y,v,_,M,P),j=this.k[I],z=this.k[I+1],Q=r[I],H=r[I+1],q=m(O,B,L,F,D,U,j,z,Q,H),G=g(O,B,L,F,D,U,j,z,Q,H);O=S(n,i),B=x(n,i),L=E(n,i,a,s,l),F=k(n,i,a,s,l,u);var V=f(O,B,L,F),W=d(O,B,L,F);T=M,R=P,M=v,P=_,v=A,_=y,A=f(h,p,q,G),y=d(p,p,q,G),h=l,p=u,l=a,u=s,a=n,s=i,n=f(q,G,V,W),i=d(q,G,V,W)}c(this.h,0,n,i),c(this.h,2,a,s),c(this.h,4,l,u),c(this.h,6,h,p),c(this.h,8,A,y),c(this.h,10,v,_),c(this.h,12,M,P),c(this.h,14,T,R)},v.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},4343:(e,t,r)=>{"use strict";var n=r(9046).rotr32;function i(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?a(t,r,n):2===e?o(t,r,n):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},9046:(e,t,r)=>{"use strict";var n=r(2325),i=r(2534);function o(e,t){return 55296===(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320===(64512&e.charCodeAt(t+1)))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function l(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"===typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(e="0"+e),i=0;i<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16))}else for(var n=0,i=0;i<e.length;i++){var a=e.charCodeAt(i);a<128?r[n++]=a:a<2048?(r[n++]=a>>6|192,r[n++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(i=0;i<e.length;i++)r[i]=0|e[i];return r},t.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=s(e[r].toString(16));return t},t.htonl=a,t.toHex32=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e[n];"little"===t&&(i=a(i)),r+=l(i.toString(16))}return r},t.zero2=s,t.zero8=l,t.join32=function(e,t,r,i){var o=r-t;n(o%4===0);for(var a=new Array(o/4),s=0,l=t;s<a.length;s++,l+=4){var u;u="big"===i?e[l]<<24|e[l+1]<<16|e[l+2]<<8|e[l+3]:e[l+3]<<24|e[l+2]<<16|e[l+1]<<8|e[l],a[s]=u>>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n<e.length;n++,i+=4){var o=e[n];"big"===t?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o<n?1:0)+r+i;e[t]=a>>>
20,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return(t+n>>>0<t?1:0)+e+r>>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,a,s){var l=0,u=t;return l+=(u=u+n>>>0)<t?1:0,l+=(u=u+o>>>0)<o?1:0,e+r+i+a+(l+=(u=u+s>>>0)<s?1:0)>>>0},t.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,a,s,l,u){var c=0,f=t;return c+=(f=f+n>>>0)<t?1:0,c+=(f=f+o>>>0)<o?1:0,c+=(f=f+s>>>0)<s?1:0,e+r+i+a+l+(c+=(f=f+u>>>0)<u?1:0)>>>0},t.sum64_5_lo=function(e,t,r,n,i,o,a,s,l,u){return t+n+o+s+u>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},2534:e=>{"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},7898:(e,t,r)=>{var n;!function(){"use strict";var i="input is invalid type",o="object"===typeof window,a=o?window:{};a.JS_SHA3_NO_WINDOW&&(o=!1);var s=!o&&"object"===typeof self;!a.JS_SHA3_NO_NODE_JS&&"object"===typeof process&&process.versions&&process.versions.node?a=r.g:s&&(a=self);var l=!a.JS_SHA3_NO_COMMON_JS&&e.exports,u=r.amdO,c=!a.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!==typeof ArrayBuffer,f="0123456789abcdef".split(""),d=[4,1024,262144,67108864],h=[0,8,16,24],p=[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],m=[224,256,384,512],g=[128,256],A=["hex","buffer","arrayBuffer","array","digest"],y={128:168,256:136};!a.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!c||!a.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"===typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var v=function(e,t,r){return function(n){return new O(e,t,e).update(n)[r]()}},b=function(e,t,r){return function(n,i){return new O(e,t,i).update(n)[r]()}},w=function(e,t,r){return function(t,n,i,o){return N["cshake"+e].update(t,n,i,o)[r]()}},E=function(e,t,r){return function(t,n,i,o){return N["kmac"+e].update(t,n,i,o)[r]()}},k=function(e,t,r,n){for(var i=0;i<A.length;++i){var o=A[i];e[o]=t(r,n,o)}return e},S=function(e,t){var r=v(e,t,"hex");return r.create=function(){return new O(e,t,e)},r.update=function(e){return r.create().update(e)},k(r,v,e,t)},x=[{name:"keccak",padding:[1,256,65536,16777216],bits:m,createMethod:S},{name:"sha3",padding:[6,1536,393216,100663296],bits:m,createMethod:S},{name:"shake",padding:[31,7936,2031616,520093696],bits:g,createMethod:function(e,t){var r=b(e,t,"hex");return r.create=function(r){return new O(e,t,r)},r.update=function(e,t){return r.create(t).update(e)},k(r,b,e,t)}},{name:"cshake",padding:d,bits:g,createMethod:function(e,t){var r=y[e],n=w(e,0,"hex");return n.create=function(n,i,o){return i||o?new O(e,t,n).bytepad([i,o],r):N["shake"+e].create(n)},n.update=function(e,t,r,i){return n.create(t,r,i).update(e)},k(n,w,e,t)}},{name:"kmac",padding:d,bits:g,createMethod:function(e,t){var r=y[e],n=E(e,0,"hex");return n.create=function(n,i,o){return new B(e,t,i).bytepad(["KMAC",o],r).bytepad([n],r)},n.update=function(e,t,r,i){return n.create(e,r,i).update(t)},k(n,E,e,t)}}],N={},C=[],_=0;_<x.length;++_)for(var M=x[_],P=M.bits,T=0;T<P.length;++T){var R=M.name+"_"+P[T];if(C.push(R),N[R]=M.createMethod(P[T],M.padding),"sha3"!==M.name){var I=M.name+P[T];C.push(I),N[I]=N[R]}}function O(e,t,r){this.blocks=[],this.s=[],this.padding=t,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function B(e,t,r){O.call(this,e,t,r)}O.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var t,r=typeof e;if("string"!==r){if("object"!==r)throw new Error(i);if(null===e)throw new Error(i);
vendor: 5,115 bytes, line 2
2if(c&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!c||!ArrayBuffer.isView(e)))throw new Error(i);t=!0}for(var n,o,a=this.blocks,s=this.byteCount,l=e.length,u=this.blockCount,f=0,d=this.s;f<l;){if(this.reset)for(this.reset=!1,a[0]=this.block,n=1;n<u+1;++n)a[n]=0;if(t)for(n=this.start;f<l&&n<s;++f)a[n>>2]|=e[f]<<h[3&n++];else for(n=this.start;f<l&&n<s;++f)(o=e.charCodeAt(f))<128?a[n>>2]|=o<<h[3&n++]:o<2048?(a[n>>2]|=(192|o>>6)<<h[3&n++],a[n>>2]|=(128|63&o)<<h[3&n++]):o<55296||o>=57344?(a[n>>2]|=(224|o>>12)<<h[3&n++],a[n>>2]|=(128|o>>6&63)<<h[3&n++],a[n>>2]|=(128|63&o)<<h[3&n++]):(o=65536+((1023&o)<<10|1023&e.charCodeAt(++f)),a[n>>2]|=(240|o>>18)<<h[3&n++],a[n>>2]|=(128|o>>12&63)<<h[3&n++],a[n>>2]|=(128|o>>6&63)<<h[3&n++],a[n>>2]|=(128|63&o)<<h[3&n++]);if(this.lastByteIndex=n,n>=s){for(this.start=n-s,this.block=a[u],n=0;n<u;++n)d[n]^=a[n];L(d),this.reset=!0}else this.start=n}return this},O.prototype.encode=function(e,t){var r=255&e,n=1,i=[r];for(r=255&(e>>=8);r>0;)i.unshift(r),r=255&(e>>=8),++n;return t?i.push(n):i.unshift(n),this.update(i),i.length},O.prototype.encodeString=function(e){var t,r=typeof e;if("string"!==r){if("object"!==r)throw new Error(i);if(null===e)throw new Error(i);if(c&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!c||!ArrayBuffer.isView(e)))throw new Error(i);t=!0}var n=0,o=e.length;if(t)n=o;else for(var a=0;a<e.length;++a){var s=e.charCodeAt(a);s<128?n+=1:s<2048?n+=2:s<55296||s>=57344?n+=3:(s=65536+((1023&s)<<10|1023&e.charCodeAt(++a)),n+=4)}return n+=this.encode(8*n),this.update(e),n},O.prototype.bytepad=function(e,t){for(var r=this.encode(t),n=0;n<e.length;++n)r+=this.encodeString(e[n]);var i=t-r%t,o=[];return o.length=i,this.update(o),this},O.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex,r=this.blockCount,n=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[r],t=1;t<r+1;++t)e[t]=0;for(e[r-1]|=2147483648,t=0;t<r;++t)n[t]^=e[t];L(n)}},O.prototype.toString=O.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s="";a<n;){for(o=0;o<t&&a<n;++o,++a)e=r[o],s+=f[e>>4&15]+f[15&e]+f[e>>12&15]+f[e>>8&15]+f[e>>20&15]+f[e>>16&15]+f[e>>28&15]+f[e>>24&15];a%t===0&&(L(r),o=0)}return i&&(e=r[o],s+=f[e>>4&15]+f[15&e],i>1&&(s+=f[e>>12&15]+f[e>>8&15]),i>2&&(s+=f[e>>20&15]+f[e>>16&15])),s},O.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;e=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(s);for(var l=new Uint32Array(e);a<n;){for(o=0;o<t&&a<n;++o,++a)l[a]=r[o];a%t===0&&L(r)}return i&&(l[o]=r[o],e=e.slice(0,s)),e},O.prototype.buffer=O.prototype.arrayBuffer,O.prototype.digest=O.prototype.array=function(){this.finalize();for(var e,t,r=this.blockCount,n=this.s,i=this.outputBlocks,o=this.extraBytes,a=0,s=0,l=[];s<i;){for(a=0;a<r&&s<i;++a,++s)e=s<<2,t=n[a],l[e]=255&t,l[e+1]=t>>8&255,l[e+2]=t>>16&255,l[e+3]=t>>24&255;s%r===0&&L(n)}return o&&(e=s<<2,t=n[a],l[e]=255&t,o>1&&(l[e+1]=t>>8&255),o>2&&(l[e+2]=t>>16&255)),l},B.prototype=new O,B.prototype.finalize=function(){return this.encode(this.outputBits,!0),O.prototype.finalize.call(this)};var L=function(e){var t,r,n,i,o,a,s,l,u,c,f,d,h,m,g,A,y,v,b,w,E,k,S,x,N,C,_,M,P,T,R,I,O,B,L,F,D,U,j,z,Q,H,q,G,V,W,J,K,Y,X,Z,$,ee,te,re,ne,ie,oe,ae,se,le,ue,ce;for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],l=e[4]^e[14]^e[24]^e[34]^e[44],u=e[5]^e[15]^e[25]^e[35]^e[45],c=e[6]^e[16]^e[26]^e[36]^e[46],f=e[7]^e[17]^e[27]^e[37]^e[47],t=(d=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|s>>>31),r=(h=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|a>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(l<<1|u>>>31),r=o^(u<<1|l>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=a^(c<<1|f>>>31),r=s^(f<<1|c>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=l^(d<<1|h>>>31),r=u^(h<<1|d>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=c^(i<<1|o>>>31),r=f^(o<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,m=e[0],g=e[1],W=e[11]<<4|e[10]>>>28,J=e[10]<<4|e[11]>>>28,M=e[20]<<3|e[21]>>>29,P=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,le=e[30]<<9|e[31]>>>23,H=e[40]<<18|e[41]>>>14,q=e[41]<<18|e[40]>>>14,B=e[2]<<1|e[3]>>>31,L=e[3]<<1|e[2]>>>31,A=e[13]<<12|e[12]>>>20,y=e[12]<<12|e[13]>>>20,K=e[22]<<10|e[23]>>>22,Y=e[23]<<10|e[22]>>>22,T=e[33]<<13|e[32]>>>19,R=e[32]<<13|e[33]>>>19,ue=e[42]<<2|e[43]>>>30,ce=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,re=e[4]<<30|e[5]>>>2,F=e[14]<<6|e[15]>>>26,D=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,b=e[24]<<11|e[25]>>>21,X=e[34]<<15|e[35]>>>17,Z=e[35]<<15|e[34]>>>17,I=e[45]<<29|e[44]>>>3,O=e[44]<<29|e[45]>>>3,x=e[6]<<28|e[7]>>>4,N=e[7]<<28|e[6]>>>4,ne=e[17]<<23|e[16]>>>
29,ie=e[16]<<23|e[17]>>>9,U=e[26]<<25|e[27]>>>7,j=e[27]<<25|e[26]>>>7,w=e[36]<<21|e[37]>>>11,E=e[37]<<21|e[36]>>>11,$=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,G=e[8]<<27|e[9]>>>5,V=e[9]<<27|e[8]>>>5,C=e[18]<<20|e[19]>>>12,_=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,z=e[38]<<8|e[39]>>>24,Q=e[39]<<8|e[38]>>>24,k=e[48]<<14|e[49]>>>18,S=e[49]<<14|e[48]>>>18,e[0]=m^~A&v,e[1]=g^~y&b,e[10]=x^~C&M,e[11]=N^~_&P,e[20]=B^~F&U,e[21]=L^~D&j,e[30]=G^~W&K,e[31]=V^~J&Y,e[40]=te^~ne&oe,e[41]=re^~ie&ae,e[2]=A^~v&w,e[3]=y^~b&E,e[12]=C^~M&T,e[13]=_^~P&R,e[22]=F^~U&z,e[23]=D^~j&Q,e[32]=W^~K&X,e[33]=J^~Y&Z,e[42]=ne^~oe&se,e[43]=ie^~ae&le,e[4]=v^~w&k,e[5]=b^~E&S,e[14]=M^~T&I,e[15]=P^~R&O,e[24]=U^~z&H,e[25]=j^~Q&q,e[34]=K^~X&$,e[35]=Y^~Z&ee,e[44]=oe^~se&ue,e[45]=ae^~le&ce,e[6]=w^~k&m,e[7]=E^~S&g,e[16]=T^~I&x,e[17]=R^~O&N,e[26]=z^~H&B,e[27]=Q^~q&L,e[36]=X^~$&G,e[37]=Z^~ee&V,e[46]=se^~ue&te,e[47]=le^~ce&re,e[8]=k^~m&A,e[9]=S^~g&y,e[18]=I^~x&C,e[19]=O^~N&_,e[28]=H^~B&F,e[29]=q^~L&D,e[38]=$^~G&W,e[39]=ee^~V&J,e[48]=ue^~te&ne,e[49]=ce^~re&ie,e[0]^=p[n],e[1]^=p[n+1]};if(l)e.exports=N;else{for(_=0;_<C.length;++_)a[C[_]]=N[C[_]];u&&(void 0===(n=function(){return N}.call(t,r,t,e))||(e.exports=n))}}()},2325:e=>{function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},4463:(e,t,r)=>{"use strict";var n=r(2791),i=r(5296);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),f=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},p={};function m(e,t,r,n,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var A=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function v(e,t,r,n){var i=g.hasOwnProperty(t)?g[t]:null;(null!==i?0!==i.type:n||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,r,n){if(null===t||"undefined"===typeof t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,n))return!0;
vendor: 32,981 bytes, line 2
2if(n)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,r,i,n)&&(r=null),n||null===i?function(e){return!!f.call(p,e)||!f.call(h,e)&&(d.test(e)?p[e]=!0:(h[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=null===r?3!==i.type&&"":r:(t=i.attributeName,n=i.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(i=i.type)||4===i&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(A,y);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(A,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(A,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var b=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),E=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),N=Symbol.for("react.provider"),C=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),R=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var I=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var O=Symbol.iterator;function B(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=O&&e[O]||e["@@iterator"])?e:null}var L,F=Object.assign;function D(e){if(void 0===L)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);L=t&&t[1]||""}return"\n"+L+e}var U=!1;function j(e,t){if(!e||U)return"";U=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var n=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){n=u}e.call(t.prototype)}else{try{throw Error()}catch(u){n=u}e()}}catch(u){if(u&&n&&"string"===typeof u.stack){for(var i=u.stack.split("\n"),o=n.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{U=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?D(e):""}function z(e){switch(e.tag){case 5:return D(e.type);case 16:return D("Lazy");case 13:return D("Suspense");case 19:return D("SuspenseList");case 0:case 2:case 15:return e=j(e.type,!1);case 11:return e=j(e.type.render,!1);case 1:return e=j(e.type,!0);default:return""}}function Q(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case k:return"Fragment";case E:return"Portal";case x:return"Profiler";case S:return"StrictMode";case M:return"Suspense";case P:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case C:return(e.displayName||"Context")+".Consumer";case N:return(e._context.displayName||"Context")+".Provider";case _:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case T:return null!==(t=e.displayName||null)?t:Q(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return Q(e(t))}catch(r){}}return null}function H(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Q(t);case 8:return t===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function q(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function G(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function V(e){e._valueTracker||(e._valueTracker=function(e){var t=G(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof r&&"function"===typeof r.get&&"function"===typeof r.set){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function W(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=G(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function J(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function K(e,t){var r=t.checked;return F({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function Y(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=q(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&v(e,"checked",t,!1)}function Z(e,t){X(e,t);var r=q(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,r):t.hasOwnProperty("defaultValue")&&ee(e,t.type,q(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function $(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function ee(e,t,r){"number"===t&&J(e.ownerDocument)===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var te=Array.isArray;function re(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+q(r),t=null,i=0;i<e.length;i++){if(e[i].value===r)return e[i].selected=!0,void(n&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function ne(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return F({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(o(92));if(te(r)){if(1<r.length)throw Error(o(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:q(r)}}function oe(e,t){var r=q(t.value),n=q(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,fe=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,r,n){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function de(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function me(e,t,r){return null==t||"boolean"===typeof t||""===t?"":r||"number"!==typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function ge(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),i=me(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}Object.keys(he).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var Ae=F({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(Ae[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function ve(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var be=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ee=null,ke=null,Se=null;function xe(e){if(e=vi(e)){if("function"!==typeof Ee)throw Error(o(280));var t=e.stateNode;t&&(t=wi(t),Ee(e.stateNode,e.type,t))}}function Ne(e){ke?Se?Se.push(e):Se=[e]:ke=e}function Ce(){if(ke){var e=ke,t=Se;if(Se=ke=null,xe(e),t)for(e=0;e<t.length;e++)xe(t[e])}}function _e(e,t){return e(t)}function Me(){}var Pe=!1;function Te(e,t,r){if(Pe)return e(t,r);Pe=!0;try{return _e(e,t,r)}finally{Pe=!1,(null!==ke||null!==Se)&&(Me(),Ce())}}function Re(e,t){var r=e.stateNode;if(null===r)return null;var n=wi(r);if(null===n)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(r&&"function"!==typeof r)throw Error(o(231,t,typeof r));return r}var Ie=!1;if(c)try{var Oe={};Object.defineProperty(Oe,"passive",{get:function(){Ie=!0}}),window.addEventListener("test",Oe,Oe),window.removeEventListener("test",Oe,Oe)}catch(ce){Ie=!1}function Be(e,t,r,n,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(c){this.onError(c)}}var Le=!1,Fe=null,De=!1,Ue=null,je={onError:function(e){Le=!0,Fe=e}};function ze(e,t,r,n,i,o,a,s,l){Le=!1,Fe=null,Be.apply(je,arguments)}function Qe(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function He(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function qe(e){if(Qe(e)!==e)throw Error(o(188))}function Ge(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Qe(e)))throw Error(o(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(n=i.return)){r=n;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return qe(i),e;if(a===n)return qe(i),t;a=a.sibling}throw Error(o(188))}if(r.return!==n.return)r=i,n=a;else{for(var s=!1,l=i.child;l;){if(l===r){s=!0,r=i,n=a;break}if(l===n){s=!0,n=i,r=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===r){s=!0,r=a,n=i;break}if(l===n){s=!0,n=a,r=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(r.alternate!==n)throw Error(o(190))}if(3!==r.tag)throw Error(o(188));return r.stateNode.current===r?e:t}(e))?Ve(e):null}function Ve(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ve(e);if(null!==t)return t;e=e.sibling}return null}var We=i.unstable_scheduleCallback,Je=i.unstable_cancelCallback,Ke=i.unstable_shouldYield,Ye=i.unstable_requestPaint,Xe=i.unstable_now,Ze=i.unstable_getCurrentPriorityLevel,$e=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,rt=i.unstable_LowPriority,nt=i.unstable_IdlePriority,it=null,ot=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ut=64,ct=4194304;function ft(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dt(e,t){var r=e.pendingLanes;if(0===r)return 0;var n=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&r;if(0!==a){var s=a&~i;0!==s?n=ft(s):0!==(o&=a)&&(n=ft(o))}else 0!==(a=r&~i)?n=ft(a):0!==o&&(n=ft(o));if(0===n)return 0;if(0!==t&&t!==n&&0===(t&i)&&((i=n&-n)>=(o=t&-t)||16===i&&0!==(4194240&o)))return t;if(0!==(4&n)&&(n|=16&r),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0<t;)i=1<<(r=31-at(t)),n|=e[r],t&=~i;return n}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return 0===(4194240&(ut<<=1))&&(ut=64),e}function gt(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function At(e,t,r){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=r}function yt(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-at(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var vt=0;function bt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var wt,Et,kt,St,xt,Nt=!1,Ct=[],_t=null,Mt=null,Pt=null,Tt=new Map,Rt=new Map,It=[],Ot="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Bt(e,t){switch(e){case"focusin":case"focusout":_t=null;break;case"dragenter":case"dragleave":Mt=null;break;case"mouseover":case"mouseout":Pt=null;break;case"pointerover":case"pointerout":Tt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rt.delete(t.pointerId)}}function Lt(e,t,r,n,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=vi(t))&&Et(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Ft(e){var t=yi(e.target);if(null!==t){var r=Qe(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=He(r)))return e.blockedOn=t,void xt(e.priority,(function(){kt(r)}))}else if(3===t&&r.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function Dt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var r=Kt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r)return null!==(t=vi(r))&&Et(t),e.blockedOn=r,!1;var n=new(r=e.nativeEvent).constructor(r.type,r);be=n,r.target.dispatchEvent(n),be=null,t.shift()}return!0}function Ut(e,t,r){Dt(e)&&r.delete(t)}function jt(){Nt=!1,null!==_t&&Dt(_t)&&(_t=null),null!==Mt&&Dt(Mt)&&(Mt=null),null!==Pt&&Dt(Pt)&&(Pt=null),Tt.forEach(Ut),Rt.forEach(Ut)}function zt(e,t){e.blockedOn===t&&(e.blockedOn=null,Nt||(Nt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,jt)))}function Qt(e){function t(t){return zt(t,e)}if(0<Ct.length){zt(Ct[0],e);for(var r=1;r<Ct.length;r++){var n=Ct[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==_t&&zt(_t,e),null!==Mt&&zt(Mt,e),null!==Pt&&zt(Pt,e),Tt.forEach(t),Rt.forEach(t),r=0;r<It.length;r++)(n=It[r]).blockedOn===e&&(n.blockedOn=null);for(;0<It.length&&null===(r=It[0]).blockedOn;)Ft(r),null===r.blockedOn&&It.shift()}var Ht=b.ReactCurrentBatchConfig,qt=!0;function Gt(e,t,r,n){var i=vt,o=Ht.transition;Ht.transition=null;try{vt=1,Wt(e,t,r,n)}finally{vt=i,Ht.transition=o}}function Vt(e,t,r,n){var i=vt,o=Ht.transition;Ht.transition=null;try{vt=4,Wt(e,t,r,n)}finally{vt=i,Ht.transition=o}}function Wt(e,t,r,n){if(qt){var i=Kt(e,t,r,n);if(null===i)qn(e,t,n,Jt,r),Bt(e,n);else if(function(e,t,r,n,i){switch(t){case"focusin":return _t=Lt(_t,e,t,r,n,i),!0;case"dragenter":return Mt=Lt(Mt,e,t,r,n,i),!0;case"mouseover":return Pt=Lt(Pt,e,t,r,n,i),!0;case"pointerover":var o=i.pointerId;return Tt.set(o,Lt(Tt.get(o)||null,e,t,r,n,i)),!0;case"gotpointercapture":return o=i.pointerId,Rt.set(o,Lt(Rt.get(o)||null,e,t,r,n,i)),!0}return!1}(i,e,t,r,n))n.stopPropagation();else if(Bt(e,n),4&t&&-1<Ot.indexOf(e)){for(;null!==i;){var o=vi(i);if(null!==o&&wt(o),null===(o=Kt(e,t,r,n))&&qn(e,t,n,Jt,r),o===i)break;i=o}null!==i&&n.stopPropagation()}else qn(e,t,n,null,r)}}var Jt=null;function Kt(e,t,r,n){if(Jt=null,null!==(e=yi(e=we(n))))if(null===(t=Qe(e)))e=null;else if(13===(r=t.tag)){if(null!==(e=He(t)))return e;e=null}else if(3===r){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Jt=e,null}function Yt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ze()){case $e:return 1;case et:return 4;case tt:case rt:return 16;case nt:return 536870912;default:return 16}default:return 16}}var Xt=null,Zt=null,$t=null;function er(){if($t)return $t;var e,t,r=Zt,n=r.length,i="value"in Xt?Xt.value:Xt.textContent,o=i.length;for(e=0;e<n&&r[e]===i[e];e++);var a=n-e;for(t=1;t<=a&&r[n-t]===i[o-t];t++);return $t=i.slice(e,1<t?1-t:void 0)}function tr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function rr(){return!0}function nr(){return!1}function ir(e){function t(t,r,n,i,o){for(var a in this._reactName=t,this._targetInst=n,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?rr:nr,this.isPropagationStopped=nr,this}return F(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=rr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=rr)},persist:function(){},isPersistent:rr}),t}var or,ar,sr,lr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ur=ir(lr),cr=F({},lr,{view:0,detail:0}),fr=ir(cr),dr=F({},cr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sr,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sr&&(sr&&"mousemove"===e.type?(or=e.screenX-sr.screenX,ar=e.screenY-sr.screenY):ar=or=0,sr=e),or)},movementY:function(e){return"movementY"in e?e.movementY:ar}}),hr=ir(dr),pr=ir(F({},dr,{dataTransfer:0})),mr=ir(F({},cr,{relatedTarget:0})),gr=ir(F({},lr,{animationName:0,elapsedTime:0,pseudoElement:0})),Ar=F({},lr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yr=ir(Ar),vr=ir(F({},lr,{data:0})),br={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Er={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Er[e])&&!!t[e]}function Sr(){return kr}var xr=F({},cr,{key:function(e){if(e.key){var t=br[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?wr[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sr,charCode:function(e){return"keypress"===e.type?tr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Nr=ir(xr),Cr=ir(F({},dr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),_r=ir(F({},cr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sr})),Mr=ir(F({},lr,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pr=F({},dr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Tr=ir(Pr),Rr=[9,13,27,32],Ir=c&&"CompositionEvent"in window,Or=null;c&&"documentMode"in document&&(Or=document.documentMode);var Br=c&&"TextEvent"in window&&!Or,Lr=c&&(!Ir||Or&&8<Or&&11>=Or),Fr=String.fromCharCode(32),Dr=!1;function Ur(e,t){switch(e){case"keyup":return-1!==Rr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jr(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var zr=!1;var Qr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Qr[e.type]:"textarea"===t}function qr(e,t,r,n){Ne(n),0<(t=Vn(t,"onChange")).length&&(r=new ur("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Gr=null,Vr=null;function Wr(e){Dn(e,0)}function Jr(e){if(W(bi(e)))return e}function Kr(e,t){if("change"===e)return t}var Yr=!1;if(c){var Xr;if(c){var Zr="oninput"in document;if(!Zr){var $r=document.createElement("div");$r.setAttribute("oninput","return;"),Zr="function"===typeof $r.oninput}Xr=Zr}else Xr=!1;Yr=Xr&&(!document.documentMode||9<document.documentMode)}function en(){Gr&&(Gr.detachEvent("onpropertychange",tn),Vr=Gr=null)}function tn(e){if("value"===e.propertyName&&Jr(Vr)){var t=[];qr(t,Vr,e,we(e)),Te(Wr,t)}}function rn(e,t,r){"focusin"===e?(en(),Vr=r,(Gr=t).attachEvent("onpropertychange",tn)):"focusout"===e&&en()}function nn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Jr(Vr)}function on(e,t){if("click"===e)return Jr(t)}function an(e,t){if("input"===e||"change"===e)return Jr(t)}var sn="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function ln(e,t){if(sn(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!f.call(t,i)||!sn(e[i],t[i]))return!1}return!0}function un(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cn(e,t){var r,n=un(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=un(n)}}function fn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dn(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var r="string"===typeof t.contentWindow.location.href}catch(n){r=!1}if(!r)break;t=J((e=t.contentWindow).document)}return t}function hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pn(e){var t=dn(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&fn(r.ownerDocument.documentElement,r)){if(null!==n&&hn(r))if(t=n.start,void 0===(e=n.end)&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if((e=(t=r.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=r.textContent.length,o=Math.min(n.start,i);n=void 0===n.end?o:Math.min(n.end,i),!e.extend&&o>n&&(i=n,n=o,o=i),i=cn(r,o);var a=cn(r,n);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=r;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof r.focus&&r.focus(),r=0;r<t.length;r++)(e=t[r]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mn=c&&"documentMode"in document&&11>=document.documentMode,gn=null,An=null,yn=null,vn=!1;function bn(e,t,r){var n=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;vn||null==gn||gn!==J(n)||("selectionStart"in(n=gn)&&hn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},yn&&ln(yn,n)||(yn=n,0<(n=Vn(An,"onSelect")).length&&(t=new ur("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=gn)))}function wn(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var En={animationend:wn("Animation","AnimationEnd"),animationiteration:wn("Animation","AnimationIteration"),animationstart:wn("Animation","AnimationStart"),transitionend:wn("Transition","TransitionEnd")},kn={},Sn={};function xn(e){if(kn[e])return kn[e];if(!En[e])return e;var t,r=En[e];for(t in r)if(r.hasOwnProperty(t)&&t in Sn)return kn[e]=r[t];return e}c&&(Sn=document.createElement("div").style,"AnimationEvent"in window||(delete En.animationend.animation,delete En.animationiteration.animation,delete En.animationstart.animation),"TransitionEvent"in window||delete En.transitionend.transition);var Nn=xn("animationend"),Cn=xn("animationiteration"),_n=xn("animationstart"),Mn=xn("transitionend"),Pn=new Map,Tn="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Rn(e,t){Pn.set(e,t),l(t,[e])}for(var In=0;In<Tn.length;In++){var On=Tn[In];Rn(On.toLowerCase(),"on"+(On[0].toUpperCase()+On.slice(1)))}Rn(Nn,"onAnimationEnd"),Rn(Cn,"onAnimationIteration"),Rn(_n,"onAnimationStart"),Rn("dblclick","onDoubleClick"),Rn("focusin","onFocus"),Rn("focusout","onBlur"),Rn(Mn,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focu
2sin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Bn="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ln=new Set("cancel close invalid load scroll toggle".split(" ").concat(Bn));function Fn(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,n,i,a,s,l,u){if(ze.apply(this,arguments),Le){if(!Le)throw Error(o(198));var c=Fe;Le=!1,Fe=null,De||(De=!0,Ue=c)}}(n,t,void 0,e),e.currentTarget=null}function Dn(e,t){t=0!==(4&t);for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var o=void 0;if(t)for(var a=n.length-1;0<=a;a--){var s=n[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;Fn(i,s,u),o=l}else for(a=0;a<n.length;a++){if(l=(s=n[a]).instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Fn(i,s,u),o=l}}}if(De)throw e=Ue,De=!1,Ue=null,e}function Un(e,t){var r=t[mi];void 0===r&&(r=t[mi]=new Set);var n=e+"__bubble";r.has(n)||(Hn(t,e,2,!1),r.add(n))}function jn(e,t,r){var n=0;t&&(n|=4),Hn(r,e,n,t)}var zn="_reactListening"+Math.random().toString(36).slice(2);function Qn(e){if(!e[zn]){e[zn]=!0,a.forEach((function(t){"selectionchange"!==t&&(Ln.has(t)||jn(t,!1,e),jn(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[zn]||(t[zn]=!0,jn("selectionchange",!1,t))}}function Hn(e,t,r,n){switch(Yt(t)){case 1:var i=Gt;break;case 4:i=Vt;break;default:i=Wt}r=i.bind(null,t,r,e),i=void 0,!Ie||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),n?void 0!==i?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):void 0!==i?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function qn(e,t,r,n,i){var o=n;if(0===(1&t)&&0===(2&t)&&null!==n)e:for(;;){if(null===n)return;var a=n.tag;if(3===a||4===a){var s=n.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=n.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=yi(s)))return;if(5===(l=a.tag)||6===l){n=o=a;continue e}s=s.parentNode}}n=n.return}Te((function(){var n=o,i=we(r),a=[];e:{var s=Pn.get(e);if(void 0!==s){var l=ur,u=e;switch(e){case"keypress":if(0===tr(r))break e;case"keydown":case"keyup":l=Nr;break;case"focusin":u="focus",l=mr;break;case"focusout":u="blur",l=mr;break;case"beforeblur":case"afterblur":l=mr;break;case"click":if(2===r.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=hr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=pr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=_r;break;case Nn:case Cn:case _n:l=gr;break;case Mn:l=Mr;break;case"scroll":l=fr;break;case"wheel":l=Tr;break;case"copy":case"cut":case"paste":l=yr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Cr}var c=0!==(4&t),f=!c&&"scroll"===e,d=c?null!==s?s+"Capture":null:s;c=[];for(var h,p=n;null!==p;){var m=(h=p).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==d&&(null!=(m=Re(p,d))&&c.push(Gn(p,m,h)))),f)break;p=p.return}0<c.length&&(s=new l(s,u,null,r,i),a.push({event:s,listeners:c}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||r===be||!(u=r.relatedTarget||r.fromElement)||!yi(u)&&!u[pi])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=n,null!==(u=(u=r.relatedTarget||r.toElement)?yi(u):null)&&(u!==(f=Qe(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=n),l!==u)){if(c=hr,m="onMouseLeave",d="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=Cr,m="onPointerLeave",d="onPointerEnter",p="pointer"),f=null==l?s:bi(l),h=null==u?s:bi(u),(s=new c(m,p+"leave",l,r,i)).target=f,s.relatedTarget=h,m=null,yi(i)===n&&((c=new c(d,p+"enter",u,r,i)).target=h,c.relatedTarget=f,m=c),f=m,l&&u)e:{for(d=u,p=0,h=c=l;h;h=Wn(h))p++;for(h=0,m=d;m;m=Wn(m))h++;for(;0<p-h;)c=Wn(c),p--;for(;0<h-p;)d=Wn(d),h--;for(;p--;){if(c===d||null!==d&&c===d.alternate)break e;c=Wn(c),d=Wn(d)}c=null}else c=null;null!==l&&Jn(a,s,l,c,!1),null!==u&&null!==f&&Jn(a,f,u,c,!0)}if("select"===(l=(s=n?bi(n):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Kr;else if(Hr(s))if(Yr)g=an;else{g=nn;var A=rn}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=on);switch(g&&(g=g(e,n))?qr(a,g,r,i):(A&&A(e,s,n),"focusout"===e&&(A=s._wrapperState)&&A.controlled&&"number"===s.type&&ee(s,"number",s.value)),A=n?bi(n):window,e){case"focusin":(Hr(A)||"true"===A.contentEditable)&&(gn=A,An=n,yn=null);break;case"focusout":yn=An=gn=null;break;case"mousedown":vn=!0;break;case"contextmenu":case"mouseup":case"dragend":vn=!1,bn(a,r,i);break;case"selectionchange":if(mn)break;case"keydown":case"keyup":bn(a,r,i)}var y;if(Ir)e:{switch(e){case"compositionstart":var v="onCompositionStart";break e;case"compositionend":v="onCompositionEnd";break e;case"compositionupdate":v="onCompositionUpdate";break e}v=void 0}else zr?Ur(e,r)&&(v="onCompositionEnd"):"keydown"===e&&229===r.keyCode&&(v="onCompositionStart");v&&(Lr&&"ko"!==r.locale&&(zr||"onCompositionStart"!==v?"onCompositionEnd"===v&&zr&&(y=er()):(Zt="value"in(Xt=i)?Xt.value:Xt.textContent,zr=!0)),0<(A=Vn(n,v)).length&&(v=new vr(v,e,null,r,i),a.push({event:v,listeners:A}
vendor: 96,623 bytes, line 2
2),y?v.data=y:null!==(y=jr(r))&&(v.data=y))),(y=Br?function(e,t){switch(e){case"compositionend":return jr(t);case"keypress":return 32!==t.which?null:(Dr=!0,Fr);case"textInput":return(e=t.data)===Fr&&Dr?null:e;default:return null}}(e,r):function(e,t){if(zr)return"compositionend"===e||!Ir&&Ur(e,t)?(e=er(),$t=Zt=Xt=null,zr=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Lr&&"ko"!==t.locale?null:t.data}}(e,r))&&(0<(n=Vn(n,"onBeforeInput")).length&&(i=new vr("onBeforeInput","beforeinput",null,r,i),a.push({event:i,listeners:n}),i.data=y))}Dn(a,t)}))}function Gn(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Vn(e,t){for(var r=t+"Capture",n=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Re(e,r))&&n.unshift(Gn(e,o,i)),null!=(o=Re(e,t))&&n.push(Gn(e,o,i))),e=e.return}return n}function Wn(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Jn(e,t,r,n,i){for(var o=t._reactName,a=[];null!==r&&r!==n;){var s=r,l=s.alternate,u=s.stateNode;if(null!==l&&l===n)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=Re(r,o))&&a.unshift(Gn(r,l,s)):i||null!=(l=Re(r,o))&&a.push(Gn(r,l,s))),r=r.return}0!==a.length&&e.push({event:t,listeners:a})}var Kn=/\r\n?/g,Yn=/\u0000|\uFFFD/g;function Xn(e){return("string"===typeof e?e:""+e).replace(Kn,"\n").replace(Yn,"")}function Zn(e,t,r){if(t=Xn(t),Xn(e)!==t&&r)throw Error(o(425))}function $n(){}var ei=null,ti=null;function ri(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ni="function"===typeof setTimeout?setTimeout:void 0,ii="function"===typeof clearTimeout?clearTimeout:void 0,oi="function"===typeof Promise?Promise:void 0,ai="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof oi?function(e){return oi.resolve(null).then(e).catch(si)}:ni;function si(e){setTimeout((function(){throw e}))}function li(e,t){var r=t,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&8===i.nodeType)if("/$"===(r=i.data)){if(0===n)return e.removeChild(i),void Qt(t);n--}else"$"!==r&&"$?"!==r&&"$!"!==r||n++;r=i}while(r);Qt(t)}function ui(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ci(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if("$"===r||"$!"===r||"$?"===r){if(0===t)return e;t--}else"/$"===r&&t++}e=e.previousSibling}return null}var fi=Math.random().toString(36).slice(2),di="__reactFiber$"+fi,hi="__reactProps$"+fi,pi="__reactContainer$"+fi,mi="__reactEvents$"+fi,gi="__reactListeners$"+fi,Ai="__reactHandles$"+fi;function yi(e){var t=e[di];if(t)return t;for(var r=e.parentNode;r;){if(t=r[pi]||r[di]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=ci(e);null!==e;){if(r=e[di])return r;e=ci(e)}return t}r=(e=r).parentNode}return null}function vi(e){return!(e=e[di]||e[pi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function bi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function wi(e){return e[hi]||null}var Ei=[],ki=-1;function Si(e){return{current:e}}function xi(e){0>ki||(e.current=Ei[ki],Ei[ki]=null,ki--)}function Ni(e,t){ki++,Ei[ki]=e.current,e.current=t}var Ci={},_i=Si(Ci),Mi=Si(!1),Pi=Ci;function Ti(e,t){var r=e.type.contextTypes;if(!r)return Ci;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in r)o[i]=t[i];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ri(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Ii(){xi(Mi),xi(_i)}function Oi(e,t,r){if(_i.current!==Ci)throw Error(o(168));Ni(_i,t),Ni(Mi,r)}function Bi(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,"function"!==typeof n.getChildContext)return r;for(var i in n=n.getChildContext())if(!(i in t))throw Error(o(108,H(e)||"Unknown",i));return F({},r,n)}function Li(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ci,Pi=_i.current,Ni(_i,e),Ni(Mi,Mi.current),!0}function Fi(e,t,r){var n=e.stateNode;if(!n)throw Error(o(169));r?(e=Bi(e,t,Pi),n.__reactInternalMemoizedMergedChildContext=e,xi(Mi),xi(_i),Ni(_i,e)):xi(Mi),Ni(Mi,r)}var Di=null,Ui=!1,ji=!1;function zi(e){null===Di?Di=[e]:Di.push(e)}function Qi(){if(!ji&&null!==Di){ji=!0;var e=0,t=vt;try{var r=Di;for(vt=1;e<r.length;e++){var n=r[e];do{n=n(!0)}while(null!==n)}Di=null,Ui=!1}catch(i){throw null!==Di&&(Di=Di.slice(e+1)),We($e,Qi),i}finally{vt=t,ji=!1}}return null}var Hi=[],qi=0,Gi=null,Vi=0,Wi=[],Ji=0,Ki=null,Yi=1,Xi="";function Zi(e,t){Hi[qi++]=Vi,Hi[qi++]=Gi,Gi=e,Vi=t}function $i(e,t,r){Wi[Ji++]=Yi,Wi[Ji++]=Xi,Wi[Ji++]=Ki,Ki=e;var n=Yi;e=Xi;var i=32-at(n)-1;n&=~(1<<i),r+=1;var o=32-at(t)+i;if(30<o){var a=i-i%5;o=(n&(1<<a)-1).toString(32),n>>=a,i-=a,Yi=1<<32-at(t)+i|r<<i|n,Xi=o+e}else Yi=1<<o|r<<i|n,Xi=e}function eo(e){null!==e.return&&(Zi(e,1),$i(e,1,0))}function to(e){for(;e===Gi;)Gi=Hi[--qi],Hi[qi]=null,Vi=Hi[--qi],Hi[qi]=null;for(;e===Ki;)Ki=Wi[--Ji],Wi[Ji]=null,Xi=Wi[--Ji],Wi[Ji]=null,Yi=Wi[--Ji],Wi[Ji]=null}var ro=null,no=null,io=!1,oo=null;function ao(e,t){var r=Ru(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,null===(t=e.deletions)?(e.deletions=[r],e.flags|=16):t.push(r)}function so(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ro=e,no=ui(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ro=e,no=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(r=null!==Ki?{id:Yi,overflow:Xi}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},(r=Ru(18,null,null,0)).stateNode=t,r.return=e,e.child=r,ro=e,no=null,!0);default:return!1}}function lo(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function uo(e){if(io){var t=no;if(t){var r=t;if(!so(e,t)){if(lo(e))throw Error(o(418));t=ui(r.nextSibling);var n=ro;t&&so(e,t)?ao(n,r):(e.flags=-4097&e.flags|2,io=!1,ro=e)}}else{if(lo(e))throw Error(o(418));e.flags=-4097&e.flags|2,io=!1,ro=e}}}function co(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ro=e}function fo(e){if(e!==ro)return!1;if(!io)return co(e),io=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ri(e.type,e.memoizedProps)),t&&(t=no)){if(lo(e))throw ho(),Error(o(418));for(;t;)ao(e,t),t=ui(t.nextSibling)}if(co(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){no=ui(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}no=null}}else no=ro?ui(e.stateNode.nextSibling):null;return!0}function ho(){for(var e=no;e;)e=ui(e.nextSibling)}function po(){no=ro=null,io=!1}function mo(e){null===oo?oo=[e]:oo.push(e)}var go=b.ReactCurrentBatchConfig;function Ao(e,t){if(e&&e.defaultProps){for(var r in t=F({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}return t}var yo=Si(null),vo=null,bo=null,wo=null;function Eo(){wo=bo=vo=null}function ko(e){var t=yo.current;xi(yo),e._currentValue=t}function So(e,t,r){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==n&&(n.childLanes|=t)):null!==n&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function xo(e,t){vo=e,wo=bo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bs=!0),e.firstContext=null)}function No(e){var t=e._currentValue;if(wo!==e)if(e={context:e,memoizedValue:t,next:null},null===bo){if(null===vo)throw Error(o(308));bo=e,vo.dependencies={lanes:0,firstContext:e}}else bo=bo.next=e;return t}var Co=null;function _o(e){null===Co?Co=[e]:Co.push(e)}function Mo(e,t,r,n){var i=t.interleaved;return null===i?(r.next=r,_o(t)):(r.next=i.next,i.next=r),t.interleaved=r,Po(e,n)}function Po(e,t){e.lanes|=t;var r=e.alternate;for(null!==r&&(r.lanes|=t),r=e,e=e.return;null!==e;)e.childLanes|=t,null!==(r=e.alternate)&&(r.childLanes|=t),r=e,e=e.return;return 3===r.tag?r.stateNode:null}var To=!1;function Ro(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Io(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Oo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bo(e,t,r){var n=e.updateQueue;if(null===n)return null;if(n=n.shared,0!==(2&Ml)){var i=n.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),n.pending=t,Po(e,r)}return null===(i=n.interleaved)?(t.next=t,_o(n)):(t.next=i.next,i.next=t),n.interleaved=t,Po(e,r)}function Lo(e,t,r){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&r))){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,yt(e,r)}}function Fo(e,t){var r=e.updateQueue,n=e.alternate;if(null!==n&&r===(n=n.updateQueue)){var i=null,o=null;if(null!==(r=r.firstBaseUpdate)){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};null===o?i=o=a:o=o.next=a,r=r.next}while(null!==r);null===o?i=o=t:o=o.next=t}else i=o=t;return r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:n.shared,effects:n.effects},void(e.updateQueue=r)}null===(e=r.lastBaseUpdate)?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Do(e,t,r,n){var i=e.updateQueue;To=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?o=u:a.next=u,a=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==o){var f=i.baseState;for(a=0,c=u=l=null,s=o;;){var d=s.lane,h=s.eventTime;if((n&d)===d){null!==c&&(c=c.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,m=s;switch(d=t,h=r,m.tag){case 1:if("function"===typeof(p=m.payload)){f=p.call(h,f,d);break e}f=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null===(d="function"===typeof(p=m.payload)?p.call(h,f,d):p)||void 0===d)break e;f=F({},f,d);break e;case 2:To=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(d=i.effects)?i.effects=[s]:d.push(s))}else h={eventTime:h,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=h,l=f):c=c.next=h,a|=d;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(d=s).next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}if(null===c&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Fl|=a,e.lanes=a,e.memoizedState=f}}function Uo(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(null!==i){if(n.callback=null,n=r,"function"!==typeof i)throw Error(o(191,i));i.call(n)}}}var jo=(new n.Component).refs;function zo(e,t,r,n){r=null===(r=r(n,t=e.memoizedState))||void 0===r?t:F({},t,r),e.memoizedState=r,0===e.lanes&&(e.updateQueue.baseState=r)}var Qo={isMounted:function(e){return!!(e=e._reactInternals)&&Qe(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=tu(),i=ru(e),o=Oo(n,i);o.payload=t,void 0!==r&&null!==r&&(o.callback=r),null!==(t=Bo(e,o,i))&&(nu(t,e,i,n),Lo(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=tu(),i=ru(e),o=Oo(n,i);o.tag=1,o.payload=t,void 0!==r&&null!==r&&(o.callback=r),null!==(t=Bo(e,o,i))&&(nu(t,e,i,n),Lo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=tu(),n=ru(e),i=Oo(r,n);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),null!==(t=Bo(e,i,n))&&(nu(t,e,n,r),Lo(t,e,n))}};function Ho(e,t,r,n,i,o,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!ln(r,n)||!ln(i,o))}function qo(e,t,r){var n=!1,i=Ci,o=t.contextType;return"object"===typeof o&&null!==o?o=No(o):(i=Ri(t)?Pi:_i.current,o=(n=null!==(n=t.contextTypes)&&void 0!==n)?Ti(e,i):Ci),t=new t(r,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Qo,e.stateNode=t,t._reactInternals=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Go(e,t,r,n){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Qo.enqueueReplaceState(t,t.state,null)}function Vo(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs=jo,Ro(e);var o=t.contextType;"object"===typeof o&&null!==o?i.context=No(o):(o=Ri(t)?Pi:_i.current,i.context=Ti(e,o)),i.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(zo(e,t,o,r),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&Qo.enqueueReplaceState(i,i.state,null),Do(e,r,i,n),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4194308)}function Wo(e,t,r){if(null!==(e=r.ref)&&"function"!==typeof e&&"object"!==typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(o(309));var n=r.stateNode}if(!n)throw Error(o(147,e));var i=n,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;t===jo&&(t=i.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(o(284));if(!r._owner)throw Error(o(290,e))}return e}function Jo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ko(e){return(0,e._init)(e._payload)}function Yo(e){function t(t,r){if(e){var n=t.deletions;null===n?(t.deletions=[r],t.flags|=16):n.push(r)}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Ou(e,t)).index=0,e.sibling=null,e}function a(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.flags|=2,r):n:(t.flags|=2,r):(t.flags|=1048576,r)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,r,n){return null===t||6!==t.tag?((t=Du(r,e.mode,n)).return=e,t):((t=i(t,r)).return=e,t)}function u(e,t,r,n){var o=r.type;return o===k?f(e,t,r.props.children,n,r.key):null!==t&&(t.elementType===o||"object"===typeof o&&null!==o&&o.$$typeof===R&&Ko(o)===t.type)?((n=i(t,r.props)).ref=Wo(e,t,r),n.return=e,n):((n=Bu(r.type,r.key,r.props,null,e.mode,n)).ref=Wo(e,t,r),n.return=e,n)}function c(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=Uu(r,e.mode,n)).return=e,t):((t=i(t,r.children||[])).return=e,t)}function f(e,t,r,n,o){return null===t||7!==t.tag?((t=Lu(r,e.mode,n,o)).return=e,t):((t=i(t,r)).return=e,t)}function d(e,t,r){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Du(""+t,e.mode,r)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case w:return(r=Bu(t.type,t.key,t.props,null,e.mode,r)).ref=Wo(e,null,t),r.return=e,r;case E:return(t=Uu(t,e.mode,r)).return=e,t;case R:return d(e,(0,t._init)(t._payload),r)}if(te(t)||B(t))return(t=Lu(t,e.mode,r,null)).return=e,t;Jo(e,t)}return null}function h(e,t,r,n){var i=null!==t?t.key:null;if("string"===typeof r&&""!==r||"number"===typeof r)return null!==i?null:l(e,t,""+r,n);if("object"===typeof r&&null!==r){switch(r.$$typeof){case w:return r.key===i?u(e,t,r,n):null;case E:return r.key===i?c(e,t,r,n):null;case R:return h(e,t,(i=r._init)(r._payload),n)}if(te(r)||B(r))return null!==i?null:f(e,t,r,n,null);Jo(e,r)}return null}function p(e,t,r,n,i){if("string"===typeof n&&""!==n||"number"===typeof n)return l(t,e=e.get(r)||null,""+n,i);if("object"===typeof n&&null!==n){switch(n.$$typeof){case w:return u(t,e=e.get(null===n.key?r:n.key)||null,n,i);case E:return c(t,e=e.get(null===n.key?r:n.key)||null,n,i);case R:return p(e,t,r,(0,n._init)(n._payload),i)}if(te(n)||B(n))return f(t,e=e.get(r)||null,n,i,null);Jo(t,n)}return null}function m(i,o,s,l){for(var u=null,c=null,f=o,m=o=0,g=null;null!==f&&m<s.length;m++){f.index>m?(g=f,f=null):g=f.sibling;var A=h(i,f,s[m],l);if(null===A){null===f&&(f=g);break}e&&f&&null===A.alternate&&t(i,f),o=a(A,o,m),null===c?u=A:c.sibling=A,c=A,f=g}if(m===s.length)return r(i,f),io&&Zi(i,m),u;if(null===f){for(;m<s.length;m++)null!==(f=d(i,s[m],l))&&(o=a(f,o,m),null===c?u=f:c.sibling=f,c=f);return io&&Zi(i,m),u}for(f=n(i,f);m<s.length;m++)null!==(g=p(f,i,m,s[m],l))&&(e&&null!==g.alternate&&f.delete(null===g.key?m:g.key),o=a(g,o,m),null===c?u=g:c.sibling=g,c=g);return e&&f.forEach((function(e){return t(i,e)})),io&&Zi(i,m),u}function g(i,s,l,u){var c=B(l);if("function"!==typeof c)throw Error(o(150));if(null==(l=c.call(l)))throw Error(o(151));for(var f=c=null,m=s,g=s=0,A=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(A=m,m=null):A=m.sibling;var v=h(i,m,y.value,u);if(null===v){null===m&&(m=A);break}e&&m&&null===v.alternate&&t(i,m),s=a(v,s,g),null===f?c=v:f.sibling=v,f=v,m=A}if(y.done)return r(i,m),io&&Zi(i,g),c;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=d(i,y.value,u))&&(s=a(y,s,g),null===f?c=y:f.sibling=y,f=y);return io&&Zi(i,g),c}for(m=n(i,m);!y.done;g++,y=l.next())null!==(y=p(m,i,g,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=a(y,s,g),null===f?c=y:f.sibling=y,f=y);return e&&m.forEach((function(e){return t(i,e)})),io&&Zi(i,g),c}return function e(n,o,a,l){if("object"===typeof a&&null!==a&&a.type===k&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case w:e:{for(var u=a.key,c=o;null!==c;){if(c.key===u){if((u=a.type)===k){if(7===c.tag){r(n,c.sibling),(o=i(c,a.props.children)).return=n,n=o;break e}}else if(c.elementType===u||"object"===typeof u&&null!==u&&u.$$typeof===R&&Ko(u)===c.type){r(n,c.sibling),(o=i(c,a.props)).ref=Wo(n,c,a),o.return=n,n=o;break e}r(n,c);break}t(n,c),c=c.sibling}a.type===k?((o=Lu(a.props.children,n.mode,l,a.key)).return=n,n=o):((l=Bu(a.type,a.key,a.props,null,n.mode,l)).ref=Wo(n,o,a),l.return=n,n=l)}return s(n);case E:e:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){r(n,o.sibling),(o=i(o,a.children||[])).return=n,n=o;break e}r(n,o);break}t(n,o),o=o.sibling}(o=Uu(a,n.mode,l)).return=n,n=o}return s(n);case R:return e(n,o,(c=a._init)(a._payload),l)}if(te(a))return m(n,o,a,l);if(B(a))return g(n,o,a,l);Jo(n,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==o&&6===o.tag?(r(n,o.sibling),(o=i(o,a)).return=n,n=o):(r(n,o),(o=Du(a,n.mode,l)).return=n,n=o),s(n)):r(n,o)}}var Xo=Yo(!0),Zo=Yo(!1),$o={},ea=Si($o),ta=Si($o),ra=Si($o);function na(e){if(e===$o)throw Error(o(174));return e}function ia(e,t){switch(Ni(ra,t),Ni(ta,e),Ni(ea,$o),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}xi(ea),Ni(ea,t)}function oa(){xi(ea),xi(ta),xi(ra)}function aa(e){na(ra.current);var t=na(ea.current),r=le(t,e.type);t!==r&&(Ni(ta,e),Ni(ea,r))}function sa(e){ta.current===e&&(xi(ea),xi(ta))}var la=Si(0);function ua(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ca=[];function fa(){for(var e=0;e<ca.length;e++)ca[e]._workInProgressVersionPrimary=null;ca.length=0}var da=b.ReactCurrentDispatcher,ha=b.ReactCurrentBatchConfig,pa=0,ma=null,ga=null,Aa=null,ya=!1,va=!1,ba=0,wa=0;function Ea(){throw Error(o(321))}function ka(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!sn(e[r],t[r]))return!1;return!0}function Sa(e,t,r,n,i,a){if(pa=a,ma=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,da.current=null===e||null===e.memoizedState?ss:ls,e=r(n,i),va){a=0;do{if(va=!1,ba=0,25<=a)throw Error(o(301));a+=1,Aa=ga=null,t.updateQueue=null,da.current=us,e=r(n,i)}while(va)}if(da.current=as,t=null!==ga&&null!==ga.next,pa=0,Aa=ga=ma=null,ya=!1,t)throw Error(o(300));return e}function xa(){var e=0!==ba;return ba=0,e}function Na(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Aa?ma.memoizedState=Aa=e:Aa=Aa.next=e,Aa}function Ca(){if(null===ga){var e=ma.alternate;e=null!==e?e.memoizedState:null}else e=ga.next;var t=null===Aa?ma.memoizedState:Aa.next;if(null!==t)Aa=t,ga=e;else{if(null===e)throw Error(o(310));e={memoizedState:(ga=e).memoizedState,baseState:ga.baseState,baseQueue:ga.baseQueue,queue:ga.queue,next:null},null===Aa?ma.memoizedState=Aa=e:Aa=Aa.next=e}return Aa}function _a(e,t){return"function"===typeof t?t(e):t}function Ma(e){var t=Ca(),r=t.queue;if(null===r)throw Error(o(311));r.lastRenderedReducer=e;var n=ga,i=n.baseQueue,a=r.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}n.baseQueue=i=a,r.pending=null}if(null!==i){a=i.next,n=n.baseState;var l=s=null,u=null,c=a;do{var f=c.lane;if((pa&f)===f)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),n=c.hasEagerState?c.eagerState:e(n,c.action);else{var d={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=d,s=n):u=u.next=d,ma.lanes|=f,Fl|=f}c=c.next}while(null!==c&&c!==a);null===u?s=n:u.next=l,sn(n,t.memoizedState)||(bs=!0),t.memoizedState=n,t.baseState=s,t.baseQueue=u,r.lastRenderedState=n}if(null!==(e=r.interleaved)){i=e;do{a=i.lane,ma.lanes|=a,Fl|=a,i=i.next}while(i!==e)}else null===i&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Pa(e){var t=Ca(),r=t.queue;if(null===r)throw Error(o(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,a=t.memoizedState;if(null!==i){r.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sn(a,t.memoizedState)||(bs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function Ta(){}function Ra(e,t){var r=ma,n=Ca(),i=t(),a=!sn(n.memoizedState,i);if(a&&(n.memoizedState=i,bs=!0),n=n.queue,qa(Ba.bind(null,r,n,e),[e]),n.getSnapshot!==t||a||null!==Aa&&1&Aa.memoizedState.tag){if(r.flags|=2048,Ua(9,Oa.bind(null,r,n,i,t),void 0,null),null===Pl)throw Error(o(349));0!==(30&pa)||Ia(r,t,i)}return i}function Ia(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.updateQueue=t,t.stores=[e]):null===(r=t.stores)?t.stores=[e]:r.push(e)}function Oa(e,t,r,n){t.value=r,t.getSnapshot=n,La(t)&&Fa(e)}function Ba(e,t,r){return r((function(){La(t)&&Fa(e)}))}function La(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!sn(e,r)}catch(n){return!0}}function Fa(e){var t=Po(e,1);null!==t&&nu(t,e,1,-1)}function Da(e){var t=Na();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:_a,lastRenderedState:e},t.queue=e,e=e.dispatch=rs.bind(null,ma,e),[t.memoizedState,e]}function Ua(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function ja(){return Ca().memoizedState}function za(e,t,r,n){var i=Na();ma.flags|=e,i.memoizedState=Ua(1|t,r,void 0,void 0===n?null:n)}function Qa(e,t,r,n){var i=Ca();n=void 0===n?null:n;var o=void 0;if(null!==ga){var a=ga.memoizedState;if(o=a.destroy,null!==n&&ka(n,a.deps))return void(i.memoizedState=Ua(t,r,o,n))}ma.flags|=e,i.memoizedState=Ua(1|t,r,o,n)}function Ha(e,t){return za(8390656,8,e,t)}function qa(e,t){return Qa(2048,8,e,t)}function Ga(e,t){return Qa(4,2,e,t)}function Va(e,t){return Qa(4,4,e,t)}function Wa(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ja(e,t,r){return r=null!==r&&void 0!==r?r.concat([e]):null,Qa(4,4,Wa.bind(null,t,e),r)}function Ka(){}function Ya(e,t){var r=Ca();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&ka(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function Xa(e,t){var r=Ca();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&ka(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function Za(e,t,r){return 0===(21&pa)?(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=r):(sn(r,t)||(r=mt(),ma.lanes|=r,Fl|=r,e.baseState=!0),t)}function $a(e,t){var r=vt;vt=0!==r&&4>r?r:4,e(!0);var n=ha.transition;ha.transition={};try{e(!1),t()}finally{vt=r,ha.transition=n}}function es(){return Ca().memoizedState}function ts(e,t,r){var n=ru(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},ns(e))is(t,r);else if(null!==(r=Mo(e,t,r,n))){nu(r,e,n,tu()),os(r,t,n)}}function rs(e,t,r){var n=ru(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(ns(e))is(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,r);if(i.hasEagerState=!0,i.eagerState=s,sn(s,a)){var l=t.interleaved;return null===l?(i.next=i,_o(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(u){}null!==(r=Mo(e,t,i,n))&&(nu(r,e,n,i=tu()),os(r,t,n))}}function ns(e){var t=e.alternate;return e===ma||null!==t&&t===ma}function is(e,t){va=ya=!0;var r=e.pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function os(e,t,r){if(0!==(4194240&r)){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,yt(e,r)}}var as={readContext:No,useCallback:Ea,useContext:Ea,useEffect:Ea,useImperativeHandle:Ea,useInsertionEffect:Ea,useLayoutEffect:Ea,useMemo:Ea,useReducer:Ea,useRef:Ea,useState:Ea,useDebugValue:Ea,useDeferredValue:Ea,useTransition:Ea,useMutableSource:Ea,useSyncExternalStore:Ea,useId:Ea,unstable_isNewReconciler:!1},ss={readContext:No,useCallback:function(e,t){return Na().memoizedState=[e,void 0===t?null:t],e},useContext:No,useEffect:Ha,useImperativeHandle:function(e,t,r){return r=null!==r&&void 0!==r?r.concat([e]):null,za(4194308,4,Wa.bind(null,t,e),r)},useLayoutEffect:function(e,t){return za(4194308,4,e,t)},useInsertionEffect:function(e,t){return za(4,2,e,t)},useMemo:function(e,t){var r=Na();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Na();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=ts.bind(null,ma,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},Na().memoizedState=e},useState:Da,useDebugValue:Ka,useDeferredValue:function(e){return Na().memoizedState=e},useTransition:function(){var e=Da(!1),t=e[0];return e=$a.bind(null,e[1]),Na().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=ma,i=Na();if(io){if(void 0===r)throw Error(o(407));r=r()}else{if(r=t(),null===Pl)throw Error(o(349));0!==(30&pa)||Ia(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,Ha(Ba.bind(null,n,a,e),[e]),n.flags|=2048,Ua(9,Oa.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=Na(),t=Pl.identifierPrefix;if(io){var r=Xi;t=":"+t+"R"+(r=(Yi&~(1<<32-at(Yi)-1)).toString(32)+r),0<(r=ba++)&&(t+="H"+r.toString(32)),t+=":"}else t=":"+t+"r"+(r=wa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ls={readContext:No,useCallback:Ya,useContext:No,useEffect:qa,useImperativeHandle:Ja,useInsertionEffect:Ga,useLayoutEffect:Va,useMemo:Xa,useReducer:Ma,useRef:ja,useState:function(){return Ma(_a)},useDebugValue:Ka,useDeferredValue:function(e){return Za(Ca(),ga.memoizedState,e)},useTransition:function(){return[Ma(_a)[0],Ca().memoizedState]},useMutableSource:Ta,useSyncExternalStore:Ra,useId:es,unstable_isNewReconciler:!1},us={readContext:No,useCallback:Ya,useContext:No,useEffect:qa,useImperativeHandle:Ja,useInsertionEffect:Ga,useLayoutEffect:Va,useMemo:Xa,useReducer:Pa,useRef:ja,useState:function(){return Pa(_a)},useDebugValue:Ka,useDeferredValue:function(e){var t=Ca();return null===ga?t.memoizedState=e:Za(t,ga.memoizedState,e)},useTransition:function(){return[Pa(_a)[0],Ca().memoizedState]},useMutableSource:Ta,useSyncExternalStore:Ra,useId:es,unstable_isNewReconciler:!1};function cs(e,t){try{var r="",n=t;do{r+=z(n),n=n.return}while(n);var i=r}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i,digest:null}}function fs(e,t,r){return{value:e,source:null,stack:null!=r?r:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(r){setTimeout((function(){throw r}))}}var hs="function"===typeof WeakMap?WeakMap:Map;function ps(e,t,r){(r=Oo(-1,r)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Gl||(Gl=!0,Vl=n),ds(0,t)},r}function ms(e,t,r){(r=Oo(-1,r)).tag=3;var n=e.type.getDerivedStateFromError;if("function"===typeof n){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){ds(0,t)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(r.callback=function(){ds(0,t),"function"!==typeof n&&(null===Wl?Wl=new Set([this]):Wl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),r}function gs(e,t,r){var n=e.pingCache;if(null===n){n=e.pingCache=new hs;var i=new Set;n.set(t,i)}else void 0===(i=n.get(t))&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=Nu.bind(null,e,t,r),t.then(e,e))}function As(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ys(e,t,r,n,i){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,1===r.tag&&(null===r.alternate?r.tag=17:((t=Oo(-1,1)).tag=2,Bo(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var vs=b.ReactCurrentOwner,bs=!1;function ws(e,t,r,n){t.child=null===e?Zo(t,null,r,n):Xo(t,e.child,r,n)}function Es(e,t,r,n,i){r=r.render;var o=t.ref;return xo(t,i),n=Sa(e,t,r,n,o,i),r=xa(),null===e||bs?(io&&r&&eo(t),t.flags|=1,ws(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Gs(e,t,i))}function ks(e,t,r,n,i){if(null===e){var o=r.type;return"function"!==typeof o||Iu(o)||void 0!==o.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=Bu(r.type,null,n,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Ss(e,t,o,n,i))}if(o=e.child,0===(e.lanes&i)){var a=o.memoizedProps;if((r=null!==(r=r.compare)?r:ln)(a,n)&&e.ref===t.ref)return Gs(e,t,i)}return t.flags|=1,(e=Ou(o,n)).ref=t.ref,e.return=t,t.child=e}function Ss(e,t,r,n,i){if(null!==e){var o=e.memoizedProps;if(ln(o,n)&&e.ref===t.ref){if(bs=!1,t.pendingProps=n=o,0===(e.lanes&i))return t.lanes=e.lanes,Gs(e,t,i);0!==(131072&e.flags)&&(bs=!0)}}return Cs(e,t,r,n,i)}function xs(e,t,r){var n=t.pendingProps,i=n.children,o=null!==e?e.memoizedState:null;if("hidden"===n.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ni(Ol,Il),Il|=r;else{if(0===(1073741824&r))return e=null!==o?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ni(Ol,Il),Il|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=null!==o?o.baseLanes:r,Ni(Ol,Il),Il|=n}else null!==o?(n=o.baseLanes|r,t.memoizedState=null):n=r,Ni(Ol,Il),Il|=n;return ws(e,t,i,r),t.child}function Ns(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Cs(e,t,r,n,i){var o=Ri(r)?Pi:_i.current;return o=Ti(t,o),xo(t,i),r=Sa(e,t,r,n,o,i),n=xa(),null===e||bs?(io&&n&&eo(t),t.flags|=1,ws(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Gs(e,t,i))}function _s(e,t,r,n,i){if(Ri(r)){var o=!0;Li(t)}else o=!1;if(xo(t,i),null===t.stateNode)qs(e,t),qo(t,r,n),Vo(t,r,n,i),n=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=r.contextType;"object"===typeof u&&null!==u?u=No(u):u=Ti(t,u=Ri(r)?Pi:_i.current);var c=r.getDerivedStateFromProps,f="function"===typeof c||"function"===typeof a.getSnapshotBeforeUpdate;f||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==n||l!==u)&&Go(t,a,n,u),To=!1;var d=t.memoizedState;a.state=d,Do(t,n,a,i),l=t.memoizedState,s!==n||d!==l||Mi.current||To?("function"===typeof c&&(zo(t,r,c,n),l=t.memoizedState),(s=To||Ho(t,r,s,n,d,l,u))?(f||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),a.props=n,a.state=l,a.context=u,n=s):("function"===typeof a.componentDidMount&&(t.flags|=4194308),n=!1)}else{a=t.stateNode,Io(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Ao(t.type,s),a.props=u,f=t.pendingProps,d=a.context,"object"===typeof(l=r.contextType)&&null!==l?l=No(l):l=Ti(t,l=Ri(r)?Pi:_i.current);var h=r.getDerivedStateFromProps;(c="function"===typeof h||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==f||d!==l)&&Go(t,a,n,l),To=!1,d=t.memoizedState,a.state=d,Do(t,n,a,i);var p=t.memoizedState;s!==f||d!==p||Mi.current||To?("function"===typeof h&&(zo(t,r,h,n),p=t.memoizedState),(u=To||Ho(t,r,u,n,d,p,l)||!1)?(c||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(n,p,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(n,p,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=p),a.props=n,a.state=p,a.context=l,n=u):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),n=!1)}return Ms(e,t,r,n,o,i)}function Ms(e,t,r,n,i,o){Ns(e,t);var a=0!==(128&t.flags);if(!n&&!a)return i&&Fi(t,r,!1),Gs(e,t,o);n=t.stateNode,vs.current=t;var s=a&&"function"!==typeof r.getDerivedStateFromError?null:n.render();return t.flags|=1,null!==e&&a?(t.child=Xo(t,e.child,null,o),t.child=Xo(t,null,s,o)):ws(e,t,s,o),t.memoizedState=n.state,i&&Fi(t,r,!0),t.child}function Ps(e){var t=e.stateNode;t.pendingContext?Oi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Oi(0,t.context,!1),ia(e,t.containerInfo)}function Ts(e,t,r,n,i){return po(),mo(i),t.flags|=256,ws(e,t,r,n),t.child}var Rs,Is,Os,Bs,Ls={dehydrated:null,treeContext:null,retryLane:0};function Fs(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ds(e,t,r){var n,i=t.pendingProps,a=la.current,s=!1,l=0!==(128&t.flags);if((n=l)||(n=(null===e||null!==e.memoizedState)&&0!==(2&a)),n?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Ni(la,1&a),null===e)return uo(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},0===(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Fu(l,i,0,null),e=Lu(e,i,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Fs(r),t.memoizedState=Ls,e):Us(t,l));if(null!==(a=e.memoizedState)&&null!==(n=a.dehydrated))return function(e,t,r,n,i,a,s){if(r)return 256&t.flags?(t.flags&=-257,js(e,t,s,n=fs(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=n.fallback,i=t.mode,n=Fu({mode:"visible",children:n.children},i,0,null),(a=Lu(a,i,s,null)).flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,0!==(1&t.mode)&&Xo(t,e.child,null,s),t.child.memoizedState=Fs(s),t.memoizedState=Ls,a);if(0===(1&t.mode))return js(e,t,s,null);if("$!"===i.data){if(n=i.nextSibling&&i.nextSibling.dataset)var l=n.dgst;return n=l,js(e,t,s,n=fs(a=Error(o(419)),n,void 0))}if(l=0!==(s&e.childLanes),bs||l){if(null!==(n=Pl)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(n.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Po(e,i),nu(n,e,i,-1))}return gu(),js(e,t,s,n=fs(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=_u.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,no=ui(i.nextSibling),ro=t,io=!0,oo=null,null!==e&&(Wi[Ji++]=Yi,Wi[Ji++]=Xi,Wi[Ji++]=Ki,Yi=e.id,Xi=e.overflow,Ki=t),t=Us(t,n.children),t.flags|=4096,t)}(e,t,l,i,n,a,r);if(s){s=i.fallback,l=t.mode,n=(a=e.child).sibling;var u={mode:"hidden",children:i.children};return 0===(1&l)&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=u,t.deletions=null):(i=Ou(a,u)).subtreeFlags=14680064&a.subtreeFlags,null!==n?s=Ou(n,s):(s=Lu(s,l,r,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Fs(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~r,t.memoizedState=Ls,i}return e=(s=e.child).sibling,i=Ou(s,{mode:"visible",children:i.children}),0===(1&t.mode)&&(i.lanes=r),i.return=t,i.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=i,t.memoizedState=null,i}function Us(e,t){return(t=Fu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function js(e,t,r,n){return null!==n&&mo(n),Xo(t,e.child,null,r),(e=Us(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function zs(e,t,r){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),So(e.return,t,r)}function Qs(e,t,r,n,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=i)}function Hs(e,t,r){var n=t.pendingProps,i=n.revealOrder,o=n.tail;if(ws(e,t,n.children,r),0!==(2&(n=la.current)))n=1&n|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&zs(e,r,t);else if(19===e.tag)zs(e,r,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Ni(la,n),0===(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;null!==r;)null!==(e=r.alternate)&&null===ua(e)&&(i=r),r=r.sibling;null===(r=i)?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),Qs(t,!1,i,r,o);break;case"backwards":for(r=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ua(e)){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}Qs(t,!0,r,null,o);break;case"together":Qs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function qs(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Gs(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Fl|=t.lanes,0===(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(r=Ou(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Ou(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Vs(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Ws(e){var t=null!==e.alternate&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;null!==i;)r|=i.lanes|i.childLanes,n|=14680064&i.subtreeFlags,n|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function Js(e,t,r){var n=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ws(t),null;case 1:case 17:return Ri(t.type)&&Ii(),Ws(t),null;case 3:return n=t.stateNode,oa(),xi(Mi),xi(_i),fa(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(fo(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==oo&&(su(oo),oo=null))),Is(e,t),Ws(t),null;case 5:sa(t);var i=na(ra.current);if(r=t.type,null!==e&&null!=t.stateNode)Os(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(null===t.stateNode)throw Error(o(166));return Ws(t),null}if(e=na(ea.current),fo(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[di]=t,n[hi]=a,e=0!==(1&t.mode),r){case"dialog":Un("cancel",n),Un("close",n);break;case"iframe":case"object":case"embed":Un("load",n);break;case"video":case"audio":for(i=0;i<Bn.length;i++)Un(Bn[i],n);break;case"source":Un("error",n);break;case"img":case"image":case"link":Un("error",n),Un("load",n);break;case"details":Un("toggle",n);break;case"input":Y(n,a),Un("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},Un("invalid",n);break;case"textarea":ie(n,a),Un("invalid",n)}for(var l in ye(r,a),i=null,a)if(a.hasOwnProperty(l)){var u=a[l];"children"===l?"string"===typeof u?n.textContent!==u&&(!0!==a.suppressHydrationWarning&&Zn(n.textContent,u,e),i=["children",u]):"number"===typeof u&&n.textContent!==""+u&&(!0!==a.suppressHydrationWarning&&Zn(n.textContent,u,e),i=["children",""+u]):s.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Un("scroll",n)}switch(r){case"input":V(n),$(n,a,!0);break;case"textarea":V(n),ae(n);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(n.onclick=$n)}n=i,t.updateQueue=n,null!==n&&(t.flags|=4)}else{l=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof n.is?e=l.createElement(r,{is:n.is}):(e=l.createElement(r),"select"===r&&(l=e,n.multiple?l.multiple=!0:n.size&&(l.size=n.size))):e=l.createElementNS(e,r),e[di]=t,e[hi]=n,Rs(e,t,!1,!1),t.stateNode=e;e:{switch(l=ve(r,n),r){case"dialog":Un("cancel",e),Un("close",e),i=n;break;case"iframe":case"object":case"embed":Un("load",e),i=n;break;case"video":case"audio":for(i=0;i<Bn.length;i++)Un(Bn[i],e);i=n;break;case"source":Un("error",e),i=n;break;case"img":case"image":case"link":Un("error",e),Un("load",e),i=n;break;case"details":Un("toggle",e),i=n;break;case"input":Y(e,n),i=K(e,n),Un("invalid",e);break;case"option":default:i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=F({},n,{value:void 0}),Un("invalid",e);break;case"textarea":ie(e,n),i=ne(e,n),Un("invalid",e)}for(a in ye(r,i),u=i)if(u.hasOwnProperty(a)){var c=u[a];"style"===a?ge(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&fe(e,c):"children"===a?"string"===typeof c?("textarea"!==r||""!==c)&&de(e,c):"number"===typeof c&&de(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=c&&"onScroll"===a&&Un("scroll",e):null!=c&&v(e,a,c,l))}switch(r){case"input":V(e),$(e,n,!1);break;case"textarea":V(e),ae(e);break;case"option":null!=n.value&&e.setAttribute("value",""+q(n.value));break;case"select":e.multiple=!!n.multiple,null!=(a=n.value)?re(e,!!n.multiple,a,!1):null!=n.defaultValue&&re(e,!!n.multiple,n.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=$n)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ws(t),null;case 6:if(e&&null!=t.stateNode)Bs(e,t,e.memoizedProps,n);else{if("string"!==typeof n&&null===t.stateNode)throw Error(o(166));if(r=na(ra.current),na(ea.current),fo(t)){if(n=t.stateNode,r=t.memoizedProps,n[di]=t,(a=n.nodeValue!==r)&&null!==(e=ro))switch(e.tag){case 3:Zn(n.nodeValue,r,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Zn(n.nodeValue,r,0!==(1&e.mode))}a&&(t.flags|=4)}else(n=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[di]=t,t.stateNode=n}return Ws(t),null;case 13:if(xi(la),n=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(io&&null!==no&&0!==(1&t.mode)&&0===(128&t.flags))ho(),po(),t.flags|=98560,a=!1;else if(a=fo(t),null!==n&&null!==n.dehydrated){if(null===e){if(!a)throw Error(o(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(o(317));a[di]=t}else po(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ws(t),a=!1}else null!==oo&&(su(oo),oo=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=r,t):((n=null!==n)!==(null!==e&&null!==e.memoizedState)&&n&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&la.current)?0===Bl&&(Bl=3):gu())),null!==t.updateQueue&&(t.flags|=4),Ws(t),null);case 4:return oa(),Is(e,t),null===e&&Qn(t.stateNode.containerInfo),Ws(t),null;case 10:return ko(t.type._context),Ws(t),null;case 19:if(xi(la),null===(a=t.memoizedState))return Ws(t),null;if(n=0!==(128&t.flags),null===(l=a.rendering))if(n)Vs(a,!1);else{if(0!==Bl||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ua(e))){for(t.flags|=128,Vs(a,!1),null!==(n=l.updateQueue)&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;null!==r;)e=n,(a=r).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Ni(la,1&la.current|2),t.child}e=e.sibling}null!==a.tail&&Xe()>Hl&&(t.flags|=128,n=!0,Vs(a,!1),t.lanes=4194304)}else{if(!n)if(null!==(e=ua(l))){if(t.flags|=128,n=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Vs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!io)return Ws(t),null}else 2*Xe()-a.renderingStartTime>Hl&&1073741824!==r&&(t.flags|=128,n=!0,Vs(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(r=a.last)?r.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Xe(),t.sibling=null,r=la.current,Ni(la,n?1&r|2:1&r),t):(Ws(t),null);case 22:case 23:return du(),n=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==n&&(t.flags|=8192),n&&0!==(1&t.mode)?0!==(1073741824&Il)&&(Ws(t),6&t.subtreeFlags&&(t.flags|=8192)):Ws(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Ks(e,t){switch(to(t),t.tag){case 1:return Ri(t.type)&&Ii(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return oa(),xi(Mi),xi(_i),fa(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return sa(t),null;case 13:if(xi(la),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));po()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return xi(la),null;case 4:return oa(),null;case 10:return ko(t.type._context),null;case 22:case 23:return du(),null;default:return null}}Rs=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Is=function(){},Os=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,na(ea.current);var o,a=null;switch(r){case"input":i=K(e,i),n=K(e,n),a=[];break;case"select":i=F({},i,{value:void 0}),n=F({},n,{value:void 0}),a=[];break;case"textarea":i=ne(e,i),n=ne(e,n),a=[];break;default:"function"!==typeof i.onClick&&"function"===typeof n.onClick&&(e.onclick=$n)}for(c in ye(r,n),r=null,i)if(!n.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var l=i[c];for(o in l)l.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in n){var u=n[c];if(l=null!=i?i[c]:void 0,n.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(o in l)!l.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in u)u.hasOwnProperty(o)&&l[o]!==u[o]&&(r||(r={}),r[o]=u[o])}else r||(a||(a=[]),a.push(c,r)),r=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(a=a||[]).push(c,u)):"children"===c?"string"!==typeof u&&"number"!==typeof u||(a=a||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Un("scroll",e),a||l===u||(a=[])):(a=a||[]).push(c,u))}r&&(a=a||[]).push("style",r);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Bs=function(e,t,r,n){r!==n&&(t.flags|=4)};var Ys=!1,Xs=!1,Zs="function"===typeof WeakSet?WeakSet:Set,$s=null;function el(e,t){var r=e.ref;if(null!==r)if("function"===typeof r)try{r(null)}catch(n){xu(e,t,n)}else r.current=null}function tl(e,t,r){try{r()}catch(n){xu(e,t,n)}}var rl=!1;function nl(e,t,r){var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var i=n=n.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&tl(t,r,o)}i=i.next}while(i!==n)}}function il(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function ol(e){var t=e.ref;if(null!==t){var r=e.stateNode;e.tag,e=r,"function"===typeof t?t(e):t.current=e}}function al(e){var t=e.alternate;null!==t&&(e.alternate=null,al(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[di],delete t[hi],delete t[mi],delete t[gi],delete t[Ai])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sl(e){return 5===e.tag||3===e.tag||4===e.tag}function ll(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ul(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!==(r=r._reactRootContainer)&&void 0!==r||null!==t.onclick||(t.onclick=$n));else if(4!==n&&null!==(e=e.child))for(ul(e,t,r),e=e.sibling;null!==e;)ul(e,t,r),e=e.sibling}function cl(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&null!==(e=e.child))for(cl(e,t,r),e=e.sibling;null!==e;)cl(e,t,r),e=e.sibling}var fl=null,dl=!1;function hl(e,t,r){for(r=r.child;null!==r;)pl(e,t,r),r=r.sibling}function pl(e,t,r){if(ot&&"function"===typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,r)}catch(s){}switch(r.tag){case 5:Xs||el(r,t);case 6:var n=fl,i=dl;fl=null,hl(e,t,r),dl=i,null!==(fl=n)&&(dl?(e=fl,r=r.stateNode,8===e.nodeType?e.parentNode.removeChild(r):e.removeChild(r)):fl.removeChild(r.stateNode));break;case 18:null!==fl&&(dl?(e=fl,r=r.stateNode,8===e.nodeType?li(e.parentNode,r):1===e.nodeType&&li(e,r),Qt(e)):li(fl,r.stateNode));break;case 4:n=fl,i=dl,fl=r.stateNode.containerInfo,dl=!0,hl(e,t,r),fl=n,dl=i;break;case 0:case 11:case 14:case 15:if(!Xs&&(null!==(n=r.updateQueue)&&null!==(n=n.lastEffect))){i=n=n.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!==(2&o)||0!==(4&o))&&tl(r,t,a),i=i.next}while(i!==n)}hl(e,t,r);break;case 1:if(!Xs&&(el(r,t),"function"===typeof(n=r.stateNode).componentWillUnmount))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){xu(r,t,s)}hl(e,t,r);break;case 21:hl(e,t,r);break;case 22:1&r.mode?(Xs=(n=Xs)||null!==r.memoizedState,hl(e,t,r),Xs=n):hl(e,t,r);break;default:hl(e,t,r)}}function ml(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new Zs),t.forEach((function(t){var n=Mu.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))}))}}function gl(e,t){var r=t.deletions;if(null!==r)for(var n=0;n<r.length;n++){var i=r[n];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:fl=l.stateNode,dl=!1;break e;case 3:case 4:fl=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===fl)throw Error(o(160));pl(a,s,i),fl=null,dl=!1;var u=i.alternate;null!==u&&(u.return=null),i.return=null}catch(c){xu(i,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)Al(t,e),t=t.sibling}function Al(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gl(t,e),yl(e),4&n){try{nl(3,e,e.return),il(3,e)}catch(g){xu(e,e.return,g)}try{nl(5,e,e.return)}catch(g){xu(e,e.return,g)}}break;case 1:gl(t,e),yl(e),512&n&&null!==r&&el(r,r.return);break;case 5:if(gl(t,e),yl(e),512&n&&null!==r&&el(r,r.return),32&e.flags){var i=e.stateNode;try{de(i,"")}catch(g){xu(e,e.return,g)}}if(4&n&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==r?r.memoizedProps:a,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===a.type&&null!=a.name&&X(i,a),ve(l,s);var c=ve(l,a);for(s=0;s<u.length;s+=2){var f=u[s],d=u[s+1];"style"===f?ge(i,d):"dangerouslySetInnerHTML"===f?fe(i,d):"children"===f?de(i,d):v(i,f,d,c)}switch(l){case"input":Z(i,a);break;case"textarea":oe(i,a);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?re(i,!!a.multiple,p,!1):h!==!!a.multiple&&(null!=a.defaultValue?re(i,!!a.multiple,a.defaultValue,!0):re(i,!!a.multiple,a.multiple?[]:"",!1))}i[hi]=a}catch(g){xu(e,e.return,g)}}break;case 6:if(gl(t,e),yl(e),4&n){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(g){xu(e,e.return,g)}}break;case 3:if(gl(t,e),yl(e),4&n&&null!==r&&r.memoizedState.isDehydrated)try{Qt(t.containerInfo)}catch(g){xu(e,e.return,g)}break;case 4:default:gl(t,e),yl(e);break;case 13:gl(t,e),yl(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(Ql=Xe())),4&n&&ml(e);break;case 22:if(f=null!==r&&null!==r.memoizedState,1&e.mode?(Xs=(c=Xs)||f,gl(t,e),Xs=c):gl(t,e),yl(e),8192&n){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!f&&0!==(1&e.mode))for($s=e,f=e.child;null!==f;){for(d=$s=f;null!==$s;){switch(p=(h=$s).child,h.tag){case 0:case 11:case 14:case 15:nl(4,h,h.return);break;case 1:el(h,h.return);var m=h.stateNode;if("function"===typeof m.componentWillUnmount){n=h,r=h.return;try{t=n,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(g){xu(n,r,g)}}break;case 5:el(h,h.return);break;case 22:if(null!==h.memoizedState){El(d);continue}}null!==p?(p.return=h,$s=p):El(d)}f=f.sibling}e:for(f=null,d=e;;){if(5===d.tag){if(null===f){f=d;try{i=d.stateNode,c?"function"===typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=d.stateNode,s=void 0!==(u=d.memoizedProps.style)&&null!==u&&u.hasOwnProperty("display")?u.display:null,l.style.display=me("display",s))}catch(g){xu(e,e.return,g)}}}else if(6===d.tag){if(null===f)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(g){xu(e,e.return,g)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:gl(t,e),yl(e),4&n&&ml(e);case 21:}}function yl(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(sl(r)){var n=r;break e}r=r.return}throw Error(o(160))}switch(n.tag){case 5:var i=n.stateNode;32&n.flags&&(de(i,""),n.flags&=-33),cl(e,ll(e),i);break;case 3:case 4:var a=n.stateNode.containerInfo;ul(e,ll(e),a);break;default:throw Error(o(161))}}catch(s){xu(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function vl(e,t,r){$s=e,bl(e,t,r)}function bl(e,t,r){for(var n=0!==(1&e.mode);null!==$s;){var i=$s,o=i.child;if(22===i.tag&&n){var a=null!==i.memoizedState||Ys;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||Xs;s=Ys;var u=Xs;if(Ys=a,(Xs=l)&&!u)for($s=i;null!==$s;)l=(a=$s).child,22===a.tag&&null!==a.memoizedState?kl(i):null!==l?(l.return=a,$s=l):kl(i);for(;null!==o;)$s=o,bl(o,t,r),o=o.sibling;$s=i,Ys=s,Xs=u}wl(e)}else 0!==(8772&i.subtreeFlags)&&null!==o?(o.return=i,$s=o):wl(e)}}function wl(e){for(;null!==$s;){var t=$s;if(0!==(8772&t.flags)){var r=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Xs||il(5,t);break;case 1:var n=t.stateNode;if(4&t.flags&&!Xs)if(null===r)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:Ao(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Uo(t,a,n);break;case 3:var s=t.updateQueue;if(null!==s){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Uo(t,s,r)}break;case 5:var l=t.stateNode;if(null===r&&4&t.flags){r=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src&&(r.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var f=c.memoizedState;if(null!==f){var d=f.dehydrated;null!==d&&Qt(d)}}}break;default:throw Error(o(163))}Xs||512&t.flags&&ol(t)}catch(h){xu(t,t.return,h)}}if(t===e){$s=null;break}if(null!==(r=t.sibling)){r.return=t.return,$s=r;break}$s=t.return}}function El(e){for(;null!==$s;){var t=$s;if(t===e){$s=null;break}var r=t.sibling;if(null!==r){r.return=t.return,$s=r;break}$s=t.return}}function kl(e){for(;null!==$s;){var t=$s;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{il(4,t)}catch(l){xu(t,r,l)}break;case 1:var n=t.stateNode;if("function"===typeof n.componentDidMount){var i=t.return;try{n.componentDidMount()}catch(l){xu(t,i,l)}}var o=t.return;try{ol(t)}catch(l){xu(t,o,l)}break;case 5:var a=t.return;try{ol(t)}catch(l){xu(t,a,l)}}}catch(l){xu(t,t.return,l)}if(t===e){$s=null;break}var s=t.sibling;if(null!==s){s.return=t.return,$s=s;break}$s=t.return}}var Sl,xl=Math.ceil,Nl=b.ReactCurrentDispatcher,Cl=b.ReactCurrentOwner,_l=b.ReactCurrentBatchConfig,Ml=0,Pl=null,Tl=null,Rl=0,Il=0,Ol=Si(0),Bl=0,Ll=null,Fl=0,Dl=0,Ul=0,jl=null,zl=null,Ql=0,Hl=1/0,ql=null,Gl=!1,Vl=null,Wl=null,Jl=!1,Kl=null,Yl=0,Xl=0,Zl=null,$l=-1,eu=0;function tu(){return 0!==(6&Ml)?Xe():-1!==$l?$l:$l=Xe()}function ru(e){return 0===(1&e.mode)?1:0!==(2&Ml)&&0!==Rl?Rl&-Rl:null!==go.transition?(0===eu&&(eu=mt()),eu):0!==(e=vt)?e:e=void 0===(e=window.event)?16:Yt(e.type)}function nu(e,t,r,n){if(50<Xl)throw Xl=0,Zl=null,Error(o(185));At(e,r,n),0!==(2&Ml)&&e===Pl||(e===Pl&&(0===(2&Ml)&&(Dl|=r),4===Bl&&lu(e,Rl)),iu(e,n),1===r&&0===Ml&&0===(1&t.mode)&&(Hl=Xe()+500,Ui&&Qi()))}function iu(e,t){var r=e.callbackNode;!function(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-at(o),s=1<<a,l=i[a];-1===l?0!==(s&r)&&0===(s&n)||(i[a]=ht(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var n=dt(e,e===Pl?Rl:0);if(0===n)null!==r&&Je(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(null!=r&&Je(r),1===t)0===e.tag?function(e){Ui=!0,zi(e)}(uu.bind(null,e)):zi(uu.bind(null,e)),ai((function(){0===(6&Ml)&&Qi()})),r=null;else{switch(bt(n)){case 1:r=$e;break;case 4:r=et;break;case 16:default:r=tt;break;case 536870912:r=nt}r=Pu(r,ou.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function ou(e,t){if($l=-1,eu=0,0!==(6&Ml))throw Error(o(327));var r=e.callbackNode;if(ku()&&e.callbackNode!==r)return null;var n=dt(e,e===Pl?Rl:0);if(0===n)return null;if(0!==(30&n)||0!==(n&e.expiredLanes)||t)t=Au(e,n);else{t=n;var i=Ml;Ml|=2;var a=mu();for(Pl===e&&Rl===t||(ql=null,Hl=Xe()+500,hu(e,t));;)try{vu();break}catch(l){pu(e,l)}Eo(),Nl.current=a,Ml=i,null!==Tl?t=0:(Pl=null,Rl=0,t=Bl)}if(0!==t){if(2===t&&(0!==(i=pt(e))&&(n=i,t=au(e,i))),1===t)throw r=Ll,hu(e,0),lu(e,n),iu(e,Xe()),r;if(6===t)lu(e,n);else{if(i=e.current.alternate,0===(30&n)&&!function(e){for(var t=e;;){if(16384&t.flags){var r=t.updateQueue;if(null!==r&&null!==(r=r.stores))for(var n=0;n<r.length;n++){var i=r[n],o=i.getSnapshot;i=i.value;try{if(!sn(o(),i))return!1}catch(s){return!1}}}if(r=t.child,16384&t.subtreeFlags&&null!==r)r.return=t,t=r;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=Au(e,n))&&(0!==(a=pt(e))&&(n=a,t=au(e,a))),1===t))throw r=Ll,hu(e,0),lu(e,n),iu(e,Xe()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(o(345));case 2:case 5:Eu(e,zl,ql);break;case 3:if(lu(e,n),(130023424&n)===n&&10<(t=Ql+500-Xe())){if(0!==dt(e,0))break;if(((i=e.suspendedLanes)&n)!==n){tu(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ni(Eu.bind(null,e,zl,ql),t);break}Eu(e,zl,ql);break;case 4:if(lu(e,n),(4194240&n)===n)break;for(t=e.eventTimes,i=-1;0<n;){var s=31-at(n);a=1<<s,(s=t[s])>i&&(i=s),n&=~a}if(n=i,10<(n=(120>(n=Xe()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*xl(n/1960))-n)){e.timeoutHandle=ni(Eu.bind(null,e,zl,ql),n);break}Eu(e,zl,ql);break;default:throw Error(o(329))}}}return iu(e,Xe()),e.callbackNode===r?ou.bind(null,e):null}function au(e,t){var r=jl;return e.current.memoizedState.isDehydrated&&(hu(e,t).flags|=256),2!==(e=Au(e,t))&&(t=zl,zl=r,null!==t&&su(t)),e}function su(e){null===zl?zl=e:zl.push.apply(zl,e)}function lu(e,t){for(t&=~Ul,t&=~Dl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-at(t),n=1<<r;e[r]=-1,t&=~n}}function uu(e){if(0!==(6&Ml))throw Error(o(327));ku();var t=dt(e,0);if(0===(1&t))return iu(e,Xe()),null;var r=Au(e,t);if(0!==e.tag&&2===r){var n=pt(e);0!==n&&(t=n,r=au(e,n))}if(1===r)throw r=Ll,hu(e,0),lu(e,t),iu(e,Xe()),r;if(6===r)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Eu(e,zl,ql),iu(e,Xe()),null}function cu(e,t){var r=Ml;Ml|=1;try{return e(t)}finally{0===(Ml=r)&&(Hl=Xe()+500,Ui&&Qi())}}function fu(e){null!==Kl&&0===Kl.tag&&0===(6&Ml)&&ku();var t=Ml;Ml|=1;var r=_l.transition,n=vt;try{if(_l.transition=null,vt=1,e)return e()}finally{vt=n,_l.transition=r,0===(6&(Ml=t))&&Qi()}}function du(){Il=Ol.current,xi(Ol)}function hu(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,ii(r)),null!==Tl)for(r=Tl.return;null!==r;){var n=r;switch(to(n),n.tag){case 1:null!==(n=n.type.childContextTypes)&&void 0!==n&&Ii();break;case 3:oa(),xi(Mi),xi(_i),fa();break;case 5:sa(n);break;case 4:oa();break;case 13:case 19:xi(la);break;case 10:ko(n.type._context);break;case 22:case 23:du()}r=r.return}if(Pl=e,Tl=e=Ou(e.current,null),Rl=Il=t,Bl=0,Ll=null,Ul=Dl=Fl=0,zl=jl=null,null!==Co){for(t=0;t<Co.length;t++)if(null!==(n=(r=Co[t]).interleaved)){r.interleaved=null;var i=n.next,o=r.pending;if(null!==o){var a=o.next;o.next=i,n.next=a}r.pending=n}Co=null}return e}function pu(e,t){for(;;){var r=Tl;try{if(Eo(),da.current=as,ya){for(var n=ma.memoizedState;null!==n;){var i=n.queue;null!==i&&(i.pending=null),n=n.next}ya=!1}if(pa=0,Aa=ga=ma=null,va=!1,ba=0,Cl.current=null,null===r||null===r.return){Bl=1,Ll=t,Tl=null;break}e:{var a=e,s=r.return,l=r,u=t;if(t=Rl,l.flags|=32768,null!==u&&"object"===typeof u&&"function"===typeof u.then){var c=u,f=l,d=f.tag;if(0===(1&f.mode)&&(0===d||11===d||15===d)){var h=f.alternate;h?(f.updateQueue=h.updateQueue,f.memoizedState=h.memoizedState,f.lanes=h.lanes):(f.updateQueue=null,f.memoizedState=null)}var p=As(s);if(null!==p){p.flags&=-257,ys(p,s,l,0,t),1&p.mode&&gs(a,c,t),u=c;var m=(t=p).updateQueue;if(null===m){var g=new Set;g.add(u),t.updateQueue=g}else m.add(u);break e}if(0===(1&t)){gs(a,c,t),gu();break e}u=Error(o(426))}else if(io&&1&l.mode){var A=As(s);if(null!==A){0===(65536&A.flags)&&(A.flags|=256),ys(A,s,l,0,t),mo(cs(u,l));break e}}a=u=cs(u,l),4!==Bl&&(Bl=2),null===jl?jl=[a]:jl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Fo(a,ps(0,u,t));break e;case 1:l=u;var y=a.type,v=a.stateNode;if(0===(128&a.flags)&&("function"===typeof y.getDerivedStateFromError||null!==v&&"function"===typeof v.componentDidCatch&&(null===Wl||!Wl.has(v)))){a.flags|=65536,t&=-t,a.lanes|=t,Fo(a,ms(a,l,t));break e}}a=a.return}while(null!==a)}wu(r)}catch(b){t=b,Tl===r&&null!==r&&(Tl=r=r.return);continue}break}}function mu(){var e=Nl.current;return Nl.current=as,null===e?as:e}function gu(){0!==Bl&&3!==Bl&&2!==Bl||(Bl=4),null===Pl||0===(268435455&Fl)&&0===(268435455&Dl)||lu(Pl,Rl)}function Au(e,t){var r=Ml;Ml|=2;var n=mu();for(Pl===e&&Rl===t||(ql=null,hu(e,t));;)try{yu();break}catch(i){pu(e,i)}if(Eo(),Ml=r,Nl.current=n,null!==Tl)throw Error(o(261));return Pl=null,Rl=0,Bl}function yu(){for(;null!==Tl;)bu(Tl)}function vu(){for(;null!==Tl&&!Ke();)bu(Tl)}function bu(e){var t=Sl(e.alternate,e,Il);e.memoizedProps=e.pendingProps,null===t?wu(e):Tl=t,Cl.current=null}function wu(e){var t=e;do{var r=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(r=Js(r,t,Il)))return void(Tl=r)}else{if(null!==(r=Ks(r,t)))return r.flags&=32767,void(Tl=r);if(null===e)return Bl=6,void(Tl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Tl=t);Tl=t=e}while(null!==t);0===Bl&&(Bl=5)}function Eu(e,t,r){var n=vt,i=_l.transition;try{_l.transition=null,vt=1,function(e,t,r,n){do{ku()}while(null!==Kl);if(0!==(6&Ml))throw Error(o(327));r=e.finishedWork;var i=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(function(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var i=31-at(r),o=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~o}}(e,a),e===Pl&&(Tl=Pl=null,Rl=0),0===(2064&r.subtreeFlags)&&0===(2064&r.flags)||Jl||(Jl=!0,Pu(tt,(function(){return ku(),null}))),a=0!==(15990&r.flags),0!==(15990&r.subtreeFlags)||a){a=_l.transition,_l.transition=null;var s=vt;vt=1;var l=Ml;Ml|=4,Cl.current=null,function(e,t){if(ei=qt,hn(e=dn())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var n=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(n&&0!==n.rangeCount){r=n.anchorNode;var i=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch(w){r=null;break e}var s=0,l=-1,u=-1,c=0,f=0,d=e,h=null;t:for(;;){for(var p;d!==r||0!==i&&3!==d.nodeType||(l=s+i),d!==a||0!==n&&3!==d.nodeType||(u=s+n),3===d.nodeType&&(s+=d.nodeValue.length),null!==(p=d.firstChild);)h=d,d=p;for(;;){if(d===e)break t;if(h===r&&++c===i&&(l=s),h===a&&++f===n&&(u=s),null!==(p=d.nextSibling))break;h=(d=h).parentNode}d=p}r=-1===l||-1===u?null:{start:l,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(ti={focusedElem:e,selectionRange:r},qt=!1,$s=t;null!==$s;)if(e=(t=$s).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,$s=e;else for(;null!==$s;){t=$s;try{var m=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,A=m.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:Ao(t.type,g),A);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(o(163))}}catch(w){xu(t,t.return,w)}if(null!==(e=t.sibling)){e.return=t.return,$s=e;break}$s=t.return}m=rl,rl=!1}(e,r),Al(r,e),pn(ti),qt=!!ei,ti=ei=null,e.current=r,vl(r,e,i),Ye(),Ml=l,vt=s,_l.transition=a}else e.current=r;if(Jl&&(Jl=!1,Kl=e,Yl=i),a=e.pendingLanes,0===a&&(Wl=null),function(e){if(ot&&"function"===typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,128===(128&e.current.flags))}catch(t){}}(r.stateNode),iu(e,Xe()),null!==t)for(n=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],n(i.value,{componentStack:i.stack,digest:i.digest});if(Gl)throw Gl=!1,e=Vl,Vl=null,e;0!==(1&Yl)&&0!==e.tag&&ku(),a=e.pendingLanes,0!==(1&a)?e===Zl?Xl++:(Xl=0,Zl=e):Xl=0,Qi()}(e,t,r,n)}finally{_l.transition=i,vt=n}return null}function ku(){if(null!==Kl){var e=bt(Yl),t=_l.transition,r=vt;try{if(_l.transition=null,vt=16>e?16:e,null===Kl)var n=!1;else{if(e=Kl,Kl=null,Yl=0,0!==(6&Ml))throw Error(o(331));var i=Ml;for(Ml|=4,$s=e.current;null!==$s;){var a=$s,s=a.child;if(0!==(16&$s.flags)){var l=a.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for($s=c;null!==$s;){var f=$s;switch(f.tag){case 0:case 11:case 15:nl(8,f,a)}var d=f.child;if(null!==d)d.return=f,$s=d;else for(;null!==$s;){var h=(f=$s).sibling,p=f.return;if(al(f),f===c){$s=null;break}if(null!==h){h.return=p,$s=h;break}$s=p}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var A=g.sibling;g.sibling=null,g=A}while(null!==g)}}$s=a}}if(0!==(2064&a.subtreeFlags)&&null!==s)s.return=a,$s=s;else e:for(;null!==$s;){if(0!==(2048&(a=$s).flags))switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,$s=y;break e}$s=a.return}}var v=e.current;for($s=v;null!==$s;){var b=(s=$s).child;if(0!==(2064&s.subtreeFlags)&&null!==b)b.return=s,$s=b;else e:for(s=v;null!==$s;){if(0!==(2048&(l=$s).flags))try{switch(l.tag){case 0:case 11:case 15:il(9,l)}}catch(E){xu(l,l.return,E)}if(l===s){$s=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,$s=w;break e}$s=l.return}}if(Ml=i,Qi(),ot&&"function"===typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(E){}n=!0}return n}finally{vt=r,_l.transition=t}}return!1}function Su(e,t,r){e=Bo(e,t=ps(0,t=cs(r,t),1),1),t=tu(),null!==e&&(At(e,1,t),iu(e,t))}function xu(e,t,r){if(3===e.tag)Su(e,e,r);else for(;null!==t;){if(3===t.tag){Su(t,e,r);break}if(1===t.tag){var n=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof n.componentDidCatch&&(null===Wl||!Wl.has(n))){t=Bo(t,e=ms(t,e=cs(r,e),1),1),e=tu(),null!==t&&(At(t,1,e),iu(t,e));break}}t=t.return}}function Nu(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),t=tu(),e.pingedLanes|=e.suspendedLanes&r,Pl===e&&(Rl&r)===r&&(4===Bl||3===Bl&&(130023424&Rl)===Rl&&500>Xe()-Ql?hu(e,0):Ul|=r),iu(e,t)}function Cu(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ct,0===(130023424&(ct<<=1))&&(ct=4194304)));var r=tu();null!==(e=Po(e,t))&&(At(e,t,r),iu(e,r))}function _u(e){var t=e.memoizedState,r=0;null!==t&&(r=t.retryLane),Cu(e,r)}function Mu(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;null!==i&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(o(314))}null!==n&&n.delete(t),Cu(e,r)}function Pu(e,t){return We(e,t)}function Tu(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ru(e,t,r,n){return new Tu(e,t,r,n)}function Iu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ou(e,t){var r=e.alternate;return null===r?((r=Ru(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=14680064&e.flags,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Bu(e,t,r,n,i,a){var s=2;if(n=e,"function"===typeof e)Iu(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case k:return Lu(r.children,i,a,t);case S:s=8,i|=8;break;case x:return(e=Ru(12,r,t,2|i)).elementType=x,e.lanes=a,e;case M:return(e=Ru(13,r,t,i)).elementType=M,e.lanes=a,e;case P:return(e=Ru(19,r,t,i)).elementType=P,e.lanes=a,e;case I:return Fu(r,i,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case N:s=10;break e;case C:s=9;break e;case _:s=11;break e;case T:s=14;break e;case R:s=16,n=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Ru(s,r,t,i)).elementType=e,t.type=n,t.lanes=a,t}function Lu(e,t,r,n){return(e=Ru(7,e,n,t)).lanes=r,e}function Fu(e,t,r,n){return(e=Ru(22,e,n,t)).elementType=I,e.lanes=r,e.stateNode={isHidden:!1},e}function Du(e,t,r){return(e=Ru(6,e,null,t)).lanes=r,e}function Uu(e,t,r){return(t=Ru(4,null!==e.children?e.children:[],e.key,t)).lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ju(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function zu(e,t,r,n,i,o,a,s,l){return e=new ju(e,t,r,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Ru(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ro(o),e}function Qu(e){if(!e)return Ci;e:{if(Qe(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ri(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var r=e.type;if(Ri(r))return Bi(e,r,t)}return t}function Hu(e,t,r,n,i,o,a,s,l){return(e=zu(r,n,!0,e,0,o,0,s,l)).context=Qu(null),r=e.current,(o=Oo(n=tu(),i=ru(r))).callback=void 0!==t&&null!==t?t:null,Bo(r,o,i),e.current.lanes=i,At(e,i,n),iu(e,n),e}function qu(e,t,r,n){var i=t.current,o=tu(),a=ru(i);return r=Qu(r),null===t.context?t.context=r:t.pendingContext=r,(t=Oo(o,a)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),null!==(e=Bo(i,t,a))&&(nu(e,i,a,o),Lo(e,i,a)),a}function Gu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Vu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var r=e.retryLane;e.retryLane=0!==r&&r<t?r:t}}function Wu(e,t){Vu(e,t),(e=e.alternate)&&Vu(e,t)}Sl=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Mi.current)bs=!0;else{if(0===(e.lanes&r)&&0===(128&t.flags))return bs=!1,function(e,t,r){switch(t.tag){case 3:Ps(t),po();break;case 5:aa(t);break;case 1:Ri(t.type)&&Li(t);break;case 4:ia(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;Ni(yo,n._currentValue),n._currentValue=i;break;case 13:if(null!==(n=t.memoizedState))return null!==n.dehydrated?(Ni(la,1&la.current),t.flags|=128,null):0!==(r&t.child.childLanes)?Ds(e,t,r):(Ni(la,1&la.current),null!==(e=Gs(e,t,r))?e.sibling:null);Ni(la,1&la.current);break;case 19:if(n=0!==(r&t.childLanes),0!==(128&e.flags)){if(n)return Hs(e,t,r);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ni(la,la.current),n)break;return null;case 22:case 23:return t.lanes=0,xs(e,t,r)}return Gs(e,t,r)}(e,t,r);bs=0!==(131072&e.flags)}else bs=!1,io&&0!==(1048576&t.flags)&&$i(t,Vi,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;qs(e,t),e=t.pendingProps;var i=Ti(t,_i.current);xo(t,r),i=Sa(null,t,n,e,i,r);var a=xa();return t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ri(n)?(a=!0,Li(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Ro(t),i.updater=Qo,t.stateNode=i,i._reactInternals=t,Vo(t,n,e,r),t=Ms(null,t,n,!0,a,r)):(t.tag=0,io&&a&&eo(t),ws(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(qs(e,t),e=t.pendingProps,n=(i=n._init)(n._payload),t.type=n,i=t.tag=function(e){if("function"===typeof e)return Iu(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===_)return 11;if(e===T)return 14}return 2}(n),e=Ao(n,e),i){case 0:t=Cs(null,t,n,e,r);break e;case 1:t=_s(null,t,n,e,r);break e;case 11:t=Es(null,t,n,e,r);break e;case 14:t=ks(null,t,n,Ao(n.type,e),r);break e}throw Error(o(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,Cs(e,t,n,i=t.elementType===n?i:Ao(n,i),r);case 1:return n=t.type,i=t.pendingProps,_s(e,t,n,i=t.elementType===n?i:Ao(n,i),r);case 3:e:{if(Ps(t),null===e)throw Error(o(387));n=t.pendingProps,i=(a=t.memoizedState).element,Io(e,t),Do(t,n,null,r);var s=t.memoizedState;if(n=s.element,a.isDehydrated){if(a={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ts(e,t,n,r,i=cs(Error(o(423)),t));break e}if(n!==i){t=Ts(e,t,n,r,i=cs(Error(o(424)),t));break e}for(no=ui(t.stateNode.containerInfo.firstChild),ro=t,io=!0,oo=null,r=Zo(t,null,n,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(po(),n===i){t=Gs(e,t,r);break e}ws(e,t,n,r)}t=t.child}return t;case 5:return aa(t),null===e&&uo(t),n=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,ri(n,i)?s=null:null!==a&&ri(n,a)&&(t.flags|=32),Ns(e,t),ws(e,t,s,r),t.child;case 6:return null===e&&uo(t),null;case 13:return Ds(e,t,r);case 4:return ia(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=Xo(t,null,n,r):ws(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,Es(e,t,n,i=t.elementType===n?i:Ao(n,i),r);case 7:return ws(e,t,t.pendingProps,r),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,Ni(yo,n._currentValue),n._currentValue=s,null!==a)if(sn(a.value,s)){if(a.children===i.children&&!Mi.current){t=Gs(e,t,r);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;){if(u.context===n){if(1===a.tag){(u=Oo(-1,r&-r)).tag=2;var c=a.updateQueue;if(null!==c){var f=(c=c.shared).pending;null===f?u.next=u:(u.next=f.next,f.next=u),c.pending=u}}a.lanes|=r,null!==(u=a.alternate)&&(u.lanes|=r),So(a.return,r,t),l.lanes|=r;break}u=u.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=r,null!==(l=s.alternate)&&(l.lanes|=r),So(s,r,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}ws(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,xo(t,r),n=n(i=No(i)),t.flags|=1,ws(e,t,n,r),t.child;case 14:return i=Ao(n=t.type,t.pendingProps),ks(e,t,n,i=Ao(n.type,i),r);case 15:return Ss(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Ao(n,i),qs(e,t),t.tag=1,Ri(n)?(e=!0,Li(t)):e=!1,xo(t,r),qo(t,n,i),Vo(t,n,i,r),Ms(null,t,n,!0,e,r);case 19:return Hs(e,t,r);case 22:return xs(e,t,r)}throw Error(o(156,t.tag))};var Ju="function"===typeof reportError?reportError:function(e){console.error(e)};function Ku(e){this._internalRoot=e}function Yu(e){this._internalRoot=e}function Xu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Zu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function $u(){}function ec(e,t,r,n,i){var o=r._reactRootContainer;if(o){var a=o;if("function"===typeof i){var s=i;i=function(){var e=Gu(a);s.call(e)}}qu(t,a,e,i)}else a=function(e,t,r,n,i){if(i){if("function"===typeof n){var o=n;n=function(){var e=Gu(a);o.call(e)}}var a=Hu(t,n,e,0,null,!1,0,"",$u);return e._reactRootContainer=a,e[pi]=a.current,Qn(8===e.nodeType?e.parentNode:e),fu(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"===typeof n){var s=n;n=function(){var e=Gu(l);s.call(e)}}var l=zu(e,0,!1,null,0,!1,0,"",$u);return e._reactRootContainer=l,e[pi]=l.current,Qn(8===e.nodeType?e.parentNode:e),fu((function(){qu(t,l,r,n)})),l}(r,t,e,i,n);return Gu(a)}Yu.prototype.render=Ku.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));qu(e,t,null,null)},Yu.prototype.unmount=Ku.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;fu((function(){qu(null,e,null,null)})),t[pi]=null}},Yu.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var r=0;r<It.length&&0!==t&&t<It[r].priority;r++);It.splice(r,0,e),0===r&&Ft(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=ft(t.pendingLanes);0!==r&&(yt(t,1|r),iu(t,Xe()),0===(6&Ml)&&(Hl=Xe()+500,Qi()))}break;case 13:fu((function(){var t=Po(e,1);if(null!==t){var r=tu();nu(t,e,1,r)}})),Wu(e,1)}},Et=function(e){if(13===e.tag){var t=Po(e,134217728);if(null!==t)nu(t,e,134217728,tu());Wu(e,134217728)}},kt=function(e){if(13===e.tag){var t=ru(e),r=Po(e,t);if(null!==r)nu(r,e,t,tu());Wu(e,t)}},St=function(){return vt},xt=function(e,t){var r=vt;try{return vt=e,t()}finally{vt=r}},Ee=function(e,t,r){switch(t){case"input":if(Z(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=wi(n);if(!i)throw Error(o(90));W(n),Z(n,i)}}}break;case"textarea":oe(e,r);break;case"select":null!=(t=r.value)&&re(e,!!r.multiple,t,!1)}},_e=cu,Me=fu;var tc={usingClientEntryPoint:!1,Events:[vi,bi,wi,Ne,Ce,cu]},rc={findFiberByHostInstance:yi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},nc={bundleType:rc.bundleType,version:rc.version,rendererPackageName:rc.rendererPackageName,rendererConfig:rc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:b.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ge(e))?null:e.stateNode},findFiberByHostInstance:rc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ic=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ic.isDisabled&&ic.supportsFiber)try{it=ic.inject(nc),ot=ic}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xu(t))throw Error(o(200));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:E,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},t.createRoot=function(e,t){if(!Xu(e))throw Error(o(299));var r=!1,n="",i=Ju;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(n=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=zu(e,1,!1,null,0,r,0,n,i),e[pi]=t.current,Qn(8===e.nodeType?e.parentNode:e),new Ku(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return e=null===(e=Ge(t))?null:e.stateNode},t.flushSync=function(e){return fu(e)},t.hydrate=function(e,t,r){if(!Zu(t))throw Error(o(200));return ec(null,e,t,!0,r)},t.hydrateRoot=function(e,t,r){if(!Xu(e))throw Error(o(405));var n=null!=r&&r.hydratedSources||null,i=!1,a="",s=Ju;if(null!==r&&void 0!==r&&(!0===r.unstable_strictMode&&(i=!0),void 0!==r.identifierPrefix&&(a=r.identifierPrefix),void 0!==r.onRecoverableError&&(s=r.onRecoverableError)),t=Hu(t,null,e,1,null!=r?r:null,i,0,a,s),e[pi]=t.current,Qn(e),n)for(e=0;e<n.length;e++)i=(i=(r=n[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new Yu(t)},t.render=function(e,t,r){if(!Zu(t))throw Error(o(200));return ec(null,e,t,!1,r)},t.unmountComponentAtNode=function(e){if(!Zu(e))throw Error(o(40));return!!e._reactRootContainer&&(fu((function(){ec(null,null,e,!1,(function(){e._reactRootContainer=null,e[pi]=null}))})),!0)},t.unstable_batchedUpdates=cu,t.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Zu(r))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return ec(e,t,r,!1,n)},t.version="18.2.0-next-9e3b772b8-20220608"},1250:(e,t,r)=>{"use strict";var n=r(4164);t.createRoot=n.createRoot,t.hydrateRoot=n.hydrateRoot},4164:(e,t,r)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=r(4463)},6374:(e,t,r)=>{"use strict";var n=r(2791),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,r){var n,o={},u=null,c=null;for(n in void 0!==r&&(u=""+r),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,n)&&!l.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:i,type:e,key:u,ref:c,props:o,_owner:s.current}}t.Fragment=o,t.jsx=u,t.jsxs=u},9117:(e,t)=>{"use strict";var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function A(e,t,r){this.props=e,this.context=t,this.refs=g,this.updater=r||p}function y(){}function v(e,t,r){this.props=e,this.context=t,this.refs=g,this.updater=r||p}A.prototype.isReactComponent={},A.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},A.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=A.prototype;var b=v.prototype=new y;b.constructor=v,m(b,A.prototype),b.isPureReactComponent=!0;var w=Array.isArray,E=Object.prototype.hasOwnProperty,k={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function x(e,t,n){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)E.call(t,i)&&!S.hasOwnProperty(i)&&(o[i]=t[i]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===o[i]&&(o[i]=l[i]);return{$$typeof:r,type:e,key:a,ref:s,props:o,_owner:k.current}}function N(e){return"object"===typeof e&&null!==e&&e.$$typeof===r}var C=/\/+/g;function _(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function M(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case r:case n:l=!0}}if(l)return a=a(l=e),e=""===o?"."+_(l,0):o,w(a)?(i="",null!=e&&(i=e.replace(C,"$&/")+"/"),M(a,t,i,"",(function(e){return e}))):null!=a&&(N(a)&&(a=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(C,"$&/")+"/")+e)),t.push(a)),1;if(l=0,o=""===o?".":o+":",w(e))for(var u=0;u<e.length;u++){var c=o+_(s=e[u],u);l+=M(s,t,i,c,a)}else if(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"===typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=M(s=s.value,t,i,c=o+_(s,u++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function P(e,t,r){if(null==e)return e;var n=[],i=0;return M(e,n,"","",(function(e){return t.call(r,e,i++)})),n}function T(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var R={current:null},I={transition:null},O={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:I,ReactCurrentOwner:k};t.Children={map:P,forEach:function(e,t,r){P(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return P(e,(function(){t++})),t},toArray:function(e){return P(e,(function(e){return e}))||[]},only:function(e){if(!N(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=A,t.Fragment=i,t.Profiler=a,t.PureComponent=v,t.StrictMode=o,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=O,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=m({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=k.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)E.call(t,u)&&!S.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}return{$$typeof:r,type:e.type,key:o,ref:a,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=x,t.createFactory=function(e){var t=x.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=N,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:T}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=I.transition;I.transition={};try{e()}finally{I.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return R.current.useCallback(e,t)},t.useContext=function(e){return R.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return R.current.useDeferredValue(e)},t.useEffect=function(e,t){return R.current.useEffect(e,t)},t.useId=function(){return R.current.useId()},t.useImperativeHandle=function(e,t,r){return R.current.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return R.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return R.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return R.current.useMemo(e,t)},t.useReducer=function(e,t,r){return R.current.useReducer(e,t,r)},t.useRef=function(e){return R.current.useRef(e)},t.useState=function(e){return R.current.useState(e)},t.useSyncExternalStore=function(e,t,r){return R.current.useSyncExternalStore(e,t,r)},t.useTransition=function(){return R.current.useTransition()},t.version="18.2.0"},2791:(e,t,r)=>{"use strict";e.exports=r(9117)},184:(e,t,r)=>{"use strict";e.exports=r(6374)},6813:(e,t)=>{"use strict";function r(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,i=e[n];if(!(0<o(i,t)))break e;e[n]=t,e[r]=i,r=n}}function n(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,i=e.length,a=i>>>1;n<a;){var s=2*(n+1)-1,l=e[s],u=s+1,c=e[u];if(0>o(l,r))u<i&&0>o(c,l)?(e[n]=c,e[u]=r,n=u):(e[n]=l,e[s]=r,n=s);else{if(!(u<i&&0>o(c,r)))break e;e[n]=c,e[u]=r,n=u}}}return t}function o(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],f=1,d=null,h=3,p=!1,m=!1,g=!1,A="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,v="undefined"!==typeof setImmediate?setImmediate:null;function b(e){for(var t=n(c);null!==t;){if(null===t.callback)i(c);else{if(!(t.startTime<=e))break;i(c),t.sortIndex=t.expirationTime,r(u,t)}t=n(c)}}function w(e){if(g=!1,b(e),!m)if(null!==n(u))m=!0,I(E);else{var t=n(c);null!==t&&O(w,t.startTime-e)}}function E(e,r){m=!1,g&&(g=!1,y(N),N=-1),p=!0;var o=h;try{for(b(r),d=n(u);null!==d&&(!(d.expirationTime>r)||e&&!M());){var a=d.callback;if("function"===typeof a){d.callback=null,h=d.priorityLevel;var s=a(d.expirationTime<=r);r=t.unstable_now(),"function"===typeof s?d.callback=s:d===n(u)&&i(u),b(r)}else i(u);d=n(u)}if(null!==d)var l=!0;else{var f=n(c);null!==f&&O(w,f.startTime-r),l=!1}return l}finally{d=null,h=o,p=!1}
2}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,S=!1,x=null,N=-1,C=5,_=-1;function M(){return!(t.unstable_now()-_<C)}function P(){if(null!==x){var e=t.unstable_now();_=e;var r=!0;try{r=x(!0,e)}finally{r?k():(S=!1,x=null)}}else S=!1}if("function"===typeof v)k=function(){v(P)};else if("undefined"!==typeof MessageChannel){var T=new MessageChannel,R=T.port2;T.port1.onmessage=P,k=function(){R.postMessage(null)}}else k=function(){A(P,0)};function I(e){x=e,S||(S=!0,k())}function O(e,r){N=A((function(){e(t.unstable_now())}),r)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||p||(m=!0,I(E))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return n(u)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var r=h;h=t;try{return e()}finally{h=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=h;h=e;try{return t()}finally{h=r}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?a+o:a:o=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:f++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,r(c,e),null===n(u)&&e===n(c)&&(g?(y(N),N=-1):g=!0,O(w,o-a))):(e.sortIndex=s,r(u,e),m||p||(m=!0,I(E))),e},t.unstable_shouldYield=M,t.unstable_wrapCallback=function(e){var t=h;return function(){var r=h;h=t;try{return e.apply(this,arguments)}finally{h=r}}}},5296:(e,t,r)=>{"use strict";e.exports=r(6813)},8637:(e,t,r)=>{"use strict";var n=r(2791);var i="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},o=n.useSyncExternalStore,a=n.useRef,s=n.useEffect,l=n.useMemo,u=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,c){var f=a(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=l((function(){function e(e){if(!s){if(s=!0,o=e,e=n(e),void 0!==c&&d.hasValue){var t=d.value;if(c(t,e))return a=t}return a=e}if(t=a,i(o,e))return t;var r=n(e);return void 0!==c&&c(t,r)?t:(o=e,a=r)}var o,a,s=!1,l=void 0===r?null:r;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]}),[t,r,n,c]);var h=o(e,f[0],f[1]);return s((function(){d.hasValue=!0,d.value=h}),[h]),u(h),h}},7995:(e,t,r)=>{"use strict";e.exports=r(8637)},6601:()=>{}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}r.amdO={},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;r.t=function(n,i){if(1&i&&(n=this(n)),8&i)return n;if("object"===typeof n&&n){if(4&i&&n.__esModule)return n;if(16&i&&"function"===typeof n.then)return n}var o=Object.create(null);r.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&i&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,r.d(o,a),o}})(),r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}
2),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),r.p="/",(()=>{"use strict";var e=r(2791),t=r.t(e,2),n=r(1250),i=r(7995),o=e,a=Symbol.for("react-redux-context"),s="undefined"!==typeof globalThis?globalThis:{};function l(){var e;if(!o.createContext)return{};const t=null!==(e=s[a])&&void 0!==e?e:s[a]=new Map;let r=t.get(o.createContext);return r||(r=o.createContext(null),t.set(o.createContext,r)),r}var u=l(),c=()=>{throw new Error("uSES not initialized!")};function f(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u;return function(){return o.useContext(e)}}var d=f(),h=c,p=(e,t)=>e===t;function m(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u;const t=e===u?d:f(e);return function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{equalityFn:n=p,devModeChecks:i={}}="function"===typeof r?{equalityFn:r}:r;const{store:a,subscription:s,getServerState:l,stabilityCheck:u,identityFunctionCheck:c}=t(),f=(o.useRef(!0),o.useCallback({[e.name]:t=>e(t)}[e.name],[e,u,i.stabilityCheck])),d=h(s.addNestedSub,a.getState,l||a.getState,f,n);return o.useDebugValue(d),d}}var g=m();Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen"),Symbol.for("react.client.reference");function A(e){e()}var y={notify(){},get:()=>[]};function v(e,t){let r,n=y,i=0,o=!1;function a(){u.onStateChange&&u.onStateChange()}function s(){i++,r||(r=t?t.addNestedSub(a):e.subscribe(a),n=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){A((()=>{let t=e;for(;t;)t.callback(),t=t.next}))},get(){let t=[],r=e;for(;r;)t.push(r),r=r.next;return t},subscribe(r){let n=!0,i=t={callback:r,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){n&&null!==e&&(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}())}function l(){i--,r&&0===i&&(r(),r=void 0,n.clear(),n=y)}const u={addNestedSub:function(e){s();const t=n.subscribe(e);let r=!1;return()=>{r||(r=!0,t(),l())}},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:a,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,s())},tryUnsubscribe:function(){o&&(o=!1,l())},getListeners:()=>n};return u}var b=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement)?o.useLayoutEffect:o.useEffect;Object.defineProperty,Object.getOwnPropertyNames,Object.getOwnPropertySymbols,Object.getOwnPropertyDescriptor,Object.getPrototypeOf,Object.prototype;var w=function(e){let{store:t,context:r,children:n,serverState:i,stabilityCheck:a="once",identityFunctionCheck:s="once"}=e;const l=o.useMemo((()=>{const e=v(t);return{store:t,subscription:e,getServerState:i?()=>i:void 0,stabilityCheck:a,identityFunctionCheck:s}}),[t,i,a,s]),c=o.useMemo((()=>t.getState()),[t]);b((()=>{const{subscription:e}=l;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),c!==t.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[l,c]);const f=r||u;return o.createElement(f.Provider,{value:l},n)};function E(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u;const t=e===u?d:f(e);return function(){const{store:e}=t();return e}}var k=E();function S(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u;const t=e===u?k:E(e);return function(){return t().dispatch}}var x,N=S();x=i.useSyncExternalStoreWithSelector,h=x,(e=>{e})(e.useSyncExternalStore);var C,_=r(4164),M=r.t(_,2);function P(){return P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},P.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(C||(C={}));const T="popstate";function R(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function I(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(r){}}}function O(e,t){return{usr:e.state,key:e.key,idx:t}}function B(e,t,r,n){return void 0===r&&(r=null),P({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?F(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function L(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(t+="#"===n.charAt(0)?n:"#"+n),t}function F(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function D(e,t,r,n){void 0===n&&(n={});let{window:i=document.defaultView,v5Compat:o=!1}=n,a=i.history,s=C.Pop,l=null,u=c();function c(){return(a.state||{idx:null}).idx}function f(){s=C.Pop;let e=c(),t=null==e?null:e-u;u=e,l&&l({action:s,location:h.location,delta:t})}function d(e){let t="null"!==i.location.origin?i.location.origin:i.location.href,r="string"===typeof e?e:L(e);return R(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}null==u&&(u=0,a.replaceState(P({},a.state,{idx:u}),""));let h={get action(){return s},get location(){return e(i,a)},listen(e){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(T,f),l=e,()=>{i.removeEventListener(T,f),l=null}},createHref:e=>
2t(i,e),createURL:d,encodeLocation(e){let t=d(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s=C.Push;let n=B(h.location,e,t);r&&r(n,e),u=c()+1;let f=O(n,u),d=h.createHref(n);try{a.pushState(f,"",d)}catch(p){if(p instanceof DOMException&&"DataCloneError"===p.name)throw p;i.location.assign(d)}o&&l&&l({action:s,location:h.location,delta:1})},replace:function(e,t){s=C.Replace;let n=B(h.location,e,t);r&&r(n,e),u=c();let i=O(n,u),f=h.createHref(n);a.replaceState(i,"",f),o&&l&&l({action:s,location:h.location,delta:0})},go:e=>a.go(e)};return h}var U;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(U||(U={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function j(e,t,r){void 0===r&&(r="/");let n=ee(("string"===typeof t?F(t):t).pathname||"/",r);if(null==n)return null;let i=z(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let r=e.length===t.length&&e.slice(0,-1).every(((e,r)=>e===t[r]));return r?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let o=null;for(let a=0;null==o&&a<i.length;++a)o=X(i[a],$(n));return o}function z(e,t,r,n){void 0===t&&(t=[]),void 0===r&&(r=[]),void 0===n&&(n="");let i=(e,i,o)=>{let a={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};a.relativePath.startsWith("/")&&(R(a.relativePath.startsWith(n),'Absolute route path "'+a.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(n.length));let s=ie([n,a.relativePath]),l=r.concat(a);e.children&&e.children.length>0&&(R(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),z(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:Y(s,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let n of Q(e.path))i(e,t,n);else i(e,t)})),t}function Q(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,i=r.endsWith("?"),o=r.replace(/\?$/,"");if(0===n.length)return i?[o,""]:[o];let a=Q(n.join("/")),s=[];return s.push(...a.map((e=>""===e?o:[o,e].join("/")))),i&&s.push(...a),s.map((t=>e.startsWith("/")&&""===t?"/":t))}const H=/^:\w+$/,q=3,G=2,V=1,W=10,J=-2,K=e=>"*"===e;function Y(e,t){let r=e.split("/"),n=r.length;return r.some(K)&&(n+=J),t&&(n+=G),r.filter((e=>!K(e))).reduce(((e,t)=>e+(H.test(t)?q:""===t?V:W)),n)}function X(e,t){let{routesMeta:r}=e,n={},i="/",o=[];for(let a=0;a<r.length;++a){let e=r[a],s=a===r.length-1,l="/"===i?t:t.slice(i.length)||"/",u=Z({path:e.relativePath,caseSensitive:e.caseSensitive,end:s},l);if(!u)return null;
2Object.assign(n,u.params);let c=e.route;o.push({params:n,pathname:ie([i,u.pathname]),pathnameBase:oe(ie([i,u.pathnameBase])),route:c}),"/"!==u.pathnameBase&&(i=ie([i,u.pathnameBase]))}return o}function Z(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=function(e,t,r){void 0===t&&(t=!1);void 0===r&&(r=!0);I("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,((e,t,r)=>(n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(n.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))");let o=new RegExp(i,t?void 0:"i");return[o,n]}(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:n.reduce(((e,t,r)=>{let{paramName:n,isOptional:i}=t;if("*"===n){let e=s[r]||"";a=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[r];return e[n]=i&&!l?void 0:function(e,t){try{return decodeURIComponent(e)}catch(r){return I(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+r+")."),e}}(l||"",n),e}),{}),pathname:o,pathnameBase:a,pattern:e}}function $(e){try{return decodeURI(e)}catch(t){return I(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function ee(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function te(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function re(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function ne(e,t,r,n){let i;void 0===n&&(n=!1),"string"===typeof e?i=F(e):(i=P({},e),R(!i.pathname||!i.pathname.includes("?"),te("?","pathname","search",i)),R(!i.pathname||!i.pathname.includes("#"),te("#","pathname","hash",i)),R(!i.search||!i.search.includes("#"),te("#","search","hash",i)));let o,a=""===e||""===i.pathname,s=a?"/":i.pathname;if(null==s)o=r;else if(n){let e=t[t.length-1].replace(/^\//,"").split("/");if(s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e.pop();i.pathname=t.join("/")}o="/"+e.join("/")}else{let e=t.length-1;if(s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}o=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let{pathname:r,search:n="",hash:i=""}="string"===typeof e?F(e):e,o=r?r.startsWith("/")?r:function(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)})),r.length>1?r.join("/"):"/"}(r,t):t;return{pathname:o,search:ae(n),hash:se(i)}}(i,o),u=s&&"/"!==s&&s.endsWith("/"),c=(a||"."===s)&&r.endsWith("/");return l.pathname.endsWith("/")||!u&&!c||(l.pathname+="/"),l}const ie=e=>e.join("/").replace(/\/\/+/g,"/"),oe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ae=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",se=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;function le(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}const ue=["post","put","patch","delete"],ce=(new Set(ue),["get",...ue]);new Set(ce),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred");function fe(){return fe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
2for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fe.apply(this,arguments)}const de=e.createContext(null);const he=e.createContext(null);const pe=e.createContext(null);const me=e.createContext(null);const ge=e.createContext({outlet:null,matches:[],isDataRoute:!1});const Ae=e.createContext(null);function ye(){return null!=e.useContext(me)}function ve(){return ye()||R(!1),e.useContext(me).location}function be(t){e.useContext(pe).static||e.useLayoutEffect(t)}function we(){let{isDataRoute:t}=e.useContext(ge);return t?function(){let{router:t}=Re(Pe.UseNavigateStable),r=Oe(Te.UseNavigateStable),n=e.useRef(!1);be((()=>{n.current=!0}));let i=e.useCallback((function(e,i){void 0===i&&(i={}),n.current&&("number"===typeof e?t.navigate(e):t.navigate(e,fe({fromRouteId:r},i)))}),[t,r]);return i}():function(){ye()||R(!1);let t=e.useContext(de),{basename:r,navigator:n}=e.useContext(pe),{matches:i}=e.useContext(ge),{pathname:o}=ve(),a=JSON.stringify(re(i).map((e=>e.pathnameBase))),s=e.useRef(!1);return be((()=>{s.current=!0})),e.useCallback((function(e,i){if(void 0===i&&(i={}),!s.current)return;if("number"===typeof e)return void n.go(e);let l=ne(e,JSON.parse(a),o,"path"===i.relative);null==t&&"/"!==r&&(l.pathname="/"===l.pathname?r:ie([r,l.pathname])),(i.replace?n.replace:n.push)(l,i.state,i)}),[r,n,a,o,t])}()}const Ee=e.createContext(null);function ke(t,r){let{relative:n}=void 0===r?{}:r,{matches:i}=e.useContext(ge),{pathname:o}=ve(),a=JSON.stringify(re(i).map((e=>e.pathnameBase)));return e.useMemo((()=>ne(t,JSON.parse(a),o,"path"===n)),[t,a,o,n])}function Se(t,r,n){ye()||R(!1);let{navigator:i}=e.useContext(pe),{matches:o}=e.useContext(ge),a=o[o.length-1],s=a?a.params:{},l=(a&&a.pathname,a?a.pathnameBase:"/");a&&a.route;let u,c=ve();if(r){var f;let e="string"===typeof r?F(r):r;"/"===l||(null==(f=e.pathname)?void 0:f.startsWith(l))||R(!1),u=e}else u=c;let d=u.pathname||"/",h=j(t,{pathname:"/"===l?d:d.slice(l.length)||"/"});let p=Me(h&&h.map((e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:ie([l,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:ie([l,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),o,n);return r&&p?e.createElement(me.Provider,{value:{location:fe({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:C.Pop}},p):p}function xe(){let t=function(){var t;let r=e.useContext(Ae),n=Ie(Te.UseRouteError),i=Oe(Te.UseRouteError);if(r)return r;return null==(t=n.errors)?void 0:t[i]}(),r=le(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,i="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:i};return e.createElement(e.Fragment,null,e.createElement("h2",null,"Unexpected Application Error!"),e.createElement("h3",{style:{fontStyle:"italic"}},r),n?e.createElement("pre",{style:o},n):null,null)}const Ne=e.createElement(xe,null);class Ce extends e.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?e.createElement(ge.Provider,{value:this.props.routeContext},e.createElement(Ae.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function _e(t){let{routeContext:r,match:n,children:i}=t,o=e.useContext(de);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),e.createElement(ge.Provider,{value:r},i)}function Me(t,r,n){var i;if(void 0===r&&(r=[]),void 0===n&&(n=null),null==t){var o;if(null==(o=n)||!o.errors)return null;t=n.matches}let a=t,s=null==(i=n)?void 0:i.errors;if(null!=s){let e=a.findIndex((e=>e.route.id&&(null==s?void 0:s[e.route.id])));e>=0||R(!1),a=a.slice(0,Math.min(a.length,e+1))}return a.reduceRight(((t,i,o)=>{let l=i.route.id?null==s?void 0:s[i.route.id]:null,u=null;n&&(u=i.route.errorElement||Ne);let c=r.concat(a.slice(0,o+1)),f=()=>{let r;return r=l?u:i.route.Component?e.createElement(i.route.Component,null):i.route.element?i.route.element:t,e.createElement(_e,{match:i,routeContext:{outlet:t,matches:c,isDataRoute:null!=n},children:r})};return n&&(i.route.ErrorBoundary||i.route.errorElement||0===o)?e.createElement(Ce,{location:n.location,revalidation:n.revalidation,component:u,error:l,children:f(),routeC
2ontext:{outlet:null,matches:c,isDataRoute:!0}}):f()}),null)}var Pe=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Pe||{}),Te=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Te||{});function Re(t){let r=e.useContext(de);return r||R(!1),r}function Ie(t){let r=e.useContext(he);return r||R(!1),r}function Oe(t){let r=function(t){let r=e.useContext(ge);return r||R(!1),r}(),n=r.matches[r.matches.length-1];return n.route.id||R(!1),n.route.id}t.startTransition;function Be(t){return function(t){let r=e.useContext(ge).outlet;return r?e.createElement(Ee.Provider,{value:t},r):r}(t.context)}function Le(e){R(!1)}function Fe(t){let{basename:r="/",children:n=null,location:i,navigationType:o=C.Pop,navigator:a,static:s=!1}=t;ye()&&R(!1);let l=r.replace(/^\/*/,"/"),u=e.useMemo((()=>({basename:l,navigator:a,static:s})),[l,a,s]);"string"===typeof i&&(i=F(i));let{pathname:c="/",search:f="",hash:d="",state:h=null,key:p="default"}=i,m=e.useMemo((()=>{let e=ee(c,l);return null==e?null:{location:{pathname:e,search:f,hash:d,state:h,key:p},navigationType:o}}),[l,c,f,d,h,p,o]);return null==m?null:e.createElement(pe.Provider,{value:u},e.createElement(me.Provider,{children:n,value:m}))}function De(e){let{children:t,location:r}=e;return Se(Ue(t),r)}new Promise((()=>{}));e.Component;function Ue(t,r){void 0===r&&(r=[]);let n=[];return e.Children.forEach(t,((t,i)=>{if(!e.isValidElement(t))return;let o=[...r,i];if(t.type===e.Fragment)return void n.push.apply(n,Ue(t.props.children,o));t.type!==Le&&R(!1),t.props.index&&t.props.children&&R(!1);let a={id:t.props.id||o.join("-"),caseSensitive:t.props.caseSensitive,element:t.props.element,Component:t.props.Component,index:t.props.index,path:t.props.path,loader:t.props.loader,action:t.props.action,errorElement:t.props.errorElement,ErrorBoundary:t.props.ErrorBoundary,hasErrorBoundary:null!=t.props.ErrorBoundary||null!=t.props.errorElement,shouldRevalidate:t.props.shouldRevalidate,handle:t.props.handle,lazy:t.props.lazy};t.props.children&&(a.children=Ue(t.props.children,o)),n.push(a)})),n}function je(){return je=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},je.apply(this,arguments)}function ze(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const Qe=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],He=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"];const qe=e.createContext({isTransitioning:!1});new Map;const Ge=t.startTransition;M.flushSync;function Ve(t){let{basename:r,children:n,future:i,window:o}=t,a=e.useRef();var s;null==a.current&&(a.current=(void 0===(s={window:o,v5Compat:!0})&&(s={}),D((function(e,t){let{pathname:r,search:n,hash:i}=e.location;return B("",{pathname:r,search:n,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"===typeof t?t:L(t)}),null,s)));let l=a.current,[u,c]=e.useState({action:l.action,location:l.location}),{v7_startTransition:f}=i||{},d=e.useCallback((e=>{f&&Ge?Ge((()=>c(e))):c(e)}),[c,f]);return e.useLayoutEffect((()=>l.listen(d)),[l,d]),e.createElement(Fe,{basename:r,children:n,location:u.location,navigationType:u.action,navigator:l})}const We="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,Je=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ke=e.forwardRef((function(t,r){let n,{onClick:i,relative:o,reloadDocument:a,replace:s,state:l,target:u,to:c,preventScrollReset:f,unstable_viewTransition:d}=t,h=ze(t,Qe),{basename:p}=e.useContext(pe),m=!1;if("string"===typeof c&&Je.test(c)&&(n=c,We))try{let e=new URL(window.location.href),t=c.startsWith("//")?new URL(e.protocol+c):new URL(c),r=ee(t.pathname,p);t.origin===e.origin&&null!=r?c=r+t.search+t.hash:m=!0}catch(y){}let g=function(t,r){let{relative:n}=void 0===r?{}:r;ye()||R(!1);let{basename:i,navigator:o}=e.useContext(pe),{hash:a,pathname:s,search:l}=ke(t,{relative:n}),u=s;return"/"!==i&&(u="/"===s?i:ie([i,s])),o.createHref({pathname:u,search:l,hash:a})}(c,{relative:o}),A=function(t,r){let{target:n,replace:i,state:o,preventScrollReset:a,relative:s,unstable_viewTransition:l}=void 0===r?{}:r,u=we(),c=ve(),f=ke(t,{relative:s});return e.useCallback((e=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(e,n)){e.preventDefault();let r=void 0!==i?i:L(c)===L(f);u(t,{replace:r,state:o,preventScrollReset:a,relative:s,unstable_viewTransition:l})}}),[c,u,f,i,o,n,t,a,s,l])}(c,{replace:s,state:l,target:u,preventScrollReset:f,relative:o,unstable_viewTransition:d});return e.createElement("a",je({},h,{href:n||g,onClick:m||a?i:function(e){i&&i(e),e.defaultPrevented||A(e)},ref:r,target:u}))}));const Ye=e.forwardRef((function(t,r){let{"aria-current":n="page",caseSensitive:i=!1,className:o="",end:a=!1,style:s,to:l,unstable_viewTransition:u,children:c}
2=t,f=ze(t,He),d=ke(l,{relative:f.relative}),h=ve(),p=e.useContext(he),{navigator:m}=e.useContext(pe),g=null!=p&&function(t,r){void 0===r&&(r={});let n=e.useContext(qe);null==n&&R(!1);let{basename:i}=$e(Xe.useViewTransitionState),o=ke(t,{relative:r.relative});if(!n.isTransitioning)return!1;let a=ee(n.currentLocation.pathname,i)||n.currentLocation.pathname,s=ee(n.nextLocation.pathname,i)||n.nextLocation.pathname;return null!=Z(o.pathname,s)||null!=Z(o.pathname,a)}(d)&&!0===u,A=m.encodeLocation?m.encodeLocation(d).pathname:d.pathname,y=h.pathname,v=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;i||(y=y.toLowerCase(),v=v?v.toLowerCase():null,A=A.toLowerCase());const b="/"!==A&&A.endsWith("/")?A.length-1:A.length;let w,E=y===A||!a&&y.startsWith(A)&&"/"===y.charAt(b),k=null!=v&&(v===A||!a&&v.startsWith(A)&&"/"===v.charAt(A.length)),S={isActive:E,isPending:k,isTransitioning:g},x=E?n:void 0;w="function"===typeof o?o(S):[o,E?"active":null,k?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let N="function"===typeof s?s(S):s;return e.createElement(Ke,je({},f,{"aria-current":x,className:w,ref:r,style:N,to:l,unstable_viewTransition:u}),"function"===typeof c?c(S):c)}));var Xe,Ze;function $e(t){let r=e.useContext(de);return r||R(!1),r}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Xe||(Xe={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(Ze||(Ze={}));var et=Symbol.for("immer-nothing"),tt=Symbol.for("immer-draftable"),rt=Symbol.for("immer-state");function nt(e){throw new Error("[Immer] minified error nr: ".concat(e,". Full error at: https://bit.ly/3cXEKWf"))}var it=Object.getPrototypeOf;function ot(e){return!!e&&!!e[rt]}function at(e){var t;return!!e&&(lt(e)||Array.isArray(e)||!!e[tt]||!(null===(t=e.constructor)||void 0===t||!t[tt])||ht(e)||pt(e))}var st=Object.prototype.constructor.toString();function lt(e){if(!e||"object"!==typeof e)return!1;const t=it(e);if(null===t)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===st}function ut(e,t){0===ct(e)?Object.entries(e).forEach((r=>{let[n,i]=r;t(n,i,e)})):e.forEach(((r,n)=>t(n,r,e)))}function ct(e){const t=e[rt];return t?t.type_:Array.isArray(e)?1:ht(e)?2:pt(e)?3:0}function ft(e,t){return 2===ct(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function dt(e,t,r){const n=ct(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function ht(e){return e instanceof Map}function pt(e){return e instanceof Set}function mt(e){return e.copy_||e.base_}function gt(e,t){if(ht(e))return new Map(e);if(pt(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&<(e)){if(!it(e)){const t=Object.create(null);return Object.assign(t,e)}return{...e}}const r=Object.getOwnPropertyDescriptors(e);delete r[rt];let n=Reflect.ownKeys(r);for(let i=0;i<n.length;i++){const t=n[i],o=r[t];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(r[t]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[t]})}return Object.create(it(e),r)}function At(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return vt(e)||ot(e)||!at(e)||(ct(e)>1&&(e.set=e.add=e.clear=e.delete=yt),Object.freeze(e),t&&ut(e,((e,t)=>At(t,!0)))),e}function yt(){nt(2)}function vt(e){return Object.isFrozen(e)}var bt,wt={};function Et(e){const t=wt[e];return t||nt(0),t}function kt(){return bt}function St(e,t){t&&(Et("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function xt(e){Nt(e),e.drafts_.forEach(_t),e.drafts_=null}function Nt(e){e===bt&&(bt=e.parent_)}function Ct(e){return bt={drafts_:[],parent_:bt,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function _t(e){const t=e[rt];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function Mt(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return void 0!==e&&e!==r?(r[rt].modified_&&(xt(t),nt(4)),at(e)&&(e=Pt(t,e),t.parent_||Rt(t,e)),t.patches_&&Et("Patches").generateReplacementPatches_(r[rt].base_,e,t.patches_,t.inversePatches_)):e=Pt(t,r,[]),xt(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==et?e:void 0}function Pt(e,t,r){if(vt(t))return t;const n=t[rt];if(!n)return ut(t,((i,o)=>Tt(e,n,t,i,o,r))),t;if(n.scope_!==e)return t;if(!n.modified_)return Rt(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const t=n.copy_;let i=t,o=!1;3===n.type_&&(i=new Set(t),t.clear(),o=!0),ut(i,((i,a)=>Tt(e,n,t,i,a,r,o))),Rt(e,t,!1),r&&e.patches_&&Et("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function Tt(e,t,r,n,i,o,a){if(ot(i)){const a=Pt(e,i,o&&t&&3!==t.type_&&!ft(t.assigned_,n)?o.concat(n):void 0);if(dt(r,n,a),!ot(a))return;e.canAutoFreeze_=!1}else a&&r.add(i);if(at(i)&&!vt(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;
2Pt(e,i),t&&t.scope_.parent_||Rt(e,i)}}function Rt(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&At(t,r)}var It={get(e,t){if(t===rt)return e;const r=mt(e);if(!ft(r,t))return function(e,t,r){var n;const i=Lt(t,r);return i?"value"in i?i.value:null===(n=i.get)||void 0===n?void 0:n.call(e.draft_):void 0}(e,r,t);const n=r[t];return e.finalized_||!at(n)?n:n===Bt(e.base_,t)?(Dt(e),e.copy_[t]=Ut(n,e)):n},has:(e,t)=>t in mt(e),ownKeys:e=>Reflect.ownKeys(mt(e)),set(e,t,r){const n=Lt(mt(e),t);if(null!==n&&void 0!==n&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const n=Bt(mt(e),t),i=null===n||void 0===n?void 0:n[rt];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}(r,n)&&(void 0!==r||ft(e.base_,t)))return!0;Dt(e),Ft(e)}return e.copy_[t]===r&&(void 0!==r||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==Bt(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,Dt(e),Ft(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const r=mt(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty(){nt(11)},getPrototypeOf:e=>it(e.base_),setPrototypeOf(){nt(12)}},Ot={};function Bt(e,t){const r=e[rt];return(r?mt(r):e)[t]}function Lt(e,t){if(!(t in e))return;let r=it(e);for(;r;){const e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=it(r)}}function Ft(e){e.modified_||(e.modified_=!0,e.parent_&&Ft(e.parent_))}function Dt(e){e.copy_||(e.copy_=gt(e.base_,e.scope_.immer_.useStrictShallowCopy_))}ut(It,((e,t)=>{Ot[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Ot.deleteProperty=function(e,t){return Ot.set.call(this,e,t,void 0)},Ot.set=function(e,t,r){return It.set.call(this,e[0],t,r,e[0])};function Ut(e,t){const r=ht(e)?Et("MapSet").proxyMap_(e,t):pt(e)?Et("MapSet").proxySet_(e,t):function(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:kt(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,o=It;r&&(i=[n],o=Ot);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return n.draft_=s,n.revoke_=a,s}(e,t);return(t?t.scope_:kt()).drafts_.push(r),r}function jt(e){return ot(e)||nt(10),zt(e)}function zt(e){if(!at(e)||vt(e))return e;const t=e[rt];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=gt(e,t.scope_.immer_.useStrictShallowCopy_)}else r=gt(e,!0);return ut(r,((e,t)=>{dt(r,e,zt(t))})),t&&(t.finalized_=!1),r}var Qt=new class{constructor(e){var t=this;this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,r)=>{if("function"===typeof e&&"function"!==typeof t){const r=t;t=e;const n=this;return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r;for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return n.produce(e,(e=>t.call(this,e,...o)))}}let n;if("function"!==typeof t&&nt(6),void 0!==r&&"function"!==typeof r&&nt(7),at(e)){const i=Ct(this),o=Ut(e,void 0);let a=!0;try{n=t(o),a=!1}finally{a?xt(i):Nt(i)}return St(i,r),Mt(n,i)}if(!e||"object"!==typeof e){if(n=t(e),void 0===n&&(n=e),n===et&&(n=void 0),this.autoFreeze_&&At(n,!0),r){const t=[],i=[];Et("Patches").generateReplacementPatches_(e,n,t,i),r(t,i)}return n}nt(1)},this.produceWithPatches=(e,r)=>{if("function"===typeof e)return function(r){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return t.produceWithPatches(r,(t=>e(t,...i)))};let n,i;const o=this.produce(e,r,((e,t)=>{n=e,i=t}));return[o,n,i]},"boolean"===typeof(null===e||void 0===e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),"boolean"===typeof(null===e||void 0===e?void 0:e.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){at(e)||nt(8),ot(e)&&(e=jt(e));const t=Ct(this),r=Ut(e,void 0);return r[rt].isManual_=!0,Nt(t),r}finishDraft(e,t){const r=e&&e[rt];r&&r.isManual_||nt(9);const{scope_:n}=r;return St(n,t),Mt(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const n=t[r];
2if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));const n=Et("Patches").applyPatches_;return ot(e)?n(e,t):this.produce(e,(e=>n(e,t)))}},Ht=Qt.produce;Qt.produceWithPatches.bind(Qt),Qt.setAutoFreeze.bind(Qt),Qt.setUseStrictShallowCopy.bind(Qt),Qt.applyPatches.bind(Qt),Qt.createDraft.bind(Qt),Qt.finishDraft.bind(Qt);function qt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"expected a function, instead received ".concat(typeof e);if("function"!==typeof e)throw new TypeError(t)}var Gt=e=>Array.isArray(e)?e:[e];function Vt(e){const t=Array.isArray(e[0])?e[0]:e;return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"expected all items to be functions, instead received the following types: ";if(!e.every((e=>"function"===typeof e))){const r=e.map((e=>"function"===typeof e?"function ".concat(e.name||"unnamed","()"):typeof e)).join(", ");throw new TypeError("".concat(t,"[").concat(r,"]"))}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}Symbol(),Object.getPrototypeOf({});var Wt="undefined"!==typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}},Jt=0,Kt=1;function Yt(){return{s:Jt,v:void 0,o:null,p:null}}function Xt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Yt();const{resultEqualityCheck:n}=t;let i,o=0;function a(){let t=r;const{length:a}=arguments;for(let e=0,r=a;e<r;e++){const r=arguments[e];if("function"===typeof r||"object"===typeof r&&null!==r){let e=t.o;null===e&&(t.o=e=new WeakMap);const n=e.get(r);void 0===n?(t=Yt(),e.set(r,t)):t=n}else{let e=t.p;null===e&&(t.p=e=new Map);const n=e.get(r);void 0===n?(t=Yt(),e.set(r,t)):t=n}}const s=t;let l;if(t.s===Kt?l=t.v:(l=e.apply(null,arguments),o++),s.s=Kt,n){var u,c;const e=null!==(u=null===(c=i)||void 0===c?void 0:c.deref())&&void 0!==u?u:i;null!=e&&n(e,l)&&(l=e,0!==o&&o--);i="object"===typeof l&&null!==l||"function"===typeof l?new Wt(l):l}return s.v=l,l}return a.clearCache=()=>{r=Yt(),a.resetResultsCount()},a.resultsCount=()=>o,a.resetResultsCount=()=>{o=0},a}function Zt(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];const i="function"===typeof e?{memoize:e,memoizeOptions:r}:e;return function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];let n,o=0,a=0,s={},l=t.pop();"object"===typeof l&&(s=l,l=t.pop()),qt(l,"createSelector expects an output function after the inputs, but received: [".concat(typeof l,"]"));const u={...i,...s},{memoize:c,memoizeOptions:f=[],argsMemoize:d=Xt,argsMemoizeOptions:h=[],devModeChecks:p={}}=u,m=Gt(f),g=Gt(h),A=Vt(t),y=c((function(){return o++,l.apply(null,arguments)}),...m);const v=d((function(){a++;const e=function(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}(A,arguments);return n=y.apply(null,e),n}),...g);return Object.assign(v,{resultFunc:l,memoizedResultFunc:y,dependencies:A,depen
2dencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>n,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:c,argsMemoize:d})}}function $t(e){return"Minified Redux error #".concat(e,"; visit https://redux.js.org/Errors?code=").concat(e," for the full message or use the non-minified dev environment for full errors. ")}var er=(()=>"function"===typeof Symbol&&Symbol.observable||"@@observable")(),tr=()=>Math.random().toString(36).substring(7).split("").join("."),rr={INIT:"@@redux/INIT".concat(tr()),REPLACE:"@@redux/REPLACE".concat(tr()),PROBE_UNKNOWN_ACTION:()=>"@@redux/PROBE_UNKNOWN_ACTION".concat(tr())};function nr(e){if("object"!==typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function ir(e,t,r){if("function"!==typeof e)throw new Error($t(2));if("function"===typeof t&&"function"===typeof r||"function"===typeof r&&"function"===typeof arguments[3])throw new Error($t(0));if("function"===typeof t&&"undefined"===typeof r&&(r=t,t=void 0),"undefined"!==typeof r){if("function"!==typeof r)throw new Error($t(1));return r(ir)(e,t)}let n=e,i=t,o=new Map,a=o,s=0,l=!1;function u(){a===o&&(a=new Map,o.forEach(((e,t)=>{a.set(t,e)})))}function c(){if(l)throw new Error($t(3));return i}function f(e){if("function"!==typeof e)throw new Error($t(4));if(l)throw new Error($t(5));let t=!0;u();const r=s++;return a.set(r,e),function(){if(t){if(l)throw new Error($t(6));t=!1,u(),a.delete(r),o=null}}}function d(e){if(!nr(e))throw new Error($t(7));if("undefined"===typeof e.type)throw new Error($t(8));if("string"!==typeof e.type)throw new Error($t(17));if(l)throw new Error($t(9));try{l=!0,i=n(i,e)}finally{l=!1}return(o=a).forEach((e=>{e()})),e}d({type:rr.INIT});return{dispatch:d,subscribe:f,getState:c,replaceReducer:function(e){if("function"!==typeof e)throw new Error($t(10));n=e,d({type:rr.REPLACE})},[er]:function(){const e=f;return{subscribe(t){if("object"!==typeof t||null===t)throw new Error($t(11));function r(){const e=t;e.next&&e.next(c())}r();return{unsubscribe:e(r)}},[er](){return this}}}}}function or(e){const t=Object.keys(e),r={};for(let a=0;a<t.length;a++){const n=t[a];0,"function"===typeof e[n]&&(r[n]=e[n])}const n=Object.keys(r);let i;try{!function(e){Object.keys(e).forEach((t=>{const r=e[t];if("undefined"===typeof r(void 0,{type:rr.INIT}))throw new Error($t(12));if("undefined"===typeof r(void 0,{type:rr.PROBE_UNKNOWN_ACTION()}))throw new Error($t(13))}))}(r)}catch(o){i=o}return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(i)throw i;let o=!1;const a={};for(let i=0;i<n.length;i++){const s=n[i],l=r[s],u=e[s],c=l(u,t);if("undefined"===typeof c){t&&t.type;throw new Error($t(14))}a[s]=c,o=o||c!==u}return o=o||n.length!==Object.keys(e).length,o?a:e}}function ar(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?e=>e:1===t.length?t[0]:t.reduce(((e,t)=>function(){return e(t(...arguments))}))}function sr(e){return t=>{let{dispatch:r,getState:n}=t;return t=>i=>"function"===typeof i?i(r,n,e):t(i)}}var lr=sr(),ur=sr,cr=(function(){const e=Zt(...arguments)}(Xt),"undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"===typeof arguments[0]?ar:ar.apply(null,arguments)});"undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function fr(e,t){function r(){if(t){let r=t(...arguments);if(!r)throw new Error(Pr(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:arguments.length<=0?void 0:arguments[0]}}return r.toString=()=>"".concat(e),r.type=e,r.match=t=>function(e){return nr(e)&&"type"in e&&"string"===typeof e.type}(t)&&t.type===e,r}var dr=class e extends Array{constructor(){super(...arguments),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return super.concat.apply(this,t)}prepend(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return 1===r.length&&Array.isArray(r[0])?new e(...r[0].concat(this)):new e(...r.concat(this))}};function hr(e){return at(e)?Ht(e,(()=>{})):e}function pr(e,t,r){if(e.has(t)){let n=e.get(t);return r.update&&(n=r.update(n,t,e),e.set(t,n)),n}if(!r.insert)throw new Error(Pr(10));const n=r.insert(t,e);return e.set(t,n),n}var mr="RTK_autoBatch",gr=e=>t=>{setTimeout(t,e)},Ar="undefined"!==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:gr(10),yr=e=>function(t){const{autoBatch:r=!0}=null!==t&&void 0!==t?t:{};let n=new dr(e);return r&&n.push(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{type:"raf"};return t=>function(){const r=t(...arguments);let n=!0,i=!1,o=!1;const a=new Set,s="tick"===e.type?queueMicrotask:"raf"===e.type?Ar:"callback"===e.type?e.queueNotification:gr(e.timeout),l=()=>{o=!1,i&&(i=!1,a.forEach((e=>e())))};return Object.assign({},r,{subscribe(e){const t=r.subscribe((()=>n&&e()));return a.add(e),()=>{t(),a.delete(e)}},dispatch(e){try{var t;return n=!(null!==e&&void 0!==e&&null!==(t=e.meta)&&void 0!==t&&t[mr]),i=!n,i&&(o||(o=!0,s(l))),r.dispatch(e)}finally{n=!0}}})}}("object"===typeof r?r:void 0)),n};function vr(e){const t={},r=[];let n;const i={addCase(e,r){const n="string"===typeof e?e:e.type;if(!n)throw new Error(Pr(28));if(n in t)throw new Error(Pr(29));return t[n]=r,i},addMatcher:(e,t)=>(r.push({matcher:e,reducer:t}),i),addDefaultCase:e=>(n=e,i)};return e(i),[t,r,n]}var br=Symbol.for("rtk-slice-createasyncthunk");function wr(e,t){return"".concat(e,"/").concat(t)}function Er(e,t,r,n){function i(i){let o=r.call(e,i);"undefined"===typeof o&&n&&(o=e.getInitialState());for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];return t(o,...s)}return i.unwrapped=t,i}var kr=function(){var e;let{creators:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=null===t||void 0===t||null===(e=t.asyncThunk)||void 0===e?void 0:e[br];return function(e){const{name:t,reducerPath:n=t}=e;if(!t)throw new Error(Pr(11));const i=("function"===typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name](){return e(...arguments)}}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},o=Object.keys(i),a={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){const r="string"===typeof e?e:e.type;if(!r)throw new Error(Pr(12));if(r in a.sliceCaseReducersByType)throw new Error(Pr(13));return a.sliceCaseReducersByType[r]=t,s},addMatcher:(e,t)=>(a.sliceMatchers.push({matcher:e,reducer:t}),s),exposeAction:(e,t)=>(a.actionCreators[e]=t,s),exposeCaseReducer:(e,t)=>(a.sliceCaseReducersByName[e]=t,s)};function l(){const[t={},r=[],n]="function"===typeof e.extraReducers?vr(e.extraReducers):[e.extraReducers],i={...t,...a.sliceCaseReducersByType};return function(e,t){let r,[n,i,o]=vr(t);if(function(e){return"function"===typeof e}(e))r=()=>hr(e());else{const t=hr(e);r=()=>t}function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r(),t=arguments.length>1?arguments[1]:void 0,a=[n[t.type],...i.filter((e=>{let{matcher:r}=e;return r(t)})).map((e=>{let{reducer:t}=e;return t}))];return 0===a.filter((e=>!!e)).length&&(a=[o]),a.reduce(((e,r)=>{if(r){if(ot(e)){const n=r(e,t);return void 0===n?e:n}if(at(e))return Ht(e,(e=>r(e,t)));{const n=r(e,t);if(void 0===n){if(null===e)return e;throw new Error(Pr(9))}return n}}return e}),e)}return a.getInitialState=r,a}(e.initialState,(e=>{for(let t in i)e.addCase(t,i[t]);for(let t of a.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of r)e.addMatcher(t.matcher,t.reducer);n&&e.addDefaultCase(n)}))}
2o.forEach((n=>{const o=i[n],a={reducerName:n,type:wr(t,n),createNotation:"function"===typeof e.reducers};!function(e){return"asyncThunk"===e._reducerDefinitionType}(o)?function(e,t,r){let n,i,{type:o,reducerName:a,createNotation:s}=e;if("reducer"in t){if(s&&!function(e){return"reducerWithPrepare"===e._reducerDefinitionType}(t))throw new Error(Pr(17));n=t.reducer,i=t.prepare}else n=t;r.addCase(o,n).exposeCaseReducer(a,n).exposeAction(a,i?fr(o,i):fr(o))}(a,o,s):function(e,t,r,n){let{type:i,reducerName:o}=e;if(!n)throw new Error(Pr(18));const{payloadCreator:a,fulfilled:s,pending:l,rejected:u,settled:c,options:f}=t,d=n(i,a,f);r.exposeAction(o,d),s&&r.addCase(d.fulfilled,s);l&&r.addCase(d.pending,l);u&&r.addCase(d.rejected,u);c&&r.addMatcher(d.settled,c);r.exposeCaseReducer(o,{fulfilled:s||Sr,pending:l||Sr,rejected:u||Sr,settled:c||Sr})}(a,o,s,r)}));const u=e=>e,c=new WeakMap;let f;const d={name:t,reducerPath:n,reducer:(e,t)=>(f||(f=l()),f(e,t)),actions:a.actionCreators,caseReducers:a.sliceCaseReducersByName,getInitialState:()=>(f||(f=l()),f.getInitialState()),getSelectors(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u;const r=pr(c,this,{insert:()=>new WeakMap});return pr(r,t,{insert:()=>{const r={};for(const[i,o]of Object.entries(null!==(n=e.selectors)&&void 0!==n?n:{})){var n;r[i]=Er(this,o,t,this!==d)}return r}})},selectSlice(e){let t=e[this.reducerPath];return"undefined"===typeof t&&this!==d&&(t=this.getInitialState()),t},get selectors(){return this.getSelectors(this.selectSlice)},injectInto(e){let{reducerPath:t,...r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=null!==t&&void 0!==t?t:this.reducerPath;return e.inject({reducerPath:n,reducer:this.reducer},r),{...this,reducerPath:n}}};return d}}();function Sr(){}var xr="listener",Nr="completed",Cr="cancelled";"task-".concat(Cr),"task-".concat(Nr),"".concat(xr,"-").concat(Cr),"".concat(xr,"-").concat(Nr);var{assign:_r}=Object,Mr="listenerMiddleware";fr("".concat(Mr,"/add")),fr("".concat(Mr,"/removeAll")),fr("".concat(Mr,"/remove"));Symbol.for("rtk-state-proxy-original");function Pr(e){return"Minified Redux Toolkit error #".concat(e,"; visit https://redux-toolkit.js.org/Errors?code=").concat(e," for the full message or use the non-minified dev environment for full errors. ")}const Tr=kr({name:"cart",initialState:{cart:JSON.parse(localStorage.getItem("cart"))||[]},reducers:{addToCart:(e,t)=>{const{productId:r,quantity:n}=t.payload,i=e.cart.find((e=>e.productId===r));if(i)return i.quantity+=n,localStorage.setItem("cart",JSON.stringify(e.cart)),e;const o={...e,cart:[...e.cart,{productId:r,quantity:n||1,deliveryOptionId:"1"}]};return localStorage.setItem("cart",JSON.stringify(o.cart)),o},removeFromCart:(e,t)=>{const{productId:r}=t.payload,n={...e,cart:e.cart.filter((e=>e.productId!==r))};return localStorage.setItem("cart",JSON.stringify(n.cart)),n},updateDeliveryOption:(e,t)=>{const{productId:r,deliveryOptionId:n}=t.payload,i={...e,cart:e.cart.map((e=>e.productId===r?{...e,deliveryOptionId:n}:e))};return localStorage.setItem("cart",JSON.stringify(i.cart)),i}}}),{addToCart:Rr,removeFromCart:Ir,updateDeliveryOption:Or}=Tr.actions,Br=e=>e.cart.cart,Lr=e=>e.cart.cart.reduce(((e,t)=>e+t.quantity),0),Fr=Tr.reducer,Dr=[{id:"e43638ce-6aa0-4b85-b27f-e1d07eb678c6",image:r.p+"static/media/athletic-cotton-socks-6-pairs.3b8d823113325a49f943.jpg",name:"Black and Gray Athletic Cotton Socks - 6 Pairs",rating:{stars:4.5,count:87},priceCents:1090,keywords:["socks","sports","apparel"]},{id:"15b6fc6f-327a-4ec4-896f-486349e85a3d",image:r.p+"static/media/intermediate-composite-basketball.f2b4426438b4bee74020.jpg",name:"Intermediate Size Basketball",rating:{stars:4,count:127},priceCents:2095,keywords:["sports","basketballs"]},{id:"83d4ca15-0f35-48f5-b7a3-1ea210004f2e",image:r.p+"static/media/adults-plain-cotton-tshirt-2-pack-teal.2404d03c4b220e5a70d0.jpg",name:"Adults Plain Cotton T-Shirt - 2 Pack",rating:{stars:4.5,count:56},priceCents:799,keywords:["tshirts","apparel","mens"],type:"clothing",sizeChartLink:"images/clothing-size-chart.png"},{id:"54e0eccd-8f36-462b-b68a-8182611d9add",image:r.p+"static/media/black-2-slot-toaster.51f3fe0c5ea4397b8266.jpg",name:"2 Slot Toaster - Black",rating:{stars:5,count:2197},priceCents:1899,keywords:["toaster","kitchen","appliances"]},{id:"3ebe75dc-64d2-4137-8860-1f5a963e534b",image:r.p+"static/media/6-piece-white-dinner-plate-set.7d34f463407310e92edf.jpg",name:"6 Piece White Dinner Plate Set",rating:{stars:4,count:37},priceCents:2067,keywords:["plates","kitchen","dining"]},{id:"8c9c52b5-5a19-4bcb-a5d1-158a74287c53",image:r.p+"static/media/6-piece-non-stick-baking-set.ba06436c053a5047d54b.webp",name:"6-Piece Nonstick, Carbon Steel Oven Bakeware Baking Set",rating:{stars:4.5,count:175},priceCents:3499,keywords:["kitchen","cookware"]},{id:"dd82ca78-a18b-4e2a-9250-31e67412f98d",image:r.p+"static/media/plain-hooded-fleece-sweatshirt-yellow.1e8cacc23476ec2156e3.jpg",name:"Plain Hooded Fleece Sweatshirt",rating:{stars:4.5,count:317},priceCents:2400,keywords:["hoodies","sweaters","apparel"]},{id:"77919bbe-0e56-475b-adde-4f24dfed3a04",image:r.p+"static/media/luxury-tower-set-6-piece.82e06ed6e76a70d4c44c.jpg",name:"Luxury Towel Set - Graphite Gray",rating:{stars:4.5,count:144},priceCents:3599,keywords:["bathroom","washroom","restroom","towels","bath towels"]},{id:"3fdfe8d6-9a15-4979-b459-585b0d0545b9",image:r.p+"static/media/liquid-laundry-detergent-plain.840bdd807e54363a3c81.jpg",name:"Liquid Laundry Detergent, 110 Loads, 82.5 Fl Oz",rating:{stars:4.5,count:305},priceCents:2899,keywords:["bathroom","cleaning"]},{id:"58b4fc92-e98c-42aa-8c55-b6b79996769a",image:r.p+"static/media/knit-athletic-sneakers-gray.ba1f925e06e4130f
2cdd9.jpg",name:"Waterproof Knit Athletic Sneakers - Gray",rating:{stars:4,count:89},priceCents:3390,keywords:["shoes","running shoes","footwear"]},{id:"5968897c-4d27-4872-89f6-5bcb052746d7",image:r.p+"static/media/women-chiffon-beachwear-coverup-black.642812ea71060862fe4a.jpg",name:"Women's Chiffon Beachwear Cover Up - Black",rating:{stars:4.5,count:235},priceCents:2070,keywords:["robe","swimsuit","swimming","bathing","apparel"],type:"clothing",sizeChartLink:"images/clothing-size-chart.png"},{id:"aad29d11-ea98-41ee-9285-b916638cac4a",image:r.p+"static/media/round-sunglasses-black.f80404d24a1d01701106.jpg",name:"Round Sunglasses",rating:{stars:4.5,count:30},priceCents:1560,keywords:["accessories","shades"]},{id:"04701903-bc79-49c6-bc11-1af7e3651358",image:r.p+"static/media/women-beach-sandals.756353be6d9909b2a962.jpg",name:"Women's Two Strap Buckle Sandals - Tan",rating:{stars:4.5,count:562},priceCents:2499,keywords:["footwear","sandals","womens","beach","summer"]},{id:"901eb2ca-386d-432e-82f0-6fb1ee7bf969",image:r.p+"static/media/blackout-curtain-set-beige.50addfdc2aa3cb1942c5.webp",name:"Blackout Curtains Set 4-Pack - Beige",rating:{stars:4.5,count:232},priceCents:4599,keywords:["bedroom","curtains","home"]},{id:"82bb68d7-ebc9-476a-989c-c78a40ee5cd9",image:r.p+"static/media/men-slim-fit-summer-shorts-gray.bd962e98467b903199dd.jpg",name:"Men's Slim-Fit Summer Shorts",rating:{stars:4,count:160},priceCents:1699,keywords:["shorts","apparel","mens"]},{id:"c2a82c5e-aff4-435f-9975-517cfaba2ece",image:r.p+"static/media/electric-glass-and-steel-hot-water-kettle.96255a99190ae5f869db.webp",name:"Electric Glass and Steel Hot Tea Water Kettle - 1.7-Liter",rating:{stars:5,count:846},priceCents:3074,keywords:["water boiler","appliances","kitchen"]},{id:"6b07d4e7-f540-454e-8a1e-363f25dbae7d",image:r.p+"static/media/facial-tissue-2-ply-18-boxes.9fb872414044d9d94425.jpg",name:"Ultra Soft Tissue 2-Ply - 18 Box",rating:{stars:4,count:99},priceCents:2374,keywords:["kleenex","tissues","kitchen","tissues box","napkins"]},{id:"a82c6bac-3067-4e68-a5ba-d827ac0be010",image:r.p+"static/media/straw-sunhat.b0d950a9ee176cf8845c.webp",name:"Straw Lifeguard Sun Hat",rating:{stars:4,count:215},priceCents:2200,keywords:["hats","straw hats","summer","apparel"]},{id:"e4f64a65-1377-42bc-89a5-e572d19252e2",image:r.p+"static/media/sky-flower-stud-earrings.21a7b17055f2f3b98019.webp",name:"Sterling Silver Sky Flower Stud Earrings",rating:{stars:4.5,count:52},priceCents:1799,keywords:["jewelry","accessories","womens"]},{id:"b0f17cc5-8b40-4ca5-9142-b61fe3d98c85",image:r.p+"static/media/women-stretch-popover-hoodie-black.f4deeb3b5e37a4eb8e04.jpg",name:"Women's Stretch Popover Hoodie",rating:{stars:4.5,count:2465},priceCents:1374,keywords:["hooded","hoodies","sweaters","womens","apparel"],type:"clothing",sizeChartLink:"images/clothing-size-chart.png"},{id:"a93a101d-79ef-4cf3-a6cf-6dbe532a1b4a",image:r.p+"static/media/bathroom-rug.114b5d22437f6fd3677c.jpg",name:"Bathroom Bath Rug Mat 20 x 31 Inch - Grey",rating:{stars:4.5,count:119},priceCents:1250,keywords:["bathmat","bathroom","home"]},{id:"4f4fbcc2-4e72-45cc-935c-9e13d79cc57f",image:r.p+"static/media/women-knit-ballet-flat-black.b591379dce7d626dbe8e.jpg",name:"Women's Knit Ballet Flat",rating:{stars:4,count:326},priceCents:2640,keywords:["shoes","flats","womens","footwear"]},{id:"8b5a2ee1-6055-422a-a666-b34ba28b76d4",image:r.p+"static/media/men-golf-polo-t-shirt-blue.3c1f9390f9163dbca3b8.jpg",name:"Men's Regular-Fit Quick-Dry Golf Polo Shirt",rating:{stars:4.5,count:2556},priceCents:1599,keywords:["tshirts","shirts","apparel","mens"],type:"clothing",sizeChartLink:"images/clothing-size-chart.png"},{id:"b86ddc8b-3501-4b17-9889-a3bad6fb585f",image:r.p+"static/media/trash-can-with-foot-pedal-50-liter.084051b55aac111cb111.jpg",name:"Trash Can with Foot Pedal - Brushed Stainless Steel",rating:{stars:4.5,count:2286},priceCents:8300,keywords:["garbage","bins","cans","kitchen"]},{id:"19c6a64a-5463-4d45-9af8-e41140a4100c",image:r.p+"static/media/duvet-cover-set-blue-twin.173637baefd0356460bf.jpg",name:"Duvet Cover Set with Zipper Closure",rating:{stars:4,count:456},priceCents:2399,keywords:["bedroom","bed sheets","sheets","covers","home"]},{id:"d2785924-743d-49b3-8f03-ec258e640503",image:r.p+"static/media/women-chunky-beanie-gray.33b1fc1e3ca44ee81b8f.webp",name:"Women's Chunky Cable Beanie - Gray",rating:{stars:5,count:83},priceCents:1250,keywords:["hats","winter hats","beanies","tuques","apparel","womens"]},{id:"ee1f7c56-f977-40a4-9642-12ba5072e2b0",image:r.p+"static/media/men-chino-pants-beige.691fa1d0ccb4b9bef962.jpg",name:"Men's Classic-fit Pleated Chino Pants",rating:{stars:4.5,count:9017},priceCents:2290,keywords:["pants","apparel","mens"]},{id:"1c079479-8586-494f-ab53-219325432536",image:r.p+"static/media/men-athletic-shoes-green.0663f1f2ac69fb2049f4.jpg",name:"Men's Athletic Sneaker",rating:{stars:4,count:229},priceCents:3890,keywords:["shoes","running shoes","footwear","mens"]},{id:"4df68c27-fd59-4a6a-bbd1-e754ddb6d53c",image:r.p+"static/media/men-navigator-sunglasses-brown.ca069c028efdc8042d73.jpg",name:"Men's Navigator Sunglasses Pilot",rating:{stars:3.5,count:42},priceCents:1690,keywords:["sunglasses","glasses","accessories","shades"]},{id:"4e37dd03-3b23-4bc6-9ff8-44e112a92c64",image:r.p+"static/media/non-stick-cooking-set-15-pieces.96b9bee0e9551aa567d2.webp",name:"Non-Stick Cookware Set, Pots, Pans and Utensils - 15 Pieces",rating:{stars:4.5,count:511},priceCents:6797,keywords:["cooking set","kitchen"]},{id:"a434b69f-1bc1-482d-9ce7-cd7f4a66ce8d",image:r.p+"static/media/vanity-mirror-silver.4f37cf513f687a5b0dd9.jpg",name:"Vanity Mirror with Heavy Base - Chrome",rating:{stars:4.5,count:130},priceCents:1649,keywords:["bathroom","washroom","mirrors","home"]},{id:"a45cfa0a-66d6-4dc7-9475-e2b01595f7d7",image:r.p+"static/media/women-french-terry-fleece-jogger-camo.99614baa6606ba49f9f6.jpg",name:"Women's Fleece Jogger Sweatpant",rating:{stars:4.5,count:248},priceCents:2400,keywords:["pants","sweatpants","jogging","apparel","womens"]},{id:"d339adf3-e004-4c20-a120-40e8874c66cb",image:r.p+"static/media/double-elongated-twist-french-wire-earrings.4c0d35d90c3f99c88468.webp",name:"Double Oval Twist French Wire Earrings - Gold",rating:{stars:4.5,count:117},priceCents:2400,keywords:["accessories","womens"]},{id:"d37a651a-d501-483b-aae6-a9659b0757a0",image:r.p+"static/media/round-airtight-food-storage-containers.dcabb1a7e8edcd34317e.jpg",name:"Round Airtight Food Storage Containers - 5 Piece",rating:{stars:4,count:126},priceCents:2899,keywords:["boxes","food containers","kitchen"]},{id:"0d7f9afa-2efe-4fd9-b0fd-ba5663e0a524",image:r.p+"static/media/coffeemaker-with-glass-carafe-black.2d2644dabbf60b46ba83.jpg",name:"Coffeemaker with Glass Carafe and Reusable Filter - 25 Oz, Black",rating:{stars:4.5,count:1211},priceCents:2250,keywords:["coffeemakers","kitchen","appliances"]},{id:"02e3a47e-dd68-467e-9f71-8bf6f723fdae",image:r.p+"static/media/blackout-curtains-black.7f1434c1501703cc2604.jpg",name:"Blackout Curtains Set 42 x 84-Inch - Black, 2 Panels",rating:{stars:4.5,count:363},priceCents:3099,keywords:["bedroom","home"]},{id:"8a53b080-6d40-4a65-ab26-b24ecf700bce",image:r.p+"static/media/cotton-bath-towels-teal.127d1936b475ae67d444.webp",name:"100% Cotton Bath Towels - 2 Pack, Light Teal",rating:{stars:4.5,count:93},priceCents:2110,keywords:["bathroom","home","towels"]},{id:"10ed8504-57db-433c-b0a3-fc71a35c88a1",image:r.p+"static/media/knit-athletic-sneakers-pink.33f1359f30b903bcdf7a.webp",name:"Waterproof Knit Athletic Sneakers - Pink",rating:{stars:4,count:89},priceCents:3390,keywords:["shoes","running shoes","footwear","womens"]},{id:"77a845b1-16ed-4eac-bdf9-5b591882113d",image:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAA4ODw0PDRIRDhIPEhESFhoTDxIVHSQhGh8YIxwcFiMcGB8YFyAcHyUdIx8oMikwKCVDMyw5HSwuTzVQQlc6NUwBCREPERUWERMTFhYTFRoWLR8VEzUgISQWMA0kExojGhskEhodIBIbJxswDigTDTYlLiAXLRoVExcjGhEfITcjJf/CABEIAbQBtAMBIgACEQEDEQH/xAAwAAEAAQUBAAAAAAAAAAAAAAAABQECAwQGBwEBAQEBAAAAAAAAAAAAAAAAAAECA//aAAwDAQACEAMQAAAA9JAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUtMVunfubFuuNi7U3Cy/X1yaUYtVKgAAAAAAAAAAAAAAAAAAAxEfyGLmtzpb+aynR0iYQ7G3kNpektzbKR9JSpFWylpFTsXsnabUFO5oQ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CWAXmOwaviVjflgHvUq3l9pgrU4fDWGaTlPWgqcXZiHlBMmcefhI4fl8iOEHw+7Iha+L/ACQCPvR2PVgAUfzveIY+slUuUWjwalwiIAIUHCcGHoe5C+BAr6dDNI4af5lpPAmLwI0zhSPeSb8zZV8sK3S9pB+zf/z7tJbeG8J4P2oeQMMw+PdPkn9+Z7DUF2F6H8w/rH5h/SPzAekc/wA0U6l2avjSBa7clYg+5tLM8cr7QEpduq6qxQtly5cBiVoaiuMEou0arIXNmPAD0BRVjujwdYoOXo5jbWtWlxCckjXgh9xKIbWWi4Ll9nZqBYWVZcdpZoLVZQatM7oda9mAKJeG8gy92FflXLDWMbCUf0a9B282aVKxUxGum9tMAljcuXtcbG+ENqC7lGVxzeo+SJjHlFfLKgG0WkJzRnc+ho7z8X5M5yK7+Edjsds/5ErovwvorQX4QnQTerP8oM7HbP8AlepvVob1jg2CZD0aANaNYnBGIBy8/wA8wT7iO0fVYTmXNrwGZfj32jAjQ29JhuGtrK9J01t4+Pm6oI4TisDaNpQFTQC1eQSlegP4jni4/GnpV55fGSB9gAPB6a3t7z045zWZRYLZsKoaqOgvBcineTl+SVOnpHwpKUTgHwPUtXuu/dYYvkNj4sPlNq/+goM//8QAFREBAQAAAAAAAAAAAAAAAAAAgAH/2gAIAQIBCT8APdSv/8QAFBEBAAAAAAAAAAAAAAAAAAAAkP/aAAgBAwEJPwBEP//Z",name:"Countertop Blender - 64oz, 1400 Watts",rating:{stars:4,count:3},priceCents:10747,keywords:["food blenders","kitchen","appliances"]},{id:"36c64692-677f-4f58-b5ec-0dc2cf109e27",image:r.p+"static/media/floral-mixing-bowl-set.54371efc2fecc939892d.jpg",name:"10-Piece Mixing Bowl Set with Lids - Floral",rating:{stars:5,count:679},priceCents:3899,keywords:["mixing bowls","baking","cookware","kitchen"]},{id:"aaa65ef3-8d6f-4eb3-bc9b-a6ea49047d8f",image:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAA4ODw0PDRI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ZasQOzHQBHK8o194S/It/z7IS/mvwo+MV/Vz05P6ljTPXq2sd0dAC3l6B3cTfWgZbZaqlCUt2aix9TIdrm1X2I78qLKCPH3PjAvBp+xE4eEmqYdL6PXbvE2/fTiiYC1mcfUxN24lFrGNwxI0Ct8zD1ZYS/wBH38Y+4lmVMh7ziXxM9Ki3tm8VMTioFFu5+kqNscRjcdSsebuNOXHEu+Vyth3W+k09f1fGPOhV67mgzTMQ6b3McRviZJqa3VxYrxLrmWzmbbdTL7czfkmBNEeHjgnG/eW1KvT0P9X4y3DmfU/yGofwYB0DlryjTdsQcRaDBbLLpI0ucRDiNx1UwAEcuIr16EcJWawHnDjsr7HPsJjKA9Ax4yPaGVKEEZvJ/DLMS5wXmc8EeUd28QvKxykwmatZfPEaC5r1Y79IqwqtDdwErRp8uA/vxsChcyth2Y7gRjfS5rrmrevNk3DljSo0Rly+eXBEizmx/BtgeLXbv27Hj7vJFdCej/se35H+JNVe6v8AjHsvmP8A9Z/sTxcnks/3IMbVMfH3IJqjzWXbGIOX6BX9sLLHrv8AlT8fh/2g/wD/xAAZEQACAwEAAAAAAAAAAAAAAAABEQAQgKD/2gAIAQIBCT8AwEzBT5O//8QAGREAAgMBAAAAAAAAAAAAAAAAAREAEICg/9oACAEDAQk/AMBIQ0uTv//Z",name:"2-Ply Kitchen Paper Towels - 30 Pack",rating:{stars:4.5,count:1045},priceCents:5799,keywords:["kitchen","kitchen towels","tissues"]},{id:"bc2847e9-5323-403f-b7cf-57fde044a955",image:r.p+"static/media/men-cozy-fleece-zip-up-hoodie-red.49b25ec8da6331f4d9fc.jpg",name:"Men's Full-Zip Hooded Fleece Sweatshirt",rating:{stars:4.5,count:3157},priceCents:2400,keywords:["sweaters","hoodies","apparel","mens"]}];const Ur=function(e){return(e/100).toFixed(2)};var jr=r(184);const zr=(0,e.createContext)(null),Qr=t=>{let{children:r}=t;const[n,i]=(0,e.useState)(function(){const e=localStorage.getItem("user");return JSON.parse(e)||null}());return(0,e.useEffect)((()=>{const e=JSON.stringify(n);localStorage.setItem("user",e),console.log("User updated:",n)}),[n]),(0,jr.jsx)(zr.Provider,{value:{user:n,login:(e,t)=>{const r={username:e,password:t,email:"[email protected]"};i(r),console.log("Logged in:",r)},logout:()=>{localStorage.removeItem("user"),i(null),console.log("Logged out")},signUp:(e,t,r)=>{const n={username:e,password:t,email:r};i(n),console.log("Signed up:",n)}},children:r})},Hr=()=>(0,e.useContext)(zr),qr=r.p+"static/media/kwuva-logo-white.035feda78a368be6b578.png",Gr=r.p+"static/media/kwuva-mobile-logo-white.e4ea71ac7d1e7b8bd945.png",Vr=()=>{const t=N(),r=g(Lr),{user:n,logout:i}=Hr(),[o,a]=(0,e.useState)(""),[s,l]=(0,e.useState)(1),u=we(),c=()=>{const e=JSON.parse(localStorage.getItem("cart"))||[];let t=0;e.forEach((e=>{t+=e.quantity})),console.log("Total Quantity:",t)},f=()=>o&&o.length>0?"Connected: ".concat(o.substring(0,6)," ...").concat(o.substring(38)):"Connect Wallet",d=e=>{a(e),f()},h=e=>{const r=s[e]||1;n?((e,r)=>{t(Rr({productId:e,quantity:r||1,deliveryOptionId:"1"})),c()})(e,r):u("/login")};return(0,e.useEffect)((()=>{const e=()=>{c()};return window.addEventListener("storage",e),()=>{window.removeEventListener("storage",e)}}),[]),(0,e.useEffect)((()=>{c()}),[]),(0,e.useEffect)((()=>{(async()=>
2{if("undefined"!==typeof window&&"undefined"!==typeof window.ethereum)try{const e=await window.ethereum.request({method:"eth_accounts"});e.length>0?d(e[0]):console.log("Connect to MetaMask using Connect Wallet")}catch(e){console.error(e.message)}else console.log("Please install MetaMask")})(),(async()=>{"undefined"!==typeof window&&"undefined"!==typeof window.ethereum?window.ethereum.on("accountsChanged",(e=>{d(e[0]),console.log(e[0])})):d("")})()}),[]),(0,e.useEffect)((()=>{console.log("Cart Quantity Changed:",r)}),[r]),(0,jr.jsxs)("div",{children:[(0,jr.jsxs)("header",{className:"kwuva-header",children:[(0,jr.jsxs)(Ye,{to:"/",className:"header-link",children:[(0,jr.jsx)("img",{className:"kwuva-logo",src:qr,alt:"Logo"}),(0,jr.jsx)("img",{className:"kwuva-mobile-logo",src:Gr,alt:"Mobile Logo"})]}),(0,jr.jsxs)("div",{className:"kwuva-header-middle-section",children:[(0,jr.jsx)("input",{className:"search-bar",type:"text",placeholder:"Search"}),(0,jr.jsx)("button",{type:"submit",className:"search-button",children:(0,jr.jsx)("img",{className:"search-icon",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAtCAYAAAA6GuKaAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAafSURBVHgB1VlLTFxVGD53XsA8CgyBoXQQsLRDgTA2rVGMSX0kJvW5URddVY3GR9JEY9QYF41xY2NiYqobF+1GY9wYjdFoX+ykcQAxnUqbqUIzDAjD+zEDDHf6fTP3Ti8TYO6dR2i/5M95zJzv/865/zn3nHOFuAshCWOQ2tvbrTabzS7Lsk2SJKvJZLIkk0lkpSTqEsivoW4VWL569eoa2iRFkaFXtAli7UjdZWVlHRD1GPJ+WAusHlYGW4GNw/6DDaIDF1dWVoLIT0P8MlJZFAm5REu7d++uqKur80Lo07DjqOtgJ0RuUGQQ4s/Cfp6YmAiPjY3FRBFGfjvRpra2tuqKioonIfYtlO/XKTYbFP8nhH8Zi8V+GRoamhEFjrp5i3oLBDdC8AkI/gDl/ULpYDIdwHFk52GzGluALcFW+V/8zcJAV9p5kX3YYrFUVFVVhaLR6GIhwjcbaVNzc/P+ysrKd+HkGMoVqlh0YBHJKIq9iUTiAmJ2cHFxcTQcDi97vV670+ncg5j3o93j+M+DELoHI+xUxBMxtPt2bm7us+Hh4ev5Cs8WLfn9/gaIew/2qioY4KoQRvo9/J/p6+u7JraPTenQoUM+tHkJ/38eKUfapgpHR76GnRocHIyIPGJ8Q3j4fD4XlrNXIPg1FCtZB4crcHgF6ccDAwOnMZkm9BDjf1FYT319/TW0b0RVA1ILUivSe5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/NzsYd8Xi8GW26sCHitdlhcTt+t4IMnh9gn9bW1g709PTompBbLmeY7bsweY7xdgkjvg+jlfeazRO9SE88cthFgcK3umFKTUycpP/yeDxBCOd1ArevVuUaQI9QHowplgfa8yh+hfwU8ryt0g4AN1Bt5NcbKmaxPXgFMIw4/w1xPgSHu+CAFzgqqaRc86qnd05QCl1EPoKq32GfYFk7jZvTXtxzXGF72IFChBt921kOHjy4H4IeRf4w9xDKJt7OEOBJG5OLV718UV3C5Q7PmBseN1aLZlydvY24P47irix+XaFSkj1zLhQqPFd4lAS4NZ2trq4eyjdUdkQ0UYjwHRNN5Ct8R0UT+QjfcdGEHuG8H8GdyRD2Pf/fEaIJHcL3YIswEolEevP58FMy4CPSMD6JfI7l7qxIf9PJgN95lO3Azsd0NrJGnBeTVhgveH5E+g2/MNxxogmNcH795dv2J1R/0d/f/4+4W3ELGvFuNHl/wvwAAAAASUVORK5CYII=",alt:"Search Icon"})})]}),(0,jr.jsx)("div",{className:"loginpage",children:n?(0,jr.jsx)("button",{type:"submit",className:"sign-btn",onClick:()=>{i(),u("/login")},children:"Log Out"}):(0,jr.jsx)(Ye,{to:"/login",className:"sign-btn",children:"Sign In"})}),n?(0,jr.jsx)(jr.Fragment,{children:(0,jr.jsxs)(Ye,{to:n?"/checkout":"/login",className:"cart-link header-link ".concat(n?"":"disabled-link"),onClick:()=>{u(n?"/checkout":"/login")},children:[(0,jr.jsx)("img",{className:"cart-icon",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA2CAYAAABp26+xAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAQGSURBVHgB7ZtNSBVRGIa/q5amlVJRFtgPZUk/WkQbF+2KSKIoqaQgIyEKoZYtWliLaJfLNu0LowwKXBgRQREUERb9bYLK7Fe7qXVLPb1fM0MmM/eemTlz5lzvfeDhLubIOXPue78zZ2YkyhOIhBCiAp9XKRzf4NFEItFLuQImb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xJtjOhH58QNwYsZ2gxLtDGlHz3Yq90K2CG8V7t2OJNCoKsfrQjr+qoWnhbWYzp+4fC7sK6tWuF8UoCOfuLaOcyF/H+tXKC5Jn2FvbiiT5Iiou7nDywXgldRVkwdAAAAAElFTkSuQmCC",alt:"Cart Icon"}),(0,jr.jsx)("div",{className:"cart-quantity js-cart-quantity",children:r}),(0,jr.jsx)("div",{className:"cart-text",children:"Cart"})]})}):null,(0,jr.jsx)("div",{children:(0,jr.jsx)("button",{type:"submit",className:"sign-btn",id:"connectWalletButton",onClick:()=>{(async()=>{if("undefined"!==typeof window&&"undefined"!==typeof window.ethereum)try{const e=await window.ethereum.request({method:"eth_requestAccounts"});d(e[0]),console.log(e[0])}catch(e){console.error(e.message)}else console.log("Please install MetaMask")})()},children:(0,jr.jsx)("span",{id:"walletStatus",children:f()})})})]}),(0,jr.jsx)("div",{className:"main",children:(0,jr.jsx)("div",{className:"products-grid js-products-grid",children:Dr.map((e=>(0,jr.jsxs)("div",{className:"product-container",children:[(0,jr.jsx)("div",{className:"product-image-container",children:(0,jr.jsx)("img",{className:"product-image",src:e.image,alt:"Product"})}),(0,jr.jsx)("div",{className:"product-name limit-text-to-2-lines",children:e.name}),(0,jr.jsx)("div",{className:"product-rating-container",children:(0,jr.jsx)("div",{className:"product-rating-count link-primary",children:e.rating.count})}),(0,jr.jsxs)("div",{className:"product-price",children:["$TLOS",Ur(e.priceCents)]}),(0,jr.jsx)("div",{className:"product-quantity-container",children:(0,jr.jsx)("select",{onChange:t=>((e,t)=>{const r=parseInt(t.target.value,10);l((t=>({...t,[e]:0!==r?r:1})))})(e.id,t),value:s[e.id]||1,children:[...Array(10).keys()].map((e=>(0,jr.jsx)("option",{value:e+1,children:e+1},e)))})}),(0,jr.jsx)("div",{className:"product-spacer"}),(0,jr.jsxs)("div",{className:"added-to-cart",children:[(0,jr.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAAAACXBIWXM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ccHlg+0CLAks1LhhuqfNW7BezNOsP+jCmdpzxwLTgxZYXD6VXy2nQ21TQoE2cBtny5OwJeJoW5K+VGdLyc0VK3KIVMOvF4qIXhH4M18vVSSEh1lTu4m6Vv2/wcQaPUQJs+/zTU0TX9k5e3F3ICPr3lP1KX24dQR/1UmL4DuWV50Lln/cPbxpDVN4dAAAAABJRU5ErkJggg==",alt:"Checkmark"}),"Added"]}),(0,jr.jsx)("button",{type:"submit",className:"add-to-cart-button button-primary js-add-to-cart",onClick:()=>h(e.id),"data-product-id":e.id,children:"Add to Cart"})]},e.id)))})})]})},Wr=()=>(0,jr.jsxs)("div",{className:"wrapper",children:[(0,jr.jsx)(Vr,{}),(0,jr.jsx)(Be,{})]}),Jr=()=>{var t;const[r,n]=(0,e.useState)(""),[i,o]=(0,e.useState)(""),[a,s]=(0,e.useState)(""),[l,u]=(0,e.useState)(!0),c=(null===(t=ve().state)||void 0===t?void 0:t.pathname)||"/",f=we(),{login:d,signUp:h}=Hr();return(0,jr.jsx)("div",{className:"container",children:(0,jr.jsxs)("div",{className:"form-box",children:[(0,jr.jsx)("h1",{id:"title",children:l?"Sign In":"Sign Up"}),(0,jr.jsxs)("form",{onSubmit:l?e=>{e.preventDefault(),r&&i&&(console.log("Signing in:",{username:r,password:i}),d(r,i),n(""),o(""),f(c,{replace:!0}))}:e=>{e.preventDefault(),r&&i&&a&&(console.log("Signing up:",{username:r,password:i,email:a}),h(r,i,a),n(""),o(""),s(""),f(c,{replace:!0}))},children:[(0,jr.jsxs)("div",{className:"input-group",children:[(0,jr.jsxs)("div",{className:"input-field",children:[(0,jr.jsx)("i",{className:"fa-solid fa-user"}),(0,jr.jsx)("input",{type:"text",placeholder:"Username",value:r,onChange:e=>n(e.target.value)})]}),(0,jr.jsxs)("div",{className:"input-field",children:[(0,jr.jsx)("i",{className:"fa-solid fa-lock"}),(0,jr.jsx)("input",{type:"password",placeholder:"Password",value:i,onChange:e=>o(e.target.value)})]}),!l&&(0,jr.jsxs)("div",{className:"input-field",children:[(0,jr.jsx)("i",{className:"fa-solid fa-envelope"}),(0,jr.jsx)("input",{type:"email",placeholder:"Email",value:a,onChange:e=>s(e.target.value)})]})]}),(0,jr.jsx)("div",{className:"btn-field",children:(0,jr.jsx)("button",{type:"submit",children:l?"Sign In":"Sign Up"})}),(0,jr.jsxs)("p",{className:l?"signup-text":"signin-text",children:[l?"Don't have an account?":"Already have an account?"," ",(0,jr.jsx)("button",{type:"submit",onClick:l?()=>{u(!1)}:()=>{u(!0)},className:"orange-button",children:l?"Sign Up":"Sign In"})]})]})]})})};let Kr=!1,Yr=!1;const Xr={debug:1,default:2,info:2,warning:3,error:4,off:5};let Zr=Xr.default,$r=null;const en=function(){try{const e=[];
2if(["NFD","NFC","NFKD","NFKC"].forEach((t=>{try{if("test"!=="test".normalize(t))throw new Error("bad normalize")}catch(r){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(e){return e.message}return null}();var tn,rn;!function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"}(tn||(tn={})),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"}(rn||(rn={}));const nn="0123456789abcdef";class on{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,t){const r=e.toLowerCase();null==Xr[r]&&this.throwArgumentError("invalid log level name","logLevel",e),Zr>Xr[r]||console.log.apply(console,t)}debug(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this._log(on.levels.DEBUG,t)}info(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this._log(on.levels.INFO,t)}warn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this._log(on.levels.WARNING,t)}makeError(e,t,r){if(Yr)return this.makeError("censored error",t,{});t||(t=on.errors.UNKNOWN_ERROR),r||(r={});const n=[];Object.keys(r).forEach((e=>{const t=r[e];try{if(t instanceof Uint8Array){let r="";for(let e=0;e<t.length;e++)r+=nn[t[e]>>4],r+=nn[15&t[e]];n.push(e+"=Uint8Array(0x"+r+")")}else n.push(e+"="+JSON.stringify(t))}catch(a){n.push(e+"="+JSON.stringify(r[e].toString()))}})),n.push("code=".concat(t)),n.push("version=".concat(this.version));const i=e;let o="";switch(t){case rn.NUMERIC_FAULT:{o="NUMERIC_FAULT";const t=e;switch(t){case"overflow":case"underflow":case"division-by-zero":o+="-"+t;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result"}break}case rn.CALL_EXCEPTION:case rn.INSUFFICIENT_FUNDS:case rn.MISSING_NEW:case rn.NONCE_EXPIRED:case rn.REPLACEMENT_UNDERPRICED:case rn.TRANSACTION_REPLACED:case rn.UNPREDICTABLE_GAS_LIMIT:o=t}o&&(e+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),n.length&&(e+=" ("+n.join(", ")+")");const a=new Error(e);return a.reason=i,a.code=t,Object.keys(r).forEach((function(e){a[e]=r[e]})),a}throwError(e,t,r){throw this.makeError(e,t,r)}throwArgumentError(e,t,r){return this.throwError(e,on.errors.INVALID_ARGUMENT,{argument:t,value:r})}assert(e,t,r,n){e||this.throwError(t,r,n)}assertArgument(e,t,r,n){e||this.throwArgumentError(t,r,n)}checkNormalize(e){null==e&&(e="platform missing String.prototype.normalize"),en&&this.throwError("platform missing String.prototype.normalize",on.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:en})}checkSafeUint53(e,t){"number"===typeof e&&(null==t&&(t="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(t,on.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,on.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,t,r){r=r?": "+r:"",e<t&&this.throwError("missing argument"+r,on.errors.MISSING_ARGUMENT,{count:e,expectedCount:t}),e>t&&this.throwError("too many arguments"+r,on.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})}checkNew(e,t){e!==Object&&null!=e||this.throwError("missing new",on.errors.MISSING_NEW,{name:t.name})}checkAbstract(e,t){e===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",on.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):e!==Object&&null!=e||this.throwError("missing new",on.errors.MISSING_NEW,{name:t.name})}static globalLogger(){return $r||($r=new on("logger/5.7.0")),$r}static setCensorship(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",on.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),Kr){if(!e)return;this.globalLogger().throwError("error censorship permanent",on.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}Yr=!!e,Kr=!!t}static setLogLevel(e){const t=Xr[e.toLowerCase()];null!=t?Zr=t:on.globalLogger().warn("invalid log level - "+e)}static from(e){return new on(e)}}on.errors=rn,on.levels=tn;var an=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{l(n.next(e))}catch(t){o(t)}}function s(e){try{l(n.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))};const sn=new on("properties/5.7.0");function ln(e,t,r){Object.defineProperty(e,t,{enumerable:!0,value:r,writable:!1})}function un(e,t){for(let r=0;r<32;r++){if(e[t])return e[t];if(!e.prototype||"object"!==typeof e.prototype)break;e=Object.getPrototypeOf(e.prototype).constructor}return null}function cn(e){return an(this,void 0,void 0,(function*(){const t=Object.keys(e).map((t=>{const r=e[t];return Promise.resolve(r).then((e=>({key:t,value:e})))}));return(yield Promise.all(t)).reduce(((e,t)=>(e[t.key]=t.value,e)),{})}))}function fn(e){const t={};for(const r in e)t[r]=e[r];return t}const dn={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function hn(e){if(void 0===e||null===e||dn[typeof e])return!0;
vendor: 5,539 bytes, line 2
2if(Array.isArray(e)||"object"===typeof e){if(!Object.isFrozen(e))return!1;const r=Object.keys(e);for(let n=0;n<r.length;n++){let i=null;try{i=e[r[n]]}catch(t){continue}if(!hn(i))return!1}return!0}return sn.throwArgumentError("Cannot deepCopy ".concat(typeof e),"object",e)}function pn(e){if(hn(e))return e;if(Array.isArray(e))return Object.freeze(e.map((e=>mn(e))));if("object"===typeof e){const t={};for(const r in e){const n=e[r];void 0!==n&&ln(t,r,mn(n))}return t}return sn.throwArgumentError("Cannot deepCopy ".concat(typeof e),"object",e)}function mn(e){return pn(e)}class gn{constructor(e){for(const t in e)this[t]=mn(e[t])}}const An="providers/5.7.2";var yn=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{l(n.next(e))}catch(t){o(t)}}function s(e){try{l(n.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))};const vn=new on("abstract-signer/5.7.0"),bn=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],wn=[on.errors.INSUFFICIENT_FUNDS,on.errors.NONCE_EXPIRED,on.errors.REPLACEMENT_UNDERPRICED];class En{constructor(){vn.checkAbstract(new.target,En),ln(this,"_isSigner",!0)}getBalance(e){return yn(this,void 0,void 0,(function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),e)}))}getTransactionCount(e){return yn(this,void 0,void 0,(function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),e)}))}estimateGas(e){return yn(this,void 0,void 0,(function*(){this._checkProvider("estimateGas");const t=yield cn(this.checkTransaction(e));return yield this.provider.estimateGas(t)}))}call(e,t){return yn(this,void 0,void 0,(function*(){this._checkProvider("call");const r=yield cn(this.checkTransaction(e));return yield this.provider.call(r,t)}))}sendTransaction(e){return yn(this,void 0,void 0,(function*(){this._checkProvider("sendTransaction");const t=yield this.populateTransaction(e),r=yield this.signTransaction(t);return yield this.provider.sendTransaction(r)}))}getChainId(){return yn(this,void 0,void 0,(function*(){this._checkProvider("getChainId");return(yield this.provider.getNetwork()).chainId}))}getGasPrice(){return yn(this,void 0,void 0,(function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()}))}getFeeData(){return yn(this,void 0,void 0,(function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()}))}resolveName(e){return yn(this,void 0,void 0,(function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(e)}))}checkTransaction(e){for(const r in e)-1===bn.indexOf(r)&&vn.throwArgumentError("invalid transaction key: "+r,"transaction",e);const t=fn(e);return null==t.from?t.from=this.getAddress():t.from=Promise.all([Promise.resolve(t.from),this.getAddress()]).then((t=>(t[0].toLowerCase()!==t[1].toLowerCase()&&vn.throwArgumentError("from address mismatch","transaction",e),t[0]))),t}populateTransaction(e){return yn(this,void 0,void 0,(function*(){const t=yield cn(this.checkTransaction(e));null!=t.to&&(t.to=Promise.resolve(t.to).then((e=>yn(this,void 0,void 0,(function*(){if(null==e)return null;const t=yield this.resolveName(e);return null==t&&vn.throwArgumentError("provided ENS name resolves to null","tx.to",e),t})))),t.to.catch((e=>{})));const r=null!=t.maxFeePerGas||null!=t.maxPriorityFeePerGas;if(null==t.gasPrice||2!==t.type&&!r?0!==t.type&&1!==t.type||!r||vn.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",e):vn.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",e),2!==t.type&&null!=t.type||null==t.maxFeePerGas||null==t.maxPriorityFeePerGas)if(0===t.type||1===t.type)null==t.gasPrice&&(t.gasPrice=this.getGasPrice());else{const e=yield this.getFeeData();if(null==t.type)if(null!=e.maxFeePerGas&&null!=e.maxPriorityFeePerGas)if(t.type=2,null!=t.gasPrice){const e=t.gasPrice;delete t.gasPrice,t.maxFeePerGas=e,t.maxPriorityFeePerGas=e}else null==t.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null==t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas);else null!=e.gasPrice?(r&&vn.throwError("network does not support EIP-1559",on.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==t.gasPrice&&(t.gasPrice=e.gasPrice),t.type=0):vn.throwError("failed to get consistent fee data",on.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"});else 2===t.type&&(null==t.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null==t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas))}else t.type=2;return null==t.nonce&&(t.nonce=this.getTransactionCount("pending")),null==t.gasLimit&&(t.gasLimit=this.estimateGas(t).catch((e=>{if(wn.indexOf(e.code)>=0)throw e;return vn.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",on.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,tx:t})}))),null==t.chainId?t.chainId=this.getChainId():t.chainId=Promise.all([Promise.resolve(t.chainId),this.getChainId()]).then((t=>(0!==t[1]&&t[0]!==t[1]&&vn.throwArgumentError("chainId address mismatch","transaction",e),t[0]))),yield cn(t)}))}_checkProvider(e){this.provider||vn.throwError("missing provider",on.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}static isSigner(e){return!(!e||!e._isSigner)}}
2class kn extends En{constructor(e,t){super(),ln(this,"address",e),ln(this,"provider",t||null)}getAddress(){return Promise.resolve(this.address)}_fail(e,t){return Promise.resolve().then((()=>{vn.throwError(e,on.errors.UNSUPPORTED_OPERATION,{operation:t})}))}signMessage(e){return this._fail("VoidSigner cannot sign messages","signMessage")}signTransaction(e){return this._fail("VoidSigner cannot sign transactions","signTransaction")}_signTypedData(e,t,r){return this._fail("VoidSigner cannot sign typed data","signTypedData")}connect(e){return new kn(this.address,e)}}var Sn=r(518),xn=r.n(Sn);const Nn=new on("bytes/5.7.0");function Cn(e){return!!e.toHexString}function _n(e){return e.slice||(e.slice=function(){const t=Array.prototype.slice.call(arguments);return _n(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function Mn(e){return Bn(e)&&!(e.length%2)||Tn(e)}function Pn(e){return"number"===typeof e&&e==e&&e%1===0}function Tn(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"===typeof e)return!1;if(!Pn(e.length)||e.length<0)return!1;for(let t=0;t<e.length;t++){const r=e[t];if(!Pn(r)||r<0||r>=256)return!1}return!0}function Rn(e,t){if(t||(t={}),"number"===typeof e){Nn.checkSafeUint53(e,"invalid arrayify value");const t=[];for(;e;)t.unshift(255&e),e=parseInt(String(e/256));return 0===t.length&&t.push(0),_n(new Uint8Array(t))}if(t.allowMissingPrefix&&"string"===typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),Cn(e)&&(e=e.toHexString()),Bn(e)){let r=e.substring(2);r.length%2&&("left"===t.hexPad?r="0"+r:"right"===t.hexPad?r+="0":Nn.throwArgumentError("hex data is odd-length","value",e));const n=[];for(let e=0;e<r.length;e+=2)n.push(parseInt(r.substring(e,e+2),16));return _n(new Uint8Array(n))}return Tn(e)?_n(new Uint8Array(e)):Nn.throwArgumentError("invalid arrayify value","value",e)}function In(e){const t=e.map((e=>Rn(e))),r=t.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(r);return t.reduce(((e,t)=>(n.set(t,e),e+t.length)),0),_n(n)}function On(e){let t=Rn(e);if(0===t.length)return t;let r=0;for(;r<t.length&&0===t[r];)r++;return r&&(t=t.slice(r)),t}function Bn(e,t){return!("string"!==typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))&&(!t||e.length===2+2*t)}const Ln="0123456789abcdef";function Fn(e,t){if(t||(t={}),"number"===typeof e){Nn.checkSafeUint53(e,"invalid hexlify value");let t="";for(;e;)t=Ln[15&e]+t,e=Math.floor(e/16);return t.length?(t.length%2&&(t="0"+t),"0x"+t):"0x00"}if("bigint"===typeof e)return(e=e.toString(16)).length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&"string"===typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),Cn(e))return e.toHexString();if(Bn(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":Nn.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(Tn(e)){let t="0x";for(let r=0;r<e.length;r++){let n=e[r];t+=Ln[(240&n)>>4]+Ln[15&n]}return t}return Nn.throwArgumentError("invalid hexlify value","value",e)}function Dn(e){if("string"!==typeof e)e=Fn(e);else if(!Bn(e)||e.length%2)return null;return(e.length-2)/2}function Un(e,t,r){return"string"!==typeof e?e=Fn(e):(!Bn(e)||e.length%2)&&Nn.throwArgumentError("invalid hexData","value",e),t=2+2*t,null!=r?"0x"+e.substring(t,2+2*r):"0x"+e.substring(t)}function jn(e){let t="0x";return e.forEach((e=>{t+=Fn(e).substring(2)})),t}function zn(e){const t=function(e){"string"!==typeof e&&(e=Fn(e));Bn(e)||Nn.throwArgumentError("invalid hex string","value",e);e=e.substring(2);let t=0;for(;t<e.length&&"0"===e[t];)t++;return"0x"+e.substring(t)}(Fn(e,{hexPad:"left"}));return"0x"===t?"0x0":t}function Qn(e,t){for("string"!==typeof e?e=Fn(e):Bn(e)||Nn.throwArgumentError("invalid hex string","value",e),e.length>2*t+2&&Nn.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function Hn(e){const t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(Mn(e)){let r=Rn(e);64===r.length?(t.v=27+(r[32]>>7),r[32]&=127,t.r=Fn(r.slice(0,32)),t.s=Fn(r.slice(32,64))):65===r.length?(t.r=Fn(r.slice(0,32)),t.s=Fn(r.slice(32,64)),t.v=r[64]):Nn.throwArgumentError("invalid signature string","signature",e),t.v<27&&(0===t.v||1===t.v?t.v+=27:Nn.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(r[32]|=128),t._vs=Fn(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,null!=t._vs){const r=function(e,t){(e=Rn(e)).length>t&&Nn.throwArgumentError("value out of range","value",arguments[0]);
vendor: 9,022 bytes, line 2
2const r=new Uint8Array(t);return r.set(e,t-e.length),_n(r)}(Rn(t._vs),32);t._vs=Fn(r);const n=r[0]>=128?1:0;null==t.recoveryParam?t.recoveryParam=n:t.recoveryParam!==n&&Nn.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),r[0]&=127;const i=Fn(r);null==t.s?t.s=i:t.s!==i&&Nn.throwArgumentError("signature v mismatch _vs","signature",e)}if(null==t.recoveryParam)null==t.v?Nn.throwArgumentError("signature missing v and recoveryParam","signature",e):0===t.v||1===t.v?t.recoveryParam=t.v:t.recoveryParam=1-t.v%2;else if(null==t.v)t.v=27+t.recoveryParam;else{const r=0===t.v||1===t.v?t.v:1-t.v%2;t.recoveryParam!==r&&Nn.throwArgumentError("signature recoveryParam mismatch v","signature",e)}null!=t.r&&Bn(t.r)?t.r=Qn(t.r,32):Nn.throwArgumentError("signature missing or invalid r","signature",e),null!=t.s&&Bn(t.s)?t.s=Qn(t.s,32):Nn.throwArgumentError("signature missing or invalid s","signature",e);const r=Rn(t.s);r[0]>=128&&Nn.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(r[0]|=128);const n=Fn(r);t._vs&&(Bn(t._vs)||Nn.throwArgumentError("signature invalid _vs","signature",e),t._vs=Qn(t._vs,32)),null==t._vs?t._vs=n:t._vs!==n&&Nn.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t.yParityAndS=t._vs,t.compact=t.r+t.yParityAndS.substring(2),t}const qn="bignumber/5.7.0";var Gn=xn().BN;const Vn=new on(qn),Wn={},Jn=9007199254740991;let Kn=!1;class Yn{constructor(e,t){e!==Wn&&Vn.throwError("cannot call constructor directly; use BigNumber.from",on.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return Zn($n(this).fromTwos(e))}toTwos(e){return Zn($n(this).toTwos(e))}abs(){return"-"===this._hex[0]?Yn.from(this._hex.substring(1)):this}add(e){return Zn($n(this).add($n(e)))}sub(e){return Zn($n(this).sub($n(e)))}div(e){return Yn.from(e).isZero()&&ei("division-by-zero","div"),Zn($n(this).div($n(e)))}mul(e){return Zn($n(this).mul($n(e)))}mod(e){const t=$n(e);return t.isNeg()&&ei("division-by-zero","mod"),Zn($n(this).umod(t))}pow(e){const t=$n(e);return t.isNeg()&&ei("negative-power","pow"),Zn($n(this).pow(t))}and(e){const t=$n(e);return(this.isNegative()||t.isNeg())&&ei("unbound-bitwise-result","and"),Zn($n(this).and(t))}or(e){const t=$n(e);return(this.isNegative()||t.isNeg())&&ei("unbound-bitwise-result","or"),Zn($n(this).or(t))}xor(e){const t=$n(e);return(this.isNegative()||t.isNeg())&&ei("unbound-bitwise-result","xor"),Zn($n(this).xor(t))}mask(e){return(this.isNegative()||e<0)&&ei("negative-width","mask"),Zn($n(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&ei("negative-width","shl"),Zn($n(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&ei("negative-width","shr"),Zn($n(this).shrn(e))}eq(e){return $n(this).eq($n(e))}lt(e){return $n(this).lt($n(e))}lte(e){return $n(this).lte($n(e))}gt(e){return $n(this).gt($n(e))}gte(e){return $n(this).gte($n(e))}isNegative(){return"-"===this._hex[0]}isZero(){return $n(this).isZero()}toNumber(){try{return $n(this).toNumber()}catch(e){ei("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(e){}return Vn.throwError("this platform does not support BigInt",on.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?Kn||(Kn=!0,Vn.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?Vn.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",on.errors.UNEXPECTED_ARGUMENT,{}):Vn.throwError("BigNumber.toString does not accept parameters",on.errors.UNEXPECTED_ARGUMENT,{})),$n(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof Yn)return e;if("string"===typeof e)return e.match(/^-?0x[0-9a-f]+$/i)?new Yn(Wn,Xn(e)):e.match(/^-?[0-9]+$/)?new Yn(Wn,Xn(new Gn(e))):Vn.throwArgumentError("invalid BigNumber string","value",e);if("number"===typeof e)return e%1&&ei("underflow","BigNumber.from",e),(e>=Jn||e<=-Jn)&&ei("overflow","BigNumber.from",e),Yn.from(String(e));const t=e;if("bigint"===typeof t)return Yn.from(t.toString());if(Tn(t))return Yn.from(Fn(t));if(t)if(t.toHexString){const e=t.toHexString();if("string"===typeof e)return Yn.from(e)}else{let e=t._hex;if(null==e&&"BigNumber"===t.type&&(e=t.hex),"string"===typeof e&&(Bn(e)||"-"===e[0]&&Bn(e.substring(1))))return Yn.from(e)}return Vn.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!(!e||!e._isBigNumber)}}function Xn(e){if("string"!==typeof e)return Xn(e.toString(16));if("-"===e[0])return"-"===(e=e.substring(1))[0]&&Vn.throwArgumentError("invalid hex","value",e),"0x00"===(e=Xn(e))?e:"-"+e;if("0x"!==e.substring(0,2)&&(e="0x"+e),"0x"===e)return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&"0x00"===e.substring(0,4);)e="0x"+e.substring(4);return e}function Zn(e){return Yn.from(Xn(e))}function $n(e){const t=Yn.from(e).toHexString();return"-"===t[0]?new Gn("-"+t.substring(3),16):new Gn(t.substring(2),16)}function ei(e,t,r){const n={fault:e,operation:t};return null!=r&&(n.value=r),Vn.throwError(e,on.errors.NUMERIC_FAULT,n)}var ti=r(7898),ri=r.n(ti);function ni(e){return"0x"+ri().keccak_256(Rn(e))}const ii=new on("rlp/5.7.0");function oi(e){const t=[];for(;e;)t.unshift(255&e),e>>=8;return t}function ai(e,t,r){let n=0;for(let i=0;i<r;i++)n=256*n+e[t+i];return n}function si(e){if(Array.isArray(e)){let t=[];if(e.forEach((function(e){t=t.concat(si(e))})),t.length<=55)return t.unshift(192+t.length),t;const r=oi(t.length);return r.unshift(247+r.length),r.concat(t)}Mn(e)||ii.throwArgumentError("RLP object must be BytesLike","object",e);const t=Array.prototype.slice.call(Rn(e));if(1===t.length&&t[0]<=127)return t;if(t.length<=55)return t.unshift(128+t.length),t;const r=oi(t.length);return r.unshift(183+r.length),r.concat(t)}function li(e){return Fn(si(e))}function ui(e,t,r,n){const i=[];for(;r<t+1+n;){const o=ci(e,r);i.push(o.result),(r+=o.consumed)>t+1+n&&ii.throwError("child data too short",on.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:i}}function ci(e,t){if(0===e.length&&ii.throwError("data too short",on.errors.BUFFER_OVERRUN,{}),e[t]>=248){const r=e[t]-247;t+1+r>e.length&&ii.throwError("data short segment too short",on.errors.BUFFER_OVERRUN,{});const n=ai(e,t+1,r);return t+1+r+n>e.length&&ii.throwError("data long segment too short",on.errors.BUFFER_OVERRUN,{}),ui(e,t,t+1+r,r+n)}if(e[t]>=192){const r=e[t]-192;return t+1+r>e.length&&ii.throwError("data array too short",on.errors.BUFFER_OVERRUN,{}),ui(e,t,t+1,r)}if(e[t]>=184){const r=e[t]-183;t+1+r>e.length&&ii.throwError("data array too short",on.errors.BUFFER_OVERRUN,{});const n=ai(e,t+1,r);t+1+r+n>e.length&&ii.throwError("data array too short",on.errors.BUFFER_OVERRUN,{});return{consumed:1+r+n,result:Fn(e.slice(t+1+r,t+1+r+n))}}if(e[t]>=128){const r=e[t]-128;t+1+r>e.length&&ii.throwError("data too short",on.errors.BUFFER_OVERRUN,{});return{consumed:1+r,result:Fn(e.slice(t+1,t+1+r))}}return{consumed:1,result:Fn(e[t])}}function fi(e){const t=Rn(e),r=ci(t,0);return r.consumed!==t.length&&ii.throwArgumentError("invalid rlp data","data",e),r.result}const di=new on("address/5.7.0");function hi(e){Bn(e,20)||di.throwArgumentError("invalid address","address",e);const t=(e=e.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let i=0;i<40;i++)r[i]=t[i].charCodeAt(0);const n=Rn(ni(r));for(let i=0;i<40;i+=2)n[i>>1]>>4>=8&&(t[i]=t[i].toUpperCase()),(15&n[i>>1])>=8&&(t[i+1]=t[i+1].toUpperCase());return"0x"+t.join("")}const pi={};for(let r=0;r<10;r++)pi[String(r)]=String(r);for(let r=0;r<26;r++)pi[String.fromCharCode(65+r)]=String(10+r);const mi=Math.floor(function(e){return Math.log10?Math.log10(e):Math.log(e)/Math.LN10}(9007199254740991));function gi(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map((e=>pi[e])).join("");for(;t.length>=mi;){let e=t.substring(0,mi);t=parseInt(e,10)%97+t.substring(e.length)}let r=String(98-parseInt(t,10)%97);for(;r.length<2;)r="0"+r;return r}function Ai(e){let t=null;if("string"!==typeof e&&di.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),t=hi(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&di.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)!==gi(e)&&di.throwArgumentError("bad icap checksum","address",e),r=e.substring(4),t=new Gn(r,36).toString(16);t.length<40;)t="0"+t;t=hi("0x"+t)}else di.throwArgumentError("invalid address","address",e);var r;return t}function yi(e){let t=null;try{t=Ai(e.from)}catch(r){di.throwArgumentError("missing from address","transaction",e)}return Ai(Un(ni(li([t,On(Rn(Yn.from(e.nonce).toHexString()))])),12))}const vi="hash/5.7.0",bi=new on("strings/5.7.0");var wi,Ei;function ki(e,t,r,n,i){if(e===Ei.BAD_PREFIX||e===Ei.UNEXPECTED_CONTINUE){let e=0;
2for(let n=t+1;n<r.length&&r[n]>>6===2;n++)e++;return e}return e===Ei.OVERRUN?r.length-t-1:0}!function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"}(wi||(wi={})),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"}(Ei||(Ei={}));const Si=Object.freeze({error:function(e,t,r,n,i){return bi.throwArgumentError("invalid codepoint at offset ".concat(t,"; ").concat(e),"bytes",r)},ignore:ki,replace:function(e,t,r,n,i){return e===Ei.OVERLONG?(n.push(i),0):(n.push(65533),ki(e,t,r))}});function xi(e,t){null==t&&(t=Si.error),e=Rn(e);const r=[];let n=0;for(;n<e.length;){const i=e[n++];if(i>>7===0){r.push(i);continue}let o=null,a=null;if(192===(224&i))o=1,a=127;else if(224===(240&i))o=2,a=2047;else{if(240!==(248&i)){n+=t(128===(192&i)?Ei.UNEXPECTED_CONTINUE:Ei.BAD_PREFIX,n-1,e,r);continue}o=3,a=65535}if(n-1+o>=e.length){n+=t(Ei.OVERRUN,n-1,e,r);continue}let s=i&(1<<8-o-1)-1;for(let l=0;l<o;l++){let i=e[n];if(128!=(192&i)){n+=t(Ei.MISSING_CONTINUE,n,e,r),s=null;break}s=s<<6|63&i,n++}null!==s&&(s>1114111?n+=t(Ei.OUT_OF_RANGE,n-1-o,e,r,s):s>=55296&&s<=57343?n+=t(Ei.UTF16_SURROGATE,n-1-o,e,r,s):s<=a?n+=t(Ei.OVERLONG,n-1-o,e,r,s):r.push(s))}return r}function Ni(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wi.current;t!=wi.current&&(bi.checkNormalize(),e=e.normalize(t));let r=[];for(let n=0;n<e.length;n++){const t=e.charCodeAt(n);if(t<128)r.push(t);else if(t<2048)r.push(t>>6|192),r.push(63&t|128);else if(55296==(64512&t)){n++;const i=e.charCodeAt(n);if(n>=e.length||56320!==(64512&i))throw new Error("invalid utf-8 string");const o=65536+((1023&t)<<10)+(1023&i);r.push(o>>18|240),r.push(o>>12&63|128),r.push(o>>6&63|128),r.push(63&o|128)}else r.push(t>>12|224),r.push(t>>6&63|128),r.push(63&t|128)}return Rn(r)}function Ci(e,t){return xi(e,t).map((e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e))))).join("")}function _i(e){return ni(Ni(e))}var Mi=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{l(n.next(e))}catch(t){o(t)}}function s(e){try{l(n.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))};const Pi=new on(vi),Ti=new Uint8Array(32);Ti.fill(0);const Ri=Yn.from(-1),Ii=Yn.from(0),Oi=Yn.from(1),Bi=Yn.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");const Li=Qn(Oi.toHexString(),32),Fi=Qn(Ii.toHexString(),32),Di={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},Ui=["name","version","chainId","verifyingContract","salt"];function ji(e){return function(t){return"string"!==typeof t&&Pi.throwArgumentError("invalid domain value for ".concat(JSON.stringify(e)),"domain.".concat(e),t),t}}const zi={name:ji("name"),version:ji("version"),chainId:function(e){try{return Yn.from(e).toString()}catch(t){}return Pi.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",e)},verifyingContract:function(e){try{return Ai(e).toLowerCase()}catch(t){}return Pi.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){try{const t=Rn(e);if(32!==t.length)throw new Error("bad length");return Fn(t)}catch(t){}return Pi.throwArgumentError('invalid domain value "salt"',"domain.salt",e)}};function Qi(e){{const t=e.match(/^(u?)int(\d*)$/);if(t){const r=""===t[1],n=parseInt(t[2]||"256");(n%8!==0||n>256||t[2]&&t[2]!==String(n))&&Pi.throwArgumentError("invalid numeric width","type",e);const i=Bi.mask(r?n-1:n),o=r?i.add(Oi).mul(Ri):Ii;return function(t){const r=Yn.from(t);return(r.lt(o)||r.gt(i))&&Pi.throwArgumentError("value out-of-bounds for ".concat(e),"value",t),Qn(r.toTwos(256).toHexString(),32)}}}{const t=e.match(/^bytes(\d+)$/);if(t){const r=parseInt(t[1]);return(0===r||r>32||t[1]!==String(r))&&Pi.throwArgumentError("invalid bytes width","type",e),function(t){return Rn(t).length!==r&&Pi.throwArgumentError("invalid length for ".concat(e),"value",t),function(e){const t=Rn(e),r=t.length%32;return r?jn([t,Ti.slice(r)]):Fn(t)}(t)}}}switch(e){case"address":return function(e){return Qn(Ai(e),32)};case"bool":return function(e){return e?Li:Fi};case"bytes":return function(e){return ni(e)};case"string":return function(e){return _i(e)}}return null}function Hi(e,t){return"".concat(e,"(").concat(t.map((e=>{let{name:t,type:r}=e;return r+" "+t})).join(","),")")}class qi{constructor(e){ln(this,"types",Object.freeze(mn(e))),ln(this,"_encoderCache",{}),ln(this,"_types",{});const t={},r={},n={};Object.keys(e).forEach((e=>{t[e]={},r[e]=[],n[e]={}}));for(const o in e){const n={};
2e[o].forEach((i=>{n[i.name]&&Pi.throwArgumentError("duplicate variable name ".concat(JSON.stringify(i.name)," in ").concat(JSON.stringify(o)),"types",e),n[i.name]=!0;const a=i.type.match(/^([^\x5b]*)(\x5b|$)/)[1];a===o&&Pi.throwArgumentError("circular type reference to ".concat(JSON.stringify(a)),"types",e);Qi(a)||(r[a]||Pi.throwArgumentError("unknown type ".concat(JSON.stringify(a)),"types",e),r[a].push(o),t[o][a]=!0)}))}const i=Object.keys(r).filter((e=>0===r[e].length));0===i.length?Pi.throwArgumentError("missing primary type","types",e):i.length>1&&Pi.throwArgumentError("ambiguous primary types or unused types: ".concat(i.map((e=>JSON.stringify(e))).join(", ")),"types",e),ln(this,"primaryType",i[0]),function i(o,a){a[o]&&Pi.throwArgumentError("circular type reference to ".concat(JSON.stringify(o)),"types",e),a[o]=!0,Object.keys(t[o]).forEach((e=>{r[e]&&(i(e,a),Object.keys(a).forEach((t=>{n[t][e]=!0})))})),delete a[o]}(this.primaryType,{});for(const o in n){const t=Object.keys(n[o]);t.sort(),this._types[o]=Hi(o,e[o])+t.map((t=>Hi(t,e[t]))).join("")}}getEncoder(e){let t=this._encoderCache[e];return t||(t=this._encoderCache[e]=this._getEncoder(e)),t}_getEncoder(e){{const t=Qi(e);if(t)return t}const t=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(t){const e=t[1],r=this.getEncoder(e),n=parseInt(t[3]);return t=>{n>=0&&t.length!==n&&Pi.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t);let i=t.map(r);return this._types[e]&&(i=i.map(ni)),ni(jn(i))}}const r=this.types[e];if(r){const t=_i(this._types[e]);return e=>{const n=r.map((t=>{let{name:r,type:n}=t;const i=this.getEncoder(n)(e[r]);return this._types[n]?ni(i):i}));return n.unshift(t),jn(n)}}return Pi.throwArgumentError("unknown type: ".concat(e),"type",e)}encodeType(e){const t=this._types[e];return t||Pi.throwArgumentError("unknown type: ".concat(JSON.stringify(e)),"name",e),t}encodeData(e,t){return this.getEncoder(e)(t)}hashStruct(e,t){return ni(this.encodeData(e,t))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,t,r){if(Qi(e))return r(e,t);const n=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(n){const e=n[1],i=parseInt(n[3]);return i>=0&&t.length!==i&&Pi.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map((t=>this._visit(e,t,r)))}const i=this.types[e];return i?i.reduce(((e,n)=>{let{name:i,type:o}=n;return e[i]=this._visit(o,t[i],r),e}),{}):Pi.throwArgumentError("unknown type: ".concat(e),"type",e)}visit(e,t){return this._visit(this.primaryType,e,t)}static from(e){return new qi(e)}static getPrimaryType(e){return qi.from(e).primaryType}static hashStruct(e,t,r){return qi.from(t).hashStruct(e,r)}static hashDomain(e){const t=[];for(const r in e){const n=Di[r];n||Pi.throwArgumentError("invalid typed-data domain key: ".concat(JSON.stringify(r)),"domain",e),t.push({name:r,type:n})}return t.sort(((e,t)=>Ui.indexOf(e.name)-Ui.indexOf(t.name))),qi.hashStruct("EIP712Domain",{EIP712Domain:t},e)}static encode(e,t,r){return jn(["0x1901",qi.hashDomain(e),qi.from(t).hash(r)])}static hash(e,t,r){return ni(qi.encode(e,t,r))}static resolveNames(e,t,r,n){return Mi(this,void 0,void 0,(function*(){e=fn(e);const i={};e.verifyingContract&&!Bn(e.verifyingContract,20)&&(i[e.verifyingContract]="0x");const o=qi.from(t);o.visit(r,((e,t)=>("address"!==e||Bn(t,20)||(i[t]="0x"),t)));for(const e in i)i[e]=yield n(e);return e.verifyingContract&&i[e.verifyingContract]&&(e.verifyingContract=i[e.verifyingContract]),r=o.visit(r,((e,t)=>"address"===e&&i[t]?i[t]:t)),{domain:e,value:r}}))}static getPayload(e,t,r){qi.hashDomain(e);const n={},i=[];Ui.forEach((t=>{const r=e[t];null!=r&&(n[t]=zi[t](r),i.push({name:t,type:Di[t]}))}));const o=qi.from(t),a=fn(t);return a.EIP712Domain?Pi.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",t):a.EIP712Domain=i,o.encode(r),{types:a,domain:n,primaryType:o.primaryType,message:o.visit(r,((e,t)=>{if(e.match(/^bytes(\d*)/))return Fn(Rn(t));if(e.match(/^u?int/))return Yn.from(t).toString();switch(e){case"address":return t.toLowerCase();case"bool":return!!t;case"string":return"string"!==typeof t&&Pi.throwArgumentError("invalid string","value",t),t}return Pi.throwArgumentError("unsupported type","type",e)}))}}}const Gi=Yn.from(-1),Vi=Yn.from(0),Wi=Yn.from(1),Ji=Yn.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");var Ki=r(3125),Yi=r.n(Ki);"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof r.g?r.g:"undefined"!==typeof self&&self;function Xi(e,t,r){return r={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}((void 0===t||null===t)&&r.path)}},e(r,r.exports),r.exports}var Zi=$i;function $i(e,t){if(!e)throw new Error(t||"Assertion failed")}$i.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)};var eo=Xi((function(e,t){var r=t;function n(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",r=0;r<e.length;r++)t+=n(e[r].toString(16));return t}r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!==typeof e){for(var n=0;n<e.length;n++)r[n]=0|e[n];return r}if("hex"===t){(e=e.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(e="0"+e);for(n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16))}else for(n=0;n<e.length;n++){var i=e.charCodeAt(n),o=i>>8,a=255&i;o?r.push(o,a):r.push(a)}return r},r.zero2=n,r.toHex=i,r.encode=function(e,t){return"hex"===t?i(e):e}})),to=Xi((function(e,t){var r=t;r.assert=Zi,r.toArray=eo.toArray,r.zero2=eo.zero2,r.toHex=eo.toHex,r.encode=eo.encode,r.getNAF=function(e,t,r){var n=new Array(Math.max(e.bitLength(),r)+1);n.fill(0);for(var i=1<<t+1,o=e.clone(),a=0;a<n.length;a++){var s,l=o.andln(i-1);o.isOdd()?(s=l>(i>>1)-1?(i>>1)-l:l,o.isubn(s)):s=0,n[a]=s,o.iushrn(1)}return n},r.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n,i=0,o=0;e.cmpn(-i)>0||t.cmpn(-o)>0;){var a,s,l=e.andln(3)+i&3,u=t.andln(3)+o&3;3===l&&(l=-1),3===u&&(u=-1),a=0===(1&l)?0:3!==(n=e.andln(7)+i&7)&&5!==n||2!==u?l:-l,r[0].push(a),s=0===(1&u)?0:3!==(n=t.andln(7)+o&7)&&5!==n||2!==l?u:-u,r[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return r},r.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},r.parseBytes=function(e){return"string"===typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new(xn())(e,"hex","le")}})),ro=to.getNAF,no=to.getJSF,io=to.assert;function oo(e,t){this.type=e,this.p=new(xn())(t.p,16),this.red=t.prime?xn().red(t.prime):xn().mont(this.p),this.zero=new(xn())(0).toRed(this.red),this.one=new(xn())(1).toRed(this.red),this.two=new(xn())(2).toRed(this.red),this.n=t.n&&new(xn())(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var ao=oo;
vendor: 6,881 bytes, line 2
2function so(e,t){this.curve=e,this.type=t,this.precomputed=null}oo.prototype.point=function(){throw new Error("Not implemented")},oo.prototype.validate=function(){throw new Error("Not implemented")},oo.prototype._fixedNafMul=function(e,t){io(e.precomputed);var r=e._getDoubles(),n=ro(t,1,this._bitLength),i=(1<<r.step+1)-(r.step%2===0?2:1);i/=3;var o,a,s=[];for(o=0;o<n.length;o+=r.step){a=0;for(var l=o+r.step-1;l>=o;l--)a=(a<<1)+n[l];s.push(a)}for(var u=this.jpoint(null,null,null),c=this.jpoint(null,null,null),f=i;f>0;f--){for(o=0;o<s.length;o++)(a=s[o])===f?c=c.mixedAdd(r.points[o]):a===-f&&(c=c.mixedAdd(r.points[o].neg()));u=u.add(c)}return u.toP()},oo.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,o=ro(t,r,this._bitLength),a=this.jpoint(null,null,null),s=o.length-1;s>=0;s--){for(var l=0;s>=0&&0===o[s];s--)l++;if(s>=0&&l++,a=a.dblp(l),s<0)break;var u=o[s];io(0!==u),a="affine"===e.type?u>0?a.mixedAdd(i[u-1>>1]):a.mixedAdd(i[-u-1>>1].neg()):u>0?a.add(i[u-1>>1]):a.add(i[-u-1>>1].neg())}return"affine"===e.type?a.toP():a},oo.prototype._wnafMulAdd=function(e,t,r,n,i){var o,a,s,l=this._wnafT1,u=this._wnafT2,c=this._wnafT3,f=0;for(o=0;o<n;o++){var d=(s=t[o])._getNAFPoints(e);l[o]=d.wnd,u[o]=d.points}for(o=n-1;o>=1;o-=2){var h=o-1,p=o;if(1===l[h]&&1===l[p]){var m=[t[h],null,null,t[p]];0===t[h].y.cmp(t[p].y)?(m[1]=t[h].add(t[p]),m[2]=t[h].toJ().mixedAdd(t[p].neg())):0===t[h].y.cmp(t[p].y.redNeg())?(m[1]=t[h].toJ().mixedAdd(t[p]),m[2]=t[h].add(t[p].neg())):(m[1]=t[h].toJ().mixedAdd(t[p]),m[2]=t[h].toJ().mixedAdd(t[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],A=no(r[h],r[p]);for(f=Math.max(A[0].length,f),c[h]=new Array(f),c[p]=new Array(f),a=0;a<f;a++){var y=0|A[0][a],v=0|A[1][a];c[h][a]=g[3*(y+1)+(v+1)],c[p][a]=0,u[h]=m}}else c[h]=ro(r[h],l[h],this._bitLength),c[p]=ro(r[p],l[p],this._bitLength),f=Math.max(c[h].length,f),f=Math.max(c[p].length,f)}var b=this.jpoint(null,null,null),w=this._wnafT4;for(o=f;o>=0;o--){for(var E=0;o>=0;){var k=!0;for(a=0;a<n;a++)w[a]=0|c[a][o],0!==w[a]&&(k=!1);if(!k)break;E++,o--}if(o>=0&&E++,b=b.dblp(E),o<0)break;for(a=0;a<n;a++){var S=w[a];0!==S&&(S>0?s=u[a][S-1>>1]:S<0&&(s=u[a][-S-1>>1].neg()),b="affine"===s.type?b.mixedAdd(s):b.add(s))}}for(o=0;o<n;o++)u[o]=null;return i?b:b.toP()},oo.BasePoint=so,so.prototype.eq=function(){throw new Error("Not implemented")},so.prototype.validate=function(){return this.curve.validate(this)},oo.prototype.decodePoint=function(e,t){e=to.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1===2*r)return 6===e[0]?io(e[e.length-1]%2===0):7===e[0]&&io(e[e.length-1]%2===1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw new Error("Unknown point format")},so.prototype.encodeCompressed=function(e){return this.encode(e,!0)},so.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},so.prototype.encode=function(e,t){return to.encode(this._encode(t),e)},so.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},so.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},so.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)n=n.dbl();r.push(n)}return{step:e,points:r}},so.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},so.prototype._getBeta=function(){return null},so.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t};var lo=Xi((function(e){"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}})),uo=to.assert;function co(e){ao.call(this,"short",e),this.a=new(xn())(e.a,16).toRed(this.red),this.b=new(xn())(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}lo(co,ao);var fo=co;function ho(e,t,r,n){ao.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new(xn())(t,16),this.y=new(xn())(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function po(e,t,r,n){ao.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new(xn())(0)):(this.x=new(xn())(t,16),this.y=new(xn())(r,16),this.z=new(xn())(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}co.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r;if(e.beta)t=new(xn())(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(e.lambda)r=new(xn())(e.lambda,16);else{var i=this._getEndoRoots(this.n);0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(t))?r=i[0]:(r=i[1],uo(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:r,basis:e.basis?e.basis.map((function(e){return{a:new(xn())(e.a,16),b:new(xn())(e.b,16)}})):this._getEndoBasis(r)}}},co.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:xn().mont(e),r=new(xn())(2).toRed(t).redInvm(),n=r.redNeg(),i=new(xn())(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(i).fromRed(),n.redSub(i).fromRed()]},co.prototype._getEndoBasis=function(e){for(var t,r,n,i,o,a,s,l,u,c=this.n.ushrn(Math.floor(this.n.bitLength()/2)),f=e,d=this.n.clone(),h=new(xn())(1),p=new(xn())(0),m=new(xn())(0),g=new(xn())(1),A=0;0!==f.cmpn(0);){var y=d.div(f);l=d.sub(y.mul(f)),u=m.sub(y.mul(h));var v=g.sub(y.mul(p));if(!n&&l.cmp(c)<0)t=s.neg(),r=h,n=l.neg(),i=u;else if(n&&2===++A)break;s=l,d=f,f=l,m=h,h=u,g=p,p=v}o=l.neg(),a=u;var b=n.sqr().add(i.sqr());return o.sqr().add(a.sqr()).cmp(b)>=0&&(o=t,a=r),n.negative&&(n=n.neg(),i=i.neg()),o.negative&&(o=o.neg(),a=a.neg()),[{a:n,b:i}
vendor: 8,640 bytes, line 2
2,{a:o,b:a}]},co.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),l=i.mul(r.b),u=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:l.add(u).neg()}},co.prototype.pointFromX=function(e,t){(e=new(xn())(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},co.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},co.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var a=this._endoSplit(t[o]),s=e[o],l=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),l=l.neg(!0)),n[2*o]=s,n[2*o+1]=l,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var u=this._wnafMulAdd(1,n,i,2*o,r),c=0;c<2*o;c++)n[c]=null,i[c]=null;return u},lo(ho,ao.BasePoint),co.prototype.point=function(e,t,r){return new ho(this,e,t,r)},co.prototype.pointFromJSON=function(e,t){return ho.fromJSON(this,e,t)},ho.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},ho.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},ho.fromJSON=function(e,t,r){"string"===typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function i(t){return e.point(t[0],t[1],r)}var o=t[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},ho.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},ho.prototype.isInfinity=function(){return this.inf},ho.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},ho.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},ho.prototype.getX=function(){return this.x.fromRed()},ho.prototype.getY=function(){return this.y.fromRed()},ho.prototype.mul=function(e){return e=new(xn())(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},ho.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},ho.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},ho.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},ho.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},ho.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},lo(po,ao.BasePoint),co.prototype.jpoint=function(e,t,r){return new po(this,e,t,r)},po.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},po.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},po.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),l=o.redSub(a);if(0===s.cmpn(0))return 0!==l.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),c=u.redMul(s),f=n.redMul(u),d=l.redSqr().redIAdd(c).redISub(f).redISub(f),h=l.redMul(f.redISub(d)).redISub(o.redMul(c)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,h,p)},po.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=a.redSqr(),u=l.redMul(a),c=r.redMul(l),f=s.redSqr().redIAdd(u).redISub(c).redISub(c),d=s.redMul(c.redISub(f)).redISub(i.redMul(u)),h=this.z.redMul(a);return this.curve.jpoint(f,d,h)},po.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var r=this;for(t=0;t<e;t++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,l=s.redSqr().redSqr(),u=a.redAdd(a);for(t=0;t<e;t++){var c=o.redSqr(),f=u.redSqr(),d=f.redSqr(),h=c.redAdd(c).redIAdd(c).redIAdd(n.redMul(l)),p=o.redMul(f),m=h.redSqr().redISub(p.redAdd(p)),g=p.redISub(m),A=h.redMul(g);A=A.redIAdd(A).redISub(d);var y=u.redMul(s);t+1<e&&(l=l.redMul(d)),o=m,s=y,u=A}return this.curve.jpoint(o,u.redMul(i),s)},po.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},po.prototype._zeroDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n),l=s.redSqr().redISub(a).redISub(a),u=o.redIAdd(o);u=(u=u.redIAdd(u)).redIAdd(u),e=l,t=s.redMul(a.redISub(l)).redISub(u),r=this.y.redAdd(this.y)}else{var c=this.x.redSqr(),f=this.y.redSqr(),d=f.redSqr(),h=this.x.redAdd(f).redSqr().redISub(c).redISub(d);h=h.redIAdd(h);var p=c.redAdd(c).redIAdd(c),m=p.redSqr(),g=d.redIAdd(d);g=(g=g.redIAdd(g)).redIAdd(g),e=m.redISub(h).redISub(h),t=p.redMul(h.redISub(e)).redISub(g),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},po.prototype._threeDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),l=s.redSqr().redISub(a).redISub(a);e=l;var u=o.redIAdd(o);u=(u=u.redIAdd(u)).redIAdd(u),t=s.redMul(a.redISub(l)).redISub(u),r=this.y.redAdd(this.y)}else{var c=this.z.redSqr(),f=this.y.redSqr(),d=this.x.redMul(f),h=this.x.redSub(c).redMul(this.x.redAdd(c));h=h.redAdd(h).redIAdd(h);var p=d.redIAdd(d),m=(p=p.redIAdd(p)).redAdd(p);e=h.redSqr().redISub(m),r=this.y.redAdd(this.z).redSqr().redISub(f).redISub(c);var g=f.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),t=h.redMul(p.redISub(e)).redISub(g)}return this.curve.jpoint(e,t,r)},po.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=t.redSqr(),a=r.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),l=t.redAdd(t),u=(l=l.redIAdd(l)).redMul(a),c=s.redSqr().redISub(u.redAdd(u)),f=u.redISub(c),d=a.redSqr();d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var h=s.redMul(f).redISub(d),p=r.redAdd(r).redMul(n);return this.curve.jpoint(c,h,p)},po.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);
vendor: 11,180 bytes, line 2
2var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(n),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),l=n.redIAdd(n);l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var u=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(l),c=t.redMul(u);c=(c=c.redIAdd(c)).redIAdd(c);var f=this.x.redMul(s).redISub(c);f=(f=f.redIAdd(f)).redIAdd(f);var d=this.y.redMul(u.redMul(l.redISub(u)).redISub(a.redMul(s)));d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var h=this.z.redAdd(a).redSqr().redISub(r).redISub(s);return this.curve.jpoint(f,d,h)},po.prototype.mul=function(e,t){return e=new(xn())(e,t),this.curve._wnafMul(this,e)},po.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)},po.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},po.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},po.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var mo=Xi((function(e,t){var r=t;r.base=ao,r.short=fo,r.mont=null,r.edwards=null})),go=Xi((function(e,t){var r,n=t,i=to.assert;function o(e){"short"===e.type?this.curve=new mo.short(e):"edwards"===e.type?this.curve=new mo.edwards(e):this.curve=new mo.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function a(e,t){Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:function(){var r=new o(t);return Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=o,a("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:Yi().sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),a("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:Yi().sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),a("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:Yi().sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),a("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:Yi().sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),a("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:Yi().sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),a("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Yi().sha256,gRed:!1,g:["9"]}),a("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Yi().sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=null.crash()}catch(s){r=void 0}a("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:Yi().sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})}));function Ao(e){if(!(this instanceof Ao))return new Ao(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=eo.toArray(e.entropy,e.entropyEnc||"hex"),r=eo.toArray(e.nonce,e.nonceEnc||"hex"),n=eo.toArray(e.pers,e.persEnc||"hex");Zi(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}var yo=Ao;Ao.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},Ao.prototype._hmac=function(){return new(Yi().hmac)(this.hash,this.K)},Ao.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},Ao.prototype.reseed=function(e,t,r,n){"string"!==typeof t&&(n=r,r=t,t=null),e=eo.toArray(e,t),r=eo.toArray(r,n),Zi(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},Ao.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!==typeof t&&(n=r,r=t,t=null),r&&(r=eo.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length<e;)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var o=i.slice(0,e);return this._update(r),this._reseed++,eo.encode(o,t)};var vo=to.assert;function bo(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}var wo=bo;bo.fromPublic=function(e,t,r){return t instanceof bo?t:new bo(e,{pub:t,pubEnc:r})},bo.fromPrivate=function(e,t,r){return t instanceof bo?t:new bo(e,{priv:t,privEnc:r})},bo.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},bo.prototype.getPublic=function(e,t){return"string"===typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},bo.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},bo.prototype._importPrivate=function(e,t){this.priv=new(xn())(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},bo.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?vo(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||vo(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},bo.prototype.derive=function(e){return e.validate()||vo(e.validate(),"public point not validated"),e.mul(this.priv).getX()},bo.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},bo.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},bo.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var Eo=to.assert;function ko(e,t){if(e instanceof ko)return e;this._importDER(e,t)||(Eo(e.r&&e.s,"Signature without r or s"),this.r=new(xn())(e.r,16),this.s=new(xn())(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var So=ko;function xo(){this.place=0}function No(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,o=0,a=t.place;o<n;o++,a++)i<<=8,i|=e[a],i>>>=0;return!(i<=127)&&(t.place=a,i)}function Co(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function _o(e,t){if(t<128)e.push(t);else{var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}ko.prototype._importDER=function(e,t){e=to.toArray(e,t);var r=new xo;if(48!==e[r.place++])return!1;var n=No(e,r);if(!1===n)return!1;if(n+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var i=No(e,r);if(!1===i)return!1;var o=e.slice(r.place,i+r.place);if(r.place+=i,2!==e[r.place++])return!1;var a=No(e,r);if(!1===a)return!1;if(e.length!==a+r.place)return!1;var s=e.slice(r.place,a+r.place);
2if(0===o[0]){if(!(128&o[1]))return!1;o=o.slice(1)}if(0===s[0]){if(!(128&s[1]))return!1;s=s.slice(1)}return this.r=new(xn())(o),this.s=new(xn())(s),this.recoveryParam=null,!0},ko.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=Co(t),r=Co(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];_o(n,t.length),(n=n.concat(t)).push(2),_o(n,r.length);var i=n.concat(r),o=[48];return _o(o,i.length),o=o.concat(i),to.encode(o,e)};var Mo=function(){throw new Error("unsupported")},Po=to.assert;function To(e){if(!(this instanceof To))return new To(e);"string"===typeof e&&(Po(Object.prototype.hasOwnProperty.call(go,e),"Unknown curve "+e),e=go[e]),e instanceof go.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}var Ro=To;To.prototype.keyPair=function(e){return new wo(this,e)},To.prototype.keyFromPrivate=function(e,t){return wo.fromPrivate(this,e,t)},To.prototype.keyFromPublic=function(e,t){return wo.fromPublic(this,e,t)},To.prototype.genKeyPair=function(e){e||(e={});for(var t=new yo({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||Mo(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new(xn())(2));;){var i=new(xn())(t.generate(r));if(!(i.cmp(n)>0))return i.iaddn(1),this.keyFromPrivate(i)}},To.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},To.prototype.sign=function(e,t,r,n){"object"===typeof r&&(n=r,r=null),n||(n={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new(xn())(e,16));for(var i=this.n.byteLength(),o=t.getPrivate().toArray("be",i),a=e.toArray("be",i),s=new yo({hash:this.hash,entropy:o,nonce:a,pers:n.pers,persEnc:n.persEnc||"utf8"}),l=this.n.sub(new(xn())(1)),u=0;;u++){var c=n.k?n.k(u):new(xn())(s.generate(this.n.byteLength()));if(!((c=this._truncateToN(c,!0)).cmpn(1)<=0||c.cmp(l)>=0)){var f=this.g.mul(c);if(!f.isInfinity()){var d=f.getX(),h=d.umod(this.n);if(0!==h.cmpn(0)){var p=c.invm(this.n).mul(h.mul(t.getPrivate()).iadd(e));if(0!==(p=p.umod(this.n)).cmpn(0)){var m=(f.getY().isOdd()?1:0)|(0!==d.cmp(h)?2:0);return n.canonical&&p.cmp(this.nh)>0&&(p=this.n.sub(p),m^=1),new So({r:h,s:p,recoveryParam:m})}}}}}},To.prototype.verify=function(e,t,r,n){e=this._truncateToN(new(xn())(e,16)),r=this.keyFromPublic(r,n);var i=(t=new So(t,"hex")).r,o=t.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var a,s=o.invm(this.n),l=s.mul(e).umod(this.n),u=s.mul(i).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(l,r.getPublic(),u)).isInfinity()&&a.eqXToP(i):!(a=this.g.mulAdd(l,r.getPublic(),u)).isInfinity()&&0===a.getX().umod(this.n).cmp(i)},To.prototype.recoverPubKey=function(e,t,r,n){Po((3&r)===r,"The recovery param is more than two bits"),t=new So(t,n);var i=this.n,o=new(xn())(e),a=t.r,s=t.s,l=1&r,u=r>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&u)throw new Error("Unable to find sencond key candinate");a=u?this.curve.pointFromX(a.add(this.curve.n),l):this.curve.pointFromX(a,l);var c=t.r.invm(i),f=i.sub(o).mul(c).umod(i),d=s.mul(c).umod(i);return this.g.mulAdd(f,a,d)},To.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new So(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")};var Io=Xi((function(e,t){var r=t;r.version="6.5.4",r.utils=to,r.rand=function(){throw new Error("unsupported")},r.curve=mo,r.curves=go,r.ec=Ro,r.eddsa=null})).ec;const Oo=new on("signing-key/5.7.0");let Bo=null;function Lo(){return Bo||(Bo=new Io("secp256k1")),Bo}class Fo{constructor(e){ln(this,"curve","secp256k1"),ln(this,"privateKey",Fn(e)),32!==Dn(this.privateKey)&&Oo.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const t=Lo().keyFromPrivate(Rn(this.privateKey));ln(this,"publicKey","0x"+t.getPublic(!1,"hex")),ln(this,"compressedPublicKey","0x"+t.getPublic(!0,"hex")),ln(this,"_isSigningKey",!0)}_addPoint(e){const t=Lo().keyFromPublic(Rn(this.publicKey)),r=Lo().keyFromPublic(Rn(e));return"0x"+t.pub.add(r.pub).encodeCompressed("hex")}
vendor: 5,744 bytes, line 2
2signDigest(e){const t=Lo().keyFromPrivate(Rn(this.privateKey)),r=Rn(e);32!==r.length&&Oo.throwArgumentError("bad digest length","digest",e);const n=t.sign(r,{canonical:!0});return Hn({recoveryParam:n.recoveryParam,r:Qn("0x"+n.r.toString(16),32),s:Qn("0x"+n.s.toString(16),32)})}computeSharedSecret(e){const t=Lo().keyFromPrivate(Rn(this.privateKey)),r=Lo().keyFromPublic(Rn(Do(e)));return Qn("0x"+t.derive(r.getPublic()).toString(16),32)}static isSigningKey(e){return!(!e||!e._isSigningKey)}}function Do(e,t){const r=Rn(e);if(32===r.length){const e=new Fo(r);return t?"0x"+Lo().keyFromPrivate(r).getPublic(!0,"hex"):e.publicKey}return 33===r.length?t?Fn(r):"0x"+Lo().keyFromPublic(r).getPublic(!1,"hex"):65===r.length?t?"0x"+Lo().keyFromPublic(r).getPublic(!0,"hex"):Fn(r):Oo.throwArgumentError("invalid public or private key","key","[REDACTED]")}const Uo=new on("transactions/5.7.0");var jo;function zo(e){return"0x"===e?null:Ai(e)}function Qo(e){return"0x"===e?Vi:Yn.from(e)}!function(e){e[e.legacy=0]="legacy",e[e.eip2930=1]="eip2930",e[e.eip1559=2]="eip1559"}(jo||(jo={}));function Ho(e,t){return function(e){return Ai(Un(ni(Un(Do(e),1)),12))}(function(e,t){const r=Hn(t),n={r:Rn(r.r),s:Rn(r.s)};return"0x"+Lo().recoverPubKey(Rn(e),n,r.recoveryParam).encode("hex",!1)}(Rn(e),t))}function qo(e,t){const r=On(Yn.from(e).toHexString());return r.length>32&&Uo.throwArgumentError("invalid length for "+t,"transaction:"+t,e),r}function Go(e,t){return{address:Ai(e),storageKeys:(t||[]).map(((t,r)=>(32!==Dn(t)&&Uo.throwArgumentError("invalid access list storageKey","accessList[".concat(e,":").concat(r,"]"),t),t.toLowerCase())))}}function Vo(e){if(Array.isArray(e))return e.map(((e,t)=>Array.isArray(e)?(e.length>2&&Uo.throwArgumentError("access list expected to be [ address, storageKeys[] ]","value[".concat(t,"]"),e),Go(e[0],e[1])):Go(e.address,e.storageKeys)));const t=Object.keys(e).map((t=>{const r=e[t].reduce(((e,t)=>(e[t]=!0,e)),{});return Go(t,Object.keys(r).sort())}));return t.sort(((e,t)=>e.address.localeCompare(t.address))),t}function Wo(e){return Vo(e).map((e=>[e.address,e.storageKeys]))}function Jo(e,t){if(null!=e.gasPrice){const t=Yn.from(e.gasPrice),r=Yn.from(e.maxFeePerGas||0);t.eq(r)||Uo.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:t,maxFeePerGas:r})}const r=[qo(e.chainId||0,"chainId"),qo(e.nonce||0,"nonce"),qo(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),qo(e.maxFeePerGas||0,"maxFeePerGas"),qo(e.gasLimit||0,"gasLimit"),null!=e.to?Ai(e.to):"0x",qo(e.value||0,"value"),e.data||"0x",Wo(e.accessList||[])];if(t){const e=Hn(t);r.push(qo(e.recoveryParam,"recoveryParam")),r.push(On(e.r)),r.push(On(e.s))}return jn(["0x02",li(r)])}function Ko(e,t){const r=[qo(e.chainId||0,"chainId"),qo(e.nonce||0,"nonce"),qo(e.gasPrice||0,"gasPrice"),qo(e.gasLimit||0,"gasLimit"),null!=e.to?Ai(e.to):"0x",qo(e.value||0,"value"),e.data||"0x",Wo(e.accessList||[])];if(t){const e=Hn(t);r.push(qo(e.recoveryParam,"recoveryParam")),r.push(On(e.r)),r.push(On(e.s))}return jn(["0x01",li(r)])}function Yo(e,t,r){try{const r=Qo(t[0]).toNumber();if(0!==r&&1!==r)throw new Error("bad recid");e.v=r}catch(n){Uo.throwArgumentError("invalid v for transaction type: 1","v",t[0])}e.r=Qn(t[1],32),e.s=Qn(t[2],32);try{const t=ni(r(e));e.from=Ho(t,{r:e.r,s:e.s,recoveryParam:e.v})}catch(n){}}function Xo(e){const t=Rn(e);if(t[0]>127)return function(e){const t=fi(e);9!==t.length&&6!==t.length&&Uo.throwArgumentError("invalid raw transaction","rawTransaction",e);const r={nonce:Qo(t[0]).toNumber(),gasPrice:Qo(t[1]),gasLimit:Qo(t[2]),to:zo(t[3]),value:Qo(t[4]),data:t[5],chainId:0};if(6===t.length)return r;try{r.v=Yn.from(t[6]).toNumber()}catch(n){return r}if(r.r=Qn(t[7],32),r.s=Qn(t[8],32),Yn.from(r.r).isZero()&&Yn.from(r.s).isZero())r.chainId=r.v,r.v=0;else{r.chainId=Math.floor((r.v-35)/2),r.chainId<0&&(r.chainId=0);let i=r.v-27;const o=t.slice(0,6);0!==r.chainId&&(o.push(Fn(r.chainId)),o.push("0x"),o.push("0x"),i-=2*r.chainId+8);const a=ni(li(o));try{r.from=Ho(a,{r:Fn(r.r),s:Fn(r.s),recoveryParam:i})}catch(n){}r.hash=ni(e)}return r.type=null,r}(t);switch(t[0]){case 1:return function(e){const t=fi(e.slice(1));8!==t.length&&11!==t.length&&Uo.throwArgumentError("invalid component count for transaction type: 1","payload",Fn(e));const r={type:1,chainId:Qo(t[0]).toNumber(),nonce:Qo(t[1]).toNumber(),gasPrice:Qo(t[2]),gasLimit:Qo(t[3]),to:zo(t[4]),value:Qo(t[5]),data:t[6],accessList:Vo(t[7])};return 8===t.length||(r.hash=ni(e),Yo(r,t.slice(8),Ko)),r}(t);case 2:return function(e){const t=fi(e.slice(1));9!==t.length&&12!==t.length&&Uo.throwArgumentError("invalid component count for transaction type: 2","payload",Fn(e));const r=Qo(t[2]),n=Qo(t[3]),i={type:2,chainId:Qo(t[0]).toNumber(),nonce:Qo(t[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:n,gasPrice:null,gasLimit:Qo(t[4]),to:zo(t[5]),value:Qo(t[6]),data:t[7],accessList:Vo(t[8])};return 9===t.length||(i.hash=ni(e),Yo(i,t.slice(9),Jo)),i}(t)}return Uo.throwError("unsupported transaction type: ".concat(t[0]),on.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:t[0]})}function Zo(e){e=atob(e);const t=[];for(let r=0;r<e.length;r++)t.push(e.charCodeAt(r));return Rn(t)}function $o(e){e=Rn(e);let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}var ea=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{l(n.next(e))}catch(t){o(t)}}function s(e){try{l(n.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))};function ta(e,t){return ea(this,void 0,void 0,(function*(){null==t&&(t={});const r={method:t.method||"GET",headers:t.headers||{},body:t.body||void 0};
2if(!0!==t.skipFetchSetup&&(r.mode="cors",r.cache="no-cache",r.credentials="same-origin",r.redirect="follow",r.referrer="client"),null!=t.fetchOptions){const e=t.fetchOptions;e.mode&&(r.mode=e.mode),e.cache&&(r.cache=e.cache),e.credentials&&(r.credentials=e.credentials),e.redirect&&(r.redirect=e.redirect),e.referrer&&(r.referrer=e.referrer)}const n=yield fetch(e,r),i=yield n.arrayBuffer(),o={};return n.headers.forEach?n.headers.forEach(((e,t)=>{o[t.toLowerCase()]=e})):n.headers.keys().forEach((e=>{o[e.toLowerCase()]=n.headers.get(e)})),{headers:o,statusCode:n.status,statusMessage:n.statusText,body:Rn(new Uint8Array(i))}}))}var ra=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{l(n.next(e))}catch(t){o(t)}}function s(e){try{l(n.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))};const na=new on("web/5.7.1");function ia(e){return new Promise((t=>{setTimeout(t,e)}))}function oa(e,t){if(null==e)return null;if("string"===typeof e)return e;if(Mn(e)){if(t&&("text"===t.split("/")[0]||"application/json"===t.split(";")[0].trim()))try{return Ci(e)}catch(r){}return Fn(e)}return e}function aa(e,t,r){let n=null;if(null!=t){n=Ni(t);const r="string"===typeof e?{url:e}:fn(e);if(r.headers){const e=0!==Object.keys(r.headers).filter((e=>"content-type"===e.toLowerCase())).length;e||(r.headers=fn(r.headers),r.headers["content-type"]="application/json")}else r.headers={"content-type":"application/json"};e=r}return function(e,t,r){const n="object"===typeof e&&null!=e.throttleLimit?e.throttleLimit:12;na.assertArgument(n>0&&n%1===0,"invalid connection throttle limit","connection.throttleLimit",n);const i="object"===typeof e?e.throttleCallback:null,o="object"===typeof e&&"number"===typeof e.throttleSlotInterval?e.throttleSlotInterval:100;na.assertArgument(o>0&&o%1===0,"invalid connection throttle slot interval","connection.throttleSlotInterval",o);const a="object"===typeof e&&!!e.errorPassThrough,s={};let l=null;const u={method:"GET"};let c=!1,f=12e4;if("string"===typeof e)l=e;else if("object"===typeof e){if(null!=e&&null!=e.url||na.throwArgumentError("missing URL","connection.url",e),l=e.url,"number"===typeof e.timeout&&e.timeout>0&&(f=e.timeout),e.headers)for(const t in e.headers)s[t.toLowerCase()]={key:t,value:String(e.headers[t])},["if-none-match","if-modified-since"].indexOf(t.toLowerCase())>=0&&(c=!0);if(u.allowGzip=!!e.allowGzip,null!=e.user&&null!=e.password){"https:"!==l.substring(0,6)&&!0!==e.allowInsecureAuthentication&&na.throwError("basic authentication requires a secure https url",on.errors.INVALID_ARGUMENT,{argument:"url",url:l,user:e.user,password:"[REDACTED]"});const t=e.user+":"+e.password;s.authorization={key:"Authorization",value:"Basic "+$o(Ni(t))}}null!=e.skipFetchSetup&&(u.skipFetchSetup=!!e.skipFetchSetup),null!=e.fetchOptions&&(u.fetchOptions=fn(e.fetchOptions))}const d=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),h=l?l.match(d):null;if(h)try{const e={statusCode:200,statusMessage:"OK",headers:{"content-type":h[1]||"text/plain"},body:h[2]?Zo(h[3]):(p=h[3],Ni(p.replace(/%([0-9a-f][0-9a-f])/gi,((e,t)=>String.fromCharCode(parseInt(t,16))))))};let t=e.body;return r&&(t=r(e.body,e)),Promise.resolve(t)}catch(y){na.throwError("processing response error",on.errors.SERVER_ERROR,{body:oa(h[1],h[2]),error:y,requestBody:null,requestMethod:"GET",url:l})}var p;t&&(u.method="POST",u.body=t,null==s["content-type"]&&(s["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==s["content-length"]&&(s["content-length"]={key:"Content-Length",value:String(t.length)}));const m={};Object.keys(s).forEach((e=>{const t=s[e];m[t.key]=t.value})),u.headers=m;const g=function(){let e=null;return{promise:new Promise((function(t,r){f&&(e=setTimeout((()=>{null!=e&&(e=null,r(na.makeError("timeout",on.errors.TIMEOUT,{requestBody:oa(u.body,m["content-type"]),requestMethod:u.method,timeout:f,url:l})))}),f))})),cancel:function(){null!=e&&(clearTimeout(e),e=null)}}}(),A=function(){return ra(this,void 0,void 0,(function*(){for(let e=0;e<n;e++){let t=null;try{if(t=yield ta(l,u),e<n)if(301===t.statusCode||302===t.statusCode){const e=t.headers.location||"";
vendor: 6,302 bytes, line 2
2if("GET"===u.method&&e.match(/^https:/)){l=t.headers.location;continue}}else if(429===t.statusCode){let r=!0;if(i&&(r=yield i(e,l)),r){let r=0;const n=t.headers["retry-after"];r="string"===typeof n&&n.match(/^[1-9][0-9]*$/)?1e3*parseInt(n):o*parseInt(String(Math.random()*Math.pow(2,e))),yield ia(r);continue}}}catch(y){t=y.response,null==t&&(g.cancel(),na.throwError("missing response",on.errors.SERVER_ERROR,{requestBody:oa(u.body,m["content-type"]),requestMethod:u.method,serverError:y,url:l}))}let s=t.body;if(c&&304===t.statusCode?s=null:!a&&(t.statusCode<200||t.statusCode>=300)&&(g.cancel(),na.throwError("bad response",on.errors.SERVER_ERROR,{status:t.statusCode,headers:t.headers,body:oa(s,t.headers?t.headers["content-type"]:null),requestBody:oa(u.body,m["content-type"]),requestMethod:u.method,url:l})),r)try{const e=yield r(s,t);return g.cancel(),e}catch(y){if(y.throttleRetry&&e<n){let t=!0;if(i&&(t=yield i(e,l)),t){const t=o*parseInt(String(Math.random()*Math.pow(2,e)));yield ia(t);continue}}g.cancel(),na.throwError("processing response error",on.errors.SERVER_ERROR,{body:oa(s,t.headers?t.headers["content-type"]:null),error:y,requestBody:oa(u.body,m["content-type"]),requestMethod:u.method,url:l})}return g.cancel(),s}return na.throwError("failed response",on.errors.SERVER_ERROR,{requestBody:oa(u.body,m["content-type"]),requestMethod:u.method,url:l})}))}();return Promise.race([g.promise,A])}(e,n,((e,t)=>{let n=null;if(null!=e)try{n=JSON.parse(Ci(e))}catch(i){na.throwError("invalid JSON",on.errors.SERVER_ERROR,{body:e,error:i})}return r&&(n=r(n,t)),n}))}function sa(e,t){return t||(t={}),null==(t=fn(t)).floor&&(t.floor=0),null==t.ceiling&&(t.ceiling=1e4),null==t.interval&&(t.interval=250),new Promise((function(r,n){let i=null,o=!1;const a=()=>!o&&(o=!0,i&&clearTimeout(i),!0);t.timeout&&(i=setTimeout((()=>{a()&&n(new Error("timeout"))}),t.timeout));const s=t.retryLimit;let l=0;!function i(){return e().then((function(e){if(void 0!==e)a()&&r(e);else if(t.oncePoll)t.oncePoll.once("poll",i);else if(t.onceBlock)t.onceBlock.once("block",i);else if(!o){if(l++,l>s)return void(a()&&n(new Error("retry limit reached")));let e=t.interval*parseInt(String(Math.random()*Math.pow(2,l)));e<t.floor&&(e=t.floor),e>t.ceiling&&(e=t.ceiling),setTimeout(i,e)}return null}),(function(e){a()&&n(e)}))}()}))}var la=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{l(n.next(e))}catch(t){o(t)}}function s(e){try{l(n.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))};const ua=new on("abstract-provider/5.7.0");class ca extends gn{static isForkEvent(e){return!(!e||!e._isForkEvent)}}class fa{constructor(){ua.checkAbstract(new.target,fa),ln(this,"_isProvider",!0)}getFeeData(){return la(this,void 0,void 0,(function*(){const{block:e,gasPrice:t}=yield cn({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch((e=>null))});let r=null,n=null,i=null;return e&&e.baseFeePerGas&&(r=e.baseFeePerGas,i=Yn.from("1500000000"),n=e.baseFeePerGas.mul(2).add(i)),{lastBaseFeePerGas:r,maxFeePerGas:n,maxPriorityFeePerGas:i,gasPrice:t}}))}addListener(e,t){return this.on(e,t)}removeListener(e,t){return this.off(e,t)}static isProvider(e){return!(!e||!e._isProvider)}}class da{constructor(e){ln(this,"alphabet",e),ln(this,"base",e.length),ln(this,"_alphabetMap",{}),ln(this,"_leader",e.charAt(0));for(let t=0;t<e.length;t++)this._alphabetMap[e.charAt(t)]=t}encode(e){let t=Rn(e);if(0===t.length)return"";let r=[0];for(let i=0;i<t.length;++i){let e=t[i];for(let t=0;t<r.length;++t)e+=r[t]<<8,r[t]=e%this.base,e=e/this.base|0;for(;e>0;)r.push(e%this.base),e=e/this.base|0}let n="";for(let i=0;0===t[i]&&i<t.length-1;++i)n+=this._leader;for(let i=r.length-1;i>=0;--i)n+=this.alphabet[r[i]];return n}decode(e){if("string"!==typeof e)throw new TypeError("Expected String");let t=[];if(0===e.length)return new Uint8Array(t);t.push(0);for(let r=0;r<e.length;r++){let n=this._alphabetMap[e[r]];if(void 0===n)throw new Error("Non-base"+this.base+" character");let i=n;for(let e=0;e<t.length;++e)i+=t[e]*this.base,t[e]=255&i,i>>=8;for(;i>0;)t.push(255&i),i>>=8}for(let r=0;e[r]===this._leader&&r<e.length-1;++r)t.push(0);return Rn(new Uint8Array(t.reverse()))}}new da("abcdefghijklmnopqrstuvwxyz234567");const ha=new da("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");function pa(e,t){null==t&&(t=1);const r=[],n=r.forEach,i=function(e,t){n.call(e,(function(e){t>0&&Array.isArray(e)?i(e,t-1):r.push(e)}))};return i(e,t),r}function ma(e){return function(e){let t=0;return()=>e[t++]}(function(e){let t=0;function r(){return e[t++]<<8|e[t++]}let n=r(),i=1,o=[0,1];for(let b=1;b<n;b++)o.push(i+=r());let a=r(),s=t;t+=a;let l=0,u=0;function c(){return 0==l&&(u=u<<8|e[t++],l=8),u>>--l&1}const f=Math.pow(2,31),d=f>>>1,h=d>>1,p=f-1;let m=0;for(let b=0;b<31;b++)m=m<<1|c();let g=[],A=0,y=f;for(;;){let e=Math.floor(((m-A+1)*i-1)/y),t=0,r=n;for(;r-t>1;){let n=t+r>>>1;e<o[n]?r=n:t=n}if(0==t)break;g.push(t);let a=A+Math.floor(y*o[t]/i),s=A+Math.floor(y*o[t+1]/i)-1;for(;0==((a^s)&d);)m=m<<1&p|c(),a=a<<1&p,s=s<<1&p|1;for(;a&~s&h;)m=m&d|m<<1&p>>>1|c(),a=a<<1^d,s=(s^d)<<1|d|1;A=a,y=1+s-a}let v=n-4;return g.map((t=>{switch(t-v){case 3:return v+65792+(e[s++]<<16|e[s++]<<8|e[s++]);case 2:return v+256+(e[s++]<<8|e[s++]);case 1:return v+e[s++];default:return t-1}}))}(e))}function ga(e){return 1&e?~e>>1:e>>1}function Aa(e,t){let r=Array(e);for(let n=0,i=-1;n<e;n++)r[n]=i+=1+t();return r}function ya(e,t){let r=Array(e);for(let n=0,i=0;n<e;n++)r[n]=i+=ga(t());return r}function va(e,t){let r=Aa(e(),e),n=e(),i=Aa(n,e),o=function(e,t){let r=Array(e);for(let n=0;n<e;n++)r[n]=1+t();return r}(n,e);for(let a=0;a<n;a++)for(let e=0;e<o[a];e++)r.push(i[a]+e);return t?r.map((e=>t[e])):r}function ba(e,t,r){let n=Array(e).fill(void 0).map((()=>[]));for(let i=0;i<t;i++)ya(e,r).forEach(((e,t)=>n[t].push(e)));return n}function wa(e,t){let r=1+t(),n=t(),i=function(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(r)}return t}(t);return pa(ba(i.length,1+e,t).map(((e,t)=>{const o=e[0],a=e.slice(1);return Array(i[t]).fill(void 0).map(((e,t)=>{let i=t*n;return[o+t*r,a.map((e=>e+i))]}))})))}function Ea(e,t){return ba(1+t(),1+e,t).map((e=>[e[0],e.slice(1)]))}const ka=ma(Zo
vendor: 14,758 bytes, line 2
2("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBAL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(ka)),Na=function(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(wa(r,e))}for(;;){let r=e()-1;if(r<0)break;t.push(Ea(r,e))}return function(e){const t={};for(let r=0;r<e.length;r++){const n=e[r];t[n[0]]=n[1]}return t}(pa(t))}(ka),Ca=function(e){let t=va(e).sort(((e,t)=>e-t));return function r(){let n=[];for(;;){let i=va(e,t);if(0==i.length)break;n.push({set:new Set(i),node:r()})}n.sort(((e,t)=>t.set.size-e.set.size));let i=e(),o=i%3;i=i/3|0;let a=!!(1&i);return i>>=1,{branches:n,valid:o,fe0f:a,save:1==i,check:2==i}}()}(ka),_a=45,Ma=95;function Pa(e){return function(e){return xi(Ni(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:wi.current))}(e)}function Ta(e){return e.filter((e=>65039!=e))}function Ra(e){for(let r of e.split(".")){let e=Pa(r);try{for(let t=e.lastIndexOf(Ma)-1;t>=0;t--)if(e[t]!==Ma)throw new Error("underscore only allowed at start");if(e.length>=4&&e.every((e=>e<128))&&e[2]===_a&&e[3]===_a)throw new Error("invalid label extension")}catch(t){throw new Error('Invalid label "'.concat(r,'": ').concat(t.message))}}return e}function Ia(e){return Ra(function(e,t){let r=Pa(e).reverse(),n=[];for(;r.length;){let e=Oa(r);if(e){n.push(...t(e));continue}let i=r.pop();if(Sa.has(i)){n.push(i);continue}if(xa.has(i))continue;let o=Na[i];if(!o)throw new Error("Disallowed codepoint: 0x".concat(i.toString(16).toUpperCase()));n.push(...o)}return Ra((i=String.fromCodePoint(...n),i.normalize("NFC")));var i}(e,Ta))}function Oa(e,t){var r;let n,i,o=Ca,a=[],s=e.length;for(t&&(t.length=0);s;){let l=e[--s];if(o=null===(r=o.branches.find((e=>
vendor: 19,197 bytes, line 2
2e.set.has(l))))||void 0===r?void 0:r.node,!o)break;if(o.save)i=l;else if(o.check&&l===i)break;a.push(l),o.fe0f&&(a.push(65039),s>0&&65039==e[s-1]&&s--),o.valid&&(n=a.slice(),2==o.valid&&n.splice(1,1),t&&t.push(...e.slice(s).reverse()),e.length=s)}return n}const Ba=new on(vi),La=new Uint8Array(32);function Fa(e){if(0===e.length)throw new Error("invalid ENS name; empty component");return e}function Da(e){const t=Ni(Ia(e)),r=[];if(0===e.length)return r;let n=0;for(let i=0;i<t.length;i++){46===t[i]&&(r.push(Fa(t.slice(n,i))),n=i+1)}if(n>=t.length)throw new Error("invalid ENS name; empty component");return r.push(Fa(t.slice(n))),r}function Ua(e){"string"!==typeof e&&Ba.throwArgumentError("invalid ENS name; not a string","name",e);let t=La;const r=Da(e);for(;r.length;)t=ni(In([t,ni(r.pop())]));return Fn(t)}La.fill(0);const ja=new on("networks/5.7.1");function za(e){const t=function(t,r){null==r&&(r={});const n=[];if(t.InfuraProvider&&"-"!==r.infura)try{n.push(new t.InfuraProvider(e,r.infura))}catch(i){}if(t.EtherscanProvider&&"-"!==r.etherscan)try{n.push(new t.EtherscanProvider(e,r.etherscan))}catch(i){}if(t.AlchemyProvider&&"-"!==r.alchemy)try{n.push(new t.AlchemyProvider(e,r.alchemy))}catch(i){}if(t.PocketProvider&&"-"!==r.pocket){const o=["goerli","ropsten","rinkeby","sepolia"];try{const i=new t.PocketProvider(e,r.pocket);i.network&&-1===o.indexOf(i.network.name)&&n.push(i)}catch(i){}}if(t.CloudflareProvider&&"-"!==r.cloudflare)try{n.push(new t.CloudflareProvider(e))}catch(i){}if(t.AnkrProvider&&"-"!==r.ankr)try{const i=["ropsten"],o=new t.AnkrProvider(e,r.ankr);o.network&&-1===i.indexOf(o.network.name)&&n.push(o)}catch(i){}if(0===n.length)return null;if(t.FallbackProvider){let i=1;return null!=r.quorum?i=r.quorum:"homestead"===e&&(i=2),new t.FallbackProvider(n,i)}return n[0]};return t.renetwork=function(e){return za(e)},t}function Qa(e,t){const r=function(r,n){return r.JsonRpcProvider?new r.JsonRpcProvider(e,t):null};return r.renetwork=function(t){return Qa(e,t)},r}const Ha={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:za("homestead")},qa={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:za("ropsten")},Ga={chainId:63,name:"classicMordor",_defaultProvider:Qa("https://www.ethercluster.com/mordor","classicMordor")},Va={unspecified:{chainId:0,name:"unspecified"},homestead:Ha,mainnet:Ha,morden:{chainId:2,name:"morden"},ropsten:qa,testnet:qa,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:za("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:za("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:za("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:za("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:Qa("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:Ga,classicTestnet:Ga,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:Qa("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:za("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:za("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};new on("sha2/5.7.0");function Wa(e){return"0x"+Yi().sha256().update(Rn(e)).digest("hex")}var Ja=r(1360),Ka=r.n(Ja);const Ya=new on(An);class Xa{constructor(){this.formats=this.getDefaultFormats()}getDefaultFormats(){const e={},t=this.address.bind(this),r=this.bigNumber.bind(this),n=this.blockTag.bind(this),i=this.data.bind(this),o=this.hash.bind(this),a=this.hex.bind(this),s=this.number.bind(this),l=this.type.bind(this);return e.transaction={hash:o,type:l,accessList:Xa.allowNull(this.accessList.bind(this),null),blockHash:Xa.allowNull(o,null),blockNumber:Xa.allowNull(s,null),transactionIndex:Xa.allowNull(s,null),confirmations:Xa.allowNull(s,null),from:t,gasPrice:Xa.allowNull(r),maxPriorityFeePerGas:Xa.allowNull(r),maxFeePerGas:Xa.allowNull(r),gasLimit:r,to:Xa.allowNull(t,null),value:r,nonce:s,data:i,r:Xa.allowNull(this.uint256),s:Xa.allowNull(this.uint256),v:Xa.allowNull(s),creates:Xa.allowNull(t,null),raw:Xa.allowNull(i)},e.transactionRequest={from:Xa.allowNull(t),nonce:Xa.allowNull(s),gasLimit:Xa.allowNull(r),gasPrice:Xa.allowNull(r),maxPriorityFeePerGas:Xa.allowNull(r),maxFeePerGas:Xa.allowNull(r),to:Xa.allowNull(t),value:Xa.allowNull(r),data:Xa.allowNull((e=>this.data(e,!0))),type:Xa.allowNull(s),accessList:Xa.allowNull(this.accessList.bind(this),null)},e.receiptLog={transactionIndex:s,blockNumber:s,transactionHash:o,address:t,topics:Xa.arrayOf(o),data:i,logIndex:s,blockHash:o},e.receipt={to:Xa.allowNull(this.address,null),from:Xa.allowNull(this.address,null),contractAddress:Xa.allowNull(t,null),transactionIndex:s,root:Xa.allowNull(a),gasUsed:r,logsBloom:Xa.allowNull(i),blockHash:o,transactionHash:o,logs:Xa.arrayOf(this.receiptLog.bind(this)),blockNumber:s,confirmations:Xa.allowNull(s,null),cumulativeGasUsed:r,effectiveGasPrice:Xa.allowNull(r),status:Xa.allowNull(s),type:l},e.block={hash:Xa.allowNull(o),parentHash:o,number:s,timestamp:s,nonce:Xa.allowNull(a),difficulty:this.difficulty.bind(this),gasLimit:r,gasUsed:r,miner:Xa.allowNull(t),extraData:i,transactions:Xa.allowNull(Xa.arrayOf(o)),baseFeePerGas:Xa.allowNull(r)},e.blockWithTransactions=fn(e.block),e.blockWithTransactions.transactions=Xa.allowNull(Xa.arrayOf(this.transactionResponse.bind(this))),e.filter={fromBlock:Xa.allowNull(n,void 0),toBlock:Xa.allowNull(n,void 0),blockHash:Xa.allowNull(o,void 0),address:Xa.allowNull(t,void 0),topics:Xa.allowNull(this.topics.bind(this),void 0)},e.filterLog={blockNumber:Xa.allowNull(s),blockHash:Xa.allowNull(o),transactionIndex:s,removed:Xa.allowNull(this.boolean.bind(this)),address:t,data:Xa.allowFalsish(i,"0x"),topics:Xa.arrayOf(o),transactionHash:o,logIndex:s},e}accessList(e){return Vo(e||[])}number(e){return"0x"===e?0:Yn.from(e).toNumber()}type(e){return"0x"===e||null==e?0:Yn.from(e).toNumber()}bigNumber(e){return Yn.from(e)}boolean(e){if("boolean"===typeof e)return e;if("string"===typeof e){if("true"===(e=e.toLowerCase()))return!0;if("false"===e)return!1}throw new Error("invalid boolean - "+e)}hex(e,t){return"string"===typeof e&&(t||"0x"===e.substring(0,2)||(e="0x"+e),Bn(e))?e.toLowerCase():Ya.throwArgumentError("invalid hash","value",e)}data(e,t){const r=this.hex(e,t);if(r.length%2!==0)throw new Error("invalid data; odd-length - "+e);return r}address(e){return Ai(e)}callAddress(e){if(!Bn(e,32))return null;const t=Ai(Un(e,12));return"0x0000000000000000000000000000000000000000"===t?null:t}contractAddress(e){return yi(e)}blockTag(e){if(null==e)return"latest";if("earliest"===e)return"0x0";switch(e){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return e}if("number"===typeof e||Bn(e))return zn(e);throw new Error("invalid blockTag")}hash(e,t){const r=this.hex(e,t);return 32!==Dn(r)?Ya.throwArgumentError("invalid hash","value",e):r}difficulty(e){if(null==e)return null;const t=Yn.from(e);try{return t.toNumber()}catch(r){}return null}uint256(e){if(!Bn(e))throw new Error("invalid uint256");return Qn(e,32)}_block(e,t){null!=e.author&&null==e.miner&&(e.miner=e.author);const r=null!=e._difficulty?e._difficulty:e.difficulty,n=Xa.check(t,e);return n._difficulty=null==r?null:Yn.from(r),n}block(e){return this._block(e,this.formats.block)}blockWithTransactions(e){return this._block(e,this.formats.blockWithTransactions)}transactionRequest(e){return Xa.check(this.formats.transactionRequest,e)}transactionResponse(e){null!=e.gas&&null==e.gasLimit&&(e.gasLimit=e.gas),e.to&&Yn.from(e.to).isZero()&&(e.to="0x0000000000000000000000000000000000000000"),null!=e.input&&null==e.data&&(e.data=e.input),null==e.to&&null==e.creates&&(e.creates=this.contractAddress(e)),1!==e.type&&2!==e.type||null!=e.accessList||(e.accessList=[]);const t=Xa.check(this.formats.transaction,e);if(null!=e.chainId){let r=e.chainId;Bn(r)&&(r=Yn.from(r).toNumber()),t.chainId=r}else{let r=e.networkId;null==r&&null==t.v&&(r=e.chainId),Bn(r)&&(r=Yn.from(r).toNumber()),"number"!==typeof r&&null!=t.v&&(r=(t.v-35)/2,r<0&&(r=0),r=parseInt(r)),"number"!==typeof r&&(r=0),t.chainId=r}return t.blockHash&&"x"===t.blockHash.replace(/0/g,"")&&(t.blockHash=null),t}transaction(e){return Xo(e)}receiptLog(e){return Xa.check(this.formats.receiptLog,e)}receipt(e){const t=Xa.check(this.formats.receipt,e);if(null!=t.root)if(t.root.length<=4){const e=Yn.from(t.root).toNumber();0===e||1===e?(null!=t.status&&t.status!==e&&Ya.throwArgumentError("alt-root-status/status mismatch","value",{root:t.root,status:t.status}),t.status=e,delete t.root):Ya.throwArgumentError("invalid alt-root-status","value.root",t.root)}else 66!==t.root.length&&Ya.throwArgumentError("invalid root hash","value.root",t.root);return null!=t.status&&(t.byzantium=!0),t}topics(e){return Array.isArray(e)?e.map((e=>this.topics(e))):null!=e?this.hash(e,!0):null}filter(e){return Xa.check(this.formats.filter,e)}filterLog(e){return Xa.check(this.formats.filterLog,e)}static check(e,t){const r={};for(const i in e)try{const n=e[i](t[i]);void 0!==n&&(r[i]=n)}catch(n){throw n.checkKey=i,n.checkValue=t[i],n}return r}static allowNull(e,t){return function(r){return null==r?t:e(r)}}static allowFalsish(e,t){return function(r){return r?e(r):t}}static arrayOf(e){return function(t){if(!Array.isArray(t))throw new Error("not an array");const r=[];return t.forEach((function(t){r.push(e(t))})),r}}}var Za=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{l(n.next(e))}catch(t){o(t)}}function s(e){try{l(n.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))};const $a=new on(An);function es(e){return null==e?"null":(32!==Dn(e)&&$a.throwArgumentError("invalid topic","topic",e),e.toLowerCase())}function ts(e){for(e=e.slice();e.length>0&&null==e[e.length-1];)e.pop();return e.map((e=>{if(Array.isArray(e)){const t={};e.forEach((e=>{t[es(e)]=!0}));const r=Object.keys(t);return r.sort(),r.join("|")}return es(e)})).join("&")}function rs(e){if("string"===typeof e){if(32===Dn(e=e.toLowerCase()))return"tx:"+e;if(-1===e.indexOf(":"))return e}else{if(Array.isArray(e))return"filter:*:"+ts(e);if(ca.isForkEvent(e))throw $a.warn("not implemented"),new Error("not implemented");if(e&&"object"===typeof e)return"filter:"+(e.address||"*")+":"+ts(e.topics||[])}throw new Error("invalid event - "+e)}function ns(){return(new Date).getTime()}function is(e){return new Promise((t=>{setTimeout(t,e)}))}const os=["block","network","pending","poll"];class as{constructor(e,t,r){ln(this,"tag",e),ln(this,"listener",t),ln(this,"once",r),this._lastBlockNumber=-2,this._inflight=!1}get event(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}get type(){return this.tag.split(":")[0]}get hash(){const e=this.tag.split(":");return"tx"!==e[0]?null:e[1]}get filter(){const e=this.tag.split(":");if("filter"!==e[0])return null;const t=e[1],r=""===(n=e[2])?[]:n.split(/&/g).map((e=>{if(""===e)return[];const t=e.split("|").map((e=>"null"===e?null:e));return 1===t.length?t[0]:t}));var n;const i={};return r.length>0&&(i.topics=r),t&&"*"!==t&&(i.address=t),i}pollable(){return this.tag.indexOf(":")>=0||os.indexOf(this.tag)>=0}}const ss={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function ls(e){return Qn(Yn.from(e).toHexString(),32)}function us(e){return ha.encode(In([e,Un(Wa(Wa(e)),0,4)]))}const cs=new RegExp("^(ipfs)://(.*)$","i"),fs=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),cs,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function ds(e,t){try{return Ci(hs(e,t))}catch(r){}return null}function hs(e,t){if("0x"===e)return null;const r=Yn.from(Un(e,t,t+32)).toNumber(),n=Yn.from(Un(e,r,r+32)).toNumber();return Un(e,r+32,r+32+n)}function ps(e){return e.match(/^ipfs:\/\/ipfs\//i)?e=e.substring(12):e.match(/^ipfs:\/\//i)?e=e.substring(7):$a.throwArgumentError("unsupported IPFS format","link",e),"https://gateway.ipfs.io/ipfs/".concat(e)}function ms(e){const t=Rn(e);if(t.length>32)throw new Error("internal; should not happen");const r=new Uint8Array(32);return r.set(t,32-t.length),r}function gs(e){if(e.length%32===0)return e;const t=new Uint8Array(32*Math.ceil(e.length/32));return t.set(e),t}function As(e){const t=[];let r=0;for(let n=0;n<e.length;n++)t.push(null),r+=32;for(let n=0;n<e.length;n++){const i=Rn(e[n]);t[n]=ms(r),t.push(ms(i.length)),t.push(gs(i)),r+=32+32*Math.ceil(i.length/32)}return jn(t)}class ys{constructor(e,t,r,n){ln(this,"provider",e),ln(this,"name",r),ln(this,"address",e.formatter.address(t)),ln(this,"_resolvedAddress",n)}supportsWildcard(){return this._supportsEip2544||(this._supportsEip2544=this.provider.call({to:this.address,data:"0x01ffc9a79061b92300000000000000000000000000000000000000000000000000000000"}).then((e=>Yn.from(e).eq(1))).catch((e=>{if(e.code===on.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,e}))),this._supportsEip2544}_fetch(e,t){return Za(this,void 0,void 0,(function*(){const r={to:this.address,ccipReadEnabled:!0,data:jn([e,Ua(this.name),t||"0x"])};let n=!1;var i;(yield this.supportsWildcard())&&(n=!0,r.data=jn(["0x9061b923",As([(i=this.name,Fn(In(Da(i).map((e=>{if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");const t=new Uint8Array(e.length+1);return t.set(e,1),t[0]=t.length-1,t}))))+"00"),r.data])]));try{let e=yield this.provider.call(r);return Rn(e).length%32===4&&$a.throwError("resolver threw error",on.errors.CALL_EXCEPTION,{transaction:r,data:e}),n&&(e=hs(e,0)),e}catch(o){if(o.code===on.errors.CALL_EXCEPTION)return null;throw o}}))}_fetchBytes(e,t){return Za(this,void 0,void 0,(function*(){const r=yield this._fetch(e,t);return null!=r?hs(r,0):null}))}_getAddress(e,t){const r=ss[String(e)];if(null==r&&$a.throwError("unsupported coin type: ".concat(e),on.errors.UNSUPPORTED_OPERATION,{operation:"getAddress(".concat(e,")")}),"eth"===r.ilk)return this.provider.formatter.address(t);const n=Rn(t);if(null!=r.p2pkh){const e=t.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(e){const t=parseInt(e[1],16);if(e[2].length===2*t&&t>=1&&t<=75)return us(In([[r.p2pkh],"0x"+e[2]]))}}if(null!=r.p2sh){const e=t.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(e){const t=parseInt(e[1],16);if(e[2].length===2*t&&t>=1&&t<=75)return us(In([[r.p2sh],"0x"+e[2]]))}}if(null!=r.prefix){const e=n[1];let t=n[0];if(0===t?20!==e&&32!==e&&(t=-1):t=-1,t>=0&&n.length===2+e&&e>=1&&e<=75){const e=Ka().toWords(n.slice(2));return e.unshift(t),Ka().encode(r.prefix,e)}}return null}getAddress(e){return Za(this,void 0,void 0,(function*(){if(null==e&&(e=60),60===e)try{const e=yield this._fetch("0x3b3b57de");return"0x"===e||"0x0000000000000000000000000000000000000000000000000000000000000000"===e?null:this.provider.formatter.callAddress(e)}catch(n){if(n.code===on.errors.CALL_EXCEPTION)return null;throw n}const t=yield this._fetchBytes("0xf1cb7e06",ls(e));if(null==t||"0x"===t)return null;const r=this._getAddress(e,t);return null==r&&$a.throwError("invalid or unsupported coin data",on.errors.UNSUPPORTED_OPERATION,{operation:"getAddress(".concat(e,")"),coinType:e,data:t}),r}))}getAvatar(){return Za(this,void 0,void 0,(function*(){const e=[{type:"name",content:this.name}];try{const t=yield this.getText("avatar");if(null==t)return null;for(let r=0;r<fs.length;r++){const n=t.match(fs[r]);if(null==n)continue;const i=n[1].toLowerCase();switch(i){case"https":return e.push({type:"url",content:t}),{linkage:e,url:t};case"data":return e.push({type:"data",content:t}),{linkage:e,url:t};case"ipfs":return e.push({type:"ipfs",content:t}),{linkage:e,url:ps(t)};case"erc721":case"erc1155":{const r="erc721"===i?"0xc87b56dd":"0x0e89341c";e.push({type:i,content:t});const o=this._resolvedAddress||(yield this.getAddress()),a=(n[2]||"").split("/");if(2!==a.length)return null;const s=yield this.provider.formatter.address(a[0]),l=Qn(Yn.from(a[1]).toHexString(),32);if("erc721"===i){const t=this.provider.formatter.callAddress(yield this.provider.call({to:s,data:jn(["0x6352211e",l])}));if(o!==t)return null;e.push({type:"owner",content:t})}else if("erc1155"===i){const t=Yn.from(yield this.provider.call({to:s,data:jn(["0x00fdd58e",Qn(o,32),l])}));if(t.isZero())return null;e.push({type:"balance",content:t.toString()})}const u={to:this.provider.formatter.address(a[0]),data:jn([r,l])};let c=ds(yield this.provider.call(u),0);if(null==c)return null;e.push({type:"metadata-url-base",content:c}),"erc1155"===i&&(c=c.replace("{id}",l.substring(2)),e.push({type:"metadata-url-expanded",content:c})),c.match(/^ipfs:/i)&&(c=ps(c)),e.push({type:"metadata-url",content:c});const f=yield aa(c);if(!f)return null;e.push({type:"metadata",content:JSON.stringify(f)});let d=f.image;if("string"!==typeof d)return null;if(d.match(/^(https:\/\/|data:)/i));else{if(null==d.match(cs))return null;e.push({type:"url-ipfs",content:d}),d=ps(d)}return e.push({type:"url",content:d}),{linkage:e,url:d}}}}}catch(t){}return null}))}getContentHash(){return Za(this,void 0,void 0,(function*(){const e=yield this._fetchBytes("0xbc1c58d1");if(null==e||"0x"===e)return null;const t=e.match(/^0xe3010170(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(t){const e=parseInt(t[3],16);if(t[4].length===2*e)return"ipfs://"+ha.encode("0x"+t[1])}const r=e.match(/^0xe5010172(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(r){const e=parseInt(r[3],16);if(r[4].length===2*e)return"ipns://"+ha.encode("0x"+r[1])}const n=e.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(n&&64===n[1].length)return"bzz://"+n[1];const i=e.match(/^0x90b2c605([0-9a-f]*)$/);if(i&&68===i[1].length){const e={"=":"","+":"-","/":"_"};return"sia://"+$o("0x"+i[1]).replace(/[=+\/]/g,(t=>e[t]))}return $a.throwError("invalid or unsupported content hash data",on.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:e})}))}getText(e){return Za(this,void 0,void 0,(function*(){let t=Ni(e);t=In([ls(64),ls(t.length),t]),t.length%32!==0&&(t=In([t,Qn("0x",32-e.length%32)]));const r=yield this._fetchBytes("0x59d1d43c",Fn(t));return null==r||"0x"===r?null:Ci(r)}))}}let vs=null,bs=1;class ws extends fa{constructor(e){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),ln(this,"anyNetwork","any"===e),this.anyNetwork&&(e=this.detectNetwork()),e instanceof Promise)this._networkPromise=e,e.catch((e=>{})),this._ready().catch((e=>{}));else{const t=un(new.target,"getNetwork")(e);
2t?(ln(this,"_network",t),this.emit("network",t,null)):$a.throwArgumentError("invalid network","network",e)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return Za(this,void 0,void 0,(function*(){if(null==this._network){let t=null;if(this._networkPromise)try{t=yield this._networkPromise}catch(e){}null==t&&(t=yield this.detectNetwork()),t||$a.throwError("no network detected",on.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=t:ln(this,"_network",t),this.emit("network",t,null))}return this._network}))}get ready(){return sa((()=>this._ready().then((e=>e),(e=>{if(e.code!==on.errors.NETWORK_ERROR||"noNetwork"!==e.event)throw e}))))}static getFormatter(){return null==vs&&(vs=new Xa),vs}static getNetwork(e){return function(e){if(null==e)return null;if("number"===typeof e){for(const t in Va){const r=Va[t];if(r.chainId===e)return{name:r.name,chainId:r.chainId,ensAddress:r.ensAddress||null,_defaultProvider:r._defaultProvider||null}}return{chainId:e,name:"unknown"}}if("string"===typeof e){const t=Va[e];return null==t?null:{name:t.name,chainId:t.chainId,ensAddress:t.ensAddress,_defaultProvider:t._defaultProvider||null}}const t=Va[e.name];if(!t)return"number"!==typeof e.chainId&&ja.throwArgumentError("invalid network chainId","network",e),e;0!==e.chainId&&e.chainId!==t.chainId&&ja.throwArgumentError("network chainId mismatch","network",e);let r=e._defaultProvider||null;var n;return null==r&&t._defaultProvider&&(r=(n=t._defaultProvider)&&"function"===typeof n.renetwork?t._defaultProvider.renetwork(e):t._defaultProvider),{name:e.name,chainId:t.chainId,ensAddress:e.ensAddress||t.ensAddress||null,_defaultProvider:r}}(null==e?"homestead":e)}ccipReadFetch(e,t,r){return Za(this,void 0,void 0,(function*(){if(this.disableCcipRead||0===r.length)return null;const n=e.to.toLowerCase(),i=t.toLowerCase(),o=[];for(let e=0;e<r.length;e++){const t=r[e],a=t.replace("{sender}",n).replace("{data}",i),s=t.indexOf("{data}")>=0?null:JSON.stringify({data:i,sender:n}),l=yield aa({url:a,errorPassThrough:!0},s,((e,t)=>(e.status=t.statusCode,e)));if(l.data)return l.data;const u=l.message||"unknown error";if(l.status>=400&&l.status<500)return $a.throwError("response not found during CCIP fetch: ".concat(u),on.errors.SERVER_ERROR,{url:t,errorMessage:u});o.push(u)}return $a.throwError("error encountered during CCIP fetch: ".concat(o.map((e=>JSON.stringify(e))).join(", ")),on.errors.SERVER_ERROR,{urls:r,errorMessages:o})}))}_getInternalBlockNumber(e){return Za(this,void 0,void 0,(function*(){if(yield this._ready(),e>0)for(;this._internalBlockNumber;){const t=this._internalBlockNumber;try{const r=yield t;if(ns()-r.respTime<=e)return r.blockNumber;break}catch(n){if(this._internalBlockNumber===t)break}}const t=ns(),r=cn({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then((e=>null),(e=>e))}).then((e=>{let{blockNumber:n,networkError:i}=e;if(i)throw this._internalBlockNumber===r&&(this._internalBlockNumber=null),i;const o=ns();return n=Yn.from(n).toNumber(),n<this._maxInternalBlockNumber&&(n=this._maxInternalBlockNumber),this._maxInternalBlockNumber=n,this._setFastBlockNumber(n),{blockNumber:n,reqTime:t,respTime:o}}));return this._internalBlockNumber=r,r.catch((e=>{this._internalBlockNumber===r&&(this._internalBlockNumber=null)})),(yield r).blockNumber}))}poll(){return Za(this,void 0,void 0,(function*(){const e=bs++,t=[];let r=null;try{r=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(n){return void this.emit("error",n)}if(this._setFastBlockNumber(r),this.emit("poll",e,r),r!==this._lastBlockNumber){if(-2===this._emitted.block&&(this._emitted.block=r-1),Math.abs(this._emitted.block-r)>1e3)$a.warn("network block skew detected; skipping block events (emitted=".concat(this._emitted.block," blockNumber").concat(r,")")),this.emit("error",$a.makeError("network block skew detected",on.errors.NETWORK_ERROR,{blockNumber:r,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",r);else for(let e=this._emitted.block+1;e<=r;
vendor: 17,021 bytes, line 2
2e++)this.emit("block",e);this._emitted.block!==r&&(this._emitted.block=r,Object.keys(this._emitted).forEach((e=>{if("block"===e)return;const t=this._emitted[e];"pending"!==t&&r-t>12&&delete this._emitted[e]}))),-2===this._lastBlockNumber&&(this._lastBlockNumber=r-1),this._events.forEach((e=>{switch(e.type){case"tx":{const r=e.hash;let n=this.getTransactionReceipt(r).then((e=>e&&null!=e.blockNumber?(this._emitted["t:"+r]=e.blockNumber,this.emit(r,e),null):null)).catch((e=>{this.emit("error",e)}));t.push(n);break}case"filter":if(!e._inflight){e._inflight=!0,-2===e._lastBlockNumber&&(e._lastBlockNumber=r-1);const n=e.filter;n.fromBlock=e._lastBlockNumber+1,n.toBlock=r;const i=n.toBlock-this._maxFilterBlockRange;i>n.fromBlock&&(n.fromBlock=i),n.fromBlock<0&&(n.fromBlock=0);const o=this.getLogs(n).then((t=>{e._inflight=!1,0!==t.length&&t.forEach((t=>{t.blockNumber>e._lastBlockNumber&&(e._lastBlockNumber=t.blockNumber),this._emitted["b:"+t.blockHash]=t.blockNumber,this._emitted["t:"+t.transactionHash]=t.blockNumber,this.emit(n,t)}))})).catch((t=>{this.emit("error",t),e._inflight=!1}));t.push(o)}}})),this._lastBlockNumber=r,Promise.all(t).then((()=>{this.emit("didPoll",e)})).catch((e=>{this.emit("error",e)}))}else this.emit("didPoll",e)}))}resetEventsBlock(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return Za(this,void 0,void 0,(function*(){return $a.throwError("provider does not support network detection",on.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})}))}getNetwork(){return Za(this,void 0,void 0,(function*(){const e=yield this._ready(),t=yield this.detectNetwork();if(e.chainId!==t.chainId){if(this.anyNetwork)return this._network=t,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",t,e),yield is(0),this._network;const r=$a.makeError("underlying network changed",on.errors.NETWORK_ERROR,{event:"changed",network:e,detectedNetwork:t});throw this.emit("error",r),r}return e}))}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then((e=>{this._setFastBlockNumber(e)}),(e=>{})),null!=this._fastBlockNumber?this._fastBlockNumber:-1}get polling(){return null!=this._poller}set polling(e){e&&!this._poller?(this._poller=setInterval((()=>{this.poll()}),this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout((()=>{this.poll(),this._bootstrapPoll=setTimeout((()=>{this._poller||this.poll(),this._bootstrapPoll=null}),this.pollingInterval)}),0))):!e&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(e){if("number"!==typeof e||e<=0||parseInt(String(e))!=e)throw new Error("invalid polling interval");this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval((()=>{this.poll()}),this._pollingInterval))}_getFastBlockNumber(){const e=ns();return e-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=e,this._fastBlockNumberPromise=this.getBlockNumber().then((e=>((null==this._fastBlockNumber||e>this._fastBlockNumber)&&(this._fastBlockNumber=e),this._fastBlockNumber)))),this._fastBlockNumberPromise}_setFastBlockNumber(e){null!=this._fastBlockNumber&&e<this._fastBlockNumber||(this._fastQueryDate=ns(),(null==this._fastBlockNumber||e>this._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))}waitForTransaction(e,t,r){return Za(this,void 0,void 0,(function*(){return this._waitForTransaction(e,null==t?1:t,r||0,null)}))}_waitForTransaction(e,t,r,n){return Za(this,void 0,void 0,(function*(){const i=yield this.getTransactionReceipt(e);return(i?i.confirmations:0)>=t?i:new Promise(((i,o)=>{const a=[];let s=!1;const l=function(){return!!s||(s=!0,a.forEach((e=>{e()})),!1)},u=e=>{e.confirmations<t||l()||i(e)};if(this.on(e,u),a.push((()=>{this.removeListener(e,u)})),n){let r=n.startBlock,i=null;const u=a=>Za(this,void 0,void 0,(function*(){s||(yield is(1e3),this.getTransactionCount(n.from).then((c=>Za(this,void 0,void 0,(function*(){if(!s){if(c<=n.nonce)r=a;else{{const t=yield this.getTransaction(e);if(t&&null!=t.blockNumber)return}for(null==i&&(i=r-3,i<n.startBlock&&(i=n.startBlock));i<=a;){if(s)return;const r=yield this.getBlockWithTransactions(i);for(let i=0;i<r.transactions.length;i++){const a=r.transactions[i];if(a.hash===e)return;if(a.from===n.from&&a.nonce===n.nonce){if(s)return;const r=yield this.waitForTransaction(a.hash,t);if(l())return;let i="replaced";return a.data===n.data&&a.to===n.to&&a.value.eq(n.value)?i="repriced":"0x"===a.data&&a.from===a.to&&a.value.isZero()&&(i="cancelled"),void o($a.makeError("transaction was replaced",on.errors.TRANSACTION_REPLACED,{cancelled:"replaced"===i||"cancelled"===i,reason:i,replacement:this._wrapTransaction(a),hash:e,receipt:r}))}}i++}}s||this.once("block",u)}}))),(e=>{s||this.once("block",u)})))}));if(s)return;this.once("block",u),a.push((()=>{this.removeListener("block",u)}))}if("number"===typeof r&&r>0){const e=setTimeout((()=>{l()||o($a.makeError("timeout exceeded",on.errors.TIMEOUT,{timeout:r}))}),r);e.unref&&e.unref(),a.push((()=>{clearTimeout(e)}))}}))}))}getBlockNumber(){return Za(this,void 0,void 0,(function*(){return this._getInternalBlockNumber(0)}))}getGasPrice(){return Za(this,void 0,void 0,(function*(){yield this.getNetwork();const e=yield this.perform("getGasPrice",{});try{return Yn.from(e)}catch(t){return $a.throwError("bad result from backend",on.errors.SERVER_ERROR,{method:"getGasPrice",result:e,error:t})}}))}getBalance(e,t){return Za(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield cn({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform("getBalance",r);try{return Yn.from(n)}catch(i){return $a.throwError("bad result from backend",on.errors.SERVER_ERROR,{method:"getBalance",params:r,result:n,error:i})}}))}getTransactionCount(e,t){return Za(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield cn({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform("getTransactionCount",r);try{return Yn.from(n).toNumber()}catch(i){return $a.throwError("bad result from backend",on.errors.SERVER_ERROR,{method:"getTransactionCount",params:r,result:n,error:i})}}))}getCode(e,t){return Za(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield cn({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform("getCode",r);try{return Fn(n)}catch(i){return $a.throwError("bad result from backend",on.errors.SERVER_ERROR,{method:"getCode",params:r,result:n,error:i})}}))}getStorageAt(e,t,r){return Za(this,void 0,void 0,(function*(){yield this.getNetwork();const n=yield cn({address:this._getAddress(e),blockTag:this._getBlockTag(r),position:Promise.resolve(t).then((e=>zn(e)))}),i=yield this.perform("getStorageAt",n);try{return Fn(i)}catch(o){return $a.throwError("bad result from backend",on.errors.SERVER_ERROR,{method:"getStorageAt",params:n,result:i,error:o})}}))}_wrapTransaction(e,t,r){if(null!=t&&32!==Dn(t))throw new Error("invalid response - sendTransaction");const n=e;return null!=t&&e.hash!==t&&$a.throwError("Transaction hash mismatch from Provider.sendTransaction.",on.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:t}),n.wait=(t,n)=>Za(this,void 0,void 0,(function*(){let i;null==t&&(t=1),null==n&&(n=0),0!==t&&null!=r&&(i={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:r});const o=yield this._waitForTransaction(e.hash,t,n,i);return null==o&&0===t?null:(this._emitted["t:"+e.hash]=o.blockNumber,0===o.status&&$a.throwError("transaction failed",on.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:o}),o)})),n}sendTransaction(e){return Za(this,void 0,void 0,(function*(){yield this.getNetwork();const t=yield Promise.resolve(e).then((e=>Fn(e))),r=this.formatter.transaction(e);null==r.confirmations&&(r.confirmations=0);const n=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{const e=yield this.perform("sendTransaction",{signedTransaction:t});return this._wrapTransaction(r,e,n)}catch(i){throw i.transaction=r,i.transactionHash=r.hash,i}}))}_getTransactionRequest(e){return Za(this,void 0,void 0,(function*(){const t=yield e,r={};return["from","to"].forEach((e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then((e=>e?this._getAddress(e):null)))})),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach((e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then((e=>e?Yn.from(e):null)))})),["type"].forEach((e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then((e=>null!=e?e:null)))})),t.accessList&&(r.accessList=this.formatter.accessList(t.accessList)),["data"].forEach((e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then((e=>e?Fn(e):null)))})),this.formatter.transactionRequest(yield cn(r))}))}_getFilter(e){return Za(this,void 0,void 0,(function*(){e=yield e;const t={};return null!=e.address&&(t.address=this._getAddress(e.address)),["blockHash","topics"].forEach((r=>{null!=e[r]&&(t[r]=e[r])})),["fromBlock","toBlock"].forEach((r=>{null!=e[r]&&(t[r]=this._getBlockTag(e[r]))})),this.formatter.filter(yield cn(t))}))}_call(e,t,r){return Za(this,void 0,void 0,(function*(){r>=10&&$a.throwError("CCIP read exceeded maximum redirections",on.errors.SERVER_ERROR,{redirects:r,transaction:e});const n=e.to,i=yield this.perform("call",{transaction:e,blockTag:t});if(r>=0&&"latest"===t&&null!=n&&"0x556f1830"===i.substring(0,10)&&Dn(i)%32===4)try{const o=Un(i,4),a=Un(o,0,32);Yn.from(a).eq(n)||$a.throwError("CCIP Read sender did not match",on.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:i});const s=[],l=Yn.from(Un(o,32,64)).toNumber(),u=Yn.from(Un(o,l,l+32)).toNumber(),c=Un(o,l+32);for(let t=0;t<u;t++){const r=ds(c,32*t);null==r&&$a.throwError("CCIP Read contained corrupt URL string",on.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:i}),s.push(r)}const f=hs(o,64);Yn.from(Un(o,100,128)).isZero()||$a.throwError("CCIP Read callback selector included junk",on.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:i});const d=Un(o,96,100),h=hs(o,128),p=yield this.ccipReadFetch(e,f,s);null==p&&$a.throwError("CCIP Read disabled or provided no URLs",on.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:i});const m={to:n,data:jn([d,As([p,h])])};return this._call(m,t,r+1)}catch(o){if(o.code===on.errors.SERVER_ERROR)throw o}try{return Fn(i)}catch(o){return $a.throwError("bad result from backend",on.errors.SERVER_ERROR,{method:"call",params:{transaction:e,blockTag:t},result:i,error:o})}}))}call(e,t){return Za(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield cn({transaction:this._getTransactionRequest(e),blockTag:this._getBlockTag(t),ccipReadEnabled:Promise.resolve(e.ccipReadEnabled)});return this._call(r.transaction,r.blockTag,r.ccipReadEnabled?0:-1)}))}estimateGas(e){return Za(this,void 0,void 0,(function*(){yield this.getNetwork();const t=yield cn({transaction:this._getTransactionRequest(e)}),r=yield this.perform("estimateGas",t);try{return Yn.from(r)}catch(n){return $a.throwError("bad result from backend",on.errors.SERVER_ERROR,{method:"estimateGas",params:t,result:r,error:n})}}))}_getAddress(e){return Za(this,void 0,void 0,(function*(){"string"!==typeof(e=yield e)&&$a.throwArgumentError("invalid address or ENS name","name",e);const t=yield this.resolveName(e);return null==t&&$a.throwError("ENS name not configured",on.errors.UNSUPPORTED_OPERATION,{operation:"resolveName(".concat(JSON.stringify(e),")")}),t}))}_getBlock(e,t){return Za(this,void 0,void 0,(function*(){yield this.getNetwork(),e=yield e;let r=-128;const n={includeTransactions:!!t};if(Bn(e,32))n.blockHash=e;else try{n.blockTag=yield this._getBlockTag(e),Bn(n.blockTag)&&(r=parseInt(n.blockTag.substring(2),16))}catch(i){$a.throwArgumentError("invalid block hash or block tag","blockHashOrBlockTag",e)}return sa((()=>Za(this,void 0,void 0,(function*(){const e=yield this.perform("getBlock",n);if(null==e)return null!=n.blockHash&&null==this._emitted["b:"+n.blockHash]||null!=n.blockTag&&r>this._emitted.block?null:void 0;if(t){let t=null;for(let n=0;n<e.transactions.length;n++){const r=e.transactions[n];if(null==r.blockNumber)r.confirmations=0;else if(null==r.confirmations){null==t&&(t=yield this._getInternalBlockNumber(100+2*this.pollingInterval));let e=t-r.blockNumber+1;e<=0&&(e=1),r.confirmations=e}}const r=this.formatter.blockWithTransactions(e);return r.transactions=r.transactions.map((e=>this._wrapTransaction(e))),r}return this.formatter.block(e)}))),{oncePoll:this})}))}getBlock(e){return this._getBlock(e,!1)}getBlockWithTransactions(e){return this._getBlock(e,!0)}getTransaction(e){return Za(this,void 0,void 0,(function*(){yield this.getNetwork(),e=yield e;const t={transactionHash:this.formatter.hash(e,!0)};return sa((()=>Za(this,void 0,void 0,(function*(){const r=yield this.perform("getTransaction",t);if(null==r)return null==this._emitted["t:"+e]?null:void 0;const n=this.formatter.transactionResponse(r);if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){let e=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-n.blockNumber+1;e<=0&&(e=1),n.confirmations=e}return this._wrapTransaction(n)}))),{oncePoll:this})}))}getTransactionReceipt(e){return Za(this,void 0,void 0,(function*(){yield this.getNetwork(),e=yield e;const t={transactionHash:this.formatter.hash(e,!0)};return sa((()=>Za(this,void 0,void 0,(function*(){const r=yield this.perform("getTransactionReceipt",t);if(null==r)return null==this._emitted["t:"+e]?null:void 0;if(null==r.blockHash)return;const n=this.formatter.receipt(r);if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){let e=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-n.blockNumber+1;e<=0&&(e=1),n.confirmations=e}return n}))),{oncePoll:this})}))}getLogs(e){return Za(this,void 0,void 0,(function*(){yield this.getNetwork();const t=yield cn({filter:this._getFilter(e)}),r=yield this.perform("getLogs",t);return r.forEach((e=>{null==e.removed&&(e.removed=!1)})),Xa.arrayOf(this.formatter.filterLog.bind(this.formatter))(r)}))}getEtherPrice(){return Za(this,void 0,void 0,(function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})}))}_getBlockTag(e){return Za(this,void 0,void 0,(function*(){if("number"===typeof(e=yield e)&&e<0){e%1&&$a.throwArgumentError("invalid BlockTag","blockTag",e);let t=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return t+=e,t<0&&(t=0),this.formatter.blockTag(t)}return this.formatter.blockTag(e)}))}getResolver(e){return Za(this,void 0,void 0,(function*(){let t=e;for(;;){if(""===t||"."===t)return null;if("eth"!==e&&"eth"===t)return null;const r=yield this._getResolver(t,"getResolver");if(null!=r){const n=new ys(this,r,e);return t===e||(yield n.supportsWildcard())?n:null}t=t.split(".").slice(1).join(".")}}))}_getResolver(e,t){return Za(this,void 0,void 0,(function*(){null==t&&(t="ENS");const r=yield this.getNetwork();r.ensAddress||$a.throwError("network does not support ENS",on.errors.UNSUPPORTED_OPERATION,{operation:t,network:r.name});try{const t=yield this.call({to:r.ensAddress,data:"0x0178b8bf"+Ua(e).substring(2)});return this.formatter.callAddress(t)}catch(n){}return null}))}resolveName(e){return Za(this,void 0,void 0,(function*(){e=yield e;try{return Promise.resolve(this.formatter.address(e))}catch(r){if(Bn(e))throw r}"string"!==typeof e&&$a.throwArgumentError("invalid ENS name","name",e);const t=yield this.getResolver(e);return t?yield t.getAddress():null}))}lookupAddress(e){return Za(this,void 0,void 0,(function*(){e=yield e;const t=(e=this.formatter.address(e)).substring(2).toLowerCase()+".addr.reverse",r=yield this._getResolver(t,"lookupAddress");if(null==r)return null;const n=ds(yield this.call({to:r,data:"0x691f3431"+Ua(t).substring(2)}),0);return(yield this.resolveName(n))!=e?null:n}))}getAvatar(e){return Za(this,void 0,void 0,(function*(){let t=null;if(Bn(e)){const r=this.formatter.address(e).substring(2).toLowerCase()+".addr.reverse",i=yield this._getResolver(r,"getAvatar");if(!i)return null;t=new ys(this,i,r);try{const e=yield t.getAvatar();if(e)return e.url}catch(n){if(n.code!==on.errors.CALL_EXCEPTION)throw n}try{const e=ds(yield this.call({to:i,data:"0x691f3431"+Ua(r).substring(2)}),0);t=yield this.getResolver(e)}catch(n){if(n.code!==on.errors.CALL_EXCEPTION)throw n;return null}}else if(t=yield this.getResolver(e),!t)return null;const r=yield t.getAvatar();return null==r?null:r.url}))}perform(e,t){return $a.throwError(e+" not implemented",on.errors.NOT_IMPLEMENT
2ED,{operation:e})}_startEvent(e){this.polling=this._events.filter((e=>e.pollable())).length>0}_stopEvent(e){this.polling=this._events.filter((e=>e.pollable())).length>0}_addEventListener(e,t,r){const n=new as(rs(e),t,r);return this._events.push(n),this._startEvent(n),this}on(e,t){return this._addEventListener(e,t,!1)}once(e,t){return this._addEventListener(e,t,!0)}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];let i=!1,o=[],a=rs(e);return this._events=this._events.filter((e=>e.tag!==a||(setTimeout((()=>{e.listener.apply(this,r)}),0),i=!0,!e.once||(o.push(e),!1)))),o.forEach((e=>{this._stopEvent(e)})),i}listenerCount(e){if(!e)return this._events.length;let t=rs(e);return this._events.filter((e=>e.tag===t)).length}listeners(e){if(null==e)return this._events.map((e=>e.listener));let t=rs(e);return this._events.filter((e=>e.tag===t)).map((e=>e.listener))}off(e,t){if(null==t)return this.removeAllListeners(e);const r=[];let n=!1,i=rs(e);return this._events=this._events.filter((e=>e.tag!==i||e.listener!=t||(!!n||(n=!0,r.push(e),!1)))),r.forEach((e=>{this._stopEvent(e)})),this}removeAllListeners(e){let t=[];if(null==e)t=this._events,this._events=[];else{const r=rs(e);this._events=this._events.filter((e=>e.tag!==r||(t.push(e),!1)))}return t.forEach((e=>{this._stopEvent(e)})),this}}var Es=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{l(n.next(e))}catch(t){o(t)}}function s(e){try{l(n.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))};const ks=new on(An),Ss=["call","estimateGas"];function xs(e,t){if(null==e)return null;if("string"===typeof e.message&&e.message.match("reverted")){const r=Bn(e.data)?e.data:null;if(!t||r)return{message:e.message,data:r}}if("object"===typeof e){for(const r in e){const n=xs(e[r],t);if(n)return n}return null}if("string"===typeof e)try{return xs(JSON.parse(e),t)}catch(r){}return null}function Ns(e,t,r){const n=r.transaction||r.signedTransaction;if("call"===e){const e=xs(t,!0);if(e)return e.data;ks.throwError("missing revert data in call exception; Transaction reverted without a reason string",on.errors.CALL_EXCEPTION,{data:"0x",transaction:n,error:t})}if("estimateGas"===e){let r=xs(t.body,!1);null==r&&(r=xs(t,!1)),r&&ks.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",on.errors.UNPREDICTABLE_GAS_LIMIT,{reason:r.message,method:e,transaction:n,error:t})}let i=t.message;throw t.code===on.errors.SERVER_ERROR&&t.error&&"string"===typeof t.error.message?i=t.error.message:"string"===typeof t.body?i=t.body:"string"===typeof t.responseText&&(i=t.responseText),i=(i||"").toLowerCase(),i.match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&ks.throwError("insufficient funds for intrinsic transaction cost",on.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:n}),i.match(/nonce (is )?too low/i)&&ks.throwError("nonce has already been used",on.errors.NONCE_EXPIRED,{error:t,method:e,transaction:n}),i.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&ks.throwError("replacement fee too low",on.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:n}),i.match(/only replay-protected/i)&&ks.throwError("legacy pre-eip-155 transactions not supported",on.errors.UNSUPPORTED_OPERATION,{error:t,method:e,transaction:n}),Ss.indexOf(e)>=0&&i.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&ks.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",on.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:n}),t}function Cs(e){return new Promise((function(t){setTimeout(t,e)}))}function _s(e){if(e.error){const t=new Error(e.error.message);throw t.code=e.error.code,t.data=e.error.data,t}return e.result}function Ms(e){return e?e.toLowerCase():e}const Ps={};class Ts extends En{constructor(e,t,r){if(super(),e!==Ps)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");ln(this,"provider",t),null==r&&(r=0),"string"===typeof r?(ln(this,"_address",this.provider.formatter.address(r)),ln(this,"_index",null)):"number"===typeof r?(ln(this,"_index",r),ln(this,"_address",null)):ks.throwArgumentError("invalid address or index","addressOrIndex",r)}connect(e){return ks.throwError("cannot alter JSON-RPC Signer connection",on.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new Rs(Ps,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then((e=>(e.length<=this._index&&ks.throwError("unknown account #"+this._index,on.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(e[this._index]))))}sendUncheckedTransaction(e){e=fn(e);const t=this.getAddress().then((e=>(e&&(e=e.toLowerCase()),e)));
2if(null==e.gasLimit){const r=fn(e);r.from=t,e.gasLimit=this.provider.estimateGas(r)}return null!=e.to&&(e.to=Promise.resolve(e.to).then((e=>Es(this,void 0,void 0,(function*(){if(null==e)return null;const t=yield this.provider.resolveName(e);return null==t&&ks.throwArgumentError("provided ENS name resolves to null","tx.to",e),t}))))),cn({tx:cn(e),sender:t}).then((t=>{let{tx:r,sender:n}=t;null!=r.from?r.from.toLowerCase()!==n&&ks.throwArgumentError("from address mismatch","transaction",e):r.from=n;const i=this.provider.constructor.hexlifyTransaction(r,{from:!0});return this.provider.send("eth_sendTransaction",[i]).then((e=>e),(e=>("string"===typeof e.message&&e.message.match(/user denied/i)&&ks.throwError("user rejected transaction",on.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:r}),Ns("sendTransaction",e,i))))}))}signTransaction(e){return ks.throwError("signing transactions is unsupported",on.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(e){return Es(this,void 0,void 0,(function*(){const t=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),r=yield this.sendUncheckedTransaction(e);try{return yield sa((()=>Es(this,void 0,void 0,(function*(){const e=yield this.provider.getTransaction(r);if(null!==e)return this.provider._wrapTransaction(e,r,t)}))),{oncePoll:this.provider})}catch(n){throw n.transactionHash=r,n}}))}signMessage(e){return Es(this,void 0,void 0,(function*(){const t="string"===typeof e?Ni(e):e,r=yield this.getAddress();try{return yield this.provider.send("personal_sign",[Fn(t),r.toLowerCase()])}catch(n){throw"string"===typeof n.message&&n.message.match(/user denied/i)&&ks.throwError("user rejected signing",on.errors.ACTION_REJECTED,{action:"signMessage",from:r,messageData:e}),n}}))}_legacySignMessage(e){return Es(this,void 0,void 0,(function*(){const t="string"===typeof e?Ni(e):e,r=yield this.getAddress();try{return yield this.provider.send("eth_sign",[r.toLowerCase(),Fn(t)])}catch(n){throw"string"===typeof n.message&&n.message.match(/user denied/i)&&ks.throwError("user rejected signing",on.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:r,messageData:e}),n}}))}_signTypedData(e,t,r){return Es(this,void 0,void 0,(function*(){const n=yield qi.resolveNames(e,t,r,(e=>this.provider.resolveName(e))),i=yield this.getAddress();try{return yield this.provider.send("eth_signTypedData_v4",[i.toLowerCase(),JSON.stringify(qi.getPayload(n.domain,t,n.value))])}catch(o){throw"string"===typeof o.message&&o.message.match(/user denied/i)&&ks.throwError("user rejected signing",on.errors.ACTION_REJECTED,{action:"_signTypedData",from:i,messageData:{domain:n.domain,types:t,value:n.value}}),o}}))}unlock(e){return Es(this,void 0,void 0,(function*(){const t=this.provider,r=yield this.getAddress();return t.send("personal_unlockAccount",[r.toLowerCase(),e,null])}))}}class Rs extends Ts{sendTransaction(e){return this.sendUncheckedTransaction(e).then((e=>({hash:e,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:t=>this.provider.waitForTransaction(e,t)})))}}const Is={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};class Os extends ws{constructor(e,t){let r=t;null==r&&(r=new Promise(((e,t)=>{setTimeout((()=>{this.detectNetwork().then((t=>{e(t)}),(e=>{t(e)}))}),0)}))),super(r),e||(e=un(this.constructor,"defaultUrl")()),ln(this,"connection","string"===typeof e?Object.freeze({url:e}):Object.freeze(fn(e))),this._nextId=42}get _cache(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return"http://localhost:8545"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout((()=>{this._cache.detectNetwork=null}),0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return Es(this,void 0,void 0,(function*(){yield Cs(0);let e=null;try{e=yield this.send("eth_chainId",[])}catch(t){try{e=yield this.send("net_version",[])}catch(t){}}if(null!=e){const r=un(this.constructor,"getNetwork");try{return r(Yn.from(e).toNumber())}catch(t){return ks.throwError("could not detect network",on.errors.NETWORK_E
vendor: 4,274 bytes, line 2
2RROR,{chainId:e,event:"invalidNetwork",serverError:t})}}return ks.throwError("could not detect network",on.errors.NETWORK_ERROR,{event:"noNetwork"})}))}getSigner(e){return new Ts(Ps,this,e)}getUncheckedSigner(e){return this.getSigner(e).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then((e=>e.map((e=>this.formatter.address(e)))))}send(e,t){const r={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:mn(r),provider:this});const n=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(n&&this._cache[e])return this._cache[e];const i=aa(this.connection,JSON.stringify(r),_s).then((e=>(this.emit("debug",{action:"response",request:r,response:e,provider:this}),e)),(e=>{throw this.emit("debug",{action:"response",error:e,request:r,provider:this}),e}));return n&&(this._cache[e]=i,setTimeout((()=>{this._cache[e]=null}),0)),i}prepareRequest(e,t){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[Ms(t.address),t.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[Ms(t.address),t.blockTag]];case"getCode":return["eth_getCode",[Ms(t.address),t.blockTag]];case"getStorageAt":return["eth_getStorageAt",[Ms(t.address),Qn(t.position,32),t.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[t.signedTransaction]];case"getBlock":return t.blockTag?["eth_getBlockByNumber",[t.blockTag,!!t.includeTransactions]]:t.blockHash?["eth_getBlockByHash",[t.blockHash,!!t.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[t.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[t.transactionHash]];case"call":return["eth_call",[un(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0}),t.blockTag]];case"estimateGas":return["eth_estimateGas",[un(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0})]];case"getLogs":return t.filter&&null!=t.filter.address&&(t.filter.address=Ms(t.filter.address)),["eth_getLogs",[t.filter]]}return null}perform(e,t){return Es(this,void 0,void 0,(function*(){if("call"===e||"estimateGas"===e){const e=t.transaction;if(e&&null!=e.type&&Yn.from(e.type).isZero()&&null==e.maxFeePerGas&&null==e.maxPriorityFeePerGas){const r=yield this.getFeeData();null==r.maxFeePerGas&&null==r.maxPriorityFeePerGas&&((t=fn(t)).transaction=fn(e),delete t.transaction.type)}}const r=this.prepareRequest(e,t);null==r&&ks.throwError(e+" not implemented",on.errors.NOT_IMPLEMENTED,{operation:e});try{return yield this.send(r[0],r[1])}catch(n){return Ns(e,n,t)}}))}_startEvent(e){"pending"===e.tag&&this._startPending(),super._startEvent(e)}_startPending(){if(null!=this._pendingFilter)return;const e=this,t=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=t,t.then((function(r){return function n(){e.send("eth_getFilterChanges",[r]).then((function(r){if(e._pendingFilter!=t)return null;let n=Promise.resolve();return r.forEach((function(t){e._emitted["t:"+t.toLowerCase()]="pending",n=n.then((function(){return e.getTransaction(t).then((function(t){return e.emit("pending",t),null}))}))})),n.then((function(){return Cs(1e3)}))})).then((function(){if(e._pendingFilter==t)return setTimeout((function(){n()}),0),null;e.send("eth_uninstallFilter",[r])})).catch((e=>{}))}(),r})).catch((e=>{}))}_stopEvent(e){"pending"===e.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),super._stopEvent(e)}static hexlifyTransaction(e,t){const r=fn(Is);if(t)for(const a in t)t[a]&&(r[a]=!0);var n,i;i=r,(n=e)&&"object"===typeof n||sn.throwArgumentError("invalid object","object",n),Object.keys(n).forEach((e=>{i[e]||sn.throwArgumentError("invalid object key - "+e,"transaction:"+e,n)}));const o={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach((function(t){if(null==e[t])return;const r=zn(Yn.from(e[t]));"gasLimit"===t&&(t="gas"),o[t]=r})),["from","to","data"].forEach((function(t){null!=e[t]&&(o[t]=Fn(e[t]))})),e.accessList&&(o.accessList=Vo(e.accessList)),o}}const Bs=new on(An);let Ls=1;function Fs(e,t){const r="Web3LegacyFetcher";return function(e,n){const i={method:e,params:n,id:Ls++,jsonrpc:"2.0"};return new Promise(((e,n)=>
2{this.emit("debug",{action:"request",fetcher:r,request:mn(i),provider:this}),t(i,((t,o)=>{if(t)return this.emit("debug",{action:"response",fetcher:r,error:t,request:i,provider:this}),n(t);if(this.emit("debug",{action:"response",fetcher:r,request:i,response:o,provider:this}),o.error){const e=new Error(o.error.message);return e.code=o.error.code,e.data=o.error.data,n(e)}e(o.result)}))}))}}class Ds extends Os{constructor(e,t){null==e&&Bs.throwArgumentError("missing provider","provider",e);let r=null,n=null,i=null;"function"===typeof e?(r="unknown:",n=e):(r=e.host||e.path||"",!r&&e.isMetaMask&&(r="metamask"),i=e,e.request?(""===r&&(r="eip-1193:"),n=function(e){return function(t,r){null==r&&(r=[]);const n={method:t,params:r};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:mn(n),provider:this}),e.request(n).then((e=>(this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:n,response:e,provider:this}),e)),(e=>{throw this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:n,error:e,provider:this}),e}))}}(e)):e.sendAsync?n=Fs(0,e.sendAsync.bind(e)):e.send?n=Fs(0,e.send.bind(e)):Bs.throwArgumentError("unsupported provider","provider",e),r||(r="unknown:")),super(r,t),ln(this,"jsonRpcFetchFunc",n),ln(this,"provider",i)}send(e,t){return this.jsonRpcFetchFunc(e,t)}}const Us="abi/5.7.0",js=new on(Us);class zs{constructor(e,t,r,n){this.name=e,this.type=t,this.localName=r,this.dynamic=n}_throwError(e,t){js.throwArgumentError(e,this.localName,t)}}class Qs{constructor(e){ln(this,"wordSize",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}get data(){return jn(this._data)}get length(){return this._dataLength}_writeData(e){return this._data.push(e),this._dataLength+=e.length,e.length}appendWriter(e){return this._writeData(In(e._data))}writeBytes(e){let t=Rn(e);const r=t.length%this.wordSize;return r&&(t=In([t,this._padding.slice(r)])),this._writeData(t)}_getValue(e){let t=Rn(Yn.from(e));return t.length>this.wordSize&&js.throwError("value out-of-bounds",on.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=In([this._padding.slice(t.length%this.wordSize),t])),t}writeValue(e){return this._writeData(this._getValue(e))}writeUpdatableValue(){const e=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,t=>{this._data[e]=this._getValue(t)}}}class Hs{constructor(e,t,r,n){ln(this,"_data",Rn(e)),ln(this,"wordSize",t||32),ln(this,"_coerceFunc",r),ln(this,"allowLoose",n),this._offset=0}get data(){return Fn(this._data)}get consumed(){return this._offset}static coerce(e,t){let r=e.match("^u?int([0-9]+)$");return r&&parseInt(r[1])<=48&&(t=t.toNumber()),t}coerce(e,t){return this._coerceFunc?this._coerceFunc(e,t):Hs.coerce(e,t)}_peekBytes(e,t,r){let n=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+n>this._data.length&&(this.allowLoose&&r&&this._offset+t<=this._data.length?n=t:js.throwError("data out-of-bounds",on.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+n})),this._data.slice(this._offset,this._offset+n)}subReader(e){return new Hs(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(e,t){let r=this._peekBytes(0,e,!!t);return this._offset+=r.length,r.slice(0,e)}readValue(){return Yn.from(this.readBytes(this.wordSize))}}class qs extends zs{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,t){try{t=Ai(t)}catch(r){this._throwError(r.message,t)}return e.writeValue(t)}decode(e){return Ai(Qn(e.readValue().toHexString(),20))}}class Gs extends zs{constructor(e){super(e.name,e.type,void 0,e.dynamic),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,t){return this.coder.encode(e,t)}decode(e){return this.coder.decode(e)}}const Vs=new on(Us);function Ws(e,t,r){let n=null;if(Array.isArray(r))n=r;else if(r&&"object"===typeof r){let e={};n=t.map((t=>{const n=t.localName;return n||Vs.throwError("cannot encode object for signature with missing names",on.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:r}),e[n]&&Vs.throwError("cannot encode object for signature with duplicate names",on.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:r}),e[n]=!0,r[n]}))}else Vs.throwArgumentError("invalid tuple value","tuple",r);t.length!==n.length&&Vs.throwArgumentError("types/value length mismatch","tuple",r);let i=new Qs(e.wordSize),o=new Qs(e.wordSize),a=[];t.forEach(((e,t)=>{let r=n[t];
vendor: 35,447 bytes, line 2
2if(e.dynamic){let t=o.length;e.encode(o,r);let n=i.writeUpdatableValue();a.push((e=>{n(e+t)}))}else e.encode(i,r)})),a.forEach((e=>{e(i.length)}));let s=e.appendWriter(i);return s+=e.appendWriter(o),s}function Js(e,t){let r=[],n=e.subReader(0);t.forEach((t=>{let i=null;if(t.dynamic){let r=e.readValue(),a=n.subReader(r.toNumber());try{i=t.decode(a)}catch(o){if(o.code===on.errors.BUFFER_OVERRUN)throw o;i=o,i.baseType=t.name,i.name=t.localName,i.type=t.type}}else try{i=t.decode(e)}catch(o){if(o.code===on.errors.BUFFER_OVERRUN)throw o;i=o,i.baseType=t.name,i.name=t.localName,i.type=t.type}void 0!=i&&r.push(i)}));const i=t.reduce(((e,t)=>{const r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e}),{});t.forEach(((e,t)=>{let n=e.localName;if(!n||1!==i[n])return;if("length"===n&&(n="_length"),null!=r[n])return;const o=r[t];o instanceof Error?Object.defineProperty(r,n,{enumerable:!0,get:()=>{throw o}}):r[n]=o}));for(let o=0;o<r.length;o++){const e=r[o];e instanceof Error&&Object.defineProperty(r,o,{enumerable:!0,get:()=>{throw e}})}return Object.freeze(r)}class Ks extends zs{constructor(e,t,r){super("array",e.type+"["+(t>=0?t:"")+"]",r,-1===t||e.dynamic),this.coder=e,this.length=t}defaultValue(){const e=this.coder.defaultValue(),t=[];for(let r=0;r<this.length;r++)t.push(e);return t}encode(e,t){Array.isArray(t)||this._throwError("expected array value",t);let r=this.length;-1===r&&(r=t.length,e.writeValue(t.length)),Vs.checkArgumentCount(t.length,r,"coder array"+(this.localName?" "+this.localName:""));let n=[];for(let i=0;i<t.length;i++)n.push(this.coder);return Ws(e,n,t)}decode(e){let t=this.length;-1===t&&(t=e.readValue().toNumber(),32*t>e._data.length&&Vs.throwError("insufficient data length",on.errors.BUFFER_OVERRUN,{length:e._data.length,count:t}));let r=[];for(let n=0;n<t;n++)r.push(new Gs(this.coder));return e.coerce(this.name,Js(e,r))}}class Ys extends zs{constructor(e){super("bool","bool",e,!1)}defaultValue(){return!1}encode(e,t){return e.writeValue(t?1:0)}decode(e){return e.coerce(this.type,!e.readValue().isZero())}}class Xs extends zs{constructor(e,t){super(e,e,t,!0)}defaultValue(){return"0x"}encode(e,t){t=Rn(t);let r=e.writeValue(t.length);return r+=e.writeBytes(t),r}decode(e){return e.readBytes(e.readValue().toNumber(),!0)}}class Zs extends Xs{constructor(e){super("bytes",e)}decode(e){return e.coerce(this.name,Fn(super.decode(e)))}}class $s extends zs{constructor(e,t){let r="bytes"+String(e);super(r,r,t,!1),this.size=e}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}encode(e,t){let r=Rn(t);return r.length!==this.size&&this._throwError("incorrect data length",t),e.writeBytes(r)}decode(e){return e.coerce(this.name,Fn(e.readBytes(this.size)))}}class el extends zs{constructor(e){super("null","",e,!1)}defaultValue(){return null}encode(e,t){return null!=t&&this._throwError("not null",t),e.writeBytes([])}decode(e){return e.readBytes(0),e.coerce(this.name,null)}}class tl extends zs{constructor(e,t,r){const n=(t?"int":"uint")+8*e;super(n,n,r,!1),this.size=e,this.signed=t}defaultValue(){return 0}encode(e,t){let r=Yn.from(t),n=Ji.mask(8*e.wordSize);if(this.signed){let e=n.mask(8*this.size-1);(r.gt(e)||r.lt(e.add(Wi).mul(Gi)))&&this._throwError("value out-of-bounds",t)}else(r.lt(Vi)||r.gt(n.mask(8*this.size)))&&this._throwError("value out-of-bounds",t);return r=r.toTwos(8*this.size).mask(8*this.size),this.signed&&(r=r.fromTwos(8*this.size).toTwos(8*e.wordSize)),e.writeValue(r)}decode(e){let t=e.readValue().mask(8*this.size);return this.signed&&(t=t.fromTwos(8*this.size)),e.coerce(this.name,t)}}class rl extends Xs{constructor(e){super("string",e)}defaultValue(){return""}encode(e,t){return super.encode(e,Ni(t))}decode(e){return Ci(super.decode(e))}}class nl extends zs{constructor(e,t){let r=!1;const n=[];e.forEach((e=>{e.dynamic&&(r=!0),n.push(e.type)}));super("tuple","tuple("+n.join(",")+")",t,r),this.coders=e}defaultValue(){const e=[];this.coders.forEach((t=>{e.push(t.defaultValue())}));const t=this.coders.reduce(((e,t)=>{const r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e}),{});return this.coders.forEach(((r,n)=>{let i=r.localName;i&&1===t[i]&&("length"===i&&(i="_length"),null==e[i]&&(e[i]=e[n]))})),Object.freeze(e)}encode(e,t){return Ws(e,this.coders,t)}decode(e){return e.coerce(this.name,Js(e,this.coders))}}const il=new on(Us),ol={};let al={calldata:!0,memory:!0,storage:!0},sl={calldata:!0,memory:!0};function ll(e,t){if("bytes"===e||"string"===e){if(al[t])return!0}else if("address"===e){if("payable"===t)return!0}else if((e.indexOf("[")>=0||"tuple"===e)&&sl[t])return!0;return(al[t]||"payable"===t)&&il.throwArgumentError("invalid modifier","name",t),!1}function ul(e,t){for(let r in t)ln(e,r,t[r])}const cl=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),fl=new RegExp(/^(.*)\[([0-9]*)\]$/);class dl{constructor(e,t){e!==ol&&il.throwError("use fromString",on.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),ul(this,t);let r=this.type.match(fl);ul(this,r?{arrayLength:parseInt(r[2]||"-1"),arrayChildren:dl.fromObject({type:r[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(e){if(e||(e=cl.sighash),cl[e]||il.throwArgumentError("invalid format type","format",e),e===cl.json){let t={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"===typeof this.indexed&&(t.indexed=this.indexed),this.components&&(t.components=this.components.map((t=>JSON.parse(t.format(e))))),JSON.stringify(t)}let t="";return"array"===this.baseType?(t+=this.arrayChildren.format(e),t+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(e!==cl.sighash&&(t+=this.type),t+="("+this.components.map((t=>t.format(e))).join(e===cl.full?", ":",")+")"):t+=this.type,e!==cl.sighash&&(!0===this.indexed&&(t+=" indexed"),e===cl.full&&this.name&&(t+=" "+this.name)),t}static from(e,t){return"string"===typeof e?dl.fromString(e,t):dl.fromObject(e)}static fromObject(e){return dl.isParamType(e)?e:new dl(ol,{name:e.name||null,type:kl(e.type),indexed:null==e.indexed?null:!!e.indexed,components:e.components?e.components.map(dl.fromObject):null})}static fromString(e,t){return r=function(e,t){let r=e;function n(t){il.throwArgumentError("unexpected character at position ".concat(t),"param",e)}function i(e){let r={type:"",name:"",parent:e,state:{allowType:!0}};return t&&(r.indexed=!1),r}e=e.replace(/\s/g," ");let o={type:"",name:"",state:{allowType:!0}},a=o;for(let s=0;s<e.length;s++){let r=e[s];switch(r){case"(":a.state.allowType&&""===a.type?a.type="tuple":a.state.allowParams||n(s),a.state.allowType=!1,a.type=kl(a.type),a.components=[i(a)],a=a.components[0];break;case")":delete a.state,"indexed"===a.name&&(t||n(s),a.indexed=!0,a.name=""),ll(a.type,a.name)&&(a.name=""),a.type=kl(a.type);let e=a;a=a.parent,a||n(s),delete e.parent,a.state.allowParams=!1,a.state.allowName=!0,a.state.allowArray=!0;break;case",":delete a.state,"indexed"===a.name&&(t||n(s),a.indexed=!0,a.name=""),ll(a.type,a.name)&&(a.name=""),a.type=kl(a.type);let o=i(a.parent);a.parent.components.push(o),delete a.parent,a=o;break;case" ":a.state.allowType&&""!==a.type&&(a.type=kl(a.type),delete a.state.allowType,a.state.allowName=!0,a.state.allowParams=!0),a.state.allowName&&""!==a.name&&("indexed"===a.name?(t||n(s),a.indexed&&n(s),a.indexed=!0,a.name=""):ll(a.type,a.name)?a.name="":a.state.allowName=!1);break;case"[":a.state.allowArray||n(s),a.type+=r,a.state.allowArray=!1,a.state.allowName=!1,a.state.readArray=!0;break;case"]":a.state.readArray||n(s),a.type+=r,a.state.readArray=!1,a.state.allowArray=!0,a.state.allowName=!0;break;default:a.state.allowType?(a.type+=r,a.state.allowParams=!0,a.state.allowArray=!0):a.state.allowName?(a.name+=r,delete a.state.allowArray):a.state.readArray?a.type+=r:n(s)}}return a.parent&&il.throwArgumentError("unexpected eof","param",e),delete o.state,"indexed"===a.name?(t||n(r.length-7),a.indexed&&n(r.length-7),a.indexed=!0,a.name=""):ll(a.type,a.name)&&(a.name=""),o.type=kl(o.type),o}(e,!!t),dl.fromObject({name:r.name,type:r.type,indexed:r.indexed,components:r.components});var r}static isParamType(e){return!(null==e||!e._isParamType)}}function hl(e,t){return function(e){e=e.trim();let t=[],r="",n=0;for(let i=0;i<e.length;i++){let o=e[i];","===o&&0===n?(t.push(r),r=""):(r+=o,"("===o?n++:")"===o&&(n--,-1===n&&il.throwArgumentError("unbalanced parenthesis","value",e)))}r&&t.push(r);return t}(e).map((e=>dl.fromString(e,t)))}class pl{constructor(e,t){e!==ol&&il.throwError("use a static from method",on.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),ul(this,t),this._isFragment=!0,Object.freeze(this)}static from(e){return pl.isFragment(e)?e:"string"===typeof e?pl.fromString(e):pl.fromObject(e)}static fromObject(e){if(pl.isFragment(e))return e;switch(e.type){case"function":return bl.fromObject(e);case"event":return ml.fromObject(e);case"constructor":return vl.fromObject(e);case"error":return El.fromObject(e);case"fallback":case"receive":return null}return il.throwArgumentError("invalid fragment object","value",e)}static fromString(e){return"event"===(e=(e=(e=e.replace(/\s/g," ")).replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," ")).trim()).split(" ")[0]?ml.fromString(e.substring(5).trim()):"function"===e.split(" ")[0]?bl.fromString(e.substring(8).trim()):"constructor"===e.split("(")[0].trim()?vl.fromString(e.trim()):"error"===e.split(" ")[0]?El.fromString(e.substring(5).trim()):il.throwArgumentError("unsupported fragment","value",e)}static isFragment(e){return!(!e||!e._isFragment)}}class ml extends pl{format(e){if(e||(e=cl.sighash),cl[e]||il.throwArgumentError("invalid format type","format",e),e===cl.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});let t="";return e!==cl.sighash&&(t+="event "),t+=this.name+"("+this.inputs.map((t=>t.format(e))).join(e===cl.full?", ":",")+") ",e!==cl.sighash&&this.anonymous&&(t+="anonymous "),t.trim()}static from(e){return"string"===typeof e?ml.fromString(e):ml.fromObject(e)}static fromObject(e){if(ml.isEventFragment(e))return e;"event"!==e.type&&il.throwArgumentError("invalid event object","value",e);const t={name:xl(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(dl.fromObject):[],type:"event"};return new ml(ol,t)}static fromString(e){let t=e.match(Nl);t||il.throwArgumentError("invalid event string","value",e);let r=!1;return t[3].split(" ").forEach((e=>{switch(e.trim()){case"anonymous":r=!0;break;case"":break;default:il.warn("unknown modifier: "+e)}})),ml.fromObject({name:t[1].trim(),anonymous:r,inputs:hl(t[2],!0),type:"event"})}static isEventFragment(e){return e&&e._isFragment&&"event"===e.type}}function gl(e,t){t.gas=null;let r=e.split("@");return 1!==r.length?(r.length>2&&il.throwArgumentError("invalid human-readable ABI signature","value",e),r[1].match(/^[0-9]+$/)||il.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=Yn.from(r[1]),r[0]):e}function Al(e,t){t.constant=!1,t.payable=!1,t.stateMutability="nonpayable",e.split(" ").forEach((e=>{switch(e.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: "+e)}}))}function yl(e){let t={constant:!1,payable:!0,stateMutability:"payable"};return null!=e.stateMutability?(t.stateMutability=e.stateMutability,t.constant="view"===t.stateMutability||"pure"===t.stateMutability,null!=e.constant&&!!e.constant!==t.constant&&il.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable="payable"===t.stateMutability,null!=e.payable&&!!e.payable!==t.payable&&il.throwArgumentError("cannot have payable function with mutability "+t.stateMutability,"value",e)):null!=e.payable?(t.payable=!!e.payable,null!=e.constant||t.payable||"constructor"===e.type||il.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&&il.throwArgumentError("cannot have constant payable function","value",e)):null!=e.constant?(t.constant=!!e.constant,t.payable=!t.constant,t.stateMutability=t.constant?"view":"payable"):"constructor"!==e.type&&il.throwArgumentError("unable to determine stateMutability","value",e),t}class vl extends pl{format(e){if(e||(e=cl.sighash),cl[e]||il.throwArgumentError("invalid format type","format",e),e===cl.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});e===cl.sighash&&il.throwError("cannot format a constructor for sighash",on.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let t="constructor("+this.inputs.map((t=>t.format(e))).join(e===cl.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "),t.trim()}static from(e){return"string"===typeof e?vl.fromString(e):vl.fromObject(e)}static fromObject(e){if(vl.isConstructorFragment(e))return e;"constructor"!==e.type&&il.throwArgumentError("invalid constructor object","value",e);let t=yl(e);t.constant&&il.throwArgumentError("constructor cannot be constant","value",e);const r={name:null,type:e.type,inputs:e.inputs?e.inputs.map(dl.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?Yn.from(e.gas):null};return new vl(ol,r)}static fromString(e){let t={type:"constructor"},r=(e=gl(e,t)).match(Nl);return r&&"constructor"===r[1].trim()||il.throwArgumentError("invalid constructor string","value",e),t.inputs=hl(r[2].trim(),!1),Al(r[3].trim(),t),vl.fromObject(t)}static isConstructorFragment(e){return e&&e._isFragment&&"constructor"===e.type}}class bl extends vl{format(e){if(e||(e=cl.sighash),cl[e]||il.throwArgumentError("invalid format type","format",e),e===cl.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((t=>JSON.parse(t.format(e)))),outputs:this.outputs.map((t=>JSON.parse(t.format(e))))});let t="";return e!==cl.sighash&&(t+="function "),t+=this.name+"("+this.inputs.map((t=>t.format(e))).join(e===cl.full?", ":",")+") ",e!==cl.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "):this.constant&&(t+="view "),this.outputs&&this.outputs.length&&(t+="returns ("+this.outputs.map((t=>t.format(e))).join(", ")+") "),null!=this.gas&&(t+="@"+this.gas.toString()+" ")),t.trim()}static from(e){return"string"===typeof e?bl.fromString(e):bl.fromObject(e)}static fromObject(e){if(bl.isFunctionFragment(e))return e;"function"!==e.type&&il.throwArgumentError("invalid function object","value",e);let t=yl(e);const r={type:e.type,name:xl(e.name),constant:t.constant,inputs:e.inputs?e.inputs.map(dl.fromObject):[],outputs:e.outputs?e.outputs.map(dl.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?Yn.from(e.gas):null};return new bl(ol,r)}static fromString(e){let t={type:"function"},r=(e=gl(e,t)).split(" returns ");r.length>2&&il.throwArgumentError("invalid function string","value",e);let n=r[0].match(Nl);if(n||il.throwArgumentError("invalid function signature","value",e),t.name=n[1].trim(),t.name&&xl(t.name),t.inputs=hl(n[2],!1),Al(n[3].trim(),t),r.length>1){let n=r[1].match(Nl);""==n[1].trim()&&""==n[3].trim()||il.throwArgumentError("unexpected tokens","value",e),t.outputs=hl(n[2],!1)}else t.outputs=[];return bl.fromObject(t)}static isFunctionFragment(e){return e&&e._isFragment&&"function"===e.type}}function wl(e){const t=e.format();return"Error(string)"!==t&&"Panic(uint256)"!==t||il.throwArgumentError("cannot specify user defined ".concat(t," error"),"fragment",e),e}class El extends pl{format(e){if(e||(e=cl.sighash),cl[e]||il.throwArgumentError("invalid format type","format",e),e===cl.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});let t="";return e!==cl.sighash&&(t+="error "),t+=this.name+"("+this.inputs.map((t=>t.format(e))).join(e===cl.full?", ":",")+") ",t.trim()}static from(e){return"string"===typeof e?El.fromString(e):El.fromObject(e)}static fromObject(e){if(El.isErrorFragment(e))return e;"error"!==e.type&&il.throwArgumentError("invalid error object","value",e);const t={type:e.type,name:xl(e.name),inputs:e.inputs?e.inputs.map(dl.fromObject):[]};return wl(new El(ol,t))}static fromString(e){let t={type:"error"},r=e.match(Nl);return r||il.throwArgumentError("invalid error signature","value",e),t.name=r[1].trim(),t.name&&xl(t.name),t.inputs=hl(r[2],!1),wl(El.fromObject(t))}static isErrorFragment(e){return e&&e._isFragment&&"error"===e.type}}function kl(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}const Sl=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function xl(e){return e&&e.match(Sl)||il.throwArgumentError('invalid identifier "'.concat(e,'"'),"value",e),e}const Nl=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");const Cl=new on(Us),_l=new RegExp(/^bytes([0-9]*)$/),Ml=new RegExp(/^(u?int)([0-9]*)$/);const Pl=new class{constructor(e){ln(this,"coerceFunc",e||null)}_getCoder(e){switch(e.baseType){case"address":return new qs(e.name);case"bool":return new Ys(e.name);case"string":return new rl(e.name);case"bytes":return new Zs(e.name);case"array":return new Ks(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new nl((e.components||[]).map((e=>this._getCoder(e))),e.name);case"":return new el(e.name)}let t=e.type.match(Ml);if(t){let r=parseInt(t[2]||"256");return(0===r||r>256||r%8!==0)&&Cl.throwArgumentError("invalid "+t[1]+" bit length","param",e),new tl(r/8,"int"===t[1],e.name)}if(t=e.type.match(_l),t){let r=parseInt(t[1]);return(0===r||r>32)&&Cl.throwArgumentError("invalid bytes length","param",e),new $s(r,e.name)}return Cl.throwArgumentError("invalid type","type",e.type)}_getWordSize(){return 32}_getReader(e,t){return new Hs(e,this._getWordSize(),this.coerceFunc,t)}_getWriter(){return new Qs(this._getWordSize())}getDefaultValue(e){const t=e.map((e=>this._getCoder(dl.from(e))));return new nl(t,"_").defaultValue()}encode(e,t){e.length!==t.length&&Cl.throwError("types/values length mismatch",on.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});const r=e.map((e=>this._getCoder(dl.from(e)))),n=new nl(r,"_"),i=this._getWriter();return n.encode(i,t),i.data}decode(e,t,r){const n=e.map((e=>this._getCoder(dl.from(e))));return new nl(n,"_").decode(this._getReader(Rn(t),r))}},Tl=new on(Us);class Rl extends gn{}class Il extends gn{}class Ol extends gn{}class Bl extends gn{static isIndexed(e){return!(!e||!e._isIndexed)}}const Ll={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function Fl(e,t){const r=new Error("deferred error during ABI decoding triggered accessing ".concat(e));return r.error=t,r}class Dl{constructor(e){let t=[];t="string"===typeof e?JSON.parse(e):e,ln(this,"fragments",t.map((e=>pl.from(e))).filter((e=>null!=e))),ln(this,"_abiCoder",un(new.target,"getAbiCoder")()),ln(this,"functions",{}),ln(this,"errors",{}),ln(this,"events",{}),ln(this,"structs",{}),this.fragments.forEach((e=>{let t=null;switch(e.type){case"constructor":return this.deploy?void Tl.warn("duplicate definition - constructor"):void ln(this,"deploy",e);case"function":t=this.functions;break;case"event":t=this.events;break;case"error":t=this.errors;break;default:return}let r=e.format();t[r]?Tl.warn("duplicate definition - "+r):t[r]=e})),this.deploy||ln(this,"deploy",vl.from({payable:!1,type:"constructor"})),ln(this,"_isInterface",!0)}format(e){e||(e=cl.full),e===cl.sighash&&Tl.throwArgumentError("interface does not support formatting sighash","format",e);const t=this.fragments.map((t=>t.format(e)));return e===cl.json?JSON.stringify(t.map((e=>JSON.parse(e)))):t}static getAbiCoder(){return Pl}static getAddress(e){return Ai(e)}static getSighash(e){return Un(_i(e.format()),0,4)}static getEventTopic(e){return _i(e.format())}getFunction(e){if(Bn(e)){for(const t in this.functions)if(e===this.getSighash(t))return this.functions[t];Tl.throwArgumentError("no matching function","sighash",e)}if(-1===e.indexOf("(")){const t=e.trim(),r=Object.keys(this.functions).filter((e=>e.split("(")[0]===t));return 0===r.length?Tl.throwArgumentError("no matching function","name",t):r.length>1&&Tl.throwArgumentError("multiple matching functions","name",t),this.functions[r[0]]}const t=this.functions[bl.fromString(e).format()];return t||Tl.throwArgumentError("no matching function","signature",e),t}getEvent(e){if(Bn(e)){const t=e.toLowerCase();for(const e in this.events)if(t===this.getEventTopic(e))return this.events[e];Tl.throwArgumentError("no matching event","topichash",t)}if(-1===e.indexOf("(")){const t=e.trim(),r=Object.keys(this.events).filter((e=>e.split("(")[0]===t));return 0===r.length?Tl.throwArgumentError("no matching event","name",t):r.length>1&&Tl.throwArgumentError("multiple matching events","name",t),this.events[r[0]]}const t=this.events[ml.fromString(e).format()];return t||Tl.throwArgumentError("no matching event","signature",e),t}getError(e){if(Bn(e)){const t=un(this.constructor,"getSighash");for(const r in this.errors){if(e===t(this.errors[r]))return this.errors[r]}Tl.throwArgumentError("no matching error","sighash",e)}if(-1===e.indexOf("(")){const t=e.trim(),r=Object.keys(this.errors).filter((e=>e.split("(")[0]===t));return 0===r.length?Tl.throwArgumentError("no matching error","name",t):r.length>1&&Tl.throwArgumentError("multiple matching errors","name",t),this.errors[r[0]]}const t=this.errors[bl.fromString(e).format()];return t||Tl.throwArgumentError("no matching error","signature",e),t}getSighash(e){if("string"===typeof e)try{e=this.getFunction(e)}catch(t){try{e=this.getError(e)}catch(Tu){throw t}}return un(this.constructor,"getSighash")(e)}getEventTopic(e){return"string"===typeof e&&(e=this.getEvent(e)),un(this.constructor,"getEventTopic")(e)}_decodeParams(e,t){return this._abiCoder.decode(e,t)}_encodeParams(e,t){return this._abiCoder.encode(e,t)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeErrorResult(e,t){"string"===typeof e&&(e=this.getError(e));const r=Rn(t);return Fn(r.slice(0,4))!==this.getSighash(e)&&Tl.throwArgumentError("data signature does not match error ".concat(e.name,"."),"data",Fn(r)),this._decodeParams(e.inputs,r.slice(4))}encodeErrorResult(e,t){return"string"===typeof e&&(e=this.getError(e)),Fn(In([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionData(e,t){"string"===typeof e&&(e=this.getFunction(e));const r=Rn(t);return Fn(r.slice(0,4))!==this.getSighash(e)&&Tl.throwArgumentError("data signature does not match function ".concat(e.name,"."),"data",Fn(r)),this._decodeParams(e.inputs,r.slice(4))}encodeFunctionData(e,t){return"string"===typeof e&&(e=this.getFunction(e)),Fn(In([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionResult(e,t){"string"===typeof e&&(e=this.getFunction(e));let r=Rn(t),n=null,i="",o=null,a=null,s=null;switch(r.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,r)}catch(l){}break;case 4:{const e=Fn(r.slice(0,4)),t=Ll[e];if(t)o=this._abiCoder.decode(t.inputs,r.slice(4)),a=t.name,s=t.signature,t.reason&&(n=o[0]),"Error"===a?i="; VM Exception while processing transaction: reverted with reason string ".concat(JSON.stringify(o[0])):"Panic"===a&&(i="; VM Exception while processing transaction: reverted with panic code ".concat(o[0]));else try{const t=this.getError(e);o=this._abiCoder.decode(t.inputs,r.slice(4)),a=t.name,s=t.format()}catch(l){}break}}return Tl.throwError("call revert exception"+i,on.errors.CALL_EXCEPTION,{method:e.format(),data:Fn(t),errorArgs:o,errorName:a,errorSignature:s,reason:n})}encodeFunctionResult(e,t){return"string"===typeof e&&(e=this.getFunction(e)),Fn(this._abiCoder.encode(e.outputs,t||[]))}encodeFilterTopics(e,t){"string"===typeof e&&(e=this.getEvent(e)),t.length>e.inputs.length&&Tl.throwError("too many arguments for "+e.format(),on.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t});let r=[];e.anonymous||r.push(this.getEventTopic(e));const n=(e,t)=>"string"===e.type?_i(t):"bytes"===e.type?ni(Fn(t)):("bool"===e.type&&"boolean"===typeof t&&(t=t?"0x01":"0x00"),e.type.match(/^u?int/)&&(t=Yn.from(t).toHexString()),"address"===e.type&&this._abiCoder.encode(["address"],[t]),Qn(Fn(t),32));for(t.forEach(((t,i)=>{let o=e.inputs[i];o.indexed?null==t?r.push(null):"array"===o.baseType||"tuple"===o.baseType?Tl.throwArgumentError("filtering with tuples or arrays not supported","contract."+o.name,t):Array.isArray(t)?r.push(t.map((e=>n(o,e)))):r.push(n(o,t)):null!=t&&Tl.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+o.name,t)}));r.length&&null===r[r.length-1];)r.pop();return r}encodeEventLog(e,t){"string"===typeof e&&(e=this.getEvent(e));const r=[],n=[],i=[];return e.anonymous||r.push(this.getEventTopic(e)),t.length!==e.inputs.length&&Tl.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach(((e,o)=>{const a=t[o];if(e.indexed)if("string"===e.type)r.push(_i(a));else if("bytes"===e.type)r.push(ni(a));else{if("tuple"===e.baseType||"array"===e.baseType)throw new Error("not implemented");r.push(this._abiCoder.encode([e.type],[a]))}else n.push(e),i.push(a)})),{data:this._abiCoder.encode(n,i),topics:r}}decodeEventLog(e,t,r){if("string"===typeof e&&(e=this.getEvent(e)),null!=r&&!e.anonymous){let t=this.getEventTopic(e);Bn(r[0],32)&&r[0].toLowerCase()===t||Tl.throwError("fragment/topic mismatch",on.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:t,value:r[0]}),r=r.slice(1)}let n=[],i=[],o=[];e.inputs.forEach(((e,t)=>{e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(n.push(dl.fromObject({type:"bytes32",name:e.name})),o.push(!0)):(n.push(e),o.push(!1)):(i.push(e),o.push(!1))}));let a=null!=r?this._abiCoder.decode(n,In(r)):null,s=this._abiCoder.decode(i,t,!0),l=[],u=0,c=0;e.inputs.forEach(((e,t)=>{if(e.indexed)if(null==a)l[t]=new Bl({_isIndexed:!0,hash:null});else if(o[t])l[t]=new Bl({_isIndexed:!0,hash:a[c++]});else try{l[t]=a[c++]}catch(r){l[t]=r}else try{l[t]=s[u++]}catch(r){l[t]=r}if(e.name&&null==l[e.name]){const r=l[t];r instanceof Error?Object.defineProperty(l,e.name,{enumerable:!0,get:()=>{throw Fl("property ".concat(JSON.stringify(e.name)),r)}}):l[e.name]=r}}));for(let f=0;f<l.length;f++){const e=l[f];e instanceof Error&&Object.defineProperty(l,f,{enumerable:!0,get:()=>{throw Fl("index ".concat(f),e)}})}return Object.freeze(l)}parseTransaction(e){let t=this.getFunction(e.data.substring(0,10).toLowerCase());return t?new Il({args:this._abiCoder.decode(t.inputs,"0x"+e.data.substring(10)),functionFragment:t,name:t.name,signature:t.format(),sighash:this.getSighash(t),value:Yn.from(e.value||"0")}):null}parseLog(e){let t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new Rl({eventFragment:t,name:t.name,signature:t.format(),topic:this.getEventTopic(t),args:this.decodeEventLog(t,e.data,e.topics)})}parseError(e){const t=Fn(e);let r=this.getError(t.substring(0,10).toLowerCase());return r?new Ol({args:this._abiCoder.decode(r.inputs,"0x"+t.substring(10)),errorFragment:r,name:r.name,signature:r.format(),sighash:this.getSighash(r)}):null}static isInterface(e){return!(!e||!e._isInterface)}}var Ul=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{l(n.next(e))}catch(t){o(t)}}function s(e){try{l(n.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))};const jl=new on("contracts/5.7.0");function zl(e,t){return Ul(this,void 0,void 0,(function*(){const r=yield t;"string"!==typeof r&&jl.throwArgumentError("invalid address or ENS name","name",r);try{return Ai(r)}catch(i){}e||jl.throwError("a provider or signer is needed to resolve ENS names",on.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});const n=yield e.resolveName(r);return null==n&&jl.throwArgumentError("resolver or addr is not configured for ENS name","name",r),n}))}function Ql(e,t,r){return Ul(this,void 0,void 0,(function*(){return Array.isArray(r)?yield Promise.all(r.map(((r,n)=>Ql(e,Array.isArray(t)?t[n]:t[r.name],r)))):"address"===r.type?yield zl(e,t):"tuple"===r.type?yield Ql(e,t,r.components):"array"===r.baseType?Array.isArray(t)?yield Promise.all(t.map((t=>Ql(e,t,r.arrayChildren)))):Promise.reject(jl.makeError("invalid value for array",on.errors.INVALID_ARGUMENT,{argument:"value",value:t})):t}))}function Hl(e,t,r){return Ul(this,void 0,void 0,(function*(){let n={};r.length===t.inputs.length+1&&"object"===typeof r[r.length-1]&&(n=fn(r.pop())),jl.checkArgumentCount(r.length,t.inputs.length,"passed to contract"),e.signer?n.from?n.from=cn({override:zl(e.signer,n.from),signer:e.signer.getAddress()}).then((e=>Ul(this,void 0,void 0,(function*(){return Ai(e.signer)!==e.override&&jl.throwError("Contract with a Signer cannot override from",on.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),e.override})))):n.from=e.signer.getAddress():n.from&&(n.from=zl(e.provider,n.from));const i=yield cn({args:Ql(e.signer||e.provider,r,t.inputs),address:e.resolvedAddress,overrides:cn(n)||{}}),o=e.interface.encodeFunctionData(t,i.args),a={data:o,to:i.address},s=i.overrides;if(null!=s.nonce&&(a.nonce=Yn.from(s.nonce).toNumber()),null!=s.gasLimit&&(a.gasLimit=Yn.from(s.gasLimit)),null!=s.gasPrice&&(a.gasPrice=Yn.from(s.gasPrice)),null!=s.maxFeePerGas&&(a.maxFeePerGas=Yn.from(s.maxFeePerGas)),null!=s.maxPriorityFeePerGas&&(a.maxPriorityFeePerGas=Yn.from(s.maxPriorityFeePerGas)),null!=s.from&&(a.from=s.from),null!=s.type&&(a.type=s.type),null!=s.accessList&&(a.accessList=Vo(s.accessList)),null==a.gasLimit&&null!=t.gas){let e=21e3;const r=Rn(o);for(let t=0;t<r.length;t++)e+=4,r[t]&&(e+=64);a.gasLimit=Yn.from(t.gas).add(e)}if(s.value){const e=Yn.from(s.value);e.isZero()||t.payable||jl.throwError("non-payable method cannot override value",on.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:n.value}),a.value=e}s.customData&&(a.customData=fn(s.customData)),s.ccipReadEnabled&&(a.ccipReadEnabled=!!s.ccipReadEnabled),delete n.nonce,delete n.gasLimit,delete n.gasPrice,delete n.from,delete n.value,delete n.type,delete n.accessList,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas,delete n.customData,delete n.ccipReadEnabled;const l=Object.keys(n).filter((e=>null!=n[e]));return l.length&&jl.throwError("cannot override ".concat(l.map((e=>JSON.stringify(e))).join(",")),on.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:l}),a}))}function ql(e,t){const r=t.wait.bind(t);t.wait=t=>r(t).then((t=>(t.events=t.logs.map((r=>{let n=mn(r),i=null;try{i=e.interface.parseLog(r)}catch(o){}return i&&(n.args=i.args,n.decode=(t,r)=>e.interface.decodeEventLog(i.eventFragment,t,r),n.event=i.name,n.eventSignature=i.signature),n.removeListener=()=>e.provider,n.getBlock=()=>e.provider.getBlock(t.blockHash),n.getTransaction=()=>e.provider.getTransaction(t.transactionHash),n.getTransactionReceipt=()=>Promise.resolve(t),n})),t)))}function Gl(e,t,r){const n=e.signer||e.provider;return function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Ul(this,void 0,void 0,(function*(){let i;if(o.length===t.inputs.length+1&&"object"===typeof o[o.length-1]){const e=fn(o.pop());null!=e.blockTag&&(i=yield e.blockTag),delete e.blockTag,o.push(e)}null!=e.deployTransaction&&(yield e._deployed(i));const a=yield Hl(e,t,o),s=yield n.call(a,i);try{let n=e.interface.decodeFunctionResult(t,s);return r&&1===t.outputs.length&&(n=n[0]),n}catch(l){throw l.code===on.errors.CALL_EXCEPTION&&(l.address=e.address,l.args=o,l.transaction=a),l}}))}}function Vl(e,t,r){return t.constant?Gl(e,t,r):function(e,t){return function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return Ul(this,void 0,void 0,(function*(){e.signer||jl.throwError("sending a transaction requires a signer",on.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),null!=e.deployTransaction&&(yield e._deployed());const r=yield Hl(e,t,n),i=yield e.signer.sendTransaction(r);return ql(e,i),i}))}}(e,t)}function Wl(e){return!e.address||null!=e.topics&&0!==e.topics.length?(e.address||"*")+"@"+(e.topics?e.topics.map((e=>Array.isArray(e)?e.join("|"):e)).join(":"):""):"*"}class Jl{constructor(e,t){ln(this,"tag",e),ln(this,"filter",t),this._listeners=[]}addListener(e,t){this._listeners.push({listener:e,once:t})}removeListener(e){let t=!1;this._listeners=this._listeners.filter((r=>!(!t&&r.listener===e)||(t=!0,!1)))}removeAllListeners(){this._listeners=[]}listeners(){return this._listeners.map((e=>e.listener))}listenerCount(){return this._listeners.length}run(e){const t=this.listenerCount();return this._listeners=this._listeners.filter((t=>{const r=e.slice();return setTimeout((()=>{t.listener.apply(this,r)}),0),!t.once})),t}prepareEvent(e){}getEmit(e){return[e]}}class Kl extends Jl{constructor(){super("error",null)}}class Yl extends Jl{constructor(e,t,r,n){const i={address:e};let o=t.getEventTopic(r);n?(o!==n[0]&&jl.throwArgumentError("topic mismatch","topics",n),i.topics=n.slice()):i.topics=[o],super(Wl(i),i),ln(this,"address",e),ln(this,"interface",t),ln(this,"fragment",r)}prepareEvent(e){super.prepareEvent(e),e.event=this.fragment.name,e.eventSignature=this.fragment.format(),e.decode=(e,t)=>this.interface.decodeEventLog(this.fragment,e,t);try{e.args=this.interface.decodeEventLog(this.fragment,e.data,e.topics)}catch(t){e.args=null,e.decodeError=t}}getEmit(e){const t=function(e){const t=[],r=function(e,n){if(Array.isArray(n))for(let o in n){const a=e.slice();a.push(o);try{r(a,n[o])}catch(i){t.push({path:a,error:i})}}};return r([],e),t}(e.args);if(t.length)throw t[0].error;const r=(e.args||[]).slice();return r.push(e),r}}class Xl extends Jl{constructor(e,t){super("*",{address:e}),ln(this,"address",e),ln(this,"interface",t)}prepareEvent(e){super.prepareEvent(e);try{const t=this.interface.parseLog(e);e.event=t.name,e.eventSignature=t.signature,e.decode=(e,r)=>this.interface.decodeEventLog(t.eventFragment,e,r),e.args=t.args}catch(t){}}}class Zl{constructor(e,t,r){var n=this;ln(this,"interface",un(new.target,"getInterface")(t)),null==r?(ln(this,"provider",null),ln(this,"signer",null)):En.isSigner(r)?(ln(this,"provider",r.provider||null),ln(this,"signer",r)):fa.isProvider(r)?(ln(this,"provider",r),ln(this,"signer",null)):jl.throwArgumentError("invalid signer or provider","signerOrProvider",r),ln(this,"callStatic",{}),ln(this,"estimateGas",{}),ln(this,"functions",{}),ln(this,"populateTransaction",{}),ln(this,"filters",{});{const e={};
2Object.keys(this.interface.events).forEach((t=>{const r=this.interface.events[t];ln(this.filters,t,(function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return{address:n.address,topics:n.interface.encodeFilterTopics(r,t)}})),e[r.name]||(e[r.name]=[]),e[r.name].push(t)})),Object.keys(e).forEach((t=>{const r=e[t];1===r.length?ln(this.filters,t,this.filters[r[0]]):jl.warn("Duplicate definition of ".concat(t," (").concat(r.join(", "),")"))}))}if(ln(this,"_runningEvents",{}),ln(this,"_wrappedEmits",{}),null==e&&jl.throwArgumentError("invalid contract address or ENS name","addressOrName",e),ln(this,"address",e),this.provider)ln(this,"resolvedAddress",zl(this.provider,e));else try{ln(this,"resolvedAddress",Promise.resolve(Ai(e)))}catch(a){jl.throwError("provider is required to use ENS name as contract address",on.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}this.resolvedAddress.catch((e=>{}));const i={},o={};Object.keys(this.interface.functions).forEach((e=>{const t=this.interface.functions[e];if(o[e])jl.warn("Duplicate ABI entry for ".concat(JSON.stringify(e)));else{o[e]=!0;{const r=t.name;i["%".concat(r)]||(i["%".concat(r)]=[]),i["%".concat(r)].push(e)}null==this[e]&&ln(this,e,Vl(this,t,!0)),null==this.functions[e]&&ln(this.functions,e,Vl(this,t,!1)),null==this.callStatic[e]&&ln(this.callStatic,e,Gl(this,t,!0)),null==this.populateTransaction[e]&&ln(this.populateTransaction,e,function(e,t){return function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return Hl(e,t,n)}}(this,t)),null==this.estimateGas[e]&&ln(this.estimateGas,e,function(e,t){const r=e.signer||e.provider;return function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return Ul(this,void 0,void 0,(function*(){r||jl.throwError("estimate require a provider or signer",on.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});const n=yield Hl(e,t,i);return yield r.estimateGas(n)}))}}(this,t))}}
vendor: 4,635 bytes, line 2
2)),Object.keys(i).forEach((e=>{const t=i[e];if(t.length>1)return;e=e.substring(1);const r=t[0];try{null==this[e]&&ln(this,e,this[r])}catch(n){}null==this.functions[e]&&ln(this.functions,e,this.functions[r]),null==this.callStatic[e]&&ln(this.callStatic,e,this.callStatic[r]),null==this.populateTransaction[e]&&ln(this.populateTransaction,e,this.populateTransaction[r]),null==this.estimateGas[e]&&ln(this.estimateGas,e,this.estimateGas[r])}))}static getContractAddress(e){return yi(e)}static getInterface(e){return Dl.isInterface(e)?e:new Dl(e)}deployed(){return this._deployed()}_deployed(e){return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then((()=>this)):this._deployedPromise=this.provider.getCode(this.address,e).then((e=>("0x"===e&&jl.throwError("contract not deployed",on.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this)))),this._deployedPromise}fallback(e){this.signer||jl.throwError("sending a transactions require a signer",on.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});const t=fn(e||{});return["from","to"].forEach((function(e){null!=t[e]&&jl.throwError("cannot override "+e,on.errors.UNSUPPORTED_OPERATION,{operation:e})})),t.to=this.resolvedAddress,this.deployed().then((()=>this.signer.sendTransaction(t)))}connect(e){"string"===typeof e&&(e=new kn(e,this.provider));const t=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&ln(t,"deployTransaction",this.deployTransaction),t}attach(e){return new this.constructor(e,this.interface,this.signer||this.provider)}static isIndexed(e){return Bl.isIndexed(e)}_normalizeRunningEvent(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e}_getRunningEvent(e){if("string"===typeof e){if("error"===e)return this._normalizeRunningEvent(new Kl);if("event"===e)return this._normalizeRunningEvent(new Jl("event",null));if("*"===e)return this._normalizeRunningEvent(new Xl(this.address,this.interface));const t=this.interface.getEvent(e);return this._normalizeRunningEvent(new Yl(this.address,this.interface,t))}if(e.topics&&e.topics.length>0){try{const t=e.topics[0];if("string"!==typeof t)throw new Error("invalid topic");const r=this.interface.getEvent(t);return this._normalizeRunningEvent(new Yl(this.address,this.interface,r,e.topics))}catch(t){}const r={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new Jl(Wl(r),r))}return this._normalizeRunningEvent(new Xl(this.address,this.interface))}_checkRunningEvents(e){if(0===e.listenerCount()){delete this._runningEvents[e.tag];const t=this._wrappedEmits[e.tag];t&&e.filter&&(this.provider.off(e.filter,t),delete this._wrappedEmits[e.tag])}}_wrapEvent(e,t,r){const n=mn(t);return n.removeListener=()=>{r&&(e.removeListener(r),this._checkRunningEvents(e))},n.getBlock=()=>this.provider.getBlock(t.blockHash),n.getTransaction=()=>this.provider.getTransaction(t.transactionHash),n.getTransactionReceipt=()=>this.provider.getTransactionReceipt(t.transactionHash),e.prepareEvent(n),n}_addEventListener(e,t,r){if(this.provider||jl.throwError("events require a provider or a signer with a provider",on.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(t,r),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){const r=r=>{let n=this._wrapEvent(e,r,t);if(null==n.decodeError)try{const t=e.getEmit(n);this.emit(e.filter,...t)}catch(i){n.decodeError=i.error}null!=e.filter&&this.emit("event",n),null!=n.decodeError&&this.emit("error",n.decodeError,n)};this._wrappedEmits[e.tag]=r,null!=e.filter&&this.provider.on(e.filter,r)}}queryFilter(e,t,r){const n=this._getRunningEvent(e),i=fn(n.filter);return"string"===typeof t&&Bn(t,32)?(null!=r&&jl.throwArgumentError("cannot specify toBlock with blockhash","toBlock",r),i.blockHash=t):(i.fromBlock=null!=t?t:0,i.toBlock=null!=r?r:"latest"),this.provider.getLogs(i).then((e=>e.map((e=>this._wrapEvent(n,e,null)))))}on(e,t){return this._addEventListener(this._getRunningEvent(e),t,!1),this}once(e,t){return this._addEventListener(this._getRunningEvent(e),t,!0),this}emit(e){if(!this.provider)return!1;const t=this._getRunningEvent(e);for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];const o=t.run(n)>0;return this._checkRunningEvents(t),o}listenerCount(e){return this.provider?null==e?Object.keys(this._runningEvents).reduce(((e,t)=>e+this._runningEvents[t].listenerCount()),0):this._getRunningEvent(e).listenerCount():0}listeners(e){if(!this.provider)return[];if(null==e){const e=[];for(let t in this._runningEvents)this._runningEvents[t].listeners().forEac
2h((t=>{e.push(t)}));return e}return this._getRunningEvent(e).listeners()}removeAllListeners(e){if(!this.provider)return this;if(null==e){for(const e in this._runningEvents){const t=this._runningEvents[e];t.removeAllListeners(),this._checkRunningEvents(t)}return this}const t=this._getRunningEvent(e);return t.removeAllListeners(),this._checkRunningEvents(t),this}off(e,t){if(!this.provider)return this;const r=this._getRunningEvent(e);return r.removeListener(t),this._checkRunningEvents(r),this}removeListener(e,t){return this.off(e,t)}}class $l extends Zl{}const eu=new on(qn),tu={},ru=Yn.from(0),nu=Yn.from(-1);function iu(e,t,r,n){const i={fault:t,operation:r};return void 0!==n&&(i.value=n),eu.throwError(e,on.errors.NUMERIC_FAULT,i)}let ou="0";for(;ou.length<256;)ou+=ou;function au(e){if("number"!==typeof e)try{e=Yn.from(e).toNumber()}catch(t){}return"number"===typeof e&&e>=0&&e<=256&&!(e%1)?"1"+ou.substring(0,e):eu.throwArgumentError("invalid decimal size","decimals",e)}function su(e,t){null==t&&(t=0);const r=au(t),n=(e=Yn.from(e)).lt(ru);n&&(e=e.mul(nu));let i=e.mod(r).toString();for(;i.length<r.length-1;)i="0"+i;i=i.match(/^([0-9]*[1-9]|0)(0*)/)[1];const o=e.div(r).toString();return e=1===r.length?o:o+"."+i,n&&(e="-"+e),e}function lu(e,t){null==t&&(t=0);const r=au(t);"string"===typeof e&&e.match(/^-?[0-9.]+$/)||eu.throwArgumentError("invalid decimal value","value",e);const n="-"===e.substring(0,1);n&&(e=e.substring(1)),"."===e&&eu.throwArgumentError("missing value","value",e);const i=e.split(".");i.length>2&&eu.throwArgumentError("too many decimal points","value",e);let o=i[0],a=i[1];for(o||(o="0"),a||(a="0");"0"===a[a.length-1];)a=a.substring(0,a.length-1);for(a.length>r.length-1&&iu("fractional component exceeds decimals","underflow","parseFixed"),""===a&&(a="0");a.length<r.length-1;)a+="0";const s=Yn.from(o),l=Yn.from(a);let u=s.mul(r).add(l);return n&&(u=u.mul(nu)),u}class uu{constructor(e,t,r,n){e!==tu&&eu.throwError("cannot use FixedFormat constructor; use FixedFormat.from",on.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.signed=t,this.width=r,this.decimals=n,this.name=(t?"":"u")+"fixed"+String(r)+"x"+String(n),this._multiplier=au(n),Object.freeze(this)}static from(e){if(e instanceof uu)return e;"number"===typeof e&&(e="fixed128x".concat(e));let t=!0,r=128,n=18;if("string"===typeof e)if("fixed"===e);else if("ufixed"===e)t=!1;else{const i=e.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);i||eu.throwArgumentError("invalid fixed format","format",e),t="u"!==i[1],r=parseInt(i[2]),n=parseInt(i[3])}else if(e){const i=(t,r,n)=>null==e[t]?n:(typeof e[t]!==r&&eu.throwArgumentError("invalid fixed format ("+t+" not "+r+")","format."+t,e[t]),e[t]);t=i("signed","boolean",t),r=i("width","number",r),n=i("decimals","number",n)}return r%8&&eu.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",r),n>80&&eu.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",n),new uu(tu,t,r,n)}}class cu{constructor(e,t,r,n){e!==tu&&eu.throwError("cannot use FixedNumber constructor; use FixedNumber.from",on.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=n,this._hex=t,this._value=r,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(e){this.format.name!==e.format.name&&eu.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}addUnsafe(e){this._checkFormat(e);const t=lu(this._value,this.format.decimals),r=lu(e._value,e.format.decimals);return cu.fromValue(t.add(r),this.format.decimals,this.format)}subUnsafe(e){this._checkFormat(e);const t=lu(this._value,this.format.decimals),r=lu(e._value,e.format.decimals);return cu.fromValue(t.sub(r),this.format.decimals,this.format)}mulUnsafe(e){this._checkFormat(e);const t=lu(this._value,this.format.decimals),r=lu(e._value,e.format.decimals);return cu.fromValue(t.mul(r).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(e){this._checkFormat(e);const t=lu(this._value,this.format.decimals),r=lu(e._value,e.format.decimals);return cu.fromValue(t.mul(this.format._multiplier).div(r),this.format.decimals,this.format)}floor(){const e=this.toString().split(".");1===e.length&&e.push("0");let t=cu.from(e[0],this.format);const r=!e[1].match(/^(0*)$/);return this.isNegative()&&r&&(t=t.subUnsafe(fu.toFormat(t.format))),t}ceiling(){const e=this.toString().split(".");1===e.length&&e.push("0");let t=cu.from(e[0],this.format);const r=!e[1].match(/^(0*)$/);return!this.isNegative()&&r&&(t=t.addUnsafe(fu.toFormat(t.format))),t}round(e){null==e&&(e=0);const t=this.toString().split(".");if(1===t.length&&t.push("0"),(e<0||e>80||e%1)&&eu.throwArgumentError("invalid decimal count","decimals",e),t[1].length<=e)return this;const r=cu.from("1"+ou.substring(0,e),this.format),n=du.toFormat(this.format);return this.mulUnsafe(r).addUnsafe(n).floor().divUnsafe(r)}isZero(){return"0.0"===this._value||"0"===this._value}isNegative(){return"-"===this._value[0]}toString(){return this._value}toHexString(e){if(null==e)return this._hex;e%8&&eu.throwArgumentError("invalid byte width","width",e);return Qn(Yn.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString(),e/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return cu.fromString(this._value,e)}static fromValue(e,t,r){return null!=r||null==t||function(e){return null!=e&&(Yn.isBigNumber(e)||"number"===typeof e&&e%1===0||"string"===typeof e&&!!e.match(/^-?[0-9]+$/)||Bn(e)||"bigint"===typeof e||Tn(e))}(t)||(r=t,t=null),null==t&&(t=0),null==r&&(r="fixed"),cu.fromString(su(e,t),uu.from(r))}static fromString(e,t){null==t&&(t="fixed");const r=uu.from(t),n=lu(e,r.decimals);!r.signed&&n.lt(ru)&&iu("unsigned value cannot be negative","overflow","value",e);let i=null;r.signed?i=n.toTwos(r.width).toHexString():(i=n.toHexString(),i=Qn(i,r.width/8));const o=su(n,r.decimals);return new cu(tu,i,o,r)}static fromBytes(e,t){null==t&&(t="fixed");const r=uu.from(t);if(Rn(e).length>r.width/8)throw new Error("overflow");let n=Yn.from(e);r.signed&&(n=n.fromTwos(r.width));const i=n.toTwos((r.signed?0:1)+r.width).toHexString(),o=su(n,r.decimals);return new cu(tu,i,o,r)}static from(e,t){if("string"===typeof e)return cu.fromString(e,t);if(Tn(e))return cu.fromBytes(e,t);try{return cu.fromValue(e,0,t)}catch(r){if(r.code!==on.errors.INVALID_ARGUMENT)throw r}return eu.throwArgumentError("invalid FixedNumber value","value",e)}static isFixedNumber(e){return!(!e||!e._isFixedNumber)}}const fu=cu.from(1),du=cu.from("0.5"),hu=new on("units/5.7.0"),pu=["wei","kwei","mwei","gwei","szabo","finney","ether"];function mu(e,t){if("string"!==typeof e&&hu.throwArgumentError("value must be a string","value",e),"string"===typeof t){const e=pu.indexOf(t);-1!==e&&(t=3*e)}return lu(e,null!=t?t:18)}function gu(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=gu(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}const Au=function(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=gu(e))&&(n&&(n+=" "),n+=t);return n},yu=e=>"number"==typeof e&&!isNaN(e),vu=e=>"string"==typeof e,bu=e=>"function"==typeof e,wu=e=>vu(e)||bu(e)?e:null,Eu=t=>(0,e.isValidElement)(t)||vu(t)||bu(t)||yu(t);function ku(t){let{enter:r,exit:n,appendPosition:i=!1,collapse:o=!0,collapseDuration:a=300}=t;return function(t){let{children:s,position:l,preventExitTransition:u,done:c,nodeRef:f,isIn:d}=t;const h=i?"".concat(r,"--").concat(l):r,p=i?"".concat(n,"--").concat(l):n,m=(0,e.useRef)(0);return(0,e.useLayoutEffect)((()=>{const e=f.current,t=h.split(" "),r=n=>
2{n.target===f.current&&(e.dispatchEvent(new Event("d")),e.removeEventListener("animationend",r),e.removeEventListener("animationcancel",r),0===m.current&&"animationcancel"!==n.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",r),e.addEventListener("animationcancel",r)}),[]),(0,e.useEffect)((()=>{const e=f.current,t=()=>{e.removeEventListener("animationend",t),o?function(e,t,r){void 0===r&&(r=300);const{scrollHeight:n,style:i}=e;requestAnimationFrame((()=>{i.minHeight="initial",i.height=n+"px",i.transition="all ".concat(r,"ms"),requestAnimationFrame((()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,r)}))}))}(e,c,a):c()};d||(u?t():(m.current=1,e.className+=" ".concat(p),e.addEventListener("animationend",t)))}),[d]),e.createElement(e.Fragment,null,s)}}function Su(e,t){return null!=e?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const xu={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const r=this.list.get(e).filter((e=>e!==t));return this.list.set(e,r),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach((t=>{const r=setTimeout((()=>{t(...[].slice.call(arguments,1))}),0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(r)}))}},Nu=t=>{let{theme:r,type:n,...i}=t;return e.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===r?"currentColor":"var(--toastify-icon-color-".concat(n,")"),...i})},Cu={info:function(t){return e.createElement(Nu,{...t},e.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(t){return e.createElement(Nu,{...t},e.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(t){return e.createElement(Nu,{...t},e.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(t){return e.createElement(Nu,{...t},e.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return e.createElement("div",{className:"Toastify__spinner"})}};function _u(t){const[,r]=(0,e.useReducer)((e=>e+1),0),[n,i]=(0,e.useState)([]),o=(0,e.useRef)(null),a=(0,e.useRef)(new Map).current,s=e=>-1!==n.indexOf(e),l=(0,e.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:t,containerId:null,isToastActive:s,getToast:e=>a.get(e)}).current;
2function u(e){let{containerId:t}=e;const{limit:r}=l.props;!r||t&&l.containerId!==t||(l.count-=l.queue.length,l.queue=[])}function c(e){i((t=>null==e?[]:t.filter((t=>t!==e))))}function f(){const{toastContent:e,toastProps:t,staleId:r}=l.queue.shift();h(e,t,r)}function d(t,n){let{delay:i,staleId:s,...u}=n;if(!Eu(t)||function(e){return!o.current||l.props.enableMultiContainer&&e.containerId!==l.props.containerId||a.has(e.toastId)&&null==e.updateId}(u))return;const{toastId:d,updateId:p,data:m}=u,{props:g}=l,A=()=>c(d),y=null==p;y&&l.count++;const v={...g,style:g.toastStyle,key:l.toastKey++,...Object.fromEntries(Object.entries(u).filter((e=>{let[t,r]=e;return null!=r}))),toastId:d,updateId:p,data:m,closeToast:A,isIn:!1,className:wu(u.className||g.toastClassName),bodyClassName:wu(u.bodyClassName||g.bodyClassName),progressClassName:wu(u.progressClassName||g.progressClassName),autoClose:!u.isLoading&&(b=u.autoClose,w=g.autoClose,!1===b||yu(b)&&b>0?b:w),deleteToast(){const e=Su(a.get(d),"removed");a.delete(d),xu.emit(4,e);const t=l.queue.length;if(l.count=null==d?l.count-l.displayedToast:l.count-1,l.count<0&&(l.count=0),t>0){const e=null==d?l.props.limit:1;if(1===t||1===e)l.displayedToast++,f();else{const r=e>t?t:e;l.displayedToast=r;for(let e=0;e<r;e++)f()}}else r()}};var b,w;v.iconOut=function(t){let{theme:r,type:n,isLoading:i,icon:o}=t,a=null;const s={theme:r,type:n};return!1===o||(bu(o)?a=o(s):(0,e.isValidElement)(o)?a=(0,e.cloneElement)(o,s):vu(o)||yu(o)?a=o:i?a=Cu.spinner():(e=>e in Cu)(n)&&(a=Cu[n](s))),a}(v),bu(u.onOpen)&&(v.onOpen=u.onOpen),bu(u.onClose)&&(v.onClose=u.onClose),v.closeButton=g.closeButton,!1===u.closeButton||Eu(u.closeButton)?v.closeButton=u.closeButton:!0===u.closeButton&&(v.closeButton=!Eu(g.closeButton)||g.closeButton);let E=t;(0,e.isValidElement)(t)&&!vu(t.type)?E=(0,e.cloneElement)(t,{closeToast:A,toastProps:v,data:m}):bu(t)&&(E=t({closeToast:A,toastProps:v,data:m})),g.limit&&g.limit>0&&l.count>g.limit&&y?l.queue.push({toastContent:E,toastProps:v,staleId:s}):yu(i)?setTimeout((()=>{h(E,v,s)}),i):h(E,v,s)}function h(e,t,r){const{toastId:n}=t;r&&a.delete(r);const o={content:e,props:t};a.set(n,o),i((e=>[...e,n].filter((e=>e!==r)))),xu.emit(4,Su(o,null==o.props.updateId?"added":"updated"))}return(0,e.useEffect)((()=>(l.containerId=t.containerId,xu.cancelEmit(3).on(0,d).on(1,(e=>o.current&&c(e))).on(5,u).emit(2,l),()=>{a.clear(),xu.emit(3,l)})),[]),(0,e.useEffect)((()=>{l.props=t,l.isToastActive=s,l.displayedToast=n.length})),{getToastToRender:function(e){const r=new Map,n=Array.from(a.values());return t.newestOnTop&&n.reverse(),n.forEach((e=>{const{position:t}=e.props;r.has(t)||r.set(t,[]),r.get(t).push(e)})),Array.from(r,(t=>e(t[0],t[1])))},containerRef:o,isToastActive:s}}function Mu(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function Pu(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function Tu(t){const[r,n]=(0,e.useState)(!1),[i,o]=(0,e.useState)(!1),a=(0,e.useRef)(null),s=(0,e.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,l=(0,e.useRef)(t),{autoClose:u,pauseOnHover:c,closeToast:f,onClick:d,closeOnClick:h}=t;function p(e){if(t.draggable){"touchstart"===e.nativeEvent.type&&e.nativeEvent.preventDefault(),s.didMove=!1,document.addEventListener("mousemove",y),document.addEventListener("mouseup",v),document.addEventListener("touchmove",y),document.addEventListener("touchend",v);const r=a.current;s.canCloseOnClick=!0,s.canDrag=!0,s.boundingRect=r.getBoundingClientRect(),r.style.transition="",s.x=Mu(e.nativeEvent),s.y=Pu(e.nativeEvent),"x"===t.draggableDirection?(s.start=s.x,s.removalDistance=r.offsetWidth*(t.draggablePercent/100)):(s.start=s.y,s.removalDistance=r.offsetHeight*(80===t.draggablePercent?1.5*t.draggablePercent:t.draggablePercent/100))}}function m(e){if(s.boundingRect){const{top:r,bottom:n,left:i,right:o}=s.boundingRect;"touchend"!==e.nativeEvent.type&&t.pauseOnHover&&s.x>=i&&s.x<=o&&s.y>=r&&s.y<=n?A():g()}}function g(){n(!0)}function A(){n(!1)}function y(e){const n=a.current;s.canDrag&&n&&(s.didMove=!0,r&&A(),s.x=Mu(e),s.y=Pu(e),s.delta="x"===t.draggableDirection?s.x-s.start:s.y-s.start,s.start!==s.x&&(s.canCloseOnClick=!1),n.style.transform="translate".concat(t.draggableDirection,"(").concat(s.delta,"px)"),n.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function v(){document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",v),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",v);const e=a.current;if(s.canDrag&&s.didMove&&e){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return o(!0),void t.closeToast();e.style.transition="transform 0.2s, opacity 0.2s",e.style.transform="translate".concat(t.draggableDirection,"(0)"),e.style.opacity="1"}}(0,e.useEffect)((()=>{l.current=t})),(0,e.useEffect)((()=>(a.current&&a.current.addEventListener("d",g,{once:!0}),bu(t.onOpen)&&t.onOpen((0,e.isValidElement)(t.children)&&t.children.props),()=>{const t=l.current;bu(t.onClose)&&t.onClose((0,e.isValidElement)(t.children)&&t.children.props)})),[]),(0,e.useEffect)((()=>(t.pauseOnFocusLoss&&(document.hasFocus()||A(),window.addEventListener("focus",g),window.addEventListener("blur",A)),()=>{t.pauseOnFocusLoss&&(window.removeEventListener("focus",g),window.removeEventListener("blur",A))})),[t.pauseOnFocusLoss]);const b={onMouseDown:p,onTouchStart:p,onMouseUp:m,onTouchEnd:m};return u&&c&&(b.onMouseEnter=A,b.onMouseLeave=g),h&&(b.onClick=e=>{d&&d(e),s.canCloseOnClick&&f()}),{playToast:g,pauseToast:A,isRunning:r,preventExitTransition:i,toastRef:a,eventHandlers:b}}function Ru(t){let{closeToast:r,theme:n,ariaLabel:i="close"}=t;return e.createElement("button",{className:"Toastify__close-button Toastify__close-button--".concat(n),type:"button",onClick:e=>{e.stopPropagation(),r(e)},"aria-label":i},e.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},e.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function Iu(t){let{delay:r,isRunning:n,closeToast:i,type:o="default",hide:a,className:s,style:l,controlledProgress:u,progress:c,rtl:f,isIn:d,theme:h}=t;const p=a||u&&0===c,m={...l,animationDuration:"".concat(r,"ms"),animationPlayState:n?"running":"paused",opacity:p?0:1};u&&(m.transform="scaleX(".concat(c,")"));const g=Au("Toastify__progress-bar",u?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated","Toastify__progress-bar-theme--".concat(h),"Toastify__progress-bar--".concat(o),{"Toastify__progress-bar--rtl":f}),A=bu(s)?s({rtl:f,type:o,defaultClassName:g}):Au(g,s);return e.createElement("div",{role:"progressbar","aria-hidden":p?"true":"false","aria-label":"notification timer",className:A,style:m,[u&&c>=1?"onTransitionEnd":"onAnimationEnd"]:u&&c<1?null:()=>{d&&i()}})}const Ou=t=>{const{isRunning:r,preventExitTransition:n,toastRef:i,eventHandlers:o}=Tu(t),{closeButton:a,children:s,autoClose:l,onClick:u,type:c,hideProgressBar:f,closeToast:d,transition:h,position:p,className:m,style:g,bodyClassName:A,bodyStyle:y,progressClassName:v,progressStyle:b,updateId:w,role:E,progress:k,rtl:S,toastId:x,deleteToast:N,isIn:C,isLoading:_,iconOut:M,closeOnClick:P,theme:T}=t,R=Au("Toastify__toast","Toastify__toast-theme--".concat(T),"Toastify__toast--".concat(c),{"Toastify__toast--rtl":S},{"Toastify__toast--close-on-click":P}),I=bu(m)?m({rtl:S,position:p,type:c,defaultClassName:R}
2):Au(R,m),O=!!k||!l,B={closeToast:d,type:c,theme:T};let L=null;return!1===a||(L=bu(a)?a(B):(0,e.isValidElement)(a)?(0,e.cloneElement)(a,B):Ru(B)),e.createElement(h,{isIn:C,done:N,position:p,preventExitTransition:n,nodeRef:i},e.createElement("div",{id:x,onClick:u,className:I,...o,style:g,ref:i},e.createElement("div",{...C&&{role:E},className:bu(A)?A({type:c}):Au("Toastify__toast-body",A),style:y},null!=M&&e.createElement("div",{className:Au("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!_})},M),e.createElement("div",null,s)),L,e.createElement(Iu,{...w&&!O?{key:"pb-".concat(w)}:{},rtl:S,theme:T,delay:l,isRunning:r,isIn:C,closeToast:d,hide:f,type:c,style:b,className:v,controlledProgress:O,progress:k||0})))},Bu=function(e,t){return void 0===t&&(t=!1),{enter:"Toastify--animate Toastify__".concat(e,"-enter"),exit:"Toastify--animate Toastify__".concat(e,"-exit"),appendPosition:t}},Lu=ku(Bu("bounce",!0)),Fu=(ku(Bu("slide",!0)),ku(Bu("zoom")),ku(Bu("flip")),(0,e.forwardRef)(((t,r)=>{const{getToastToRender:n,containerRef:i,isToastActive:o}=_u(t),{className:a,style:s,rtl:l,containerId:u}=t;function c(e){const t=Au("Toastify__toast-container","Toastify__toast-container--".concat(e),{"Toastify__toast-container--rtl":l});return bu(a)?a({position:e,rtl:l,defaultClassName:t}):Au(t,wu(a))}return(0,e.useEffect)((()=>{r&&(r.current=i.current)}),[]),e.createElement("div",{ref:i,className:"Toastify",id:u},n(((t,r)=>{const n=r.length?{...s}:{...s,pointerEvents:"none"};return e.createElement("div",{className:c(t),style:n,key:"container-".concat(t)},r.map(((t,n)=>{let{content:i,props:a}=t;return e.createElement(Ou,{...a,isIn:o(a.toastId),style:{...a.style,"--nth":n+1,"--len":r.length},key:"toast-".concat(a.key)},i)})))})))})));Fu.displayName="ToastContainer",Fu.defaultProps={position:"top-right",transition:Lu,autoClose:5e3,closeButton:Ru,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let Du,Uu=new Map,ju=[],zu=1;function Qu(){return""+zu++}function Hu(e){return e&&(vu(e.toastId)||yu(e.toastId))?e.toastId:Qu()}function qu(e,t){return Uu.size>0?xu.emit(0,e,t):ju.push({content:e,options:t}),t.toastId}function Gu(e,t){return{...t,type:t&&t.type||e,toastId:Hu(t)}}function Vu(e){return(t,r)=>qu(t,Gu(e,r))}function Wu(e,t){return qu(e,Gu("default",t))}Wu.loading=(e,t)=>
2qu(e,Gu("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),Wu.promise=function(e,t,r){let n,{pending:i,error:o,success:a}=t;i&&(n=vu(i)?Wu.loading(i,r):Wu.loading(i.render,{...r,...i}));const s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(e,t,i)=>{if(null==t)return void Wu.dismiss(n);const o={type:e,...s,...r,data:i},a=vu(t)?{render:t}:t;return n?Wu.update(n,{...o,...a}):Wu(a.render,{...o,...a}),i},u=bu(e)?e():e;return u.then((e=>l("success",a,e))).catch((e=>l("error",o,e))),u},Wu.success=Vu("success"),Wu.info=Vu("info"),Wu.error=Vu("error"),Wu.warning=Vu("warning"),Wu.warn=Wu.warning,Wu.dark=(e,t)=>qu(e,Gu("default",{theme:"dark",...t})),Wu.dismiss=e=>{Uu.size>0?xu.emit(1,e):ju=ju.filter((t=>null!=e&&t.options.toastId!==e))},Wu.clearWaitingQueue=function(e){return void 0===e&&(e={}),xu.emit(5,e)},Wu.isActive=e=>{let t=!1;return Uu.forEach((r=>{r.isToastActive&&r.isToastActive(e)&&(t=!0)})),t},Wu.update=function(e,t){void 0===t&&(t={}),setTimeout((()=>{const r=function(e,t){let{containerId:r}=t;const n=Uu.get(r||Du);return n&&n.getToast(e)}(e,t);if(r){const{props:n,content:i}=r,o={delay:100,...n,...t,toastId:t.toastId||e,updateId:Qu()};o.toastId!==e&&(o.staleId=e);const a=o.render||i;delete o.render,qu(a,o)}}),0)},Wu.done=e=>{Wu.update(e,{progress:1})},Wu.onChange=e=>(xu.on(4,e),()=>{xu.off(4,e)}),Wu.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},Wu.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},xu.on(2,(e=>{Du=e.containerId||e,Uu.set(Du,e),ju.forEach((e=>{xu.emit(0,e.content,e.options)})),ju=[]})).on(3,(e=>{Uu.delete(e.containerId||e),0===Uu.size&&xu.off(0).off(1).off(5)}));const Ju=[{id:"1",deliveryDays:7,priceCents:0},{id:"2",deliveryDays:3,priceCents:499},{id:"3",deliveryDays:1,priceCents:999}],Ku=r.p+"static/media/kwuva-mobile-logo.e4ea71ac7d1e7b8bd945.png",Yu=r.p+"static/media/kwuva-logo.e4ea71ac7d1e7b8bd945.png",Xu=[{inputs:[],name:"InvalidInitialization",type:"error"},{inputs:[],name:"NotInitializing",type:"error"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint64",name:"version",type:"uint64"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"payer",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"paymentId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"date",type:"uint256"}],name:"PaymentDone",type:"event"},{inputs:[],name:"admin",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"paymentId",type:"uint256"}],name:"placeOrder",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_newAdmin",type:"address"}],name:"setNewAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"withdrawProfits",outputs:[],stateMutability:"nonpayable",type:"function"}],Zu=()=>{const t=we(),r=N(),[n,i]=(0,e.useState)(0),o=g(Lr),a=g(Br),s=()=>{let e=0;return a.forEach((t=>{const{productId:r}=t,n=Dr.find((e=>e.id===r)),{deliveryOptionId:i}=t,o=Ju.find((e=>e.id===i)),a=n.priceCents,s=o.priceCents;e+=a*t.quantity+s})),e},l=()=>{const e=s();i(e)},u=e=>e.map((e=>{const{productId:t}=e,r=Dr.find((e=>e.id===t)),{deliveryOptionId:n}=e,i=Ju.find((e=>e.id===n)),o=new Date,a=new Date(o.getTime()+24*i.deliveryDays*60*60*1e3),s=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][a.getDay()],l=["January","February","March","April","May","June","July","August","September","October","November","December"][a.getMonth()],u=a.getDate(),c="".concat(s,", ").concat(l," ").concat(u);return{productId:e.productId,matchingProductId:r.id,deliveryDate:c,productImage:r.image,productName:r.name,productPrice:"$TLOS ".concat(Ur(r.priceCents)),quantity:e.quantity,deliveryOptionId:i.id}})),c=(e,t)=>{r(Or({productId:e,deliveryOptionId:t}));const n=s();i(n)},f=(e,t)=>{const r=e;return Ju.map((e=>{const n=new Date,i=new Date(n.getTime()+24*e.deliveryDays*60*60*1e3),o=["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
2ay","Saturday"][i.getDay()],a=["January","February","March","April","May","June","July","August","September","October","November","December"][i.getMonth()],s=i.getDate(),l="".concat(o,", ").concat(a," ").concat(s),u=0===e.priceCents?"FREE":"$TLOS ".concat(Ur(e.priceCents)," -"),f=e.id===t;return(0,jr.jsxs)("div",{className:"delivery-option js-delivery-option","data-product-id":r,"data-delivery-option-id":e.id,onClick:()=>c(r,e.id),onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||c(r,e.id)},role:"button",tabIndex:0,children:[(0,jr.jsx)("input",{type:"radio",checked:f,onChange:()=>{c(r,e.id)},className:"delivery-option-input",name:"delivery-option-".concat(r)}),(0,jr.jsxs)("div",{children:[(0,jr.jsx)("div",{className:"delivery-option-date",children:l}),(0,jr.jsxs)("div",{className:"delivery-option-price",children:[u," ","Shipping"]})]})]},e.id)}))};(0,e.useEffect)((()=>{u(a)}),[a]),(0,e.useEffect)((()=>{const e=s();i(e)}),[a]);const d=()=>{t("/")};return(0,jr.jsxs)("div",{children:[(0,jr.jsx)("div",{className:"checkout-header",children:(0,jr.jsxs)("div",{className:"header-content",children:[(0,jr.jsx)("div",{className:"checkout-header-left-section",children:(0,jr.jsxs)("div",{role:"button",tabIndex:0,onClick:d,onKeyDown:e=>{"Enter"===e.key&&d()},children:[(0,jr.jsx)("img",{className:"kwuva-logo",src:Yu,alt:"Kwuva Logo"}),(0,jr.jsx)("img",{className:"kwuva-mobile-logo",src:Ku,alt:"Mobile Kwuva Logo"})]})}),(0,jr.jsxs)("div",{className:"checkout-header-middle-section",children:["Checkout (",(0,jr.jsx)("a",{className:"return-to-home-link",href:"./index.html",children:o}),")"]}),(0,jr.jsx)("div",{className:"checkout-header-right-section",children:(0,jr.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAVCAYAAABPPm7SAAAAvklEQVQ4y2NgwAJmzpypC8TrgfgdCM+aNWs1EGszEAOAGryB+AcQ/wfiW0B8G8r+PmPGDC9CmpWB+DMQ/wPibJg4UGMR1JAv06ZNU8JnwDyQQqCGJVjkVkANmY3PgJcgRbNnz3ZCl5s+fboD1ICn+AwAKfg/Z84ceXQ5kBhMnqABQCyHRU4OqwFAp1kDBS8jaSYWXwRGrRXI5ItkaIbhSwwUaIZ4Z9SAUQOoZcAnCgz4zADMENNBJQ05moF4BgDc7eAwEsfcBQAAAABJRU5ErkJggg==",alt:"Checkout Lock Icon"})})]})}),(0,jr.jsxs)("div",{className:"main",children:[(0,jr.jsx)("div",{className:"page-title",children:"Review your order"}),(0,jr.jsxs)("div",{className:"checkout-grid",children:[(0,jr.jsx)("div",{className:"order-summary js-order-summary",children:u(a).map((e=>(0,jr.jsxs)("div",{className:"cart-item-container js-cart-item-container-".concat(e.matchingProductId),children:[(0,jr.jsxs)("div",{className:"delivery-date",children:["Delivery date:"," ",e.deliveryDate]}),(0,jr.jsxs)("div",{className:"cart-item-details-grid",children:[(0,jr.jsx)("img",{className:"product-image",src:e.productImage,alt:"Product"}),(0,jr.jsxs)("div",{className:"cart-item-details",children:[(0,jr.jsx)("div",{className:"product-name",children:e.productName}),(0,jr.jsx)("div",{className:"product-price",children:e.productPrice}),(0,jr.jsxs)("div",{className:"product-quantity",children:[(0,jr.jsxs)("span",{children:["Quantity:"," ",(0,jr.jsx)("span",{className:"quantity-label",children:e.quantity})]}),(0,jr.jsx)("button",{type:"submit",className:"update-quantity-link link-primary",onClick:l,children:"Update"}),(0,jr.jsx)("button",{type:"submit",className:"delete-quantity-link link-primary js-delete-link","data-product-id":e.matchingProductId,onClick:()=>(e=>{r(Ir({productId:e}));const t=a.filter((t=>t.productId!==e));return u(t),t})(e.matchingProductId),children:"Delete"})]})]}),(0,jr.jsxs)("div",{className:"delivery-options",children:[(0,jr.jsx)("div",{className:"delivery-options-title",children:"Choose a delivery option:"}),f(e.matchingProductId,e.deliveryOptionId)]})]})]},e.productId)))}),(0,jr.jsxs)("div",{className:"payment-summary",children:[(0,jr.jsx)("div",{className:"payment-summary-title",children:"Order Summary"}),(0,jr.jsxs)("div",{className:"payment-summary-row",children:[(0,jr.jsxs)("div",{children:["Items (",o,"):"]}),(0,jr.jsx)("div",{className:"payment-summary-money",children:"TLOS 42.75"})]}),(0,jr.jsxs)("div",{className:"payment-summary-row",children:[(0,jr.jsx)("div",{children:"Shipping & handling:"}),(0,jr.jsx)("div",{className:"payment-summary-money",children:"TLOS 4.99"})]}),(0,jr.jsxs)("div",{className:"payment-summary-row subtotal-row",children:[(0,jr.jsx)("div",{children:"Total before tax:"}),(0,jr.jsx)("div",{className:"payment-summary-money",children:"TLOS 47.74"})]}),(0,jr.jsxs)("div",{className:"payment-summary-row",children:[(0,jr.jsx)("div",{children:"Estimated tax (10%):"}),(0,jr.jsx)("div",{className:"payment-summary-money",children:"TLOS 4.77"})]}),(0,jr.jsxs)("div",{className:"payment-summary-row total-row",children:[(0,jr.jsx)("div",{children:"Order total:"}),(0,jr.jsxs)("div",{className:"payment-summary-money",children:["TLOS",Ur(n)]})]}),(0,jr.jsx)("button",{type:"submit",className:"place-order-button button-primary",onClick:()=>{const e=s();(async(e,t)=>{try{if("undefined"!==typeof window&&"undefined"!==typeof window.ethereum){const n=new Ds(window.ethereum),i=new $l
2("0xb74512701B8143fCBbBbd5474a14B789773b8c93",Xu,n.getSigner()),o=await i.placeOrder(t,{value:e,gasLimit:3e6});try{await o.wait(),Wu.success("Payment successful",{autoClose:1e4})}catch(r){console.error("Error fetching transaction receipt:",r)}}else Wu.success("lease install MetaMask",{autoClose:1e4})}catch(r){console.error("Error during payment:",r)}})(mu(Ur(e),"ether"),Math.floor(1e3*Math.random()))},children:"Place your order"}),(0,jr.jsx)(Fu,{})]})]})]})]})},$u=()=>(0,jr.jsx)("div",{children:(0,jr.jsx)("p",{children:"Not found!"})}),ec=()=>(0,jr.jsx)(Qr,{children:(0,jr.jsxs)(De,{children:[(0,jr.jsx)(Le,{path:"/",element:(0,jr.jsx)(Wr,{}),children:(0,jr.jsx)(Le,{index:!0,element:(0,jr.jsx)(Vr,{})})}),(0,jr.jsx)(Le,{path:"/checkout",element:(0,jr.jsx)(Zu,{})}),(0,jr.jsx)(Le,{path:"/login",element:(0,jr.jsx)(Jr,{})}),(0,jr.jsx)(Le,{path:"*",element:(0,jr.jsx)($u,{})})]})}),tc=()=>(0,jr.jsx)("div",{children:(0,jr.jsx)(ec,{})}),rc=function(e){const t=function(e){const{thunk:t=!0,immutableCheck:r=!0,serializableCheck:n=!0,actionCreatorCheck:i=!0}=null!==e&&void 0!==e?e:{};let o=new dr;return t&&(function(e){return"boolean"===typeof e}(t)?o.push(lr):o.push(ur(t.extraArgument))),o},{reducer:r,middleware:n,devTools:i=!0,preloadedState:o,enhancers:a}=e||{};let s,l;if("function"===typeof r)s=r;else{if(!nr(r))throw new Error(Pr(1));s=or(r)}l="function"===typeof n?n(t):t();let u=ar;i&&(u=cr({trace:!1,..."object"===typeof i&&i}));const c=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return e=>(r,n)=>{const i=e(r,n);let o=()=>{throw new Error($t(15))};const a={getState:i.getState,dispatch:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return o(e,...r)}},s=t.map((e=>e(a)));return o=ar(...s)(i.dispatch),{...i,dispatch:o}}}(...l),f=yr(c);let d="function"===typeof a?a(f):f();return ir(s,o,u(...d))}({reducer:{cart:Fr}}),nc=rc;n.createRoot(document.getElementById("root")).render((0,jr.jsx)(e.StrictMode,{children:(0,jr.jsx)(w,{store:nc,children:(0,jr.jsx)(Ve,{children:(0,jr.jsx)(tc,{})})})}))})()})(); 3//# sourceMappingURL=main.f9b8d2c9.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.