/*! For license information please see LICENSES */ (window.webpackJsonp=window.webpackJsonp||[]).push([[7],[,function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},,function(e,t,r){var n=r(14),o=n.Buffer;function f(e,t){for(var r in e)t[r]=e[r]}function h(e,t,r){return o(e,t,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=n:(f(n,t),t.Buffer=h),h.prototype=Object.create(o.prototype),f(o,h),h.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,r)},h.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=o(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},h.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},h.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},function(e,t,r){(function(t){var n;e.exports=(n=n||function(e,n){var o;if("undefined"!=typeof window&&window.crypto&&(o=window.crypto),!o&&"undefined"!=typeof window&&window.msCrypto&&(o=window.msCrypto),!o&&void 0!==t&&t.crypto&&(o=t.crypto),!o)try{o=r(327)}catch(e){}var f=function(){if(o){if("function"==typeof o.getRandomValues)try{return o.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof o.randomBytes)try{return o.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},h=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),c={},d=c.lib={},l=d.Base={extend:function(e){var t=h(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},m=d.WordArray=l.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||y).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,o=e.sigBytes;if(this.clamp(),n%4)for(var i=0;i>>2]>>>24-i%4*8&255;t[n+i>>>2]|=f<<24-(n+i)%4*8}else for(i=0;i>>2]=r[i>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=l.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],i=0;i>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new m.init(r,t/2)}},_=v.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new m.init(r,t)}},w=v.Utf8={stringify:function(e){try{return decodeURIComponent(escape(_.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return _.parse(unescape(encodeURIComponent(e)))}},M=d.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new m.init,this._nDataBytes=0},_append:function(data){"string"==typeof data&&(data=w.parse(data)),this._data.concat(data),this._nDataBytes+=data.sigBytes},_process:function(t){var r,data=this._data,n=data.words,o=data.sigBytes,f=this.blockSize,h=o/(4*f),c=(h=t?e.ceil(h):e.max((0|h)-this._minBufferSize,0))*f,d=e.min(4*c,o);if(c){for(var l=0;l=49&&f<=54?f-49+10:f>=17&&f<=22?f-17+10:15&f}return n}function d(e,t,r,n){for(var o=0,f=Math.min(e.length,r),i=t;i=49?h-49+10:h>=17?h-17+10:h}return o}f.isBN=function(e){return e instanceof f||null!==e&&"object"==typeof e&&e.constructor.wordSize===f.wordSize&&Array.isArray(e.words)},f.max=function(e,t){return e.cmp(t)>0?e:t},f.min=function(e,t){return e.cmp(t)<0?e:t},f.prototype._init=function(e,base,t){if("number"==typeof e)return this._initNumber(e,base,t);if("object"==typeof e)return this._initArray(e,base,t);"hex"===base&&(base=16),n(base===(0|base)&&base>=2&&base<=36);var r=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&r++,16===base?this._parseHex(e,r):this._parseBase(e,base,r),"-"===e[0]&&(this.negative=1),this.strip(),"le"===t&&this._initArray(this.toArray(),base,t)},f.prototype._initNumber=function(e,base,t){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===t&&this._initArray(this.toArray(),base,t)},f.prototype._initArray=function(e,base,t){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)o=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[r]|=o<>>26-f&67108863,(f+=24)>=26&&(f-=26,r++);else if("le"===t)for(i=0,r=0;i>>26-f&67108863,(f+=24)>=26&&(f-=26,r++);return this.strip()},f.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var i=0;i=t;i-=6)n=c(e,i,i+6),this.words[r]|=n<>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);i+6!==t&&(n=c(e,t,i+6),this.words[r]|=n<>>26-o&4194303),this.strip()},f.prototype._parseBase=function(e,base,t){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=base)r++;r--,n=n/base|0;for(var o=e.length-t,f=o%r,h=Math.min(o,o-f)+t,c=0,i=t;i1&&0===this.words[this.length-1];)this.length--;return this._normSign()},f.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},f.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"],m=[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],v=[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 y(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var a=0|e.words[0],b=0|t.words[0],o=a*b,f=67108863&o,h=o/67108864|0;r.words[0]=f;for(var c=1;c>>26,l=67108863&h,m=Math.min(c,t.length-1),v=Math.max(0,c-e.length+1);v<=m;v++){var i=c-v|0;d+=(o=(a=0|e.words[i])*(b=0|t.words[v])+l)/67108864|0,l=67108863&o}r.words[c]=0|l,h=0|d}return 0!==h?r.words[c]=0|h:r.length--,r.strip()}f.prototype.toString=function(base,e){var t;if(e=0|e||1,16===(base=base||10)||"hex"===base){t="";for(var r=0,o=0,i=0;i>>24-r&16777215)||i!==this.length-1?l[6-h.length]+h+t:h+t,(r+=2)>=26&&(r-=26,i--)}for(0!==o&&(t=o.toString(16)+t);t.length%e!=0;)t="0"+t;return 0!==this.negative&&(t="-"+t),t}if(base===(0|base)&&base>=2&&base<=36){var c=m[base],d=v[base];t="";var y=this.clone();for(y.negative=0;!y.isZero();){var _=y.modn(d).toString(base);t=(y=y.idivn(d)).isZero()?_+t:l[c-_.length]+_+t}for(this.isZero()&&(t="0"+t);t.length%e!=0;)t="0"+t;return 0!==this.negative&&(t="-"+t),t}n(!1,"Base should be between 2 and 36")},f.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},f.prototype.toJSON=function(){return this.toString(16)},f.prototype.toBuffer=function(e,t){return n(void 0!==h),this.toArrayLike(h,e,t)},f.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},f.prototype.toArrayLike=function(e,t,r){var o=this.byteLength(),f=r||Math.max(1,o);n(o<=f,"byte array longer than desired length"),n(f>0,"Requested array length <= 0"),this.strip();var b,i,h="le"===t,c=new e(f),q=this.clone();if(h){for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),c[i]=b;for(;i=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},f.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},f.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},f.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,i=0;ie.length?this.clone().ior(e):e.clone().ior(this)},f.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},f.prototype.iuand=function(e){var b;b=this.length>e.length?e:this;for(var i=0;ie.length?this.clone().iand(e):e.clone().iand(this)},f.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},f.prototype.iuxor=function(e){var a,b;this.length>e.length?(a=this,b=e):(a=e,b=this);for(var i=0;ie.length?this.clone().ixor(e):e.clone().ixor(this)},f.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},f.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},f.prototype.notn=function(e){return this.clone().inotn(e)},f.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,o=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(a=this,b=e):(a=e,b=this);for(var r=0,i=0;i>>26;for(;0!==r&&i>>26;if(this.length=a.length,0!==r)this.words[this.length]=r,this.length++;else if(a!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},f.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var a,b,r=this.cmp(e);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(a=this,b=e):(a=e,b=this);for(var n=0,i=0;i>26,this.words[i]=67108863&t;for(;0!==n&&i>26,this.words[i]=67108863&t;if(0===n&&i>>13,v=0|a[1],y=8191&v,_=v>>>13,w=0|a[2],M=8191&w,S=w>>>13,k=0|a[3],E=8191&k,x=k>>>13,A=0|a[4],R=8191&A,T=A>>>13,B=0|a[5],O=8191&B,D=B>>>13,P=0|a[6],I=8191&P,C=P>>>13,j=0|a[7],L=8191&j,N=j>>>13,U=0|a[8],z=8191&U,Y=U>>>13,H=0|a[9],F=8191&H,W=H>>>13,V=0|b[0],K=8191&V,G=V>>>13,$=0|b[1],Z=8191&$,X=$>>>13,J=0|b[2],Q=8191&J,ee=J>>>13,te=0|b[3],re=8191&te,ne=te>>>13,ie=0|b[4],oe=8191&ie,ae=ie>>>13,se=0|b[5],fe=8191&se,ue=se>>>13,he=0|b[6],ce=8191&he,de=he>>>13,le=0|b[7],pe=8191&le,be=le>>>13,me=0|b[8],ve=8191&me,ye=me>>>13,ge=0|b[9],_e=8191&ge,we=ge>>>13;r.negative=e.negative^t.negative,r.length=19;var Me=(c+(n=Math.imul(l,K))|0)+((8191&(o=(o=Math.imul(l,G))+Math.imul(m,K)|0))<<13)|0;c=((f=Math.imul(m,G))+(o>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(y,K),o=(o=Math.imul(y,G))+Math.imul(_,K)|0,f=Math.imul(_,G);var Se=(c+(n=n+Math.imul(l,Z)|0)|0)+((8191&(o=(o=o+Math.imul(l,X)|0)+Math.imul(m,Z)|0))<<13)|0;c=((f=f+Math.imul(m,X)|0)+(o>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(M,K),o=(o=Math.imul(M,G))+Math.imul(S,K)|0,f=Math.imul(S,G),n=n+Math.imul(y,Z)|0,o=(o=o+Math.imul(y,X)|0)+Math.imul(_,Z)|0,f=f+Math.imul(_,X)|0;var ke=(c+(n=n+Math.imul(l,Q)|0)|0)+((8191&(o=(o=o+Math.imul(l,ee)|0)+Math.imul(m,Q)|0))<<13)|0;c=((f=f+Math.imul(m,ee)|0)+(o>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(E,K),o=(o=Math.imul(E,G))+Math.imul(x,K)|0,f=Math.imul(x,G),n=n+Math.imul(M,Z)|0,o=(o=o+Math.imul(M,X)|0)+Math.imul(S,Z)|0,f=f+Math.imul(S,X)|0,n=n+Math.imul(y,Q)|0,o=(o=o+Math.imul(y,ee)|0)+Math.imul(_,Q)|0,f=f+Math.imul(_,ee)|0;var Ee=(c+(n=n+Math.imul(l,re)|0)|0)+((8191&(o=(o=o+Math.imul(l,ne)|0)+Math.imul(m,re)|0))<<13)|0;c=((f=f+Math.imul(m,ne)|0)+(o>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(R,K),o=(o=Math.imul(R,G))+Math.imul(T,K)|0,f=Math.imul(T,G),n=n+Math.imul(E,Z)|0,o=(o=o+Math.imul(E,X)|0)+Math.imul(x,Z)|0,f=f+Math.imul(x,X)|0,n=n+Math.imul(M,Q)|0,o=(o=o+Math.imul(M,ee)|0)+Math.imul(S,Q)|0,f=f+Math.imul(S,ee)|0,n=n+Math.imul(y,re)|0,o=(o=o+Math.imul(y,ne)|0)+Math.imul(_,re)|0,f=f+Math.imul(_,ne)|0;var xe=(c+(n=n+Math.imul(l,oe)|0)|0)+((8191&(o=(o=o+Math.imul(l,ae)|0)+Math.imul(m,oe)|0))<<13)|0;c=((f=f+Math.imul(m,ae)|0)+(o>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(O,K),o=(o=Math.imul(O,G))+Math.imul(D,K)|0,f=Math.imul(D,G),n=n+Math.imul(R,Z)|0,o=(o=o+Math.imul(R,X)|0)+Math.imul(T,Z)|0,f=f+Math.imul(T,X)|0,n=n+Math.imul(E,Q)|0,o=(o=o+Math.imul(E,ee)|0)+Math.imul(x,Q)|0,f=f+Math.imul(x,ee)|0,n=n+Math.imul(M,re)|0,o=(o=o+Math.imul(M,ne)|0)+Math.imul(S,re)|0,f=f+Math.imul(S,ne)|0,n=n+Math.imul(y,oe)|0,o=(o=o+Math.imul(y,ae)|0)+Math.imul(_,oe)|0,f=f+Math.imul(_,ae)|0;var Ae=(c+(n=n+Math.imul(l,fe)|0)|0)+((8191&(o=(o=o+Math.imul(l,ue)|0)+Math.imul(m,fe)|0))<<13)|0;c=((f=f+Math.imul(m,ue)|0)+(o>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(I,K),o=(o=Math.imul(I,G))+Math.imul(C,K)|0,f=Math.imul(C,G),n=n+Math.imul(O,Z)|0,o=(o=o+Math.imul(O,X)|0)+Math.imul(D,Z)|0,f=f+Math.imul(D,X)|0,n=n+Math.imul(R,Q)|0,o=(o=o+Math.imul(R,ee)|0)+Math.imul(T,Q)|0,f=f+Math.imul(T,ee)|0,n=n+Math.imul(E,re)|0,o=(o=o+Math.imul(E,ne)|0)+Math.imul(x,re)|0,f=f+Math.imul(x,ne)|0,n=n+Math.imul(M,oe)|0,o=(o=o+Math.imul(M,ae)|0)+Math.imul(S,oe)|0,f=f+Math.imul(S,ae)|0,n=n+Math.imul(y,fe)|0,o=(o=o+Math.imul(y,ue)|0)+Math.imul(_,fe)|0,f=f+Math.imul(_,ue)|0;var Re=(c+(n=n+Math.imul(l,ce)|0)|0)+((8191&(o=(o=o+Math.imul(l,de)|0)+Math.imul(m,ce)|0))<<13)|0;c=((f=f+Math.imul(m,de)|0)+(o>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(L,K),o=(o=Math.imul(L,G))+Math.imul(N,K)|0,f=Math.imul(N,G),n=n+Math.imul(I,Z)|0,o=(o=o+Math.imul(I,X)|0)+Math.imul(C,Z)|0,f=f+Math.imul(C,X)|0,n=n+Math.imul(O,Q)|0,o=(o=o+Math.imul(O,ee)|0)+Math.imul(D,Q)|0,f=f+Math.imul(D,ee)|0,n=n+Math.imul(R,re)|0,o=(o=o+Math.imul(R,ne)|0)+Math.imul(T,re)|0,f=f+Math.imul(T,ne)|0,n=n+Math.imul(E,oe)|0,o=(o=o+Math.imul(E,ae)|0)+Math.imul(x,oe)|0,f=f+Math.imul(x,ae)|0,n=n+Math.imul(M,fe)|0,o=(o=o+Math.imul(M,ue)|0)+Math.imul(S,fe)|0,f=f+Math.imul(S,ue)|0,n=n+Math.imul(y,ce)|0,o=(o=o+Math.imul(y,de)|0)+Math.imul(_,ce)|0,f=f+Math.imul(_,de)|0;var Te=(c+(n=n+Math.imul(l,pe)|0)|0)+((8191&(o=(o=o+Math.imul(l,be)|0)+Math.imul(m,pe)|0))<<13)|0;c=((f=f+Math.imul(m,be)|0)+(o>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(z,K),o=(o=Math.imul(z,G))+Math.imul(Y,K)|0,f=Math.imul(Y,G),n=n+Math.imul(L,Z)|0,o=(o=o+Math.imul(L,X)|0)+Math.imul(N,Z)|0,f=f+Math.imul(N,X)|0,n=n+Math.imul(I,Q)|0,o=(o=o+Math.imul(I,ee)|0)+Math.imul(C,Q)|0,f=f+Math.imul(C,ee)|0,n=n+Math.imul(O,re)|0,o=(o=o+Math.imul(O,ne)|0)+Math.imul(D,re)|0,f=f+Math.imul(D,ne)|0,n=n+Math.imul(R,oe)|0,o=(o=o+Math.imul(R,ae)|0)+Math.imul(T,oe)|0,f=f+Math.imul(T,ae)|0,n=n+Math.imul(E,fe)|0,o=(o=o+Math.imul(E,ue)|0)+Math.imul(x,fe)|0,f=f+Math.imul(x,ue)|0,n=n+Math.imul(M,ce)|0,o=(o=o+Math.imul(M,de)|0)+Math.imul(S,ce)|0,f=f+Math.imul(S,de)|0,n=n+Math.imul(y,pe)|0,o=(o=o+Math.imul(y,be)|0)+Math.imul(_,pe)|0,f=f+Math.imul(_,be)|0;var Be=(c+(n=n+Math.imul(l,ve)|0)|0)+((8191&(o=(o=o+Math.imul(l,ye)|0)+Math.imul(m,ve)|0))<<13)|0;c=((f=f+Math.imul(m,ye)|0)+(o>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(F,K),o=(o=Math.imul(F,G))+Math.imul(W,K)|0,f=Math.imul(W,G),n=n+Math.imul(z,Z)|0,o=(o=o+Math.imul(z,X)|0)+Math.imul(Y,Z)|0,f=f+Math.imul(Y,X)|0,n=n+Math.imul(L,Q)|0,o=(o=o+Math.imul(L,ee)|0)+Math.imul(N,Q)|0,f=f+Math.imul(N,ee)|0,n=n+Math.imul(I,re)|0,o=(o=o+Math.imul(I,ne)|0)+Math.imul(C,re)|0,f=f+Math.imul(C,ne)|0,n=n+Math.imul(O,oe)|0,o=(o=o+Math.imul(O,ae)|0)+Math.imul(D,oe)|0,f=f+Math.imul(D,ae)|0,n=n+Math.imul(R,fe)|0,o=(o=o+Math.imul(R,ue)|0)+Math.imul(T,fe)|0,f=f+Math.imul(T,ue)|0,n=n+Math.imul(E,ce)|0,o=(o=o+Math.imul(E,de)|0)+Math.imul(x,ce)|0,f=f+Math.imul(x,de)|0,n=n+Math.imul(M,pe)|0,o=(o=o+Math.imul(M,be)|0)+Math.imul(S,pe)|0,f=f+Math.imul(S,be)|0,n=n+Math.imul(y,ve)|0,o=(o=o+Math.imul(y,ye)|0)+Math.imul(_,ve)|0,f=f+Math.imul(_,ye)|0;var Oe=(c+(n=n+Math.imul(l,_e)|0)|0)+((8191&(o=(o=o+Math.imul(l,we)|0)+Math.imul(m,_e)|0))<<13)|0;c=((f=f+Math.imul(m,we)|0)+(o>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(F,Z),o=(o=Math.imul(F,X))+Math.imul(W,Z)|0,f=Math.imul(W,X),n=n+Math.imul(z,Q)|0,o=(o=o+Math.imul(z,ee)|0)+Math.imul(Y,Q)|0,f=f+Math.imul(Y,ee)|0,n=n+Math.imul(L,re)|0,o=(o=o+Math.imul(L,ne)|0)+Math.imul(N,re)|0,f=f+Math.imul(N,ne)|0,n=n+Math.imul(I,oe)|0,o=(o=o+Math.imul(I,ae)|0)+Math.imul(C,oe)|0,f=f+Math.imul(C,ae)|0,n=n+Math.imul(O,fe)|0,o=(o=o+Math.imul(O,ue)|0)+Math.imul(D,fe)|0,f=f+Math.imul(D,ue)|0,n=n+Math.imul(R,ce)|0,o=(o=o+Math.imul(R,de)|0)+Math.imul(T,ce)|0,f=f+Math.imul(T,de)|0,n=n+Math.imul(E,pe)|0,o=(o=o+Math.imul(E,be)|0)+Math.imul(x,pe)|0,f=f+Math.imul(x,be)|0,n=n+Math.imul(M,ve)|0,o=(o=o+Math.imul(M,ye)|0)+Math.imul(S,ve)|0,f=f+Math.imul(S,ye)|0;var De=(c+(n=n+Math.imul(y,_e)|0)|0)+((8191&(o=(o=o+Math.imul(y,we)|0)+Math.imul(_,_e)|0))<<13)|0;c=((f=f+Math.imul(_,we)|0)+(o>>>13)|0)+(De>>>26)|0,De&=67108863,n=Math.imul(F,Q),o=(o=Math.imul(F,ee))+Math.imul(W,Q)|0,f=Math.imul(W,ee),n=n+Math.imul(z,re)|0,o=(o=o+Math.imul(z,ne)|0)+Math.imul(Y,re)|0,f=f+Math.imul(Y,ne)|0,n=n+Math.imul(L,oe)|0,o=(o=o+Math.imul(L,ae)|0)+Math.imul(N,oe)|0,f=f+Math.imul(N,ae)|0,n=n+Math.imul(I,fe)|0,o=(o=o+Math.imul(I,ue)|0)+Math.imul(C,fe)|0,f=f+Math.imul(C,ue)|0,n=n+Math.imul(O,ce)|0,o=(o=o+Math.imul(O,de)|0)+Math.imul(D,ce)|0,f=f+Math.imul(D,de)|0,n=n+Math.imul(R,pe)|0,o=(o=o+Math.imul(R,be)|0)+Math.imul(T,pe)|0,f=f+Math.imul(T,be)|0,n=n+Math.imul(E,ve)|0,o=(o=o+Math.imul(E,ye)|0)+Math.imul(x,ve)|0,f=f+Math.imul(x,ye)|0;var Pe=(c+(n=n+Math.imul(M,_e)|0)|0)+((8191&(o=(o=o+Math.imul(M,we)|0)+Math.imul(S,_e)|0))<<13)|0;c=((f=f+Math.imul(S,we)|0)+(o>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(F,re),o=(o=Math.imul(F,ne))+Math.imul(W,re)|0,f=Math.imul(W,ne),n=n+Math.imul(z,oe)|0,o=(o=o+Math.imul(z,ae)|0)+Math.imul(Y,oe)|0,f=f+Math.imul(Y,ae)|0,n=n+Math.imul(L,fe)|0,o=(o=o+Math.imul(L,ue)|0)+Math.imul(N,fe)|0,f=f+Math.imul(N,ue)|0,n=n+Math.imul(I,ce)|0,o=(o=o+Math.imul(I,de)|0)+Math.imul(C,ce)|0,f=f+Math.imul(C,de)|0,n=n+Math.imul(O,pe)|0,o=(o=o+Math.imul(O,be)|0)+Math.imul(D,pe)|0,f=f+Math.imul(D,be)|0,n=n+Math.imul(R,ve)|0,o=(o=o+Math.imul(R,ye)|0)+Math.imul(T,ve)|0,f=f+Math.imul(T,ye)|0;var Ie=(c+(n=n+Math.imul(E,_e)|0)|0)+((8191&(o=(o=o+Math.imul(E,we)|0)+Math.imul(x,_e)|0))<<13)|0;c=((f=f+Math.imul(x,we)|0)+(o>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(F,oe),o=(o=Math.imul(F,ae))+Math.imul(W,oe)|0,f=Math.imul(W,ae),n=n+Math.imul(z,fe)|0,o=(o=o+Math.imul(z,ue)|0)+Math.imul(Y,fe)|0,f=f+Math.imul(Y,ue)|0,n=n+Math.imul(L,ce)|0,o=(o=o+Math.imul(L,de)|0)+Math.imul(N,ce)|0,f=f+Math.imul(N,de)|0,n=n+Math.imul(I,pe)|0,o=(o=o+Math.imul(I,be)|0)+Math.imul(C,pe)|0,f=f+Math.imul(C,be)|0,n=n+Math.imul(O,ve)|0,o=(o=o+Math.imul(O,ye)|0)+Math.imul(D,ve)|0,f=f+Math.imul(D,ye)|0;var Ce=(c+(n=n+Math.imul(R,_e)|0)|0)+((8191&(o=(o=o+Math.imul(R,we)|0)+Math.imul(T,_e)|0))<<13)|0;c=((f=f+Math.imul(T,we)|0)+(o>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(F,fe),o=(o=Math.imul(F,ue))+Math.imul(W,fe)|0,f=Math.imul(W,ue),n=n+Math.imul(z,ce)|0,o=(o=o+Math.imul(z,de)|0)+Math.imul(Y,ce)|0,f=f+Math.imul(Y,de)|0,n=n+Math.imul(L,pe)|0,o=(o=o+Math.imul(L,be)|0)+Math.imul(N,pe)|0,f=f+Math.imul(N,be)|0,n=n+Math.imul(I,ve)|0,o=(o=o+Math.imul(I,ye)|0)+Math.imul(C,ve)|0,f=f+Math.imul(C,ye)|0;var je=(c+(n=n+Math.imul(O,_e)|0)|0)+((8191&(o=(o=o+Math.imul(O,we)|0)+Math.imul(D,_e)|0))<<13)|0;c=((f=f+Math.imul(D,we)|0)+(o>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(F,ce),o=(o=Math.imul(F,de))+Math.imul(W,ce)|0,f=Math.imul(W,de),n=n+Math.imul(z,pe)|0,o=(o=o+Math.imul(z,be)|0)+Math.imul(Y,pe)|0,f=f+Math.imul(Y,be)|0,n=n+Math.imul(L,ve)|0,o=(o=o+Math.imul(L,ye)|0)+Math.imul(N,ve)|0,f=f+Math.imul(N,ye)|0;var Le=(c+(n=n+Math.imul(I,_e)|0)|0)+((8191&(o=(o=o+Math.imul(I,we)|0)+Math.imul(C,_e)|0))<<13)|0;c=((f=f+Math.imul(C,we)|0)+(o>>>13)|0)+(Le>>>26)|0,Le&=67108863,n=Math.imul(F,pe),o=(o=Math.imul(F,be))+Math.imul(W,pe)|0,f=Math.imul(W,be),n=n+Math.imul(z,ve)|0,o=(o=o+Math.imul(z,ye)|0)+Math.imul(Y,ve)|0,f=f+Math.imul(Y,ye)|0;var Ne=(c+(n=n+Math.imul(L,_e)|0)|0)+((8191&(o=(o=o+Math.imul(L,we)|0)+Math.imul(N,_e)|0))<<13)|0;c=((f=f+Math.imul(N,we)|0)+(o>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,n=Math.imul(F,ve),o=(o=Math.imul(F,ye))+Math.imul(W,ve)|0,f=Math.imul(W,ye);var Ue=(c+(n=n+Math.imul(z,_e)|0)|0)+((8191&(o=(o=o+Math.imul(z,we)|0)+Math.imul(Y,_e)|0))<<13)|0;c=((f=f+Math.imul(Y,we)|0)+(o>>>13)|0)+(Ue>>>26)|0,Ue&=67108863;var qe=(c+(n=Math.imul(F,_e))|0)+((8191&(o=(o=Math.imul(F,we))+Math.imul(W,_e)|0))<<13)|0;return c=((f=Math.imul(W,we))+(o>>>13)|0)+(qe>>>26)|0,qe&=67108863,h[0]=Me,h[1]=Se,h[2]=ke,h[3]=Ee,h[4]=xe,h[5]=Ae,h[6]=Re,h[7]=Te,h[8]=Be,h[9]=Oe,h[10]=De,h[11]=Pe,h[12]=Ie,h[13]=Ce,h[14]=je,h[15]=Le,h[16]=Ne,h[17]=Ue,h[18]=qe,0!==c&&(h[19]=c,r.length++),r};function w(e,t,r){return(new M).mulp(e,t,r)}function M(e,t){this.x=e,this.y=t}Math.imul||(_=y),f.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?_(this,e,t):r<63?y(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,o=0,f=0;f>>26)|0)>>>26,h&=67108863}r.words[f]=c,n=h,h=o}return 0!==n?r.words[f]=n:r.length--,r.strip()}(this,e,t):w(this,e,t)},M.prototype.makeRBT=function(e){for(var t=new Array(e),r=f.prototype._countBits(e)-1,i=0;i>=1;return n},M.prototype.permute=function(e,t,r,n,o,f){for(var i=0;i>>=1)i++;return 1<>>=13,r[2*i+1]=8191&f,f>>>=13;for(i=2*t;i>=26,t+=r/67108864|0,t+=o>>>26,this.words[i]=67108863&o}return 0!==t&&(this.words[i]=t,this.length++),this},f.prototype.muln=function(e){return this.clone().imuln(e)},f.prototype.sqr=function(){return this.mul(this)},f.prototype.isqr=function(){return this.imul(this.clone())},f.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>o}return t}(e);if(0===t.length)return new f(1);for(var r=this,i=0;i=0);var i,t=e%26,s=(e-t)/26,r=67108863>>>26-t<<26-t;if(0!==t){var o=0;for(i=0;i>>26-t}o&&(this.words[i]=o,this.length++)}if(0!==s){for(i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(i=0;i=0),o=t?(t-t%26)/26:0;var f=e%26,s=Math.min((e-f)/26,this.length),mask=67108863^67108863>>>f<s)for(this.length-=s,i=0;i=0&&(0!==c||i>=o);i--){var d=0|this.words[i];this.words[i]=c<<26-f|d>>>f,c=d&mask}return h&&0!==c&&(h.words[h.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},f.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},f.prototype.shln=function(e){return this.clone().ishln(e)},f.prototype.ushln=function(e){return this.clone().iushln(e)},f.prototype.shrn=function(e){return this.clone().ishrn(e)},f.prototype.ushrn=function(e){return this.clone().iushrn(e)},f.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,s=(e-t)/26,q=1<=0);var t=e%26,s=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=s)return this;if(0!==t&&s++,this.length=Math.min(s,this.length),0!==t){var mask=67108863^67108863>>>t<=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},f.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var i=0;i>26)-(c/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===h)return this.strip();for(n(-1===h),h=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},f.prototype._wordDiv=function(e,t){var r=(this.length,e.length),a=this.clone(),b=e,n=0|b.words[b.length-1];0!==(r=26-this._countBits(n))&&(b=b.ushln(r),a.iushln(r),n=0|b.words[b.length-1]);var q,o=a.length-b.length;if("mod"!==t){(q=new f(null)).length=o+1,q.words=new Array(q.length);for(var i=0;i=0;c--){var d=67108864*(0|a.words[b.length+c])+(0|a.words[b.length+c-1]);for(d=Math.min(d/n|0,67108863),a._ishlnsubmul(b,d,c);0!==a.negative;)d--,a.negative=0,a._ishlnsubmul(b,1,c),a.isZero()||(a.negative^=1);q&&(q.words[c]=d)}return q&&q.strip(),a.strip(),"div"!==t&&0!==r&&a.iushrn(r),{div:q||null,mod:a}},f.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new f(0),mod:new f(0)}:0!==this.negative&&0===e.negative?(h=this.neg().divmod(e,t),"mod"!==t&&(div=h.div.neg()),"div"!==t&&(o=h.mod.neg(),r&&0!==o.negative&&o.iadd(e)),{div:div,mod:o}):0===this.negative&&0!==e.negative?(h=this.divmod(e.neg(),t),"mod"!==t&&(div=h.div.neg()),{div:div,mod:h.mod}):0!=(this.negative&e.negative)?(h=this.neg().divmod(e.neg(),t),"div"!==t&&(o=h.mod.neg(),r&&0!==o.negative&&o.isub(e)),{div:h.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new f(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new f(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new f(this.modn(e.words[0]))}:this._wordDiv(e,t);var div,o,h},f.prototype.div=function(e){return this.divmod(e,"div",!1).div},f.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},f.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},f.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),o=e.andln(1),f=r.cmp(n);return f<0||1===o&&0===f?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},f.prototype.modn=function(e){n(e<=67108863);for(var p=(1<<26)%e,t=0,i=this.length-1;i>=0;i--)t=(p*t+(0|this.words[i]))%e;return t},f.prototype.idivn=function(e){n(e<=67108863);for(var t=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*t;this.words[i]=r/e|0,t=r%e}return this.strip()},f.prototype.divn=function(e){return this.clone().idivn(e)},f.prototype.egcd=function(p){n(0===p.negative),n(!p.isZero());var e=this,t=p.clone();e=0!==e.negative?e.umod(p):e.clone();for(var r=new f(1),o=new f(0),h=new f(0),c=new f(1),g=0;e.isEven()&&t.isEven();)e.iushrn(1),t.iushrn(1),++g;for(var d=t.clone(),l=e.clone();!e.isZero();){for(var i=0,m=1;0==(e.words[0]&m)&&i<26;++i,m<<=1);if(i>0)for(e.iushrn(i);i-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(d),o.isub(l)),r.iushrn(1),o.iushrn(1);for(var v=0,y=1;0==(t.words[0]&y)&&v<26;++v,y<<=1);if(v>0)for(t.iushrn(v);v-- >0;)(h.isOdd()||c.isOdd())&&(h.iadd(d),c.isub(l)),h.iushrn(1),c.iushrn(1);e.cmp(t)>=0?(e.isub(t),r.isub(h),o.isub(c)):(t.isub(e),h.isub(r),c.isub(o))}return{a:h,b:c,gcd:t.iushln(g)}},f.prototype._invmp=function(p){n(0===p.negative),n(!p.isZero());var a=this,b=p.clone();a=0!==a.negative?a.umod(p):a.clone();for(var e,t=new f(1),r=new f(0),o=b.clone();a.cmpn(1)>0&&b.cmpn(1)>0;){for(var i=0,h=1;0==(a.words[0]&h)&&i<26;++i,h<<=1);if(i>0)for(a.iushrn(i);i-- >0;)t.isOdd()&&t.iadd(o),t.iushrn(1);for(var c=0,d=1;0==(b.words[0]&d)&&c<26;++c,d<<=1);if(c>0)for(b.iushrn(c);c-- >0;)r.isOdd()&&r.iadd(o),r.iushrn(1);a.cmp(b)>=0?(a.isub(b),t.isub(r)):(b.isub(a),r.isub(t))}return(e=0===a.cmpn(1)?t:r).cmpn(0)<0&&e.iadd(p),e},f.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var a=this.clone(),b=e.clone();a.negative=0,b.negative=0;for(var t=0;a.isEven()&&b.isEven();t++)a.iushrn(1),b.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;b.isEven();)b.iushrn(1);var r=a.cmp(b);if(r<0){var n=a;a=b,b=n}else if(0===r||0===b.cmpn(1))break;a.isub(b)}return b.iushln(t)},f.prototype.invm=function(e){return this.egcd(e).a.umod(e)},f.prototype.isEven=function(){return 0==(1&this.words[0])},f.prototype.isOdd=function(){return 1==(1&this.words[0])},f.prototype.andln=function(e){return this.words[0]&e},f.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,s=(e-t)/26,q=1<>>26,o&=67108863,this.words[i]=o}return 0!==r&&(this.words[i]=r,this.length++),this},f.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},f.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var o=0|this.words[0];t=o===e?0:oe.length)return 1;if(this.length=0;i--){var a=0|this.words[i],b=0|e.words[i];if(a!==b){ab&&(t=1);break}}return t},f.prototype.gtn=function(e){return 1===this.cmpn(e)},f.prototype.gt=function(e){return 1===this.cmp(e)},f.prototype.gten=function(e){return this.cmpn(e)>=0},f.prototype.gte=function(e){return this.cmp(e)>=0},f.prototype.ltn=function(e){return-1===this.cmpn(e)},f.prototype.lt=function(e){return-1===this.cmp(e)},f.prototype.lten=function(e){return this.cmpn(e)<=0},f.prototype.lte=function(e){return this.cmp(e)<=0},f.prototype.eqn=function(e){return 0===this.cmpn(e)},f.prototype.eq=function(e){return 0===this.cmp(e)},f.red=function(e){return new T(e)},f.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},f.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},f.prototype._forceRed=function(e){return this.red=e,this},f.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},f.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},f.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},f.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},f.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},f.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},f.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},f.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},f.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},f.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},f.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},f.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},f.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},f.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var S={k256:null,p224:null,p192:null,p25519:null};function k(e,p){this.name=e,this.p=new f(p,16),this.n=this.p.bitLength(),this.k=new f(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function E(){k.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){k.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){k.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function R(){k.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function T(e){if("string"==typeof e){var t=f._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function B(e){T.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new f(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)}k.prototype._tmp=function(){var e=new f(null);return e.words=new Array(Math.ceil(this.n/13)),e},k.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},k.prototype.split=function(input,e){input.iushrn(this.n,0,e)},k.prototype.imulK=function(e){return e.imul(this.k)},o(E,k),E.prototype.split=function(input,output){for(var e=Math.min(input.length,9),i=0;i>>22,t=r}t>>>=22,input.words[i-10]=t,0===t&&input.length>10?input.length-=10:input.length-=9},E.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i>>=26,e.words[i]=n,t=r}return 0!==t&&(e.words[e.length++]=t),e},f._prime=function(e){if(S[e])return S[e];var t;if("k256"===e)t=new E;else if("p224"===e)t=new x;else if("p192"===e)t=new A;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new R}return S[e]=t,t},T.prototype._verify1=function(a){n(0===a.negative,"red works only with positives"),n(a.red,"red works only with red numbers")},T.prototype._verify2=function(a,b){n(0==(a.negative|b.negative),"red works only with positives"),n(a.red&&a.red===b.red,"red works only with red numbers")},T.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):a.umod(this.m)._forceRed(this)},T.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)},T.prototype.add=function(a,b){this._verify2(a,b);var e=a.add(b);return e.cmp(this.m)>=0&&e.isub(this.m),e._forceRed(this)},T.prototype.iadd=function(a,b){this._verify2(a,b);var e=a.iadd(b);return e.cmp(this.m)>=0&&e.isub(this.m),e},T.prototype.sub=function(a,b){this._verify2(a,b);var e=a.sub(b);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},T.prototype.isub=function(a,b){this._verify2(a,b);var e=a.isub(b);return e.cmpn(0)<0&&e.iadd(this.m),e},T.prototype.shl=function(a,e){return this._verify1(a),this.imod(a.ushln(e))},T.prototype.imul=function(a,b){return this._verify2(a,b),this.imod(a.imul(b))},T.prototype.mul=function(a,b){return this._verify2(a,b),this.imod(a.mul(b))},T.prototype.isqr=function(a){return this.imul(a,a.clone())},T.prototype.sqr=function(a){return this.mul(a,a)},T.prototype.sqrt=function(a){if(a.isZero())return a.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var t=this.m.add(new f(1)).iushrn(2);return this.pow(a,t)}for(var q=this.m.subn(1),s=0;!q.isZero()&&0===q.andln(1);)s++,q.iushrn(1);n(!q.isZero());var r=new f(1).toRed(this),o=r.redNeg(),h=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new f(2*c*c).toRed(this);0!==this.pow(c,h).cmp(o);)c.redIAdd(o);for(var d=this.pow(c,q),l=this.pow(a,q.addn(1).iushrn(1)),m=this.pow(a,q),v=s;0!==m.cmp(r);){for(var y=m,i=0;0!==y.cmp(r);i++)y=y.redSqr();n(i=0;i--){for(var c=e.words[i],d=h-1;d>=0;d--){var l=c>>d&1;r!==t[0]&&(r=this.sqr(r)),0!==l||0!==n?(n<<=1,n|=l,(4===++o||0===i&&0===d)&&(r=this.mul(r,t[n]),o=0,n=0)):o=0}h=26}return r},T.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},T.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},f.mont=function(e){return new B(e)},o(B,T),B.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},B.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},B.prototype.imul=function(a,b){if(a.isZero()||b.isZero())return a.words[0]=0,a.length=1,a;var e=a.imul(b),t=e.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=e.isub(t).iushrn(this.shift),r=u;return u.cmp(this.m)>=0?r=u.isub(this.m):u.cmpn(0)<0&&(r=u.iadd(this.m)),r._forceRed(this)},B.prototype.mul=function(a,b){if(a.isZero()||b.isZero())return new f(0)._forceRed(this);var e=a.mul(b),t=e.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=e.isub(t).iushrn(this.shift),r=u;return u.cmp(this.m)>=0?r=u.isub(this.m):u.cmpn(0)<0&&(r=u.iadd(this.m)),r._forceRed(this)},B.prototype.invm=function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(117)(e))},,,function(e,t,r){"use strict";(function(e){var n=r(328),o=r(329),f=r(219);function h(){return d.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(e,t){if(h()=h())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h().toString(16)+" bytes");return 0|e}function w(e,t){if(d.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return $(e).length;default:if(n)return G(e).length;t=(""+t).toLowerCase(),n=!0}}function M(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return j(this,t,r);case"utf8":case"utf-8":return P(this,t,r);case"ascii":return I(this,t,r);case"latin1":case"binary":return C(this,t,r);case"base64":return D(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function S(b,e,t){var i=b[e];b[e]=b[t],b[t]=i}function k(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=d.from(t,n)),d.isBuffer(t))return 0===t.length?-1:E(e,t,r,n,o);if("number"==typeof t)return t&=255,d.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):E(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function E(e,t,r,n,o){var i,f=1,h=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;f=2,h/=2,c/=2,r/=2}function d(e,i){return 1===f?e[i]:e.readUInt16BE(i*f)}if(o){var l=-1;for(i=r;ih&&(r=h-c),i=r;i>=0;i--){for(var m=!0,v=0;vo&&(n=o):n=o;var f=t.length;if(f%2!=0)throw new TypeError("Invalid hex string");n>f/2&&(n=f/2);for(var i=0;i>8,o=r%256,f.push(o),f.push(n);return f}(t,e.length-r),e,r,n)}function D(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function P(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i239?4:d>223?3:d>191?2:1;if(i+m<=r)switch(m){case 1:d<128&&(l=d);break;case 2:128==(192&(o=e[i+1]))&&(c=(31&d)<<6|63&o)>127&&(l=c);break;case 3:o=e[i+1],f=e[i+2],128==(192&o)&&128==(192&f)&&(c=(15&d)<<12|(63&o)<<6|63&f)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:o=e[i+1],f=e[i+2],h=e[i+3],128==(192&o)&&128==(192&f)&&128==(192&h)&&(c=(15&d)<<18|(63&o)<<12|(63&f)<<6|63&h)>65535&&c<1114112&&(l=c)}null===l?(l=65533,m=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=m}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var r="",i=0;for(;i0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},d.prototype.compare=function(e,t,r,n,o){if(!d.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;for(var f=(o>>>=0)-(n>>>=0),h=(r>>>=0)-(t>>>=0),c=Math.min(f,h),l=this.slice(n,o),m=e.slice(t,r),i=0;io)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var f=!1;;)switch(n){case"hex":return x(this,e,t,r);case"utf8":case"utf-8":return A(this,e,t,r);case"ascii":return R(this,e,t,r);case"latin1":case"binary":return T(this,e,t,r);case"base64":return B(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,r);default:if(f)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),f=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function I(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;in)&&(r=n);for(var o="",i=t;ir)throw new RangeError("Trying to access beyond buffer length")}function U(e,t,r,n,o,f){if(!d.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function z(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function Y(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function H(e,t,r,n,o,f){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function F(e,t,r,n,f){return f||H(e,0,r,4),o.write(e,t,r,n,23,4),r+4}function W(e,t,r,n,f){return f||H(e,0,r,8),o.write(e,t,r,n,52,8),r+8}d.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t0&&(o*=256);)n+=this[e+--t]*o;return n},d.prototype.readUInt8=function(e,t){return t||N(e,1,this.length),this[e]},d.prototype.readUInt16LE=function(e,t){return t||N(e,2,this.length),this[e]|this[e+1]<<8},d.prototype.readUInt16BE=function(e,t){return t||N(e,2,this.length),this[e]<<8|this[e+1]},d.prototype.readUInt32LE=function(e,t){return t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},d.prototype.readUInt32BE=function(e,t){return t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},d.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||N(e,t,this.length);for(var n=this[e],o=1,i=0;++i=(o*=128)&&(n-=Math.pow(2,8*t)),n},d.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||N(e,t,this.length);for(var i=t,n=1,o=this[e+--i];i>0&&(n*=256);)o+=this[e+--i]*n;return o>=(n*=128)&&(o-=Math.pow(2,8*t)),o},d.prototype.readInt8=function(e,t){return t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},d.prototype.readInt16LE=function(e,t){t||N(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},d.prototype.readInt16BE=function(e,t){t||N(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},d.prototype.readInt32LE=function(e,t){return t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},d.prototype.readInt32BE=function(e,t){return t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},d.prototype.readFloatLE=function(e,t){return t||N(e,4,this.length),o.read(this,e,!0,23,4)},d.prototype.readFloatBE=function(e,t){return t||N(e,4,this.length),o.read(this,e,!1,23,4)},d.prototype.readDoubleLE=function(e,t){return t||N(e,8,this.length),o.read(this,e,!0,52,8)},d.prototype.readDoubleBE=function(e,t){return t||N(e,8,this.length),o.read(this,e,!1,52,8)},d.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||U(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[t]=255&e;++i=0&&(o*=256);)this[t+i]=e/o&255;return t+r},d.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||U(this,e,t,1,255,0),d.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},d.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||U(this,e,t,2,65535,0),d.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):z(this,e,t,!0),t+2},d.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||U(this,e,t,2,65535,0),d.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):z(this,e,t,!1),t+2},d.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||U(this,e,t,4,4294967295,0),d.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Y(this,e,t,!0),t+4},d.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||U(this,e,t,4,4294967295,0),d.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Y(this,e,t,!1),t+4},d.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);U(this,e,t,r,o-1,-o)}var i=0,f=1,sub=0;for(this[t]=255&e;++i>0)-sub&255;return t+r},d.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);U(this,e,t,r,o-1,-o)}var i=r-1,f=1,sub=0;for(this[t+i]=255&e;--i>=0&&(f*=256);)e<0&&0===sub&&0!==this[t+i+1]&&(sub=1),this[t+i]=(e/f>>0)-sub&255;return t+r},d.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||U(this,e,t,1,127,-128),d.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},d.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||U(this,e,t,2,32767,-32768),d.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):z(this,e,t,!0),t+2},d.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||U(this,e,t,2,32767,-32768),d.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):z(this,e,t,!1),t+2},d.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||U(this,e,t,4,2147483647,-2147483648),d.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Y(this,e,t,!0),t+4},d.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||U(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),d.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Y(this,e,t,!1),t+4},d.prototype.writeFloatLE=function(e,t,r){return F(this,e,t,!0,r)},d.prototype.writeFloatBE=function(e,t,r){return F(this,e,t,!1,r)},d.prototype.writeDoubleLE=function(e,t,r){return W(this,e,t,!0,r)},d.prototype.writeDoubleBE=function(e,t,r){return W(this,e,t,!1,r)},d.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else if(o<1e3||!d.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&f.push(239,191,189);continue}if(i+1===n){(t-=3)>-1&&f.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&f.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&f.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;f.push(r)}else if(r<2048){if((t-=2)<0)break;f.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;f.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;f.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return f}function $(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(V,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Z(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}}).call(this,r(9))},function(e,t,r){var n,o,f,h,c,d,l,m,v,y,_,w,M,S,k,E,x,A,R;e.exports=(n=r(4),r(46),void(n.lib.Cipher||(o=n,f=o.lib,h=f.Base,c=f.WordArray,d=f.BufferedBlockAlgorithm,l=o.enc,l.Utf8,m=l.Base64,v=o.algo.EvpKDF,y=f.Cipher=d.extend({cfg:h.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){d.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?R:x}return function(t){return{encrypt:function(r,n,o){return e(n).encrypt(t,r,n,o)},decrypt:function(r,n,o){return e(n).decrypt(t,r,n,o)}}}}()}),f.StreamCipher=y.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),_=o.mode={},w=f.BlockCipherMode=h.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),M=_.CBC=function(){var e=w.extend();function t(e,t,r){var n,o=this._iv;o?(n=o,this._iv=void 0):n=this._prevBlock;for(var i=0;i>>2];data.sigBytes-=e}},f.BlockCipher=y.extend({cfg:y.cfg.extend({mode:M,padding:S}),reset:function(){var e;y.reset.call(this);var t=this.cfg,r=t.iv,n=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,r&&r.words):(this._mode=e.call(n,this,r&&r.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),k=f.CipherParams=h.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),E=(o.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;return(r?c.create([1398893684,1701076831]).concat(r).concat(t):t).toString(m)},parse:function(e){var t,r=m.parse(e),n=r.words;return 1398893684==n[0]&&1701076831==n[1]&&(t=c.create(n.slice(2,4)),n.splice(0,4),r.sigBytes-=16),k.create({ciphertext:r,salt:t})}},x=f.SerializableCipher=h.extend({cfg:h.extend({format:E}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var o=e.createEncryptor(r,n),f=o.finalize(t),h=o.cfg;return k.create({ciphertext:f,key:r,iv:h.iv,algorithm:e,mode:h.mode,padding:h.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(r,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),A=(o.kdf={}).OpenSSL={execute:function(e,t,r,n){n||(n=c.random(8));var o=v.create({keySize:t+r}).compute(e,n),f=c.create(o.words.slice(t),4*r);return o.sigBytes=4*t,k.create({key:o,iv:f,salt:n})}},R=f.PasswordBasedCipher=x.extend({cfg:x.cfg.extend({kdf:A}),encrypt:function(e,t,r,n){var o=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize);n.iv=o.iv;var f=x.encrypt.call(this,e,t,o.key,n);return f.mixIn(o),f},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var o=n.kdf.execute(r,e.keySize,e.ivSize,t.salt);return n.iv=o.iv,x.decrypt.call(this,e,t,o.key,n)}}))))},,,,,,,,,,function(e,t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=r,r.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},function(e,t,r){"use strict";var n=t,o=r(11),f=r(25),h=r(256);n.assert=f,n.toArray=h.toArray,n.zero2=h.zero2,n.toHex=h.toHex,n.encode=h.encode,n.getNAF=function(e,t,r){var n=new Array(Math.max(e.bitLength(),r)+1);n.fill(0);for(var o=1<(o>>1)-1?(o>>1)-c:c,f.isubn(h)):h=0,n[i]=h,f.iushrn(1)}return n},n.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n=0,o=0;e.cmpn(-n)>0||t.cmpn(-o)>0;){var f,h,c,d=e.andln(3)+n&3,l=t.andln(3)+o&3;if(3===d&&(d=-1),3===l&&(l=-1),0==(1&d))f=0;else f=3!==(c=e.andln(7)+n&7)&&5!==c||2!==l?d:-d;if(r[0].push(f),0==(1&l))h=0;else h=3!==(c=t.andln(7)+o&7)&&5!==c||2!==d?l:-l;r[1].push(h),2*n===f+1&&(n=1-n),2*o===h+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new o(e,"hex","le")}},,,,function(e,t,r){"use strict";var n=r(25),o=r(1);function f(e,i){return 55296==(64512&e.charCodeAt(i))&&(!(i<0||i+1>=e.length)&&56320==(64512&e.charCodeAt(i+1)))}function h(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function c(e){return 1===e.length?"0"+e:e}function d(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=o,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i>6|192,r[p++]=63&n|128):f(e,i)?(n=65536+((1023&n)<<10)+(1023&e.charCodeAt(++i)),r[p++]=n>>18|240,r[p++]=n>>12&63|128,r[p++]=n>>6&63|128,r[p++]=63&n|128):(r[p++]=n>>12|224,r[p++]=n>>6&63|128,r[p++]=63&n|128)}else for(i=0;i>>0}return h},t.split32=function(e,t){for(var r=new Array(4*e.length),i=0,n=0;i>>24,r[n+1]=o>>>16&255,r[n+2]=o>>>8&255,r[n+3]=255&o):(r[n+3]=o>>>24,r[n+2]=o>>>16&255,r[n+1]=o>>>8&255,r[n]=255&o)}return r},t.rotr32=function(e,b){return e>>>b|e<<32-b},t.rotl32=function(e,b){return e<>>32-b},t.sum32=function(a,b){return a+b>>>0},t.sum32_3=function(a,b,e){return a+b+e>>>0},t.sum32_4=function(a,b,e,t){return a+b+e+t>>>0},t.sum32_5=function(a,b,e,t,r){return a+b+e+t+r>>>0},t.sum64=function(e,t,r,n){var o=e[t],f=n+e[t+1]>>>0,h=(f>>0,e[t+1]=f},t.sum64_hi=function(e,t,r,n){return(t+n>>>0>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,o,f,h,dl){var c=0,d=t;return c+=(d=d+n>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,n,o,f,h,dl){return t+n+f+dl>>>0},t.sum64_5_hi=function(e,t,r,n,o,f,h,dl,c,d){var l=0,m=t;return l+=(m=m+n>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,n,o,f,h,dl,c,d){return t+n+f+dl+d>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},,,,,,,,,,function(e,t,r){var n=r(3).Buffer,o=r(342).Transform,f=r(44).StringDecoder;function h(e){o.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(1)(h,o),h.prototype.update=function(data,e,t){"string"==typeof data&&(data=n.from(data,e));var r=this._update(data);return this.hashMode?this:(t&&(r=this._toString(r,t)),r)},h.prototype.setAutoPadding=function(){},h.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},h.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},h.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},h.prototype._transform=function(data,e,t){var r;try{this.hashMode?this._update(data):this.push(this._update(data))}catch(e){r=e}finally{t(r)}},h.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},h.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0);return e&&(t=this._toString(t,e,!0)),t},h.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new f(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},e.exports=h},,,function(e,t,r){"use strict";var n,o="object"==typeof Reflect?Reflect:null,f=o&&"function"==typeof o.apply?o.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};n=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var h=Number.isNaN||function(e){return e!=e};function c(){c.init.call(this)}e.exports=c,e.exports.once=function(e,t){return new Promise((function(r,n){function o(){void 0!==f&&e.removeListener("error",f),r([].slice.call(arguments))}var f;"error"!==t&&(f=function(r){e.removeListener(t,o),n(r)},e.once("error",f)),e.once(t,o)}))},c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var d=10;function l(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function m(e){return void 0===e._maxListeners?c.defaultMaxListeners:e._maxListeners}function v(e,t,r,n){var o,f,h,c;if(l(r),void 0===(f=e._events)?(f=e._events=Object.create(null),e._eventsCount=0):(void 0!==f.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),f=e._events),h=f[t]),void 0===h)h=f[t]=r,++e._eventsCount;else if("function"==typeof h?h=f[t]=n?[r,h]:[h,r]:n?h.unshift(r):h.push(r),(o=m(e))>0&&h.length>o&&!h.warned){h.warned=!0;var d=new Error("Possible EventEmitter memory leak detected. "+h.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");d.name="MaxListenersExceededWarning",d.emitter=e,d.type=t,d.count=h.length,c=d,console&&console.warn&&console.warn(c)}return e}function y(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=y.bind(n);return o.listener=r,n.wrapFn=o,o}function w(e,t,r){var n=e._events;if(void 0===n)return[];var o=n[t];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(e){for(var t=new Array(e.length),i=0;i0&&(o=t[0]),o instanceof Error)throw o;var h=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw h.context=o,h}var c=n[e];if(void 0===c)return!1;if("function"==typeof c)f(c,this,t);else{var d=c.length,l=S(c,d);for(i=0;i=0;i--)if(r[i]===t||r[i].listener===t){f=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(e,t){for(;t+1=0;i--)this.removeListener(e,t[i]);return this},c.prototype.listeners=function(e){return w(this,e,!0)},c.prototype.rawListeners=function(e){return w(this,e,!1)},c.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):M.call(e,t)},c.prototype.listenerCount=M,c.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},function(e,t,r){"use strict";var n=r(3).Buffer,o=n.isEncoding||function(e){switch((e=""+e)&&e.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 f(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){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 e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=d,this.end=l,t=4;break;case"utf8":this.fillLast=c,t=4;break;case"base64":this.text=m,this.end=v,t=3;break;default:return this.write=y,void(this.end=_)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function h(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function c(e){var p=this.lastTotal-this.lastNeed,t=function(e,t,p){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==t?t:this.lastNeed<=e.length?(e.copy(this.lastChar,p,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,p,0,e.length),void(this.lastNeed-=e.length))}function d(e,i){if((e.length-i)%2==0){var t=e.toString("utf16le",i);if(t){var r=t.charCodeAt(t.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],t.slice(0,-1)}return t}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",i,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function m(e,i){var t=(e.length-i)%3;return 0===t?e.toString("base64",i):(this.lastNeed=3-t,this.lastTotal=3,1===t?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",i,e.length-t))}function v(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function y(e){return e.toString(this.encoding)}function _(e){return e&&e.length?this.write(e):""}t.StringDecoder=f,f.prototype.write=function(e){if(0===e.length)return"";var t,i;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";i=this.lastNeed,this.lastNeed=0}else i=0;return i=0)return n>0&&(e.lastNeed=n-1),n;if(--r=0)return n>0&&(e.lastNeed=n-2),n;if(--r=0)return n>0&&(2===n?n=0:e.lastNeed=n-3),n;return 0}(this,e,i);if(!this.lastNeed)return e.toString("utf8",i);this.lastTotal=t;var r=e.length-(t-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",i,r)},f.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,r){"use strict";var n=r(105),o=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=v;var f=Object.create(r(85));f.inherits=r(1);var h=r(229),c=r(155);f.inherits(v,h);for(var d=o(c.prototype),l=0;l0&&n[n.length-1])||6!==f[0]&&2!==f[0])){o=0;continue}if(3===f[0]&&(!n||f[1]>n[0]&&f[1]=0&&O.getRuleDefinition("max")&&(n.max=r.maxlength),r.minlength>=0&&O.getRuleDefinition("min")&&(n.min=r.minlength),"number"===r.type&&(_(r.min)&&O.getRuleDefinition("min_value")&&(n.min_value=Number(r.min)),_(r.max)&&O.getRuleDefinition("max_value")&&(n.max_value=Number(r.max))),n):n}(e))):j(n)}function fe(e,t){return e.$scopedSlots.default?e.$scopedSlots.default(t)||[]:e.$slots.default||[]}function ue(e){return o(o({},e.flags),{errors:e.errors,classes:e.classes,failedRules:e.failedRules,reset:function(){return e.reset()},validate:function(){for(var t=[],r=0;r0)){var d=I().useConstraintAttrs?se(input):{};y(t._resolvedRules,d)||(t._needsValidation=!0),k(["input","select","textarea"],input.tag)&&(t.fieldName=(null===(f=null===(o=input.data)||void 0===o?void 0:o.attrs)||void 0===f?void 0:f.name)||(null===(c=null===(h=input.data)||void 0===h?void 0:h.attrs)||void 0===c?void 0:c.id)),t._resolvedRules=d,function(e,t){var r=te(t);e._inputEventName=e._inputEventName||ae(t,ee(t)),he(e,null==r?void 0:r.value);var n=le(e),o=n.onInput,f=n.onBlur,h=n.onValidate;oe(t,e._inputEventName,o),oe(t,"blur",f),e.normalizedEvents.forEach((function(e){oe(t,e,h)})),e.initialized=!0}(t,input)}})),this.slim&&r.length<=1?r[0]:e(this.tag,r)):this.slim&&r.length<=1?r[0]:e(this.tag,r)},beforeDestroy:function(){this.$_veeObserver.unobserve(this.id)},activated:function(){this.isActive=!0},deactivated:function(){this.isActive=!1},methods:{setFlags:function(e){var t=this;Object.keys(e).forEach((function(r){t.flags[r]=e[r]}))},syncValue:function(e){var t=J(e);this.value=t,this.flags.changed=this.initialValue!==t},reset:function(){var e=this;this.errors=[],this.initialValue=this.value;var t={untouched:!0,touched:!1,dirty:!1,pristine:!0,valid:!1,invalid:!1,validated:!1,pending:!1,required:!1,changed:!1,passed:!1,failed:!1};t.required=this.isRequired,this.setFlags(t),this.failedRules={},this.validateSilent(),this._pendingValidation=void 0,this._pendingReset=!0,setTimeout((function(){e._pendingReset=!1}),this.debounce)},validate:function(){for(var e=[],t=0;t0&&this.syncValue(e[0]),[2,de(this)]}))}))},validateSilent:function(){return f(this,void 0,void 0,(function(){var e,t;return h(this,(function(r){switch(r.label){case 0:return this.setFlags({pending:!0}),e=o(o({},this._resolvedRules),this.normalizedRules),Object.defineProperty(e,"_$$isNormalized",{value:!0,writable:!1,enumerable:!1,configurable:!1}),[4,z(this.value,e,o(o({name:this.name||this.fieldName},(n=this,f=n.$_veeObserver.refs,{names:{},values:{}},n.fieldDeps.reduce((function(e,t){return f[t]?(e.values[t]=f[t].value,e.names[t]=f[t].name,e):e}),{names:{},values:{}}))),{bails:this.bails,skipIfEmpty:this.skipIfEmpty,isInitial:!this.initialized,customMessages:this.customMessages}))];case 1:return t=r.sent(),this.setFlags({pending:!1,valid:t.valid,invalid:!t.valid}),[2,t]}var n,f}))}))},setErrors:function(e){this.applyResult({errors:e,failedRules:{}})},applyResult:function(e){var t=e.errors,r=e.failedRules,n=e.regenerateMap;this.errors=t,this._regenerateMap=n,this.failedRules=o({},r||{}),this.setFlags({valid:!t.length,passed:!t.length,invalid:!!t.length,failed:!!t.length,validated:!0,changed:this.value!==this.initialValue})},registerField:function(){!function(e){var t=function(e){if(e.vid)return e.vid;if(e.name)return e.name;if(e.id)return e.id;if(e.fieldName)return e.fieldName;return"_vee_"+ ++pe}(e),r=e.id;if(!e.isActive||r===t&&e.$_veeObserver.refs[r])return;r!==t&&e.$_veeObserver.refs[r]===e&&e.$_veeObserver.unobserve(r);e.id=t,e.$_veeObserver.observe(e)}(this)}}});var me=[["pristine","every"],["dirty","some"],["touched","some"],["untouched","every"],["valid","every"],["invalid","some"],["pending","some"],["validated","every"],["changed","some"],["passed","every"],["failed","some"]],ve=0;var ye=n.default.extend({name:"ValidationObserver",provide:function(){return{$_veeObserver:this}},inject:{$_veeObserver:{from:"$_veeObserver",default:function(){return this.$vnode.context.$_veeObserver?this.$vnode.context.$_veeObserver:null}}},props:{tag:{type:String,default:"span"},vid:{type:String,default:function(){return"obs_"+ve++}},slim:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data:function(){return{id:"",refs:{},observers:[],errors:{},flags:we(),fields:{}}},created:function(){var e=this;this.id=this.vid,_e(this);var t=R((function(t){var r=t.errors,n=t.flags,o=t.fields;e.errors=r,e.flags=n,e.fields=o}),16);this.$watch(Me,t)},activated:function(){_e(this)},deactivated:function(){ge(this)},beforeDestroy:function(){ge(this)},render:function(e){var t,r=fe(this,o(o({},(t=this).flags),{errors:t.errors,fields:t.fields,validate:t.validate,passes:t.handleSubmit,handleSubmit:t.handleSubmit,reset:t.reset}));return this.slim&&r.length<=1?r[0]:e(this.tag,{on:this.$listeners},r)},methods:{observe:function(e,t){var r;void 0===t&&(t="provider"),"observer"!==t?this.refs=o(o({},this.refs),((r={})[e.id]=e,r)):this.observers.push(e)},unobserve:function(e,t){if(void 0===t&&(t="provider"),"provider"!==t){var r=S(this.observers,(function(t){return t.id===e}));-1!==r&&this.observers.splice(r,1)}else{if(!this.refs[e])return;this.$delete(this.refs,e)}},validateWithInfo:function(e){var t=(void 0===e?{}:e).silent,r=void 0!==t&&t;return f(this,void 0,void 0,(function(){var e,t,n,o,f,d;return h(this,(function(h){switch(h.label){case 0:return[4,Promise.all(c(x(this.refs).filter((function(e){return!e.disabled})).map((function(e){return e[r?"validateSilent":"validate"]().then((function(e){return e.valid}))})),this.observers.filter((function(e){return!e.disabled})).map((function(e){return e.validate({silent:r})}))))];case 1:return e=h.sent(),t=e.every((function(e){return e})),n=Me.call(this),o=n.errors,f=n.flags,d=n.fields,this.errors=o,this.flags=f,this.fields=d,[2,{errors:o,flags:f,fields:d,isValid:t}]}}))}))},validate:function(e){var t=(void 0===e?{}:e).silent,r=void 0!==t&&t;return f(this,void 0,void 0,(function(){return h(this,(function(e){switch(e.label){case 0:return[4,this.validateWithInfo({silent:r})];case 1:return[2,e.sent().isValid]}}))}))},handleSubmit:function(e){return f(this,void 0,void 0,(function(){return h(this,(function(t){switch(t.label){case 0:return[4,this.validate()];case 1:return t.sent()&&e?[2,e()]:[2]}}))}))},reset:function(){return c(x(this.refs),this.observers).forEach((function(e){return e.reset()}))},setErrors:function(e){var t=this;Object.keys(e).forEach((function(r){var n=t.refs[r];if(n){var o=e[r]||[];o="string"==typeof o?[o]:o,n.setErrors(o)}})),this.observers.forEach((function(t){t.setErrors(e)}))}}});function ge(e){e.$_veeObserver&&e.$_veeObserver.unobserve(e.id,"observer")}function _e(e){e.$_veeObserver&&e.$_veeObserver.observe(e,"observer")}function we(){return o(o({},{untouched:!0,touched:!1,dirty:!1,pristine:!0,valid:!1,invalid:!1,validated:!1,pending:!1,required:!1,changed:!1,passed:!1,failed:!1}),{valid:!0,invalid:!1})}function Me(){for(var e=c(x(this.refs),this.observers),t={},r=we(),n={},f=e.length,i=0;i4294967295)throw new RangeError("requested too many random bytes");var r=o.allocUnsafe(e);if(e>0)if(e>65536)for(var h=0;h2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}o("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(e,t,r){var n,o,h,c;if("string"==typeof t&&(o="not ",t.substr(!h||h<0?0:+h,o.length)===o)?(n="must not be",t=t.replace(/^not /,"")):n="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))c="The ".concat(e," ").concat(n," ").concat(f(t,"type"));else{var d=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";c='The "'.concat(e,'" ').concat(d," ").concat(n," ").concat(f(t,"type"))}return c+=". Received type ".concat(typeof r)}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" 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(e){return"Unknown encoding: "+e}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=n},function(e,t,r){"use strict";(function(t){var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var o=r(221),f=r(225);r(1)(l,o);for(var h=n(f.prototype),c=0;c=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,o=(r-n)/4294967296;this._block.writeUInt32BE(o,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var f=this._hash();return e?f.toString(e):f},o.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=o},function(e,t,r){"use strict";var n={};function o(code,e,t){t||(t=Error);var r=function(t){var r,n;function o(r,n,o){return t.call(this,function(t,r,n){return"string"==typeof e?e:e(t,r,n)}(r,n,o))||this}return n=t,(r=o).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,o}(t);r.prototype.name=t.name,r.prototype.code=code,n[code]=r}function f(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(i){return String(i)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}o("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(e,t,r){var n,o,h,c;if("string"==typeof t&&(o="not ",t.substr(!h||h<0?0:+h,o.length)===o)?(n="must not be",t=t.replace(/^not /,"")):n="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))c="The ".concat(e," ").concat(n," ").concat(f(t,"type"));else{var d=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";c='The "'.concat(e,'" ').concat(d," ").concat(n," ").concat(f(t,"type"))}return c+=". Received type ".concat(typeof r)}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" 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(e){return"Unknown encoding: "+e}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=n},function(e,t,r){"use strict";(function(t){var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var o=r(250),f=r(254);r(1)(l,o);for(var h=n(f.prototype),c=0;c>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,f=0;f<4&&i+.75*f>>6*(3-f)&63));var h=map.charAt(64);if(h)for(;n.length%4;)n.push(h);return n.join("")},parse:function(e){var t=e.length,map=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var n=0;n>>6-i%4*2,d=h|c;n[f>>>2]|=d<<24-f%4*8,f++}return o.create(n,f)}(e,t,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},f.enc.Base64)},function(e,t,r){var n;e.exports=(n=r(4),function(e){var t=n,r=t.lib,o=r.WordArray,f=r.Hasher,h=t.algo,c=[];!function(){for(var i=0;i<64;i++)c[i]=4294967296*e.abs(e.sin(i+1))|0}();var d=h.MD5=f.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var i=0;i<16;i++){var r=t+i,n=e[r];e[r]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8)}var o=this._hash.words,f=e[t+0],h=e[t+1],d=e[t+2],_=e[t+3],w=e[t+4],M=e[t+5],S=e[t+6],k=e[t+7],E=e[t+8],x=e[t+9],A=e[t+10],R=e[t+11],T=e[t+12],B=e[t+13],O=e[t+14],D=e[t+15],a=o[0],b=o[1],P=o[2],I=o[3];a=l(a,b,P,I,f,7,c[0]),I=l(I,a,b,P,h,12,c[1]),P=l(P,I,a,b,d,17,c[2]),b=l(b,P,I,a,_,22,c[3]),a=l(a,b,P,I,w,7,c[4]),I=l(I,a,b,P,M,12,c[5]),P=l(P,I,a,b,S,17,c[6]),b=l(b,P,I,a,k,22,c[7]),a=l(a,b,P,I,E,7,c[8]),I=l(I,a,b,P,x,12,c[9]),P=l(P,I,a,b,A,17,c[10]),b=l(b,P,I,a,R,22,c[11]),a=l(a,b,P,I,T,7,c[12]),I=l(I,a,b,P,B,12,c[13]),P=l(P,I,a,b,O,17,c[14]),a=m(a,b=l(b,P,I,a,D,22,c[15]),P,I,h,5,c[16]),I=m(I,a,b,P,S,9,c[17]),P=m(P,I,a,b,R,14,c[18]),b=m(b,P,I,a,f,20,c[19]),a=m(a,b,P,I,M,5,c[20]),I=m(I,a,b,P,A,9,c[21]),P=m(P,I,a,b,D,14,c[22]),b=m(b,P,I,a,w,20,c[23]),a=m(a,b,P,I,x,5,c[24]),I=m(I,a,b,P,O,9,c[25]),P=m(P,I,a,b,_,14,c[26]),b=m(b,P,I,a,E,20,c[27]),a=m(a,b,P,I,B,5,c[28]),I=m(I,a,b,P,d,9,c[29]),P=m(P,I,a,b,k,14,c[30]),a=v(a,b=m(b,P,I,a,T,20,c[31]),P,I,M,4,c[32]),I=v(I,a,b,P,E,11,c[33]),P=v(P,I,a,b,R,16,c[34]),b=v(b,P,I,a,O,23,c[35]),a=v(a,b,P,I,h,4,c[36]),I=v(I,a,b,P,w,11,c[37]),P=v(P,I,a,b,k,16,c[38]),b=v(b,P,I,a,A,23,c[39]),a=v(a,b,P,I,B,4,c[40]),I=v(I,a,b,P,f,11,c[41]),P=v(P,I,a,b,_,16,c[42]),b=v(b,P,I,a,S,23,c[43]),a=v(a,b,P,I,x,4,c[44]),I=v(I,a,b,P,T,11,c[45]),P=v(P,I,a,b,D,16,c[46]),a=y(a,b=v(b,P,I,a,d,23,c[47]),P,I,f,6,c[48]),I=y(I,a,b,P,k,10,c[49]),P=y(P,I,a,b,O,15,c[50]),b=y(b,P,I,a,M,21,c[51]),a=y(a,b,P,I,T,6,c[52]),I=y(I,a,b,P,_,10,c[53]),P=y(P,I,a,b,A,15,c[54]),b=y(b,P,I,a,h,21,c[55]),a=y(a,b,P,I,E,6,c[56]),I=y(I,a,b,P,D,10,c[57]),P=y(P,I,a,b,S,15,c[58]),b=y(b,P,I,a,B,21,c[59]),a=y(a,b,P,I,w,6,c[60]),I=y(I,a,b,P,R,10,c[61]),P=y(P,I,a,b,d,15,c[62]),b=y(b,P,I,a,x,21,c[63]),o[0]=o[0]+a|0,o[1]=o[1]+b|0,o[2]=o[2]+P|0,o[3]=o[3]+I|0},_doFinalize:function(){var data=this._data,t=data.words,r=8*this._nDataBytes,n=8*data.sigBytes;t[n>>>5]|=128<<24-n%32;var o=e.floor(r/4294967296),f=r;t[15+(n+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),t[14+(n+64>>>9<<4)]=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),data.sigBytes=4*(t.length+1),this._process();for(var h=this._hash,c=h.words,i=0;i<4;i++){var d=c[i];c[i]=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8)}return h},clone:function(){var e=f.clone.call(this);return e._hash=this._hash.clone(),e}});function l(a,b,e,t,r,s,n){var o=a+(b&e|~b&t)+r+n;return(o<>>32-s)+b}function m(a,b,e,t,r,s,n){var o=a+(b&t|e&~t)+r+n;return(o<>>32-s)+b}function v(a,b,e,t,r,s,n){var o=a+(b^e^t)+r+n;return(o<>>32-s)+b}function y(a,b,e,t,r,s,n){var o=a+(e^(b|~t))+r+n;return(o<>>32-s)+b}t.MD5=f._createHelper(d),t.HmacMD5=f._createHmacHelper(d)}(Math),n.MD5)},function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";var n={name:"NoSsr",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(e,t){var r=t.parent,n=t.slots,o=t.props,f=n(),h=f.default;void 0===h&&(h=[]);var c=f.placeholder;return r._isMounted?h:(r.$once("hook:mounted",(function(){r.$forceUpdate()})),o.placeholderTag&&(o.placeholder||c)?e(o.placeholderTag,{class:["no-ssr-placeholder"]},o.placeholder||c):h.length>0?h.map((function(){return e(!1)})):e(!1))}};e.exports=n},,,,,,,,,,,,,function(e,t,r){"use strict";var n=r(1),o=r(148),f=r(151),h=r(152),c=r(40);function d(e){c.call(this,"digest"),this._hash=e}n(d,c),d.prototype._update=function(data){this._hash.update(data)},d.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new o:"rmd160"===e||"ripemd160"===e?new f:new d(h(e))}},function(e,t,r){(function(e){function r(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===r(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===r(e)},t.isError=function(e){return"[object Error]"===r(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=e.isBuffer}).call(this,r(14).Buffer)},function(e,t,r){(function(t){e.exports=function(a,b){for(var e=Math.min(a.length,b.length),r=new t(e),i=0;i=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o>>24]^m[w>>>16&255]^v[M>>>8&255]^y[255&S]^t[k++],h=l[w>>>24]^m[M>>>16&255]^v[S>>>8&255]^y[255&_]^t[k++],c=l[M>>>24]^m[S>>>16&255]^v[_>>>8&255]^y[255&w]^t[k++],d=l[S>>>24]^m[_>>>16&255]^v[w>>>8&255]^y[255&M]^t[k++],_=f,w=h,M=c,S=d;return f=(n[_>>>24]<<24|n[w>>>16&255]<<16|n[M>>>8&255]<<8|n[255&S])^t[k++],h=(n[w>>>24]<<24|n[M>>>16&255]<<16|n[S>>>8&255]<<8|n[255&_])^t[k++],c=(n[M>>>24]<<24|n[S>>>16&255]<<16|n[_>>>8&255]<<8|n[255&w])^t[k++],d=(n[S>>>24]<<24|n[_>>>16&255]<<16|n[w>>>8&255]<<8|n[255&M])^t[k++],[f>>>=0,h>>>=0,c>>>=0,d>>>=0]}var c=[0,1,2,4,8,16,32,64,128,27,54],d=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],n=[],o=[[],[],[],[]],f=[[],[],[],[]],h=0,c=0,i=0;i<256;++i){var d=c^c<<1^c<<2^c<<3^c<<4;d=d>>>8^255&d^99,r[h]=d,n[d]=h;var l=e[h],m=e[l],v=e[m],y=257*e[d]^16843008*d;o[0][h]=y<<24|y>>>8,o[1][h]=y<<16|y>>>16,o[2][h]=y<<8|y>>>24,o[3][h]=y,y=16843009*v^65537*m^257*l^16843008*h,f[0][d]=y<<24|y>>>8,f[1][d]=y<<16|y>>>16,f[2][d]=y<<8|y>>>24,f[3][d]=y,0===h?h=c=1:(h=l^e[e[e[v^l]]],c^=e[e[c]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:o,INV_SUB_MIX:f}}();function l(e){this._key=o(e),this._reset()}l.blockSize=16,l.keySize=32,l.prototype.blockSize=l.blockSize,l.prototype.keySize=l.keySize,l.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=4*(r+1),o=[],f=0;f>>24,h=d.SBOX[h>>>24]<<24|d.SBOX[h>>>16&255]<<16|d.SBOX[h>>>8&255]<<8|d.SBOX[255&h],h^=c[f/t|0]<<24):t>6&&f%t==4&&(h=d.SBOX[h>>>24]<<24|d.SBOX[h>>>16&255]<<16|d.SBOX[h>>>8&255]<<8|d.SBOX[255&h]),o[f]=o[f-t]^h}for(var l=[],m=0;m>>24]]^d.INV_SUB_MIX[1][d.SBOX[y>>>16&255]]^d.INV_SUB_MIX[2][d.SBOX[y>>>8&255]]^d.INV_SUB_MIX[3][d.SBOX[255&y]]}this._nRounds=r,this._keySchedule=o,this._invKeySchedule=l},l.prototype.encryptBlockRaw=function(e){return h(e=o(e),this._keySchedule,d.SUB_MIX,d.SBOX,this._nRounds)},l.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=n.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},l.prototype.decryptBlock=function(e){var t=(e=o(e))[1];e[1]=e[3],e[3]=t;var r=h(e,this._invKeySchedule,d.INV_SUB_MIX,d.INV_SBOX,this._nRounds),f=n.allocUnsafe(16);return f.writeUInt32BE(r[0],0),f.writeUInt32BE(r[3],4),f.writeUInt32BE(r[2],8),f.writeUInt32BE(r[1],12),f},l.prototype.scrub=function(){f(this._keySchedule),f(this._invKeySchedule),f(this._key)},e.exports.AES=l},function(e,t,r){var n=r(3).Buffer,o=r(148);e.exports=function(e,t,r,f){if(n.isBuffer(e)||(e=n.from(e,"binary")),t&&(n.isBuffer(t)||(t=n.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var h=r/8,c=n.alloc(h),d=n.alloc(f||0),l=n.alloc(0);h>0||f>0;){var m=new o;m.update(l),m.update(e),t&&m.update(t),l=m.digest();var v=0;if(h>0){var y=c.length-h;v=Math.min(h,l.length),l.copy(c,y,0,v),h-=v}if(v0){var _=d.length-f,w=Math.min(f,l.length-v);l.copy(d,_,v,v+w),f-=w}}return l.fill(0),{key:c,iv:d}}},function(e,t,r){"use strict";var n=r(11),o=r(26),f=o.getNAF,h=o.getJSF,c=o.assert;function d(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function l(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=d,d.prototype.point=function(){throw new Error("Not implemented")},d.prototype.validate=function(){throw new Error("Not implemented")},d.prototype._fixedNafMul=function(p,e){c(p.precomputed);var t=p._getDoubles(),r=f(e,1,this._bitLength),n=(1<=h;e--)d=(d<<1)+r[e];o.push(d)}for(var a=this.jpoint(null,null,null),b=this.jpoint(null,null,null),i=n;i>0;i--){for(h=0;h=0;i--){for(e=0;i>=0&&0===o[i];i--)e++;if(i>=0&&e++,h=h.dblp(e),i<0)break;var d=o[i];c(0!==d),h="affine"===p.type?d>0?h.mixedAdd(n[d-1>>1]):h.mixedAdd(n[-d-1>>1].neg()):d>0?h.add(n[d-1>>1]):h.add(n[-d-1>>1].neg())}return"affine"===p.type?h.toP():h},d.prototype._wnafMulAdd=function(e,t,r,n,o){for(var c=this._wnafT1,d=this._wnafT2,l=this._wnafT3,m=0,i=0;i=1;i-=2){var a=i-1,b=i;if(1===c[a]&&1===c[b]){var y=[t[a],null,null,t[b]];0===t[a].y.cmp(t[b].y)?(y[1]=t[a].add(t[b]),y[2]=t[a].toJ().mixedAdd(t[b].neg())):0===t[a].y.cmp(t[b].y.redNeg())?(y[1]=t[a].toJ().mixedAdd(t[b]),y[2]=t[a].add(t[b].neg())):(y[1]=t[a].toJ().mixedAdd(t[b]),y[2]=t[a].toJ().mixedAdd(t[b].neg()));var _=[-3,-1,-5,-7,0,7,5,1,3],w=h(r[a],r[b]);m=Math.max(w[0].length,m),l[a]=new Array(m),l[b]=new Array(m);for(var M=0;M=0;i--){for(var A=0;i>=0;){var R=!0;for(M=0;M=0&&A++,E=E.dblp(A),i<0)break;for(M=0;M0?p=d[M][T-1>>1]:T<0&&(p=d[M][-T-1>>1].neg()),E="affine"===p.type?E.mixedAdd(p):E.add(p))}}for(i=0;i=Math.ceil((e.bitLength()+1)/t.step)},l.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i>>32-t}function l(a,b,e,t,r,n,s){return d(a+(b&e|~b&t)+r+n|0,s)+b|0}function m(a,b,e,t,r,n,s){return d(a+(b&t|e&~t)+r+n|0,s)+b|0}function v(a,b,e,t,r,n,s){return d(a+(b^e^t)+r+n|0,s)+b|0}function y(a,b,e,t,r,n,s){return d(a+(e^(b|~t))+r+n|0,s)+b|0}n(c,o),c.prototype._update=function(){for(var e=h,i=0;i<16;++i)e[i]=this._block.readInt32LE(4*i);var a=this._a,b=this._b,t=this._c,r=this._d;a=l(a,b,t,r,e[0],3614090360,7),r=l(r,a,b,t,e[1],3905402710,12),t=l(t,r,a,b,e[2],606105819,17),b=l(b,t,r,a,e[3],3250441966,22),a=l(a,b,t,r,e[4],4118548399,7),r=l(r,a,b,t,e[5],1200080426,12),t=l(t,r,a,b,e[6],2821735955,17),b=l(b,t,r,a,e[7],4249261313,22),a=l(a,b,t,r,e[8],1770035416,7),r=l(r,a,b,t,e[9],2336552879,12),t=l(t,r,a,b,e[10],4294925233,17),b=l(b,t,r,a,e[11],2304563134,22),a=l(a,b,t,r,e[12],1804603682,7),r=l(r,a,b,t,e[13],4254626195,12),t=l(t,r,a,b,e[14],2792965006,17),a=m(a,b=l(b,t,r,a,e[15],1236535329,22),t,r,e[1],4129170786,5),r=m(r,a,b,t,e[6],3225465664,9),t=m(t,r,a,b,e[11],643717713,14),b=m(b,t,r,a,e[0],3921069994,20),a=m(a,b,t,r,e[5],3593408605,5),r=m(r,a,b,t,e[10],38016083,9),t=m(t,r,a,b,e[15],3634488961,14),b=m(b,t,r,a,e[4],3889429448,20),a=m(a,b,t,r,e[9],568446438,5),r=m(r,a,b,t,e[14],3275163606,9),t=m(t,r,a,b,e[3],4107603335,14),b=m(b,t,r,a,e[8],1163531501,20),a=m(a,b,t,r,e[13],2850285829,5),r=m(r,a,b,t,e[2],4243563512,9),t=m(t,r,a,b,e[7],1735328473,14),a=v(a,b=m(b,t,r,a,e[12],2368359562,20),t,r,e[5],4294588738,4),r=v(r,a,b,t,e[8],2272392833,11),t=v(t,r,a,b,e[11],1839030562,16),b=v(b,t,r,a,e[14],4259657740,23),a=v(a,b,t,r,e[1],2763975236,4),r=v(r,a,b,t,e[4],1272893353,11),t=v(t,r,a,b,e[7],4139469664,16),b=v(b,t,r,a,e[10],3200236656,23),a=v(a,b,t,r,e[13],681279174,4),r=v(r,a,b,t,e[0],3936430074,11),t=v(t,r,a,b,e[3],3572445317,16),b=v(b,t,r,a,e[6],76029189,23),a=v(a,b,t,r,e[9],3654602809,4),r=v(r,a,b,t,e[12],3873151461,11),t=v(t,r,a,b,e[15],530742520,16),a=y(a,b=v(b,t,r,a,e[2],3299628645,23),t,r,e[0],4096336452,6),r=y(r,a,b,t,e[7],1126891415,10),t=y(t,r,a,b,e[14],2878612391,15),b=y(b,t,r,a,e[5],4237533241,21),a=y(a,b,t,r,e[12],1700485571,6),r=y(r,a,b,t,e[3],2399980690,10),t=y(t,r,a,b,e[10],4293915773,15),b=y(b,t,r,a,e[1],2240044497,21),a=y(a,b,t,r,e[8],1873313359,6),r=y(r,a,b,t,e[15],4264355552,10),t=y(t,r,a,b,e[6],2734768916,15),b=y(b,t,r,a,e[13],1309151649,21),a=y(a,b,t,r,e[4],4149444226,6),r=y(r,a,b,t,e[11],3174756917,10),t=y(t,r,a,b,e[2],718787259,15),b=y(b,t,r,a,e[9],3951481745,21),this._a=this._a+a|0,this._b=this._b+b|0,this._c=this._c+t|0,this._d=this._d+r|0},c.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 e=f.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=c},function(e,t,r){(function(t){function r(e){try{if(!t.localStorage)return!1}catch(e){return!1}var r=t.localStorage[e];return null!=r&&"true"===String(r).toLowerCase()}e.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}}).call(this,r(9))},function(e,t,r){"use strict";var n=r(62).codes.ERR_STREAM_PREMATURE_CLOSE;function o(){}e.exports=function e(t,r,f){if("function"==typeof r)return e(t,null,r);r||(r={}),f=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),o=0;o>>32-t}function w(a,b,e,t,r,n,o,s){return _(a+(b^e^t)+n+o|0,s)+r|0}function M(a,b,e,t,r,n,o,s){return _(a+(b&e|~b&t)+n+o|0,s)+r|0}function S(a,b,e,t,r,n,o,s){return _(a+((b|~e)^t)+n+o|0,s)+r|0}function k(a,b,e,t,r,n,o,s){return _(a+(b&t|e&~t)+n+o|0,s)+r|0}function E(a,b,e,t,r,n,o,s){return _(a+(b^(e|~t))+n+o|0,s)+r|0}o(y,f),y.prototype._update=function(){for(var e=h,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,n=0|this._b,o=0|this._c,dl=0|this._d,f=0|this._e,y=0|this._a,br=0|this._b,x=0|this._c,A=0|this._d,R=0|this._e,i=0;i<80;i+=1){var T,tr;i<16?(T=w(r,n,o,dl,f,e[c[i]],v[0],l[i]),tr=E(y,br,x,A,R,e[d[i]],hr[0],m[i])):i<32?(T=M(r,n,o,dl,f,e[c[i]],v[1],l[i]),tr=k(y,br,x,A,R,e[d[i]],hr[1],m[i])):i<48?(T=S(r,n,o,dl,f,e[c[i]],v[2],l[i]),tr=S(y,br,x,A,R,e[d[i]],hr[2],m[i])):i<64?(T=k(r,n,o,dl,f,e[c[i]],v[3],l[i]),tr=M(y,br,x,A,R,e[d[i]],hr[3],m[i])):(T=E(r,n,o,dl,f,e[c[i]],v[4],l[i]),tr=w(y,br,x,A,R,e[d[i]],hr[4],m[i])),r=f,f=dl,dl=_(o,10),o=n,n=T,y=R,R=A,A=_(x,10),x=br,br=tr}var B=this._b+o+A|0;this._b=this._c+dl+R|0,this._c=this._d+f+y|0,this._d=this._e+r+br|0,this._e=this._a+n+x|0,this._a=B},y.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 e=n.alloc?n.alloc(20):new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=y},function(e,t,r){(t=e.exports=function(e){e=e.toLowerCase();var r=t[e];if(!r)throw new Error(e+" is not supported (we accept pull requests)");return new r}).sha=r(338),t.sha1=r(339),t.sha224=r(340),t.sha256=r(227),t.sha384=r(341),t.sha512=r(228)},function(e,t,r){(t=e.exports=r(229)).Stream=t,t.Readable=t,t.Writable=r(155),t.Duplex=r(45),t.Transform=r(232),t.PassThrough=r(346)},function(e,t,r){var n=r(14),o=n.Buffer;function f(e,t){for(var r in e)t[r]=e[r]}function h(e,t,r){return o(e,t,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=n:(f(n,t),t.Buffer=h),f(o,h),h.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,r)},h.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=o(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},h.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},h.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},function(e,t,r){"use strict";(function(t){var n=r(105);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var o=n.callback;t.pendingcb--,o(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=S;var f,h=n.nextTick;S.WritableState=M;var c=Object.create(r(85));c.inherits=r(1);var d={deprecate:r(149)},l=r(230),m=r(154).Buffer,v=t.Uint8Array||function(){};var y,_=r(231);function w(){}function M(e,t){f=f||r(45),e=e||{};var c=t instanceof f;this.objectMode=!!e.objectMode,c&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var d=e.highWaterMark,l=e.writableHighWaterMark,m=this.objectMode?16:16384;this.highWaterMark=d||0===d?d:c&&(l||0===l)?l:m,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var v=!1===e.decodeStrings;this.decodeStrings=!v,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,o=r.sync,f=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,o,f){--t.pendingcb,r?(n.nextTick(f,o),n.nextTick(T,e,t),e._writableState.errorEmitted=!0,e.emit("error",o)):(f(o),e._writableState.errorEmitted=!0,e.emit("error",o),T(e,t))}(e,r,o,t,f);else{var c=A(r);c||r.corked||r.bufferProcessing||!r.bufferedRequest||x(e,r),o?h(E,e,r,c,f):E(e,r,c,f)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function S(e){if(f=f||r(45),!(y.call(S,this)||this instanceof f))return new S(e);this._writableState=new M(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),l.call(this)}function k(e,t,r,n,o,f,h){t.writelen=n,t.writecb=h,t.writing=!0,t.sync=!0,r?e._writev(o,t.onwrite):e._write(o,f,t.onwrite),t.sync=!1}function E(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),T(e,t)}function x(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,f=new Array(n),h=t.corkedRequestsFree;h.entry=r;for(var c=0,d=!0;r;)f[c]=r,r.isBuf||(d=!1),r=r.next,c+=1;f.allBuffers=d,k(e,t,!0,t.length,f,"",h.finish),t.pendingcb++,t.lastBufferedRequest=null,h.next?(t.corkedRequestsFree=h.next,h.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,m=r.encoding,v=r.callback;if(k(e,t,!1,t.objectMode?1:l.length,l,m,v),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function A(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function R(e,t){e._final((function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),T(e,t)}))}function T(e,t){var r=A(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,n.nextTick(R,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}c.inherits(S,l),M.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(M.prototype,"buffer",{get:d.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(y=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(object){return!!y.call(this,object)||this===S&&(object&&object._writableState instanceof M)}})):y=function(object){return object instanceof this},S.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},S.prototype.write=function(e,t,r){var o,f=this._writableState,h=!1,c=!f.objectMode&&(o=e,m.isBuffer(o)||o instanceof v);return c&&!m.isBuffer(e)&&(e=function(e){return m.from(e)}(e)),"function"==typeof t&&(r=t,t=null),c?t="buffer":t||(t=f.defaultEncoding),"function"!=typeof r&&(r=w),f.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),n.nextTick(t,r)}(this,r):(c||function(e,t,r,o){var f=!0,h=!1;return null===r?h=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(h=new TypeError("Invalid non-string/buffer chunk")),h&&(e.emit("error",h),n.nextTick(o,h),f=!1),f}(this,f,e,r))&&(f.pendingcb++,h=function(e,t,r,n,o,f){if(!r){var h=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=m.from(t,r));return t}(t,n,o);n!==h&&(r=!0,o="buffer",n=h)}var c=t.objectMode?1:n.length;t.length+=c;var d=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},S.prototype._writev=null,S.prototype.end=function(e,t,r){var o=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),o.corked&&(o.corked=1,this.uncork()),o.ending||o.finished||function(e,t,r){t.ending=!0,T(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,o,r)},Object.defineProperty(S.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),S.prototype.destroy=_.destroy,S.prototype._undestroy=_.undestroy,S.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,r(9))},function(e,t,r){"use strict";var n=r(25);function o(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}e.exports=o,o.prototype._init=function(){},o.prototype.update=function(data){return 0===data.length?[]:"decrypt"===this.type?this._updateDecrypt(data):this._updateEncrypt(data)},o.prototype._buffer=function(data,e){for(var t=Math.min(this.buffer.length-this.bufferOff,data.length-e),i=0;i0;r--)e+=this._buffer(data,e),t+=this._flushBuffer(n,t);return e+=this._buffer(data,e),n},o.prototype.final=function(e){var t,r;return e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},o.prototype._pad=function(e,t){if(0===t)return!1;for(;t=0||!r.umod(e.prime1)||!r.umod(e.prime2);)r=new n(o(t));return r}e.exports=f,f.getr=h}).call(this,r(14).Buffer)},function(e,t,r){"use strict";var n=t;n.version=r(384).version,n.utils=r(26),n.rand=r(159),n.curve=r(257),n.curves=r(163),n.ec=r(395),n.eddsa=r(399)},function(e,t,r){"use strict";var pre,n=t,o=r(164),f=r(257),h=r(26).assert;function c(e){"short"===e.type?this.curve=new f.short(e):"edwards"===e.type?this.curve=new f.edwards(e):this.curve=new f.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,h(this.g.validate(),"Invalid curve"),h(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function d(e,t){Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:function(){var r=new c(t);return Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=c,d("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"]}),d("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"]}),d("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"]}),d("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"]}),d("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"]}),d("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"]}),d("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{pre=r(394)}catch(e){pre=void 0}d("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",pre]})},function(e,t,r){var n=t;n.utils=r(30),n.common=r(87),n.sha=r(388),n.ripemd=r(392),n.hmac=r(393),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},function(e,t,r){"use strict";(function(t){var n,o=r(14),f=o.Buffer,h={};for(n in o)o.hasOwnProperty(n)&&"SlowBuffer"!==n&&"Buffer"!==n&&(h[n]=o[n]);var c=h.Buffer={};for(n in f)f.hasOwnProperty(n)&&"allocUnsafe"!==n&&"allocUnsafeSlow"!==n&&(c[n]=f[n]);if(h.Buffer.prototype=f.prototype,c.from&&c.from!==Uint8Array.from||(c.from=function(e,t,r){if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&void 0===e.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return f(e,t,r)}),c.alloc||(c.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var n=f(e);return t&&0!==t.length?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n}),!h.kStringMaxLength)try{h.kStringMaxLength=t.binding("buffer").kStringMaxLength}catch(e){}h.constants||(h.constants={MAX_LENGTH:h.kMaxLength},h.kStringMaxLength&&(h.constants.MAX_STRING_LENGTH=h.kStringMaxLength)),e.exports=h}).call(this,r(13))},function(e,t,r){"use strict";const n=r(167).Reporter,o=r(88).EncoderBuffer,f=r(88).DecoderBuffer,h=r(25),c=["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"],d=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(c);function l(e,t,r){const n={};this._baseState=n,n.name=r,n.enc=e,n.parent=t||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}e.exports=l;const m=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];l.prototype.clone=function(){const e=this._baseState,t={};m.forEach((function(r){t[r]=e[r]}));const r=new this.constructor(t.parent);return r._baseState=t,r},l.prototype._wrap=function(){const e=this._baseState;d.forEach((function(t){this[t]=function(){const r=new this.constructor(this);return e.children.push(r),r[t].apply(r,arguments)}}),this)},l.prototype._init=function(body){const e=this._baseState;h(null===e.parent),body.call(this),e.children=e.children.filter((function(e){return e._baseState.parent===this}),this),h.equal(e.children.length,1,"Root node can have only one child")},l.prototype._useArgs=function(e){const t=this._baseState,r=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==r.length&&(h(null===t.children),t.children=r,r.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(h(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!=typeof e||e.constructor!==Object)return e;const t={};return Object.keys(e).forEach((function(r){r==(0|r)&&(r|=0);const n=e[r];t[n]=r})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){l.prototype[e]=function(){const t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),c.forEach((function(e){l.prototype[e]=function(){const t=this._baseState,r=Array.prototype.slice.call(arguments);return h(null===t.tag),t.tag=e,this._useArgs(r),this}})),l.prototype.use=function(e){h(e);const t=this._baseState;return h(null===t.use),t.use=e,this},l.prototype.optional=function(){return this._baseState.optional=!0,this},l.prototype.def=function(e){const t=this._baseState;return h(null===t.default),t.default=e,t.optional=!0,this},l.prototype.explicit=function(e){const t=this._baseState;return h(null===t.explicit&&null===t.implicit),t.explicit=e,this},l.prototype.implicit=function(e){const t=this._baseState;return h(null===t.explicit&&null===t.implicit),t.implicit=e,this},l.prototype.obj=function(){const e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},l.prototype.key=function(e){const t=this._baseState;return h(null===t.key),t.key=e,this},l.prototype.any=function(){return this._baseState.any=!0,this},l.prototype.choice=function(e){const t=this._baseState;return h(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},l.prototype.contains=function(e){const t=this._baseState;return h(null===t.use),t.contains=e,this},l.prototype._decode=function(input,e){const t=this._baseState;if(null===t.parent)return input.wrapResult(t.children[0]._decode(input,e));let r,n=t.default,o=!0,h=null;if(null!==t.key&&(h=input.enterKey(t.key)),t.optional){let r=null;if(null!==t.explicit?r=t.explicit:null!==t.implicit?r=t.implicit:null!==t.tag&&(r=t.tag),null!==r||t.any){if(o=this._peekTag(input,r,t.any),input.isError(o))return o}else{const r=input.save();try{null===t.choice?this._decodeGeneric(t.tag,input,e):this._decodeChoice(input,e),o=!0}catch(e){o=!1}input.restore(r)}}if(t.obj&&o&&(r=input.enterObject()),o){if(null!==t.explicit){const e=this._decodeTag(input,t.explicit);if(input.isError(e))return e;input=e}const r=input.offset;if(null===t.use&&null===t.choice){let e;t.any&&(e=input.save());const body=this._decodeTag(input,null!==t.implicit?t.implicit:t.tag,t.any);if(input.isError(body))return body;t.any?n=input.raw(e):input=body}if(e&&e.track&&null!==t.tag&&e.track(input.path(),r,input.length,"tagged"),e&&e.track&&null!==t.tag&&e.track(input.path(),input.offset,input.length,"content"),t.any||(n=null===t.choice?this._decodeGeneric(t.tag,input,e):this._decodeChoice(input,e)),input.isError(n))return n;if(t.any||null!==t.choice||null===t.children||t.children.forEach((function(t){t._decode(input,e)})),t.contains&&("octstr"===t.tag||"bitstr"===t.tag)){const data=new f(n);n=this._getUse(t.contains,input._reporterState.obj)._decode(data,e)}}return t.obj&&o&&(n=input.leaveObject(r)),null===t.key||null===n&&!0!==o?null!==h&&input.exitKey(h):input.leaveKey(h,t.key,n),n},l.prototype._decodeGeneric=function(e,input,t){const r=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(input,e,r.args[0],t):/str$/.test(e)?this._decodeStr(input,e,t):"objid"===e&&r.args?this._decodeObjid(input,r.args[0],r.args[1],t):"objid"===e?this._decodeObjid(input,null,null,t):"gentime"===e||"utctime"===e?this._decodeTime(input,e,t):"null_"===e?this._decodeNull(input,t):"bool"===e?this._decodeBool(input,t):"objDesc"===e?this._decodeStr(input,e,t):"int"===e||"enum"===e?this._decodeInt(input,r.args&&r.args[0],t):null!==r.use?this._getUse(r.use,input._reporterState.obj)._decode(input,t):input.error("unknown tag: "+e)},l.prototype._getUse=function(e,t){const r=this._baseState;return r.useDecoder=this._use(e,t),h(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},l.prototype._decodeChoice=function(input,e){const t=this._baseState;let r=null,n=!1;return Object.keys(t.choice).some((function(o){const f=input.save(),h=t.choice[o];try{const t=h._decode(input,e);if(input.isError(t))return!1;r={type:o,value:t},n=!0}catch(e){return input.restore(f),!1}return!0}),this),n?r:input.error("Choice not matched")},l.prototype._createEncoderBuffer=function(data){return new o(data,this.reporter)},l.prototype._encode=function(data,e,t){const r=this._baseState;if(null!==r.default&&r.default===data)return;const n=this._encodeValue(data,e,t);return void 0===n||this._skipDefault(n,e,t)?void 0:n},l.prototype._encodeValue=function(data,e,t){const r=this._baseState;if(null===r.parent)return r.children[0]._encode(data,e||new n);let o=null;if(this.reporter=e,r.optional&&void 0===data){if(null===r.default)return;data=r.default}let content=null,f=!1;if(r.any)o=this._createEncoderBuffer(data);else if(r.choice)o=this._encodeChoice(data,e);else if(r.contains)content=this._getUse(r.contains,t)._encode(data,e),f=!0;else if(r.children)content=r.children.map((function(t){if("null_"===t._baseState.tag)return t._encode(null,e,data);if(null===t._baseState.key)return e.error("Child should have a key");const r=e.enterKey(t._baseState.key);if("object"!=typeof data)return e.error("Child expected, but input is not object");const n=t._encode(data[t._baseState.key],e,data);return e.leaveKey(r),n}),this).filter((function(e){return e})),content=this._createEncoderBuffer(content);else if("seqof"===r.tag||"setof"===r.tag){if(!r.args||1!==r.args.length)return e.error("Too many args for : "+r.tag);if(!Array.isArray(data))return e.error("seqof/setof, but data is not Array");const t=this.clone();t._baseState.implicit=null,content=this._createEncoderBuffer(data.map((function(t){const r=this._baseState;return this._getUse(r.args[0],data)._encode(t,e)}),t))}else null!==r.use?o=this._getUse(r.use,t)._encode(data,e):(content=this._encodePrimitive(r.tag,data),f=!0);if(!r.any&&null===r.choice){const t=null!==r.implicit?r.implicit:r.tag,n=null===r.implicit?"universal":"context";null===t?null===r.use&&e.error("Tag could be omitted only for .use()"):null===r.use&&(o=this._encodeComposite(t,f,n,content))}return null!==r.explicit&&(o=this._encodeComposite(r.explicit,!1,"context",o)),o},l.prototype._encodeChoice=function(data,e){const t=this._baseState,r=t.choice[data.type];return r||h(!1,data.type+" not found in "+JSON.stringify(Object.keys(t.choice))),r._encode(data.value,e)},l.prototype._encodePrimitive=function(e,data){const t=this._baseState;if(/str$/.test(e))return this._encodeStr(data,e);if("objid"===e&&t.args)return this._encodeObjid(data,t.reverseArgs[0],t.args[1]);if("objid"===e)return this._encodeObjid(data,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(data,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(data,t.args&&t.reverseArgs[0]);if("bool"===e)return this._encodeBool(data);if("objDesc"===e)return this._encodeStr(data,e);throw new Error("Unsupported tag: "+e)},l.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},l.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}},function(e,t,r){"use strict";const n=r(1);function o(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function f(path,e){this.path=path,this.rethrow(e)}t.Reporter=o,o.prototype.isError=function(e){return e instanceof f},o.prototype.save=function(){const e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},o.prototype.restore=function(data){const e=this._reporterState;e.obj=data.obj,e.path=e.path.slice(0,data.pathLen)},o.prototype.enterKey=function(e){return this._reporterState.path.push(e)},o.prototype.exitKey=function(e){const t=this._reporterState;t.path=t.path.slice(0,e-1)},o.prototype.leaveKey=function(e,t,r){const n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=r)},o.prototype.path=function(){return this._reporterState.path.join("/")},o.prototype.enterObject=function(){const e=this._reporterState,t=e.obj;return e.obj={},t},o.prototype.leaveObject=function(e){const t=this._reporterState,r=t.obj;return t.obj=e,r},o.prototype.error=function(e){let t;const r=this._reporterState,n=e instanceof f;if(t=n?e:new f(r.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!r.options.partial)throw t;return n||r.errors.push(t),t},o.prototype.wrapResult=function(e){const t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},n(f,Error),f.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,f),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},function(e,t,r){"use strict";function n(map){const e={};return Object.keys(map).forEach((function(t){(0|t)==t&&(t|=0);const r=map[t];e[r]=t})),e}t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=n(t.tagClass),t.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"},t.tagByName=n(t.tag)},function(e,t,r){var n,o,f,h,c,d,l,m;e.exports=(m=r(4),o=(n=m).lib,f=o.WordArray,h=o.Hasher,c=n.algo,d=[],l=c.SHA1=h.extend({_doReset:function(){this._hash=new f.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,a=r[0],b=r[1],n=r[2],o=r[3],f=r[4],i=0;i<80;i++){if(i<16)d[i]=0|e[t+i];else{var h=d[i-3]^d[i-8]^d[i-14]^d[i-16];d[i]=h<<1|h>>>31}var c=(a<<5|a>>>27)+f+d[i];c+=i<20?1518500249+(b&n|~b&o):i<40?1859775393+(b^n^o):i<60?(b&n|b&o|n&o)-1894007588:(b^n^o)-899497514,f=o,o=n,n=b<<30|b>>>2,b=a,a=c}r[0]=r[0]+a|0,r[1]=r[1]+b|0,r[2]=r[2]+n|0,r[3]=r[3]+o|0,r[4]=r[4]+f|0},_doFinalize:function(){var data=this._data,e=data.words,t=8*this._nDataBytes,r=8*data.sigBytes;return e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=Math.floor(t/4294967296),e[15+(r+64>>>9<<4)]=t,data.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var e=h.clone.call(this);return e._hash=this._hash.clone(),e}}),n.SHA1=h._createHelper(l),n.HmacSHA1=h._createHmacHelper(l),m.SHA1)},function(e,t,r){var n,o,f,h;e.exports=(n=r(4),f=(o=n).lib.Base,h=o.enc.Utf8,void(o.algo.HMAC=f.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=h.parse(t));var r=e.blockSize,n=4*r;t.sigBytes>n&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),f=this._iKey=t.clone(),c=o.words,d=f.words,i=0;it.parts.length&&(r.parts.length=t.parts.length)}else{var o=[];for(n=0;ne.length)&&(t=e.length);for(var i=0,r=new Array(t);i0?h.map((function(){return e(!1)})):e(!1))}};e.exports=n},,function(e,t,r){(function(e){e.exports=function(){"use strict";var t,n;function o(){return t.apply(null,arguments)}function f(input){return input instanceof Array||"[object Array]"===Object.prototype.toString.call(input)}function h(input){return null!=input&&"[object Object]"===Object.prototype.toString.call(input)}function c(a,b){return Object.prototype.hasOwnProperty.call(a,b)}function d(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(c(e,t))return!1;return!0}function l(input){return void 0===input}function m(input){return"number"==typeof input||"[object Number]"===Object.prototype.toString.call(input)}function v(input){return input instanceof Date||"[object Date]"===Object.prototype.toString.call(input)}function map(e,t){var i,r=[];for(i=0;i>>0;for(i=0;i0)for(i=0;i=0?r?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+n}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null,O=Object.keys?Object.keys:function(e){var i,t=[];for(i in e)c(e,i)&&t.push(i);return t};var N=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,U=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,z={},Y={};function H(e,t,r,n){var o=n;"string"==typeof n&&(o=function(){return this[n]()}),e&&(Y[e]=o),t&&(Y[t[0]]=function(){return L(o.apply(this,arguments),t[1],t[2])}),r&&(Y[r]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function F(e,t){return e.isValid()?(t=W(t,e.localeData()),z[t]=z[t]||function(e){var i,t,input,r=e.match(N);for(i=0,t=r.length;i=0&&U.test(e);)e=e.replace(U,r),U.lastIndex=0,i-=1;return e}var V={};function K(e,t){var r=e.toLowerCase();V[r]=V[r+"s"]=V[t]=e}function G(e){return"string"==typeof e?V[e]||V[e.toLowerCase()]:void 0}function $(e){var t,r,n={};for(r in e)c(e,r)&&(t=G(r))&&(n[t]=e[r]);return n}var Z={};function X(e,t){Z[e]=t}function J(e){return e%4==0&&e%100!=0||e%400==0}function Q(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ee(e){var t=+e,r=0;return 0!==t&&isFinite(t)&&(r=Q(t)),r}function te(e,t){return function(r){return null!=r?(ne(this,e,r),o.updateOffset(this,t),this):re(this,e)}}function re(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function ne(e,t,r){e.isValid()&&!isNaN(r)&&("FullYear"===t&&J(e.year())&&1===e.month()&&29===e.date()?(r=ee(r),e._d["set"+(e._isUTC?"UTC":"")+t](r,e.month(),Te(r,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](r))}var ie,oe=/\d/,ae=/\d\d/,se=/\d{3}/,fe=/\d{4}/,ue=/[+-]?\d{6}/,he=/\d\d?/,ce=/\d\d\d\d?/,de=/\d\d\d\d\d\d?/,le=/\d{1,3}/,pe=/\d{1,4}/,be=/[+-]?\d{1,6}/,me=/\d+/,ve=/[+-]?\d+/,ye=/Z|[+-]\d\d:?\d\d/gi,ge=/Z|[+-]\d\d(?::?\d\d)?/gi,_e=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function we(e,t,r){ie[e]=I(t)?t:function(e,n){return e&&r?r:t}}function Me(e,t){return c(ie,e)?ie[e](t._strict,t._locale):new RegExp(Se(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,r,n,o){return t||r||n||o}))))}function Se(s){return s.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ie={};var ke,Ee={};function xe(e,t){var i,r=t;for("string"==typeof e&&(e=[e]),m(t)&&(r=function(input,e){e[t]=ee(input)}),i=0;i68?1900:2e3)};var qe=te("FullYear",!0);function ze(e,t,r,n,o,s,f){var h;return e<100&&e>=0?(h=new Date(e+400,t,r,n,o,s,f),isFinite(h.getFullYear())&&h.setFullYear(e)):h=new Date(e,t,r,n,o,s,f),h}function Ye(e){var t,r;return e<100&&e>=0?((r=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function He(e,t,r){var n=7+t-r;return-(7+Ye(e,0,n).getUTCDay()-t)%7+n-1}function Fe(e,t,r,n,o){var f,h,c=1+7*(t-1)+(7+r-n)%7+He(e,n,o);return c<=0?h=Ue(f=e-1)+c:c>Ue(e)?(f=e+1,h=c-Ue(e)):(f=e,h=c),{year:f,dayOfYear:h}}function We(e,t,r){var n,o,f=He(e.year(),t,r),h=Math.floor((e.dayOfYear()-f-1)/7)+1;return h<1?n=h+Ve(o=e.year()-1,t,r):h>Ve(e.year(),t,r)?(n=h-Ve(e.year(),t,r),o=e.year()+1):(o=e.year(),n=h),{week:n,year:o}}function Ve(e,t,r){var n=He(e,t,r),o=He(e+1,t,r);return(Ue(e)-n+o)/7}function Ke(e,t){return e.slice(t,7).concat(e.slice(0,t))}H("w",["ww",2],"wo","week"),H("W",["WW",2],"Wo","isoWeek"),K("week","w"),K("isoWeek","W"),X("week",5),X("isoWeek",5),we("w",he),we("ww",he,ae),we("W",he),we("WW",he,ae),Ae(["w","ww","W","WW"],(function(input,e,t,r){e[r.substr(0,1)]=ee(input)})),H("d",0,"do","day"),H("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),H("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),H("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),H("e",0,0,"weekday"),H("E",0,0,"isoWeekday"),K("day","d"),K("weekday","e"),K("isoWeekday","E"),X("day",11),X("weekday",11),X("isoWeekday",11),we("d",he),we("e",he),we("E",he),we("dd",(function(e,t){return t.weekdaysMinRegex(e)})),we("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),we("dddd",(function(e,t){return t.weekdaysRegex(e)})),Ae(["dd","ddd","dddd"],(function(input,e,t,r){var n=t._locale.weekdaysParse(input,r,t._strict);null!=n?e.d=n:w(t).invalidWeekday=input})),Ae(["d","e","E"],(function(input,e,t,r){e[r]=ee(input)}));var Ge="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),$e="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ze="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Xe=_e,Je=_e,Qe=_e;function et(e,t,r){var i,n,o,f=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=_([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return r?"dddd"===t?-1!==(n=ke.call(this._weekdaysParse,f))?n:null:"ddd"===t?-1!==(n=ke.call(this._shortWeekdaysParse,f))?n:null:-1!==(n=ke.call(this._minWeekdaysParse,f))?n:null:"dddd"===t?-1!==(n=ke.call(this._weekdaysParse,f))||-1!==(n=ke.call(this._shortWeekdaysParse,f))||-1!==(n=ke.call(this._minWeekdaysParse,f))?n:null:"ddd"===t?-1!==(n=ke.call(this._shortWeekdaysParse,f))||-1!==(n=ke.call(this._weekdaysParse,f))||-1!==(n=ke.call(this._minWeekdaysParse,f))?n:null:-1!==(n=ke.call(this._minWeekdaysParse,f))||-1!==(n=ke.call(this._weekdaysParse,f))||-1!==(n=ke.call(this._shortWeekdaysParse,f))?n:null}function tt(){function e(a,b){return b.length-a.length}var i,t,r,n,o,f=[],h=[],c=[],d=[];for(i=0;i<7;i++)t=_([2e3,1]).day(i),r=Se(this.weekdaysMin(t,"")),n=Se(this.weekdaysShort(t,"")),o=Se(this.weekdays(t,"")),f.push(r),h.push(n),c.push(o),d.push(r),d.push(n),d.push(o);f.sort(e),h.sort(e),c.sort(e),d.sort(e),this._weekdaysRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+f.join("|")+")","i")}function nt(){return this.hours()%12||12}function it(e,t){H(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function ot(e,t){return t._meridiemParse}H("H",["HH",2],0,"hour"),H("h",["hh",2],0,nt),H("k",["kk",2],0,(function(){return this.hours()||24})),H("hmm",0,0,(function(){return""+nt.apply(this)+L(this.minutes(),2)})),H("hmmss",0,0,(function(){return""+nt.apply(this)+L(this.minutes(),2)+L(this.seconds(),2)})),H("Hmm",0,0,(function(){return""+this.hours()+L(this.minutes(),2)})),H("Hmmss",0,0,(function(){return""+this.hours()+L(this.minutes(),2)+L(this.seconds(),2)})),it("a",!0),it("A",!1),K("hour","h"),X("hour",13),we("a",ot),we("A",ot),we("H",he),we("h",he),we("k",he),we("HH",he,ae),we("hh",he,ae),we("kk",he,ae),we("hmm",ce),we("hmmss",de),we("Hmm",ce),we("Hmmss",de),xe(["H","HH"],3),xe(["k","kk"],(function(input,e,t){var r=ee(input);e[3]=24===r?0:r})),xe(["a","A"],(function(input,e,t){t._isPm=t._locale.isPM(input),t._meridiem=input})),xe(["h","hh"],(function(input,e,t){e[3]=ee(input),w(t).bigHour=!0})),xe("hmm",(function(input,e,t){var r=input.length-2;e[3]=ee(input.substr(0,r)),e[4]=ee(input.substr(r)),w(t).bigHour=!0})),xe("hmmss",(function(input,e,t){var r=input.length-4,n=input.length-2;e[3]=ee(input.substr(0,r)),e[4]=ee(input.substr(r,2)),e[5]=ee(input.substr(n)),w(t).bigHour=!0})),xe("Hmm",(function(input,e,t){var r=input.length-2;e[3]=ee(input.substr(0,r)),e[4]=ee(input.substr(r))})),xe("Hmmss",(function(input,e,t){var r=input.length-4,n=input.length-2;e[3]=ee(input.substr(0,r)),e[4]=ee(input.substr(r,2)),e[5]=ee(input.substr(n))}));var at,st=te("Hours",!0),ft={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,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",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Be,monthsShort:Oe,week:{dow:0,doy:6},weekdays:Ge,weekdaysMin:Ze,weekdaysShort:$e,meridiemParse:/[ap]\.?m?\.?/i},ut={},ht={};function ct(e,t){var i,r=Math.min(e.length,t.length);for(i=0;i0;){if(n=pt(o.slice(0,t).join("-")))return n;if(r&&r.length>=t&&ct(o,r)>=t-1)break;t--}i++}return at}(e)}function yt(e){var t,a=e._a;return a&&-2===w(e).overflow&&(t=a[1]<0||a[1]>11?1:a[2]<1||a[2]>Te(a[0],a[1])?2:a[3]<0||a[3]>24||24===a[3]&&(0!==a[4]||0!==a[5]||0!==a[6])?3:a[4]<0||a[4]>59?4:a[5]<0||a[5]>59?5:a[6]<0||a[6]>999?6:-1,w(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),w(e)._overflowWeeks&&-1===t&&(t=7),w(e)._overflowWeekday&&-1===t&&(t=8),w(e).overflow=t),e}var gt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,_t=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wt=/Z|[+-]\d\d(?::?\d\d)?/,Mt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],St=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],kt=/^\/?Date\((-?\d+)/i,Et=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,xt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function At(e){var i,t,r,n,o,f,h=e._i,c=gt.exec(h)||_t.exec(h);if(c){for(w(e).iso=!0,i=0,t=Mt.length;i7)&&(d=!0)):(f=e._locale._week.dow,h=e._locale._week.doy,l=We(Ct(),f,h),r=Bt(t.gg,e._a[0],l.year),n=Bt(t.w,l.week),null!=t.d?((o=t.d)<0||o>6)&&(d=!0):null!=t.e?(o=t.e+f,(t.e<0||t.e>6)&&(d=!0)):o=f),n<1||n>Ve(r,f,h)?w(e)._overflowWeeks=!0:null!=d?w(e)._overflowWeekday=!0:(c=Fe(r,n,o,f,h),e._a[0]=c.year,e._dayOfYear=c.dayOfYear)}(e),null!=e._dayOfYear&&(f=Bt(e._a[0],r[0]),(e._dayOfYear>Ue(f)||0===e._dayOfYear)&&(w(e)._overflowDayOfYear=!0),t=Ye(f,0,e._dayOfYear),e._a[1]=t.getUTCMonth(),e._a[2]=t.getUTCDate()),i=0;i<3&&null==e._a[i];++i)e._a[i]=input[i]=r[i];for(;i<7;i++)e._a[i]=input[i]=null==e._a[i]?2===i?1:0:e._a[i];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Ye:ze).apply(null,input),n=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==n&&(w(e).weekdayMismatch=!0)}}function Dt(e){if(e._f!==o.ISO_8601)if(e._f!==o.RFC_2822){e._a=[],w(e).empty=!0;var i,t,r,n,f,h,c=""+e._i,d=c.length,l=0;for(r=W(e._f,e._locale).match(N)||[],i=0;i0&&w(e).unusedInput.push(f),c=c.slice(c.indexOf(t)+t.length),l+=t.length),Y[n]?(t?w(e).empty=!1:w(e).unusedTokens.push(n),Re(n,t,e)):e._strict&&!t&&w(e).unusedTokens.push(n);w(e).charsLeftOver=d-l,c.length>0&&w(e).unusedInput.push(c),e._a[3]<=12&&!0===w(e).bigHour&&e._a[3]>0&&(w(e).bigHour=void 0),w(e).parsedDateParts=e._a.slice(0),w(e).meridiem=e._meridiem,e._a[3]=function(e,t,r){var n;return null==r?t:null!=e.meridiemHour?e.meridiemHour(t,r):null!=e.isPM?((n=e.isPM(r))&&t<12&&(t+=12),n||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(h=w(e).era)&&(e._a[0]=e._locale.erasConvertYear(h,e._a[0])),Ot(e),yt(e)}else Tt(e);else At(e)}function Pt(e){var input=e._i,t=e._f;return e._locale=e._locale||vt(e._l),null===input||void 0===t&&""===input?S({nullInput:!0}):("string"==typeof input&&(e._i=input=e._locale.preparse(input)),R(input)?new A(yt(input)):(v(input)?e._d=input:f(t)?function(e){var t,r,n,i,o,f,h=!1;if(0===e._f.length)return w(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;ithis?this:e:S()}));function Nt(e,t){var r,i;if(1===t.length&&f(t[0])&&(t=t[0]),!t.length)return Ct();for(r=t[0],i=1;i=0?new Date(e+400,t,r)-126227808e5:new Date(e,t,r).valueOf()}function mr(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-126227808e5:Date.UTC(e,t,r)}function vr(e,t){return t.erasAbbrRegex(e)}function yr(){var i,e,t=[],r=[],n=[],o=[],f=this.eras();for(i=0,e=f.length;i(o=Ve(input,r,n))&&(e=o),wr.call(this,input,e,t,r,n))}function wr(e,t,r,n,o){var f=Fe(e,t,r,n,o),h=Ye(f.year,0,f.dayOfYear);return this.year(h.getUTCFullYear()),this.month(h.getUTCMonth()),this.date(h.getUTCDate()),this}H("N",0,0,"eraAbbr"),H("NN",0,0,"eraAbbr"),H("NNN",0,0,"eraAbbr"),H("NNNN",0,0,"eraName"),H("NNNNN",0,0,"eraNarrow"),H("y",["y",1],"yo","eraYear"),H("y",["yy",2],0,"eraYear"),H("y",["yyy",3],0,"eraYear"),H("y",["yyyy",4],0,"eraYear"),we("N",vr),we("NN",vr),we("NNN",vr),we("NNNN",(function(e,t){return t.erasNameRegex(e)})),we("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),xe(["N","NN","NNN","NNNN","NNNNN"],(function(input,e,t,r){var n=t._locale.erasParse(input,r,t._strict);n?w(t).era=n:w(t).invalidEra=input})),we("y",me),we("yy",me),we("yyy",me),we("yyyy",me),we("yo",(function(e,t){return t._eraYearOrdinalRegex||me})),xe(["y","yy","yyy","yyyy"],0),xe(["yo"],(function(input,e,t,r){var n;t._locale._eraYearOrdinalRegex&&(n=input.match(t._locale._eraYearOrdinalRegex)),t._locale.eraYearOrdinalParse?e[0]=t._locale.eraYearOrdinalParse(input,n):e[0]=parseInt(input,10)})),H(0,["gg",2],0,(function(){return this.weekYear()%100})),H(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),gr("gggg","weekYear"),gr("ggggg","weekYear"),gr("GGGG","isoWeekYear"),gr("GGGGG","isoWeekYear"),K("weekYear","gg"),K("isoWeekYear","GG"),X("weekYear",1),X("isoWeekYear",1),we("G",ve),we("g",ve),we("GG",he,ae),we("gg",he,ae),we("GGGG",pe,fe),we("gggg",pe,fe),we("GGGGG",be,ue),we("ggggg",be,ue),Ae(["gggg","ggggg","GGGG","GGGGG"],(function(input,e,t,r){e[r.substr(0,2)]=ee(input)})),Ae(["gg","GG"],(function(input,e,t,r){e[r]=o.parseTwoDigitYear(input)})),H("Q",0,"Qo","quarter"),K("quarter","Q"),X("quarter",7),we("Q",oe),xe("Q",(function(input,e){e[1]=3*(ee(input)-1)})),H("D",["DD",2],"Do","date"),K("date","D"),X("date",9),we("D",he),we("DD",he,ae),we("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),xe(["D","DD"],2),xe("Do",(function(input,e){e[2]=ee(input.match(he)[0])}));var Mr=te("Date",!0);H("DDD",["DDDD",3],"DDDo","dayOfYear"),K("dayOfYear","DDD"),X("dayOfYear",4),we("DDD",le),we("DDDD",se),xe(["DDD","DDDD"],(function(input,e,t){t._dayOfYear=ee(input)})),H("m",["mm",2],0,"minute"),K("minute","m"),X("minute",14),we("m",he),we("mm",he,ae),xe(["m","mm"],4);var Sr=te("Minutes",!1);H("s",["ss",2],0,"second"),K("second","s"),X("second",15),we("s",he),we("ss",he,ae),xe(["s","ss"],5);var kr,Er,xr=te("Seconds",!1);for(H("S",0,0,(function(){return~~(this.millisecond()/100)})),H(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),H(0,["SSS",3],0,"millisecond"),H(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),H(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),H(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),H(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),H(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),H(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),K("millisecond","ms"),X("millisecond",16),we("S",le,oe),we("SS",le,ae),we("SSS",le,se),kr="SSSS";kr.length<=9;kr+="S")we(kr,me);function Ar(input,e){e[6]=ee(1e3*("0."+input))}for(kr="S";kr.length<=9;kr+="S")xe(kr,Ar);Er=te("Milliseconds",!1),H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var Rr=A.prototype;function Tr(e){return e}Rr.add=nr,Rr.calendar=function(time,e){1===arguments.length&&(arguments[0]?ar(arguments[0])?(time=arguments[0],e=void 0):sr(arguments[0])&&(e=arguments[0],time=void 0):(time=void 0,e=void 0));var t=time||Ct(),r=Vt(t,this).startOf("day"),n=o.calendarFormat(this,r)||"sameElse",output=e&&(I(e[n])?e[n].call(this,t):e[n]);return this.format(output||this.localeData().calendar(n,this,Ct(t)))},Rr.clone=function(){return new A(this)},Rr.diff=function(input,e,t){var r,n,output;if(!this.isValid())return NaN;if(!(r=Vt(input,this)).isValid())return NaN;switch(n=6e4*(r.utcOffset()-this.utcOffset()),e=G(e)){case"year":output=fr(this,r)/12;break;case"month":output=fr(this,r);break;case"quarter":output=fr(this,r)/3;break;case"second":output=(this-r)/1e3;break;case"minute":output=(this-r)/6e4;break;case"hour":output=(this-r)/36e5;break;case"day":output=(this-r-n)/864e5;break;case"week":output=(this-r-n)/6048e5;break;default:output=this-r}return t?output:Q(output)},Rr.endOf=function(e){var time,t;if(void 0===(e=G(e))||"millisecond"===e||!this.isValid())return this;switch(t=this._isUTC?mr:pr,e){case"year":time=t(this.year()+1,0,1)-1;break;case"quarter":time=t(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":time=t(this.year(),this.month()+1,1)-1;break;case"week":time=t(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":time=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":time=t(this.year(),this.month(),this.date()+1)-1;break;case"hour":time=this._d.valueOf(),time+=36e5-lr(time+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":time=this._d.valueOf(),time+=6e4-lr(time,6e4)-1;break;case"second":time=this._d.valueOf(),time+=1e3-lr(time,1e3)-1}return this._d.setTime(time),o.updateOffset(this,!0),this},Rr.format=function(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var output=F(this,e);return this.localeData().postformat(output)},Rr.from=function(time,e){return this.isValid()&&(R(time)&&time.isValid()||Ct(time).isValid())?Xt({to:this,from:time}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Rr.fromNow=function(e){return this.from(Ct(),e)},Rr.to=function(time,e){return this.isValid()&&(R(time)&&time.isValid()||Ct(time).isValid())?Xt({from:this,to:time}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Rr.toNow=function(e){return this.to(Ct(),e)},Rr.get=function(e){return I(this[e=G(e)])?this[e]():this},Rr.invalidAt=function(){return w(this).overflow},Rr.isAfter=function(input,e){var t=R(input)?input:Ct(input);return!(!this.isValid()||!t.isValid())&&("millisecond"===(e=G(e)||"millisecond")?this.valueOf()>t.valueOf():t.valueOf()9999?F(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):I(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",F(r,"Z")):F(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Rr.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,r,n="moment",o="";return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+n+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r=o+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+r)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Rr[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Rr.toJSON=function(){return this.isValid()?this.toISOString():null},Rr.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Rr.unix=function(){return Math.floor(this.valueOf()/1e3)},Rr.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Rr.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Rr.eraName=function(){var i,e,t,r=this.localeData().eras();for(i=0,e=r.length;ithis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Rr.isLocal=function(){return!!this.isValid()&&!this._isUTC},Rr.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Rr.isUtc=Gt,Rr.isUTC=Gt,Rr.zoneAbbr=function(){return this._isUTC?"UTC":""},Rr.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Rr.dates=B("dates accessor is deprecated. Use date instead.",Mr),Rr.months=B("months accessor is deprecated. Use month instead",Le),Rr.years=B("years accessor is deprecated. Use year instead",qe),Rr.zone=B("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(input,e){return null!=input?("string"!=typeof input&&(input=-input),this.utcOffset(input,e),this):-this.utcOffset()})),Rr.isDSTShifted=B("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return x(t,this),(t=Pt(t))._a?(e=t._isUTC?_(t._a):Ct(t._a),this._isDSTShifted=this.isValid()&&function(e,t,r){var i,n=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),f=0;for(i=0;i0):this._isDSTShifted=!1,this._isDSTShifted}));var Br=j.prototype;function Or(e,t,r,n){var o=vt(),f=_().set(n,t);return o[r](f,e)}function Dr(e,t,r){if(m(e)&&(t=e,e=void 0),e=e||"",null!=t)return Or(e,t,r,"month");var i,n=[];for(i=0;i<12;i++)n[i]=Or(e,i,r,"month");return n}function Pr(e,t,r,n){"boolean"==typeof e?(m(t)&&(r=t,t=void 0),t=t||""):(r=t=e,e=!1,m(t)&&(r=t,t=void 0),t=t||"");var i,o=vt(),f=e?o._week.dow:0,h=[];if(null!=r)return Or(t,(r+f)%7,n,"day");for(i=0;i<7;i++)h[i]=Or(t,(i+f)%7,n,"day");return h}Br.calendar=function(e,t,r){var output=this._calendar[e]||this._calendar.sameElse;return I(output)?output.call(t,r):output},Br.longDateFormat=function(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(N).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},Br.invalidDate=function(){return this._invalidDate},Br.ordinal=function(e){return this._ordinal.replace("%d",e)},Br.preparse=Tr,Br.postformat=Tr,Br.relativeTime=function(e,t,r,n){var output=this._relativeTime[r];return I(output)?output(e,t,r,n):output.replace(/%d/i,e)},Br.pastFuture=function(e,output){var t=this._relativeTime[e>0?"future":"past"];return I(t)?t(output):t.replace(/%s/i,output)},Br.set=function(e){var t,i;for(i in e)c(e,i)&&(I(t=e[i])?this[i]=t:this["_"+i]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Br.eras=function(e,t){var i,r,n,f=this._eras||vt("en")._eras;for(i=0,r=f.length;i=0)return h[i]},Br.erasConvertYear=function(e,t){var r=e.since<=e.until?1:-1;return void 0===t?o(e.since).year():o(e.since).year()+(t-e.offset)*r},Br.erasAbbrRegex=function(e){return c(this,"_erasAbbrRegex")||yr.call(this),e?this._erasAbbrRegex:this._erasRegex},Br.erasNameRegex=function(e){return c(this,"_erasNameRegex")||yr.call(this),e?this._erasNameRegex:this._erasRegex},Br.erasNarrowRegex=function(e){return c(this,"_erasNarrowRegex")||yr.call(this),e?this._erasNarrowRegex:this._erasRegex},Br.months=function(e,t){return e?f(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||De).test(t)?"format":"standalone"][e.month()]:f(this._months)?this._months:this._months.standalone},Br.monthsShort=function(e,t){return e?f(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[De.test(t)?"format":"standalone"][e.month()]:f(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Br.monthsParse=function(e,t,r){var i,n,o;if(this._monthsParseExact)return Ce.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(n=_([2e3,i]),r&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),r||this._monthsParse[i]||(o="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),r&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(r&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!r&&this._monthsParse[i].test(e))return i}},Br.monthsRegex=function(e){return this._monthsParseExact?(c(this,"_monthsRegex")||Ne.call(this),e?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=Ie),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},Br.monthsShortRegex=function(e){return this._monthsParseExact?(c(this,"_monthsRegex")||Ne.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=Pe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},Br.week=function(e){return We(e,this._week.dow,this._week.doy).week},Br.firstDayOfYear=function(){return this._week.doy},Br.firstDayOfWeek=function(){return this._week.dow},Br.weekdays=function(e,t){var r=f(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ke(r,this._week.dow):e?r[e.day()]:r},Br.weekdaysMin=function(e){return!0===e?Ke(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},Br.weekdaysShort=function(e){return!0===e?Ke(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},Br.weekdaysParse=function(e,t,r){var i,n,o;if(this._weekdaysParseExact)return et.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(n=_([2e3,1]).day(i),r&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),r&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(r&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(r&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!r&&this._weekdaysParse[i].test(e))return i}},Br.weekdaysRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||tt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Xe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},Br.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||tt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Je),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Br.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||tt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Qe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Br.isPM=function(input){return"p"===(input+"").toLowerCase().charAt(0)},Br.meridiem=function(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"},bt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var b=e%10;return e+(1===ee(e%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th")}}),o.lang=B("moment.lang is deprecated. Use moment.locale instead.",bt),o.langData=B("moment.langData is deprecated. Use moment.localeData instead.",vt);var Ir=Math.abs;function Cr(e,input,t,r){var n=Xt(input,t);return e._milliseconds+=r*n._milliseconds,e._days+=r*n._days,e._months+=r*n._months,e._bubble()}function jr(e){return e<0?Math.floor(e):Math.ceil(e)}function Lr(e){return 4800*e/146097}function Nr(e){return 146097*e/4800}function Ur(e){return function(){return this.as(e)}}var qr=Ur("ms"),zr=Ur("s"),Yr=Ur("m"),Hr=Ur("h"),Fr=Ur("d"),Wr=Ur("w"),Vr=Ur("M"),Kr=Ur("Q"),Gr=Ur("y");function $r(e){return function(){return this.isValid()?this._data[e]:NaN}}var Zr=$r("milliseconds"),Xr=$r("seconds"),Jr=$r("minutes"),Qr=$r("hours"),en=$r("days"),tn=$r("months"),rn=$r("years"),nn=Math.round,on={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function an(e,t,r,n,o){return o.relativeTime(t||1,!!r,e,n)}var sn=Math.abs;function fn(e){return(e>0)-(e<0)||+e}function un(){if(!this.isValid())return this.localeData().invalidDate();var e,t,r,s,n,o,f,h,c=sn(this._milliseconds)/1e3,d=sn(this._days),l=sn(this._months),m=this.asSeconds();return m?(e=Q(c/60),t=Q(e/60),c%=60,e%=60,r=Q(l/12),l%=12,s=c?c.toFixed(3).replace(/\.?0+$/,""):"",n=m<0?"-":"",o=fn(this._months)!==fn(m)?"-":"",f=fn(this._days)!==fn(m)?"-":"",h=fn(this._milliseconds)!==fn(m)?"-":"",n+"P"+(r?o+r+"Y":"")+(l?o+l+"M":"")+(d?f+d+"D":"")+(t||e||c?"T":"")+(t?h+t+"H":"")+(e?h+e+"M":"")+(c?h+s+"S":"")):"P0D"}var hn=qt.prototype;return hn.isValid=function(){return this._isValid},hn.abs=function(){var data=this._data;return this._milliseconds=Ir(this._milliseconds),this._days=Ir(this._days),this._months=Ir(this._months),data.milliseconds=Ir(data.milliseconds),data.seconds=Ir(data.seconds),data.minutes=Ir(data.minutes),data.hours=Ir(data.hours),data.months=Ir(data.months),data.years=Ir(data.years),this},hn.add=function(input,e){return Cr(this,input,e,1)},hn.subtract=function(input,e){return Cr(this,input,e,-1)},hn.as=function(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if("month"===(e=G(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,r=this._months+Lr(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(Nr(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}},hn.asMilliseconds=qr,hn.asSeconds=zr,hn.asMinutes=Yr,hn.asHours=Hr,hn.asDays=Fr,hn.asWeeks=Wr,hn.asMonths=Vr,hn.asQuarters=Kr,hn.asYears=Gr,hn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ee(this._months/12):NaN},hn._bubble=function(){var e,t,r,n,o,f=this._milliseconds,h=this._days,c=this._months,data=this._data;return f>=0&&h>=0&&c>=0||f<=0&&h<=0&&c<=0||(f+=864e5*jr(Nr(c)+h),h=0,c=0),data.milliseconds=f%1e3,e=Q(f/1e3),data.seconds=e%60,t=Q(e/60),data.minutes=t%60,r=Q(t/60),data.hours=r%24,h+=Q(r/24),o=Q(Lr(h)),c+=o,h-=jr(Nr(o)),n=Q(c/12),c%=12,data.days=h,data.months=c,data.years=n,this},hn.clone=function(){return Xt(this)},hn.get=function(e){return e=G(e),this.isValid()?this[e+"s"]():NaN},hn.milliseconds=Zr,hn.seconds=Xr,hn.minutes=Jr,hn.hours=Qr,hn.days=en,hn.weeks=function(){return Q(this.days()/7)},hn.months=tn,hn.years=rn,hn.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var r,output,n=!1,th=on;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(n=e),"object"==typeof t&&(th=Object.assign({},on,t),null!=t.s&&null==t.ss&&(th.ss=t.s-1)),r=this.localeData(),output=function(e,t,r,n){var o=Xt(e).abs(),f=nn(o.as("s")),h=nn(o.as("m")),c=nn(o.as("h")),d=nn(o.as("d")),l=nn(o.as("M")),m=nn(o.as("w")),v=nn(o.as("y")),a=f<=r.ss&&["s",f]||f0,a[4]=n,an.apply(null,a)}(this,!n,th,r),n&&(output=r.pastFuture(+this,output)),r.postformat(output)},hn.toISOString=un,hn.toString=un,hn.toJSON=un,hn.locale=ur,hn.localeData=dr,hn.toIsoString=B("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",un),hn.lang=cr,H("X",0,0,"unix"),H("x",0,0,"valueOf"),we("x",ve),we("X",/[+-]?\d+(\.\d{1,3})?/),xe("X",(function(input,e,t){t._d=new Date(1e3*parseFloat(input))})),xe("x",(function(input,e,t){t._d=new Date(ee(input))})),o.version="2.29.0",t=Ct,o.fn=Rr,o.min=function(){var e=[].slice.call(arguments,0);return Nt("isBefore",e)},o.max=function(){var e=[].slice.call(arguments,0);return Nt("isAfter",e)},o.now=function(){return Date.now?Date.now():+new Date},o.utc=_,o.unix=function(input){return Ct(1e3*input)},o.months=function(e,t){return Dr(e,t,"months")},o.isDate=v,o.locale=bt,o.invalid=S,o.duration=Xt,o.isMoment=R,o.weekdays=function(e,t,r){return Pr(e,t,r,"weekdays")},o.parseZone=function(){return Ct.apply(null,arguments).parseZone()},o.localeData=vt,o.isDuration=zt,o.monthsShort=function(e,t){return Dr(e,t,"monthsShort")},o.weekdaysMin=function(e,t,r){return Pr(e,t,r,"weekdaysMin")},o.defineLocale=mt,o.updateLocale=function(e,t){if(null!=t){var r,n,o=ft;null!=ut[e]&&null!=ut[e].parentLocale?ut[e].set(C(ut[e]._config,t)):(null!=(n=pt(e))&&(o=n._config),t=C(o,t),null==n&&(t.abbr=e),(r=new j(t)).parentLocale=ut[e],ut[e]=r),bt(e)}else null!=ut[e]&&(null!=ut[e].parentLocale?(ut[e]=ut[e].parentLocale,e===bt()&&bt(e)):null!=ut[e]&&delete ut[e]);return ut[e]},o.locales=function(){return O(ut)},o.weekdaysShort=function(e,t,r){return Pr(e,t,r,"weekdaysShort")},o.normalizeUnits=G,o.relativeTimeRounding=function(e){return void 0===e?nn:"function"==typeof e&&(nn=e,!0)},o.relativeTimeThreshold=function(e,t){return void 0!==on[e]&&(void 0===t?on[e]:(on[e]=t,"s"===e&&(on.ss=t-1),!0))},o.calendarFormat=function(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"},o.prototype=Rr,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},o}()}).call(this,r(117)(e))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(172);function o(e,t){if(e){if("string"==typeof e)return Object(n.a)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(n.a)(e,t):void 0}}},,function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t,r){"use strict";var n=r(3).Buffer,o=r(330).Transform;function f(e){o.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(1)(f,o),f.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)},f.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},f.prototype.update=function(data,e){if(function(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}(data,"Data"),this._finalized)throw new Error("Digest already called");n.isBuffer(data)||(data=n.from(data,e));for(var t=this._block,r=0;this._blockOffset+data.length-r>=this._blockSize;){for(var i=this._blockOffset;i0;++o)this._length[o]+=f,(f=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*f);return this},f.prototype._update=function(){throw new Error("_update is not implemented")},f.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var i=0;i<4;++i)this._length[i]=0;return t},f.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=f},function(e,t,r){"use strict";(function(t,n){var o;e.exports=D,D.ReadableState=O;r(43).EventEmitter;var f=function(e,t){return e.listeners(t).length},h=r(222),c=r(14).Buffer,d=t.Uint8Array||function(){};var l,m=r(331);l=m&&m.debuglog?m.debuglog("stream"):function(){};var v,y,_,w=r(332),M=r(223),S=r(224).getHighWaterMark,k=r(62).codes,E=k.ERR_INVALID_ARG_TYPE,x=k.ERR_STREAM_PUSH_AFTER_EOF,A=k.ERR_METHOD_NOT_IMPLEMENTED,R=k.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(1)(D,h);var T=M.errorOrDestroy,B=["error","close","destroy","pause","resume"];function O(e,t,n){o=o||r(63),e=e||{},"boolean"!=typeof n&&(n=t instanceof o),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=S(this,e,"readableHighWaterMark",n),this.buffer=new w,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!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(v||(v=r(44).StringDecoder),this.decoder=new v(e.encoding),this.encoding=e.encoding)}function D(e){if(o=o||r(63),!(this instanceof D))return new D(e);var t=this instanceof o;this._readableState=new O(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),h.call(this)}function P(e,t,r,n,o){l("readableAddChunk",t);var f,h=e._readableState;if(null===t)h.reading=!1,function(e,t){if(l("onEofChunk"),t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?j(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,L(e)))}(e,h);else if(o||(f=function(e,t){var r;n=t,c.isBuffer(n)||n instanceof d||"string"==typeof t||void 0===t||e.objectMode||(r=new E("chunk",["string","Buffer","Uint8Array"],t));var n;return r}(h,t)),f)T(e,f);else if(h.objectMode||t&&t.length>0)if("string"==typeof t||h.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),n)h.endEmitted?T(e,new R):I(e,h,t,!0);else if(h.ended)T(e,new x);else{if(h.destroyed)return!1;h.reading=!1,h.decoder&&!r?(t=h.decoder.write(t),h.objectMode||0!==t.length?I(e,h,t,!1):N(e,h)):I(e,h,t,!1)}else n||(h.reading=!1,N(e,h));return!h.ended&&(h.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function j(e){var t=e._readableState;l("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(l("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(L,e))}function L(e){var t=e._readableState;l("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,F(e)}function N(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(U,e,t))}function U(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function Y(e){l("readable nexttick read 0"),e.read(0)}function H(e,t){l("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),F(e),t.flowing&&!t.reading&&e.read(0)}function F(e){var t=e._readableState;for(l("flow",t.flowing);t.flowing&&null!==e.read(););}function W(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function V(e){var t=e._readableState;l("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(K,t,e))}function K(e,t){if(l("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function G(e,t){for(var i=0,r=e.length;i=t.highWaterMark:t.length>0)||t.ended))return l("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?V(this):j(this),null;if(0===(e=C(e,t))&&t.ended)return 0===t.length&&V(this),null;var n,o=t.needReadable;return l("need readable",o),(0===t.length||t.length-e0?W(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&V(this)),null!==n&&this.emit("data",n),n},D.prototype._read=function(e){T(this,new A("_read()"))},D.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,l("pipe count=%d opts=%j",o.pipesCount,t);var h=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?d:S;function c(t,n){l("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,l("cleanup"),e.removeListener("close",w),e.removeListener("finish",M),e.removeListener("drain",m),e.removeListener("error",_),e.removeListener("unpipe",c),r.removeListener("end",d),r.removeListener("end",S),r.removeListener("data",y),v=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||m())}function d(){l("onend"),e.end()}o.endEmitted?n.nextTick(h):r.once("end",h),e.on("unpipe",c);var m=function(e){return function(){var t=e._readableState;l("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&f(e,"data")&&(t.flowing=!0,F(e))}}(r);e.on("drain",m);var v=!1;function y(t){l("ondata");var n=e.write(t);l("dest.write",n),!1===n&&((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==G(o.pipes,e))&&!v&&(l("false write response, pause",o.awaitDrain),o.awaitDrain++),r.pause())}function _(t){l("onerror",t),S(),e.removeListener("error",_),0===f(e,"error")&&T(e,t)}function w(){e.removeListener("finish",M),S()}function M(){l("onfinish"),e.removeListener("close",w),S()}function S(){l("unpipe"),r.unpipe(e)}return r.on("data",y),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",_),e.once("close",w),e.once("finish",M),e.emit("pipe",r),o.flowing||(l("pipe resume"),r.resume()),e},D.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i0,!1!==o.flowing&&this.resume()):"readable"===e&&(o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,l("on readable",o.length,o.reading),o.length?j(this):o.reading||n.nextTick(Y,this))),r},D.prototype.addListener=D.prototype.on,D.prototype.removeListener=function(e,t){var r=h.prototype.removeListener.call(this,e,t);return"readable"===e&&n.nextTick(z,this),r},D.prototype.removeAllListeners=function(e){var t=h.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||n.nextTick(z,this),t},D.prototype.resume=function(){var e=this._readableState;return e.flowing||(l("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(H,e,t))}(this,e)),e.paused=!1,this},D.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},D.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(l("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(o){(l("wrapped data"),r.decoder&&(o=r.decoder.write(o)),r.objectMode&&null==o)||(r.objectMode||o&&o.length)&&(t.push(o)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o-1))throw new R(e);return this._writableState.defaultEncoding=e,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(e,t,r){r(new M("_write()"))},D.prototype._writev=null,D.prototype.end=function(e,t,r){var o=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),o.corked&&(o.corked=1,this.uncork()),o.ending||function(e,t,r){t.ending=!0,N(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,o,r),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(e){this._writableState&&(this._writableState.destroyed=e)}}),D.prototype.destroy=v.destroy,D.prototype._undestroy=v.undestroy,D.prototype._destroy=function(e,t){t(e)}}).call(this,r(9),r(13))},function(e,t,r){"use strict";e.exports=m;var n=r(62).codes,o=n.ERR_METHOD_NOT_IMPLEMENTED,f=n.ERR_MULTIPLE_CALLBACK,h=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,c=n.ERR_TRANSFORM_WITH_LENGTH_0,d=r(63);function l(e,data){var t=this._transformState;t.transforming=!1;var r=t.writecb;if(null===r)return this.emit("error",new f);t.writechunk=null,t.writecb=null,null!=data&&this.push(data),r(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function y(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function _(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}n(d,o),d.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},d.prototype._update=function(e){for(var t,r=this._w,a=0|this._a,b=0|this._b,n=0|this._c,o=0|this._d,f=0|this._e,c=0|this._f,g=0|this._g,d=0|this._h,i=0;i<16;++i)r[i]=e.readInt32BE(4*i);for(;i<64;++i)r[i]=0|(((t=r[i-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[i-7]+_(r[i-15])+r[i-16];for(var w=0;w<64;++w){var M=d+y(f)+l(f,c,g)+h[w]+r[w]|0,S=v(a)+m(a,b,n)|0;d=g,g=c,c=f,f=o+M|0,o=n,n=b,b=a,a=M+S|0}this._a=a+this._a|0,this._b=b+this._b|0,this._c=n+this._c|0,this._d=o+this._d|0,this._e=f+this._e|0,this._f=c+this._f|0,this._g=g+this._g|0,this._h=d+this._h|0},d.prototype._hash=function(){var e=f.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=d},function(e,t,r){var n=r(1),o=r(64),f=r(3).Buffer,h=[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],c=new Array(160);function d(){this.init(),this._w=c,o.call(this,128,112)}function l(e,t,r){return r^e&(t^r)}function m(e,t,r){return e&t|r&(e|t)}function v(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function y(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function _(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function w(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function M(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function S(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function k(a,b){return a>>>0>>0?1:0}n(d,o),d.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},d.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,o=0|this._ch,f=0|this._dh,c=0|this._eh,d=0|this._fh,E=0|this._gh,x=0|this._hh,A=0|this._al,R=0|this._bl,T=0|this._cl,dl=0|this._dl,B=0|this._el,O=0|this._fl,D=0|this._gl,P=0|this._hl,i=0;i<32;i+=2)t[i]=e.readInt32BE(4*i),t[i+1]=e.readInt32BE(4*i+4);for(;i<160;i+=2){var I=t[i-30],C=t[i-30+1],j=_(I,C),L=w(C,I),N=M(I=t[i-4],C=t[i-4+1]),U=S(C,I),z=t[i-14],Y=t[i-14+1],H=t[i-32],F=t[i-32+1],W=L+Y|0,V=j+z+k(W,L)|0;V=(V=V+N+k(W=W+U|0,U)|0)+H+k(W=W+F|0,F)|0,t[i]=V,t[i+1]=W}for(var K=0;K<160;K+=2){V=t[K],W=t[K+1];var G=m(r,n,o),$=m(A,R,T),Z=v(r,A),X=v(A,r),J=y(c,B),Q=y(B,c),ee=h[K],te=h[K+1],re=l(c,d,E),ne=l(B,O,D),ie=P+Q|0,oe=x+J+k(ie,P)|0;oe=(oe=(oe=oe+re+k(ie=ie+ne|0,ne)|0)+ee+k(ie=ie+te|0,te)|0)+V+k(ie=ie+W|0,W)|0;var ae=X+$|0,se=Z+G+k(ae,X)|0;x=E,P=D,E=d,D=O,d=c,O=B,c=f+oe+k(B=dl+ie|0,dl)|0,f=o,dl=T,o=n,T=R,n=r,R=A,r=oe+se+k(A=ie+ae|0,ie)|0}this._al=this._al+A|0,this._bl=this._bl+R|0,this._cl=this._cl+T|0,this._dl=this._dl+dl|0,this._el=this._el+B|0,this._fl=this._fl+O|0,this._gl=this._gl+D|0,this._hl=this._hl+P|0,this._ah=this._ah+r+k(this._al,A)|0,this._bh=this._bh+n+k(this._bl,R)|0,this._ch=this._ch+o+k(this._cl,T)|0,this._dh=this._dh+f+k(this._dl,dl)|0,this._eh=this._eh+c+k(this._el,B)|0,this._fh=this._fh+d+k(this._fl,O)|0,this._gh=this._gh+E+k(this._gl,D)|0,this._hh=this._hh+x+k(this._hl,P)|0},d.prototype._hash=function(){var e=f.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=d},function(e,t,r){"use strict";(function(t,n){var o=r(105);e.exports=x;var f,h=r(219);x.ReadableState=E;r(43).EventEmitter;var c=function(e,t){return e.listeners(t).length},d=r(230),l=r(154).Buffer,m=t.Uint8Array||function(){};var v=Object.create(r(85));v.inherits=r(1);var y=r(343),_=void 0;_=y&&y.debuglog?y.debuglog("stream"):function(){};var w,M=r(344),S=r(231);v.inherits(x,d);var k=["error","close","destroy","pause","resume"];function E(e,t){e=e||{};var n=t instanceof(f=f||r(45));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var o=e.highWaterMark,h=e.readableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:n&&(h||0===h)?h:c,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new M,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=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(w||(w=r(44).StringDecoder),this.decoder=new w(e.encoding),this.encoding=e.encoding)}function x(e){if(f=f||r(45),!(this instanceof x))return new x(e);this._readableState=new E(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),d.call(this)}function A(e,t,r,n,o){var f,h=e._readableState;null===t?(h.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,B(e)}(e,h)):(o||(f=function(e,t){var r;n=t,l.isBuffer(n)||n instanceof m||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(h,t)),f?e.emit("error",f):h.objectMode||t&&t.length>0?("string"==typeof t||h.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=function(e){return l.from(e)}(t)),n?h.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):R(e,h,t,!0):h.ended?e.emit("error",new Error("stream.push() after EOF")):(h.reading=!1,h.decoder&&!r?(t=h.decoder.write(t),h.objectMode||0!==t.length?R(e,h,t,!1):D(e,h)):R(e,h,t,!1))):n||(h.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function B(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(_("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?o.nextTick(O,e):O(e))}function O(e){_("emit readable"),e.emit("readable"),j(e)}function D(e,t){t.readingMore||(t.readingMore=!0,o.nextTick(P,e,t))}function P(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;eo.length?o.length:e;if(f===o.length?n+=o:n+=o.slice(0,e),0===(e-=f)){f===o.length?(++r,p.next?t.head=p.next:t.head=t.tail=null):(t.head=p,p.data=o.slice(f));break}++r}return t.length-=r,n}(e,t):function(e,t){var r=l.allocUnsafe(e),p=t.head,n=1;p.data.copy(r),e-=p.data.length;for(;p=p.next;){var o=p.data,f=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,f),0===(e-=f)){f===o.length?(++n,p.next?t.head=p.next:t.head=t.tail=null):(t.head=p,p.data=o.slice(f));break}++n}return t.length-=n,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function N(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,o.nextTick(U,t,e))}function U(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function z(e,t){for(var i=0,r=e.length;i=t.highWaterMark||t.ended))return _("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?N(this):B(this),null;if(0===(e=T(e,t))&&t.ended)return 0===t.length&&N(this),null;var n,o=t.needReadable;return _("need readable",o),(0===t.length||t.length-e0?L(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&N(this)),null!==n&&this.emit("data",n),n},x.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},x.prototype.pipe=function(e,t){var r=this,f=this._readableState;switch(f.pipesCount){case 0:f.pipes=e;break;case 1:f.pipes=[f.pipes,e];break;default:f.pipes.push(e)}f.pipesCount+=1,_("pipe count=%d opts=%j",f.pipesCount,t);var d=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?m:x;function l(t,n){_("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,_("cleanup"),e.removeListener("close",k),e.removeListener("finish",E),e.removeListener("drain",v),e.removeListener("error",S),e.removeListener("unpipe",l),r.removeListener("end",m),r.removeListener("end",x),r.removeListener("data",M),y=!0,!f.awaitDrain||e._writableState&&!e._writableState.needDrain||v())}function m(){_("onend"),e.end()}f.endEmitted?o.nextTick(d):r.once("end",d),e.on("unpipe",l);var v=function(e){return function(){var t=e._readableState;_("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&c(e,"data")&&(t.flowing=!0,j(e))}}(r);e.on("drain",v);var y=!1;var w=!1;function M(t){_("ondata"),w=!1,!1!==e.write(t)||w||((1===f.pipesCount&&f.pipes===e||f.pipesCount>1&&-1!==z(f.pipes,e))&&!y&&(_("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,w=!0),r.pause())}function S(t){_("onerror",t),x(),e.removeListener("error",S),0===c(e,"error")&&e.emit("error",t)}function k(){e.removeListener("finish",E),x()}function E(){_("onfinish"),e.removeListener("close",k),x()}function x(){_("unpipe"),r.unpipe(e)}return r.on("data",M),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?h(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",S),e.once("close",k),e.once("finish",E),e.emit("pipe",r),f.flowing||(_("pipe resume"),r.resume()),e},x.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;ir)?t=("rmd160"===e?new d:l(e)).update(t).digest():t.lengthr||t!=t)throw new TypeError("Bad key length")}},function(e,t,r){var n;n="utf-8",e.exports=n},function(e,t,r){var n=r(234),o=r(151),f=r(152),h=r(3).Buffer,c=r(237),d=r(238),l=r(240),m=h.alloc(128),v={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function y(e,t,r){var c=function(e){function t(data){return f(e).update(data).digest()}return"rmd160"===e||"ripemd160"===e?function(data){return(new o).update(data).digest()}:"md5"===e?n:t}(e),d="sha512"===e||"sha384"===e?128:64;t.length>d?t=c(t):t.length>>0},t.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},t.ip=function(e,t,r,n){for(var o=0,f=0,i=6;i>=0;i-=2){for(var h=0;h<=24;h+=8)o<<=1,o|=t>>>h+i&1;for(h=0;h<=24;h+=8)o<<=1,o|=e>>>h+i&1}for(i=6;i>=0;i-=2){for(h=1;h<=25;h+=8)f<<=1,f|=t>>>h+i&1;for(h=1;h<=25;h+=8)f<<=1,f|=e>>>h+i&1}r[n+0]=o>>>0,r[n+1]=f>>>0},t.rip=function(e,t,r,n){for(var o=0,f=0,i=0;i<4;i++)for(var h=24;h>=0;h-=8)o<<=1,o|=t>>>h+i&1,o<<=1,o|=e>>>h+i&1;for(i=4;i<8;i++)for(h=24;h>=0;h-=8)f<<=1,f|=t>>>h+i&1,f<<=1,f|=e>>>h+i&1;r[n+0]=o>>>0,r[n+1]=f>>>0},t.pc1=function(e,t,r,n){for(var o=0,f=0,i=7;i>=5;i--){for(var h=0;h<=24;h+=8)o<<=1,o|=t>>h+i&1;for(h=0;h<=24;h+=8)o<<=1,o|=e>>h+i&1}for(h=0;h<=24;h+=8)o<<=1,o|=t>>h+i&1;for(i=1;i<=3;i++){for(h=0;h<=24;h+=8)f<<=1,f|=t>>h+i&1;for(h=0;h<=24;h+=8)f<<=1,f|=e>>h+i&1}for(h=0;h<=24;h+=8)f<<=1,f|=e>>h+i&1;r[n+0]=o>>>0,r[n+1]=f>>>0},t.r28shl=function(e,t){return e<>>28-t};var n=[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];t.pc2=function(e,t,r,o){for(var f=0,h=0,c=n.length>>>1,i=0;i>>n[i]&1;for(i=c;i>>n[i]&1;r[o+0]=f>>>0,r[o+1]=h>>>0},t.expand=function(e,t,r){var n=0,o=0;n=(1&e)<<5|e>>>27;for(var i=23;i>=15;i-=4)n<<=6,n|=e>>>i&63;for(i=11;i>=3;i-=4)o|=e>>>i&63,o<<=6;o|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=o>>>0};var o=[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];t.substitute=function(e,t){for(var r=0,i=0;i<4;i++){r<<=4,r|=o[64*i+(e>>>18-6*i&63)]}for(i=0;i<4;i++){r<<=4,r|=o[256+64*i+(t>>>18-6*i&63)]}return r>>>0};var f=[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];t.permute=function(e){for(var t=0,i=0;i>>f[i]&1;return t>>>0},t.padSplit=function(e,t,r){for(var n=e.toString(2);n.length>>1];r=f.r28shl(r,h),o=f.r28shl(o,h),f.pc2(r,o,e.keys,i)}},d.prototype._update=function(e,t,r,n){var o=this._desState,h=f.readUInt32BE(e,t),c=f.readUInt32BE(e,t+4);f.ip(h,c,o.tmp,0),h=o.tmp[0],c=o.tmp[1],"encrypt"===this.type?this._encrypt(o,h,c,o.tmp,0):this._decrypt(o,h,c,o.tmp,0),h=o.tmp[0],c=o.tmp[1],f.writeUInt32BE(r,h,n),f.writeUInt32BE(r,c,n+4)},d.prototype._pad=function(e,t){for(var r=e.length-t,i=t;i>>0,h=m}f.rip(c,h,n,o)},d.prototype._decrypt=function(e,t,r,n,o){for(var h=r,c=t,i=e.keys.length-2;i>=0;i-=2){var d=e.keys[i],l=e.keys[i+1];f.expand(h,e.tmp,0),d^=e.tmp[0],l^=e.tmp[1];var s=f.substitute(d,l),m=h;h=(c^f.permute(s))>>>0,c=m}f.rip(h,c,n,o)}},function(e,t,r){var n=r(86),o=r(3).Buffer,f=r(244);function h(e){var t=e._cipher.encryptBlockRaw(e._prev);return f(e._prev),t}t.encrypt=function(e,t){var r=Math.ceil(t.length/16),f=e._cache.length;e._cache=o.concat([e._cache,o.allocUnsafe(16*r)]);for(var i=0;ie;)r.ishrn(1);if(r.isEven()&&r.iadd(c),r.testn(1)||r.iadd(d),t.cmp(d)){if(!t.cmp(l))for(;r.mod(m).cmp(v);)r.iadd(_)}else for(;r.mod(f).cmp(y);)r.iadd(_);if(S(w=r.shrn(1))&&S(r)&&k(w)&&k(r)&&h.test(w)&&h.test(r))return r}}},function(e,t,r){var n=r(11),o=r(159);function f(e){this.rand=e||new o.Rand}e.exports=f,f.create=function(e){return new f(e)},f.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do{var a=new n(this.rand.generate(r))}while(a.cmp(e)>=0);return a},f.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},f.prototype.test=function(e,t,r){var o=e.bitLength(),f=n.mont(e),h=new n(1).toRed(f);t||(t=Math.max(1,o/48|0));for(var c=e.subn(1),s=0;!c.testn(s);s++);for(var d=e.shrn(s),l=c.toRed(f);t>0;t--){var a=this._randrange(new n(2),c);r&&r(a);var m=a.toRed(f).redPow(d);if(0!==m.cmp(h)&&0!==m.cmp(l)){for(var i=1;i0;t--){var a=this._randrange(new n(2),h),g=e.gcd(a);if(0!==g.cmpn(1))return g;var l=a.toRed(o).redPow(c);if(0!==l.cmp(f)&&0!==l.cmp(d)){for(var i=1;i0)if("string"==typeof t||h.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),n)h.endEmitted?T(e,new R):I(e,h,t,!0);else if(h.ended)T(e,new x);else{if(h.destroyed)return!1;h.reading=!1,h.decoder&&!r?(t=h.decoder.write(t),h.objectMode||0!==t.length?I(e,h,t,!1):N(e,h)):I(e,h,t,!1)}else n||(h.reading=!1,N(e,h));return!h.ended&&(h.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function j(e){var t=e._readableState;l("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(l("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(L,e))}function L(e){var t=e._readableState;l("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,F(e)}function N(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(U,e,t))}function U(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function Y(e){l("readable nexttick read 0"),e.read(0)}function H(e,t){l("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),F(e),t.flowing&&!t.reading&&e.read(0)}function F(e){var t=e._readableState;for(l("flow",t.flowing);t.flowing&&null!==e.read(););}function W(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function V(e){var t=e._readableState;l("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(K,t,e))}function K(e,t){if(l("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function G(e,t){for(var i=0,r=e.length;i=t.highWaterMark:t.length>0)||t.ended))return l("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?V(this):j(this),null;if(0===(e=C(e,t))&&t.ended)return 0===t.length&&V(this),null;var n,o=t.needReadable;return l("need readable",o),(0===t.length||t.length-e0?W(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&V(this)),null!==n&&this.emit("data",n),n},D.prototype._read=function(e){T(this,new A("_read()"))},D.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,l("pipe count=%d opts=%j",o.pipesCount,t);var h=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?d:S;function c(t,n){l("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,l("cleanup"),e.removeListener("close",w),e.removeListener("finish",M),e.removeListener("drain",m),e.removeListener("error",_),e.removeListener("unpipe",c),r.removeListener("end",d),r.removeListener("end",S),r.removeListener("data",y),v=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||m())}function d(){l("onend"),e.end()}o.endEmitted?n.nextTick(h):r.once("end",h),e.on("unpipe",c);var m=function(e){return function(){var t=e._readableState;l("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&f(e,"data")&&(t.flowing=!0,F(e))}}(r);e.on("drain",m);var v=!1;function y(t){l("ondata");var n=e.write(t);l("dest.write",n),!1===n&&((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==G(o.pipes,e))&&!v&&(l("false write response, pause",o.awaitDrain),o.awaitDrain++),r.pause())}function _(t){l("onerror",t),S(),e.removeListener("error",_),0===f(e,"error")&&T(e,t)}function w(){e.removeListener("finish",M),S()}function M(){l("onfinish"),e.removeListener("close",w),S()}function S(){l("unpipe"),r.unpipe(e)}return r.on("data",y),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",_),e.once("close",w),e.once("finish",M),e.emit("pipe",r),o.flowing||(l("pipe resume"),r.resume()),e},D.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i0,!1!==o.flowing&&this.resume()):"readable"===e&&(o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,l("on readable",o.length,o.reading),o.length?j(this):o.reading||n.nextTick(Y,this))),r},D.prototype.addListener=D.prototype.on,D.prototype.removeListener=function(e,t){var r=h.prototype.removeListener.call(this,e,t);return"readable"===e&&n.nextTick(z,this),r},D.prototype.removeAllListeners=function(e){var t=h.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||n.nextTick(z,this),t},D.prototype.resume=function(){var e=this._readableState;return e.flowing||(l("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(H,e,t))}(this,e)),e.paused=!1,this},D.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},D.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(l("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(o){(l("wrapped data"),r.decoder&&(o=r.decoder.write(o)),r.objectMode&&null==o)||(r.objectMode||o&&o.length)&&(t.push(o)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o-1))throw new R(e);return this._writableState.defaultEncoding=e,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(e,t,r){r(new M("_write()"))},D.prototype._writev=null,D.prototype.end=function(e,t,r){var o=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),o.corked&&(o.corked=1,this.uncork()),o.ending||function(e,t,r){t.ending=!0,N(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,o,r),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(e){this._writableState&&(this._writableState.destroyed=e)}}),D.prototype.destroy=v.destroy,D.prototype._undestroy=v.undestroy,D.prototype._destroy=function(e,t){t(e)}}).call(this,r(9),r(13))},function(e,t,r){"use strict";e.exports=m;var n=r(65).codes,o=n.ERR_METHOD_NOT_IMPLEMENTED,f=n.ERR_MULTIPLE_CALLBACK,h=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,c=n.ERR_TRANSFORM_WITH_LENGTH_0,d=r(66);function l(e,data){var t=this._transformState;t.transforming=!1;var r=t.writecb;if(null===r)return this.emit("error",new f);t.writechunk=null,t.writecb=null,null!=data&&this.push(data),r(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length>8,f=255&n;o?r.push(o,f):r.push(f)}return r},n.zero2=o,n.toHex=f,n.encode=function(e,t){return"hex"===t?f(e):e}},function(e,t,r){"use strict";var n=t;n.base=r(108),n.short=r(385),n.mont=r(386),n.edwards=r(387)},function(e,t,r){"use strict";var n=r(30).rotr32;function o(e,t,r){return e&t^~e&r}function f(e,t,r){return e&t^e&r^t&r}function h(e,t,r){return e^t^r}t.ft_1=function(s,e,t,r){return 0===s?o(e,t,r):1===s||3===s?h(e,t,r):2===s?f(e,t,r):void 0},t.ch32=o,t.maj32=f,t.p32=h,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},function(e,t,r){"use strict";var n=r(30),o=r(87),f=r(258),h=r(25),c=n.sum32,d=n.sum32_4,l=n.sum32_5,m=f.ch32,v=f.maj32,y=f.s0_256,_=f.s1_256,w=f.g0_256,M=f.g1_256,S=o.BlockHash,k=[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 E(){if(!(this instanceof E))return new E;S.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=k,this.W=new Array(64)}n.inherits(E,S),e.exports=E,E.blockSize=512,E.outSize=256,E.hmacStrength=192,E.padLength=64,E.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;i=49&&c<=54?c-49+10:c>=17&&c<=22?c-17+10:c,h|=b}return n(!(240&h),"Invalid character in "+e),o}function d(e,t,r,o){for(var f=0,b=0,h=Math.min(e.length,r),i=t;i=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&b0?e:t},f.min=function(e,t){return e.cmp(t)<0?e:t},f.prototype._init=function(e,base,t){if("number"==typeof e)return this._initNumber(e,base,t);if("object"==typeof e)return this._initArray(e,base,t);"hex"===base&&(base=16),n(base===(0|base)&&base>=2&&base<=36);var r=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&r++,16===base?this._parseHex(e,r):this._parseBase(e,base,r),"-"===e[0]&&(this.negative=1),this._strip(),"le"===t&&this._initArray(this.toArray(),base,t)},f.prototype._initNumber=function(e,base,t){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===t&&this._initArray(this.toArray(),base,t)},f.prototype._initArray=function(e,base,t){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)o=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[r]|=o<>>26-f&67108863,(f+=24)>=26&&(f-=26,r++);else if("le"===t)for(i=0,r=0;i>>26-f&67108863,(f+=24)>=26&&(f-=26,r++);return this._strip()},f.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var i=0;i=t;i-=6)n=c(e,i,i+6),this.words[r]|=n<>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);i+6!==t&&(n=c(e,t,i+6),this.words[r]|=n<>>26-o&4194303),this._strip()},f.prototype._parseBase=function(e,base,t){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=base)r++;r--,n=n/base|0;for(var o=e.length-t,f=o%r,h=Math.min(o,o-f)+t,c=0,i=t;i1&&0===this.words[this.length-1];)this.length--;return this._normSign()},f.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{f.prototype[Symbol.for("nodejs.util.inspect.custom")]=m}catch(e){f.prototype.inspect=m}else f.prototype.inspect=m;function m(){return(this.red?""}var v=["","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"],y=[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],_=[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];f.prototype.toString=function(base,e){var t;if(e=0|e||1,16===(base=base||10)||"hex"===base){t="";for(var r=0,o=0,i=0;i>>24-r&16777215)||i!==this.length-1?v[6-h.length]+h+t:h+t,(r+=2)>=26&&(r-=26,i--)}for(0!==o&&(t=o.toString(16)+t);t.length%e!=0;)t="0"+t;return 0!==this.negative&&(t="-"+t),t}if(base===(0|base)&&base>=2&&base<=36){var c=y[base],d=_[base];t="";var l=this.clone();for(l.negative=0;!l.isZero();){var m=l.modrn(d).toString(base);t=(l=l.idivn(d)).isZero()?m+t:v[c-m.length]+m+t}for(this.isZero()&&(t="0"+t);t.length%e!=0;)t="0"+t;return 0!==this.negative&&(t="-"+t),t}n(!1,"Base should be between 2 and 36")},f.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},f.prototype.toJSON=function(){return this.toString(16,2)},h&&(f.prototype.toBuffer=function(e,t){return this.toArrayLike(h,e,t)}),f.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function w(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var a=0|e.words[0],b=0|t.words[0],o=a*b,f=67108863&o,h=o/67108864|0;r.words[0]=f;for(var c=1;c>>26,l=67108863&h,m=Math.min(c,t.length-1),v=Math.max(0,c-e.length+1);v<=m;v++){var i=c-v|0;d+=(o=(a=0|e.words[i])*(b=0|t.words[v])+l)/67108864|0,l=67108863&o}r.words[c]=0|l,h=0|d}return 0!==h?r.words[c]=0|h:r.length--,r._strip()}f.prototype.toArrayLike=function(e,t,r){this._strip();var o=this.byteLength(),f=r||Math.max(1,o);n(o<=f,"byte array longer than desired length"),n(f>0,"Requested array length <= 0");var h=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,f);return this["_toArrayLike"+("le"===t?"LE":"BE")](h,o),h},f.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,o=0;i>8&255),r>16&255),6===o?(r>24&255),n=0,o=0):(n=f>>>24,o+=2)}if(r=0&&(e[r--]=f>>8&255),r>=0&&(e[r--]=f>>16&255),6===o?(r>=0&&(e[r--]=f>>24&255),n=0,o=0):(n=f>>>24,o+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?f.prototype._countBits=function(e){return 32-Math.clz32(e)}:f.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},f.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},f.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},f.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,i=0;ie.length?this.clone().ior(e):e.clone().ior(this)},f.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},f.prototype.iuand=function(e){var b;b=this.length>e.length?e:this;for(var i=0;ie.length?this.clone().iand(e):e.clone().iand(this)},f.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},f.prototype.iuxor=function(e){var a,b;this.length>e.length?(a=this,b=e):(a=e,b=this);for(var i=0;ie.length?this.clone().ixor(e):e.clone().ixor(this)},f.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},f.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},f.prototype.notn=function(e){return this.clone().inotn(e)},f.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,o=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(a=this,b=e):(a=e,b=this);for(var r=0,i=0;i>>26;for(;0!==r&&i>>26;if(this.length=a.length,0!==r)this.words[this.length]=r,this.length++;else if(a!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},f.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var a,b,r=this.cmp(e);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(a=this,b=e):(a=e,b=this);for(var n=0,i=0;i>26,this.words[i]=67108863&t;for(;0!==n&&i>26,this.words[i]=67108863&t;if(0===n&&i>>13,v=0|a[1],y=8191&v,_=v>>>13,w=0|a[2],M=8191&w,S=w>>>13,k=0|a[3],E=8191&k,x=k>>>13,A=0|a[4],R=8191&A,T=A>>>13,B=0|a[5],O=8191&B,D=B>>>13,P=0|a[6],I=8191&P,C=P>>>13,j=0|a[7],L=8191&j,N=j>>>13,U=0|a[8],z=8191&U,Y=U>>>13,H=0|a[9],F=8191&H,W=H>>>13,V=0|b[0],K=8191&V,G=V>>>13,$=0|b[1],Z=8191&$,X=$>>>13,J=0|b[2],Q=8191&J,ee=J>>>13,te=0|b[3],re=8191&te,ne=te>>>13,ie=0|b[4],oe=8191&ie,ae=ie>>>13,se=0|b[5],fe=8191&se,ue=se>>>13,he=0|b[6],ce=8191&he,de=he>>>13,le=0|b[7],pe=8191&le,be=le>>>13,me=0|b[8],ve=8191&me,ye=me>>>13,ge=0|b[9],_e=8191&ge,we=ge>>>13;r.negative=e.negative^t.negative,r.length=19;var Me=(c+(n=Math.imul(l,K))|0)+((8191&(o=(o=Math.imul(l,G))+Math.imul(m,K)|0))<<13)|0;c=((f=Math.imul(m,G))+(o>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(y,K),o=(o=Math.imul(y,G))+Math.imul(_,K)|0,f=Math.imul(_,G);var Se=(c+(n=n+Math.imul(l,Z)|0)|0)+((8191&(o=(o=o+Math.imul(l,X)|0)+Math.imul(m,Z)|0))<<13)|0;c=((f=f+Math.imul(m,X)|0)+(o>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(M,K),o=(o=Math.imul(M,G))+Math.imul(S,K)|0,f=Math.imul(S,G),n=n+Math.imul(y,Z)|0,o=(o=o+Math.imul(y,X)|0)+Math.imul(_,Z)|0,f=f+Math.imul(_,X)|0;var ke=(c+(n=n+Math.imul(l,Q)|0)|0)+((8191&(o=(o=o+Math.imul(l,ee)|0)+Math.imul(m,Q)|0))<<13)|0;c=((f=f+Math.imul(m,ee)|0)+(o>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(E,K),o=(o=Math.imul(E,G))+Math.imul(x,K)|0,f=Math.imul(x,G),n=n+Math.imul(M,Z)|0,o=(o=o+Math.imul(M,X)|0)+Math.imul(S,Z)|0,f=f+Math.imul(S,X)|0,n=n+Math.imul(y,Q)|0,o=(o=o+Math.imul(y,ee)|0)+Math.imul(_,Q)|0,f=f+Math.imul(_,ee)|0;var Ee=(c+(n=n+Math.imul(l,re)|0)|0)+((8191&(o=(o=o+Math.imul(l,ne)|0)+Math.imul(m,re)|0))<<13)|0;c=((f=f+Math.imul(m,ne)|0)+(o>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(R,K),o=(o=Math.imul(R,G))+Math.imul(T,K)|0,f=Math.imul(T,G),n=n+Math.imul(E,Z)|0,o=(o=o+Math.imul(E,X)|0)+Math.imul(x,Z)|0,f=f+Math.imul(x,X)|0,n=n+Math.imul(M,Q)|0,o=(o=o+Math.imul(M,ee)|0)+Math.imul(S,Q)|0,f=f+Math.imul(S,ee)|0,n=n+Math.imul(y,re)|0,o=(o=o+Math.imul(y,ne)|0)+Math.imul(_,re)|0,f=f+Math.imul(_,ne)|0;var xe=(c+(n=n+Math.imul(l,oe)|0)|0)+((8191&(o=(o=o+Math.imul(l,ae)|0)+Math.imul(m,oe)|0))<<13)|0;c=((f=f+Math.imul(m,ae)|0)+(o>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(O,K),o=(o=Math.imul(O,G))+Math.imul(D,K)|0,f=Math.imul(D,G),n=n+Math.imul(R,Z)|0,o=(o=o+Math.imul(R,X)|0)+Math.imul(T,Z)|0,f=f+Math.imul(T,X)|0,n=n+Math.imul(E,Q)|0,o=(o=o+Math.imul(E,ee)|0)+Math.imul(x,Q)|0,f=f+Math.imul(x,ee)|0,n=n+Math.imul(M,re)|0,o=(o=o+Math.imul(M,ne)|0)+Math.imul(S,re)|0,f=f+Math.imul(S,ne)|0,n=n+Math.imul(y,oe)|0,o=(o=o+Math.imul(y,ae)|0)+Math.imul(_,oe)|0,f=f+Math.imul(_,ae)|0;var Ae=(c+(n=n+Math.imul(l,fe)|0)|0)+((8191&(o=(o=o+Math.imul(l,ue)|0)+Math.imul(m,fe)|0))<<13)|0;c=((f=f+Math.imul(m,ue)|0)+(o>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(I,K),o=(o=Math.imul(I,G))+Math.imul(C,K)|0,f=Math.imul(C,G),n=n+Math.imul(O,Z)|0,o=(o=o+Math.imul(O,X)|0)+Math.imul(D,Z)|0,f=f+Math.imul(D,X)|0,n=n+Math.imul(R,Q)|0,o=(o=o+Math.imul(R,ee)|0)+Math.imul(T,Q)|0,f=f+Math.imul(T,ee)|0,n=n+Math.imul(E,re)|0,o=(o=o+Math.imul(E,ne)|0)+Math.imul(x,re)|0,f=f+Math.imul(x,ne)|0,n=n+Math.imul(M,oe)|0,o=(o=o+Math.imul(M,ae)|0)+Math.imul(S,oe)|0,f=f+Math.imul(S,ae)|0,n=n+Math.imul(y,fe)|0,o=(o=o+Math.imul(y,ue)|0)+Math.imul(_,fe)|0,f=f+Math.imul(_,ue)|0;var Re=(c+(n=n+Math.imul(l,ce)|0)|0)+((8191&(o=(o=o+Math.imul(l,de)|0)+Math.imul(m,ce)|0))<<13)|0;c=((f=f+Math.imul(m,de)|0)+(o>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(L,K),o=(o=Math.imul(L,G))+Math.imul(N,K)|0,f=Math.imul(N,G),n=n+Math.imul(I,Z)|0,o=(o=o+Math.imul(I,X)|0)+Math.imul(C,Z)|0,f=f+Math.imul(C,X)|0,n=n+Math.imul(O,Q)|0,o=(o=o+Math.imul(O,ee)|0)+Math.imul(D,Q)|0,f=f+Math.imul(D,ee)|0,n=n+Math.imul(R,re)|0,o=(o=o+Math.imul(R,ne)|0)+Math.imul(T,re)|0,f=f+Math.imul(T,ne)|0,n=n+Math.imul(E,oe)|0,o=(o=o+Math.imul(E,ae)|0)+Math.imul(x,oe)|0,f=f+Math.imul(x,ae)|0,n=n+Math.imul(M,fe)|0,o=(o=o+Math.imul(M,ue)|0)+Math.imul(S,fe)|0,f=f+Math.imul(S,ue)|0,n=n+Math.imul(y,ce)|0,o=(o=o+Math.imul(y,de)|0)+Math.imul(_,ce)|0,f=f+Math.imul(_,de)|0;var Te=(c+(n=n+Math.imul(l,pe)|0)|0)+((8191&(o=(o=o+Math.imul(l,be)|0)+Math.imul(m,pe)|0))<<13)|0;c=((f=f+Math.imul(m,be)|0)+(o>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(z,K),o=(o=Math.imul(z,G))+Math.imul(Y,K)|0,f=Math.imul(Y,G),n=n+Math.imul(L,Z)|0,o=(o=o+Math.imul(L,X)|0)+Math.imul(N,Z)|0,f=f+Math.imul(N,X)|0,n=n+Math.imul(I,Q)|0,o=(o=o+Math.imul(I,ee)|0)+Math.imul(C,Q)|0,f=f+Math.imul(C,ee)|0,n=n+Math.imul(O,re)|0,o=(o=o+Math.imul(O,ne)|0)+Math.imul(D,re)|0,f=f+Math.imul(D,ne)|0,n=n+Math.imul(R,oe)|0,o=(o=o+Math.imul(R,ae)|0)+Math.imul(T,oe)|0,f=f+Math.imul(T,ae)|0,n=n+Math.imul(E,fe)|0,o=(o=o+Math.imul(E,ue)|0)+Math.imul(x,fe)|0,f=f+Math.imul(x,ue)|0,n=n+Math.imul(M,ce)|0,o=(o=o+Math.imul(M,de)|0)+Math.imul(S,ce)|0,f=f+Math.imul(S,de)|0,n=n+Math.imul(y,pe)|0,o=(o=o+Math.imul(y,be)|0)+Math.imul(_,pe)|0,f=f+Math.imul(_,be)|0;var Be=(c+(n=n+Math.imul(l,ve)|0)|0)+((8191&(o=(o=o+Math.imul(l,ye)|0)+Math.imul(m,ve)|0))<<13)|0;c=((f=f+Math.imul(m,ye)|0)+(o>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(F,K),o=(o=Math.imul(F,G))+Math.imul(W,K)|0,f=Math.imul(W,G),n=n+Math.imul(z,Z)|0,o=(o=o+Math.imul(z,X)|0)+Math.imul(Y,Z)|0,f=f+Math.imul(Y,X)|0,n=n+Math.imul(L,Q)|0,o=(o=o+Math.imul(L,ee)|0)+Math.imul(N,Q)|0,f=f+Math.imul(N,ee)|0,n=n+Math.imul(I,re)|0,o=(o=o+Math.imul(I,ne)|0)+Math.imul(C,re)|0,f=f+Math.imul(C,ne)|0,n=n+Math.imul(O,oe)|0,o=(o=o+Math.imul(O,ae)|0)+Math.imul(D,oe)|0,f=f+Math.imul(D,ae)|0,n=n+Math.imul(R,fe)|0,o=(o=o+Math.imul(R,ue)|0)+Math.imul(T,fe)|0,f=f+Math.imul(T,ue)|0,n=n+Math.imul(E,ce)|0,o=(o=o+Math.imul(E,de)|0)+Math.imul(x,ce)|0,f=f+Math.imul(x,de)|0,n=n+Math.imul(M,pe)|0,o=(o=o+Math.imul(M,be)|0)+Math.imul(S,pe)|0,f=f+Math.imul(S,be)|0,n=n+Math.imul(y,ve)|0,o=(o=o+Math.imul(y,ye)|0)+Math.imul(_,ve)|0,f=f+Math.imul(_,ye)|0;var Oe=(c+(n=n+Math.imul(l,_e)|0)|0)+((8191&(o=(o=o+Math.imul(l,we)|0)+Math.imul(m,_e)|0))<<13)|0;c=((f=f+Math.imul(m,we)|0)+(o>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(F,Z),o=(o=Math.imul(F,X))+Math.imul(W,Z)|0,f=Math.imul(W,X),n=n+Math.imul(z,Q)|0,o=(o=o+Math.imul(z,ee)|0)+Math.imul(Y,Q)|0,f=f+Math.imul(Y,ee)|0,n=n+Math.imul(L,re)|0,o=(o=o+Math.imul(L,ne)|0)+Math.imul(N,re)|0,f=f+Math.imul(N,ne)|0,n=n+Math.imul(I,oe)|0,o=(o=o+Math.imul(I,ae)|0)+Math.imul(C,oe)|0,f=f+Math.imul(C,ae)|0,n=n+Math.imul(O,fe)|0,o=(o=o+Math.imul(O,ue)|0)+Math.imul(D,fe)|0,f=f+Math.imul(D,ue)|0,n=n+Math.imul(R,ce)|0,o=(o=o+Math.imul(R,de)|0)+Math.imul(T,ce)|0,f=f+Math.imul(T,de)|0,n=n+Math.imul(E,pe)|0,o=(o=o+Math.imul(E,be)|0)+Math.imul(x,pe)|0,f=f+Math.imul(x,be)|0,n=n+Math.imul(M,ve)|0,o=(o=o+Math.imul(M,ye)|0)+Math.imul(S,ve)|0,f=f+Math.imul(S,ye)|0;var De=(c+(n=n+Math.imul(y,_e)|0)|0)+((8191&(o=(o=o+Math.imul(y,we)|0)+Math.imul(_,_e)|0))<<13)|0;c=((f=f+Math.imul(_,we)|0)+(o>>>13)|0)+(De>>>26)|0,De&=67108863,n=Math.imul(F,Q),o=(o=Math.imul(F,ee))+Math.imul(W,Q)|0,f=Math.imul(W,ee),n=n+Math.imul(z,re)|0,o=(o=o+Math.imul(z,ne)|0)+Math.imul(Y,re)|0,f=f+Math.imul(Y,ne)|0,n=n+Math.imul(L,oe)|0,o=(o=o+Math.imul(L,ae)|0)+Math.imul(N,oe)|0,f=f+Math.imul(N,ae)|0,n=n+Math.imul(I,fe)|0,o=(o=o+Math.imul(I,ue)|0)+Math.imul(C,fe)|0,f=f+Math.imul(C,ue)|0,n=n+Math.imul(O,ce)|0,o=(o=o+Math.imul(O,de)|0)+Math.imul(D,ce)|0,f=f+Math.imul(D,de)|0,n=n+Math.imul(R,pe)|0,o=(o=o+Math.imul(R,be)|0)+Math.imul(T,pe)|0,f=f+Math.imul(T,be)|0,n=n+Math.imul(E,ve)|0,o=(o=o+Math.imul(E,ye)|0)+Math.imul(x,ve)|0,f=f+Math.imul(x,ye)|0;var Pe=(c+(n=n+Math.imul(M,_e)|0)|0)+((8191&(o=(o=o+Math.imul(M,we)|0)+Math.imul(S,_e)|0))<<13)|0;c=((f=f+Math.imul(S,we)|0)+(o>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(F,re),o=(o=Math.imul(F,ne))+Math.imul(W,re)|0,f=Math.imul(W,ne),n=n+Math.imul(z,oe)|0,o=(o=o+Math.imul(z,ae)|0)+Math.imul(Y,oe)|0,f=f+Math.imul(Y,ae)|0,n=n+Math.imul(L,fe)|0,o=(o=o+Math.imul(L,ue)|0)+Math.imul(N,fe)|0,f=f+Math.imul(N,ue)|0,n=n+Math.imul(I,ce)|0,o=(o=o+Math.imul(I,de)|0)+Math.imul(C,ce)|0,f=f+Math.imul(C,de)|0,n=n+Math.imul(O,pe)|0,o=(o=o+Math.imul(O,be)|0)+Math.imul(D,pe)|0,f=f+Math.imul(D,be)|0,n=n+Math.imul(R,ve)|0,o=(o=o+Math.imul(R,ye)|0)+Math.imul(T,ve)|0,f=f+Math.imul(T,ye)|0;var Ie=(c+(n=n+Math.imul(E,_e)|0)|0)+((8191&(o=(o=o+Math.imul(E,we)|0)+Math.imul(x,_e)|0))<<13)|0;c=((f=f+Math.imul(x,we)|0)+(o>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(F,oe),o=(o=Math.imul(F,ae))+Math.imul(W,oe)|0,f=Math.imul(W,ae),n=n+Math.imul(z,fe)|0,o=(o=o+Math.imul(z,ue)|0)+Math.imul(Y,fe)|0,f=f+Math.imul(Y,ue)|0,n=n+Math.imul(L,ce)|0,o=(o=o+Math.imul(L,de)|0)+Math.imul(N,ce)|0,f=f+Math.imul(N,de)|0,n=n+Math.imul(I,pe)|0,o=(o=o+Math.imul(I,be)|0)+Math.imul(C,pe)|0,f=f+Math.imul(C,be)|0,n=n+Math.imul(O,ve)|0,o=(o=o+Math.imul(O,ye)|0)+Math.imul(D,ve)|0,f=f+Math.imul(D,ye)|0;var Ce=(c+(n=n+Math.imul(R,_e)|0)|0)+((8191&(o=(o=o+Math.imul(R,we)|0)+Math.imul(T,_e)|0))<<13)|0;c=((f=f+Math.imul(T,we)|0)+(o>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(F,fe),o=(o=Math.imul(F,ue))+Math.imul(W,fe)|0,f=Math.imul(W,ue),n=n+Math.imul(z,ce)|0,o=(o=o+Math.imul(z,de)|0)+Math.imul(Y,ce)|0,f=f+Math.imul(Y,de)|0,n=n+Math.imul(L,pe)|0,o=(o=o+Math.imul(L,be)|0)+Math.imul(N,pe)|0,f=f+Math.imul(N,be)|0,n=n+Math.imul(I,ve)|0,o=(o=o+Math.imul(I,ye)|0)+Math.imul(C,ve)|0,f=f+Math.imul(C,ye)|0;var je=(c+(n=n+Math.imul(O,_e)|0)|0)+((8191&(o=(o=o+Math.imul(O,we)|0)+Math.imul(D,_e)|0))<<13)|0;c=((f=f+Math.imul(D,we)|0)+(o>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(F,ce),o=(o=Math.imul(F,de))+Math.imul(W,ce)|0,f=Math.imul(W,de),n=n+Math.imul(z,pe)|0,o=(o=o+Math.imul(z,be)|0)+Math.imul(Y,pe)|0,f=f+Math.imul(Y,be)|0,n=n+Math.imul(L,ve)|0,o=(o=o+Math.imul(L,ye)|0)+Math.imul(N,ve)|0,f=f+Math.imul(N,ye)|0;var Le=(c+(n=n+Math.imul(I,_e)|0)|0)+((8191&(o=(o=o+Math.imul(I,we)|0)+Math.imul(C,_e)|0))<<13)|0;c=((f=f+Math.imul(C,we)|0)+(o>>>13)|0)+(Le>>>26)|0,Le&=67108863,n=Math.imul(F,pe),o=(o=Math.imul(F,be))+Math.imul(W,pe)|0,f=Math.imul(W,be),n=n+Math.imul(z,ve)|0,o=(o=o+Math.imul(z,ye)|0)+Math.imul(Y,ve)|0,f=f+Math.imul(Y,ye)|0;var Ne=(c+(n=n+Math.imul(L,_e)|0)|0)+((8191&(o=(o=o+Math.imul(L,we)|0)+Math.imul(N,_e)|0))<<13)|0;c=((f=f+Math.imul(N,we)|0)+(o>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,n=Math.imul(F,ve),o=(o=Math.imul(F,ye))+Math.imul(W,ve)|0,f=Math.imul(W,ye);var Ue=(c+(n=n+Math.imul(z,_e)|0)|0)+((8191&(o=(o=o+Math.imul(z,we)|0)+Math.imul(Y,_e)|0))<<13)|0;c=((f=f+Math.imul(Y,we)|0)+(o>>>13)|0)+(Ue>>>26)|0,Ue&=67108863;var qe=(c+(n=Math.imul(F,_e))|0)+((8191&(o=(o=Math.imul(F,we))+Math.imul(W,_e)|0))<<13)|0;return c=((f=Math.imul(W,we))+(o>>>13)|0)+(qe>>>26)|0,qe&=67108863,h[0]=Me,h[1]=Se,h[2]=ke,h[3]=Ee,h[4]=xe,h[5]=Ae,h[6]=Re,h[7]=Te,h[8]=Be,h[9]=Oe,h[10]=De,h[11]=Pe,h[12]=Ie,h[13]=Ce,h[14]=je,h[15]=Le,h[16]=Ne,h[17]=Ue,h[18]=qe,0!==c&&(h[19]=c,r.length++),r};function S(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,o=0,f=0;f>>26)|0)>>>26,h&=67108863}r.words[f]=c,n=h,h=o}return 0!==n?r.words[f]=n:r.length--,r._strip()}function k(e,t,r){return S(e,t,r)}function E(e,t){this.x=e,this.y=t}Math.imul||(M=w),f.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?M(this,e,t):r<63?w(this,e,t):r<1024?S(this,e,t):k(this,e,t)},E.prototype.makeRBT=function(e){for(var t=new Array(e),r=f.prototype._countBits(e)-1,i=0;i>=1;return n},E.prototype.permute=function(e,t,r,n,o,f){for(var i=0;i>>=1)i++;return 1<>>=13,r[2*i+1]=8191&f,f>>>=13;for(i=2*t;i>=26,r+=o/67108864|0,r+=f>>>26,this.words[i]=67108863&f}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},f.prototype.muln=function(e){return this.clone().imuln(e)},f.prototype.sqr=function(){return this.mul(this)},f.prototype.isqr=function(){return this.imul(this.clone())},f.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>o&1}return t}(e);if(0===t.length)return new f(1);for(var r=this,i=0;i=0);var i,t=e%26,s=(e-t)/26,r=67108863>>>26-t<<26-t;if(0!==t){var o=0;for(i=0;i>>26-t}o&&(this.words[i]=o,this.length++)}if(0!==s){for(i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(i=0;i=0),o=t?(t-t%26)/26:0;var f=e%26,s=Math.min((e-f)/26,this.length),mask=67108863^67108863>>>f<s)for(this.length-=s,i=0;i=0&&(0!==c||i>=o);i--){var d=0|this.words[i];this.words[i]=c<<26-f|d>>>f,c=d&mask}return h&&0!==c&&(h.words[h.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},f.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},f.prototype.shln=function(e){return this.clone().ishln(e)},f.prototype.ushln=function(e){return this.clone().iushln(e)},f.prototype.shrn=function(e){return this.clone().ishrn(e)},f.prototype.ushrn=function(e){return this.clone().iushrn(e)},f.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,s=(e-t)/26,q=1<=0);var t=e%26,s=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=s)return this;if(0!==t&&s++,this.length=Math.min(s,this.length),0!==t){var mask=67108863^67108863>>>t<=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},f.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var i=0;i>26)-(c/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===h)return this._strip();for(n(-1===h),h=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},f.prototype._wordDiv=function(e,t){var r=(this.length,e.length),a=this.clone(),b=e,n=0|b.words[b.length-1];0!==(r=26-this._countBits(n))&&(b=b.ushln(r),a.iushln(r),n=0|b.words[b.length-1]);var q,o=a.length-b.length;if("mod"!==t){(q=new f(null)).length=o+1,q.words=new Array(q.length);for(var i=0;i=0;c--){var d=67108864*(0|a.words[b.length+c])+(0|a.words[b.length+c-1]);for(d=Math.min(d/n|0,67108863),a._ishlnsubmul(b,d,c);0!==a.negative;)d--,a.negative=0,a._ishlnsubmul(b,1,c),a.isZero()||(a.negative^=1);q&&(q.words[c]=d)}return q&&q._strip(),a._strip(),"div"!==t&&0!==r&&a.iushrn(r),{div:q||null,mod:a}},f.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new f(0),mod:new f(0)}:0!==this.negative&&0===e.negative?(h=this.neg().divmod(e,t),"mod"!==t&&(div=h.div.neg()),"div"!==t&&(o=h.mod.neg(),r&&0!==o.negative&&o.iadd(e)),{div:div,mod:o}):0===this.negative&&0!==e.negative?(h=this.divmod(e.neg(),t),"mod"!==t&&(div=h.div.neg()),{div:div,mod:h.mod}):0!=(this.negative&e.negative)?(h=this.neg().divmod(e.neg(),t),"div"!==t&&(o=h.mod.neg(),r&&0!==o.negative&&o.isub(e)),{div:h.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new f(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new f(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new f(this.modrn(e.words[0]))}:this._wordDiv(e,t);var div,o,h},f.prototype.div=function(e){return this.divmod(e,"div",!1).div},f.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},f.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},f.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),o=e.andln(1),f=r.cmp(n);return f<0||1===o&&0===f?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},f.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var p=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(p*r+(0|this.words[i]))%e;return t?-r:r},f.prototype.modn=function(e){return this.modrn(e)},f.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},f.prototype.divn=function(e){return this.clone().idivn(e)},f.prototype.egcd=function(p){n(0===p.negative),n(!p.isZero());var e=this,t=p.clone();e=0!==e.negative?e.umod(p):e.clone();for(var r=new f(1),o=new f(0),h=new f(0),c=new f(1),g=0;e.isEven()&&t.isEven();)e.iushrn(1),t.iushrn(1),++g;for(var d=t.clone(),l=e.clone();!e.isZero();){for(var i=0,m=1;0==(e.words[0]&m)&&i<26;++i,m<<=1);if(i>0)for(e.iushrn(i);i-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(d),o.isub(l)),r.iushrn(1),o.iushrn(1);for(var v=0,y=1;0==(t.words[0]&y)&&v<26;++v,y<<=1);if(v>0)for(t.iushrn(v);v-- >0;)(h.isOdd()||c.isOdd())&&(h.iadd(d),c.isub(l)),h.iushrn(1),c.iushrn(1);e.cmp(t)>=0?(e.isub(t),r.isub(h),o.isub(c)):(t.isub(e),h.isub(r),c.isub(o))}return{a:h,b:c,gcd:t.iushln(g)}},f.prototype._invmp=function(p){n(0===p.negative),n(!p.isZero());var a=this,b=p.clone();a=0!==a.negative?a.umod(p):a.clone();for(var e,t=new f(1),r=new f(0),o=b.clone();a.cmpn(1)>0&&b.cmpn(1)>0;){for(var i=0,h=1;0==(a.words[0]&h)&&i<26;++i,h<<=1);if(i>0)for(a.iushrn(i);i-- >0;)t.isOdd()&&t.iadd(o),t.iushrn(1);for(var c=0,d=1;0==(b.words[0]&d)&&c<26;++c,d<<=1);if(c>0)for(b.iushrn(c);c-- >0;)r.isOdd()&&r.iadd(o),r.iushrn(1);a.cmp(b)>=0?(a.isub(b),t.isub(r)):(b.isub(a),r.isub(t))}return(e=0===a.cmpn(1)?t:r).cmpn(0)<0&&e.iadd(p),e},f.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var a=this.clone(),b=e.clone();a.negative=0,b.negative=0;for(var t=0;a.isEven()&&b.isEven();t++)a.iushrn(1),b.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;b.isEven();)b.iushrn(1);var r=a.cmp(b);if(r<0){var n=a;a=b,b=n}else if(0===r||0===b.cmpn(1))break;a.isub(b)}return b.iushln(t)},f.prototype.invm=function(e){return this.egcd(e).a.umod(e)},f.prototype.isEven=function(){return 0==(1&this.words[0])},f.prototype.isOdd=function(){return 1==(1&this.words[0])},f.prototype.andln=function(e){return this.words[0]&e},f.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,s=(e-t)/26,q=1<>>26,o&=67108863,this.words[i]=o}return 0!==r&&(this.words[i]=r,this.length++),this},f.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},f.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var o=0|this.words[0];t=o===e?0:oe.length)return 1;if(this.length=0;i--){var a=0|this.words[i],b=0|e.words[i];if(a!==b){ab&&(t=1);break}}return t},f.prototype.gtn=function(e){return 1===this.cmpn(e)},f.prototype.gt=function(e){return 1===this.cmp(e)},f.prototype.gten=function(e){return this.cmpn(e)>=0},f.prototype.gte=function(e){return this.cmp(e)>=0},f.prototype.ltn=function(e){return-1===this.cmpn(e)},f.prototype.lt=function(e){return-1===this.cmp(e)},f.prototype.lten=function(e){return this.cmpn(e)<=0},f.prototype.lte=function(e){return this.cmp(e)<=0},f.prototype.eqn=function(e){return 0===this.cmpn(e)},f.prototype.eq=function(e){return 0===this.cmp(e)},f.red=function(e){return new D(e)},f.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},f.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},f.prototype._forceRed=function(e){return this.red=e,this},f.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},f.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},f.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},f.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},f.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},f.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},f.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},f.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},f.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},f.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},f.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},f.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},f.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},f.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var x={k256:null,p224:null,p192:null,p25519:null};function A(e,p){this.name=e,this.p=new f(p,16),this.n=this.p.bitLength(),this.k=new f(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function R(){A.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function T(){A.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function B(){A.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function O(){A.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function D(e){if("string"==typeof e){var t=f._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function P(e){D.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new f(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)}A.prototype._tmp=function(){var e=new f(null);return e.words=new Array(Math.ceil(this.n/13)),e},A.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},A.prototype.split=function(input,e){input.iushrn(this.n,0,e)},A.prototype.imulK=function(e){return e.imul(this.k)},o(R,A),R.prototype.split=function(input,output){for(var e=Math.min(input.length,9),i=0;i>>22,t=r}t>>>=22,input.words[i-10]=t,0===t&&input.length>10?input.length-=10:input.length-=9},R.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i>>=26,e.words[i]=n,t=r}return 0!==t&&(e.words[e.length++]=t),e},f._prime=function(e){if(x[e])return x[e];var t;if("k256"===e)t=new R;else if("p224"===e)t=new T;else if("p192"===e)t=new B;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new O}return x[e]=t,t},D.prototype._verify1=function(a){n(0===a.negative,"red works only with positives"),n(a.red,"red works only with red numbers")},D.prototype._verify2=function(a,b){n(0==(a.negative|b.negative),"red works only with positives"),n(a.red&&a.red===b.red,"red works only with red numbers")},D.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):(l(a,a.umod(this.m)._forceRed(this)),a)},D.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)},D.prototype.add=function(a,b){this._verify2(a,b);var e=a.add(b);return e.cmp(this.m)>=0&&e.isub(this.m),e._forceRed(this)},D.prototype.iadd=function(a,b){this._verify2(a,b);var e=a.iadd(b);return e.cmp(this.m)>=0&&e.isub(this.m),e},D.prototype.sub=function(a,b){this._verify2(a,b);var e=a.sub(b);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},D.prototype.isub=function(a,b){this._verify2(a,b);var e=a.isub(b);return e.cmpn(0)<0&&e.iadd(this.m),e},D.prototype.shl=function(a,e){return this._verify1(a),this.imod(a.ushln(e))},D.prototype.imul=function(a,b){return this._verify2(a,b),this.imod(a.imul(b))},D.prototype.mul=function(a,b){return this._verify2(a,b),this.imod(a.mul(b))},D.prototype.isqr=function(a){return this.imul(a,a.clone())},D.prototype.sqr=function(a){return this.mul(a,a)},D.prototype.sqrt=function(a){if(a.isZero())return a.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var t=this.m.add(new f(1)).iushrn(2);return this.pow(a,t)}for(var q=this.m.subn(1),s=0;!q.isZero()&&0===q.andln(1);)s++,q.iushrn(1);n(!q.isZero());var r=new f(1).toRed(this),o=r.redNeg(),h=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new f(2*c*c).toRed(this);0!==this.pow(c,h).cmp(o);)c.redIAdd(o);for(var d=this.pow(c,q),l=this.pow(a,q.addn(1).iushrn(1)),m=this.pow(a,q),v=s;0!==m.cmp(r);){for(var y=m,i=0;0!==y.cmp(r);i++)y=y.redSqr();n(i=0;i--){for(var c=e.words[i],d=h-1;d>=0;d--){var l=c>>d&1;r!==t[0]&&(r=this.sqr(r)),0!==l||0!==n?(n<<=1,n|=l,(4===++o||0===i&&0===d)&&(r=this.mul(r,t[n]),o=0,n=0)):o=0}h=26}return r},D.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},D.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},f.mont=function(e){return new P(e)},o(P,D),P.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},P.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},P.prototype.imul=function(a,b){if(a.isZero()||b.isZero())return a.words[0]=0,a.length=1,a;var e=a.imul(b),t=e.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=e.isub(t).iushrn(this.shift),r=u;return u.cmp(this.m)>=0?r=u.isub(this.m):u.cmpn(0)<0&&(r=u.iadd(this.m)),r._forceRed(this)},P.prototype.mul=function(a,b){if(a.isZero()||b.isZero())return new f(0)._forceRed(this);var e=a.mul(b),t=e.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=e.isub(t).iushrn(this.shift),r=u;return u.cmp(this.m)>=0?r=u.isub(this.m):u.cmpn(0)<0&&(r=u.iadd(this.m)),r._forceRed(this)},P.prototype.invm=function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(117)(e))},function(e,t,r){"use strict";const n=t;n.bignum=r(11),n.define=r(404).define,n.base=r(407),n.constants=r(408),n.decoders=r(265),n.encoders=r(263)},function(e,t,r){"use strict";const n=t;n.der=r(264),n.pem=r(405)},function(e,t,r){"use strict";const n=r(1),o=r(165).Buffer,f=r(166),h=r(168);function c(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new d,this.tree._init(e.body)}function d(e){f.call(this,"der",e)}function l(e){return e<10?"0"+e:e}e.exports=c,c.prototype.encode=function(data,e){return this.tree._encode(data,e).join()},n(d,f),d.prototype._encodeComposite=function(e,t,r,content){const n=function(e,t,r,n){let o;"seqof"===e?e="seq":"setof"===e&&(e="set");if(h.tagByName.hasOwnProperty(e))o=h.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return n.error("Unknown tag: "+e);o=e}if(o>=31)return n.error("Multi-octet tag encoding unsupported");t||(o|=32);return o|=h.tagClassByName[r||"universal"]<<6,o}(e,t,r,this.reporter);if(content.length<128){const header=o.alloc(2);return header[0]=n,header[1]=content.length,this._createEncoderBuffer([header,content])}let f=1;for(let i=content.length;i>=256;i>>=8)f++;const header=o.alloc(2+f);header[0]=n,header[1]=128|f;for(let i=1+f,e=content.length;e>0;i--,e>>=8)header[i]=255&e;return this._createEncoderBuffer([header,content])},d.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){const t=o.alloc(2*e.length);for(let i=0;i=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}let n=0;for(let i=0;i=128;t>>=7)n++}const f=o.alloc(n);let h=f.length-1;for(let i=e.length-1;i>=0;i--){let t=e[i];for(f[h--]=127&t;(t>>=7)>0;)f[h--]=128|127&t}return this._createEncoderBuffer(f)},d.prototype._encodeTime=function(time,e){let t;const r=new Date(time);return"gentime"===e?t=[l(r.getUTCFullYear()),l(r.getUTCMonth()+1),l(r.getUTCDate()),l(r.getUTCHours()),l(r.getUTCMinutes()),l(r.getUTCSeconds()),"Z"].join(""):"utctime"===e?t=[l(r.getUTCFullYear()%100),l(r.getUTCMonth()+1),l(r.getUTCDate()),l(r.getUTCHours()),l(r.getUTCMinutes()),l(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(t,"octstr")},d.prototype._encodeNull=function(){return this._createEncoderBuffer("")},d.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!o.isBuffer(e)){const t=e.toArray();!e.sign&&128&t[0]&&t.unshift(0),e=o.from(t)}if(o.isBuffer(e)){let t=e.length;0===e.length&&t++;const r=o.alloc(t);return e.copy(r),0===e.length&&(r[0]=0),this._createEncoderBuffer(r)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let r=1;for(let i=e;i>=256;i>>=8)r++;const n=new Array(r);for(let i=n.length-1;i>=0;i--)n[i]=255&e,e>>=8;return 128&n[0]&&n.unshift(0),this._createEncoderBuffer(o.from(n))},d.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},d.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},d.prototype._skipDefault=function(e,t,r){const n=this._baseState;let i;if(null===n.default)return!1;const data=e.join();if(void 0===n.defaultBuffer&&(n.defaultBuffer=this._encodeValue(n.default,t,r).join()),data.length!==n.defaultBuffer.length)return!1;for(i=0;i>6],o=0==(32&r);if(31==(31&r)){let n=r;for(r=0;128==(128&n);){if(n=e.readUInt8(t),e.isError(n))return n;r<<=7,r|=127&n}}else r&=31;return{cls:n,primitive:o,tag:r,tagStr:c.tag[r]}}function v(e,t,r){let n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if(0==(128&n))return n;const o=127&n;if(o>4)return e.error("length octect is too long");n=0;for(let i=0;i>>7)^(m<<14|m>>>18)^m>>>3,y=l[i-2],_=(y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10;l[i]=v+l[i-7]+_+l[i-16]}var w=a&b^a&n^b&n,M=(a<<30|a>>>2)^(a<<19|a>>>13)^(a<<10|a>>>22),S=c+((f<<26|f>>>6)^(f<<21|f>>>11)^(f<<7|f>>>25))+(f&h^~f&g)+d[i]+l[i];c=g,g=h,h=f,f=o+S|0,o=n,n=b,b=a,a=S+(M+w)|0}r[0]=r[0]+a|0,r[1]=r[1]+b|0,r[2]=r[2]+n|0,r[3]=r[3]+o|0,r[4]=r[4]+f|0,r[5]=r[5]+h|0,r[6]=r[6]+g|0,r[7]=r[7]+c|0},_doFinalize:function(){var data=this._data,t=data.words,r=8*this._nDataBytes,n=8*data.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=e.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,data.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=f.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=f._createHelper(m),t.HmacSHA256=f._createHmacHelper(m)}(Math),n.SHA256)},function(e,t,r){var n;e.exports=(n=r(4),r(110),function(){var e=n,t=e.lib.Hasher,r=e.x64,o=r.Word,f=r.WordArray,h=e.algo;function c(){return o.create.apply(o,arguments)}var d=[c(1116352408,3609767458),c(1899447441,602891725),c(3049323471,3964484399),c(3921009573,2173295548),c(961987163,4081628472),c(1508970993,3053834265),c(2453635748,2937671579),c(2870763221,3664609560),c(3624381080,2734883394),c(310598401,1164996542),c(607225278,1323610764),c(1426881987,3590304994),c(1925078388,4068182383),c(2162078206,991336113),c(2614888103,633803317),c(3248222580,3479774868),c(3835390401,2666613458),c(4022224774,944711139),c(264347078,2341262773),c(604807628,2007800933),c(770255983,1495990901),c(1249150122,1856431235),c(1555081692,3175218132),c(1996064986,2198950837),c(2554220882,3999719339),c(2821834349,766784016),c(2952996808,2566594879),c(3210313671,3203337956),c(3336571891,1034457026),c(3584528711,2466948901),c(113926993,3758326383),c(338241895,168717936),c(666307205,1188179964),c(773529912,1546045734),c(1294757372,1522805485),c(1396182291,2643833823),c(1695183700,2343527390),c(1986661051,1014477480),c(2177026350,1206759142),c(2456956037,344077627),c(2730485921,1290863460),c(2820302411,3158454273),c(3259730800,3505952657),c(3345764771,106217008),c(3516065817,3606008344),c(3600352804,1432725776),c(4094571909,1467031594),c(275423344,851169720),c(430227734,3100823752),c(506948616,1363258195),c(659060556,3750685593),c(883997877,3785050280),c(958139571,3318307427),c(1322822218,3812723403),c(1537002063,2003034995),c(1747873779,3602036899),c(1955562222,1575990012),c(2024104815,1125592928),c(2227730452,2716904306),c(2361852424,442776044),c(2428436474,593698344),c(2756734187,3733110249),c(3204031479,2999351573),c(3329325298,3815920427),c(3391569614,3928383900),c(3515267271,566280711),c(3940187606,3454069534),c(4118630271,4000239992),c(116418474,1914138554),c(174292421,2731055270),c(289380356,3203993006),c(460393269,320620315),c(685471733,587496836),c(852142971,1086792851),c(1017036298,365543100),c(1126000580,2618297676),c(1288033470,3409855158),c(1501505948,4234509866),c(1607167915,987167468),c(1816402316,1246189591)],l=[];!function(){for(var i=0;i<80;i++)l[i]=c()}();var m=h.SHA512=t.extend({_doReset:function(){this._hash=new f.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],o=r[1],f=r[2],h=r[3],c=r[4],m=r[5],v=r[6],y=r[7],_=n.high,w=n.low,M=o.high,S=o.low,k=f.high,E=f.low,x=h.high,A=h.low,R=c.high,T=c.low,B=m.high,O=m.low,D=v.high,P=v.low,I=y.high,C=y.low,j=_,L=w,N=M,U=S,z=k,Y=E,H=x,dl=A,F=R,W=T,V=B,K=O,G=D,$=P,Z=I,X=C,i=0;i<80;i++){var J,Q,ee=l[i];if(i<16)Q=ee.high=0|e[t+2*i],J=ee.low=0|e[t+2*i+1];else{var te=l[i-15],re=te.high,ne=te.low,ie=(re>>>1|ne<<31)^(re>>>8|ne<<24)^re>>>7,oe=(ne>>>1|re<<31)^(ne>>>8|re<<24)^(ne>>>7|re<<25),ae=l[i-2],se=ae.high,fe=ae.low,ue=(se>>>19|fe<<13)^(se<<3|fe>>>29)^se>>>6,he=(fe>>>19|se<<13)^(fe<<3|se>>>29)^(fe>>>6|se<<26),ce=l[i-7],de=ce.high,le=ce.low,pe=l[i-16],be=pe.high,me=pe.low;Q=(Q=(Q=ie+de+((J=oe+le)>>>0>>0?1:0))+ue+((J+=he)>>>0>>0?1:0))+be+((J+=me)>>>0>>0?1:0),ee.high=Q,ee.low=J}var ve,ye=F&V^~F&G,ge=W&K^~W&$,_e=j&N^j&z^N&z,we=L&U^L&Y^U&Y,Me=(j>>>28|L<<4)^(j<<30|L>>>2)^(j<<25|L>>>7),Se=(L>>>28|j<<4)^(L<<30|j>>>2)^(L<<25|j>>>7),ke=(F>>>14|W<<18)^(F>>>18|W<<14)^(F<<23|W>>>9),Ee=(W>>>14|F<<18)^(W>>>18|F<<14)^(W<<23|F>>>9),xe=d[i],Ae=xe.high,Re=xe.low,Te=Z+ke+((ve=X+Ee)>>>0>>0?1:0),Be=Se+we;Z=G,X=$,G=V,$=K,V=F,K=W,F=H+(Te=(Te=(Te=Te+ye+((ve+=ge)>>>0>>0?1:0))+Ae+((ve+=Re)>>>0>>0?1:0))+Q+((ve+=J)>>>0>>0?1:0))+((W=dl+ve|0)>>>0
>>0?1:0)|0,H=z,dl=Y,z=N,Y=U,N=j,U=L,j=Te+(Me+_e+(Be>>>0>>0?1:0))+((L=ve+Be|0)>>>0>>0?1:0)|0}w=n.low=w+L,n.high=_+j+(w>>>0>>0?1:0),S=o.low=S+U,o.high=M+N+(S>>>0>>0?1:0),E=f.low=E+Y,f.high=k+z+(E>>>0>>0?1:0),A=h.low=A+dl,h.high=x+H+(A>>>0
>>0?1:0),T=c.low=T+W,c.high=R+F+(T>>>0>>0?1:0),O=m.low=O+K,m.high=B+V+(O>>>0>>0?1:0),P=v.low=P+$,v.high=D+G+(P>>>0<$>>>0?1:0),C=y.low=C+X,y.high=I+Z+(C>>>0>>0?1:0)},_doFinalize:function(){var data=this._data,e=data.words,t=8*this._nDataBytes,r=8*data.sigBytes;return e[r>>>5]|=128<<24-r%32,e[30+(r+128>>>10<<5)]=Math.floor(t/4294967296),e[31+(r+128>>>10<<5)]=t,data.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(m),e.HmacSHA512=t._createHmacHelper(m)}(),n.SHA512)},,,,,,,,,,,,,function(e,t,r){"use strict";t.a=function(e,t){return t=t||{},new Promise((function(r,n){var s=new XMLHttpRequest,o=[],u=[],i={},a=function(){return{ok:2==(s.status/100|0),statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(s.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:a,headers:{keys:function(){return o},entries:function(){return u},get:function(e){return i[e.toLowerCase()]},has:function(e){return e.toLowerCase()in i}}}};for(var f in s.open(t.method||"get",e,!0),s.onload=function(){s.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,r){o.push(t=t.toLowerCase()),u.push([t,r]),i[t]=i[t]?i[t]+","+r:r})),r(a())},s.onerror=n,s.withCredentials="include"==t.credentials,t.headers)s.setRequestHeader(f,t.headers[f]);s.send(t.body||null)}))}},,function(e,t,r){"use strict";var n=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===o}(e)}(e)};var o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function f(e,t){return!1!==t.clone&&t.isMergeableObject(e)?m((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function h(e,source,t){return e.concat(source).map((function(element){return f(element,t)}))}function c(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(symbol){return e.propertyIsEnumerable(symbol)})):[]}(e))}function d(object,e){try{return e in object}catch(e){return!1}}function l(e,source,t){var r={};return t.isMergeableObject(e)&&c(e).forEach((function(n){r[n]=f(e[n],t)})),c(source).forEach((function(n){(function(e,t){return d(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,n)||(d(e,n)&&t.isMergeableObject(source[n])?r[n]=function(e,t){if(!t.customMerge)return m;var r=t.customMerge(e);return"function"==typeof r?r:m}(n,t)(e[n],source[n],t):r[n]=f(source[n],t))})),r}function m(e,source,t){(t=t||{}).arrayMerge=t.arrayMerge||h,t.isMergeableObject=t.isMergeableObject||n,t.cloneUnlessOtherwiseSpecified=f;var r=Array.isArray(source);return r===Array.isArray(e)?r?t.arrayMerge(e,source,t):l(e,source,t):f(source,t)}m.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return m(e,r,t)}),{})};var v=m;e.exports=v},function(e,t,r){var n;e.exports=(n=r(4),r(110),r(418),r(419),r(67),r(68),r(169),r(271),r(420),r(272),r(421),r(422),r(423),r(170),r(424),r(46),r(15),r(425),r(426),r(427),r(428),r(429),r(430),r(431),r(432),r(433),r(434),r(435),r(436),r(437),r(438),r(439),r(440),n)},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){return null!==e&&"object"===n(e)&&!Array.isArray(e)}function f(e,t){if(!o(e))return f({},t);if(!o(t))return f(e,{});var r=Object.assign({},t);for(var n in e)if("__proto__"!==n&&"constructor"!==n){var h=e[n];null!==h&&(o(h)&&o(r[n])?r[n]=f(h,r[n]):r[n]=h)}return r}e.exports=function(){for(var e=arguments.length,t=new Array(e),r=0;r0)?["touchstart"]:["click"];function i(e){var t=e.event,r=e.handler;(0,e.middleware)(t)&&r(t)}function n(e,t){var n=function(e){var t="function"==typeof e;if(!t&&"object"!=typeof e)throw new Error("v-click-outside: Binding value must be a function or an object");return{handler:t?e:e.handler,middleware:e.middleware||function(e){return e},events:e.events||r,isActive:!(!1===e.isActive),detectIframe:!(!1===e.detectIframe)}}(t.value),o=n.handler,f=n.middleware,a=n.detectIframe;if(n.isActive){if(e["__v-click-outside"]=n.events.map((function(t){return{event:t,srcTarget:document.documentElement,handler:function(t){return function(e){var t=e.el,r=e.event,n=e.handler,o=e.middleware,f=r.path||r.composedPath&&r.composedPath();(f?f.indexOf(t)<0:!t.contains(r.target))&&i({event:r,handler:n,middleware:o})}({el:e,event:t,handler:o,middleware:f})}}})),a){var h={event:"blur",srcTarget:window,handler:function(t){return function(e){var t=e.el,r=e.event,n=e.handler,o=e.middleware;setTimeout((function(){var e=document.activeElement;e&&"IFRAME"===e.tagName&&!t.contains(e)&&i({event:r,handler:n,middleware:o})}),0)}({el:e,event:t,handler:o,middleware:f})}};e["__v-click-outside"]=[].concat(e["__v-click-outside"],[h])}e["__v-click-outside"].forEach((function(t){var r=t.event,i=t.srcTarget,n=t.handler;return setTimeout((function(){e["__v-click-outside"]&&i.addEventListener(r,n,!1)}),0)}))}}function o(e){(e["__v-click-outside"]||[]).forEach((function(e){return e.srcTarget.removeEventListener(e.event,e.handler,!1)})),delete e["__v-click-outside"]}var f=e?{bind:n,update:function(e,t){var r=t.value,i=t.oldValue;JSON.stringify(r)!==JSON.stringify(i)&&(o(e),n(e,{value:r}))},unbind:o}:{};return{install:function(e){e.directive("click-outside",f)},directive:f}}()},function(e,t,r){var n;"undefined"!=typeof self&&self,e.exports=(n=r(0),function(e){var t={};function s(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,s),n.l=!0,n.exports}return s.m=e,s.c=t,s.d=function(e,t,r){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(s.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)s.d(r,n,function(t){return e[t]}.bind(null,n));return r},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="",s(s.s=3)}([function(e,s){e.exports=n},,,function(e,t,s){"use strict";s.r(t),s.d(t,"Component",(function(){return a})),s.d(t,"Positions",(function(){return n}));class r{constructor(e,t){this.startedAt=Date.now(),this.callback=e,this.delay=t,this.timer=setTimeout(e,t)}pause(){this.stop(),this.delay-=Date.now()-this.startedAt}resume(){this.stop(),this.startedAt=Date.now(),this.timer=setTimeout(this.callback,this.delay)}stop(){clearTimeout(this.timer)}}var n=Object.freeze({TOP_RIGHT:"top-right",TOP:"top",TOP_LEFT:"top-left",BOTTOM_RIGHT:"bottom-right",BOTTOM:"bottom",BOTTOM_LEFT:"bottom-left"}),i=s(0),o=new(s.n(i).a),a=function(e,t,s,r,n,i,o,a){var u,f="function"==typeof e?e.options:e;if(t&&(f.render=t,f.staticRenderFns=[],f._compiled=!0),u)if(f.functional){f._injectStyles=u;var h=f.render;f.render=function(e,t){return u.call(t),h(e,t)}}else{var p=f.beforeCreate;f.beforeCreate=p?[].concat(p,u):[u]}return{exports:e,options:f}}({name:"toast",props:{message:{type:String,required:!0},type:{type:String,default:"success"},position:{type:String,default:n.BOTTOM_RIGHT,validator:e=>Object.values(n).includes(e)},duration:{type:Number,default:3e3},dismissible:{type:Boolean,default:!0},onClose:{type:Function,default:()=>{}},onClick:{type:Function,default:()=>{}},queue:Boolean,pauseOnHover:{type:Boolean,default:!0}},data:()=>({isActive:!1,parentTop:null,parentBottom:null,isHovered:!1}),beforeMount(){this.setupContainer()},mounted(){this.showNotice(),o.$on("toast.clear",this.close)},methods:{setupContainer(){if(this.parentTop=document.querySelector(".v-notices.is-top"),this.parentBottom=document.querySelector(".v-notices.is-bottom"),this.parentTop&&this.parentBottom)return;this.parentTop||(this.parentTop=document.createElement("div"),this.parentTop.className="v-notices is-top"),this.parentBottom||(this.parentBottom=document.createElement("div"),this.parentBottom.className="v-notices is-bottom");const e=document.body;e.appendChild(this.parentTop),e.appendChild(this.parentBottom)},shouldQueue(){return!!this.queue&&(this.parentTop.childElementCount>0||this.parentBottom.childElementCount>0)},close(){this.timer.stop(),clearTimeout(this.queueTimer),this.isActive=!1,setTimeout(()=>{var e;this.onClose.apply(null,arguments),this.$destroy(),void 0!==(e=this.$el).remove?e.remove():e.parentNode.removeChild(e)},150)},showNotice(){this.shouldQueue()?this.queueTimer=setTimeout(this.showNotice,250):(this.correctParent.insertAdjacentElement("afterbegin",this.$el),this.isActive=!0,this.timer=new r(this.close,this.duration))},whenClicked(){this.dismissible&&(this.onClick.apply(null,arguments),this.close())},toggleTimer(e){this.pauseOnHover&&(e?this.timer.pause():this.timer.resume())}},computed:{correctParent(){switch(this.position){case n.TOP:case n.TOP_RIGHT:case n.TOP_LEFT:return this.parentTop;case n.BOTTOM:case n.BOTTOM_RIGHT:case n.BOTTOM_LEFT:return this.parentBottom}},transition(){switch(this.position){case n.TOP:case n.TOP_RIGHT:case n.TOP_LEFT:return{enter:"fadeInDown",leave:"fadeOut"};case n.BOTTOM:case n.BOTTOM_RIGHT:case n.BOTTOM_LEFT:return{enter:"fadeInUp",leave:"fadeOut"}}}},beforeDestroy(){o.$off("toast.clear",this.close)}},(function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("transition",{attrs:{"enter-active-class":e.transition.enter,"leave-active-class":e.transition.leave}},[s("div",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"}],staticClass:"v-toast",class:["v-toast-"+e.type,"is-"+e.position],attrs:{role:"alert"},on:{mouseover:function(t){return e.toggleTimer(!0)},mouseleave:function(t){return e.toggleTimer(!1)},click:e.whenClicked}},[s("div",{staticClass:"v-toast-icon"}),e._v(" "),s("p",{staticClass:"v-toast-text",domProps:{innerHTML:e._s(e.message)}})])])})).exports,u=(e,t={})=>({open(s){let r;"string"==typeof s&&(r=s);const n={message:r},i=Object.assign({},n,t,s);return new(e.extend(a))({el:document.createElement("div"),propsData:i})},clear(){o.$emit("toast.clear")},success(e,t={}){return this.open(Object.assign({},{message:e,type:"success"},t))},error(e,t={}){return this.open(Object.assign({},{message:e,type:"error"},t))},info(e,t={}){return this.open(Object.assign({},{message:e,type:"info"},t))},warning(e,t={}){return this.open(Object.assign({},{message:e,type:"warning"},t))},default(e,t={}){return this.open(Object.assign({},{message:e,type:"default"},t))}});a.install=(e,t={})=>{let s=u(e,t);e.$toast=s,e.prototype.$toast=s},t.default=a}]).default)},function(e){e.exports=JSON.parse('{"code":"en","messages":{"alpha":"The {_field_} field may only contain alphabetic characters","alpha_num":"The {_field_} field may only contain alpha-numeric characters","alpha_dash":"The {_field_} field may contain alpha-numeric characters as well as dashes and underscores","alpha_spaces":"The {_field_} field may only contain alphabetic characters as well as spaces","between":"The {_field_} field must be between {min} and {max}","confirmed":"The {_field_} field confirmation does not match","digits":"The {_field_} field must be numeric and exactly contain {length} digits","dimensions":"The {_field_} field must be {width} pixels by {height} pixels","email":"The {_field_} field must be a valid email","excluded":"The {_field_} field is not a valid value","ext":"The {_field_} field is not a valid file","image":"The {_field_} field must be an image","integer":"The {_field_} field must be an integer","length":"The {_field_} field must be {length} long","max_value":"The {_field_} field must be {max} or less","max":"The {_field_} field may not be greater than {length} characters","mimes":"The {_field_} field must have a valid file type","min_value":"The {_field_} field must be {min} or more","min":"The {_field_} field must be at least {length} characters","numeric":"The {_field_} field may only contain numeric characters","oneOf":"The {_field_} field is not a valid value","regex":"The {_field_} field format is invalid","required_if":"The {_field_} field is required","required":"The {_field_} field is required","size":"The {_field_} field size must be less than {size}KB"}}')},function(e,t,r){"use strict";r.d(t,"a",(function(){return f}));r(218),r(53),r(145),r(212),r(49),r(134),r(42),r(295),r(72),r(24),r(213),r(59),r(39),r(41),r(146),r(216),r(458),r(60),r(460);function n(e){return null==e}function o(e){return Array.isArray(e)&&0===e.length}var f={validate:function(e,t){var r=(void 0===t?{allowFalse:!0}:t).allowFalse,f={valid:!1,required:!0};return n(e)||o(e)?f:!1!==e||r?(f.valid=!!String(e).trim().length,f):f},params:[{name:"allowFalse",default:!0}],computesRequired:!0}},,,,function(e,t,r){(function(e){e.installComponents=function(component,e){const t="function"==typeof component.exports?component.exports.extendOptions:component.options;for(var i in"function"==typeof component.exports&&(t.components=component.exports.options.components),t.components=t.components||{},e)t.components[i]=t.components[i]||e[i];t.functional&&function(component,e){if(component.exports._functionalComponents)return;component.exports._functionalComponents=!0;const t=component.exports.render;component.exports.render=function(r,n){return t(r,Object.assign({},n,{_c:function(t,a,b){return n._c(e[t]||t,a,b)}}))}}(component,t.components)}}).call(this,r(9))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";t.randomBytes=t.rng=t.pseudoRandomBytes=t.prng=r(61),t.createHash=t.Hash=r(84),t.createHmac=t.Hmac=r(233);var n=r(352),o=Object.keys(n),f=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(o);t.getHashes=function(){return f};var p=r(236);t.pbkdf2=p.pbkdf2,t.pbkdf2Sync=p.pbkdf2Sync;var h=r(354);t.Cipher=h.Cipher,t.createCipher=h.createCipher,t.Cipheriv=h.Cipheriv,t.createCipheriv=h.createCipheriv,t.Decipher=h.Decipher,t.createDecipher=h.createDecipher,t.Decipheriv=h.Decipheriv,t.createDecipheriv=h.createDecipheriv,t.getCiphers=h.getCiphers,t.listCiphers=h.listCiphers;var c=r(369);t.DiffieHellmanGroup=c.DiffieHellmanGroup,t.createDiffieHellmanGroup=c.createDiffieHellmanGroup,t.getDiffieHellman=c.getDiffieHellman,t.createDiffieHellman=c.createDiffieHellman,t.DiffieHellman=c.DiffieHellman;var d=r(374);t.createSign=d.createSign,t.Sign=d.Sign,t.createVerify=d.createVerify,t.Verify=d.Verify,t.createECDH=r(413);var l=r(414);t.publicEncrypt=l.publicEncrypt,t.privateEncrypt=l.privateEncrypt,t.publicDecrypt=l.publicDecrypt,t.privateDecrypt=l.privateDecrypt;var m=r(417);t.randomFill=m.randomFill,t.randomFillSync=m.randomFillSync,t.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},t.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}},function(e,t,r){"use strict";t.byteLength=function(e){var t=c(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,i,r=c(e),n=r[0],h=r[1],d=new f(function(e,t,r){return 3*(t+r)/4-r}(0,n,h)),l=0,m=h>0?n-4:n;for(i=0;i>16&255,d[l++]=t>>8&255,d[l++]=255&t;2===h&&(t=o[e.charCodeAt(i)]<<2|o[e.charCodeAt(i+1)]>>4,d[l++]=255&t);1===h&&(t=o[e.charCodeAt(i)]<<10|o[e.charCodeAt(i+1)]<<4|o[e.charCodeAt(i+2)]>>2,d[l++]=t>>8&255,d[l++]=255&t);return d},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,f=[],i=0,h=r-o;ih?h:i+16383));1===o?(t=e[r-1],f.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],f.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return f.join("")};for(var n=[],o=[],f="undefined"!=typeof Uint8Array?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,h=code.length;i0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function d(e,t,r){for(var o,f,output=[],i=t;i>18&63]+n[f>>12&63]+n[f>>6&63]+n[63&f]);return output.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,r,n,o){var f,h,c=8*o-n-1,d=(1<>1,m=-7,i=r?o-1:0,v=r?-1:1,s=e[t+i];for(i+=v,f=s&(1<<-m)-1,s>>=-m,m+=c;m>0;f=256*f+e[t+i],i+=v,m-=8);for(h=f&(1<<-m)-1,f>>=-m,m+=n;m>0;h=256*h+e[t+i],i+=v,m-=8);if(0===f)f=1-l;else{if(f===d)return h?NaN:1/0*(s?-1:1);h+=Math.pow(2,n),f-=l}return(s?-1:1)*h*Math.pow(2,f-n)},t.write=function(e,t,r,n,o,f){var h,c,d,l=8*f-o-1,m=(1<>1,rt=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,i=n?0:f-1,y=n?1:-1,s=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,h=m):(h=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-h))<1&&(h--,d*=2),(t+=h+v>=1?rt/d:rt*Math.pow(2,1-v))*d>=2&&(h++,d/=2),h+v>=m?(c=0,h=m):h+v>=1?(c=(t*d-1)*Math.pow(2,o),h+=v):(c=t*Math.pow(2,v-1)*Math.pow(2,o),h=0));o>=8;e[r+i]=255&c,i+=y,c/=256,o-=8);for(h=h<0;e[r+i]=255&h,i+=y,h/=256,l-=8);e[r+i-y]|=128*s}},function(e,t,r){(t=e.exports=r(221)).Stream=t,t.Readable=t,t.Writable=r(225),t.Duplex=r(63),t.Transform=r(226),t.PassThrough=r(336),t.finished=r(150),t.pipeline=r(337)},,function(e,t,r){"use strict";function n(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,r)}return t}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e,t){for(var i=0;i0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(s){if(0===this.length)return"";for(var p=this.head,e=""+p.data;p=p.next;)e+=s+p.data;return e}},{key:"concat",value:function(e){if(0===this.length)return h.alloc(0);for(var t,r,n,o=h.allocUnsafe(e>>>0),p=this.head,i=0;p;)t=p.data,r=o,n=i,h.prototype.copy.call(t,r,n),i+=p.data.length,p=p.next;return o}},{key:"consume",value:function(e,t){var r;return en.length?n.length:e;if(o===n.length?r+=n:r+=n.slice(0,e),0==(e-=o)){o===n.length?(++t,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=n.slice(o));break}++t}return this.length-=t,r}},{key:"_getBuffer",value:function(e){var t=h.allocUnsafe(e),p=this.head,r=1;for(p.data.copy(t),e-=p.data.length;p=p.next;){var n=p.data,o=e>n.length?n.length:e;if(n.copy(t,t.length-e,0,o),0==(e-=o)){o===n.length?(++r,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=n.slice(o));break}++r}return this.length-=r,t}},{key:d,value:function(e,t){return c(this,function(e){for(var i=1;i0,(function(e){n||(n=e),e&&h.forEach(l),r||(h.forEach(l),o(n))}))}));return t.reduce(m)}},function(e,t,r){var n=r(1),o=r(64),f=r(3).Buffer,h=[1518500249,1859775393,-1894007588,-899497514],c=new Array(80);function d(){this.init(),this._w=c,o.call(this,64,56)}function l(e){return e<<30|e>>>2}function m(s,b,e,t){return 0===s?b&e|~b&t:2===s?b&e|b&t|e&t:b^e^t}n(d,o),d.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},d.prototype._update=function(e){for(var t,r=this._w,a=0|this._a,b=0|this._b,n=0|this._c,o=0|this._d,f=0|this._e,i=0;i<16;++i)r[i]=e.readInt32BE(4*i);for(;i<80;++i)r[i]=r[i-3]^r[i-8]^r[i-14]^r[i-16];for(var c=0;c<80;++c){var s=~~(c/20),d=0|((t=a)<<5|t>>>27)+m(s,b,n,o)+f+r[c]+h[s];f=o,o=n,n=l(b),b=a,a=d}this._a=a+this._a|0,this._b=b+this._b|0,this._c=n+this._c|0,this._d=o+this._d|0,this._e=f+this._e|0},d.prototype._hash=function(){var e=f.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=d},function(e,t,r){var n=r(1),o=r(64),f=r(3).Buffer,h=[1518500249,1859775393,-1894007588,-899497514],c=new Array(80);function d(){this.init(),this._w=c,o.call(this,64,56)}function l(e){return e<<5|e>>>27}function m(e){return e<<30|e>>>2}function v(s,b,e,t){return 0===s?b&e|~b&t:2===s?b&e|b&t|e&t:b^e^t}n(d,o),d.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},d.prototype._update=function(e){for(var t,r=this._w,a=0|this._a,b=0|this._b,n=0|this._c,o=0|this._d,f=0|this._e,i=0;i<16;++i)r[i]=e.readInt32BE(4*i);for(;i<80;++i)r[i]=(t=r[i-3]^r[i-8]^r[i-14]^r[i-16])<<1|t>>>31;for(var c=0;c<80;++c){var s=~~(c/20),d=l(a)+v(s,b,n,o)+f+r[c]+h[s]|0;f=o,o=n,n=m(b),b=a,a=d}this._a=a+this._a|0,this._b=b+this._b|0,this._c=n+this._c|0,this._d=o+this._d|0,this._e=f+this._e|0},d.prototype._hash=function(){var e=f.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=d},function(e,t,r){var n=r(1),o=r(227),f=r(64),h=r(3).Buffer,c=new Array(64);function d(){this.init(),this._w=c,f.call(this,64,56)}n(d,o),d.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},d.prototype._hash=function(){var e=h.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=d},function(e,t,r){var n=r(1),o=r(228),f=r(64),h=r(3).Buffer,c=new Array(160);function d(){this.init(),this._w=c,f.call(this,128,112)}n(d,o),d.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},d.prototype._hash=function(){var e=h.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=d},function(e,t,r){e.exports=o;var n=r(43).EventEmitter;function o(){n.call(this)}r(1)(o,n),o.Readable=r(153),o.Writable=r(347),o.Duplex=r(348),o.Transform=r(349),o.PassThrough=r(350),o.Stream=o,o.prototype.pipe=function(e,t){var source=this;function r(t){e.writable&&!1===e.write(t)&&source.pause&&source.pause()}function o(){source.readable&&source.resume&&source.resume()}source.on("data",r),e.on("drain",o),e._isStdio||t&&!1===t.end||(source.on("end",h),source.on("close",c));var f=!1;function h(){f||(f=!0,e.end())}function c(){f||(f=!0,"function"==typeof e.destroy&&e.destroy())}function d(e){if(l(),0===n.listenerCount(this,"error"))throw e}function l(){source.removeListener("data",r),e.removeListener("drain",o),source.removeListener("end",h),source.removeListener("close",c),source.removeListener("error",d),e.removeListener("error",d),source.removeListener("end",l),source.removeListener("close",l),e.removeListener("close",l)}return source.on("error",d),e.on("error",d),source.on("end",l),source.on("close",l),e.on("close",l),e.emit("pipe",source),e}},,function(e,t,r){"use strict";var n=r(154).Buffer,o=r(345);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(s){if(0===this.length)return"";for(var p=this.head,e=""+p.data;p=p.next;)e+=s+p.data;return e},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);if(1===this.length)return this.head.data;for(var t,r,o,f=n.allocUnsafe(e>>>0),p=this.head,i=0;p;)t=p.data,r=f,o=i,t.copy(r,o),i+=p.data.length,p=p.next;return f},e}(),o&&o.inspect&&o.inspect.custom&&(e.exports.prototype[o.inspect.custom]=function(){var e=o.inspect({length:this.length});return this.constructor.name+" "+e})},,function(e,t,r){"use strict";e.exports=f;var n=r(232),o=Object.create(r(85));function f(e){if(!(this instanceof f))return new f(e);n.call(this,e)}o.inherits=r(1),o.inherits(f,n),f.prototype._transform=function(e,t,r){r(null,e)}},function(e,t,r){e.exports=r(155)},function(e,t,r){e.exports=r(45)},function(e,t,r){e.exports=r(153).Transform},function(e,t,r){e.exports=r(153).PassThrough},function(e,t,r){"use strict";var n=r(1),o=r(3).Buffer,f=r(40),h=o.alloc(128);function c(e,t){f.call(this,"digest"),"string"==typeof t&&(t=o.from(t)),this._alg=e,this._key=t,t.length>64?t=e(t):t.length<64&&(t=o.concat([t,h],64));for(var r=this._ipad=o.allocUnsafe(64),n=this._opad=o.allocUnsafe(64),i=0;i<64;i++)r[i]=54^t[i],n[i]=92^t[i];this._hash=[r]}n(c,f),c.prototype._update=function(data){this._hash.push(data)},c.prototype._final=function(){var e=this._alg(o.concat(this._hash));return this._alg(o.concat([this._opad,e]))},e.exports=c},function(e,t,r){e.exports=r(235)},function(e,t,r){(function(t,n){var o,f=r(3).Buffer,h=r(237),c=r(238),d=r(239),l=r(240),m=t.crypto&&t.crypto.subtle,v={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"},y=[];function _(e,t,r,n,o){return m.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then((function(e){return m.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:o}},e,n<<3)})).then((function(e){return f.from(e)}))}e.exports=function(e,r,w,M,S,k){"function"==typeof S&&(k=S,S=void 0);var E=v[(S=S||"sha1").toLowerCase()];if(!E||"function"!=typeof t.Promise)return n.nextTick((function(){var t;try{t=d(e,r,w,M,S)}catch(e){return k(e)}k(null,t)}));if(h(w,M),e=l(e,c,"Password"),r=l(r,c,"Salt"),"function"!=typeof k)throw new Error("No callback provided to pbkdf2");!function(e,t){e.then((function(e){n.nextTick((function(){t(null,e)}))}),(function(e){n.nextTick((function(){t(e)}))}))}(function(e){if(t.process&&!t.process.browser)return Promise.resolve(!1);if(!m||!m.importKey||!m.deriveBits)return Promise.resolve(!1);if(void 0!==y[e])return y[e];var r=_(o=o||f.alloc(8),o,10,128,e).then((function(){return!0})).catch((function(){return!1}));return y[e]=r,r}(E).then((function(t){return t?_(e,r,w,M,E):d(e,r,w,M,S)})),k)}}).call(this,r(9),r(13))},function(e,t,r){var n=r(355),o=r(157),f=r(158),h=r(368),c=r(107);function d(e,t,r){if(e=e.toLowerCase(),f[e])return o.createCipheriv(e,t,r);if(h[e])return new n({key:t,iv:r,mode:e});throw new TypeError("invalid suite type")}function l(e,t,r){if(e=e.toLowerCase(),f[e])return o.createDecipheriv(e,t,r);if(h[e])return new n({key:t,iv:r,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}t.createCipher=t.Cipher=function(e,t){var r,n;if(e=e.toLowerCase(),f[e])r=f[e].key,n=f[e].iv;else{if(!h[e])throw new TypeError("invalid suite type");r=8*h[e].key,n=h[e].iv}var o=c(t,!1,r,n);return d(e,o.key,o.iv)},t.createCipheriv=t.Cipheriv=d,t.createDecipher=t.Decipher=function(e,t){var r,n;if(e=e.toLowerCase(),f[e])r=f[e].key,n=f[e].iv;else{if(!h[e])throw new TypeError("invalid suite type");r=8*h[e].key,n=h[e].iv}var o=c(t,!1,r,n);return l(e,o.key,o.iv)},t.createDecipheriv=t.Decipheriv=l,t.listCiphers=t.getCiphers=function(){return Object.keys(h).concat(o.getCiphers())}},function(e,t,r){var n=r(40),o=r(356),f=r(1),h=r(3).Buffer,c={"des-ede3-cbc":o.CBC.instantiate(o.EDE),"des-ede3":o.EDE,"des-ede-cbc":o.CBC.instantiate(o.EDE),"des-ede":o.EDE,"des-cbc":o.CBC.instantiate(o.DES),"des-ecb":o.DES};function d(e){n.call(this);var t,r=e.mode.toLowerCase(),o=c[r];t=e.decrypt?"decrypt":"encrypt";var f=e.key;h.isBuffer(f)||(f=h.from(f)),"des-ede"!==r&&"des-ede-cbc"!==r||(f=h.concat([f,f.slice(0,8)]));var d=e.iv;h.isBuffer(d)||(d=h.from(d)),this._des=o.create({key:f,iv:d,type:t})}c.des=c["des-cbc"],c.des3=c["des-ede3-cbc"],e.exports=d,f(d,n),d.prototype._update=function(data){return h.from(this._des.update(data))},d.prototype._final=function(){return h.from(this._des.final())}},function(e,t,r){"use strict";t.utils=r(241),t.Cipher=r(156),t.DES=r(242),t.CBC=r(357),t.EDE=r(358)},function(e,t,r){"use strict";var n=r(25),o=r(1),f={};function h(e){n.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var i=0;i15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},y.prototype.flush=function(){for(var e=16-this.cache.length,t=f.allocUnsafe(e),i=-1;++i>i%8,e._prev=f(e._prev,r?n:o);return h}function f(e,t){var r=e.length,i=-1,o=n.allocUnsafe(e.length);for(e=n.concat([e,n.from([t])]);++i>7;return o}t.encrypt=function(e,t,r){for(var f=t.length,h=n.allocUnsafe(f),i=-1;++i>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function h(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}h.prototype.ghash=function(e){for(var i=-1;++i0;t--)n[t]=n[t]>>>1|(1&n[t-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=n[0]^225<<24)}this.state=f(o)},h.prototype.update=function(e){var t;for(this.cache=n.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},h.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,o],16)),this.ghash(f([0,e,0,t])),this.state},e.exports=h},function(e,t,r){var n=r(246),o=r(3).Buffer,f=r(158),h=r(247),c=r(40),d=r(106),l=r(107);function m(e,t,r){c.call(this),this._cache=new v,this._last=void 0,this._cipher=new d.AES(t),this._prev=o.from(r),this._mode=e,this._autopadding=!0}function v(){this.cache=o.allocUnsafe(0)}function y(e,t,r){var c=f[e.toLowerCase()];if(!c)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=o.from(r)),"GCM"!==c.mode&&r.length!==c.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=o.from(t)),t.length!==c.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===c.type?new h(c.module,t,r,!0):"auth"===c.type?new n(c.module,t,r,!0):new m(c.module,t,r)}r(1)(m,c),m.prototype._update=function(data){var e,t;this._cache.add(data);for(var r=[];e=this._cache.get(this._autopadding);)t=this._mode.decrypt(this,e),r.push(t);return o.concat(r)},m.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var i=-1;for(;++i16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},v.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var r=f[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=l(t,!1,r.key,r.iv);return y(e,n.key,n.iv)},t.createDecipheriv=y},function(e,t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},function(e,t,r){(function(e){var n=r(248),o=r(372),f=r(373);var h={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(t){var r=new e(o[t].prime,"hex"),n=new e(o[t].gen,"hex");return new f(r,n)},t.createDiffieHellman=t.DiffieHellman=function t(r,o,c,d){return e.isBuffer(o)||void 0===h[o]?t(r,"binary",o,c):(o=o||"binary",d=d||"binary",c=c||new e([2]),e.isBuffer(c)||(c=new e(c,d)),"number"==typeof r?new f(n(r,c),c,!0):(e.isBuffer(r)||(r=new e(r,o)),new f(r,c,!0)))}}).call(this,r(14).Buffer)},,,function(e){e.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},function(e,t,r){(function(t){var n=r(11),o=new(r(249)),f=new n(24),h=new n(11),c=new n(10),d=new n(3),l=new n(7),m=r(248),v=r(61);function y(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this._pub=new n(e),this}function _(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this._priv=new n(e),this}e.exports=M;var w={};function M(e,t,r){this.setGenerator(t),this.__prime=new n(e),this._prime=n.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=y,this.setPrivateKey=_):this._primeCode=8}function S(e,r){var n=new t(e.toArray());return r?n.toString(r):n}Object.defineProperty(M.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var r=t.toString("hex"),n=[r,e.toString(16)].join("_");if(n in w)return w[n];var v,y=0;if(e.isEven()||!m.simpleSieve||!m.fermatTest(e)||!o.test(e))return y+=1,y+="02"===r||"05"===r?8:4,w[n]=y,y;switch(o.test(e.shrn(1))||(y+=2),r){case"02":e.mod(f).cmp(h)&&(y+=8);break;case"05":(v=e.mod(c)).cmp(d)&&v.cmp(l)&&(y+=8);break;default:y+=4}return w[n]=y,y}(this.__prime,this.__gen)),this._primeCode}}),M.prototype.generateKeys=function(){return this._priv||(this._priv=new n(v(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},M.prototype.computeSecret=function(e){var r=(e=(e=new n(e)).toRed(this._prime)).redPow(this._priv).fromRed(),o=new t(r.toArray()),f=this.getPrime();if(o.length0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(s){if(0===this.length)return"";for(var p=this.head,e=""+p.data;p=p.next;)e+=s+p.data;return e}},{key:"concat",value:function(e){if(0===this.length)return h.alloc(0);for(var t,r,n,o=h.allocUnsafe(e>>>0),p=this.head,i=0;p;)t=p.data,r=o,n=i,h.prototype.copy.call(t,r,n),i+=p.data.length,p=p.next;return o}},{key:"consume",value:function(e,t){var r;return en.length?n.length:e;if(o===n.length?r+=n:r+=n.slice(0,e),0==(e-=o)){o===n.length?(++t,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=n.slice(o));break}++t}return this.length-=t,r}},{key:"_getBuffer",value:function(e){var t=h.allocUnsafe(e),p=this.head,r=1;for(p.data.copy(t),e-=p.data.length;p=p.next;){var n=p.data,o=e>n.length?n.length:e;if(n.copy(t,t.length-e,0,o),0==(e-=o)){o===n.length?(++r,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=n.slice(o));break}++r}return this.length-=r,t}},{key:d,value:function(e,t){return c(this,function(e){for(var i=1;i0,(function(e){n||(n=e),e&&h.forEach(l),r||(h.forEach(l),o(n))}))}));return t.reduce(m)}},function(e,t,r){var n=r(3).Buffer,o=r(233),f=r(161),h=r(162).ec,c=r(261),d=r(109),l=r(267);function m(e,q,t,r){if((e=n.from(e.toArray())).length0&&t.ishrn(r),t}function y(q,e,t){var r,f;do{for(r=n.alloc(0);8*r.length","license":"MIT","bugs":{"url":"https://github.com/indutny/elliptic/issues"},"homepage":"https://github.com/indutny/elliptic","devDependencies":{"brfs":"^1.4.3","coveralls":"^3.0.8","grunt":"^1.0.4","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.2","jscs":"^3.0.7","jshint":"^2.10.3","mocha":"^6.2.2"},"dependencies":{"bn.js":"^4.4.0","brorand":"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0","inherits":"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"}}')},function(e,t,r){"use strict";var n=r(26),o=r(11),f=r(1),h=r(108),c=n.assert;function d(e){h.call(this,"short",e),this.a=new o(e.a,16).toRed(this.red),this.b=new o(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function l(e,t,r,n){h.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new o(t,16),this.y=new o(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function m(e,t,r,n){h.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new o(0)):(this.x=new o(t,16),this.y=new o(r,16),this.z=new o(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}f(d,h),e.exports=d,d.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r;if(e.beta)t=new o(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(e.lambda)r=new o(e.lambda,16);else{var f=this._getEndoRoots(this.n);0===this.g.mul(f[0]).x.cmp(this.g.x.redMul(t))?r=f[0]:(r=f[1],c(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:r,basis:e.basis?e.basis.map((function(e){return{a:new o(e.a,16),b:new o(e.b,16)}})):this._getEndoBasis(r)}}},d.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:o.mont(e),r=new o(2).toRed(t).redInvm(),n=r.redNeg(),s=new o(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(s).fromRed(),n.redSub(s).fromRed()]},d.prototype._getEndoBasis=function(e){for(var t,r,n,f,h,c,d,l,m,v=this.n.ushrn(Math.floor(this.n.bitLength()/2)),u=e,y=this.n.clone(),_=new o(1),w=new o(0),M=new o(0),S=new o(1),i=0;0!==u.cmpn(0);){var q=y.div(u);l=y.sub(q.mul(u)),m=M.sub(q.mul(_));var k=S.sub(q.mul(w));if(!n&&l.cmp(v)<0)t=d.neg(),r=_,n=l.neg(),f=m;else if(n&&2==++i)break;d=l,y=u,u=l,M=_,_=m,S=w,w=k}h=l.neg(),c=m;var E=n.sqr().add(f.sqr());return h.sqr().add(c.sqr()).cmp(E)>=0&&(h=t,c=r),n.negative&&(n=n.neg(),f=f.neg()),h.negative&&(h=h.neg(),c=c.neg()),[{a:n,b:f},{a:h,b:c}]},d.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],o=n.b.mul(e).divRound(this.n),f=r.b.neg().mul(e).divRound(this.n),h=o.mul(r.a),c=f.mul(n.a),d=o.mul(r.b),l=f.mul(n.b);return{k1:e.sub(h).sub(c),k2:d.add(l).neg()}},d.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var f=n.fromRed().isOdd();return(t&&!f||!t&&f)&&(n=n.redNeg()),this.point(e,n)},d.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),o=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(o).cmpn(0)},d.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,o=this._endoWnafT2,i=0;i":""},l.prototype.isInfinity=function(){return this.inf},l.prototype.add=function(p){if(this.inf)return p;if(p.inf)return this;if(this.eq(p))return this.dbl();if(this.neg().eq(p))return this.curve.point(null,null);if(0===this.x.cmp(p.x))return this.curve.point(null,null);var e=this.y.redSub(p.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(p.x).redInvm()));var t=e.redSqr().redISub(this.x).redISub(p.x),r=e.redMul(this.x.redSub(t)).redISub(this.y);return this.curve.point(t,r)},l.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var a=this.curve.a,t=this.x.redSqr(),r=e.redInvm(),n=t.redAdd(t).redIAdd(t).redIAdd(a).redMul(r),o=n.redSqr().redISub(this.x.redAdd(this.x)),f=n.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,f)},l.prototype.getX=function(){return this.x.fromRed()},l.prototype.getY=function(){return this.y.fromRed()},l.prototype.mul=function(e){return e=new o(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},l.prototype.mulAdd=function(e,t,r){var n=[this,t],o=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,o):this.curve._wnafMulAdd(1,n,o,2)},l.prototype.jmulAdd=function(e,t,r){var n=[this,t],o=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,o,!0):this.curve._wnafMulAdd(1,n,o,2,!0)},l.prototype.eq=function(p){return this===p||this.inf===p.inf&&(this.inf||0===this.x.cmp(p.x)&&0===this.y.cmp(p.y))},l.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var pre=this.precomputed,r=function(p){return p.neg()};t.precomputed={naf:pre.naf&&{wnd:pre.naf.wnd,points:pre.naf.points.map(r)},doubles:pre.doubles&&{step:pre.doubles.step,points:pre.doubles.points.map(r)}}}return t},l.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},f(m,h.BasePoint),d.prototype.jpoint=function(e,t,r){return new m(this,e,t,r)},m.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},m.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},m.prototype.add=function(p){if(this.isInfinity())return p;if(p.isInfinity())return this;var e=p.z.redSqr(),t=this.z.redSqr(),r=this.x.redMul(e),n=p.x.redMul(t),o=this.y.redMul(e.redMul(p.z)),f=p.y.redMul(t.redMul(this.z)),h=r.redSub(n),c=o.redSub(f);if(0===h.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var h2=h.redSqr(),h3=h2.redMul(h),d=r.redMul(h2),l=c.redSqr().redIAdd(h3).redISub(d).redISub(d),m=c.redMul(d.redISub(l)).redISub(o.redMul(h3)),v=this.z.redMul(p.z).redMul(h);return this.curve.jpoint(l,m,v)},m.prototype.mixedAdd=function(p){if(this.isInfinity())return p.toJ();if(p.isInfinity())return this;var e=this.z.redSqr(),t=this.x,r=p.x.redMul(e),n=this.y,o=p.y.redMul(e).redMul(this.z),f=t.redSub(r),h=n.redSub(o);if(0===f.cmpn(0))return 0!==h.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var h2=f.redSqr(),h3=h2.redMul(f),c=t.redMul(h2),d=h.redSqr().redIAdd(h3).redISub(c).redISub(c),l=h.redMul(c.redISub(d)).redISub(n.redMul(h3)),m=this.z.redMul(f);return this.curve.jpoint(d,l,m)},m.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,i=0;i=0)return!1;if(r.redIAdd(o),0===this.x.cmp(r))return!0}},m.prototype.inspect=function(){return this.isInfinity()?"":""},m.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,r){"use strict";var n=r(11),o=r(1),f=r(108),h=r(26);function c(e){f.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function d(e,t,r){f.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(c,f),e.exports=c,c.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},o(d,f.BasePoint),c.prototype.decodePoint=function(e,t){return this.point(h.toArray(e,t),1)},c.prototype.point=function(e,t){return new d(this,e,t)},c.prototype.pointFromJSON=function(e){return d.fromJSON(this,e)},d.prototype.precompute=function(){},d.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},d.fromJSON=function(e,t){return new d(e,t[0],t[1]||e.one)},d.prototype.inspect=function(){return this.isInfinity()?"":""},d.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},d.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),o=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,o)},d.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},d.prototype.diffAdd=function(p,e){var a=this.x.redAdd(this.z),b=this.x.redSub(this.z),t=p.x.redAdd(p.z),r=p.x.redSub(p.z).redMul(a),n=t.redMul(b),o=e.z.redMul(r.redAdd(n).redSqr()),f=e.x.redMul(r.redISub(n).redSqr());return this.curve.point(o,f)},d.prototype.mul=function(e){for(var t=e.clone(),a=this,b=this.curve.point(null,null),r=[];0!==t.cmpn(0);t.iushrn(1))r.push(t.andln(1));for(var i=r.length-1;i>=0;i--)0===r[i]?(a=a.diffAdd(b,this),b=b.dbl()):(b=a.diffAdd(b,this),a=a.dbl());return b},d.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},d.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},d.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},d.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},d.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,r){"use strict";var n=r(26),o=r(11),f=r(1),h=r(108),c=n.assert;function d(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,h.call(this,"edwards",e),this.a=new o(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),c(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function l(e,t,r,n,f){h.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(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 o(t,16),this.y=new o(r,16),this.z=n?new o(n,16):this.curve.one,this.t=f&&new o(f,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()))))}f(d,h),e.exports=d,d.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},d.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},d.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},d.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),f=this.one.redSub(this.c2.redMul(this.d).redMul(r)),h=n.redMul(f.redInvm()),c=h.redSqrt();if(0!==c.redSqr().redSub(h).cmp(this.zero))throw new Error("invalid point");var d=c.fromRed().isOdd();return(t&&!d||!t&&d)&&(c=c.redNeg()),this.point(e,c)},d.prototype.pointFromY=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),f=r.redMul(this.d).redMul(this.c2).redSub(this.a),h=n.redMul(f.redInvm());if(0===h.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var c=h.redSqrt();if(0!==c.redSqr().redSub(h).cmp(this.zero))throw new Error("invalid point");return c.fromRed().isOdd()!==t&&(c=c.redNeg()),this.point(c,e)},d.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),o=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(o)},f(l,h.BasePoint),d.prototype.pointFromJSON=function(e){return l.fromJSON(this,e)},d.prototype.point=function(e,t,r,n){return new l(this,e,t,r,n)},l.fromJSON=function(e,t){return new l(e,t[0],t[1],t[2])},l.prototype.inspect=function(){return this.isInfinity()?"":""},l.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},l.prototype._extDbl=function(){var a=this.x.redSqr(),b=this.y.redSqr(),e=this.z.redSqr();e=e.redIAdd(e);var t=this.curve._mulA(a),r=this.x.redAdd(this.y).redSqr().redISub(a).redISub(b),g=t.redAdd(b),n=g.redSub(e),o=t.redSub(b),f=r.redMul(n),h=g.redMul(o),c=r.redMul(o),d=n.redMul(g);return this.curve.point(f,h,d,c)},l.prototype._projDbl=function(){var e,t,r,b=this.x.redAdd(this.y).redSqr(),n=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var f=(d=this.curve._mulA(n)).redAdd(o);if(this.zOne)e=b.redSub(n).redSub(o).redMul(f.redSub(this.curve.two)),t=f.redMul(d.redSub(o)),r=f.redSqr().redSub(f).redSub(f);else{var h=this.z.redSqr(),c=f.redSub(h).redISub(h);e=b.redSub(n).redISub(o).redMul(c),t=f.redMul(d.redSub(o)),r=f.redMul(c)}}else{var d=n.redAdd(o);h=this.curve._mulC(this.z).redSqr(),c=d.redSub(h).redSub(h);e=this.curve._mulC(b.redISub(d)).redMul(c),t=this.curve._mulC(d).redMul(n.redISub(o)),r=d.redMul(c)}return this.curve.point(e,t,r)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},l.prototype._extAdd=function(p){var a=this.y.redSub(this.x).redMul(p.y.redSub(p.x)),b=this.y.redAdd(this.x).redMul(p.y.redAdd(p.x)),e=this.t.redMul(this.curve.dd).redMul(p.t),t=this.z.redMul(p.z.redAdd(p.z)),r=b.redSub(a),n=t.redSub(e),g=t.redAdd(e),o=b.redAdd(a),f=r.redMul(n),h=g.redMul(o),c=r.redMul(o),d=n.redMul(g);return this.curve.point(f,h,d,c)},l.prototype._projAdd=function(p){var e,t,a=this.z.redMul(p.z),b=a.redSqr(),r=this.x.redMul(p.x),n=this.y.redMul(p.y),o=this.curve.d.redMul(r).redMul(n),f=b.redSub(o),g=b.redAdd(o),h=this.x.redAdd(this.y).redMul(p.x.redAdd(p.y)).redISub(r).redISub(n),c=a.redMul(f).redMul(h);return this.curve.twisted?(e=a.redMul(g).redMul(n.redSub(this.curve._mulA(r))),t=f.redMul(g)):(e=a.redMul(g).redMul(n.redSub(r)),t=this.curve._mulC(f).redMul(g)),this.curve.point(c,e,t)},l.prototype.add=function(p){return this.isInfinity()?p:p.isInfinity()?this:this.curve.extended?this._extAdd(p):this._projAdd(p)},l.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},l.prototype.mulAdd=function(e,p,t){return this.curve._wnafMulAdd(1,[this,p],[e,t],2,!1)},l.prototype.jmulAdd=function(e,p,t){return this.curve._wnafMulAdd(1,[this,p],[e,t],2,!0)},l.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},l.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()},l.prototype.getY=function(){return this.normalize(),this.y.fromRed()},l.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},l.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},l.prototype.toP=l.prototype.normalize,l.prototype.mixedAdd=l.prototype.add},function(e,t,r){"use strict";t.sha1=r(389),t.sha224=r(390),t.sha256=r(259),t.sha384=r(391),t.sha512=r(260)},function(e,t,r){"use strict";var n=r(30),o=r(87),f=r(258),h=n.rotl32,c=n.sum32,d=n.sum32_5,l=f.ft_1,m=o.BlockHash,v=[1518500249,1859775393,2400959708,3395469782];function y(){if(!(this instanceof y))return new y;m.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(y,m),e.exports=y,y.blockSize=512,y.outSize=160,y.hmacStrength=80,y.padLength=64,y.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;ithis.blockSize&&(e=(new this.Hash).update(e).digest()),o(e.length<=this.blockSize);for(var i=e.length;i0))return h.iaddn(1),this.keyFromPrivate(h)}},v.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},v.prototype.sign=function(e,t,r,f){"object"==typeof r&&(f=r,r=null),f||(f={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var h=this.n.byteLength(),c=t.getPrivate().toArray("be",h),d=e.toArray("be",h),l=new o({hash:this.hash,entropy:c,nonce:d,pers:f.pers,persEnc:f.persEnc||"utf8"}),v=this.n.sub(new n(1)),y=0;;y++){var _=f.k?f.k(y):new n(l.generate(this.n.byteLength()));if(!((_=this._truncateToN(_,!0)).cmpn(1)<=0||_.cmp(v)>=0)){var w=this.g.mul(_);if(!w.isInfinity()){var M=w.getX(),S=M.umod(this.n);if(0!==S.cmpn(0)){var s=_.invm(this.n).mul(S.mul(t.getPrivate()).iadd(e));if(0!==(s=s.umod(this.n)).cmpn(0)){var k=(w.getY().isOdd()?1:0)|(0!==M.cmp(S)?2:0);return f.canonical&&s.cmp(this.nh)>0&&(s=this.n.sub(s),k^=1),new m({r:S,s:s,recoveryParam:k})}}}}}},v.prototype.verify=function(e,t,r,o){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,o);var f=(t=new m(t,"hex")).r,s=t.s;if(f.cmpn(1)<0||f.cmp(this.n)>=0)return!1;if(s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;var p,h=s.invm(this.n),c=h.mul(e).umod(this.n),d=h.mul(f).umod(this.n);return this.curve._maxwellTrick?!(p=this.g.jmulAdd(c,r.getPublic(),d)).isInfinity()&&p.eqXToP(f):!(p=this.g.mulAdd(c,r.getPublic(),d)).isInfinity()&&0===p.getX().umod(this.n).cmp(f)},v.prototype.recoverPubKey=function(e,t,r,o){d((3&r)===r,"The recovery param is more than two bits"),t=new m(t,o);var f=this.n,h=new n(e),c=t.r,s=t.s,l=1&r,v=r>>1;if(c.cmp(this.curve.p.umod(this.curve.n))>=0&&v)throw new Error("Unable to find sencond key candinate");c=v?this.curve.pointFromX(c.add(this.curve.n),l):this.curve.pointFromX(c,l);var y=t.r.invm(f),_=f.sub(h).mul(y).umod(f),w=s.mul(y).umod(f);return this.g.mulAdd(_,c,w)},v.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new m(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},function(e,t,r){"use strict";var n=r(164),o=r(256),f=r(25);function h(e){if(!(this instanceof h))return new h(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=o.toArray(e.entropy,e.entropyEnc||"hex"),r=o.toArray(e.nonce,e.nonceEnc||"hex"),n=o.toArray(e.pers,e.persEnc||"hex");f(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=h,h.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},h.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=o.toArray(r,n||"hex"),this._update(r));for(var f=[];f.length"}},function(e,t,r){"use strict";var n=r(11),o=r(26),f=o.assert;function h(e,t){if(e instanceof h)return e;this._importDER(e,t)||(f(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function c(){this.place=0}function d(e,p){var t=e[p.place++];if(!(128&t))return t;var r=15&t;if(0===r||r>4)return!1;for(var n=0,i=0,o=p.place;i>>=0;return!(n<=127)&&(p.place=o,n)}function l(e){for(var i=0,t=e.length-1;!e[i]&&!(128&e[i+1])&&i>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=h,h.prototype._importDER=function(data,e){data=o.toArray(data,e);var p=new c;if(48!==data[p.place++])return!1;var t=d(data,p);if(!1===t)return!1;if(t+p.place!==data.length)return!1;if(2!==data[p.place++])return!1;var r=d(data,p);if(!1===r)return!1;var f=data.slice(p.place,r+p.place);if(p.place+=r,2!==data[p.place++])return!1;var h=d(data,p);if(!1===h)return!1;if(data.length!==h+p.place)return!1;var s=data.slice(p.place,h+p.place);if(0===f[0]){if(!(128&f[1]))return!1;f=f.slice(1)}if(0===s[0]){if(!(128&s[1]))return!1;s=s.slice(1)}return this.r=new n(f),this.s=new n(s),this.recoveryParam=null,!0},h.prototype.toDER=function(e){var t=this.r.toArray(),s=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&s[0]&&(s=[0].concat(s)),t=l(t),s=l(s);!(s[0]||128&s[1]);)s=s.slice(1);var r=[2];m(r,t.length),(r=r.concat(t)).push(2),m(r,s.length);var n=r.concat(s),f=[48];return m(f,n.length),f=f.concat(n),o.encode(f,e)}},function(e,t,r){"use strict";var n=r(164),o=r(163),f=r(26),h=f.assert,c=f.parseBytes,d=r(400),l=r(401);function m(e){if(h("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof m))return new m(e);e=o[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}e.exports=m,m.prototype.sign=function(e,t){e=c(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),o=this.g.mul(n),f=this.encodePoint(o),h=this.hashInt(f,r.pubBytes(),e).mul(r.priv()),d=n.add(h).umod(this.curve.n);return this.makeSignature({R:o,S:d,Rencoded:f})},m.prototype.verify=function(e,t,r){e=c(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),o=this.hashInt(t.Rencoded(),n.pubBytes(),e),f=this.g.mul(t.S());return t.R().add(n.pub().mul(o)).eq(f)},m.prototype.hashInt=function(){for(var e=this.hash(),i=0;i=q)throw new Error("invalid sig")}e.exports=function(e,t,r,l,m){var v=h(r);if("ec"===v.type){if("ecdsa"!==l&&"ecdsa/rsa"!==l)throw new Error("wrong public key type");return function(e,t,r){var n=c[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var o=new f(n),h=r.data.subjectPrivateKey.data;return o.verify(t,e,h)}(e,t,v)}if("dsa"===v.type){if("dsa"!==l)throw new Error("wrong public key type");return function(e,t,r){var p=r.data.p,q=r.data.q,g=r.data.g,n=r.data.pub_key,f=h.signature.decode(e,"der"),s=f.s,c=f.r;d(s,q),d(c,q);var l=o.mont(p),m=s.invm(q);return 0===g.toRed(l).redPow(new o(t).mul(m).mod(q)).fromRed().mul(n.toRed(l).redPow(c.mul(m).mod(q)).fromRed()).mod(p).mod(q).cmp(c)}(e,t,v)}if("rsa"!==l&&"ecdsa/rsa"!==l)throw new Error("wrong public key type");t=n.concat([m,t]);for(var y=v.modulus.byteLength(),_=[1],w=0;t.length+_.length+2r-y-2)throw new Error("message too long");var _=v.alloc(r-n-y-2),w=r-m-1,M=o(m),S=c(v.concat([l,_,v.alloc(1,1),t],w),h(M,w)),k=c(M,h(S,m));return new d(v.concat([v.alloc(1),k,S],r))}(w,t);else if(1===y)_=function(e,t,r){var n,f=t.length,h=e.modulus.byteLength();if(f>h-11)throw new Error("message too long");n=r?v.alloc(h-f-3,255):function(e){var t,r=v.allocUnsafe(e),i=0,n=o(2*e),f=0;for(;i=0)throw new Error("data too long for modulus")}return r?m(_,w):l(_,w)}},function(e,t,r){var n=r(109),o=r(268),f=r(269),h=r(11),c=r(161),d=r(84),l=r(270),m=r(3).Buffer;e.exports=function(e,t,r){var v;v=e.padding?e.padding:r?1:4;var y,_=n(e),w=_.modulus.byteLength();if(t.length>w||new h(t).cmp(_.modulus)>=0)throw new Error("decryption error");y=r?l(new h(t),_):c(t,_);var M=m.alloc(w-y.length);if(y=m.concat([M,y],w),4===v)return function(e,t){var r=e.modulus.byteLength(),n=d("sha1").update(m.alloc(0)).digest(),h=n.length;if(0!==t[0])throw new Error("decryption error");var c=t.slice(1,h+1),l=t.slice(h+1),v=f(c,o(l,h)),y=f(l,o(v,r-h-1));if(function(a,b){a=m.from(a),b=m.from(b);var e=0,t=a.length;a.length!==b.length&&(e++,t=Math.min(a.length,b.length));var i=-1;for(;++i=t.length){o++;break}var f=t.slice(2,i-1);("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++;f.length<8&&o++;if(o)throw new Error("decryption error");return t.slice(i)}(0,y,r);if(3===v)return y;throw new Error("unknown padding")}},function(e,t,r){"use strict";(function(e,n){function o(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var f=r(3),h=(r(61),f.Buffer),c=f.kMaxLength,d=e.crypto||e.msCrypto,l=Math.pow(2,32)-1;function m(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>l||e<0)throw new TypeError("offset must be a uint32");if(e>c||e>t)throw new RangeError("offset out of range")}function v(e,t,r){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>l||e<0)throw new TypeError("size must be a uint32");if(e+t>r||e>c)throw new RangeError("buffer too small")}function y(e,t,r,o){var f=e.buffer,h=new Uint8Array(f,t,r);return d.getRandomValues(h),o?void n.nextTick((function(){o(null,e)})):e}d&&d.getRandomValues?(t.randomFill=function(t,r,n,o){if(!(h.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof r)o=r,r=0,n=t.length;else if("function"==typeof n)o=n,n=t.length-r;else if("function"!=typeof o)throw new TypeError('"cb" argument must be a function');return m(r,t.length),v(n,r,t.length),y(t,r,n,o)},t.randomFillSync=function(t,r,n){void 0===r&&(r=0);if(!(h.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');m(r,t.length),void 0===n&&(n=t.length-r);return v(n,r,t.length),y(t,r,n)}):(t.randomFill=o,t.randomFillSync=o)}).call(this,r(9),r(13))},function(e,t,r){var n;e.exports=(n=r(4),function(){if("function"==typeof ArrayBuffer){var e=n.lib.WordArray,t=e.init;(e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var r=e.byteLength,n=[],i=0;i>>2]|=e[i]<<24-i%4*8;t.call(this,n,r)}else t.apply(this,arguments)}).prototype=e}}(),n.lib.WordArray)},function(e,t,r){var n;e.exports=(n=r(4),function(){var e=n,t=e.lib.WordArray,r=e.enc;function o(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i>>2]>>>16-i%4*8&65535;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var r=e.length,n=[],i=0;i>>1]|=e.charCodeAt(i)<<16-i%2*16;return t.create(n,2*r)}},r.Utf16LE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i>>2]>>>16-i%4*8&65535);n.push(String.fromCharCode(f))}return n.join("")},parse:function(e){for(var r=e.length,n=[],i=0;i>>1]|=o(e.charCodeAt(i)<<16-i%2*16);return t.create(n,2*r)}}}(),n.enc.Utf16)},function(e,t,r){var n,o,f,h,c,d;e.exports=(d=r(4),r(271),o=(n=d).lib.WordArray,f=n.algo,h=f.SHA256,c=f.SHA224=h.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=h._doFinalize.call(this);return e.sigBytes-=4,e}}),n.SHA224=h._createHelper(c),n.HmacSHA224=h._createHmacHelper(c),d.SHA224)},function(e,t,r){var n,o,f,h,c,d,l,m;e.exports=(m=r(4),r(110),r(272),o=(n=m).x64,f=o.Word,h=o.WordArray,c=n.algo,d=c.SHA512,l=c.SHA384=d.extend({_doReset:function(){this._hash=new h.init([new f.init(3418070365,3238371032),new f.init(1654270250,914150663),new f.init(2438529370,812702999),new f.init(355462360,4144912697),new f.init(1731405415,4290775857),new f.init(2394180231,1750603025),new f.init(3675008525,1694076839),new f.init(1203062813,3204075428)])},_doFinalize:function(){var e=d._doFinalize.call(this);return e.sigBytes-=16,e}}),n.SHA384=d._createHelper(l),n.HmacSHA384=d._createHmacHelper(l),m.SHA384)},function(e,t,r){var n;e.exports=(n=r(4),r(110),function(e){var t=n,r=t.lib,o=r.WordArray,f=r.Hasher,h=t.x64.Word,c=t.algo,d=[],l=[],m=[];!function(){for(var e=1,t=0,r=0;r<24;r++){d[e+5*t]=(r+1)*(r+2)/2%64;var n=(2*e+3*t)%5;e=t%5,t=n}for(e=0;e<5;e++)for(t=0;t<5;t++)l[e+5*t]=t+(2*e+3*t)%5*5;for(var o=1,i=0;i<24;i++){for(var f=0,c=0,v=0;v<7;v++){if(1&o){var y=(1<>>24)|4278255360&(o<<24|o>>>8),f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),(I=r[i]).high^=f,I.low^=o}for(var h=0;h<24;h++){for(var c=0;c<5;c++){for(var y=0,_=0,w=0;w<5;w++)y^=(I=r[c+5*w]).high,_^=I.low;var M=v[c];M.high=y,M.low=_}for(c=0;c<5;c++){var S=v[(c+4)%5],k=v[(c+1)%5],E=k.high,x=k.low;for(y=S.high^(E<<1|x>>>31),_=S.low^(x<<1|E>>>31),w=0;w<5;w++)(I=r[c+5*w]).high^=y,I.low^=_}for(var A=1;A<25;A++){var R=(I=r[A]).high,T=I.low,B=d[A];B<32?(y=R<>>32-B,_=T<>>32-B):(y=T<>>64-B,_=R<>>64-B);var O=v[l[A]];O.high=y,O.low=_}var D=v[0],P=r[0];for(D.high=P.high,D.low=P.low,c=0;c<5;c++)for(w=0;w<5;w++){var I=r[A=c+5*w],C=v[A],j=v[(c+1)%5+5*w],L=v[(c+2)%5+5*w];I.high=C.high^~j.high&L.high,I.low=C.low^~j.low&L.low}I=r[0];var N=m[h];I.high^=N.high,I.low^=N.low}},_doFinalize:function(){var data=this._data,t=data.words,r=(this._nDataBytes,8*data.sigBytes),n=32*this.blockSize;t[r>>>5]|=1<<24-r%32,t[(e.ceil((r+1)/n)*n>>>5)-1]|=128,data.sigBytes=4*t.length,this._process();for(var f=this._state,h=this.cfg.outputLength/8,c=h/8,d=[],i=0;i>>24)|4278255360&(m<<24|m>>>8),v=16711935&(v<<8|v>>>24)|4278255360&(v<<24|v>>>8),d.push(v),d.push(m)}return new o.init(d,h)},clone:function(){for(var e=f.clone.call(this),t=e._state=this._state.slice(0),i=0;i<25;i++)t[i]=t[i].clone();return e}});t.SHA3=f._createHelper(y),t.HmacSHA3=f._createHmacHelper(y)}(Math),n.SHA3)},function(e,t,r){var n;e.exports=(n=r(4),function(e){var t=n,r=t.lib,o=r.WordArray,f=r.Hasher,h=t.algo,c=o.create([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]),d=o.create([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]),l=o.create([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]),m=o.create([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]),v=o.create([0,1518500249,1859775393,2400959708,2840853838]),y=o.create([1352829926,1548603684,1836072691,2053994217,0]),_=h.RIPEMD160=f.extend({_doReset:function(){this._hash=o.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var i=0;i<16;i++){var r=t+i,n=e[r];e[r]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8)}var o,f,h,dl,_,A,br,R,T,B,O,D=this._hash.words,P=v.words,hr=y.words,I=c.words,C=d.words,j=l.words,L=m.words;for(A=o=D[0],br=f=D[1],R=h=D[2],T=dl=D[3],B=_=D[4],i=0;i<80;i+=1)O=o+e[t+I[i]]|0,O+=i<16?w(f,h,dl)+P[0]:i<32?M(f,h,dl)+P[1]:i<48?S(f,h,dl)+P[2]:i<64?k(f,h,dl)+P[3]:E(f,h,dl)+P[4],O=(O=x(O|=0,j[i]))+_|0,o=_,_=dl,dl=x(h,10),h=f,f=O,O=A+e[t+C[i]]|0,O+=i<16?E(br,R,T)+hr[0]:i<32?k(br,R,T)+hr[1]:i<48?S(br,R,T)+hr[2]:i<64?M(br,R,T)+hr[3]:w(br,R,T)+hr[4],O=(O=x(O|=0,L[i]))+B|0,A=B,B=T,T=x(R,10),R=br,br=O;O=D[1]+h+T|0,D[1]=D[2]+dl+B|0,D[2]=D[3]+_+A|0,D[3]=D[4]+o+br|0,D[4]=D[0]+f+R|0,D[0]=O},_doFinalize:function(){var data=this._data,e=data.words,t=8*this._nDataBytes,r=8*data.sigBytes;e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=16711935&(t<<8|t>>>24)|4278255360&(t<<24|t>>>8),data.sigBytes=4*(e.length+1),this._process();for(var n=this._hash,o=n.words,i=0;i<5;i++){var f=o[i];o[i]=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8)}return n},clone:function(){var e=f.clone.call(this);return e._hash=this._hash.clone(),e}});function w(e,t,r){return e^t^r}function M(e,t,r){return e&t|~e&r}function S(e,t,r){return(e|~t)^r}function k(e,t,r){return e&r|t&~r}function E(e,t,r){return e^(t|~r)}function x(e,t){return e<>>32-t}t.RIPEMD160=f._createHelper(_),t.HmacRIPEMD160=f._createHmacHelper(_)}(Math),n.RIPEMD160)},function(e,t,r){var n,o,f,h,c,d,l,m,v;e.exports=(v=r(4),r(169),r(170),o=(n=v).lib,f=o.Base,h=o.WordArray,c=n.algo,d=c.SHA1,l=c.HMAC,m=c.PBKDF2=f.extend({cfg:f.extend({keySize:4,hasher:d,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,n=l.create(r.hasher,e),o=h.create(),f=h.create([1]),c=o.words,d=f.words,m=r.keySize,v=r.iterations;c.length>24&255)){var t=e>>16&255,r=e>>8&255,n=255&e;255===t?(t=0,255===r?(r=0,255===n?n=0:++n):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=n}else e+=1<<24;return e}var r=e.Encryptor=e.extend({processBlock:function(e,r){var n=this._cipher,o=n.blockSize,f=this._iv,h=this._counter;f&&(h=this._counter=f.slice(0),this._iv=void 0),function(e){0===(e[0]=t(e[0]))&&(e[1]=t(e[1]))}(h);var c=h.slice(0);n.encryptBlock(c,0);for(var i=0;i>>2]|=n<<24-o%4*8,data.sigBytes+=n},unpad:function(data){var e=255&data.words[data.sigBytes-1>>>2];data.sigBytes-=e}},n.pad.Ansix923)},function(e,t,r){var n;e.exports=(n=r(4),r(15),n.pad.Iso10126={pad:function(data,e){var t=4*e,r=t-data.sigBytes%t;data.concat(n.lib.WordArray.random(r-1)).concat(n.lib.WordArray.create([r<<24],1))},unpad:function(data){var e=255&data.words[data.sigBytes-1>>>2];data.sigBytes-=e}},n.pad.Iso10126)},function(e,t,r){var n;e.exports=(n=r(4),r(15),n.pad.Iso97971={pad:function(data,e){data.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(data,e)},unpad:function(data){n.pad.ZeroPadding.unpad(data),data.sigBytes--}},n.pad.Iso97971)},function(e,t,r){var n;e.exports=(n=r(4),r(15),n.pad.ZeroPadding={pad:function(data,e){var t=4*e;data.clamp(),data.sigBytes+=t-(data.sigBytes%t||t)},unpad:function(data){var e=data.words,i=data.sigBytes-1;for(i=data.sigBytes-1;i>=0;i--)if(e[i>>>2]>>>24-i%4*8&255){data.sigBytes=i+1;break}}},n.pad.ZeroPadding)},function(e,t,r){var n;e.exports=(n=r(4),r(15),n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding)},function(e,t,r){var n,o,f,h;e.exports=(h=r(4),r(15),o=(n=h).lib.CipherParams,f=n.enc.Hex,n.format.Hex={stringify:function(e){return e.ciphertext.toString(f)},parse:function(input){var e=f.parse(input);return o.create({ciphertext:e})}},h.format.Hex)},function(e,t,r){var n;e.exports=(n=r(4),r(67),r(68),r(46),r(15),function(){var e=n,t=e.lib.BlockCipher,r=e.algo,o=[],f=[],h=[],c=[],d=[],l=[],m=[],v=[],y=[],_=[];!function(){for(var e=[],i=0;i<256;i++)e[i]=i<128?i<<1:i<<1^283;var t=0,r=0;for(i=0;i<256;i++){var n=r^r<<1^r<<2^r<<3^r<<4;n=n>>>8^255&n^99,o[t]=n,f[n]=t;var w=e[t],M=e[w],S=e[M],k=257*e[n]^16843008*n;h[t]=k<<24|k>>>8,c[t]=k<<16|k>>>16,d[t]=k<<8|k>>>24,l[t]=k,k=16843009*S^65537*M^257*w^16843008*t,m[n]=k<<24|k>>>8,v[n]=k<<16|k>>>16,y[n]=k<<8|k>>>24,_[n]=k,t?(t=w^e[e[e[S^w]]],r^=e[e[r]]):t=r=1}}();var w=[0,1,2,4,8,16,32,64,128,27,54],M=r.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),f=this._keySchedule=[],h=0;h6&&h%r==4&&(l=o[l>>>24]<<24|o[l>>>16&255]<<16|o[l>>>8&255]<<8|o[255&l]):(l=o[(l=l<<8|l>>>24)>>>24]<<24|o[l>>>16&255]<<16|o[l>>>8&255]<<8|o[255&l],l^=w[h/r|0]<<24),f[h]=f[h-r]^l);for(var c=this._invKeySchedule=[],d=0;d>>24]]^v[o[l>>>16&255]]^y[o[l>>>8&255]]^_[o[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,h,c,d,l,o)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,m,v,y,_,f),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,o,f,h,c){for(var d=this._nRounds,l=e[t]^r[0],m=e[t+1]^r[1],v=e[t+2]^r[2],y=e[t+3]^r[3],_=4,w=1;w>>24]^o[m>>>16&255]^f[v>>>8&255]^h[255&y]^r[_++],S=n[m>>>24]^o[v>>>16&255]^f[y>>>8&255]^h[255&l]^r[_++],k=n[v>>>24]^o[y>>>16&255]^f[l>>>8&255]^h[255&m]^r[_++],E=n[y>>>24]^o[l>>>16&255]^f[m>>>8&255]^h[255&v]^r[_++];l=M,m=S,v=k,y=E}M=(c[l>>>24]<<24|c[m>>>16&255]<<16|c[v>>>8&255]<<8|c[255&y])^r[_++],S=(c[m>>>24]<<24|c[v>>>16&255]<<16|c[y>>>8&255]<<8|c[255&l])^r[_++],k=(c[v>>>24]<<24|c[y>>>16&255]<<16|c[l>>>8&255]<<8|c[255&m])^r[_++],E=(c[y>>>24]<<24|c[l>>>16&255]<<16|c[m>>>8&255]<<8|c[255&v])^r[_++],e[t]=M,e[t+1]=S,e[t+2]=k,e[t+3]=E},keySize:8});e.AES=t._createHelper(M)}(),n.AES)},function(e,t,r){var n;e.exports=(n=r(4),r(67),r(68),r(46),r(15),function(){var e=n,t=e.lib,r=t.WordArray,o=t.BlockCipher,f=e.algo,h=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],d=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],l=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],m=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],v=f.DES=o.extend({_doReset:function(){for(var e=this._key.words,t=[],i=0;i<56;i++){var r=h[i]-1;t[i]=e[r>>>5]>>>31-r%32&1}for(var n=this._subKeys=[],o=0;o<16;o++){var f=n[o]=[],l=d[o];for(i=0;i<24;i++)f[i/6|0]|=t[(c[i]-1+l)%28]<<31-i%6,f[4+(i/6|0)]|=t[28+(c[i+24]-1+l)%28]<<31-i%6;for(f[0]=f[0]<<1|f[0]>>>31,i=1;i<7;i++)f[i]=f[i]>>>4*(i-1)+3;f[7]=f[7]<<5|f[7]>>>27}var m=this._invSubKeys=[];for(i=0;i<16;i++)m[i]=n[15-i]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],y.call(this,4,252645135),y.call(this,16,65535),_.call(this,2,858993459),_.call(this,8,16711935),y.call(this,1,1431655765);for(var n=0;n<16;n++){for(var o=r[n],f=this._lBlock,h=this._rBlock,c=0,i=0;i<8;i++)c|=l[i][((h^o[i])&m[i])>>>0];this._lBlock=h,this._rBlock=f^c}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,y.call(this,1,1431655765),_.call(this,8,16711935),_.call(this,2,858993459),y.call(this,16,65535),y.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function y(e,mask){var t=(this._lBlock>>>e^this._rBlock)&mask;this._rBlock^=t,this._lBlock^=t<>>e^this._lBlock)&mask;this._lBlock^=t,this._rBlock^=t<192.");var t=e.slice(0,2),n=e.length<4?e.slice(0,2):e.slice(2,4),o=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=v.createEncryptor(r.create(t)),this._des2=v.createEncryptor(r.create(n)),this._des3=v.createEncryptor(r.create(o))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=o._createHelper(w)}(),n.TripleDES)},function(e,t,r){var n;e.exports=(n=r(4),r(67),r(68),r(46),r(15),function(){var e=n,t=e.lib.StreamCipher,r=e.algo,o=r.RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,r=e.sigBytes,n=this._S=[],i=0;i<256;i++)n[i]=i;i=0;for(var o=0;i<256;i++){var f=i%r,h=t[f>>>2]>>>24-f%4*8&255;o=(o+n[i]+h)%256;var c=n[i];n[i]=n[o],n[o]=c}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=f.call(this)},keySize:8,ivSize:0});function f(){for(var e=this._S,i=this._i,t=this._j,r=0,n=0;n<4;n++){t=(t+e[i=(i+1)%256])%256;var o=e[i];e[i]=e[t],e[t]=o,r|=e[(e[i]+e[t])%256]<<24-8*n}return this._i=i,this._j=t,r}e.RC4=t._createHelper(o);var h=r.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var i=this.cfg.drop;i>0;i--)f.call(this)}});e.RC4Drop=t._createHelper(h)}(),n.RC4)},function(e,t,r){var n;e.exports=(n=r(4),r(67),r(68),r(46),r(15),function(){var e=n,t=e.lib.StreamCipher,r=e.algo,o=[],f=[],h=[],c=r.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,i=0;i<4;i++)e[i]=16711935&(e[i]<<8|e[i]>>>24)|4278255360&(e[i]<<24|e[i]>>>8);var r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,i=0;i<4;i++)d.call(this);for(i=0;i<8;i++)n[i]^=r[i+4&7];if(t){var o=t.words,f=o[0],h=o[1],c=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),l=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),m=c>>>16|4294901760&l,v=l<<16|65535&c;for(n[0]^=c,n[1]^=m,n[2]^=l,n[3]^=v,n[4]^=c,n[5]^=m,n[6]^=l,n[7]^=v,i=0;i<4;i++)d.call(this)}},_doProcessBlock:function(e,t){var r=this._X;d.call(this),o[0]=r[0]^r[5]>>>16^r[3]<<16,o[1]=r[2]^r[7]>>>16^r[5]<<16,o[2]=r[4]^r[1]>>>16^r[7]<<16,o[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)o[i]=16711935&(o[i]<<8|o[i]>>>24)|4278255360&(o[i]<<24|o[i]>>>8),e[t+i]^=o[i]},blockSize:4,ivSize:2});function d(){for(var e=this._X,t=this._C,i=0;i<8;i++)f[i]=t[i];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,i=0;i<8;i++){var r=e[i]+t[i],n=65535&r,o=r>>>16,c=((n*n>>>17)+n*o>>>15)+o*o,d=((4294901760&r)*r|0)+((65535&r)*r|0);h[i]=c^d}e[0]=h[0]+(h[7]<<16|h[7]>>>16)+(h[6]<<16|h[6]>>>16)|0,e[1]=h[1]+(h[0]<<8|h[0]>>>24)+h[7]|0,e[2]=h[2]+(h[1]<<16|h[1]>>>16)+(h[0]<<16|h[0]>>>16)|0,e[3]=h[3]+(h[2]<<8|h[2]>>>24)+h[1]|0,e[4]=h[4]+(h[3]<<16|h[3]>>>16)+(h[2]<<16|h[2]>>>16)|0,e[5]=h[5]+(h[4]<<8|h[4]>>>24)+h[3]|0,e[6]=h[6]+(h[5]<<16|h[5]>>>16)+(h[4]<<16|h[4]>>>16)|0,e[7]=h[7]+(h[6]<<8|h[6]>>>24)+h[5]|0}e.Rabbit=t._createHelper(c)}(),n.Rabbit)},function(e,t,r){var n;e.exports=(n=r(4),r(67),r(68),r(46),r(15),function(){var e=n,t=e.lib.StreamCipher,r=e.algo,o=[],f=[],h=[],c=r.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)d.call(this);for(i=0;i<8;i++)n[i]^=r[i+4&7];if(t){var o=t.words,f=o[0],h=o[1],c=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),l=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),m=c>>>16|4294901760&l,v=l<<16|65535&c;for(n[0]^=c,n[1]^=m,n[2]^=l,n[3]^=v,n[4]^=c,n[5]^=m,n[6]^=l,n[7]^=v,i=0;i<4;i++)d.call(this)}},_doProcessBlock:function(e,t){var r=this._X;d.call(this),o[0]=r[0]^r[5]>>>16^r[3]<<16,o[1]=r[2]^r[7]>>>16^r[5]<<16,o[2]=r[4]^r[1]>>>16^r[7]<<16,o[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)o[i]=16711935&(o[i]<<8|o[i]>>>24)|4278255360&(o[i]<<24|o[i]>>>8),e[t+i]^=o[i]},blockSize:4,ivSize:2});function d(){for(var e=this._X,t=this._C,i=0;i<8;i++)f[i]=t[i];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,i=0;i<8;i++){var r=e[i]+t[i],n=65535&r,o=r>>>16,c=((n*n>>>17)+n*o>>>15)+o*o,d=((4294901760&r)*r|0)+((65535&r)*r|0);h[i]=c^d}e[0]=h[0]+(h[7]<<16|h[7]>>>16)+(h[6]<<16|h[6]>>>16)|0,e[1]=h[1]+(h[0]<<8|h[0]>>>24)+h[7]|0,e[2]=h[2]+(h[1]<<16|h[1]>>>16)+(h[0]<<16|h[0]>>>16)|0,e[3]=h[3]+(h[2]<<8|h[2]>>>24)+h[1]|0,e[4]=h[4]+(h[3]<<16|h[3]>>>16)+(h[2]<<16|h[2]>>>16)|0,e[5]=h[5]+(h[4]<<8|h[4]>>>24)+h[3]|0,e[6]=h[6]+(h[5]<<16|h[5]>>>16)+(h[4]<<16|h[4]>>>16)|0,e[7]=h[7]+(h[6]<<8|h[6]>>>24)+h[5]|0}e.RabbitLegacy=t._createHelper(c)}(),n.RabbitLegacy)},,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),o=new Uint8Array(16);function f(){if(!n)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(o)}var h=/^(?:[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;for(var c=function(e){return"string"==typeof e&&h.test(e)},d=[],l=0;l<256;++l)d.push((l+256).toString(16).substr(1));var m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(d[e[t+0]]+d[e[t+1]]+d[e[t+2]]+d[e[t+3]]+"-"+d[e[t+4]]+d[e[t+5]]+"-"+d[e[t+6]]+d[e[t+7]]+"-"+d[e[t+8]]+d[e[t+9]]+"-"+d[e[t+10]]+d[e[t+11]]+d[e[t+12]]+d[e[t+13]]+d[e[t+14]]+d[e[t+15]]).toLowerCase();if(!c(r))throw TypeError("Stringified UUID is invalid");return r};t.a=function(e,t,r){var n=(e=e||{}).random||(e.rng||f)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var i=0;i<16;++i)t[r+i]=n[i];return t}return m(n)}}]]);