(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"00dc":function(t,e,n){(function(t){var r=n("58a2"),i=n("c24d"),o=n("561d");function s(e){var n=new t(i[e].prime,"hex"),r=new t(i[e].gen,"hex");return new o(n,r)}var a={binary:!0,hex:!0,base64:!0};function u(e,n,i,s){return t.isBuffer(n)||void 0===a[n]?u(e,"binary",n,i):(n=n||"binary",s=s||"binary",i=i||new t([2]),t.isBuffer(i)||(i=new t(i,s)),"number"===typeof e?new o(r(e,i),i,!0):(t.isBuffer(e)||(e=new t(e,n)),new o(e,i,!0)))}e.DiffieHellmanGroup=e.createDiffieHellmanGroup=e.getDiffieHellman=s,e.createDiffieHellman=e.DiffieHellman=u}).call(this,n("b639").Buffer)},"00ee":function(t,e,n){var r=n("b622"),i=r("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},"0106":function(t,e,n){(function(t){(function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var s;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{s="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:n(21).Buffer}catch(L){}function a(t,e){var n=t.charCodeAt(e);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function u(t,e,n){var r=a(t,n);return n-1>=e&&(r|=a(t,n-1)<<4),r}function c(t,e,n,r){for(var i=0,o=Math.min(t.length,n),s=e;s=49?a-49+10:a>=17?a-17+10:a}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"===typeof t)return this._initNumber(t,e,n);if("object"===typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&(i++,this.negative=1),i=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);else if("le"===n)for(i=0,o=0;i>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r=e;r-=2)i=u(t,e,r)<=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else{var a=t.length-e;for(r=a%2===0?e+1:e;r=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8}this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,s=o%r,a=Math.min(o,o-s)+n,u=0,l=n;l1&&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},o.prototype.inspect=function(){return(this.red?""};var l=["","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],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(t){for(var e=new Array(t.bitLength()),n=0;n>>i}return e}function p(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,u=s/67108864|0;n.words[0]=a;for(var c=1;c>>26,h=67108863&u,d=Math.min(c,e.length-1),f=Math.max(0,c-t.length+1);f<=d;f++){var p=c-f|0;i=0|t.words[p],o=0|e.words[f],s=i*o+h,l+=s/67108864|0,h=67108863&s}n.words[c]=0|h,u=0|l}return 0!==u?n.words[c]=0|u:n.length--,n.strip()}o.prototype.toString=function(t,e){var n;if(t=t||10,e=0|e||1,16===t||"hex"===t){n="";for(var i=0,o=0,s=0;s>>24-i&16777215,n=0!==o||s!==this.length-1?l[6-u.length]+u+n:u+n,i+=2,i>=26&&(i-=26,s--)}0!==o&&(n=o.toString(16)+n);while(n.length%e!==0)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var c=h[t],f=d[t];n="";var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modn(f).toString(t);p=p.idivn(f),n=p.isZero()?m+n:l[c-m.length]+m+n}this.isZero()&&(n="0"+n);while(n.length%e!==0)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r("undefined"!==typeof s),this.toArrayLike(s,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var s,a,u="le"===e,c=new t(o),l=this.clone();if(u){for(a=0;!l.isZero();a++)s=l.andln(255),l.iushrn(8),c[a]=s;for(;a=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0===(8191&e)&&(n+=13,e>>>=13),0===(127&e)&&(n+=7,e>>>=7),0===(15&e)&&(n+=4,e>>>=4),0===(3&e)&&(n+=2,e>>>=2),0===(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;nt.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"===typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,s=0;s>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,f=0|s[1],p=8191&f,m=f>>>13,g=0|s[2],y=8191&g,b=g>>>13,v=0|s[3],_=8191&v,w=v>>>13,M=0|s[4],S=8191&M,A=M>>>13,k=0|s[5],E=8191&k,L=k>>>13,D=0|s[6],T=8191&D,O=D>>>13,x=0|s[7],I=8191&x,j=x>>>13,N=0|s[8],P=8191&N,C=N>>>13,R=0|s[9],Y=8191&R,B=R>>>13,z=0|a[0],U=8191&z,W=z>>>13,H=0|a[1],F=8191&H,q=H>>>13,V=0|a[2],K=8191&V,G=V>>>13,Q=0|a[3],Z=8191&Q,J=Q>>>13,$=0|a[4],X=8191&$,tt=$>>>13,et=0|a[5],nt=8191&et,rt=et>>>13,it=0|a[6],ot=8191&it,st=it>>>13,at=0|a[7],ut=8191&at,ct=at>>>13,lt=0|a[8],ht=8191<,dt=lt>>>13,ft=0|a[9],pt=8191&ft,mt=ft>>>13;n.negative=t.negative^e.negative,n.length=19,r=Math.imul(h,U),i=Math.imul(h,W),i=i+Math.imul(d,U)|0,o=Math.imul(d,W);var gt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(p,U),i=Math.imul(p,W),i=i+Math.imul(m,U)|0,o=Math.imul(m,W),r=r+Math.imul(h,F)|0,i=i+Math.imul(h,q)|0,i=i+Math.imul(d,F)|0,o=o+Math.imul(d,q)|0;var yt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(y,U),i=Math.imul(y,W),i=i+Math.imul(b,U)|0,o=Math.imul(b,W),r=r+Math.imul(p,F)|0,i=i+Math.imul(p,q)|0,i=i+Math.imul(m,F)|0,o=o+Math.imul(m,q)|0,r=r+Math.imul(h,K)|0,i=i+Math.imul(h,G)|0,i=i+Math.imul(d,K)|0,o=o+Math.imul(d,G)|0;var bt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(_,U),i=Math.imul(_,W),i=i+Math.imul(w,U)|0,o=Math.imul(w,W),r=r+Math.imul(y,F)|0,i=i+Math.imul(y,q)|0,i=i+Math.imul(b,F)|0,o=o+Math.imul(b,q)|0,r=r+Math.imul(p,K)|0,i=i+Math.imul(p,G)|0,i=i+Math.imul(m,K)|0,o=o+Math.imul(m,G)|0,r=r+Math.imul(h,Z)|0,i=i+Math.imul(h,J)|0,i=i+Math.imul(d,Z)|0,o=o+Math.imul(d,J)|0;var vt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(S,U),i=Math.imul(S,W),i=i+Math.imul(A,U)|0,o=Math.imul(A,W),r=r+Math.imul(_,F)|0,i=i+Math.imul(_,q)|0,i=i+Math.imul(w,F)|0,o=o+Math.imul(w,q)|0,r=r+Math.imul(y,K)|0,i=i+Math.imul(y,G)|0,i=i+Math.imul(b,K)|0,o=o+Math.imul(b,G)|0,r=r+Math.imul(p,Z)|0,i=i+Math.imul(p,J)|0,i=i+Math.imul(m,Z)|0,o=o+Math.imul(m,J)|0,r=r+Math.imul(h,X)|0,i=i+Math.imul(h,tt)|0,i=i+Math.imul(d,X)|0,o=o+Math.imul(d,tt)|0;var _t=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(E,U),i=Math.imul(E,W),i=i+Math.imul(L,U)|0,o=Math.imul(L,W),r=r+Math.imul(S,F)|0,i=i+Math.imul(S,q)|0,i=i+Math.imul(A,F)|0,o=o+Math.imul(A,q)|0,r=r+Math.imul(_,K)|0,i=i+Math.imul(_,G)|0,i=i+Math.imul(w,K)|0,o=o+Math.imul(w,G)|0,r=r+Math.imul(y,Z)|0,i=i+Math.imul(y,J)|0,i=i+Math.imul(b,Z)|0,o=o+Math.imul(b,J)|0,r=r+Math.imul(p,X)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(m,X)|0,o=o+Math.imul(m,tt)|0,r=r+Math.imul(h,nt)|0,i=i+Math.imul(h,rt)|0,i=i+Math.imul(d,nt)|0,o=o+Math.imul(d,rt)|0;var wt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(T,U),i=Math.imul(T,W),i=i+Math.imul(O,U)|0,o=Math.imul(O,W),r=r+Math.imul(E,F)|0,i=i+Math.imul(E,q)|0,i=i+Math.imul(L,F)|0,o=o+Math.imul(L,q)|0,r=r+Math.imul(S,K)|0,i=i+Math.imul(S,G)|0,i=i+Math.imul(A,K)|0,o=o+Math.imul(A,G)|0,r=r+Math.imul(_,Z)|0,i=i+Math.imul(_,J)|0,i=i+Math.imul(w,Z)|0,o=o+Math.imul(w,J)|0,r=r+Math.imul(y,X)|0,i=i+Math.imul(y,tt)|0,i=i+Math.imul(b,X)|0,o=o+Math.imul(b,tt)|0,r=r+Math.imul(p,nt)|0,i=i+Math.imul(p,rt)|0,i=i+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0,r=r+Math.imul(h,ot)|0,i=i+Math.imul(h,st)|0,i=i+Math.imul(d,ot)|0,o=o+Math.imul(d,st)|0;var Mt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(I,U),i=Math.imul(I,W),i=i+Math.imul(j,U)|0,o=Math.imul(j,W),r=r+Math.imul(T,F)|0,i=i+Math.imul(T,q)|0,i=i+Math.imul(O,F)|0,o=o+Math.imul(O,q)|0,r=r+Math.imul(E,K)|0,i=i+Math.imul(E,G)|0,i=i+Math.imul(L,K)|0,o=o+Math.imul(L,G)|0,r=r+Math.imul(S,Z)|0,i=i+Math.imul(S,J)|0,i=i+Math.imul(A,Z)|0,o=o+Math.imul(A,J)|0,r=r+Math.imul(_,X)|0,i=i+Math.imul(_,tt)|0,i=i+Math.imul(w,X)|0,o=o+Math.imul(w,tt)|0,r=r+Math.imul(y,nt)|0,i=i+Math.imul(y,rt)|0,i=i+Math.imul(b,nt)|0,o=o+Math.imul(b,rt)|0,r=r+Math.imul(p,ot)|0,i=i+Math.imul(p,st)|0,i=i+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0,r=r+Math.imul(h,ut)|0,i=i+Math.imul(h,ct)|0,i=i+Math.imul(d,ut)|0,o=o+Math.imul(d,ct)|0;var St=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(P,U),i=Math.imul(P,W),i=i+Math.imul(C,U)|0,o=Math.imul(C,W),r=r+Math.imul(I,F)|0,i=i+Math.imul(I,q)|0,i=i+Math.imul(j,F)|0,o=o+Math.imul(j,q)|0,r=r+Math.imul(T,K)|0,i=i+Math.imul(T,G)|0,i=i+Math.imul(O,K)|0,o=o+Math.imul(O,G)|0,r=r+Math.imul(E,Z)|0,i=i+Math.imul(E,J)|0,i=i+Math.imul(L,Z)|0,o=o+Math.imul(L,J)|0,r=r+Math.imul(S,X)|0,i=i+Math.imul(S,tt)|0,i=i+Math.imul(A,X)|0,o=o+Math.imul(A,tt)|0,r=r+Math.imul(_,nt)|0,i=i+Math.imul(_,rt)|0,i=i+Math.imul(w,nt)|0,o=o+Math.imul(w,rt)|0,r=r+Math.imul(y,ot)|0,i=i+Math.imul(y,st)|0,i=i+Math.imul(b,ot)|0,o=o+Math.imul(b,st)|0,r=r+Math.imul(p,ut)|0,i=i+Math.imul(p,ct)|0,i=i+Math.imul(m,ut)|0,o=o+Math.imul(m,ct)|0,r=r+Math.imul(h,ht)|0,i=i+Math.imul(h,dt)|0,i=i+Math.imul(d,ht)|0,o=o+Math.imul(d,dt)|0;var At=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(Y,U),i=Math.imul(Y,W),i=i+Math.imul(B,U)|0,o=Math.imul(B,W),r=r+Math.imul(P,F)|0,i=i+Math.imul(P,q)|0,i=i+Math.imul(C,F)|0,o=o+Math.imul(C,q)|0,r=r+Math.imul(I,K)|0,i=i+Math.imul(I,G)|0,i=i+Math.imul(j,K)|0,o=o+Math.imul(j,G)|0,r=r+Math.imul(T,Z)|0,i=i+Math.imul(T,J)|0,i=i+Math.imul(O,Z)|0,o=o+Math.imul(O,J)|0,r=r+Math.imul(E,X)|0,i=i+Math.imul(E,tt)|0,i=i+Math.imul(L,X)|0,o=o+Math.imul(L,tt)|0,r=r+Math.imul(S,nt)|0,i=i+Math.imul(S,rt)|0,i=i+Math.imul(A,nt)|0,o=o+Math.imul(A,rt)|0,r=r+Math.imul(_,ot)|0,i=i+Math.imul(_,st)|0,i=i+Math.imul(w,ot)|0,o=o+Math.imul(w,st)|0,r=r+Math.imul(y,ut)|0,i=i+Math.imul(y,ct)|0,i=i+Math.imul(b,ut)|0,o=o+Math.imul(b,ct)|0,r=r+Math.imul(p,ht)|0,i=i+Math.imul(p,dt)|0,i=i+Math.imul(m,ht)|0,o=o+Math.imul(m,dt)|0,r=r+Math.imul(h,pt)|0,i=i+Math.imul(h,mt)|0,i=i+Math.imul(d,pt)|0,o=o+Math.imul(d,mt)|0;var kt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(Y,F),i=Math.imul(Y,q),i=i+Math.imul(B,F)|0,o=Math.imul(B,q),r=r+Math.imul(P,K)|0,i=i+Math.imul(P,G)|0,i=i+Math.imul(C,K)|0,o=o+Math.imul(C,G)|0,r=r+Math.imul(I,Z)|0,i=i+Math.imul(I,J)|0,i=i+Math.imul(j,Z)|0,o=o+Math.imul(j,J)|0,r=r+Math.imul(T,X)|0,i=i+Math.imul(T,tt)|0,i=i+Math.imul(O,X)|0,o=o+Math.imul(O,tt)|0,r=r+Math.imul(E,nt)|0,i=i+Math.imul(E,rt)|0,i=i+Math.imul(L,nt)|0,o=o+Math.imul(L,rt)|0,r=r+Math.imul(S,ot)|0,i=i+Math.imul(S,st)|0,i=i+Math.imul(A,ot)|0,o=o+Math.imul(A,st)|0,r=r+Math.imul(_,ut)|0,i=i+Math.imul(_,ct)|0,i=i+Math.imul(w,ut)|0,o=o+Math.imul(w,ct)|0,r=r+Math.imul(y,ht)|0,i=i+Math.imul(y,dt)|0,i=i+Math.imul(b,ht)|0,o=o+Math.imul(b,dt)|0,r=r+Math.imul(p,pt)|0,i=i+Math.imul(p,mt)|0,i=i+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Et=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(Y,K),i=Math.imul(Y,G),i=i+Math.imul(B,K)|0,o=Math.imul(B,G),r=r+Math.imul(P,Z)|0,i=i+Math.imul(P,J)|0,i=i+Math.imul(C,Z)|0,o=o+Math.imul(C,J)|0,r=r+Math.imul(I,X)|0,i=i+Math.imul(I,tt)|0,i=i+Math.imul(j,X)|0,o=o+Math.imul(j,tt)|0,r=r+Math.imul(T,nt)|0,i=i+Math.imul(T,rt)|0,i=i+Math.imul(O,nt)|0,o=o+Math.imul(O,rt)|0,r=r+Math.imul(E,ot)|0,i=i+Math.imul(E,st)|0,i=i+Math.imul(L,ot)|0,o=o+Math.imul(L,st)|0,r=r+Math.imul(S,ut)|0,i=i+Math.imul(S,ct)|0,i=i+Math.imul(A,ut)|0,o=o+Math.imul(A,ct)|0,r=r+Math.imul(_,ht)|0,i=i+Math.imul(_,dt)|0,i=i+Math.imul(w,ht)|0,o=o+Math.imul(w,dt)|0,r=r+Math.imul(y,pt)|0,i=i+Math.imul(y,mt)|0,i=i+Math.imul(b,pt)|0,o=o+Math.imul(b,mt)|0;var Lt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,r=Math.imul(Y,Z),i=Math.imul(Y,J),i=i+Math.imul(B,Z)|0,o=Math.imul(B,J),r=r+Math.imul(P,X)|0,i=i+Math.imul(P,tt)|0,i=i+Math.imul(C,X)|0,o=o+Math.imul(C,tt)|0,r=r+Math.imul(I,nt)|0,i=i+Math.imul(I,rt)|0,i=i+Math.imul(j,nt)|0,o=o+Math.imul(j,rt)|0,r=r+Math.imul(T,ot)|0,i=i+Math.imul(T,st)|0,i=i+Math.imul(O,ot)|0,o=o+Math.imul(O,st)|0,r=r+Math.imul(E,ut)|0,i=i+Math.imul(E,ct)|0,i=i+Math.imul(L,ut)|0,o=o+Math.imul(L,ct)|0,r=r+Math.imul(S,ht)|0,i=i+Math.imul(S,dt)|0,i=i+Math.imul(A,ht)|0,o=o+Math.imul(A,dt)|0,r=r+Math.imul(_,pt)|0,i=i+Math.imul(_,mt)|0,i=i+Math.imul(w,pt)|0,o=o+Math.imul(w,mt)|0;var Dt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,r=Math.imul(Y,X),i=Math.imul(Y,tt),i=i+Math.imul(B,X)|0,o=Math.imul(B,tt),r=r+Math.imul(P,nt)|0,i=i+Math.imul(P,rt)|0,i=i+Math.imul(C,nt)|0,o=o+Math.imul(C,rt)|0,r=r+Math.imul(I,ot)|0,i=i+Math.imul(I,st)|0,i=i+Math.imul(j,ot)|0,o=o+Math.imul(j,st)|0,r=r+Math.imul(T,ut)|0,i=i+Math.imul(T,ct)|0,i=i+Math.imul(O,ut)|0,o=o+Math.imul(O,ct)|0,r=r+Math.imul(E,ht)|0,i=i+Math.imul(E,dt)|0,i=i+Math.imul(L,ht)|0,o=o+Math.imul(L,dt)|0,r=r+Math.imul(S,pt)|0,i=i+Math.imul(S,mt)|0,i=i+Math.imul(A,pt)|0,o=o+Math.imul(A,mt)|0;var Tt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(Y,nt),i=Math.imul(Y,rt),i=i+Math.imul(B,nt)|0,o=Math.imul(B,rt),r=r+Math.imul(P,ot)|0,i=i+Math.imul(P,st)|0,i=i+Math.imul(C,ot)|0,o=o+Math.imul(C,st)|0,r=r+Math.imul(I,ut)|0,i=i+Math.imul(I,ct)|0,i=i+Math.imul(j,ut)|0,o=o+Math.imul(j,ct)|0,r=r+Math.imul(T,ht)|0,i=i+Math.imul(T,dt)|0,i=i+Math.imul(O,ht)|0,o=o+Math.imul(O,dt)|0,r=r+Math.imul(E,pt)|0,i=i+Math.imul(E,mt)|0,i=i+Math.imul(L,pt)|0,o=o+Math.imul(L,mt)|0;var Ot=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(Y,ot),i=Math.imul(Y,st),i=i+Math.imul(B,ot)|0,o=Math.imul(B,st),r=r+Math.imul(P,ut)|0,i=i+Math.imul(P,ct)|0,i=i+Math.imul(C,ut)|0,o=o+Math.imul(C,ct)|0,r=r+Math.imul(I,ht)|0,i=i+Math.imul(I,dt)|0,i=i+Math.imul(j,ht)|0,o=o+Math.imul(j,dt)|0,r=r+Math.imul(T,pt)|0,i=i+Math.imul(T,mt)|0,i=i+Math.imul(O,pt)|0,o=o+Math.imul(O,mt)|0;var xt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(Y,ut),i=Math.imul(Y,ct),i=i+Math.imul(B,ut)|0,o=Math.imul(B,ct),r=r+Math.imul(P,ht)|0,i=i+Math.imul(P,dt)|0,i=i+Math.imul(C,ht)|0,o=o+Math.imul(C,dt)|0,r=r+Math.imul(I,pt)|0,i=i+Math.imul(I,mt)|0,i=i+Math.imul(j,pt)|0,o=o+Math.imul(j,mt)|0;var It=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(Y,ht),i=Math.imul(Y,dt),i=i+Math.imul(B,ht)|0,o=Math.imul(B,dt),r=r+Math.imul(P,pt)|0,i=i+Math.imul(P,mt)|0,i=i+Math.imul(C,pt)|0,o=o+Math.imul(C,mt)|0;var jt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(Y,pt),i=Math.imul(Y,mt),i=i+Math.imul(B,pt)|0,o=Math.imul(B,mt);var Nt=(c+r|0)+((8191&i)<<13)|0;return c=(o+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,u[0]=gt,u[1]=yt,u[2]=bt,u[3]=vt,u[4]=_t,u[5]=wt,u[6]=Mt,u[7]=St,u[8]=At,u[9]=kt,u[10]=Et,u[11]=Lt,u[12]=Dt,u[13]=Tt,u[14]=Ot,u[15]=xt,u[16]=It,u[17]=jt,u[18]=Nt,0!==c&&(u[19]=c,n.length++),n};function g(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o>>26)|0,i+=s>>>26,s&=67108863}n.words[o]=a,r=s,s=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}function y(t,e,n){var r=new b;return r.mulp(t,e,n)}function b(t,e){this.x=t,this.y=e}Math.imul||(m=p),o.prototype.mulTo=function(t,e){var n,r=this.length+t.length;return n=10===this.length&&10===t.length?m(this,t,e):r<63?p(this,t,e):r<1024?g(this,t,e):y(this,t,e),n},b.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r>=1;return r},b.prototype.permute=function(t,e,n,r,i,o){for(var s=0;s>>=1)i++;return 1<>>=13,n[2*s+1]=8191&o,o>>>=13;for(s=2*e;s>=26,e+=i/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=f(t);if(0===e.length)return new o(1);for(var n=this,r=0;r=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var s=0;for(e=0;e>>26-n}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<s)for(this.length-=s,c=0;c=0&&(0!==l||c>=i);c--){var h=0|this.words[c];this.words[c]=l<<26-o|h>>>o,l=h&a}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"===typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i>26,this.words[i+n]=67108863&o;if(0===a)return this.strip();for(r(-1===a),a=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=this.length-t.length,r=this.clone(),i=t,s=0|i.words[i.length-1],a=this._countBits(s);n=26-a,0!==n&&(i=i.ushln(n),r.iushln(n),s=0|i.words[i.length-1]);var u,c=r.length-i.length;if("mod"!==e){u=new o(null),u.length=c+1,u.words=new Array(u.length);for(var l=0;l=0;d--){var f=67108864*(0|r.words[i.length+d])+(0|r.words[i.length+d-1]);f=Math.min(f/s|0,67108863),r._ishlnsubmul(i,f,d);while(0!==r.negative)f--,r.negative=0,r._ishlnsubmul(i,1,d),r.isZero()||(r.negative^=1);u&&(u.words[d]=f)}return u&&u.strip(),r.strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:u||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(s=a.mod.neg(),n&&0!==s.negative&&s.iadd(t)),{div:i,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),n&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,s,a},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i=new o(1),s=new o(0),a=new o(0),u=new o(1),c=0;while(e.isEven()&&n.isEven())e.iushrn(1),n.iushrn(1),++c;var l=n.clone(),h=e.clone();while(!e.isZero()){for(var d=0,f=1;0===(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0){e.iushrn(d);while(d-- >0)(i.isOdd()||s.isOdd())&&(i.iadd(l),s.isub(h)),i.iushrn(1),s.iushrn(1)}for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0){n.iushrn(p);while(p-- >0)(a.isOdd()||u.isOdd())&&(a.iadd(l),u.isub(h)),a.iushrn(1),u.iushrn(1)}e.cmp(n)>=0?(e.isub(n),i.isub(a),s.isub(u)):(n.isub(e),a.isub(i),u.isub(s))}return{a:a,b:u,gcd:n.iushln(c)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i,s=new o(1),a=new o(0),u=n.clone();while(e.cmpn(1)>0&&n.cmpn(1)>0){for(var c=0,l=1;0===(e.words[0]&l)&&c<26;++c,l<<=1);if(c>0){e.iushrn(c);while(c-- >0)s.isOdd()&&s.iadd(u),s.iushrn(1)}for(var h=0,d=1;0===(n.words[0]&d)&&h<26;++h,d<<=1);if(h>0){n.iushrn(h);while(h-- >0)a.isOdd()&&a.iadd(u),a.iushrn(1)}e.cmp(n)>=0?(e.isub(n),s.isub(a)):(n.isub(e),a.isub(s))}return i=0===e.cmpn(1)?s:a,i.cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);do{while(e.isEven())e.iushrn(1);while(n.isEven())n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}while(1);return n.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"===typeof t);var e=t%26,n=(t-e)/26,i=1<>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){ri&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new k(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function _(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function S(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function E(t){k.call(this,t),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)}_.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},_.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),n=this.imulK(n),n=n.iadd(this.tmp),e=n.bitLength()}while(e>this.n);var r=e0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},_.prototype.split=function(t,e){t.iushrn(this.n,0,e)},_.prototype.imulK=function(t){return t.imul(this.k)},i(w,_),w.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i>>22,o=s}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new w;else if("p224"===t)e=new M;else if("p192"===t)e=new S;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new A}return v[t]=e,e},k.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},k.prototype._verify2=function(t,e){r(0===(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},k.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},k.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},k.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},k.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},k.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},k.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},k.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},k.prototype.isqr=function(t){return this.imul(t,t.clone())},k.prototype.sqr=function(t){return this.mul(t,t)},k.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2===1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}var i=this.m.subn(1),s=0;while(!i.isZero()&&0===i.andln(1))s++,i.iushrn(1);r(!i.isZero());var a=new o(1).toRed(this),u=a.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();l=new o(2*l*l).toRed(this);while(0!==this.pow(l,c).cmp(u))l.redIAdd(u);var h=this.pow(l,i),d=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),p=s;while(0!==f.cmp(a)){for(var m=f,g=0;0!==m.cmp(a);g++)m=m.redSqr();r(g=0;i--){for(var l=e.words[i],h=c-1;h>=0;h--){var d=l>>h&1;s!==r[0]&&(s=this.sqr(s)),0!==d||0!==a?(a<<=1,a|=d,u++,(u===n||0===i&&0===h)&&(s=this.mul(s,r[a]),u=0,a=0)):u=0}c=26}return s},k.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},k.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new E(t)},i(E,k),E.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},E.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},E.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).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)},E.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},E.prototype.invm=function(t){var e=this.imod(t._invmp(this.m).mul(this.r2));return e._forceRed(this)}})(t,this)}).call(this,n("62e4")(t))},"010e":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}});return e}))},"0145":function(t,e){e.encrypt=function(t,e){return t._cipher.encryptBlock(e)},e.decrypt=function(t,e){return t._cipher.decryptBlock(e)}},"0184":function(t,e,n){"use strict";var r=n("da3e");function i(t){this.options=t,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}t.exports=i,i.prototype._init=function(){},i.prototype.update=function(t){return 0===t.length?[]:"decrypt"===this.type?this._updateDecrypt(t):this._updateEncrypt(t)},i.prototype._buffer=function(t,e){for(var n=Math.min(this.buffer.length-this.bufferOff,t.length-e),r=0;r0;r--)e+=this._buffer(t,e),n+=this._flushBuffer(i,n);return e+=this._buffer(t,e),i},i.prototype.final=function(t){var e,n;return t&&(e=this.update(t)),n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),e?e.concat(n):n},i.prototype._pad=function(t,e){if(0===e)return!1;while(e0;return l(t,s,a,(function(t){r||(r=t),t&&o.forEach(h),s||(o.forEach(h),i(r))}))}));return e.reduce(d)}t.exports=p},"0211":function(t,e,n){"use strict";const r=e;r._reverse=function(t){const e={};return Object.keys(t).forEach((function(n){(0|n)==n&&(n|=0);const r=t[n];e[r]=n})),e},r.der=n("8b71")},"0261":function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return dM}));var r=n("7a23"),i=n("39c3"),o=Object.defineProperty,s=Object.defineProperties,a=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,h=(t,e,n)=>e in t?o(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,d=(t,e)=>{for(var n in e||(e={}))c.call(e,n)&&h(t,n,e[n]);if(u)for(var n of u(e))l.call(e,n)&&h(t,n,e[n]);return t},f=(t,e)=>s(t,a(e)),p=(t,e)=>{var n={};for(var r in t)c.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&u)for(var r of u(t))e.indexOf(r)<0&&l.call(t,r)&&(n[r]=t[r]);return n};function m(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function g(t,e){if(e.length1?"s":"")+" required, but only "+e.length+" present")}function y(t){g(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===typeof t&&"[object Date]"===e?new Date(t.getTime()):"number"===typeof t||"[object Number]"===e?new Date(t):("string"!==typeof t&&"[object String]"!==e||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function b(t,e){g(2,arguments);var n=y(t),r=m(e);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function v(t,e){g(2,arguments);var n=y(t),r=m(e);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),o=new Date(n.getTime());o.setMonth(n.getMonth()+r+1,0);var s=o.getDate();return i>=s?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function _(t,e){g(2,arguments);var n=m(e);return v(t,12*n)}var w="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:{},M="object"==typeof w&&w&&w.Object===Object&&w,S=M,A=S,k="object"==typeof self&&self&&self.Object===Object&&self,E=A||k||Function("return this")(),L=E,D=L,T=D.Symbol,O=T,x=O,I=Object.prototype,j=I.hasOwnProperty,N=I.toString,P=x?x.toStringTag:void 0;function C(t){var e=j.call(t,P),n=t[P];try{t[P]=void 0;var r=!0}catch(o){}var i=N.call(t);return r&&(e?t[P]=n:delete t[P]),i}var R=C,Y=Object.prototype,B=Y.toString;function z(t){return B.call(t)}var U=z,W=O,H=R,F=U,q="[object Null]",V="[object Undefined]",K=W?W.toStringTag:void 0;function G(t){return null==t?void 0===t?V:q:K&&K in Object(t)?H(t):F(t)}var Q=G;function Z(t){return null!=t&&"object"==typeof t}var J=Z,$=Q,X=J,tt="[object Boolean]";function et(t){return!0===t||!1===t||X(t)&&$(t)==tt}var nt=et,rt=Q,it=J,ot="[object Number]";function st(t){return"number"==typeof t||it(t)&&rt(t)==ot}var at=st,ut=Array.isArray,ct=ut,lt=Q,ht=ct,dt=J,ft="[object String]";function pt(t){return"string"==typeof t||!ht(t)&&dt(t)&<(t)==ft}var mt=pt;function gt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var yt=gt,bt=Q,vt=yt,_t="[object AsyncFunction]",wt="[object Function]",Mt="[object GeneratorFunction]",St="[object Proxy]";function At(t){if(!vt(t))return!1;var e=bt(t);return e==wt||e==Mt||e==_t||e==St}var kt=At,Et=9007199254740991;function Lt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Et}var Dt=Lt,Tt=kt,Ot=Dt;function xt(t){return null!=t&&Ot(t.length)&&!Tt(t)}var It=xt,jt=It,Nt=J;function Pt(t){return Nt(t)&&jt(t)}var Ct=Pt;function Rt(t){return void 0===t}var Yt=Rt,Bt=Q,zt=J,Ut="[object Date]";function Wt(t){return zt(t)&&Bt(t)==Ut}var Ht=Wt;function Ft(t){return function(e){return t(e)}}var qt=Ft,Vt={exports:{}};(function(t,e){var n=S,r=e&&!e.nodeType&&e,i=r&&t&&!t.nodeType&&t,o=i&&i.exports===r,s=o&&n.process,a=function(){try{var t=i&&i.require&&i.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(e){}}();t.exports=a})(Vt,Vt.exports);var Kt=Ht,Gt=qt,Qt=Vt.exports,Zt=Qt&&Qt.isDate,Jt=Zt?Gt(Zt):Kt,$t=Jt;function Xt(t,e,n){return t===t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}var te=Xt,ee=Q,ne=J,re="[object Symbol]";function ie(t){return"symbol"==typeof t||ne(t)&&ee(t)==re}var oe=ie,se=yt,ae=oe,ue=NaN,ce=/^\s+|\s+$/g,le=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,de=/^0o[0-7]+$/i,fe=parseInt;function pe(t){if("number"==typeof t)return t;if(ae(t))return ue;if(se(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=se(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(ce,"");var n=he.test(t);return n||de.test(t)?fe(t.slice(2),n?2:8):le.test(t)?ue:+t}var me=pe,ge=te,ye=me;function be(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=ye(n),n=n===n?n:0),void 0!==e&&(e=ye(e),e=e===e?e:0),ge(ye(t),e,n)}var ve=be,_e=ct,we=oe,Me=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Se=/^\w*$/;function Ae(t,e){if(_e(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!we(t))||(Se.test(t)||!Me.test(t)||null!=e&&t in Object(e))}var ke=Ae,Ee=L,Le=Ee["__core-js_shared__"],De=Le,Te=De,Oe=function(){var t=/[^.]+$/.exec(Te&&Te.keys&&Te.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function xe(t){return!!Oe&&Oe in t}var Ie=xe,je=Function.prototype,Ne=je.toString;function Pe(t){if(null!=t){try{return Ne.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var Ce=Pe,Re=kt,Ye=Ie,Be=yt,ze=Ce,Ue=/[\\^$.*+?()[\]{}|]/g,We=/^\[object .+?Constructor\]$/,He=Function.prototype,Fe=Object.prototype,qe=He.toString,Ve=Fe.hasOwnProperty,Ke=RegExp("^"+qe.call(Ve).replace(Ue,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ge(t){if(!Be(t)||Ye(t))return!1;var e=Re(t)?Ke:We;return e.test(ze(t))}var Qe=Ge;function Ze(t,e){return null==t?void 0:t[e]}var Je=Ze,$e=Qe,Xe=Je;function tn(t,e){var n=Xe(t,e);return $e(n)?n:void 0}var en=tn,nn=en,rn=nn(Object,"create"),on=rn,sn=on;function an(){this.__data__=sn?sn(null):{},this.size=0}var un=an;function cn(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var ln=cn,hn=on,dn="__lodash_hash_undefined__",fn=Object.prototype,pn=fn.hasOwnProperty;function mn(t){var e=this.__data__;if(hn){var n=e[t];return n===dn?void 0:n}return pn.call(e,t)?e[t]:void 0}var gn=mn,yn=on,bn=Object.prototype,vn=bn.hasOwnProperty;function _n(t){var e=this.__data__;return yn?void 0!==e[t]:vn.call(e,t)}var wn=_n,Mn=on,Sn="__lodash_hash_undefined__";function An(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mn&&void 0===e?Sn:e,this}var kn=An,En=un,Ln=ln,Dn=gn,Tn=wn,On=kn;function xn(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e-1}var Zn=Qn,Jn=Bn;function $n(t,e){var n=this.__data__,r=Jn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var Xn=$n,tr=Nn,er=Fn,nr=Kn,rr=Zn,ir=Xn;function or(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e-1&&t%1==0&&ta))return!1;var c=o.get(t),l=o.get(e);if(c&&l)return c==e&&l==t;var h=-1,d=!0,f=n&La?new Sa:void 0;o.set(t,e),o.set(e,t);while(++h0){if(++e>=Dh)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var Ih=xh,jh=Lh,Nh=Ih,Ph=Nh(jh),Ch=Ph,Rh=Dl,Yh=_h,Bh=Ch;function zh(t,e){return Bh(Yh(t,e,Rh),t+"")}var Uh=zh,Wh=Cn,Hh=It,Fh=qi,qh=yt;function Vh(t,e,n){if(!qh(n))return!1;var r=typeof e;return!!("number"==r?Hh(n)&&Fh(e,n.length):"string"==r&&e in n)&&Wh(n[e],t)}var Kh=Vh;function Gh(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}var Qh=Gh,Zh=yt,Jh=vs,$h=Qh,Xh=Object.prototype,td=Xh.hasOwnProperty;function ed(t){if(!Zh(t))return $h(t);var e=Jh(t),n=[];for(var r in t)("constructor"!=r||!e&&td.call(t,r))&&n.push(r);return n}var nd=ed,rd=gs,id=nd,od=It;function sd(t){return od(t)?rd(t,!0):id(t)}var ad=sd,ud=Uh,cd=Cn,ld=Kh,hd=ad,dd=Object.prototype,fd=dd.hasOwnProperty,pd=ud((function(t,e){t=Object(t);var n=-1,r=e.length,i=r>2?e[2]:void 0;i&&ld(e[0],e[1],i)&&(r=1);while(++n1?n[i-1]:void 0,s=i>2?n[2]:void 0;o=t.length>3&&"function"==typeof o?(i--,o):void 0,s&&zf(n[0],n[1],s)&&(o=i<3?void 0:o,i=1),e=Object(e);while(++r0&&n(a)?e>1?gp(a,e-1,n,r,i):pp(i,a):r||(i[i.length]=a)}return i}var yp=gp,bp=yp;function vp(t){var e=null==t?0:t.length;return e?bp(t,1):[]}var _p=vp,wp=_p,Mp=_h,Sp=Ch;function Ap(t){return Sp(Mp(t,void 0,wp),t+"")}var kp=Ap,Ep=ap,Lp=kp,Dp=Lp((function(t,e){return null==t?{}:Ep(t,e)})),Tp=Dp;function Op(t,e){var n=-1,r=null==t?0:t.length;while(++ni?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;var o=Array(i);while(++r1),e})),Cy(t,By(t),n),r&&(n=jy(n,zy|Uy|Wy,Ry));var i=e.length;while(i--)Ny(n,e[i]);return n})),Fy=Hy,qy=Object.prototype,Vy=qy.hasOwnProperty;function Ky(t,e){return null!=t&&Vy.call(t,e)}var Gy=Ky,Qy=Gy,Zy=hl;function Jy(t,e){return null!=t&&Zy(t,e,Qy)}var $y=Jy,Xy=It;function tb(t,e){return function(n,r){if(null==n)return n;if(!Xy(n))return t(n,r);var i=n.length,o=e?i:-1,s=Object(n);while(e?o--:++oObject.prototype.toString.call(t).slice(8,-1),Tb=t=>$t(t)&&!isNaN(t.getTime()),Ob=t=>"Object"===Db(t),xb=$y,Ib=(t,e)=>Lb(e,e=>$y(t,e)),jb=Lb,Nb=(t,e,n="0")=>{t=null!==t&&void 0!==t?String(t):"",e=e||2;while(t.length{const e={};return t.forEach(t=>Object.entries(t).forEach(([t,n])=>{e[t]?Ct(e[t])?e[t].push(n):e[t]=[e[t],n]:e[t]=n})),e},Cb=t=>!!(t&&t.month&&t.year),Rb=(t,e)=>!(!Cb(t)||!Cb(e))&&(t.year===e.year?t.month!(!Cb(t)||!Cb(e))&&(t.year===e.year?t.month>e.month:t.year>e.year),Bb=(t,e,n)=>!!t&&!Rb(t,e)&&!Yb(t,n),zb=(t,e)=>!(!t&&e)&&(!(t&&!e)&&(!t&&!e||t.month===e.month&&t.year===e.year)),Ub=({month:t,year:e},n)=>{const r=n>0?1:-1;for(let i=0;i12?(t=1,e++):t<1&&(t=12,e--);return{month:t,year:e}},Wb=(t,e)=>{if(!Cb(t)||!Cb(e))return[];const n=[];while(!Yb(t,e))n.push(t),t=Ub(t,1);return n};function Hb(t,e){const n=Tb(t),r=Tb(e);return!n&&!r||n===r&&t.getTime()===e.getTime()}const Fb=t=>Ct(t)&&t.length>0,qb=(t,e,n)=>{const r=[];return n.forEach(n=>{const i=n.name||n.toString(),o=n.mixin,s=n.validate;if(Object.prototype.hasOwnProperty.call(t,i)){const n=s?s(t[i]):t[i];e[i]=o&&Ob(n)?d(d({},o),n):n,r.push(i)}}),{target:e,assigned:r.length?r:null}},Vb=(t,e,n,r)=>{t&&e&&n&&t.addEventListener(e,n,r)},Kb=(t,e,n,r)=>{t&&e&&t.removeEventListener(e,n,r)},Gb=(t,e)=>!!t&&!!e&&(t===e||t.contains(e)),Qb=(t,e)=>{" "!==t.key&&"Enter"!==t.key||(e(t),t.preventDefault())},Zb=()=>{function t(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return`${t()+t()}-${t()}-${t()}-${t()}-${t()}${t()}${t()}`};function Jb(t){let e,n=0,r=0;if(0===t.length)return n;for(r=0;r{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n};const Xb={name:"CustomTransition",emits:["before-enter","before-transition","after-enter","after-transition"],props:{name:String,appear:Boolean},computed:{name_(){return"vc-"+(this.name||"none")}},methods:{beforeEnter(t){this.$emit("before-enter",t),this.$emit("before-transition",t)},afterEnter(t){this.$emit("after-enter",t),this.$emit("after-transition",t)}}};function tv(t,e,n,i,o,s){return Object(r["openBlock"])(),Object(r["createBlock"])(r["Transition"],{name:s.name_,appear:n.appear,onBeforeEnter:s.beforeEnter,onAfterEnter:s.afterEnter},{default:Object(r["withCtx"])(()=>[Object(r["renderSlot"])(t.$slots,"default")]),_:3},8,["name","appear","onBeforeEnter","onAfterEnter"])}var ev=$b(Xb,[["render",tv]]);const nv={name:"Popover",emits:["before-show","after-show","before-hide","after-hide"],render(){return Object(r["h"])("div",{class:["vc-popover-content-wrapper",{"is-interactive":this.isInteractive}],ref:"popover"},[Object(r["h"])(ev,{name:this.transition,appear:!0,"on-before-enter":this.beforeEnter,"on-after-enter":this.afterEnter,"on-before-leave":this.beforeLeave,"on-after-leave":this.afterLeave},{default:()=>this.isVisible?Object(r["h"])("div",{tabindex:-1,class:["vc-popover-content","direction-"+this.direction,this.contentClass],style:this.contentStyle},[this.content,Object(r["h"])("span",{class:["vc-popover-caret","direction-"+this.direction,"align-"+this.alignment]})]):null})])},props:{id:{type:String,required:!0},contentClass:String},data(){return{ref:null,opts:null,data:null,transition:"slide-fade",transitionTranslate:"15px",transitionDuration:"0.15s",placement:"bottom",positionFixed:!1,modifiers:[],isInteractive:!1,isHovered:!1,isFocused:!1,showDelay:0,hideDelay:110,autoHide:!1,popperEl:null}},computed:{content(){return kt(this.$slots.default)&&this.$slots.default({direction:this.direction,alignment:this.alignment,data:this.data,updateLayout:this.setupPopper,hide:t=>this.hide(t)})||this.$slots.default},contentStyle(){return{"--slide-translate":this.transitionTranslate,"--slide-duration":this.transitionDuration}},popperOptions(){return{placement:this.placement,strategy:this.positionFixed?"fixed":"absolute",modifiers:[{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:this.onPopperUpdate},...this.modifiers||[]],onFirstUpdate:this.onPopperUpdate}},isVisible(){return!(!this.ref||!this.content)},direction(){return this.placement&&this.placement.split("-")[0]||"bottom"},alignment(){const t="left"===this.direction||"right"===this.direction;let e=this.placement.split("-");return e=e.length>1?e[1]:"",["start","top","left"].includes(e)?t?"top":"left":["end","bottom","right"].includes(e)?t?"bottom":"right":t?"middle":"center"}},watch:{opts(t,e){e&&e.callback&&e.callback(f(d({},e),{completed:!t,reason:t?"Overridden by action":null}))}},mounted(){this.popoverEl=this.$refs.popover,this.addEvents()},beforeUnmount(){this.destroyPopper(),this.removeEvents(),this.popoverEl=null},methods:{addEvents(){Vb(this.popoverEl,"click",this.onClick),Vb(this.popoverEl,"mouseover",this.onMouseOver),Vb(this.popoverEl,"mouseleave",this.onMouseLeave),Vb(this.popoverEl,"focusin",this.onFocusIn),Vb(this.popoverEl,"focusout",this.onFocusOut),Vb(document,"keydown",this.onDocumentKeydown),Vb(document,"click",this.onDocumentClick),Vb(document,"show-popover",this.onDocumentShowPopover),Vb(document,"hide-popover",this.onDocumentHidePopover),Vb(document,"toggle-popover",this.onDocumentTogglePopover),Vb(document,"update-popover",this.onDocumentUpdatePopover)},removeEvents(){Kb(this.popoverEl,"click",this.onClick),Kb(this.popoverEl,"mouseover",this.onMouseOver),Kb(this.popoverEl,"mouseleave",this.onMouseLeave),Kb(this.popoverEl,"focusin",this.onFocusIn),Kb(this.popoverEl,"focusout",this.onFocusOut),Kb(document,"keydown",this.onDocumentKeydown),Kb(document,"click",this.onDocumentClick),Kb(document,"show-popover",this.onDocumentShowPopover),Kb(document,"hide-popover",this.onDocumentHidePopover),Kb(document,"toggle-popover",this.onDocumentTogglePopover),Kb(document,"update-popover",this.onDocumentUpdatePopover)},onClick(t){t.stopPropagation()},onMouseOver(){this.isHovered=!0,this.isInteractive&&this.show()},onMouseLeave(){this.isHovered=!1,!this.autoHide||this.isFocused||this.ref&&this.ref===document.activeElement||this.hide()},onFocusIn(){this.isFocused=!0,this.isInteractive&&this.show()},onFocusOut(t){t.relatedTarget&&Gb(this.popoverEl,t.relatedTarget)||(this.isFocused=!1,!this.isHovered&&this.autoHide&&this.hide())},onDocumentClick(t){this.$refs.popover&&this.ref&&(Gb(this.popoverEl,t.target)||Gb(this.ref,t.target)||this.hide())},onDocumentKeydown(t){"Esc"!==t.key&&"Escape"!==t.key||this.hide()},onDocumentShowPopover({detail:t}){t.id&&t.id===this.id&&this.show(t)},onDocumentHidePopover({detail:t}){t.id&&t.id===this.id&&this.hide(t)},onDocumentTogglePopover({detail:t}){t.id&&t.id===this.id&&this.toggle(t)},onDocumentUpdatePopover({detail:t}){t.id&&t.id===this.id&&this.update(t)},show(t={}){t.action="show";const e=t.ref||this.ref,n=t.showDelay>=0?t.showDelay:this.showDelay;if(!e)return void(t.callback&&t.callback({completed:!1,reason:"Invalid reference element provided"}));clearTimeout(this.timeout),this.opts=t;const r=()=>{Object.assign(this,Fy(t,["id"])),this.setupPopper(),this.opts=null};n>0?this.timeout=setTimeout(()=>r(),n):r()},hide(t={}){t.action="hide";const e=t.ref||this.ref,n=t.hideDelay>=0?t.hideDelay:this.hideDelay;if(!this.ref||e!==this.ref)return void(t.callback&&t.callback(f(d({},t),{completed:!1,reason:this.ref?"Invalid reference element provided":"Popover already hidden"})));const r=()=>{this.ref=null,this.opts=null};clearTimeout(this.timeout),this.opts=t,n>0?this.timeout=setTimeout(r,n):r()},toggle(t={}){this.isVisible&&t.ref===this.ref?this.hide(t):this.show(t)},update(t={}){Object.assign(this,Fy(t,["id"])),this.setupPopper()},setupPopper(){this.$nextTick(()=>{this.ref&&this.$refs.popover&&(this.popper&&this.popper.reference!==this.ref&&this.destroyPopper(),this.popper?this.popper.update():this.popper=Object(i["a"])(this.ref,this.popoverEl,this.popperOptions))})},onPopperUpdate(t){t.placement?this.placement=t.placement:t.state&&(this.placement=t.state.placement)},beforeEnter(t){this.$emit("before-show",t)},afterEnter(t){this.$emit("after-show",t)},beforeLeave(t){this.$emit("before-hide",t)},afterLeave(t){this.destroyPopper(),this.$emit("after-hide",t)},destroyPopper(){this.popper&&(this.popper.destroy(),this.popper=null)}}},rv={inject:["sharedState"],computed:{masks(){return this.sharedState.masks},theme(){return this.sharedState.theme},locale(){return this.sharedState.locale},dayPopoverId(){return this.sharedState.dayPopoverId}},methods:{format(t,e){return this.locale.format(t,e)},pageForDate(t){return this.locale.getDateParts(this.locale.normalizeDate(t))}}},iv=["base","start","end","startEnd"],ov=["class","contentClass","style","contentStyle","color","fillMode"],sv={color:"blue",isDark:!1,highlight:{base:{fillMode:"light"},start:{fillMode:"solid"},end:{fillMode:"solid"}},dot:{base:{fillMode:"solid"},start:{fillMode:"solid"},end:{fillMode:"solid"}},bar:{base:{fillMode:"solid"},start:{fillMode:"solid"},end:{fillMode:"solid"}},content:{base:{},start:{},end:{}}};class av{constructor(t){Object.assign(this,sv,t)}normalizeAttr({config:t,type:e}){let n=this.color,r={};const i=this[e];if(!0===t||mt(t))n=mt(t)?t:n,r=d({},i);else{if(!Ob(t))return null;r=Ib(t,iv)?d({},t):{base:d({},t),start:d({},t),end:d({},t)}}return md(r,{start:r.startEnd,end:r.startEnd},i),ph(r).forEach(([t,e])=>{let i=n;!0===e||mt(e)?(i=mt(e)?e:i,r[t]={color:i}):Ob(e)&&(Ib(e,ov)?r[t]=d({},e):r[t]={}),xb(r,t+".color")||eo(r,t+".color",i)}),r}normalizeHighlight(t){const e=this.normalizeAttr({config:t,type:"highlight"});return ph(e).forEach(([t,e])=>{const n=md(e,{isDark:this.isDark,color:this.color});e.style=d(d({},this.getHighlightBgStyle(n)),e.style),e.contentStyle=d(d({},this.getHighlightContentStyle(n)),e.contentStyle)}),e}getHighlightBgStyle({fillMode:t,color:e,isDark:n}){switch(t){case"outline":case"none":return{backgroundColor:n?"var(--gray-900)":"var(--white)",border:"2px solid",borderColor:n?`var(--${e}-200)`:`var(--${e}-700)`,borderRadius:"var(--rounded-full)"};case"light":return{backgroundColor:n?`var(--${e}-800)`:`var(--${e}-200)`,opacity:n?.75:1,borderRadius:"var(--rounded-full)"};case"solid":return{backgroundColor:n?`var(--${e}-500)`:`var(--${e}-600)`,borderRadius:"var(--rounded-full)"};default:return{borderRadius:"var(--rounded-full)"}}}getHighlightContentStyle({fillMode:t,color:e,isDark:n}){switch(t){case"outline":case"none":return{fontWeight:"var(--font-bold)",color:n?`var(--${e}-100)`:`var(--${e}-900)`};case"light":return{fontWeight:"var(--font-bold)",color:n?`var(--${e}-100)`:`var(--${e}-900)`};case"solid":return{fontWeight:"var(--font-bold)",color:"var(--white)"};default:return""}}bgAccentHigh({color:t,isDark:e}){return{backgroundColor:e?`var(--${t}-500)`:`var(--${t}-600)`}}contentAccent({color:t,isDark:e}){return t?{fontWeight:"var(--font-bold)",color:e?`var(--${t}-100)`:`var(--${t}-900)`}:null}normalizeDot(t){return this.normalizeNonHighlight("dot",t,this.bgAccentHigh)}normalizeBar(t){return this.normalizeNonHighlight("bar",t,this.bgAccentHigh)}normalizeContent(t){return this.normalizeNonHighlight("content",t,this.contentAccent)}normalizeNonHighlight(t,e,n){const r=this.normalizeAttr({type:t,config:e});return ph(r).forEach(([t,e])=>{md(e,{isDark:this.isDark,color:this.color}),e.style=d(d({},n(e)),e.style)}),r}}var uv=6e4;function cv(t){return t.getTime()%uv}function lv(t){var e=new Date(t.getTime()),n=Math.ceil(e.getTimezoneOffset());e.setSeconds(0,0);var r=n>0,i=r?(uv+cv(e))%uv:cv(e);return n*uv+i}function hv(t,e){var n=gv(e);return n.formatToParts?fv(n,t):pv(n,t)}var dv={year:0,month:1,day:2,hour:3,minute:4,second:5};function fv(t,e){for(var n=t.formatToParts(e),r=[],i=0;i=0&&(r[o]=parseInt(n[i].value,10))}return r}function pv(t,e){var n=t.format(e).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}var mv={};function gv(t){if(!mv[t]){var e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n="06/25/2014, 00:00:00"===e||"‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00"===e;mv[t]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return mv[t]}var yv=36e5,bv=6e4,vv={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-])(\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/,timezoneIANA:/(UTC|(?:[a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?))$/};function _v(t,e){var n,r,i;if(n=vv.timezoneZ.exec(t),n)return 0;if(n=vv.timezoneHH.exec(t),n)return i=parseInt(n[2],10),wv()?(r=i*yv,"+"===n[1]?-r:r):NaN;if(n=vv.timezoneHHMM.exec(t),n){i=parseInt(n[2],10);var o=parseInt(n[3],10);return wv(i,o)?(r=i*yv+o*bv,"+"===n[1]?-r:r):NaN}if(n=vv.timezoneIANA.exec(t),n){var s=hv(e,t),a=Date.UTC(s[0],s[1]-1,s[2],s[3],s[4],s[5]),u=e.getTime()-e.getTime()%1e3;return-(a-u)}return 0}function wv(t,e){return null==e||!(e<0||e>59)}var Mv=36e5,Sv=6e4,Av=2,kv={dateTimeDelimeter:/[T ]/,plainTime:/:/,timeZoneDelimeter:/[Z ]/i,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timezone:/([Z+-].*| UTC|(?:[a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?))$/};function Ev(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===t)return new Date(NaN);var n=e||{},r=null==n.additionalDigits?Av:m(n.additionalDigits);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if(t instanceof Date||"object"===typeof t&&"[object Date]"===Object.prototype.toString.call(t))return new Date(t.getTime());if("number"===typeof t||"[object Number]"===Object.prototype.toString.call(t))return new Date(t);if("string"!==typeof t&&"[object String]"!==Object.prototype.toString.call(t))return new Date(NaN);var i=Lv(t),o=Dv(i.date,r),s=o.year,a=o.restDateString,u=Tv(a,s);if(isNaN(u))return new Date(NaN);if(u){var c,l=u.getTime(),h=0;if(i.time&&(h=Ov(i.time),isNaN(h)))return new Date(NaN);if(i.timezone||n.timeZone){if(c=_v(i.timezone||n.timeZone,new Date(l+h)),isNaN(c))return new Date(NaN);if(c=_v(i.timezone||n.timeZone,new Date(l+h+c)),isNaN(c))return new Date(NaN)}else c=lv(new Date(l+h)),c=lv(new Date(l+h+c));return new Date(l+h+c)}return new Date(NaN)}function Lv(t){var e,n={},r=t.split(kv.dateTimeDelimeter);if(kv.plainTime.test(r[0])?(n.date=null,e=r[0]):(n.date=r[0],e=r[1],n.timezone=r[2],kv.timeZoneDelimeter.test(n.date)&&(n.date=t.split(kv.timeZoneDelimeter)[0],e=t.substr(n.date.length,t.length))),e){var i=kv.timezone.exec(e);i?(n.time=e.replace(i[1],""),n.timezone=i[1]):n.time=e}return n}function Dv(t,e){var n,r=kv.YYY[e],i=kv.YYYYY[e];if(n=kv.YYYY.exec(t)||i.exec(t),n){var o=n[1];return{year:parseInt(o,10),restDateString:t.slice(o.length)}}if(n=kv.YY.exec(t)||r.exec(t),n){var s=n[1];return{year:100*parseInt(s,10),restDateString:t.slice(s.length)}}return{year:null}}function Tv(t,e){if(null===e)return null;var n,r,i,o;if(0===t.length)return r=new Date(0),r.setUTCFullYear(e),r;if(n=kv.MM.exec(t),n)return r=new Date(0),i=parseInt(n[1],10)-1,Pv(e,i)?(r.setUTCFullYear(e,i),r):new Date(NaN);if(n=kv.DDD.exec(t),n){r=new Date(0);var s=parseInt(n[1],10);return Cv(e,s)?(r.setUTCFullYear(e,0,s),r):new Date(NaN)}if(n=kv.MMDD.exec(t),n){r=new Date(0),i=parseInt(n[1],10)-1;var a=parseInt(n[2],10);return Pv(e,i,a)?(r.setUTCFullYear(e,i,a),r):new Date(NaN)}if(n=kv.Www.exec(t),n)return o=parseInt(n[1],10)-1,Rv(e,o)?xv(e,o):new Date(NaN);if(n=kv.WwwD.exec(t),n){o=parseInt(n[1],10)-1;var u=parseInt(n[2],10)-1;return Rv(e,o,u)?xv(e,o,u):new Date(NaN)}return null}function Ov(t){var e,n,r;if(e=kv.HH.exec(t),e)return n=parseFloat(e[1].replace(",",".")),Yv(n)?n%24*Mv:NaN;if(e=kv.HHMM.exec(t),e)return n=parseInt(e[1],10),r=parseFloat(e[2].replace(",",".")),Yv(n,r)?n%24*Mv+r*Sv:NaN;if(e=kv.HHMMSS.exec(t),e){n=parseInt(e[1],10),r=parseInt(e[2],10);var i=parseFloat(e[3].replace(",","."));return Yv(n,r,i)?n%24*Mv+r*Sv+1e3*i:NaN}return null}function xv(t,e,n){e=e||0,n=n||0;var r=new Date(0);r.setUTCFullYear(t,0,4);var i=r.getUTCDay()||7,o=7*e+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}var Iv=[31,28,31,30,31,30,31,31,30,31,30,31],jv=[31,29,31,30,31,30,31,31,30,31,30,31];function Nv(t){return t%400===0||t%4===0&&t%100!==0}function Pv(t,e,n){if(e<0||e>11)return!1;if(null!=n){if(n<1)return!1;var r=Nv(t);if(r&&n>jv[e])return!1;if(!r&&n>Iv[e])return!1}return!0}function Cv(t,e){if(e<1)return!1;var n=Nv(t);return!(n&&e>366)&&!(!n&&e>365)}function Rv(t,e,n){return!(e<0||e>52)&&(null==n||!(n<0||n>6))}function Yv(t,e,n){return(null==t||!(t<0||t>=25))&&((null==e||!(e<0||e>=60))&&(null==n||!(n<0||n>=60)))}function Bv(t,e){g(1,arguments);var n=e||{},r=n.locale,i=r&&r.options&&r.options.weekStartsOn,o=null==i?0:m(i),s=null==n.weekStartsOn?o:m(n.weekStartsOn);if(!(s>=0&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var a=y(t),u=a.getDay(),c=(u=i.getTime()?n+1:e.getTime()>=s.getTime()?n:n-1}function Wv(t){g(1,arguments);var e=Uv(t),n=new Date(0);n.setFullYear(e,0,4),n.setHours(0,0,0,0);var r=zv(n);return r}var Hv=6048e5;function Fv(t){g(1,arguments);var e=y(t),n=zv(e).getTime()-Wv(e).getTime();return Math.round(n/Hv)+1}function qv(t,e){g(1,arguments);var n=y(t),r=n.getFullYear(),i=e||{},o=i.locale,s=o&&o.options&&o.options.firstWeekContainsDate,a=null==s?1:m(s),u=null==i.firstWeekContainsDate?a:m(i.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=new Date(0);c.setFullYear(r+1,0,u),c.setHours(0,0,0,0);var l=Bv(c,e),h=new Date(0);h.setFullYear(r,0,u),h.setHours(0,0,0,0);var d=Bv(h,e);return n.getTime()>=l.getTime()?r+1:n.getTime()>=d.getTime()?r:r-1}function Vv(t,e){g(1,arguments);var n=e||{},r=n.locale,i=r&&r.options&&r.options.firstWeekContainsDate,o=null==i?1:m(i),s=null==n.firstWeekContainsDate?o:m(n.firstWeekContainsDate),a=qv(t,e),u=new Date(0);u.setFullYear(a,0,s),u.setHours(0,0,0,0);var c=Bv(u,e);return c}var Kv=6048e5;function Gv(t,e){g(1,arguments);var n=y(t),r=Bv(n,e).getTime()-Vv(n,e).getTime();return Math.round(r/Kv)+1}var Qv=6048e5;function Zv(t,e,n){g(2,arguments);var r=Bv(t,n),i=Bv(e,n),o=r.getTime()-lv(r),s=i.getTime()-lv(i);return Math.round((o-s)/Qv)}function Jv(t){g(1,arguments);var e=y(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(0,0,0,0),e}function $v(t){g(1,arguments);var e=y(t);return e.setDate(1),e.setHours(0,0,0,0),e}function Xv(t,e){return g(1,arguments),Zv(Jv(t),$v(t),e)+1}const t_=864e5;class e_{constructor(t,{order:e=0,locale:n,isFullDay:r}={}){if(this.isDateInfo=!0,this.order=e,this.locale=n instanceof __?n:new __(n),this.firstDayOfWeek=this.locale.firstDayOfWeek,!Ob(t)){const e=this.locale.normalizeDate(t);t=r?{start:e,end:e}:{startOn:e,endOn:e}}let i=null,o=null;if(t.start?i=this.locale.normalizeDate(t.start,f(d({},this.opts),{time:"00:00:00"})):t.startOn&&(i=this.locale.normalizeDate(t.startOn,this.opts)),t.end?o=this.locale.normalizeDate(t.end,f(d({},this.opts),{time:"23:59:59"})):t.endOn&&(o=this.locale.normalizeDate(t.endOn,this.opts)),i&&o&&i>o){const t=i;i=o,o=t}else i&&t.span>=1&&(o=b(i,t.span-1));this.start=i,this.startTime=i?i.getTime():NaN,this.end=o,this.endTime=o?o.getTime():NaN,this.isDate=this.startTime&&this.startTime===this.endTime,this.isRange=!this.isDate;const s=qb(t,{},e_.patternProps);if(s.assigned&&(this.on={and:s.target}),t.on){const e=(Ct(t.on)?t.on:[t.on]).map(t=>{if(kt(t))return t;const e=qb(t,{},e_.patternProps);return e.assigned?e.target:null}).filter(t=>t);e.length&&(this.on=f(d({},this.on),{or:e}))}this.isComplex=!!this.on}get opts(){return{order:this.order,locale:this.locale}}toDateInfo(t){return t.isDateInfo?t:new e_(t,this.opts)}startOfWeek(t){const e=t.getDay()+1,n=e>=this.firstDayOfWeek?this.firstDayOfWeek-e:-(7-(this.firstDayOfWeek-e));return b(t,n)}diffInDays(t,e){return Math.round((e-t)/t_)}diffInWeeks(t,e){return this.diffInDays(this.startOfWeek(t),this.startOfWeek(e))}diffInYears(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}diffInMonths(t,e){return 12*this.diffInYears(t,e)+(e.getMonth()-t.getMonth())}static get patterns(){return{dailyInterval:{test:(t,e,n)=>n.diffInDays(n.start||new Date,t.date)%e===0},weeklyInterval:{test:(t,e,n)=>n.diffInWeeks(n.start||new Date,t.date)%e===0},monthlyInterval:{test:(t,e,n)=>n.diffInMonths(n.start||new Date,t.date)%e===0},yearlyInterval:{test:()=>(t,e,n)=>n.diffInYears(n.start||new Date,t.date)%e===0},days:{validate:t=>Ct(t)?t:[parseInt(t,10)],test:(t,e)=>e.includes(t.day)||e.includes(-t.dayFromEnd)},weekdays:{validate:t=>Ct(t)?t:[parseInt(t,10)],test:(t,e)=>e.includes(t.weekday)},ordinalWeekdays:{validate:t=>Object.keys(t).reduce((e,n)=>{const r=t[n];return r?(e[n]=Ct(r)?r:[parseInt(r,10)],e):e},{}),test:(t,e)=>Object.keys(e).map(t=>parseInt(t,10)).find(n=>e[n].includes(t.weekday)&&(n===t.weekdayOrdinal||n===-t.weekdayOrdinalFromEnd))},weekends:{validate:t=>t,test:t=>1===t.weekday||7===t.weekday},workweek:{validate:t=>t,test:t=>t.weekday>=2&&t.weekday<=6},weeks:{validate:t=>Ct(t)?t:[parseInt(t,10)],test:(t,e)=>e.includes(t.week)||e.includes(-t.weekFromEnd)},months:{validate:t=>Ct(t)?t:[parseInt(t,10)],test:(t,e)=>e.includes(t.month)},years:{validate:t=>Ct(t)?t:[parseInt(t,10)],test:(t,e)=>e.includes(t.year)}}}static get patternProps(){return Object.keys(e_.patterns).map(t=>({name:t,validate:e_.patterns[t].validate}))}static testConfig(t,e,n){return kt(t)?t(e):Ob(t)?Object.keys(t).every(r=>e_.patterns[r].test(e,t[r],n)):null}iterateDatesInRange({start:t,end:e},n){if(!t||!e||!kt(n))return null;t=this.locale.normalizeDate(t,f(d({},this.opts),{time:"00:00:00"}));const r={i:0,date:t,day:this.locale.getDateParts(t),finished:!1};let i=null;for(;!r.finished&&r.date<=e;r.i++)i=n(r),r.date=b(r.date,1),r.day=this.locale.getDateParts(r.date);return i}shallowIntersectingRange(t){return this.rangeShallowIntersectingRange(this,this.toDateInfo(t))}rangeShallowIntersectingRange(t,e){if(!this.dateShallowIntersectsDate(t,e))return null;const n=t.toRange(),r=e.toRange();let i=null,o=null;return n.start?i=r.start?n.start>r.start?n.start:r.start:n.start:r.start&&(i=r.start),n.end?o=r.end?n.end{this.matchesDay(t.day)&&(r=r||e.matchesDay(t.day),t.finished=r)}),r}shallowIntersectsDate(t){return this.dateShallowIntersectsDate(this,this.toDateInfo(t))}dateShallowIntersectsDate(t,e){return t.isDate?e.isDate?t.startTime===e.startTime:this.dateShallowIncludesDate(e,t):e.isDate?this.dateShallowIncludesDate(t,e):!(t.start&&e.end&&t.start>e.end)&&!(t.end&&e.start&&t.end{this.matchesDay(t.day)&&(r=r&&e.matchesDay(t.day),t.finished=!r)}),r}shallowIncludesDate(t){return this.dateShallowIncludesDate(this,t.isDate?t:new e_(t,this.opts))}dateShallowIncludesDate(t,e){return t.isDate?e.isDate?t.startTime===e.startTime:!(!e.startTime||!e.endTime)&&(t.startTime===e.startTime&&t.startTime===e.endTime):e.isDate?!(t.start&&e.startt.end):!(t.start&&(!e.start||e.startt.end))}intersectsDay(t){return this.shallowIntersectsDate(t.range)&&this.matchesDay(t)?this:null}matchesDay(t){return!this.on||!(this.on.and&&!e_.testConfig(this.on.and,t,this))&&!(this.on.or&&!this.on.or.some(e=>e_.testConfig(e,t,this)))}toRange(){return new e_({start:this.start,end:this.end},this.opts)}compare(t){if(this.order!==t.order)return this.order-t.order;if(this.isDate!==t.isDate)return this.isDate?1:-1;if(this.isDate)return 0;const e=this.start-t.start;return 0!==e?e:this.end-t.end}}const n_={ar:{dow:7,L:"D/‏M/‏YYYY"},bg:{dow:2,L:"D.MM.YYYY"},ca:{dow:2,L:"DD/MM/YYYY"},"zh-CN":{dow:2,L:"YYYY/MM/DD"},"zh-TW":{dow:1,L:"YYYY/MM/DD"},hr:{dow:2,L:"DD.MM.YYYY"},cs:{dow:2,L:"DD.MM.YYYY"},da:{dow:2,L:"DD.MM.YYYY"},nl:{dow:2,L:"DD-MM-YYYY"},"en-US":{dow:1,L:"MM/DD/YYYY"},"en-AU":{dow:2,L:"DD/MM/YYYY"},"en-CA":{dow:1,L:"YYYY-MM-DD"},"en-GB":{dow:2,L:"DD/MM/YYYY"},"en-IE":{dow:2,L:"DD-MM-YYYY"},"en-NZ":{dow:2,L:"DD/MM/YYYY"},"en-ZA":{dow:1,L:"YYYY/MM/DD"},eo:{dow:2,L:"YYYY-MM-DD"},et:{dow:2,L:"DD.MM.YYYY"},fi:{dow:2,L:"DD.MM.YYYY"},fr:{dow:2,L:"DD/MM/YYYY"},"fr-CA":{dow:1,L:"YYYY-MM-DD"},"fr-CH":{dow:2,L:"DD.MM.YYYY"},de:{dow:2,L:"DD.MM.YYYY"},he:{dow:1,L:"DD.MM.YYYY"},id:{dow:2,L:"DD/MM/YYYY"},it:{dow:2,L:"DD/MM/YYYY"},ja:{dow:1,L:"YYYY年M月D日"},ko:{dow:1,L:"YYYY.MM.DD"},lv:{dow:2,L:"DD.MM.YYYY"},lt:{dow:2,L:"DD.MM.YYYY"},mk:{dow:2,L:"D.MM.YYYY"},nb:{dow:2,L:"D. MMMM YYYY"},nn:{dow:2,L:"D. MMMM YYYY"},pl:{dow:2,L:"DD.MM.YYYY"},pt:{dow:2,L:"DD/MM/YYYY"},ro:{dow:2,L:"DD.MM.YYYY"},ru:{dow:2,L:"DD.MM.YYYY"},sk:{dow:2,L:"DD.MM.YYYY"},"es-ES":{dow:2,L:"DD/MM/YYYY"},"es-MX":{dow:2,L:"DD/MM/YYYY"},sv:{dow:2,L:"YYYY-MM-DD"},th:{dow:1,L:"DD/MM/YYYY"},tr:{dow:2,L:"DD.MM.YYYY"},uk:{dow:2,L:"DD.MM.YYYY"},vi:{dow:2,L:"DD/MM/YYYY"}};n_.en=n_["en-US"],n_.es=n_["es-ES"],n_.no=n_.nb,n_.zh=n_["zh-CN"],ph(n_).forEach(([t,{dow:e,L:n}])=>{n_[t]={id:t,firstDayOfWeek:e,masks:{L:n}}});const r_={DATE_TIME:1,DATE:2,TIME:3},i_={1:["year","month","day","hours","minutes","seconds","milliseconds"],2:["year","month","day"],3:["hours","minutes","seconds","milliseconds"]},o_=/d{1,2}|W{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|Z{1,4}|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,s_=/\d\d?/,a_=/\d{3}/,u_=/\d{4}/,c_=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF/]+(\s*?[\u0600-\u06FF]+){1,2}/i,l_=/\[([^]*?)\]/gm,h_=()=>{},d_=t=>(e,n,r)=>{const i=r[t].indexOf(n.charAt(0).toUpperCase()+n.substring(1).toLowerCase());~i&&(e.month=i)},f_=["L","iso"],p_=7,m_=[31,28,31,30,31,30,31,31,30,31,30,31],g_=[{value:0,label:"00"},{value:1,label:"01"},{value:2,label:"02"},{value:3,label:"03"},{value:4,label:"04"},{value:5,label:"05"},{value:6,label:"06"},{value:7,label:"07"},{value:8,label:"08"},{value:9,label:"09"},{value:10,label:"10"},{value:11,label:"11"},{value:12,label:"12"},{value:13,label:"13"},{value:14,label:"14"},{value:15,label:"15"},{value:16,label:"16"},{value:17,label:"17"},{value:18,label:"18"},{value:19,label:"19"},{value:20,label:"20"},{value:21,label:"21"},{value:22,label:"22"},{value:23,label:"23"}],y_={D(t){return t.day},DD(t){return Nb(t.day)},Do(t,e){return e.DoFn(t.day)},d(t){return t.weekday-1},dd(t){return Nb(t.weekday-1)},W(t,e){return e.dayNamesNarrow[t.weekday-1]},WW(t,e){return e.dayNamesShorter[t.weekday-1]},WWW(t,e){return e.dayNamesShort[t.weekday-1]},WWWW(t,e){return e.dayNames[t.weekday-1]},M(t){return t.month},MM(t){return Nb(t.month)},MMM(t,e){return e.monthNamesShort[t.month-1]},MMMM(t,e){return e.monthNames[t.month-1]},YY(t){return String(t.year).substring(2)},YYYY(t){return Nb(t.year,4)},h(t){return t.hours%12||12},hh(t){return Nb(t.hours%12||12)},H(t){return t.hours},HH(t){return Nb(t.hours)},m(t){return t.minutes},mm(t){return Nb(t.minutes)},s(t){return t.seconds},ss(t){return Nb(t.seconds)},S(t){return Math.round(t.milliseconds/100)},SS(t){return Nb(Math.round(t.milliseconds/10),2)},SSS(t){return Nb(t.milliseconds,3)},a(t,e){return t.hours<12?e.amPm[0]:e.amPm[1]},A(t,e){return t.hours<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},Z(){return"Z"},ZZ(t){const e=t.timezoneOffset;return`${e>0?"-":"+"}${Nb(Math.floor(Math.abs(e)/60),2)}`},ZZZ(t){const e=t.timezoneOffset;return`${e>0?"-":"+"}${Nb(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)}`},ZZZZ(t){const e=t.timezoneOffset;return`${e>0?"-":"+"}${Nb(Math.floor(Math.abs(e)/60),2)}:${Nb(Math.abs(e)%60,2)}`}},b_={D:[s_,(t,e)=>{t.day=e}],Do:[new RegExp(s_.source+c_.source),(t,e)=>{t.day=parseInt(e,10)}],d:[s_,h_],W:[c_,h_],M:[s_,(t,e)=>{t.month=e-1}],MMM:[c_,d_("monthNamesShort")],MMMM:[c_,d_("monthNames")],YY:[s_,(t,e)=>{const n=new Date,r=+n.getFullYear().toString().substring(0,2);t.year=`${e>68?r-1:r}${e}`}],YYYY:[u_,(t,e)=>{t.year=e}],S:[/\d/,(t,e)=>{t.millisecond=100*e}],SS:[/\d{2}/,(t,e)=>{t.millisecond=10*e}],SSS:[a_,(t,e)=>{t.millisecond=e}],h:[s_,(t,e)=>{t.hour=e}],m:[s_,(t,e)=>{t.minute=e}],s:[s_,(t,e)=>{t.second=e}],a:[c_,(t,e,n)=>{const r=e.toLowerCase();r===n.amPm[0]?t.isPm=!1:r===n.amPm[1]&&(t.isPm=!0)}],Z:[/[^\s]*?[+-]\d\d:?\d\d|[^\s]*?Z?/,(t,e)=>{"Z"===e&&(e="+00:00");const n=(""+e).match(/([+-]|\d\d)/gi);if(n){const e=60*n[1]+parseInt(n[2],10);t.timezoneOffset="+"===n[0]?e:-e}}]};function v_(t,e){const n=(new Intl.DateTimeFormat).resolvedOptions().locale;let r;mt(t)?r=t:xb(t,"id")&&(r=t.id),r=(r||n).toLowerCase();const i=Object.keys(e),o=t=>i.find(e=>e.toLowerCase()===t);r=o(r)||o(r.substring(0,2))||n;const s=f(d(d({},e["en-IE"]),e[r]),{id:r});return t=Ob(t)?$f(t,s):s,t}b_.DD=b_.D,b_.dd=b_.d,b_.WWWW=b_.WWW=b_.WW=b_.W,b_.MM=b_.M,b_.mm=b_.m,b_.hh=b_.H=b_.HH=b_.h,b_.ss=b_.s,b_.A=b_.a,b_.ZZZZ=b_.ZZZ=b_.ZZ=b_.Z;class __{constructor(t,{locales:e=n_,timezone:n}={}){const{id:r,firstDayOfWeek:i,masks:o}=v_(t,e);this.id=r,this.daysInWeek=p_,this.firstDayOfWeek=ve(i,1,p_),this.masks=o,this.timezone=n||void 0,this.dayNames=this.getDayNames("long"),this.dayNamesShort=this.getDayNames("short"),this.dayNamesShorter=this.dayNamesShort.map(t=>t.substring(0,2)),this.dayNamesNarrow=this.getDayNames("narrow"),this.monthNames=this.getMonthNames("long"),this.monthNamesShort=this.getMonthNames("short"),this.amPm=["am","pm"],this.monthData={},this.getMonthComps=this.getMonthComps.bind(this),this.parse=this.parse.bind(this),this.format=this.format.bind(this),this.toPage=this.toPage.bind(this)}format(t,e){if(t=this.normalizeDate(t),!t)return"";e=this.normalizeMasks(e)[0];const n=[];e=e.replace(l_,(t,e)=>(n.push(e),"??"));const r=/Z$/.test(e)?"utc":this.timezone,i=this.getDateParts(t,r);return e=e.replace(o_,t=>t in y_?y_[t](i,this):t.slice(1,t.length-1)),e.replace(/\?\?/g,()=>n.shift())}parse(t,e){const n=this.normalizeMasks(e);return n.map(e=>{if("string"!==typeof e)throw new Error("Invalid mask in fecha.parse");let n=t;if(n.length>1e3)return!1;let r=!0;const i={};if(e.replace(o_,t=>{if(b_[t]){const e=b_[t],o=n.search(e[0]);~o?n.replace(e[0],t=>(e[1](i,t,this),n=n.substring(o+t.length),t)):r=!1}return b_[t]?"":t.slice(1,t.length-1)}),!r)return!1;const o=new Date;let s;return!0===i.isPm&&null!=i.hour&&12!==+i.hour?i.hour=+i.hour+12:!1===i.isPm&&12===+i.hour&&(i.hour=0),null!=i.timezoneOffset?(i.minute=+(i.minute||0)-+i.timezoneOffset,s=new Date(Date.UTC(i.year||o.getFullYear(),i.month||0,i.day||1,i.hour||0,i.minute||0,i.second||0,i.millisecond||0))):s=this.getDateFromParts({year:i.year||o.getFullYear(),month:(i.month||0)+1,day:i.day||1,hours:i.hour||0,minutes:i.minute||0,seconds:i.second||0,milliseconds:i.millisecond||0}),s}).find(t=>t)||new Date(t)}normalizeMasks(t){return(Fb(t)&&t||[mt(t)&&t||"YYYY-MM-DD"]).map(t=>f_.reduce((t,e)=>t.replace(e,this.masks[e]||""),t))}normalizeDate(t,e={}){let n=null,{type:r,fillDate:i}=e;const{mask:o,patch:s,time:a}=e,u="auto"===r||!r;if(at(t)?(r="number",n=new Date(+t)):mt(t)?(r="string",n=t?this.parse(t,o||"iso"):null):Ob(t)?(r="object",n=this.getDateFromParts(t)):(r="date",n=Tb(t)?new Date(t.getTime()):null),n&&s){i=null==i?new Date:this.normalizeDate(i);const t=d(d({},this.getDateParts(i)),Tp(this.getDateParts(n),i_[s]));n=this.getDateFromParts(t)}return u&&(e.type=r),n&&!isNaN(n.getTime())?(a&&(n=this.adjustTimeForDate(n,{timeAdjust:a})),n):null}denormalizeDate(t,{type:e,mask:n}={}){switch(e){case"number":return t?t.getTime():NaN;case"string":return t?this.format(t,n||"iso"):"";default:return t?new Date(t):null}}hourIsValid(t,e,n){if(!e)return!0;if(Ct(e))return e.includes(t);if(Ob(e)){const n=e.min||0,r=e.max||24;return n<=t&&r>=t}return e(t,n)}getHourOptions(t,e){return g_.filter(n=>this.hourIsValid(n.value,t,e))}getMinuteOptions(t){const e=[];t=t>0?t:1;for(let n=0;n<=59;n+=t)e.push({value:n,label:Nb(n,2)});return e}nearestOptionValue(t,e){if(null==t)return t;const n=e.reduce((e,n)=>{if(n.disabled)return e;if(isNaN(e))return n.value;const r=Math.abs(e-t),i=Math.abs(n.value-t);return it&&(t instanceof e_?t:new e_(t,e))).filter(t=>t)}getDateParts(t,e=this.timezone){if(!t)return null;let n=t;if(e){const r=new Date(t.toLocaleString("en-US",{timeZone:e}));r.setMilliseconds(t.getMilliseconds());const i=r.getTime()-t.getTime();n=new Date(t.getTime()+i)}const r=n.getMilliseconds(),i=n.getSeconds(),o=n.getMinutes(),s=n.getHours(),a=n.getMonth()+1,u=n.getFullYear(),c=this.getMonthComps(a,u),l=n.getDate(),h=c.days-l+1,d=n.getDay()+1,f=Math.floor((l-1)/7+1),p=Math.floor((c.days-l)/7+1),m=Math.ceil((l+Math.abs(c.firstWeekday-c.firstDayOfWeek))/7),g=c.weeks-m+1,y={milliseconds:r,seconds:i,minutes:o,hours:s,day:l,dayFromEnd:h,weekday:d,weekdayOrdinal:f,weekdayOrdinalFromEnd:p,week:m,weekFromEnd:g,month:a,year:u,date:t,isValid:!0};return y.timezoneOffset=this.getTimezoneOffset(y),y}getDateFromParts(t){if(!t)return null;const e=new Date,{year:n=e.getFullYear(),month:r=e.getMonth()+1,day:i=e.getDate(),hours:o=0,minutes:s=0,seconds:a=0,milliseconds:u=0}=t;if(this.timezone){const t=`${Nb(n,4)}-${Nb(r,2)}-${Nb(i,2)}T${Nb(o,2)}:${Nb(s,2)}:${Nb(a,2)}.${Nb(u,3)}`;return Ev(t,{timeZone:this.timezone})}return new Date(n,r-1,i,o,s,a,u)}getTimezoneOffset(t){const{year:e,month:n,day:r,hours:i=0,minutes:o=0,seconds:s=0,milliseconds:a=0}=t;let u;const c=new Date(Date.UTC(e,n-1,r,i,o,s,a));if(this.timezone){const t=`${Nb(e,4)}-${Nb(n,2)}-${Nb(r,2)}T${Nb(i,2)}:${Nb(o,2)}:${Nb(s,2)}.${Nb(a,3)}`;u=Ev(t,{timeZone:this.timezone})}else u=new Date(e,n-1,r,i,o,s,a);return(u-c)/6e4}toPage(t,e){return at(t)?Ub(e,t):mt(t)?this.getDateParts(this.normalizeDate(t)):Tb(t)?this.getDateParts(t):Ob(t)?t:null}getMonthDates(t=2e3){const e=[];for(let n=0;n<12;n++)e.push(new Date(t,n,15));return e}getMonthNames(t){const e=new Intl.DateTimeFormat(this.id,{month:t,timezome:"UTC"});return this.getMonthDates().map(t=>e.format(t))}getWeekdayDates(t=this.firstDayOfWeek){const e=[],n=2020,r=1,i=5+t-1;for(let o=0;oe.format(t))}getMonthComps(t,e){const n=`${t}-${e}`;let r=this.monthData[n];if(!r){const i=e%4===0&&e%100!==0||e%400===0,o=new Date(e,t-1,1),s=o.getDay()+1,a=2===t&&i?29:m_[t-1],u=this.firstDayOfWeek-1,c=Xv(o,{weekStartsOn:u}),l=[],h=[];for(let t=0;t(r,i,o,s)=>this.normalizeDate({year:t,month:e,day:n,hours:r,minutes:i,seconds:o,milliseconds:s});for(let L=1;L<=t;L++){for(let n=1,c=o;n<=p_;n++,c+=c===p_?1-p_:1){l&&c===s&&(p=1,m=e.days,g=Math.floor((p-1)/p_+1),y=Math.floor((e.days-p)/p_+1),b=1,v=e.weeks,_=e.month,w=e.year,l=!1,h=!0);const o=E(w,_,p),M={start:o(0,0,0),end:o(23,59,59,999)},D=M.start,T=`${Nb(w,4)}-${Nb(_,2)}-${Nb(p,2)}`,O=n,x=p_-n,I=u[L-1],j=a[L-1],N=p===S&&_===A&&w===k,P=h&&1===p,C=h&&p===e.days,R=1===L,Y=L===t,B=1===n,z=n===p_;i.push({id:T,label:p.toString(),ariaLabel:f.format(new Date(w,_-1,p)),day:p,dayFromEnd:m,weekday:c,weekdayPosition:O,weekdayPositionFromEnd:x,weekdayOrdinal:g,weekdayOrdinalFromEnd:y,week:b,weekFromEnd:v,weeknumber:I,isoWeeknumber:j,month:_,year:w,dateFromTime:o,date:D,range:M,isToday:N,isFirstDay:P,isLastDay:C,inMonth:h,inPrevMonth:l,inNextMonth:d,onTop:R,onBottom:Y,onLeft:B,onRight:z,classes:["id-"+T,"day-"+p,"day-from-end-"+m,"weekday-"+c,"weekday-position-"+O,"weekday-ordinal-"+g,"weekday-ordinal-from-end-"+y,"week-"+b,"week-from-end-"+v,{"is-today":N,"is-first-day":P,"is-last-day":C,"in-month":h,"in-prev-month":l,"in-next-month":d,"on-top":R,"on-bottom":Y,"on-left":B,"on-right":z}]}),h&&C?(h=!1,d=!0,p=1,m=r.days,g=1,y=Math.floor((r.days-p)/p_+1),b=1,v=r.weeks,_=r.month,w=r.year):(p++,m--,g=Math.floor((p-1)/p_+1),y=Math.floor((e.days-p)/p_+1))}b++,v--}return i}}class w_{constructor({key:t,hashcode:e,highlight:n,content:r,dot:i,bar:o,popover:s,dates:a,excludeDates:u,excludeMode:c,customData:l,order:h,pinPage:d},f,p){this.key=Yt(t)?Zb():t,this.hashcode=e,this.customData=l,this.order=h||0,this.dateOpts={order:h,locale:p},this.pinPage=d,n&&(this.highlight=f.normalizeHighlight(n)),r&&(this.content=f.normalizeContent(r)),i&&(this.dot=f.normalizeDot(i)),o&&(this.bar=f.normalizeBar(o)),s&&(this.popover=s),this.dates=p.normalizeDates(a,this.dateOpts),this.hasDates=!!Fb(this.dates),this.excludeDates=p.normalizeDates(u,this.dateOpts),this.hasExcludeDates=!!Fb(this.excludeDates),this.excludeMode=c||"intersects",this.hasExcludeDates&&!this.hasDates&&(this.dates.push(new e_({},this.dateOpts)),this.hasDates=!0),this.isComplex=jb(this.dates,t=>t.isComplex)}intersectsDate(t){return t=t instanceof e_?t:new e_(t,this.dateOpts),!this.excludesDate(t)&&(this.dates.find(e=>e.intersectsDate(t))||!1)}includesDate(t){return t=t instanceof e_?t:new e_(t,this.dateOpts),!this.excludesDate(t)&&(this.dates.find(e=>e.includesDate(t))||!1)}excludesDate(t){return t=t instanceof e_?t:new e_(t,this.dateOpts),this.hasExcludeDates&&this.excludeDates.find(e=>"intersects"===this.excludeMode&&e.intersectsDate(t)||"includes"===this.excludeMode&&e.includesDate(t))}intersectsDay(t){return!this.excludesDay(t)&&(this.dates.find(e=>e.intersectsDay(t))||!1)}excludesDay(t){return this.hasExcludeDates&&this.excludeDates.find(e=>e.intersectsDay(t))}}const M_=300,S_=60,A_=80;var k_={maxSwipeTime:M_,minHorizontalSwipeDistance:S_,maxVerticalSwipeDistance:A_};const E_="MMMM YYYY",L_="W",D_="MMM",T_=["L","YYYY-MM-DD","YYYY/MM/DD"],O_=["L h:mm A","YYYY-MM-DD h:mm A","YYYY/MM/DD h:mm A"],x_=["L HH:mm","YYYY-MM-DD HH:mm","YYYY/MM/DD HH:mm"],I_=["h:mm A"],j_=["HH:mm"],N_="WWW, MMM D, YYYY",P_=["L","YYYY-MM-DD","YYYY/MM/DD"],C_="iso",R_="YYYY-MM-DDTHH:mm:ss.SSSZ";var Y_={title:E_,weekdays:L_,navMonths:D_,input:T_,inputDateTime:O_,inputDateTime24hr:x_,inputTime:I_,inputTime24hr:j_,dayPopover:N_,data:P_,model:C_,iso:R_};const B_="640px",z_="768px",U_="1024px",W_="1280px";var H_={sm:B_,md:z_,lg:U_,xl:W_};const F_={componentPrefix:"v",color:"blue",isDark:!1,navVisibility:"click",titlePosition:"center",transition:"slide-h",touch:k_,masks:Y_,screens:H_,locales:n_,datePicker:{updateOnInput:!0,inputDebounce:1e3,popover:{visibility:"hover-focus",placement:"bottom-start",keepVisibleOnInput:!1,isInteractive:!0}}},q_=Object(r["reactive"])(F_),V_=Object(r["computed"])(()=>Jl(q_.locales,t=>(t.masks=$f(t.masks,q_.masks),t))),K_=t=>window&&xb(window.__vcalendar__,t)?Ti(window.__vcalendar__,t):Ti(q_,t),G_=(t,e)=>(t.config.globalProperties.$VCalendar=q_,Object.assign(q_,$f(e,q_))),Q_={props:{color:{type:String,default:()=>K_("color")},isDark:{type:Boolean,default:()=>K_("isDark")},firstDayOfWeek:Number,masks:Object,locale:[String,Object],timezone:String,minDate:null,maxDate:null,minDateExact:null,maxDateExact:null,disabledDates:null,availableDates:null,theme:null},computed:{$theme(){return this.theme instanceof av?this.theme:new av({color:this.color,isDark:this.isDark})},$locale(){if(this.locale instanceof __)return this.locale;const t=Ob(this.locale)?this.locale:{id:this.locale,firstDayOfWeek:this.firstDayOfWeek,masks:this.masks};return new __(t,{locales:V_.value,timezone:this.timezone})},disabledDates_(){const t=this.normalizeDates(this.disabledDates),{minDate:e,minDateExact:n,maxDate:r,maxDateExact:i}=this;if(n||e){const r=n?this.normalizeDate(n):this.normalizeDate(e,{time:"00:00:00"});t.push({start:null,end:new Date(r.getTime()-1e3)})}if(i||r){const e=i?this.normalizeDate(i):this.normalizeDate(r,{time:"23:59:59"});t.push({start:new Date(e.getTime()+1e3),end:null})}return t},availableDates_(){return this.normalizeDates(this.availableDates)},disabledAttribute(){return new w_({key:"disabled",dates:this.disabledDates_,excludeDates:this.availableDates_,excludeMode:"includes",order:100},this.$theme,this.$locale)}},methods:{formatDate(t,e){return this.$locale?this.$locale.format(t,e):""},parseDate(t,e){if(!this.$locale)return null;const n=this.$locale.parse(t,e);return Tb(n)?n:null},normalizeDate(t,e){return this.$locale?this.$locale.normalizeDate(t,e):t},normalizeDates(t){return this.$locale.normalizeDates(t,{isFullDay:!0})},pageForDate(t){return this.$locale.getDateParts(this.normalizeDate(t))},pageForThisMonth(){return this.pageForDate(new Date)}}},Z_={methods:{safeSlot(t,e,n=null){return kt(this.$slots[t])?this.$slots[t](e):n}}},J_=rv,$_=Q_,X_=Z_,tw={name:"PopoverRow",mixins:[J_],props:{attribute:Object},computed:{indicator(){const{highlight:t,dot:e,bar:n,popover:r}=this.attribute;if(r&&r.hideIndicator)return null;if(t){const{color:e,isDark:n}=t.start;return{style:f(d({},this.theme.bgAccentHigh({color:e,isDark:!n})),{width:"10px",height:"5px",borderRadius:"3px"})}}if(e){const{color:t,isDark:n}=e.start;return{style:f(d({},this.theme.bgAccentHigh({color:t,isDark:!n})),{width:"5px",height:"5px",borderRadius:"50%"})}}if(n){const{color:t,isDark:e}=n.start;return{style:f(d({},this.theme.bgAccentHigh({color:t,isDark:!e})),{width:"10px",height:"3px"})}}return null}}},ew={class:"vc-day-popover-row"},nw={key:0,class:"vc-day-popover-row-indicator"},rw={class:"vc-day-popover-row-content"};function iw(t,e,n,i,o,s){return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",ew,[s.indicator?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",nw,[Object(r["createElementVNode"])("span",{style:Object(r["normalizeStyle"])(s.indicator.style),class:Object(r["normalizeClass"])(s.indicator.class)},null,6)])):Object(r["createCommentVNode"])("",!0),Object(r["createElementVNode"])("div",rw,[Object(r["renderSlot"])(t.$slots,"default",{},()=>[Object(r["createTextVNode"])(Object(r["toDisplayString"])(n.attribute.popover?n.attribute.popover.label:"No content provided"),1)])])])}var ow=$b(tw,[["render",iw]]);const sw="26px",aw="0 0 32 32",uw={"left-arrow":{viewBox:"0 -1 16 34",path:"M11.196 10c0 0.143-0.071 0.304-0.179 0.411l-7.018 7.018 7.018 7.018c0.107 0.107 0.179 0.268 0.179 0.411s-0.071 0.304-0.179 0.411l-0.893 0.893c-0.107 0.107-0.268 0.179-0.411 0.179s-0.304-0.071-0.411-0.179l-8.321-8.321c-0.107-0.107-0.179-0.268-0.179-0.411s0.071-0.304 0.179-0.411l8.321-8.321c0.107-0.107 0.268-0.179 0.411-0.179s0.304 0.071 0.411 0.179l0.893 0.893c0.107 0.107 0.179 0.25 0.179 0.411z"},"right-arrow":{viewBox:"-5 -1 16 34",path:"M10.625 17.429c0 0.143-0.071 0.304-0.179 0.411l-8.321 8.321c-0.107 0.107-0.268 0.179-0.411 0.179s-0.304-0.071-0.411-0.179l-0.893-0.893c-0.107-0.107-0.179-0.25-0.179-0.411 0-0.143 0.071-0.304 0.179-0.411l7.018-7.018-7.018-7.018c-0.107-0.107-0.179-0.268-0.179-0.411s0.071-0.304 0.179-0.411l0.893-0.893c0.107-0.107 0.268-0.179 0.411-0.179s0.304 0.071 0.411 0.179l8.321 8.321c0.107 0.107 0.179 0.268 0.179 0.411z"}},cw={props:["name"],data(){return{width:sw,height:sw,viewBox:aw,path:"",isBaseline:!1}},mounted(){this.updateIcon()},watch:{name(){this.updateIcon()}},methods:{updateIcon(){const t=uw[this.name];t&&(this.width=t.width||sw,this.height=t.height||sw,this.viewBox=t.viewBox,this.path=t.path)}}},lw=["width","height","viewBox"],hw=["d"];function dw(t,e,n,i,o,s){return Object(r["openBlock"])(),Object(r["createElementBlock"])("svg",{class:"vc-svg-icon",width:o.width,height:o.height,viewBox:o.viewBox},[Object(r["createElementVNode"])("path",{d:o.path},null,8,hw)],8,lw)}var fw=$b(cw,[["render",dw]]);const pw=12,mw={name:"CalendarNav",emits:["input"],components:{SvgIcon:fw},mixins:[J_],props:{value:{type:Object,default:()=>({month:0,year:0})},validator:{type:Function,default:()=>()=>!0}},data(){return{monthMode:!0,yearIndex:0,yearGroupIndex:0,onSpaceOrEnter:Qb}},computed:{month(){return this.value&&this.value.month||0},year(){return this.value&&this.value.year||0},title(){return this.monthMode?this.yearIndex:`${this.firstYear} - ${this.lastYear}`},monthItems(){return this.getMonthItems(this.yearIndex)},yearItems(){return this.getYearItems(this.yearGroupIndex)},prevItemsEnabled(){return this.monthMode?this.prevMonthItemsEnabled:this.prevYearItemsEnabled},nextItemsEnabled(){return this.monthMode?this.nextMonthItemsEnabled:this.nextYearItemsEnabled},prevMonthItemsEnabled(){return this.getMonthItems(this.yearIndex-1).some(t=>!t.isDisabled)},nextMonthItemsEnabled(){return this.getMonthItems(this.yearIndex+1).some(t=>!t.isDisabled)},prevYearItemsEnabled(){return this.getYearItems(this.yearGroupIndex-1).some(t=>!t.isDisabled)},nextYearItemsEnabled(){return this.getYearItems(this.yearGroupIndex+1).some(t=>!t.isDisabled)},activeItems(){return this.monthMode?this.monthItems:this.yearItems},firstYear(){return yb(this.yearItems.map(t=>t.year))},lastYear(){return gy(this.yearItems.map(t=>t.year))}},watch:{year(){this.yearIndex=this.year},yearIndex(t){this.yearGroupIndex=this.getYearGroupIndex(t)},value(){this.focusFirstItem()}},created(){this.yearIndex=this.year},mounted(){this.focusFirstItem()},methods:{focusFirstItem(){this.$nextTick(()=>{const t=this.$refs.navContainer.querySelector(".vc-nav-item:not(.is-disabled)");t&&t.focus()})},getItemClasses({isActive:t,isCurrent:e,isDisabled:n}){const r=["vc-nav-item"];return t?r.push("is-active"):e&&r.push("is-current"),n&&r.push("is-disabled"),r},getYearGroupIndex(t){return Math.floor(t/pw)},getMonthItems(t){const{month:e,year:n}=this.pageForDate(new Date);return this.locale.getMonthDates().map((r,i)=>{const o=i+1;return{month:o,year:t,id:`${t}.${Nb(o,2)}`,label:this.locale.format(r,this.masks.navMonths),ariaLabel:this.locale.format(r,"MMMM YYYY"),isActive:o===this.month&&t===this.year,isCurrent:o===e&&t===n,isDisabled:!this.validator({month:o,year:t}),click:()=>this.monthClick(o,t)}})},getYearItems(t){const{_:e,year:n}=this.pageForDate(new Date),r=t*pw,i=r+pw,o=[];for(let s=r;sthis.yearClick(s)})}return o},monthClick(t,e){this.validator({month:t,year:e})&&this.$emit("input",{month:t,year:e})},yearClick(t){this.yearIndex=t,this.monthMode=!0,this.focusFirstItem()},toggleMode(){this.monthMode=!this.monthMode},movePrev(){this.prevItemsEnabled&&(this.monthMode&&this.movePrevYear(),this.movePrevYearGroup())},moveNext(){this.nextItemsEnabled&&(this.monthMode&&this.moveNextYear(),this.moveNextYearGroup())},movePrevYear(){this.yearIndex--},moveNextYear(){this.yearIndex++},movePrevYearGroup(){this.yearGroupIndex--},moveNextYearGroup(){this.yearGroupIndex++}}},gw={class:"vc-nav-container",ref:"navContainer"},yw={class:"vc-nav-header"},bw=["tabindex"],vw=["tabindex"],_w={class:"vc-nav-items"},ww=["data-id","aria-label","tabindex","onClick","onKeydown"];function Mw(t,e,n,i,o,s){const a=Object(r["resolveComponent"])("svg-icon");return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",gw,[Object(r["createElementVNode"])("div",yw,[Object(r["createElementVNode"])("span",{role:"button",class:Object(r["normalizeClass"])(["vc-nav-arrow is-left",{"is-disabled":!s.prevItemsEnabled}]),tabindex:s.prevItemsEnabled?0:void 0,onClick:e[0]||(e[0]=(...t)=>s.movePrev&&s.movePrev(...t)),onKeydown:e[1]||(e[1]=t=>o.onSpaceOrEnter(t,s.movePrev))},[Object(r["renderSlot"])(t.$slots,"nav-left-button",{},()=>[Object(r["createVNode"])(a,{name:"left-arrow",width:"20px",height:"24px"})])],42,bw),Object(r["createElementVNode"])("span",{role:"button",class:"vc-nav-title vc-grid-focus",style:{whiteSpace:"nowrap"},tabindex:"0",onClick:e[2]||(e[2]=(...t)=>s.toggleMode&&s.toggleMode(...t)),onKeydown:e[3]||(e[3]=t=>o.onSpaceOrEnter(t,s.toggleMode))},Object(r["toDisplayString"])(s.title),33),Object(r["createElementVNode"])("span",{role:"button",class:Object(r["normalizeClass"])(["vc-nav-arrow is-right",{"is-disabled":!s.nextItemsEnabled}]),tabindex:s.nextItemsEnabled?0:void 0,onClick:e[4]||(e[4]=(...t)=>s.moveNext&&s.moveNext(...t)),onKeydown:e[5]||(e[5]=t=>o.onSpaceOrEnter(t,s.moveNext))},[Object(r["renderSlot"])(t.$slots,"nav-right-button",{},()=>[Object(r["createVNode"])(a,{name:"right-arrow",width:"20px",height:"24px"})])],42,vw)]),Object(r["createElementVNode"])("div",_w,[(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(s.activeItems,t=>(Object(r["openBlock"])(),Object(r["createElementBlock"])("span",{key:t.label,role:"button","data-id":t.id,"aria-label":t.ariaLabel,class:Object(r["normalizeClass"])(s.getItemClasses(t)),tabindex:t.isDisabled?void 0:0,onClick:t.click,onKeydown:e=>o.onSpaceOrEnter(e,t.click)},Object(r["toDisplayString"])(t.label),43,ww))),128))])],512)}var Sw=$b(mw,[["render",Mw]]);function Aw(t){document&&document.dispatchEvent(new CustomEvent("show-popover",{detail:t}))}function kw(t){document&&document.dispatchEvent(new CustomEvent("hide-popover",{detail:t}))}function Ew(t){document&&document.dispatchEvent(new CustomEvent("toggle-popover",{detail:t}))}function Lw(t){document&&document.dispatchEvent(new CustomEvent("update-popover",{detail:t}))}function Dw(t){const{visibility:e}=t,n="click"===e,r="hover"===e,i="hover-focus"===e,o="focus"===e;t.autoHide=!n;let s=!1,a=!1;const{isRenderFn:u}=t,c={click:u?"onClick":"click",mousemove:u?"onMousemove":"mousemove",mouseleave:u?"onMouseleave":"mouseleave",focusin:u?"onFocusin":"focusin",focusout:u?"onFocusout":"focusout"};return{[c.click](e){n&&(t.ref=e.target,Ew(t),e.stopPropagation())},[c.mousemove](e){t.ref=e.currentTarget,s||(s=!0,(r||i)&&Aw(t))},[c.mouseleave](e){t.ref=e.target,s&&(s=!1,(r||i&&!a)&&kw(t))},[c.focusin](e){t.ref=e.currentTarget,a||(a=!0,(o||i)&&Aw(t))},[c.focusout](e){t.ref=e.currentTarget,a&&!Gb(t.ref,e.relatedTarget)&&(a=!1,(o||i&&!s)&&kw(t))}}}const Tw={name:"CalendarDay",emits:["dayclick","daymouseenter","daymouseleave","dayfocusin","dayfocusout","daykeydown"],mixins:[J_,X_],inheritAttrs:!1,render(){const t=()=>this.hasBackgrounds&&Object(r["h"])("div",{class:"vc-highlights vc-day-layer"},this.backgrounds.map(({key:t,wrapperClass:e,class:n,style:i})=>Object(r["h"])("div",{key:t,class:e},[Object(r["h"])("div",{class:n,style:i})]))),e=()=>this.safeSlot("day-content",{day:this.day,attributes:this.day.attributes,attributesMap:this.day.attributesMap,dayProps:this.dayContentProps,dayEvents:this.dayContentEvents})||Object(r["h"])("span",f(d(f(d({},this.dayContentProps),{class:this.dayContentClass,style:this.dayContentStyle}),this.dayContentEvents),{ref:"content"}),[this.day.label]),n=()=>this.hasDots&&Object(r["h"])("div",{class:"vc-day-layer vc-day-box-center-bottom"},[Object(r["h"])("div",{class:"vc-dots"},this.dots.map(({key:t,class:e,style:n})=>Object(r["h"])("span",{key:t,class:e,style:n})))]),i=()=>this.hasBars&&Object(r["h"])("div",{class:"vc-day-layer vc-day-box-center-bottom"},[Object(r["h"])("div",{class:"vc-bars"},this.bars.map(({key:t,class:e,style:n})=>Object(r["h"])("span",{key:t,class:e,style:n})))]);return Object(r["h"])("div",{class:["vc-day",...this.day.classes,{"vc-day-box-center-center":!this.$slots["day-content"]},{"is-not-in-month":!this.inMonth}]},[t(),e(),n(),i()])},inject:["sharedState"],props:{day:{type:Object,required:!0}},data(){return{glyphs:{},dayContentEvents:{}}},computed:{label(){return this.day.label},startTime(){return this.day.range.start.getTime()},endTime(){return this.day.range.end.getTime()},inMonth(){return this.day.inMonth},isDisabled(){return this.day.isDisabled},backgrounds(){return this.glyphs.backgrounds},hasBackgrounds(){return!!Fb(this.backgrounds)},content(){return this.glyphs.content},dots(){return this.glyphs.dots},hasDots(){return!!Fb(this.dots)},bars(){return this.glyphs.bars},hasBars(){return!!Fb(this.bars)},popovers(){return this.glyphs.popovers},hasPopovers(){return!!Fb(this.popovers)},dayContentClass(){return["vc-day-content vc-focusable",{"is-disabled":this.isDisabled},Ti(gy(this.content),"class")||""]},dayContentStyle(){return Ti(gy(this.content),"style")},dayContentProps(){let t;return this.day.isFocusable?t="0":this.day.inMonth&&(t="-1"),{tabindex:t,"aria-label":this.day.ariaLabel,"aria-disabled":this.day.isDisabled?"true":"false",role:"button"}},dayEvent(){return f(d({},this.day),{el:this.$refs.content,popovers:this.popovers})}},watch:{theme(){this.refresh()},popovers(){this.refreshPopovers()},"day.shouldRefresh"(){this.refresh()}},mounted(){this.refreshPopovers(),this.refresh()},methods:{getDayEvent(t){return f(d({},this.dayEvent),{event:t})},click(t){this.$emit("dayclick",this.getDayEvent(t))},mouseenter(t){this.$emit("daymouseenter",this.getDayEvent(t))},mouseleave(t){this.$emit("daymouseleave",this.getDayEvent(t))},focusin(t){this.$emit("dayfocusin",this.getDayEvent(t))},focusout(t){this.$emit("dayfocusout",this.getDayEvent(t))},keydown(t){this.$emit("daykeydown",this.getDayEvent(t))},refresh(){if(!this.day.shouldRefresh)return;this.day.shouldRefresh=!1;const t={backgrounds:[],dots:[],bars:[],popovers:[],content:[]};this.day.attributes=Object.values(this.day.attributesMap||{}).sort((t,e)=>t.order-e.order),this.day.attributes.forEach(e=>{const{targetDate:n}=e,{isDate:r,isComplex:i,startTime:o,endTime:s}=n,a=this.startTime<=o,u=this.endTime>=s,c=a&&u,l=a||u,h={isDate:r,isComplex:i,onStart:a,onEnd:u,onStartAndEnd:c,onStartOrEnd:l};this.processHighlight(e,h,t),this.processNonHighlight(e,"content",h,t.content),this.processNonHighlight(e,"dot",h,t.dots),this.processNonHighlight(e,"bar",h,t.bars),this.processPopover(e,t)}),this.glyphs=t},processHighlight({key:t,highlight:e},{isDate:n,isComplex:r,onStart:i,onEnd:o,onStartAndEnd:s},{backgrounds:a,content:u}){if(!e)return;const{base:c,start:l,end:h}=e;n||r||s?(a.push({key:t,wrapperClass:"vc-day-layer vc-day-box-center-center",class:["vc-highlight",l.class],style:l.style}),u.push({key:t+"-content",class:l.contentClass,style:l.contentStyle})):i?(a.push({key:t+"-base",wrapperClass:"vc-day-layer vc-day-box-right-center",class:["vc-highlight vc-highlight-base-start",c.class],style:c.style}),a.push({key:t,wrapperClass:"vc-day-layer vc-day-box-center-center",class:["vc-highlight",l.class],style:l.style}),u.push({key:t+"-content",class:l.contentClass,style:l.contentStyle})):o?(a.push({key:t+"-base",wrapperClass:"vc-day-layer vc-day-box-left-center",class:["vc-highlight vc-highlight-base-end",c.class],style:c.style}),a.push({key:t,wrapperClass:"vc-day-layer vc-day-box-center-center",class:["vc-highlight",h.class],style:h.style}),u.push({key:t+"-content",class:h.contentClass,style:h.contentStyle})):(a.push({key:t+"-middle",wrapperClass:"vc-day-layer vc-day-box-center-center",class:["vc-highlight vc-highlight-base-middle",c.class],style:c.style}),u.push({key:t+"-content",class:c.contentClass,style:c.contentStyle}))},processNonHighlight(t,e,{isDate:n,onStart:r,onEnd:i},o){if(!t[e])return;const{key:s}=t,a="vc-"+e,{base:u,start:c,end:l}=t[e];n||r?o.push({key:s,class:[a,c.class],style:c.style}):i?o.push({key:s,class:[a,l.class],style:l.style}):o.push({key:s,class:[a,u.class],style:u.style})},processPopover(t,{popovers:e}){const{key:n,customData:r,popover:i}=t;if(!i)return;const o=md({key:n,customData:r,attribute:t},d({},i),{visibility:i.label?"hover":"click",placement:"bottom",isInteractive:!i.label});e.splice(0,0,o)},refreshPopovers(){let t={};Fb(this.popovers)&&(t=Dw(md({id:this.dayPopoverId,data:this.day,isRenderFn:!0},...this.popovers))),this.dayContentEvents=Pb({onClick:this.click,onMouseenter:this.mouseenter,onMouseleave:this.mouseleave,onFocusin:this.focusin,onFocusout:this.focusout,onKeydown:this.keydown},t),Lw({id:this.dayPopoverId,data:this.day})}}},Ow={name:"CalendarPane",emits:["update:page","weeknumberclick"],mixins:[J_,X_],inheritAttrs:!1,render(){const t=this.safeSlot("header",this.page)||Object(r["h"])("div",{class:"vc-header align-"+this.titlePosition},[Object(r["h"])("div",d({class:"vc-title"},this.navPopoverEvents),[this.safeSlot("header-title",this.page,this.page.title)])]),e=this.weekdayLabels.map((t,e)=>Object(r["h"])("div",{key:e+1,class:"vc-weekday"},[t])),n=this.showWeeknumbers_.startsWith("left"),i=this.showWeeknumbers_.startsWith("right");n?e.unshift(Object(r["h"])("div",{class:"vc-weekday"})):i&&e.push(Object(r["h"])("div",{class:"vc-weekday"}));const o=t=>Object(r["h"])("div",{class:["vc-weeknumber"]},[Object(r["h"])("span",{class:["vc-weeknumber-content","is-"+this.showWeeknumbers_],onClick:e=>{this.$emit("weeknumberclick",{weeknumber:t,days:this.page.days.filter(e=>e[this.weeknumberKey]===t),event:e})}},[t])]),s=[],{daysInWeek:a}=this.locale;this.page.days.forEach((t,e)=>{const u=e%a;(n&&0===u||i&&u===a)&&s.push(o(t[this.weeknumberKey])),s.push(Object(r["h"])(Tw,f(d({},this.$attrs),{day:t}),this.$slots)),i&&u===a-1&&s.push(o(t[this.weeknumberKey]))});const u=Object(r["h"])("div",{class:{"vc-weeks":!0,"vc-show-weeknumbers":this.showWeeknumbers_,"is-left":n,"is-right":i}},[e,s]);return Object(r["h"])("div",{class:["vc-pane","row-from-end-"+this.rowFromEnd,"column-from-end-"+this.columnFromEnd],ref:"pane"},[t,u])},props:{page:Object,position:Number,row:Number,rowFromEnd:Number,column:Number,columnFromEnd:Number,titlePosition:String,navVisibility:{type:String,default:()=>K_("navVisibility")},showWeeknumbers:[Boolean,String],showIsoWeeknumbers:[Boolean,String]},computed:{weeknumberKey(){return this.showWeeknumbers?"weeknumber":"isoWeeknumber"},showWeeknumbers_(){const t=this.showWeeknumbers||this.showIsoWeeknumbers;return null==t?"":nt(t)?t?"left":"":t.startsWith("right")?this.columnFromEnd>1?"right":t:this.column>1?"left":t},navPlacement(){switch(this.titlePosition){case"left":return"bottom-start";case"right":return"bottom-end";default:return"bottom"}},navPopoverEvents(){const{sharedState:t,navVisibility:e,navPlacement:n,page:r,position:i}=this;return Dw({id:t.navPopoverId,visibility:e,placement:n,modifiers:[{name:"flip",options:{fallbackPlacements:["bottom"]}}],data:{page:r,position:i},isInteractive:!0,isRenderFn:!0})},weekdayLabels(){return this.locale.getWeekdayDates().map(t=>this.format(t,this.masks.weekdays))}}};class xw{constructor(t,e,n){this.theme=t,this.locale=e,this.map={},this.refresh(n,!0)}destroy(){this.theme=null,this.locale=null,this.map={},this.list=[],this.pinAttr=null}refresh(t,e){const n={},r=[];let i=null;const o=[],s=e?new Set:new Set(Object.keys(this.map));return Fb(t)&&t.forEach((t,a)=>{if(!t||!t.dates)return;const u=t.key?t.key.toString():a.toString(),c=t.order||0,l=Jb(JSON.stringify(t));let h=this.map[u];!e&&h&&h.hashcode===l?s.delete(u):(h=new w_(d({key:u,order:c,hashcode:l},t),this.theme,this.locale),o.push(h)),h&&h.pinPage&&(i=h),n[u]=h,r.push(h)}),this.map=n,this.list=r,this.pinAttr=i,{adds:o,deletes:Array.from(s)}}}const Iw=(t,e,{maxSwipeTime:n,minHorizontalSwipeDistance:r,maxVerticalSwipeDistance:i})=>{if(!t||!t.addEventListener||!kt(e))return null;let o=0,s=0,a=null,u=!1;function c(t){const e=t.changedTouches[0];o=e.screenX,s=e.screenY,a=(new Date).getTime(),u=!0}function l(t){if(!u)return;u=!1;const c=t.changedTouches[0],l=c.screenX-o,h=c.screenY-s,d=(new Date).getTime()-a;if(d=r&&Math.abs(h)<=i){const t={toLeft:!1,toRight:!1};l<0?t.toLeft=!0:t.toRight=!0,e(t)}}return Vb(t,"touchstart",c,{passive:!0}),Vb(t,"touchend",l,{passive:!0}),()=>{Kb(t,"touchstart",c),Kb(t,"touchend",l)}},jw={name:"Calendar",emits:["dayfocusin","dayfocusout","transition-start","transition-end","update:from-page","update:to-page"],render(){const t=this.pages.map((t,e)=>{const n=e+1,i=Math.ceil((e+1)/this.columns),o=this.rows-i+1,s=n%this.columns||this.columns,a=this.columns-s+1;return Object(r["h"])(Ow,f(d({},this.$attrs),{key:t.key,attributes:this.store,page:t,position:n,row:i,rowFromEnd:o,column:s,columnFromEnd:a,titlePosition:this.titlePosition,canMove:this.canMove,"onUpdate:page":t=>this.move(t,{position:e+1}),onDayfocusin:t=>{this.lastFocusedDay=t,this.$emit("dayfocusin",t)},onDayfocusout:t=>{this.lastFocusedDay=null,this.$emit("dayfocusout",t)}}),this.$slots)}),e=t=>{const e=()=>this.move(t?-this.step_:this.step_),n=t=>Qb(t,e),i=t?!this.canMovePrev:!this.canMoveNext;return Object(r["h"])("div",{class:["vc-arrow","is-"+(t?"left":"right"),{"is-disabled":i}],role:"button",onClick:e,onKeydown:n},[(t?this.safeSlot("header-left-button",{click:e}):this.safeSlot("header-right-button",{click:e}))||Object(r["h"])(fw,{name:t?"left-arrow":"right-arrow"})])},n=()=>Object(r["h"])(nv,{id:this.sharedState.navPopoverId,contentClass:"vc-nav-popover-container",ref:"navPopover"},{default:({data:t})=>{const{position:e,page:n}=t;return Object(r["h"])(Sw,{value:n,position:e,validator:t=>this.canMove(t,{position:e}),onInput:t=>this.move(t)},d({},this.$slots))}}),i=()=>Object(r["h"])(nv,{id:this.sharedState.dayPopoverId,contentClass:"vc-day-popover-container"},{default:({data:t,updateLayout:e,hide:n})=>{const i=Object.values(t.attributes).filter(t=>t.popover),o=this.$locale.masks,s=this.formatDate,a=s(t.date,o.dayPopover);return this.safeSlot("day-popover",{day:t,attributes:i,masks:o,format:s,dayTitle:a,updateLayout:e,hide:n},Object(r["h"])("div",[o.dayPopover&&Object(r["h"])("div",{class:["vc-day-popover-header"]},[a]),i.map(t=>Object(r["h"])(ow,{key:t.key,attribute:t}))]))}});return Object(r["h"])("div",{"data-helptext":"Press the arrow keys to navigate by day, Home and End to navigate to week ends, PageUp and PageDown to navigate by month, Alt+PageUp and Alt+PageDown to navigate by year",class:["vc-container","vc-"+this.$theme.color,{"vc-is-expanded":this.isExpanded,"vc-is-dark":this.$theme.isDark}],onKeydown:this.handleKeydown,onMouseup:t=>t.preventDefault(),ref:"container"},[n(),Object(r["h"])("div",{class:["vc-pane-container",{"in-transition":this.inTransition}]},[Object(r["h"])(ev,{name:this.transitionName,"on-before-enter":()=>{this.inTransition=!0},"on-after-enter":()=>{this.inTransition=!1}},{default:()=>Object(r["h"])("div",f(d({},this.$attrs),{class:"vc-pane-layout",style:{gridTemplateColumns:`repeat(${this.columns}, 1fr)`},key:this.firstPage?this.firstPage.key:""}),t)}),Object(r["h"])("div",{class:["vc-arrows-container title-"+this.titlePosition]},[e(!0),e(!1)]),this.$slots.footer&&this.$slots.footer()]),i()])},mixins:[$_,X_],provide(){return{sharedState:this.sharedState}},props:{rows:{type:Number,default:1},columns:{type:Number,default:1},step:Number,titlePosition:{type:String,default:()=>K_("titlePosition")},isExpanded:Boolean,fromDate:Date,toDate:Date,fromPage:Object,toPage:Object,minPage:Object,maxPage:Object,transition:String,attributes:[Object,Array],trimWeeks:Boolean,disablePageSwipe:Boolean},data(){return{pages:[],store:null,lastFocusedDay:null,focusableDay:(new Date).getDate(),transitionName:"",inTransition:!1,sharedState:{navPopoverId:Zb(),dayPopoverId:Zb(),theme:{},masks:{},locale:{}}}},computed:{firstPage(){return yb(this.pages)},lastPage(){return gy(this.pages)},minPage_(){return this.minPage||this.pageForDate(this.minDate)},maxPage_(){return this.maxPage||this.pageForDate(this.maxDate)},count(){return this.rows*this.columns},step_(){return this.step||this.count},canMovePrev(){return this.canMove(-this.step_)},canMoveNext(){return this.canMove(this.step_)}},watch:{$locale(){this.refreshLocale(),this.refreshPages({page:this.firstPage,ignoreCache:!0}),this.initStore()},$theme(){this.refreshTheme(),this.initStore()},fromDate(){this.refreshPages()},fromPage(t){const e=this.pages&&this.pages[0];zb(t,e)||this.refreshPages()},toPage(t){const e=this.pages&&this.pages[this.pages.length-1];zb(t,e)||this.refreshPages()},count(){this.refreshPages()},attributes:{handler(t){const{adds:e,deletes:n}=this.store.refresh(t);this.refreshAttrs(this.pages,e,n)},deep:!0},pages(t){this.refreshAttrs(t,this.store.list,null,!0)},disabledAttribute(){this.refreshDisabledDays()},lastFocusedDay(t){t&&(this.focusableDay=t.day,this.refreshFocusableDays())},inTransition(t){t?this.$emit("transition-start"):(this.$emit("transition-end"),this.transitionPromise&&(this.transitionPromise.resolve(!0),this.transitionPromise=null))}},created(){this.refreshLocale(),this.refreshTheme(),this.initStore(),this.refreshPages()},mounted(){this.disablePageSwipe||(this.removeHandlers=Iw(this.$refs.container,({toLeft:t,toRight:e})=>{t?this.moveNext():e&&this.movePrev()},K_("touch")))},beforeUnmount(){this.pages=[],this.store.destroy(),this.store=null,this.sharedState=null,this.removeHandlers&&this.removeHandlers()},methods:{refreshLocale(){this.sharedState.locale=this.$locale,this.sharedState.masks=this.$locale.masks},refreshTheme(){this.sharedState.theme=this.$theme},canMove(t,e={}){const n=this.firstPage&&this.$locale.toPage(t,this.firstPage);if(!n)return!1;let{position:r}=e;if(at(t)&&(r=1),!r)if(Rb(n,this.firstPage))r=-1;else{if(!Yb(n,this.lastPage))return!0;r=1}return Object.assign(e,this.getTargetPageRange(n,{position:r,force:!0})),Wb(e.fromPage,e.toPage).some(t=>Bb(t,this.minPage_,this.maxPage_))},movePrev(t){return this.move(-this.step_,t)},moveNext(t){return this.move(this.step_,t)},move(t,e={}){const n=this.canMove(t,e);return e.force||n?(this.$refs.navPopover.hide({hideDelay:0}),e.fromPage&&!zb(e.fromPage,this.firstPage)?this.refreshPages(f(d({},e),{page:e.fromPage,position:1,force:!0})):Promise.resolve(!0)):Promise.reject(new Error("Move target is disabled: "+JSON.stringify(e)))},focusDate(t,e={}){return this.move(t,e).then(()=>{const e=this.$el.querySelector(`.id-${this.$locale.getDayId(t)}.in-month .vc-focusable`);return e?(e.focus(),Promise.resolve(!0)):Promise.resolve(!1)})},showPageRange(t,e){let n,r;if(Tb(t))n=this.pageForDate(t);else{if(!Ob(t))return Promise.reject(new Error("Invalid page range provided."));{const{month:e,year:i}=t,{from:o,to:s}=t;at(e)&&at(i)?n=t:(o||s)&&(n=Tb(o)?this.pageForDate(o):o,r=Tb(s)?this.pageForDate(s):s)}}const i=this.lastPage;let o=n;return Yb(r,i)&&(o=Ub(r,-(this.pages.length-1))),Rb(o,n)&&(o=n),this.refreshPages(f(d({},e),{page:o}))},getTargetPageRange(t,{position:e,force:n}={}){let r=null,i=null;if(Cb(t)){let n=0;e=+e,isNaN(e)||(n=e>0?1-e:-(this.count+e)),r=Ub(t,n)}else r=this.getDefaultInitialPage();return i=Ub(r,this.count-1),n||(Rb(r,this.minPage_)?r=this.minPage_:Yb(i,this.maxPage_)&&(r=Ub(this.maxPage_,1-this.count)),i=Ub(r,this.count-1)),{fromPage:r,toPage:i}},getDefaultInitialPage(){let t=this.fromPage||this.pageForDate(this.fromDate);if(!Cb(t)){const e=this.toPage||this.pageForDate(this.toPage);Cb(e)&&(t=Ub(e,1-this.count))}return Cb(t)||(t=this.getPageForAttributes()),Cb(t)||(t=this.pageForThisMonth()),t},refreshPages({page:t,position:e=1,force:n,transition:r,ignoreCache:i}={}){return new Promise((o,s)=>{const{fromPage:a,toPage:u}=this.getTargetPageRange(t,{position:e,force:n}),c=[];for(let t=0;t{t.isDisabled=!!this.disabledAttribute&&this.disabledAttribute.intersectsDay(t)})},refreshFocusableDays(t){this.getPageDays(t).forEach(t=>{t.isFocusable=t.inMonth&&t.day===this.focusableDay})},getPageDays(t=this.pages){return t.reduce((t,e)=>t.concat(e.days),[])},getPageTransition(t,e,n=this.transition){if("none"===n)return n;if("fade"===n||!n&&this.count>1||!Cb(t)||!Cb(e))return"fade";const r=Rb(e,t);return"slide-v"===n?r?"slide-down":"slide-up":r?"slide-right":"slide-left"},getPageForAttributes(){let t=null;const e=this.store.pinAttr;if(e&&e.hasDates){let[n]=e.dates;n=n.start||n.date,t=this.pageForDate(n)}return t},buildPage({month:t,year:e},n){const r=`${e.toString()}-${t.toString()}`;let i=this.pages.find(t=>t.key===r);if(!i||n){const n=new Date(e,t-1,15),o=this.$locale.getMonthComps(t,e),s=this.$locale.getPrevMonthComps(t,e),a=this.$locale.getNextMonthComps(t,e);i={key:r,month:t,year:e,weeks:this.trimWeeks?o.weeks:6,title:this.$locale.format(n,this.$locale.masks.title),shortMonthLabel:this.$locale.format(n,"MMM"),monthLabel:this.$locale.format(n,"MMMM"),shortYearLabel:e.toString().substring(2),yearLabel:e.toString(),monthComps:o,prevMonthComps:s,nextMonthComps:a,canMove:t=>this.canMove(t),move:t=>this.move(t),moveThisMonth:()=>this.moveThisMonth(),movePrevMonth:()=>this.move(s),moveNextMonth:()=>this.move(a),refresh:!0},i.days=this.$locale.getCalendarDays(i)}return i},initStore(){this.store=new xw(this.$theme,this.$locale,this.attributes),this.refreshAttrs(this.pages,this.store.list,[],!0)},refreshAttrs(t=[],e=[],n=[],r){Fb(t)&&t.forEach(t=>{t.days.forEach(t=>{let i=!1,o={};r?i=!0:Ib(t.attributesMap,n)?(o=Fy(t.attributesMap,n),i=!0):o=t.attributesMap||{},e.forEach(e=>{const n=e.intersectsDay(t);if(n){const t=f(d({},e),{targetDate:n});o[e.key]=t,i=!0}}),i&&(t.attributesMap=o,t.shouldRefresh=!0)})})},handleKeydown(t){const e=this.lastFocusedDay;null!=e&&(e.event=t,this.handleDayKeydown(e))},handleDayKeydown(t){const{dateFromTime:e,event:n}=t,r=e(12);let i=null;switch(n.key){case"ArrowLeft":i=b(r,-1);break;case"ArrowRight":i=b(r,1);break;case"ArrowUp":i=b(r,-7);break;case"ArrowDown":i=b(r,7);break;case"Home":i=b(r,1-t.weekdayPosition);break;case"End":i=b(r,t.weekdayPositionFromEnd);break;case"PageUp":i=n.altKey?_(r,-1):v(r,-1);break;case"PageDown":i=n.altKey?_(r,1):v(r,1);break}i&&(n.preventDefault(),this.focusDate(i).catch())}}},Nw={inheritAttrs:!1,emits:["update:modelValue"],props:{options:Array,modelValue:null}},Pw={class:"vc-select"},Cw=["value"],Rw=["value","disabled"],Yw=Object(r["createElementVNode"])("div",{class:"vc-select-arrow"},[Object(r["createElementVNode"])("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},[Object(r["createElementVNode"])("path",{d:"M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"})])],-1);function Bw(t,e,n,i,o,s){return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",Pw,[Object(r["createElementVNode"])("select",Object(r["mergeProps"])(t.$attrs,{value:n.modelValue,onChange:e[0]||(e[0]=e=>t.$emit("update:modelValue",e.target.value))}),[(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(n.options,t=>(Object(r["openBlock"])(),Object(r["createElementBlock"])("option",{key:t.value,value:t.value,disabled:t.disabled},Object(r["toDisplayString"])(t.label),9,Rw))),128))],16,Cw),Yw])}var zw=$b(Nw,[["render",Bw]]);const Uw=[{value:0,label:"12"},{value:1,label:"1"},{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"},{value:5,label:"5"},{value:6,label:"6"},{value:7,label:"7"},{value:8,label:"8"},{value:9,label:"9"},{value:10,label:"10"},{value:11,label:"11"}],Ww=[{value:12,label:"12"},{value:13,label:"1"},{value:14,label:"2"},{value:15,label:"3"},{value:16,label:"4"},{value:17,label:"5"},{value:18,label:"6"},{value:19,label:"7"},{value:20,label:"8"},{value:21,label:"9"},{value:22,label:"10"},{value:23,label:"11"}],Hw={name:"TimePicker",components:{TimeSelect:zw},emits:["update:modelValue"],props:{modelValue:{type:Object,required:!0},locale:{type:Object,required:!0},theme:{type:Object,required:!0},is24hr:{type:Boolean,default:!0},showBorder:Boolean,hourOptions:Array,minuteOptions:Array},computed:{date(){let t=this.locale.normalizeDate(this.modelValue);return 24===this.modelValue.hours&&(t=new Date(t.getTime()-1)),t},hours:{get(){return this.modelValue.hours},set(t){this.updateValue(t,this.minutes)}},minutes:{get(){return this.modelValue.minutes},set(t){this.updateValue(this.hours,t)}},isAM:{get(){return this.modelValue.hours<12},set(t){let e=this.hours;t&&e>=12?e-=12:!t&&e<12&&(e+=12),this.updateValue(e,this.minutes)}},amHourOptions(){return Uw.filter(t=>this.hourOptions.some(e=>e.value===t.value))},pmHourOptions(){return Ww.filter(t=>this.hourOptions.some(e=>e.value===t.value))},hourOptions_(){return this.is24hr?this.hourOptions:this.isAM?this.amHourOptions:this.pmHourOptions},amDisabled(){return!Fb(this.amHourOptions)},pmDisabled(){return!Fb(this.pmHourOptions)}},methods:{updateValue(t,e=this.minutes){t===this.hours&&e===this.minutes||this.$emit("update:modelValue",f(d({},this.modelValue),{hours:t,minutes:e,seconds:0,milliseconds:0}))}}},Fw=Object(r["createElementVNode"])("div",null,[Object(r["createElementVNode"])("svg",{fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24",class:"vc-time-icon",stroke:"currentColor"},[Object(r["createElementVNode"])("path",{d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})])],-1),qw={class:"vc-time-content"},Vw={key:0,class:"vc-time-date"},Kw={class:"vc-time-weekday"},Gw={class:"vc-time-month"},Qw={class:"vc-time-day"},Zw={class:"vc-time-year"},Jw={class:"vc-time-select"},$w=Object(r["createElementVNode"])("span",{style:{margin:"0 4px"}},":",-1),Xw={key:0,class:"vc-am-pm"};function tM(t,e,n,i,o,s){const a=Object(r["resolveComponent"])("time-select");return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{class:Object(r["normalizeClass"])(["vc-time-picker",[{"vc-invalid":!n.modelValue.isValid,"vc-bordered":n.showBorder}]])},[Fw,Object(r["createElementVNode"])("div",qw,[s.date?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",Vw,[Object(r["createElementVNode"])("span",Kw,Object(r["toDisplayString"])(n.locale.format(s.date,"WWW")),1),Object(r["createElementVNode"])("span",Gw,Object(r["toDisplayString"])(n.locale.format(s.date,"MMM")),1),Object(r["createElementVNode"])("span",Qw,Object(r["toDisplayString"])(n.locale.format(s.date,"D")),1),Object(r["createElementVNode"])("span",Zw,Object(r["toDisplayString"])(n.locale.format(s.date,"YYYY")),1)])):Object(r["createCommentVNode"])("",!0),Object(r["createElementVNode"])("div",Jw,[Object(r["createVNode"])(a,{modelValue:s.hours,"onUpdate:modelValue":e[0]||(e[0]=t=>s.hours=t),modelModifiers:{number:!0},options:s.hourOptions_},null,8,["modelValue","options"]),$w,Object(r["createVNode"])(a,{modelValue:s.minutes,"onUpdate:modelValue":e[1]||(e[1]=t=>s.minutes=t),modelModifiers:{number:!0},options:n.minuteOptions},null,8,["modelValue","options"]),n.is24hr?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",Xw,[Object(r["createElementVNode"])("button",{class:Object(r["normalizeClass"])({active:s.isAM,"vc-disabled":s.amDisabled}),onClick:e[2]||(e[2]=Object(r["withModifiers"])(t=>s.isAM=!0,["prevent"])),type:"button"}," AM ",2),Object(r["createElementVNode"])("button",{class:Object(r["normalizeClass"])({active:!s.isAM,"vc-disabled":s.pmDisabled}),onClick:e[3]||(e[3]=Object(r["withModifiers"])(t=>s.isAM=!1,["prevent"])),type:"button"}," PM ",2)]))])])],2)}var eM=$b(Hw,[["render",tM]]);const nM={type:"auto",mask:"iso",timeAdjust:""},rM=[nM,nM],iM={DATE:"date",DATE_TIME:"datetime",TIME:"time"},oM={NONE:0,START:1,END:2,BOTH:3},sM={name:"DatePicker",emits:["update:modelValue","drag","dayclick","daykeydown","popover-will-show","popover-did-show","popover-will-hide","popover-did-hide"],render(){const t=(t,e)=>{if(!this.$slots.footer)return t;const n=[t,this.$slots.footer()];return e?Object(r["h"])(e,n):n},e=()=>{if(!this.dateParts)return null;const t=this.isRange?this.dateParts:[this.dateParts[0]];return Object(r["h"])("div",{},f(d({},this.$slots),{default:()=>t.map((t,e)=>{const n=this.$locale.getHourOptions(this.modelConfig_[e].validHours,t),i=this.$locale.getMinuteOptions(this.modelConfig_[e].minuteIncrement,t);return Object(r["h"])(eM,{modelValue:t,locale:this.$locale,theme:this.$theme,is24hr:this.is24hr,showBorder:!this.isTime,isDisabled:this.isDateTime&&!t.isValid||this.isDragging,hourOptions:n,minuteOptions:i,"onUpdate:modelValue":t=>this.onTimeInput(t,0===e)})})}))},n=()=>Object(r["h"])(jw,f(d({},this.$attrs),{attributes:this.attributes_,theme:this.$theme,locale:this.$locale,minDate:this.minDateExact||this.minDate,maxDate:this.maxDateExact||this.maxDate,disabledDates:this.disabledDates,availableDates:this.availableDates,onDayclick:this.onDayClick,onDaykeydown:this.onDayKeydown,onDaymouseenter:this.onDayMouseEnter,ref:"calendar"}),f(d({},this.$slots),{footer:()=>this.isDateTime?t(e()):t()})),i=()=>this.isTime?Object(r["h"])("div",{class:["vc-container","vc-"+this.$theme.color,{"vc-is-dark":this.$theme.isDark}]},t(e(),"div")):n();return this.$slots.default?Object(r["h"])("div",[this.$slots.default(this.slotArgs),Object(r["h"])(nv,{id:this.datePickerPopoverId,placement:"bottom-start",contentClass:"vc-container"+(this.isDark?" vc-is-dark":""),"on-before-show":t=>this.$emit("popover-will-show",t),"on-after-show":t=>this.$emit("popover-did-show",t),"on-before-hide":t=>this.$emit("popover-will-hide",t),"on-after-hide":t=>this.$emit("popover-did-hide",t),ref:"popover"},{default:i})]):i()},mixins:[$_],props:{mode:{type:String,default:iM.DATE},modelValue:{type:null,required:!0},modelConfig:{type:Object,default:()=>({})},is24hr:Boolean,minuteIncrement:Number,isRequired:Boolean,isRange:Boolean,updateOnInput:{type:Boolean,default:()=>K_("datePicker.updateOnInput")},inputDebounce:{type:Number,default:()=>K_("datePicker.inputDebounce")},popover:{type:Object,default:()=>({})},dragAttribute:Object,selectAttribute:Object,attributes:Array,validHours:[Object,Array,Function]},data(){return{value_:null,dateParts:null,activeDate:"",dragValue:null,inputValues:["",""],updateTimeout:null,watchValue:!0,datePickerPopoverId:Zb()}},computed:{isDate(){return this.mode.toLowerCase()===iM.DATE},isDateTime(){return this.mode.toLowerCase()===iM.DATE_TIME},isTime(){return this.mode.toLowerCase()===iM.TIME},isDragging(){return!!this.dragValue},modelConfig_(){return this.normalizeConfig(this.modelConfig,rM)},inputMask(){const t=this.$locale.masks;return this.isTime?this.is24hr?t.inputTime24hr:t.inputTime:this.isDateTime?this.is24hr?t.inputDateTime24hr:t.inputDateTime:this.$locale.masks.input},inputMaskHasTime(){return/[Hh]/g.test(this.inputMask)},inputMaskHasDate(){return/[dD]{1,2}|Do|W{1,4}|M{1,4}|YY(?:YY)?/g.test(this.inputMask)},inputMaskPatch(){return this.inputMaskHasTime&&this.inputMaskHasDate?r_.DATE_TIME:this.inputMaskHasDate?r_.DATE:this.inputMaskHasTime?r_.TIME:void 0},slotArgs(){const{isRange:t,isDragging:e,updateValue:n,showPopover:r,hidePopover:i,togglePopover:o}=this,s=t?{start:this.inputValues[0],end:this.inputValues[1]}:this.inputValues[0],a=[!0,!1].map(t=>d({input:this.onInputInput(t),change:this.onInputChange(t),keyup:this.onInputKeyup},Dw(f(d({},this.popover_),{id:this.datePickerPopoverId,callback:e=>{"show"===e.action&&e.completed&&this.onInputShow(t)}})))),u=t?{start:a[0],end:a[1]}:a[0];return{inputValue:s,inputEvents:u,isDragging:e,updateValue:n,showPopover:r,hidePopover:i,togglePopover:o,getPopoverTriggerEvents:Dw}},popover_(){return $f(this.popover,K_("datePicker.popover"))},selectAttribute_(){if(!this.hasValue(this.value_))return null;const t=f(d({key:"select-drag"},this.selectAttribute),{dates:this.value_,pinPage:!0}),{dot:e,bar:n,highlight:r,content:i}=t;return e||n||r||i||(t.highlight=!0),t},dragAttribute_(){if(!this.isRange||!this.hasValue(this.dragValue))return null;const t=f(d({key:"select-drag"},this.dragAttribute),{dates:this.dragValue}),{dot:e,bar:n,highlight:r,content:i}=t;return e||n||r||i||(t.highlight={startEnd:{fillMode:"outline"}}),t},attributes_(){const t=Ct(this.attributes)?[...this.attributes]:[];return this.dragAttribute_?t.push(this.dragAttribute_):this.selectAttribute_&&t.push(this.selectAttribute_),t}},watch:{inputMask(){this.formatInput()},modelValue(t){this.watchValue&&this.forceUpdateValue(t,{config:this.modelConfig_,formatInput:!0,hidePopover:!1})},value_(){this.refreshDateParts()},dragValue(){this.refreshDateParts()},timezone(){this.refreshDateParts(),this.forceUpdateValue(this.value_,{formatInput:!0})}},created(){this.value_=this.normalizeValue(this.modelValue,this.modelConfig_,r_.DATE_TIME,oM.BOTH),this.forceUpdateValue(this.modelValue,{config:this.modelConfig_,formatInput:!0,hidePopover:!1}),this.refreshDateParts()},mounted(){Vb(document,"keydown",this.onDocumentKeyDown),Vb(document,"click",this.onDocumentClick)},beforeUnmount(){Kb(document,"keydown",this.onDocumentKeyDown),Kb(document,"click",this.onDocumentClick)},methods:{getDateParts(t){return this.$locale.getDateParts(t)},getDateFromParts(t){return this.$locale.getDateFromParts(t)},refreshDateParts(){const t=this.dragValue||this.value_,e=[];this.isRange?(t&&t.start?e.push(this.getDateParts(t.start)):e.push({}),t&&t.end?e.push(this.getDateParts(t.end)):e.push({})):t?e.push(this.getDateParts(t)):e.push({}),this.$nextTick(()=>this.dateParts=e)},onDocumentKeyDown(t){this.dragValue&&"Escape"===t.key&&(this.dragValue=null)},onDocumentClick(t){document.body.contains(t.target)&&!Gb(this.$el,t.target)&&(this.dragValue=null,this.formatInput())},onDayClick(t){this.handleDayClick(t),this.$emit("dayclick",t)},onDayKeydown(t){switch(t.event.key){case" ":case"Enter":this.handleDayClick(t),t.event.preventDefault();break;case"Escape":this.hidePopover()}this.$emit("daykeydown",t)},handleDayClick(t){const{keepVisibleOnInput:e,visibility:n}=this.popover_,r={patch:r_.DATE,adjustTime:!0,formatInput:!0,hidePopover:this.isDate&&!e&&"visible"!==n};this.isRange?(this.isDragging?this.dragTrackingValue.end=t.date:this.dragTrackingValue=d({},t.range),r.isDragging=!this.isDragging,r.rangePriority=r.isDragging?oM.NONE:oM.BOTH,r.hidePopover=r.hidePopover&&!r.isDragging,this.updateValue(this.dragTrackingValue,r)):(r.clearIfEqual=!this.isRequired,this.updateValue(t.date,r))},onDayMouseEnter(t){this.isDragging&&(this.dragTrackingValue.end=t.date,this.updateValue(this.dragTrackingValue,{patch:r_.DATE,adjustTime:!0,formatInput:!0,hidePriority:!1,rangePriority:oM.NONE}))},onTimeInput(t,e){let n=null;if(this.isRange){const r=e?t:this.dateParts[0],i=e?this.dateParts[1]:t;n={start:r,end:i}}else n=t;this.updateValue(n,{patch:r_.TIME,rangePriority:e?oM.START:oM.END}).then(()=>this.adjustPageRange(e))},onInputInput(t){return e=>{this.updateOnInput&&this.onInputUpdate(e.target.value,t,{formatInput:!1,hidePopover:!1,debounce:this.inputDebounce})}},onInputChange(t){return e=>{this.onInputUpdate(e.target.value,t,{formatInput:!0,hidePopover:!1})}},onInputUpdate(t,e,n){this.inputValues.splice(e?0:1,1,t);const r=this.isRange?{start:this.inputValues[0],end:this.inputValues[1]||this.inputValues[0]}:t,i={type:"string",mask:this.inputMask};this.updateValue(r,f(d({},n),{config:i,patch:this.inputMaskPatch,rangePriority:e?oM.START:oM.END})).then(()=>this.adjustPageRange(e))},onInputShow(t){this.adjustPageRange(t)},onInputKeyup(t){"Escape"===t.key&&this.updateValue(this.value_,{formatInput:!0,hidePopover:!0})},updateValue(t,e={}){return clearTimeout(this.updateTimeout),new Promise(n=>{const r=e,{debounce:i}=r,o=p(r,["debounce"]);i>0?this.updateTimeout=setTimeout(()=>{this.forceUpdateValue(t,o),n(this.value_)},i):(this.forceUpdateValue(t,o),n(this.value_))})},normalizeConfig(t,e=this.modelConfig_){return t=Ct(t)?t:[t.start||t,t.end||t],e.map((e,n)=>d(d({validHours:this.validHours,minuteIncrement:this.minuteIncrement},e),t[n]))},forceUpdateValue(t,{config:e=this.modelConfig_,patch:n=r_.DATE_TIME,clearIfEqual:r=!1,formatInput:i=!0,hidePopover:o=!1,isDragging:s=this.isDragging,rangePriority:a=oM.BOTH}={}){e=this.normalizeConfig(e);let u=this.normalizeValue(t,e,n,a);!u&&this.isRequired&&(u=this.value_),u=this.adjustTimeForValue(u,e);const c=this.valueIsDisabled(u);if(c){if(s)return;u=this.value_,o=!1}const l=s?"dragValue":"value_";let h=!this.valuesAreEqual(this[l],u);if(c||h||!r||(u=null,h=!0),h){this[l]=u,s||(this.dragValue=null);const t=this.denormalizeValue(u),e=this.isDragging?"drag":"update:modelValue";this.watchValue=!1,this.$emit(e,t),this.$nextTick(()=>this.watchValue=!0)}o&&this.hidePopover(),i&&this.formatInput()},hasValue(t){return this.isRange?Ob(t)&&!!t.start&&!!t.end:!!t},normalizeValue(t,e,n,r){if(!this.hasValue(t))return null;if(this.isRange){const i={},o=t.start>t.end?t.end:t.start;i.start=this.normalizeDate(o,f(d({},e[0]),{fillDate:this.value_&&this.value_.start||e[0].fillDate,patch:n}));const s=t.start>t.end?t.start:t.end;return i.end=this.normalizeDate(s,f(d({},e[1]),{fillDate:this.value_&&this.value_.end||e[1].fillDate,patch:n})),this.sortRange(i,r)}return this.normalizeDate(t,f(d({},e[0]),{fillDate:this.value_||e[0].fillDate,patch:n}))},adjustTimeForValue(t,e){return this.hasValue(t)?this.isRange?{start:this.$locale.adjustTimeForDate(t.start,e[0]),end:this.$locale.adjustTimeForDate(t.end,e[1])}:this.$locale.adjustTimeForDate(t,e[0]):null},sortRange(t,e=oM.NONE){const{start:n,end:r}=t;if(n>r)switch(e){case oM.START:return{start:n,end:n};case oM.END:return{start:r,end:r};case oM.BOTH:return{start:r,end:n}}return{start:n,end:r}},denormalizeValue(t,e=this.modelConfig_){return this.isRange?this.hasValue(t)?{start:this.$locale.denormalizeDate(t.start,e[0]),end:this.$locale.denormalizeDate(t.end,e[1])}:null:this.$locale.denormalizeDate(t,e[0])},valuesAreEqual(t,e){if(this.isRange){const n=this.hasValue(t),r=this.hasValue(e);return!n&&!r||n===r&&(Hb(t.start,e.start)&&Hb(t.end,e.end))}return Hb(t,e)},valueIsDisabled(t){return this.hasValue(t)&&this.disabledAttribute&&this.disabledAttribute.intersectsDate(t)},formatInput(){this.$nextTick(()=>{const t=this.normalizeConfig({type:"string",mask:this.inputMask}),e=this.denormalizeValue(this.dragValue||this.value_,t);this.isRange?this.inputValues=[e&&e.start,e&&e.end]:this.inputValues=[e,""]})},showPopover(t={}){Aw(f(d(d({ref:this.$el},this.popover_),t),{isInteractive:!0,id:this.datePickerPopoverId}))},hidePopover(t={}){kw(f(d(d({hideDelay:10},this.showPopover_),t),{id:this.datePickerPopoverId}))},togglePopover(t){Ew(f(d(d({ref:this.$el},this.popover_),t),{isInteractive:!0,id:this.datePickerPopoverId}))},adjustPageRange(t){this.$nextTick(()=>{const e=this.$refs.calendar,n=this.getPageForValue(t),r=t?1:-1;n&&e&&!Bb(n,e.firstPage,e.lastPage)&&e.move(n,{position:r,transition:"fade"})})},getPageForValue(t){return this.hasValue(this.value_)?this.pageForDate(this.isRange?this.value_[t?"start":"end"]:this.value_):null},move(t,e){return this.$refs.calendar?this.$refs.calendar.move(t,e):Promise.reject(new Error("Navigation disabled while calendar is not yet displayed"))},focusDate(t,e){return this.$refs.calendar?this.$refs.calendar.focusDate(t,e):Promise.reject(new Error("Navigation disabled while calendar is not yet displayed"))}}};var aM=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",Calendar:jw,DatePicker:sM,Popover:nv,PopoverRow:ow});function uM(t){return mt(t)&&(t={min:t}),Ct(t)||(t=[t]),t.map(t=>xb(t,"raw")?t.raw:mb(t,(t,e)=>(e=Ti({min:"min-width",max:"max-width"},e,e),`(${e}: ${t})`)).join(" and ")).join(", ")}var cM={install:(t,e)=>{e=$f(e,window&&window.__screens__,H_);let n=!0;const i=Object(r["reactive"])({matches:[],queries:[]}),o=()=>{i.matches=ph(i.queries).filter(t=>t[1].matches).map(t=>t[0])},s=()=>{n&&window&&window.matchMedia&&(i.queries=Jl(e,t=>{const e=window.matchMedia(uM(t));return kt(e.addEventListener)?e.addEventListener("change",o):e.addListener(o),e}),n=!1,o())};t.mixin({mounted(){s()},computed:{$screens(){return(t,e)=>i.matches.reduce((e,n)=>xb(t,n)?t[n]:e,Yt(e)?t.default:e)}}})}},lM=(t,e)=>{const{screens:n}=G_(t,e);t.use(cM,n)};const hM=(t,e={})=>{t.use(lM,e);const n=t.config.globalProperties.$VCalendar.componentPrefix;for(const r in aM){const e=aM[r];t.component(`${n}${e.name}`,e)}};var dM={install:hM}}).call(this,n("c8ba"))},"027d":function(t,e,n){t.exports=n("faa1").EventEmitter},"02fb":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(t,e){return 12===t&&(t=0),"രാത്രി"===e&&t>=4||"ഉച്ച കഴിഞ്ഞ്"===e||"വൈകുന്നേരം"===e?t+12:t},meridiem:function(t,e,n){return t<4?"രാത്രി":t<12?"രാവിലെ":t<17?"ഉച്ച കഴിഞ്ഞ്":t<20?"വൈകുന്നേരം":"രാത്രി"}});return e}))},"03ec":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(t){var e=/сехет$/i.exec(t)?"рен":/ҫул$/i.exec(t)?"тан":"ран";return t+e},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}});return e}))},"04bc":function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n("7e35"),e)},"0558":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration function e(t){return t%100===11||t%10!==1}function n(t,n,r,i){var o=t+" ";switch(r){case"s":return n||i?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return e(t)?o+(n||i?"sekúndur":"sekúndum"):o+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return e(t)?o+(n||i?"mínútur":"mínútum"):n?o+"mínúta":o+"mínútu";case"hh":return e(t)?o+(n||i?"klukkustundir":"klukkustundum"):o+"klukkustund";case"d":return n?"dagur":i?"dag":"degi";case"dd":return e(t)?n?o+"dagar":o+(i?"daga":"dögum"):n?o+"dagur":o+(i?"dag":"degi");case"M":return n?"mánuður":i?"mánuð":"mánuði";case"MM":return e(t)?n?o+"mánuðir":o+(i?"mánuði":"mánuðum"):n?o+"mánuður":o+(i?"mánuð":"mánuði");case"y":return n||i?"ár":"ári";case"yy":return e(t)?o+(n||i?"ár":"árum"):o+(n||i?"ár":"ári")}}var r=t.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return r}))},"05f0":function(t,e,n){"use strict";var r=n("d113").codes.ERR_INVALID_OPT_VALUE;function i(t,e,n){return null!=t.highWaterMark?t.highWaterMark:e?t[n]:null}function o(t,e,n,o){var s=i(e,o,n);if(null!=s){if(!isFinite(s)||Math.floor(s)!==s||s<0){var a=o?n:"highWaterMark";throw new r(a,s)}return Math.floor(s)}return t.objectMode?16:16384}t.exports={getHighWaterMark:o}},"05f8":function(t,e,n){const r=n("40ab"),i=(t,e,n)=>r(t,e,">",n);t.exports=i},"0632":function(t,e,n){ /*! safe-buffer. MIT License. Feross Aboukhadijeh */ var r=n("b639"),i=r.Buffer;function o(t,e){for(var n in t)e[n]=t[n]}function s(t,e,n){return i(t,e,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(t,e,n){if("number"===typeof t)throw new TypeError("Argument must not be a number");return i(t,e,n)},s.alloc=function(t,e,n){if("number"!==typeof t)throw new TypeError("Argument must be a number");var r=i(t);return void 0!==e?"string"===typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},s.allocUnsafe=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return i(t)},s.allocUnsafeSlow=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},"06cf":function(t,e,n){var r=n("83ab"),i=n("c65b"),o=n("d1e7"),s=n("5c6c"),a=n("fc6a"),u=n("a04b"),c=n("1a2d"),l=n("0cfb"),h=Object.getOwnPropertyDescriptor;e.f=r?h:function(t,e){if(t=a(t),e=u(e),l)try{return h(t,e)}catch(n){}if(c(t,e))return s(!i(o.f,t,e),t[e])}},"0721":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return e}))},"0774":function(t,e,n){const r=n("42a71"),i="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";t.exports=r(i)},"079e":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(t,e){return"元"===e[1]?1:parseInt(e[1]||t,10)},months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(t){return"午後"===t},meridiem:function(t,e,n){return t<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(t){return t.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(t){return this.week()!==t.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(t,e){switch(e){case"y":return 1===t?"元年":t+"年";case"d":case"D":case"DDD":return t+"日";default:return t}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}});return e}))},"07f2":function(t,e,n){"use strict";var r=n("c3c0"),i=n("6eed");function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(o,i),t.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")}},"07fa":function(t,e,n){var r=n("50c4");t.exports=function(t){return r(t.length)}},"0872":function(t,e,n){class r{constructor(t,e){if(e=s(e),t instanceof r)return t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease?t:new r(t.raw,e);if(t instanceof a)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease,this.raw=t,this.set=t.split("||").map(t=>this.parseRange(t.trim())).filter(t=>t.length),!this.set.length)throw new TypeError("Invalid SemVer Range: "+t);if(this.set.length>1){const t=this.set[0];if(this.set=this.set.filter(t=>!m(t[0])),0===this.set.length)this.set=[t];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&g(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map(t=>t.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(t){t=t.trim();const e=Object.keys(this.options).join(","),n=`parseRange:${e}:${t}`,r=o.get(n);if(r)return r;const i=this.options.loose,s=i?l[h.HYPHENRANGELOOSE]:l[h.HYPHENRANGE];t=t.replace(s,D(this.options.includePrerelease)),u("hyphen replace",t),t=t.replace(l[h.COMPARATORTRIM],d),u("comparator trim",t),t=t.replace(l[h.TILDETRIM],f),t=t.replace(l[h.CARETTRIM],p),t=t.split(/\s+/).join(" ");let c=t.split(" ").map(t=>b(t,this.options)).join(" ").split(/\s+/).map(t=>L(t,this.options));i&&(c=c.filter(t=>(u("loose invalid filter",t,this.options),!!t.match(l[h.COMPARATORLOOSE])))),u("range list",c);const g=new Map,y=c.map(t=>new a(t,this.options));for(const o of y){if(m(o))return[o];g.set(o.value,o)}g.size>1&&g.has("")&&g.delete("");const v=[...g.values()];return o.set(n,v),v}intersects(t,e){if(!(t instanceof r))throw new TypeError("a Range is required");return this.set.some(n=>y(n,e)&&t.set.some(t=>y(t,e)&&n.every(n=>t.every(t=>n.intersects(t,e)))))}test(t){if(!t)return!1;if("string"===typeof t)try{t=new c(t,this.options)}catch(e){return!1}for(let n=0;n"<0.0.0-0"===t.value,g=t=>""===t.value,y=(t,e)=>{let n=!0;const r=t.slice();let i=r.pop();while(n&&r.length)n=r.every(t=>i.intersects(t,e)),i=r.pop();return n},b=(t,e)=>(u("comp",t,e),t=M(t,e),u("caret",t),t=_(t,e),u("tildes",t),t=A(t,e),u("xrange",t),t=E(t,e),u("stars",t),t),v=t=>!t||"x"===t.toLowerCase()||"*"===t,_=(t,e)=>t.trim().split(/\s+/).map(t=>w(t,e)).join(" "),w=(t,e)=>{const n=e.loose?l[h.TILDELOOSE]:l[h.TILDE];return t.replace(n,(e,n,r,i,o)=>{let s;return u("tilde",t,e,n,r,i,o),v(n)?s="":v(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:v(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:o?(u("replaceTilde pr",o),s=`>=${n}.${r}.${i}-${o} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,u("tilde return",s),s})},M=(t,e)=>t.trim().split(/\s+/).map(t=>S(t,e)).join(" "),S=(t,e)=>{u("caret",t,e);const n=e.loose?l[h.CARETLOOSE]:l[h.CARET],r=e.includePrerelease?"-0":"";return t.replace(n,(e,n,i,o,s)=>{let a;return u("caret",t,e,n,i,o,s),v(n)?a="":v(i)?a=`>=${n}.0.0${r} <${+n+1}.0.0-0`:v(o)?a="0"===n?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(u("replaceCaret pr",s),a="0"===n?"0"===i?`>=${n}.${i}.${o}-${s} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o}-${s} <${+n+1}.0.0-0`):(u("no pr"),a="0"===n?"0"===i?`>=${n}.${i}.${o}${r} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o} <${+n+1}.0.0-0`),u("caret return",a),a})},A=(t,e)=>(u("replaceXRanges",t,e),t.split(/\s+/).map(t=>k(t,e)).join(" ")),k=(t,e)=>{t=t.trim();const n=e.loose?l[h.XRANGELOOSE]:l[h.XRANGE];return t.replace(n,(n,r,i,o,s,a)=>{u("xRange",t,n,r,i,o,s,a);const c=v(i),l=c||v(o),h=l||v(s),d=h;return"="===r&&d&&(r=""),a=e.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&d?(l&&(o=0),s=0,">"===r?(r=">=",l?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",l?i=+i+1:o=+o+1),"<"===r&&(a="-0"),n=`${r+i}.${o}.${s}${a}`):l?n=`>=${i}.0.0${a} <${+i+1}.0.0-0`:h&&(n=`>=${i}.${o}.0${a} <${i}.${+o+1}.0-0`),u("xRange return",n),n})},E=(t,e)=>(u("replaceStars",t,e),t.trim().replace(l[h.STAR],"")),L=(t,e)=>(u("replaceGTE0",t,e),t.trim().replace(l[e.includePrerelease?h.GTE0PRE:h.GTE0],"")),D=t=>(e,n,r,i,o,s,a,u,c,l,h,d,f)=>(n=v(r)?"":v(i)?`>=${r}.0.0${t?"-0":""}`:v(o)?`>=${r}.${i}.0${t?"-0":""}`:s?">="+n:`>=${n}${t?"-0":""}`,u=v(c)?"":v(l)?`<${+c+1}.0.0-0`:v(h)?`<${c}.${+l+1}.0-0`:d?`<=${c}.${l}.${h}-${d}`:t?`<${c}.${l}.${+h+1}-0`:"<="+u,`${n} ${u}`.trim()),T=(t,e,n)=>{for(let r=0;r0){const r=t[n].semver;if(r.major===e.major&&r.minor===e.minor&&r.patch===e.patch)return!0}return!1}return!0}},"087f":function(t,e,n){var r=n("3fb5"),i=n("b672"),o=n("8707").Buffer,s=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function u(){this.init(),this._w=a,i.call(this,64,56)}function c(t){return t<<5|t>>>27}function l(t){return t<<30|t>>>2}function h(t,e,n,r){return 0===t?e&n|~e&r:2===t?e&n|e&r|n&r:e^n^r}r(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(t){for(var e=this._w,n=0|this._a,r=0|this._b,i=0|this._c,o=0|this._d,a=0|this._e,u=0;u<16;++u)e[u]=t.readInt32BE(4*u);for(;u<80;++u)e[u]=e[u-3]^e[u-8]^e[u-14]^e[u-16];for(var d=0;d<80;++d){var f=~~(d/20),p=c(n)+h(f,r,i,o)+a+e[d]+s[f]|0;a=o,o=i,i=l(r),r=n,n=p}this._a=n+this._a|0,this._b=r+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=a+this._e|0},u.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=u},"08f1":function(t,e,n){"use strict";(function(e){var r=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=c;var i=n("cdc0"),o=n("8d8c");n("3fb5")(c,i);for(var s=r(o.prototype),a=0;aclearInterval(r)),"loading"===document.readyState&&(document.addEventListener("DOMContentLoaded",n,{once:!0}),e.push(()=>document.removeEventListener("DOMContentLoaded",n))),"complete"!==document.readyState&&(window.addEventListener("load",n,{once:!0}),e.push(()=>window.removeEventListener("load",n))),n()}class c extends Error{constructor(t,e){super(t),this.error=e}}class l extends c{constructor(){super(...arguments),this.name="WalletNotReadyError"}}class h extends c{constructor(){super(...arguments),this.name="WalletLoadError"}}class d extends c{constructor(){super(...arguments),this.name="WalletConfigError"}}class f extends c{constructor(){super(...arguments),this.name="WalletConnectionError"}}class p extends c{constructor(){super(...arguments),this.name="WalletDisconnectedError"}}class m extends c{constructor(){super(...arguments),this.name="WalletDisconnectionError"}}class g extends c{constructor(){super(...arguments),this.name="WalletAccountError"}}class y extends c{constructor(){super(...arguments),this.name="WalletPublicKeyError"}}class b extends c{constructor(){super(...arguments),this.name="WalletKeypairError"}}class v extends c{constructor(){super(...arguments),this.name="WalletNotConnectedError"}}class _ extends c{constructor(){super(...arguments),this.name="WalletSendTransactionError"}}class w extends c{constructor(){super(...arguments),this.name="WalletSignMessageError"}}class M extends c{constructor(){super(...arguments),this.name="WalletSignTransactionError"}}class S extends c{constructor(){super(...arguments),this.name="WalletTimeoutError"}}class A extends c{constructor(){super(...arguments),this.name="WalletWindowBlockedError"}}class k extends c{constructor(){super(...arguments),this.name="WalletWindowClosedError"}}class E extends a{async sendTransaction(t,e,n={}){let r=!0;try{try{t.feePayer=t.feePayer||this.publicKey||void 0,t.recentBlockhash=t.recentBlockhash||(await e.getRecentBlockhash("finalized")).blockhash;const{signers:r,...i}=n;(null===r||void 0===r?void 0:r.length)&&t.partialSign(...r),t=await this.signTransaction(t);const o=t.serialize();return await e.sendRawTransaction(o,i)}catch(i){if(i instanceof c)throw r=!1,i;throw new _(null===i||void 0===i?void 0:i.message,i)}}catch(i){throw r&&this.emit("error",i),i}}}class L extends E{}(function(t){t["Mainnet"]="mainnet-beta",t["Testnet"]="testnet",t["Devnet"]="devnet"})(i||(i={}))},"0a3c":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,o=t.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,r){return t?/-MMM-/.test(r)?n[t.month()]:e[t.month()]:e},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return o}))},"0a84":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}});return e}))},"0a9d":function(t,e,n){const r=n("61dc"),i=(t,e,n)=>r(t,e,n)<=0;t.exports=i},"0ae3":function(t,e,n){"use strict";t.exports=i;var r=n("09dc");function i(t){if(!(this instanceof i))return new i(t);r.call(this,t)}n("3fb5")(i,r),i.prototype._transform=function(t,e,n){n(null,t)}},"0b47":function(t,e,n){const r=n("c2a4"),i=(t,e,n)=>{const i=new r(t,n),o=new r(e,n);return i.compare(o)||i.compareBuild(o)};t.exports=i},"0be8":function(t,e){e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}},"0c30":function(t,e,n){"use strict";(function(t){var r=this&&this.__values||function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{while((void 0===e||e-- >0)&&!(r=o.next()).done)s.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.bufArrToArr=e.arrToBufArr=e.validateNoLeadingZeroes=e.baToJSON=e.toUtf8=e.addHexPrefix=e.toUnsigned=e.fromSigned=e.bufferToHex=e.bufferToInt=e.toBuffer=e.unpadHexString=e.unpadArray=e.unpadBuffer=e.setLengthRight=e.setLengthLeft=e.zeros=e.intToBuffer=e.intToHex=void 0;var o=n("ce43"),s=n("b332"),a=n("29b1"),u=function(t){if(!Number.isSafeInteger(t)||t<0)throw new Error("Received an invalid integer type: ".concat(t));return"0x".concat(t.toString(16))};e.intToHex=u;var c=function(n){var r=(0,e.intToHex)(n);return t.from((0,s.padToEven)(r.slice(2)),"hex")};e.intToBuffer=c;var l=function(e){return t.allocUnsafe(e).fill(0)};e.zeros=l;var h=function(t,n,r){var i=(0,e.zeros)(n);return r?t.length0&&"0"===e.toString())t=t.slice(1),e=t[0];return t},m=function(t){return(0,a.assertIsBuffer)(t),p(t)};e.unpadBuffer=m;var g=function(t){return(0,a.assertIsArray)(t),p(t)};e.unpadArray=g;var y=function(t){return(0,a.assertIsHexString)(t),t=(0,s.stripHexPrefix)(t),p(t)};e.unpadHexString=y;var b=function(n){if(null===n||void 0===n)return t.allocUnsafe(0);if(t.isBuffer(n))return t.from(n);if(Array.isArray(n)||n instanceof Uint8Array)return t.from(n);if("string"===typeof n){if(!(0,s.isHexString)(n))throw new Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: ".concat(n));return t.from((0,s.padToEven)((0,s.stripHexPrefix)(n)),"hex")}if("number"===typeof n)return(0,e.intToBuffer)(n);if(o.BN.isBN(n)){if(n.isNeg())throw new Error("Cannot convert negative BN to buffer. Given: ".concat(n));return n.toArrayLike(t)}if(n.toArray)return t.from(n.toArray());if(n.toBuffer)return t.from(n.toBuffer());throw new Error("invalid type")};e.toBuffer=b;var v=function(t){return new o.BN((0,e.toBuffer)(t)).toNumber()};e.bufferToInt=v;var _=function(t){return t=(0,e.toBuffer)(t),"0x"+t.toString("hex")};e.bufferToHex=_;var w=function(t){return new o.BN(t).fromTwos(256)};e.fromSigned=w;var M=function(e){return t.from(e.toTwos(256).toArray())};e.toUnsigned=M;var S=function(t){return"string"!==typeof t||(0,s.isHexPrefixed)(t)?t:"0x"+t};e.addHexPrefix=S;var A=function(e){var n=/^(00)+|(00)+$/g;if(e=(0,s.stripHexPrefix)(e),e.length%2!==0)throw new Error("Invalid non-even hex string input for toUtf8() provided");var r=t.from(e.replace(n,""),"hex");return r.toString("utf8")};e.toUtf8=A;var k=function(n){if(t.isBuffer(n))return"0x".concat(n.toString("hex"));if(n instanceof Array){for(var r=[],i=0;i0&&0===c[0])throw new Error("".concat(u," cannot have leading zeroes, received: ").concat(c.toString("hex")))}}catch(l){e={error:l}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}};function L(e){return Array.isArray(e)?e.map((function(t){return L(t)})):t.from(e)}function D(t){return Array.isArray(t)?t.map((function(t){return D(t)})):Uint8Array.from(null!==t&&void 0!==t?t:[])}e.validateNoLeadingZeroes=E,e.arrToBufArr=L,e.bufArrToArr=D}).call(this,n("b639").Buffer)},"0caa":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration function e(t,e,n,r){var i={s:["thoddea sekondamni","thodde sekond"],ss:[t+" sekondamni",t+" sekond"],m:["eka mintan","ek minut"],mm:[t+" mintamni",t+" mintam"],h:["eka voran","ek vor"],hh:[t+" voramni",t+" voram"],d:["eka disan","ek dis"],dd:[t+" disamni",t+" dis"],M:["eka mhoinean","ek mhoino"],MM:[t+" mhoineamni",t+" mhoine"],y:["eka vorsan","ek voros"],yy:[t+" vorsamni",t+" vorsam"]};return r?i[n][0]:i[n][1]}var n=t.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(t,e){switch(e){case"D":return t+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return t}},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(t,e){return 12===t&&(t=0),"rati"===e?t<4?t:t+12:"sokallim"===e?t:"donparam"===e?t>12?t:t+12:"sanje"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"rati":t<12?"sokallim":t<16?"donparam":t<20?"sanje":"rati"}});return n}))},"0cbb":function(t,e,n){"use strict";var r,i=e,o=n("7d92"),s=n("4136"),a=n("f3a3"),u=a.assert;function c(t){"short"===t.type?this.curve=new s.short(t):"edwards"===t.type?this.curve=new s.edwards(t):this.curve=new s.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,u(this.g.validate(),"Invalid curve"),u(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function l(t,e){Object.defineProperty(i,t,{configurable:!0,enumerable:!0,get:function(){var n=new c(e);return Object.defineProperty(i,t,{configurable:!0,enumerable:!0,value:n}),n}})}i.PresetCurve=c,l("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:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),l("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:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),l("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:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),l("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:o.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"]}),l("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:o.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"]}),l("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),l("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:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=n("409b")}catch(h){r=void 0}l("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:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},"0cfb":function(t,e,n){var r=n("83ab"),i=n("d039"),o=n("cc12");t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d26":function(t,e,n){const{MAX_SAFE_COMPONENT_LENGTH:r}=n("11a3"),i=n("0f35");e=t.exports={};const o=e.re=[],s=e.src=[],a=e.t={};let u=0;const c=(t,e,n)=>{const r=u++;i(t,r,e),a[t]=r,s[r]=e,o[r]=new RegExp(e,n?"g":void 0)};c("NUMERICIDENTIFIER","0|[1-9]\\d*"),c("NUMERICIDENTIFIERLOOSE","[0-9]+"),c("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),c("MAINVERSION",`(${s[a.NUMERICIDENTIFIER]})\\.(${s[a.NUMERICIDENTIFIER]})\\.(${s[a.NUMERICIDENTIFIER]})`),c("MAINVERSIONLOOSE",`(${s[a.NUMERICIDENTIFIERLOOSE]})\\.(${s[a.NUMERICIDENTIFIERLOOSE]})\\.(${s[a.NUMERICIDENTIFIERLOOSE]})`),c("PRERELEASEIDENTIFIER",`(?:${s[a.NUMERICIDENTIFIER]}|${s[a.NONNUMERICIDENTIFIER]})`),c("PRERELEASEIDENTIFIERLOOSE",`(?:${s[a.NUMERICIDENTIFIERLOOSE]}|${s[a.NONNUMERICIDENTIFIER]})`),c("PRERELEASE",`(?:-(${s[a.PRERELEASEIDENTIFIER]}(?:\\.${s[a.PRERELEASEIDENTIFIER]})*))`),c("PRERELEASELOOSE",`(?:-?(${s[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[a.PRERELEASEIDENTIFIERLOOSE]})*))`),c("BUILDIDENTIFIER","[0-9A-Za-z-]+"),c("BUILD",`(?:\\+(${s[a.BUILDIDENTIFIER]}(?:\\.${s[a.BUILDIDENTIFIER]})*))`),c("FULLPLAIN",`v?${s[a.MAINVERSION]}${s[a.PRERELEASE]}?${s[a.BUILD]}?`),c("FULL",`^${s[a.FULLPLAIN]}$`),c("LOOSEPLAIN",`[v=\\s]*${s[a.MAINVERSIONLOOSE]}${s[a.PRERELEASELOOSE]}?${s[a.BUILD]}?`),c("LOOSE",`^${s[a.LOOSEPLAIN]}$`),c("GTLT","((?:<|>)?=?)"),c("XRANGEIDENTIFIERLOOSE",s[a.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),c("XRANGEIDENTIFIER",s[a.NUMERICIDENTIFIER]+"|x|X|\\*"),c("XRANGEPLAIN",`[v=\\s]*(${s[a.XRANGEIDENTIFIER]})(?:\\.(${s[a.XRANGEIDENTIFIER]})(?:\\.(${s[a.XRANGEIDENTIFIER]})(?:${s[a.PRERELEASE]})?${s[a.BUILD]}?)?)?`),c("XRANGEPLAINLOOSE",`[v=\\s]*(${s[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[a.XRANGEIDENTIFIERLOOSE]})(?:${s[a.PRERELEASELOOSE]})?${s[a.BUILD]}?)?)?`),c("XRANGE",`^${s[a.GTLT]}\\s*${s[a.XRANGEPLAIN]}$`),c("XRANGELOOSE",`^${s[a.GTLT]}\\s*${s[a.XRANGEPLAINLOOSE]}$`),c("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),c("COERCERTL",s[a.COERCE],!0),c("LONETILDE","(?:~>?)"),c("TILDETRIM",`(\\s*)${s[a.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",c("TILDE",`^${s[a.LONETILDE]}${s[a.XRANGEPLAIN]}$`),c("TILDELOOSE",`^${s[a.LONETILDE]}${s[a.XRANGEPLAINLOOSE]}$`),c("LONECARET","(?:\\^)"),c("CARETTRIM",`(\\s*)${s[a.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",c("CARET",`^${s[a.LONECARET]}${s[a.XRANGEPLAIN]}$`),c("CARETLOOSE",`^${s[a.LONECARET]}${s[a.XRANGEPLAINLOOSE]}$`),c("COMPARATORLOOSE",`^${s[a.GTLT]}\\s*(${s[a.LOOSEPLAIN]})$|^$`),c("COMPARATOR",`^${s[a.GTLT]}\\s*(${s[a.FULLPLAIN]})$|^$`),c("COMPARATORTRIM",`(\\s*)${s[a.GTLT]}\\s*(${s[a.LOOSEPLAIN]}|${s[a.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",c("HYPHENRANGE",`^\\s*(${s[a.XRANGEPLAIN]})\\s+-\\s+(${s[a.XRANGEPLAIN]})\\s*$`),c("HYPHENRANGELOOSE",`^\\s*(${s[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[a.XRANGEPLAINLOOSE]})\\s*$`),c("STAR","(<|>)?=?\\s*\\*"),c("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),c("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},"0d51":function(t,e){var n=String;t.exports=function(t){try{return n(t)}catch(e){return"Object"}}},"0da4":function(t,e,n){"use strict";var r=n("da3e"),i=n("3fb5"),o={};function s(t){r.equal(t.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e=100?100:null;return t+(e[r]||e[i]||e[o])}},week:{dow:1,doy:7}});return n}))},"0f14":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return e}))},"0f2c":function(t,e,n){var r=n("2aee"),i=n("f460"),o=n("83d5"),s=n("0106"),a=n("a958"),u=n("98e6"),c=n("52917"),l=n("8707").Buffer;function h(t,e){var n=t.modulus.byteLength(),r=u("sha1").update(l.alloc(0)).digest(),s=r.length;if(0!==e[0])throw new Error("decryption error");var a=e.slice(1,s+1),c=e.slice(s+1),h=o(a,i(c,s)),d=o(c,i(h,n-s-1));if(f(r,d.slice(0,s)))throw new Error("decryption error");var p=s;while(0===d[p])p++;if(1!==d[p++])throw new Error("decryption error");return d.slice(p)}function d(t,e,n){var r=e.slice(0,2),i=2,o=0;while(0!==e[i++])if(i>=e.length){o++;break}var s=e.slice(2,i-1);if(("0002"!==r.toString("hex")&&!n||"0001"!==r.toString("hex")&&n)&&o++,s.length<8&&o++,o)throw new Error("decryption error");return e.slice(i)}function f(t,e){t=l.from(t),e=l.from(e);var n=0,r=t.length;t.length!==e.length&&(n++,r=Math.min(t.length,e.length));var i=-1;while(++if||new s(e).cmp(u.modulus)>=0)throw new Error("decryption error");o=n?c(new s(e),u):a(e,u);var p=l.alloc(f-o.length);if(o=l.concat([p,o],f),4===i)return h(u,o);if(1===i)return d(u,o,n);if(3===i)return o;throw new Error("unknown padding")}},"0f35":function(t,e,n){(function(e){const n="object"===typeof e&&Object({NODE_ENV:"production",VUE_APP_ADMIN_CREATE_RAFFLE:"https://sapi.solsteads.com/shop/admin/create/raffle/",VUE_APP_ADMIN_CREATE_SHOP_ITEM:"https://sapi.solsteads.com/shop/admin/create/item/",VUE_APP_ADMIN_MODIFY_RAFFLE:"https://sapi.solsteads.com/shop/admin/modify/raffle/",VUE_APP_ADMIN_MODIFY_SHOP_ITEM:"https://sapi.solsteads.com/shop/admin/modify/item/",VUE_APP_ADMIN_RAFFLE_WINNERS:"https://sapi.solsteads.com/shop/admin/winners/",VUE_APP_ADMIN_TRANSACTIONS:"https://sapi.solsteads.com/shop/admin/transactions/",VUE_APP_ALL_RAFFLES:"https://sapi.solsteads.com/shop/raffles/all",VUE_APP_ALL_SHOP_ITEMS:"https://sapi.solsteads.com/shop/items/all",VUE_APP_DISCORD_VERIFY:"https://discord.com/api/oauth2/authorize?client_id=1003713742447583275&redirect_uri=https%3A%2F%2Fsapi.solsteads.com%2Fusers%2Fdiscord%2Fverify&response_type=code&scope=identify",VUE_APP_GET_AUTH_TRANSACTION:"https://sapi.solsteads.com/users/transaction_auth/",VUE_APP_GET_BALANCE:"https://sapi.solsteads.com/users/balance/",VUE_APP_GET_JWT:"https://sapi.solsteads.com/users/jwt/get/",VUE_APP_GET_RAFFLE_INFO:"https://sapi.solsteads.com/shop/raffle/info/",VUE_APP_GET_TICKET:"https://sapi.solsteads.com/shop/ticket/",VUE_APP_GET_TRANSACTIONS:"https://sapi.solsteads.com/users/transactions/",VUE_APP_GET_WALLET_TICKET_COUNT:"https://sapi.solsteads.com/shop/raffle/tickets/",VUE_APP_GET_WON_RAFFLES:"https://sapi.solsteads.com/users/won/",VUE_APP_PUBLIC_INFO:"https://sapi.solsteads.com/users/info/",VUE_APP_PURCHASE:"https://sapi.solsteads.com/shop/purchase/",VUE_APP_RPC:"https://solana-api.projectserum.com",VUE_APP_TWITTER_VERIFY:"https://worker.solsteads.com/users/twitter/oauth",VUE_APP_USER_FRESH:"https://sapi.solsteads.com/users/fresh/",BASE_URL:"/"})&&Object({NODE_ENV:"production",VUE_APP_ADMIN_CREATE_RAFFLE:"https://sapi.solsteads.com/shop/admin/create/raffle/",VUE_APP_ADMIN_CREATE_SHOP_ITEM:"https://sapi.solsteads.com/shop/admin/create/item/",VUE_APP_ADMIN_MODIFY_RAFFLE:"https://sapi.solsteads.com/shop/admin/modify/raffle/",VUE_APP_ADMIN_MODIFY_SHOP_ITEM:"https://sapi.solsteads.com/shop/admin/modify/item/",VUE_APP_ADMIN_RAFFLE_WINNERS:"https://sapi.solsteads.com/shop/admin/winners/",VUE_APP_ADMIN_TRANSACTIONS:"https://sapi.solsteads.com/shop/admin/transactions/",VUE_APP_ALL_RAFFLES:"https://sapi.solsteads.com/shop/raffles/all",VUE_APP_ALL_SHOP_ITEMS:"https://sapi.solsteads.com/shop/items/all",VUE_APP_DISCORD_VERIFY:"https://discord.com/api/oauth2/authorize?client_id=1003713742447583275&redirect_uri=https%3A%2F%2Fsapi.solsteads.com%2Fusers%2Fdiscord%2Fverify&response_type=code&scope=identify",VUE_APP_GET_AUTH_TRANSACTION:"https://sapi.solsteads.com/users/transaction_auth/",VUE_APP_GET_BALANCE:"https://sapi.solsteads.com/users/balance/",VUE_APP_GET_JWT:"https://sapi.solsteads.com/users/jwt/get/",VUE_APP_GET_RAFFLE_INFO:"https://sapi.solsteads.com/shop/raffle/info/",VUE_APP_GET_TICKET:"https://sapi.solsteads.com/shop/ticket/",VUE_APP_GET_TRANSACTIONS:"https://sapi.solsteads.com/users/transactions/",VUE_APP_GET_WALLET_TICKET_COUNT:"https://sapi.solsteads.com/shop/raffle/tickets/",VUE_APP_GET_WON_RAFFLES:"https://sapi.solsteads.com/users/won/",VUE_APP_PUBLIC_INFO:"https://sapi.solsteads.com/users/info/",VUE_APP_PURCHASE:"https://sapi.solsteads.com/shop/purchase/",VUE_APP_RPC:"https://solana-api.projectserum.com",VUE_APP_TWITTER_VERIFY:"https://worker.solsteads.com/users/twitter/oauth",VUE_APP_USER_FRESH:"https://sapi.solsteads.com/users/fresh/",BASE_URL:"/"}).NODE_DEBUG&&/\bsemver\b/i.test(Object({NODE_ENV:"production",VUE_APP_ADMIN_CREATE_RAFFLE:"https://sapi.solsteads.com/shop/admin/create/raffle/",VUE_APP_ADMIN_CREATE_SHOP_ITEM:"https://sapi.solsteads.com/shop/admin/create/item/",VUE_APP_ADMIN_MODIFY_RAFFLE:"https://sapi.solsteads.com/shop/admin/modify/raffle/",VUE_APP_ADMIN_MODIFY_SHOP_ITEM:"https://sapi.solsteads.com/shop/admin/modify/item/",VUE_APP_ADMIN_RAFFLE_WINNERS:"https://sapi.solsteads.com/shop/admin/winners/",VUE_APP_ADMIN_TRANSACTIONS:"https://sapi.solsteads.com/shop/admin/transactions/",VUE_APP_ALL_RAFFLES:"https://sapi.solsteads.com/shop/raffles/all",VUE_APP_ALL_SHOP_ITEMS:"https://sapi.solsteads.com/shop/items/all",VUE_APP_DISCORD_VERIFY:"https://discord.com/api/oauth2/authorize?client_id=1003713742447583275&redirect_uri=https%3A%2F%2Fsapi.solsteads.com%2Fusers%2Fdiscord%2Fverify&response_type=code&scope=identify",VUE_APP_GET_AUTH_TRANSACTION:"https://sapi.solsteads.com/users/transaction_auth/",VUE_APP_GET_BALANCE:"https://sapi.solsteads.com/users/balance/",VUE_APP_GET_JWT:"https://sapi.solsteads.com/users/jwt/get/",VUE_APP_GET_RAFFLE_INFO:"https://sapi.solsteads.com/shop/raffle/info/",VUE_APP_GET_TICKET:"https://sapi.solsteads.com/shop/ticket/",VUE_APP_GET_TRANSACTIONS:"https://sapi.solsteads.com/users/transactions/",VUE_APP_GET_WALLET_TICKET_COUNT:"https://sapi.solsteads.com/shop/raffle/tickets/",VUE_APP_GET_WON_RAFFLES:"https://sapi.solsteads.com/users/won/",VUE_APP_PUBLIC_INFO:"https://sapi.solsteads.com/users/info/",VUE_APP_PURCHASE:"https://sapi.solsteads.com/shop/purchase/",VUE_APP_RPC:"https://solana-api.projectserum.com",VUE_APP_TWITTER_VERIFY:"https://worker.solsteads.com/users/twitter/oauth",VUE_APP_USER_FRESH:"https://sapi.solsteads.com/users/fresh/",BASE_URL:"/"}).NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};t.exports=n}).call(this,n("4362"))},"0f38":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(t){return t},week:{dow:1,doy:4}});return e}))},"0fa3":function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function s(t){try{u(r.next(t))}catch(e){o(e)}}function a(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(s,a)}u((r=r.apply(t,e||[])).next())}))},i=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);io)throw new RangeError("requested too many random bytes");var n=a.allocUnsafe(t);if(t>0)if(t>i)for(var s=0;s=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),n=0;n>>0,h=new Uint8Array(c);while(o!==s){for(var d=e[o],f=0,p=c-1;(0!==d||f>>0,h[p]=d%a>>>0,d=d/a>>>0;if(0!==d)throw new Error("Non-zero carry");i=f,o++}var m=c-i;while(m!==c&&0===h[m])m++;for(var g=u.repeat(n);m>>0,l=new Uint8Array(s);while(t[n]){var h=e[t.charCodeAt(n)];if(255===h)return;for(var d=0,f=s-1;(0!==h||d>>0,l[f]=h%256>>>0,h=h/256>>>0;if(0!==h)throw new Error("Non-zero carry");o=d,n++}var p=s-o;while(p!==s&&0===l[p])p++;var m=r.allocUnsafe(i+(s-p));m.fill(0,0,i);var g=i;while(p!==s)m[g++]=l[p++];return m}function f(t){var e=d(t);if(e)return e;throw new Error("Non-base"+a+" character")}return{encode:h,decodeUnsafe:d,decode:f}}t.exports=i},"136e":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=f;var i=r(n("970b")),o=r(n("5bc3")),s=r(n("ed6d")),a=r(n("6b58")),u=r(n("36c6")),c=n("ba10");function l(t){var e=h();return function(){var n,r=(0,u["default"])(t);if(e){var i=(0,u["default"])(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(0,a["default"])(this,n)}}function h(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var d=function(t){(0,s["default"])(n,t);var e=l(n);function n(t,r,o){var s;return(0,i["default"])(this,n),s=e.call(this),s.socket=new window.WebSocket(t,o),s.socket.onopen=function(){return s.emit("open")},s.socket.onmessage=function(t){return s.emit("message",t.data)},s.socket.onerror=function(t){return s.emit("error",t)},s.socket.onclose=function(t){s.emit("close",t.code,t.reason)},s}return(0,o["default"])(n,[{key:"send",value:function(t,e,n){var r=n||e;try{this.socket.send(t),r()}catch(i){r(i)}}},{key:"close",value:function(t,e){this.socket.close(t,e)}},{key:"addEventListener",value:function(t,e,n){this.socket.addEventListener(t,e,n)}}]),n}(c.EventEmitter);function f(t,e){return new d(t,e)}},"13d2":function(t,e,n){var r=n("d039"),i=n("1626"),o=n("1a2d"),s=n("83ab"),a=n("5e77").CONFIGURABLE,u=n("8925"),c=n("69f3"),l=c.enforce,h=c.get,d=Object.defineProperty,f=s&&!r((function(){return 8!==d((function(){}),"length",{value:8}).length})),p=String(String).split("String"),m=t.exports=function(t,e,n){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!o(t,"name")||a&&t.name!==e)&&d(t,"name",{value:e,configurable:!0}),f&&n&&o(n,"arity")&&t.length!==n.arity&&d(t,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?s&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(i){}var r=l(t);return o(r,"source")||(r.source=p.join("string"==typeof e?e:"")),t};Function.prototype.toString=m((function(){return i(this)&&h(this).source||u(this)}),"toString")},"13e2":function(t,e,n){"use strict";var r=n("c3c0"),i=n("edc9"),o=n("aa56"),s=r.rotl32,a=r.sum32,u=r.sum32_5,c=o.ft_1,l=i.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(d,l),t.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;r=1&&t%10<=4&&(t%100<10||t%100>=20)?t%10===1?e[0]:e[1]:e[2]},translate:function(t,n,r,i){var o,s=e.words[r];return 1===r.length?"y"===r&&n?"једна година":i||n?s[0]:s[1]:(o=e.correctGrammaticalCase(t,s),"yy"===r&&n&&"годину"===o?t+" година":t+" "+o)}},n=t.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){var t=["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"];return t[this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:e.translate,dd:e.translate,M:e.translate,MM:e.translate,y:e.translate,yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},"144b":function(t,e,n){const r=n("61dc"),i=(t,e,n)=>r(t,e,n)<0;t.exports=i},1545:function(t,e,n){"use strict";e.utils=n("5ee7"),e.Cipher=n("0184"),e.DES=n("4e2b"),e.CBC=n("0da4"),e.EDE=n("1fec")},1626:function(t,e){t.exports=function(t){return"function"==typeof t}},"167b":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(t,e){var n=1===t?"r":2===t?"n":3===t?"r":4===t?"t":"è";return"w"!==e&&"W"!==e||(n="a"),t+n},week:{dow:1,doy:4}});return e}))},"170c":function(t,e,n){"use strict";t.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}},1970:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n("bba9"),e)},"19ea":function(t,e,n){"use strict";(function(e,r){function i(t){var e=this;this.next=null,this.entry=null,this.finish=function(){q(e,t)}}var o;t.exports=D,D.WritableState=L;var s={deprecate:n("b7d1")},a=n("5bbb"),u=n("b639").Buffer,c=e.Uint8Array||function(){};function l(t){return u.from(t)}function h(t){return u.isBuffer(t)||t instanceof c}var d,f=n("493f"),p=n("b9b5"),m=p.getHighWaterMark,g=n("9d8a").codes,y=g.ERR_INVALID_ARG_TYPE,b=g.ERR_METHOD_NOT_IMPLEMENTED,v=g.ERR_MULTIPLE_CALLBACK,_=g.ERR_STREAM_CANNOT_PIPE,w=g.ERR_STREAM_DESTROYED,M=g.ERR_STREAM_NULL_VALUES,S=g.ERR_STREAM_WRITE_AFTER_END,A=g.ERR_UNKNOWN_ENCODING,k=f.errorOrDestroy;function E(){}function L(t,e,r){o=o||n("e666"),t=t||{},"boolean"!==typeof r&&(r=e instanceof o),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=m(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===t.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){C(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function D(t){o=o||n("e666");var e=this instanceof o;if(!e&&!d.call(D,this))return new D(t);this._writableState=new L(t,this,e),this.writable=!0,t&&("function"===typeof t.write&&(this._write=t.write),"function"===typeof t.writev&&(this._writev=t.writev),"function"===typeof t.destroy&&(this._destroy=t.destroy),"function"===typeof t.final&&(this._final=t.final)),a.call(this)}function T(t,e){var n=new S;k(t,n),r.nextTick(e,n)}function O(t,e,n,i){var o;return null===n?o=new M:"string"===typeof n||e.objectMode||(o=new y("chunk",["string","Buffer"],n)),!o||(k(t,o),r.nextTick(i,o),!1)}function x(t,e,n){return t.objectMode||!1===t.decodeStrings||"string"!==typeof e||(e=u.from(e,n)),e}function I(t,e,n,r,i,o){if(!n){var s=x(e,r,i);r!==s&&(n=!0,i="buffer",r=s)}var a=e.objectMode?1:r.length;e.length+=a;var u=e.length-1))throw new A(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(D.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(D.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),D.prototype._write=function(t,e,n){n(new b("_write()"))},D.prototype._writev=null,D.prototype.end=function(t,e,n){var r=this._writableState;return"function"===typeof t?(n=t,t=null,e=null):"function"===typeof e&&(n=e,e=null),null!==t&&void 0!==t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||F(this,r,n),this},Object.defineProperty(D.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(D.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),D.prototype.destroy=f.destroy,D.prototype._undestroy=f.undestroy,D.prototype._destroy=function(t,e){e(t)}}).call(this,n("c8ba"),n("4362"))},"1a2a":function(t,e,n){"use strict";var r=n("3fb5"),i=n("d424"),o=n("6430"),s=n("8707").Buffer,a=n("5a76"),u=n("b5ca"),c=n("69f2"),l=s.alloc(128);function h(t,e){o.call(this,"digest"),"string"===typeof e&&(e=s.from(e));var n="sha512"===t||"sha384"===t?128:64;if(this._alg=t,this._key=e,e.length>n){var r="rmd160"===t?new u:c(t);e=r.update(e).digest()}else e.length{const e=t.data;e&&"mathwallet_internal"===e.origin&&"lockStatusChanged"===e.type&&!e.payload&&this._disconnected()},this._disconnected=()=>{this._wallet&&(window.removeEventListener("message",this._messaged),this._wallet=null,this._publicKey=null,this.emit("error",new i.WalletDisconnectedError),this.emit("disconnect"))},this._connecting=!1,this._wallet=null,this._publicKey=null,this._readyState!==i.WalletReadyState.Unsupported&&(0,i.scopePollingDetectionStrategy)(()=>{var t;return!!(null===(t=window.solana)||void 0===t?void 0:t.isMathWallet)&&(this._readyState=i.WalletReadyState.Installed,this.emit("readyStateChange",this._readyState),!0)})}get publicKey(){return this._publicKey}get connecting(){return this._connecting}get readyState(){return this._readyState}connect(){return r(this,void 0,void 0,(function*(){try{if(this.connected||this.connecting)return;if(this._readyState!==i.WalletReadyState.Installed)throw new i.WalletNotReadyError;this._connecting=!0;const e=window.solana;let n,r;try{n=yield e.getAccount()}catch(t){throw new i.WalletAccountError(null===t||void 0===t?void 0:t.message,t)}try{r=new o.PublicKey(n)}catch(t){throw new i.WalletPublicKeyError(null===t||void 0===t?void 0:t.message,t)}window.addEventListener("message",this._messaged),this._wallet=e,this._publicKey=r,this.emit("connect",r)}catch(t){throw this.emit("error",t),t}finally{this._connecting=!1}}))}disconnect(){return r(this,void 0,void 0,(function*(){this._wallet&&(window.removeEventListener("message",this._messaged),this._wallet=null,this._publicKey=null),this.emit("disconnect")}))}signTransaction(t){return r(this,void 0,void 0,(function*(){try{const n=this._wallet;if(!n)throw new i.WalletNotConnectedError;try{return(yield n.signTransaction(t))||t}catch(e){throw new i.WalletSignTransactionError(null===e||void 0===e?void 0:e.message,e)}}catch(e){throw this.emit("error",e),e}}))}signAllTransactions(t){return r(this,void 0,void 0,(function*(){try{const n=this._wallet;if(!n)throw new i.WalletNotConnectedError;try{return(yield n.signAllTransactions(t))||t}catch(e){throw new i.WalletSignTransactionError(null===e||void 0===e?void 0:e.message,e)}}catch(e){throw this.emit("error",e),e}}))}}e.MathWalletAdapter=s},"1b45":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return e}))},"1c46":function(t,e,n){"use strict";e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=n("11dc"),e.createHash=e.Hash=n("98e6"),e.createHmac=e.Hmac=n("1a2a");var r=n("116d"),i=Object.keys(r),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);e.getHashes=function(){return o};var s=n("a099");e.pbkdf2=s.pbkdf2,e.pbkdf2Sync=s.pbkdf2Sync;var a=n("956a");e.Cipher=a.Cipher,e.createCipher=a.createCipher,e.Cipheriv=a.Cipheriv,e.createCipheriv=a.createCipheriv,e.Decipher=a.Decipher,e.createDecipher=a.createDecipher,e.Decipheriv=a.Decipheriv,e.createDecipheriv=a.createDecipheriv,e.getCiphers=a.getCiphers,e.listCiphers=a.listCiphers;var u=n("00dc");e.DiffieHellmanGroup=u.DiffieHellmanGroup,e.createDiffieHellmanGroup=u.createDiffieHellmanGroup,e.getDiffieHellman=u.getDiffieHellman,e.createDiffieHellman=u.createDiffieHellman,e.DiffieHellman=u.DiffieHellman;var c=n("b692");e.createSign=c.createSign,e.Sign=c.Sign,e.createVerify=c.createVerify,e.Verify=c.Verify,e.createECDH=n("e1d30");var l=n("6442");e.publicEncrypt=l.publicEncrypt,e.privateEncrypt=l.privateEncrypt,e.publicDecrypt=l.publicDecrypt,e.privateDecrypt=l.privateDecrypt;var h=n("75cc");e.randomFill=h.randomFill,e.randomFillSync=h.randomFillSync,e.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},e.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},"1c55":function(t,e,n){(function(r,i){var o; /** * [js-sha3]{@link https://github.com/emn178/js-sha3} * * @version 0.8.0 * @author Chen, Yi-Cyuan [emn178@gmail.com] * @copyright Chen, Yi-Cyuan 2015-2018 * @license MIT */(function(){"use strict";var s="input is invalid type",a="finalize already called",u="object"===typeof window,c=u?window:{};c.JS_SHA3_NO_WINDOW&&(u=!1);var l=!u&&"object"===typeof self,h=!c.JS_SHA3_NO_NODE_JS&&"object"===typeof r&&r.versions&&r.versions.node;h?c=i:l&&(c=self);var d=!c.JS_SHA3_NO_COMMON_JS&&"object"===typeof t&&t.exports,f=n("3c35"),p=!c.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!==typeof ArrayBuffer,m="0123456789abcdef".split(""),g=[31,7936,2031616,520093696],y=[4,1024,262144,67108864],b=[1,256,65536,16777216],v=[6,1536,393216,100663296],_=[0,8,16,24],w=[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],S=[128,256],A=["hex","buffer","arrayBuffer","array","digest"],k={128:168,256:136};!c.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!p||!c.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"===typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});for(var E=function(t,e,n){return function(r){return new F(t,e,t).update(r)[n]()}},L=function(t,e,n){return function(r,i){return new F(t,e,i).update(r)[n]()}},D=function(t,e,n){return function(e,r,i,o){return C["cshake"+t].update(e,r,i,o)[n]()}},T=function(t,e,n){return function(e,r,i,o){return C["kmac"+t].update(e,r,i,o)[n]()}},O=function(t,e,n,r){for(var i=0;i>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var r=0;r<50;++r)this.s[r]=0}function q(t,e,n){F.call(this,t,e,n)}F.prototype.update=function(t){if(this.finalized)throw new Error(a);var e,n=typeof t;if("string"!==n){if("object"!==n)throw new Error(s);if(null===t)throw new Error(s);if(p&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!p||!ArrayBuffer.isView(t)))throw new Error(s);e=!0}var r,i,o=this.blocks,u=this.byteCount,c=t.length,l=this.blockCount,h=0,d=this.s;while(h>2]|=t[h]<<_[3&r++];else for(r=this.start;h>2]|=i<<_[3&r++]:i<2048?(o[r>>2]|=(192|i>>6)<<_[3&r++],o[r>>2]|=(128|63&i)<<_[3&r++]):i<55296||i>=57344?(o[r>>2]|=(224|i>>12)<<_[3&r++],o[r>>2]|=(128|i>>6&63)<<_[3&r++],o[r>>2]|=(128|63&i)<<_[3&r++]):(i=65536+((1023&i)<<10|1023&t.charCodeAt(++h)),o[r>>2]|=(240|i>>18)<<_[3&r++],o[r>>2]|=(128|i>>12&63)<<_[3&r++],o[r>>2]|=(128|i>>6&63)<<_[3&r++],o[r>>2]|=(128|63&i)<<_[3&r++]);if(this.lastByteIndex=r,r>=u){for(this.start=r-u,this.block=o[l],r=0;r>=8,n=255&t;while(n>0)i.unshift(n),t>>=8,n=255&t,++r;return e?i.push(r):i.unshift(r),this.update(i),i.length},F.prototype.encodeString=function(t){var e,n=typeof t;if("string"!==n){if("object"!==n)throw new Error(s);if(null===t)throw new Error(s);if(p&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!p||!ArrayBuffer.isView(t)))throw new Error(s);e=!0}var r=0,i=t.length;if(e)r=i;else for(var o=0;o=57344?r+=3:(a=65536+((1023&a)<<10|1023&t.charCodeAt(++o)),r+=4)}return r+=this.encode(8*r),this.update(t),r},F.prototype.bytepad=function(t,e){for(var n=this.encode(e),r=0;r>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(t[0]=t[n],e=1;e>4&15]+m[15&t]+m[t>>12&15]+m[t>>8&15]+m[t>>20&15]+m[t>>16&15]+m[t>>28&15]+m[t>>24&15];s%e===0&&(V(n),o=0)}return i&&(t=n[o],a+=m[t>>4&15]+m[15&t],i>1&&(a+=m[t>>12&15]+m[t>>8&15]),i>2&&(a+=m[t>>20&15]+m[t>>16&15])),a},F.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,o=0,s=0,a=this.outputBits>>3;t=i?new ArrayBuffer(r+1<<2):new ArrayBuffer(a);var u=new Uint32Array(t);while(s>8&255,u[t+2]=e>>16&255,u[t+3]=e>>24&255;a%n===0&&V(r)}return o&&(t=a<<2,e=r[s],u[t]=255&e,o>1&&(u[t+1]=e>>8&255),o>2&&(u[t+2]=e>>16&255)),u},q.prototype=new F,q.prototype.finalize=function(){return this.encode(this.outputBits,!0),F.prototype.finalize.call(this)};var V=function(t){var e,n,r,i,o,s,a,u,c,l,h,d,f,p,m,g,y,b,v,_,M,S,A,k,E,L,D,T,O,x,I,j,N,P,C,R,Y,B,z,U,W,H,F,q,V,K,G,Q,Z,J,$,X,tt,et,nt,rt,it,ot,st,at,ut,ct,lt;for(r=0;r<48;r+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],o=t[1]^t[11]^t[21]^t[31]^t[41],s=t[2]^t[12]^t[22]^t[32]^t[42],a=t[3]^t[13]^t[23]^t[33]^t[43],u=t[4]^t[14]^t[24]^t[34]^t[44],c=t[5]^t[15]^t[25]^t[35]^t[45],l=t[6]^t[16]^t[26]^t[36]^t[46],h=t[7]^t[17]^t[27]^t[37]^t[47],d=t[8]^t[18]^t[28]^t[38]^t[48],f=t[9]^t[19]^t[29]^t[39]^t[49],e=d^(s<<1|a>>>31),n=f^(a<<1|s>>>31),t[0]^=e,t[1]^=n,t[10]^=e,t[11]^=n,t[20]^=e,t[21]^=n,t[30]^=e,t[31]^=n,t[40]^=e,t[41]^=n,e=i^(u<<1|c>>>31),n=o^(c<<1|u>>>31),t[2]^=e,t[3]^=n,t[12]^=e,t[13]^=n,t[22]^=e,t[23]^=n,t[32]^=e,t[33]^=n,t[42]^=e,t[43]^=n,e=s^(l<<1|h>>>31),n=a^(h<<1|l>>>31),t[4]^=e,t[5]^=n,t[14]^=e,t[15]^=n,t[24]^=e,t[25]^=n,t[34]^=e,t[35]^=n,t[44]^=e,t[45]^=n,e=u^(d<<1|f>>>31),n=c^(f<<1|d>>>31),t[6]^=e,t[7]^=n,t[16]^=e,t[17]^=n,t[26]^=e,t[27]^=n,t[36]^=e,t[37]^=n,t[46]^=e,t[47]^=n,e=l^(i<<1|o>>>31),n=h^(o<<1|i>>>31),t[8]^=e,t[9]^=n,t[18]^=e,t[19]^=n,t[28]^=e,t[29]^=n,t[38]^=e,t[39]^=n,t[48]^=e,t[49]^=n,p=t[0],m=t[1],K=t[11]<<4|t[10]>>>28,G=t[10]<<4|t[11]>>>28,T=t[20]<<3|t[21]>>>29,O=t[21]<<3|t[20]>>>29,at=t[31]<<9|t[30]>>>23,ut=t[30]<<9|t[31]>>>23,H=t[40]<<18|t[41]>>>14,F=t[41]<<18|t[40]>>>14,P=t[2]<<1|t[3]>>>31,C=t[3]<<1|t[2]>>>31,g=t[13]<<12|t[12]>>>20,y=t[12]<<12|t[13]>>>20,Q=t[22]<<10|t[23]>>>22,Z=t[23]<<10|t[22]>>>22,x=t[33]<<13|t[32]>>>19,I=t[32]<<13|t[33]>>>19,ct=t[42]<<2|t[43]>>>30,lt=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,nt=t[4]<<30|t[5]>>>2,R=t[14]<<6|t[15]>>>26,Y=t[15]<<6|t[14]>>>26,b=t[25]<<11|t[24]>>>21,v=t[24]<<11|t[25]>>>21,J=t[34]<<15|t[35]>>>17,$=t[35]<<15|t[34]>>>17,j=t[45]<<29|t[44]>>>3,N=t[44]<<29|t[45]>>>3,k=t[6]<<28|t[7]>>>4,E=t[7]<<28|t[6]>>>4,rt=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,B=t[26]<<25|t[27]>>>7,z=t[27]<<25|t[26]>>>7,_=t[36]<<21|t[37]>>>11,M=t[37]<<21|t[36]>>>11,X=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,q=t[8]<<27|t[9]>>>5,V=t[9]<<27|t[8]>>>5,L=t[18]<<20|t[19]>>>12,D=t[19]<<20|t[18]>>>12,ot=t[29]<<7|t[28]>>>25,st=t[28]<<7|t[29]>>>25,U=t[38]<<8|t[39]>>>24,W=t[39]<<8|t[38]>>>24,S=t[48]<<14|t[49]>>>18,A=t[49]<<14|t[48]>>>18,t[0]=p^~g&b,t[1]=m^~y&v,t[10]=k^~L&T,t[11]=E^~D&O,t[20]=P^~R&B,t[21]=C^~Y&z,t[30]=q^~K&Q,t[31]=V^~G&Z,t[40]=et^~rt&ot,t[41]=nt^~it&st,t[2]=g^~b&_,t[3]=y^~v&M,t[12]=L^~T&x,t[13]=D^~O&I,t[22]=R^~B&U,t[23]=Y^~z&W,t[32]=K^~Q&J,t[33]=G^~Z&$,t[42]=rt^~ot&at,t[43]=it^~st&ut,t[4]=b^~_&S,t[5]=v^~M&A,t[14]=T^~x&j,t[15]=O^~I&N,t[24]=B^~U&H,t[25]=z^~W&F,t[34]=Q^~J&X,t[35]=Z^~$&tt,t[44]=ot^~at&ct,t[45]=st^~ut<,t[6]=_^~S&p,t[7]=M^~A&m,t[16]=x^~j&k,t[17]=I^~N&E,t[26]=U^~H&P,t[27]=W^~F&C,t[36]=J^~X&q,t[37]=$^~tt&V,t[46]=at^~ct&et,t[47]=ut^~lt&nt,t[8]=S^~p&g,t[9]=A^~m&y,t[18]=j^~k&L,t[19]=N^~E&D,t[28]=H^~P&R,t[29]=F^~C&Y,t[38]=X^~q&K,t[39]=tt^~V&G,t[48]=ct^~et&rt,t[49]=lt^~nt&it,t[0]^=w[r],t[1]^=w[r+1]};if(d)t.exports=C;else{for(Y=0;Y=3&&t%100<=10?3:t%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},i=function(t){return function(e,i,o,s){var a=n(e),u=r[t][n(e)];return 2===a&&(u=u[i?0:1]),u.replace(/%d/i,e)}},o=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],s=t.defineLocale("ar-ly",{months:o,monthsShort:o,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(t){return"م"===t},meridiem:function(t,e,n){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},preparse:function(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"،")},week:{dow:6,doy:12}});return s}))},"1d2b":function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(e){this.writable=!1;for(let n=0;n{const n={};if(!a["d"]&&(r.options&&(n.compress=r.options.compress),this.opts.perMessageDeflate)){const r="string"===typeof e?t.byteLength(e):e.length;r{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){"undefined"!==typeof this.ws&&(this.ws.close(),this.ws=null)}uri(){let t=this.query||{};const e=this.opts.secure?"wss":"ws";let n="";this.opts.port&&("wss"===e&&443!==Number(this.opts.port)||"ws"===e&&80!==Number(this.opts.port))&&(n=":"+this.opts.port),this.opts.timestampRequests&&(t[this.opts.timestampParam]=Object(o["a"])()),this.supportsBinary||(t.b64=1);const r=Object(i["b"])(t),s=-1!==this.opts.hostname.indexOf(":");return e+"://"+(s?"["+this.opts.hostname+"]":this.opts.hostname)+n+this.opts.path+(r.length?"?"+r:"")}check(){return!!a["a"]}}}).call(this,n("b639").Buffer)},"1f55":function(t,e,n){"use strict";(function(e){var r;function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n("5291"),s=Symbol("lastResolve"),a=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),l=Symbol("lastPromise"),h=Symbol("handlePromise"),d=Symbol("stream");function f(t,e){return{value:t,done:e}}function p(t){var e=t[s];if(null!==e){var n=t[d].read();null!==n&&(t[l]=null,t[s]=null,t[a]=null,e(f(n,!1)))}}function m(t){e.nextTick(p,t)}function g(t,e){return function(n,r){t.then((function(){e[c]?n(f(void 0,!0)):e[h](n,r)}),r)}}var y=Object.getPrototypeOf((function(){})),b=Object.setPrototypeOf((r={get stream(){return this[d]},next:function(){var t=this,n=this[u];if(null!==n)return Promise.reject(n);if(this[c])return Promise.resolve(f(void 0,!0));if(this[d].destroyed)return new Promise((function(n,r){e.nextTick((function(){t[u]?r(t[u]):n(f(void 0,!0))}))}));var r,i=this[l];if(i)r=new Promise(g(i,this));else{var o=this[d].read();if(null!==o)return Promise.resolve(f(o,!1));r=new Promise(this[h])}return this[l]=r,r}},i(r,Symbol.asyncIterator,(function(){return this})),i(r,"return",(function(){var t=this;return new Promise((function(e,n){t[d].destroy(null,(function(t){t?n(t):e(f(void 0,!0))}))}))})),r),y),v=function(t){var e,n=Object.create(b,(e={},i(e,d,{value:t,writable:!0}),i(e,s,{value:null,writable:!0}),i(e,a,{value:null,writable:!0}),i(e,u,{value:null,writable:!0}),i(e,c,{value:t._readableState.endEmitted,writable:!0}),i(e,h,{value:function(t,e){var r=n[d].read();r?(n[l]=null,n[s]=null,n[a]=null,t(f(r,!1))):(n[s]=t,n[a]=e)},writable:!0}),e));return n[l]=null,o(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=n[a];return null!==e&&(n[l]=null,n[s]=null,n[a]=null,e(t)),void(n[u]=t)}var r=n[s];null!==r&&(n[l]=null,n[s]=null,n[a]=null,r(f(void 0,!0))),n[c]=!0})),t.on("readable",m.bind(null,n)),n};t.exports=v}).call(this,n("4362"))},"1f59":function(t,e,n){const r=n("2ae6"),i=(t,e)=>{const n=r(t,e);return n&&n.prerelease.length?n.prerelease:null};t.exports=i},"1fb5":function(t,e,n){"use strict";e.byteLength=l,e.toByteArray=d,e.fromByteArray=m;for(var r=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=s.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");-1===n&&(n=e);var r=n===e?0:4-n%4;return[n,r]}function l(t){var e=c(t),n=e[0],r=e[1];return 3*(n+r)/4-r}function h(t,e,n){return 3*(e+n)/4-n}function d(t){var e,n,r=c(t),s=r[0],a=r[1],u=new o(h(t,s,a)),l=0,d=a>0?s-4:s;for(n=0;n>16&255,u[l++]=e>>8&255,u[l++]=255&e;return 2===a&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,u[l++]=255&e),1===a&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,u[l++]=e>>8&255,u[l++]=255&e),u}function f(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function p(t,e,n){for(var r,i=[],o=e;ou?u:a+s));return 1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},"1fc1":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration function e(t,e){var n=t.split("_");return e%10===1&&e%100!==11?n[0]:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?n[1]:n[2]}function n(t,n,r){var i={ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:n?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};return"m"===r?n?"хвіліна":"хвіліну":"h"===r?n?"гадзіна":"гадзіну":t+" "+e(i[r],+t)}var r=t.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:n,mm:n,h:n,hh:n,d:"дзень",dd:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(t){return/^(дня|вечара)$/.test(t)},meridiem:function(t,e,n){return t<4?"ночы":t<12?"раніцы":t<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t%10!==2&&t%10!==3||t%100===12||t%100===13?t+"-ы":t+"-і";case"D":return t+"-га";default:return t}},week:{dow:1,doy:7}});return r}))},"1fec":function(t,e,n){"use strict";var r=n("da3e"),i=n("3fb5"),o=n("0184"),s=n("4e2b");function a(t,e){r.equal(e.length,24,"Invalid key length");var n=e.slice(0,8),i=e.slice(8,16),o=e.slice(16,24);this.ciphers="encrypt"===t?[s.create({type:"encrypt",key:n}),s.create({type:"decrypt",key:i}),s.create({type:"encrypt",key:o})]:[s.create({type:"decrypt",key:o}),s.create({type:"encrypt",key:i}),s.create({type:"decrypt",key:n})]}function u(t){o.call(this,t);var e=new a(this.type,this.options.key);this._edeState=e}i(u,o),t.exports=u,u.create=function(t){return new u(t)},u.prototype._update=function(t,e,n,r){var i=this._edeState;i.ciphers[0]._update(t,e,n,r),i.ciphers[1]._update(n,r,n,r),i.ciphers[2]._update(n,r,n,r)},u.prototype._pad=s.prototype._pad,u.prototype._unpad=s.prototype._unpad},"201b":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(t){return t.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,(function(t,e,n){return"ი"===n?e+"ში":e+n+"ში"}))},past:function(t){return/(წამი|წუთი|საათი|დღე|თვე)/.test(t)?t.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(t)?t.replace(/წელი$/,"წლის წინ"):t},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(t){return 0===t?t:1===t?t+"-ლი":t<20||t<=100&&t%20===0||t%100===0?"მე-"+t:t+"-ე"},week:{dow:1,doy:7}});return e}))},2041:function(t,e,n){"use strict";const r=n("910a"),i=Symbol("max"),o=Symbol("length"),s=Symbol("lengthCalculator"),a=Symbol("allowStale"),u=Symbol("maxAge"),c=Symbol("dispose"),l=Symbol("noDisposeOnSet"),h=Symbol("lruList"),d=Symbol("cache"),f=Symbol("updateAgeOnGet"),p=()=>1;class m{constructor(t){if("number"===typeof t&&(t={max:t}),t||(t={}),t.max&&("number"!==typeof t.max||t.max<0))throw new TypeError("max must be a non-negative number");this[i]=t.max||1/0;const e=t.length||p;if(this[s]="function"!==typeof e?p:e,this[a]=t.stale||!1,t.maxAge&&"number"!==typeof t.maxAge)throw new TypeError("maxAge must be a number");this[u]=t.maxAge||0,this[c]=t.dispose,this[l]=t.noDisposeOnSet||!1,this[f]=t.updateAgeOnGet||!1,this.reset()}set max(t){if("number"!==typeof t||t<0)throw new TypeError("max must be a non-negative number");this[i]=t||1/0,b(this)}get max(){return this[i]}set allowStale(t){this[a]=!!t}get allowStale(){return this[a]}set maxAge(t){if("number"!==typeof t)throw new TypeError("maxAge must be a non-negative number");this[u]=t,b(this)}get maxAge(){return this[u]}set lengthCalculator(t){"function"!==typeof t&&(t=p),t!==this[s]&&(this[s]=t,this[o]=0,this[h].forEach(t=>{t.length=this[s](t.value,t.key),this[o]+=t.length})),b(this)}get lengthCalculator(){return this[s]}get length(){return this[o]}get itemCount(){return this[h].length}rforEach(t,e){e=e||this;for(let n=this[h].tail;null!==n;){const r=n.prev;w(this,t,n,e),n=r}}forEach(t,e){e=e||this;for(let n=this[h].head;null!==n;){const r=n.next;w(this,t,n,e),n=r}}keys(){return this[h].toArray().map(t=>t.key)}values(){return this[h].toArray().map(t=>t.value)}reset(){this[c]&&this[h]&&this[h].length&&this[h].forEach(t=>this[c](t.key,t.value)),this[d]=new Map,this[h]=new r,this[o]=0}dump(){return this[h].map(t=>!y(this,t)&&{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[h]}set(t,e,n){if(n=n||this[u],n&&"number"!==typeof n)throw new TypeError("maxAge must be a number");const r=n?Date.now():0,a=this[s](e,t);if(this[d].has(t)){if(a>this[i])return v(this,this[d].get(t)),!1;const s=this[d].get(t),u=s.value;return this[c]&&(this[l]||this[c](t,u.value)),u.now=r,u.maxAge=n,u.value=e,this[o]+=a-u.length,u.length=a,this.get(t),b(this),!0}const f=new _(t,e,a,r,n);return f.length>this[i]?(this[c]&&this[c](t,e),!1):(this[o]+=f.length,this[h].unshift(f),this[d].set(t,this[h].head),b(this),!0)}has(t){if(!this[d].has(t))return!1;const e=this[d].get(t).value;return!y(this,e)}get(t){return g(this,t,!0)}peek(t){return g(this,t,!1)}pop(){const t=this[h].tail;return t?(v(this,t),t.value):null}del(t){v(this,this[d].get(t))}load(t){this.reset();const e=Date.now();for(let n=t.length-1;n>=0;n--){const r=t[n],i=r.e||0;if(0===i)this.set(r.k,r.v);else{const t=i-e;t>0&&this.set(r.k,r.v,t)}}}prune(){this[d].forEach((t,e)=>g(this,e,!1))}}const g=(t,e,n)=>{const r=t[d].get(e);if(r){const e=r.value;if(y(t,e)){if(v(t,r),!t[a])return}else n&&(t[f]&&(r.value.now=Date.now()),t[h].unshiftNode(r));return e.value}},y=(t,e)=>{if(!e||!e.maxAge&&!t[u])return!1;const n=Date.now()-e.now;return e.maxAge?n>e.maxAge:t[u]&&n>t[u]},b=t=>{if(t[o]>t[i])for(let e=t[h].tail;t[o]>t[i]&&null!==e;){const n=e.prev;v(t,e),e=n}},v=(t,e)=>{if(e){const n=e.value;t[c]&&t[c](n.key,n.value),t[o]-=n.length,t[d].delete(n.key),t[h].removeNode(e)}};class _{constructor(t,e,n,r,i){this.key=t,this.value=e,this.length=n,this.now=r,this.maxAge=i||0}}const w=(t,e,n,r)=>{let i=n.value;y(t,i)&&(v(t,n),t[a]||(i=void 0)),i&&e.call(r,i.value,i.key,t)};t.exports=m},"206d":function(t,e,n){(function(e){var r,i,o=n("8707").Buffer,s=n("7d2a"),a=n("9f9d"),u=n("e07b"),c=n("8be6"),l=e.crypto&&e.crypto.subtle,h={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},d=[];function f(t){if(e.process&&!e.process.browser)return Promise.resolve(!1);if(!l||!l.importKey||!l.deriveBits)return Promise.resolve(!1);if(void 0!==d[t])return d[t];r=r||o.alloc(8);var n=m(r,r,10,128,t).then((function(){return!0})).catch((function(){return!1}));return d[t]=n,n}function p(){return i||(i=e.process&&e.process.nextTick?e.process.nextTick:e.queueMicrotask?e.queueMicrotask:e.setImmediate?e.setImmediate:e.setTimeout,i)}function m(t,e,n,r,i){return l.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then((function(t){return l.deriveBits({name:"PBKDF2",salt:e,iterations:n,hash:{name:i}},t,r<<3)})).then((function(t){return o.from(t)}))}function g(t,e){t.then((function(t){p()((function(){e(null,t)}))}),(function(t){p()((function(){e(t)}))}))}t.exports=function(t,n,r,i,o,l){"function"===typeof o&&(l=o,o=void 0),o=o||"sha1";var d=h[o.toLowerCase()];if(d&&"function"===typeof e.Promise){if(s(r,i),t=c(t,a,"Password"),n=c(n,a,"Salt"),"function"!==typeof l)throw new Error("No callback provided to pbkdf2");g(f(d).then((function(e){return e?m(t,n,r,i,d):u(t,n,r,i,o)})),l)}else p()((function(){var e;try{e=u(t,n,r,i,o)}catch(s){return l(s)}l(null,e)}))}}).call(this,n("c8ba"))},"20a4":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(()=>"undefined"!==typeof self?self:"undefined"!==typeof window?window:Function("return this")())()},"20f6":function(t,e,n){"use strict";const r=e;r.der=n("cfbd"),r.pem=n("8df7")},2137:function(t,e,n){"use strict";var r=n("c3c0"),i=n("da3e");function o(t,e,n){if(!(this instanceof o))return new o(t,e,n);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(e,n))}t.exports=o,o.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),i(t.length<=this.blockSize);for(var e=t.length;e0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";var e=this.head,n=""+e.data;while(e=e.next)n+=t+e.data;return n}},{key:"concat",value:function(t){if(0===this.length)return l.alloc(0);var e=l.allocUnsafe(t>>>0),n=this.head,r=0;while(n)p(n.data,e,r),r+=n.data.length,n=n.next;return e}},{key:"consume",value:function(t,e){var n;return ti.length?i.length:t;if(o===i.length?r+=i:r+=i.slice(0,t),t-=o,0===t){o===i.length?(++n,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(t){var e=l.allocUnsafe(t),n=this.head,r=1;n.data.copy(e),t-=n.data.length;while(n=n.next){var i=n.data,o=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,o),t-=o,0===t){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,e}},{key:f,value:function(t,e){return d(this,i({},e,{depth:0,customInspect:!1}))}}]),t}()},"22f8":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"일";case"M":return t+"월";case"w":case"W":return t+"주";default:return t}},meridiemParse:/오전|오후/,isPM:function(t){return"오후"===t},meridiem:function(t,e,n){return t<12?"오전":"오후"}});return e}))},"232d":function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function s(t){try{u(r.next(t))}catch(e){o(e)}}function a(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(s,a)}u((r=r.apply(t,e||[])).next())}))},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.SlopeWalletAdapter=e.SlopeWalletName=void 0;const o=n("0a37"),s=n("64b9"),a=i(n("a775"));e.SlopeWalletName="Slope";class u extends o.BaseMessageSignerWalletAdapter{constructor(t={}){super(),this.name=e.SlopeWalletName,this.url="https://slope.finance",this.icon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOCIgdmlld0JveD0iMCAwIDEyOCAxMjgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSIxMjgiIGhlaWdodD0iMTI4IiByeD0iNjQiIGZpbGw9IiM2RTY2RkEiLz4KPHBhdGggZD0iTTI3Ljk0NzUgNTIuMTU5Nkw1MS45ODI2IDI4LjA1NzJMNzIuNjA5OCA3LjY1Mzg5QzczLjg3MzQgNi40MDQwMSA3Ni4wMTc4IDcuMjk5MSA3Ni4wMTc4IDkuMDc2NDJMNzYuMDE4NyA1Mi4xNTlMNTEuOTgzNiA3Ni4xMjY4TDI3Ljk0NzUgNTIuMTU5NloiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8zNzk1XzI1NTQzKSIvPgo8cGF0aCBkPSJNMTAwLjA1MyA3NS45OTNMNzYuMDE4IDUxLjk1OEw1MS45ODI5IDc1Ljk5MzFMNTEuOTgyOSAxMTguOTI0QzUxLjk4MjkgMTIwLjcwMyA1NC4xMzEyIDEyMS41OTcgNTUuMzkzNyAxMjAuMzQzTDEwMC4wNTMgNzUuOTkzWiIgZmlsbD0idXJsKCNwYWludDFfbGluZWFyXzM3OTVfMjU1NDMpIi8+CjxwYXRoIGQ9Ik0yNy45NDcgNTIuMTYwMUg0NC42ODM5QzQ4LjcxNDcgNTIuMTYwMSA1MS45ODIyIDU1LjQyNzYgNTEuOTgyMiA1OS40NTgzVjc2LjEyNjlIMzUuMjQ1M0MzMS4yMTQ2IDc2LjEyNjkgMjcuOTQ3IDcyLjg1OTQgMjcuOTQ3IDY4LjgyODdWNTIuMTYwMVoiIGZpbGw9IiNGMUYwRkYiLz4KPHBhdGggZD0iTTc2LjAxNzggNTIuMTYwMUg5Mi43NTQ3Qzk2Ljc4NTUgNTIuMTYwMSAxMDAuMDUzIDU1LjQyNzYgMTAwLjA1MyA1OS40NTgzVjc2LjEyNjlIODMuMzE2MUM3OS4yODU0IDc2LjEyNjkgNzYuMDE3OCA3Mi44NTk0IDc2LjAxNzggNjguODI4N1Y1Mi4xNjAxWiIgZmlsbD0iI0YxRjBGRiIvPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzM3OTVfMjU1NDMiIHgxPSI1MS45ODMxIiB5MT0iNy4wNzE1NSIgeDI9IjUxLjk4MzEiIHkyPSI3Ni4xMjY4IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CjxzdG9wIHN0b3AtY29sb3I9IiNBOEFERkYiLz4KPHN0b3Agb2Zmc2V0PSIwLjY0ODU1NiIgc3RvcC1jb2xvcj0id2hpdGUiLz4KPC9saW5lYXJHcmFkaWVudD4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDFfbGluZWFyXzM3OTVfMjU1NDMiIHgxPSI3Ni4wMTgiIHkxPSI1MS45NTgiIHgyPSI3Ni4wMTgiIHkyPSIxMjAuOTI4IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CjxzdG9wIG9mZnNldD0iMC4yNjA3ODQiIHN0b3AtY29sb3I9IiNCNkJBRkYiLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjRTRFMkZGIi8+CjwvbGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg==",this._readyState="undefined"===typeof window||"undefined"===typeof document?o.WalletReadyState.Unsupported:o.WalletReadyState.NotDetected,this._connecting=!1,this._wallet=null,this._publicKey=null,this._readyState!==o.WalletReadyState.Unsupported&&(0,o.scopePollingDetectionStrategy)(()=>!("function"!==typeof window.Slope&&!window.slopeApp)&&(this._readyState=o.WalletReadyState.Installed,this.emit("readyStateChange",this._readyState),!0))}get publicKey(){return this._publicKey}get connecting(){return this._connecting}get readyState(){return this._readyState}connect(){return r(this,void 0,void 0,(function*(){try{if(this.connected||this.connecting)return;if(this._readyState!==o.WalletReadyState.Installed||!window.Slope)throw new o.WalletNotReadyError;this._connecting=!0;const e=new window.Slope;let n,r;try{({data:n}=yield e.connect())}catch(t){throw new o.WalletConnectionError(null===t||void 0===t?void 0:t.message,t)}if(!n.publicKey)throw new o.WalletAccountError;try{r=new s.PublicKey(n.publicKey)}catch(t){throw new o.WalletPublicKeyError(null===t||void 0===t?void 0:t.message,t)}this._wallet=e,this._publicKey=r,this.emit("connect",r)}catch(t){throw this.emit("error",t),t}finally{this._connecting=!1}}))}disconnect(){return r(this,void 0,void 0,(function*(){const t=this._wallet;if(t){this._wallet=null,this._publicKey=null;try{const{msg:e}=yield t.disconnect();if("ok"!==e)throw new o.WalletDisconnectionError(e)}catch(e){e instanceof o.WalletError||(e=new o.WalletDisconnectionError(null===e||void 0===e?void 0:e.message,e)),this.emit("error",e)}}this.emit("disconnect")}))}signTransaction(t){return r(this,void 0,void 0,(function*(){try{const n=this._wallet;if(!n)throw new o.WalletNotConnectedError;try{const e=a.default.encode(t.serializeMessage()),{msg:r,data:i}=yield n.signTransaction(e);if(!i.publicKey||!i.signature)throw new o.WalletSignTransactionError(r);const u=new s.PublicKey(i.publicKey),c=a.default.decode(i.signature);return t.addSignature(u,c),t}catch(e){if(e instanceof o.WalletError)throw e;throw new o.WalletSignTransactionError(null===e||void 0===e?void 0:e.message,e)}}catch(e){throw this.emit("error",e),e}}))}signAllTransactions(t){var e;return r(this,void 0,void 0,(function*(){try{const r=this._wallet;if(!r)throw new o.WalletNotConnectedError;try{const n=t.map(t=>a.default.encode(t.serializeMessage())),{msg:i,data:u}=yield r.signAllTransactions(n),c=t.length;if(!u.publicKey||(null===(e=u.signatures)||void 0===e?void 0:e.length)!==c)throw new o.WalletSignTransactionError(i);const l=new s.PublicKey(u.publicKey);for(let e=0;e>>this.count%4*8&255,this.count+=1,this.count===this.blockSize&&(r.p1600(this.state),this.count=0);return n},i.prototype.copy=function(t){for(let e=0;e<50;++e)t.state[e]=this.state[e];t.blockSize=this.blockSize,t.count=this.count,t.squeezing=this.squeezing},t.exports=i}).call(this,n("b639").Buffer)},"241c":function(t,e,n){var r=n("ca84"),i=n("7839"),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},2421:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"],i=t.defineLocale("ku",{months:r,monthsShort:r,weekdays:"یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌".split("_"),weekdaysShort:"یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئێواره‌|به‌یانی/,isPM:function(t){return/ئێواره‌/.test(t)},meridiem:function(t,e,n){return t<12?"به‌یانی":"ئێواره‌"},calendar:{sameDay:"[ئه‌مرۆ كاتژمێر] LT",nextDay:"[به‌یانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له‌ %s",past:"%s",s:"چه‌ند چركه‌یه‌ك",ss:"چركه‌ %d",m:"یه‌ك خوله‌ك",mm:"%d خوله‌ك",h:"یه‌ك كاتژمێر",hh:"%d كاتژمێر",d:"یه‌ك ڕۆژ",dd:"%d ڕۆژ",M:"یه‌ك مانگ",MM:"%d مانگ",y:"یه‌ك ساڵ",yy:"%d ساڵ"},preparse:function(t){return t.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(t){return n[t]})).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"،")},week:{dow:6,doy:12}});return i}))},2554:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration function e(t,e,n){var r=t+" ";switch(n){case"ss":return r+=1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi",r;case"m":return e?"jedna minuta":"jedne minute";case"mm":return r+=1===t?"minuta":2===t||3===t||4===t?"minute":"minuta",r;case"h":return e?"jedan sat":"jednog sata";case"hh":return r+=1===t?"sat":2===t||3===t||4===t?"sata":"sati",r;case"dd":return r+=1===t?"dan":"dana",r;case"MM":return r+=1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci",r;case"yy":return r+=1===t?"godina":2===t||3===t||4===t?"godine":"godina",r}}var n=t.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:e,m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},"26f9":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(t,e,n,r){return e?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"}function r(t,e,n,r){return e?o(n)[0]:r?o(n)[1]:o(n)[2]}function i(t){return t%10===0||t>10&&t<20}function o(t){return e[t].split("_")}function s(t,e,n,s){var a=t+" ";return 1===t?a+r(t,e,n[0],s):e?a+(i(t)?o(n)[1]:o(n)[0]):s?a+o(n)[1]:a+(i(t)?o(n)[1]:o(n)[2])}var a=t.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:n,ss:s,m:r,mm:s,h:r,hh:s,d:r,dd:s,M:r,MM:s,y:r,yy:s},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(t){return t+"-oji"},week:{dow:1,doy:4}});return a}))},"275d":function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t["default"]=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e},s=this&&this.__awaiter||function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function s(t){try{u(r.next(t))}catch(e){o(e)}}function a(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(s,a)}u((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.BaseSolletWalletAdapter=void 0;const a=n("0a37");class u extends a.BaseMessageSignerWalletAdapter{constructor({provider:t,network:e=a.WalletAdapterNetwork.Mainnet,timeout:n=1e4}={}){super(),this._readyState="undefined"===typeof window||"undefined"===typeof document?a.WalletReadyState.Unsupported:a.WalletReadyState.NotDetected,this._disconnected=()=>{const t=this._wallet;t&&(t.off("disconnect",this._disconnected),this._wallet=null,this.emit("error",new a.WalletDisconnectedError),this.emit("disconnect"))},this._provider=t,this._network=e,this._timeout=n,this._connecting=!1,this._wallet=null,this._readyState!==a.WalletReadyState.Unsupported&&("string"===typeof this._provider?this._readyState=a.WalletReadyState.Loadable:(0,a.scopePollingDetectionStrategy)(()=>{var t;return"function"===typeof(null===(t=window.sollet)||void 0===t?void 0:t.postMessage)&&(this._readyState=a.WalletReadyState.Installed,this.emit("readyStateChange",this._readyState),!0)}))}get publicKey(){var t;return(null===(t=this._wallet)||void 0===t?void 0:t.publicKey)||null}get connecting(){return this._connecting}get connected(){var t;return!!(null===(t=this._wallet)||void 0===t?void 0:t.connected)}get readyState(){return this._readyState}connect(){return s(this,void 0,void 0,(function*(){try{if(this.connected||this.connecting)return;if(this._readyState!==a.WalletReadyState.Loadable&&this._readyState!==a.WalletReadyState.Installed)throw new a.WalletNotReadyError;this._connecting=!0;const e=this._provider||window.sollet;let r,i;try{({default:r}=yield Promise.resolve().then(()=>o(n("33b6"))))}catch(t){throw new a.WalletLoadError(null===t||void 0===t?void 0:t.message,t)}try{i=new r(e,this._network)}catch(t){throw new a.WalletConfigError(null===t||void 0===t?void 0:t.message,t)}try{const t=i.handleDisconnect;let n,r;try{yield new Promise((o,s)=>{const u=()=>{n&&clearTimeout(n),i.off("connect",u),o()};if(i.handleDisconnect=(...e)=>(i.off("connect",u),s(new a.WalletWindowClosedError),t.apply(i,e)),i.on("connect",u),i.connect().catch(t=>{i.off("connect",u),s(t)}),"string"===typeof e){let t=0;r=setInterval(()=>{const e=i._popup;e?e.closed&&s(new a.WalletWindowClosedError):t>50&&s(new a.WalletWindowBlockedError),t++},100)}else n=setTimeout(()=>s(new a.WalletTimeoutError),this._timeout)})}finally{i.handleDisconnect=t,r&&clearInterval(r)}}catch(t){if(t instanceof a.WalletError)throw t;throw new a.WalletConnectionError(null===t||void 0===t?void 0:t.message,t)}if(!i.publicKey)throw new a.WalletPublicKeyError;i.on("disconnect",this._disconnected),this._wallet=i,this.emit("connect",i.publicKey)}catch(t){throw this.emit("error",t),t}finally{this._connecting=!1}}))}disconnect(){return s(this,void 0,void 0,(function*(){const t=this._wallet;if(t){t.off("disconnect",this._disconnected),this._wallet=null;const n=t.handleDisconnect;try{yield new Promise((e,r)=>{const i=setTimeout(()=>e(),250);t.handleDisconnect=(...r)=>(clearTimeout(i),e(),t._responsePromises=new Map,n.apply(t,r)),t.disconnect().then(()=>{clearTimeout(i),e()},t=>{clearTimeout(i),"Wallet disconnected"===(null===t||void 0===t?void 0:t.message)?e():r(t)})})}catch(e){this.emit("error",new a.WalletDisconnectionError(null===e||void 0===e?void 0:e.message,e))}finally{t.handleDisconnect=n}}this.emit("disconnect")}))}signTransaction(t){return s(this,void 0,void 0,(function*(){try{const n=this._wallet;if(!n)throw new a.WalletNotConnectedError;try{return(yield n.signTransaction(t))||t}catch(e){throw new a.WalletSignTransactionError(null===e||void 0===e?void 0:e.message,e)}}catch(e){throw this.emit("error",e),e}}))}signAllTransactions(t){return s(this,void 0,void 0,(function*(){try{const n=this._wallet;if(!n)throw new a.WalletNotConnectedError;try{return(yield n.signAllTransactions(t))||t}catch(e){throw new a.WalletSignTransactionError(null===e||void 0===e?void 0:e.message,e)}}catch(e){throw this.emit("error",e),e}}))}signMessage(t){return s(this,void 0,void 0,(function*(){try{const n=this._wallet;if(!n)throw new a.WalletNotConnectedError;try{const{signature:e}=yield n.sign(t,"utf8");return Uint8Array.from(e)}catch(e){throw new a.WalletSignMessageError(null===e||void 0===e?void 0:e.message,e)}}catch(e){throw this.emit("error",e),e}}))}}e.BaseSolletWalletAdapter=u},"27bf":function(t,e,n){"use strict";t.exports=s;var r=n("b19a"),i=Object.create(n("3a7c"));function o(t,e){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=e&&this.push(e),r(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length","license":"MIT","bugs":{"url":"https://github.com/indutny/elliptic/issues"},"homepage":"https://github.com/indutny/elliptic","devDependencies":{"brfs":"^2.0.2","coveralls":"^3.1.0","eslint":"^7.6.0","grunt":"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.5","mocha":"^8.0.1"},"dependencies":{"bn.js":"^4.11.9","brorand":"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1","inherits":"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}')},"28a0":function(t,e){"function"===typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},2921:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(t){return/^ch$/i.test(t)},meridiem:function(t,e,n){return t<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần trước lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",w:"một tuần",ww:"%d tuần",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(t){return t},week:{dow:1,doy:4}});return e}))},"293c":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,n,r){var i=e.words[r];return 1===r.length?n?i[0]:i[1]:t+" "+e.correctGrammaticalCase(t,i)}},n=t.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){var t=["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"];return t[this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"dan",dd:e.translate,M:"mjesec",MM:e.translate,y:"godinu",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},"298c":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fillOptionsWithDefaults=i;var r=n("5f61");function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=JSON.parse(JSON.stringify(t));return"undefined"===typeof e.support3PC&&(e.support3PC=(0,r.are3PCSupported)()),"undefined"===typeof e.webWorkerSupport&&(e.webWorkerSupport=!0),e.idb||(e.idb={}),e.idb.ttl||(e.idb.ttl=45e3),e.idb.fallbackInterval||(e.idb.fallbackInterval=150),t.idb&&"function"===typeof t.idb.onclose&&(e.idb.onclose=t.idb.onclose),e.localstorage||(e.localstorage={}),e.localstorage.removeTimeout||(e.localstorage.removeTimeout=6e4),e.server||(e.server={}),e.server.url||(e.server.url="https://broadcast-server.tor.us"),e.server.removeTimeout||(e.server.removeTimeout=3e5),t.methods&&(e.methods=t.methods),e.node||(e.node={}),e.node.ttl||(e.node.ttl=12e4),e.node.maxParallelWrites||(e.node.maxParallelWrites=2048),"undefined"===typeof e.node.useFastPath&&(e.node.useFastPath=!0),e}},"29b1":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.assertIsString=e.assertIsArray=e.assertIsBuffer=e.assertIsHexString=void 0;var r=n("b332"),i=function(t){if(!(0,r.isHexString)(t)){var e="This method only supports 0x-prefixed hex strings but input was: ".concat(t);throw new Error(e)}};e.assertIsHexString=i;var o=function(e){if(!t.isBuffer(e)){var n="This method only supports Buffer but input was: ".concat(e);throw new Error(n)}};e.assertIsBuffer=o;var s=function(t){if(!Array.isArray(t)){var e="This method only supports number arrays but input was: ".concat(t);throw new Error(e)}};e.assertIsArray=s;var a=function(t){if("string"!==typeof t){var e="This method only supports strings but input was: ".concat(t);throw new Error(e)}};e.assertIsString=a}).call(this,n("b639").Buffer)},"29c2":function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));const r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),i=64,o={};let s,a=0,u=0;function c(t){let e="";do{e=r[t%i]+e,t=Math.floor(t/i)}while(t>0);return e}function l(){const t=c(+new Date);return t!==s?(a=0,s=t):t+"."+c(a++)}for(;unull!==t&&"object"===typeof t&&"function"===typeof t.pipe;r.writable=t=>r(t)&&!1!==t.writable&&"function"===typeof t._write&&"object"===typeof t._writableState,r.readable=t=>r(t)&&!1!==t.readable&&"function"===typeof t._read&&"object"===typeof t._readableState,r.duplex=t=>r.writable(t)&&r.readable(t),r.transform=t=>r.duplex(t)&&"function"===typeof t._transform,t.exports=r},"2ae6":function(t,e,n){const{MAX_LENGTH:r}=n("11a3"),{re:i,t:o}=n("0d26"),s=n("c2a4"),a=n("83e2"),u=(t,e)=>{if(e=a(e),t instanceof s)return t;if("string"!==typeof t)return null;if(t.length>r)return null;const n=e.loose?i[o.LOOSE]:i[o.FULL];if(!n.test(t))return null;try{return new s(t,e)}catch(u){return null}};t.exports=u},"2aee":function(t,e,n){var r=n("4111"),i=n("d70e"),o=n("4dd0"),s=n("fda6"),a=n("a099"),u=n("8707").Buffer;function c(t){var e;"object"!==typeof t||u.isBuffer(t)||(e=t.passphrase,t=t.key),"string"===typeof t&&(t=u.from(t));var n,i,s=o(t,e),a=s.tag,c=s.data;switch(a){case"CERTIFICATE":i=r.certificate.decode(c,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(i||(i=r.PublicKey.decode(c,"der")),n=i.algorithm.algorithm.join("."),n){case"1.2.840.113549.1.1.1":return r.RSAPublicKey.decode(i.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return i.subjectPrivateKey=i.subjectPublicKey,{type:"ec",data:i};case"1.2.840.10040.4.1":return i.algorithm.params.pub_key=r.DSAparam.decode(i.subjectPublicKey.data,"der"),{type:"dsa",data:i.algorithm.params};default:throw new Error("unknown key id "+n)}case"ENCRYPTED PRIVATE KEY":c=r.EncryptedPrivateKey.decode(c,"der"),c=l(c,e);case"PRIVATE KEY":switch(i=r.PrivateKey.decode(c,"der"),n=i.algorithm.algorithm.join("."),n){case"1.2.840.113549.1.1.1":return r.RSAPrivateKey.decode(i.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:i.algorithm.curve,privateKey:r.ECPrivateKey.decode(i.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return i.algorithm.params.priv_key=r.DSAparam.decode(i.subjectPrivateKey,"der"),{type:"dsa",params:i.algorithm.params};default:throw new Error("unknown key id "+n)}case"RSA PUBLIC KEY":return r.RSAPublicKey.decode(c,"der");case"RSA PRIVATE KEY":return r.RSAPrivateKey.decode(c,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:r.DSAPrivateKey.decode(c,"der")};case"EC PRIVATE KEY":return c=r.ECPrivateKey.decode(c,"der"),{curve:c.parameters.value,privateKey:c.privateKey};default:throw new Error("unknown key type "+a)}}function l(t,e){var n=t.algorithm.decrypt.kde.kdeparams.salt,r=parseInt(t.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=i[t.algorithm.decrypt.cipher.algo.join(".")],c=t.algorithm.decrypt.cipher.iv,l=t.subjectPrivateKey,h=parseInt(o.split("-")[1],10)/8,d=a.pbkdf2Sync(e,n,r,h,"sha1"),f=s.createDecipheriv(o,d,c),p=[];return p.push(f.update(l)),p.push(f.final()),u.concat(p)}t.exports=c,c.signature=r.signature},"2b43":function(t,e,n){"use strict";var r=n("c5f8").codes.ERR_INVALID_OPT_VALUE;function i(t,e,n){return null!=t.highWaterMark?t.highWaterMark:e?t[n]:null}function o(t,e,n,o){var s=i(e,o,n);if(null!=s){if(!isFinite(s)||Math.floor(s)!==s||s<0){var a=o?n:"highWaterMark";throw new r(a,s)}return Math.floor(s)}return t.objectMode?16:16384}t.exports={getHighWaterMark:o}},"2ba4":function(t,e,n){var r=n("40d5"),i=Function.prototype,o=i.apply,s=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?s.bind(o):function(){return s.apply(o,arguments)})},"2bfb":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(t){return/^nm$/i.test(t)},meridiem:function(t,e,n){return t<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}});return e}))},"2c63":function(t,e,n){t.exports=n("dc14")},"2d00":function(t,e,n){var r,i,o=n("da84"),s=n("342f"),a=o.process,u=o.Deno,c=a&&a.versions||u&&u.version,l=c&&c.v8;l&&(r=l.split("."),i=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&s&&(r=s.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/),r&&(i=+r[1]))),t.exports=i},"2d5d":function(t,e,n){"use strict";n.d(e,"a",(function(){return v})),n.d(e,"b",(function(){return x})),n.d(e,"c",(function(){return R})),n.d(e,"d",(function(){return M})),n.d(e,"e",(function(){return D})),n.d(e,"f",(function(){return L})),n.d(e,"g",(function(){return E})),n.d(e,"h",(function(){return k})),n.d(e,"i",(function(){return A})),n.d(e,"j",(function(){return I}));var r=n("9523"),i=n.n(r),o=n("b387"),s=n("8cee"),a=n("faa1"),u=n("375a"),c=n.n(u),l=n("d553"),h=n("ab52"),d=n.n(h),f=n("566b"),p=n.n(f);n("6f59");function m(){}const g="SYN",y="ACK",b="BRK";class v extends o["Duplex"]{constructor(t){let{name:e,target:n,targetWindow:r=window,targetOrigin:o="*"}=t;if(super({objectMode:!0}),i()(this,"_init",void 0),i()(this,"_haveSyn",void 0),i()(this,"_name",void 0),i()(this,"_target",void 0),i()(this,"_targetWindow",void 0),i()(this,"_targetOrigin",void 0),i()(this,"_onMessage",void 0),i()(this,"_synIntervalId",void 0),!e||!n)throw new Error("Invalid input.");this._init=!1,this._haveSyn=!1,this._name=e,this._target=n,this._targetWindow=r,this._targetOrigin=o,this._onMessage=this.onMessage.bind(this),this._synIntervalId=null,window.addEventListener("message",this._onMessage,!1),this._handShake()}_break(){this.cork(),this._write(b,null,m),this._haveSyn=!1,this._init=!1}_handShake(){this._write(g,null,m),this.cork()}_onData(t){if(this._init)if(t===b)this._break();else try{this.push(t)}catch(e){this.emit("error",e)}else t===g?(this._haveSyn=!0,this._write(y,null,m)):t===y&&(this._init=!0,this._haveSyn||this._write(y,null,m),this.uncork())}_postMessage(t){const e=this._targetOrigin;this._targetWindow.postMessage({target:this._target,data:t},e)}onMessage(t){const e=t.data;"*"!==this._targetOrigin&&t.origin!==this._targetOrigin||t.source!==this._targetWindow||"object"!==typeof e||e.target!==this._name||!e.data||this._onData(e.data)}_read(){}_write(t,e,n){this._postMessage(t),n()}_destroy(){window.removeEventListener("message",this._onMessage,!1)}}function _(t,e,n){try{Reflect.apply(t,e,n)}catch(r){setTimeout(()=>{throw r})}}function w(t){const e=t.length,n=new Array(e);for(let r=0;r1?r-1:0),o=1;o0&&([t]=i),t instanceof Error)throw t;const e=new Error("Unhandled error.".concat(t?" (".concat(t.message,")"):""));throw e.context=t,e}const s=n[t];if(void 0===s)return!1;if("function"===typeof s)_(s,this,i);else{const t=s.length,e=w(s);for(let n=0;n2&&void 0!==arguments[2])||arguments[2];return(r,i)=>{r||i.error?e(r||i.error):!n||Array.isArray(i)?t(i):t(i.result)}};function k(){const t={};function e(){return!1}const n=new M;function r(e){const n=t[e.id];if(!n)throw new Error('StreamMiddleware - Unknown response id "'.concat(e.id,'"'));delete t[e.id],Object.assign(n.res,e),setTimeout(n.end)}function i(t){n.emit("notification",t)}function s(t,e,n){let o;try{const e=!t.id;e?i(t):r(t)}catch(s){o=s}n(o)}const a=new o["Duplex"]({objectMode:!0,read:e,write:s}),u=(e,n,r,i)=>{a.push(e),t[e.id]={req:e,res:n,next:r,end:i}};return{events:n,middleware:u,stream:a}}function E(t){return(e,n,r,i)=>{const o=t[e.method];return void 0===o?r():"function"===typeof o?o(e,n,r,i):(n.result=o,i())}}function L(){return(t,e,n,r)=>{const i=t.id,o=Object(s["a"])();t.id=o,e.id=o,n(n=>{t.id=i,e.id=i,n()})}}function D(t){return async(e,n,r,i)=>{let o;const s=new Promise(t=>{o=t});let a=null,u=!1;const c=async()=>{u=!0,r(t=>{a=t,o()}),await s};try{await t(e,n,c),u?(await s,a(null)):i(null)}catch(l){a?a(l):i(l)}}}function T(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function O(t){for(var e=1;e{const o=t=>{const n=t||e.error;n&&(e.error=Object(l["serializeError"])(n)),i([n,!0])},s=t=>{e.error?o(e.error):(t&&("function"!==typeof t&&o(new S({code:-32603,message:"JRPCEngine: 'next' return handlers must be functions"})),r.push(t)),i([null,!1]))};try{n(t,e,s,o)}catch(a){o(a)}})}static async _runReturnHandlers(t){for(const e of t)await new Promise((t,n)=>{e(e=>e?n(e):t())})}static _checkForCompletion(t,e,n){if(!("result"in e)&&!("error"in e))throw new S({code:-32603,message:"Response has no error or result for request"});if(!n)throw new S({code:-32603,message:"Nothing ended request"})}push(t){this._middleware.push(t)}handle(t,e){if(e&&"function"!==typeof e)throw new Error('"callback" must be a function if provided.');return Array.isArray(t)?e?this._handleBatch(t,e):this._handleBatch(t):e?this._handle(t,e):this._promiseHandle(t)}asMiddleware(){return async(t,e,n,r)=>{try{const[i,o,s]=await x._runAllMiddleware(t,e,this._middleware);return o?(await x._runReturnHandlers(s),r(i)):n(async t=>{try{await x._runReturnHandlers(s)}catch(e){return t(e)}return t()})}catch(i){return r(i)}}}async _handleBatch(t,e){try{const n=await Promise.all(t.map(this._promiseHandle.bind(this)));return e?e(null,n):n}catch(n){if(e)return e(n);throw n}}_promiseHandle(t){return new Promise(e=>{this._handle(t,(t,n)=>{e(n)})})}async _handle(t,e){if(!t||Array.isArray(t)||"object"!==typeof t){const t=new S({code:-32603,message:"request must be plain object"});return e(t,{id:void 0,jsonrpc:"2.0",error:t})}if("string"!==typeof t.method){const n=new S({code:-32603,message:"method must be string"});return e(n,{id:t.id,jsonrpc:"2.0",error:n})}const n=O({},t),r={id:n.id,jsonrpc:n.jsonrpc};let i=null;try{await this._processRequest(n,r)}catch(o){i=o}return i&&(delete r.result,r.error||(r.error=Object(l["serializeError"])(i))),e(i,r)}async _processRequest(t,e){const[n,r,i]=await x._runAllMiddleware(t,e,this._middleware);if(x._checkForCompletion(t,e,r),await x._runReturnHandlers(i),n)throw n}}function I(t){const e=new x;return t.forEach(t=>e.push(t)),e.asMiddleware()}class j extends o["Duplex"]{constructor(t){let{parent:e,name:n}=t;super({objectMode:!0}),i()(this,"_parent",void 0),i()(this,"_name",void 0),this._parent=e,this._name=n}_read(){}_write(t,e,n){this._parent.push({name:this._name,data:t}),n()}}function N(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function P(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};super(P(P({},t),{},{objectMode:!0})),i()(this,"_substreams",void 0),i()(this,"getStream",void 0),this._substreams={}}createStream(t){if(!t)throw new Error("ObjectMultiplex - name must not be empty");if(this._substreams[t])throw new Error('ObjectMultiplex - Substream for name "'.concat(t,'" already exists'));const e=new j({parent:this,name:t});return this._substreams[t]=e,Y(this,t=>e.destroy(t||void 0)),e}ignoreStream(t){if(!t)throw new Error("ObjectMultiplex - name must not be empty");if(this._substreams[t])throw new Error('ObjectMultiplex - Substream for name "'.concat(t,'" already exists'));this._substreams[t]=C}_read(){}_write(t,e,n){const{name:r,data:i}=t;if(!r)return window.console.warn('ObjectMultiplex - malformed chunk without name "'.concat(t,'"')),n();const o=this._substreams[r];return o?(o!==C&&o.push(i),n()):(window.console.warn('ObjectMultiplex - orphaned data for stream "'.concat(r,'"')),n())}}function Y(t,e){const n=p()(e);d()(t,{readable:!1},n),d()(t,{writable:!1},n)}},"2e67":function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},"2e8c":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}});return e}))},"2ef0":function(t,e,n){(function(t,r){var i; /** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */(function(){var o,s="4.17.21",a=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",l="Invalid `variable` option passed into `_.template`",h="__lodash_hash_undefined__",d=500,f="__lodash_placeholder__",p=1,m=2,g=4,y=1,b=2,v=1,_=2,w=4,M=8,S=16,A=32,k=64,E=128,L=256,D=512,T=30,O="...",x=800,I=16,j=1,N=2,P=3,C=1/0,R=9007199254740991,Y=17976931348623157e292,B=NaN,z=4294967295,U=z-1,W=z>>>1,H=[["ary",E],["bind",v],["bindKey",_],["curry",M],["curryRight",S],["flip",D],["partial",A],["partialRight",k],["rearg",L]],F="[object Arguments]",q="[object Array]",V="[object AsyncFunction]",K="[object Boolean]",G="[object Date]",Q="[object DOMException]",Z="[object Error]",J="[object Function]",$="[object GeneratorFunction]",X="[object Map]",tt="[object Number]",et="[object Null]",nt="[object Object]",rt="[object Promise]",it="[object Proxy]",ot="[object RegExp]",st="[object Set]",at="[object String]",ut="[object Symbol]",ct="[object Undefined]",lt="[object WeakMap]",ht="[object WeakSet]",dt="[object ArrayBuffer]",ft="[object DataView]",pt="[object Float32Array]",mt="[object Float64Array]",gt="[object Int8Array]",yt="[object Int16Array]",bt="[object Int32Array]",vt="[object Uint8Array]",_t="[object Uint8ClampedArray]",wt="[object Uint16Array]",Mt="[object Uint32Array]",St=/\b__p \+= '';/g,At=/\b(__p \+=) '' \+/g,kt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Et=/&(?:amp|lt|gt|quot|#39);/g,Lt=/[&<>"']/g,Dt=RegExp(Et.source),Tt=RegExp(Lt.source),Ot=/<%-([\s\S]+?)%>/g,xt=/<%([\s\S]+?)%>/g,It=/<%=([\s\S]+?)%>/g,jt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Nt=/^\w*$/,Pt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ct=/[\\^$.*+?()[\]{}|]/g,Rt=RegExp(Ct.source),Yt=/^\s+/,Bt=/\s/,zt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ut=/\{\n\/\* \[wrapped with (.+)\] \*/,Wt=/,? & /,Ht=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ft=/[()=,{}\[\]\/\s]/,qt=/\\(\\)?/g,Vt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Kt=/\w*$/,Gt=/^[-+]0x[0-9a-f]+$/i,Qt=/^0b[01]+$/i,Zt=/^\[object .+?Constructor\]$/,Jt=/^0o[0-7]+$/i,$t=/^(?:0|[1-9]\d*)$/,Xt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,te=/($^)/,ee=/['\n\r\u2028\u2029\\]/g,ne="\\ud800-\\udfff",re="\\u0300-\\u036f",ie="\\ufe20-\\ufe2f",oe="\\u20d0-\\u20ff",se=re+ie+oe,ae="\\u2700-\\u27bf",ue="a-z\\xdf-\\xf6\\xf8-\\xff",ce="\\xac\\xb1\\xd7\\xf7",le="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",he="\\u2000-\\u206f",de=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",fe="A-Z\\xc0-\\xd6\\xd8-\\xde",pe="\\ufe0e\\ufe0f",me=ce+le+he+de,ge="['’]",ye="["+ne+"]",be="["+me+"]",ve="["+se+"]",_e="\\d+",we="["+ae+"]",Me="["+ue+"]",Se="[^"+ne+me+_e+ae+ue+fe+"]",Ae="\\ud83c[\\udffb-\\udfff]",ke="(?:"+ve+"|"+Ae+")",Ee="[^"+ne+"]",Le="(?:\\ud83c[\\udde6-\\uddff]){2}",De="[\\ud800-\\udbff][\\udc00-\\udfff]",Te="["+fe+"]",Oe="\\u200d",xe="(?:"+Me+"|"+Se+")",Ie="(?:"+Te+"|"+Se+")",je="(?:"+ge+"(?:d|ll|m|re|s|t|ve))?",Ne="(?:"+ge+"(?:D|LL|M|RE|S|T|VE))?",Pe=ke+"?",Ce="["+pe+"]?",Re="(?:"+Oe+"(?:"+[Ee,Le,De].join("|")+")"+Ce+Pe+")*",Ye="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Be="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ze=Ce+Pe+Re,Ue="(?:"+[we,Le,De].join("|")+")"+ze,We="(?:"+[Ee+ve+"?",ve,Le,De,ye].join("|")+")",He=RegExp(ge,"g"),Fe=RegExp(ve,"g"),qe=RegExp(Ae+"(?="+Ae+")|"+We+ze,"g"),Ve=RegExp([Te+"?"+Me+"+"+je+"(?="+[be,Te,"$"].join("|")+")",Ie+"+"+Ne+"(?="+[be,Te+xe,"$"].join("|")+")",Te+"?"+xe+"+"+je,Te+"+"+Ne,Be,Ye,_e,Ue].join("|"),"g"),Ke=RegExp("["+Oe+ne+se+pe+"]"),Ge=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Qe=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ze=-1,Je={};Je[pt]=Je[mt]=Je[gt]=Je[yt]=Je[bt]=Je[vt]=Je[_t]=Je[wt]=Je[Mt]=!0,Je[F]=Je[q]=Je[dt]=Je[K]=Je[ft]=Je[G]=Je[Z]=Je[J]=Je[X]=Je[tt]=Je[nt]=Je[ot]=Je[st]=Je[at]=Je[lt]=!1;var $e={};$e[F]=$e[q]=$e[dt]=$e[ft]=$e[K]=$e[G]=$e[pt]=$e[mt]=$e[gt]=$e[yt]=$e[bt]=$e[X]=$e[tt]=$e[nt]=$e[ot]=$e[st]=$e[at]=$e[ut]=$e[vt]=$e[_t]=$e[wt]=$e[Mt]=!0,$e[Z]=$e[J]=$e[lt]=!1;var Xe={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},tn={"&":"&","<":"<",">":">",'"':""","'":"'"},en={"&":"&","<":"<",">":">",""":'"',"'":"'"},nn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},rn=parseFloat,on=parseInt,sn="object"==typeof t&&t&&t.Object===Object&&t,an="object"==typeof self&&self&&self.Object===Object&&self,un=sn||an||Function("return this")(),cn=e&&!e.nodeType&&e,ln=cn&&"object"==typeof r&&r&&!r.nodeType&&r,hn=ln&&ln.exports===cn,dn=hn&&sn.process,fn=function(){try{var t=ln&&ln.require&&ln.require("util").types;return t||dn&&dn.binding&&dn.binding("util")}catch(e){}}(),pn=fn&&fn.isArrayBuffer,mn=fn&&fn.isDate,gn=fn&&fn.isMap,yn=fn&&fn.isRegExp,bn=fn&&fn.isSet,vn=fn&&fn.isTypedArray;function _n(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function wn(t,e,n,r){var i=-1,o=null==t?0:t.length;while(++i-1}function Ln(t,e,n){var r=-1,i=null==t?0:t.length;while(++r-1);return n}function tr(t,e){var n=t.length;while(n--&&Yn(e,t[n],0)>-1);return n}function er(t,e){var n=t.length,r=0;while(n--)t[n]===e&&++r;return r}var nr=Hn(Xe),rr=Hn(tn);function ir(t){return"\\"+nn[t]}function or(t,e){return null==t?o:t[e]}function sr(t){return Ke.test(t)}function ar(t){return Ge.test(t)}function ur(t){var e,n=[];while(!(e=t.next()).done)n.push(e.value);return n}function cr(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function lr(t,e){return function(n){return t(e(n))}}function hr(t,e){var n=-1,r=t.length,i=0,o=[];while(++n-1}function Wr(t,e){var n=this.__data__,r=li(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function Hr(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e=e?t:e)),t}function yi(t,e,n,r,i,s){var a,u=e&p,c=e&m,l=e&g;if(n&&(a=i?n(t,r,i,s):n(t)),a!==o)return a;if(!Al(t))return t;var h=ul(t);if(h){if(a=ea(t),!u)return is(t,a)}else{var d=Js(t),f=d==J||d==$;if(fl(t))return Go(t,u);if(d==nt||d==F||f&&!i){if(a=c||f?{}:na(t),!u)return c?as(t,fi(a,t)):ss(t,di(a,t))}else{if(!$e[d])return i?t:{};a=ra(t,d,u)}}s||(s=new $r);var y=s.get(t);if(y)return y;s.set(t,a),Rl(t)?t.forEach((function(r){a.add(yi(r,e,n,r,t,s))})):El(t)&&t.forEach((function(r,i){a.set(i,yi(r,e,n,i,t,s))}));var b=l?c?zs:Bs:c?Sh:Mh,v=h?o:b(t);return Mn(v||t,(function(r,i){v&&(i=r,r=t[i]),ci(a,i,yi(r,e,n,i,t,s))})),a}function bi(t){var e=Mh(t);return function(n){return vi(n,t,e)}}function vi(t,e,n){var r=n.length;if(null==t)return!r;t=ne(t);while(r--){var i=n[r],s=e[i],a=t[i];if(a===o&&!(i in t)||!s(a))return!1}return!0}function _i(t,e,n){if("function"!=typeof t)throw new oe(c);return ka((function(){t.apply(o,n)}),e)}function wi(t,e,n,r){var i=-1,o=En,s=!0,u=t.length,c=[],l=e.length;if(!u)return c;n&&(e=Dn(e,Zn(n))),r?(o=Ln,s=!1):e.length>=a&&(o=$n,s=!1,e=new Qr(e));t:while(++ii?0:i+n),r=r===o||r>i?i:Gl(r),r<0&&(r+=i),r=n>r?0:Ql(r);while(n0&&n(a)?e>1?Di(a,e-1,n,r,i):Tn(i,a):r||(i[i.length]=a)}return i}var Ti=hs(),Oi=hs(!0);function xi(t,e){return t&&Ti(t,e,Mh)}function Ii(t,e){return t&&Oi(t,e,Mh)}function ji(t,e){return kn(e,(function(e){return wl(t[e])}))}function Ni(t,e){e=Fo(e,t);var n=0,r=e.length;while(null!=t&&ne}function Yi(t,e){return null!=t&&he.call(t,e)}function Bi(t,e){return null!=t&&e in ne(t)}function zi(t,e,n){return t>=Ue(e,n)&&t=120&&d.length>=120)?new Qr(u&&d):o}d=t[0];var f=-1,p=c[0];t:while(++f-1)a!==t&&ke.call(a,u,1),ke.call(t,u,1)}return t}function yo(t,e){var n=t?e.length:0,r=n-1;while(n--){var i=e[n];if(n==r||i!==o){var o=i;sa(i)?ke.call(t,i,1):Co(t,i)}}return t}function bo(t,e){return t+Ne(Ve()*(e-t+1))}function vo(t,e,r,i){var o=-1,s=ze(je((e-t)/(r||1)),0),a=n(s);while(s--)a[i?s:++o]=t,t+=r;return a}function _o(t,e){var n="";if(!t||e<1||e>R)return n;do{e%2&&(n+=t),e=Ne(e/2),e&&(t+=t)}while(e);return n}function wo(t,e){return Ea(_a(t,e,Od),t+"")}function Mo(t){return oi(Uh(t))}function So(t,e){var n=Uh(t);return Ta(n,gi(e,0,n.length))}function Ao(t,e,n,r){if(!Al(t))return t;e=Fo(e,t);var i=-1,s=e.length,a=s-1,u=t;while(null!=u&&++io?0:o+e),r=r>o?o:r,r<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;var s=n(o);while(++i>>1,s=t[o];null!==s&&!Bl(s)&&(n?s<=e:s=a){var l=e?null:Ts(t);if(l)return dr(l);s=!1,i=$n,c=new Qr}else c=e?[]:u;t:while(++r=r?t:Do(t,e,n)}var Ko=Oe||function(t){return un.clearTimeout(t)};function Go(t,e){if(e)return t.slice();var n=t.length,r=we?we(n):new t.constructor(n);return t.copy(r),r}function Qo(t){var e=new t.constructor(t.byteLength);return new _e(e).set(new _e(t)),e}function Zo(t,e){var n=e?Qo(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function Jo(t){var e=new t.constructor(t.source,Kt.exec(t));return e.lastIndex=t.lastIndex,e}function $o(t){return pr?ne(pr.call(t)):{}}function Xo(t,e){var n=e?Qo(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function ts(t,e){if(t!==e){var n=t!==o,r=null===t,i=t===t,s=Bl(t),a=e!==o,u=null===e,c=e===e,l=Bl(e);if(!u&&!l&&!s&&t>e||s&&a&&c&&!u&&!l||r&&a&&c||!n&&c||!i)return 1;if(!r&&!s&&!l&&t=a)return u;var c=n[r];return u*("desc"==c?-1:1)}}return t.index-e.index}function ns(t,e,r,i){var o=-1,s=t.length,a=r.length,u=-1,c=e.length,l=ze(s-a,0),h=n(c+l),d=!i;while(++u1?n[i-1]:o,a=i>2?n[2]:o;s=t.length>3&&"function"==typeof s?(i--,s):o,a&&aa(n[0],n[1],a)&&(s=i<3?o:s,i=1),e=ne(e);while(++r-1?i[s?e[a]:a]:o}}function bs(t){return Ys((function(e){var n=e.length,r=n,i=Er.prototype.thru;t&&e.reverse();while(r--){var s=e[r];if("function"!=typeof s)throw new oe(c);if(i&&!a&&"wrapper"==Ws(s))var a=new Er([],!0)}r=a?r:n;while(++r1&&v.reverse(),d&&lu))return!1;var l=s.get(t),h=s.get(e);if(l&&h)return l==e&&h==t;var d=-1,f=!0,p=n&b?new Qr:o;s.set(t,e),s.set(e,t);while(++d1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(zt,"{\n/* [wrapped with "+e+"] */\n")}function oa(t){return ul(t)||al(t)||!!(Ee&&t&&t[Ee])}function sa(t,e){var n=typeof t;return e=null==e?R:e,!!e&&("number"==n||"symbol"!=n&&$t.test(t))&&t>-1&&t%1==0&&t0){if(++e>=x)return arguments[0]}else e=0;return t.apply(o,arguments)}}function Ta(t,e){var n=-1,r=t.length,i=r-1;e=e===o?r:e;while(++n1?t[e-1]:o;return n="function"==typeof n?(t.pop(),n):o,Cu(t,n)}));function qu(t){var e=wr(t);return e.__chain__=!0,e}function Vu(t,e){return e(t),t}function Ku(t,e){return e(t)}var Gu=Ys((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,i=function(e){return mi(e,t)};return!(e>1||this.__actions__.length)&&r instanceof Lr&&sa(n)?(r=r.slice(n,+n+(e?1:0)),r.__actions__.push({func:Ku,args:[i],thisArg:o}),new Er(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(o),t}))):this.thru(i)}));function Qu(){return qu(this)}function Zu(){return new Er(this.value(),this.__chain__)}function Ju(){this.__values__===o&&(this.__values__=Vl(this.value()));var t=this.__index__>=this.__values__.length,e=t?o:this.__values__[this.__index__++];return{done:t,value:e}}function $u(){return this}function Xu(t){var e,n=this;while(n instanceof kr){var r=Na(n);r.__index__=0,r.__values__=o,e?i.__wrapped__=r:e=r;var i=r;n=n.__wrapped__}return i.__wrapped__=t,e}function tc(){var t=this.__wrapped__;if(t instanceof Lr){var e=t;return this.__actions__.length&&(e=new Lr(this)),e=e.reverse(),e.__actions__.push({func:Ku,args:[pu],thisArg:o}),new Er(e,this.__chain__)}return this.thru(pu)}function ec(){return Bo(this.__wrapped__,this.__actions__)}var nc=us((function(t,e,n){he.call(t,n)?++t[n]:pi(t,n,1)}));function rc(t,e,n){var r=ul(t)?An:Ai;return n&&aa(t,e,n)&&(e=o),r(t,Fs(e,3))}function ic(t,e){var n=ul(t)?kn:Li;return n(t,Fs(e,3))}var oc=ys(Va),sc=ys(Ka);function ac(t,e){return Di(gc(t,e),1)}function uc(t,e){return Di(gc(t,e),C)}function cc(t,e,n){return n=n===o?1:Gl(n),Di(gc(t,e),n)}function lc(t,e){var n=ul(t)?Mn:Mi;return n(t,Fs(e,3))}function hc(t,e){var n=ul(t)?Sn:Si;return n(t,Fs(e,3))}var dc=us((function(t,e,n){he.call(t,n)?t[n].push(e):pi(t,n,[e])}));function fc(t,e,n,r){t=ll(t)?t:Uh(t),n=n&&!r?Gl(n):0;var i=t.length;return n<0&&(n=ze(i+n,0)),Yl(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&Yn(t,e,n)>-1}var pc=wo((function(t,e,r){var i=-1,o="function"==typeof e,s=ll(t)?n(t.length):[];return Mi(t,(function(t){s[++i]=o?_n(e,t,r):Hi(t,e,r)})),s})),mc=us((function(t,e,n){pi(t,n,e)}));function gc(t,e){var n=ul(t)?Dn:oo;return n(t,Fs(e,3))}function yc(t,e,n,r){return null==t?[]:(ul(e)||(e=null==e?[]:[e]),n=r?o:n,ul(n)||(n=null==n?[]:[n]),ho(t,e,n))}var bc=us((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));function vc(t,e,n){var r=ul(t)?On:Fn,i=arguments.length<3;return r(t,Fs(e,4),n,i,Mi)}function _c(t,e,n){var r=ul(t)?xn:Fn,i=arguments.length<3;return r(t,Fs(e,4),n,i,Si)}function wc(t,e){var n=ul(t)?kn:Li;return n(t,Uc(Fs(e,3)))}function Mc(t){var e=ul(t)?oi:Mo;return e(t)}function Sc(t,e,n){e=(n?aa(t,e,n):e===o)?1:Gl(e);var r=ul(t)?si:So;return r(t,e)}function Ac(t){var e=ul(t)?ai:Lo;return e(t)}function kc(t){if(null==t)return 0;if(ll(t))return Yl(t)?gr(t):t.length;var e=Js(t);return e==X||e==st?t.size:no(t).length}function Ec(t,e,n){var r=ul(t)?In:To;return n&&aa(t,e,n)&&(e=o),r(t,Fs(e,3))}var Lc=wo((function(t,e){if(null==t)return[];var n=e.length;return n>1&&aa(t,e[0],e[1])?e=[]:n>2&&aa(e[0],e[1],e[2])&&(e=[e[0]]),ho(t,Di(e,1),[])})),Dc=xe||function(){return un.Date.now()};function Tc(t,e){if("function"!=typeof e)throw new oe(c);return t=Gl(t),function(){if(--t<1)return e.apply(this,arguments)}}function Oc(t,e,n){return e=n?o:e,e=t&&null==e?t.length:e,xs(t,E,o,o,o,o,e)}function xc(t,e){var n;if("function"!=typeof e)throw new oe(c);return t=Gl(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=o),n}}var Ic=wo((function(t,e,n){var r=v;if(n.length){var i=hr(n,Hs(Ic));r|=A}return xs(t,r,e,n,i)})),jc=wo((function(t,e,n){var r=v|_;if(n.length){var i=hr(n,Hs(jc));r|=A}return xs(e,r,t,n,i)}));function Nc(t,e,n){e=n?o:e;var r=xs(t,M,o,o,o,o,o,e);return r.placeholder=Nc.placeholder,r}function Pc(t,e,n){e=n?o:e;var r=xs(t,S,o,o,o,o,o,e);return r.placeholder=Pc.placeholder,r}function Cc(t,e,n){var r,i,s,a,u,l,h=0,d=!1,f=!1,p=!0;if("function"!=typeof t)throw new oe(c);function m(e){var n=r,s=i;return r=i=o,h=e,a=t.apply(s,n),a}function g(t){return h=t,u=ka(v,e),d?m(t):a}function y(t){var n=t-l,r=t-h,i=e-n;return f?Ue(i,s-r):i}function b(t){var n=t-l,r=t-h;return l===o||n>=e||n<0||f&&r>=s}function v(){var t=Dc();if(b(t))return _(t);u=ka(v,y(t))}function _(t){return u=o,p&&r?m(t):(r=i=o,a)}function w(){u!==o&&Ko(u),h=0,r=l=i=u=o}function M(){return u===o?a:_(Dc())}function S(){var t=Dc(),n=b(t);if(r=arguments,i=this,l=t,n){if(u===o)return g(l);if(f)return Ko(u),u=ka(v,e),m(l)}return u===o&&(u=ka(v,e)),a}return e=Zl(e)||0,Al(n)&&(d=!!n.leading,f="maxWait"in n,s=f?ze(Zl(n.maxWait)||0,e):s,p="trailing"in n?!!n.trailing:p),S.cancel=w,S.flush=M,S}var Rc=wo((function(t,e){return _i(t,1,e)})),Yc=wo((function(t,e,n){return _i(t,Zl(e)||0,n)}));function Bc(t){return xs(t,D)}function zc(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new oe(c);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(zc.Cache||Hr),n}function Uc(t){if("function"!=typeof t)throw new oe(c);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function Wc(t){return xc(2,t)}zc.Cache=Hr;var Hc=qo((function(t,e){e=1==e.length&&ul(e[0])?Dn(e[0],Zn(Fs())):Dn(Di(e,1),Zn(Fs()));var n=e.length;return wo((function(r){var i=-1,o=Ue(r.length,n);while(++i=e})),al=Fi(function(){return arguments}())?Fi:function(t){return kl(t)&&he.call(t,"callee")&&!Ae.call(t,"callee")},ul=n.isArray,cl=pn?Zn(pn):qi;function ll(t){return null!=t&&Sl(t.length)&&!wl(t)}function hl(t){return kl(t)&&ll(t)}function dl(t){return!0===t||!1===t||kl(t)&&Ci(t)==K}var fl=Ce||Gd,pl=mn?Zn(mn):Vi;function ml(t){return kl(t)&&1===t.nodeType&&!Nl(t)}function gl(t){if(null==t)return!0;if(ll(t)&&(ul(t)||"string"==typeof t||"function"==typeof t.splice||fl(t)||zl(t)||al(t)))return!t.length;var e=Js(t);if(e==X||e==st)return!t.size;if(fa(t))return!no(t).length;for(var n in t)if(he.call(t,n))return!1;return!0}function yl(t,e){return Ki(t,e)}function bl(t,e,n){n="function"==typeof n?n:o;var r=n?n(t,e):o;return r===o?Ki(t,e,o,n):!!r}function vl(t){if(!kl(t))return!1;var e=Ci(t);return e==Z||e==Q||"string"==typeof t.message&&"string"==typeof t.name&&!Nl(t)}function _l(t){return"number"==typeof t&&Re(t)}function wl(t){if(!Al(t))return!1;var e=Ci(t);return e==J||e==$||e==V||e==it}function Ml(t){return"number"==typeof t&&t==Gl(t)}function Sl(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=R}function Al(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function kl(t){return null!=t&&"object"==typeof t}var El=gn?Zn(gn):Qi;function Ll(t,e){return t===e||Zi(t,e,Vs(e))}function Dl(t,e,n){return n="function"==typeof n?n:o,Zi(t,e,Vs(e),n)}function Tl(t){return jl(t)&&t!=+t}function Ol(t){if(da(t))throw new i(u);return Ji(t)}function xl(t){return null===t}function Il(t){return null==t}function jl(t){return"number"==typeof t||kl(t)&&Ci(t)==tt}function Nl(t){if(!kl(t)||Ci(t)!=nt)return!1;var e=Me(t);if(null===e)return!0;var n=he.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&le.call(n)==me}var Pl=yn?Zn(yn):$i;function Cl(t){return Ml(t)&&t>=-R&&t<=R}var Rl=bn?Zn(bn):Xi;function Yl(t){return"string"==typeof t||!ul(t)&&kl(t)&&Ci(t)==at}function Bl(t){return"symbol"==typeof t||kl(t)&&Ci(t)==ut}var zl=vn?Zn(vn):to;function Ul(t){return t===o}function Wl(t){return kl(t)&&Js(t)==lt}function Hl(t){return kl(t)&&Ci(t)==ht}var Fl=Es(io),ql=Es((function(t,e){return t<=e}));function Vl(t){if(!t)return[];if(ll(t))return Yl(t)?yr(t):is(t);if(Le&&t[Le])return ur(t[Le]());var e=Js(t),n=e==X?cr:e==st?dr:Uh;return n(t)}function Kl(t){if(!t)return 0===t?t:0;if(t=Zl(t),t===C||t===-C){var e=t<0?-1:1;return e*Y}return t===t?t:0}function Gl(t){var e=Kl(t),n=e%1;return e===e?n?e-n:e:0}function Ql(t){return t?gi(Gl(t),0,z):0}function Zl(t){if("number"==typeof t)return t;if(Bl(t))return B;if(Al(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Al(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Qn(t);var n=Qt.test(t);return n||Jt.test(t)?on(t.slice(2),n?2:8):Gt.test(t)?B:+t}function Jl(t){return os(t,Sh(t))}function $l(t){return t?gi(Gl(t),-R,R):0===t?t:0}function Xl(t){return null==t?"":No(t)}var th=cs((function(t,e){if(fa(e)||ll(e))os(e,Mh(e),t);else for(var n in e)he.call(e,n)&&ci(t,n,e[n])})),eh=cs((function(t,e){os(e,Sh(e),t)})),nh=cs((function(t,e,n,r){os(e,Sh(e),t,r)})),rh=cs((function(t,e,n,r){os(e,Mh(e),t,r)})),ih=Ys(mi);function oh(t,e){var n=Sr(t);return null==e?n:di(n,e)}var sh=wo((function(t,e){t=ne(t);var n=-1,r=e.length,i=r>2?e[2]:o;i&&aa(e[0],e[1],i)&&(r=1);while(++n1),e})),os(t,zs(t),n),r&&(n=yi(n,p|m|g,Ns));var i=e.length;while(i--)Co(n,e[i]);return n}));function Th(t,e){return xh(t,Uc(Fs(e)))}var Oh=Ys((function(t,e){return null==t?{}:fo(t,e)}));function xh(t,e){if(null==t)return{};var n=Dn(zs(t),(function(t){return[t]}));return e=Fs(e),po(t,n,(function(t,n){return e(t,n[0])}))}function Ih(t,e,n){e=Fo(e,t);var r=-1,i=e.length;i||(i=1,t=o);while(++re){var r=t;t=e,e=r}if(n||t%1||e%1){var i=Ve();return Ue(t+i*(e-t+rn("1e-"+((i+"").length-1))),e)}return bo(t,e)}var Vh=ps((function(t,e,n){return e=e.toLowerCase(),t+(n?Kh(e):e)}));function Kh(t){return _d(Xl(t).toLowerCase())}function Gh(t){return t=Xl(t),t&&t.replace(Xt,nr).replace(Fe,"")}function Qh(t,e,n){t=Xl(t),e=No(e);var r=t.length;n=n===o?r:gi(Gl(n),0,r);var i=n;return n-=e.length,n>=0&&t.slice(n,i)==e}function Zh(t){return t=Xl(t),t&&Tt.test(t)?t.replace(Lt,rr):t}function Jh(t){return t=Xl(t),t&&Rt.test(t)?t.replace(Ct,"\\$&"):t}var $h=ps((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Xh=ps((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),td=fs("toLowerCase");function ed(t,e,n){t=Xl(t),e=Gl(e);var r=e?gr(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Ss(Ne(i),n)+t+Ss(je(i),n)}function nd(t,e,n){t=Xl(t),e=Gl(e);var r=e?gr(t):0;return e&&r>>0,n?(t=Xl(t),t&&("string"==typeof e||null!=e&&!Pl(e))&&(e=No(e),!e&&sr(t))?Vo(yr(t),0,n):t.split(e,n)):[]}var cd=ps((function(t,e,n){return t+(n?" ":"")+_d(e)}));function ld(t,e,n){return t=Xl(t),n=null==n?0:gi(Gl(n),0,t.length),e=No(e),t.slice(n,n+e.length)==e}function hd(t,e,n){var r=wr.templateSettings;n&&aa(t,e,n)&&(e=o),t=Xl(t),e=nh({},e,r,Is);var s,a,u=nh({},e.imports,r.imports,Is),c=Mh(u),h=Jn(u,c),d=0,f=e.interpolate||te,p="__p += '",m=re((e.escape||te).source+"|"+f.source+"|"+(f===It?Vt:te).source+"|"+(e.evaluate||te).source+"|$","g"),g="//# sourceURL="+(he.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ze+"]")+"\n";t.replace(m,(function(e,n,r,i,o,u){return r||(r=i),p+=t.slice(d,u).replace(ee,ir),n&&(s=!0,p+="' +\n__e("+n+") +\n'"),o&&(a=!0,p+="';\n"+o+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),d=u+e.length,e})),p+="';\n";var y=he.call(e,"variable")&&e.variable;if(y){if(Ft.test(y))throw new i(l)}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(St,""):p).replace(At,"$1").replace(kt,"$1;"),p="function("+(y||"obj")+") {\n"+(y?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(s?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var b=Md((function(){return Bt(c,g+"return "+p).apply(o,h)}));if(b.source=p,vl(b))throw b;return b}function dd(t){return Xl(t).toLowerCase()}function fd(t){return Xl(t).toUpperCase()}function pd(t,e,n){if(t=Xl(t),t&&(n||e===o))return Qn(t);if(!t||!(e=No(e)))return t;var r=yr(t),i=yr(e),s=Xn(r,i),a=tr(r,i)+1;return Vo(r,s,a).join("")}function md(t,e,n){if(t=Xl(t),t&&(n||e===o))return t.slice(0,br(t)+1);if(!t||!(e=No(e)))return t;var r=yr(t),i=tr(r,yr(e))+1;return Vo(r,0,i).join("")}function gd(t,e,n){if(t=Xl(t),t&&(n||e===o))return t.replace(Yt,"");if(!t||!(e=No(e)))return t;var r=yr(t),i=Xn(r,yr(e));return Vo(r,i).join("")}function yd(t,e){var n=T,r=O;if(Al(e)){var i="separator"in e?e.separator:i;n="length"in e?Gl(e.length):n,r="omission"in e?No(e.omission):r}t=Xl(t);var s=t.length;if(sr(t)){var a=yr(t);s=a.length}if(n>=s)return t;var u=n-gr(r);if(u<1)return r;var c=a?Vo(a,0,u).join(""):t.slice(0,u);if(i===o)return c+r;if(a&&(u+=c.length-u),Pl(i)){if(t.slice(u).search(i)){var l,h=c;i.global||(i=re(i.source,Xl(Kt.exec(i))+"g")),i.lastIndex=0;while(l=i.exec(h))var d=l.index;c=c.slice(0,d===o?u:d)}}else if(t.indexOf(No(i),u)!=u){var f=c.lastIndexOf(i);f>-1&&(c=c.slice(0,f))}return c+r}function bd(t){return t=Xl(t),t&&Dt.test(t)?t.replace(Et,vr):t}var vd=ps((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),_d=fs("toUpperCase");function wd(t,e,n){return t=Xl(t),e=n?o:e,e===o?ar(t)?Mr(t):Pn(t):t.match(e)||[]}var Md=wo((function(t,e){try{return _n(t,o,e)}catch(n){return vl(n)?n:new i(n)}})),Sd=Ys((function(t,e){return Mn(e,(function(e){e=xa(e),pi(t,e,Ic(t[e],t))})),t}));function Ad(t){var e=null==t?0:t.length,n=Fs();return t=e?Dn(t,(function(t){if("function"!=typeof t[1])throw new oe(c);return[n(t[0]),t[1]]})):[],wo((function(n){var r=-1;while(++rR)return[];var n=z,r=Ue(t,z);e=Fs(e),t-=z;var i=Kn(r,e);while(++n0||e<0)?new Lr(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==o&&(e=Gl(e),n=e<0?n.dropRight(-e):n.take(e-t)),n)},Lr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Lr.prototype.toArray=function(){return this.take(z)},xi(Lr.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=wr[r?"take"+("last"==e?"Right":""):e],s=r||/^find/.test(e);i&&(wr.prototype[e]=function(){var e=this.__wrapped__,a=r?[1]:arguments,u=e instanceof Lr,c=a[0],l=u||ul(e),h=function(t){var e=i.apply(wr,Tn([t],a));return r&&d?e[0]:e};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var d=this.__chain__,f=!!this.__actions__.length,p=s&&!d,m=u&&!f;if(!s&&l){e=m?e:new Lr(this);var g=t.apply(e,a);return g.__actions__.push({func:Ku,args:[h],thisArg:o}),new Er(g,d)}return p&&m?t.apply(this,a):(g=this.thru(h),p?r?g.value()[0]:g.value():g)})})),Mn(["pop","push","shift","sort","splice","unshift"],(function(t){var e=se[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);wr.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(ul(i)?i:[],t)}return this[n]((function(n){return e.apply(ul(n)?n:[],t)}))}})),xi(Lr.prototype,(function(t,e){var n=wr[e];if(n){var r=n.name+"";he.call(cn,r)||(cn[r]=[]),cn[r].push({name:e,func:n})}})),cn[vs(o,_).name]=[{name:"wrapper",func:o}],Lr.prototype.clone=Dr,Lr.prototype.reverse=Tr,Lr.prototype.value=Or,wr.prototype.at=Gu,wr.prototype.chain=Qu,wr.prototype.commit=Zu,wr.prototype.next=Ju,wr.prototype.plant=Xu,wr.prototype.reverse=tc,wr.prototype.toJSON=wr.prototype.valueOf=wr.prototype.value=ec,wr.prototype.first=wr.prototype.head,Le&&(wr.prototype[Le]=$u),wr},Ar=Sr();un._=Ar,i=function(){return Ar}.call(e,n,e,r),i===o||(r.exports=i)}).call(this)}).call(this,n("c8ba"),n("62e4")(t))},3022:function(t,e,n){(function(t){var r=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),n={},r=0;r=o)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return t}})),u=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),b(n)?r.showHidden=n:n&&e._extend(r,n),A(r.showHidden)&&(r.showHidden=!1),A(r.depth)&&(r.depth=2),A(r.colors)&&(r.colors=!1),A(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),h(r,t,r.depth)}function u(t,e){var n=a.styles[e];return n?"["+a.colors[n][0]+"m"+t+"["+a.colors[n][1]+"m":t}function c(t,e){return t}function l(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}function h(t,n,r){if(t.customInspect&&n&&T(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,t);return M(i)||(i=h(t,i,r)),i}var o=d(t,n);if(o)return o;var s=Object.keys(n),a=l(s);if(t.showHidden&&(s=Object.getOwnPropertyNames(n)),D(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return f(n);if(0===s.length){if(T(n)){var u=n.name?": "+n.name:"";return t.stylize("[Function"+u+"]","special")}if(k(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(L(n))return t.stylize(Date.prototype.toString.call(n),"date");if(D(n))return f(n)}var c,b="",v=!1,_=["{","}"];if(y(n)&&(v=!0,_=["[","]"]),T(n)){var w=n.name?": "+n.name:"";b=" [Function"+w+"]"}return k(n)&&(b=" "+RegExp.prototype.toString.call(n)),L(n)&&(b=" "+Date.prototype.toUTCString.call(n)),D(n)&&(b=" "+f(n)),0!==s.length||v&&0!=n.length?r<0?k(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),c=v?p(t,n,r,a,s):s.map((function(e){return m(t,n,r,a,e,v)})),t.seen.pop(),g(c,b,_)):_[0]+b+_[1]}function d(t,e){if(A(e))return t.stylize("undefined","undefined");if(M(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return w(e)?t.stylize(""+e,"number"):b(e)?t.stylize(""+e,"boolean"):v(e)?t.stylize("null","null"):void 0}function f(t){return"["+Error.prototype.toString.call(t)+"]"}function p(t,e,n,r,i){for(var o=[],s=0,a=e.length;s-1&&(a=o?a.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+a.split("\n").map((function(t){return" "+t})).join("\n"))):a=t.stylize("[Circular]","special")),A(s)){if(o&&i.match(/^\d+$/))return a;s=JSON.stringify(""+i),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+a}function g(t,e,n){var r=t.reduce((function(t,e){return e.indexOf("\n")>=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0);return r>60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}function y(t){return Array.isArray(t)}function b(t){return"boolean"===typeof t}function v(t){return null===t}function _(t){return null==t}function w(t){return"number"===typeof t}function M(t){return"string"===typeof t}function S(t){return"symbol"===typeof t}function A(t){return void 0===t}function k(t){return E(t)&&"[object RegExp]"===x(t)}function E(t){return"object"===typeof t&&null!==t}function L(t){return E(t)&&"[object Date]"===x(t)}function D(t){return E(t)&&("[object Error]"===x(t)||t instanceof Error)}function T(t){return"function"===typeof t}function O(t){return null===t||"boolean"===typeof t||"number"===typeof t||"string"===typeof t||"symbol"===typeof t||"undefined"===typeof t}function x(t){return Object.prototype.toString.call(t)}function I(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(n){if(A(o)&&(o=Object({NODE_ENV:"production",VUE_APP_ADMIN_CREATE_RAFFLE:"https://sapi.solsteads.com/shop/admin/create/raffle/",VUE_APP_ADMIN_CREATE_SHOP_ITEM:"https://sapi.solsteads.com/shop/admin/create/item/",VUE_APP_ADMIN_MODIFY_RAFFLE:"https://sapi.solsteads.com/shop/admin/modify/raffle/",VUE_APP_ADMIN_MODIFY_SHOP_ITEM:"https://sapi.solsteads.com/shop/admin/modify/item/",VUE_APP_ADMIN_RAFFLE_WINNERS:"https://sapi.solsteads.com/shop/admin/winners/",VUE_APP_ADMIN_TRANSACTIONS:"https://sapi.solsteads.com/shop/admin/transactions/",VUE_APP_ALL_RAFFLES:"https://sapi.solsteads.com/shop/raffles/all",VUE_APP_ALL_SHOP_ITEMS:"https://sapi.solsteads.com/shop/items/all",VUE_APP_DISCORD_VERIFY:"https://discord.com/api/oauth2/authorize?client_id=1003713742447583275&redirect_uri=https%3A%2F%2Fsapi.solsteads.com%2Fusers%2Fdiscord%2Fverify&response_type=code&scope=identify",VUE_APP_GET_AUTH_TRANSACTION:"https://sapi.solsteads.com/users/transaction_auth/",VUE_APP_GET_BALANCE:"https://sapi.solsteads.com/users/balance/",VUE_APP_GET_JWT:"https://sapi.solsteads.com/users/jwt/get/",VUE_APP_GET_RAFFLE_INFO:"https://sapi.solsteads.com/shop/raffle/info/",VUE_APP_GET_TICKET:"https://sapi.solsteads.com/shop/ticket/",VUE_APP_GET_TRANSACTIONS:"https://sapi.solsteads.com/users/transactions/",VUE_APP_GET_WALLET_TICKET_COUNT:"https://sapi.solsteads.com/shop/raffle/tickets/",VUE_APP_GET_WON_RAFFLES:"https://sapi.solsteads.com/users/won/",VUE_APP_PUBLIC_INFO:"https://sapi.solsteads.com/users/info/",VUE_APP_PURCHASE:"https://sapi.solsteads.com/shop/purchase/",VUE_APP_RPC:"https://solana-api.projectserum.com",VUE_APP_TWITTER_VERIFY:"https://worker.solsteads.com/users/twitter/oauth",VUE_APP_USER_FRESH:"https://sapi.solsteads.com/users/fresh/",BASE_URL:"/"}).NODE_DEBUG||""),n=n.toUpperCase(),!s[n])if(new RegExp("\\b"+n+"\\b","i").test(o)){var r=t.pid;s[n]=function(){var t=e.format.apply(e,arguments);console.error("%s %d: %s",n,r,t)}}else s[n]=function(){};return s[n]},e.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=y,e.isBoolean=b,e.isNull=v,e.isNullOrUndefined=_,e.isNumber=w,e.isString=M,e.isSymbol=S,e.isUndefined=A,e.isRegExp=k,e.isObject=E,e.isDate=L,e.isError=D,e.isFunction=T,e.isPrimitive=O,e.isBuffer=n("d60a");var j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function N(){var t=new Date,e=[I(t.getHours()),I(t.getMinutes()),I(t.getSeconds())].join(":");return[t.getDate(),j[t.getMonth()],e].join(" ")}function P(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",N(),e.format.apply(e,arguments))},e.inherits=n("28a0"),e._extend=function(t,e){if(!e||!E(e))return t;var n=Object.keys(e),r=n.length;while(r--)t[n[r]]=e[n[r]];return t};var C="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function R(t,e){if(!t){var n=new Error("Promise was rejected with a falsy value");n.reason=t,t=n}return e(t)}function Y(e){if("function"!==typeof e)throw new TypeError('The "original" argument must be of type Function');function n(){for(var n=[],r=0;re in t?o(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,l=(t,e)=>{for(var n in e||(e={}))a.call(e,n)&&c(t,n,e[n]);if(s)for(var n of s(e))u.call(e,n)&&c(t,n,e[n]);return t},h=(t,e,n)=>(c(t,"symbol"!==typeof e?e+"":e,n),n);class d extends r["WalletError"]{constructor(){super(...arguments),h(this,"name","WalletNotSelectedError")}}class f extends r["WalletError"]{constructor(){super(...arguments),h(this,"name","WalletNotSelectedError")}}function p(t){return!!Object(i["getCurrentScope"])()&&(Object(i["onScopeDispose"])(t),!0)}const m="undefined"!==typeof window,g=t=>"string"===typeof t,y=()=>{};function b(t,e){function n(...n){t(()=>e.apply(this,n),{fn:e,thisArg:this,args:n})}return n}const v=t=>t();var _=Object.getOwnPropertySymbols,w=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable,S=(t,e)=>{var n={};for(var r in t)w.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&_)for(var r of _(t))e.indexOf(r)<0&&M.call(t,r)&&(n[r]=t[r]);return n};function A(t,e,n={}){const r=n,{eventFilter:o=v}=r,s=S(r,["eventFilter"]);return Object(i["watch"])(t,b(o,e),s)}function k(t,e,n={}){const{immediate:r=!0}=n,o=Object(i["ref"])(!1);let s=null;function a(){s&&(clearTimeout(s),s=null)}function u(){o.value=!1,a()}function c(...n){a(),o.value=!0,s=setTimeout(()=>{o.value=!1,s=null,t(...n)},Object(i["unref"])(e))}return r&&(o.value=!0,m&&c()),p(u),{isPending:o,start:c,stop:u}}function E(t){var e;const n=Object(i["unref"])(t);return null!=(e=null==n?void 0:n.$el)?e:n}const L=m?window:void 0;m&&window.document;const D=m?window.navigator:void 0;function T(...t){let e,n,r,o;if(g(t[0])?([n,r,o]=t,e=L):[e,n,r,o]=t,!e)return y;let s=y;const a=Object(i["watch"])(()=>Object(i["unref"])(e),t=>{s(),t&&(t.addEventListener(n,r,o),s=()=>{t.removeEventListener(n,r,o),s=y})},{immediate:!0,flush:"post"}),u=()=>{a(),s()};return p(u),u}function O(t,e,n={}){const{window:r=L}=n;if(!r)return;const o=Object(i["ref"])(!0),s=n=>{const r=E(t);r&&r!==n.target&&!n.composedPath().includes(r)&&o.value&&e(n)},a=[T(r,"click",s,{passive:!0,capture:!0}),T(r,"pointerdown",e=>{const n=E(t);o.value=!!n&&!e.composedPath().includes(n)},{passive:!0})],u=()=>a.forEach(t=>t());return u}m&&window.location;const x=t=>"function"===typeof t?t:"string"===typeof t?e=>e.key===t:Array.isArray(t)?e=>t.includes(e.key):t?()=>!0:()=>!1;function I(t,e,n={}){const{target:r=L,eventName:i="keydown",passive:o=!1}=n,s=x(t),a=t=>{s(t)&&e(t)};return T(r,i,a,o)}function j(t={}){const{navigator:e=D,read:n=!1,source:r,copiedDuring:o=1500}=t,s=["copy","cut"],a=Boolean(e&&"clipboard"in e),u=Object(i["ref"])(""),c=Object(i["ref"])(!1),l=k(()=>c.value=!1,o);function h(){e.clipboard.readText().then(t=>{u.value=t})}if(a&&n)for(const i of s)T(i,h);async function d(t=Object(i["unref"])(r)){a&&null!=t&&(await e.clipboard.writeText(t),u.value=t,c.value=!0,l.start())}return{isSupported:a,text:u,copied:c,copy:d}}const N="undefined"===typeof globalThis?void 0:globalThis,P="__vueuse_ssr_handlers__";N[P]=N[P]||{};const C=N[P];function R(t,e){return C[t]||e}function Y(t){return null==t?"any":t instanceof Set?"set":t instanceof Map?"map":"boolean"===typeof t?"boolean":"string"===typeof t?"string":"object"===typeof t||Array.isArray(t)?"object":Number.isNaN(t)?"any":"number"}const B={boolean:{read:t=>"true"===t,write:t=>String(t)},object:{read:t=>JSON.parse(t),write:t=>JSON.stringify(t)},number:{read:t=>Number.parseFloat(t),write:t=>String(t)},any:{read:t=>t,write:t=>String(t)},string:{read:t=>t,write:t=>String(t)},map:{read:t=>new Map(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t.entries()))},set:{read:t=>new Set(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t.entries()))}};function z(t,e,n,r={}){var o;const{flush:s="pre",deep:a=!0,listenToStorageChanges:u=!0,writeDefaults:c=!0,shallow:l,window:h=L,eventFilter:d,onError:f=(t=>{console.error(t)})}=r,p=Object(i["unref"])(e),m=Y(p),g=(l?i["shallowRef"]:i["ref"])(e),y=null!=(o=r.serializer)?o:B[m];if(!n)try{n=R("getDefaultStorage",()=>{var t;return null==(t=L)?void 0:t.localStorage})()}catch(v){f(v)}function b(e){if(n&&(!e||e.key===t))try{const r=e?e.newValue:n.getItem(t);null==r?(g.value=p,c&&null!==p&&n.setItem(t,y.write(p))):g.value="string"!==typeof r?r:y.read(r)}catch(v){f(v)}}return b(),h&&u&&T(h,"storage",t=>setTimeout(()=>b(t),0)),n&&A(g,()=>{try{null==g.value?n.removeItem(t):n.setItem(t,y.write(g.value))}catch(v){f(v)}},{flush:s,deep:a,eventFilter:d}),g}function U(t,e,n={}){const{window:r=L}=n;return z(t,e,null==r?void 0:r.localStorage,n)}var W,H;function F(t){const e=t||window.event;return e.touches.length>1||(e.preventDefault&&e.preventDefault(),!1)}const q=m&&(null==window?void 0:window.navigator)&&(null==(W=null==window?void 0:window.navigator)?void 0:W.platform)&&/iP(ad|hone|od)/.test(null==(H=null==window?void 0:window.navigator)?void 0:H.platform);function V(t,e=!1){const n=Object(i["ref"])(e);let r,o=null;const s=()=>{const e=Object(i["unref"])(t);e&&!n.value&&(r=e.style.overflow,q&&(o=T(document,"touchmove",F,{passive:!1})),e.style.overflow="hidden",n.value=!0)},a=()=>{const e=Object(i["unref"])(t);e&&n.value&&(q&&(null==o||o()),e.style.overflow=r,n.value=!1)};return Object(i["computed"])({get(){return n.value},set(t){t?s():a()}})}var K=Object.defineProperty,G=Object.getOwnPropertySymbols,Q=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable,J=(t,e,n)=>e in t?K(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,$=(t,e)=>{for(var n in e||(e={}))Q.call(e,n)&&J(t,n,e[n]);if(G)for(var n of G(e))Z.call(e,n)&&J(t,n,e[n]);return t};const X={top:0,left:0,bottom:0,right:0,height:0,width:0};$({text:""},X);const tt=({wallets:t=[],autoConnect:e=!1,onError:n=(t=>console.error(t)),localStorageKey:o="walletName"})=>{const s=Object(i["shallowRef"])(t),a=Object(i["ref"])(e),u=U(o,null),c=Object(i["shallowRef"])(null),l=Object(i["ref"])(null),h=Object(i["ref"])(r["WalletReadyState"].NotDetected),f=Object(i["ref"])(!1),p=Object(i["ref"])(!1),m=Object(i["ref"])(!1),g=Object(i["computed"])(()=>h.value===r["WalletReadyState"].Installed||h.value===r["WalletReadyState"].Loadable),y=t=>{var e,n,i;c.value=t,h.value=null!=(e=null==t?void 0:t.readyState)?e:r["WalletReadyState"].NotDetected,l.value=null!=(n=null==t?void 0:t.publicKey)?n:null,f.value=null!=(i=null==t?void 0:t.connected)&&i},b=t=>(n(t),t),v=Object(i["computed"])(()=>s.value.reduce((t,e)=>(t[e.name]=e,t),{}));Object(i["watch"])(u,()=>{var t,e;y(null!=(e=null==(t=v.value)?void 0:t[u.value])?e:null)},{immediate:!0});const _=async t=>{u.value!==t&&(u.value=t)},w=()=>y(c.value),M=()=>y(c.value),S=()=>u.value=null,A=Object(i["watchEffect"])(t=>{const e=c.value;e&&(e.on("readyStateChange",w),e.on("connect",M),e.on("disconnect",S),e.on("error",n),t(()=>{e.off("readyStateChange",w),e.off("connect",M),e.off("disconnect",S),e.off("error",n)}))});"undefined"!==typeof window&&window.addEventListener("beforeunload",A);const k=async()=>{if(!(f.value||p.value||m.value)){if(!c.value)throw b(new d);if(!g.value)throw u.value=null,"undefined"!==typeof window&&window.open(c.value.url,"_blank"),b(new r["WalletNotReadyError"]);try{p.value=!0,await c.value.connect()}catch(t){throw u.value=null,t}finally{p.value=!1}}},E=async()=>{if(!m.value)if(c.value)try{m.value=!0,await c.value.disconnect()}finally{u.value=null,m.value=!1}else u.value=null},L=async(t,e,n)=>{if(!c.value)throw b(new d);if(!f.value)throw b(new r["WalletNotConnectedError"]);return await c.value.sendTransaction(t,e,n)},D=Object(i["computed"])(()=>{const t=c.value;if(t&&"signTransaction"in t)return async e=>{if(!f.value)throw b(new r["WalletNotConnectedError"]);return await t.signTransaction(e)}}),T=Object(i["computed"])(()=>{const t=c.value;if(t&&"signAllTransactions"in t)return async e=>{if(!f.value)throw b(new r["WalletNotConnectedError"]);return await t.signAllTransactions(e)}}),O=Object(i["computed"])(()=>{const t=c.value;if(t&&"signMessage"in t)return async e=>{if(!f.value)throw b(new r["WalletNotConnectedError"]);return await t.signMessage(e)}});return Object(i["watchEffect"])(async()=>{if(a.value&&c.value&&g.value&&!f.value&&!p.value)try{p.value=!0,await c.value.connect()}catch(t){u.value=null}finally{p.value=!1}}),{wallets:s,autoConnect:a,wallet:c,publicKey:l,readyState:h,ready:g,connected:f,connecting:p,disconnecting:m,select:_,connect:k,disconnect:E,sendTransaction:L,signTransaction:D,signAllTransactions:T,signMessage:O}};let et=null;const nt=()=>{if(et)return et;throw new f("Wallet not initialized. Please use the `initWallet` method to initialize the wallet.")},rt=t=>{et=tt(t)};var it=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n};const ot=Object(i["defineComponent"])({props:{wallet:Object},setup(t){return Object(i["toRefs"])(t)}}),st={class:"swv-button-icon"},at=["src","alt"];function ut(t,e,n,r,o,s){return Object(i["openBlock"])(),Object(i["createElementBlock"])("i",st,[t.wallet?(Object(i["openBlock"])(),Object(i["createElementBlock"])("img",{key:0,src:t.wallet.icon,alt:t.wallet.name+" icon"},null,8,at)):Object(i["createCommentVNode"])("",!0)])}var ct=it(ot,[["render",ut]]);const lt=Object(i["defineComponent"])({components:{WalletIcon:ct},props:{disabled:Boolean},setup(t,{emit:e}){const{disabled:n}=Object(i["toRefs"])(t),{wallet:r,connect:o,connecting:s,connected:a}=nt(),u=Object(i["computed"])(()=>s.value?"Connecting ...":a.value?"Connected":r.value?"Connect":"Connect Wallet"),c=t=>{e("click",t),t.defaultPrevented||o().catch(()=>{})},h={wallet:r,disabled:n,connecting:s,connected:a,content:u,onClick:c};return l({scope:h},h)}}),ht=["disabled"],dt=["textContent"];function ft(t,e,n,r,o,s){const a=Object(i["resolveComponent"])("wallet-icon");return Object(i["renderSlot"])(t.$slots,"default",Object(i["normalizeProps"])(Object(i["guardReactiveProps"])(t.scope)),()=>[Object(i["createElementVNode"])("button",{class:"swv-button swv-button-trigger",disabled:t.disabled||!t.wallet||t.connecting||t.connected,onClick:e[0]||(e[0]=(...e)=>t.onClick&&t.onClick(...e))},[t.wallet?(Object(i["openBlock"])(),Object(i["createBlock"])(a,{key:0,wallet:t.wallet},null,8,["wallet"])):Object(i["createCommentVNode"])("",!0),Object(i["createElementVNode"])("p",{textContent:Object(i["toDisplayString"])(t.content)},null,8,dt)],8,ht)])}var pt=it(lt,[["render",ft]]);Object(i["defineComponent"])({components:{WalletIcon:ct},props:{disabled:Boolean},setup(t,{emit:e}){const{disabled:n}=Object(i["toRefs"])(t),{wallet:r,disconnect:o,disconnecting:s}=nt(),a=Object(i["computed"])(()=>s.value?"Disconnecting ...":r.value?"Disconnect":"Disconnect Wallet"),u=t=>{e("click",t),t.defaultPrevented||o().catch(()=>{})},c={wallet:r,disconnecting:s,disabled:n,content:a,handleClick:u};return l({scope:c},c)}});const mt=Object(i["defineComponent"])({components:{WalletIcon:ct},props:{featured:{type:Number,default:3},container:{type:String,default:"body"},logo:String,dark:Boolean},setup(t,{slots:e}){const{featured:n,container:r,logo:o,dark:s}=Object(i["toRefs"])(t),a=Object(i["ref"])(null),u=Object(i["ref"])(!1),c=()=>u.value=!0,h=()=>u.value=!1,d=Object(i["computed"])(()=>!!e.logo||!!o.value),{wallets:f,select:p}=nt(),m=Object(i["ref"])(!1),g=Object(i["computed"])(()=>f.value.slice(0,n.value)),y=Object(i["computed"])(()=>f.value.slice(n.value)),b=Object(i["computed"])(()=>m.value?f.value:g.value);O(a,h),I("Escape",h),I("Tab",t=>{var e,n;const r=null!=(n=null==(e=a.value)?void 0:e.querySelectorAll("button"))?n:[],i=null==r?void 0:r[0],o=null==r?void 0:r[r.length-1];t.shiftKey&&document.activeElement===i&&o?(o.focus(),t.preventDefault()):!t.shiftKey&&document.activeElement===o&&i&&(i.focus(),t.preventDefault())}),Object(i["watch"])(u,t=>{t&&Object(i["nextTick"])(()=>{var t,e,n;return null==(n=null==(e=null==(t=a.value)?void 0:t.querySelectorAll("button"))?void 0:e[0])?void 0:n.focus()})});const v=V(document.body);Object(i["watch"])(u,t=>v.value=t);const _={dark:s,logo:o,hasLogo:d,featured:n,container:r,modalPanel:a,modalOpened:u,openModal:c,closeModal:h,expandedWallets:m,walletsToDisplay:b,featuredWallets:g,hiddenWallets:y,selectWallet:p};return l({scope:_},_)}}),gt=Object(i["createElementVNode"])("div",{class:"swv-modal-overlay"},null,-1),yt={class:"swv-modal-container",ref:"modalPanel"},bt={key:0,class:"swv-modal-logo-wrapper"},vt=["src"],_t=Object(i["createElementVNode"])("h1",{class:"swv-modal-title",id:"swv-modal-title"}," Connect Wallet ",-1),wt=Object(i["createElementVNode"])("svg",{width:"14",height:"14"},[Object(i["createElementVNode"])("path",{d:"M14 12.461 8.3 6.772l5.234-5.233L12.006 0 6.772 5.234 1.54 0 0 1.539l5.234 5.233L0 12.006l1.539 1.528L6.772 8.3l5.69 5.7L14 12.461z"})],-1),Mt=[wt],St={class:"swv-modal-list"},At=["onClick"],kt={class:"swv-button"},Et=["textContent"],Lt=["aria-expanded"],Dt=Object(i["createElementVNode"])("i",{class:"swv-button-icon"},[Object(i["createElementVNode"])("svg",{width:"11",height:"6",xmlns:"http://www.w3.org/2000/svg"},[Object(i["createElementVNode"])("path",{d:"m5.938 5.73 4.28-4.126a.915.915 0 0 0 0-1.322 1 1 0 0 0-1.371 0L5.253 3.736 1.659.272a1 1 0 0 0-1.371 0A.93.93 0 0 0 0 .932c0 .246.1.48.288.662l4.28 4.125a.99.99 0 0 0 1.37.01z"})])],-1);function Tt(t,e,n,r,o,s){const a=Object(i["resolveComponent"])("wallet-icon");return Object(i["openBlock"])(),Object(i["createElementBlock"])(i["Fragment"],null,[Object(i["createElementVNode"])("div",{class:Object(i["normalizeClass"])(t.dark?"swv-dark":"")},[Object(i["renderSlot"])(t.$slots,"default",Object(i["normalizeProps"])(Object(i["guardReactiveProps"])(t.scope)))],2),t.modalOpened?(Object(i["openBlock"])(),Object(i["createBlock"])(i["Teleport"],{key:0,to:t.container},[Object(i["createElementVNode"])("div",{"aria-labelledby":"swv-modal-title","aria-modal":"true",class:Object(i["normalizeClass"])(["swv-modal",t.dark?"swv-dark":""]),role:"dialog"},[Object(i["renderSlot"])(t.$slots,"overlay",Object(i["normalizeProps"])(Object(i["guardReactiveProps"])(t.scope)),()=>[gt]),Object(i["createElementVNode"])("div",yt,[Object(i["renderSlot"])(t.$slots,"modal",Object(i["normalizeProps"])(Object(i["guardReactiveProps"])(t.scope)),()=>[Object(i["createElementVNode"])("div",{class:Object(i["normalizeClass"])(["swv-modal-wrapper",{"swv-modal-wrapper-no-logo":!t.hasLogo}])},[t.hasLogo?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",bt,[Object(i["renderSlot"])(t.$slots,"logo",Object(i["normalizeProps"])(Object(i["guardReactiveProps"])(t.scope)),()=>[Object(i["createElementVNode"])("img",{alt:"logo",class:"swv-modal-logo",src:t.logo},null,8,vt)])])):Object(i["createCommentVNode"])("",!0),_t,Object(i["createElementVNode"])("button",{onClick:e[0]||(e[0]=Object(i["withModifiers"])((...e)=>t.closeModal&&t.closeModal(...e),["prevent"])),class:"swv-modal-button-close"},Mt),Object(i["createElementVNode"])("ul",St,[(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(t.walletsToDisplay,e=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("li",{key:e.name,onClick:n=>{t.selectWallet(e.name),t.closeModal()}},[Object(i["createElementVNode"])("button",kt,[Object(i["createElementVNode"])("p",{textContent:Object(i["toDisplayString"])(e.name)},null,8,Et),Object(i["createVNode"])(a,{wallet:e},null,8,["wallet"])])],8,At))),128))]),t.hiddenWallets.length>0?(Object(i["openBlock"])(),Object(i["createElementBlock"])("button",{key:1,"aria-controls":"swv-modal-collapse","aria-expanded":t.expandedWallets,class:Object(i["normalizeClass"])(["swv-button swv-modal-collapse-button",{"swv-modal-collapse-button-active":t.expandedWallets}]),onClick:e[1]||(e[1]=e=>t.expandedWallets=!t.expandedWallets)},[Object(i["createTextVNode"])(Object(i["toDisplayString"])(t.expandedWallets?"Less":"More")+" options ",1),Dt],10,Lt)):Object(i["createCommentVNode"])("",!0)],2)])],512)],2)],8,["to"])):Object(i["createCommentVNode"])("",!0)],64)}var Ot=it(mt,[["render",Tt]]);Object(i["defineComponent"])({components:{WalletConnectButton:pt,WalletIcon:ct,WalletModalProvider:Ot},props:{featured:{type:Number,default:3},container:{type:String,default:"body"},logo:String,dark:Boolean},setup(t){const{featured:e,container:n,logo:r,dark:o}=Object(i["toRefs"])(t),{publicKey:s,wallet:a,disconnect:u}=nt(),c=Object(i["ref"])(),h=Object(i["ref"])(!1),d=()=>h.value=!0,f=()=>h.value=!1;O(c,f);const p=Object(i["computed"])(()=>{var t;return null==(t=s.value)?void 0:t.toBase58()}),m=Object(i["computed"])(()=>a.value&&p.value?p.value.slice(0,4)+".."+p.value.slice(-4):null),{copy:g,copied:y,isSupported:b}=j(),v=()=>p.value&&g(p.value),_={featured:e,container:n,logo:r,dark:o,wallet:a,publicKey:s,publicKeyTrimmed:m,publicKeyBase58:p,canCopy:b,addressCopied:y,dropdownPanel:c,dropdownOpened:h,openDropdown:d,closeDropdown:f,copyAddress:v,disconnect:u};return l({scope:_},_)}});var xt={install:(t,e={})=>{rt(e),t.config.globalProperties.$wallet=nt()}}},"320c":function(t,e,n){"use strict"; /* object-assign (c) Sindre Sorhus @license MIT */var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function s(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function a(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(e).map((function(t){return e[t]}));if("0123456789"!==r.join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(t){i[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(o){return!1}}t.exports=a()?Object.assign:function(t,e){for(var n,a,u=s(t),c=1;c=0&&(s=e,a=n),r.negative&&(r=r.neg(),o=o.neg()),s.negative&&(s=s.neg(),a=a.neg()),[{a:r,b:o},{a:s,b:a}]},u.prototype._endoSplit=function(t){var e=this.endo.basis,n=e[0],r=e[1],i=r.b.mul(t).divRound(this.n),o=n.b.neg().mul(t).divRound(this.n),s=i.mul(n.a),a=o.mul(r.a),u=i.mul(n.b),c=o.mul(r.b),l=t.sub(s).sub(a),h=u.add(c).neg();return{k1:l,k2:h}},u.prototype.pointFromX=function(t,e){t=new i(t,16),t.red||(t=t.toRed(this.red));var n=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var o=r.fromRed().isOdd();return(e&&!o||!e&&o)&&(r=r.redNeg()),this.point(t,r)},u.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,n=t.y,r=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},u.prototype._endoWnafMulAdd=function(t,e,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var n=e.redSqr().redISub(this.x).redISub(t.x),r=e.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},c.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,n=this.x.redSqr(),r=t.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(e).redMul(r),o=i.redSqr().redISub(this.x.redAdd(this.x)),s=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,s)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(t){return t=new i(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},c.prototype.mulAdd=function(t,e,n){var r=[this,e],i=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},c.prototype.jmulAdd=function(t,e,n){var r=[this,e],i=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},c.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},c.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var n=this.precomputed,r=function(t){return t.neg()};e.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return e},c.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var t=this.curve.jpoint(this.x,this.y,this.curve.one);return t},o(l,s.BasePoint),u.prototype.jpoint=function(t,e,n){return new l(this,t,e,n)},l.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),n=this.x.redMul(e),r=this.y.redMul(e).redMul(t);return this.curve.point(n,r)},l.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},l.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(e),i=t.x.redMul(n),o=this.y.redMul(e.redMul(t.z)),s=t.y.redMul(n.redMul(this.z)),a=r.redSub(i),u=o.redSub(s);if(0===a.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=a.redSqr(),l=c.redMul(a),h=r.redMul(c),d=u.redSqr().redIAdd(l).redISub(h).redISub(h),f=u.redMul(h.redISub(d)).redISub(o.redMul(l)),p=this.z.redMul(t.z).redMul(a);return this.curve.jpoint(d,f,p)},l.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),n=this.x,r=t.x.redMul(e),i=this.y,o=t.y.redMul(e).redMul(this.z),s=n.redSub(r),a=i.redSub(o);if(0===s.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),c=u.redMul(s),l=n.redMul(u),h=a.redSqr().redIAdd(c).redISub(l).redISub(l),d=a.redMul(l.redISub(h)).redISub(i.redMul(c)),f=this.z.redMul(s);return this.curve.jpoint(h,d,f)},l.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var e;if(this.curve.zeroA||this.curve.threeA){var n=this;for(e=0;e=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}},l.prototype.inspect=function(){return this.isInfinity()?"":""},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},3337:function(t,e,n){"use strict";var r=e;r.version=n("2801").version,r.utils=n("f3a3"),r.rand=n("fdac"),r.curve=n("4136"),r.curves=n("0cbb"),r.ec=n("b9a8"),r.eddsa=n("945d")},"334a":function(t,e,n){e=t.exports=n("4250"),e.Stream=e,e.Readable=e,e.Writable=n("19ea"),e.Duplex=n("e666"),e.Transform=n("09dc"),e.PassThrough=n("0ae3"),e.finished=n("ee93"),e.pipeline=n("fbd5")},"337f":function(t,e,n){!function(e,n){t.exports=n()}(0,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=90)}({17:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var r=n(18),i=function(){function t(){}return t.getFirstMatch=function(t,e){var n=e.match(t);return n&&n.length>0&&n[1]||""},t.getSecondMatch=function(t,e){var n=e.match(t);return n&&n.length>1&&n[2]||""},t.matchAndReturnConst=function(t,e,n){if(t.test(e))return n},t.getWindowsVersionName=function(t){switch(t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},t.getMacOSVersionName=function(t){var e=t.split(".").splice(0,2).map((function(t){return parseInt(t,10)||0}));if(e.push(0),10===e[0])switch(e[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},t.getAndroidVersionName=function(t){var e=t.split(".").splice(0,2).map((function(t){return parseInt(t,10)||0}));if(e.push(0),!(1===e[0]&&e[1]<5))return 1===e[0]&&e[1]<6?"Cupcake":1===e[0]&&e[1]>=6?"Donut":2===e[0]&&e[1]<2?"Eclair":2===e[0]&&2===e[1]?"Froyo":2===e[0]&&e[1]>2?"Gingerbread":3===e[0]?"Honeycomb":4===e[0]&&e[1]<1?"Ice Cream Sandwich":4===e[0]&&e[1]<4?"Jelly Bean":4===e[0]&&e[1]>=4?"KitKat":5===e[0]?"Lollipop":6===e[0]?"Marshmallow":7===e[0]?"Nougat":8===e[0]?"Oreo":9===e[0]?"Pie":void 0},t.getVersionPrecision=function(t){return t.split(".").length},t.compareVersions=function(e,n,r){void 0===r&&(r=!1);var i=t.getVersionPrecision(e),o=t.getVersionPrecision(n),s=Math.max(i,o),a=0,u=t.map([e,n],(function(e){var n=s-t.getVersionPrecision(e),r=e+new Array(n+1).join(".0");return t.map(r.split("."),(function(t){return new Array(20-t.length).join("0")+t})).reverse()}));for(r&&(a=s-Math.min(i,o)),s-=1;s>=a;){if(u[0][s]>u[1][s])return 1;if(u[0][s]===u[1][s]){if(s===a)return 0;s-=1}else if(u[0][s]1?i-1:0),s=1;s0){var s=Object.keys(n),u=a.default.find(s,(function(t){return e.isOS(t)}));if(u){var c=this.satisfies(n[u]);if(void 0!==c)return c}var l=a.default.find(s,(function(t){return e.isPlatform(t)}));if(l){var h=this.satisfies(n[l]);if(void 0!==h)return h}}if(o>0){var d=Object.keys(i),f=a.default.find(d,(function(t){return e.isBrowser(t,!0)}));if(void 0!==f)return this.compareVersion(i[f])}},e.isBrowser=function(t,e){void 0===e&&(e=!1);var n=this.getBrowserName().toLowerCase(),r=t.toLowerCase(),i=a.default.getBrowserTypeByAlias(r);return e&&i&&(r=i.toLowerCase()),r===n},e.compareVersion=function(t){var e=[0],n=t,r=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===t[0]||"<"===t[0]?(n=t.substr(1),"="===t[1]?(r=!0,n=t.substr(2)):e=[],">"===t[0]?e.push(1):e.push(-1)):"="===t[0]?n=t.substr(1):"~"===t[0]&&(r=!0,n=t.substr(1)),e.indexOf(a.default.compareVersions(i,n,r))>-1},e.isOS=function(t){return this.getOSName(!0)===String(t).toLowerCase()},e.isPlatform=function(t){return this.getPlatformType(!0)===String(t).toLowerCase()},e.isEngine=function(t){return this.getEngineName(!0)===String(t).toLowerCase()},e.is=function(t,e){return void 0===e&&(e=!1),this.isBrowser(t,e)||this.isOS(t)||this.isPlatform(t)},e.some=function(t){var e=this;return void 0===t&&(t=[]),t.some((function(t){return e.is(t)}))},t}();e.default=c,t.exports=e.default},92:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=/version\/(\d+(\.?_?\d+)+)/i,s=[{test:[/googlebot/i],describe:function(t){var e={name:"Googlebot"},n=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,t)||i.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/opera/i],describe:function(t){var e={name:"Opera"},n=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/opr\/|opios/i],describe:function(t){var e={name:"Opera"},n=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,t)||i.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/SamsungBrowser/i],describe:function(t){var e={name:"Samsung Internet for Android"},n=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/Whale/i],describe:function(t){var e={name:"NAVER Whale Browser"},n=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/MZBrowser/i],describe:function(t){var e={name:"MZ Browser"},n=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,t)||i.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/focus/i],describe:function(t){var e={name:"Focus"},n=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,t)||i.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/swing/i],describe:function(t){var e={name:"Swing"},n=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,t)||i.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/coast/i],describe:function(t){var e={name:"Opera Coast"},n=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(t){var e={name:"Opera Touch"},n=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/yabrowser/i],describe:function(t){var e={name:"Yandex Browser"},n=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/ucbrowser/i],describe:function(t){var e={name:"UC Browser"},n=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/Maxthon|mxios/i],describe:function(t){var e={name:"Maxthon"},n=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/epiphany/i],describe:function(t){var e={name:"Epiphany"},n=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/puffin/i],describe:function(t){var e={name:"Puffin"},n=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/sleipnir/i],describe:function(t){var e={name:"Sleipnir"},n=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/k-meleon/i],describe:function(t){var e={name:"K-Meleon"},n=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/micromessenger/i],describe:function(t){var e={name:"WeChat"},n=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/qqbrowser/i],describe:function(t){var e={name:/qqbrowserlite/i.test(t)?"QQ Browser Lite":"QQ Browser"},n=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/msie|trident/i],describe:function(t){var e={name:"Internet Explorer"},n=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/\sedg\//i],describe:function(t){var e={name:"Microsoft Edge"},n=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/edg([ea]|ios)/i],describe:function(t){var e={name:"Microsoft Edge"},n=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/vivaldi/i],describe:function(t){var e={name:"Vivaldi"},n=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/seamonkey/i],describe:function(t){var e={name:"SeaMonkey"},n=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/sailfish/i],describe:function(t){var e={name:"Sailfish"},n=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,t);return n&&(e.version=n),e}},{test:[/silk/i],describe:function(t){var e={name:"Amazon Silk"},n=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/phantom/i],describe:function(t){var e={name:"PhantomJS"},n=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/slimerjs/i],describe:function(t){var e={name:"SlimerJS"},n=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){var e={name:"BlackBerry"},n=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var e={name:"WebOS Browser"},n=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/bada/i],describe:function(t){var e={name:"Bada"},n=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/tizen/i],describe:function(t){var e={name:"Tizen"},n=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/qupzilla/i],describe:function(t){var e={name:"QupZilla"},n=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/firefox|iceweasel|fxios/i],describe:function(t){var e={name:"Firefox"},n=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/electron/i],describe:function(t){var e={name:"Electron"},n=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/MiuiBrowser/i],describe:function(t){var e={name:"Miui"},n=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/chromium/i],describe:function(t){var e={name:"Chromium"},n=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/chrome|crios|crmo/i],describe:function(t){var e={name:"Chrome"},n=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/GSA/i],describe:function(t){var e={name:"Google Search"},n=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:function(t){var e=!t.test(/like android/i),n=t.test(/android/i);return e&&n},describe:function(t){var e={name:"Android Browser"},n=i.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/playstation 4/i],describe:function(t){var e={name:"PlayStation 4"},n=i.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/safari|applewebkit/i],describe:function(t){var e={name:"Safari"},n=i.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/.*/i],describe:function(t){var e=-1!==t.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(e,t),version:i.default.getSecondMatch(e,t)}}}];e.default=s,t.exports=e.default},93:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),s=[{test:[/Roku\/DVP/],describe:function(t){var e=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,t);return{name:o.OS_MAP.Roku,version:e}}},{test:[/windows phone/i],describe:function(t){var e=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,t);return{name:o.OS_MAP.WindowsPhone,version:e}}},{test:[/windows /i],describe:function(t){var e=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,t),n=i.default.getWindowsVersionName(e);return{name:o.OS_MAP.Windows,version:e,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(t){var e={name:o.OS_MAP.iOS},n=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,t);return n&&(e.version=n),e}},{test:[/macintosh/i],describe:function(t){var e=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,t).replace(/[_\s]/g,"."),n=i.default.getMacOSVersionName(e),r={name:o.OS_MAP.MacOS,version:e};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe:function(t){var e=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,t).replace(/[_\s]/g,".");return{name:o.OS_MAP.iOS,version:e}}},{test:function(t){var e=!t.test(/like android/i),n=t.test(/android/i);return e&&n},describe:function(t){var e=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,t),n=i.default.getAndroidVersionName(e),r={name:o.OS_MAP.Android,version:e};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var e=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,t),n={name:o.OS_MAP.WebOS};return e&&e.length&&(n.version=e),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){var e=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,t)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,t)||i.default.getFirstMatch(/\bbb(\d+)/i,t);return{name:o.OS_MAP.BlackBerry,version:e}}},{test:[/bada/i],describe:function(t){var e=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,t);return{name:o.OS_MAP.Bada,version:e}}},{test:[/tizen/i],describe:function(t){var e=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,t);return{name:o.OS_MAP.Tizen,version:e}}},{test:[/linux/i],describe:function(){return{name:o.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:o.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(t){var e=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,t);return{name:o.OS_MAP.PlayStation4,version:e}}}];e.default=s,t.exports=e.default},94:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),s=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(t){var e=i.default.getFirstMatch(/(can-l01)/i,t)&&"Nova",n={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return e&&(n.model=e),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(t){var e=t.test(/ipod|iphone/i),n=t.test(/like (ipod|iphone)/i);return e&&!n},describe:function(t){var e=i.default.getFirstMatch(/(ipod|iphone)/i,t);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:e}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(t){return"blackberry"===t.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(t){return"bada"===t.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(t){return"windows phone"===t.getBrowserName()},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(t){var e=Number(String(t.getOSVersion()).split(".")[0]);return"android"===t.getOSName(!0)&&e>=3},describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(t){return"android"===t.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(t){return"macos"===t.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(t){return"windows"===t.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(t){return"linux"===t.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(t){return"playstation 4"===t.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(t){return"roku"===t.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}}];e.default=s,t.exports=e.default},95:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),s=[{test:function(t){return"microsoft edge"===t.getBrowserName(!0)},describe:function(t){if(/\sedg\//i.test(t))return{name:o.ENGINE_MAP.Blink};var e=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,t);return{name:o.ENGINE_MAP.EdgeHTML,version:e}}},{test:[/trident/i],describe:function(t){var e={name:o.ENGINE_MAP.Trident},n=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:function(t){return t.test(/presto/i)},describe:function(t){var e={name:o.ENGINE_MAP.Presto},n=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:function(t){var e=t.test(/gecko/i),n=t.test(/like gecko/i);return e&&!n},describe:function(t){var e={name:o.ENGINE_MAP.Gecko},n=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:o.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(t){var e={name:o.ENGINE_MAP.WebKit},n=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}}];e.default=s,t.exports=e.default}})}))},"339c":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"BroadcastChannel",{enumerable:!0,get:function(){return r.BroadcastChannel}}),Object.defineProperty(e,"OPEN_BROADCAST_CHANNELS",{enumerable:!0,get:function(){return r.OPEN_BROADCAST_CHANNELS}}),Object.defineProperty(e,"beLeader",{enumerable:!0,get:function(){return i.beLeader}}),Object.defineProperty(e,"clearNodeFolder",{enumerable:!0,get:function(){return r.clearNodeFolder}}),Object.defineProperty(e,"createLeaderElection",{enumerable:!0,get:function(){return i.createLeaderElection}}),Object.defineProperty(e,"enforceOptions",{enumerable:!0,get:function(){return r.enforceOptions}});var r=n("a48b"),i=n("e77d")},"33a9":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EthereumProviderError=e.EthereumRpcError=void 0;const r=n("375a");class i extends Error{constructor(t,e,n){if(!Number.isInteger(t))throw new Error('"code" must be an integer.');if(!e||"string"!==typeof e)throw new Error('"message" must be a nonempty string.');super(e),this.code=t,void 0!==n&&(this.data=n)}serialize(){const t={code:this.code,message:this.message};return void 0!==this.data&&(t.data=this.data),this.stack&&(t.stack=this.stack),t}toString(){return r.default(this.serialize(),a,2)}}e.EthereumRpcError=i;class o extends i{constructor(t,e,n){if(!s(t))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(t,e,n)}}function s(t){return Number.isInteger(t)&&t>=1e3&&t<=4999}function a(t,e){if("[Circular]"!==e)return e}e.EthereumProviderError=o},"33b6":function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return c}));var r=n("ba10"),i=n.n(r),o=n("64b9"),s=n("f5ea"),a=n.n(s),u=function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function s(t){try{u(r.next(t))}catch(e){o(e)}}function a(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(s,a)}u((r=r.apply(t,e||[])).next())}))};class c extends i.a{constructor(t,e){if(super(),this._network=e,this._publicKey=null,this._popup=null,this._handlerAdded=!1,this._nextRequestId=1,this._autoApprove=!1,this._responsePromises=new Map,this.handleMessage=t=>{var e;if(this._injectedProvider&&t.source===window||t.origin===(null===(e=this._providerUrl)||void 0===e?void 0:e.origin)&&t.source===this._popup)if("connected"===t.data.method){const e=new o["PublicKey"](t.data.params.publicKey);this._publicKey&&this._publicKey.equals(e)||(this._publicKey&&!this._publicKey.equals(e)&&this.handleDisconnect(),this._publicKey=e,this._autoApprove=!!t.data.params.autoApprove,this.emit("connect",this._publicKey))}else if("disconnected"===t.data.method)this.handleDisconnect();else if(t.data.result||t.data.error){const e=this._responsePromises.get(t.data.id);if(e){const[n,r]=e;t.data.result?n(t.data.result):r(new Error(t.data.error))}}},this._beforeUnload=()=>{this.disconnect()},h(t))this._injectedProvider=t;else{if(!l(t))throw new Error("provider parameter must be an injected provider or a URL string.");this._providerUrl=new URL(t),this._providerUrl.hash=new URLSearchParams({origin:window.location.origin,network:this._network}).toString()}}handleConnect(){var t;return this._handlerAdded||(this._handlerAdded=!0,window.addEventListener("message",this.handleMessage),window.addEventListener("beforeunload",this._beforeUnload)),this._injectedProvider?new Promise(t=>{this.sendRequest("connect",{}),t()}):(window.name="parent",this._popup=window.open(null===(t=this._providerUrl)||void 0===t?void 0:t.toString(),"_blank","location,resizable,width=460,height=675"),new Promise(t=>{this.once("connect",t)}))}handleDisconnect(){this._handlerAdded&&(this._handlerAdded=!1,window.removeEventListener("message",this.handleMessage),window.removeEventListener("beforeunload",this._beforeUnload)),this._publicKey&&(this._publicKey=null,this.emit("disconnect")),this._responsePromises.forEach(([,t],e)=>{this._responsePromises.delete(e),t(new Error("Wallet disconnected"))})}sendRequest(t,e){return u(this,void 0,void 0,(function*(){if("connect"!==t&&!this.connected)throw new Error("Wallet not connected");const n=this._nextRequestId;return++this._nextRequestId,new Promise((r,i)=>{var o,s,a,u;this._responsePromises.set(n,[r,i]),this._injectedProvider?this._injectedProvider.postMessage({jsonrpc:"2.0",id:n,method:t,params:Object.assign({network:this._network},e)}):(null===(o=this._popup)||void 0===o||o.postMessage({jsonrpc:"2.0",id:n,method:t,params:e},null!==(a=null===(s=this._providerUrl)||void 0===s?void 0:s.origin)&&void 0!==a?a:""),this.autoApprove||null===(u=this._popup)||void 0===u||u.focus())})}))}get publicKey(){return this._publicKey}get connected(){return null!==this._publicKey}get autoApprove(){return this._autoApprove}connect(){return u(this,void 0,void 0,(function*(){this._popup&&this._popup.close(),yield this.handleConnect()}))}disconnect(){return u(this,void 0,void 0,(function*(){this._injectedProvider&&(yield this.sendRequest("disconnect",{})),this._popup&&this._popup.close(),this.handleDisconnect()}))}sign(t,e){return u(this,void 0,void 0,(function*(){if(!(t instanceof Uint8Array))throw new Error("Data must be an instance of Uint8Array");const n=yield this.sendRequest("sign",{data:t,display:e}),r=a.a.decode(n.signature),i=new o["PublicKey"](n.publicKey);return{signature:r,publicKey:i}}))}signTransaction(t){return u(this,void 0,void 0,(function*(){const e=yield this.sendRequest("signTransaction",{message:a.a.encode(t.serializeMessage())}),n=a.a.decode(e.signature),r=new o["PublicKey"](e.publicKey);return t.addSignature(r,n),t}))}signAllTransactions(t){return u(this,void 0,void 0,(function*(){const e=yield this.sendRequest("signAllTransactions",{messages:t.map(t=>a.a.encode(t.serializeMessage()))}),n=e.signatures.map(t=>a.a.decode(t)),r=new o["PublicKey"](e.publicKey);return t=t.map((t,e)=>(t.addSignature(r,n[e]),t)),t}))}diffieHellman(t){return u(this,void 0,void 0,(function*(){if(!(t instanceof Uint8Array))throw new Error("Data must be an instance of Uint8Array");const e=yield this.sendRequest("diffieHellman",{publicKey:t});return e}))}}function l(t){return"string"===typeof t}function h(t){return d(t)&&"postMessage"in t&&"function"===typeof t.postMessage}function d(t){return"object"===typeof t&&null!==t}},"33e8":function(t,e,n){"use strict";n.d(e,"e",(function(){return S})),n.d(e,"c",(function(){return h})),n.d(e,"d",(function(){return w})),n.d(e,"a",(function(){return v})),n.d(e,"b",(function(){return M}));const r=Object.create(null);r["open"]="0",r["close"]="1",r["ping"]="2",r["pong"]="3",r["message"]="4",r["upgrade"]="5",r["noop"]="6";const i=Object.create(null);Object.keys(r).forEach(t=>{i[r[t]]=t});const o={type:"error",data:"parser error"},s="function"===typeof Blob||"undefined"!==typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),a="function"===typeof ArrayBuffer,u=t=>"function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,c=({type:t,data:e},n,i)=>s&&e instanceof Blob?n?i(e):l(e,i):a&&(e instanceof ArrayBuffer||u(e))?n?i(e):l(new Blob([e]),i):i(r[t]+(e||"")),l=(t,e)=>{const n=new FileReader;return n.onload=function(){const t=n.result.split(",")[1];e("b"+t)},n.readAsDataURL(t)};var h=c;const d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f="undefined"===typeof Uint8Array?[]:new Uint8Array(256);for(let A=0;A{let e,n,r,i,o,s=.75*t.length,a=t.length,u=0;"="===t[t.length-1]&&(s--,"="===t[t.length-2]&&s--);const c=new ArrayBuffer(s),l=new Uint8Array(c);for(e=0;e>4,l[u++]=(15&r)<<4|i>>2,l[u++]=(3&i)<<6|63&o;return c},m="function"===typeof ArrayBuffer,g=(t,e)=>{if("string"!==typeof t)return{type:"message",data:b(t,e)};const n=t.charAt(0);if("b"===n)return{type:"message",data:y(t.substring(1),e)};const r=i[n];return r?t.length>1?{type:i[n],data:t.substring(1)}:{type:i[n]}:o},y=(t,e)=>{if(m){const n=p(t);return b(n,e)}return{base64:!0,data:t}},b=(t,e)=>{switch(e){case"blob":return t instanceof ArrayBuffer?new Blob([t]):t;case"arraybuffer":default:return t}};var v=g;const _=String.fromCharCode(30),w=(t,e)=>{const n=t.length,r=new Array(n);let i=0;t.forEach((t,o)=>{h(t,!1,t=>{r[o]=t,++i===n&&e(r.join(_))})})},M=(t,e)=>{const n=t.split(_),r=[];for(let i=0;il.depthLimit)return void u(n,t,e,s);if("undefined"!==typeof l.edgesLimit&&i+1>l.edgesLimit)return void u(n,t,e,s);if(o.push(t),Array.isArray(t))for(h=0;he?1:0}function h(t,e,n,r){"undefined"===typeof r&&(r=s());var a,u=d(t,"",0,[],void 0,0,r)||t;try{a=0===o.length?JSON.stringify(u,e,n):JSON.stringify(u,f(e),n)}catch(l){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{while(0!==i.length){var c=i.pop();4===c.length?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return a}function d(t,e,o,s,a,c,h){var f;if(c+=1,"object"===typeof t&&null!==t){for(f=0;fh.depthLimit)return void u(n,t,e,a);if("undefined"!==typeof h.edgesLimit&&o+1>h.edgesLimit)return void u(n,t,e,a);if(s.push(t),Array.isArray(t))for(f=0;f0)for(var r=0;r=31?r.error("Multi-octet tag encoding unsupported"):(e||(i|=32),i|=s.tagClassByName[n||"universal"]<<6,i)}t.exports=a,a.prototype.encode=function(t,e){return this.tree._encode(t,e).join()},r(u,o),u.prototype._encodeComposite=function(t,e,n,r){const o=l(t,e,n,this.reporter);if(r.length<128){const t=i.alloc(2);return t[0]=o,t[1]=r.length,this._createEncoderBuffer([t,r])}let s=1;for(let i=r.length;i>=256;i>>=8)s++;const a=i.alloc(2+s);a[0]=o,a[1]=128|s;for(let i=1+s,u=r.length;u>0;i--,u>>=8)a[i]=255&u;return this._createEncoderBuffer([a,r])},u.prototype._encodeStr=function(t,e){if("bitstr"===e)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"===e){const e=i.alloc(2*t.length);for(let n=0;n=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,40*t[0]+t[1])}let r=0;for(let i=0;i=128;e>>=7)r++}const o=i.alloc(r);let s=o.length-1;for(let i=t.length-1;i>=0;i--){let e=t[i];o[s--]=127&e;while((e>>=7)>0)o[s--]=128|127&e}return this._createEncoderBuffer(o)},u.prototype._encodeTime=function(t,e){let n;const r=new Date(t);return"gentime"===e?n=[c(r.getUTCFullYear()),c(r.getUTCMonth()+1),c(r.getUTCDate()),c(r.getUTCHours()),c(r.getUTCMinutes()),c(r.getUTCSeconds()),"Z"].join(""):"utctime"===e?n=[c(r.getUTCFullYear()%100),c(r.getUTCMonth()+1),c(r.getUTCDate()),c(r.getUTCHours()),c(r.getUTCMinutes()),c(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(n,"octstr")},u.prototype._encodeNull=function(){return this._createEncoderBuffer("")},u.prototype._encodeInt=function(t,e){if("string"===typeof t){if(!e)return this.reporter.error("String int or enum given, but no values map");if(!e.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=e[t]}if("number"!==typeof t&&!i.isBuffer(t)){const e=t.toArray();!t.sign&&128&e[0]&&e.unshift(0),t=i.from(e)}if(i.isBuffer(t)){let e=t.length;0===t.length&&e++;const n=i.alloc(e);return t.copy(n),0===t.length&&(n[0]=0),this._createEncoderBuffer(n)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);let n=1;for(let i=t;i>=256;i>>=8)n++;const r=new Array(n);for(let i=r.length-1;i>=0;i--)r[i]=255&t,t>>=8;return 128&r[0]&&r.unshift(0),this._createEncoderBuffer(i.from(r))},u.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},u.prototype._use=function(t,e){return"function"===typeof t&&(t=t(e)),t._getEncoder("der").tree},u.prototype._skipDefault=function(t,e,n){const r=this._baseState;let i;if(null===r["default"])return!1;const o=t.join();if(void 0===r.defaultBuffer&&(r.defaultBuffer=this._encodeValue(r["default"],e,n).join()),o.length!==r.defaultBuffer.length)return!1;for(i=0;i=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function u(t,e,n){var r=a(t,n);return n-1>=e&&(r|=a(t,n-1)<<4),r}function c(t,e,n,r){for(var i=0,o=Math.min(t.length,n),s=e;s=49?a-49+10:a>=17?a-17+10:a}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"===typeof t)return this._initNumber(t,e,n);if("object"===typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&(i++,this.negative=1),i=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);else if("le"===n)for(i=0,o=0;i>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r=e;r-=2)i=u(t,e,r)<=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else{var a=t.length-e;for(r=a%2===0?e+1:e;r=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8}this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,s=o%r,a=Math.min(o,o-s)+n,u=0,l=n;l1&&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},o.prototype.inspect=function(){return(this.red?""};var l=["","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],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(t){for(var e=new Array(t.bitLength()),n=0;n>>i}return e}function p(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,u=s/67108864|0;n.words[0]=a;for(var c=1;c>>26,h=67108863&u,d=Math.min(c,e.length-1),f=Math.max(0,c-t.length+1);f<=d;f++){var p=c-f|0;i=0|t.words[p],o=0|e.words[f],s=i*o+h,l+=s/67108864|0,h=67108863&s}n.words[c]=0|h,u=0|l}return 0!==u?n.words[c]=0|u:n.length--,n.strip()}o.prototype.toString=function(t,e){var n;if(t=t||10,e=0|e||1,16===t||"hex"===t){n="";for(var i=0,o=0,s=0;s>>24-i&16777215,n=0!==o||s!==this.length-1?l[6-u.length]+u+n:u+n,i+=2,i>=26&&(i-=26,s--)}0!==o&&(n=o.toString(16)+n);while(n.length%e!==0)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var c=h[t],f=d[t];n="";var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modn(f).toString(t);p=p.idivn(f),n=p.isZero()?m+n:l[c-m.length]+m+n}this.isZero()&&(n="0"+n);while(n.length%e!==0)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r("undefined"!==typeof s),this.toArrayLike(s,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var s,a,u="le"===e,c=new t(o),l=this.clone();if(u){for(a=0;!l.isZero();a++)s=l.andln(255),l.iushrn(8),c[a]=s;for(;a=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0===(8191&e)&&(n+=13,e>>>=13),0===(127&e)&&(n+=7,e>>>=7),0===(15&e)&&(n+=4,e>>>=4),0===(3&e)&&(n+=2,e>>>=2),0===(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;nt.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"===typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,s=0;s>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,f=0|s[1],p=8191&f,m=f>>>13,g=0|s[2],y=8191&g,b=g>>>13,v=0|s[3],_=8191&v,w=v>>>13,M=0|s[4],S=8191&M,A=M>>>13,k=0|s[5],E=8191&k,L=k>>>13,D=0|s[6],T=8191&D,O=D>>>13,x=0|s[7],I=8191&x,j=x>>>13,N=0|s[8],P=8191&N,C=N>>>13,R=0|s[9],Y=8191&R,B=R>>>13,z=0|a[0],U=8191&z,W=z>>>13,H=0|a[1],F=8191&H,q=H>>>13,V=0|a[2],K=8191&V,G=V>>>13,Q=0|a[3],Z=8191&Q,J=Q>>>13,$=0|a[4],X=8191&$,tt=$>>>13,et=0|a[5],nt=8191&et,rt=et>>>13,it=0|a[6],ot=8191&it,st=it>>>13,at=0|a[7],ut=8191&at,ct=at>>>13,lt=0|a[8],ht=8191<,dt=lt>>>13,ft=0|a[9],pt=8191&ft,mt=ft>>>13;n.negative=t.negative^e.negative,n.length=19,r=Math.imul(h,U),i=Math.imul(h,W),i=i+Math.imul(d,U)|0,o=Math.imul(d,W);var gt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(p,U),i=Math.imul(p,W),i=i+Math.imul(m,U)|0,o=Math.imul(m,W),r=r+Math.imul(h,F)|0,i=i+Math.imul(h,q)|0,i=i+Math.imul(d,F)|0,o=o+Math.imul(d,q)|0;var yt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(y,U),i=Math.imul(y,W),i=i+Math.imul(b,U)|0,o=Math.imul(b,W),r=r+Math.imul(p,F)|0,i=i+Math.imul(p,q)|0,i=i+Math.imul(m,F)|0,o=o+Math.imul(m,q)|0,r=r+Math.imul(h,K)|0,i=i+Math.imul(h,G)|0,i=i+Math.imul(d,K)|0,o=o+Math.imul(d,G)|0;var bt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(_,U),i=Math.imul(_,W),i=i+Math.imul(w,U)|0,o=Math.imul(w,W),r=r+Math.imul(y,F)|0,i=i+Math.imul(y,q)|0,i=i+Math.imul(b,F)|0,o=o+Math.imul(b,q)|0,r=r+Math.imul(p,K)|0,i=i+Math.imul(p,G)|0,i=i+Math.imul(m,K)|0,o=o+Math.imul(m,G)|0,r=r+Math.imul(h,Z)|0,i=i+Math.imul(h,J)|0,i=i+Math.imul(d,Z)|0,o=o+Math.imul(d,J)|0;var vt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(S,U),i=Math.imul(S,W),i=i+Math.imul(A,U)|0,o=Math.imul(A,W),r=r+Math.imul(_,F)|0,i=i+Math.imul(_,q)|0,i=i+Math.imul(w,F)|0,o=o+Math.imul(w,q)|0,r=r+Math.imul(y,K)|0,i=i+Math.imul(y,G)|0,i=i+Math.imul(b,K)|0,o=o+Math.imul(b,G)|0,r=r+Math.imul(p,Z)|0,i=i+Math.imul(p,J)|0,i=i+Math.imul(m,Z)|0,o=o+Math.imul(m,J)|0,r=r+Math.imul(h,X)|0,i=i+Math.imul(h,tt)|0,i=i+Math.imul(d,X)|0,o=o+Math.imul(d,tt)|0;var _t=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(E,U),i=Math.imul(E,W),i=i+Math.imul(L,U)|0,o=Math.imul(L,W),r=r+Math.imul(S,F)|0,i=i+Math.imul(S,q)|0,i=i+Math.imul(A,F)|0,o=o+Math.imul(A,q)|0,r=r+Math.imul(_,K)|0,i=i+Math.imul(_,G)|0,i=i+Math.imul(w,K)|0,o=o+Math.imul(w,G)|0,r=r+Math.imul(y,Z)|0,i=i+Math.imul(y,J)|0,i=i+Math.imul(b,Z)|0,o=o+Math.imul(b,J)|0,r=r+Math.imul(p,X)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(m,X)|0,o=o+Math.imul(m,tt)|0,r=r+Math.imul(h,nt)|0,i=i+Math.imul(h,rt)|0,i=i+Math.imul(d,nt)|0,o=o+Math.imul(d,rt)|0;var wt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(T,U),i=Math.imul(T,W),i=i+Math.imul(O,U)|0,o=Math.imul(O,W),r=r+Math.imul(E,F)|0,i=i+Math.imul(E,q)|0,i=i+Math.imul(L,F)|0,o=o+Math.imul(L,q)|0,r=r+Math.imul(S,K)|0,i=i+Math.imul(S,G)|0,i=i+Math.imul(A,K)|0,o=o+Math.imul(A,G)|0,r=r+Math.imul(_,Z)|0,i=i+Math.imul(_,J)|0,i=i+Math.imul(w,Z)|0,o=o+Math.imul(w,J)|0,r=r+Math.imul(y,X)|0,i=i+Math.imul(y,tt)|0,i=i+Math.imul(b,X)|0,o=o+Math.imul(b,tt)|0,r=r+Math.imul(p,nt)|0,i=i+Math.imul(p,rt)|0,i=i+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0,r=r+Math.imul(h,ot)|0,i=i+Math.imul(h,st)|0,i=i+Math.imul(d,ot)|0,o=o+Math.imul(d,st)|0;var Mt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(I,U),i=Math.imul(I,W),i=i+Math.imul(j,U)|0,o=Math.imul(j,W),r=r+Math.imul(T,F)|0,i=i+Math.imul(T,q)|0,i=i+Math.imul(O,F)|0,o=o+Math.imul(O,q)|0,r=r+Math.imul(E,K)|0,i=i+Math.imul(E,G)|0,i=i+Math.imul(L,K)|0,o=o+Math.imul(L,G)|0,r=r+Math.imul(S,Z)|0,i=i+Math.imul(S,J)|0,i=i+Math.imul(A,Z)|0,o=o+Math.imul(A,J)|0,r=r+Math.imul(_,X)|0,i=i+Math.imul(_,tt)|0,i=i+Math.imul(w,X)|0,o=o+Math.imul(w,tt)|0,r=r+Math.imul(y,nt)|0,i=i+Math.imul(y,rt)|0,i=i+Math.imul(b,nt)|0,o=o+Math.imul(b,rt)|0,r=r+Math.imul(p,ot)|0,i=i+Math.imul(p,st)|0,i=i+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0,r=r+Math.imul(h,ut)|0,i=i+Math.imul(h,ct)|0,i=i+Math.imul(d,ut)|0,o=o+Math.imul(d,ct)|0;var St=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(P,U),i=Math.imul(P,W),i=i+Math.imul(C,U)|0,o=Math.imul(C,W),r=r+Math.imul(I,F)|0,i=i+Math.imul(I,q)|0,i=i+Math.imul(j,F)|0,o=o+Math.imul(j,q)|0,r=r+Math.imul(T,K)|0,i=i+Math.imul(T,G)|0,i=i+Math.imul(O,K)|0,o=o+Math.imul(O,G)|0,r=r+Math.imul(E,Z)|0,i=i+Math.imul(E,J)|0,i=i+Math.imul(L,Z)|0,o=o+Math.imul(L,J)|0,r=r+Math.imul(S,X)|0,i=i+Math.imul(S,tt)|0,i=i+Math.imul(A,X)|0,o=o+Math.imul(A,tt)|0,r=r+Math.imul(_,nt)|0,i=i+Math.imul(_,rt)|0,i=i+Math.imul(w,nt)|0,o=o+Math.imul(w,rt)|0,r=r+Math.imul(y,ot)|0,i=i+Math.imul(y,st)|0,i=i+Math.imul(b,ot)|0,o=o+Math.imul(b,st)|0,r=r+Math.imul(p,ut)|0,i=i+Math.imul(p,ct)|0,i=i+Math.imul(m,ut)|0,o=o+Math.imul(m,ct)|0,r=r+Math.imul(h,ht)|0,i=i+Math.imul(h,dt)|0,i=i+Math.imul(d,ht)|0,o=o+Math.imul(d,dt)|0;var At=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(Y,U),i=Math.imul(Y,W),i=i+Math.imul(B,U)|0,o=Math.imul(B,W),r=r+Math.imul(P,F)|0,i=i+Math.imul(P,q)|0,i=i+Math.imul(C,F)|0,o=o+Math.imul(C,q)|0,r=r+Math.imul(I,K)|0,i=i+Math.imul(I,G)|0,i=i+Math.imul(j,K)|0,o=o+Math.imul(j,G)|0,r=r+Math.imul(T,Z)|0,i=i+Math.imul(T,J)|0,i=i+Math.imul(O,Z)|0,o=o+Math.imul(O,J)|0,r=r+Math.imul(E,X)|0,i=i+Math.imul(E,tt)|0,i=i+Math.imul(L,X)|0,o=o+Math.imul(L,tt)|0,r=r+Math.imul(S,nt)|0,i=i+Math.imul(S,rt)|0,i=i+Math.imul(A,nt)|0,o=o+Math.imul(A,rt)|0,r=r+Math.imul(_,ot)|0,i=i+Math.imul(_,st)|0,i=i+Math.imul(w,ot)|0,o=o+Math.imul(w,st)|0,r=r+Math.imul(y,ut)|0,i=i+Math.imul(y,ct)|0,i=i+Math.imul(b,ut)|0,o=o+Math.imul(b,ct)|0,r=r+Math.imul(p,ht)|0,i=i+Math.imul(p,dt)|0,i=i+Math.imul(m,ht)|0,o=o+Math.imul(m,dt)|0,r=r+Math.imul(h,pt)|0,i=i+Math.imul(h,mt)|0,i=i+Math.imul(d,pt)|0,o=o+Math.imul(d,mt)|0;var kt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(Y,F),i=Math.imul(Y,q),i=i+Math.imul(B,F)|0,o=Math.imul(B,q),r=r+Math.imul(P,K)|0,i=i+Math.imul(P,G)|0,i=i+Math.imul(C,K)|0,o=o+Math.imul(C,G)|0,r=r+Math.imul(I,Z)|0,i=i+Math.imul(I,J)|0,i=i+Math.imul(j,Z)|0,o=o+Math.imul(j,J)|0,r=r+Math.imul(T,X)|0,i=i+Math.imul(T,tt)|0,i=i+Math.imul(O,X)|0,o=o+Math.imul(O,tt)|0,r=r+Math.imul(E,nt)|0,i=i+Math.imul(E,rt)|0,i=i+Math.imul(L,nt)|0,o=o+Math.imul(L,rt)|0,r=r+Math.imul(S,ot)|0,i=i+Math.imul(S,st)|0,i=i+Math.imul(A,ot)|0,o=o+Math.imul(A,st)|0,r=r+Math.imul(_,ut)|0,i=i+Math.imul(_,ct)|0,i=i+Math.imul(w,ut)|0,o=o+Math.imul(w,ct)|0,r=r+Math.imul(y,ht)|0,i=i+Math.imul(y,dt)|0,i=i+Math.imul(b,ht)|0,o=o+Math.imul(b,dt)|0,r=r+Math.imul(p,pt)|0,i=i+Math.imul(p,mt)|0,i=i+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Et=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(Y,K),i=Math.imul(Y,G),i=i+Math.imul(B,K)|0,o=Math.imul(B,G),r=r+Math.imul(P,Z)|0,i=i+Math.imul(P,J)|0,i=i+Math.imul(C,Z)|0,o=o+Math.imul(C,J)|0,r=r+Math.imul(I,X)|0,i=i+Math.imul(I,tt)|0,i=i+Math.imul(j,X)|0,o=o+Math.imul(j,tt)|0,r=r+Math.imul(T,nt)|0,i=i+Math.imul(T,rt)|0,i=i+Math.imul(O,nt)|0,o=o+Math.imul(O,rt)|0,r=r+Math.imul(E,ot)|0,i=i+Math.imul(E,st)|0,i=i+Math.imul(L,ot)|0,o=o+Math.imul(L,st)|0,r=r+Math.imul(S,ut)|0,i=i+Math.imul(S,ct)|0,i=i+Math.imul(A,ut)|0,o=o+Math.imul(A,ct)|0,r=r+Math.imul(_,ht)|0,i=i+Math.imul(_,dt)|0,i=i+Math.imul(w,ht)|0,o=o+Math.imul(w,dt)|0,r=r+Math.imul(y,pt)|0,i=i+Math.imul(y,mt)|0,i=i+Math.imul(b,pt)|0,o=o+Math.imul(b,mt)|0;var Lt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,r=Math.imul(Y,Z),i=Math.imul(Y,J),i=i+Math.imul(B,Z)|0,o=Math.imul(B,J),r=r+Math.imul(P,X)|0,i=i+Math.imul(P,tt)|0,i=i+Math.imul(C,X)|0,o=o+Math.imul(C,tt)|0,r=r+Math.imul(I,nt)|0,i=i+Math.imul(I,rt)|0,i=i+Math.imul(j,nt)|0,o=o+Math.imul(j,rt)|0,r=r+Math.imul(T,ot)|0,i=i+Math.imul(T,st)|0,i=i+Math.imul(O,ot)|0,o=o+Math.imul(O,st)|0,r=r+Math.imul(E,ut)|0,i=i+Math.imul(E,ct)|0,i=i+Math.imul(L,ut)|0,o=o+Math.imul(L,ct)|0,r=r+Math.imul(S,ht)|0,i=i+Math.imul(S,dt)|0,i=i+Math.imul(A,ht)|0,o=o+Math.imul(A,dt)|0,r=r+Math.imul(_,pt)|0,i=i+Math.imul(_,mt)|0,i=i+Math.imul(w,pt)|0,o=o+Math.imul(w,mt)|0;var Dt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,r=Math.imul(Y,X),i=Math.imul(Y,tt),i=i+Math.imul(B,X)|0,o=Math.imul(B,tt),r=r+Math.imul(P,nt)|0,i=i+Math.imul(P,rt)|0,i=i+Math.imul(C,nt)|0,o=o+Math.imul(C,rt)|0,r=r+Math.imul(I,ot)|0,i=i+Math.imul(I,st)|0,i=i+Math.imul(j,ot)|0,o=o+Math.imul(j,st)|0,r=r+Math.imul(T,ut)|0,i=i+Math.imul(T,ct)|0,i=i+Math.imul(O,ut)|0,o=o+Math.imul(O,ct)|0,r=r+Math.imul(E,ht)|0,i=i+Math.imul(E,dt)|0,i=i+Math.imul(L,ht)|0,o=o+Math.imul(L,dt)|0,r=r+Math.imul(S,pt)|0,i=i+Math.imul(S,mt)|0,i=i+Math.imul(A,pt)|0,o=o+Math.imul(A,mt)|0;var Tt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(Y,nt),i=Math.imul(Y,rt),i=i+Math.imul(B,nt)|0,o=Math.imul(B,rt),r=r+Math.imul(P,ot)|0,i=i+Math.imul(P,st)|0,i=i+Math.imul(C,ot)|0,o=o+Math.imul(C,st)|0,r=r+Math.imul(I,ut)|0,i=i+Math.imul(I,ct)|0,i=i+Math.imul(j,ut)|0,o=o+Math.imul(j,ct)|0,r=r+Math.imul(T,ht)|0,i=i+Math.imul(T,dt)|0,i=i+Math.imul(O,ht)|0,o=o+Math.imul(O,dt)|0,r=r+Math.imul(E,pt)|0,i=i+Math.imul(E,mt)|0,i=i+Math.imul(L,pt)|0,o=o+Math.imul(L,mt)|0;var Ot=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(Y,ot),i=Math.imul(Y,st),i=i+Math.imul(B,ot)|0,o=Math.imul(B,st),r=r+Math.imul(P,ut)|0,i=i+Math.imul(P,ct)|0,i=i+Math.imul(C,ut)|0,o=o+Math.imul(C,ct)|0,r=r+Math.imul(I,ht)|0,i=i+Math.imul(I,dt)|0,i=i+Math.imul(j,ht)|0,o=o+Math.imul(j,dt)|0,r=r+Math.imul(T,pt)|0,i=i+Math.imul(T,mt)|0,i=i+Math.imul(O,pt)|0,o=o+Math.imul(O,mt)|0;var xt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(Y,ut),i=Math.imul(Y,ct),i=i+Math.imul(B,ut)|0,o=Math.imul(B,ct),r=r+Math.imul(P,ht)|0,i=i+Math.imul(P,dt)|0,i=i+Math.imul(C,ht)|0,o=o+Math.imul(C,dt)|0,r=r+Math.imul(I,pt)|0,i=i+Math.imul(I,mt)|0,i=i+Math.imul(j,pt)|0,o=o+Math.imul(j,mt)|0;var It=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(Y,ht),i=Math.imul(Y,dt),i=i+Math.imul(B,ht)|0,o=Math.imul(B,dt),r=r+Math.imul(P,pt)|0,i=i+Math.imul(P,mt)|0,i=i+Math.imul(C,pt)|0,o=o+Math.imul(C,mt)|0;var jt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(Y,pt),i=Math.imul(Y,mt),i=i+Math.imul(B,pt)|0,o=Math.imul(B,mt);var Nt=(c+r|0)+((8191&i)<<13)|0;return c=(o+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,u[0]=gt,u[1]=yt,u[2]=bt,u[3]=vt,u[4]=_t,u[5]=wt,u[6]=Mt,u[7]=St,u[8]=At,u[9]=kt,u[10]=Et,u[11]=Lt,u[12]=Dt,u[13]=Tt,u[14]=Ot,u[15]=xt,u[16]=It,u[17]=jt,u[18]=Nt,0!==c&&(u[19]=c,n.length++),n};function g(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o>>26)|0,i+=s>>>26,s&=67108863}n.words[o]=a,r=s,s=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}function y(t,e,n){var r=new b;return r.mulp(t,e,n)}function b(t,e){this.x=t,this.y=e}Math.imul||(m=p),o.prototype.mulTo=function(t,e){var n,r=this.length+t.length;return n=10===this.length&&10===t.length?m(this,t,e):r<63?p(this,t,e):r<1024?g(this,t,e):y(this,t,e),n},b.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r>=1;return r},b.prototype.permute=function(t,e,n,r,i,o){for(var s=0;s>>=1)i++;return 1<>>=13,n[2*s+1]=8191&o,o>>>=13;for(s=2*e;s>=26,e+=i/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=f(t);if(0===e.length)return new o(1);for(var n=this,r=0;r=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var s=0;for(e=0;e>>26-n}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<s)for(this.length-=s,c=0;c=0&&(0!==l||c>=i);c--){var h=0|this.words[c];this.words[c]=l<<26-o|h>>>o,l=h&a}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"===typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i>26,this.words[i+n]=67108863&o;if(0===a)return this.strip();for(r(-1===a),a=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=this.length-t.length,r=this.clone(),i=t,s=0|i.words[i.length-1],a=this._countBits(s);n=26-a,0!==n&&(i=i.ushln(n),r.iushln(n),s=0|i.words[i.length-1]);var u,c=r.length-i.length;if("mod"!==e){u=new o(null),u.length=c+1,u.words=new Array(u.length);for(var l=0;l=0;d--){var f=67108864*(0|r.words[i.length+d])+(0|r.words[i.length+d-1]);f=Math.min(f/s|0,67108863),r._ishlnsubmul(i,f,d);while(0!==r.negative)f--,r.negative=0,r._ishlnsubmul(i,1,d),r.isZero()||(r.negative^=1);u&&(u.words[d]=f)}return u&&u.strip(),r.strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:u||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(s=a.mod.neg(),n&&0!==s.negative&&s.iadd(t)),{div:i,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),n&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,s,a},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i=new o(1),s=new o(0),a=new o(0),u=new o(1),c=0;while(e.isEven()&&n.isEven())e.iushrn(1),n.iushrn(1),++c;var l=n.clone(),h=e.clone();while(!e.isZero()){for(var d=0,f=1;0===(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0){e.iushrn(d);while(d-- >0)(i.isOdd()||s.isOdd())&&(i.iadd(l),s.isub(h)),i.iushrn(1),s.iushrn(1)}for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0){n.iushrn(p);while(p-- >0)(a.isOdd()||u.isOdd())&&(a.iadd(l),u.isub(h)),a.iushrn(1),u.iushrn(1)}e.cmp(n)>=0?(e.isub(n),i.isub(a),s.isub(u)):(n.isub(e),a.isub(i),u.isub(s))}return{a:a,b:u,gcd:n.iushln(c)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i,s=new o(1),a=new o(0),u=n.clone();while(e.cmpn(1)>0&&n.cmpn(1)>0){for(var c=0,l=1;0===(e.words[0]&l)&&c<26;++c,l<<=1);if(c>0){e.iushrn(c);while(c-- >0)s.isOdd()&&s.iadd(u),s.iushrn(1)}for(var h=0,d=1;0===(n.words[0]&d)&&h<26;++h,d<<=1);if(h>0){n.iushrn(h);while(h-- >0)a.isOdd()&&a.iadd(u),a.iushrn(1)}e.cmp(n)>=0?(e.isub(n),s.isub(a)):(n.isub(e),a.isub(s))}return i=0===e.cmpn(1)?s:a,i.cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);do{while(e.isEven())e.iushrn(1);while(n.isEven())n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}while(1);return n.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"===typeof t);var e=t%26,n=(t-e)/26,i=1<>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){ri&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new k(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function _(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function S(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function E(t){k.call(this,t),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)}_.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},_.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),n=this.imulK(n),n=n.iadd(this.tmp),e=n.bitLength()}while(e>this.n);var r=e0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},_.prototype.split=function(t,e){t.iushrn(this.n,0,e)},_.prototype.imulK=function(t){return t.imul(this.k)},i(w,_),w.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i>>22,o=s}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new w;else if("p224"===t)e=new M;else if("p192"===t)e=new S;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new A}return v[t]=e,e},k.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},k.prototype._verify2=function(t,e){r(0===(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},k.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},k.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},k.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},k.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},k.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},k.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},k.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},k.prototype.isqr=function(t){return this.imul(t,t.clone())},k.prototype.sqr=function(t){return this.mul(t,t)},k.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2===1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}var i=this.m.subn(1),s=0;while(!i.isZero()&&0===i.andln(1))s++,i.iushrn(1);r(!i.isZero());var a=new o(1).toRed(this),u=a.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();l=new o(2*l*l).toRed(this);while(0!==this.pow(l,c).cmp(u))l.redIAdd(u);var h=this.pow(l,i),d=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),p=s;while(0!==f.cmp(a)){for(var m=f,g=0;0!==m.cmp(a);g++)m=m.redSqr();r(g=0;i--){for(var l=e.words[i],h=c-1;h>=0;h--){var d=l>>h&1;s!==r[0]&&(s=this.sqr(s)),0!==d||0!==a?(a<<=1,a|=d,u++,(u===n||0===i&&0===h)&&(s=this.mul(s,r[a]),u=0,a=0)):u=0}c=26}return s},k.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},k.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new E(t)},i(E,k),E.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},E.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},E.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).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)},E.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},E.prototype.invm=function(t){var e=this.imod(t._invmp(this.m).mul(this.r2));return e._forceRed(this)}})(t,this)}).call(this,n("62e4")(t))},"380f":function(t,e,n){"use strict";var r=n("f3a3"),i=r.assert,o=r.parseBytes,s=r.cachedProperty;function a(t,e){this.eddsa=t,this._secret=o(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=o(e.pub)}a.fromPublic=function(t,e){return e instanceof a?e:new a(t,{pub:e})},a.fromSecret=function(t,e){return e instanceof a?e:new a(t,{secret:e})},a.prototype.secret=function(){return this._secret},s(a,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),s(a,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),s(a,"privBytes",(function(){var t=this.eddsa,e=this.hash(),n=t.encodingLength-1,r=e.slice(0,t.encodingLength);return r[0]&=248,r[n]&=127,r[n]|=64,r})),s(a,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),s(a,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),s(a,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),a.prototype.sign=function(t){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)},a.prototype.verify=function(t,e){return this.eddsa.verify(t,e,this)},a.prototype.getSecret=function(t){return i(this._secret,"KeyPair is public only"),r.encode(this.secret(),t)},a.prototype.getPublic=function(t){return r.encode(this.pubBytes(),t)},t.exports=a},3886:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10,n=1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n}});return e}))},"38e2":function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";var e=this.head,n=""+e.data;while(e=e.next)n+=t+e.data;return n}},{key:"concat",value:function(t){if(0===this.length)return l.alloc(0);var e=l.allocUnsafe(t>>>0),n=this.head,r=0;while(n)p(n.data,e,r),r+=n.data.length,n=n.next;return e}},{key:"consume",value:function(t,e){var n;return ti.length?i.length:t;if(o===i.length?r+=i:r+=i.slice(0,t),t-=o,0===t){o===i.length?(++n,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(t){var e=l.allocUnsafe(t),n=this.head,r=1;n.data.copy(e),t-=n.data.length;while(n=n.next){var i=n.data,o=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,o),t-=o,0===t){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,e}},{key:f,value:function(t,e){return d(this,i({},e,{depth:0,customInspect:!1}))}}]),t}()},"392f":function(t,e,n){const r=n("0d26");t.exports={re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:n("11a3").SEMVER_SPEC_VERSION,SemVer:n("c2a4"),compareIdentifiers:n("fced").compareIdentifiers,rcompareIdentifiers:n("fced").rcompareIdentifiers,parse:n("2ae6"),valid:n("4024"),clean:n("8acd"),inc:n("40a3"),diff:n("7239"),major:n("5536"),minor:n("cde5"),patch:n("7cbf"),prerelease:n("1f59"),compare:n("61dc"),rcompare:n("9965"),compareLoose:n("c0e7"),compareBuild:n("0b47"),sort:n("46ec"),rsort:n("f9fd"),gt:n("54cf"),lt:n("144b"),eq:n("c53d"),neq:n("9074"),gte:n("dcc1"),lte:n("0a9d"),cmp:n("dda2"),coerce:n("913b"),Comparator:n("49ac"),Range:n("0872"),satisfies:n("5503"),toComparators:n("7467"),maxSatisfying:n("6a56"),minSatisfying:n("fffa"),minVersion:n("f7c0"),validRange:n("ed3c"),outside:n("40ab"),gtr:n("05f8"),ltr:n("694f"),intersects:n("b127"),simplifyRange:n("cdff"),subset:n("f552")}},3934:function(t,e,n){"use strict";var r=n("c532");t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(e){var n=r.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return function(){return!0}}()},"399f":function(t,e,n){(function(t){(function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var s;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{s="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:n(3).Buffer}catch(O){}function a(t,e){var n=t.charCodeAt(e);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+t)}function u(t,e,n){var r=a(t,n);return n-1>=e&&(r|=a(t,n-1)<<4),r}function c(t,e,n,i){for(var o=0,s=0,a=Math.min(t.length,n),u=e;u=49?c-49+10:c>=17?c-17+10:c,r(c>=0&&s0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"===typeof t)return this._initNumber(t,e,n);if("object"===typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&(i++,this.negative=1),i=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);else if("le"===n)for(i=0,o=0;i>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);return this._strip()},o.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r=e;r-=2)i=u(t,e,r)<=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else{var a=t.length-e;for(r=a%2===0?e+1:e;r=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8}this._strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,s=o%r,a=Math.min(o,o-s)+n,u=0,l=n;l1&&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")]=h}catch(O){o.prototype.inspect=h}else o.prototype.inspect=h;function h(){return(this.red?""}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"],f=[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,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(t,e){var n;if(t=t||10,e=0|e||1,16===t||"hex"===t){n="";for(var i=0,o=0,s=0;s>>24-i&16777215,i+=2,i>=26&&(i-=26,s--),n=0!==o||s!==this.length-1?d[6-u.length]+u+n:u+n}0!==o&&(n=o.toString(16)+n);while(n.length%e!==0)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var c=f[t],l=p[t];n="";var h=this.clone();h.negative=0;while(!h.isZero()){var m=h.modrn(l).toString(t);h=h.idivn(l),n=h.isZero()?m+n:d[c-m.length]+m+n}this.isZero()&&(n="0"+n);while(n.length%e!==0)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16,2)},s&&(o.prototype.toBuffer=function(t,e){return this.toArrayLike(s,t,e)}),o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};var m=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)};function g(t){for(var e=new Array(t.bitLength()),n=0;n>>i&1}return e}function y(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,u=s/67108864|0;n.words[0]=a;for(var c=1;c>>26,h=67108863&u,d=Math.min(c,e.length-1),f=Math.max(0,c-t.length+1);f<=d;f++){var p=c-f|0;i=0|t.words[p],o=0|e.words[f],s=i*o+h,l+=s/67108864|0,h=67108863&s}n.words[c]=0|h,u=0|l}return 0!==u?n.words[c]=0|u:n.length--,n._strip()}o.prototype.toArrayLike=function(t,e,n){this._strip();var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0");var s=m(t,o),a="le"===e?"LE":"BE";return this["_toArrayLike"+a](s,i),s},o.prototype._toArrayLikeLE=function(t,e){for(var n=0,r=0,i=0,o=0;i>8&255),n>16&255),6===o?(n>24&255),r=0,o=0):(r=s>>>24,o+=2)}if(n=0&&(t[n--]=s>>8&255),n>=0&&(t[n--]=s>>16&255),6===o?(n>=0&&(t[n--]=s>>24&255),r=0,o=0):(r=s>>>24,o+=2)}if(n>=0){t[n--]=r;while(n>=0)t[n--]=0}},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0===(8191&e)&&(n+=13,e>>>=13),0===(127&e)&&(n+=7,e>>>=7),0===(15&e)&&(n+=4,e>>>=4),0===(3&e)&&(n+=2,e>>>=2),0===(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;nt.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"===typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,s=0;s>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,f=0|s[1],p=8191&f,m=f>>>13,g=0|s[2],y=8191&g,b=g>>>13,v=0|s[3],_=8191&v,w=v>>>13,M=0|s[4],S=8191&M,A=M>>>13,k=0|s[5],E=8191&k,L=k>>>13,D=0|s[6],T=8191&D,O=D>>>13,x=0|s[7],I=8191&x,j=x>>>13,N=0|s[8],P=8191&N,C=N>>>13,R=0|s[9],Y=8191&R,B=R>>>13,z=0|a[0],U=8191&z,W=z>>>13,H=0|a[1],F=8191&H,q=H>>>13,V=0|a[2],K=8191&V,G=V>>>13,Q=0|a[3],Z=8191&Q,J=Q>>>13,$=0|a[4],X=8191&$,tt=$>>>13,et=0|a[5],nt=8191&et,rt=et>>>13,it=0|a[6],ot=8191&it,st=it>>>13,at=0|a[7],ut=8191&at,ct=at>>>13,lt=0|a[8],ht=8191<,dt=lt>>>13,ft=0|a[9],pt=8191&ft,mt=ft>>>13;n.negative=t.negative^e.negative,n.length=19,r=Math.imul(h,U),i=Math.imul(h,W),i=i+Math.imul(d,U)|0,o=Math.imul(d,W);var gt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(p,U),i=Math.imul(p,W),i=i+Math.imul(m,U)|0,o=Math.imul(m,W),r=r+Math.imul(h,F)|0,i=i+Math.imul(h,q)|0,i=i+Math.imul(d,F)|0,o=o+Math.imul(d,q)|0;var yt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(y,U),i=Math.imul(y,W),i=i+Math.imul(b,U)|0,o=Math.imul(b,W),r=r+Math.imul(p,F)|0,i=i+Math.imul(p,q)|0,i=i+Math.imul(m,F)|0,o=o+Math.imul(m,q)|0,r=r+Math.imul(h,K)|0,i=i+Math.imul(h,G)|0,i=i+Math.imul(d,K)|0,o=o+Math.imul(d,G)|0;var bt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(_,U),i=Math.imul(_,W),i=i+Math.imul(w,U)|0,o=Math.imul(w,W),r=r+Math.imul(y,F)|0,i=i+Math.imul(y,q)|0,i=i+Math.imul(b,F)|0,o=o+Math.imul(b,q)|0,r=r+Math.imul(p,K)|0,i=i+Math.imul(p,G)|0,i=i+Math.imul(m,K)|0,o=o+Math.imul(m,G)|0,r=r+Math.imul(h,Z)|0,i=i+Math.imul(h,J)|0,i=i+Math.imul(d,Z)|0,o=o+Math.imul(d,J)|0;var vt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(S,U),i=Math.imul(S,W),i=i+Math.imul(A,U)|0,o=Math.imul(A,W),r=r+Math.imul(_,F)|0,i=i+Math.imul(_,q)|0,i=i+Math.imul(w,F)|0,o=o+Math.imul(w,q)|0,r=r+Math.imul(y,K)|0,i=i+Math.imul(y,G)|0,i=i+Math.imul(b,K)|0,o=o+Math.imul(b,G)|0,r=r+Math.imul(p,Z)|0,i=i+Math.imul(p,J)|0,i=i+Math.imul(m,Z)|0,o=o+Math.imul(m,J)|0,r=r+Math.imul(h,X)|0,i=i+Math.imul(h,tt)|0,i=i+Math.imul(d,X)|0,o=o+Math.imul(d,tt)|0;var _t=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(E,U),i=Math.imul(E,W),i=i+Math.imul(L,U)|0,o=Math.imul(L,W),r=r+Math.imul(S,F)|0,i=i+Math.imul(S,q)|0,i=i+Math.imul(A,F)|0,o=o+Math.imul(A,q)|0,r=r+Math.imul(_,K)|0,i=i+Math.imul(_,G)|0,i=i+Math.imul(w,K)|0,o=o+Math.imul(w,G)|0,r=r+Math.imul(y,Z)|0,i=i+Math.imul(y,J)|0,i=i+Math.imul(b,Z)|0,o=o+Math.imul(b,J)|0,r=r+Math.imul(p,X)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(m,X)|0,o=o+Math.imul(m,tt)|0,r=r+Math.imul(h,nt)|0,i=i+Math.imul(h,rt)|0,i=i+Math.imul(d,nt)|0,o=o+Math.imul(d,rt)|0;var wt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(T,U),i=Math.imul(T,W),i=i+Math.imul(O,U)|0,o=Math.imul(O,W),r=r+Math.imul(E,F)|0,i=i+Math.imul(E,q)|0,i=i+Math.imul(L,F)|0,o=o+Math.imul(L,q)|0,r=r+Math.imul(S,K)|0,i=i+Math.imul(S,G)|0,i=i+Math.imul(A,K)|0,o=o+Math.imul(A,G)|0,r=r+Math.imul(_,Z)|0,i=i+Math.imul(_,J)|0,i=i+Math.imul(w,Z)|0,o=o+Math.imul(w,J)|0,r=r+Math.imul(y,X)|0,i=i+Math.imul(y,tt)|0,i=i+Math.imul(b,X)|0,o=o+Math.imul(b,tt)|0,r=r+Math.imul(p,nt)|0,i=i+Math.imul(p,rt)|0,i=i+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0,r=r+Math.imul(h,ot)|0,i=i+Math.imul(h,st)|0,i=i+Math.imul(d,ot)|0,o=o+Math.imul(d,st)|0;var Mt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(I,U),i=Math.imul(I,W),i=i+Math.imul(j,U)|0,o=Math.imul(j,W),r=r+Math.imul(T,F)|0,i=i+Math.imul(T,q)|0,i=i+Math.imul(O,F)|0,o=o+Math.imul(O,q)|0,r=r+Math.imul(E,K)|0,i=i+Math.imul(E,G)|0,i=i+Math.imul(L,K)|0,o=o+Math.imul(L,G)|0,r=r+Math.imul(S,Z)|0,i=i+Math.imul(S,J)|0,i=i+Math.imul(A,Z)|0,o=o+Math.imul(A,J)|0,r=r+Math.imul(_,X)|0,i=i+Math.imul(_,tt)|0,i=i+Math.imul(w,X)|0,o=o+Math.imul(w,tt)|0,r=r+Math.imul(y,nt)|0,i=i+Math.imul(y,rt)|0,i=i+Math.imul(b,nt)|0,o=o+Math.imul(b,rt)|0,r=r+Math.imul(p,ot)|0,i=i+Math.imul(p,st)|0,i=i+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0,r=r+Math.imul(h,ut)|0,i=i+Math.imul(h,ct)|0,i=i+Math.imul(d,ut)|0,o=o+Math.imul(d,ct)|0;var St=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(P,U),i=Math.imul(P,W),i=i+Math.imul(C,U)|0,o=Math.imul(C,W),r=r+Math.imul(I,F)|0,i=i+Math.imul(I,q)|0,i=i+Math.imul(j,F)|0,o=o+Math.imul(j,q)|0,r=r+Math.imul(T,K)|0,i=i+Math.imul(T,G)|0,i=i+Math.imul(O,K)|0,o=o+Math.imul(O,G)|0,r=r+Math.imul(E,Z)|0,i=i+Math.imul(E,J)|0,i=i+Math.imul(L,Z)|0,o=o+Math.imul(L,J)|0,r=r+Math.imul(S,X)|0,i=i+Math.imul(S,tt)|0,i=i+Math.imul(A,X)|0,o=o+Math.imul(A,tt)|0,r=r+Math.imul(_,nt)|0,i=i+Math.imul(_,rt)|0,i=i+Math.imul(w,nt)|0,o=o+Math.imul(w,rt)|0,r=r+Math.imul(y,ot)|0,i=i+Math.imul(y,st)|0,i=i+Math.imul(b,ot)|0,o=o+Math.imul(b,st)|0,r=r+Math.imul(p,ut)|0,i=i+Math.imul(p,ct)|0,i=i+Math.imul(m,ut)|0,o=o+Math.imul(m,ct)|0,r=r+Math.imul(h,ht)|0,i=i+Math.imul(h,dt)|0,i=i+Math.imul(d,ht)|0,o=o+Math.imul(d,dt)|0;var At=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(Y,U),i=Math.imul(Y,W),i=i+Math.imul(B,U)|0,o=Math.imul(B,W),r=r+Math.imul(P,F)|0,i=i+Math.imul(P,q)|0,i=i+Math.imul(C,F)|0,o=o+Math.imul(C,q)|0,r=r+Math.imul(I,K)|0,i=i+Math.imul(I,G)|0,i=i+Math.imul(j,K)|0,o=o+Math.imul(j,G)|0,r=r+Math.imul(T,Z)|0,i=i+Math.imul(T,J)|0,i=i+Math.imul(O,Z)|0,o=o+Math.imul(O,J)|0,r=r+Math.imul(E,X)|0,i=i+Math.imul(E,tt)|0,i=i+Math.imul(L,X)|0,o=o+Math.imul(L,tt)|0,r=r+Math.imul(S,nt)|0,i=i+Math.imul(S,rt)|0,i=i+Math.imul(A,nt)|0,o=o+Math.imul(A,rt)|0,r=r+Math.imul(_,ot)|0,i=i+Math.imul(_,st)|0,i=i+Math.imul(w,ot)|0,o=o+Math.imul(w,st)|0,r=r+Math.imul(y,ut)|0,i=i+Math.imul(y,ct)|0,i=i+Math.imul(b,ut)|0,o=o+Math.imul(b,ct)|0,r=r+Math.imul(p,ht)|0,i=i+Math.imul(p,dt)|0,i=i+Math.imul(m,ht)|0,o=o+Math.imul(m,dt)|0,r=r+Math.imul(h,pt)|0,i=i+Math.imul(h,mt)|0,i=i+Math.imul(d,pt)|0,o=o+Math.imul(d,mt)|0;var kt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(Y,F),i=Math.imul(Y,q),i=i+Math.imul(B,F)|0,o=Math.imul(B,q),r=r+Math.imul(P,K)|0,i=i+Math.imul(P,G)|0,i=i+Math.imul(C,K)|0,o=o+Math.imul(C,G)|0,r=r+Math.imul(I,Z)|0,i=i+Math.imul(I,J)|0,i=i+Math.imul(j,Z)|0,o=o+Math.imul(j,J)|0,r=r+Math.imul(T,X)|0,i=i+Math.imul(T,tt)|0,i=i+Math.imul(O,X)|0,o=o+Math.imul(O,tt)|0,r=r+Math.imul(E,nt)|0,i=i+Math.imul(E,rt)|0,i=i+Math.imul(L,nt)|0,o=o+Math.imul(L,rt)|0,r=r+Math.imul(S,ot)|0,i=i+Math.imul(S,st)|0,i=i+Math.imul(A,ot)|0,o=o+Math.imul(A,st)|0,r=r+Math.imul(_,ut)|0,i=i+Math.imul(_,ct)|0,i=i+Math.imul(w,ut)|0,o=o+Math.imul(w,ct)|0,r=r+Math.imul(y,ht)|0,i=i+Math.imul(y,dt)|0,i=i+Math.imul(b,ht)|0,o=o+Math.imul(b,dt)|0,r=r+Math.imul(p,pt)|0,i=i+Math.imul(p,mt)|0,i=i+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Et=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(Y,K),i=Math.imul(Y,G),i=i+Math.imul(B,K)|0,o=Math.imul(B,G),r=r+Math.imul(P,Z)|0,i=i+Math.imul(P,J)|0,i=i+Math.imul(C,Z)|0,o=o+Math.imul(C,J)|0,r=r+Math.imul(I,X)|0,i=i+Math.imul(I,tt)|0,i=i+Math.imul(j,X)|0,o=o+Math.imul(j,tt)|0,r=r+Math.imul(T,nt)|0,i=i+Math.imul(T,rt)|0,i=i+Math.imul(O,nt)|0,o=o+Math.imul(O,rt)|0,r=r+Math.imul(E,ot)|0,i=i+Math.imul(E,st)|0,i=i+Math.imul(L,ot)|0,o=o+Math.imul(L,st)|0,r=r+Math.imul(S,ut)|0,i=i+Math.imul(S,ct)|0,i=i+Math.imul(A,ut)|0,o=o+Math.imul(A,ct)|0,r=r+Math.imul(_,ht)|0,i=i+Math.imul(_,dt)|0,i=i+Math.imul(w,ht)|0,o=o+Math.imul(w,dt)|0,r=r+Math.imul(y,pt)|0,i=i+Math.imul(y,mt)|0,i=i+Math.imul(b,pt)|0,o=o+Math.imul(b,mt)|0;var Lt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,r=Math.imul(Y,Z),i=Math.imul(Y,J),i=i+Math.imul(B,Z)|0,o=Math.imul(B,J),r=r+Math.imul(P,X)|0,i=i+Math.imul(P,tt)|0,i=i+Math.imul(C,X)|0,o=o+Math.imul(C,tt)|0,r=r+Math.imul(I,nt)|0,i=i+Math.imul(I,rt)|0,i=i+Math.imul(j,nt)|0,o=o+Math.imul(j,rt)|0,r=r+Math.imul(T,ot)|0,i=i+Math.imul(T,st)|0,i=i+Math.imul(O,ot)|0,o=o+Math.imul(O,st)|0,r=r+Math.imul(E,ut)|0,i=i+Math.imul(E,ct)|0,i=i+Math.imul(L,ut)|0,o=o+Math.imul(L,ct)|0,r=r+Math.imul(S,ht)|0,i=i+Math.imul(S,dt)|0,i=i+Math.imul(A,ht)|0,o=o+Math.imul(A,dt)|0,r=r+Math.imul(_,pt)|0,i=i+Math.imul(_,mt)|0,i=i+Math.imul(w,pt)|0,o=o+Math.imul(w,mt)|0;var Dt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,r=Math.imul(Y,X),i=Math.imul(Y,tt),i=i+Math.imul(B,X)|0,o=Math.imul(B,tt),r=r+Math.imul(P,nt)|0,i=i+Math.imul(P,rt)|0,i=i+Math.imul(C,nt)|0,o=o+Math.imul(C,rt)|0,r=r+Math.imul(I,ot)|0,i=i+Math.imul(I,st)|0,i=i+Math.imul(j,ot)|0,o=o+Math.imul(j,st)|0,r=r+Math.imul(T,ut)|0,i=i+Math.imul(T,ct)|0,i=i+Math.imul(O,ut)|0,o=o+Math.imul(O,ct)|0,r=r+Math.imul(E,ht)|0,i=i+Math.imul(E,dt)|0,i=i+Math.imul(L,ht)|0,o=o+Math.imul(L,dt)|0,r=r+Math.imul(S,pt)|0,i=i+Math.imul(S,mt)|0,i=i+Math.imul(A,pt)|0,o=o+Math.imul(A,mt)|0;var Tt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(Y,nt),i=Math.imul(Y,rt),i=i+Math.imul(B,nt)|0,o=Math.imul(B,rt),r=r+Math.imul(P,ot)|0,i=i+Math.imul(P,st)|0,i=i+Math.imul(C,ot)|0,o=o+Math.imul(C,st)|0,r=r+Math.imul(I,ut)|0,i=i+Math.imul(I,ct)|0,i=i+Math.imul(j,ut)|0,o=o+Math.imul(j,ct)|0,r=r+Math.imul(T,ht)|0,i=i+Math.imul(T,dt)|0,i=i+Math.imul(O,ht)|0,o=o+Math.imul(O,dt)|0,r=r+Math.imul(E,pt)|0,i=i+Math.imul(E,mt)|0,i=i+Math.imul(L,pt)|0,o=o+Math.imul(L,mt)|0;var Ot=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(Y,ot),i=Math.imul(Y,st),i=i+Math.imul(B,ot)|0,o=Math.imul(B,st),r=r+Math.imul(P,ut)|0,i=i+Math.imul(P,ct)|0,i=i+Math.imul(C,ut)|0,o=o+Math.imul(C,ct)|0,r=r+Math.imul(I,ht)|0,i=i+Math.imul(I,dt)|0,i=i+Math.imul(j,ht)|0,o=o+Math.imul(j,dt)|0,r=r+Math.imul(T,pt)|0,i=i+Math.imul(T,mt)|0,i=i+Math.imul(O,pt)|0,o=o+Math.imul(O,mt)|0;var xt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(Y,ut),i=Math.imul(Y,ct),i=i+Math.imul(B,ut)|0,o=Math.imul(B,ct),r=r+Math.imul(P,ht)|0,i=i+Math.imul(P,dt)|0,i=i+Math.imul(C,ht)|0,o=o+Math.imul(C,dt)|0,r=r+Math.imul(I,pt)|0,i=i+Math.imul(I,mt)|0,i=i+Math.imul(j,pt)|0,o=o+Math.imul(j,mt)|0;var It=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(Y,ht),i=Math.imul(Y,dt),i=i+Math.imul(B,ht)|0,o=Math.imul(B,dt),r=r+Math.imul(P,pt)|0,i=i+Math.imul(P,mt)|0,i=i+Math.imul(C,pt)|0,o=o+Math.imul(C,mt)|0;var jt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(Y,pt),i=Math.imul(Y,mt),i=i+Math.imul(B,pt)|0,o=Math.imul(B,mt);var Nt=(c+r|0)+((8191&i)<<13)|0;return c=(o+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,u[0]=gt,u[1]=yt,u[2]=bt,u[3]=vt,u[4]=_t,u[5]=wt,u[6]=Mt,u[7]=St,u[8]=At,u[9]=kt,u[10]=Et,u[11]=Lt,u[12]=Dt,u[13]=Tt,u[14]=Ot,u[15]=xt,u[16]=It,u[17]=jt,u[18]=Nt,0!==c&&(u[19]=c,n.length++),n};function v(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o>>26)|0,i+=s>>>26,s&=67108863}n.words[o]=a,r=s,s=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function _(t,e,n){return v(t,e,n)}function w(t,e){this.x=t,this.y=e}Math.imul||(b=y),o.prototype.mulTo=function(t,e){var n,r=this.length+t.length;return n=10===this.length&&10===t.length?b(this,t,e):r<63?y(this,t,e):r<1024?v(this,t,e):_(this,t,e),n},w.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r>=1;return r},w.prototype.permute=function(t,e,n,r,i,o){for(var s=0;s>>=1)i++;return 1<>>=13,n[2*s+1]=8191&o,o>>>=13;for(s=2*e;s>=26,n+=o/67108864|0,n+=s>>>26,this.words[i]=67108863&s}return 0!==n&&(this.words[i]=n,this.length++),e?this.ineg():this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=g(t);if(0===e.length)return new o(1);for(var n=this,r=0;r=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var s=0;for(e=0;e>>26-n}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<s)for(this.length-=s,c=0;c=0&&(0!==l||c>=i);c--){var h=0|this.words[c];this.words[c]=l<<26-o|h>>>o,l=h&a}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"===typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i>26,this.words[i+n]=67108863&o;if(0===a)return this._strip();for(r(-1===a),a=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(t,e){var n=this.length-t.length,r=this.clone(),i=t,s=0|i.words[i.length-1],a=this._countBits(s);n=26-a,0!==n&&(i=i.ushln(n),r.iushln(n),s=0|i.words[i.length-1]);var u,c=r.length-i.length;if("mod"!==e){u=new o(null),u.length=c+1,u.words=new Array(u.length);for(var l=0;l=0;d--){var f=67108864*(0|r.words[i.length+d])+(0|r.words[i.length+d-1]);f=Math.min(f/s|0,67108863),r._ishlnsubmul(i,f,d);while(0!==r.negative)f--,r.negative=0,r._ishlnsubmul(i,1,d),r.isZero()||(r.negative^=1);u&&(u.words[d]=f)}return u&&u._strip(),r._strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:u||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(s=a.mod.neg(),n&&0!==s.negative&&s.iadd(t)),{div:i,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),n&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modrn(t.words[0]))}:this._wordDiv(t,e);var i,s,a},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modrn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=(1<<26)%t,i=0,o=this.length-1;o>=0;o--)i=(n*i+(0|this.words[o]))%t;return e?-i:i},o.prototype.modn=function(t){return this.modrn(t)},o.prototype.idivn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*n;this.words[i]=o/t|0,n=o%t}return this._strip(),e?this.ineg():this},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i=new o(1),s=new o(0),a=new o(0),u=new o(1),c=0;while(e.isEven()&&n.isEven())e.iushrn(1),n.iushrn(1),++c;var l=n.clone(),h=e.clone();while(!e.isZero()){for(var d=0,f=1;0===(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0){e.iushrn(d);while(d-- >0)(i.isOdd()||s.isOdd())&&(i.iadd(l),s.isub(h)),i.iushrn(1),s.iushrn(1)}for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0){n.iushrn(p);while(p-- >0)(a.isOdd()||u.isOdd())&&(a.iadd(l),u.isub(h)),a.iushrn(1),u.iushrn(1)}e.cmp(n)>=0?(e.isub(n),i.isub(a),s.isub(u)):(n.isub(e),a.isub(i),u.isub(s))}return{a:a,b:u,gcd:n.iushln(c)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i,s=new o(1),a=new o(0),u=n.clone();while(e.cmpn(1)>0&&n.cmpn(1)>0){for(var c=0,l=1;0===(e.words[0]&l)&&c<26;++c,l<<=1);if(c>0){e.iushrn(c);while(c-- >0)s.isOdd()&&s.iadd(u),s.iushrn(1)}for(var h=0,d=1;0===(n.words[0]&d)&&h<26;++h,d<<=1);if(h>0){n.iushrn(h);while(h-- >0)a.isOdd()&&a.iadd(u),a.iushrn(1)}e.cmp(n)>=0?(e.isub(n),s.isub(a)):(n.isub(e),a.isub(s))}return i=0===e.cmpn(1)?s:a,i.cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);do{while(e.isEven())e.iushrn(1);while(n.isEven())n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}while(1);return n.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"===typeof t);var e=t%26,n=(t-e)/26,i=1<>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){ri&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new D(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var M={k256:null,p224:null,p192:null,p25519:null};function S(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function A(){S.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function k(){S.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){S.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function L(){S.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function D(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function T(t){D.call(this,t),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)}S.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},S.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),n=this.imulK(n),n=n.iadd(this.tmp),e=n.bitLength()}while(e>this.n);var r=e0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},S.prototype.split=function(t,e){t.iushrn(this.n,0,e)},S.prototype.imulK=function(t){return t.imul(this.k)},i(A,S),A.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i>>22,o=s}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},A.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(M[t])return M[t];var e;if("k256"===t)e=new A;else if("p224"===t)e=new k;else if("p192"===t)e=new E;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new L}return M[t]=e,e},D.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},D.prototype._verify2=function(t,e){r(0===(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},D.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(l(t,t.umod(this.m)._forceRed(this)),t)},D.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},D.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},D.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},D.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},D.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},D.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},D.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},D.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},D.prototype.isqr=function(t){return this.imul(t,t.clone())},D.prototype.sqr=function(t){return this.mul(t,t)},D.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2===1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}var i=this.m.subn(1),s=0;while(!i.isZero()&&0===i.andln(1))s++,i.iushrn(1);r(!i.isZero());var a=new o(1).toRed(this),u=a.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();l=new o(2*l*l).toRed(this);while(0!==this.pow(l,c).cmp(u))l.redIAdd(u);var h=this.pow(l,i),d=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),p=s;while(0!==f.cmp(a)){for(var m=f,g=0;0!==m.cmp(a);g++)m=m.redSqr();r(g=0;i--){for(var l=e.words[i],h=c-1;h>=0;h--){var d=l>>h&1;s!==r[0]&&(s=this.sqr(s)),0!==d||0!==a?(a<<=1,a|=d,u++,(u===n||0===i&&0===h)&&(s=this.mul(s,r[a]),u=0,a=0)):u=0}c=26}return s},D.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},D.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new T(t)},i(T,D),T.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},T.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},T.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).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)},T.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},T.prototype.invm=function(t){var e=this.imod(t._invmp(this.m).mul(this.r2));return e._forceRed(this)}})(t,this)}).call(this,n("62e4")(t))},"39a6":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10,n=1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n},week:{dow:1,doy:4}});return e}))},"39a9":function(t,e,n){ /*! safe-buffer. MIT License. Feross Aboukhadijeh */ var r=n("b639"),i=r.Buffer;function o(t,e){for(var n in t)e[n]=t[n]}function s(t,e,n){return i(t,e,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(t,e,n){if("number"===typeof t)throw new TypeError("Argument must not be a number");return i(t,e,n)},s.alloc=function(t,e,n){if("number"!==typeof t)throw new TypeError("Argument must be a number");var r=i(t);return void 0!==e?"string"===typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},s.allocUnsafe=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return i(t)},s.allocUnsafeSlow=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},"39bd":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function r(t,e,n,r){var i="";if(e)switch(n){case"s":i="काही सेकंद";break;case"ss":i="%d सेकंद";break;case"m":i="एक मिनिट";break;case"mm":i="%d मिनिटे";break;case"h":i="एक तास";break;case"hh":i="%d तास";break;case"d":i="एक दिवस";break;case"dd":i="%d दिवस";break;case"M":i="एक महिना";break;case"MM":i="%d महिने";break;case"y":i="एक वर्ष";break;case"yy":i="%d वर्षे";break}else switch(n){case"s":i="काही सेकंदां";break;case"ss":i="%d सेकंदां";break;case"m":i="एका मिनिटा";break;case"mm":i="%d मिनिटां";break;case"h":i="एका तासा";break;case"hh":i="%d तासां";break;case"d":i="एका दिवसा";break;case"dd":i="%d दिवसां";break;case"M":i="एका महिन्या";break;case"MM":i="%d महिन्यां";break;case"y":i="एका वर्षा";break;case"yy":i="%d वर्षां";break}return i.replace(/%d/i,t)}var i=t.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},preparse:function(t){return t.replace(/[१२३४५६७८९०]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,meridiemHour:function(t,e){return 12===t&&(t=0),"पहाटे"===e||"सकाळी"===e?t:"दुपारी"===e||"सायंकाळी"===e||"रात्री"===e?t>=12?t:t+12:void 0},meridiem:function(t,e,n){return t>=0&&t<6?"पहाटे":t<12?"सकाळी":t<17?"दुपारी":t<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}});return i}))},"39c3":function(t,e,n){"use strict";function r(t){var e=t.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function i(t){if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e?e.defaultView:window}return t}function o(t){var e=i(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function s(t){var e=i(t).Element;return t instanceof e||t instanceof Element}function a(t){var e=i(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function u(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function c(t){return t!==i(t)&&a(t)?u(t):o(t)}function l(t){return t?(t.nodeName||"").toLowerCase():null}function h(t){return(s(t)?t.ownerDocument:t.document).documentElement}function d(t){return r(h(t)).left+o(t).scrollLeft}function f(t){return i(t).getComputedStyle(t)}function p(t){var e=f(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function m(t,e,n){void 0===n&&(n=!1);var i=h(e),o=r(t),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return n||(("body"!==l(e)||p(i))&&(s=c(e)),a(e)?(u=r(e),u.x+=e.clientLeft,u.y+=e.clientTop):i&&(u.x=d(i))),{x:o.left+s.scrollLeft-u.x,y:o.top+s.scrollTop-u.y,width:o.width,height:o.height}}function g(t){return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}}function y(t){return"html"===l(t)?t:t.assignedSlot||t.parentNode||t.host||h(t)}function b(t){return["html","body","#document"].indexOf(l(t))>=0?t.ownerDocument.body:a(t)&&p(t)?t:b(y(t))}function v(t,e){void 0===e&&(e=[]);var n=b(t),r="body"===l(n),o=i(n),s=r?[o].concat(o.visualViewport||[],p(n)?n:[]):n,a=e.concat(s);return r?a:a.concat(v(y(s)))}function _(t){return["table","td","th"].indexOf(l(t))>=0}function w(t){return a(t)&&"fixed"!==f(t).position?t.offsetParent:null}function M(t){var e=i(t),n=w(t);while(n&&_(n))n=w(n);return n&&"body"===l(n)&&"static"===f(n).position?e:n||e}n.d(e,"a",(function(){return te}));var S="top",A="bottom",k="right",E="left",L="auto",D=[S,A,k,E],T="start",O="end",x="clippingParents",I="viewport",j="popper",N="reference",P=D.reduce((function(t,e){return t.concat([e+"-"+T,e+"-"+O])}),[]),C=[].concat(D,[L]).reduce((function(t,e){return t.concat([e,e+"-"+T,e+"-"+O])}),[]),R="beforeRead",Y="read",B="afterRead",z="beforeMain",U="main",W="afterMain",H="beforeWrite",F="write",q="afterWrite",V=[R,Y,B,z,U,W,H,F,q];function K(t){var e=new Map,n=new Set,r=[];function i(t){n.add(t.name);var o=[].concat(t.requires||[],t.requiresIfExists||[]);o.forEach((function(t){if(!n.has(t)){var r=e.get(t);r&&i(r)}})),r.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||i(t)})),r}function G(t){var e=K(t);return V.reduce((function(t,n){return t.concat(e.filter((function(t){return t.phase===n})))}),[])}function Q(t){var e;return function(){return e||(e=new Promise((function(n){Promise.resolve().then((function(){e=void 0,n(t())}))}))),e}}function Z(t){var e=t.reduce((function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,{},e,{options:Object.assign({},n.options,{},e.options),data:Object.assign({},n.data,{},e.data)}):e,t}),{});return Object.keys(e).map((function(t){return e[t]}))}var J={placement:"bottom",modifiers:[],strategy:"absolute"};function $(){for(var t=arguments.length,e=new Array(t),n=0;n=0?"x":"y"}function st(t){var e,n=t.reference,r=t.element,i=t.placement,o=i?rt(i):null,s=i?it(i):null,a=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(o){case S:e={x:a,y:n.y-r.height};break;case A:e={x:a,y:n.y+n.height};break;case k:e={x:n.x+n.width,y:u};break;case E:e={x:n.x-r.width,y:u};break;default:e={x:n.x,y:n.y}}var c=o?ot(o):null;if(null!=c){var l="y"===c?"height":"width";switch(s){case T:e[c]=Math.floor(e[c])-Math.floor(n[l]/2-r[l]/2);break;case O:e[c]=Math.floor(e[c])+Math.ceil(n[l]/2-r[l]/2);break;default:}}return e}function at(t){var e=t.state,n=t.name;e.modifiersData[n]=st({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var ut={name:"popperOffsets",enabled:!0,phase:"read",fn:at,data:{}},ct={top:"auto",right:"auto",bottom:"auto",left:"auto"};function lt(t){var e=t.x,n=t.y,r=window,i=r.devicePixelRatio||1;return{x:Math.round(e*i)/i||0,y:Math.round(n*i)/i||0}}function ht(t){var e,n=t.popper,r=t.popperRect,o=t.placement,s=t.offsets,a=t.position,u=t.gpuAcceleration,c=t.adaptive,l=lt(s),d=l.x,f=l.y,p=s.hasOwnProperty("x"),m=s.hasOwnProperty("y"),g=E,y=S,b=window;if(c){var v=M(n);v===i(n)&&(v=h(n)),o===S&&(y=A,f-=v.clientHeight-r.height,f*=u?1:-1),o===E&&(g=k,d-=v.clientWidth-r.width,d*=u?1:-1)}var _,w=Object.assign({position:a},c&&ct);return u?Object.assign({},w,(_={},_[y]=m?"0":"",_[g]=p?"0":"",_.transform=(b.devicePixelRatio||1)<2?"translate("+d+"px, "+f+"px)":"translate3d("+d+"px, "+f+"px, 0)",_)):Object.assign({},w,(e={},e[y]=m?f+"px":"",e[g]=p?d+"px":"",e.transform="",e))}function dt(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,s=void 0===o||o,a={placement:rt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,{},ht(Object.assign({},a,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,{},ht(Object.assign({},a,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var ft={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:dt,data:{}};function pt(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},r=e.attributes[t]||{},i=e.elements[t];a(i)&&l(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(t){var e=r[t];!1===e?i.removeAttribute(t):i.setAttribute(t,!0===e?"":e)})))}))}function mt(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var r=e.elements[t],i=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]),s=o.reduce((function(t,e){return t[e]="",t}),{});a(r)&&l(r)&&(Object.assign(r.style,s),Object.keys(i).forEach((function(t){r.removeAttribute(t)})))}))}}var gt={name:"applyStyles",enabled:!0,phase:"write",fn:pt,effect:mt,requires:["computeStyles"]};function yt(t,e,n){var r=rt(t),i=[E,S].indexOf(r)>=0?-1:1,o="function"===typeof n?n(Object.assign({},e,{placement:t})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[E,k].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function bt(t){var e=t.state,n=t.options,r=t.name,i=n.offset,o=void 0===i?[0,0]:i,s=C.reduce((function(t,n){return t[n]=yt(n,e.rects,o),t}),{}),a=s[e.placement],u=a.x,c=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=u,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=s}var vt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:bt},_t={left:"right",right:"left",bottom:"top",top:"bottom"};function wt(t){return t.replace(/left|right|bottom|top/g,(function(t){return _t[t]}))}var Mt={start:"end",end:"start"};function St(t){return t.replace(/start|end/g,(function(t){return Mt[t]}))}function At(t){var e=i(t),n=e.visualViewport,r=e.innerWidth,o=e.innerHeight;return n&&/iPhone|iPod|iPad/.test(navigator.platform)&&(r=n.width,o=n.height),{width:r,height:o,x:0,y:0}}function kt(t){var e=i(t),n=o(t),r=m(h(t),e);return r.height=Math.max(r.height,e.innerHeight),r.width=Math.max(r.width,e.innerWidth),r.x=-n.scrollLeft,r.y=-n.scrollTop,r}function Et(t){return parseFloat(t)||0}function Lt(t){var e=a(t)?f(t):{};return{top:Et(e.borderTopWidth),right:Et(e.borderRightWidth),bottom:Et(e.borderBottomWidth),left:Et(e.borderLeftWidth)}}function Dt(t){var e=i(t),n=Lt(t),r="html"===l(t),o=d(t),s=t.clientWidth+n.right,a=t.clientHeight+n.bottom;return r&&e.innerHeight-t.clientHeight>50&&(a=e.innerHeight-n.bottom),{top:r?0:t.clientTop,right:t.clientLeft>n.left?n.right:r?e.innerWidth-s-o:t.offsetWidth-s,bottom:r?e.innerHeight-a:t.offsetHeight-a,left:r?o:t.clientLeft}}function Tt(t,e){var n=Boolean(e.getRootNode&&e.getRootNode().host);if(t.contains(e))return!0;if(n){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ot(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function xt(t,e){return e===I?Ot(At(t)):a(e)?r(e):Ot(kt(h(t)))}function It(t){var e=v(t),n=["absolute","fixed"].indexOf(f(t).position)>=0,r=n&&a(t)?M(t):t;return s(r)?e.filter((function(t){return s(t)&&Tt(t,r)})):[]}function jt(t,e,n){var r="clippingParents"===e?It(t):[].concat(e),i=[].concat(r,[n]),o=i[0],s=i.reduce((function(e,n){var r=xt(t,n),i=Dt(a(n)?n:h(t));return e.top=Math.max(r.top+i.top,e.top),e.right=Math.min(r.right-i.right,e.right),e.bottom=Math.min(r.bottom-i.bottom,e.bottom),e.left=Math.max(r.left+i.left,e.left),e}),xt(t,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Nt(){return{top:0,right:0,bottom:0,left:0}}function Pt(t){return Object.assign({},Nt(),{},t)}function Ct(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}function Rt(t,e){void 0===e&&(e={});var n=e,i=n.placement,o=void 0===i?t.placement:i,a=n.boundary,u=void 0===a?x:a,c=n.rootBoundary,l=void 0===c?I:c,d=n.elementContext,f=void 0===d?j:d,p=n.altBoundary,m=void 0!==p&&p,g=n.padding,y=void 0===g?0:g,b=Pt("number"!==typeof y?y:Ct(y,D)),v=f===j?N:j,_=t.elements.reference,w=t.rects.popper,M=t.elements[m?v:f],E=jt(s(M)?M:M.contextElement||h(t.elements.popper),u,l),L=r(_),T=st({reference:L,element:w,strategy:"absolute",placement:o}),O=Ot(Object.assign({},w,{},T)),P=f===j?O:L,C={top:E.top-P.top+b.top,bottom:P.bottom-E.bottom+b.bottom,left:E.left-P.left+b.left,right:P.right-E.right+b.right},R=t.modifiersData.offset;if(f===j&&R){var Y=R[o];Object.keys(C).forEach((function(t){var e=[k,A].indexOf(t)>=0?1:-1,n=[S,A].indexOf(t)>=0?"y":"x";C[t]+=Y[n]*e}))}return C}function Yt(t,e){void 0===e&&(e={});var n=e,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,u=n.allowedAutoPlacements,c=void 0===u?C:u,l=it(r),h=(l?a?P:P.filter((function(t){return it(t)===l})):D).filter((function(t){return c.indexOf(t)>=0})),d=h.reduce((function(e,n){return e[n]=Rt(t,{placement:n,boundary:i,rootBoundary:o,padding:s})[rt(n)],e}),{});return Object.keys(d).sort((function(t,e){return d[t]-d[e]}))}function Bt(t){if(rt(t)===L)return[];var e=wt(t);return[St(t),e,St(e)]}function zt(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,s=n.altAxis,a=void 0===s||s,u=n.fallbackPlacements,c=n.padding,l=n.boundary,h=n.rootBoundary,d=n.altBoundary,f=n.flipVariations,p=void 0===f||f,m=n.allowedAutoPlacements,g=e.options.placement,y=rt(g),b=y===g,v=u||(b||!p?[wt(g)]:Bt(g)),_=[g].concat(v).reduce((function(t,n){return t.concat(rt(n)===L?Yt(e,{placement:n,boundary:l,rootBoundary:h,padding:c,flipVariations:p,allowedAutoPlacements:m}):n)}),[]),w=e.rects.reference,M=e.rects.popper,D=new Map,O=!0,x=_[0],I=0;I<_.length;I++){var j=_[I],N=rt(j),P=it(j)===T,C=[S,A].indexOf(N)>=0,R=C?"width":"height",Y=Rt(e,{placement:j,boundary:l,rootBoundary:h,altBoundary:d,padding:c}),B=C?P?k:E:P?A:S;w[R]>M[R]&&(B=wt(B));var z=wt(B),U=[];if(o&&U.push(Y[N]<=0),a&&U.push(Y[B]<=0,Y[z]<=0),U.every((function(t){return t}))){x=j,O=!1;break}D.set(j,U)}if(O)for(var W=p?3:1,H=function(t){var e=_.find((function(e){var n=D.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return x=e,"break"},F=W;F>0;F--){var q=H(F);if("break"===q)break}e.placement!==x&&(e.modifiersData[r]._skip=!0,e.placement=x,e.reset=!0)}}var Ut={name:"flip",enabled:!0,phase:"main",fn:zt,requiresIfExists:["offset"],data:{_skip:!1}};function Wt(t){return"x"===t?"y":"x"}function Ht(t,e,n){return Math.max(t,Math.min(e,n))}function Ft(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,o=void 0===i||i,s=n.altAxis,a=void 0!==s&&s,u=n.boundary,c=n.rootBoundary,l=n.altBoundary,h=n.padding,d=n.tether,f=void 0===d||d,p=n.tetherOffset,m=void 0===p?0:p,y=Rt(e,{boundary:u,rootBoundary:c,padding:h,altBoundary:l}),b=rt(e.placement),v=it(e.placement),_=!v,w=ot(b),L=Wt(w),D=e.modifiersData.popperOffsets,O=e.rects.reference,x=e.rects.popper,I="function"===typeof m?m(Object.assign({},e.rects,{placement:e.placement})):m,j={x:0,y:0};if(D){if(o){var N="y"===w?S:E,P="y"===w?A:k,C="y"===w?"height":"width",R=D[w],Y=D[w]+y[N],B=D[w]-y[P],z=f?-x[C]/2:0,U=v===T?O[C]:x[C],W=v===T?-x[C]:-O[C],H=e.elements.arrow,F=f&&H?g(H):{width:0,height:0},q=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Nt(),V=q[N],K=q[P],G=Ht(0,O[C],F[C]),Q=_?O[C]/2-z-G-V-I:U-G-V-I,Z=_?-O[C]/2+z+G+K+I:W+G+K+I,J=e.elements.arrow&&M(e.elements.arrow),$=J?"y"===w?J.clientTop||0:J.clientLeft||0:0,X=e.modifiersData.offset?e.modifiersData.offset[e.placement][w]:0,tt=D[w]+Q-X-$,et=D[w]+Z-X,nt=Ht(f?Math.min(Y,tt):Y,R,f?Math.max(B,et):B);D[w]=nt,j[w]=nt-R}if(a){var st="x"===w?S:E,at="x"===w?A:k,ut=D[L],ct=ut+y[st],lt=ut-y[at],ht=Ht(ct,ut,lt);D[L]=ht,j[L]=ht-ut}e.modifiersData[r]=j}}var qt={name:"preventOverflow",enabled:!0,phase:"main",fn:Ft,requiresIfExists:["offset"]};function Vt(t){var e,n=t.state,r=t.name,i=n.elements.arrow,o=n.modifiersData.popperOffsets,s=rt(n.placement),a=ot(s),u=[E,k].indexOf(s)>=0,c=u?"height":"width";if(i&&o){var l=n.modifiersData[r+"#persistent"].padding,h=g(i),d="y"===a?S:E,f="y"===a?A:k,p=n.rects.reference[c]+n.rects.reference[a]-o[a]-n.rects.popper[c],m=o[a]-n.rects.reference[a],y=M(i),b=y?"y"===a?y.clientHeight||0:y.clientWidth||0:0,v=p/2-m/2,_=l[d],w=b-h[c]-l[f],L=b/2-h[c]/2+v,D=Ht(_,L,w),T=a;n.modifiersData[r]=(e={},e[T]=D,e.centerOffset=D-L,e)}}function Kt(t){var e=t.state,n=t.options,r=t.name,i=n.element,o=void 0===i?"[data-popper-arrow]":i,s=n.padding,a=void 0===s?0:s;null!=o&&("string"!==typeof o||(o=e.elements.popper.querySelector(o),o))&&Tt(e.elements.popper,o)&&(e.elements.arrow=o,e.modifiersData[r+"#persistent"]={padding:Pt("number"!==typeof a?a:Ct(a,D))})}var Gt={name:"arrow",enabled:!0,phase:"main",fn:Vt,effect:Kt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Qt(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Zt(t){return[S,k,A,E].some((function(e){return t[e]>=0}))}function Jt(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,s=Rt(e,{elementContext:"reference"}),a=Rt(e,{altBoundary:!0}),u=Qt(s,r),c=Qt(a,i,o),l=Zt(u),h=Zt(c);e.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:l,hasPopperEscaped:h},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":h})}var $t={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Jt},Xt=[nt,ut,ft,gt,vt,Ut,qt,Gt,$t],te=X({defaultModifiers:Xt})},"39f5":function(t,e,n){var r=n("8707").Buffer;function i(t){r.isBuffer(t)||(t=r.from(t));for(var e=t.length/4|0,n=new Array(e),i=0;i>>24]^l[p>>>16&255]^h[m>>>8&255]^d[255&g]^e[y++],s=c[p>>>24]^l[m>>>16&255]^h[g>>>8&255]^d[255&f]^e[y++],a=c[m>>>24]^l[g>>>16&255]^h[f>>>8&255]^d[255&p]^e[y++],u=c[g>>>24]^l[f>>>16&255]^h[p>>>8&255]^d[255&m]^e[y++],f=o,p=s,m=a,g=u;return o=(r[f>>>24]<<24|r[p>>>16&255]<<16|r[m>>>8&255]<<8|r[255&g])^e[y++],s=(r[p>>>24]<<24|r[m>>>16&255]<<16|r[g>>>8&255]<<8|r[255&f])^e[y++],a=(r[m>>>24]<<24|r[g>>>16&255]<<16|r[f>>>8&255]<<8|r[255&p])^e[y++],u=(r[g>>>24]<<24|r[f>>>16&255]<<16|r[p>>>8&255]<<8|r[255&m])^e[y++],o>>>=0,s>>>=0,a>>>=0,u>>>=0,[o,s,a,u]}var a=[0,1,2,4,8,16,32,64,128,27,54],u=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var n=[],r=[],i=[[],[],[],[]],o=[[],[],[],[]],s=0,a=0,u=0;u<256;++u){var c=a^a<<1^a<<2^a<<3^a<<4;c=c>>>8^255&c^99,n[s]=c,r[c]=s;var l=t[s],h=t[l],d=t[h],f=257*t[c]^16843008*c;i[0][s]=f<<24|f>>>8,i[1][s]=f<<16|f>>>16,i[2][s]=f<<8|f>>>24,i[3][s]=f,f=16843009*d^65537*h^257*l^16843008*s,o[0][c]=f<<24|f>>>8,o[1][c]=f<<16|f>>>16,o[2][c]=f<<8|f>>>24,o[3][c]=f,0===s?s=a=1:(s=l^t[t[t[d^l]]],a^=t[t[a]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:i,INV_SUB_MIX:o}}();function c(t){this._key=i(t),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var t=this._key,e=t.length,n=e+6,r=4*(n+1),i=[],o=0;o>>24,s=u.SBOX[s>>>24]<<24|u.SBOX[s>>>16&255]<<16|u.SBOX[s>>>8&255]<<8|u.SBOX[255&s],s^=a[o/e|0]<<24):e>6&&o%e===4&&(s=u.SBOX[s>>>24]<<24|u.SBOX[s>>>16&255]<<16|u.SBOX[s>>>8&255]<<8|u.SBOX[255&s]),i[o]=i[o-e]^s}for(var c=[],l=0;l>>24]]^u.INV_SUB_MIX[1][u.SBOX[d>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[d>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&d]]}this._nRounds=n,this._keySchedule=i,this._invKeySchedule=c},c.prototype.encryptBlockRaw=function(t){return t=i(t),s(t,this._keySchedule,u.SUB_MIX,u.SBOX,this._nRounds)},c.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),n=r.allocUnsafe(16);return n.writeUInt32BE(e[0],0),n.writeUInt32BE(e[1],4),n.writeUInt32BE(e[2],8),n.writeUInt32BE(e[3],12),n},c.prototype.decryptBlock=function(t){t=i(t);var e=t[1];t[1]=t[3],t[3]=e;var n=s(t,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),o=r.allocUnsafe(16);return o.writeUInt32BE(n[0],0),o.writeUInt32BE(n[3],4),o.writeUInt32BE(n[2],8),o.writeUInt32BE(n[1],12),o},c.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},t.exports.AES=c},"3a39":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},r=t.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(t){return t.replace(/[१२३४५६७८९०]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(t,e){return 12===t&&(t=0),"राति"===e?t<4?t:t+12:"बिहान"===e?t:"दिउँसो"===e?t>=10?t:t+12:"साँझ"===e?t+12:void 0},meridiem:function(t,e,n){return t<3?"राति":t<12?"बिहान":t<16?"दिउँसो":t<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}});return r}))},"3a6c":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"中午"===e?t>=11?t:t+12:"下午"===e||"晚上"===e?t+12:void 0},meridiem:function(t,e,n){var r=100*t+e;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"週";default:return t}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}});return e}))},"3a7c":function(t,e,n){function r(t){return Array.isArray?Array.isArray(t):"[object Array]"===y(t)}function i(t){return"boolean"===typeof t}function o(t){return null===t}function s(t){return null==t}function a(t){return"number"===typeof t}function u(t){return"string"===typeof t}function c(t){return"symbol"===typeof t}function l(t){return void 0===t}function h(t){return"[object RegExp]"===y(t)}function d(t){return"object"===typeof t&&null!==t}function f(t){return"[object Date]"===y(t)}function p(t){return"[object Error]"===y(t)||t instanceof Error}function m(t){return"function"===typeof t}function g(t){return null===t||"boolean"===typeof t||"number"===typeof t||"string"===typeof t||"symbol"===typeof t||"undefined"===typeof t}function y(t){return Object.prototype.toString.call(t)}e.isArray=r,e.isBoolean=i,e.isNull=o,e.isNullOrUndefined=s,e.isNumber=a,e.isString=u,e.isSymbol=c,e.isUndefined=l,e.isRegExp=h,e.isObject=d,e.isDate=f,e.isError=p,e.isFunction=m,e.isPrimitive=g,e.isBuffer=n("b639").Buffer.isBuffer},"3a89":function(t,e){const n={IMPOSSIBLE_CASE:"Impossible case. Please create issue.",TWEAK_ADD:"The tweak was out of range or the resulted private key is invalid",TWEAK_MUL:"The tweak was out of range or equal to zero",CONTEXT_RANDOMIZE_UNKNOW:"Unknow error on context randomization",SECKEY_INVALID:"Private Key is invalid",PUBKEY_PARSE:"Public Key could not be parsed",PUBKEY_SERIALIZE:"Public Key serialization error",PUBKEY_COMBINE:"The sum of the public keys is not valid",SIG_PARSE:"Signature could not be parsed",SIGN:"The nonce generation function failed, or the private key was invalid",RECOVER:"Public key could not be recover",ECDH:"Scalar was invalid (zero or overflow)"};function r(t,e){if(!t)throw new Error(e)}function i(t,e,n){if(r(e instanceof Uint8Array,`Expected ${t} to be an Uint8Array`),void 0!==n)if(Array.isArray(n)){const i=n.join(", "),o=`Expected ${t} to be an Uint8Array with length [${i}]`;r(n.includes(e.length),o)}else{const i=`Expected ${t} to be an Uint8Array with length ${n}`;r(e.length===n,i)}}function o(t){r("Boolean"===a(t),"Expected compressed to be a Boolean")}function s(t=(t=>new Uint8Array(t)),e){return"function"===typeof t&&(t=t(e)),i("output",t,e),t}function a(t){return Object.prototype.toString.call(t).slice(8,-1)}t.exports=t=>({contextRandomize(e){switch(r(null===e||e instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),null!==e&&i("seed",e,32),t.contextRandomize(e)){case 1:throw new Error(n.CONTEXT_RANDOMIZE_UNKNOW)}},privateKeyVerify(e){return i("private key",e,32),0===t.privateKeyVerify(e)},privateKeyNegate(e){switch(i("private key",e,32),t.privateKeyNegate(e)){case 0:return e;case 1:throw new Error(n.IMPOSSIBLE_CASE)}},privateKeyTweakAdd(e,r){switch(i("private key",e,32),i("tweak",r,32),t.privateKeyTweakAdd(e,r)){case 0:return e;case 1:throw new Error(n.TWEAK_ADD)}},privateKeyTweakMul(e,r){switch(i("private key",e,32),i("tweak",r,32),t.privateKeyTweakMul(e,r)){case 0:return e;case 1:throw new Error(n.TWEAK_MUL)}},publicKeyVerify(e){return i("public key",e,[33,65]),0===t.publicKeyVerify(e)},publicKeyCreate(e,r=!0,a){switch(i("private key",e,32),o(r),a=s(a,r?33:65),t.publicKeyCreate(a,e)){case 0:return a;case 1:throw new Error(n.SECKEY_INVALID);case 2:throw new Error(n.PUBKEY_SERIALIZE)}},publicKeyConvert(e,r=!0,a){switch(i("public key",e,[33,65]),o(r),a=s(a,r?33:65),t.publicKeyConvert(a,e)){case 0:return a;case 1:throw new Error(n.PUBKEY_PARSE);case 2:throw new Error(n.PUBKEY_SERIALIZE)}},publicKeyNegate(e,r=!0,a){switch(i("public key",e,[33,65]),o(r),a=s(a,r?33:65),t.publicKeyNegate(a,e)){case 0:return a;case 1:throw new Error(n.PUBKEY_PARSE);case 2:throw new Error(n.IMPOSSIBLE_CASE);case 3:throw new Error(n.PUBKEY_SERIALIZE)}},publicKeyCombine(e,a=!0,u){r(Array.isArray(e),"Expected public keys to be an Array"),r(e.length>0,"Expected public keys array will have more than zero items");for(const t of e)i("public key",t,[33,65]);switch(o(a),u=s(u,a?33:65),t.publicKeyCombine(u,e)){case 0:return u;case 1:throw new Error(n.PUBKEY_PARSE);case 2:throw new Error(n.PUBKEY_COMBINE);case 3:throw new Error(n.PUBKEY_SERIALIZE)}},publicKeyTweakAdd(e,r,a=!0,u){switch(i("public key",e,[33,65]),i("tweak",r,32),o(a),u=s(u,a?33:65),t.publicKeyTweakAdd(u,e,r)){case 0:return u;case 1:throw new Error(n.PUBKEY_PARSE);case 2:throw new Error(n.TWEAK_ADD)}},publicKeyTweakMul(e,r,a=!0,u){switch(i("public key",e,[33,65]),i("tweak",r,32),o(a),u=s(u,a?33:65),t.publicKeyTweakMul(u,e,r)){case 0:return u;case 1:throw new Error(n.PUBKEY_PARSE);case 2:throw new Error(n.TWEAK_MUL)}},signatureNormalize(e){switch(i("signature",e,64),t.signatureNormalize(e)){case 0:return e;case 1:throw new Error(n.SIG_PARSE)}},signatureExport(e,r){i("signature",e,64),r=s(r,72);const o={output:r,outputlen:72};switch(t.signatureExport(o,e)){case 0:return r.slice(0,o.outputlen);case 1:throw new Error(n.SIG_PARSE);case 2:throw new Error(n.IMPOSSIBLE_CASE)}},signatureImport(e,r){switch(i("signature",e),r=s(r,64),t.signatureImport(r,e)){case 0:return r;case 1:throw new Error(n.SIG_PARSE);case 2:throw new Error(n.IMPOSSIBLE_CASE)}},ecdsaSign(e,o,u={},c){i("message",e,32),i("private key",o,32),r("Object"===a(u),"Expected options to be an Object"),void 0!==u.data&&i("options.data",u.data),void 0!==u.noncefn&&r("Function"===a(u.noncefn),"Expected options.noncefn to be a Function"),c=s(c,64);const l={signature:c,recid:null};switch(t.ecdsaSign(l,e,o,u.data,u.noncefn)){case 0:return l;case 1:throw new Error(n.SIGN);case 2:throw new Error(n.IMPOSSIBLE_CASE)}},ecdsaVerify(e,r,o){switch(i("signature",e,64),i("message",r,32),i("public key",o,[33,65]),t.ecdsaVerify(e,r,o)){case 0:return!0;case 3:return!1;case 1:throw new Error(n.SIG_PARSE);case 2:throw new Error(n.PUBKEY_PARSE)}},ecdsaRecover(e,u,c,l=!0,h){switch(i("signature",e,64),r("Number"===a(u)&&u>=0&&u<=3,"Expected recovery id to be a Number within interval [0, 3]"),i("message",c,32),o(l),h=s(h,l?33:65),t.ecdsaRecover(h,e,u,c)){case 0:return h;case 1:throw new Error(n.SIG_PARSE);case 2:throw new Error(n.RECOVER);case 3:throw new Error(n.IMPOSSIBLE_CASE)}},ecdh(e,o,u={},c){switch(i("public key",e,[33,65]),i("private key",o,32),r("Object"===a(u),"Expected options to be an Object"),void 0!==u.data&&i("options.data",u.data),void 0!==u.hashfn?(r("Function"===a(u.hashfn),"Expected options.hashfn to be a Function"),void 0!==u.xbuf&&i("options.xbuf",u.xbuf,32),void 0!==u.ybuf&&i("options.ybuf",u.ybuf,32),i("output",c)):c=s(c,32),t.ecdh(c,e,o,u.data,u.hashfn,u.xbuf,u.ybuf)){case 0:return c;case 1:throw new Error(n.PUBKEY_PARSE);case 2:throw new Error(n.ECDH)}}})},"3a9b":function(t,e,n){var r=n("e330");t.exports=r({}.isPrototypeOf)},"3b13":function(t,e,n){"use strict";var r=n("1970");n.o(r,"PhantomWalletAdapter")&&n.d(e,"PhantomWalletAdapter",(function(){return r["PhantomWalletAdapter"]})),n.o(r,"SlopeWalletAdapter")&&n.d(e,"SlopeWalletAdapter",(function(){return r["SlopeWalletAdapter"]})),n.o(r,"SolflareWalletAdapter")&&n.d(e,"SolflareWalletAdapter",(function(){return r["SolflareWalletAdapter"]})),n.o(r,"SolletWalletAdapter")&&n.d(e,"SolletWalletAdapter",(function(){return r["SolletWalletAdapter"]}));var i=n("23bb");n.o(i,"PhantomWalletAdapter")&&n.d(e,"PhantomWalletAdapter",(function(){return i["PhantomWalletAdapter"]})),n.o(i,"SlopeWalletAdapter")&&n.d(e,"SlopeWalletAdapter",(function(){return i["SlopeWalletAdapter"]})),n.o(i,"SolflareWalletAdapter")&&n.d(e,"SolflareWalletAdapter",(function(){return i["SolflareWalletAdapter"]})),n.o(i,"SolletWalletAdapter")&&n.d(e,"SolletWalletAdapter",(function(){return i["SolletWalletAdapter"]}));var o=n("f1fe");n.o(o,"PhantomWalletAdapter")&&n.d(e,"PhantomWalletAdapter",(function(){return o["PhantomWalletAdapter"]})),n.o(o,"SlopeWalletAdapter")&&n.d(e,"SlopeWalletAdapter",(function(){return o["SlopeWalletAdapter"]})),n.o(o,"SolflareWalletAdapter")&&n.d(e,"SolflareWalletAdapter",(function(){return o["SolflareWalletAdapter"]})),n.o(o,"SolletWalletAdapter")&&n.d(e,"SolletWalletAdapter",(function(){return o["SolletWalletAdapter"]}));var s=n("04bc");n.o(s,"PhantomWalletAdapter")&&n.d(e,"PhantomWalletAdapter",(function(){return s["PhantomWalletAdapter"]})),n.o(s,"SlopeWalletAdapter")&&n.d(e,"SlopeWalletAdapter",(function(){return s["SlopeWalletAdapter"]})),n.o(s,"SolflareWalletAdapter")&&n.d(e,"SolflareWalletAdapter",(function(){return s["SolflareWalletAdapter"]})),n.o(s,"SolletWalletAdapter")&&n.d(e,"SolletWalletAdapter",(function(){return s["SolletWalletAdapter"]}));var a=n("e67b");n.o(a,"PhantomWalletAdapter")&&n.d(e,"PhantomWalletAdapter",(function(){return a["PhantomWalletAdapter"]})),n.o(a,"SlopeWalletAdapter")&&n.d(e,"SlopeWalletAdapter",(function(){return a["SlopeWalletAdapter"]})),n.o(a,"SolflareWalletAdapter")&&n.d(e,"SolflareWalletAdapter",(function(){return a["SolflareWalletAdapter"]})),n.o(a,"SolletWalletAdapter")&&n.d(e,"SolletWalletAdapter",(function(){return a["SolletWalletAdapter"]}));var u=n("a788");n.o(u,"PhantomWalletAdapter")&&n.d(e,"PhantomWalletAdapter",(function(){return u["PhantomWalletAdapter"]})),n.o(u,"SlopeWalletAdapter")&&n.d(e,"SlopeWalletAdapter",(function(){return u["SlopeWalletAdapter"]})),n.o(u,"SolflareWalletAdapter")&&n.d(e,"SolflareWalletAdapter",(function(){return u["SolflareWalletAdapter"]})),n.o(u,"SolletWalletAdapter")&&n.d(e,"SolletWalletAdapter",(function(){return u["SolletWalletAdapter"]}));var c=n("dce1");n.o(c,"PhantomWalletAdapter")&&n.d(e,"PhantomWalletAdapter",(function(){return c["PhantomWalletAdapter"]})),n.o(c,"SlopeWalletAdapter")&&n.d(e,"SlopeWalletAdapter",(function(){return c["SlopeWalletAdapter"]})),n.o(c,"SolflareWalletAdapter")&&n.d(e,"SolflareWalletAdapter",(function(){return c["SolflareWalletAdapter"]})),n.o(c,"SolletWalletAdapter")&&n.d(e,"SolletWalletAdapter",(function(){return c["SolletWalletAdapter"]}));var l=n("74db");n.o(l,"PhantomWalletAdapter")&&n.d(e,"PhantomWalletAdapter",(function(){return l["PhantomWalletAdapter"]})),n.o(l,"SlopeWalletAdapter")&&n.d(e,"SlopeWalletAdapter",(function(){return l["SlopeWalletAdapter"]})),n.o(l,"SolflareWalletAdapter")&&n.d(e,"SolflareWalletAdapter",(function(){return l["SolflareWalletAdapter"]})),n.o(l,"SolletWalletAdapter")&&n.d(e,"SolletWalletAdapter",(function(){return l["SolletWalletAdapter"]}));var h=n("41a2");n.o(h,"PhantomWalletAdapter")&&n.d(e,"PhantomWalletAdapter",(function(){return h["PhantomWalletAdapter"]})),n.o(h,"SlopeWalletAdapter")&&n.d(e,"SlopeWalletAdapter",(function(){return h["SlopeWalletAdapter"]})),n.o(h,"SolflareWalletAdapter")&&n.d(e,"SolflareWalletAdapter",(function(){return h["SolflareWalletAdapter"]})),n.o(h,"SolletWalletAdapter")&&n.d(e,"SolletWalletAdapter",(function(){return h["SolletWalletAdapter"]}));var d=n("afec");n.o(d,"PhantomWalletAdapter")&&n.d(e,"PhantomWalletAdapter",(function(){return d["PhantomWalletAdapter"]})),n.o(d,"SlopeWalletAdapter")&&n.d(e,"SlopeWalletAdapter",(function(){return d["SlopeWalletAdapter"]})),n.o(d,"SolflareWalletAdapter")&&n.d(e,"SolflareWalletAdapter",(function(){return d["SolflareWalletAdapter"]})),n.o(d,"SolletWalletAdapter")&&n.d(e,"SolletWalletAdapter",(function(){return d["SolletWalletAdapter"]}));var f=n("942d");n.o(f,"PhantomWalletAdapter")&&n.d(e,"PhantomWalletAdapter",(function(){return f["PhantomWalletAdapter"]})),n.o(f,"SlopeWalletAdapter")&&n.d(e,"SlopeWalletAdapter",(function(){return f["SlopeWalletAdapter"]})),n.o(f,"SolflareWalletAdapter")&&n.d(e,"SolflareWalletAdapter",(function(){return f["SolflareWalletAdapter"]})),n.o(f,"SolletWalletAdapter")&&n.d(e,"SolletWalletAdapter",(function(){return f["SolletWalletAdapter"]}));var p=n("f7df");n.o(p,"PhantomWalletAdapter")&&n.d(e,"PhantomWalletAdapter",(function(){return p["PhantomWalletAdapter"]})),n.o(p,"SlopeWalletAdapter")&&n.d(e,"SlopeWalletAdapter",(function(){return p["SlopeWalletAdapter"]})),n.o(p,"SolflareWalletAdapter")&&n.d(e,"SolflareWalletAdapter",(function(){return p["SolflareWalletAdapter"]})),n.o(p,"SolletWalletAdapter")&&n.d(e,"SolletWalletAdapter",(function(){return p["SolletWalletAdapter"]}));var m=n("27ca");n.o(m,"PhantomWalletAdapter")&&n.d(e,"PhantomWalletAdapter",(function(){return m["PhantomWalletAdapter"]})),n.o(m,"SlopeWalletAdapter")&&n.d(e,"SlopeWalletAdapter",(function(){return m["SlopeWalletAdapter"]})),n.o(m,"SolflareWalletAdapter")&&n.d(e,"SolflareWalletAdapter",(function(){return m["SolflareWalletAdapter"]})),n.o(m,"SolletWalletAdapter")&&n.d(e,"SolletWalletAdapter",(function(){return m["SolletWalletAdapter"]}));var g=n("5684");n.o(g,"PhantomWalletAdapter")&&n.d(e,"PhantomWalletAdapter",(function(){return g["PhantomWalletAdapter"]})),n.o(g,"SlopeWalletAdapter")&&n.d(e,"SlopeWalletAdapter",(function(){return g["SlopeWalletAdapter"]})),n.o(g,"SolflareWalletAdapter")&&n.d(e,"SolflareWalletAdapter",(function(){return g["SolflareWalletAdapter"]})),n.o(g,"SolletWalletAdapter")&&n.d(e,"SolletWalletAdapter",(function(){return g["SolletWalletAdapter"]}));var y=n("554e");n.o(y,"PhantomWalletAdapter")&&n.d(e,"PhantomWalletAdapter",(function(){return y["PhantomWalletAdapter"]})),n.o(y,"SlopeWalletAdapter")&&n.d(e,"SlopeWalletAdapter",(function(){return y["SlopeWalletAdapter"]})),n.o(y,"SolflareWalletAdapter")&&n.d(e,"SolflareWalletAdapter",(function(){return y["SolflareWalletAdapter"]})),n.o(y,"SolletWalletAdapter")&&n.d(e,"SolletWalletAdapter",(function(){return y["SolletWalletAdapter"]}));var b=n("8bc9");n.o(b,"PhantomWalletAdapter")&&n.d(e,"PhantomWalletAdapter",(function(){return b["PhantomWalletAdapter"]})),n.o(b,"SlopeWalletAdapter")&&n.d(e,"SlopeWalletAdapter",(function(){return b["SlopeWalletAdapter"]})),n.o(b,"SolflareWalletAdapter")&&n.d(e,"SolflareWalletAdapter",(function(){return b["SolflareWalletAdapter"]})),n.o(b,"SolletWalletAdapter")&&n.d(e,"SolletWalletAdapter",(function(){return b["SolletWalletAdapter"]}));var v=n("eb74");n.o(v,"PhantomWalletAdapter")&&n.d(e,"PhantomWalletAdapter",(function(){return v["PhantomWalletAdapter"]})),n.o(v,"SlopeWalletAdapter")&&n.d(e,"SlopeWalletAdapter",(function(){return v["SlopeWalletAdapter"]})),n.o(v,"SolflareWalletAdapter")&&n.d(e,"SolflareWalletAdapter",(function(){return v["SolflareWalletAdapter"]})),n.o(v,"SolletWalletAdapter")&&n.d(e,"SolletWalletAdapter",(function(){return v["SolletWalletAdapter"]}));n("cdc5")},"3b1b":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"},n=t.defineLocale("tg",{months:{format:"январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри".split("_"),standalone:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_")},monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Фардо соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(t,e){return 12===t&&(t=0),"шаб"===e?t<4?t:t+12:"субҳ"===e?t:"рӯз"===e?t>=11?t:t+12:"бегоҳ"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"шаб":t<11?"субҳ":t<16?"рӯз":t<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(t){var n=t%10,r=t>=100?100:null;return t+(e[t]||e[n]||e[r])},week:{dow:1,doy:7}});return n}))},"3b46":function(t,e,n){var r=n("638d"),i="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";t.exports=r(i)},"3bbe":function(t,e,n){var r=n("1626"),i=String,o=TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw o("Can't set "+i(t)+" as a prototype")}},"3c0d":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e={format:"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),standalone:"ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince".split("_")},n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),r=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],i=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function o(t){return t>1&&t<5&&1!==~~(t/10)}function s(t,e,n,r){var i=t+" ";switch(n){case"s":return e||r?"pár sekund":"pár sekundami";case"ss":return e||r?i+(o(t)?"sekundy":"sekund"):i+"sekundami";case"m":return e?"minuta":r?"minutu":"minutou";case"mm":return e||r?i+(o(t)?"minuty":"minut"):i+"minutami";case"h":return e?"hodina":r?"hodinu":"hodinou";case"hh":return e||r?i+(o(t)?"hodiny":"hodin"):i+"hodinami";case"d":return e||r?"den":"dnem";case"dd":return e||r?i+(o(t)?"dny":"dní"):i+"dny";case"M":return e||r?"měsíc":"měsícem";case"MM":return e||r?i+(o(t)?"měsíce":"měsíců"):i+"měsíci";case"y":return e||r?"rok":"rokem";case"yy":return e||r?i+(o(t)?"roky":"let"):i+"lety"}}var a=t.defineLocale("cs",{months:e,monthsShort:n,monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:s,ss:s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return a}))},"3c35":function(t,e){(function(e){t.exports=e}).call(this,{})},"3c96":function(t,e,n){function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n("d9e2"),t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},"3daf":function(t,e,n){"use strict";var r=n("f3a3"),i=n("80af"),o=n("3fb5"),s=n("ea53"),a=r.assert;function u(t){this.twisted=1!==(0|t.a),this.mOneA=this.twisted&&-1===(0|t.a),this.extended=this.mOneA,s.call(this,"edwards",t),this.a=new i(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),a(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1===(0|t.c)}function c(t,e,n,r,o){s.BasePoint.call(this,t,"projective"),null===e&&null===n&&null===r?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(e,16),this.y=new i(n,16),this.z=r?new i(r,16):this.curve.one,this.t=o&&new i(o,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.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(u,s),t.exports=u,u.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},u.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},u.prototype.jpoint=function(t,e,n,r){return this.point(t,e,n,r)},u.prototype.pointFromX=function(t,e){t=new i(t,16),t.red||(t=t.toRed(this.red));var n=t.redSqr(),r=this.c2.redSub(this.a.redMul(n)),o=this.one.redSub(this.c2.redMul(this.d).redMul(n)),s=r.redMul(o.redInvm()),a=s.redSqrt();if(0!==a.redSqr().redSub(s).cmp(this.zero))throw new Error("invalid point");var u=a.fromRed().isOdd();return(e&&!u||!e&&u)&&(a=a.redNeg()),this.point(t,a)},u.prototype.pointFromY=function(t,e){t=new i(t,16),t.red||(t=t.toRed(this.red));var n=t.redSqr(),r=n.redSub(this.c2),o=n.redMul(this.d).redMul(this.c2).redSub(this.a),s=r.redMul(o.redInvm());if(0===s.cmp(this.zero)){if(e)throw new Error("invalid point");return this.point(this.zero,t)}var a=s.redSqrt();if(0!==a.redSqr().redSub(s).cmp(this.zero))throw new Error("invalid point");return a.fromRed().isOdd()!==e&&(a=a.redNeg()),this.point(a,t)},u.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),n=t.y.redSqr(),r=e.redMul(this.a).redAdd(n),i=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(n)));return 0===r.cmp(i)},o(c,s.BasePoint),u.prototype.pointFromJSON=function(t){return c.fromJSON(this,t)},u.prototype.point=function(t,e,n,r){return new c(this,t,e,n,r)},c.fromJSON=function(t,e){return new c(t,e[0],e[1],e[2])},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var r=this.curve._mulA(t),i=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),o=r.redAdd(e),s=o.redSub(n),a=r.redSub(e),u=i.redMul(s),c=o.redMul(a),l=i.redMul(a),h=s.redMul(o);return this.curve.point(u,c,h,l)},c.prototype._projDbl=function(){var t,e,n,r,i,o,s=this.x.redAdd(this.y).redSqr(),a=this.x.redSqr(),u=this.y.redSqr();if(this.curve.twisted){r=this.curve._mulA(a);var c=r.redAdd(u);this.zOne?(t=s.redSub(a).redSub(u).redMul(c.redSub(this.curve.two)),e=c.redMul(r.redSub(u)),n=c.redSqr().redSub(c).redSub(c)):(i=this.z.redSqr(),o=c.redSub(i).redISub(i),t=s.redSub(a).redISub(u).redMul(o),e=c.redMul(r.redSub(u)),n=c.redMul(o))}else r=a.redAdd(u),i=this.curve._mulC(this.z).redSqr(),o=r.redSub(i).redSub(i),t=this.curve._mulC(s.redISub(r)).redMul(o),e=this.curve._mulC(r).redMul(a.redISub(u)),n=r.redMul(o);return this.curve.point(t,e,n)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(t){var e=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),n=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),r=this.t.redMul(this.curve.dd).redMul(t.t),i=this.z.redMul(t.z.redAdd(t.z)),o=n.redSub(e),s=i.redSub(r),a=i.redAdd(r),u=n.redAdd(e),c=o.redMul(s),l=a.redMul(u),h=o.redMul(u),d=s.redMul(a);return this.curve.point(c,l,d,h)},c.prototype._projAdd=function(t){var e,n,r=this.z.redMul(t.z),i=r.redSqr(),o=this.x.redMul(t.x),s=this.y.redMul(t.y),a=this.curve.d.redMul(o).redMul(s),u=i.redSub(a),c=i.redAdd(a),l=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(o).redISub(s),h=r.redMul(u).redMul(l);return this.curve.twisted?(e=r.redMul(c).redMul(s.redSub(this.curve._mulA(o))),n=u.redMul(c)):(e=r.redMul(c).redMul(s.redSub(o)),n=this.curve._mulC(u).redMul(c)),this.curve.point(h,e,n)},c.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},c.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},c.prototype.mulAdd=function(t,e,n){return this.curve._wnafMulAdd(1,[this,e],[t,n],2,!1)},c.prototype.jmulAdd=function(t,e,n){return this.curve._wnafMulAdd(1,[this,e],[t,n],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},c.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var n=t.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(e.redIAdd(r),0===this.x.cmp(e))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},"3de5":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"},r=t.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(t){return t+"வது"},preparse:function(t){return t.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(t,e,n){return t<2?" யாமம்":t<6?" வைகறை":t<10?" காலை":t<14?" நண்பகல்":t<18?" எற்பாடு":t<22?" மாலை":" யாமம்"},meridiemHour:function(t,e){return 12===t&&(t=0),"யாமம்"===e?t<2?t:t+12:"வைகறை"===e||"காலை"===e||"நண்பகல்"===e&&t>=10?t:t+12},week:{dow:0,doy:6}});return r}))},"3e1a":function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t["default"]=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e},s=this&&this.__awaiter||function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function s(t){try{u(r.next(t))}catch(e){o(e)}}function a(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(s,a)}u((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.LedgerWalletAdapter=e.LedgerWalletName=void 0;const a=n("0a37");n("c833");const u=n("a29b");e.LedgerWalletName="Ledger";class c extends a.BaseSignerWalletAdapter{constructor(t={}){super(),this.name=e.LedgerWalletName,this.url="https://ledger.com",this.icon="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMzUgMzUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iI2ZmZiI+PHBhdGggZD0ibTIzLjU4OCAwaC0xNnYyMS41ODNoMjEuNnYtMTZhNS41ODUgNS41ODUgMCAwIDAgLTUuNi01LjU4M3oiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDUuNzM5KSIvPjxwYXRoIGQ9Im04LjM0MiAwaC0yLjc1N2E1LjU4NSA1LjU4NSAwIDAgMCAtNS41ODUgNS41ODV2Mi43NTdoOC4zNDJ6Ii8+PHBhdGggZD0ibTAgNy41OWg4LjM0MnY4LjM0MmgtOC4zNDJ6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDUuNzM5KSIvPjxwYXRoIGQ9Im0xNS4xOCAyMy40NTFoMi43NTdhNS41ODUgNS41ODUgMCAwIDAgNS41ODUtNS42di0yLjY3MWgtOC4zNDJ6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMS40NzggMTEuNDc4KSIvPjxwYXRoIGQ9Im03LjU5IDE1LjE4aDguMzQydjguMzQyaC04LjM0MnoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDUuNzM5IDExLjQ3OCkiLz48cGF0aCBkPSJtMCAxNS4xOHYyLjc1N2E1LjU4NSA1LjU4NSAwIDAgMCA1LjU4NSA1LjU4NWgyLjc1N3YtOC4zNDJ6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDExLjQ3OCkiLz48L2c+PC9zdmc+",this._readyState="undefined"!==typeof navigator&&navigator.hid?a.WalletReadyState.Loadable:a.WalletReadyState.Unsupported,this._disconnected=()=>{const t=this._transport;t&&(t.off("disconnect",this._disconnected),this._transport=null,this._publicKey=null,this.emit("error",new a.WalletDisconnectedError),this.emit("disconnect"))},this._derivationPath=t.derivationPath||(0,u.getDerivationPath)(0,0),this._connecting=!1,this._transport=null,this._publicKey=null}get publicKey(){return this._publicKey}get connecting(){return this._connecting}get readyState(){return this._readyState}connect(){return s(this,void 0,void 0,(function*(){try{if(this.connected||this.connecting)return;if(this._readyState===a.WalletReadyState.Unsupported)throw new a.WalletNotReadyError;let e,r,i;this._connecting=!0;try{({default:e}=yield Promise.resolve().then(()=>o(n("8378"))))}catch(t){throw new a.WalletLoadError(null===t||void 0===t?void 0:t.message,t)}try{r=yield e.create()}catch(t){throw new a.WalletConnectionError(null===t||void 0===t?void 0:t.message,t)}try{i=yield(0,u.getPublicKey)(r,this._derivationPath)}catch(t){throw new a.WalletPublicKeyError(null===t||void 0===t?void 0:t.message,t)}r.on("disconnect",this._disconnected),this._transport=r,this._publicKey=i,this.emit("connect",i)}catch(t){throw this.emit("error",t),t}finally{this._connecting=!1}}))}disconnect(){return s(this,void 0,void 0,(function*(){const t=this._transport;if(t){t.off("disconnect",this._disconnected),this._transport=null,this._publicKey=null;try{yield t.close()}catch(e){this.emit("error",new a.WalletDisconnectionError(null===e||void 0===e?void 0:e.message,e))}}this.emit("disconnect")}))}signTransaction(t){return s(this,void 0,void 0,(function*(){try{const n=this._transport,r=this._publicKey;if(!n||!r)throw new a.WalletNotConnectedError;try{const e=yield(0,u.signTransaction)(n,t,this._derivationPath);t.addSignature(r,e)}catch(e){throw new a.WalletSignTransactionError(null===e||void 0===e?void 0:e.message,e)}return t}catch(e){throw this.emit("error",e),e}}))}signAllTransactions(t){return s(this,void 0,void 0,(function*(){try{const n=this._transport,r=this._publicKey;if(!n||!r)throw new a.WalletNotConnectedError;try{const e=this._derivationPath;for(const i of t){const t=yield(0,u.signTransaction)(n,i,e);i.addSignature(r,t)}}catch(e){throw new a.WalletSignTransactionError(null===e||void 0===e?void 0:e.message,e)}return t}catch(e){throw this.emit("error",e),e}}))}}e.LedgerWalletAdapter=c},"3e92":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"},r=t.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(t){return t.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(t,e){return 12===t&&(t=0),"ರಾತ್ರಿ"===e?t<4?t:t+12:"ಬೆಳಿಗ್ಗೆ"===e?t:"ಮಧ್ಯಾಹ್ನ"===e?t>=10?t:t+12:"ಸಂಜೆ"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"ರಾತ್ರಿ":t<10?"ಬೆಳಿಗ್ಗೆ":t<17?"ಮಧ್ಯಾಹ್ನ":t<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(t){return t+"ನೇ"},week:{dow:0,doy:6}});return r}))},"3f10":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.Client=void 0;var i=r(n("5bc3")),o=r(n("970b")),s=r(n("ed6d")),a=r(n("6b58")),u=r(n("36c6")),c=r(n("136e")),l=r(n("e01f"));function h(t){var e=d();return function(){var n,r=(0,u["default"])(t);if(e){var i=(0,u["default"])(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(0,a["default"])(this,n)}}function d(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var f=function(t){(0,s["default"])(n,t);var e=h(n);function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ws://localhost:8080",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.autoconnect,s=void 0===i||i,a=r.reconnect,u=void 0===a||a,l=r.reconnect_interval,h=void 0===l?1e3:l,d=r.max_reconnects,f=void 0===d?5:d,p=arguments.length>2?arguments[2]:void 0;return(0,o["default"])(this,n),e.call(this,c["default"],t,{autoconnect:s,reconnect:u,reconnect_interval:h,max_reconnects:f},p)}return(0,i["default"])(n)}(l["default"]);e.Client=f},"3f4e":function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n("abc5");const i="devtools-plugin:setup",o="plugin:settings:set";var s=n("5134");class a{constructor(t,e){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=e;const n={};if(t.settings)for(const o in t.settings){const e=t.settings[o];n[o]=e.defaultValue}const r="__vue-devtools-plugin-settings__"+t.id;let i=Object.assign({},n);try{const t=localStorage.getItem(r),e=JSON.parse(t);Object.assign(i,e)}catch(a){}this.fallbacks={getSettings(){return i},setSettings(t){try{localStorage.setItem(r,JSON.stringify(t))}catch(a){}i=t},now(){return Object(s["a"])()}},e&&e.on(o,(t,e)=>{t===this.plugin.id&&this.fallbacks.setSettings(e)}),this.proxiedOn=new Proxy({},{get:(t,e)=>this.target?this.target.on[e]:(...t)=>{this.onQueue.push({method:e,args:t})}}),this.proxiedTarget=new Proxy({},{get:(t,e)=>this.target?this.target[e]:"on"===e?this.proxiedOn:Object.keys(this.fallbacks).includes(e)?(...t)=>(this.targetQueue.push({method:e,args:t,resolve:()=>{}}),this.fallbacks[e](...t)):(...t)=>new Promise(n=>{this.targetQueue.push({method:e,args:t,resolve:n})})})}async setRealTarget(t){this.target=t;for(const e of this.onQueue)this.target.on[e.method](...e.args);for(const e of this.targetQueue)e.resolve(await this.target[e.method](...e.args))}}function u(t,e){const n=t,o=Object(r["b"])(),s=Object(r["a"])(),u=r["c"]&&n.enableEarlyProxy;if(!s||!o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&u){const t=u?new a(n,s):null,r=o.__VUE_DEVTOOLS_PLUGINS__=o.__VUE_DEVTOOLS_PLUGINS__||[];r.push({pluginDescriptor:n,setupFn:e,proxy:t}),t&&e(t.proxiedTarget)}else s.emit(i,t,e)}},"3f62":function(t,e,n){var r=n("8707").Buffer,i=r.alloc(16,0);function o(t){return[t.readUInt32BE(0),t.readUInt32BE(4),t.readUInt32BE(8),t.readUInt32BE(12)]}function s(t){var e=r.allocUnsafe(16);return e.writeUInt32BE(t[0]>>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function a(t){this.h=t,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}a.prototype.ghash=function(t){var e=-1;while(++e0;t--)r[t]=r[t]>>>1|(1&r[t-1])<<31;r[0]=r[0]>>>1,n&&(r[0]=r[0]^225<<24)}this.state=s(i)},a.prototype.update=function(t){var e;this.cache=r.concat([this.cache,t]);while(this.cache.length>=16)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},a.prototype.final=function(t,e){return this.cache.length&&this.ghash(r.concat([this.cache,i],16)),this.ghash(s([0,t,0,e])),this.state},t.exports=a},"3fb5":function(t,e){"function"===typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},4024:function(t,e,n){const r=n("2ae6"),i=(t,e)=>{const n=r(t,e);return n?n.version:null};t.exports=i},"409b":function(t,e){t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},"40a3":function(t,e,n){const r=n("c2a4"),i=(t,e,n,i)=>{"string"===typeof n&&(i=n,n=void 0);try{return new r(t instanceof r?t.version:t,n).inc(e,i).version}catch(o){return null}};t.exports=i},"40ab":function(t,e,n){const r=n("c2a4"),i=n("49ac"),{ANY:o}=i,s=n("0872"),a=n("5503"),u=n("54cf"),c=n("144b"),l=n("0a9d"),h=n("dcc1"),d=(t,e,n,d)=>{let f,p,m,g,y;switch(t=new r(t,d),e=new s(e,d),n){case">":f=u,p=l,m=c,g=">",y=">=";break;case"<":f=c,p=h,m=u,g="<",y="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(t,e,d))return!1;for(let r=0;r{t.semver===o&&(t=new i(">=0.0.0")),s=s||t,a=a||t,f(t.semver,s.semver,d)?s=t:m(t.semver,a.semver,d)&&(a=t)}),s.operator===g||s.operator===y)return!1;if((!a.operator||a.operator===g)&&p(t,a.semver))return!1;if(a.operator===y&&m(t,a.semver))return!1}return!0};t.exports=d},"40d5":function(t,e,n){var r=n("d039");t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},4111:function(t,e,n){"use strict";var r=n("7f7a");e.certificate=n("56b5");var i=r.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));e.RSAPrivateKey=i;var o=r.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));e.RSAPublicKey=o;var s=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())}));e.PublicKey=s;var a=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),u=r.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(a),this.key("subjectPrivateKey").octstr())}));e.PrivateKey=u;var c=r.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));e.EncryptedPrivateKey=c;var l=r.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));e.DSAPrivateKey=l,e.DSAparam=r.define("DSAparam",(function(){this.int()}));var h=r.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(d),this.key("publicKey").optional().explicit(1).bitstr())}));e.ECPrivateKey=h;var d=r.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));e.signature=r.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},4136:function(t,e,n){"use strict";var r=e;r.base=n("ea53"),r.short=n("3300"),r.mont=n("676f"),r.edwards=n("3daf")},4186:function(t,e,n){"use strict";(function(e){var r;function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n("ee93"),s=Symbol("lastResolve"),a=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),l=Symbol("lastPromise"),h=Symbol("handlePromise"),d=Symbol("stream");function f(t,e){return{value:t,done:e}}function p(t){var e=t[s];if(null!==e){var n=t[d].read();null!==n&&(t[l]=null,t[s]=null,t[a]=null,e(f(n,!1)))}}function m(t){e.nextTick(p,t)}function g(t,e){return function(n,r){t.then((function(){e[c]?n(f(void 0,!0)):e[h](n,r)}),r)}}var y=Object.getPrototypeOf((function(){})),b=Object.setPrototypeOf((r={get stream(){return this[d]},next:function(){var t=this,n=this[u];if(null!==n)return Promise.reject(n);if(this[c])return Promise.resolve(f(void 0,!0));if(this[d].destroyed)return new Promise((function(n,r){e.nextTick((function(){t[u]?r(t[u]):n(f(void 0,!0))}))}));var r,i=this[l];if(i)r=new Promise(g(i,this));else{var o=this[d].read();if(null!==o)return Promise.resolve(f(o,!1));r=new Promise(this[h])}return this[l]=r,r}},i(r,Symbol.asyncIterator,(function(){return this})),i(r,"return",(function(){var t=this;return new Promise((function(e,n){t[d].destroy(null,(function(t){t?n(t):e(f(void 0,!0))}))}))})),r),y),v=function(t){var e,n=Object.create(b,(e={},i(e,d,{value:t,writable:!0}),i(e,s,{value:null,writable:!0}),i(e,a,{value:null,writable:!0}),i(e,u,{value:null,writable:!0}),i(e,c,{value:t._readableState.endEmitted,writable:!0}),i(e,h,{value:function(t,e){var r=n[d].read();r?(n[l]=null,n[s]=null,n[a]=null,t(f(r,!1))):(n[s]=t,n[a]=e)},writable:!0}),e));return n[l]=null,o(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=n[a];return null!==e&&(n[l]=null,n[s]=null,n[a]=null,e(t)),void(n[u]=t)}var r=n[s];null!==r&&(n[l]=null,n[s]=null,n[a]=null,r(f(void 0,!0))),n[c]=!0})),t.on("readable",m.bind(null,n)),n};t.exports=v}).call(this,n("4362"))},"41a2":function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n("aabc"),e)},"41df":function(t,e,n){"use strict";const r=e;r.Reporter=n("d1c8").Reporter,r.DecoderBuffer=n("6283").DecoderBuffer,r.EncoderBuffer=n("6283").EncoderBuffer,r.Node=n("8360")},4228:function(t,e,n){var r=n("82f0"),i=n("8707").Buffer,o=n("bac2"),s=n("09f5"),a=n("6430"),u=n("39f5"),c=n("ae84"),l=n("3fb5");function h(t,e,n){a.call(this),this._cache=new d,this._last=void 0,this._cipher=new u.AES(e),this._prev=i.from(n),this._mode=t,this._autopadding=!0}function d(){this.cache=i.allocUnsafe(0)}function f(t){var e=t[15];if(e<1||e>16)throw new Error("unable to decrypt data");var n=-1;while(++n16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null},d.prototype.flush=function(){if(this.cache.length)return this.cache},e.createDecipher=m,e.createDecipheriv=p},"423e":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}});return e}))},4250:function(t,e,n){"use strict";(function(e,r){var i;t.exports=T,T.ReadableState=D;n("faa1").EventEmitter;var o=function(t,e){return t.listeners(e).length},s=n("5bbb"),a=n("b639").Buffer,u=e.Uint8Array||function(){};function c(t){return a.from(t)}function l(t){return a.isBuffer(t)||t instanceof u}var h,d=n(11);h=d&&d.debuglog?d.debuglog("stream"):function(){};var f,p,m,g=n("96a5"),y=n("493f"),b=n("b9b5"),v=b.getHighWaterMark,_=n("9d8a").codes,w=_.ERR_INVALID_ARG_TYPE,M=_.ERR_STREAM_PUSH_AFTER_EOF,S=_.ERR_METHOD_NOT_IMPLEMENTED,A=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n("3fb5")(T,s);var k=y.errorOrDestroy,E=["error","close","destroy","pause","resume"];function L(t,e,n){if("function"===typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}function D(t,e,r){i=i||n("e666"),t=t||{},"boolean"!==typeof r&&(r=e instanceof i),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=v(this,t,"readableHighWaterMark",r),this.buffer=new g,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(f||(f=n("7d72").StringDecoder),this.decoder=new f(t.encoding),this.encoding=t.encoding)}function T(t){if(i=i||n("e666"),!(this instanceof T))return new T(t);var e=this instanceof i;this._readableState=new D(t,this,e),this.readable=!0,t&&("function"===typeof t.read&&(this._read=t.read),"function"===typeof t.destroy&&(this._destroy=t.destroy)),s.call(this)}function O(t,e,n,r,i){h("readableAddChunk",e);var o,s=t._readableState;if(null===e)s.reading=!1,C(t,s);else if(i||(o=I(s,e)),o)k(t,o);else if(s.objectMode||e&&e.length>0)if("string"===typeof e||s.objectMode||Object.getPrototypeOf(e)===a.prototype||(e=c(e)),r)s.endEmitted?k(t,new A):x(t,s,e,!0);else if(s.ended)k(t,new M);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!n?(e=s.decoder.write(e),s.objectMode||0!==e.length?x(t,s,e,!1):B(t,s)):x(t,s,e,!1)}else r||(s.reading=!1,B(t,s));return!s.ended&&(s.length=j?t=j:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function P(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=N(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function C(t,e){if(h("onEofChunk"),!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,e.sync?R(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,Y(t)))}}function R(t){var e=t._readableState;h("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(h("emitReadable",e.flowing),e.emittedReadable=!0,r.nextTick(Y,t))}function Y(t){var e=t._readableState;h("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,V(t)}function B(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(z,t,e))}function z(t,e){while(!e.reading&&!e.ended&&(e.length0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function H(t){h("readable nexttick read 0"),t.read(0)}function F(t,e){e.resumeScheduled||(e.resumeScheduled=!0,r.nextTick(q,t,e))}function q(t,e){h("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),V(t),e.flowing&&!e.reading&&t.read(0)}function V(t){var e=t._readableState;h("flow",e.flowing);while(e.flowing&&null!==t.read());}function K(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n);var n}function G(t){var e=t._readableState;h("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,r.nextTick(Q,e,t))}function Q(t,e){if(h("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var n=e._writableState;(!n||n.autoDestroy&&n.finished)&&e.destroy()}}function Z(t,e){for(var n=0,r=t.length;n=e.highWaterMark:e.length>0)||e.ended))return h("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?G(this):R(this),null;if(t=P(t,e),0===t&&e.ended)return 0===e.length&&G(this),null;var r,i=e.needReadable;return h("need readable",i),(0===e.length||e.length-t0?K(t,e):null,null===r?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&G(this)),null!==r&&this.emit("data",r),r},T.prototype._read=function(t){k(this,new S("_read()"))},T.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,h("pipe count=%d opts=%j",i.pipesCount,e);var s=(!e||!1!==e.end)&&t!==r.stdout&&t!==r.stderr,a=s?c:b;function u(t,e){h("onunpipe"),t===n&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,f())}function c(){h("onend"),t.end()}i.endEmitted?r.nextTick(a):n.once("end",a),t.on("unpipe",u);var l=U(n);t.on("drain",l);var d=!1;function f(){h("cleanup"),t.removeListener("close",g),t.removeListener("finish",y),t.removeListener("drain",l),t.removeListener("error",m),t.removeListener("unpipe",u),n.removeListener("end",c),n.removeListener("end",b),n.removeListener("data",p),d=!0,!i.awaitDrain||t._writableState&&!t._writableState.needDrain||l()}function p(e){h("ondata");var r=t.write(e);h("dest.write",r),!1===r&&((1===i.pipesCount&&i.pipes===t||i.pipesCount>1&&-1!==Z(i.pipes,t))&&!d&&(h("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function m(e){h("onerror",e),b(),t.removeListener("error",m),0===o(t,"error")&&k(t,e)}function g(){t.removeListener("finish",y),b()}function y(){h("onfinish"),t.removeListener("close",g),b()}function b(){h("unpipe"),n.unpipe(t)}return n.on("data",p),L(t,"error",m),t.once("close",g),t.once("finish",y),t.emit("pipe",n),i.flowing||(h("pipe resume"),n.resume()),t},T.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o0,!1!==i.flowing&&this.resume()):"readable"===t&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,h("on readable",i.length,i.reading),i.length?R(this):i.reading||r.nextTick(H,this))),n},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(t,e){var n=s.prototype.removeListener.call(this,t,e);return"readable"===t&&r.nextTick(W,this),n},T.prototype.removeAllListeners=function(t){var e=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||r.nextTick(W,this),e},T.prototype.resume=function(){var t=this._readableState;return t.flowing||(h("resume"),t.flowing=!t.readableListening,F(this,t)),t.paused=!1,this},T.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},T.prototype.wrap=function(t){var e=this,n=this._readableState,r=!1;for(var i in t.on("end",(function(){if(h("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){if(h("wrapped data"),n.decoder&&(i=n.decoder.write(i)),(!n.objectMode||null!==i&&void 0!==i)&&(n.objectMode||i&&i.length)){var o=e.push(i);o||(r=!0,t.pause())}})),t)void 0===this[i]&&"function"===typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o{const t=this._wallet;t&&(t.off("disconnect",this._disconnected),this._wallet=null,this._publicKey=null,this.emit("error",new i.WalletDisconnectedError),this.emit("disconnect"))},this._connecting=!1,this._wallet=null,this._publicKey=null,this._readyState!==i.WalletReadyState.Unsupported&&(0,i.scopePollingDetectionStrategy)(()=>{var t;return!!(null===(t=window.solana)||void 0===t?void 0:t.isPhantom)&&(this._readyState=i.WalletReadyState.Installed,this.emit("readyStateChange",this._readyState),!0)})}get publicKey(){return this._publicKey}get connecting(){return this._connecting}get connected(){var t;return!!(null===(t=this._wallet)||void 0===t?void 0:t.isConnected)}get readyState(){return this._readyState}connect(){return r(this,void 0,void 0,(function*(){try{if(this.connected||this.connecting)return;if(this._readyState!==i.WalletReadyState.Installed)throw new i.WalletNotReadyError;this._connecting=!0;const e=window.solana;if(!e.isConnected){const n=e._handleDisconnect;try{yield new Promise((t,r)=>{const o=()=>{e.off("connect",o),t()};e._handleDisconnect=(...t)=>(e.off("connect",o),r(new i.WalletWindowClosedError),n.apply(e,t)),e.on("connect",o),e.connect().catch(t=>{e.off("connect",o),r(t)})})}catch(t){if(t instanceof i.WalletError)throw t;throw new i.WalletConnectionError(null===t||void 0===t?void 0:t.message,t)}finally{e._handleDisconnect=n}}if(!e.publicKey)throw new i.WalletAccountError;let n;try{n=new o.PublicKey(e.publicKey.toBytes())}catch(t){throw new i.WalletPublicKeyError(null===t||void 0===t?void 0:t.message,t)}e.on("disconnect",this._disconnected),this._wallet=e,this._publicKey=n,this.emit("connect",n)}catch(t){throw this.emit("error",t),t}finally{this._connecting=!1}}))}disconnect(){return r(this,void 0,void 0,(function*(){const t=this._wallet;if(t){t.off("disconnect",this._disconnected),this._wallet=null,this._publicKey=null;try{yield t.disconnect()}catch(e){this.emit("error",new i.WalletDisconnectionError(null===e||void 0===e?void 0:e.message,e))}}this.emit("disconnect")}))}sendTransaction(t,e,n){const i=Object.create(null,{sendTransaction:{get:()=>super.sendTransaction}});return r(this,void 0,void 0,(function*(){try{const r=this._wallet;if(r&&"signAndSendTransaction"in r&&!(null===n||void 0===n?void 0:n.signers)){t.feePayer=t.feePayer||this.publicKey||void 0,t.recentBlockhash=t.recentBlockhash||(yield e.getRecentBlockhash("finalized")).blockhash;const{signature:i}=yield r.signAndSendTransaction(t,n);return i}}catch(r){throw this.emit("error",r),r}return yield i.sendTransaction.call(this,t,e,n)}))}signTransaction(t){return r(this,void 0,void 0,(function*(){try{const n=this._wallet;if(!n)throw new i.WalletNotConnectedError;try{return(yield n.signTransaction(t))||t}catch(e){throw new i.WalletSignTransactionError(null===e||void 0===e?void 0:e.message,e)}}catch(e){throw this.emit("error",e),e}}))}signAllTransactions(t){return r(this,void 0,void 0,(function*(){try{const n=this._wallet;if(!n)throw new i.WalletNotConnectedError;try{return(yield n.signAllTransactions(t))||t}catch(e){throw new i.WalletSignTransactionError(null===e||void 0===e?void 0:e.message,e)}}catch(e){throw this.emit("error",e),e}}))}signMessage(t){return r(this,void 0,void 0,(function*(){try{const n=this._wallet;if(!n)throw new i.WalletNotConnectedError;try{const{signature:e}=yield n.signMessage(t);return e}catch(e){throw new i.WalletSignTransactionError(null===e||void 0===e?void 0:e.message,e)}}catch(e){throw this.emit("error",e),e}}))}}e.PhantomWalletAdapter=s},"429b":function(t,e,n){t.exports=n("faa1").EventEmitter},"42a7":function(t,e,n){"use strict";var r=n("d113").codes.ERR_STREAM_PREMATURE_CLOSE;function i(t){var e=!1;return function(){if(!e){e=!0;for(var n=arguments.length,r=new Array(n),i=0;i=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),n=0;n>>0,l=new Uint8Array(u);while(i!==o){for(var h=e[i],d=0,f=u-1;(0!==h||d>>0,l[f]=h%s>>>0,h=h/s>>>0;if(0!==h)throw new Error("Non-zero carry");r=d,i++}var p=u-r;while(p!==u&&0===l[p])p++;for(var m=a.repeat(n);p>>0,c=new Uint8Array(o);while(t[n]){var l=e[t.charCodeAt(n)];if(255===l)return;for(var h=0,d=o-1;(0!==l||h>>0,c[d]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");i=h,n++}var f=o-i;while(f!==o&&0===c[f])f++;var p=new Uint8Array(r+(o-f)),m=r;while(f!==o)p[m++]=c[f++];return p}function d(t){var e=h(t);if(e)return e;throw new Error("Non-base"+s+" character")}return{encode:l,decodeUnsafe:h,decode:d}}t.exports=r},4362:function(t,e,n){e.nextTick=function(t){var e=Array.prototype.slice.call(arguments);e.shift(),setTimeout((function(){t.apply(null,e)}),0)},e.platform=e.arch=e.execPath=e.title="browser",e.pid=1,e.browser=!0,e.env={},e.argv=[],e.binding=function(t){throw new Error("No such module. (Possibly not yet loaded)")},function(){var t,r="/";e.cwd=function(){return r},e.chdir=function(e){t||(t=n("df7c")),r=t.resolve(e,r)}}(),e.exit=e.kill=e.umask=e.dlopen=e.uptime=e.memoryUsage=e.uvCounters=function(){},e.features={}},4373:function(t,e,n){},"440c":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration function e(t,e,n,r){var i={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return e?i[n][0]:i[n][1]}function n(t){var e=t.substr(0,t.indexOf(" "));return i(e)?"a "+t:"an "+t}function r(t){var e=t.substr(0,t.indexOf(" "));return i(e)?"viru "+t:"virun "+t}function i(t){if(t=parseInt(t,10),isNaN(t))return!1;if(t<0)return!0;if(t<10)return 4<=t&&t<=7;if(t<100){var e=t%10,n=t/10;return i(0===e?n:e)}if(t<1e4){while(t>=10)t/=10;return i(t)}return t/=1e3,i(t)}var o=t.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:n,past:r,s:"e puer Sekonnen",ss:"%d Sekonnen",m:e,mm:"%d Minutten",h:e,hh:"%d Stonnen",d:e,dd:"%d Deeg",M:e,MM:"%d Méint",y:e,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return o}))},4413:function(t,e,n){},"445d":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var r=n("bd4b");function i(e,n){return void 0===n&&(n="utf8"),t.isBuffer(e)?a(e.toString("base64")):a(t.from(e,n).toString("base64"))}function o(e,n){return void 0===n&&(n="utf8"),t.from(s(e),"base64").toString(n)}function s(t){return t=t.toString(),r.default(t).replace(/\-/g,"+").replace(/_/g,"/")}function a(t){return t.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function u(e){return t.from(s(e),"base64")}var c=i;c.encode=i,c.decode=o,c.toBase64=s,c.fromBase64=a,c.toBuffer=u,e.default=c}).call(this,n("b639").Buffer)},4465:function(t,e){var n,r,i,o,s={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},a=function(t){throw{name:"SyntaxError",message:t,at:n,text:i}},u=function(t){return t&&t!==r&&a("Expected '"+t+"' instead of '"+r+"'"),r=i.charAt(n),n+=1,r},c=function(){var t,e="";"-"===r&&(e="-",u("-"));while(r>="0"&&r<="9")e+=r,u();if("."===r){e+=".";while(u()&&r>="0"&&r<="9")e+=r}if("e"===r||"E"===r){e+=r,u(),"-"!==r&&"+"!==r||(e+=r,u());while(r>="0"&&r<="9")e+=r,u()}if(t=+e,isFinite(t))return t;a("Bad number")},l=function(){var t,e,n,i="";if('"'===r)while(u()){if('"'===r)return u(),i;if("\\"===r)if(u(),"u"===r){for(n=0,e=0;e<4;e+=1){if(t=parseInt(u(),16),!isFinite(t))break;n=16*n+t}i+=String.fromCharCode(n)}else{if("string"!==typeof s[r])break;i+=s[r]}else i+=r}a("Bad string")},h=function(){while(r&&r<=" ")u()},d=function(){switch(r){case"t":return u("t"),u("r"),u("u"),u("e"),!0;case"f":return u("f"),u("a"),u("l"),u("s"),u("e"),!1;case"n":return u("n"),u("u"),u("l"),u("l"),null}a("Unexpected '"+r+"'")},f=function(){var t=[];if("["===r){if(u("["),h(),"]"===r)return u("]"),t;while(r){if(t.push(o()),h(),"]"===r)return u("]"),t;u(","),h()}}a("Bad array")},p=function(){var t,e={};if("{"===r){if(u("{"),h(),"}"===r)return u("}"),e;while(r){if(t=l(),h(),u(":"),Object.hasOwnProperty.call(e,t)&&a('Duplicate key "'+t+'"'),e[t]=o(),h(),"}"===r)return u("}"),e;u(","),h()}}a("Bad object")};o=function(){switch(h(),r){case"{":return p();case"[":return f();case'"':return l();case"-":return c();default:return r>="0"&&r<="9"?c():d()}},t.exports=function(t,e){var s;return i=t,n=0,r=" ",s=o(),h(),r&&a("Syntax error"),"function"===typeof e?function t(n,r){var i,o,s=n[r];if(s&&"object"===typeof s)for(i in s)Object.prototype.hasOwnProperty.call(s,i)&&(o=t(s,i),void 0!==o?s[i]=o:delete s[i]);return e.call(n,r,s)}({"":s},""):s}},"44a3":function(t,e,n){"use strict";var r=n("80af"),i=n("f3a3"),o=i.assert,s=i.cachedProperty,a=i.parseBytes;function u(t,e){this.eddsa=t,"object"!==typeof e&&(e=a(e)),Array.isArray(e)&&(e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),o(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof r&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}s(u,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),s(u,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),s(u,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),s(u,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),u.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},u.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},t.exports=u},"44ad":function(t,e,n){var r=n("e330"),i=n("d039"),o=n("c6b6"),s=Object,a=r("".split);t.exports=i((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?a(t,""):s(t)}:s},4581:function(t,e){t.exports=null},"45bb":function(t,e,n){"use strict";var r=n("8707").Buffer;function i(t){if(t.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),n=0;n>>0,h=new Uint8Array(c);while(o!==s){for(var d=e[o],f=0,p=c-1;(0!==d||f>>0,h[p]=d%a>>>0,d=d/a>>>0;if(0!==d)throw new Error("Non-zero carry");i=f,o++}var m=c-i;while(m!==c&&0===h[m])m++;for(var g=u.repeat(n);m>>0,l=new Uint8Array(s);while(t[n]){var h=e[t.charCodeAt(n)];if(255===h)return;for(var d=0,f=s-1;(0!==h||d>>0,l[f]=h%256>>>0,h=h/256>>>0;if(0!==h)throw new Error("Non-zero carry");o=d,n++}var p=s-o;while(p!==s&&0===l[p])p++;var m=r.allocUnsafe(i+(s-p));m.fill(0,0,i);var g=i;while(p!==s)m[g++]=l[p++];return m}function f(t){var e=d(t);if(e)return e;throw new Error("Non-base"+a+" character")}return{encode:h,decodeUnsafe:d,decode:f}}t.exports=i},4673:function(t,e,n){const r=n("3337").ec,i=new r("secp256k1"),o=i.curve,s=o.n.constructor;function a(t,e){let n=new s(e);if(n.cmp(o.p)>=0)return null;n=n.toRed(o.red);let r=n.redSqr().redIMul(n).redIAdd(o.b).redSqrt();return 3===t!==r.isOdd()&&(r=r.redNeg()),i.keyPair({pub:{x:n,y:r}})}function u(t,e,n){let r=new s(e),a=new s(n);if(r.cmp(o.p)>=0||a.cmp(o.p)>=0)return null;if(r=r.toRed(o.red),a=a.toRed(o.red),(6===t||7===t)&&a.isOdd()!==(7===t))return null;const u=r.redSqr().redIMul(r);return a.redSqr().redISub(u.redIAdd(o.b)).isZero()?i.keyPair({pub:{x:r,y:a}}):null}function c(t){const e=t[0];switch(e){case 2:case 3:return 33!==t.length?null:a(e,t.subarray(1,33));case 4:case 6:case 7:return 65!==t.length?null:u(e,t.subarray(1,33),t.subarray(33,65));default:return null}}function l(t,e){const n=e.encode(null,33===t.length);for(let r=0;r=0)return 1;if(n.iadd(new s(t)),n.cmp(o.n)>=0&&n.isub(o.n),n.isZero())return 1;const r=n.toArrayLike(Uint8Array,"be",32);return t.set(r),0},privateKeyTweakMul(t,e){let n=new s(e);if(n.cmp(o.n)>=0||n.isZero())return 1;n.imul(new s(t)),n.cmp(o.n)>=0&&(n=n.umod(o.n));const r=n.toArrayLike(Uint8Array,"be",32);return t.set(r),0},publicKeyVerify(t){const e=c(t);return null===e?1:0},publicKeyCreate(t,e){const n=new s(e);if(n.cmp(o.n)>=0||n.isZero())return 1;const r=i.keyFromPrivate(e).getPublic();return l(t,r),0},publicKeyConvert(t,e){const n=c(e);if(null===n)return 1;const r=n.getPublic();return l(t,r),0},publicKeyNegate(t,e){const n=c(e);if(null===n)return 1;const r=n.getPublic();return r.y=r.y.redNeg(),l(t,r),0},publicKeyCombine(t,e){const n=new Array(e.length);for(let i=0;i=0)return 2;const i=r.getPublic().add(o.g.mul(n));return i.isInfinity()?2:(l(t,i),0)},publicKeyTweakMul(t,e,n){const r=c(e);if(null===r)return 1;if(n=new s(n),n.cmp(o.n)>=0||n.isZero())return 2;const i=r.getPublic().mul(n);return l(t,i),0},signatureNormalize(t){const e=new s(t.subarray(0,32)),n=new s(t.subarray(32,64));return e.cmp(o.n)>=0||n.cmp(o.n)>=0?1:(1===n.cmp(i.nh)&&t.set(o.n.sub(n).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport(t,e){const n=e.subarray(0,32),r=e.subarray(32,64);if(new s(n).cmp(o.n)>=0)return 1;if(new s(r).cmp(o.n)>=0)return 1;const{output:i}=t;let a=i.subarray(4,37);a[0]=0,a.set(n,1);let u=33,c=0;for(;u>1&&0===a[c]&&!(128&a[c+1]);--u,++c);if(a=a.subarray(c),128&a[0])return 1;if(u>1&&0===a[0]&&!(128&a[1]))return 1;let l=i.subarray(39,72);l[0]=0,l.set(r,1);let h=33,d=0;for(;h>1&&0===l[d]&&!(128&l[d+1]);--h,++d);return l=l.subarray(d),128&l[0]||h>1&&0===l[0]&&!(128&l[1])?1:(t.outputlen=6+u+h,i[0]=48,i[1]=t.outputlen-2,i[2]=2,i[3]=a.length,i.set(a,4),i[4+u]=2,i[5+u]=l.length,i.set(l,6+u),0)},signatureImport(t,e){if(e.length<8)return 1;if(e.length>72)return 1;if(48!==e[0])return 1;if(e[1]!==e.length-2)return 1;if(2!==e[2])return 1;const n=e[3];if(0===n)return 1;if(5+n>=e.length)return 1;if(2!==e[4+n])return 1;const r=e[5+n];if(0===r)return 1;if(6+n+r!==e.length)return 1;if(128&e[4])return 1;if(n>1&&0===e[4]&&!(128&e[5]))return 1;if(128&e[n+6])return 1;if(r>1&&0===e[n+6]&&!(128&e[n+7]))return 1;let i=e.subarray(4,4+n);if(33===i.length&&0===i[0]&&(i=i.subarray(1)),i.length>32)return 1;let a=e.subarray(6+n);if(33===a.length&&0===a[0]&&(a=a.slice(1)),a.length>32)throw new Error("S length is too long");let u=new s(i);u.cmp(o.n)>=0&&(u=new s(0));let c=new s(e.subarray(6+n));return c.cmp(o.n)>=0&&(c=new s(0)),t.set(u.toArrayLike(Uint8Array,"be",32),0),t.set(c.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign(t,e,n,r,a){if(a){const t=a;a=i=>{const o=t(e,n,null,r,i),a=o instanceof Uint8Array&&32===o.length;if(!a)throw new Error("This is the way");return new s(o)}}const u=new s(n);if(u.cmp(o.n)>=0||u.isZero())return 1;let c;try{c=i.sign(e,n,{canonical:!0,k:a,pers:r})}catch(l){return 1}return t.signature.set(c.r.toArrayLike(Uint8Array,"be",32),0),t.signature.set(c.s.toArrayLike(Uint8Array,"be",32),32),t.recid=c.recoveryParam,0},ecdsaVerify(t,e,n){const r={r:t.subarray(0,32),s:t.subarray(32,64)},a=new s(r.r),u=new s(r.s);if(a.cmp(o.n)>=0||u.cmp(o.n)>=0)return 1;if(1===u.cmp(i.nh)||a.isZero()||u.isZero())return 3;const l=c(n);if(null===l)return 2;const h=l.getPublic(),d=i.verify(e,r,h);return d?0:3},ecdsaRecover(t,e,n,r){const a={r:e.slice(0,32),s:e.slice(32,64)},u=new s(a.r),c=new s(a.s);if(u.cmp(o.n)>=0||c.cmp(o.n)>=0)return 1;if(u.isZero()||c.isZero())return 2;let h;try{h=i.recoverPubKey(r,a,n)}catch(d){return 2}return l(t,h),0},ecdh(t,e,n,r,a,u,l){const h=c(e);if(null===h)return 1;const d=new s(n);if(d.cmp(o.n)>=0||d.isZero())return 2;const f=h.getPublic().mul(d);if(void 0===a){const e=f.encode(null,!0),n=i.hash().update(e).digest();for(let r=0;r<32;++r)t[r]=n[r]}else{u||(u=new Uint8Array(32));const e=f.getX().toArray("be",32);for(let t=0;t<32;++t)u[t]=e[t];l||(l=new Uint8Array(32));const n=f.getY().toArray("be",32);for(let t=0;t<32;++t)l[t]=n[t];const i=a(u,l,r),o=i instanceof Uint8Array&&i.length===t.length;if(!o)return 2;t.set(i)}return 0}}},"467f":function(t,e,n){"use strict";var r=n("7917");t.exports=function(t,e,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(new r("Request failed with status code "+n.status,[r.ERR_BAD_REQUEST,r.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}},4681:function(t,e,n){"use strict";var r=n("966d");function i(t,e){var n=this,i=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return i||o?(e?e(t):!t||this._writableState&&this._writableState.errorEmitted||r.nextTick(s,this,t),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?(r.nextTick(s,n,t),n._writableState&&(n._writableState.errorEmitted=!0)):e&&e(t)})),this)}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function s(t,e){t.emit("error",e)}t.exports={destroy:i,undestroy:o}},"46ec":function(t,e,n){const r=n("0b47"),i=(t,e)=>t.sort((t,n)=>r(t,n,e));t.exports=i},"485a":function(t,e,n){var r=n("c65b"),i=n("1626"),o=n("861d"),s=TypeError;t.exports=function(t,e){var n,a;if("string"===e&&i(n=t.toString)&&!o(a=r(n,t)))return a;if(i(n=t.valueOf)&&!o(a=r(n,t)))return a;if("string"!==e&&i(n=t.toString)&&!o(a=r(n,t)))return a;throw s("Can't convert object to primitive value")}},"485c":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"},n=t.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"bir neçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(t){return/^(gündüz|axşam)$/.test(t)},meridiem:function(t,e,n){return t<4?"gecə":t<12?"səhər":t<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(t){if(0===t)return t+"-ıncı";var n=t%10,r=t%100-n,i=t>=100?100:null;return t+(e[n]||e[r]||e[i])},week:{dow:1,doy:7}});return n}))},"48e6":function(t,e,n){(function(t){(function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var s;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{s="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:n(15).Buffer}catch(L){}function a(t,e){var n=t.charCodeAt(e);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function u(t,e,n){var r=a(t,n);return n-1>=e&&(r|=a(t,n-1)<<4),r}function c(t,e,n,r){for(var i=0,o=Math.min(t.length,n),s=e;s=49?a-49+10:a>=17?a-17+10:a}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"===typeof t)return this._initNumber(t,e,n);if("object"===typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&(i++,this.negative=1),i=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);else if("le"===n)for(i=0,o=0;i>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r=e;r-=2)i=u(t,e,r)<=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else{var a=t.length-e;for(r=a%2===0?e+1:e;r=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8}this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,s=o%r,a=Math.min(o,o-s)+n,u=0,l=n;l1&&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},o.prototype.inspect=function(){return(this.red?""};var l=["","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],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(t){for(var e=new Array(t.bitLength()),n=0;n>>i}return e}function p(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,u=s/67108864|0;n.words[0]=a;for(var c=1;c>>26,h=67108863&u,d=Math.min(c,e.length-1),f=Math.max(0,c-t.length+1);f<=d;f++){var p=c-f|0;i=0|t.words[p],o=0|e.words[f],s=i*o+h,l+=s/67108864|0,h=67108863&s}n.words[c]=0|h,u=0|l}return 0!==u?n.words[c]=0|u:n.length--,n.strip()}o.prototype.toString=function(t,e){var n;if(t=t||10,e=0|e||1,16===t||"hex"===t){n="";for(var i=0,o=0,s=0;s>>24-i&16777215,n=0!==o||s!==this.length-1?l[6-u.length]+u+n:u+n,i+=2,i>=26&&(i-=26,s--)}0!==o&&(n=o.toString(16)+n);while(n.length%e!==0)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var c=h[t],f=d[t];n="";var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modn(f).toString(t);p=p.idivn(f),n=p.isZero()?m+n:l[c-m.length]+m+n}this.isZero()&&(n="0"+n);while(n.length%e!==0)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r("undefined"!==typeof s),this.toArrayLike(s,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var s,a,u="le"===e,c=new t(o),l=this.clone();if(u){for(a=0;!l.isZero();a++)s=l.andln(255),l.iushrn(8),c[a]=s;for(;a=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0===(8191&e)&&(n+=13,e>>>=13),0===(127&e)&&(n+=7,e>>>=7),0===(15&e)&&(n+=4,e>>>=4),0===(3&e)&&(n+=2,e>>>=2),0===(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;nt.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"===typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,s=0;s>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,f=0|s[1],p=8191&f,m=f>>>13,g=0|s[2],y=8191&g,b=g>>>13,v=0|s[3],_=8191&v,w=v>>>13,M=0|s[4],S=8191&M,A=M>>>13,k=0|s[5],E=8191&k,L=k>>>13,D=0|s[6],T=8191&D,O=D>>>13,x=0|s[7],I=8191&x,j=x>>>13,N=0|s[8],P=8191&N,C=N>>>13,R=0|s[9],Y=8191&R,B=R>>>13,z=0|a[0],U=8191&z,W=z>>>13,H=0|a[1],F=8191&H,q=H>>>13,V=0|a[2],K=8191&V,G=V>>>13,Q=0|a[3],Z=8191&Q,J=Q>>>13,$=0|a[4],X=8191&$,tt=$>>>13,et=0|a[5],nt=8191&et,rt=et>>>13,it=0|a[6],ot=8191&it,st=it>>>13,at=0|a[7],ut=8191&at,ct=at>>>13,lt=0|a[8],ht=8191<,dt=lt>>>13,ft=0|a[9],pt=8191&ft,mt=ft>>>13;n.negative=t.negative^e.negative,n.length=19,r=Math.imul(h,U),i=Math.imul(h,W),i=i+Math.imul(d,U)|0,o=Math.imul(d,W);var gt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(p,U),i=Math.imul(p,W),i=i+Math.imul(m,U)|0,o=Math.imul(m,W),r=r+Math.imul(h,F)|0,i=i+Math.imul(h,q)|0,i=i+Math.imul(d,F)|0,o=o+Math.imul(d,q)|0;var yt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(y,U),i=Math.imul(y,W),i=i+Math.imul(b,U)|0,o=Math.imul(b,W),r=r+Math.imul(p,F)|0,i=i+Math.imul(p,q)|0,i=i+Math.imul(m,F)|0,o=o+Math.imul(m,q)|0,r=r+Math.imul(h,K)|0,i=i+Math.imul(h,G)|0,i=i+Math.imul(d,K)|0,o=o+Math.imul(d,G)|0;var bt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(_,U),i=Math.imul(_,W),i=i+Math.imul(w,U)|0,o=Math.imul(w,W),r=r+Math.imul(y,F)|0,i=i+Math.imul(y,q)|0,i=i+Math.imul(b,F)|0,o=o+Math.imul(b,q)|0,r=r+Math.imul(p,K)|0,i=i+Math.imul(p,G)|0,i=i+Math.imul(m,K)|0,o=o+Math.imul(m,G)|0,r=r+Math.imul(h,Z)|0,i=i+Math.imul(h,J)|0,i=i+Math.imul(d,Z)|0,o=o+Math.imul(d,J)|0;var vt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(S,U),i=Math.imul(S,W),i=i+Math.imul(A,U)|0,o=Math.imul(A,W),r=r+Math.imul(_,F)|0,i=i+Math.imul(_,q)|0,i=i+Math.imul(w,F)|0,o=o+Math.imul(w,q)|0,r=r+Math.imul(y,K)|0,i=i+Math.imul(y,G)|0,i=i+Math.imul(b,K)|0,o=o+Math.imul(b,G)|0,r=r+Math.imul(p,Z)|0,i=i+Math.imul(p,J)|0,i=i+Math.imul(m,Z)|0,o=o+Math.imul(m,J)|0,r=r+Math.imul(h,X)|0,i=i+Math.imul(h,tt)|0,i=i+Math.imul(d,X)|0,o=o+Math.imul(d,tt)|0;var _t=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(E,U),i=Math.imul(E,W),i=i+Math.imul(L,U)|0,o=Math.imul(L,W),r=r+Math.imul(S,F)|0,i=i+Math.imul(S,q)|0,i=i+Math.imul(A,F)|0,o=o+Math.imul(A,q)|0,r=r+Math.imul(_,K)|0,i=i+Math.imul(_,G)|0,i=i+Math.imul(w,K)|0,o=o+Math.imul(w,G)|0,r=r+Math.imul(y,Z)|0,i=i+Math.imul(y,J)|0,i=i+Math.imul(b,Z)|0,o=o+Math.imul(b,J)|0,r=r+Math.imul(p,X)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(m,X)|0,o=o+Math.imul(m,tt)|0,r=r+Math.imul(h,nt)|0,i=i+Math.imul(h,rt)|0,i=i+Math.imul(d,nt)|0,o=o+Math.imul(d,rt)|0;var wt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(T,U),i=Math.imul(T,W),i=i+Math.imul(O,U)|0,o=Math.imul(O,W),r=r+Math.imul(E,F)|0,i=i+Math.imul(E,q)|0,i=i+Math.imul(L,F)|0,o=o+Math.imul(L,q)|0,r=r+Math.imul(S,K)|0,i=i+Math.imul(S,G)|0,i=i+Math.imul(A,K)|0,o=o+Math.imul(A,G)|0,r=r+Math.imul(_,Z)|0,i=i+Math.imul(_,J)|0,i=i+Math.imul(w,Z)|0,o=o+Math.imul(w,J)|0,r=r+Math.imul(y,X)|0,i=i+Math.imul(y,tt)|0,i=i+Math.imul(b,X)|0,o=o+Math.imul(b,tt)|0,r=r+Math.imul(p,nt)|0,i=i+Math.imul(p,rt)|0,i=i+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0,r=r+Math.imul(h,ot)|0,i=i+Math.imul(h,st)|0,i=i+Math.imul(d,ot)|0,o=o+Math.imul(d,st)|0;var Mt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(I,U),i=Math.imul(I,W),i=i+Math.imul(j,U)|0,o=Math.imul(j,W),r=r+Math.imul(T,F)|0,i=i+Math.imul(T,q)|0,i=i+Math.imul(O,F)|0,o=o+Math.imul(O,q)|0,r=r+Math.imul(E,K)|0,i=i+Math.imul(E,G)|0,i=i+Math.imul(L,K)|0,o=o+Math.imul(L,G)|0,r=r+Math.imul(S,Z)|0,i=i+Math.imul(S,J)|0,i=i+Math.imul(A,Z)|0,o=o+Math.imul(A,J)|0,r=r+Math.imul(_,X)|0,i=i+Math.imul(_,tt)|0,i=i+Math.imul(w,X)|0,o=o+Math.imul(w,tt)|0,r=r+Math.imul(y,nt)|0,i=i+Math.imul(y,rt)|0,i=i+Math.imul(b,nt)|0,o=o+Math.imul(b,rt)|0,r=r+Math.imul(p,ot)|0,i=i+Math.imul(p,st)|0,i=i+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0,r=r+Math.imul(h,ut)|0,i=i+Math.imul(h,ct)|0,i=i+Math.imul(d,ut)|0,o=o+Math.imul(d,ct)|0;var St=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(P,U),i=Math.imul(P,W),i=i+Math.imul(C,U)|0,o=Math.imul(C,W),r=r+Math.imul(I,F)|0,i=i+Math.imul(I,q)|0,i=i+Math.imul(j,F)|0,o=o+Math.imul(j,q)|0,r=r+Math.imul(T,K)|0,i=i+Math.imul(T,G)|0,i=i+Math.imul(O,K)|0,o=o+Math.imul(O,G)|0,r=r+Math.imul(E,Z)|0,i=i+Math.imul(E,J)|0,i=i+Math.imul(L,Z)|0,o=o+Math.imul(L,J)|0,r=r+Math.imul(S,X)|0,i=i+Math.imul(S,tt)|0,i=i+Math.imul(A,X)|0,o=o+Math.imul(A,tt)|0,r=r+Math.imul(_,nt)|0,i=i+Math.imul(_,rt)|0,i=i+Math.imul(w,nt)|0,o=o+Math.imul(w,rt)|0,r=r+Math.imul(y,ot)|0,i=i+Math.imul(y,st)|0,i=i+Math.imul(b,ot)|0,o=o+Math.imul(b,st)|0,r=r+Math.imul(p,ut)|0,i=i+Math.imul(p,ct)|0,i=i+Math.imul(m,ut)|0,o=o+Math.imul(m,ct)|0,r=r+Math.imul(h,ht)|0,i=i+Math.imul(h,dt)|0,i=i+Math.imul(d,ht)|0,o=o+Math.imul(d,dt)|0;var At=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(Y,U),i=Math.imul(Y,W),i=i+Math.imul(B,U)|0,o=Math.imul(B,W),r=r+Math.imul(P,F)|0,i=i+Math.imul(P,q)|0,i=i+Math.imul(C,F)|0,o=o+Math.imul(C,q)|0,r=r+Math.imul(I,K)|0,i=i+Math.imul(I,G)|0,i=i+Math.imul(j,K)|0,o=o+Math.imul(j,G)|0,r=r+Math.imul(T,Z)|0,i=i+Math.imul(T,J)|0,i=i+Math.imul(O,Z)|0,o=o+Math.imul(O,J)|0,r=r+Math.imul(E,X)|0,i=i+Math.imul(E,tt)|0,i=i+Math.imul(L,X)|0,o=o+Math.imul(L,tt)|0,r=r+Math.imul(S,nt)|0,i=i+Math.imul(S,rt)|0,i=i+Math.imul(A,nt)|0,o=o+Math.imul(A,rt)|0,r=r+Math.imul(_,ot)|0,i=i+Math.imul(_,st)|0,i=i+Math.imul(w,ot)|0,o=o+Math.imul(w,st)|0,r=r+Math.imul(y,ut)|0,i=i+Math.imul(y,ct)|0,i=i+Math.imul(b,ut)|0,o=o+Math.imul(b,ct)|0,r=r+Math.imul(p,ht)|0,i=i+Math.imul(p,dt)|0,i=i+Math.imul(m,ht)|0,o=o+Math.imul(m,dt)|0,r=r+Math.imul(h,pt)|0,i=i+Math.imul(h,mt)|0,i=i+Math.imul(d,pt)|0,o=o+Math.imul(d,mt)|0;var kt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(Y,F),i=Math.imul(Y,q),i=i+Math.imul(B,F)|0,o=Math.imul(B,q),r=r+Math.imul(P,K)|0,i=i+Math.imul(P,G)|0,i=i+Math.imul(C,K)|0,o=o+Math.imul(C,G)|0,r=r+Math.imul(I,Z)|0,i=i+Math.imul(I,J)|0,i=i+Math.imul(j,Z)|0,o=o+Math.imul(j,J)|0,r=r+Math.imul(T,X)|0,i=i+Math.imul(T,tt)|0,i=i+Math.imul(O,X)|0,o=o+Math.imul(O,tt)|0,r=r+Math.imul(E,nt)|0,i=i+Math.imul(E,rt)|0,i=i+Math.imul(L,nt)|0,o=o+Math.imul(L,rt)|0,r=r+Math.imul(S,ot)|0,i=i+Math.imul(S,st)|0,i=i+Math.imul(A,ot)|0,o=o+Math.imul(A,st)|0,r=r+Math.imul(_,ut)|0,i=i+Math.imul(_,ct)|0,i=i+Math.imul(w,ut)|0,o=o+Math.imul(w,ct)|0,r=r+Math.imul(y,ht)|0,i=i+Math.imul(y,dt)|0,i=i+Math.imul(b,ht)|0,o=o+Math.imul(b,dt)|0,r=r+Math.imul(p,pt)|0,i=i+Math.imul(p,mt)|0,i=i+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Et=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(Y,K),i=Math.imul(Y,G),i=i+Math.imul(B,K)|0,o=Math.imul(B,G),r=r+Math.imul(P,Z)|0,i=i+Math.imul(P,J)|0,i=i+Math.imul(C,Z)|0,o=o+Math.imul(C,J)|0,r=r+Math.imul(I,X)|0,i=i+Math.imul(I,tt)|0,i=i+Math.imul(j,X)|0,o=o+Math.imul(j,tt)|0,r=r+Math.imul(T,nt)|0,i=i+Math.imul(T,rt)|0,i=i+Math.imul(O,nt)|0,o=o+Math.imul(O,rt)|0,r=r+Math.imul(E,ot)|0,i=i+Math.imul(E,st)|0,i=i+Math.imul(L,ot)|0,o=o+Math.imul(L,st)|0,r=r+Math.imul(S,ut)|0,i=i+Math.imul(S,ct)|0,i=i+Math.imul(A,ut)|0,o=o+Math.imul(A,ct)|0,r=r+Math.imul(_,ht)|0,i=i+Math.imul(_,dt)|0,i=i+Math.imul(w,ht)|0,o=o+Math.imul(w,dt)|0,r=r+Math.imul(y,pt)|0,i=i+Math.imul(y,mt)|0,i=i+Math.imul(b,pt)|0,o=o+Math.imul(b,mt)|0;var Lt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,r=Math.imul(Y,Z),i=Math.imul(Y,J),i=i+Math.imul(B,Z)|0,o=Math.imul(B,J),r=r+Math.imul(P,X)|0,i=i+Math.imul(P,tt)|0,i=i+Math.imul(C,X)|0,o=o+Math.imul(C,tt)|0,r=r+Math.imul(I,nt)|0,i=i+Math.imul(I,rt)|0,i=i+Math.imul(j,nt)|0,o=o+Math.imul(j,rt)|0,r=r+Math.imul(T,ot)|0,i=i+Math.imul(T,st)|0,i=i+Math.imul(O,ot)|0,o=o+Math.imul(O,st)|0,r=r+Math.imul(E,ut)|0,i=i+Math.imul(E,ct)|0,i=i+Math.imul(L,ut)|0,o=o+Math.imul(L,ct)|0,r=r+Math.imul(S,ht)|0,i=i+Math.imul(S,dt)|0,i=i+Math.imul(A,ht)|0,o=o+Math.imul(A,dt)|0,r=r+Math.imul(_,pt)|0,i=i+Math.imul(_,mt)|0,i=i+Math.imul(w,pt)|0,o=o+Math.imul(w,mt)|0;var Dt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,r=Math.imul(Y,X),i=Math.imul(Y,tt),i=i+Math.imul(B,X)|0,o=Math.imul(B,tt),r=r+Math.imul(P,nt)|0,i=i+Math.imul(P,rt)|0,i=i+Math.imul(C,nt)|0,o=o+Math.imul(C,rt)|0,r=r+Math.imul(I,ot)|0,i=i+Math.imul(I,st)|0,i=i+Math.imul(j,ot)|0,o=o+Math.imul(j,st)|0,r=r+Math.imul(T,ut)|0,i=i+Math.imul(T,ct)|0,i=i+Math.imul(O,ut)|0,o=o+Math.imul(O,ct)|0,r=r+Math.imul(E,ht)|0,i=i+Math.imul(E,dt)|0,i=i+Math.imul(L,ht)|0,o=o+Math.imul(L,dt)|0,r=r+Math.imul(S,pt)|0,i=i+Math.imul(S,mt)|0,i=i+Math.imul(A,pt)|0,o=o+Math.imul(A,mt)|0;var Tt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(Y,nt),i=Math.imul(Y,rt),i=i+Math.imul(B,nt)|0,o=Math.imul(B,rt),r=r+Math.imul(P,ot)|0,i=i+Math.imul(P,st)|0,i=i+Math.imul(C,ot)|0,o=o+Math.imul(C,st)|0,r=r+Math.imul(I,ut)|0,i=i+Math.imul(I,ct)|0,i=i+Math.imul(j,ut)|0,o=o+Math.imul(j,ct)|0,r=r+Math.imul(T,ht)|0,i=i+Math.imul(T,dt)|0,i=i+Math.imul(O,ht)|0,o=o+Math.imul(O,dt)|0,r=r+Math.imul(E,pt)|0,i=i+Math.imul(E,mt)|0,i=i+Math.imul(L,pt)|0,o=o+Math.imul(L,mt)|0;var Ot=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(Y,ot),i=Math.imul(Y,st),i=i+Math.imul(B,ot)|0,o=Math.imul(B,st),r=r+Math.imul(P,ut)|0,i=i+Math.imul(P,ct)|0,i=i+Math.imul(C,ut)|0,o=o+Math.imul(C,ct)|0,r=r+Math.imul(I,ht)|0,i=i+Math.imul(I,dt)|0,i=i+Math.imul(j,ht)|0,o=o+Math.imul(j,dt)|0,r=r+Math.imul(T,pt)|0,i=i+Math.imul(T,mt)|0,i=i+Math.imul(O,pt)|0,o=o+Math.imul(O,mt)|0;var xt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(Y,ut),i=Math.imul(Y,ct),i=i+Math.imul(B,ut)|0,o=Math.imul(B,ct),r=r+Math.imul(P,ht)|0,i=i+Math.imul(P,dt)|0,i=i+Math.imul(C,ht)|0,o=o+Math.imul(C,dt)|0,r=r+Math.imul(I,pt)|0,i=i+Math.imul(I,mt)|0,i=i+Math.imul(j,pt)|0,o=o+Math.imul(j,mt)|0;var It=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(Y,ht),i=Math.imul(Y,dt),i=i+Math.imul(B,ht)|0,o=Math.imul(B,dt),r=r+Math.imul(P,pt)|0,i=i+Math.imul(P,mt)|0,i=i+Math.imul(C,pt)|0,o=o+Math.imul(C,mt)|0;var jt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(Y,pt),i=Math.imul(Y,mt),i=i+Math.imul(B,pt)|0,o=Math.imul(B,mt);var Nt=(c+r|0)+((8191&i)<<13)|0;return c=(o+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,u[0]=gt,u[1]=yt,u[2]=bt,u[3]=vt,u[4]=_t,u[5]=wt,u[6]=Mt,u[7]=St,u[8]=At,u[9]=kt,u[10]=Et,u[11]=Lt,u[12]=Dt,u[13]=Tt,u[14]=Ot,u[15]=xt,u[16]=It,u[17]=jt,u[18]=Nt,0!==c&&(u[19]=c,n.length++),n};function g(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o>>26)|0,i+=s>>>26,s&=67108863}n.words[o]=a,r=s,s=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}function y(t,e,n){var r=new b;return r.mulp(t,e,n)}function b(t,e){this.x=t,this.y=e}Math.imul||(m=p),o.prototype.mulTo=function(t,e){var n,r=this.length+t.length;return n=10===this.length&&10===t.length?m(this,t,e):r<63?p(this,t,e):r<1024?g(this,t,e):y(this,t,e),n},b.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r>=1;return r},b.prototype.permute=function(t,e,n,r,i,o){for(var s=0;s>>=1)i++;return 1<>>=13,n[2*s+1]=8191&o,o>>>=13;for(s=2*e;s>=26,e+=i/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=f(t);if(0===e.length)return new o(1);for(var n=this,r=0;r=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var s=0;for(e=0;e>>26-n}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<s)for(this.length-=s,c=0;c=0&&(0!==l||c>=i);c--){var h=0|this.words[c];this.words[c]=l<<26-o|h>>>o,l=h&a}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"===typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i>26,this.words[i+n]=67108863&o;if(0===a)return this.strip();for(r(-1===a),a=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=this.length-t.length,r=this.clone(),i=t,s=0|i.words[i.length-1],a=this._countBits(s);n=26-a,0!==n&&(i=i.ushln(n),r.iushln(n),s=0|i.words[i.length-1]);var u,c=r.length-i.length;if("mod"!==e){u=new o(null),u.length=c+1,u.words=new Array(u.length);for(var l=0;l=0;d--){var f=67108864*(0|r.words[i.length+d])+(0|r.words[i.length+d-1]);f=Math.min(f/s|0,67108863),r._ishlnsubmul(i,f,d);while(0!==r.negative)f--,r.negative=0,r._ishlnsubmul(i,1,d),r.isZero()||(r.negative^=1);u&&(u.words[d]=f)}return u&&u.strip(),r.strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:u||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(s=a.mod.neg(),n&&0!==s.negative&&s.iadd(t)),{div:i,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),n&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,s,a},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i=new o(1),s=new o(0),a=new o(0),u=new o(1),c=0;while(e.isEven()&&n.isEven())e.iushrn(1),n.iushrn(1),++c;var l=n.clone(),h=e.clone();while(!e.isZero()){for(var d=0,f=1;0===(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0){e.iushrn(d);while(d-- >0)(i.isOdd()||s.isOdd())&&(i.iadd(l),s.isub(h)),i.iushrn(1),s.iushrn(1)}for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0){n.iushrn(p);while(p-- >0)(a.isOdd()||u.isOdd())&&(a.iadd(l),u.isub(h)),a.iushrn(1),u.iushrn(1)}e.cmp(n)>=0?(e.isub(n),i.isub(a),s.isub(u)):(n.isub(e),a.isub(i),u.isub(s))}return{a:a,b:u,gcd:n.iushln(c)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i,s=new o(1),a=new o(0),u=n.clone();while(e.cmpn(1)>0&&n.cmpn(1)>0){for(var c=0,l=1;0===(e.words[0]&l)&&c<26;++c,l<<=1);if(c>0){e.iushrn(c);while(c-- >0)s.isOdd()&&s.iadd(u),s.iushrn(1)}for(var h=0,d=1;0===(n.words[0]&d)&&h<26;++h,d<<=1);if(h>0){n.iushrn(h);while(h-- >0)a.isOdd()&&a.iadd(u),a.iushrn(1)}e.cmp(n)>=0?(e.isub(n),s.isub(a)):(n.isub(e),a.isub(s))}return i=0===e.cmpn(1)?s:a,i.cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);do{while(e.isEven())e.iushrn(1);while(n.isEven())n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}while(1);return n.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"===typeof t);var e=t%26,n=(t-e)/26,i=1<>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){ri&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new k(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function _(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function S(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function E(t){k.call(this,t),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)}_.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},_.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),n=this.imulK(n),n=n.iadd(this.tmp),e=n.bitLength()}while(e>this.n);var r=e0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},_.prototype.split=function(t,e){t.iushrn(this.n,0,e)},_.prototype.imulK=function(t){return t.imul(this.k)},i(w,_),w.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i>>22,o=s}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new w;else if("p224"===t)e=new M;else if("p192"===t)e=new S;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new A}return v[t]=e,e},k.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},k.prototype._verify2=function(t,e){r(0===(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},k.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},k.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},k.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},k.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},k.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},k.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},k.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},k.prototype.isqr=function(t){return this.imul(t,t.clone())},k.prototype.sqr=function(t){return this.mul(t,t)},k.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2===1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}var i=this.m.subn(1),s=0;while(!i.isZero()&&0===i.andln(1))s++,i.iushrn(1);r(!i.isZero());var a=new o(1).toRed(this),u=a.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();l=new o(2*l*l).toRed(this);while(0!==this.pow(l,c).cmp(u))l.redIAdd(u);var h=this.pow(l,i),d=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),p=s;while(0!==f.cmp(a)){for(var m=f,g=0;0!==m.cmp(a);g++)m=m.redSqr();r(g=0;i--){for(var l=e.words[i],h=c-1;h>=0;h--){var d=l>>h&1;s!==r[0]&&(s=this.sqr(s)),0!==d||0!==a?(a<<=1,a|=d,u++,(u===n||0===i&&0===h)&&(s=this.mul(s,r[a]),u=0,a=0)):u=0}c=26}return s},k.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},k.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new E(t)},i(E,k),E.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},E.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},E.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).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)},E.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},E.prototype.invm=function(t){var e=this.imod(t._invmp(this.m).mul(this.r2));return e._forceRed(this)}})(t,this)}).call(this,n("62e4")(t))},4930:function(t,e,n){var r=n("2d00"),i=n("d039");t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},"493f":function(t,e,n){"use strict";(function(e){function n(t,n){var o=this,a=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return a||u?(n?n(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(s,this,t)):e.nextTick(s,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!n&&t?o._writableState?o._writableState.errorEmitted?e.nextTick(i,o):(o._writableState.errorEmitted=!0,e.nextTick(r,o,t)):e.nextTick(r,o,t):n?(e.nextTick(i,o),n(t)):e.nextTick(i,o)})),this)}function r(t,e){s(t,e),i(t)}function i(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function s(t,e){t.emit("error",e)}function a(t,e){var n=t._readableState,r=t._writableState;n&&n.autoDestroy||r&&r.autoDestroy?t.destroy(e):t.emit("error",e)}t.exports={destroy:n,undestroy:o,errorOrDestroy:a}}).call(this,n("4362"))},"49ab":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"中午"===e?t>=11?t:t+12:"下午"===e||"晚上"===e?t+12:void 0},meridiem:function(t,e,n){var r=100*t+e;return r<600?"凌晨":r<900?"早上":r<1200?"上午":1200===r?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"週";default:return t}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}});return e}))},"49ac":function(t,e,n){const r=Symbol("SemVer ANY");class i{static get ANY(){return r}constructor(t,e){if(e=o(e),t instanceof i){if(t.loose===!!e.loose)return t;t=t.value}c("comparator",t,e),this.options=e,this.loose=!!e.loose,this.parse(t),this.semver===r?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(t){const e=this.options.loose?s[a.COMPARATORLOOSE]:s[a.COMPARATOR],n=t.match(e);if(!n)throw new TypeError("Invalid comparator: "+t);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new l(n[2],this.options.loose):this.semver=r}toString(){return this.value}test(t){if(c("Comparator.test",t,this.options.loose),this.semver===r||t===r)return!0;if("string"===typeof t)try{t=new l(t,this.options)}catch(e){return!1}return u(t,this.operator,this.semver,this.options)}intersects(t,e){if(!(t instanceof i))throw new TypeError("a Comparator is required");if(e&&"object"===typeof e||(e={loose:!!e,includePrerelease:!1}),""===this.operator)return""===this.value||new h(t.value,e).test(this.value);if(""===t.operator)return""===t.value||new h(this.value,e).test(t.semver);const n=(">="===this.operator||">"===this.operator)&&(">="===t.operator||">"===t.operator),r=("<="===this.operator||"<"===this.operator)&&("<="===t.operator||"<"===t.operator),o=this.semver.version===t.semver.version,s=(">="===this.operator||"<="===this.operator)&&(">="===t.operator||"<="===t.operator),a=u(this.semver,"<",t.semver,e)&&(">="===this.operator||">"===this.operator)&&("<="===t.operator||"<"===t.operator),c=u(this.semver,">",t.semver,e)&&("<="===this.operator||"<"===this.operator)&&(">="===t.operator||">"===t.operator);return n||r||o&&s||a||c}}t.exports=i;const o=n("83e2"),{re:s,t:a}=n("0d26"),u=n("dda2"),c=n("0f35"),l=n("c2a4"),h=n("0872")},"49ce":function(t,e,n){"use strict";(function(e,r){function i(t){var e=this;this.next=null,this.entry=null,this.finish=function(){q(e,t)}}var o;t.exports=D,D.WritableState=L;var s={deprecate:n("b7d1")},a=n("f12a"),u=n("b639").Buffer,c=e.Uint8Array||function(){};function l(t){return u.from(t)}function h(t){return u.isBuffer(t)||t instanceof c}var d,f=n("9019"),p=n("05f0"),m=p.getHighWaterMark,g=n("d113").codes,y=g.ERR_INVALID_ARG_TYPE,b=g.ERR_METHOD_NOT_IMPLEMENTED,v=g.ERR_MULTIPLE_CALLBACK,_=g.ERR_STREAM_CANNOT_PIPE,w=g.ERR_STREAM_DESTROYED,M=g.ERR_STREAM_NULL_VALUES,S=g.ERR_STREAM_WRITE_AFTER_END,A=g.ERR_UNKNOWN_ENCODING,k=f.errorOrDestroy;function E(){}function L(t,e,r){o=o||n("5e7d"),t=t||{},"boolean"!==typeof r&&(r=e instanceof o),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=m(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===t.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){C(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function D(t){o=o||n("5e7d");var e=this instanceof o;if(!e&&!d.call(D,this))return new D(t);this._writableState=new L(t,this,e),this.writable=!0,t&&("function"===typeof t.write&&(this._write=t.write),"function"===typeof t.writev&&(this._writev=t.writev),"function"===typeof t.destroy&&(this._destroy=t.destroy),"function"===typeof t.final&&(this._final=t.final)),a.call(this)}function T(t,e){var n=new S;k(t,n),r.nextTick(e,n)}function O(t,e,n,i){var o;return null===n?o=new M:"string"===typeof n||e.objectMode||(o=new y("chunk",["string","Buffer"],n)),!o||(k(t,o),r.nextTick(i,o),!1)}function x(t,e,n){return t.objectMode||!1===t.decodeStrings||"string"!==typeof e||(e=u.from(e,n)),e}function I(t,e,n,r,i,o){if(!n){var s=x(e,r,i);r!==s&&(n=!0,i="buffer",r=s)}var a=e.objectMode?1:r.length;e.length+=a;var u=e.length-1))throw new A(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(D.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(D.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),D.prototype._write=function(t,e,n){n(new b("_write()"))},D.prototype._writev=null,D.prototype.end=function(t,e,n){var r=this._writableState;return"function"===typeof t?(n=t,t=null,e=null):"function"===typeof e&&(n=e,e=null),null!==t&&void 0!==t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||F(this,r,n),this},Object.defineProperty(D.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(D.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),D.prototype.destroy=f.destroy,D.prototype._undestroy=f.undestroy,D.prototype._destroy=function(t,e){e(t)}}).call(this,n("c8ba"),n("4362"))},"4a4b":function(t,e){function n(e,r){return t.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports["default"]=t.exports,n(e,r)}t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},"4a7b":function(t,e,n){"use strict";var r=n("c532");t.exports=function(t,e){e=e||{};var n={};function i(t,e){return r.isPlainObject(t)&&r.isPlainObject(e)?r.merge(t,e):r.isPlainObject(e)?r.merge({},e):r.isArray(e)?e.slice():e}function o(n){return r.isUndefined(e[n])?r.isUndefined(t[n])?void 0:i(void 0,t[n]):i(t[n],e[n])}function s(t){if(!r.isUndefined(e[t]))return i(void 0,e[t])}function a(n){return r.isUndefined(e[n])?r.isUndefined(t[n])?void 0:i(void 0,t[n]):i(void 0,e[n])}function u(n){return n in e?i(t[n],e[n]):n in t?i(void 0,t[n]):void 0}var c={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u};return r.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=c[t]||o,i=e(t);r.isUndefined(i)&&e!==u||(n[t]=i)})),n}},"4ba9":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration function e(t,e,n){var r=t+" ";switch(n){case"ss":return r+=1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi",r;case"m":return e?"jedna minuta":"jedne minute";case"mm":return r+=1===t?"minuta":2===t||3===t||4===t?"minute":"minuta",r;case"h":return e?"jedan sat":"jednog sata";case"hh":return r+=1===t?"sat":2===t||3===t||4===t?"sata":"sati",r;case"dd":return r+=1===t?"dan":"dana",r;case"MM":return r+=1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci",r;case"yy":return r+=1===t?"godina":2===t||3===t||4===t?"godine":"godina",r}}var n=t.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:e,m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},"4c20":function(t,e,n){t.exports=n("faa1").EventEmitter},"4c3d":function(t,e,n){"use strict";(function(e){var r=n("c532"),i=n("c8af"),o=n("7917"),s=n("cafa"),a=n("e467"),u={"Content-Type":"application/x-www-form-urlencoded"};function c(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function l(){var t;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof e&&"[object process]"===Object.prototype.toString.call(e))&&(t=n("b50d")),t}function h(t,e,n){if(r.isString(t))try{return(e||JSON.parse)(t),r.trim(t)}catch(i){if("SyntaxError"!==i.name)throw i}return(n||JSON.stringify)(t)}var d={transitional:s,adapter:l(),transformRequest:[function(t,e){if(i(e,"Accept"),i(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t))return t;if(r.isArrayBufferView(t))return t.buffer;if(r.isURLSearchParams(t))return c(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var n,o=r.isObject(t),s=e&&e["Content-Type"];if((n=r.isFileList(t))||o&&"multipart/form-data"===s){var u=this.env&&this.env.FormData;return a(n?{"files[]":t}:t,u&&new u)}return o||"application/json"===s?(c(e,"application/json"),h(t)):t}],transformResponse:[function(t){var e=this.transitional||d.transitional,n=e&&e.silentJSONParsing,i=e&&e.forcedJSONParsing,s=!n&&"json"===this.responseType;if(s||i&&r.isString(t)&&t.length)try{return JSON.parse(t)}catch(a){if(s){if("SyntaxError"===a.name)throw o.from(a,o.ERR_BAD_RESPONSE,this,null,this.response);throw a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n("4581")},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(t){d.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){d.headers[t]=r.merge(u)})),t.exports=d}).call(this,n("4362"))},"4d28":function(t,e,n){"use strict";var r=n("9054").codes.ERR_INVALID_OPT_VALUE;function i(t,e,n){return null!=t.highWaterMark?t.highWaterMark:e?t[n]:null}function o(t,e,n,o){var s=i(e,o,n);if(null!=s){if(!isFinite(s)||Math.floor(s)!==s||s<0){var a=o?n:"highWaterMark";throw new r(a,s)}return Math.floor(s)}return t.objectMode?16:16384}t.exports={getHighWaterMark:o}},"4d64":function(t,e,n){var r=n("fc6a"),i=n("23cb"),o=n("07fa"),s=function(t){return function(e,n,s){var a,u=r(e),c=o(u),l=i(s,c);if(t&&n!=n){while(c>l)if(a=u[l++],a!=a)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},"4dd0":function(t,e,n){var r=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,s=n("ae84"),a=n("fda6"),u=n("8707").Buffer;t.exports=function(t,e){var n,c=t.toString(),l=c.match(r);if(l){var h="aes"+l[1],d=u.from(l[2],"hex"),f=u.from(l[3].replace(/[\r\n]/g,""),"base64"),p=s(e,d.slice(0,8),parseInt(l[1],10)).key,m=[],g=a.createDecipheriv(h,p,d);m.push(g.update(f)),m.push(g.final()),n=u.concat(m)}else{var y=c.match(o);n=u.from(y[2].replace(/[\r\n]/g,""),"base64")}var b=c.match(i)[1];return{tag:b,data:n}}},"4e2b":function(t,e,n){"use strict";var r=n("da3e"),i=n("3fb5"),o=n("5ee7"),s=n("0184");function a(){this.tmp=new Array(2),this.keys=null}function u(t){s.call(this,t);var e=new a;this._desState=e,this.deriveKeys(e,t.key)}i(u,s),t.exports=u,u.create=function(t){return new u(t)};var c=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];u.prototype.deriveKeys=function(t,e){t.keys=new Array(32),r.equal(e.length,this.blockSize,"Invalid key length");var n=o.readUInt32BE(e,0),i=o.readUInt32BE(e,4);o.pc1(n,i,t.tmp,0),n=t.tmp[0],i=t.tmp[1];for(var s=0;s>>1];n=o.r28shl(n,a),i=o.r28shl(i,a),o.pc2(n,i,t.keys,s)}},u.prototype._update=function(t,e,n,r){var i=this._desState,s=o.readUInt32BE(t,e),a=o.readUInt32BE(t,e+4);o.ip(s,a,i.tmp,0),s=i.tmp[0],a=i.tmp[1],"encrypt"===this.type?this._encrypt(i,s,a,i.tmp,0):this._decrypt(i,s,a,i.tmp,0),s=i.tmp[0],a=i.tmp[1],o.writeUInt32BE(n,s,r),o.writeUInt32BE(n,a,r+4)},u.prototype._pad=function(t,e){for(var n=t.length-e,r=e;r>>0,s=f}o.rip(a,s,r,i)},u.prototype._decrypt=function(t,e,n,r,i){for(var s=n,a=e,u=t.keys.length-2;u>=0;u-=2){var c=t.keys[u],l=t.keys[u+1];o.expand(s,t.tmp,0),c^=t.tmp[0],l^=t.tmp[1];var h=o.substitute(c,l),d=o.permute(h),f=s;s=(a^d)>>>0,a=f}o.rip(s,a,r,i)}},"4ea4":function(t,e){function n(t){return t&&t.__esModule?t:{default:t}}t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},"4ea9":function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n("834f"),e),i(n("8217"),e),i(n("0fa3"),e),i(n("6d7f"),e)},"4fd1":function(t,e,n){var r=n("3fb5"),i=n("b672"),o=n("8707").Buffer,s=[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],a=new Array(160);function u(){this.init(),this._w=a,i.call(this,128,112)}function c(t,e,n){return n^t&(e^n)}function l(t,e,n){return t&e|n&(t|e)}function h(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function d(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function f(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function p(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function m(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function g(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function y(t,e){return t>>>0>>0?1:0}r(u,i),u.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},u.prototype._update=function(t){for(var e=this._w,n=0|this._ah,r=0|this._bh,i=0|this._ch,o=0|this._dh,a=0|this._eh,u=0|this._fh,b=0|this._gh,v=0|this._hh,_=0|this._al,w=0|this._bl,M=0|this._cl,S=0|this._dl,A=0|this._el,k=0|this._fl,E=0|this._gl,L=0|this._hl,D=0;D<32;D+=2)e[D]=t.readInt32BE(4*D),e[D+1]=t.readInt32BE(4*D+4);for(;D<160;D+=2){var T=e[D-30],O=e[D-30+1],x=f(T,O),I=p(O,T);T=e[D-4],O=e[D-4+1];var j=m(T,O),N=g(O,T),P=e[D-14],C=e[D-14+1],R=e[D-32],Y=e[D-32+1],B=I+C|0,z=x+P+y(B,I)|0;B=B+N|0,z=z+j+y(B,N)|0,B=B+Y|0,z=z+R+y(B,Y)|0,e[D]=z,e[D+1]=B}for(var U=0;U<160;U+=2){z=e[U],B=e[U+1];var W=l(n,r,i),H=l(_,w,M),F=h(n,_),q=h(_,n),V=d(a,A),K=d(A,a),G=s[U],Q=s[U+1],Z=c(a,u,b),J=c(A,k,E),$=L+K|0,X=v+V+y($,L)|0;$=$+J|0,X=X+Z+y($,J)|0,$=$+Q|0,X=X+G+y($,Q)|0,$=$+B|0,X=X+z+y($,B)|0;var tt=q+H|0,et=F+W+y(tt,q)|0;v=b,L=E,b=u,E=k,u=a,k=A,A=S+$|0,a=o+X+y(A,S)|0,o=i,S=M,i=r,M=w,r=n,w=_,_=$+tt|0,n=X+et+y(_,$)|0}this._al=this._al+_|0,this._bl=this._bl+w|0,this._cl=this._cl+M|0,this._dl=this._dl+S|0,this._el=this._el+A|0,this._fl=this._fl+k|0,this._gl=this._gl+E|0,this._hl=this._hl+L|0,this._ah=this._ah+n+y(this._al,_)|0,this._bh=this._bh+r+y(this._bl,w)|0,this._ch=this._ch+i+y(this._cl,M)|0,this._dh=this._dh+o+y(this._dl,S)|0,this._eh=this._eh+a+y(this._el,A)|0,this._fh=this._fh+u+y(this._fl,k)|0,this._gh=this._gh+b+y(this._gl,E)|0,this._hh=this._hh+v+y(this._hl,L)|0},u.prototype._hash=function(){var t=o.allocUnsafe(64);function e(e,n,r){t.writeInt32BE(e,r),t.writeInt32BE(n,r+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t},t.exports=u},"502a":function(t,e,n){"use strict";const r=n("e26f").v4,i=n("db97"),o=function(t,e){if(!(this instanceof o))return new o(t,e);e||(e={}),this.options={reviver:"undefined"!==typeof e.reviver?e.reviver:null,replacer:"undefined"!==typeof e.replacer?e.replacer:null,generator:"undefined"!==typeof e.generator?e.generator:function(){return r()},version:"undefined"!==typeof e.version?e.version:2,notificationIdNull:"boolean"===typeof e.notificationIdNull&&e.notificationIdNull},this.callServer=t};t.exports=o,o.prototype.request=function(t,e,n,r){const o=this;let s=null;const a=Array.isArray(t)&&"function"===typeof e;if(1===this.options.version&&a)throw new TypeError("JSON-RPC 1.0 does not support batching");const u=!a&&t&&"object"===typeof t&&"function"===typeof e;if(a||u)r=e,s=t;else{"function"===typeof n&&(r=n,n=void 0);const o="function"===typeof r;try{s=i(t,e,n,{generator:this.options.generator,version:this.options.version,notificationIdNull:this.options.notificationIdNull})}catch(l){if(o)return r(l);throw l}if(!o)return s}let c;try{c=JSON.stringify(s,this.options.replacer)}catch(l){return r(l)}return this.callServer(c,(function(t,e){o._parseResponse(t,e,r)})),s},o.prototype._parseResponse=function(t,e,n){if(t)return void n(t);if(!e)return n();let r;try{r=JSON.parse(e,this.options.reviver)}catch(t){return n(t)}if(3===n.length){if(Array.isArray(r)){const t=function(t){return"undefined"!==typeof t.error},e=function(e){return!t(e)};return n(null,r.filter(t),r.filter(e))}return n(null,r.error,r.result)}n(null,r)}},5038:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(t,e){return 12===t&&(t=0),"pagi"===e?t:"siang"===e?t>=11?t:t+12:"sore"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,n){return t<11?"pagi":t<15?"siang":t<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}});return e}))},"50c4":function(t,e,n){var r=n("5926"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},"510b":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KECCAK256_RLP=e.KECCAK256_RLP_S=e.KECCAK256_RLP_ARRAY=e.KECCAK256_RLP_ARRAY_S=e.KECCAK256_NULL=e.KECCAK256_NULL_S=e.TWO_POW256=e.MAX_INTEGER=e.MAX_UINT64=void 0;var r=n("b639"),i=n("ce43");e.MAX_UINT64=new i.BN("ffffffffffffffff",16),e.MAX_INTEGER=new i.BN("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),e.TWO_POW256=new i.BN("10000000000000000000000000000000000000000000000000000000000000000",16),e.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",e.KECCAK256_NULL=r.Buffer.from(e.KECCAK256_NULL_S,"hex"),e.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",e.KECCAK256_RLP_ARRAY=r.Buffer.from(e.KECCAK256_RLP_ARRAY_S,"hex"),e.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",e.KECCAK256_RLP=r.Buffer.from(e.KECCAK256_RLP_S,"hex")},5120:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e=["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],n=["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],r=["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],i=["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],o=["Do","Lu","Má","Cé","Dé","A","Sa"],s=t.defineLocale("ga",{months:e,monthsShort:n,monthsParseExact:!0,weekdays:r,weekdaysShort:i,weekdaysMin:o,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d míonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(t){var e=1===t?"d":t%10===2?"na":"mh";return t+e},week:{dow:1,doy:4}});return s}))},5134:function(t,e,n){"use strict";(function(t){let r,i;function o(){var e;return void 0!==r||("undefined"!==typeof window&&window.performance?(r=!0,i=window.performance):"undefined"!==typeof t&&(null===(e=t.perf_hooks)||void 0===e?void 0:e.performance)?(r=!0,i=t.perf_hooks.performance):r=!1),r}function s(){return o()?i.now():Date.now()}n.d(e,"a",(function(){return s}))}).call(this,n("c8ba"))},5165:function(t,e,n){(function(t){var r=n("8c8a");function i(t){return t._prev=t._cipher.encryptBlock(t._prev),t._prev}e.encrypt=function(e,n){while(e._cache.length>a%8,t._prev=o(t._prev,n?i:s);return c}function o(t,e){var n=t.length,i=-1,o=r.allocUnsafe(t.length);t=r.concat([t,r.from([e])]);while(++i>7;return o}e.encrypt=function(t,e,n){var o=e.length,s=r.allocUnsafe(o),a=-1;while(++a=11?t:t+12:"entsambama"===e||"ebusuku"===e?0===t?0:t+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}});return e}))},"52e8":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ethErrors=void 0;const r=n("33a9"),i=n("d10f"),o=n("d4c6");function s(t,e){const[n,o]=u(e);return new r.EthereumRpcError(t,n||i.getMessageFromCode(t),o)}function a(t,e){const[n,o]=u(e);return new r.EthereumProviderError(t,n||i.getMessageFromCode(t),o)}function u(t){if(t){if("string"===typeof t)return[t];if("object"===typeof t&&!Array.isArray(t)){const{message:e,data:n}=t;if(e&&"string"!==typeof e)throw new Error("Must specify string message.");return[e||void 0,n]}}return[]}e.ethErrors={rpc:{parse:t=>s(o.errorCodes.rpc.parse,t),invalidRequest:t=>s(o.errorCodes.rpc.invalidRequest,t),invalidParams:t=>s(o.errorCodes.rpc.invalidParams,t),methodNotFound:t=>s(o.errorCodes.rpc.methodNotFound,t),internal:t=>s(o.errorCodes.rpc.internal,t),server:t=>{if(!t||"object"!==typeof t||Array.isArray(t))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:e}=t;if(!Number.isInteger(e)||e>-32005||e<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return s(e,t)},invalidInput:t=>s(o.errorCodes.rpc.invalidInput,t),resourceNotFound:t=>s(o.errorCodes.rpc.resourceNotFound,t),resourceUnavailable:t=>s(o.errorCodes.rpc.resourceUnavailable,t),transactionRejected:t=>s(o.errorCodes.rpc.transactionRejected,t),methodNotSupported:t=>s(o.errorCodes.rpc.methodNotSupported,t),limitExceeded:t=>s(o.errorCodes.rpc.limitExceeded,t)},provider:{userRejectedRequest:t=>a(o.errorCodes.provider.userRejectedRequest,t),unauthorized:t=>a(o.errorCodes.provider.unauthorized,t),unsupportedMethod:t=>a(o.errorCodes.provider.unsupportedMethod,t),disconnected:t=>a(o.errorCodes.provider.disconnected,t),chainDisconnected:t=>a(o.errorCodes.provider.chainDisconnected,t),custom:t=>{if(!t||"object"!==typeof t||Array.isArray(t))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:e,message:n,data:i}=t;if(!n||"string"!==typeof n)throw new Error('"message" must be a nonempty string');return new r.EthereumProviderError(e,n,i)}}}},"53e2":function(t,e,n){"use strict";t.exports=l;var r=n("9054").codes,i=r.ERR_METHOD_NOT_IMPLEMENTED,o=r.ERR_MULTIPLE_CALLBACK,s=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=r.ERR_TRANSFORM_WITH_LENGTH_0,u=n("88a2");function c(t,e){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=e&&this.push(e),r(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.lengthr(t,e,n)>0;t.exports=i},5503:function(t,e,n){const r=n("0872"),i=(t,e,n)=>{try{e=new r(e,n)}catch(i){return!1}return e.test(t)};t.exports=i},"552f":function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return l})),n.d(e,"d",(function(){return h})),n.d(e,"e",(function(){return f}));n("9523");var r=n("2d5d"),i=(n("d553"),n("d89d")),o=n.n(i),s=(n("901e"),n("5b66"),n("5c7d")),a=n.n(s);n("e33e"),n("6517"),n("337f"),n("2ef0");r["d"];o()();const u={IFRAME_STATUS:"iframe_status",CREATE_WINDOW:"create_window",CLOSE_WINDOW:"close_window",USER_LOGGED_IN:"user_logged_in",USER_LOGGED_OUT:"user_logged_out"},c={LOGOUT:"logout",WALLET_INSTANCE_ID:"wallet_instance_id",USER_INFO:"user_info",SET_PROVIDER:"set_provider",TOPUP:"topup",IFRAME_STATUS:"iframe_status",OPENED_WINDOW:"opened_window",CLOSED_WINDOW:"closed_window",GET_PROVIDER_STATE:"get_provider_state",LOGIN_WITH_PRIVATE_KEY:"login_with_private_key"},l={GET_PROVIDER_STATE:"wallet_get_provider_state"},h={ACCOUNTS_CHANGED:"wallet_accounts_changed",CHAIN_CHANGED:"wallet_chain_changed",UNLOCK_STATE_CHANGED:"wallet_unlock_state_changed"};r["d"];const d={GOOGLE:"google",FACEBOOK:"facebook",REDDIT:"reddit",DISCORD:"discord",TWITCH:"twitch",APPLE:"apple",LINE:"line",GITHUB:"github",KAKAO:"kakao",LINKEDIN:"linkedin",TWITTER:"twitter",WEIBO:"weibo",WECHAT:"wechat",EMAIL_PASSWORDLESS:"email_passwordless"};Error;function f(t){return function(e,n,r){r(r=>{n.error&&a.a.warn("Error in RPC response:\n",n),e.isTorusInternal||(a.a.info("RPC (".concat(t.origin,"):"),e,"->",n),r())})}}const p={NORMAL:"normal",THRESHOLD:"threshold",IMPORTED:"imported"};p.NORMAL,d.GOOGLE;var m;(function(t){t["approved"]="approved",t["cancelled"]="cancelled",t["confirmed"]="confirmed",t["failed"]="failed",t["finalized"]="finalized",t["processed"]="processed",t["rejected"]="rejected",t["signed"]="signed",t["submitted"]="submitted",t["unapproved"]="unapproved",t["dropped"]="dropped",t["expired"]="expired"})(m||(m={}))}).call(this,n("b639").Buffer)},5536:function(t,e,n){const r=n("c2a4"),i=(t,e)=>new r(t,e).major;t.exports=i},"554e":function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n("8553"),e)},"55c9":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,o=t.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,r){return t?/-MMM-/.test(r)?n[t.month()]:e[t.month()]:e},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}});return o}))},"561d":function(t,e,n){(function(e){var r=n("48e6"),i=n("7a10"),o=new i,s=new r(24),a=new r(11),u=new r(10),c=new r(3),l=new r(7),h=n("58a2"),d=n("11dc");function f(t,n){return n=n||"utf8",e.isBuffer(t)||(t=new e(t,n)),this._pub=new r(t),this}function p(t,n){return n=n||"utf8",e.isBuffer(t)||(t=new e(t,n)),this._priv=new r(t),this}t.exports=y;var m={};function g(t,e){var n=e.toString("hex"),r=[n,t.toString(16)].join("_");if(r in m)return m[r];var i,d=0;if(t.isEven()||!h.simpleSieve||!h.fermatTest(t)||!o.test(t))return d+=1,d+="02"===n||"05"===n?8:4,m[r]=d,d;switch(o.test(t.shrn(1))||(d+=2),n){case"02":t.mod(s).cmp(a)&&(d+=8);break;case"05":i=t.mod(u),i.cmp(c)&&i.cmp(l)&&(d+=8);break;default:d+=4}return m[r]=d,d}function y(t,e,n){this.setGenerator(e),this.__prime=new r(t),this._prime=r.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,n?(this.setPublicKey=f,this.setPrivateKey=p):this._primeCode=8}function b(t,n){var r=new e(t.toArray());return n?r.toString(n):r}Object.defineProperty(y.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!==typeof this._primeCode&&(this._primeCode=g(this.__prime,this.__gen)),this._primeCode}}),y.prototype.generateKeys=function(){return this._priv||(this._priv=new r(d(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},y.prototype.computeSecret=function(t){t=new r(t),t=t.toRed(this._prime);var n=t.redPow(this._priv).fromRed(),i=new e(n.toArray()),o=this.getPrime();if(i.lengtht)n.ishrn(1);if(n.isEven()&&n.iadd(u),n.testn(1)||n.iadd(c),e.cmp(c)){if(!e.cmp(l))while(n.mod(h).cmp(d))n.iadd(p)}else while(n.mod(o).cmp(f))n.iadd(p);if(s=n.shrn(1),y(s)&&y(n)&&b(s)&&b(n)&&a.test(s)&&a.test(n))return n}}},5919:function(t,e,n){"use strict";e.sha1=n("13e2"),e.sha224=n("07f2"),e.sha256=n("6eed"),e.sha384=n("8b95"),e.sha512=n("b525")},5926:function(t,e,n){var r=n("b42e");t.exports=function(t){var e=+t;return e!==e||0===e?0:r(e)}},"598a":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"],r=t.defineLocale("dv",{months:e,monthsShort:e,weekdays:n,weekdaysShort:n,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(t){return"މފ"===t},meridiem:function(t,e,n){return t<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:7,doy:12}});return r}))},"59ed":function(t,e,n){var r=n("1626"),i=n("0d51"),o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not a function")}},"5a76":function(t,e,n){var r=n("f576");t.exports=function(t){return(new r).update(t).digest()}},"5aff":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"},n=t.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(t,n){switch(n){case"d":case"D":case"Do":case"DD":return t;default:if(0===t)return t+"'unjy";var r=t%10,i=t%100-r,o=t>=100?100:null;return t+(e[r]||e[i]||e[o])}},week:{dow:1,doy:7}});return n}))},"5b14":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(t,e,n,r){var i=t;switch(n){case"s":return r||e?"néhány másodperc":"néhány másodperce";case"ss":return i+(r||e)?" másodperc":" másodperce";case"m":return"egy"+(r||e?" perc":" perce");case"mm":return i+(r||e?" perc":" perce");case"h":return"egy"+(r||e?" óra":" órája");case"hh":return i+(r||e?" óra":" órája");case"d":return"egy"+(r||e?" nap":" napja");case"dd":return i+(r||e?" nap":" napja");case"M":return"egy"+(r||e?" hónap":" hónapja");case"MM":return i+(r||e?" hónap":" hónapja");case"y":return"egy"+(r||e?" év":" éve");case"yy":return i+(r||e?" év":" éve")}return""}function r(t){return(t?"":"[múlt] ")+"["+e[this.day()]+"] LT[-kor]"}var i=t.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(t){return"u"===t.charAt(1).toLowerCase()},meridiem:function(t,e,n){return t<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return r.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return r.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return i}))},"5b66":function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.isHexString=e.getKeys=e.fromAscii=e.fromUtf8=e.toAscii=e.arrayContainsArray=e.getBinarySize=e.padToEven=e.stripHexPrefix=e.isHexPrefixed=void 0,i(n("510b"),e),i(n("acc3"),e),i(n("d13a"),e),i(n("8463"),e),i(n("b258"),e),i(n("0c30"),e),i(n("e94e"),e),i(n("ce43"),e),i(n("6a9d"),e);var o=n("b332");Object.defineProperty(e,"isHexPrefixed",{enumerable:!0,get:function(){return o.isHexPrefixed}}),Object.defineProperty(e,"stripHexPrefix",{enumerable:!0,get:function(){return o.stripHexPrefix}}),Object.defineProperty(e,"padToEven",{enumerable:!0,get:function(){return o.padToEven}}),Object.defineProperty(e,"getBinarySize",{enumerable:!0,get:function(){return o.getBinarySize}}),Object.defineProperty(e,"arrayContainsArray",{enumerable:!0,get:function(){return o.arrayContainsArray}}),Object.defineProperty(e,"toAscii",{enumerable:!0,get:function(){return o.toAscii}}),Object.defineProperty(e,"fromUtf8",{enumerable:!0,get:function(){return o.fromUtf8}}),Object.defineProperty(e,"fromAscii",{enumerable:!0,get:function(){return o.fromAscii}}),Object.defineProperty(e,"getKeys",{enumerable:!0,get:function(){return o.getKeys}}),Object.defineProperty(e,"isHexString",{enumerable:!0,get:function(){return o.isHexString}})},"5bbb":function(t,e,n){t.exports=n("faa1").EventEmitter},"5bc3":function(t,e){function n(t,e){for(var n=0;n=11?t:t+12},meridiem:function(t,e,n){var r=100*t+e;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(t){return t.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(t){return this.week()!==t.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"周";default:return t}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}});return e}))},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"5c7d":function(t,e,n){var r,i;(function(o,s){"use strict";r=s,i="function"===typeof r?r.call(e,n,e,t):r,void 0===i||(t.exports=i)})(0,(function(){"use strict";var t=function(){},e="undefined",n=typeof window!==e&&typeof window.navigator!==e&&/Trident\/|MSIE /.test(window.navigator.userAgent),r=["trace","debug","info","warn","error"];function i(t,e){var n=t[e];if("function"===typeof n.bind)return n.bind(t);try{return Function.prototype.bind.call(n,t)}catch(r){return function(){return Function.prototype.apply.apply(n,[t,arguments])}}}function o(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function s(r){return"debug"===r&&(r="log"),typeof console!==e&&("trace"===r&&n?o:void 0!==console[r]?i(console,r):void 0!==console.log?i(console,"log"):t)}function a(e,n){for(var i=0;i=0&&n<=s.levels.SILENT))throw"log.setLevel() called with invalid level: "+n;if(o=n,!1!==r&&l(n),a.call(s,n,t),typeof console===e&&n=10?t:t+12:"సాయంత్రం"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"రాత్రి":t<10?"ఉదయం":t<17?"మధ్యాహ్నం":t<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}});return e}))},"5cce":function(t,e){t.exports={version:"0.27.2"}},"5e1a":function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=n("8707").Buffer,o=n(14);function s(t,e,n){t.copy(e,n)}t.exports=function(){function t(){r(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";var e=this.head,n=""+e.data;while(e=e.next)n+=t+e.data;return n},t.prototype.concat=function(t){if(0===this.length)return i.alloc(0);if(1===this.length)return this.head.data;var e=i.allocUnsafe(t>>>0),n=this.head,r=0;while(n)s(n.data,e,r),r+=n.data.length,n=n.next;return e},t}(),o&&o.inspect&&o.inspect.custom&&(t.exports.prototype[o.inspect.custom]=function(){var t=o.inspect({length:this.length});return this.constructor.name+" "+t})},"5e77":function(t,e,n){var r=n("83ab"),i=n("1a2d"),o=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,a=i(o,"name"),u=a&&"something"===function(){}.name,c=a&&(!r||r&&s(o,"name").configurable);t.exports={EXISTS:a,PROPER:u,CONFIGURABLE:c}},"5e7d":function(t,e,n){"use strict";(function(e){var r=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=c;var i=n("cf35"),o=n("49ce");n("3fb5")(c,i);for(var s=r(o.prototype),a=0;a>>0},e.writeUInt32BE=function(t,e,n){t[0+n]=e>>>24,t[1+n]=e>>>16&255,t[2+n]=e>>>8&255,t[3+n]=255&e},e.ip=function(t,e,n,r){for(var i=0,o=0,s=6;s>=0;s-=2){for(var a=0;a<=24;a+=8)i<<=1,i|=e>>>a+s&1;for(a=0;a<=24;a+=8)i<<=1,i|=t>>>a+s&1}for(s=6;s>=0;s-=2){for(a=1;a<=25;a+=8)o<<=1,o|=e>>>a+s&1;for(a=1;a<=25;a+=8)o<<=1,o|=t>>>a+s&1}n[r+0]=i>>>0,n[r+1]=o>>>0},e.rip=function(t,e,n,r){for(var i=0,o=0,s=0;s<4;s++)for(var a=24;a>=0;a-=8)i<<=1,i|=e>>>a+s&1,i<<=1,i|=t>>>a+s&1;for(s=4;s<8;s++)for(a=24;a>=0;a-=8)o<<=1,o|=e>>>a+s&1,o<<=1,o|=t>>>a+s&1;n[r+0]=i>>>0,n[r+1]=o>>>0},e.pc1=function(t,e,n,r){for(var i=0,o=0,s=7;s>=5;s--){for(var a=0;a<=24;a+=8)i<<=1,i|=e>>a+s&1;for(a=0;a<=24;a+=8)i<<=1,i|=t>>a+s&1}for(a=0;a<=24;a+=8)i<<=1,i|=e>>a+s&1;for(s=1;s<=3;s++){for(a=0;a<=24;a+=8)o<<=1,o|=e>>a+s&1;for(a=0;a<=24;a+=8)o<<=1,o|=t>>a+s&1}for(a=0;a<=24;a+=8)o<<=1,o|=t>>a+s&1;n[r+0]=i>>>0,n[r+1]=o>>>0},e.r28shl=function(t,e){return t<>>28-e};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];e.pc2=function(t,e,n,i){for(var o=0,s=0,a=r.length>>>1,u=0;u>>r[u]&1;for(u=a;u>>r[u]&1;n[i+0]=o>>>0,n[i+1]=s>>>0},e.expand=function(t,e,n){var r=0,i=0;r=(1&t)<<5|t>>>27;for(var o=23;o>=15;o-=4)r<<=6,r|=t>>>o&63;for(o=11;o>=3;o-=4)i|=t>>>o&63,i<<=6;i|=(31&t)<<1|t>>>31,e[n+0]=r>>>0,e[n+1]=i>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];e.substitute=function(t,e){for(var n=0,r=0;r<4;r++){var o=t>>>18-6*r&63,s=i[64*r+o];n<<=4,n|=s}for(r=0;r<4;r++){o=e>>>18-6*r&63,s=i[256+64*r+o];n<<=4,n|=s}return n>>>0};var o=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];e.permute=function(t){for(var e=0,n=0;n>>o[n]&1;return e>>>0},e.padSplit=function(t,e,n){var r=t.toString(2);while(r.length=11?t:t+12},meridiem:function(t,e,n){var r=100*t+e;return r<600?"يېرىم كېچە":r<900?"سەھەر":r<1130?"چۈشتىن بۇرۇن":r<1230?"چۈش":r<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"-كۈنى";case"w":case"W":return t+"-ھەپتە";default:return t}},preparse:function(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:1,doy:7}});return e}))},"61dc":function(t,e,n){const r=n("c2a4"),i=(t,e,n)=>new r(t,n).compare(new r(e,n));t.exports=i},6227:function(t,e,n){"use strict";n.r(e),n.d(e,"ObliviousSet",(function(){return r})),n.d(e,"removeTooOldValues",(function(){return i})),n.d(e,"now",(function(){return o}));var r=function(){function t(t){this.ttl=t,this.map=new Map,this._to=!1}return t.prototype.has=function(t){return this.map.has(t)},t.prototype.add=function(t){var e=this;this.map.set(t,o()),this._to||(this._to=!0,setTimeout((function(){e._to=!1,i(e)}),0))},t.prototype.clear=function(){this.map.clear()},t}();function i(t){var e=o()-t.ttl,n=t.map[Symbol.iterator]();while(1){var r=n.next().value;if(!r)return;var i=r[0],s=r[1];if(!(s=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),n=0;n>>0,h=new Uint8Array(c);while(o!==s){for(var d=e[o],f=0,p=c-1;(0!==d||f>>0,h[p]=d%a>>>0,d=d/a>>>0;if(0!==d)throw new Error("Non-zero carry");i=f,o++}var m=c-i;while(m!==c&&0===h[m])m++;for(var g=u.repeat(n);m>>0,l=new Uint8Array(s);while(t[n]){var h=e[t.charCodeAt(n)];if(255===h)return;for(var d=0,f=s-1;(0!==h||d>>0,l[f]=h%256>>>0,h=h/256>>>0;if(0!==h)throw new Error("Non-zero carry");o=d,n++}var p=s-o;while(p!==s&&0===l[p])p++;var m=r.allocUnsafe(i+(s-p));m.fill(0,0,i);var g=i;while(p!==s)m[g++]=l[p++];return m}function f(t){var e=d(t);if(e)return e;throw new Error("Non-base"+a+" character")}return{encode:h,decodeUnsafe:d,decode:f}}t.exports=i},6403:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(t,e){return 12===t&&(t=0),"pagi"===e?t:"tengahari"===e?t>=11?t:t+12:"petang"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,n){return t<11?"pagi":t<15?"tengahari":t<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}});return e}))},6430:function(t,e,n){var r=n("8707").Buffer,i=n("d485").Transform,o=n("7d72").StringDecoder,s=n("3fb5");function a(t){i.call(this),this.hashMode="string"===typeof t,this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}s(a,i),a.prototype.update=function(t,e,n){"string"===typeof t&&(t=r.from(t,e));var i=this._update(t);return this.hashMode?this:(n&&(i=this._toString(i,n)),i)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(t,e,n){var r;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(i){r=i}finally{n(r)}},a.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(n){e=n}t(e)},a.prototype._finalOrDigest=function(t){var e=this.__final()||r.alloc(0);return t&&(e=this._toString(e,t,!0)),e},a.prototype._toString=function(t,e,n){if(this._decoder||(this._decoder=new o(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");var r=this._decoder.write(t);return n&&(r+=this._decoder.end()),r},t.exports=a},6442:function(t,e,n){e.publicEncrypt=n("ad25"),e.privateDecrypt=n("0f2c"),e.privateEncrypt=function(t,n){return e.publicEncrypt(t,n,!0)},e.publicDecrypt=function(t,n){return e.privateDecrypt(t,n,!0)}},"64b9":function(t,e,n){"use strict";n.r(e),n.d(e,"Account",(function(){return sr})),n.d(e,"Authorized",(function(){return us})),n.d(e,"BLOCKHASH_CACHE_TIMEOUT_MS",(function(){return ki})),n.d(e,"BPF_LOADER_DEPRECATED_PROGRAM_ID",(function(){return ar})),n.d(e,"BPF_LOADER_PROGRAM_ID",(function(){return Zr})),n.d(e,"BpfLoader",(function(){return Jr})),n.d(e,"COMPUTE_BUDGET_INSTRUCTION_LAYOUTS",(function(){return Xr})),n.d(e,"ComputeBudgetInstruction",(function(){return $r})),n.d(e,"ComputeBudgetProgram",(function(){return ti})),n.d(e,"Connection",(function(){return ts})),n.d(e,"Ed25519Program",(function(){return ss})),n.d(e,"Enum",(function(){return Zn})),n.d(e,"EpochSchedule",(function(){return ci})),n.d(e,"FeeCalculatorLayout",(function(){return Yr})),n.d(e,"Keypair",(function(){return es})),n.d(e,"LAMPORTS_PER_SOL",(function(){return Bs})),n.d(e,"Loader",(function(){return Qr})),n.d(e,"Lockup",(function(){return cs})),n.d(e,"MAX_SEED_LENGTH",(function(){return $n})),n.d(e,"Message",(function(){return vr})),n.d(e,"NONCE_ACCOUNT_LENGTH",(function(){return zr})),n.d(e,"NonceAccount",(function(){return Ur})),n.d(e,"PACKET_DATA_SIZE",(function(){return ur})),n.d(e,"PublicKey",(function(){return tr})),n.d(e,"SIGNATURE_LENGTH_IN_BYTES",(function(){return cr})),n.d(e,"SOLANA_SCHEMA",(function(){return Jn})),n.d(e,"STAKE_CONFIG_ID",(function(){return as})),n.d(e,"STAKE_INSTRUCTION_LAYOUTS",(function(){return hs})),n.d(e,"SYSTEM_INSTRUCTION_LAYOUTS",(function(){return Vr})),n.d(e,"SYSVAR_CLOCK_PUBKEY",(function(){return kr})),n.d(e,"SYSVAR_EPOCH_SCHEDULE_PUBKEY",(function(){return Er})),n.d(e,"SYSVAR_INSTRUCTIONS_PUBKEY",(function(){return Lr})),n.d(e,"SYSVAR_RECENT_BLOCKHASHES_PUBKEY",(function(){return Dr})),n.d(e,"SYSVAR_RENT_PUBKEY",(function(){return Tr})),n.d(e,"SYSVAR_REWARDS_PUBKEY",(function(){return Or})),n.d(e,"SYSVAR_SLOT_HASHES_PUBKEY",(function(){return xr})),n.d(e,"SYSVAR_SLOT_HISTORY_PUBKEY",(function(){return Ir})),n.d(e,"SYSVAR_STAKE_HISTORY_PUBKEY",(function(){return jr})),n.d(e,"Secp256k1Program",(function(){return ws})),n.d(e,"SendTransactionError",(function(){return li})),n.d(e,"SolanaJSONRPCError",(function(){return di})),n.d(e,"SolanaJSONRPCErrorCode",(function(){return hi})),n.d(e,"StakeAuthorizationLayout",(function(){return ds})),n.d(e,"StakeInstruction",(function(){return ls})),n.d(e,"StakeProgram",(function(){return fs})),n.d(e,"Struct",(function(){return Qn})),n.d(e,"SystemInstruction",(function(){return qr})),n.d(e,"SystemProgram",(function(){return Kr})),n.d(e,"Transaction",(function(){return Ar})),n.d(e,"TransactionExpiredBlockheightExceededError",(function(){return bi})),n.d(e,"TransactionExpiredTimeoutError",(function(){return vi})),n.d(e,"TransactionInstruction",(function(){return Sr})),n.d(e,"TransactionStatus",(function(){return wr})),n.d(e,"VALIDATOR_INFO_KEY",(function(){return Ms})),n.d(e,"VOTE_PROGRAM_ID",(function(){return ks})),n.d(e,"ValidatorInfo",(function(){return As})),n.d(e,"VoteAccount",(function(){return Ls})),n.d(e,"VoteAuthorizationLayout",(function(){return Ns})),n.d(e,"VoteInit",(function(){return xs})),n.d(e,"VoteInstruction",(function(){return Is})),n.d(e,"VoteProgram",(function(){return Ps})),n.d(e,"clusterApiUrl",(function(){return Ys})),n.d(e,"sendAndConfirmRawTransaction",(function(){return Cs})),n.d(e,"sendAndConfirmTransaction",(function(){return Nr}));var r=n("9511"),i=n.n(r),o=n("b639"),s=n("399f"),a=n.n(s),u=n("8ab6"),c=n.n(u),l=n("fa13"),h=n("8df2"),d=n("9ea2");class f extends TypeError{constructor(t,e){let n;const{message:r,...i}=t,{path:o}=t,s=0===o.length?r:"At path: "+o.join(".")+" -- "+r;super(s),Object.assign(this,i),this.name=this.constructor.name,this.failures=()=>{var r;return null!=(r=n)?r:n=[t,...e()]}}}function p(t){return m(t)&&"function"===typeof t[Symbol.iterator]}function m(t){return"object"===typeof t&&null!=t}function g(t){return"string"===typeof t?JSON.stringify(t):""+t}function y(t){const{done:e,value:n}=t.next();return e?void 0:n}function b(t,e,n,r){if(!0===t)return;!1===t?t={}:"string"===typeof t&&(t={message:t});const{path:i,branch:o}=e,{type:s}=n,{refinement:a,message:u="Expected a value of type `"+s+"`"+(a?" with refinement `"+a+"`":"")+", but received: `"+g(r)+"`"}=t;return{value:r,type:s,refinement:a,key:i[i.length-1],path:i,branch:o,...t,message:u}}function*v(t,e,n,r){p(t)||(t=[t]);for(const i of t){const t=b(i,e,n,r);t&&(yield t)}}function*_(t,e,n={}){const{path:r=[],branch:i=[t],coerce:o=!1,mask:s=!1}=n,a={path:r,branch:i};if(o&&(t=e.coercer(t,a),s&&"type"!==e.type&&m(e.schema)&&m(t)&&!Array.isArray(t)))for(const c in t)void 0===e.schema[c]&&delete t[c];let u=!0;for(const c of e.validator(t,a))u=!1,yield[c,void 0];for(let[c,l,h]of e.entries(t,a)){const e=_(l,h,{path:void 0===c?r:[...r,c],branch:void 0===c?i:[...i,l],coerce:o,mask:s});for(const n of e)n[0]?(u=!1,yield[n[0],void 0]):o&&(l=n[1],void 0===c?t=l:t instanceof Map?t.set(c,l):t instanceof Set?t.add(l):m(t)&&(t[c]=l))}if(u)for(const c of e.refiner(t,a))u=!1,yield[c,void 0];u&&(yield[void 0,t])}class w{constructor(t){const{type:e,schema:n,validator:r,refiner:i,coercer:o=(t=>t),entries:s=function*(){}}=t;this.type=e,this.schema=n,this.entries=s,this.coercer=o,this.validator=r?(t,e)=>{const n=r(t,e);return v(n,e,this,t)}:()=>[],this.refiner=i?(t,e)=>{const n=i(t,e);return v(n,e,this,t)}:()=>[]}assert(t){return M(t,this)}create(t){return S(t,this)}is(t){return k(t,this)}mask(t){return A(t,this)}validate(t,e={}){return E(t,this,e)}}function M(t,e){const n=E(t,e);if(n[0])throw n[0]}function S(t,e){const n=E(t,e,{coerce:!0});if(n[0])throw n[0];return n[1]}function A(t,e){const n=E(t,e,{coerce:!0,mask:!0});if(n[0])throw n[0];return n[1]}function k(t,e){const n=E(t,e);return!n[0]}function E(t,e,n={}){const r=_(t,e,n),i=y(r);if(i[0]){const t=new f(i[0],(function*(){for(const t of r)t[0]&&(yield t[0])}));return[t,void 0]}{const t=i[1];return[void 0,t]}}function L(t,e){return new w({type:t,schema:null,validator:e})}function D(){return L("any",()=>!0)}function T(t){return new w({type:"array",schema:t,*entries(e){if(t&&Array.isArray(e))for(const[n,r]of e.entries())yield[n,r,t]},coercer(t){return Array.isArray(t)?t.slice():t},validator(t){return Array.isArray(t)||"Expected an array value, but received: "+g(t)}})}function O(){return L("boolean",t=>"boolean"===typeof t)}function x(t){return L("instance",e=>e instanceof t||"Expected a `"+t.name+"` instance, but received: "+g(e))}function I(t){const e=g(t),n=typeof t;return new w({type:"literal",schema:"string"===n||"number"===n||"boolean"===n?t:null,validator(n){return n===t||"Expected the literal `"+e+"`, but received: "+g(n)}})}function j(){return L("never",()=>!1)}function N(t){return new w({...t,validator:(e,n)=>null===e||t.validator(e,n),refiner:(e,n)=>null===e||t.refiner(e,n)})}function P(){return L("number",t=>"number"===typeof t&&!isNaN(t)||"Expected a number, but received: "+g(t))}function C(t){return new w({...t,validator:(e,n)=>void 0===e||t.validator(e,n),refiner:(e,n)=>void 0===e||t.refiner(e,n)})}function R(t,e){return new w({type:"record",schema:null,*entries(n){if(m(n))for(const r in n){const i=n[r];yield[r,r,t],yield[r,i,e]}},validator(t){return m(t)||"Expected an object, but received: "+g(t)}})}function Y(){return L("string",t=>"string"===typeof t||"Expected a string, but received: "+g(t))}function B(t){const e=j();return new w({type:"tuple",schema:null,*entries(n){if(Array.isArray(n)){const r=Math.max(t.length,n.length);for(let i=0;it.type).join(" | ");return new w({type:"union",schema:null,validator(n,r){const i=[];for(const e of t){const[...t]=_(n,e,r),[o]=t;if(!o[0])return[];for(const[e]of t)e&&i.push(e)}return["Expected the value to satisfy a union of `"+e+"`, but received: "+g(n),...i]}})}function W(){return L("unknown",()=>!0)}function H(t,e,n){return new w({...t,coercer:(r,i)=>k(r,e)?t.coercer(n(r,i),i):t.coercer(r,i)})}var F=n("3f10"),q=n("502a"),V=n.n(q),K=n("2330"),G=n.n(K),Q=n("1c55"),Z=n.n(Q);const J=t=>o["Buffer"].isBuffer(t)?t:t instanceof Uint8Array?o["Buffer"].from(t.buffer,t.byteOffset,t.byteLength):o["Buffer"].from(t);var $={},X={},tt=et;function et(t,e){if(!t)throw new Error(e||"Assertion failed")}et.equal=function(t,e,n){if(t!=e)throw new Error(n||"Assertion failed: "+t+" != "+e)};var nt={exports:{}};"function"===typeof Object.create?nt.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:nt.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}};var rt=tt,it=nt.exports;function ot(t,e){return 55296===(64512&t.charCodeAt(e))&&(!(e<0||e+1>=t.length)&&56320===(64512&t.charCodeAt(e+1)))}function st(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"===typeof t)if(e){if("hex"===e)for(t=t.replace(/[^a-z0-9]+/gi,""),t.length%2!==0&&(t="0"+t),i=0;i>6|192,n[r++]=63&o|128):ot(t,i)?(o=65536+((1023&o)<<10)+(1023&t.charCodeAt(++i)),n[r++]=o>>18|240,n[r++]=o>>12&63|128,n[r++]=o>>6&63|128,n[r++]=63&o|128):(n[r++]=o>>12|224,n[r++]=o>>6&63|128,n[r++]=63&o|128)}else for(i=0;i>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24;return e>>>0}function ct(t,e){for(var n="",r=0;r>>0}return o}function ft(t,e){for(var n=new Array(4*t.length),r=0,i=0;r>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n}function pt(t,e){return t>>>e|t<<32-e}function mt(t,e){return t<>>32-e}function gt(t,e){return t+e>>>0}function yt(t,e,n){return t+e+n>>>0}function bt(t,e,n,r){return t+e+n+r>>>0}function vt(t,e,n,r,i){return t+e+n+r+i>>>0}function _t(t,e,n,r){var i=t[e],o=t[e+1],s=r+o>>>0,a=(s>>0,t[e+1]=s}function wt(t,e,n,r){var i=e+r>>>0,o=(i>>0}function Mt(t,e,n,r){var i=e+r;return i>>>0}function St(t,e,n,r,i,o,s,a){var u=0,c=e;c=c+r>>>0,u+=c>>0,u+=c>>0,u+=c>>0}function At(t,e,n,r,i,o,s,a){var u=e+r+o+a;return u>>>0}function kt(t,e,n,r,i,o,s,a,u,c){var l=0,h=e;h=h+r>>>0,l+=h>>0,l+=h>>0,l+=h>>0,l+=h>>0}function Et(t,e,n,r,i,o,s,a,u,c){var l=e+r+o+a+c;return l>>>0}function Lt(t,e,n){var r=e<<32-n|t>>>n;return r>>>0}function Dt(t,e,n){var r=t<<32-n|e>>>n;return r>>>0}function Tt(t,e,n){return t>>>n}function Ot(t,e,n){var r=t<<32-n|e>>>n;return r>>>0}X.inherits=it,X.toArray=st,X.toHex=at,X.htonl=ut,X.toHex32=ct,X.zero2=lt,X.zero8=ht,X.join32=dt,X.split32=ft,X.rotr32=pt,X.rotl32=mt,X.sum32=gt,X.sum32_3=yt,X.sum32_4=bt,X.sum32_5=vt,X.sum64=_t,X.sum64_hi=wt,X.sum64_lo=Mt,X.sum64_4_hi=St,X.sum64_4_lo=At,X.sum64_5_hi=kt,X.sum64_5_lo=Et,X.rotr64_hi=Lt,X.rotr64_lo=Dt,X.shr64_hi=Tt,X.shr64_lo=Ot;var xt={},It=X,jt=tt;function Nt(){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}xt.BlockHash=Nt,Nt.prototype.update=function(t,e){if(t=It.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){t=this.pending;var n=t.length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=It.join32(t,0,t.length-n,this.endian);for(var r=0;r>>24&255,r[i++]=t>>>16&255,r[i++]=t>>>8&255,r[i++]=255&t}else for(r[i++]=255&t,r[i++]=t>>>8&255,r[i++]=t>>>16&255,r[i++]=t>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o>>3}function Vt(t){return Yt(t,17)^Yt(t,19)^t>>>10}Ct.ft_1=Bt,Ct.ch32=zt,Ct.maj32=Ut,Ct.p32=Wt,Ct.s0_256=Ht,Ct.s1_256=Ft,Ct.g0_256=qt,Ct.g1_256=Vt;var Kt=X,Gt=xt,Qt=Ct,Zt=Kt.rotl32,Jt=Kt.sum32,$t=Kt.sum32_5,Xt=Qt.ft_1,te=Gt.BlockHash,ee=[1518500249,1859775393,2400959708,3395469782];function ne(){if(!(this instanceof ne))return new ne;te.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}Kt.inherits(ne,te);var re=ne;ne.blockSize=512,ne.outSize=160,ne.hmacStrength=80,ne.padLength=64,ne.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;rthis.blockSize&&(t=(new this.Hash).update(t).digest()),Sn(t.length<=this.blockSize);for(var e=t.length;e{try{if("test"!=="test".normalize(e))throw new Error("bad normalize")}catch(n){t.push(e)}}),t.length)throw new Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}const Nn=jn();var Pn,Cn;(function(t){t["DEBUG"]="DEBUG",t["INFO"]="INFO",t["WARNING"]="WARNING",t["ERROR"]="ERROR",t["OFF"]="OFF"})(Pn||(Pn={})),function(t){t["UNKNOWN_ERROR"]="UNKNOWN_ERROR",t["NOT_IMPLEMENTED"]="NOT_IMPLEMENTED",t["UNSUPPORTED_OPERATION"]="UNSUPPORTED_OPERATION",t["NETWORK_ERROR"]="NETWORK_ERROR",t["SERVER_ERROR"]="SERVER_ERROR",t["TIMEOUT"]="TIMEOUT",t["BUFFER_OVERRUN"]="BUFFER_OVERRUN",t["NUMERIC_FAULT"]="NUMERIC_FAULT",t["MISSING_NEW"]="MISSING_NEW",t["INVALID_ARGUMENT"]="INVALID_ARGUMENT",t["MISSING_ARGUMENT"]="MISSING_ARGUMENT",t["UNEXPECTED_ARGUMENT"]="UNEXPECTED_ARGUMENT",t["CALL_EXCEPTION"]="CALL_EXCEPTION",t["INSUFFICIENT_FUNDS"]="INSUFFICIENT_FUNDS",t["NONCE_EXPIRED"]="NONCE_EXPIRED",t["REPLACEMENT_UNDERPRICED"]="REPLACEMENT_UNDERPRICED",t["UNPREDICTABLE_GAS_LIMIT"]="UNPREDICTABLE_GAS_LIMIT",t["TRANSACTION_REPLACED"]="TRANSACTION_REPLACED"}(Cn||(Cn={}));const Rn="0123456789abcdef";class Yn{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){const n=t.toLowerCase();null==On[n]&&this.throwArgumentError("invalid log level name","logLevel",t),xn>On[n]||console.log.apply(console,e)}debug(...t){this._log(Yn.levels.DEBUG,t)}info(...t){this._log(Yn.levels.INFO,t)}warn(...t){this._log(Yn.levels.WARNING,t)}makeError(t,e,n){if(Tn)return this.makeError("censored error",e,{});e||(e=Yn.errors.UNKNOWN_ERROR),n||(n={});const r=[];Object.keys(n).forEach(t=>{const e=n[t];try{if(e instanceof Uint8Array){let n="";for(let t=0;t>4],n+=Rn[15&e[t]];r.push(t+"=Uint8Array(0x"+n+")")}else r.push(t+"="+JSON.stringify(e))}catch(s){r.push(t+"="+JSON.stringify(n[t].toString()))}}),r.push("code="+e),r.push("version="+this.version);const i=t;let o="";switch(e){case Cn.NUMERIC_FAULT:{o="NUMERIC_FAULT";const e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":o+="-"+e;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result";break}break}case Cn.CALL_EXCEPTION:case Cn.INSUFFICIENT_FUNDS:case Cn.MISSING_NEW:case Cn.NONCE_EXPIRED:case Cn.REPLACEMENT_UNDERPRICED:case Cn.TRANSACTION_REPLACED:case Cn.UNPREDICTABLE_GAS_LIMIT:o=e;break}o&&(t+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),r.length&&(t+=" ("+r.join(", ")+")");const s=new Error(t);return s.reason=i,s.code=e,Object.keys(n).forEach((function(t){s[t]=n[t]})),s}throwError(t,e,n){throw this.makeError(t,e,n)}throwArgumentError(t,e,n){return this.throwError(t,Yn.errors.INVALID_ARGUMENT,{argument:e,value:n})}assert(t,e,n,r){t||this.throwError(e,n,r)}assertArgument(t,e,n,r){t||this.throwArgumentError(e,n,r)}checkNormalize(t){Nn&&this.throwError("platform missing String.prototype.normalize",Yn.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:Nn})}checkSafeUint53(t,e){"number"===typeof t&&(null==e&&(e="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(e,Yn.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(e,Yn.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,e,n){n=n?": "+n:"",te&&this.throwError("too many arguments"+n,Yn.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e})}checkNew(t,e){t!==Object&&null!=t||this.throwError("missing new",Yn.errors.MISSING_NEW,{name:e.name})}checkAbstract(t,e){t===e?this.throwError("cannot instantiate abstract class "+JSON.stringify(e.name)+" directly; use a sub-class",Yn.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):t!==Object&&null!=t||this.throwError("missing new",Yn.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return In||(In=new Yn(Ln)),In}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",Yn.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),Dn){if(!t)return;this.globalLogger().throwError("error censorship permanent",Yn.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}Tn=!!t,Dn=!!e}static setLogLevel(t){const e=On[t.toLowerCase()];null!=e?xn=e:Yn.globalLogger().warn("invalid log level - "+t)}static from(t){return new Yn(t)}}Yn.errors=Cn,Yn.levels=Pn;const Bn="bytes/5.6.0",zn=new Yn(Bn);function Un(t){return!!t.toHexString}function Wn(t){return t.slice||(t.slice=function(){const e=Array.prototype.slice.call(arguments);return Wn(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function Hn(t){return"number"===typeof t&&t==t&&t%1===0}function Fn(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"===typeof t)return!1;if(!Hn(t.length)||t.length<0)return!1;for(let e=0;e=256)return!1}return!0}function qn(t,e){if(e||(e={}),"number"===typeof t){zn.checkSafeUint53(t,"invalid arrayify value");const e=[];while(t)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),Wn(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"===typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),Un(t)&&(t=t.toHexString()),Vn(t)){let n=t.substring(2);n.length%2&&("left"===e.hexPad?n="0x0"+n.substring(2):"right"===e.hexPad?n+="0":zn.throwArgumentError("hex data is odd-length","value",t));const r=[];for(let t=0;t{this.enum=t})}}const Jn=new Map,$n=32;function Xn(t){return void 0!==t._bn}class tr extends Qn{constructor(t){if(super({}),this._bn=void 0,Xn(t))this._bn=t._bn;else{if("string"===typeof t){const e=c.a.decode(t);if(32!=e.length)throw new Error("Invalid public key input");this._bn=new a.a(e)}else this._bn=new a.a(t);if(this._bn.byteLength()>32)throw new Error("Invalid public key input")}}equals(t){return this._bn.eq(t._bn)}toBase58(){return c.a.encode(this.toBytes())}toJSON(){return this.toBase58()}toBytes(){return this.toBuffer()}toBuffer(){const t=this._bn.toArrayLike(o["Buffer"]);if(32===t.length)return t;const e=o["Buffer"].alloc(32);return t.copy(e,32-t.length),e}toString(){return this.toBase58()}static async createWithSeed(t,e,n){const r=o["Buffer"].concat([t.toBuffer(),o["Buffer"].from(e),n.toBuffer()]),i=Gn(new Uint8Array(r)).slice(2);return new tr(o["Buffer"].from(i,"hex"))}static createProgramAddressSync(t,e){let n=o["Buffer"].alloc(0);t.forEach((function(t){if(t.length>$n)throw new TypeError("Max seed length exceeded");n=o["Buffer"].concat([n,J(t)])})),n=o["Buffer"].concat([n,e.toBuffer(),o["Buffer"].from("ProgramDerivedAddress")]);let r=Gn(new Uint8Array(n)).slice(2),i=new a.a(r,16).toArray(void 0,32);if(nr(i))throw new Error("Invalid seeds, address must fall off the curve");return new tr(i)}static async createProgramAddress(t,e){return this.createProgramAddressSync(t,e)}static findProgramAddressSync(t,e){let n,r=255;while(0!=r){try{const i=t.concat(o["Buffer"].from([r]));n=this.createProgramAddressSync(i,e)}catch(i){if(i instanceof TypeError)throw i;r--;continue}return[n,r]}throw new Error("Unable to find a viable program address nonce")}static async findProgramAddress(t,e){return this.findProgramAddressSync(t,e)}static isOnCurve(t){const e=new tr(t);return 1==nr(e.toBytes())}}tr.default=new tr("11111111111111111111111111111111"),Jn.set(tr,{kind:"struct",fields:[["_bn","u256"]]});let er=i.a.lowlevel;function nr(t){var e=[er.gf(),er.gf(),er.gf(),er.gf()],n=er.gf(),r=er.gf(),i=er.gf(),o=er.gf(),s=er.gf(),a=er.gf(),u=er.gf();return er.set25519(e[2],rr),er.unpack25519(e[1],t),er.S(i,e[1]),er.M(o,i,er.D),er.Z(i,i,e[2]),er.A(o,e[2],o),er.S(s,o),er.S(a,s),er.M(u,a,s),er.M(n,u,i),er.M(n,n,o),er.pow2523(n,n),er.M(n,n,i),er.M(n,n,o),er.M(n,n,o),er.M(e[0],n,o),er.S(r,e[0]),er.M(r,r,o),or(r,i)&&er.M(e[0],e[0],ir),er.S(r,e[0]),er.M(r,r,o),or(r,i)?0:1}let rr=er.gf([1]),ir=er.gf([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function or(t,e){var n=new Uint8Array(32),r=new Uint8Array(32);return er.pack25519(n,t),er.pack25519(r,e),er.crypto_verify_32(n,0,r,0)}class sr{constructor(t){this._keypair=void 0,this._keypair=t?i.a.sign.keyPair.fromSecretKey(J(t)):i.a.sign.keyPair()}get publicKey(){return new tr(this._keypair.publicKey)}get secretKey(){return J(this._keypair.secretKey)}}const ar=new tr("BPFLoader1111111111111111111111111111111111"),ur=1232,cr=64,lr=(t="publicKey")=>h["blob"](32,t),hr=(t="string")=>{const e=h["struct"]([h["u32"]("length"),h["u32"]("lengthPadding"),h["blob"](h["offset"](h["u32"](),-8),"chars")],t),n=e.decode.bind(e),r=e.encode.bind(e),i=e;return i.decode=(t,e)=>{const r=n(t,e);return r["chars"].toString()},i.encode=(t,e,n)=>{const i={chars:o["Buffer"].from(t,"utf8")};return r(i,e,n)},i.alloc=t=>h["u32"]().span+h["u32"]().span+o["Buffer"].from(t,"utf8").length,i},dr=(t="authorized")=>h["struct"]([lr("staker"),lr("withdrawer")],t),fr=(t="lockup")=>h["struct"]([h["ns64"]("unixTimestamp"),h["ns64"]("epoch"),lr("custodian")],t),pr=(t="voteInit")=>h["struct"]([lr("nodePubkey"),lr("authorizedVoter"),lr("authorizedWithdrawer"),h["u8"]("commission")],t);function mr(t,e){let n=0;return t.layout.fields.forEach(t=>{t.span>=0?n+=t.span:"function"===typeof t.alloc&&(n+=t.alloc(e[t.property]))}),n}function gr(t){let e=0,n=0;for(;;){let r=t.shift();if(e|=(127&r)<<7*n,n+=1,0===(128&r))break}return e}function yr(t,e){let n=e;for(;;){let e=127&n;if(n>>=7,0==n){t.push(e);break}e|=128,t.push(e)}}const br=32;class vr{constructor(t){this.header=void 0,this.accountKeys=void 0,this.recentBlockhash=void 0,this.instructions=void 0,this.indexToProgramIds=new Map,this.header=t.header,this.accountKeys=t.accountKeys.map(t=>new tr(t)),this.recentBlockhash=t.recentBlockhash,this.instructions=t.instructions,this.instructions.forEach(t=>this.indexToProgramIds.set(t.programIdIndex,this.accountKeys[t.programIdIndex]))}isAccountSigner(t){return t=this.header.numRequiredSignatures&&t!this.isProgramId(e))}serialize(){const t=this.accountKeys.length;let e=[];yr(e,t);const n=this.instructions.map(t=>{const{accounts:e,programIdIndex:n}=t,r=Array.from(c.a.decode(t.data));let i=[];yr(i,e.length);let s=[];return yr(s,r.length),{programIdIndex:n,keyIndicesCount:o["Buffer"].from(i),keyIndices:e,dataLength:o["Buffer"].from(s),data:r}});let r=[];yr(r,n.length);let i=o["Buffer"].alloc(ur);o["Buffer"].from(r).copy(i);let s=r.length;n.forEach(t=>{const e=h["struct"]([h["u8"]("programIdIndex"),h["blob"](t.keyIndicesCount.length,"keyIndicesCount"),h["seq"](h["u8"]("keyIndex"),t.keyIndices.length,"keyIndices"),h["blob"](t.dataLength.length,"dataLength"),h["seq"](h["u8"]("userdatum"),t.data.length,"data")]),n=e.encode(t,i,s);s+=n}),i=i.slice(0,s);const a=h["struct"]([h["blob"](1,"numRequiredSignatures"),h["blob"](1,"numReadonlySignedAccounts"),h["blob"](1,"numReadonlyUnsignedAccounts"),h["blob"](e.length,"keyCount"),h["seq"](lr("key"),t,"keys"),lr("recentBlockhash")]),u={numRequiredSignatures:o["Buffer"].from([this.header.numRequiredSignatures]),numReadonlySignedAccounts:o["Buffer"].from([this.header.numReadonlySignedAccounts]),numReadonlyUnsignedAccounts:o["Buffer"].from([this.header.numReadonlyUnsignedAccounts]),keyCount:o["Buffer"].from(e),keys:this.accountKeys.map(t=>J(t.toBytes())),recentBlockhash:c.a.decode(this.recentBlockhash)};let l=o["Buffer"].alloc(2048);const d=a.encode(u,l);return i.copy(l,d),l.slice(0,d+i.length)}static from(t){let e=[...t];const n=e.shift(),r=e.shift(),i=e.shift(),s=gr(e);let a=[];for(let f=0;f({pubkey:t.toJSON(),isSigner:e,isWritable:n})),programId:this.programId.toJSON(),data:[...this.data]}}}class Ar{get signature(){return this.signatures.length>0?this.signatures[0].signature:null}constructor(t){if(this.signatures=[],this.feePayer=void 0,this.instructions=[],this.recentBlockhash=void 0,this.lastValidBlockHeight=void 0,this.nonceInfo=void 0,this._message=void 0,this._json=void 0,t)if(t.feePayer&&(this.feePayer=t.feePayer),t.signatures&&(this.signatures=t.signatures),Object.prototype.hasOwnProperty.call(t,"lastValidBlockHeight")){const{blockhash:e,lastValidBlockHeight:n}=t;this.recentBlockhash=e,this.lastValidBlockHeight=n}else{const{recentBlockhash:e,nonceInfo:n}=t;n&&(this.nonceInfo=n),this.recentBlockhash=e}}toJSON(){return{recentBlockhash:this.recentBlockhash||null,feePayer:this.feePayer?this.feePayer.toJSON():null,nonceInfo:this.nonceInfo?{nonce:this.nonceInfo.nonce,nonceInstruction:this.nonceInfo.nonceInstruction.toJSON()}:null,instructions:this.instructions.map(t=>t.toJSON()),signers:this.signatures.map(({publicKey:t})=>t.toJSON())}}add(...t){if(0===t.length)throw new Error("No instructions");return t.forEach(t=>{"instructions"in t?this.instructions=this.instructions.concat(t.instructions):"data"in t&&"programId"in t&&"keys"in t?this.instructions.push(t):this.instructions.push(new Sr(t))}),this}compileMessage(){if(this._message&&JSON.stringify(this.toJSON())===JSON.stringify(this._json))return this._message;let t,e,n;if(this.nonceInfo?(t=this.nonceInfo.nonce,e=this.instructions[0]!=this.nonceInfo.nonceInstruction?[this.nonceInfo.nonceInstruction,...this.instructions]:this.instructions):(t=this.recentBlockhash,e=this.instructions),!t)throw new Error("Transaction recentBlockhash required");if(e.length<1&&console.warn("No instructions provided"),this.feePayer)n=this.feePayer;else{if(!(this.signatures.length>0&&this.signatures[0].publicKey))throw new Error("Transaction fee payer required");n=this.signatures[0].publicKey}for(let c=0;c{t.keys.forEach(t=>{i.push({...t})});const e=t.programId.toString();r.includes(e)||r.push(e)}),r.forEach(t=>{i.push({pubkey:new tr(t),isSigner:!1,isWritable:!1})});const o=[];i.forEach(t=>{const e=t.pubkey.toString(),n=o.findIndex(t=>t.pubkey.toString()===e);n>-1?(o[n].isWritable=o[n].isWritable||t.isWritable,o[n].isSigner=o[n].isSigner||t.isSigner):o.push(t)}),o.sort((function(t,e){return t.isSigner!==e.isSigner?t.isSigner?-1:1:t.isWritable!==e.isWritable?t.isWritable?-1:1:t.pubkey.toBase58().localeCompare(e.pubkey.toBase58())}));const s=o.findIndex(t=>t.pubkey.equals(n));if(s>-1){const[t]=o.splice(s,1);t.isSigner=!0,t.isWritable=!0,o.unshift(t)}else o.unshift({pubkey:n,isSigner:!0,isWritable:!0});for(const c of this.signatures){const t=o.findIndex(t=>t.pubkey.equals(c.publicKey));if(!(t>-1))throw new Error("unknown signer: "+c.publicKey.toString());o[t].isSigner||(o[t].isSigner=!0,console.warn("Transaction references a signature that is unnecessary, only the fee payer and instruction signer accounts should sign a transaction. This behavior is deprecated and will throw an error in the next major version release."))}let a=0,u=0,l=0;const h=[],d=[];o.forEach(({pubkey:t,isSigner:e,isWritable:n})=>{e?(h.push(t.toString()),a+=1,n||(u+=1)):(d.push(t.toString()),n||(l+=1))});const f=h.concat(d),p=e.map(t=>{const{data:e,programId:n}=t;return{programIdIndex:f.indexOf(n.toString()),accounts:t.keys.map(t=>f.indexOf(t.pubkey.toString())),data:c.a.encode(e)}});return p.forEach(t=>{_r(t.programIdIndex>=0),t.accounts.forEach(t=>_r(t>=0))}),new vr({header:{numRequiredSignatures:a,numReadonlySignedAccounts:u,numReadonlyUnsignedAccounts:l},accountKeys:f,recentBlockhash:t,instructions:p})}_compile(){const t=this.compileMessage(),e=t.accountKeys.slice(0,t.header.numRequiredSignatures);if(this.signatures.length===e.length){const n=this.signatures.every((t,n)=>e[n].equals(t.publicKey));if(n)return t}return this.signatures=e.map(t=>({signature:null,publicKey:t})),t}serializeMessage(){return this._compile().serialize()}async getEstimatedFee(t){return(await t.getFeeForMessage(this.compileMessage())).value}setSigners(...t){if(0===t.length)throw new Error("No signers");const e=new Set;this.signatures=t.filter(t=>{const n=t.toString();return!e.has(n)&&(e.add(n),!0)}).map(t=>({signature:null,publicKey:t}))}sign(...t){if(0===t.length)throw new Error("No signers");const e=new Set,n=[];for(const i of t){const t=i.publicKey.toString();e.has(t)||(e.add(t),n.push(i))}this.signatures=n.map(t=>({signature:null,publicKey:t.publicKey}));const r=this._compile();this._partialSign(r,...n)}partialSign(...t){if(0===t.length)throw new Error("No signers");const e=new Set,n=[];for(const i of t){const t=i.publicKey.toString();e.has(t)||(e.add(t),n.push(i))}const r=this._compile();this._partialSign(r,...n)}_partialSign(t,...e){const n=t.serialize();e.forEach(t=>{const e=i.a.sign.detached(n,t.secretKey);this._addSignature(t.publicKey,J(e))})}addSignature(t,e){this._compile(),this._addSignature(t,e)}_addSignature(t,e){_r(64===e.length);const n=this.signatures.findIndex(e=>t.equals(e.publicKey));if(n<0)throw new Error("unknown signer: "+t.toString());this.signatures[n].signature=o["Buffer"].from(e)}verifySignatures(){return this._verifySignatures(this.serializeMessage(),!0)}_verifySignatures(t,e){for(const{signature:n,publicKey:r}of this.signatures)if(null===n){if(e)return!1}else if(!i.a.sign.detached.verify(t,n,r.toBuffer()))return!1;return!0}serialize(t){const{requireAllSignatures:e,verifySignatures:n}=Object.assign({requireAllSignatures:!0,verifySignatures:!0},t),r=this.serializeMessage();if(n&&!this._verifySignatures(r,e))throw new Error("Signature verification failed");return this._serialize(r)}_serialize(t){const{signatures:e}=this,n=[];yr(n,e.length);const r=n.length+64*e.length+t.length,i=o["Buffer"].alloc(r);return _r(e.length<256),o["Buffer"].from(n).copy(i,0),e.forEach(({signature:t},e)=>{null!==t&&(_r(64===t.length,"signature has invalid length"),o["Buffer"].from(t).copy(i,n.length+64*e))}),t.copy(i,n.length+64*e.length),_r(i.length<=ur,`Transaction too large: ${i.length} > ${ur}`),i}get keys(){return _r(1===this.instructions.length),this.instructions[0].keys.map(t=>t.pubkey)}get programId(){return _r(1===this.instructions.length),this.instructions[0].programId}get data(){return _r(1===this.instructions.length),this.instructions[0].data}static from(t){let e=[...t];const n=gr(e);let r=[];for(let i=0;i0&&(n.feePayer=t.accountKeys[0]),e.forEach((e,r)=>{const i={signature:e==c.a.encode(Mr)?null:c.a.decode(e),publicKey:t.accountKeys[r]};n.signatures.push(i)}),t.instructions.forEach(e=>{const r=e.accounts.map(e=>{const r=t.accountKeys[e];return{pubkey:r,isSigner:n.signatures.some(t=>t.publicKey.toString()===r.toString())||t.isAccountSigner(e),isWritable:t.isAccountWritable(e)}});n.instructions.push(new Sr({keys:r,programId:t.accountKeys[e.programIdIndex],data:c.a.decode(e.data)}))}),n._message=t,n._json=n.toJSON(),n}}const kr=new tr("SysvarC1ock11111111111111111111111111111111"),Er=new tr("SysvarEpochSchedu1e111111111111111111111111"),Lr=new tr("Sysvar1nstructions1111111111111111111111111"),Dr=new tr("SysvarRecentB1ockHashes11111111111111111111"),Tr=new tr("SysvarRent111111111111111111111111111111111"),Or=new tr("SysvarRewards111111111111111111111111111111"),xr=new tr("SysvarS1otHashes111111111111111111111111111"),Ir=new tr("SysvarS1otHistory11111111111111111111111111"),jr=new tr("SysvarStakeHistory1111111111111111111111111");async function Nr(t,e,n,r){const i=r&&{skipPreflight:r.skipPreflight,preflightCommitment:r.preflightCommitment||r.commitment,maxRetries:r.maxRetries,minContextSlot:r.minContextSlot},o=await t.sendTransaction(e,n,i),s=null!=e.recentBlockhash&&null!=e.lastValidBlockHeight?(await t.confirmTransaction({signature:o,blockhash:e.recentBlockhash,lastValidBlockHeight:e.lastValidBlockHeight},r&&r.commitment)).value:(await t.confirmTransaction(o,r&&r.commitment)).value;if(s.err)throw new Error(`Transaction ${o} failed (${JSON.stringify(s)})`);return o}function Pr(t){return new Promise(e=>setTimeout(e,t))}function Cr(t,e){const n=t.layout.span>=0?t.layout.span:mr(t,e),r=o["Buffer"].alloc(n),i=Object.assign({instruction:t.index},e);return t.layout.encode(i,r),r}function Rr(t,e){let n;try{n=t.layout.decode(e)}catch(r){throw new Error("invalid instruction; "+r)}if(n.instruction!==t.index)throw new Error(`invalid instruction; instruction index mismatch ${n.instruction} != ${t.index}`);return n}const Yr=h["nu64"]("lamportsPerSignature"),Br=h["struct"]([h["u32"]("version"),h["u32"]("state"),lr("authorizedPubkey"),lr("nonce"),h["struct"]([Yr],"feeCalculator")]),zr=Br.span;class Ur{constructor(t){this.authorizedPubkey=void 0,this.nonce=void 0,this.feeCalculator=void 0,this.authorizedPubkey=t.authorizedPubkey,this.nonce=t.nonce,this.feeCalculator=t.feeCalculator}static fromAccountData(t){const e=Br.decode(J(t),0);return new Ur({authorizedPubkey:new tr(e.authorizedPubkey),nonce:new tr(e.nonce).toString(),feeCalculator:e.feeCalculator})}}const Wr=t=>{const e=t.decode.bind(t),n=t.encode.bind(t);return{decode:e,encode:n}},Hr=t=>e=>{const n=Object(h["blob"])(t,e),{encode:r,decode:i}=Wr(n),s=n;return s.decode=(t,e)=>{const n=i(t,e);return Object(d["toBigIntLE"])(o["Buffer"].from(n))},s.encode=(e,n,i)=>{const o=Object(d["toBufferLE"])(e,t);return r(o,n,i)},s},Fr=Hr(8);class qr{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const e=h["u32"]("instruction"),n=e.decode(t.data);let r;for(const[i,o]of Object.entries(Vr))if(o.index==n){r=i;break}if(!r)throw new Error("Instruction type incorrect; not a SystemInstruction");return r}static decodeCreateAccount(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{lamports:e,space:n,programId:r}=Rr(Vr.Create,t.data);return{fromPubkey:t.keys[0].pubkey,newAccountPubkey:t.keys[1].pubkey,lamports:e,space:n,programId:new tr(r)}}static decodeTransfer(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{lamports:e}=Rr(Vr.Transfer,t.data);return{fromPubkey:t.keys[0].pubkey,toPubkey:t.keys[1].pubkey,lamports:e}}static decodeTransferWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{lamports:e,seed:n,programId:r}=Rr(Vr.TransferWithSeed,t.data);return{fromPubkey:t.keys[0].pubkey,basePubkey:t.keys[1].pubkey,toPubkey:t.keys[2].pubkey,lamports:e,seed:n,programId:new tr(r)}}static decodeAllocate(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,1);const{space:e}=Rr(Vr.Allocate,t.data);return{accountPubkey:t.keys[0].pubkey,space:e}}static decodeAllocateWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,1);const{base:e,seed:n,space:r,programId:i}=Rr(Vr.AllocateWithSeed,t.data);return{accountPubkey:t.keys[0].pubkey,basePubkey:new tr(e),seed:n,space:r,programId:new tr(i)}}static decodeAssign(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,1);const{programId:e}=Rr(Vr.Assign,t.data);return{accountPubkey:t.keys[0].pubkey,programId:new tr(e)}}static decodeAssignWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,1);const{base:e,seed:n,programId:r}=Rr(Vr.AssignWithSeed,t.data);return{accountPubkey:t.keys[0].pubkey,basePubkey:new tr(e),seed:n,programId:new tr(r)}}static decodeCreateWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{base:e,seed:n,lamports:r,space:i,programId:o}=Rr(Vr.CreateWithSeed,t.data);return{fromPubkey:t.keys[0].pubkey,newAccountPubkey:t.keys[1].pubkey,basePubkey:new tr(e),seed:n,lamports:r,space:i,programId:new tr(o)}}static decodeNonceInitialize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{authorized:e}=Rr(Vr.InitializeNonceAccount,t.data);return{noncePubkey:t.keys[0].pubkey,authorizedPubkey:new tr(e)}}static decodeNonceAdvance(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3),Rr(Vr.AdvanceNonceAccount,t.data),{noncePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey}}static decodeNonceWithdraw(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,5);const{lamports:e}=Rr(Vr.WithdrawNonceAccount,t.data);return{noncePubkey:t.keys[0].pubkey,toPubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[4].pubkey,lamports:e}}static decodeNonceAuthorize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{authorized:e}=Rr(Vr.AuthorizeNonceAccount,t.data);return{noncePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[1].pubkey,newAuthorizedPubkey:new tr(e)}}static checkProgramId(t){if(!t.equals(Kr.programId))throw new Error("invalid instruction; programId is not SystemProgram")}static checkKeyLength(t,e){if(t.length0?o:1,space:i.length,programId:r}));null!==a&&await Nr(t,a,[e,n],{commitment:"confirmed"})}const s=h["struct"]([h["u32"]("instruction"),h["u32"]("offset"),h["u32"]("bytesLength"),h["u32"]("bytesLengthPadding"),h["seq"](h["u8"]("byte"),h["offset"](h["u32"](),-8),"bytes")]),a=Qr.chunkSize;let u=0,c=i,l=[];while(c.length>0){const i=c.slice(0,a),h=o["Buffer"].alloc(a+16);s.encode({instruction:0,offset:u,bytes:i,bytesLength:0,bytesLengthPadding:0},h);const d=(new Ar).add({keys:[{pubkey:n.publicKey,isSigner:!0,isWritable:!0}],programId:r,data:h});if(l.push(Nr(t,d,[e,n],{commitment:"confirmed"})),t._rpcEndpoint.includes("solana.com")){const t=4;await Pr(1e3/t)}u+=a,c=c.slice(a)}await Promise.all(l);{const i=h["struct"]([h["u32"]("instruction")]),s=o["Buffer"].alloc(i.span);i.encode({instruction:1},s);const a=(new Ar).add({keys:[{pubkey:n.publicKey,isSigner:!0,isWritable:!0},{pubkey:Tr,isSigner:!1,isWritable:!1}],programId:r,data:s});await Nr(t,a,[e,n],{commitment:"confirmed"})}return!0}}Qr.chunkSize=Gr;const Zr=new tr("BPFLoader2111111111111111111111111111111111");class Jr{static getMinNumSignatures(t){return Qr.getMinNumSignatures(t)}static load(t,e,n,r,i){return Qr.load(t,e,n,i,r)}}class $r{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const e=h["u8"]("instruction"),n=e.decode(t.data);let r;for(const[i,o]of Object.entries(Xr))if(o.index==n){r=i;break}if(!r)throw new Error("Instruction type incorrect; not a ComputeBudgetInstruction");return r}static decodeRequestUnits(t){this.checkProgramId(t.programId);const{units:e,additionalFee:n}=Rr(Xr.RequestUnits,t.data);return{units:e,additionalFee:n}}static decodeRequestHeapFrame(t){this.checkProgramId(t.programId);const{bytes:e}=Rr(Xr.RequestHeapFrame,t.data);return{bytes:e}}static decodeSetComputeUnitLimit(t){this.checkProgramId(t.programId);const{units:e}=Rr(Xr.SetComputeUnitLimit,t.data);return{units:e}}static decodeSetComputeUnitPrice(t){this.checkProgramId(t.programId);const{microLamports:e}=Rr(Xr.SetComputeUnitPrice,t.data);return{microLamports:e}}static checkProgramId(t){if(!t.equals(ti.programId))throw new Error("invalid instruction; programId is not ComputeBudgetProgram")}}const Xr=Object.freeze({RequestUnits:{index:0,layout:h["struct"]([h["u8"]("instruction"),h["u32"]("units"),h["u32"]("additionalFee")])},RequestHeapFrame:{index:1,layout:h["struct"]([h["u8"]("instruction"),h["u32"]("bytes")])},SetComputeUnitLimit:{index:2,layout:h["struct"]([h["u8"]("instruction"),h["u32"]("units")])},SetComputeUnitPrice:{index:3,layout:h["struct"]([h["u8"]("instruction"),Fr("microLamports")])}});class ti{constructor(){}static requestUnits(t){const e=Xr.RequestUnits,n=Cr(e,t);return new Sr({keys:[],programId:this.programId,data:n})}static requestHeapFrame(t){const e=Xr.RequestHeapFrame,n=Cr(e,t);return new Sr({keys:[],programId:this.programId,data:n})}static setComputeUnitLimit(t){const e=Xr.SetComputeUnitLimit,n=Cr(e,t);return new Sr({keys:[],programId:this.programId,data:n})}static setComputeUnitPrice(t){const e=Xr.SetComputeUnitPrice,n=Cr(e,{microLamports:BigInt(t.microLamports)});return new Sr({keys:[],programId:this.programId,data:n})}}ti.programId=new tr("ComputeBudget111111111111111111111111111111");var ei=Object.prototype.toString,ni=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};function ri(t,e){var n,r,i,o,s,a,u;if(!0===t)return"true";if(!1===t)return"false";switch(typeof t){case"object":if(null===t)return null;if(t.toJSON&&"function"===typeof t.toJSON)return ri(t.toJSON(),e);if(u=ei.call(t),"[object Array]"===u){for(i="[",r=t.length-1,n=0;n-1&&(i+=ri(t[n],!0)),i+"]"}if("[object Object]"===u){o=ni(t).sort(),r=o.length,i="",n=0;while(n1)t/=2,e++;return e}function ui(t){return 0===t?1:(t--,t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,t|=t>>32,t+1)}class ci{constructor(t,e,n,r,i){this.slotsPerEpoch=void 0,this.leaderScheduleSlotOffset=void 0,this.warmup=void 0,this.firstNormalEpoch=void 0,this.firstNormalSlot=void 0,this.slotsPerEpoch=t,this.leaderScheduleSlotOffset=e,this.warmup=n,this.firstNormalEpoch=r,this.firstNormalSlot=i}getEpoch(t){return this.getEpochAndSlotIndex(t)[0]}getEpochAndSlotIndex(t){if(tnew tr(t)),Si=B([Y(),I("base64")]),Ai=H(x(o["Buffer"]),Si,t=>o["Buffer"].from(t[0],"base64")),ki=3e4;function Ei(t){let e,n;if("string"===typeof t)e=t;else if(t){const{commitment:r,...i}=t;e=r,n=i}return{commitment:e,config:n}}function Li(t){return U([z({jsonrpc:I("2.0"),id:Y(),result:t}),z({jsonrpc:I("2.0"),id:Y(),error:z({code:W(),message:Y(),data:C(D())})})])}const Di=Li(W());function Ti(t){return H(Li(t),Di,e=>"error"in e?e:{...e,result:S(e.result,t)})}function Oi(t){return Ti(z({context:z({slot:P()}),value:t}))}function xi(t){return z({context:z({slot:P()}),value:t})}const Ii=z({foundation:P(),foundationTerm:P(),initial:P(),taper:P(),terminal:P()}),ji=Ti(T(N(z({epoch:P(),effectiveSlot:P(),amount:P(),postBalance:P()})))),Ni=z({epoch:P(),slotIndex:P(),slotsInEpoch:P(),absoluteSlot:P(),blockHeight:C(P()),transactionCount:C(P())}),Pi=z({slotsPerEpoch:P(),leaderScheduleSlotOffset:P(),warmup:O(),firstNormalEpoch:P(),firstNormalSlot:P()}),Ci=R(Y(),T(P())),Ri=N(U([z({}),Y()])),Yi=z({err:Ri}),Bi=I("receivedSignature"),zi=z({"solana-core":Y(),"feature-set":C(P())}),Ui=Oi(z({err:N(U([z({}),Y()])),logs:N(T(Y())),accounts:C(N(T(N(z({executable:O(),owner:Y(),lamports:P(),data:T(Y()),rentEpoch:C(P())}))))),unitsConsumed:C(P())})),Wi=Oi(z({byIdentity:R(Y(),T(P())),range:z({firstSlot:P(),lastSlot:P()})}));function Hi(t,e,n,r,i,o){const s=r||fi;let a;i&&(a=async(t,e)=>{const n=await new Promise((n,r)=>{try{i(t,e,(t,e)=>n([t,e]))}catch(o){r(o)}});return await s(...n)});const u=new V.a(async(e,r)=>{const i=void 0,u={method:"POST",body:e,agent:i,headers:Object.assign({"Content-Type":"application/json"},n||{},Xo)};try{let e,n=5,i=500;for(;;){if(e=a?await a(t,u):await s(t,u),429!==e.status)break;if(!0===o)break;if(n-=1,0===n)break;console.log(`Server responded with ${e.status} ${e.statusText}. Retrying after ${i}ms delay...`),await Pr(i),i*=2}const c=await e.text();e.ok?r(null,c):r(new Error(`${e.status} ${e.statusText}: ${c}`))}catch(c){c instanceof Error&&r(c)}},{});return u}function Fi(t){return(e,n)=>new Promise((r,i)=>{t.request(e,n,(t,e)=>{t?i(t):r(e)})})}function qi(t){return e=>new Promise((n,r)=>{0===e.length&&n([]);const i=e.map(e=>t.request(e.methodName,e.args));t.request(i,(t,e)=>{t?r(t):n(e)})})}const Vi=Ti(Ii),Ki=Ti(Ni),Gi=Ti(Pi),Qi=Ti(Ci),Zi=Ti(P()),Ji=Oi(z({total:P(),circulating:P(),nonCirculating:P(),nonCirculatingAccounts:T(Mi)})),$i=z({amount:Y(),uiAmount:N(P()),decimals:P(),uiAmountString:C(Y())}),Xi=Oi(T(z({address:Mi,amount:Y(),uiAmount:N(P()),decimals:P(),uiAmountString:C(Y())}))),to=Oi(T(z({pubkey:Mi,account:z({executable:O(),owner:Mi,lamports:P(),data:Ai,rentEpoch:P()})}))),eo=z({program:Y(),parsed:W(),space:P()}),no=Oi(T(z({pubkey:Mi,account:z({executable:O(),owner:Mi,lamports:P(),data:eo,rentEpoch:P()})}))),ro=Oi(T(z({lamports:P(),address:Mi}))),io=z({executable:O(),owner:Mi,lamports:P(),data:Ai,rentEpoch:P()}),oo=z({pubkey:Mi,account:io}),so=H(U([x(o["Buffer"]),eo]),U([Si,eo]),t=>Array.isArray(t)?S(t,Ai):t),ao=z({executable:O(),owner:Mi,lamports:P(),data:so,rentEpoch:P()}),uo=z({pubkey:Mi,account:ao}),co=z({state:U([I("active"),I("inactive"),I("activating"),I("deactivating")]),active:P(),inactive:P()}),lo=Ti(T(z({signature:Y(),slot:P(),err:Ri,memo:N(Y()),blockTime:C(N(P()))}))),ho=Ti(T(z({signature:Y(),slot:P(),err:Ri,memo:N(Y()),blockTime:C(N(P()))}))),fo=z({subscription:P(),result:xi(io)}),po=z({pubkey:Mi,account:io}),mo=z({subscription:P(),result:xi(po)}),go=z({parent:P(),slot:P(),root:P()}),yo=z({subscription:P(),result:go}),bo=U([z({type:U([I("firstShredReceived"),I("completed"),I("optimisticConfirmation"),I("root")]),slot:P(),timestamp:P()}),z({type:I("createdBank"),parent:P(),slot:P(),timestamp:P()}),z({type:I("frozen"),slot:P(),timestamp:P(),stats:z({numTransactionEntries:P(),numSuccessfulTransactions:P(),numFailedTransactions:P(),maxTransactionsPerEntry:P()})}),z({type:I("dead"),slot:P(),timestamp:P(),err:Y()})]),vo=z({subscription:P(),result:bo}),_o=z({subscription:P(),result:xi(U([Yi,Bi]))}),wo=z({subscription:P(),result:P()}),Mo=z({pubkey:Y(),gossip:N(Y()),tpu:N(Y()),rpc:N(Y()),version:N(Y())}),So=z({votePubkey:Y(),nodePubkey:Y(),activatedStake:P(),epochVoteAccount:O(),epochCredits:T(B([P(),P(),P()])),commission:P(),lastVote:P(),rootSlot:N(P())}),Ao=Ti(z({current:T(So),delinquent:T(So)})),ko=U([I("processed"),I("confirmed"),I("finalized")]),Eo=z({slot:P(),confirmations:N(P()),err:Ri,confirmationStatus:C(ko)}),Lo=Oi(T(N(Eo))),Do=Ti(P()),To=z({signatures:T(Y()),message:z({accountKeys:T(Y()),header:z({numRequiredSignatures:P(),numReadonlySignedAccounts:P(),numReadonlyUnsignedAccounts:P()}),instructions:T(z({accounts:T(P()),data:Y(),programIdIndex:P()})),recentBlockhash:Y()})}),Oo=z({parsed:W(),program:Y(),programId:Mi}),xo=z({accounts:T(Mi),data:Y(),programId:Mi}),Io=U([xo,Oo]),jo=U([z({parsed:W(),program:Y(),programId:Y()}),z({accounts:T(Y()),data:Y(),programId:Y()})]),No=H(Io,jo,t=>S(t,"accounts"in t?xo:Oo)),Po=z({signatures:T(Y()),message:z({accountKeys:T(z({pubkey:Mi,signer:O(),writable:O()})),instructions:T(No),recentBlockhash:Y()})}),Co=z({accountIndex:P(),mint:Y(),owner:C(Y()),uiTokenAmount:$i}),Ro=z({err:Ri,fee:P(),innerInstructions:C(N(T(z({index:P(),instructions:T(z({accounts:T(P()),data:Y(),programIdIndex:P()}))})))),preBalances:T(P()),postBalances:T(P()),logMessages:C(N(T(Y()))),preTokenBalances:C(N(T(Co))),postTokenBalances:C(N(T(Co)))}),Yo=z({err:Ri,fee:P(),innerInstructions:C(N(T(z({index:P(),instructions:T(No)})))),preBalances:T(P()),postBalances:T(P()),logMessages:C(N(T(Y()))),preTokenBalances:C(N(T(Co))),postTokenBalances:C(N(T(Co)))}),Bo=Ti(N(z({blockhash:Y(),previousBlockhash:Y(),parentSlot:P(),transactions:T(z({transaction:To,meta:N(Ro)})),rewards:C(T(z({pubkey:Y(),lamports:P(),postBalance:N(P()),rewardType:N(Y())}))),blockTime:N(P()),blockHeight:N(P())}))),zo=Ti(N(z({blockhash:Y(),previousBlockhash:Y(),parentSlot:P(),transactions:T(z({transaction:To,meta:N(Ro)})),rewards:C(T(z({pubkey:Y(),lamports:P(),postBalance:N(P()),rewardType:N(Y())}))),blockTime:N(P())}))),Uo=Ti(N(z({blockhash:Y(),previousBlockhash:Y(),parentSlot:P(),signatures:T(Y()),blockTime:N(P())}))),Wo=Ti(N(z({slot:P(),meta:Ro,blockTime:C(N(P())),transaction:To}))),Ho=Ti(N(z({slot:P(),transaction:Po,meta:N(Yo),blockTime:C(N(P()))}))),Fo=Oi(z({blockhash:Y(),feeCalculator:z({lamportsPerSignature:P()})})),qo=Oi(z({blockhash:Y(),lastValidBlockHeight:P()})),Vo=z({slot:P(),numTransactions:P(),numSlots:P(),samplePeriodSecs:P()}),Ko=Ti(T(Vo)),Go=Oi(N(z({feeCalculator:z({lamportsPerSignature:P()})}))),Qo=Ti(Y()),Zo=Ti(Y()),Jo=z({err:Ri,logs:T(Y()),signature:Y()}),$o=z({result:xi(Jo),subscription:P()}),Xo={"solana-client":"js/"+(null!==(wi="0.0.0-development")&&void 0!==wi?wi:"UNKNOWN")};class ts{constructor(t,e){this._commitment=void 0,this._confirmTransactionInitialTimeout=void 0,this._rpcEndpoint=void 0,this._rpcWsEndpoint=void 0,this._rpcClient=void 0,this._rpcRequest=void 0,this._rpcBatchRequest=void 0,this._rpcWebSocket=void 0,this._rpcWebSocketConnected=!1,this._rpcWebSocketHeartbeat=null,this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketGeneration=0,this._disableBlockhashCaching=!1,this._pollingBlockhash=!1,this._blockhashInfo={latestBlockhash:null,lastFetch:0,transactionSignatures:[],simulatedSignatures:[]},this._nextClientSubscriptionId=0,this._subscriptionDisposeFunctionsByClientSubscriptionId={},this._subscriptionCallbacksByServerSubscriptionId={},this._subscriptionsByHash={},this._subscriptionsAutoDisposedByRpc=new Set;let n=new URL(t);const r="https:"===n.protocol;let i,o,s,a,u;e&&"string"===typeof e?this._commitment=e:e&&(this._commitment=e.commitment,this._confirmTransactionInitialTimeout=e.confirmTransactionInitialTimeout,i=e.wsEndpoint,o=e.httpHeaders,s=e.fetch,a=e.fetchMiddleware,u=e.disableRetryOnRateLimit),this._rpcEndpoint=t,this._rpcWsEndpoint=i||_i(t),this._rpcClient=Hi(n.toString(),r,o,s,a,u),this._rpcRequest=Fi(this._rpcClient),this._rpcBatchRequest=qi(this._rpcClient),this._rpcWebSocket=new F["Client"](this._rpcWsEndpoint,{autoconnect:!1,max_reconnects:1/0}),this._rpcWebSocket.on("open",this._wsOnOpen.bind(this)),this._rpcWebSocket.on("error",this._wsOnError.bind(this)),this._rpcWebSocket.on("close",this._wsOnClose.bind(this)),this._rpcWebSocket.on("accountNotification",this._wsOnAccountNotification.bind(this)),this._rpcWebSocket.on("programNotification",this._wsOnProgramAccountNotification.bind(this)),this._rpcWebSocket.on("slotNotification",this._wsOnSlotNotification.bind(this)),this._rpcWebSocket.on("slotsUpdatesNotification",this._wsOnSlotUpdatesNotification.bind(this)),this._rpcWebSocket.on("signatureNotification",this._wsOnSignatureNotification.bind(this)),this._rpcWebSocket.on("rootNotification",this._wsOnRootNotification.bind(this)),this._rpcWebSocket.on("logsNotification",this._wsOnLogsNotification.bind(this))}get commitment(){return this._commitment}get rpcEndpoint(){return this._rpcEndpoint}async getBalanceAndContext(t,e){const{commitment:n,config:r}=Ei(e),i=this._buildArgs([t.toBase58()],n,void 0,r),o=await this._rpcRequest("getBalance",i),s=S(o,Oi(P()));if("error"in s)throw new di(s.error,"failed to get balance for "+t.toBase58());return s.result}async getBalance(t,e){return await this.getBalanceAndContext(t,e).then(t=>t.value).catch(e=>{throw new Error("failed to get balance of account "+t.toBase58()+": "+e)})}async getBlockTime(t){const e=await this._rpcRequest("getBlockTime",[t]),n=S(e,Ti(N(P())));if("error"in n)throw new di(n.error,"failed to get block time for slot "+t);return n.result}async getMinimumLedgerSlot(){const t=await this._rpcRequest("minimumLedgerSlot",[]),e=S(t,Ti(P()));if("error"in e)throw new di(e.error,"failed to get minimum ledger slot");return e.result}async getFirstAvailableBlock(){const t=await this._rpcRequest("getFirstAvailableBlock",[]),e=S(t,Zi);if("error"in e)throw new di(e.error,"failed to get first available block");return e.result}async getSupply(t){let e={};e="string"===typeof t?{commitment:t}:t?{...t,commitment:t&&t.commitment||this.commitment}:{commitment:this.commitment};const n=await this._rpcRequest("getSupply",[e]),r=S(n,Ji);if("error"in r)throw new di(r.error,"failed to get supply");return r.result}async getTokenSupply(t,e){const n=this._buildArgs([t.toBase58()],e),r=await this._rpcRequest("getTokenSupply",n),i=S(r,Oi($i));if("error"in i)throw new di(i.error,"failed to get token supply");return i.result}async getTokenAccountBalance(t,e){const n=this._buildArgs([t.toBase58()],e),r=await this._rpcRequest("getTokenAccountBalance",n),i=S(r,Oi($i));if("error"in i)throw new di(i.error,"failed to get token account balance");return i.result}async getTokenAccountsByOwner(t,e,n){const{commitment:r,config:i}=Ei(n);let o=[t.toBase58()];"mint"in e?o.push({mint:e.mint.toBase58()}):o.push({programId:e.programId.toBase58()});const s=this._buildArgs(o,r,"base64",i),a=await this._rpcRequest("getTokenAccountsByOwner",s),u=S(a,to);if("error"in u)throw new di(u.error,"failed to get token accounts owned by account "+t.toBase58());return u.result}async getParsedTokenAccountsByOwner(t,e,n){let r=[t.toBase58()];"mint"in e?r.push({mint:e.mint.toBase58()}):r.push({programId:e.programId.toBase58()});const i=this._buildArgs(r,n,"jsonParsed"),o=await this._rpcRequest("getTokenAccountsByOwner",i),s=S(o,no);if("error"in s)throw new di(s.error,"failed to get token accounts owned by account "+t.toBase58());return s.result}async getLargestAccounts(t){const e={...t,commitment:t&&t.commitment||this.commitment},n=e.filter||e.commitment?[e]:[],r=await this._rpcRequest("getLargestAccounts",n),i=S(r,ro);if("error"in i)throw new di(i.error,"failed to get largest accounts");return i.result}async getTokenLargestAccounts(t,e){const n=this._buildArgs([t.toBase58()],e),r=await this._rpcRequest("getTokenLargestAccounts",n),i=S(r,Xi);if("error"in i)throw new di(i.error,"failed to get token largest accounts");return i.result}async getAccountInfoAndContext(t,e){const{commitment:n,config:r}=Ei(e),i=this._buildArgs([t.toBase58()],n,"base64",r),o=await this._rpcRequest("getAccountInfo",i),s=S(o,Oi(N(io)));if("error"in s)throw new di(s.error,"failed to get info about account "+t.toBase58());return s.result}async getParsedAccountInfo(t,e){const n=this._buildArgs([t.toBase58()],e,"jsonParsed"),r=await this._rpcRequest("getAccountInfo",n),i=S(r,Oi(N(ao)));if("error"in i)throw new di(i.error,"failed to get info about account "+t.toBase58());return i.result}async getAccountInfo(t,e){try{const n=await this.getAccountInfoAndContext(t,e);return n.value}catch(n){throw new Error("failed to get info about account "+t.toBase58()+": "+n)}}async getMultipleAccountsInfoAndContext(t,e){const{commitment:n,config:r}=Ei(e),i=t.map(t=>t.toBase58()),o=this._buildArgs([i],n,"base64",r),s=await this._rpcRequest("getMultipleAccounts",o),a=S(s,Oi(T(N(io))));if("error"in a)throw new di(a.error,"failed to get info for accounts "+i);return a.result}async getMultipleAccountsInfo(t,e){const n=await this.getMultipleAccountsInfoAndContext(t,e);return n.value}async getStakeActivation(t,e,n){const{commitment:r,config:i}=Ei(e),o=this._buildArgs([t.toBase58()],r,void 0,{...i,epoch:null!=n?n:null===i||void 0===i?void 0:i.epoch}),s=await this._rpcRequest("getStakeActivation",o),a=S(s,Ti(co));if("error"in a)throw new di(a.error,"failed to get Stake Activation "+t.toBase58());return a.result}async getProgramAccounts(t,e){const{commitment:n,config:r}=Ei(e),{encoding:i,...o}=r||{},s=this._buildArgs([t.toBase58()],n,i||"base64",o),a=await this._rpcRequest("getProgramAccounts",s),u=S(a,Ti(T(oo)));if("error"in u)throw new di(u.error,"failed to get accounts owned by program "+t.toBase58());return u.result}async getParsedProgramAccounts(t,e){const{commitment:n,config:r}=Ei(e),i=this._buildArgs([t.toBase58()],n,"jsonParsed",r),o=await this._rpcRequest("getProgramAccounts",i),s=S(o,Ti(T(uo)));if("error"in s)throw new di(s.error,"failed to get accounts owned by program "+t.toBase58());return s.result}async confirmTransaction(t,e){let n,r;if("string"==typeof t)n=t;else{const e=t;n=e.signature}try{r=c.a.decode(n)}catch(d){throw new Error("signature must be base58 encoded: "+n)}_r(64===r.length,"signature has invalid length");const i=e||this.commitment;let o,s,a=!1;const u=new Promise((t,e)=>{try{s=this.onSignature(n,(e,n)=>{s=void 0;const r={context:n,value:e};a=!0,t({__type:wr.PROCESSED,response:r})},i)}catch(d){e(d)}}),l=new Promise(n=>{if("string"===typeof t){let t=this._confirmTransactionInitialTimeout||6e4;switch(i){case"processed":case"recent":case"single":case"confirmed":case"singleGossip":t=this._confirmTransactionInitialTimeout||3e4;break}o=setTimeout(()=>n({__type:wr.TIMED_OUT,timeoutMs:t}),t)}else{let r=t;const i=async()=>{try{const t=await this.getBlockHeight(e);return t}catch(t){return-1}};(async()=>{let t=await i();if(!a){while(t<=r.lastValidBlockHeight){if(await Pr(1e3),a)return;if(t=await i(),a)return}n({__type:wr.BLOCKHEIGHT_EXCEEDED})}})()}});let h;try{const t=await Promise.race([u,l]);switch(t.__type){case wr.BLOCKHEIGHT_EXCEEDED:throw new bi(n);case wr.PROCESSED:h=t.response;break;case wr.TIMED_OUT:throw new vi(n,t.timeoutMs/1e3)}}finally{clearTimeout(o),s&&this.removeSignatureListener(s)}return h}async getClusterNodes(){const t=await this._rpcRequest("getClusterNodes",[]),e=S(t,Ti(T(Mo)));if("error"in e)throw new di(e.error,"failed to get cluster nodes");return e.result}async getVoteAccounts(t){const e=this._buildArgs([],t),n=await this._rpcRequest("getVoteAccounts",e),r=S(n,Ao);if("error"in r)throw new di(r.error,"failed to get vote accounts");return r.result}async getSlot(t){const{commitment:e,config:n}=Ei(t),r=this._buildArgs([],e,void 0,n),i=await this._rpcRequest("getSlot",r),o=S(i,Ti(P()));if("error"in o)throw new di(o.error,"failed to get slot");return o.result}async getSlotLeader(t){const{commitment:e,config:n}=Ei(t),r=this._buildArgs([],e,void 0,n),i=await this._rpcRequest("getSlotLeader",r),o=S(i,Ti(Y()));if("error"in o)throw new di(o.error,"failed to get slot leader");return o.result}async getSlotLeaders(t,e){const n=[t,e],r=await this._rpcRequest("getSlotLeaders",n),i=S(r,Ti(T(Mi)));if("error"in i)throw new di(i.error,"failed to get slot leaders");return i.result}async getSignatureStatus(t,e){const{context:n,value:r}=await this.getSignatureStatuses([t],e);_r(1===r.length);const i=r[0];return{context:n,value:i}}async getSignatureStatuses(t,e){const n=[t];e&&n.push(e);const r=await this._rpcRequest("getSignatureStatuses",n),i=S(r,Lo);if("error"in i)throw new di(i.error,"failed to get signature status");return i.result}async getTransactionCount(t){const{commitment:e,config:n}=Ei(t),r=this._buildArgs([],e,void 0,n),i=await this._rpcRequest("getTransactionCount",r),o=S(i,Ti(P()));if("error"in o)throw new di(o.error,"failed to get transaction count");return o.result}async getTotalSupply(t){const e=await this.getSupply({commitment:t,excludeNonCirculatingAccountsList:!0});return e.value.total}async getInflationGovernor(t){const e=this._buildArgs([],t),n=await this._rpcRequest("getInflationGovernor",e),r=S(n,Vi);if("error"in r)throw new di(r.error,"failed to get inflation");return r.result}async getInflationReward(t,e,n){const{commitment:r,config:i}=Ei(n),o=this._buildArgs([t.map(t=>t.toBase58())],r,void 0,{...i,epoch:null!=e?e:null===i||void 0===i?void 0:i.epoch}),s=await this._rpcRequest("getInflationReward",o),a=S(s,ji);if("error"in a)throw new di(a.error,"failed to get inflation reward");return a.result}async getEpochInfo(t){const{commitment:e,config:n}=Ei(t),r=this._buildArgs([],e,void 0,n),i=await this._rpcRequest("getEpochInfo",r),o=S(i,Ki);if("error"in o)throw new di(o.error,"failed to get epoch info");return o.result}async getEpochSchedule(){const t=await this._rpcRequest("getEpochSchedule",[]),e=S(t,Gi);if("error"in e)throw new di(e.error,"failed to get epoch schedule");const n=e.result;return new ci(n.slotsPerEpoch,n.leaderScheduleSlotOffset,n.warmup,n.firstNormalEpoch,n.firstNormalSlot)}async getLeaderSchedule(){const t=await this._rpcRequest("getLeaderSchedule",[]),e=S(t,Qi);if("error"in e)throw new di(e.error,"failed to get leader schedule");return e.result}async getMinimumBalanceForRentExemption(t,e){const n=this._buildArgs([t],e),r=await this._rpcRequest("getMinimumBalanceForRentExemption",n),i=S(r,Do);return"error"in i?(console.warn("Unable to fetch minimum balance for rent exemption"),0):i.result}async getRecentBlockhashAndContext(t){const e=this._buildArgs([],t),n=await this._rpcRequest("getRecentBlockhash",e),r=S(n,Fo);if("error"in r)throw new di(r.error,"failed to get recent blockhash");return r.result}async getRecentPerformanceSamples(t){const e=await this._rpcRequest("getRecentPerformanceSamples",t?[t]:[]),n=S(e,Ko);if("error"in n)throw new di(n.error,"failed to get recent performance samples");return n.result}async getFeeCalculatorForBlockhash(t,e){const n=this._buildArgs([t],e),r=await this._rpcRequest("getFeeCalculatorForBlockhash",n),i=S(r,Go);if("error"in i)throw new di(i.error,"failed to get fee calculator");const{context:o,value:s}=i.result;return{context:o,value:null!==s?s.feeCalculator:null}}async getFeeForMessage(t,e){const n=t.serialize().toString("base64"),r=this._buildArgs([n],e),i=await this._rpcRequest("getFeeForMessage",r),o=S(i,Oi(N(P())));if("error"in o)throw new di(o.error,"failed to get slot");if(null===o.result)throw new Error("invalid blockhash");return o.result}async getRecentBlockhash(t){try{const e=await this.getRecentBlockhashAndContext(t);return e.value}catch(e){throw new Error("failed to get recent blockhash: "+e)}}async getLatestBlockhash(t){try{const e=await this.getLatestBlockhashAndContext(t);return e.value}catch(e){throw new Error("failed to get recent blockhash: "+e)}}async getLatestBlockhashAndContext(t){const{commitment:e,config:n}=Ei(t),r=this._buildArgs([],e,void 0,n),i=await this._rpcRequest("getLatestBlockhash",r),o=S(i,qo);if("error"in o)throw new di(o.error,"failed to get latest blockhash");return o.result}async getVersion(){const t=await this._rpcRequest("getVersion",[]),e=S(t,Ti(zi));if("error"in e)throw new di(e.error,"failed to get version");return e.result}async getGenesisHash(){const t=await this._rpcRequest("getGenesisHash",[]),e=S(t,Ti(Y()));if("error"in e)throw new di(e.error,"failed to get genesis hash");return e.result}async getBlock(t,e){const n=this._buildArgsAtLeastConfirmed([t],e&&e.commitment),r=await this._rpcRequest("getBlock",n),i=S(r,Bo);if("error"in i)throw new di(i.error,"failed to get confirmed block");const o=i.result;return o?{...o,transactions:o.transactions.map(({transaction:t,meta:e})=>{const n=new vr(t.message);return{meta:e,transaction:{...t,message:n}}})}:o}async getBlockHeight(t){const{commitment:e,config:n}=Ei(t),r=this._buildArgs([],e,void 0,n),i=await this._rpcRequest("getBlockHeight",r),o=S(i,Ti(P()));if("error"in o)throw new di(o.error,"failed to get block height information");return o.result}async getBlockProduction(t){let e,n;if("string"===typeof t)n=t;else if(t){const{commitment:r,...i}=t;n=r,e=i}const r=this._buildArgs([],n,"base64",e),i=await this._rpcRequest("getBlockProduction",r),o=S(i,Wi);if("error"in o)throw new di(o.error,"failed to get block production information");return o.result}async getTransaction(t,e){const n=this._buildArgsAtLeastConfirmed([t],e&&e.commitment),r=await this._rpcRequest("getTransaction",n),i=S(r,Wo);if("error"in i)throw new di(i.error,"failed to get transaction");const o=i.result;return o?{...o,transaction:{...o.transaction,message:new vr(o.transaction.message)}}:o}async getParsedTransaction(t,e){const n=this._buildArgsAtLeastConfirmed([t],e,"jsonParsed"),r=await this._rpcRequest("getTransaction",n),i=S(r,Ho);if("error"in i)throw new di(i.error,"failed to get transaction");return i.result}async getParsedTransactions(t,e){const n=t.map(t=>{const n=this._buildArgsAtLeastConfirmed([t],e,"jsonParsed");return{methodName:"getTransaction",args:n}}),r=await this._rpcBatchRequest(n),i=r.map(t=>{const e=S(t,Ho);if("error"in e)throw new di(e.error,"failed to get transactions");return e.result});return i}async getTransactions(t,e){const n=t.map(t=>{const n=this._buildArgsAtLeastConfirmed([t],e);return{methodName:"getTransaction",args:n}}),r=await this._rpcBatchRequest(n),i=r.map(t=>{const e=S(t,Wo);if("error"in e)throw new di(e.error,"failed to get transactions");const n=e.result;return n?{...n,transaction:{...n.transaction,message:new vr(n.transaction.message)}}:n});return i}async getConfirmedBlock(t,e){const n=this._buildArgsAtLeastConfirmed([t],e),r=await this._rpcRequest("getConfirmedBlock",n),i=S(r,zo);if("error"in i)throw new di(i.error,"failed to get confirmed block");const o=i.result;if(!o)throw new Error("Confirmed block "+t+" not found");const s={...o,transactions:o.transactions.map(({transaction:t,meta:e})=>{const n=new vr(t.message);return{meta:e,transaction:{...t,message:n}}})};return{...s,transactions:s.transactions.map(({transaction:t,meta:e})=>({meta:e,transaction:Ar.populate(t.message,t.signatures)}))}}async getBlocks(t,e,n){const r=this._buildArgsAtLeastConfirmed(void 0!==e?[t,e]:[t],n),i=await this._rpcRequest("getBlocks",r),o=S(i,Ti(T(P())));if("error"in o)throw new di(o.error,"failed to get blocks");return o.result}async getBlockSignatures(t,e){const n=this._buildArgsAtLeastConfirmed([t],e,void 0,{transactionDetails:"signatures",rewards:!1}),r=await this._rpcRequest("getBlock",n),i=S(r,Uo);if("error"in i)throw new di(i.error,"failed to get block");const o=i.result;if(!o)throw new Error("Block "+t+" not found");return o}async getConfirmedBlockSignatures(t,e){const n=this._buildArgsAtLeastConfirmed([t],e,void 0,{transactionDetails:"signatures",rewards:!1}),r=await this._rpcRequest("getConfirmedBlock",n),i=S(r,Uo);if("error"in i)throw new di(i.error,"failed to get confirmed block");const o=i.result;if(!o)throw new Error("Confirmed block "+t+" not found");return o}async getConfirmedTransaction(t,e){const n=this._buildArgsAtLeastConfirmed([t],e),r=await this._rpcRequest("getConfirmedTransaction",n),i=S(r,Wo);if("error"in i)throw new di(i.error,"failed to get transaction");const o=i.result;if(!o)return o;const s=new vr(o.transaction.message),a=o.transaction.signatures;return{...o,transaction:Ar.populate(s,a)}}async getParsedConfirmedTransaction(t,e){const n=this._buildArgsAtLeastConfirmed([t],e,"jsonParsed"),r=await this._rpcRequest("getConfirmedTransaction",n),i=S(r,Ho);if("error"in i)throw new di(i.error,"failed to get confirmed transaction");return i.result}async getParsedConfirmedTransactions(t,e){const n=t.map(t=>{const n=this._buildArgsAtLeastConfirmed([t],e,"jsonParsed");return{methodName:"getConfirmedTransaction",args:n}}),r=await this._rpcBatchRequest(n),i=r.map(t=>{const e=S(t,Ho);if("error"in e)throw new di(e.error,"failed to get confirmed transactions");return e.result});return i}async getConfirmedSignaturesForAddress(t,e,n){let r={},i=await this.getFirstAvailableBlock();while(!("until"in r)){if(e--,e<=0||e0&&(r.until=t.signatures[t.signatures.length-1].toString())}catch(a){if(a instanceof Error&&a.message.includes("skipped"))continue;throw a}}let o=await this.getSlot("finalized");while(!("before"in r)){if(n++,n>o)break;try{const t=await this.getConfirmedBlockSignatures(n);t.signatures.length>0&&(r.before=t.signatures[t.signatures.length-1].toString())}catch(a){if(a instanceof Error&&a.message.includes("skipped"))continue;throw a}}const s=await this.getConfirmedSignaturesForAddress2(t,r);return s.map(t=>t.signature)}async getConfirmedSignaturesForAddress2(t,e,n){const r=this._buildArgsAtLeastConfirmed([t.toBase58()],n,void 0,e),i=await this._rpcRequest("getConfirmedSignaturesForAddress2",r),o=S(i,lo);if("error"in o)throw new di(o.error,"failed to get confirmed signatures for address");return o.result}async getSignaturesForAddress(t,e,n){const r=this._buildArgsAtLeastConfirmed([t.toBase58()],n,void 0,e),i=await this._rpcRequest("getSignaturesForAddress",r),o=S(i,ho);if("error"in o)throw new di(o.error,"failed to get signatures for address");return o.result}async getNonceAndContext(t,e){const{context:n,value:r}=await this.getAccountInfoAndContext(t,e);let i=null;return null!==r&&(i=Ur.fromAccountData(r.data)),{context:n,value:i}}async getNonce(t,e){return await this.getNonceAndContext(t,e).then(t=>t.value).catch(e=>{throw new Error("failed to get nonce for account "+t.toBase58()+": "+e)})}async requestAirdrop(t,e){const n=await this._rpcRequest("requestAirdrop",[t.toBase58(),e]),r=S(n,Qo);if("error"in r)throw new di(r.error,`airdrop to ${t.toBase58()} failed`);return r.result}async _blockhashWithExpiryBlockHeight(t){if(!t){while(this._pollingBlockhash)await Pr(100);const t=Date.now()-this._blockhashInfo.lastFetch,e=t>=ki;if(null!==this._blockhashInfo.latestBlockhash&&!e)return this._blockhashInfo.latestBlockhash}return await this._pollNewBlockhash()}async _pollNewBlockhash(){this._pollingBlockhash=!0;try{const t=Date.now(),e=this._blockhashInfo.latestBlockhash,n=e?e.blockhash:null;for(let r=0;r<50;r++){const t=await this.getLatestBlockhash("finalized");if(n!==t.blockhash)return this._blockhashInfo={latestBlockhash:t,lastFetch:Date.now(),transactionSignatures:[],simulatedSignatures:[]},t;await Pr(yi/2)}throw new Error(`Unable to obtain a new blockhash after ${Date.now()-t}ms`)}finally{this._pollingBlockhash=!1}}async simulateTransaction(t,e,n){let r;if(t instanceof Ar){let e=t;r=new Ar,r.feePayer=e.feePayer,r.instructions=t.instructions,r.nonceInfo=e.nonceInfo,r.signatures=e.signatures}else r=Ar.populate(t),r._message=r._json=void 0;if(r.nonceInfo&&e)r.sign(...e);else{let t=this._disableBlockhashCaching;for(;;){const n=await this._blockhashWithExpiryBlockHeight(t);if(r.lastValidBlockHeight=n.lastValidBlockHeight,r.recentBlockhash=n.blockhash,!e)break;if(r.sign(...e),!r.signature)throw new Error("!signature");const i=r.signature.toString("base64");if(!this._blockhashInfo.simulatedSignatures.includes(i)&&!this._blockhashInfo.transactionSignatures.includes(i)){this._blockhashInfo.simulatedSignatures.push(i);break}t=!0}}const i=r._compile(),o=i.serialize(),s=r._serialize(o),a=s.toString("base64"),u={encoding:"base64",commitment:this.commitment};if(n){const t=(Array.isArray(n)?n:i.nonProgramIds()).map(t=>t.toBase58());u["accounts"]={encoding:"base64",addresses:t}}e&&(u.sigVerify=!0);const c=[a,u],l=await this._rpcRequest("simulateTransaction",c),h=S(l,Ui);if("error"in h){let t;if("data"in h.error&&(t=h.error.data.logs,t&&Array.isArray(t))){const e="\n ",n=e+t.join(e);console.error(h.error.message,n)}throw new li("failed to simulate transaction: "+h.error.message,t)}return h.result}async sendTransaction(t,e,n){if(t.nonceInfo)t.sign(...e);else{let n=this._disableBlockhashCaching;for(;;){const r=await this._blockhashWithExpiryBlockHeight(n);if(t.lastValidBlockHeight=r.lastValidBlockHeight,t.recentBlockhash=r.blockhash,t.sign(...e),!t.signature)throw new Error("!signature");const i=t.signature.toString("base64");if(!this._blockhashInfo.transactionSignatures.includes(i)){this._blockhashInfo.transactionSignatures.push(i);break}n=!0}}const r=t.serialize();return await this.sendRawTransaction(r,n)}async sendRawTransaction(t,e){const n=J(t).toString("base64"),r=await this.sendEncodedTransaction(n,e);return r}async sendEncodedTransaction(t,e){const n={encoding:"base64"},r=e&&e.skipPreflight,i=e&&e.preflightCommitment||this.commitment;e&&null!=e.maxRetries&&(n.maxRetries=e.maxRetries),e&&null!=e.minContextSlot&&(n.minContextSlot=e.minContextSlot),r&&(n.skipPreflight=r),i&&(n.preflightCommitment=i);const o=[t,n],s=await this._rpcRequest("sendTransaction",o),a=S(s,Zo);if("error"in a){let t;throw"data"in a.error&&(t=a.error.data.logs),new li("failed to send transaction: "+a.error.message,t)}return a.result}_wsOnOpen(){this._rpcWebSocketConnected=!0,this._rpcWebSocketHeartbeat=setInterval(()=>{this._rpcWebSocket.notify("ping").catch(()=>{})},5e3),this._updateSubscriptions()}_wsOnError(t){this._rpcWebSocketConnected=!1,console.error("ws error:",t.message)}_wsOnClose(t){this._rpcWebSocketConnected=!1,this._rpcWebSocketGeneration++,this._rpcWebSocketHeartbeat&&(clearInterval(this._rpcWebSocketHeartbeat),this._rpcWebSocketHeartbeat=null),1e3!==t?(this._subscriptionCallbacksByServerSubscriptionId={},Object.entries(this._subscriptionsByHash).forEach(([t,e])=>{this._subscriptionsByHash[t]={...e,state:"pending"}})):this._updateSubscriptions()}async _updateSubscriptions(){if(0===Object.keys(this._subscriptionsByHash).length)return void(this._rpcWebSocketConnected&&(this._rpcWebSocketConnected=!1,this._rpcWebSocketIdleTimeout=setTimeout(()=>{this._rpcWebSocketIdleTimeout=null;try{this._rpcWebSocket.close()}catch(t){t instanceof Error&&console.log("Error when closing socket connection: "+t.message)}},500)));if(null!==this._rpcWebSocketIdleTimeout&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketConnected=!0),!this._rpcWebSocketConnected)return void this._rpcWebSocket.connect();const t=this._rpcWebSocketGeneration,e=()=>t===this._rpcWebSocketGeneration;await Promise.all(Object.keys(this._subscriptionsByHash).map(async t=>{const n=this._subscriptionsByHash[t];if(void 0!==n)switch(n.state){case"pending":case"unsubscribed":if(0===n.callbacks.size)return delete this._subscriptionsByHash[t],"unsubscribed"===n.state&&delete this._subscriptionCallbacksByServerSubscriptionId[n.serverSubscriptionId],void await this._updateSubscriptions();await(async()=>{const{args:r,method:i}=n;try{this._subscriptionsByHash[t]={...n,state:"subscribing"};const e=await this._rpcWebSocket.call(i,r);this._subscriptionsByHash[t]={...n,serverSubscriptionId:e,state:"subscribed"},this._subscriptionCallbacksByServerSubscriptionId[e]=n.callbacks,await this._updateSubscriptions()}catch(o){if(o instanceof Error&&console.error(i+" error for argument",r,o.message),!e())return;this._subscriptionsByHash[t]={...n,state:"pending"},await this._updateSubscriptions()}})();break;case"subscribed":0===n.callbacks.size&&await(async()=>{const{serverSubscriptionId:r,unsubscribeMethod:i}=n;if(this._subscriptionsAutoDisposedByRpc.has(r))this._subscriptionsAutoDisposedByRpc.delete(r);else{this._subscriptionsByHash[t]={...n,state:"unsubscribing"};try{await this._rpcWebSocket.call(i,[r])}catch(o){if(o instanceof Error&&console.error(i+" error:",o.message),!e())return;return this._subscriptionsByHash[t]={...n,state:"subscribed"},void await this._updateSubscriptions()}}this._subscriptionsByHash[t]={...n,state:"unsubscribed"},await this._updateSubscriptions()})();break}}))}_handleServerNotification(t,e){const n=this._subscriptionCallbacksByServerSubscriptionId[t];void 0!==n&&n.forEach(t=>{try{t(...e)}catch(n){console.error(n)}})}_wsOnAccountNotification(t){const{result:e,subscription:n}=S(t,fo);this._handleServerNotification(n,[e.value,e.context])}_makeSubscription(t,e){const n=this._nextClientSubscriptionId++,r=oi([t.method,e],!0),i=this._subscriptionsByHash[r];return void 0===i?this._subscriptionsByHash[r]={...t,args:e,callbacks:new Set([t.callback]),state:"pending"}:i.callbacks.add(t.callback),this._subscriptionDisposeFunctionsByClientSubscriptionId[n]=async()=>{delete this._subscriptionDisposeFunctionsByClientSubscriptionId[n];const e=this._subscriptionsByHash[r];_r(void 0!==e,"Could not find a `Subscription` when tearing down client subscription #"+n),e.callbacks.delete(t.callback),await this._updateSubscriptions()},this._updateSubscriptions(),n}onAccountChange(t,e,n){const r=this._buildArgs([t.toBase58()],n||this._commitment||"finalized","base64");return this._makeSubscription({callback:e,method:"accountSubscribe",unsubscribeMethod:"accountUnsubscribe"},r)}async removeAccountChangeListener(t){await this._unsubscribeClientSubscription(t,"account change")}_wsOnProgramAccountNotification(t){const{result:e,subscription:n}=S(t,mo);this._handleServerNotification(n,[{accountId:e.value.pubkey,accountInfo:e.value.account},e.context])}onProgramAccountChange(t,e,n,r){const i=this._buildArgs([t.toBase58()],n||this._commitment||"finalized","base64",r?{filters:r}:void 0);return this._makeSubscription({callback:e,method:"programSubscribe",unsubscribeMethod:"programUnsubscribe"},i)}async removeProgramAccountChangeListener(t){await this._unsubscribeClientSubscription(t,"program account change")}onLogs(t,e,n){const r=this._buildArgs(["object"===typeof t?{mentions:[t.toString()]}:t],n||this._commitment||"finalized");return this._makeSubscription({callback:e,method:"logsSubscribe",unsubscribeMethod:"logsUnsubscribe"},r)}async removeOnLogsListener(t){await this._unsubscribeClientSubscription(t,"logs")}_wsOnLogsNotification(t){const{result:e,subscription:n}=S(t,$o);this._handleServerNotification(n,[e.value,e.context])}_wsOnSlotNotification(t){const{result:e,subscription:n}=S(t,yo);this._handleServerNotification(n,[e])}onSlotChange(t){return this._makeSubscription({callback:t,method:"slotSubscribe",unsubscribeMethod:"slotUnsubscribe"},[])}async removeSlotChangeListener(t){await this._unsubscribeClientSubscription(t,"slot change")}_wsOnSlotUpdatesNotification(t){const{result:e,subscription:n}=S(t,vo);this._handleServerNotification(n,[e])}onSlotUpdate(t){return this._makeSubscription({callback:t,method:"slotsUpdatesSubscribe",unsubscribeMethod:"slotsUpdatesUnsubscribe"},[])}async removeSlotUpdateListener(t){await this._unsubscribeClientSubscription(t,"slot update")}async _unsubscribeClientSubscription(t,e){const n=this._subscriptionDisposeFunctionsByClientSubscriptionId[t];n?await n():console.warn(`Ignored unsubscribe request because an active subscription with id \`${t}\` for '${e}' events could not be found.`)}_buildArgs(t,e,n,r){const i=e||this._commitment;if(i||n||r){let e={};n&&(e.encoding=n),i&&(e.commitment=i),r&&(e=Object.assign(e,r)),t.push(e)}return t}_buildArgsAtLeastConfirmed(t,e,n,r){const i=e||this._commitment;if(i&&!["confirmed","finalized"].includes(i))throw new Error("Using Connection with default commitment: `"+this._commitment+"`, but method requires at least `confirmed`");return this._buildArgs(t,e,n,r)}_wsOnSignatureNotification(t){const{result:e,subscription:n}=S(t,_o);"receivedSignature"!==e.value&&this._subscriptionsAutoDisposedByRpc.add(n),this._handleServerNotification(n,"receivedSignature"===e.value?[{type:"received"},e.context]:[{type:"status",result:e.value},e.context])}onSignature(t,e,n){const r=this._buildArgs([t],n||this._commitment||"finalized"),i=this._makeSubscription({callback:(t,n)=>{if("status"===t.type){e(t.result,n);try{this.removeSignatureListener(i)}catch(r){}}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},r);return i}onSignatureWithOptions(t,e,n){const{commitment:r,...i}={...n,commitment:n&&n.commitment||this._commitment||"finalized"},o=this._buildArgs([t],r,void 0,i),s=this._makeSubscription({callback:(t,n)=>{e(t,n);try{this.removeSignatureListener(s)}catch(r){}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},o);return s}async removeSignatureListener(t){await this._unsubscribeClientSubscription(t,"signature result")}_wsOnRootNotification(t){const{result:e,subscription:n}=S(t,wo);this._handleServerNotification(n,[e])}onRootChange(t){return this._makeSubscription({callback:t,method:"rootSubscribe",unsubscribeMethod:"rootUnsubscribe"},[])}async removeRootChangeListener(t){await this._unsubscribeClientSubscription(t,"root change")}}class es{constructor(t){this._keypair=void 0,this._keypair=t||i.a.sign.keyPair()}static generate(){return new es(i.a.sign.keyPair())}static fromSecretKey(t,e){const n=i.a.sign.keyPair.fromSecretKey(t);if(!e||!e.skipValidation){const t=new TextEncoder,e=t.encode("@solana/web3.js-validation-v1"),r=i.a.sign.detached(e,n.secretKey);if(!i.a.sign.detached.verify(e,r,n.publicKey))throw new Error("provided secretKey is invalid")}return new es(n)}static fromSeed(t){return new es(i.a.sign.keyPair.fromSeed(t))}get publicKey(){return new tr(this._keypair.publicKey)}get secretKey(){return this._keypair.secretKey}}const ns=64,rs=32,is=64,os=h["struct"]([h["u8"]("numSignatures"),h["u8"]("padding"),h["u16"]("signatureOffset"),h["u16"]("signatureInstructionIndex"),h["u16"]("publicKeyOffset"),h["u16"]("publicKeyInstructionIndex"),h["u16"]("messageDataOffset"),h["u16"]("messageDataSize"),h["u16"]("messageInstructionIndex")]);class ss{constructor(){}static createInstructionWithPublicKey(t){const{publicKey:e,message:n,signature:r,instructionIndex:i}=t;_r(e.length===rs,`Public Key must be ${rs} bytes but received ${e.length} bytes`),_r(r.length===is,`Signature must be ${is} bytes but received ${r.length} bytes`);const s=os.span,a=s+e.length,u=a+r.length,c=1,l=o["Buffer"].alloc(u+n.length),h=null==i?65535:i;return os.encode({numSignatures:c,padding:0,signatureOffset:a,signatureInstructionIndex:h,publicKeyOffset:s,publicKeyInstructionIndex:h,messageDataOffset:u,messageDataSize:n.length,messageInstructionIndex:h},l),l.fill(e,s),l.fill(r,a),l.fill(n,u),new Sr({keys:[],programId:ss.programId,data:l})}static createInstructionWithPrivateKey(t){const{privateKey:e,message:n,instructionIndex:r}=t;_r(e.length===ns,`Private key must be ${ns} bytes but received ${e.length} bytes`);try{const t=es.fromSecretKey(e),o=t.publicKey.toBytes(),s=i.a.sign.detached(n,t.secretKey);return this.createInstructionWithPublicKey({publicKey:o,message:n,signature:s,instructionIndex:r})}catch(o){throw new Error("Error creating instruction; "+o)}}}ss.programId=new tr("Ed25519SigVerify111111111111111111111111111");const as=new tr("StakeConfig11111111111111111111111111111111");class us{constructor(t,e){this.staker=void 0,this.withdrawer=void 0,this.staker=t,this.withdrawer=e}}class cs{constructor(t,e,n){this.unixTimestamp=void 0,this.epoch=void 0,this.custodian=void 0,this.unixTimestamp=t,this.epoch=e,this.custodian=n}}cs.default=new cs(0,0,tr.default);class ls{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const e=h["u32"]("instruction"),n=e.decode(t.data);let r;for(const[i,o]of Object.entries(hs))if(o.index==n){r=i;break}if(!r)throw new Error("Instruction type incorrect; not a StakeInstruction");return r}static decodeInitialize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{authorized:e,lockup:n}=Rr(hs.Initialize,t.data);return{stakePubkey:t.keys[0].pubkey,authorized:new us(new tr(e.staker),new tr(e.withdrawer)),lockup:new cs(n.unixTimestamp,n.epoch,new tr(n.custodian))}}static decodeDelegate(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,6),Rr(hs.Delegate,t.data),{stakePubkey:t.keys[0].pubkey,votePubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[5].pubkey}}static decodeAuthorize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{newAuthorized:e,stakeAuthorizationType:n}=Rr(hs.Authorize,t.data),r={stakePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey,newAuthorizedPubkey:new tr(e),stakeAuthorizationType:{index:n}};return t.keys.length>3&&(r.custodianPubkey=t.keys[3].pubkey),r}static decodeAuthorizeWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{newAuthorized:e,stakeAuthorizationType:n,authoritySeed:r,authorityOwner:i}=Rr(hs.AuthorizeWithSeed,t.data),o={stakePubkey:t.keys[0].pubkey,authorityBase:t.keys[1].pubkey,authoritySeed:r,authorityOwner:new tr(i),newAuthorizedPubkey:new tr(e),stakeAuthorizationType:{index:n}};return t.keys.length>3&&(o.custodianPubkey=t.keys[3].pubkey),o}static decodeSplit(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{lamports:e}=Rr(hs.Split,t.data);return{stakePubkey:t.keys[0].pubkey,splitStakePubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[2].pubkey,lamports:e}}static decodeMerge(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3),Rr(hs.Merge,t.data),{stakePubkey:t.keys[0].pubkey,sourceStakePubKey:t.keys[1].pubkey,authorizedPubkey:t.keys[4].pubkey}}static decodeWithdraw(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,5);const{lamports:e}=Rr(hs.Withdraw,t.data),n={stakePubkey:t.keys[0].pubkey,toPubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[4].pubkey,lamports:e};return t.keys.length>5&&(n.custodianPubkey=t.keys[5].pubkey),n}static decodeDeactivate(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3),Rr(hs.Deactivate,t.data),{stakePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey}}static checkProgramId(t){if(!t.equals(fs.programId))throw new Error("invalid instruction; programId is not StakeProgram")}static checkKeyLength(t,e){if(t.length{const n=new Promise((e,n)=>{const r=setTimeout(()=>{clearTimeout(r),n(new Error("Timed out in ".concat(t,"ms")))},t)});return Promise.race([e,n])},w=async function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r={mode:"cors",headers:{}};n.useAPIKey&&(r.headers=l(l({},r.headers),b()));const i=s()(r,e,{method:"GET"}),o=await fetch(t,i);if(o.ok)return o.json();throw v(o),o},M=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i={mode:"cors",headers:{"Content-Type":"application/json; charset=utf-8"}};r.useAPIKey&&(i.headers=l(l({},i.headers),b()));const o=s()(i,n,{method:"POST"});return r.isUrlEncodedData?(o.body=e,"application/json; charset=utf-8"===o.headers["Content-Type"]&&delete o.headers["Content-Type"]):o.body=JSON.stringify(e),_(r.timeout||6e4,fetch(t,o).then(t=>{if(t.ok)return t.json();throw v(t),t}))},S=async function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i={mode:"cors",headers:{"Content-Type":"application/json; charset=utf-8"}};r.useAPIKey&&(i.headers=l(l({},i.headers),b()));const o=s()(i,n,{method:"PATCH"});r.isUrlEncodedData?(o.body=e,"application/json; charset=utf-8"===o.headers["Content-Type"]&&delete o.headers["Content-Type"]):o.body=JSON.stringify(e);const a=await fetch(t,o);if(a.ok)return a.json();throw v(a),a},A=async function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i={mode:"cors",headers:{"Content-Type":"application/json; charset=utf-8"}};r.useAPIKey&&(i.headers=l(l({},i.headers),b()));const o=s()(i,n,{method:"DELETE"});r.isUrlEncodedData?(o.body=e,"application/json; charset=utf-8"===o.headers["Content-Type"]&&delete o.headers["Content-Type"]):o.body=JSON.stringify(e);const a=await fetch(t,o);if(a.ok)return a.json();throw v(a),a}},"65ab":function(t,e,n){"use strict";var r=n("9054").codes.ERR_STREAM_PREMATURE_CLOSE;function i(t){var e=!1;return function(){if(!e){e=!0;for(var n=arguments.length,r=new Array(n),i=0;i11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}});return e}))},"676f":function(t,e,n){"use strict";var r=n("80af"),i=n("3fb5"),o=n("ea53"),s=n("f3a3");function a(t){o.call(this,"mont",t),this.a=new r(t.a,16).toRed(this.red),this.b=new r(t.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(t,e,n){o.BasePoint.call(this,t,"projective"),null===e&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(e,16),this.z=new r(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(a,o),t.exports=a,a.prototype.validate=function(t){var e=t.normalize().x,n=e.redSqr(),r=n.redMul(e).redAdd(n.redMul(this.a)).redAdd(e),i=r.redSqrt();return 0===i.redSqr().cmp(r)},i(u,o.BasePoint),a.prototype.decodePoint=function(t,e){return this.point(s.toArray(t,e),1)},a.prototype.point=function(t,e){return new u(this,t,e)},a.prototype.pointFromJSON=function(t){return u.fromJSON(this,t)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(t,e){return new u(t,e[0],e[1]||t.one)},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var t=this.x.redAdd(this.z),e=t.redSqr(),n=this.x.redSub(this.z),r=n.redSqr(),i=e.redSub(r),o=e.redMul(r),s=i.redMul(r.redAdd(this.curve.a24.redMul(i)));return this.curve.point(o,s)},u.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(t,e){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),i=t.x.redAdd(t.z),o=t.x.redSub(t.z),s=o.redMul(n),a=i.redMul(r),u=e.z.redMul(s.redAdd(a).redSqr()),c=e.x.redMul(s.redISub(a).redSqr());return this.curve.point(u,c)},u.prototype.mul=function(t){for(var e=t.clone(),n=this,r=this.curve.point(null,null),i=this,o=[];0!==e.cmpn(0);e.iushrn(1))o.push(e.andln(1));for(var s=o.length-1;s>=0;s--)0===o[s]?(n=n.diffAdd(r,i),r=r.dbl()):(r=n.diffAdd(r,i),n=n.dbl());return r},u.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},6784:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"],r=t.defineLocale("sd",{months:e,monthsShort:e,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(t){return"شام"===t},meridiem:function(t,e,n){return t<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:1,doy:4}});return r}))},6887:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration function e(t,e,n){var r={mm:"munutenn",MM:"miz",dd:"devezh"};return t+" "+i(r[n],t)}function n(t){switch(r(t)){case 1:case 3:case 4:case 5:case 9:return t+" bloaz";default:return t+" vloaz"}}function r(t){return t>9?r(t%10):t}function i(t,e){return 2===e?o(t):t}function o(t){var e={m:"v",b:"v",d:"z"};return void 0===e[t.charAt(0)]?t:e[t.charAt(0)]+t.substring(1)}var s=[/^gen/i,/^c[ʼ\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],a=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,u=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,c=/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,l=[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],h=[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],d=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i],f=t.defineLocale("br",{months:"Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:d,fullWeekdaysParse:l,shortWeekdaysParse:h,minWeekdaysParse:d,monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:u,monthsShortStrictRegex:c,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warcʼhoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Decʼh da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s ʼzo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:e,h:"un eur",hh:"%d eur",d:"un devezh",dd:e,M:"ur miz",MM:e,y:"ur bloaz",yy:n},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(t){var e=1===t?"añ":"vet";return t+e},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(t){return"g.m."===t},meridiem:function(t,e,n){return t<12?"a.m.":"g.m."}});return f}))},"688b":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return e}))},"68a0":function(t,e,n){"use strict";(function(e,r){var i;t.exports=T,T.ReadableState=D;n("faa1").EventEmitter;var o=function(t,e){return t.listeners(e).length},s=n("027d"),a=n("b639").Buffer,u=e.Uint8Array||function(){};function c(t){return a.from(t)}function l(t){return a.isBuffer(t)||t instanceof u}var h,d=n(8);h=d&&d.debuglog?d.debuglog("stream"):function(){};var f,p,m,g=n("b71c"),y=n("ac0c"),b=n("4d28"),v=b.getHighWaterMark,_=n("9054").codes,w=_.ERR_INVALID_ARG_TYPE,M=_.ERR_STREAM_PUSH_AFTER_EOF,S=_.ERR_METHOD_NOT_IMPLEMENTED,A=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n("3fb5")(T,s);var k=y.errorOrDestroy,E=["error","close","destroy","pause","resume"];function L(t,e,n){if("function"===typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}function D(t,e,r){i=i||n("88a2"),t=t||{},"boolean"!==typeof r&&(r=e instanceof i),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=v(this,t,"readableHighWaterMark",r),this.buffer=new g,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(f||(f=n("7d72").StringDecoder),this.decoder=new f(t.encoding),this.encoding=t.encoding)}function T(t){if(i=i||n("88a2"),!(this instanceof T))return new T(t);var e=this instanceof i;this._readableState=new D(t,this,e),this.readable=!0,t&&("function"===typeof t.read&&(this._read=t.read),"function"===typeof t.destroy&&(this._destroy=t.destroy)),s.call(this)}function O(t,e,n,r,i){h("readableAddChunk",e);var o,s=t._readableState;if(null===e)s.reading=!1,C(t,s);else if(i||(o=I(s,e)),o)k(t,o);else if(s.objectMode||e&&e.length>0)if("string"===typeof e||s.objectMode||Object.getPrototypeOf(e)===a.prototype||(e=c(e)),r)s.endEmitted?k(t,new A):x(t,s,e,!0);else if(s.ended)k(t,new M);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!n?(e=s.decoder.write(e),s.objectMode||0!==e.length?x(t,s,e,!1):B(t,s)):x(t,s,e,!1)}else r||(s.reading=!1,B(t,s));return!s.ended&&(s.length=j?t=j:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function P(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=N(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function C(t,e){if(h("onEofChunk"),!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,e.sync?R(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,Y(t)))}}function R(t){var e=t._readableState;h("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(h("emitReadable",e.flowing),e.emittedReadable=!0,r.nextTick(Y,t))}function Y(t){var e=t._readableState;h("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,V(t)}function B(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(z,t,e))}function z(t,e){while(!e.reading&&!e.ended&&(e.length0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function H(t){h("readable nexttick read 0"),t.read(0)}function F(t,e){e.resumeScheduled||(e.resumeScheduled=!0,r.nextTick(q,t,e))}function q(t,e){h("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),V(t),e.flowing&&!e.reading&&t.read(0)}function V(t){var e=t._readableState;h("flow",e.flowing);while(e.flowing&&null!==t.read());}function K(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n);var n}function G(t){var e=t._readableState;h("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,r.nextTick(Q,e,t))}function Q(t,e){if(h("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var n=e._writableState;(!n||n.autoDestroy&&n.finished)&&e.destroy()}}function Z(t,e){for(var n=0,r=t.length;n=e.highWaterMark:e.length>0)||e.ended))return h("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?G(this):R(this),null;if(t=P(t,e),0===t&&e.ended)return 0===e.length&&G(this),null;var r,i=e.needReadable;return h("need readable",i),(0===e.length||e.length-t0?K(t,e):null,null===r?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&G(this)),null!==r&&this.emit("data",r),r},T.prototype._read=function(t){k(this,new S("_read()"))},T.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,h("pipe count=%d opts=%j",i.pipesCount,e);var s=(!e||!1!==e.end)&&t!==r.stdout&&t!==r.stderr,a=s?c:b;function u(t,e){h("onunpipe"),t===n&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,f())}function c(){h("onend"),t.end()}i.endEmitted?r.nextTick(a):n.once("end",a),t.on("unpipe",u);var l=U(n);t.on("drain",l);var d=!1;function f(){h("cleanup"),t.removeListener("close",g),t.removeListener("finish",y),t.removeListener("drain",l),t.removeListener("error",m),t.removeListener("unpipe",u),n.removeListener("end",c),n.removeListener("end",b),n.removeListener("data",p),d=!0,!i.awaitDrain||t._writableState&&!t._writableState.needDrain||l()}function p(e){h("ondata");var r=t.write(e);h("dest.write",r),!1===r&&((1===i.pipesCount&&i.pipes===t||i.pipesCount>1&&-1!==Z(i.pipes,t))&&!d&&(h("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function m(e){h("onerror",e),b(),t.removeListener("error",m),0===o(t,"error")&&k(t,e)}function g(){t.removeListener("finish",y),b()}function y(){h("onfinish"),t.removeListener("close",g),b()}function b(){h("unpipe"),n.unpipe(t)}return n.on("data",p),L(t,"error",m),t.once("close",g),t.once("finish",y),t.emit("pipe",n),i.flowing||(h("pipe resume"),n.resume()),t},T.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o0,!1!==i.flowing&&this.resume()):"readable"===t&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,h("on readable",i.length,i.reading),i.length?R(this):i.reading||r.nextTick(H,this))),n},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(t,e){var n=s.prototype.removeListener.call(this,t,e);return"readable"===t&&r.nextTick(W,this),n},T.prototype.removeAllListeners=function(t){var e=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||r.nextTick(W,this),e},T.prototype.resume=function(){var t=this._readableState;return t.flowing||(h("resume"),t.flowing=!t.readableListening,F(this,t)),t.paused=!1,this},T.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},T.prototype.wrap=function(t){var e=this,n=this._readableState,r=!1;for(var i in t.on("end",(function(){if(h("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){if(h("wrapped data"),n.decoder&&(i=n.decoder.write(i)),(!n.objectMode||null!==i&&void 0!==i)&&(n.objectMode||i&&i.length)){var o=e.push(i);o||(r=!0,t.pause())}})),t)void 0===this[i]&&"function"===typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o10&&n<20?t+"-ти":1===e?t+"-ви":2===e?t+"-ри":7===e||8===e?t+"-ми":t+"-ти"},week:{dow:1,doy:7}});return e}))},"694b":function(t,e,n){"use strict";t.exports=function t(e,n){if(e===n)return!0;if(e&&n&&"object"==typeof e&&"object"==typeof n){if(e.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(i=r;0!==i--;)if(!t(e[i],n[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(n).length)return!1;for(i=r;0!==i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!==i--;){var s=o[i];if(!t(e[s],n[s]))return!1}return!0}return e!==e&&n!==n}},"694f":function(t,e,n){const r=n("40ab"),i=(t,e,n)=>r(t,e,"<",n);t.exports=i},6983:function(t,e,n){t.exports=n("c98c")(n("2416"))},"69f2":function(t,e,n){e=t.exports=function(t){t=t.toLowerCase();var n=e[t];if(!n)throw new Error(t+" is not supported (we accept pull requests)");return new n};e.sha=n("087f"),e.sha1=n("7e78"),e.sha224=n("72aa"),e.sha256=n("a255"),e.sha384=n("b837"),e.sha512=n("4fd1")},"69f3":function(t,e,n){var r,i,o,s=n("7f9a"),a=n("da84"),u=n("e330"),c=n("861d"),l=n("9112"),h=n("1a2d"),d=n("c6cd"),f=n("f772"),p=n("d012"),m="Object already initialized",g=a.TypeError,y=a.WeakMap,b=function(t){return o(t)?i(t):r(t,{})},v=function(t){return function(e){var n;if(!c(e)||(n=i(e)).type!==t)throw g("Incompatible receiver, "+t+" required");return n}};if(s||d.state){var _=d.state||(d.state=new y),w=u(_.get),M=u(_.has),S=u(_.set);r=function(t,e){if(M(_,t))throw new g(m);return e.facade=t,S(_,t,e),e},i=function(t){return w(_,t)||{}},o=function(t){return M(_,t)}}else{var A=f("state");p[A]=!0,r=function(t,e){if(h(t,A))throw new g(m);return e.facade=t,l(t,A,e),e},i=function(t){return h(t,A)?t[A]:{}},o=function(t){return h(t,A)}}t.exports={set:r,get:i,has:o,enforce:b,getterFor:v}},"6a56":function(t,e,n){const r=n("c2a4"),i=n("0872"),o=(t,e,n)=>{let o=null,s=null,a=null;try{a=new i(e,n)}catch(u){return null}return t.forEach(t=>{a.test(t)&&(o&&-1!==s.compare(t)||(o=t,s=new r(o,n)))}),o};t.exports=o},"6a9d":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.toType=e.TypeOutput=e.bnToRlp=e.bnToUnpaddedBuffer=e.bnToHex=void 0;var r,i=n("ce43"),o=n("b332"),s=n("0c30");function a(t){return"0x".concat(t.toString(16))}function u(e){return(0,s.unpadBuffer)(e.toArrayLike(t))}function c(t){return u(t)}function l(t,e){if(null===t)return null;if(void 0!==t){if("string"===typeof t&&!(0,o.isHexString)(t))throw new Error("A string must be provided with a 0x-prefix, given: ".concat(t));if("number"===typeof t&&!Number.isSafeInteger(t))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");var n=(0,s.toBuffer)(t);if(e===r.Buffer)return n;if(e===r.BN)return new i.BN(n);if(e===r.Number){var a=new i.BN(n),u=new i.BN(Number.MAX_SAFE_INTEGER.toString());if(a.gt(u))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return a.toNumber()}return"0x".concat(n.toString("hex"))}}e.bnToHex=a,e.bnToUnpaddedBuffer=u,e.bnToRlp=c,function(t){t[t["Number"]=0]="Number",t[t["BN"]=1]="BN",t[t["Buffer"]=2]="Buffer",t[t["PrefixedHexString"]=3]="PrefixedHexString"}(r=e.TypeOutput||(e.TypeOutput={})),e.toType=l}).call(this,n("b639").Buffer)},"6aa2":function(t,e,n){"use strict";var r=n("7d92"),i=n("7658"),o=n("da3e");function s(t){if(!(this instanceof s))return new s(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=i.toArray(t.entropy,t.entropyEnc||"hex"),n=i.toArray(t.nonce,t.nonceEnc||"hex"),r=i.toArray(t.pers,t.persEnc||"hex");o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,n,r)}t.exports=s,s.prototype._init=function(t,e,n){var r=t.concat(e).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(n||[])),this._reseed=1},s.prototype.generate=function(t,e,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!==typeof e&&(r=n,n=e,e=null),n&&(n=i.toArray(n,r||"hex"),this._update(n));var o=[];while(o.lengtht.lastCursorId&&(t.lastCursorId=e.id),e})).filter((function(e){return M(e,t)})).sort((function(t,e){return t.time-e.time}));return n.forEach((function(e){t.messagesCallback&&(t.eMIs.add(e.id),t.messagesCallback(e.data))})),r.PROMISE_RESOLVED_VOID})):r.PROMISE_RESOLVED_VOID}function A(t){t.closed=!0,t.db.close()}function k(t,e){return t.writeBlockPromise=t.writeBlockPromise.then((function(){return p(t.db,t.uuid,e)})).then((function(){0===(0,r.randomInt)(0,10)&&v(t.db,t.options.idb.ttl)})),t.writeBlockPromise}function E(t,e,n){t.messagesCallbackTime=n,t.messagesCallback=e,S(t)}function L(t){if(r.isNode)return!1;if(!t.support3PC)return!1;var e=h();return!!e}function D(t){return 2*t.idb.fallbackInterval}e.type=l;var T={create:_,close:A,onMessage:E,postMessage:k,canBeUsed:L,type:l,averageResponseTime:D,microSeconds:s};e["default"]=T},"6b0d":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n}},"6b58":function(t,e,n){n("d9e2");var r=n("7037")["default"],i=n("3c96");function o(t,e){if(e&&("object"===r(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return i(t)}t.exports=o,t.exports.__esModule=!0,t.exports["default"]=t.exports},"6c02":function(t,e,n){"use strict";n.d(e,"a",(function(){return ee})),n.d(e,"b",(function(){return F}));var r=n("7a23");n("3f4e"); /*! * vue-router v4.0.16 * (c) 2022 Eduardo San Martin Morote * @license MIT */ const i="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag,o=t=>i?Symbol(t):"_vr_"+t,s=o("rvlm"),a=o("rvd"),u=o("r"),c=o("rl"),l=o("rvl"),h="undefined"!==typeof window;function d(t){return t.__esModule||i&&"Module"===t[Symbol.toStringTag]}const f=Object.assign;function p(t,e){const n={};for(const r in e){const i=e[r];n[r]=Array.isArray(i)?i.map(t):t(i)}return n}const m=()=>{};const g=/\/$/,y=t=>t.replace(g,"");function b(t,e,n="/"){let r,i={},o="",s="";const a=e.indexOf("?"),u=e.indexOf("#",a>-1?a:0);return a>-1&&(r=e.slice(0,a),o=e.slice(a+1,u>-1?u:e.length),i=t(o)),u>-1&&(r=r||e.slice(0,u),s=e.slice(u,e.length)),r=E(null!=r?r:e,n),{fullPath:r+(o&&"?")+o+s,path:r,query:i,hash:s}}function v(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function _(t,e){return e&&t.toLowerCase().startsWith(e.toLowerCase())?t.slice(e.length)||"/":t}function w(t,e,n){const r=e.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&M(e.matched[r],n.matched[i])&&S(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function M(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function S(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!A(t[n],e[n]))return!1;return!0}function A(t,e){return Array.isArray(t)?k(t,e):Array.isArray(e)?k(e,t):t===e}function k(t,e){return Array.isArray(e)?t.length===e.length&&t.every((t,n)=>t===e[n]):1===t.length&&t[0]===e}function E(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),r=t.split("/");let i,o,s=n.length-1;for(i=0;i({left:window.pageXOffset,top:window.pageYOffset});function N(t){let e;if("el"in t){const n=t.el,r="string"===typeof n&&n.startsWith("#");0;const i="string"===typeof n?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;e=I(i,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(null!=e.left?e.left:window.pageXOffset,null!=e.top?e.top:window.pageYOffset)}function P(t,e){const n=history.state?history.state.position-e:-1;return n+t}const C=new Map;function R(t,e){C.set(t,e)}function Y(t){const e=C.get(t);return C.delete(t),e}let B=()=>location.protocol+"//"+location.host;function z(t,e){const{pathname:n,search:r,hash:i}=e,o=t.indexOf("#");if(o>-1){let e=i.includes(t.slice(o))?t.slice(o).length:1,n=i.slice(e);return"/"!==n[0]&&(n="/"+n),_(n,"")}const s=_(n,t);return s+r+i}function U(t,e,n,r){let i=[],o=[],s=null;const a=({state:o})=>{const a=z(t,location),u=n.value,c=e.value;let l=0;if(o){if(n.value=a,e.value=o,s&&s===u)return void(s=null);l=c?o.position-c.position:0}else r(a);i.forEach(t=>{t(n.value,u,{delta:l,type:L.pop,direction:l?l>0?D.forward:D.back:D.unknown})})};function u(){s=n.value}function c(t){i.push(t);const e=()=>{const e=i.indexOf(t);e>-1&&i.splice(e,1)};return o.push(e),e}function l(){const{history:t}=window;t.state&&t.replaceState(f({},t.state,{scroll:j()}),"")}function h(){for(const t of o)t();o=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",l)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",l),{pauseListeners:u,listen:c,destroy:h}}function W(t,e,n,r=!1,i=!1){return{back:t,current:e,forward:n,replaced:r,position:window.history.length,scroll:i?j():null}}function H(t){const{history:e,location:n}=window,r={value:z(t,n)},i={value:e.state};function o(r,o,s){const a=t.indexOf("#"),u=a>-1?(n.host&&document.querySelector("base")?t:t.slice(a))+r:B()+t+r;try{e[s?"replaceState":"pushState"](o,"",u),i.value=o}catch(c){console.error(c),n[s?"replace":"assign"](u)}}function s(t,n){const s=f({},e.state,W(i.value.back,t,i.value.forward,!0),n,{position:i.value.position});o(t,s,!0),r.value=t}function a(t,n){const s=f({},i.value,e.state,{forward:t,scroll:j()});o(s.current,s,!0);const a=f({},W(r.value,t,null),{position:s.position+1},n);o(t,a,!1),r.value=t}return i.value||o(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0),{location:r,state:i,push:a,replace:s}}function F(t){t=T(t);const e=H(t),n=U(t,e.state,e.location,e.replace);function r(t,e=!0){e||n.pauseListeners(),history.go(t)}const i=f({location:"",base:t,go:r,createHref:x.bind(null,t)},e,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>e.state.value}),i}function q(t){return"string"===typeof t||t&&"object"===typeof t}function V(t){return"string"===typeof t||"symbol"===typeof t}const K={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},G=o("nf");var Q;(function(t){t[t["aborted"]=4]="aborted",t[t["cancelled"]=8]="cancelled",t[t["duplicated"]=16]="duplicated"})(Q||(Q={}));function Z(t,e){return f(new Error,{type:t,[G]:!0},e)}function J(t,e){return t instanceof Error&&G in t&&(null==e||!!(t.type&e))}const $="[^/]+?",X={sensitive:!1,strict:!1,start:!0,end:!0},tt=/[.+*?^${}()[\]/\\]/g;function et(t,e){const n=f({},X,e),r=[];let i=n.start?"^":"";const o=[];for(const l of t){const t=l.length?[]:[90];n.strict&&!l.length&&(i+="/");for(let e=0;e1&&(n.endsWith("/")?n=n.slice(0,-1):r=!0)}n+=l}}return n}return{re:s,score:r,keys:o,parse:a,stringify:u}}function nt(t,e){let n=0;while(ne.length?1===e.length&&80===e[0]?1:-1:0}function rt(t,e){let n=0;const r=t.score,i=e.score;while(n0&&e[e.length-1]<0}const ot={type:0,value:""},st=/[a-zA-Z0-9_]/;function at(t){if(!t)return[[]];if("/"===t)return[[ot]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(t){throw new Error(`ERR (${n})/"${c}": ${t}`)}let n=0,r=n;const i=[];let o;function s(){o&&i.push(o),o=[]}let a,u=0,c="",l="";function h(){c&&(0===n?o.push({type:0,value:c}):1===n||2===n||3===n?(o.length>1&&("*"===a||"+"===a)&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:c,regexp:l,repeatable:"*"===a||"+"===a,optional:"*"===a||"?"===a})):e("Invalid state to consume buffer"),c="")}function d(){c+=a}while(u{s(d)}:m}function s(t){if(V(t)){const e=r.get(t);e&&(r.delete(t),n.splice(n.indexOf(e),1),e.children.forEach(s),e.alias.forEach(s))}else{const e=n.indexOf(t);e>-1&&(n.splice(e,1),t.record.name&&r.delete(t.record.name),t.children.forEach(s),t.alias.forEach(s))}}function a(){return n}function u(t){let e=0;while(e=0&&(t.record.path!==n[e].record.path||!gt(t,n[e])))e++;n.splice(e,0,t),t.record.name&&!ft(t)&&r.set(t.record.name,t)}function c(t,e){let i,o,s,a={};if("name"in t&&t.name){if(i=r.get(t.name),!i)throw Z(1,{location:t});s=i.record.name,a=f(lt(e.params,i.keys.filter(t=>!t.optional).map(t=>t.name)),t.params),o=i.stringify(a)}else if("path"in t)o=t.path,i=n.find(t=>t.re.test(o)),i&&(a=i.parse(o),s=i.record.name);else{if(i=e.name?r.get(e.name):n.find(t=>t.re.test(e.path)),!i)throw Z(1,{location:t,currentLocation:e});s=i.record.name,a=f({},e.params,t.params),o=i.stringify(a)}const u=[];let c=i;while(c)u.unshift(c.record),c=c.parent;return{name:s,path:o,params:a,matched:u,meta:pt(u)}}return e=mt({strict:!1,end:!0,sensitive:!1},e),t.forEach(t=>o(t)),{addRoute:o,resolve:c,removeRoute:s,getRoutes:a,getRecordMatcher:i}}function lt(t,e){const n={};for(const r of e)r in t&&(n[r]=t[r]);return n}function ht(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:dt(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||{}:{default:t.component}}}function dt(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const r in t.components)e[r]="boolean"===typeof n?n:n[r];return e}function ft(t){while(t){if(t.record.aliasOf)return!0;t=t.parent}return!1}function pt(t){return t.reduce((t,e)=>f(t,e.meta),{})}function mt(t,e){const n={};for(const r in t)n[r]=r in e?e[r]:t[r];return n}function gt(t,e){return e.children.some(e=>e===t||gt(t,e))}const yt=/#/g,bt=/&/g,vt=/\//g,_t=/=/g,wt=/\?/g,Mt=/\+/g,St=/%5B/g,At=/%5D/g,kt=/%5E/g,Et=/%60/g,Lt=/%7B/g,Dt=/%7C/g,Tt=/%7D/g,Ot=/%20/g;function xt(t){return encodeURI(""+t).replace(Dt,"|").replace(St,"[").replace(At,"]")}function It(t){return xt(t).replace(Lt,"{").replace(Tt,"}").replace(kt,"^")}function jt(t){return xt(t).replace(Mt,"%2B").replace(Ot,"+").replace(yt,"%23").replace(bt,"%26").replace(Et,"`").replace(Lt,"{").replace(Tt,"}").replace(kt,"^")}function Nt(t){return jt(t).replace(_t,"%3D")}function Pt(t){return xt(t).replace(yt,"%23").replace(wt,"%3F")}function Ct(t){return null==t?"":Pt(t).replace(vt,"%2F")}function Rt(t){try{return decodeURIComponent(""+t)}catch(e){}return""+t}function Yt(t){const e={};if(""===t||"?"===t)return e;const n="?"===t[0],r=(n?t.slice(1):t).split("&");for(let i=0;it&&jt(t)):[r&&jt(r)];i.forEach(t=>{void 0!==t&&(e+=(e.length?"&":"")+n,null!=t&&(e+="="+t))})}return e}function zt(t){const e={};for(const n in t){const r=t[n];void 0!==r&&(e[n]=Array.isArray(r)?r.map(t=>null==t?null:""+t):null==r?r:""+r)}return e}function Ut(){let t=[];function e(e){return t.push(e),()=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)}}function n(){t=[]}return{add:e,list:()=>t,reset:n}}function Wt(t,e,n,r,i){const o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,a)=>{const u=t=>{!1===t?a(Z(4,{from:n,to:e})):t instanceof Error?a(t):q(t)?a(Z(2,{from:e,to:t})):(o&&r.enterCallbacks[i]===o&&"function"===typeof t&&o.push(t),s())},c=t.call(r&&r.instances[i],e,n,u);let l=Promise.resolve(c);t.length<3&&(l=l.then(u)),l.catch(t=>a(t))})}function Ht(t,e,n,r){const i=[];for(const o of t)for(const t in o.components){let s=o.components[t];if("beforeRouteEnter"===e||o.instances[t])if(Ft(s)){const a=s.__vccOpts||s,u=a[e];u&&i.push(Wt(u,n,r,o,t))}else{let a=s();0,i.push(()=>a.then(i=>{if(!i)return Promise.reject(new Error(`Couldn't resolve component "${t}" at "${o.path}"`));const s=d(i)?i.default:i;o.components[t]=s;const a=s.__vccOpts||s,u=a[e];return u&&Wt(u,n,r,o,t)()}))}}return i}function Ft(t){return"object"===typeof t||"displayName"in t||"props"in t||"__vccOpts"in t}function qt(t){const e=Object(r["inject"])(u),n=Object(r["inject"])(c),i=Object(r["computed"])(()=>e.resolve(Object(r["unref"])(t.to))),o=Object(r["computed"])(()=>{const{matched:t}=i.value,{length:e}=t,r=t[e-1],o=n.matched;if(!r||!o.length)return-1;const s=o.findIndex(M.bind(null,r));if(s>-1)return s;const a=Zt(t[e-2]);return e>1&&Zt(r)===a&&o[o.length-1].path!==a?o.findIndex(M.bind(null,t[e-2])):s}),s=Object(r["computed"])(()=>o.value>-1&&Qt(n.params,i.value.params)),a=Object(r["computed"])(()=>o.value>-1&&o.value===n.matched.length-1&&S(n.params,i.value.params));function l(n={}){return Gt(n)?e[Object(r["unref"])(t.replace)?"replace":"push"](Object(r["unref"])(t.to)).catch(m):Promise.resolve()}return{route:i,href:Object(r["computed"])(()=>i.value.href),isActive:s,isExactActive:a,navigate:l}}const Vt=Object(r["defineComponent"])({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:qt,setup(t,{slots:e}){const n=Object(r["reactive"])(qt(t)),{options:i}=Object(r["inject"])(u),o=Object(r["computed"])(()=>({[Jt(t.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[Jt(t.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=e.default&&e.default(n);return t.custom?i:Object(r["h"])("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}}),Kt=Vt;function Gt(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&(void 0===t.button||0===t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function Qt(t,e){for(const n in e){const r=e[n],i=t[n];if("string"===typeof r){if(r!==i)return!1}else if(!Array.isArray(i)||i.length!==r.length||r.some((t,e)=>t!==i[e]))return!1}return!0}function Zt(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const Jt=(t,e,n)=>null!=t?t:null!=e?e:n,$t=Object(r["defineComponent"])({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const i=Object(r["inject"])(l),o=Object(r["computed"])(()=>t.route||i.value),u=Object(r["inject"])(a,0),c=Object(r["computed"])(()=>o.value.matched[u]);Object(r["provide"])(a,u+1),Object(r["provide"])(s,c),Object(r["provide"])(l,o);const h=Object(r["ref"])();return Object(r["watch"])(()=>[h.value,c.value,t.name],([t,e,n],[r,i,o])=>{e&&(e.instances[n]=t,i&&i!==e&&t&&t===r&&(e.leaveGuards.size||(e.leaveGuards=i.leaveGuards),e.updateGuards.size||(e.updateGuards=i.updateGuards))),!t||!e||i&&M(e,i)&&r||(e.enterCallbacks[n]||[]).forEach(e=>e(t))},{flush:"post"}),()=>{const i=o.value,s=c.value,a=s&&s.components[t.name],u=t.name;if(!a)return Xt(n.default,{Component:a,route:i});const l=s.props[t.name],d=l?!0===l?i.params:"function"===typeof l?l(i):l:null,p=t=>{t.component.isUnmounted&&(s.instances[u]=null)},m=Object(r["h"])(a,f({},d,e,{onVnodeUnmounted:p,ref:h}));return Xt(n.default,{Component:m,route:i})||m}}});function Xt(t,e){if(!t)return null;const n=t(e);return 1===n.length?n[0]:n}const te=$t;function ee(t){const e=ct(t.routes,t),n=t.parseQuery||Yt,i=t.stringifyQuery||Bt,o=t.history;const s=Ut(),a=Ut(),d=Ut(),g=Object(r["shallowRef"])(K);let y=K;h&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const _=p.bind(null,t=>""+t),M=p.bind(null,Ct),S=p.bind(null,Rt);function A(t,n){let r,i;return V(t)?(r=e.getRecordMatcher(t),i=n):i=t,e.addRoute(i,r)}function k(t){const n=e.getRecordMatcher(t);n&&e.removeRoute(n)}function E(){return e.getRoutes().map(t=>t.record)}function D(t){return!!e.getRecordMatcher(t)}function T(t,r){if(r=f({},r||g.value),"string"===typeof t){const i=b(n,t,r.path),s=e.resolve({path:i.path},r),a=o.createHref(i.fullPath);return f(i,s,{params:S(s.params),hash:Rt(i.hash),redirectedFrom:void 0,href:a})}let s;if("path"in t)s=f({},t,{path:b(n,t.path,r.path).path});else{const e=f({},t.params);for(const t in e)null==e[t]&&delete e[t];s=f({},t,{params:M(t.params)}),r.params=M(r.params)}const a=e.resolve(s,r),u=t.hash||"";a.params=_(S(a.params));const c=v(i,f({},t,{hash:It(u),path:a.path})),l=o.createHref(c);return f({fullPath:c,hash:u,query:i===Bt?zt(t.query):t.query||{}},a,{redirectedFrom:void 0,href:l})}function O(t){return"string"===typeof t?b(n,t,g.value.path):f({},t)}function x(t,e){if(y!==t)return Z(8,{from:e,to:t})}function I(t){return z(t)}function C(t){return I(f(O(t),{replace:!0}))}function B(t){const e=t.matched[t.matched.length-1];if(e&&e.redirect){const{redirect:n}=e;let r="function"===typeof n?n(t):n;return"string"===typeof r&&(r=r.includes("?")||r.includes("#")?r=O(r):{path:r},r.params={}),f({query:t.query,hash:t.hash,params:t.params},r)}}function z(t,e){const n=y=T(t),r=g.value,o=t.state,s=t.force,a=!0===t.replace,u=B(n);if(u)return z(f(O(u),{state:o,force:s,replace:a}),e||n);const c=n;let l;return c.redirectedFrom=e,!s&&w(i,r,n)&&(l=Z(16,{to:c,from:r}),rt(r,r,!0,!1)),(l?Promise.resolve(l):W(c,r)).catch(t=>J(t)?J(t,2)?t:nt(t):tt(t,c,r)).then(t=>{if(t){if(J(t,2))return z(f(O(t.to),{state:o,force:s,replace:a}),e||c)}else t=F(c,r,!0,a,o);return H(c,r,t),t})}function U(t,e){const n=x(t,e);return n?Promise.reject(n):Promise.resolve()}function W(t,e){let n;const[r,i,o]=re(t,e);n=Ht(r.reverse(),"beforeRouteLeave",t,e);for(const s of r)s.leaveGuards.forEach(r=>{n.push(Wt(r,t,e))});const u=U.bind(null,t,e);return n.push(u),ne(n).then(()=>{n=[];for(const r of s.list())n.push(Wt(r,t,e));return n.push(u),ne(n)}).then(()=>{n=Ht(i,"beforeRouteUpdate",t,e);for(const r of i)r.updateGuards.forEach(r=>{n.push(Wt(r,t,e))});return n.push(u),ne(n)}).then(()=>{n=[];for(const r of t.matched)if(r.beforeEnter&&!e.matched.includes(r))if(Array.isArray(r.beforeEnter))for(const i of r.beforeEnter)n.push(Wt(i,t,e));else n.push(Wt(r.beforeEnter,t,e));return n.push(u),ne(n)}).then(()=>(t.matched.forEach(t=>t.enterCallbacks={}),n=Ht(o,"beforeRouteEnter",t,e),n.push(u),ne(n))).then(()=>{n=[];for(const r of a.list())n.push(Wt(r,t,e));return n.push(u),ne(n)}).catch(t=>J(t,8)?t:Promise.reject(t))}function H(t,e,n){for(const r of d.list())r(t,e,n)}function F(t,e,n,r,i){const s=x(t,e);if(s)return s;const a=e===K,u=h?history.state:{};n&&(r||a?o.replace(t.fullPath,f({scroll:a&&u&&u.scroll},i)):o.push(t.fullPath,i)),g.value=t,rt(t,e,n,a),nt()}let q;function G(){q||(q=o.listen((t,e,n)=>{const r=T(t),i=B(r);if(i)return void z(f(i,{replace:!0}),r).catch(m);y=r;const s=g.value;h&&R(P(s.fullPath,n.delta),j()),W(r,s).catch(t=>J(t,12)?t:J(t,2)?(z(t.to,r).then(t=>{J(t,20)&&!n.delta&&n.type===L.pop&&o.go(-1,!1)}).catch(m),Promise.reject()):(n.delta&&o.go(-n.delta,!1),tt(t,r,s))).then(t=>{t=t||F(r,s,!1),t&&(n.delta?o.go(-n.delta,!1):n.type===L.pop&&J(t,20)&&o.go(-1,!1)),H(r,s,t)}).catch(m)}))}let Q,$=Ut(),X=Ut();function tt(t,e,n){nt(t);const r=X.list();return r.length?r.forEach(r=>r(t,e,n)):console.error(t),Promise.reject(t)}function et(){return Q&&g.value!==K?Promise.resolve():new Promise((t,e)=>{$.add([t,e])})}function nt(t){return Q||(Q=!t,G(),$.list().forEach(([e,n])=>t?n(t):e()),$.reset()),t}function rt(e,n,i,o){const{scrollBehavior:s}=t;if(!h||!s)return Promise.resolve();const a=!i&&Y(P(e.fullPath,0))||(o||!i)&&history.state&&history.state.scroll||null;return Object(r["nextTick"])().then(()=>s(e,n,a)).then(t=>t&&N(t)).catch(t=>tt(t,e,n))}const it=t=>o.go(t);let ot;const st=new Set,at={currentRoute:g,addRoute:A,removeRoute:k,hasRoute:D,getRoutes:E,resolve:T,options:t,push:I,replace:C,go:it,back:()=>it(-1),forward:()=>it(1),beforeEach:s.add,beforeResolve:a.add,afterEach:d.add,onError:X.add,isReady:et,install(t){const e=this;t.component("RouterLink",Kt),t.component("RouterView",te),t.config.globalProperties.$router=e,Object.defineProperty(t.config.globalProperties,"$route",{enumerable:!0,get:()=>Object(r["unref"])(g)}),h&&!ot&&g.value===K&&(ot=!0,I(o.location).catch(t=>{0}));const n={};for(const o in K)n[o]=Object(r["computed"])(()=>g.value[o]);t.provide(u,e),t.provide(c,Object(r["reactive"])(n)),t.provide(l,g);const i=t.unmount;st.add(t),t.unmount=function(){st.delete(t),st.size<1&&(y=K,q&&q(),q=null,g.value=K,ot=!1,Q=!1),i()}}};return at}function ne(t){return t.reduce((t,e)=>t.then(()=>e()),Promise.resolve())}function re(t,e){const n=[],r=[],i=[],o=Math.max(e.matched.length,t.matched.length);for(let s=0;sM(t,o))?r.push(o):n.push(o));const a=t.matched[s];a&&(e.matched.find(t=>M(t,a))||i.push(a))}return[n,r,i]}},"6c68":function(t,e,n){var r=n("f950"),i="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";t.exports=r(i)},"6ce3":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return e}))},"6d79":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"},n=t.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(t){var n=t%10,r=t>=100?100:null;return t+(e[t]||e[n]||e[r])},week:{dow:1,doy:7}});return n}))},"6d7f":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WalletAdapterNetwork=void 0,function(t){t["Mainnet"]="mainnet-beta",t["Testnet"]="testnet",t["Devnet"]="devnet"}(e.WalletAdapterNetwork||(e.WalletAdapterNetwork={}))},"6d83":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}});return e}))},"6e2c":function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function s(t){try{u(r.next(t))}catch(e){o(e)}}function a(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(s,a)}u((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.HuobiWalletAdapter=e.HuobiWalletName=void 0;const i=n("0a37"),o=n("64b9");e.HuobiWalletName="HuobiWallet";class s extends i.BaseMessageSignerWalletAdapter{constructor(t={}){super(),this.name=e.HuobiWalletName,this.url="https://www.huobiwallet.io",this.icon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjI0IiBoZWlnaHQ9IjIyNCIgdmlld0JveD0iMCAwIDIyNCAyMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMCAwTDIyNCAwVjIyNEgwTDAgMFoiIGZpbGw9IiMyMTU3RTIiLz4KPHBhdGggZD0iTTEzMS4wNTkgODEuMTc3MUMxMzEuMDU5IDU3Ljc1MzEgMTE5LjQ1OCAzNy42MzE1IDExMC42MjUgMzEuMDcyOEMxMTAuNjI1IDMxLjA3MjggMTA5Ljk1MyAzMC43MDQyIDExMCAzMS42MjU4VjMxLjYyNThDMTA5LjI2NSA3Ni44MzAzIDg1Ljc2NzIgODkuMDg3NSA3Mi44MzggMTA1LjU4NEM0My4wMjQxIDE0My42NzcgNzAuNzU4NyAxODUuNDU2IDk4Ljk5MzUgMTkzLjEzNkMxMTQuNzk5IDE5Ny40NTIgOTUuMzUwOCAxODUuNDU2IDkyLjg0OTQgMTYwLjIzNUM4OS44MDA3IDEyOS43NDUgMTMxLjA1OSAxMDYuNDQ0IDEzMS4wNTkgODEuMTc3MVoiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8xMTAxXzEyNSkiLz4KPHBhdGggZD0iTTE0My41OTcgOTYuMzE3NEMxNDMuNDA5IDk2LjE5NDMgMTQzLjE1OCA5Ni4xMDIgMTQyLjk4NiA5Ni4zOTQzQzE0Mi40ODQgMTAyLjEwMiAxMzYuNTYgMTE0LjI4NiAxMjkuMDM3IDEyNS40ODZDMTAzLjU1MiAxNjMuNDU1IDExOC4wNjUgMTgxLjc2MiAxMjYuMjQ3IDE5MS42MzlDMTMwLjk0OSAxOTcuMzQ3IDEyNi4yNDcgMTkxLjYzOSAxMzguMDk2IDE4NS44MDhDMTUyLjczNSAxNzcuMDkyIDE2Mi4yMzQgMTYyLjAyIDE2My42NDMgMTQ1LjI3QzE2NS4yMzMgMTI2Ljc1OCAxNTcuNzk4IDEwOC42IDE0My41OTcgOTYuMzE3NFoiIGZpbGw9InVybCgjcGFpbnQxX2xpbmVhcl8xMTAxXzEyNSkiLz4KPGRlZnM+CjxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQwX2xpbmVhcl8xMTAxXzEyNSIgeDE9IjEyMi40MDEiIHkxPSIyMDkuMjk1IiB4Mj0iMTc4LjY2MiIgeTI9IjExMC40NDciIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iI0Y3RjZGRiIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IndoaXRlIi8+CjwvbGluZWFyR3JhZGllbnQ+CjxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQxX2xpbmVhcl8xMTAxXzEyNSIgeDE9IjE1Ny44NjEiIHkxPSIyMDMuMTc3IiB4Mj0iMTg5LjAxNCIgeTI9IjE0MC4wMjIiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iI0Y3RjZGRiIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IndoaXRlIi8+CjwvbGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg==",this._readyState="undefined"===typeof window||"undefined"===typeof document?i.WalletReadyState.Unsupported:i.WalletReadyState.NotDetected,this._disconnected=()=>{const t=this._wallet;t&&(t.off("disconnect",this._disconnected),this._wallet=null,this._publicKey=null,this.emit("error",new i.WalletDisconnectedError),this.emit("disconnect"))},this._connecting=!1,this._wallet=null,this._publicKey=null,this._readyState!==i.WalletReadyState.Unsupported&&(0,i.scopePollingDetectionStrategy)(()=>{var t;return!!(null===(t=window.huobiWallet)||void 0===t?void 0:t.isHuobiWallet)&&(this._readyState=i.WalletReadyState.Installed,this.emit("readyStateChange",this._readyState),!0)})}get publicKey(){return this._publicKey}get connecting(){return this._connecting}get connected(){var t;return!!(null===(t=this._wallet)||void 0===t?void 0:t.isConnected)}get readyState(){return this._readyState}connect(){return r(this,void 0,void 0,(function*(){try{if(this.connected||this.connecting)return;if(this._readyState!==i.WalletReadyState.Installed)throw new i.WalletNotReadyError;this._connecting=!0;const e=window.huobiWallet;try{yield e.connect()}catch(t){throw new i.WalletConnectionError(null===t||void 0===t?void 0:t.message,t)}if(!e.publicKey)throw new i.WalletAccountError;let n;try{n=new o.PublicKey(e.publicKey.toBytes())}catch(t){throw new i.WalletPublicKeyError(null===t||void 0===t?void 0:t.message,t)}e.on("disconnect",this._disconnected),this._wallet=e,this._publicKey=n,this.emit("connect",n)}catch(t){throw this.emit("error",t),t}finally{this._connecting=!1}}))}disconnect(){return r(this,void 0,void 0,(function*(){const t=this._wallet;t&&(t.off("disconnect",this._disconnected),this._wallet=null,this._publicKey=null,this.emit("disconnect"))}))}signTransaction(t){return r(this,void 0,void 0,(function*(){try{const n=this._wallet;if(!n)throw new i.WalletNotConnectedError;try{return(yield n.signTransaction(t))||t}catch(e){throw new i.WalletSignTransactionError(null===e||void 0===e?void 0:e.message,e)}}catch(e){throw this.emit("error",e),e}}))}signAllTransactions(t){return r(this,void 0,void 0,(function*(){try{const n=this._wallet;if(!n)throw new i.WalletNotConnectedError;try{return(yield n.signAllTransactions(t))||t}catch(e){throw new i.WalletSignTransactionError(null===e||void 0===e?void 0:e.message,e)}}catch(e){throw this.emit("error",e),e}}))}signMessage(t){return r(this,void 0,void 0,(function*(){try{const n=this._wallet;if(!n)throw new i.WalletNotConnectedError;try{const{signature:e}=yield n.signMessage(t);return e}catch(e){throw new i.WalletSignTransactionError(null===e||void 0===e?void 0:e.message,e)}}catch(e){throw this.emit("error",e),e}}))}}e.HuobiWalletAdapter=s},"6e98":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){switch(this.day()){case 0:return"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT";default:return"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"}},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return e}))},"6eed":function(t,e,n){"use strict";var r=n("c3c0"),i=n("edc9"),o=n("aa56"),s=n("da3e"),a=r.sum32,u=r.sum32_4,c=r.sum32_5,l=o.ch32,h=o.maj32,d=o.s0_256,f=o.s1_256,p=o.g0_256,m=o.g1_256,g=i.BlockHash,y=[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 b(){if(!(this instanceof b))return new b;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=y,this.W=new Array(64)}r.inherits(b,g),t.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;r=5)){t.next=3;break}return window.clearInterval(v),t.abrupt("return",r(new Error("Could not post message after 5 attempts to socket channel")));case 3:if(!f||!f.connected){t.next=8;break}return window.clearInterval(v),t.abrupt("return",m());case 8:g++;case 9:case"end":return t.stop()}}),t)}))),500);case 11:case"end":return s.stop()}}),s)}))))}))}function _(t,e,n){var r=b(t),s=p(r),l=(0,a.io)(e,{transports:["websocket","polling"],withCredentials:!0,reconnectionDelayMax:1e4,reconnectionAttempts:10}),d=function e(){y[t]?l.connected||"visible"!==document.visibilityState||l.once("connect",(0,o["default"])(i["default"].mark((function t(){return i["default"].wrap((function(t){while(1)switch(t.prev=t.next){case 0:l.emit("check_auth_status",(0,u.getPublic)(s).toString("hex"));case 1:case"end":return t.stop()}}),t)})))):document.removeEventListener("visibilitychange",e)},f=function(){var t=(0,o["default"])(i["default"].mark((function t(e){var r;return i["default"].wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,(0,c.decryptData)(s.toString("hex"),e);case 3:r=t.sent,n(r),t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](0),h.log.error(t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})));return function(e){return t.apply(this,arguments)}}();return l.on("connect_error",(function(){l.io.opts.transports=["polling","websocket"]})),l.on("connect",(0,o["default"])(i["default"].mark((function t(){var e;return i["default"].wrap((function(t){while(1)switch(t.prev=t.next){case 0:h.log.debug("connected with socket"),l.emit("check_auth_status",(0,u.getPublic)(s).toString("hex")),e=l.io.engine,h.log.debug("initially connected to",e.transport.name),e.once("upgrade",(function(){h.log.debug("upgraded",e.transport.name)})),e.on("close",(function(t){h.log.debug("connection closed",t)}));case 6:case"end":return t.stop()}}),t)})))),l.on("error",(function(t){h.log.debug("socket errored",t),l.disconnect()})),l.once("disconnect",(function(){h.log.debug("socket disconnected"),y[t]&&d()})),l.on("success",f),document.addEventListener("visibilitychange",d),y[t]=l,f}function w(t){y[t.channelName]&&y[t.channelName].disconnect()}function M(t,e){if(e=(0,d.fillOptionsWithDefaults)(e),!k(e))throw new Error("BroadcastChannel: server cannot be used");var n=(0,h.randomToken)(),r=new s.ObliviousSet(e.server.removeTimeout),i={channelName:t,uuid:n,eMIs:r,serverUrl:e.server.url};return i.listener=_(t,e.server.url,(function(t){i.messagesCallback&&t.uuid!==n&&t.token&&!r.has(t.token)&&(r.add(t.token),i.messagesCallback(t.data))})),i}function S(t){window.setTimeout((function(){w(t),delete y[t.channelName]}),1e3)}function A(t,e,n){t.messagesCallbackTime=n,t.messagesCallback=e}function k(){return!0}function E(){var t=500;return t}var L={create:M,close:S,onMessage:A,postMessage:v,canBeUsed:k,type:g,averageResponseTime:E,microSeconds:f};e["default"]=L},"6f59":function(t,e,n){(function(e){var r=n("566b"),i=n("ab52"),o=n(10),s=function(){},a=/^v?\.0/.test(e.version),u=function(t){return"function"===typeof t},c=function(t){return!!a&&(!!o&&((t instanceof(o.ReadStream||s)||t instanceof(o.WriteStream||s))&&u(t.close)))},l=function(t){return t.setHeader&&u(t.abort)},h=function(t,e,n,o){o=r(o);var a=!1;t.on("close",(function(){a=!0})),i(t,{readable:e,writable:n},(function(t){if(t)return o(t);a=!0,o()}));var h=!1;return function(e){if(!a&&!h)return h=!0,c(t)?t.close(s):l(t)?t.abort():u(t.destroy)?t.destroy():void o(e||new Error("stream was destroyed"))}},d=function(t){t()},f=function(t,e){return t.pipe(e)},p=function(){var t,e=Array.prototype.slice.call(arguments),n=u(e[e.length-1]||s)&&e.pop()||s;if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Error("pump requires two streams per minimum");var r=e.map((function(i,o){var s=o0;return h(i,s,a,(function(e){t||(t=e),e&&r.forEach(d),s||(r.forEach(d),n(t))}))}));return e.reduce(f)};t.exports=p}).call(this,n("4362"))},"6f82":function(t,e,n){"use strict";(function(t){var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.getLength=e.decode=e.encode=void 0;var i=r(n("399f"));function o(e){if(Array.isArray(e)){for(var n=[],r=0;re.length)throw new Error("invalid rlp: total length is larger than the data");if(o=e.slice(r,h),0===o.length)throw new Error("invalid rlp, List has a invalid length");while(o.length)a=l(o),u.push(a.data),o=a.remainder;return{data:u,remainder:e.slice(h)}}function h(t){return"0x"===t.slice(0,2)}function d(t){return"string"!==typeof t?t:h(t)?t.slice(2):t}function f(t){if(t<0)throw new Error("Invalid integer as argument, must be unsigned!");var e=t.toString(16);return e.length%2?"0"+e:e}function p(t){return t.length%2?"0"+t:t}function m(e){var n=f(e);return t.from(n,"hex")}function g(e){if(!t.isBuffer(e)){if("string"===typeof e)return h(e)?t.from(p(d(e)),"hex"):t.from(e);if("number"===typeof e||"bigint"===typeof e)return e?m(e):t.from([]);if(null===e||void 0===e)return t.from([]);if(e instanceof Uint8Array)return t.from(e);if(i.default.isBN(e))return t.from(e.toArray());throw new Error("invalid type")}return e}e.encode=o,e.decode=u,e.getLength=c}).call(this,n("b639").Buffer)},"6fde":function(t,e){const n=[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];e.p1600=function(t){for(let e=0;e<24;++e){const r=t[0]^t[10]^t[20]^t[30]^t[40],i=t[1]^t[11]^t[21]^t[31]^t[41],o=t[2]^t[12]^t[22]^t[32]^t[42],s=t[3]^t[13]^t[23]^t[33]^t[43],a=t[4]^t[14]^t[24]^t[34]^t[44],u=t[5]^t[15]^t[25]^t[35]^t[45],c=t[6]^t[16]^t[26]^t[36]^t[46],l=t[7]^t[17]^t[27]^t[37]^t[47],h=t[8]^t[18]^t[28]^t[38]^t[48],d=t[9]^t[19]^t[29]^t[39]^t[49];let f=h^(o<<1|s>>>31),p=d^(s<<1|o>>>31);const m=t[0]^f,g=t[1]^p,y=t[10]^f,b=t[11]^p,v=t[20]^f,_=t[21]^p,w=t[30]^f,M=t[31]^p,S=t[40]^f,A=t[41]^p;f=r^(a<<1|u>>>31),p=i^(u<<1|a>>>31);const k=t[2]^f,E=t[3]^p,L=t[12]^f,D=t[13]^p,T=t[22]^f,O=t[23]^p,x=t[32]^f,I=t[33]^p,j=t[42]^f,N=t[43]^p;f=o^(c<<1|l>>>31),p=s^(l<<1|c>>>31);const P=t[4]^f,C=t[5]^p,R=t[14]^f,Y=t[15]^p,B=t[24]^f,z=t[25]^p,U=t[34]^f,W=t[35]^p,H=t[44]^f,F=t[45]^p;f=a^(h<<1|d>>>31),p=u^(d<<1|h>>>31);const q=t[6]^f,V=t[7]^p,K=t[16]^f,G=t[17]^p,Q=t[26]^f,Z=t[27]^p,J=t[36]^f,$=t[37]^p,X=t[46]^f,tt=t[47]^p;f=c^(r<<1|i>>>31),p=l^(i<<1|r>>>31);const et=t[8]^f,nt=t[9]^p,rt=t[18]^f,it=t[19]^p,ot=t[28]^f,st=t[29]^p,at=t[38]^f,ut=t[39]^p,ct=t[48]^f,lt=t[49]^p,ht=m,dt=g,ft=b<<4|y>>>28,pt=y<<4|b>>>28,mt=v<<3|_>>>29,gt=_<<3|v>>>29,yt=M<<9|w>>>23,bt=w<<9|M>>>23,vt=S<<18|A>>>14,_t=A<<18|S>>>14,wt=k<<1|E>>>31,Mt=E<<1|k>>>31,St=D<<12|L>>>20,At=L<<12|D>>>20,kt=T<<10|O>>>22,Et=O<<10|T>>>22,Lt=I<<13|x>>>19,Dt=x<<13|I>>>19,Tt=j<<2|N>>>30,Ot=N<<2|j>>>30,xt=C<<30|P>>>2,It=P<<30|C>>>2,jt=R<<6|Y>>>26,Nt=Y<<6|R>>>26,Pt=z<<11|B>>>21,Ct=B<<11|z>>>21,Rt=U<<15|W>>>17,Yt=W<<15|U>>>17,Bt=F<<29|H>>>3,zt=H<<29|F>>>3,Ut=q<<28|V>>>4,Wt=V<<28|q>>>4,Ht=G<<23|K>>>9,Ft=K<<23|G>>>9,qt=Q<<25|Z>>>7,Vt=Z<<25|Q>>>7,Kt=J<<21|$>>>11,Gt=$<<21|J>>>11,Qt=tt<<24|X>>>8,Zt=X<<24|tt>>>8,Jt=et<<27|nt>>>5,$t=nt<<27|et>>>5,Xt=rt<<20|it>>>12,te=it<<20|rt>>>12,ee=st<<7|ot>>>25,ne=ot<<7|st>>>25,re=at<<8|ut>>>24,ie=ut<<8|at>>>24,oe=ct<<14|lt>>>18,se=lt<<14|ct>>>18;t[0]=ht^~St&Pt,t[1]=dt^~At&Ct,t[10]=Ut^~Xt&mt,t[11]=Wt^~te>,t[20]=wt^~jt&qt,t[21]=Mt^~Nt&Vt,t[30]=Jt^~ft&kt,t[31]=$t^~pt&Et,t[40]=xt^~Ht&ee,t[41]=It^~Ft&ne,t[2]=St^~Pt&Kt,t[3]=At^~Ct&Gt,t[12]=Xt^~mt&Lt,t[13]=te^~gt&Dt,t[22]=jt^~qt&re,t[23]=Nt^~Vt&ie,t[32]=ft^~kt&Rt,t[33]=pt^~Et&Yt,t[42]=Ht^~ee&yt,t[43]=Ft^~ne&bt,t[4]=Pt^~Kt&oe,t[5]=Ct^~Gt&se,t[14]=mt^~Lt&Bt,t[15]=gt^~Dt&zt,t[24]=qt^~re&vt,t[25]=Vt^~ie&_t,t[34]=kt^~Rt&Qt,t[35]=Et^~Yt&Zt,t[44]=ee^~yt&Tt,t[45]=ne^~bt&Ot,t[6]=Kt^~oe&ht,t[7]=Gt^~se&dt,t[16]=Lt^~Bt&Ut,t[17]=Dt^~zt&Wt,t[26]=re^~vt&wt,t[27]=ie^~_t&Mt,t[36]=Rt^~Qt&Jt,t[37]=Yt^~Zt&$t,t[46]=yt^~Tt&xt,t[47]=bt^~Ot&It,t[8]=oe^~ht&St,t[9]=se^~dt&At,t[18]=Bt^~Ut&Xt,t[19]=zt^~Wt&te,t[28]=vt^~wt&jt,t[29]=_t^~Mt&Nt,t[38]=Qt^~Jt&ft,t[39]=Zt^~$t&pt,t[48]=Tt^~xt&Ht,t[49]=Ot^~It&Ft,t[0]^=n[2*e],t[1]^=n[2*e+1]}}},"6fe7":function(t,e,n){var r=n("39a9").Buffer,i=n("1a2a"),o=n("a958"),s=n("3337").ec,a=n("399f"),u=n("2aee"),c=n("cd91");function l(t,e,n,i,s){var a=u(e);if(a.curve){if("ecdsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");return h(t,a)}if("dsa"===a.type){if("dsa"!==i)throw new Error("wrong private key type");return d(t,a,n)}if("rsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");t=r.concat([s,t]);var c=a.modulus.byteLength(),l=[0,1];while(t.length+l.length+10&&n.ishrn(r),n}function g(t,e){t=m(t,e),t=t.mod(e);var n=r.from(t.toArray());if(n.length=20?"ste":"de")},week:{dow:1,doy:4}});return r}))},7156:function(t,e,n){var r=n("1626"),i=n("861d"),o=n("d2bb");t.exports=function(t,e,n){var s,a;return o&&r(s=e.constructor)&&s!==n&&i(a=s.prototype)&&a!==n.prototype&&o(t,a),t}},7239:function(t,e,n){const r=n("2ae6"),i=n("c53d"),o=(t,e)=>{if(i(t,e))return null;{const n=r(t),i=r(e),o=n.prerelease.length||i.prerelease.length,s=o?"pre":"",a=o?"prerelease":"";for(const t in n)if(("major"===t||"minor"===t||"patch"===t)&&n[t]!==i[t])return s+t;return a}};t.exports=o},"72aa":function(t,e,n){var r=n("3fb5"),i=n("a255"),o=n("b672"),s=n("8707").Buffer,a=new Array(64);function u(){this.init(),this._w=a,o.call(this,64,56)}r(u,i),u.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},u.prototype._hash=function(){var t=s.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t},t.exports=u},7333:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10,n=1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n}});return e}))},7418:function(t,e){e.f=Object.getOwnPropertySymbols},"744a":function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"d",(function(){return s})),n.d(e,"b",(function(){return a}));var r=n("20a4");const i=(()=>{const t="function"===typeof Promise&&"function"===typeof Promise.resolve;return t?t=>Promise.resolve().then(t):(t,e)=>e(t,0)})(),o=r["a"].WebSocket||r["a"].MozWebSocket,s=!0,a="arraybuffer"},7467:function(t,e,n){const r=n("0872"),i=(t,e)=>new r(t,e).set.map(t=>t.map(t=>t.value).join(" ").trim().split(" "));t.exports=i},"74db":function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n("1ae9"),e)},"74dc":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}});return e}))},"758a":function(t,e,n){(function(e){!function(e,n){t.exports=n()}(0,(function(){"use strict";var t="undefined"!=typeof e?e:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}var i=n,o=r;function s(t){if(i===setTimeout)return setTimeout(t,0);if((i===n||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(n){try{return i.call(null,t,0)}catch(n){return i.call(this,t,0)}}}"function"==typeof t.setTimeout&&(i=setTimeout),"function"==typeof t.clearTimeout&&(o=clearTimeout);var a,u=[],c=!1,l=-1;function h(){c&&a&&(c=!1,a.length?u=a.concat(u):l=-1,u.length&&d())}function d(){if(!c){var t=s(h);c=!0;for(var e=u.length;e;){for(a=u,u=[];++l1)for(var n=1;n{this.eventListeners[t]=[]})}async request(t){}on(t,e){j.includes(t)&&this.eventListeners[t].push(e)}once(){}removeListener(t,e){const n=this.eventListeners[t].findIndex(t=>t===e);-1!==n&&this.eventListeners[t].splice(n,1)}}function C(t){const e=document.createElement("iframe");return e.setAttribute("src",t),e.setAttribute("style","width:100vw;height:100%;position:fixed;top:0;left:0;z-index:20000;border:none;"),e}function R(t){document.body.appendChild(t)}function Y(t){const e=t&&t.parentNode;e&&e.removeChild instanceof Function&&e.removeChild(t)}var B=(t,e,n=window)=>{n.addEventListener(t,(function r(i){e(i,()=>n.removeEventListener(t,r))}))};const z="undefined"!=typeof window?window.memoryStorage:new class{constructor(){this.storage={}}getItem(t){return this[t]||null}setItem(t,e){this.storage[t]=e}removeItem(t){delete this.storage[t]}};"undefined"!=typeof window&&(window.memoryStorage=z);const U=(()=>{if("undefined"==typeof window)return!1;try{window.localStorage.setItem("local_storage_supported","1");const t=window.localStorage.getItem("local_storage_supported");return window.localStorage.removeItem("local_storage_supported"),"1"===t}catch(t){return!1}})()?window.localStorage:z,W=(t,e=null)=>{const n=((t,e=null)=>{const n=U.getItem(t);try{return JSON.parse(n)||e}catch(t){return n||e}})(t,null);return n?(new Date).getTime()>n.expiry?(q(t),e):n.value:e},H=(t,e)=>U.setItem(t,"string"==typeof e?e:JSON.stringify(e)),F=(t,e,n)=>H(t,{value:e,expiry:(new Date).getTime()+n}),q=t=>{H(t,""),U.removeItem(t)};async function V(t,e){if(403===t.status)throw e.code=null,q(e.sessionKey),new Error("[Blocto SDK]: Session expired!");return t.json()}class K extends P{constructor({chainId:t="0x1",rpc:e,server:n,appId:r}){super(),this.accounts=[],E(t,"'chainId' is required"),"number"==typeof t?this.chainId=t:t.includes("0x")?this.chainId=parseInt(t,16):this.chainId=parseInt(t,10),this.networkId=this.chainId,this.chain=D[this.chainId],this.net=T[this.chainId],E(this.chain,"unsupported 'chainId': "+this.chainId),this.rpc=e||L[this.chainId]||Object({NODE_ENV:"production",VUE_APP_ADMIN_CREATE_RAFFLE:"https://sapi.solsteads.com/shop/admin/create/raffle/",VUE_APP_ADMIN_CREATE_SHOP_ITEM:"https://sapi.solsteads.com/shop/admin/create/item/",VUE_APP_ADMIN_MODIFY_RAFFLE:"https://sapi.solsteads.com/shop/admin/modify/raffle/",VUE_APP_ADMIN_MODIFY_SHOP_ITEM:"https://sapi.solsteads.com/shop/admin/modify/item/",VUE_APP_ADMIN_RAFFLE_WINNERS:"https://sapi.solsteads.com/shop/admin/winners/",VUE_APP_ADMIN_TRANSACTIONS:"https://sapi.solsteads.com/shop/admin/transactions/",VUE_APP_ALL_RAFFLES:"https://sapi.solsteads.com/shop/raffles/all",VUE_APP_ALL_SHOP_ITEMS:"https://sapi.solsteads.com/shop/items/all",VUE_APP_DISCORD_VERIFY:"https://discord.com/api/oauth2/authorize?client_id=1003713742447583275&redirect_uri=https%3A%2F%2Fsapi.solsteads.com%2Fusers%2Fdiscord%2Fverify&response_type=code&scope=identify",VUE_APP_GET_AUTH_TRANSACTION:"https://sapi.solsteads.com/users/transaction_auth/",VUE_APP_GET_BALANCE:"https://sapi.solsteads.com/users/balance/",VUE_APP_GET_JWT:"https://sapi.solsteads.com/users/jwt/get/",VUE_APP_GET_RAFFLE_INFO:"https://sapi.solsteads.com/shop/raffle/info/",VUE_APP_GET_TICKET:"https://sapi.solsteads.com/shop/ticket/",VUE_APP_GET_TRANSACTIONS:"https://sapi.solsteads.com/users/transactions/",VUE_APP_GET_WALLET_TICKET_COUNT:"https://sapi.solsteads.com/shop/raffle/tickets/",VUE_APP_GET_WON_RAFFLES:"https://sapi.solsteads.com/users/won/",VUE_APP_PUBLIC_INFO:"https://sapi.solsteads.com/users/info/",VUE_APP_PURCHASE:"https://sapi.solsteads.com/shop/purchase/",VUE_APP_RPC:"https://solana-api.projectserum.com",VUE_APP_TWITTER_VERIFY:"https://worker.solsteads.com/users/twitter/oauth",VUE_APP_USER_FRESH:"https://sapi.solsteads.com/users/fresh/",BASE_URL:"/"}).RPC||"",E(this.rpc,"'rpc' is required for Ethereum"),this.server=n||O[this.chainId]||"https://wallet.blocto.app",this.appId=r||Object({NODE_ENV:"production",VUE_APP_ADMIN_CREATE_RAFFLE:"https://sapi.solsteads.com/shop/admin/create/raffle/",VUE_APP_ADMIN_CREATE_SHOP_ITEM:"https://sapi.solsteads.com/shop/admin/create/item/",VUE_APP_ADMIN_MODIFY_RAFFLE:"https://sapi.solsteads.com/shop/admin/modify/raffle/",VUE_APP_ADMIN_MODIFY_SHOP_ITEM:"https://sapi.solsteads.com/shop/admin/modify/item/",VUE_APP_ADMIN_RAFFLE_WINNERS:"https://sapi.solsteads.com/shop/admin/winners/",VUE_APP_ADMIN_TRANSACTIONS:"https://sapi.solsteads.com/shop/admin/transactions/",VUE_APP_ALL_RAFFLES:"https://sapi.solsteads.com/shop/raffles/all",VUE_APP_ALL_SHOP_ITEMS:"https://sapi.solsteads.com/shop/items/all",VUE_APP_DISCORD_VERIFY:"https://discord.com/api/oauth2/authorize?client_id=1003713742447583275&redirect_uri=https%3A%2F%2Fsapi.solsteads.com%2Fusers%2Fdiscord%2Fverify&response_type=code&scope=identify",VUE_APP_GET_AUTH_TRANSACTION:"https://sapi.solsteads.com/users/transaction_auth/",VUE_APP_GET_BALANCE:"https://sapi.solsteads.com/users/balance/",VUE_APP_GET_JWT:"https://sapi.solsteads.com/users/jwt/get/",VUE_APP_GET_RAFFLE_INFO:"https://sapi.solsteads.com/shop/raffle/info/",VUE_APP_GET_TICKET:"https://sapi.solsteads.com/shop/ticket/",VUE_APP_GET_TRANSACTIONS:"https://sapi.solsteads.com/users/transactions/",VUE_APP_GET_WALLET_TICKET_COUNT:"https://sapi.solsteads.com/shop/raffle/tickets/",VUE_APP_GET_WON_RAFFLES:"https://sapi.solsteads.com/users/won/",VUE_APP_PUBLIC_INFO:"https://sapi.solsteads.com/users/info/",VUE_APP_PURCHASE:"https://sapi.solsteads.com/shop/purchase/",VUE_APP_RPC:"https://solana-api.projectserum.com",VUE_APP_TWITTER_VERIFY:"https://worker.solsteads.com/users/twitter/oauth",VUE_APP_USER_FRESH:"https://sapi.solsteads.com/users/fresh/",BASE_URL:"/"}).APP_ID}tryRetrieveSessionFromStorage(){const t=W(this.sessionKey,{}),e=t&&t.code,n=t&&t.address&&t.address[this.chain];this.connected=Boolean(e&&n),this.code=e||null,this.accounts=n?[n]:[]}checkNetworkMatched(){const t=window.ethereum;if(t&&t.isBlocto&&parseInt(t.chainId,16)!==this.chainId)throw new Error("Blocto SDK network mismatched")}async send(t,e){switch(!0){case e instanceof Function:return this.sendAsync(t,e);case"string"==typeof t&&Array.isArray(e):return this.sendAsync({method:t,params:e});default:return this.sendAsync(t)}}async sendAsync(t,e){const n=new Promise(e=>{if(Array.isArray(t)){const n=t.filter(t=>"eth_sendTransaction"===t.method).map(t=>t.params[0]),r=Math.floor(1e4*Math.random()),i={method:"blocto_sendBatchTransaction",params:n},o=this.request(i),s=t.map(({method:t,params:e},n)=>"eth_sendTransaction"===t?o:this.request({id:r+n+1,jsonrpc:"2.0",method:t,params:e}));Promise.allSettled(s).then(t=>e(t.map((t,e)=>({id:r+e+1,jsonrpc:"2.0",result:"fulfilled"===t.status?t.value:void 0,error:"fulfilled"!==t.status?t.reason:void 0}))))}else this.request(t).then(e)});if(!e)return n;n.then(t=>e(null,t)).catch(t=>e(t))}async request(t){const e=window.ethereum;if(e&&e.isBlocto)return e.request(t);this.connected||await this.enable();try{let e=null,n=null;switch(t.method){case"eth_requestAccounts":this.accounts=await this.fetchAccounts();case"eth_accounts":n=this.accounts.length?this.accounts:await this.fetchAccounts();break;case"eth_coinbase":n=this.accounts[0];break;case"eth_chainId":n=this.chainId,n="0x"+n.toString(16);break;case"net_version":n=this.networkId||this.chainId,n="0x"+n.toString(16);break;case"eth_signTypedData_v3":case"eth_signTypedData":case"eth_signTypedData_v4":case"personal_sign":case"eth_sign":n=await this.handleSign(t);break;case"blocto_sendBatchTransaction":case"eth_sendTransaction":n=await this.handleSendTransaction(t);break;case"eth_signTransaction":case"eth_sendRawTransaction":n=null;break;default:e=await this.handleReadRequests(t)}if(e&&!e.result&&e.error){const t=e.error.message?e.error.message:"Request failed";throw new Error(t)}return e?e.result:n}catch(t){throw console.error(t),t}}async enable(){const t=window.ethereum;if(t&&t.isBlocto){if(parseInt(t.chainId,16)!==this.chainId)try{await t.request({method:"wallet_addEthereumChain",params:[{chainId:"0x"+this.chainId.toString(16)}]}),this.accounts=[t.address]}catch(t){console.error(t)}return new Promise((e,n)=>setTimeout(()=>t.enable().then(e).catch(n),10))}return this.tryRetrieveSessionFromStorage(),new Promise((t,e)=>{if("undefined"==typeof window&&e("Currently only supported in browser"),this.connected)return t(this.accounts);const n=encodeURIComponent(window.location.origin),r=C(`${this.server}/authn?l6n=${n}&chain=${this.chain}`);R(r),B("message",(n,i)=>{const o=n;if(o.origin===this.server){if("FCL::CHALLENGE::RESPONSE"===o.data.type){i(),Y(r),this.code=o.data.code,this.connected=!0,this.eventListeners.connect.forEach(t=>t(this.chainId));const e=o.data.address;this.accounts=e?[e[this.chain]]:[],F(this.sessionKey,{code:this.code,address:e},N),t(this.accounts)}"FCL::CHALLENGE::CANCEL"===o.data.type&&(i(),Y(r),e(new Error("User declined the login request")))}})})}async fetchAccounts(){this.checkNetworkMatched();const{accounts:t}=await fetch(`${this.server}/api/${this.chain}/accounts?code=${this.code}`).then(t=>V(t,this));return this.accounts=t,t}async handleReadRequests(t){return this.checkNetworkMatched(),fetch(this.rpc,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:1,jsonrpc:"2.0",...t})}).then(t=>t.json())}async handleSign({method:t,params:e}){const n=`${this.server}/user-signature/${this.chain}`,r=C(n);R(r);let i="";return Array.isArray(e)&&("eth_sign"===t?i=e[1].slice(2):"personal_sign"===t?i=e[0].slice(2):["eth_signTypedData","eth_signTypedData_v3","eth_signTypedData_v4"].includes(t)&&(i=e[1])),B("message",(e,o)=>{const s=e;s.origin===this.server&&"ETH:FRAME:READY"===s.data.type&&(r.contentWindow&&r.contentWindow.postMessage({type:"ETH:FRAME:READY:RESPONSE",method:t,message:i,chain:this.chain},n),o())}),new Promise((t,e)=>B("message",(n,i)=>{const o=n;o.origin===this.server&&"ETH:FRAME:RESPONSE"===o.data.type&&("APPROVED"===o.data.status&&(i(),Y(r),t(o.data.signature)),"DECLINED"===o.data.status&&(i(),Y(r),e(new Error("User declined the signing request"))))}))}async handleSendTransaction(t){this.checkNetworkMatched();const{authorizationId:e}=await fetch(`${this.server}/api/${this.chain}/authz?code=${this.code}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t.params)}).then(t=>V(t,this));if("undefined"==typeof window)throw new Error("Currently only supported in browser");const n=C(`${this.server}/authz/${this.chain}/${e}`);return R(n),new Promise((t,e)=>B("message",(r,i)=>{const o=r;o.origin===this.server&&"ETH:FRAME:RESPONSE"===o.data.type&&("APPROVED"===o.data.status&&(i(),Y(n),t(o.data.txHash)),"DECLINED"===o.data.status&&(i(),Y(n),e(new Error("User declined to send the transaction"))))}))}}var G=[],Q=[],Z="undefined"!=typeof Uint8Array?Uint8Array:Array,J=!1;function $(){J=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,n=t.length;e>18&63]+G[i>>12&63]+G[i>>6&63]+G[63&i]);return o.join("")}function tt(t){var e;J||$();for(var n=t.length,r=n%3,i="",o=[],s=16383,a=0,u=n-r;au?u:a+s));return 1===r?(e=t[n-1],i+=G[e>>2],i+=G[e<<4&63],i+="=="):2===r&&(e=(t[n-2]<<8)+t[n-1],i+=G[e>>10],i+=G[e>>4&63],i+=G[e<<2&63],i+="="),o.push(i),o.join("")}function et(t,e,n,r,i){var o,s,a=8*i-r-1,u=(1<>1,l=-7,h=n?i-1:0,d=n?-1:1,f=t[e+h];for(h+=d,o=f&(1<<-l)-1,f>>=-l,l+=a;l>0;o=256*o+t[e+h],h+=d,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=r;l>0;s=256*s+t[e+h],h+=d,l-=8);if(0===o)o=1-c;else{if(o===u)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,r),o-=c}return(f?-1:1)*s*Math.pow(2,o-r)}function nt(t,e,n,r,i,o){var s,a,u,c=8*o-i-1,l=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,p=r?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),(e+=s+h>=1?d/u:d*Math.pow(2,1-h))*u>=2&&(s++,u/=2),s+h>=l?(a=0,s=l):s+h>=1?(a=(e*u-1)*Math.pow(2,i),s+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;t[n+f]=255&a,f+=p,a/=256,i-=8);for(s=s<0;t[n+f]=255&s,f+=p,s/=256,c-=8);t[n+f-p]|=128*m}var rt={}.toString,it=Array.isArray||function(t){return"[object Array]"==rt.call(t)};ut.TYPED_ARRAY_SUPPORT=void 0===t.TYPED_ARRAY_SUPPORT||t.TYPED_ARRAY_SUPPORT;var ot=st();function st(){return ut.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function at(t,e){if(st()=st())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+st().toString(16)+" bytes");return 0|t}function pt(t){return!(null==t||!t._isBuffer)}function mt(t,e){if(pt(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Wt(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Ht(t).length;default:if(r)return Wt(t).length;e=(""+e).toLowerCase(),r=!0}}function gt(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return xt(this,e,n);case"utf8":case"utf-8":return Lt(this,e,n);case"ascii":return Tt(this,e,n);case"latin1":case"binary":return Ot(this,e,n);case"base64":return Et(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return It(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function yt(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function bt(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=ut.from(e,r)),pt(e))return 0===e.length?-1:vt(t,e,n,r,i);if("number"==typeof e)return e&=255,ut.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):vt(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function vt(t,e,n,r,i){var o,s=1,a=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s=2,a/=2,u/=2,n/=2}function c(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){var l=-1;for(o=n;oa&&(n=a-u),o=n;o>=0;o--){for(var h=!0,d=0;di&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function Et(t,e,n){return 0===e&&n===t.length?tt(t):tt(t.slice(e,n))}function Lt(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i239?4:c>223?3:c>191?2:1;if(i+h<=n)switch(h){case 1:c<128&&(l=c);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=t[i+1],s=t[i+2],128==(192&o)&&128==(192&s)&&(u=(15&c)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=t[i+1],s=t[i+2],a=t[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(u=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,h=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=h}return function(t){var e=t.length;if(e<=Dt)return String.fromCharCode.apply(String,t);for(var n="",r=0;r0&&(t=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(t+=" ... ")),""},ut.prototype.compare=function(t,e,n,r,i){if(!pt(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(e>>>=0),a=Math.min(o,s),u=this.slice(r,i),c=t.slice(e,n),l=0;li)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return _t(this,t,e,n);case"utf8":case"utf-8":return wt(this,t,e,n);case"ascii":return Mt(this,t,e,n);case"latin1":case"binary":return St(this,t,e,n);case"base64":return At(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return kt(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},ut.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Dt=4096;function Tt(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;ir)&&(n=r);for(var i="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function Nt(t,e,n,r,i,o){if(!pt(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function Pt(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i>>8*(r?i:1-i)}function Ct(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i>>8*(r?i:3-i)&255}function Rt(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Yt(t,e,n,r,i){return i||Rt(t,0,n,4),nt(t,e,n,r,23,4),n+4}function Bt(t,e,n,r,i){return i||Rt(t,0,n,8),nt(t,e,n,r,52,8),n+8}ut.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e0&&(i*=256);)r+=this[t+--e]*i;return r},ut.prototype.readUInt8=function(t,e){return e||jt(t,1,this.length),this[t]},ut.prototype.readUInt16LE=function(t,e){return e||jt(t,2,this.length),this[t]|this[t+1]<<8},ut.prototype.readUInt16BE=function(t,e){return e||jt(t,2,this.length),this[t]<<8|this[t+1]},ut.prototype.readUInt32LE=function(t,e){return e||jt(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},ut.prototype.readUInt32BE=function(t,e){return e||jt(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},ut.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||jt(t,e,this.length);for(var r=this[t],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*e)),r},ut.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||jt(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},ut.prototype.readInt8=function(t,e){return e||jt(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},ut.prototype.readInt16LE=function(t,e){e||jt(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},ut.prototype.readInt16BE=function(t,e){e||jt(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},ut.prototype.readInt32LE=function(t,e){return e||jt(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},ut.prototype.readInt32BE=function(t,e){return e||jt(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},ut.prototype.readFloatLE=function(t,e){return e||jt(t,4,this.length),et(this,t,!0,23,4)},ut.prototype.readFloatBE=function(t,e){return e||jt(t,4,this.length),et(this,t,!1,23,4)},ut.prototype.readDoubleLE=function(t,e){return e||jt(t,8,this.length),et(this,t,!0,52,8)},ut.prototype.readDoubleBE=function(t,e){return e||jt(t,8,this.length),et(this,t,!1,52,8)},ut.prototype.writeUIntLE=function(t,e,n,r){t=+t,e|=0,n|=0,r||Nt(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+i]=t/o&255;return e+n},ut.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||Nt(this,t,e,1,255,0),ut.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},ut.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||Nt(this,t,e,2,65535,0),ut.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):Pt(this,t,e,!0),e+2},ut.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||Nt(this,t,e,2,65535,0),ut.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):Pt(this,t,e,!1),e+2},ut.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||Nt(this,t,e,4,4294967295,0),ut.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):Ct(this,t,e,!0),e+4},ut.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||Nt(this,t,e,4,4294967295,0),ut.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):Ct(this,t,e,!1),e+4},ut.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);Nt(this,t,e,n,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&t;++o>0)-a&255;return e+n},ut.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);Nt(this,t,e,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},ut.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||Nt(this,t,e,1,127,-128),ut.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},ut.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||Nt(this,t,e,2,32767,-32768),ut.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):Pt(this,t,e,!0),e+2},ut.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||Nt(this,t,e,2,32767,-32768),ut.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):Pt(this,t,e,!1),e+2},ut.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||Nt(this,t,e,4,2147483647,-2147483648),ut.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):Ct(this,t,e,!0),e+4},ut.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||Nt(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),ut.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):Ct(this,t,e,!1),e+4},ut.prototype.writeFloatLE=function(t,e,n){return Yt(this,t,e,!0,n)},ut.prototype.writeFloatBE=function(t,e,n){return Yt(this,t,e,!1,n)},ut.prototype.writeDoubleLE=function(t,e,n){return Bt(this,t,e,!0,n)},ut.prototype.writeDoubleBE=function(t,e,n){return Bt(this,t,e,!1,n)},ut.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e=0;--i)t[i+e]=this[i+n];else if(o<1e3||!ut.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Ht(t){return function(t){var e,n,r,i,o,s;J||$();var a=t.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===t[a-2]?2:"="===t[a-1]?1:0,s=new Z(3*a/4-o),r=o>0?a-4:a;var u=0;for(e=0,n=0;e>16&255,s[u++]=i>>8&255,s[u++]=255&i;return 2===o?(i=Q[t.charCodeAt(e)]<<2|Q[t.charCodeAt(e+1)]>>4,s[u++]=255&i):1===o&&(i=Q[t.charCodeAt(e)]<<10|Q[t.charCodeAt(e+1)]<<4|Q[t.charCodeAt(e+2)]>>2,s[u++]=i>>8&255,s[u++]=255&i),s}(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(zt,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function Ft(t,e,n,r){for(var i=0;i=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function qt(t){return null!=t&&(!!t._isBuffer||Vt(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&Vt(t.slice(0,0))}(t))}function Vt(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}var Kt=Object.freeze({__proto__:null,Buffer:ut,INSPECT_MAX_BYTES:50,SlowBuffer:function(t){return+t!=t&&(t=0),ut.alloc(+t)},isBuffer:qt,kMaxLength:ot}),Gt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof e?e:"undefined"!=typeof self?self:{};function Qt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Zt(t,e){return t(e={exports:{}},e.exports),e.exports}function Jt(t){return t&&t.default||t}var $t=Jt(Object.freeze({__proto__:null,default:{}})),Xt=Zt((function(t){!function(t){var e=function(t){var e,n=new Float64Array(16);if(t)for(e=0;e>24&255,t[e+1]=n>>16&255,t[e+2]=n>>8&255,t[e+3]=255&n,t[e+4]=r>>24&255,t[e+5]=r>>16&255,t[e+6]=r>>8&255,t[e+7]=255&r}function p(t,e,n,r,i){var o,s=0;for(o=0;o>>8)-1}function m(t,e,n,r){return p(t,e,n,r,16)}function g(t,e,n,r){return p(t,e,n,r,32)}function y(t,e,n,r){!function(t,e,n,r){for(var i,o=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,u=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,c=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,l=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,h=255&e[0]|(255&e[1])<<8|(255&e[2])<<16|(255&e[3])<<24,d=255&e[4]|(255&e[5])<<8|(255&e[6])<<16|(255&e[7])<<24,f=255&e[8]|(255&e[9])<<8|(255&e[10])<<16|(255&e[11])<<24,p=255&e[12]|(255&e[13])<<8|(255&e[14])<<16|(255&e[15])<<24,m=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,g=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,y=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,b=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,v=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,_=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,w=o,M=s,S=a,A=u,k=c,E=l,L=h,D=d,T=f,O=p,x=m,I=g,j=y,N=b,P=v,C=_,R=0;R<20;R+=2)w^=(i=(j^=(i=(T^=(i=(k^=(i=w+j|0)<<7|i>>>25)+w|0)<<9|i>>>23)+k|0)<<13|i>>>19)+T|0)<<18|i>>>14,E^=(i=(M^=(i=(N^=(i=(O^=(i=E+M|0)<<7|i>>>25)+E|0)<<9|i>>>23)+O|0)<<13|i>>>19)+N|0)<<18|i>>>14,x^=(i=(L^=(i=(S^=(i=(P^=(i=x+L|0)<<7|i>>>25)+x|0)<<9|i>>>23)+P|0)<<13|i>>>19)+S|0)<<18|i>>>14,C^=(i=(I^=(i=(D^=(i=(A^=(i=C+I|0)<<7|i>>>25)+C|0)<<9|i>>>23)+A|0)<<13|i>>>19)+D|0)<<18|i>>>14,w^=(i=(A^=(i=(S^=(i=(M^=(i=w+A|0)<<7|i>>>25)+w|0)<<9|i>>>23)+M|0)<<13|i>>>19)+S|0)<<18|i>>>14,E^=(i=(k^=(i=(D^=(i=(L^=(i=E+k|0)<<7|i>>>25)+E|0)<<9|i>>>23)+L|0)<<13|i>>>19)+D|0)<<18|i>>>14,x^=(i=(O^=(i=(T^=(i=(I^=(i=x+O|0)<<7|i>>>25)+x|0)<<9|i>>>23)+I|0)<<13|i>>>19)+T|0)<<18|i>>>14,C^=(i=(P^=(i=(N^=(i=(j^=(i=C+P|0)<<7|i>>>25)+C|0)<<9|i>>>23)+j|0)<<13|i>>>19)+N|0)<<18|i>>>14;w=w+o|0,M=M+s|0,S=S+a|0,A=A+u|0,k=k+c|0,E=E+l|0,L=L+h|0,D=D+d|0,T=T+f|0,O=O+p|0,x=x+m|0,I=I+g|0,j=j+y|0,N=N+b|0,P=P+v|0,C=C+_|0,t[0]=w>>>0&255,t[1]=w>>>8&255,t[2]=w>>>16&255,t[3]=w>>>24&255,t[4]=M>>>0&255,t[5]=M>>>8&255,t[6]=M>>>16&255,t[7]=M>>>24&255,t[8]=S>>>0&255,t[9]=S>>>8&255,t[10]=S>>>16&255,t[11]=S>>>24&255,t[12]=A>>>0&255,t[13]=A>>>8&255,t[14]=A>>>16&255,t[15]=A>>>24&255,t[16]=k>>>0&255,t[17]=k>>>8&255,t[18]=k>>>16&255,t[19]=k>>>24&255,t[20]=E>>>0&255,t[21]=E>>>8&255,t[22]=E>>>16&255,t[23]=E>>>24&255,t[24]=L>>>0&255,t[25]=L>>>8&255,t[26]=L>>>16&255,t[27]=L>>>24&255,t[28]=D>>>0&255,t[29]=D>>>8&255,t[30]=D>>>16&255,t[31]=D>>>24&255,t[32]=T>>>0&255,t[33]=T>>>8&255,t[34]=T>>>16&255,t[35]=T>>>24&255,t[36]=O>>>0&255,t[37]=O>>>8&255,t[38]=O>>>16&255,t[39]=O>>>24&255,t[40]=x>>>0&255,t[41]=x>>>8&255,t[42]=x>>>16&255,t[43]=x>>>24&255,t[44]=I>>>0&255,t[45]=I>>>8&255,t[46]=I>>>16&255,t[47]=I>>>24&255,t[48]=j>>>0&255,t[49]=j>>>8&255,t[50]=j>>>16&255,t[51]=j>>>24&255,t[52]=N>>>0&255,t[53]=N>>>8&255,t[54]=N>>>16&255,t[55]=N>>>24&255,t[56]=P>>>0&255,t[57]=P>>>8&255,t[58]=P>>>16&255,t[59]=P>>>24&255,t[60]=C>>>0&255,t[61]=C>>>8&255,t[62]=C>>>16&255,t[63]=C>>>24&255}(t,e,n,r)}function b(t,e,n,r){!function(t,e,n,r){for(var i,o=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,u=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,c=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,l=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,h=255&e[0]|(255&e[1])<<8|(255&e[2])<<16|(255&e[3])<<24,d=255&e[4]|(255&e[5])<<8|(255&e[6])<<16|(255&e[7])<<24,f=255&e[8]|(255&e[9])<<8|(255&e[10])<<16|(255&e[11])<<24,p=255&e[12]|(255&e[13])<<8|(255&e[14])<<16|(255&e[15])<<24,m=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,g=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,y=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,b=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,v=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,_=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,w=0;w<20;w+=2)o^=(i=(y^=(i=(f^=(i=(c^=(i=o+y|0)<<7|i>>>25)+o|0)<<9|i>>>23)+c|0)<<13|i>>>19)+f|0)<<18|i>>>14,l^=(i=(s^=(i=(b^=(i=(p^=(i=l+s|0)<<7|i>>>25)+l|0)<<9|i>>>23)+p|0)<<13|i>>>19)+b|0)<<18|i>>>14,m^=(i=(h^=(i=(a^=(i=(v^=(i=m+h|0)<<7|i>>>25)+m|0)<<9|i>>>23)+v|0)<<13|i>>>19)+a|0)<<18|i>>>14,_^=(i=(g^=(i=(d^=(i=(u^=(i=_+g|0)<<7|i>>>25)+_|0)<<9|i>>>23)+u|0)<<13|i>>>19)+d|0)<<18|i>>>14,o^=(i=(u^=(i=(a^=(i=(s^=(i=o+u|0)<<7|i>>>25)+o|0)<<9|i>>>23)+s|0)<<13|i>>>19)+a|0)<<18|i>>>14,l^=(i=(c^=(i=(d^=(i=(h^=(i=l+c|0)<<7|i>>>25)+l|0)<<9|i>>>23)+h|0)<<13|i>>>19)+d|0)<<18|i>>>14,m^=(i=(p^=(i=(f^=(i=(g^=(i=m+p|0)<<7|i>>>25)+m|0)<<9|i>>>23)+g|0)<<13|i>>>19)+f|0)<<18|i>>>14,_^=(i=(v^=(i=(b^=(i=(y^=(i=_+v|0)<<7|i>>>25)+_|0)<<9|i>>>23)+y|0)<<13|i>>>19)+b|0)<<18|i>>>14;t[0]=o>>>0&255,t[1]=o>>>8&255,t[2]=o>>>16&255,t[3]=o>>>24&255,t[4]=l>>>0&255,t[5]=l>>>8&255,t[6]=l>>>16&255,t[7]=l>>>24&255,t[8]=m>>>0&255,t[9]=m>>>8&255,t[10]=m>>>16&255,t[11]=m>>>24&255,t[12]=_>>>0&255,t[13]=_>>>8&255,t[14]=_>>>16&255,t[15]=_>>>24&255,t[16]=h>>>0&255,t[17]=h>>>8&255,t[18]=h>>>16&255,t[19]=h>>>24&255,t[20]=d>>>0&255,t[21]=d>>>8&255,t[22]=d>>>16&255,t[23]=d>>>24&255,t[24]=f>>>0&255,t[25]=f>>>8&255,t[26]=f>>>16&255,t[27]=f>>>24&255,t[28]=p>>>0&255,t[29]=p>>>8&255,t[30]=p>>>16&255,t[31]=p>>>24&255}(t,e,n,r)}var v=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function _(t,e,n,r,i,o,s){var a,u,c=new Uint8Array(16),l=new Uint8Array(64);for(u=0;u<16;u++)c[u]=0;for(u=0;u<8;u++)c[u]=o[u];for(;i>=64;){for(y(l,c,s,v),u=0;u<64;u++)t[e+u]=n[r+u]^l[u];for(a=1,u=8;u<16;u++)a=a+(255&c[u])|0,c[u]=255&a,a>>>=8;i-=64,e+=64,r+=64}if(i>0)for(y(l,c,s,v),u=0;u=64;){for(y(u,a,i,v),s=0;s<64;s++)t[e+s]=u[s];for(o=1,s=8;s<16;s++)o=o+(255&a[s])|0,a[s]=255&o,o>>>=8;n-=64,e+=64}if(n>0)for(y(u,a,i,v),s=0;s>>13|n<<3),r=255&t[4]|(255&t[5])<<8,this.r[2]=7939&(n>>>10|r<<6),i=255&t[6]|(255&t[7])<<8,this.r[3]=8191&(r>>>7|i<<9),o=255&t[8]|(255&t[9])<<8,this.r[4]=255&(i>>>4|o<<12),this.r[5]=o>>>1&8190,s=255&t[10]|(255&t[11])<<8,this.r[6]=8191&(o>>>14|s<<2),a=255&t[12]|(255&t[13])<<8,this.r[7]=8065&(s>>>11|a<<5),u=255&t[14]|(255&t[15])<<8,this.r[8]=8191&(a>>>8|u<<8),this.r[9]=u>>>5&127,this.pad[0]=255&t[16]|(255&t[17])<<8,this.pad[1]=255&t[18]|(255&t[19])<<8,this.pad[2]=255&t[20]|(255&t[21])<<8,this.pad[3]=255&t[22]|(255&t[23])<<8,this.pad[4]=255&t[24]|(255&t[25])<<8,this.pad[5]=255&t[26]|(255&t[27])<<8,this.pad[6]=255&t[28]|(255&t[29])<<8,this.pad[7]=255&t[30]|(255&t[31])<<8};function k(t,e,n,r,i,o){var s=new A(o);return s.update(n,r,i),s.finish(t,e),0}function E(t,e,n,r,i,o){var s=new Uint8Array(16);return k(s,0,n,r,i,o),m(t,e,s,0)}function L(t,e,n,r,i){var o;if(n<32)return-1;for(S(t,0,e,0,n,r,i),k(t,16,t,32,n-32,t),o=0;o<16;o++)t[o]=0;return 0}function D(t,e,n,r,i){var o,s=new Uint8Array(32);if(n<32)return-1;if(M(s,0,32,r,i),0!==E(e,16,e,32,n-32,s))return-1;for(S(t,0,e,0,n,r,i),o=0;o<32;o++)t[o]=0;return 0}function T(t,e){var n;for(n=0;n<16;n++)t[n]=0|e[n]}function O(t){var e,n,r=1;for(e=0;e<16;e++)n=t[e]+r+65535,r=Math.floor(n/65536),t[e]=n-65536*r;t[0]+=r-1+37*(r-1)}function x(t,e,n){for(var r,i=~(n-1),o=0;o<16;o++)r=i&(t[o]^e[o]),t[o]^=r,e[o]^=r}function I(t,n){var r,i,o,s=e(),a=e();for(r=0;r<16;r++)a[r]=n[r];for(O(a),O(a),O(a),i=0;i<2;i++){for(s[0]=a[0]-65517,r=1;r<15;r++)s[r]=a[r]-65535-(s[r-1]>>16&1),s[r-1]&=65535;s[15]=a[15]-32767-(s[14]>>16&1),o=s[15]>>16&1,s[14]&=65535,x(a,s,1-o)}for(r=0;r<16;r++)t[2*r]=255&a[r],t[2*r+1]=a[r]>>8}function j(t,e){var n=new Uint8Array(32),r=new Uint8Array(32);return I(n,t),I(r,e),g(n,0,r,0)}function N(t){var e=new Uint8Array(32);return I(e,t),1&e[0]}function P(t,e){var n;for(n=0;n<16;n++)t[n]=e[2*n]+(e[2*n+1]<<8);t[15]&=32767}function C(t,e,n){for(var r=0;r<16;r++)t[r]=e[r]+n[r]}function R(t,e,n){for(var r=0;r<16;r++)t[r]=e[r]-n[r]}function Y(t,e,n){var r,i,o=0,s=0,a=0,u=0,c=0,l=0,h=0,d=0,f=0,p=0,m=0,g=0,y=0,b=0,v=0,_=0,w=0,M=0,S=0,A=0,k=0,E=0,L=0,D=0,T=0,O=0,x=0,I=0,j=0,N=0,P=0,C=n[0],R=n[1],Y=n[2],B=n[3],z=n[4],U=n[5],W=n[6],H=n[7],F=n[8],q=n[9],V=n[10],K=n[11],G=n[12],Q=n[13],Z=n[14],J=n[15];o+=(r=e[0])*C,s+=r*R,a+=r*Y,u+=r*B,c+=r*z,l+=r*U,h+=r*W,d+=r*H,f+=r*F,p+=r*q,m+=r*V,g+=r*K,y+=r*G,b+=r*Q,v+=r*Z,_+=r*J,s+=(r=e[1])*C,a+=r*R,u+=r*Y,c+=r*B,l+=r*z,h+=r*U,d+=r*W,f+=r*H,p+=r*F,m+=r*q,g+=r*V,y+=r*K,b+=r*G,v+=r*Q,_+=r*Z,w+=r*J,a+=(r=e[2])*C,u+=r*R,c+=r*Y,l+=r*B,h+=r*z,d+=r*U,f+=r*W,p+=r*H,m+=r*F,g+=r*q,y+=r*V,b+=r*K,v+=r*G,_+=r*Q,w+=r*Z,M+=r*J,u+=(r=e[3])*C,c+=r*R,l+=r*Y,h+=r*B,d+=r*z,f+=r*U,p+=r*W,m+=r*H,g+=r*F,y+=r*q,b+=r*V,v+=r*K,_+=r*G,w+=r*Q,M+=r*Z,S+=r*J,c+=(r=e[4])*C,l+=r*R,h+=r*Y,d+=r*B,f+=r*z,p+=r*U,m+=r*W,g+=r*H,y+=r*F,b+=r*q,v+=r*V,_+=r*K,w+=r*G,M+=r*Q,S+=r*Z,A+=r*J,l+=(r=e[5])*C,h+=r*R,d+=r*Y,f+=r*B,p+=r*z,m+=r*U,g+=r*W,y+=r*H,b+=r*F,v+=r*q,_+=r*V,w+=r*K,M+=r*G,S+=r*Q,A+=r*Z,k+=r*J,h+=(r=e[6])*C,d+=r*R,f+=r*Y,p+=r*B,m+=r*z,g+=r*U,y+=r*W,b+=r*H,v+=r*F,_+=r*q,w+=r*V,M+=r*K,S+=r*G,A+=r*Q,k+=r*Z,E+=r*J,d+=(r=e[7])*C,f+=r*R,p+=r*Y,m+=r*B,g+=r*z,y+=r*U,b+=r*W,v+=r*H,_+=r*F,w+=r*q,M+=r*V,S+=r*K,A+=r*G,k+=r*Q,E+=r*Z,L+=r*J,f+=(r=e[8])*C,p+=r*R,m+=r*Y,g+=r*B,y+=r*z,b+=r*U,v+=r*W,_+=r*H,w+=r*F,M+=r*q,S+=r*V,A+=r*K,k+=r*G,E+=r*Q,L+=r*Z,D+=r*J,p+=(r=e[9])*C,m+=r*R,g+=r*Y,y+=r*B,b+=r*z,v+=r*U,_+=r*W,w+=r*H,M+=r*F,S+=r*q,A+=r*V,k+=r*K,E+=r*G,L+=r*Q,D+=r*Z,T+=r*J,m+=(r=e[10])*C,g+=r*R,y+=r*Y,b+=r*B,v+=r*z,_+=r*U,w+=r*W,M+=r*H,S+=r*F,A+=r*q,k+=r*V,E+=r*K,L+=r*G,D+=r*Q,T+=r*Z,O+=r*J,g+=(r=e[11])*C,y+=r*R,b+=r*Y,v+=r*B,_+=r*z,w+=r*U,M+=r*W,S+=r*H,A+=r*F,k+=r*q,E+=r*V,L+=r*K,D+=r*G,T+=r*Q,O+=r*Z,x+=r*J,y+=(r=e[12])*C,b+=r*R,v+=r*Y,_+=r*B,w+=r*z,M+=r*U,S+=r*W,A+=r*H,k+=r*F,E+=r*q,L+=r*V,D+=r*K,T+=r*G,O+=r*Q,x+=r*Z,I+=r*J,b+=(r=e[13])*C,v+=r*R,_+=r*Y,w+=r*B,M+=r*z,S+=r*U,A+=r*W,k+=r*H,E+=r*F,L+=r*q,D+=r*V,T+=r*K,O+=r*G,x+=r*Q,I+=r*Z,j+=r*J,v+=(r=e[14])*C,_+=r*R,w+=r*Y,M+=r*B,S+=r*z,A+=r*U,k+=r*W,E+=r*H,L+=r*F,D+=r*q,T+=r*V,O+=r*K,x+=r*G,I+=r*Q,j+=r*Z,N+=r*J,_+=(r=e[15])*C,s+=38*(M+=r*Y),a+=38*(S+=r*B),u+=38*(A+=r*z),c+=38*(k+=r*U),l+=38*(E+=r*W),h+=38*(L+=r*H),d+=38*(D+=r*F),f+=38*(T+=r*q),p+=38*(O+=r*V),m+=38*(x+=r*K),g+=38*(I+=r*G),y+=38*(j+=r*Q),b+=38*(N+=r*Z),v+=38*(P+=r*J),o=(r=(o+=38*(w+=r*R))+(i=1)+65535)-65536*(i=Math.floor(r/65536)),s=(r=s+i+65535)-65536*(i=Math.floor(r/65536)),a=(r=a+i+65535)-65536*(i=Math.floor(r/65536)),u=(r=u+i+65535)-65536*(i=Math.floor(r/65536)),c=(r=c+i+65535)-65536*(i=Math.floor(r/65536)),l=(r=l+i+65535)-65536*(i=Math.floor(r/65536)),h=(r=h+i+65535)-65536*(i=Math.floor(r/65536)),d=(r=d+i+65535)-65536*(i=Math.floor(r/65536)),f=(r=f+i+65535)-65536*(i=Math.floor(r/65536)),p=(r=p+i+65535)-65536*(i=Math.floor(r/65536)),m=(r=m+i+65535)-65536*(i=Math.floor(r/65536)),g=(r=g+i+65535)-65536*(i=Math.floor(r/65536)),y=(r=y+i+65535)-65536*(i=Math.floor(r/65536)),b=(r=b+i+65535)-65536*(i=Math.floor(r/65536)),v=(r=v+i+65535)-65536*(i=Math.floor(r/65536)),_=(r=_+i+65535)-65536*(i=Math.floor(r/65536)),o=(r=(o+=i-1+37*(i-1))+(i=1)+65535)-65536*(i=Math.floor(r/65536)),s=(r=s+i+65535)-65536*(i=Math.floor(r/65536)),a=(r=a+i+65535)-65536*(i=Math.floor(r/65536)),u=(r=u+i+65535)-65536*(i=Math.floor(r/65536)),c=(r=c+i+65535)-65536*(i=Math.floor(r/65536)),l=(r=l+i+65535)-65536*(i=Math.floor(r/65536)),h=(r=h+i+65535)-65536*(i=Math.floor(r/65536)),d=(r=d+i+65535)-65536*(i=Math.floor(r/65536)),f=(r=f+i+65535)-65536*(i=Math.floor(r/65536)),p=(r=p+i+65535)-65536*(i=Math.floor(r/65536)),m=(r=m+i+65535)-65536*(i=Math.floor(r/65536)),g=(r=g+i+65535)-65536*(i=Math.floor(r/65536)),y=(r=y+i+65535)-65536*(i=Math.floor(r/65536)),b=(r=b+i+65535)-65536*(i=Math.floor(r/65536)),v=(r=v+i+65535)-65536*(i=Math.floor(r/65536)),_=(r=_+i+65535)-65536*(i=Math.floor(r/65536)),o+=i-1+37*(i-1),t[0]=o,t[1]=s,t[2]=a,t[3]=u,t[4]=c,t[5]=l,t[6]=h,t[7]=d,t[8]=f,t[9]=p,t[10]=m,t[11]=g,t[12]=y,t[13]=b,t[14]=v,t[15]=_}function B(t,e){Y(t,e,e)}function z(t,n){var r,i=e();for(r=0;r<16;r++)i[r]=n[r];for(r=253;r>=0;r--)B(i,i),2!==r&&4!==r&&Y(i,i,n);for(r=0;r<16;r++)t[r]=i[r]}function U(t,n){var r,i=e();for(r=0;r<16;r++)i[r]=n[r];for(r=250;r>=0;r--)B(i,i),1!==r&&Y(i,i,n);for(r=0;r<16;r++)t[r]=i[r]}function W(t,n,r){var i,o,s=new Uint8Array(32),u=new Float64Array(80),c=e(),l=e(),h=e(),d=e(),f=e(),p=e();for(o=0;o<31;o++)s[o]=n[o];for(s[31]=127&n[31]|64,s[0]&=248,P(u,r),o=0;o<16;o++)l[o]=u[o],d[o]=c[o]=h[o]=0;for(c[0]=d[0]=1,o=254;o>=0;--o)x(c,l,i=s[o>>>3]>>>(7&o)&1),x(h,d,i),C(f,c,h),R(c,c,h),C(h,l,d),R(l,l,d),B(d,f),B(p,c),Y(c,h,c),Y(h,l,f),C(f,c,h),R(c,c,h),B(l,c),R(h,d,p),Y(c,h,a),C(c,c,d),Y(h,h,c),Y(c,d,p),Y(d,l,u),B(l,f),x(c,l,i),x(h,d,i);for(o=0;o<16;o++)u[o+16]=c[o],u[o+32]=h[o],u[o+48]=l[o],u[o+64]=d[o];var m=u.subarray(32),g=u.subarray(16);return z(m,m),Y(g,g,m),I(t,g),0}function H(t,e){return W(t,e,i)}function F(t,e){return n(e,32),H(t,e)}function q(t,e,n){var i=new Uint8Array(32);return W(i,n,e),b(t,r,i,v)}A.prototype.blocks=function(t,e,n){for(var r,i,o,s,a,u,c,l,h,d,f,p,m,g,y,b,v,_,w,M=this.fin?0:2048,S=this.h[0],A=this.h[1],k=this.h[2],E=this.h[3],L=this.h[4],D=this.h[5],T=this.h[6],O=this.h[7],x=this.h[8],I=this.h[9],j=this.r[0],N=this.r[1],P=this.r[2],C=this.r[3],R=this.r[4],Y=this.r[5],B=this.r[6],z=this.r[7],U=this.r[8],W=this.r[9];n>=16;)d=h=0,d+=(S+=8191&(r=255&t[e+0]|(255&t[e+1])<<8))*j,d+=(A+=8191&(r>>>13|(i=255&t[e+2]|(255&t[e+3])<<8)<<3))*(5*W),d+=(k+=8191&(i>>>10|(o=255&t[e+4]|(255&t[e+5])<<8)<<6))*(5*U),d+=(E+=8191&(o>>>7|(s=255&t[e+6]|(255&t[e+7])<<8)<<9))*(5*z),h=(d+=(L+=8191&(s>>>4|(a=255&t[e+8]|(255&t[e+9])<<8)<<12))*(5*B))>>>13,d&=8191,d+=(D+=a>>>1&8191)*(5*Y),d+=(T+=8191&(a>>>14|(u=255&t[e+10]|(255&t[e+11])<<8)<<2))*(5*R),d+=(O+=8191&(u>>>11|(c=255&t[e+12]|(255&t[e+13])<<8)<<5))*(5*C),d+=(x+=8191&(c>>>8|(l=255&t[e+14]|(255&t[e+15])<<8)<<8))*(5*P),f=h+=(d+=(I+=l>>>5|M)*(5*N))>>>13,f+=S*N,f+=A*j,f+=k*(5*W),f+=E*(5*U),h=(f+=L*(5*z))>>>13,f&=8191,f+=D*(5*B),f+=T*(5*Y),f+=O*(5*R),f+=x*(5*C),h+=(f+=I*(5*P))>>>13,f&=8191,p=h,p+=S*P,p+=A*N,p+=k*j,p+=E*(5*W),h=(p+=L*(5*U))>>>13,p&=8191,p+=D*(5*z),p+=T*(5*B),p+=O*(5*Y),p+=x*(5*R),m=h+=(p+=I*(5*C))>>>13,m+=S*C,m+=A*P,m+=k*N,m+=E*j,h=(m+=L*(5*W))>>>13,m&=8191,m+=D*(5*U),m+=T*(5*z),m+=O*(5*B),m+=x*(5*Y),g=h+=(m+=I*(5*R))>>>13,g+=S*R,g+=A*C,g+=k*P,g+=E*N,h=(g+=L*j)>>>13,g&=8191,g+=D*(5*W),g+=T*(5*U),g+=O*(5*z),g+=x*(5*B),y=h+=(g+=I*(5*Y))>>>13,y+=S*Y,y+=A*R,y+=k*C,y+=E*P,h=(y+=L*N)>>>13,y&=8191,y+=D*j,y+=T*(5*W),y+=O*(5*U),y+=x*(5*z),b=h+=(y+=I*(5*B))>>>13,b+=S*B,b+=A*Y,b+=k*R,b+=E*C,h=(b+=L*P)>>>13,b&=8191,b+=D*N,b+=T*j,b+=O*(5*W),b+=x*(5*U),v=h+=(b+=I*(5*z))>>>13,v+=S*z,v+=A*B,v+=k*Y,v+=E*R,h=(v+=L*C)>>>13,v&=8191,v+=D*P,v+=T*N,v+=O*j,v+=x*(5*W),_=h+=(v+=I*(5*U))>>>13,_+=S*U,_+=A*z,_+=k*B,_+=E*Y,h=(_+=L*R)>>>13,_&=8191,_+=D*C,_+=T*P,_+=O*N,_+=x*j,w=h+=(_+=I*(5*W))>>>13,w+=S*W,w+=A*U,w+=k*z,w+=E*B,h=(w+=L*Y)>>>13,w&=8191,w+=D*R,w+=T*C,w+=O*P,w+=x*N,S=d=8191&(h=(h=((h+=(w+=I*j)>>>13)<<2)+h|0)+(d&=8191)|0),A=f+=h>>>=13,k=p&=8191,E=m&=8191,L=g&=8191,D=y&=8191,T=b&=8191,O=v&=8191,x=_&=8191,I=w&=8191,e+=16,n-=16;this.h[0]=S,this.h[1]=A,this.h[2]=k,this.h[3]=E,this.h[4]=L,this.h[5]=D,this.h[6]=T,this.h[7]=O,this.h[8]=x,this.h[9]=I},A.prototype.finish=function(t,e){var n,r,i,o,s=new Uint16Array(10);if(this.leftover){for(o=this.leftover,this.buffer[o++]=1;o<16;o++)this.buffer[o]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(n=this.h[1]>>>13,this.h[1]&=8191,o=2;o<10;o++)this.h[o]+=n,n=this.h[o]>>>13,this.h[o]&=8191;for(this.h[0]+=5*n,n=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=n,n=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=n,s[0]=this.h[0]+5,n=s[0]>>>13,s[0]&=8191,o=1;o<10;o++)s[o]=this.h[o]+n,n=s[o]>>>13,s[o]&=8191;for(s[9]-=8192,r=(1^n)-1,o=0;o<10;o++)s[o]&=r;for(r=~r,o=0;o<10;o++)this.h[o]=this.h[o]&r|s[o];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),i=this.h[0]+this.pad[0],this.h[0]=65535&i,o=1;o<8;o++)i=(this.h[o]+this.pad[o]|0)+(i>>>16)|0,this.h[o]=65535&i;t[e+0]=this.h[0]>>>0&255,t[e+1]=this.h[0]>>>8&255,t[e+2]=this.h[1]>>>0&255,t[e+3]=this.h[1]>>>8&255,t[e+4]=this.h[2]>>>0&255,t[e+5]=this.h[2]>>>8&255,t[e+6]=this.h[3]>>>0&255,t[e+7]=this.h[3]>>>8&255,t[e+8]=this.h[4]>>>0&255,t[e+9]=this.h[4]>>>8&255,t[e+10]=this.h[5]>>>0&255,t[e+11]=this.h[5]>>>8&255,t[e+12]=this.h[6]>>>0&255,t[e+13]=this.h[6]>>>8&255,t[e+14]=this.h[7]>>>0&255,t[e+15]=this.h[7]>>>8&255},A.prototype.update=function(t,e,n){var r,i;if(this.leftover){for((i=16-this.leftover)>n&&(i=n),r=0;r=16&&(i=n-n%16,this.blocks(t,e,i),e+=i,n-=i),n){for(r=0;r=128;){for(M=0;M<16;M++)S=8*M+Q,O[M]=n[S+0]<<24|n[S+1]<<16|n[S+2]<<8|n[S+3],x[M]=n[S+4]<<24|n[S+5]<<16|n[S+6]<<8|n[S+7];for(M=0;M<80;M++)if(i=I,o=j,s=N,a=P,u=C,c=R,l=Y,d=z,f=U,p=W,m=H,g=F,y=q,b=V,E=65535&(k=K),L=k>>>16,D=65535&(A=B),T=A>>>16,E+=65535&(k=(F>>>14|C<<18)^(F>>>18|C<<14)^(C>>>9|F<<23)),L+=k>>>16,D+=65535&(A=(C>>>14|F<<18)^(C>>>18|F<<14)^(F>>>9|C<<23)),T+=A>>>16,E+=65535&(k=F&q^~F&V),L+=k>>>16,D+=65535&(A=C&R^~C&Y),T+=A>>>16,E+=65535&(k=G[2*M+1]),L+=k>>>16,D+=65535&(A=G[2*M]),T+=A>>>16,A=O[M%16],L+=(k=x[M%16])>>>16,D+=65535&A,T+=A>>>16,D+=(L+=(E+=65535&k)>>>16)>>>16,E=65535&(k=w=65535&E|L<<16),L=k>>>16,D=65535&(A=_=65535&D|(T+=D>>>16)<<16),T=A>>>16,E+=65535&(k=(z>>>28|I<<4)^(I>>>2|z<<30)^(I>>>7|z<<25)),L+=k>>>16,D+=65535&(A=(I>>>28|z<<4)^(z>>>2|I<<30)^(z>>>7|I<<25)),T+=A>>>16,L+=(k=z&U^z&W^U&W)>>>16,D+=65535&(A=I&j^I&N^j&N),T+=A>>>16,h=65535&(D+=(L+=(E+=65535&k)>>>16)>>>16)|(T+=D>>>16)<<16,v=65535&E|L<<16,E=65535&(k=m),L=k>>>16,D=65535&(A=a),T=A>>>16,L+=(k=w)>>>16,D+=65535&(A=_),T+=A>>>16,j=i,N=o,P=s,C=a=65535&(D+=(L+=(E+=65535&k)>>>16)>>>16)|(T+=D>>>16)<<16,R=u,Y=c,B=l,I=h,U=d,W=f,H=p,F=m=65535&E|L<<16,q=g,V=y,K=b,z=v,M%16==15)for(S=0;S<16;S++)A=O[S],E=65535&(k=x[S]),L=k>>>16,D=65535&A,T=A>>>16,A=O[(S+9)%16],E+=65535&(k=x[(S+9)%16]),L+=k>>>16,D+=65535&A,T+=A>>>16,_=O[(S+1)%16],E+=65535&(k=((w=x[(S+1)%16])>>>1|_<<31)^(w>>>8|_<<24)^(w>>>7|_<<25)),L+=k>>>16,D+=65535&(A=(_>>>1|w<<31)^(_>>>8|w<<24)^_>>>7),T+=A>>>16,_=O[(S+14)%16],L+=(k=((w=x[(S+14)%16])>>>19|_<<13)^(_>>>29|w<<3)^(w>>>6|_<<26))>>>16,D+=65535&(A=(_>>>19|w<<13)^(w>>>29|_<<3)^_>>>6),T+=A>>>16,T+=(D+=(L+=(E+=65535&k)>>>16)>>>16)>>>16,O[S]=65535&D|T<<16,x[S]=65535&E|L<<16;E=65535&(k=z),L=k>>>16,D=65535&(A=I),T=A>>>16,A=t[0],L+=(k=e[0])>>>16,D+=65535&A,T+=A>>>16,T+=(D+=(L+=(E+=65535&k)>>>16)>>>16)>>>16,t[0]=I=65535&D|T<<16,e[0]=z=65535&E|L<<16,E=65535&(k=U),L=k>>>16,D=65535&(A=j),T=A>>>16,A=t[1],L+=(k=e[1])>>>16,D+=65535&A,T+=A>>>16,T+=(D+=(L+=(E+=65535&k)>>>16)>>>16)>>>16,t[1]=j=65535&D|T<<16,e[1]=U=65535&E|L<<16,E=65535&(k=W),L=k>>>16,D=65535&(A=N),T=A>>>16,A=t[2],L+=(k=e[2])>>>16,D+=65535&A,T+=A>>>16,T+=(D+=(L+=(E+=65535&k)>>>16)>>>16)>>>16,t[2]=N=65535&D|T<<16,e[2]=W=65535&E|L<<16,E=65535&(k=H),L=k>>>16,D=65535&(A=P),T=A>>>16,A=t[3],L+=(k=e[3])>>>16,D+=65535&A,T+=A>>>16,T+=(D+=(L+=(E+=65535&k)>>>16)>>>16)>>>16,t[3]=P=65535&D|T<<16,e[3]=H=65535&E|L<<16,E=65535&(k=F),L=k>>>16,D=65535&(A=C),T=A>>>16,A=t[4],L+=(k=e[4])>>>16,D+=65535&A,T+=A>>>16,T+=(D+=(L+=(E+=65535&k)>>>16)>>>16)>>>16,t[4]=C=65535&D|T<<16,e[4]=F=65535&E|L<<16,E=65535&(k=q),L=k>>>16,D=65535&(A=R),T=A>>>16,A=t[5],L+=(k=e[5])>>>16,D+=65535&A,T+=A>>>16,T+=(D+=(L+=(E+=65535&k)>>>16)>>>16)>>>16,t[5]=R=65535&D|T<<16,e[5]=q=65535&E|L<<16,E=65535&(k=V),L=k>>>16,D=65535&(A=Y),T=A>>>16,A=t[6],L+=(k=e[6])>>>16,D+=65535&A,T+=A>>>16,T+=(D+=(L+=(E+=65535&k)>>>16)>>>16)>>>16,t[6]=Y=65535&D|T<<16,e[6]=V=65535&E|L<<16,E=65535&(k=K),L=k>>>16,D=65535&(A=B),T=A>>>16,A=t[7],L+=(k=e[7])>>>16,D+=65535&A,T+=A>>>16,T+=(D+=(L+=(E+=65535&k)>>>16)>>>16)>>>16,t[7]=B=65535&D|T<<16,e[7]=K=65535&E|L<<16,Q+=128,r-=128}return r}function Z(t,e,n){var r,i=new Int32Array(8),o=new Int32Array(8),s=new Uint8Array(256),a=n;for(i[0]=1779033703,i[1]=3144134277,i[2]=1013904242,i[3]=2773480762,i[4]=1359893119,i[5]=2600822924,i[6]=528734635,i[7]=1541459225,o[0]=4089235720,o[1]=2227873595,o[2]=4271175723,o[3]=1595750129,o[4]=2917565137,o[5]=725511199,o[6]=4215389547,o[7]=327033209,Q(i,o,e,n),n%=128,r=0;r=0;--i)$(t,e,r=n[i/8|0]>>(7&i)&1),J(e,t),J(t,t),$(t,e,r)}function et(t,n){var r=[e(),e(),e(),e()];T(r[0],l),T(r[1],h),T(r[2],s),Y(r[3],l,h),tt(t,r,n)}function nt(t,r,i){var o,s=new Uint8Array(64),a=[e(),e(),e(),e()];for(i||n(r,32),Z(s,r,32),s[0]&=248,s[31]&=127,s[31]|=64,et(a,s),X(t,a),o=0;o<32;o++)r[o+32]=t[o];return 0}var rt=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function it(t,e){var n,r,i,o;for(r=63;r>=32;--r){for(n=0,i=r-32,o=r-12;i>4)*rt[i],n=e[i]>>8,e[i]&=255;for(i=0;i<32;i++)e[i]-=n*rt[i];for(r=0;r<32;r++)e[r+1]+=e[r]>>8,t[r]=255&e[r]}function ot(t){var e,n=new Float64Array(64);for(e=0;e<64;e++)n[e]=t[e];for(e=0;e<64;e++)t[e]=0;it(t,n)}function st(t,n,r,i){var o,s,a=new Uint8Array(64),u=new Uint8Array(64),c=new Uint8Array(64),l=new Float64Array(64),h=[e(),e(),e(),e()];Z(a,i,32),a[0]&=248,a[31]&=127,a[31]|=64;var d=r+64;for(o=0;o>7&&R(t[0],o,t[0]),Y(t[3],t[0],t[1]),0)}(f,i))return-1;for(a=0;a=0},t.sign.keyPair=function(){var t=new Uint8Array(lt),e=new Uint8Array(ht);return nt(t,e),{publicKey:t,secretKey:e}},t.sign.keyPair.fromSecretKey=function(t){if(ft(t),t.length!==ht)throw new Error("bad secret key size");for(var e=new Uint8Array(lt),n=0;n=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+t)}function a(t,e,n){var r=s(t,n);return n-1>=e&&(r|=s(t,n-1)<<4),r}function u(t,e,r,i){for(var o=0,s=0,a=Math.min(t.length,r),u=e;u=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&s0?t:e},i.min=function(t,e){return t.cmp(e)<0?t:e},i.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);return this._strip()},i.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r=e;r-=2)i=a(t,e,r)<=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else for(r=(t.length-e)%2==0?e+1:e;r=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;this._strip()},i.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,s=o%r,a=Math.min(o,o-s)+n,c=0,l=n;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(t){i.prototype.inspect=l}else i.prototype.inspect=l;function l(){return(this.red?""}var h=["","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"],d=[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],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,u=s/67108864|0;n.words[0]=a;for(var c=1;c>>26,h=67108863&u,d=Math.min(c,e.length-1),f=Math.max(0,c-t.length+1);f<=d;f++){var p=c-f|0;l+=(s=(i=0|t.words[p])*(o=0|e.words[f])+h)/67108864|0,h=67108863&s}n.words[c]=0|h,u=0|l}return 0!==u?n.words[c]=0|u:n.length--,n._strip()}i.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,o=0,s=0;s>>24-i&16777215)||s!==this.length-1?h[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,s--)}for(0!==o&&(r=o.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=d[t],l=f[t];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modrn(l).toString(t);r=(p=p.idivn(l)).isZero()?m+r:h[c-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(t,e){return this.toArrayLike(o,t,e)}),i.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},i.prototype.toArrayLike=function(t,e,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 s=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](s,i),s},i.prototype._toArrayLikeLE=function(t,e){for(var n=0,r=0,i=0,o=0;i>8&255),n>16&255),6===o?(n>24&255),r=0,o=0):(r=s>>>24,o+=2)}if(n=0&&(t[n--]=s>>8&255),n>=0&&(t[n--]=s>>16&255),6===o?(n>=0&&(t[n--]=s>>24&255),r=0,o=0):(r=s>>>24,o+=2)}if(n>=0)for(t[n--]=r;n>=0;)t[n--]=0},Math.clz32?i.prototype._countBits=function(t){return 32-Math.clz32(t)}:i.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},i.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n},i.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},i.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},i.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;nt.length?this.clone().iand(t):t.clone().iand(this)},i.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},i.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},i.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},i.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},i.prototype.notn=function(t){return this.clone().inotn(t)},i.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},i.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,s=0;s>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,f=0|s[1],p=8191&f,m=f>>>13,g=0|s[2],y=8191&g,b=g>>>13,v=0|s[3],_=8191&v,w=v>>>13,M=0|s[4],S=8191&M,A=M>>>13,k=0|s[5],E=8191&k,L=k>>>13,D=0|s[6],T=8191&D,O=D>>>13,x=0|s[7],I=8191&x,j=x>>>13,N=0|s[8],P=8191&N,C=N>>>13,R=0|s[9],Y=8191&R,B=R>>>13,z=0|a[0],U=8191&z,W=z>>>13,H=0|a[1],F=8191&H,q=H>>>13,V=0|a[2],K=8191&V,G=V>>>13,Q=0|a[3],Z=8191&Q,J=Q>>>13,$=0|a[4],X=8191&$,tt=$>>>13,et=0|a[5],nt=8191&et,rt=et>>>13,it=0|a[6],ot=8191&it,st=it>>>13,at=0|a[7],ut=8191&at,ct=at>>>13,lt=0|a[8],ht=8191<,dt=lt>>>13,ft=0|a[9],pt=8191&ft,mt=ft>>>13;n.negative=t.negative^e.negative,n.length=19;var gt=(c+(r=Math.imul(h,U))|0)+((8191&(i=(i=Math.imul(h,W))+Math.imul(d,U)|0))<<13)|0;c=((o=Math.imul(d,W))+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(p,U),i=(i=Math.imul(p,W))+Math.imul(m,U)|0,o=Math.imul(m,W);var yt=(c+(r=r+Math.imul(h,F)|0)|0)+((8191&(i=(i=i+Math.imul(h,q)|0)+Math.imul(d,F)|0))<<13)|0;c=((o=o+Math.imul(d,q)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(y,U),i=(i=Math.imul(y,W))+Math.imul(b,U)|0,o=Math.imul(b,W),r=r+Math.imul(p,F)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(m,F)|0,o=o+Math.imul(m,q)|0;var bt=(c+(r=r+Math.imul(h,K)|0)|0)+((8191&(i=(i=i+Math.imul(h,G)|0)+Math.imul(d,K)|0))<<13)|0;c=((o=o+Math.imul(d,G)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(_,U),i=(i=Math.imul(_,W))+Math.imul(w,U)|0,o=Math.imul(w,W),r=r+Math.imul(y,F)|0,i=(i=i+Math.imul(y,q)|0)+Math.imul(b,F)|0,o=o+Math.imul(b,q)|0,r=r+Math.imul(p,K)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,G)|0;var vt=(c+(r=r+Math.imul(h,Z)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(d,Z)|0))<<13)|0;c=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(S,U),i=(i=Math.imul(S,W))+Math.imul(A,U)|0,o=Math.imul(A,W),r=r+Math.imul(_,F)|0,i=(i=i+Math.imul(_,q)|0)+Math.imul(w,F)|0,o=o+Math.imul(w,q)|0,r=r+Math.imul(y,K)|0,i=(i=i+Math.imul(y,G)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,G)|0,r=r+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,J)|0;var _t=(c+(r=r+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(d,X)|0))<<13)|0;c=((o=o+Math.imul(d,tt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(E,U),i=(i=Math.imul(E,W))+Math.imul(L,U)|0,o=Math.imul(L,W),r=r+Math.imul(S,F)|0,i=(i=i+Math.imul(S,q)|0)+Math.imul(A,F)|0,o=o+Math.imul(A,q)|0,r=r+Math.imul(_,K)|0,i=(i=i+Math.imul(_,G)|0)+Math.imul(w,K)|0,o=o+Math.imul(w,G)|0,r=r+Math.imul(y,Z)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,J)|0,r=r+Math.imul(p,X)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,tt)|0;var wt=(c+(r=r+Math.imul(h,nt)|0)|0)+((8191&(i=(i=i+Math.imul(h,rt)|0)+Math.imul(d,nt)|0))<<13)|0;c=((o=o+Math.imul(d,rt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(T,U),i=(i=Math.imul(T,W))+Math.imul(O,U)|0,o=Math.imul(O,W),r=r+Math.imul(E,F)|0,i=(i=i+Math.imul(E,q)|0)+Math.imul(L,F)|0,o=o+Math.imul(L,q)|0,r=r+Math.imul(S,K)|0,i=(i=i+Math.imul(S,G)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,G)|0,r=r+Math.imul(_,Z)|0,i=(i=i+Math.imul(_,J)|0)+Math.imul(w,Z)|0,o=o+Math.imul(w,J)|0,r=r+Math.imul(y,X)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0;var Mt=(c+(r=r+Math.imul(h,ot)|0)|0)+((8191&(i=(i=i+Math.imul(h,st)|0)+Math.imul(d,ot)|0))<<13)|0;c=((o=o+Math.imul(d,st)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(I,U),i=(i=Math.imul(I,W))+Math.imul(j,U)|0,o=Math.imul(j,W),r=r+Math.imul(T,F)|0,i=(i=i+Math.imul(T,q)|0)+Math.imul(O,F)|0,o=o+Math.imul(O,q)|0,r=r+Math.imul(E,K)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(L,K)|0,o=o+Math.imul(L,G)|0,r=r+Math.imul(S,Z)|0,i=(i=i+Math.imul(S,J)|0)+Math.imul(A,Z)|0,o=o+Math.imul(A,J)|0,r=r+Math.imul(_,X)|0,i=(i=i+Math.imul(_,tt)|0)+Math.imul(w,X)|0,o=o+Math.imul(w,tt)|0,r=r+Math.imul(y,nt)|0,i=(i=i+Math.imul(y,rt)|0)+Math.imul(b,nt)|0,o=o+Math.imul(b,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,st)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0;var St=(c+(r=r+Math.imul(h,ut)|0)|0)+((8191&(i=(i=i+Math.imul(h,ct)|0)+Math.imul(d,ut)|0))<<13)|0;c=((o=o+Math.imul(d,ct)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(P,U),i=(i=Math.imul(P,W))+Math.imul(C,U)|0,o=Math.imul(C,W),r=r+Math.imul(I,F)|0,i=(i=i+Math.imul(I,q)|0)+Math.imul(j,F)|0,o=o+Math.imul(j,q)|0,r=r+Math.imul(T,K)|0,i=(i=i+Math.imul(T,G)|0)+Math.imul(O,K)|0,o=o+Math.imul(O,G)|0,r=r+Math.imul(E,Z)|0,i=(i=i+Math.imul(E,J)|0)+Math.imul(L,Z)|0,o=o+Math.imul(L,J)|0,r=r+Math.imul(S,X)|0,i=(i=i+Math.imul(S,tt)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,tt)|0,r=r+Math.imul(_,nt)|0,i=(i=i+Math.imul(_,rt)|0)+Math.imul(w,nt)|0,o=o+Math.imul(w,rt)|0,r=r+Math.imul(y,ot)|0,i=(i=i+Math.imul(y,st)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,st)|0,r=r+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ct)|0)+Math.imul(m,ut)|0,o=o+Math.imul(m,ct)|0;var At=(c+(r=r+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,dt)|0)+Math.imul(d,ht)|0))<<13)|0;c=((o=o+Math.imul(d,dt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(Y,U),i=(i=Math.imul(Y,W))+Math.imul(B,U)|0,o=Math.imul(B,W),r=r+Math.imul(P,F)|0,i=(i=i+Math.imul(P,q)|0)+Math.imul(C,F)|0,o=o+Math.imul(C,q)|0,r=r+Math.imul(I,K)|0,i=(i=i+Math.imul(I,G)|0)+Math.imul(j,K)|0,o=o+Math.imul(j,G)|0,r=r+Math.imul(T,Z)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(O,Z)|0,o=o+Math.imul(O,J)|0,r=r+Math.imul(E,X)|0,i=(i=i+Math.imul(E,tt)|0)+Math.imul(L,X)|0,o=o+Math.imul(L,tt)|0,r=r+Math.imul(S,nt)|0,i=(i=i+Math.imul(S,rt)|0)+Math.imul(A,nt)|0,o=o+Math.imul(A,rt)|0,r=r+Math.imul(_,ot)|0,i=(i=i+Math.imul(_,st)|0)+Math.imul(w,ot)|0,o=o+Math.imul(w,st)|0,r=r+Math.imul(y,ut)|0,i=(i=i+Math.imul(y,ct)|0)+Math.imul(b,ut)|0,o=o+Math.imul(b,ct)|0,r=r+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,dt)|0)+Math.imul(m,ht)|0,o=o+Math.imul(m,dt)|0;var kt=(c+(r=r+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,mt)|0)+Math.imul(d,pt)|0))<<13)|0;c=((o=o+Math.imul(d,mt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(Y,F),i=(i=Math.imul(Y,q))+Math.imul(B,F)|0,o=Math.imul(B,q),r=r+Math.imul(P,K)|0,i=(i=i+Math.imul(P,G)|0)+Math.imul(C,K)|0,o=o+Math.imul(C,G)|0,r=r+Math.imul(I,Z)|0,i=(i=i+Math.imul(I,J)|0)+Math.imul(j,Z)|0,o=o+Math.imul(j,J)|0,r=r+Math.imul(T,X)|0,i=(i=i+Math.imul(T,tt)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,tt)|0,r=r+Math.imul(E,nt)|0,i=(i=i+Math.imul(E,rt)|0)+Math.imul(L,nt)|0,o=o+Math.imul(L,rt)|0,r=r+Math.imul(S,ot)|0,i=(i=i+Math.imul(S,st)|0)+Math.imul(A,ot)|0,o=o+Math.imul(A,st)|0,r=r+Math.imul(_,ut)|0,i=(i=i+Math.imul(_,ct)|0)+Math.imul(w,ut)|0,o=o+Math.imul(w,ct)|0,r=r+Math.imul(y,ht)|0,i=(i=i+Math.imul(y,dt)|0)+Math.imul(b,ht)|0,o=o+Math.imul(b,dt)|0;var Et=(c+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;c=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(Y,K),i=(i=Math.imul(Y,G))+Math.imul(B,K)|0,o=Math.imul(B,G),r=r+Math.imul(P,Z)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(C,Z)|0,o=o+Math.imul(C,J)|0,r=r+Math.imul(I,X)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(j,X)|0,o=o+Math.imul(j,tt)|0,r=r+Math.imul(T,nt)|0,i=(i=i+Math.imul(T,rt)|0)+Math.imul(O,nt)|0,o=o+Math.imul(O,rt)|0,r=r+Math.imul(E,ot)|0,i=(i=i+Math.imul(E,st)|0)+Math.imul(L,ot)|0,o=o+Math.imul(L,st)|0,r=r+Math.imul(S,ut)|0,i=(i=i+Math.imul(S,ct)|0)+Math.imul(A,ut)|0,o=o+Math.imul(A,ct)|0,r=r+Math.imul(_,ht)|0,i=(i=i+Math.imul(_,dt)|0)+Math.imul(w,ht)|0,o=o+Math.imul(w,dt)|0;var Lt=(c+(r=r+Math.imul(y,pt)|0)|0)+((8191&(i=(i=i+Math.imul(y,mt)|0)+Math.imul(b,pt)|0))<<13)|0;c=((o=o+Math.imul(b,mt)|0)+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,r=Math.imul(Y,Z),i=(i=Math.imul(Y,J))+Math.imul(B,Z)|0,o=Math.imul(B,J),r=r+Math.imul(P,X)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(C,X)|0,o=o+Math.imul(C,tt)|0,r=r+Math.imul(I,nt)|0,i=(i=i+Math.imul(I,rt)|0)+Math.imul(j,nt)|0,o=o+Math.imul(j,rt)|0,r=r+Math.imul(T,ot)|0,i=(i=i+Math.imul(T,st)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,st)|0,r=r+Math.imul(E,ut)|0,i=(i=i+Math.imul(E,ct)|0)+Math.imul(L,ut)|0,o=o+Math.imul(L,ct)|0,r=r+Math.imul(S,ht)|0,i=(i=i+Math.imul(S,dt)|0)+Math.imul(A,ht)|0,o=o+Math.imul(A,dt)|0;var Dt=(c+(r=r+Math.imul(_,pt)|0)|0)+((8191&(i=(i=i+Math.imul(_,mt)|0)+Math.imul(w,pt)|0))<<13)|0;c=((o=o+Math.imul(w,mt)|0)+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,r=Math.imul(Y,X),i=(i=Math.imul(Y,tt))+Math.imul(B,X)|0,o=Math.imul(B,tt),r=r+Math.imul(P,nt)|0,i=(i=i+Math.imul(P,rt)|0)+Math.imul(C,nt)|0,o=o+Math.imul(C,rt)|0,r=r+Math.imul(I,ot)|0,i=(i=i+Math.imul(I,st)|0)+Math.imul(j,ot)|0,o=o+Math.imul(j,st)|0,r=r+Math.imul(T,ut)|0,i=(i=i+Math.imul(T,ct)|0)+Math.imul(O,ut)|0,o=o+Math.imul(O,ct)|0,r=r+Math.imul(E,ht)|0,i=(i=i+Math.imul(E,dt)|0)+Math.imul(L,ht)|0,o=o+Math.imul(L,dt)|0;var Tt=(c+(r=r+Math.imul(S,pt)|0)|0)+((8191&(i=(i=i+Math.imul(S,mt)|0)+Math.imul(A,pt)|0))<<13)|0;c=((o=o+Math.imul(A,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(Y,nt),i=(i=Math.imul(Y,rt))+Math.imul(B,nt)|0,o=Math.imul(B,rt),r=r+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,st)|0)+Math.imul(C,ot)|0,o=o+Math.imul(C,st)|0,r=r+Math.imul(I,ut)|0,i=(i=i+Math.imul(I,ct)|0)+Math.imul(j,ut)|0,o=o+Math.imul(j,ct)|0,r=r+Math.imul(T,ht)|0,i=(i=i+Math.imul(T,dt)|0)+Math.imul(O,ht)|0,o=o+Math.imul(O,dt)|0;var Ot=(c+(r=r+Math.imul(E,pt)|0)|0)+((8191&(i=(i=i+Math.imul(E,mt)|0)+Math.imul(L,pt)|0))<<13)|0;c=((o=o+Math.imul(L,mt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(Y,ot),i=(i=Math.imul(Y,st))+Math.imul(B,ot)|0,o=Math.imul(B,st),r=r+Math.imul(P,ut)|0,i=(i=i+Math.imul(P,ct)|0)+Math.imul(C,ut)|0,o=o+Math.imul(C,ct)|0,r=r+Math.imul(I,ht)|0,i=(i=i+Math.imul(I,dt)|0)+Math.imul(j,ht)|0,o=o+Math.imul(j,dt)|0;var xt=(c+(r=r+Math.imul(T,pt)|0)|0)+((8191&(i=(i=i+Math.imul(T,mt)|0)+Math.imul(O,pt)|0))<<13)|0;c=((o=o+Math.imul(O,mt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(Y,ut),i=(i=Math.imul(Y,ct))+Math.imul(B,ut)|0,o=Math.imul(B,ct),r=r+Math.imul(P,ht)|0,i=(i=i+Math.imul(P,dt)|0)+Math.imul(C,ht)|0,o=o+Math.imul(C,dt)|0;var It=(c+(r=r+Math.imul(I,pt)|0)|0)+((8191&(i=(i=i+Math.imul(I,mt)|0)+Math.imul(j,pt)|0))<<13)|0;c=((o=o+Math.imul(j,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(Y,ht),i=(i=Math.imul(Y,dt))+Math.imul(B,ht)|0,o=Math.imul(B,dt);var jt=(c+(r=r+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,mt)|0)+Math.imul(C,pt)|0))<<13)|0;c=((o=o+Math.imul(C,mt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863;var Nt=(c+(r=Math.imul(Y,pt))|0)+((8191&(i=(i=Math.imul(Y,mt))+Math.imul(B,pt)|0))<<13)|0;return c=((o=Math.imul(B,mt))+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,u[0]=gt,u[1]=yt,u[2]=bt,u[3]=vt,u[4]=_t,u[5]=wt,u[6]=Mt,u[7]=St,u[8]=At,u[9]=kt,u[10]=Et,u[11]=Lt,u[12]=Dt,u[13]=Tt,u[14]=Ot,u[15]=xt,u[16]=It,u[17]=jt,u[18]=Nt,0!==c&&(u[19]=c,n.length++),n};function g(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,s&=67108863}n.words[o]=a,r=s,s=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function y(t,e,n){return g(t,e,n)}Math.imul||(m=p),i.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?m(this,t,e):n<63?p(this,t,e):n<1024?g(this,t,e):y(this,t,e)},i.prototype.mul=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},i.prototype.mulf=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),y(this,t,e)},i.prototype.imul=function(t){return this.clone().mulTo(t,this)},i.prototype.imuln=function(t){var e=t<0;e&&(t=-t),n("number"==typeof t),n(t<67108864);for(var r=0,i=0;i>=26,r+=o/67108864|0,r+=s>>>26,this.words[i]=67108863&s}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},i.prototype.muln=function(t){return this.clone().imuln(t)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n>>i&1}return e}(t);if(0===e.length)return new i(1);for(var n=this,r=0;r=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(e=0;e>>26-r}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<s)for(this.length-=s,c=0;c=0&&(0!==l||c>=i);c--){var h=0|this.words[c];this.words[c]=l<<26-o|h>>>o,l=h&a}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},i.prototype.shln=function(t){return this.clone().ishln(t)},i.prototype.ushln=function(t){return this.clone().iushln(t)},i.prototype.shrn=function(t){return this.clone().ishrn(t)},i.prototype.ushrn=function(t){return this.clone().iushrn(t)},i.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},i.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===a)return this._strip();for(n(-1===a),a=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},i.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),o=t,s=0|o.words[o.length-1];0!==(n=26-this._countBits(s))&&(o=o.ushln(n),r.iushln(n),s=0|o.words[o.length-1]);var a,u=r.length-o.length;if("mod"!==e){(a=new i(null)).length=u+1,a.words=new Array(a.length);for(var c=0;c=0;h--){var d=67108864*(0|r.words[o.length+h])+(0|r.words[o.length+h-1]);for(d=Math.min(d/s|0,67108863),r._ishlnsubmul(o,d,h);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(o,1,h),r.isZero()||(r.negative^=1);a&&(a.words[h]=d)}return a&&a._strip(),r._strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:a||null,mod:r}},i.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(o=a.div.neg()),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(t)),{div:o,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(o=a.div.neg()),{div:o,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new i(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new i(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new i(this.modrn(t.words[0]))}:this._wordDiv(t,e);var o,s,a},i.prototype.div=function(t){return this.divmod(t,"div",!1).div},i.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},i.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},i.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},i.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=(1<<26)%t,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%t;return e?-i:i},i.prototype.modn=function(t){return this.modrn(t)},i.prototype.idivn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/t|0,r=o%t}return this._strip(),e?this.ineg():this},i.prototype.divn=function(t){return this.clone().idivn(t)},i.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o=new i(1),s=new i(0),a=new i(0),u=new i(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),h=e.clone();!e.isZero();){for(var d=0,f=1;0==(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(l),s.isub(h)),o.iushrn(1),s.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;)(a.isOdd()||u.isOdd())&&(a.iadd(l),u.isub(h)),a.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(a),s.isub(u)):(r.isub(e),a.isub(o),u.isub(s))}return{a:a,b:u,gcd:r.iushln(c)}},i.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o,s=new i(1),a=new i(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,l=1;0==(e.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(e.iushrn(c);c-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);e.cmp(r)>=0?(e.isub(r),s.isub(a)):(r.isub(e),a.isub(s))}return(o=0===e.cmpn(1)?s:a).cmpn(0)<0&&o.iadd(t),o},i.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},i.prototype.invm=function(t){return this.egcd(t).a.umod(t)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(t){return this.words[0]&t},i.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){ri&&(e=1);break}}return e},i.prototype.gtn=function(t){return 1===this.cmpn(t)},i.prototype.gt=function(t){return 1===this.cmp(t)},i.prototype.gten=function(t){return this.cmpn(t)>=0},i.prototype.gte=function(t){return this.cmp(t)>=0},i.prototype.ltn=function(t){return-1===this.cmpn(t)},i.prototype.lt=function(t){return-1===this.cmp(t)},i.prototype.lten=function(t){return this.cmpn(t)<=0},i.prototype.lte=function(t){return this.cmp(t)<=0},i.prototype.eqn=function(t){return 0===this.cmpn(t)},i.prototype.eq=function(t){return 0===this.cmp(t)},i.red=function(t){return new A(t)},i.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(t){return this.red=t,this},i.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},i.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},i.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},i.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},i.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},i.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},i.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},i.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var b={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(t){if("string"==typeof t){var e=i._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function k(t){A.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var t=new i(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},r(_,v),_.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i>>22,o=s}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},_.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},i._prime=function(t){if(b[t])return b[t];var e;if("k256"===t)e=new _;else if("p224"===t)e=new w;else if("p192"===t)e=new M;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new S}return b[t]=e,e},A.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},A.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},A.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(c(t,t.umod(this.m)._forceRed(this)),t)},A.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},A.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},A.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},A.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},A.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},A.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},A.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},A.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},A.prototype.isqr=function(t){return this.imul(t,t.clone())},A.prototype.sqr=function(t){return this.mul(t,t)},A.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new i(1)).iushrn(2);return this.pow(t,r)}for(var o=this.m.subn(1),s=0;!o.isZero()&&0===o.andln(1);)s++,o.iushrn(1);n(!o.isZero());var a=new i(1).toRed(this),u=a.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var h=this.pow(l,o),d=this.pow(t,o.addn(1).iushrn(1)),f=this.pow(t,o),p=s;0!==f.cmp(a);){for(var m=f,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g=0;r--){for(var c=e.words[r],l=u-1;l>=0;l--){var h=c>>l&1;o!==n[0]&&(o=this.sqr(o)),0!==h||0!==s?(s<<=1,s|=h,(4===++a||0===r&&0===l)&&(o=this.mul(o,n[s]),a=0,s=0)):a=0}u=26}return o},A.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},A.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},i.mont=function(t){return new k(t)},r(k,A),k.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},k.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},k.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).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)},k.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new i(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),s=o;return o.cmp(this.m)>=0?s=o.isub(this.m):o.cmpn(0)<0&&(s=o.iadd(this.m)),s._forceRed(this)},k.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,Gt)})),ee=Zt((function(t,e){ /*! safe-buffer. MIT License. Feross Aboukhadijeh */ var n=Kt.Buffer;function r(t,e){for(var n in t)e[n]=t[n]}function i(t,e,r){return n(t,e,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=Kt:(r(Kt,e),e.Buffer=i),i.prototype=Object.create(n.prototype),r(n,i),i.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return n(t,e,r)},i.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var i=n(t);return void 0!==e?"string"==typeof r?i.fill(e,r):i.fill(e):i.fill(0),i},i.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n(t)},i.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return Kt.SlowBuffer(t)}}));ee.Buffer;var ne=ee.Buffer,re=function(t){if(t.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),n=0;n>>0,c=new Uint8Array(o);t[n];){var l=e[t.charCodeAt(n)];if(255===l)return;for(var h=0,d=o-1;(0!==l||h>>0,c[d]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");i=h,n++}for(var f=o-i;f!==o&&0===c[f];)f++;var p=ne.allocUnsafe(r+(o-f));p.fill(0,0,r);for(var m=r;f!==o;)p[m++]=c[f++];return p}return{encode:function(e){if((Array.isArray(e)||e instanceof Uint8Array)&&(e=ne.from(e)),!ne.isBuffer(e))throw new TypeError("Expected Buffer");if(0===e.length)return"";for(var n=0,r=0,i=0,o=e.length;i!==o&&0===e[i];)i++,n++;for(var u=(o-i)*c+1>>>0,l=new Uint8Array(u);i!==o;){for(var h=e[i],d=0,f=u-1;(0!==h||d>>0,l[f]=h%s>>>0,h=h/s>>>0;if(0!==h)throw new Error("Non-zero carry");r=d,i++}for(var p=u-r;p!==u&&0===l[p];)p++;for(var m=a.repeat(n);p>6*n)+r];n>0;){var o=e>>6*(n-1);i.push(128|63&o),n-=1}return i}}he.prototype={decode:function(t,e){var n;n="object"==typeof t&&t instanceof ArrayBuffer?new Uint8Array(t):"object"==typeof t&&"buffer"in t&&t.buffer instanceof ArrayBuffer?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):new Uint8Array(0),e=se(e),this._streaming||(this._decoder=new fe({fatal:this._fatal}),this._BOMseen=!1),this._streaming=Boolean(e.stream);for(var r,i=new ae(n),o=[];!i.endOfStream()&&(r=this._decoder.handler(i,i.read()))!==ue;)null!==r&&(Array.isArray(r)?o.push.apply(o,r):o.push(r));if(!this._streaming){do{if((r=this._decoder.handler(i,i.read()))===ue)break;null!==r&&(Array.isArray(r)?o.push.apply(o,r):o.push(r))}while(!i.endOfStream());this._decoder=null}return o.length&&(-1===["utf-8"].indexOf(this.encoding)||this._ignoreBOM||this._BOMseen||(65279===o[0]?(this._BOMseen=!0,o.shift()):this._BOMseen=!0)),function(t){for(var e="",n=0;n>10),56320+(1023&r)))}return e}(o)}},de.prototype={encode:function(t,e){t=t?String(t):"",e=se(e),this._streaming||(this._encoder=new pe(this._options)),this._streaming=Boolean(e.stream);for(var n,r=[],i=new ae(function(t){for(var e=String(t),n=e.length,r=0,i=[];r57343)i.push(o);else if(56320<=o&&o<=57343)i.push(65533);else if(55296<=o&&o<=56319)if(r===n-1)i.push(65533);else{var s=t.charCodeAt(r+1);if(56320<=s&&s<=57343){var a=1023&o,u=1023&s;i.push(65536+(a<<10)+u),r+=1}else i.push(65533)}r+=1}return i}(t));!i.endOfStream()&&(n=this._encoder.handler(i,i.read()))!==ue;)Array.isArray(n)?r.push.apply(r,n):r.push(n);if(!this._streaming){for(;(n=this._encoder.handler(i,i.read()))!==ue;)Array.isArray(n)?r.push.apply(r,n):r.push(n);this._encoder=null}return new Uint8Array(r)}};var me=Jt(Object.freeze({__proto__:null,TextEncoder:de,TextDecoder:he})),ge=Zt((function(t,e){var n=Gt&&Gt.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=Gt&&Gt.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=Gt&&Gt.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},o=Gt&&Gt.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)"default"!==i&&Object.hasOwnProperty.call(t,i)&&n(e,t,i);return r(e,t),e},s=Gt&&Gt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.deserializeUnchecked=e.deserialize=e.serialize=e.BinaryReader=e.BinaryWriter=e.BorshError=e.baseDecode=e.baseEncode=void 0;const a=s(te),u=s(ie),c=o(me),l=new("function"!=typeof TextDecoder?c.TextDecoder:TextDecoder)("utf-8",{fatal:!0});e.baseEncode=function(t){return"string"==typeof t&&(t=ut.from(t,"utf8")),u.default.encode(ut.from(t))},e.baseDecode=function(t){return ut.from(u.default.decode(t))};const h=1024;class d extends Error{constructor(t){super(t),this.fieldPath=[],this.originalMessage=t}addToFieldPath(t){this.fieldPath.splice(0,0,t),this.message=this.originalMessage+": "+this.fieldPath.join(".")}}e.BorshError=d;class f{constructor(){this.buf=ut.alloc(h),this.length=0}maybeResize(){this.buf.length<16+this.length&&(this.buf=ut.concat([this.buf,ut.alloc(h)]))}writeU8(t){this.maybeResize(),this.buf.writeUInt8(t,this.length),this.length+=1}writeU16(t){this.maybeResize(),this.buf.writeUInt16LE(t,this.length),this.length+=2}writeU32(t){this.maybeResize(),this.buf.writeUInt32LE(t,this.length),this.length+=4}writeU64(t){this.maybeResize(),this.writeBuffer(ut.from(new a.default(t).toArray("le",8)))}writeU128(t){this.maybeResize(),this.writeBuffer(ut.from(new a.default(t).toArray("le",16)))}writeU256(t){this.maybeResize(),this.writeBuffer(ut.from(new a.default(t).toArray("le",32)))}writeU512(t){this.maybeResize(),this.writeBuffer(ut.from(new a.default(t).toArray("le",64)))}writeBuffer(t){this.buf=ut.concat([ut.from(this.buf.subarray(0,this.length)),t,ut.alloc(h)]),this.length+=t.length}writeString(t){this.maybeResize();const e=ut.from(t,"utf8");this.writeU32(e.length),this.writeBuffer(e)}writeFixedArray(t){this.writeBuffer(ut.from(t))}writeArray(t,e){this.maybeResize(),this.writeU32(t.length);for(const n of t)this.maybeResize(),e(n)}toArray(){return this.buf.subarray(0,this.length)}}function p(t,e,n){const r=n.value;n.value=function(...t){try{return r.apply(this,t)}catch(t){if(t instanceof RangeError){const e=t.code;if(["ERR_BUFFER_OUT_OF_BOUNDS","ERR_OUT_OF_RANGE"].indexOf(e)>=0)throw new d("Reached the end of buffer when deserializing")}throw t}}}e.BinaryWriter=f;class m{constructor(t){this.buf=t,this.offset=0}readU8(){const t=this.buf.readUInt8(this.offset);return this.offset+=1,t}readU16(){const t=this.buf.readUInt16LE(this.offset);return this.offset+=2,t}readU32(){const t=this.buf.readUInt32LE(this.offset);return this.offset+=4,t}readU64(){const t=this.readBuffer(8);return new a.default(t,"le")}readU128(){const t=this.readBuffer(16);return new a.default(t,"le")}readU256(){const t=this.readBuffer(32);return new a.default(t,"le")}readU512(){const t=this.readBuffer(64);return new a.default(t,"le")}readBuffer(t){if(this.offset+t>this.buf.length)throw new d(`Expected buffer length ${t} isn't within bounds`);const e=this.buf.slice(this.offset,this.offset+t);return this.offset+=t,e}readString(){const t=this.readU32(),e=this.readBuffer(t);try{return l.decode(e)}catch(t){throw new d("Error decoding UTF-8 string: "+t)}}readFixedArray(t){return new Uint8Array(this.readBuffer(t))}readArray(t){const e=this.readU32(),n=Array();for(let r=0;r{y(t,e,n,r[0],i)});else if(void 0!==r.kind)switch(r.kind){case"option":null==n?i.writeU8(0):(i.writeU8(1),y(t,e,n,r.type,i));break;case"map":i.writeU32(n.size),n.forEach((n,o)=>{y(t,e,o,r.key,i),y(t,e,n,r.value,i)});break;default:throw new d(`FieldType ${r} unrecognized`)}else b(t,n,i)}catch(t){throw t instanceof d&&t.addToFieldPath(e),t}}function b(t,e,n){if("function"==typeof e.borshSerialize)return void e.borshSerialize(n);const r=t.get(e.constructor);if(!r)throw new d(`Class ${e.constructor.name} is missing in schema`);if("struct"===r.kind)r.fields.map(([r,i])=>{y(t,r,e[r],i,n)});else{if("enum"!==r.kind)throw new d(`Unexpected schema kind: ${r.kind} for ${e.constructor.name}`);{const i=e[r.field];for(let o=0;ov(t,e,n[0],r))}if("option"===n.kind)return r.readU8()?v(t,e,n.type,r):void 0;if("map"===n.kind){let i=new Map;const o=r.readU32();for(let s=0;s=r.values.length)throw new d(`Enum index: ${i} is out of range`);const[o,s]=r.values[i];return new e({[o]:v(t,o,s,n)})}throw new d(`Unexpected schema kind: ${r.kind} for ${e.constructor.name}`)}i([p],m.prototype,"readU8",null),i([p],m.prototype,"readU16",null),i([p],m.prototype,"readU32",null),i([p],m.prototype,"readU64",null),i([p],m.prototype,"readU128",null),i([p],m.prototype,"readU256",null),i([p],m.prototype,"readU512",null),i([p],m.prototype,"readString",null),i([p],m.prototype,"readFixedArray",null),i([p],m.prototype,"readArray",null),e.BinaryReader=m,e.serialize=function(t,e,n=f){const r=new n;return b(t,e,r),r.toArray()},e.deserialize=function(t,e,n,r=m){const i=new r(n),o=_(t,e,i);if(i.offsetthis.span)throw new RangeError("indeterminate span");return this.span}replicate(t){const e=Object.create(this.constructor.prototype);return Object.assign(e,this),e.property=t,e}fromArray(t){}}function o(t,e){return e.property?t+"["+e.property+"]":t}e.Layout=i,e.nameWithProperty=o,e.bindConstructorLayout=function(t,e){if("function"!=typeof t)throw new TypeError("Class must be constructor");if(Object.prototype.hasOwnProperty.call(t,"layout_"))throw new Error("Class is already bound to a layout");if(!(e&&e instanceof i))throw new TypeError("layout must be a Layout");if(Object.prototype.hasOwnProperty.call(e,"boundConstructor_"))throw new Error("layout is already bound to a constructor");t.layout_=e,e.boundConstructor_=t,e.makeDestinationObject=()=>new t,Object.defineProperty(t.prototype,"encode",{value(t,n){return e.encode(this,t,n)},writable:!0}),Object.defineProperty(t,"decode",{value:(t,n)=>e.decode(t,n),writable:!0})};class s extends i{isCount(){throw new Error("ExternalLayout is abstract")}}e.ExternalLayout=s;class a extends s{constructor(t=1,e){if(!Number.isInteger(t)||0>=t)throw new TypeError("elementSpan must be a (positive) integer");super(-1,e),this.elementSpan=t}isCount(){return!0}decode(t,e=0){n(t);const r=t.length-e;return Math.floor(r/this.elementSpan)}encode(t,e,n){return 0}}e.GreedyCount=a;class u extends s{constructor(t,e=0,n){if(!(t instanceof i))throw new TypeError("layout must be a Layout");if(!Number.isInteger(e))throw new TypeError("offset must be integer or undefined");super(t.span,n||t.property),this.layout=t,this.offset=e}isCount(){return this.layout instanceof c||this.layout instanceof l}decode(t,e=0){return this.layout.decode(t,e+this.offset)}encode(t,e,n=0){return this.layout.encode(t,e,n+this.offset)}}e.OffsetLayout=u;class c extends i{constructor(t,e){if(super(t,e),6t+r.encode(i,e,n+t),0);return this.count instanceof s&&this.count.encode(t.length,e,n),i}}e.Sequence=A;class k extends i{constructor(t,e,n){if(!Array.isArray(t)||!t.reduce((t,e)=>t&&e instanceof i,!0))throw new TypeError("fields must be array of Layout instances");"boolean"==typeof e&&void 0===n&&(n=e,e=void 0);for(const i of t)if(0>i.span&&void 0===i.property)throw new Error("fields cannot contain unnamed variable-length layout");let r=-1;try{r=t.reduce((t,e)=>t+e.getSpan(),0)}catch(t){}super(r,e),this.fields=t,this.decodePrefixes=!!n}getSpan(t,e=0){if(0<=this.span)return this.span;let n=0;try{n=this.fields.reduce((n,r)=>{const i=r.getSpan(t,e);return e+=i,n+i},0)}catch(t){throw new RangeError("indeterminate span")}return n}decode(t,e=0){n(t);const r=this.makeDestinationObject();for(const n of this.fields)if(void 0!==n.property&&(r[n.property]=n.decode(t,e)),e+=n.getSpan(t,e),this.decodePrefixes&&t.length===e)break;return r}encode(t,e,n=0){const r=n;let i=0,o=0;for(const s of this.fields){let r=s.span;if(o=0r&&(r=s.getSpan(e,n)))}i=n,n+=r}return i+o-r}fromArray(t){const e=this.makeDestinationObject();for(const n of this.fields)void 0!==n.property&&0n.span?e=-1:0<=e&&(e+=n.span)}}}e.Structure=k;class E{constructor(t){this.property=t}decode(t,e){throw new Error("UnionDiscriminator is abstract")}encode(t,e,n){throw new Error("UnionDiscriminator is abstract")}}e.UnionDiscriminator=E;class L extends E{constructor(t,e){if(!(t instanceof s&&t.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");super(e||t.property||"variant"),this.layout=t}decode(t,e){return this.layout.decode(t,e)}encode(t,e,n){return this.layout.encode(t,e,n)}}e.UnionLayoutDiscriminator=L;class D extends i{constructor(t,e,n){let r;if(t instanceof c||t instanceof l)r=new L(new u(t));else if(t instanceof s&&t.isCount())r=new L(t);else{if(!(t instanceof E))throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");r=t}if(void 0===e&&(e=null),!(null===e||e instanceof i))throw new TypeError("defaultLayout must be null or a Layout");if(null!==e){if(0>e.span)throw new Error("defaultLayout must have constant span");void 0===e.property&&(e=e.replicate("content"))}let o=-1;e&&(o=e.span,0<=o&&(t instanceof c||t instanceof l)&&(o+=r.layout.span)),super(o,n),this.discriminator=r,this.usesPrefixDiscriminator=t instanceof c||t instanceof l,this.defaultLayout=e,this.registry={};let a=this.defaultGetSourceVariant.bind(this);this.getSourceVariant=function(t){return a(t)},this.configGetSourceVariant=function(t){a=t.bind(this)}}getSpan(t,e=0){if(0<=this.span)return this.span;const n=this.getVariant(t,e);if(!n)throw new Error("unable to determine span for unrecognized variant");return n.getSpan(t,e)}defaultGetSourceVariant(t){if(Object.prototype.hasOwnProperty.call(t,this.discriminator.property)){if(this.defaultLayout&&this.defaultLayout.property&&Object.prototype.hasOwnProperty.call(t,this.defaultLayout.property))return;const e=this.registry[t[this.discriminator.property]];if(e&&(!e.layout||e.property&&Object.prototype.hasOwnProperty.call(t,e.property)))return e}else for(const e in this.registry){const n=this.registry[e];if(n.property&&Object.prototype.hasOwnProperty.call(t,n.property))return n}throw new Error("unable to infer src variant")}decode(t,e=0){let n;const r=this.discriminator,i=r.decode(t,e),o=this.registry[i];if(void 0===o){const o=this.defaultLayout;let s=0;this.usesPrefixDiscriminator&&(s=r.layout.span),n=this.makeDestinationObject(),n[r.property]=i,n[o.property]=o.decode(t,e+s)}else n=o.decode(t,e);return n}encode(t,e,n=0){const r=this.getSourceVariant(t);if(void 0===r){const r=this.discriminator,i=this.defaultLayout;let o=0;return this.usesPrefixDiscriminator&&(o=r.layout.span),r.encode(t[r.property],e,n),o+i.encode(t[i.property],e,n+o)}return r.encode(t,e,n)}addVariant(t,e,n){const r=new T(this,t,e,n);return this.registry[t]=r,r}getVariant(t,e=0){let n;return n=t instanceof Uint8Array?this.discriminator.decode(t,e):t,this.registry[n]}}e.Union=D;class T extends i{constructor(t,e,n,r){if(!(t instanceof D))throw new TypeError("union must be a Union");if(!Number.isInteger(e)||0>e)throw new TypeError("variant must be a (non-negative) integer");if("string"==typeof n&&void 0===r&&(r=n,n=null),n){if(!(n instanceof i))throw new TypeError("layout must be a Layout");if(null!==t.defaultLayout&&0<=n.span&&n.span>t.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if("string"!=typeof r)throw new TypeError("variant must have a String property")}let o=t.span;0>t.span&&(o=n?n.span:0,0<=o&&t.usesPrefixDiscriminator&&(o+=t.discriminator.layout.span)),super(o,r),this.union=t,this.variant=e,this.layout=n||null}getSpan(t,e=0){if(0<=this.span)return this.span;let n=0;this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span);let r=0;return this.layout&&(r=this.layout.getSpan(t,e+n)),n+r}decode(t,e=0){const n=this.makeDestinationObject();if(this!==this.union.getVariant(t,e))throw new Error("variant mismatch");let r=0;return this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout?n[this.property]=this.layout.decode(t,e+r):this.property?n[this.property]=!0:this.union.usesPrefixDiscriminator&&(n[this.union.discriminator.property]=this.variant),n}encode(t,e,n=0){let r=0;if(this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout&&!Object.prototype.hasOwnProperty.call(t,this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,e,n);let i=r;if(this.layout&&(this.layout.encode(t[this.property],e,n+r),i+=this.layout.getSpan(e,n+r),0<=this.union.span&&i>this.union.span))throw new Error("encoded variant overruns containing union");return i}fromArray(t){if(this.layout)return this.layout.fromArray(t)}}function O(t){return 0>t&&(t+=4294967296),t}e.VariantLayout=T;class x extends i{constructor(t,e,n){if(!(t instanceof c||t instanceof l))throw new TypeError("word must be a UInt or UIntBE layout");if("string"==typeof e&&void 0===n&&(n=e,e=!1),4=e)throw new TypeError("bits must be positive integer");const r=8*t.span,i=t.fields.reduce((t,e)=>t+e.bits,0);if(e+i>r)throw new Error("bits too long for span remainder ("+(r-i)+" of "+r+" remain)");this.container=t,this.bits=e,this.valueMask=(1<>>this.start}encode(t){if("number"!=typeof t||!Number.isInteger(t)||t!==O(t&this.valueMask))throw new TypeError(o("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);const e=this.container._packedGetValue(),n=O(t<n&&(n=this.length.decode(t,e)),n}decode(t,e=0){let n=this.span;return 0>n&&(n=this.length.decode(t,e)),r(t).slice(e,e+n)}encode(t,e,n){let i=this.length;if(this.length instanceof s&&(i=t.length),!(t instanceof Uint8Array&&i===t.length))throw new TypeError(o("Blob.encode",this)+" requires (length "+i+") Uint8Array as src");if(n+i>e.length)throw new RangeError("encoding overruns Uint8Array");const a=r(t);return r(e).write(a.toString("hex"),n,i,"hex"),this.length instanceof s&&this.length.encode(i,e,n),i}}e.Blob=N;class P extends i{constructor(t){super(-1,t)}getSpan(t,e=0){n(t);let r=e;for(;re.length)throw new RangeError("encoding overruns Buffer");const s=r(e);return i.copy(s,n),s[n+o]=0,o+1}}e.CString=P;class C extends i{constructor(t,e){if("string"==typeof t&&void 0===e&&(e=t,t=void 0),void 0===t)t=-1;else if(!Number.isInteger(t))throw new TypeError("maxSpan must be an integer");super(-1,e),this.maxSpan=t}getSpan(t,e=0){return n(t),t.length-e}decode(t,e=0){const n=this.getSpan(t,e);if(0<=this.maxSpan&&this.maxSpane.length)throw new RangeError("encoding overruns Buffer");return i.copy(r(e),n),o}}e.UTF8=C;class R extends i{constructor(t,e){super(0,e),this.value=t}decode(t,e){return this.value}encode(t,e,n){return 0}}e.Constant=R,e.greedy=(t,e)=>new a(t,e),e.offset=(t,e,n)=>new u(t,e,n),e.u8=t=>new c(1,t),e.u16=t=>new c(2,t),e.u24=t=>new c(3,t),e.u32=t=>new c(4,t),e.u40=t=>new c(5,t),e.u48=t=>new c(6,t),e.nu64=t=>new g(t),e.u16be=t=>new l(2,t),e.u24be=t=>new l(3,t),e.u32be=t=>new l(4,t),e.u40be=t=>new l(5,t),e.u48be=t=>new l(6,t),e.nu64be=t=>new y(t),e.s8=t=>new h(1,t),e.s16=t=>new h(2,t),e.s24=t=>new h(3,t),e.s32=t=>new h(4,t),e.s40=t=>new h(5,t),e.s48=t=>new h(6,t),e.ns64=t=>new b(t),e.s16be=t=>new d(2,t),e.s24be=t=>new d(3,t),e.s32be=t=>new d(4,t),e.s40be=t=>new d(5,t),e.s48be=t=>new d(6,t),e.ns64be=t=>new v(t),e.f32=t=>new _(t),e.f32be=t=>new w(t),e.f64=t=>new M(t),e.f64be=t=>new S(t),e.struct=(t,e,n)=>new k(t,e,n),e.bits=(t,e,n)=>new x(t,e,n),e.seq=(t,e,n)=>new A(t,e,n),e.union=(t,e,n)=>new D(t,e,n),e.unionLayoutDiscriminator=(t,e)=>new L(t,e),e.blob=(t,e)=>new N(t,e),e.cstr=t=>new P(t),e.utf8=(t,e)=>new C(t,e),e.constant=(t,e)=>new R(t,e)}));Qt(_e),_e.s16,_e.s8,_e.nu64be,_e.u48be,_e.u40be,_e.u32be,_e.u24be,_e.u16be;var we=_e.nu64;_e.u48,_e.u40;var Me=_e.u32;_e.u24;var Se=_e.u16,Ae=_e.u8,ke=_e.offset;_e.greedy,_e.Constant,_e.UTF8,_e.CString,_e.Blob,_e.Boolean,_e.BitField,_e.BitStructure,_e.VariantLayout,_e.Union,_e.UnionLayoutDiscriminator,_e.UnionDiscriminator,_e.Structure,_e.Sequence,_e.DoubleBE,_e.Double,_e.FloatBE,_e.Float,_e.NearInt64BE,_e.NearInt64,_e.NearUInt64BE,_e.NearUInt64,_e.IntBE,_e.Int,_e.UIntBE,_e.UInt,_e.OffsetLayout,_e.GreedyCount,_e.ExternalLayout,_e.bindConstructorLayout,_e.nameWithProperty,_e.Layout,_e.uint8ArrayToBuffer,_e.checkUint8Array,_e.constant,_e.utf8,_e.cstr;var Ee=_e.blob;_e.unionLayoutDiscriminator,_e.union;var Le=_e.seq;_e.bits;var De=_e.struct;_e.f64be,_e.f64,_e.f32be,_e.f32,_e.ns64be,_e.s48be,_e.s40be,_e.s32be,_e.s24be,_e.s16be;var Te=_e.ns64;_e.s48,_e.s40,_e.s32,_e.s24;class Oe extends TypeError{constructor(t,e){let n;const{message:r,...i}=t,{path:o}=t;super(0===o.length?r:"At path: "+o.join(".")+" -- "+r),Object.assign(this,i),this.name=this.constructor.name,this.failures=()=>{var r;return null!=(r=n)?r:n=[t,...e()]}}}function xe(t){return"object"==typeof t&&null!=t}function Ie(t){return"string"==typeof t?JSON.stringify(t):""+t}function je(t,e,n,r){if(!0===t)return;!1===t?t={}:"string"==typeof t&&(t={message:t});const{path:i,branch:o}=e,{type:s}=n,{refinement:a,message:u="Expected a value of type `"+s+"`"+(a?" with refinement `"+a+"`":"")+", but received: `"+Ie(r)+"`"}=t;return{value:r,type:s,refinement:a,key:i[i.length-1],path:i,branch:o,...t,message:u}}function*Ne(t,e,n,r){var i;xe(i=t)&&"function"==typeof i[Symbol.iterator]||(t=[t]);for(const o of t){const t=je(o,e,n,r);t&&(yield t)}}function*Pe(t,e,n={}){const{path:r=[],branch:i=[t],coerce:o=!1,mask:s=!1}=n,a={path:r,branch:i};if(o&&(t=e.coercer(t,a),s&&"type"!==e.type&&xe(e.schema)&&xe(t)&&!Array.isArray(t)))for(const c in t)void 0===e.schema[c]&&delete t[c];let u=!0;for(const c of e.validator(t,a))u=!1,yield[c,void 0];for(let[c,l,h]of e.entries(t,a)){const e=Pe(l,h,{path:void 0===c?r:[...r,c],branch:void 0===c?i:[...i,l],coerce:o,mask:s});for(const n of e)n[0]?(u=!1,yield[n[0],void 0]):o&&(l=n[1],void 0===c?t=l:t instanceof Map?t.set(c,l):t instanceof Set?t.add(l):xe(t)&&(t[c]=l))}if(u)for(const c of e.refiner(t,a))u=!1,yield[c,void 0];u&&(yield[void 0,t])}class Ce{constructor(t){const{type:e,schema:n,validator:r,refiner:i,coercer:o=(t=>t),entries:s=function*(){}}=t;this.type=e,this.schema=n,this.entries=s,this.coercer=o,this.validator=r?(t,e)=>Ne(r(t,e),e,this,t):()=>[],this.refiner=i?(t,e)=>Ne(i(t,e),e,this,t):()=>[]}assert(t){return function(t,e){const n=Be(t,e);if(n[0])throw n[0]}(t,this)}create(t){return Re(t,this)}is(t){return Ye(t,this)}mask(t){return function(t,e){const n=Be(t,e,{coerce:!0,mask:!0});if(n[0])throw n[0];return n[1]}(t,this)}validate(t,e={}){return Be(t,this,e)}}function Re(t,e){const n=Be(t,e,{coerce:!0});if(n[0])throw n[0];return n[1]}function Ye(t,e){return!Be(t,e)[0]}function Be(t,e,n={}){const r=Pe(t,e,n),i=function(t){const{done:e,value:n}=t.next();return e?void 0:n}(r);return i[0]?[new Oe(i[0],(function*(){for(const t of r)t[0]&&(yield t[0])})),void 0]:[void 0,i[1]]}function ze(t,e){return new Ce({type:t,schema:null,validator:e})}function Ue(t){return new Ce({type:"array",schema:t,*entries(e){if(t&&Array.isArray(e))for(const[n,r]of e.entries())yield[n,r,t]},coercer:t=>Array.isArray(t)?t.slice():t,validator:t=>Array.isArray(t)||"Expected an array value, but received: "+Ie(t)})}function We(){return ze("boolean",t=>"boolean"==typeof t)}function He(t){return ze("instance",e=>e instanceof t||"Expected a `"+t.name+"` instance, but received: "+Ie(e))}function Fe(t){const e=Ie(t),n=typeof t;return new Ce({type:"literal",schema:"string"===n||"number"===n||"boolean"===n?t:null,validator:n=>n===t||"Expected the literal `"+e+"`, but received: "+Ie(n)})}function qe(t){return new Ce({...t,validator:(e,n)=>null===e||t.validator(e,n),refiner:(e,n)=>null===e||t.refiner(e,n)})}function Ve(){return ze("number",t=>"number"==typeof t&&!isNaN(t)||"Expected a number, but received: "+Ie(t))}function Ke(t){return new Ce({...t,validator:(e,n)=>void 0===e||t.validator(e,n),refiner:(e,n)=>void 0===e||t.refiner(e,n)})}function Ge(t,e){return new Ce({type:"record",schema:null,*entries(n){if(xe(n))for(const r in n){const i=n[r];yield[r,r,t],yield[r,i,e]}},validator:t=>xe(t)||"Expected an object, but received: "+Ie(t)})}function Qe(){return ze("string",t=>"string"==typeof t||"Expected a string, but received: "+Ie(t))}function Ze(t){const e=ze("never",()=>!1);return new Ce({type:"tuple",schema:null,*entries(n){if(Array.isArray(n)){const r=Math.max(t.length,n.length);for(let i=0;iArray.isArray(t)||"Expected an array, but received: "+Ie(t)})}function Je(t){const e=Object.keys(t);return new Ce({type:"type",schema:t,*entries(n){if(xe(n))for(const r of e)yield[r,n[r],t[r]]},validator:t=>xe(t)||"Expected an object, but received: "+Ie(t)})}function $e(t){const e=t.map(t=>t.type).join(" | ");return new Ce({type:"union",schema:null,validator(n,r){const i=[];for(const e of t){const[...t]=Pe(n,e,r),[o]=t;if(!o[0])return[];for(const[e]of t)e&&i.push(e)}return["Expected the value to satisfy a union of `"+e+"`, but received: "+Ie(n),...i]}})}function Xe(){return ze("unknown",()=>!0)}function tn(t,e,n){return new Ce({...t,coercer:(r,i)=>Ye(r,e)?t.coercer(n(r,i),i):t.coercer(r,i)})}var en=Zt((function(t){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports}));Qt(en);var nn=Zt((function(t){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports}));Qt(nn);var rn=Zt((function(t){function e(n,r){return t.exports=e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n,r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}));Qt(rn);var on=Zt((function(t){t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&rn(t,e)},t.exports.__esModule=!0,t.exports.default=t.exports}));Qt(on);var sn=Zt((function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}));Qt(sn);var an=Zt((function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports}));Qt(an);var un=Zt((function(t){var e=sn.default;t.exports=function(t,n){if(n&&("object"===e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return an(t)},t.exports.__esModule=!0,t.exports.default=t.exports}));Qt(un);var cn=Zt((function(t){function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}));Qt(cn);var ln=Zt((function(t){function e(t,e){for(var n=0;n=0;--o){var s=this.tryEntries[o],a=s.completion;if("root"===s.tryLoc)return i("end");if(s.tryLoc<=this.prev){var u=r.call(s,"catchLoc"),c=r.call(s,"finallyLoc");if(u&&c){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;L(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:T(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}})),pn=Zt((function(t){function e(t,e,n,r,i,o,s){try{var a=t[o](s),u=a.value}catch(t){return void n(t)}a.done?e(u):Promise.resolve(u).then(r,i)}t.exports=function(t){return function(){var n=this,r=arguments;return new Promise((function(i,o){var s=t.apply(n,r);function a(t){e(s,i,o,a,u,"next",t)}function u(t){e(s,i,o,a,u,"throw",t)}a(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports}));Qt(pn); /*! Copyright (C) 2013-2017 by Andrea Giammarchi - @WebReflection Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ var mn="~",gn="\\x"+("0"+mn.charCodeAt(0).toString(16)).slice(-2),yn="\\"+gn,bn=new RegExp(gn,"g"),vn=new RegExp(yn,"g"),_n=new RegExp("(?:^|([^\\\\]))"+yn),wn=[].indexOf||function(t){for(var e=this.length;e--&&this[e]!==t;);return e},Mn=String;function Sn(t,e,n){return e instanceof Array?function(t,e,n){for(var r=0,i=e.length;r1&&void 0!==arguments[1]?arguments[1]:"ws://localhost:8080",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;(0,o.default)(this,m);var s=r.autoconnect,a=void 0===s||s,u=r.reconnect,c=void 0===u||u,l=r.reconnect_interval,h=void 0===l?1e3:l,f=r.max_reconnects,g=void 0===f?5:f,y=d(r,["autoconnect","reconnect","reconnect_interval","max_reconnects"]);return(e=p.call(this)).webSocketFactory=t,e.queue={},e.rpc_id=0,e.address=n,e.autoconnect=a,e.ready=!1,e.reconnect=c,e.reconnect_interval=h,e.max_reconnects=g,e.rest_options=y,e.current_reconnects=0,e.generate_request_id=i||function(){return++e.rpc_id},e.autoconnect&&e._connect(e.address,Object.assign({autoconnect:e.autoconnect,reconnect:e.reconnect,reconnect_interval:e.reconnect_interval,max_reconnects:e.max_reconnects},e.rest_options)),e}return(0,s.default)(m,[{key:"connect",value:function(){this.socket||this._connect(this.address,Object.assign({autoconnect:this.autoconnect,reconnect:this.reconnect,reconnect_interval:this.reconnect_interval,max_reconnects:this.max_reconnects},this.rest_options))}},{key:"call",value:function(t,e,n,r){var o=this;return r||"object"!==(0,i.default)(n)||(r=n,n=null),new Promise((function(i,s){if(!o.ready)return s(new Error("socket not ready"));var a=o.generate_request_id(t,e),u={jsonrpc:"2.0",method:t,params:e||null,id:a};o.socket.send(JSON.stringify(u),r,(function(t){if(t)return s(t);o.queue[a]={promise:[i,s]},n&&(o.queue[a].timeout=setTimeout((function(){delete o.queue[a],s(new Error("reply timeout"))}),n))}))}))}},{key:"login",value:(f=(0,r.default)(n.default.mark((function t(e){var r;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.call("rpc.login",e);case 2:if(r=t.sent){t.next=5;break}throw new Error("authentication failed");case 5:return t.abrupt("return",r);case 6:case"end":return t.stop()}}),t,this)}))),function(t){return f.apply(this,arguments)})},{key:"listMethods",value:(c=(0,r.default)(n.default.mark((function t(){return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.call("__listMethods");case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)}))),function(){return c.apply(this,arguments)})},{key:"notify",value:function(t,e){var n=this;return new Promise((function(r,i){if(!n.ready)return i(new Error("socket not ready"));var o={jsonrpc:"2.0",method:t,params:e||null};n.socket.send(JSON.stringify(o),(function(t){if(t)return i(t);r()}))}))}},{key:"subscribe",value:(u=(0,r.default)(n.default.mark((function t(e){var r;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return"string"==typeof e&&(e=[e]),t.next=3,this.call("rpc.on",e);case 3:if(r=t.sent,"string"!=typeof e||"ok"===r[e]){t.next=6;break}throw new Error("Failed subscribing to an event '"+e+"' with: "+r[e]);case 6:return t.abrupt("return",r);case 7:case"end":return t.stop()}}),t,this)}))),function(t){return u.apply(this,arguments)})},{key:"unsubscribe",value:(e=(0,r.default)(n.default.mark((function t(e){var r;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return"string"==typeof e&&(e=[e]),t.next=3,this.call("rpc.off",e);case 3:if(r=t.sent,"string"!=typeof e||"ok"===r[e]){t.next=6;break}throw new Error("Failed unsubscribing from an event with: "+r);case 6:return t.abrupt("return",r);case 7:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"close",value:function(t,e){this.socket.close(t||1e3,e)}},{key:"_connect",value:function(t,e){var n=this;this.socket=this.webSocketFactory(t,e),this.socket.addEventListener("open",(function(){n.ready=!0,n.emit("open"),n.current_reconnects=0})),this.socket.addEventListener("message",(function(t){var e=t.data;e instanceof ArrayBuffer&&(e=ut.from(e).toString());try{e=l.default.parse(e)}catch(t){return}if(e.notification&&n.listeners(e.notification).length){if(!Object.keys(e.params).length)return n.emit(e.notification);var r=[e.notification];if(e.params.constructor===Object)r.push(e.params);else for(var i=0;in.current_reconnects||0===n.max_reconnects)&&setTimeout((function(){return n._connect(t,e)}),n.reconnect_interval))}))}}]),m}(hn.EventEmitter);e.default=f}));Qt(En);var Ln,Dn=Zt((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.Client=void 0;var n=en(nn),r=en(on),i=en(un),o=en(cn),s=en(dn);function a(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=(0,o.default)(t);if(e){var s=(0,o.default)(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return(0,i.default)(this,n)}}var u=function(t){(0,r.default)(i,t);var e=a(i);function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ws://localhost:8080",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.autoconnect,a=void 0===o||o,u=r.reconnect,c=void 0===u||u,l=r.reconnect_interval,h=void 0===l?1e3:l,d=r.max_reconnects,f=void 0===d?5:d,p=arguments.length>2?arguments[2]:void 0;return(0,n.default)(this,i),e.call(this,s.default,t,{autoconnect:a,reconnect:c,reconnect_interval:h,max_reconnects:f},p)}return i}(en(En).default);e.Client=u}));Qt(Dn),Dn.Client;var Tn=new Uint8Array(16);function On(){if(!Ln&&!(Ln="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ln(Tn)}var xn=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function In(t){return"string"==typeof t&&xn.test(t)}for(var jn,Nn,Pn=[],Cn=0;Cn<256;++Cn)Pn.push((Cn+256).toString(16).substr(1));function Rn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(Pn[t[e+0]]+Pn[t[e+1]]+Pn[t[e+2]]+Pn[t[e+3]]+"-"+Pn[t[e+4]]+Pn[t[e+5]]+"-"+Pn[t[e+6]]+Pn[t[e+7]]+"-"+Pn[t[e+8]]+Pn[t[e+9]]+"-"+Pn[t[e+10]]+Pn[t[e+11]]+Pn[t[e+12]]+Pn[t[e+13]]+Pn[t[e+14]]+Pn[t[e+15]]).toLowerCase();if(!In(n))throw TypeError("Stringified UUID is invalid");return n}var Yn=0,Bn=0;function zn(t){if(!In(t))throw TypeError("Invalid UUID");var e,n=new Uint8Array(16);return n[0]=(e=parseInt(t.slice(0,8),16))>>>24,n[1]=e>>>16&255,n[2]=e>>>8&255,n[3]=255&e,n[4]=(e=parseInt(t.slice(9,13),16))>>>8,n[5]=255&e,n[6]=(e=parseInt(t.slice(14,18),16))>>>8,n[7]=255&e,n[8]=(e=parseInt(t.slice(19,23),16))>>>8,n[9]=255&e,n[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,n[11]=e/4294967296&255,n[12]=e>>>24&255,n[13]=e>>>16&255,n[14]=e>>>8&255,n[15]=255&e,n}function Un(t,e,n){function r(t,r,i,o){if("string"==typeof t&&(t=function(t){t=unescape(encodeURIComponent(t));for(var e=[],n=0;n>>9<<4)+1}function Hn(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function Fn(t,e,n,r,i,o){return Hn((s=Hn(Hn(e,t),Hn(r,o)))<<(a=i)|s>>>32-a,n);var s,a}function qn(t,e,n,r,i,o,s){return Fn(e&n|~e&r,t,e,i,o,s)}function Vn(t,e,n,r,i,o,s){return Fn(e&r|n&~r,t,e,i,o,s)}function Kn(t,e,n,r,i,o,s){return Fn(e^n^r,t,e,i,o,s)}function Gn(t,e,n,r,i,o,s){return Fn(n^(e|~r),t,e,i,o,s)}var Qn=Un("v3",48,(function(t){if("string"==typeof t){var e=unescape(encodeURIComponent(t));t=new Uint8Array(e.length);for(var n=0;n>5]>>>i%32&255,s=parseInt(r.charAt(o>>>4&15)+r.charAt(15&o),16);e.push(s)}return e}(function(t,e){t[e>>5]|=128<>5]|=(255&t[r/8])<>>32-e}var $n=Un("v5",80,(function(t){var e=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof t){var r=unescape(encodeURIComponent(t));t=[];for(var i=0;i>>0;v=b,b=y,y=Jn(g,30)>>>0,g=m,m=M}n[0]=n[0]+m>>>0,n[1]=n[1]+g>>>0,n[2]=n[2]+y>>>0,n[3]=n[3]+b>>>0,n[4]=n[4]+v>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]})),Xn=Object.freeze({__proto__:null,v1:function(t,e,n){var r=e&&n||0,i=e||new Array(16),o=(t=t||{}).node||jn,s=void 0!==t.clockseq?t.clockseq:Nn;if(null==o||null==s){var a=t.random||(t.rng||On)();null==o&&(o=jn=[1|a[0],a[1],a[2],a[3],a[4],a[5]]),null==s&&(s=Nn=16383&(a[6]<<8|a[7]))}var u=void 0!==t.msecs?t.msecs:Date.now(),c=void 0!==t.nsecs?t.nsecs:Bn+1,l=u-Yn+(c-Bn)/1e4;if(l<0&&void 0===t.clockseq&&(s=s+1&16383),(l<0||u>Yn)&&void 0===t.nsecs&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Yn=u,Bn=c,Nn=s;var h=(1e4*(268435455&(u+=122192928e5))+c)%4294967296;i[r++]=h>>>24&255,i[r++]=h>>>16&255,i[r++]=h>>>8&255,i[r++]=255&h;var d=u/4294967296*1e4&268435455;i[r++]=d>>>8&255,i[r++]=255&d,i[r++]=d>>>24&15|16,i[r++]=d>>>16&255,i[r++]=s>>>8|128,i[r++]=255&s;for(var f=0;f<6;++f)i[r+f]=o[f];return e||Rn(i)},v3:Qn,v4:function(t,e,n){var r=(t=t||{}).random||(t.rng||On)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(var i=0;i<16;++i)e[n+i]=r[i];return e}return Rn(r)},v5:$n,NIL:"00000000-0000-0000-0000-000000000000",version:function(t){if(!In(t))throw TypeError("Invalid UUID");return parseInt(t.substr(14,1),16)},validate:In,stringify:Rn,parse:zn});Xn.v4,Xn.v4;var tr="elliptic",er="6.5.4",nr="EC cryptography",rr="lib/elliptic.js",ir=["lib"],or={lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},sr={type:"git",url:"git@github.com:indutny/elliptic"},ar=["EC","Elliptic","curve","Cryptography"],ur="Fedor Indutny ",cr={url:"https://github.com/indutny/elliptic/issues"},lr="https://github.com/indutny/elliptic",hr={brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dr={"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"},fr={name:tr,version:er,description:nr,main:rr,files:ir,scripts:or,repository:sr,keywords:ar,author:ur,license:"MIT",bugs:cr,homepage:lr,devDependencies:hr,dependencies:dr},pr=Object.freeze({__proto__:null,name:tr,version:er,description:nr,main:rr,files:ir,scripts:or,repository:sr,keywords:ar,author:ur,license:"MIT",bugs:cr,homepage:lr,devDependencies:hr,dependencies:dr,default:fr}),mr=Zt((function(t){!function(t,e){function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function i(t,e,n){if(i.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var o;"object"==typeof t?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:$t.Buffer}catch(t){}function s(t,e){var n=t.charCodeAt(e);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function a(t,e,n){var r=s(t,n);return n-1>=e&&(r|=s(t,n-1)<<4),r}function u(t,e,n,r){for(var i=0,o=Math.min(t.length,n),s=e;s=49?a-49+10:a>=17?a-17+10:a}return i}i.isBN=function(t){return t instanceof i||null!==t&&"object"==typeof t&&t.constructor.wordSize===i.wordSize&&Array.isArray(t.words)},i.max=function(t,e){return t.cmp(e)>0?t:e},i.min=function(t,e){return t.cmp(e)<0?t:e},i.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);return this.strip()},i.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r=e;r-=2)i=a(t,e,r)<=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else for(r=(t.length-e)%2==0?e+1:e;r=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;this.strip()},i.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,s=o%r,a=Math.min(o,o-s)+n,c=0,l=n;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?""};var c=["","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"],l=[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],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,u=s/67108864|0;n.words[0]=a;for(var c=1;c>>26,h=67108863&u,d=Math.min(c,e.length-1),f=Math.max(0,c-t.length+1);f<=d;f++){var p=c-f|0;l+=(s=(i=0|t.words[p])*(o=0|e.words[f])+h)/67108864|0,h=67108863&s}n.words[c]=0|h,u=0|l}return 0!==u?n.words[c]=0|u:n.length--,n.strip()}i.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,o=0,s=0;s>>24-i&16777215)||s!==this.length-1?c[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,s--)}for(0!==o&&(r=o.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var d=l[t],f=h[t];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(f).toString(t);r=(p=p.idivn(f)).isZero()?m+r:c[d-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(t,e){return n(void 0!==o),this.toArrayLike(o,t,e)},i.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},i.prototype.toArrayLike=function(t,e,r){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"),this.strip();var s,a,u="le"===e,c=new t(o),l=this.clone();if(u){for(a=0;!l.isZero();a++)s=l.andln(255),l.iushrn(8),c[a]=s;for(;a=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},i.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n},i.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},i.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},i.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;nt.length?this.clone().iand(t):t.clone().iand(this)},i.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},i.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},i.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},i.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},i.prototype.notn=function(t){return this.clone().inotn(t)},i.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},i.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,s=0;s>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,f=0|s[1],p=8191&f,m=f>>>13,g=0|s[2],y=8191&g,b=g>>>13,v=0|s[3],_=8191&v,w=v>>>13,M=0|s[4],S=8191&M,A=M>>>13,k=0|s[5],E=8191&k,L=k>>>13,D=0|s[6],T=8191&D,O=D>>>13,x=0|s[7],I=8191&x,j=x>>>13,N=0|s[8],P=8191&N,C=N>>>13,R=0|s[9],Y=8191&R,B=R>>>13,z=0|a[0],U=8191&z,W=z>>>13,H=0|a[1],F=8191&H,q=H>>>13,V=0|a[2],K=8191&V,G=V>>>13,Q=0|a[3],Z=8191&Q,J=Q>>>13,$=0|a[4],X=8191&$,tt=$>>>13,et=0|a[5],nt=8191&et,rt=et>>>13,it=0|a[6],ot=8191&it,st=it>>>13,at=0|a[7],ut=8191&at,ct=at>>>13,lt=0|a[8],ht=8191<,dt=lt>>>13,ft=0|a[9],pt=8191&ft,mt=ft>>>13;n.negative=t.negative^e.negative,n.length=19;var gt=(c+(r=Math.imul(h,U))|0)+((8191&(i=(i=Math.imul(h,W))+Math.imul(d,U)|0))<<13)|0;c=((o=Math.imul(d,W))+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(p,U),i=(i=Math.imul(p,W))+Math.imul(m,U)|0,o=Math.imul(m,W);var yt=(c+(r=r+Math.imul(h,F)|0)|0)+((8191&(i=(i=i+Math.imul(h,q)|0)+Math.imul(d,F)|0))<<13)|0;c=((o=o+Math.imul(d,q)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(y,U),i=(i=Math.imul(y,W))+Math.imul(b,U)|0,o=Math.imul(b,W),r=r+Math.imul(p,F)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(m,F)|0,o=o+Math.imul(m,q)|0;var bt=(c+(r=r+Math.imul(h,K)|0)|0)+((8191&(i=(i=i+Math.imul(h,G)|0)+Math.imul(d,K)|0))<<13)|0;c=((o=o+Math.imul(d,G)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(_,U),i=(i=Math.imul(_,W))+Math.imul(w,U)|0,o=Math.imul(w,W),r=r+Math.imul(y,F)|0,i=(i=i+Math.imul(y,q)|0)+Math.imul(b,F)|0,o=o+Math.imul(b,q)|0,r=r+Math.imul(p,K)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,G)|0;var vt=(c+(r=r+Math.imul(h,Z)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(d,Z)|0))<<13)|0;c=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(S,U),i=(i=Math.imul(S,W))+Math.imul(A,U)|0,o=Math.imul(A,W),r=r+Math.imul(_,F)|0,i=(i=i+Math.imul(_,q)|0)+Math.imul(w,F)|0,o=o+Math.imul(w,q)|0,r=r+Math.imul(y,K)|0,i=(i=i+Math.imul(y,G)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,G)|0,r=r+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,J)|0;var _t=(c+(r=r+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(d,X)|0))<<13)|0;c=((o=o+Math.imul(d,tt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(E,U),i=(i=Math.imul(E,W))+Math.imul(L,U)|0,o=Math.imul(L,W),r=r+Math.imul(S,F)|0,i=(i=i+Math.imul(S,q)|0)+Math.imul(A,F)|0,o=o+Math.imul(A,q)|0,r=r+Math.imul(_,K)|0,i=(i=i+Math.imul(_,G)|0)+Math.imul(w,K)|0,o=o+Math.imul(w,G)|0,r=r+Math.imul(y,Z)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,J)|0,r=r+Math.imul(p,X)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,tt)|0;var wt=(c+(r=r+Math.imul(h,nt)|0)|0)+((8191&(i=(i=i+Math.imul(h,rt)|0)+Math.imul(d,nt)|0))<<13)|0;c=((o=o+Math.imul(d,rt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(T,U),i=(i=Math.imul(T,W))+Math.imul(O,U)|0,o=Math.imul(O,W),r=r+Math.imul(E,F)|0,i=(i=i+Math.imul(E,q)|0)+Math.imul(L,F)|0,o=o+Math.imul(L,q)|0,r=r+Math.imul(S,K)|0,i=(i=i+Math.imul(S,G)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,G)|0,r=r+Math.imul(_,Z)|0,i=(i=i+Math.imul(_,J)|0)+Math.imul(w,Z)|0,o=o+Math.imul(w,J)|0,r=r+Math.imul(y,X)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0;var Mt=(c+(r=r+Math.imul(h,ot)|0)|0)+((8191&(i=(i=i+Math.imul(h,st)|0)+Math.imul(d,ot)|0))<<13)|0;c=((o=o+Math.imul(d,st)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(I,U),i=(i=Math.imul(I,W))+Math.imul(j,U)|0,o=Math.imul(j,W),r=r+Math.imul(T,F)|0,i=(i=i+Math.imul(T,q)|0)+Math.imul(O,F)|0,o=o+Math.imul(O,q)|0,r=r+Math.imul(E,K)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(L,K)|0,o=o+Math.imul(L,G)|0,r=r+Math.imul(S,Z)|0,i=(i=i+Math.imul(S,J)|0)+Math.imul(A,Z)|0,o=o+Math.imul(A,J)|0,r=r+Math.imul(_,X)|0,i=(i=i+Math.imul(_,tt)|0)+Math.imul(w,X)|0,o=o+Math.imul(w,tt)|0,r=r+Math.imul(y,nt)|0,i=(i=i+Math.imul(y,rt)|0)+Math.imul(b,nt)|0,o=o+Math.imul(b,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,st)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0;var St=(c+(r=r+Math.imul(h,ut)|0)|0)+((8191&(i=(i=i+Math.imul(h,ct)|0)+Math.imul(d,ut)|0))<<13)|0;c=((o=o+Math.imul(d,ct)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(P,U),i=(i=Math.imul(P,W))+Math.imul(C,U)|0,o=Math.imul(C,W),r=r+Math.imul(I,F)|0,i=(i=i+Math.imul(I,q)|0)+Math.imul(j,F)|0,o=o+Math.imul(j,q)|0,r=r+Math.imul(T,K)|0,i=(i=i+Math.imul(T,G)|0)+Math.imul(O,K)|0,o=o+Math.imul(O,G)|0,r=r+Math.imul(E,Z)|0,i=(i=i+Math.imul(E,J)|0)+Math.imul(L,Z)|0,o=o+Math.imul(L,J)|0,r=r+Math.imul(S,X)|0,i=(i=i+Math.imul(S,tt)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,tt)|0,r=r+Math.imul(_,nt)|0,i=(i=i+Math.imul(_,rt)|0)+Math.imul(w,nt)|0,o=o+Math.imul(w,rt)|0,r=r+Math.imul(y,ot)|0,i=(i=i+Math.imul(y,st)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,st)|0,r=r+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ct)|0)+Math.imul(m,ut)|0,o=o+Math.imul(m,ct)|0;var At=(c+(r=r+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,dt)|0)+Math.imul(d,ht)|0))<<13)|0;c=((o=o+Math.imul(d,dt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(Y,U),i=(i=Math.imul(Y,W))+Math.imul(B,U)|0,o=Math.imul(B,W),r=r+Math.imul(P,F)|0,i=(i=i+Math.imul(P,q)|0)+Math.imul(C,F)|0,o=o+Math.imul(C,q)|0,r=r+Math.imul(I,K)|0,i=(i=i+Math.imul(I,G)|0)+Math.imul(j,K)|0,o=o+Math.imul(j,G)|0,r=r+Math.imul(T,Z)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(O,Z)|0,o=o+Math.imul(O,J)|0,r=r+Math.imul(E,X)|0,i=(i=i+Math.imul(E,tt)|0)+Math.imul(L,X)|0,o=o+Math.imul(L,tt)|0,r=r+Math.imul(S,nt)|0,i=(i=i+Math.imul(S,rt)|0)+Math.imul(A,nt)|0,o=o+Math.imul(A,rt)|0,r=r+Math.imul(_,ot)|0,i=(i=i+Math.imul(_,st)|0)+Math.imul(w,ot)|0,o=o+Math.imul(w,st)|0,r=r+Math.imul(y,ut)|0,i=(i=i+Math.imul(y,ct)|0)+Math.imul(b,ut)|0,o=o+Math.imul(b,ct)|0,r=r+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,dt)|0)+Math.imul(m,ht)|0,o=o+Math.imul(m,dt)|0;var kt=(c+(r=r+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,mt)|0)+Math.imul(d,pt)|0))<<13)|0;c=((o=o+Math.imul(d,mt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(Y,F),i=(i=Math.imul(Y,q))+Math.imul(B,F)|0,o=Math.imul(B,q),r=r+Math.imul(P,K)|0,i=(i=i+Math.imul(P,G)|0)+Math.imul(C,K)|0,o=o+Math.imul(C,G)|0,r=r+Math.imul(I,Z)|0,i=(i=i+Math.imul(I,J)|0)+Math.imul(j,Z)|0,o=o+Math.imul(j,J)|0,r=r+Math.imul(T,X)|0,i=(i=i+Math.imul(T,tt)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,tt)|0,r=r+Math.imul(E,nt)|0,i=(i=i+Math.imul(E,rt)|0)+Math.imul(L,nt)|0,o=o+Math.imul(L,rt)|0,r=r+Math.imul(S,ot)|0,i=(i=i+Math.imul(S,st)|0)+Math.imul(A,ot)|0,o=o+Math.imul(A,st)|0,r=r+Math.imul(_,ut)|0,i=(i=i+Math.imul(_,ct)|0)+Math.imul(w,ut)|0,o=o+Math.imul(w,ct)|0,r=r+Math.imul(y,ht)|0,i=(i=i+Math.imul(y,dt)|0)+Math.imul(b,ht)|0,o=o+Math.imul(b,dt)|0;var Et=(c+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;c=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(Y,K),i=(i=Math.imul(Y,G))+Math.imul(B,K)|0,o=Math.imul(B,G),r=r+Math.imul(P,Z)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(C,Z)|0,o=o+Math.imul(C,J)|0,r=r+Math.imul(I,X)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(j,X)|0,o=o+Math.imul(j,tt)|0,r=r+Math.imul(T,nt)|0,i=(i=i+Math.imul(T,rt)|0)+Math.imul(O,nt)|0,o=o+Math.imul(O,rt)|0,r=r+Math.imul(E,ot)|0,i=(i=i+Math.imul(E,st)|0)+Math.imul(L,ot)|0,o=o+Math.imul(L,st)|0,r=r+Math.imul(S,ut)|0,i=(i=i+Math.imul(S,ct)|0)+Math.imul(A,ut)|0,o=o+Math.imul(A,ct)|0,r=r+Math.imul(_,ht)|0,i=(i=i+Math.imul(_,dt)|0)+Math.imul(w,ht)|0,o=o+Math.imul(w,dt)|0;var Lt=(c+(r=r+Math.imul(y,pt)|0)|0)+((8191&(i=(i=i+Math.imul(y,mt)|0)+Math.imul(b,pt)|0))<<13)|0;c=((o=o+Math.imul(b,mt)|0)+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,r=Math.imul(Y,Z),i=(i=Math.imul(Y,J))+Math.imul(B,Z)|0,o=Math.imul(B,J),r=r+Math.imul(P,X)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(C,X)|0,o=o+Math.imul(C,tt)|0,r=r+Math.imul(I,nt)|0,i=(i=i+Math.imul(I,rt)|0)+Math.imul(j,nt)|0,o=o+Math.imul(j,rt)|0,r=r+Math.imul(T,ot)|0,i=(i=i+Math.imul(T,st)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,st)|0,r=r+Math.imul(E,ut)|0,i=(i=i+Math.imul(E,ct)|0)+Math.imul(L,ut)|0,o=o+Math.imul(L,ct)|0,r=r+Math.imul(S,ht)|0,i=(i=i+Math.imul(S,dt)|0)+Math.imul(A,ht)|0,o=o+Math.imul(A,dt)|0;var Dt=(c+(r=r+Math.imul(_,pt)|0)|0)+((8191&(i=(i=i+Math.imul(_,mt)|0)+Math.imul(w,pt)|0))<<13)|0;c=((o=o+Math.imul(w,mt)|0)+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,r=Math.imul(Y,X),i=(i=Math.imul(Y,tt))+Math.imul(B,X)|0,o=Math.imul(B,tt),r=r+Math.imul(P,nt)|0,i=(i=i+Math.imul(P,rt)|0)+Math.imul(C,nt)|0,o=o+Math.imul(C,rt)|0,r=r+Math.imul(I,ot)|0,i=(i=i+Math.imul(I,st)|0)+Math.imul(j,ot)|0,o=o+Math.imul(j,st)|0,r=r+Math.imul(T,ut)|0,i=(i=i+Math.imul(T,ct)|0)+Math.imul(O,ut)|0,o=o+Math.imul(O,ct)|0,r=r+Math.imul(E,ht)|0,i=(i=i+Math.imul(E,dt)|0)+Math.imul(L,ht)|0,o=o+Math.imul(L,dt)|0;var Tt=(c+(r=r+Math.imul(S,pt)|0)|0)+((8191&(i=(i=i+Math.imul(S,mt)|0)+Math.imul(A,pt)|0))<<13)|0;c=((o=o+Math.imul(A,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(Y,nt),i=(i=Math.imul(Y,rt))+Math.imul(B,nt)|0,o=Math.imul(B,rt),r=r+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,st)|0)+Math.imul(C,ot)|0,o=o+Math.imul(C,st)|0,r=r+Math.imul(I,ut)|0,i=(i=i+Math.imul(I,ct)|0)+Math.imul(j,ut)|0,o=o+Math.imul(j,ct)|0,r=r+Math.imul(T,ht)|0,i=(i=i+Math.imul(T,dt)|0)+Math.imul(O,ht)|0,o=o+Math.imul(O,dt)|0;var Ot=(c+(r=r+Math.imul(E,pt)|0)|0)+((8191&(i=(i=i+Math.imul(E,mt)|0)+Math.imul(L,pt)|0))<<13)|0;c=((o=o+Math.imul(L,mt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(Y,ot),i=(i=Math.imul(Y,st))+Math.imul(B,ot)|0,o=Math.imul(B,st),r=r+Math.imul(P,ut)|0,i=(i=i+Math.imul(P,ct)|0)+Math.imul(C,ut)|0,o=o+Math.imul(C,ct)|0,r=r+Math.imul(I,ht)|0,i=(i=i+Math.imul(I,dt)|0)+Math.imul(j,ht)|0,o=o+Math.imul(j,dt)|0;var xt=(c+(r=r+Math.imul(T,pt)|0)|0)+((8191&(i=(i=i+Math.imul(T,mt)|0)+Math.imul(O,pt)|0))<<13)|0;c=((o=o+Math.imul(O,mt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(Y,ut),i=(i=Math.imul(Y,ct))+Math.imul(B,ut)|0,o=Math.imul(B,ct),r=r+Math.imul(P,ht)|0,i=(i=i+Math.imul(P,dt)|0)+Math.imul(C,ht)|0,o=o+Math.imul(C,dt)|0;var It=(c+(r=r+Math.imul(I,pt)|0)|0)+((8191&(i=(i=i+Math.imul(I,mt)|0)+Math.imul(j,pt)|0))<<13)|0;c=((o=o+Math.imul(j,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(Y,ht),i=(i=Math.imul(Y,dt))+Math.imul(B,ht)|0,o=Math.imul(B,dt);var jt=(c+(r=r+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,mt)|0)+Math.imul(C,pt)|0))<<13)|0;c=((o=o+Math.imul(C,mt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863;var Nt=(c+(r=Math.imul(Y,pt))|0)+((8191&(i=(i=Math.imul(Y,mt))+Math.imul(B,pt)|0))<<13)|0;return c=((o=Math.imul(B,mt))+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,u[0]=gt,u[1]=yt,u[2]=bt,u[3]=vt,u[4]=_t,u[5]=wt,u[6]=Mt,u[7]=St,u[8]=At,u[9]=kt,u[10]=Et,u[11]=Lt,u[12]=Dt,u[13]=Tt,u[14]=Ot,u[15]=xt,u[16]=It,u[17]=jt,u[18]=Nt,0!==c&&(u[19]=c,n.length++),n};function p(t,e,n){return(new m).mulp(t,e,n)}function m(t,e){this.x=t,this.y=e}Math.imul||(f=d),i.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?f(this,t,e):n<63?d(this,t,e):n<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,s&=67108863}n.words[o]=a,r=s,s=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,t,e):p(this,t,e)},m.prototype.makeRBT=function(t){for(var e=new Array(t),n=i.prototype._countBits(t)-1,r=0;r>=1;return r},m.prototype.permute=function(t,e,n,r,i,o){for(var s=0;s>>=1)i++;return 1<>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*e;s>=26,e+=i/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=e,this.length++),this},i.prototype.muln=function(t){return this.clone().imuln(t)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n>>i}return e}(t);if(0===e.length)return new i(1);for(var n=this,r=0;r=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(e=0;e>>26-r}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<s)for(this.length-=s,c=0;c=0&&(0!==l||c>=i);c--){var h=0|this.words[c];this.words[c]=l<<26-o|h>>>o,l=h&a}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},i.prototype.shln=function(t){return this.clone().ishln(t)},i.prototype.ushln=function(t){return this.clone().iushln(t)},i.prototype.shrn=function(t){return this.clone().ishrn(t)},i.prototype.ushrn=function(t){return this.clone().iushrn(t)},i.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},i.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},i.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),o=t,s=0|o.words[o.length-1];0!==(n=26-this._countBits(s))&&(o=o.ushln(n),r.iushln(n),s=0|o.words[o.length-1]);var a,u=r.length-o.length;if("mod"!==e){(a=new i(null)).length=u+1,a.words=new Array(a.length);for(var c=0;c=0;h--){var d=67108864*(0|r.words[o.length+h])+(0|r.words[o.length+h-1]);for(d=Math.min(d/s|0,67108863),r._ishlnsubmul(o,d,h);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(o,1,h),r.isZero()||(r.negative^=1);a&&(a.words[h]=d)}return a&&a.strip(),r.strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:a||null,mod:r}},i.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(o=a.div.neg()),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(t)),{div:o,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(o=a.div.neg()),{div:o,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new i(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new i(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new i(this.modn(t.words[0]))}:this._wordDiv(t,e);var o,s,a},i.prototype.div=function(t){return this.divmod(t,"div",!1).div},i.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},i.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},i.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},i.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},i.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},i.prototype.divn=function(t){return this.clone().idivn(t)},i.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o=new i(1),s=new i(0),a=new i(0),u=new i(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),h=e.clone();!e.isZero();){for(var d=0,f=1;0==(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(l),s.isub(h)),o.iushrn(1),s.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;)(a.isOdd()||u.isOdd())&&(a.iadd(l),u.isub(h)),a.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(a),s.isub(u)):(r.isub(e),a.isub(o),u.isub(s))}return{a:a,b:u,gcd:r.iushln(c)}},i.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o,s=new i(1),a=new i(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,l=1;0==(e.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(e.iushrn(c);c-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);e.cmp(r)>=0?(e.isub(r),s.isub(a)):(r.isub(e),a.isub(s))}return(o=0===e.cmpn(1)?s:a).cmpn(0)<0&&o.iadd(t),o},i.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},i.prototype.invm=function(t){return this.egcd(t).a.umod(t)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(t){return this.words[0]&t},i.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){ri&&(e=1);break}}return e},i.prototype.gtn=function(t){return 1===this.cmpn(t)},i.prototype.gt=function(t){return 1===this.cmp(t)},i.prototype.gten=function(t){return this.cmpn(t)>=0},i.prototype.gte=function(t){return this.cmp(t)>=0},i.prototype.ltn=function(t){return-1===this.cmpn(t)},i.prototype.lt=function(t){return-1===this.cmp(t)},i.prototype.lten=function(t){return this.cmpn(t)<=0},i.prototype.lte=function(t){return this.cmp(t)<=0},i.prototype.eqn=function(t){return 0===this.cmpn(t)},i.prototype.eq=function(t){return 0===this.cmp(t)},i.red=function(t){return new M(t)},i.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(t){return this.red=t,this},i.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},i.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},i.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},i.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},i.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},i.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},i.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},i.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var g={k256:null,p224:null,p192:null,p25519:null};function y(t,e){this.name=t,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function v(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function M(t){if("string"==typeof t){var e=i._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function S(t){M.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var t=new i(null);return t.words=new Array(Math.ceil(this.n/13)),t},y.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},y.prototype.split=function(t,e){t.iushrn(this.n,0,e)},y.prototype.imulK=function(t){return t.imul(this.k)},r(b,y),b.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i>>22,o=s}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},b.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},i._prime=function(t){if(g[t])return g[t];var e;if("k256"===t)e=new b;else if("p224"===t)e=new v;else if("p192"===t)e=new _;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new w}return g[t]=e,e},M.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},M.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},M.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},M.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},M.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},M.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},M.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},M.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},M.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},M.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},M.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},M.prototype.isqr=function(t){return this.imul(t,t.clone())},M.prototype.sqr=function(t){return this.mul(t,t)},M.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new i(1)).iushrn(2);return this.pow(t,r)}for(var o=this.m.subn(1),s=0;!o.isZero()&&0===o.andln(1);)s++,o.iushrn(1);n(!o.isZero());var a=new i(1).toRed(this),u=a.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var h=this.pow(l,o),d=this.pow(t,o.addn(1).iushrn(1)),f=this.pow(t,o),p=s;0!==f.cmp(a);){for(var m=f,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g=0;r--){for(var c=e.words[r],l=u-1;l>=0;l--){var h=c>>l&1;o!==n[0]&&(o=this.sqr(o)),0!==h||0!==s?(s<<=1,s|=h,(4===++a||0===r&&0===l)&&(o=this.mul(o,n[s]),a=0,s=0)):a=0}u=26}return o},M.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},M.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},i.mont=function(t){return new S(t)},r(S,M),S.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},S.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},S.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).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)},S.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new i(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),s=o;return o.cmp(this.m)>=0?s=o.isub(this.m):o.cmpn(0)<0&&(s=o.iadd(this.m)),s._forceRed(this)},S.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,Gt)})),gr=yr;function yr(t,e){if(!t)throw new Error(e||"Assertion failed")}yr.equal=function(t,e,n){if(t!=e)throw new Error(n||"Assertion failed: "+t+" != "+e)};var br,vr=Zt((function(t,e){var n=e;function r(t){return 1===t.length?"0"+t:t}function i(t){for(var e="",n=0;n>8,s=255&i;o?n.push(o,s):n.push(s)}return n},n.zero2=r,n.toHex=i,n.encode=function(t,e){return"hex"===e?i(t):t}})),_r=Zt((function(t,e){var n=e;n.assert=gr,n.toArray=vr.toArray,n.zero2=vr.zero2,n.toHex=vr.toHex,n.encode=vr.encode,n.getNAF=function(t,e,n){var r=new Array(Math.max(t.bitLength(),n)+1);r.fill(0);for(var i=1<(i>>1)-1?(i>>1)-u:u,o.isubn(a)):a=0,r[s]=a,o.iushrn(1)}return r},n.getJSF=function(t,e){var n=[[],[]];t=t.clone(),e=e.clone();for(var r,i=0,o=0;t.cmpn(-i)>0||e.cmpn(-o)>0;){var s,a,u=t.andln(3)+i&3,c=e.andln(3)+o&3;3===u&&(u=-1),3===c&&(c=-1),s=0==(1&u)?0:3!==(r=t.andln(7)+i&7)&&5!==r||2!==c?u:-u,n[0].push(s),a=0==(1&c)?0:3!==(r=e.andln(7)+o&7)&&5!==r||2!==u?c:-c,n[1].push(a),2*i===s+1&&(i=1-i),2*o===a+1&&(o=1-o),t.iushrn(1),e.iushrn(1)}return n},n.cachedProperty=function(t,e,n){var r="_"+e;t.prototype[e]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},n.parseBytes=function(t){return"string"==typeof t?n.toArray(t,"hex"):t},n.intFromLE=function(t){return new mr(t,"hex","le")}})),wr=function(t){return br||(br=new Mr(null)),br.generate(t)};function Mr(t){this.rand=t}var Sr=Mr;if(Mr.prototype.generate=function(t){return this._rand(t)},Mr.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var e=new Uint8Array(t),n=0;n0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var Tr=Dr;function Or(t,e){this.curve=t,this.type=e,this.precomputed=null}Dr.prototype.point=function(){throw new Error("Not implemented")},Dr.prototype.validate=function(){throw new Error("Not implemented")},Dr.prototype._fixedNafMul=function(t,e){Lr(t.precomputed);var n=t._getDoubles(),r=kr(e,1,this._bitLength),i=(1<=o;u--)s=(s<<1)+r[u];a.push(s)}for(var c=this.jpoint(null,null,null),l=this.jpoint(null,null,null),h=i;h>0;h--){for(o=0;o=0;a--){for(var u=0;a>=0&&0===o[a];a--)u++;if(a>=0&&u++,s=s.dblp(u),a<0)break;var c=o[a];Lr(0!==c),s="affine"===t.type?c>0?s.mixedAdd(i[c-1>>1]):s.mixedAdd(i[-c-1>>1].neg()):c>0?s.add(i[c-1>>1]):s.add(i[-c-1>>1].neg())}return"affine"===t.type?s.toP():s},Dr.prototype._wnafMulAdd=function(t,e,n,r,i){var o,s,a,u=this._wnafT1,c=this._wnafT2,l=this._wnafT3,h=0;for(o=0;o=1;o-=2){var f=o-1,p=o;if(1===u[f]&&1===u[p]){var m=[e[f],null,null,e[p]];0===e[f].y.cmp(e[p].y)?(m[1]=e[f].add(e[p]),m[2]=e[f].toJ().mixedAdd(e[p].neg())):0===e[f].y.cmp(e[p].y.redNeg())?(m[1]=e[f].toJ().mixedAdd(e[p]),m[2]=e[f].add(e[p].neg())):(m[1]=e[f].toJ().mixedAdd(e[p]),m[2]=e[f].toJ().mixedAdd(e[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],y=Er(n[f],n[p]);for(h=Math.max(y[0].length,h),l[f]=new Array(h),l[p]=new Array(h),s=0;s=0;o--){for(var M=0;o>=0;){var S=!0;for(s=0;s=0&&M++,_=_.dblp(M),o<0)break;for(s=0;s0?a=c[s][A-1>>1]:A<0&&(a=c[s][-A-1>>1].neg()),_="affine"===a.type?_.mixedAdd(a):_.add(a))}}for(o=0;o=Math.ceil((t.bitLength()+1)/e.step)},Or.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i=0&&(o=e,s=n),r.negative&&(r=r.neg(),i=i.neg()),o.negative&&(o=o.neg(),s=s.neg()),[{a:r,b:i},{a:o,b:s}]},jr.prototype._endoSplit=function(t){var e=this.endo.basis,n=e[0],r=e[1],i=r.b.mul(t).divRound(this.n),o=n.b.neg().mul(t).divRound(this.n),s=i.mul(n.a),a=o.mul(r.a),u=i.mul(n.b),c=o.mul(r.b);return{k1:t.sub(s).sub(a),k2:u.add(c).neg()}},jr.prototype.pointFromX=function(t,e){(t=new mr(t,16)).red||(t=t.toRed(this.red));var n=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var i=r.fromRed().isOdd();return(e&&!i||!e&&i)&&(r=r.redNeg()),this.point(t,r)},jr.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,n=t.y,r=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},jr.prototype._endoWnafMulAdd=function(t,e,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},Pr.prototype.isInfinity=function(){return this.inf},Pr.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var n=e.redSqr().redISub(this.x).redISub(t.x),r=e.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},Pr.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,n=this.x.redSqr(),r=t.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(e).redMul(r),o=i.redSqr().redISub(this.x.redAdd(this.x)),s=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,s)},Pr.prototype.getX=function(){return this.x.fromRed()},Pr.prototype.getY=function(){return this.y.fromRed()},Pr.prototype.mul=function(t){return t=new mr(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},Pr.prototype.mulAdd=function(t,e,n){var r=[this,e],i=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},Pr.prototype.jmulAdd=function(t,e,n){var r=[this,e],i=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},Pr.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},Pr.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var n=this.precomputed,r=function(t){return t.neg()};e.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return e},Pr.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},xr(Cr,Tr.BasePoint),jr.prototype.jpoint=function(t,e,n){return new Cr(this,t,e,n)},Cr.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),n=this.x.redMul(e),r=this.y.redMul(e).redMul(t);return this.curve.point(n,r)},Cr.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},Cr.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(e),i=t.x.redMul(n),o=this.y.redMul(e.redMul(t.z)),s=t.y.redMul(n.redMul(this.z)),a=r.redSub(i),u=o.redSub(s);if(0===a.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=a.redSqr(),l=c.redMul(a),h=r.redMul(c),d=u.redSqr().redIAdd(l).redISub(h).redISub(h),f=u.redMul(h.redISub(d)).redISub(o.redMul(l)),p=this.z.redMul(t.z).redMul(a);return this.curve.jpoint(d,f,p)},Cr.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),n=this.x,r=t.x.redMul(e),i=this.y,o=t.y.redMul(e).redMul(this.z),s=n.redSub(r),a=i.redSub(o);if(0===s.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),c=u.redMul(s),l=n.redMul(u),h=a.redSqr().redIAdd(c).redISub(l).redISub(l),d=a.redMul(l.redISub(h)).redISub(i.redMul(c)),f=this.z.redMul(s);return this.curve.jpoint(h,d,f)},Cr.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var e;if(this.curve.zeroA||this.curve.threeA){var n=this;for(e=0;e=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}},Cr.prototype.inspect=function(){return this.isInfinity()?"":""},Cr.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},xr(Rr,Tr);var Yr=Rr;function Br(t,e,n){Tr.BasePoint.call(this,t,"projective"),null===e&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new mr(e,16),this.z=new mr(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}Rr.prototype.validate=function(t){var e=t.normalize().x,n=e.redSqr(),r=n.redMul(e).redAdd(n.redMul(this.a)).redAdd(e);return 0===r.redSqrt().redSqr().cmp(r)},xr(Br,Tr.BasePoint),Rr.prototype.decodePoint=function(t,e){return this.point(_r.toArray(t,e),1)},Rr.prototype.point=function(t,e){return new Br(this,t,e)},Rr.prototype.pointFromJSON=function(t){return Br.fromJSON(this,t)},Br.prototype.precompute=function(){},Br.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},Br.fromJSON=function(t,e){return new Br(t,e[0],e[1]||t.one)},Br.prototype.inspect=function(){return this.isInfinity()?"":""},Br.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},Br.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),n=t.redSub(e),r=t.redMul(e),i=n.redMul(e.redAdd(this.curve.a24.redMul(n)));return this.curve.point(r,i)},Br.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},Br.prototype.diffAdd=function(t,e){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),i=t.x.redAdd(t.z),o=t.x.redSub(t.z).redMul(n),s=i.redMul(r),a=e.z.redMul(o.redAdd(s).redSqr()),u=e.x.redMul(o.redISub(s).redSqr());return this.curve.point(a,u)},Br.prototype.mul=function(t){for(var e=t.clone(),n=this,r=this.curve.point(null,null),i=[];0!==e.cmpn(0);e.iushrn(1))i.push(e.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(n=n.diffAdd(r,this),r=r.dbl()):(r=n.diffAdd(r,this),n=n.dbl());return r},Br.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},Br.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},Br.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},Br.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},Br.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var zr=_r.assert;function Ur(t){this.twisted=1!=(0|t.a),this.mOneA=this.twisted&&-1==(0|t.a),this.extended=this.mOneA,Tr.call(this,"edwards",t),this.a=new mr(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new mr(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new mr(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),zr(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|t.c)}xr(Ur,Tr);var Wr=Ur;function Hr(t,e,n,r,i){Tr.BasePoint.call(this,t,"projective"),null===e&&null===n&&null===r?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new mr(e,16),this.y=new mr(n,16),this.z=r?new mr(r,16):this.curve.one,this.t=i&&new mr(i,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.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}Ur.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},Ur.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},Ur.prototype.jpoint=function(t,e,n,r){return this.point(t,e,n,r)},Ur.prototype.pointFromX=function(t,e){(t=new mr(t,16)).red||(t=t.toRed(this.red));var n=t.redSqr(),r=this.c2.redSub(this.a.redMul(n)),i=this.one.redSub(this.c2.redMul(this.d).redMul(n)),o=r.redMul(i.redInvm()),s=o.redSqrt();if(0!==s.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");var a=s.fromRed().isOdd();return(e&&!a||!e&&a)&&(s=s.redNeg()),this.point(t,s)},Ur.prototype.pointFromY=function(t,e){(t=new mr(t,16)).red||(t=t.toRed(this.red));var n=t.redSqr(),r=n.redSub(this.c2),i=n.redMul(this.d).redMul(this.c2).redSub(this.a),o=r.redMul(i.redInvm());if(0===o.cmp(this.zero)){if(e)throw new Error("invalid point");return this.point(this.zero,t)}var s=o.redSqrt();if(0!==s.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==e&&(s=s.redNeg()),this.point(s,t)},Ur.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),n=t.y.redSqr(),r=e.redMul(this.a).redAdd(n),i=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(n)));return 0===r.cmp(i)},xr(Hr,Tr.BasePoint),Ur.prototype.pointFromJSON=function(t){return Hr.fromJSON(this,t)},Ur.prototype.point=function(t,e,n,r){return new Hr(this,t,e,n,r)},Hr.fromJSON=function(t,e){return new Hr(t,e[0],e[1],e[2])},Hr.prototype.inspect=function(){return this.isInfinity()?"":""},Hr.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},Hr.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var r=this.curve._mulA(t),i=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),o=r.redAdd(e),s=o.redSub(n),a=r.redSub(e),u=i.redMul(s),c=o.redMul(a),l=i.redMul(a),h=s.redMul(o);return this.curve.point(u,c,h,l)},Hr.prototype._projDbl=function(){var t,e,n,r,i,o,s=this.x.redAdd(this.y).redSqr(),a=this.x.redSqr(),u=this.y.redSqr();if(this.curve.twisted){var c=(r=this.curve._mulA(a)).redAdd(u);this.zOne?(t=s.redSub(a).redSub(u).redMul(c.redSub(this.curve.two)),e=c.redMul(r.redSub(u)),n=c.redSqr().redSub(c).redSub(c)):(i=this.z.redSqr(),o=c.redSub(i).redISub(i),t=s.redSub(a).redISub(u).redMul(o),e=c.redMul(r.redSub(u)),n=c.redMul(o))}else r=a.redAdd(u),i=this.curve._mulC(this.z).redSqr(),o=r.redSub(i).redSub(i),t=this.curve._mulC(s.redISub(r)).redMul(o),e=this.curve._mulC(r).redMul(a.redISub(u)),n=r.redMul(o);return this.curve.point(t,e,n)},Hr.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},Hr.prototype._extAdd=function(t){var e=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),n=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),r=this.t.redMul(this.curve.dd).redMul(t.t),i=this.z.redMul(t.z.redAdd(t.z)),o=n.redSub(e),s=i.redSub(r),a=i.redAdd(r),u=n.redAdd(e),c=o.redMul(s),l=a.redMul(u),h=o.redMul(u),d=s.redMul(a);return this.curve.point(c,l,d,h)},Hr.prototype._projAdd=function(t){var e,n,r=this.z.redMul(t.z),i=r.redSqr(),o=this.x.redMul(t.x),s=this.y.redMul(t.y),a=this.curve.d.redMul(o).redMul(s),u=i.redSub(a),c=i.redAdd(a),l=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(o).redISub(s),h=r.redMul(u).redMul(l);return this.curve.twisted?(e=r.redMul(c).redMul(s.redSub(this.curve._mulA(o))),n=u.redMul(c)):(e=r.redMul(c).redMul(s.redSub(o)),n=this.curve._mulC(u).redMul(c)),this.curve.point(h,e,n)},Hr.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},Hr.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},Hr.prototype.mulAdd=function(t,e,n){return this.curve._wnafMulAdd(1,[this,e],[t,n],2,!1)},Hr.prototype.jmulAdd=function(t,e,n){return this.curve._wnafMulAdd(1,[this,e],[t,n],2,!0)},Hr.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this},Hr.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},Hr.prototype.getX=function(){return this.normalize(),this.x.fromRed()},Hr.prototype.getY=function(){return this.normalize(),this.y.fromRed()},Hr.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},Hr.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var n=t.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(e.redIAdd(r),0===this.x.cmp(e))return!0}},Hr.prototype.toP=Hr.prototype.normalize,Hr.prototype.mixedAdd=Hr.prototype.add;var Fr=Zt((function(t,e){var n=e;n.base=Tr,n.short=Nr,n.mont=Yr,n.edwards=Wr}));function qr(t,e){return 55296==(64512&t.charCodeAt(e))&&!(e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1))}function Vr(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function Kr(t){return 1===t.length?"0"+t:t}function Gr(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}var Qr={inherits:xr,toArray:function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),i=0;i>6|192,n[r++]=63&o|128):qr(t,i)?(o=65536+((1023&o)<<10)+(1023&t.charCodeAt(++i)),n[r++]=o>>18|240,n[r++]=o>>12&63|128,n[r++]=o>>6&63|128,n[r++]=63&o|128):(n[r++]=o>>12|224,n[r++]=o>>6&63|128,n[r++]=63&o|128)}else for(i=0;i>>0}return o},split32:function(t,e){for(var n=new Array(4*t.length),r=0,i=0;r>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},rotr32:function(t,e){return t>>>e|t<<32-e},rotl32:function(t,e){return t<>>32-e},sum32:function(t,e){return t+e>>>0},sum32_3:function(t,e,n){return t+e+n>>>0},sum32_4:function(t,e,n,r){return t+e+n+r>>>0},sum32_5:function(t,e,n,r,i){return t+e+n+r+i>>>0},sum64:function(t,e,n,r){var i=t[e],o=r+t[e+1]>>>0,s=(o>>0,t[e+1]=o},sum64_hi:function(t,e,n,r){return(e+r>>>0>>0},sum64_lo:function(t,e,n,r){return e+r>>>0},sum64_4_hi:function(t,e,n,r,i,o,s,a){var u=0,c=e;return u+=(c=c+r>>>0)>>0)>>0)>>0},sum64_4_lo:function(t,e,n,r,i,o,s,a){return e+r+o+a>>>0},sum64_5_hi:function(t,e,n,r,i,o,s,a,u,c){var l=0,h=e;return l+=(h=h+r>>>0)>>0)>>0)>>0)>>0},sum64_5_lo:function(t,e,n,r,i,o,s,a,u,c){return e+r+o+a+c>>>0},rotr64_hi:function(t,e,n){return(e<<32-n|t>>>n)>>>0},rotr64_lo:function(t,e,n){return(t<<32-n|e>>>n)>>>0},shr64_hi:function(t,e,n){return t>>>n},shr64_lo:function(t,e,n){return(t<<32-n|e>>>n)>>>0}};function Zr(){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}var Jr=Zr;Zr.prototype.update=function(t,e){if(t=Qr.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=Qr.join32(t,0,t.length-n,this.endian);for(var r=0;r>>24&255,r[i++]=t>>>16&255,r[i++]=t>>>8&255,r[i++]=255&t}else for(r[i++]=255&t,r[i++]=t>>>8&255,r[i++]=t>>>16&255,r[i++]=t>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o>>3},g1_256:function(t){return Xr(t,17)^Xr(t,19)^t>>>10}},ii=Qr.rotl32,oi=Qr.sum32,si=Qr.sum32_5,ai=ri.ft_1,ui=$r.BlockHash,ci=[1518500249,1859775393,2400959708,3395469782];function li(){if(!(this instanceof li))return new li;ui.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}Qr.inherits(li,ui);var hi=li;li.blockSize=512,li.outSize=160,li.hmacStrength=80,li.padLength=64,li.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;rthis.blockSize&&(t=(new this.Hash).update(t).digest()),gr(t.length<=this.blockSize);for(var e=t.length;e=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,n,r)}var ko=Ao;Ao.prototype._init=function(t,e,n){var r=t.concat(e).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(n||[])),this._reseed=1},Ao.prototype.generate=function(t,e,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(r=n,n=e,e=null),n&&(n=vr.toArray(n,r||"hex"),this._update(n));for(var i=[];i.length"};var To=_r.assert;function Oo(t,e){if(t instanceof Oo)return t;this._importDER(t,e)||(To(t.r&&t.s,"Signature without r or s"),this.r=new mr(t.r,16),this.s=new mr(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}var xo=Oo;function Io(){this.place=0}function jo(t,e){var n=t[e.place++];if(!(128&n))return n;var r=15&n;if(0===r||r>4)return!1;for(var i=0,o=0,s=e.place;o>>=0;return!(i<=127)&&(e.place=s,i)}function No(t){for(var e=0,n=t.length-1;!t[e]&&!(128&t[e+1])&&e>>3);for(t.push(128|n);--n;)t.push(e>>>(n<<3)&255);t.push(e)}}Oo.prototype._importDER=function(t,e){t=_r.toArray(t,e);var n=new Io;if(48!==t[n.place++])return!1;var r=jo(t,n);if(!1===r)return!1;if(r+n.place!==t.length)return!1;if(2!==t[n.place++])return!1;var i=jo(t,n);if(!1===i)return!1;var o=t.slice(n.place,i+n.place);if(n.place+=i,2!==t[n.place++])return!1;var s=jo(t,n);if(!1===s)return!1;if(t.length!==s+n.place)return!1;var a=t.slice(n.place,s+n.place);if(0===o[0]){if(!(128&o[1]))return!1;o=o.slice(1)}if(0===a[0]){if(!(128&a[1]))return!1;a=a.slice(1)}return this.r=new mr(o),this.s=new mr(a),this.recoveryParam=null,!0},Oo.prototype.toDER=function(t){var e=this.r.toArray(),n=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&n[0]&&(n=[0].concat(n)),e=No(e),n=No(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];Po(r,e.length),(r=r.concat(e)).push(2),Po(r,n.length);var i=r.concat(n),o=[48];return Po(o,i.length),o=o.concat(i),_r.encode(o,t)};var Co=_r.assert;function Ro(t){if(!(this instanceof Ro))return new Ro(t);"string"==typeof t&&(Co(Object.prototype.hasOwnProperty.call(So,t),"Unknown curve "+t),t=So[t]),t instanceof So.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}var Yo=Ro;Ro.prototype.keyPair=function(t){return new Do(this,t)},Ro.prototype.keyFromPrivate=function(t,e){return Do.fromPrivate(this,t,e)},Ro.prototype.keyFromPublic=function(t,e){return Do.fromPublic(this,t,e)},Ro.prototype.genKeyPair=function(t){t||(t={});for(var e=new ko({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||wr(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),r=this.n.sub(new mr(2));;){var i=new mr(e.generate(n));if(!(i.cmp(r)>0))return i.iaddn(1),this.keyFromPrivate(i)}},Ro.prototype._truncateToN=function(t,e){var n=8*t.byteLength()-this.n.bitLength();return n>0&&(t=t.ushrn(n)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},Ro.prototype.sign=function(t,e,n,r){"object"==typeof n&&(r=n,n=null),r||(r={}),e=this.keyFromPrivate(e,n),t=this._truncateToN(new mr(t,16));for(var i=this.n.byteLength(),o=e.getPrivate().toArray("be",i),s=t.toArray("be",i),a=new ko({hash:this.hash,entropy:o,nonce:s,pers:r.pers,persEnc:r.persEnc||"utf8"}),u=this.n.sub(new mr(1)),c=0;;c++){var l=r.k?r.k(c):new mr(a.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(u)>=0)){var h=this.g.mul(l);if(!h.isInfinity()){var d=h.getX(),f=d.umod(this.n);if(0!==f.cmpn(0)){var p=l.invm(this.n).mul(f.mul(e.getPrivate()).iadd(t));if(0!==(p=p.umod(this.n)).cmpn(0)){var m=(h.getY().isOdd()?1:0)|(0!==d.cmp(f)?2:0);return r.canonical&&p.cmp(this.nh)>0&&(p=this.n.sub(p),m^=1),new xo({r:f,s:p,recoveryParam:m})}}}}}},Ro.prototype.verify=function(t,e,n,r){t=this._truncateToN(new mr(t,16)),n=this.keyFromPublic(n,r);var i=(e=new xo(e,"hex")).r,o=e.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 s,a=o.invm(this.n),u=a.mul(t).umod(this.n),c=a.mul(i).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(u,n.getPublic(),c)).isInfinity()&&s.eqXToP(i):!(s=this.g.mulAdd(u,n.getPublic(),c)).isInfinity()&&0===s.getX().umod(this.n).cmp(i)},Ro.prototype.recoverPubKey=function(t,e,n,r){Co((3&n)===n,"The recovery param is more than two bits"),e=new xo(e,r);var i=this.n,o=new mr(t),s=e.r,a=e.s,u=1&n,c=n>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&c)throw new Error("Unable to find sencond key candinate");s=c?this.curve.pointFromX(s.add(this.curve.n),u):this.curve.pointFromX(s,u);var l=e.r.invm(i),h=i.sub(o).mul(l).umod(i),d=a.mul(l).umod(i);return this.g.mulAdd(h,s,d)},Ro.prototype.getKeyRecoveryParam=function(t,e,n,r){if(null!==(e=new xo(e,r)).recoveryParam)return e.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(t,e,i)}catch(t){continue}if(o.eq(n))return i}throw new Error("Unable to find valid recovery factor")};var Bo=_r.assert,zo=_r.parseBytes,Uo=_r.cachedProperty;function Wo(t,e){this.eddsa=t,this._secret=zo(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=zo(e.pub)}Wo.fromPublic=function(t,e){return e instanceof Wo?e:new Wo(t,{pub:e})},Wo.fromSecret=function(t,e){return e instanceof Wo?e:new Wo(t,{secret:e})},Wo.prototype.secret=function(){return this._secret},Uo(Wo,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),Uo(Wo,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),Uo(Wo,"privBytes",(function(){var t=this.eddsa,e=this.hash(),n=t.encodingLength-1,r=e.slice(0,t.encodingLength);return r[0]&=248,r[n]&=127,r[n]|=64,r})),Uo(Wo,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),Uo(Wo,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),Uo(Wo,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),Wo.prototype.sign=function(t){return Bo(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)},Wo.prototype.verify=function(t,e){return this.eddsa.verify(t,e,this)},Wo.prototype.getSecret=function(t){return Bo(this._secret,"KeyPair is public only"),_r.encode(this.secret(),t)},Wo.prototype.getPublic=function(t){return _r.encode(this.pubBytes(),t)};var Ho=Wo,Fo=_r.assert,qo=_r.cachedProperty,Vo=_r.parseBytes;function Ko(t,e){this.eddsa=t,"object"!=typeof e&&(e=Vo(e)),Array.isArray(e)&&(e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),Fo(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof mr&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}qo(Ko,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),qo(Ko,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),qo(Ko,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),qo(Ko,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),Ko.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},Ko.prototype.toHex=function(){return _r.encode(this.toBytes(),"hex").toUpperCase()};var Go=Ko,Qo=_r.assert,Zo=_r.parseBytes;function Jo(t){if(Qo("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof Jo))return new Jo(t);t=So[t].curve,this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=wo.sha512}var $o=Jo;Jo.prototype.sign=function(t,e){t=Zo(t);var n=this.keyFromSecret(e),r=this.hashInt(n.messagePrefix(),t),i=this.g.mul(r),o=this.encodePoint(i),s=this.hashInt(o,n.pubBytes(),t).mul(n.priv()),a=r.add(s).umod(this.curve.n);return this.makeSignature({R:i,S:a,Rencoded:o})},Jo.prototype.verify=function(t,e,n){t=Zo(t),e=this.makeSignature(e);var r=this.keyFromPublic(n),i=this.hashInt(e.Rencoded(),r.pubBytes(),t),o=this.g.mul(e.S());return e.R().add(r.pub().mul(i)).eq(o)},Jo.prototype.hashInt=function(){for(var t=this.hash(),e=0;e>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var r=0;r<50;++r)this.s[r]=0}function I(t,e,n){x.call(this,t,e,n)}x.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var n,r=typeof t;if("string"!==r){if("object"!==r)throw new Error(e);if(null===t)throw new Error(e);if(s&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||s&&ArrayBuffer.isView(t)))throw new Error(e);n=!0}for(var i,o,a=this.blocks,u=this.byteCount,l=t.length,h=this.blockCount,d=0,f=this.s;d>2]|=t[d]<>2]|=o<>2]|=(192|o>>6)<>2]|=(128|63&o)<=57344?(a[i>>2]|=(224|o>>12)<>2]|=(128|o>>6&63)<>2]|=(128|63&o)<>2]|=(240|o>>18)<>2]|=(128|o>>12&63)<>2]|=(128|o>>6&63)<>2]|=(128|63&o)<=u){for(this.start=i-u,this.block=a[h],i=0;i>=8);n>0;)i.unshift(n),n=255&(t>>=8),++r;return e?i.push(r):i.unshift(r),this.update(i),i.length},x.prototype.encodeString=function(t){var n,r=typeof t;if("string"!==r){if("object"!==r)throw new Error(e);if(null===t)throw new Error(e);if(s&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||s&&ArrayBuffer.isView(t)))throw new Error(e);n=!0}var i=0,o=t.length;if(n)i=o;else for(var a=0;a=57344?i+=3:(u=65536+((1023&u)<<10|1023&t.charCodeAt(++a)),i+=4)}return i+=this.encode(8*i),this.update(t),i},x.prototype.bytepad=function(t,e){for(var n=this.encode(e),r=0;r>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(t[0]=t[n],e=1;e>4&15]+a[15&t]+a[t>>12&15]+a[t>>8&15]+a[t>>20&15]+a[t>>16&15]+a[t>>28&15]+a[t>>24&15];s%e==0&&(j(n),o=0)}return i&&(t=n[o],u+=a[t>>4&15]+a[15&t],i>1&&(u+=a[t>>12&15]+a[t>>8&15]),i>2&&(u+=a[t>>20&15]+a[t>>16&15])),u},x.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,o=0,s=0,a=this.outputBits>>3;t=i?new ArrayBuffer(r+1<<2):new ArrayBuffer(a);for(var u=new Uint32Array(t);s>8&255,u[t+2]=e>>16&255,u[t+3]=e>>24&255;a%n==0&&j(r)}return o&&(t=a<<2,e=r[s],u[t]=255&e,o>1&&(u[t+1]=e>>8&255),o>2&&(u[t+2]=e>>16&255)),u},I.prototype=new x,I.prototype.finalize=function(){return this.encode(this.outputBits,!0),x.prototype.finalize.call(this)};var j=function(t){var e,n,r,i,o,s,a,u,c,h,d,f,p,m,g,y,b,v,_,w,M,S,A,k,E,L,D,T,O,x,I,j,N,P,C,R,Y,B,z,U,W,H,F,q,V,K,G,Q,Z,J,$,X,tt,et,nt,rt,it,ot,st,at,ut,ct,lt;for(r=0;r<48;r+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],o=t[1]^t[11]^t[21]^t[31]^t[41],s=t[2]^t[12]^t[22]^t[32]^t[42],a=t[3]^t[13]^t[23]^t[33]^t[43],u=t[4]^t[14]^t[24]^t[34]^t[44],c=t[5]^t[15]^t[25]^t[35]^t[45],h=t[6]^t[16]^t[26]^t[36]^t[46],d=t[7]^t[17]^t[27]^t[37]^t[47],e=(f=t[8]^t[18]^t[28]^t[38]^t[48])^(s<<1|a>>>31),n=(p=t[9]^t[19]^t[29]^t[39]^t[49])^(a<<1|s>>>31),t[0]^=e,t[1]^=n,t[10]^=e,t[11]^=n,t[20]^=e,t[21]^=n,t[30]^=e,t[31]^=n,t[40]^=e,t[41]^=n,e=i^(u<<1|c>>>31),n=o^(c<<1|u>>>31),t[2]^=e,t[3]^=n,t[12]^=e,t[13]^=n,t[22]^=e,t[23]^=n,t[32]^=e,t[33]^=n,t[42]^=e,t[43]^=n,e=s^(h<<1|d>>>31),n=a^(d<<1|h>>>31),t[4]^=e,t[5]^=n,t[14]^=e,t[15]^=n,t[24]^=e,t[25]^=n,t[34]^=e,t[35]^=n,t[44]^=e,t[45]^=n,e=u^(f<<1|p>>>31),n=c^(p<<1|f>>>31),t[6]^=e,t[7]^=n,t[16]^=e,t[17]^=n,t[26]^=e,t[27]^=n,t[36]^=e,t[37]^=n,t[46]^=e,t[47]^=n,e=h^(i<<1|o>>>31),n=d^(o<<1|i>>>31),t[8]^=e,t[9]^=n,t[18]^=e,t[19]^=n,t[28]^=e,t[29]^=n,t[38]^=e,t[39]^=n,t[48]^=e,t[49]^=n,m=t[0],g=t[1],K=t[11]<<4|t[10]>>>28,G=t[10]<<4|t[11]>>>28,T=t[20]<<3|t[21]>>>29,O=t[21]<<3|t[20]>>>29,at=t[31]<<9|t[30]>>>23,ut=t[30]<<9|t[31]>>>23,H=t[40]<<18|t[41]>>>14,F=t[41]<<18|t[40]>>>14,P=t[2]<<1|t[3]>>>31,C=t[3]<<1|t[2]>>>31,y=t[13]<<12|t[12]>>>20,b=t[12]<<12|t[13]>>>20,Q=t[22]<<10|t[23]>>>22,Z=t[23]<<10|t[22]>>>22,x=t[33]<<13|t[32]>>>19,I=t[32]<<13|t[33]>>>19,ct=t[42]<<2|t[43]>>>30,lt=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,nt=t[4]<<30|t[5]>>>2,R=t[14]<<6|t[15]>>>26,Y=t[15]<<6|t[14]>>>26,v=t[25]<<11|t[24]>>>21,_=t[24]<<11|t[25]>>>21,J=t[34]<<15|t[35]>>>17,$=t[35]<<15|t[34]>>>17,j=t[45]<<29|t[44]>>>3,N=t[44]<<29|t[45]>>>3,k=t[6]<<28|t[7]>>>4,E=t[7]<<28|t[6]>>>4,rt=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,B=t[26]<<25|t[27]>>>7,z=t[27]<<25|t[26]>>>7,w=t[36]<<21|t[37]>>>11,M=t[37]<<21|t[36]>>>11,X=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,q=t[8]<<27|t[9]>>>5,V=t[9]<<27|t[8]>>>5,L=t[18]<<20|t[19]>>>12,D=t[19]<<20|t[18]>>>12,ot=t[29]<<7|t[28]>>>25,st=t[28]<<7|t[29]>>>25,U=t[38]<<8|t[39]>>>24,W=t[39]<<8|t[38]>>>24,S=t[48]<<14|t[49]>>>18,A=t[49]<<14|t[48]>>>18,t[0]=m^~y&v,t[1]=g^~b&_,t[10]=k^~L&T,t[11]=E^~D&O,t[20]=P^~R&B,t[21]=C^~Y&z,t[30]=q^~K&Q,t[31]=V^~G&Z,t[40]=et^~rt&ot,t[41]=nt^~it&st,t[2]=y^~v&w,t[3]=b^~_&M,t[12]=L^~T&x,t[13]=D^~O&I,t[22]=R^~B&U,t[23]=Y^~z&W,t[32]=K^~Q&J,t[33]=G^~Z&$,t[42]=rt^~ot&at,t[43]=it^~st&ut,t[4]=v^~w&S,t[5]=_^~M&A,t[14]=T^~x&j,t[15]=O^~I&N,t[24]=B^~U&H,t[25]=z^~W&F,t[34]=Q^~J&X,t[35]=Z^~$&tt,t[44]=ot^~at&ct,t[45]=st^~ut<,t[6]=w^~S&m,t[7]=M^~A&g,t[16]=x^~j&k,t[17]=I^~N&E,t[26]=U^~H&P,t[27]=W^~F&C,t[36]=J^~X&q,t[37]=$^~tt&V,t[46]=at^~ct&et,t[47]=ut^~lt&nt,t[8]=S^~m&y,t[9]=A^~g&b,t[18]=j^~k&L,t[19]=N^~E&D,t[28]=H^~P&R,t[29]=F^~C&Y,t[38]=X^~q&K,t[39]=tt^~V&G,t[48]=ct^~et&rt,t[49]=lt^~nt&it,t[0]^=l[r],t[1]^=l[r+1]};if(o)t.exports=M;else for(A=0;Aut.isBuffer(t)?t:t instanceof Uint8Array?ut.from(t.buffer,t.byteOffset,t.byteLength):ut.from(t);var es="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},ns={},rs={},is=os;function os(t,e){if(!t)throw new Error(e||"Assertion failed")}os.equal=function(t,e,n){if(t!=e)throw new Error(n||"Assertion failed: "+t+" != "+e)};var ss={exports:{}};"function"==typeof Object.create?ss.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:ss.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}};var as=is,us=ss.exports;function cs(t,e){return 55296==(64512&t.charCodeAt(e))&&!(e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1))}function ls(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function hs(t){return 1===t.length?"0"+t:t}function ds(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}rs.inherits=us,rs.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),i=0;i>6|192,n[r++]=63&o|128):cs(t,i)?(o=65536+((1023&o)<<10)+(1023&t.charCodeAt(++i)),n[r++]=o>>18|240,n[r++]=o>>12&63|128,n[r++]=o>>6&63|128,n[r++]=63&o|128):(n[r++]=o>>12|224,n[r++]=o>>6&63|128,n[r++]=63&o|128)}else for(i=0;i>>0}return o},rs.split32=function(t,e){for(var n=new Array(4*t.length),r=0,i=0;r>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},rs.rotr32=function(t,e){return t>>>e|t<<32-e},rs.rotl32=function(t,e){return t<>>32-e},rs.sum32=function(t,e){return t+e>>>0},rs.sum32_3=function(t,e,n){return t+e+n>>>0},rs.sum32_4=function(t,e,n,r){return t+e+n+r>>>0},rs.sum32_5=function(t,e,n,r,i){return t+e+n+r+i>>>0},rs.sum64=function(t,e,n,r){var i=t[e],o=r+t[e+1]>>>0,s=(o>>0,t[e+1]=o},rs.sum64_hi=function(t,e,n,r){return(e+r>>>0>>0},rs.sum64_lo=function(t,e,n,r){return e+r>>>0},rs.sum64_4_hi=function(t,e,n,r,i,o,s,a){var u=0,c=e;return u+=(c=c+r>>>0)>>0)>>0)>>0},rs.sum64_4_lo=function(t,e,n,r,i,o,s,a){return e+r+o+a>>>0},rs.sum64_5_hi=function(t,e,n,r,i,o,s,a,u,c){var l=0,h=e;return l+=(h=h+r>>>0)>>0)>>0)>>0)>>0},rs.sum64_5_lo=function(t,e,n,r,i,o,s,a,u,c){return e+r+o+a+c>>>0},rs.rotr64_hi=function(t,e,n){return(e<<32-n|t>>>n)>>>0},rs.rotr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0},rs.shr64_hi=function(t,e,n){return t>>>n},rs.shr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0};var fs={},ps=rs,ms=is;function gs(){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}fs.BlockHash=gs,gs.prototype.update=function(t,e){if(t=ps.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=ps.join32(t,0,t.length-n,this.endian);for(var r=0;r>>24&255,r[i++]=t>>>16&255,r[i++]=t>>>8&255,r[i++]=255&t}else for(r[i++]=255&t,r[i++]=t>>>8&255,r[i++]=t>>>16&255,r[i++]=t>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o>>3},bs.g1_256=function(t){return vs(t,17)^vs(t,19)^t>>>10};var Ss=rs,As=fs,ks=bs,Es=Ss.rotl32,Ls=Ss.sum32,Ds=Ss.sum32_5,Ts=ks.ft_1,Os=As.BlockHash,xs=[1518500249,1859775393,2400959708,3395469782];function Is(){if(!(this instanceof Is))return new Is;Os.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}Ss.inherits(Is,Os);var js=Is;Is.blockSize=512,Is.outSize=160,Is.hmacStrength=80,Is.padLength=64,Is.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;rthis.blockSize&&(t=(new this.Hash).update(t).digest()),$a(t.length<=this.blockSize);for(var e=t.length;e{try{if("test"!=="test".normalize(e))throw new Error("bad normalize")}catch(r){t.push(e)}}),t.length)throw new Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}();var uu,cu;!function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF"}(uu||(uu={})),function(t){t.UNKNOWN_ERROR="UNKNOWN_ERROR",t.NOT_IMPLEMENTED="NOT_IMPLEMENTED",t.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",t.NETWORK_ERROR="NETWORK_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.TIMEOUT="TIMEOUT",t.BUFFER_OVERRUN="BUFFER_OVERRUN",t.NUMERIC_FAULT="NUMERIC_FAULT",t.MISSING_NEW="MISSING_NEW",t.INVALID_ARGUMENT="INVALID_ARGUMENT",t.MISSING_ARGUMENT="MISSING_ARGUMENT",t.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",t.CALL_EXCEPTION="CALL_EXCEPTION",t.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",t.NONCE_EXPIRED="NONCE_EXPIRED",t.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",t.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",t.TRANSACTION_REPLACED="TRANSACTION_REPLACED"}(cu||(cu={}));const lu="0123456789abcdef";class hu{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){const n=t.toLowerCase();null==iu[n]&&this.throwArgumentError("invalid log level name","logLevel",t),ou>iu[n]||console.log.apply(console,e)}debug(...t){this._log(hu.levels.DEBUG,t)}info(...t){this._log(hu.levels.INFO,t)}warn(...t){this._log(hu.levels.WARNING,t)}makeError(t,e,n){if(ru)return this.makeError("censored error",e,{});e||(e=hu.errors.UNKNOWN_ERROR),n||(n={});const r=[];Object.keys(n).forEach(t=>{const e=n[t];try{if(e instanceof Uint8Array){let n="";for(let t=0;t>4],n+=lu[15&e[t]];r.push(t+"=Uint8Array(0x"+n+")")}else r.push(t+"="+JSON.stringify(e))}catch(e){r.push(t+"="+JSON.stringify(n[t].toString()))}}),r.push("code="+e),r.push("version="+this.version);const i=t;let o="";switch(e){case cu.NUMERIC_FAULT:{o="NUMERIC_FAULT";const e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":o+="-"+e;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result"}break}case cu.CALL_EXCEPTION:case cu.INSUFFICIENT_FUNDS:case cu.MISSING_NEW:case cu.NONCE_EXPIRED:case cu.REPLACEMENT_UNDERPRICED:case cu.TRANSACTION_REPLACED:case cu.UNPREDICTABLE_GAS_LIMIT:o=e}o&&(t+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),r.length&&(t+=" ("+r.join(", ")+")");const s=new Error(t);return s.reason=i,s.code=e,Object.keys(n).forEach((function(t){s[t]=n[t]})),s}throwError(t,e,n){throw this.makeError(t,e,n)}throwArgumentError(t,e,n){return this.throwError(t,hu.errors.INVALID_ARGUMENT,{argument:e,value:n})}assert(t,e,n,r){t||this.throwError(e,n,r)}assertArgument(t,e,n,r){t||this.throwArgumentError(e,n,r)}checkNormalize(t){au&&this.throwError("platform missing String.prototype.normalize",hu.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:au})}checkSafeUint53(t,e){"number"==typeof t&&(null==e&&(e="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(e,hu.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(e,hu.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,e,n){n=n?": "+n:"",te&&this.throwError("too many arguments"+n,hu.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e})}checkNew(t,e){t!==Object&&null!=t||this.throwError("missing new",hu.errors.MISSING_NEW,{name:e.name})}checkAbstract(t,e){t===e?this.throwError("cannot instantiate abstract class "+JSON.stringify(e.name)+" directly; use a sub-class",hu.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):t!==Object&&null!=t||this.throwError("missing new",hu.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return su||(su=new hu("logger/5.6.0")),su}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",hu.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),nu){if(!t)return;this.globalLogger().throwError("error censorship permanent",hu.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}ru=!!t,nu=!!e}static setLogLevel(t){const e=iu[t.toLowerCase()];null!=e?ou=e:hu.globalLogger().warn("invalid log level - "+t)}static from(t){return new hu(t)}}hu.errors=cu,hu.levels=uu;const du=new hu("bytes/5.6.0");function fu(t){return t.slice||(t.slice=function(){const e=Array.prototype.slice.call(arguments);return fu(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function pu(t){return"number"==typeof t&&t==t&&t%1==0}function mu(t,e){if(e||(e={}),"number"==typeof t){du.checkSafeUint53(t,"invalid arrayify value");const e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),fu(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),function(t){return!!t.toHexString}(t)&&(t=t.toHexString()),function(t,e){return!("string"!=typeof t||!t.match(/^0x[0-9A-Fa-f]*$/))&&(!e||t.length===2+2*e)}(t)){let n=t.substring(2);n.length%2&&("left"===e.hexPad?n="0x0"+n.substring(2):"right"===e.hexPad?n+="0":du.throwArgumentError("hex data is odd-length","value",t));const r=[];for(let t=0;t=256)return!1}return!0}(t)?fu(new Uint8Array(t)):du.throwArgumentError("invalid arrayify value","value",t)}function gu(t){return"0x"+eu.sha256().update(mu(t)).digest("hex")}new hu("sha2/5.6.0");const yu=new Map;class bu extends class{constructor(t){Object.assign(this,t)}encode(){return ut.from(ve(yu,this))}static decode(t){return be(yu,this,t)}static decodeUnchecked(t){return ye(yu,this,t)}}{constructor(t){if(super({}),this._bn=void 0,function(t){return void 0!==t._bn}(t))this._bn=t._bn;else{if("string"==typeof t){const e=ie.decode(t);if(32!=e.length)throw new Error("Invalid public key input");this._bn=new te(e)}else this._bn=new te(t);if(this._bn.byteLength()>32)throw new Error("Invalid public key input")}}equals(t){return this._bn.eq(t._bn)}toBase58(){return ie.encode(this.toBytes())}toJSON(){return this.toBase58()}toBytes(){return this.toBuffer()}toBuffer(){const t=this._bn.toArrayLike(ut);if(32===t.length)return t;const e=ut.alloc(32);return t.copy(e,32-t.length),e}toString(){return this.toBase58()}static async createWithSeed(t,e,n){const r=ut.concat([t.toBuffer(),ut.from(e),n.toBuffer()]),i=gu(new Uint8Array(r)).slice(2);return new bu(ut.from(i,"hex"))}static async createProgramAddress(t,e){let n=ut.alloc(0);t.forEach((function(t){if(t.length>32)throw new TypeError("Max seed length exceeded");n=ut.concat([n,ts(t)])})),n=ut.concat([n,e.toBuffer(),ut.from("ProgramDerivedAddress")]);let r=gu(new Uint8Array(n)).slice(2),i=new te(r,16).toArray(void 0,32);if(_u(i))throw new Error("Invalid seeds, address must fall off the curve");return new bu(i)}static async findProgramAddress(t,e){let n,r=255;for(;0!=r;){try{const i=t.concat(ut.from([r]));n=await this.createProgramAddress(i,e)}catch(t){if(t instanceof TypeError)throw t;r--;continue}return[n,r]}throw new Error("Unable to find a viable program address nonce")}static isOnCurve(t){return 1==_u(t)}}bu.default=new bu("11111111111111111111111111111111"),yu.set(bu,{kind:"struct",fields:[["_bn","u256"]]});let vu=Xt.lowlevel;function _u(t){var e=[vu.gf(),vu.gf(),vu.gf(),vu.gf()],n=vu.gf(),r=vu.gf(),i=vu.gf(),o=vu.gf(),s=vu.gf(),a=vu.gf(),u=vu.gf();return vu.set25519(e[2],wu),vu.unpack25519(e[1],t),vu.S(i,e[1]),vu.M(o,i,vu.D),vu.Z(i,i,e[2]),vu.A(o,e[2],o),vu.S(s,o),vu.S(a,s),vu.M(u,a,s),vu.M(n,u,i),vu.M(n,n,o),vu.pow2523(n,n),vu.M(n,n,i),vu.M(n,n,o),vu.M(n,n,o),vu.M(e[0],n,o),vu.S(r,e[0]),vu.M(r,r,o),Su(r,i)&&vu.M(e[0],e[0],Mu),vu.S(r,e[0]),vu.M(r,r,o),Su(r,i)?0:1}let wu=vu.gf([1]),Mu=vu.gf([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function Su(t,e){var n=new Uint8Array(32),r=new Uint8Array(32);return vu.pack25519(n,t),vu.pack25519(r,e),vu.crypto_verify_32(n,0,r,0)}new bu("BPFLoader1111111111111111111111111111111111");const Au=(t="publicKey")=>Ee(32,t),ku=(t="string")=>{const e=De([Me("length"),Me("lengthPadding"),Ee(ke(Me(),-8),"chars")],t),n=e.decode.bind(e),r=e.encode.bind(e),i=e;return i.decode=(t,e)=>n(t,e).chars.toString(),i.encode=(t,e,n)=>{const i={chars:ut.from(t,"utf8")};return r(i,e,n)},i.alloc=t=>Me().span+Me().span+ut.from(t,"utf8").length,i};function Eu(t){let e=0,n=0;for(;;){let r=t.shift();if(e|=(127&r)<<7*n,n+=1,0==(128&r))break}return e}function Lu(t,e){let n=e;for(;;){let e=127&n;if(n>>=7,0==n){t.push(e);break}e|=128,t.push(e)}}class Du{constructor(t){this.header=void 0,this.accountKeys=void 0,this.recentBlockhash=void 0,this.instructions=void 0,this.indexToProgramIds=new Map,this.header=t.header,this.accountKeys=t.accountKeys.map(t=>new bu(t)),this.recentBlockhash=t.recentBlockhash,this.instructions=t.instructions,this.instructions.forEach(t=>this.indexToProgramIds.set(t.programIdIndex,this.accountKeys[t.programIdIndex]))}isAccountSigner(t){return t=this.header.numRequiredSignatures&&t!this.isProgramId(e))}serialize(){const t=this.accountKeys.length;let e=[];Lu(e,t);const n=this.instructions.map(t=>{const{accounts:e,programIdIndex:n}=t,r=Array.from(ie.decode(t.data));let i=[];Lu(i,e.length);let o=[];return Lu(o,r.length),{programIdIndex:n,keyIndicesCount:ut.from(i),keyIndices:e,dataLength:ut.from(o),data:r}});let r=[];Lu(r,n.length);let i=ut.alloc(xu);ut.from(r).copy(i);let o=r.length;n.forEach(t=>{const e=De([Ae("programIdIndex"),Ee(t.keyIndicesCount.length,"keyIndicesCount"),Le(Ae("keyIndex"),t.keyIndices.length,"keyIndices"),Ee(t.dataLength.length,"dataLength"),Le(Ae("userdatum"),t.data.length,"data")]).encode(t,i,o);o+=e}),i=i.slice(0,o);const s=De([Ee(1,"numRequiredSignatures"),Ee(1,"numReadonlySignedAccounts"),Ee(1,"numReadonlyUnsignedAccounts"),Ee(e.length,"keyCount"),Le(Au("key"),t,"keys"),Au("recentBlockhash")]),a={numRequiredSignatures:ut.from([this.header.numRequiredSignatures]),numReadonlySignedAccounts:ut.from([this.header.numReadonlySignedAccounts]),numReadonlyUnsignedAccounts:ut.from([this.header.numReadonlyUnsignedAccounts]),keyCount:ut.from(e),keys:this.accountKeys.map(t=>ts(t.toBytes())),recentBlockhash:ie.decode(this.recentBlockhash)};let u=ut.alloc(2048);const c=s.encode(a,u);return i.copy(u,c),u.slice(0,c+i.length)}static from(t){let e=[...t];const n=e.shift(),r=e.shift(),i=e.shift(),o=Eu(e);let s=[];for(let h=0;h0?this.signatures[0].signature:null}constructor(t){this.signatures=[],this.feePayer=void 0,this.instructions=[],this.recentBlockhash=void 0,this.nonceInfo=void 0,t&&Object.assign(this,t)}add(...t){if(0===t.length)throw new Error("No instructions");return t.forEach(t=>{"instructions"in t?this.instructions=this.instructions.concat(t.instructions):"data"in t&&"programId"in t&&"keys"in t?this.instructions.push(t):this.instructions.push(new Iu(t))}),this}compileMessage(){const{nonceInfo:t}=this;t&&this.instructions[0]!=t.nonceInstruction&&(this.recentBlockhash=t.nonce,this.instructions.unshift(t.nonceInstruction));const{recentBlockhash:e}=this;if(!e)throw new Error("Transaction recentBlockhash required");let n;if(this.instructions.length<1&&console.warn("No instructions provided"),this.feePayer)n=this.feePayer;else{if(!(this.signatures.length>0&&this.signatures[0].publicKey))throw new Error("Transaction fee payer required");n=this.signatures[0].publicKey}for(let p=0;p{t.keys.forEach(t=>{i.push({...t})});const e=t.programId.toString();r.includes(e)||r.push(e)}),r.forEach(t=>{i.push({pubkey:new bu(t),isSigner:!1,isWritable:!1})}),i.sort((function(t,e){const n=t.pubkey.toBase58().localeCompare(e.pubkey.toBase58()),r=t.isSigner===e.isSigner?0:t.isSigner?-1:1,i=t.isWritable===e.isWritable?n:t.isWritable?-1:1;return r||i}));const o=[];i.forEach(t=>{const e=t.pubkey.toString(),n=o.findIndex(t=>t.pubkey.toString()===e);n>-1?o[n].isWritable=o[n].isWritable||t.isWritable:o.push(t)});const s=o.findIndex(t=>t.pubkey.equals(n));if(s>-1){const[t]=o.splice(s,1);t.isSigner=!0,t.isWritable=!0,o.unshift(t)}else o.unshift({pubkey:n,isSigner:!0,isWritable:!0});for(const p of this.signatures){const t=o.findIndex(t=>t.pubkey.equals(p.publicKey));if(!(t>-1))throw new Error("unknown signer: "+p.publicKey.toString());o[t].isSigner||(o[t].isSigner=!0,console.warn("Transaction references a signature that is unnecessary, only the fee payer and instruction signer accounts should sign a transaction. This behavior is deprecated and will throw an error in the next major version release."))}let a=0,u=0,c=0;const l=[],h=[];o.forEach(({pubkey:t,isSigner:e,isWritable:n})=>{e?(l.push(t.toString()),a+=1,n||(u+=1)):(h.push(t.toString()),n||(c+=1))});const d=l.concat(h),f=this.instructions.map(t=>{const{data:e,programId:n}=t;return{programIdIndex:d.indexOf(n.toString()),accounts:t.keys.map(t=>d.indexOf(t.pubkey.toString())),data:ie.encode(e)}});return f.forEach(t=>{Tu(t.programIdIndex>=0),t.accounts.forEach(t=>Tu(t>=0))}),new Du({header:{numRequiredSignatures:a,numReadonlySignedAccounts:u,numReadonlyUnsignedAccounts:c},accountKeys:d,recentBlockhash:e,instructions:f})}_compile(){const t=this.compileMessage(),e=t.accountKeys.slice(0,t.header.numRequiredSignatures);return this.signatures.length===e.length&&this.signatures.every((t,n)=>e[n].equals(t.publicKey))||(this.signatures=e.map(t=>({signature:null,publicKey:t}))),t}serializeMessage(){return this._compile().serialize()}async getEstimatedFee(t){return(await t.getFeeForMessage(this.compileMessage())).value}setSigners(...t){if(0===t.length)throw new Error("No signers");const e=new Set;this.signatures=t.filter(t=>{const n=t.toString();return!e.has(n)&&(e.add(n),!0)}).map(t=>({signature:null,publicKey:t}))}sign(...t){if(0===t.length)throw new Error("No signers");const e=new Set,n=[];for(const i of t){const t=i.publicKey.toString();e.has(t)||(e.add(t),n.push(i))}this.signatures=n.map(t=>({signature:null,publicKey:t.publicKey}));const r=this._compile();this._partialSign(r,...n),this._verifySignatures(r.serialize(),!0)}partialSign(...t){if(0===t.length)throw new Error("No signers");const e=new Set,n=[];for(const i of t){const t=i.publicKey.toString();e.has(t)||(e.add(t),n.push(i))}const r=this._compile();this._partialSign(r,...n)}_partialSign(t,...e){const n=t.serialize();e.forEach(t=>{const e=Xt.sign.detached(n,t.secretKey);this._addSignature(t.publicKey,ts(e))})}addSignature(t,e){this._compile(),this._addSignature(t,e)}_addSignature(t,e){Tu(64===e.length);const n=this.signatures.findIndex(e=>t.equals(e.publicKey));if(n<0)throw new Error("unknown signer: "+t.toString());this.signatures[n].signature=ut.from(e)}verifySignatures(){return this._verifySignatures(this.serializeMessage(),!0)}_verifySignatures(t,e){for(const{signature:n,publicKey:r}of this.signatures)if(null===n){if(e)return!1}else if(!Xt.sign.detached.verify(t,n,r.toBuffer()))return!1;return!0}serialize(t){const{requireAllSignatures:e,verifySignatures:n}=Object.assign({requireAllSignatures:!0,verifySignatures:!0},t),r=this.serializeMessage();if(n&&!this._verifySignatures(r,e))throw new Error("Signature verification failed");return this._serialize(r)}_serialize(t){const{signatures:e}=this,n=[];Lu(n,e.length);const r=n.length+64*e.length+t.length,i=ut.alloc(r);return Tu(e.length<256),ut.from(n).copy(i,0),e.forEach(({signature:t},e)=>{null!==t&&(Tu(64===t.length,"signature has invalid length"),ut.from(t).copy(i,n.length+64*e))}),t.copy(i,n.length+64*e.length),Tu(i.length<=xu,`Transaction too large: ${i.length} > ${xu}`),i}get keys(){return Tu(1===this.instructions.length),this.instructions[0].keys.map(t=>t.pubkey)}get programId(){return Tu(1===this.instructions.length),this.instructions[0].programId}get data(){return Tu(1===this.instructions.length),this.instructions[0].data}static from(t){let e=[...t];const n=Eu(e);let r=[];for(let i=0;i0&&(n.feePayer=t.accountKeys[0]),e.forEach((e,r)=>{const i={signature:e==ie.encode(Ou)?null:ie.decode(e),publicKey:t.accountKeys[r]};n.signatures.push(i)}),t.instructions.forEach(e=>{const r=e.accounts.map(e=>{const r=t.accountKeys[e];return{pubkey:r,isSigner:n.signatures.some(t=>t.publicKey.toString()===r.toString())||t.isAccountSigner(e),isWritable:t.isAccountWritable(e)}});n.instructions.push(new Iu({keys:r,programId:t.accountKeys[e.programIdIndex],data:ie.decode(e.data)}))}),n}}new bu("SysvarC1ock11111111111111111111111111111111"),new bu("SysvarEpochSchedu1e111111111111111111111111"),new bu("Sysvar1nstructions1111111111111111111111111"),new bu("SysvarRecentB1ockHashes11111111111111111111"),new bu("SysvarRent111111111111111111111111111111111"),new bu("SysvarRewards111111111111111111111111111111"),new bu("SysvarS1otHashes111111111111111111111111111"),new bu("SysvarS1otHistory11111111111111111111111111"),new bu("SysvarStakeHistory1111111111111111111111111");const Nu=we("lamportsPerSignature");De([Me("version"),Me("state"),Au("authorizedPubkey"),Au("nonce"),De([Nu],"feeCalculator")]).span,Object.freeze({Create:{index:0,layout:De([Me("instruction"),Te("lamports"),Te("space"),Au("programId")])},Assign:{index:1,layout:De([Me("instruction"),Au("programId")])},Transfer:{index:2,layout:De([Me("instruction"),Te("lamports")])},CreateWithSeed:{index:3,layout:De([Me("instruction"),Au("base"),ku("seed"),Te("lamports"),Te("space"),Au("programId")])},AdvanceNonceAccount:{index:4,layout:De([Me("instruction")])},WithdrawNonceAccount:{index:5,layout:De([Me("instruction"),Te("lamports")])},InitializeNonceAccount:{index:6,layout:De([Me("instruction"),Au("authorized")])},AuthorizeNonceAccount:{index:7,layout:De([Me("instruction"),Au("authorized")])},Allocate:{index:8,layout:De([Me("instruction"),Te("space")])},AllocateWithSeed:{index:9,layout:De([Me("instruction"),Au("base"),ku("seed"),Te("space"),Au("programId")])},AssignWithSeed:{index:10,layout:De([Me("instruction"),Au("base"),ku("seed"),Au("programId")])},TransferWithSeed:{index:11,layout:De([Me("instruction"),Te("lamports"),ku("seed"),Au("programId")])}}),new bu("11111111111111111111111111111111"),new bu("BPFLoader2111111111111111111111111111111111");var Pu={exports:{}};!function(t,e){var n="undefined"!=typeof self?self:es,r=function(){function t(){this.fetch=!1,this.DOMException=n.DOMException}return t.prototype=n,new t}();!function(t){!function(e){var n="URLSearchParams"in t,r="Symbol"in t&&"iterator"in Symbol,i="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),o="FormData"in t,s="ArrayBuffer"in t;if(s)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(t){return t&&a.indexOf(Object.prototype.toString.call(t))>-1};function c(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function l(t){return"string"!=typeof t&&(t=String(t)),t}function h(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function d(t){this.map={},t instanceof d?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function f(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function p(t){return new Promise((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function m(t){var e=new FileReader,n=p(e);return e.readAsArrayBuffer(t),n}function g(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:n&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():s&&i&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=g(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(t)||u(t))?this._bodyArrayBuffer=g(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var t=f(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?f(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(m)}),this.text=function(){var t,e,n,r=f(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,n=p(e),e.readAsText(t),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r-1?r:n),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function _(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(i))}})),e}function w(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new d(e.headers),this.url=e.url||"",this._initBody(t)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},y.call(v.prototype),y.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},w.error=function(){var t=new w(null,{status:0,statusText:""});return t.type="error",t};var M=[301,302,303,307,308];w.redirect=function(t,e){if(-1===M.indexOf(e))throw new RangeError("Invalid status code");return new w(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function S(t,n){return new Promise((function(r,o){var s=new v(t,n);if(s.signal&&s.signal.aborted)return o(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function u(){a.abort()}a.onload=function(){var t,e,n={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new d,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var n=t.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();e.append(r,i)}})),e)};n.url="responseURL"in a?a.responseURL:n.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;r(new w(i,n))},a.onerror=function(){o(new TypeError("Network request failed"))},a.ontimeout=function(){o(new TypeError("Network request failed"))},a.onabort=function(){o(new e.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&i&&(a.responseType="blob"),s.headers.forEach((function(t,e){a.setRequestHeader(e,t)})),s.signal&&(s.signal.addEventListener("abort",u),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",u)}),a.send(void 0===s._bodyInit?null:s._bodyInit)}))}S.polyfill=!0,t.fetch||(t.fetch=S,t.Headers=d,t.Request=v,t.Response=w),e.Headers=d,e.Request=v,e.Response=w,e.fetch=S,Object.defineProperty(e,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=r;(e=i.fetch).default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,t.exports=e}(Pu,Pu.exports);const Cu=tn(He(bu),Qe(),t=>new bu(t)),Ru=Ze([Qe(),Fe("base64")]),Yu=tn(He(ut),Ru,t=>ut.from(t[0],"base64"));function Bu(t){return $e([Je({jsonrpc:Fe("2.0"),id:Qe(),result:t}),Je({jsonrpc:Fe("2.0"),id:Qe(),error:Je({code:Xe(),message:Qe(),data:Ke(ze("any",()=>!0))})})])}const zu=Bu(Xe());function Uu(t){return tn(Bu(t),zu,e=>"error"in e?e:{...e,result:Re(e.result,t)})}function Wu(t){return Uu(Je({context:Je({slot:Ve()}),value:t}))}const Hu=Je({foundation:Ve(),foundationTerm:Ve(),initial:Ve(),taper:Ve(),terminal:Ve()});Uu(Ue(qe(Je({epoch:Ve(),effectiveSlot:Ve(),amount:Ve(),postBalance:Ve()}))));const Fu=Je({epoch:Ve(),slotIndex:Ve(),slotsInEpoch:Ve(),absoluteSlot:Ve(),blockHeight:Ke(Ve()),transactionCount:Ke(Ve())}),qu=Je({slotsPerEpoch:Ve(),leaderScheduleSlotOffset:Ve(),warmup:We(),firstNormalEpoch:Ve(),firstNormalSlot:Ve()}),Vu=Ge(Qe(),Ue(Ve())),Ku=qe($e([Je({}),Qe()])),Gu=Je({err:Ku}),Qu=Fe("receivedSignature");Wu(Je({err:qe($e([Je({}),Qe()])),logs:qe(Ue(Qe())),accounts:Ke(qe(Ue(qe(Je({executable:We(),owner:Qe(),lamports:Ve(),data:Ue(Qe()),rentEpoch:Ke(Ve())}))))),unitsConsumed:Ke(Ve())})),Wu(Je({byIdentity:Ge(Qe(),Ue(Ve())),range:Je({firstSlot:Ve(),lastSlot:Ve()})})),Uu(Hu),Uu(Fu),Uu(qu),Uu(Vu),Uu(Ve()),Wu(Je({total:Ve(),circulating:Ve(),nonCirculating:Ve(),nonCirculatingAccounts:Ue(Cu)}));const Zu=Je({amount:Qe(),uiAmount:qe(Ve()),decimals:Ve(),uiAmountString:Ke(Qe())});Wu(Ue(Je({address:Cu,amount:Qe(),uiAmount:qe(Ve()),decimals:Ve(),uiAmountString:Ke(Qe())}))),Wu(Ue(Je({pubkey:Cu,account:Je({executable:We(),owner:Cu,lamports:Ve(),data:Yu,rentEpoch:Ve()})})));const Ju=Je({program:Qe(),parsed:Xe(),space:Ve()});var $u;Wu(Ue(Je({pubkey:Cu,account:Je({executable:We(),owner:Cu,lamports:Ve(),data:Ju,rentEpoch:Ve()})}))),Wu(Ue(Je({lamports:Ve(),address:Cu}))),tn($e([He(ut),Ju]),$e([Ru,Ju]),t=>Array.isArray(t)?Re(t,Yu):t),Je({state:$e([Fe("active"),Fe("inactive"),Fe("activating"),Fe("deactivating")]),active:Ve(),inactive:Ve()}),Uu(Ue(Je({signature:Qe(),slot:Ve(),err:Ku,memo:qe(Qe()),blockTime:Ke(qe(Ve()))}))),Uu(Ue(Je({signature:Qe(),slot:Ve(),err:Ku,memo:qe(Qe()),blockTime:Ke(qe(Ve()))}))),$e([Je({type:$e([Fe("firstShredReceived"),Fe("completed"),Fe("optimisticConfirmation"),Fe("root")]),slot:Ve(),timestamp:Ve()}),Je({type:Fe("createdBank"),parent:Ve(),slot:Ve(),timestamp:Ve()}),Je({type:Fe("frozen"),slot:Ve(),timestamp:Ve(),stats:Je({numTransactionEntries:Ve(),numSuccessfulTransactions:Ve(),numFailedTransactions:Ve(),maxTransactionsPerEntry:Ve()})}),Je({type:Fe("dead"),slot:Ve(),timestamp:Ve(),err:Qe()})]),Je({subscription:Ve(),result:($u=$e([Gu,Qu]),Je({context:Je({slot:Ve()}),value:$u}))});const Xu=Je({votePubkey:Qe(),nodePubkey:Qe(),activatedStake:Ve(),epochVoteAccount:We(),epochCredits:Ue(Ze([Ve(),Ve(),Ve()])),commission:Ve(),lastVote:Ve(),rootSlot:qe(Ve())});Uu(Je({current:Ue(Xu),delinquent:Ue(Xu)}));const tc=$e([Fe("processed"),Fe("confirmed"),Fe("finalized")]),ec=Je({slot:Ve(),confirmations:qe(Ve()),err:Ku,confirmationStatus:Ke(tc)});Wu(Ue(qe(ec))),Uu(Ve());const nc=Je({signatures:Ue(Qe()),message:Je({accountKeys:Ue(Qe()),header:Je({numRequiredSignatures:Ve(),numReadonlySignedAccounts:Ve(),numReadonlyUnsignedAccounts:Ve()}),instructions:Ue(Je({accounts:Ue(Ve()),data:Qe(),programIdIndex:Ve()})),recentBlockhash:Qe()})}),rc=Je({parsed:Xe(),program:Qe(),programId:Cu}),ic=Je({accounts:Ue(Cu),data:Qe(),programId:Cu}),oc=tn($e([ic,rc]),$e([Je({parsed:Xe(),program:Qe(),programId:Qe()}),Je({accounts:Ue(Qe()),data:Qe(),programId:Qe()})]),t=>Re(t,"accounts"in t?ic:rc)),sc=Je({signatures:Ue(Qe()),message:Je({accountKeys:Ue(Je({pubkey:Cu,signer:We(),writable:We()})),instructions:Ue(oc),recentBlockhash:Qe()})}),ac=Je({accountIndex:Ve(),mint:Qe(),owner:Ke(Qe()),uiTokenAmount:Zu}),uc=Je({err:Ku,fee:Ve(),innerInstructions:Ke(qe(Ue(Je({index:Ve(),instructions:Ue(Je({accounts:Ue(Ve()),data:Qe(),programIdIndex:Ve()}))})))),preBalances:Ue(Ve()),postBalances:Ue(Ve()),logMessages:Ke(qe(Ue(Qe()))),preTokenBalances:Ke(qe(Ue(ac))),postTokenBalances:Ke(qe(Ue(ac)))}),cc=Je({err:Ku,fee:Ve(),innerInstructions:Ke(qe(Ue(Je({index:Ve(),instructions:Ue(oc)})))),preBalances:Ue(Ve()),postBalances:Ue(Ve()),logMessages:Ke(qe(Ue(Qe()))),preTokenBalances:Ke(qe(Ue(ac))),postTokenBalances:Ke(qe(Ue(ac)))});Uu(qe(Je({blockhash:Qe(),previousBlockhash:Qe(),parentSlot:Ve(),transactions:Ue(Je({transaction:nc,meta:qe(uc)})),rewards:Ke(Ue(Je({pubkey:Qe(),lamports:Ve(),postBalance:qe(Ve()),rewardType:qe(Qe())}))),blockTime:qe(Ve()),blockHeight:qe(Ve())}))),Uu(qe(Je({blockhash:Qe(),previousBlockhash:Qe(),parentSlot:Ve(),transactions:Ue(Je({transaction:nc,meta:qe(uc)})),rewards:Ke(Ue(Je({pubkey:Qe(),lamports:Ve(),postBalance:qe(Ve()),rewardType:qe(Qe())}))),blockTime:qe(Ve())}))),Uu(qe(Je({blockhash:Qe(),previousBlockhash:Qe(),parentSlot:Ve(),signatures:Ue(Qe()),blockTime:qe(Ve())}))),Uu(qe(Je({slot:Ve(),meta:uc,blockTime:Ke(qe(Ve())),transaction:nc}))),Uu(qe(Je({slot:Ve(),transaction:sc,meta:qe(cc),blockTime:Ke(qe(Ve()))}))),Wu(Je({blockhash:Qe(),feeCalculator:Je({lamportsPerSignature:Ve()})})),Wu(Je({blockhash:Qe(),lastValidBlockHeight:Ve()})),Uu(Ue(Je({slot:Ve(),numTransactions:Ve(),numSlots:Ve(),samplePeriodSecs:Ve()}))),Wu(qe(Je({feeCalculator:Je({lamportsPerSignature:Ve()})}))),Uu(Qe()),Uu(Qe()),De([Ae("numSignatures"),Ae("padding"),Se("signatureOffset"),Se("signatureInstructionIndex"),Se("publicKeyOffset"),Se("publicKeyInstructionIndex"),Se("messageDataOffset"),Se("messageDataSize"),Se("messageInstructionIndex")]),new bu("Ed25519SigVerify111111111111111111111111111"),new bu("StakeConfig11111111111111111111111111111111"),Object.freeze({Initialize:{index:0,layout:De([Me("instruction"),((t="authorized")=>De([Au("staker"),Au("withdrawer")],t))(),((t="lockup")=>De([Te("unixTimestamp"),Te("epoch"),Au("custodian")],t))()])},Authorize:{index:1,layout:De([Me("instruction"),Au("newAuthorized"),Me("stakeAuthorizationType")])},Delegate:{index:2,layout:De([Me("instruction")])},Split:{index:3,layout:De([Me("instruction"),Te("lamports")])},Withdraw:{index:4,layout:De([Me("instruction"),Te("lamports")])},Deactivate:{index:5,layout:De([Me("instruction")])},Merge:{index:7,layout:De([Me("instruction")])},AuthorizeWithSeed:{index:8,layout:De([Me("instruction"),Au("newAuthorized"),Me("stakeAuthorizationType"),ku("authoritySeed"),Au("authorityOwner")])}}),Object.freeze({Staker:{index:0},Withdrawer:{index:1}}),new bu("Stake11111111111111111111111111111111111111"),De([Ae("numSignatures"),Se("signatureOffset"),Ae("signatureInstructionIndex"),Se("ethAddressOffset"),Ae("ethAddressInstructionIndex"),Se("messageDataOffset"),Se("messageDataSize"),Ae("messageInstructionIndex"),Ee(20,"ethAddress"),Ee(64,"signature"),Ae("recoveryId")]),new bu("KeccakSecp256k11111111111111111111111111111"),new bu("Va1idator1nfo111111111111111111111111111111"),new bu("Vote111111111111111111111111111111111111111"),De([Au("nodePubkey"),Au("authorizedWithdrawer"),Ae("commission"),we(),Le(De([we("slot"),Me("confirmationCount")]),ke(Me(),-8),"votes"),Ae("rootSlotValid"),we("rootSlot"),we(),Le(De([we("epoch"),Au("authorizedVoter")]),ke(Me(),-8),"authorizedVoters"),De([Le(De([Au("authorizedPubkey"),we("epochOfLastAuthorizedSwitch"),we("targetEpoch")]),32,"buf"),we("idx"),Ae("isEmpty")],"priorVoters"),we(),Le(De([we("epoch"),we("credits"),we("prevCredits")]),ke(Me(),-8),"epochCredits"),De([we("slot"),we("timestamp")],"lastTimestamp")]),Object.freeze({InitializeAccount:{index:0,layout:De([Me("instruction"),((t="voteInit")=>De([Au("nodePubkey"),Au("authorizedVoter"),Au("authorizedWithdrawer"),Ae("commission")],t))()])},Authorize:{index:1,layout:De([Me("instruction"),Au("newAuthorized"),Me("voteAuthorizationType")])},Withdraw:{index:3,layout:De([Me("instruction"),Te("lamports")])}}),Object.freeze({Voter:{index:0},Withdrawer:{index:1}}),new bu("Vote111111111111111111111111111111111111111");class lc extends P{constructor({net:t="mainnet-beta",server:e,appId:n,rpc:r}){super(),this.accounts=[],E(t,"'net' is required"),E(I.includes(t),"unsupported net"),this.net=t,this.rpc=r||("mainnet-beta"===t?"https://free.rpcpool.com":`https://api.${t}.solana.com`),this.server=e||x[this.net]||"https://wallet.blocto.app",this.appId=n||Object({NODE_ENV:"production",VUE_APP_ADMIN_CREATE_RAFFLE:"https://sapi.solsteads.com/shop/admin/create/raffle/",VUE_APP_ADMIN_CREATE_SHOP_ITEM:"https://sapi.solsteads.com/shop/admin/create/item/",VUE_APP_ADMIN_MODIFY_RAFFLE:"https://sapi.solsteads.com/shop/admin/modify/raffle/",VUE_APP_ADMIN_MODIFY_SHOP_ITEM:"https://sapi.solsteads.com/shop/admin/modify/item/",VUE_APP_ADMIN_RAFFLE_WINNERS:"https://sapi.solsteads.com/shop/admin/winners/",VUE_APP_ADMIN_TRANSACTIONS:"https://sapi.solsteads.com/shop/admin/transactions/",VUE_APP_ALL_RAFFLES:"https://sapi.solsteads.com/shop/raffles/all",VUE_APP_ALL_SHOP_ITEMS:"https://sapi.solsteads.com/shop/items/all",VUE_APP_DISCORD_VERIFY:"https://discord.com/api/oauth2/authorize?client_id=1003713742447583275&redirect_uri=https%3A%2F%2Fsapi.solsteads.com%2Fusers%2Fdiscord%2Fverify&response_type=code&scope=identify",VUE_APP_GET_AUTH_TRANSACTION:"https://sapi.solsteads.com/users/transaction_auth/",VUE_APP_GET_BALANCE:"https://sapi.solsteads.com/users/balance/",VUE_APP_GET_JWT:"https://sapi.solsteads.com/users/jwt/get/",VUE_APP_GET_RAFFLE_INFO:"https://sapi.solsteads.com/shop/raffle/info/",VUE_APP_GET_TICKET:"https://sapi.solsteads.com/shop/ticket/",VUE_APP_GET_TRANSACTIONS:"https://sapi.solsteads.com/users/transactions/",VUE_APP_GET_WALLET_TICKET_COUNT:"https://sapi.solsteads.com/shop/raffle/tickets/",VUE_APP_GET_WON_RAFFLES:"https://sapi.solsteads.com/users/won/",VUE_APP_PUBLIC_INFO:"https://sapi.solsteads.com/users/info/",VUE_APP_PURCHASE:"https://sapi.solsteads.com/shop/purchase/",VUE_APP_RPC:"https://solana-api.projectserum.com",VUE_APP_TWITTER_VERIFY:"https://worker.solsteads.com/users/twitter/oauth",VUE_APP_USER_FRESH:"https://sapi.solsteads.com/users/fresh/",BASE_URL:"/"}).APP_ID}tryRetrieveSessionFromStorage(){const t=W(this.sessionKey,{}),e=t&&t.code,n=t&&t.address&&t.address.solana;this.connected=Boolean(e&&n),this.code=e||null,this.accounts=n?[n]:[]}async request(t){this.connected||await this.connect();try{let e=null,n=null;switch(t.method){case"connect":n=await this.fetchAccounts();break;case"disconnect":this.disconnect();break;case"getAccounts":n=this.accounts.length?this.accounts:await this.fetchAccounts();break;case"getAccountInfo":{const e=await this.handleReadRequests(t),[r,i]=e.result.value.data;n={...e.result.value,data:ut.from(r,i),owner:new bu(e.result.value.owner)};break}case"convertToProgramWalletTransaction":n=await this.handleConvertTransaction(t);break;case"signAndSendTransaction":n=await this.handleSignAndSendTransaction(t);break;case"signTransaction":case"signAllTransactions":throw new Error(`Blocto is program wallet, which doesn't support ${t.method}. Use signAndSendTransaction instead.`);default:e=await this.handleReadRequests(t)}if(e&&!e.result&&e.error){const t=e.error.message?e.error.message:"Request failed";throw new Error(t)}return e?e.result:n}catch(t){throw console.error(t),t}}async connect(){const t=window.solana;return t&&t.isBlocto?new Promise(e=>{t.once("connect",t=>{this.accounts=[t.toBase58()],e()}),t.connect()}):(this.tryRetrieveSessionFromStorage(),new Promise((t,e)=>{if("undefined"==typeof window&&e("Currently only supported in browser"),this.connected)return t();const n=encodeURIComponent(window.location.origin),r=C(`${this.server}/authn?l6n=${n}&chain=solana`);R(r),B("message",(n,i)=>{const o=n;if(o.origin===this.server){if("FCL::CHALLENGE::RESPONSE"===o.data.type){i(),Y(r),this.code=o.data.code,this.connected=!0,this.eventListeners.connect.forEach(t=>t(this.net));const e=o.data.address;this.accounts=e?[e.solana]:[],F(this.sessionKey,{code:this.code,address:e},N),t()}"FCL::CHALLENGE::CANCEL"===o.data.type&&(i(),Y(r),e(new Error("User declined the login request")))}})}))}async disconnect(){const t=window.solana;t&&t.isBlocto?await t.dicconnect():(this.code=null,this.accounts=[],this.eventListeners.disconnect.forEach(t=>t()))}async fetchAccounts(){const{accounts:t}=await fetch(`${this.server}/api/solana/accounts?code=${this.code}`).then(t=>t.json());return this.accounts=t,t}async handleReadRequests(t){return fetch(this.rpc,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:1,jsonrpc:"2.0",...t})}).then(t=>t.json())}async convertToProgramWalletTransaction(t){const e=window.solana;if(e&&e.isBlocto)return e.convertToProgramWalletTransaction(t);const n=await this.request({method:"convertToProgramWalletTransaction",params:{message:t.serializeMessage().toString("hex")}});return this.toTransaction(n,[])}async signAndSendTransaction(t,e){const n=window.solana;if(n&&n.isBlocto)return n.signAndSendTransaction(t);const r={};if(e){e.commitment&&(r.commitment=e.commitment);const t=e?e._rpcEndpoint:null;t&&t!==this.rpc&&(this.rpc=t,this.disconnect(),await this.connect())}return this.request({method:"signAndSendTransaction",params:{signatures:await this.collectSignatures(t),message:t.serializeMessage().toString("hex"),...r}})}toTransaction(t,e){const n=Du.from(ut.from(t,"hex")),r=new ju;return r.recentBlockhash=n.recentBlockhash,n.header.numRequiredSignatures>0&&(r.feePayer=n.accountKeys[0]),e.forEach((t,e)=>{const i={signature:t===bu.default.toBase58()?null:ie.decode(t),publicKey:n.accountKeys[e]};r.signatures.push(i)}),n.instructions.forEach(t=>{const e=t.accounts.map(t=>({pubkey:n.accountKeys[t],isSigner:t(e.signature&&(t[e.publicKey.toBase58()]=e.signature.toString("hex")),t),{})}async handleConvertTransaction(t){return fetch(`${this.server}/api/solana/convertToWalletTx?code=${this.code}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:this.code,...t.params})}).then(t=>V(t,this))}async handleSignAndSendTransaction(t){const{authorizationId:e}=await fetch(`${this.server}/api/solana/authz?code=${this.code}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:this.code,...t.params})}).then(t=>V(t,this));if("undefined"==typeof window)throw new Error("Currently only supported in browser");const n=C(`${this.server}/authz/solana/${e}`);return R(n),new Promise((t,e)=>B("message",(r,i)=>{const o=r;o.origin===this.server&&"SOL:FRAME:RESPONSE"===o.data.type&&("APPROVED"===o.data.status&&(i(),Y(n),t(o.data.txHash)),"DECLINED"===o.data.status&&(i(),Y(n),e(new Error("User declined to send the transaction"))))}))}}var hc=Object.freeze({__proto__:null,default:{}});function dc(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}var fc=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,pc=function(t){return fc.exec(t).slice(1)};function mc(){for(var t="",e=!1,n=arguments.length-1;n>=-1&&!e;n--){var r=n>=0?arguments[n]:"/";if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");r&&(t=r+"/"+t,e="/"===r.charAt(0))}return(e?"/":"")+(t=dc(Ac(t.split("/"),(function(t){return!!t})),!e).join("/"))||"."}function gc(t){var e=yc(t),n="/"===Ec(t,-1);return(t=dc(Ac(t.split("/"),(function(t){return!!t})),!e).join("/"))||e||(t="."),t&&n&&(t+="/"),(e?"/":"")+t}function yc(t){return"/"===t.charAt(0)}function bc(){var t=Array.prototype.slice.call(arguments,0);return gc(Ac(t,(function(t,e){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))}function vc(t,e){function n(t){for(var e=0;e=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}t=mc(t).substr(1),e=mc(e).substr(1);for(var r=n(t.split("/")),i=n(e.split("/")),o=Math.min(r.length,i.length),s=o,a=0;al||t<0)throw new TypeError("offset must be a uint32");if(t>u||t>e)throw new RangeError("offset out of range")}function d(t,e,n){if("number"!==typeof t||t!==t)throw new TypeError("size must be a number");if(t>l||t<0)throw new TypeError("size must be a uint32");if(t+e>n||t>u)throw new RangeError("buffer too small")}function f(e,n,r,i){if(!a.isBuffer(e)&&!(e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"===typeof n)i=n,n=0,r=e.length;else if("function"===typeof r)i=r,r=e.length-n;else if("function"!==typeof i)throw new TypeError('"cb" argument must be a function');return h(n,e.length),d(r,n,e.length),p(e,n,r,i)}function p(t,e,n,i){if(r.browser){var o=t.buffer,a=new Uint8Array(o,e,n);return c.getRandomValues(a),i?void r.nextTick((function(){i(null,t)})):t}if(!i){var u=s(n);return u.copy(t,e),t}s(n,(function(n,r){if(n)return i(n);r.copy(t,e),i(null,t)}))}function m(e,n,r){if("undefined"===typeof n&&(n=0),!a.isBuffer(e)&&!(e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return h(n,e.length),void 0===r&&(r=e.length-n),d(r,n,e.length),p(e,n,r)}c&&c.getRandomValues||!r.browser?(e.randomFill=f,e.randomFillSync=m):(e.randomFill=i,e.randomFillSync=i)}).call(this,n("c8ba"),n("4362"))},7658:function(t,e,n){"use strict";var r=e;function i(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"!==typeof t){for(var r=0;r>8,s=255&i;o?n.push(o,s):n.push(s)}return n}function o(t){return 1===t.length?"0"+t:t}function s(t){for(var e="",n=0;n=0);return i},o.prototype._randrange=function(t,e){var n=e.sub(t);return t.add(this._randbelow(n))},o.prototype.test=function(t,e,n){var i=t.bitLength(),o=r.mont(t),s=new r(1).toRed(o);e||(e=Math.max(1,i/48|0));for(var a=t.subn(1),u=0;!a.testn(u);u++);for(var c=t.shrn(u),l=a.toRed(o),h=!0;e>0;e--){var d=this._randrange(new r(2),a);n&&n(d);var f=d.toRed(o).redPow(c);if(0!==f.cmp(s)&&0!==f.cmp(l)){for(var p=1;p0;e--){var l=this._randrange(new r(2),s),h=t.gcd(l);if(0!==h.cmpn(1))return h;var d=l.toRed(i).redPow(u);if(0!==d.cmp(o)&&0!==d.cmp(c)){for(var f=1;f{const e=new Set(t);return e.w=0,e.n=0,e},h=t=>(t.w&y)>0,d=t=>(t.n&y)>0,f=({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.length){let n=0;for(let r=0;r{("length"===e||e>=i)&&u.push(t)});else switch(void 0!==n&&u.push(a.get(n)),e){case"add":Object(r["o"])(t)?Object(r["t"])(n)&&u.push(a.get("length")):(u.push(a.get(_)),Object(r["u"])(t)&&u.push(a.get(w)));break;case"delete":Object(r["o"])(t)||(u.push(a.get(_)),Object(r["u"])(t)&&u.push(a.get(w)));break;case"set":Object(r["u"])(t)&&u.push(a.get(_));break}if(1===u.length)u[0]&&j(u[0]);else{const t=[];for(const e of u)e&&t.push(...e);j(l(t))}}function j(t,e){const n=Object(r["o"])(t)?t:[...t];for(const r of n)r.computed&&N(r,e);for(const r of n)r.computed||N(r,e)}function N(t,e){(t!==v||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const P=Object(r["I"])("__proto__,__v_isRef,__isVue"),C=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>"arguments"!==t&&"caller"!==t).map(t=>Symbol[t]).filter(r["F"])),R=H(),Y=H(!1,!0),B=H(!0),z=H(!0,!0),U=W();function W(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...t){const n=Rt(this);for(let e=0,i=this.length;e{t[e]=function(...t){D();const n=Rt(this)[e].apply(this,t);return T(),n}}),t}function H(t=!1,e=!1){return function(n,i,o){if("__v_isReactive"===i)return!t;if("__v_isReadonly"===i)return t;if("__v_isShallow"===i)return e;if("__v_raw"===i&&o===(t?e?kt:At:e?St:Mt).get(n))return n;const s=Object(r["o"])(n);if(!t&&s&&Object(r["k"])(U,i))return Reflect.get(U,i,o);const a=Reflect.get(n,i,o);return(Object(r["F"])(i)?C.has(i):P(i))?a:(t||O(n,"get",i),e?a:Ht(a)?s&&Object(r["t"])(i)?a:a.value:Object(r["w"])(a)?t?Ot(a):Dt(a):a)}}const F=V(),q=V(!0);function V(t=!1){return function(e,n,i,o){let s=e[n];if(Nt(s)&&Ht(s)&&!Ht(i))return!1;if(!t&&!Nt(i)&&(Pt(i)||(i=Rt(i),s=Rt(s)),!Object(r["o"])(e)&&Ht(s)&&!Ht(i)))return s.value=i,!0;const a=Object(r["o"])(e)&&Object(r["t"])(n)?Number(n)t,et=t=>Reflect.getPrototypeOf(t);function nt(t,e,n=!1,r=!1){t=t["__v_raw"];const i=Rt(t),o=Rt(e);n||(e!==o&&O(i,"get",e),O(i,"get",o));const{has:s}=et(i),a=r?tt:n?zt:Bt;return s.call(i,e)?a(t.get(e)):s.call(i,o)?a(t.get(o)):void(t!==i&&t.get(e))}function rt(t,e=!1){const n=this["__v_raw"],r=Rt(n),i=Rt(t);return e||(t!==i&&O(r,"has",t),O(r,"has",i)),t===i?n.has(t):n.has(t)||n.has(i)}function it(t,e=!1){return t=t["__v_raw"],!e&&O(Rt(t),"iterate",_),Reflect.get(t,"size",t)}function ot(t){t=Rt(t);const e=Rt(this),n=et(e),r=n.has.call(e,t);return r||(e.add(t),I(e,"add",t,t)),this}function st(t,e){e=Rt(e);const n=Rt(this),{has:i,get:o}=et(n);let s=i.call(n,t);s||(t=Rt(t),s=i.call(n,t));const a=o.call(n,t);return n.set(t,e),s?Object(r["j"])(e,a)&&I(n,"set",t,e,a):I(n,"add",t,e),this}function at(t){const e=Rt(this),{has:n,get:r}=et(e);let i=n.call(e,t);i||(t=Rt(t),i=n.call(e,t));const o=r?r.call(e,t):void 0,s=e.delete(t);return i&&I(e,"delete",t,void 0,o),s}function ut(){const t=Rt(this),e=0!==t.size,n=void 0,r=t.clear();return e&&I(t,"clear",void 0,void 0,n),r}function ct(t,e){return function(n,r){const i=this,o=i["__v_raw"],s=Rt(o),a=e?tt:t?zt:Bt;return!t&&O(s,"iterate",_),o.forEach((t,e)=>n.call(r,a(t),a(e),i))}}function lt(t,e,n){return function(...i){const o=this["__v_raw"],s=Rt(o),a=Object(r["u"])(s),u="entries"===t||t===Symbol.iterator&&a,c="keys"===t&&a,l=o[t](...i),h=n?tt:e?zt:Bt;return!e&&O(s,"iterate",c?w:_),{next(){const{value:t,done:e}=l.next();return e?{value:t,done:e}:{value:u?[h(t[0]),h(t[1])]:h(t),done:e}},[Symbol.iterator](){return this}}}}function ht(t){return function(...e){return"delete"!==t&&this}}function dt(){const t={get(t){return nt(this,t)},get size(){return it(this)},has:rt,add:ot,set:st,delete:at,clear:ut,forEach:ct(!1,!1)},e={get(t){return nt(this,t,!1,!0)},get size(){return it(this)},has:rt,add:ot,set:st,delete:at,clear:ut,forEach:ct(!1,!0)},n={get(t){return nt(this,t,!0)},get size(){return it(this,!0)},has(t){return rt.call(this,t,!0)},add:ht("add"),set:ht("set"),delete:ht("delete"),clear:ht("clear"),forEach:ct(!0,!1)},r={get(t){return nt(this,t,!0,!0)},get size(){return it(this,!0)},has(t){return rt.call(this,t,!0)},add:ht("add"),set:ht("set"),delete:ht("delete"),clear:ht("clear"),forEach:ct(!0,!0)},i=["keys","values","entries",Symbol.iterator];return i.forEach(i=>{t[i]=lt(i,!1,!1),n[i]=lt(i,!0,!1),e[i]=lt(i,!1,!0),r[i]=lt(i,!0,!0)}),[t,n,e,r]}const[ft,pt,mt,gt]=dt();function yt(t,e){const n=e?t?gt:mt:t?pt:ft;return(e,i,o)=>"__v_isReactive"===i?!t:"__v_isReadonly"===i?t:"__v_raw"===i?e:Reflect.get(Object(r["k"])(n,i)&&i in e?n:e,i,o)}const bt={get:yt(!1,!1)},vt={get:yt(!1,!0)},_t={get:yt(!0,!1)},wt={get:yt(!0,!0)};const Mt=new WeakMap,St=new WeakMap,At=new WeakMap,kt=new WeakMap;function Et(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Lt(t){return t["__v_skip"]||!Object.isExtensible(t)?0:Et(Object(r["Q"])(t))}function Dt(t){return Nt(t)?t:It(t,!1,Z,bt,Mt)}function Tt(t){return It(t,!1,$,vt,St)}function Ot(t){return It(t,!0,J,_t,At)}function xt(t){return It(t,!0,X,wt,kt)}function It(t,e,n,i,o){if(!Object(r["w"])(t))return t;if(t["__v_raw"]&&(!e||!t["__v_isReactive"]))return t;const s=o.get(t);if(s)return s;const a=Lt(t);if(0===a)return t;const u=new Proxy(t,2===a?i:n);return o.set(t,u),u}function jt(t){return Nt(t)?jt(t["__v_raw"]):!(!t||!t["__v_isReactive"])}function Nt(t){return!(!t||!t["__v_isReadonly"])}function Pt(t){return!(!t||!t["__v_isShallow"])}function Ct(t){return jt(t)||Nt(t)}function Rt(t){const e=t&&t["__v_raw"];return e?Rt(e):t}function Yt(t){return Object(r["g"])(t,"__v_skip",!0),t}const Bt=t=>Object(r["w"])(t)?Dt(t):t,zt=t=>Object(r["w"])(t)?Ot(t):t;function Ut(t){E&&v&&(t=Rt(t),x(t.dep||(t.dep=l())))}function Wt(t,e){t=Rt(t),t.dep&&j(t.dep)}function Ht(t){return!(!t||!0!==t.__v_isRef)}function Ft(t){return Vt(t,!1)}function qt(t){return Vt(t,!0)}function Vt(t,e){return Ht(t)?t:new Kt(t,e)}class Kt{constructor(t,e){this.__v_isShallow=e,this.dep=void 0,this.__v_isRef=!0,this._rawValue=e?t:Rt(t),this._value=e?t:Bt(t)}get value(){return Ut(this),this._value}set value(t){t=this.__v_isShallow?t:Rt(t),Object(r["j"])(t,this._rawValue)&&(this._rawValue=t,this._value=this.__v_isShallow?t:Bt(t),Wt(this,t))}}function Gt(t){Wt(t,void 0)}function Qt(t){return Ht(t)?t.value:t}const Zt={get:(t,e,n)=>Qt(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const i=t[e];return Ht(i)&&!Ht(n)?(i.value=n,!0):Reflect.set(t,e,n,r)}};function Jt(t){return jt(t)?t:new Proxy(t,Zt)}class $t{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:e,set:n}=t(()=>Ut(this),()=>Wt(this));this._get=e,this._set=n}get value(){return this._get()}set value(t){this._set(t)}}function Xt(t){return new $t(t)}function te(t){const e=Object(r["o"])(t)?new Array(t.length):{};for(const n in t)e[n]=ne(t,n);return e}class ee{constructor(t,e,n){this._object=t,this._key=e,this._defaultValue=n,this.__v_isRef=!0}get value(){const t=this._object[this._key];return void 0===t?this._defaultValue:t}set value(t){this._object[this._key]=t}}function ne(t,e,n){const r=t[e];return Ht(r)?r:new ee(t,e,n)}class re{constructor(t,e,n,r){this._setter=e,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new M(t,()=>{this._dirty||(this._dirty=!0,Wt(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this["__v_isReadonly"]=n}get value(){const t=Rt(this);return Ut(t),!t._dirty&&t._cacheable||(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function ie(t,e,n=!1){let i,o;const s=Object(r["q"])(t);s?(i=t,o=r["d"]):(i=t.get,o=t.set);const a=new re(i,o,s||!o,n);return a}const oe=[];function se(t,...e){D();const n=oe.length?oe[oe.length-1].component:null,r=n&&n.appContext.config.warnHandler,i=ae();if(r)de(r,n,11,[t+e.join(""),n&&n.proxy,i.map(({vnode:t})=>`at <${Co(n,t.type)}>`).join("\n"),i]);else{const n=["[Vue warn]: "+t,...e];i.length&&n.push("\n",...ue(i)),console.warn(...n)}T()}function ae(){let t=oe[oe.length-1];if(!t)return[];const e=[];while(t){const n=e[0];n&&n.vnode===t?n.recurseCount++:e.push({vnode:t,recurseCount:0});const r=t.component&&t.component.parent;t=r&&r.vnode}return e}function ue(t){const e=[];return t.forEach((t,n)=>{e.push(...0===n?[]:["\n"],...ce(t))}),e}function ce({vnode:t,recurseCount:e}){const n=e>0?`... (${e} recursive calls)`:"",r=!!t.component&&null==t.component.parent,i=" at <"+Co(t.component,t.type,r),o=">"+n;return t.props?[i,...le(t.props),o]:[i+o]}function le(t){const e=[],n=Object.keys(t);return n.slice(0,3).forEach(n=>{e.push(...he(n,t[n]))}),n.length>3&&e.push(" ..."),e}function he(t,e,n){return Object(r["E"])(e)?(e=JSON.stringify(e),n?e:[`${t}=${e}`]):"number"===typeof e||"boolean"===typeof e||null==e?n?e:[`${t}=${e}`]:Ht(e)?(e=he(t,Rt(e.value),!0),n?e:[t+"=Ref<",e,">"]):Object(r["q"])(e)?[`${t}=fn${e.name?`<${e.name}>`:""}`]:(e=Rt(e),n?e:[t+"=",e])}function de(t,e,n,r){let i;try{i=r?t(...r):t()}catch(o){pe(o,e,n)}return i}function fe(t,e,n,i){if(Object(r["q"])(t)){const o=de(t,e,n,i);return o&&Object(r["z"])(o)&&o.catch(t=>{pe(t,e,n)}),o}const o=[];for(let r=0;r>>1,i=Be(be[r]);ive&&be.splice(e,1)}function Ne(t,e,n,i){Object(r["o"])(t)?n.push(...t):e&&e.includes(t,t.allowRecurse?i+1:i)||n.push(t),Ie()}function Pe(t){Ne(t,we,_e,Me)}function Ce(t){Ne(t,Ae,Se,ke)}function Re(t,e=null){if(_e.length){for(De=e,we=[...new Set(_e)],_e.length=0,Me=0;MeBe(t)-Be(e)),ke=0;kenull==t.id?1/0:t.id;function ze(t){ye=!1,ge=!0,Re(t),be.sort((t,e)=>Be(t)-Be(e));r["d"];try{for(ve=0;veUe.emit(t,...e)),We=[];else if("undefined"!==typeof window&&window.HTMLElement&&!(null===(r=null===(n=window.navigator)||void 0===n?void 0:n.userAgent)||void 0===r?void 0:r.includes("jsdom"))){const t=e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[];t.push(t=>{Fe(t,e)}),setTimeout(()=>{Ue||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,He=!0,We=[])},3e3)}else He=!0,We=[]}function qe(t,e,...n){if(t.isUnmounted)return;const i=t.vnode.props||r["b"];let o=n;const s=e.startsWith("update:"),a=s&&e.slice(7);if(a&&a in i){const t=("modelValue"===a?"model":a)+"Modifiers",{number:e,trim:s}=i[t]||r["b"];s&&(o=n.map(t=>t.trim())),e&&(o=n.map(r["P"]))}let u;let c=i[u=Object(r["O"])(e)]||i[u=Object(r["O"])(Object(r["e"])(e))];!c&&s&&(c=i[u=Object(r["O"])(Object(r["l"])(e))]),c&&fe(c,t,6,o);const l=i[u+"Once"];if(l){if(t.emitted){if(t.emitted[u])return}else t.emitted={};t.emitted[u]=!0,fe(l,t,6,o)}}function Ve(t,e,n=!1){const i=e.emitsCache,o=i.get(t);if(void 0!==o)return o;const s=t.emits;let a={},u=!1;if(!Object(r["q"])(t)){const i=t=>{const n=Ve(t,e,!0);n&&(u=!0,Object(r["h"])(a,n))};!n&&e.mixins.length&&e.mixins.forEach(i),t.extends&&i(t.extends),t.mixins&&t.mixins.forEach(i)}return s||u?(Object(r["o"])(s)?s.forEach(t=>a[t]=null):Object(r["h"])(a,s),i.set(t,a),a):(i.set(t,null),null)}function Ke(t,e){return!(!t||!Object(r["x"])(e))&&(e=e.slice(2).replace(/Once$/,""),Object(r["k"])(t,e[0].toLowerCase()+e.slice(1))||Object(r["k"])(t,Object(r["l"])(e))||Object(r["k"])(t,e))}let Ge=null,Qe=null;function Ze(t){const e=Ge;return Ge=t,Qe=t&&t.type.__scopeId||null,e}function Je(t){Qe=t}function $e(){Qe=null}const Xe=t=>tn;function tn(t,e=Ge,n){if(!e)return t;if(t._n)return t;const r=(...n)=>{r._d&&Hi(-1);const i=Ze(e),o=t(...n);return Ze(i),r._d&&Hi(1),o};return r._n=!0,r._c=!0,r._d=!0,r}function en(t){const{type:e,vnode:n,proxy:i,withProxy:o,props:s,propsOptions:[a],slots:u,attrs:c,emit:l,render:h,renderCache:d,data:f,setupState:p,ctx:m,inheritAttrs:g}=t;let y,b;const v=Ze(t);try{if(4&n.shapeFlag){const t=o||i;y=ao(h.call(t,t,d,s,p,f,m)),b=c}else{const t=e;0,y=ao(t.length>1?t(s,{attrs:c,slots:u,emit:l}):t(s,null)),b=e.props?c:rn(c)}}catch(w){Ri.length=0,pe(w,t,1),y=to(Pi)}let _=y;if(b&&!1!==g){const t=Object.keys(b),{shapeFlag:e}=_;t.length&&7&e&&(a&&t.some(r["v"])&&(b=on(b,a)),_=ro(_,b))}return n.dirs&&(_=ro(_),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&(_.transition=n.transition),y=_,Ze(v),y}function nn(t){let e;for(let n=0;n{let e;for(const n in t)("class"===n||"style"===n||Object(r["x"])(n))&&((e||(e={}))[n]=t[n]);return e},on=(t,e)=>{const n={};for(const i in t)Object(r["v"])(i)&&i.slice(9)in e||(n[i]=t[i]);return n};function sn(t,e,n){const{props:r,children:i,component:o}=t,{props:s,children:a,patchFlag:u}=e,c=o.emitsOptions;if(e.dirs||e.transition)return!0;if(!(n&&u>=0))return!(!i&&!a||a&&a.$stable)||r!==s&&(r?!s||an(r,s,c):!!s);if(1024&u)return!0;if(16&u)return r?an(r,s,c):!!s;if(8&u){const t=e.dynamicProps;for(let e=0;et.__isSuspense,ln={name:"Suspense",__isSuspense:!0,process(t,e,n,r,i,o,s,a,u,c){null==t?fn(e,n,r,i,o,s,a,u,c):pn(t,e,n,r,i,s,a,u,c)},hydrate:gn,create:mn,normalize:yn},hn=ln;function dn(t,e){const n=t.props&&t.props[e];Object(r["q"])(n)&&n()}function fn(t,e,n,r,i,o,s,a,u){const{p:c,o:{createElement:l}}=u,h=l("div"),d=t.suspense=mn(t,i,r,e,h,n,o,s,a,u);c(null,d.pendingBranch=t.ssContent,h,null,r,d,o,s),d.deps>0?(dn(t,"onPending"),dn(t,"onFallback"),c(null,t.ssFallback,e,n,r,null,o,s),_n(d,t.ssFallback)):d.resolve()}function pn(t,e,n,r,i,o,s,a,{p:u,um:c,o:{createElement:l}}){const h=e.suspense=t.suspense;h.vnode=e,e.el=t.el;const d=e.ssContent,f=e.ssFallback,{activeBranch:p,pendingBranch:m,isInFallback:g,isHydrating:y}=h;if(m)h.pendingBranch=d,Gi(d,m)?(u(m,d,h.hiddenContainer,null,i,h,o,s,a),h.deps<=0?h.resolve():g&&(u(p,f,n,r,i,null,o,s,a),_n(h,f))):(h.pendingId++,y?(h.isHydrating=!1,h.activeBranch=m):c(m,i,h),h.deps=0,h.effects.length=0,h.hiddenContainer=l("div"),g?(u(null,d,h.hiddenContainer,null,i,h,o,s,a),h.deps<=0?h.resolve():(u(p,f,n,r,i,null,o,s,a),_n(h,f))):p&&Gi(d,p)?(u(p,d,n,r,i,h,o,s,a),h.resolve(!0)):(u(null,d,h.hiddenContainer,null,i,h,o,s,a),h.deps<=0&&h.resolve()));else if(p&&Gi(d,p))u(p,d,n,r,i,h,o,s,a),_n(h,d);else if(dn(e,"onPending"),h.pendingBranch=d,h.pendingId++,u(null,d,h.hiddenContainer,null,i,h,o,s,a),h.deps<=0)h.resolve();else{const{timeout:t,pendingId:e}=h;t>0?setTimeout(()=>{h.pendingId===e&&h.fallback(f)},t):0===t&&h.fallback(f)}}function mn(t,e,n,i,o,s,a,u,c,l,h=!1){const{p:d,m:f,um:p,n:m,o:{parentNode:g,remove:y}}=l,b=Object(r["P"])(t.props&&t.props.timeout),v={vnode:t,parent:e,parentComponent:n,isSVG:a,container:i,hiddenContainer:o,anchor:s,deps:0,pendingId:0,timeout:"number"===typeof b?b:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:h,isUnmounted:!1,effects:[],resolve(t=!1){const{vnode:e,activeBranch:n,pendingBranch:r,pendingId:i,effects:o,parentComponent:s,container:a}=v;if(v.isHydrating)v.isHydrating=!1;else if(!t){const t=n&&r.transition&&"out-in"===r.transition.mode;t&&(n.transition.afterLeave=()=>{i===v.pendingId&&f(r,a,e,0)});let{anchor:e}=v;n&&(e=m(n),p(n,s,v,!0)),t||f(r,a,e,0)}_n(v,r),v.pendingBranch=null,v.isInFallback=!1;let u=v.parent,c=!1;while(u){if(u.pendingBranch){u.effects.push(...o),c=!0;break}u=u.parent}c||Ce(o),v.effects=[],dn(e,"onResolve")},fallback(t){if(!v.pendingBranch)return;const{vnode:e,activeBranch:n,parentComponent:r,container:i,isSVG:o}=v;dn(e,"onFallback");const s=m(n),a=()=>{v.isInFallback&&(d(null,t,i,s,r,null,o,u,c),_n(v,t))},l=t.transition&&"out-in"===t.transition.mode;l&&(n.transition.afterLeave=a),v.isInFallback=!0,p(n,r,null,!0),l||a()},move(t,e,n){v.activeBranch&&f(v.activeBranch,t,e,n),v.container=t},next(){return v.activeBranch&&m(v.activeBranch)},registerDep(t,e){const n=!!v.pendingBranch;n&&v.deps++;const r=t.vnode.el;t.asyncDep.catch(e=>{pe(e,t,0)}).then(i=>{if(t.isUnmounted||v.isUnmounted||v.pendingId!==t.suspenseId)return;t.asyncResolved=!0;const{vnode:o}=t;Eo(t,i,!1),r&&(o.el=r);const s=!r&&t.subTree.el;e(t,o,g(r||t.subTree.el),r?null:m(t.subTree),v,a,c),s&&y(s),un(t,o.el),n&&0===--v.deps&&v.resolve()})},unmount(t,e){v.isUnmounted=!0,v.activeBranch&&p(v.activeBranch,n,t,e),v.pendingBranch&&p(v.pendingBranch,n,t,e)}};return v}function gn(t,e,n,r,i,o,s,a,u){const c=e.suspense=mn(e,r,n,t.parentNode,document.createElement("div"),null,i,o,s,a,!0),l=u(t,c.pendingBranch=e.ssContent,n,c,o,s);return 0===c.deps&&c.resolve(),l}function yn(t){const{shapeFlag:e,children:n}=t,r=32&e;t.ssContent=bn(r?n.default:n),t.ssFallback=r?bn(n.fallback):to(Pi)}function bn(t){let e;if(Object(r["q"])(t)){const n=Wi&&t._c;n&&(t._d=!1,Bi()),t=t(),n&&(t._d=!0,e=Yi,zi())}if(Object(r["o"])(t)){const e=nn(t);0,t=e}return t=ao(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(e=>e!==t)),t}function vn(t,e){e&&e.pendingBranch?Object(r["o"])(t)?e.effects.push(...t):e.effects.push(t):Ce(t)}function _n(t,e){t.activeBranch=e;const{vnode:n,parentComponent:r}=t,i=n.el=e.el;r&&r.subTree===n&&(r.vnode.el=i,un(r,i))}function wn(t,e){if(go){let n=go.provides;const r=go.parent&&go.parent.provides;r===n&&(n=go.provides=Object.create(r)),n[t]=e}else 0}function Mn(t,e,n=!1){const i=go||Ge;if(i){const o=null==i.parent?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides;if(o&&t in o)return o[t];if(arguments.length>1)return n&&Object(r["q"])(e)?e.call(i.proxy):e}else 0}function Sn(t,e){return Dn(t,null,e)}function An(t,e){return Dn(t,null,{flush:"post"})}function kn(t,e){return Dn(t,null,{flush:"sync"})}const En={};function Ln(t,e,n){return Dn(t,e,n)}function Dn(t,e,{immediate:n,deep:i,flush:o,onTrack:s,onTrigger:a}=r["b"]){const u=go;let c,l,h=!1,d=!1;if(Ht(t)?(c=()=>t.value,h=Pt(t)):jt(t)?(c=()=>t,i=!0):Object(r["o"])(t)?(d=!0,h=t.some(t=>jt(t)||Pt(t)),c=()=>t.map(t=>Ht(t)?t.value:jt(t)?xn(t):Object(r["q"])(t)?de(t,u,2):void 0)):c=Object(r["q"])(t)?e?()=>de(t,u,2):()=>{if(!u||!u.isUnmounted)return l&&l(),fe(t,u,3,[f])}:r["d"],e&&i){const t=c;c=()=>xn(t())}let f=t=>{l=y.onStop=()=>{de(t,u,4)}};if(So)return f=r["d"],e?n&&fe(e,u,3,[c(),d?[]:void 0,f]):c(),r["d"];let p=d?[]:En;const m=()=>{if(y.active)if(e){const t=y.run();(i||h||(d?t.some((t,e)=>Object(r["j"])(t,p[e])):Object(r["j"])(t,p)))&&(l&&l(),fe(e,u,3,[t,p===En?void 0:p,f]),p=t)}else y.run()};let g;m.allowRecurse=!!e,g="sync"===o?m:"post"===o?()=>bi(m,u&&u.suspense):()=>Pe(m);const y=new M(c,g);return e?n?m():p=y.run():"post"===o?bi(y.run.bind(y),u&&u.suspense):y.run(),()=>{y.stop(),u&&u.scope&&Object(r["M"])(u.scope.effects,y)}}function Tn(t,e,n){const i=this.proxy,o=Object(r["E"])(t)?t.includes(".")?On(i,t):()=>i[t]:t.bind(i,i);let s;Object(r["q"])(e)?s=e:(s=e.handler,n=e);const a=go;bo(this);const u=Dn(o,s.bind(i),n);return a?bo(a):vo(),u}function On(t,e){const n=e.split(".");return()=>{let e=t;for(let t=0;t{xn(t,e)});else if(Object(r["y"])(t))for(const n in t)xn(t[n],e);return t}function In(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return or(()=>{t.isMounted=!0}),ur(()=>{t.isUnmounting=!0}),t}const jn=[Function,Array],Nn={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:jn,onEnter:jn,onAfterEnter:jn,onEnterCancelled:jn,onBeforeLeave:jn,onLeave:jn,onAfterLeave:jn,onLeaveCancelled:jn,onBeforeAppear:jn,onAppear:jn,onAfterAppear:jn,onAppearCancelled:jn},setup(t,{slots:e}){const n=yo(),r=In();let i;return()=>{const o=e.default&&Un(e.default(),!0);if(!o||!o.length)return;let s=o[0];if(o.length>1){let t=!1;for(const e of o)if(e.type!==Pi){0,s=e,t=!0;break}}const a=Rt(t),{mode:u}=a;if(r.isLeaving)return Yn(s);const c=Bn(s);if(!c)return Yn(s);const l=Rn(c,a,r,n);zn(c,l);const h=n.subTree,d=h&&Bn(h);let f=!1;const{getTransitionKey:p}=c.type;if(p){const t=p();void 0===i?i=t:t!==i&&(i=t,f=!0)}if(d&&d.type!==Pi&&(!Gi(c,d)||f)){const t=Rn(d,a,r,n);if(zn(d,t),"out-in"===u)return r.isLeaving=!0,t.afterLeave=()=>{r.isLeaving=!1,n.update()},Yn(s);"in-out"===u&&c.type!==Pi&&(t.delayLeave=(t,e,n)=>{const i=Cn(r,d);i[String(d.key)]=d,t._leaveCb=()=>{e(),t._leaveCb=void 0,delete l.delayedLeave},l.delayedLeave=n})}return s}}},Pn=Nn;function Cn(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function Rn(t,e,n,i){const{appear:o,mode:s,persisted:a=!1,onBeforeEnter:u,onEnter:c,onAfterEnter:l,onEnterCancelled:h,onBeforeLeave:d,onLeave:f,onAfterLeave:p,onLeaveCancelled:m,onBeforeAppear:g,onAppear:y,onAfterAppear:b,onAppearCancelled:v}=e,_=String(t.key),w=Cn(n,t),M=(t,e)=>{t&&fe(t,i,9,e)},S=(t,e)=>{const n=e[1];M(t,e),Object(r["o"])(t)?t.every(t=>t.length<=1)&&n():t.length<=1&&n()},A={mode:s,persisted:a,beforeEnter(e){let r=u;if(!n.isMounted){if(!o)return;r=g||u}e._leaveCb&&e._leaveCb(!0);const i=w[_];i&&Gi(t,i)&&i.el._leaveCb&&i.el._leaveCb(),M(r,[e])},enter(t){let e=c,r=l,i=h;if(!n.isMounted){if(!o)return;e=y||c,r=b||l,i=v||h}let s=!1;const a=t._enterCb=e=>{s||(s=!0,M(e?i:r,[t]),A.delayedLeave&&A.delayedLeave(),t._enterCb=void 0)};e?S(e,[t,a]):a()},leave(e,r){const i=String(t.key);if(e._enterCb&&e._enterCb(!0),n.isUnmounting)return r();M(d,[e]);let o=!1;const s=e._leaveCb=n=>{o||(o=!0,r(),M(n?m:p,[e]),e._leaveCb=void 0,w[i]===t&&delete w[i])};w[i]=t,f?S(f,[e,s]):s()},clone(t){return Rn(t,e,n,i)}};return A}function Yn(t){if(Vn(t))return t=ro(t),t.children=null,t}function Bn(t){return Vn(t)?t.children?t.children[0]:void 0:t}function zn(t,e){6&t.shapeFlag&&t.component?zn(t.component.subTree,e):128&t.shapeFlag?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function Un(t,e=!1,n){let r=[],i=0;for(let o=0;o1)for(let o=0;o!!t.type.__asyncLoader;function Fn(t){Object(r["q"])(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:i,delay:o=200,timeout:s,suspensible:a=!0,onError:u}=t;let c,l=null,h=0;const d=()=>(h++,l=null,f()),f=()=>{let t;return l||(t=l=e().catch(t=>{if(t=t instanceof Error?t:new Error(String(t)),u)return new Promise((e,n)=>{const r=()=>e(d()),i=()=>n(t);u(t,r,i,h+1)});throw t}).then(e=>t!==l&&l?l:(e&&(e.__esModule||"Module"===e[Symbol.toStringTag])&&(e=e.default),c=e,e)))};return Wn({name:"AsyncComponentWrapper",__asyncLoader:f,get __asyncResolved(){return c},setup(){const t=go;if(c)return()=>qn(c,t);const e=e=>{l=null,pe(e,t,13,!i)};if(a&&t.suspense||So)return f().then(e=>()=>qn(e,t)).catch(t=>(e(t),()=>i?to(i,{error:t}):null));const r=Ft(!1),u=Ft(),h=Ft(!!o);return o&&setTimeout(()=>{h.value=!1},o),null!=s&&setTimeout(()=>{if(!r.value&&!u.value){const t=new Error(`Async component timed out after ${s}ms.`);e(t),u.value=t}},s),f().then(()=>{r.value=!0,t.parent&&Vn(t.parent.vnode)&&xe(t.parent.update)}).catch(t=>{e(t),u.value=t}),()=>r.value&&c?qn(c,t):u.value&&i?to(i,{error:u.value}):n&&!h.value?to(n):void 0}})}function qn(t,{vnode:{ref:e,props:n,children:r,shapeFlag:i},parent:o}){const s=to(t,n,r);return s.ref=e,s}const Vn=t=>t.type.__isKeepAlive,Kn={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const n=yo(),i=n.ctx;if(!i.renderer)return()=>{const t=e.default&&e.default();return t&&1===t.length?t[0]:t};const o=new Map,s=new Set;let a=null;const u=n.suspense,{renderer:{p:c,m:l,um:h,o:{createElement:d}}}=i,f=d("div");function p(t){tr(t),h(t,n,u,!0)}function m(t){o.forEach((e,n)=>{const r=Po(e.type);!r||t&&t(r)||g(n)})}function g(t){const e=o.get(t);a&&e.type===a.type?a&&tr(a):p(e),o.delete(t),s.delete(t)}i.activate=(t,e,n,i,o)=>{const s=t.component;l(t,e,n,0,u),c(s.vnode,t,e,n,s,u,i,t.slotScopeIds,o),bi(()=>{s.isDeactivated=!1,s.a&&Object(r["n"])(s.a);const e=t.props&&t.props.onVnodeMounted;e&&ho(e,s.parent,t)},u)},i.deactivate=t=>{const e=t.component;l(t,f,null,1,u),bi(()=>{e.da&&Object(r["n"])(e.da);const n=t.props&&t.props.onVnodeUnmounted;n&&ho(n,e.parent,t),e.isDeactivated=!0},u)},Ln(()=>[t.include,t.exclude],([t,e])=>{t&&m(e=>Qn(t,e)),e&&m(t=>!Qn(e,t))},{flush:"post",deep:!0});let y=null;const b=()=>{null!=y&&o.set(y,er(n.subTree))};return or(b),ar(b),ur(()=>{o.forEach(t=>{const{subTree:e,suspense:r}=n,i=er(e);if(t.type!==i.type)p(t);else{tr(i);const t=i.component.da;t&&bi(t,r)}})}),()=>{if(y=null,!e.default)return null;const n=e.default(),r=n[0];if(n.length>1)return a=null,n;if(!Ki(r)||!(4&r.shapeFlag)&&!(128&r.shapeFlag))return a=null,r;let i=er(r);const u=i.type,c=Po(Hn(i)?i.type.__asyncResolved||{}:u),{include:l,exclude:h,max:d}=t;if(l&&(!c||!Qn(l,c))||h&&c&&Qn(h,c))return a=i,r;const f=null==i.key?u:i.key,p=o.get(f);return i.el&&(i=ro(i),128&r.shapeFlag&&(r.ssContent=i)),y=f,p?(i.el=p.el,i.component=p.component,i.transition&&zn(i,i.transition),i.shapeFlag|=512,s.delete(f),s.add(f)):(s.add(f),d&&s.size>parseInt(d,10)&&g(s.values().next().value)),i.shapeFlag|=256,a=i,cn(r.type)?r:i}}},Gn=Kn;function Qn(t,e){return Object(r["o"])(t)?t.some(t=>Qn(t,e)):Object(r["E"])(t)?t.split(",").includes(e):!!t.test&&t.test(e)}function Zn(t,e){$n(t,"a",e)}function Jn(t,e){$n(t,"da",e)}function $n(t,e,n=go){const r=t.__wdc||(t.__wdc=()=>{let e=n;while(e){if(e.isDeactivated)return;e=e.parent}return t()});if(nr(e,r,n),n){let t=n.parent;while(t&&t.parent)Vn(t.parent.vnode)&&Xn(r,e,n,t),t=t.parent}}function Xn(t,e,n,i){const o=nr(e,t,i,!0);cr(()=>{Object(r["M"])(i[e],o)},n)}function tr(t){let e=t.shapeFlag;256&e&&(e-=256),512&e&&(e-=512),t.shapeFlag=e}function er(t){return 128&t.shapeFlag?t.ssContent:t}function nr(t,e,n=go,r=!1){if(n){const i=n[t]||(n[t]=[]),o=e.__weh||(e.__weh=(...r)=>{if(n.isUnmounted)return;D(),bo(n);const i=fe(e,n,t,r);return vo(),T(),i});return r?i.unshift(o):i.push(o),o}}const rr=t=>(e,n=go)=>(!So||"sp"===t)&&nr(t,e,n),ir=rr("bm"),or=rr("m"),sr=rr("bu"),ar=rr("u"),ur=rr("bum"),cr=rr("um"),lr=rr("sp"),hr=rr("rtg"),dr=rr("rtc");function fr(t,e=go){nr("ec",t,e)}function pr(t,e){const n=Ge;if(null===n)return t;const i=Io(n)||n.proxy,o=t.dirs||(t.dirs=[]);for(let s=0;se(t,n,void 0,s&&s[n]));else{const n=Object.keys(t);o=new Array(n.length);for(let r=0,i=n.length;r!Ki(t)||t.type!==Pi&&!(t.type===ji&&!Lr(t.children)))?t:null}function Dr(t){const e={};for(const n in t)e[Object(r["O"])(n)]=t[n];return e}const Tr=t=>t?_o(t)?Io(t)||t.proxy:Tr(t.parent):null,Or=Object(r["h"])(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Tr(t.parent),$root:t=>Tr(t.root),$emit:t=>t.emit,$options:t=>Yr(t),$forceUpdate:t=>t.f||(t.f=()=>xe(t.update)),$nextTick:t=>t.n||(t.n=Te.bind(t.proxy)),$watch:t=>Tn.bind(t)}),xr={get({_:t},e){const{ctx:n,setupState:i,data:o,props:s,accessCache:a,type:u,appContext:c}=t;let l;if("$"!==e[0]){const u=a[e];if(void 0!==u)switch(u){case 1:return i[e];case 2:return o[e];case 4:return n[e];case 3:return s[e]}else{if(i!==r["b"]&&Object(r["k"])(i,e))return a[e]=1,i[e];if(o!==r["b"]&&Object(r["k"])(o,e))return a[e]=2,o[e];if((l=t.propsOptions[0])&&Object(r["k"])(l,e))return a[e]=3,s[e];if(n!==r["b"]&&Object(r["k"])(n,e))return a[e]=4,n[e];jr&&(a[e]=0)}}const h=Or[e];let d,f;return h?("$attrs"===e&&O(t,"get",e),h(t)):(d=u.__cssModules)&&(d=d[e])?d:n!==r["b"]&&Object(r["k"])(n,e)?(a[e]=4,n[e]):(f=c.config.globalProperties,Object(r["k"])(f,e)?f[e]:void 0)},set({_:t},e,n){const{data:i,setupState:o,ctx:s}=t;return o!==r["b"]&&Object(r["k"])(o,e)?(o[e]=n,!0):i!==r["b"]&&Object(r["k"])(i,e)?(i[e]=n,!0):!Object(r["k"])(t.props,e)&&(("$"!==e[0]||!(e.slice(1)in t))&&(s[e]=n,!0))},has({_:{data:t,setupState:e,accessCache:n,ctx:i,appContext:o,propsOptions:s}},a){let u;return!!n[a]||t!==r["b"]&&Object(r["k"])(t,a)||e!==r["b"]&&Object(r["k"])(e,a)||(u=s[0])&&Object(r["k"])(u,a)||Object(r["k"])(i,a)||Object(r["k"])(Or,a)||Object(r["k"])(o.config.globalProperties,a)},defineProperty(t,e,n){return null!=n.get?t._.accessCache[e]=0:Object(r["k"])(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};const Ir=Object(r["h"])({},xr,{get(t,e){if(e!==Symbol.unscopables)return xr.get(t,e,t)},has(t,e){const n="_"!==e[0]&&!Object(r["r"])(e);return n}});let jr=!0;function Nr(t){const e=Yr(t),n=t.proxy,i=t.ctx;jr=!1,e.beforeCreate&&Cr(e.beforeCreate,t,"bc");const{data:o,computed:s,methods:a,watch:u,provide:c,inject:l,created:h,beforeMount:d,mounted:f,beforeUpdate:p,updated:m,activated:g,deactivated:y,beforeDestroy:b,beforeUnmount:v,destroyed:_,unmounted:w,render:M,renderTracked:S,renderTriggered:A,errorCaptured:k,serverPrefetch:E,expose:L,inheritAttrs:D,components:T,directives:O,filters:x}=e,I=null;if(l&&Pr(l,i,I,t.appContext.config.unwrapInjectedRef),a)for(const N in a){const t=a[N];Object(r["q"])(t)&&(i[N]=t.bind(n))}if(o){0;const e=o.call(n,n);0,Object(r["w"])(e)&&(t.data=Dt(e))}if(jr=!0,s)for(const N in s){const t=s[N],e=Object(r["q"])(t)?t.bind(n,n):Object(r["q"])(t.get)?t.get.bind(n,n):r["d"];0;const o=!Object(r["q"])(t)&&Object(r["q"])(t.set)?t.set.bind(n):r["d"],a=Yo({get:e,set:o});Object.defineProperty(i,N,{enumerable:!0,configurable:!0,get:()=>a.value,set:t=>a.value=t})}if(u)for(const r in u)Rr(u[r],i,n,r);if(c){const t=Object(r["q"])(c)?c.call(n):c;Reflect.ownKeys(t).forEach(e=>{wn(e,t[e])})}function j(t,e){Object(r["o"])(e)?e.forEach(e=>t(e.bind(n))):e&&t(e.bind(n))}if(h&&Cr(h,t,"c"),j(ir,d),j(or,f),j(sr,p),j(ar,m),j(Zn,g),j(Jn,y),j(fr,k),j(dr,S),j(hr,A),j(ur,v),j(cr,w),j(lr,E),Object(r["o"])(L))if(L.length){const e=t.exposed||(t.exposed={});L.forEach(t=>{Object.defineProperty(e,t,{get:()=>n[t],set:e=>n[t]=e})})}else t.exposed||(t.exposed={});M&&t.render===r["d"]&&(t.render=M),null!=D&&(t.inheritAttrs=D),T&&(t.components=T),O&&(t.directives=O)}function Pr(t,e,n=r["d"],i=!1){Object(r["o"])(t)&&(t=Hr(t));for(const o in t){const n=t[o];let s;s=Object(r["w"])(n)?"default"in n?Mn(n.from||o,n.default,!0):Mn(n.from||o):Mn(n),Ht(s)&&i?Object.defineProperty(e,o,{enumerable:!0,configurable:!0,get:()=>s.value,set:t=>s.value=t}):e[o]=s}}function Cr(t,e,n){fe(Object(r["o"])(t)?t.map(t=>t.bind(e.proxy)):t.bind(e.proxy),e,n)}function Rr(t,e,n,i){const o=i.includes(".")?On(n,i):()=>n[i];if(Object(r["E"])(t)){const n=e[t];Object(r["q"])(n)&&Ln(o,n)}else if(Object(r["q"])(t))Ln(o,t.bind(n));else if(Object(r["w"])(t))if(Object(r["o"])(t))t.forEach(t=>Rr(t,e,n,i));else{const i=Object(r["q"])(t.handler)?t.handler.bind(n):e[t.handler];Object(r["q"])(i)&&Ln(o,i,t)}else 0}function Yr(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:i,optionsCache:o,config:{optionMergeStrategies:s}}=t.appContext,a=o.get(e);let u;return a?u=a:i.length||n||r?(u={},i.length&&i.forEach(t=>Br(u,t,s,!0)),Br(u,e,s)):u=e,o.set(e,u),u}function Br(t,e,n,r=!1){const{mixins:i,extends:o}=e;o&&Br(t,o,n,!0),i&&i.forEach(e=>Br(t,e,n,!0));for(const s in e)if(r&&"expose"===s);else{const r=zr[s]||n&&n[s];t[s]=r?r(t[s],e[s]):e[s]}return t}const zr={data:Ur,props:qr,emits:qr,methods:qr,computed:qr,beforeCreate:Fr,created:Fr,beforeMount:Fr,mounted:Fr,beforeUpdate:Fr,updated:Fr,beforeDestroy:Fr,beforeUnmount:Fr,destroyed:Fr,unmounted:Fr,activated:Fr,deactivated:Fr,errorCaptured:Fr,serverPrefetch:Fr,components:qr,directives:qr,watch:Vr,provide:Ur,inject:Wr};function Ur(t,e){return e?t?function(){return Object(r["h"])(Object(r["q"])(t)?t.call(this,this):t,Object(r["q"])(e)?e.call(this,this):e)}:e:t}function Wr(t,e){return qr(Hr(t),Hr(e))}function Hr(t){if(Object(r["o"])(t)){const e={};for(let n=0;n0)||16&a){let i;Qr(t,e,o,s)&&(l=!0);for(const s in u)e&&(Object(r["k"])(e,s)||(i=Object(r["l"])(s))!==s&&Object(r["k"])(e,i))||(c?!n||void 0===n[s]&&void 0===n[i]||(o[s]=Zr(c,u,s,void 0,t,!0)):delete o[s]);if(s!==u)for(const t in s)e&&Object(r["k"])(e,t)||(delete s[t],l=!0)}else if(8&a){const n=t.vnode.dynamicProps;for(let i=0;i{c=!0;const[n,i]=Jr(t,e,!0);Object(r["h"])(a,n),i&&u.push(...i)};!n&&e.mixins.length&&e.mixins.forEach(i),t.extends&&i(t.extends),t.mixins&&t.mixins.forEach(i)}if(!s&&!c)return i.set(t,r["a"]),r["a"];if(Object(r["o"])(s))for(let h=0;h-1,i[1]=n<0||t-1||Object(r["k"])(i,"default"))&&u.push(e)}}}}const l=[a,u];return i.set(t,l),l}function $r(t){return"$"!==t[0]}function Xr(t){const e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:null===t?"null":""}function ti(t,e){return Xr(t)===Xr(e)}function ei(t,e){return Object(r["o"])(e)?e.findIndex(e=>ti(e,t)):Object(r["q"])(e)&&ti(e,t)?0:-1}const ni=t=>"_"===t[0]||"$stable"===t,ri=t=>Object(r["o"])(t)?t.map(ao):[ao(t)],ii=(t,e,n)=>{if(e._n)return e;const r=tn((...t)=>ri(e(...t)),n);return r._c=!1,r},oi=(t,e,n)=>{const i=t._ctx;for(const o in t){if(ni(o))continue;const n=t[o];if(Object(r["q"])(n))e[o]=ii(o,n,i);else if(null!=n){0;const t=ri(n);e[o]=()=>t}}},si=(t,e)=>{const n=ri(e);t.slots.default=()=>n},ai=(t,e)=>{if(32&t.vnode.shapeFlag){const n=e._;n?(t.slots=Rt(e),Object(r["g"])(e,"_",n)):oi(e,t.slots={})}else t.slots={},e&&si(t,e);Object(r["g"])(t.slots,Zi,1)},ui=(t,e,n)=>{const{vnode:i,slots:o}=t;let s=!0,a=r["b"];if(32&i.shapeFlag){const t=e._;t?n&&1===t?s=!1:(Object(r["h"])(o,e),n||1!==t||delete o._):(s=!e.$stable,oi(e,o)),a=e}else e&&(si(t,e),a={default:1});if(s)for(const r in o)ni(r)||r in a||delete o[r]};function ci(){return{app:null,config:{isNativeTag:r["c"],performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let li=0;function hi(t,e){return function(n,i=null){Object(r["q"])(n)||(n=Object.assign({},n)),null==i||Object(r["w"])(i)||(i=null);const o=ci(),s=new Set;let a=!1;const u=o.app={_uid:li++,_component:n,_props:i,_container:null,_context:o,_instance:null,version:es,get config(){return o.config},set config(t){0},use(t,...e){return s.has(t)||(t&&Object(r["q"])(t.install)?(s.add(t),t.install(u,...e)):Object(r["q"])(t)&&(s.add(t),t(u,...e))),u},mixin(t){return o.mixins.includes(t)||o.mixins.push(t),u},component(t,e){return e?(o.components[t]=e,u):o.components[t]},directive(t,e){return e?(o.directives[t]=e,u):o.directives[t]},mount(r,s,c){if(!a){0;const l=to(n,i);return l.appContext=o,s&&e?e(l,r):t(l,r,c),a=!0,u._container=r,r.__vue_app__=u,Io(l.component)||l.component.proxy}},unmount(){a&&(t(null,u._container),delete u._container.__vue_app__)},provide(t,e){return o.provides[t]=e,u}};return u}}function di(t,e,n,i,o=!1){if(Object(r["o"])(t))return void t.forEach((t,s)=>di(t,e&&(Object(r["o"])(e)?e[s]:e),n,i,o));if(Hn(i)&&!o)return;const s=4&i.shapeFlag?Io(i.component)||i.component.proxy:i.el,a=o?null:s,{i:u,r:c}=t;const l=e&&e.r,h=u.refs===r["b"]?u.refs={}:u.refs,d=u.setupState;if(null!=l&&l!==c&&(Object(r["E"])(l)?(h[l]=null,Object(r["k"])(d,l)&&(d[l]=null)):Ht(l)&&(l.value=null)),Object(r["q"])(c))de(c,u,12,[a,h]);else{const e=Object(r["E"])(c),i=Ht(c);if(e||i){const u=()=>{if(t.f){const n=e?h[c]:c.value;o?Object(r["o"])(n)&&Object(r["M"])(n,s):Object(r["o"])(n)?n.includes(s)||n.push(s):e?(h[c]=[s],Object(r["k"])(d,c)&&(d[c]=h[c])):(c.value=[s],t.k&&(h[t.k]=c.value))}else e?(h[c]=a,Object(r["k"])(d,c)&&(d[c]=a)):i&&(c.value=a,t.k&&(h[t.k]=a))};a?(u.id=-1,bi(u,n)):u()}else 0}}let fi=!1;const pi=t=>/svg/.test(t.namespaceURI)&&"foreignObject"!==t.tagName,mi=t=>8===t.nodeType;function gi(t){const{mt:e,p:n,o:{patchProp:i,createText:o,nextSibling:s,parentNode:a,remove:u,insert:c,createComment:l}}=t,h=(t,e)=>{if(!e.hasChildNodes())return n(null,t,e),Ye(),void(e._vnode=t);fi=!1,d(e.firstChild,t,null,null,null),Ye(),e._vnode=t,fi&&console.error("Hydration completed but contains mismatches.")},d=(n,r,i,u,l,h=!1)=>{const b=mi(n)&&"["===n.data,v=()=>g(n,r,i,u,l,b),{type:_,ref:w,shapeFlag:M,patchFlag:S}=r,A=n.nodeType;r.el=n,-2===S&&(h=!1,r.dynamicChildren=null);let k=null;switch(_){case Ni:3!==A?""===r.children?(c(r.el=o(""),a(n),n),k=n):k=v():(n.data!==r.children&&(fi=!0,n.data=r.children),k=s(n));break;case Pi:k=8!==A||b?v():s(n);break;case Ci:if(1===A||3===A){k=n;const t=!r.children.length;for(let e=0;e{a=a||!!e.dynamicChildren;const{type:c,props:l,patchFlag:h,shapeFlag:d,dirs:f}=e,m="input"===c&&f||"option"===c;if(m||-1!==h){if(f&&mr(e,null,n,"created"),l)if(m||!a||48&h)for(const e in l)(m&&e.endsWith("value")||Object(r["x"])(e)&&!Object(r["A"])(e))&&i(t,e,null,l[e],!1,void 0,n);else l.onClick&&i(t,"onClick",null,l.onClick,!1,void 0,n);let c;if((c=l&&l.onVnodeBeforeMount)&&ho(c,n,e),f&&mr(e,null,n,"beforeMount"),((c=l&&l.onVnodeMounted)||f)&&vn(()=>{c&&ho(c,n,e),f&&mr(e,null,n,"mounted")},o),16&d&&(!l||!l.innerHTML&&!l.textContent)){let r=p(t.firstChild,e,t,n,o,s,a);while(r){fi=!0;const t=r;r=r.nextSibling,u(t)}}else 8&d&&t.textContent!==e.children&&(fi=!0,t.textContent=e.children)}return t.nextSibling},p=(t,e,r,i,o,s,a)=>{a=a||!!e.dynamicChildren;const u=e.children,c=u.length;for(let l=0;l{const{slotScopeIds:u}=e;u&&(i=i?i.concat(u):u);const h=a(t),d=p(s(t),e,h,n,r,i,o);return d&&mi(d)&&"]"===d.data?s(e.anchor=d):(fi=!0,c(e.anchor=l("]"),h,d),d)},g=(t,e,r,i,o,c)=>{if(fi=!0,e.el=null,c){const e=y(t);while(1){const n=s(t);if(!n||n===e)break;u(n)}}const l=s(t),h=a(t);return u(t),n(null,e,h,l,r,i,pi(h),o),l},y=t=>{let e=0;while(t)if(t=s(t),t&&mi(t)&&("["===t.data&&e++,"]"===t.data)){if(0===e)return s(t);e--}return t};return[h,d]}function yi(){}const bi=vn;function vi(t){return wi(t)}function _i(t){return wi(t,gi)}function wi(t,e){yi();const n=Object(r["i"])();n.__VUE__=!0;const{insert:i,remove:o,patchProp:s,createElement:a,createText:u,createComment:c,setText:l,setElementText:h,parentNode:d,nextSibling:f,setScopeId:p=r["d"],cloneNode:m,insertStaticContent:g}=t,y=(t,e,n,r=null,i=null,o=null,s=!1,a=null,u=!!e.dynamicChildren)=>{if(t===e)return;t&&!Gi(t,e)&&(r=G(t),H(t,i,o,!0),t=null),-2===e.patchFlag&&(u=!1,e.dynamicChildren=null);const{type:c,ref:l,shapeFlag:h}=e;switch(c){case Ni:b(t,e,n,r);break;case Pi:v(t,e,n,r);break;case Ci:null==t&&_(e,n,r,s);break;case ji:j(t,e,n,r,i,o,s,a,u);break;default:1&h?A(t,e,n,r,i,o,s,a,u):6&h?N(t,e,n,r,i,o,s,a,u):(64&h||128&h)&&c.process(t,e,n,r,i,o,s,a,u,Z)}null!=l&&i&&di(l,t&&t.ref,o,e||t,!e)},b=(t,e,n,r)=>{if(null==t)i(e.el=u(e.children),n,r);else{const n=e.el=t.el;e.children!==t.children&&l(n,e.children)}},v=(t,e,n,r)=>{null==t?i(e.el=c(e.children||""),n,r):e.el=t.el},_=(t,e,n,r)=>{[t.el,t.anchor]=g(t.children,e,n,r,t.el,t.anchor)},w=({el:t,anchor:e},n,r)=>{let o;while(t&&t!==e)o=f(t),i(t,n,r),t=o;i(e,n,r)},S=({el:t,anchor:e})=>{let n;while(t&&t!==e)n=f(t),o(t),t=n;o(e)},A=(t,e,n,r,i,o,s,a,u)=>{s=s||"svg"===e.type,null==t?k(e,n,r,i,o,s,a,u):O(t,e,i,o,s,a,u)},k=(t,e,n,o,u,c,l,d)=>{let f,p;const{type:g,props:y,shapeFlag:b,transition:v,patchFlag:_,dirs:w}=t;if(t.el&&void 0!==m&&-1===_)f=t.el=m(t.el);else{if(f=t.el=a(t.type,c,y&&y.is,y),8&b?h(f,t.children):16&b&&L(t.children,f,null,o,u,c&&"foreignObject"!==g,l,d),w&&mr(t,null,o,"created"),y){for(const e in y)"value"===e||Object(r["A"])(e)||s(f,e,null,y[e],c,t.children,o,u,K);"value"in y&&s(f,"value",null,y.value),(p=y.onVnodeBeforeMount)&&ho(p,o,t)}E(f,t,t.scopeId,l,o)}w&&mr(t,null,o,"beforeMount");const M=(!u||u&&!u.pendingBranch)&&v&&!v.persisted;M&&v.beforeEnter(f),i(f,e,n),((p=y&&y.onVnodeMounted)||M||w)&&bi(()=>{p&&ho(p,o,t),M&&v.enter(f),w&&mr(t,null,o,"mounted")},u)},E=(t,e,n,r,i)=>{if(n&&p(t,n),r)for(let o=0;o{for(let c=u;c{const c=e.el=t.el;let{patchFlag:l,dynamicChildren:d,dirs:f}=e;l|=16&t.patchFlag;const p=t.props||r["b"],m=e.props||r["b"];let g;n&&Mi(n,!1),(g=m.onVnodeBeforeUpdate)&&ho(g,n,e,t),f&&mr(e,t,n,"beforeUpdate"),n&&Mi(n,!0);const y=o&&"foreignObject"!==e.type;if(d?x(t.dynamicChildren,d,c,n,i,y,a):u||B(t,e,c,null,n,i,y,a,!1),l>0){if(16&l)I(c,e,p,m,n,i,o);else if(2&l&&p.class!==m.class&&s(c,"class",null,m.class,o),4&l&&s(c,"style",p.style,m.style,o),8&l){const r=e.dynamicProps;for(let e=0;e{g&&ho(g,n,e,t),f&&mr(e,t,n,"updated")},i)},x=(t,e,n,r,i,o,s)=>{for(let a=0;a{if(n!==i){for(const c in i){if(Object(r["A"])(c))continue;const l=i[c],h=n[c];l!==h&&"value"!==c&&s(t,c,h,l,u,e.children,o,a,K)}if(n!==r["b"])for(const c in n)Object(r["A"])(c)||c in i||s(t,c,n[c],null,u,e.children,o,a,K);"value"in i&&s(t,"value",n.value,i.value)}},j=(t,e,n,r,o,s,a,c,l)=>{const h=e.el=t?t.el:u(""),d=e.anchor=t?t.anchor:u("");let{patchFlag:f,dynamicChildren:p,slotScopeIds:m}=e;m&&(c=c?c.concat(m):m),null==t?(i(h,n,r),i(d,n,r),L(e.children,n,d,o,s,a,c,l)):f>0&&64&f&&p&&t.dynamicChildren?(x(t.dynamicChildren,p,n,o,s,a,c),(null!=e.key||o&&e===o.subTree)&&Si(t,e,!0)):B(t,e,n,d,o,s,a,c,l)},N=(t,e,n,r,i,o,s,a,u)=>{e.slotScopeIds=a,null==t?512&e.shapeFlag?i.ctx.activate(e,n,r,s,u):P(e,n,r,i,o,s,u):C(t,e,u)},P=(t,e,n,r,i,o,s)=>{const a=t.component=mo(t,r,i);if(Vn(t)&&(a.ctx.renderer=Z),Ao(a),a.asyncDep){if(i&&i.registerDep(a,R),!t.el){const t=a.subTree=to(Pi);v(null,t,e,n)}}else R(a,t,e,n,i,o,s)},C=(t,e,n)=>{const r=e.component=t.component;if(sn(t,e,n)){if(r.asyncDep&&!r.asyncResolved)return void Y(r,e,n);r.next=e,je(r.update),r.update()}else e.el=t.el,r.vnode=e},R=(t,e,n,i,o,s,a)=>{const u=()=>{if(t.isMounted){let e,{next:n,bu:i,u:u,parent:c,vnode:l}=t,h=n;0,Mi(t,!1),n?(n.el=l.el,Y(t,n,a)):n=l,i&&Object(r["n"])(i),(e=n.props&&n.props.onVnodeBeforeUpdate)&&ho(e,c,n,l),Mi(t,!0);const f=en(t);0;const p=t.subTree;t.subTree=f,y(p,f,d(p.el),G(p),t,o,s),n.el=f.el,null===h&&un(t,f.el),u&&bi(u,o),(e=n.props&&n.props.onVnodeUpdated)&&bi(()=>ho(e,c,n,l),o)}else{let a;const{el:u,props:c}=e,{bm:l,m:h,parent:d}=t,f=Hn(e);if(Mi(t,!1),l&&Object(r["n"])(l),!f&&(a=c&&c.onVnodeBeforeMount)&&ho(a,d,e),Mi(t,!0),u&&$){const n=()=>{t.subTree=en(t),$(u,t.subTree,t,o,null)};f?e.type.__asyncLoader().then(()=>!t.isUnmounted&&n()):n()}else{0;const r=t.subTree=en(t);0,y(null,r,n,i,t,o,s),e.el=r.el}if(h&&bi(h,o),!f&&(a=c&&c.onVnodeMounted)){const t=e;bi(()=>ho(a,d,t),o)}(256&e.shapeFlag||d&&Hn(d.vnode)&&256&d.vnode.shapeFlag)&&t.a&&bi(t.a,o),t.isMounted=!0,e=n=i=null}},c=t.effect=new M(u,()=>xe(l),t.scope),l=t.update=()=>c.run();l.id=t.uid,Mi(t,!0),l()},Y=(t,e,n)=>{e.component=t;const r=t.vnode.props;t.vnode=e,t.next=null,Gr(t,e.props,r,n),ui(t,e.children,n),D(),Re(void 0,t.update),T()},B=(t,e,n,r,i,o,s,a,u=!1)=>{const c=t&&t.children,l=t?t.shapeFlag:0,d=e.children,{patchFlag:f,shapeFlag:p}=e;if(f>0){if(128&f)return void U(c,d,n,r,i,o,s,a,u);if(256&f)return void z(c,d,n,r,i,o,s,a,u)}8&p?(16&l&&K(c,i,o),d!==c&&h(n,d)):16&l?16&p?U(c,d,n,r,i,o,s,a,u):K(c,i,o,!0):(8&l&&h(n,""),16&p&&L(d,n,r,i,o,s,a,u))},z=(t,e,n,i,o,s,a,u,c)=>{t=t||r["a"],e=e||r["a"];const l=t.length,h=e.length,d=Math.min(l,h);let f;for(f=0;fh?K(t,o,s,!0,!1,d):L(e,n,i,o,s,a,u,c,d)},U=(t,e,n,i,o,s,a,u,c)=>{let l=0;const h=e.length;let d=t.length-1,f=h-1;while(l<=d&&l<=f){const r=t[l],i=e[l]=c?uo(e[l]):ao(e[l]);if(!Gi(r,i))break;y(r,i,n,null,o,s,a,u,c),l++}while(l<=d&&l<=f){const r=t[d],i=e[f]=c?uo(e[f]):ao(e[f]);if(!Gi(r,i))break;y(r,i,n,null,o,s,a,u,c),d--,f--}if(l>d){if(l<=f){const t=f+1,r=tf)while(l<=d)H(t[l],o,s,!0),l++;else{const p=l,m=l,g=new Map;for(l=m;l<=f;l++){const t=e[l]=c?uo(e[l]):ao(e[l]);null!=t.key&&g.set(t.key,l)}let b,v=0;const _=f-m+1;let w=!1,M=0;const S=new Array(_);for(l=0;l<_;l++)S[l]=0;for(l=p;l<=d;l++){const r=t[l];if(v>=_){H(r,o,s,!0);continue}let i;if(null!=r.key)i=g.get(r.key);else for(b=m;b<=f;b++)if(0===S[b-m]&&Gi(r,e[b])){i=b;break}void 0===i?H(r,o,s,!0):(S[i-m]=l+1,i>=M?M=i:w=!0,y(r,e[i],n,null,o,s,a,u,c),v++)}const A=w?Ai(S):r["a"];for(b=A.length-1,l=_-1;l>=0;l--){const t=m+l,r=e[t],d=t+1{const{el:s,type:a,transition:u,children:c,shapeFlag:l}=t;if(6&l)return void W(t.component.subTree,e,n,r);if(128&l)return void t.suspense.move(e,n,r);if(64&l)return void a.move(t,e,n,Z);if(a===ji){i(s,e,n);for(let t=0;tu.enter(s),o);else{const{leave:t,delayLeave:r,afterLeave:o}=u,a=()=>i(s,e,n),c=()=>{t(s,()=>{a(),o&&o()})};r?r(s,a,c):c()}else i(s,e,n)},H=(t,e,n,r=!1,i=!1)=>{const{type:o,props:s,ref:a,children:u,dynamicChildren:c,shapeFlag:l,patchFlag:h,dirs:d}=t;if(null!=a&&di(a,null,n,t,!0),256&l)return void e.ctx.deactivate(t);const f=1&l&&d,p=!Hn(t);let m;if(p&&(m=s&&s.onVnodeBeforeUnmount)&&ho(m,e,t),6&l)V(t.component,n,r);else{if(128&l)return void t.suspense.unmount(n,r);f&&mr(t,null,e,"beforeUnmount"),64&l?t.type.remove(t,e,n,i,Z,r):c&&(o!==ji||h>0&&64&h)?K(c,e,n,!1,!0):(o===ji&&384&h||!i&&16&l)&&K(u,e,n),r&&F(t)}(p&&(m=s&&s.onVnodeUnmounted)||f)&&bi(()=>{m&&ho(m,e,t),f&&mr(t,null,e,"unmounted")},n)},F=t=>{const{type:e,el:n,anchor:r,transition:i}=t;if(e===ji)return void q(n,r);if(e===Ci)return void S(t);const s=()=>{o(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&t.shapeFlag&&i&&!i.persisted){const{leave:e,delayLeave:r}=i,o=()=>e(n,s);r?r(t.el,s,o):o()}else s()},q=(t,e)=>{let n;while(t!==e)n=f(t),o(t),t=n;o(e)},V=(t,e,n)=>{const{bum:i,scope:o,update:s,subTree:a,um:u}=t;i&&Object(r["n"])(i),o.stop(),s&&(s.active=!1,H(a,t,e,n)),u&&bi(u,e),bi(()=>{t.isUnmounted=!0},e),e&&e.pendingBranch&&!e.isUnmounted&&t.asyncDep&&!t.asyncResolved&&t.suspenseId===e.pendingId&&(e.deps--,0===e.deps&&e.resolve())},K=(t,e,n,r=!1,i=!1,o=0)=>{for(let s=o;s6&t.shapeFlag?G(t.component.subTree):128&t.shapeFlag?t.suspense.next():f(t.anchor||t.el),Q=(t,e,n)=>{null==t?e._vnode&&H(e._vnode,null,null,!0):y(e._vnode||null,t,e,null,null,null,n),Ye(),e._vnode=t},Z={p:y,um:H,m:W,r:F,mt:P,mc:L,pc:B,pbc:x,n:G,o:t};let J,$;return e&&([J,$]=e(Z)),{render:Q,hydrate:J,createApp:hi(Q,J)}}function Mi({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function Si(t,e,n=!1){const i=t.children,o=e.children;if(Object(r["o"])(i)&&Object(r["o"])(o))for(let r=0;r>1,t[n[a]]0&&(e[r]=n[o-1]),n[o]=r)}}o=n.length,s=n[o-1];while(o-- >0)n[o]=s,s=e[s];return n}const ki=t=>t.__isTeleport,Ei=t=>t&&(t.disabled||""===t.disabled),Li=t=>"undefined"!==typeof SVGElement&&t instanceof SVGElement,Di=(t,e)=>{const n=t&&t.to;if(Object(r["E"])(n)){if(e){const t=e(n);return t}return null}return n},Ti={__isTeleport:!0,process(t,e,n,r,i,o,s,a,u,c){const{mc:l,pc:h,pbc:d,o:{insert:f,querySelector:p,createText:m,createComment:g}}=c,y=Ei(e.props);let{shapeFlag:b,children:v,dynamicChildren:_}=e;if(null==t){const t=e.el=m(""),c=e.anchor=m("");f(t,n,r),f(c,n,r);const h=e.target=Di(e.props,p),d=e.targetAnchor=m("");h&&(f(d,h),s=s||Li(h));const g=(t,e)=>{16&b&&l(v,t,e,i,o,s,a,u)};y?g(n,c):h&&g(h,d)}else{e.el=t.el;const r=e.anchor=t.anchor,l=e.target=t.target,f=e.targetAnchor=t.targetAnchor,m=Ei(t.props),g=m?n:l,b=m?r:f;if(s=s||Li(l),_?(d(t.dynamicChildren,_,g,i,o,s,a),Si(t,e,!0)):u||h(t,e,g,b,i,o,s,a,!1),y)m||Oi(e,n,r,c,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const t=e.target=Di(e.props,p);t&&Oi(e,t,null,c,0)}else m&&Oi(e,l,f,c,1)}},remove(t,e,n,r,{um:i,o:{remove:o}},s){const{shapeFlag:a,children:u,anchor:c,targetAnchor:l,target:h,props:d}=t;if(h&&o(l),(s||!Ei(d))&&(o(c),16&a))for(let f=0;f0?Yi||r["a"]:null,zi(),Wi>0&&Yi&&Yi.push(t),t}function qi(t,e,n,r,i,o){return Fi(Xi(t,e,n,r,i,o,!0))}function Vi(t,e,n,r,i){return Fi(to(t,e,n,r,i,!0))}function Ki(t){return!!t&&!0===t.__v_isVNode}function Gi(t,e){return t.type===e.type&&t.key===e.key}function Qi(t){Ui=t}const Zi="__vInternal",Ji=({key:t})=>null!=t?t:null,$i=({ref:t,ref_key:e,ref_for:n})=>null!=t?Object(r["E"])(t)||Ht(t)||Object(r["q"])(t)?{i:Ge,r:t,k:e,f:!!n}:t:null;function Xi(t,e=null,n=null,i=0,o=null,s=(t===ji?0:1),a=!1,u=!1){const c={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Ji(e),ref:e&&$i(e),scopeId:Qe,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:i,dynamicProps:o,dynamicChildren:null,appContext:null};return u?(co(c,n),128&s&&t.normalize(c)):n&&(c.shapeFlag|=Object(r["E"])(n)?8:16),Wi>0&&!a&&Yi&&(c.patchFlag>0||6&s)&&32!==c.patchFlag&&Yi.push(c),c}const to=eo;function eo(t,e=null,n=null,i=0,o=null,s=!1){if(t&&t!==vr||(t=Pi),Ki(t)){const r=ro(t,e,!0);return n&&co(r,n),Wi>0&&!s&&Yi&&(6&r.shapeFlag?Yi[Yi.indexOf(t)]=r:Yi.push(r)),r.patchFlag|=-2,r}if(Ro(t)&&(t=t.__vccOpts),e){e=no(e);let{class:t,style:n}=e;t&&!Object(r["E"])(t)&&(e.class=Object(r["J"])(t)),Object(r["w"])(n)&&(Ct(n)&&!Object(r["o"])(n)&&(n=Object(r["h"])({},n)),e.style=Object(r["L"])(n))}const a=Object(r["E"])(t)?1:cn(t)?128:ki(t)?64:Object(r["w"])(t)?4:Object(r["q"])(t)?2:0;return Xi(t,e,n,i,o,a,s,!0)}function no(t){return t?Ct(t)||Zi in t?Object(r["h"])({},t):t:null}function ro(t,e,n=!1){const{props:i,ref:o,patchFlag:s,children:a}=t,u=e?lo(i||{},e):i,c={__v_isVNode:!0,__v_skip:!0,type:t.type,props:u,key:u&&Ji(u),ref:e&&e.ref?n&&o?Object(r["o"])(o)?o.concat($i(e)):[o,$i(e)]:$i(e):o,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:a,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==ji?-1===s?16:16|s:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&ro(t.ssContent),ssFallback:t.ssFallback&&ro(t.ssFallback),el:t.el,anchor:t.anchor};return c}function io(t=" ",e=0){return to(Ni,null,t,e)}function oo(t,e){const n=to(Ci,null,t);return n.staticCount=e,n}function so(t="",e=!1){return e?(Bi(),Vi(Pi,null,t)):to(Pi,null,t)}function ao(t){return null==t||"boolean"===typeof t?to(Pi):Object(r["o"])(t)?to(ji,null,t.slice()):"object"===typeof t?uo(t):to(Ni,null,String(t))}function uo(t){return null===t.el||t.memo?t:ro(t)}function co(t,e){let n=0;const{shapeFlag:i}=t;if(null==e)e=null;else if(Object(r["o"])(e))n=16;else if("object"===typeof e){if(65&i){const n=e.default;return void(n&&(n._c&&(n._d=!1),co(t,n()),n._c&&(n._d=!0)))}{n=32;const r=e._;r||Zi in e?3===r&&Ge&&(1===Ge.slots._?e._=1:(e._=2,t.patchFlag|=1024)):e._ctx=Ge}}else Object(r["q"])(e)?(e={default:e,_ctx:Ge},n=32):(e=String(e),64&i?(n=16,e=[io(e)]):n=8);t.children=e,t.shapeFlag|=n}function lo(...t){const e={};for(let n=0;ngo||Ge,bo=t=>{go=t,t.scope.on()},vo=()=>{go&&go.scope.off(),go=null};function _o(t){return 4&t.vnode.shapeFlag}let wo,Mo,So=!1;function Ao(t,e=!1){So=e;const{props:n,children:r}=t.vnode,i=_o(t);Kr(t,n,i,e),ai(t,r);const o=i?ko(t,e):void 0;return So=!1,o}function ko(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=Yt(new Proxy(t.ctx,xr));const{setup:i}=n;if(i){const n=t.setupContext=i.length>1?xo(t):null;bo(t),D();const o=de(i,t,0,[t.props,n]);if(T(),vo(),Object(r["z"])(o)){if(o.then(vo,vo),e)return o.then(n=>{Eo(t,n,e)}).catch(e=>{pe(e,t,0)});t.asyncDep=o}else Eo(t,o,e)}else To(t,e)}function Eo(t,e,n){Object(r["q"])(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Object(r["w"])(e)&&(t.setupState=Jt(e)),To(t,n)}function Lo(t){wo=t,Mo=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,Ir))}}const Do=()=>!wo;function To(t,e,n){const i=t.type;if(!t.render){if(!e&&wo&&!i.render){const e=i.template;if(e){0;const{isCustomElement:n,compilerOptions:o}=t.appContext.config,{delimiters:s,compilerOptions:a}=i,u=Object(r["h"])(Object(r["h"])({isCustomElement:n,delimiters:s},o),a);i.render=wo(e,u)}}t.render=i.render||r["d"],Mo&&Mo(t)}bo(t),D(),Nr(t),T(),vo()}function Oo(t){return new Proxy(t.attrs,{get(e,n){return O(t,"get","$attrs"),e[n]}})}function xo(t){const e=e=>{t.exposed=e||{}};let n;return{get attrs(){return n||(n=Oo(t))},slots:t.slots,emit:t.emit,expose:e}}function Io(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(Jt(Yt(t.exposed)),{get(e,n){return n in e?e[n]:n in Or?Or[n](t):void 0}}))}const jo=/(?:^|[-_])(\w)/g,No=t=>t.replace(jo,t=>t.toUpperCase()).replace(/[-_]/g,"");function Po(t,e=!0){return Object(r["q"])(t)?t.displayName||t.name:t.name||e&&t.__name}function Co(t,e,n=!1){let r=Po(e);if(!r&&e.__file){const t=e.__file.match(/([^/\\]+)\.\w+$/);t&&(r=t[1])}if(!r&&t&&t.parent){const n=t=>{for(const n in t)if(t[n]===e)return n};r=n(t.components||t.parent.type.components)||n(t.appContext.components)}return r?No(r):n?"App":"Anonymous"}function Ro(t){return Object(r["q"])(t)&&"__vccOpts"in t}const Yo=(t,e)=>ie(t,e,So);function Bo(){return null}function zo(){return null}function Uo(t){0}function Wo(t,e){return null}function Ho(){return qo().slots}function Fo(){return qo().attrs}function qo(){const t=yo();return t.setupContext||(t.setupContext=xo(t))}function Vo(t,e){const n=Object(r["o"])(t)?t.reduce((t,e)=>(t[e]={},t),{}):t;for(const i in e){const t=n[i];t?Object(r["o"])(t)||Object(r["q"])(t)?n[i]={type:t,default:e[i]}:t.default=e[i]:null===t&&(n[i]={default:e[i]})}return n}function Ko(t,e){const n={};for(const r in t)e.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>t[r]});return n}function Go(t){const e=yo();let n=t();return vo(),Object(r["z"])(n)&&(n=n.catch(t=>{throw bo(e),t})),[n,()=>bo(e)]}function Qo(t,e,n){const i=arguments.length;return 2===i?Object(r["w"])(e)&&!Object(r["o"])(e)?Ki(e)?to(t,null,[e]):to(t,e):to(t,null,e):(i>3?n=Array.prototype.slice.call(arguments,2):3===i&&Ki(n)&&(n=[n]),to(t,e,n))}const Zo=Symbol(""),Jo=()=>{{const t=Mn(Zo);return t||se("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),t}};function $o(){return void 0}function Xo(t,e,n,r){const i=n[r];if(i&&ts(i,t))return i;const o=e();return o.memo=t.slice(),n[r]=o}function ts(t,e){const n=t.memo;if(n.length!=e.length)return!1;for(let i=0;i0&&Yi&&Yi.push(t),!0}const es="3.2.37",ns={createComponentInstance:mo,setupComponent:Ao,renderComponentRoot:en,setCurrentRenderingInstance:Ze,isVNode:Ki,normalizeVNode:ao},rs=ns,is=null,os=null,ss="http://www.w3.org/2000/svg",as="undefined"!==typeof document?document:null,us=as&&as.createElement("template"),cs={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const i=e?as.createElementNS(ss,t):as.createElement(t,n?{is:n}:void 0);return"select"===t&&r&&null!=r.multiple&&i.setAttribute("multiple",r.multiple),i},createText:t=>as.createTextNode(t),createComment:t=>as.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>as.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},cloneNode(t){const e=t.cloneNode(!0);return"_value"in t&&(e._value=t._value),e},insertStaticContent(t,e,n,r,i,o){const s=n?n.previousSibling:e.lastChild;if(i&&(i===o||i.nextSibling)){while(1)if(e.insertBefore(i.cloneNode(!0),n),i===o||!(i=i.nextSibling))break}else{us.innerHTML=r?`${t}`:t;const i=us.content;if(r){const t=i.firstChild;while(t.firstChild)i.appendChild(t.firstChild);i.removeChild(t)}e.insertBefore(i,n)}return[s?s.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}};function ls(t,e,n){const r=t._vtc;r&&(e=(e?[e,...r]:[...r]).join(" ")),null==e?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}function hs(t,e,n){const i=t.style,o=Object(r["E"])(n);if(n&&!o){for(const t in n)fs(i,t,n[t]);if(e&&!Object(r["E"])(e))for(const t in e)null==n[t]&&fs(i,t,"")}else{const r=i.display;o?e!==n&&(i.cssText=n):e&&t.removeAttribute("style"),"_vod"in t&&(i.display=r)}}const ds=/\s*!important$/;function fs(t,e,n){if(Object(r["o"])(n))n.forEach(n=>fs(t,e,n));else if(null==n&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const i=gs(t,e);ds.test(n)?t.setProperty(Object(r["l"])(i),n.replace(ds,""),"important"):t[i]=n}}const ps=["Webkit","Moz","ms"],ms={};function gs(t,e){const n=ms[e];if(n)return n;let i=Object(r["e"])(e);if("filter"!==i&&i in t)return ms[e]=i;i=Object(r["f"])(i);for(let r=0;r{let t=Date.now,e=!1;if("undefined"!==typeof window){Date.now()>document.createEvent("Event").timeStamp&&(t=performance.now.bind(performance));const n=navigator.userAgent.match(/firefox\/(\d+)/i);e=!!(n&&Number(n[1])<=53)}return[t,e]})();let Ms=0;const Ss=Promise.resolve(),As=()=>{Ms=0},ks=()=>Ms||(Ss.then(As),Ms=_s());function Es(t,e,n,r){t.addEventListener(e,n,r)}function Ls(t,e,n,r){t.removeEventListener(e,n,r)}function Ds(t,e,n,r,i=null){const o=t._vei||(t._vei={}),s=o[e];if(r&&s)s.value=r;else{const[n,a]=Os(e);if(r){const s=o[e]=xs(r,i);Es(t,n,s,a)}else s&&(Ls(t,n,s,a),o[e]=void 0)}}const Ts=/(?:Once|Passive|Capture)$/;function Os(t){let e;if(Ts.test(t)){let n;e={};while(n=t.match(Ts))t=t.slice(0,t.length-n[0].length),e[n[0].toLowerCase()]=!0}return[Object(r["l"])(t.slice(2)),e]}function xs(t,e){const n=t=>{const r=t.timeStamp||_s();(ws||r>=n.attached-1)&&fe(Is(t,n.value),e,5,[t])};return n.value=t,n.attached=ks(),n}function Is(t,e){if(Object(r["o"])(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(t=>e=>!e._stopped&&t&&t(e))}return e}const js=/^on[a-z]/,Ns=(t,e,n,i,o=!1,s,a,u,c)=>{"class"===e?ls(t,i,o):"style"===e?hs(t,n,i):Object(r["x"])(e)?Object(r["v"])(e)||Ds(t,e,n,i,a):("."===e[0]?(e=e.slice(1),1):"^"===e[0]?(e=e.slice(1),0):Ps(t,e,i,o))?vs(t,e,i,s,a,u,c):("true-value"===e?t._trueValue=i:"false-value"===e&&(t._falseValue=i),bs(t,e,i,o))};function Ps(t,e,n,i){return i?"innerHTML"===e||"textContent"===e||!!(e in t&&js.test(e)&&Object(r["q"])(n)):"spellcheck"!==e&&"draggable"!==e&&"translate"!==e&&("form"!==e&&(("list"!==e||"INPUT"!==t.tagName)&&(("type"!==e||"TEXTAREA"!==t.tagName)&&((!js.test(e)||!Object(r["E"])(n))&&e in t))))}function Cs(t,e){const n=Wn(t);class r extends Bs{constructor(t){super(n,t,e)}}return r.def=n,r}const Rs=t=>Cs(t,Va),Ys="undefined"!==typeof HTMLElement?HTMLElement:class{};class Bs extends Ys{constructor(t,e={},n){super(),this._def=t,this._props=e,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):this.attachShadow({mode:"open"})}connectedCallback(){this._connected=!0,this._instance||this._resolveDef()}disconnectedCallback(){this._connected=!1,Te(()=>{this._connected||(qa(null,this.shadowRoot),this._instance=null)})}_resolveDef(){if(this._resolved)return;this._resolved=!0;for(let n=0;n{for(const e of t)this._setAttr(e.attributeName)}).observe(this,{attributes:!0});const t=t=>{const{props:e,styles:n}=t,i=!Object(r["o"])(e),o=e?i?Object.keys(e):e:[];let s;if(i)for(const a in this._props){const t=e[a];(t===Number||t&&t.type===Number)&&(this._props[a]=Object(r["P"])(this._props[a]),(s||(s=Object.create(null)))[a]=!0)}this._numberProps=s;for(const r of Object.keys(this))"_"!==r[0]&&this._setProp(r,this[r],!0,!1);for(const a of o.map(r["e"]))Object.defineProperty(this,a,{get(){return this._getProp(a)},set(t){this._setProp(a,t)}});this._applyStyles(n),this._update()},e=this._def.__asyncLoader;e?e().then(t):t(this._def)}_setAttr(t){let e=this.getAttribute(t);this._numberProps&&this._numberProps[t]&&(e=Object(r["P"])(e)),this._setProp(Object(r["e"])(t),e,!1)}_getProp(t){return this._props[t]}_setProp(t,e,n=!0,i=!0){e!==this._props[t]&&(this._props[t]=e,i&&this._instance&&this._update(),n&&(!0===e?this.setAttribute(Object(r["l"])(t),""):"string"===typeof e||"number"===typeof e?this.setAttribute(Object(r["l"])(t),e+""):e||this.removeAttribute(Object(r["l"])(t))))}_update(){qa(this._createVNode(),this.shadowRoot)}_createVNode(){const t=to(this._def,Object(r["h"])({},this._props));return this._instance||(t.ce=t=>{this._instance=t,t.isCE=!0,t.emit=(t,...e)=>{this.dispatchEvent(new CustomEvent(t,{detail:e}))};let e=this;while(e=e&&(e.parentNode||e.host))if(e instanceof Bs){t.parent=e._instance;break}}),t}_applyStyles(t){t&&t.forEach(t=>{const e=document.createElement("style");e.textContent=t,this.shadowRoot.appendChild(e)})}}function zs(t="$style"){{const e=yo();if(!e)return r["b"];const n=e.type.__cssModules;if(!n)return r["b"];const i=n[t];return i||r["b"]}}function Us(t){const e=yo();if(!e)return;const n=()=>Ws(e.subTree,t(e.proxy));An(n),or(()=>{const t=new MutationObserver(n);t.observe(e.subTree.el.parentNode,{childList:!0}),cr(()=>t.disconnect())})}function Ws(t,e){if(128&t.shapeFlag){const n=t.suspense;t=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Ws(n.activeBranch,e)})}while(t.component)t=t.component.subTree;if(1&t.shapeFlag&&t.el)Hs(t.el,e);else if(t.type===ji)t.children.forEach(t=>Ws(t,e));else if(t.type===Ci){let{el:n,anchor:r}=t;while(n){if(Hs(n,e),n===r)break;n=n.nextSibling}}}function Hs(t,e){if(1===t.nodeType){const n=t.style;for(const t in e)n.setProperty("--"+t,e[t])}}const Fs="transition",qs="animation",Vs=(t,{slots:e})=>Qo(Pn,Js(t),e);Vs.displayName="Transition";const Ks={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Gs=Vs.props=Object(r["h"])({},Pn.props,Ks),Qs=(t,e=[])=>{Object(r["o"])(t)?t.forEach(t=>t(...e)):t&&t(...e)},Zs=t=>!!t&&(Object(r["o"])(t)?t.some(t=>t.length>1):t.length>1);function Js(t){const e={};for(const r in t)r in Ks||(e[r]=t[r]);if(!1===t.css)return e;const{name:n="v",type:i,duration:o,enterFromClass:s=n+"-enter-from",enterActiveClass:a=n+"-enter-active",enterToClass:u=n+"-enter-to",appearFromClass:c=s,appearActiveClass:l=a,appearToClass:h=u,leaveFromClass:d=n+"-leave-from",leaveActiveClass:f=n+"-leave-active",leaveToClass:p=n+"-leave-to"}=t,m=$s(o),g=m&&m[0],y=m&&m[1],{onBeforeEnter:b,onEnter:v,onEnterCancelled:_,onLeave:w,onLeaveCancelled:M,onBeforeAppear:S=b,onAppear:A=v,onAppearCancelled:k=_}=e,E=(t,e,n)=>{ea(t,e?h:u),ea(t,e?l:a),n&&n()},L=(t,e)=>{t._isLeaving=!1,ea(t,d),ea(t,p),ea(t,f),e&&e()},D=t=>(e,n)=>{const r=t?A:v,o=()=>E(e,t,n);Qs(r,[e,o]),na(()=>{ea(e,t?c:s),ta(e,t?h:u),Zs(r)||ia(e,i,g,o)})};return Object(r["h"])(e,{onBeforeEnter(t){Qs(b,[t]),ta(t,s),ta(t,a)},onBeforeAppear(t){Qs(S,[t]),ta(t,c),ta(t,l)},onEnter:D(!1),onAppear:D(!0),onLeave(t,e){t._isLeaving=!0;const n=()=>L(t,e);ta(t,d),ua(),ta(t,f),na(()=>{t._isLeaving&&(ea(t,d),ta(t,p),Zs(w)||ia(t,i,y,n))}),Qs(w,[t,n])},onEnterCancelled(t){E(t,!1),Qs(_,[t])},onAppearCancelled(t){E(t,!0),Qs(k,[t])},onLeaveCancelled(t){L(t),Qs(M,[t])}})}function $s(t){if(null==t)return null;if(Object(r["w"])(t))return[Xs(t.enter),Xs(t.leave)];{const e=Xs(t);return[e,e]}}function Xs(t){const e=Object(r["P"])(t);return e}function ta(t,e){e.split(/\s+/).forEach(e=>e&&t.classList.add(e)),(t._vtc||(t._vtc=new Set)).add(e)}function ea(t,e){e.split(/\s+/).forEach(e=>e&&t.classList.remove(e));const{_vtc:n}=t;n&&(n.delete(e),n.size||(t._vtc=void 0))}function na(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let ra=0;function ia(t,e,n,r){const i=t._endId=++ra,o=()=>{i===t._endId&&r()};if(n)return setTimeout(o,n);const{type:s,timeout:a,propCount:u}=oa(t,e);if(!s)return r();const c=s+"end";let l=0;const h=()=>{t.removeEventListener(c,d),o()},d=e=>{e.target===t&&++l>=u&&h()};setTimeout(()=>{l(n[t]||"").split(", "),i=r(Fs+"Delay"),o=r(Fs+"Duration"),s=sa(i,o),a=r(qs+"Delay"),u=r(qs+"Duration"),c=sa(a,u);let l=null,h=0,d=0;e===Fs?s>0&&(l=Fs,h=s,d=o.length):e===qs?c>0&&(l=qs,h=c,d=u.length):(h=Math.max(s,c),l=h>0?s>c?Fs:qs:null,d=l?l===Fs?o.length:u.length:0);const f=l===Fs&&/\b(transform|all)(,|$)/.test(n[Fs+"Property"]);return{type:l,timeout:h,propCount:d,hasTransform:f}}function sa(t,e){while(t.lengthaa(e)+aa(t[n])))}function aa(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function ua(){return document.body.offsetHeight}const ca=new WeakMap,la=new WeakMap,ha={name:"TransitionGroup",props:Object(r["h"])({},Gs,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=yo(),r=In();let i,o;return ar(()=>{if(!i.length)return;const e=t.moveClass||(t.name||"v")+"-move";if(!ga(i[0].el,n.vnode.el,e))return;i.forEach(fa),i.forEach(pa);const r=i.filter(ma);ua(),r.forEach(t=>{const n=t.el,r=n.style;ta(n,e),r.transform=r.webkitTransform=r.transitionDuration="";const i=n._moveCb=t=>{t&&t.target!==n||t&&!/transform$/.test(t.propertyName)||(n.removeEventListener("transitionend",i),n._moveCb=null,ea(n,e))};n.addEventListener("transitionend",i)})}),()=>{const s=Rt(t),a=Js(s);let u=s.tag||ji;i=o,o=e.default?Un(e.default()):[];for(let t=0;t{t.split(/\s+/).forEach(t=>t&&r.classList.remove(t))}),n.split(/\s+/).forEach(t=>t&&r.classList.add(t)),r.style.display="none";const i=1===e.nodeType?e:e.parentNode;i.appendChild(r);const{hasTransform:o}=oa(r);return i.removeChild(r),o}const ya=t=>{const e=t.props["onUpdate:modelValue"]||!1;return Object(r["o"])(e)?t=>Object(r["n"])(e,t):e};function ba(t){t.target.composing=!0}function va(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const _a={created(t,{modifiers:{lazy:e,trim:n,number:i}},o){t._assign=ya(o);const s=i||o.props&&"number"===o.props.type;Es(t,e?"change":"input",e=>{if(e.target.composing)return;let i=t.value;n&&(i=i.trim()),s&&(i=Object(r["P"])(i)),t._assign(i)}),n&&Es(t,"change",()=>{t.value=t.value.trim()}),e||(Es(t,"compositionstart",ba),Es(t,"compositionend",va),Es(t,"change",va))},mounted(t,{value:e}){t.value=null==e?"":e},beforeUpdate(t,{value:e,modifiers:{lazy:n,trim:i,number:o}},s){if(t._assign=ya(s),t.composing)return;if(document.activeElement===t&&"range"!==t.type){if(n)return;if(i&&t.value.trim()===e)return;if((o||"number"===t.type)&&Object(r["P"])(t.value)===e)return}const a=null==e?"":e;t.value!==a&&(t.value=a)}},wa={deep:!0,created(t,e,n){t._assign=ya(n),Es(t,"change",()=>{const e=t._modelValue,n=Ea(t),i=t.checked,o=t._assign;if(Object(r["o"])(e)){const t=Object(r["H"])(e,n),s=-1!==t;if(i&&!s)o(e.concat(n));else if(!i&&s){const n=[...e];n.splice(t,1),o(n)}}else if(Object(r["C"])(e)){const t=new Set(e);i?t.add(n):t.delete(n),o(t)}else o(La(t,i))})},mounted:Ma,beforeUpdate(t,e,n){t._assign=ya(n),Ma(t,e,n)}};function Ma(t,{value:e,oldValue:n},i){t._modelValue=e,Object(r["o"])(e)?t.checked=Object(r["H"])(e,i.props.value)>-1:Object(r["C"])(e)?t.checked=e.has(i.props.value):e!==n&&(t.checked=Object(r["G"])(e,La(t,!0)))}const Sa={created(t,{value:e},n){t.checked=Object(r["G"])(e,n.props.value),t._assign=ya(n),Es(t,"change",()=>{t._assign(Ea(t))})},beforeUpdate(t,{value:e,oldValue:n},i){t._assign=ya(i),e!==n&&(t.checked=Object(r["G"])(e,i.props.value))}},Aa={deep:!0,created(t,{value:e,modifiers:{number:n}},i){const o=Object(r["C"])(e);Es(t,"change",()=>{const e=Array.prototype.filter.call(t.options,t=>t.selected).map(t=>n?Object(r["P"])(Ea(t)):Ea(t));t._assign(t.multiple?o?new Set(e):e:e[0])}),t._assign=ya(i)},mounted(t,{value:e}){ka(t,e)},beforeUpdate(t,e,n){t._assign=ya(n)},updated(t,{value:e}){ka(t,e)}};function ka(t,e){const n=t.multiple;if(!n||Object(r["o"])(e)||Object(r["C"])(e)){for(let i=0,o=t.options.length;i-1:o.selected=e.has(s);else if(Object(r["G"])(Ea(o),e))return void(t.selectedIndex!==i&&(t.selectedIndex=i))}n||-1===t.selectedIndex||(t.selectedIndex=-1)}}function Ea(t){return"_value"in t?t._value:t.value}function La(t,e){const n=e?"_trueValue":"_falseValue";return n in t?t[n]:e}const Da={created(t,e,n){Oa(t,e,n,null,"created")},mounted(t,e,n){Oa(t,e,n,null,"mounted")},beforeUpdate(t,e,n,r){Oa(t,e,n,r,"beforeUpdate")},updated(t,e,n,r){Oa(t,e,n,r,"updated")}};function Ta(t,e){switch(t){case"SELECT":return Aa;case"TEXTAREA":return _a;default:switch(e){case"checkbox":return wa;case"radio":return Sa;default:return _a}}}function Oa(t,e,n,r,i){const o=Ta(t.tagName,n.props&&n.props.type),s=o[i];s&&s(t,e,n,r)}function xa(){_a.getSSRProps=({value:t})=>({value:t}),Sa.getSSRProps=({value:t},e)=>{if(e.props&&Object(r["G"])(e.props.value,t))return{checked:!0}},wa.getSSRProps=({value:t},e)=>{if(Object(r["o"])(t)){if(e.props&&Object(r["H"])(t,e.props.value)>-1)return{checked:!0}}else if(Object(r["C"])(t)){if(e.props&&t.has(e.props.value))return{checked:!0}}else if(t)return{checked:!0}},Da.getSSRProps=(t,e)=>{if("string"!==typeof e.type)return;const n=Ta(e.type.toUpperCase(),e.props&&e.props.type);return n.getSSRProps?n.getSSRProps(t,e):void 0}}const Ia=["ctrl","shift","alt","meta"],ja={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&0!==t.button,middle:t=>"button"in t&&1!==t.button,right:t=>"button"in t&&2!==t.button,exact:(t,e)=>Ia.some(n=>t[n+"Key"]&&!e.includes(n))},Na=(t,e)=>(n,...r)=>{for(let t=0;tn=>{if(!("key"in n))return;const i=Object(r["l"])(n.key);return e.some(t=>t===i||Pa[t]===i)?t(n):void 0},Ra={beforeMount(t,{value:e},{transition:n}){t._vod="none"===t.style.display?"":t.style.display,n&&e?n.beforeEnter(t):Ya(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:r}){!e!==!n&&(r?e?(r.beforeEnter(t),Ya(t,!0),r.enter(t)):r.leave(t,()=>{Ya(t,!1)}):Ya(t,e))},beforeUnmount(t,{value:e}){Ya(t,e)}};function Ya(t,e){t.style.display=e?t._vod:"none"}function Ba(){Ra.getSSRProps=({value:t})=>{if(!t)return{style:{display:"none"}}}}const za=Object(r["h"])({patchProp:Ns},cs);let Ua,Wa=!1;function Ha(){return Ua||(Ua=vi(za))}function Fa(){return Ua=Wa?Ua:_i(za),Wa=!0,Ua}const qa=(...t)=>{Ha().render(...t)},Va=(...t)=>{Fa().hydrate(...t)},Ka=(...t)=>{const e=Ha().createApp(...t);const{mount:n}=e;return e.mount=t=>{const i=Qa(t);if(!i)return;const o=e._component;Object(r["q"])(o)||o.render||o.template||(o.template=i.innerHTML),i.innerHTML="";const s=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},e},Ga=(...t)=>{const e=Fa().createApp(...t);const{mount:n}=e;return e.mount=t=>{const e=Qa(t);if(e)return n(e,!0,e instanceof SVGElement)},e};function Qa(t){if(Object(r["E"])(t)){const e=document.querySelector(t);return e}return t}let Za=!1;const Ja=()=>{Za||(Za=!0,xa(),Ba())};const $a=()=>{0}},"7aac":function(t,e,n){"use strict";var r=n("c532");t.exports=r.isStandardBrowserEnv()?function(){return{write:function(t,e,n,i,o,s){var a=[];a.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(i)&&a.push("path="+i),r.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7af1":function(t,e,n){"use strict";var r=n("7a23");function i(t,e){const n=Object(r["ref"])(null);let i=Object(r["ref"])(!1);const o=()=>{let r=n.value;r.getBoundingClientRect().bottom{const e=[];for(let n=0;nt.charAt(0).toUpperCase()+t.slice(1),u=t=>Object.keys(t).map(e=>t[e]),c=t=>Array.prototype.slice.call(t),l=t=>{console.warn(`${o} ${"object"===typeof t?t.join(" "):t}`)},h=t=>{console.error(`${o} ${t}`)},d=[],f=t=>{d.includes(t)||(d.push(t),l(t))},p=(t,e)=>{f(`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`)},m=t=>"function"===typeof t?t():t,g=t=>t&&"function"===typeof t.toPromise,y=t=>g(t)?t.toPromise():Promise.resolve(t),b=t=>t&&Promise.resolve(t)===t,v=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),_=t=>"object"===typeof t&&t.jquery,w=t=>t instanceof Element||_(t),M=t=>{const e={};return"object"!==typeof t[0]||w(t[0])?["title","html","icon"].forEach((n,r)=>{const i=t[r];"string"===typeof i||w(i)?e[n]=i:void 0!==i&&h(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof i}`)}):Object.assign(e,t[0]),e},S="swal2-",A=t=>{const e={};for(const n in t)e[t[n]]=S+t[n];return e},k=A(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","toast-column","show","hide","close","title","header","content","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),E=A(["success","warning","info","question","error"]),L=()=>document.body.querySelector("."+k.container),D=t=>{const e=L();return e?e.querySelector(t):null},T=t=>D("."+t),O=()=>T(k.popup),x=()=>T(k.icon),I=()=>T(k.title),j=()=>T(k.content),N=()=>T(k["html-container"]),P=()=>T(k.image),C=()=>T(k["progress-steps"]),R=()=>T(k["validation-message"]),Y=()=>D(`.${k.actions} .${k.confirm}`),B=()=>D(`.${k.actions} .${k.deny}`),z=()=>T(k["input-label"]),U=()=>D("."+k.loader),W=()=>D(`.${k.actions} .${k.cancel}`),H=()=>T(k.actions),F=()=>T(k.header),q=()=>T(k.footer),V=()=>T(k["timer-progress-bar"]),K=()=>T(k.close),G='\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n',Q=()=>{const t=c(O().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((t,e)=>(t=parseInt(t.getAttribute("tabindex")),e=parseInt(e.getAttribute("tabindex")),t>e?1:t"-1"!==t.getAttribute("tabindex"));return s(t.concat(e)).filter(t=>mt(t))},Z=()=>!J()&&!document.body.classList.contains(k["no-backdrop"]),J=()=>document.body.classList.contains(k["toast-shown"]),$=()=>O().hasAttribute("data-loading"),X={previousBodyPadding:null},tt=(t,e)=>{if(t.textContent="",e){const n=new DOMParser,r=n.parseFromString(e,"text/html");c(r.querySelector("head").childNodes).forEach(e=>{t.appendChild(e)}),c(r.querySelector("body").childNodes).forEach(e=>{t.appendChild(e)})}},et=(t,e)=>{if(!e)return!1;const n=e.split(/\s+/);for(let r=0;r{c(t.classList).forEach(n=>{u(k).includes(n)||u(E).includes(n)||u(e.showClass).includes(n)||t.classList.remove(n)})},rt=(t,e,n)=>{if(nt(t,e),e.customClass&&e.customClass[n]){if("string"!==typeof e.customClass[n]&&!e.customClass[n].forEach)return l(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof e.customClass[n]}"`);at(t,e.customClass[n])}};function it(t,e){if(!e)return null;switch(e){case"select":case"textarea":case"file":return ct(t,k[e]);case"checkbox":return t.querySelector(`.${k.checkbox} input`);case"radio":return t.querySelector(`.${k.radio} input:checked`)||t.querySelector(`.${k.radio} input:first-child`);case"range":return t.querySelector(`.${k.range} input`);default:return ct(t,k.input)}}const ot=t=>{if(t.focus(),"file"!==t.type){const e=t.value;t.value="",t.value=e}},st=(t,e,n)=>{t&&e&&("string"===typeof e&&(e=e.split(/\s+/).filter(Boolean)),e.forEach(e=>{t.forEach?t.forEach(t=>{n?t.classList.add(e):t.classList.remove(e)}):n?t.classList.add(e):t.classList.remove(e)}))},at=(t,e)=>{st(t,e,!0)},ut=(t,e)=>{st(t,e,!1)},ct=(t,e)=>{for(let n=0;n{n===""+parseInt(n)&&(n=parseInt(n)),n||0===parseInt(n)?t.style[e]="number"===typeof n?n+"px":n:t.style.removeProperty(e)},ht=(t,e="flex")=>{t.style.display=e},dt=t=>{t.style.display="none"},ft=(t,e,n,r)=>{const i=t.querySelector(e);i&&(i.style[n]=r)},pt=(t,e,n)=>{e?ht(t,n):dt(t)},mt=t=>!(!t||!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),gt=()=>!mt(Y())&&!mt(B())&&!mt(W()),yt=t=>!!(t.scrollHeight>t.clientHeight),bt=t=>{const e=window.getComputedStyle(t),n=parseFloat(e.getPropertyValue("animation-duration")||"0"),r=parseFloat(e.getPropertyValue("transition-duration")||"0");return n>0||r>0},vt=(t,e)=>{if("function"===typeof t.contains)return t.contains(e)},_t=(t,e=!1)=>{const n=V();mt(n)&&(e&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${t/1e3}s linear`,n.style.width="0%"},10))},wt=()=>{const t=V(),e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";const n=parseInt(window.getComputedStyle(t).width),r=parseInt(e/n*100);t.style.removeProperty("transition"),t.style.width=r+"%"},Mt=()=>"undefined"===typeof window||"undefined"===typeof document,St=`\n
\n
\n
    \n
    \n \n

    \n \n
    \n
    \n
    \n \n \n
    \n \n \n
    \n \n
    \n \n \n
    \n
    \n
    \n
    \n \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n`.replace(/(^|\n)\s*/g,""),At=()=>{const t=L();return!!t&&(t.parentNode.removeChild(t),ut([document.documentElement,document.body],[k["no-backdrop"],k["toast-shown"],k["has-column"]]),!0)};let kt;const Et=t=>{ri.isVisible()&&kt!==t.target.value&&ri.resetValidationMessage(),kt=t.target.value},Lt=()=>{const t=j(),e=ct(t,k.input),n=ct(t,k.file),r=t.querySelector(`.${k.range} input`),i=t.querySelector(`.${k.range} output`),o=ct(t,k.select),s=t.querySelector(`.${k.checkbox} input`),a=ct(t,k.textarea);e.oninput=Et,n.onchange=Et,o.onchange=Et,s.onchange=Et,a.oninput=Et,r.oninput=t=>{Et(t),i.value=r.value},r.onchange=t=>{Et(t),r.nextSibling.value=r.value}},Dt=t=>"string"===typeof t?document.querySelector(t):t,Tt=t=>{const e=O();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},Ot=t=>{"rtl"===window.getComputedStyle(t).direction&&at(L(),k.rtl)},xt=t=>{const e=At();if(Mt())return void h("SweetAlert2 requires document to initialize");const n=document.createElement("div");n.className=k.container,e&&at(n,k["no-transition"]),tt(n,St);const r=Dt(t.target);r.appendChild(n),Tt(t),Ot(r),Lt()},It=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):"object"===typeof t?jt(t,e):t&&tt(e,t)},jt=(t,e)=>{t.jquery?Nt(e,t):tt(e,t.toString())},Nt=(t,e)=>{if(t.textContent="",0 in e)for(let n=0;n in e;n++)t.appendChild(e[n].cloneNode(!0));else t.appendChild(e.cloneNode(!0))},Pt=(()=>{if(Mt())return!1;const t=document.createElement("div"),e={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"undefined"!==typeof t.style[n])return e[n];return!1})(),Ct=()=>{const t=document.createElement("div");t.className=k["scrollbar-measure"],document.body.appendChild(t);const e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},Rt=(t,e)=>{const n=H(),r=U(),i=Y(),o=B(),s=W();e.showConfirmButton||e.showDenyButton||e.showCancelButton||dt(n),rt(n,e,"actions"),Bt(i,"confirm",e),Bt(o,"deny",e),Bt(s,"cancel",e),Yt(i,o,s,e),e.reverseButtons&&(n.insertBefore(s,r),n.insertBefore(o,r),n.insertBefore(i,r)),tt(r,e.loaderHtml),rt(r,e,"loader")};function Yt(t,e,n,r){if(!r.buttonsStyling)return ut([t,e,n],k.styled);at([t,e,n],k.styled),r.confirmButtonColor&&(t.style.backgroundColor=r.confirmButtonColor),r.denyButtonColor&&(e.style.backgroundColor=r.denyButtonColor),r.cancelButtonColor&&(n.style.backgroundColor=r.cancelButtonColor)}function Bt(t,e,n){pt(t,n[`show${a(e)}Button`],"inline-block"),tt(t,n[e+"ButtonText"]),t.setAttribute("aria-label",n[e+"ButtonAriaLabel"]),t.className=k[e],rt(t,n,e+"Button"),at(t,n[e+"ButtonClass"])}function zt(t,e){"string"===typeof e?t.style.background=e:e||at([document.documentElement,document.body],k["no-backdrop"])}function Ut(t,e){e in k?at(t,k[e]):(l('The "position" parameter is not valid, defaulting to "center"'),at(t,k.center))}function Wt(t,e){if(e&&"string"===typeof e){const n="grow-"+e;n in k&&at(t,k[n])}}const Ht=(t,e)=>{const n=L();if(!n)return;zt(n,e.backdrop),!e.backdrop&&e.allowOutsideClick&&l('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),Ut(n,e.position),Wt(n,e.grow),rt(n,e,"container");const r=document.body.getAttribute("data-swal2-queue-step");r&&(n.setAttribute("data-queue-step",r),document.body.removeAttribute("data-swal2-queue-step"))};var Ft={promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const qt=["input","file","range","select","radio","checkbox","textarea"],Vt=(t,e)=>{const n=j(),r=Ft.innerParams.get(t),i=!r||e.input!==r.input;qt.forEach(t=>{const r=k[t],o=ct(n,r);Qt(t,e.inputAttributes),o.className=r,i&&dt(o)}),e.input&&(i&&Kt(e),Zt(e))},Kt=t=>{if(!te[t.input])return h(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${t.input}"`);const e=Xt(t.input),n=te[t.input](e,t);ht(n),setTimeout(()=>{ot(n)})},Gt=t=>{for(let e=0;e{const n=it(j(),t);if(n){Gt(n);for(const r in e)"range"===t&&"placeholder"===r||n.setAttribute(r,e[r])}},Zt=t=>{const e=Xt(t.input);t.customClass&&at(e,t.customClass.input)},Jt=(t,e)=>{t.placeholder&&!e.inputPlaceholder||(t.placeholder=e.inputPlaceholder)},$t=(t,e,n)=>{if(n.inputLabel){t.id=k.input;const r=document.createElement("label"),i=k["input-label"];r.setAttribute("for",t.id),r.className=i,at(r,n.customClass.inputLabel),r.innerText=n.inputLabel,e.insertAdjacentElement("beforebegin",r)}},Xt=t=>{const e=k[t]?k[t]:k.input;return ct(j(),e)},te={};te.text=te.email=te.password=te.number=te.tel=te.url=(t,e)=>("string"===typeof e.inputValue||"number"===typeof e.inputValue?t.value=e.inputValue:b(e.inputValue)||l(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e.inputValue}"`),$t(t,t,e),Jt(t,e),t.type=e.input,t),te.file=(t,e)=>($t(t,t,e),Jt(t,e),t),te.range=(t,e)=>{const n=t.querySelector("input"),r=t.querySelector("output");return n.value=e.inputValue,n.type=e.input,r.value=e.inputValue,$t(n,t,e),t},te.select=(t,e)=>{if(t.textContent="",e.inputPlaceholder){const n=document.createElement("option");tt(n,e.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)}return $t(t,t,e),t},te.radio=t=>(t.textContent="",t),te.checkbox=(t,e)=>{const n=it(j(),"checkbox");n.value=1,n.id=k.checkbox,n.checked=Boolean(e.inputValue);const r=t.querySelector("span");return tt(r,e.inputPlaceholder),t},te.textarea=(t,e)=>{t.value=e.inputValue,Jt(t,e),$t(t,t,e);const n=t=>parseInt(window.getComputedStyle(t).paddingLeft)+parseInt(window.getComputedStyle(t).paddingRight);if("MutationObserver"in window){const e=parseInt(window.getComputedStyle(O()).width),r=()=>{const r=t.offsetWidth+n(O())+n(j());O().style.width=r>e?r+"px":null};new MutationObserver(r).observe(t,{attributes:!0,attributeFilter:["style"]})}return t};const ee=(t,e)=>{const n=N();rt(n,e,"htmlContainer"),e.html?(It(e.html,n),ht(n,"block")):e.text?(n.textContent=e.text,ht(n,"block")):dt(n),Vt(t,e),rt(j(),e,"content")},ne=(t,e)=>{const n=q();pt(n,e.footer),e.footer&&It(e.footer,n),rt(n,e,"footer")},re=(t,e)=>{const n=K();tt(n,e.closeButtonHtml),rt(n,e,"closeButton"),pt(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel)},ie=(t,e)=>{const n=Ft.innerParams.get(t),r=x();return n&&e.icon===n.icon?(ae(r,e),void oe(r,e)):e.icon||e.iconHtml?e.icon&&-1===Object.keys(E).indexOf(e.icon)?(h(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`),dt(r)):(ht(r),ae(r,e),oe(r,e),void at(r,e.showClass.icon)):dt(r)},oe=(t,e)=>{for(const n in E)e.icon!==n&&ut(t,E[n]);at(t,E[e.icon]),ue(t,e),se(),rt(t,e,"icon")},se=()=>{const t=O(),e=window.getComputedStyle(t).getPropertyValue("background-color"),n=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let r=0;r{if(t.textContent="",e.iconHtml)tt(t,ce(e.iconHtml));else if("success"===e.icon)tt(t,'\n
    \n \n
    \n
    \n ');else if("error"===e.icon)tt(t,'\n \n \n \n \n ');else{const n={question:"?",warning:"!",info:"i"};tt(t,ce(n[e.icon]))}},ue=(t,e)=>{if(e.iconColor){t.style.color=e.iconColor,t.style.borderColor=e.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])ft(t,n,"backgroundColor",e.iconColor);ft(t,".swal2-success-ring","borderColor",e.iconColor)}},ce=t=>`
    ${t}
    `,le=(t,e)=>{const n=P();if(!e.imageUrl)return dt(n);ht(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt),lt(n,"width",e.imageWidth),lt(n,"height",e.imageHeight),n.className=k.image,rt(n,e,"image")};let he=[];const de=function(t){const e=this;he=t;const n=(t,e)=>{he=[],t(e)},r=[];return new Promise(t=>{(function i(o,s){o{"undefined"!==typeof e.value?(r.push(e.value),i(o+1)):n(t,{dismiss:e.dismiss})})):n(t,{value:r})})(0)})},fe=()=>L()&&L().getAttribute("data-queue-step"),pe=(t,e)=>e&&e{"undefined"!==typeof he[t]&&he.splice(t,1)},ge=t=>{const e=document.createElement("li");return at(e,k["progress-step"]),tt(e,t),e},ye=t=>{const e=document.createElement("li");return at(e,k["progress-step-line"]),t.progressStepsDistance&&(e.style.width=t.progressStepsDistance),e},be=(t,e)=>{const n=C();if(!e.progressSteps||0===e.progressSteps.length)return dt(n);ht(n),n.textContent="";const r=parseInt(void 0===e.currentProgressStep?fe():e.currentProgressStep);r>=e.progressSteps.length&&l("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach((t,i)=>{const o=ge(t);if(n.appendChild(o),i===r&&at(o,k["active-progress-step"]),i!==e.progressSteps.length-1){const t=ye(e);n.appendChild(t)}})},ve=(t,e)=>{const n=I();pt(n,e.title||e.titleText),e.title&&It(e.title,n),e.titleText&&(n.innerText=e.titleText),rt(n,e,"title")},_e=(t,e)=>{const n=F();rt(n,e,"header"),be(t,e),ie(t,e),le(t,e),ve(t,e),re(t,e)},we=(t,e)=>{const n=L(),r=O();e.toast?(lt(n,"width",e.width),r.style.width="100%"):lt(r,"width",e.width),lt(r,"padding",e.padding),e.background&&(r.style.background=e.background),dt(R()),Me(r,e)},Me=(t,e)=>{t.className=`${k.popup} ${mt(t)?e.showClass.popup:""}`,e.toast?(at([document.documentElement,document.body],k["toast-shown"]),at(t,k.toast)):at(t,k.modal),rt(t,e,"popup"),"string"===typeof e.customClass&&at(t,e.customClass),e.icon&&at(t,k["icon-"+e.icon])},Se=(t,e)=>{we(t,e),Ht(t,e),_e(t,e),ee(t,e),Rt(t,e),ne(t,e),"function"===typeof e.didRender?e.didRender(O()):"function"===typeof e.onRender&&e.onRender(O())},Ae=()=>mt(O()),ke=()=>Y()&&Y().click(),Ee=()=>B()&&B().click(),Le=()=>W()&&W().click();function De(...t){const e=this;return new e(...t)}function Te(t){class e extends(this){_main(e,n){return super._main(e,Object.assign({},t,n))}}return e}const Oe=t=>{let e=O();e||ri.fire(),e=O();const n=H(),r=U();!t&&mt(Y())&&(t=Y()),ht(n),t&&(dt(t),r.setAttribute("data-button-to-replace",t.className)),r.parentNode.insertBefore(r,t),at([e,n],k.loading),ht(r),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},xe=100,Ie={},je=()=>{Ie.previousActiveElement&&Ie.previousActiveElement.focus?(Ie.previousActiveElement.focus(),Ie.previousActiveElement=null):document.body&&document.body.focus()},Ne=()=>new Promise(t=>{const e=window.scrollX,n=window.scrollY;Ie.restoreFocusTimeout=setTimeout(()=>{je(),t()},xe),"undefined"!==typeof e&&"undefined"!==typeof n&&window.scrollTo(e,n)}),Pe=()=>Ie.timeout&&Ie.timeout.getTimerLeft(),Ce=()=>{if(Ie.timeout)return wt(),Ie.timeout.stop()},Re=()=>{if(Ie.timeout){const t=Ie.timeout.start();return _t(t),t}},Ye=()=>{const t=Ie.timeout;return t&&(t.running?Ce():Re())},Be=t=>{if(Ie.timeout){const e=Ie.timeout.increase(t);return _t(e,!0),e}},ze=()=>Ie.timeout&&Ie.timeout.isRunning();let Ue=!1;const We={};function He(t="data-swal-template"){We[t]=this,Ue||(document.body.addEventListener("click",Fe),Ue=!0)}const Fe=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const t in We){const n=e.getAttribute(t);if(n)return void We[t].fire({template:n})}},qe={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,animation:!0,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,onBeforeOpen:void 0,onOpen:void 0,willOpen:void 0,didOpen:void 0,onRender:void 0,didRender:void 0,onClose:void 0,onAfterClose:void 0,willClose:void 0,didClose:void 0,onDestroy:void 0,didDestroy:void 0,scrollbarPadding:!0},Ve=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","onAfterClose","onClose","onDestroy","progressSteps","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],Ke={animation:'showClass" and "hideClass',onBeforeOpen:"willOpen",onOpen:"didOpen",onRender:"didRender",onClose:"willClose",onAfterClose:"didClose",onDestroy:"didDestroy"},Ge=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","heightAuto","keydownListenerCapture"],Qe=t=>Object.prototype.hasOwnProperty.call(qe,t),Ze=t=>-1!==Ve.indexOf(t),Je=t=>Ke[t],$e=t=>{Qe(t)||l(`Unknown parameter "${t}"`)},Xe=t=>{Ge.includes(t)&&l(`The parameter "${t}" is incompatible with toasts`)},tn=t=>{Je(t)&&p(t,Je(t))},en=t=>{for(const e in t)$e(e),t.toast&&Xe(e),tn(e)};var nn=Object.freeze({__proto__:null,isValidParameter:Qe,isUpdatableParameter:Ze,isDeprecatedParameter:Je,argsToParams:M,getContainer:L,getPopup:O,getTitle:I,getContent:j,getHtmlContainer:N,getImage:P,getIcon:x,getInputLabel:z,getCloseButton:K,getActions:H,getConfirmButton:Y,getDenyButton:B,getCancelButton:W,getLoader:U,getHeader:F,getFooter:q,getTimerProgressBar:V,getFocusableElements:Q,getValidationMessage:R,isLoading:$,isVisible:Ae,clickConfirm:ke,clickDeny:Ee,clickCancel:Le,fire:De,mixin:Te,queue:de,getQueueStep:fe,insertQueueStep:pe,deleteQueueStep:me,showLoading:Oe,enableLoading:Oe,getTimerLeft:Pe,stopTimer:Ce,resumeTimer:Re,toggleTimer:Ye,increaseTimer:Be,isTimerRunning:ze,bindClickHandler:He});function rn(){const t=Ft.innerParams.get(this);if(!t)return;const e=Ft.domCache.get(this);dt(e.loader);const n=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));n.length?ht(n[0],"inline-block"):gt()&&dt(e.actions),ut([e.popup,e.actions],k.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}function on(t){const e=Ft.innerParams.get(t||this),n=Ft.domCache.get(t||this);return n?it(n.content,e.input):null}const sn=()=>{null===X.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(X.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=X.previousBodyPadding+Ct()+"px")},an=()=>{null!==X.previousBodyPadding&&(document.body.style.paddingRight=X.previousBodyPadding+"px",X.previousBodyPadding=null)},un=()=>{const t=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1;if(t&&!et(document.body,k.iosfix)){const t=document.body.scrollTop;document.body.style.top=-1*t+"px",at(document.body,k.iosfix),ln(),cn()}},cn=()=>{const t=!navigator.userAgent.match(/(CriOS|FxiOS|EdgiOS|YaBrowser|UCBrowser)/i);if(t){const t=44;O().scrollHeight>window.innerHeight-t&&(L().style.paddingBottom=t+"px")}},ln=()=>{const t=L();let e;t.ontouchstart=t=>{e=hn(t)},t.ontouchmove=t=>{e&&(t.preventDefault(),t.stopPropagation())}},hn=t=>{const e=t.target,n=L();return!dn(t)&&!fn(t)&&(e===n||!(yt(n)||"INPUT"===e.tagName||yt(j())&&j().contains(e)))},dn=t=>t.touches&&t.touches.length&&"stylus"===t.touches[0].touchType,fn=t=>t.touches&&t.touches.length>1,pn=()=>{if(et(document.body,k.iosfix)){const t=parseInt(document.body.style.top,10);ut(document.body,k.iosfix),document.body.style.top="",document.body.scrollTop=-1*t}},mn=()=>!!window.MSInputMethodContext&&!!document.documentMode,gn=()=>{const t=L(),e=O();t.style.removeProperty("align-items"),e.offsetTop<0&&(t.style.alignItems="flex-start")},yn=()=>{"undefined"!==typeof window&&mn()&&(gn(),window.addEventListener("resize",gn))},bn=()=>{"undefined"!==typeof window&&mn()&&window.removeEventListener("resize",gn)},vn=()=>{const t=c(document.body.children);t.forEach(t=>{t===L()||vt(t,L())||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")),t.setAttribute("aria-hidden","true"))})},_n=()=>{const t=c(document.body.children);t.forEach(t=>{t.hasAttribute("data-previous-aria-hidden")?(t.setAttribute("aria-hidden",t.getAttribute("data-previous-aria-hidden")),t.removeAttribute("data-previous-aria-hidden")):t.removeAttribute("aria-hidden")})};var wn={swalPromiseResolve:new WeakMap};function Mn(t,e,n,r){n?Tn(t,r):(Ne().then(()=>Tn(t,r)),Ie.keydownTarget.removeEventListener("keydown",Ie.keydownHandler,{capture:Ie.keydownListenerCapture}),Ie.keydownHandlerAdded=!1),e.parentNode&&!document.body.getAttribute("data-swal2-queue-step")&&e.parentNode.removeChild(e),Z()&&(an(),pn(),bn(),_n()),Sn()}function Sn(){ut([document.documentElement,document.body],[k.shown,k["height-auto"],k["no-backdrop"],k["toast-shown"],k["toast-column"]])}function An(t){const e=O();if(!e)return;t=kn(t);const n=Ft.innerParams.get(this);if(!n||et(e,n.hideClass.popup))return;const r=wn.swalPromiseResolve.get(this);ut(e,n.showClass.popup),at(e,n.hideClass.popup);const i=L();ut(i,n.showClass.backdrop),at(i,n.hideClass.backdrop),En(this,e,n),r(t)}const kn=t=>"undefined"===typeof t?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),En=(t,e,n)=>{const r=L(),i=Pt&&bt(e),{onClose:o,onAfterClose:s,willClose:a,didClose:u}=n;Ln(e,a,o),i?Dn(t,e,r,u||s):Mn(t,r,J(),u||s)},Ln=(t,e,n)=>{null!==e&&"function"===typeof e?e(t):null!==n&&"function"===typeof n&&n(t)},Dn=(t,e,n,r)=>{Ie.swalCloseEventFinishedCallback=Mn.bind(null,t,n,J(),r),e.addEventListener(Pt,(function(t){t.target===e&&(Ie.swalCloseEventFinishedCallback(),delete Ie.swalCloseEventFinishedCallback)}))},Tn=(t,e)=>{setTimeout(()=>{"function"===typeof e&&e(),t._destroy()})};function On(t,e,n){const r=Ft.domCache.get(t);e.forEach(t=>{r[t].disabled=n})}function xn(t,e){if(!t)return!1;if("radio"===t.type){const n=t.parentNode.parentNode,r=n.querySelectorAll("input");for(let t=0;t/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid email address"),url:(t,e)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid URL")};function Un(t){t.inputValidator||Object.keys(zn).forEach(e=>{t.input===e&&(t.inputValidator=zn[e])})}function Wn(t){(!t.target||"string"===typeof t.target&&!document.querySelector(t.target)||"string"!==typeof t.target&&!t.target.appendChild)&&(l('Target parameter is not valid, defaulting to "body"'),t.target="body")}function Hn(t){Un(t),t.showLoaderOnConfirm&&!t.preConfirm&&l("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),t.animation=m(t.animation),Wn(t),"string"===typeof t.title&&(t.title=t.title.split("\n").join("
    ")),xt(t)}const Fn=["swal-title","swal-html","swal-footer"],qn=t=>{const e="string"===typeof t.template?document.querySelector(t.template):t.template;if(!e)return{};const n=e.content||e;$n(n);const r=Object.assign(Vn(n),Kn(n),Gn(n),Qn(n),Zn(n),Jn(n,Fn));return r},Vn=t=>{const e={};return c(t.querySelectorAll("swal-param")).forEach(t=>{Xn(t,["name","value"]);const n=t.getAttribute("name");let r=t.getAttribute("value");"boolean"===typeof qe[n]&&"false"===r&&(r=!1),"object"===typeof qe[n]&&(r=JSON.parse(r)),e[n]=r}),e},Kn=t=>{const e={};return c(t.querySelectorAll("swal-button")).forEach(t=>{Xn(t,["type","color","aria-label"]);const n=t.getAttribute("type");e[n+"ButtonText"]=t.innerHTML,e[`show${a(n)}Button`]=!0,t.hasAttribute("color")&&(e[n+"ButtonColor"]=t.getAttribute("color")),t.hasAttribute("aria-label")&&(e[n+"ButtonAriaLabel"]=t.getAttribute("aria-label"))}),e},Gn=t=>{const e={},n=t.querySelector("swal-image");return n&&(Xn(n,["src","width","height","alt"]),n.hasAttribute("src")&&(e.imageUrl=n.getAttribute("src")),n.hasAttribute("width")&&(e.imageWidth=n.getAttribute("width")),n.hasAttribute("height")&&(e.imageHeight=n.getAttribute("height")),n.hasAttribute("alt")&&(e.imageAlt=n.getAttribute("alt"))),e},Qn=t=>{const e={},n=t.querySelector("swal-icon");return n&&(Xn(n,["type","color"]),n.hasAttribute("type")&&(e.icon=n.getAttribute("type")),n.hasAttribute("color")&&(e.iconColor=n.getAttribute("color")),e.iconHtml=n.innerHTML),e},Zn=t=>{const e={},n=t.querySelector("swal-input");n&&(Xn(n,["type","label","placeholder","value"]),e.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(e.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(e.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(e.inputValue=n.getAttribute("value")));const r=t.querySelectorAll("swal-input-option");return r.length&&(e.inputOptions={},c(r).forEach(t=>{Xn(t,["value"]);const n=t.getAttribute("value"),r=t.innerHTML;e.inputOptions[n]=r})),e},Jn=(t,e)=>{const n={};for(const r in e){const i=e[r],o=t.querySelector(i);o&&(Xn(o,[]),n[i.replace(/^swal-/,"")]=o.innerHTML)}return n},$n=t=>{const e=Fn.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);c(t.querySelectorAll("*")).forEach(n=>{if(n.parentNode!==t)return;const r=n.tagName.toLowerCase();-1===e.indexOf(r)&&l(`Unrecognized element <${r}>`)})},Xn=(t,e)=>{c(t.attributes).forEach(n=>{-1===e.indexOf(n.name)&&l([`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`,""+(e.length?"Allowed attributes are: "+e.join(", "):"To set the value, use HTML within the element.")])})},tr=10,er=t=>{const e=L(),n=O();"function"===typeof t.willOpen?t.willOpen(n):"function"===typeof t.onBeforeOpen&&t.onBeforeOpen(n);const r=window.getComputedStyle(document.body),i=r.overflowY;sr(e,n,t),setTimeout(()=>{ir(e,n)},tr),Z()&&(or(e,t.scrollbarPadding,i),vn()),J()||Ie.previousActiveElement||(Ie.previousActiveElement=document.activeElement),nr(n,t),ut(e,k["no-transition"])},nr=(t,e)=>{"function"===typeof e.didOpen?setTimeout(()=>e.didOpen(t)):"function"===typeof e.onOpen&&setTimeout(()=>e.onOpen(t))},rr=t=>{const e=O();if(t.target!==e)return;const n=L();e.removeEventListener(Pt,rr),n.style.overflowY="auto"},ir=(t,e)=>{Pt&&bt(e)?(t.style.overflowY="hidden",e.addEventListener(Pt,rr)):t.style.overflowY="auto"},or=(t,e,n)=>{un(),yn(),e&&"hidden"!==n&&sn(),setTimeout(()=>{t.scrollTop=0})},sr=(t,e,n)=>{at(t,n.showClass.backdrop),e.style.setProperty("opacity","0","important"),ht(e),setTimeout(()=>{at(e,n.showClass.popup),e.style.removeProperty("opacity")},tr),at([document.documentElement,document.body],k.shown),n.heightAuto&&n.backdrop&&!n.toast&&at([document.documentElement,document.body],k["height-auto"])},ar=(t,e)=>{"select"===e.input||"radio"===e.input?dr(t,e):["text","email","number","tel","textarea"].includes(e.input)&&(g(e.inputValue)||b(e.inputValue))&&fr(t,e)},ur=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return cr(n);case"radio":return lr(n);case"file":return hr(n);default:return e.inputAutoTrim?n.value.trim():n.value}},cr=t=>t.checked?1:0,lr=t=>t.checked?t.value:null,hr=t=>t.files.length?null!==t.getAttribute("multiple")?t.files:t.files[0]:null,dr=(t,e)=>{const n=j(),r=t=>pr[e.input](n,mr(t),e);g(e.inputOptions)||b(e.inputOptions)?(Oe(Y()),y(e.inputOptions).then(e=>{t.hideLoading(),r(e)})):"object"===typeof e.inputOptions?r(e.inputOptions):h("Unexpected type of inputOptions! Expected object, Map or Promise, got "+typeof e.inputOptions)},fr=(t,e)=>{const n=t.getInput();dt(n),y(e.inputValue).then(r=>{n.value="number"===e.input?parseFloat(r)||0:""+r,ht(n),n.focus(),t.hideLoading()}).catch(e=>{h("Error in inputValue promise: "+e),n.value="",ht(n),n.focus(),t.hideLoading()})},pr={select:(t,e,n)=>{const r=ct(t,k.select),i=(t,e,r)=>{const i=document.createElement("option");i.value=r,tt(i,e),i.selected=gr(r,n.inputValue),t.appendChild(i)};e.forEach(t=>{const e=t[0],n=t[1];if(Array.isArray(n)){const t=document.createElement("optgroup");t.label=e,t.disabled=!1,r.appendChild(t),n.forEach(e=>i(t,e[1],e[0]))}else i(r,n,e)}),r.focus()},radio:(t,e,n)=>{const r=ct(t,k.radio);e.forEach(t=>{const e=t[0],i=t[1],o=document.createElement("input"),s=document.createElement("label");o.type="radio",o.name=k.radio,o.value=e,gr(e,n.inputValue)&&(o.checked=!0);const a=document.createElement("span");tt(a,i),a.className=k.label,s.appendChild(o),s.appendChild(a),r.appendChild(s)});const i=r.querySelectorAll("input");i.length&&i[0].focus()}},mr=t=>{const e=[];return"undefined"!==typeof Map&&t instanceof Map?t.forEach((t,n)=>{let r=t;"object"===typeof r&&(r=mr(r)),e.push([n,r])}):Object.keys(t).forEach(n=>{let r=t[n];"object"===typeof r&&(r=mr(r)),e.push([n,r])}),e},gr=(t,e)=>e&&e.toString()===t.toString(),yr=(t,e)=>{t.disableButtons(),e.input?_r(t,e,"confirm"):Ar(t,e,!0)},br=(t,e)=>{t.disableButtons(),e.returnInputValueOnDeny?_r(t,e,"deny"):Mr(t,e,!1)},vr=(t,e)=>{t.disableButtons(),e(v.cancel)},_r=(t,e,n)=>{const r=ur(t,e);e.inputValidator?wr(t,e,r):t.getInput().checkValidity()?"deny"===n?Mr(t,e,r):Ar(t,e,r):(t.enableButtons(),t.showValidationMessage(e.validationMessage))},wr=(t,e,n)=>{t.disableInput();const r=Promise.resolve().then(()=>y(e.inputValidator(n,e.validationMessage)));r.then(r=>{t.enableButtons(),t.enableInput(),r?t.showValidationMessage(r):Ar(t,e,n)})},Mr=(t,e,n)=>{if(e.showLoaderOnDeny&&Oe(B()),e.preDeny){const r=Promise.resolve().then(()=>y(e.preDeny(n,e.validationMessage)));r.then(e=>{!1===e?t.hideLoading():t.closePopup({isDenied:!0,value:"undefined"===typeof e?n:e})})}else t.closePopup({isDenied:!0,value:n})},Sr=(t,e)=>{t.closePopup({isConfirmed:!0,value:e})},Ar=(t,e,n)=>{if(e.showLoaderOnConfirm&&Oe(),e.preConfirm){t.resetValidationMessage();const r=Promise.resolve().then(()=>y(e.preConfirm(n,e.validationMessage)));r.then(e=>{mt(R())||!1===e?t.hideLoading():Sr(t,"undefined"===typeof e?n:e)})}else Sr(t,n)},kr=(t,e,n,r)=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1),n.toast||(e.keydownHandler=e=>Or(t,e,r),e.keydownTarget=n.keydownListenerCapture?window:O(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},Er=(t,e,n)=>{const r=Q();if(r.length)return e+=n,e===r.length?e=0:-1===e&&(e=r.length-1),r[e].focus();O().focus()},Lr=["ArrowRight","ArrowDown","Right","Down"],Dr=["ArrowLeft","ArrowUp","Left","Up"],Tr=["Escape","Esc"],Or=(t,e,n)=>{const r=Ft.innerParams.get(t);r&&(r.stopKeydownPropagation&&e.stopPropagation(),"Enter"===e.key?xr(t,e,r):"Tab"===e.key?Ir(e,r):[...Lr,...Dr].includes(e.key)?jr(e.key):Tr.includes(e.key)&&Nr(e,r,n))},xr=(t,e,n)=>{if(!e.isComposing&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;ke(),e.preventDefault()}},Ir=(t,e)=>{const n=t.target,r=Q();let i=-1;for(let o=0;o{const e=Y(),n=B(),r=W();if(![e,n,r].includes(document.activeElement))return;const i=Lr.includes(t)?"nextElementSibling":"previousElementSibling",o=document.activeElement[i];o&&o.focus()},Nr=(t,e,n)=>{m(e.allowEscapeKey)&&(t.preventDefault(),n(v.esc))},Pr=(t,e,n)=>{const r=Ft.innerParams.get(t);r.toast?Cr(t,e,n):(Yr(e),Br(e),zr(t,e,n))},Cr=(t,e,n)=>{e.popup.onclick=()=>{const e=Ft.innerParams.get(t);e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton||e.timer||e.input||n(v.close)}};let Rr=!1;const Yr=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(Rr=!0)}}},Br=t=>{t.container.onmousedown=()=>{t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&(Rr=!0)}}},zr=(t,e,n)=>{e.container.onclick=r=>{const i=Ft.innerParams.get(t);Rr?Rr=!1:r.target===e.container&&m(i.allowOutsideClick)&&n(v.backdrop)}};function Ur(t,e={}){en(Object.assign({},e,t)),Ie.currentInstance&&Ie.currentInstance._destroy(),Ie.currentInstance=this;const n=Wr(t,e);Hn(n),Object.freeze(n),Ie.timeout&&(Ie.timeout.stop(),delete Ie.timeout),clearTimeout(Ie.restoreFocusTimeout);const r=Fr(this);return Se(this,n),Ft.innerParams.set(this,n),Hr(this,r,n)}const Wr=(t,e)=>{const n=qn(t),r=Object.assign({},qe.showClass,e.showClass,n.showClass,t.showClass),i=Object.assign({},qe.hideClass,e.hideClass,n.hideClass,t.hideClass),o=Object.assign({},qe,e,n,t);return o.showClass=r,o.hideClass=i,!1===t.animation&&(o.showClass={popup:"swal2-noanimation",backdrop:"swal2-noanimation"},o.hideClass={}),o},Hr=(t,e,n)=>new Promise(r=>{const i=e=>{t.closePopup({isDismissed:!0,dismiss:e})};wn.swalPromiseResolve.set(t,r),e.confirmButton.onclick=()=>yr(t,n),e.denyButton.onclick=()=>br(t,n),e.cancelButton.onclick=()=>vr(t,i),e.closeButton.onclick=()=>i(v.close),Pr(t,e,i),kr(t,Ie,n,i),n.toast&&(n.input||n.footer||n.showCloseButton)?at(document.body,k["toast-column"]):ut(document.body,k["toast-column"]),ar(t,n),er(n),qr(Ie,n,i),Vr(e,n),setTimeout(()=>{e.container.scrollTop=0})}),Fr=t=>{const e={popup:O(),container:L(),content:j(),actions:H(),confirmButton:Y(),denyButton:B(),cancelButton:W(),loader:U(),closeButton:K(),validationMessage:R(),progressSteps:C()};return Ft.domCache.set(t,e),e},qr=(t,e,n)=>{const r=V();dt(r),e.timer&&(t.timeout=new Bn(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(ht(r),setTimeout(()=>{t.timeout&&t.timeout.running&&_t(e.timer)})))},Vr=(t,e)=>{if(!e.toast)return m(e.allowEnterKey)?void(Kr(t,e)||Er(e,-1,1)):Gr()},Kr=(t,e)=>e.focusDeny&&mt(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&mt(t.cancelButton)?(t.cancelButton.focus(),!0):!(!e.focusConfirm||!mt(t.confirmButton))&&(t.confirmButton.focus(),!0),Gr=()=>{document.activeElement&&"function"===typeof document.activeElement.blur&&document.activeElement.blur()};function Qr(t){const e=O(),n=Ft.innerParams.get(this);if(!e||et(e,n.hideClass.popup))return l("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const r={};Object.keys(t).forEach(e=>{ri.isUpdatableParameter(e)?r[e]=t[e]:l(`Invalid parameter to update: "${e}". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js\n\nIf you think this parameter should be updatable, request it here: https://github.com/sweetalert2/sweetalert2/issues/new?template=02_feature_request.md`)});const i=Object.assign({},n,r);Se(this,i),Ft.innerParams.set(this,i),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}function Zr(){const t=Ft.domCache.get(this),e=Ft.innerParams.get(this);e&&(t.popup&&Ie.swalCloseEventFinishedCallback&&(Ie.swalCloseEventFinishedCallback(),delete Ie.swalCloseEventFinishedCallback),Ie.deferDisposalTimer&&(clearTimeout(Ie.deferDisposalTimer),delete Ie.deferDisposalTimer),Jr(e),$r(this))}const Jr=t=>{"function"===typeof t.didDestroy?t.didDestroy():"function"===typeof t.onDestroy&&t.onDestroy()},$r=t=>{delete t.params,delete Ie.keydownHandler,delete Ie.keydownTarget,Xr(Ft),Xr(wn)},Xr=t=>{for(const e in t)t[e]=new WeakMap};var ti=Object.freeze({__proto__:null,hideLoading:rn,disableLoading:rn,getInput:on,close:An,closePopup:An,closeModal:An,closeToast:An,enableButtons:In,disableButtons:jn,enableInput:Nn,disableInput:Pn,showValidationMessage:Cn,resetValidationMessage:Rn,getProgressSteps:Yn,_main:Ur,update:Qr,_destroy:Zr});let ei;class ni{constructor(...t){if("undefined"===typeof window)return;"undefined"===typeof Promise&&h("This package requires a Promise library, please include a shim to enable it in this browser (See: https://github.com/sweetalert2/sweetalert2/wiki/Migration-from-SweetAlert-to-SweetAlert2#1-ie-support)"),ei=this;const e=Object.freeze(this.constructor.argsToParams(t));Object.defineProperties(this,{params:{value:e,writable:!1,enumerable:!0,configurable:!0}});const n=this._main(this.params);Ft.promise.set(this,n)}then(t){const e=Ft.promise.get(this);return e.then(t)}finally(t){const e=Ft.promise.get(this);return e.finally(t)}}Object.assign(ni.prototype,ti),Object.assign(ni,nn),Object.keys(ti).forEach(t=>{ni[t]=function(...e){if(ei)return ei[t](...e)}}),ni.DismissReason=v,ni.version="10.15.7";const ri=ni;function ii(t,e,n){const i=()=>{e.value=!1,ri.fire({text:n.value,showConfirmButton:!1}),setTimeout(()=>{ri.close()},3e3)};Object(r["watch"])(t,t=>{!0===t&&i()})}ri.default=ri;var oi={props:{noResult:{type:Boolean,default:!1},message:{type:String,default:"Failed to load data."}},setup(t,{emit:e}){const{noResult:n,message:o}=Object(r["toRefs"])(t),{handleScroll:s,scrollRef:a,loading:u}=i(n,e);return ii(n,u,o),Object(r["onMounted"])(()=>{window.addEventListener("scroll",s)}),Object(r["onUnmounted"])(()=>{window.removeEventListener("scroll",s)}),{scrollRef:a,loading:u}}};const si=Object(r["withScopeId"])("data-v-eaa4925a");Object(r["pushScopeId"])("data-v-eaa4925a");const ai={ref:"scrollRef"},ui={key:0,style:{"text-align":"center"}},ci=Object(r["createVNode"])("div",{class:"spinner"},null,-1);Object(r["popScopeId"])();const li=si((t,e,n,i,o,s)=>(Object(r["openBlock"])(),Object(r["createBlock"])("div",ai,[Object(r["renderSlot"])(t.$slots,"default"),i.loading?(Object(r["openBlock"])(),Object(r["createBlock"])("div",ui,[ci])):Object(r["createCommentVNode"])("",!0)],512)));function hi(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!==typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))}}var di='\n.spinner[data-v-eaa4925a] {\n display: inline-block; /* Setting display to inline-block prevents the custom event from being fired multiple times at once */\n margin: 5px auto;\n height: 2rem;\n width: 2rem;\n border-radius: 50%;\n border: 2px dashed black;\n position: relative;\n animation: spin-eaa4925a 2s ease infinite;\n}\n.spinner[data-v-eaa4925a]::before {\n position: absolute;\n content: "";\n top: 0;\n left: -7px;\n width: 40%;\n height: 70%;\n background: white;\n}\n@keyframes spin-eaa4925a {\nfrom {\n transform: rotate(0deg);\n}\nto {\n transform: rotate(360deg);\n}\n}\n';hi(di),oi.render=li,oi.__scopeId="data-v-eaa4925a";var fi=(()=>{const t=oi;return t.install=e=>{e.component("InfiniteScrollVue3",t)},t})();e["a"]=fi},"7b0b":function(t,e,n){var r=n("1d80"),i=Object;t.exports=function(t){return i(r(t))}},"7be6":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function r(t){return t>1&&t<5}function i(t,e,n,i){var o=t+" ";switch(n){case"s":return e||i?"pár sekúnd":"pár sekundami";case"ss":return e||i?o+(r(t)?"sekundy":"sekúnd"):o+"sekundami";case"m":return e?"minúta":i?"minútu":"minútou";case"mm":return e||i?o+(r(t)?"minúty":"minút"):o+"minútami";case"h":return e?"hodina":i?"hodinu":"hodinou";case"hh":return e||i?o+(r(t)?"hodiny":"hodín"):o+"hodinami";case"d":return e||i?"deň":"dňom";case"dd":return e||i?o+(r(t)?"dni":"dní"):o+"dňami";case"M":return e||i?"mesiac":"mesiacom";case"MM":return e||i?o+(r(t)?"mesiace":"mesiacov"):o+"mesiacmi";case"y":return e||i?"rok":"rokom";case"yy":return e||i?o+(r(t)?"roky":"rokov"):o+"rokmi"}}var o=t.defineLocale("sk",{months:e,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return o}))},"7cbf":function(t,e,n){const r=n("c2a4"),i=(t,e)=>new r(t,e).patch;t.exports=i},"7d2a":function(t,e){var n=Math.pow(2,30)-1;t.exports=function(t,e){if("number"!==typeof t)throw new TypeError("Iterations not a number");if(t<0)throw new TypeError("Bad iterations");if("number"!==typeof e)throw new TypeError("Key length not a number");if(e<0||e>n||e!==e)throw new TypeError("Bad key length")}},"7d72":function(t,e,n){"use strict";var r=n("8707").Buffer,i=r.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(t){if(!t)return"utf8";var e;while(1)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function s(t){var e=o(t);if("string"!==typeof e&&(r.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}function a(t){var e;switch(this.encoding=s(t),this.encoding){case"utf16le":this.text=p,this.end=m,e=4;break;case"utf8":this.fillLast=h,e=4;break;case"base64":this.text=g,this.end=y,e=3;break;default:return this.write=b,void(this.end=v)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function u(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function c(t,e,n){var r=e.length-1;if(r=0?(i>0&&(t.lastNeed=i-1),i):--r=0?(i>0&&(t.lastNeed=i-2),i):--r=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0))}function l(t,e,n){if(128!==(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!==(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!==(192&e[2]))return t.lastNeed=2,"�"}}function h(t){var e=this.lastTotal-this.lastNeed,n=l(this,t,e);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function d(t,e){var n=c(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)}function f(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e}function p(t,e){if((t.length-e)%2===0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function m(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function g(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function y(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function b(t){return t.toString(this.encoding)}function v(t){return t&&t.length?this.write(t):""}e.StringDecoder=a,a.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(e=this.fillLast(t),void 0===e)return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n{var t;return!!(null===(t=window.clover_solana)||void 0===t?void 0:t.isCloverWallet)&&(this._readyState=i.WalletReadyState.Installed,this.emit("readyStateChange",this._readyState),!0)})}get publicKey(){return this._publicKey}get connecting(){return this._connecting}get readyState(){return this._readyState}connect(){return r(this,void 0,void 0,(function*(){try{if(this.connected||this.connecting)return;if(this._readyState!==i.WalletReadyState.Installed)throw new i.WalletNotReadyError;this._connecting=!0;const e=window.clover_solana;let n,r;try{n=yield e.getAccount()}catch(t){throw new i.WalletAccountError(null===t||void 0===t?void 0:t.message,t)}try{r=new o.PublicKey(n)}catch(t){throw new i.WalletPublicKeyError(null===t||void 0===t?void 0:t.message,t)}this._wallet=e,this._publicKey=r,this.emit("connect",r)}catch(t){throw this.emit("error",t),t}finally{this._connecting=!1}}))}disconnect(){return r(this,void 0,void 0,(function*(){this._wallet&&(this._wallet=null,this._publicKey=null),this.emit("disconnect")}))}signTransaction(t){return r(this,void 0,void 0,(function*(){try{const n=this._wallet;if(!n)throw new i.WalletNotConnectedError;try{return(yield n.signTransaction(t))||t}catch(e){throw new i.WalletSignTransactionError(null===e||void 0===e?void 0:e.message,e)}}catch(e){throw this.emit("error",e),e}}))}signAllTransactions(t){return r(this,void 0,void 0,(function*(){try{const n=this._wallet;if(!n)throw new i.WalletNotConnectedError;try{return(yield n.signAllTransactions(t))||t}catch(e){throw new i.WalletSignTransactionError(null===e||void 0===e?void 0:e.message,e)}}catch(e){throw this.emit("error",e),e}}))}signMessage(t){return r(this,void 0,void 0,(function*(){try{const n=this._wallet;if(!n)throw new i.WalletNotConnectedError;try{const{signature:e}=yield n.signMessage(t);return Uint8Array.from(e)}catch(e){throw new i.WalletSignTransactionError(null===e||void 0===e?void 0:e.message,e)}}catch(e){throw this.emit("error",e),e}}))}}e.CloverWalletAdapter=s},"7e78":function(t,e,n){var r=n("3fb5"),i=n("b672"),o=n("8707").Buffer,s=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function u(){this.init(),this._w=a,i.call(this,64,56)}function c(t){return t<<1|t>>>31}function l(t){return t<<5|t>>>27}function h(t){return t<<30|t>>>2}function d(t,e,n,r){return 0===t?e&n|~e&r:2===t?e&n|e&r|n&r:e^n^r}r(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(t){for(var e=this._w,n=0|this._a,r=0|this._b,i=0|this._c,o=0|this._d,a=0|this._e,u=0;u<16;++u)e[u]=t.readInt32BE(4*u);for(;u<80;++u)e[u]=c(e[u-3]^e[u-8]^e[u-14]^e[u-16]);for(var f=0;f<80;++f){var p=~~(f/20),m=l(n)+d(p,r,i,o)+a+e[f]+s[p]|0;a=o,o=i,i=h(r),r=n,n=m}this._a=n+this._a|0,this._b=r+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=a+this._e|0},u.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=u},"7ec2":function(t,e,n){n("d9e2");var r=n("7037")["default"];function i(){"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=i=function(){return e},t.exports.__esModule=!0,t.exports["default"]=t.exports;var e={},n=Object.prototype,o=n.hasOwnProperty,s="function"==typeof Symbol?Symbol:{},a=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(T){l=function(t,e,n){return t[e]=n}}function h(t,e,n,r){var i=e&&e.prototype instanceof p?e:p,o=Object.create(i.prototype),s=new E(r||[]);return o._invoke=function(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return D()}for(n.method=i,n.arg=o;;){var s=n.delegate;if(s){var a=S(s,n);if(a){if(a===f)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=d(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(t,n,s),o}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=h;var f={};function p(){}function m(){}function g(){}var y={};l(y,a,(function(){return this}));var b=Object.getPrototypeOf,v=b&&b(b(L([])));v&&v!==n&&o.call(v,a)&&(y=v);var _=g.prototype=p.prototype=Object.create(y);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function M(t,e){function n(i,s,a,u){var c=d(t[i],t,s);if("throw"!==c.type){var l=c.arg,h=l.value;return h&&"object"==r(h)&&o.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(h).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,u)}))}u(c.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}}function S(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator["return"]&&(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=d(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,f;var i=r.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function L(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n=0;--r){var i=this.tryEntries[r],s=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var a=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(a&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:L(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}t.exports=i,t.exports.__esModule=!0,t.exports["default"]=t.exports},"7f33":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}});return e}))},"7f7a":function(t,e,n){"use strict";const r=e;r.bignum=n("bc12"),r.define=n("ef3a").define,r.base=n("41df"),r.constants=n("0211"),r.decoders=n("20f6"),r.encoders=n("343e")},"7f9a":function(t,e,n){var r=n("da84"),i=n("1626"),o=n("8925"),s=r.WeakMap;t.exports=i(s)&&/native code/.test(o(s))},"802f":function(t,e,n){"use strict";n.r(e),n.d(e,"add",(function(){return f})),n.d(e,"runAll",(function(){return p})),n.d(e,"removeAll",(function(){return m})),n.d(e,"getSize",(function(){return g}));var r=n("fa81"),i=n.n(r);function o(t){if("function"===typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope);else{if("function"!==typeof window.addEventListener)return;window.addEventListener("beforeunload",(function(){t()}),!0),window.addEventListener("unload",(function(){t()}),!0)}}var s={add:o},a=n(0),u=n.n(a),c=i.a?u.a:s,l=new Set,h=!1;function d(){h||(h=!0,c.add(p))}function f(t){if(d(),"function"!==typeof t)throw new Error("Listener is no function");l.add(t);var e={remove:function(){return l["delete"](t)},run:function(){return l["delete"](t),t()}};return e}function p(){var t=[];return l.forEach((function(e){t.push(e()),l["delete"](e)})),Promise.all(t)}function m(){l.clear()}function g(){return l.size}},"80ad":function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"decryptData",(function(){return M})),n.d(e,"default",(function(){return g})),n.d(e,"ec",(function(){return f})),n.d(e,"encParamsBufToHex",(function(){return _})),n.d(e,"encParamsHexToBuf",(function(){return v})),n.d(e,"encryptAndSetData",(function(){return A})),n.d(e,"encryptData",(function(){return w})),n.d(e,"getAndDecryptData",(function(){return S})),n.d(e,"getDeviceShare",(function(){return D})),n.d(e,"getTorusShare",(function(){return L})),n.d(e,"keccak256",(function(){return d})),n.d(e,"setDeviceShare",(function(){return E})),n.d(e,"setTorusShare",(function(){return k}));var r=n("9523"),i=n.n(r),o=n("6517"),s=n("ac4f"),a=n.n(s),u=n("3337"),c=n("6983"),l=n.n(c),h=n("b888");function d(t){return l()("keccak256").update(t).digest()}const f=new u["ec"]("secp256k1");function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:"https://metadata.tor.us",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;i()(this,"metadataHost",void 0),i()(this,"serverTimeOffset",void 0),this.metadataHost=t,this.serverTimeOffset=e}static setAPIKey(t){Object(o["e"])(t)}static setEmbedHost(t){Object(o["f"])(t)}generateMetadataParams(e,n){var r,i;const o=f.keyFromPrivate(n,"hex"),s={data:e,timestamp:Math.floor(this.serverTimeOffset+Date.now()/1e3).toString(16)},u=o.sign(d(a()(s)));return{pub_key_X:o.getPublic().getX().toString("hex"),pub_key_Y:o.getPublic().getY().toString("hex"),set_data:s,signature:t.from(null!==(r=u.r.toString(16,64)+u.s.toString(16,64)+(null===(i=u.recoveryParam)||void 0===i?void 0:i.toString(16).padStart(2,"0").slice(-2)))&&void 0!==r?r:"00","hex").toString("base64")}}generatePubKeyParams(t){const e=f.keyFromPrivate(t,"hex");return{pub_key_X:e.getPublic().getX().toString("hex"),pub_key_Y:e.getPublic().getY().toString("hex")}}async setMetadata(t,e,n){const r=null!==e?m(m({},t),{},{namespace:e}):t,i=await Object(o["c"])("".concat(this.metadataHost,"/set"),r,n,{useAPIKey:!0});return i.message}async getMetadata(t,e,n){const r=null!==e?m(m({},t),{},{namespace:e}):t,i=await Object(o["c"])("".concat(this.metadataHost,"/get"),r,n,{useAPIKey:!0});return i.message}}const y="webauthn_torus_share",b="webauthn_device_share";function v(e){return{iv:t.from(e.iv,"hex"),ephemPublicKey:t.from(e.ephemPublicKey,"hex"),ciphertext:t.from(e.ciphertext,"hex"),mac:t.from(e.mac,"hex")}}function _(e){return{iv:t.from(e.iv).toString("hex"),ephemPublicKey:t.from(e.ephemPublicKey).toString("hex"),ciphertext:t.from(e.ciphertext).toString("hex"),mac:t.from(e.mac).toString("hex")}}async function w(e,n){const r=JSON.stringify(n),i=t.from(r,"utf-8"),o=await Object(h["encrypt"])(Object(h["getPublic"])(t.from(e,"hex")),i),s=_(o),a=JSON.stringify(s);return a}async function M(e,n){const r=JSON.parse(n),i=v(r),o=f.keyFromPrivate(e),s=await Object(h["decrypt"])(t.from(o.getPrivate().toString("hex",64),"hex"),i),a=s.toString("utf-8"),u=JSON.parse(a);return u}async function S(t,e,n){const r=f.keyFromPrivate(e),i=r.getPublic(),o=await t.getMetadata({pub_key_X:i.getX().toString(16),pub_key_Y:i.getY().toString(16)},n);if(!o)return null;const s=await M(e,o);return s}async function A(t,e,n,r){const i=await w(e,n),o=t.generateMetadataParams(i,e);await t.setMetadata(o,r)}async function k(e,n,r,i,o){const s=f.keyFromPrivate(r),a=s.getPrivate(),u=f.keyFromPublic({x:n.pub_key_X,y:n.pub_key_Y}),c=await S(e,r,y);let l={};c&&(l=c);const d=JSON.stringify(o),p=t.from(d,"utf-8"),m=await Object(h["encrypt"])(t.from(u.getPublic("hex"),"hex"),p),g=_(m);l[i]=g,await A(e,a.toString("hex",64),l,y)}async function E(t,e,n,r){const i=f.keyFromPrivate(e),o=i.getPrivate(),s=await S(t,e,b);let a={};s&&(a=s),a[n]=r,await A(t,o.toString("hex",64),a,b)}async function L(e,n,r,i){const o=await S(e,r,y);if(!o)return null;const s=o[i];if(!s)return null;const a=v(s),u=f.keyFromPrivate(n),c=u.getPrivate(),l=await Object(h["decrypt"])(t.from(c.toString("hex",64),"hex"),a),d=l.toString("utf-8"),p=JSON.parse(d);return p}async function D(t,e,n){const r=await S(t,e,b);return r?r[n]:null}}.call(this,n("b639").Buffer)},"80af":function(t,e,n){(function(t){(function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var s;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{s="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:n(4).Buffer}catch(L){}function a(t,e){var n=t.charCodeAt(e);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function u(t,e,n){var r=a(t,n);return n-1>=e&&(r|=a(t,n-1)<<4),r}function c(t,e,n,r){for(var i=0,o=Math.min(t.length,n),s=e;s=49?a-49+10:a>=17?a-17+10:a}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"===typeof t)return this._initNumber(t,e,n);if("object"===typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&(i++,this.negative=1),i=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);else if("le"===n)for(i=0,o=0;i>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r=e;r-=2)i=u(t,e,r)<=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else{var a=t.length-e;for(r=a%2===0?e+1:e;r=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8}this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,s=o%r,a=Math.min(o,o-s)+n,u=0,l=n;l1&&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},o.prototype.inspect=function(){return(this.red?""};var l=["","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],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(t){for(var e=new Array(t.bitLength()),n=0;n>>i}return e}function p(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,u=s/67108864|0;n.words[0]=a;for(var c=1;c>>26,h=67108863&u,d=Math.min(c,e.length-1),f=Math.max(0,c-t.length+1);f<=d;f++){var p=c-f|0;i=0|t.words[p],o=0|e.words[f],s=i*o+h,l+=s/67108864|0,h=67108863&s}n.words[c]=0|h,u=0|l}return 0!==u?n.words[c]=0|u:n.length--,n.strip()}o.prototype.toString=function(t,e){var n;if(t=t||10,e=0|e||1,16===t||"hex"===t){n="";for(var i=0,o=0,s=0;s>>24-i&16777215,n=0!==o||s!==this.length-1?l[6-u.length]+u+n:u+n,i+=2,i>=26&&(i-=26,s--)}0!==o&&(n=o.toString(16)+n);while(n.length%e!==0)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var c=h[t],f=d[t];n="";var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modn(f).toString(t);p=p.idivn(f),n=p.isZero()?m+n:l[c-m.length]+m+n}this.isZero()&&(n="0"+n);while(n.length%e!==0)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r("undefined"!==typeof s),this.toArrayLike(s,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var s,a,u="le"===e,c=new t(o),l=this.clone();if(u){for(a=0;!l.isZero();a++)s=l.andln(255),l.iushrn(8),c[a]=s;for(;a=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0===(8191&e)&&(n+=13,e>>>=13),0===(127&e)&&(n+=7,e>>>=7),0===(15&e)&&(n+=4,e>>>=4),0===(3&e)&&(n+=2,e>>>=2),0===(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;nt.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"===typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,s=0;s>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,f=0|s[1],p=8191&f,m=f>>>13,g=0|s[2],y=8191&g,b=g>>>13,v=0|s[3],_=8191&v,w=v>>>13,M=0|s[4],S=8191&M,A=M>>>13,k=0|s[5],E=8191&k,L=k>>>13,D=0|s[6],T=8191&D,O=D>>>13,x=0|s[7],I=8191&x,j=x>>>13,N=0|s[8],P=8191&N,C=N>>>13,R=0|s[9],Y=8191&R,B=R>>>13,z=0|a[0],U=8191&z,W=z>>>13,H=0|a[1],F=8191&H,q=H>>>13,V=0|a[2],K=8191&V,G=V>>>13,Q=0|a[3],Z=8191&Q,J=Q>>>13,$=0|a[4],X=8191&$,tt=$>>>13,et=0|a[5],nt=8191&et,rt=et>>>13,it=0|a[6],ot=8191&it,st=it>>>13,at=0|a[7],ut=8191&at,ct=at>>>13,lt=0|a[8],ht=8191<,dt=lt>>>13,ft=0|a[9],pt=8191&ft,mt=ft>>>13;n.negative=t.negative^e.negative,n.length=19,r=Math.imul(h,U),i=Math.imul(h,W),i=i+Math.imul(d,U)|0,o=Math.imul(d,W);var gt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(p,U),i=Math.imul(p,W),i=i+Math.imul(m,U)|0,o=Math.imul(m,W),r=r+Math.imul(h,F)|0,i=i+Math.imul(h,q)|0,i=i+Math.imul(d,F)|0,o=o+Math.imul(d,q)|0;var yt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(y,U),i=Math.imul(y,W),i=i+Math.imul(b,U)|0,o=Math.imul(b,W),r=r+Math.imul(p,F)|0,i=i+Math.imul(p,q)|0,i=i+Math.imul(m,F)|0,o=o+Math.imul(m,q)|0,r=r+Math.imul(h,K)|0,i=i+Math.imul(h,G)|0,i=i+Math.imul(d,K)|0,o=o+Math.imul(d,G)|0;var bt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(_,U),i=Math.imul(_,W),i=i+Math.imul(w,U)|0,o=Math.imul(w,W),r=r+Math.imul(y,F)|0,i=i+Math.imul(y,q)|0,i=i+Math.imul(b,F)|0,o=o+Math.imul(b,q)|0,r=r+Math.imul(p,K)|0,i=i+Math.imul(p,G)|0,i=i+Math.imul(m,K)|0,o=o+Math.imul(m,G)|0,r=r+Math.imul(h,Z)|0,i=i+Math.imul(h,J)|0,i=i+Math.imul(d,Z)|0,o=o+Math.imul(d,J)|0;var vt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(S,U),i=Math.imul(S,W),i=i+Math.imul(A,U)|0,o=Math.imul(A,W),r=r+Math.imul(_,F)|0,i=i+Math.imul(_,q)|0,i=i+Math.imul(w,F)|0,o=o+Math.imul(w,q)|0,r=r+Math.imul(y,K)|0,i=i+Math.imul(y,G)|0,i=i+Math.imul(b,K)|0,o=o+Math.imul(b,G)|0,r=r+Math.imul(p,Z)|0,i=i+Math.imul(p,J)|0,i=i+Math.imul(m,Z)|0,o=o+Math.imul(m,J)|0,r=r+Math.imul(h,X)|0,i=i+Math.imul(h,tt)|0,i=i+Math.imul(d,X)|0,o=o+Math.imul(d,tt)|0;var _t=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(E,U),i=Math.imul(E,W),i=i+Math.imul(L,U)|0,o=Math.imul(L,W),r=r+Math.imul(S,F)|0,i=i+Math.imul(S,q)|0,i=i+Math.imul(A,F)|0,o=o+Math.imul(A,q)|0,r=r+Math.imul(_,K)|0,i=i+Math.imul(_,G)|0,i=i+Math.imul(w,K)|0,o=o+Math.imul(w,G)|0,r=r+Math.imul(y,Z)|0,i=i+Math.imul(y,J)|0,i=i+Math.imul(b,Z)|0,o=o+Math.imul(b,J)|0,r=r+Math.imul(p,X)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(m,X)|0,o=o+Math.imul(m,tt)|0,r=r+Math.imul(h,nt)|0,i=i+Math.imul(h,rt)|0,i=i+Math.imul(d,nt)|0,o=o+Math.imul(d,rt)|0;var wt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(T,U),i=Math.imul(T,W),i=i+Math.imul(O,U)|0,o=Math.imul(O,W),r=r+Math.imul(E,F)|0,i=i+Math.imul(E,q)|0,i=i+Math.imul(L,F)|0,o=o+Math.imul(L,q)|0,r=r+Math.imul(S,K)|0,i=i+Math.imul(S,G)|0,i=i+Math.imul(A,K)|0,o=o+Math.imul(A,G)|0,r=r+Math.imul(_,Z)|0,i=i+Math.imul(_,J)|0,i=i+Math.imul(w,Z)|0,o=o+Math.imul(w,J)|0,r=r+Math.imul(y,X)|0,i=i+Math.imul(y,tt)|0,i=i+Math.imul(b,X)|0,o=o+Math.imul(b,tt)|0,r=r+Math.imul(p,nt)|0,i=i+Math.imul(p,rt)|0,i=i+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0,r=r+Math.imul(h,ot)|0,i=i+Math.imul(h,st)|0,i=i+Math.imul(d,ot)|0,o=o+Math.imul(d,st)|0;var Mt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(I,U),i=Math.imul(I,W),i=i+Math.imul(j,U)|0,o=Math.imul(j,W),r=r+Math.imul(T,F)|0,i=i+Math.imul(T,q)|0,i=i+Math.imul(O,F)|0,o=o+Math.imul(O,q)|0,r=r+Math.imul(E,K)|0,i=i+Math.imul(E,G)|0,i=i+Math.imul(L,K)|0,o=o+Math.imul(L,G)|0,r=r+Math.imul(S,Z)|0,i=i+Math.imul(S,J)|0,i=i+Math.imul(A,Z)|0,o=o+Math.imul(A,J)|0,r=r+Math.imul(_,X)|0,i=i+Math.imul(_,tt)|0,i=i+Math.imul(w,X)|0,o=o+Math.imul(w,tt)|0,r=r+Math.imul(y,nt)|0,i=i+Math.imul(y,rt)|0,i=i+Math.imul(b,nt)|0,o=o+Math.imul(b,rt)|0,r=r+Math.imul(p,ot)|0,i=i+Math.imul(p,st)|0,i=i+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0,r=r+Math.imul(h,ut)|0,i=i+Math.imul(h,ct)|0,i=i+Math.imul(d,ut)|0,o=o+Math.imul(d,ct)|0;var St=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(P,U),i=Math.imul(P,W),i=i+Math.imul(C,U)|0,o=Math.imul(C,W),r=r+Math.imul(I,F)|0,i=i+Math.imul(I,q)|0,i=i+Math.imul(j,F)|0,o=o+Math.imul(j,q)|0,r=r+Math.imul(T,K)|0,i=i+Math.imul(T,G)|0,i=i+Math.imul(O,K)|0,o=o+Math.imul(O,G)|0,r=r+Math.imul(E,Z)|0,i=i+Math.imul(E,J)|0,i=i+Math.imul(L,Z)|0,o=o+Math.imul(L,J)|0,r=r+Math.imul(S,X)|0,i=i+Math.imul(S,tt)|0,i=i+Math.imul(A,X)|0,o=o+Math.imul(A,tt)|0,r=r+Math.imul(_,nt)|0,i=i+Math.imul(_,rt)|0,i=i+Math.imul(w,nt)|0,o=o+Math.imul(w,rt)|0,r=r+Math.imul(y,ot)|0,i=i+Math.imul(y,st)|0,i=i+Math.imul(b,ot)|0,o=o+Math.imul(b,st)|0,r=r+Math.imul(p,ut)|0,i=i+Math.imul(p,ct)|0,i=i+Math.imul(m,ut)|0,o=o+Math.imul(m,ct)|0,r=r+Math.imul(h,ht)|0,i=i+Math.imul(h,dt)|0,i=i+Math.imul(d,ht)|0,o=o+Math.imul(d,dt)|0;var At=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(Y,U),i=Math.imul(Y,W),i=i+Math.imul(B,U)|0,o=Math.imul(B,W),r=r+Math.imul(P,F)|0,i=i+Math.imul(P,q)|0,i=i+Math.imul(C,F)|0,o=o+Math.imul(C,q)|0,r=r+Math.imul(I,K)|0,i=i+Math.imul(I,G)|0,i=i+Math.imul(j,K)|0,o=o+Math.imul(j,G)|0,r=r+Math.imul(T,Z)|0,i=i+Math.imul(T,J)|0,i=i+Math.imul(O,Z)|0,o=o+Math.imul(O,J)|0,r=r+Math.imul(E,X)|0,i=i+Math.imul(E,tt)|0,i=i+Math.imul(L,X)|0,o=o+Math.imul(L,tt)|0,r=r+Math.imul(S,nt)|0,i=i+Math.imul(S,rt)|0,i=i+Math.imul(A,nt)|0,o=o+Math.imul(A,rt)|0,r=r+Math.imul(_,ot)|0,i=i+Math.imul(_,st)|0,i=i+Math.imul(w,ot)|0,o=o+Math.imul(w,st)|0,r=r+Math.imul(y,ut)|0,i=i+Math.imul(y,ct)|0,i=i+Math.imul(b,ut)|0,o=o+Math.imul(b,ct)|0,r=r+Math.imul(p,ht)|0,i=i+Math.imul(p,dt)|0,i=i+Math.imul(m,ht)|0,o=o+Math.imul(m,dt)|0,r=r+Math.imul(h,pt)|0,i=i+Math.imul(h,mt)|0,i=i+Math.imul(d,pt)|0,o=o+Math.imul(d,mt)|0;var kt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(Y,F),i=Math.imul(Y,q),i=i+Math.imul(B,F)|0,o=Math.imul(B,q),r=r+Math.imul(P,K)|0,i=i+Math.imul(P,G)|0,i=i+Math.imul(C,K)|0,o=o+Math.imul(C,G)|0,r=r+Math.imul(I,Z)|0,i=i+Math.imul(I,J)|0,i=i+Math.imul(j,Z)|0,o=o+Math.imul(j,J)|0,r=r+Math.imul(T,X)|0,i=i+Math.imul(T,tt)|0,i=i+Math.imul(O,X)|0,o=o+Math.imul(O,tt)|0,r=r+Math.imul(E,nt)|0,i=i+Math.imul(E,rt)|0,i=i+Math.imul(L,nt)|0,o=o+Math.imul(L,rt)|0,r=r+Math.imul(S,ot)|0,i=i+Math.imul(S,st)|0,i=i+Math.imul(A,ot)|0,o=o+Math.imul(A,st)|0,r=r+Math.imul(_,ut)|0,i=i+Math.imul(_,ct)|0,i=i+Math.imul(w,ut)|0,o=o+Math.imul(w,ct)|0,r=r+Math.imul(y,ht)|0,i=i+Math.imul(y,dt)|0,i=i+Math.imul(b,ht)|0,o=o+Math.imul(b,dt)|0,r=r+Math.imul(p,pt)|0,i=i+Math.imul(p,mt)|0,i=i+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Et=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(Y,K),i=Math.imul(Y,G),i=i+Math.imul(B,K)|0,o=Math.imul(B,G),r=r+Math.imul(P,Z)|0,i=i+Math.imul(P,J)|0,i=i+Math.imul(C,Z)|0,o=o+Math.imul(C,J)|0,r=r+Math.imul(I,X)|0,i=i+Math.imul(I,tt)|0,i=i+Math.imul(j,X)|0,o=o+Math.imul(j,tt)|0,r=r+Math.imul(T,nt)|0,i=i+Math.imul(T,rt)|0,i=i+Math.imul(O,nt)|0,o=o+Math.imul(O,rt)|0,r=r+Math.imul(E,ot)|0,i=i+Math.imul(E,st)|0,i=i+Math.imul(L,ot)|0,o=o+Math.imul(L,st)|0,r=r+Math.imul(S,ut)|0,i=i+Math.imul(S,ct)|0,i=i+Math.imul(A,ut)|0,o=o+Math.imul(A,ct)|0,r=r+Math.imul(_,ht)|0,i=i+Math.imul(_,dt)|0,i=i+Math.imul(w,ht)|0,o=o+Math.imul(w,dt)|0,r=r+Math.imul(y,pt)|0,i=i+Math.imul(y,mt)|0,i=i+Math.imul(b,pt)|0,o=o+Math.imul(b,mt)|0;var Lt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,r=Math.imul(Y,Z),i=Math.imul(Y,J),i=i+Math.imul(B,Z)|0,o=Math.imul(B,J),r=r+Math.imul(P,X)|0,i=i+Math.imul(P,tt)|0,i=i+Math.imul(C,X)|0,o=o+Math.imul(C,tt)|0,r=r+Math.imul(I,nt)|0,i=i+Math.imul(I,rt)|0,i=i+Math.imul(j,nt)|0,o=o+Math.imul(j,rt)|0,r=r+Math.imul(T,ot)|0,i=i+Math.imul(T,st)|0,i=i+Math.imul(O,ot)|0,o=o+Math.imul(O,st)|0,r=r+Math.imul(E,ut)|0,i=i+Math.imul(E,ct)|0,i=i+Math.imul(L,ut)|0,o=o+Math.imul(L,ct)|0,r=r+Math.imul(S,ht)|0,i=i+Math.imul(S,dt)|0,i=i+Math.imul(A,ht)|0,o=o+Math.imul(A,dt)|0,r=r+Math.imul(_,pt)|0,i=i+Math.imul(_,mt)|0,i=i+Math.imul(w,pt)|0,o=o+Math.imul(w,mt)|0;var Dt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,r=Math.imul(Y,X),i=Math.imul(Y,tt),i=i+Math.imul(B,X)|0,o=Math.imul(B,tt),r=r+Math.imul(P,nt)|0,i=i+Math.imul(P,rt)|0,i=i+Math.imul(C,nt)|0,o=o+Math.imul(C,rt)|0,r=r+Math.imul(I,ot)|0,i=i+Math.imul(I,st)|0,i=i+Math.imul(j,ot)|0,o=o+Math.imul(j,st)|0,r=r+Math.imul(T,ut)|0,i=i+Math.imul(T,ct)|0,i=i+Math.imul(O,ut)|0,o=o+Math.imul(O,ct)|0,r=r+Math.imul(E,ht)|0,i=i+Math.imul(E,dt)|0,i=i+Math.imul(L,ht)|0,o=o+Math.imul(L,dt)|0,r=r+Math.imul(S,pt)|0,i=i+Math.imul(S,mt)|0,i=i+Math.imul(A,pt)|0,o=o+Math.imul(A,mt)|0;var Tt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(Y,nt),i=Math.imul(Y,rt),i=i+Math.imul(B,nt)|0,o=Math.imul(B,rt),r=r+Math.imul(P,ot)|0,i=i+Math.imul(P,st)|0,i=i+Math.imul(C,ot)|0,o=o+Math.imul(C,st)|0,r=r+Math.imul(I,ut)|0,i=i+Math.imul(I,ct)|0,i=i+Math.imul(j,ut)|0,o=o+Math.imul(j,ct)|0,r=r+Math.imul(T,ht)|0,i=i+Math.imul(T,dt)|0,i=i+Math.imul(O,ht)|0,o=o+Math.imul(O,dt)|0,r=r+Math.imul(E,pt)|0,i=i+Math.imul(E,mt)|0,i=i+Math.imul(L,pt)|0,o=o+Math.imul(L,mt)|0;var Ot=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(Y,ot),i=Math.imul(Y,st),i=i+Math.imul(B,ot)|0,o=Math.imul(B,st),r=r+Math.imul(P,ut)|0,i=i+Math.imul(P,ct)|0,i=i+Math.imul(C,ut)|0,o=o+Math.imul(C,ct)|0,r=r+Math.imul(I,ht)|0,i=i+Math.imul(I,dt)|0,i=i+Math.imul(j,ht)|0,o=o+Math.imul(j,dt)|0,r=r+Math.imul(T,pt)|0,i=i+Math.imul(T,mt)|0,i=i+Math.imul(O,pt)|0,o=o+Math.imul(O,mt)|0;var xt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(Y,ut),i=Math.imul(Y,ct),i=i+Math.imul(B,ut)|0,o=Math.imul(B,ct),r=r+Math.imul(P,ht)|0,i=i+Math.imul(P,dt)|0,i=i+Math.imul(C,ht)|0,o=o+Math.imul(C,dt)|0,r=r+Math.imul(I,pt)|0,i=i+Math.imul(I,mt)|0,i=i+Math.imul(j,pt)|0,o=o+Math.imul(j,mt)|0;var It=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(Y,ht),i=Math.imul(Y,dt),i=i+Math.imul(B,ht)|0,o=Math.imul(B,dt),r=r+Math.imul(P,pt)|0,i=i+Math.imul(P,mt)|0,i=i+Math.imul(C,pt)|0,o=o+Math.imul(C,mt)|0;var jt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(Y,pt),i=Math.imul(Y,mt),i=i+Math.imul(B,pt)|0,o=Math.imul(B,mt);var Nt=(c+r|0)+((8191&i)<<13)|0;return c=(o+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,u[0]=gt,u[1]=yt,u[2]=bt,u[3]=vt,u[4]=_t,u[5]=wt,u[6]=Mt,u[7]=St,u[8]=At,u[9]=kt,u[10]=Et,u[11]=Lt,u[12]=Dt,u[13]=Tt,u[14]=Ot,u[15]=xt,u[16]=It,u[17]=jt,u[18]=Nt,0!==c&&(u[19]=c,n.length++),n};function g(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o>>26)|0,i+=s>>>26,s&=67108863}n.words[o]=a,r=s,s=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}function y(t,e,n){var r=new b;return r.mulp(t,e,n)}function b(t,e){this.x=t,this.y=e}Math.imul||(m=p),o.prototype.mulTo=function(t,e){var n,r=this.length+t.length;return n=10===this.length&&10===t.length?m(this,t,e):r<63?p(this,t,e):r<1024?g(this,t,e):y(this,t,e),n},b.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r>=1;return r},b.prototype.permute=function(t,e,n,r,i,o){for(var s=0;s>>=1)i++;return 1<>>=13,n[2*s+1]=8191&o,o>>>=13;for(s=2*e;s>=26,e+=i/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=f(t);if(0===e.length)return new o(1);for(var n=this,r=0;r=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var s=0;for(e=0;e>>26-n}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<s)for(this.length-=s,c=0;c=0&&(0!==l||c>=i);c--){var h=0|this.words[c];this.words[c]=l<<26-o|h>>>o,l=h&a}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"===typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i>26,this.words[i+n]=67108863&o;if(0===a)return this.strip();for(r(-1===a),a=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=this.length-t.length,r=this.clone(),i=t,s=0|i.words[i.length-1],a=this._countBits(s);n=26-a,0!==n&&(i=i.ushln(n),r.iushln(n),s=0|i.words[i.length-1]);var u,c=r.length-i.length;if("mod"!==e){u=new o(null),u.length=c+1,u.words=new Array(u.length);for(var l=0;l=0;d--){var f=67108864*(0|r.words[i.length+d])+(0|r.words[i.length+d-1]);f=Math.min(f/s|0,67108863),r._ishlnsubmul(i,f,d);while(0!==r.negative)f--,r.negative=0,r._ishlnsubmul(i,1,d),r.isZero()||(r.negative^=1);u&&(u.words[d]=f)}return u&&u.strip(),r.strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:u||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(s=a.mod.neg(),n&&0!==s.negative&&s.iadd(t)),{div:i,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),n&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,s,a},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i=new o(1),s=new o(0),a=new o(0),u=new o(1),c=0;while(e.isEven()&&n.isEven())e.iushrn(1),n.iushrn(1),++c;var l=n.clone(),h=e.clone();while(!e.isZero()){for(var d=0,f=1;0===(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0){e.iushrn(d);while(d-- >0)(i.isOdd()||s.isOdd())&&(i.iadd(l),s.isub(h)),i.iushrn(1),s.iushrn(1)}for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0){n.iushrn(p);while(p-- >0)(a.isOdd()||u.isOdd())&&(a.iadd(l),u.isub(h)),a.iushrn(1),u.iushrn(1)}e.cmp(n)>=0?(e.isub(n),i.isub(a),s.isub(u)):(n.isub(e),a.isub(i),u.isub(s))}return{a:a,b:u,gcd:n.iushln(c)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i,s=new o(1),a=new o(0),u=n.clone();while(e.cmpn(1)>0&&n.cmpn(1)>0){for(var c=0,l=1;0===(e.words[0]&l)&&c<26;++c,l<<=1);if(c>0){e.iushrn(c);while(c-- >0)s.isOdd()&&s.iadd(u),s.iushrn(1)}for(var h=0,d=1;0===(n.words[0]&d)&&h<26;++h,d<<=1);if(h>0){n.iushrn(h);while(h-- >0)a.isOdd()&&a.iadd(u),a.iushrn(1)}e.cmp(n)>=0?(e.isub(n),s.isub(a)):(n.isub(e),a.isub(s))}return i=0===e.cmpn(1)?s:a,i.cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);do{while(e.isEven())e.iushrn(1);while(n.isEven())n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}while(1);return n.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"===typeof t);var e=t%26,n=(t-e)/26,i=1<>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){ri&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new k(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function _(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function S(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function E(t){k.call(this,t),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)}_.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},_.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),n=this.imulK(n),n=n.iadd(this.tmp),e=n.bitLength()}while(e>this.n);var r=e0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},_.prototype.split=function(t,e){t.iushrn(this.n,0,e)},_.prototype.imulK=function(t){return t.imul(this.k)},i(w,_),w.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i>>22,o=s}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new w;else if("p224"===t)e=new M;else if("p192"===t)e=new S;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new A}return v[t]=e,e},k.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},k.prototype._verify2=function(t,e){r(0===(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},k.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},k.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},k.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},k.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},k.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},k.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},k.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},k.prototype.isqr=function(t){return this.imul(t,t.clone())},k.prototype.sqr=function(t){return this.mul(t,t)},k.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2===1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}var i=this.m.subn(1),s=0;while(!i.isZero()&&0===i.andln(1))s++,i.iushrn(1);r(!i.isZero());var a=new o(1).toRed(this),u=a.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();l=new o(2*l*l).toRed(this);while(0!==this.pow(l,c).cmp(u))l.redIAdd(u);var h=this.pow(l,i),d=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),p=s;while(0!==f.cmp(a)){for(var m=f,g=0;0!==m.cmp(a);g++)m=m.redSqr();r(g=0;i--){for(var l=e.words[i],h=c-1;h>=0;h--){var d=l>>h&1;s!==r[0]&&(s=this.sqr(s)),0!==d||0!==a?(a<<=1,a|=d,u++,(u===n||0===i&&0===h)&&(s=this.mul(s,r[a]),u=0,a=0)):u=0}c=26}return s},k.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},k.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new E(t)},i(E,k),E.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},E.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},E.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).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)},E.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},E.prototype.invm=function(t){var e=this.imod(t._invmp(this.m).mul(this.r2));return e._forceRed(this)}})(t,this)}).call(this,n("62e4")(t))},8155:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration function e(t,e,n,r){var i=t+" ";switch(n){case"s":return e||r?"nekaj sekund":"nekaj sekundami";case"ss":return i+=1===t?e?"sekundo":"sekundi":2===t?e||r?"sekundi":"sekundah":t<5?e||r?"sekunde":"sekundah":"sekund",i;case"m":return e?"ena minuta":"eno minuto";case"mm":return i+=1===t?e?"minuta":"minuto":2===t?e||r?"minuti":"minutama":t<5?e||r?"minute":"minutami":e||r?"minut":"minutami",i;case"h":return e?"ena ura":"eno uro";case"hh":return i+=1===t?e?"ura":"uro":2===t?e||r?"uri":"urama":t<5?e||r?"ure":"urami":e||r?"ur":"urami",i;case"d":return e||r?"en dan":"enim dnem";case"dd":return i+=1===t?e||r?"dan":"dnem":2===t?e||r?"dni":"dnevoma":e||r?"dni":"dnevi",i;case"M":return e||r?"en mesec":"enim mesecem";case"MM":return i+=1===t?e||r?"mesec":"mesecem":2===t?e||r?"meseca":"mesecema":t<5?e||r?"mesece":"meseci":e||r?"mesecev":"meseci",i;case"y":return e||r?"eno leto":"enim letom";case"yy":return i+=1===t?e||r?"leto":"letom":2===t?e||r?"leti":"letoma":t<5?e||r?"leta":"leti":e||r?"let":"leti",i}}var n=t.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},"81e9":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",e[7],e[8],e[9]];function r(t,e,n,r){var o="";switch(n){case"s":return r?"muutaman sekunnin":"muutama sekunti";case"ss":o=r?"sekunnin":"sekuntia";break;case"m":return r?"minuutin":"minuutti";case"mm":o=r?"minuutin":"minuuttia";break;case"h":return r?"tunnin":"tunti";case"hh":o=r?"tunnin":"tuntia";break;case"d":return r?"päivän":"päivä";case"dd":o=r?"päivän":"päivää";break;case"M":return r?"kuukauden":"kuukausi";case"MM":o=r?"kuukauden":"kuukautta";break;case"y":return r?"vuoden":"vuosi";case"yy":o=r?"vuoden":"vuotta";break}return o=i(t,r)+" "+o,o}function i(t,r){return t<10?r?n[t]:e[t]:t}var o=t.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return o}))},8217:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WalletWindowClosedError=e.WalletWindowBlockedError=e.WalletTimeoutError=e.WalletSignTransactionError=e.WalletSignMessageError=e.WalletSendTransactionError=e.WalletNotConnectedError=e.WalletKeypairError=e.WalletPublicKeyError=e.WalletAccountError=e.WalletDisconnectionError=e.WalletDisconnectedError=e.WalletConnectionError=e.WalletConfigError=e.WalletLoadError=e.WalletNotReadyError=e.WalletError=void 0;class r extends Error{constructor(t,e){super(t),this.error=e}}e.WalletError=r;class i extends r{constructor(){super(...arguments),this.name="WalletNotReadyError"}}e.WalletNotReadyError=i;class o extends r{constructor(){super(...arguments),this.name="WalletLoadError"}}e.WalletLoadError=o;class s extends r{constructor(){super(...arguments),this.name="WalletConfigError"}}e.WalletConfigError=s;class a extends r{constructor(){super(...arguments),this.name="WalletConnectionError"}}e.WalletConnectionError=a;class u extends r{constructor(){super(...arguments),this.name="WalletDisconnectedError"}}e.WalletDisconnectedError=u;class c extends r{constructor(){super(...arguments),this.name="WalletDisconnectionError"}}e.WalletDisconnectionError=c;class l extends r{constructor(){super(...arguments),this.name="WalletAccountError"}}e.WalletAccountError=l;class h extends r{constructor(){super(...arguments),this.name="WalletPublicKeyError"}}e.WalletPublicKeyError=h;class d extends r{constructor(){super(...arguments),this.name="WalletKeypairError"}}e.WalletKeypairError=d;class f extends r{constructor(){super(...arguments),this.name="WalletNotConnectedError"}}e.WalletNotConnectedError=f;class p extends r{constructor(){super(...arguments),this.name="WalletSendTransactionError"}}e.WalletSendTransactionError=p;class m extends r{constructor(){super(...arguments),this.name="WalletSignMessageError"}}e.WalletSignMessageError=m;class g extends r{constructor(){super(...arguments),this.name="WalletSignTransactionError"}}e.WalletSignTransactionError=g;class y extends r{constructor(){super(...arguments),this.name="WalletTimeoutError"}}e.WalletTimeoutError=y;class b extends r{constructor(){super(...arguments),this.name="WalletWindowBlockedError"}}e.WalletWindowBlockedError=b;class v extends r{constructor(){super(...arguments),this.name="WalletWindowClosedError"}}e.WalletWindowClosedError=v},8230:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=t.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(t){return"م"===t},meridiem:function(t,e,n){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(t){return t.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(t){return n[t]})).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"،")},week:{dow:0,doy:6}});return r}))},"825a":function(t,e,n){var r=n("861d"),i=String,o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not an object")}},"82f0":function(t,e,n){var r=n("39f5"),i=n("8707").Buffer,o=n("6430"),s=n("3fb5"),a=n("3f62"),u=n("8c8a"),c=n("bd9d");function l(t,e){var n=0;t.length!==e.length&&n++;for(var r=Math.min(t.length,e.length),i=0;iclearInterval(r)),"loading"===document.readyState&&(document.addEventListener("DOMContentLoaded",n,{once:!0}),e.push(()=>document.removeEventListener("DOMContentLoaded",n))),"complete"!==document.readyState&&(window.addEventListener("load",n,{once:!0}),e.push(()=>window.removeEventListener("load",n))),n()}e.BaseWalletAdapter=o,e.scopePollingDetectionStrategy=s},8360:function(t,e,n){"use strict";const r=n("d1c8").Reporter,i=n("6283").EncoderBuffer,o=n("6283").DecoderBuffer,s=n("da3e"),a=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],u=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(a),c=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function l(t,e,n){const r={};this._baseState=r,r.name=n,r.enc=t,r.parent=e||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r["default"]=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}t.exports=l;const h=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];l.prototype.clone=function(){const t=this._baseState,e={};h.forEach((function(n){e[n]=t[n]}));const n=new this.constructor(e.parent);return n._baseState=e,n},l.prototype._wrap=function(){const t=this._baseState;u.forEach((function(e){this[e]=function(){const n=new this.constructor(this);return t.children.push(n),n[e].apply(n,arguments)}}),this)},l.prototype._init=function(t){const e=this._baseState;s(null===e.parent),t.call(this),e.children=e.children.filter((function(t){return t._baseState.parent===this}),this),s.equal(e.children.length,1,"Root node can have only one child")},l.prototype._useArgs=function(t){const e=this._baseState,n=t.filter((function(t){return t instanceof this.constructor}),this);t=t.filter((function(t){return!(t instanceof this.constructor)}),this),0!==n.length&&(s(null===e.children),e.children=n,n.forEach((function(t){t._baseState.parent=this}),this)),0!==t.length&&(s(null===e.args),e.args=t,e.reverseArgs=t.map((function(t){if("object"!==typeof t||t.constructor!==Object)return t;const e={};return Object.keys(t).forEach((function(n){n==(0|n)&&(n|=0);const r=t[n];e[r]=n})),e})))},c.forEach((function(t){l.prototype[t]=function(){const e=this._baseState;throw new Error(t+" not implemented for encoding: "+e.enc)}})),a.forEach((function(t){l.prototype[t]=function(){const e=this._baseState,n=Array.prototype.slice.call(arguments);return s(null===e.tag),e.tag=t,this._useArgs(n),this}})),l.prototype.use=function(t){s(t);const e=this._baseState;return s(null===e.use),e.use=t,this},l.prototype.optional=function(){const t=this._baseState;return t.optional=!0,this},l.prototype.def=function(t){const e=this._baseState;return s(null===e["default"]),e["default"]=t,e.optional=!0,this},l.prototype.explicit=function(t){const e=this._baseState;return s(null===e.explicit&&null===e.implicit),e.explicit=t,this},l.prototype.implicit=function(t){const e=this._baseState;return s(null===e.explicit&&null===e.implicit),e.implicit=t,this},l.prototype.obj=function(){const t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},l.prototype.key=function(t){const e=this._baseState;return s(null===e.key),e.key=t,this},l.prototype.any=function(){const t=this._baseState;return t.any=!0,this},l.prototype.choice=function(t){const e=this._baseState;return s(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map((function(e){return t[e]}))),this},l.prototype.contains=function(t){const e=this._baseState;return s(null===e.use),e.contains=t,this},l.prototype._decode=function(t,e){const n=this._baseState;if(null===n.parent)return t.wrapResult(n.children[0]._decode(t,e));let r,i=n["default"],s=!0,a=null;if(null!==n.key&&(a=t.enterKey(n.key)),n.optional){let r=null;if(null!==n.explicit?r=n.explicit:null!==n.implicit?r=n.implicit:null!==n.tag&&(r=n.tag),null!==r||n.any){if(s=this._peekTag(t,r,n.any),t.isError(s))return s}else{const r=t.save();try{null===n.choice?this._decodeGeneric(n.tag,t,e):this._decodeChoice(t,e),s=!0}catch(u){s=!1}t.restore(r)}}if(n.obj&&s&&(r=t.enterObject()),s){if(null!==n.explicit){const e=this._decodeTag(t,n.explicit);if(t.isError(e))return e;t=e}const r=t.offset;if(null===n.use&&null===n.choice){let e;n.any&&(e=t.save());const r=this._decodeTag(t,null!==n.implicit?n.implicit:n.tag,n.any);if(t.isError(r))return r;n.any?i=t.raw(e):t=r}if(e&&e.track&&null!==n.tag&&e.track(t.path(),r,t.length,"tagged"),e&&e.track&&null!==n.tag&&e.track(t.path(),t.offset,t.length,"content"),n.any||(i=null===n.choice?this._decodeGeneric(n.tag,t,e):this._decodeChoice(t,e)),t.isError(i))return i;if(n.any||null!==n.choice||null===n.children||n.children.forEach((function(n){n._decode(t,e)})),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){const r=new o(i);i=this._getUse(n.contains,t._reporterState.obj)._decode(r,e)}}return n.obj&&s&&(i=t.leaveObject(r)),null===n.key||null===i&&!0!==s?null!==a&&t.exitKey(a):t.leaveKey(a,n.key,i),i},l.prototype._decodeGeneric=function(t,e,n){const r=this._baseState;return"seq"===t||"set"===t?null:"seqof"===t||"setof"===t?this._decodeList(e,t,r.args[0],n):/str$/.test(t)?this._decodeStr(e,t,n):"objid"===t&&r.args?this._decodeObjid(e,r.args[0],r.args[1],n):"objid"===t?this._decodeObjid(e,null,null,n):"gentime"===t||"utctime"===t?this._decodeTime(e,t,n):"null_"===t?this._decodeNull(e,n):"bool"===t?this._decodeBool(e,n):"objDesc"===t?this._decodeStr(e,t,n):"int"===t||"enum"===t?this._decodeInt(e,r.args&&r.args[0],n):null!==r.use?this._getUse(r.use,e._reporterState.obj)._decode(e,n):e.error("unknown tag: "+t)},l.prototype._getUse=function(t,e){const n=this._baseState;return n.useDecoder=this._use(t,e),s(null===n.useDecoder._baseState.parent),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},l.prototype._decodeChoice=function(t,e){const n=this._baseState;let r=null,i=!1;return Object.keys(n.choice).some((function(o){const s=t.save(),a=n.choice[o];try{const n=a._decode(t,e);if(t.isError(n))return!1;r={type:o,value:n},i=!0}catch(u){return t.restore(s),!1}return!0}),this),i?r:t.error("Choice not matched")},l.prototype._createEncoderBuffer=function(t){return new i(t,this.reporter)},l.prototype._encode=function(t,e,n){const r=this._baseState;if(null!==r["default"]&&r["default"]===t)return;const i=this._encodeValue(t,e,n);return void 0===i||this._skipDefault(i,e,n)?void 0:i},l.prototype._encodeValue=function(t,e,n){const i=this._baseState;if(null===i.parent)return i.children[0]._encode(t,e||new r);let o=null;if(this.reporter=e,i.optional&&void 0===t){if(null===i["default"])return;t=i["default"]}let s=null,a=!1;if(i.any)o=this._createEncoderBuffer(t);else if(i.choice)o=this._encodeChoice(t,e);else if(i.contains)s=this._getUse(i.contains,n)._encode(t,e),a=!0;else if(i.children)s=i.children.map((function(n){if("null_"===n._baseState.tag)return n._encode(null,e,t);if(null===n._baseState.key)return e.error("Child should have a key");const r=e.enterKey(n._baseState.key);if("object"!==typeof t)return e.error("Child expected, but input is not object");const i=n._encode(t[n._baseState.key],e,t);return e.leaveKey(r),i}),this).filter((function(t){return t})),s=this._createEncoderBuffer(s);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return e.error("Too many args for : "+i.tag);if(!Array.isArray(t))return e.error("seqof/setof, but data is not Array");const n=this.clone();n._baseState.implicit=null,s=this._createEncoderBuffer(t.map((function(n){const r=this._baseState;return this._getUse(r.args[0],t)._encode(n,e)}),n))}else null!==i.use?o=this._getUse(i.use,n)._encode(t,e):(s=this._encodePrimitive(i.tag,t),a=!0);if(!i.any&&null===i.choice){const t=null!==i.implicit?i.implicit:i.tag,n=null===i.implicit?"universal":"context";null===t?null===i.use&&e.error("Tag could be omitted only for .use()"):null===i.use&&(o=this._encodeComposite(t,a,n,s))}return null!==i.explicit&&(o=this._encodeComposite(i.explicit,!1,"context",o)),o},l.prototype._encodeChoice=function(t,e){const n=this._baseState,r=n.choice[t.type];return r||s(!1,t.type+" not found in "+JSON.stringify(Object.keys(n.choice))),r._encode(t.value,e)},l.prototype._encodePrimitive=function(t,e){const n=this._baseState;if(/str$/.test(t))return this._encodeStr(e,t);if("objid"===t&&n.args)return this._encodeObjid(e,n.reverseArgs[0],n.args[1]);if("objid"===t)return this._encodeObjid(e,null,null);if("gentime"===t||"utctime"===t)return this._encodeTime(e,t);if("null_"===t)return this._encodeNull();if("int"===t||"enum"===t)return this._encodeInt(e,n.args&&n.reverseArgs[0]);if("bool"===t)return this._encodeBool(e);if("objDesc"===t)return this._encodeStr(e,t);throw new Error("Unsupported tag: "+t)},l.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},l.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(t)}},8378:function(t,e,n){"use strict";n.r(e),function(t){var r=n("f685"),i=n("c86d"),o=n.n(i),s=n("8854"),a=n("bd42"),u=n("8ead"),c=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),l=function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function s(t){try{u(r.next(t))}catch(e){o(e)}}function a(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(s,a)}u((r=r.apply(t,e||[])).next())}))},h=function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(t){return function(e){return u([t,e])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done)s.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return s},f=[{vendorId:s["b"]}],p=function(){return Promise.resolve(!(!window.navigator||!window.navigator.hid))},m=function(){var t=navigator.hid;if(!t)throw new u["TransportError"]("navigator.hid is not supported","HIDNotSupported");return t};function g(){return l(this,void 0,void 0,(function(){var t;return h(this,(function(e){switch(e.label){case 0:return[4,m().requestDevice({filters:f})];case 1:return t=e.sent(),Array.isArray(t)?[2,t]:[2,[t]]}}))}))}function y(){return l(this,void 0,void 0,(function(){var t;return h(this,(function(e){switch(e.label){case 0:return[4,m().getDevices()];case 1:return t=e.sent(),[2,t.filter((function(t){return t.vendorId===s["b"]}))]}}))}))}function b(){return l(this,void 0,void 0,(function(){var t,e;return h(this,(function(n){switch(n.label){case 0:return[4,y()];case 1:return t=n.sent(),t.length>0?[2,t[0]]:[4,g()];case 2:return e=n.sent(),[2,e[0]]}}))}))}var v=function(e){function n(n){var r=e.call(this)||this;return r.channel=Math.floor(65535*Math.random()),r.packetSize=64,r.inputs=[],r.read=function(){return r.inputs.length?Promise.resolve(r.inputs.shift()):new Promise((function(t){r.inputCallback=t}))},r.onInputReport=function(e){var n=t.from(e.data.buffer);r.inputCallback?(r.inputCallback(n),r.inputCallback=null):r.inputs.push(n)},r._disconnectEmitted=!1,r._emitDisconnect=function(t){r._disconnectEmitted||(r._disconnectEmitted=!0,r.emit("disconnect",t))},r.exchange=function(t){return l(r,void 0,void 0,(function(){var e,n=this;return h(this,(function(r){switch(r.label){case 0:return[4,this.exchangeAtomicImpl((function(){return l(n,void 0,void 0,(function(){var e,n,r,i,s,u,c,l,d;return h(this,(function(h){switch(h.label){case 0:e=this,n=e.channel,r=e.packetSize,Object(a["a"])("apdu","=> "+t.toString("hex")),i=o()(n,r),s=i.makeBlocks(t),u=0,h.label=1;case 1:return ut?"object"!==typeof t?{loose:!0}:n.filter(e=>t[e]).reduce((t,e)=>(t[e]=!0,t),{}):{};t.exports=r},8463:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.rlphash=e.ripemd160FromArray=e.ripemd160FromString=e.ripemd160=e.sha256FromArray=e.sha256FromString=e.sha256=e.keccakFromArray=e.keccakFromHexString=e.keccakFromString=e.keccak256=e.keccak=void 0;var r=n("c331"),i=n("98e6"),o=n("ce43"),s=n("0c30"),a=n("29b1"),u=function(t,e){switch(void 0===e&&(e=256),(0,a.assertIsBuffer)(t),e){case 224:return(0,r.keccak224)(t);case 256:return(0,r.keccak256)(t);case 384:return(0,r.keccak384)(t);case 512:return(0,r.keccak512)(t);default:throw new Error("Invald algorithm: keccak".concat(e))}};e.keccak=u;var c=function(t){return(0,e.keccak)(t)};e.keccak256=c;var l=function(n,r){void 0===r&&(r=256),(0,a.assertIsString)(n);var i=t.from(n,"utf8");return(0,e.keccak)(i,r)};e.keccakFromString=l;var h=function(t,n){return void 0===n&&(n=256),(0,a.assertIsHexString)(t),(0,e.keccak)((0,s.toBuffer)(t),n)};e.keccakFromHexString=h;var d=function(t,n){return void 0===n&&(n=256),(0,a.assertIsArray)(t),(0,e.keccak)((0,s.toBuffer)(t),n)};e.keccakFromArray=d;var f=function(t){return t=(0,s.toBuffer)(t),i("sha256").update(t).digest()},p=function(t){return(0,a.assertIsBuffer)(t),f(t)};e.sha256=p;var m=function(t){return(0,a.assertIsString)(t),f(t)};e.sha256FromString=m;var g=function(t){return(0,a.assertIsArray)(t),f(t)};e.sha256FromArray=g;var y=function(t,e){t=(0,s.toBuffer)(t);var n=i("rmd160").update(t).digest();return!0===e?(0,s.setLengthLeft)(n,32):n},b=function(t,e){return(0,a.assertIsBuffer)(t),y(t,e)};e.ripemd160=b;var v=function(t,e){return(0,a.assertIsString)(t),y(t,e)};e.ripemd160FromString=v;var _=function(t,e){return(0,a.assertIsArray)(t),y(t,e)};e.ripemd160FromArray=_;var w=function(t){return(0,e.keccak)(o.rlp.encode(t))};e.rlphash=w}).call(this,n("b639").Buffer)},"848b":function(t,e,n){"use strict";var r=n("5cce").version,i=n("7917"),o={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){o[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));var s={};function a(t,e,n){if("object"!==typeof t)throw new i("options must be an object",i.ERR_BAD_OPTION_VALUE);var r=Object.keys(t),o=r.length;while(o-- >0){var s=r[o],a=e[s];if(a){var u=t[s],c=void 0===u||a(u,s,t);if(!0!==c)throw new i("option "+s+" must be "+c,i.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new i("Unknown option "+s,i.ERR_BAD_OPTION)}}o.transitional=function(t,e,n){function o(t,e){return"[Axios v"+r+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return function(n,r,a){if(!1===t)throw new i(o(r," has been removed"+(e?" in "+e:"")),i.ERR_DEPRECATED);return e&&!s[r]&&(s[r]=!0,console.warn(o(r," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,r,a)}},t.exports={assertOptions:a,validators:o}},"84aa":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Миналата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[Миналия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",w:"седмица",ww:"%d седмици",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(t){var e=t%10,n=t%100;return 0===t?t+"-ев":0===n?t+"-ен":n>10&&n<20?t+"-ти":1===e?t+"-ви":2===e?t+"-ри":7===e||8===e?t+"-ми":t+"-ти"},week:{dow:1,doy:7}});return e}))},8553:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function s(t){try{u(r.next(t))}catch(e){o(e)}}function a(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(s,a)}u((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.SolongWalletAdapter=e.SolongWalletName=void 0;const i=n("0a37"),o=n("64b9");e.SolongWalletName="Solong";class s extends i.BaseSignerWalletAdapter{constructor(t={}){super(),this.name=e.SolongWalletName,this.url="https://solongwallet.com",this.icon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAGlklEQVR4Ae3bA5DsyhfH8TNr49r2/du2bdu2bdu2zcdNrm3b9toz533rvctUn3Umk9p01WfdvVW/6nROBxJVS1rSkpa0pCUtaUlLWtKSpl4VXos3GJ4sujQFuUKfWl+qT730arzB8Ex9YksKcgXjFOCVeIPhBYydB8mawQ+yiGC8n0EN6zAVcgXhpQjoq1DDdsyDAAB9Pwo1HMC9INk0FIM8Bt1Qh9WohQQCvD+BtEMdtmC8I7y5aIE67MV0SBwDvB3qsE/UHwMJIpC/QB1OYiLEEeCPoQ7nMRcSwwDrao3Zl8aTIEGEUYlL0IAMXuQOr66UvsegDm+ExDJAPNiafSg0AlyIbmjAWX1aQzEkiH6T0QkNaEdpnAN8NNRhPcSF9e9el2ebBhyAuNBvGtLQgIuQOAd4D6jDMRQbM3AmOqEBDfq0xjJIEP3GohkakEFVjAP0y401sAsLnAE+pb6EsC5AA9J4sHsG+kX0PQR1eFJ8AwTWQh0+DjFm4a1Qh2/AOoz/BHX4ZdwD/CDU4aioX2GUMW+AOnB2bqiBBDHe86EOTYw5GRKJwQ/ijUM91OGTxgysxSmowzeNw7j08m5DHX4l7Igg2TY0g9hbLBZ+f7oxC98CdWjDvYzD+MVQh07GfEQsZyDgVWA71OGvorfnQQCAcqaYUFZDHW6j/itAoB70GcergzqsEa0rhGTTEA7mP0koK4xdyeOMmvBBhJU2zsjPMw7lu9O3zShpXheHk4hhcZ4w26AOG4RSxDiUfwZ12KdPqy+FBDHeV6EOZxizIg6HsMGbiQ5jdjzBXRfeefGg3tgbv9BYC0fhZE7sjUMY9Pf9rdcI5XtQh39BjBA/C3VYnM0zcgiDek+GOhzh93mQoMs7kIxze/eMhnxIEOPNM9bcFtTEeAb6I419axu/m2CsgxU4Aw1A/UxIUM/bO/9+cVkDDd5x42x8N1iH8Taow0NhHcZLoQ5Pi/MMzDMW+DTu7g6vIY9AdkAdHmaUMyn6roA6PD22AeLB6DbWplHG7LubfY+kfiIkiH5T0AJ1uFtMA1xUzOc1UIclzvCeXF+o7DygDlvds29RgVVzYj+K4xhgEX4NdcjgecE++rSL+ZdLmIxRB77Ose7l4XPIQB3eF8M60C/n8++ghltE/QLIFfqUiyUE8kOoYSW7jmLIFXeN4X0NaajDDlG/NG6XswrxKdxu+G/weh27j3wCej9uN9zEOjc3sObl4S243XBLhDfWE0mAMQjwZfhxDng7pG/8Sj4/ER/Gd/BdfBhPRGW2A/wxNAfcBOnFCHwZZ6GGs/gqapMAb/QEnIT20Uk8IQkQeB7aof3UihcM9wDvhyboANHXv1+IdWBOB2hsIftto+iSPEif8aGPcjrA50GHyPMiOIT9B/N5apaMgQT8D2poxMdwt8s+hkao4X9ZDxBTIdHwy/h8AeqQxhMhAU9BB9ThPMqHTYCYjU6owy3uPstSfL4Z6uZPC+Mk8gOomz8DEg3vXshAHb4MMXwZarhXGDPwa739w2j48623BPAniOFPUMPsMAL8INTw9AgDrLZOCmjFPEjA3WD1aUJVGAG+CGr4ECRCy6GGg3iyaF0+n/PwFByEGpaJ+qkw1sB7QA3/hUTozdBetFymvXhTWGVMOc7bp36/FhKRamNW9dcxZmpZiI+32ad+vAQSoWejGzpAXXh22Fek3wY1rDD2kVnijR3ExYQMPgkJOUB/nFW0Is3vnw6JhlHX9a4N70Iq/ACBv0MNu7J9WxHw7jaA2deFOtw32zeVHtHLWvMN0dtSkOzwS3spYy7iH1hx2d/wYdyTvnkR3BdeQjjerVBDN14JyZIfQWH5RC7e1rw32npZV54LCc+SPD5/HgqYD3WW5+gTqt6X+rA4v0701hRkKF0+bL+HTM9Hgv/MHH60wyvHWigsafwA1ZAhMguLoL34kbDcQEI1uAH8mcbuxPHImf8i5EMGxqvER9EI7cUqVMTl0Y6HoxHaBzvxNkyC9EEe7oEv4Sy0D/YQ+IS4ver1JNT38z7sWnwbb8TT8Cg8Gs/Gu/Ar7EEXtI/2ud7Ni0GAYCbiJDQiazA57k9nTcdqaJb9UtSvitXbmjavCJ9AMzRkJ/B80boUJBLhDe7Nw1/QCR1i9fgKRg6HByzvjZ/hInQQMjiCT2PSMHxC1a/l8wvwGxyG9kEaW/EtPI4xiiE5JcLrd6PxcLwM78SH8EG8Fc/H/UUXVUByGh8SSYBJgEmASYCJJMAkwBi6A3xCqZhiBz8+AAAAAElFTkSuQmCC",this._readyState="undefined"===typeof window||"undefined"===typeof document?i.WalletReadyState.Unsupported:i.WalletReadyState.NotDetected,this._connecting=!1,this._wallet=null,this._publicKey=null,this._readyState!==i.WalletReadyState.Unsupported&&(0,i.scopePollingDetectionStrategy)(()=>!!window.solong&&(this._readyState=i.WalletReadyState.Installed,this.emit("readyStateChange",this._readyState),!0))}get publicKey(){return this._publicKey}get connecting(){return this._connecting}get connected(){var t;return!!(null===(t=this._wallet)||void 0===t?void 0:t.currentAccount)}get readyState(){return this._readyState}connect(){return r(this,void 0,void 0,(function*(){try{if(this.connected||this.connecting)return;if(this._readyState!==i.WalletReadyState.Installed)throw new i.WalletNotReadyError;this._connecting=!0;const e=window.solong;let n,r;try{n=yield e.selectAccount()}catch(t){throw new i.WalletAccountError(null===t||void 0===t?void 0:t.message,t)}try{r=new o.PublicKey(n)}catch(t){throw new i.WalletPublicKeyError(null===t||void 0===t?void 0:t.message,t)}this._wallet=e,this._publicKey=r,this.emit("connect",r)}catch(t){throw this.emit("error",t),t}finally{this._connecting=!1}}))}disconnect(){return r(this,void 0,void 0,(function*(){this._wallet&&(this._wallet=null,this._publicKey=null),this.emit("disconnect")}))}signTransaction(t){return r(this,void 0,void 0,(function*(){try{const n=this._wallet;if(!n)throw new i.WalletNotConnectedError;try{return(yield n.signTransaction(t))||t}catch(e){throw new i.WalletSignTransactionError(null===e||void 0===e?void 0:e.message,e)}}catch(e){throw this.emit("error",e),e}}))}signAllTransactions(t){return r(this,void 0,void 0,(function*(){const e=[];for(const n of t)e.push(yield this.signTransaction(n));return e}))}}e.SolongWalletAdapter=s},"85b3":function(t,e,n){"use strict";const r=n("3fb5"),i=n("3768");function o(t){i.call(this,t),this.enc="pem"}r(o,i),t.exports=o,o.prototype.encode=function(t,e){const n=i.prototype.encode.call(this,t),r=n.toString("base64"),o=["-----BEGIN "+e.label+"-----"];for(let i=0;i>8,r=c.find((function(t){return t.productIdMM===n}));return r},d=[],f={};for(var p in u){var m=u[p],g=m.bluetoothSpec;if(g)for(var y=0;y15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null},f.prototype.flush=function(){var t=16-this.cache.length,e=o.allocUnsafe(t),n=-1;while(++n{const n=r(t.trim().replace(/^[=v]+/,""),e);return n?n.version:null};t.exports=i},"8b71":function(t,e,n){"use strict";function r(t){const e={};return Object.keys(t).forEach((function(n){(0|n)==n&&(n|=0);const r=t[n];e[r]=n})),e}e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=r(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=r(e.tag)},"8b95":function(t,e,n){"use strict";var r=n("c3c0"),i=n("b525");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]}r.inherits(o,i),t.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")}},"8bc9":function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n("ab30"),e)},"8be6":function(t,e,n){var r=n("8707").Buffer;t.exports=function(t,e,n){if(r.isBuffer(t))return t;if("string"===typeof t)return r.from(t,e);if(ArrayBuffer.isView(t))return r.from(t.buffer);throw new TypeError(n+" must be a string, a Buffer, a typed array or a DataView")}},"8c8a":function(t,e,n){(function(e){t.exports=function(t,n){for(var r=Math.min(t.length,n.length),i=new e(r),o=0;oi()(32).toString("hex");URL;s.a;u.a}).call(this,n("b639").Buffer)},"8d47":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration function e(t){return"undefined"!==typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}var n=t.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(t,e){return t?"string"===typeof e&&/D/.test(e.substring(0,e.indexOf("MMMM")))?this._monthsGenitiveEl[t.month()]:this._monthsNominativeEl[t.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(t,e,n){return t>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(t){return"μ"===(t+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(t,n){var r=this._calendarEl[t],i=n&&n.hours();return e(r)&&(r=r.apply(n)),r.replace("{}",i%12===1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}});return n}))},"8d57":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),r=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function i(t){return t%10<5&&t%10>1&&~~(t/10)%10!==1}function o(t,e,n){var r=t+" ";switch(n){case"ss":return r+(i(t)?"sekundy":"sekund");case"m":return e?"minuta":"minutę";case"mm":return r+(i(t)?"minuty":"minut");case"h":return e?"godzina":"godzinę";case"hh":return r+(i(t)?"godziny":"godzin");case"ww":return r+(i(t)?"tygodnie":"tygodni");case"MM":return r+(i(t)?"miesiące":"miesięcy");case"yy":return r+(i(t)?"lata":"lat")}}var s=t.defineLocale("pl",{months:function(t,r){return t?/D MMMM/.test(r)?n[t.month()]:e[t.month()]:e},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:o,m:o,mm:o,h:o,hh:o,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:o,M:"miesiąc",MM:o,y:"rok",yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return s}))},"8d8c":function(t,e,n){"use strict";(function(e,r){function i(t){var e=this;this.next=null,this.entry=null,this.finish=function(){q(e,t)}}var o;t.exports=D,D.WritableState=L;var s={deprecate:n("b7d1")},a=n("4c20"),u=n("b639").Buffer,c=e.Uint8Array||function(){};function l(t){return u.from(t)}function h(t){return u.isBuffer(t)||t instanceof c}var d,f=n("98b1"),p=n("2b43"),m=p.getHighWaterMark,g=n("c5f8").codes,y=g.ERR_INVALID_ARG_TYPE,b=g.ERR_METHOD_NOT_IMPLEMENTED,v=g.ERR_MULTIPLE_CALLBACK,_=g.ERR_STREAM_CANNOT_PIPE,w=g.ERR_STREAM_DESTROYED,M=g.ERR_STREAM_NULL_VALUES,S=g.ERR_STREAM_WRITE_AFTER_END,A=g.ERR_UNKNOWN_ENCODING,k=f.errorOrDestroy;function E(){}function L(t,e,r){o=o||n("08f1"),t=t||{},"boolean"!==typeof r&&(r=e instanceof o),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=m(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===t.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){C(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function D(t){o=o||n("08f1");var e=this instanceof o;if(!e&&!d.call(D,this))return new D(t);this._writableState=new L(t,this,e),this.writable=!0,t&&("function"===typeof t.write&&(this._write=t.write),"function"===typeof t.writev&&(this._writev=t.writev),"function"===typeof t.destroy&&(this._destroy=t.destroy),"function"===typeof t.final&&(this._final=t.final)),a.call(this)}function T(t,e){var n=new S;k(t,n),r.nextTick(e,n)}function O(t,e,n,i){var o;return null===n?o=new M:"string"===typeof n||e.objectMode||(o=new y("chunk",["string","Buffer"],n)),!o||(k(t,o),r.nextTick(i,o),!1)}function x(t,e,n){return t.objectMode||!1===t.decodeStrings||"string"!==typeof e||(e=u.from(e,n)),e}function I(t,e,n,r,i,o){if(!n){var s=x(e,r,i);r!==s&&(n=!0,i="buffer",r=s)}var a=e.objectMode?1:r.length;e.length+=a;var u=e.length-1))throw new A(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(D.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(D.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),D.prototype._write=function(t,e,n){n(new b("_write()"))},D.prototype._writev=null,D.prototype.end=function(t,e,n){var r=this._writableState;return"function"===typeof t?(n=t,t=null,e=null):"function"===typeof e&&(n=e,e=null),null!==t&&void 0!==t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||F(this,r,n),this},Object.defineProperty(D.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(D.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),D.prototype.destroy=f.destroy,D.prototype._undestroy=f.undestroy,D.prototype._destroy=function(t,e){e(t)}}).call(this,n("c8ba"),n("4362"))},"8df2":function(t,e,n){"use strict"; /** * Support for translating between Uint8Array instances and JavaScript * native types. * * {@link module:Layout~Layout|Layout} is the basis of a class * hierarchy that associates property names with sequences of encoded * bytes. * * Layouts are supported for these scalar (numeric) types: * * {@link module:Layout~UInt|Unsigned integers in little-endian * format} with {@link module:Layout.u8|8-bit}, {@link * module:Layout.u16|16-bit}, {@link module:Layout.u24|24-bit}, * {@link module:Layout.u32|32-bit}, {@link * module:Layout.u40|40-bit}, and {@link module:Layout.u48|48-bit} * representation ranges; * * {@link module:Layout~UIntBE|Unsigned integers in big-endian * format} with {@link module:Layout.u16be|16-bit}, {@link * module:Layout.u24be|24-bit}, {@link module:Layout.u32be|32-bit}, * {@link module:Layout.u40be|40-bit}, and {@link * module:Layout.u48be|48-bit} representation ranges; * * {@link module:Layout~Int|Signed integers in little-endian * format} with {@link module:Layout.s8|8-bit}, {@link * module:Layout.s16|16-bit}, {@link module:Layout.s24|24-bit}, * {@link module:Layout.s32|32-bit}, {@link * module:Layout.s40|40-bit}, and {@link module:Layout.s48|48-bit} * representation ranges; * * {@link module:Layout~IntBE|Signed integers in big-endian format} * with {@link module:Layout.s16be|16-bit}, {@link * module:Layout.s24be|24-bit}, {@link module:Layout.s32be|32-bit}, * {@link module:Layout.s40be|40-bit}, and {@link * module:Layout.s48be|48-bit} representation ranges; * * 64-bit integral values that decode to an exact (if magnitude is * less than 2^53) or nearby integral Number in {@link * module:Layout.nu64|unsigned little-endian}, {@link * module:Layout.nu64be|unsigned big-endian}, {@link * module:Layout.ns64|signed little-endian}, and {@link * module:Layout.ns64be|unsigned big-endian} encodings; * * 32-bit floating point values with {@link * module:Layout.f32|little-endian} and {@link * module:Layout.f32be|big-endian} representations; * * 64-bit floating point values with {@link * module:Layout.f64|little-endian} and {@link * module:Layout.f64be|big-endian} representations; * * {@link module:Layout.const|Constants} that take no space in the * encoded expression. * * and for these aggregate types: * * {@link module:Layout.seq|Sequence}s of instances of a {@link * module:Layout~Layout|Layout}, with JavaScript representation as * an Array and constant or data-dependent {@link * module:Layout~Sequence#count|length}; * * {@link module:Layout.struct|Structure}s that aggregate a * heterogeneous sequence of {@link module:Layout~Layout|Layout} * instances, with JavaScript representation as an Object; * * {@link module:Layout.union|Union}s that support multiple {@link * module:Layout~VariantLayout|variant layouts} over a fixed * (padded) or variable (not padded) span of bytes, using an * unsigned integer at the start of the data or a separate {@link * module:Layout.unionLayoutDiscriminator|layout element} to * determine which layout to use when interpreting the buffer * contents; * * {@link module:Layout.bits|BitStructure}s that contain a sequence * of individual {@link * module:Layout~BitStructure#addField|BitField}s packed into an 8, * 16, 24, or 32-bit unsigned integer starting at the least- or * most-significant bit; * * {@link module:Layout.cstr|C strings} of varying length; * * {@link module:Layout.blob|Blobs} of fixed- or variable-{@link * module:Layout~Blob#length|length} raw data. * * All {@link module:Layout~Layout|Layout} instances are immutable * after construction, to prevent internal state from becoming * inconsistent. * * @local Layout * @local ExternalLayout * @local GreedyCount * @local OffsetLayout * @local UInt * @local UIntBE * @local Int * @local IntBE * @local NearUInt64 * @local NearUInt64BE * @local NearInt64 * @local NearInt64BE * @local Float * @local FloatBE * @local Double * @local DoubleBE * @local Sequence * @local Structure * @local UnionDiscriminator * @local UnionLayoutDiscriminator * @local Union * @local VariantLayout * @local BitStructure * @local BitField * @local Boolean * @local Blob * @local CString * @local Constant * @local bindConstructorLayout * @module Layout * @license MIT * @author Peter A. Bigot * @see {@link https://github.com/pabigot/buffer-layout|buffer-layout on GitHub} */Object.defineProperty(e,"__esModule",{value:!0}),e.s16=e.s8=e.nu64be=e.u48be=e.u40be=e.u32be=e.u24be=e.u16be=e.nu64=e.u48=e.u40=e.u32=e.u24=e.u16=e.u8=e.offset=e.greedy=e.Constant=e.UTF8=e.CString=e.Blob=e.Boolean=e.BitField=e.BitStructure=e.VariantLayout=e.Union=e.UnionLayoutDiscriminator=e.UnionDiscriminator=e.Structure=e.Sequence=e.DoubleBE=e.Double=e.FloatBE=e.Float=e.NearInt64BE=e.NearInt64=e.NearUInt64BE=e.NearUInt64=e.IntBE=e.Int=e.UIntBE=e.UInt=e.OffsetLayout=e.GreedyCount=e.ExternalLayout=e.bindConstructorLayout=e.nameWithProperty=e.Layout=e.uint8ArrayToBuffer=e.checkUint8Array=void 0,e.constant=e.utf8=e.cstr=e.blob=e.unionLayoutDiscriminator=e.union=e.seq=e.bits=e.struct=e.f64be=e.f64=e.f32be=e.f32=e.ns64be=e.s48be=e.s40be=e.s32be=e.s24be=e.s16be=e.ns64=e.s48=e.s40=e.s32=e.s24=void 0;const r=n("b639");function i(t){if(!(t instanceof Uint8Array))throw new TypeError("b must be a Uint8Array")}function o(t){return i(t),r.Buffer.from(t.buffer,t.byteOffset,t.length)}e.checkUint8Array=i,e.uint8ArrayToBuffer=o;class s{constructor(t,e){if(!Number.isInteger(t))throw new TypeError("span must be an integer");this.span=t,this.property=e}makeDestinationObject(){return{}}getSpan(t,e){if(0>this.span)throw new RangeError("indeterminate span");return this.span}replicate(t){const e=Object.create(this.constructor.prototype);return Object.assign(e,this),e.property=t,e}fromArray(t){}}function a(t,e){return e.property?t+"["+e.property+"]":t}function u(t,e){if("function"!==typeof t)throw new TypeError("Class must be constructor");if(Object.prototype.hasOwnProperty.call(t,"layout_"))throw new Error("Class is already bound to a layout");if(!(e&&e instanceof s))throw new TypeError("layout must be a Layout");if(Object.prototype.hasOwnProperty.call(e,"boundConstructor_"))throw new Error("layout is already bound to a constructor");t.layout_=e,e.boundConstructor_=t,e.makeDestinationObject=()=>new t,Object.defineProperty(t.prototype,"encode",{value(t,n){return e.encode(this,t,n)},writable:!0}),Object.defineProperty(t,"decode",{value(t,n){return e.decode(t,n)},writable:!0})}e.Layout=s,e.nameWithProperty=a,e.bindConstructorLayout=u;class c extends s{isCount(){throw new Error("ExternalLayout is abstract")}}e.ExternalLayout=c;class l extends c{constructor(t=1,e){if(!Number.isInteger(t)||0>=t)throw new TypeError("elementSpan must be a (positive) integer");super(-1,e),this.elementSpan=t}isCount(){return!0}decode(t,e=0){i(t);const n=t.length-e;return Math.floor(n/this.elementSpan)}encode(t,e,n){return 0}}e.GreedyCount=l;class h extends c{constructor(t,e=0,n){if(!(t instanceof s))throw new TypeError("layout must be a Layout");if(!Number.isInteger(e))throw new TypeError("offset must be integer or undefined");super(t.span,n||t.property),this.layout=t,this.offset=e}isCount(){return this.layout instanceof d||this.layout instanceof f}decode(t,e=0){return this.layout.decode(t,e+this.offset)}encode(t,e,n=0){return this.layout.encode(t,e,n+this.offset)}}e.OffsetLayout=h;class d extends s{constructor(t,e){if(super(t,e),6t+r.encode(i,e,n+t),0);return this.count instanceof c&&this.count.encode(t.length,e,n),i}}e.Sequence=L;class D extends s{constructor(t,e,n){if(!Array.isArray(t)||!t.reduce((t,e)=>t&&e instanceof s,!0))throw new TypeError("fields must be array of Layout instances");"boolean"===typeof e&&void 0===n&&(n=e,e=void 0);for(const o of t)if(0>o.span&&void 0===o.property)throw new Error("fields cannot contain unnamed variable-length layout");let r=-1;try{r=t.reduce((t,e)=>t+e.getSpan(),0)}catch(i){}super(r,e),this.fields=t,this.decodePrefixes=!!n}getSpan(t,e=0){if(0<=this.span)return this.span;let n=0;try{n=this.fields.reduce((n,r)=>{const i=r.getSpan(t,e);return e+=i,n+i},0)}catch(r){throw new RangeError("indeterminate span")}return n}decode(t,e=0){i(t);const n=this.makeDestinationObject();for(const r of this.fields)if(void 0!==r.property&&(n[r.property]=r.decode(t,e)),e+=r.getSpan(t,e),this.decodePrefixes&&t.length===e)break;return n}encode(t,e,n=0){const r=n;let i=0,o=0;for(const s of this.fields){let r=s.span;if(o=0r&&(r=s.getSpan(e,n)))}i=n,n+=r}return i+o-r}fromArray(t){const e=this.makeDestinationObject();for(const n of this.fields)void 0!==n.property&&0n.span?e=-1:0<=e&&(e+=n.span)}}}e.Structure=D;class T{constructor(t){this.property=t}decode(t,e){throw new Error("UnionDiscriminator is abstract")}encode(t,e,n){throw new Error("UnionDiscriminator is abstract")}}e.UnionDiscriminator=T;class O extends T{constructor(t,e){if(!(t instanceof c&&t.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");super(e||t.property||"variant"),this.layout=t}decode(t,e){return this.layout.decode(t,e)}encode(t,e,n){return this.layout.encode(t,e,n)}}e.UnionLayoutDiscriminator=O;class x extends s{constructor(t,e,n){let r;if(t instanceof d||t instanceof f)r=new O(new h(t));else if(t instanceof c&&t.isCount())r=new O(t);else{if(!(t instanceof T))throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");r=t}if(void 0===e&&(e=null),!(null===e||e instanceof s))throw new TypeError("defaultLayout must be null or a Layout");if(null!==e){if(0>e.span)throw new Error("defaultLayout must have constant span");void 0===e.property&&(e=e.replicate("content"))}let i=-1;e&&(i=e.span,0<=i&&(t instanceof d||t instanceof f)&&(i+=r.layout.span)),super(i,n),this.discriminator=r,this.usesPrefixDiscriminator=t instanceof d||t instanceof f,this.defaultLayout=e,this.registry={};let o=this.defaultGetSourceVariant.bind(this);this.getSourceVariant=function(t){return o(t)},this.configGetSourceVariant=function(t){o=t.bind(this)}}getSpan(t,e=0){if(0<=this.span)return this.span;const n=this.getVariant(t,e);if(!n)throw new Error("unable to determine span for unrecognized variant");return n.getSpan(t,e)}defaultGetSourceVariant(t){if(Object.prototype.hasOwnProperty.call(t,this.discriminator.property)){if(this.defaultLayout&&this.defaultLayout.property&&Object.prototype.hasOwnProperty.call(t,this.defaultLayout.property))return;const e=this.registry[t[this.discriminator.property]];if(e&&(!e.layout||e.property&&Object.prototype.hasOwnProperty.call(t,e.property)))return e}else for(const e in this.registry){const n=this.registry[e];if(n.property&&Object.prototype.hasOwnProperty.call(t,n.property))return n}throw new Error("unable to infer src variant")}decode(t,e=0){let n;const r=this.discriminator,i=r.decode(t,e),o=this.registry[i];if(void 0===o){const o=this.defaultLayout;let s=0;this.usesPrefixDiscriminator&&(s=r.layout.span),n=this.makeDestinationObject(),n[r.property]=i,n[o.property]=o.decode(t,e+s)}else n=o.decode(t,e);return n}encode(t,e,n=0){const r=this.getSourceVariant(t);if(void 0===r){const r=this.discriminator,i=this.defaultLayout;let o=0;return this.usesPrefixDiscriminator&&(o=r.layout.span),r.encode(t[r.property],e,n),o+i.encode(t[i.property],e,n+o)}return r.encode(t,e,n)}addVariant(t,e,n){const r=new I(this,t,e,n);return this.registry[t]=r,r}getVariant(t,e=0){let n;return n=t instanceof Uint8Array?this.discriminator.decode(t,e):t,this.registry[n]}}e.Union=x;class I extends s{constructor(t,e,n,r){if(!(t instanceof x))throw new TypeError("union must be a Union");if(!Number.isInteger(e)||0>e)throw new TypeError("variant must be a (non-negative) integer");if("string"===typeof n&&void 0===r&&(r=n,n=null),n){if(!(n instanceof s))throw new TypeError("layout must be a Layout");if(null!==t.defaultLayout&&0<=n.span&&n.span>t.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if("string"!==typeof r)throw new TypeError("variant must have a String property")}let i=t.span;0>t.span&&(i=n?n.span:0,0<=i&&t.usesPrefixDiscriminator&&(i+=t.discriminator.layout.span)),super(i,r),this.union=t,this.variant=e,this.layout=n||null}getSpan(t,e=0){if(0<=this.span)return this.span;let n=0;this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span);let r=0;return this.layout&&(r=this.layout.getSpan(t,e+n)),n+r}decode(t,e=0){const n=this.makeDestinationObject();if(this!==this.union.getVariant(t,e))throw new Error("variant mismatch");let r=0;return this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout?n[this.property]=this.layout.decode(t,e+r):this.property?n[this.property]=!0:this.union.usesPrefixDiscriminator&&(n[this.union.discriminator.property]=this.variant),n}encode(t,e,n=0){let r=0;if(this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout&&!Object.prototype.hasOwnProperty.call(t,this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,e,n);let i=r;if(this.layout&&(this.layout.encode(t[this.property],e,n+r),i+=this.layout.getSpan(e,n+r),0<=this.union.span&&i>this.union.span))throw new Error("encoded variant overruns containing union");return i}fromArray(t){if(this.layout)return this.layout.fromArray(t)}}function j(t){return 0>t&&(t+=4294967296),t}e.VariantLayout=I;class N extends s{constructor(t,e,n){if(!(t instanceof d||t instanceof f))throw new TypeError("word must be a UInt or UIntBE layout");if("string"===typeof e&&void 0===n&&(n=e,e=!1),4=e)throw new TypeError("bits must be positive integer");const r=8*t.span,i=t.fields.reduce((t,e)=>t+e.bits,0);if(e+i>r)throw new Error("bits too long for span remainder ("+(r-i)+" of "+r+" remain)");this.container=t,this.bits=e,this.valueMask=(1<>>this.start;return i}encode(t){if("number"!==typeof t||!Number.isInteger(t)||t!==j(t&this.valueMask))throw new TypeError(a("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);const e=this.container._packedGetValue(),n=j(t<n&&(n=this.length.decode(t,e)),n}decode(t,e=0){let n=this.span;return 0>n&&(n=this.length.decode(t,e)),o(t).slice(e,e+n)}encode(t,e,n){let r=this.length;if(this.length instanceof c&&(r=t.length),!(t instanceof Uint8Array&&r===t.length))throw new TypeError(a("Blob.encode",this)+" requires (length "+r+") Uint8Array as src");if(n+r>e.length)throw new RangeError("encoding overruns Uint8Array");const i=o(t);return o(e).write(i.toString("hex"),n,r,"hex"),this.length instanceof c&&this.length.encode(r,e,n),r}}e.Blob=R;class Y extends s{constructor(t){super(-1,t)}getSpan(t,e=0){i(t);let n=e;while(ne.length)throw new RangeError("encoding overruns Buffer");const a=o(e);return i.copy(a,n),a[n+s]=0,s+1}}e.CString=Y;class B extends s{constructor(t,e){if("string"===typeof t&&void 0===e&&(e=t,t=void 0),void 0===t)t=-1;else if(!Number.isInteger(t))throw new TypeError("maxSpan must be an integer");super(-1,e),this.maxSpan=t}getSpan(t,e=0){return i(t),t.length-e}decode(t,e=0){const n=this.getSpan(t,e);if(0<=this.maxSpan&&this.maxSpane.length)throw new RangeError("encoding overruns Buffer");return i.copy(o(e),n),s}}e.UTF8=B;class z extends s{constructor(t,e){super(0,e),this.value=t}decode(t,e){return this.value}encode(t,e,n){return 0}}e.Constant=z,e.greedy=(t,e)=>new l(t,e),e.offset=(t,e,n)=>new h(t,e,n),e.u8=t=>new d(1,t),e.u16=t=>new d(2,t),e.u24=t=>new d(3,t),e.u32=t=>new d(4,t),e.u40=t=>new d(5,t),e.u48=t=>new d(6,t),e.nu64=t=>new v(t),e.u16be=t=>new f(2,t),e.u24be=t=>new f(3,t),e.u32be=t=>new f(4,t),e.u40be=t=>new f(5,t),e.u48be=t=>new f(6,t),e.nu64be=t=>new _(t),e.s8=t=>new p(1,t),e.s16=t=>new p(2,t),e.s24=t=>new p(3,t),e.s32=t=>new p(4,t),e.s40=t=>new p(5,t),e.s48=t=>new p(6,t),e.ns64=t=>new w(t),e.s16be=t=>new m(2,t),e.s24be=t=>new m(3,t),e.s32be=t=>new m(4,t),e.s40be=t=>new m(5,t),e.s48be=t=>new m(6,t),e.ns64be=t=>new M(t),e.f32=t=>new S(t),e.f32be=t=>new A(t),e.f64=t=>new k(t),e.f64be=t=>new E(t),e.struct=(t,e,n)=>new D(t,e,n),e.bits=(t,e,n)=>new N(t,e,n),e.seq=(t,e,n)=>new L(t,e,n),e.union=(t,e,n)=>new x(t,e,n),e.unionLayoutDiscriminator=(t,e)=>new O(t,e),e.blob=(t,e)=>new R(t,e),e.cstr=t=>new Y(t),e.utf8=(t,e)=>new B(t,e),e.constant=(t,e)=>new z(t,e)},"8df4":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"},r=t.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(t){return/بعد از ظهر/.test(t)},meridiem:function(t,e,n){return t<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"%d ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(t){return t.replace(/[۰-۹]/g,(function(t){return n[t]})).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}});return r}))},"8df4b":function(t,e,n){"use strict";var r=n("fb60");function i(t){if("function"!==typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;this.promise.then((function(t){if(n._listeners){var e,r=n._listeners.length;for(e=0;e=3&&t%100<=10?3:t%100>=11?4:5},i={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},o=function(t){return function(e,n,o,s){var a=r(e),u=i[t][r(e)];return 2===a&&(u=u[n?0:1]),u.replace(/%d/i,e)}},s=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],a=t.defineLocale("ar",{months:s,monthsShort:s,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(t){return"م"===t},meridiem:function(t,e,n){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:o("s"),ss:o("s"),m:o("m"),mm:o("m"),h:o("h"),hh:o("h"),d:o("d"),dd:o("d"),M:o("M"),MM:o("M"),y:o("y"),yy:o("y")},preparse:function(t){return t.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(t){return n[t]})).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"،")},week:{dow:6,doy:12}});return a}))},"8ead":function(t,e,n){"use strict";n.r(e),n.d(e,"serializeError",(function(){return c})),n.d(e,"deserializeError",(function(){return u})),n.d(e,"createCustomErrorClass",(function(){return a})),n.d(e,"addCustomErrorDeserializer",(function(){return s})),n.d(e,"AccountNameRequiredError",(function(){return h})),n.d(e,"AccountNotSupported",(function(){return d})),n.d(e,"AmountRequired",(function(){return f})),n.d(e,"BluetoothRequired",(function(){return p})),n.d(e,"BtcUnmatchedApp",(function(){return m})),n.d(e,"CantOpenDevice",(function(){return g})),n.d(e,"CashAddrNotSupported",(function(){return y})),n.d(e,"CurrencyNotSupported",(function(){return b})),n.d(e,"DeviceAppVerifyNotSupported",(function(){return v})),n.d(e,"DeviceGenuineSocketEarlyClose",(function(){return _})),n.d(e,"DeviceNotGenuineError",(function(){return w})),n.d(e,"DeviceOnDashboardExpected",(function(){return M})),n.d(e,"DeviceOnDashboardUnexpected",(function(){return S})),n.d(e,"DeviceInOSUExpected",(function(){return A})),n.d(e,"DeviceHalted",(function(){return k})),n.d(e,"DeviceNameInvalid",(function(){return E})),n.d(e,"DeviceSocketFail",(function(){return L})),n.d(e,"DeviceSocketNoBulkStatus",(function(){return D})),n.d(e,"DisconnectedDevice",(function(){return T})),n.d(e,"DisconnectedDeviceDuringOperation",(function(){return O})),n.d(e,"EnpointConfigError",(function(){return x})),n.d(e,"EthAppPleaseEnableContractData",(function(){return I})),n.d(e,"FeeEstimationFailed",(function(){return j})),n.d(e,"FirmwareNotRecognized",(function(){return N})),n.d(e,"HardResetFail",(function(){return P})),n.d(e,"InvalidXRPTag",(function(){return C})),n.d(e,"InvalidAddress",(function(){return R})),n.d(e,"InvalidAddressBecauseDestinationIsAlsoSource",(function(){return Y})),n.d(e,"LatestMCUInstalledError",(function(){return B})),n.d(e,"UnknownMCU",(function(){return z})),n.d(e,"LedgerAPIError",(function(){return U})),n.d(e,"LedgerAPIErrorWithMessage",(function(){return W})),n.d(e,"LedgerAPINotAvailable",(function(){return H})),n.d(e,"ManagerAppAlreadyInstalledError",(function(){return F})),n.d(e,"ManagerAppRelyOnBTCError",(function(){return q})),n.d(e,"ManagerAppDepInstallRequired",(function(){return V})),n.d(e,"ManagerAppDepUninstallRequired",(function(){return K})),n.d(e,"ManagerDeviceLockedError",(function(){return G})),n.d(e,"ManagerFirmwareNotEnoughSpaceError",(function(){return Q})),n.d(e,"ManagerNotEnoughSpaceError",(function(){return Z})),n.d(e,"ManagerUninstallBTCDep",(function(){return J})),n.d(e,"NetworkDown",(function(){return $})),n.d(e,"NoAddressesFound",(function(){return X})),n.d(e,"NotEnoughBalance",(function(){return tt})),n.d(e,"NotEnoughBalanceToDelegate",(function(){return et})),n.d(e,"NotEnoughBalanceInParentAccount",(function(){return nt})),n.d(e,"NotEnoughSpendableBalance",(function(){return rt})),n.d(e,"NotEnoughBalanceBecauseDestinationNotCreated",(function(){return it})),n.d(e,"NoAccessToCamera",(function(){return ot})),n.d(e,"NotEnoughGas",(function(){return st})),n.d(e,"NotSupportedLegacyAddress",(function(){return at})),n.d(e,"GasLessThanEstimate",(function(){return ut})),n.d(e,"PasswordsDontMatchError",(function(){return ct})),n.d(e,"PasswordIncorrectError",(function(){return lt})),n.d(e,"RecommendSubAccountsToEmpty",(function(){return ht})),n.d(e,"RecommendUndelegation",(function(){return dt})),n.d(e,"TimeoutTagged",(function(){return ft})),n.d(e,"UnexpectedBootloader",(function(){return pt})),n.d(e,"MCUNotGenuineToDashboard",(function(){return mt})),n.d(e,"RecipientRequired",(function(){return gt})),n.d(e,"UnavailableTezosOriginatedAccountReceive",(function(){return yt})),n.d(e,"UnavailableTezosOriginatedAccountSend",(function(){return bt})),n.d(e,"UpdateFetchFileFail",(function(){return vt})),n.d(e,"UpdateIncorrectHash",(function(){return _t})),n.d(e,"UpdateIncorrectSig",(function(){return wt})),n.d(e,"UpdateYourApp",(function(){return Mt})),n.d(e,"UserRefusedDeviceNameChange",(function(){return St})),n.d(e,"UserRefusedAddress",(function(){return At})),n.d(e,"UserRefusedFirmwareUpdate",(function(){return kt})),n.d(e,"UserRefusedAllowManager",(function(){return Et})),n.d(e,"UserRefusedOnDevice",(function(){return Lt})),n.d(e,"TransportOpenUserCancelled",(function(){return Dt})),n.d(e,"TransportInterfaceNotAvailable",(function(){return Tt})),n.d(e,"TransportRaceCondition",(function(){return Ot})),n.d(e,"TransportWebUSBGestureRequired",(function(){return xt})),n.d(e,"DeviceShouldStayInApp",(function(){return It})),n.d(e,"WebsocketConnectionError",(function(){return jt})),n.d(e,"WebsocketConnectionFailed",(function(){return Nt})),n.d(e,"WrongDeviceForAccount",(function(){return Pt})),n.d(e,"WrongAppForCurrency",(function(){return Ct})),n.d(e,"ETHAddressNonEIP",(function(){return Rt})),n.d(e,"CantScanQRCode",(function(){return Yt})),n.d(e,"FeeNotLoaded",(function(){return Bt})),n.d(e,"FeeRequired",(function(){return zt})),n.d(e,"FeeTooHigh",(function(){return Ut})),n.d(e,"SyncError",(function(){return Wt})),n.d(e,"PairingFailed",(function(){return Ht})),n.d(e,"GenuineCheckFailed",(function(){return Ft})),n.d(e,"LedgerAPI4xx",(function(){return qt})),n.d(e,"LedgerAPI5xx",(function(){return Vt})),n.d(e,"FirmwareOrAppUpdateRequired",(function(){return Kt})),n.d(e,"NoDBPathGiven",(function(){return Gt})),n.d(e,"DBWrongPassword",(function(){return Qt})),n.d(e,"DBNotReset",(function(){return Zt})),n.d(e,"TransportError",(function(){return Jt})),n.d(e,"StatusCodes",(function(){return $t})),n.d(e,"getAltStatusMessage",(function(){return Xt})),n.d(e,"TransportStatusError",(function(){return te}));var r=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},i={},o={},s=function(t,e){o[t]=e},a=function(t){var e=function(e,n){Object.assign(this,n),this.name=t,this.message=e||t,this.stack=(new Error).stack};return e.prototype=new Error,i[t]=e,e},u=function(t){if("object"===typeof t&&t){try{var e=JSON.parse(t.message);e.message&&e.name&&(t=e)}catch(h){}var n=void 0;if("string"===typeof t.name){var r=t.name,s=o[r];if(s)n=s(t);else{var c="Error"===r?Error:i[r];c||(console.warn("deserializing an unknown class '"+r+"'"),c=a(r)),n=Object.create(c.prototype);try{for(var l in t)t.hasOwnProperty(l)&&(n[l]=t[l])}catch(h){}}}else n=new Error(t.message);return!n.stack&&Error.captureStackTrace&&Error.captureStackTrace(n,u),n}return new Error(String(t))},c=function(t){return t?"object"===typeof t?l(t,[]):"function"===typeof t?"[Function: "+(t.name||"anonymous")+"]":t:t};function l(t,e){var n,i,o={};e.push(t);try{for(var s=r(Object.keys(t)),a=s.next();!a.done;a=s.next()){var u=a.value,c=t[u];"function"!==typeof c&&(c&&"object"===typeof c?-1!==e.indexOf(t[u])?o[u]="[Circular]":o[u]=l(t[u],e.slice(0)):o[u]=c)}}catch(h){n={error:h}}finally{try{a&&!a.done&&(i=s["return"])&&i.call(s)}finally{if(n)throw n.error}}return"string"===typeof t.name&&(o.name=t.name),"string"===typeof t.message&&(o.message=t.message),"string"===typeof t.stack&&(o.stack=t.stack),o}var h=a("AccountNameRequired"),d=a("AccountNotSupported"),f=a("AmountRequired"),p=a("BluetoothRequired"),m=a("BtcUnmatchedApp"),g=a("CantOpenDevice"),y=a("CashAddrNotSupported"),b=a("CurrencyNotSupported"),v=a("DeviceAppVerifyNotSupported"),_=a("DeviceGenuineSocketEarlyClose"),w=a("DeviceNotGenuine"),M=a("DeviceOnDashboardExpected"),S=a("DeviceOnDashboardUnexpected"),A=a("DeviceInOSUExpected"),k=a("DeviceHalted"),E=a("DeviceNameInvalid"),L=a("DeviceSocketFail"),D=a("DeviceSocketNoBulkStatus"),T=a("DisconnectedDevice"),O=a("DisconnectedDeviceDuringOperation"),x=a("EnpointConfig"),I=a("EthAppPleaseEnableContractData"),j=a("FeeEstimationFailed"),N=a("FirmwareNotRecognized"),P=a("HardResetFail"),C=a("InvalidXRPTag"),R=a("InvalidAddress"),Y=a("InvalidAddressBecauseDestinationIsAlsoSource"),B=a("LatestMCUInstalledError"),z=a("UnknownMCU"),U=a("LedgerAPIError"),W=a("LedgerAPIErrorWithMessage"),H=a("LedgerAPINotAvailable"),F=a("ManagerAppAlreadyInstalled"),q=a("ManagerAppRelyOnBTC"),V=a("ManagerAppDepInstallRequired"),K=a("ManagerAppDepUninstallRequired"),G=a("ManagerDeviceLocked"),Q=a("ManagerFirmwareNotEnoughSpace"),Z=a("ManagerNotEnoughSpace"),J=a("ManagerUninstallBTCDep"),$=a("NetworkDown"),X=a("NoAddressesFound"),tt=a("NotEnoughBalance"),et=a("NotEnoughBalanceToDelegate"),nt=a("NotEnoughBalanceInParentAccount"),rt=a("NotEnoughSpendableBalance"),it=a("NotEnoughBalanceBecauseDestinationNotCreated"),ot=a("NoAccessToCamera"),st=a("NotEnoughGas"),at=a("NotSupportedLegacyAddress"),ut=a("GasLessThanEstimate"),ct=a("PasswordsDontMatch"),lt=a("PasswordIncorrect"),ht=a("RecommendSubAccountsToEmpty"),dt=a("RecommendUndelegation"),ft=a("TimeoutTagged"),pt=a("UnexpectedBootloader"),mt=a("MCUNotGenuineToDashboard"),gt=a("RecipientRequired"),yt=a("UnavailableTezosOriginatedAccountReceive"),bt=a("UnavailableTezosOriginatedAccountSend"),vt=a("UpdateFetchFileFail"),_t=a("UpdateIncorrectHash"),wt=a("UpdateIncorrectSig"),Mt=a("UpdateYourApp"),St=a("UserRefusedDeviceNameChange"),At=a("UserRefusedAddress"),kt=a("UserRefusedFirmwareUpdate"),Et=a("UserRefusedAllowManager"),Lt=a("UserRefusedOnDevice"),Dt=a("TransportOpenUserCancelled"),Tt=a("TransportInterfaceNotAvailable"),Ot=a("TransportRaceCondition"),xt=a("TransportWebUSBGestureRequired"),It=a("DeviceShouldStayInApp"),jt=a("WebsocketConnectionError"),Nt=a("WebsocketConnectionFailed"),Pt=a("WrongDeviceForAccount"),Ct=a("WrongAppForCurrency"),Rt=a("ETHAddressNonEIP"),Yt=a("CantScanQRCode"),Bt=a("FeeNotLoaded"),zt=a("FeeRequired"),Ut=a("FeeTooHigh"),Wt=a("SyncError"),Ht=a("PairingFailed"),Ft=a("GenuineCheckFailed"),qt=a("LedgerAPI4xx"),Vt=a("LedgerAPI5xx"),Kt=a("FirmwareOrAppUpdateRequired"),Gt=a("NoDBPathGiven"),Qt=a("DBWrongPassword"),Zt=a("DBNotReset");function Jt(t,e){this.name="TransportError",this.message=t,this.stack=(new Error).stack,this.id=e}Jt.prototype=new Error,s("TransportError",(function(t){return new Jt(t.message,t.id)}));var $t={PIN_REMAINING_ATTEMPTS:25536,INCORRECT_LENGTH:26368,MISSING_CRITICAL_PARAMETER:26624,COMMAND_INCOMPATIBLE_FILE_STRUCTURE:27009,SECURITY_STATUS_NOT_SATISFIED:27010,CONDITIONS_OF_USE_NOT_SATISFIED:27013,INCORRECT_DATA:27264,NOT_ENOUGH_MEMORY_SPACE:27268,REFERENCED_DATA_NOT_FOUND:27272,FILE_ALREADY_EXISTS:27273,INCORRECT_P1_P2:27392,INS_NOT_SUPPORTED:27904,CLA_NOT_SUPPORTED:28160,TECHNICAL_PROBLEM:28416,OK:36864,MEMORY_PROBLEM:37440,NO_EF_SELECTED:37888,INVALID_OFFSET:37890,FILE_NOT_FOUND:37892,INCONSISTENT_FILE:37896,ALGORITHM_NOT_SUPPORTED:38020,INVALID_KCV:38021,CODE_NOT_INITIALIZED:38914,ACCESS_CONDITION_NOT_FULFILLED:38916,CONTRADICTION_SECRET_CODE_STATUS:38920,CONTRADICTION_INVALIDATION:38928,CODE_BLOCKED:38976,MAX_VALUE_REACHED:38992,GP_AUTH_FAILED:25344,LICENSING:28482,HALTED:28586};function Xt(t){switch(t){case 26368:return"Incorrect length";case 26624:return"Missing critical parameter";case 27010:return"Security not satisfied (dongle locked or have invalid access rights)";case 27013:return"Condition of use not satisfied (denied by the user?)";case 27264:return"Invalid data received";case 27392:return"Invalid parameter received"}if(28416<=t&&t<=28671)return"Internal error, please report"}function te(t){this.name="TransportStatusError";var e=Object.keys($t).find((function(e){return $t[e]===t}))||"UNKNOWN_ERROR",n=Xt(t)||e,r=t.toString(16);this.message="Ledger device: "+n+" (0x"+r+")",this.stack=(new Error).stack,this.statusCode=t,this.statusText=e}te.prototype=new Error,s("TransportStatusError",(function(t){return new te(t.statusCode)}))},"8f2a":function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t["default"]=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e},s=this&&this.__awaiter||function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function s(t){try{u(r.next(t))}catch(e){o(e)}}function a(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(s,a)}u((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.TorusWalletAdapter=e.TorusWalletName=void 0;const a=n("0a37"),u=n("64b9");e.TorusWalletName="Torus";class c extends a.BaseMessageSignerWalletAdapter{constructor({params:t={showTorusButton:!1}}={}){super(),this.name=e.TorusWalletName,this.url="https://tor.us",this.icon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzMiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMyAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTYuNSIgY3k9IjE2IiByPSIxNiIgZmlsbD0iIzAzNjRGRiIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTExLjIxODYgOS40OTIxOUMxMC40NTM5IDkuNDkyMTkgOS44MzM5OCAxMC4xMTIxIDkuODMzOTggMTAuODc2OFYxMi40ODk4QzkuODMzOTggMTMuMjU0NSAxMC40NTM5IDEzLjg3NDQgMTEuMjE4NiAxMy44NzQ0SDEzLjY2ODRWMjIuODk3NkMxMy42Njg0IDIzLjY2MjMgMTQuMjg4MyAyNC4yODIyIDE1LjA1MyAyNC4yODIySDE2LjY2NkMxNy40MzA3IDI0LjI4MjIgMTguMDUwNiAyMy42NjIzIDE4LjA1MDYgMjIuODk3NlYxMi41MDE1QzE4LjA1MDYgMTIuNDk3NiAxOC4wNTA2IDEyLjQ5MzcgMTguMDUwNiAxMi40ODk4VjEwLjg3NjhDMTguMDUwNiAxMC4xMTIxIDE3LjQzMDcgOS40OTIxOSAxNi42NjYgOS40OTIxOUgxNS4wNTNIMTEuMjE4NloiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0yMS4zMzc2IDEzLjg3NDRDMjIuNTQ3NyAxMy44NzQ0IDIzLjUyODcgMTIuODkzNCAyMy41Mjg3IDExLjY4MzNDMjMuNTI4NyAxMC40NzMyIDIyLjU0NzcgOS40OTIxOSAyMS4zMzc2IDkuNDkyMTlDMjAuMTI3NSA5LjQ5MjE5IDE5LjE0NjUgMTAuNDczMiAxOS4xNDY1IDExLjY4MzNDMTkuMTQ2NSAxMi44OTM0IDIwLjEyNzUgMTMuODc0NCAyMS4zMzc2IDEzLjg3NDRaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K",this._readyState="undefined"===typeof window?a.WalletReadyState.Unsupported:a.WalletReadyState.Loadable,this._connecting=!1,this._wallet=null,this._publicKey=null,this._params=t}get publicKey(){return this._publicKey}get connecting(){return this._connecting}get connected(){var t;return!!(null===(t=this._wallet)||void 0===t?void 0:t.isLoggedIn)}get readyState(){return this._readyState}connect(){return s(this,void 0,void 0,(function*(){try{if(this.connected||this.connecting)return;if(this._readyState!==a.WalletReadyState.Loadable)throw new a.WalletNotReadyError;let e,r,i,s;this._connecting=!0;try{({default:e}=yield Promise.resolve().then(()=>o(n("b5dd"))))}catch(t){throw new a.WalletLoadError(null===t||void 0===t?void 0:t.message,t)}try{r=window.torus||new e}catch(t){throw new a.WalletConfigError(null===t||void 0===t?void 0:t.message,t)}if(!r.isInitialized)try{yield r.init(this._params)}catch(t){throw new a.WalletConnectionError(null===t||void 0===t?void 0:t.message,t)}try{i=yield r.login()}catch(t){throw new a.WalletAccountError(null===t||void 0===t?void 0:t.message,t)}try{s=new u.PublicKey(i[0])}catch(t){throw new a.WalletPublicKeyError(null===t||void 0===t?void 0:t.message,t)}this._wallet=r,this._publicKey=s,this.emit("connect",s)}catch(t){throw this.emit("error",t),t}finally{this._connecting=!1}}))}disconnect(){return s(this,void 0,void 0,(function*(){const t=this._wallet;if(t){this._wallet=null,this._publicKey=null;try{t.isLoggedIn&&(yield t.cleanUp())}catch(e){this.emit("error",new a.WalletDisconnectionError(null===e||void 0===e?void 0:e.message,e))}}this.emit("disconnect")}))}signTransaction(t){return s(this,void 0,void 0,(function*(){try{const n=this._wallet;if(!n)throw new a.WalletNotConnectedError;try{return(yield n.signTransaction(t))||t}catch(e){throw new a.WalletSignTransactionError(null===e||void 0===e?void 0:e.message,e)}}catch(e){throw this.emit("error",e),e}}))}signAllTransactions(t){return s(this,void 0,void 0,(function*(){try{const n=this._wallet;if(!n)throw new a.WalletNotConnectedError;try{return(yield n.signAllTransactions(t))||t}catch(e){throw new a.WalletSignTransactionError(null===e||void 0===e?void 0:e.message,e)}}catch(e){throw this.emit("error",e),e}}))}signMessage(t){return s(this,void 0,void 0,(function*(){try{const n=this._wallet;if(!n)throw new a.WalletNotConnectedError;try{return yield n.signMessage(t)}catch(e){throw new a.WalletSignTransactionError(null===e||void 0===e?void 0:e.message,e)}}catch(e){throw this.emit("error",e),e}}))}}e.TorusWalletAdapter=c},9019:function(t,e,n){"use strict";(function(e){function n(t,n){var o=this,a=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return a||u?(n?n(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(s,this,t)):e.nextTick(s,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!n&&t?o._writableState?o._writableState.errorEmitted?e.nextTick(i,o):(o._writableState.errorEmitted=!0,e.nextTick(r,o,t)):e.nextTick(r,o,t):n?(e.nextTick(i,o),n(t)):e.nextTick(i,o)})),this)}function r(t,e){s(t,e),i(t)}function i(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function s(t,e){t.emit("error",e)}function a(t,e){var n=t._readableState,r=t._writableState;n&&n.autoDestroy||r&&r.autoDestroy?t.destroy(e):t.emit("error",e)}t.exports={destroy:n,undestroy:o,errorOrDestroy:a}}).call(this,n("4362"))},"901e":function(t,e,n){var r;(function(i){"use strict";var o,s=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,a=Math.ceil,u=Math.floor,c="[BigNumber Error] ",l=c+"Number primitive has more than 15 significant digits: ",h=1e14,d=14,f=9007199254740991,p=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],m=1e7,g=1e9;function y(t){var e,n,r,i=R.prototype={constructor:R,toString:null,valueOf:null},o=new R(1),k=20,E=4,L=-7,D=21,T=-1e7,O=1e7,x=!1,I=1,j=0,N={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},P="0123456789abcdefghijklmnopqrstuvwxyz",C=!0;function R(t,e){var i,o,a,c,h,p,m,g,y=this;if(!(y instanceof R))return new R(t,e);if(null==e){if(t&&!0===t._isBigNumber)return y.s=t.s,void(!t.c||t.e>O?y.c=y.e=null:t.e=10;h/=10,c++);return void(c>O?y.c=y.e=null:(y.e=c,y.c=[t]))}g=String(t)}else{if(!s.test(g=String(t)))return r(y,g,p);y.s=45==g.charCodeAt(0)?(g=g.slice(1),-1):1}(c=g.indexOf("."))>-1&&(g=g.replace(".","")),(h=g.search(/e/i))>0?(c<0&&(c=h),c+=+g.slice(h+1),g=g.substring(0,h)):c<0&&(c=g.length)}else{if(w(e,2,P.length,"Base"),10==e&&C)return y=new R(t),U(y,k+y.e+1,E);if(g=String(t),p="number"==typeof t){if(0*t!=0)return r(y,g,p,e);if(y.s=1/t<0?(g=g.slice(1),-1):1,R.DEBUG&&g.replace(/^0\.0*|\./,"").length>15)throw Error(l+t)}else y.s=45===g.charCodeAt(0)?(g=g.slice(1),-1):1;for(i=P.slice(0,e),c=h=0,m=g.length;hc){c=m;continue}}else if(!a&&(g==g.toUpperCase()&&(g=g.toLowerCase())||g==g.toLowerCase()&&(g=g.toUpperCase()))){a=!0,h=-1,c=0;continue}return r(y,String(t),p,e)}p=!1,g=n(g,e,10,y.s),(c=g.indexOf("."))>-1?g=g.replace(".",""):c=g.length}for(h=0;48===g.charCodeAt(h);h++);for(m=g.length;48===g.charCodeAt(--m););if(g=g.slice(h,++m)){if(m-=h,p&&R.DEBUG&&m>15&&(t>f||t!==u(t)))throw Error(l+y.s*t);if((c=c-h-1)>O)y.c=y.e=null;else if(c=D)?S(u,s):A(u,s,"0");else if(t=U(new R(t),e,n),o=t.e,u=v(t.c),a=u.length,1==r||2==r&&(e<=o||o<=L)){for(;aa){if(--e>0)for(u+=".";e--;u+="0");}else if(e+=o-a,e>0)for(o+1==a&&(u+=".");e--;u+="0");return t.s<0&&i?"-"+u:u}function B(t,e){for(var n,r=1,i=new R(t[0]);r=10;i/=10,r++);return(n=r+n*d-1)>O?t.c=t.e=null:n=10;c/=10,i++);if(o=e-i,o<0)o+=d,s=e,l=g[f=0],m=l/y[i-s-1]%10|0;else if(f=a((o+1)/d),f>=g.length){if(!r)break t;for(;g.length<=f;g.push(0));l=m=0,i=1,o%=d,s=o-d+1}else{for(l=c=g[f],i=1;c>=10;c/=10,i++);o%=d,s=o-d+i,m=s<0?0:l/y[i-s-1]%10|0}if(r=r||e<0||null!=g[f+1]||(s<0?l:l%y[i-s-1]),r=n<4?(m||r)&&(0==n||n==(t.s<0?3:2)):m>5||5==m&&(4==n||r||6==n&&(o>0?s>0?l/y[i-s]:0:g[f-1])%10&1||n==(t.s<0?8:7)),e<1||!g[0])return g.length=0,r?(e-=t.e+1,g[0]=y[(d-e%d)%d],t.e=-e||0):g[0]=t.e=0,t;if(0==o?(g.length=f,c=1,f--):(g.length=f+1,c=y[d-o],g[f]=s>0?u(l/y[i-s]%y[s])*c:0),r)for(;;){if(0==f){for(o=1,s=g[0];s>=10;s/=10,o++);for(s=g[0]+=c,c=1;s>=10;s/=10,c++);o!=c&&(t.e++,g[0]==h&&(g[0]=1));break}if(g[f]+=c,g[f]!=h)break;g[f--]=0,c=1}for(o=g.length;0===g[--o];g.pop());}t.e>O?t.c=t.e=null:t.e=D?S(e,n):A(e,n,"0"),t.s<0?"-"+e:e)}return R.clone=y,R.ROUND_UP=0,R.ROUND_DOWN=1,R.ROUND_CEIL=2,R.ROUND_FLOOR=3,R.ROUND_HALF_UP=4,R.ROUND_HALF_DOWN=5,R.ROUND_HALF_EVEN=6,R.ROUND_HALF_CEIL=7,R.ROUND_HALF_FLOOR=8,R.EUCLID=9,R.config=R.set=function(t){var e,n;if(null!=t){if("object"!=typeof t)throw Error(c+"Object expected: "+t);if(t.hasOwnProperty(e="DECIMAL_PLACES")&&(n=t[e],w(n,0,g,e),k=n),t.hasOwnProperty(e="ROUNDING_MODE")&&(n=t[e],w(n,0,8,e),E=n),t.hasOwnProperty(e="EXPONENTIAL_AT")&&(n=t[e],n&&n.pop?(w(n[0],-g,0,e),w(n[1],0,g,e),L=n[0],D=n[1]):(w(n,-g,g,e),L=-(D=n<0?-n:n))),t.hasOwnProperty(e="RANGE"))if(n=t[e],n&&n.pop)w(n[0],-g,-1,e),w(n[1],1,g,e),T=n[0],O=n[1];else{if(w(n,-g,g,e),!n)throw Error(c+e+" cannot be zero: "+n);T=-(O=n<0?-n:n)}if(t.hasOwnProperty(e="CRYPTO")){if(n=t[e],n!==!!n)throw Error(c+e+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw x=!n,Error(c+"crypto unavailable");x=n}else x=n}if(t.hasOwnProperty(e="MODULO_MODE")&&(n=t[e],w(n,0,9,e),I=n),t.hasOwnProperty(e="POW_PRECISION")&&(n=t[e],w(n,0,g,e),j=n),t.hasOwnProperty(e="FORMAT")){if(n=t[e],"object"!=typeof n)throw Error(c+e+" not an object: "+n);N=n}if(t.hasOwnProperty(e="ALPHABET")){if(n=t[e],"string"!=typeof n||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(c+e+" invalid: "+n);C="0123456789"==n.slice(0,10),P=n}}return{DECIMAL_PLACES:k,ROUNDING_MODE:E,EXPONENTIAL_AT:[L,D],RANGE:[T,O],CRYPTO:x,MODULO_MODE:I,POW_PRECISION:j,FORMAT:N,ALPHABET:P}},R.isBigNumber=function(t){if(!t||!0!==t._isBigNumber)return!1;if(!R.DEBUG)return!0;var e,n,r=t.c,i=t.e,o=t.s;t:if("[object Array]"=={}.toString.call(r)){if((1===o||-1===o)&&i>=-g&&i<=g&&i===u(i)){if(0===r[0]){if(0===i&&1===r.length)return!0;break t}if(e=(i+1)%d,e<1&&(e+=d),String(r[0]).length==e){for(e=0;e=h||n!==u(n))break t;if(0!==n)return!0}}}else if(null===r&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(c+"Invalid BigNumber: "+t)},R.maximum=R.max=function(){return B(arguments,i.lt)},R.minimum=R.min=function(){return B(arguments,i.gt)},R.random=function(){var t=9007199254740992,e=Math.random()*t&2097151?function(){return u(Math.random()*t)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)};return function(t){var n,r,i,s,l,h=0,f=[],m=new R(o);if(null==t?t=k:w(t,0,g),s=a(t/d),x)if(crypto.getRandomValues){for(n=crypto.getRandomValues(new Uint32Array(s*=2));h>>11),l>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),n[h]=r[0],n[h+1]=r[1]):(f.push(l%1e14),h+=2);h=s/2}else{if(!crypto.randomBytes)throw x=!1,Error(c+"crypto unavailable");for(n=crypto.randomBytes(s*=7);h=9e15?crypto.randomBytes(7).copy(n,h):(f.push(l%1e14),h+=7);h=s/7}if(!x)for(;h=10;l/=10,h++);hn-1&&(null==s[i+1]&&(s[i+1]=0),s[i+1]+=s[i]/n|0,s[i]%=n)}return s.reverse()}return function(r,i,o,s,a){var u,c,l,h,d,f,p,m,g=r.indexOf("."),y=k,b=E;for(g>=0&&(h=j,j=0,r=r.replace(".",""),m=new R(i),f=m.pow(r.length-g),j=h,m.c=n(A(v(f.c),f.e,"0"),10,o,t),m.e=m.c.length),p=n(r,i,o,a?(u=P,t):(u=t,P)),l=h=p.length;0==p[--h];p.pop());if(!p[0])return u.charAt(0);if(g<0?--l:(f.c=p,f.e=l,f.s=s,f=e(f,m,y,b,o),p=f.c,d=f.r,l=f.e),c=l+y+1,g=p[c],h=o/2,d=d||c<0||null!=p[c+1],d=b<4?(null!=g||d)&&(0==b||b==(f.s<0?3:2)):g>h||g==h&&(4==b||d||6==b&&1&p[c-1]||b==(f.s<0?8:7)),c<1||!p[0])r=d?A(u.charAt(1),-y,u.charAt(0)):u.charAt(0);else{if(p.length=c,d)for(--o;++p[--c]>o;)p[c]=0,c||(++l,p=[1].concat(p));for(h=p.length;!p[--h];);for(g=0,r="";g<=h;r+=u.charAt(p[g++]));r=A(r,l,u.charAt(0))}return r}}(),e=function(){function t(t,e,n){var r,i,o,s,a=0,u=t.length,c=e%m,l=e/m|0;for(t=t.slice();u--;)o=t[u]%m,s=t[u]/m|0,r=l*o+s*c,i=c*o+r%m*m+a,a=(i/n|0)+(r/m|0)+l*s,t[u]=i%n;return a&&(t=[a].concat(t)),t}function e(t,e,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;ie[i]?1:-1;break}return o}function n(t,e,n,r){for(var i=0;n--;)t[n]-=i,i=t[n]1;t.splice(0,1));}return function(r,i,o,s,a){var c,l,f,p,m,g,y,v,_,w,M,S,A,k,E,L,D,T=r.s==i.s?1:-1,O=r.c,x=i.c;if(!O||!O[0]||!x||!x[0])return new R(r.s&&i.s&&(O?!x||O[0]!=x[0]:x)?O&&0==O[0]||!x?0*T:T/0:NaN);for(v=new R(T),_=v.c=[],l=r.e-i.e,T=o+l+1,a||(a=h,l=b(r.e/d)-b(i.e/d),T=T/d|0),f=0;x[f]==(O[f]||0);f++);if(x[f]>(O[f]||0)&&l--,T<0)_.push(1),p=!0;else{for(k=O.length,L=x.length,f=0,T+=2,m=u(a/(x[0]+1)),m>1&&(x=t(x,m,a),O=t(O,m,a),L=x.length,k=O.length),A=L,w=O.slice(0,L),M=w.length;M=a/2&&E++;do{if(m=0,c=e(x,w,L,M),c<0){if(S=w[0],L!=M&&(S=S*a+(w[1]||0)),m=u(S/E),m>1){m>=a&&(m=a-1),g=t(x,m,a),y=g.length,M=w.length;while(1==e(g,w,y,M))m--,n(g,L=10;T/=10,f++);U(v,o+(v.e=f+l*d-1)+1,s,p)}else v.e=l,v.r=+p;return v}}(),r=function(){var t=/^(-?)0([xbo])(?=\w[\w.]*$)/i,e=/^([^.]+)\.$/,n=/^\.([^.]+)$/,r=/^-?(Infinity|NaN)$/,i=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(o,s,a,u){var l,h=a?s:s.replace(i,"");if(r.test(h))o.s=isNaN(h)?null:h<0?-1:1;else{if(!a&&(h=h.replace(t,(function(t,e,n){return l="x"==(n=n.toLowerCase())?16:"b"==n?2:8,u&&u!=l?t:e})),u&&(l=u,h=h.replace(e,"$1").replace(n,"0.$1")),s!=h))return new R(h,l);if(R.DEBUG)throw Error(c+"Not a"+(u?" base "+u:"")+" number: "+s);o.s=null}o.c=o.e=null}}(),i.absoluteValue=i.abs=function(){var t=new R(this);return t.s<0&&(t.s=1),t},i.comparedTo=function(t,e){return _(this,new R(t,e))},i.decimalPlaces=i.dp=function(t,e){var n,r,i,o=this;if(null!=t)return w(t,0,g),null==e?e=E:w(e,0,8),U(new R(o),t+o.e+1,e);if(!(n=o.c))return null;if(r=((i=n.length-1)-b(this.e/d))*d,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},i.dividedBy=i.div=function(t,n){return e(this,new R(t,n),k,E)},i.dividedToIntegerBy=i.idiv=function(t,n){return e(this,new R(t,n),0,1)},i.exponentiatedBy=i.pow=function(t,e){var n,r,i,s,l,h,f,p,m,g=this;if(t=new R(t),t.c&&!t.isInteger())throw Error(c+"Exponent not an integer: "+W(t));if(null!=e&&(e=new R(e)),h=t.e>14,!g.c||!g.c[0]||1==g.c[0]&&!g.e&&1==g.c.length||!t.c||!t.c[0])return m=new R(Math.pow(+W(g),h?2-M(t):+W(t))),e?m.mod(e):m;if(f=t.s<0,e){if(e.c?!e.c[0]:!e.s)return new R(NaN);r=!f&&g.isInteger()&&e.isInteger(),r&&(g=g.mod(e))}else{if(t.e>9&&(g.e>0||g.e<-1||(0==g.e?g.c[0]>1||h&&g.c[1]>=24e7:g.c[0]<8e13||h&&g.c[0]<=9999975e7)))return s=g.s<0&&M(t)?-0:0,g.e>-1&&(s=1/s),new R(f?1/s:s);j&&(s=a(j/d+2))}for(h?(n=new R(.5),f&&(t.s=1),p=M(t)):(i=Math.abs(+W(t)),p=i%2),m=new R(o);;){if(p){if(m=m.times(g),!m.c)break;s?m.c.length>s&&(m.c.length=s):r&&(m=m.mod(e))}if(i){if(i=u(i/2),0===i)break;p=i%2}else if(t=t.times(n),U(t,t.e+1,1),t.e>14)p=M(t);else{if(i=+W(t),0===i)break;p=i%2}g=g.times(g),s?g.c&&g.c.length>s&&(g.c.length=s):r&&(g=g.mod(e))}return r?m:(f&&(m=o.div(m)),e?m.mod(e):s?U(m,j,E,l):m)},i.integerValue=function(t){var e=new R(this);return null==t?t=E:w(t,0,8),U(e,e.e+1,t)},i.isEqualTo=i.eq=function(t,e){return 0===_(this,new R(t,e))},i.isFinite=function(){return!!this.c},i.isGreaterThan=i.gt=function(t,e){return _(this,new R(t,e))>0},i.isGreaterThanOrEqualTo=i.gte=function(t,e){return 1===(e=_(this,new R(t,e)))||0===e},i.isInteger=function(){return!!this.c&&b(this.e/d)>this.c.length-2},i.isLessThan=i.lt=function(t,e){return _(this,new R(t,e))<0},i.isLessThanOrEqualTo=i.lte=function(t,e){return-1===(e=_(this,new R(t,e)))||0===e},i.isNaN=function(){return!this.s},i.isNegative=function(){return this.s<0},i.isPositive=function(){return this.s>0},i.isZero=function(){return!!this.c&&0==this.c[0]},i.minus=function(t,e){var n,r,i,o,s=this,a=s.s;if(t=new R(t,e),e=t.s,!a||!e)return new R(NaN);if(a!=e)return t.s=-e,s.plus(t);var u=s.e/d,c=t.e/d,l=s.c,f=t.c;if(!u||!c){if(!l||!f)return l?(t.s=-e,t):new R(f?s:NaN);if(!l[0]||!f[0])return f[0]?(t.s=-e,t):new R(l[0]?s:3==E?-0:0)}if(u=b(u),c=b(c),l=l.slice(),a=u-c){for((o=a<0)?(a=-a,i=l):(c=u,i=f),i.reverse(),e=a;e--;i.push(0));i.reverse()}else for(r=(o=(a=l.length)<(e=f.length))?a:e,a=e=0;e0)for(;e--;l[n++]=0);for(e=h-1;r>a;){if(l[--r]=0;){for(n=0,p=S[i]%_,g=S[i]/_|0,s=u,o=i+s;o>i;)c=M[--s]%_,l=M[s]/_|0,a=g*c+l*p,c=p*c+a%_*_+y[o]+n,n=(c/v|0)+(a/_|0)+g*l,y[o--]=c%v;y[o]=n}return n?++r:y.splice(0,1),z(t,y,r)},i.negated=function(){var t=new R(this);return t.s=-t.s||null,t},i.plus=function(t,e){var n,r=this,i=r.s;if(t=new R(t,e),e=t.s,!i||!e)return new R(NaN);if(i!=e)return t.s=-e,r.minus(t);var o=r.e/d,s=t.e/d,a=r.c,u=t.c;if(!o||!s){if(!a||!u)return new R(i/0);if(!a[0]||!u[0])return u[0]?t:new R(a[0]?r:0*i)}if(o=b(o),s=b(s),a=a.slice(),i=o-s){for(i>0?(s=o,n=u):(i=-i,n=a),n.reverse();i--;n.push(0));n.reverse()}for(i=a.length,e=u.length,i-e<0&&(n=u,u=a,a=n,e=i),i=0;e;)i=(a[--e]=a[e]+u[e]+i)/h|0,a[e]=h===a[e]?0:a[e]%h;return i&&(a=[i].concat(a),++s),z(t,a,s)},i.precision=i.sd=function(t,e){var n,r,i,o=this;if(null!=t&&t!==!!t)return w(t,1,g),null==e?e=E:w(e,0,8),U(new R(o),t,e);if(!(n=o.c))return null;if(i=n.length-1,r=i*d+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return t&&o.e+1>r&&(r=o.e+1),r},i.shiftedBy=function(t){return w(t,-f,f),this.times("1e"+t)},i.squareRoot=i.sqrt=function(){var t,n,r,i,o,s=this,a=s.c,u=s.s,c=s.e,l=k+4,h=new R("0.5");if(1!==u||!a||!a[0])return new R(!u||u<0&&(!a||a[0])?NaN:a?s:1/0);if(u=Math.sqrt(+W(s)),0==u||u==1/0?(n=v(a),(n.length+c)%2==0&&(n+="0"),u=Math.sqrt(+n),c=b((c+1)/2)-(c<0||c%2),u==1/0?n="5e"+c:(n=u.toExponential(),n=n.slice(0,n.indexOf("e")+1)+c),r=new R(n)):r=new R(u+""),r.c[0])for(c=r.e,u=c+l,u<3&&(u=0);;)if(o=r,r=h.times(o.plus(e(s,o,l,1))),v(o.c).slice(0,u)===(n=v(r.c)).slice(0,u)){if(r.e0&&m>0){for(o=m%a||a,h=p.substr(0,o);o0&&(h+=l+p.slice(o)),f&&(h="-"+h)}r=d?h+(n.decimalSeparator||"")+((u=+n.fractionGroupSize)?d.replace(new RegExp("\\d{"+u+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):d):h}return(n.prefix||"")+r+(n.suffix||"")},i.toFraction=function(t){var n,r,i,s,a,u,l,h,f,m,g,y,b=this,_=b.c;if(null!=t&&(l=new R(t),!l.isInteger()&&(l.c||1!==l.s)||l.lt(o)))throw Error(c+"Argument "+(l.isInteger()?"out of range: ":"not an integer: ")+W(l));if(!_)return new R(b);for(n=new R(o),f=r=new R(o),i=h=new R(o),y=v(_),a=n.e=y.length-b.e-1,n.c[0]=p[(u=a%d)<0?d+u:u],t=!t||l.comparedTo(n)>0?a>0?n:f:l,u=O,O=1/0,l=new R(y),h.c[0]=0;;){if(m=e(l,n,0,1),s=r.plus(m.times(i)),1==s.comparedTo(t))break;r=i,i=s,f=h.plus(m.times(s=f)),h=s,n=l.minus(m.times(s=n)),l=s}return s=e(t.minus(r),i,0,1),h=h.plus(s.times(f)),r=r.plus(s.times(i)),h.s=f.s=b.s,a*=2,g=e(f,i,a,E).minus(b).abs().comparedTo(e(h,r,a,E).minus(b).abs())<1?[f,i]:[h,r],O=u,g},i.toNumber=function(){return+W(this)},i.toPrecision=function(t,e){return null!=t&&w(t,1,g),Y(this,t,e,2)},i.toString=function(t){var e,r=this,i=r.s,o=r.e;return null===o?i?(e="Infinity",i<0&&(e="-"+e)):e="NaN":(null==t?e=o<=L||o>=D?S(v(r.c),o):A(v(r.c),o,"0"):10===t&&C?(r=U(new R(r),k+o+1,E),e=A(v(r.c),r.e,"0")):(w(t,2,P.length,"Base"),e=n(A(v(r.c),o,"0"),10,t,i,!0)),i<0&&r.c[0]&&(e="-"+e)),e},i.valueOf=i.toJSON=function(){return W(this)},i._isBigNumber=!0,null!=t&&R.set(t),R}function b(t){var e=0|t;return t>0||t===e?e:e-1}function v(t){for(var e,n,r=1,i=t.length,o=t[0]+"";rc^n?1:-1;for(a=(u=i.length)<(c=o.length)?u:c,s=0;so[s]^n?1:-1;return u==c?0:u>c^n?1:-1}function w(t,e,n,r){if(tn||t!==u(t))throw Error(c+(r||"Argument")+("number"==typeof t?tn?" out of range: ":" not an integer: ":" not a primitive number: ")+String(t))}function M(t){var e=t.c.length-1;return b(t.e/d)==e&&t.c[e]%2!=0}function S(t,e){return(t.length>1?t.charAt(0)+"."+t.slice(1):t)+(e<0?"e":"e+")+e}function A(t,e,n){var r,i;if(e<0){for(i=n+".";++e;i+=n);t=i+t}else if(r=t.length,++e>r){for(i=n,e-=r;--e;i+=n);t+=i}else e=4||"দুপুর"===e&&t<5||"বিকাল"===e?t+12:t},meridiem:function(t,e,n){return t<4?"রাত":t<10?"সকাল":t<17?"দুপুর":t<20?"বিকাল":"রাত"},week:{dow:0,doy:6}});return r}))},9054:function(t,e,n){"use strict";function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i={};function o(t,e,n){function o(t,n,r){return"string"===typeof e?e:e(t,n,r)}n||(n=Error);var s=function(t){function e(e,n,r){return t.call(this,o(e,n,r))||this}return r(e,t),e}(n);s.prototype.name=n.name,s.prototype.code=t,i[t]=s}function s(t,e){if(Array.isArray(t)){var n=t.length;return t=t.map((function(t){return String(t)})),n>2?"one of ".concat(e," ").concat(t.slice(0,n-1).join(", "),", or ")+t[n-1]:2===n?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}function a(t,e,n){return t.substr(!n||n<0?0:+n,e.length)===e}function u(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}function c(t,e,n){return"number"!==typeof n&&(n=0),!(n+e.length>t.length)&&-1!==t.indexOf(e,n)}o("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(t,e,n){var r,i;if("string"===typeof e&&a(e,"not ")?(r="must not be",e=e.replace(/^not /,"")):r="must be",u(t," argument"))i="The ".concat(t," ").concat(r," ").concat(s(e,"type"));else{var o=c(t,".")?"property":"argument";i='The "'.concat(t,'" ').concat(o," ").concat(r," ").concat(s(e,"type"))}return i+=". Received type ".concat(typeof n),i}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=i},9074:function(t,e,n){const r=n("61dc"),i=(t,e,n)=>0!==r(t,e,n);t.exports=i},"90e3":function(t,e,n){var r=n("e330"),i=0,o=Math.random(),s=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++i+o,36)}},"90ea":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"中午"===e?t>=11?t:t+12:"下午"===e||"晚上"===e?t+12:void 0},meridiem:function(t,e,n){var r=100*t+e;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"週";default:return t}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}});return e}))},"910a":function(t,e,n){"use strict";function r(t){var e=this;if(e instanceof r||(e=new r),e.tail=null,e.head=null,e.length=0,t&&"function"===typeof t.forEach)t.forEach((function(t){e.push(t)}));else if(arguments.length>0)for(var n=0,i=arguments.length;n1)n=e;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var i=0;null!==r;i++)n=t(n,r.value,i),r=r.next;return n},r.prototype.reduceReverse=function(t,e){var n,r=this.tail;if(arguments.length>1)n=e;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var i=this.length-1;null!==r;i--)n=t(n,r.value,i),r=r.prev;return n},r.prototype.toArray=function(){for(var t=new Array(this.length),e=0,n=this.head;null!==n;e++)t[e]=n.value,n=n.next;return t},r.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,n=this.tail;null!==n;e++)t[e]=n.value,n=n.prev;return t},r.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var n=new r;if(ethis.length&&(e=this.length);for(var i=0,o=this.head;null!==o&&ithis.length&&(e=this.length);for(var i=this.length,o=this.tail;null!==o&&i>e;i--)o=o.prev;for(;null!==o&&i>t;i--,o=o.prev)n.push(o.value);return n},r.prototype.splice=function(t,e,...n){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var r=0,o=this.head;null!==o&&r{if(t instanceof r)return t;if("number"===typeof t&&(t=String(t)),"string"!==typeof t)return null;e=e||{};let n=null;if(e.rtl){let e;while((e=o[s.COERCERTL].exec(t))&&(!n||n.index+n[0].length!==t.length))n&&e.index+e[0].length===n.index+n[0].length||(n=e),o[s.COERCERTL].lastIndex=e.index+e[1].length+e[2].length;o[s.COERCERTL].lastIndex=-1}else n=t.match(o[s.COERCE]);return null===n?null:i(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,e)};t.exports=a},9152:function(t,e){ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ e.read=function(t,e,n,r,i){var o,s,a=8*i-r-1,u=(1<>1,l=-7,h=n?i-1:0,d=n?-1:1,f=t[e+h];for(h+=d,o=f&(1<<-l)-1,f>>=-l,l+=a;l>0;o=256*o+t[e+h],h+=d,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=r;l>0;s=256*s+t[e+h],h+=d,l-=8);if(0===o)o=1-c;else{if(o===u)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,r),o-=c}return(f?-1:1)*s*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var s,a,u,c=8*o-i-1,l=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,p=r?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),e+=s+h>=1?d/u:d*Math.pow(2,1-h),e*u>=2&&(s++,u/=2),s+h>=l?(a=0,s=l):s+h>=1?(a=(e*u-1)*Math.pow(2,i),s+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;t[n+f]=255&a,f+=p,a/=256,i-=8);for(s=s<0;t[n+f]=255&s,f+=p,s/=256,c-=8);t[n+f-p]|=128*m}},"919c":function(t,e){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},"92a9":function(t,e,n){(function(e){const{Transform:r}=n("e399");t.exports=t=>class n extends r{constructor(e,n,r,i){super(i),this._rate=e,this._capacity=n,this._delimitedSuffix=r,this._options=i,this._state=new t,this._state.initialize(e,n),this._finalized=!1}_transform(t,e,n){let r=null;try{this.update(t,e)}catch(i){r=i}n(r)}_flush(){}_read(t){this.push(this.squeeze(t))}update(t,n){if(!e.isBuffer(t)&&"string"!==typeof t)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return e.isBuffer(t)||(t=e.from(t,n)),this._state.absorb(t),this}squeeze(t,e){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let n=this._state.squeeze(t);return void 0!==e&&(n=n.toString(e)),n}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const t=new n(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}}}).call(this,n("b639").Buffer)},"92b1":function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function s(t){try{u(r.next(t))}catch(e){o(e)}}function a(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(s,a)}u((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.CoinhubWalletAdapter=e.CoinhubWalletName=void 0;const i=n("0a37"),o=n("64b9");e.CoinhubWalletName="Coinhub";class s extends i.BaseSignerWalletAdapter{constructor(t={}){super(),this.name=e.CoinhubWalletName,this.url="https://coinhub.org",this.icon="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTAwcHgiIGhlaWdodD0iMTAwcHgiIHZpZXdCb3g9IjAgMCAxMDAgMTAwIiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPHRpdGxlPuefqeW9ojwvdGl0bGU+CiAgICA8ZyBpZD0i6aG16Z2iLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSLkuIvovb3pobVpb3MiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMzguMDAwMDAwLCAtOTQuMDAwMDAwKSI+CiAgICAgICAgICAgIDxnIGlkPSJDb2luaHViLSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTM4LjAwMDAwMCwgOTQuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICA8cmVjdCBpZD0i55+p5b2iIiB4PSIwIiB5PSIwIiB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCI+PC9yZWN0PgogICAgICAgICAgICAgICAgPGcgaWQ9Iue8lue7hCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMy4zMzMzMzMsIDMuMzMzMzMzKSIgZmlsbC1ydWxlPSJub256ZXJvIj4KICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNNTcuOTU2MzU0Miw0MC43MDQ2MzE2IEM1Ny45NTYzNTQyLDQwLjcwNDYzMTYgNjIuNzc2ODc1LDU2LjM0NTIxMDUgODEuNjE1OTg5Niw1OC41MTY2ODQyIEM4NC43MzEzNTQyLDU4Ljg3NTUyNjMgODguMjYwNTIwOCw1OS4yNjM4NDIxIDkxLjg2ODQzNzUsNTguMTg4MDUyNiBDOTIuMDIyMjkxNyw1OC4xOTc2MzE2IDkyLjE3MjUsNTguMjQwNzM2OCA5Mi4zMDgxMjUsNTguMzE0MDUyNiBDOTIuNDQ0MTE0Niw1OC4zODczNjg0IDkyLjU2Mjk2ODgsNTguNDg5MDUyNiA5Mi42NTY2NjY3LDU4LjYxMjg0MjEgQzkyLjc1LDU4LjczNjYzMTYgOTIuODE1OTg5Niw1OC44Nzk1Nzg5IDkyLjg1MDI2MDQsNTkuMDMxMzY4NCBDOTIuODg0NTMxMyw1OS4xODMxNTc5IDkyLjg4NTYyNSw1OS4zNDA0NzM3IDkyLjg1NDI3MDgsNTkuNDkzIEM5Mi4zMjM4MDIxLDYzLjE1MTc4OTUgOTEuMTIzNTkzNyw2Ni42Nzg2ODQyIDg5LjMxNTI2MDQsNjkuODkzNTI2MyBDODQuNzQxMTk3OSw3OC4xMTE4OTQ3IDc0LjY5NTQ2ODgsODguOTgwNjg0MiA1Mi4wMTE4MjI5LDkyLjgwNiBDNTAuODA5MDYyNSw5Mi44MDYgNDguNDMzMDcyOSw5MS43NDAxNTc5IDQ3LjMyOTExNDYsOTEuOTI5NTI2MyBDNDcuMzI5MTE0Niw5MS45MDkyNjMyIDE5Ljk3MjUzMTIsNjcuNjUyMDUyNiA1Ny45NTYzNTQyLDQwLjcwNDYzMTYgWiIgaWQ9Iui3r+W+hCIgZmlsbD0iI0NGQkZBMyI+PC9wYXRoPgogICAgICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik01Mi4wMTE0NTgzLDkyLjgwNiBDNTIuMDExNDU4Myw5Mi44MDYgMzIuMTk2NSw2NC4xNzUyNjMyIDYzLjMwOTE2NjcsNDkuNTExIEw1OS40MzQ3Mzk2LDQ0LjQxMDU3ODkgQzU5LjQzNDczOTYsNDQuNDEwNTc4OSAxOS4xNDQxOTc5LDY1LjE5MTM2ODQgNTIuMDExNDU4Myw5Mi44MDYgWiIgaWQ9Iui3r+W+hCIgZmlsbD0iI0I5QTc5OCI+PC9wYXRoPgogICAgICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik05Mi44NTQ2MzU0LDU5LjUzMzE1NzkgQzkyLjIzOTU4MzMsNjMuMzYxMDUyNiA5MC45NDAyMDgzLDY3LjA0Mzc4OTUgODkuMDE5OTQ3OSw3MC40MDE1Nzg5IEw4My4yNjI0NDc5LDU4LjY5NjEwNTMgQzg1LjkzMDEwNDIsNTkuMDU0OTQ3NCA4OC42Mzk2ODc1LDU4LjkxNjQyMTEgOTEuMjU3NzYwNCw1OC4yODc4OTQ3IEM5Mi41MDk3Mzk2LDU3Ljk5OTA1MjYgOTMuMDUxODc1LDU4LjQxNzIxMDUgOTIuODU0NjM1NCw1OS41MzMxNTc5IFoiIGlkPSLot6/lvoQiIGZpbGw9IiM4QzY3NDIiPjwvcGF0aD4KICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNNTkuNzk5Njg3NSw2Ny41MzIzMTU4IEM2Mi4wMTU2MjUsNjcuNTMyMzE1OCA2My44MTE5MjcxLDY1LjcxNzEwNTMgNjMuODExOTI3MSw2My40Nzc4NDIxIEM2My44MTE5MjcxLDYxLjIzODU3ODkgNjIuMDE1NjI1LDU5LjQyMzM2ODQgNTkuNzk5Njg3NSw1OS40MjMzNjg0IEM1Ny41ODM3NSw1OS40MjMzNjg0IDU1Ljc4NzQ0NzksNjEuMjM4NTc4OSA1NS43ODc0NDc5LDYzLjQ3Nzg0MjEgQzU1Ljc4NzQ0NzksNjUuNzE3MTA1MyA1Ny41ODM3NSw2Ny41MzIzMTU4IDU5Ljc5OTY4NzUsNjcuNTMyMzE1OCBaIiBpZD0i6Lev5b6EIiBmaWxsPSIjMjIyMjIyIj48L3BhdGg+CiAgICAgICAgICAgICAgICAgICAgPHBhdGggZD0iTTYwLjU1OTExNDYsNi44MTQwMjEwNSBMNjMuODkxMDQxNywxLjI3NTEzNDc0IEM1OC4yNzI4MTI1LDIuMjE4NjEzMTYgNTIuNzc3MDgzMywzLjc5NTg0MjExIDQ3LjUwNjY2NjcsNS45NzcxODk0NyBDNDYuMTIzODAyMSw2LjEwODQ5NDc0IDQ0Ljc0ODU5MzcsNi4zMTEzMTA1MyA0My4zODYxNDU4LDYuNTg0ODYzMTYgTDUwLjA2MDIwODMsMy40NjI0NjIyOWUtMTMgQzQzLjQ2MzA3MjksMS42MzEzMDk0NyAzNy40ODkzNzUsNS4xOTM3NDIxMSAzMi44ODcwNTczLDEwLjI0MDkyNjMgQzMyLjIwNjgxNzcsMTAuNTc5NjUyNiAzMS41MzY0NTgzLDEwLjk0ODI1NzkgMzAuOTE1MzkwNiwxMS4zMzY3NTc5IEwzNi4xNTAxMTQ2LDEuNTkzOTI1NzkgQzI5LjA0OTE5NzksNS40NjMyNDIxMSAyMy40ODAzMzMzLDExLjY4MTYzNjggMjAuMzc2OTYzNSwxOS4yMDY3NDc0IEwyMy42MTA0NTMxLDcuODUwMDU3ODkgQzIzLjYxMDQ1MzEsNy44NTAwNTc4OSAxNS40Mzc5ODk2LDE0LjEwNjIxNTggMTMuOTg4ODQzNywyOS41MzczNDc0IEMxMy44MDE1MjA4LDI5LjkxNTkgMTMuNjE0MTk3OSwzMC4yOTQ0NTI2IDEzLjQzNjc1NTIsMzAuNjgyOTUyNiBMMTIuNTQ5NTQxNywxNi44NTU3MDUzIEMxMi41NDk1NDE3LDE2Ljg1NTcwNTMgNC42MDM4MTI1LDI5LjY1Njg2MzIgOS43MTAzNDg5Niw0NC4xMzE2ODQyIEw0LjE2MDE4NzUsMzAuMTg0ODQ3NCBDNC4xNjAxODc1LDMwLjE4NDg0NzQgMC43MTk2NTEwNDIsNDEuMTQzMDUyNiA5LjA4OTI4MTI1LDU1LjM0OSBMLTIuNzYzMjIxNzVlLTE0LDQ0LjcwOTM2ODQgQy0yLjc2MzIyMTc1ZS0xNCw0NC43MDkzNjg0IDAuODc3MzgwNzI5LDYzLjA2OTI2MzIgMTEuMjY3OTU4Myw3My4wMDE1MjYzIEMxMS4yNjc5NTgzLDczLjAwMTUyNjMgMTUuMDA0MjA4Myw3MS44NzYgMTcuMzAxMTkyNyw3NC41NDU1Nzg5IEMyMC45NjAyMjQsNzkuOTIzNDIxMSAyNS44MDI5NDc5LDg0LjM3MSAzMS40NDkxNzcxLDg3LjUzOTQyMTEgQzM3LjA5NTI2MDQsOTAuNzA3NDczNyA0My4zOTE2MTQ2LDkyLjUxMDUyNjMgNDkuODQzMjgxMiw5Mi44MDYgQzUwLjM4NTQxNjcsOTIuODA2IDUxLjQ2OTY4NzUsOTIuODA2IDUxLjQ2OTY4NzUsOTIuODA2IEM1MS40Njk2ODc1LDkyLjgwNiAzMi4xODcwOTM3LDc1Ljk4MDIxMDUgNTAuNzY5Njg3NSw1MS45NjE3MzY4IEM2OS4zNjIzNDM3LDI5Ljg1NjEwNTMgOTMuMzg2OTI3MSw0NS4yMjczNjg0IDkzLjE2MDE1NjIsNDMuMjQ0ODk0NyBDOTIuMDM3NjA0MiwzNC41NDI2Nzg5IDg4LjMxNTU3MjksMjYuMzkzMjA1MyA4Mi40OTA2MjUsMTkuODgzOTc4OSBDNzYuNjY1Njc3MSwxMy4zNzQ3NTI2IDY5LjAxNDg5NTgsOC44MTUzMjEwNSA2MC41NTkxMTQ2LDYuODE0MDIxMDUgTDYwLjU1OTExNDYsNi44MTQwMjEwNSBaIiBpZD0i6Lev5b6EIiBmaWxsPSIjMjJBMDc5Ij48L3BhdGg+CiAgICAgICAgICAgICAgICAgICAgPHBhdGggZD0iTTQzLjM0NjQwNjMsNzguNTgwMTU3OSBDNDMuMzQ2NDA2Myw3OC41ODAxNTc5IDIyLjA2MjQzMjMsODYuMDgxNTc4OSAyLjI4NjgzNDM4LDU3LjAzMjMxNTggQzQuNDA4MTc3MDgsNjQuNjU0MjEwNSA4LjIwNjE1MTA0LDcxLjY5MzI2MzIgMTMuMzk3MDUyMSw3Ny42MjM3MzY4IEMyMC42MjMxMzAyLDg2LjAyMTg5NDcgMzQuOTc2NzM5Niw5My4zMTQwNTI2IDUyLjAxMTgyMjksOTIuNzg2MTA1MyBDNDkuOTUzNzUsOTEuMTc5NDIxMSA0OC4yMzcyOTE3LDg5LjE3MDQyMTEgNDYuOTY0MTY2Nyw4Ni44Nzg0NzM3IEM0NS40OTM4MDIxLDg0LjIzOCA0NC4yODE5MjcxLDgxLjQ1OSA0My4zNDY0MDYzLDc4LjU4MDE1NzkgTDQzLjM0NjQwNjMsNzguNTgwMTU3OSBaIiBpZD0i6Lev5b6EIiBmaWxsPSIjMUI4MDYxIj48L3BhdGg+CiAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==",this._readyState="undefined"===typeof window||"undefined"===typeof document?i.WalletReadyState.Unsupported:i.WalletReadyState.NotDetected,this._connecting=!1,this._wallet=null,this._publicKey=null,this._readyState!==i.WalletReadyState.Unsupported&&(0,i.scopePollingDetectionStrategy)(()=>{var t;return!!(null===(t=window.coinhub)||void 0===t?void 0:t.isCoinhubWallet)&&(this._readyState=i.WalletReadyState.Installed,this.emit("readyStateChange",this._readyState),!0)})}get publicKey(){return this._publicKey}get connecting(){return this._connecting}get readyState(){return this._readyState}connect(){return r(this,void 0,void 0,(function*(){try{if(this.connected||this.connecting)return;if(this._readyState!==i.WalletReadyState.Installed)throw new i.WalletNotReadyError;this._connecting=!0;const e=window.coinhub;let n,r;try{n=yield e.getAccount()}catch(t){throw new i.WalletAccountError(null===t||void 0===t?void 0:t.message,t)}try{r=new o.PublicKey(n)}catch(t){throw new i.WalletPublicKeyError(null===t||void 0===t?void 0:t.message,t)}this._wallet=e,this._publicKey=r,this.emit("connect",r)}catch(t){throw this.emit("error",t),t}finally{this._connecting=!1}}))}disconnect(){return r(this,void 0,void 0,(function*(){this._wallet&&(this._wallet=null,this._publicKey=null),this.emit("disconnect")}))}signTransaction(t){return r(this,void 0,void 0,(function*(){try{const n=this._wallet;if(!n)throw new i.WalletNotConnectedError;try{return n.signTransaction(t)}catch(e){throw new i.WalletSignTransactionError(null===e||void 0===e?void 0:e.message,e)}}catch(e){throw this.emit("error",e),e}}))}signAllTransactions(t){return r(this,void 0,void 0,(function*(){try{const n=this._wallet;if(!n)throw new i.WalletNotConnectedError;try{return n.signAllTransactions(t)}catch(e){throw new i.WalletSignTransactionError(null===e||void 0===e?void 0:e.message,e)}}catch(e){throw this.emit("error",e),e}}))}}e.CoinhubWalletAdapter=s},"93e6":function(t,e,n){"use strict";var r=n("0632").Buffer,i=n("334a").Transform,o=n("3fb5");function s(t,e){if(!r.isBuffer(t)&&"string"!==typeof t)throw new TypeError(e+" must be a string or a buffer")}function a(t){i.call(this),this._block=r.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}o(a,i),a.prototype._transform=function(t,e,n){var r=null;try{this.update(t,e)}catch(i){r=i}n(r)},a.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(n){e=n}t(e)},a.prototype.update=function(t,e){if(s(t,"Data"),this._finalized)throw new Error("Digest already called");r.isBuffer(t)||(t=r.from(t,e));var n=this._block,i=0;while(this._blockOffset+t.length-i>=this._blockSize){for(var o=this._blockOffset;o0;++a)this._length[a]+=u,u=this._length[a]/4294967296|0,u>0&&(this._length[a]-=4294967296*u);return this},a.prototype._update=function(){throw new Error("_update is not implemented")},a.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return e},a.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=a},9428:function(t,e,n){"use strict";var r=n("8707").Buffer;function i(t){if(t.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),n=0;n>>0,h=new Uint8Array(c);while(o!==s){for(var d=e[o],f=0,p=c-1;(0!==d||f>>0,h[p]=d%a>>>0,d=d/a>>>0;if(0!==d)throw new Error("Non-zero carry");i=f,o++}var m=c-i;while(m!==c&&0===h[m])m++;for(var g=u.repeat(n);m>>0,l=new Uint8Array(s);while(t[n]){var h=e[t.charCodeAt(n)];if(255===h)return;for(var d=0,f=s-1;(0!==h||d>>0,l[f]=h%256>>>0,h=h/256>>>0;if(0!==h)throw new Error("Non-zero carry");o=d,n++}var p=s-o;while(p!==s&&0===l[p])p++;var m=r.allocUnsafe(i+(s-p));m.fill(0,0,i);var g=i;while(p!==s)m[g++]=l[p++];return m}function f(t){var e=d(t);if(e)return e;throw new Error("Non-base"+a+" character")}return{encode:h,decodeUnsafe:d,decode:f}}t.exports=i},"942d":function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n("b655"),e)},"945d":function(t,e,n){"use strict";var r=n("7d92"),i=n("0cbb"),o=n("f3a3"),s=o.assert,a=o.parseBytes,u=n("380f"),c=n("44a3");function l(t){if(s("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof l))return new l(t);t=i[t].curve,this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=r.sha512}t.exports=l,l.prototype.sign=function(t,e){t=a(t);var n=this.keyFromSecret(e),r=this.hashInt(n.messagePrefix(),t),i=this.g.mul(r),o=this.encodePoint(i),s=this.hashInt(o,n.pubBytes(),t).mul(n.priv()),u=r.add(s).umod(this.curve.n);return this.makeSignature({R:i,S:u,Rencoded:o})},l.prototype.verify=function(t,e,n){t=a(t),e=this.makeSignature(e);var r=this.keyFromPublic(n),i=this.hashInt(e.Rencoded(),r.pubBytes(),t),o=this.g.mul(e.S()),s=e.R().add(r.pub().mul(i));return s.eq(o)},l.prototype.hashInt=function(){for(var t=this.hash(),e=0;e>24&255,t[e+1]=n>>16&255,t[e+2]=n>>8&255,t[e+3]=255&n,t[e+4]=r>>24&255,t[e+5]=r>>16&255,t[e+6]=r>>8&255,t[e+7]=255&r}function m(t,e,n,r,i){var o,s=0;for(o=0;o>>8)-1}function g(t,e,n,r){return m(t,e,n,r,16)}function y(t,e,n,r){return m(t,e,n,r,32)}function b(t,e,n,r){for(var i,o=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,u=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,c=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,l=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,h=255&e[0]|(255&e[1])<<8|(255&e[2])<<16|(255&e[3])<<24,d=255&e[4]|(255&e[5])<<8|(255&e[6])<<16|(255&e[7])<<24,f=255&e[8]|(255&e[9])<<8|(255&e[10])<<16|(255&e[11])<<24,p=255&e[12]|(255&e[13])<<8|(255&e[14])<<16|(255&e[15])<<24,m=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,g=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,y=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,b=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,v=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,_=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,w=o,M=s,S=a,A=u,k=c,E=l,L=h,D=d,T=f,O=p,x=m,I=g,j=y,N=b,P=v,C=_,R=0;R<20;R+=2)i=w+j|0,k^=i<<7|i>>>25,i=k+w|0,T^=i<<9|i>>>23,i=T+k|0,j^=i<<13|i>>>19,i=j+T|0,w^=i<<18|i>>>14,i=E+M|0,O^=i<<7|i>>>25,i=O+E|0,N^=i<<9|i>>>23,i=N+O|0,M^=i<<13|i>>>19,i=M+N|0,E^=i<<18|i>>>14,i=x+L|0,P^=i<<7|i>>>25,i=P+x|0,S^=i<<9|i>>>23,i=S+P|0,L^=i<<13|i>>>19,i=L+S|0,x^=i<<18|i>>>14,i=C+I|0,A^=i<<7|i>>>25,i=A+C|0,D^=i<<9|i>>>23,i=D+A|0,I^=i<<13|i>>>19,i=I+D|0,C^=i<<18|i>>>14,i=w+A|0,M^=i<<7|i>>>25,i=M+w|0,S^=i<<9|i>>>23,i=S+M|0,A^=i<<13|i>>>19,i=A+S|0,w^=i<<18|i>>>14,i=E+k|0,L^=i<<7|i>>>25,i=L+E|0,D^=i<<9|i>>>23,i=D+L|0,k^=i<<13|i>>>19,i=k+D|0,E^=i<<18|i>>>14,i=x+O|0,I^=i<<7|i>>>25,i=I+x|0,T^=i<<9|i>>>23,i=T+I|0,O^=i<<13|i>>>19,i=O+T|0,x^=i<<18|i>>>14,i=C+P|0,j^=i<<7|i>>>25,i=j+C|0,N^=i<<9|i>>>23,i=N+j|0,P^=i<<13|i>>>19,i=P+N|0,C^=i<<18|i>>>14;w=w+o|0,M=M+s|0,S=S+a|0,A=A+u|0,k=k+c|0,E=E+l|0,L=L+h|0,D=D+d|0,T=T+f|0,O=O+p|0,x=x+m|0,I=I+g|0,j=j+y|0,N=N+b|0,P=P+v|0,C=C+_|0,t[0]=w>>>0&255,t[1]=w>>>8&255,t[2]=w>>>16&255,t[3]=w>>>24&255,t[4]=M>>>0&255,t[5]=M>>>8&255,t[6]=M>>>16&255,t[7]=M>>>24&255,t[8]=S>>>0&255,t[9]=S>>>8&255,t[10]=S>>>16&255,t[11]=S>>>24&255,t[12]=A>>>0&255,t[13]=A>>>8&255,t[14]=A>>>16&255,t[15]=A>>>24&255,t[16]=k>>>0&255,t[17]=k>>>8&255,t[18]=k>>>16&255,t[19]=k>>>24&255,t[20]=E>>>0&255,t[21]=E>>>8&255,t[22]=E>>>16&255,t[23]=E>>>24&255,t[24]=L>>>0&255,t[25]=L>>>8&255,t[26]=L>>>16&255,t[27]=L>>>24&255,t[28]=D>>>0&255,t[29]=D>>>8&255,t[30]=D>>>16&255,t[31]=D>>>24&255,t[32]=T>>>0&255,t[33]=T>>>8&255,t[34]=T>>>16&255,t[35]=T>>>24&255,t[36]=O>>>0&255,t[37]=O>>>8&255,t[38]=O>>>16&255,t[39]=O>>>24&255,t[40]=x>>>0&255,t[41]=x>>>8&255,t[42]=x>>>16&255,t[43]=x>>>24&255,t[44]=I>>>0&255,t[45]=I>>>8&255,t[46]=I>>>16&255,t[47]=I>>>24&255,t[48]=j>>>0&255,t[49]=j>>>8&255,t[50]=j>>>16&255,t[51]=j>>>24&255,t[52]=N>>>0&255,t[53]=N>>>8&255,t[54]=N>>>16&255,t[55]=N>>>24&255,t[56]=P>>>0&255,t[57]=P>>>8&255,t[58]=P>>>16&255,t[59]=P>>>24&255,t[60]=C>>>0&255,t[61]=C>>>8&255,t[62]=C>>>16&255,t[63]=C>>>24&255}function v(t,e,n,r){for(var i,o=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,u=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,c=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,l=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,h=255&e[0]|(255&e[1])<<8|(255&e[2])<<16|(255&e[3])<<24,d=255&e[4]|(255&e[5])<<8|(255&e[6])<<16|(255&e[7])<<24,f=255&e[8]|(255&e[9])<<8|(255&e[10])<<16|(255&e[11])<<24,p=255&e[12]|(255&e[13])<<8|(255&e[14])<<16|(255&e[15])<<24,m=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,g=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,y=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,b=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,v=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,_=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,w=o,M=s,S=a,A=u,k=c,E=l,L=h,D=d,T=f,O=p,x=m,I=g,j=y,N=b,P=v,C=_,R=0;R<20;R+=2)i=w+j|0,k^=i<<7|i>>>25,i=k+w|0,T^=i<<9|i>>>23,i=T+k|0,j^=i<<13|i>>>19,i=j+T|0,w^=i<<18|i>>>14,i=E+M|0,O^=i<<7|i>>>25,i=O+E|0,N^=i<<9|i>>>23,i=N+O|0,M^=i<<13|i>>>19,i=M+N|0,E^=i<<18|i>>>14,i=x+L|0,P^=i<<7|i>>>25,i=P+x|0,S^=i<<9|i>>>23,i=S+P|0,L^=i<<13|i>>>19,i=L+S|0,x^=i<<18|i>>>14,i=C+I|0,A^=i<<7|i>>>25,i=A+C|0,D^=i<<9|i>>>23,i=D+A|0,I^=i<<13|i>>>19,i=I+D|0,C^=i<<18|i>>>14,i=w+A|0,M^=i<<7|i>>>25,i=M+w|0,S^=i<<9|i>>>23,i=S+M|0,A^=i<<13|i>>>19,i=A+S|0,w^=i<<18|i>>>14,i=E+k|0,L^=i<<7|i>>>25,i=L+E|0,D^=i<<9|i>>>23,i=D+L|0,k^=i<<13|i>>>19,i=k+D|0,E^=i<<18|i>>>14,i=x+O|0,I^=i<<7|i>>>25,i=I+x|0,T^=i<<9|i>>>23,i=T+I|0,O^=i<<13|i>>>19,i=O+T|0,x^=i<<18|i>>>14,i=C+P|0,j^=i<<7|i>>>25,i=j+C|0,N^=i<<9|i>>>23,i=N+j|0,P^=i<<13|i>>>19,i=P+N|0,C^=i<<18|i>>>14;t[0]=w>>>0&255,t[1]=w>>>8&255,t[2]=w>>>16&255,t[3]=w>>>24&255,t[4]=E>>>0&255,t[5]=E>>>8&255,t[6]=E>>>16&255,t[7]=E>>>24&255,t[8]=x>>>0&255,t[9]=x>>>8&255,t[10]=x>>>16&255,t[11]=x>>>24&255,t[12]=C>>>0&255,t[13]=C>>>8&255,t[14]=C>>>16&255,t[15]=C>>>24&255,t[16]=L>>>0&255,t[17]=L>>>8&255,t[18]=L>>>16&255,t[19]=L>>>24&255,t[20]=D>>>0&255,t[21]=D>>>8&255,t[22]=D>>>16&255,t[23]=D>>>24&255,t[24]=T>>>0&255,t[25]=T>>>8&255,t[26]=T>>>16&255,t[27]=T>>>24&255,t[28]=O>>>0&255,t[29]=O>>>8&255,t[30]=O>>>16&255,t[31]=O>>>24&255}function _(t,e,n,r){b(t,e,n,r)}function w(t,e,n,r){v(t,e,n,r)}var M=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function S(t,e,n,r,i,o,s){var a,u,c=new Uint8Array(16),l=new Uint8Array(64);for(u=0;u<16;u++)c[u]=0;for(u=0;u<8;u++)c[u]=o[u];while(i>=64){for(_(l,c,s,M),u=0;u<64;u++)t[e+u]=n[r+u]^l[u];for(a=1,u=8;u<16;u++)a=a+(255&c[u])|0,c[u]=255&a,a>>>=8;i-=64,e+=64,r+=64}if(i>0)for(_(l,c,s,M),u=0;u=64){for(_(u,a,i,M),s=0;s<64;s++)t[e+s]=u[s];for(o=1,s=8;s<16;s++)o=o+(255&a[s])|0,a[s]=255&o,o>>>=8;n-=64,e+=64}if(n>0)for(_(u,a,i,M),s=0;s>>13|n<<3),r=255&t[4]|(255&t[5])<<8,this.r[2]=7939&(n>>>10|r<<6),i=255&t[6]|(255&t[7])<<8,this.r[3]=8191&(r>>>7|i<<9),o=255&t[8]|(255&t[9])<<8,this.r[4]=255&(i>>>4|o<<12),this.r[5]=o>>>1&8190,s=255&t[10]|(255&t[11])<<8,this.r[6]=8191&(o>>>14|s<<2),a=255&t[12]|(255&t[13])<<8,this.r[7]=8065&(s>>>11|a<<5),u=255&t[14]|(255&t[15])<<8,this.r[8]=8191&(a>>>8|u<<8),this.r[9]=u>>>5&127,this.pad[0]=255&t[16]|(255&t[17])<<8,this.pad[1]=255&t[18]|(255&t[19])<<8,this.pad[2]=255&t[20]|(255&t[21])<<8,this.pad[3]=255&t[22]|(255&t[23])<<8,this.pad[4]=255&t[24]|(255&t[25])<<8,this.pad[5]=255&t[26]|(255&t[27])<<8,this.pad[6]=255&t[28]|(255&t[29])<<8,this.pad[7]=255&t[30]|(255&t[31])<<8};function D(t,e,n,r,i,o){var s=new L(o);return s.update(n,r,i),s.finish(t,e),0}function T(t,e,n,r,i,o){var s=new Uint8Array(16);return D(s,0,n,r,i,o),g(t,e,s,0)}function O(t,e,n,r,i){var o;if(n<32)return-1;for(E(t,0,e,0,n,r,i),D(t,16,t,32,n-32,t),o=0;o<16;o++)t[o]=0;return 0}function x(t,e,n,r,i){var o,s=new Uint8Array(32);if(n<32)return-1;if(k(s,0,32,r,i),0!==T(e,16,e,32,n-32,s))return-1;for(E(t,0,e,0,n,r,i),o=0;o<32;o++)t[o]=0;return 0}function I(t,e){var n;for(n=0;n<16;n++)t[n]=0|e[n]}function j(t){var e,n,r=1;for(e=0;e<16;e++)n=t[e]+r+65535,r=Math.floor(n/65536),t[e]=n-65536*r;t[0]+=r-1+37*(r-1)}function N(t,e,n){for(var r,i=~(n-1),o=0;o<16;o++)r=i&(t[o]^e[o]),t[o]^=r,e[o]^=r}function P(t,n){var r,i,o,s=e(),a=e();for(r=0;r<16;r++)a[r]=n[r];for(j(a),j(a),j(a),i=0;i<2;i++){for(s[0]=a[0]-65517,r=1;r<15;r++)s[r]=a[r]-65535-(s[r-1]>>16&1),s[r-1]&=65535;s[15]=a[15]-32767-(s[14]>>16&1),o=s[15]>>16&1,s[14]&=65535,N(a,s,1-o)}for(r=0;r<16;r++)t[2*r]=255&a[r],t[2*r+1]=a[r]>>8}function C(t,e){var n=new Uint8Array(32),r=new Uint8Array(32);return P(n,t),P(r,e),y(n,0,r,0)}function R(t){var e=new Uint8Array(32);return P(e,t),1&e[0]}function Y(t,e){var n;for(n=0;n<16;n++)t[n]=e[2*n]+(e[2*n+1]<<8);t[15]&=32767}function B(t,e,n){for(var r=0;r<16;r++)t[r]=e[r]+n[r]}function z(t,e,n){for(var r=0;r<16;r++)t[r]=e[r]-n[r]}function U(t,e,n){var r,i,o=0,s=0,a=0,u=0,c=0,l=0,h=0,d=0,f=0,p=0,m=0,g=0,y=0,b=0,v=0,_=0,w=0,M=0,S=0,A=0,k=0,E=0,L=0,D=0,T=0,O=0,x=0,I=0,j=0,N=0,P=0,C=n[0],R=n[1],Y=n[2],B=n[3],z=n[4],U=n[5],W=n[6],H=n[7],F=n[8],q=n[9],V=n[10],K=n[11],G=n[12],Q=n[13],Z=n[14],J=n[15];r=e[0],o+=r*C,s+=r*R,a+=r*Y,u+=r*B,c+=r*z,l+=r*U,h+=r*W,d+=r*H,f+=r*F,p+=r*q,m+=r*V,g+=r*K,y+=r*G,b+=r*Q,v+=r*Z,_+=r*J,r=e[1],s+=r*C,a+=r*R,u+=r*Y,c+=r*B,l+=r*z,h+=r*U,d+=r*W,f+=r*H,p+=r*F,m+=r*q,g+=r*V,y+=r*K,b+=r*G,v+=r*Q,_+=r*Z,w+=r*J,r=e[2],a+=r*C,u+=r*R,c+=r*Y,l+=r*B,h+=r*z,d+=r*U,f+=r*W,p+=r*H,m+=r*F,g+=r*q,y+=r*V,b+=r*K,v+=r*G,_+=r*Q,w+=r*Z,M+=r*J,r=e[3],u+=r*C,c+=r*R,l+=r*Y,h+=r*B,d+=r*z,f+=r*U,p+=r*W,m+=r*H,g+=r*F,y+=r*q,b+=r*V,v+=r*K,_+=r*G,w+=r*Q,M+=r*Z,S+=r*J,r=e[4],c+=r*C,l+=r*R,h+=r*Y,d+=r*B,f+=r*z,p+=r*U,m+=r*W,g+=r*H,y+=r*F,b+=r*q,v+=r*V,_+=r*K,w+=r*G,M+=r*Q,S+=r*Z,A+=r*J,r=e[5],l+=r*C,h+=r*R,d+=r*Y,f+=r*B,p+=r*z,m+=r*U,g+=r*W,y+=r*H,b+=r*F,v+=r*q,_+=r*V,w+=r*K,M+=r*G,S+=r*Q,A+=r*Z,k+=r*J,r=e[6],h+=r*C,d+=r*R,f+=r*Y,p+=r*B,m+=r*z,g+=r*U,y+=r*W,b+=r*H,v+=r*F,_+=r*q,w+=r*V,M+=r*K,S+=r*G,A+=r*Q,k+=r*Z,E+=r*J,r=e[7],d+=r*C,f+=r*R,p+=r*Y,m+=r*B,g+=r*z,y+=r*U,b+=r*W,v+=r*H,_+=r*F,w+=r*q,M+=r*V,S+=r*K,A+=r*G,k+=r*Q,E+=r*Z,L+=r*J,r=e[8],f+=r*C,p+=r*R,m+=r*Y,g+=r*B,y+=r*z,b+=r*U,v+=r*W,_+=r*H,w+=r*F,M+=r*q,S+=r*V,A+=r*K,k+=r*G,E+=r*Q,L+=r*Z,D+=r*J,r=e[9],p+=r*C,m+=r*R,g+=r*Y,y+=r*B,b+=r*z,v+=r*U,_+=r*W,w+=r*H,M+=r*F,S+=r*q,A+=r*V,k+=r*K,E+=r*G,L+=r*Q,D+=r*Z,T+=r*J,r=e[10],m+=r*C,g+=r*R,y+=r*Y,b+=r*B,v+=r*z,_+=r*U,w+=r*W,M+=r*H,S+=r*F,A+=r*q,k+=r*V,E+=r*K,L+=r*G,D+=r*Q,T+=r*Z,O+=r*J,r=e[11],g+=r*C,y+=r*R,b+=r*Y,v+=r*B,_+=r*z,w+=r*U,M+=r*W,S+=r*H,A+=r*F,k+=r*q,E+=r*V,L+=r*K,D+=r*G,T+=r*Q,O+=r*Z,x+=r*J,r=e[12],y+=r*C,b+=r*R,v+=r*Y,_+=r*B,w+=r*z,M+=r*U,S+=r*W,A+=r*H,k+=r*F,E+=r*q,L+=r*V,D+=r*K,T+=r*G,O+=r*Q,x+=r*Z,I+=r*J,r=e[13],b+=r*C,v+=r*R,_+=r*Y,w+=r*B,M+=r*z,S+=r*U,A+=r*W,k+=r*H,E+=r*F,L+=r*q,D+=r*V,T+=r*K,O+=r*G,x+=r*Q,I+=r*Z,j+=r*J,r=e[14],v+=r*C,_+=r*R,w+=r*Y,M+=r*B,S+=r*z,A+=r*U,k+=r*W,E+=r*H,L+=r*F,D+=r*q,T+=r*V,O+=r*K,x+=r*G,I+=r*Q,j+=r*Z,N+=r*J,r=e[15],_+=r*C,w+=r*R,M+=r*Y,S+=r*B,A+=r*z,k+=r*U,E+=r*W,L+=r*H,D+=r*F,T+=r*q,O+=r*V,x+=r*K,I+=r*G,j+=r*Q,N+=r*Z,P+=r*J,o+=38*w,s+=38*M,a+=38*S,u+=38*A,c+=38*k,l+=38*E,h+=38*L,d+=38*D,f+=38*T,p+=38*O,m+=38*x,g+=38*I,y+=38*j,b+=38*N,v+=38*P,i=1,r=o+i+65535,i=Math.floor(r/65536),o=r-65536*i,r=s+i+65535,i=Math.floor(r/65536),s=r-65536*i,r=a+i+65535,i=Math.floor(r/65536),a=r-65536*i,r=u+i+65535,i=Math.floor(r/65536),u=r-65536*i,r=c+i+65535,i=Math.floor(r/65536),c=r-65536*i,r=l+i+65535,i=Math.floor(r/65536),l=r-65536*i,r=h+i+65535,i=Math.floor(r/65536),h=r-65536*i,r=d+i+65535,i=Math.floor(r/65536),d=r-65536*i,r=f+i+65535,i=Math.floor(r/65536),f=r-65536*i,r=p+i+65535,i=Math.floor(r/65536),p=r-65536*i,r=m+i+65535,i=Math.floor(r/65536),m=r-65536*i,r=g+i+65535,i=Math.floor(r/65536),g=r-65536*i,r=y+i+65535,i=Math.floor(r/65536),y=r-65536*i,r=b+i+65535,i=Math.floor(r/65536),b=r-65536*i,r=v+i+65535,i=Math.floor(r/65536),v=r-65536*i,r=_+i+65535,i=Math.floor(r/65536),_=r-65536*i,o+=i-1+37*(i-1),i=1,r=o+i+65535,i=Math.floor(r/65536),o=r-65536*i,r=s+i+65535,i=Math.floor(r/65536),s=r-65536*i,r=a+i+65535,i=Math.floor(r/65536),a=r-65536*i,r=u+i+65535,i=Math.floor(r/65536),u=r-65536*i,r=c+i+65535,i=Math.floor(r/65536),c=r-65536*i,r=l+i+65535,i=Math.floor(r/65536),l=r-65536*i,r=h+i+65535,i=Math.floor(r/65536),h=r-65536*i,r=d+i+65535,i=Math.floor(r/65536),d=r-65536*i,r=f+i+65535,i=Math.floor(r/65536),f=r-65536*i,r=p+i+65535,i=Math.floor(r/65536),p=r-65536*i,r=m+i+65535,i=Math.floor(r/65536),m=r-65536*i,r=g+i+65535,i=Math.floor(r/65536),g=r-65536*i,r=y+i+65535,i=Math.floor(r/65536),y=r-65536*i,r=b+i+65535,i=Math.floor(r/65536),b=r-65536*i,r=v+i+65535,i=Math.floor(r/65536),v=r-65536*i,r=_+i+65535,i=Math.floor(r/65536),_=r-65536*i,o+=i-1+37*(i-1),t[0]=o,t[1]=s,t[2]=a,t[3]=u,t[4]=c,t[5]=l,t[6]=h,t[7]=d,t[8]=f,t[9]=p,t[10]=m,t[11]=g,t[12]=y,t[13]=b,t[14]=v,t[15]=_}function W(t,e){U(t,e,e)}function H(t,n){var r,i=e();for(r=0;r<16;r++)i[r]=n[r];for(r=253;r>=0;r--)W(i,i),2!==r&&4!==r&&U(i,i,n);for(r=0;r<16;r++)t[r]=i[r]}function F(t,n){var r,i=e();for(r=0;r<16;r++)i[r]=n[r];for(r=250;r>=0;r--)W(i,i),1!==r&&U(i,i,n);for(r=0;r<16;r++)t[r]=i[r]}function q(t,n,r){var i,o,s=new Uint8Array(32),a=new Float64Array(80),c=e(),l=e(),h=e(),d=e(),f=e(),p=e();for(o=0;o<31;o++)s[o]=n[o];for(s[31]=127&n[31]|64,s[0]&=248,Y(a,r),o=0;o<16;o++)l[o]=a[o],d[o]=c[o]=h[o]=0;for(c[0]=d[0]=1,o=254;o>=0;--o)i=s[o>>>3]>>>(7&o)&1,N(c,l,i),N(h,d,i),B(f,c,h),z(c,c,h),B(h,l,d),z(l,l,d),W(d,f),W(p,c),U(c,h,c),U(h,l,f),B(f,c,h),z(c,c,h),W(l,c),z(h,d,p),U(c,h,u),B(c,c,d),U(h,h,c),U(c,d,p),U(d,l,a),W(l,f),N(c,l,i),N(h,d,i);for(o=0;o<16;o++)a[o+16]=c[o],a[o+32]=h[o],a[o+48]=l[o],a[o+64]=d[o];var m=a.subarray(32),g=a.subarray(16);return H(m,m),U(g,g,m),P(t,g),0}function V(t,e){return q(t,e,o)}function K(t,e){return r(e,32),V(t,e)}function G(t,e,n){var r=new Uint8Array(32);return q(r,n,e),w(t,i,r,M)}L.prototype.blocks=function(t,e,n){var r,i,o,s,a,u,c,l,h,d,f,p,m,g,y,b,v,_,w,M=this.fin?0:2048,S=this.h[0],A=this.h[1],k=this.h[2],E=this.h[3],L=this.h[4],D=this.h[5],T=this.h[6],O=this.h[7],x=this.h[8],I=this.h[9],j=this.r[0],N=this.r[1],P=this.r[2],C=this.r[3],R=this.r[4],Y=this.r[5],B=this.r[6],z=this.r[7],U=this.r[8],W=this.r[9];while(n>=16)r=255&t[e+0]|(255&t[e+1])<<8,S+=8191&r,i=255&t[e+2]|(255&t[e+3])<<8,A+=8191&(r>>>13|i<<3),o=255&t[e+4]|(255&t[e+5])<<8,k+=8191&(i>>>10|o<<6),s=255&t[e+6]|(255&t[e+7])<<8,E+=8191&(o>>>7|s<<9),a=255&t[e+8]|(255&t[e+9])<<8,L+=8191&(s>>>4|a<<12),D+=a>>>1&8191,u=255&t[e+10]|(255&t[e+11])<<8,T+=8191&(a>>>14|u<<2),c=255&t[e+12]|(255&t[e+13])<<8,O+=8191&(u>>>11|c<<5),l=255&t[e+14]|(255&t[e+15])<<8,x+=8191&(c>>>8|l<<8),I+=l>>>5|M,h=0,d=h,d+=S*j,d+=A*(5*W),d+=k*(5*U),d+=E*(5*z),d+=L*(5*B),h=d>>>13,d&=8191,d+=D*(5*Y),d+=T*(5*R),d+=O*(5*C),d+=x*(5*P),d+=I*(5*N),h+=d>>>13,d&=8191,f=h,f+=S*N,f+=A*j,f+=k*(5*W),f+=E*(5*U),f+=L*(5*z),h=f>>>13,f&=8191,f+=D*(5*B),f+=T*(5*Y),f+=O*(5*R),f+=x*(5*C),f+=I*(5*P),h+=f>>>13,f&=8191,p=h,p+=S*P,p+=A*N,p+=k*j,p+=E*(5*W),p+=L*(5*U),h=p>>>13,p&=8191,p+=D*(5*z),p+=T*(5*B),p+=O*(5*Y),p+=x*(5*R),p+=I*(5*C),h+=p>>>13,p&=8191,m=h,m+=S*C,m+=A*P,m+=k*N,m+=E*j,m+=L*(5*W),h=m>>>13,m&=8191,m+=D*(5*U),m+=T*(5*z),m+=O*(5*B),m+=x*(5*Y),m+=I*(5*R),h+=m>>>13,m&=8191,g=h,g+=S*R,g+=A*C,g+=k*P,g+=E*N,g+=L*j,h=g>>>13,g&=8191,g+=D*(5*W),g+=T*(5*U),g+=O*(5*z),g+=x*(5*B),g+=I*(5*Y),h+=g>>>13,g&=8191,y=h,y+=S*Y,y+=A*R,y+=k*C,y+=E*P,y+=L*N,h=y>>>13,y&=8191,y+=D*j,y+=T*(5*W),y+=O*(5*U),y+=x*(5*z),y+=I*(5*B),h+=y>>>13,y&=8191,b=h,b+=S*B,b+=A*Y,b+=k*R,b+=E*C,b+=L*P,h=b>>>13,b&=8191,b+=D*N,b+=T*j,b+=O*(5*W),b+=x*(5*U),b+=I*(5*z),h+=b>>>13,b&=8191,v=h,v+=S*z,v+=A*B,v+=k*Y,v+=E*R,v+=L*C,h=v>>>13,v&=8191,v+=D*P,v+=T*N,v+=O*j,v+=x*(5*W),v+=I*(5*U),h+=v>>>13,v&=8191,_=h,_+=S*U,_+=A*z,_+=k*B,_+=E*Y,_+=L*R,h=_>>>13,_&=8191,_+=D*C,_+=T*P,_+=O*N,_+=x*j,_+=I*(5*W),h+=_>>>13,_&=8191,w=h,w+=S*W,w+=A*U,w+=k*z,w+=E*B,w+=L*Y,h=w>>>13,w&=8191,w+=D*R,w+=T*C,w+=O*P,w+=x*N,w+=I*j,h+=w>>>13,w&=8191,h=(h<<2)+h|0,h=h+d|0,d=8191&h,h>>>=13,f+=h,S=d,A=f,k=p,E=m,L=g,D=y,T=b,O=v,x=_,I=w,e+=16,n-=16;this.h[0]=S,this.h[1]=A,this.h[2]=k,this.h[3]=E,this.h[4]=L,this.h[5]=D,this.h[6]=T,this.h[7]=O,this.h[8]=x,this.h[9]=I},L.prototype.finish=function(t,e){var n,r,i,o,s=new Uint16Array(10);if(this.leftover){for(o=this.leftover,this.buffer[o++]=1;o<16;o++)this.buffer[o]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(n=this.h[1]>>>13,this.h[1]&=8191,o=2;o<10;o++)this.h[o]+=n,n=this.h[o]>>>13,this.h[o]&=8191;for(this.h[0]+=5*n,n=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=n,n=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=n,s[0]=this.h[0]+5,n=s[0]>>>13,s[0]&=8191,o=1;o<10;o++)s[o]=this.h[o]+n,n=s[o]>>>13,s[o]&=8191;for(s[9]-=8192,r=(1^n)-1,o=0;o<10;o++)s[o]&=r;for(r=~r,o=0;o<10;o++)this.h[o]=this.h[o]&r|s[o];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),i=this.h[0]+this.pad[0],this.h[0]=65535&i,o=1;o<8;o++)i=(this.h[o]+this.pad[o]|0)+(i>>>16)|0,this.h[o]=65535&i;t[e+0]=this.h[0]>>>0&255,t[e+1]=this.h[0]>>>8&255,t[e+2]=this.h[1]>>>0&255,t[e+3]=this.h[1]>>>8&255,t[e+4]=this.h[2]>>>0&255,t[e+5]=this.h[2]>>>8&255,t[e+6]=this.h[3]>>>0&255,t[e+7]=this.h[3]>>>8&255,t[e+8]=this.h[4]>>>0&255,t[e+9]=this.h[4]>>>8&255,t[e+10]=this.h[5]>>>0&255,t[e+11]=this.h[5]>>>8&255,t[e+12]=this.h[6]>>>0&255,t[e+13]=this.h[6]>>>8&255,t[e+14]=this.h[7]>>>0&255,t[e+15]=this.h[7]>>>8&255},L.prototype.update=function(t,e,n){var r,i;if(this.leftover){for(i=16-this.leftover,i>n&&(i=n),r=0;r=16&&(i=n-n%16,this.blocks(t,e,i),e+=i,n-=i),n){for(r=0;r=128){for(M=0;M<16;M++)S=8*M+G,O[M]=n[S+0]<<24|n[S+1]<<16|n[S+2]<<8|n[S+3],x[M]=n[S+4]<<24|n[S+5]<<16|n[S+6]<<8|n[S+7];for(M=0;M<80;M++)if(i=I,o=j,s=N,a=P,u=C,c=R,l=Y,h=B,d=z,f=U,p=W,m=H,g=F,y=q,b=V,v=K,A=B,k=K,E=65535&k,L=k>>>16,D=65535&A,T=A>>>16,A=(C>>>14|F<<18)^(C>>>18|F<<14)^(F>>>9|C<<23),k=(F>>>14|C<<18)^(F>>>18|C<<14)^(C>>>9|F<<23),E+=65535&k,L+=k>>>16,D+=65535&A,T+=A>>>16,A=C&R^~C&Y,k=F&q^~F&V,E+=65535&k,L+=k>>>16,D+=65535&A,T+=A>>>16,A=X[2*M],k=X[2*M+1],E+=65535&k,L+=k>>>16,D+=65535&A,T+=A>>>16,A=O[M%16],k=x[M%16],E+=65535&k,L+=k>>>16,D+=65535&A,T+=A>>>16,L+=E>>>16,D+=L>>>16,T+=D>>>16,_=65535&D|T<<16,w=65535&E|L<<16,A=_,k=w,E=65535&k,L=k>>>16,D=65535&A,T=A>>>16,A=(I>>>28|z<<4)^(z>>>2|I<<30)^(z>>>7|I<<25),k=(z>>>28|I<<4)^(I>>>2|z<<30)^(I>>>7|z<<25),E+=65535&k,L+=k>>>16,D+=65535&A,T+=A>>>16,A=I&j^I&N^j&N,k=z&U^z&W^U&W,E+=65535&k,L+=k>>>16,D+=65535&A,T+=A>>>16,L+=E>>>16,D+=L>>>16,T+=D>>>16,h=65535&D|T<<16,v=65535&E|L<<16,A=a,k=m,E=65535&k,L=k>>>16,D=65535&A,T=A>>>16,A=_,k=w,E+=65535&k,L+=k>>>16,D+=65535&A,T+=A>>>16,L+=E>>>16,D+=L>>>16,T+=D>>>16,a=65535&D|T<<16,m=65535&E|L<<16,j=i,N=o,P=s,C=a,R=u,Y=c,B=l,I=h,U=d,W=f,H=p,F=m,q=g,V=y,K=b,z=v,M%16===15)for(S=0;S<16;S++)A=O[S],k=x[S],E=65535&k,L=k>>>16,D=65535&A,T=A>>>16,A=O[(S+9)%16],k=x[(S+9)%16],E+=65535&k,L+=k>>>16,D+=65535&A,T+=A>>>16,_=O[(S+1)%16],w=x[(S+1)%16],A=(_>>>1|w<<31)^(_>>>8|w<<24)^_>>>7,k=(w>>>1|_<<31)^(w>>>8|_<<24)^(w>>>7|_<<25),E+=65535&k,L+=k>>>16,D+=65535&A,T+=A>>>16,_=O[(S+14)%16],w=x[(S+14)%16],A=(_>>>19|w<<13)^(w>>>29|_<<3)^_>>>6,k=(w>>>19|_<<13)^(_>>>29|w<<3)^(w>>>6|_<<26),E+=65535&k,L+=k>>>16,D+=65535&A,T+=A>>>16,L+=E>>>16,D+=L>>>16,T+=D>>>16,O[S]=65535&D|T<<16,x[S]=65535&E|L<<16;A=I,k=z,E=65535&k,L=k>>>16,D=65535&A,T=A>>>16,A=t[0],k=e[0],E+=65535&k,L+=k>>>16,D+=65535&A,T+=A>>>16,L+=E>>>16,D+=L>>>16,T+=D>>>16,t[0]=I=65535&D|T<<16,e[0]=z=65535&E|L<<16,A=j,k=U,E=65535&k,L=k>>>16,D=65535&A,T=A>>>16,A=t[1],k=e[1],E+=65535&k,L+=k>>>16,D+=65535&A,T+=A>>>16,L+=E>>>16,D+=L>>>16,T+=D>>>16,t[1]=j=65535&D|T<<16,e[1]=U=65535&E|L<<16,A=N,k=W,E=65535&k,L=k>>>16,D=65535&A,T=A>>>16,A=t[2],k=e[2],E+=65535&k,L+=k>>>16,D+=65535&A,T+=A>>>16,L+=E>>>16,D+=L>>>16,T+=D>>>16,t[2]=N=65535&D|T<<16,e[2]=W=65535&E|L<<16,A=P,k=H,E=65535&k,L=k>>>16,D=65535&A,T=A>>>16,A=t[3],k=e[3],E+=65535&k,L+=k>>>16,D+=65535&A,T+=A>>>16,L+=E>>>16,D+=L>>>16,T+=D>>>16,t[3]=P=65535&D|T<<16,e[3]=H=65535&E|L<<16,A=C,k=F,E=65535&k,L=k>>>16,D=65535&A,T=A>>>16,A=t[4],k=e[4],E+=65535&k,L+=k>>>16,D+=65535&A,T+=A>>>16,L+=E>>>16,D+=L>>>16,T+=D>>>16,t[4]=C=65535&D|T<<16,e[4]=F=65535&E|L<<16,A=R,k=q,E=65535&k,L=k>>>16,D=65535&A,T=A>>>16,A=t[5],k=e[5],E+=65535&k,L+=k>>>16,D+=65535&A,T+=A>>>16,L+=E>>>16,D+=L>>>16,T+=D>>>16,t[5]=R=65535&D|T<<16,e[5]=q=65535&E|L<<16,A=Y,k=V,E=65535&k,L=k>>>16,D=65535&A,T=A>>>16,A=t[6],k=e[6],E+=65535&k,L+=k>>>16,D+=65535&A,T+=A>>>16,L+=E>>>16,D+=L>>>16,T+=D>>>16,t[6]=Y=65535&D|T<<16,e[6]=V=65535&E|L<<16,A=B,k=K,E=65535&k,L=k>>>16,D=65535&A,T=A>>>16,A=t[7],k=e[7],E+=65535&k,L+=k>>>16,D+=65535&A,T+=A>>>16,L+=E>>>16,D+=L>>>16,T+=D>>>16,t[7]=B=65535&D|T<<16,e[7]=K=65535&E|L<<16,G+=128,r-=128}return r}function et(t,e,n){var r,i=new Int32Array(8),o=new Int32Array(8),s=new Uint8Array(256),a=n;for(i[0]=1779033703,i[1]=3144134277,i[2]=1013904242,i[3]=2773480762,i[4]=1359893119,i[5]=2600822924,i[6]=528734635,i[7]=1541459225,o[0]=4089235720,o[1]=2227873595,o[2]=4271175723,o[3]=1595750129,o[4]=2917565137,o[5]=725511199,o[6]=4215389547,o[7]=327033209,tt(i,o,e,n),n%=128,r=0;r=0;--i)r=n[i/8|0]>>(7&i)&1,rt(t,e,r),nt(e,t),nt(t,t),rt(t,e,r)}function st(t,n){var r=[e(),e(),e(),e()];I(r[0],h),I(r[1],d),I(r[2],a),U(r[3],h,d),ot(t,r,n)}function at(t,n,i){var o,s=new Uint8Array(64),a=[e(),e(),e(),e()];for(i||r(n,32),et(s,n,32),s[0]&=248,s[31]&=127,s[31]|=64,st(a,s),it(t,a),o=0;o<32;o++)n[o+32]=t[o];return 0}var ut=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function ct(t,e){var n,r,i,o;for(r=63;r>=32;--r){for(n=0,i=r-32,o=r-12;i>4)*ut[i],n=e[i]>>8,e[i]&=255;for(i=0;i<32;i++)e[i]-=n*ut[i];for(r=0;r<32;r++)e[r+1]+=e[r]>>8,t[r]=255&e[r]}function lt(t){var e,n=new Float64Array(64);for(e=0;e<64;e++)n[e]=t[e];for(e=0;e<64;e++)t[e]=0;ct(t,n)}function ht(t,n,r,i){var o,s,a=new Uint8Array(64),u=new Uint8Array(64),c=new Uint8Array(64),l=new Float64Array(64),h=[e(),e(),e(),e()];et(a,i,32),a[0]&=248,a[31]&=127,a[31]|=64;var d=r+64;for(o=0;o>7&&z(t[0],s,t[0]),U(t[3],t[0],t[1]),0)}function ft(t,n,r,i){var o,s=new Uint8Array(32),a=new Uint8Array(64),u=[e(),e(),e(),e()],c=[e(),e(),e(),e()];if(r<64)return-1;if(dt(c,i))return-1;for(o=0;o=0},t.sign.keyPair=function(){var t=new Uint8Array(Lt),e=new Uint8Array(Dt);return at(t,e),{publicKey:t,secretKey:e}},t.sign.keyPair.fromSecretKey=function(t){if(jt(t),t.length!==Dt)throw new Error("bad secret key size");for(var e=new Uint8Array(Lt),n=0;n=2&&e%10<=4&&(e%100<10||e%100>=20)?n[1]:n[2]}function n(t,n,r){var i={ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return"m"===r?n?"минута":"минуту":t+" "+e(i[r],+t)}var r=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i],i=t.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:r,longMonthsParse:r,shortMonthsParse:r,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(t){if(t.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(t){if(t.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:n,m:n,mm:n,h:"час",hh:n,d:"день",dd:n,w:"неделя",ww:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(t){return/^(дня|вечера)$/.test(t)},meridiem:function(t,e,n){return t<4?"ночи":t<12?"утра":t<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":return t+"-й";case"D":return t+"-го";case"w":case"W":return t+"-я";default:return t}},week:{dow:1,doy:4}});return i}))},"958b":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration function e(t,e,n,r){switch(n){case"s":return e?"хэдхэн секунд":"хэдхэн секундын";case"ss":return t+(e?" секунд":" секундын");case"m":case"mm":return t+(e?" минут":" минутын");case"h":case"hh":return t+(e?" цаг":" цагийн");case"d":case"dd":return t+(e?" өдөр":" өдрийн");case"M":case"MM":return t+(e?" сар":" сарын");case"y":case"yy":return t+(e?" жил":" жилийн");default:return t}}var n=t.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(t){return"ҮХ"===t},meridiem:function(t,e,n){return t<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+" өдөр";default:return t}}});return n}))},9609:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"},n=t.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(t){var n=t%10,r=t>=100?100:null;return t+(e[t]||e[n]||e[r])},week:{dow:1,doy:7}});return n}))},"966d":function(t,e,n){"use strict";(function(e){function n(t,n,r,i){if("function"!==typeof t)throw new TypeError('"callback" argument must be a function');var o,s,a=arguments.length;switch(a){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,n)}));case 3:return e.nextTick((function(){t.call(null,n,r)}));case 4:return e.nextTick((function(){t.call(null,n,r,i)}));default:o=new Array(a-1),s=0;while(s=3?t:t+12:"বিকাল"===e||"সন্ধ্যা"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"রাত":t<6?"ভোর":t<12?"সকাল":t<15?"দুপুর":t<18?"বিকাল":t<20?"সন্ধ্যা":"রাত"},week:{dow:0,doy:6}});return r}))},"96a5":function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";var e=this.head,n=""+e.data;while(e=e.next)n+=t+e.data;return n}},{key:"concat",value:function(t){if(0===this.length)return l.alloc(0);var e=l.allocUnsafe(t>>>0),n=this.head,r=0;while(n)p(n.data,e,r),r+=n.data.length,n=n.next;return e}},{key:"consume",value:function(t,e){var n;return ti.length?i.length:t;if(o===i.length?r+=i:r+=i.slice(0,t),t-=o,0===t){o===i.length?(++n,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(t){var e=l.allocUnsafe(t),n=this.head,r=1;n.data.copy(e),t-=n.data.length;while(n=n.next){var i=n.data,o=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,o),t-=o,0===t){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,e}},{key:f,value:function(t,e){return d(this,i({},e,{depth:0,customInspect:!1}))}}]),t}()},"970b":function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n("d9e2"),t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},"972c":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration function e(t,e,n){var r={ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"},i=" ";return(t%100>=20||t>=100&&t%100===0)&&(i=" de "),t+i+r[n]}var n=t.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:e,m:"un minut",mm:e,h:"o oră",hh:e,d:"o zi",dd:e,w:"o săptămână",ww:e,M:"o lună",MM:e,y:"un an",yy:e},week:{dow:1,doy:7}});return n}))},9797:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(t){var e=t,n="",r=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"];return e>20?n=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(n=r[e]),t+n},week:{dow:1,doy:4}});return e}))},"980c":function(t,e,n){var r=n("39a9").Buffer,i=n("399f"),o=n("3337").ec,s=n("2aee"),a=n("cd91");function u(t,e,n,o,a){var u=s(n);if("ec"===u.type){if("ecdsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong public key type");return c(t,e,u)}if("dsa"===u.type){if("dsa"!==o)throw new Error("wrong public key type");return l(t,e,u)}if("rsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong public key type");e=r.concat([a,e]);var h=u.modulus.byteLength(),d=[1],f=0;while(e.length+d.length+2=e)throw new Error("invalid sig")}t.exports=u},"98b1":function(t,e,n){"use strict";(function(e){function n(t,n){var o=this,a=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return a||u?(n?n(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(s,this,t)):e.nextTick(s,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!n&&t?o._writableState?o._writableState.errorEmitted?e.nextTick(i,o):(o._writableState.errorEmitted=!0,e.nextTick(r,o,t)):e.nextTick(r,o,t):n?(e.nextTick(i,o),n(t)):e.nextTick(i,o)})),this)}function r(t,e){s(t,e),i(t)}function i(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function s(t,e){t.emit("error",e)}function a(t,e){var n=t._readableState,r=t._writableState;n&&n.autoDestroy||r&&r.autoDestroy?t.destroy(e):t.emit("error",e)}t.exports={destroy:n,undestroy:o,errorOrDestroy:a}}).call(this,n("4362"))},"98e6":function(t,e,n){"use strict";var r=n("3fb5"),i=n("f576"),o=n("b5ca"),s=n("69f2"),a=n("6430");function u(t){a.call(this,"digest"),this._hash=t}r(u,a),u.prototype._update=function(t){this._hash.update(t)},u.prototype._final=function(){return this._hash.digest()},t.exports=function(t){return t=t.toLowerCase(),"md5"===t?new i:"rmd160"===t||"ripemd160"===t?new o:new u(s(t))}},"990e":function(t,e,n){"use strict";(function(t){function n(e){return function(n){var r=e();return r.update(n),t.from(r.digest())}}Object.defineProperty(e,"__esModule",{value:!0}),e.createHashFunction=n}).call(this,n("b639").Buffer)},9965:function(t,e,n){const r=n("61dc"),i=(t,e,n)=>r(e,t,n);t.exports=i},"99ea":function(t,e,n){"use strict";function r(t){let e="";for(let n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e}function i(t){let e={},n=t.split("&");for(let r=0,i=n.length;r-1))throw new A(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(D.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(D.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),D.prototype._write=function(t,e,n){n(new b("_write()"))},D.prototype._writev=null,D.prototype.end=function(t,e,n){var r=this._writableState;return"function"===typeof t?(n=t,t=null,e=null):"function"===typeof e&&(n=e,e=null),null!==t&&void 0!==t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||F(this,r,n),this},Object.defineProperty(D.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(D.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),D.prototype.destroy=f.destroy,D.prototype._undestroy=f.undestroy,D.prototype._destroy=function(t,e){e(t)}}).call(this,n("c8ba"),n("4362"))},"9bf2":function(t,e,n){var r=n("83ab"),i=n("0cfb"),o=n("aed9"),s=n("825a"),a=n("a04b"),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,h="enumerable",d="configurable",f="writable";e.f=r?o?function(t,e,n){if(s(t),e=a(e),s(n),"function"===typeof t&&"prototype"===e&&"value"in n&&f in n&&!n[f]){var r=l(t,e);r&&r[f]&&(t[e]=n.value,n={configurable:d in n?n[d]:r[d],enumerable:h in n?n[h]:r[h],writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(s(t),e=a(e),s(n),i)try{return c(t,e,n)}catch(r){}if("get"in n||"set"in n)throw u("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},"9d28":function(t,e,n){"use strict";t.exports=i;var r=n("f1c8");function i(t){if(!(this instanceof i))return new i(t);r.call(this,t)}n("3fb5")(i,r),i.prototype._transform=function(t,e,n){n(null,t)}},"9d8a":function(t,e,n){"use strict";function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i={};function o(t,e,n){function o(t,n,r){return"string"===typeof e?e:e(t,n,r)}n||(n=Error);var s=function(t){function e(e,n,r){return t.call(this,o(e,n,r))||this}return r(e,t),e}(n);s.prototype.name=n.name,s.prototype.code=t,i[t]=s}function s(t,e){if(Array.isArray(t)){var n=t.length;return t=t.map((function(t){return String(t)})),n>2?"one of ".concat(e," ").concat(t.slice(0,n-1).join(", "),", or ")+t[n-1]:2===n?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}function a(t,e,n){return t.substr(!n||n<0?0:+n,e.length)===e}function u(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}function c(t,e,n){return"number"!==typeof n&&(n=0),!(n+e.length>t.length)&&-1!==t.indexOf(e,n)}o("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(t,e,n){var r,i;if("string"===typeof e&&a(e,"not ")?(r="must not be",e=e.replace(/^not /,"")):r="must be",u(t," argument"))i="The ".concat(t," ").concat(r," ").concat(s(e,"type"));else{var o=c(t,".")?"property":"argument";i='The "'.concat(t,'" ').concat(o," ").concat(r," ").concat(s(e,"type"))}return i+=". Received type ".concat(typeof n),i}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=i},"9ea2":function(t,e,n){"use strict";(function(t){function n(e){{const n=t.from(e);n.reverse();const r=n.toString("hex");return 0===r.length?BigInt(0):BigInt("0x"+r)}}function r(t){{const e=t.toString("hex");return 0===e.length?BigInt(0):BigInt("0x"+e)}}function i(e,n){{const r=e.toString(16),i=t.from(r.padStart(2*n,"0").slice(0,2*n),"hex");return i.reverse(),i}}function o(e,n){{const r=e.toString(16);return t.from(r.padStart(2*n,"0").slice(0,2*n),"hex")}}Object.defineProperty(e,"__esModule",{value:!0}),e.toBigIntLE=n,e.toBigIntBE=r,e.toBufferLE=i,e.toBufferBE=o}).call(this,n("b639").Buffer)},"9f26":function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,n=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,r=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,i=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i],o=t.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:e,monthsShortStrictRegex:n,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(t,e){switch(e){case"D":return t+(1===t?"er":"");default:case"M":case"Q":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}});return o}))},"9f9d":function(t,e,n){(function(e,n){var r;if(e.process&&e.process.browser)r="utf-8";else if(e.process&&e.process.version){var i=parseInt(n.version.split(".")[0].slice(1),10);r=i>=6?"utf-8":"binary"}else r="utf-8";t.exports=r}).call(this,n("c8ba"),n("4362"))},"9ff4":function(t,e,n){"use strict";(function(t){function r(t,e){const n=Object.create(null),r=t.split(",");for(let i=0;i!!n[t.toLowerCase()]:t=>!!n[t]}n.d(e,"a",(function(){return k})),n.d(e,"b",(function(){return A})),n.d(e,"c",(function(){return L})),n.d(e,"d",(function(){return E})),n.d(e,"e",(function(){return X})),n.d(e,"f",(function(){return nt})),n.d(e,"g",(function(){return st})),n.d(e,"h",(function(){return x})),n.d(e,"i",(function(){return ct})),n.d(e,"j",(function(){return it})),n.d(e,"k",(function(){return N})),n.d(e,"l",(function(){return et})),n.d(e,"m",(function(){return u})),n.d(e,"n",(function(){return ot})),n.d(e,"o",(function(){return P})),n.d(e,"p",(function(){return Z})),n.d(e,"q",(function(){return B})),n.d(e,"r",(function(){return o})),n.d(e,"s",(function(){return y})),n.d(e,"t",(function(){return G})),n.d(e,"u",(function(){return C})),n.d(e,"v",(function(){return O})),n.d(e,"w",(function(){return W})),n.d(e,"x",(function(){return T})),n.d(e,"y",(function(){return K})),n.d(e,"z",(function(){return H})),n.d(e,"A",(function(){return Q})),n.d(e,"B",(function(){return b})),n.d(e,"C",(function(){return R})),n.d(e,"D",(function(){return a})),n.d(e,"E",(function(){return z})),n.d(e,"F",(function(){return U})),n.d(e,"G",(function(){return _})),n.d(e,"H",(function(){return w})),n.d(e,"I",(function(){return r})),n.d(e,"J",(function(){return f})),n.d(e,"K",(function(){return p})),n.d(e,"L",(function(){return c})),n.d(e,"M",(function(){return I})),n.d(e,"N",(function(){return M})),n.d(e,"O",(function(){return rt})),n.d(e,"P",(function(){return at})),n.d(e,"Q",(function(){return V}));const i="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",o=r(i);const s="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",a=r(s);function u(t){return!!t||""===t}function c(t){if(P(t)){const e={};for(let n=0;n{if(t){const n=t.split(h);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function f(t){let e="";if(z(t))e=t;else if(P(t))for(let n=0;n_(t,e))}const M=t=>z(t)?t:null==t?"":P(t)||W(t)&&(t.toString===F||!B(t.toString))?JSON.stringify(t,S,2):String(t),S=(t,e)=>e&&e.__v_isRef?S(t,e.value):C(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((t,[e,n])=>(t[e+" =>"]=n,t),{})}:R(e)?{[`Set(${e.size})`]:[...e.values()]}:!W(e)||P(e)||K(e)?e:String(e),A={},k=[],E=()=>{},L=()=>!1,D=/^on[^a-z]/,T=t=>D.test(t),O=t=>t.startsWith("onUpdate:"),x=Object.assign,I=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},j=Object.prototype.hasOwnProperty,N=(t,e)=>j.call(t,e),P=Array.isArray,C=t=>"[object Map]"===q(t),R=t=>"[object Set]"===q(t),Y=t=>"[object Date]"===q(t),B=t=>"function"===typeof t,z=t=>"string"===typeof t,U=t=>"symbol"===typeof t,W=t=>null!==t&&"object"===typeof t,H=t=>W(t)&&B(t.then)&&B(t.catch),F=Object.prototype.toString,q=t=>F.call(t),V=t=>q(t).slice(8,-1),K=t=>"[object Object]"===q(t),G=t=>z(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,Q=r(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Z=r("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),J=t=>{const e=Object.create(null);return n=>{const r=e[n];return r||(e[n]=t(n))}},$=/-(\w)/g,X=J(t=>t.replace($,(t,e)=>e?e.toUpperCase():"")),tt=/\B([A-Z])/g,et=J(t=>t.replace(tt,"-$1").toLowerCase()),nt=J(t=>t.charAt(0).toUpperCase()+t.slice(1)),rt=J(t=>t?"on"+nt(t):""),it=(t,e)=>!Object.is(t,e),ot=(t,e)=>{for(let n=0;n{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},at=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let ut;const ct=()=>ut||(ut="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof t?t:{})}).call(this,n("c8ba"))},a04b:function(t,e,n){var r=n("c04e"),i=n("d9b5");t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},a099:function(t,e,n){e.pbkdf2=n("206d"),e.pbkdf2Sync=n("e07b")},a22e:function(t,e,n){var r=n("7a23");Object.keys(r).forEach((function(t){e[t]=r[t]})),e.set=function(t,e,n){return Array.isArray(t)?(t.length=Math.max(t.length,e),t.splice(e,1,n),n):(t[e]=n,n)},e.del=function(t,e){Array.isArray(t)?t.splice(e,1):delete t[e]},e.Vue=r,e.Vue2=void 0,e.isVue2=!1,e.isVue3=!0,e.install=function(){}},a255:function(t,e,n){var r=n("3fb5"),i=n("b672"),o=n("8707").Buffer,s=[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],a=new Array(64);function u(){this.init(),this._w=a,i.call(this,64,56)}function c(t,e,n){return n^t&(e^n)}function l(t,e,n){return t&e|n&(t|e)}function h(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function d(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function f(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}function p(t){return(t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10}r(u,i),u.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},u.prototype._update=function(t){for(var e=this._w,n=0|this._a,r=0|this._b,i=0|this._c,o=0|this._d,a=0|this._e,u=0|this._f,m=0|this._g,g=0|this._h,y=0;y<16;++y)e[y]=t.readInt32BE(4*y);for(;y<64;++y)e[y]=p(e[y-2])+e[y-7]+f(e[y-15])+e[y-16]|0;for(var b=0;b<64;++b){var v=g+d(a)+c(a,u,m)+s[b]+e[b]|0,_=h(n)+l(n,r,i)|0;g=m,m=u,u=a,a=o+v|0,o=i,i=r,r=n,n=v+_|0}this._a=n+this._a|0,this._b=r+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=a+this._e|0,this._f=u+this._f|0,this._g=m+this._g|0,this._h=g+this._h|0},u.prototype._hash=function(){var t=o.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},t.exports=u},a29b:function(t,e,n){"use strict";(function(t){var r=this&&this.__awaiter||function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function s(t){try{u(r.next(t))}catch(e){o(e)}}function a(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(s,a)}u((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.signTransaction=e.getPublicKey=e.getDerivationPath=void 0;const i=n("f685"),o=n("64b9");function s(e,n){const r=void 0!==e?void 0===n?3:4:2,i=t.alloc(1+4*r);let o=i.writeUInt8(r,0);return o=i.writeUInt32BE(u(44),o),o=i.writeUInt32BE(u(501),o),void 0!==e&&(o=i.writeUInt32BE(u(e),o),void 0!==n&&i.writeUInt32BE(u(n),o)),i}n("c833"),e.getDerivationPath=s;const a=1<<31>>>0;function u(t){return(t|a)>>>0}const c=5,l=6,h=0,d=1,f=1,p=2,m=255,g=224;function y(t,e){return r(this,void 0,void 0,(function*(){const n=yield v(t,c,h,e);return new o.PublicKey(n)}))}function b(e,n,i){return r(this,void 0,void 0,(function*(){const r=t.alloc(1);r.writeUInt8(1,0);const o=n.serializeMessage(),s=t.concat([r,i,o]);return yield v(e,l,d,s)}))}function v(t,e,n,o){return r(this,void 0,void 0,(function*(){let r=0,s=0;if(o.length>m)while(o.length-s>m){const a=o.slice(s,s+m),u=yield t.send(g,e,n,r|p,a);if(2!==u.length)throw new i.TransportStatusError(i.StatusCodes.INCORRECT_DATA);r|=f,s+=m}const a=o.slice(s),u=yield t.send(g,e,n,r,a);return u.slice(0,u.length-2)}))}e.getPublicKey=y,e.signTransaction=b}).call(this,n("b639").Buffer)},a34a:function(t,e,n){var r=n("7ec2")();t.exports=r;try{regeneratorRuntime=r}catch(i){"object"===typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},a356:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},n={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},r=function(t){return function(r,i,o,s){var a=e(r),u=n[t][e(r)];return 2===a&&(u=u[i?0:1]),u.replace(/%d/i,r)}},i=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],o=t.defineLocale("ar-dz",{months:i,monthsShort:i,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(t){return"م"===t},meridiem:function(t,e,n){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:0,doy:4}});return o}))},a48b:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OPEN_BROADCAST_CHANNELS=e.BroadcastChannel=void 0,e.clearNodeFolder=l,e.enforceOptions=h;var r=n("5f61"),i=n("be53"),o=n("298c"),s=new Set;e.OPEN_BROADCAST_CHANNELS=s;var a,u=0,c=function(t,e){this.id=u++,s.add(this),this.name=t,a&&(e=a),this.options=(0,o.fillOptionsWithDefaults)(e),this.method=(0,i.chooseMethod)(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,f(this)};function l(t){t=(0,o.fillOptionsWithDefaults)(t);var e=(0,i.chooseMethod)(t);return"node"===e.type?e.clearNodeFolder().then((function(){return!0})):r.PROMISE_RESOLVED_FALSE}function h(t){a=t}function d(t,e,n){var i=t.method.microSeconds(),o={time:i,type:e,data:n},s=t._prepP?t._prepP:r.PROMISE_RESOLVED_VOID;return s.then((function(){var e=t.method.postMessage(t._state,o);return t._uMP.add(e),e["catch"]().then((function(){return t._uMP["delete"](e)})),e}))}function f(t){var e=t.method.create(t.name,t.options);(0,r.isPromise)(e)?(t._prepP=e,e.then((function(e){t._state=e}))):t._state=e}function p(t){return t._addEL.message.length>0||t._addEL.internal.length>0}function m(t,e,n){t._addEL[e].push(n),y(t)}function g(t,e,n){t._addEL[e]=t._addEL[e].filter((function(t){return t!==n})),b(t)}function y(t){if(!t._iL&&p(t)){var e=function(e){t._addEL[e.type].forEach((function(n){var r=1e5,i=n.time-r;(e.time>=i||"server"===t.method.type)&&n.fn(e.data)}))},n=t.method.microSeconds();t._prepP?t._prepP.then((function(){t._iL=!0,t.method.onMessage(t._state,e,n)})):(t._iL=!0,t.method.onMessage(t._state,e,n))}}function b(t){if(t._iL&&!p(t)){t._iL=!1;var e=t.method.microSeconds();t.method.onMessage(t._state,null,e)}}e.BroadcastChannel=c,c._pubkey=!0,c.prototype={postMessage:function(t){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(t));return d(this,"message",t)},postInternal:function(t){return d(this,"internal",t)},set onmessage(t){var e=this.method.microSeconds(),n={time:e,fn:t};g(this,"message",this._onML),t&&"function"===typeof t?(this._onML=n,m(this,"message",n)):this._onML=null},addEventListener:function(t,e){var n=this.method.microSeconds(),r={time:n,fn:e};m(this,t,r)},removeEventListener:function(t,e){var n=this._addEL[t].find((function(t){return t.fn===e}));g(this,t,n)},close:function(){var t=this;if(!this.closed){s["delete"](this),this.closed=!0;var e=this._prepP?this._prepP:r.PROMISE_RESOLVED_VOID;return this._onML=null,this._addEL.message=[],e.then((function(){return Promise.all(Array.from(t._uMP))})).then((function(){return Promise.all(t._befC.map((function(t){return t()})))})).then((function(){return t.method.close(t._state)}))}},get type(){return this.method.type},get isClosed(){return this.closed}}},a58a:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function s(t){try{u(r.next(t))}catch(e){o(e)}}function a(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(s,a)}u((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.BitpieWalletAdapter=e.BitpieWalletName=void 0;const i=n("0a37"),o=n("64b9");e.BitpieWalletName="Bitpie";class s extends i.BaseSignerWalletAdapter{constructor(t={}){super(),this.name=e.BitpieWalletName,this.url="https://bitpiecn.com",this.icon="data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjY0IiB2aWV3Qm94PSIwIDAgNjQgNjQiIHdpZHRoPSI2NCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGxpbmVhckdyYWRpZW50IGlkPSJhIj48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiMxZTNkYTAiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMzNzUwZGUiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iYiIgeDE9IjUyLjU0NTc1JSIgeDI9IjUyLjU0NTc1JSIgeGxpbms6aHJlZj0iI2EiIHkxPSIxMDAlIiB5Mj0iMCUiLz48bGluZWFyR3JhZGllbnQgaWQ9ImMiIHgxPSI1MCUiIHgyPSI1MCUiIHkxPSIwJSIgeTI9IjEwMCUiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iIzFkM2JhMyIgc3RvcC1vcGFjaXR5PSIwIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjMTczNzkzIiBzdG9wLW9wYWNpdHk9Ii42NTI5MzgiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iZCIgeDE9IjUwJSIgeDI9IjUwJSIgeGxpbms6aHJlZj0iI2EiIHkxPSIxMDAlIiB5Mj0iMCUiLz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Im0xOCAwaDI4YzkuOTQxMTI1NSAwIDE4IDguMDU4ODc0NSAxOCAxOHYyOGMwIDkuOTQxMTI1NS04LjA1ODg3NDUgMTgtMTggMThoLTI4Yy05Ljk0MTEyNTUgMC0xOC04LjA1ODg3NDUtMTgtMTh2LTI4YzAtOS45NDExMjU1IDguMDU4ODc0NS0xOCAxOC0xOHoiIGZpbGw9InVybCgjYikiLz48Y2lyY2xlIGN4PSIzMi4yODU3MTQiIGN5PSIzMi4yODU3MTQiIGZpbGw9IiNmZmYiIHI9IjI0LjI4NTcxNCIvPjxwYXRoIGQ9Im0zMiAwYzE3LjY3MzExMiAwIDMyIDE0LjMyNjg4OCAzMiAzMnMtMTQuMzI2ODg4IDMyLTMyIDMyLTMyLTE0LjMyNjg4OC0zMi0zMiAxNC4zMjY4ODgtMzIgMzItMzJ6bS0uMTQzNDk3OCA3LjYwNTM4MTE3Yy0xMy40NzI3NzU5IDAtMjQuMzk0NjE4NzkgMTAuOTIxODQyODMtMjQuMzk0NjE4NzkgMjQuMzk0NjE4ODNzMTAuOTIxODQyODkgMjQuMzk0NjE4OCAyNC4zOTQ2MTg3OSAyNC4zOTQ2MTg4YzEzLjQ3Mjc3NiAwIDI0LjM5NDYxODktMTAuOTIxODQyOCAyNC4zOTQ2MTg5LTI0LjM5NDYxODhzLTEwLjkyMTg0MjktMjQuMzk0NjE4ODMtMjQuMzk0NjE4OS0yNC4zOTQ2MTg4M3oiIGZpbGw9InVybCgjYykiLz48cGF0aCBkPSJtMjkuMDkwOTA5MSA0NC4zNjM2MzY0YzAgMi4wMDgzMDgxLTEuNjI4MDU1NSAzLjYzNjM2MzYtMy42MzYzNjM2IDMuNjM2MzYzNi0yLjAwODMwODIgMC0zLjYzNjM2MzctMS42MjgwNTU1LTMuNjM2MzYzNy0zLjYzNjM2MzZsLS4wMDAxODE4LTIuMTgyNjM2NC0yLjE4MTYzNjQuMDAwODE4MmMtMi4wMDgzMDgxIDAtMy42MzYzNjM2LTEuNjI4MDU1NS0zLjYzNjM2MzYtMy42MzYzNjM3IDAtMi4wMDgzMDgxIDEuNjI4MDU1NS0zLjYzNjM2MzYgMy42MzYzNjM2LTMuNjM2MzYzNmwyLjE4MTYzNjQtLjAwMDA5MDl2LTUuODE5bC0yLjE4MTYzNjQuMDAwOTA5MWMtMi4wMDgzMDgxIDAtMy42MzYzNjM2LTEuNjI4MDU1NS0zLjYzNjM2MzYtMy42MzYzNjM2IDAtMi4wMDgzMDgyIDEuNjI4MDU1NS0zLjYzNjM2MzcgMy42MzYzNjM2LTMuNjM2MzYzN2wyLjE4MTYzNjQtLjAwMDE4MTguMDAwMTgxOC0yLjE4MTYzNjRjMC0yLjAwODMwODEgMS42MjgwNTU1LTMuNjM2MzYzNiAzLjYzNjM2MzctMy42MzYzNjM2IDIuMDA4MzA4MSAwIDMuNjM2MzYzNiAxLjYyODA1NTUgMy42MzYzNjM2IDMuNjM2MzYzNmwtLjAwMDkwOTEgMi4xODE2MzY0aDUuODE5bC4wMDAwOTA5LTIuMTgxNjM2NGMwLTIuMDA4MzA4MSAxLjYyODA1NTUtMy42MzYzNjM2IDMuNjM2MzYzNi0zLjYzNjM2MzYgMi4wMDgzMDgyIDAgMy42MzYzNjM3IDEuNjI4MDU1NSAzLjYzNjM2MzcgMy42MzYzNjM2bC0uMDAwODE4MiAyLjE4MTYzNjQgMi4xODI2MzY0LjAwMDE4MThjMi4wMDgzMDgxIDAgMy42MzYzNjM2IDEuNjI4MDU1NSAzLjYzNjM2MzYgMy42MzYzNjM3IDAgMi4wMDgzMDgxLTEuNjI4MDU1NSAzLjYzNjM2MzYtMy42MzYzNjM2IDMuNjM2MzYzNmwtMi4xODI2MzY0LS4wMDA5MDkxdjUuODE5bDIuMTgyNjM2NC4wMDAwOTA5YzIuMDA4MzA4MSAwIDMuNjM2MzYzNiAxLjYyODA1NTUgMy42MzYzNjM2IDMuNjM2MzYzNiAwIDIuMDA4MzA4Mi0xLjYyODA1NTUgMy42MzYzNjM3LTMuNjM2MzYzNiAzLjYzNjM2MzdsLTIuMTgyNjM2NC0uMDAwODE4Mi4wMDA4MTgyIDIuMTgyNjM2NGMwIDIuMDA4MzA4MS0xLjYyODA1NTUgMy42MzYzNjM2LTMuNjM2MzYzNyAzLjYzNjM2MzYtMi4wMDgzMDgxIDAtMy42MzYzNjM2LTEuNjI4MDU1NS0zLjYzNjM2MzYtMy42MzYzNjM2bC0uMDAwMDkwOS0yLjE4MjYzNjRoLTUuODE5em0tLjAwMDkwOTEtOS40NTQ2MzY0aDUuODE5di01LjgxOWgtNS44MTl6IiBmaWxsPSJ1cmwoI2QpIiB0cmFuc2Zvcm09Im1hdHJpeCguODY2MDI1NCAtLjUgLjUgLjg2NjAyNTQgLTExLjcxMjgxMyAyMC4yODcxODcpIi8+PC9nPjwvc3ZnPg==",this._readyState="undefined"===typeof window||"undefined"===typeof document?i.WalletReadyState.Unsupported:i.WalletReadyState.NotDetected,this._connecting=!1,this._wallet=null,this._publicKey=null,this._readyState!==i.WalletReadyState.Unsupported&&(0,i.scopePollingDetectionStrategy)(()=>!!window.bitpie&&(this._readyState=i.WalletReadyState.Installed,this.emit("readyStateChange",this._readyState),!0))}get publicKey(){return this._publicKey}get connecting(){return this._connecting}get readyState(){return this._readyState}connect(){return r(this,void 0,void 0,(function*(){try{if(this.connected||this.connecting)return;if(this._readyState!==i.WalletReadyState.Installed)throw new i.WalletNotReadyError;this._connecting=!0;const e=window.bitpie;let n,r;try{n=yield e.getAccount()}catch(t){throw new i.WalletAccountError(null===t||void 0===t?void 0:t.message,t)}try{r=new o.PublicKey(n)}catch(t){throw new i.WalletPublicKeyError(null===t||void 0===t?void 0:t.message,t)}this._wallet=e,this._publicKey=r,this.emit("connect",r)}catch(t){throw this.emit("error",t),t}finally{this._connecting=!1}}))}disconnect(){return r(this,void 0,void 0,(function*(){this._wallet&&(this._wallet=null,this._publicKey=null),this.emit("disconnect")}))}signTransaction(t){return r(this,void 0,void 0,(function*(){try{const n=this._wallet;if(!n)throw new i.WalletNotConnectedError;try{return(yield n.signTransaction(t))||t}catch(e){throw new i.WalletSignTransactionError(null===e||void 0===e?void 0:e.message,e)}}catch(e){throw this.emit("error",e),e}}))}signAllTransactions(t){return r(this,void 0,void 0,(function*(){try{const n=this._wallet;if(!n)throw new i.WalletNotConnectedError;try{return(yield n.signAllTransactions(t))||t}catch(e){throw new i.WalletSignTransactionError(null===e||void 0===e?void 0:e.message,e)}}catch(e){throw this.emit("error",e),e}}))}}e.BitpieWalletAdapter=s},a775:function(t,e,n){var r=n("c3e2"),i="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";t.exports=r(i)},a788:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n("92b1"),e)},a7fa:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}});return e}))},a958:function(t,e,n){(function(e){var r=n("399f"),i=n("11dc");function o(t){var e=s(t),n=e.toRed(r.mont(t.modulus)).redPow(new r(t.publicExponent)).fromRed();return{blinder:n,unblinder:e.invm(t.modulus)}}function s(t){var e,n=t.modulus.byteLength();do{e=new r(i(n))}while(e.cmp(t.modulus)>=0||!e.umod(t.prime1)||!e.umod(t.prime2));return e}function a(t,n){var i=o(n),s=n.modulus.byteLength(),a=new r(t).mul(i.blinder).umod(n.modulus),u=a.toRed(r.mont(n.prime1)),c=a.toRed(r.mont(n.prime2)),l=n.coefficient,h=n.prime1,d=n.prime2,f=u.redPow(n.exponent1).fromRed(),p=c.redPow(n.exponent2).fromRed(),m=f.isub(p).imul(l).umod(h).imul(d);return p.iadd(m).imul(i.unblinder).umod(n.modulus).toArrayLike(e,"be",s)}a.getr=s,t.exports=a}).call(this,n("b639").Buffer)},aa56:function(t,e,n){"use strict";var r=n("c3c0"),i=r.rotr32;function o(t,e,n,r){return 0===t?s(e,n,r):1===t||3===t?u(e,n,r):2===t?a(e,n,r):void 0}function s(t,e,n){return t&e^~t&n}function a(t,e,n){return t&e^t&n^e&n}function u(t,e,n){return t^e^n}function c(t){return i(t,2)^i(t,13)^i(t,22)}function l(t){return i(t,6)^i(t,11)^i(t,25)}function h(t){return i(t,7)^i(t,18)^t>>>3}function d(t){return i(t,17)^i(t,19)^t>>>10}e.ft_1=o,e.ch32=s,e.maj32=a,e.p32=u,e.s0_256=c,e.s1_256=l,e.g0_256=h,e.g1_256=d},aabc:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function s(t){try{u(r.next(t))}catch(e){o(e)}}function a(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(s,a)}u((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.GlowWalletAdapter=e.GlowWalletName=void 0;const i=n("0a37"),o=n("64b9");e.GlowWalletName="Glow";class s extends i.BaseMessageSignerWalletAdapter{constructor(t={}){if(super(),this.name=e.GlowWalletName,this.url="https://glow.app",this.icon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAMAAABrrFhUAAAB4FBMVEUAAACjON6dNNyjONd7C+GIHNq1S+K9W+O3TeLAVOe6TuSJHtqcMdPBVeiuQt2kOdeRJc7AVeeyRd95COR9DeF7CuKWKtCaL9KoPdr78/789/7//f+zPt7u0Pi7ROG5SuK9TOT67/315PzVYfHAT+bx1Pry4PuiMNWmMdaqN9moM9fv2vqvOdvtzff15/ysN9mxO9yzRN/13/ysPdz46Py/SeTFVemPE+/EUOe5QeC3P+DJW+y9SOOfLtPZYvT46/2TGOu2R+GNEPKaI9/PXO7t1fjbZfWgLNfu0/jIV+rQX++ZKdCQIdSWIOGmN9iYJNvCVOjRVe/CTOaKE+eZKNSgKd2TIdnLV+yECfGfKdqKEO2dJ9ylL9iNHdr02/uHC/KjLdp+BfCcKdbKU+t7B+eUJs+dLNKTHeG+ROXUW/GLGeCFFd6PHN+JDfOuQd3JS+vNWu2EEeGOF+WiNtbOUe2BDOf02fuSGuWOFOuUJdPWXfGFDuvMT+yVHOWIF9vCSOiZJteACeyLHNV9C+N4A+x1A+mGGOPHUOmKHN2aLtKFEOWXHubarPLXju7CfevoxvffuPXQmu7QfuvnvfXJje3dnPHBauTOcOu4bfDjp/SqUOytStugNu6yXd6bKueVNOUmkAxzAAAAGXRSTlMAIxB+3D9C/WLfo2CcxcXf34TffL6cvc/vU7i1KQAAOkJJREFUeNrElMFuqlAQhivICpLehFofgb6ET1CjCwk7drZNwA0SFqYJ8Upq1Ke+/wwz9hwurtT2m5lT0933z+jDLRgMPN/3w3AEnoihkAt1l10PU3SHN+aP8EwEQeC6ru973sB5+GWgHY4gW5jk1LlNjSFruy13FLEz5KGP/p9X5Xg8jp8D1/cGDz+N44WjYd6cKRorAozBDgHUaIX1YV13lo8WdS5OgKfrrxwFDsL1fuogHH80bHrcG/MEUAbqv6PC37ROU3v/zI7mjYb/ofZd/TfUUeyVyQQ9Du5/C174tGxsEEFViX7znYEF++/0AlJF/MmbS+Dtb2C7QZmQvHA2R5uM3Ttm4ITDJWg6EVTwRwsNHwBaqQ0QgrpTEa28wQat9Bx/+5q77/Lo3ycD72nJWOpsL/4NTV4Q3evP2krrQ4rz7zCdog3gzxFg/Wg27/nqvxvyR5qyLCPUJIomUeDdT395tucAyL8p+EEAyt5MwOBwsN0TLmRgAn3lLG4e/yvswdmerctyIoUUwNi/i76eAA3Loxu8NKeWYr/fFwu8pyzPEUSW11mW1TX1IevY69/pFC36SSL2cbyJ2RyNR3kXe4H0eaShj8H7eLsrGOj2vxo8/AlTVeTN6ixPb1GcsgL6GUWAb0IGyJ8TYFbpCtghYEg9QYM2gVh4pbHtgS4fq9fF4wi6BIMb/fSJPRfbV7AXOILWXi8A+idM1gvrrwiSp1a2WpsY+hguiuCSP906tPkC+nFvcf1DtV8qpE+jQF5ZIAHaPqYvgwPkoU9vukosNlr4SPom6m/IR2hOAK8ym83KWWlx9ffAGen1f9tTG/IoNlcWSgbWFy8A/miTrVYM7AhIHk36SiTAEto96PfAuW79JP5Fj/IX/gafmIXtvpcS5TXNCupo3j2eD06ASKnnsNf1b7cxdWzxrlj2ZfTyEkWia9RMX+bxil+CEOpfNEszgcriE71g4P/J5sJ6sRbIXAIgPmhA8pEw8/m8fbYEJ2DKm/r29l+QgOhe5IpfAmf0j9SyaWkjisIwrS0I7bbgIn/AUDBlFm4Ds8hKs2lloouQILrLIiATGAQDycZf3ed85c4dTTX2Oefe+LF6znlndGv2eQKUh7XKNzQ8oE5BigD6mFvxlam7OTef6N+r99h4CrL1z3/P74JcX+xzTuVw5Xz0Mfj0ZauE/kblOQ9afDbKs5hzuKhnTQDXMgLg9kupezEPrqgLs7+SekojwFtKL3D/3F5xccBeL/+CuwWPwUcef8jyr/pBs25aeAT0LGX90A0A8nSoI8/+XZ71y6Fh/jTPuZun+Ef2Q7+vgjgDd2EfoJ//MYFvBB+4N5tbGv3Zeq++FFxzHPbPZbD7WjMQj74yZgIXF2NPQHoIuvrJHlrr79v+T+mckC/8KCfHB/pvFey3txv8Z7cz/BNNhok3DIB2edG3DNS1qtPBlbgbZTkuYwREwNefE/LJX+j3+5f95Fvo9uOmikspvZSjg17/4c8ERB//dgAqumoPICH6Qo2/URvy7gt/2z/rl97p34wFVZ5oz0ejOTUy/46+4f7hzSn0FPY9aEiUo4P9Af3ZZqbs078mAKlSAuItWC/VnwkYZm5XaZg+TT3d2ADUH338R7hLOaGf9m/OdIIfKTEMncDB/gTAJ8DlEah2NHQ3AKuV+HNgpfrBfRuxd0pB9DlywWQ+gVEbt4+nP20fzpL4Ty86wa89DMcHPv9BSkCFv16N1nU1NfsUACbg21/VMoM6oea4O2OpFAHcXf9m4owS2V8/9++r/dkplcw5r3N5+d4JfL0N/7DfaK1lCFWbaTWdTq+b9v6BCbB7j0A2gMd72OmXbD8Y0+g7XXt4GQBfPnVWnLnkgJO+WFiZPingTXny6b3//4S+uQdVNaua2D76Qpb/AHd62B4A9o++/6BkAoEFwNiz/zwA7i9Y9tW6p6dHFxBDcMjA2/8PfO74awJcn9PZPvqcYJXA3dj5Gzt3lw9CPgUgi0CuH/4uj77lfoB3gm8W3Rgwgbf+K/6xNdzfymH/0EiZfh4AXgDOkh4OaZnDMA2ADAS5fjlO+kFXHzJ/DUCkfzAoegPoLVoFi0WWAV6G39/8A5DvP6MKEKdoKrE6TwkAnYDKox+8OoCbMtt/sDcA/vYHe/cNlF5ONgM6ZnD0zxeA+cf+YdPVb/RMXybg/Bx/118Nawp9G8AL/449144/O/3JngCEvQ1AMH0aYw5N/er1aPvJX9rN5bWpIIzi+BYFFz7AqOSWLBTflSKloQsTEFcuBR+BVHBbQUEUpIviMjFtbSmllv6tnvkePTN37qRW6ZmZGxvr4nfmfN8MCQKfMTgxtQHk/Y/5dzl+uv/OzwR81QTgdcU1Go1evsR8SX6sV3Tg1bs0AYM7gzuYoG8KAOBBpAb4tpuehAXpu3ORBVPawLW0/DFzA4ZhQGoB8Q8SMB/wJQMSA2hlRAMCfFjkBz6m0TMB0JImAPjgN/wkAbr7c6CfJbvimwFYeHovMBWL4EzS/+gA2PEwftUyxnDYRwSUHvhvA7zQm4z+2SjI8GHASGT8YJcl9K/wIP8SDBB6237Meybtf1IAef1z88GukjciC84WDKidgGkBEN8cEANE/f686huGw2OAHuOZ4pMfCwEYRfjGj2kGhOeLpRdLA5HwswCCAdx/zATf4amPmHiPKSgVwZVaAJRcZ7b/y8vgDwnoiwVmgEzh9weebgCeFgDDpwVAlwX5/mMGiQGDgd0ATcr/2NsfJiWZ73bJTx/owKniCQA5PwbF64/zQ8M+ZA0Q8gpgAr5KBFgBln5Mp9ceIOjUm7CWVANRHADQewBmzYFI3Vvdbneh+wQO9Gr8qIKg4klwjfyEfx0eQ+M/CD/xYQCWByBYUGsBkDuA7dfhGWACVPQB9W9SfnNA+EGv4glICf3CAvAXYEAPSm1wBy6VOmC9/0F5BcAAzP6yBiDil6fBf/YAIAIrGGkPBD5FAzwARp8HgAbMzTXhgx0jqIfpiqrAe+HZUgdUC8guz1oHcFkCpAWYvAnOB3ywi4TYEwDt7Uy2xutrnU7rpqjVub+2Pt6YnKtyA1Sof0zgqwGYNID4EOBdPRggj5CENARNEbioXwA4PS3AyPlZA6p5SughwfcegCXa35mMO0Au6v7mxrm75GcFRB8CCL/guwGsfvK32712L8oAliYA4lGYBeADO0C6/8N8/xv52QSUHvtvCdgj+yHqbE6qmL92CfLyB37Cj/B3ia8WVJEJUyNwJnwFCDEAbP/N/OgBhQBYBr56DGTnx4j7UdQZb98dDOhAnACI/HEFOL2pCqtHWRdojMA14ce3PzwANQJ5/pmAsgHGji6I+O9P1m7+k9Ymv5t64F29A0BpACDlT9SrggniQ9wGahE4cfAdsNKzBZT4+4UA1LW/C/p/1+YEBtzLWsADVUMCJPqJqoopEHq/DpxMvgeCYACvQAJPlfe/HACM3a1C8o9SC7/LPSA5AS0BNXgoFEJV7wPpdfA0+P0b0OYPQModsJwAbv7/6eF2/FF48yWILSDBD8tf1AD2gUtxC9QEQJL/1YS/0P+oZv6dqfg3dOrjUHUmtY8CD/hn4wuw81NAp5gBMSBqg1eiAKyyA/AAsNtfKQAU8W83UxOb5DfiUbLgl1qg/HkPzM4AaLFytWVUtaPgFCvA+YGPscoEJOkfEr/IT/ycnha4iFx+jxYEAx6zBbAC8v1fxAgGtDGzCHgGLvEMcPE7cOC78v5XdIC1nyNhMgEyigngr6UWbHsPVEkFMACgjwxok32x5oCHAOcAz4Afwv/+g9KTf+iiAYfw763X6ZOf/En0JBHsDvxNar1KL4LpHUDwGQFhl4HpOUgicJ63IJXhvwZ/Af/wApi0GuC5u3zBYDRu2Ip+lT9Eam2kPZABqDfARagK0yKgFvBKGBw45S2ABqgF+ArsSPtPA/aeJ/SOxx+zzJPTX5O/zEL0qCoYUA8AJPz2jKvAE3BZ+U9GLcBEAwr4BQO2ai3PFP0pfsr7GTTTIL+U18IGSyA2oJscAAeawZIU0AA6oE3gjLcASPFX2QBKNwDyU779hjRNtMbtoBl8W15pURSC5kMw5a+wPAfsA0kXOMtbQJIAsH9X/iOcAFr9bHT/p/q/T1LQ+mkGzBZKYJGamUEGsCoXbwPeBa/mFQB8LOcf/k0BjDaiA+wYlKZg/EQc4D0wSwAF+pm4EUT3wQtJD/zCCgj4UHr9L+Sf8Vf84+DPU/BoxvlZAbUO+FTgRfInJsAjYFehT94DvqQJ8Bvw3wRgt8XtP07RgkfbWQ+o7/9TYcfS13oNQNflHij/ASY2wL4ErtV/Tk9NDP8Y6WmB6w9v5/7aZhWHccVLRUHw9kO80L6hBrUaFdu1IJIpFBWVjnlBNm84UFj7SyeSiSjiYMY1TROb1Rrb+a/6fO/n5OStlzmfc96TqKB8nvOc75t0fb/uugHCXxqwsgITlB8GLKQGyGeB2+kmcMX41QDAWw2o/wJEwzX+3/jjpgBdTwPgDjj9wgpdC4nKCNBt4D4yQB8C0gAI/od/9xNAfwq/gesWKkLQdwPK/cfmqwF+BiIDbsA9dBcUA74W0W8Bx03wHP8haNCX+CU/1LDl1pgRGRiGAWGBJUCO/0qRgNSAO+ibABug+MiAHgDAn9Pb4GufFviJAetJ8Ws0MCG8ykL8eMF0W+LdTchq4dJ8+V1Y+FV/4QDdBx9OA8APAcCANAEn7v/O6qCyO5/BhwfhREhcMldkoVVl/ya3q0ZxCGBAyY+L+c2BxbIKmAF3SgL8CEBUACQBmPJnwHUGrA9Wj1rOX6/woRRnRC4FFvoiKeGIWFANHp97wmuACehMD15e8bIYEVjIDKCvQ5spP+DVAZZwY62vf50jfAgU/H+rR8MHUUQk3pcpeey5ucfnm6gDVgLiLuDxx8KvZkFEIAy4UhoAAV62/1x5/EP08be1c/ry4VLKfxNW8PAJYbUhHmPVAzLC5wAUYHXA9z9LANAJfsUPwfSNEF+GcwPUAvsNKFx5BBw/7v8j/F7A0ahxSxVumCWtuWcff/wX+TxA/O5A3AMF/+zK4uLiAl2lAfRJ6Hbm31b+LAEYLDhQ//kPWzGBAwhBQ1Vh3ALlh2T0Ir4MLTT1MyGdgcCPMwB8SgBbIJpfCAfEgLskALkD51LVff6dMD/UPoIB72YhqGzcGk/25ujPx1/Ys/vhr/4T0eC3/OPiCNghyMvg3TCABH6W8tMw5fQhFH+Iq99Qfkv+aMnRQ5kL/40T7fHTT9OPRHb9dtiYyz8IMz+T8/678kMgn4XvKxMAJftPi+OHdpwfOgQ/6XD9nyWg+jf4o5f4h+PPzi833IHWgpVA49ftF3otA5KBLAH3sAHcAKLmBOh9cHVaI+eHmjv6sNQfg8bfS0BF17+pGvizUv4Twpde6jcgc+C3tARqAII+IpA6IF8GHrqyLQG4RgZcKwwA+rnVkn9g/KIxJ+Aq5h+jEjB/X2H6q6sqnJo2ibQ/x78wSgn4pQFFBnbjBKQF0Oj51TKQnIE71AAE4Bqkz0GeS7U6S0eV8psm9tTwVbMAqipQJJxVAR//sFT5T/aP6bdm5bfl5lFwzAIpA8oPxR3wrPJHAEoD9FPANrUB0Mdf/9qAVsJfEefQ+cmCwbpsoe8l1KgdVb7/9jqVpHb/+BV/au7p568rv2fgkyIB2H58CMglBsQZeOC2R7a3v6bhDQC+pcc/DZ7GDI2dvzIdMj+m6HCdmTENqWI1Sn76R+EVzdw8qTLjr754RQzgBMwbfzhwPSkBtv8YZ/MUBD8bcC++DcMBiA3Qh4Czp0ASnaYJHQl/YOGltcMlIDQZVaVKfD/qNf+sIu0fywPEkYB+o3TgQAJg9DQXCZ9nmQAzYBuKBMgRwLAEkPhXYMsDQPgdQ+sMQB/axPjjcFjNNCETg2besOL90vgrbx9iCThopEoOARng4v3HsqYGlA7AgIe3SVkCsodAcGHRAOA6LQdA8t9JHGh1we0maC8l8uCmtDQ6juZB4IfIgOfyEumHIBKAIfSsxVBUwdSAa6IIAMZlOMD0wh9//l15AXB1MAaCHxG4aQ+G4+Op/jF6BAZWHXMHGqeSACySBSaEYHFN+HMD7mcDwgHgk/ghQMxVnr77GPCg7/wdF3nQ+i7n36Srt0nXZPyPTVgfHbzCjbSCP4rgEqHzCcnLwJ4bcJYdCBVVoM4APgTpU5CrMiIBkzgAUxok+GDH2sPa6232oC8ng/56x+NCk18wptUajo5/zvvnZQY8NeDsRQbiEPwaCWDsMGCtPANhwJUsAcYfFjA6Llar4De1uoGP2SP+ngzVxmQwHu4JepCHBet7o8HxV9FFL+2gZPzQvvB7qQwH3vA/EWD4OABra2vGv5hEAAZYR1Cit88BKb/8Dnzo0G4AnVKDogTABKX/HtfHNKA/fj8eDMaj/lA1Go3Gg4Pjr37+hhT4ZgDRYxr/XFXIHdjVBOQG0H1gdgQehAHKzxZwAtAR4TKG7b+hFwGojcDFi3QEeoSf6PuP2QLT24UMXy3w+Pv+awnsn2DAshhAnwCNXSZCMIOfDLBOmJQAa4AC/EhAxn/o/O1Ou8LAmzbT03oI9ovE30PrPNl6WuWd49fzg90TMLsCQr9Xs+QRKBIAer0TrpU3QjJAdJWWd6+GBSKCvlwGoGLkSoa+wJGh8GNhD1gRAOd/GwMz7aaZN1HEDE3tPwegPgPLOf8aLxBlwBQ1gBNwRR24ui3faC/RCAMu1wQAvApu/LBkQvS9q9h/zICP/e+FBbVNJIHPY2b+6R5Y60BEIHZfBimNwDxLDJBWoIQfjcDCAFYZAMaFBRBeXCPuGMcuyBL0zi5DE1AG4BvwJyr4B3zjqD8Eb2QBcC3yIppRBNmAbWXHoFczoAxARfD5YFXt1jvcMi/1gLUlAQhFAj7AAH/gSw/N8vzrs7P79B/CVBPKCPxKd0HbfSxYhd8DYA5EDUAb3DwCl1j+FLhpzwNQNw63ROQDzd4WsW9R+Le8i2YeAOCHyu0Peub/ndmxYC0MKCKwFlqUmUcABoBd+DEUXgZagAh86Ogv+dtDghcLMHHBAtHHNQFI+YV+6vNPdA+iHwbucgBUFc8iAil/fgoEPz0Dt20CHxc74Am4JNJH4N2GvhiAA1DvwA3BReM4lXXQpGGNdL9R/g+ijfJ7mNQ6EtPw38puf/rY4HrHpZ+k4zSoAb/FCWAFf/HTcTJAxQmwCHAbGEt/xKAVARCV/O3B1iXtm8aDuUWgtz66eAd4lrDTOqODquHHc7NzgR8hYCOiDDbOiAPBHg6o0gSorl2UBOgRgLgPSvTC8BIIzELE7mfgyxB7AAEdF1ags6SJLhblx+4zPhbb/ah+SeeIUadUJS5EBH6RBET+g39NzsDMBFgAQI+pNSBNwBAGcABO1A3tmCZT36cNVGX7pYsqVuw87T6GKGue7Pj22CyfgOXCAjsHEoEn9QyclIAFws8NoI9wYFd8PgTY+HgQ/sgrwIkaaLswdwGDuscx/Abv/gZetI3qD8Q+pS8Kfn9car5zkjwCp+pPwJmpM2AGXNzkLsCMbl2gTuc6tACcrCHgIfZAV+Br21S84JXpOQCEX9KXN3/rm/YLth+jTnYjuA7+mRYY/mKSABPzwwFeoK4UAH8I/vSeBeBkLd0g5ugXt4GZigygBrLcQRfCEvQqo4/tBzxpn+CX/zICT+oRKFR+I8wNIHShNwNCN+gERADqNbFOYRs09B2odUA/hNA41fQ5FLufGhB9k5YhOIBFFYaUZ6CsARhn3ADmLwzASPvA8QOgch/ACZAANNsna8z7XvQM8wQAO/idniX4UIb/jPVMeP5gWdShJSwIWRncXVH8+gjUJwBL1yXwmN1+BKDZbLoNpR3DIM+lm7+B6dvPw/QK0ef4WdeMZ0cM7+Io8BQrIgL7HoAyA6xIgP9PQDQBOb/gd2m2ogQ2obbMWboB/lLaM9Kap85QRp+dfusatW/obYxUHgM1oJEa8NOpIgJRBMwALYKSgK5Z8F0XDSCIf6c7kXsA6Bkdrzwg+2v7G83JLAMYH9d5mucz8NdJSm+KtnFp07A2sDEz+igLePEIvJwYcIouT8BaGPBqHIHvv/cEcACC/zSaP5AHh3YCmq62v9FVPRioAdErbQML6FneNvPzaBj3OVuAMdU3L7afdUAGGH+YkBYGM+B68Bt+fQLAbwZsSRvkpA0i8PFmpztMDGjxJYo3bfOgnwbg/eiWF/xZx7hQ0TVPy9+zqnHbIqBrqU5SBDj+GKd4YBJ+/oXwVTaA6MEvBmCgD3TCT+pGCWDUFkYTSzN945HYMwNAThbU8efw2e7nj4pbw4hhWxyIWQiHgA1YFgNAjxIARQL0ThgJQP2LAACfZAFwdW9wCaAAKG2bkf1Nlof3s0Zx3CMt2gWGMv5i+5P8m/baoghBfQTezIpgODD9o+HbLAAia4E/ZUCXamBWAmACLfEGw4LRnBC/4bPOswPWLC3k/KqsZ3RC/wIvhg9ZNaw1YPes4WsEwoLFMzgBJE1AHgHgk7L9RzUcSwngAADWlnhDabAwDBhfQ+AKenlFuyzf/Y+KpqnJ8beuYXOC7/zt2QZUXgVB/9MFOgai9PtA1ACgO34YAH2XaagnQHMur0quPkQ0xnoEYv9d2fZ/hvGRbD8cyPsFPa8GRL8U3ARSGXvpgFZBLv8/Af+C8mMm9wFLgP0/0KIGCH83d2A9NcAy0G61gj0OQrMv/FCQJx5oqzjGJ2UtI/OekYGPazfD57W+CCxLAuQEYLK8CCxEDQD7j/z/gepFDehSAMKALzHTEtDiBRJm5EFccO2l6T+fROAzDFpMH5mYvrz7RQBIfYMPE06ognoXvIBTAAOsDJgFkQDQs3oegUv6Ew2z4B28Wg0U7ta0mjKhFg8+Alz04AIug5c3oeAvm0VBwu7aF+bEAMzaIvAyGwD8C6gDloDAx7QEkAW9qIGQFoF3MCBaJlwDEQADTlV68ZLy57LNLwPwjPLnx3/agCfkkza4m/CB8We5oAbsEi1t/wWWOHBGIpAmwALQI36rAdEF/Ttc8OLQSkAddf76uycA+x/4uGp3vwyApd/VbsZXEFyqMgKZAT8RPE0xgEKgRSASoAbo7osB0Qedf7A1Lgw4UQfgB75l4LzhY6mPv/PXBOBPys7tJ64qjOJVY+o16otaK6WFTlERtQwYLV7SWJSi9mKaEqMSY2PFxAhJDYmmCY0vjQmUFgpIGv9X13fba1/mUF3nMjNeHtZvr+/bew4zZ05n7zfUPpJgAHBUTQAA9g2A2g//ECNQ9AD84Q4BoH+zT607gHLYubcAvhGx/X19YPm/kRNQ++XNchTAYZgPBraLvBJaANspAAUA+oc8Af4roLD/Hey3AJCAu+yBjHq37lysekBjH3t9u9Dy6ke4p3Z98CF95hSsIPIIGIBNser+CeC9S7EWZBOEDIAiwDXsFsCXm0fZA0dqBu3L+/5zCSkAHf0/3BfrX+w2AxLAqwagfvuN3aVdseyCPQJQBK5LeRMggLAfBVADmCWAjhZY1MM9vfIBVfa7OyAXQGo/BO/Y7bSlrtkICAMTgxAoAUx5CwgxA5dsKsxXghoAQ2B/zviy0qkAMO6m47GVA2j8d9qvbhfIBhjD/6oR2PJBj4dWU+CA08cG4PZtBMAInM8jcMmaABPACoD8V4CqAPx0AgB8EhhX/wcjWJcSeLh/I9B2ALNf3Tb8nY1klEGILBBJmgePZAF4FwhwSgAMgQGIFui/gxkFcLFsgkcdQG573DcRwRiA2v/XrX+6L94BVDeLo38DwPQz/ykAdo6FwG0oCJzHFgnQErAm4CVAAvUc+AkBaAnQN7aSBB7IYN1KwGe/cv3TUf8QO6DK218OYBI7VtqtyIEA3rtd9QACYA0gARAB6CSAv+PE7+Bgkxc/YSXcJIAswreDCADyxj/sU+0CMJTyT/sh4SAAaJePVAmAywCM/3lNACcCJiD3f/UX7QDZj+B4EpAAWQeN0HWbfr4MAHrhQ+wPaAAIvqu2b3eNHwgABCwEB4oJYAWgBbAJQHFJgAAgAIB9yAPwSYw/fhjNALxVuBwPGhx6fSQAqBn/jgCw/ov7hVKeAEyzxiFYtBHwpSAAsAMsnIfePZ+KQNyzBByBfHIBCWAAZPcewJWwe20fWAcG4GtV2f6prvzTfwtA7E8yBrKJ+LwBcNsBuOqJkADcPpTG3xKAXQGcUAAjZpGO/RgnCW+Ct3j1uwHQ+m8ngMEAJjH+CiEYpCBMYVMSUEyDt6Hcv7QC1oBfGQUAlSZAFQFQAgmALITYAzzu6jpynyOxEuj2X8e/vQRG+9TWJCKgG62ThR1AEQmYUvtOQErAqiAmQlUA+O7PlIAvr8YvAToDfUkAYrgoBI5/Vg73fgj7GYAu+yUA+m8BjFgGJsM2/WevIwGT6Y3AwoIQWDD/DqA7ARfhHs4pDcSmLYQ8ADb8yXdwYCDu4zcTTZ3pZ/7pvqMBMgGSgawR1idsLIFeJADOPQIkwIVA3QMuQjQvIdBF4d1YCI0PlFKxklDdAQBXd/dvABT+W+1OZjVg403/bAUBYCI6wAISgF3l/knAAXzBACQCFAisE0AHAT9qAB3L/3r9f/AEcEbPhydDWQ8clIApBbBtABauLUBKwWUEmADYVwCeAGw1AawM70cJjB8gMvgnADSrX9rv/hsA1PiHjk+SgJ1om3tKwH4AUPO0XyyFDIB8aNsB+Md46h/Du3iHCXiICOAz/dtf4/+Njvybe78CMFCTpQrjLAdbCuOiqANwkQEAMAIOQBPgAZAdrulf9Pf/A/BAAUDff1b6by+A0j8vgZQ/GwRZCibC+Sk7Ff75xAFsGQAYN7EPFguBQ2JfE/AFe4CcywT0/x8A/9yLMChXfy0Be/9XNEDaD9nL7SoAZRTSamDqhALYM//UiiNgDRgAIyD+2QPgWa1/YwHAyS+K/jcAQwDQ2Dfntf0k1n81+kSwU/g/hd02YpAtAGgASGBGM0ACJ50AAMSXtwyAC97FNwCYTuHd0H8GsH4FAExE0LZ/Eujof/QPGASQE4CMgrrXScAATBYAVlZWFlayubBNgAKIDHyDDQhkj5LAPJgAzGIL8SmFhSABcPrj5f9m+neJ/ToAlK2EOO7MgO9WAX5ZfKL2D5UALnkCYN0Q6KeXmQB7MBgxDWAtHI5BgU8rGHcSgG8/o30TAYgq+1Az/ARwuAnAIs6LiiBqIS0D9mMdCPtQICCAVAL86pKNPzzrZntoNwDAprknB4ehe8yC6ccim+7XPfxtB3zffj3MAQxn7rFxl5eL+jDCSSBLQALANhgAmICrmoCLkQEyMApfcxowl7O+EQifPUgVQP/Mf+X/7e7xf18kZ0cwAY9BgBDUvQeAPXAlJgECUARG4JITAACzbwREt2j+Gyh9tvWUTwNhk5sT4bOJK1ECY5qAdvLDHwAPan+8YbwpUrCPuOf2Pfl8IAB9M0z/LIK6DQKAILiqBYAIQBeVgQkUzP8tdkFGnb6LBKwTAET7B+XflLm38FNCYMesLqpVL/5F1gF29kADEPYZAb84RgAYf5N/iUPk/kkA/0y64MAEBASe7l+hf89+2/1oH2rLP90pNSewt7iItEvgZefQZ/UQPXAD9nMA56ILtAlIkgiYxDalAK72y2kg3OuZu/dAyD/8WF/9MP9R/V0XwCL/xyCc5VESMLy4CN8CYbFYCSAU8Sp64N5NAqCsDbIJEMBVScCtIPDND5n/H6QAQOCEdUF3HxD4klkYg/8PLQBV/Pl7ad3tjw0Q1pMsA5uIgMVeQHj64yQNIiYBtgAZfQgR4ExQJuDHmAR/D/8/AMDXsI5DdQsqm8BsBoGjP4vn0N0rP1zvAJB//rWq/9q/D3yJYGdRA6BFQAQ4DAqqw9eB2zdvOgDaZxvkRIhZIH2DXwBcDQBqHwDkQ+14eatqAux4DkMeoyruXZHvPjT+Ofqmjukv818A0G6wtQi5ddusF0QJsAUIgN8WFi7D/+VzJgVAAiyBHxUAhC+xiX3oa0oIQLdujflKQEfa7OLsDyZ7+s91AOB3Pvlzye34w34NoMh/HYFhA5AlINci3wuvSAAuw6xavywQuBpSRQ2kBEBXDEBFwPxDm/F+aLZS9Q/GrqMC1H85/cvsb+IHAAavf2m/JiBNQCGkEOQCAJsEewjAb7/BrJnvigAB/GgA4B87ARQJuJJqYPZArV/h9/7Ki99F+Lv6P/PfyJoACGBzAhoFChVgV4MUwOWFc3kCCCDvglYC9vVtVdgnANMVqwFrAgdplwD40Q8r/3b51z3/txIoux4AJyDmmQMCmJcOIC0gEsAIdCQgKoAEKgTy71gDB+nBdQAI/wMXPzg6/LP+g8AHVQSG1HwhEoirQRPWAi+7dSCYd//QIABMQADABU07cF1HauCK6B/OA93avp4BUO+Mfzn8fPvf+C9/MosEpAag8aIERJYDzgEggArA6HsC5ueFQQ3gkpeABYA1AMG3CQwSgbETnAc6db8JAPx31L/5J4D2F7Owf6B7ENhdXI0aoGI6iFXQ8s2b6AAWgJ9//lnME4AsB2dAIAHgFEAAMvCZtAag+1kbHJqNkz1hBbADMP3038a/+c28LAAiQ+A6OYQA6E6ldsBV0E34dwDnfsY+D5UJIACMf7QABqCS18CDsg3SOp9uf84AtG/9Wf2dy1/aJwArgyX9RzuWgGBAZS0QBcAEmOa1CLgaJIDnpQIaAESQA0AblIsCCmBIdhxVCHZRAc0X/zn3t/5pnwBY/5SHYGlvFd5Xx3GulFpgb1n9MwHz2ByASv5UEE3gSQCA8hJoAwAedRuEX9mwk4OeL6QAcPFL/53tn+Xf/lwOtXRsaenY0CrMrzYBKFrgbxEAAHCxCvQieQ0ACFoAlMZCIxAXxmAWMgi26b6OALADDux+NN+Mfwtg2o5pOS19sCQENlYXJQBCYRxHHYC2BcpG/wAww2mAAH7EDVxMrICKwHX8S74jUvtGQU/2uGsdkA2g6f2mgf4ZfwKgLANLSydXxb0icK0yAEckADmAeSAY/Xl+dHQeGEAgpoEZAuDd+zgJmMZ0U5l/SC4NTr1lAKA5bFAg2GYHzH4pPgfQ7d9U268QLEF3hYDEQM84VGkOFP/RAuAeCEZFFoEVAgABA0D7SuB6IkBhVJ3A53xDEO5xThzuMwCsfyn+7sVPs/4hgHBPLQEB2qAZt14gT4sAWAVAmP7UPgDMWwAsAjPoAYMAMAFyPSdCQAKobgD4/FTeBeYm5Mws9BmA8meyu6/9Mv7Y2vy3CDQClKcgOgADwP4HBCKLwLmVmRn41xKAagDXr4v9H+ifGbgO4T+qIgACc1b+eHaP/r0B9Duq//jx3b29rQ3X1tbe7u7Jevw7tLS0tVqrXAWrfxDwBojxH5UT2yAQeAIA4CUCAIG4i4td0cIhAocPIQGACMhaYMojMJtvCADv/RwNsF+O/tnDexs769tzcz3ss3Ozs71eb67nmri7v7G1d9KHv5vAV0MNgHoKgHTw//jj5z/EvkkJlACePfQiAcBeBkCMi+xRCWgE/knLQe99OGy/92EA8G//FZd9Tx/eugfnFKzDf6vt/Y29k5n/r3yjNjoDsMUASP/D4dZ187dE8L+gNfBuDYD+FQAFACIAgPCJMSwHIwLY49QvCiCb/mB+Y108z85RcC8HznKarSns7M1U3gPBUh0BaYHWAbeXAcD9ewJGM/lEcE67gDVBAjAFgBh9NaQA2AX6fFPIVQB0j/6L/nd4C+aH5nDImbI60ANnIWHexzMI9jsB78ntIBSHI9gYGICjR+ZTAMy9A/jDMyAR0HkA8hpoAfBWPpWI4D5XQ2HfA8AGEPYPb2yrb84Vg4UE0D61ub/1VRIQrE1Pr2F7b2i1h83EKXBf/AcAcc8AsAewBgzAM4MT4IIfJMDkAIBgln3QNJsFIC0AZOw3hyhNQKeQAOy0nzHYyxHkXaBXd8AiAAEAR0wDo04AALwHPAUA3QF4DTsJMAP6tnhqBATEu6tv/tP4n76zTt+y6Qs9wEF3ymqgS5sbM04AhbAm29pmr0f/fBvMDugRGC2lBGYgJAD+HQAJ0L8BoMoQ3GMRRATuZP4BYHhjk0tlWlcNToBs3WIMtAzW9no9+JejLgB2gI/U8kfYmAFNgAFgAtoCaP2/FgCMgRSBL4dMd/u5/8M++LZYnMAc4SMvmxKoO0Iv2mGrcY/BltmXA7rbE/vw3xQAhNH34Q8IKkUQACwCLxx6rADQjP8b2AZk4AFmgqIN7Ga3voV996fmITzB5gFozBMC9v+AQLWwqgQ4A9QFAOno0zwToDpfAWAHoH1jADkDpuC+LYcmT42rn/X0ZwCzPzE0MTE3IeM/FAlQFHje0Q57B9dAi2CjVyyBdqIAIPP/EQBg8HE4BJ8Iw78n4Onk/y8HkI9/CEFgBlRlG+hH/mHf/NuwT5hvP+P1rGxFAyyrgHXQhSAAXNssGsAyAfj4W/0rAPq3ElhRAJcA4IkcQBMAOKI0AmRwIbUBZOCON4Bhs2+b7ZZ+tS4IojOoPAqMAHUgguXltbXltT3xHw1gYbnugBp/kXIoegCnAQB4XAG0/nlVX8o6EMSyEEIbCALb9n/079O+JgCGgwIeZnFoEeCZcTAKZp8xEM2lbYD2Z0AACHbYAOfNPwNgBFQMQERgRmQA8IuT1RTY3tFMKbiiDwiDf45GI3yg/8edTfiESWfAk21zeCHuxbofegox/Q+Pwsay6NpQrAD22gIQ53pAZQKg6AHvAsAjBuAvCwCcVffzAwA7vBUIAYdw3wiM3Jf/48G62mUGsFebw4nh50YRgQWguw6EwF40wOXlpgN+hD2pXg3PpB7wCACwA0QA2m+0GYiog9A9JTBhw+9Df5D/WS8FeXAIOLI2kFrhw7V/DgT24Z8NkAGAfScw+qluXAxFBM5bCTx66FB0AAIob2lH4ZUAyBisg8DsAxl+eJMAQAGAIEjATt4WsUwwAL6r/VxD2LpgrC4O7YFATyeAfAnkAXD/nz4sAfjl6efVP0qAARCTvKOHHZoCy4ApCNwZe+3OOBZEUuO5e7LgFv9SW4IslHxlyNWwusauh51b+QIIyZ8/cXQbHGL86d/cf4qdTcACQAD469hhBUD/TQN4G7uLCAKAzAnj98b66/q+CBkwhVUcAaKgwDYJ/xMegCHPPk5BQFh0MPAF0OL88sYkht8bAN8FswF4GTADBiBWgs8CwIuSgDoAF/hnvVJMgan/2oNTRz5GJ5QMBAKPerite0L+JNogACgFaM4QYPNz63/SF0AnNpZXNP91AXgEIgHsAZn/GQfwDOyLCKD5Rnsfx5v9Nx1AMHAMm9oJfUU0MUiKoc5BahMiWw9g/MM23aeaoLJLIJPivl4BRP1bDbgGJ+ApAHjMAOQVcKFw3+/DPvwrAgj+k4TVuhPA+4JeTYBloQeHPxBwGvAnZp/55+7SN4Dx5cibzD9nAI4/xCbAJsgEvAAAT5ctEPYvXKhuakf12QsoJfAxCIw7gQ4KEgI9kwMB6FP4rHoAdxzuf4T+1T6U/EM+/h0AoCwBTwDA46kCxkiAf9fq93lbU1EiIIj881/3lMAUvrTERtApLpZqyehDDEC9M/42/6t7jn8RAHOvJ9GgaVAWggDwCAFAN8bMfwqAePfd1Q8ElN1sDgQYgg6xIKAKQk8OH+0O+/SP26aGfwLIGgBkCEaRAUlAaoPwr8KXBrAQ1HmQADwAr1+wHoDh7wsBV98gvF0ikGXC7sgrbAQMQZc4TRICJV47hz/8H9li/MM/J0DzzgQwAkUCsAyAXkpzwI0bYzcUQPhPACimoNDwSDQChGBubuI/qiVA89Uew/+xtf9RWC/8Q3kDZAKcQMcyAHrG/EM3UAL0/7oCoP1Xcwb9AgEycdpuOfifQ8CVUgXAoEQK2uG39neO7lXW/4IAAwDVACDxLwSeUgBPGwD6B4BIAOwXt7QqYoB/r977ViobJ17xXkgEne5dRFCItln9kxz+Izs+9ysA5p/+KSTAFoOpBUCcBESPA0D4v3Ej9w8ZANinLAtWCYDAzz9YGWgIJlcflgJeLxgsdU77HH6Jf9b96wUQ/ZcJ4CwQ7wRsEoAeZQLgvwTA73O3CMCm1s5RD8EIPrrYe3gh2DujLgA+J9C+3yz0Zlv+HH8CSHXQtIB4M/juo4dUzzMBJQBIC6BVtIRwjif64riEIBCsdiLg+6LODEz0aF/Tj7WPDv8e3/wX/jkD0L7tQDA4AeiB3gXZA9S/SyqbAajFnqhh0CfQzgmpgxNThmCcDLpAdKqnMvueflQ/F38Hjz81ygAUk6D2wOiCat9LAHL/TuDVbhUTpJ2P4/MDCQFjcPCaqB1/iOGP9E+M3hTV/q3+sdF+XQFcCfN6kLSAaAK6ChAGuX8I7gv/ZwZBwFbd/rVGAAZD/y8D7r6w38OFwNY/pP47AuAI0iTAOUDWga4X473wjQrAoI+0d3EwCHbecgSYEYzBuNTzAf2gY/BpH5e+9VJw65/V32m/bYKoAGkBoccsAfks2DcCdQCwq/AwgACzQASIgc4JqwhCXQ3F2yJ96BXuZeL30Yd9UVf+OxoAFwJ5ACIBL4R/rAQ8AFAEIAHgLR2S3vfHzqZABGRgEExptDkJ0rslfyT/0Zwhs88CoP9y/EeTCKCzB6ICQi/pm+G2BACAovX3/c4Gorocompw3poAApsVjYFBSBgoeod5uLfoq32v/RoA819eAoFz3UzpzUC9DJRFwJNqnTUwFj0AcgD1dzrju/xJXUGIyjl5V2MABg4BFBSDgaAWoUmId8Y195j49veWkzgDlv1fpGlX/yKF4BNBcTGAq4AnMgCPpiag9rH1X/cA/EoC4fwYDiIIKaMWxta2/14/GACCUQCHWiMq+6kg/obw0N41Mb6Ggx2ge/4f1RM3fc0CYAs8f0krgHqxnAUusAQq/3Rv32tXBl2N8YwyOYlSUAaA4BQcBMWfSUrm4X4H7s15HoBknzMA4x8MrAxsHTRKAvU7QbbBKgEO4NVIwGlYeT99pUFPOGyHoi2KX86TbJvDW6gFhwAKygEkku30o7FmHu6PbG9cW7PBl4d2BoB7VVn/Mf66Q6j/rgDYKogRiGkgawF4058K4PTpVACNLAZymP8ztZTP7samQRAOLlhW2+HcRn5qe2dmbc3th+Lyf9kAIdqPAOR1UAJw/1wE5BEggJgFISQgAHgABgOA2AzkqP0bvuG9nc1xWASIVkfN+9btNZfaX+uYANv6H/UDmz31BAz6qyBbICPgABgBUdh/9fSZM6cVQJcMQRRDq2zy2MUnxu9uTqyOHDmqOjI1NbS5vbOxNbO0tLaG3aXu6V8BVAEY5QogtpgCcOqqgBnOgXkE6N8yEAkwCPxWd5fMXetcdtZPDnGpFc2HmP92BqB/dcwm4C8+yqbAUQaAHaCIwFhFIEsAAnD6YQDS/NAMPHY5+fnYmaX3sZXu12xbSwS0+xX51w7QOf6Q9/7Bw99cDGz1CPxn82DfaiBmAahugh/IaXhwDBwDB9/+6RJ23+AaEUjuVeHfnVf5p//mCmAQ4AJAX5d/EWMAuAYo9Jh3QVXZBdEDAOAs/Wdf7tSzZ8BEwyaOP3zL0Z0A+s8SMNA/lwCcAXyvA8DxtwDwbVCpR58TAFwK9Z1AGYGzdG9nEf+Bq1gu6iv3zvF3BAwACbD7037rn1MACRQtwOy31wLZAes+2DQBSLqg+T8r9ulf86/usctWSQccUsNnjtG9RP8Y7ScItK8EOPzWAJJ9NsBR+rfUKwH3zjVw9akAdsBGz3ApxBqIAIDAaU2Al746H/5gePgDVw1hCf0uhh0vfGua/xrd19N/W//4LrT45x9BiUDEK+H2T8I/AYh/FkBbBDealYC6x24IIJh3Bm4dDMDBGTQQuHX5h6ax5/4h3Boe9pv+d84DYO3N/uSBs8545UXArABoXwLw5KOHOvVIXgNsAgHgrEi8GwMxHgoCpBBn9WxP3L4hYOPHN0AQgOks/V8pghj/azH8Nv7zVgFOADIAFM2XCwDOAN16LACwC8osQAAQnGMXJdfHSaBJgvrFA31XCdDvgDAAX4n929jUv98U7vLlFf82+LwkYBT+1X6a97KCkIMfEM8nQGwsgK424ASgvAaQAQUgXfCsRiAYwDn8Hz+OAximiQAHfIvUvj8WUuc4sLnM/W0WgN8STMcf0gTo+AcB2iaK0RD9138LOLANtF2APUC64FlxDgZmH7ax47BzLSkF2MfRaBoyBmF/TbL/3m3VtaQFIRD2kYBRBCAEAhECq4IMwDz2wv9BDYBtQAi4f9YAS4BtQCnoNGAR8BywKzAK0JId2vH4tVBjoOYh/7XoZRJQ97wlmBYAirr4MlAqAP9ILPZEoB7/J9kAugm8DACpBIiADLIeYC7NOxkcnwYGmCxugkEO04V93XX0Re6e/oXAyoLZRwSg5I8UfOCr3teO/2H6P0BPpwio+f6vv/pKiCEYzsQEZDJz8MqTGaf/TF/F8GsAVOV9oc9FA4BgrBJ983nr/zwvAvwvAkxAMRNk9mUHgW6pZ2NCtfbRAGGfHYD+IQUwLxVg5rDTcoWBX5Mtxp/+H6rHog1eIIHTTQaIQDPQyQD1EF7xorFvAHzscdB/DWAeAEZBwPtbGwX6Z/t3vcsV4H8jwC4A+0bg1wzA8Fmal/NxmQs7ExAg6D//Vvx708i+IIAMAX8fp0oAlAY4eaVvumf8PQD0/38IeBfQUxYBIggI0PFh+m01zYciBCenxbnsMK8A6J8JYASgPAE5DrpX87V95P9/6d/izp+1kRiI4l4vKOvFdvBVKY642ebKI7AEXLm0K5HmvkUI3PeHe9LM5K2klTnsmPz0x06KwHt6M1pIsd3TXysCMcEiAGZqANCDEogOW/z8PHuoH4bh7W2I8g15S7ae/8nkw4CPsxgQjjdLwJlDofyT6H+o6q8/D0xrAPz+WY1AbIMX9A/6CcnxR3wMyuswFQ/5StAPRL95AF1ngxlg7LX0Vb4ZYPf/NQ78kgjIZYgAvGMkjfAZg8CDug8DAj9ggw1T9HXgYgDW+DoKagCYWBCwJAS93Hn0qfzxSv1guQ4ZeDFgASPAEJTkwmWXGUkcCPKB7qMhAQhFAKgfU1C91B2X2EP5Wv79cnEd7acD75oBjMQE1sB/ZMAMqCbA4/iVUwTypQ+YB2gEMgC/qnZA9dTP9ndVGaANGNGCIgVVihgwBKUJwHtsdIAWiAMHyJeN0ifYr6byR3Bl/FkGvAmyDBwnPGfSGYecIawCy4CHAZ4OKAcxAaI+dKAUDvHYOQ6UzssP7JaL23CP9i8CZoBlYKTdkPL3WQXEmTng4xbVez96YAaEhYP8ozkQYepDmOSMlYU//pmVW9xOiypgBhILjvSAHTE3oWTI8TEE0I8ZGDFpAQi3GU2ow9r3PP6badZsBOIA9BtHsq9QGoBRWGA5MCwFYUghIAtiwrwRvPdOIn/TUMPNdfCShQBjzoNYCHlH0L3qgRf5r/pdsVaAKTmAOig0+Vgfc+oPo+A3bvGVdFv2gawOaEJZD7waZcMigwxM4NkRzQEM2mClcNKQJ4mPG+Rjp/yvxq1pgVC3YC/7bDVgowWYZoHXGfGAPmAG+OJUOeyTjpB6KOdrdUfIvwdN91hJAT3IfYDoI2MwfzlMrwa64DPGBFEr/YHSgfcbtL670bTbLAVhJNAEpqFoCLXeCNKCyCy4jA/q3eLONG6tJogBrISUoidgS/uCUvGAPmQ2YIRNpxjjw+dq1/Hs78vStf32iZUwfUC84MM+8YF1gZXfD9hYEIqv8rDpO3d/8WUWOviwfRITFH677ENigzBTEjqJxySrVd/vOtcsvpll41zXtW3b9zAE/FAgXGb+4CgWpGmQNfPYuFI2oAe73a7rnGu+RPc/7NDmX/6EDAkAAAAASUVORK5CYII=",this._readyState="undefined"===typeof window||"undefined"===typeof document?i.WalletReadyState.Unsupported:i.WalletReadyState.NotDetected,this._disconnected=()=>{const t=this._wallet;t&&(t.off("disconnect",this._disconnected),this._wallet=null,this._publicKey=null,this.emit("error",new i.WalletDisconnectedError),this.emit("disconnect"))},this._connecting=!1,this._wallet=null,this._publicKey=null,this._readyState!==i.WalletReadyState.Unsupported){const t=e=>{"object"===typeof e.data&&e.data.__glow_loaded&&(this._readyState!==i.WalletReadyState.Installed&&(this._readyState=i.WalletReadyState.Installed,this.emit("readyStateChange",this._readyState)),window.removeEventListener("message",t))};window.addEventListener("message",t),(0,i.scopePollingDetectionStrategy)(()=>{var e;return!!(null===(e=window.glowSolana)||void 0===e?void 0:e.isGlow)&&(window.removeEventListener("message",t),this._readyState!==i.WalletReadyState.Installed&&(this._readyState=i.WalletReadyState.Installed,this.emit("readyStateChange",this._readyState)),!0)})}}get publicKey(){return this._publicKey}get connecting(){return this._connecting}get connected(){var t;return!!(null===(t=this._wallet)||void 0===t?void 0:t.isConnected)}get readyState(){return this._readyState}connect(){return r(this,void 0,void 0,(function*(){try{if(this.connected||this.connecting)return;if(this._readyState!==i.WalletReadyState.Installed)throw new i.WalletNotReadyError;this._connecting=!0;const e=window.glowSolana;try{yield e.connect()}catch(t){if(t instanceof i.WalletError)throw t;throw new i.WalletConnectionError(null===t||void 0===t?void 0:t.message,t)}if(!e.publicKey)throw new i.WalletAccountError;let n;try{n=new o.PublicKey(e.publicKey.toBytes())}catch(t){throw new i.WalletPublicKeyError(null===t||void 0===t?void 0:t.message,t)}e.on("disconnect",this._disconnected),this._wallet=e,this._publicKey=n,this.emit("connect",n)}catch(t){throw this.emit("error",t),t}finally{this._connecting=!1}}))}disconnect(){return r(this,void 0,void 0,(function*(){const t=this._wallet;if(t){t.off("disconnect",this._disconnected),this._wallet=null,this._publicKey=null;try{yield t.disconnect()}catch(e){this.emit("error",new i.WalletDisconnectionError(null===e||void 0===e?void 0:e.message,e))}}this.emit("disconnect")}))}sendTransaction(t,e,n){const i=Object.create(null,{sendTransaction:{get:()=>super.sendTransaction}});return r(this,void 0,void 0,(function*(){try{const r=this._wallet;if(r&&"signAndSendTransaction"in r&&!(null===n||void 0===n?void 0:n.signers)){t.feePayer=t.feePayer||this.publicKey||void 0,t.recentBlockhash=t.recentBlockhash||(yield e.getRecentBlockhash("finalized")).blockhash;const{signature:i}=yield r.signAndSendTransaction(t,n);return i}}catch(r){throw this.emit("error",r),r}return yield i.sendTransaction.call(this,t,e,n)}))}signTransaction(t){return r(this,void 0,void 0,(function*(){try{const n=this._wallet;if(!n)throw new i.WalletNotConnectedError;try{return(yield n.signTransaction(t))||t}catch(e){throw new i.WalletSignTransactionError(null===e||void 0===e?void 0:e.message,e)}}catch(e){throw this.emit("error",e),e}}))}signAllTransactions(t){return r(this,void 0,void 0,(function*(){try{const n=this._wallet;if(!n)throw new i.WalletNotConnectedError;try{return(yield n.signAllTransactions(t))||t}catch(e){throw new i.WalletSignTransactionError(null===e||void 0===e?void 0:e.message,e)}}catch(e){throw this.emit("error",e),e}}))}signMessage(t){return r(this,void 0,void 0,(function*(){try{const n=this._wallet;if(!n)throw new i.WalletNotConnectedError;try{const{signature:e}=yield n.signMessage(t);return e}catch(e){throw new i.WalletSignTransactionError(null===e||void 0===e?void 0:e.message,e)}}catch(e){throw this.emit("error",e),e}}))}}e.GlowWalletAdapter=s},aaf2:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration function e(t,e,n,r){var i={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[t+" सॅकंडांनी",t+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[t+" मिणटांनी",t+" मिणटां"],h:["एका वरान","एक वर"],hh:[t+" वरांनी",t+" वरां"],d:["एका दिसान","एक दीस"],dd:[t+" दिसांनी",t+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[t+" म्हयन्यानी",t+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[t+" वर्सांनी",t+" वर्सां"]};return r?i[n][0]:i[n][1]}var n=t.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार".split("_"),weekdaysShort:"आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.".split("_"),weekdaysMin:"आ_सो_मं_बु_ब्रे_सु_शे".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [वाजतां]",LTS:"A h:mm:ss [वाजतां]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [वाजतां]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM YYYY, A h:mm [वाजतां]"},calendar:{sameDay:"[आयज] LT",nextDay:"[फाल्यां] LT",nextWeek:"[फुडलो] dddd[,] LT",lastDay:"[काल] LT",lastWeek:"[फाटलो] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s आदीं",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}(वेर)/,ordinal:function(t,e){switch(e){case"D":return t+"वेर";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return t}},week:{dow:0,doy:3},meridiemParse:/राती|सकाळीं|दनपारां|सांजे/,meridiemHour:function(t,e){return 12===t&&(t=0),"राती"===e?t<4?t:t+12:"सकाळीं"===e?t:"दनपारां"===e?t>12?t:t+12:"सांजे"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"राती":t<12?"सकाळीं":t<16?"दनपारां":t<20?"सांजे":"राती"}});return n}))},ab30:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function s(t){try{u(r.next(t))}catch(e){o(e)}}function a(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(s,a)}u((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.TokenPocketWalletAdapter=e.TokenPocketWalletName=void 0;const i=n("0a37"),o=n("64b9");e.TokenPocketWalletName="TokenPocket";class s extends i.BaseMessageSignerWalletAdapter{constructor(t={}){super(),this.name=e.TokenPocketWalletName,this.url="https://tokenpocket.pro",this.icon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIwIiBoZWlnaHQ9IjEyMCIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGc+CjxwYXRoIGQ9Ik0xMDQxLjUyIDBILTI3VjEwMjRIMTA0MS41MlYwWiIgZmlsbD0iIzI5ODBGRSIvPgo8ZyBjbGlwLXBhdGg9InVybCgjY2xpcDBfNDA4XzIyNSkiPgo8cGF0aCBkPSJNNDA2Ljc5NiA0MzguNjQzSDQwNi45MjdDNDA2Ljc5NiA0MzcuODU3IDQwNi43OTYgNDM2Ljk0IDQwNi43OTYgNDM2LjE1NFY0MzguNjQzWiIgZmlsbD0iIzI5QUVGRiIvPgo8cGF0aCBkPSJNNjY3LjYwMiA0NjMuNTMzSDUyMy4yNDlWNzI0LjA3NkM1MjMuMjQ5IDczNi4zODkgNTMzLjIwNCA3NDYuMzQ1IDU0NS41MTcgNzQ2LjM0NUg2NDUuMzMzQzY1Ny42NDcgNzQ2LjM0NSA2NjcuNjAyIDczNi4zODkgNjY3LjYwMiA3MjQuMDc2VjQ2My41MzNaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNNDUzLjU2MyAyNzdINDQ4LjcxNkgxOTAuMjY5QzE3Ny45NTUgMjc3IDE2OCAyODYuOTU1IDE2OCAyOTkuMjY5VjM4OS42NTNDMTY4IDQwMS45NjcgMTc3Ljk1NSA0MTEuOTIyIDE5MC4yNjkgNDExLjkyMkgyNTAuOTE4SDI3NS4wMjFWNDM4LjY0NFY3MjQuNzMxQzI3NS4wMjEgNzM3LjA0NSAyODQuOTc2IDc0NyAyOTcuMjg5IDc0N0gzOTIuMTI4QzQwNC40NDEgNzQ3IDQxNC4zOTYgNzM3LjA0NSA0MTQuMzk2IDcyNC43MzFWNDM4LjY0NFY0MzYuMTU2VjQxMS45MjJINDM4LjQ5OUg0NDguMzIzSDQ1My4xN0M0OTAuMzcyIDQxMS45MjIgNTIwLjYzMSAzODEuNjYzIDUyMC42MzEgMzQ0LjQ2MUM1MjEuMDI0IDMwNy4yNTkgNDkwLjc2NSAyNzcgNDUzLjU2MyAyNzdaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNNjY3LjczNSA0NjMuNTMzVjY0NS4zNUM2NzIuNzEzIDY0Ni41MjkgNjc3LjgyMSA2NDcuNDQ2IDY4My4wNjEgNjQ4LjIzMkM2OTAuMzk3IDY0OS4yOCA2OTcuOTk0IDY0OS45MzUgNzA1LjU5MiA2NTAuMDY2QzcwNS45ODUgNjUwLjA2NiA3MDYuMzc4IDY1MC4wNjYgNzA2LjkwMiA2NTAuMDY2VjUwNS40NUM2ODUuMDI2IDUwNC4wMDkgNjY3LjczNSA0ODUuODAxIDY2Ny43MzUgNDYzLjUzM1oiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl80MDhfMjI1KSIvPgo8cGF0aCBkPSJNNzA5Ljc4MSAyNzdDNjA2LjgyMiAyNzcgNTIzLjI0OSAzNjAuNTczIDUyMy4yNDkgNDYzLjUzM0M1MjMuMjQ5IDU1Mi4wODQgNTg0Ljk0NiA2MjYuMjI1IDY2Ny43MzMgNjQ1LjM1VjQ2My41MzNDNjY3LjczMyA0NDAuMzQ3IDY4Ni41OTYgNDIxLjQ4NCA3MDkuNzgxIDQyMS40ODRDNzMyLjk2NyA0MjEuNDg0IDc1MS44MyA0NDAuMzQ3IDc1MS44MyA0NjMuNTMzQzc1MS44MyA0ODMuMDUxIDczOC42IDQ5OS40MjUgNzIwLjUyMyA1MDQuMTRDNzE3LjExNyA1MDUuMDU3IDcxMy40NDkgNTA1LjU4MSA3MDkuNzgxIDUwNS41ODFWNjUwLjA2NkM3MTMuNDQ5IDY1MC4wNjYgNzE2Ljk4NiA2NDkuOTM1IDcyMC41MjMgNjQ5LjgwNEM4MTguNTA1IDY0NC4xNzEgODk2LjMxNCA1NjIuOTU2IDg5Ni4zMTQgNDYzLjUzM0M4OTYuNDQ1IDM2MC41NzMgODEyLjg3MiAyNzcgNzA5Ljc4MSAyNzdaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNNzA5Ljc4IDY1MC4wNjZWNTA1LjU4MUM3MDguNzMzIDUwNS41ODEgNzA3LjgxNiA1MDUuNTgxIDcwNi43NjggNTA1LjQ1VjY1MC4wNjZDNzA3LjgxNiA2NTAuMDY2IDcwOC44NjQgNjUwLjA2NiA3MDkuNzggNjUwLjA2NloiIGZpbGw9IndoaXRlIi8+CjwvZz4KPC9nPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzQwOF8yMjUiIHgxPSI3MDkuODQ0IiB5MT0iNTU2LjgyNyIgeDI9IjY2Ny43NTMiIHkyPSI1NTYuODI3IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CjxzdG9wIHN0b3AtY29sb3I9IndoaXRlIi8+CjxzdG9wIG9mZnNldD0iMC45NjY3IiBzdG9wLWNvbG9yPSJ3aGl0ZSIgc3RvcC1vcGFjaXR5PSIwLjMyMzMiLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSJ3aGl0ZSIgc3RvcC1vcGFjaXR5PSIwLjMiLz4KPC9saW5lYXJHcmFkaWVudD4KPGNsaXBQYXRoIGlkPSJjbGlwMF80MDhfMjI1Ij4KPHJlY3Qgd2lkdGg9IjcyOC40NDgiIGhlaWdodD0iNDcwIiBmaWxsPSJ3aGl0ZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTY4IDI3NykiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K",this._readyState="undefined"===typeof window||"undefined"===typeof document?i.WalletReadyState.Unsupported:i.WalletReadyState.NotDetected,this._disconnected=()=>{const t=this._wallet;t&&(t.off("disconnect",this._disconnected),this._wallet=null,this._publicKey=null,this.emit("error",new i.WalletDisconnectedError),this.emit("disconnect"))},this._connecting=!1,this._wallet=null,this._publicKey=null,this._readyState!==i.WalletReadyState.Unsupported&&(0,i.scopePollingDetectionStrategy)(()=>{var t;return!!(null===(t=window.solana)||void 0===t?void 0:t.isTokenPocket)&&(this._readyState=i.WalletReadyState.Installed,this.emit("readyStateChange",this._readyState),!0)})}get publicKey(){return this._publicKey}get connecting(){return this._connecting}get connected(){var t;return!!(null===(t=this._wallet)||void 0===t?void 0:t.isConnected)}get readyState(){return this._readyState}connect(){return r(this,void 0,void 0,(function*(){try{if(this.connected||this.connecting)return;if(this._readyState!==i.WalletReadyState.Installed)throw new i.WalletNotReadyError;this._connecting=!0;const e=window.solana;try{yield e.connect()}catch(t){throw new i.WalletConnectionError(null===t||void 0===t?void 0:t.message,t)}if(!e.publicKey)throw new i.WalletAccountError;let n;try{n=new o.PublicKey(e.publicKey.toBytes())}catch(t){throw new i.WalletPublicKeyError(null===t||void 0===t?void 0:t.message,t)}e.on("disconnect",this._disconnected),this._wallet=e,this._publicKey=n,this.emit("connect",n)}catch(t){throw this.emit("error",t),t}finally{this._connecting=!1}}))}disconnect(){return r(this,void 0,void 0,(function*(){const t=this._wallet;t&&(t.off("disconnect",this._disconnected),this._wallet=null,this._publicKey=null,this.emit("disconnect"))}))}signTransaction(t){return r(this,void 0,void 0,(function*(){try{const n=this._wallet;if(!n)throw new i.WalletNotConnectedError;try{return(yield n.signTransaction(t))||t}catch(e){throw new i.WalletSignTransactionError(null===e||void 0===e?void 0:e.message,e)}}catch(e){throw this.emit("error",e),e}}))}signAllTransactions(t){return r(this,void 0,void 0,(function*(){try{const n=this._wallet;if(!n)throw new i.WalletNotConnectedError;try{return(yield n.signAllTransactions(t))||t}catch(e){throw new i.WalletSignTransactionError(null===e||void 0===e?void 0:e.message,e)}}catch(e){throw this.emit("error",e),e}}))}signMessage(t){return r(this,void 0,void 0,(function*(){try{const n=this._wallet;if(!n)throw new i.WalletNotConnectedError;try{const{signature:e}=yield n.signMessage(t);return e}catch(e){throw new i.WalletSignTransactionError(null===e||void 0===e?void 0:e.message,e)}}catch(e){throw this.emit("error",e),e}}))}}e.TokenPocketWalletAdapter=s},ab36:function(t,e,n){var r=n("861d"),i=n("9112");t.exports=function(t,e){r(e)&&"cause"in e&&i(t,"cause",e.cause)}},ab52:function(t,e,n){(function(e){var r=n("566b"),i=function(){},o=function(t){return t.setHeader&&"function"===typeof t.abort},s=function(t){return t.stdio&&Array.isArray(t.stdio)&&3===t.stdio.length},a=function(t,n,u){if("function"===typeof n)return a(t,null,n);n||(n={}),u=r(u||i);var c=t._writableState,l=t._readableState,h=n.readable||!1!==n.readable&&t.readable,d=n.writable||!1!==n.writable&&t.writable,f=!1,p=function(){t.writable||m()},m=function(){d=!1,h||u.call(t)},g=function(){h=!1,d||u.call(t)},y=function(e){u.call(t,e?new Error("exited with error code: "+e):null)},b=function(e){u.call(t,e)},v=function(){e.nextTick(_)},_=function(){if(!f)return(!h||l&&l.ended&&!l.destroyed)&&(!d||c&&c.ended&&!c.destroyed)?void 0:u.call(t,new Error("premature close"))},w=function(){t.req.on("finish",m)};return o(t)?(t.on("complete",m),t.on("abort",v),t.req?w():t.on("request",w)):d&&!c&&(t.on("end",p),t.on("close",p)),s(t)&&t.on("exit",y),t.on("end",g),t.on("finish",m),!1!==n.error&&t.on("error",b),t.on("close",v),function(){f=!0,t.removeListener("complete",m),t.removeListener("abort",v),t.removeListener("request",w),t.req&&t.req.removeListener("finish",m),t.removeListener("end",p),t.removeListener("close",p),t.removeListener("finish",m),t.removeListener("exit",y),t.removeListener("end",g),t.removeListener("error",b),t.removeListener("close",v)}};t.exports=a}).call(this,n("4362"))},abc5:function(t,e,n){"use strict";(function(t){function r(){return i().__VUE_DEVTOOLS_GLOBAL_HOOK__}function i(){return"undefined"!==typeof navigator&&"undefined"!==typeof window?window:"undefined"!==typeof t?t:{}}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o}));const o="function"===typeof Proxy}).call(this,n("c8ba"))},ac0c:function(t,e,n){"use strict";(function(e){function n(t,n){var o=this,a=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return a||u?(n?n(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(s,this,t)):e.nextTick(s,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!n&&t?o._writableState?o._writableState.errorEmitted?e.nextTick(i,o):(o._writableState.errorEmitted=!0,e.nextTick(r,o,t)):e.nextTick(r,o,t):n?(e.nextTick(i,o),n(t)):e.nextTick(i,o)})),this)}function r(t,e){s(t,e),i(t)}function i(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function s(t,e){t.emit("error",e)}function a(t,e){var n=t._readableState,r=t._writableState;n&&n.autoDestroy||r&&r.autoDestroy?t.destroy(e):t.emit("error",e)}t.exports={destroy:n,undestroy:o,errorOrDestroy:a}}).call(this,n("4362"))},ac4f:function(t,e,n){var r="undefined"!==typeof JSON?JSON:n("76cb");t.exports=function(t,e){e||(e={}),"function"===typeof e&&(e={cmp:e});var n=e.space||"";"number"===typeof n&&(n=Array(n+1).join(" "));var s="boolean"===typeof e.cycles&&e.cycles,a=e.replacer||function(t,e){return e},u=e.cmp&&function(t){return function(e){return function(n,r){var i={key:n,value:e[n]},o={key:r,value:e[r]};return t(i,o)}}}(e.cmp),c=[];return function t(e,l,h,d){var f=n?"\n"+new Array(d+1).join(n):"",p=n?": ":":";if(h&&h.toJSON&&"function"===typeof h.toJSON&&(h=h.toJSON()),h=a.call(e,l,h),void 0!==h){if("object"!==typeof h||null===h)return r.stringify(h);if(i(h)){for(var m=[],g=0;g0;return l(t,s,a,(function(t){r||(r=t),t&&o.forEach(h),s||(o.forEach(h),i(r))}))}));return e.reduce(d)}t.exports=p},acc3:function(t,e,n){"use strict";(function(t){var r=this&&this.__read||function(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{while((void 0===e||e-- >0)&&!(r=o.next()).done)s.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.isZeroAddress=e.zeroAddress=e.importPublic=e.privateToAddress=e.privateToPublic=e.publicToAddress=e.pubToAddress=e.isValidPublic=e.isValidPrivate=e.generateAddress2=e.generateAddress=e.isValidChecksumAddress=e.toChecksumAddress=e.isValidAddress=e.Account=void 0;var o=i(n("f654")),s=n("ce43"),a=n("2213"),u=n("b332"),c=n("510b"),l=n("0c30"),h=n("8463"),d=n("29b1"),f=n("6a9d"),p=function(){function t(t,e,n,r){void 0===t&&(t=new s.BN(0)),void 0===e&&(e=new s.BN(0)),void 0===n&&(n=c.KECCAK256_RLP),void 0===r&&(r=c.KECCAK256_NULL),this.nonce=t,this.balance=e,this.stateRoot=n,this.codeHash=r,this._validate()}return t.fromAccountData=function(e){var n=e.nonce,r=e.balance,i=e.stateRoot,o=e.codeHash;return new t(n?new s.BN((0,l.toBuffer)(n)):void 0,r?new s.BN((0,l.toBuffer)(r)):void 0,i?(0,l.toBuffer)(i):void 0,o?(0,l.toBuffer)(o):void 0)},t.fromRlpSerializedAccount=function(t){var e=s.rlp.decode(t);if(!Array.isArray(e))throw new Error("Invalid serialized account input. Must be array");return this.fromValuesArray(e)},t.fromValuesArray=function(e){var n=r(e,4),i=n[0],o=n[1],a=n[2],u=n[3];return new t(new s.BN(i),new s.BN(o),a,u)},t.prototype._validate=function(){if(this.nonce.lt(new s.BN(0)))throw new Error("nonce must be greater than zero");if(this.balance.lt(new s.BN(0)))throw new Error("balance must be greater than zero");if(32!==this.stateRoot.length)throw new Error("stateRoot must have a length of 32");if(32!==this.codeHash.length)throw new Error("codeHash must have a length of 32")},t.prototype.raw=function(){return[(0,f.bnToUnpaddedBuffer)(this.nonce),(0,f.bnToUnpaddedBuffer)(this.balance),this.stateRoot,this.codeHash]},t.prototype.serialize=function(){return s.rlp.encode(this.raw())},t.prototype.isContract=function(){return!this.codeHash.equals(c.KECCAK256_NULL)},t.prototype.isEmpty=function(){return this.balance.isZero()&&this.nonce.isZero()&&this.codeHash.equals(c.KECCAK256_NULL)},t}();e.Account=p;var m=function(t){try{(0,d.assertIsString)(t)}catch(e){return!1}return/^0x[0-9a-fA-F]{40}$/.test(t)};e.isValidAddress=m;var g=function(t,e){(0,d.assertIsHexString)(t);var n=(0,u.stripHexPrefix)(t).toLowerCase(),r="";if(e){var i=(0,f.toType)(e,f.TypeOutput.BN);r=i.toString()+"0x"}for(var o=(0,h.keccakFromString)(r+n).toString("hex"),s="0x",a=0;a=8?s+=n[a].toUpperCase():s+=n[a];return s};e.toChecksumAddress=g;var y=function(t,n){return(0,e.isValidAddress)(t)&&(0,e.toChecksumAddress)(t,n)===t};e.isValidChecksumAddress=y;var b=function(e,n){(0,d.assertIsBuffer)(e),(0,d.assertIsBuffer)(n);var r=new s.BN(n);return r.isZero()?(0,h.rlphash)([e,null]).slice(-20):(0,h.rlphash)([e,t.from(r.toArray())]).slice(-20)};e.generateAddress=b;var v=function(e,n,r){(0,d.assertIsBuffer)(e),(0,d.assertIsBuffer)(n),(0,d.assertIsBuffer)(r),(0,o.default)(20===e.length),(0,o.default)(32===n.length);var i=(0,h.keccak256)(t.concat([t.from("ff","hex"),e,n,(0,h.keccak256)(r)]));return i.slice(-20)};e.generateAddress2=v;var _=function(t){return(0,a.privateKeyVerify)(t)};e.isValidPrivate=_;var w=function(e,n){return void 0===n&&(n=!1),(0,d.assertIsBuffer)(e),64===e.length?(0,a.publicKeyVerify)(t.concat([t.from([4]),e])):!!n&&(0,a.publicKeyVerify)(e)};e.isValidPublic=w;var M=function(e,n){return void 0===n&&(n=!1),(0,d.assertIsBuffer)(e),n&&64!==e.length&&(e=t.from((0,a.publicKeyConvert)(e,!1).slice(1))),(0,o.default)(64===e.length),(0,h.keccak)(e).slice(-20)};e.pubToAddress=M,e.publicToAddress=e.pubToAddress;var S=function(e){return(0,d.assertIsBuffer)(e),t.from((0,a.publicKeyCreate)(e,!1)).slice(1)};e.privateToPublic=S;var A=function(t){return(0,e.publicToAddress)((0,e.privateToPublic)(t))};e.privateToAddress=A;var k=function(e){return(0,d.assertIsBuffer)(e),64!==e.length&&(e=t.from((0,a.publicKeyConvert)(e,!1).slice(1))),e};e.importPublic=k;var E=function(){var t=20,e=(0,l.zeros)(t);return(0,l.bufferToHex)(e)};e.zeroAddress=E;var L=function(t){try{(0,d.assertIsString)(t)}catch(r){return!1}var n=(0,e.zeroAddress)();return n===t};e.isZeroAddress=L}).call(this,n("b639").Buffer)},acfb:function(t,e){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},ad25:function(t,e,n){var r=n("2aee"),i=n("11dc"),o=n("98e6"),s=n("f460"),a=n("83d5"),u=n("0106"),c=n("52917"),l=n("a958"),h=n("8707").Buffer;function d(t,e){var n=t.modulus.byteLength(),r=e.length,c=o("sha1").update(h.alloc(0)).digest(),l=c.length,d=2*l;if(r>n-d-2)throw new Error("message too long");var f=h.alloc(n-r-d-2),p=n-l-1,m=i(l),g=a(h.concat([c,f,h.alloc(1,1),e],p),s(m,p)),y=a(m,s(g,l));return new u(h.concat([h.alloc(1),y,g],n))}function f(t,e,n){var r,i=e.length,o=t.modulus.byteLength();if(i>o-11)throw new Error("message too long");return r=n?h.alloc(o-i-3,255):p(o-i-3),new u(h.concat([h.from([0,n?1:2]),r,h.alloc(1),e],o))}function p(t){var e,n=h.allocUnsafe(t),r=0,o=i(2*t),s=0;while(r=0)throw new Error("data too long for modulus")}return n?l(o,s):c(o,s)}},ad71:function(t,e,n){"use strict";(function(e,r){var i=n("966d");t.exports=M;var o,s=n("e3db");M.ReadableState=w;n("faa1").EventEmitter;var a=function(t,e){return t.listeners(e).length},u=n("429b"),c=n("8707").Buffer,l=e.Uint8Array||function(){};function h(t){return c.from(t)}function d(t){return c.isBuffer(t)||t instanceof l}var f=Object.create(n("3a7c"));f.inherits=n("3fb5");var p=n(13),m=void 0;m=p&&p.debuglog?p.debuglog("stream"):function(){};var g,y=n("5e1a"),b=n("4681");f.inherits(M,u);var v=["error","close","destroy","pause","resume"];function _(t,e,n){if("function"===typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?s(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}function w(t,e){o=o||n("b19a"),t=t||{};var r=e instanceof o;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,s=t.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(s||0===s)?s:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new y,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(g||(g=n("7d72").StringDecoder),this.decoder=new g(t.encoding),this.encoding=t.encoding)}function M(t){if(o=o||n("b19a"),!(this instanceof M))return new M(t);this._readableState=new w(t,this),this.readable=!0,t&&("function"===typeof t.read&&(this._read=t.read),"function"===typeof t.destroy&&(this._destroy=t.destroy)),u.call(this)}function S(t,e,n,r,i){var o,s=t._readableState;null===e?(s.reading=!1,O(t,s)):(i||(o=k(s,e)),o?t.emit("error",o):s.objectMode||e&&e.length>0?("string"===typeof e||s.objectMode||Object.getPrototypeOf(e)===c.prototype||(e=h(e)),r?s.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):A(t,s,e,!0):s.ended?t.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!n?(e=s.decoder.write(e),s.objectMode||0!==e.length?A(t,s,e,!1):j(t,s)):A(t,s,e,!1))):r||(s.reading=!1));return E(s)}function A(t,e,n,r){e.flowing&&0===e.length&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,r?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&x(t)),j(t,e)}function k(t,e){var n;return d(e)||"string"===typeof e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function E(t){return!t.ended&&(t.needReadable||t.length=L?t=L:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function T(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=D(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function O(t,e){if(!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,x(t)}}function x(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(m("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?i.nextTick(I,t):I(t))}function I(t){m("emit readable"),t.emit("readable"),B(t)}function j(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(N,t,e))}function N(t,e){var n=e.length;while(!e.reading&&!e.flowing&&!e.ended&&e.length=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=U(t,e.buffer,e.decoder),n);var n}function U(t,e,n){var r;return to.length?o.length:t;if(s===o.length?i+=o:i+=o.slice(0,t),t-=s,0===t){s===o.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(s));break}++r}return e.length-=r,i}function H(t,e){var n=c.allocUnsafe(t),r=e.head,i=1;r.data.copy(n),t-=r.data.length;while(r=r.next){var o=r.data,s=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,s),t-=s,0===t){s===o.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(s));break}++i}return e.length-=i,n}function F(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,i.nextTick(q,e,t))}function q(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function V(t,e){for(var n=0,r=t.length;n=e.highWaterMark||e.ended))return m("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?F(this):x(this),null;if(t=T(t,e),0===t&&e.ended)return 0===e.length&&F(this),null;var r,i=e.needReadable;return m("need readable",i),(0===e.length||e.length-t0?z(t,e):null,null===r?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&F(this)),null!==r&&this.emit("data",r),r},M.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},M.prototype.pipe=function(t,e){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t);break}o.pipesCount+=1,m("pipe count=%d opts=%j",o.pipesCount,e);var s=(!e||!1!==e.end)&&t!==r.stdout&&t!==r.stderr,u=s?l:w;function c(t,e){m("onunpipe"),t===n&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,f())}function l(){m("onend"),t.end()}o.endEmitted?i.nextTick(u):n.once("end",u),t.on("unpipe",c);var h=P(n);t.on("drain",h);var d=!1;function f(){m("cleanup"),t.removeListener("close",b),t.removeListener("finish",v),t.removeListener("drain",h),t.removeListener("error",y),t.removeListener("unpipe",c),n.removeListener("end",l),n.removeListener("end",w),n.removeListener("data",g),d=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||h()}var p=!1;function g(e){m("ondata"),p=!1;var r=t.write(e);!1!==r||p||((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==V(o.pipes,t))&&!d&&(m("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,p=!0),n.pause())}function y(e){m("onerror",e),w(),t.removeListener("error",y),0===a(t,"error")&&t.emit("error",e)}function b(){t.removeListener("finish",v),w()}function v(){m("onfinish"),t.removeListener("close",b),w()}function w(){m("unpipe"),n.unpipe(t)}return n.on("data",g),_(t,"error",y),t.once("close",b),t.once("finish",v),t.emit("pipe",n),o.flowing||(m("pipe resume"),n.resume()),t},M.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o=2&&e%10<=4&&(e%100<10||e%100>=20)?n[1]:n[2]}function n(t,n,r){var i={ss:n?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:n?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:n?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};return"m"===r?n?"хвилина":"хвилину":"h"===r?n?"година":"годину":t+" "+e(i[r],+t)}function r(t,e){var n,r={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===t?r["nominative"].slice(1,7).concat(r["nominative"].slice(0,1)):t?(n=/(\[[ВвУу]\]) ?dddd/.test(e)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(e)?"genitive":"nominative",r[n][t.day()]):r["nominative"]}function i(t){return function(){return t+"о"+(11===this.hours()?"б":"")+"] LT"}}var o=t.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:r,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:i("[Сьогодні "),nextDay:i("[Завтра "),lastDay:i("[Вчора "),nextWeek:i("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return i("[Минулої] dddd [").call(this);case 1:case 2:case 4:return i("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:n,m:n,mm:n,h:"годину",hh:n,d:"день",dd:n,M:"місяць",MM:n,y:"рік",yy:n},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(t){return/^(дня|вечора)$/.test(t)},meridiem:function(t,e,n){return t<4?"ночі":t<12?"ранку":t<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t+"-й";case"D":return t+"-го";default:return t}},week:{dow:1,doy:7}});return o}))},ae84:function(t,e,n){var r=n("8707").Buffer,i=n("f576");function o(t,e,n,o){if(r.isBuffer(t)||(t=r.from(t,"binary")),e&&(r.isBuffer(e)||(e=r.from(e,"binary")),8!==e.length))throw new RangeError("salt should be Buffer with 8 byte length");var s=n/8,a=r.alloc(s),u=r.alloc(o||0),c=r.alloc(0);while(s>0||o>0){var l=new i;l.update(c),l.update(t),e&&l.update(e),c=l.digest();var h=0;if(s>0){var d=a.length-s;h=Math.min(s,c.length),c.copy(a,d,0,h),s-=h}if(h0){var f=u.length-o,p=Math.min(o,c.length-h);c.copy(u,f,h,h+p),o-=p}}return c.fill(0),{key:a,iv:u}}t.exports=o},aeb0:function(t,e,n){var r=n("9bf2").f;t.exports=function(t,e,n){n in t||r(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},aed9:function(t,e,n){var r=n("83ab"),i=n("d039");t.exports=r&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},af7f:function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return c}));var r=n("20a4");function i(t,...e){return e.reduce((e,n)=>(t.hasOwnProperty(n)&&(e[n]=t[n]),e),{})}const o=setTimeout,s=clearTimeout;function a(t,e){e.useNativeTimers?(t.setTimeoutFn=o.bind(r["a"]),t.clearTimeoutFn=s.bind(r["a"])):(t.setTimeoutFn=setTimeout.bind(r["a"]),t.clearTimeoutFn=clearTimeout.bind(r["a"]))}const u=1.33;function c(t){return"string"===typeof t?l(t):Math.ceil((t.byteLength||t.size)*u)}function l(t){let e=0,n=0;for(let r=0,i=t.length;r=57344?n+=3:(r++,n+=4);return n}},afec:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n("4260"),e)},b007:function(t,e,n){"use strict";function r(t){if(t)return i(t)}function i(t){for(var e in r.prototype)t[e]=r.prototype[e];return t}n.d(e,"a",(function(){return r})),r.prototype.on=r.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},r.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+t];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var i=0;i(t=new r(t,n),e=new r(e,n),t.intersects(e));t.exports=i},b19a:function(t,e,n){"use strict";var r=n("966d"),i=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=h;var o=Object.create(n("3a7c"));o.inherits=n("3fb5");var s=n("ad71"),a=n("dc14");o.inherits(h,s);for(var u=i(a.prototype),c=0;c28&&a%2===1||1===a||28===a)&&(c=t.from(r),c[0]|=128),(0,o.bufferToHex)(t.concat([(0,o.setLengthLeft)(n,32),(0,o.setLengthLeft)(c,32)]))};e.toCompactSig=p;var m=function(t){var e,n,r,i=(0,o.toBuffer)(t);if(i.length>=65)e=i.slice(0,32),n=i.slice(32,64),r=(0,o.bufferToInt)(i.slice(64));else{if(64!==i.length)throw new Error("Invalid signature length");e=i.slice(0,32),n=i.slice(32,64),r=(0,o.bufferToInt)(i.slice(32,33))>>7,n[0]&=127}return r<27&&(r+=27),{v:r,r:e,s:n}};e.fromRpcSig=m;var g=function(t,e,n,r,o){void 0===r&&(r=!0);var s=new i.BN("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),a=new i.BN("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);if(32!==e.length||32!==n.length)return!1;if(!h(l(t,o)))return!1;var u=new i.BN(e),c=new i.BN(n);return!(u.isZero()||u.gt(a)||c.isZero()||c.gt(a))&&(!r||1!==c.cmp(s))};e.isValidSignature=g;var y=function(e){(0,a.assertIsBuffer)(e);var n=t.from("Ethereum Signed Message:\n".concat(e.length),"utf-8");return(0,s.keccak)(t.concat([n,e]))};e.hashPersonalMessage=y}).call(this,n("b639").Buffer)},b29d:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(t){return"ຕອນແລງ"===t},meridiem:function(t,e,n){return t<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(t){return"ທີ່"+t}});return e}))},b332:function(t,e,n){"use strict";(function(t){function n(t){if("string"!==typeof t)throw new Error("[isHexPrefixed] input must be type 'string', received type ".concat(typeof t));return"0"===t[0]&&"x"===t[1]}Object.defineProperty(e,"__esModule",{value:!0}),e.isHexString=e.getKeys=e.fromAscii=e.fromUtf8=e.toAscii=e.arrayContainsArray=e.getBinarySize=e.padToEven=e.stripHexPrefix=e.isHexPrefixed=void 0,e.isHexPrefixed=n;var r=function(t){if("string"!==typeof t)throw new Error("[stripHexPrefix] input must be type 'string', received ".concat(typeof t));return n(t)?t.slice(2):t};function i(t){var e=t;if("string"!==typeof e)throw new Error("[padToEven] value must be type 'string', received ".concat(typeof e));return e.length%2&&(e="0".concat(e)),e}function o(e){if("string"!==typeof e)throw new Error("[getBinarySize] method requires input type 'string', recieved ".concat(typeof e));return t.byteLength(e,"utf8")}function s(t,e,n){if(!0!==Array.isArray(t))throw new Error("[arrayContainsArray] method requires input 'superset' to be an array, got type '".concat(typeof t,"'"));if(!0!==Array.isArray(e))throw new Error("[arrayContainsArray] method requires input 'subset' to be an array, got type '".concat(typeof e,"'"));return e[n?"some":"every"]((function(e){return t.indexOf(e)>=0}))}function a(t){var e="",n=0,r=t.length;for("0x"===t.substring(0,2)&&(n=2);n0?r:n)(e)}},b469:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration function e(t,e,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?i[n][0]:i[n][1]}var n=t.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,w:e,ww:"%d Wochen",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return n}))},b4b6:function(t,e,n){"use strict";function r(t,e,n){return e<=t&&t<=n}function i(t){if(void 0===t)return{};if(t===Object(t))return t;throw TypeError("Could not convert argument to dictionary")}function o(t){var e=String(t),n=e.length,r=0,i=[];while(r57343)i.push(o);else if(56320<=o&&o<=57343)i.push(65533);else if(55296<=o&&o<=56319)if(r===n-1)i.push(65533);else{var s=t.charCodeAt(r+1);if(56320<=s&&s<=57343){var a=1023&o,u=1023&s;i.push(65536+(a<<10)+u),r+=1}else i.push(65533)}r+=1}return i}function s(t){for(var e="",n=0;n>10),56320+(1023&r)))}return e}n.r(e),n.d(e,"TextEncoder",(function(){return m})),n.d(e,"TextDecoder",(function(){return p}));var a=-1;function u(t){this.tokens=[].slice.call(t)}u.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():a},prepend:function(t){if(Array.isArray(t)){var e=t;while(e.length)this.tokens.unshift(e.pop())}else this.tokens.unshift(t)},push:function(t){if(Array.isArray(t)){var e=t;while(e.length)this.tokens.push(e.shift())}else this.tokens.push(t)}};var c=-1;function l(t,e){if(t)throw TypeError("Decoder error");return e||65533}function h(){}function d(){}h.prototype={handler:function(t,e){}},d.prototype={handler:function(t,e){}};var f="utf-8";function p(t,e){if(!(this instanceof p))return new p(t,e);if(t=void 0!==t?String(t).toLowerCase():f,t!==f)throw new Error("Encoding not supported. Only utf-8 is supported");e=i(e),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=Boolean(e["fatal"]),this._ignoreBOM=Boolean(e["ignoreBOM"]),Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}function m(t,e){if(!(this instanceof m))return new m(t,e);if(t=void 0!==t?String(t).toLowerCase():f,t!==f)throw new Error("Encoding not supported. Only utf-8 is supported");e=i(e),this._streaming=!1,this._encoder=null,this._options={fatal:Boolean(e["fatal"])},Object.defineProperty(this,"encoding",{value:"utf-8"})}function g(t){var e=t.fatal,n=0,i=0,o=0,s=128,u=191;this.handler=function(t,h){if(h===a&&0!==o)return o=0,l(e);if(h===a)return c;if(0===o){if(r(h,0,127))return h;if(r(h,194,223))o=1,n=h-192;else if(r(h,224,239))224===h&&(s=160),237===h&&(u=159),o=2,n=h-224;else{if(!r(h,240,244))return l(e);240===h&&(s=144),244===h&&(u=143),o=3,n=h-240}return n<<=6*o,null}if(!r(h,s,u))return n=o=i=0,s=128,u=191,t.prepend(h),l(e);if(s=128,u=191,i+=1,n+=h-128<<6*(o-i),i!==o)return null;var d=n;return n=o=i=0,d}}function y(t){t.fatal;this.handler=function(t,e){if(e===a)return c;if(r(e,0,127))return e;var n,i;r(e,128,2047)?(n=1,i=192):r(e,2048,65535)?(n=2,i=224):r(e,65536,1114111)&&(n=3,i=240);var o=[(e>>6*n)+i];while(n>0){var s=e>>6*(n-1);o.push(128|63&s),n-=1}return o}}p.prototype={decode:function(t,e){var n;n="object"===typeof t&&t instanceof ArrayBuffer?new Uint8Array(t):"object"===typeof t&&"buffer"in t&&t.buffer instanceof ArrayBuffer?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):new Uint8Array(0),e=i(e),this._streaming||(this._decoder=new g({fatal:this._fatal}),this._BOMseen=!1),this._streaming=Boolean(e["stream"]);var r,o=new u(n),a=[];while(!o.endOfStream()){if(r=this._decoder.handler(o,o.read()),r===c)break;null!==r&&(Array.isArray(r)?a.push.apply(a,r):a.push(r))}if(!this._streaming){do{if(r=this._decoder.handler(o,o.read()),r===c)break;null!==r&&(Array.isArray(r)?a.push.apply(a,r):a.push(r))}while(!o.endOfStream());this._decoder=null}return a.length&&(-1===["utf-8"].indexOf(this.encoding)||this._ignoreBOM||this._BOMseen||(65279===a[0]?(this._BOMseen=!0,a.shift()):this._BOMseen=!0)),s(a)}},m.prototype={encode:function(t,e){t=t?String(t):"",e=i(e),this._streaming||(this._encoder=new y(this._options)),this._streaming=Boolean(e["stream"]);var n,r=[],s=new u(o(t));while(!s.endOfStream()){if(n=this._encoder.handler(s,s.read()),n===c)break;Array.isArray(n)?r.push.apply(r,n):r.push(n)}if(!this._streaming){while(1){if(n=this._encoder.handler(s,s.read()),n===c)break;Array.isArray(n)?r.push.apply(r,n):r.push(n)}this._encoder=null}return new Uint8Array(r)}}},b4e8:function(t){t.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},b50d:function(t,e,n){"use strict";var r=n("c532"),i=n("467f"),o=n("7aac"),s=n("30b5"),a=n("83b9"),u=n("c345"),c=n("3934"),l=n("cafa"),h=n("7917"),d=n("fb60"),f=n("b68a");t.exports=function(t){return new Promise((function(e,n){var p,m=t.data,g=t.headers,y=t.responseType;function b(){t.cancelToken&&t.cancelToken.unsubscribe(p),t.signal&&t.signal.removeEventListener("abort",p)}r.isFormData(m)&&r.isStandardBrowserEnv()&&delete g["Content-Type"];var v=new XMLHttpRequest;if(t.auth){var _=t.auth.username||"",w=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";g.Authorization="Basic "+btoa(_+":"+w)}var M=a(t.baseURL,t.url);function S(){if(v){var r="getAllResponseHeaders"in v?u(v.getAllResponseHeaders()):null,o=y&&"text"!==y&&"json"!==y?v.response:v.responseText,s={data:o,status:v.status,statusText:v.statusText,headers:r,config:t,request:v};i((function(t){e(t),b()}),(function(t){n(t),b()}),s),v=null}}if(v.open(t.method.toUpperCase(),s(M,t.params,t.paramsSerializer),!0),v.timeout=t.timeout,"onloadend"in v?v.onloadend=S:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(S)},v.onabort=function(){v&&(n(new h("Request aborted",h.ECONNABORTED,t,v)),v=null)},v.onerror=function(){n(new h("Network Error",h.ERR_NETWORK,t,v,v)),v=null},v.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",r=t.transitional||l;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(new h(e,r.clarifyTimeoutError?h.ETIMEDOUT:h.ECONNABORTED,t,v)),v=null},r.isStandardBrowserEnv()){var A=(t.withCredentials||c(M))&&t.xsrfCookieName?o.read(t.xsrfCookieName):void 0;A&&(g[t.xsrfHeaderName]=A)}"setRequestHeader"in v&&r.forEach(g,(function(t,e){"undefined"===typeof m&&"content-type"===e.toLowerCase()?delete g[e]:v.setRequestHeader(e,t)})),r.isUndefined(t.withCredentials)||(v.withCredentials=!!t.withCredentials),y&&"json"!==y&&(v.responseType=t.responseType),"function"===typeof t.onDownloadProgress&&v.addEventListener("progress",t.onDownloadProgress),"function"===typeof t.onUploadProgress&&v.upload&&v.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(p=function(t){v&&(n(!t||t&&t.type?new d:t),v.abort(),v=null)},t.cancelToken&&t.cancelToken.subscribe(p),t.signal&&(t.signal.aborted?p():t.signal.addEventListener("abort",p))),m||(m=null);var k=f(M);k&&-1===["http","https","file"].indexOf(k)?n(new h("Unsupported protocol "+k+":",h.ERR_BAD_REQUEST,t)):v.send(m)}))}},b525:function(t,e,n){"use strict";var r=n("c3c0"),i=n("edc9"),o=n("da3e"),s=r.rotr64_hi,a=r.rotr64_lo,u=r.shr64_hi,c=r.shr64_lo,l=r.sum64,h=r.sum64_hi,d=r.sum64_lo,f=r.sum64_4_hi,p=r.sum64_4_lo,m=r.sum64_5_hi,g=r.sum64_5_lo,y=i.BlockHash,b=[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;y.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=b,this.W=new Array(160)}function _(t,e,n,r,i){var o=t&n^~t&i;return o<0&&(o+=4294967296),o}function w(t,e,n,r,i,o){var s=e&r^~e&o;return s<0&&(s+=4294967296),s}function M(t,e,n,r,i){var o=t&n^t&i^n&i;return o<0&&(o+=4294967296),o}function S(t,e,n,r,i,o){var s=e&r^e&o^r&o;return s<0&&(s+=4294967296),s}function A(t,e){var n=s(t,e,28),r=s(e,t,2),i=s(e,t,7),o=n^r^i;return o<0&&(o+=4294967296),o}function k(t,e){var n=a(t,e,28),r=a(e,t,2),i=a(e,t,7),o=n^r^i;return o<0&&(o+=4294967296),o}function E(t,e){var n=s(t,e,14),r=s(t,e,18),i=s(e,t,9),o=n^r^i;return o<0&&(o+=4294967296),o}function L(t,e){var n=a(t,e,14),r=a(t,e,18),i=a(e,t,9),o=n^r^i;return o<0&&(o+=4294967296),o}function D(t,e){var n=s(t,e,1),r=s(t,e,8),i=u(t,e,7),o=n^r^i;return o<0&&(o+=4294967296),o}function T(t,e){var n=a(t,e,1),r=a(t,e,8),i=c(t,e,7),o=n^r^i;return o<0&&(o+=4294967296),o}function O(t,e){var n=s(t,e,19),r=s(e,t,29),i=u(t,e,6),o=n^r^i;return o<0&&(o+=4294967296),o}function x(t,e){var n=a(t,e,19),r=a(e,t,29),i=c(t,e,6),o=n^r^i;return o<0&&(o+=4294967296),o}r.inherits(v,y),t.exports=v,v.blockSize=1024,v.outSize=512,v.hmacStrength=192,v.padLength=128,v.prototype._prepareBlock=function(t,e){for(var n=this.W,r=0;r<32;r++)n[r]=t[e+r];for(;r=11?t:t+12:"sonten"===e||"ndalu"===e?t+12:void 0},meridiem:function(t,e,n){return t<11?"enjing":t<15?"siyang":t<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}});return e}))},b5b7:function(t,e,n){(function(t,e){e(n("c1df"))})(0,(function(t){"use strict"; //! moment.js locale configuration var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,o=t.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,r){return t?/-MMM-/.test(r)?n[t.month()]:e[t.month()]:e},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"});return o}))},b5ca:function(t,e,n){"use strict";var r=n("b639").Buffer,i=n("3fb5"),o=n("93e6"),s=new Array(16),a=[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],u=[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],c=[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],l=[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],h=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0];function f(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(t,e){return t<>>32-e}function m(t,e,n,r,i,o,s,a){return p(t+(e^n^r)+o+s|0,a)+i|0}function g(t,e,n,r,i,o,s,a){return p(t+(e&n|~e&r)+o+s|0,a)+i|0}function y(t,e,n,r,i,o,s,a){return p(t+((e|~n)^r)+o+s|0,a)+i|0}function b(t,e,n,r,i,o,s,a){return p(t+(e&r|n&~r)+o+s|0,a)+i|0}function v(t,e,n,r,i,o,s,a){return p(t+(e^(n|~r))+o+s|0,a)+i|0}i(f,o),f.prototype._update=function(){for(var t=s,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);for(var n=0|this._a,r=0|this._b,i=0|this._c,o=0|this._d,f=0|this._e,_=0|this._a,w=0|this._b,M=0|this._c,S=0|this._d,A=0|this._e,k=0;k<80;k+=1){var E,L;k<16?(E=m(n,r,i,o,f,t[a[k]],h[0],c[k]),L=v(_,w,M,S,A,t[u[k]],d[0],l[k])):k<32?(E=g(n,r,i,o,f,t[a[k]],h[1],c[k]),L=b(_,w,M,S,A,t[u[k]],d[1],l[k])):k<48?(E=y(n,r,i,o,f,t[a[k]],h[2],c[k]),L=y(_,w,M,S,A,t[u[k]],d[2],l[k])):k<64?(E=b(n,r,i,o,f,t[a[k]],h[3],c[k]),L=g(_,w,M,S,A,t[u[k]],d[3],l[k])):(E=v(n,r,i,o,f,t[a[k]],h[4],c[k]),L=m(_,w,M,S,A,t[u[k]],d[4],l[k])),n=f,f=o,o=p(i,10),i=r,r=E,_=A,A=S,S=p(M,10),M=w,w=L}var D=this._b+i+S|0;this._b=this._c+o+A|0,this._c=this._d+f+_|0,this._d=this._e+n+w|0,this._e=this._a+r+M|0,this._a=D},f.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=r.alloc?r.alloc(20):new r(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t},t.exports=f},b5dd:function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"BUTTON_POSITION",(function(){return _})),n.d(e,"LOGIN_PROVIDER",(function(){return w})),n.d(e,"PAYMENT_PROVIDER",(function(){return b})),n.d(e,"TORUS_BUILD_ENV",(function(){return v})),n.d(e,"TorusInPageProvider",(function(){return V})),n.d(e,"default",(function(){return nt}));var r=n("9523"),i=n.n(r),o=n("64b9"),s=n("552f"),a=n("6517"),u=n("2d5d"),c=n("d553"),l=n("2ac5"),h=n("6f59"),d=n.n(h),f=n("5c7d"),p=n.n(f),m=n("694b"),g=n.n(m),y={errors:{disconnected:()=>"Torus: Lost connection to Torus.",permanentlyDisconnected:()=>"Torus: Disconnected from iframe. Page reload required.",unsupportedSync:t=>"Torus: The Torus Ethereum provider does not support synchronous methods like ".concat(t," without a callback parameter."),invalidDuplexStream:()=>"Must provide a Node.js-style duplex stream.",invalidOptions:t=>"Invalid options. Received: { maxEventListeners: ".concat(t,"}"),invalidRequestArgs:()=>"Expected a single, non-array, object argument.",invalidRequestMethod:()=>"'args.method' must be a non-empty string.",invalidRequestParams:()=>"'args.params' must be an object or array if provided.",invalidLoggerObject:()=>"'args.logger' must be an object if provided.",invalidLoggerMethod:t=>"'args.logger' must include required method '".concat(t,"'.")},info:{connected:t=>'Torus: Connected to chain with ID "'.concat(t,'".')},warnings:{}};const b={MOONPAY:"moonpay",WYRE:"wyre",RAMPNETWORK:"rampnetwork",XANPOOL:"xanpool",MERCURYO:"mercuryo",TRANSAK:"transak"},v={PRODUCTION:"production",DEVELOPMENT:"development",TESTING:"testing"},_={BOTTOM_LEFT:"bottom-left",TOP_LEFT:"top-left",BOTTOM_RIGHT:"bottom-right",TOP_RIGHT:"top-right"},w={GOOGLE:"google",FACEBOOK:"facebook",REDDIT:"reddit",DISCORD:"discord",TWITCH:"twitch",APPLE:"apple",LINE:"line",GITHUB:"github",KAKAO:"kakao",LINKEDIN:"linkedin",TWITTER:"twitter",WEIBO:"weibo",WECHAT:"wechat",EMAIL_PASSWORDLESS:"email_passwordless"},M={en:{embed:{continue:"Continue",actionRequired:"Authorization required",pendingAction:"Click continue to proceed with your request in a popup",cookiesRequired:"Cookies Required",enableCookies:"Please enable cookies in your browser preferences to access Torus",clickHere:"More Info"}},de:{embed:{continue:"Fortsetzen",actionRequired:"Autorisierung erforderlich",pendingAction:"Klicken Sie in einem Popup auf Weiter, um mit Ihrer Anfrage fortzufahren",cookiesRequired:"Cookies benötigt",enableCookies:"Bitte aktivieren Sie Cookies in Ihren Browsereinstellungen, um auf Torus zuzugreifen",clickHere:"Mehr Info"}},ja:{embed:{continue:"継続する",actionRequired:"認証が必要です",pendingAction:"続行をクリックして、ポップアップでリクエストを続行します",cookiesRequired:"必要なクッキー",enableCookies:"Torusにアクセスするには、ブラウザの設定でCookieを有効にしてください。",clickHere:"詳しくは"}},ko:{embed:{continue:"계속하다",actionRequired:"승인 필요",pendingAction:"팝업에서 요청을 진행하려면 계속을 클릭하십시오.",cookiesRequired:"쿠키 필요",enableCookies:"브라우저 환경 설정에서 쿠키를 활성화하여 Torus에 액세스하십시오.",clickHere:"더 많은 정보"}},zh:{embed:{continue:"继续",actionRequired:"需要授权",pendingAction:"单击继续以在弹出窗口中继续您的请求",cookiesRequired:"必填Cookie",enableCookies:"请在您的浏览器首选项中启用cookie以访问Torus。",clickHere:"更多信息"}}};var S={supportedVerifierList:[w.GOOGLE,w.REDDIT,w.DISCORD],api:"https://api.tor.us",translations:M,prodTorusUrl:"",localStorageKey:"torus-".concat(window.location.hostname)},A=p.a.getLogger("solana-embed");function k(){return(t,e,n)=>{"string"===typeof t.method&&t.method||(e.error=c["ethErrors"].rpc.invalidRequest({message:"The request 'method' must be a non-empty string.",data:t})),n(t=>{const{error:n}=e;return n?(A.error("Torus - RPC Error: ".concat(n.message),n),t()):t()})}}function E(t,e,n){let r='Torus: Lost connection to "'.concat(t,'".');null!==e&&void 0!==e&&e.stack&&(r+="\n".concat(e.stack)),A.warn(r),n&&n.listenerCount("error")>0&&n.emit("error",r)}const L=()=>Math.random().toString(36).slice(2),D=async t=>{let e,n;switch(t){case"testing":e="https://solana-testing.tor.us",n="debug";break;case"development":e="http://localhost:8080",n="debug";break;default:e="https://solana.tor.us",n="error";break}return{torusUrl:e,logLevel:n}},T=()=>{let t=window.navigator.language||"en-US";const e=t.split("-");return t=Object.prototype.hasOwnProperty.call(S.translations,e[0])?e[0]:"en",t},O={height:660,width:375},x={height:740,width:1315},I={height:700,width:1200},j={height:600,width:400};function N(t){let e;try{e=window[t];const n="__storage_test__";return e.setItem(n,n),e.removeItem(n),!0}catch(n){return n&&(22===n.code||1014===n.code||"QuotaExceededError"===n.name||"NS_ERROR_DOM_QUOTA_REACHED"===n.name)&&e&&0!==e.length}}function P(t){let{width:e,height:n}=t;const r=void 0!==window.screenLeft?window.screenLeft:window.screenX,i=void 0!==window.screenTop?window.screenTop:window.screenY,o=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:window.screen.width,s=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:window.screen.height,a=1,u=Math.abs((o-e)/2/a+r),c=Math.abs((s-n)/2/a+i),l="titlebar=0,toolbar=0,status=0,location=0,menubar=0,height=".concat(n/a,",width=").concat(e/a,",top=").concat(c,",left=").concat(u);return l}class C extends u["d"]{constructor(t,e){let{maxEventListeners:n=100,jsonRpcStreamName:r="provider"}=e;if(super(),i()(this,"isTorus",void 0),i()(this,"_rpcEngine",void 0),i()(this,"jsonRpcConnectionEvents",void 0),i()(this,"_state",void 0),!Object(l["duplex"])(t))throw new Error(y.errors.invalidDuplexStream());this.isTorus=!0,this.setMaxListeners(n),this._handleConnect=this._handleConnect.bind(this),this._handleDisconnect=this._handleDisconnect.bind(this),this._handleStreamDisconnect=this._handleStreamDisconnect.bind(this),this._rpcRequest=this._rpcRequest.bind(this),this._initializeState=this._initializeState.bind(this),this.request=this.request.bind(this),this.sendAsync=this.sendAsync.bind(this);const o=new u["c"];d()(t,o,t,this._handleStreamDisconnect.bind(this,"Torus")),o.ignoreStream("phishing");const a=Object(u["h"])();d()(a.stream,o.createStream(r),a.stream,this._handleStreamDisconnect.bind(this,"Torus RpcProvider"));const c=new u["b"];c.push(Object(u["f"])()),c.push(k()),c.push(Object(s["e"])({origin:location.origin})),c.push(a.middleware),this._rpcEngine=c,this.jsonRpcConnectionEvents=a.events}async request(t){if(!t||"object"!==typeof t||Array.isArray(t))throw c["ethErrors"].rpc.invalidRequest({message:y.errors.invalidRequestArgs(),data:t});const{method:e,params:n}=t;if("string"!==typeof e||0===e.length)throw c["ethErrors"].rpc.invalidRequest({message:y.errors.invalidRequestMethod(),data:t});if(void 0!==n&&!Array.isArray(n)&&("object"!==typeof n||null===n))throw c["ethErrors"].rpc.invalidRequest({message:y.errors.invalidRequestParams(),data:t});return new Promise((t,r)=>{this._rpcRequest({method:e,params:n},Object(u["i"])(t,r))})}send(t,e){this._rpcRequest(t,e)}sendAsync(t){return new Promise((e,n)=>{this._rpcRequest(t,Object(u["i"])(e,n))})}_handleStreamDisconnect(t,e){E(t,e,this),this._handleDisconnect(!1,e?e.message:void 0)}}const R=function(t,e,n){for(var r=arguments.length,i=new Array(r>3?r-3:0),o=3;o{n(...i),t.removeEventListener(e,s)};t.addEventListener(e,s)};async function Y(){return new Promise(t=>{"loading"!==document.readyState?t():R(document,"DOMContentLoaded",t)})}const B=t=>{const e=window.document.createElement("template"),n=t.trim();return e.innerHTML=n,e.content.firstChild};class z extends u["d"]{constructor(t){let{url:e,target:n,features:r}=t;super(),i()(this,"url",void 0),i()(this,"target",void 0),i()(this,"features",void 0),i()(this,"window",void 0),i()(this,"windowTimer",void 0),i()(this,"iClosedWindow",void 0),this.url=e,this.target=n||"_blank",this.features=r||P(I),this.window=void 0,this.windowTimer=void 0,this.iClosedWindow=!1,this._setupTimer()}_setupTimer(){this.windowTimer=Number(setInterval(()=>{this.window&&this.window.closed&&(clearInterval(this.windowTimer),this.iClosedWindow||this.emit("close"),this.iClosedWindow=!1,this.window=void 0),void 0===this.window&&clearInterval(this.windowTimer)},500))}open(){var t;return this.window=window.open(this.url.href,this.target,this.features),null!==(t=this.window)&&void 0!==t&&t.focus&&this.window.focus(),Promise.resolve()}close(){this.iClosedWindow=!0,this.window&&this.window.close()}redirect(t){t?window.location.replace(this.url.href):window.location.href=this.url.href}}function U(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function W(t){for(var e=1;e{this._state.isConnected=!0});const a=t=>{const{method:e,params:n}=t;if(e===s["b"].IFRAME_STATUS){const{isFullScreen:t,rid:e}=n;this._displayIframe({isFull:t,rid:e})}else if(e===s["b"].CREATE_WINDOW){const{windowId:t,url:e}=n;this._createPopupBlockAlert(t,e)}else if(e===s["b"].CLOSE_WINDOW)this._handleCloseWindow(n);else if(e===s["b"].USER_LOGGED_IN){const{currentLoginProvider:t}=n;this._state.isLoggedIn=!0,this._state.currentLoginProvider=t}else e===s["b"].USER_LOGGED_OUT&&(this._state.isLoggedIn=!1,this._state.currentLoginProvider=null,this._displayIframe())};this.jsonRpcConnectionEvents.on("notification",a)}get isLoggedIn(){return this._state.isLoggedIn}get isIFrameFullScreen(){return this._state.isIFrameFullScreen}isConnected(){return this._state.isConnected}async _initializeState(t){try{const{torusUrl:e,dappStorageKey:n,torusAlertContainer:r,torusIframe:i}=t;this.torusUrl=e,this.dappStorageKey=n,this.torusAlertContainer=r,this.torusIframe=i,this.torusIframe.addEventListener("load",()=>{this._state.isIFrameFullScreen||this._displayIframe()});const{currentLoginProvider:o,isLoggedIn:a}=await this.request({method:s["a"].GET_PROVIDER_STATE,params:[]});this._handleConnect(o,a)}catch(e){A.error("Torus: Failed to get initial state. Please report this bug.",e)}finally{A.info("initialized communication state"),this._state.initialized=!0,this.emit("_initialized")}}_handleWindow(t){let{url:e,target:n,features:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=new URL(e||"".concat(this.torusUrl,"/redirect?windowId=").concat(t));this.dappStorageKey&&(i.hash?i.hash+="&dappStorageKey=".concat(this.dappStorageKey):i.hash="#dappStorageKey=".concat(this.dappStorageKey));const o=new z({url:i,target:n,features:r});o.open(),o.window?(this.windowRefs[t]=o,this.request({method:s["a"].OPENED_WINDOW,params:{windowId:t}}),o.once("close",()=>{delete this.windowRefs[t],this.request({method:s["a"].CLOSED_WINDOW,params:{windowId:t}})})):this._createPopupBlockAlert(t,i.href)}_displayIframe(){let{isFull:t=!1,rid:e=""}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n={};if(t)n.display="block",n.width="100%",n.height="100%",n.top="0px",n.right="0px",n.left="0px",n.bottom="0px";else switch(n.display=this._state.torusWidgetVisibility?"block":"none",n.height="70px",n.width="70px",this._state.buttonPosition){case _.TOP_LEFT:n.top="0px",n.left="0px",n.right="auto",n.bottom="auto";break;case _.TOP_RIGHT:n.top="0px",n.right="0px",n.left="auto",n.bottom="auto";break;case _.BOTTOM_RIGHT:n.bottom="0px",n.right="0px",n.top="auto",n.left="auto";break;case _.BOTTOM_LEFT:default:n.bottom="0px",n.left="0px",n.top="auto",n.right="auto";break}Object.assign(this.torusIframe.style,n),this._state.isIFrameFullScreen=t,this.request({method:s["a"].IFRAME_STATUS,params:{isIFrameFullScreen:t,rid:e}})}hideTorusButton(){this._state.torusWidgetVisibility=!1,this._displayIframe()}showTorusButton(){this._state.torusWidgetVisibility=!0,this._displayIframe()}_rpcRequest(t,e){const n=e,r=t;Array.isArray(r)||r.jsonrpc||(r.jsonrpc="2.0"),this.tryWindowHandle(r,n)}_handleConnect(t,e){this._state.isConnected||(this._state.isConnected=!0,this.emit("connect",{currentLoginProvider:t,isLoggedIn:e}),A.debug(y.info.connected(t)))}_handleDisconnect(t,e){if(this._state.isConnected||!this._state.isPermanentlyDisconnected&&!t){let n;this._state.isConnected=!1,t?(n=new c["EthereumRpcError"](1013,e||y.errors.disconnected()),A.debug(n)):(n=new c["EthereumRpcError"](1011,e||y.errors.permanentlyDisconnected()),A.error(n),this._state.currentLoginProvider=null,this._state.isLoggedIn=!1,this._state.torusWidgetVisibility=!1,this._state.isIFrameFullScreen=!1,this._state.isPermanentlyDisconnected=!0),this.emit("disconnect",n)}}_handleCloseWindow(t){const{windowId:e}=t;this.windowRefs[e]&&(this.windowRefs[e].close(),delete this.windowRefs[e])}async _createPopupBlockAlert(t,e){const n=this.getLogoUrl(),r=B('
    '+'')+"
    "+'

    '.concat(this.embedTranslations.actionRequired,"

    ")+'

    '.concat(this.embedTranslations.pendingAction,"

    ")+"
    "),i=B('")),o=B('
    ');o.appendChild(i),r.appendChild(o);const s=()=>{i.addEventListener("click",()=>{this._handleWindow(t,{url:e,target:"_blank",features:P(j)}),r.remove(),0===this.torusAlertContainer.children.length&&(this.torusAlertContainer.style.display="none")})},a=()=>{this.torusAlertContainer.appendChild(r)};await Y(),a(),s(),this.torusAlertContainer.style.display="block"}getLogoUrl(){const t="".concat(this.torusUrl,"/images/torus_icon-blue.svg");return t}}function F(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function q(t){for(var e=1;e{this._state.isConnected=!0});const o=t=>{const{method:e,params:n}=t;e===s["d"].ACCOUNTS_CHANGED?this._handleAccountsChanged(n):e===s["d"].UNLOCK_STATE_CHANGED?this._handleUnlockStateChanged(n):e===s["d"].CHAIN_CHANGED&&this._handleChainChanged(n)};this.jsonRpcConnectionEvents.on("notification",o)}isConnected(){return this._state.isConnected}async _initializeState(){try{const{accounts:t,chainId:e,isUnlocked:n}=await this.request({method:s["c"].GET_PROVIDER_STATE,params:[]});this.emit("connect",{chainId:e}),this._handleChainChanged({chainId:e}),this._handleUnlockStateChanged({accounts:t,isUnlocked:n}),this._handleAccountsChanged(t)}catch(t){A.error("Torus: Failed to get initial state. Please report this bug.",t)}finally{A.info("initialized provider state"),this._state.initialized=!0,this.emit("_initialized")}}_rpcRequest(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e;const i=t;if(!Array.isArray(i))if(i.jsonrpc||(i.jsonrpc="2.0"),"solana_accounts"===i.method||"solana_requestAccounts"===i.method)r=(t,r)=>{this._handleAccountsChanged(r.result||[],"solana_accounts"===i.method,n),e(t,r)};else if("wallet_getProviderState"===i.method)return void this._rpcEngine.handle(t,r);this.tryWindowHandle(i,r)}_handleConnect(t){this._state.isConnected||(this._state.isConnected=!0,this.emit("connect",{chainId:t}),A.debug(y.info.connected(t)))}_handleDisconnect(t,e){if(this._state.isConnected||!this._state.isPermanentlyDisconnected&&!t){let n;this._state.isConnected=!1,t?(n=new c["EthereumRpcError"](1013,e||y.errors.disconnected()),A.debug(n)):(n=new c["EthereumRpcError"](1011,e||y.errors.permanentlyDisconnected()),A.error(n),this.chainId=null,this._state.accounts=null,this.selectedAddress=null,this._state.isUnlocked=!1,this._state.isPermanentlyDisconnected=!0),this.emit("disconnect",n)}}_handleAccountsChanged(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t;Array.isArray(r)||(A.error("Torus: Received non-array accounts parameter. Please report this bug.",r),r=[]);for(const i of t)if("string"!==typeof i){A.error("Torus: Received non-string account. Please report this bug.",t),r=[];break}g()(this._state.accounts,r)||(e&&Array.isArray(this._state.accounts)&&this._state.accounts.length>0&&!n&&A.error('Torus: "solana_accounts" unexpectedly updated accounts. Please report this bug.',r),this._state.accounts=r,this.emit("accountsChanged",r)),this.selectedAddress!==r[0]&&(this.selectedAddress=r[0]||null)}_handleChainChanged(){let{chainId:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t?"loading"===t?this._handleDisconnect(!0):(this._handleConnect(t),t!==this.chainId&&(this.chainId=t,this._state.initialized&&this.emit("chainChanged",this.chainId))):A.error("Torus: Received invalid network parameters. Please report this bug.",{chainId:t})}_handleUnlockStateChanged(){let{accounts:t,isUnlocked:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"boolean"===typeof e?e!==this._state.isUnlocked&&(this._state.isUnlocked=e,this._handleAccountsChanged(t||[])):A.error("Torus: Received invalid isUnlocked parameter. Please report this bug.",{isUnlocked:e})}}function K(t){return new Promise((e,n)=>{try{const n=document.createElement("img");n.onload=()=>e(!0),n.onerror=()=>e(!1),n.src=t}catch(r){n(r)}})}i()(V,"_defaultState",{accounts:null,isConnected:!1,isUnlocked:!1,initialized:!1,isPermanentlyDisconnected:!1,hasEmittedConnection:!1});const G=t=>{const{document:e}=t,n=e.querySelector('head > meta[property="og:site_name"]');if(n)return n.content;const r=e.querySelector('head > meta[name="title"]');return r?r.content:e.title&&e.title.length>0?e.title:t.location.hostname};async function Q(t){try{const{document:e}=t;let n=e.querySelector('head > link[rel="shortcut icon"]');return n&&await K(n.href)?n.href:(n=Array.from(e.querySelectorAll('head > link[rel="icon"]')).find(t=>Boolean(t.href)),n&&await K(n.href)?n.href:"")}catch(e){return""}}const Z=async()=>({name:G(window),icon:await Q(window)});function J(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function $(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};i()(this,"isInitialized",void 0),i()(this,"torusAlert",void 0),i()(this,"modalZIndex",void 0),i()(this,"alertZIndex",void 0),i()(this,"requestedLoginProvider",void 0),i()(this,"provider",void 0),i()(this,"communicationProvider",void 0),i()(this,"dappStorageKey",void 0),i()(this,"torusAlertContainer",void 0),i()(this,"torusUrl",void 0),i()(this,"torusIframe",void 0),i()(this,"styleLink",void 0),this.torusUrl="",this.isInitialized=!1,this.requestedLoginProvider=null,this.modalZIndex=t,this.alertZIndex=t+1e3,this.dappStorageKey=""}get isLoggedIn(){return!!this.communicationProvider&&this.communicationProvider.isLoggedIn}async init(){let{buildEnv:t=v.PRODUCTION,enableLogging:e=!1,network:n,showTorusButton:r=!1,useLocalStorage:i=!1,buttonPosition:o=_.BOTTOM_LEFT,apiKey:s="torus-default",extraParams:u={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.isInitialized)throw new Error("Already initialized");Object(a["e"])(s);const{torusUrl:c,logLevel:l}=await D(t);A.info(c,"url loaded"),this.torusUrl=c,A.setDefaultLevel(l),e?A.enableAll():A.disableAll();const h=this.handleDappStorageKey(i),d=new URL(c);d.pathname.endsWith("/")?d.pathname+="frame":d.pathname+="/frame";const f=new URLSearchParams;h&&f.append("dappStorageKey",h),f.append("origin",window.location.origin),d.hash=f.toString(),this.torusIframe=B('