@dcloudio/uni-push 3.0.0-alpha-3061520221220001 → 3.0.0-alpha-3061620221230002

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,103 +2,105 @@ function getDefaultExportFromCjs (x) {
2
2
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
3
3
  }
4
4
 
5
- function createCommonjsModule(fn) {
6
- var module = { exports: {} };
7
- return fn(module, module.exports), module.exports;
8
- }
5
+ var gtpushMinExports = {};
6
+ var gtpushMin = {
7
+ get exports(){ return gtpushMinExports; },
8
+ set exports(v){ gtpushMinExports = v; },
9
+ };
9
10
 
10
11
  /*! For license information please see gtpush-min.js.LICENSE.txt */
11
12
 
12
- var gtpushMin = createCommonjsModule(function (module, exports) {
13
- (function t(e,r){module.exports=r();})(self,(()=>(()=>{var t={4736:(t,e,r)=>{t=r.nmd(t);var i;var n=function(t){var e=1e7,r=7,i=9007199254740992,s=d(i),a="0123456789abcdefghijklmnopqrstuvwxyz";var o="function"===typeof BigInt;function u(t,e,r,i){if("undefined"===typeof t)return u[0];if("undefined"!==typeof e)return 10===+e&&!r?st(t):X(t,e,r,i);return st(t)}function c(t,e){this.value=t;this.sign=e;this.isSmall=false;}c.prototype=Object.create(u.prototype);function l(t){this.value=t;this.sign=t<0;this.isSmall=true;}l.prototype=Object.create(u.prototype);function f(t){this.value=t;}f.prototype=Object.create(u.prototype);function h(t){return -i<t&&t<i}function d(t){if(t<1e7)return [t];if(t<1e14)return [t%1e7,Math.floor(t/1e7)];return [t%1e7,Math.floor(t/1e7)%1e7,Math.floor(t/1e14)]}function p(t){v(t);var r=t.length;if(r<4&&N(t,s)<0)switch(r){case 0:return 0;case 1:return t[0];case 2:return t[0]+t[1]*e;default:return t[0]+(t[1]+t[2]*e)*e}return t}function v(t){var e=t.length;while(0===t[--e]);t.length=e+1;}function g(t){var e=new Array(t);var r=-1;while(++r<t)e[r]=0;return e}function y(t){if(t>0)return Math.floor(t);return Math.ceil(t)}function m(t,r){var i=t.length,n=r.length,s=new Array(i),a=0,o=e,u,c;for(c=0;c<n;c++){u=t[c]+r[c]+a;a=u>=o?1:0;s[c]=u-a*o;}while(c<i){u=t[c]+a;a=u===o?1:0;s[c++]=u-a*o;}if(a>0)s.push(a);return s}function w(t,e){if(t.length>=e.length)return m(t,e);return m(e,t)}function S(t,r){var i=t.length,n=new Array(i),s=e,a,o;for(o=0;o<i;o++){a=t[o]-s+r;r=Math.floor(a/s);n[o]=a-r*s;r+=1;}while(r>0){n[o++]=r%s;r=Math.floor(r/s);}return n}c.prototype.add=function(t){var e=st(t);if(this.sign!==e.sign)return this.subtract(e.negate());var r=this.value,i=e.value;if(e.isSmall)return new c(S(r,Math.abs(i)),this.sign);return new c(w(r,i),this.sign)};c.prototype.plus=c.prototype.add;l.prototype.add=function(t){var e=st(t);var r=this.value;if(r<0!==e.sign)return this.subtract(e.negate());var i=e.value;if(e.isSmall){if(h(r+i))return new l(r+i);i=d(Math.abs(i));}return new c(S(i,Math.abs(r)),r<0)};l.prototype.plus=l.prototype.add;f.prototype.add=function(t){return new f(this.value+st(t).value)};f.prototype.plus=f.prototype.add;function _(t,r){var i=t.length,n=r.length,s=new Array(i),a=0,o=e,u,c;for(u=0;u<n;u++){c=t[u]-a-r[u];if(c<0){c+=o;a=1;}else a=0;s[u]=c;}for(u=n;u<i;u++){c=t[u]-a;if(c<0)c+=o;else {s[u++]=c;break}s[u]=c;}for(;u<i;u++)s[u]=t[u];v(s);return s}function b(t,e,r){var i;if(N(t,e)>=0)i=_(t,e);else {i=_(e,t);r=!r;}i=p(i);if("number"===typeof i){if(r)i=-i;return new l(i)}return new c(i,r)}function E(t,r,i){var n=t.length,s=new Array(n),a=-r,o=e,u,f;for(u=0;u<n;u++){f=t[u]+a;a=Math.floor(f/o);f%=o;s[u]=f<0?f+o:f;}s=p(s);if("number"===typeof s){if(i)s=-s;return new l(s)}return new c(s,i)}c.prototype.subtract=function(t){var e=st(t);if(this.sign!==e.sign)return this.add(e.negate());var r=this.value,i=e.value;if(e.isSmall)return E(r,Math.abs(i),this.sign);return b(r,i,this.sign)};c.prototype.minus=c.prototype.subtract;l.prototype.subtract=function(t){var e=st(t);var r=this.value;if(r<0!==e.sign)return this.add(e.negate());var i=e.value;if(e.isSmall)return new l(r-i);return E(i,Math.abs(r),r>=0)};l.prototype.minus=l.prototype.subtract;f.prototype.subtract=function(t){return new f(this.value-st(t).value)};f.prototype.minus=f.prototype.subtract;c.prototype.negate=function(){return new c(this.value,!this.sign)};l.prototype.negate=function(){var t=this.sign;var e=new l(-this.value);e.sign=!t;return e};f.prototype.negate=function(){return new f(-this.value)};c.prototype.abs=function(){return new c(this.value,false)};l.prototype.abs=function(){return new l(Math.abs(this.value))};f.prototype.abs=function(){return new f(this.value>=0?this.value:-this.value)};function D(t,r){var i=t.length,n=r.length,s=i+n,a=g(s),o=e,u,c,l,f,h;for(l=0;l<i;++l){f=t[l];for(var d=0;d<n;++d){h=r[d];u=f*h+a[l+d];c=Math.floor(u/o);a[l+d]=u-c*o;a[l+d+1]+=c;}}v(a);return a}function M(t,r){var i=t.length,n=new Array(i),s=e,a=0,o,u;for(u=0;u<i;u++){o=t[u]*r+a;a=Math.floor(o/s);n[u]=o-a*s;}while(a>0){n[u++]=a%s;a=Math.floor(a/s);}return n}function T(t,e){var r=[];while(e-- >0)r.push(0);return r.concat(t)}function I(t,e){var r=Math.max(t.length,e.length);if(r<=30)return D(t,e);r=Math.ceil(r/2);var i=t.slice(r),n=t.slice(0,r),s=e.slice(r),a=e.slice(0,r);var o=I(n,a),u=I(i,s),c=I(w(n,i),w(a,s));var l=w(w(o,T(_(_(c,o),u),r)),T(u,2*r));v(l);return l}function A(t,e){return -.012*t-.012*e+15e-6*t*e>0}c.prototype.multiply=function(t){var r=st(t),i=this.value,n=r.value,s=this.sign!==r.sign,a;if(r.isSmall){if(0===n)return u[0];if(1===n)return this;if(-1===n)return this.negate();a=Math.abs(n);if(a<e)return new c(M(i,a),s);n=d(a);}if(A(i.length,n.length))return new c(I(i,n),s);return new c(D(i,n),s)};c.prototype.times=c.prototype.multiply;function x(t,r,i){if(t<e)return new c(M(r,t),i);return new c(D(r,d(t)),i)}l.prototype._multiplyBySmall=function(t){if(h(t.value*this.value))return new l(t.value*this.value);return x(Math.abs(t.value),d(Math.abs(this.value)),this.sign!==t.sign)};c.prototype._multiplyBySmall=function(t){if(0===t.value)return u[0];if(1===t.value)return this;if(-1===t.value)return this.negate();return x(Math.abs(t.value),this.value,this.sign!==t.sign)};l.prototype.multiply=function(t){return st(t)._multiplyBySmall(this)};l.prototype.times=l.prototype.multiply;f.prototype.multiply=function(t){return new f(this.value*st(t).value)};f.prototype.times=f.prototype.multiply;function R(t){var r=t.length,i=g(r+r),n=e,s,a,o,u,c;for(o=0;o<r;o++){u=t[o];a=0-u*u;for(var l=o;l<r;l++){c=t[l];s=2*(u*c)+i[o+l]+a;a=Math.floor(s/n);i[o+l]=s-a*n;}i[o+r]=a;}v(i);return i}c.prototype.square=function(){return new c(R(this.value),false)};l.prototype.square=function(){var t=this.value*this.value;if(h(t))return new l(t);return new c(R(d(Math.abs(this.value))),false)};f.prototype.square=function(t){return new f(this.value*this.value)};function B(t,r){var i=t.length,n=r.length,s=e,a=g(r.length),o=r[n-1],u=Math.ceil(s/(2*o)),c=M(t,u),l=M(r,u),f,h,d,v,y,m,w;if(c.length<=i)c.push(0);l.push(0);o=l[n-1];for(h=i-n;h>=0;h--){f=s-1;if(c[h+n]!==o)f=Math.floor((c[h+n]*s+c[h+n-1])/o);d=0;v=0;m=l.length;for(y=0;y<m;y++){d+=f*l[y];w=Math.floor(d/s);v+=c[h+y]-(d-w*s);d=w;if(v<0){c[h+y]=v+s;v=-1;}else {c[h+y]=v;v=0;}}while(0!==v){f-=1;d=0;for(y=0;y<m;y++){d+=c[h+y]-s+l[y];if(d<0){c[h+y]=d+s;d=0;}else {c[h+y]=d;d=1;}}v+=d;}a[h]=f;}c=k(c,u)[0];return [p(a),p(c)]}function O(t,r){var i=t.length,n=r.length,s=[],a=[],o=e,u,c,l,f,h;while(i){a.unshift(t[--i]);v(a);if(N(a,r)<0){s.push(0);continue}c=a.length;l=a[c-1]*o+a[c-2];f=r[n-1]*o+r[n-2];if(c>n)l=(l+1)*o;u=Math.ceil(l/f);do{h=M(r,u);if(N(h,a)<=0)break;u--;}while(u);s.push(u);a=_(a,h);}s.reverse();return [p(s),p(a)]}function k(t,r){var i=t.length,n=g(i),s=e,a,o,u,c;u=0;for(a=i-1;a>=0;--a){c=u*s+t[a];o=y(c/r);u=c-o*r;n[a]=0|o;}return [n,0|u]}function C(t,r){var i,n=st(r);if(o)return [new f(t.value/n.value),new f(t.value%n.value)];var s=t.value,a=n.value;var h;if(0===a)throw new Error("Cannot divide by zero");if(t.isSmall){if(n.isSmall)return [new l(y(s/a)),new l(s%a)];return [u[0],t]}if(n.isSmall){if(1===a)return [t,u[0]];if(-1==a)return [t.negate(),u[0]];var v=Math.abs(a);if(v<e){i=k(s,v);h=p(i[0]);var g=i[1];if(t.sign)g=-g;if("number"===typeof h){if(t.sign!==n.sign)h=-h;return [new l(h),new l(g)]}return [new c(h,t.sign!==n.sign),new l(g)]}a=d(v);}var m=N(s,a);if(-1===m)return [u[0],t];if(0===m)return [u[t.sign===n.sign?1:-1],u[0]];if(s.length+a.length<=200)i=B(s,a);else i=O(s,a);h=i[0];var w=t.sign!==n.sign,S=i[1],_=t.sign;if("number"===typeof h){if(w)h=-h;h=new l(h);}else h=new c(h,w);if("number"===typeof S){if(_)S=-S;S=new l(S);}else S=new c(S,_);return [h,S]}c.prototype.divmod=function(t){var e=C(this,t);return {quotient:e[0],remainder:e[1]}};f.prototype.divmod=l.prototype.divmod=c.prototype.divmod;c.prototype.divide=function(t){return C(this,t)[0]};f.prototype.over=f.prototype.divide=function(t){return new f(this.value/st(t).value)};l.prototype.over=l.prototype.divide=c.prototype.over=c.prototype.divide;c.prototype.mod=function(t){return C(this,t)[1]};f.prototype.mod=f.prototype.remainder=function(t){return new f(this.value%st(t).value)};l.prototype.remainder=l.prototype.mod=c.prototype.remainder=c.prototype.mod;c.prototype.pow=function(t){var e=st(t),r=this.value,i=e.value,n,s,a;if(0===i)return u[1];if(0===r)return u[0];if(1===r)return u[1];if(-1===r)return e.isEven()?u[1]:u[-1];if(e.sign)return u[0];if(!e.isSmall)throw new Error("The exponent "+e.toString()+" is too large.");if(this.isSmall)if(h(n=Math.pow(r,i)))return new l(y(n));s=this;a=u[1];while(true){if(i&1===1){a=a.times(s);--i;}if(0===i)break;i/=2;s=s.square();}return a};l.prototype.pow=c.prototype.pow;f.prototype.pow=function(t){var e=st(t);var r=this.value,i=e.value;var n=BigInt(0),s=BigInt(1),a=BigInt(2);if(i===n)return u[1];if(r===n)return u[0];if(r===s)return u[1];if(r===BigInt(-1))return e.isEven()?u[1]:u[-1];if(e.isNegative())return new f(n);var o=this;var c=u[1];while(true){if((i&s)===s){c=c.times(o);--i;}if(i===n)break;i/=a;o=o.square();}return c};c.prototype.modPow=function(t,e){t=st(t);e=st(e);if(e.isZero())throw new Error("Cannot take modPow with modulus 0");var r=u[1],i=this.mod(e);if(t.isNegative()){t=t.multiply(u[-1]);i=i.modInv(e);}while(t.isPositive()){if(i.isZero())return u[0];if(t.isOdd())r=r.multiply(i).mod(e);t=t.divide(2);i=i.square().mod(e);}return r};f.prototype.modPow=l.prototype.modPow=c.prototype.modPow;function N(t,e){if(t.length!==e.length)return t.length>e.length?1:-1;for(var r=t.length-1;r>=0;r--)if(t[r]!==e[r])return t[r]>e[r]?1:-1;return 0}c.prototype.compareAbs=function(t){var e=st(t),r=this.value,i=e.value;if(e.isSmall)return 1;return N(r,i)};l.prototype.compareAbs=function(t){var e=st(t),r=Math.abs(this.value),i=e.value;if(e.isSmall){i=Math.abs(i);return r===i?0:r>i?1:-1}return -1};f.prototype.compareAbs=function(t){var e=this.value;var r=st(t).value;e=e>=0?e:-e;r=r>=0?r:-r;return e===r?0:e>r?1:-1};c.prototype.compare=function(t){if(t===1/0)return -1;if(t===-1/0)return 1;var e=st(t),r=this.value,i=e.value;if(this.sign!==e.sign)return e.sign?1:-1;if(e.isSmall)return this.sign?-1:1;return N(r,i)*(this.sign?-1:1)};c.prototype.compareTo=c.prototype.compare;l.prototype.compare=function(t){if(t===1/0)return -1;if(t===-1/0)return 1;var e=st(t),r=this.value,i=e.value;if(e.isSmall)return r==i?0:r>i?1:-1;if(r<0!==e.sign)return r<0?-1:1;return r<0?1:-1};l.prototype.compareTo=l.prototype.compare;f.prototype.compare=function(t){if(t===1/0)return -1;if(t===-1/0)return 1;var e=this.value;var r=st(t).value;return e===r?0:e>r?1:-1};f.prototype.compareTo=f.prototype.compare;c.prototype.equals=function(t){return 0===this.compare(t)};f.prototype.eq=f.prototype.equals=l.prototype.eq=l.prototype.equals=c.prototype.eq=c.prototype.equals;c.prototype.notEquals=function(t){return 0!==this.compare(t)};f.prototype.neq=f.prototype.notEquals=l.prototype.neq=l.prototype.notEquals=c.prototype.neq=c.prototype.notEquals;c.prototype.greater=function(t){return this.compare(t)>0};f.prototype.gt=f.prototype.greater=l.prototype.gt=l.prototype.greater=c.prototype.gt=c.prototype.greater;c.prototype.lesser=function(t){return this.compare(t)<0};f.prototype.lt=f.prototype.lesser=l.prototype.lt=l.prototype.lesser=c.prototype.lt=c.prototype.lesser;c.prototype.greaterOrEquals=function(t){return this.compare(t)>=0};f.prototype.geq=f.prototype.greaterOrEquals=l.prototype.geq=l.prototype.greaterOrEquals=c.prototype.geq=c.prototype.greaterOrEquals;c.prototype.lesserOrEquals=function(t){return this.compare(t)<=0};f.prototype.leq=f.prototype.lesserOrEquals=l.prototype.leq=l.prototype.lesserOrEquals=c.prototype.leq=c.prototype.lesserOrEquals;c.prototype.isEven=function(){return 0===(1&this.value[0])};l.prototype.isEven=function(){return 0===(1&this.value)};f.prototype.isEven=function(){return (this.value&BigInt(1))===BigInt(0)};c.prototype.isOdd=function(){return 1===(1&this.value[0])};l.prototype.isOdd=function(){return 1===(1&this.value)};f.prototype.isOdd=function(){return (this.value&BigInt(1))===BigInt(1)};c.prototype.isPositive=function(){return !this.sign};l.prototype.isPositive=function(){return this.value>0};f.prototype.isPositive=l.prototype.isPositive;c.prototype.isNegative=function(){return this.sign};l.prototype.isNegative=function(){return this.value<0};f.prototype.isNegative=l.prototype.isNegative;c.prototype.isUnit=function(){return false};l.prototype.isUnit=function(){return 1===Math.abs(this.value)};f.prototype.isUnit=function(){return this.abs().value===BigInt(1)};c.prototype.isZero=function(){return false};l.prototype.isZero=function(){return 0===this.value};f.prototype.isZero=function(){return this.value===BigInt(0)};c.prototype.isDivisibleBy=function(t){var e=st(t);if(e.isZero())return false;if(e.isUnit())return true;if(0===e.compareAbs(2))return this.isEven();return this.mod(e).isZero()};f.prototype.isDivisibleBy=l.prototype.isDivisibleBy=c.prototype.isDivisibleBy;function P(t){var e=t.abs();if(e.isUnit())return false;if(e.equals(2)||e.equals(3)||e.equals(5))return true;if(e.isEven()||e.isDivisibleBy(3)||e.isDivisibleBy(5))return false;if(e.lesser(49))return true}function V(t,e){var r=t.prev(),i=r,s=0,a,u,c;while(i.isEven())i=i.divide(2),s++;t:for(u=0;u<e.length;u++){if(t.lesser(e[u]))continue;c=n(e[u]).modPow(i,t);if(c.isUnit()||c.equals(r))continue;for(a=s-1;0!=a;a--){c=c.square().mod(t);if(c.isUnit())return false;if(c.equals(r))continue t}return false}return true}c.prototype.isPrime=function(e){var r=P(this);if(r!==t)return r;var i=this.abs();var s=i.bitLength();if(s<=64)return V(i,[2,3,5,7,11,13,17,19,23,29,31,37]);var a=Math.log(2)*s.toJSNumber();var o=Math.ceil(true===e?2*Math.pow(a,2):a);for(var u=[],c=0;c<o;c++)u.push(n(c+2));return V(i,u)};f.prototype.isPrime=l.prototype.isPrime=c.prototype.isPrime;c.prototype.isProbablePrime=function(e,r){var i=P(this);if(i!==t)return i;var s=this.abs();var a=e===t?5:e;for(var o=[],u=0;u<a;u++)o.push(n.randBetween(2,s.minus(2),r));return V(s,o)};f.prototype.isProbablePrime=l.prototype.isProbablePrime=c.prototype.isProbablePrime;c.prototype.modInv=function(t){var e=n.zero,r=n.one,i=st(t),s=this.abs(),a,o,u;while(!s.isZero()){a=i.divide(s);o=e;u=i;e=r;i=s;r=o.subtract(a.multiply(r));s=u.subtract(a.multiply(s));}if(!i.isUnit())throw new Error(this.toString()+" and "+t.toString()+" are not co-prime");if(-1===e.compare(0))e=e.add(t);if(this.isNegative())return e.negate();return e};f.prototype.modInv=l.prototype.modInv=c.prototype.modInv;c.prototype.next=function(){var t=this.value;if(this.sign)return E(t,1,this.sign);return new c(S(t,1),this.sign)};l.prototype.next=function(){var t=this.value;if(t+1<i)return new l(t+1);return new c(s,false)};f.prototype.next=function(){return new f(this.value+BigInt(1))};c.prototype.prev=function(){var t=this.value;if(this.sign)return new c(S(t,1),true);return E(t,1,this.sign)};l.prototype.prev=function(){var t=this.value;if(t-1>-i)return new l(t-1);return new c(s,true)};f.prototype.prev=function(){return new f(this.value-BigInt(1))};var L=[1];while(2*L[L.length-1]<=e)L.push(2*L[L.length-1]);var H=L.length,K=L[H-1];function U(t){return Math.abs(t)<=e}c.prototype.shiftLeft=function(t){var e=st(t).toJSNumber();if(!U(e))throw new Error(String(e)+" is too large for shifting.");if(e<0)return this.shiftRight(-e);var r=this;if(r.isZero())return r;while(e>=H){r=r.multiply(K);e-=H-1;}return r.multiply(L[e])};f.prototype.shiftLeft=l.prototype.shiftLeft=c.prototype.shiftLeft;c.prototype.shiftRight=function(t){var e;var r=st(t).toJSNumber();if(!U(r))throw new Error(String(r)+" is too large for shifting.");if(r<0)return this.shiftLeft(-r);var i=this;while(r>=H){if(i.isZero()||i.isNegative()&&i.isUnit())return i;e=C(i,K);i=e[1].isNegative()?e[0].prev():e[0];r-=H-1;}e=C(i,L[r]);return e[1].isNegative()?e[0].prev():e[0]};f.prototype.shiftRight=l.prototype.shiftRight=c.prototype.shiftRight;function j(t,e,r){e=st(e);var i=t.isNegative(),s=e.isNegative();var a=i?t.not():t,o=s?e.not():e;var u=0,c=0;var l=null,f=null;var h=[];while(!a.isZero()||!o.isZero()){l=C(a,K);u=l[1].toJSNumber();if(i)u=K-1-u;f=C(o,K);c=f[1].toJSNumber();if(s)c=K-1-c;a=l[0];o=f[0];h.push(r(u,c));}var d=0!==r(i?1:0,s?1:0)?n(-1):n(0);for(var p=h.length-1;p>=0;p-=1)d=d.multiply(K).add(n(h[p]));return d}c.prototype.not=function(){return this.negate().prev()};f.prototype.not=l.prototype.not=c.prototype.not;c.prototype.and=function(t){return j(this,t,(function(t,e){return t&e}))};f.prototype.and=l.prototype.and=c.prototype.and;c.prototype.or=function(t){return j(this,t,(function(t,e){return t|e}))};f.prototype.or=l.prototype.or=c.prototype.or;c.prototype.xor=function(t){return j(this,t,(function(t,e){return t^e}))};f.prototype.xor=l.prototype.xor=c.prototype.xor;var q=1<<30,F=(e&-e)*(e&-e)|q;function z(t){var r=t.value,i="number"===typeof r?r|q:"bigint"===typeof r?r|BigInt(q):r[0]+r[1]*e|F;return i&-i}function G(t,e){if(e.compareTo(t)<=0){var r=G(t,e.square(e));var i=r.p;var s=r.e;var a=i.multiply(e);return a.compareTo(t)<=0?{p:a,e:2*s+1}:{p:i,e:2*s}}return {p:n(1),e:0}}c.prototype.bitLength=function(){var t=this;if(t.compareTo(n(0))<0)t=t.negate().subtract(n(1));if(0===t.compareTo(n(0)))return n(0);return n(G(t,n(2)).e).add(n(1))};f.prototype.bitLength=l.prototype.bitLength=c.prototype.bitLength;function Y(t,e){t=st(t);e=st(e);return t.greater(e)?t:e}function W(t,e){t=st(t);e=st(e);return t.lesser(e)?t:e}function J(t,e){t=st(t).abs();e=st(e).abs();if(t.equals(e))return t;if(t.isZero())return e;if(e.isZero())return t;var r=u[1],i,n;while(t.isEven()&&e.isEven()){i=W(z(t),z(e));t=t.divide(i);e=e.divide(i);r=r.multiply(i);}while(t.isEven())t=t.divide(z(t));do{while(e.isEven())e=e.divide(z(e));if(t.greater(e)){n=e;e=t;t=n;}e=e.subtract(t);}while(!e.isZero());return r.isUnit()?t:t.multiply(r)}function Z(t,e){t=st(t).abs();e=st(e).abs();return t.divide(J(t,e)).multiply(e)}function $(t,r,i){t=st(t);r=st(r);var n=i||Math.random;var s=W(t,r),a=Y(t,r);var o=a.subtract(s).add(1);if(o.isSmall)return s.add(Math.floor(n()*o));var c=et(o,e).value;var l=[],f=true;for(var h=0;h<c.length;h++){var d=f?c[h]+(h+1<c.length?c[h+1]/e:0):e;var p=y(n()*d);l.push(p);if(p<c[h])f=false;}return s.add(u.fromArray(l,e,false))}var X=function(t,e,r,i){r=r||a;t=String(t);if(!i){t=t.toLowerCase();r=r.toLowerCase();}var n=t.length;var s;var o=Math.abs(e);var u={};for(s=0;s<r.length;s++)u[r[s]]=s;for(s=0;s<n;s++){var c=t[s];if("-"===c)continue;if(c in u)if(u[c]>=o){if("1"===c&&1===o)continue;throw new Error(c+" is not a valid digit in base "+e+".")}}e=st(e);var l=[];var f="-"===t[0];for(s=f?1:0;s<t.length;s++){var c=t[s];if(c in u)l.push(st(u[c]));else if("<"===c){var h=s;do{s++;}while(">"!==t[s]&&s<t.length);l.push(st(t.slice(h+1,s)));}else throw new Error(c+" is not a valid character")}return Q(l,e,f)};function Q(t,e,r){var i=u[0],n=u[1],s;for(s=t.length-1;s>=0;s--){i=i.add(t[s].times(n));n=n.times(e);}return r?i.negate():i}function tt(t,e){e=e||a;if(t<e.length)return e[t];return "<"+t+">"}function et(t,e){e=n(e);if(e.isZero()){if(t.isZero())return {value:[0],isNegative:false};throw new Error("Cannot convert nonzero numbers to base 0.")}if(e.equals(-1)){if(t.isZero())return {value:[0],isNegative:false};if(t.isNegative())return {value:[].concat.apply([],Array.apply(null,Array(-t.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:false};var r=Array.apply(null,Array(t.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);r.unshift([1]);return {value:[].concat.apply([],r),isNegative:false}}var i=false;if(t.isNegative()&&e.isPositive()){i=true;t=t.abs();}if(e.isUnit()){if(t.isZero())return {value:[0],isNegative:false};return {value:Array.apply(null,Array(t.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:i}}var s=[];var a=t,o;while(a.isNegative()||a.compareAbs(e)>=0){o=a.divmod(e);a=o.quotient;var u=o.remainder;if(u.isNegative()){u=e.minus(u).abs();a=a.next();}s.push(u.toJSNumber());}s.push(a.toJSNumber());return {value:s.reverse(),isNegative:i}}function rt(t,e,r){var i=et(t,e);return (i.isNegative?"-":"")+i.value.map((function(t){return tt(t,r)})).join("")}c.prototype.toArray=function(t){return et(this,t)};l.prototype.toArray=function(t){return et(this,t)};f.prototype.toArray=function(t){return et(this,t)};c.prototype.toString=function(e,r){if(e===t)e=10;if(10!==e)return rt(this,e,r);var i=this.value,n=i.length,s=String(i[--n]),a="0000000",o;while(--n>=0){o=String(i[n]);s+=a.slice(o.length)+o;}var u=this.sign?"-":"";return u+s};l.prototype.toString=function(e,r){if(e===t)e=10;if(10!=e)return rt(this,e,r);return String(this.value)};f.prototype.toString=l.prototype.toString;f.prototype.toJSON=c.prototype.toJSON=l.prototype.toJSON=function(){return this.toString()};c.prototype.valueOf=function(){return parseInt(this.toString(),10)};c.prototype.toJSNumber=c.prototype.valueOf;l.prototype.valueOf=function(){return this.value};l.prototype.toJSNumber=l.prototype.valueOf;f.prototype.valueOf=f.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};function it(t){if(h(+t)){var e=+t;if(e===y(e))return o?new f(BigInt(e)):new l(e);throw new Error("Invalid integer: "+t)}var i="-"===t[0];if(i)t=t.slice(1);var n=t.split(/e/i);if(n.length>2)throw new Error("Invalid integer: "+n.join("e"));if(2===n.length){var s=n[1];if("+"===s[0])s=s.slice(1);s=+s;if(s!==y(s)||!h(s))throw new Error("Invalid integer: "+s+" is not a valid exponent.");var a=n[0];var u=a.indexOf(".");if(u>=0){s-=a.length-u-1;a=a.slice(0,u)+a.slice(u+1);}if(s<0)throw new Error("Cannot include negative exponent part for integers");a+=new Array(s+1).join("0");t=a;}var d=/^([0-9][0-9]*)$/.test(t);if(!d)throw new Error("Invalid integer: "+t);if(o)return new f(BigInt(i?"-"+t:t));var p=[],g=t.length,m=r,w=g-m;while(g>0){p.push(+t.slice(w,g));w-=m;if(w<0)w=0;g-=m;}v(p);return new c(p,i)}function nt(t){if(o)return new f(BigInt(t));if(h(t)){if(t!==y(t))throw new Error(t+" is not an integer.");return new l(t)}return it(t.toString())}function st(t){if("number"===typeof t)return nt(t);if("string"===typeof t)return it(t);if("bigint"===typeof t)return new f(t);return t}for(var at=0;at<1e3;at++){u[at]=st(at);if(at>0)u[-at]=st(-at);}u.one=u[1];u.zero=u[0];u.minusOne=u[-1];u.max=Y;u.min=W;u.gcd=J;u.lcm=Z;u.isInstance=function(t){return t instanceof c||t instanceof l||t instanceof f};u.randBetween=$;u.fromArray=function(t,e,r){return Q(t.map(st),st(e||10),r)};return u}();if(t.hasOwnProperty("exports"))t.exports=n;i=function(){return n}.call(e,r,e,t),void 0!==i&&(t.exports=i);},452:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(8269),r(8214),r(888),r(5109));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.BlockCipher;var n=e.algo;var s=[];var a=[];var o=[];var u=[];var c=[];var l=[];var f=[];var h=[];var d=[];var p=[];(function(){var t=[];for(var e=0;e<256;e++)if(e<128)t[e]=e<<1;else t[e]=e<<1^283;var r=0;var i=0;for(var e=0;e<256;e++){var n=i^i<<1^i<<2^i<<3^i<<4;n=n>>>8^255&n^99;s[r]=n;a[n]=r;var v=t[r];var g=t[v];var y=t[g];var m=257*t[n]^16843008*n;o[r]=m<<24|m>>>8;u[r]=m<<16|m>>>16;c[r]=m<<8|m>>>24;l[r]=m;var m=16843009*y^65537*g^257*v^16843008*r;f[n]=m<<24|m>>>8;h[n]=m<<16|m>>>16;d[n]=m<<8|m>>>24;p[n]=m;if(!r)r=i=1;else {r=v^t[t[t[y^v]]];i^=t[t[i]];}}})();var v=[0,1,2,4,8,16,32,64,128,27,54];var g=n.AES=i.extend({_doReset:function(){var t;if(this._nRounds&&this._keyPriorReset===this._key)return;var e=this._keyPriorReset=this._key;var r=e.words;var i=e.sigBytes/4;var n=this._nRounds=i+6;var a=4*(n+1);var o=this._keySchedule=[];for(var u=0;u<a;u++)if(u<i)o[u]=r[u];else {t=o[u-1];if(!(u%i)){t=t<<8|t>>>24;t=s[t>>>24]<<24|s[t>>>16&255]<<16|s[t>>>8&255]<<8|s[255&t];t^=v[u/i|0]<<24;}else if(i>6&&u%i==4)t=s[t>>>24]<<24|s[t>>>16&255]<<16|s[t>>>8&255]<<8|s[255&t];o[u]=o[u-i]^t;}var c=this._invKeySchedule=[];for(var l=0;l<a;l++){var u=a-l;if(l%4)var t=o[u];else var t=o[u-4];if(l<4||u<=4)c[l]=t;else c[l]=f[s[t>>>24]]^h[s[t>>>16&255]]^d[s[t>>>8&255]]^p[s[255&t]];}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,o,u,c,l,s);},decryptBlock:function(t,e){var r=t[e+1];t[e+1]=t[e+3];t[e+3]=r;this._doCryptBlock(t,e,this._invKeySchedule,f,h,d,p,a);var r=t[e+1];t[e+1]=t[e+3];t[e+3]=r;},_doCryptBlock:function(t,e,r,i,n,s,a,o){var u=this._nRounds;var c=t[e]^r[0];var l=t[e+1]^r[1];var f=t[e+2]^r[2];var h=t[e+3]^r[3];var d=4;for(var p=1;p<u;p++){var v=i[c>>>24]^n[l>>>16&255]^s[f>>>8&255]^a[255&h]^r[d++];var g=i[l>>>24]^n[f>>>16&255]^s[h>>>8&255]^a[255&c]^r[d++];var y=i[f>>>24]^n[h>>>16&255]^s[c>>>8&255]^a[255&l]^r[d++];var m=i[h>>>24]^n[c>>>16&255]^s[l>>>8&255]^a[255&f]^r[d++];c=v;l=g;f=y;h=m;}var v=(o[c>>>24]<<24|o[l>>>16&255]<<16|o[f>>>8&255]<<8|o[255&h])^r[d++];var g=(o[l>>>24]<<24|o[f>>>16&255]<<16|o[h>>>8&255]<<8|o[255&c])^r[d++];var y=(o[f>>>24]<<24|o[h>>>16&255]<<16|o[c>>>8&255]<<8|o[255&l])^r[d++];var m=(o[h>>>24]<<24|o[c>>>16&255]<<16|o[l>>>8&255]<<8|o[255&f])^r[d++];t[e]=v;t[e+1]=g;t[e+2]=y;t[e+3]=m;},keySize:256/32});e.AES=i._createHelper(g);})();return t.AES}));},5109:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(888));})(this,(function(t){t.lib.Cipher||function(e){var r=t;var i=r.lib;var n=i.Base;var s=i.WordArray;var a=i.BufferedBlockAlgorithm;var o=r.enc;o.Utf8;var c=o.Base64;var l=r.algo;var f=l.EvpKDF;var h=i.Cipher=a.extend({cfg:n.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,r){this.cfg=this.cfg.extend(r);this._xformMode=t;this._key=e;this.reset();},reset:function(){a.reset.call(this);this._doReset();},process:function(t){this._append(t);return this._process()},finalize:function(t){if(t)this._append(t);var e=this._doFinalize();return e},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){if("string"==typeof t)return T;else return E}return function(e){return {encrypt:function(r,i,n){return t(i).encrypt(e,r,i,n)},decrypt:function(r,i,n){return t(i).decrypt(e,r,i,n)}}}}()});i.StreamCipher=h.extend({_doFinalize:function(){var t=this._process(!!"flush");return t},blockSize:1});var p=r.mode={};var v=i.BlockCipherMode=n.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t;this._iv=e;}});var g=p.CBC=function(){var t=v.extend();t.Encryptor=t.extend({processBlock:function(t,e){var i=this._cipher;var n=i.blockSize;r.call(this,t,e,n);i.encryptBlock(t,e);this._prevBlock=t.slice(e,e+n);}});t.Decryptor=t.extend({processBlock:function(t,e){var i=this._cipher;var n=i.blockSize;var s=t.slice(e,e+n);i.decryptBlock(t,e);r.call(this,t,e,n);this._prevBlock=s;}});function r(t,r,i){var n;var s=this._iv;if(s){n=s;this._iv=e;}else n=this._prevBlock;for(var a=0;a<i;a++)t[r+a]^=n[a];}return t}();var y=r.pad={};var m=y.Pkcs7={pad:function(t,e){var r=4*e;var i=r-t.sigBytes%r;var n=i<<24|i<<16|i<<8|i;var a=[];for(var o=0;o<i;o+=4)a.push(n);var u=s.create(a,i);t.concat(u);},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e;}};i.BlockCipher=h.extend({cfg:h.cfg.extend({mode:g,padding:m}),reset:function(){var t;h.reset.call(this);var e=this.cfg;var r=e.iv;var i=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)t=i.createEncryptor;else {t=i.createDecryptor;this._minBufferSize=1;}if(this._mode&&this._mode.__creator==t)this._mode.init(this,r&&r.words);else {this._mode=t.call(i,this,r&&r.words);this._mode.__creator=t;}},_doProcessBlock:function(t,e){this._mode.processBlock(t,e);},_doFinalize:function(){var t;var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);t=this._process(!!"flush");}else {t=this._process(!!"flush");e.unpad(t);}return t},blockSize:128/32});var S=i.CipherParams=n.extend({init:function(t){this.mixIn(t);},toString:function(t){return (t||this.formatter).stringify(this)}});var _=r.format={};var b=_.OpenSSL={stringify:function(t){var e;var r=t.ciphertext;var i=t.salt;if(i)e=s.create([1398893684,1701076831]).concat(i).concat(r);else e=r;return e.toString(c)},parse:function(t){var e;var r=c.parse(t);var i=r.words;if(1398893684==i[0]&&1701076831==i[1]){e=s.create(i.slice(2,4));i.splice(0,4);r.sigBytes-=16;}return S.create({ciphertext:r,salt:e})}};var E=i.SerializableCipher=n.extend({cfg:n.extend({format:b}),encrypt:function(t,e,r,i){i=this.cfg.extend(i);var n=t.createEncryptor(r,i);var s=n.finalize(e);var a=n.cfg;return S.create({ciphertext:s,key:r,iv:a.iv,algorithm:t,mode:a.mode,padding:a.padding,blockSize:t.blockSize,formatter:i.format})},decrypt:function(t,e,r,i){i=this.cfg.extend(i);e=this._parse(e,i.format);var n=t.createDecryptor(r,i).finalize(e.ciphertext);return n},_parse:function(t,e){if("string"==typeof t)return e.parse(t,this);else return t}});var D=r.kdf={};var M=D.OpenSSL={execute:function(t,e,r,i){if(!i)i=s.random(64/8);var n=f.create({keySize:e+r}).compute(t,i);var a=s.create(n.words.slice(e),4*r);n.sigBytes=4*e;return S.create({key:n,iv:a,salt:i})}};var T=i.PasswordBasedCipher=E.extend({cfg:E.cfg.extend({kdf:M}),encrypt:function(t,e,r,i){i=this.cfg.extend(i);var n=i.kdf.execute(r,t.keySize,t.ivSize);i.iv=n.iv;var s=E.encrypt.call(this,t,e,n.key,i);s.mixIn(n);return s},decrypt:function(t,e,r,i){i=this.cfg.extend(i);e=this._parse(e,i.format);var n=i.kdf.execute(r,t.keySize,t.ivSize,e.salt);i.iv=n.iv;var s=E.decrypt.call(this,t,e,n.key,i);return s}});}();}));},8249:function(t,e,r){(function(r,i){t.exports=i();})(this,(function(){var t=t||function(t,e){var i;if("undefined"!==typeof window&&window.crypto)i=window.crypto;if("undefined"!==typeof self&&self.crypto)i=self.crypto;if("undefined"!==typeof globalThis&&globalThis.crypto)i=globalThis.crypto;if(!i&&"undefined"!==typeof window&&window.msCrypto)i=window.msCrypto;if(!i&&"undefined"!==typeof r.g&&r.g.crypto)i=r.g.crypto;if(!i&&"function"==="function")try{i=r(2480);}catch(t){}var n=function(){if(i){if("function"===typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"===typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")};var s=Object.create||function(){function t(){}return function(e){var r;t.prototype=e;r=new t;t.prototype=null;return r}}();var a={};var o=a.lib={};var u=o.Base=function(){return {extend:function(t){var e=s(this);if(t)e.mixIn(t);if(!e.hasOwnProperty("init")||this.init===e.init)e.init=function(){e.$super.init.apply(this,arguments);};e.init.prototype=e;e.$super=this;return e},create:function(){var t=this.extend();t.init.apply(t,arguments);return t},init:function(){},mixIn:function(t){for(var e in t)if(t.hasOwnProperty(e))this[e]=t[e];if(t.hasOwnProperty("toString"))this.toString=t.toString;},clone:function(){return this.init.prototype.extend(this)}}}();var c=o.WordArray=u.extend({init:function(t,r){t=this.words=t||[];if(r!=e)this.sigBytes=r;else this.sigBytes=4*t.length;},toString:function(t){return (t||f).stringify(this)},concat:function(t){var e=this.words;var r=t.words;var i=this.sigBytes;var n=t.sigBytes;this.clamp();if(i%4)for(var s=0;s<n;s++){var a=r[s>>>2]>>>24-s%4*8&255;e[i+s>>>2]|=a<<24-(i+s)%4*8;}else for(var o=0;o<n;o+=4)e[i+o>>>2]=r[o>>>2];this.sigBytes+=n;return this},clamp:function(){var e=this.words;var r=this.sigBytes;e[r>>>2]&=4294967295<<32-r%4*8;e.length=t.ceil(r/4);},clone:function(){var t=u.clone.call(this);t.words=this.words.slice(0);return t},random:function(t){var e=[];for(var r=0;r<t;r+=4)e.push(n());return new c.init(e,t)}});var l=a.enc={};var f=l.Hex={stringify:function(t){var e=t.words;var r=t.sigBytes;var i=[];for(var n=0;n<r;n++){var s=e[n>>>2]>>>24-n%4*8&255;i.push((s>>>4).toString(16));i.push((15&s).toString(16));}return i.join("")},parse:function(t){var e=t.length;var r=[];for(var i=0;i<e;i+=2)r[i>>>3]|=parseInt(t.substr(i,2),16)<<24-i%8*4;return new c.init(r,e/2)}};var h=l.Latin1={stringify:function(t){var e=t.words;var r=t.sigBytes;var i=[];for(var n=0;n<r;n++){var s=e[n>>>2]>>>24-n%4*8&255;i.push(String.fromCharCode(s));}return i.join("")},parse:function(t){var e=t.length;var r=[];for(var i=0;i<e;i++)r[i>>>2]|=(255&t.charCodeAt(i))<<24-i%4*8;return new c.init(r,e)}};var d=l.Utf8={stringify:function(t){try{return decodeURIComponent(escape(h.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return h.parse(unescape(encodeURIComponent(t)))}};var p=o.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new c.init;this._nDataBytes=0;},_append:function(t){if("string"==typeof t)t=d.parse(t);this._data.concat(t);this._nDataBytes+=t.sigBytes;},_process:function(e){var r;var i=this._data;var n=i.words;var s=i.sigBytes;var a=this.blockSize;var o=4*a;var u=s/o;if(e)u=t.ceil(u);else u=t.max((0|u)-this._minBufferSize,0);var l=u*a;var f=t.min(4*l,s);if(l){for(var h=0;h<l;h+=a)this._doProcessBlock(n,h);r=n.splice(0,l);i.sigBytes-=f;}return new c.init(r,f)},clone:function(){var t=u.clone.call(this);t._data=this._data.clone();return t},_minBufferSize:0});o.Hasher=p.extend({cfg:u.extend(),init:function(t){this.cfg=this.cfg.extend(t);this.reset();},reset:function(){p.reset.call(this);this._doReset();},update:function(t){this._append(t);this._process();return this},finalize:function(t){if(t)this._append(t);var e=this._doFinalize();return e},blockSize:512/32,_createHelper:function(t){return function(e,r){return new t.init(r).finalize(e)}},_createHmacHelper:function(t){return function(e,r){return new g.HMAC.init(t,r).finalize(e)}}});var g=a.algo={};return a}(Math);return t}));},8269:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=e.enc;n.Base64={stringify:function(t){var e=t.words;var r=t.sigBytes;var i=this._map;t.clamp();var n=[];for(var s=0;s<r;s+=3){var a=e[s>>>2]>>>24-s%4*8&255;var o=e[s+1>>>2]>>>24-(s+1)%4*8&255;var u=e[s+2>>>2]>>>24-(s+2)%4*8&255;var c=a<<16|o<<8|u;for(var l=0;l<4&&s+.75*l<r;l++)n.push(i.charAt(c>>>6*(3-l)&63));}var f=i.charAt(64);if(f)while(n.length%4)n.push(f);return n.join("")},parse:function(t){var e=t.length;var r=this._map;var i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var n=0;n<r.length;n++)i[r.charCodeAt(n)]=n;}var s=r.charAt(64);if(s){var o=t.indexOf(s);if(-1!==o)e=o;}return a(t,e,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function a(t,e,r){var n=[];var s=0;for(var a=0;a<e;a++)if(a%4){var o=r[t.charCodeAt(a-1)]<<a%4*2;var u=r[t.charCodeAt(a)]>>>6-a%4*2;var c=o|u;n[s>>>2]|=c<<24-s%4*8;s++;}return i.create(n,s)}})();return t.enc.Base64}));},3786:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=e.enc;n.Base64url={stringify:function(t,e=true){var r=t.words;var i=t.sigBytes;var n=e?this._safe_map:this._map;t.clamp();var s=[];for(var a=0;a<i;a+=3){var o=r[a>>>2]>>>24-a%4*8&255;var u=r[a+1>>>2]>>>24-(a+1)%4*8&255;var c=r[a+2>>>2]>>>24-(a+2)%4*8&255;var l=o<<16|u<<8|c;for(var f=0;f<4&&a+.75*f<i;f++)s.push(n.charAt(l>>>6*(3-f)&63));}var h=n.charAt(64);if(h)while(s.length%4)s.push(h);return s.join("")},parse:function(t,e=true){var r=t.length;var i=e?this._safe_map:this._map;var n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var s=0;s<i.length;s++)n[i.charCodeAt(s)]=s;}var o=i.charAt(64);if(o){var u=t.indexOf(o);if(-1!==u)r=u;}return a(t,r,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function a(t,e,r){var n=[];var s=0;for(var a=0;a<e;a++)if(a%4){var o=r[t.charCodeAt(a-1)]<<a%4*2;var u=r[t.charCodeAt(a)]>>>6-a%4*2;var c=o|u;n[s>>>2]|=c<<24-s%4*8;s++;}return i.create(n,s)}})();return t.enc.Base64url}));},298:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=e.enc;n.Utf16=n.Utf16BE={stringify:function(t){var e=t.words;var r=t.sigBytes;var i=[];for(var n=0;n<r;n+=2){var s=e[n>>>2]>>>16-n%4*8&65535;i.push(String.fromCharCode(s));}return i.join("")},parse:function(t){var e=t.length;var r=[];for(var n=0;n<e;n++)r[n>>>1]|=t.charCodeAt(n)<<16-n%2*16;return i.create(r,2*e)}};n.Utf16LE={stringify:function(t){var e=t.words;var r=t.sigBytes;var i=[];for(var n=0;n<r;n+=2){var s=a(e[n>>>2]>>>16-n%4*8&65535);i.push(String.fromCharCode(s));}return i.join("")},parse:function(t){var e=t.length;var r=[];for(var n=0;n<e;n++)r[n>>>1]|=a(t.charCodeAt(n)<<16-n%2*16);return i.create(r,2*e)}};function a(t){return t<<8&4278255360|t>>>8&16711935}})();return t.enc.Utf16}));},888:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(2783),r(9824));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.Base;var n=r.WordArray;var s=e.algo;var a=s.MD5;var o=s.EvpKDF=i.extend({cfg:i.extend({keySize:128/32,hasher:a,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t);},compute:function(t,e){var r;var i=this.cfg;var s=i.hasher.create();var a=n.create();var o=a.words;var u=i.keySize;var c=i.iterations;while(o.length<u){if(r)s.update(r);r=s.update(t).finalize(e);s.reset();for(var l=1;l<c;l++){r=s.finalize(r);s.reset();}a.concat(r);}a.sigBytes=4*u;return a}});e.EvpKDF=function(t,e,r){return o.create(r).compute(t,e)};})();return t.EvpKDF}));},2209:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.CipherParams;var s=r.enc;var a=s.Hex;var o=r.format;o.Hex={stringify:function(t){return t.ciphertext.toString(a)},parse:function(t){var e=a.parse(t);return n.create({ciphertext:e})}};})();return t.format.Hex}));},9824:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.Base;var n=e.enc;var s=n.Utf8;var a=e.algo;a.HMAC=i.extend({init:function(t,e){t=this._hasher=new t.init;if("string"==typeof e)e=s.parse(e);var r=t.blockSize;var i=4*r;if(e.sigBytes>i)e=t.finalize(e);e.clamp();var n=this._oKey=e.clone();var a=this._iKey=e.clone();var o=n.words;var u=a.words;for(var c=0;c<r;c++){o[c]^=1549556828;u[c]^=909522486;}n.sigBytes=a.sigBytes=i;this.reset();},reset:function(){var t=this._hasher;t.reset();t.update(this._iKey);},update:function(t){this._hasher.update(t);return this},finalize:function(t){var e=this._hasher;var r=e.finalize(t);e.reset();var i=e.finalize(this._oKey.clone().concat(r));return i}});})();}));},1354:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(4938),r(4433),r(298),r(8269),r(3786),r(8214),r(2783),r(2153),r(7792),r(34),r(7460),r(3327),r(706),r(9824),r(2112),r(888),r(5109),r(8568),r(4242),r(9968),r(7660),r(1148),r(3615),r(2807),r(1077),r(6475),r(6991),r(2209),r(452),r(4253),r(1857),r(4454),r(3974));})(this,(function(t){return t}));},4433:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(){if("function"!=typeof ArrayBuffer)return;var e=t;var r=e.lib;var i=r.WordArray;var n=i.init;var s=i.init=function(t){if(t instanceof ArrayBuffer)t=new Uint8Array(t);if(t instanceof Int8Array||"undefined"!==typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);if(t instanceof Uint8Array){var e=t.byteLength;var r=[];for(var i=0;i<e;i++)r[i>>>2]|=t[i]<<24-i%4*8;n.call(this,r,e);}else n.apply(this,arguments);};s.prototype=i;})();return t.lib.WordArray}));},8214:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.WordArray;var s=i.Hasher;var a=r.algo;var o=[];(function(){for(var t=0;t<64;t++)o[t]=4294967296*e.abs(e.sin(t+1))|0;})();var u=a.MD5=s.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878]);},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var i=e+r;var n=t[i];t[i]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8);}var s=this._hash.words;var a=t[e+0];var u=t[e+1];var d=t[e+2];var p=t[e+3];var v=t[e+4];var g=t[e+5];var y=t[e+6];var m=t[e+7];var w=t[e+8];var S=t[e+9];var _=t[e+10];var b=t[e+11];var E=t[e+12];var D=t[e+13];var M=t[e+14];var T=t[e+15];var I=s[0];var A=s[1];var x=s[2];var R=s[3];I=c(I,A,x,R,a,7,o[0]);R=c(R,I,A,x,u,12,o[1]);x=c(x,R,I,A,d,17,o[2]);A=c(A,x,R,I,p,22,o[3]);I=c(I,A,x,R,v,7,o[4]);R=c(R,I,A,x,g,12,o[5]);x=c(x,R,I,A,y,17,o[6]);A=c(A,x,R,I,m,22,o[7]);I=c(I,A,x,R,w,7,o[8]);R=c(R,I,A,x,S,12,o[9]);x=c(x,R,I,A,_,17,o[10]);A=c(A,x,R,I,b,22,o[11]);I=c(I,A,x,R,E,7,o[12]);R=c(R,I,A,x,D,12,o[13]);x=c(x,R,I,A,M,17,o[14]);A=c(A,x,R,I,T,22,o[15]);I=l(I,A,x,R,u,5,o[16]);R=l(R,I,A,x,y,9,o[17]);x=l(x,R,I,A,b,14,o[18]);A=l(A,x,R,I,a,20,o[19]);I=l(I,A,x,R,g,5,o[20]);R=l(R,I,A,x,_,9,o[21]);x=l(x,R,I,A,T,14,o[22]);A=l(A,x,R,I,v,20,o[23]);I=l(I,A,x,R,S,5,o[24]);R=l(R,I,A,x,M,9,o[25]);x=l(x,R,I,A,p,14,o[26]);A=l(A,x,R,I,w,20,o[27]);I=l(I,A,x,R,D,5,o[28]);R=l(R,I,A,x,d,9,o[29]);x=l(x,R,I,A,m,14,o[30]);A=l(A,x,R,I,E,20,o[31]);I=f(I,A,x,R,g,4,o[32]);R=f(R,I,A,x,w,11,o[33]);x=f(x,R,I,A,b,16,o[34]);A=f(A,x,R,I,M,23,o[35]);I=f(I,A,x,R,u,4,o[36]);R=f(R,I,A,x,v,11,o[37]);x=f(x,R,I,A,m,16,o[38]);A=f(A,x,R,I,_,23,o[39]);I=f(I,A,x,R,D,4,o[40]);R=f(R,I,A,x,a,11,o[41]);x=f(x,R,I,A,p,16,o[42]);A=f(A,x,R,I,y,23,o[43]);I=f(I,A,x,R,S,4,o[44]);R=f(R,I,A,x,E,11,o[45]);x=f(x,R,I,A,T,16,o[46]);A=f(A,x,R,I,d,23,o[47]);I=h(I,A,x,R,a,6,o[48]);R=h(R,I,A,x,m,10,o[49]);x=h(x,R,I,A,M,15,o[50]);A=h(A,x,R,I,g,21,o[51]);I=h(I,A,x,R,E,6,o[52]);R=h(R,I,A,x,p,10,o[53]);x=h(x,R,I,A,_,15,o[54]);A=h(A,x,R,I,u,21,o[55]);I=h(I,A,x,R,w,6,o[56]);R=h(R,I,A,x,T,10,o[57]);x=h(x,R,I,A,y,15,o[58]);A=h(A,x,R,I,D,21,o[59]);I=h(I,A,x,R,v,6,o[60]);R=h(R,I,A,x,b,10,o[61]);x=h(x,R,I,A,d,15,o[62]);A=h(A,x,R,I,S,21,o[63]);s[0]=s[0]+I|0;s[1]=s[1]+A|0;s[2]=s[2]+x|0;s[3]=s[3]+R|0;},_doFinalize:function(){var t=this._data;var r=t.words;var i=8*this._nDataBytes;var n=8*t.sigBytes;r[n>>>5]|=128<<24-n%32;var s=e.floor(i/4294967296);var a=i;r[(n+64>>>9<<4)+15]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8);r[(n+64>>>9<<4)+14]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);t.sigBytes=4*(r.length+1);this._process();var o=this._hash;var u=o.words;for(var c=0;c<4;c++){var l=u[c];u[c]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8);}return o},clone:function(){var t=s.clone.call(this);t._hash=this._hash.clone();return t}});function c(t,e,r,i,n,s,a){var o=t+(e&r|~e&i)+n+a;return (o<<s|o>>>32-s)+e}function l(t,e,r,i,n,s,a){var o=t+(e&i|r&~i)+n+a;return (o<<s|o>>>32-s)+e}function f(t,e,r,i,n,s,a){var o=t+(e^r^i)+n+a;return (o<<s|o>>>32-s)+e}function h(t,e,r,i,n,s,a){var o=t+(r^(e|~i))+n+a;return (o<<s|o>>>32-s)+e}r.MD5=s._createHelper(u);r.HmacMD5=s._createHmacHelper(u);})(Math);return t.MD5}));},8568:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){t.mode.CFB=function(){var e=t.lib.BlockCipherMode.extend();e.Encryptor=e.extend({processBlock:function(t,e){var i=this._cipher;var n=i.blockSize;r.call(this,t,e,n,i);this._prevBlock=t.slice(e,e+n);}});e.Decryptor=e.extend({processBlock:function(t,e){var i=this._cipher;var n=i.blockSize;var s=t.slice(e,e+n);r.call(this,t,e,n,i);this._prevBlock=s;}});function r(t,e,r,i){var n;var s=this._iv;if(s){n=s.slice(0);this._iv=void 0;}else n=this._prevBlock;i.encryptBlock(n,0);for(var a=0;a<r;a++)t[e+a]^=n[a];}return e}();return t.mode.CFB}));},9968:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){t.mode.CTRGladman=function(){var e=t.lib.BlockCipherMode.extend();function r(t){if(255===(t>>24&255)){var e=t>>16&255;var r=t>>8&255;var i=255&t;if(255===e){e=0;if(255===r){r=0;if(255===i)i=0;else ++i;}else ++r;}else ++e;t=0;t+=e<<16;t+=r<<8;t+=i;}else t+=1<<24;return t}function i(t){if(0===(t[0]=r(t[0])))t[1]=r(t[1]);return t}var n=e.Encryptor=e.extend({processBlock:function(t,e){var r=this._cipher;var n=r.blockSize;var s=this._iv;var a=this._counter;if(s){a=this._counter=s.slice(0);this._iv=void 0;}i(a);var o=a.slice(0);r.encryptBlock(o,0);for(var u=0;u<n;u++)t[e+u]^=o[u];}});e.Decryptor=n;return e}();return t.mode.CTRGladman}));},4242:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){t.mode.CTR=function(){var e=t.lib.BlockCipherMode.extend();var r=e.Encryptor=e.extend({processBlock:function(t,e){var r=this._cipher;var i=r.blockSize;var n=this._iv;var s=this._counter;if(n){s=this._counter=n.slice(0);this._iv=void 0;}var a=s.slice(0);r.encryptBlock(a,0);s[i-1]=s[i-1]+1|0;for(var o=0;o<i;o++)t[e+o]^=a[o];}});e.Decryptor=r;return e}();return t.mode.CTR}));},1148:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){t.mode.ECB=function(){var e=t.lib.BlockCipherMode.extend();e.Encryptor=e.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e);}});e.Decryptor=e.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e);}});return e}();return t.mode.ECB}));},7660:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){t.mode.OFB=function(){var e=t.lib.BlockCipherMode.extend();var r=e.Encryptor=e.extend({processBlock:function(t,e){var r=this._cipher;var i=r.blockSize;var n=this._iv;var s=this._keystream;if(n){s=this._keystream=n.slice(0);this._iv=void 0;}r.encryptBlock(s,0);for(var a=0;a<i;a++)t[e+a]^=s[a];}});e.Decryptor=r;return e}();return t.mode.OFB}));},3615:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){t.pad.AnsiX923={pad:function(t,e){var r=t.sigBytes;var i=4*e;var n=i-r%i;var s=r+n-1;t.clamp();t.words[s>>>2]|=n<<24-s%4*8;t.sigBytes+=n;},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e;}};return t.pad.Ansix923}));},2807:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){t.pad.Iso10126={pad:function(e,r){var i=4*r;var n=i-e.sigBytes%i;e.concat(t.lib.WordArray.random(n-1)).concat(t.lib.WordArray.create([n<<24],1));},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e;}};return t.pad.Iso10126}));},1077:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){t.pad.Iso97971={pad:function(e,r){e.concat(t.lib.WordArray.create([2147483648],1));t.pad.ZeroPadding.pad(e,r);},unpad:function(e){t.pad.ZeroPadding.unpad(e);e.sigBytes--;}};return t.pad.Iso97971}));},6991:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){t.pad.NoPadding={pad:function(){},unpad:function(){}};return t.pad.NoPadding}));},6475:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){t.pad.ZeroPadding={pad:function(t,e){var r=4*e;t.clamp();t.sigBytes+=r-(t.sigBytes%r||r);},unpad:function(t){var e=t.words;var r=t.sigBytes-1;for(var r=t.sigBytes-1;r>=0;r--)if(e[r>>>2]>>>24-r%4*8&255){t.sigBytes=r+1;break}}};return t.pad.ZeroPadding}));},2112:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(2783),r(9824));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.Base;var n=r.WordArray;var s=e.algo;var a=s.SHA1;var o=s.HMAC;var u=s.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:a,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t);},compute:function(t,e){var r=this.cfg;var i=o.create(r.hasher,t);var s=n.create();var a=n.create([1]);var u=s.words;var c=a.words;var l=r.keySize;var f=r.iterations;while(u.length<l){var h=i.update(e).finalize(a);i.reset();var d=h.words;var p=d.length;var v=h;for(var g=1;g<f;g++){v=i.finalize(v);i.reset();var y=v.words;for(var m=0;m<p;m++)d[m]^=y[m];}s.concat(h);c[0]++;}s.sigBytes=4*l;return s}});e.PBKDF2=function(t,e,r){return u.create(r).compute(t,e)};})();return t.PBKDF2}));},3974:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(8269),r(8214),r(888),r(5109));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.StreamCipher;var n=e.algo;var s=[];var a=[];var o=[];var u=n.RabbitLegacy=i.extend({_doReset:function(){var t=this._key.words;var e=this.cfg.iv;var r=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16];var i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var n=0;n<4;n++)c.call(this);for(var n=0;n<8;n++)i[n]^=r[n+4&7];if(e){var s=e.words;var a=s[0];var o=s[1];var u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);var l=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8);var f=u>>>16|4294901760&l;var h=l<<16|65535&u;i[0]^=u;i[1]^=f;i[2]^=l;i[3]^=h;i[4]^=u;i[5]^=f;i[6]^=l;i[7]^=h;for(var n=0;n<4;n++)c.call(this);}},_doProcessBlock:function(t,e){var r=this._X;c.call(this);s[0]=r[0]^r[5]>>>16^r[3]<<16;s[1]=r[2]^r[7]>>>16^r[5]<<16;s[2]=r[4]^r[1]>>>16^r[7]<<16;s[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++){s[i]=16711935&(s[i]<<8|s[i]>>>24)|4278255360&(s[i]<<24|s[i]>>>8);t[e+i]^=s[i];}},blockSize:128/32,ivSize:64/32});function c(){var t=this._X;var e=this._C;for(var r=0;r<8;r++)a[r]=e[r];e[0]=e[0]+1295307597+this._b|0;e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0;e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0;e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0;e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0;e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0;e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0;e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0;this._b=e[7]>>>0<a[7]>>>0?1:0;for(var r=0;r<8;r++){var i=t[r]+e[r];var n=65535&i;var s=i>>>16;var u=((n*n>>>17)+n*s>>>15)+s*s;var c=((4294901760&i)*i|0)+((65535&i)*i|0);o[r]=u^c;}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0;t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0;t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0;t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0;t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0;t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0;t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0;t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0;}e.RabbitLegacy=i._createHelper(u);})();return t.RabbitLegacy}));},4454:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(8269),r(8214),r(888),r(5109));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.StreamCipher;var n=e.algo;var s=[];var a=[];var o=[];var u=n.Rabbit=i.extend({_doReset:function(){var t=this._key.words;var e=this.cfg.iv;for(var r=0;r<4;r++)t[r]=16711935&(t[r]<<8|t[r]>>>24)|4278255360&(t[r]<<24|t[r]>>>8);var i=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16];var n=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var r=0;r<4;r++)c.call(this);for(var r=0;r<8;r++)n[r]^=i[r+4&7];if(e){var s=e.words;var a=s[0];var o=s[1];var u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);var l=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8);var f=u>>>16|4294901760&l;var h=l<<16|65535&u;n[0]^=u;n[1]^=f;n[2]^=l;n[3]^=h;n[4]^=u;n[5]^=f;n[6]^=l;n[7]^=h;for(var r=0;r<4;r++)c.call(this);}},_doProcessBlock:function(t,e){var r=this._X;c.call(this);s[0]=r[0]^r[5]>>>16^r[3]<<16;s[1]=r[2]^r[7]>>>16^r[5]<<16;s[2]=r[4]^r[1]>>>16^r[7]<<16;s[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++){s[i]=16711935&(s[i]<<8|s[i]>>>24)|4278255360&(s[i]<<24|s[i]>>>8);t[e+i]^=s[i];}},blockSize:128/32,ivSize:64/32});function c(){var t=this._X;var e=this._C;for(var r=0;r<8;r++)a[r]=e[r];e[0]=e[0]+1295307597+this._b|0;e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0;e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0;e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0;e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0;e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0;e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0;e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0;this._b=e[7]>>>0<a[7]>>>0?1:0;for(var r=0;r<8;r++){var i=t[r]+e[r];var n=65535&i;var s=i>>>16;var u=((n*n>>>17)+n*s>>>15)+s*s;var c=((4294901760&i)*i|0)+((65535&i)*i|0);o[r]=u^c;}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0;t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0;t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0;t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0;t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0;t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0;t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0;t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0;}e.Rabbit=i._createHelper(u);})();return t.Rabbit}));},1857:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(8269),r(8214),r(888),r(5109));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.StreamCipher;var n=e.algo;var s=n.RC4=i.extend({_doReset:function(){var t=this._key;var e=t.words;var r=t.sigBytes;var i=this._S=[];for(var n=0;n<256;n++)i[n]=n;for(var n=0,s=0;n<256;n++){var a=n%r;var o=e[a>>>2]>>>24-a%4*8&255;s=(s+i[n]+o)%256;var u=i[n];i[n]=i[s];i[s]=u;}this._i=this._j=0;},_doProcessBlock:function(t,e){t[e]^=a.call(this);},keySize:256/32,ivSize:0});function a(){var t=this._S;var e=this._i;var r=this._j;var i=0;for(var n=0;n<4;n++){e=(e+1)%256;r=(r+t[e])%256;var s=t[e];t[e]=t[r];t[r]=s;i|=t[(t[e]+t[r])%256]<<24-8*n;}this._i=e;this._j=r;return i}e.RC4=i._createHelper(s);var o=n.RC4Drop=s.extend({cfg:s.cfg.extend({drop:192}),_doReset:function(){s._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)a.call(this);}});e.RC4Drop=i._createHelper(o);})();return t.RC4}));},706:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.WordArray;var s=i.Hasher;var a=r.algo;var o=n.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]);var u=n.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]);var c=n.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]);var l=n.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]);var f=n.create([0,1518500249,1859775393,2400959708,2840853838]);var h=n.create([1352829926,1548603684,1836072691,2053994217,0]);var d=a.RIPEMD160=s.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520]);},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var i=e+r;var n=t[i];t[i]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8);}var s=this._hash.words;var a=f.words;var d=h.words;var S=o.words;var _=u.words;var b=c.words;var E=l.words;var D,M,T,I,A;var x,R,B,O,k;x=D=s[0];R=M=s[1];B=T=s[2];O=I=s[3];k=A=s[4];var C;for(var r=0;r<80;r+=1){C=D+t[e+S[r]]|0;if(r<16)C+=p(M,T,I)+a[0];else if(r<32)C+=v(M,T,I)+a[1];else if(r<48)C+=g(M,T,I)+a[2];else if(r<64)C+=y(M,T,I)+a[3];else C+=m(M,T,I)+a[4];C|=0;C=w(C,b[r]);C=C+A|0;D=A;A=I;I=w(T,10);T=M;M=C;C=x+t[e+_[r]]|0;if(r<16)C+=m(R,B,O)+d[0];else if(r<32)C+=y(R,B,O)+d[1];else if(r<48)C+=g(R,B,O)+d[2];else if(r<64)C+=v(R,B,O)+d[3];else C+=p(R,B,O)+d[4];C|=0;C=w(C,E[r]);C=C+k|0;x=k;k=O;O=w(B,10);B=R;R=C;}C=s[1]+T+O|0;s[1]=s[2]+I+k|0;s[2]=s[3]+A+x|0;s[3]=s[4]+D+R|0;s[4]=s[0]+M+B|0;s[0]=C;},_doFinalize:function(){var t=this._data;var e=t.words;var r=8*this._nDataBytes;var i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32;e[(i+64>>>9<<4)+14]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8);t.sigBytes=4*(e.length+1);this._process();var n=this._hash;var s=n.words;for(var a=0;a<5;a++){var o=s[a];s[a]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8);}return n},clone:function(){var t=s.clone.call(this);t._hash=this._hash.clone();return t}});function p(t,e,r){return t^e^r}function v(t,e,r){return t&e|~t&r}function g(t,e,r){return (t|~e)^r}function y(t,e,r){return t&r|e&~r}function m(t,e,r){return t^(e|~r)}function w(t,e){return t<<e|t>>>32-e}r.RIPEMD160=s._createHelper(d);r.HmacRIPEMD160=s._createHmacHelper(d);})();return t.RIPEMD160}));},2783:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=r.Hasher;var s=e.algo;var a=[];var o=s.SHA1=n.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520]);},_doProcessBlock:function(t,e){var r=this._hash.words;var i=r[0];var n=r[1];var s=r[2];var o=r[3];var u=r[4];for(var c=0;c<80;c++){if(c<16)a[c]=0|t[e+c];else {var l=a[c-3]^a[c-8]^a[c-14]^a[c-16];a[c]=l<<1|l>>>31;}var f=(i<<5|i>>>27)+u+a[c];if(c<20)f+=(n&s|~n&o)+1518500249;else if(c<40)f+=(n^s^o)+1859775393;else if(c<60)f+=(n&s|n&o|s&o)-1894007588;else f+=(n^s^o)-899497514;u=o;o=s;s=n<<30|n>>>2;n=i;i=f;}r[0]=r[0]+i|0;r[1]=r[1]+n|0;r[2]=r[2]+s|0;r[3]=r[3]+o|0;r[4]=r[4]+u|0;},_doFinalize:function(){var t=this._data;var e=t.words;var r=8*this._nDataBytes;var i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32;e[(i+64>>>9<<4)+14]=Math.floor(r/4294967296);e[(i+64>>>9<<4)+15]=r;t.sigBytes=4*e.length;this._process();return this._hash},clone:function(){var t=n.clone.call(this);t._hash=this._hash.clone();return t}});e.SHA1=n._createHelper(o);e.HmacSHA1=n._createHmacHelper(o);})();return t.SHA1}));},7792:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(2153));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=e.algo;var s=n.SHA256;var a=n.SHA224=s.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]);},_doFinalize:function(){var t=s._doFinalize.call(this);t.sigBytes-=4;return t}});e.SHA224=s._createHelper(a);e.HmacSHA224=s._createHmacHelper(a);})();return t.SHA224}));},2153:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.WordArray;var s=i.Hasher;var a=r.algo;var o=[];var u=[];(function(){function t(t){var r=e.sqrt(t);for(var i=2;i<=r;i++)if(!(t%i))return false;return true}function r(t){return 4294967296*(t-(0|t))|0}var i=2;var n=0;while(n<64){if(t(i)){if(n<8)o[n]=r(e.pow(i,1/2));u[n]=r(e.pow(i,1/3));n++;}i++;}})();var c=[];var l=a.SHA256=s.extend({_doReset:function(){this._hash=new n.init(o.slice(0));},_doProcessBlock:function(t,e){var r=this._hash.words;var i=r[0];var n=r[1];var s=r[2];var a=r[3];var o=r[4];var l=r[5];var f=r[6];var h=r[7];for(var d=0;d<64;d++){if(d<16)c[d]=0|t[e+d];else {var p=c[d-15];var v=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3;var g=c[d-2];var y=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[d]=v+c[d-7]+y+c[d-16];}var m=o&l^~o&f;var w=i&n^i&s^n&s;var S=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22);var _=(o<<26|o>>>6)^(o<<21|o>>>11)^(o<<7|o>>>25);var b=h+_+m+u[d]+c[d];var E=S+w;h=f;f=l;l=o;o=a+b|0;a=s;s=n;n=i;i=b+E|0;}r[0]=r[0]+i|0;r[1]=r[1]+n|0;r[2]=r[2]+s|0;r[3]=r[3]+a|0;r[4]=r[4]+o|0;r[5]=r[5]+l|0;r[6]=r[6]+f|0;r[7]=r[7]+h|0;},_doFinalize:function(){var t=this._data;var r=t.words;var i=8*this._nDataBytes;var n=8*t.sigBytes;r[n>>>5]|=128<<24-n%32;r[(n+64>>>9<<4)+14]=e.floor(i/4294967296);r[(n+64>>>9<<4)+15]=i;t.sigBytes=4*r.length;this._process();return this._hash},clone:function(){var t=s.clone.call(this);t._hash=this._hash.clone();return t}});r.SHA256=s._createHelper(l);r.HmacSHA256=s._createHmacHelper(l);})(Math);return t.SHA256}));},3327:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(4938));})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.WordArray;var s=i.Hasher;var a=r.x64;var o=a.Word;var u=r.algo;var c=[];var l=[];var f=[];(function(){var t=1,e=0;for(var r=0;r<24;r++){c[t+5*e]=(r+1)*(r+2)/2%64;var i=e%5;var n=(2*t+3*e)%5;t=i;e=n;}for(var t=0;t<5;t++)for(var e=0;e<5;e++)l[t+5*e]=e+(2*t+3*e)%5*5;var s=1;for(var a=0;a<24;a++){var u=0;var h=0;for(var d=0;d<7;d++){if(1&s){var p=(1<<d)-1;if(p<32)h^=1<<p;else u^=1<<p-32;}if(128&s)s=s<<1^113;else s<<=1;}f[a]=o.create(u,h);}})();var h=[];(function(){for(var t=0;t<25;t++)h[t]=o.create();})();var d=u.SHA3=s.extend({cfg:s.cfg.extend({outputLength:512}),_doReset:function(){var t=this._state=[];for(var e=0;e<25;e++)t[e]=new o.init;this.blockSize=(1600-2*this.cfg.outputLength)/32;},_doProcessBlock:function(t,e){var r=this._state;var i=this.blockSize/2;for(var n=0;n<i;n++){var s=t[e+2*n];var a=t[e+2*n+1];s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8);a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);var o=r[n];o.high^=a;o.low^=s;}for(var u=0;u<24;u++){for(var d=0;d<5;d++){var p=0,v=0;for(var g=0;g<5;g++){var o=r[d+5*g];p^=o.high;v^=o.low;}var y=h[d];y.high=p;y.low=v;}for(var d=0;d<5;d++){var m=h[(d+4)%5];var w=h[(d+1)%5];var S=w.high;var _=w.low;var p=m.high^(S<<1|_>>>31);var v=m.low^(_<<1|S>>>31);for(var g=0;g<5;g++){var o=r[d+5*g];o.high^=p;o.low^=v;}}for(var b=1;b<25;b++){var p;var v;var o=r[b];var E=o.high;var D=o.low;var M=c[b];if(M<32){p=E<<M|D>>>32-M;v=D<<M|E>>>32-M;}else {p=D<<M-32|E>>>64-M;v=E<<M-32|D>>>64-M;}var T=h[l[b]];T.high=p;T.low=v;}var I=h[0];var A=r[0];I.high=A.high;I.low=A.low;for(var d=0;d<5;d++)for(var g=0;g<5;g++){var b=d+5*g;var o=r[b];var x=h[b];var R=h[(d+1)%5+5*g];var B=h[(d+2)%5+5*g];o.high=x.high^~R.high&B.high;o.low=x.low^~R.low&B.low;}var o=r[0];var O=f[u];o.high^=O.high;o.low^=O.low;}},_doFinalize:function(){var t=this._data;var r=t.words;8*this._nDataBytes;var s=8*t.sigBytes;var a=32*this.blockSize;r[s>>>5]|=1<<24-s%32;r[(e.ceil((s+1)/a)*a>>>5)-1]|=128;t.sigBytes=4*r.length;this._process();var o=this._state;var u=this.cfg.outputLength/8;var c=u/8;var l=[];for(var f=0;f<c;f++){var h=o[f];var d=h.high;var p=h.low;d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8);p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8);l.push(p);l.push(d);}return new n.init(l,u)},clone:function(){var t=s.clone.call(this);var e=t._state=this._state.slice(0);for(var r=0;r<25;r++)e[r]=e[r].clone();return t}});r.SHA3=s._createHelper(d);r.HmacSHA3=s._createHmacHelper(d);})(Math);return t.SHA3}));},7460:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(4938),r(34));})(this,(function(t){(function(){var e=t;var r=e.x64;var i=r.Word;var n=r.WordArray;var s=e.algo;var a=s.SHA512;var o=s.SHA384=a.extend({_doReset:function(){this._hash=new n.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)]);},_doFinalize:function(){var t=a._doFinalize.call(this);t.sigBytes-=16;return t}});e.SHA384=a._createHelper(o);e.HmacSHA384=a._createHmacHelper(o);})();return t.SHA384}));},34:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(4938));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.Hasher;var n=e.x64;var s=n.Word;var a=n.WordArray;var o=e.algo;function u(){return s.create.apply(s,arguments)}var c=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)];var l=[];(function(){for(var t=0;t<80;t++)l[t]=u();})();var f=o.SHA512=i.extend({_doReset:function(){this._hash=new a.init([new s.init(1779033703,4089235720),new s.init(3144134277,2227873595),new s.init(1013904242,4271175723),new s.init(2773480762,1595750129),new s.init(1359893119,2917565137),new s.init(2600822924,725511199),new s.init(528734635,4215389547),new s.init(1541459225,327033209)]);},_doProcessBlock:function(t,e){var r=this._hash.words;var i=r[0];var n=r[1];var s=r[2];var a=r[3];var o=r[4];var u=r[5];var f=r[6];var h=r[7];var d=i.high;var p=i.low;var v=n.high;var g=n.low;var y=s.high;var m=s.low;var w=a.high;var S=a.low;var _=o.high;var b=o.low;var E=u.high;var D=u.low;var M=f.high;var T=f.low;var I=h.high;var A=h.low;var x=d;var R=p;var B=v;var O=g;var k=y;var C=m;var N=w;var P=S;var V=_;var L=b;var H=E;var K=D;var U=M;var j=T;var q=I;var F=A;for(var z=0;z<80;z++){var G;var Y;var W=l[z];if(z<16){Y=W.high=0|t[e+2*z];G=W.low=0|t[e+2*z+1];}else {var J=l[z-15];var Z=J.high;var $=J.low;var X=(Z>>>1|$<<31)^(Z>>>8|$<<24)^Z>>>7;var Q=($>>>1|Z<<31)^($>>>8|Z<<24)^($>>>7|Z<<25);var tt=l[z-2];var et=tt.high;var rt=tt.low;var it=(et>>>19|rt<<13)^(et<<3|rt>>>29)^et>>>6;var nt=(rt>>>19|et<<13)^(rt<<3|et>>>29)^(rt>>>6|et<<26);var st=l[z-7];var at=st.high;var ot=st.low;var ut=l[z-16];var ct=ut.high;var lt=ut.low;G=Q+ot;Y=X+at+(G>>>0<Q>>>0?1:0);G+=nt;Y=Y+it+(G>>>0<nt>>>0?1:0);G+=lt;Y=Y+ct+(G>>>0<lt>>>0?1:0);W.high=Y;W.low=G;}var ft=V&H^~V&U;var ht=L&K^~L&j;var dt=x&B^x&k^B&k;var pt=R&O^R&C^O&C;var vt=(x>>>28|R<<4)^(x<<30|R>>>2)^(x<<25|R>>>7);var gt=(R>>>28|x<<4)^(R<<30|x>>>2)^(R<<25|x>>>7);var yt=(V>>>14|L<<18)^(V>>>18|L<<14)^(V<<23|L>>>9);var mt=(L>>>14|V<<18)^(L>>>18|V<<14)^(L<<23|V>>>9);var wt=c[z];var St=wt.high;var _t=wt.low;var bt=F+mt;var Et=q+yt+(bt>>>0<F>>>0?1:0);var bt=bt+ht;var Et=Et+ft+(bt>>>0<ht>>>0?1:0);var bt=bt+_t;var Et=Et+St+(bt>>>0<_t>>>0?1:0);var bt=bt+G;var Et=Et+Y+(bt>>>0<G>>>0?1:0);var Dt=gt+pt;var Mt=vt+dt+(Dt>>>0<gt>>>0?1:0);q=U;F=j;U=H;j=K;H=V;K=L;L=P+bt|0;V=N+Et+(L>>>0<P>>>0?1:0)|0;N=k;P=C;k=B;C=O;B=x;O=R;R=bt+Dt|0;x=Et+Mt+(R>>>0<bt>>>0?1:0)|0;}p=i.low=p+R;i.high=d+x+(p>>>0<R>>>0?1:0);g=n.low=g+O;n.high=v+B+(g>>>0<O>>>0?1:0);m=s.low=m+C;s.high=y+k+(m>>>0<C>>>0?1:0);S=a.low=S+P;a.high=w+N+(S>>>0<P>>>0?1:0);b=o.low=b+L;o.high=_+V+(b>>>0<L>>>0?1:0);D=u.low=D+K;u.high=E+H+(D>>>0<K>>>0?1:0);T=f.low=T+j;f.high=M+U+(T>>>0<j>>>0?1:0);A=h.low=A+F;h.high=I+q+(A>>>0<F>>>0?1:0);},_doFinalize:function(){var t=this._data;var e=t.words;var r=8*this._nDataBytes;var i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32;e[(i+128>>>10<<5)+30]=Math.floor(r/4294967296);e[(i+128>>>10<<5)+31]=r;t.sigBytes=4*e.length;this._process();var n=this._hash.toX32();return n},clone:function(){var t=i.clone.call(this);t._hash=this._hash.clone();return t},blockSize:1024/32});e.SHA512=i._createHelper(f);e.HmacSHA512=i._createHmacHelper(f);})();return t.SHA512}));},4253:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(8269),r(8214),r(888),r(5109));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=r.BlockCipher;var s=e.algo;var a=[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];var o=[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];var u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28];var c=[{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}];var l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679];var f=s.DES=n.extend({_doReset:function(){var t=this._key;var e=t.words;var r=[];for(var i=0;i<56;i++){var n=a[i]-1;r[i]=e[n>>>5]>>>31-n%32&1;}var s=this._subKeys=[];for(var c=0;c<16;c++){var l=s[c]=[];var f=u[c];for(var i=0;i<24;i++){l[i/6|0]|=r[(o[i]-1+f)%28]<<31-i%6;l[4+(i/6|0)]|=r[28+(o[i+24]-1+f)%28]<<31-i%6;}l[0]=l[0]<<1|l[0]>>>31;for(var i=1;i<7;i++)l[i]=l[i]>>>4*(i-1)+3;l[7]=l[7]<<5|l[7]>>>27;}var h=this._invSubKeys=[];for(var i=0;i<16;i++)h[i]=s[15-i];},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys);},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys);},_doCryptBlock:function(t,e,r){this._lBlock=t[e];this._rBlock=t[e+1];h.call(this,4,252645135);h.call(this,16,65535);d.call(this,2,858993459);d.call(this,8,16711935);h.call(this,1,1431655765);for(var i=0;i<16;i++){var n=r[i];var s=this._lBlock;var a=this._rBlock;var o=0;for(var u=0;u<8;u++)o|=c[u][((a^n[u])&l[u])>>>0];this._lBlock=a;this._rBlock=s^o;}var f=this._lBlock;this._lBlock=this._rBlock;this._rBlock=f;h.call(this,1,1431655765);d.call(this,8,16711935);d.call(this,2,858993459);h.call(this,16,65535);h.call(this,4,252645135);t[e]=this._lBlock;t[e+1]=this._rBlock;},keySize:64/32,ivSize:64/32,blockSize:64/32});function h(t,e){var r=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=r;this._lBlock^=r<<t;}function d(t,e){var r=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=r;this._rBlock^=r<<t;}e.DES=n._createHelper(f);var p=s.TripleDES=n.extend({_doReset:function(){var t=this._key;var e=t.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var r=e.slice(0,2);var n=e.length<4?e.slice(0,2):e.slice(2,4);var s=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=f.createEncryptor(i.create(r));this._des2=f.createEncryptor(i.create(n));this._des3=f.createEncryptor(i.create(s));},encryptBlock:function(t,e){this._des1.encryptBlock(t,e);this._des2.decryptBlock(t,e);this._des3.encryptBlock(t,e);},decryptBlock:function(t,e){this._des3.decryptBlock(t,e);this._des2.encryptBlock(t,e);this._des1.decryptBlock(t,e);},keySize:192/32,ivSize:64/32,blockSize:64/32});e.TripleDES=n._createHelper(p);})();return t.TripleDES}));},4938:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.Base;var s=i.WordArray;var a=r.x64={};a.Word=n.extend({init:function(t,e){this.high=t;this.low=e;}});a.WordArray=n.extend({init:function(t,r){t=this.words=t||[];if(r!=e)this.sigBytes=r;else this.sigBytes=8*t.length;},toX32:function(){var t=this.words;var e=t.length;var r=[];for(var i=0;i<e;i++){var n=t[i];r.push(n.high);r.push(n.low);}return s.create(r,this.sigBytes)},clone:function(){var t=n.clone.call(this);var e=t.words=this.words.slice(0);var r=e.length;for(var i=0;i<r;i++)e[i]=e[i].clone();return t}});})();return t}));},3118:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});e.ErrorCode=void 0;(function(t){t[t["SUCCESS"]=0]="SUCCESS";t[t["CLIENT_ID_NOT_FOUND"]=1]="CLIENT_ID_NOT_FOUND";t[t["OPERATION_TOO_OFTEN"]=2]="OPERATION_TOO_OFTEN";t[t["REPEAT_MESSAGE"]=3]="REPEAT_MESSAGE";t[t["TIME_OUT"]=4]="TIME_OUT";})(e.ErrorCode||(e.ErrorCode={}));},5987:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};const n=i(r(127));const s=i(r(1901));const a=i(r(1754));const o=i(r(1237));var u;(function(t){function e(t){o.default.debugMode=t;o.default.info(`setDebugMode: ${t}`);}t.setDebugMode=e;function r(t){try{s.default.init(t);}catch(t){o.default.error(`init error`,t);}}t.init=r;function i(t){try{if(!t.url)throw new Error("invalid url");if(!t.key||!t.keyId)throw new Error("invalid key or keyId");a.default.socketUrl=t.url;a.default.publicKeyId=t.keyId;a.default.publicKey=t.key;}catch(t){o.default.error(`setSocketServer error`,t);}}t.setSocketServer=i;function u(t){try{s.default.enableSocket(t);}catch(t){o.default.error(`enableSocket error`,t);}}t.enableSocket=u;function c(){return n.default.SDK_VERSION}t.getVersion=c;})(u||(u={}));t.exports=u;},2852:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(4806));const s=i(r(3396));const a=i(r(6565));const o=i(r(5912));const u=i(r(3174));const c=i(r(4698));const l=i(r(87));const f=i(r(523));const h=i(r(7252));const d=i(r(4668));const p=i(r(3072));const v=i(r(1996));const g=i(r(9342));const y=i(r(155));const m=i(r(3751));var w;(function(t){let e;let r;let i;function w(){if("undefined"!=typeof uni){e=new d.default;r=new p.default;i=new v.default;}else if("undefined"!=typeof tt){e=new l.default;r=new f.default;i=new h.default;}else if("undefined"!=typeof my){e=new n.default;r=new s.default;i=new a.default;}else if("undefined"!=typeof wx){e=new g.default;r=new y.default;i=new m.default;}else if("undefined"!=typeof window){e=new o.default;r=new u.default;i=new c.default;}}function S(){if(!e)w();return e}t.getDevice=S;function _(){if(!r)w();return r}t.getStorage=_;function b(){if(!i)w();return i}t.getWebSocket=b;})(w||(w={}));e["default"]=w;},7406:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(2852));var s;(function(t){function e(){return n.default.getDevice().os()}t.os=e;function r(){return n.default.getDevice().osVersion()}t.osVersion=r;function i(){return n.default.getDevice().model()}t.model=i;function s(){return n.default.getDevice().brand()}t.brand=s;function a(){return n.default.getDevice().platform()}t.platform=a;function o(){return n.default.getDevice().platformVersion()}t.platformVersion=o;function u(){return n.default.getDevice().platformId()}t.platformId=u;function c(){return n.default.getDevice().language()}t.language=c;function l(){let t=n.default.getDevice().userAgent;if(t)return t();return ""}t.userAgent=l;function f(t){n.default.getDevice().getNetworkType(t);}t.getNetworkType=f;function h(t){n.default.getDevice().onNetworkStatusChange(t);}t.onNetworkStatusChange=h;})(s||(s={}));e["default"]=s;},7071:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(1754));const s=i(r(358));const a=i(r(1236));const o=r(53);const u=i(r(1571));const c=i(r(1237));const l=i(r(2852));const f=i(r(9934));var h;(function(t){let e;let r=false;let i=false;t.allowReconnect=true;function h(){return r&&i}t.isAvailable=h;function d(e){if(!t.allowReconnect)return;setTimeout((function(){p();}),e);}t.reconnect=d;function p(){t.allowReconnect=true;if(!n.default.networkConnected){c.default.info(`connect failed, network is not available`);return}if(i||r)return;let s=n.default.socketUrl;try{let t=f.default.getSync(f.default.KEY_REDIRECT_SERVER,"");if(t){let e=o.RedirectServerData.parse(t);let r=e.addressList[0].split(",");let i=r[0];let n=Number(r[1]);let a=(new Date).getTime();if(a-e.time<1e3*n)s=i;}}catch(t){}e=l.default.getWebSocket().connect({url:s,success:function(){i=true;v();},fail:function(){i=false;m();}});e.onOpen(w);e.onClose(b);e.onError(_);e.onMessage(S);}t.connect=p;function v(){if(i&&r){s.default.create().send();u.default.getInstance().start();}}function g(t){e?.close({reason:t,success:function(t){},fail:function(t){m();}});}t.close=g;function y(t){if(r&&r)e?.send({data:t,success:function(t){},fail:function(t){}});else throw new Error(`socket not connect`)}t.send=y;function m(t){i=false;r=false;u.default.getInstance().cancel();if(n.default.online){n.default.online=false;n.default.onlineState?.call(n.default.onlineState,{online:n.default.online});}if(n.default.online){n.default.online=false;n.default.onlineState?.call(n.default.onlineState,{online:n.default.online});}d(1e3);}let w=function(t){r=true;v();};let S=function(t){try{t.data;u.default.getInstance().refresh();a.default.receiveMessage(t.data);}catch(t){}};let _=function(t){g(`socket error`);};let b=function(t){m();};})(h||(h={}));e["default"]=h;},9934:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(2852));var s;(function(t){t.KEY_APPID="getui_appid";t.KEY_CID="getui_cid";t.KEY_SESSION="getui_session";t.KEY_REGID="getui_regid";t.KEY_SOCKET_URL="getui_socket_url";t.KEY_DEVICE_ID="getui_deviceid";t.KEY_ADD_PHONE_INFO_TIME="getui_api_time";t.KEY_BIND_ALIAS_TIME="getui_ba_time";t.KEY_SET_TAG_TIME="getui_st_time";t.KEY_REDIRECT_SERVER="getui_redirect_server";function e(t){n.default.getStorage().set(t);}t.set=e;function r(t,e){n.default.getStorage().setSync(t,e);}t.setSync=r;function i(t){n.default.getStorage().get(t);}t.get=i;function s(t,e){let r=n.default.getStorage().getSync(t);return r?r:e}t.getSync=s;})(s||(s={}));e["default"]=s;},4806:t=>{class e{constructor(){this.systemInfo=my.getSystemInfoSync();}os(){return this.systemInfo?.platform}osVersion(){return this.systemInfo?.system}model(){return this.systemInfo?.model}brand(){return this.systemInfo?.brand}platform(){return "MP-ALIPAY"}platformVersion(){return this.systemInfo.app+" "+this.systemInfo.version}platformId(){return my.getAppIdSync()}language(){return this.systemInfo?.language}getNetworkType(t){my.getNetworkType({success:e=>{t.success?.call(t.success,{networkType:e.networkType});},fail:()=>{t.fail?.call(t.fail,"");}});}onNetworkStatusChange(t){my.onNetworkStatusChange(t);}}t.exports=e;},3396:t=>{class e{set(t){my.setStorage({key:t.key,data:t.data,success:t.success,fail:t.fail});}setSync(t,e){my.setStorageSync({key:t,data:e});}get(t){my.getStorage({key:t.key,success:t.success,fail:t.fail,complete:t.complete});}getSync(t){return my.getStorageSync({key:t}).data}}t.exports=e;},6565:t=>{class e{connect(t){my.connectSocket({url:t.url,header:t.header,method:t.method,success:t.success,fail:t.fail,complete:t.complete});return {onOpen:my.onSocketOpen,send:my.sendSocketMessage,onMessage:t=>{my.onSocketMessage.call(my.onSocketMessage,(e=>{t.call(t,{data:e?e.data:""});}));},onError:my.onSocketError,onClose:my.onSocketClose,close:my.closeSocket}}}t.exports=e;},5912:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{os(){let t=window.navigator.userAgent.toLowerCase();if(t.indexOf("android")>0||t.indexOf("adr")>0)return "android";if(!!t.match(/\(i[^;]+;( u;)? cpu.+mac os x/))return "ios";if(t.indexOf("windows")>0||t.indexOf("win32")>0||t.indexOf("win64")>0)return "windows";if(t.indexOf("macintosh")>0||t.indexOf("mac os")>0)return "mac os";if(t.indexOf("linux")>0)return "linux";if(t.indexOf("unix")>0)return "linux";return "other"}osVersion(){let t=window.navigator.userAgent.toLowerCase();let e=t.substring(t.indexOf(";")+1).trim();if(e.indexOf(";")>0)return e.substring(0,e.indexOf(";")).trim();return e.substring(0,e.indexOf(")")).trim()}model(){return ""}brand(){return ""}platform(){return "H5"}platformVersion(){return ""}platformId(){return ""}language(){return window.navigator.language}userAgent(){return window.navigator.userAgent}getNetworkType(t){t.success?.call(t.success,{networkType:window.navigator.connection.type});}onNetworkStatusChange(t){}}e["default"]=r;},3174:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{set(t){window.localStorage.setItem(t.key,t.data);t.success?.call(t.success,"");}setSync(t,e){window.localStorage.setItem(t,e);}get(t){let e=window.localStorage.getItem(t.key);t.success?.call(t.success,e);}getSync(t){return window.localStorage.getItem(t)}}e["default"]=r;},4698:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{connect(t){let e=new WebSocket(t.url);return {send:t=>{try{e.send(t.data);t.success?.call(t.success,{errMsg:""});}catch(e){t.fail?.call(t.fail,{errMsg:e+""});}},close:t=>{try{e.close(t.code,t.reason);t.success?.call(t.success,{errMsg:""});}catch(e){t.fail?.call(t.fail,{errMsg:e+""});}},onOpen:r=>{e.onopen=e=>{t.success?.call(t.success,"");r({header:""});};},onError:r=>{e.onerror=e=>{t.fail?.call(t.fail,"");r({errMsg:""});};},onMessage:t=>{e.onmessage=e=>{t({data:e.data});};},onClose:t=>{e.onclose=e=>{t(e);};}}}}e["default"]=r;},87:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{constructor(){this.systemInfo=tt.getSystemInfoSync();}os(){return this.systemInfo.platform}osVersion(){return this.systemInfo.system}model(){return this.systemInfo.model}brand(){return this.systemInfo.brand}platform(){return "MP-TOUTIAO"}platformVersion(){return this.systemInfo.appName+" "+this.systemInfo.version}language(){return ""}platformId(){return ""}getNetworkType(t){tt.getNetworkType(t);}onNetworkStatusChange(t){tt.onNetworkStatusChange(t);}}e["default"]=r;},523:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{set(t){tt.setStorage(t);}setSync(t,e){tt.setStorageSync(t,e);}get(t){tt.getStorage(t);}getSync(t){return tt.getStorageSync(t)}}e["default"]=r;},7252:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{connect(t){let e=tt.connectSocket({url:t.url,header:t.header,protocols:t.protocols,success:t.success,fail:t.fail,complete:t.complete});return {onOpen:e.onOpen,send:e.send,onMessage:e.onMessage,onError:e.onError,onClose:e.onClose,close:e.close}}}e["default"]=r;},4668:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{constructor(){try{this.systemInfo=uni.getSystemInfoSync();this.accountInfo=uni.getAccountInfoSync();}catch(t){}}os(){return this.systemInfo?this.systemInfo.platform:""}model(){return this.systemInfo?this.systemInfo.model:""}brand(){return this.systemInfo?.brand?this.systemInfo.brand:""}osVersion(){return this.systemInfo?this.systemInfo.system:""}platform(){let t="";
14
- // #ifdef APP-PLUS
15
- t="APP-PLUS";
16
- // #endif
17
- // #ifdef APP-PLUS-NVUE
18
- t="APP-PLUS-NVUE";
19
- // #endif
20
- // #ifdef APP-NVUE
21
- t="APP-NVUE";
22
- // #endif
23
- // #ifdef H5
24
- t="H5";
25
- // #endif
26
- // #ifdef MP-WEIXIN
27
- t="MP-WEIXIN";
28
- // #endif
29
- // #ifdef MP-ALIPAY
30
- t="MP-ALIPAY";
31
- // #endif
32
- // #ifdef MP-BAIDU
33
- t="MP-BAIDU";
34
- // #endif
35
- // #ifdef MP-TOUTIAO
36
- t="MP-TOUTIAO";
37
- // #endif
38
- // #ifdef MP-LARK
39
- t="MP-LARK";
40
- // #endif
41
- // #ifdef MP-QQ
42
- t="MP-QQ";
43
- // #endif
44
- // #ifdef MP-KUAISHOU
45
- t="MP-KUAISHOU";
46
- // #endif
47
- // #ifdef MP-360
48
- t="MP-360";
49
- // #endif
50
- // #ifdef QUICKAPP-WEBVIEW
51
- t="QUICKAPP-WEBVIEW";
52
- // #endif
53
- // #ifdef QUICKAPP-WEBVIEW-UNION
54
- t="QUICKAPP-WEBVIEW-UNION";
55
- // #endif
56
- return t}platformVersion(){return this.systemInfo?this.systemInfo.version:""}platformId(){return this.accountInfo?this.accountInfo.miniProgram.appId:""}language(){return this.systemInfo?.language?this.systemInfo.language:""}userAgent(){return window?window.navigator.userAgent:""}getNetworkType(t){uni.getNetworkType(t);}onNetworkStatusChange(t){uni.onNetworkStatusChange(t);}}e["default"]=r;},3072:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{set(t){uni.setStorage(t);}setSync(t,e){uni.setStorageSync(t,e);}get(t){uni.getStorage(t);}getSync(t){return uni.getStorageSync(t)}}e["default"]=r;},1996:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{connect(t){let e=uni.connectSocket(t);return {send:t=>{
57
- // #ifdef MP-ALIPAY
58
- uni.sendSocketMessage(t);
59
- // #endif
60
- // #ifndef MP-ALIPAY
61
- e?.send(t);
62
- // #endif
63
- },close:t=>{
64
- // #ifdef MP-ALIPAY
65
- uni.closeSocket(t);
66
- // #endif
67
- // #ifndef MP-ALIPAY
68
- e?.close(t);
69
- // #endif
70
- },onOpen:t=>{
71
- // #ifdef MP-ALIPAY
72
- uni.onSocketOpen(t);
73
- // #endif
74
- // #ifndef MP-ALIPAY
75
- e?.onOpen(t);
76
- // #endif
77
- },onError:t=>{
78
- // #ifdef MP-ALIPAY
79
- uni.onSocketError(t);
80
- // #endif
81
- // #ifndef MP-ALIPAY
82
- e?.onError(t);
83
- // #endif
84
- },onMessage:t=>{
85
- // #ifdef MP-ALIPAY
86
- uni.onSocketMessage(t);
87
- // #endif
88
- // #ifndef MP-ALIPAY
89
- e?.onMessage(t);
90
- // #endif
91
- },onClose:t=>{
92
- // #ifdef MP-ALIPAY
93
- uni.onSocketClose(t);
94
- // #endif
95
- // #ifndef MP-ALIPAY
96
- e?.onClose(t);
97
- // #endif
98
- }}}}e["default"]=r;},9342:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{constructor(){this.systemInfo=wx.getSystemInfoSync();}os(){return this.systemInfo.platform}osVersion(){return this.systemInfo.system}model(){return this.systemInfo.model}brand(){return this.systemInfo.brand}platform(){return "MP-WEIXIN"}platformVersion(){return this.systemInfo.version}language(){return this.systemInfo.language}platformId(){if(wx.canIUse("getAccountInfoSync"))return wx.getAccountInfoSync().miniProgram.appId;return ""}getNetworkType(t){wx.getNetworkType({success:e=>{t.success?.call(t.success,{networkType:e.networkType});},fail:t.fail});}onNetworkStatusChange(t){wx.onNetworkStatusChange(t);}}e["default"]=r;},155:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{set(t){wx.setStorage(t);}setSync(t,e){wx.setStorageSync(t,e);}get(t){wx.getStorage(t);}getSync(t){return wx.getStorageSync(t)}}e["default"]=r;},3751:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{connect(t){let e=wx.connectSocket({url:t.url,header:t.header,protocols:t.protocols,success:t.success,fail:t.fail,complete:t.complete});return {onOpen:e.onOpen,send:e.send,onMessage:e.onMessage,onError:e.onError,onClose:e.onClose,close:e.close}}}e["default"]=r;},127:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});var r;(function(t){t.SDK_VERSION="GTMP-2.0.1.dcloud";t.DEFAULT_SOCKET_URL="wss://wshz.getui.net:5223/nws";t.SOCKET_PROTOCOL_VERSION="1.0";t.SERVER_PUBLIC_KEY="MHwwDQYJKoZIhvcNAQEBBQADawAwaAJhAJp1rROuvBF7sBSnvLaesj2iFhMcY8aXyLvpnNLKs2wjL3JmEnyr++SlVa35liUlzi83tnAFkn3A9GB7pHBNzawyUkBh8WUhq5bnFIkk2RaDa6+5MpG84DEv52p7RR+aWwIDAQAB";t.SERVER_PUBLIC_KEY_ID="69d747c4b9f641baf4004be4297e9f3b";})(r||(r={}));e["default"]=r;},1901:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(7071));const s=i(r(1237));const a=i(r(1754));class o{static init(t){if(this.inited)return;try{this.checkAppid(t.appid);this.inited=true;s.default.info(`init: appid=${t.appid}`);a.default.init(t);n.default.connect();}catch(e){this.inited=false;t.onError?.call(t.onError,{error:e});throw e}}static enableSocket(t){this.checkInit();n.default.allowReconnect=t;if(t)n.default.reconnect(0);else n.default.close(`enableSocket ${t}`);}static checkInit(){if(!this.inited)throw new Error(`not init, please invoke init method firstly`)}static checkAppid(t){if(null==t||void 0==t||""==t.trim())throw new Error(`invalid appid ${t}`)}}o.inited=false;e["default"]=o;},1754:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(323));const s=i(r(9934));const a=i(r(127));const o=i(r(7071));const u=i(r(1237));const c=i(r(5574));const l=i(r(7406));class f{static init(t){this.appid=c.default.to_getui(t.appid);u.default.info(`getui appid: ${this.appid}`);this.onError=t.onError;this.onClientId=t.onClientId;this.onlineState=t.onlineState;this.onPushMsg=t.onPushMsg;if(this.appid!=s.default.getSync(s.default.KEY_APPID,this.appid)){u.default.info("appid changed, clear session and cid");s.default.setSync(s.default.KEY_CID,"");s.default.setSync(s.default.KEY_SESSION,"");}s.default.setSync(s.default.KEY_APPID,this.appid);this.cid=s.default.getSync(s.default.KEY_CID,this.cid);if(this.cid)this.onClientId?.call(this.onClientId,{cid:f.cid});this.session=s.default.getSync(s.default.KEY_SESSION,this.session);this.deviceId=s.default.getSync(s.default.KEY_DEVICE_ID,this.deviceId);this.regId=s.default.getSync(s.default.KEY_REGID,this.regId);if(!this.regId){this.regId=this.createRegId();s.default.set({key:s.default.KEY_REGID,data:this.regId});}this.socketUrl=s.default.getSync(s.default.KEY_SOCKET_URL,this.socketUrl);let e=this;l.default.getNetworkType({success:t=>{e.networkType=t.networkType;e.networkConnected="none"!=e.networkType&&""!=e.networkType;}});l.default.onNetworkStatusChange((t=>{e.networkConnected=t.isConnected;e.networkType=t.networkType;if(e.networkConnected)o.default.reconnect(0);}));}static createRegId(){return `M-V${n.default.md5Hex(this.getUuid())}-${(new Date).getTime()}`}static getUuid(){return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){let e=16*Math.random()|0,r="x"===t?e:3&e|8;return r.toString(16)}))}}f.appid="";f.cid="";f.regId="";f.session="";f.deviceId="";f.packetId=1;f.online=false;f.socketUrl=a.default.DEFAULT_SOCKET_URL;f.publicKeyId=a.default.SERVER_PUBLIC_KEY_ID;f.publicKey=a.default.SERVER_PUBLIC_KEY;f.lastAliasTime=0;f.networkConnected=true;f.networkType="none";e["default"]=f;},9214:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};var n,s;Object.defineProperty(e,"__esModule",{value:true});const a=i(r(9800));const o=r(3118);const u=i(r(1754));class c extends a.default{constructor(){super(...arguments);this.actionMsgData=new l;}static initActionMsg(t,...e){super.initMsg(t);t.command=a.default.Command.CLIENT_MSG;t.data=t.actionMsgData=l.create();return t}static parseActionMsg(t,e){super.parseMsg(t,e);t.actionMsgData=l.parse(t.data);return t}send(){setTimeout((()=>{if(c.waitingLoginMsgMap.has(this.actionMsgData.msgId)||c.waitingResponseMsgMap.has(this.actionMsgData.msgId)){c.waitingLoginMsgMap.delete(this.actionMsgData.msgId);c.waitingResponseMsgMap.delete(this.actionMsgData.msgId);this.callback?.call(this.callback,{resultCode:o.ErrorCode.TIME_OUT,message:"waiting time out"});}}),1e4);if(!u.default.online){c.waitingLoginMsgMap.set(this.actionMsgData.msgId,this);return}if(this.actionMsgData.msgAction!=c.ClientAction.RECEIVED)c.waitingResponseMsgMap.set(this.actionMsgData.msgId,this);super.send();}receive(){}static sendWaitingMessages(){let t=this.waitingLoginMsgMap.keys();let e;while(e=t.next(),!e.done){let t=this.waitingLoginMsgMap.get(e.value);this.waitingLoginMsgMap.delete(e.value);t?.send();}}static getWaitingResponseMessage(t){return c.waitingResponseMsgMap.get(t)}static removeWaitingResponseMessage(t){let e=c.waitingResponseMsgMap.get(t);if(e)c.waitingResponseMsgMap.delete(t);return e}}c.ServerAction=(n=class{},n.PUSH_MESSAGE="pushmessage",n.REDIRECT_SERVER="redirect_server",n.ADD_PHONE_INFO_RESULT="addphoneinfo",n.SET_MODE_RESULT="set_mode_result",n.SET_TAG_RESULT="settag_result",n.BIND_ALIAS_RESULT="response_bind",n.UNBIND_ALIAS_RESULT="response_unbind",n.FEED_BACK_RESULT="pushmessage_feedback",n.RECEIVED="received",n);c.ClientAction=(s=class{},s.ADD_PHONE_INFO="addphoneinfo",s.SET_MODE="set_mode",s.FEED_BACK="pushmessage_feedback",s.SET_TAGS="set_tag",s.BIND_ALIAS="bind_alias",s.UNBIND_ALIAS="unbind_alias",s.RECEIVED="received",s);c.waitingLoginMsgMap=new Map;c.waitingResponseMsgMap=new Map;class l{constructor(){this.appId="";this.cid="";this.msgId="";this.msgAction="";this.msgData="";this.msgExtraData="";}static create(){let t=new l;t.appId=u.default.appid;t.cid=u.default.cid;t.msgId=(2147483647&(new Date).getTime()).toString();return t}static parse(t){let e=new l;let r=JSON.parse(t);e.appId=r.appId;e.cid=r.cid;e.msgId=r.msgId;e.msgAction=r.msgAction;e.msgData=r.msgData;e.msgExtraData=r.msgExtraData;return e}}e["default"]=c;},708:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(7406));const s=i(r(9934));const a=i(r(127));const o=r(3118);const u=i(r(9214));const c=i(r(1754));class l extends u.default{constructor(){super(...arguments);this.addPhoneInfoData=new f;}static create(){let t=new l;super.initActionMsg(t);t.callback=e=>{if(e.resultCode!=o.ErrorCode.SUCCESS&&e.resultCode!=o.ErrorCode.REPEAT_MESSAGE)setTimeout((function(){t.send();}),30*1e3);else s.default.set({key:s.default.KEY_ADD_PHONE_INFO_TIME,data:(new Date).getTime()});};t.actionMsgData.msgAction=u.default.ClientAction.ADD_PHONE_INFO;t.addPhoneInfoData=f.create();t.actionMsgData.msgData=JSON.stringify(t.addPhoneInfoData);return t}send(){let t=(new Date).getTime();let e=s.default.getSync(s.default.KEY_ADD_PHONE_INFO_TIME,0);if(t-e<24*60*60*1e3)return;super.send();}}class f{constructor(){this.model="";this.brand="";this.system_version="";this.version="";this.deviceid="";this.type="";}static create(){let t=new f;t.model=n.default.model();t.brand=n.default.brand();t.system_version=n.default.osVersion();t.version=a.default.SDK_VERSION;t.device_token="";t.imei="";t.oaid="";t.mac="";t.idfa="";t.type="MINIPROGRAM";t.deviceid=`${t.type}-${c.default.deviceId}`;t.extra={os:n.default.os(),platform:n.default.platform(),platformVersion:n.default.platformVersion(),platformId:n.default.platformId(),language:n.default.language(),userAgent:n.default.userAgent()};return t}}e["default"]=l;},652:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};var n,s;Object.defineProperty(e,"__esModule",{value:true});const a=i(r(1754));const o=r(3118);const u=i(r(9214));class c extends u.default{constructor(){super(...arguments);this.feedbackData=new l;}static create(t,e){let r=new c;super.initActionMsg(r);r.callback=t=>{if(t.resultCode!=o.ErrorCode.SUCCESS&&t.resultCode!=o.ErrorCode.REPEAT_MESSAGE)setTimeout((function(){r.send();}),30*1e3);};r.feedbackData=l.create(t,e);r.actionMsgData.msgAction=u.default.ClientAction.FEED_BACK;r.actionMsgData.msgData=JSON.stringify(r.feedbackData);return r}send(){super.send();}}c.ActionId=(n=class{},n.RECEIVE="0",n.MP_RECEIVE="210000",n.WEB_RECEIVE="220000",n.BEGIN="1",n);c.RESULT=(s=class{},s.OK="ok",s);class l{constructor(){this.messageid="";this.appkey="";this.appid="";this.taskid="";this.actionid="";this.result="";this.timestamp="";}static create(t,e){let r=new l;r.messageid=t.pushMessageData.messageid;r.appkey=t.pushMessageData.appKey;r.appid=a.default.appid;r.taskid=t.pushMessageData.taskId;r.actionid=e;r.result=c.RESULT.OK;r.timestamp=(new Date).getTime().toString();return r}}e["default"]=c;},6561:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9800));class s extends n.default{static create(){let t=new s;super.initMsg(t);t.command=n.default.Command.HEART_BEAT;return t}}e["default"]=s;},358:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(323));const s=i(r(1754));const a=i(r(9800));class o extends a.default{constructor(){super(...arguments);this.keyNegotiateData=new u;}static create(){let t=new o;super.initMsg(t);t.command=a.default.Command.KEY_NEGOTIATE;n.default.resetKey();t.data=t.keyNegotiateData=u.create();return t}send(){super.send();}}class u{constructor(){this.appId="";this.rsaPublicKeyId="";this.algorithm="";this.secretKey="";this.iv="";}static create(){let t=new u;t.appId=s.default.appid;t.rsaPublicKeyId=s.default.publicKeyId;t.algorithm="AES";t.secretKey=n.default.getEncryptedSecretKey();t.iv=n.default.getEncryptedIV();return t}}e["default"]=o;},5301:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9800));const s=i(r(323));const a=i(r(2544));const o=i(r(1237));const u=i(r(1754));class c extends n.default{constructor(){super(...arguments);this.keyNegotiateResultData=new l;}static parse(t){let e=new c;super.parseMsg(e,t);e.keyNegotiateResultData=l.parse(e.data);return e}receive(){if(0!=this.keyNegotiateResultData.errorCode){o.default.error(`key negotiate fail: ${this.data}`);u.default.onError?.call(u.default.onError,{error:`key negotiate fail: ${this.data}`});return}let t=this.keyNegotiateResultData.encryptType.split("/");if(!s.default.algorithmMap.has(t[0].trim().toLowerCase())||!s.default.modeMap.has(t[1].trim().toLowerCase())||!s.default.paddingMap.has(t[2].trim().toLowerCase())){o.default.error(`key negotiate fail: ${this.data}`);u.default.onError?.call(u.default.onError,{error:`key negotiate fail: ${this.data}`});return}s.default.setEncryptParams(t[0].trim().toLowerCase(),t[1].trim().toLowerCase(),t[2].trim().toLowerCase());a.default.create().send();}}class l{constructor(){this.errorCode=-1;this.errorMsg="";this.encryptType="";}static parse(t){let e=new l;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;e.encryptType=r.encryptType;return e}}e["default"]=c;},2544:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(1754));const s=i(r(323));const a=i(r(9800));const o=i(r(3527));class u extends a.default{constructor(){super(...arguments);this.loginData=new c;}static create(){let t=new u;super.initMsg(t);t.command=a.default.Command.LOGIN;t.data=t.loginData=c.create();return t}send(){if(!this.loginData.session||n.default.cid!=s.default.md5Hex(this.loginData.session)){o.default.create().send();return}super.send();}}class c{constructor(){this.appId="";this.session="";}static create(){let t=new c;t.appId=n.default.appid;t.session=n.default.session;return t}}e["default"]=u;},8734:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9934));const s=i(r(9800));const a=i(r(1754));const o=i(r(9214));const u=i(r(708));const c=i(r(2544));class l extends s.default{constructor(){super(...arguments);this.loginResultData=new f;}static parse(t){let e=new l;super.parseMsg(e,t);e.loginResultData=f.parse(e.data);return e}receive(){if(0!=this.loginResultData.errorCode){this.data;a.default.session=a.default.cid="";n.default.setSync(n.default.KEY_CID,"");n.default.setSync(n.default.KEY_SESSION,"");c.default.create().send();return}if(!a.default.online){a.default.online=true;a.default.onlineState?.call(a.default.onlineState,{online:a.default.online});}o.default.sendWaitingMessages();u.default.create().send();}}class f{constructor(){this.errorCode=-1;this.errorMsg="";this.session="";}static parse(t){let e=new f;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;e.session=r.session;return e}}e["default"]=l;},9800:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};var n;Object.defineProperty(e,"__esModule",{value:true});const s=i(r(350));const a=i(r(7071));const o=i(r(127));const u=i(r(1754));class c{constructor(){this.version="";this.command=0;this.packetId=0;this.timeStamp=0;this.data="";this.signature="";}static initMsg(t,...e){t.version=o.default.SOCKET_PROTOCOL_VERSION;t.command=0;t.timeStamp=(new Date).getTime();return t}static parseMsg(t,e){let r=JSON.parse(e);t.version=r.version;t.command=r.command;t.packetId=r.packetId;t.timeStamp=r.timeStamp;t.data=r.data;t.signature=r.signature;return t}stringify(){return JSON.stringify(this,["version","command","packetId","timeStamp","data","signature"])}send(){if(!a.default.isAvailable())return;this.packetId=u.default.packetId++;this.data=JSON.stringify(this.data);this.stringify();if(this.command!=c.Command.HEART_BEAT){s.default.sign(this);if(this.data&&this.command!=c.Command.KEY_NEGOTIATE)s.default.encrypt(this);}a.default.send(this.stringify());}}c.Command=(n=class{},n.HEART_BEAT=0,n.KEY_NEGOTIATE=1,n.KEY_NEGOTIATE_RESULT=16,n.REGISTER=2,n.REGISTER_RESULT=32,n.LOGIN=3,n.LOGIN_RESULT=48,n.LOGOUT=4,n.LOGOUT_RESULT=64,n.CLIENT_MSG=5,n.SERVER_MSG=80,n.SERVER_CLOSE=96,n.REDIRECT_SERVER=112,n);e["default"]=c;},350:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(323));var s;(function(t){function e(t){t.data=n.default.encrypt(t.data);}t.encrypt=e;function r(t){t.data=n.default.decrypt(t.data);}t.decrypt=r;function i(t){t.signature=n.default.sha256(`${t.timeStamp}${t.packetId}${t.command}${t.data}`);}t.sign=i;function s(t){let e=n.default.sha256(`${t.timeStamp}${t.packetId}${t.command}${t.data}`);if(t.signature!=e)throw new Error(`msg signature vierfy failed`)}t.verify=s;})(s||(s={}));e["default"]=s;},1236:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(5301));const s=i(r(8734));const a=i(r(9800));const o=i(r(7078));const u=i(r(538));const c=i(r(7821));const l=i(r(217));const f=i(r(7156));const h=i(r(53));const d=i(r(9214));const p=i(r(7303));const v=i(r(6063));const g=i(r(7923));const y=i(r(350));const m=i(r(9214));const w=i(r(6254));const S=i(r(5035));class _{static receiveMessage(t){let e=a.default.parseMsg(new a.default,t);if(e.command==a.default.Command.HEART_BEAT)return;if(e.command!=a.default.Command.KEY_NEGOTIATE_RESULT&&e.command!=a.default.Command.SERVER_CLOSE&&e.command!=a.default.Command.REDIRECT_SERVER)y.default.decrypt(e);if(e.command!=a.default.Command.SERVER_CLOSE&&e.command!=a.default.Command.REDIRECT_SERVER)y.default.verify(e);switch(e.command){case a.default.Command.KEY_NEGOTIATE_RESULT:n.default.parse(e.stringify()).receive();break;case a.default.Command.REGISTER_RESULT:o.default.parse(e.stringify()).receive();break;case a.default.Command.LOGIN_RESULT:s.default.parse(e.stringify()).receive();break;case a.default.Command.SERVER_MSG:this.receiveActionMsg(e.stringify());break;case a.default.Command.SERVER_CLOSE:S.default.parse(e.stringify()).receive();break;case a.default.Command.REDIRECT_SERVER:h.default.parse(e.stringify()).receive();break;}}static receiveActionMsg(t){let e=m.default.parseActionMsg(new m.default,t);if(e.actionMsgData.msgAction!=d.default.ServerAction.RECEIVED&&e.actionMsgData.msgAction!=d.default.ServerAction.REDIRECT_SERVER){let t=JSON.parse(e.actionMsgData.msgData);w.default.create(t.id).send();}switch(e.actionMsgData.msgAction){case d.default.ServerAction.PUSH_MESSAGE:f.default.parse(t).receive();break;case d.default.ServerAction.ADD_PHONE_INFO_RESULT:u.default.parse(t).receive();break;case d.default.ServerAction.SET_MODE_RESULT:p.default.parse(t).receive();break;case d.default.ServerAction.SET_TAG_RESULT:v.default.parse(t).receive();break;case d.default.ServerAction.BIND_ALIAS_RESULT:c.default.parse(t).receive();break;case d.default.ServerAction.UNBIND_ALIAS_RESULT:g.default.parse(t).receive();break;case d.default.ServerAction.FEED_BACK_RESULT:l.default.parse(t).receive();break;case d.default.ServerAction.RECEIVED:w.default.parse(t).receive();break}}}e["default"]=_;},6254:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=r(3118);const s=i(r(1754));const a=i(r(9214));class o extends a.default{constructor(){super(...arguments);this.receivedData=new u;}static create(t){let e=new o;super.initActionMsg(e);e.callback=t=>{if(t.resultCode!=n.ErrorCode.SUCCESS&&t.resultCode!=n.ErrorCode.REPEAT_MESSAGE)setTimeout((function(){e.send();}),3*1e3);};e.actionMsgData.msgAction=a.default.ClientAction.RECEIVED;e.receivedData=u.create(t);e.actionMsgData.msgData=JSON.stringify(e.receivedData);return e}static parse(t){let e=new o;super.parseActionMsg(e,t);e.receivedData=u.parse(e.data);return e}receive(){let t=a.default.getWaitingResponseMessage(this.actionMsgData.msgId);if(t&&t.actionMsgData.msgAction==a.default.ClientAction.ADD_PHONE_INFO||t&&t.actionMsgData.msgAction==a.default.ClientAction.FEED_BACK){a.default.removeWaitingResponseMessage(t.actionMsgData.msgId);t.callback?.call(t.callback,{resultCode:n.ErrorCode.SUCCESS,message:"received"});}}send(){super.send();}}class u{constructor(){this.msgId="";this.cid="";}static create(t){let e=new u;e.cid=s.default.cid;e.msgId=t;return e}static parse(t){let e=new u;let r=JSON.parse(t);e.cid=r.cid;e.msgId=r.msgId;return e}}e["default"]=o;},53:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});e.RedirectServerData=void 0;const n=i(r(7071));const s=i(r(9934));const a=i(r(9800));class o extends a.default{constructor(){super(...arguments);this.redirectServerData=new u;}static parse(t){let e=new o;super.parseMsg(e,t);e.redirectServerData=u.parse(e.data);return e}receive(){this.redirectServerData;s.default.setSync(s.default.KEY_REDIRECT_SERVER,JSON.stringify(this.redirectServerData));n.default.close("redirect server");n.default.reconnect(this.redirectServerData.delay);}}class u{constructor(){this.addressList=[];this.delay=0;this.loc="";this.conf="";this.time=0;}static parse(t){let e=new u;let r=JSON.parse(t);e.addressList=r.addressList;e.delay=r.delay;e.loc=r.loc;e.conf=r.conf;e.time=r.time?r.time:(new Date).getTime();return e}}e.RedirectServerData=u;e["default"]=o;},3527:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(1754));const s=i(r(9800));class a extends s.default{constructor(){super(...arguments);this.registerData=new o;}static create(){let t=new a;super.initMsg(t);t.command=s.default.Command.REGISTER;t.data=t.registerData=o.create();return t}send(){super.send();}}class o{constructor(){this.appId="";this.regId="";}static create(){let t=new o;t.appId=n.default.appid;t.regId=n.default.regId;return t}}e["default"]=a;},7078:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9800));const s=i(r(9934));const a=i(r(1754));const o=i(r(2544));const u=i(r(1237));class c extends n.default{constructor(){super(...arguments);this.registerResultData=new l;}static parse(t){let e=new c;super.parseMsg(e,t);e.registerResultData=l.parse(e.data);return e}receive(){if(0!=this.registerResultData.errorCode||!this.registerResultData.cid||!this.registerResultData.session){u.default.error(`register fail: ${this.data}`);a.default.onError?.call(a.default.onError,{error:`register fail: ${this.data}`});return}if(a.default.cid!=this.registerResultData.cid)s.default.setSync(s.default.KEY_ADD_PHONE_INFO_TIME,0);a.default.cid=this.registerResultData.cid;a.default.onClientId?.call(a.default.onClientId,{cid:a.default.cid});s.default.set({key:s.default.KEY_CID,data:a.default.cid});a.default.session=this.registerResultData.session;s.default.set({key:s.default.KEY_SESSION,data:a.default.session});a.default.deviceId=this.registerResultData.deviceId;s.default.set({key:s.default.KEY_DEVICE_ID,data:a.default.deviceId});o.default.create().send();}}class l{constructor(){this.errorCode=-1;this.errorMsg="";this.cid="";this.session="";this.deviceId="";this.regId="";}static parse(t){let e=new l;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;e.cid=r.cid;e.session=r.session;e.deviceId=r.deviceId;e.regId=r.regId;return e}}e["default"]=c;},5035:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(7071));const s=i(r(9800));class a extends s.default{constructor(){super(...arguments);this.serverCloseData=new o;}static parse(t){let e=new a;super.parseMsg(e,t);e.serverCloseData=o.parse(e.data);return e}receive(){this.data;if(20==this.serverCloseData.code||23==this.serverCloseData.code||24==this.serverCloseData.code)n.default.allowReconnect=false;n.default.close();}}class o{constructor(){this.code=-1;this.msg="";}static parse(t){let e=new o;let r=JSON.parse(t);e.code=r.code;e.msg=r.msg;return e}}e["default"]=a;},538:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9934));const s=i(r(9214));class a extends s.default{constructor(){super(...arguments);this.addPhoneInfoResultData=new o;}static parse(t){let e=new a;super.parseActionMsg(e,t);e.addPhoneInfoResultData=o.parse(e.actionMsgData.msgData);return e}receive(){this.addPhoneInfoResultData;let t=s.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(t)t.callback?.call(t.callback,{resultCode:this.addPhoneInfoResultData.errorCode,message:this.addPhoneInfoResultData.errorMsg});n.default.set({key:n.default.KEY_ADD_PHONE_INFO_TIME,data:(new Date).getTime()});}}class o{constructor(){this.errorCode=-1;this.errorMsg="";}static parse(t){let e=new o;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;return e}}e["default"]=a;},7821:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9934));const s=i(r(1237));const a=i(r(9214));class o extends a.default{constructor(){super(...arguments);this.bindAliasResultData=new u;}static parse(t){let e=new o;super.parseActionMsg(e,t);e.bindAliasResultData=u.parse(e.actionMsgData.msgData);return e}receive(){s.default.info(`bind alias result`,this.bindAliasResultData);let t=a.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(t)t.callback?.call(t.callback,{resultCode:this.bindAliasResultData.errorCode,message:this.bindAliasResultData.errorMsg});n.default.set({key:n.default.KEY_BIND_ALIAS_TIME,data:(new Date).getTime()});}}class u{constructor(){this.errorCode=-1;this.errorMsg="";}static parse(t){let e=new u;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;return e}}e["default"]=o;},217:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=r(3118);const s=i(r(9214));class a extends s.default{constructor(){super(...arguments);this.feedbackResultData=new o;}static parse(t){let e=new a;super.parseActionMsg(e,t);e.feedbackResultData=o.parse(e.actionMsgData.msgData);return e}receive(){this.feedbackResultData;let t=s.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(t)t.callback?.call(t.callback,{resultCode:n.ErrorCode.SUCCESS,message:"received"});}}class o{constructor(){this.actionId="";this.taskId="";this.result="";}static parse(t){let e=new o;let r=JSON.parse(t);e.actionId=r.actionId;e.taskId=r.taskId;e.result=r.result;return e}}e["default"]=a;},7156:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};var n;Object.defineProperty(e,"__esModule",{value:true});const s=i(r(1754));const a=i(r(9214));const o=i(r(652));class u extends a.default{constructor(){super(...arguments);this.pushMessageData=new c;}static parse(t){let e=new u;super.parseActionMsg(e,t);e.pushMessageData=c.parse(e.actionMsgData.msgData);return e}receive(){this.pushMessageData;if(this.pushMessageData.appId!=s.default.appid||!this.pushMessageData.messageid||!this.pushMessageData.taskId)this.stringify();o.default.create(this,o.default.ActionId.RECEIVE).send();o.default.create(this,o.default.ActionId.MP_RECEIVE).send();if(this.actionMsgData.msgExtraData&&s.default.onPushMsg)s.default.onPushMsg?.call(s.default.onPushMsg,{message:this.actionMsgData.msgExtraData});}}class c{constructor(){this.id="";this.appKey="";this.appId="";this.messageid="";this.taskId="";this.actionChain=[];this.cdnType="";}static parse(t){let e=new c;let r=JSON.parse(t);e.id=r.id;e.appKey=r.appKey;e.appId=r.appId;e.messageid=r.messageid;e.taskId=r.taskId;e.actionChain=r.actionChain;e.cdnType=r.cdnType;return e}}(n=class{},n.GO_TO="goto",n.TRANSMIT="transmit",n);e["default"]=u;},7303:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9214));class s extends n.default{constructor(){super(...arguments);this.setModeResultData=new a;}static parse(t){let e=new s;super.parseActionMsg(e,t);e.setModeResultData=a.parse(e.actionMsgData.msgData);return e}receive(){this.setModeResultData;let t=n.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(t)t.callback?.call(t.callback,{resultCode:this.setModeResultData.errorCode,message:this.setModeResultData.errorMsg});}}class a{constructor(){this.errorCode=-1;this.errorMsg="";}static parse(t){let e=new a;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;return e}}e["default"]=s;},6063:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9934));const s=i(r(1237));const a=i(r(9214));class o extends a.default{constructor(){super(...arguments);this.setTagResultData=new u;}static parse(t){let e=new o;super.parseActionMsg(e,t);e.setTagResultData=u.parse(e.actionMsgData.msgData);return e}receive(){s.default.info(`set tag result`,this.setTagResultData);let t=a.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(t)t.callback?.call(t.callback,{resultCode:this.setTagResultData.errorCode,message:this.setTagResultData.errorMsg});n.default.set({key:n.default.KEY_SET_TAG_TIME,data:(new Date).getTime()});}}class u{constructor(){this.errorCode=0;this.errorMsg="";}static parse(t){let e=new u;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;return e}}e["default"]=o;},7923:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9934));const s=i(r(1237));const a=i(r(9214));class o extends a.default{constructor(){super(...arguments);this.unbindAliasResultData=new u;}static parse(t){let e=new o;super.parseActionMsg(e,t);e.unbindAliasResultData=u.parse(e.actionMsgData.msgData);return e}receive(){s.default.info(`unbind alias result`,this.unbindAliasResultData);let t=a.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(t)t.callback?.call(t.callback,{resultCode:this.unbindAliasResultData.errorCode,message:this.unbindAliasResultData.errorMsg});n.default.set({key:n.default.KEY_BIND_ALIAS_TIME,data:(new Date).getTime()});}}class u{constructor(){this.errorCode=-1;this.errorMsg="";}static parse(t){let e=new u;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;return e}}e["default"]=o;},9285:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{constructor(t){this.delay=10;this.delay=t;}start(){this.cancel();let t=this;this.timer=setInterval((function(){t.run();}),this.delay);}cancel(){if(this.timer)clearInterval(this.timer);}}e["default"]=r;},1571:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};var n;Object.defineProperty(e,"__esModule",{value:true});const s=i(r(6561));const a=i(r(9285));class o extends a.default{static getInstance(){return o.InstanceHolder.instance}run(){s.default.create().send();}refresh(){this.delay=60*1e3;this.start();}}o.INTERVAL=60*1e3;o.InstanceHolder=(n=class{},n.instance=new o(o.INTERVAL),n);e["default"]=o;},5574:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(4736));const s=i(r(323));var a;(function(t){let e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";let r=(0, n.default)("9223372036854775808");function i(t){let e=a(t);let r=o(e);let i=r[1];let n=r[0];return u(i)+u(n)}t.to_getui=i;function a(t){let e=s.default.md5Hex(t);let r=c(e);r[6]&=15;r[6]|=48;r[8]&=63;r[8]|=128;return r}function o(t){let e=(0, n.default)(0);let r=(0, n.default)(0);for(let r=0;r<8;r++)e=e.multiply(256).plus((0, n.default)(255&t[r]));for(let e=8;e<16;e++)r=r.multiply(256).plus((0, n.default)(255&t[e]));return [e,r]}function u(t){if(t>=r)t=r.multiply(2).minus(t);let i="";for(;t>(0, n.default)(0);t=t.divide(62))i+=e.charAt(Number(t.divmod(62).remainder));return i}function c(t){let e=t.length;if(e%2!=0)return [];let r=new Array;for(let i=0;i<e;i+=2)r.push(parseInt(t.substring(i,i+2),16));return r}})(a||(a={}));e["default"]=a;},323:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(2620));const s=i(r(1354));const a=i(r(1754));var o;(function(t){let e;let r;let i;let o;let u=new n.default;let c=s.default.mode.CBC;let l=s.default.pad.Pkcs7;let f=s.default.AES;t.algorithmMap=new Map([["aes",s.default.AES]]);t.modeMap=new Map([["cbc",s.default.mode.CBC],["cfb",s.default.mode.CFB],["cfb128",s.default.mode.CFB],["ecb",s.default.mode.ECB],["ofb",s.default.mode.OFB]]);t.paddingMap=new Map([["nopadding",s.default.pad.NoPadding],["pkcs7",s.default.pad.Pkcs7]]);function h(){e=s.default.MD5((new Date).getTime().toString());r=s.default.MD5(e);u.setPublicKey(a.default.publicKey);e.toString(s.default.enc.Hex);r.toString(s.default.enc.Hex);i=u.encrypt(e.toString(s.default.enc.Hex));o=u.encrypt(r.toString(s.default.enc.Hex));}t.resetKey=h;function d(e,r,i){f=t.algorithmMap.get(e);c=t.modeMap.get(r);l=t.paddingMap.get(i);}t.setEncryptParams=d;function p(t){return f.encrypt(t,e,{iv:r,mode:c,padding:l}).toString()}t.encrypt=p;function v(t){return f.decrypt(t,e,{iv:r,mode:c,padding:l}).toString(s.default.enc.Utf8)}t.decrypt=v;function g(t){return s.default.SHA256(t).toString(s.default.enc.Base64)}t.sha256=g;function y(t){return s.default.MD5(t).toString(s.default.enc.Hex)}t.md5Hex=y;function m(){return i?i:""}t.getEncryptedSecretKey=m;function w(){return o?o:""}t.getEncryptedIV=w;})(o||(o={}));e["default"]=o;},1237:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{static info(...t){if(this.debugMode)console.info(`[GtPush]`,t);}static error(...t){console.error(`[GtPush]`,t);}}r.debugMode=false;e["default"]=r;},2620:(t,e,r)=>{r.r(e);r.d(e,{JSEncrypt:()=>wt,default:()=>St});var i="0123456789abcdefghijklmnopqrstuvwxyz";function n(t){return i.charAt(t)}function s(t,e){return t&e}function a(t,e){return t|e}function o(t,e){return t^e}function u(t,e){return t&~e}function c(t){if(0==t)return -1;var e=0;if(0==(65535&t)){t>>=16;e+=16;}if(0==(255&t)){t>>=8;e+=8;}if(0==(15&t)){t>>=4;e+=4;}if(0==(3&t)){t>>=2;e+=2;}if(0==(1&t))++e;return e}function l(t){var e=0;while(0!=t){t&=t-1;++e;}return e}var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var h="=";function d(t){var e;var r;var i="";for(e=0;e+3<=t.length;e+=3){r=parseInt(t.substring(e,e+3),16);i+=f.charAt(r>>6)+f.charAt(63&r);}if(e+1==t.length){r=parseInt(t.substring(e,e+1),16);i+=f.charAt(r<<2);}else if(e+2==t.length){r=parseInt(t.substring(e,e+2),16);i+=f.charAt(r>>2)+f.charAt((3&r)<<4);}while((3&i.length)>0)i+=h;return i}function p(t){var e="";var r;var i=0;var s=0;for(r=0;r<t.length;++r){if(t.charAt(r)==h)break;var a=f.indexOf(t.charAt(r));if(a<0)continue;if(0==i){e+=n(a>>2);s=3&a;i=1;}else if(1==i){e+=n(s<<2|a>>4);s=15&a;i=2;}else if(2==i){e+=n(s);e+=n(a>>2);s=3&a;i=3;}else {e+=n(s<<2|a>>4);e+=n(15&a);i=0;}}if(1==i)e+=n(s<<2);return e}var g;var y={decode:function(t){var e;if(void 0===g){var r="0123456789ABCDEF";var i=" \f\n\r\t \u2028\u2029";g={};for(e=0;e<16;++e)g[r.charAt(e)]=e;r=r.toLowerCase();for(e=10;e<16;++e)g[r.charAt(e)]=e;for(e=0;e<i.length;++e)g[i.charAt(e)]=-1;}var n=[];var s=0;var a=0;for(e=0;e<t.length;++e){var o=t.charAt(e);if("="==o)break;o=g[o];if(-1==o)continue;if(void 0===o)throw new Error("Illegal character at offset "+e);s|=o;if(++a>=2){n[n.length]=s;s=0;a=0;}else s<<=4;}if(a)throw new Error("Hex encoding incomplete: 4 bits missing");return n}};var m;var w={decode:function(t){var e;if(void 0===m){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var i="= \f\n\r\t \u2028\u2029";m=Object.create(null);for(e=0;e<64;++e)m[r.charAt(e)]=e;m["-"]=62;m["_"]=63;for(e=0;e<i.length;++e)m[i.charAt(e)]=-1;}var n=[];var s=0;var a=0;for(e=0;e<t.length;++e){var o=t.charAt(e);if("="==o)break;o=m[o];if(-1==o)continue;if(void 0===o)throw new Error("Illegal character at offset "+e);s|=o;if(++a>=4){n[n.length]=s>>16;n[n.length]=s>>8&255;n[n.length]=255&s;s=0;a=0;}else s<<=6;}switch(a){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:n[n.length]=s>>10;break;case 3:n[n.length]=s>>16;n[n.length]=s>>8&255;break}return n},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(t){var e=w.re.exec(t);if(e)if(e[1])t=e[1];else if(e[2])t=e[2];else throw new Error("RegExp out of sync");return w.decode(t)}};var S=1e13;var _=function(){function t(t){this.buf=[+t||0];}t.prototype.mulAdd=function(t,e){var r=this.buf;var i=r.length;var n;var s;for(n=0;n<i;++n){s=r[n]*t+e;if(s<S)e=0;else {e=0|s/S;s-=e*S;}r[n]=s;}if(e>0)r[n]=e;};t.prototype.sub=function(t){var e=this.buf;var r=e.length;var i;var n;for(i=0;i<r;++i){n=e[i]-t;if(n<0){n+=S;t=1;}else t=0;e[i]=n;}while(0===e[e.length-1])e.pop();};t.prototype.toString=function(t){if(10!=(t||10))throw new Error("only base 10 is supported");var e=this.buf;var r=e[e.length-1].toString();for(var i=e.length-2;i>=0;--i)r+=(S+e[i]).toString().substring(1);return r};t.prototype.valueOf=function(){var t=this.buf;var e=0;for(var r=t.length-1;r>=0;--r)e=e*S+t[r];return e};t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this};return t}();var b="…";var E=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;var D=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function M(t,e){if(t.length>e)t=t.substring(0,e)+b;return t}var T=function(){function t(e,r){this.hexDigits="0123456789ABCDEF";if(e instanceof t){this.enc=e.enc;this.pos=e.pos;}else {this.enc=e;this.pos=r;}}t.prototype.get=function(t){if(void 0===t)t=this.pos++;if(t>=this.enc.length)throw new Error("Requesting byte offset "+t+" on a stream of length "+this.enc.length);return "string"===typeof this.enc?this.enc.charCodeAt(t):this.enc[t]};t.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(15&t)};t.prototype.hexDump=function(t,e,r){var i="";for(var n=t;n<e;++n){i+=this.hexByte(this.get(n));if(true!==r)switch(15&n){case 7:i+=" ";break;case 15:i+="\n";break;default:i+=" ";}}return i};t.prototype.isASCII=function(t,e){for(var r=t;r<e;++r){var i=this.get(r);if(i<32||i>176)return false}return true};t.prototype.parseStringISO=function(t,e){var r="";for(var i=t;i<e;++i)r+=String.fromCharCode(this.get(i));return r};t.prototype.parseStringUTF=function(t,e){var r="";for(var i=t;i<e;){var n=this.get(i++);if(n<128)r+=String.fromCharCode(n);else if(n>191&&n<224)r+=String.fromCharCode((31&n)<<6|63&this.get(i++));else r+=String.fromCharCode((15&n)<<12|(63&this.get(i++))<<6|63&this.get(i++));}return r};t.prototype.parseStringBMP=function(t,e){var r="";var i;var n;for(var s=t;s<e;){i=this.get(s++);n=this.get(s++);r+=String.fromCharCode(i<<8|n);}return r};t.prototype.parseTime=function(t,e,r){var i=this.parseStringISO(t,e);var n=(r?E:D).exec(i);if(!n)return "Unrecognized time: "+i;if(r){n[1]=+n[1];n[1]+=+n[1]<70?2e3:1900;}i=n[1]+"-"+n[2]+"-"+n[3]+" "+n[4];if(n[5]){i+=":"+n[5];if(n[6]){i+=":"+n[6];if(n[7])i+="."+n[7];}}if(n[8]){i+=" UTC";if("Z"!=n[8]){i+=n[8];if(n[9])i+=":"+n[9];}}return i};t.prototype.parseInteger=function(t,e){var r=this.get(t);var i=r>127;var n=i?255:0;var s;var a="";while(r==n&&++t<e)r=this.get(t);s=e-t;if(0===s)return i?-1:0;if(s>4){a=r;s<<=3;while(0==(128&(+a^n))){a=+a<<1;--s;}a="("+s+" bit)\n";}if(i)r-=256;var o=new _(r);for(var u=t+1;u<e;++u)o.mulAdd(256,this.get(u));return a+o.toString()};t.prototype.parseBitString=function(t,e,r){var i=this.get(t);var n=(e-t-1<<3)-i;var s="("+n+" bit)\n";var a="";for(var o=t+1;o<e;++o){var u=this.get(o);var c=o==e-1?i:0;for(var l=7;l>=c;--l)a+=u>>l&1?"1":"0";if(a.length>r)return s+M(a,r)}return s+a};t.prototype.parseOctetString=function(t,e,r){if(this.isASCII(t,e))return M(this.parseStringISO(t,e),r);var i=e-t;var n="("+i+" byte)\n";r/=2;if(i>r)e=t+r;for(var s=t;s<e;++s)n+=this.hexByte(this.get(s));if(i>r)n+=b;return n};t.prototype.parseOID=function(t,e,r){var i="";var n=new _;var s=0;for(var a=t;a<e;++a){var o=this.get(a);n.mulAdd(128,127&o);s+=7;if(!(128&o)){if(""===i){n=n.simplify();if(n instanceof _){n.sub(80);i="2."+n.toString();}else {var u=n<80?n<40?0:1:2;i=u+"."+(n-40*u);}}else i+="."+n.toString();if(i.length>r)return M(i,r);n=new _;s=0;}}if(s>0)i+=".incomplete";return i};return t}();var I=function(){function t(t,e,r,i,n){if(!(i instanceof A))throw new Error("Invalid tag value.");this.stream=t;this.header=e;this.length=r;this.tag=i;this.sub=n;}t.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return "EOC";case 1:return "BOOLEAN";case 2:return "INTEGER";case 3:return "BIT_STRING";case 4:return "OCTET_STRING";case 5:return "NULL";case 6:return "OBJECT_IDENTIFIER";case 7:return "ObjectDescriptor";case 8:return "EXTERNAL";case 9:return "REAL";case 10:return "ENUMERATED";case 11:return "EMBEDDED_PDV";case 12:return "UTF8String";case 16:return "SEQUENCE";case 17:return "SET";case 18:return "NumericString";case 19:return "PrintableString";case 20:return "TeletexString";case 21:return "VideotexString";case 22:return "IA5String";case 23:return "UTCTime";case 24:return "GeneralizedTime";case 25:return "GraphicString";case 26:return "VisibleString";case 27:return "GeneralString";case 28:return "UniversalString";case 30:return "BMPString"}return "Universal_"+this.tag.tagNumber.toString();case 1:return "Application_"+this.tag.tagNumber.toString();case 2:return "["+this.tag.tagNumber.toString()+"]";case 3:return "Private_"+this.tag.tagNumber.toString()}};t.prototype.content=function(t){if(void 0===this.tag)return null;if(void 0===t)t=1/0;var e=this.posContent();var r=Math.abs(this.length);if(!this.tag.isUniversal()){if(null!==this.sub)return "("+this.sub.length+" elem)";return this.stream.parseOctetString(e,e+r,t)}switch(this.tag.tagNumber){case 1:return 0===this.stream.get(e)?"false":"true";case 2:return this.stream.parseInteger(e,e+r);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+r,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+r,t);case 6:return this.stream.parseOID(e,e+r,t);case 16:case 17:if(null!==this.sub)return "("+this.sub.length+" elem)";else return "(no elem)";case 12:return M(this.stream.parseStringUTF(e,e+r),t);case 18:case 19:case 20:case 21:case 22:case 26:return M(this.stream.parseStringISO(e,e+r),t);case 30:return M(this.stream.parseStringBMP(e,e+r),t);case 23:case 24:return this.stream.parseTime(e,e+r,23==this.tag.tagNumber)}return null};t.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"};t.prototype.toPrettyString=function(t){if(void 0===t)t="";var e=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0)e+="+";e+=this.length;if(this.tag.tagConstructed)e+=" (constructed)";else if(this.tag.isUniversal()&&(3==this.tag.tagNumber||4==this.tag.tagNumber)&&null!==this.sub)e+=" (encapsulates)";e+="\n";if(null!==this.sub){t+=" ";for(var r=0,i=this.sub.length;r<i;++r)e+=this.sub[r].toPrettyString(t);}return e};t.prototype.posStart=function(){return this.stream.pos};t.prototype.posContent=function(){return this.stream.pos+this.header};t.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)};t.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),true)};t.decodeLength=function(t){var e=t.get();var r=127&e;if(r==e)return r;if(r>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(0===r)return null;e=0;for(var i=0;i<r;++i)e=256*e+t.get();return e};t.prototype.getHexStringValue=function(){var t=this.toHexString();var e=2*this.header;var r=2*this.length;return t.substr(e,r)};t.decode=function(e){var r;if(!(e instanceof T))r=new T(e,0);else r=e;var i=new T(r);var n=new A(r);var s=t.decodeLength(r);var a=r.pos;var o=a-i.pos;var u=null;var c=function(){var e=[];if(null!==s){var i=a+s;while(r.pos<i)e[e.length]=t.decode(r);if(r.pos!=i)throw new Error("Content size is not correct for container starting at offset "+a)}else try{for(;;){var n=t.decode(r);if(n.tag.isEOC())break;e[e.length]=n;}s=a-r.pos;}catch(t){throw new Error("Exception while decoding undefined length content: "+t)}return e};if(n.tagConstructed)u=c();else if(n.isUniversal()&&(3==n.tagNumber||4==n.tagNumber))try{if(3==n.tagNumber)if(0!=r.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");u=c();for(var l=0;l<u.length;++l)if(u[l].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(t){u=null;}if(null===u){if(null===s)throw new Error("We can't skip over an invalid tag with undefined length at offset "+a);r.pos=a+Math.abs(s);}return new t(i,o,s,n,u)};return t}();var A=function(){function t(t){var e=t.get();this.tagClass=e>>6;this.tagConstructed=0!==(32&e);this.tagNumber=31&e;if(31==this.tagNumber){var r=new _;do{e=t.get();r.mulAdd(128,127&e);}while(128&e);this.tagNumber=r.simplify();}}t.prototype.isUniversal=function(){return 0===this.tagClass};t.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber};return t}();var x;var R=0xdeadbeefcafe;var B=15715070==(16777215&R);var O=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997];var k=(1<<26)/O[O.length-1];var C=function(){function t(t,e,r){if(null!=t)if("number"==typeof t)this.fromNumber(t,e,r);else if(null==e&&"string"!=typeof t)this.fromString(t,256);else this.fromString(t,e);}t.prototype.toString=function(t){if(this.s<0)return "-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else if(4==t)e=2;else return this.toRadix(t);var r=(1<<e)-1;var i;var s=false;var a="";var o=this.t;var u=this.DB-o*this.DB%e;if(o-- >0){if(u<this.DB&&(i=this[o]>>u)>0){s=true;a=n(i);}while(o>=0){if(u<e){i=(this[o]&(1<<u)-1)<<e-u;i|=this[--o]>>(u+=this.DB-e);}else {i=this[o]>>(u-=e)&r;if(u<=0){u+=this.DB;--o;}}if(i>0)s=true;if(s)a+=n(i);}}return s?a:"0"};t.prototype.negate=function(){var e=H();t.ZERO.subTo(this,e);return e};t.prototype.abs=function(){return this.s<0?this.negate():this};t.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var r=this.t;e=r-t.t;if(0!=e)return this.s<0?-e:e;while(--r>=0)if(0!=(e=this[r]-t[r]))return e;return 0};t.prototype.bitLength=function(){if(this.t<=0)return 0;return this.DB*(this.t-1)+W(this[this.t-1]^this.s&this.DM)};t.prototype.mod=function(e){var r=H();this.abs().divRemTo(e,null,r);if(this.s<0&&r.compareTo(t.ZERO)>0)e.subTo(r,r);return r};t.prototype.modPowInt=function(t,e){var r;if(t<256||e.isEven())r=new P(e);else r=new V(e);return this.exp(t,r)};t.prototype.clone=function(){var t=H();this.copyTo(t);return t};t.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;else if(0==this.t)return -1}else if(1==this.t)return this[0];else if(0==this.t)return 0;return (this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]};t.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24};t.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16};t.prototype.signum=function(){if(this.s<0)return -1;else if(this.t<=0||1==this.t&&this[0]<=0)return 0;else return 1};t.prototype.toByteArray=function(){var t=this.t;var e=[];e[0]=this.s;var r=this.DB-t*this.DB%8;var i;var n=0;if(t-- >0){if(r<this.DB&&(i=this[t]>>r)!=(this.s&this.DM)>>r)e[n++]=i|this.s<<this.DB-r;while(t>=0){if(r<8){i=(this[t]&(1<<r)-1)<<8-r;i|=this[--t]>>(r+=this.DB-8);}else {i=this[t]>>(r-=8)&255;if(r<=0){r+=this.DB;--t;}}if(0!=(128&i))i|=-256;if(0==n&&(128&this.s)!=(128&i))++n;if(n>0||i!=this.s)e[n++]=i;}}return e};t.prototype.equals=function(t){return 0==this.compareTo(t)};t.prototype.min=function(t){return this.compareTo(t)<0?this:t};t.prototype.max=function(t){return this.compareTo(t)>0?this:t};t.prototype.and=function(t){var e=H();this.bitwiseTo(t,s,e);return e};t.prototype.or=function(t){var e=H();this.bitwiseTo(t,a,e);return e};t.prototype.xor=function(t){var e=H();this.bitwiseTo(t,o,e);return e};t.prototype.andNot=function(t){var e=H();this.bitwiseTo(t,u,e);return e};t.prototype.not=function(){var t=H();for(var e=0;e<this.t;++e)t[e]=this.DM&~this[e];t.t=this.t;t.s=~this.s;return t};t.prototype.shiftLeft=function(t){var e=H();if(t<0)this.rShiftTo(-t,e);else this.lShiftTo(t,e);return e};t.prototype.shiftRight=function(t){var e=H();if(t<0)this.lShiftTo(-t,e);else this.rShiftTo(t,e);return e};t.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+c(this[t]);if(this.s<0)return this.t*this.DB;return -1};t.prototype.bitCount=function(){var t=0;var e=this.s&this.DM;for(var r=0;r<this.t;++r)t+=l(this[r]^e);return t};t.prototype.testBit=function(t){var e=Math.floor(t/this.DB);if(e>=this.t)return 0!=this.s;return 0!=(this[e]&1<<t%this.DB)};t.prototype.setBit=function(t){return this.changeBit(t,a)};t.prototype.clearBit=function(t){return this.changeBit(t,u)};t.prototype.flipBit=function(t){return this.changeBit(t,o)};t.prototype.add=function(t){var e=H();this.addTo(t,e);return e};t.prototype.subtract=function(t){var e=H();this.subTo(t,e);return e};t.prototype.multiply=function(t){var e=H();this.multiplyTo(t,e);return e};t.prototype.divide=function(t){var e=H();this.divRemTo(t,e,null);return e};t.prototype.remainder=function(t){var e=H();this.divRemTo(t,null,e);return e};t.prototype.divideAndRemainder=function(t){var e=H();var r=H();this.divRemTo(t,e,r);return [e,r]};t.prototype.modPow=function(t,e){var r=t.bitLength();var i;var n=Y(1);var s;if(r<=0)return n;else if(r<18)i=1;else if(r<48)i=3;else if(r<144)i=4;else if(r<768)i=5;else i=6;if(r<8)s=new P(e);else if(e.isEven())s=new L(e);else s=new V(e);var a=[];var o=3;var u=i-1;var c=(1<<i)-1;a[1]=s.convert(this);if(i>1){var l=H();s.sqrTo(a[1],l);while(o<=c){a[o]=H();s.mulTo(l,a[o-2],a[o]);o+=2;}}var f=t.t-1;var h;var d=true;var p=H();var v;r=W(t[f])-1;while(f>=0){if(r>=u)h=t[f]>>r-u&c;else {h=(t[f]&(1<<r+1)-1)<<u-r;if(f>0)h|=t[f-1]>>this.DB+r-u;}o=i;while(0==(1&h)){h>>=1;--o;}if((r-=o)<0){r+=this.DB;--f;}if(d){a[h].copyTo(n);d=false;}else {while(o>1){s.sqrTo(n,p);s.sqrTo(p,n);o-=2;}if(o>0)s.sqrTo(n,p);else {v=n;n=p;p=v;}s.mulTo(p,a[h],n);}while(f>=0&&0==(t[f]&1<<r)){s.sqrTo(n,p);v=n;n=p;p=v;if(--r<0){r=this.DB-1;--f;}}}return s.revert(n)};t.prototype.modInverse=function(e){var r=e.isEven();if(this.isEven()&&r||0==e.signum())return t.ZERO;var i=e.clone();var n=this.clone();var s=Y(1);var a=Y(0);var o=Y(0);var u=Y(1);while(0!=i.signum()){while(i.isEven()){i.rShiftTo(1,i);if(r){if(!s.isEven()||!a.isEven()){s.addTo(this,s);a.subTo(e,a);}s.rShiftTo(1,s);}else if(!a.isEven())a.subTo(e,a);a.rShiftTo(1,a);}while(n.isEven()){n.rShiftTo(1,n);if(r){if(!o.isEven()||!u.isEven()){o.addTo(this,o);u.subTo(e,u);}o.rShiftTo(1,o);}else if(!u.isEven())u.subTo(e,u);u.rShiftTo(1,u);}if(i.compareTo(n)>=0){i.subTo(n,i);if(r)s.subTo(o,s);a.subTo(u,a);}else {n.subTo(i,n);if(r)o.subTo(s,o);u.subTo(a,u);}}if(0!=n.compareTo(t.ONE))return t.ZERO;if(u.compareTo(e)>=0)return u.subtract(e);if(u.signum()<0)u.addTo(e,u);else return u;if(u.signum()<0)return u.add(e);else return u};t.prototype.pow=function(t){return this.exp(t,new N)};t.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone();var r=t.s<0?t.negate():t.clone();if(e.compareTo(r)<0){var i=e;e=r;r=i;}var n=e.getLowestSetBit();var s=r.getLowestSetBit();if(s<0)return e;if(n<s)s=n;if(s>0){e.rShiftTo(s,e);r.rShiftTo(s,r);}while(e.signum()>0){if((n=e.getLowestSetBit())>0)e.rShiftTo(n,e);if((n=r.getLowestSetBit())>0)r.rShiftTo(n,r);if(e.compareTo(r)>=0){e.subTo(r,e);e.rShiftTo(1,e);}else {r.subTo(e,r);r.rShiftTo(1,r);}}if(s>0)r.lShiftTo(s,r);return r};t.prototype.isProbablePrime=function(t){var e;var r=this.abs();if(1==r.t&&r[0]<=O[O.length-1]){for(e=0;e<O.length;++e)if(r[0]==O[e])return true;return false}if(r.isEven())return false;e=1;while(e<O.length){var i=O[e];var n=e+1;while(n<O.length&&i<k)i*=O[n++];i=r.modInt(i);while(e<n)if(i%O[e++]==0)return false}return r.millerRabin(t)};t.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t;t.s=this.s;};t.prototype.fromInt=function(t){this.t=1;this.s=t<0?-1:0;if(t>0)this[0]=t;else if(t<-1)this[0]=t+this.DV;else this.t=0;};t.prototype.fromString=function(e,r){var i;if(16==r)i=4;else if(8==r)i=3;else if(256==r)i=8;else if(2==r)i=1;else if(32==r)i=5;else if(4==r)i=2;else {this.fromRadix(e,r);return}this.t=0;this.s=0;var n=e.length;var s=false;var a=0;while(--n>=0){var o=8==i?255&+e[n]:G(e,n);if(o<0){if("-"==e.charAt(n))s=true;continue}s=false;if(0==a)this[this.t++]=o;else if(a+i>this.DB){this[this.t-1]|=(o&(1<<this.DB-a)-1)<<a;this[this.t++]=o>>this.DB-a;}else this[this.t-1]|=o<<a;a+=i;if(a>=this.DB)a-=this.DB;}if(8==i&&0!=(128&+e[0])){this.s=-1;if(a>0)this[this.t-1]|=(1<<this.DB-a)-1<<a;}this.clamp();if(s)t.ZERO.subTo(this,this);};t.prototype.clamp=function(){var t=this.s&this.DM;while(this.t>0&&this[this.t-1]==t)--this.t;};t.prototype.dlShiftTo=function(t,e){var r;for(r=this.t-1;r>=0;--r)e[r+t]=this[r];for(r=t-1;r>=0;--r)e[r]=0;e.t=this.t+t;e.s=this.s;};t.prototype.drShiftTo=function(t,e){for(var r=t;r<this.t;++r)e[r-t]=this[r];e.t=Math.max(this.t-t,0);e.s=this.s;};t.prototype.lShiftTo=function(t,e){var r=t%this.DB;var i=this.DB-r;var n=(1<<i)-1;var s=Math.floor(t/this.DB);var a=this.s<<r&this.DM;for(var o=this.t-1;o>=0;--o){e[o+s+1]=this[o]>>i|a;a=(this[o]&n)<<r;}for(var o=s-1;o>=0;--o)e[o]=0;e[s]=a;e.t=this.t+s+1;e.s=this.s;e.clamp();};t.prototype.rShiftTo=function(t,e){e.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t){e.t=0;return}var i=t%this.DB;var n=this.DB-i;var s=(1<<i)-1;e[0]=this[r]>>i;for(var a=r+1;a<this.t;++a){e[a-r-1]|=(this[a]&s)<<n;e[a-r]=this[a]>>i;}if(i>0)e[this.t-r-1]|=(this.s&s)<<n;e.t=this.t-r;e.clamp();};t.prototype.subTo=function(t,e){var r=0;var i=0;var n=Math.min(t.t,this.t);while(r<n){i+=this[r]-t[r];e[r++]=i&this.DM;i>>=this.DB;}if(t.t<this.t){i-=t.s;while(r<this.t){i+=this[r];e[r++]=i&this.DM;i>>=this.DB;}i+=this.s;}else {i+=this.s;while(r<t.t){i-=t[r];e[r++]=i&this.DM;i>>=this.DB;}i-=t.s;}e.s=i<0?-1:0;if(i<-1)e[r++]=this.DV+i;else if(i>0)e[r++]=i;e.t=r;e.clamp();};t.prototype.multiplyTo=function(e,r){var i=this.abs();var n=e.abs();var s=i.t;r.t=s+n.t;while(--s>=0)r[s]=0;for(s=0;s<n.t;++s)r[s+i.t]=i.am(0,n[s],r,s,0,i.t);r.s=0;r.clamp();if(this.s!=e.s)t.ZERO.subTo(r,r);};t.prototype.squareTo=function(t){var e=this.abs();var r=t.t=2*e.t;while(--r>=0)t[r]=0;for(r=0;r<e.t-1;++r){var i=e.am(r,e[r],t,2*r,0,1);if((t[r+e.t]+=e.am(r+1,2*e[r],t,2*r+1,i,e.t-r-1))>=e.DV){t[r+e.t]-=e.DV;t[r+e.t+1]=1;}}if(t.t>0)t[t.t-1]+=e.am(r,e[r],t,2*r,0,1);t.s=0;t.clamp();};t.prototype.divRemTo=function(e,r,i){var n=e.abs();if(n.t<=0)return;var s=this.abs();if(s.t<n.t){if(null!=r)r.fromInt(0);if(null!=i)this.copyTo(i);return}if(null==i)i=H();var a=H();var o=this.s;var u=e.s;var c=this.DB-W(n[n.t-1]);if(c>0){n.lShiftTo(c,a);s.lShiftTo(c,i);}else {n.copyTo(a);s.copyTo(i);}var l=a.t;var f=a[l-1];if(0==f)return;var h=f*(1<<this.F1)+(l>1?a[l-2]>>this.F2:0);var d=this.FV/h;var p=(1<<this.F1)/h;var v=1<<this.F2;var g=i.t;var y=g-l;var m=null==r?H():r;a.dlShiftTo(y,m);if(i.compareTo(m)>=0){i[i.t++]=1;i.subTo(m,i);}t.ONE.dlShiftTo(l,m);m.subTo(a,a);while(a.t<l)a[a.t++]=0;while(--y>=0){var w=i[--g]==f?this.DM:Math.floor(i[g]*d+(i[g-1]+v)*p);if((i[g]+=a.am(0,w,i,y,0,l))<w){a.dlShiftTo(y,m);i.subTo(m,i);while(i[g]<--w)i.subTo(m,i);}}if(null!=r){i.drShiftTo(l,r);if(o!=u)t.ZERO.subTo(r,r);}i.t=l;i.clamp();if(c>0)i.rShiftTo(c,i);if(o<0)t.ZERO.subTo(i,i);};t.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;e=e*(2-(15&t)*e)&15;e=e*(2-(255&t)*e)&255;e=e*(2-((65535&t)*e&65535))&65535;e=e*(2-t*e%this.DV)%this.DV;return e>0?this.DV-e:-e};t.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)};t.prototype.exp=function(e,r){if(e>4294967295||e<1)return t.ONE;var i=H();var n=H();var s=r.convert(this);var a=W(e)-1;s.copyTo(i);while(--a>=0){r.sqrTo(i,n);if((e&1<<a)>0)r.mulTo(n,s,i);else {var o=i;i=n;n=o;}}return r.revert(i)};t.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))};t.prototype.toRadix=function(t){if(null==t)t=10;if(0==this.signum()||t<2||t>36)return "0";var e=this.chunkSize(t);var r=Math.pow(t,e);var i=Y(r);var n=H();var s=H();var a="";this.divRemTo(i,n,s);while(n.signum()>0){a=(r+s.intValue()).toString(t).substr(1)+a;n.divRemTo(i,n,s);}return s.intValue().toString(t)+a};t.prototype.fromRadix=function(e,r){this.fromInt(0);if(null==r)r=10;var i=this.chunkSize(r);var n=Math.pow(r,i);var s=false;var a=0;var o=0;for(var u=0;u<e.length;++u){var c=G(e,u);if(c<0){if("-"==e.charAt(u)&&0==this.signum())s=true;continue}o=r*o+c;if(++a>=i){this.dMultiply(n);this.dAddOffset(o,0);a=0;o=0;}}if(a>0){this.dMultiply(Math.pow(r,a));this.dAddOffset(o,0);}if(s)t.ZERO.subTo(this,this);};t.prototype.fromNumber=function(e,r,i){if("number"==typeof r)if(e<2)this.fromInt(1);else {this.fromNumber(e,i);if(!this.testBit(e-1))this.bitwiseTo(t.ONE.shiftLeft(e-1),a,this);if(this.isEven())this.dAddOffset(1,0);while(!this.isProbablePrime(r)){this.dAddOffset(2,0);if(this.bitLength()>e)this.subTo(t.ONE.shiftLeft(e-1),this);}}else {var n=[];var s=7&e;n.length=(e>>3)+1;r.nextBytes(n);if(s>0)n[0]&=(1<<s)-1;else n[0]=0;this.fromString(n,256);}};t.prototype.bitwiseTo=function(t,e,r){var i;var n;var s=Math.min(t.t,this.t);for(i=0;i<s;++i)r[i]=e(this[i],t[i]);if(t.t<this.t){n=t.s&this.DM;for(i=s;i<this.t;++i)r[i]=e(this[i],n);r.t=this.t;}else {n=this.s&this.DM;for(i=s;i<t.t;++i)r[i]=e(n,t[i]);r.t=t.t;}r.s=e(this.s,t.s);r.clamp();};t.prototype.changeBit=function(e,r){var i=t.ONE.shiftLeft(e);this.bitwiseTo(i,r,i);return i};t.prototype.addTo=function(t,e){var r=0;var i=0;var n=Math.min(t.t,this.t);while(r<n){i+=this[r]+t[r];e[r++]=i&this.DM;i>>=this.DB;}if(t.t<this.t){i+=t.s;while(r<this.t){i+=this[r];e[r++]=i&this.DM;i>>=this.DB;}i+=this.s;}else {i+=this.s;while(r<t.t){i+=t[r];e[r++]=i&this.DM;i>>=this.DB;}i+=t.s;}e.s=i<0?-1:0;if(i>0)e[r++]=i;else if(i<-1)e[r++]=this.DV+i;e.t=r;e.clamp();};t.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t);++this.t;this.clamp();};t.prototype.dAddOffset=function(t,e){if(0==t)return;while(this.t<=e)this[this.t++]=0;this[e]+=t;while(this[e]>=this.DV){this[e]-=this.DV;if(++e>=this.t)this[this.t++]=0;++this[e];}};t.prototype.multiplyLowerTo=function(t,e,r){var i=Math.min(this.t+t.t,e);r.s=0;r.t=i;while(i>0)r[--i]=0;for(var n=r.t-this.t;i<n;++i)r[i+this.t]=this.am(0,t[i],r,i,0,this.t);for(var n=Math.min(t.t,e);i<n;++i)this.am(0,t[i],r,i,0,e-i);r.clamp();};t.prototype.multiplyUpperTo=function(t,e,r){--e;var i=r.t=this.t+t.t-e;r.s=0;while(--i>=0)r[i]=0;for(i=Math.max(e-this.t,0);i<t.t;++i)r[this.t+i-e]=this.am(e-i,t[i],r,0,0,this.t+i-e);r.clamp();r.drShiftTo(1,r);};t.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t;var r=this.s<0?t-1:0;if(this.t>0)if(0==e)r=this[0]%t;else for(var i=this.t-1;i>=0;--i)r=(e*r+this[i])%t;return r};t.prototype.millerRabin=function(e){var r=this.subtract(t.ONE);var i=r.getLowestSetBit();if(i<=0)return false;var n=r.shiftRight(i);e=e+1>>1;if(e>O.length)e=O.length;var s=H();for(var a=0;a<e;++a){s.fromInt(O[Math.floor(Math.random()*O.length)]);var o=s.modPow(n,this);if(0!=o.compareTo(t.ONE)&&0!=o.compareTo(r)){var u=1;while(u++<i&&0!=o.compareTo(r)){o=o.modPowInt(2,this);if(0==o.compareTo(t.ONE))return false}if(0!=o.compareTo(r))return false}}return true};t.prototype.square=function(){var t=H();this.squareTo(t);return t};t.prototype.gcda=function(t,e){var r=this.s<0?this.negate():this.clone();var i=t.s<0?t.negate():t.clone();if(r.compareTo(i)<0){var n=r;r=i;i=n;}var s=r.getLowestSetBit();var a=i.getLowestSetBit();if(a<0){e(r);return}if(s<a)a=s;if(a>0){r.rShiftTo(a,r);i.rShiftTo(a,i);}var o=function(){if((s=r.getLowestSetBit())>0)r.rShiftTo(s,r);if((s=i.getLowestSetBit())>0)i.rShiftTo(s,i);if(r.compareTo(i)>=0){r.subTo(i,r);r.rShiftTo(1,r);}else {i.subTo(r,i);i.rShiftTo(1,i);}if(!(r.signum()>0)){if(a>0)i.lShiftTo(a,i);setTimeout((function(){e(i);}),0);}else setTimeout(o,0);};setTimeout(o,10);};t.prototype.fromNumberAsync=function(e,r,i,n){if("number"==typeof r)if(e<2)this.fromInt(1);else {this.fromNumber(e,i);if(!this.testBit(e-1))this.bitwiseTo(t.ONE.shiftLeft(e-1),a,this);if(this.isEven())this.dAddOffset(1,0);var s=this;var o=function(){s.dAddOffset(2,0);if(s.bitLength()>e)s.subTo(t.ONE.shiftLeft(e-1),s);if(s.isProbablePrime(r))setTimeout((function(){n();}),0);else setTimeout(o,0);};setTimeout(o,0);}else {var u=[];var c=7&e;u.length=(e>>3)+1;r.nextBytes(u);if(c>0)u[0]&=(1<<c)-1;else u[0]=0;this.fromString(u,256);}};return t}();var N=function(){function t(){}t.prototype.convert=function(t){return t};t.prototype.revert=function(t){return t};t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r);};t.prototype.sqrTo=function(t,e){t.squareTo(e);};return t}();var P=function(){function t(t){this.m=t;}t.prototype.convert=function(t){if(t.s<0||t.compareTo(this.m)>=0)return t.mod(this.m);else return t};t.prototype.revert=function(t){return t};t.prototype.reduce=function(t){t.divRemTo(this.m,null,t);};t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r);this.reduce(r);};t.prototype.sqrTo=function(t,e){t.squareTo(e);this.reduce(e);};return t}();var V=function(){function t(t){this.m=t;this.mp=t.invDigit();this.mpl=32767&this.mp;this.mph=this.mp>>15;this.um=(1<<t.DB-15)-1;this.mt2=2*t.t;}t.prototype.convert=function(t){var e=H();t.abs().dlShiftTo(this.m.t,e);e.divRemTo(this.m,null,e);if(t.s<0&&e.compareTo(C.ZERO)>0)this.m.subTo(e,e);return e};t.prototype.revert=function(t){var e=H();t.copyTo(e);this.reduce(e);return e};t.prototype.reduce=function(t){while(t.t<=this.mt2)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var r=32767&t[e];var i=r*this.mpl+((r*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;r=e+this.m.t;t[r]+=this.m.am(0,i,t,e,0,this.m.t);while(t[r]>=t.DV){t[r]-=t.DV;t[++r]++;}}t.clamp();t.drShiftTo(this.m.t,t);if(t.compareTo(this.m)>=0)t.subTo(this.m,t);};t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r);this.reduce(r);};t.prototype.sqrTo=function(t,e){t.squareTo(e);this.reduce(e);};return t}();var L=function(){function t(t){this.m=t;this.r2=H();this.q3=H();C.ONE.dlShiftTo(2*t.t,this.r2);this.mu=this.r2.divide(t);}t.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);else if(t.compareTo(this.m)<0)return t;else {var e=H();t.copyTo(e);this.reduce(e);return e}};t.prototype.revert=function(t){return t};t.prototype.reduce=function(t){t.drShiftTo(this.m.t-1,this.r2);if(t.t>this.m.t+1){t.t=this.m.t+1;t.clamp();}this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3);this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);while(t.compareTo(this.r2)<0)t.dAddOffset(1,this.m.t+1);t.subTo(this.r2,t);while(t.compareTo(this.m)>=0)t.subTo(this.m,t);};t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r);this.reduce(r);};t.prototype.sqrTo=function(t,e){t.squareTo(e);this.reduce(e);};return t}();function H(){return new C(null)}function K(t,e){return new C(t,e)}var U="undefined"!==typeof navigator;if(U&&B&&"Microsoft Internet Explorer"==navigator.appName){C.prototype.am=function t(e,r,i,n,s,a){var o=32767&r;var u=r>>15;while(--a>=0){var c=32767&this[e];var l=this[e++]>>15;var f=u*c+l*o;c=o*c+((32767&f)<<15)+i[n]+(1073741823&s);s=(c>>>30)+(f>>>15)+u*l+(s>>>30);i[n++]=1073741823&c;}return s};x=30;}else if(U&&B&&"Netscape"!=navigator.appName){C.prototype.am=function t(e,r,i,n,s,a){while(--a>=0){var o=r*this[e++]+i[n]+s;s=Math.floor(o/67108864);i[n++]=67108863&o;}return s};x=26;}else {C.prototype.am=function t(e,r,i,n,s,a){var o=16383&r;var u=r>>14;while(--a>=0){var c=16383&this[e];var l=this[e++]>>14;var f=u*c+l*o;c=o*c+((16383&f)<<14)+i[n]+s;s=(c>>28)+(f>>14)+u*l;i[n++]=268435455&c;}return s};x=28;}C.prototype.DB=x;C.prototype.DM=(1<<x)-1;C.prototype.DV=1<<x;var j=52;C.prototype.FV=Math.pow(2,j);C.prototype.F1=j-x;C.prototype.F2=2*x-j;var q=[];var F;var z;F="0".charCodeAt(0);for(z=0;z<=9;++z)q[F++]=z;F="a".charCodeAt(0);for(z=10;z<36;++z)q[F++]=z;F="A".charCodeAt(0);for(z=10;z<36;++z)q[F++]=z;function G(t,e){var r=q[t.charCodeAt(e)];return null==r?-1:r}function Y(t){var e=H();e.fromInt(t);return e}function W(t){var e=1;var r;if(0!=(r=t>>>16)){t=r;e+=16;}if(0!=(r=t>>8)){t=r;e+=8;}if(0!=(r=t>>4)){t=r;e+=4;}if(0!=(r=t>>2)){t=r;e+=2;}if(0!=(r=t>>1)){t=r;e+=1;}return e}C.ZERO=Y(0);C.ONE=Y(1);var J=function(){function t(){this.i=0;this.j=0;this.S=[];}t.prototype.init=function(t){var e;var r;var i;for(e=0;e<256;++e)this.S[e]=e;r=0;for(e=0;e<256;++e){r=r+this.S[e]+t[e%t.length]&255;i=this.S[e];this.S[e]=this.S[r];this.S[r]=i;}this.i=0;this.j=0;};t.prototype.next=function(){var t;this.i=this.i+1&255;this.j=this.j+this.S[this.i]&255;t=this.S[this.i];this.S[this.i]=this.S[this.j];this.S[this.j]=t;return this.S[t+this.S[this.i]&255]};return t}();function Z(){return new J}var $=256;var X;var Q=null;var tt;if(null==Q){Q=[];tt=0;}function nt(){if(null==X){X=Z();while(tt<$){var t=Math.floor(65536*Math.random());Q[tt++]=255&t;}X.init(Q);for(tt=0;tt<Q.length;++tt)Q[tt]=0;tt=0;}return X.next()}var st=function(){function t(){}t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=nt();};return t}();function at(t,e){if(e<t.length+22){console.error("Message too long for RSA");return null}var r=e-t.length-6;var i="";for(var n=0;n<r;n+=2)i+="ff";var s="0001"+i+"00"+t;return K(s,16)}function ot(t,e){if(e<t.length+11){console.error("Message too long for RSA");return null}var r=[];var i=t.length-1;while(i>=0&&e>0){var n=t.charCodeAt(i--);if(n<128)r[--e]=n;else if(n>127&&n<2048){r[--e]=63&n|128;r[--e]=n>>6|192;}else {r[--e]=63&n|128;r[--e]=n>>6&63|128;r[--e]=n>>12|224;}}r[--e]=0;var s=new st;var a=[];while(e>2){a[0]=0;while(0==a[0])s.nextBytes(a);r[--e]=a[0];}r[--e]=2;r[--e]=0;return new C(r)}var ut=function(){function t(){this.n=null;this.e=0;this.d=null;this.p=null;this.q=null;this.dmp1=null;this.dmq1=null;this.coeff=null;}t.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)};t.prototype.doPrivate=function(t){if(null==this.p||null==this.q)return t.modPow(this.d,this.n);var e=t.mod(this.p).modPow(this.dmp1,this.p);var r=t.mod(this.q).modPow(this.dmq1,this.q);while(e.compareTo(r)<0)e=e.add(this.p);return e.subtract(r).multiply(this.coeff).mod(this.p).multiply(this.q).add(r)};t.prototype.setPublic=function(t,e){if(null!=t&&null!=e&&t.length>0&&e.length>0){this.n=K(t,16);this.e=parseInt(e,16);}else console.error("Invalid RSA public key");};t.prototype.encrypt=function(t){var e=this.n.bitLength()+7>>3;var r=ot(t,e);if(null==r)return null;var i=this.doPublic(r);if(null==i)return null;var n=i.toString(16);var s=n.length;for(var a=0;a<2*e-s;a++)n="0"+n;return n};t.prototype.setPrivate=function(t,e,r){if(null!=t&&null!=e&&t.length>0&&e.length>0){this.n=K(t,16);this.e=parseInt(e,16);this.d=K(r,16);}else console.error("Invalid RSA private key");};t.prototype.setPrivateEx=function(t,e,r,i,n,s,a,o){if(null!=t&&null!=e&&t.length>0&&e.length>0){this.n=K(t,16);this.e=parseInt(e,16);this.d=K(r,16);this.p=K(i,16);this.q=K(n,16);this.dmp1=K(s,16);this.dmq1=K(a,16);this.coeff=K(o,16);}else console.error("Invalid RSA private key");};t.prototype.generate=function(t,e){var r=new st;var i=t>>1;this.e=parseInt(e,16);var n=new C(e,16);for(;;){for(;;){this.p=new C(t-i,1,r);if(0==this.p.subtract(C.ONE).gcd(n).compareTo(C.ONE)&&this.p.isProbablePrime(10))break}for(;;){this.q=new C(i,1,r);if(0==this.q.subtract(C.ONE).gcd(n).compareTo(C.ONE)&&this.q.isProbablePrime(10))break}if(this.p.compareTo(this.q)<=0){var s=this.p;this.p=this.q;this.q=s;}var a=this.p.subtract(C.ONE);var o=this.q.subtract(C.ONE);var u=a.multiply(o);if(0==u.gcd(n).compareTo(C.ONE)){this.n=this.p.multiply(this.q);this.d=n.modInverse(u);this.dmp1=this.d.mod(a);this.dmq1=this.d.mod(o);this.coeff=this.q.modInverse(this.p);break}}};t.prototype.decrypt=function(t){var e=K(t,16);var r=this.doPrivate(e);if(null==r)return null;return ct(r,this.n.bitLength()+7>>3)};t.prototype.generateAsync=function(t,e,r){var i=new st;var n=t>>1;this.e=parseInt(e,16);var s=new C(e,16);var a=this;var o=function(){var e=function(){if(a.p.compareTo(a.q)<=0){var t=a.p;a.p=a.q;a.q=t;}var e=a.p.subtract(C.ONE);var i=a.q.subtract(C.ONE);var n=e.multiply(i);if(0==n.gcd(s).compareTo(C.ONE)){a.n=a.p.multiply(a.q);a.d=s.modInverse(n);a.dmp1=a.d.mod(e);a.dmq1=a.d.mod(i);a.coeff=a.q.modInverse(a.p);setTimeout((function(){r();}),0);}else setTimeout(o,0);};var u=function(){a.q=H();a.q.fromNumberAsync(n,1,i,(function(){a.q.subtract(C.ONE).gcda(s,(function(t){if(0==t.compareTo(C.ONE)&&a.q.isProbablePrime(10))setTimeout(e,0);else setTimeout(u,0);}));}));};var c=function(){a.p=H();a.p.fromNumberAsync(t-n,1,i,(function(){a.p.subtract(C.ONE).gcda(s,(function(t){if(0==t.compareTo(C.ONE)&&a.p.isProbablePrime(10))setTimeout(u,0);else setTimeout(c,0);}));}));};setTimeout(c,0);};setTimeout(o,0);};t.prototype.sign=function(t,e,r){var i=ht(r);var n=i+e(t).toString();var s=at(n,this.n.bitLength()/4);if(null==s)return null;var a=this.doPrivate(s);if(null==a)return null;var o=a.toString(16);if(0==(1&o.length))return o;else return "0"+o};t.prototype.verify=function(t,e,r){var i=K(e,16);var n=this.doPublic(i);if(null==n)return null;var s=n.toString(16).replace(/^1f+00/,"");var a=dt(s);return a==r(t).toString()};t.prototype.encryptLong=function(t){var e=this;var r="";var i=(this.n.bitLength()+7>>3)-11;var n=this.setSplitChn(t,i);n.forEach((function(t){r+=e.encrypt(t);}));return r};t.prototype.decryptLong=function(t){var e="";var r=this.n.bitLength()+7>>3;var i=2*r;if(t.length>i){var n=t.match(new RegExp(".{1,"+i+"}","g"))||[];var s=[];for(var a=0;a<n.length;a++){var o=K(n[a],16);var u=this.doPrivate(o);if(null==u)return null;s.push(u);}e=lt(s,r);}else e=this.decrypt(t);return e};t.prototype.setSplitChn=function(t,e,r){if(void 0===r)r=[];var i=t.split("");var n=0;for(var s=0;s<i.length;s++){var a=i[s].charCodeAt(0);if(a<=127)n+=1;else if(a<=2047)n+=2;else if(a<=65535)n+=3;else n+=4;if(n>e){var o=t.substring(0,s);r.push(o);return this.setSplitChn(t.substring(s),e,r)}}r.push(t);return r};return t}();function ct(t,e){var r=t.toByteArray();var i=0;while(i<r.length&&0==r[i])++i;if(r.length-i!=e-1||2!=r[i])return null;++i;while(0!=r[i])if(++i>=r.length)return null;var n="";while(++i<r.length){var s=255&r[i];if(s<128)n+=String.fromCharCode(s);else if(s>191&&s<224){n+=String.fromCharCode((31&s)<<6|63&r[i+1]);++i;}else {n+=String.fromCharCode((15&s)<<12|(63&r[i+1])<<6|63&r[i+2]);i+=2;}}return n}function lt(t,e){var r=[];for(var i=0;i<t.length;i++){var n=t[i];var s=n.toByteArray();var a=0;while(a<s.length&&0==s[a])++a;if(s.length-a!=e-1||2!=s[a])return null;++a;while(0!=s[a])if(++a>=s.length)return null;r=r.concat(s.slice(a+1));}var o=r;var u=-1;var c="";while(++u<o.length){var l=255&o[u];if(l<128)c+=String.fromCharCode(l);else if(l>191&&l<224){c+=String.fromCharCode((31&l)<<6|63&o[u+1]);++u;}else {c+=String.fromCharCode((15&l)<<12|(63&o[u+1])<<6|63&o[u+2]);u+=2;}}return c}var ft={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function ht(t){return ft[t]||""}function dt(t){for(var e in ft)if(ft.hasOwnProperty(e)){var r=ft[e];var i=r.length;if(t.substr(0,i)==r)return t.substr(i)}return t}var pt={};pt.lang={extend:function(t,e,r){if(!e||!t)throw new Error("YAHOO.lang.extend failed, please check that "+"all dependencies are included.");var i=function(){};i.prototype=e.prototype;t.prototype=new i;t.prototype.constructor=t;t.superclass=e.prototype;if(e.prototype.constructor==Object.prototype.constructor)e.prototype.constructor=e;if(r){var n;for(n in r)t.prototype[n]=r[n];var s=function(){},a=["toString","valueOf"];try{if(/MSIE/.test(navigator.userAgent))s=function(t,e){for(n=0;n<a.length;n+=1){var r=a[n],i=e[r];if("function"===typeof i&&i!=Object.prototype[r])t[r]=i;}};}catch(t){}s(t.prototype,r);}}};var vt={};if("undefined"==typeof vt.asn1||!vt.asn1)vt.asn1={};vt.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);if(e.length%2==1)e="0"+e;return e};this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1)){if(e.length%2==1)e="0"+e;else if(!e.match(/^[0-7]/))e="00"+e;}else {var r=e.substr(1);var i=r.length;if(i%2==1)i+=1;else if(!e.match(/^[0-7]/))i+=2;var n="";for(var s=0;s<i;s++)n+="f";var a=new C(n,16);var o=a.xor(t).add(C.ONE);e=o.toString(16).replace(/^-/,"");}return e};this.getPEMStringFromHex=function(t,e){return hextopem(t,e)};this.newObject=function(t){var e=vt,r=e.asn1,i=r.DERBoolean,n=r.DERInteger,s=r.DERBitString,a=r.DEROctetString,o=r.DERNull,u=r.DERObjectIdentifier,c=r.DEREnumerated,l=r.DERUTF8String,f=r.DERNumericString,h=r.DERPrintableString,d=r.DERTeletexString,p=r.DERIA5String,v=r.DERUTCTime,g=r.DERGeneralizedTime,y=r.DERSequence,m=r.DERSet,w=r.DERTaggedObject,S=r.ASN1Util.newObject;var _=Object.keys(t);if(1!=_.length)throw "key of param shall be only one.";var b=_[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+b+":"))throw "undefined key: "+b;if("bool"==b)return new i(t[b]);if("int"==b)return new n(t[b]);if("bitstr"==b)return new s(t[b]);if("octstr"==b)return new a(t[b]);if("null"==b)return new o(t[b]);if("oid"==b)return new u(t[b]);if("enum"==b)return new c(t[b]);if("utf8str"==b)return new l(t[b]);if("numstr"==b)return new f(t[b]);if("prnstr"==b)return new h(t[b]);if("telstr"==b)return new d(t[b]);if("ia5str"==b)return new p(t[b]);if("utctime"==b)return new v(t[b]);if("gentime"==b)return new g(t[b]);if("seq"==b){var E=t[b];var D=[];for(var M=0;M<E.length;M++){var T=S(E[M]);D.push(T);}return new y({array:D})}if("set"==b){var E=t[b];var D=[];for(var M=0;M<E.length;M++){var T=S(E[M]);D.push(T);}return new m({array:D})}if("tag"==b){var I=t[b];if("[object Array]"===Object.prototype.toString.call(I)&&3==I.length){var A=S(I[2]);return new w({tag:I[0],explicit:I[1],obj:A})}else {var x={};if(void 0!==I.explicit)x.explicit=I.explicit;if(void 0!==I.tag)x.tag=I.tag;if(void 0===I.obj)throw "obj shall be specified for 'tag'.";x.obj=S(I.obj);return new w(x)}}};this.jsonToASN1HEX=function(t){var e=this.newObject(t);return e.getEncodedHex()};};vt.asn1.ASN1Util.oidHexToInt=function(t){var e="";var r=parseInt(t.substr(0,2),16);var i=Math.floor(r/40);var n=r%40;var e=i+"."+n;var s="";for(var a=2;a<t.length;a+=2){var o=parseInt(t.substr(a,2),16);var u=("00000000"+o.toString(2)).slice(-8);s+=u.substr(1,7);if("0"==u.substr(0,1)){var c=new C(s,2);e=e+"."+c.toString(10);s="";}}return e};vt.asn1.ASN1Util.oidIntToHex=function(t){var e=function(t){var e=t.toString(16);if(1==e.length)e="0"+e;return e};var r=function(t){var r="";var i=new C(t,10);var n=i.toString(2);var s=7-n.length%7;if(7==s)s=0;var a="";for(var o=0;o<s;o++)a+="0";n=a+n;for(var o=0;o<n.length-1;o+=7){var u=n.substr(o,7);if(o!=n.length-7)u="1"+u;r+=e(parseInt(u,2));}return r};if(!t.match(/^[0-9.]+$/))throw "malformed oid string: "+t;var i="";var n=t.split(".");var s=40*parseInt(n[0])+parseInt(n[1]);i+=e(s);n.splice(0,2);for(var a=0;a<n.length;a++)i+=r(n[a]);return i};vt.asn1.ASN1Object=function(){var n="";this.getLengthHexFromValue=function(){if("undefined"==typeof this.hV||null==this.hV)throw "this.hV is null or undefined.";if(this.hV.length%2==1)throw "value hex must be even length: n="+n.length+",v="+this.hV;var t=this.hV.length/2;var e=t.toString(16);if(e.length%2==1)e="0"+e;if(t<128)return e;else {var r=e.length/2;if(r>15)throw "ASN.1 length too long to represent by 8x: n = "+t.toString(16);var i=128+r;return i.toString(16)+e}};this.getEncodedHex=function(){if(null==this.hTLV||this.isModified){this.hV=this.getFreshValueHex();this.hL=this.getLengthHexFromValue();this.hTLV=this.hT+this.hL+this.hV;this.isModified=false;}return this.hTLV};this.getValueHex=function(){this.getEncodedHex();return this.hV};this.getFreshValueHex=function(){return ""};};vt.asn1.DERAbstractString=function(t){vt.asn1.DERAbstractString.superclass.constructor.call(this);this.getString=function(){return this.s};this.setString=function(t){this.hTLV=null;this.isModified=true;this.s=t;this.hV=stohex(this.s);};this.setStringHex=function(t){this.hTLV=null;this.isModified=true;this.s=null;this.hV=t;};this.getFreshValueHex=function(){return this.hV};if("undefined"!=typeof t)if("string"==typeof t)this.setString(t);else if("undefined"!=typeof t["str"])this.setString(t["str"]);else if("undefined"!=typeof t["hex"])this.setStringHex(t["hex"]);};pt.lang.extend(vt.asn1.DERAbstractString,vt.asn1.ASN1Object);vt.asn1.DERAbstractTime=function(t){vt.asn1.DERAbstractTime.superclass.constructor.call(this);this.localDateToUTC=function(t){utc=t.getTime()+6e4*t.getTimezoneOffset();var e=new Date(utc);return e};this.formatDate=function(t,e,r){var i=this.zeroPadding;var n=this.localDateToUTC(t);var s=String(n.getFullYear());if("utc"==e)s=s.substr(2,2);var a=i(String(n.getMonth()+1),2);var o=i(String(n.getDate()),2);var u=i(String(n.getHours()),2);var c=i(String(n.getMinutes()),2);var l=i(String(n.getSeconds()),2);var f=s+a+o+u+c+l;if(true===r){var h=n.getMilliseconds();if(0!=h){var d=i(String(h),3);d=d.replace(/[0]+$/,"");f=f+"."+d;}}return f+"Z"};this.zeroPadding=function(t,e){if(t.length>=e)return t;return new Array(e-t.length+1).join("0")+t};this.getString=function(){return this.s};this.setString=function(t){this.hTLV=null;this.isModified=true;this.s=t;this.hV=stohex(t);};this.setByDateValue=function(t,e,r,i,n,s){var a=new Date(Date.UTC(t,e-1,r,i,n,s,0));this.setByDate(a);};this.getFreshValueHex=function(){return this.hV};};pt.lang.extend(vt.asn1.DERAbstractTime,vt.asn1.ASN1Object);vt.asn1.DERAbstractStructured=function(t){vt.asn1.DERAbstractString.superclass.constructor.call(this);this.setByASN1ObjectArray=function(t){this.hTLV=null;this.isModified=true;this.asn1Array=t;};this.appendASN1Object=function(t){this.hTLV=null;this.isModified=true;this.asn1Array.push(t);};this.asn1Array=new Array;if("undefined"!=typeof t)if("undefined"!=typeof t["array"])this.asn1Array=t["array"];};pt.lang.extend(vt.asn1.DERAbstractStructured,vt.asn1.ASN1Object);vt.asn1.DERBoolean=function(){vt.asn1.DERBoolean.superclass.constructor.call(this);this.hT="01";this.hTLV="0101ff";};pt.lang.extend(vt.asn1.DERBoolean,vt.asn1.ASN1Object);vt.asn1.DERInteger=function(t){vt.asn1.DERInteger.superclass.constructor.call(this);this.hT="02";this.setByBigInteger=function(t){this.hTLV=null;this.isModified=true;this.hV=vt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t);};this.setByInteger=function(t){var e=new C(String(t),10);this.setByBigInteger(e);};this.setValueHex=function(t){this.hV=t;};this.getFreshValueHex=function(){return this.hV};if("undefined"!=typeof t)if("undefined"!=typeof t["bigint"])this.setByBigInteger(t["bigint"]);else if("undefined"!=typeof t["int"])this.setByInteger(t["int"]);else if("number"==typeof t)this.setByInteger(t);else if("undefined"!=typeof t["hex"])this.setValueHex(t["hex"]);};pt.lang.extend(vt.asn1.DERInteger,vt.asn1.ASN1Object);vt.asn1.DERBitString=function(t){if(void 0!==t&&"undefined"!==typeof t.obj){var e=vt.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex();}vt.asn1.DERBitString.superclass.constructor.call(this);this.hT="03";this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null;this.isModified=true;this.hV=t;};this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7<t)throw "unused bits shall be from 0 to 7: u = "+t;var r="0"+t;this.hTLV=null;this.isModified=true;this.hV=r+e;};this.setByBinaryString=function(t){t=t.replace(/0+$/,"");var e=8-t.length%8;if(8==e)e=0;for(var r=0;r<=e;r++)t+="0";var i="";for(var r=0;r<t.length-1;r+=8){var n=t.substr(r,8);var s=parseInt(n,2).toString(16);if(1==s.length)s="0"+s;i+=s;}this.hTLV=null;this.isModified=true;this.hV="0"+e+i;};this.setByBooleanArray=function(t){var e="";for(var r=0;r<t.length;r++)if(true==t[r])e+="1";else e+="0";this.setByBinaryString(e);};this.newFalseArray=function(t){var e=new Array(t);for(var r=0;r<t;r++)e[r]=false;return e};this.getFreshValueHex=function(){return this.hV};if("undefined"!=typeof t)if("string"==typeof t&&t.toLowerCase().match(/^[0-9a-f]+$/))this.setHexValueIncludingUnusedBits(t);else if("undefined"!=typeof t["hex"])this.setHexValueIncludingUnusedBits(t["hex"]);else if("undefined"!=typeof t["bin"])this.setByBinaryString(t["bin"]);else if("undefined"!=typeof t["array"])this.setByBooleanArray(t["array"]);};pt.lang.extend(vt.asn1.DERBitString,vt.asn1.ASN1Object);vt.asn1.DEROctetString=function(t){if(void 0!==t&&"undefined"!==typeof t.obj){var e=vt.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex();}vt.asn1.DEROctetString.superclass.constructor.call(this,t);this.hT="04";};pt.lang.extend(vt.asn1.DEROctetString,vt.asn1.DERAbstractString);vt.asn1.DERNull=function(){vt.asn1.DERNull.superclass.constructor.call(this);this.hT="05";this.hTLV="0500";};pt.lang.extend(vt.asn1.DERNull,vt.asn1.ASN1Object);vt.asn1.DERObjectIdentifier=function(t){var e=function(t){var e=t.toString(16);if(1==e.length)e="0"+e;return e};var r=function(t){var r="";var i=new C(t,10);var n=i.toString(2);var s=7-n.length%7;if(7==s)s=0;var a="";for(var o=0;o<s;o++)a+="0";n=a+n;for(var o=0;o<n.length-1;o+=7){var u=n.substr(o,7);if(o!=n.length-7)u="1"+u;r+=e(parseInt(u,2));}return r};vt.asn1.DERObjectIdentifier.superclass.constructor.call(this);this.hT="06";this.setValueHex=function(t){this.hTLV=null;this.isModified=true;this.s=null;this.hV=t;};this.setValueOidString=function(t){if(!t.match(/^[0-9.]+$/))throw "malformed oid string: "+t;var i="";var n=t.split(".");var s=40*parseInt(n[0])+parseInt(n[1]);i+=e(s);n.splice(0,2);for(var a=0;a<n.length;a++)i+=r(n[a]);this.hTLV=null;this.isModified=true;this.s=null;this.hV=i;};this.setValueName=function(t){var e=vt.asn1.x509.OID.name2oid(t);if(""!==e)this.setValueOidString(e);else throw "DERObjectIdentifier oidName undefined: "+t};this.getFreshValueHex=function(){return this.hV};if(void 0!==t)if("string"===typeof t)if(t.match(/^[0-2].[0-9.]+$/))this.setValueOidString(t);else this.setValueName(t);else if(void 0!==t.oid)this.setValueOidString(t.oid);else if(void 0!==t.hex)this.setValueHex(t.hex);else if(void 0!==t.name)this.setValueName(t.name);};pt.lang.extend(vt.asn1.DERObjectIdentifier,vt.asn1.ASN1Object);vt.asn1.DEREnumerated=function(t){vt.asn1.DEREnumerated.superclass.constructor.call(this);this.hT="0a";this.setByBigInteger=function(t){this.hTLV=null;this.isModified=true;this.hV=vt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t);};this.setByInteger=function(t){var e=new C(String(t),10);this.setByBigInteger(e);};this.setValueHex=function(t){this.hV=t;};this.getFreshValueHex=function(){return this.hV};if("undefined"!=typeof t)if("undefined"!=typeof t["int"])this.setByInteger(t["int"]);else if("number"==typeof t)this.setByInteger(t);else if("undefined"!=typeof t["hex"])this.setValueHex(t["hex"]);};pt.lang.extend(vt.asn1.DEREnumerated,vt.asn1.ASN1Object);vt.asn1.DERUTF8String=function(t){vt.asn1.DERUTF8String.superclass.constructor.call(this,t);this.hT="0c";};pt.lang.extend(vt.asn1.DERUTF8String,vt.asn1.DERAbstractString);vt.asn1.DERNumericString=function(t){vt.asn1.DERNumericString.superclass.constructor.call(this,t);this.hT="12";};pt.lang.extend(vt.asn1.DERNumericString,vt.asn1.DERAbstractString);vt.asn1.DERPrintableString=function(t){vt.asn1.DERPrintableString.superclass.constructor.call(this,t);this.hT="13";};pt.lang.extend(vt.asn1.DERPrintableString,vt.asn1.DERAbstractString);vt.asn1.DERTeletexString=function(t){vt.asn1.DERTeletexString.superclass.constructor.call(this,t);this.hT="14";};pt.lang.extend(vt.asn1.DERTeletexString,vt.asn1.DERAbstractString);vt.asn1.DERIA5String=function(t){vt.asn1.DERIA5String.superclass.constructor.call(this,t);this.hT="16";};pt.lang.extend(vt.asn1.DERIA5String,vt.asn1.DERAbstractString);vt.asn1.DERUTCTime=function(t){vt.asn1.DERUTCTime.superclass.constructor.call(this,t);this.hT="17";this.setByDate=function(t){this.hTLV=null;this.isModified=true;this.date=t;this.s=this.formatDate(this.date,"utc");this.hV=stohex(this.s);};this.getFreshValueHex=function(){if("undefined"==typeof this.date&&"undefined"==typeof this.s){this.date=new Date;this.s=this.formatDate(this.date,"utc");this.hV=stohex(this.s);}return this.hV};if(void 0!==t)if(void 0!==t.str)this.setString(t.str);else if("string"==typeof t&&t.match(/^[0-9]{12}Z$/))this.setString(t);else if(void 0!==t.hex)this.setStringHex(t.hex);else if(void 0!==t.date)this.setByDate(t.date);};pt.lang.extend(vt.asn1.DERUTCTime,vt.asn1.DERAbstractTime);vt.asn1.DERGeneralizedTime=function(t){vt.asn1.DERGeneralizedTime.superclass.constructor.call(this,t);this.hT="18";this.withMillis=false;this.setByDate=function(t){this.hTLV=null;this.isModified=true;this.date=t;this.s=this.formatDate(this.date,"gen",this.withMillis);this.hV=stohex(this.s);};this.getFreshValueHex=function(){if(void 0===this.date&&void 0===this.s){this.date=new Date;this.s=this.formatDate(this.date,"gen",this.withMillis);this.hV=stohex(this.s);}return this.hV};if(void 0!==t){if(void 0!==t.str)this.setString(t.str);else if("string"==typeof t&&t.match(/^[0-9]{14}Z$/))this.setString(t);else if(void 0!==t.hex)this.setStringHex(t.hex);else if(void 0!==t.date)this.setByDate(t.date);if(true===t.millis)this.withMillis=true;}};pt.lang.extend(vt.asn1.DERGeneralizedTime,vt.asn1.DERAbstractTime);vt.asn1.DERSequence=function(t){vt.asn1.DERSequence.superclass.constructor.call(this,t);this.hT="30";this.getFreshValueHex=function(){var t="";for(var e=0;e<this.asn1Array.length;e++){var r=this.asn1Array[e];t+=r.getEncodedHex();}this.hV=t;return this.hV};};pt.lang.extend(vt.asn1.DERSequence,vt.asn1.DERAbstractStructured);vt.asn1.DERSet=function(t){vt.asn1.DERSet.superclass.constructor.call(this,t);this.hT="31";this.sortFlag=true;this.getFreshValueHex=function(){var t=new Array;for(var e=0;e<this.asn1Array.length;e++){var r=this.asn1Array[e];t.push(r.getEncodedHex());}if(true==this.sortFlag)t.sort();this.hV=t.join("");return this.hV};if("undefined"!=typeof t)if("undefined"!=typeof t.sortflag&&false==t.sortflag)this.sortFlag=false;};pt.lang.extend(vt.asn1.DERSet,vt.asn1.DERAbstractStructured);vt.asn1.DERTaggedObject=function(t){vt.asn1.DERTaggedObject.superclass.constructor.call(this);this.hT="a0";this.hV="";this.isExplicit=true;this.asn1Object=null;this.setASN1Object=function(t,e,r){this.hT=e;this.isExplicit=t;this.asn1Object=r;if(this.isExplicit){this.hV=this.asn1Object.getEncodedHex();this.hTLV=null;this.isModified=true;}else {this.hV=null;this.hTLV=r.getEncodedHex();this.hTLV=this.hTLV.replace(/^../,e);this.isModified=false;}};this.getFreshValueHex=function(){return this.hV};if("undefined"!=typeof t){if("undefined"!=typeof t["tag"])this.hT=t["tag"];if("undefined"!=typeof t["explicit"])this.isExplicit=t["explicit"];if("undefined"!=typeof t["obj"]){this.asn1Object=t["obj"];this.setASN1Object(this.isExplicit,this.hT,this.asn1Object);}}};pt.lang.extend(vt.asn1.DERTaggedObject,vt.asn1.ASN1Object);var gt=function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r];};return t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e;}e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i);}}();var yt=function(t){gt(e,t);function e(r){var i=t.call(this)||this;if(r)if("string"===typeof r)i.parseKey(r);else if(e.hasPrivateKeyProperty(r)||e.hasPublicKeyProperty(r))i.parsePropertiesFrom(r);return i}e.prototype.parseKey=function(t){try{var e=0;var r=0;var i=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/;var n=i.test(t)?y.decode(t):w.unarmor(t);var s=I.decode(n);if(3===s.sub.length)s=s.sub[2].sub[0];if(9===s.sub.length){e=s.sub[1].getHexStringValue();this.n=K(e,16);r=s.sub[2].getHexStringValue();this.e=parseInt(r,16);var a=s.sub[3].getHexStringValue();this.d=K(a,16);var o=s.sub[4].getHexStringValue();this.p=K(o,16);var u=s.sub[5].getHexStringValue();this.q=K(u,16);var c=s.sub[6].getHexStringValue();this.dmp1=K(c,16);var l=s.sub[7].getHexStringValue();this.dmq1=K(l,16);var f=s.sub[8].getHexStringValue();this.coeff=K(f,16);}else if(2===s.sub.length){var h=s.sub[1];var d=h.sub[0];e=d.sub[0].getHexStringValue();this.n=K(e,16);r=d.sub[1].getHexStringValue();this.e=parseInt(r,16);}else return false;return true}catch(t){return false}};e.prototype.getPrivateBaseKey=function(){var t={array:[new vt.asn1.DERInteger({int:0}),new vt.asn1.DERInteger({bigint:this.n}),new vt.asn1.DERInteger({int:this.e}),new vt.asn1.DERInteger({bigint:this.d}),new vt.asn1.DERInteger({bigint:this.p}),new vt.asn1.DERInteger({bigint:this.q}),new vt.asn1.DERInteger({bigint:this.dmp1}),new vt.asn1.DERInteger({bigint:this.dmq1}),new vt.asn1.DERInteger({bigint:this.coeff})]};var e=new vt.asn1.DERSequence(t);return e.getEncodedHex()};e.prototype.getPrivateBaseKeyB64=function(){return d(this.getPrivateBaseKey())};e.prototype.getPublicBaseKey=function(){var t=new vt.asn1.DERSequence({array:[new vt.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new vt.asn1.DERNull]});var e=new vt.asn1.DERSequence({array:[new vt.asn1.DERInteger({bigint:this.n}),new vt.asn1.DERInteger({int:this.e})]});var r=new vt.asn1.DERBitString({hex:"00"+e.getEncodedHex()});var i=new vt.asn1.DERSequence({array:[t,r]});return i.getEncodedHex()};e.prototype.getPublicBaseKeyB64=function(){return d(this.getPublicBaseKey())};e.wordwrap=function(t,e){e=e||64;if(!t)return t;var r="(.{1,"+e+"})( +|$\n?)|(.{1,"+e+"})";return t.match(RegExp(r,"g")).join("\n")};e.prototype.getPrivateKey=function(){var t="-----BEGIN RSA PRIVATE KEY-----\n";t+=e.wordwrap(this.getPrivateBaseKeyB64())+"\n";t+="-----END RSA PRIVATE KEY-----";return t};e.prototype.getPublicKey=function(){var t="-----BEGIN PUBLIC KEY-----\n";t+=e.wordwrap(this.getPublicBaseKeyB64())+"\n";t+="-----END PUBLIC KEY-----";return t};e.hasPublicKeyProperty=function(t){t=t||{};return t.hasOwnProperty("n")&&t.hasOwnProperty("e")};e.hasPrivateKeyProperty=function(t){t=t||{};return t.hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")};e.prototype.parsePropertiesFrom=function(t){this.n=t.n;this.e=t.e;if(t.hasOwnProperty("d")){this.d=t.d;this.p=t.p;this.q=t.q;this.dmp1=t.dmp1;this.dmq1=t.dmq1;this.coeff=t.coeff;}};return e}(ut);const mt={i:"3.2.1"};var wt=function(){function t(t){if(void 0===t)t={};t=t||{};this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024;this.default_public_exponent=t.default_public_exponent||"010001";this.log=t.log||false;this.key=null;}t.prototype.setKey=function(t){if(this.log&&this.key)console.warn("A key was already set, overriding existing.");this.key=new yt(t);};t.prototype.setPrivateKey=function(t){this.setKey(t);};t.prototype.setPublicKey=function(t){this.setKey(t);};t.prototype.decrypt=function(t){try{return this.getKey().decrypt(p(t))}catch(t){return false}};t.prototype.encrypt=function(t){try{return this.getKey().encrypt(t)}catch(t){return false}};t.prototype.encryptLong=function(t){try{return d(this.getKey().encryptLong(t))}catch(t){return false}};t.prototype.decryptLong=function(t){try{return this.getKey().decryptLong(t)}catch(t){return false}};t.prototype.sign=function(t,e,r){try{return d(this.getKey().sign(t,e,r))}catch(t){return false}};t.prototype.verify=function(t,e,r){try{return this.getKey().verify(t,p(e),r)}catch(t){return false}};t.prototype.getKey=function(t){if(!this.key){this.key=new yt;if(t&&"[object Function]"==={}.toString.call(t)){this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);return}this.key.generate(this.default_key_size,this.default_public_exponent);}return this.key};t.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()};t.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()};t.prototype.getPublicKey=function(){return this.getKey().getPublicKey()};t.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()};t.version=mt.i;return t}();const St=wt;},2480:()=>{}};var e={};function r(i){var n=e[i];if(void 0!==n)return n.exports;var s=e[i]={id:i,loaded:false,exports:{}};t[i].call(s.exports,s,s.exports,r);s.loaded=true;return s.exports}(()=>{r.d=(t,e)=>{for(var i in e)if(r.o(e,i)&&!r.o(t,i))Object.defineProperty(t,i,{enumerable:true,get:e[i]});};})();(()=>{r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}();})();(()=>{r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);})();(()=>{r.r=t=>{if("undefined"!==typeof Symbol&&Symbol.toStringTag)Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});Object.defineProperty(t,"__esModule",{value:true});};})();(()=>{r.nmd=t=>{t.paths=[];if(!t.children)t.children=[];return t};})();var i=r(5987);return i})()));
99
- });
13
+ (function (module, exports) {
14
+ (function t(e,r){module.exports=r();})(self,(()=>(()=>{var t={4736:(t,e,r)=>{t=r.nmd(t);var i;var n=function(t){var e=1e7,r=7,i=9007199254740992,s=d(i),a="0123456789abcdefghijklmnopqrstuvwxyz";var o="function"===typeof BigInt;function u(t,e,r,i){if("undefined"===typeof t)return u[0];if("undefined"!==typeof e)return 10===+e&&!r?st(t):X(t,e,r,i);return st(t)}function c(t,e){this.value=t;this.sign=e;this.isSmall=false;}c.prototype=Object.create(u.prototype);function l(t){this.value=t;this.sign=t<0;this.isSmall=true;}l.prototype=Object.create(u.prototype);function f(t){this.value=t;}f.prototype=Object.create(u.prototype);function h(t){return -i<t&&t<i}function d(t){if(t<1e7)return [t];if(t<1e14)return [t%1e7,Math.floor(t/1e7)];return [t%1e7,Math.floor(t/1e7)%1e7,Math.floor(t/1e14)]}function v(t){p(t);var r=t.length;if(r<4&&N(t,s)<0)switch(r){case 0:return 0;case 1:return t[0];case 2:return t[0]+t[1]*e;default:return t[0]+(t[1]+t[2]*e)*e}return t}function p(t){var e=t.length;while(0===t[--e]);t.length=e+1;}function g(t){var e=new Array(t);var r=-1;while(++r<t)e[r]=0;return e}function y(t){if(t>0)return Math.floor(t);return Math.ceil(t)}function m(t,r){var i=t.length,n=r.length,s=new Array(i),a=0,o=e,u,c;for(c=0;c<n;c++){u=t[c]+r[c]+a;a=u>=o?1:0;s[c]=u-a*o;}while(c<i){u=t[c]+a;a=u===o?1:0;s[c++]=u-a*o;}if(a>0)s.push(a);return s}function w(t,e){if(t.length>=e.length)return m(t,e);return m(e,t)}function _(t,r){var i=t.length,n=new Array(i),s=e,a,o;for(o=0;o<i;o++){a=t[o]-s+r;r=Math.floor(a/s);n[o]=a-r*s;r+=1;}while(r>0){n[o++]=r%s;r=Math.floor(r/s);}return n}c.prototype.add=function(t){var e=st(t);if(this.sign!==e.sign)return this.subtract(e.negate());var r=this.value,i=e.value;if(e.isSmall)return new c(_(r,Math.abs(i)),this.sign);return new c(w(r,i),this.sign)};c.prototype.plus=c.prototype.add;l.prototype.add=function(t){var e=st(t);var r=this.value;if(r<0!==e.sign)return this.subtract(e.negate());var i=e.value;if(e.isSmall){if(h(r+i))return new l(r+i);i=d(Math.abs(i));}return new c(_(i,Math.abs(r)),r<0)};l.prototype.plus=l.prototype.add;f.prototype.add=function(t){return new f(this.value+st(t).value)};f.prototype.plus=f.prototype.add;function S(t,r){var i=t.length,n=r.length,s=new Array(i),a=0,o=e,u,c;for(u=0;u<n;u++){c=t[u]-a-r[u];if(c<0){c+=o;a=1;}else a=0;s[u]=c;}for(u=n;u<i;u++){c=t[u]-a;if(c<0)c+=o;else {s[u++]=c;break}s[u]=c;}for(;u<i;u++)s[u]=t[u];p(s);return s}function b(t,e,r){var i;if(N(t,e)>=0)i=S(t,e);else {i=S(e,t);r=!r;}i=v(i);if("number"===typeof i){if(r)i=-i;return new l(i)}return new c(i,r)}function E(t,r,i){var n=t.length,s=new Array(n),a=-r,o=e,u,f;for(u=0;u<n;u++){f=t[u]+a;a=Math.floor(f/o);f%=o;s[u]=f<0?f+o:f;}s=v(s);if("number"===typeof s){if(i)s=-s;return new l(s)}return new c(s,i)}c.prototype.subtract=function(t){var e=st(t);if(this.sign!==e.sign)return this.add(e.negate());var r=this.value,i=e.value;if(e.isSmall)return E(r,Math.abs(i),this.sign);return b(r,i,this.sign)};c.prototype.minus=c.prototype.subtract;l.prototype.subtract=function(t){var e=st(t);var r=this.value;if(r<0!==e.sign)return this.add(e.negate());var i=e.value;if(e.isSmall)return new l(r-i);return E(i,Math.abs(r),r>=0)};l.prototype.minus=l.prototype.subtract;f.prototype.subtract=function(t){return new f(this.value-st(t).value)};f.prototype.minus=f.prototype.subtract;c.prototype.negate=function(){return new c(this.value,!this.sign)};l.prototype.negate=function(){var t=this.sign;var e=new l(-this.value);e.sign=!t;return e};f.prototype.negate=function(){return new f(-this.value)};c.prototype.abs=function(){return new c(this.value,false)};l.prototype.abs=function(){return new l(Math.abs(this.value))};f.prototype.abs=function(){return new f(this.value>=0?this.value:-this.value)};function D(t,r){var i=t.length,n=r.length,s=i+n,a=g(s),o=e,u,c,l,f,h;for(l=0;l<i;++l){f=t[l];for(var d=0;d<n;++d){h=r[d];u=f*h+a[l+d];c=Math.floor(u/o);a[l+d]=u-c*o;a[l+d+1]+=c;}}p(a);return a}function T(t,r){var i=t.length,n=new Array(i),s=e,a=0,o,u;for(u=0;u<i;u++){o=t[u]*r+a;a=Math.floor(o/s);n[u]=o-a*s;}while(a>0){n[u++]=a%s;a=Math.floor(a/s);}return n}function M(t,e){var r=[];while(e-- >0)r.push(0);return r.concat(t)}function I(t,e){var r=Math.max(t.length,e.length);if(r<=30)return D(t,e);r=Math.ceil(r/2);var i=t.slice(r),n=t.slice(0,r),s=e.slice(r),a=e.slice(0,r);var o=I(n,a),u=I(i,s),c=I(w(n,i),w(a,s));var l=w(w(o,M(S(S(c,o),u),r)),M(u,2*r));p(l);return l}function A(t,e){return -.012*t-.012*e+15e-6*t*e>0}c.prototype.multiply=function(t){var r=st(t),i=this.value,n=r.value,s=this.sign!==r.sign,a;if(r.isSmall){if(0===n)return u[0];if(1===n)return this;if(-1===n)return this.negate();a=Math.abs(n);if(a<e)return new c(T(i,a),s);n=d(a);}if(A(i.length,n.length))return new c(I(i,n),s);return new c(D(i,n),s)};c.prototype.times=c.prototype.multiply;function x(t,r,i){if(t<e)return new c(T(r,t),i);return new c(D(r,d(t)),i)}l.prototype._multiplyBySmall=function(t){if(h(t.value*this.value))return new l(t.value*this.value);return x(Math.abs(t.value),d(Math.abs(this.value)),this.sign!==t.sign)};c.prototype._multiplyBySmall=function(t){if(0===t.value)return u[0];if(1===t.value)return this;if(-1===t.value)return this.negate();return x(Math.abs(t.value),this.value,this.sign!==t.sign)};l.prototype.multiply=function(t){return st(t)._multiplyBySmall(this)};l.prototype.times=l.prototype.multiply;f.prototype.multiply=function(t){return new f(this.value*st(t).value)};f.prototype.times=f.prototype.multiply;function R(t){var r=t.length,i=g(r+r),n=e,s,a,o,u,c;for(o=0;o<r;o++){u=t[o];a=0-u*u;for(var l=o;l<r;l++){c=t[l];s=2*(u*c)+i[o+l]+a;a=Math.floor(s/n);i[o+l]=s-a*n;}i[o+r]=a;}p(i);return i}c.prototype.square=function(){return new c(R(this.value),false)};l.prototype.square=function(){var t=this.value*this.value;if(h(t))return new l(t);return new c(R(d(Math.abs(this.value))),false)};f.prototype.square=function(t){return new f(this.value*this.value)};function B(t,r){var i=t.length,n=r.length,s=e,a=g(r.length),o=r[n-1],u=Math.ceil(s/(2*o)),c=T(t,u),l=T(r,u),f,h,d,p,y,m,w;if(c.length<=i)c.push(0);l.push(0);o=l[n-1];for(h=i-n;h>=0;h--){f=s-1;if(c[h+n]!==o)f=Math.floor((c[h+n]*s+c[h+n-1])/o);d=0;p=0;m=l.length;for(y=0;y<m;y++){d+=f*l[y];w=Math.floor(d/s);p+=c[h+y]-(d-w*s);d=w;if(p<0){c[h+y]=p+s;p=-1;}else {c[h+y]=p;p=0;}}while(0!==p){f-=1;d=0;for(y=0;y<m;y++){d+=c[h+y]-s+l[y];if(d<0){c[h+y]=d+s;d=0;}else {c[h+y]=d;d=1;}}p+=d;}a[h]=f;}c=k(c,u)[0];return [v(a),v(c)]}function O(t,r){var i=t.length,n=r.length,s=[],a=[],o=e,u,c,l,f,h;while(i){a.unshift(t[--i]);p(a);if(N(a,r)<0){s.push(0);continue}c=a.length;l=a[c-1]*o+a[c-2];f=r[n-1]*o+r[n-2];if(c>n)l=(l+1)*o;u=Math.ceil(l/f);do{h=T(r,u);if(N(h,a)<=0)break;u--;}while(u);s.push(u);a=S(a,h);}s.reverse();return [v(s),v(a)]}function k(t,r){var i=t.length,n=g(i),s=e,a,o,u,c;u=0;for(a=i-1;a>=0;--a){c=u*s+t[a];o=y(c/r);u=c-o*r;n[a]=0|o;}return [n,0|u]}function C(t,r){var i,n=st(r);if(o)return [new f(t.value/n.value),new f(t.value%n.value)];var s=t.value,a=n.value;var h;if(0===a)throw new Error("Cannot divide by zero");if(t.isSmall){if(n.isSmall)return [new l(y(s/a)),new l(s%a)];return [u[0],t]}if(n.isSmall){if(1===a)return [t,u[0]];if(-1==a)return [t.negate(),u[0]];var p=Math.abs(a);if(p<e){i=k(s,p);h=v(i[0]);var g=i[1];if(t.sign)g=-g;if("number"===typeof h){if(t.sign!==n.sign)h=-h;return [new l(h),new l(g)]}return [new c(h,t.sign!==n.sign),new l(g)]}a=d(p);}var m=N(s,a);if(-1===m)return [u[0],t];if(0===m)return [u[t.sign===n.sign?1:-1],u[0]];if(s.length+a.length<=200)i=B(s,a);else i=O(s,a);h=i[0];var w=t.sign!==n.sign,_=i[1],S=t.sign;if("number"===typeof h){if(w)h=-h;h=new l(h);}else h=new c(h,w);if("number"===typeof _){if(S)_=-_;_=new l(_);}else _=new c(_,S);return [h,_]}c.prototype.divmod=function(t){var e=C(this,t);return {quotient:e[0],remainder:e[1]}};f.prototype.divmod=l.prototype.divmod=c.prototype.divmod;c.prototype.divide=function(t){return C(this,t)[0]};f.prototype.over=f.prototype.divide=function(t){return new f(this.value/st(t).value)};l.prototype.over=l.prototype.divide=c.prototype.over=c.prototype.divide;c.prototype.mod=function(t){return C(this,t)[1]};f.prototype.mod=f.prototype.remainder=function(t){return new f(this.value%st(t).value)};l.prototype.remainder=l.prototype.mod=c.prototype.remainder=c.prototype.mod;c.prototype.pow=function(t){var e=st(t),r=this.value,i=e.value,n,s,a;if(0===i)return u[1];if(0===r)return u[0];if(1===r)return u[1];if(-1===r)return e.isEven()?u[1]:u[-1];if(e.sign)return u[0];if(!e.isSmall)throw new Error("The exponent "+e.toString()+" is too large.");if(this.isSmall)if(h(n=Math.pow(r,i)))return new l(y(n));s=this;a=u[1];while(true){if(i&1===1){a=a.times(s);--i;}if(0===i)break;i/=2;s=s.square();}return a};l.prototype.pow=c.prototype.pow;f.prototype.pow=function(t){var e=st(t);var r=this.value,i=e.value;var n=BigInt(0),s=BigInt(1),a=BigInt(2);if(i===n)return u[1];if(r===n)return u[0];if(r===s)return u[1];if(r===BigInt(-1))return e.isEven()?u[1]:u[-1];if(e.isNegative())return new f(n);var o=this;var c=u[1];while(true){if((i&s)===s){c=c.times(o);--i;}if(i===n)break;i/=a;o=o.square();}return c};c.prototype.modPow=function(t,e){t=st(t);e=st(e);if(e.isZero())throw new Error("Cannot take modPow with modulus 0");var r=u[1],i=this.mod(e);if(t.isNegative()){t=t.multiply(u[-1]);i=i.modInv(e);}while(t.isPositive()){if(i.isZero())return u[0];if(t.isOdd())r=r.multiply(i).mod(e);t=t.divide(2);i=i.square().mod(e);}return r};f.prototype.modPow=l.prototype.modPow=c.prototype.modPow;function N(t,e){if(t.length!==e.length)return t.length>e.length?1:-1;for(var r=t.length-1;r>=0;r--)if(t[r]!==e[r])return t[r]>e[r]?1:-1;return 0}c.prototype.compareAbs=function(t){var e=st(t),r=this.value,i=e.value;if(e.isSmall)return 1;return N(r,i)};l.prototype.compareAbs=function(t){var e=st(t),r=Math.abs(this.value),i=e.value;if(e.isSmall){i=Math.abs(i);return r===i?0:r>i?1:-1}return -1};f.prototype.compareAbs=function(t){var e=this.value;var r=st(t).value;e=e>=0?e:-e;r=r>=0?r:-r;return e===r?0:e>r?1:-1};c.prototype.compare=function(t){if(t===1/0)return -1;if(t===-1/0)return 1;var e=st(t),r=this.value,i=e.value;if(this.sign!==e.sign)return e.sign?1:-1;if(e.isSmall)return this.sign?-1:1;return N(r,i)*(this.sign?-1:1)};c.prototype.compareTo=c.prototype.compare;l.prototype.compare=function(t){if(t===1/0)return -1;if(t===-1/0)return 1;var e=st(t),r=this.value,i=e.value;if(e.isSmall)return r==i?0:r>i?1:-1;if(r<0!==e.sign)return r<0?-1:1;return r<0?1:-1};l.prototype.compareTo=l.prototype.compare;f.prototype.compare=function(t){if(t===1/0)return -1;if(t===-1/0)return 1;var e=this.value;var r=st(t).value;return e===r?0:e>r?1:-1};f.prototype.compareTo=f.prototype.compare;c.prototype.equals=function(t){return 0===this.compare(t)};f.prototype.eq=f.prototype.equals=l.prototype.eq=l.prototype.equals=c.prototype.eq=c.prototype.equals;c.prototype.notEquals=function(t){return 0!==this.compare(t)};f.prototype.neq=f.prototype.notEquals=l.prototype.neq=l.prototype.notEquals=c.prototype.neq=c.prototype.notEquals;c.prototype.greater=function(t){return this.compare(t)>0};f.prototype.gt=f.prototype.greater=l.prototype.gt=l.prototype.greater=c.prototype.gt=c.prototype.greater;c.prototype.lesser=function(t){return this.compare(t)<0};f.prototype.lt=f.prototype.lesser=l.prototype.lt=l.prototype.lesser=c.prototype.lt=c.prototype.lesser;c.prototype.greaterOrEquals=function(t){return this.compare(t)>=0};f.prototype.geq=f.prototype.greaterOrEquals=l.prototype.geq=l.prototype.greaterOrEquals=c.prototype.geq=c.prototype.greaterOrEquals;c.prototype.lesserOrEquals=function(t){return this.compare(t)<=0};f.prototype.leq=f.prototype.lesserOrEquals=l.prototype.leq=l.prototype.lesserOrEquals=c.prototype.leq=c.prototype.lesserOrEquals;c.prototype.isEven=function(){return 0===(1&this.value[0])};l.prototype.isEven=function(){return 0===(1&this.value)};f.prototype.isEven=function(){return (this.value&BigInt(1))===BigInt(0)};c.prototype.isOdd=function(){return 1===(1&this.value[0])};l.prototype.isOdd=function(){return 1===(1&this.value)};f.prototype.isOdd=function(){return (this.value&BigInt(1))===BigInt(1)};c.prototype.isPositive=function(){return !this.sign};l.prototype.isPositive=function(){return this.value>0};f.prototype.isPositive=l.prototype.isPositive;c.prototype.isNegative=function(){return this.sign};l.prototype.isNegative=function(){return this.value<0};f.prototype.isNegative=l.prototype.isNegative;c.prototype.isUnit=function(){return false};l.prototype.isUnit=function(){return 1===Math.abs(this.value)};f.prototype.isUnit=function(){return this.abs().value===BigInt(1)};c.prototype.isZero=function(){return false};l.prototype.isZero=function(){return 0===this.value};f.prototype.isZero=function(){return this.value===BigInt(0)};c.prototype.isDivisibleBy=function(t){var e=st(t);if(e.isZero())return false;if(e.isUnit())return true;if(0===e.compareAbs(2))return this.isEven();return this.mod(e).isZero()};f.prototype.isDivisibleBy=l.prototype.isDivisibleBy=c.prototype.isDivisibleBy;function P(t){var e=t.abs();if(e.isUnit())return false;if(e.equals(2)||e.equals(3)||e.equals(5))return true;if(e.isEven()||e.isDivisibleBy(3)||e.isDivisibleBy(5))return false;if(e.lesser(49))return true}function V(t,e){var r=t.prev(),i=r,s=0,a,u,c;while(i.isEven())i=i.divide(2),s++;t:for(u=0;u<e.length;u++){if(t.lesser(e[u]))continue;c=n(e[u]).modPow(i,t);if(c.isUnit()||c.equals(r))continue;for(a=s-1;0!=a;a--){c=c.square().mod(t);if(c.isUnit())return false;if(c.equals(r))continue t}return false}return true}c.prototype.isPrime=function(e){var r=P(this);if(r!==t)return r;var i=this.abs();var s=i.bitLength();if(s<=64)return V(i,[2,3,5,7,11,13,17,19,23,29,31,37]);var a=Math.log(2)*s.toJSNumber();var o=Math.ceil(true===e?2*Math.pow(a,2):a);for(var u=[],c=0;c<o;c++)u.push(n(c+2));return V(i,u)};f.prototype.isPrime=l.prototype.isPrime=c.prototype.isPrime;c.prototype.isProbablePrime=function(e,r){var i=P(this);if(i!==t)return i;var s=this.abs();var a=e===t?5:e;for(var o=[],u=0;u<a;u++)o.push(n.randBetween(2,s.minus(2),r));return V(s,o)};f.prototype.isProbablePrime=l.prototype.isProbablePrime=c.prototype.isProbablePrime;c.prototype.modInv=function(t){var e=n.zero,r=n.one,i=st(t),s=this.abs(),a,o,u;while(!s.isZero()){a=i.divide(s);o=e;u=i;e=r;i=s;r=o.subtract(a.multiply(r));s=u.subtract(a.multiply(s));}if(!i.isUnit())throw new Error(this.toString()+" and "+t.toString()+" are not co-prime");if(-1===e.compare(0))e=e.add(t);if(this.isNegative())return e.negate();return e};f.prototype.modInv=l.prototype.modInv=c.prototype.modInv;c.prototype.next=function(){var t=this.value;if(this.sign)return E(t,1,this.sign);return new c(_(t,1),this.sign)};l.prototype.next=function(){var t=this.value;if(t+1<i)return new l(t+1);return new c(s,false)};f.prototype.next=function(){return new f(this.value+BigInt(1))};c.prototype.prev=function(){var t=this.value;if(this.sign)return new c(_(t,1),true);return E(t,1,this.sign)};l.prototype.prev=function(){var t=this.value;if(t-1>-i)return new l(t-1);return new c(s,true)};f.prototype.prev=function(){return new f(this.value-BigInt(1))};var L=[1];while(2*L[L.length-1]<=e)L.push(2*L[L.length-1]);var H=L.length,U=L[H-1];function K(t){return Math.abs(t)<=e}c.prototype.shiftLeft=function(t){var e=st(t).toJSNumber();if(!K(e))throw new Error(String(e)+" is too large for shifting.");if(e<0)return this.shiftRight(-e);var r=this;if(r.isZero())return r;while(e>=H){r=r.multiply(U);e-=H-1;}return r.multiply(L[e])};f.prototype.shiftLeft=l.prototype.shiftLeft=c.prototype.shiftLeft;c.prototype.shiftRight=function(t){var e;var r=st(t).toJSNumber();if(!K(r))throw new Error(String(r)+" is too large for shifting.");if(r<0)return this.shiftLeft(-r);var i=this;while(r>=H){if(i.isZero()||i.isNegative()&&i.isUnit())return i;e=C(i,U);i=e[1].isNegative()?e[0].prev():e[0];r-=H-1;}e=C(i,L[r]);return e[1].isNegative()?e[0].prev():e[0]};f.prototype.shiftRight=l.prototype.shiftRight=c.prototype.shiftRight;function j(t,e,r){e=st(e);var i=t.isNegative(),s=e.isNegative();var a=i?t.not():t,o=s?e.not():e;var u=0,c=0;var l=null,f=null;var h=[];while(!a.isZero()||!o.isZero()){l=C(a,U);u=l[1].toJSNumber();if(i)u=U-1-u;f=C(o,U);c=f[1].toJSNumber();if(s)c=U-1-c;a=l[0];o=f[0];h.push(r(u,c));}var d=0!==r(i?1:0,s?1:0)?n(-1):n(0);for(var v=h.length-1;v>=0;v-=1)d=d.multiply(U).add(n(h[v]));return d}c.prototype.not=function(){return this.negate().prev()};f.prototype.not=l.prototype.not=c.prototype.not;c.prototype.and=function(t){return j(this,t,(function(t,e){return t&e}))};f.prototype.and=l.prototype.and=c.prototype.and;c.prototype.or=function(t){return j(this,t,(function(t,e){return t|e}))};f.prototype.or=l.prototype.or=c.prototype.or;c.prototype.xor=function(t){return j(this,t,(function(t,e){return t^e}))};f.prototype.xor=l.prototype.xor=c.prototype.xor;var q=1<<30,F=(e&-e)*(e&-e)|q;function z(t){var r=t.value,i="number"===typeof r?r|q:"bigint"===typeof r?r|BigInt(q):r[0]+r[1]*e|F;return i&-i}function G(t,e){if(e.compareTo(t)<=0){var r=G(t,e.square(e));var i=r.p;var s=r.e;var a=i.multiply(e);return a.compareTo(t)<=0?{p:a,e:2*s+1}:{p:i,e:2*s}}return {p:n(1),e:0}}c.prototype.bitLength=function(){var t=this;if(t.compareTo(n(0))<0)t=t.negate().subtract(n(1));if(0===t.compareTo(n(0)))return n(0);return n(G(t,n(2)).e).add(n(1))};f.prototype.bitLength=l.prototype.bitLength=c.prototype.bitLength;function Y(t,e){t=st(t);e=st(e);return t.greater(e)?t:e}function W(t,e){t=st(t);e=st(e);return t.lesser(e)?t:e}function J(t,e){t=st(t).abs();e=st(e).abs();if(t.equals(e))return t;if(t.isZero())return e;if(e.isZero())return t;var r=u[1],i,n;while(t.isEven()&&e.isEven()){i=W(z(t),z(e));t=t.divide(i);e=e.divide(i);r=r.multiply(i);}while(t.isEven())t=t.divide(z(t));do{while(e.isEven())e=e.divide(z(e));if(t.greater(e)){n=e;e=t;t=n;}e=e.subtract(t);}while(!e.isZero());return r.isUnit()?t:t.multiply(r)}function Z(t,e){t=st(t).abs();e=st(e).abs();return t.divide(J(t,e)).multiply(e)}function $(t,r,i){t=st(t);r=st(r);var n=i||Math.random;var s=W(t,r),a=Y(t,r);var o=a.subtract(s).add(1);if(o.isSmall)return s.add(Math.floor(n()*o));var c=et(o,e).value;var l=[],f=true;for(var h=0;h<c.length;h++){var d=f?c[h]+(h+1<c.length?c[h+1]/e:0):e;var v=y(n()*d);l.push(v);if(v<c[h])f=false;}return s.add(u.fromArray(l,e,false))}var X=function(t,e,r,i){r=r||a;t=String(t);if(!i){t=t.toLowerCase();r=r.toLowerCase();}var n=t.length;var s;var o=Math.abs(e);var u={};for(s=0;s<r.length;s++)u[r[s]]=s;for(s=0;s<n;s++){var c=t[s];if("-"===c)continue;if(c in u)if(u[c]>=o){if("1"===c&&1===o)continue;throw new Error(c+" is not a valid digit in base "+e+".")}}e=st(e);var l=[];var f="-"===t[0];for(s=f?1:0;s<t.length;s++){var c=t[s];if(c in u)l.push(st(u[c]));else if("<"===c){var h=s;do{s++;}while(">"!==t[s]&&s<t.length);l.push(st(t.slice(h+1,s)));}else throw new Error(c+" is not a valid character")}return Q(l,e,f)};function Q(t,e,r){var i=u[0],n=u[1],s;for(s=t.length-1;s>=0;s--){i=i.add(t[s].times(n));n=n.times(e);}return r?i.negate():i}function tt(t,e){e=e||a;if(t<e.length)return e[t];return "<"+t+">"}function et(t,e){e=n(e);if(e.isZero()){if(t.isZero())return {value:[0],isNegative:false};throw new Error("Cannot convert nonzero numbers to base 0.")}if(e.equals(-1)){if(t.isZero())return {value:[0],isNegative:false};if(t.isNegative())return {value:[].concat.apply([],Array.apply(null,Array(-t.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:false};var r=Array.apply(null,Array(t.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);r.unshift([1]);return {value:[].concat.apply([],r),isNegative:false}}var i=false;if(t.isNegative()&&e.isPositive()){i=true;t=t.abs();}if(e.isUnit()){if(t.isZero())return {value:[0],isNegative:false};return {value:Array.apply(null,Array(t.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:i}}var s=[];var a=t,o;while(a.isNegative()||a.compareAbs(e)>=0){o=a.divmod(e);a=o.quotient;var u=o.remainder;if(u.isNegative()){u=e.minus(u).abs();a=a.next();}s.push(u.toJSNumber());}s.push(a.toJSNumber());return {value:s.reverse(),isNegative:i}}function rt(t,e,r){var i=et(t,e);return (i.isNegative?"-":"")+i.value.map((function(t){return tt(t,r)})).join("")}c.prototype.toArray=function(t){return et(this,t)};l.prototype.toArray=function(t){return et(this,t)};f.prototype.toArray=function(t){return et(this,t)};c.prototype.toString=function(e,r){if(e===t)e=10;if(10!==e)return rt(this,e,r);var i=this.value,n=i.length,s=String(i[--n]),a="0000000",o;while(--n>=0){o=String(i[n]);s+=a.slice(o.length)+o;}var u=this.sign?"-":"";return u+s};l.prototype.toString=function(e,r){if(e===t)e=10;if(10!=e)return rt(this,e,r);return String(this.value)};f.prototype.toString=l.prototype.toString;f.prototype.toJSON=c.prototype.toJSON=l.prototype.toJSON=function(){return this.toString()};c.prototype.valueOf=function(){return parseInt(this.toString(),10)};c.prototype.toJSNumber=c.prototype.valueOf;l.prototype.valueOf=function(){return this.value};l.prototype.toJSNumber=l.prototype.valueOf;f.prototype.valueOf=f.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};function it(t){if(h(+t)){var e=+t;if(e===y(e))return o?new f(BigInt(e)):new l(e);throw new Error("Invalid integer: "+t)}var i="-"===t[0];if(i)t=t.slice(1);var n=t.split(/e/i);if(n.length>2)throw new Error("Invalid integer: "+n.join("e"));if(2===n.length){var s=n[1];if("+"===s[0])s=s.slice(1);s=+s;if(s!==y(s)||!h(s))throw new Error("Invalid integer: "+s+" is not a valid exponent.");var a=n[0];var u=a.indexOf(".");if(u>=0){s-=a.length-u-1;a=a.slice(0,u)+a.slice(u+1);}if(s<0)throw new Error("Cannot include negative exponent part for integers");a+=new Array(s+1).join("0");t=a;}var d=/^([0-9][0-9]*)$/.test(t);if(!d)throw new Error("Invalid integer: "+t);if(o)return new f(BigInt(i?"-"+t:t));var v=[],g=t.length,m=r,w=g-m;while(g>0){v.push(+t.slice(w,g));w-=m;if(w<0)w=0;g-=m;}p(v);return new c(v,i)}function nt(t){if(o)return new f(BigInt(t));if(h(t)){if(t!==y(t))throw new Error(t+" is not an integer.");return new l(t)}return it(t.toString())}function st(t){if("number"===typeof t)return nt(t);if("string"===typeof t)return it(t);if("bigint"===typeof t)return new f(t);return t}for(var at=0;at<1e3;at++){u[at]=st(at);if(at>0)u[-at]=st(-at);}u.one=u[1];u.zero=u[0];u.minusOne=u[-1];u.max=Y;u.min=W;u.gcd=J;u.lcm=Z;u.isInstance=function(t){return t instanceof c||t instanceof l||t instanceof f};u.randBetween=$;u.fromArray=function(t,e,r){return Q(t.map(st),st(e||10),r)};return u}();if(t.hasOwnProperty("exports"))t.exports=n;i=function(){return n}.call(e,r,e,t),void 0!==i&&(t.exports=i);},452:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(8269),r(8214),r(888),r(5109));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.BlockCipher;var n=e.algo;var s=[];var a=[];var o=[];var u=[];var c=[];var l=[];var f=[];var h=[];var d=[];var v=[];(function(){var t=[];for(var e=0;e<256;e++)if(e<128)t[e]=e<<1;else t[e]=e<<1^283;var r=0;var i=0;for(var e=0;e<256;e++){var n=i^i<<1^i<<2^i<<3^i<<4;n=n>>>8^255&n^99;s[r]=n;a[n]=r;var p=t[r];var g=t[p];var y=t[g];var m=257*t[n]^16843008*n;o[r]=m<<24|m>>>8;u[r]=m<<16|m>>>16;c[r]=m<<8|m>>>24;l[r]=m;var m=16843009*y^65537*g^257*p^16843008*r;f[n]=m<<24|m>>>8;h[n]=m<<16|m>>>16;d[n]=m<<8|m>>>24;v[n]=m;if(!r)r=i=1;else {r=p^t[t[t[y^p]]];i^=t[t[i]];}}})();var p=[0,1,2,4,8,16,32,64,128,27,54];var g=n.AES=i.extend({_doReset:function(){var t;if(this._nRounds&&this._keyPriorReset===this._key)return;var e=this._keyPriorReset=this._key;var r=e.words;var i=e.sigBytes/4;var n=this._nRounds=i+6;var a=4*(n+1);var o=this._keySchedule=[];for(var u=0;u<a;u++)if(u<i)o[u]=r[u];else {t=o[u-1];if(!(u%i)){t=t<<8|t>>>24;t=s[t>>>24]<<24|s[t>>>16&255]<<16|s[t>>>8&255]<<8|s[255&t];t^=p[u/i|0]<<24;}else if(i>6&&u%i==4)t=s[t>>>24]<<24|s[t>>>16&255]<<16|s[t>>>8&255]<<8|s[255&t];o[u]=o[u-i]^t;}var c=this._invKeySchedule=[];for(var l=0;l<a;l++){var u=a-l;if(l%4)var t=o[u];else var t=o[u-4];if(l<4||u<=4)c[l]=t;else c[l]=f[s[t>>>24]]^h[s[t>>>16&255]]^d[s[t>>>8&255]]^v[s[255&t]];}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,o,u,c,l,s);},decryptBlock:function(t,e){var r=t[e+1];t[e+1]=t[e+3];t[e+3]=r;this._doCryptBlock(t,e,this._invKeySchedule,f,h,d,v,a);var r=t[e+1];t[e+1]=t[e+3];t[e+3]=r;},_doCryptBlock:function(t,e,r,i,n,s,a,o){var u=this._nRounds;var c=t[e]^r[0];var l=t[e+1]^r[1];var f=t[e+2]^r[2];var h=t[e+3]^r[3];var d=4;for(var v=1;v<u;v++){var p=i[c>>>24]^n[l>>>16&255]^s[f>>>8&255]^a[255&h]^r[d++];var g=i[l>>>24]^n[f>>>16&255]^s[h>>>8&255]^a[255&c]^r[d++];var y=i[f>>>24]^n[h>>>16&255]^s[c>>>8&255]^a[255&l]^r[d++];var m=i[h>>>24]^n[c>>>16&255]^s[l>>>8&255]^a[255&f]^r[d++];c=p;l=g;f=y;h=m;}var p=(o[c>>>24]<<24|o[l>>>16&255]<<16|o[f>>>8&255]<<8|o[255&h])^r[d++];var g=(o[l>>>24]<<24|o[f>>>16&255]<<16|o[h>>>8&255]<<8|o[255&c])^r[d++];var y=(o[f>>>24]<<24|o[h>>>16&255]<<16|o[c>>>8&255]<<8|o[255&l])^r[d++];var m=(o[h>>>24]<<24|o[c>>>16&255]<<16|o[l>>>8&255]<<8|o[255&f])^r[d++];t[e]=p;t[e+1]=g;t[e+2]=y;t[e+3]=m;},keySize:256/32});e.AES=i._createHelper(g);})();return t.AES}));},5109:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(888));})(this,(function(t){t.lib.Cipher||function(e){var r=t;var i=r.lib;var n=i.Base;var s=i.WordArray;var a=i.BufferedBlockAlgorithm;var o=r.enc;o.Utf8;var c=o.Base64;var l=r.algo;var f=l.EvpKDF;var h=i.Cipher=a.extend({cfg:n.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,r){this.cfg=this.cfg.extend(r);this._xformMode=t;this._key=e;this.reset();},reset:function(){a.reset.call(this);this._doReset();},process:function(t){this._append(t);return this._process()},finalize:function(t){if(t)this._append(t);var e=this._doFinalize();return e},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){if("string"==typeof t)return M;else return E}return function(e){return {encrypt:function(r,i,n){return t(i).encrypt(e,r,i,n)},decrypt:function(r,i,n){return t(i).decrypt(e,r,i,n)}}}}()});i.StreamCipher=h.extend({_doFinalize:function(){var t=this._process(!!"flush");return t},blockSize:1});var v=r.mode={};var p=i.BlockCipherMode=n.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t;this._iv=e;}});var g=v.CBC=function(){var t=p.extend();t.Encryptor=t.extend({processBlock:function(t,e){var i=this._cipher;var n=i.blockSize;r.call(this,t,e,n);i.encryptBlock(t,e);this._prevBlock=t.slice(e,e+n);}});t.Decryptor=t.extend({processBlock:function(t,e){var i=this._cipher;var n=i.blockSize;var s=t.slice(e,e+n);i.decryptBlock(t,e);r.call(this,t,e,n);this._prevBlock=s;}});function r(t,r,i){var n;var s=this._iv;if(s){n=s;this._iv=e;}else n=this._prevBlock;for(var a=0;a<i;a++)t[r+a]^=n[a];}return t}();var y=r.pad={};var m=y.Pkcs7={pad:function(t,e){var r=4*e;var i=r-t.sigBytes%r;var n=i<<24|i<<16|i<<8|i;var a=[];for(var o=0;o<i;o+=4)a.push(n);var u=s.create(a,i);t.concat(u);},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e;}};i.BlockCipher=h.extend({cfg:h.cfg.extend({mode:g,padding:m}),reset:function(){var t;h.reset.call(this);var e=this.cfg;var r=e.iv;var i=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)t=i.createEncryptor;else {t=i.createDecryptor;this._minBufferSize=1;}if(this._mode&&this._mode.__creator==t)this._mode.init(this,r&&r.words);else {this._mode=t.call(i,this,r&&r.words);this._mode.__creator=t;}},_doProcessBlock:function(t,e){this._mode.processBlock(t,e);},_doFinalize:function(){var t;var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);t=this._process(!!"flush");}else {t=this._process(!!"flush");e.unpad(t);}return t},blockSize:128/32});var _=i.CipherParams=n.extend({init:function(t){this.mixIn(t);},toString:function(t){return (t||this.formatter).stringify(this)}});var S=r.format={};var b=S.OpenSSL={stringify:function(t){var e;var r=t.ciphertext;var i=t.salt;if(i)e=s.create([1398893684,1701076831]).concat(i).concat(r);else e=r;return e.toString(c)},parse:function(t){var e;var r=c.parse(t);var i=r.words;if(1398893684==i[0]&&1701076831==i[1]){e=s.create(i.slice(2,4));i.splice(0,4);r.sigBytes-=16;}return _.create({ciphertext:r,salt:e})}};var E=i.SerializableCipher=n.extend({cfg:n.extend({format:b}),encrypt:function(t,e,r,i){i=this.cfg.extend(i);var n=t.createEncryptor(r,i);var s=n.finalize(e);var a=n.cfg;return _.create({ciphertext:s,key:r,iv:a.iv,algorithm:t,mode:a.mode,padding:a.padding,blockSize:t.blockSize,formatter:i.format})},decrypt:function(t,e,r,i){i=this.cfg.extend(i);e=this._parse(e,i.format);var n=t.createDecryptor(r,i).finalize(e.ciphertext);return n},_parse:function(t,e){if("string"==typeof t)return e.parse(t,this);else return t}});var D=r.kdf={};var T=D.OpenSSL={execute:function(t,e,r,i){if(!i)i=s.random(64/8);var n=f.create({keySize:e+r}).compute(t,i);var a=s.create(n.words.slice(e),4*r);n.sigBytes=4*e;return _.create({key:n,iv:a,salt:i})}};var M=i.PasswordBasedCipher=E.extend({cfg:E.cfg.extend({kdf:T}),encrypt:function(t,e,r,i){i=this.cfg.extend(i);var n=i.kdf.execute(r,t.keySize,t.ivSize);i.iv=n.iv;var s=E.encrypt.call(this,t,e,n.key,i);s.mixIn(n);return s},decrypt:function(t,e,r,i){i=this.cfg.extend(i);e=this._parse(e,i.format);var n=i.kdf.execute(r,t.keySize,t.ivSize,e.salt);i.iv=n.iv;var s=E.decrypt.call(this,t,e,n.key,i);return s}});}();}));},8249:function(t,e,r){(function(r,i){t.exports=i();})(this,(function(){var t=t||function(t,e){var i;if("undefined"!==typeof window&&window.crypto)i=window.crypto;if("undefined"!==typeof self&&self.crypto)i=self.crypto;if("undefined"!==typeof globalThis&&globalThis.crypto)i=globalThis.crypto;if(!i&&"undefined"!==typeof window&&window.msCrypto)i=window.msCrypto;if(!i&&"undefined"!==typeof r.g&&r.g.crypto)i=r.g.crypto;if(!i&&"function"==="function")try{i=r(2480);}catch(t){}var n=function(){if(i){if("function"===typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"===typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")};var s=Object.create||function(){function t(){}return function(e){var r;t.prototype=e;r=new t;t.prototype=null;return r}}();var a={};var o=a.lib={};var u=o.Base=function(){return {extend:function(t){var e=s(this);if(t)e.mixIn(t);if(!e.hasOwnProperty("init")||this.init===e.init)e.init=function(){e.$super.init.apply(this,arguments);};e.init.prototype=e;e.$super=this;return e},create:function(){var t=this.extend();t.init.apply(t,arguments);return t},init:function(){},mixIn:function(t){for(var e in t)if(t.hasOwnProperty(e))this[e]=t[e];if(t.hasOwnProperty("toString"))this.toString=t.toString;},clone:function(){return this.init.prototype.extend(this)}}}();var c=o.WordArray=u.extend({init:function(t,r){t=this.words=t||[];if(r!=e)this.sigBytes=r;else this.sigBytes=4*t.length;},toString:function(t){return (t||f).stringify(this)},concat:function(t){var e=this.words;var r=t.words;var i=this.sigBytes;var n=t.sigBytes;this.clamp();if(i%4)for(var s=0;s<n;s++){var a=r[s>>>2]>>>24-s%4*8&255;e[i+s>>>2]|=a<<24-(i+s)%4*8;}else for(var o=0;o<n;o+=4)e[i+o>>>2]=r[o>>>2];this.sigBytes+=n;return this},clamp:function(){var e=this.words;var r=this.sigBytes;e[r>>>2]&=4294967295<<32-r%4*8;e.length=t.ceil(r/4);},clone:function(){var t=u.clone.call(this);t.words=this.words.slice(0);return t},random:function(t){var e=[];for(var r=0;r<t;r+=4)e.push(n());return new c.init(e,t)}});var l=a.enc={};var f=l.Hex={stringify:function(t){var e=t.words;var r=t.sigBytes;var i=[];for(var n=0;n<r;n++){var s=e[n>>>2]>>>24-n%4*8&255;i.push((s>>>4).toString(16));i.push((15&s).toString(16));}return i.join("")},parse:function(t){var e=t.length;var r=[];for(var i=0;i<e;i+=2)r[i>>>3]|=parseInt(t.substr(i,2),16)<<24-i%8*4;return new c.init(r,e/2)}};var h=l.Latin1={stringify:function(t){var e=t.words;var r=t.sigBytes;var i=[];for(var n=0;n<r;n++){var s=e[n>>>2]>>>24-n%4*8&255;i.push(String.fromCharCode(s));}return i.join("")},parse:function(t){var e=t.length;var r=[];for(var i=0;i<e;i++)r[i>>>2]|=(255&t.charCodeAt(i))<<24-i%4*8;return new c.init(r,e)}};var d=l.Utf8={stringify:function(t){try{return decodeURIComponent(escape(h.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return h.parse(unescape(encodeURIComponent(t)))}};var v=o.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new c.init;this._nDataBytes=0;},_append:function(t){if("string"==typeof t)t=d.parse(t);this._data.concat(t);this._nDataBytes+=t.sigBytes;},_process:function(e){var r;var i=this._data;var n=i.words;var s=i.sigBytes;var a=this.blockSize;var o=4*a;var u=s/o;if(e)u=t.ceil(u);else u=t.max((0|u)-this._minBufferSize,0);var l=u*a;var f=t.min(4*l,s);if(l){for(var h=0;h<l;h+=a)this._doProcessBlock(n,h);r=n.splice(0,l);i.sigBytes-=f;}return new c.init(r,f)},clone:function(){var t=u.clone.call(this);t._data=this._data.clone();return t},_minBufferSize:0});o.Hasher=v.extend({cfg:u.extend(),init:function(t){this.cfg=this.cfg.extend(t);this.reset();},reset:function(){v.reset.call(this);this._doReset();},update:function(t){this._append(t);this._process();return this},finalize:function(t){if(t)this._append(t);var e=this._doFinalize();return e},blockSize:512/32,_createHelper:function(t){return function(e,r){return new t.init(r).finalize(e)}},_createHmacHelper:function(t){return function(e,r){return new g.HMAC.init(t,r).finalize(e)}}});var g=a.algo={};return a}(Math);return t}));},8269:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=e.enc;n.Base64={stringify:function(t){var e=t.words;var r=t.sigBytes;var i=this._map;t.clamp();var n=[];for(var s=0;s<r;s+=3){var a=e[s>>>2]>>>24-s%4*8&255;var o=e[s+1>>>2]>>>24-(s+1)%4*8&255;var u=e[s+2>>>2]>>>24-(s+2)%4*8&255;var c=a<<16|o<<8|u;for(var l=0;l<4&&s+.75*l<r;l++)n.push(i.charAt(c>>>6*(3-l)&63));}var f=i.charAt(64);if(f)while(n.length%4)n.push(f);return n.join("")},parse:function(t){var e=t.length;var r=this._map;var i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var n=0;n<r.length;n++)i[r.charCodeAt(n)]=n;}var s=r.charAt(64);if(s){var o=t.indexOf(s);if(-1!==o)e=o;}return a(t,e,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function a(t,e,r){var n=[];var s=0;for(var a=0;a<e;a++)if(a%4){var o=r[t.charCodeAt(a-1)]<<a%4*2;var u=r[t.charCodeAt(a)]>>>6-a%4*2;var c=o|u;n[s>>>2]|=c<<24-s%4*8;s++;}return i.create(n,s)}})();return t.enc.Base64}));},3786:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=e.enc;n.Base64url={stringify:function(t,e=true){var r=t.words;var i=t.sigBytes;var n=e?this._safe_map:this._map;t.clamp();var s=[];for(var a=0;a<i;a+=3){var o=r[a>>>2]>>>24-a%4*8&255;var u=r[a+1>>>2]>>>24-(a+1)%4*8&255;var c=r[a+2>>>2]>>>24-(a+2)%4*8&255;var l=o<<16|u<<8|c;for(var f=0;f<4&&a+.75*f<i;f++)s.push(n.charAt(l>>>6*(3-f)&63));}var h=n.charAt(64);if(h)while(s.length%4)s.push(h);return s.join("")},parse:function(t,e=true){var r=t.length;var i=e?this._safe_map:this._map;var n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var s=0;s<i.length;s++)n[i.charCodeAt(s)]=s;}var o=i.charAt(64);if(o){var u=t.indexOf(o);if(-1!==u)r=u;}return a(t,r,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function a(t,e,r){var n=[];var s=0;for(var a=0;a<e;a++)if(a%4){var o=r[t.charCodeAt(a-1)]<<a%4*2;var u=r[t.charCodeAt(a)]>>>6-a%4*2;var c=o|u;n[s>>>2]|=c<<24-s%4*8;s++;}return i.create(n,s)}})();return t.enc.Base64url}));},298:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=e.enc;n.Utf16=n.Utf16BE={stringify:function(t){var e=t.words;var r=t.sigBytes;var i=[];for(var n=0;n<r;n+=2){var s=e[n>>>2]>>>16-n%4*8&65535;i.push(String.fromCharCode(s));}return i.join("")},parse:function(t){var e=t.length;var r=[];for(var n=0;n<e;n++)r[n>>>1]|=t.charCodeAt(n)<<16-n%2*16;return i.create(r,2*e)}};n.Utf16LE={stringify:function(t){var e=t.words;var r=t.sigBytes;var i=[];for(var n=0;n<r;n+=2){var s=a(e[n>>>2]>>>16-n%4*8&65535);i.push(String.fromCharCode(s));}return i.join("")},parse:function(t){var e=t.length;var r=[];for(var n=0;n<e;n++)r[n>>>1]|=a(t.charCodeAt(n)<<16-n%2*16);return i.create(r,2*e)}};function a(t){return t<<8&4278255360|t>>>8&16711935}})();return t.enc.Utf16}));},888:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(2783),r(9824));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.Base;var n=r.WordArray;var s=e.algo;var a=s.MD5;var o=s.EvpKDF=i.extend({cfg:i.extend({keySize:128/32,hasher:a,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t);},compute:function(t,e){var r;var i=this.cfg;var s=i.hasher.create();var a=n.create();var o=a.words;var u=i.keySize;var c=i.iterations;while(o.length<u){if(r)s.update(r);r=s.update(t).finalize(e);s.reset();for(var l=1;l<c;l++){r=s.finalize(r);s.reset();}a.concat(r);}a.sigBytes=4*u;return a}});e.EvpKDF=function(t,e,r){return o.create(r).compute(t,e)};})();return t.EvpKDF}));},2209:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.CipherParams;var s=r.enc;var a=s.Hex;var o=r.format;o.Hex={stringify:function(t){return t.ciphertext.toString(a)},parse:function(t){var e=a.parse(t);return n.create({ciphertext:e})}};})();return t.format.Hex}));},9824:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.Base;var n=e.enc;var s=n.Utf8;var a=e.algo;a.HMAC=i.extend({init:function(t,e){t=this._hasher=new t.init;if("string"==typeof e)e=s.parse(e);var r=t.blockSize;var i=4*r;if(e.sigBytes>i)e=t.finalize(e);e.clamp();var n=this._oKey=e.clone();var a=this._iKey=e.clone();var o=n.words;var u=a.words;for(var c=0;c<r;c++){o[c]^=1549556828;u[c]^=909522486;}n.sigBytes=a.sigBytes=i;this.reset();},reset:function(){var t=this._hasher;t.reset();t.update(this._iKey);},update:function(t){this._hasher.update(t);return this},finalize:function(t){var e=this._hasher;var r=e.finalize(t);e.reset();var i=e.finalize(this._oKey.clone().concat(r));return i}});})();}));},1354:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(4938),r(4433),r(298),r(8269),r(3786),r(8214),r(2783),r(2153),r(7792),r(34),r(7460),r(3327),r(706),r(9824),r(2112),r(888),r(5109),r(8568),r(4242),r(9968),r(7660),r(1148),r(3615),r(2807),r(1077),r(6475),r(6991),r(2209),r(452),r(4253),r(1857),r(4454),r(3974));})(this,(function(t){return t}));},4433:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(){if("function"!=typeof ArrayBuffer)return;var e=t;var r=e.lib;var i=r.WordArray;var n=i.init;var s=i.init=function(t){if(t instanceof ArrayBuffer)t=new Uint8Array(t);if(t instanceof Int8Array||"undefined"!==typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);if(t instanceof Uint8Array){var e=t.byteLength;var r=[];for(var i=0;i<e;i++)r[i>>>2]|=t[i]<<24-i%4*8;n.call(this,r,e);}else n.apply(this,arguments);};s.prototype=i;})();return t.lib.WordArray}));},8214:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.WordArray;var s=i.Hasher;var a=r.algo;var o=[];(function(){for(var t=0;t<64;t++)o[t]=4294967296*e.abs(e.sin(t+1))|0;})();var u=a.MD5=s.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878]);},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var i=e+r;var n=t[i];t[i]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8);}var s=this._hash.words;var a=t[e+0];var u=t[e+1];var d=t[e+2];var v=t[e+3];var p=t[e+4];var g=t[e+5];var y=t[e+6];var m=t[e+7];var w=t[e+8];var _=t[e+9];var S=t[e+10];var b=t[e+11];var E=t[e+12];var D=t[e+13];var T=t[e+14];var M=t[e+15];var I=s[0];var A=s[1];var x=s[2];var R=s[3];I=c(I,A,x,R,a,7,o[0]);R=c(R,I,A,x,u,12,o[1]);x=c(x,R,I,A,d,17,o[2]);A=c(A,x,R,I,v,22,o[3]);I=c(I,A,x,R,p,7,o[4]);R=c(R,I,A,x,g,12,o[5]);x=c(x,R,I,A,y,17,o[6]);A=c(A,x,R,I,m,22,o[7]);I=c(I,A,x,R,w,7,o[8]);R=c(R,I,A,x,_,12,o[9]);x=c(x,R,I,A,S,17,o[10]);A=c(A,x,R,I,b,22,o[11]);I=c(I,A,x,R,E,7,o[12]);R=c(R,I,A,x,D,12,o[13]);x=c(x,R,I,A,T,17,o[14]);A=c(A,x,R,I,M,22,o[15]);I=l(I,A,x,R,u,5,o[16]);R=l(R,I,A,x,y,9,o[17]);x=l(x,R,I,A,b,14,o[18]);A=l(A,x,R,I,a,20,o[19]);I=l(I,A,x,R,g,5,o[20]);R=l(R,I,A,x,S,9,o[21]);x=l(x,R,I,A,M,14,o[22]);A=l(A,x,R,I,p,20,o[23]);I=l(I,A,x,R,_,5,o[24]);R=l(R,I,A,x,T,9,o[25]);x=l(x,R,I,A,v,14,o[26]);A=l(A,x,R,I,w,20,o[27]);I=l(I,A,x,R,D,5,o[28]);R=l(R,I,A,x,d,9,o[29]);x=l(x,R,I,A,m,14,o[30]);A=l(A,x,R,I,E,20,o[31]);I=f(I,A,x,R,g,4,o[32]);R=f(R,I,A,x,w,11,o[33]);x=f(x,R,I,A,b,16,o[34]);A=f(A,x,R,I,T,23,o[35]);I=f(I,A,x,R,u,4,o[36]);R=f(R,I,A,x,p,11,o[37]);x=f(x,R,I,A,m,16,o[38]);A=f(A,x,R,I,S,23,o[39]);I=f(I,A,x,R,D,4,o[40]);R=f(R,I,A,x,a,11,o[41]);x=f(x,R,I,A,v,16,o[42]);A=f(A,x,R,I,y,23,o[43]);I=f(I,A,x,R,_,4,o[44]);R=f(R,I,A,x,E,11,o[45]);x=f(x,R,I,A,M,16,o[46]);A=f(A,x,R,I,d,23,o[47]);I=h(I,A,x,R,a,6,o[48]);R=h(R,I,A,x,m,10,o[49]);x=h(x,R,I,A,T,15,o[50]);A=h(A,x,R,I,g,21,o[51]);I=h(I,A,x,R,E,6,o[52]);R=h(R,I,A,x,v,10,o[53]);x=h(x,R,I,A,S,15,o[54]);A=h(A,x,R,I,u,21,o[55]);I=h(I,A,x,R,w,6,o[56]);R=h(R,I,A,x,M,10,o[57]);x=h(x,R,I,A,y,15,o[58]);A=h(A,x,R,I,D,21,o[59]);I=h(I,A,x,R,p,6,o[60]);R=h(R,I,A,x,b,10,o[61]);x=h(x,R,I,A,d,15,o[62]);A=h(A,x,R,I,_,21,o[63]);s[0]=s[0]+I|0;s[1]=s[1]+A|0;s[2]=s[2]+x|0;s[3]=s[3]+R|0;},_doFinalize:function(){var t=this._data;var r=t.words;var i=8*this._nDataBytes;var n=8*t.sigBytes;r[n>>>5]|=128<<24-n%32;var s=e.floor(i/4294967296);var a=i;r[(n+64>>>9<<4)+15]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8);r[(n+64>>>9<<4)+14]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);t.sigBytes=4*(r.length+1);this._process();var o=this._hash;var u=o.words;for(var c=0;c<4;c++){var l=u[c];u[c]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8);}return o},clone:function(){var t=s.clone.call(this);t._hash=this._hash.clone();return t}});function c(t,e,r,i,n,s,a){var o=t+(e&r|~e&i)+n+a;return (o<<s|o>>>32-s)+e}function l(t,e,r,i,n,s,a){var o=t+(e&i|r&~i)+n+a;return (o<<s|o>>>32-s)+e}function f(t,e,r,i,n,s,a){var o=t+(e^r^i)+n+a;return (o<<s|o>>>32-s)+e}function h(t,e,r,i,n,s,a){var o=t+(r^(e|~i))+n+a;return (o<<s|o>>>32-s)+e}r.MD5=s._createHelper(u);r.HmacMD5=s._createHmacHelper(u);})(Math);return t.MD5}));},8568:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){t.mode.CFB=function(){var e=t.lib.BlockCipherMode.extend();e.Encryptor=e.extend({processBlock:function(t,e){var i=this._cipher;var n=i.blockSize;r.call(this,t,e,n,i);this._prevBlock=t.slice(e,e+n);}});e.Decryptor=e.extend({processBlock:function(t,e){var i=this._cipher;var n=i.blockSize;var s=t.slice(e,e+n);r.call(this,t,e,n,i);this._prevBlock=s;}});function r(t,e,r,i){var n;var s=this._iv;if(s){n=s.slice(0);this._iv=void 0;}else n=this._prevBlock;i.encryptBlock(n,0);for(var a=0;a<r;a++)t[e+a]^=n[a];}return e}();return t.mode.CFB}));},9968:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){t.mode.CTRGladman=function(){var e=t.lib.BlockCipherMode.extend();function r(t){if(255===(t>>24&255)){var e=t>>16&255;var r=t>>8&255;var i=255&t;if(255===e){e=0;if(255===r){r=0;if(255===i)i=0;else ++i;}else ++r;}else ++e;t=0;t+=e<<16;t+=r<<8;t+=i;}else t+=1<<24;return t}function i(t){if(0===(t[0]=r(t[0])))t[1]=r(t[1]);return t}var n=e.Encryptor=e.extend({processBlock:function(t,e){var r=this._cipher;var n=r.blockSize;var s=this._iv;var a=this._counter;if(s){a=this._counter=s.slice(0);this._iv=void 0;}i(a);var o=a.slice(0);r.encryptBlock(o,0);for(var u=0;u<n;u++)t[e+u]^=o[u];}});e.Decryptor=n;return e}();return t.mode.CTRGladman}));},4242:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){t.mode.CTR=function(){var e=t.lib.BlockCipherMode.extend();var r=e.Encryptor=e.extend({processBlock:function(t,e){var r=this._cipher;var i=r.blockSize;var n=this._iv;var s=this._counter;if(n){s=this._counter=n.slice(0);this._iv=void 0;}var a=s.slice(0);r.encryptBlock(a,0);s[i-1]=s[i-1]+1|0;for(var o=0;o<i;o++)t[e+o]^=a[o];}});e.Decryptor=r;return e}();return t.mode.CTR}));},1148:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){t.mode.ECB=function(){var e=t.lib.BlockCipherMode.extend();e.Encryptor=e.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e);}});e.Decryptor=e.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e);}});return e}();return t.mode.ECB}));},7660:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){t.mode.OFB=function(){var e=t.lib.BlockCipherMode.extend();var r=e.Encryptor=e.extend({processBlock:function(t,e){var r=this._cipher;var i=r.blockSize;var n=this._iv;var s=this._keystream;if(n){s=this._keystream=n.slice(0);this._iv=void 0;}r.encryptBlock(s,0);for(var a=0;a<i;a++)t[e+a]^=s[a];}});e.Decryptor=r;return e}();return t.mode.OFB}));},3615:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){t.pad.AnsiX923={pad:function(t,e){var r=t.sigBytes;var i=4*e;var n=i-r%i;var s=r+n-1;t.clamp();t.words[s>>>2]|=n<<24-s%4*8;t.sigBytes+=n;},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e;}};return t.pad.Ansix923}));},2807:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){t.pad.Iso10126={pad:function(e,r){var i=4*r;var n=i-e.sigBytes%i;e.concat(t.lib.WordArray.random(n-1)).concat(t.lib.WordArray.create([n<<24],1));},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e;}};return t.pad.Iso10126}));},1077:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){t.pad.Iso97971={pad:function(e,r){e.concat(t.lib.WordArray.create([2147483648],1));t.pad.ZeroPadding.pad(e,r);},unpad:function(e){t.pad.ZeroPadding.unpad(e);e.sigBytes--;}};return t.pad.Iso97971}));},6991:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){t.pad.NoPadding={pad:function(){},unpad:function(){}};return t.pad.NoPadding}));},6475:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){t.pad.ZeroPadding={pad:function(t,e){var r=4*e;t.clamp();t.sigBytes+=r-(t.sigBytes%r||r);},unpad:function(t){var e=t.words;var r=t.sigBytes-1;for(var r=t.sigBytes-1;r>=0;r--)if(e[r>>>2]>>>24-r%4*8&255){t.sigBytes=r+1;break}}};return t.pad.ZeroPadding}));},2112:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(2783),r(9824));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.Base;var n=r.WordArray;var s=e.algo;var a=s.SHA1;var o=s.HMAC;var u=s.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:a,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t);},compute:function(t,e){var r=this.cfg;var i=o.create(r.hasher,t);var s=n.create();var a=n.create([1]);var u=s.words;var c=a.words;var l=r.keySize;var f=r.iterations;while(u.length<l){var h=i.update(e).finalize(a);i.reset();var d=h.words;var v=d.length;var p=h;for(var g=1;g<f;g++){p=i.finalize(p);i.reset();var y=p.words;for(var m=0;m<v;m++)d[m]^=y[m];}s.concat(h);c[0]++;}s.sigBytes=4*l;return s}});e.PBKDF2=function(t,e,r){return u.create(r).compute(t,e)};})();return t.PBKDF2}));},3974:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(8269),r(8214),r(888),r(5109));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.StreamCipher;var n=e.algo;var s=[];var a=[];var o=[];var u=n.RabbitLegacy=i.extend({_doReset:function(){var t=this._key.words;var e=this.cfg.iv;var r=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16];var i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var n=0;n<4;n++)c.call(this);for(var n=0;n<8;n++)i[n]^=r[n+4&7];if(e){var s=e.words;var a=s[0];var o=s[1];var u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);var l=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8);var f=u>>>16|4294901760&l;var h=l<<16|65535&u;i[0]^=u;i[1]^=f;i[2]^=l;i[3]^=h;i[4]^=u;i[5]^=f;i[6]^=l;i[7]^=h;for(var n=0;n<4;n++)c.call(this);}},_doProcessBlock:function(t,e){var r=this._X;c.call(this);s[0]=r[0]^r[5]>>>16^r[3]<<16;s[1]=r[2]^r[7]>>>16^r[5]<<16;s[2]=r[4]^r[1]>>>16^r[7]<<16;s[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++){s[i]=16711935&(s[i]<<8|s[i]>>>24)|4278255360&(s[i]<<24|s[i]>>>8);t[e+i]^=s[i];}},blockSize:128/32,ivSize:64/32});function c(){var t=this._X;var e=this._C;for(var r=0;r<8;r++)a[r]=e[r];e[0]=e[0]+1295307597+this._b|0;e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0;e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0;e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0;e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0;e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0;e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0;e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0;this._b=e[7]>>>0<a[7]>>>0?1:0;for(var r=0;r<8;r++){var i=t[r]+e[r];var n=65535&i;var s=i>>>16;var u=((n*n>>>17)+n*s>>>15)+s*s;var c=((4294901760&i)*i|0)+((65535&i)*i|0);o[r]=u^c;}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0;t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0;t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0;t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0;t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0;t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0;t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0;t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0;}e.RabbitLegacy=i._createHelper(u);})();return t.RabbitLegacy}));},4454:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(8269),r(8214),r(888),r(5109));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.StreamCipher;var n=e.algo;var s=[];var a=[];var o=[];var u=n.Rabbit=i.extend({_doReset:function(){var t=this._key.words;var e=this.cfg.iv;for(var r=0;r<4;r++)t[r]=16711935&(t[r]<<8|t[r]>>>24)|4278255360&(t[r]<<24|t[r]>>>8);var i=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16];var n=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var r=0;r<4;r++)c.call(this);for(var r=0;r<8;r++)n[r]^=i[r+4&7];if(e){var s=e.words;var a=s[0];var o=s[1];var u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);var l=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8);var f=u>>>16|4294901760&l;var h=l<<16|65535&u;n[0]^=u;n[1]^=f;n[2]^=l;n[3]^=h;n[4]^=u;n[5]^=f;n[6]^=l;n[7]^=h;for(var r=0;r<4;r++)c.call(this);}},_doProcessBlock:function(t,e){var r=this._X;c.call(this);s[0]=r[0]^r[5]>>>16^r[3]<<16;s[1]=r[2]^r[7]>>>16^r[5]<<16;s[2]=r[4]^r[1]>>>16^r[7]<<16;s[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++){s[i]=16711935&(s[i]<<8|s[i]>>>24)|4278255360&(s[i]<<24|s[i]>>>8);t[e+i]^=s[i];}},blockSize:128/32,ivSize:64/32});function c(){var t=this._X;var e=this._C;for(var r=0;r<8;r++)a[r]=e[r];e[0]=e[0]+1295307597+this._b|0;e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0;e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0;e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0;e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0;e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0;e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0;e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0;this._b=e[7]>>>0<a[7]>>>0?1:0;for(var r=0;r<8;r++){var i=t[r]+e[r];var n=65535&i;var s=i>>>16;var u=((n*n>>>17)+n*s>>>15)+s*s;var c=((4294901760&i)*i|0)+((65535&i)*i|0);o[r]=u^c;}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0;t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0;t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0;t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0;t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0;t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0;t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0;t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0;}e.Rabbit=i._createHelper(u);})();return t.Rabbit}));},1857:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(8269),r(8214),r(888),r(5109));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.StreamCipher;var n=e.algo;var s=n.RC4=i.extend({_doReset:function(){var t=this._key;var e=t.words;var r=t.sigBytes;var i=this._S=[];for(var n=0;n<256;n++)i[n]=n;for(var n=0,s=0;n<256;n++){var a=n%r;var o=e[a>>>2]>>>24-a%4*8&255;s=(s+i[n]+o)%256;var u=i[n];i[n]=i[s];i[s]=u;}this._i=this._j=0;},_doProcessBlock:function(t,e){t[e]^=a.call(this);},keySize:256/32,ivSize:0});function a(){var t=this._S;var e=this._i;var r=this._j;var i=0;for(var n=0;n<4;n++){e=(e+1)%256;r=(r+t[e])%256;var s=t[e];t[e]=t[r];t[r]=s;i|=t[(t[e]+t[r])%256]<<24-8*n;}this._i=e;this._j=r;return i}e.RC4=i._createHelper(s);var o=n.RC4Drop=s.extend({cfg:s.cfg.extend({drop:192}),_doReset:function(){s._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)a.call(this);}});e.RC4Drop=i._createHelper(o);})();return t.RC4}));},706:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.WordArray;var s=i.Hasher;var a=r.algo;var o=n.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]);var u=n.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]);var c=n.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]);var l=n.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]);var f=n.create([0,1518500249,1859775393,2400959708,2840853838]);var h=n.create([1352829926,1548603684,1836072691,2053994217,0]);var d=a.RIPEMD160=s.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520]);},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var i=e+r;var n=t[i];t[i]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8);}var s=this._hash.words;var a=f.words;var d=h.words;var _=o.words;var S=u.words;var b=c.words;var E=l.words;var D,T,M,I,A;var x,R,B,O,k;x=D=s[0];R=T=s[1];B=M=s[2];O=I=s[3];k=A=s[4];var C;for(var r=0;r<80;r+=1){C=D+t[e+_[r]]|0;if(r<16)C+=v(T,M,I)+a[0];else if(r<32)C+=p(T,M,I)+a[1];else if(r<48)C+=g(T,M,I)+a[2];else if(r<64)C+=y(T,M,I)+a[3];else C+=m(T,M,I)+a[4];C|=0;C=w(C,b[r]);C=C+A|0;D=A;A=I;I=w(M,10);M=T;T=C;C=x+t[e+S[r]]|0;if(r<16)C+=m(R,B,O)+d[0];else if(r<32)C+=y(R,B,O)+d[1];else if(r<48)C+=g(R,B,O)+d[2];else if(r<64)C+=p(R,B,O)+d[3];else C+=v(R,B,O)+d[4];C|=0;C=w(C,E[r]);C=C+k|0;x=k;k=O;O=w(B,10);B=R;R=C;}C=s[1]+M+O|0;s[1]=s[2]+I+k|0;s[2]=s[3]+A+x|0;s[3]=s[4]+D+R|0;s[4]=s[0]+T+B|0;s[0]=C;},_doFinalize:function(){var t=this._data;var e=t.words;var r=8*this._nDataBytes;var i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32;e[(i+64>>>9<<4)+14]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8);t.sigBytes=4*(e.length+1);this._process();var n=this._hash;var s=n.words;for(var a=0;a<5;a++){var o=s[a];s[a]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8);}return n},clone:function(){var t=s.clone.call(this);t._hash=this._hash.clone();return t}});function v(t,e,r){return t^e^r}function p(t,e,r){return t&e|~t&r}function g(t,e,r){return (t|~e)^r}function y(t,e,r){return t&r|e&~r}function m(t,e,r){return t^(e|~r)}function w(t,e){return t<<e|t>>>32-e}r.RIPEMD160=s._createHelper(d);r.HmacRIPEMD160=s._createHmacHelper(d);})();return t.RIPEMD160}));},2783:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=r.Hasher;var s=e.algo;var a=[];var o=s.SHA1=n.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520]);},_doProcessBlock:function(t,e){var r=this._hash.words;var i=r[0];var n=r[1];var s=r[2];var o=r[3];var u=r[4];for(var c=0;c<80;c++){if(c<16)a[c]=0|t[e+c];else {var l=a[c-3]^a[c-8]^a[c-14]^a[c-16];a[c]=l<<1|l>>>31;}var f=(i<<5|i>>>27)+u+a[c];if(c<20)f+=(n&s|~n&o)+1518500249;else if(c<40)f+=(n^s^o)+1859775393;else if(c<60)f+=(n&s|n&o|s&o)-1894007588;else f+=(n^s^o)-899497514;u=o;o=s;s=n<<30|n>>>2;n=i;i=f;}r[0]=r[0]+i|0;r[1]=r[1]+n|0;r[2]=r[2]+s|0;r[3]=r[3]+o|0;r[4]=r[4]+u|0;},_doFinalize:function(){var t=this._data;var e=t.words;var r=8*this._nDataBytes;var i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32;e[(i+64>>>9<<4)+14]=Math.floor(r/4294967296);e[(i+64>>>9<<4)+15]=r;t.sigBytes=4*e.length;this._process();return this._hash},clone:function(){var t=n.clone.call(this);t._hash=this._hash.clone();return t}});e.SHA1=n._createHelper(o);e.HmacSHA1=n._createHmacHelper(o);})();return t.SHA1}));},7792:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(2153));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=e.algo;var s=n.SHA256;var a=n.SHA224=s.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]);},_doFinalize:function(){var t=s._doFinalize.call(this);t.sigBytes-=4;return t}});e.SHA224=s._createHelper(a);e.HmacSHA224=s._createHmacHelper(a);})();return t.SHA224}));},2153:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.WordArray;var s=i.Hasher;var a=r.algo;var o=[];var u=[];(function(){function t(t){var r=e.sqrt(t);for(var i=2;i<=r;i++)if(!(t%i))return false;return true}function r(t){return 4294967296*(t-(0|t))|0}var i=2;var n=0;while(n<64){if(t(i)){if(n<8)o[n]=r(e.pow(i,1/2));u[n]=r(e.pow(i,1/3));n++;}i++;}})();var c=[];var l=a.SHA256=s.extend({_doReset:function(){this._hash=new n.init(o.slice(0));},_doProcessBlock:function(t,e){var r=this._hash.words;var i=r[0];var n=r[1];var s=r[2];var a=r[3];var o=r[4];var l=r[5];var f=r[6];var h=r[7];for(var d=0;d<64;d++){if(d<16)c[d]=0|t[e+d];else {var v=c[d-15];var p=(v<<25|v>>>7)^(v<<14|v>>>18)^v>>>3;var g=c[d-2];var y=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[d]=p+c[d-7]+y+c[d-16];}var m=o&l^~o&f;var w=i&n^i&s^n&s;var _=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22);var S=(o<<26|o>>>6)^(o<<21|o>>>11)^(o<<7|o>>>25);var b=h+S+m+u[d]+c[d];var E=_+w;h=f;f=l;l=o;o=a+b|0;a=s;s=n;n=i;i=b+E|0;}r[0]=r[0]+i|0;r[1]=r[1]+n|0;r[2]=r[2]+s|0;r[3]=r[3]+a|0;r[4]=r[4]+o|0;r[5]=r[5]+l|0;r[6]=r[6]+f|0;r[7]=r[7]+h|0;},_doFinalize:function(){var t=this._data;var r=t.words;var i=8*this._nDataBytes;var n=8*t.sigBytes;r[n>>>5]|=128<<24-n%32;r[(n+64>>>9<<4)+14]=e.floor(i/4294967296);r[(n+64>>>9<<4)+15]=i;t.sigBytes=4*r.length;this._process();return this._hash},clone:function(){var t=s.clone.call(this);t._hash=this._hash.clone();return t}});r.SHA256=s._createHelper(l);r.HmacSHA256=s._createHmacHelper(l);})(Math);return t.SHA256}));},3327:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(4938));})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.WordArray;var s=i.Hasher;var a=r.x64;var o=a.Word;var u=r.algo;var c=[];var l=[];var f=[];(function(){var t=1,e=0;for(var r=0;r<24;r++){c[t+5*e]=(r+1)*(r+2)/2%64;var i=e%5;var n=(2*t+3*e)%5;t=i;e=n;}for(var t=0;t<5;t++)for(var e=0;e<5;e++)l[t+5*e]=e+(2*t+3*e)%5*5;var s=1;for(var a=0;a<24;a++){var u=0;var h=0;for(var d=0;d<7;d++){if(1&s){var v=(1<<d)-1;if(v<32)h^=1<<v;else u^=1<<v-32;}if(128&s)s=s<<1^113;else s<<=1;}f[a]=o.create(u,h);}})();var h=[];(function(){for(var t=0;t<25;t++)h[t]=o.create();})();var d=u.SHA3=s.extend({cfg:s.cfg.extend({outputLength:512}),_doReset:function(){var t=this._state=[];for(var e=0;e<25;e++)t[e]=new o.init;this.blockSize=(1600-2*this.cfg.outputLength)/32;},_doProcessBlock:function(t,e){var r=this._state;var i=this.blockSize/2;for(var n=0;n<i;n++){var s=t[e+2*n];var a=t[e+2*n+1];s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8);a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);var o=r[n];o.high^=a;o.low^=s;}for(var u=0;u<24;u++){for(var d=0;d<5;d++){var v=0,p=0;for(var g=0;g<5;g++){var o=r[d+5*g];v^=o.high;p^=o.low;}var y=h[d];y.high=v;y.low=p;}for(var d=0;d<5;d++){var m=h[(d+4)%5];var w=h[(d+1)%5];var _=w.high;var S=w.low;var v=m.high^(_<<1|S>>>31);var p=m.low^(S<<1|_>>>31);for(var g=0;g<5;g++){var o=r[d+5*g];o.high^=v;o.low^=p;}}for(var b=1;b<25;b++){var v;var p;var o=r[b];var E=o.high;var D=o.low;var T=c[b];if(T<32){v=E<<T|D>>>32-T;p=D<<T|E>>>32-T;}else {v=D<<T-32|E>>>64-T;p=E<<T-32|D>>>64-T;}var M=h[l[b]];M.high=v;M.low=p;}var I=h[0];var A=r[0];I.high=A.high;I.low=A.low;for(var d=0;d<5;d++)for(var g=0;g<5;g++){var b=d+5*g;var o=r[b];var x=h[b];var R=h[(d+1)%5+5*g];var B=h[(d+2)%5+5*g];o.high=x.high^~R.high&B.high;o.low=x.low^~R.low&B.low;}var o=r[0];var O=f[u];o.high^=O.high;o.low^=O.low;}},_doFinalize:function(){var t=this._data;var r=t.words;8*this._nDataBytes;var s=8*t.sigBytes;var a=32*this.blockSize;r[s>>>5]|=1<<24-s%32;r[(e.ceil((s+1)/a)*a>>>5)-1]|=128;t.sigBytes=4*r.length;this._process();var o=this._state;var u=this.cfg.outputLength/8;var c=u/8;var l=[];for(var f=0;f<c;f++){var h=o[f];var d=h.high;var v=h.low;d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8);v=16711935&(v<<8|v>>>24)|4278255360&(v<<24|v>>>8);l.push(v);l.push(d);}return new n.init(l,u)},clone:function(){var t=s.clone.call(this);var e=t._state=this._state.slice(0);for(var r=0;r<25;r++)e[r]=e[r].clone();return t}});r.SHA3=s._createHelper(d);r.HmacSHA3=s._createHmacHelper(d);})(Math);return t.SHA3}));},7460:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(4938),r(34));})(this,(function(t){(function(){var e=t;var r=e.x64;var i=r.Word;var n=r.WordArray;var s=e.algo;var a=s.SHA512;var o=s.SHA384=a.extend({_doReset:function(){this._hash=new n.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)]);},_doFinalize:function(){var t=a._doFinalize.call(this);t.sigBytes-=16;return t}});e.SHA384=a._createHelper(o);e.HmacSHA384=a._createHmacHelper(o);})();return t.SHA384}));},34:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(4938));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.Hasher;var n=e.x64;var s=n.Word;var a=n.WordArray;var o=e.algo;function u(){return s.create.apply(s,arguments)}var c=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)];var l=[];(function(){for(var t=0;t<80;t++)l[t]=u();})();var f=o.SHA512=i.extend({_doReset:function(){this._hash=new a.init([new s.init(1779033703,4089235720),new s.init(3144134277,2227873595),new s.init(1013904242,4271175723),new s.init(2773480762,1595750129),new s.init(1359893119,2917565137),new s.init(2600822924,725511199),new s.init(528734635,4215389547),new s.init(1541459225,327033209)]);},_doProcessBlock:function(t,e){var r=this._hash.words;var i=r[0];var n=r[1];var s=r[2];var a=r[3];var o=r[4];var u=r[5];var f=r[6];var h=r[7];var d=i.high;var v=i.low;var p=n.high;var g=n.low;var y=s.high;var m=s.low;var w=a.high;var _=a.low;var S=o.high;var b=o.low;var E=u.high;var D=u.low;var T=f.high;var M=f.low;var I=h.high;var A=h.low;var x=d;var R=v;var B=p;var O=g;var k=y;var C=m;var N=w;var P=_;var V=S;var L=b;var H=E;var U=D;var K=T;var j=M;var q=I;var F=A;for(var z=0;z<80;z++){var G;var Y;var W=l[z];if(z<16){Y=W.high=0|t[e+2*z];G=W.low=0|t[e+2*z+1];}else {var J=l[z-15];var Z=J.high;var $=J.low;var X=(Z>>>1|$<<31)^(Z>>>8|$<<24)^Z>>>7;var Q=($>>>1|Z<<31)^($>>>8|Z<<24)^($>>>7|Z<<25);var tt=l[z-2];var et=tt.high;var rt=tt.low;var it=(et>>>19|rt<<13)^(et<<3|rt>>>29)^et>>>6;var nt=(rt>>>19|et<<13)^(rt<<3|et>>>29)^(rt>>>6|et<<26);var st=l[z-7];var at=st.high;var ot=st.low;var ut=l[z-16];var ct=ut.high;var lt=ut.low;G=Q+ot;Y=X+at+(G>>>0<Q>>>0?1:0);G+=nt;Y=Y+it+(G>>>0<nt>>>0?1:0);G+=lt;Y=Y+ct+(G>>>0<lt>>>0?1:0);W.high=Y;W.low=G;}var ft=V&H^~V&K;var ht=L&U^~L&j;var dt=x&B^x&k^B&k;var vt=R&O^R&C^O&C;var pt=(x>>>28|R<<4)^(x<<30|R>>>2)^(x<<25|R>>>7);var gt=(R>>>28|x<<4)^(R<<30|x>>>2)^(R<<25|x>>>7);var yt=(V>>>14|L<<18)^(V>>>18|L<<14)^(V<<23|L>>>9);var mt=(L>>>14|V<<18)^(L>>>18|V<<14)^(L<<23|V>>>9);var wt=c[z];var _t=wt.high;var St=wt.low;var bt=F+mt;var Et=q+yt+(bt>>>0<F>>>0?1:0);var bt=bt+ht;var Et=Et+ft+(bt>>>0<ht>>>0?1:0);var bt=bt+St;var Et=Et+_t+(bt>>>0<St>>>0?1:0);var bt=bt+G;var Et=Et+Y+(bt>>>0<G>>>0?1:0);var Dt=gt+vt;var Tt=pt+dt+(Dt>>>0<gt>>>0?1:0);q=K;F=j;K=H;j=U;H=V;U=L;L=P+bt|0;V=N+Et+(L>>>0<P>>>0?1:0)|0;N=k;P=C;k=B;C=O;B=x;O=R;R=bt+Dt|0;x=Et+Tt+(R>>>0<bt>>>0?1:0)|0;}v=i.low=v+R;i.high=d+x+(v>>>0<R>>>0?1:0);g=n.low=g+O;n.high=p+B+(g>>>0<O>>>0?1:0);m=s.low=m+C;s.high=y+k+(m>>>0<C>>>0?1:0);_=a.low=_+P;a.high=w+N+(_>>>0<P>>>0?1:0);b=o.low=b+L;o.high=S+V+(b>>>0<L>>>0?1:0);D=u.low=D+U;u.high=E+H+(D>>>0<U>>>0?1:0);M=f.low=M+j;f.high=T+K+(M>>>0<j>>>0?1:0);A=h.low=A+F;h.high=I+q+(A>>>0<F>>>0?1:0);},_doFinalize:function(){var t=this._data;var e=t.words;var r=8*this._nDataBytes;var i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32;e[(i+128>>>10<<5)+30]=Math.floor(r/4294967296);e[(i+128>>>10<<5)+31]=r;t.sigBytes=4*e.length;this._process();var n=this._hash.toX32();return n},clone:function(){var t=i.clone.call(this);t._hash=this._hash.clone();return t},blockSize:1024/32});e.SHA512=i._createHelper(f);e.HmacSHA512=i._createHmacHelper(f);})();return t.SHA512}));},4253:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(8269),r(8214),r(888),r(5109));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=r.BlockCipher;var s=e.algo;var a=[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];var o=[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];var u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28];var c=[{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}];var l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679];var f=s.DES=n.extend({_doReset:function(){var t=this._key;var e=t.words;var r=[];for(var i=0;i<56;i++){var n=a[i]-1;r[i]=e[n>>>5]>>>31-n%32&1;}var s=this._subKeys=[];for(var c=0;c<16;c++){var l=s[c]=[];var f=u[c];for(var i=0;i<24;i++){l[i/6|0]|=r[(o[i]-1+f)%28]<<31-i%6;l[4+(i/6|0)]|=r[28+(o[i+24]-1+f)%28]<<31-i%6;}l[0]=l[0]<<1|l[0]>>>31;for(var i=1;i<7;i++)l[i]=l[i]>>>4*(i-1)+3;l[7]=l[7]<<5|l[7]>>>27;}var h=this._invSubKeys=[];for(var i=0;i<16;i++)h[i]=s[15-i];},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys);},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys);},_doCryptBlock:function(t,e,r){this._lBlock=t[e];this._rBlock=t[e+1];h.call(this,4,252645135);h.call(this,16,65535);d.call(this,2,858993459);d.call(this,8,16711935);h.call(this,1,1431655765);for(var i=0;i<16;i++){var n=r[i];var s=this._lBlock;var a=this._rBlock;var o=0;for(var u=0;u<8;u++)o|=c[u][((a^n[u])&l[u])>>>0];this._lBlock=a;this._rBlock=s^o;}var f=this._lBlock;this._lBlock=this._rBlock;this._rBlock=f;h.call(this,1,1431655765);d.call(this,8,16711935);d.call(this,2,858993459);h.call(this,16,65535);h.call(this,4,252645135);t[e]=this._lBlock;t[e+1]=this._rBlock;},keySize:64/32,ivSize:64/32,blockSize:64/32});function h(t,e){var r=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=r;this._lBlock^=r<<t;}function d(t,e){var r=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=r;this._rBlock^=r<<t;}e.DES=n._createHelper(f);var v=s.TripleDES=n.extend({_doReset:function(){var t=this._key;var e=t.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var r=e.slice(0,2);var n=e.length<4?e.slice(0,2):e.slice(2,4);var s=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=f.createEncryptor(i.create(r));this._des2=f.createEncryptor(i.create(n));this._des3=f.createEncryptor(i.create(s));},encryptBlock:function(t,e){this._des1.encryptBlock(t,e);this._des2.decryptBlock(t,e);this._des3.encryptBlock(t,e);},decryptBlock:function(t,e){this._des3.decryptBlock(t,e);this._des2.encryptBlock(t,e);this._des1.decryptBlock(t,e);},keySize:192/32,ivSize:64/32,blockSize:64/32});e.TripleDES=n._createHelper(v);})();return t.TripleDES}));},4938:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.Base;var s=i.WordArray;var a=r.x64={};a.Word=n.extend({init:function(t,e){this.high=t;this.low=e;}});a.WordArray=n.extend({init:function(t,r){t=this.words=t||[];if(r!=e)this.sigBytes=r;else this.sigBytes=8*t.length;},toX32:function(){var t=this.words;var e=t.length;var r=[];for(var i=0;i<e;i++){var n=t[i];r.push(n.high);r.push(n.low);}return s.create(r,this.sigBytes)},clone:function(){var t=n.clone.call(this);var e=t.words=this.words.slice(0);var r=e.length;for(var i=0;i<r;i++)e[i]=e[i].clone();return t}});})();return t}));},4198:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});e.ErrorCode=void 0;(function(t){t[t["SUCCESS"]=0]="SUCCESS";t[t["CLIENT_ID_NOT_FOUND"]=1]="CLIENT_ID_NOT_FOUND";t[t["OPERATION_TOO_OFTEN"]=2]="OPERATION_TOO_OFTEN";t[t["REPEAT_MESSAGE"]=3]="REPEAT_MESSAGE";t[t["TIME_OUT"]=4]="TIME_OUT";})(e.ErrorCode||(e.ErrorCode={}));},9021:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};const n=i(r(6893));const s=i(r(7555));const a=i(r(6379));const o=i(r(529));var u;(function(t){function e(t){o.default.debugMode=t;o.default.info(`setDebugMode: ${t}`);}t.setDebugMode=e;function r(t){try{s.default.init(t);}catch(t){o.default.error(`init error`,t);}}t.init=r;function i(t){try{if(!t.url)throw new Error("invalid url");if(!t.key||!t.keyId)throw new Error("invalid key or keyId");a.default.socketUrl=t.url;a.default.publicKeyId=t.keyId;a.default.publicKey=t.key;}catch(t){o.default.error(`setSocketServer error`,t);}}t.setSocketServer=i;function u(t){try{s.default.enableSocket(t);}catch(t){o.default.error(`enableSocket error`,t);}}t.enableSocket=u;function c(){return n.default.SDK_VERSION}t.getVersion=c;})(u||(u={}));t.exports=u;},9478:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(496));const s=i(r(3555));const a=i(r(1929));const o=i(r(4379));const u=i(r(6899));const c=i(r(776));const l=i(r(2002));const f=i(r(5807));const h=i(r(9704));const d=i(r(6545));const v=i(r(3680));const p=i(r(7706));const g=i(r(4486));const y=i(r(5867));const m=i(r(7006));var w;(function(t){let e;let r;let i;function w(){if("undefined"!=typeof uni){e=new d.default;r=new v.default;i=new p.default;}else if("undefined"!=typeof tt){e=new l.default;r=new f.default;i=new h.default;}else if("undefined"!=typeof my){e=new n.default;r=new s.default;i=new a.default;}else if("undefined"!=typeof wx){e=new g.default;r=new y.default;i=new m.default;}else if("undefined"!=typeof window){e=new o.default;r=new u.default;i=new c.default;}}function _(){if(!e)w();return e}t.getDevice=_;function S(){if(!r)w();return r}t.getStorage=S;function b(){if(!i)w();return i}t.getWebSocket=b;})(w||(w={}));e["default"]=w;},4685:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9478));var s;(function(t){function e(){return n.default.getDevice().os()}t.os=e;function r(){return n.default.getDevice().osVersion()}t.osVersion=r;function i(){return n.default.getDevice().model()}t.model=i;function s(){return n.default.getDevice().brand()}t.brand=s;function a(){return n.default.getDevice().platform()}t.platform=a;function o(){return n.default.getDevice().platformVersion()}t.platformVersion=o;function u(){return n.default.getDevice().platformId()}t.platformId=u;function c(){return n.default.getDevice().language()}t.language=c;function l(){let t=n.default.getDevice().userAgent;if(t)return t();return ""}t.userAgent=l;function f(t){n.default.getDevice().getNetworkType(t);}t.getNetworkType=f;function h(t){n.default.getDevice().onNetworkStatusChange(t);}t.onNetworkStatusChange=h;})(s||(s={}));e["default"]=s;},7002:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(6379));const s=i(r(1386));const a=i(r(4054));const o=r(2918);const u=i(r(7167));const c=i(r(529));const l=i(r(9478));const f=i(r(8506));var h;(function(t){let e;let r=false;let i=false;let h=false;let d=[];const v=10;let p=0;t.allowReconnect=true;function g(){return r&&i}t.isAvailable=g;function y(e){let r=(new Date).getTime();if(r-p<1e3){c.default.warn(`enableSocket ${e} fail: this function can only be called once a second`);return}p=r;t.allowReconnect=e;if(e)t.reconnect(10);else t.close(`enableSocket ${e}`);}t.enableSocket=y;function m(e=0){if(!t.allowReconnect)return;if(!S())return;setTimeout((function(){w();}),e);}t.reconnect=m;function w(){t.allowReconnect=true;if(!S())return;if(!b())return;h=true;let r=n.default.socketUrl;try{let t=f.default.getSync(f.default.KEY_REDIRECT_SERVER,"");if(t){let e=o.RedirectServerData.parse(t);let i=e.addressList[0].split(",");let n=i[0];let s=Number(i[1]);let a=(new Date).getTime();if(a-e.time<1e3*s)r=n;}}catch(t){}e=l.default.getWebSocket().connect({url:r,success:function(){i=true;_();},fail:function(){i=false;T();m(100);}});e.onOpen(M);e.onClose(x);e.onError(A);e.onMessage(I);}t.connect=w;function _(){if(i&&r){h=false;s.default.create().send();u.default.getInstance().start();}}function S(){if(!n.default.networkConnected){c.default.error(`connect failed, network is not available`);return false}if(h){c.default.warn(`connecting`);return false}if(g()){c.default.warn(`already connected`);return false}return true}function b(){var t=d.length;let e=(new Date).getTime();if(t>0)for(var r=t-1;r>=0;r--)if(e-d[r]>5e3){d.splice(0,r+1);break}t=d.length;d.push(e);if(t>=v){c.default.error("connect failed, connection limit reached");return false}return true}function E(t=""){null===e||void 0===e||e.close({code:1e3,reason:t,success:function(t){},fail:function(t){}});T();}t.close=E;function D(t){if(r&&r)null===e||void 0===e||e.send({data:t,success:function(t){},fail:function(t){}});else throw new Error(`socket not connect`)}t.send=D;function T(t){var e;i=false;r=false;h=false;u.default.getInstance().cancel();if(n.default.online){n.default.online=false;null===(e=n.default.onlineState)||void 0===e||e.call(n.default.onlineState,{online:n.default.online});}}let M=function(t){r=true;_();};let I=function(t){try{t.data;u.default.getInstance().refresh();a.default.receiveMessage(t.data);}catch(t){}};let A=function(t){E(`socket error`);};let x=function(t){T();};})(h||(h={}));e["default"]=h;},8506:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9478));var s;(function(t){t.KEY_APPID="getui_appid";t.KEY_CID="getui_cid";t.KEY_SESSION="getui_session";t.KEY_REGID="getui_regid";t.KEY_SOCKET_URL="getui_socket_url";t.KEY_DEVICE_ID="getui_deviceid";t.KEY_ADD_PHONE_INFO_TIME="getui_api_time";t.KEY_BIND_ALIAS_TIME="getui_ba_time";t.KEY_SET_TAG_TIME="getui_st_time";t.KEY_REDIRECT_SERVER="getui_redirect_server";t.KEY_LAST_CONNECT_TIME="getui_last_connect_time";function e(t){n.default.getStorage().set(t);}t.set=e;function r(t,e){n.default.getStorage().setSync(t,e);}t.setSync=r;function i(t){n.default.getStorage().get(t);}t.get=i;function s(t,e){let r=n.default.getStorage().getSync(t);return r?r:e}t.getSync=s;})(s||(s={}));e["default"]=s;},496:t=>{class e{constructor(){this.systemInfo=my.getSystemInfoSync();}os(){var t;return null===(t=this.systemInfo)||void 0===t?void 0:t.platform}osVersion(){var t;return null===(t=this.systemInfo)||void 0===t?void 0:t.system}model(){var t;return null===(t=this.systemInfo)||void 0===t?void 0:t.model}brand(){var t;return null===(t=this.systemInfo)||void 0===t?void 0:t.brand}platform(){return "MP-ALIPAY"}platformVersion(){return this.systemInfo.app+" "+this.systemInfo.version}platformId(){return my.getAppIdSync()}language(){var t;return null===(t=this.systemInfo)||void 0===t?void 0:t.language}getNetworkType(t){my.getNetworkType({success:e=>{var r;null===(r=t.success)||void 0===r||r.call(t.success,{networkType:e.networkType});},fail:()=>{var e;null===(e=t.fail)||void 0===e||e.call(t.fail,"");}});}onNetworkStatusChange(t){my.onNetworkStatusChange(t);}}t.exports=e;},3555:t=>{class e{set(t){my.setStorage({key:t.key,data:t.data,success:t.success,fail:t.fail});}setSync(t,e){my.setStorageSync({key:t,data:e});}get(t){my.getStorage({key:t.key,success:t.success,fail:t.fail,complete:t.complete});}getSync(t){return my.getStorageSync({key:t}).data}}t.exports=e;},1929:t=>{class e{connect(t){my.connectSocket({url:t.url,header:t.header,method:t.method,success:t.success,fail:t.fail,complete:t.complete});return {onOpen:my.onSocketOpen,send:my.sendSocketMessage,onMessage:t=>{my.onSocketMessage.call(my.onSocketMessage,(e=>{t.call(t,{data:e?e.data:""});}));},onError:my.onSocketError,onClose:my.onSocketClose,close:my.closeSocket}}}t.exports=e;},4379:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{os(){let t=window.navigator.userAgent.toLowerCase();if(t.indexOf("android")>0||t.indexOf("adr")>0)return "android";if(!!t.match(/\(i[^;]+;( u;)? cpu.+mac os x/))return "ios";if(t.indexOf("windows")>0||t.indexOf("win32")>0||t.indexOf("win64")>0)return "windows";if(t.indexOf("macintosh")>0||t.indexOf("mac os")>0)return "mac os";if(t.indexOf("linux")>0)return "linux";if(t.indexOf("unix")>0)return "linux";return "other"}osVersion(){let t=window.navigator.userAgent.toLowerCase();let e=t.substring(t.indexOf(";")+1).trim();if(e.indexOf(";")>0)return e.substring(0,e.indexOf(";")).trim();return e.substring(0,e.indexOf(")")).trim()}model(){return ""}brand(){return ""}platform(){return "H5"}platformVersion(){return ""}platformId(){return ""}language(){return window.navigator.language}userAgent(){return window.navigator.userAgent}getNetworkType(t){var e;null===(e=t.success)||void 0===e||e.call(t.success,{networkType:window.navigator.onLine?"unknown":"none"});}onNetworkStatusChange(t){}}e["default"]=r;},6899:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{set(t){var e;window.localStorage.setItem(t.key,t.data);null===(e=t.success)||void 0===e||e.call(t.success,"");}setSync(t,e){window.localStorage.setItem(t,e);}get(t){var e;let r=window.localStorage.getItem(t.key);null===(e=t.success)||void 0===e||e.call(t.success,r);}getSync(t){return window.localStorage.getItem(t)}}e["default"]=r;},776:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{connect(t){let e=new WebSocket(t.url);return {send:t=>{var r,i;try{e.send(t.data);null===(r=t.success)||void 0===r||r.call(t.success,{errMsg:""});}catch(e){null===(i=t.fail)||void 0===i||i.call(t.fail,{errMsg:e+""});}},close:t=>{var r,i;try{e.close(t.code,t.reason);null===(r=t.success)||void 0===r||r.call(t.success,{errMsg:""});}catch(e){null===(i=t.fail)||void 0===i||i.call(t.fail,{errMsg:e+""});}},onOpen:r=>{e.onopen=e=>{var i;null===(i=t.success)||void 0===i||i.call(t.success,"");r({header:""});};},onError:r=>{e.onerror=e=>{var i;null===(i=t.fail)||void 0===i||i.call(t.fail,"");r({errMsg:""});};},onMessage:t=>{e.onmessage=e=>{t({data:e.data});};},onClose:t=>{e.onclose=e=>{t(e);};}}}}e["default"]=r;},2002:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{constructor(){this.systemInfo=tt.getSystemInfoSync();}os(){return this.systemInfo.platform}osVersion(){return this.systemInfo.system}model(){return this.systemInfo.model}brand(){return this.systemInfo.brand}platform(){return "MP-TOUTIAO"}platformVersion(){return this.systemInfo.appName+" "+this.systemInfo.version}language(){return ""}platformId(){return ""}getNetworkType(t){tt.getNetworkType(t);}onNetworkStatusChange(t){tt.onNetworkStatusChange(t);}}e["default"]=r;},5807:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{set(t){tt.setStorage(t);}setSync(t,e){tt.setStorageSync(t,e);}get(t){tt.getStorage(t);}getSync(t){return tt.getStorageSync(t)}}e["default"]=r;},9704:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{connect(t){let e=tt.connectSocket({url:t.url,header:t.header,protocols:t.protocols,success:t.success,fail:t.fail,complete:t.complete});return {onOpen:e.onOpen,send:e.send,onMessage:e.onMessage,onError:e.onError,onClose:e.onClose,close:e.close}}}e["default"]=r;},6545:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{constructor(){try{this.systemInfo=uni.getSystemInfoSync();this.accountInfo=uni.getAccountInfoSync();}catch(t){}}os(){return this.systemInfo?this.systemInfo.platform:""}model(){return this.systemInfo?this.systemInfo.model:""}brand(){var t;return (null===(t=this.systemInfo)||void 0===t?void 0:t.brand)?this.systemInfo.brand:""}osVersion(){return this.systemInfo?this.systemInfo.system:""}platform(){let t="";
15
+ // #ifdef APP-PLUS
16
+ t="APP-PLUS";
17
+ // #endif
18
+ // #ifdef APP-PLUS-NVUE
19
+ t="APP-PLUS-NVUE";
20
+ // #endif
21
+ // #ifdef APP-NVUE
22
+ t="APP-NVUE";
23
+ // #endif
24
+ // #ifdef H5
25
+ t="H5";
26
+ // #endif
27
+ // #ifdef MP-WEIXIN
28
+ t="MP-WEIXIN";
29
+ // #endif
30
+ // #ifdef MP-ALIPAY
31
+ t="MP-ALIPAY";
32
+ // #endif
33
+ // #ifdef MP-BAIDU
34
+ t="MP-BAIDU";
35
+ // #endif
36
+ // #ifdef MP-TOUTIAO
37
+ t="MP-TOUTIAO";
38
+ // #endif
39
+ // #ifdef MP-LARK
40
+ t="MP-LARK";
41
+ // #endif
42
+ // #ifdef MP-QQ
43
+ t="MP-QQ";
44
+ // #endif
45
+ // #ifdef MP-KUAISHOU
46
+ t="MP-KUAISHOU";
47
+ // #endif
48
+ // #ifdef MP-360
49
+ t="MP-360";
50
+ // #endif
51
+ // #ifdef QUICKAPP-WEBVIEW
52
+ t="QUICKAPP-WEBVIEW";
53
+ // #endif
54
+ // #ifdef QUICKAPP-WEBVIEW-UNION
55
+ t="QUICKAPP-WEBVIEW-UNION";
56
+ // #endif
57
+ return t}platformVersion(){return this.systemInfo?this.systemInfo.version:""}platformId(){return this.accountInfo?this.accountInfo.miniProgram.appId:""}language(){var t;return (null===(t=this.systemInfo)||void 0===t?void 0:t.language)?this.systemInfo.language:""}userAgent(){return window?window.navigator.userAgent:""}getNetworkType(t){uni.getNetworkType(t);}onNetworkStatusChange(t){uni.onNetworkStatusChange(t);}}e["default"]=r;},3680:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{set(t){uni.setStorage(t);}setSync(t,e){uni.setStorageSync(t,e);}get(t){uni.getStorage(t);}getSync(t){return uni.getStorageSync(t)}}e["default"]=r;},7706:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{connect(t){let e=uni.connectSocket(t);return {send:t=>{
58
+ // #ifdef MP-ALIPAY
59
+ uni.sendSocketMessage(t);
60
+ // #endif
61
+ // #ifndef MP-ALIPAY
62
+ null===e||void 0===e||e.send(t);
63
+ // #endif
64
+ },close:t=>{
65
+ // #ifdef MP-ALIPAY
66
+ uni.closeSocket(t);
67
+ // #endif
68
+ // #ifndef MP-ALIPAY
69
+ null===e||void 0===e||e.close(t);
70
+ // #endif
71
+ },onOpen:t=>{
72
+ // #ifdef MP-ALIPAY
73
+ uni.onSocketOpen(t);
74
+ // #endif
75
+ // #ifndef MP-ALIPAY
76
+ null===e||void 0===e||e.onOpen(t);
77
+ // #endif
78
+ },onError:t=>{
79
+ // #ifdef MP-ALIPAY
80
+ uni.onSocketError(t);
81
+ // #endif
82
+ // #ifndef MP-ALIPAY
83
+ null===e||void 0===e||e.onError(t);
84
+ // #endif
85
+ },onMessage:t=>{
86
+ // #ifdef MP-ALIPAY
87
+ uni.onSocketMessage(t);
88
+ // #endif
89
+ // #ifndef MP-ALIPAY
90
+ null===e||void 0===e||e.onMessage(t);
91
+ // #endif
92
+ },onClose:t=>{
93
+ // #ifdef MP-ALIPAY
94
+ uni.onSocketClose(t);
95
+ // #endif
96
+ // #ifndef MP-ALIPAY
97
+ null===e||void 0===e||e.onClose(t);
98
+ // #endif
99
+ }}}}e["default"]=r;},4486:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{constructor(){this.systemInfo=wx.getSystemInfoSync();}os(){return this.systemInfo.platform}osVersion(){return this.systemInfo.system}model(){return this.systemInfo.model}brand(){return this.systemInfo.brand}platform(){return "MP-WEIXIN"}platformVersion(){return this.systemInfo.version}language(){return this.systemInfo.language}platformId(){if(wx.canIUse("getAccountInfoSync"))return wx.getAccountInfoSync().miniProgram.appId;return ""}getNetworkType(t){wx.getNetworkType({success:e=>{var r;null===(r=t.success)||void 0===r||r.call(t.success,{networkType:e.networkType});},fail:t.fail});}onNetworkStatusChange(t){wx.onNetworkStatusChange(t);}}e["default"]=r;},5867:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{set(t){wx.setStorage(t);}setSync(t,e){wx.setStorageSync(t,e);}get(t){wx.getStorage(t);}getSync(t){return wx.getStorageSync(t)}}e["default"]=r;},7006:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{connect(t){let e=wx.connectSocket({url:t.url,header:t.header,protocols:t.protocols,success:t.success,fail:t.fail,complete:t.complete});return {onOpen:e.onOpen,send:e.send,onMessage:e.onMessage,onError:e.onError,onClose:e.onClose,close:e.close}}}e["default"]=r;},6893:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});var r;(function(t){t.SDK_VERSION="GTMP-2.0.3.dcloud";t.DEFAULT_SOCKET_URL="wss://wshzn.gepush.com:5223/nws";t.SOCKET_PROTOCOL_VERSION="1.0";t.SERVER_PUBLIC_KEY="MHwwDQYJKoZIhvcNAQEBBQADawAwaAJhAJp1rROuvBF7sBSnvLaesj2iFhMcY8aXyLvpnNLKs2wjL3JmEnyr++SlVa35liUlzi83tnAFkn3A9GB7pHBNzawyUkBh8WUhq5bnFIkk2RaDa6+5MpG84DEv52p7RR+aWwIDAQAB";t.SERVER_PUBLIC_KEY_ID="69d747c4b9f641baf4004be4297e9f3b";t.ID_U_2_G=true;})(r||(r={}));e["default"]=r;},7555:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(7002));const s=i(r(529));const a=i(r(6379));class o{static init(t){var e;if(this.inited)return;try{this.checkAppid(t.appid);this.inited=true;s.default.info(`init: appid=${t.appid}`);a.default.init(t);n.default.connect();}catch(r){this.inited=false;null===(e=t.onError)||void 0===e||e.call(t.onError,{error:r});throw r}}static enableSocket(t){this.checkInit();n.default.enableSocket(t);}static checkInit(){if(!this.inited)throw new Error(`not init, please invoke init method firstly`)}static checkAppid(t){if(null==t||void 0==t||""==t.trim())throw new Error(`invalid appid ${t}`)}}o.inited=false;e["default"]=o;},6379:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(6667));const s=i(r(8506));const a=i(r(6893));const o=i(r(7002));const u=i(r(529));const c=i(r(4685));const l=i(r(2323));class f{static init(t){var e;if(a.default.ID_U_2_G)this.appid=l.default.to_getui(t.appid);else this.appid=t.appid;this.onError=t.onError;this.onClientId=t.onClientId;this.onlineState=t.onlineState;this.onPushMsg=t.onPushMsg;if(this.appid!=s.default.getSync(s.default.KEY_APPID,this.appid)){u.default.info("appid changed, clear session and cid");s.default.setSync(s.default.KEY_CID,"");s.default.setSync(s.default.KEY_SESSION,"");}s.default.setSync(s.default.KEY_APPID,this.appid);this.cid=s.default.getSync(s.default.KEY_CID,this.cid);if(this.cid)null===(e=this.onClientId)||void 0===e||e.call(this.onClientId,{cid:f.cid});this.session=s.default.getSync(s.default.KEY_SESSION,this.session);this.deviceId=s.default.getSync(s.default.KEY_DEVICE_ID,this.deviceId);this.regId=s.default.getSync(s.default.KEY_REGID,this.regId);if(!this.regId){this.regId=this.createRegId();s.default.set({key:s.default.KEY_REGID,data:this.regId});}this.socketUrl=s.default.getSync(s.default.KEY_SOCKET_URL,this.socketUrl);let r=this;c.default.getNetworkType({success:t=>{r.networkType=t.networkType;r.networkConnected="none"!=r.networkType&&""!=r.networkType;}});c.default.onNetworkStatusChange((t=>{r.networkConnected=t.isConnected;r.networkType=t.networkType;if(r.networkConnected)o.default.reconnect(100);}));}static createRegId(){return `M-V${n.default.md5Hex(this.getUuid())}-${(new Date).getTime()}`}static getUuid(){return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){let e=16*Math.random()|0,r="x"===t?e:3&e|8;return r.toString(16)}))}}f.appid="";f.cid="";f.regId="";f.session="";f.deviceId="";f.packetId=1;f.online=false;f.socketUrl=a.default.DEFAULT_SOCKET_URL;f.publicKeyId=a.default.SERVER_PUBLIC_KEY_ID;f.publicKey=a.default.SERVER_PUBLIC_KEY;f.lastAliasTime=0;f.networkConnected=true;f.networkType="none";e["default"]=f;},9586:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};var n,s;Object.defineProperty(e,"__esModule",{value:true});const a=i(r(661));const o=r(4198);const u=i(r(6379));class c extends a.default{constructor(){super(...arguments);this.actionMsgData=new l;}static initActionMsg(t,...e){super.initMsg(t);t.command=a.default.Command.CLIENT_MSG;t.data=t.actionMsgData=l.create();return t}static parseActionMsg(t,e){super.parseMsg(t,e);t.actionMsgData=l.parse(t.data);return t}send(){setTimeout((()=>{var t;if(c.waitingLoginMsgMap.has(this.actionMsgData.msgId)||c.waitingResponseMsgMap.has(this.actionMsgData.msgId)){c.waitingLoginMsgMap.delete(this.actionMsgData.msgId);c.waitingResponseMsgMap.delete(this.actionMsgData.msgId);null===(t=this.callback)||void 0===t||t.call(this.callback,{resultCode:o.ErrorCode.TIME_OUT,message:"waiting time out"});}}),1e4);if(!u.default.online){c.waitingLoginMsgMap.set(this.actionMsgData.msgId,this);return}if(this.actionMsgData.msgAction!=c.ClientAction.RECEIVED)c.waitingResponseMsgMap.set(this.actionMsgData.msgId,this);super.send();}receive(){}static sendWaitingMessages(){let t=this.waitingLoginMsgMap.keys();let e;while(e=t.next(),!e.done){let t=this.waitingLoginMsgMap.get(e.value);this.waitingLoginMsgMap.delete(e.value);null===t||void 0===t||t.send();}}static getWaitingResponseMessage(t){return c.waitingResponseMsgMap.get(t)}static removeWaitingResponseMessage(t){let e=c.waitingResponseMsgMap.get(t);if(e)c.waitingResponseMsgMap.delete(t);return e}}c.ServerAction=(n=class{},n.PUSH_MESSAGE="pushmessage",n.REDIRECT_SERVER="redirect_server",n.ADD_PHONE_INFO_RESULT="addphoneinfo",n.SET_MODE_RESULT="set_mode_result",n.SET_TAG_RESULT="settag_result",n.BIND_ALIAS_RESULT="response_bind",n.UNBIND_ALIAS_RESULT="response_unbind",n.FEED_BACK_RESULT="pushmessage_feedback",n.RECEIVED="received",n);c.ClientAction=(s=class{},s.ADD_PHONE_INFO="addphoneinfo",s.SET_MODE="set_mode",s.FEED_BACK="pushmessage_feedback",s.SET_TAGS="set_tag",s.BIND_ALIAS="bind_alias",s.UNBIND_ALIAS="unbind_alias",s.RECEIVED="received",s);c.waitingLoginMsgMap=new Map;c.waitingResponseMsgMap=new Map;class l{constructor(){this.appId="";this.cid="";this.msgId="";this.msgAction="";this.msgData="";this.msgExtraData="";}static create(){let t=new l;t.appId=u.default.appid;t.cid=u.default.cid;t.msgId=(2147483647&(new Date).getTime()).toString();return t}static parse(t){let e=new l;let r=JSON.parse(t);e.appId=r.appId;e.cid=r.cid;e.msgId=r.msgId;e.msgAction=r.msgAction;e.msgData=r.msgData;e.msgExtraData=r.msgExtraData;return e}}e["default"]=c;},4516:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(4685));const s=i(r(8506));const a=i(r(6893));const o=r(4198);const u=i(r(9586));const c=i(r(6379));class l extends u.default{constructor(){super(...arguments);this.addPhoneInfoData=new f;}static create(){let t=new l;super.initActionMsg(t);t.callback=e=>{if(e.resultCode!=o.ErrorCode.SUCCESS&&e.resultCode!=o.ErrorCode.REPEAT_MESSAGE)setTimeout((function(){t.send();}),30*1e3);else s.default.set({key:s.default.KEY_ADD_PHONE_INFO_TIME,data:(new Date).getTime()});};t.actionMsgData.msgAction=u.default.ClientAction.ADD_PHONE_INFO;t.addPhoneInfoData=f.create();t.actionMsgData.msgData=JSON.stringify(t.addPhoneInfoData);return t}send(){let t=(new Date).getTime();let e=s.default.getSync(s.default.KEY_ADD_PHONE_INFO_TIME,0);if(t-e<24*60*60*1e3)return;super.send();}}class f{constructor(){this.model="";this.brand="";this.system_version="";this.version="";this.deviceid="";this.type="";}static create(){let t=new f;t.model=n.default.model();t.brand=n.default.brand();t.system_version=n.default.osVersion();t.version=a.default.SDK_VERSION;t.device_token="";t.imei="";t.oaid="";t.mac="";t.idfa="";t.type="MINIPROGRAM";t.deviceid=`${t.type}-${c.default.deviceId}`;t.extra={os:n.default.os(),platform:n.default.platform(),platformVersion:n.default.platformVersion(),platformId:n.default.platformId(),language:n.default.language(),userAgent:n.default.userAgent()};return t}}e["default"]=l;},8723:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};var n,s;Object.defineProperty(e,"__esModule",{value:true});const a=i(r(6379));const o=r(4198);const u=i(r(9586));class c extends u.default{constructor(){super(...arguments);this.feedbackData=new l;}static create(t,e){let r=new c;super.initActionMsg(r);r.callback=t=>{if(t.resultCode!=o.ErrorCode.SUCCESS&&t.resultCode!=o.ErrorCode.REPEAT_MESSAGE)setTimeout((function(){r.send();}),30*1e3);};r.feedbackData=l.create(t,e);r.actionMsgData.msgAction=u.default.ClientAction.FEED_BACK;r.actionMsgData.msgData=JSON.stringify(r.feedbackData);return r}send(){super.send();}}c.ActionId=(n=class{},n.RECEIVE="0",n.MP_RECEIVE="210000",n.WEB_RECEIVE="220000",n.BEGIN="1",n);c.RESULT=(s=class{},s.OK="ok",s);class l{constructor(){this.messageid="";this.appkey="";this.appid="";this.taskid="";this.actionid="";this.result="";this.timestamp="";}static create(t,e){let r=new l;r.messageid=t.pushMessageData.messageid;r.appkey=t.pushMessageData.appKey;r.appid=a.default.appid;r.taskid=t.pushMessageData.taskId;r.actionid=e;r.result=c.RESULT.OK;r.timestamp=(new Date).getTime().toString();return r}}e["default"]=c;},6362:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(661));class s extends n.default{static create(){let t=new s;super.initMsg(t);t.command=n.default.Command.HEART_BEAT;return t}}e["default"]=s;},1386:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(6667));const s=i(r(6379));const a=i(r(661));class o extends a.default{constructor(){super(...arguments);this.keyNegotiateData=new u;}static create(){let t=new o;super.initMsg(t);t.command=a.default.Command.KEY_NEGOTIATE;n.default.resetKey();t.data=t.keyNegotiateData=u.create();return t}send(){super.send();}}class u{constructor(){this.appId="";this.rsaPublicKeyId="";this.algorithm="";this.secretKey="";this.iv="";}static create(){let t=new u;t.appId=s.default.appid;t.rsaPublicKeyId=s.default.publicKeyId;t.algorithm="AES";t.secretKey=n.default.getEncryptedSecretKey();t.iv=n.default.getEncryptedIV();return t}}e["default"]=o;},1280:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(661));const s=i(r(6667));const a=i(r(8858));const o=i(r(529));const u=i(r(6379));class c extends n.default{constructor(){super(...arguments);this.keyNegotiateResultData=new l;}static parse(t){let e=new c;super.parseMsg(e,t);e.keyNegotiateResultData=l.parse(e.data);return e}receive(){var t,e;if(0!=this.keyNegotiateResultData.errorCode){o.default.error(`key negotiate fail: ${this.data}`);null===(t=u.default.onError)||void 0===t||t.call(u.default.onError,{error:`key negotiate fail: ${this.data}`});return}let r=this.keyNegotiateResultData.encryptType.split("/");if(!s.default.algorithmMap.has(r[0].trim().toLowerCase())||!s.default.modeMap.has(r[1].trim().toLowerCase())||!s.default.paddingMap.has(r[2].trim().toLowerCase())){o.default.error(`key negotiate fail: ${this.data}`);null===(e=u.default.onError)||void 0===e||e.call(u.default.onError,{error:`key negotiate fail: ${this.data}`});return}s.default.setEncryptParams(r[0].trim().toLowerCase(),r[1].trim().toLowerCase(),r[2].trim().toLowerCase());a.default.create().send();}}class l{constructor(){this.errorCode=-1;this.errorMsg="";this.encryptType="";}static parse(t){let e=new l;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;e.encryptType=r.encryptType;return e}}e["default"]=c;},8858:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(6379));const s=i(r(6667));const a=i(r(661));const o=i(r(4534));class u extends a.default{constructor(){super(...arguments);this.loginData=new c;}static create(){let t=new u;super.initMsg(t);t.command=a.default.Command.LOGIN;t.data=t.loginData=c.create();return t}send(){if(!this.loginData.session||n.default.cid!=s.default.md5Hex(this.loginData.session)){o.default.create().send();return}super.send();}}class c{constructor(){this.appId="";this.session="";}static create(){let t=new c;t.appId=n.default.appid;t.session=n.default.session;return t}}e["default"]=u;},1606:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(8506));const s=i(r(661));const a=i(r(6379));const o=i(r(9586));const u=i(r(4516));const c=i(r(8858));class l extends s.default{constructor(){super(...arguments);this.loginResultData=new f;}static parse(t){let e=new l;super.parseMsg(e,t);e.loginResultData=f.parse(e.data);return e}receive(){var t;if(0!=this.loginResultData.errorCode){this.data;a.default.session=a.default.cid="";n.default.setSync(n.default.KEY_CID,"");n.default.setSync(n.default.KEY_SESSION,"");c.default.create().send();return}if(!a.default.online){a.default.online=true;null===(t=a.default.onlineState)||void 0===t||t.call(a.default.onlineState,{online:a.default.online});}o.default.sendWaitingMessages();u.default.create().send();}}class f{constructor(){this.errorCode=-1;this.errorMsg="";this.session="";}static parse(t){let e=new f;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;e.session=r.session;return e}}e["default"]=l;},661:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};var n;Object.defineProperty(e,"__esModule",{value:true});const s=i(r(9593));const a=i(r(7002));const o=i(r(6893));const u=i(r(6379));class c{constructor(){this.version="";this.command=0;this.packetId=0;this.timeStamp=0;this.data="";this.signature="";}static initMsg(t,...e){t.version=o.default.SOCKET_PROTOCOL_VERSION;t.command=0;t.timeStamp=(new Date).getTime();return t}static parseMsg(t,e){let r=JSON.parse(e);t.version=r.version;t.command=r.command;t.packetId=r.packetId;t.timeStamp=r.timeStamp;t.data=r.data;t.signature=r.signature;return t}stringify(){return JSON.stringify(this,["version","command","packetId","timeStamp","data","signature"])}send(){if(!a.default.isAvailable())return;this.packetId=u.default.packetId++;this.data=JSON.stringify(this.data);this.stringify();if(this.command!=c.Command.HEART_BEAT){s.default.sign(this);if(this.data&&this.command!=c.Command.KEY_NEGOTIATE)s.default.encrypt(this);}a.default.send(this.stringify());}}c.Command=(n=class{},n.HEART_BEAT=0,n.KEY_NEGOTIATE=1,n.KEY_NEGOTIATE_RESULT=16,n.REGISTER=2,n.REGISTER_RESULT=32,n.LOGIN=3,n.LOGIN_RESULT=48,n.LOGOUT=4,n.LOGOUT_RESULT=64,n.CLIENT_MSG=5,n.SERVER_MSG=80,n.SERVER_CLOSE=96,n.REDIRECT_SERVER=112,n);e["default"]=c;},9593:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(6667));var s;(function(t){function e(t){t.data=n.default.encrypt(t.data);}t.encrypt=e;function r(t){t.data=n.default.decrypt(t.data);}t.decrypt=r;function i(t){t.signature=n.default.sha256(`${t.timeStamp}${t.packetId}${t.command}${t.data}`);}t.sign=i;function s(t){let e=n.default.sha256(`${t.timeStamp}${t.packetId}${t.command}${t.data}`);if(t.signature!=e)throw new Error(`msg signature vierfy failed`)}t.verify=s;})(s||(s={}));e["default"]=s;},4054:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(1280));const s=i(r(1606));const a=i(r(661));const o=i(r(1277));const u=i(r(910));const c=i(r(9538));const l=i(r(9479));const f=i(r(6755));const h=i(r(2918));const d=i(r(9586));const v=i(r(9510));const p=i(r(4626));const g=i(r(7562));const y=i(r(9593));const m=i(r(9586));const w=i(r(9519));const _=i(r(8947));class S{static receiveMessage(t){let e=a.default.parseMsg(new a.default,t);if(e.command==a.default.Command.HEART_BEAT)return;if(e.command!=a.default.Command.KEY_NEGOTIATE_RESULT&&e.command!=a.default.Command.SERVER_CLOSE&&e.command!=a.default.Command.REDIRECT_SERVER)y.default.decrypt(e);if(e.command!=a.default.Command.SERVER_CLOSE&&e.command!=a.default.Command.REDIRECT_SERVER)y.default.verify(e);switch(e.command){case a.default.Command.KEY_NEGOTIATE_RESULT:n.default.parse(e.stringify()).receive();break;case a.default.Command.REGISTER_RESULT:o.default.parse(e.stringify()).receive();break;case a.default.Command.LOGIN_RESULT:s.default.parse(e.stringify()).receive();break;case a.default.Command.SERVER_MSG:this.receiveActionMsg(e.stringify());break;case a.default.Command.SERVER_CLOSE:_.default.parse(e.stringify()).receive();break;case a.default.Command.REDIRECT_SERVER:h.default.parse(e.stringify()).receive();break;}}static receiveActionMsg(t){let e=m.default.parseActionMsg(new m.default,t);if(e.actionMsgData.msgAction!=d.default.ServerAction.RECEIVED&&e.actionMsgData.msgAction!=d.default.ServerAction.REDIRECT_SERVER){let t=JSON.parse(e.actionMsgData.msgData);w.default.create(t.id).send();}switch(e.actionMsgData.msgAction){case d.default.ServerAction.PUSH_MESSAGE:f.default.parse(t).receive();break;case d.default.ServerAction.ADD_PHONE_INFO_RESULT:u.default.parse(t).receive();break;case d.default.ServerAction.SET_MODE_RESULT:v.default.parse(t).receive();break;case d.default.ServerAction.SET_TAG_RESULT:p.default.parse(t).receive();break;case d.default.ServerAction.BIND_ALIAS_RESULT:c.default.parse(t).receive();break;case d.default.ServerAction.UNBIND_ALIAS_RESULT:g.default.parse(t).receive();break;case d.default.ServerAction.FEED_BACK_RESULT:l.default.parse(t).receive();break;case d.default.ServerAction.RECEIVED:w.default.parse(t).receive();break}}}e["default"]=S;},9519:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=r(4198);const s=i(r(6379));const a=i(r(9586));class o extends a.default{constructor(){super(...arguments);this.receivedData=new u;}static create(t){let e=new o;super.initActionMsg(e);e.callback=t=>{if(t.resultCode!=n.ErrorCode.SUCCESS&&t.resultCode!=n.ErrorCode.REPEAT_MESSAGE)setTimeout((function(){e.send();}),3*1e3);};e.actionMsgData.msgAction=a.default.ClientAction.RECEIVED;e.receivedData=u.create(t);e.actionMsgData.msgData=JSON.stringify(e.receivedData);return e}static parse(t){let e=new o;super.parseActionMsg(e,t);e.receivedData=u.parse(e.data);return e}receive(){var t;let e=a.default.getWaitingResponseMessage(this.actionMsgData.msgId);if(e&&e.actionMsgData.msgAction==a.default.ClientAction.ADD_PHONE_INFO||e&&e.actionMsgData.msgAction==a.default.ClientAction.FEED_BACK){a.default.removeWaitingResponseMessage(e.actionMsgData.msgId);null===(t=e.callback)||void 0===t||t.call(e.callback,{resultCode:n.ErrorCode.SUCCESS,message:"received"});}}send(){super.send();}}class u{constructor(){this.msgId="";this.cid="";}static create(t){let e=new u;e.cid=s.default.cid;e.msgId=t;return e}static parse(t){let e=new u;let r=JSON.parse(t);e.cid=r.cid;e.msgId=r.msgId;return e}}e["default"]=o;},2918:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});e.RedirectServerData=void 0;const n=i(r(7002));const s=i(r(8506));const a=i(r(661));class o extends a.default{constructor(){super(...arguments);this.redirectServerData=new u;}static parse(t){let e=new o;super.parseMsg(e,t);e.redirectServerData=u.parse(e.data);return e}receive(){this.redirectServerData;s.default.setSync(s.default.KEY_REDIRECT_SERVER,JSON.stringify(this.redirectServerData));n.default.close("redirect server");n.default.reconnect(this.redirectServerData.delay);}}class u{constructor(){this.addressList=[];this.delay=0;this.loc="";this.conf="";this.time=0;}static parse(t){let e=new u;let r=JSON.parse(t);e.addressList=r.addressList;e.delay=r.delay;e.loc=r.loc;e.conf=r.conf;e.time=r.time?r.time:(new Date).getTime();return e}}e.RedirectServerData=u;e["default"]=o;},4534:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(6379));const s=i(r(661));class a extends s.default{constructor(){super(...arguments);this.registerData=new o;}static create(){let t=new a;super.initMsg(t);t.command=s.default.Command.REGISTER;t.data=t.registerData=o.create();return t}send(){super.send();}}class o{constructor(){this.appId="";this.regId="";}static create(){let t=new o;t.appId=n.default.appid;t.regId=n.default.regId;return t}}e["default"]=a;},1277:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(661));const s=i(r(8506));const a=i(r(6379));const o=i(r(8858));const u=i(r(529));class c extends n.default{constructor(){super(...arguments);this.registerResultData=new l;}static parse(t){let e=new c;super.parseMsg(e,t);e.registerResultData=l.parse(e.data);return e}receive(){var t,e;if(0!=this.registerResultData.errorCode||!this.registerResultData.cid||!this.registerResultData.session){u.default.error(`register fail: ${this.data}`);null===(t=a.default.onError)||void 0===t||t.call(a.default.onError,{error:`register fail: ${this.data}`});return}if(a.default.cid!=this.registerResultData.cid)s.default.setSync(s.default.KEY_ADD_PHONE_INFO_TIME,0);a.default.cid=this.registerResultData.cid;null===(e=a.default.onClientId)||void 0===e||e.call(a.default.onClientId,{cid:a.default.cid});s.default.set({key:s.default.KEY_CID,data:a.default.cid});a.default.session=this.registerResultData.session;s.default.set({key:s.default.KEY_SESSION,data:a.default.session});a.default.deviceId=this.registerResultData.deviceId;s.default.set({key:s.default.KEY_DEVICE_ID,data:a.default.deviceId});o.default.create().send();}}class l{constructor(){this.errorCode=-1;this.errorMsg="";this.cid="";this.session="";this.deviceId="";this.regId="";}static parse(t){let e=new l;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;e.cid=r.cid;e.session=r.session;e.deviceId=r.deviceId;e.regId=r.regId;return e}}e["default"]=c;},8947:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(7002));const s=i(r(529));const a=i(r(661));class o extends a.default{constructor(){super(...arguments);this.serverCloseData=new u;}static parse(t){let e=new o;super.parseMsg(e,t);e.serverCloseData=u.parse(e.data);return e}receive(){JSON.stringify(this.serverCloseData);let t=`server close ${this.serverCloseData.code}`;if(20==this.serverCloseData.code||23==this.serverCloseData.code||24==this.serverCloseData.code){n.default.allowReconnect=false;n.default.close(t);}else if(21==this.serverCloseData.code)this.safeClose21(t);else {n.default.allowReconnect=true;n.default.close(t);n.default.reconnect(10);}}safeClose21(t){try{if("undefined"!=typeof document)if(document.hasFocus()&&"visible"==document.visibilityState){n.default.allowReconnect=true;n.default.close(t);n.default.reconnect(10);return}n.default.allowReconnect=false;n.default.close(t);}catch(e){s.default.error(`ServerClose t1`,e);n.default.allowReconnect=false;n.default.close(`${t} error`);}}}class u{constructor(){this.code=-1;this.msg="";}static parse(t){let e=new u;let r=JSON.parse(t);e.code=r.code;e.msg=r.msg;return e}}e["default"]=o;},910:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(8506));const s=i(r(9586));class a extends s.default{constructor(){super(...arguments);this.addPhoneInfoResultData=new o;}static parse(t){let e=new a;super.parseActionMsg(e,t);e.addPhoneInfoResultData=o.parse(e.actionMsgData.msgData);return e}receive(){var t;this.addPhoneInfoResultData;let e=s.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(e)null===(t=e.callback)||void 0===t||t.call(e.callback,{resultCode:this.addPhoneInfoResultData.errorCode,message:this.addPhoneInfoResultData.errorMsg});n.default.set({key:n.default.KEY_ADD_PHONE_INFO_TIME,data:(new Date).getTime()});}}class o{constructor(){this.errorCode=-1;this.errorMsg="";}static parse(t){let e=new o;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;return e}}e["default"]=a;},9538:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(8506));const s=i(r(529));const a=i(r(9586));class o extends a.default{constructor(){super(...arguments);this.bindAliasResultData=new u;}static parse(t){let e=new o;super.parseActionMsg(e,t);e.bindAliasResultData=u.parse(e.actionMsgData.msgData);return e}receive(){var t;s.default.info(`bind alias result`,this.bindAliasResultData);let e=a.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(e)null===(t=e.callback)||void 0===t||t.call(e.callback,{resultCode:this.bindAliasResultData.errorCode,message:this.bindAliasResultData.errorMsg});n.default.set({key:n.default.KEY_BIND_ALIAS_TIME,data:(new Date).getTime()});}}class u{constructor(){this.errorCode=-1;this.errorMsg="";}static parse(t){let e=new u;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;return e}}e["default"]=o;},9479:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=r(4198);const s=i(r(9586));class a extends s.default{constructor(){super(...arguments);this.feedbackResultData=new o;}static parse(t){let e=new a;super.parseActionMsg(e,t);e.feedbackResultData=o.parse(e.actionMsgData.msgData);return e}receive(){var t;this.feedbackResultData;let e=s.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(e)null===(t=e.callback)||void 0===t||t.call(e.callback,{resultCode:n.ErrorCode.SUCCESS,message:"received"});}}class o{constructor(){this.actionId="";this.taskId="";this.result="";}static parse(t){let e=new o;let r=JSON.parse(t);e.actionId=r.actionId;e.taskId=r.taskId;e.result=r.result;return e}}e["default"]=a;},6755:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};var n;Object.defineProperty(e,"__esModule",{value:true});const s=i(r(6379));const a=i(r(9586));const o=i(r(8723));class u extends a.default{constructor(){super(...arguments);this.pushMessageData=new c;}static parse(t){let e=new u;super.parseActionMsg(e,t);e.pushMessageData=c.parse(e.actionMsgData.msgData);return e}receive(){var t;this.pushMessageData;if(this.pushMessageData.appId!=s.default.appid||!this.pushMessageData.messageid||!this.pushMessageData.taskId)this.stringify();o.default.create(this,o.default.ActionId.RECEIVE).send();o.default.create(this,o.default.ActionId.MP_RECEIVE).send();if(this.actionMsgData.msgExtraData&&s.default.onPushMsg)null===(t=s.default.onPushMsg)||void 0===t||t.call(s.default.onPushMsg,{message:this.actionMsgData.msgExtraData});}}class c{constructor(){this.id="";this.appKey="";this.appId="";this.messageid="";this.taskId="";this.actionChain=[];this.cdnType="";}static parse(t){let e=new c;let r=JSON.parse(t);e.id=r.id;e.appKey=r.appKey;e.appId=r.appId;e.messageid=r.messageid;e.taskId=r.taskId;e.actionChain=r.actionChain;e.cdnType=r.cdnType;return e}}(n=class{},n.GO_TO="goto",n.TRANSMIT="transmit",n);e["default"]=u;},9510:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9586));class s extends n.default{constructor(){super(...arguments);this.setModeResultData=new a;}static parse(t){let e=new s;super.parseActionMsg(e,t);e.setModeResultData=a.parse(e.actionMsgData.msgData);return e}receive(){var t;this.setModeResultData;let e=n.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(e)null===(t=e.callback)||void 0===t||t.call(e.callback,{resultCode:this.setModeResultData.errorCode,message:this.setModeResultData.errorMsg});}}class a{constructor(){this.errorCode=-1;this.errorMsg="";}static parse(t){let e=new a;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;return e}}e["default"]=s;},4626:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(8506));const s=i(r(529));const a=i(r(9586));class o extends a.default{constructor(){super(...arguments);this.setTagResultData=new u;}static parse(t){let e=new o;super.parseActionMsg(e,t);e.setTagResultData=u.parse(e.actionMsgData.msgData);return e}receive(){var t;s.default.info(`set tag result`,this.setTagResultData);let e=a.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(e)null===(t=e.callback)||void 0===t||t.call(e.callback,{resultCode:this.setTagResultData.errorCode,message:this.setTagResultData.errorMsg});n.default.set({key:n.default.KEY_SET_TAG_TIME,data:(new Date).getTime()});}}class u{constructor(){this.errorCode=0;this.errorMsg="";}static parse(t){let e=new u;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;return e}}e["default"]=o;},7562:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(8506));const s=i(r(529));const a=i(r(9586));class o extends a.default{constructor(){super(...arguments);this.unbindAliasResultData=new u;}static parse(t){let e=new o;super.parseActionMsg(e,t);e.unbindAliasResultData=u.parse(e.actionMsgData.msgData);return e}receive(){var t;s.default.info(`unbind alias result`,this.unbindAliasResultData);let e=a.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(e)null===(t=e.callback)||void 0===t||t.call(e.callback,{resultCode:this.unbindAliasResultData.errorCode,message:this.unbindAliasResultData.errorMsg});n.default.set({key:n.default.KEY_BIND_ALIAS_TIME,data:(new Date).getTime()});}}class u{constructor(){this.errorCode=-1;this.errorMsg="";}static parse(t){let e=new u;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;return e}}e["default"]=o;},8227:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{constructor(t){this.delay=10;this.delay=t;}start(){this.cancel();let t=this;this.timer=setInterval((function(){t.run();}),this.delay);}cancel(){if(this.timer)clearInterval(this.timer);}}e["default"]=r;},7167:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};var n;Object.defineProperty(e,"__esModule",{value:true});const s=i(r(6362));const a=i(r(8227));class o extends a.default{static getInstance(){return o.InstanceHolder.instance}run(){s.default.create().send();}refresh(){this.delay=60*1e3;this.start();}}o.INTERVAL=60*1e3;o.InstanceHolder=(n=class{},n.instance=new o(o.INTERVAL),n);e["default"]=o;},2323:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(4736));const s=i(r(6667));var a;(function(t){let e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";let r=(0, n.default)("9223372036854775808");function i(t){let e=a(t);let r=o(e);let i=r[1];let n=r[0];return u(i)+u(n)}t.to_getui=i;function a(t){let e=s.default.md5Hex(t);let r=c(e);r[6]&=15;r[6]|=48;r[8]&=63;r[8]|=128;return r}function o(t){let e=(0, n.default)(0);let r=(0, n.default)(0);for(let r=0;r<8;r++)e=e.multiply(256).plus((0, n.default)(255&t[r]));for(let e=8;e<16;e++)r=r.multiply(256).plus((0, n.default)(255&t[e]));return [e,r]}function u(t){if(t>=r)t=r.multiply(2).minus(t);let i="";for(;t>(0, n.default)(0);t=t.divide(62))i+=e.charAt(Number(t.divmod(62).remainder));return i}function c(t){let e=t.length;if(e%2!=0)return [];let r=new Array;for(let i=0;i<e;i+=2)r.push(parseInt(t.substring(i,i+2),16));return r}})(a||(a={}));e["default"]=a;},6667:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(2620));const s=i(r(1354));const a=i(r(6379));var o;(function(t){let e;let r;let i;let o;let u=new n.default;let c=s.default.mode.CBC;let l=s.default.pad.Pkcs7;let f=s.default.AES;t.algorithmMap=new Map([["aes",s.default.AES]]);t.modeMap=new Map([["cbc",s.default.mode.CBC],["cfb",s.default.mode.CFB],["cfb128",s.default.mode.CFB],["ecb",s.default.mode.ECB],["ofb",s.default.mode.OFB]]);t.paddingMap=new Map([["nopadding",s.default.pad.NoPadding],["pkcs7",s.default.pad.Pkcs7]]);function h(){e=s.default.MD5((new Date).getTime().toString());r=s.default.MD5(e);u.setPublicKey(a.default.publicKey);e.toString(s.default.enc.Hex);r.toString(s.default.enc.Hex);i=u.encrypt(e.toString(s.default.enc.Hex));o=u.encrypt(r.toString(s.default.enc.Hex));}t.resetKey=h;function d(e,r,i){f=t.algorithmMap.get(e);c=t.modeMap.get(r);l=t.paddingMap.get(i);}t.setEncryptParams=d;function v(t){return f.encrypt(t,e,{iv:r,mode:c,padding:l}).toString()}t.encrypt=v;function p(t){return f.decrypt(t,e,{iv:r,mode:c,padding:l}).toString(s.default.enc.Utf8)}t.decrypt=p;function g(t){return s.default.SHA256(t).toString(s.default.enc.Base64)}t.sha256=g;function y(t){return s.default.MD5(t).toString(s.default.enc.Hex)}t.md5Hex=y;function m(){return i?i:""}t.getEncryptedSecretKey=m;function w(){return o?o:""}t.getEncryptedIV=w;})(o||(o={}));e["default"]=o;},529:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{static info(...t){if(this.debugMode)console.info(`[GtPush]`,t);}static warn(...t){console.warn(`[GtPush]`,t);}static error(...t){console.error(`[GtPush]`,t);}}r.debugMode=false;e["default"]=r;},2620:(t,e,r)=>{r.r(e);r.d(e,{JSEncrypt:()=>wt,default:()=>_t});var i="0123456789abcdefghijklmnopqrstuvwxyz";function n(t){return i.charAt(t)}function s(t,e){return t&e}function a(t,e){return t|e}function o(t,e){return t^e}function u(t,e){return t&~e}function c(t){if(0==t)return -1;var e=0;if(0==(65535&t)){t>>=16;e+=16;}if(0==(255&t)){t>>=8;e+=8;}if(0==(15&t)){t>>=4;e+=4;}if(0==(3&t)){t>>=2;e+=2;}if(0==(1&t))++e;return e}function l(t){var e=0;while(0!=t){t&=t-1;++e;}return e}var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var h="=";function d(t){var e;var r;var i="";for(e=0;e+3<=t.length;e+=3){r=parseInt(t.substring(e,e+3),16);i+=f.charAt(r>>6)+f.charAt(63&r);}if(e+1==t.length){r=parseInt(t.substring(e,e+1),16);i+=f.charAt(r<<2);}else if(e+2==t.length){r=parseInt(t.substring(e,e+2),16);i+=f.charAt(r>>2)+f.charAt((3&r)<<4);}while((3&i.length)>0)i+=h;return i}function v(t){var e="";var r;var i=0;var s=0;for(r=0;r<t.length;++r){if(t.charAt(r)==h)break;var a=f.indexOf(t.charAt(r));if(a<0)continue;if(0==i){e+=n(a>>2);s=3&a;i=1;}else if(1==i){e+=n(s<<2|a>>4);s=15&a;i=2;}else if(2==i){e+=n(s);e+=n(a>>2);s=3&a;i=3;}else {e+=n(s<<2|a>>4);e+=n(15&a);i=0;}}if(1==i)e+=n(s<<2);return e}var g;var y={decode:function(t){var e;if(void 0===g){var r="0123456789ABCDEF";var i=" \f\n\r\t \u2028\u2029";g={};for(e=0;e<16;++e)g[r.charAt(e)]=e;r=r.toLowerCase();for(e=10;e<16;++e)g[r.charAt(e)]=e;for(e=0;e<i.length;++e)g[i.charAt(e)]=-1;}var n=[];var s=0;var a=0;for(e=0;e<t.length;++e){var o=t.charAt(e);if("="==o)break;o=g[o];if(-1==o)continue;if(void 0===o)throw new Error("Illegal character at offset "+e);s|=o;if(++a>=2){n[n.length]=s;s=0;a=0;}else s<<=4;}if(a)throw new Error("Hex encoding incomplete: 4 bits missing");return n}};var m;var w={decode:function(t){var e;if(void 0===m){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var i="= \f\n\r\t \u2028\u2029";m=Object.create(null);for(e=0;e<64;++e)m[r.charAt(e)]=e;m["-"]=62;m["_"]=63;for(e=0;e<i.length;++e)m[i.charAt(e)]=-1;}var n=[];var s=0;var a=0;for(e=0;e<t.length;++e){var o=t.charAt(e);if("="==o)break;o=m[o];if(-1==o)continue;if(void 0===o)throw new Error("Illegal character at offset "+e);s|=o;if(++a>=4){n[n.length]=s>>16;n[n.length]=s>>8&255;n[n.length]=255&s;s=0;a=0;}else s<<=6;}switch(a){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:n[n.length]=s>>10;break;case 3:n[n.length]=s>>16;n[n.length]=s>>8&255;break}return n},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(t){var e=w.re.exec(t);if(e)if(e[1])t=e[1];else if(e[2])t=e[2];else throw new Error("RegExp out of sync");return w.decode(t)}};var _=1e13;var S=function(){function t(t){this.buf=[+t||0];}t.prototype.mulAdd=function(t,e){var r=this.buf;var i=r.length;var n;var s;for(n=0;n<i;++n){s=r[n]*t+e;if(s<_)e=0;else {e=0|s/_;s-=e*_;}r[n]=s;}if(e>0)r[n]=e;};t.prototype.sub=function(t){var e=this.buf;var r=e.length;var i;var n;for(i=0;i<r;++i){n=e[i]-t;if(n<0){n+=_;t=1;}else t=0;e[i]=n;}while(0===e[e.length-1])e.pop();};t.prototype.toString=function(t){if(10!=(t||10))throw new Error("only base 10 is supported");var e=this.buf;var r=e[e.length-1].toString();for(var i=e.length-2;i>=0;--i)r+=(_+e[i]).toString().substring(1);return r};t.prototype.valueOf=function(){var t=this.buf;var e=0;for(var r=t.length-1;r>=0;--r)e=e*_+t[r];return e};t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this};return t}();var b="…";var E=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;var D=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function T(t,e){if(t.length>e)t=t.substring(0,e)+b;return t}var M=function(){function t(e,r){this.hexDigits="0123456789ABCDEF";if(e instanceof t){this.enc=e.enc;this.pos=e.pos;}else {this.enc=e;this.pos=r;}}t.prototype.get=function(t){if(void 0===t)t=this.pos++;if(t>=this.enc.length)throw new Error("Requesting byte offset "+t+" on a stream of length "+this.enc.length);return "string"===typeof this.enc?this.enc.charCodeAt(t):this.enc[t]};t.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(15&t)};t.prototype.hexDump=function(t,e,r){var i="";for(var n=t;n<e;++n){i+=this.hexByte(this.get(n));if(true!==r)switch(15&n){case 7:i+=" ";break;case 15:i+="\n";break;default:i+=" ";}}return i};t.prototype.isASCII=function(t,e){for(var r=t;r<e;++r){var i=this.get(r);if(i<32||i>176)return false}return true};t.prototype.parseStringISO=function(t,e){var r="";for(var i=t;i<e;++i)r+=String.fromCharCode(this.get(i));return r};t.prototype.parseStringUTF=function(t,e){var r="";for(var i=t;i<e;){var n=this.get(i++);if(n<128)r+=String.fromCharCode(n);else if(n>191&&n<224)r+=String.fromCharCode((31&n)<<6|63&this.get(i++));else r+=String.fromCharCode((15&n)<<12|(63&this.get(i++))<<6|63&this.get(i++));}return r};t.prototype.parseStringBMP=function(t,e){var r="";var i;var n;for(var s=t;s<e;){i=this.get(s++);n=this.get(s++);r+=String.fromCharCode(i<<8|n);}return r};t.prototype.parseTime=function(t,e,r){var i=this.parseStringISO(t,e);var n=(r?E:D).exec(i);if(!n)return "Unrecognized time: "+i;if(r){n[1]=+n[1];n[1]+=+n[1]<70?2e3:1900;}i=n[1]+"-"+n[2]+"-"+n[3]+" "+n[4];if(n[5]){i+=":"+n[5];if(n[6]){i+=":"+n[6];if(n[7])i+="."+n[7];}}if(n[8]){i+=" UTC";if("Z"!=n[8]){i+=n[8];if(n[9])i+=":"+n[9];}}return i};t.prototype.parseInteger=function(t,e){var r=this.get(t);var i=r>127;var n=i?255:0;var s;var a="";while(r==n&&++t<e)r=this.get(t);s=e-t;if(0===s)return i?-1:0;if(s>4){a=r;s<<=3;while(0==(128&(+a^n))){a=+a<<1;--s;}a="("+s+" bit)\n";}if(i)r-=256;var o=new S(r);for(var u=t+1;u<e;++u)o.mulAdd(256,this.get(u));return a+o.toString()};t.prototype.parseBitString=function(t,e,r){var i=this.get(t);var n=(e-t-1<<3)-i;var s="("+n+" bit)\n";var a="";for(var o=t+1;o<e;++o){var u=this.get(o);var c=o==e-1?i:0;for(var l=7;l>=c;--l)a+=u>>l&1?"1":"0";if(a.length>r)return s+T(a,r)}return s+a};t.prototype.parseOctetString=function(t,e,r){if(this.isASCII(t,e))return T(this.parseStringISO(t,e),r);var i=e-t;var n="("+i+" byte)\n";r/=2;if(i>r)e=t+r;for(var s=t;s<e;++s)n+=this.hexByte(this.get(s));if(i>r)n+=b;return n};t.prototype.parseOID=function(t,e,r){var i="";var n=new S;var s=0;for(var a=t;a<e;++a){var o=this.get(a);n.mulAdd(128,127&o);s+=7;if(!(128&o)){if(""===i){n=n.simplify();if(n instanceof S){n.sub(80);i="2."+n.toString();}else {var u=n<80?n<40?0:1:2;i=u+"."+(n-40*u);}}else i+="."+n.toString();if(i.length>r)return T(i,r);n=new S;s=0;}}if(s>0)i+=".incomplete";return i};return t}();var I=function(){function t(t,e,r,i,n){if(!(i instanceof A))throw new Error("Invalid tag value.");this.stream=t;this.header=e;this.length=r;this.tag=i;this.sub=n;}t.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return "EOC";case 1:return "BOOLEAN";case 2:return "INTEGER";case 3:return "BIT_STRING";case 4:return "OCTET_STRING";case 5:return "NULL";case 6:return "OBJECT_IDENTIFIER";case 7:return "ObjectDescriptor";case 8:return "EXTERNAL";case 9:return "REAL";case 10:return "ENUMERATED";case 11:return "EMBEDDED_PDV";case 12:return "UTF8String";case 16:return "SEQUENCE";case 17:return "SET";case 18:return "NumericString";case 19:return "PrintableString";case 20:return "TeletexString";case 21:return "VideotexString";case 22:return "IA5String";case 23:return "UTCTime";case 24:return "GeneralizedTime";case 25:return "GraphicString";case 26:return "VisibleString";case 27:return "GeneralString";case 28:return "UniversalString";case 30:return "BMPString"}return "Universal_"+this.tag.tagNumber.toString();case 1:return "Application_"+this.tag.tagNumber.toString();case 2:return "["+this.tag.tagNumber.toString()+"]";case 3:return "Private_"+this.tag.tagNumber.toString()}};t.prototype.content=function(t){if(void 0===this.tag)return null;if(void 0===t)t=1/0;var e=this.posContent();var r=Math.abs(this.length);if(!this.tag.isUniversal()){if(null!==this.sub)return "("+this.sub.length+" elem)";return this.stream.parseOctetString(e,e+r,t)}switch(this.tag.tagNumber){case 1:return 0===this.stream.get(e)?"false":"true";case 2:return this.stream.parseInteger(e,e+r);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+r,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+r,t);case 6:return this.stream.parseOID(e,e+r,t);case 16:case 17:if(null!==this.sub)return "("+this.sub.length+" elem)";else return "(no elem)";case 12:return T(this.stream.parseStringUTF(e,e+r),t);case 18:case 19:case 20:case 21:case 22:case 26:return T(this.stream.parseStringISO(e,e+r),t);case 30:return T(this.stream.parseStringBMP(e,e+r),t);case 23:case 24:return this.stream.parseTime(e,e+r,23==this.tag.tagNumber)}return null};t.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"};t.prototype.toPrettyString=function(t){if(void 0===t)t="";var e=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0)e+="+";e+=this.length;if(this.tag.tagConstructed)e+=" (constructed)";else if(this.tag.isUniversal()&&(3==this.tag.tagNumber||4==this.tag.tagNumber)&&null!==this.sub)e+=" (encapsulates)";e+="\n";if(null!==this.sub){t+=" ";for(var r=0,i=this.sub.length;r<i;++r)e+=this.sub[r].toPrettyString(t);}return e};t.prototype.posStart=function(){return this.stream.pos};t.prototype.posContent=function(){return this.stream.pos+this.header};t.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)};t.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),true)};t.decodeLength=function(t){var e=t.get();var r=127&e;if(r==e)return r;if(r>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(0===r)return null;e=0;for(var i=0;i<r;++i)e=256*e+t.get();return e};t.prototype.getHexStringValue=function(){var t=this.toHexString();var e=2*this.header;var r=2*this.length;return t.substr(e,r)};t.decode=function(e){var r;if(!(e instanceof M))r=new M(e,0);else r=e;var i=new M(r);var n=new A(r);var s=t.decodeLength(r);var a=r.pos;var o=a-i.pos;var u=null;var c=function(){var e=[];if(null!==s){var i=a+s;while(r.pos<i)e[e.length]=t.decode(r);if(r.pos!=i)throw new Error("Content size is not correct for container starting at offset "+a)}else try{for(;;){var n=t.decode(r);if(n.tag.isEOC())break;e[e.length]=n;}s=a-r.pos;}catch(t){throw new Error("Exception while decoding undefined length content: "+t)}return e};if(n.tagConstructed)u=c();else if(n.isUniversal()&&(3==n.tagNumber||4==n.tagNumber))try{if(3==n.tagNumber)if(0!=r.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");u=c();for(var l=0;l<u.length;++l)if(u[l].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(t){u=null;}if(null===u){if(null===s)throw new Error("We can't skip over an invalid tag with undefined length at offset "+a);r.pos=a+Math.abs(s);}return new t(i,o,s,n,u)};return t}();var A=function(){function t(t){var e=t.get();this.tagClass=e>>6;this.tagConstructed=0!==(32&e);this.tagNumber=31&e;if(31==this.tagNumber){var r=new S;do{e=t.get();r.mulAdd(128,127&e);}while(128&e);this.tagNumber=r.simplify();}}t.prototype.isUniversal=function(){return 0===this.tagClass};t.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber};return t}();var x;var R=0xdeadbeefcafe;var B=15715070==(16777215&R);var O=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997];var k=(1<<26)/O[O.length-1];var C=function(){function t(t,e,r){if(null!=t)if("number"==typeof t)this.fromNumber(t,e,r);else if(null==e&&"string"!=typeof t)this.fromString(t,256);else this.fromString(t,e);}t.prototype.toString=function(t){if(this.s<0)return "-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else if(4==t)e=2;else return this.toRadix(t);var r=(1<<e)-1;var i;var s=false;var a="";var o=this.t;var u=this.DB-o*this.DB%e;if(o-- >0){if(u<this.DB&&(i=this[o]>>u)>0){s=true;a=n(i);}while(o>=0){if(u<e){i=(this[o]&(1<<u)-1)<<e-u;i|=this[--o]>>(u+=this.DB-e);}else {i=this[o]>>(u-=e)&r;if(u<=0){u+=this.DB;--o;}}if(i>0)s=true;if(s)a+=n(i);}}return s?a:"0"};t.prototype.negate=function(){var e=H();t.ZERO.subTo(this,e);return e};t.prototype.abs=function(){return this.s<0?this.negate():this};t.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var r=this.t;e=r-t.t;if(0!=e)return this.s<0?-e:e;while(--r>=0)if(0!=(e=this[r]-t[r]))return e;return 0};t.prototype.bitLength=function(){if(this.t<=0)return 0;return this.DB*(this.t-1)+W(this[this.t-1]^this.s&this.DM)};t.prototype.mod=function(e){var r=H();this.abs().divRemTo(e,null,r);if(this.s<0&&r.compareTo(t.ZERO)>0)e.subTo(r,r);return r};t.prototype.modPowInt=function(t,e){var r;if(t<256||e.isEven())r=new P(e);else r=new V(e);return this.exp(t,r)};t.prototype.clone=function(){var t=H();this.copyTo(t);return t};t.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;else if(0==this.t)return -1}else if(1==this.t)return this[0];else if(0==this.t)return 0;return (this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]};t.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24};t.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16};t.prototype.signum=function(){if(this.s<0)return -1;else if(this.t<=0||1==this.t&&this[0]<=0)return 0;else return 1};t.prototype.toByteArray=function(){var t=this.t;var e=[];e[0]=this.s;var r=this.DB-t*this.DB%8;var i;var n=0;if(t-- >0){if(r<this.DB&&(i=this[t]>>r)!=(this.s&this.DM)>>r)e[n++]=i|this.s<<this.DB-r;while(t>=0){if(r<8){i=(this[t]&(1<<r)-1)<<8-r;i|=this[--t]>>(r+=this.DB-8);}else {i=this[t]>>(r-=8)&255;if(r<=0){r+=this.DB;--t;}}if(0!=(128&i))i|=-256;if(0==n&&(128&this.s)!=(128&i))++n;if(n>0||i!=this.s)e[n++]=i;}}return e};t.prototype.equals=function(t){return 0==this.compareTo(t)};t.prototype.min=function(t){return this.compareTo(t)<0?this:t};t.prototype.max=function(t){return this.compareTo(t)>0?this:t};t.prototype.and=function(t){var e=H();this.bitwiseTo(t,s,e);return e};t.prototype.or=function(t){var e=H();this.bitwiseTo(t,a,e);return e};t.prototype.xor=function(t){var e=H();this.bitwiseTo(t,o,e);return e};t.prototype.andNot=function(t){var e=H();this.bitwiseTo(t,u,e);return e};t.prototype.not=function(){var t=H();for(var e=0;e<this.t;++e)t[e]=this.DM&~this[e];t.t=this.t;t.s=~this.s;return t};t.prototype.shiftLeft=function(t){var e=H();if(t<0)this.rShiftTo(-t,e);else this.lShiftTo(t,e);return e};t.prototype.shiftRight=function(t){var e=H();if(t<0)this.lShiftTo(-t,e);else this.rShiftTo(t,e);return e};t.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+c(this[t]);if(this.s<0)return this.t*this.DB;return -1};t.prototype.bitCount=function(){var t=0;var e=this.s&this.DM;for(var r=0;r<this.t;++r)t+=l(this[r]^e);return t};t.prototype.testBit=function(t){var e=Math.floor(t/this.DB);if(e>=this.t)return 0!=this.s;return 0!=(this[e]&1<<t%this.DB)};t.prototype.setBit=function(t){return this.changeBit(t,a)};t.prototype.clearBit=function(t){return this.changeBit(t,u)};t.prototype.flipBit=function(t){return this.changeBit(t,o)};t.prototype.add=function(t){var e=H();this.addTo(t,e);return e};t.prototype.subtract=function(t){var e=H();this.subTo(t,e);return e};t.prototype.multiply=function(t){var e=H();this.multiplyTo(t,e);return e};t.prototype.divide=function(t){var e=H();this.divRemTo(t,e,null);return e};t.prototype.remainder=function(t){var e=H();this.divRemTo(t,null,e);return e};t.prototype.divideAndRemainder=function(t){var e=H();var r=H();this.divRemTo(t,e,r);return [e,r]};t.prototype.modPow=function(t,e){var r=t.bitLength();var i;var n=Y(1);var s;if(r<=0)return n;else if(r<18)i=1;else if(r<48)i=3;else if(r<144)i=4;else if(r<768)i=5;else i=6;if(r<8)s=new P(e);else if(e.isEven())s=new L(e);else s=new V(e);var a=[];var o=3;var u=i-1;var c=(1<<i)-1;a[1]=s.convert(this);if(i>1){var l=H();s.sqrTo(a[1],l);while(o<=c){a[o]=H();s.mulTo(l,a[o-2],a[o]);o+=2;}}var f=t.t-1;var h;var d=true;var v=H();var p;r=W(t[f])-1;while(f>=0){if(r>=u)h=t[f]>>r-u&c;else {h=(t[f]&(1<<r+1)-1)<<u-r;if(f>0)h|=t[f-1]>>this.DB+r-u;}o=i;while(0==(1&h)){h>>=1;--o;}if((r-=o)<0){r+=this.DB;--f;}if(d){a[h].copyTo(n);d=false;}else {while(o>1){s.sqrTo(n,v);s.sqrTo(v,n);o-=2;}if(o>0)s.sqrTo(n,v);else {p=n;n=v;v=p;}s.mulTo(v,a[h],n);}while(f>=0&&0==(t[f]&1<<r)){s.sqrTo(n,v);p=n;n=v;v=p;if(--r<0){r=this.DB-1;--f;}}}return s.revert(n)};t.prototype.modInverse=function(e){var r=e.isEven();if(this.isEven()&&r||0==e.signum())return t.ZERO;var i=e.clone();var n=this.clone();var s=Y(1);var a=Y(0);var o=Y(0);var u=Y(1);while(0!=i.signum()){while(i.isEven()){i.rShiftTo(1,i);if(r){if(!s.isEven()||!a.isEven()){s.addTo(this,s);a.subTo(e,a);}s.rShiftTo(1,s);}else if(!a.isEven())a.subTo(e,a);a.rShiftTo(1,a);}while(n.isEven()){n.rShiftTo(1,n);if(r){if(!o.isEven()||!u.isEven()){o.addTo(this,o);u.subTo(e,u);}o.rShiftTo(1,o);}else if(!u.isEven())u.subTo(e,u);u.rShiftTo(1,u);}if(i.compareTo(n)>=0){i.subTo(n,i);if(r)s.subTo(o,s);a.subTo(u,a);}else {n.subTo(i,n);if(r)o.subTo(s,o);u.subTo(a,u);}}if(0!=n.compareTo(t.ONE))return t.ZERO;if(u.compareTo(e)>=0)return u.subtract(e);if(u.signum()<0)u.addTo(e,u);else return u;if(u.signum()<0)return u.add(e);else return u};t.prototype.pow=function(t){return this.exp(t,new N)};t.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone();var r=t.s<0?t.negate():t.clone();if(e.compareTo(r)<0){var i=e;e=r;r=i;}var n=e.getLowestSetBit();var s=r.getLowestSetBit();if(s<0)return e;if(n<s)s=n;if(s>0){e.rShiftTo(s,e);r.rShiftTo(s,r);}while(e.signum()>0){if((n=e.getLowestSetBit())>0)e.rShiftTo(n,e);if((n=r.getLowestSetBit())>0)r.rShiftTo(n,r);if(e.compareTo(r)>=0){e.subTo(r,e);e.rShiftTo(1,e);}else {r.subTo(e,r);r.rShiftTo(1,r);}}if(s>0)r.lShiftTo(s,r);return r};t.prototype.isProbablePrime=function(t){var e;var r=this.abs();if(1==r.t&&r[0]<=O[O.length-1]){for(e=0;e<O.length;++e)if(r[0]==O[e])return true;return false}if(r.isEven())return false;e=1;while(e<O.length){var i=O[e];var n=e+1;while(n<O.length&&i<k)i*=O[n++];i=r.modInt(i);while(e<n)if(i%O[e++]==0)return false}return r.millerRabin(t)};t.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t;t.s=this.s;};t.prototype.fromInt=function(t){this.t=1;this.s=t<0?-1:0;if(t>0)this[0]=t;else if(t<-1)this[0]=t+this.DV;else this.t=0;};t.prototype.fromString=function(e,r){var i;if(16==r)i=4;else if(8==r)i=3;else if(256==r)i=8;else if(2==r)i=1;else if(32==r)i=5;else if(4==r)i=2;else {this.fromRadix(e,r);return}this.t=0;this.s=0;var n=e.length;var s=false;var a=0;while(--n>=0){var o=8==i?255&+e[n]:G(e,n);if(o<0){if("-"==e.charAt(n))s=true;continue}s=false;if(0==a)this[this.t++]=o;else if(a+i>this.DB){this[this.t-1]|=(o&(1<<this.DB-a)-1)<<a;this[this.t++]=o>>this.DB-a;}else this[this.t-1]|=o<<a;a+=i;if(a>=this.DB)a-=this.DB;}if(8==i&&0!=(128&+e[0])){this.s=-1;if(a>0)this[this.t-1]|=(1<<this.DB-a)-1<<a;}this.clamp();if(s)t.ZERO.subTo(this,this);};t.prototype.clamp=function(){var t=this.s&this.DM;while(this.t>0&&this[this.t-1]==t)--this.t;};t.prototype.dlShiftTo=function(t,e){var r;for(r=this.t-1;r>=0;--r)e[r+t]=this[r];for(r=t-1;r>=0;--r)e[r]=0;e.t=this.t+t;e.s=this.s;};t.prototype.drShiftTo=function(t,e){for(var r=t;r<this.t;++r)e[r-t]=this[r];e.t=Math.max(this.t-t,0);e.s=this.s;};t.prototype.lShiftTo=function(t,e){var r=t%this.DB;var i=this.DB-r;var n=(1<<i)-1;var s=Math.floor(t/this.DB);var a=this.s<<r&this.DM;for(var o=this.t-1;o>=0;--o){e[o+s+1]=this[o]>>i|a;a=(this[o]&n)<<r;}for(var o=s-1;o>=0;--o)e[o]=0;e[s]=a;e.t=this.t+s+1;e.s=this.s;e.clamp();};t.prototype.rShiftTo=function(t,e){e.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t){e.t=0;return}var i=t%this.DB;var n=this.DB-i;var s=(1<<i)-1;e[0]=this[r]>>i;for(var a=r+1;a<this.t;++a){e[a-r-1]|=(this[a]&s)<<n;e[a-r]=this[a]>>i;}if(i>0)e[this.t-r-1]|=(this.s&s)<<n;e.t=this.t-r;e.clamp();};t.prototype.subTo=function(t,e){var r=0;var i=0;var n=Math.min(t.t,this.t);while(r<n){i+=this[r]-t[r];e[r++]=i&this.DM;i>>=this.DB;}if(t.t<this.t){i-=t.s;while(r<this.t){i+=this[r];e[r++]=i&this.DM;i>>=this.DB;}i+=this.s;}else {i+=this.s;while(r<t.t){i-=t[r];e[r++]=i&this.DM;i>>=this.DB;}i-=t.s;}e.s=i<0?-1:0;if(i<-1)e[r++]=this.DV+i;else if(i>0)e[r++]=i;e.t=r;e.clamp();};t.prototype.multiplyTo=function(e,r){var i=this.abs();var n=e.abs();var s=i.t;r.t=s+n.t;while(--s>=0)r[s]=0;for(s=0;s<n.t;++s)r[s+i.t]=i.am(0,n[s],r,s,0,i.t);r.s=0;r.clamp();if(this.s!=e.s)t.ZERO.subTo(r,r);};t.prototype.squareTo=function(t){var e=this.abs();var r=t.t=2*e.t;while(--r>=0)t[r]=0;for(r=0;r<e.t-1;++r){var i=e.am(r,e[r],t,2*r,0,1);if((t[r+e.t]+=e.am(r+1,2*e[r],t,2*r+1,i,e.t-r-1))>=e.DV){t[r+e.t]-=e.DV;t[r+e.t+1]=1;}}if(t.t>0)t[t.t-1]+=e.am(r,e[r],t,2*r,0,1);t.s=0;t.clamp();};t.prototype.divRemTo=function(e,r,i){var n=e.abs();if(n.t<=0)return;var s=this.abs();if(s.t<n.t){if(null!=r)r.fromInt(0);if(null!=i)this.copyTo(i);return}if(null==i)i=H();var a=H();var o=this.s;var u=e.s;var c=this.DB-W(n[n.t-1]);if(c>0){n.lShiftTo(c,a);s.lShiftTo(c,i);}else {n.copyTo(a);s.copyTo(i);}var l=a.t;var f=a[l-1];if(0==f)return;var h=f*(1<<this.F1)+(l>1?a[l-2]>>this.F2:0);var d=this.FV/h;var v=(1<<this.F1)/h;var p=1<<this.F2;var g=i.t;var y=g-l;var m=null==r?H():r;a.dlShiftTo(y,m);if(i.compareTo(m)>=0){i[i.t++]=1;i.subTo(m,i);}t.ONE.dlShiftTo(l,m);m.subTo(a,a);while(a.t<l)a[a.t++]=0;while(--y>=0){var w=i[--g]==f?this.DM:Math.floor(i[g]*d+(i[g-1]+p)*v);if((i[g]+=a.am(0,w,i,y,0,l))<w){a.dlShiftTo(y,m);i.subTo(m,i);while(i[g]<--w)i.subTo(m,i);}}if(null!=r){i.drShiftTo(l,r);if(o!=u)t.ZERO.subTo(r,r);}i.t=l;i.clamp();if(c>0)i.rShiftTo(c,i);if(o<0)t.ZERO.subTo(i,i);};t.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;e=e*(2-(15&t)*e)&15;e=e*(2-(255&t)*e)&255;e=e*(2-((65535&t)*e&65535))&65535;e=e*(2-t*e%this.DV)%this.DV;return e>0?this.DV-e:-e};t.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)};t.prototype.exp=function(e,r){if(e>4294967295||e<1)return t.ONE;var i=H();var n=H();var s=r.convert(this);var a=W(e)-1;s.copyTo(i);while(--a>=0){r.sqrTo(i,n);if((e&1<<a)>0)r.mulTo(n,s,i);else {var o=i;i=n;n=o;}}return r.revert(i)};t.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))};t.prototype.toRadix=function(t){if(null==t)t=10;if(0==this.signum()||t<2||t>36)return "0";var e=this.chunkSize(t);var r=Math.pow(t,e);var i=Y(r);var n=H();var s=H();var a="";this.divRemTo(i,n,s);while(n.signum()>0){a=(r+s.intValue()).toString(t).substr(1)+a;n.divRemTo(i,n,s);}return s.intValue().toString(t)+a};t.prototype.fromRadix=function(e,r){this.fromInt(0);if(null==r)r=10;var i=this.chunkSize(r);var n=Math.pow(r,i);var s=false;var a=0;var o=0;for(var u=0;u<e.length;++u){var c=G(e,u);if(c<0){if("-"==e.charAt(u)&&0==this.signum())s=true;continue}o=r*o+c;if(++a>=i){this.dMultiply(n);this.dAddOffset(o,0);a=0;o=0;}}if(a>0){this.dMultiply(Math.pow(r,a));this.dAddOffset(o,0);}if(s)t.ZERO.subTo(this,this);};t.prototype.fromNumber=function(e,r,i){if("number"==typeof r)if(e<2)this.fromInt(1);else {this.fromNumber(e,i);if(!this.testBit(e-1))this.bitwiseTo(t.ONE.shiftLeft(e-1),a,this);if(this.isEven())this.dAddOffset(1,0);while(!this.isProbablePrime(r)){this.dAddOffset(2,0);if(this.bitLength()>e)this.subTo(t.ONE.shiftLeft(e-1),this);}}else {var n=[];var s=7&e;n.length=(e>>3)+1;r.nextBytes(n);if(s>0)n[0]&=(1<<s)-1;else n[0]=0;this.fromString(n,256);}};t.prototype.bitwiseTo=function(t,e,r){var i;var n;var s=Math.min(t.t,this.t);for(i=0;i<s;++i)r[i]=e(this[i],t[i]);if(t.t<this.t){n=t.s&this.DM;for(i=s;i<this.t;++i)r[i]=e(this[i],n);r.t=this.t;}else {n=this.s&this.DM;for(i=s;i<t.t;++i)r[i]=e(n,t[i]);r.t=t.t;}r.s=e(this.s,t.s);r.clamp();};t.prototype.changeBit=function(e,r){var i=t.ONE.shiftLeft(e);this.bitwiseTo(i,r,i);return i};t.prototype.addTo=function(t,e){var r=0;var i=0;var n=Math.min(t.t,this.t);while(r<n){i+=this[r]+t[r];e[r++]=i&this.DM;i>>=this.DB;}if(t.t<this.t){i+=t.s;while(r<this.t){i+=this[r];e[r++]=i&this.DM;i>>=this.DB;}i+=this.s;}else {i+=this.s;while(r<t.t){i+=t[r];e[r++]=i&this.DM;i>>=this.DB;}i+=t.s;}e.s=i<0?-1:0;if(i>0)e[r++]=i;else if(i<-1)e[r++]=this.DV+i;e.t=r;e.clamp();};t.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t);++this.t;this.clamp();};t.prototype.dAddOffset=function(t,e){if(0==t)return;while(this.t<=e)this[this.t++]=0;this[e]+=t;while(this[e]>=this.DV){this[e]-=this.DV;if(++e>=this.t)this[this.t++]=0;++this[e];}};t.prototype.multiplyLowerTo=function(t,e,r){var i=Math.min(this.t+t.t,e);r.s=0;r.t=i;while(i>0)r[--i]=0;for(var n=r.t-this.t;i<n;++i)r[i+this.t]=this.am(0,t[i],r,i,0,this.t);for(var n=Math.min(t.t,e);i<n;++i)this.am(0,t[i],r,i,0,e-i);r.clamp();};t.prototype.multiplyUpperTo=function(t,e,r){--e;var i=r.t=this.t+t.t-e;r.s=0;while(--i>=0)r[i]=0;for(i=Math.max(e-this.t,0);i<t.t;++i)r[this.t+i-e]=this.am(e-i,t[i],r,0,0,this.t+i-e);r.clamp();r.drShiftTo(1,r);};t.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t;var r=this.s<0?t-1:0;if(this.t>0)if(0==e)r=this[0]%t;else for(var i=this.t-1;i>=0;--i)r=(e*r+this[i])%t;return r};t.prototype.millerRabin=function(e){var r=this.subtract(t.ONE);var i=r.getLowestSetBit();if(i<=0)return false;var n=r.shiftRight(i);e=e+1>>1;if(e>O.length)e=O.length;var s=H();for(var a=0;a<e;++a){s.fromInt(O[Math.floor(Math.random()*O.length)]);var o=s.modPow(n,this);if(0!=o.compareTo(t.ONE)&&0!=o.compareTo(r)){var u=1;while(u++<i&&0!=o.compareTo(r)){o=o.modPowInt(2,this);if(0==o.compareTo(t.ONE))return false}if(0!=o.compareTo(r))return false}}return true};t.prototype.square=function(){var t=H();this.squareTo(t);return t};t.prototype.gcda=function(t,e){var r=this.s<0?this.negate():this.clone();var i=t.s<0?t.negate():t.clone();if(r.compareTo(i)<0){var n=r;r=i;i=n;}var s=r.getLowestSetBit();var a=i.getLowestSetBit();if(a<0){e(r);return}if(s<a)a=s;if(a>0){r.rShiftTo(a,r);i.rShiftTo(a,i);}var o=function(){if((s=r.getLowestSetBit())>0)r.rShiftTo(s,r);if((s=i.getLowestSetBit())>0)i.rShiftTo(s,i);if(r.compareTo(i)>=0){r.subTo(i,r);r.rShiftTo(1,r);}else {i.subTo(r,i);i.rShiftTo(1,i);}if(!(r.signum()>0)){if(a>0)i.lShiftTo(a,i);setTimeout((function(){e(i);}),0);}else setTimeout(o,0);};setTimeout(o,10);};t.prototype.fromNumberAsync=function(e,r,i,n){if("number"==typeof r)if(e<2)this.fromInt(1);else {this.fromNumber(e,i);if(!this.testBit(e-1))this.bitwiseTo(t.ONE.shiftLeft(e-1),a,this);if(this.isEven())this.dAddOffset(1,0);var s=this;var o=function(){s.dAddOffset(2,0);if(s.bitLength()>e)s.subTo(t.ONE.shiftLeft(e-1),s);if(s.isProbablePrime(r))setTimeout((function(){n();}),0);else setTimeout(o,0);};setTimeout(o,0);}else {var u=[];var c=7&e;u.length=(e>>3)+1;r.nextBytes(u);if(c>0)u[0]&=(1<<c)-1;else u[0]=0;this.fromString(u,256);}};return t}();var N=function(){function t(){}t.prototype.convert=function(t){return t};t.prototype.revert=function(t){return t};t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r);};t.prototype.sqrTo=function(t,e){t.squareTo(e);};return t}();var P=function(){function t(t){this.m=t;}t.prototype.convert=function(t){if(t.s<0||t.compareTo(this.m)>=0)return t.mod(this.m);else return t};t.prototype.revert=function(t){return t};t.prototype.reduce=function(t){t.divRemTo(this.m,null,t);};t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r);this.reduce(r);};t.prototype.sqrTo=function(t,e){t.squareTo(e);this.reduce(e);};return t}();var V=function(){function t(t){this.m=t;this.mp=t.invDigit();this.mpl=32767&this.mp;this.mph=this.mp>>15;this.um=(1<<t.DB-15)-1;this.mt2=2*t.t;}t.prototype.convert=function(t){var e=H();t.abs().dlShiftTo(this.m.t,e);e.divRemTo(this.m,null,e);if(t.s<0&&e.compareTo(C.ZERO)>0)this.m.subTo(e,e);return e};t.prototype.revert=function(t){var e=H();t.copyTo(e);this.reduce(e);return e};t.prototype.reduce=function(t){while(t.t<=this.mt2)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var r=32767&t[e];var i=r*this.mpl+((r*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;r=e+this.m.t;t[r]+=this.m.am(0,i,t,e,0,this.m.t);while(t[r]>=t.DV){t[r]-=t.DV;t[++r]++;}}t.clamp();t.drShiftTo(this.m.t,t);if(t.compareTo(this.m)>=0)t.subTo(this.m,t);};t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r);this.reduce(r);};t.prototype.sqrTo=function(t,e){t.squareTo(e);this.reduce(e);};return t}();var L=function(){function t(t){this.m=t;this.r2=H();this.q3=H();C.ONE.dlShiftTo(2*t.t,this.r2);this.mu=this.r2.divide(t);}t.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);else if(t.compareTo(this.m)<0)return t;else {var e=H();t.copyTo(e);this.reduce(e);return e}};t.prototype.revert=function(t){return t};t.prototype.reduce=function(t){t.drShiftTo(this.m.t-1,this.r2);if(t.t>this.m.t+1){t.t=this.m.t+1;t.clamp();}this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3);this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);while(t.compareTo(this.r2)<0)t.dAddOffset(1,this.m.t+1);t.subTo(this.r2,t);while(t.compareTo(this.m)>=0)t.subTo(this.m,t);};t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r);this.reduce(r);};t.prototype.sqrTo=function(t,e){t.squareTo(e);this.reduce(e);};return t}();function H(){return new C(null)}function U(t,e){return new C(t,e)}var K="undefined"!==typeof navigator;if(K&&B&&"Microsoft Internet Explorer"==navigator.appName){C.prototype.am=function t(e,r,i,n,s,a){var o=32767&r;var u=r>>15;while(--a>=0){var c=32767&this[e];var l=this[e++]>>15;var f=u*c+l*o;c=o*c+((32767&f)<<15)+i[n]+(1073741823&s);s=(c>>>30)+(f>>>15)+u*l+(s>>>30);i[n++]=1073741823&c;}return s};x=30;}else if(K&&B&&"Netscape"!=navigator.appName){C.prototype.am=function t(e,r,i,n,s,a){while(--a>=0){var o=r*this[e++]+i[n]+s;s=Math.floor(o/67108864);i[n++]=67108863&o;}return s};x=26;}else {C.prototype.am=function t(e,r,i,n,s,a){var o=16383&r;var u=r>>14;while(--a>=0){var c=16383&this[e];var l=this[e++]>>14;var f=u*c+l*o;c=o*c+((16383&f)<<14)+i[n]+s;s=(c>>28)+(f>>14)+u*l;i[n++]=268435455&c;}return s};x=28;}C.prototype.DB=x;C.prototype.DM=(1<<x)-1;C.prototype.DV=1<<x;var j=52;C.prototype.FV=Math.pow(2,j);C.prototype.F1=j-x;C.prototype.F2=2*x-j;var q=[];var F;var z;F="0".charCodeAt(0);for(z=0;z<=9;++z)q[F++]=z;F="a".charCodeAt(0);for(z=10;z<36;++z)q[F++]=z;F="A".charCodeAt(0);for(z=10;z<36;++z)q[F++]=z;function G(t,e){var r=q[t.charCodeAt(e)];return null==r?-1:r}function Y(t){var e=H();e.fromInt(t);return e}function W(t){var e=1;var r;if(0!=(r=t>>>16)){t=r;e+=16;}if(0!=(r=t>>8)){t=r;e+=8;}if(0!=(r=t>>4)){t=r;e+=4;}if(0!=(r=t>>2)){t=r;e+=2;}if(0!=(r=t>>1)){t=r;e+=1;}return e}C.ZERO=Y(0);C.ONE=Y(1);var J=function(){function t(){this.i=0;this.j=0;this.S=[];}t.prototype.init=function(t){var e;var r;var i;for(e=0;e<256;++e)this.S[e]=e;r=0;for(e=0;e<256;++e){r=r+this.S[e]+t[e%t.length]&255;i=this.S[e];this.S[e]=this.S[r];this.S[r]=i;}this.i=0;this.j=0;};t.prototype.next=function(){var t;this.i=this.i+1&255;this.j=this.j+this.S[this.i]&255;t=this.S[this.i];this.S[this.i]=this.S[this.j];this.S[this.j]=t;return this.S[t+this.S[this.i]&255]};return t}();function Z(){return new J}var $=256;var X;var Q=null;var tt;if(null==Q){Q=[];tt=0;}function nt(){if(null==X){X=Z();while(tt<$){var t=Math.floor(65536*Math.random());Q[tt++]=255&t;}X.init(Q);for(tt=0;tt<Q.length;++tt)Q[tt]=0;tt=0;}return X.next()}var st=function(){function t(){}t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=nt();};return t}();function at(t,e){if(e<t.length+22){console.error("Message too long for RSA");return null}var r=e-t.length-6;var i="";for(var n=0;n<r;n+=2)i+="ff";var s="0001"+i+"00"+t;return U(s,16)}function ot(t,e){if(e<t.length+11){console.error("Message too long for RSA");return null}var r=[];var i=t.length-1;while(i>=0&&e>0){var n=t.charCodeAt(i--);if(n<128)r[--e]=n;else if(n>127&&n<2048){r[--e]=63&n|128;r[--e]=n>>6|192;}else {r[--e]=63&n|128;r[--e]=n>>6&63|128;r[--e]=n>>12|224;}}r[--e]=0;var s=new st;var a=[];while(e>2){a[0]=0;while(0==a[0])s.nextBytes(a);r[--e]=a[0];}r[--e]=2;r[--e]=0;return new C(r)}var ut=function(){function t(){this.n=null;this.e=0;this.d=null;this.p=null;this.q=null;this.dmp1=null;this.dmq1=null;this.coeff=null;}t.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)};t.prototype.doPrivate=function(t){if(null==this.p||null==this.q)return t.modPow(this.d,this.n);var e=t.mod(this.p).modPow(this.dmp1,this.p);var r=t.mod(this.q).modPow(this.dmq1,this.q);while(e.compareTo(r)<0)e=e.add(this.p);return e.subtract(r).multiply(this.coeff).mod(this.p).multiply(this.q).add(r)};t.prototype.setPublic=function(t,e){if(null!=t&&null!=e&&t.length>0&&e.length>0){this.n=U(t,16);this.e=parseInt(e,16);}else console.error("Invalid RSA public key");};t.prototype.encrypt=function(t){var e=this.n.bitLength()+7>>3;var r=ot(t,e);if(null==r)return null;var i=this.doPublic(r);if(null==i)return null;var n=i.toString(16);var s=n.length;for(var a=0;a<2*e-s;a++)n="0"+n;return n};t.prototype.setPrivate=function(t,e,r){if(null!=t&&null!=e&&t.length>0&&e.length>0){this.n=U(t,16);this.e=parseInt(e,16);this.d=U(r,16);}else console.error("Invalid RSA private key");};t.prototype.setPrivateEx=function(t,e,r,i,n,s,a,o){if(null!=t&&null!=e&&t.length>0&&e.length>0){this.n=U(t,16);this.e=parseInt(e,16);this.d=U(r,16);this.p=U(i,16);this.q=U(n,16);this.dmp1=U(s,16);this.dmq1=U(a,16);this.coeff=U(o,16);}else console.error("Invalid RSA private key");};t.prototype.generate=function(t,e){var r=new st;var i=t>>1;this.e=parseInt(e,16);var n=new C(e,16);for(;;){for(;;){this.p=new C(t-i,1,r);if(0==this.p.subtract(C.ONE).gcd(n).compareTo(C.ONE)&&this.p.isProbablePrime(10))break}for(;;){this.q=new C(i,1,r);if(0==this.q.subtract(C.ONE).gcd(n).compareTo(C.ONE)&&this.q.isProbablePrime(10))break}if(this.p.compareTo(this.q)<=0){var s=this.p;this.p=this.q;this.q=s;}var a=this.p.subtract(C.ONE);var o=this.q.subtract(C.ONE);var u=a.multiply(o);if(0==u.gcd(n).compareTo(C.ONE)){this.n=this.p.multiply(this.q);this.d=n.modInverse(u);this.dmp1=this.d.mod(a);this.dmq1=this.d.mod(o);this.coeff=this.q.modInverse(this.p);break}}};t.prototype.decrypt=function(t){var e=U(t,16);var r=this.doPrivate(e);if(null==r)return null;return ct(r,this.n.bitLength()+7>>3)};t.prototype.generateAsync=function(t,e,r){var i=new st;var n=t>>1;this.e=parseInt(e,16);var s=new C(e,16);var a=this;var o=function(){var e=function(){if(a.p.compareTo(a.q)<=0){var t=a.p;a.p=a.q;a.q=t;}var e=a.p.subtract(C.ONE);var i=a.q.subtract(C.ONE);var n=e.multiply(i);if(0==n.gcd(s).compareTo(C.ONE)){a.n=a.p.multiply(a.q);a.d=s.modInverse(n);a.dmp1=a.d.mod(e);a.dmq1=a.d.mod(i);a.coeff=a.q.modInverse(a.p);setTimeout((function(){r();}),0);}else setTimeout(o,0);};var u=function(){a.q=H();a.q.fromNumberAsync(n,1,i,(function(){a.q.subtract(C.ONE).gcda(s,(function(t){if(0==t.compareTo(C.ONE)&&a.q.isProbablePrime(10))setTimeout(e,0);else setTimeout(u,0);}));}));};var c=function(){a.p=H();a.p.fromNumberAsync(t-n,1,i,(function(){a.p.subtract(C.ONE).gcda(s,(function(t){if(0==t.compareTo(C.ONE)&&a.p.isProbablePrime(10))setTimeout(u,0);else setTimeout(c,0);}));}));};setTimeout(c,0);};setTimeout(o,0);};t.prototype.sign=function(t,e,r){var i=ht(r);var n=i+e(t).toString();var s=at(n,this.n.bitLength()/4);if(null==s)return null;var a=this.doPrivate(s);if(null==a)return null;var o=a.toString(16);if(0==(1&o.length))return o;else return "0"+o};t.prototype.verify=function(t,e,r){var i=U(e,16);var n=this.doPublic(i);if(null==n)return null;var s=n.toString(16).replace(/^1f+00/,"");var a=dt(s);return a==r(t).toString()};t.prototype.encryptLong=function(t){var e=this;var r="";var i=(this.n.bitLength()+7>>3)-11;var n=this.setSplitChn(t,i);n.forEach((function(t){r+=e.encrypt(t);}));return r};t.prototype.decryptLong=function(t){var e="";var r=this.n.bitLength()+7>>3;var i=2*r;if(t.length>i){var n=t.match(new RegExp(".{1,"+i+"}","g"))||[];var s=[];for(var a=0;a<n.length;a++){var o=U(n[a],16);var u=this.doPrivate(o);if(null==u)return null;s.push(u);}e=lt(s,r);}else e=this.decrypt(t);return e};t.prototype.setSplitChn=function(t,e,r){if(void 0===r)r=[];var i=t.split("");var n=0;for(var s=0;s<i.length;s++){var a=i[s].charCodeAt(0);if(a<=127)n+=1;else if(a<=2047)n+=2;else if(a<=65535)n+=3;else n+=4;if(n>e){var o=t.substring(0,s);r.push(o);return this.setSplitChn(t.substring(s),e,r)}}r.push(t);return r};return t}();function ct(t,e){var r=t.toByteArray();var i=0;while(i<r.length&&0==r[i])++i;if(r.length-i!=e-1||2!=r[i])return null;++i;while(0!=r[i])if(++i>=r.length)return null;var n="";while(++i<r.length){var s=255&r[i];if(s<128)n+=String.fromCharCode(s);else if(s>191&&s<224){n+=String.fromCharCode((31&s)<<6|63&r[i+1]);++i;}else {n+=String.fromCharCode((15&s)<<12|(63&r[i+1])<<6|63&r[i+2]);i+=2;}}return n}function lt(t,e){var r=[];for(var i=0;i<t.length;i++){var n=t[i];var s=n.toByteArray();var a=0;while(a<s.length&&0==s[a])++a;if(s.length-a!=e-1||2!=s[a])return null;++a;while(0!=s[a])if(++a>=s.length)return null;r=r.concat(s.slice(a+1));}var o=r;var u=-1;var c="";while(++u<o.length){var l=255&o[u];if(l<128)c+=String.fromCharCode(l);else if(l>191&&l<224){c+=String.fromCharCode((31&l)<<6|63&o[u+1]);++u;}else {c+=String.fromCharCode((15&l)<<12|(63&o[u+1])<<6|63&o[u+2]);u+=2;}}return c}var ft={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function ht(t){return ft[t]||""}function dt(t){for(var e in ft)if(ft.hasOwnProperty(e)){var r=ft[e];var i=r.length;if(t.substr(0,i)==r)return t.substr(i)}return t}var vt={};vt.lang={extend:function(t,e,r){if(!e||!t)throw new Error("YAHOO.lang.extend failed, please check that "+"all dependencies are included.");var i=function(){};i.prototype=e.prototype;t.prototype=new i;t.prototype.constructor=t;t.superclass=e.prototype;if(e.prototype.constructor==Object.prototype.constructor)e.prototype.constructor=e;if(r){var n;for(n in r)t.prototype[n]=r[n];var s=function(){},a=["toString","valueOf"];try{if(/MSIE/.test(navigator.userAgent))s=function(t,e){for(n=0;n<a.length;n+=1){var r=a[n],i=e[r];if("function"===typeof i&&i!=Object.prototype[r])t[r]=i;}};}catch(t){}s(t.prototype,r);}}};var pt={};if("undefined"==typeof pt.asn1||!pt.asn1)pt.asn1={};pt.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);if(e.length%2==1)e="0"+e;return e};this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1)){if(e.length%2==1)e="0"+e;else if(!e.match(/^[0-7]/))e="00"+e;}else {var r=e.substr(1);var i=r.length;if(i%2==1)i+=1;else if(!e.match(/^[0-7]/))i+=2;var n="";for(var s=0;s<i;s++)n+="f";var a=new C(n,16);var o=a.xor(t).add(C.ONE);e=o.toString(16).replace(/^-/,"");}return e};this.getPEMStringFromHex=function(t,e){return hextopem(t,e)};this.newObject=function(t){var e=pt,r=e.asn1,i=r.DERBoolean,n=r.DERInteger,s=r.DERBitString,a=r.DEROctetString,o=r.DERNull,u=r.DERObjectIdentifier,c=r.DEREnumerated,l=r.DERUTF8String,f=r.DERNumericString,h=r.DERPrintableString,d=r.DERTeletexString,v=r.DERIA5String,p=r.DERUTCTime,g=r.DERGeneralizedTime,y=r.DERSequence,m=r.DERSet,w=r.DERTaggedObject,_=r.ASN1Util.newObject;var S=Object.keys(t);if(1!=S.length)throw "key of param shall be only one.";var b=S[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+b+":"))throw "undefined key: "+b;if("bool"==b)return new i(t[b]);if("int"==b)return new n(t[b]);if("bitstr"==b)return new s(t[b]);if("octstr"==b)return new a(t[b]);if("null"==b)return new o(t[b]);if("oid"==b)return new u(t[b]);if("enum"==b)return new c(t[b]);if("utf8str"==b)return new l(t[b]);if("numstr"==b)return new f(t[b]);if("prnstr"==b)return new h(t[b]);if("telstr"==b)return new d(t[b]);if("ia5str"==b)return new v(t[b]);if("utctime"==b)return new p(t[b]);if("gentime"==b)return new g(t[b]);if("seq"==b){var E=t[b];var D=[];for(var T=0;T<E.length;T++){var M=_(E[T]);D.push(M);}return new y({array:D})}if("set"==b){var E=t[b];var D=[];for(var T=0;T<E.length;T++){var M=_(E[T]);D.push(M);}return new m({array:D})}if("tag"==b){var I=t[b];if("[object Array]"===Object.prototype.toString.call(I)&&3==I.length){var A=_(I[2]);return new w({tag:I[0],explicit:I[1],obj:A})}else {var x={};if(void 0!==I.explicit)x.explicit=I.explicit;if(void 0!==I.tag)x.tag=I.tag;if(void 0===I.obj)throw "obj shall be specified for 'tag'.";x.obj=_(I.obj);return new w(x)}}};this.jsonToASN1HEX=function(t){var e=this.newObject(t);return e.getEncodedHex()};};pt.asn1.ASN1Util.oidHexToInt=function(t){var e="";var r=parseInt(t.substr(0,2),16);var i=Math.floor(r/40);var n=r%40;var e=i+"."+n;var s="";for(var a=2;a<t.length;a+=2){var o=parseInt(t.substr(a,2),16);var u=("00000000"+o.toString(2)).slice(-8);s+=u.substr(1,7);if("0"==u.substr(0,1)){var c=new C(s,2);e=e+"."+c.toString(10);s="";}}return e};pt.asn1.ASN1Util.oidIntToHex=function(t){var e=function(t){var e=t.toString(16);if(1==e.length)e="0"+e;return e};var r=function(t){var r="";var i=new C(t,10);var n=i.toString(2);var s=7-n.length%7;if(7==s)s=0;var a="";for(var o=0;o<s;o++)a+="0";n=a+n;for(var o=0;o<n.length-1;o+=7){var u=n.substr(o,7);if(o!=n.length-7)u="1"+u;r+=e(parseInt(u,2));}return r};if(!t.match(/^[0-9.]+$/))throw "malformed oid string: "+t;var i="";var n=t.split(".");var s=40*parseInt(n[0])+parseInt(n[1]);i+=e(s);n.splice(0,2);for(var a=0;a<n.length;a++)i+=r(n[a]);return i};pt.asn1.ASN1Object=function(){var n="";this.getLengthHexFromValue=function(){if("undefined"==typeof this.hV||null==this.hV)throw "this.hV is null or undefined.";if(this.hV.length%2==1)throw "value hex must be even length: n="+n.length+",v="+this.hV;var t=this.hV.length/2;var e=t.toString(16);if(e.length%2==1)e="0"+e;if(t<128)return e;else {var r=e.length/2;if(r>15)throw "ASN.1 length too long to represent by 8x: n = "+t.toString(16);var i=128+r;return i.toString(16)+e}};this.getEncodedHex=function(){if(null==this.hTLV||this.isModified){this.hV=this.getFreshValueHex();this.hL=this.getLengthHexFromValue();this.hTLV=this.hT+this.hL+this.hV;this.isModified=false;}return this.hTLV};this.getValueHex=function(){this.getEncodedHex();return this.hV};this.getFreshValueHex=function(){return ""};};pt.asn1.DERAbstractString=function(t){pt.asn1.DERAbstractString.superclass.constructor.call(this);this.getString=function(){return this.s};this.setString=function(t){this.hTLV=null;this.isModified=true;this.s=t;this.hV=stohex(this.s);};this.setStringHex=function(t){this.hTLV=null;this.isModified=true;this.s=null;this.hV=t;};this.getFreshValueHex=function(){return this.hV};if("undefined"!=typeof t)if("string"==typeof t)this.setString(t);else if("undefined"!=typeof t["str"])this.setString(t["str"]);else if("undefined"!=typeof t["hex"])this.setStringHex(t["hex"]);};vt.lang.extend(pt.asn1.DERAbstractString,pt.asn1.ASN1Object);pt.asn1.DERAbstractTime=function(t){pt.asn1.DERAbstractTime.superclass.constructor.call(this);this.localDateToUTC=function(t){utc=t.getTime()+6e4*t.getTimezoneOffset();var e=new Date(utc);return e};this.formatDate=function(t,e,r){var i=this.zeroPadding;var n=this.localDateToUTC(t);var s=String(n.getFullYear());if("utc"==e)s=s.substr(2,2);var a=i(String(n.getMonth()+1),2);var o=i(String(n.getDate()),2);var u=i(String(n.getHours()),2);var c=i(String(n.getMinutes()),2);var l=i(String(n.getSeconds()),2);var f=s+a+o+u+c+l;if(true===r){var h=n.getMilliseconds();if(0!=h){var d=i(String(h),3);d=d.replace(/[0]+$/,"");f=f+"."+d;}}return f+"Z"};this.zeroPadding=function(t,e){if(t.length>=e)return t;return new Array(e-t.length+1).join("0")+t};this.getString=function(){return this.s};this.setString=function(t){this.hTLV=null;this.isModified=true;this.s=t;this.hV=stohex(t);};this.setByDateValue=function(t,e,r,i,n,s){var a=new Date(Date.UTC(t,e-1,r,i,n,s,0));this.setByDate(a);};this.getFreshValueHex=function(){return this.hV};};vt.lang.extend(pt.asn1.DERAbstractTime,pt.asn1.ASN1Object);pt.asn1.DERAbstractStructured=function(t){pt.asn1.DERAbstractString.superclass.constructor.call(this);this.setByASN1ObjectArray=function(t){this.hTLV=null;this.isModified=true;this.asn1Array=t;};this.appendASN1Object=function(t){this.hTLV=null;this.isModified=true;this.asn1Array.push(t);};this.asn1Array=new Array;if("undefined"!=typeof t)if("undefined"!=typeof t["array"])this.asn1Array=t["array"];};vt.lang.extend(pt.asn1.DERAbstractStructured,pt.asn1.ASN1Object);pt.asn1.DERBoolean=function(){pt.asn1.DERBoolean.superclass.constructor.call(this);this.hT="01";this.hTLV="0101ff";};vt.lang.extend(pt.asn1.DERBoolean,pt.asn1.ASN1Object);pt.asn1.DERInteger=function(t){pt.asn1.DERInteger.superclass.constructor.call(this);this.hT="02";this.setByBigInteger=function(t){this.hTLV=null;this.isModified=true;this.hV=pt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t);};this.setByInteger=function(t){var e=new C(String(t),10);this.setByBigInteger(e);};this.setValueHex=function(t){this.hV=t;};this.getFreshValueHex=function(){return this.hV};if("undefined"!=typeof t)if("undefined"!=typeof t["bigint"])this.setByBigInteger(t["bigint"]);else if("undefined"!=typeof t["int"])this.setByInteger(t["int"]);else if("number"==typeof t)this.setByInteger(t);else if("undefined"!=typeof t["hex"])this.setValueHex(t["hex"]);};vt.lang.extend(pt.asn1.DERInteger,pt.asn1.ASN1Object);pt.asn1.DERBitString=function(t){if(void 0!==t&&"undefined"!==typeof t.obj){var e=pt.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex();}pt.asn1.DERBitString.superclass.constructor.call(this);this.hT="03";this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null;this.isModified=true;this.hV=t;};this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7<t)throw "unused bits shall be from 0 to 7: u = "+t;var r="0"+t;this.hTLV=null;this.isModified=true;this.hV=r+e;};this.setByBinaryString=function(t){t=t.replace(/0+$/,"");var e=8-t.length%8;if(8==e)e=0;for(var r=0;r<=e;r++)t+="0";var i="";for(var r=0;r<t.length-1;r+=8){var n=t.substr(r,8);var s=parseInt(n,2).toString(16);if(1==s.length)s="0"+s;i+=s;}this.hTLV=null;this.isModified=true;this.hV="0"+e+i;};this.setByBooleanArray=function(t){var e="";for(var r=0;r<t.length;r++)if(true==t[r])e+="1";else e+="0";this.setByBinaryString(e);};this.newFalseArray=function(t){var e=new Array(t);for(var r=0;r<t;r++)e[r]=false;return e};this.getFreshValueHex=function(){return this.hV};if("undefined"!=typeof t)if("string"==typeof t&&t.toLowerCase().match(/^[0-9a-f]+$/))this.setHexValueIncludingUnusedBits(t);else if("undefined"!=typeof t["hex"])this.setHexValueIncludingUnusedBits(t["hex"]);else if("undefined"!=typeof t["bin"])this.setByBinaryString(t["bin"]);else if("undefined"!=typeof t["array"])this.setByBooleanArray(t["array"]);};vt.lang.extend(pt.asn1.DERBitString,pt.asn1.ASN1Object);pt.asn1.DEROctetString=function(t){if(void 0!==t&&"undefined"!==typeof t.obj){var e=pt.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex();}pt.asn1.DEROctetString.superclass.constructor.call(this,t);this.hT="04";};vt.lang.extend(pt.asn1.DEROctetString,pt.asn1.DERAbstractString);pt.asn1.DERNull=function(){pt.asn1.DERNull.superclass.constructor.call(this);this.hT="05";this.hTLV="0500";};vt.lang.extend(pt.asn1.DERNull,pt.asn1.ASN1Object);pt.asn1.DERObjectIdentifier=function(t){var e=function(t){var e=t.toString(16);if(1==e.length)e="0"+e;return e};var r=function(t){var r="";var i=new C(t,10);var n=i.toString(2);var s=7-n.length%7;if(7==s)s=0;var a="";for(var o=0;o<s;o++)a+="0";n=a+n;for(var o=0;o<n.length-1;o+=7){var u=n.substr(o,7);if(o!=n.length-7)u="1"+u;r+=e(parseInt(u,2));}return r};pt.asn1.DERObjectIdentifier.superclass.constructor.call(this);this.hT="06";this.setValueHex=function(t){this.hTLV=null;this.isModified=true;this.s=null;this.hV=t;};this.setValueOidString=function(t){if(!t.match(/^[0-9.]+$/))throw "malformed oid string: "+t;var i="";var n=t.split(".");var s=40*parseInt(n[0])+parseInt(n[1]);i+=e(s);n.splice(0,2);for(var a=0;a<n.length;a++)i+=r(n[a]);this.hTLV=null;this.isModified=true;this.s=null;this.hV=i;};this.setValueName=function(t){var e=pt.asn1.x509.OID.name2oid(t);if(""!==e)this.setValueOidString(e);else throw "DERObjectIdentifier oidName undefined: "+t};this.getFreshValueHex=function(){return this.hV};if(void 0!==t)if("string"===typeof t)if(t.match(/^[0-2].[0-9.]+$/))this.setValueOidString(t);else this.setValueName(t);else if(void 0!==t.oid)this.setValueOidString(t.oid);else if(void 0!==t.hex)this.setValueHex(t.hex);else if(void 0!==t.name)this.setValueName(t.name);};vt.lang.extend(pt.asn1.DERObjectIdentifier,pt.asn1.ASN1Object);pt.asn1.DEREnumerated=function(t){pt.asn1.DEREnumerated.superclass.constructor.call(this);this.hT="0a";this.setByBigInteger=function(t){this.hTLV=null;this.isModified=true;this.hV=pt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t);};this.setByInteger=function(t){var e=new C(String(t),10);this.setByBigInteger(e);};this.setValueHex=function(t){this.hV=t;};this.getFreshValueHex=function(){return this.hV};if("undefined"!=typeof t)if("undefined"!=typeof t["int"])this.setByInteger(t["int"]);else if("number"==typeof t)this.setByInteger(t);else if("undefined"!=typeof t["hex"])this.setValueHex(t["hex"]);};vt.lang.extend(pt.asn1.DEREnumerated,pt.asn1.ASN1Object);pt.asn1.DERUTF8String=function(t){pt.asn1.DERUTF8String.superclass.constructor.call(this,t);this.hT="0c";};vt.lang.extend(pt.asn1.DERUTF8String,pt.asn1.DERAbstractString);pt.asn1.DERNumericString=function(t){pt.asn1.DERNumericString.superclass.constructor.call(this,t);this.hT="12";};vt.lang.extend(pt.asn1.DERNumericString,pt.asn1.DERAbstractString);pt.asn1.DERPrintableString=function(t){pt.asn1.DERPrintableString.superclass.constructor.call(this,t);this.hT="13";};vt.lang.extend(pt.asn1.DERPrintableString,pt.asn1.DERAbstractString);pt.asn1.DERTeletexString=function(t){pt.asn1.DERTeletexString.superclass.constructor.call(this,t);this.hT="14";};vt.lang.extend(pt.asn1.DERTeletexString,pt.asn1.DERAbstractString);pt.asn1.DERIA5String=function(t){pt.asn1.DERIA5String.superclass.constructor.call(this,t);this.hT="16";};vt.lang.extend(pt.asn1.DERIA5String,pt.asn1.DERAbstractString);pt.asn1.DERUTCTime=function(t){pt.asn1.DERUTCTime.superclass.constructor.call(this,t);this.hT="17";this.setByDate=function(t){this.hTLV=null;this.isModified=true;this.date=t;this.s=this.formatDate(this.date,"utc");this.hV=stohex(this.s);};this.getFreshValueHex=function(){if("undefined"==typeof this.date&&"undefined"==typeof this.s){this.date=new Date;this.s=this.formatDate(this.date,"utc");this.hV=stohex(this.s);}return this.hV};if(void 0!==t)if(void 0!==t.str)this.setString(t.str);else if("string"==typeof t&&t.match(/^[0-9]{12}Z$/))this.setString(t);else if(void 0!==t.hex)this.setStringHex(t.hex);else if(void 0!==t.date)this.setByDate(t.date);};vt.lang.extend(pt.asn1.DERUTCTime,pt.asn1.DERAbstractTime);pt.asn1.DERGeneralizedTime=function(t){pt.asn1.DERGeneralizedTime.superclass.constructor.call(this,t);this.hT="18";this.withMillis=false;this.setByDate=function(t){this.hTLV=null;this.isModified=true;this.date=t;this.s=this.formatDate(this.date,"gen",this.withMillis);this.hV=stohex(this.s);};this.getFreshValueHex=function(){if(void 0===this.date&&void 0===this.s){this.date=new Date;this.s=this.formatDate(this.date,"gen",this.withMillis);this.hV=stohex(this.s);}return this.hV};if(void 0!==t){if(void 0!==t.str)this.setString(t.str);else if("string"==typeof t&&t.match(/^[0-9]{14}Z$/))this.setString(t);else if(void 0!==t.hex)this.setStringHex(t.hex);else if(void 0!==t.date)this.setByDate(t.date);if(true===t.millis)this.withMillis=true;}};vt.lang.extend(pt.asn1.DERGeneralizedTime,pt.asn1.DERAbstractTime);pt.asn1.DERSequence=function(t){pt.asn1.DERSequence.superclass.constructor.call(this,t);this.hT="30";this.getFreshValueHex=function(){var t="";for(var e=0;e<this.asn1Array.length;e++){var r=this.asn1Array[e];t+=r.getEncodedHex();}this.hV=t;return this.hV};};vt.lang.extend(pt.asn1.DERSequence,pt.asn1.DERAbstractStructured);pt.asn1.DERSet=function(t){pt.asn1.DERSet.superclass.constructor.call(this,t);this.hT="31";this.sortFlag=true;this.getFreshValueHex=function(){var t=new Array;for(var e=0;e<this.asn1Array.length;e++){var r=this.asn1Array[e];t.push(r.getEncodedHex());}if(true==this.sortFlag)t.sort();this.hV=t.join("");return this.hV};if("undefined"!=typeof t)if("undefined"!=typeof t.sortflag&&false==t.sortflag)this.sortFlag=false;};vt.lang.extend(pt.asn1.DERSet,pt.asn1.DERAbstractStructured);pt.asn1.DERTaggedObject=function(t){pt.asn1.DERTaggedObject.superclass.constructor.call(this);this.hT="a0";this.hV="";this.isExplicit=true;this.asn1Object=null;this.setASN1Object=function(t,e,r){this.hT=e;this.isExplicit=t;this.asn1Object=r;if(this.isExplicit){this.hV=this.asn1Object.getEncodedHex();this.hTLV=null;this.isModified=true;}else {this.hV=null;this.hTLV=r.getEncodedHex();this.hTLV=this.hTLV.replace(/^../,e);this.isModified=false;}};this.getFreshValueHex=function(){return this.hV};if("undefined"!=typeof t){if("undefined"!=typeof t["tag"])this.hT=t["tag"];if("undefined"!=typeof t["explicit"])this.isExplicit=t["explicit"];if("undefined"!=typeof t["obj"]){this.asn1Object=t["obj"];this.setASN1Object(this.isExplicit,this.hT,this.asn1Object);}}};vt.lang.extend(pt.asn1.DERTaggedObject,pt.asn1.ASN1Object);var gt=function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r];};return t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e;}e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i);}}();var yt=function(t){gt(e,t);function e(r){var i=t.call(this)||this;if(r)if("string"===typeof r)i.parseKey(r);else if(e.hasPrivateKeyProperty(r)||e.hasPublicKeyProperty(r))i.parsePropertiesFrom(r);return i}e.prototype.parseKey=function(t){try{var e=0;var r=0;var i=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/;var n=i.test(t)?y.decode(t):w.unarmor(t);var s=I.decode(n);if(3===s.sub.length)s=s.sub[2].sub[0];if(9===s.sub.length){e=s.sub[1].getHexStringValue();this.n=U(e,16);r=s.sub[2].getHexStringValue();this.e=parseInt(r,16);var a=s.sub[3].getHexStringValue();this.d=U(a,16);var o=s.sub[4].getHexStringValue();this.p=U(o,16);var u=s.sub[5].getHexStringValue();this.q=U(u,16);var c=s.sub[6].getHexStringValue();this.dmp1=U(c,16);var l=s.sub[7].getHexStringValue();this.dmq1=U(l,16);var f=s.sub[8].getHexStringValue();this.coeff=U(f,16);}else if(2===s.sub.length){var h=s.sub[1];var d=h.sub[0];e=d.sub[0].getHexStringValue();this.n=U(e,16);r=d.sub[1].getHexStringValue();this.e=parseInt(r,16);}else return false;return true}catch(t){return false}};e.prototype.getPrivateBaseKey=function(){var t={array:[new pt.asn1.DERInteger({int:0}),new pt.asn1.DERInteger({bigint:this.n}),new pt.asn1.DERInteger({int:this.e}),new pt.asn1.DERInteger({bigint:this.d}),new pt.asn1.DERInteger({bigint:this.p}),new pt.asn1.DERInteger({bigint:this.q}),new pt.asn1.DERInteger({bigint:this.dmp1}),new pt.asn1.DERInteger({bigint:this.dmq1}),new pt.asn1.DERInteger({bigint:this.coeff})]};var e=new pt.asn1.DERSequence(t);return e.getEncodedHex()};e.prototype.getPrivateBaseKeyB64=function(){return d(this.getPrivateBaseKey())};e.prototype.getPublicBaseKey=function(){var t=new pt.asn1.DERSequence({array:[new pt.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new pt.asn1.DERNull]});var e=new pt.asn1.DERSequence({array:[new pt.asn1.DERInteger({bigint:this.n}),new pt.asn1.DERInteger({int:this.e})]});var r=new pt.asn1.DERBitString({hex:"00"+e.getEncodedHex()});var i=new pt.asn1.DERSequence({array:[t,r]});return i.getEncodedHex()};e.prototype.getPublicBaseKeyB64=function(){return d(this.getPublicBaseKey())};e.wordwrap=function(t,e){e=e||64;if(!t)return t;var r="(.{1,"+e+"})( +|$\n?)|(.{1,"+e+"})";return t.match(RegExp(r,"g")).join("\n")};e.prototype.getPrivateKey=function(){var t="-----BEGIN RSA PRIVATE KEY-----\n";t+=e.wordwrap(this.getPrivateBaseKeyB64())+"\n";t+="-----END RSA PRIVATE KEY-----";return t};e.prototype.getPublicKey=function(){var t="-----BEGIN PUBLIC KEY-----\n";t+=e.wordwrap(this.getPublicBaseKeyB64())+"\n";t+="-----END PUBLIC KEY-----";return t};e.hasPublicKeyProperty=function(t){t=t||{};return t.hasOwnProperty("n")&&t.hasOwnProperty("e")};e.hasPrivateKeyProperty=function(t){t=t||{};return t.hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")};e.prototype.parsePropertiesFrom=function(t){this.n=t.n;this.e=t.e;if(t.hasOwnProperty("d")){this.d=t.d;this.p=t.p;this.q=t.q;this.dmp1=t.dmp1;this.dmq1=t.dmq1;this.coeff=t.coeff;}};return e}(ut);const mt={i:"3.2.1"};var wt=function(){function t(t){if(void 0===t)t={};t=t||{};this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024;this.default_public_exponent=t.default_public_exponent||"010001";this.log=t.log||false;this.key=null;}t.prototype.setKey=function(t){if(this.log&&this.key)console.warn("A key was already set, overriding existing.");this.key=new yt(t);};t.prototype.setPrivateKey=function(t){this.setKey(t);};t.prototype.setPublicKey=function(t){this.setKey(t);};t.prototype.decrypt=function(t){try{return this.getKey().decrypt(t)}catch(t){return false}};t.prototype.encrypt=function(t){try{return this.getKey().encrypt(t)}catch(t){return false}};t.prototype.encryptLong=function(t){try{return d(this.getKey().encryptLong(t))}catch(t){return false}};t.prototype.decryptLong=function(t){try{return this.getKey().decryptLong(t)}catch(t){return false}};t.prototype.sign=function(t,e,r){try{return d(this.getKey().sign(t,e,r))}catch(t){return false}};t.prototype.verify=function(t,e,r){try{return this.getKey().verify(t,v(e),r)}catch(t){return false}};t.prototype.getKey=function(t){if(!this.key){this.key=new yt;if(t&&"[object Function]"==={}.toString.call(t)){this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);return}this.key.generate(this.default_key_size,this.default_public_exponent);}return this.key};t.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()};t.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()};t.prototype.getPublicKey=function(){return this.getKey().getPublicKey()};t.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()};t.version=mt.i;return t}();const _t=wt;},2480:()=>{}};var e={};function r(i){var n=e[i];if(void 0!==n)return n.exports;var s=e[i]={id:i,loaded:false,exports:{}};t[i].call(s.exports,s,s.exports,r);s.loaded=true;return s.exports}(()=>{r.d=(t,e)=>{for(var i in e)if(r.o(e,i)&&!r.o(t,i))Object.defineProperty(t,i,{enumerable:true,get:e[i]});};})();(()=>{r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}();})();(()=>{r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);})();(()=>{r.r=t=>{if("undefined"!==typeof Symbol&&Symbol.toStringTag)Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});Object.defineProperty(t,"__esModule",{value:true});};})();(()=>{r.nmd=t=>{t.paths=[];if(!t.children)t.children=[];return t};})();var i=r(9021);return i})()));
100
+
101
+ } (gtpushMin));
100
102
 
101
- var GtPush = /*@__PURE__*/getDefaultExportFromCjs(gtpushMin);
103
+ var GtPush = /*@__PURE__*/getDefaultExportFromCjs(gtpushMinExports);
102
104
 
103
105
  function initPushNotification() {
104
106
  // 仅 App 端
@@ -136,6 +138,31 @@ function initPushNotification() {
136
138
  }
137
139
  }
138
140
 
141
+ let channel;
142
+ function postPushMessage(data) {
143
+ if (!channel) {
144
+ return;
145
+ }
146
+ channel.postMessage(data);
147
+ }
148
+ function initBroadcastChannel(gtPush) {
149
+ if (typeof BroadcastChannel === 'undefined') {
150
+ return;
151
+ }
152
+ channel = new BroadcastChannel('uni-push');
153
+ channel.onmessage = function ({ data }) {
154
+ // @ts-expect-error
155
+ uni.invokePushCallback(data);
156
+ };
157
+ // eslint-disable-next-line no-restricted-globals
158
+ document.addEventListener('visibilitychange', function () {
159
+ // eslint-disable-next-line no-restricted-globals
160
+ if (document.visibilityState === 'visible') {
161
+ gtPush.enableSocket(true);
162
+ }
163
+ });
164
+ }
165
+
139
166
  // if (process.env.UNI_PUSH_DEBUG) {
140
167
  // GtPush.setDebugMode(true)
141
168
  // }
@@ -158,37 +185,56 @@ else {
158
185
  // #ifdef APP
159
186
  initPushNotification();
160
187
  // #endif
188
+ // #ifdef H5
189
+ initBroadcastChannel(GtPush);
190
+ // #endif
161
191
  GtPush.init({
162
192
  appid,
163
193
  onError: (res) => {
164
194
  console.error(res.error);
165
- // @ts-expect-error
166
- uni.invokePushCallback({
195
+ const data = {
167
196
  type: 'clientId',
168
197
  cid: '',
169
198
  errMsg: res.error,
170
- });
199
+ };
200
+ // @ts-expect-error
201
+ uni.invokePushCallback(data);
202
+ // #ifdef H5
203
+ postPushMessage(data);
204
+ // #endif
171
205
  },
172
206
  onClientId: (res) => {
173
- // @ts-expect-error
174
- uni.invokePushCallback({
207
+ const data = {
175
208
  type: 'clientId',
176
209
  cid: res.cid,
177
- });
210
+ };
211
+ // @ts-expect-error
212
+ uni.invokePushCallback(data);
213
+ // #ifdef H5
214
+ postPushMessage(data);
215
+ // #endif
178
216
  },
179
217
  onlineState: (res) => {
180
- // @ts-expect-error
181
- uni.invokePushCallback({
218
+ const data = {
182
219
  type: 'lineState',
183
220
  online: res.online,
184
- });
221
+ };
222
+ // @ts-expect-error
223
+ uni.invokePushCallback(data);
224
+ // #ifdef H5
225
+ postPushMessage(data);
226
+ // #endif
185
227
  },
186
228
  onPushMsg: (res) => {
187
- // @ts-expect-error
188
- uni.invokePushCallback({
229
+ const data = {
189
230
  type: 'pushMsg',
190
231
  message: res.message,
191
- });
232
+ };
233
+ // @ts-expect-error
234
+ uni.invokePushCallback(data);
235
+ // #ifdef H5
236
+ postPushMessage(data);
237
+ // #endif
192
238
  },
193
239
  });
194
240
  // 仅在 jssdk 中监听