@polyv/socket 2.6.0-rc-20260205.1 → 2.8.0-rc-20260514.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.cjs.js CHANGED
@@ -24,4 +24,4 @@
24
24
  `)&&o.flags==="s")})},function(t,n,e){var r=e(1),i=e(0).RegExp;t.exports=r(function(){var o=i("(?<a>b)","g");return o.exec("b").groups.a!=="b"||"b".replace(o,"$<a>c")!=="bc"})},function(t,n,e){var r=e(7),i=e(32),o=e(4)("match");t.exports=function(s){var c;return r(s)&&((c=s[o])!==void 0?!!c:i(s)=="RegExp")}},function(t,n,e){var r=e(1);t.exports=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(t,n,e){var r=e(32),i=e(24),o=e(33).f,s=e(81),c=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(h){return c&&r(h)=="Window"?function(a){try{return o(a)}catch(f){return s(c)}}(h):o(i(h))}},function(t,n,e){var r=e(13),i=e(0),o=e(2),s=e(60),c=e(76),h=e(18),a=e(10).f,f=e(33).f,p=e(22),x=e(133),u=e(19),b=e(98),m=e(99),E=e(17),A=e(1),g=e(9),v=e(23).enforce,d=e(82),_=e(4),B=e(131),C=e(132),S=_("match"),k=i.RegExp,F=k.prototype,D=i.SyntaxError,O=o(b),M=o(F.exec),U=o("".charAt),z=o("".replace),j=o("".indexOf),W=o("".slice),Q=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Z=/a/g,te=/a/g,P=new k(Z)!==Z,l=m.MISSED_STICKY,y=m.UNSUPPORTED_Y,w=r&&(!P||l||B||C||A(function(){return te[S]=!1,k(Z)!=Z||k(te)==te||k(Z,"i")!="/a/i"}));if(s("RegExp",w)){for(var T=function(Y,ie){var ue,Ee,we,ve,Be,qe,Re=p(F,this),We=x(Y),J=ie===void 0,ce=[],le=Y;if(!Re&&We&&J&&Y.constructor===T)return Y;if((We||p(F,Y))&&(Y=Y.source,J&&(ie="flags"in le?le.flags:O(le))),Y=Y===void 0?"":u(Y),ie=ie===void 0?"":u(ie),le=Y,B&&"dotAll"in Z&&(Ee=!!ie&&j(ie,"s")>-1)&&(ie=z(ie,/s/g,"")),ue=ie,l&&"sticky"in Z&&(we=!!ie&&j(ie,"y")>-1)&&y&&(ie=z(ie,/y/g,"")),C&&(Y=(ve=function(me){for(var ge,Ve=me.length,Oe=0,Te="",Ae=[],Ue={},Ge=!1,Ke=!1,ee=0,oe="";Oe<=Ve;Oe++){if((ge=U(me,Oe))==="\\")ge+=U(me,++Oe);else if(ge==="]")Ge=!1;else if(!Ge)switch(!0){case ge==="[":Ge=!0;break;case ge==="(":M(Q,W(me,Oe+1))&&(Oe+=2,Ke=!0),Te+=ge,ee++;continue;case(ge===">"&&Ke):if(oe===""||g(Ue,oe))throw new D("Invalid capture group name");Ue[oe]=!0,Ae[Ae.length]=[oe,ee],Ke=!1,oe="";continue}Ke?oe+=ge:Te+=ge}return[Te,Ae]}(Y))[0],ce=ve[1]),Be=c(k(Y,ie),Re?this:F,T),(Ee||we||ce.length)&&(qe=v(Be),Ee&&(qe.dotAll=!0,qe.raw=T(function(me){for(var ge,Ve=me.length,Oe=0,Te="",Ae=!1;Oe<=Ve;Oe++)(ge=U(me,Oe))!=="\\"?Ae||ge!=="."?(ge==="["?Ae=!0:ge==="]"&&(Ae=!1),Te+=ge):Te+="[\\s\\S]":Te+=ge+U(me,++Oe);return Te}(Y),ue)),we&&(qe.sticky=!0),ce.length&&(qe.groups=ce)),Y!==le)try{h(Be,"source",le===""?"(?:)":le)}catch(me){}return Be},N=function(Y){Y in T||a(T,Y,{configurable:!0,get:function(){return k[Y]},set:function(ie){k[Y]=ie}})},X=f(k),V=0;X.length>V;)N(X[V++]);F.constructor=T,T.prototype=F,E(i,"RegExp",T)}d("RegExp")},function(t,n){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,n,e){var r=e(73)("span").classList,i=r&&r.constructor&&r.constructor.prototype;t.exports=i===Object.prototype?void 0:i},function(t,n,e){var r=e(11),i=e(8),o=e(43);t.exports=function(s,c,h){var a,f;i(s);try{if(!(a=o(s,"return"))){if(c==="throw")throw h;return h}a=r(a,s)}catch(p){f=!0,a=p}if(c==="throw")throw h;if(f)throw a;return i(a),h}},function(t,n,e){var r,i,o,s,c=e(0),h=e(35),a=e(40),f=e(6),p=e(9),x=e(1),u=e(130),b=e(50),m=e(73),E=e(181),A=e(141),g=e(114),v=c.setImmediate,d=c.clearImmediate,_=c.process,B=c.Dispatch,C=c.Function,S=c.MessageChannel,k=c.String,F=0,D={};try{r=c.location}catch(j){}var O=function(j){if(p(D,j)){var W=D[j];delete D[j],W()}},M=function(j){return function(){O(j)}},U=function(j){O(j.data)},z=function(j){c.postMessage(k(j),r.protocol+"//"+r.host)};v&&d||(v=function(j){E(arguments.length,1);var W=f(j)?j:C(j),Q=b(arguments,1);return D[++F]=function(){h(W,void 0,Q)},i(F),F},d=function(j){delete D[j]},g?i=function(j){_.nextTick(M(j))}:B&&B.now?i=function(j){B.now(M(j))}:S&&!A?(s=(o=new S).port2,o.port1.onmessage=U,i=a(s.postMessage,s)):c.addEventListener&&f(c.postMessage)&&!c.importScripts&&r&&r.protocol!=="file:"&&!x(z)?(i=z,c.addEventListener("message",U,!1)):i="onreadystatechange"in m("script")?function(j){u.appendChild(m("script")).onreadystatechange=function(){u.removeChild(this),O(j)}}:function(j){setTimeout(M(j),0)}),t.exports={set:v,clear:d}},function(t,n,e){var r=e(37);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},function(t,n,e){var r=e(31),i=function(o){var s,c;this.promise=new o(function(h,a){if(s!==void 0||c!==void 0)throw TypeError("Bad Promise constructor");s=h,c=a}),this.resolve=r(s),this.reject=r(c)};t.exports.f=function(o){return new i(o)}},function(t,n,e){e(5)({target:"Object",stat:!0},{setPrototypeOf:e(38)})},function(t,n,e){var r=e(5),i=e(1),o=e(14),s=e(66),c=e(145);r({target:"Object",stat:!0,forced:i(function(){s(1)}),sham:!c},{getPrototypeOf:function(h){return s(o(h))}})},function(t,n,e){var r=e(1);t.exports=!r(function(){function i(){}return i.prototype.constructor=null,Object.getPrototypeOf(new i)!==i.prototype})},function(t,n,e){var r=e(5),i=e(26),o=e(35),s=e(190),c=e(105),h=e(8),a=e(7),f=e(34),p=e(1),x=i("Reflect","construct"),u=Object.prototype,b=[].push,m=p(function(){function g(){}return!(x(function(){},[],g)instanceof g)}),E=!p(function(){x(function(){})}),A=m||E;r({target:"Reflect",stat:!0,forced:A,sham:A},{construct:function(g,v){c(g),h(v);var d=arguments.length<3?g:c(arguments[2]);if(E&&!m)return x(g,v,d);if(g==d){switch(v.length){case 0:return new g;case 1:return new g(v[0]);case 2:return new g(v[0],v[1]);case 3:return new g(v[0],v[1],v[2]);case 4:return new g(v[0],v[1],v[2],v[3])}var _=[null];return o(b,_,v),new(o(s,g,_))}var B=d.prototype,C=f(a(B)?B:u),S=o(g,C,v);return a(S)?S:C}})},function(t,n,e){var r=e(4),i=e(34),o=e(10),s=r("unscopables"),c=Array.prototype;c[s]==null&&o.f(c,s,{configurable:!0,value:i(null)}),t.exports=function(h){c[s][h]=!0}},function(t,n,e){var r,i,o,s=e(1),c=e(6),h=e(34),a=e(66),f=e(17),p=e(4),x=e(42),u=p("iterator"),b=!1;[].keys&&("next"in(o=[].keys())?(i=a(a(o)))!==Object.prototype&&(r=i):b=!0),r==null||s(function(){var m={};return r[u].call(m)!==m})?r={}:x&&(r=h(r)),c(r[u])||f(r,u,function(){return this}),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:b}},function(t,n,e){var r=e(4);n.f=r},function(t,n,e){var r=e(195),i=e(9),o=e(149),s=e(10).f;t.exports=function(c){var h=r.Symbol||(r.Symbol={});i(h,c)||s(h,c,{value:o.f(c)})}},function(t,n,e){var r,i,o,s,c,h,a,f;t.exports=(f=e(25),e(200),e(201),i=(r=f).lib,o=i.Base,s=i.WordArray,c=r.algo,h=c.MD5,a=c.EvpKDF=o.extend({cfg:o.extend({keySize:4,hasher:h,iterations:1}),init:function(p){this.cfg=this.cfg.extend(p)},compute:function(p,x){for(var u,b=this.cfg,m=b.hasher.create(),E=s.create(),A=E.words,g=b.keySize,v=b.iterations;A.length<g;){u&&m.update(u),u=m.update(p).finalize(x),m.reset();for(var d=1;d<v;d++)u=m.finalize(u),m.reset();E.concat(u)}return E.sigBytes=4*g,E}}),r.EvpKDF=function(p,x,u){return a.create(u).compute(p,x)},f.EvpKDF)},function(t,n,e){var r,i,o,s,c,h,a,f,p,x,u,b,m,E,A,g,v,d,_;t.exports=(r=e(25),e(151),void(r.lib.Cipher||(i=r,o=i.lib,s=o.Base,c=o.WordArray,h=o.BufferedBlockAlgorithm,a=i.enc,a.Utf8,f=a.Base64,p=i.algo.EvpKDF,x=o.Cipher=h.extend({cfg:s.extend(),createEncryptor:function(B,C){return this.create(this._ENC_XFORM_MODE,B,C)},createDecryptor:function(B,C){return this.create(this._DEC_XFORM_MODE,B,C)},init:function(B,C,S){this.cfg=this.cfg.extend(S),this._xformMode=B,this._key=C,this.reset()},reset:function(){h.reset.call(this),this._doReset()},process:function(B){return this._append(B),this._process()},finalize:function(B){return B&&this._append(B),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function B(C){return typeof C=="string"?_:v}return function(C){return{encrypt:function(S,k,F){return B(k).encrypt(C,S,k,F)},decrypt:function(S,k,F){return B(k).decrypt(C,S,k,F)}}}}()}),o.StreamCipher=x.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),u=i.mode={},b=o.BlockCipherMode=s.extend({createEncryptor:function(B,C){return this.Encryptor.create(B,C)},createDecryptor:function(B,C){return this.Decryptor.create(B,C)},init:function(B,C){this._cipher=B,this._iv=C}}),m=u.CBC=function(){var B=b.extend();function C(S,k,F){var D,O=this._iv;O?(D=O,this._iv=void 0):D=this._prevBlock;for(var M=0;M<F;M++)S[k+M]^=D[M]}return B.Encryptor=B.extend({processBlock:function(S,k){var F=this._cipher,D=F.blockSize;C.call(this,S,k,D),F.encryptBlock(S,k),this._prevBlock=S.slice(k,k+D)}}),B.Decryptor=B.extend({processBlock:function(S,k){var F=this._cipher,D=F.blockSize,O=S.slice(k,k+D);F.decryptBlock(S,k),C.call(this,S,k,D),this._prevBlock=O}}),B}(),E=(i.pad={}).Pkcs7={pad:function(B,C){for(var S=4*C,k=S-B.sigBytes%S,F=k<<24|k<<16|k<<8|k,D=[],O=0;O<k;O+=4)D.push(F);var M=c.create(D,k);B.concat(M)},unpad:function(B){var C=255&B.words[B.sigBytes-1>>>2];B.sigBytes-=C}},o.BlockCipher=x.extend({cfg:x.cfg.extend({mode:m,padding:E}),reset:function(){var B;x.reset.call(this);var C=this.cfg,S=C.iv,k=C.mode;this._xformMode==this._ENC_XFORM_MODE?B=k.createEncryptor:(B=k.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==B?this._mode.init(this,S&&S.words):(this._mode=B.call(k,this,S&&S.words),this._mode.__creator=B)},_doProcessBlock:function(B,C){this._mode.processBlock(B,C)},_doFinalize:function(){var B,C=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(C.pad(this._data,this.blockSize),B=this._process(!0)):(B=this._process(!0),C.unpad(B)),B},blockSize:4}),A=o.CipherParams=s.extend({init:function(B){this.mixIn(B)},toString:function(B){return(B||this.formatter).stringify(this)}}),g=(i.format={}).OpenSSL={stringify:function(B){var C=B.ciphertext,S=B.salt;return(S?c.create([1398893684,1701076831]).concat(S).concat(C):C).toString(f)},parse:function(B){var C,S=f.parse(B),k=S.words;return k[0]==1398893684&&k[1]==1701076831&&(C=c.create(k.slice(2,4)),k.splice(0,4),S.sigBytes-=16),A.create({ciphertext:S,salt:C})}},v=o.SerializableCipher=s.extend({cfg:s.extend({format:g}),encrypt:function(B,C,S,k){k=this.cfg.extend(k);var F=B.createEncryptor(S,k),D=F.finalize(C),O=F.cfg;return A.create({ciphertext:D,key:S,iv:O.iv,algorithm:B,mode:O.mode,padding:O.padding,blockSize:B.blockSize,formatter:k.format})},decrypt:function(B,C,S,k){return k=this.cfg.extend(k),C=this._parse(C,k.format),B.createDecryptor(S,k).finalize(C.ciphertext)},_parse:function(B,C){return typeof B=="string"?C.parse(B,this):B}}),d=(i.kdf={}).OpenSSL={execute:function(B,C,S,k){k||(k=c.random(8));var F=p.create({keySize:C+S}).compute(B,k),D=c.create(F.words.slice(C),4*S);return F.sigBytes=4*C,A.create({key:F,iv:D,salt:k})}},_=o.PasswordBasedCipher=v.extend({cfg:v.cfg.extend({kdf:d}),encrypt:function(B,C,S,k){var F=(k=this.cfg.extend(k)).kdf.execute(S,B.keySize,B.ivSize);k.iv=F.iv;var D=v.encrypt.call(this,B,C,F.key,k);return D.mixIn(F),D},decrypt:function(B,C,S,k){k=this.cfg.extend(k),C=this._parse(C,k.format);var F=k.kdf.execute(S,B.keySize,B.ivSize,C.salt);return k.iv=F.iv,v.decrypt.call(this,B,C,F.key,k)}}))))},function(t,n,e){function r(b){return function(m){if(Array.isArray(m))return i(m)}(b)||function(m){if(typeof Symbol!="undefined"&&m[Symbol.iterator]!=null||m["@@iterator"]!=null)return Array.from(m)}(b)||function(m,E){if(m){if(typeof m=="string")return i(m,E);var A=Object.prototype.toString.call(m).slice(8,-1);if(A==="Object"&&m.constructor&&(A=m.constructor.name),A==="Map"||A==="Set")return Array.from(m);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return i(m,E)}}(b)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
25
25
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function i(b,m){(m==null||m>b.length)&&(m=b.length);for(var E=0,A=new Array(m);E<m;E++)A[E]=b[E];return A}e(41),e(209),e(12),e(211),e(216),e(218),e(219),e(220),e(223),e(224),e(225),e(226),e(227),e(228),e(229),e(230),e(232),e(233),e(234),e(235),e(236),e(237),e(238),e(239),e(244),e(245),e(246),e(20),e(247),e(107),e(248),e(69),e(70),e(71),e(67),e(68),e(116),e(51),e(30),e(16);var o=new Uint32Array(68),s=new Uint32Array(64);function c(b,m){var E=31&m;return b<<E|b>>>32-E}function h(b,m){for(var E=[],A=b.length-1;A>=0;A--)E[A]=255&(b[A]^m[A]);return E}function a(b){return b^c(b,9)^c(b,17)}function f(b){var m=8*b.length,E=m%512;E=E>=448?512-E%448-1:448-E-1;for(var A=new Array((E-7)/8),g=new Array(8),v=0,d=A.length;v<d;v++)A[v]=0;for(var _=0,B=g.length;_<B;_++)g[_]=0;m=m.toString(2);for(var C=7;C>=0;C--)if(m.length>8){var S=m.length-8;g[C]=parseInt(m.substr(S),2),m=m.substr(0,S)}else m.length>0&&(g[C]=parseInt(m,2),m="");for(var k,F=new Uint8Array([].concat(r(b),[128],A,g)),D=new DataView(F.buffer,0),O=F.length/64,M=new Uint32Array([1937774191,1226093241,388252375,3666478592,2842636476,372324522,3817729613,2969243214]),U=0;U<O;U++){o.fill(0),s.fill(0);for(var z=16*U,j=0;j<16;j++)o[j]=D.getUint32(4*(z+j),!1);for(var W=16;W<68;W++)o[W]=(k=o[W-16]^o[W-9]^c(o[W-3],15))^c(k,15)^c(k,23)^c(o[W-13],7)^o[W-6];for(var Q=0;Q<64;Q++)s[Q]=o[Q]^o[Q+4];for(var Z=M[0],te=M[1],P=M[2],l=M[3],y=M[4],w=M[5],T=M[6],N=M[7],X=void 0,V=void 0,Y=void 0,ie=void 0,ue=0;ue<64;ue++)ie=ue>=0&&ue<=15?2043430169:2055708042,V=(ue>=0&&ue<=15?Z^te^P:Z&te|Z&P|te&P)+l+((X=c(c(Z,12)+y+c(ie,ue),7))^c(Z,12))+s[ue],Y=(ue>=0&&ue<=15?y^w^T:y&w|~y&T)+N+X+o[ue],l=P,P=c(te,9),te=Z,Z=V,N=T,T=c(w,19),w=y,y=a(Y);M[0]^=Z,M[1]^=te,M[2]^=P,M[3]^=l,M[4]^=y,M[5]^=w,M[6]^=T,M[7]^=N}for(var Ee=[],we=0,ve=M.length;we<ve;we++){var Be=M[we];Ee.push((4278190080&Be)>>>24,(16711680&Be)>>>16,(65280&Be)>>>8,255&Be)}return Ee}for(var p=new Uint8Array(64),x=new Uint8Array(64),u=0;u<64;u++)p[u]=54,x[u]=92;t.exports={sm3:f,hmac:function(b,m){for(m.length>64&&(m=f(m));m.length<64;)m.push(0);var E=h(m,p),A=h(m,x),g=f([].concat(r(E),r(b)));return f([].concat(r(A),r(g)))}}},function(t,n,e){var r=e(0),i=e(2),o=e(13),s=e(155),c=e(45),h=e(18),a=e(110),f=e(1),p=e(64),x=e(28),u=e(29),b=e(156),m=e(210),E=e(66),A=e(38),g=e(33).f,v=e(10).f,d=e(117),_=e(81),B=e(49),C=e(23),S=c.PROPER,k=c.CONFIGURABLE,F=C.get,D=C.set,O=r.ArrayBuffer,M=O,U=M&&M.prototype,z=r.DataView,j=z&&z.prototype,W=Object.prototype,Q=r.Array,Z=r.RangeError,te=i(d),P=i([].reverse),l=m.pack,y=m.unpack,w=function(J){return[255&J]},T=function(J){return[255&J,J>>8&255]},N=function(J){return[255&J,J>>8&255,J>>16&255,J>>24&255]},X=function(J){return J[3]<<24|J[2]<<16|J[1]<<8|J[0]},V=function(J){return l(J,23,4)},Y=function(J){return l(J,52,8)},ie=function(J,ce){v(J.prototype,ce,{get:function(){return F(this)[ce]}})},ue=function(J,ce,le,me){var ge=b(le),Ve=F(J);if(ge+ce>Ve.byteLength)throw Z("Wrong index");var Oe=F(Ve.buffer).bytes,Te=ge+Ve.byteOffset,Ae=_(Oe,Te,Te+ce);return me?Ae:P(Ae)},Ee=function(J,ce,le,me,ge,Ve){var Oe=b(le),Te=F(J);if(Oe+ce>Te.byteLength)throw Z("Wrong index");for(var Ae=F(Te.buffer).bytes,Ue=Oe+Te.byteOffset,Ge=me(+ge),Ke=0;Ke<ce;Ke++)Ae[Ue+Ke]=Ge[Ve?Ke:ce-Ke-1]};if(s){var we=S&&O.name!=="ArrayBuffer";if(f(function(){O(1)})&&f(function(){new O(-1)})&&!f(function(){return new O,new O(1.5),new O(NaN),we&&!k}))we&&k&&h(O,"name","ArrayBuffer");else{(M=function(J){return p(this,U),new O(b(J))}).prototype=U;for(var ve,Be=g(O),qe=0;Be.length>qe;)(ve=Be[qe++])in M||h(M,ve,O[ve]);U.constructor=M}A&&E(j)!==W&&A(j,W);var Re=new z(new M(2)),We=i(j.setInt8);Re.setInt8(0,2147483648),Re.setInt8(1,2147483649),!Re.getInt8(0)&&Re.getInt8(1)||a(j,{setInt8:function(J,ce){We(this,J,ce<<24>>24)},setUint8:function(J,ce){We(this,J,ce<<24>>24)}},{unsafe:!0})}else U=(M=function(J){p(this,U);var ce=b(J);D(this,{bytes:te(Q(ce),0),byteLength:ce}),o||(this.byteLength=ce)}).prototype,j=(z=function(J,ce,le){p(this,j),p(J,U);var me=F(J).byteLength,ge=x(ce);if(ge<0||ge>me)throw Z("Wrong offset");if(ge+(le=le===void 0?me-ge:u(le))>me)throw Z("Wrong length");D(this,{buffer:J,byteLength:le,byteOffset:ge}),o||(this.buffer=J,this.byteLength=le,this.byteOffset=ge)}).prototype,o&&(ie(M,"byteLength"),ie(z,"buffer"),ie(z,"byteLength"),ie(z,"byteOffset")),a(j,{getInt8:function(J){return ue(this,1,J)[0]<<24>>24},getUint8:function(J){return ue(this,1,J)[0]},getInt16:function(J){var ce=ue(this,2,J,arguments.length>1?arguments[1]:void 0);return(ce[1]<<8|ce[0])<<16>>16},getUint16:function(J){var ce=ue(this,2,J,arguments.length>1?arguments[1]:void 0);return ce[1]<<8|ce[0]},getInt32:function(J){return X(ue(this,4,J,arguments.length>1?arguments[1]:void 0))},getUint32:function(J){return X(ue(this,4,J,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(J){return y(ue(this,4,J,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(J){return y(ue(this,8,J,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(J,ce){Ee(this,1,J,w,ce)},setUint8:function(J,ce){Ee(this,1,J,w,ce)},setInt16:function(J,ce){Ee(this,2,J,T,ce,arguments.length>2?arguments[2]:void 0)},setUint16:function(J,ce){Ee(this,2,J,T,ce,arguments.length>2?arguments[2]:void 0)},setInt32:function(J,ce){Ee(this,4,J,N,ce,arguments.length>2?arguments[2]:void 0)},setUint32:function(J,ce){Ee(this,4,J,N,ce,arguments.length>2?arguments[2]:void 0)},setFloat32:function(J,ce){Ee(this,4,J,V,ce,arguments.length>2?arguments[2]:void 0)},setFloat64:function(J,ce){Ee(this,8,J,Y,ce,arguments.length>2?arguments[2]:void 0)}});B(M,"ArrayBuffer"),B(z,"DataView"),t.exports={ArrayBuffer:M,DataView:z}},function(t,n){t.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},function(t,n,e){var r=e(0),i=e(28),o=e(29),s=r.RangeError;t.exports=function(c){if(c===void 0)return 0;var h=i(c),a=o(h);if(h!==a)throw s("Wrong length or index");return a}},function(t,n,e){var r=e(5),i=e(0),o=e(11),s=e(13),c=e(212),h=e(3),a=e(154),f=e(64),p=e(44),x=e(18),u=e(213),b=e(29),m=e(156),E=e(158),A=e(56),g=e(9),v=e(46),d=e(7),_=e(57),B=e(34),C=e(22),S=e(38),k=e(33).f,F=e(215),D=e(21).forEach,O=e(82),M=e(10),U=e(47),z=e(23),j=e(76),W=z.get,Q=z.set,Z=M.f,te=U.f,P=Math.round,l=i.RangeError,y=a.ArrayBuffer,w=y.prototype,T=a.DataView,N=h.NATIVE_ARRAY_BUFFER_VIEWS,X=h.TYPED_ARRAY_CONSTRUCTOR,V=h.TYPED_ARRAY_TAG,Y=h.TypedArray,ie=h.TypedArrayPrototype,ue=h.aTypedArrayConstructor,Ee=h.isTypedArray,we=function(J,ce){ue(J);for(var le=0,me=ce.length,ge=new J(me);me>le;)ge[le]=ce[le++];return ge},ve=function(J,ce){Z(J,ce,{get:function(){return W(this)[ce]}})},Be=function(J){var ce;return C(w,J)||(ce=v(J))=="ArrayBuffer"||ce=="SharedArrayBuffer"},qe=function(J,ce){return Ee(J)&&!_(ce)&&ce in J&&u(+ce)&&ce>=0},Re=function(J,ce){return ce=A(ce),qe(J,ce)?p(2,J[ce]):te(J,ce)},We=function(J,ce,le){return ce=A(ce),!(qe(J,ce)&&d(le)&&g(le,"value"))||g(le,"get")||g(le,"set")||le.configurable||g(le,"writable")&&!le.writable||g(le,"enumerable")&&!le.enumerable?Z(J,ce,le):(J[ce]=le.value,J)};s?(N||(U.f=Re,M.f=We,ve(ie,"buffer"),ve(ie,"byteOffset"),ve(ie,"byteLength"),ve(ie,"length")),r({target:"Object",stat:!0,forced:!N},{getOwnPropertyDescriptor:Re,defineProperty:We}),t.exports=function(J,ce,le){var me=J.match(/\d+$/)[0]/8,ge=J+(le?"Clamped":"")+"Array",Ve="get"+J,Oe="set"+J,Te=i[ge],Ae=Te,Ue=Ae&&Ae.prototype,Ge={},Ke=function(ee,oe){Z(ee,oe,{get:function(){return function(he,be){var Ce=W(he);return Ce.view[Ve](be*me+Ce.byteOffset,!0)}(this,oe)},set:function(he){return function(be,Ce,He){var $e=W(be);le&&(He=(He=P(He))<0?0:He>255?255:255&He),$e.view[Oe](Ce*me+$e.byteOffset,He,!0)}(this,oe,he)},enumerable:!0})};N?c&&(Ae=ce(function(ee,oe,he,be){return f(ee,Ue),j(d(oe)?Be(oe)?be!==void 0?new Te(oe,E(he,me),be):he!==void 0?new Te(oe,E(he,me)):new Te(oe):Ee(oe)?we(Ae,oe):o(F,Ae,oe):new Te(m(oe)),ee,Ae)}),S&&S(Ae,Y),D(k(Te),function(ee){ee in Ae||x(Ae,ee,Te[ee])}),Ae.prototype=Ue):(Ae=ce(function(ee,oe,he,be){f(ee,Ue);var Ce,He,$e,Ye=0,Ze=0;if(d(oe)){if(!Be(oe))return Ee(oe)?we(Ae,oe):o(F,Ae,oe);Ce=oe,Ze=E(he,me);var fe=oe.byteLength;if(be===void 0){if(fe%me||(He=fe-Ze)<0)throw l("Wrong length")}else if((He=b(be)*me)+Ze>fe)throw l("Wrong length");$e=He/me}else $e=m(oe),Ce=new y(He=$e*me);for(Q(ee,{buffer:Ce,byteOffset:Ze,byteLength:He,length:$e,view:new T(Ce)});Ye<$e;)Ke(ee,Ye++)}),S&&S(Ae,Y),Ue=Ae.prototype=B(ie)),Ue.constructor!==Ae&&x(Ue,"constructor",Ae),x(Ue,X,Ae),V&&x(Ue,V,ge),Ge[ge]=Ae,r({global:!0,forced:Ae!=Te,sham:!N},Ge),"BYTES_PER_ELEMENT"in Ae||x(Ae,"BYTES_PER_ELEMENT",me),"BYTES_PER_ELEMENT"in Ue||x(Ue,"BYTES_PER_ELEMENT",me),O(ge)}):t.exports=function(){}},function(t,n,e){var r=e(0),i=e(214),o=r.RangeError;t.exports=function(s,c){var h=i(s);if(h%c)throw o("Wrong offset");return h}},function(t,n,e){var r=e(0),i=e(31),o=e(14),s=e(77),c=e(15),h=r.TypeError,a=function(f){return function(p,x,u,b){i(x);var m=o(p),E=s(m),A=c(m),g=f?A-1:0,v=f?-1:1;if(u<2)for(;;){if(g in E){b=E[g],g+=v;break}if(g+=v,f?g<0:A<=g)throw h("Reduce of empty array with no initial value")}for(;f?g>=0:A>g;g+=v)g in E&&(b=x(b,E[g],g,m));return b}};t.exports={left:a(!1),right:a(!0)}},function(t,n,e){var r=e(5),i=e(103).codeAt;r({target:"String",proto:!0},{codePointAt:function(o){return i(this,o)}})},function(t,n,e){var r;t.exports=(r=e(25),e(198),e(199),e(151),e(152),function(){var i=r,o=i.lib.BlockCipher,s=i.algo,c=[],h=[],a=[],f=[],p=[],x=[],u=[],b=[],m=[],E=[];(function(){for(var v=[],d=0;d<256;d++)v[d]=d<128?d<<1:d<<1^283;var _=0,B=0;for(d=0;d<256;d++){var C=B^B<<1^B<<2^B<<3^B<<4;C=C>>>8^255&C^99,c[_]=C,h[C]=_;var S=v[_],k=v[S],F=v[k],D=257*v[C]^16843008*C;a[_]=D<<24|D>>>8,f[_]=D<<16|D>>>16,p[_]=D<<8|D>>>24,x[_]=D,D=16843009*F^65537*k^257*S^16843008*_,u[C]=D<<24|D>>>8,b[C]=D<<16|D>>>16,m[C]=D<<8|D>>>24,E[C]=D,_?(_=S^v[v[v[F^S]]],B^=v[v[B]]):_=B=1}})();var A=[0,1,2,4,8,16,32,64,128,27,54],g=s.AES=o.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var v=this._keyPriorReset=this._key,d=v.words,_=v.sigBytes/4,B=4*((this._nRounds=_+6)+1),C=this._keySchedule=[],S=0;S<B;S++)S<_?C[S]=d[S]:(D=C[S-1],S%_?_>6&&S%_==4&&(D=c[D>>>24]<<24|c[D>>>16&255]<<16|c[D>>>8&255]<<8|c[255&D]):(D=c[(D=D<<8|D>>>24)>>>24]<<24|c[D>>>16&255]<<16|c[D>>>8&255]<<8|c[255&D],D^=A[S/_|0]<<24),C[S]=C[S-_]^D);for(var k=this._invKeySchedule=[],F=0;F<B;F++){if(S=B-F,F%4)var D=C[S];else D=C[S-4];k[F]=F<4||S<=4?D:u[c[D>>>24]]^b[c[D>>>16&255]]^m[c[D>>>8&255]]^E[c[255&D]]}}},encryptBlock:function(v,d){this._doCryptBlock(v,d,this._keySchedule,a,f,p,x,c)},decryptBlock:function(v,d){var _=v[d+1];v[d+1]=v[d+3],v[d+3]=_,this._doCryptBlock(v,d,this._invKeySchedule,u,b,m,E,h),_=v[d+1],v[d+1]=v[d+3],v[d+3]=_},_doCryptBlock:function(v,d,_,B,C,S,k,F){for(var D=this._nRounds,O=v[d]^_[0],M=v[d+1]^_[1],U=v[d+2]^_[2],z=v[d+3]^_[3],j=4,W=1;W<D;W++){var Q=B[O>>>24]^C[M>>>16&255]^S[U>>>8&255]^k[255&z]^_[j++],Z=B[M>>>24]^C[U>>>16&255]^S[z>>>8&255]^k[255&O]^_[j++],te=B[U>>>24]^C[z>>>16&255]^S[O>>>8&255]^k[255&M]^_[j++],P=B[z>>>24]^C[O>>>16&255]^S[M>>>8&255]^k[255&U]^_[j++];O=Q,M=Z,U=te,z=P}Q=(F[O>>>24]<<24|F[M>>>16&255]<<16|F[U>>>8&255]<<8|F[255&z])^_[j++],Z=(F[M>>>24]<<24|F[U>>>16&255]<<16|F[z>>>8&255]<<8|F[255&O])^_[j++],te=(F[U>>>24]<<24|F[z>>>16&255]<<16|F[O>>>8&255]<<8|F[255&M])^_[j++],P=(F[z>>>24]<<24|F[O>>>16&255]<<16|F[M>>>8&255]<<8|F[255&U])^_[j++],v[d]=Q,v[d+1]=Z,v[d+2]=te,v[d+3]=P},keySize:8});i.AES=o._createHelper(g)}(),r.AES)},function(t,n,e){var r;t.exports=(r=e(25),e(152),r.pad.Pkcs7)},function(t,n,e){var r;t.exports=(r=e(25),function(i){var o=r,s=o.lib,c=s.WordArray,h=s.Hasher,a=o.algo,f=[],p=[];(function(){function b(g){for(var v=i.sqrt(g),d=2;d<=v;d++)if(!(g%d))return!1;return!0}function m(g){return 4294967296*(g-(0|g))|0}for(var E=2,A=0;A<64;)b(E)&&(A<8&&(f[A]=m(i.pow(E,.5))),p[A]=m(i.pow(E,1/3)),A++),E++})();var x=[],u=a.SHA256=h.extend({_doReset:function(){this._hash=new c.init(f.slice(0))},_doProcessBlock:function(b,m){for(var E=this._hash.words,A=E[0],g=E[1],v=E[2],d=E[3],_=E[4],B=E[5],C=E[6],S=E[7],k=0;k<64;k++){if(k<16)x[k]=0|b[m+k];else{var F=x[k-15],D=(F<<25|F>>>7)^(F<<14|F>>>18)^F>>>3,O=x[k-2],M=(O<<15|O>>>17)^(O<<13|O>>>19)^O>>>10;x[k]=D+x[k-7]+M+x[k-16]}var U=A&g^A&v^g&v,z=(A<<30|A>>>2)^(A<<19|A>>>13)^(A<<10|A>>>22),j=S+((_<<26|_>>>6)^(_<<21|_>>>11)^(_<<7|_>>>25))+(_&B^~_&C)+p[k]+x[k];S=C,C=B,B=_,_=d+j|0,d=v,v=g,g=A,A=j+(z+U)|0}E[0]=E[0]+A|0,E[1]=E[1]+g|0,E[2]=E[2]+v|0,E[3]=E[3]+d|0,E[4]=E[4]+_|0,E[5]=E[5]+B|0,E[6]=E[6]+C|0,E[7]=E[7]+S|0},_doFinalize:function(){var b=this._data,m=b.words,E=8*this._nDataBytes,A=8*b.sigBytes;return m[A>>>5]|=128<<24-A%32,m[14+(A+64>>>9<<4)]=i.floor(E/4294967296),m[15+(A+64>>>9<<4)]=E,b.sigBytes=4*m.length,this._process(),this._hash},clone:function(){var b=h.clone.call(this);return b._hash=this._hash.clone(),b}});o.SHA256=h._createHelper(u),o.HmacSHA256=h._createHmacHelper(u)}(Math),r.SHA256)},function(t,n,e){t.exports={sm2:e(202),sm3:e(249),sm4:e(250)}},function(t,n,e){var r=e(0),i=e(11),o=e(6),s=e(7),c=r.TypeError;t.exports=function(h,a){var f,p;if(a==="string"&&o(f=h.toString)&&!s(p=i(f,h))||o(f=h.valueOf)&&!s(p=i(f,h))||a!=="string"&&o(f=h.toString)&&!s(p=i(f,h)))return p;throw c("Can't convert object to primitive value")}},function(t,n,e){var r=e(0),i=e(6),o=e(74),s=r.WeakMap;t.exports=i(s)&&/native code/.test(o(s))},function(t,n,e){var r=e(91),i=e(46);t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},function(t,n,e){var r=e(0),i=e(6),o=r.String,s=r.TypeError;t.exports=function(c){if(typeof c=="object"||i(c))return c;throw s("Can't set "+o(c)+" as a prototype")}},function(t,n,e){var r=e(2);t.exports=r(1 .valueOf)},function(t,n,e){var r=e(26),i=e(2),o=e(33),s=e(128),c=e(8),h=i([].concat);t.exports=r("Reflect","ownKeys")||function(a){var f=o.f(c(a)),p=s.f;return p?h(f,p(a)):f}},function(t,n,e){var r=e(2),i=e(14),o=Math.floor,s=r("".charAt),c=r("".replace),h=r("".slice),a=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,f=/\$([$&'`]|\d{1,2})/g;t.exports=function(p,x,u,b,m,E){var A=u+p.length,g=b.length,v=f;return m!==void 0&&(m=i(m),v=a),c(E,v,function(d,_){var B;switch(s(_,0)){case"$":return"$";case"&":return p;case"`":return h(x,0,u);case"'":return h(x,A);case"<":B=m[h(_,1,-1)];break;default:var C=+_;if(C===0)return d;if(C>g){var S=o(C/10);return S===0?d:S<=g?b[S-1]===void 0?s(_,1):b[S-1]+s(_,1):d}B=b[C-1]}return B===void 0?"":B})}},function(t,n,e){var r=e(5),i=e(125).trim;r({target:"String",proto:!0,forced:e(173)("trim")},{trim:function(){return i(this)}})},function(t,n,e){var r=e(45).PROPER,i=e(1),o=e(126);t.exports=function(s){return i(function(){return!!o[s]()||"​…᠎"[s]()!=="​…᠎"||r&&o[s].name!==s})}},function(t,n,e){var r=e(1),i=e(7),o=e(32),s=e(175),c=Object.isExtensible,h=r(function(){});t.exports=h||s?function(a){return!!i(a)&&(!s||o(a)!="ArrayBuffer")&&(!c||c(a))}:c},function(t,n,e){var r=e(1);t.exports=r(function(){if(typeof ArrayBuffer=="function"){var i=new ArrayBuffer(8);Object.isExtensible(i)&&Object.defineProperty(i,"a",{value:8})}})},function(t,n,e){var r=e(0),i=e(83),o=e(80),s=e(7),c=e(4)("species"),h=r.Array;t.exports=function(a){var f;return i(a)&&(f=a.constructor,(o(f)&&(f===h||i(f.prototype))||s(f)&&(f=f[c])===null)&&(f=void 0)),f===void 0?h:f}},function(t,n,e){var r=e(21).forEach,i=e(109)("forEach");t.exports=i?[].forEach:function(o){return r(this,o,arguments.length>1?arguments[1]:void 0)}},function(t,n,e){var r=e(5),i=e(14),o=e(100);r({target:"Object",stat:!0,forced:e(1)(function(){o(1)})},{keys:function(s){return o(i(s))}})},function(t,n,e){var r,i,o,s,c=e(5),h=e(42),a=e(0),f=e(26),p=e(11),x=e(180),u=e(17),b=e(110),m=e(38),E=e(49),A=e(82),g=e(31),v=e(6),d=e(7),_=e(64),B=e(74),C=e(111),S=e(86),k=e(79),F=e(140).set,D=e(182),O=e(185),M=e(186),U=e(142),z=e(187),j=e(188),W=e(23),Q=e(60),Z=e(4),te=e(189),P=e(114),l=e(55),y=Z("species"),w="Promise",T=W.getterFor(w),N=W.set,X=W.getterFor(w),V=x&&x.prototype,Y=x,ie=V,ue=a.TypeError,Ee=a.document,we=a.process,ve=U.f,Be=ve,qe=!!(Ee&&Ee.createEvent&&a.dispatchEvent),Re=v(a.PromiseRejectionEvent),We=!1,J=Q(w,function(){var ee=B(Y),oe=ee!==String(Y);if(!oe&&l===66||h&&!ie.finally)return!0;if(l>=51&&/native code/.test(ee))return!1;var he=new Y(function(Ce){Ce(1)}),be=function(Ce){Ce(function(){},function(){})};return(he.constructor={})[y]=be,!(We=he.then(function(){})instanceof be)||!oe&&te&&!Re}),ce=J||!S(function(ee){Y.all(ee).catch(function(){})}),le=function(ee){var oe;return!(!d(ee)||!v(oe=ee.then))&&oe},me=function(ee,oe){var he,be,Ce,He=oe.value,$e=oe.state==1,Ye=$e?ee.ok:ee.fail,Ze=ee.resolve,fe=ee.reject,H=ee.domain;try{Ye?($e||(oe.rejection===2&&Ae(oe),oe.rejection=1),Ye===!0?he=He:(H&&H.enter(),he=Ye(He),H&&(H.exit(),Ce=!0)),he===ee.promise?fe(ue("Promise-chain cycle")):(be=le(he))?p(be,he,Ze,fe):Ze(he)):fe(He)}catch(L){H&&!Ce&&H.exit(),fe(L)}},ge=function(ee,oe){ee.notified||(ee.notified=!0,D(function(){for(var he,be=ee.reactions;he=be.get();)me(he,ee);ee.notified=!1,oe&&!ee.rejection&&Oe(ee)}))},Ve=function(ee,oe,he){var be,Ce;qe?((be=Ee.createEvent("Event")).promise=oe,be.reason=he,be.initEvent(ee,!1,!0),a.dispatchEvent(be)):be={promise:oe,reason:he},!Re&&(Ce=a["on"+ee])?Ce(be):ee==="unhandledrejection"&&M("Unhandled promise rejection",he)},Oe=function(ee){p(F,a,function(){var oe,he=ee.facade,be=ee.value;if(Te(ee)&&(oe=z(function(){P?we.emit("unhandledRejection",be,he):Ve("unhandledrejection",he,be)}),ee.rejection=P||Te(ee)?2:1,oe.error))throw oe.value})},Te=function(ee){return ee.rejection!==1&&!ee.parent},Ae=function(ee){p(F,a,function(){var oe=ee.facade;P?we.emit("rejectionHandled",oe):Ve("rejectionhandled",oe,ee.value)})},Ue=function(ee,oe,he){return function(be){ee(oe,be,he)}},Ge=function(ee,oe,he){ee.done||(ee.done=!0,he&&(ee=he),ee.value=oe,ee.state=2,ge(ee,!0))},Ke=function(ee,oe,he){if(!ee.done){ee.done=!0,he&&(ee=he);try{if(ee.facade===oe)throw ue("Promise can't be resolved itself");var be=le(oe);be?D(function(){var Ce={done:!1};try{p(be,oe,Ue(Ke,Ce,ee),Ue(Ge,Ce,ee))}catch(He){Ge(Ce,He,ee)}}):(ee.value=oe,ee.state=1,ge(ee,!1))}catch(Ce){Ge({done:!1},Ce,ee)}}};if(J&&(ie=(Y=function(ee){_(this,ie),g(ee),p(r,this);var oe=T(this);try{ee(Ue(Ke,oe),Ue(Ge,oe))}catch(he){Ge(oe,he)}}).prototype,(r=function(ee){N(this,{type:w,done:!1,notified:!1,parent:!1,reactions:new j,rejection:!1,state:0,value:void 0})}).prototype=b(ie,{then:function(ee,oe){var he=X(this),be=ve(k(this,Y));return he.parent=!0,be.ok=!v(ee)||ee,be.fail=v(oe)&&oe,be.domain=P?we.domain:void 0,he.state==0?he.reactions.add(be):D(function(){me(be,he)}),be.promise},catch:function(ee){return this.then(void 0,ee)}}),i=function(){var ee=new r,oe=T(ee);this.promise=ee,this.resolve=Ue(Ke,oe),this.reject=Ue(Ge,oe)},U.f=ve=function(ee){return ee===Y||ee===o?new i(ee):Be(ee)},!h&&v(x)&&V!==Object.prototype)){s=V.then,We||(u(V,"then",function(ee,oe){var he=this;return new Y(function(be,Ce){p(s,he,be,Ce)}).then(ee,oe)},{unsafe:!0}),u(V,"catch",ie.catch,{unsafe:!0}));try{delete V.constructor}catch(ee){}m&&m(V,ie)}c({global:!0,wrap:!0,forced:J},{Promise:Y}),E(Y,w,!1,!0),A(w),o=f(w),c({target:w,stat:!0,forced:J},{reject:function(ee){var oe=ve(this);return p(oe.reject,void 0,ee),oe.promise}}),c({target:w,stat:!0,forced:h||J},{resolve:function(ee){return O(h&&this===o?Y:this,ee)}}),c({target:w,stat:!0,forced:ce},{all:function(ee){var oe=this,he=ve(oe),be=he.resolve,Ce=he.reject,He=z(function(){var $e=g(oe.resolve),Ye=[],Ze=0,fe=1;C(ee,function(H){var L=Ze++,$=!1;fe++,p($e,oe,H).then(function(G){$||($=!0,Ye[L]=G,--fe||be(Ye))},Ce)}),--fe||be(Ye)});return He.error&&Ce(He.value),he.promise},race:function(ee){var oe=this,he=ve(oe),be=he.reject,Ce=z(function(){var He=g(oe.resolve);C(ee,function($e){p(He,oe,$e).then(he.resolve,be)})});return Ce.error&&be(Ce.value),he.promise}})},function(t,n,e){var r=e(0);t.exports=r.Promise},function(t,n,e){var r=e(0).TypeError;t.exports=function(i,o){if(i<o)throw r("Not enough arguments");return i}},function(t,n,e){var r,i,o,s,c,h,a,f,p=e(0),x=e(40),u=e(47).f,b=e(140).set,m=e(141),E=e(183),A=e(184),g=e(114),v=p.MutationObserver||p.WebKitMutationObserver,d=p.document,_=p.process,B=p.Promise,C=u(p,"queueMicrotask"),S=C&&C.value;S||(r=function(){var k,F;for(g&&(k=_.domain)&&k.exit();i;){F=i.fn,i=i.next;try{F()}catch(D){throw i?s():o=void 0,D}}o=void 0,k&&k.enter()},m||g||A||!v||!d?!E&&B&&B.resolve?((a=B.resolve(void 0)).constructor=B,f=x(a.then,a),s=function(){f(r)}):g?s=function(){_.nextTick(r)}:(b=x(b,p),s=function(){b(r)}):(c=!0,h=d.createTextNode(""),new v(r).observe(h,{characterData:!0}),s=function(){h.data=c=!c})),t.exports=S||function(k){var F={fn:k,next:void 0};o&&(o.next=F),i||(i=F,s()),o=F}},function(t,n,e){var r=e(37),i=e(0);t.exports=/ipad|iphone|ipod/i.test(r)&&i.Pebble!==void 0},function(t,n,e){var r=e(37);t.exports=/web0s(?!.*chrome)/i.test(r)},function(t,n,e){var r=e(8),i=e(7),o=e(142);t.exports=function(s,c){if(r(s),i(c)&&c.constructor===s)return c;var h=o.f(s);return(0,h.resolve)(c),h.promise}},function(t,n,e){var r=e(0);t.exports=function(i,o){var s=r.console;s&&s.error&&(arguments.length==1?s.error(i):s.error(i,o))}},function(t,n){t.exports=function(e){try{return{error:!1,value:e()}}catch(r){return{error:!0,value:r}}}},function(t,n){var e=function(){this.head=null,this.tail=null};e.prototype={add:function(r){var i={item:r,next:null};this.head?this.tail.next=i:this.head=i,this.tail=i},get:function(){var r=this.head;if(r)return this.head=r.next,this.tail===r&&(this.tail=null),r.item}},t.exports=e},function(t,n){t.exports=typeof window=="object"},function(t,n,e){var r=e(0),i=e(2),o=e(31),s=e(7),c=e(9),h=e(50),a=e(53),f=r.Function,p=i([].concat),x=i([].join),u={},b=function(m,E,A){if(!c(u,E)){for(var g=[],v=0;v<E;v++)g[v]="a["+v+"]";u[E]=f("C,a","return new C("+x(g,",")+")")}return u[E](m,A)};t.exports=a?f.bind:function(m){var E=o(this),A=E.prototype,g=h(arguments,1),v=function(){var d=p(g,h(arguments));return this instanceof v?b(E,d.length,d):E.apply(m,d)};return s(A)&&(v.prototype=A),v}},function(t,n,e){var r=e(148).IteratorPrototype,i=e(34),o=e(44),s=e(49),c=e(65),h=function(){return this};t.exports=function(a,f,p,x){var u=f+" Iterator";return a.prototype=i(r,{next:o(+!x,p)}),s(a,u,!1,!0),c[u]=h,a}},function(t,n,e){e(193)("Map",function(r){return function(){return r(this,arguments.length?arguments[0]:void 0)}},e(194))},function(t,n,e){var r=e(5),i=e(0),o=e(2),s=e(60),c=e(17),h=e(106),a=e(111),f=e(64),p=e(6),x=e(7),u=e(1),b=e(86),m=e(49),E=e(76);t.exports=function(A,g,v){var d=A.indexOf("Map")!==-1,_=A.indexOf("Weak")!==-1,B=d?"set":"add",C=i[A],S=C&&C.prototype,k=C,F={},D=function(W){var Q=o(S[W]);c(S,W,W=="add"?function(Z){return Q(this,Z===0?0:Z),this}:W=="delete"?function(Z){return!(_&&!x(Z))&&Q(this,Z===0?0:Z)}:W=="get"?function(Z){return _&&!x(Z)?void 0:Q(this,Z===0?0:Z)}:W=="has"?function(Z){return!(_&&!x(Z))&&Q(this,Z===0?0:Z)}:function(Z,te){return Q(this,Z===0?0:Z,te),this})};if(s(A,!p(C)||!(_||S.forEach&&!u(function(){new C().entries().next()}))))k=v.getConstructor(g,A,d,B),h.enable();else if(s(A,!0)){var O=new k,M=O[B](_?{}:-0,1)!=O,U=u(function(){O.has(1)}),z=b(function(W){new C(W)}),j=!_&&u(function(){for(var W=new C,Q=5;Q--;)W[B](Q,Q);return!W.has(-0)});z||((k=g(function(W,Q){f(W,S);var Z=E(new C,W,k);return Q!=null&&a(Q,Z[B],{that:Z,AS_ENTRIES:d}),Z})).prototype=S,S.constructor=k),(U||j)&&(D("delete"),D("has"),d&&D("get")),(j||M)&&D(B),_&&S.clear&&delete S.clear}return F[A]=k,r({global:!0,forced:k!=C},F),m(k,A),_||v.setStrong(k,A,d),k}},function(t,n,e){var r=e(10).f,i=e(34),o=e(110),s=e(40),c=e(64),h=e(111),a=e(115),f=e(82),p=e(13),x=e(106).fastKey,u=e(23),b=u.set,m=u.getterFor;t.exports={getConstructor:function(E,A,g,v){var d=E(function(k,F){c(k,_),b(k,{type:A,index:i(null),first:void 0,last:void 0,size:0}),p||(k.size=0),F!=null&&h(F,k[v],{that:k,AS_ENTRIES:g})}),_=d.prototype,B=m(A),C=function(k,F,D){var O,M,U=B(k),z=S(k,F);return z?z.value=D:(U.last=z={index:M=x(F,!0),key:F,value:D,previous:O=U.last,next:void 0,removed:!1},U.first||(U.first=z),O&&(O.next=z),p?U.size++:k.size++,M!=="F"&&(U.index[M]=z)),k},S=function(k,F){var D,O=B(k),M=x(F);if(M!=="F")return O.index[M];for(D=O.first;D;D=D.next)if(D.key==F)return D};return o(_,{clear:function(){for(var k=B(this),F=k.index,D=k.first;D;)D.removed=!0,D.previous&&(D.previous=D.previous.next=void 0),delete F[D.index],D=D.next;k.first=k.last=void 0,p?k.size=0:this.size=0},delete:function(k){var F=B(this),D=S(this,k);if(D){var O=D.next,M=D.previous;delete F.index[D.index],D.removed=!0,M&&(M.next=O),O&&(O.previous=M),F.first==D&&(F.first=O),F.last==D&&(F.last=M),p?F.size--:this.size--}return!!D},forEach:function(k){for(var F,D=B(this),O=s(k,arguments.length>1?arguments[1]:void 0);F=F?F.next:D.first;)for(O(F.value,F.key,this);F&&F.removed;)F=F.previous},has:function(k){return!!S(this,k)}}),o(_,g?{get:function(k){var F=S(this,k);return F&&F.value},set:function(k,F){return C(this,k===0?0:k,F)}}:{add:function(k){return C(this,k=k===0?0:k,k)}}),p&&r(_,"size",{get:function(){return B(this).size}}),d},setStrong:function(E,A,g){var v=A+" Iterator",d=m(A),_=m(v);a(E,A,function(B,C){b(this,{type:v,target:B,state:d(B),kind:C,last:void 0})},function(){for(var B=_(this),C=B.kind,S=B.last;S&&S.removed;)S=S.previous;return B.target&&(B.last=S=S?S.next:B.state.first)?C=="keys"?{value:S.key,done:!1}:C=="values"?{value:S.value,done:!1}:{value:[S.key,S.value],done:!1}:(B.target=void 0,{value:void 0,done:!0})},g?"entries":"values",!g,!0),f(A)}}},function(t,n,e){var r=e(0);t.exports=r},function(t,n,e){e(5)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(t,n){},function(t,n,e){var r,i,o;t.exports=(o=e(25),i=(r=o).lib.WordArray,r.enc.Base64={stringify:function(s){var c=s.words,h=s.sigBytes,a=this._map;s.clamp();for(var f=[],p=0;p<h;p+=3)for(var x=(c[p>>>2]>>>24-p%4*8&255)<<16|(c[p+1>>>2]>>>24-(p+1)%4*8&255)<<8|c[p+2>>>2]>>>24-(p+2)%4*8&255,u=0;u<4&&p+.75*u<h;u++)f.push(a.charAt(x>>>6*(3-u)&63));var b=a.charAt(64);if(b)for(;f.length%4;)f.push(b);return f.join("")},parse:function(s){var c=s.length,h=this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var f=0;f<h.length;f++)a[h.charCodeAt(f)]=f}var p=h.charAt(64);if(p){var x=s.indexOf(p);x!==-1&&(c=x)}return function(u,b,m){for(var E=[],A=0,g=0;g<b;g++)if(g%4){var v=m[u.charCodeAt(g-1)]<<g%4*2,d=m[u.charCodeAt(g)]>>>6-g%4*2,_=v|d;E[A>>>2]|=_<<24-A%4*8,A++}return i.create(E,A)}(s,c,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},o.enc.Base64)},function(t,n,e){var r;t.exports=(r=e(25),function(i){var o=r,s=o.lib,c=s.WordArray,h=s.Hasher,a=o.algo,f=[];(function(){for(var E=0;E<64;E++)f[E]=4294967296*i.abs(i.sin(E+1))|0})();var p=a.MD5=h.extend({_doReset:function(){this._hash=new c.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(E,A){for(var g=0;g<16;g++){var v=A+g,d=E[v];E[v]=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8)}var _=this._hash.words,B=E[A+0],C=E[A+1],S=E[A+2],k=E[A+3],F=E[A+4],D=E[A+5],O=E[A+6],M=E[A+7],U=E[A+8],z=E[A+9],j=E[A+10],W=E[A+11],Q=E[A+12],Z=E[A+13],te=E[A+14],P=E[A+15],l=_[0],y=_[1],w=_[2],T=_[3];l=x(l,y,w,T,B,7,f[0]),T=x(T,l,y,w,C,12,f[1]),w=x(w,T,l,y,S,17,f[2]),y=x(y,w,T,l,k,22,f[3]),l=x(l,y,w,T,F,7,f[4]),T=x(T,l,y,w,D,12,f[5]),w=x(w,T,l,y,O,17,f[6]),y=x(y,w,T,l,M,22,f[7]),l=x(l,y,w,T,U,7,f[8]),T=x(T,l,y,w,z,12,f[9]),w=x(w,T,l,y,j,17,f[10]),y=x(y,w,T,l,W,22,f[11]),l=x(l,y,w,T,Q,7,f[12]),T=x(T,l,y,w,Z,12,f[13]),w=x(w,T,l,y,te,17,f[14]),l=u(l,y=x(y,w,T,l,P,22,f[15]),w,T,C,5,f[16]),T=u(T,l,y,w,O,9,f[17]),w=u(w,T,l,y,W,14,f[18]),y=u(y,w,T,l,B,20,f[19]),l=u(l,y,w,T,D,5,f[20]),T=u(T,l,y,w,j,9,f[21]),w=u(w,T,l,y,P,14,f[22]),y=u(y,w,T,l,F,20,f[23]),l=u(l,y,w,T,z,5,f[24]),T=u(T,l,y,w,te,9,f[25]),w=u(w,T,l,y,k,14,f[26]),y=u(y,w,T,l,U,20,f[27]),l=u(l,y,w,T,Z,5,f[28]),T=u(T,l,y,w,S,9,f[29]),w=u(w,T,l,y,M,14,f[30]),l=b(l,y=u(y,w,T,l,Q,20,f[31]),w,T,D,4,f[32]),T=b(T,l,y,w,U,11,f[33]),w=b(w,T,l,y,W,16,f[34]),y=b(y,w,T,l,te,23,f[35]),l=b(l,y,w,T,C,4,f[36]),T=b(T,l,y,w,F,11,f[37]),w=b(w,T,l,y,M,16,f[38]),y=b(y,w,T,l,j,23,f[39]),l=b(l,y,w,T,Z,4,f[40]),T=b(T,l,y,w,B,11,f[41]),w=b(w,T,l,y,k,16,f[42]),y=b(y,w,T,l,O,23,f[43]),l=b(l,y,w,T,z,4,f[44]),T=b(T,l,y,w,Q,11,f[45]),w=b(w,T,l,y,P,16,f[46]),l=m(l,y=b(y,w,T,l,S,23,f[47]),w,T,B,6,f[48]),T=m(T,l,y,w,M,10,f[49]),w=m(w,T,l,y,te,15,f[50]),y=m(y,w,T,l,D,21,f[51]),l=m(l,y,w,T,Q,6,f[52]),T=m(T,l,y,w,k,10,f[53]),w=m(w,T,l,y,j,15,f[54]),y=m(y,w,T,l,C,21,f[55]),l=m(l,y,w,T,U,6,f[56]),T=m(T,l,y,w,P,10,f[57]),w=m(w,T,l,y,O,15,f[58]),y=m(y,w,T,l,Z,21,f[59]),l=m(l,y,w,T,F,6,f[60]),T=m(T,l,y,w,W,10,f[61]),w=m(w,T,l,y,S,15,f[62]),y=m(y,w,T,l,z,21,f[63]),_[0]=_[0]+l|0,_[1]=_[1]+y|0,_[2]=_[2]+w|0,_[3]=_[3]+T|0},_doFinalize:function(){var E=this._data,A=E.words,g=8*this._nDataBytes,v=8*E.sigBytes;A[v>>>5]|=128<<24-v%32;var d=i.floor(g/4294967296),_=g;A[15+(v+64>>>9<<4)]=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),A[14+(v+64>>>9<<4)]=16711935&(_<<8|_>>>24)|4278255360&(_<<24|_>>>8),E.sigBytes=4*(A.length+1),this._process();for(var B=this._hash,C=B.words,S=0;S<4;S++){var k=C[S];C[S]=16711935&(k<<8|k>>>24)|4278255360&(k<<24|k>>>8)}return B},clone:function(){var E=h.clone.call(this);return E._hash=this._hash.clone(),E}});function x(E,A,g,v,d,_,B){var C=E+(A&g|~A&v)+d+B;return(C<<_|C>>>32-_)+A}function u(E,A,g,v,d,_,B){var C=E+(A&v|g&~v)+d+B;return(C<<_|C>>>32-_)+A}function b(E,A,g,v,d,_,B){var C=E+(A^g^v)+d+B;return(C<<_|C>>>32-_)+A}function m(E,A,g,v,d,_,B){var C=E+(g^(A|~v))+d+B;return(C<<_|C>>>32-_)+A}o.MD5=h._createHelper(p),o.HmacMD5=h._createHmacHelper(p)}(Math),r.MD5)},function(t,n,e){var r,i,o,s,c,h,a,f;t.exports=(f=e(25),i=(r=f).lib,o=i.WordArray,s=i.Hasher,c=r.algo,h=[],a=c.SHA1=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(p,x){for(var u=this._hash.words,b=u[0],m=u[1],E=u[2],A=u[3],g=u[4],v=0;v<80;v++){if(v<16)h[v]=0|p[x+v];else{var d=h[v-3]^h[v-8]^h[v-14]^h[v-16];h[v]=d<<1|d>>>31}var _=(b<<5|b>>>27)+g+h[v];_+=v<20?1518500249+(m&E|~m&A):v<40?1859775393+(m^E^A):v<60?(m&E|m&A|E&A)-1894007588:(m^E^A)-899497514,g=A,A=E,E=m<<30|m>>>2,m=b,b=_}u[0]=u[0]+b|0,u[1]=u[1]+m|0,u[2]=u[2]+E|0,u[3]=u[3]+A|0,u[4]=u[4]+g|0},_doFinalize:function(){var p=this._data,x=p.words,u=8*this._nDataBytes,b=8*p.sigBytes;return x[b>>>5]|=128<<24-b%32,x[14+(b+64>>>9<<4)]=Math.floor(u/4294967296),x[15+(b+64>>>9<<4)]=u,p.sigBytes=4*x.length,this._process(),this._hash},clone:function(){var p=s.clone.call(this);return p._hash=this._hash.clone(),p}}),r.SHA1=s._createHelper(a),r.HmacSHA1=s._createHmacHelper(a),f.SHA1)},function(t,n,e){var r,i,o,s;t.exports=(r=e(25),o=(i=r).lib.Base,s=i.enc.Utf8,void(i.algo.HMAC=o.extend({init:function(c,h){c=this._hasher=new c.init,typeof h=="string"&&(h=s.parse(h));var a=c.blockSize,f=4*a;h.sigBytes>f&&(h=c.finalize(h)),h.clamp();for(var p=this._oKey=h.clone(),x=this._iKey=h.clone(),u=p.words,b=x.words,m=0;m<a;m++)u[m]^=1549556828,b[m]^=909522486;p.sigBytes=x.sigBytes=f,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var h=this._hasher,a=h.finalize(c);return h.reset(),h.finalize(this._oKey.clone().concat(a))}})))},function(t,n,e){function r(g){return function(v){if(Array.isArray(v))return i(v)}(g)||function(v){if(typeof Symbol!="undefined"&&v[Symbol.iterator]!=null||v["@@iterator"]!=null)return Array.from(v)}(g)||function(v,d){if(v){if(typeof v=="string")return i(v,d);var _=Object.prototype.toString.call(v).slice(8,-1);if(_==="Object"&&v.constructor&&(_=v.constructor.name),_==="Map"||_==="Set")return Array.from(v);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return i(v,d)}}(g)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
26
26
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function i(g,v){(v==null||v>g.length)&&(v=g.length);for(var d=0,_=new Array(v);d<v;d++)_[d]=g[d];return _}e(51),e(107),e(12),e(20),e(69),e(70),e(71),e(41),e(67),e(68),e(116),e(30),e(16);var o=e(87).BigInteger,s=e(205),c=s.encodeDer,h=s.decodeDer,a=e(207),f=e(153).sm3,p=a.generateEcparam(),x=p.G,u=p.curve,b=p.n;function m(g,v){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"1234567812345678";d=a.utf8ToHex(d);var _,B,C=a.leftPad(x.curve.a.toBigInteger().toRadix(16),64),S=a.leftPad(x.curve.b.toBigInteger().toRadix(16),64),k=a.leftPad(x.getX().toBigInteger().toRadix(16),64),F=a.leftPad(x.getY().toBigInteger().toRadix(16),64);if(v.length===128)_=v.substr(0,64),B=v.substr(64,64);else{var D=x.curve.decodePointHex(v);_=a.leftPad(D.getX().toBigInteger().toRadix(16),64),B=a.leftPad(D.getY().toBigInteger().toRadix(16),64)}var O=a.hexToArray(d+C+S+k+F+_+B),M=4*d.length;O.unshift(255&M),O.unshift(M>>8&255);var U=f(O);return a.arrayToHex(f(U.concat(a.hexToArray(g))))}function E(g){var v=x.multiply(new o(g,16));return"04"+a.leftPad(v.getX().toBigInteger().toString(16),64)+a.leftPad(v.getY().toBigInteger().toString(16),64)}function A(){var g=a.generateKeyPairHex(),v=u.decodePointHex(g.publicKey);return g.k=new o(g.privateKey,16),g.x1=v.getX().toBigInteger(),g}t.exports={generateKeyPairHex:a.generateKeyPairHex,compressPublicKeyHex:a.compressPublicKeyHex,comparePublicKeyHex:a.comparePublicKeyHex,doEncrypt:function(g,v){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;g=typeof g=="string"?a.hexToArray(a.utf8ToHex(g)):Array.prototype.slice.call(g),v=a.getGlobalCurve().decodePointHex(v);var _=a.generateKeyPairHex(),B=new o(_.privateKey,16),C=_.publicKey;C.length>128&&(C=C.substr(C.length-128));var S=v.multiply(B),k=a.hexToArray(a.leftPad(S.getX().toBigInteger().toRadix(16),64)),F=a.hexToArray(a.leftPad(S.getY().toBigInteger().toRadix(16),64)),D=a.arrayToHex(f([].concat(k,g,F))),O=1,M=0,U=[],z=[].concat(k,F),j=function(){U=f([].concat(r(z),[O>>24&255,O>>16&255,O>>8&255,255&O])),O++,M=0};j();for(var W=0,Q=g.length;W<Q;W++)M===U.length&&j(),g[W]^=255&U[M++];var Z=a.arrayToHex(g);return d===0?C+Z+D:C+D+Z},doDecrypt:function(g,v){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,_=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},B=_.output,C=B===void 0?"string":B;v=new o(v,16);var S=g.substr(128,64),k=g.substr(192);d===0&&(S=g.substr(g.length-64),k=g.substr(128,g.length-128-64));var F=a.hexToArray(k),D=a.getGlobalCurve().decodePointHex("04"+g.substr(0,128)),O=D.multiply(v),M=a.hexToArray(a.leftPad(O.getX().toBigInteger().toRadix(16),64)),U=a.hexToArray(a.leftPad(O.getY().toBigInteger().toRadix(16),64)),z=1,j=0,W=[],Q=[].concat(M,U),Z=function(){W=f([].concat(r(Q),[z>>24&255,z>>16&255,z>>8&255,255&z])),z++,j=0};Z();for(var te=0,P=F.length;te<P;te++)j===W.length&&Z(),F[te]^=255&W[j++];var l=a.arrayToHex(f([].concat(M,F,U)));return l===S.toLowerCase()?C==="array"?F:a.arrayToUtf8(F):C==="array"?[]:""},doSignature:function(g,v){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},_=d.pointPool,B=d.der,C=d.hash,S=d.publicKey,k=d.userId,F=typeof g=="string"?a.utf8ToHex(g):a.arrayToHex(g);C&&(F=m(F,S=S||E(v),k));var D=new o(v,16),O=new o(F,16),M=null,U=null,z=null;do{do{var j=void 0;M=(j=_&&_.length?_.pop():A()).k,U=O.add(j.x1).mod(b)}while(U.equals(o.ZERO)||U.add(M).equals(b));z=D.add(o.ONE).modInverse(b).multiply(M.subtract(U.multiply(D))).mod(b)}while(z.equals(o.ZERO));return B?c(U,z):a.leftPad(U.toString(16),64)+a.leftPad(z.toString(16),64)},doVerifySignature:function(g,v,d){var _,B,C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},S=C.der,k=C.hash,F=C.userId,D=typeof g=="string"?a.utf8ToHex(g):a.arrayToHex(g);if(k&&(D=m(D,d,F)),S){var O=h(v);_=O.r,B=O.s}else _=new o(v.substring(0,64),16),B=new o(v.substring(64),16);var M=u.decodePointHex(d),U=new o(D,16),z=_.add(B).mod(b);if(z.equals(o.ZERO))return!1;var j=x.multiply(B).add(M.multiply(z)),W=U.add(j.getX().toBigInteger()).mod(b);return _.equals(W)},getPublicKeyFromPrivateKey:E,getPoint:A,verifyPublicKey:a.verifyPublicKey}},function(t,n,e){var r=e(0),i=e(40),o=e(11),s=e(14),c=e(204),h=e(112),a=e(80),f=e(15),p=e(62),x=e(113),u=e(85),b=r.Array;t.exports=function(m){var E=s(m),A=a(this),g=arguments.length,v=g>1?arguments[1]:void 0,d=v!==void 0;d&&(v=i(v,g>2?arguments[2]:void 0));var _,B,C,S,k,F,D=u(E),O=0;if(!D||this==b&&h(D))for(_=f(E),B=A?new this(_):b(_);_>O;O++)F=d?v(E[O],O):E[O],p(B,O,F);else for(k=(S=x(E,D)).next,B=A?new this:[];!(C=o(k,S)).done;O++)F=d?c(S,v,[C.value,O],!0):C.value,p(B,O,F);return B.length=O,B}},function(t,n,e){var r=e(8),i=e(139);t.exports=function(o,s,c,h){try{return h?s(r(c)[0],c[1]):s(c)}catch(a){i(o,"throw",a)}}},function(t,n,e){function r(v){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d})(v)}function i(v,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(d&&d.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),Object.defineProperty(v,"prototype",{writable:!1}),d&&o(v,d)}function o(v,d){return(o=Object.setPrototypeOf||function(_,B){return _.__proto__=B,_})(v,d)}function s(v){var d=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(_){return!1}}();return function(){var _,B=h(v);if(d){var C=h(this).constructor;_=Reflect.construct(B,arguments,C)}else _=B.apply(this,arguments);return c(this,_)}}function c(v,d){if(d&&(r(d)==="object"||typeof d=="function"))return d;if(d!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}(v)}function h(v){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)})(v)}function a(v,d){if(!(v instanceof d))throw new TypeError("Cannot call a class as a function")}function f(v,d){for(var _=0;_<d.length;_++){var B=d[_];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(v,B.key,B)}}function p(v,d,_){return d&&f(v.prototype,d),Object.defineProperty(v,"prototype",{writable:!1}),v}e(12),e(20),e(16),e(206),e(48),e(52),e(88),e(143),e(144),e(146),e(69),e(70),e(71),e(41),e(67),e(68);var x=e(87).BigInteger,u=function(){function v(){a(this,v),this.tlv=null,this.t="00",this.l="00",this.v=""}return p(v,[{key:"getEncodedHex",value:function(){return this.tlv||(this.v=this.getValue(),this.l=this.getLength(),this.tlv=this.t+this.l+this.v),this.tlv}},{key:"getLength",value:function(){var d=this.v.length/2,_=d.toString(16);return _.length%2==1&&(_="0"+_),d<128?_:(128+_.length/2).toString(16)+_}},{key:"getValue",value:function(){return""}}]),v}(),b=function(v){i(_,v);var d=s(_);function _(B){var C;return a(this,_),(C=d.call(this)).t="02",B&&(C.v=function(S){var k=S.toString(16);if(k[0]!=="-")k.length%2==1?k="0"+k:k.match(/^[0-7]/)||(k="00"+k);else{var F=(k=k.substr(1)).length;F%2==1?F+=1:k.match(/^[0-7]/)||(F+=2);for(var D="",O=0;O<F;O++)D+="f";k=(k=(D=new x(D,16)).xor(S).add(x.ONE)).toString(16).replace(/^-/,"")}return k}(B)),C}return p(_,[{key:"getValue",value:function(){return this.v}}]),_}(u),m=function(v){i(_,v);var d=s(_);function _(B){var C;return a(this,_),(C=d.call(this)).t="30",C.asn1Array=B,C}return p(_,[{key:"getValue",value:function(){return this.v=this.asn1Array.map(function(B){return B.getEncodedHex()}).join(""),this.v}}]),_}(u);function E(v,d){return+v[d+2]<8?1:128&+v.substr(d+2,2)}function A(v,d){var _=E(v,d),B=v.substr(d+2,2*_);return B?(+B[0]<8?new x(B,16):new x(B.substr(2),16)).intValue():-1}function g(v,d){return d+2*(E(v,d)+1)}t.exports={encodeDer:function(v,d){var _=new b(v),B=new b(d);return new m([_,B]).getEncodedHex()},decodeDer:function(v){var d=g(v,0),_=g(v,d),B=A(v,d),C=v.substr(_,2*B),S=_+C.length,k=g(v,S),F=A(v,S),D=v.substr(k,2*F);return{r:new x(C,16),s:new x(D,16)}}}},function(t,n,e){var r=e(11),i=e(101),o=e(8),s=e(29),c=e(19),h=e(36),a=e(43),f=e(102),p=e(104);i("match",function(x,u,b){return[function(m){var E=h(this),A=m==null?void 0:a(m,x);return A?r(A,m,E):new RegExp(m)[x](c(E))},function(m){var E=o(this),A=c(m),g=b(u,E,A);if(g.done)return g.value;if(!E.global)return p(E,A);var v=E.unicode;E.lastIndex=0;for(var d,_=[],B=0;(d=p(E,A))!==null;){var C=c(d[0]);_[B]=C,C===""&&(E.lastIndex=f(A,s(E.lastIndex),v)),B++}return B===0?null:_}]})},function(t,n,e){e(12),e(20),e(52),e(88);var r=e(87),i=r.BigInteger,o=r.SecureRandom,s=e(208).ECCurveFp,c=new o,h=x(),a=h.curve,f=h.G,p=h.n;function x(){var b=new i("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF",16),m=new i("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC",16),E=new i("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93",16),A=new s(b,m,E),g=A.decodePointHex("0432C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0");return{curve:A,G:g,n:new i("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123",16)}}function u(b,m){return b.length>=m?b:new Array(m-b.length+1).join("0")+b}t.exports={getGlobalCurve:function(){return a},generateEcparam:x,generateKeyPairHex:function(b,m,E){var A=(b?new i(b,m,E):new i(p.bitLength(),c)).mod(p.subtract(i.ONE)).add(i.ONE),g=u(A.toString(16),64),v=f.multiply(A);return{privateKey:g,publicKey:"04"+u(v.getX().toBigInteger().toString(16),64)+u(v.getY().toBigInteger().toString(16),64)}},compressPublicKeyHex:function(b){if(b.length!==130)throw new Error("Invalid public key to compress");var m=(b.length-2)/2,E=b.substr(2,m),A="03";return new i(b.substr(m+2,m),16).mod(new i("2")).equals(i.ZERO)&&(A="02"),A+E},utf8ToHex:function(b){for(var m=(b=unescape(encodeURIComponent(b))).length,E=[],A=0;A<m;A++)E[A>>>2]|=(255&b.charCodeAt(A))<<24-A%4*8;for(var g=[],v=0;v<m;v++){var d=E[v>>>2]>>>24-v%4*8&255;g.push((d>>>4).toString(16)),g.push((15&d).toString(16))}return g.join("")},leftPad:u,arrayToHex:function(b){return b.map(function(m){return(m=m.toString(16)).length===1?"0"+m:m}).join("")},arrayToUtf8:function(b){for(var m=[],E=0,A=0;A<2*b.length;A+=2)m[A>>>3]|=parseInt(b[E],10)<<24-A%8*4,E++;try{for(var g=[],v=0;v<b.length;v++){var d=m[v>>>2]>>>24-v%4*8&255;g.push(String.fromCharCode(d))}return decodeURIComponent(escape(g.join("")))}catch(_){throw new Error("Malformed UTF-8 data")}},hexToArray:function(b){var m=[],E=b.length;E%2!=0&&(b=u(b,E+1)),E=b.length;for(var A=0;A<E;A+=2)m.push(parseInt(b.substr(A,2),16));return m},verifyPublicKey:function(b){var m=a.decodePointHex(b);if(!m)return!1;var E=m.getX();return m.getY().square().equals(E.multiply(E.square()).add(E.multiply(a.a)).add(a.b))},comparePublicKeyHex:function(b,m){var E=a.decodePointHex(b);if(!E)return!1;var A=a.decodePointHex(m);return!!A&&E.equals(A)}}},function(t,n,e){function r(x,u){if(!(x instanceof u))throw new TypeError("Cannot call a class as a function")}function i(x,u){for(var b=0;b<u.length;b++){var m=u[b];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(x,m.key,m)}}function o(x,u,b){return u&&i(x.prototype,u),Object.defineProperty(x,"prototype",{writable:!1}),x}var s=e(87).BigInteger,c=new s("2"),h=new s("3"),a=function(){function x(u,b){r(this,x),this.x=b,this.q=u}return o(x,[{key:"equals",value:function(u){return u===this||this.q.equals(u.q)&&this.x.equals(u.x)}},{key:"toBigInteger",value:function(){return this.x}},{key:"negate",value:function(){return new x(this.q,this.x.negate().mod(this.q))}},{key:"add",value:function(u){return new x(this.q,this.x.add(u.toBigInteger()).mod(this.q))}},{key:"subtract",value:function(u){return new x(this.q,this.x.subtract(u.toBigInteger()).mod(this.q))}},{key:"multiply",value:function(u){return new x(this.q,this.x.multiply(u.toBigInteger()).mod(this.q))}},{key:"divide",value:function(u){return new x(this.q,this.x.multiply(u.toBigInteger().modInverse(this.q)).mod(this.q))}},{key:"square",value:function(){return new x(this.q,this.x.square().mod(this.q))}}]),x}(),f=function(){function x(u,b,m,E){r(this,x),this.curve=u,this.x=b,this.y=m,this.z=E==null?s.ONE:E,this.zinv=null}return o(x,[{key:"getX",value:function(){return this.zinv===null&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))}},{key:"getY",value:function(){return this.zinv===null&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))}},{key:"equals",value:function(u){return u===this||(this.isInfinity()?u.isInfinity():u.isInfinity()?this.isInfinity():!!u.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(u.z)).mod(this.curve.q).equals(s.ZERO)&&u.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(u.z)).mod(this.curve.q).equals(s.ZERO))}},{key:"isInfinity",value:function(){return this.x===null&&this.y===null||this.z.equals(s.ZERO)&&!this.y.toBigInteger().equals(s.ZERO)}},{key:"negate",value:function(){return new x(this.curve,this.x,this.y.negate(),this.z)}},{key:"add",value:function(u){if(this.isInfinity())return u;if(u.isInfinity())return this;var b=this.x.toBigInteger(),m=this.y.toBigInteger(),E=this.z,A=u.x.toBigInteger(),g=u.y.toBigInteger(),v=u.z,d=this.curve.q,_=b.multiply(v).mod(d),B=A.multiply(E).mod(d),C=_.subtract(B),S=m.multiply(v).mod(d),k=g.multiply(E).mod(d),F=S.subtract(k);if(s.ZERO.equals(C))return s.ZERO.equals(F)?this.twice():this.curve.infinity;var D=_.add(B),O=E.multiply(v).mod(d),M=C.square().mod(d),U=C.multiply(M).mod(d),z=O.multiply(F.square()).subtract(D.multiply(M)).mod(d),j=C.multiply(z).mod(d),W=F.multiply(M.multiply(_).subtract(z)).subtract(S.multiply(U)).mod(d),Q=U.multiply(O).mod(d);return new x(this.curve,this.curve.fromBigInteger(j),this.curve.fromBigInteger(W),Q)}},{key:"twice",value:function(){if(this.isInfinity())return this;if(!this.y.toBigInteger().signum())return this.curve.infinity;var u=this.x.toBigInteger(),b=this.y.toBigInteger(),m=this.z,E=this.curve.q,A=this.curve.a.toBigInteger(),g=u.square().multiply(h).add(A.multiply(m.square())).mod(E),v=b.shiftLeft(1).multiply(m).mod(E),d=b.square().mod(E),_=d.multiply(u).multiply(m).mod(E),B=v.square().mod(E),C=g.square().subtract(_.shiftLeft(3)).mod(E),S=v.multiply(C).mod(E),k=g.multiply(_.shiftLeft(2).subtract(C)).subtract(B.shiftLeft(1).multiply(d)).mod(E),F=v.multiply(B).mod(E);return new x(this.curve,this.curve.fromBigInteger(S),this.curve.fromBigInteger(k),F)}},{key:"multiply",value:function(u){if(this.isInfinity())return this;if(!u.signum())return this.curve.infinity;for(var b=u.multiply(h),m=this.negate(),E=this,A=b.bitLength()-2;A>0;A--){E=E.twice();var g=b.testBit(A);g!==u.testBit(A)&&(E=E.add(g?this:m))}return E}}]),x}(),p=function(){function x(u,b,m){r(this,x),this.q=u,this.a=this.fromBigInteger(b),this.b=this.fromBigInteger(m),this.infinity=new f(this,null,null)}return o(x,[{key:"equals",value:function(u){return u===this||this.q.equals(u.q)&&this.a.equals(u.a)&&this.b.equals(u.b)}},{key:"fromBigInteger",value:function(u){return new a(this.q,u)}},{key:"decodePointHex",value:function(u){switch(parseInt(u.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:var b=this.fromBigInteger(new s(u.substr(2),16)),m=this.fromBigInteger(b.multiply(b.square()).add(b.multiply(this.a)).add(this.b).toBigInteger().modPow(this.q.divide(new s("4")).add(s.ONE),this.q));return m.toBigInteger().mod(c).equals(new s(u.substr(0,2),16).subtract(c))||(m=m.negate()),new f(this,b,m);case 4:case 6:case 7:var E=(u.length-2)/2,A=u.substr(2,E),g=u.substr(E+2,E);return new f(this,this.fromBigInteger(new s(A,16)),this.fromBigInteger(new s(g,16)));default:return null}}}]),x}();t.exports={ECPointFp:f,ECCurveFp:p}},function(t,n,e){var r=e(5),i=e(2),o=e(1),s=e(154),c=e(8),h=e(27),a=e(29),f=e(79),p=s.ArrayBuffer,x=s.DataView,u=x.prototype,b=i(p.prototype.slice),m=i(u.getUint8),E=i(u.setUint8);r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:o(function(){return!new p(2).slice(1,void 0).byteLength})},{slice:function(A,g){if(b&&g===void 0)return b(c(this),A);for(var v=c(this).byteLength,d=h(A,v),_=h(g===void 0?v:g,v),B=new(f(this,p))(a(_-d)),C=new x(this),S=new x(B),k=0;d<_;)E(S,k++,m(C,d++));return B}})},function(t,n,e){var r=e(0).Array,i=Math.abs,o=Math.pow,s=Math.floor,c=Math.log,h=Math.LN2;t.exports={pack:function(a,f,p){var x,u,b,m=r(p),E=8*p-f-1,A=(1<<E)-1,g=A>>1,v=f===23?o(2,-24)-o(2,-77):0,d=a<0||a===0&&1/a<0?1:0,_=0;for((a=i(a))!=a||a===1/0?(u=a!=a?1:0,x=A):(x=s(c(a)/h),a*(b=o(2,-x))<1&&(x--,b*=2),(a+=x+g>=1?v/b:v*o(2,1-g))*b>=2&&(x++,b/=2),x+g>=A?(u=0,x=A):x+g>=1?(u=(a*b-1)*o(2,f),x+=g):(u=a*o(2,g-1)*o(2,f),x=0));f>=8;)m[_++]=255&u,u/=256,f-=8;for(x=x<<f|u,E+=f;E>0;)m[_++]=255&x,x/=256,E-=8;return m[--_]|=128*d,m},unpack:function(a,f){var p,x=a.length,u=8*x-f-1,b=(1<<u)-1,m=b>>1,E=u-7,A=x-1,g=a[A--],v=127&g;for(g>>=7;E>0;)v=256*v+a[A--],E-=8;for(p=v&(1<<-E)-1,v>>=-E,E+=f;E>0;)p=256*p+a[A--],E-=8;if(v===0)v=1-m;else{if(v===b)return p?NaN:g?-1/0:1/0;p+=o(2,f),v-=m}return(g?-1:1)*p*o(2,v-f)}}},function(t,n,e){e(157)("Uint32",function(r){return function(i,o,s){return r(this,i,o,s)}})},function(t,n,e){var r=e(0),i=e(1),o=e(86),s=e(3).NATIVE_ARRAY_BUFFER_VIEWS,c=r.ArrayBuffer,h=r.Int8Array;t.exports=!s||!i(function(){h(1)})||!i(function(){new h(-1)})||!o(function(a){new h,new h(null),new h(1.5),new h(a)},!0)||i(function(){return new h(new c(2),1,void 0).length!==1})},function(t,n,e){var r=e(7),i=Math.floor;t.exports=Number.isInteger||function(o){return!r(o)&&isFinite(o)&&i(o)===o}},function(t,n,e){var r=e(0),i=e(28),o=r.RangeError;t.exports=function(s){var c=i(s);if(c<0)throw o("The argument can't be less than 0");return c}},function(t,n,e){var r=e(40),i=e(11),o=e(105),s=e(14),c=e(15),h=e(113),a=e(85),f=e(112),p=e(3).aTypedArrayConstructor;t.exports=function(x){var u,b,m,E,A,g,v=o(this),d=s(x),_=arguments.length,B=_>1?arguments[1]:void 0,C=B!==void 0,S=a(d);if(S&&!f(S))for(g=(A=h(d,S)).next,d=[];!(E=i(g,A)).done;)d.push(E.value);for(C&&_>2&&(B=r(B,arguments[2])),b=c(d),m=new(p(v))(b),u=0;b>u;u++)m[u]=C?B(d[u],u):d[u];return m}},function(t,n,e){var r=e(2),i=e(3),o=r(e(217)),s=i.aTypedArray;(0,i.exportTypedArrayMethod)("copyWithin",function(c,h){return o(s(this),c,h,arguments.length>2?arguments[2]:void 0)})},function(t,n,e){var r=e(14),i=e(27),o=e(15),s=Math.min;t.exports=[].copyWithin||function(c,h){var a=r(this),f=o(a),p=i(c,f),x=i(h,f),u=arguments.length>2?arguments[2]:void 0,b=s((u===void 0?f:i(u,f))-x,f-p),m=1;for(x<p&&p<x+b&&(m=-1,x+=b-1,p+=b-1);b-- >0;)x in a?a[p]=a[x]:delete a[p],p+=m,x+=m;return a}},function(t,n,e){var r=e(3),i=e(21).every,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("every",function(s){return i(o(this),s,arguments.length>1?arguments[1]:void 0)})},function(t,n,e){var r=e(3),i=e(11),o=e(117),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("fill",function(c){var h=arguments.length;return i(o,s(this),c,h>1?arguments[1]:void 0,h>2?arguments[2]:void 0)})},function(t,n,e){var r=e(3),i=e(21).filter,o=e(221),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("filter",function(c){var h=i(s(this),c,arguments.length>1?arguments[1]:void 0);return o(this,h)})},function(t,n,e){var r=e(222),i=e(89);t.exports=function(o,s){return r(i(o),s)}},function(t,n,e){var r=e(15);t.exports=function(i,o){for(var s=0,c=r(o),h=new i(c);c>s;)h[s]=o[s++];return h}},function(t,n,e){var r=e(3),i=e(21).find,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("find",function(s){return i(o(this),s,arguments.length>1?arguments[1]:void 0)})},function(t,n,e){var r=e(3),i=e(21).findIndex,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("findIndex",function(s){return i(o(this),s,arguments.length>1?arguments[1]:void 0)})},function(t,n,e){var r=e(3),i=e(21).forEach,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("forEach",function(s){i(o(this),s,arguments.length>1?arguments[1]:void 0)})},function(t,n,e){var r=e(3),i=e(96).includes,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("includes",function(s){return i(o(this),s,arguments.length>1?arguments[1]:void 0)})},function(t,n,e){var r=e(3),i=e(96).indexOf,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("indexOf",function(s){return i(o(this),s,arguments.length>1?arguments[1]:void 0)})},function(t,n,e){var r=e(0),i=e(1),o=e(2),s=e(3),c=e(41),h=e(4)("iterator"),a=r.Uint8Array,f=o(c.values),p=o(c.keys),x=o(c.entries),u=s.aTypedArray,b=s.exportTypedArrayMethod,m=a&&a.prototype,E=!i(function(){m[h].call([1])}),A=!!m&&m.values&&m[h]===m.values&&m.values.name==="values",g=function(){return f(u(this))};b("entries",function(){return x(u(this))},E),b("keys",function(){return p(u(this))},E),b("values",g,E||!A,{name:"values"}),b(h,g,E||!A,{name:"values"})},function(t,n,e){var r=e(3),i=e(2),o=r.aTypedArray,s=r.exportTypedArrayMethod,c=i([].join);s("join",function(h){return c(o(this),h)})},function(t,n,e){var r=e(3),i=e(35),o=e(231),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("lastIndexOf",function(c){var h=arguments.length;return i(o,s(this),h>1?[c,arguments[1]]:[c])})},function(t,n,e){var r=e(35),i=e(24),o=e(28),s=e(15),c=e(109),h=Math.min,a=[].lastIndexOf,f=!!a&&1/[1].lastIndexOf(1,-0)<0,p=c("lastIndexOf"),x=f||!p;t.exports=x?function(u){if(f)return r(a,this,arguments)||0;var b=i(this),m=s(b),E=m-1;for(arguments.length>1&&(E=h(E,o(arguments[1]))),E<0&&(E=m+E);E>=0;E--)if(E in b&&b[E]===u)return E||0;return-1}:a},function(t,n,e){var r=e(3),i=e(21).map,o=e(89),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("map",function(c){return i(s(this),c,arguments.length>1?arguments[1]:void 0,function(h,a){return new(o(h))(a)})})},function(t,n,e){var r=e(3),i=e(159).left,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduce",function(s){var c=arguments.length;return i(o(this),s,c,c>1?arguments[1]:void 0)})},function(t,n,e){var r=e(3),i=e(159).right,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduceRight",function(s){var c=arguments.length;return i(o(this),s,c,c>1?arguments[1]:void 0)})},function(t,n,e){var r=e(3),i=r.aTypedArray,o=r.exportTypedArrayMethod,s=Math.floor;o("reverse",function(){for(var c,h=i(this).length,a=s(h/2),f=0;f<a;)c=this[f],this[f++]=this[--h],this[h]=c;return this})},function(t,n,e){var r=e(0),i=e(11),o=e(3),s=e(15),c=e(158),h=e(14),a=e(1),f=r.RangeError,p=r.Int8Array,x=p&&p.prototype,u=x&&x.set,b=o.aTypedArray,m=o.exportTypedArrayMethod,E=!a(function(){var g=new Uint8ClampedArray(2);return i(u,g,{length:1,0:3},1),g[1]!==3}),A=E&&o.NATIVE_ARRAY_BUFFER_VIEWS&&a(function(){var g=new p(2);return g.set(1),g.set("2",1),g[0]!==0||g[1]!==2});m("set",function(g){b(this);var v=c(arguments.length>1?arguments[1]:void 0,1),d=h(g);if(E)return i(u,this,d,v);var _=this.length,B=s(d),C=0;if(B+v>_)throw f("Wrong length");for(;C<B;)this[v+C]=d[C++]},!E||A)},function(t,n,e){var r=e(3),i=e(89),o=e(1),s=e(50),c=r.aTypedArray;(0,r.exportTypedArrayMethod)("slice",function(h,a){for(var f=s(c(this),h,a),p=i(this),x=0,u=f.length,b=new p(u);u>x;)b[x]=f[x++];return b},o(function(){new Int8Array(1).slice()}))},function(t,n,e){var r=e(3),i=e(21).some,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("some",function(s){return i(o(this),s,arguments.length>1?arguments[1]:void 0)})},function(t,n,e){var r=e(0),i=e(2),o=e(1),s=e(31),c=e(240),h=e(3),a=e(241),f=e(242),p=e(55),x=e(243),u=r.Array,b=h.aTypedArray,m=h.exportTypedArrayMethod,E=r.Uint16Array,A=E&&i(E.prototype.sort),g=!(!A||o(function(){A(new E(2),null)})&&o(function(){A(new E(2),{})})),v=!!A&&!o(function(){if(p)return p<74;if(a)return a<67;if(f)return!0;if(x)return x<602;var d,_,B=new E(516),C=u(516);for(d=0;d<516;d++)_=d%4,B[d]=515-d,C[d]=d-2*_+3;for(A(B,function(S,k){return(S/4|0)-(k/4|0)}),d=0;d<516;d++)if(B[d]!==C[d])return!0});m("sort",function(d){return d!==void 0&&s(d),v?A(this,d):c(b(this),function(_){return function(B,C){return _!==void 0?+_(B,C)||0:C!=C?-1:B!=B?1:B===0&&C===0?1/B>0&&1/C<0?1:-1:B>C}}(d))},!v||g)},function(t,n,e){var r=e(81),i=Math.floor,o=function(h,a){var f=h.length,p=i(f/2);return f<8?s(h,a):c(h,o(r(h,0,p),a),o(r(h,p),a),a)},s=function(h,a){for(var f,p,x=h.length,u=1;u<x;){for(p=u,f=h[u];p&&a(h[p-1],f)>0;)h[p]=h[--p];p!==u++&&(h[p]=f)}return h},c=function(h,a,f,p){for(var x=a.length,u=f.length,b=0,m=0;b<x||m<u;)h[b+m]=b<x&&m<u?p(a[b],f[m])<=0?a[b++]:f[m++]:b<x?a[b++]:f[m++];return h};t.exports=o},function(t,n,e){var r=e(37).match(/firefox\/(\d+)/i);t.exports=!!r&&+r[1]},function(t,n,e){var r=e(37);t.exports=/MSIE|Trident/.test(r)},function(t,n,e){var r=e(37).match(/AppleWebKit\/(\d+)\./);t.exports=!!r&&+r[1]},function(t,n,e){var r=e(3),i=e(29),o=e(27),s=e(89),c=r.aTypedArray;(0,r.exportTypedArrayMethod)("subarray",function(h,a){var f=c(this),p=f.length,x=o(h,p);return new(s(f))(f.buffer,f.byteOffset+x*f.BYTES_PER_ELEMENT,i((a===void 0?p:o(a,p))-x))})},function(t,n,e){var r=e(0),i=e(35),o=e(3),s=e(1),c=e(50),h=r.Int8Array,a=o.aTypedArray,f=o.exportTypedArrayMethod,p=[].toLocaleString,x=!!h&&s(function(){p.call(new h(1))});f("toLocaleString",function(){return i(p,x?c(a(this)):a(this),c(arguments))},s(function(){return[1,2].toLocaleString()!=new h([1,2]).toLocaleString()})||!s(function(){h.prototype.toLocaleString.call([1,2])}))},function(t,n,e){var r=e(3).exportTypedArrayMethod,i=e(1),o=e(0),s=e(2),c=o.Uint8Array,h=c&&c.prototype||{},a=[].toString,f=s([].join);i(function(){a.call({})})&&(a=function(){return f(this)});var p=h.toString!=a;r("toString",a,p)},function(t,n,e){e(157)("Uint8",function(r){return function(i,o,s){return r(this,i,o,s)}})},function(t,n,e){var r=e(5),i=e(117),o=e(147);r({target:"Array",proto:!0},{fill:i}),o("fill")},function(t,n,e){e(52),e(88),e(12),e(20),e(160),e(51);var r=e(153),i=r.sm3,o=r.hmac;function s(h){return h.map(function(a){return(a=a.toString(16)).length===1?"0"+a:a}).join("")}function c(h){var a,f,p=[],x=h.length;x%2!=0&&(f=x+1,h=(a=h).length>=f?a:new Array(f-a.length+1).join("0")+a),x=h.length;for(var u=0;u<x;u+=2)p.push(parseInt(h.substr(u,2),16));return p}t.exports=function(h,a){if(h=typeof h=="string"?function(p){for(var x=[],u=0,b=p.length;u<b;u++){var m=p.codePointAt(u);if(m<=127)x.push(m);else if(m<=2047)x.push(192|m>>>6),x.push(128|63&m);else if(m<=55295||m>=57344&&m<=65535)x.push(224|m>>>12),x.push(128|m>>>6&63),x.push(128|63&m);else{if(!(m>=65536&&m<=1114111))throw x.push(m),new Error("input is not supported");u++,x.push(240|m>>>18&28),x.push(128|m>>>12&63),x.push(128|m>>>6&63),x.push(128|63&m)}}return x}(h):Array.prototype.slice.call(h),a){if((a.mode||"hmac")!=="hmac")throw new Error("invalid mode");var f=a.key;if(!f)throw new Error("invalid key");return f=typeof f=="string"?c(f):Array.prototype.slice.call(f),s(o(h,f))}return s(i(h))}},function(t,n,e){function r(g){return function(v){if(Array.isArray(v))return i(v)}(g)||function(v){if(typeof Symbol!="undefined"&&v[Symbol.iterator]!=null||v["@@iterator"]!=null)return Array.from(v)}(g)||function(v,d){if(v){if(typeof v=="string")return i(v,d);var _=Object.prototype.toString.call(v).slice(8,-1);if(_==="Object"&&v.constructor&&(_=v.constructor.name),_==="Map"||_==="Set")return Array.from(v);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return i(v,d)}}(g)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
27
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function i(g,v){(v==null||v>g.length)&&(v=g.length);for(var d=0,_=new Array(v);d<v;d++)_[d]=g[d];return _}e(52),e(88),e(12),e(20),e(160),e(251),e(51),e(252),e(69),e(70),e(71),e(41),e(67),e(68),e(116),e(30),e(16);var o=[214,144,233,254,204,225,61,183,22,182,20,194,40,251,44,5,43,103,154,118,42,190,4,195,170,68,19,38,73,134,6,153,156,66,80,244,145,239,152,122,51,84,11,67,237,207,172,98,228,179,28,169,201,8,232,149,128,223,148,250,117,143,63,166,71,7,167,252,243,115,23,186,131,89,60,25,230,133,79,168,104,107,129,178,113,100,218,139,248,235,15,75,112,86,157,53,30,36,14,94,99,88,209,162,37,34,124,59,1,33,120,135,212,0,70,87,159,211,39,82,76,54,2,231,160,196,200,158,234,191,138,210,64,199,56,181,163,247,242,206,249,97,21,161,224,174,93,164,155,52,26,85,173,147,50,48,245,140,177,227,29,246,226,46,130,102,202,96,192,41,35,171,13,83,78,111,213,219,55,69,222,253,142,47,3,255,106,114,109,108,91,81,141,27,175,146,187,221,188,127,17,217,92,65,31,16,90,216,10,193,49,136,165,205,123,189,45,116,208,18,184,229,180,176,137,105,151,74,12,150,119,126,101,185,241,9,197,110,198,132,24,240,125,236,58,220,77,32,121,238,95,62,215,203,57,72],s=[462357,472066609,943670861,1415275113,1886879365,2358483617,2830087869,3301692121,3773296373,4228057617,404694573,876298825,1347903077,1819507329,2291111581,2762715833,3234320085,3705924337,4177462797,337322537,808926789,1280531041,1752135293,2223739545,2695343797,3166948049,3638552301,4110090761,269950501,741554753,1213159005,1684763257];function c(g){for(var v=[],d=0,_=g.length;d<_;d+=2)v.push(parseInt(g.substr(d,2),16));return v}function h(g){return g.map(function(v){return(v=v.toString(16)).length===1?"0"+v:v}).join("")}function a(g){for(var v=[],d=0,_=g.length;d<_;d++){var B=g.codePointAt(d);if(B<=127)v.push(B);else if(B<=2047)v.push(192|B>>>6),v.push(128|63&B);else if(B<=55295||B>=57344&&B<=65535)v.push(224|B>>>12),v.push(128|B>>>6&63),v.push(128|63&B);else{if(!(B>=65536&&B<=1114111))throw v.push(B),new Error("input is not supported");d++,v.push(240|B>>>18&28),v.push(128|B>>>12&63),v.push(128|B>>>6&63),v.push(128|63&B)}}return v}function f(g){for(var v=[],d=0,_=g.length;d<_;d++)g[d]>=240&&g[d]<=247?(v.push(String.fromCodePoint(((7&g[d])<<18)+((63&g[d+1])<<12)+((63&g[d+2])<<6)+(63&g[d+3]))),d+=3):g[d]>=224&&g[d]<=239?(v.push(String.fromCodePoint(((15&g[d])<<12)+((63&g[d+1])<<6)+(63&g[d+2]))),d+=2):g[d]>=192&&g[d]<=223?(v.push(String.fromCodePoint(((31&g[d])<<6)+(63&g[d+1]))),d++):v.push(String.fromCodePoint(g[d]));return v.join("")}function p(g,v){var d=31&v;return g<<d|g>>>32-d}function x(g){return(255&o[g>>>24&255])<<24|(255&o[g>>>16&255])<<16|(255&o[g>>>8&255])<<8|255&o[255&g]}function u(g){return g^p(g,2)^p(g,10)^p(g,18)^p(g,24)}function b(g){return g^p(g,13)^p(g,23)}function m(g,v,d){for(var _=new Array(4),B=new Array(4),C=0;C<4;C++)B[0]=255&g[4*C],B[1]=255&g[4*C+1],B[2]=255&g[4*C+2],B[3]=255&g[4*C+3],_[C]=B[0]<<24|B[1]<<16|B[2]<<8|B[3];for(var S,k=0;k<32;k+=4)S=_[1]^_[2]^_[3]^d[k+0],_[0]^=u(x(S)),S=_[2]^_[3]^_[0]^d[k+1],_[1]^=u(x(S)),S=_[3]^_[0]^_[1]^d[k+2],_[2]^=u(x(S)),S=_[0]^_[1]^_[2]^d[k+3],_[3]^=u(x(S));for(var F=0;F<16;F+=4)v[F]=_[3-F/4]>>>24&255,v[F+1]=_[3-F/4]>>>16&255,v[F+2]=_[3-F/4]>>>8&255,v[F+3]=255&_[3-F/4]}function E(g,v,d){for(var _=new Array(4),B=new Array(4),C=0;C<4;C++)B[0]=255&g[0+4*C],B[1]=255&g[1+4*C],B[2]=255&g[2+4*C],B[3]=255&g[3+4*C],_[C]=B[0]<<24|B[1]<<16|B[2]<<8|B[3];_[0]^=2746333894,_[1]^=1453994832,_[2]^=1736282519,_[3]^=2993693404;for(var S,k=0;k<32;k+=4)S=_[1]^_[2]^_[3]^s[k+0],v[k+0]=_[0]^=b(x(S)),S=_[2]^_[3]^_[0]^s[k+1],v[k+1]=_[1]^=b(x(S)),S=_[3]^_[0]^_[1]^s[k+2],v[k+2]=_[2]^=b(x(S)),S=_[0]^_[1]^_[2]^s[k+3],v[k+3]=_[3]^=b(x(S));if(d===0)for(var F,D=0;D<16;D++)F=v[D],v[D]=v[31-D],v[31-D]=F}function A(g,v,d){var _=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},B=_.padding,C=B===void 0?"pkcs#7":B,S=_.mode,k=_.iv,F=k===void 0?[]:k,D=_.output,O=D===void 0?"string":D;if(S==="cbc"&&(typeof F=="string"&&(F=c(F)),F.length!==16))throw new Error("iv is invalid");if(typeof v=="string"&&(v=c(v)),v.length!==16)throw new Error("key is invalid");if(g=typeof g=="string"?d!==0?a(g):c(g):r(g),(C==="pkcs#5"||C==="pkcs#7")&&d!==0)for(var M=16-g.length%16,U=0;U<M;U++)g.push(M);var z=new Array(32);E(v,z,d);for(var j=[],W=F,Q=g.length,Z=0;Q>=16;){var te=g.slice(Z,Z+16),P=new Array(16);if(S==="cbc")for(var l=0;l<16;l++)d!==0&&(te[l]^=W[l]);m(te,P,z);for(var y=0;y<16;y++)S==="cbc"&&d===0&&(P[y]^=W[y]),j[Z+y]=P[y];S==="cbc"&&(W=d!==0?P:te),Q-=16,Z+=16}if((C==="pkcs#5"||C==="pkcs#7")&&d===0){for(var w=j.length,T=j[w-1],N=1;N<=T;N++)if(j[w-N]!==T)throw new Error("padding is invalid");j.splice(w-T,T)}return O!=="array"?d!==0?h(j):f(j):j}t.exports={encrypt:function(g,v,d){return A(g,v,1,d)},decrypt:function(g,v,d){return A(g,v,0,d)}}},function(t,n,e){var r=e(5),i=e(0),o=e(2),s=e(27),c=i.RangeError,h=String.fromCharCode,a=String.fromCodePoint,f=o([].join);r({target:"String",stat:!0,forced:!!a&&a.length!=1},{fromCodePoint:function(p){for(var x,u=[],b=arguments.length,m=0;b>m;){if(x=+arguments[m++],s(x,1114111)!==x)throw c(x+" is not a valid code point");u[m]=x<65536?h(x):h(55296+((x-=65536)>>10),x%1024+56320)}return f(u,"")}})},function(t,n,e){var r=e(5),i=e(0),o=e(27),s=e(28),c=e(15),h=e(14),a=e(108),f=e(62),p=e(84)("splice"),x=i.TypeError,u=Math.max,b=Math.min;r({target:"Array",proto:!0,forced:!p},{splice:function(m,E){var A,g,v,d,_,B,C=h(this),S=c(C),k=o(m,S),F=arguments.length;if(F===0?A=g=0:F===1?(A=0,g=S-k):(A=F-2,g=b(u(s(E),0),S-k)),S+A-g>9007199254740991)throw x("Maximum allowed length exceeded");for(v=a(C,g),d=0;d<g;d++)(_=k+d)in C&&f(v,d,C[_]);if(v.length=g,A<g){for(d=k;d<S-g;d++)B=d+A,(_=d+g)in C?C[B]=C[_]:delete C[B];for(d=S;d>S-g+A;d--)delete C[d-1]}else if(A>g)for(d=S-g;d>k;d--)B=d+A-1,(_=d+g-1)in C?C[B]=C[_]:delete C[B];for(d=0;d<A;d++)C[d+k]=arguments[d+2];return C.length=S-g+A,v}})},function(t,n,e){e.r(n),e.d(n,"TrackLogSender",function(){return fe}),e.d(n,"EncryptionType",function(){return Ce});var r=Object.prototype.hasOwnProperty;function i(H,L){return r.call(H,L)}function o(H){if(H==null)throw new TypeError("Cannot convert undefined or null to object");for(var L=0;L<(arguments.length<=1?0:arguments.length-1);L++){var $=L+1<1||arguments.length<=L+1?void 0:arguments[L+1];if($!=null)for(var G in $)G!=="__proto__"&&i($,G)&&(H[G]=$[G])}return H}e(12);var s=Object.prototype.toString;e(95),e(16),e(48),e(172),e(61),e(20);var c={SEC:1e3,MIN:6e4,HOUR:36e5,DAY:864e5,MONTH:2592e6,YEAR:31536e6};function h(H,L){return new Date((typeof H=="number"?H:H.getTime())+function($){if(typeof $=="number")return $;if(!isNaN(Number($)))return Number($);var G=parseFloat($);if(isNaN(G))throw new Error("Invalid timespan string");var se=$.split(G.toString())[1].trim().toUpperCase().replace(/S$/,"");if(i(c,se))return G*c[se];throw new Error('Invalid time unit "'+se+'"')}(L))}function a(H,L){var $=o({},L);$.encode=$.encode||encodeURIComponent,$.decode=$.decode||decodeURIComponent,H="; "+$.encode(H)+"=";var G="; "+document.cookie,se=G.indexOf(H);if(se===-1)return"";se+=H.length;var ne=G.indexOf(";",se);return ne===-1&&(ne=G.length),$.decode(G.substring(se,ne))}function f(H,L,$){var G=o({},$);G.encode=G.encode||encodeURIComponent;var se=G.encode(H)+"="+G.encode(L);G.expires!=null&&(se+="; expires="+(function(ne){return s.call(ne)==="[object Date]"}(G.expires)?G.expires:h(new Date,G.expires)).toUTCString()),G.path&&(se+="; path="+G.path),G.domain&&(se+="; domain="+G.domain),G.secure===!0&&(se+="; secure"),G.sameSite&&(se+="; samesite="+G.sameSite),document.cookie=se}(function(){if(typeof document=="undefined")return!1;var H="__just4__test__cookie__";document.cookie=H+"=1",document.cookie=H+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT",a(H)})();function p(){var H=Date.now();return typeof performance!="undefined"&&typeof performance.now=="function"&&(H+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(L){var $=(H+16*Math.random())%16|0;return H=Math.floor(H/16),(L==="x"?$:3&$|8).toString(16)})}e(39),e(30),e(136);function x(H,L){var $;return L.some(function(G){var se,ne=!1;return G.regExp?(ne=G.regExp.test(H))&&(se=RegExp.$1):G.keywords?ne=function(pe,_e){pe=pe.toLowerCase();var Fe=/[/\s;_-]/,Se=/[/\s;_-]/;return _e.some(function(Le){var Pe=pe.indexOf(Le.toLowerCase());if(Pe!==-1&&(Fe.test(pe[Pe-1])||Pe===0)&&(Se.test(pe[Pe+Le.length])||Pe+Le.length>=pe.length))return!0})}(H,G.keywords):G.modelRegExp&&(ne=function(pe,_e){return!!/;\s*([^;]*?)(?:\s+Build\/|\))/.test(pe)&&_e.test(RegExp.$1)}(H,G.modelRegExp)),ne&&($={name:G.name,version:se}),ne}),$}var u=[{name:"windows",regExp:/\bWindows\s?NT\s?(([\d.]+))\b/},{name:"ios",regExp:/\bOS(?:\s([\d_.]+))?\slike\sMac\sOS\sX\b/},{name:"macos",regExp:/\bMac\sOS\sX(?:\s([\d_.]+))?/},{name:"android",regExp:/\bAndroid;?(?:[-/\s]([\d.]+))?(?:\b|_)/},{name:"android",regExp:/\bAdr\s([\d.]+)(?:\b|_)/}];function b(H,L){for(var $=0;$<L.length;$++){var G=L[$];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(H,G.key,G)}}var m=function(){function H(G){(function(se,ne){if(!(se instanceof ne))throw new TypeError("Cannot call a class as a function")})(this,H),this._ver=(G||"").replace(/_/g,".").replace(/\.+$/,"")}var L,$;return L=H,($=[{key:"_compare",value:function(G,se){if(!this._ver||!G)return!1;var ne=Array.isArray(se)?se:[se],pe=function(_e,Fe){for(var Se=/(\.0+)+$/,Le=String(_e).replace(Se,"").split("."),Pe=String(Fe).replace(Se,"").split("."),Qe=Math.min(Le.length,Pe.length),et=0;et<Qe;et++){var xt=parseInt(Le[et])-parseInt(Pe[et]);if(xt)return xt}return Le.length-Pe.length}(this._ver,G);return ne.some(function(_e){return pe*_e>0||pe===0&&_e===0})}},{key:"gt",value:function(G){return this._compare(G,1)}},{key:"gte",value:function(G){return this._compare(G,[1,0])}},{key:"lt",value:function(G){return this._compare(G,-1)}},{key:"lte",value:function(G){return this._compare(G,[-1,0])}},{key:"eq",value:function(G){return this._compare(G,0)}},{key:"toString",value:function(){return this._ver}}])&&b(L.prototype,$),Object.defineProperty(L,"prototype",{writable:!1}),H}();function E(H,L,$){return Object.defineProperty(H,"prototype",{writable:!1}),H}var A={ios:"isIOS",android:"isAndroid",windows:"isWindows",macos:"isMacOS"},g=E(function H(L,$){var G,se;if(function(_e,Fe){if(!(_e instanceof Fe))throw new TypeError("Cannot call a class as a function")}(this,H),this.isIOS=!1,this.isAndroid=!1,this.isWindows=!1,this.isMacOS=!1,$==null?void 0:$.platform){var ne=function(_e){switch(_e){case"Android":return"android";case"iPad":case"iPhone":case"iPod":return"ios";case"MacIntel":return"macos";case"Win32":return"windows"}}($.platform);ne!==void 0&&(se={name:ne,version:""})}var pe=(G=x(L,u))!==null&&G!==void 0?G:se;pe?(se&&se.name!==pe.name&&(pe=se),pe.name==="macos"&&($!=null&&$.maxTouchPoints)&&(pe.name="ios",pe.version=""),this[A[pe.name]]=!0,this.version=Object.freeze(new m(pe.version))):this.version=Object.freeze(new m(""))}),v=[{name:"ipad",regExp:/iPad/},{name:"ipod",regExp:/iPod/},{name:"iphone",regExp:/iPhone/}],d=[{name:"huawei",regExp:/\b(?:huawei|honor)/i},{name:"vivo",keywords:["vivo"]},{name:"oppo",keywords:["oppo"]},{name:"mi",keywords:["redmi","hongmi","shark","Mi","MIX","POCO"]},{name:"mi",regExp:/\bxiaomi/i},{name:"samsung",keywords:["samsung","galaxy"]},{name:"oneplus",keywords:["oneplus","one"]},{name:"huawei",modelRegExp:/^Mate\s\d{2}/},{name:"huawei",modelRegExp:/^Nova\s\d$/},{name:"huawei",modelRegExp:/^[A-Z]{3}\d?-[AT][LN]\d[019][A-Za-z]*$/},{name:"huawei",modelRegExp:/^[A-Z]{3}\d?-W[0-3]9[A-Z]*$/},{name:"huawei",modelRegExp:/^[A-Z][A-Za-z]{2,3}-BD00$/},{name:"huawei",modelRegExp:/^[A-Z]{3}-(?:[LN]29|NX9)$/},{name:"huawei",modelRegExp:/^TYH\d+[A-Z]?$/},{name:"huawei",regExp:/\b(?:Liantong|UNICOMVSENS)VP\d{3}\b/},{name:"huawei",regExp:/\bCMDCSP\d{3}\b/},{name:"mi",modelRegExp:/^MI\s?(?:\d|CC|Note|MAX|PLAY|PAD)/i},{name:"mi",modelRegExp:/^(?:AWM|SKR|SKW|DLT)-/},{name:"mi",modelRegExp:/^M\d{4}[CKJ]\d+[A-Z]+$/},{name:"mi",modelRegExp:/^2\d{5}[0-9A-Z]{2}[A-Z]$/},{name:"mi",modelRegExp:/^2\d{6}[A-Z]$/},{name:"mi",modelRegExp:/^2\d{7}[A-Z]{2}$/},{name:"samsung",modelRegExp:/^S(?:M|[CGP]H)-[A-Za-z0-9]+$/},{name:"samsung",modelRegExp:/^SC-\d{2}[A-Z]$/},{name:"samsung",modelRegExp:/^SH[WV]-/},{name:"samsung",modelRegExp:/^GT[-_][A-Z][A-Z0-9]{3,}$/i},{name:"oppo",modelRegExp:/^(?:CPH|OPD)\d{4}$/},{name:"oneplus",modelRegExp:/^(?:KB|HD|IN|GM|NE|LE|MT)\d{4}$/}];function _(H,L,$){return Object.defineProperty(H,"prototype",{writable:!1}),H}var B={ipod:"isIPod",iphone:"isIPhone",ipad:"isIPad",huawei:"isHuawei",mi:"isMi",oppo:"isOppo",vivo:"isVivo",oneplus:"isOnePlus",samsung:"isSamsung"},C=_(function H(L,$){var G;if(function(ne,pe){if(!(ne instanceof pe))throw new TypeError("Cannot call a class as a function")}(this,H),this.isHuawei=!1,this.isMi=!1,this.isOppo=!1,this.isVivo=!1,this.isOnePlus=!1,this.isSamsung=!1,this.isIPod=!1,this.isIPhone=!1,this.isIPad=!1,this.isMac=!1,this.isApple=!1,$.isIOS?(G=v,this.isApple=!0):$.isMacOS?(this.isMac=!0,this.isApple=!0):$.isAndroid&&(G=d),G){var se=x(L,G);se?this[B[se.name]]=!0:$.isIOS&&(this.isIPad=!0)}}),S=[{name:"edge",regExp:/\bEdge\/([\d.]+)/},{name:"chrome",regExp:/\b(?:Chrome|CrMo|CriOS)\/([\d.]+)/},{name:"safari",regExp:/\b(?:Version\/([\d.]+).*\s?)?Safari\b/},{name:"ie",regExp:/\bMSIE\s(\d+)/i},{name:"ie",regExp:/\bTrident\/.*;\srv:(\d+)/},{name:"firefox",regExp:/\bFirefox\/([\d.]+)/},{name:"opera-presto",regExp:/\bOpera\/([\d.]+)/}];function k(H,L,$){return Object.defineProperty(H,"prototype",{writable:!1}),H}var F={chrome:"isChrome",safari:"isSafari",edge:"isEdge",ie:"isIE",firefox:"isFirefox","opera-presto":"isPrestoOpera"},D=k(function H(L){(function(G,se){if(!(G instanceof se))throw new TypeError("Cannot call a class as a function")})(this,H),this.isChrome=!1,this.isSafari=!1,this.isEdge=!1,this.isIE=!1,this.isFirefox=!1,this.isPrestoOpera=!1;var $=x(L,S);$?(this[F[$.name]]=!0,this.version=new m($.version)):this.version=new m(""),Object.freeze(this.version)}),O=(e(107),[{name:"wxwork",regExp:/\bwxwork\/([\d.]+)/},{name:"wx",regExp:/\bMicroMessenger\/([\d.]+)/},{name:"ding",regExp:/\bDingTalk\/([\d.]+)/},{name:"qq",regExp:/\bQQ\/([\d.]+)/},{name:"qq",regExp:/\bIPadQQ\b/},{name:"weibo",regExp:/(?:\b|_)Weibo(?:\b|_)/i},{name:"edge",regExp:/\bEdge?\/([\d.]+)/},{name:"opera-blink",regExp:/\bOPR\/([\d.]+)/},{name:"qqbrowser",regExp:/\bM?QQBrowser(?:\/([\d.]+))?/i},{name:"ucbrowser",regExp:/\b(?:UCBrowser|UCWEB)(?:-CMCC)?\/?\s?([\d.]+)/},{name:"ucbrowser",regExp:/\bUC\b/},{name:"quark",regExp:/\bQuark\/([\d.]+)/},{name:"maxthon",regExp:/\b(?:Maxthon|MxBrowser)(?:[/\s]([\d.]+))?/},{name:"theworld",regExp:/\bTheWorld(?:\s([\d.]+))?/i},{name:"baidubrowser",regExp:/\b(?:baidubrowser|bdbrowser_i18n|BIDUBrowser)(?:[/\s]([\d.]+))?/i},{name:"baidubrowser",regExp:/\bbaidubrowserpad\b/},{name:"baiduapp",regExp:/\bbaiduboxapp\b\/([\d.]+)?/i},{name:"baiduapp",regExp:/\bbaiduboxpad\b/i}]);function M(H,L,$){return Object.defineProperty(H,"prototype",{writable:!1}),H}O=O.concat(S);var U={wxwork:"isWxWork",wx:"isWx",ding:"isDing",qq:"isQQ",weibo:"isWeibo",edge:"isEdge","opera-blink":"isOpera","opera-presto":"isOpera",qqbrowser:"isQQBrowser",ucbrowser:"isUCBrowser",quark:"isQuark",maxthon:"isMaxthon",theworld:"isTheWorld",baidubrowser:"isBaiduBrowser",baiduapp:"isBaiduApp",chrome:"isChrome",safari:"isSafari",ie:"isIE",firefox:"isFirefox"},z=M(function H(L){(function(G,se){if(!(G instanceof se))throw new TypeError("Cannot call a class as a function")})(this,H),this.isWxWork=!1,this.isWx=!1,this.isDing=!1,this.isQQ=!1,this.isWeibo=!1,this.isEdge=!1,this.isOpera=!1,this.isQQBrowser=!1,this.isUCBrowser=!1,this.isQuark=!1,this.isMaxthon=!1,this.isTheWorld=!1,this.isBaiduBrowser=!1,this.isBaiduApp=!1,this.isChrome=!1,this.isSafari=!1,this.isIE=!1,this.isFirefox=!1;var $=x(L,O);$?(this[U[$.name]]=!0,this.version=new m($.version)):this.version=new m(""),Object.freeze(this.version)});function j(H,L,$){return Object.defineProperty(H,"prototype",{writable:!1}),H}var W,Q=j(function H(L,$){(function(G,se){if(!(G instanceof se))throw new TypeError("Cannot call a class as a function")})(this,H),this.os=Object.freeze(new g(L,$)),this.brand=Object.freeze(new C(L,this.os)),this.browser=Object.freeze(new D(L)),this.client=Object.freeze(new z(L)),this.isPortable=/mobile|android/i.test(L)||!/\b(Windows\sNT|Macintosh|Linux)\b/.test(L),(this.os.isIOS||this.os.isAndroid)&&(this.isPortable=!0)});e(63),e(178),e(179),e(51),e(52);function Z(H,L){var $,G,se=o({encode:encodeURIComponent},L),ne=[];function pe(Fe,Se){Se==null&&(Se=""),Se===""&&se.ignoreEmpty||(typeof se.encode=="function"&&(Fe=se.encode(Fe),Se=se.encode(String(Se))),ne.push(Fe+"="+Se))}function _e(Fe){pe($,Fe)}for($ in H)i(H,$)&&(G=H[$],Array.isArray(G)?G.forEach(_e):pe($,G));return ne.join("&")}function te(H,L,$){if(H==null||L==null)return H;var G=(H=String(H)).indexOf("#"),se="";return G!==-1&&(se=H.substring(G,H.length),H=H.substring(0,G)),(H=H.replace(/[?&]$/,""))+((L=typeof L!="string"?Z(L,$):L.replace(/^[?&]/,""))?(H.indexOf("?")!==-1?"&":"?")+L:"")+se}e(143),e(144),e(146),e(41),e(192),e(67),e(68),e(69),e(70),e(71);function P(H){return(P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L})(H)}function l(H,L){if(L&&(P(L)==="object"||typeof L=="function"))return L;if(L!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function($){if($===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $}(H)}function y(H){var L=typeof Map=="function"?new Map:void 0;return(y=function($){if($===null||(G=$,Function.toString.call(G).indexOf("[native code]")===-1))return $;var G;if(typeof $!="function")throw new TypeError("Super expression must either be null or a function");if(L!==void 0){if(L.has($))return L.get($);L.set($,se)}function se(){return w($,arguments,X(this).constructor)}return se.prototype=Object.create($.prototype,{constructor:{value:se,enumerable:!1,writable:!0,configurable:!0}}),N(se,$)})(H)}function w(H,L,$){return(w=T()?Reflect.construct:function(G,se,ne){var pe=[null];pe.push.apply(pe,se);var _e=new(Function.bind.apply(G,pe));return ne&&N(_e,ne.prototype),_e}).apply(null,arguments)}function T(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(H){return!1}}function N(H,L){return(N=Object.setPrototypeOf||function($,G){return $.__proto__=G,$})(H,L)}function X(H){return(X=Object.setPrototypeOf?Object.getPrototypeOf:function(L){return L.__proto__||Object.getPrototypeOf(L)})(H)}var V=function(H){(function(pe,_e){if(typeof _e!="function"&&_e!==null)throw new TypeError("Super expression must either be null or a function");pe.prototype=Object.create(_e&&_e.prototype,{constructor:{value:pe,writable:!0,configurable:!0}}),Object.defineProperty(pe,"prototype",{writable:!1}),_e&&N(pe,_e)})(ne,H);var L,$,G,se=(L=ne,$=T(),function(){var pe,_e=X(L);if($){var Fe=X(this).constructor;pe=Reflect.construct(_e,arguments,Fe)}else pe=_e.apply(this,arguments);return l(this,pe)});function ne(pe,_e,Fe){var Se;return function(Le,Pe){if(!(Le instanceof Pe))throw new TypeError("Cannot call a class as a function")}(this,ne),(Se=se.call(this,Fe)).isCancel=!1,Se.isTimeout=!1,Se.xhr=pe,Se.options=_e,Se.name="AJAXError",Se}return G=ne,Object.defineProperty(G,"prototype",{writable:!1}),G}(y(Error)),Y=/(?:^|;\s*)(?:application|text)\/([a-z]+)/i;e(196);function ie(H,L,$,G){return function(){var se,ne;switch(L.responseType||function(Fe){return Fe&&Y.test(Fe)?RegExp.$1.toLowerCase():""}(H.getResponseHeader("Content-Type"))){case"json":try{se=JSON.parse(H.responseText)}catch(Fe){ne="Invalid JSON structure"}break;case"xml":(se=H.responseXML)&&se.documentElement||(ne="Invalid XML format");break;case"blob":se=H.response;break;default:se=H.responseText}var pe,_e=H.status;(function(Fe){return!(Fe===void 0||Fe>=200&&Fe<300||Fe===1223||Fe===304)})(_e)?pe=new V(H,L,"Error (HTTP status code: "+_e+")"):ne&&(pe=new V(H,L,ne)),pe?(pe.code=_e,pe.data=se,G(Object.freeze(pe))):$(Object.freeze({xhr:H,options:L,data:se}))}}var ue=Object.create(null),Ee=0;function we(H,L,$,G){H.onload=ie(H,L,$,G),H.ontimeout=function(){G(Object.freeze(function(ne,pe,_e){var Fe=new V(ne,pe,"Request timeout");return Fe.isTimeout=!0,Fe}(H,L)))},H.onerror=function(){G(Object.freeze(new V(H,L,"Network error")))},L.onDownloadProgress&&H.addEventListener("progress",L.onDownloadProgress),L.onUploadProgress&&H.upload&&H.upload.addEventListener("progress",L.onUploadProgress),Ee===Number.MAX_SAFE_INTEGER&&(Ee=0);var se=++Ee;return ue[se]={xhr:H,options:L,resolve:$,reject:G},se}function ve(H){delete ue[H]}function Be(H,L,$,G,se){return H&&/MSIE\s+(\d+)/.test(navigator.userAgent)&&parseInt(RegExp.$1)<10&&window.XDomainRequest&&(L==="get"||L==="post")&&!$&&!se&&function(ne){if(ne!=null){if(Array.isArray(ne))return!ne.length;for(var pe in ne)if(i(ne,pe))return!1}return!0}(G)?new window.XDomainRequest:new window.XMLHttpRequest}function qe(H,L,$,G){var se,ne;if($!=null&&H!=="get")return G==="json"?(se=typeof $=="string"?$:JSON.stringify($),ne="application/json; charset=utf-8"):typeof(se=function(pe){return s.call(pe)==="[object Object]"}($)?Z($,{ignoreEmpty:!1}):$)=="string"&&(ne="application/x-www-form-urlencoded; charset=utf-8"),L["Content-Type"]=L["Content-Type"]||ne,se}function Re(H,L){var $=0;return new Promise(function(G,se){var ne=o({},L);ne.method=ne.method||"get",ne.requestType=ne.requestType||"",ne.responseType=ne.responseType||"json",ne.timeout=ne.timeout||0,ne.method=ne.method.toLowerCase(),ne.requestType=ne.requestType.toLowerCase(),ne.headers=ne.headers||{},Object.freeze(ne);var pe=function(Se){var Le=document.createElement("div");Le.innerHTML='<a href="'+Se+'"></a>';var Pe=Le.firstChild,Qe=Pe.host!==location.host;return Le=null,Pe=null,Qe}(H=function(Se,Le,Pe){return Le!=null&&(Se=te(Se,Le,{ignoreEmpty:!1})),Pe&&(Se=te(Se,{_:Date.now()})),Se}(H,ne.params,ne.preventCaching)),_e=Be(pe,ne.method,ne.requestType,ne.headers,ne.withCredentials);$=we(_e,ne,function(Se){ve($),G(Se)},function(Se){ve($),se(Se)}),ne.responseType!=="blob"&&ne.responseType!=="arraybuffer"||(_e.responseType=ne.responseType),_e.open(ne.method,H,!0,ne.username,ne.password);var Fe=qe(ne.method,ne.headers,ne.data,ne.requestType);(function(Se,Le,Pe,Qe){Le.timeout&&(Se.timeout=Le.timeout),Pe&&Le.withCredentials!=null&&(Se.withCredentials=!!Le.withCredentials),Pe||Qe["X-Request-With"]!=null||(Qe["X-Request-With"]="XMLHttpRequest"),Object.keys(Qe).forEach(function(et){Qe[et]!=null&&Se.setRequestHeader(et,String(Qe[et]))})})(_e,ne,pe,ne.headers),typeof ne.beforeSend=="function"&&ne.beforeSend.call(window,_e),_e.send(Fe||""),typeof ne.receiveCancelId=="function"&&ne.receiveCancelId($)})}var We=Object.prototype.hasOwnProperty;function J(H,L){return We.call(H,L)}function ce(H){if(H==null)throw new TypeError("Cannot convert undefined or null to object");for(var L=0;L<(arguments.length<=1?0:arguments.length-1);L++){var $=L+1<1||arguments.length<=L+1?void 0:arguments[L+1];if($!=null)for(var G in $)G!=="__proto__"&&J($,G)&&(H[G]=$[G])}return H}function le(H,L,$){if(H==null||L==null)return H;var G=(H=String(H)).indexOf("#"),se="";return G!==-1&&(se=H.substring(G,H.length),H=H.substring(0,G)),(H=H.replace(/[?&]$/,""))+((L=typeof L!="string"?function(ne,pe){var _e,Fe,Se=ce({encode:encodeURIComponent},pe),Le=[];function Pe(et,xt){xt==null&&(xt=""),xt===""&&Se.ignoreEmpty||(typeof Se.encode=="function"&&(et=Se.encode(et),xt=Se.encode(String(xt))),Le.push(et+"="+xt))}function Qe(et){Pe(_e,et)}for(_e in ne)J(ne,_e)&&(Fe=ne[_e],Array.isArray(Fe)?Fe.forEach(Qe):Pe(_e,Fe));return Le.join("&")}(L,$):L.replace(/^[?&]/,""))?(H.indexOf("?")!==-1?"&":"?")+L:"")+se}var me=e(90),ge=e.n(me),Ve=e(161),Oe=e.n(Ve),Te=e(162),Ae=e.n(Te),Ue=e(163),Ge=e.n(Ue);function Ke(H){for(var L="",$=H.length-1;$>=0;$--)L+=String.fromCharCode(H.charCodeAt($)+1);return L}var ee=Ke("WDuHi7BPemY6NeKJ"),oe=Ke("aB6IrQkkclR6dQSU"),he=Ke("qdmmh^`c^uxkno");function be(H){var L="";Object.keys(H).sort().forEach(function(G){L+="".concat(G).concat(H[G])});var $=he+L+he;return Ge()($).toString().toUpperCase()}var Ce,He=e(164);(function(H){H[H.NONE=0]="NONE",H[H.AES256=1]="AES256",H[H.SM2=2]="SM2"})(Ce||(Ce={}));var $e=function(){return($e=Object.assign||function(H){for(var L,$=1,G=arguments.length;$<G;$++)for(var se in L=arguments[$])Object.prototype.hasOwnProperty.call(L,se)&&(H[se]=L[se]);return H}).apply(this,arguments)};function Ye(H,L){var $,G,se="".concat((($=window.PLV_GLOBAL_URL_ORIGIN)===null||$===void 0?void 0:$.rtasOrigin)||"https://rtas.videocc.net","/da/track"),ne=se;if(L===Ce.AES256){var pe={eType:1,signatureMethod:"SHA256",signatureNonce:Math.random()};ne=le(se,$e($e({},pe),{sign:be($e({app_id:H.app_id,project_id:H.project_id,project_name:H.project_name,local_ts:H.local_ts},pe))})),G=function(Fe){var Se=JSON.stringify(Fe),Le=ge.a.parse(ee),Pe=ge.a.parse(Se);return Oe.a.encrypt(Pe,Le,{iv:ge.a.parse(oe),padding:Ae.a}).toString()}(H)}else L===Ce.SM2?(ne=le(se,{eType:2}),G=function(Fe){return"04"+He.sm2.doEncrypt(JSON.stringify(Fe),"045B8155E9747C283ACF842895D3048E6CA943CC454AFA6A9A452B5903CC30FCE278A6F88F602EDF803DAB40BD45E35F660676BF68FD7CCBE0F6AD32388136CD0D",0)}(H)):G=JSON.stringify(H);var _e=!1;if(typeof navigator.sendBeacon=="function"&&typeof Blob=="function")try{_e=navigator.sendBeacon(ne,G)}catch(Fe){}_e||Re(ne,{requestType:"json",responseType:"text",method:"post",data:G})}var Ze=function(){return(Ze=Object.assign||function(H){for(var L,$=1,G=arguments.length;$<G;$++)for(var se in L=arguments[$])Object.prototype.hasOwnProperty.call(L,se)&&(H[se]=L[se]);return H}).apply(this,arguments)},fe=function(){function H(L){this._commonData=Ze({},L.commonData),this._cookieDomain=L.cookieDomain;var $=L.enableAPIEncryption;this._enableAPIEncryption=typeof $=="boolean"?$?Ce.AES256:Ce.NONE:$}return H.prototype.getDeviceId=function(){var L=a("rtas_device_id");return L||f("rtas_device_id",L=p(),{domain:this._cookieDomain,path:"/",expires:"1 year"}),L},H.prototype.getSessionId=function(){var L=a("rtas_session_id");return L||f("rtas_session_id",L=p(),{domain:this._cookieDomain,path:"/"}),L},H.prototype._makeUpData=function(L,$){return Ze(Ze({},this._commonData),{app_id:"N/A",project_id:"N/A",device_uuid:this.getDeviceId(),session_uuid:this.getSessionId(),device_class:(W||(W=Object.freeze(typeof window!="undefined"?new Q(window.navigator.userAgent,window.navigator):new Q(""))),W).isPortable?"mobile":"desktop",local_ts:Math.round(Date.now()/1e3),data_type:L,data_param:[$]})},H.prototype.trackEvent=function(L){Ye(this._makeUpData("event",Ze(Ze({},L),{event_uuid:p(),occur_time:Math.round(Date.now()/1e3),url_path:window.location.href})),this._enableAPIEncryption)},H}()}]);class Fu extends gn{constructor(e){super(e);ye(this,"__rtasSender")}setup(e){return De(this,null,function*(){yield this.__init()})}__init(){return De(this,null,function*(){var h;const e=this._plvSocket.getUserInfo(),r=this._plvSocket.config;let i=e.userId,o=e.authType||"";(h=r.rtasConfig)!=null&&h.logonType&&(o=r.rtasConfig.logonType);let s=!1;this._plvSocket.config.securityMode===a0.AES?s=Zr.EncryptionType.AES256:this._plvSocket.config.securityMode===a0.SM2&&(s=Zr.EncryptionType.SM2);const c="2.6.0-rc-20260205.1";this.__rtasSender=new Zr.TrackLogSender({commonData:{project_name:"live",app_name:"polyv-socket",app_version:c,logon_id:i,nickname:e.nick,logon_type:o,weixin_open_id:e.wxOpenId,weixin_union_id:e.wxUnionId},enableAPIEncryption:s})})}trackEvent(e){return De(this,null,function*(){if(!this.__rtasSender||!this._plvSocket.config.watchEventTrackEnabled)return;const r=yield this._plvSocket.channel.getChannelInfo(),i={channelId:r.channelId,sessionId:r.sessionId,userId:r.accountId};this.__rtasSender.trackEvent({event_cata:"behavior",event_id:e.event_id,event_type:e.event_type,comm_attrs:i,spec_attrs:e.spec_attrs})})}}class Su{constructor(n){ye(this,"ConnectFailReason",n0);ye(this,"SocketUserType",At);ye(this,"PolyvSocketEvent",vt);ye(this,"eventEmitter",new Ya);ye(this,"config");ye(this,"chatApi");ye(this,"polyvApi");ye(this,"connect");ye(this,"channel");ye(this,"rtas");this.config=n,this.chatApi=new Oc(this),this.polyvApi=new Lf(this),this.connect=new Cu(this),this.channel=new Kf(this),this.rtas=new Fu(this)}setup(){return De(this,arguments,function*(n={}){yield Promise.all([this.rtas.setup(n),this.channel.setup(n),this.connect.setup(n)])})}emitSocket(n,e="message",r){return this.connect.emitSocket(n,e,r)}addSocketHandles(n,e,r="message"){this.connect.addSocketHandles(n,e,r)}clearSocketHandles(n){this.connect.clearSocketHandles(n)}getUserInfo(){return typeof this.config.userInfo=="function"?this.config.userInfo():this.config.userInfo}isSpecialUserType(n,e){return n===At.Dummy?!!e&&["主讲","讲师","嘉宾","助教","管理员"].includes(e):[At.Teacher,At.Manager,At.Guest,At.Assistant,At.Attendee,At.UserTagsMonitor].includes(n)}currentIsSpecialUser(){const n=this.getUserInfo();return this.isSpecialUserType(n.userType,n.actor)}isCurrentUser(n){return this.getUserInfo().userId===n}destroy(){return De(this,null,function*(){yield this.connect.disconnect()})}}const Du="PolyvSocket";exports.ConnectFailReason=n0;exports.GlobalVariable=Du;exports.PolyvSocket=Su;exports.PolyvSocketEvent=vt;exports.RequestAuthorizeMethod=b0;exports.SecurityMode=a0;exports.SocketUserType=At;exports.socketEventTypes=Ko;console.log("%c@polyv/socket","background:#67C23A;padding: 2px 6px;border-radius: 3px;color: #fff","[version: 2.6.0-rc-20260205.1]","[buildTime: 2026-02-05 05:52:52]");
27
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function i(g,v){(v==null||v>g.length)&&(v=g.length);for(var d=0,_=new Array(v);d<v;d++)_[d]=g[d];return _}e(52),e(88),e(12),e(20),e(160),e(251),e(51),e(252),e(69),e(70),e(71),e(41),e(67),e(68),e(116),e(30),e(16);var o=[214,144,233,254,204,225,61,183,22,182,20,194,40,251,44,5,43,103,154,118,42,190,4,195,170,68,19,38,73,134,6,153,156,66,80,244,145,239,152,122,51,84,11,67,237,207,172,98,228,179,28,169,201,8,232,149,128,223,148,250,117,143,63,166,71,7,167,252,243,115,23,186,131,89,60,25,230,133,79,168,104,107,129,178,113,100,218,139,248,235,15,75,112,86,157,53,30,36,14,94,99,88,209,162,37,34,124,59,1,33,120,135,212,0,70,87,159,211,39,82,76,54,2,231,160,196,200,158,234,191,138,210,64,199,56,181,163,247,242,206,249,97,21,161,224,174,93,164,155,52,26,85,173,147,50,48,245,140,177,227,29,246,226,46,130,102,202,96,192,41,35,171,13,83,78,111,213,219,55,69,222,253,142,47,3,255,106,114,109,108,91,81,141,27,175,146,187,221,188,127,17,217,92,65,31,16,90,216,10,193,49,136,165,205,123,189,45,116,208,18,184,229,180,176,137,105,151,74,12,150,119,126,101,185,241,9,197,110,198,132,24,240,125,236,58,220,77,32,121,238,95,62,215,203,57,72],s=[462357,472066609,943670861,1415275113,1886879365,2358483617,2830087869,3301692121,3773296373,4228057617,404694573,876298825,1347903077,1819507329,2291111581,2762715833,3234320085,3705924337,4177462797,337322537,808926789,1280531041,1752135293,2223739545,2695343797,3166948049,3638552301,4110090761,269950501,741554753,1213159005,1684763257];function c(g){for(var v=[],d=0,_=g.length;d<_;d+=2)v.push(parseInt(g.substr(d,2),16));return v}function h(g){return g.map(function(v){return(v=v.toString(16)).length===1?"0"+v:v}).join("")}function a(g){for(var v=[],d=0,_=g.length;d<_;d++){var B=g.codePointAt(d);if(B<=127)v.push(B);else if(B<=2047)v.push(192|B>>>6),v.push(128|63&B);else if(B<=55295||B>=57344&&B<=65535)v.push(224|B>>>12),v.push(128|B>>>6&63),v.push(128|63&B);else{if(!(B>=65536&&B<=1114111))throw v.push(B),new Error("input is not supported");d++,v.push(240|B>>>18&28),v.push(128|B>>>12&63),v.push(128|B>>>6&63),v.push(128|63&B)}}return v}function f(g){for(var v=[],d=0,_=g.length;d<_;d++)g[d]>=240&&g[d]<=247?(v.push(String.fromCodePoint(((7&g[d])<<18)+((63&g[d+1])<<12)+((63&g[d+2])<<6)+(63&g[d+3]))),d+=3):g[d]>=224&&g[d]<=239?(v.push(String.fromCodePoint(((15&g[d])<<12)+((63&g[d+1])<<6)+(63&g[d+2]))),d+=2):g[d]>=192&&g[d]<=223?(v.push(String.fromCodePoint(((31&g[d])<<6)+(63&g[d+1]))),d++):v.push(String.fromCodePoint(g[d]));return v.join("")}function p(g,v){var d=31&v;return g<<d|g>>>32-d}function x(g){return(255&o[g>>>24&255])<<24|(255&o[g>>>16&255])<<16|(255&o[g>>>8&255])<<8|255&o[255&g]}function u(g){return g^p(g,2)^p(g,10)^p(g,18)^p(g,24)}function b(g){return g^p(g,13)^p(g,23)}function m(g,v,d){for(var _=new Array(4),B=new Array(4),C=0;C<4;C++)B[0]=255&g[4*C],B[1]=255&g[4*C+1],B[2]=255&g[4*C+2],B[3]=255&g[4*C+3],_[C]=B[0]<<24|B[1]<<16|B[2]<<8|B[3];for(var S,k=0;k<32;k+=4)S=_[1]^_[2]^_[3]^d[k+0],_[0]^=u(x(S)),S=_[2]^_[3]^_[0]^d[k+1],_[1]^=u(x(S)),S=_[3]^_[0]^_[1]^d[k+2],_[2]^=u(x(S)),S=_[0]^_[1]^_[2]^d[k+3],_[3]^=u(x(S));for(var F=0;F<16;F+=4)v[F]=_[3-F/4]>>>24&255,v[F+1]=_[3-F/4]>>>16&255,v[F+2]=_[3-F/4]>>>8&255,v[F+3]=255&_[3-F/4]}function E(g,v,d){for(var _=new Array(4),B=new Array(4),C=0;C<4;C++)B[0]=255&g[0+4*C],B[1]=255&g[1+4*C],B[2]=255&g[2+4*C],B[3]=255&g[3+4*C],_[C]=B[0]<<24|B[1]<<16|B[2]<<8|B[3];_[0]^=2746333894,_[1]^=1453994832,_[2]^=1736282519,_[3]^=2993693404;for(var S,k=0;k<32;k+=4)S=_[1]^_[2]^_[3]^s[k+0],v[k+0]=_[0]^=b(x(S)),S=_[2]^_[3]^_[0]^s[k+1],v[k+1]=_[1]^=b(x(S)),S=_[3]^_[0]^_[1]^s[k+2],v[k+2]=_[2]^=b(x(S)),S=_[0]^_[1]^_[2]^s[k+3],v[k+3]=_[3]^=b(x(S));if(d===0)for(var F,D=0;D<16;D++)F=v[D],v[D]=v[31-D],v[31-D]=F}function A(g,v,d){var _=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},B=_.padding,C=B===void 0?"pkcs#7":B,S=_.mode,k=_.iv,F=k===void 0?[]:k,D=_.output,O=D===void 0?"string":D;if(S==="cbc"&&(typeof F=="string"&&(F=c(F)),F.length!==16))throw new Error("iv is invalid");if(typeof v=="string"&&(v=c(v)),v.length!==16)throw new Error("key is invalid");if(g=typeof g=="string"?d!==0?a(g):c(g):r(g),(C==="pkcs#5"||C==="pkcs#7")&&d!==0)for(var M=16-g.length%16,U=0;U<M;U++)g.push(M);var z=new Array(32);E(v,z,d);for(var j=[],W=F,Q=g.length,Z=0;Q>=16;){var te=g.slice(Z,Z+16),P=new Array(16);if(S==="cbc")for(var l=0;l<16;l++)d!==0&&(te[l]^=W[l]);m(te,P,z);for(var y=0;y<16;y++)S==="cbc"&&d===0&&(P[y]^=W[y]),j[Z+y]=P[y];S==="cbc"&&(W=d!==0?P:te),Q-=16,Z+=16}if((C==="pkcs#5"||C==="pkcs#7")&&d===0){for(var w=j.length,T=j[w-1],N=1;N<=T;N++)if(j[w-N]!==T)throw new Error("padding is invalid");j.splice(w-T,T)}return O!=="array"?d!==0?h(j):f(j):j}t.exports={encrypt:function(g,v,d){return A(g,v,1,d)},decrypt:function(g,v,d){return A(g,v,0,d)}}},function(t,n,e){var r=e(5),i=e(0),o=e(2),s=e(27),c=i.RangeError,h=String.fromCharCode,a=String.fromCodePoint,f=o([].join);r({target:"String",stat:!0,forced:!!a&&a.length!=1},{fromCodePoint:function(p){for(var x,u=[],b=arguments.length,m=0;b>m;){if(x=+arguments[m++],s(x,1114111)!==x)throw c(x+" is not a valid code point");u[m]=x<65536?h(x):h(55296+((x-=65536)>>10),x%1024+56320)}return f(u,"")}})},function(t,n,e){var r=e(5),i=e(0),o=e(27),s=e(28),c=e(15),h=e(14),a=e(108),f=e(62),p=e(84)("splice"),x=i.TypeError,u=Math.max,b=Math.min;r({target:"Array",proto:!0,forced:!p},{splice:function(m,E){var A,g,v,d,_,B,C=h(this),S=c(C),k=o(m,S),F=arguments.length;if(F===0?A=g=0:F===1?(A=0,g=S-k):(A=F-2,g=b(u(s(E),0),S-k)),S+A-g>9007199254740991)throw x("Maximum allowed length exceeded");for(v=a(C,g),d=0;d<g;d++)(_=k+d)in C&&f(v,d,C[_]);if(v.length=g,A<g){for(d=k;d<S-g;d++)B=d+A,(_=d+g)in C?C[B]=C[_]:delete C[B];for(d=S;d>S-g+A;d--)delete C[d-1]}else if(A>g)for(d=S-g;d>k;d--)B=d+A-1,(_=d+g-1)in C?C[B]=C[_]:delete C[B];for(d=0;d<A;d++)C[d+k]=arguments[d+2];return C.length=S-g+A,v}})},function(t,n,e){e.r(n),e.d(n,"TrackLogSender",function(){return fe}),e.d(n,"EncryptionType",function(){return Ce});var r=Object.prototype.hasOwnProperty;function i(H,L){return r.call(H,L)}function o(H){if(H==null)throw new TypeError("Cannot convert undefined or null to object");for(var L=0;L<(arguments.length<=1?0:arguments.length-1);L++){var $=L+1<1||arguments.length<=L+1?void 0:arguments[L+1];if($!=null)for(var G in $)G!=="__proto__"&&i($,G)&&(H[G]=$[G])}return H}e(12);var s=Object.prototype.toString;e(95),e(16),e(48),e(172),e(61),e(20);var c={SEC:1e3,MIN:6e4,HOUR:36e5,DAY:864e5,MONTH:2592e6,YEAR:31536e6};function h(H,L){return new Date((typeof H=="number"?H:H.getTime())+function($){if(typeof $=="number")return $;if(!isNaN(Number($)))return Number($);var G=parseFloat($);if(isNaN(G))throw new Error("Invalid timespan string");var se=$.split(G.toString())[1].trim().toUpperCase().replace(/S$/,"");if(i(c,se))return G*c[se];throw new Error('Invalid time unit "'+se+'"')}(L))}function a(H,L){var $=o({},L);$.encode=$.encode||encodeURIComponent,$.decode=$.decode||decodeURIComponent,H="; "+$.encode(H)+"=";var G="; "+document.cookie,se=G.indexOf(H);if(se===-1)return"";se+=H.length;var ne=G.indexOf(";",se);return ne===-1&&(ne=G.length),$.decode(G.substring(se,ne))}function f(H,L,$){var G=o({},$);G.encode=G.encode||encodeURIComponent;var se=G.encode(H)+"="+G.encode(L);G.expires!=null&&(se+="; expires="+(function(ne){return s.call(ne)==="[object Date]"}(G.expires)?G.expires:h(new Date,G.expires)).toUTCString()),G.path&&(se+="; path="+G.path),G.domain&&(se+="; domain="+G.domain),G.secure===!0&&(se+="; secure"),G.sameSite&&(se+="; samesite="+G.sameSite),document.cookie=se}(function(){if(typeof document=="undefined")return!1;var H="__just4__test__cookie__";document.cookie=H+"=1",document.cookie=H+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT",a(H)})();function p(){var H=Date.now();return typeof performance!="undefined"&&typeof performance.now=="function"&&(H+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(L){var $=(H+16*Math.random())%16|0;return H=Math.floor(H/16),(L==="x"?$:3&$|8).toString(16)})}e(39),e(30),e(136);function x(H,L){var $;return L.some(function(G){var se,ne=!1;return G.regExp?(ne=G.regExp.test(H))&&(se=RegExp.$1):G.keywords?ne=function(pe,_e){pe=pe.toLowerCase();var Fe=/[/\s;_-]/,Se=/[/\s;_-]/;return _e.some(function(Le){var Pe=pe.indexOf(Le.toLowerCase());if(Pe!==-1&&(Fe.test(pe[Pe-1])||Pe===0)&&(Se.test(pe[Pe+Le.length])||Pe+Le.length>=pe.length))return!0})}(H,G.keywords):G.modelRegExp&&(ne=function(pe,_e){return!!/;\s*([^;]*?)(?:\s+Build\/|\))/.test(pe)&&_e.test(RegExp.$1)}(H,G.modelRegExp)),ne&&($={name:G.name,version:se}),ne}),$}var u=[{name:"windows",regExp:/\bWindows\s?NT\s?(([\d.]+))\b/},{name:"ios",regExp:/\bOS(?:\s([\d_.]+))?\slike\sMac\sOS\sX\b/},{name:"macos",regExp:/\bMac\sOS\sX(?:\s([\d_.]+))?/},{name:"android",regExp:/\bAndroid;?(?:[-/\s]([\d.]+))?(?:\b|_)/},{name:"android",regExp:/\bAdr\s([\d.]+)(?:\b|_)/}];function b(H,L){for(var $=0;$<L.length;$++){var G=L[$];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(H,G.key,G)}}var m=function(){function H(G){(function(se,ne){if(!(se instanceof ne))throw new TypeError("Cannot call a class as a function")})(this,H),this._ver=(G||"").replace(/_/g,".").replace(/\.+$/,"")}var L,$;return L=H,($=[{key:"_compare",value:function(G,se){if(!this._ver||!G)return!1;var ne=Array.isArray(se)?se:[se],pe=function(_e,Fe){for(var Se=/(\.0+)+$/,Le=String(_e).replace(Se,"").split("."),Pe=String(Fe).replace(Se,"").split("."),Qe=Math.min(Le.length,Pe.length),et=0;et<Qe;et++){var xt=parseInt(Le[et])-parseInt(Pe[et]);if(xt)return xt}return Le.length-Pe.length}(this._ver,G);return ne.some(function(_e){return pe*_e>0||pe===0&&_e===0})}},{key:"gt",value:function(G){return this._compare(G,1)}},{key:"gte",value:function(G){return this._compare(G,[1,0])}},{key:"lt",value:function(G){return this._compare(G,-1)}},{key:"lte",value:function(G){return this._compare(G,[-1,0])}},{key:"eq",value:function(G){return this._compare(G,0)}},{key:"toString",value:function(){return this._ver}}])&&b(L.prototype,$),Object.defineProperty(L,"prototype",{writable:!1}),H}();function E(H,L,$){return Object.defineProperty(H,"prototype",{writable:!1}),H}var A={ios:"isIOS",android:"isAndroid",windows:"isWindows",macos:"isMacOS"},g=E(function H(L,$){var G,se;if(function(_e,Fe){if(!(_e instanceof Fe))throw new TypeError("Cannot call a class as a function")}(this,H),this.isIOS=!1,this.isAndroid=!1,this.isWindows=!1,this.isMacOS=!1,$==null?void 0:$.platform){var ne=function(_e){switch(_e){case"Android":return"android";case"iPad":case"iPhone":case"iPod":return"ios";case"MacIntel":return"macos";case"Win32":return"windows"}}($.platform);ne!==void 0&&(se={name:ne,version:""})}var pe=(G=x(L,u))!==null&&G!==void 0?G:se;pe?(se&&se.name!==pe.name&&(pe=se),pe.name==="macos"&&($!=null&&$.maxTouchPoints)&&(pe.name="ios",pe.version=""),this[A[pe.name]]=!0,this.version=Object.freeze(new m(pe.version))):this.version=Object.freeze(new m(""))}),v=[{name:"ipad",regExp:/iPad/},{name:"ipod",regExp:/iPod/},{name:"iphone",regExp:/iPhone/}],d=[{name:"huawei",regExp:/\b(?:huawei|honor)/i},{name:"vivo",keywords:["vivo"]},{name:"oppo",keywords:["oppo"]},{name:"mi",keywords:["redmi","hongmi","shark","Mi","MIX","POCO"]},{name:"mi",regExp:/\bxiaomi/i},{name:"samsung",keywords:["samsung","galaxy"]},{name:"oneplus",keywords:["oneplus","one"]},{name:"huawei",modelRegExp:/^Mate\s\d{2}/},{name:"huawei",modelRegExp:/^Nova\s\d$/},{name:"huawei",modelRegExp:/^[A-Z]{3}\d?-[AT][LN]\d[019][A-Za-z]*$/},{name:"huawei",modelRegExp:/^[A-Z]{3}\d?-W[0-3]9[A-Z]*$/},{name:"huawei",modelRegExp:/^[A-Z][A-Za-z]{2,3}-BD00$/},{name:"huawei",modelRegExp:/^[A-Z]{3}-(?:[LN]29|NX9)$/},{name:"huawei",modelRegExp:/^TYH\d+[A-Z]?$/},{name:"huawei",regExp:/\b(?:Liantong|UNICOMVSENS)VP\d{3}\b/},{name:"huawei",regExp:/\bCMDCSP\d{3}\b/},{name:"mi",modelRegExp:/^MI\s?(?:\d|CC|Note|MAX|PLAY|PAD)/i},{name:"mi",modelRegExp:/^(?:AWM|SKR|SKW|DLT)-/},{name:"mi",modelRegExp:/^M\d{4}[CKJ]\d+[A-Z]+$/},{name:"mi",modelRegExp:/^2\d{5}[0-9A-Z]{2}[A-Z]$/},{name:"mi",modelRegExp:/^2\d{6}[A-Z]$/},{name:"mi",modelRegExp:/^2\d{7}[A-Z]{2}$/},{name:"samsung",modelRegExp:/^S(?:M|[CGP]H)-[A-Za-z0-9]+$/},{name:"samsung",modelRegExp:/^SC-\d{2}[A-Z]$/},{name:"samsung",modelRegExp:/^SH[WV]-/},{name:"samsung",modelRegExp:/^GT[-_][A-Z][A-Z0-9]{3,}$/i},{name:"oppo",modelRegExp:/^(?:CPH|OPD)\d{4}$/},{name:"oneplus",modelRegExp:/^(?:KB|HD|IN|GM|NE|LE|MT)\d{4}$/}];function _(H,L,$){return Object.defineProperty(H,"prototype",{writable:!1}),H}var B={ipod:"isIPod",iphone:"isIPhone",ipad:"isIPad",huawei:"isHuawei",mi:"isMi",oppo:"isOppo",vivo:"isVivo",oneplus:"isOnePlus",samsung:"isSamsung"},C=_(function H(L,$){var G;if(function(ne,pe){if(!(ne instanceof pe))throw new TypeError("Cannot call a class as a function")}(this,H),this.isHuawei=!1,this.isMi=!1,this.isOppo=!1,this.isVivo=!1,this.isOnePlus=!1,this.isSamsung=!1,this.isIPod=!1,this.isIPhone=!1,this.isIPad=!1,this.isMac=!1,this.isApple=!1,$.isIOS?(G=v,this.isApple=!0):$.isMacOS?(this.isMac=!0,this.isApple=!0):$.isAndroid&&(G=d),G){var se=x(L,G);se?this[B[se.name]]=!0:$.isIOS&&(this.isIPad=!0)}}),S=[{name:"edge",regExp:/\bEdge\/([\d.]+)/},{name:"chrome",regExp:/\b(?:Chrome|CrMo|CriOS)\/([\d.]+)/},{name:"safari",regExp:/\b(?:Version\/([\d.]+).*\s?)?Safari\b/},{name:"ie",regExp:/\bMSIE\s(\d+)/i},{name:"ie",regExp:/\bTrident\/.*;\srv:(\d+)/},{name:"firefox",regExp:/\bFirefox\/([\d.]+)/},{name:"opera-presto",regExp:/\bOpera\/([\d.]+)/}];function k(H,L,$){return Object.defineProperty(H,"prototype",{writable:!1}),H}var F={chrome:"isChrome",safari:"isSafari",edge:"isEdge",ie:"isIE",firefox:"isFirefox","opera-presto":"isPrestoOpera"},D=k(function H(L){(function(G,se){if(!(G instanceof se))throw new TypeError("Cannot call a class as a function")})(this,H),this.isChrome=!1,this.isSafari=!1,this.isEdge=!1,this.isIE=!1,this.isFirefox=!1,this.isPrestoOpera=!1;var $=x(L,S);$?(this[F[$.name]]=!0,this.version=new m($.version)):this.version=new m(""),Object.freeze(this.version)}),O=(e(107),[{name:"wxwork",regExp:/\bwxwork\/([\d.]+)/},{name:"wx",regExp:/\bMicroMessenger\/([\d.]+)/},{name:"ding",regExp:/\bDingTalk\/([\d.]+)/},{name:"qq",regExp:/\bQQ\/([\d.]+)/},{name:"qq",regExp:/\bIPadQQ\b/},{name:"weibo",regExp:/(?:\b|_)Weibo(?:\b|_)/i},{name:"edge",regExp:/\bEdge?\/([\d.]+)/},{name:"opera-blink",regExp:/\bOPR\/([\d.]+)/},{name:"qqbrowser",regExp:/\bM?QQBrowser(?:\/([\d.]+))?/i},{name:"ucbrowser",regExp:/\b(?:UCBrowser|UCWEB)(?:-CMCC)?\/?\s?([\d.]+)/},{name:"ucbrowser",regExp:/\bUC\b/},{name:"quark",regExp:/\bQuark\/([\d.]+)/},{name:"maxthon",regExp:/\b(?:Maxthon|MxBrowser)(?:[/\s]([\d.]+))?/},{name:"theworld",regExp:/\bTheWorld(?:\s([\d.]+))?/i},{name:"baidubrowser",regExp:/\b(?:baidubrowser|bdbrowser_i18n|BIDUBrowser)(?:[/\s]([\d.]+))?/i},{name:"baidubrowser",regExp:/\bbaidubrowserpad\b/},{name:"baiduapp",regExp:/\bbaiduboxapp\b\/([\d.]+)?/i},{name:"baiduapp",regExp:/\bbaiduboxpad\b/i}]);function M(H,L,$){return Object.defineProperty(H,"prototype",{writable:!1}),H}O=O.concat(S);var U={wxwork:"isWxWork",wx:"isWx",ding:"isDing",qq:"isQQ",weibo:"isWeibo",edge:"isEdge","opera-blink":"isOpera","opera-presto":"isOpera",qqbrowser:"isQQBrowser",ucbrowser:"isUCBrowser",quark:"isQuark",maxthon:"isMaxthon",theworld:"isTheWorld",baidubrowser:"isBaiduBrowser",baiduapp:"isBaiduApp",chrome:"isChrome",safari:"isSafari",ie:"isIE",firefox:"isFirefox"},z=M(function H(L){(function(G,se){if(!(G instanceof se))throw new TypeError("Cannot call a class as a function")})(this,H),this.isWxWork=!1,this.isWx=!1,this.isDing=!1,this.isQQ=!1,this.isWeibo=!1,this.isEdge=!1,this.isOpera=!1,this.isQQBrowser=!1,this.isUCBrowser=!1,this.isQuark=!1,this.isMaxthon=!1,this.isTheWorld=!1,this.isBaiduBrowser=!1,this.isBaiduApp=!1,this.isChrome=!1,this.isSafari=!1,this.isIE=!1,this.isFirefox=!1;var $=x(L,O);$?(this[U[$.name]]=!0,this.version=new m($.version)):this.version=new m(""),Object.freeze(this.version)});function j(H,L,$){return Object.defineProperty(H,"prototype",{writable:!1}),H}var W,Q=j(function H(L,$){(function(G,se){if(!(G instanceof se))throw new TypeError("Cannot call a class as a function")})(this,H),this.os=Object.freeze(new g(L,$)),this.brand=Object.freeze(new C(L,this.os)),this.browser=Object.freeze(new D(L)),this.client=Object.freeze(new z(L)),this.isPortable=/mobile|android/i.test(L)||!/\b(Windows\sNT|Macintosh|Linux)\b/.test(L),(this.os.isIOS||this.os.isAndroid)&&(this.isPortable=!0)});e(63),e(178),e(179),e(51),e(52);function Z(H,L){var $,G,se=o({encode:encodeURIComponent},L),ne=[];function pe(Fe,Se){Se==null&&(Se=""),Se===""&&se.ignoreEmpty||(typeof se.encode=="function"&&(Fe=se.encode(Fe),Se=se.encode(String(Se))),ne.push(Fe+"="+Se))}function _e(Fe){pe($,Fe)}for($ in H)i(H,$)&&(G=H[$],Array.isArray(G)?G.forEach(_e):pe($,G));return ne.join("&")}function te(H,L,$){if(H==null||L==null)return H;var G=(H=String(H)).indexOf("#"),se="";return G!==-1&&(se=H.substring(G,H.length),H=H.substring(0,G)),(H=H.replace(/[?&]$/,""))+((L=typeof L!="string"?Z(L,$):L.replace(/^[?&]/,""))?(H.indexOf("?")!==-1?"&":"?")+L:"")+se}e(143),e(144),e(146),e(41),e(192),e(67),e(68),e(69),e(70),e(71);function P(H){return(P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L})(H)}function l(H,L){if(L&&(P(L)==="object"||typeof L=="function"))return L;if(L!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function($){if($===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $}(H)}function y(H){var L=typeof Map=="function"?new Map:void 0;return(y=function($){if($===null||(G=$,Function.toString.call(G).indexOf("[native code]")===-1))return $;var G;if(typeof $!="function")throw new TypeError("Super expression must either be null or a function");if(L!==void 0){if(L.has($))return L.get($);L.set($,se)}function se(){return w($,arguments,X(this).constructor)}return se.prototype=Object.create($.prototype,{constructor:{value:se,enumerable:!1,writable:!0,configurable:!0}}),N(se,$)})(H)}function w(H,L,$){return(w=T()?Reflect.construct:function(G,se,ne){var pe=[null];pe.push.apply(pe,se);var _e=new(Function.bind.apply(G,pe));return ne&&N(_e,ne.prototype),_e}).apply(null,arguments)}function T(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(H){return!1}}function N(H,L){return(N=Object.setPrototypeOf||function($,G){return $.__proto__=G,$})(H,L)}function X(H){return(X=Object.setPrototypeOf?Object.getPrototypeOf:function(L){return L.__proto__||Object.getPrototypeOf(L)})(H)}var V=function(H){(function(pe,_e){if(typeof _e!="function"&&_e!==null)throw new TypeError("Super expression must either be null or a function");pe.prototype=Object.create(_e&&_e.prototype,{constructor:{value:pe,writable:!0,configurable:!0}}),Object.defineProperty(pe,"prototype",{writable:!1}),_e&&N(pe,_e)})(ne,H);var L,$,G,se=(L=ne,$=T(),function(){var pe,_e=X(L);if($){var Fe=X(this).constructor;pe=Reflect.construct(_e,arguments,Fe)}else pe=_e.apply(this,arguments);return l(this,pe)});function ne(pe,_e,Fe){var Se;return function(Le,Pe){if(!(Le instanceof Pe))throw new TypeError("Cannot call a class as a function")}(this,ne),(Se=se.call(this,Fe)).isCancel=!1,Se.isTimeout=!1,Se.xhr=pe,Se.options=_e,Se.name="AJAXError",Se}return G=ne,Object.defineProperty(G,"prototype",{writable:!1}),G}(y(Error)),Y=/(?:^|;\s*)(?:application|text)\/([a-z]+)/i;e(196);function ie(H,L,$,G){return function(){var se,ne;switch(L.responseType||function(Fe){return Fe&&Y.test(Fe)?RegExp.$1.toLowerCase():""}(H.getResponseHeader("Content-Type"))){case"json":try{se=JSON.parse(H.responseText)}catch(Fe){ne="Invalid JSON structure"}break;case"xml":(se=H.responseXML)&&se.documentElement||(ne="Invalid XML format");break;case"blob":se=H.response;break;default:se=H.responseText}var pe,_e=H.status;(function(Fe){return!(Fe===void 0||Fe>=200&&Fe<300||Fe===1223||Fe===304)})(_e)?pe=new V(H,L,"Error (HTTP status code: "+_e+")"):ne&&(pe=new V(H,L,ne)),pe?(pe.code=_e,pe.data=se,G(Object.freeze(pe))):$(Object.freeze({xhr:H,options:L,data:se}))}}var ue=Object.create(null),Ee=0;function we(H,L,$,G){H.onload=ie(H,L,$,G),H.ontimeout=function(){G(Object.freeze(function(ne,pe,_e){var Fe=new V(ne,pe,"Request timeout");return Fe.isTimeout=!0,Fe}(H,L)))},H.onerror=function(){G(Object.freeze(new V(H,L,"Network error")))},L.onDownloadProgress&&H.addEventListener("progress",L.onDownloadProgress),L.onUploadProgress&&H.upload&&H.upload.addEventListener("progress",L.onUploadProgress),Ee===Number.MAX_SAFE_INTEGER&&(Ee=0);var se=++Ee;return ue[se]={xhr:H,options:L,resolve:$,reject:G},se}function ve(H){delete ue[H]}function Be(H,L,$,G,se){return H&&/MSIE\s+(\d+)/.test(navigator.userAgent)&&parseInt(RegExp.$1)<10&&window.XDomainRequest&&(L==="get"||L==="post")&&!$&&!se&&function(ne){if(ne!=null){if(Array.isArray(ne))return!ne.length;for(var pe in ne)if(i(ne,pe))return!1}return!0}(G)?new window.XDomainRequest:new window.XMLHttpRequest}function qe(H,L,$,G){var se,ne;if($!=null&&H!=="get")return G==="json"?(se=typeof $=="string"?$:JSON.stringify($),ne="application/json; charset=utf-8"):typeof(se=function(pe){return s.call(pe)==="[object Object]"}($)?Z($,{ignoreEmpty:!1}):$)=="string"&&(ne="application/x-www-form-urlencoded; charset=utf-8"),L["Content-Type"]=L["Content-Type"]||ne,se}function Re(H,L){var $=0;return new Promise(function(G,se){var ne=o({},L);ne.method=ne.method||"get",ne.requestType=ne.requestType||"",ne.responseType=ne.responseType||"json",ne.timeout=ne.timeout||0,ne.method=ne.method.toLowerCase(),ne.requestType=ne.requestType.toLowerCase(),ne.headers=ne.headers||{},Object.freeze(ne);var pe=function(Se){var Le=document.createElement("div");Le.innerHTML='<a href="'+Se+'"></a>';var Pe=Le.firstChild,Qe=Pe.host!==location.host;return Le=null,Pe=null,Qe}(H=function(Se,Le,Pe){return Le!=null&&(Se=te(Se,Le,{ignoreEmpty:!1})),Pe&&(Se=te(Se,{_:Date.now()})),Se}(H,ne.params,ne.preventCaching)),_e=Be(pe,ne.method,ne.requestType,ne.headers,ne.withCredentials);$=we(_e,ne,function(Se){ve($),G(Se)},function(Se){ve($),se(Se)}),ne.responseType!=="blob"&&ne.responseType!=="arraybuffer"||(_e.responseType=ne.responseType),_e.open(ne.method,H,!0,ne.username,ne.password);var Fe=qe(ne.method,ne.headers,ne.data,ne.requestType);(function(Se,Le,Pe,Qe){Le.timeout&&(Se.timeout=Le.timeout),Pe&&Le.withCredentials!=null&&(Se.withCredentials=!!Le.withCredentials),Pe||Qe["X-Request-With"]!=null||(Qe["X-Request-With"]="XMLHttpRequest"),Object.keys(Qe).forEach(function(et){Qe[et]!=null&&Se.setRequestHeader(et,String(Qe[et]))})})(_e,ne,pe,ne.headers),typeof ne.beforeSend=="function"&&ne.beforeSend.call(window,_e),_e.send(Fe||""),typeof ne.receiveCancelId=="function"&&ne.receiveCancelId($)})}var We=Object.prototype.hasOwnProperty;function J(H,L){return We.call(H,L)}function ce(H){if(H==null)throw new TypeError("Cannot convert undefined or null to object");for(var L=0;L<(arguments.length<=1?0:arguments.length-1);L++){var $=L+1<1||arguments.length<=L+1?void 0:arguments[L+1];if($!=null)for(var G in $)G!=="__proto__"&&J($,G)&&(H[G]=$[G])}return H}function le(H,L,$){if(H==null||L==null)return H;var G=(H=String(H)).indexOf("#"),se="";return G!==-1&&(se=H.substring(G,H.length),H=H.substring(0,G)),(H=H.replace(/[?&]$/,""))+((L=typeof L!="string"?function(ne,pe){var _e,Fe,Se=ce({encode:encodeURIComponent},pe),Le=[];function Pe(et,xt){xt==null&&(xt=""),xt===""&&Se.ignoreEmpty||(typeof Se.encode=="function"&&(et=Se.encode(et),xt=Se.encode(String(xt))),Le.push(et+"="+xt))}function Qe(et){Pe(_e,et)}for(_e in ne)J(ne,_e)&&(Fe=ne[_e],Array.isArray(Fe)?Fe.forEach(Qe):Pe(_e,Fe));return Le.join("&")}(L,$):L.replace(/^[?&]/,""))?(H.indexOf("?")!==-1?"&":"?")+L:"")+se}var me=e(90),ge=e.n(me),Ve=e(161),Oe=e.n(Ve),Te=e(162),Ae=e.n(Te),Ue=e(163),Ge=e.n(Ue);function Ke(H){for(var L="",$=H.length-1;$>=0;$--)L+=String.fromCharCode(H.charCodeAt($)+1);return L}var ee=Ke("WDuHi7BPemY6NeKJ"),oe=Ke("aB6IrQkkclR6dQSU"),he=Ke("qdmmh^`c^uxkno");function be(H){var L="";Object.keys(H).sort().forEach(function(G){L+="".concat(G).concat(H[G])});var $=he+L+he;return Ge()($).toString().toUpperCase()}var Ce,He=e(164);(function(H){H[H.NONE=0]="NONE",H[H.AES256=1]="AES256",H[H.SM2=2]="SM2"})(Ce||(Ce={}));var $e=function(){return($e=Object.assign||function(H){for(var L,$=1,G=arguments.length;$<G;$++)for(var se in L=arguments[$])Object.prototype.hasOwnProperty.call(L,se)&&(H[se]=L[se]);return H}).apply(this,arguments)};function Ye(H,L){var $,G,se="".concat((($=window.PLV_GLOBAL_URL_ORIGIN)===null||$===void 0?void 0:$.rtasOrigin)||"https://rtas.videocc.net","/da/track"),ne=se;if(L===Ce.AES256){var pe={eType:1,signatureMethod:"SHA256",signatureNonce:Math.random()};ne=le(se,$e($e({},pe),{sign:be($e({app_id:H.app_id,project_id:H.project_id,project_name:H.project_name,local_ts:H.local_ts},pe))})),G=function(Fe){var Se=JSON.stringify(Fe),Le=ge.a.parse(ee),Pe=ge.a.parse(Se);return Oe.a.encrypt(Pe,Le,{iv:ge.a.parse(oe),padding:Ae.a}).toString()}(H)}else L===Ce.SM2?(ne=le(se,{eType:2}),G=function(Fe){return"04"+He.sm2.doEncrypt(JSON.stringify(Fe),"045B8155E9747C283ACF842895D3048E6CA943CC454AFA6A9A452B5903CC30FCE278A6F88F602EDF803DAB40BD45E35F660676BF68FD7CCBE0F6AD32388136CD0D",0)}(H)):G=JSON.stringify(H);var _e=!1;if(typeof navigator.sendBeacon=="function"&&typeof Blob=="function")try{_e=navigator.sendBeacon(ne,G)}catch(Fe){}_e||Re(ne,{requestType:"json",responseType:"text",method:"post",data:G})}var Ze=function(){return(Ze=Object.assign||function(H){for(var L,$=1,G=arguments.length;$<G;$++)for(var se in L=arguments[$])Object.prototype.hasOwnProperty.call(L,se)&&(H[se]=L[se]);return H}).apply(this,arguments)},fe=function(){function H(L){this._commonData=Ze({},L.commonData),this._cookieDomain=L.cookieDomain;var $=L.enableAPIEncryption;this._enableAPIEncryption=typeof $=="boolean"?$?Ce.AES256:Ce.NONE:$}return H.prototype.getDeviceId=function(){var L=a("rtas_device_id");return L||f("rtas_device_id",L=p(),{domain:this._cookieDomain,path:"/",expires:"1 year"}),L},H.prototype.getSessionId=function(){var L=a("rtas_session_id");return L||f("rtas_session_id",L=p(),{domain:this._cookieDomain,path:"/"}),L},H.prototype._makeUpData=function(L,$){return Ze(Ze({},this._commonData),{app_id:"N/A",project_id:"N/A",device_uuid:this.getDeviceId(),session_uuid:this.getSessionId(),device_class:(W||(W=Object.freeze(typeof window!="undefined"?new Q(window.navigator.userAgent,window.navigator):new Q(""))),W).isPortable?"mobile":"desktop",local_ts:Math.round(Date.now()/1e3),data_type:L,data_param:[$]})},H.prototype.trackEvent=function(L){Ye(this._makeUpData("event",Ze(Ze({},L),{event_uuid:p(),occur_time:Math.round(Date.now()/1e3),url_path:window.location.href})),this._enableAPIEncryption)},H}()}]);class Fu extends gn{constructor(e){super(e);ye(this,"__rtasSender")}setup(e){return De(this,null,function*(){yield this.__init()})}__init(){return De(this,null,function*(){var h;const e=this._plvSocket.getUserInfo(),r=this._plvSocket.config;let i=e.userId,o=e.authType||"";(h=r.rtasConfig)!=null&&h.logonType&&(o=r.rtasConfig.logonType);let s=!1;this._plvSocket.config.securityMode===a0.AES?s=Zr.EncryptionType.AES256:this._plvSocket.config.securityMode===a0.SM2&&(s=Zr.EncryptionType.SM2);const c="2.8.0-rc-20260514.1";this.__rtasSender=new Zr.TrackLogSender({commonData:{project_name:"live",app_name:"polyv-socket",app_version:c,logon_id:i,nickname:e.nick,logon_type:o,weixin_open_id:e.wxOpenId,weixin_union_id:e.wxUnionId},enableAPIEncryption:s})})}trackEvent(e){return De(this,null,function*(){if(!this.__rtasSender||!this._plvSocket.config.watchEventTrackEnabled)return;const r=yield this._plvSocket.channel.getChannelInfo(),i={channelId:r.channelId,sessionId:r.sessionId,userId:r.accountId};this.__rtasSender.trackEvent({event_cata:"behavior",event_id:e.event_id,event_type:e.event_type,comm_attrs:i,spec_attrs:e.spec_attrs})})}}class Su{constructor(n){ye(this,"ConnectFailReason",n0);ye(this,"SocketUserType",At);ye(this,"PolyvSocketEvent",vt);ye(this,"eventEmitter",new Ya);ye(this,"config");ye(this,"chatApi");ye(this,"polyvApi");ye(this,"connect");ye(this,"channel");ye(this,"rtas");this.config=n,this.chatApi=new Oc(this),this.polyvApi=new Lf(this),this.connect=new Cu(this),this.channel=new Kf(this),this.rtas=new Fu(this)}setup(){return De(this,arguments,function*(n={}){yield Promise.all([this.rtas.setup(n),this.channel.setup(n),this.connect.setup(n)])})}emitSocket(n,e="message",r){return this.connect.emitSocket(n,e,r)}addSocketHandles(n,e,r="message"){this.connect.addSocketHandles(n,e,r)}clearSocketHandles(n){this.connect.clearSocketHandles(n)}getUserInfo(){return typeof this.config.userInfo=="function"?this.config.userInfo():this.config.userInfo}isSpecialUserType(n,e){return n===At.Dummy?!!e&&["主讲","讲师","嘉宾","助教","管理员"].includes(e):[At.Teacher,At.Manager,At.Guest,At.Assistant,At.Attendee,At.UserTagsMonitor].includes(n)}currentIsSpecialUser(){const n=this.getUserInfo();return this.isSpecialUserType(n.userType,n.actor)}isCurrentUser(n){return this.getUserInfo().userId===n}destroy(){return De(this,null,function*(){yield this.connect.disconnect()})}}const Du="PolyvSocket";exports.ConnectFailReason=n0;exports.GlobalVariable=Du;exports.PolyvSocket=Su;exports.PolyvSocketEvent=vt;exports.RequestAuthorizeMethod=b0;exports.SecurityMode=a0;exports.SocketUserType=At;exports.socketEventTypes=Ko;console.log("%c@polyv/socket","background:#67C23A;padding: 2px 6px;border-radius: 3px;color: #fff","[version: 2.8.0-rc-20260514.1]","[buildTime: 2026-05-14 01:42:09]");
package/index.es.js CHANGED
@@ -15700,7 +15700,7 @@ class Su extends mn {
15700
15700
  (h = r.rtasConfig) != null && h.logonType && (o = r.rtasConfig.logonType);
15701
15701
  let s = !1;
15702
15702
  this._plvSocket.config.securityMode === y0.AES ? s = Qr.EncryptionType.AES256 : this._plvSocket.config.securityMode === y0.SM2 && (s = Qr.EncryptionType.SM2);
15703
- const c = "2.6.0-rc-20260205.1";
15703
+ const c = "2.8.0-rc-20260514.1";
15704
15704
  this.__rtasSender = new Qr.TrackLogSender({
15705
15705
  commonData: {
15706
15706
  project_name: "live",
@@ -15848,8 +15848,8 @@ const Pu = "PolyvSocket";
15848
15848
  console.log(
15849
15849
  "%c@polyv/socket",
15850
15850
  "background:#67C23A;padding: 2px 6px;border-radius: 3px;color: #fff",
15851
- "[version: 2.6.0-rc-20260205.1]",
15852
- "[buildTime: 2026-02-05 05:52:52]"
15851
+ "[version: 2.8.0-rc-20260514.1]",
15852
+ "[buildTime: 2026-05-14 01:42:08]"
15853
15853
  );
15854
15854
  export {
15855
15855
  v0 as ConnectFailReason,
package/index.umd.js CHANGED
@@ -24,4 +24,4 @@
24
24
  `)&&o.flags==="s")})},function(t,n,e){var r=e(1),i=e(0).RegExp;t.exports=r(function(){var o=i("(?<a>b)","g");return o.exec("b").groups.a!=="b"||"b".replace(o,"$<a>c")!=="bc"})},function(t,n,e){var r=e(7),i=e(32),o=e(4)("match");t.exports=function(s){var c;return r(s)&&((c=s[o])!==void 0?!!c:i(s)=="RegExp")}},function(t,n,e){var r=e(1);t.exports=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(t,n,e){var r=e(32),i=e(24),o=e(33).f,s=e(81),c=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(l){return c&&r(l)=="Window"?function(a){try{return o(a)}catch(f){return s(c)}}(l):o(i(l))}},function(t,n,e){var r=e(13),i=e(0),o=e(2),s=e(60),c=e(76),l=e(18),a=e(10).f,f=e(33).f,p=e(22),x=e(133),u=e(19),b=e(98),m=e(99),E=e(17),A=e(1),g=e(9),v=e(23).enforce,d=e(82),_=e(4),B=e(131),C=e(132),S=_("match"),k=i.RegExp,F=k.prototype,D=i.SyntaxError,O=o(b),M=o(F.exec),U=o("".charAt),z=o("".replace),j=o("".indexOf),W=o("".slice),Q=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Z=/a/g,te=/a/g,P=new k(Z)!==Z,h=m.MISSED_STICKY,y=m.UNSUPPORTED_Y,w=r&&(!P||h||B||C||A(function(){return te[S]=!1,k(Z)!=Z||k(te)==te||k(Z,"i")!="/a/i"}));if(s("RegExp",w)){for(var T=function(Y,ie){var ue,Ee,we,ve,Be,qe,Ie=p(F,this),Ke=x(Y),J=ie===void 0,ce=[],le=Y;if(!Ie&&Ke&&J&&Y.constructor===T)return Y;if((Ke||p(F,Y))&&(Y=Y.source,J&&(ie="flags"in le?le.flags:O(le))),Y=Y===void 0?"":u(Y),ie=ie===void 0?"":u(ie),le=Y,B&&"dotAll"in Z&&(Ee=!!ie&&j(ie,"s")>-1)&&(ie=z(ie,/s/g,"")),ue=ie,h&&"sticky"in Z&&(we=!!ie&&j(ie,"y")>-1)&&y&&(ie=z(ie,/y/g,"")),C&&(Y=(ve=function(me){for(var ge,Xe=me.length,Oe=0,Te="",Ae=[],je={},Ze=!1,$e=!1,ee=0,oe="";Oe<=Xe;Oe++){if((ge=U(me,Oe))==="\\")ge+=U(me,++Oe);else if(ge==="]")Ze=!1;else if(!Ze)switch(!0){case ge==="[":Ze=!0;break;case ge==="(":M(Q,W(me,Oe+1))&&(Oe+=2,$e=!0),Te+=ge,ee++;continue;case(ge===">"&&$e):if(oe===""||g(je,oe))throw new D("Invalid capture group name");je[oe]=!0,Ae[Ae.length]=[oe,ee],$e=!1,oe="";continue}$e?oe+=ge:Te+=ge}return[Te,Ae]}(Y))[0],ce=ve[1]),Be=c(k(Y,ie),Ie?this:F,T),(Ee||we||ce.length)&&(qe=v(Be),Ee&&(qe.dotAll=!0,qe.raw=T(function(me){for(var ge,Xe=me.length,Oe=0,Te="",Ae=!1;Oe<=Xe;Oe++)(ge=U(me,Oe))!=="\\"?Ae||ge!=="."?(ge==="["?Ae=!0:ge==="]"&&(Ae=!1),Te+=ge):Te+="[\\s\\S]":Te+=ge+U(me,++Oe);return Te}(Y),ue)),we&&(qe.sticky=!0),ce.length&&(qe.groups=ce)),Y!==le)try{l(Be,"source",le===""?"(?:)":le)}catch(me){}return Be},N=function(Y){Y in T||a(T,Y,{configurable:!0,get:function(){return k[Y]},set:function(ie){k[Y]=ie}})},X=f(k),V=0;X.length>V;)N(X[V++]);F.constructor=T,T.prototype=F,E(i,"RegExp",T)}d("RegExp")},function(t,n){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,n,e){var r=e(73)("span").classList,i=r&&r.constructor&&r.constructor.prototype;t.exports=i===Object.prototype?void 0:i},function(t,n,e){var r=e(11),i=e(8),o=e(43);t.exports=function(s,c,l){var a,f;i(s);try{if(!(a=o(s,"return"))){if(c==="throw")throw l;return l}a=r(a,s)}catch(p){f=!0,a=p}if(c==="throw")throw l;if(f)throw a;return i(a),l}},function(t,n,e){var r,i,o,s,c=e(0),l=e(35),a=e(40),f=e(6),p=e(9),x=e(1),u=e(130),b=e(50),m=e(73),E=e(181),A=e(141),g=e(114),v=c.setImmediate,d=c.clearImmediate,_=c.process,B=c.Dispatch,C=c.Function,S=c.MessageChannel,k=c.String,F=0,D={};try{r=c.location}catch(j){}var O=function(j){if(p(D,j)){var W=D[j];delete D[j],W()}},M=function(j){return function(){O(j)}},U=function(j){O(j.data)},z=function(j){c.postMessage(k(j),r.protocol+"//"+r.host)};v&&d||(v=function(j){E(arguments.length,1);var W=f(j)?j:C(j),Q=b(arguments,1);return D[++F]=function(){l(W,void 0,Q)},i(F),F},d=function(j){delete D[j]},g?i=function(j){_.nextTick(M(j))}:B&&B.now?i=function(j){B.now(M(j))}:S&&!A?(s=(o=new S).port2,o.port1.onmessage=U,i=a(s.postMessage,s)):c.addEventListener&&f(c.postMessage)&&!c.importScripts&&r&&r.protocol!=="file:"&&!x(z)?(i=z,c.addEventListener("message",U,!1)):i="onreadystatechange"in m("script")?function(j){u.appendChild(m("script")).onreadystatechange=function(){u.removeChild(this),O(j)}}:function(j){setTimeout(M(j),0)}),t.exports={set:v,clear:d}},function(t,n,e){var r=e(37);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},function(t,n,e){var r=e(31),i=function(o){var s,c;this.promise=new o(function(l,a){if(s!==void 0||c!==void 0)throw TypeError("Bad Promise constructor");s=l,c=a}),this.resolve=r(s),this.reject=r(c)};t.exports.f=function(o){return new i(o)}},function(t,n,e){e(5)({target:"Object",stat:!0},{setPrototypeOf:e(38)})},function(t,n,e){var r=e(5),i=e(1),o=e(14),s=e(66),c=e(145);r({target:"Object",stat:!0,forced:i(function(){s(1)}),sham:!c},{getPrototypeOf:function(l){return s(o(l))}})},function(t,n,e){var r=e(1);t.exports=!r(function(){function i(){}return i.prototype.constructor=null,Object.getPrototypeOf(new i)!==i.prototype})},function(t,n,e){var r=e(5),i=e(26),o=e(35),s=e(190),c=e(105),l=e(8),a=e(7),f=e(34),p=e(1),x=i("Reflect","construct"),u=Object.prototype,b=[].push,m=p(function(){function g(){}return!(x(function(){},[],g)instanceof g)}),E=!p(function(){x(function(){})}),A=m||E;r({target:"Reflect",stat:!0,forced:A,sham:A},{construct:function(g,v){c(g),l(v);var d=arguments.length<3?g:c(arguments[2]);if(E&&!m)return x(g,v,d);if(g==d){switch(v.length){case 0:return new g;case 1:return new g(v[0]);case 2:return new g(v[0],v[1]);case 3:return new g(v[0],v[1],v[2]);case 4:return new g(v[0],v[1],v[2],v[3])}var _=[null];return o(b,_,v),new(o(s,g,_))}var B=d.prototype,C=f(a(B)?B:u),S=o(g,C,v);return a(S)?S:C}})},function(t,n,e){var r=e(4),i=e(34),o=e(10),s=r("unscopables"),c=Array.prototype;c[s]==null&&o.f(c,s,{configurable:!0,value:i(null)}),t.exports=function(l){c[s][l]=!0}},function(t,n,e){var r,i,o,s=e(1),c=e(6),l=e(34),a=e(66),f=e(17),p=e(4),x=e(42),u=p("iterator"),b=!1;[].keys&&("next"in(o=[].keys())?(i=a(a(o)))!==Object.prototype&&(r=i):b=!0),r==null||s(function(){var m={};return r[u].call(m)!==m})?r={}:x&&(r=l(r)),c(r[u])||f(r,u,function(){return this}),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:b}},function(t,n,e){var r=e(4);n.f=r},function(t,n,e){var r=e(195),i=e(9),o=e(149),s=e(10).f;t.exports=function(c){var l=r.Symbol||(r.Symbol={});i(l,c)||s(l,c,{value:o.f(c)})}},function(t,n,e){var r,i,o,s,c,l,a,f;t.exports=(f=e(25),e(200),e(201),i=(r=f).lib,o=i.Base,s=i.WordArray,c=r.algo,l=c.MD5,a=c.EvpKDF=o.extend({cfg:o.extend({keySize:4,hasher:l,iterations:1}),init:function(p){this.cfg=this.cfg.extend(p)},compute:function(p,x){for(var u,b=this.cfg,m=b.hasher.create(),E=s.create(),A=E.words,g=b.keySize,v=b.iterations;A.length<g;){u&&m.update(u),u=m.update(p).finalize(x),m.reset();for(var d=1;d<v;d++)u=m.finalize(u),m.reset();E.concat(u)}return E.sigBytes=4*g,E}}),r.EvpKDF=function(p,x,u){return a.create(u).compute(p,x)},f.EvpKDF)},function(t,n,e){var r,i,o,s,c,l,a,f,p,x,u,b,m,E,A,g,v,d,_;t.exports=(r=e(25),e(151),void(r.lib.Cipher||(i=r,o=i.lib,s=o.Base,c=o.WordArray,l=o.BufferedBlockAlgorithm,a=i.enc,a.Utf8,f=a.Base64,p=i.algo.EvpKDF,x=o.Cipher=l.extend({cfg:s.extend(),createEncryptor:function(B,C){return this.create(this._ENC_XFORM_MODE,B,C)},createDecryptor:function(B,C){return this.create(this._DEC_XFORM_MODE,B,C)},init:function(B,C,S){this.cfg=this.cfg.extend(S),this._xformMode=B,this._key=C,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function(B){return this._append(B),this._process()},finalize:function(B){return B&&this._append(B),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function B(C){return typeof C=="string"?_:v}return function(C){return{encrypt:function(S,k,F){return B(k).encrypt(C,S,k,F)},decrypt:function(S,k,F){return B(k).decrypt(C,S,k,F)}}}}()}),o.StreamCipher=x.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),u=i.mode={},b=o.BlockCipherMode=s.extend({createEncryptor:function(B,C){return this.Encryptor.create(B,C)},createDecryptor:function(B,C){return this.Decryptor.create(B,C)},init:function(B,C){this._cipher=B,this._iv=C}}),m=u.CBC=function(){var B=b.extend();function C(S,k,F){var D,O=this._iv;O?(D=O,this._iv=void 0):D=this._prevBlock;for(var M=0;M<F;M++)S[k+M]^=D[M]}return B.Encryptor=B.extend({processBlock:function(S,k){var F=this._cipher,D=F.blockSize;C.call(this,S,k,D),F.encryptBlock(S,k),this._prevBlock=S.slice(k,k+D)}}),B.Decryptor=B.extend({processBlock:function(S,k){var F=this._cipher,D=F.blockSize,O=S.slice(k,k+D);F.decryptBlock(S,k),C.call(this,S,k,D),this._prevBlock=O}}),B}(),E=(i.pad={}).Pkcs7={pad:function(B,C){for(var S=4*C,k=S-B.sigBytes%S,F=k<<24|k<<16|k<<8|k,D=[],O=0;O<k;O+=4)D.push(F);var M=c.create(D,k);B.concat(M)},unpad:function(B){var C=255&B.words[B.sigBytes-1>>>2];B.sigBytes-=C}},o.BlockCipher=x.extend({cfg:x.cfg.extend({mode:m,padding:E}),reset:function(){var B;x.reset.call(this);var C=this.cfg,S=C.iv,k=C.mode;this._xformMode==this._ENC_XFORM_MODE?B=k.createEncryptor:(B=k.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==B?this._mode.init(this,S&&S.words):(this._mode=B.call(k,this,S&&S.words),this._mode.__creator=B)},_doProcessBlock:function(B,C){this._mode.processBlock(B,C)},_doFinalize:function(){var B,C=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(C.pad(this._data,this.blockSize),B=this._process(!0)):(B=this._process(!0),C.unpad(B)),B},blockSize:4}),A=o.CipherParams=s.extend({init:function(B){this.mixIn(B)},toString:function(B){return(B||this.formatter).stringify(this)}}),g=(i.format={}).OpenSSL={stringify:function(B){var C=B.ciphertext,S=B.salt;return(S?c.create([1398893684,1701076831]).concat(S).concat(C):C).toString(f)},parse:function(B){var C,S=f.parse(B),k=S.words;return k[0]==1398893684&&k[1]==1701076831&&(C=c.create(k.slice(2,4)),k.splice(0,4),S.sigBytes-=16),A.create({ciphertext:S,salt:C})}},v=o.SerializableCipher=s.extend({cfg:s.extend({format:g}),encrypt:function(B,C,S,k){k=this.cfg.extend(k);var F=B.createEncryptor(S,k),D=F.finalize(C),O=F.cfg;return A.create({ciphertext:D,key:S,iv:O.iv,algorithm:B,mode:O.mode,padding:O.padding,blockSize:B.blockSize,formatter:k.format})},decrypt:function(B,C,S,k){return k=this.cfg.extend(k),C=this._parse(C,k.format),B.createDecryptor(S,k).finalize(C.ciphertext)},_parse:function(B,C){return typeof B=="string"?C.parse(B,this):B}}),d=(i.kdf={}).OpenSSL={execute:function(B,C,S,k){k||(k=c.random(8));var F=p.create({keySize:C+S}).compute(B,k),D=c.create(F.words.slice(C),4*S);return F.sigBytes=4*C,A.create({key:F,iv:D,salt:k})}},_=o.PasswordBasedCipher=v.extend({cfg:v.cfg.extend({kdf:d}),encrypt:function(B,C,S,k){var F=(k=this.cfg.extend(k)).kdf.execute(S,B.keySize,B.ivSize);k.iv=F.iv;var D=v.encrypt.call(this,B,C,F.key,k);return D.mixIn(F),D},decrypt:function(B,C,S,k){k=this.cfg.extend(k),C=this._parse(C,k.format);var F=k.kdf.execute(S,B.keySize,B.ivSize,C.salt);return k.iv=F.iv,v.decrypt.call(this,B,C,F.key,k)}}))))},function(t,n,e){function r(b){return function(m){if(Array.isArray(m))return i(m)}(b)||function(m){if(typeof Symbol!="undefined"&&m[Symbol.iterator]!=null||m["@@iterator"]!=null)return Array.from(m)}(b)||function(m,E){if(m){if(typeof m=="string")return i(m,E);var A=Object.prototype.toString.call(m).slice(8,-1);if(A==="Object"&&m.constructor&&(A=m.constructor.name),A==="Map"||A==="Set")return Array.from(m);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return i(m,E)}}(b)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
25
25
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function i(b,m){(m==null||m>b.length)&&(m=b.length);for(var E=0,A=new Array(m);E<m;E++)A[E]=b[E];return A}e(41),e(209),e(12),e(211),e(216),e(218),e(219),e(220),e(223),e(224),e(225),e(226),e(227),e(228),e(229),e(230),e(232),e(233),e(234),e(235),e(236),e(237),e(238),e(239),e(244),e(245),e(246),e(20),e(247),e(107),e(248),e(69),e(70),e(71),e(67),e(68),e(116),e(51),e(30),e(16);var o=new Uint32Array(68),s=new Uint32Array(64);function c(b,m){var E=31&m;return b<<E|b>>>32-E}function l(b,m){for(var E=[],A=b.length-1;A>=0;A--)E[A]=255&(b[A]^m[A]);return E}function a(b){return b^c(b,9)^c(b,17)}function f(b){var m=8*b.length,E=m%512;E=E>=448?512-E%448-1:448-E-1;for(var A=new Array((E-7)/8),g=new Array(8),v=0,d=A.length;v<d;v++)A[v]=0;for(var _=0,B=g.length;_<B;_++)g[_]=0;m=m.toString(2);for(var C=7;C>=0;C--)if(m.length>8){var S=m.length-8;g[C]=parseInt(m.substr(S),2),m=m.substr(0,S)}else m.length>0&&(g[C]=parseInt(m,2),m="");for(var k,F=new Uint8Array([].concat(r(b),[128],A,g)),D=new DataView(F.buffer,0),O=F.length/64,M=new Uint32Array([1937774191,1226093241,388252375,3666478592,2842636476,372324522,3817729613,2969243214]),U=0;U<O;U++){o.fill(0),s.fill(0);for(var z=16*U,j=0;j<16;j++)o[j]=D.getUint32(4*(z+j),!1);for(var W=16;W<68;W++)o[W]=(k=o[W-16]^o[W-9]^c(o[W-3],15))^c(k,15)^c(k,23)^c(o[W-13],7)^o[W-6];for(var Q=0;Q<64;Q++)s[Q]=o[Q]^o[Q+4];for(var Z=M[0],te=M[1],P=M[2],h=M[3],y=M[4],w=M[5],T=M[6],N=M[7],X=void 0,V=void 0,Y=void 0,ie=void 0,ue=0;ue<64;ue++)ie=ue>=0&&ue<=15?2043430169:2055708042,V=(ue>=0&&ue<=15?Z^te^P:Z&te|Z&P|te&P)+h+((X=c(c(Z,12)+y+c(ie,ue),7))^c(Z,12))+s[ue],Y=(ue>=0&&ue<=15?y^w^T:y&w|~y&T)+N+X+o[ue],h=P,P=c(te,9),te=Z,Z=V,N=T,T=c(w,19),w=y,y=a(Y);M[0]^=Z,M[1]^=te,M[2]^=P,M[3]^=h,M[4]^=y,M[5]^=w,M[6]^=T,M[7]^=N}for(var Ee=[],we=0,ve=M.length;we<ve;we++){var Be=M[we];Ee.push((4278190080&Be)>>>24,(16711680&Be)>>>16,(65280&Be)>>>8,255&Be)}return Ee}for(var p=new Uint8Array(64),x=new Uint8Array(64),u=0;u<64;u++)p[u]=54,x[u]=92;t.exports={sm3:f,hmac:function(b,m){for(m.length>64&&(m=f(m));m.length<64;)m.push(0);var E=l(m,p),A=l(m,x),g=f([].concat(r(E),r(b)));return f([].concat(r(A),r(g)))}}},function(t,n,e){var r=e(0),i=e(2),o=e(13),s=e(155),c=e(45),l=e(18),a=e(110),f=e(1),p=e(64),x=e(28),u=e(29),b=e(156),m=e(210),E=e(66),A=e(38),g=e(33).f,v=e(10).f,d=e(117),_=e(81),B=e(49),C=e(23),S=c.PROPER,k=c.CONFIGURABLE,F=C.get,D=C.set,O=r.ArrayBuffer,M=O,U=M&&M.prototype,z=r.DataView,j=z&&z.prototype,W=Object.prototype,Q=r.Array,Z=r.RangeError,te=i(d),P=i([].reverse),h=m.pack,y=m.unpack,w=function(J){return[255&J]},T=function(J){return[255&J,J>>8&255]},N=function(J){return[255&J,J>>8&255,J>>16&255,J>>24&255]},X=function(J){return J[3]<<24|J[2]<<16|J[1]<<8|J[0]},V=function(J){return h(J,23,4)},Y=function(J){return h(J,52,8)},ie=function(J,ce){v(J.prototype,ce,{get:function(){return F(this)[ce]}})},ue=function(J,ce,le,me){var ge=b(le),Xe=F(J);if(ge+ce>Xe.byteLength)throw Z("Wrong index");var Oe=F(Xe.buffer).bytes,Te=ge+Xe.byteOffset,Ae=_(Oe,Te,Te+ce);return me?Ae:P(Ae)},Ee=function(J,ce,le,me,ge,Xe){var Oe=b(le),Te=F(J);if(Oe+ce>Te.byteLength)throw Z("Wrong index");for(var Ae=F(Te.buffer).bytes,je=Oe+Te.byteOffset,Ze=me(+ge),$e=0;$e<ce;$e++)Ae[je+$e]=Ze[Xe?$e:ce-$e-1]};if(s){var we=S&&O.name!=="ArrayBuffer";if(f(function(){O(1)})&&f(function(){new O(-1)})&&!f(function(){return new O,new O(1.5),new O(NaN),we&&!k}))we&&k&&l(O,"name","ArrayBuffer");else{(M=function(J){return p(this,U),new O(b(J))}).prototype=U;for(var ve,Be=g(O),qe=0;Be.length>qe;)(ve=Be[qe++])in M||l(M,ve,O[ve]);U.constructor=M}A&&E(j)!==W&&A(j,W);var Ie=new z(new M(2)),Ke=i(j.setInt8);Ie.setInt8(0,2147483648),Ie.setInt8(1,2147483649),!Ie.getInt8(0)&&Ie.getInt8(1)||a(j,{setInt8:function(J,ce){Ke(this,J,ce<<24>>24)},setUint8:function(J,ce){Ke(this,J,ce<<24>>24)}},{unsafe:!0})}else U=(M=function(J){p(this,U);var ce=b(J);D(this,{bytes:te(Q(ce),0),byteLength:ce}),o||(this.byteLength=ce)}).prototype,j=(z=function(J,ce,le){p(this,j),p(J,U);var me=F(J).byteLength,ge=x(ce);if(ge<0||ge>me)throw Z("Wrong offset");if(ge+(le=le===void 0?me-ge:u(le))>me)throw Z("Wrong length");D(this,{buffer:J,byteLength:le,byteOffset:ge}),o||(this.buffer=J,this.byteLength=le,this.byteOffset=ge)}).prototype,o&&(ie(M,"byteLength"),ie(z,"buffer"),ie(z,"byteLength"),ie(z,"byteOffset")),a(j,{getInt8:function(J){return ue(this,1,J)[0]<<24>>24},getUint8:function(J){return ue(this,1,J)[0]},getInt16:function(J){var ce=ue(this,2,J,arguments.length>1?arguments[1]:void 0);return(ce[1]<<8|ce[0])<<16>>16},getUint16:function(J){var ce=ue(this,2,J,arguments.length>1?arguments[1]:void 0);return ce[1]<<8|ce[0]},getInt32:function(J){return X(ue(this,4,J,arguments.length>1?arguments[1]:void 0))},getUint32:function(J){return X(ue(this,4,J,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(J){return y(ue(this,4,J,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(J){return y(ue(this,8,J,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(J,ce){Ee(this,1,J,w,ce)},setUint8:function(J,ce){Ee(this,1,J,w,ce)},setInt16:function(J,ce){Ee(this,2,J,T,ce,arguments.length>2?arguments[2]:void 0)},setUint16:function(J,ce){Ee(this,2,J,T,ce,arguments.length>2?arguments[2]:void 0)},setInt32:function(J,ce){Ee(this,4,J,N,ce,arguments.length>2?arguments[2]:void 0)},setUint32:function(J,ce){Ee(this,4,J,N,ce,arguments.length>2?arguments[2]:void 0)},setFloat32:function(J,ce){Ee(this,4,J,V,ce,arguments.length>2?arguments[2]:void 0)},setFloat64:function(J,ce){Ee(this,8,J,Y,ce,arguments.length>2?arguments[2]:void 0)}});B(M,"ArrayBuffer"),B(z,"DataView"),t.exports={ArrayBuffer:M,DataView:z}},function(t,n){t.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},function(t,n,e){var r=e(0),i=e(28),o=e(29),s=r.RangeError;t.exports=function(c){if(c===void 0)return 0;var l=i(c),a=o(l);if(l!==a)throw s("Wrong length or index");return a}},function(t,n,e){var r=e(5),i=e(0),o=e(11),s=e(13),c=e(212),l=e(3),a=e(154),f=e(64),p=e(44),x=e(18),u=e(213),b=e(29),m=e(156),E=e(158),A=e(56),g=e(9),v=e(46),d=e(7),_=e(57),B=e(34),C=e(22),S=e(38),k=e(33).f,F=e(215),D=e(21).forEach,O=e(82),M=e(10),U=e(47),z=e(23),j=e(76),W=z.get,Q=z.set,Z=M.f,te=U.f,P=Math.round,h=i.RangeError,y=a.ArrayBuffer,w=y.prototype,T=a.DataView,N=l.NATIVE_ARRAY_BUFFER_VIEWS,X=l.TYPED_ARRAY_CONSTRUCTOR,V=l.TYPED_ARRAY_TAG,Y=l.TypedArray,ie=l.TypedArrayPrototype,ue=l.aTypedArrayConstructor,Ee=l.isTypedArray,we=function(J,ce){ue(J);for(var le=0,me=ce.length,ge=new J(me);me>le;)ge[le]=ce[le++];return ge},ve=function(J,ce){Z(J,ce,{get:function(){return W(this)[ce]}})},Be=function(J){var ce;return C(w,J)||(ce=v(J))=="ArrayBuffer"||ce=="SharedArrayBuffer"},qe=function(J,ce){return Ee(J)&&!_(ce)&&ce in J&&u(+ce)&&ce>=0},Ie=function(J,ce){return ce=A(ce),qe(J,ce)?p(2,J[ce]):te(J,ce)},Ke=function(J,ce,le){return ce=A(ce),!(qe(J,ce)&&d(le)&&g(le,"value"))||g(le,"get")||g(le,"set")||le.configurable||g(le,"writable")&&!le.writable||g(le,"enumerable")&&!le.enumerable?Z(J,ce,le):(J[ce]=le.value,J)};s?(N||(U.f=Ie,M.f=Ke,ve(ie,"buffer"),ve(ie,"byteOffset"),ve(ie,"byteLength"),ve(ie,"length")),r({target:"Object",stat:!0,forced:!N},{getOwnPropertyDescriptor:Ie,defineProperty:Ke}),t.exports=function(J,ce,le){var me=J.match(/\d+$/)[0]/8,ge=J+(le?"Clamped":"")+"Array",Xe="get"+J,Oe="set"+J,Te=i[ge],Ae=Te,je=Ae&&Ae.prototype,Ze={},$e=function(ee,oe){Z(ee,oe,{get:function(){return function(he,be){var Ce=W(he);return Ce.view[Xe](be*me+Ce.byteOffset,!0)}(this,oe)},set:function(he){return function(be,Ce,Ue){var Ve=W(be);le&&(Ue=(Ue=P(Ue))<0?0:Ue>255?255:255&Ue),Ve.view[Oe](Ce*me+Ve.byteOffset,Ue,!0)}(this,oe,he)},enumerable:!0})};N?c&&(Ae=ce(function(ee,oe,he,be){return f(ee,je),j(d(oe)?Be(oe)?be!==void 0?new Te(oe,E(he,me),be):he!==void 0?new Te(oe,E(he,me)):new Te(oe):Ee(oe)?we(Ae,oe):o(F,Ae,oe):new Te(m(oe)),ee,Ae)}),S&&S(Ae,Y),D(k(Te),function(ee){ee in Ae||x(Ae,ee,Te[ee])}),Ae.prototype=je):(Ae=ce(function(ee,oe,he,be){f(ee,je);var Ce,Ue,Ve,Qe=0,Je=0;if(d(oe)){if(!Be(oe))return Ee(oe)?we(Ae,oe):o(F,Ae,oe);Ce=oe,Je=E(he,me);var fe=oe.byteLength;if(be===void 0){if(fe%me||(Ue=fe-Je)<0)throw h("Wrong length")}else if((Ue=b(be)*me)+Je>fe)throw h("Wrong length");Ve=Ue/me}else Ve=m(oe),Ce=new y(Ue=Ve*me);for(Q(ee,{buffer:Ce,byteOffset:Je,byteLength:Ue,length:Ve,view:new T(Ce)});Qe<Ve;)$e(ee,Qe++)}),S&&S(Ae,Y),je=Ae.prototype=B(ie)),je.constructor!==Ae&&x(je,"constructor",Ae),x(je,X,Ae),V&&x(je,V,ge),Ze[ge]=Ae,r({global:!0,forced:Ae!=Te,sham:!N},Ze),"BYTES_PER_ELEMENT"in Ae||x(Ae,"BYTES_PER_ELEMENT",me),"BYTES_PER_ELEMENT"in je||x(je,"BYTES_PER_ELEMENT",me),O(ge)}):t.exports=function(){}},function(t,n,e){var r=e(0),i=e(214),o=r.RangeError;t.exports=function(s,c){var l=i(s);if(l%c)throw o("Wrong offset");return l}},function(t,n,e){var r=e(0),i=e(31),o=e(14),s=e(77),c=e(15),l=r.TypeError,a=function(f){return function(p,x,u,b){i(x);var m=o(p),E=s(m),A=c(m),g=f?A-1:0,v=f?-1:1;if(u<2)for(;;){if(g in E){b=E[g],g+=v;break}if(g+=v,f?g<0:A<=g)throw l("Reduce of empty array with no initial value")}for(;f?g>=0:A>g;g+=v)g in E&&(b=x(b,E[g],g,m));return b}};t.exports={left:a(!1),right:a(!0)}},function(t,n,e){var r=e(5),i=e(103).codeAt;r({target:"String",proto:!0},{codePointAt:function(o){return i(this,o)}})},function(t,n,e){var r;t.exports=(r=e(25),e(198),e(199),e(151),e(152),function(){var i=r,o=i.lib.BlockCipher,s=i.algo,c=[],l=[],a=[],f=[],p=[],x=[],u=[],b=[],m=[],E=[];(function(){for(var v=[],d=0;d<256;d++)v[d]=d<128?d<<1:d<<1^283;var _=0,B=0;for(d=0;d<256;d++){var C=B^B<<1^B<<2^B<<3^B<<4;C=C>>>8^255&C^99,c[_]=C,l[C]=_;var S=v[_],k=v[S],F=v[k],D=257*v[C]^16843008*C;a[_]=D<<24|D>>>8,f[_]=D<<16|D>>>16,p[_]=D<<8|D>>>24,x[_]=D,D=16843009*F^65537*k^257*S^16843008*_,u[C]=D<<24|D>>>8,b[C]=D<<16|D>>>16,m[C]=D<<8|D>>>24,E[C]=D,_?(_=S^v[v[v[F^S]]],B^=v[v[B]]):_=B=1}})();var A=[0,1,2,4,8,16,32,64,128,27,54],g=s.AES=o.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var v=this._keyPriorReset=this._key,d=v.words,_=v.sigBytes/4,B=4*((this._nRounds=_+6)+1),C=this._keySchedule=[],S=0;S<B;S++)S<_?C[S]=d[S]:(D=C[S-1],S%_?_>6&&S%_==4&&(D=c[D>>>24]<<24|c[D>>>16&255]<<16|c[D>>>8&255]<<8|c[255&D]):(D=c[(D=D<<8|D>>>24)>>>24]<<24|c[D>>>16&255]<<16|c[D>>>8&255]<<8|c[255&D],D^=A[S/_|0]<<24),C[S]=C[S-_]^D);for(var k=this._invKeySchedule=[],F=0;F<B;F++){if(S=B-F,F%4)var D=C[S];else D=C[S-4];k[F]=F<4||S<=4?D:u[c[D>>>24]]^b[c[D>>>16&255]]^m[c[D>>>8&255]]^E[c[255&D]]}}},encryptBlock:function(v,d){this._doCryptBlock(v,d,this._keySchedule,a,f,p,x,c)},decryptBlock:function(v,d){var _=v[d+1];v[d+1]=v[d+3],v[d+3]=_,this._doCryptBlock(v,d,this._invKeySchedule,u,b,m,E,l),_=v[d+1],v[d+1]=v[d+3],v[d+3]=_},_doCryptBlock:function(v,d,_,B,C,S,k,F){for(var D=this._nRounds,O=v[d]^_[0],M=v[d+1]^_[1],U=v[d+2]^_[2],z=v[d+3]^_[3],j=4,W=1;W<D;W++){var Q=B[O>>>24]^C[M>>>16&255]^S[U>>>8&255]^k[255&z]^_[j++],Z=B[M>>>24]^C[U>>>16&255]^S[z>>>8&255]^k[255&O]^_[j++],te=B[U>>>24]^C[z>>>16&255]^S[O>>>8&255]^k[255&M]^_[j++],P=B[z>>>24]^C[O>>>16&255]^S[M>>>8&255]^k[255&U]^_[j++];O=Q,M=Z,U=te,z=P}Q=(F[O>>>24]<<24|F[M>>>16&255]<<16|F[U>>>8&255]<<8|F[255&z])^_[j++],Z=(F[M>>>24]<<24|F[U>>>16&255]<<16|F[z>>>8&255]<<8|F[255&O])^_[j++],te=(F[U>>>24]<<24|F[z>>>16&255]<<16|F[O>>>8&255]<<8|F[255&M])^_[j++],P=(F[z>>>24]<<24|F[O>>>16&255]<<16|F[M>>>8&255]<<8|F[255&U])^_[j++],v[d]=Q,v[d+1]=Z,v[d+2]=te,v[d+3]=P},keySize:8});i.AES=o._createHelper(g)}(),r.AES)},function(t,n,e){var r;t.exports=(r=e(25),e(152),r.pad.Pkcs7)},function(t,n,e){var r;t.exports=(r=e(25),function(i){var o=r,s=o.lib,c=s.WordArray,l=s.Hasher,a=o.algo,f=[],p=[];(function(){function b(g){for(var v=i.sqrt(g),d=2;d<=v;d++)if(!(g%d))return!1;return!0}function m(g){return 4294967296*(g-(0|g))|0}for(var E=2,A=0;A<64;)b(E)&&(A<8&&(f[A]=m(i.pow(E,.5))),p[A]=m(i.pow(E,1/3)),A++),E++})();var x=[],u=a.SHA256=l.extend({_doReset:function(){this._hash=new c.init(f.slice(0))},_doProcessBlock:function(b,m){for(var E=this._hash.words,A=E[0],g=E[1],v=E[2],d=E[3],_=E[4],B=E[5],C=E[6],S=E[7],k=0;k<64;k++){if(k<16)x[k]=0|b[m+k];else{var F=x[k-15],D=(F<<25|F>>>7)^(F<<14|F>>>18)^F>>>3,O=x[k-2],M=(O<<15|O>>>17)^(O<<13|O>>>19)^O>>>10;x[k]=D+x[k-7]+M+x[k-16]}var U=A&g^A&v^g&v,z=(A<<30|A>>>2)^(A<<19|A>>>13)^(A<<10|A>>>22),j=S+((_<<26|_>>>6)^(_<<21|_>>>11)^(_<<7|_>>>25))+(_&B^~_&C)+p[k]+x[k];S=C,C=B,B=_,_=d+j|0,d=v,v=g,g=A,A=j+(z+U)|0}E[0]=E[0]+A|0,E[1]=E[1]+g|0,E[2]=E[2]+v|0,E[3]=E[3]+d|0,E[4]=E[4]+_|0,E[5]=E[5]+B|0,E[6]=E[6]+C|0,E[7]=E[7]+S|0},_doFinalize:function(){var b=this._data,m=b.words,E=8*this._nDataBytes,A=8*b.sigBytes;return m[A>>>5]|=128<<24-A%32,m[14+(A+64>>>9<<4)]=i.floor(E/4294967296),m[15+(A+64>>>9<<4)]=E,b.sigBytes=4*m.length,this._process(),this._hash},clone:function(){var b=l.clone.call(this);return b._hash=this._hash.clone(),b}});o.SHA256=l._createHelper(u),o.HmacSHA256=l._createHmacHelper(u)}(Math),r.SHA256)},function(t,n,e){t.exports={sm2:e(202),sm3:e(249),sm4:e(250)}},function(t,n,e){var r=e(0),i=e(11),o=e(6),s=e(7),c=r.TypeError;t.exports=function(l,a){var f,p;if(a==="string"&&o(f=l.toString)&&!s(p=i(f,l))||o(f=l.valueOf)&&!s(p=i(f,l))||a!=="string"&&o(f=l.toString)&&!s(p=i(f,l)))return p;throw c("Can't convert object to primitive value")}},function(t,n,e){var r=e(0),i=e(6),o=e(74),s=r.WeakMap;t.exports=i(s)&&/native code/.test(o(s))},function(t,n,e){var r=e(91),i=e(46);t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},function(t,n,e){var r=e(0),i=e(6),o=r.String,s=r.TypeError;t.exports=function(c){if(typeof c=="object"||i(c))return c;throw s("Can't set "+o(c)+" as a prototype")}},function(t,n,e){var r=e(2);t.exports=r(1 .valueOf)},function(t,n,e){var r=e(26),i=e(2),o=e(33),s=e(128),c=e(8),l=i([].concat);t.exports=r("Reflect","ownKeys")||function(a){var f=o.f(c(a)),p=s.f;return p?l(f,p(a)):f}},function(t,n,e){var r=e(2),i=e(14),o=Math.floor,s=r("".charAt),c=r("".replace),l=r("".slice),a=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,f=/\$([$&'`]|\d{1,2})/g;t.exports=function(p,x,u,b,m,E){var A=u+p.length,g=b.length,v=f;return m!==void 0&&(m=i(m),v=a),c(E,v,function(d,_){var B;switch(s(_,0)){case"$":return"$";case"&":return p;case"`":return l(x,0,u);case"'":return l(x,A);case"<":B=m[l(_,1,-1)];break;default:var C=+_;if(C===0)return d;if(C>g){var S=o(C/10);return S===0?d:S<=g?b[S-1]===void 0?s(_,1):b[S-1]+s(_,1):d}B=b[C-1]}return B===void 0?"":B})}},function(t,n,e){var r=e(5),i=e(125).trim;r({target:"String",proto:!0,forced:e(173)("trim")},{trim:function(){return i(this)}})},function(t,n,e){var r=e(45).PROPER,i=e(1),o=e(126);t.exports=function(s){return i(function(){return!!o[s]()||"​…᠎"[s]()!=="​…᠎"||r&&o[s].name!==s})}},function(t,n,e){var r=e(1),i=e(7),o=e(32),s=e(175),c=Object.isExtensible,l=r(function(){});t.exports=l||s?function(a){return!!i(a)&&(!s||o(a)!="ArrayBuffer")&&(!c||c(a))}:c},function(t,n,e){var r=e(1);t.exports=r(function(){if(typeof ArrayBuffer=="function"){var i=new ArrayBuffer(8);Object.isExtensible(i)&&Object.defineProperty(i,"a",{value:8})}})},function(t,n,e){var r=e(0),i=e(83),o=e(80),s=e(7),c=e(4)("species"),l=r.Array;t.exports=function(a){var f;return i(a)&&(f=a.constructor,(o(f)&&(f===l||i(f.prototype))||s(f)&&(f=f[c])===null)&&(f=void 0)),f===void 0?l:f}},function(t,n,e){var r=e(21).forEach,i=e(109)("forEach");t.exports=i?[].forEach:function(o){return r(this,o,arguments.length>1?arguments[1]:void 0)}},function(t,n,e){var r=e(5),i=e(14),o=e(100);r({target:"Object",stat:!0,forced:e(1)(function(){o(1)})},{keys:function(s){return o(i(s))}})},function(t,n,e){var r,i,o,s,c=e(5),l=e(42),a=e(0),f=e(26),p=e(11),x=e(180),u=e(17),b=e(110),m=e(38),E=e(49),A=e(82),g=e(31),v=e(6),d=e(7),_=e(64),B=e(74),C=e(111),S=e(86),k=e(79),F=e(140).set,D=e(182),O=e(185),M=e(186),U=e(142),z=e(187),j=e(188),W=e(23),Q=e(60),Z=e(4),te=e(189),P=e(114),h=e(55),y=Z("species"),w="Promise",T=W.getterFor(w),N=W.set,X=W.getterFor(w),V=x&&x.prototype,Y=x,ie=V,ue=a.TypeError,Ee=a.document,we=a.process,ve=U.f,Be=ve,qe=!!(Ee&&Ee.createEvent&&a.dispatchEvent),Ie=v(a.PromiseRejectionEvent),Ke=!1,J=Q(w,function(){var ee=B(Y),oe=ee!==String(Y);if(!oe&&h===66||l&&!ie.finally)return!0;if(h>=51&&/native code/.test(ee))return!1;var he=new Y(function(Ce){Ce(1)}),be=function(Ce){Ce(function(){},function(){})};return(he.constructor={})[y]=be,!(Ke=he.then(function(){})instanceof be)||!oe&&te&&!Ie}),ce=J||!S(function(ee){Y.all(ee).catch(function(){})}),le=function(ee){var oe;return!(!d(ee)||!v(oe=ee.then))&&oe},me=function(ee,oe){var he,be,Ce,Ue=oe.value,Ve=oe.state==1,Qe=Ve?ee.ok:ee.fail,Je=ee.resolve,fe=ee.reject,H=ee.domain;try{Qe?(Ve||(oe.rejection===2&&Ae(oe),oe.rejection=1),Qe===!0?he=Ue:(H&&H.enter(),he=Qe(Ue),H&&(H.exit(),Ce=!0)),he===ee.promise?fe(ue("Promise-chain cycle")):(be=le(he))?p(be,he,Je,fe):Je(he)):fe(Ue)}catch(L){H&&!Ce&&H.exit(),fe(L)}},ge=function(ee,oe){ee.notified||(ee.notified=!0,D(function(){for(var he,be=ee.reactions;he=be.get();)me(he,ee);ee.notified=!1,oe&&!ee.rejection&&Oe(ee)}))},Xe=function(ee,oe,he){var be,Ce;qe?((be=Ee.createEvent("Event")).promise=oe,be.reason=he,be.initEvent(ee,!1,!0),a.dispatchEvent(be)):be={promise:oe,reason:he},!Ie&&(Ce=a["on"+ee])?Ce(be):ee==="unhandledrejection"&&M("Unhandled promise rejection",he)},Oe=function(ee){p(F,a,function(){var oe,he=ee.facade,be=ee.value;if(Te(ee)&&(oe=z(function(){P?we.emit("unhandledRejection",be,he):Xe("unhandledrejection",he,be)}),ee.rejection=P||Te(ee)?2:1,oe.error))throw oe.value})},Te=function(ee){return ee.rejection!==1&&!ee.parent},Ae=function(ee){p(F,a,function(){var oe=ee.facade;P?we.emit("rejectionHandled",oe):Xe("rejectionhandled",oe,ee.value)})},je=function(ee,oe,he){return function(be){ee(oe,be,he)}},Ze=function(ee,oe,he){ee.done||(ee.done=!0,he&&(ee=he),ee.value=oe,ee.state=2,ge(ee,!0))},$e=function(ee,oe,he){if(!ee.done){ee.done=!0,he&&(ee=he);try{if(ee.facade===oe)throw ue("Promise can't be resolved itself");var be=le(oe);be?D(function(){var Ce={done:!1};try{p(be,oe,je($e,Ce,ee),je(Ze,Ce,ee))}catch(Ue){Ze(Ce,Ue,ee)}}):(ee.value=oe,ee.state=1,ge(ee,!1))}catch(Ce){Ze({done:!1},Ce,ee)}}};if(J&&(ie=(Y=function(ee){_(this,ie),g(ee),p(r,this);var oe=T(this);try{ee(je($e,oe),je(Ze,oe))}catch(he){Ze(oe,he)}}).prototype,(r=function(ee){N(this,{type:w,done:!1,notified:!1,parent:!1,reactions:new j,rejection:!1,state:0,value:void 0})}).prototype=b(ie,{then:function(ee,oe){var he=X(this),be=ve(k(this,Y));return he.parent=!0,be.ok=!v(ee)||ee,be.fail=v(oe)&&oe,be.domain=P?we.domain:void 0,he.state==0?he.reactions.add(be):D(function(){me(be,he)}),be.promise},catch:function(ee){return this.then(void 0,ee)}}),i=function(){var ee=new r,oe=T(ee);this.promise=ee,this.resolve=je($e,oe),this.reject=je(Ze,oe)},U.f=ve=function(ee){return ee===Y||ee===o?new i(ee):Be(ee)},!l&&v(x)&&V!==Object.prototype)){s=V.then,Ke||(u(V,"then",function(ee,oe){var he=this;return new Y(function(be,Ce){p(s,he,be,Ce)}).then(ee,oe)},{unsafe:!0}),u(V,"catch",ie.catch,{unsafe:!0}));try{delete V.constructor}catch(ee){}m&&m(V,ie)}c({global:!0,wrap:!0,forced:J},{Promise:Y}),E(Y,w,!1,!0),A(w),o=f(w),c({target:w,stat:!0,forced:J},{reject:function(ee){var oe=ve(this);return p(oe.reject,void 0,ee),oe.promise}}),c({target:w,stat:!0,forced:l||J},{resolve:function(ee){return O(l&&this===o?Y:this,ee)}}),c({target:w,stat:!0,forced:ce},{all:function(ee){var oe=this,he=ve(oe),be=he.resolve,Ce=he.reject,Ue=z(function(){var Ve=g(oe.resolve),Qe=[],Je=0,fe=1;C(ee,function(H){var L=Je++,$=!1;fe++,p(Ve,oe,H).then(function(G){$||($=!0,Qe[L]=G,--fe||be(Qe))},Ce)}),--fe||be(Qe)});return Ue.error&&Ce(Ue.value),he.promise},race:function(ee){var oe=this,he=ve(oe),be=he.reject,Ce=z(function(){var Ue=g(oe.resolve);C(ee,function(Ve){p(Ue,oe,Ve).then(he.resolve,be)})});return Ce.error&&be(Ce.value),he.promise}})},function(t,n,e){var r=e(0);t.exports=r.Promise},function(t,n,e){var r=e(0).TypeError;t.exports=function(i,o){if(i<o)throw r("Not enough arguments");return i}},function(t,n,e){var r,i,o,s,c,l,a,f,p=e(0),x=e(40),u=e(47).f,b=e(140).set,m=e(141),E=e(183),A=e(184),g=e(114),v=p.MutationObserver||p.WebKitMutationObserver,d=p.document,_=p.process,B=p.Promise,C=u(p,"queueMicrotask"),S=C&&C.value;S||(r=function(){var k,F;for(g&&(k=_.domain)&&k.exit();i;){F=i.fn,i=i.next;try{F()}catch(D){throw i?s():o=void 0,D}}o=void 0,k&&k.enter()},m||g||A||!v||!d?!E&&B&&B.resolve?((a=B.resolve(void 0)).constructor=B,f=x(a.then,a),s=function(){f(r)}):g?s=function(){_.nextTick(r)}:(b=x(b,p),s=function(){b(r)}):(c=!0,l=d.createTextNode(""),new v(r).observe(l,{characterData:!0}),s=function(){l.data=c=!c})),t.exports=S||function(k){var F={fn:k,next:void 0};o&&(o.next=F),i||(i=F,s()),o=F}},function(t,n,e){var r=e(37),i=e(0);t.exports=/ipad|iphone|ipod/i.test(r)&&i.Pebble!==void 0},function(t,n,e){var r=e(37);t.exports=/web0s(?!.*chrome)/i.test(r)},function(t,n,e){var r=e(8),i=e(7),o=e(142);t.exports=function(s,c){if(r(s),i(c)&&c.constructor===s)return c;var l=o.f(s);return(0,l.resolve)(c),l.promise}},function(t,n,e){var r=e(0);t.exports=function(i,o){var s=r.console;s&&s.error&&(arguments.length==1?s.error(i):s.error(i,o))}},function(t,n){t.exports=function(e){try{return{error:!1,value:e()}}catch(r){return{error:!0,value:r}}}},function(t,n){var e=function(){this.head=null,this.tail=null};e.prototype={add:function(r){var i={item:r,next:null};this.head?this.tail.next=i:this.head=i,this.tail=i},get:function(){var r=this.head;if(r)return this.head=r.next,this.tail===r&&(this.tail=null),r.item}},t.exports=e},function(t,n){t.exports=typeof window=="object"},function(t,n,e){var r=e(0),i=e(2),o=e(31),s=e(7),c=e(9),l=e(50),a=e(53),f=r.Function,p=i([].concat),x=i([].join),u={},b=function(m,E,A){if(!c(u,E)){for(var g=[],v=0;v<E;v++)g[v]="a["+v+"]";u[E]=f("C,a","return new C("+x(g,",")+")")}return u[E](m,A)};t.exports=a?f.bind:function(m){var E=o(this),A=E.prototype,g=l(arguments,1),v=function(){var d=p(g,l(arguments));return this instanceof v?b(E,d.length,d):E.apply(m,d)};return s(A)&&(v.prototype=A),v}},function(t,n,e){var r=e(148).IteratorPrototype,i=e(34),o=e(44),s=e(49),c=e(65),l=function(){return this};t.exports=function(a,f,p,x){var u=f+" Iterator";return a.prototype=i(r,{next:o(+!x,p)}),s(a,u,!1,!0),c[u]=l,a}},function(t,n,e){e(193)("Map",function(r){return function(){return r(this,arguments.length?arguments[0]:void 0)}},e(194))},function(t,n,e){var r=e(5),i=e(0),o=e(2),s=e(60),c=e(17),l=e(106),a=e(111),f=e(64),p=e(6),x=e(7),u=e(1),b=e(86),m=e(49),E=e(76);t.exports=function(A,g,v){var d=A.indexOf("Map")!==-1,_=A.indexOf("Weak")!==-1,B=d?"set":"add",C=i[A],S=C&&C.prototype,k=C,F={},D=function(W){var Q=o(S[W]);c(S,W,W=="add"?function(Z){return Q(this,Z===0?0:Z),this}:W=="delete"?function(Z){return!(_&&!x(Z))&&Q(this,Z===0?0:Z)}:W=="get"?function(Z){return _&&!x(Z)?void 0:Q(this,Z===0?0:Z)}:W=="has"?function(Z){return!(_&&!x(Z))&&Q(this,Z===0?0:Z)}:function(Z,te){return Q(this,Z===0?0:Z,te),this})};if(s(A,!p(C)||!(_||S.forEach&&!u(function(){new C().entries().next()}))))k=v.getConstructor(g,A,d,B),l.enable();else if(s(A,!0)){var O=new k,M=O[B](_?{}:-0,1)!=O,U=u(function(){O.has(1)}),z=b(function(W){new C(W)}),j=!_&&u(function(){for(var W=new C,Q=5;Q--;)W[B](Q,Q);return!W.has(-0)});z||((k=g(function(W,Q){f(W,S);var Z=E(new C,W,k);return Q!=null&&a(Q,Z[B],{that:Z,AS_ENTRIES:d}),Z})).prototype=S,S.constructor=k),(U||j)&&(D("delete"),D("has"),d&&D("get")),(j||M)&&D(B),_&&S.clear&&delete S.clear}return F[A]=k,r({global:!0,forced:k!=C},F),m(k,A),_||v.setStrong(k,A,d),k}},function(t,n,e){var r=e(10).f,i=e(34),o=e(110),s=e(40),c=e(64),l=e(111),a=e(115),f=e(82),p=e(13),x=e(106).fastKey,u=e(23),b=u.set,m=u.getterFor;t.exports={getConstructor:function(E,A,g,v){var d=E(function(k,F){c(k,_),b(k,{type:A,index:i(null),first:void 0,last:void 0,size:0}),p||(k.size=0),F!=null&&l(F,k[v],{that:k,AS_ENTRIES:g})}),_=d.prototype,B=m(A),C=function(k,F,D){var O,M,U=B(k),z=S(k,F);return z?z.value=D:(U.last=z={index:M=x(F,!0),key:F,value:D,previous:O=U.last,next:void 0,removed:!1},U.first||(U.first=z),O&&(O.next=z),p?U.size++:k.size++,M!=="F"&&(U.index[M]=z)),k},S=function(k,F){var D,O=B(k),M=x(F);if(M!=="F")return O.index[M];for(D=O.first;D;D=D.next)if(D.key==F)return D};return o(_,{clear:function(){for(var k=B(this),F=k.index,D=k.first;D;)D.removed=!0,D.previous&&(D.previous=D.previous.next=void 0),delete F[D.index],D=D.next;k.first=k.last=void 0,p?k.size=0:this.size=0},delete:function(k){var F=B(this),D=S(this,k);if(D){var O=D.next,M=D.previous;delete F.index[D.index],D.removed=!0,M&&(M.next=O),O&&(O.previous=M),F.first==D&&(F.first=O),F.last==D&&(F.last=M),p?F.size--:this.size--}return!!D},forEach:function(k){for(var F,D=B(this),O=s(k,arguments.length>1?arguments[1]:void 0);F=F?F.next:D.first;)for(O(F.value,F.key,this);F&&F.removed;)F=F.previous},has:function(k){return!!S(this,k)}}),o(_,g?{get:function(k){var F=S(this,k);return F&&F.value},set:function(k,F){return C(this,k===0?0:k,F)}}:{add:function(k){return C(this,k=k===0?0:k,k)}}),p&&r(_,"size",{get:function(){return B(this).size}}),d},setStrong:function(E,A,g){var v=A+" Iterator",d=m(A),_=m(v);a(E,A,function(B,C){b(this,{type:v,target:B,state:d(B),kind:C,last:void 0})},function(){for(var B=_(this),C=B.kind,S=B.last;S&&S.removed;)S=S.previous;return B.target&&(B.last=S=S?S.next:B.state.first)?C=="keys"?{value:S.key,done:!1}:C=="values"?{value:S.value,done:!1}:{value:[S.key,S.value],done:!1}:(B.target=void 0,{value:void 0,done:!0})},g?"entries":"values",!g,!0),f(A)}}},function(t,n,e){var r=e(0);t.exports=r},function(t,n,e){e(5)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(t,n){},function(t,n,e){var r,i,o;t.exports=(o=e(25),i=(r=o).lib.WordArray,r.enc.Base64={stringify:function(s){var c=s.words,l=s.sigBytes,a=this._map;s.clamp();for(var f=[],p=0;p<l;p+=3)for(var x=(c[p>>>2]>>>24-p%4*8&255)<<16|(c[p+1>>>2]>>>24-(p+1)%4*8&255)<<8|c[p+2>>>2]>>>24-(p+2)%4*8&255,u=0;u<4&&p+.75*u<l;u++)f.push(a.charAt(x>>>6*(3-u)&63));var b=a.charAt(64);if(b)for(;f.length%4;)f.push(b);return f.join("")},parse:function(s){var c=s.length,l=this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var f=0;f<l.length;f++)a[l.charCodeAt(f)]=f}var p=l.charAt(64);if(p){var x=s.indexOf(p);x!==-1&&(c=x)}return function(u,b,m){for(var E=[],A=0,g=0;g<b;g++)if(g%4){var v=m[u.charCodeAt(g-1)]<<g%4*2,d=m[u.charCodeAt(g)]>>>6-g%4*2,_=v|d;E[A>>>2]|=_<<24-A%4*8,A++}return i.create(E,A)}(s,c,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},o.enc.Base64)},function(t,n,e){var r;t.exports=(r=e(25),function(i){var o=r,s=o.lib,c=s.WordArray,l=s.Hasher,a=o.algo,f=[];(function(){for(var E=0;E<64;E++)f[E]=4294967296*i.abs(i.sin(E+1))|0})();var p=a.MD5=l.extend({_doReset:function(){this._hash=new c.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(E,A){for(var g=0;g<16;g++){var v=A+g,d=E[v];E[v]=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8)}var _=this._hash.words,B=E[A+0],C=E[A+1],S=E[A+2],k=E[A+3],F=E[A+4],D=E[A+5],O=E[A+6],M=E[A+7],U=E[A+8],z=E[A+9],j=E[A+10],W=E[A+11],Q=E[A+12],Z=E[A+13],te=E[A+14],P=E[A+15],h=_[0],y=_[1],w=_[2],T=_[3];h=x(h,y,w,T,B,7,f[0]),T=x(T,h,y,w,C,12,f[1]),w=x(w,T,h,y,S,17,f[2]),y=x(y,w,T,h,k,22,f[3]),h=x(h,y,w,T,F,7,f[4]),T=x(T,h,y,w,D,12,f[5]),w=x(w,T,h,y,O,17,f[6]),y=x(y,w,T,h,M,22,f[7]),h=x(h,y,w,T,U,7,f[8]),T=x(T,h,y,w,z,12,f[9]),w=x(w,T,h,y,j,17,f[10]),y=x(y,w,T,h,W,22,f[11]),h=x(h,y,w,T,Q,7,f[12]),T=x(T,h,y,w,Z,12,f[13]),w=x(w,T,h,y,te,17,f[14]),h=u(h,y=x(y,w,T,h,P,22,f[15]),w,T,C,5,f[16]),T=u(T,h,y,w,O,9,f[17]),w=u(w,T,h,y,W,14,f[18]),y=u(y,w,T,h,B,20,f[19]),h=u(h,y,w,T,D,5,f[20]),T=u(T,h,y,w,j,9,f[21]),w=u(w,T,h,y,P,14,f[22]),y=u(y,w,T,h,F,20,f[23]),h=u(h,y,w,T,z,5,f[24]),T=u(T,h,y,w,te,9,f[25]),w=u(w,T,h,y,k,14,f[26]),y=u(y,w,T,h,U,20,f[27]),h=u(h,y,w,T,Z,5,f[28]),T=u(T,h,y,w,S,9,f[29]),w=u(w,T,h,y,M,14,f[30]),h=b(h,y=u(y,w,T,h,Q,20,f[31]),w,T,D,4,f[32]),T=b(T,h,y,w,U,11,f[33]),w=b(w,T,h,y,W,16,f[34]),y=b(y,w,T,h,te,23,f[35]),h=b(h,y,w,T,C,4,f[36]),T=b(T,h,y,w,F,11,f[37]),w=b(w,T,h,y,M,16,f[38]),y=b(y,w,T,h,j,23,f[39]),h=b(h,y,w,T,Z,4,f[40]),T=b(T,h,y,w,B,11,f[41]),w=b(w,T,h,y,k,16,f[42]),y=b(y,w,T,h,O,23,f[43]),h=b(h,y,w,T,z,4,f[44]),T=b(T,h,y,w,Q,11,f[45]),w=b(w,T,h,y,P,16,f[46]),h=m(h,y=b(y,w,T,h,S,23,f[47]),w,T,B,6,f[48]),T=m(T,h,y,w,M,10,f[49]),w=m(w,T,h,y,te,15,f[50]),y=m(y,w,T,h,D,21,f[51]),h=m(h,y,w,T,Q,6,f[52]),T=m(T,h,y,w,k,10,f[53]),w=m(w,T,h,y,j,15,f[54]),y=m(y,w,T,h,C,21,f[55]),h=m(h,y,w,T,U,6,f[56]),T=m(T,h,y,w,P,10,f[57]),w=m(w,T,h,y,O,15,f[58]),y=m(y,w,T,h,Z,21,f[59]),h=m(h,y,w,T,F,6,f[60]),T=m(T,h,y,w,W,10,f[61]),w=m(w,T,h,y,S,15,f[62]),y=m(y,w,T,h,z,21,f[63]),_[0]=_[0]+h|0,_[1]=_[1]+y|0,_[2]=_[2]+w|0,_[3]=_[3]+T|0},_doFinalize:function(){var E=this._data,A=E.words,g=8*this._nDataBytes,v=8*E.sigBytes;A[v>>>5]|=128<<24-v%32;var d=i.floor(g/4294967296),_=g;A[15+(v+64>>>9<<4)]=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),A[14+(v+64>>>9<<4)]=16711935&(_<<8|_>>>24)|4278255360&(_<<24|_>>>8),E.sigBytes=4*(A.length+1),this._process();for(var B=this._hash,C=B.words,S=0;S<4;S++){var k=C[S];C[S]=16711935&(k<<8|k>>>24)|4278255360&(k<<24|k>>>8)}return B},clone:function(){var E=l.clone.call(this);return E._hash=this._hash.clone(),E}});function x(E,A,g,v,d,_,B){var C=E+(A&g|~A&v)+d+B;return(C<<_|C>>>32-_)+A}function u(E,A,g,v,d,_,B){var C=E+(A&v|g&~v)+d+B;return(C<<_|C>>>32-_)+A}function b(E,A,g,v,d,_,B){var C=E+(A^g^v)+d+B;return(C<<_|C>>>32-_)+A}function m(E,A,g,v,d,_,B){var C=E+(g^(A|~v))+d+B;return(C<<_|C>>>32-_)+A}o.MD5=l._createHelper(p),o.HmacMD5=l._createHmacHelper(p)}(Math),r.MD5)},function(t,n,e){var r,i,o,s,c,l,a,f;t.exports=(f=e(25),i=(r=f).lib,o=i.WordArray,s=i.Hasher,c=r.algo,l=[],a=c.SHA1=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(p,x){for(var u=this._hash.words,b=u[0],m=u[1],E=u[2],A=u[3],g=u[4],v=0;v<80;v++){if(v<16)l[v]=0|p[x+v];else{var d=l[v-3]^l[v-8]^l[v-14]^l[v-16];l[v]=d<<1|d>>>31}var _=(b<<5|b>>>27)+g+l[v];_+=v<20?1518500249+(m&E|~m&A):v<40?1859775393+(m^E^A):v<60?(m&E|m&A|E&A)-1894007588:(m^E^A)-899497514,g=A,A=E,E=m<<30|m>>>2,m=b,b=_}u[0]=u[0]+b|0,u[1]=u[1]+m|0,u[2]=u[2]+E|0,u[3]=u[3]+A|0,u[4]=u[4]+g|0},_doFinalize:function(){var p=this._data,x=p.words,u=8*this._nDataBytes,b=8*p.sigBytes;return x[b>>>5]|=128<<24-b%32,x[14+(b+64>>>9<<4)]=Math.floor(u/4294967296),x[15+(b+64>>>9<<4)]=u,p.sigBytes=4*x.length,this._process(),this._hash},clone:function(){var p=s.clone.call(this);return p._hash=this._hash.clone(),p}}),r.SHA1=s._createHelper(a),r.HmacSHA1=s._createHmacHelper(a),f.SHA1)},function(t,n,e){var r,i,o,s;t.exports=(r=e(25),o=(i=r).lib.Base,s=i.enc.Utf8,void(i.algo.HMAC=o.extend({init:function(c,l){c=this._hasher=new c.init,typeof l=="string"&&(l=s.parse(l));var a=c.blockSize,f=4*a;l.sigBytes>f&&(l=c.finalize(l)),l.clamp();for(var p=this._oKey=l.clone(),x=this._iKey=l.clone(),u=p.words,b=x.words,m=0;m<a;m++)u[m]^=1549556828,b[m]^=909522486;p.sigBytes=x.sigBytes=f,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var l=this._hasher,a=l.finalize(c);return l.reset(),l.finalize(this._oKey.clone().concat(a))}})))},function(t,n,e){function r(g){return function(v){if(Array.isArray(v))return i(v)}(g)||function(v){if(typeof Symbol!="undefined"&&v[Symbol.iterator]!=null||v["@@iterator"]!=null)return Array.from(v)}(g)||function(v,d){if(v){if(typeof v=="string")return i(v,d);var _=Object.prototype.toString.call(v).slice(8,-1);if(_==="Object"&&v.constructor&&(_=v.constructor.name),_==="Map"||_==="Set")return Array.from(v);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return i(v,d)}}(g)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
26
26
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function i(g,v){(v==null||v>g.length)&&(v=g.length);for(var d=0,_=new Array(v);d<v;d++)_[d]=g[d];return _}e(51),e(107),e(12),e(20),e(69),e(70),e(71),e(41),e(67),e(68),e(116),e(30),e(16);var o=e(87).BigInteger,s=e(205),c=s.encodeDer,l=s.decodeDer,a=e(207),f=e(153).sm3,p=a.generateEcparam(),x=p.G,u=p.curve,b=p.n;function m(g,v){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"1234567812345678";d=a.utf8ToHex(d);var _,B,C=a.leftPad(x.curve.a.toBigInteger().toRadix(16),64),S=a.leftPad(x.curve.b.toBigInteger().toRadix(16),64),k=a.leftPad(x.getX().toBigInteger().toRadix(16),64),F=a.leftPad(x.getY().toBigInteger().toRadix(16),64);if(v.length===128)_=v.substr(0,64),B=v.substr(64,64);else{var D=x.curve.decodePointHex(v);_=a.leftPad(D.getX().toBigInteger().toRadix(16),64),B=a.leftPad(D.getY().toBigInteger().toRadix(16),64)}var O=a.hexToArray(d+C+S+k+F+_+B),M=4*d.length;O.unshift(255&M),O.unshift(M>>8&255);var U=f(O);return a.arrayToHex(f(U.concat(a.hexToArray(g))))}function E(g){var v=x.multiply(new o(g,16));return"04"+a.leftPad(v.getX().toBigInteger().toString(16),64)+a.leftPad(v.getY().toBigInteger().toString(16),64)}function A(){var g=a.generateKeyPairHex(),v=u.decodePointHex(g.publicKey);return g.k=new o(g.privateKey,16),g.x1=v.getX().toBigInteger(),g}t.exports={generateKeyPairHex:a.generateKeyPairHex,compressPublicKeyHex:a.compressPublicKeyHex,comparePublicKeyHex:a.comparePublicKeyHex,doEncrypt:function(g,v){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;g=typeof g=="string"?a.hexToArray(a.utf8ToHex(g)):Array.prototype.slice.call(g),v=a.getGlobalCurve().decodePointHex(v);var _=a.generateKeyPairHex(),B=new o(_.privateKey,16),C=_.publicKey;C.length>128&&(C=C.substr(C.length-128));var S=v.multiply(B),k=a.hexToArray(a.leftPad(S.getX().toBigInteger().toRadix(16),64)),F=a.hexToArray(a.leftPad(S.getY().toBigInteger().toRadix(16),64)),D=a.arrayToHex(f([].concat(k,g,F))),O=1,M=0,U=[],z=[].concat(k,F),j=function(){U=f([].concat(r(z),[O>>24&255,O>>16&255,O>>8&255,255&O])),O++,M=0};j();for(var W=0,Q=g.length;W<Q;W++)M===U.length&&j(),g[W]^=255&U[M++];var Z=a.arrayToHex(g);return d===0?C+Z+D:C+D+Z},doDecrypt:function(g,v){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,_=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},B=_.output,C=B===void 0?"string":B;v=new o(v,16);var S=g.substr(128,64),k=g.substr(192);d===0&&(S=g.substr(g.length-64),k=g.substr(128,g.length-128-64));var F=a.hexToArray(k),D=a.getGlobalCurve().decodePointHex("04"+g.substr(0,128)),O=D.multiply(v),M=a.hexToArray(a.leftPad(O.getX().toBigInteger().toRadix(16),64)),U=a.hexToArray(a.leftPad(O.getY().toBigInteger().toRadix(16),64)),z=1,j=0,W=[],Q=[].concat(M,U),Z=function(){W=f([].concat(r(Q),[z>>24&255,z>>16&255,z>>8&255,255&z])),z++,j=0};Z();for(var te=0,P=F.length;te<P;te++)j===W.length&&Z(),F[te]^=255&W[j++];var h=a.arrayToHex(f([].concat(M,F,U)));return h===S.toLowerCase()?C==="array"?F:a.arrayToUtf8(F):C==="array"?[]:""},doSignature:function(g,v){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},_=d.pointPool,B=d.der,C=d.hash,S=d.publicKey,k=d.userId,F=typeof g=="string"?a.utf8ToHex(g):a.arrayToHex(g);C&&(F=m(F,S=S||E(v),k));var D=new o(v,16),O=new o(F,16),M=null,U=null,z=null;do{do{var j=void 0;M=(j=_&&_.length?_.pop():A()).k,U=O.add(j.x1).mod(b)}while(U.equals(o.ZERO)||U.add(M).equals(b));z=D.add(o.ONE).modInverse(b).multiply(M.subtract(U.multiply(D))).mod(b)}while(z.equals(o.ZERO));return B?c(U,z):a.leftPad(U.toString(16),64)+a.leftPad(z.toString(16),64)},doVerifySignature:function(g,v,d){var _,B,C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},S=C.der,k=C.hash,F=C.userId,D=typeof g=="string"?a.utf8ToHex(g):a.arrayToHex(g);if(k&&(D=m(D,d,F)),S){var O=l(v);_=O.r,B=O.s}else _=new o(v.substring(0,64),16),B=new o(v.substring(64),16);var M=u.decodePointHex(d),U=new o(D,16),z=_.add(B).mod(b);if(z.equals(o.ZERO))return!1;var j=x.multiply(B).add(M.multiply(z)),W=U.add(j.getX().toBigInteger()).mod(b);return _.equals(W)},getPublicKeyFromPrivateKey:E,getPoint:A,verifyPublicKey:a.verifyPublicKey}},function(t,n,e){var r=e(0),i=e(40),o=e(11),s=e(14),c=e(204),l=e(112),a=e(80),f=e(15),p=e(62),x=e(113),u=e(85),b=r.Array;t.exports=function(m){var E=s(m),A=a(this),g=arguments.length,v=g>1?arguments[1]:void 0,d=v!==void 0;d&&(v=i(v,g>2?arguments[2]:void 0));var _,B,C,S,k,F,D=u(E),O=0;if(!D||this==b&&l(D))for(_=f(E),B=A?new this(_):b(_);_>O;O++)F=d?v(E[O],O):E[O],p(B,O,F);else for(k=(S=x(E,D)).next,B=A?new this:[];!(C=o(k,S)).done;O++)F=d?c(S,v,[C.value,O],!0):C.value,p(B,O,F);return B.length=O,B}},function(t,n,e){var r=e(8),i=e(139);t.exports=function(o,s,c,l){try{return l?s(r(c)[0],c[1]):s(c)}catch(a){i(o,"throw",a)}}},function(t,n,e){function r(v){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d})(v)}function i(v,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(d&&d.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),Object.defineProperty(v,"prototype",{writable:!1}),d&&o(v,d)}function o(v,d){return(o=Object.setPrototypeOf||function(_,B){return _.__proto__=B,_})(v,d)}function s(v){var d=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(_){return!1}}();return function(){var _,B=l(v);if(d){var C=l(this).constructor;_=Reflect.construct(B,arguments,C)}else _=B.apply(this,arguments);return c(this,_)}}function c(v,d){if(d&&(r(d)==="object"||typeof d=="function"))return d;if(d!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}(v)}function l(v){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)})(v)}function a(v,d){if(!(v instanceof d))throw new TypeError("Cannot call a class as a function")}function f(v,d){for(var _=0;_<d.length;_++){var B=d[_];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(v,B.key,B)}}function p(v,d,_){return d&&f(v.prototype,d),Object.defineProperty(v,"prototype",{writable:!1}),v}e(12),e(20),e(16),e(206),e(48),e(52),e(88),e(143),e(144),e(146),e(69),e(70),e(71),e(41),e(67),e(68);var x=e(87).BigInteger,u=function(){function v(){a(this,v),this.tlv=null,this.t="00",this.l="00",this.v=""}return p(v,[{key:"getEncodedHex",value:function(){return this.tlv||(this.v=this.getValue(),this.l=this.getLength(),this.tlv=this.t+this.l+this.v),this.tlv}},{key:"getLength",value:function(){var d=this.v.length/2,_=d.toString(16);return _.length%2==1&&(_="0"+_),d<128?_:(128+_.length/2).toString(16)+_}},{key:"getValue",value:function(){return""}}]),v}(),b=function(v){i(_,v);var d=s(_);function _(B){var C;return a(this,_),(C=d.call(this)).t="02",B&&(C.v=function(S){var k=S.toString(16);if(k[0]!=="-")k.length%2==1?k="0"+k:k.match(/^[0-7]/)||(k="00"+k);else{var F=(k=k.substr(1)).length;F%2==1?F+=1:k.match(/^[0-7]/)||(F+=2);for(var D="",O=0;O<F;O++)D+="f";k=(k=(D=new x(D,16)).xor(S).add(x.ONE)).toString(16).replace(/^-/,"")}return k}(B)),C}return p(_,[{key:"getValue",value:function(){return this.v}}]),_}(u),m=function(v){i(_,v);var d=s(_);function _(B){var C;return a(this,_),(C=d.call(this)).t="30",C.asn1Array=B,C}return p(_,[{key:"getValue",value:function(){return this.v=this.asn1Array.map(function(B){return B.getEncodedHex()}).join(""),this.v}}]),_}(u);function E(v,d){return+v[d+2]<8?1:128&+v.substr(d+2,2)}function A(v,d){var _=E(v,d),B=v.substr(d+2,2*_);return B?(+B[0]<8?new x(B,16):new x(B.substr(2),16)).intValue():-1}function g(v,d){return d+2*(E(v,d)+1)}t.exports={encodeDer:function(v,d){var _=new b(v),B=new b(d);return new m([_,B]).getEncodedHex()},decodeDer:function(v){var d=g(v,0),_=g(v,d),B=A(v,d),C=v.substr(_,2*B),S=_+C.length,k=g(v,S),F=A(v,S),D=v.substr(k,2*F);return{r:new x(C,16),s:new x(D,16)}}}},function(t,n,e){var r=e(11),i=e(101),o=e(8),s=e(29),c=e(19),l=e(36),a=e(43),f=e(102),p=e(104);i("match",function(x,u,b){return[function(m){var E=l(this),A=m==null?void 0:a(m,x);return A?r(A,m,E):new RegExp(m)[x](c(E))},function(m){var E=o(this),A=c(m),g=b(u,E,A);if(g.done)return g.value;if(!E.global)return p(E,A);var v=E.unicode;E.lastIndex=0;for(var d,_=[],B=0;(d=p(E,A))!==null;){var C=c(d[0]);_[B]=C,C===""&&(E.lastIndex=f(A,s(E.lastIndex),v)),B++}return B===0?null:_}]})},function(t,n,e){e(12),e(20),e(52),e(88);var r=e(87),i=r.BigInteger,o=r.SecureRandom,s=e(208).ECCurveFp,c=new o,l=x(),a=l.curve,f=l.G,p=l.n;function x(){var b=new i("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF",16),m=new i("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC",16),E=new i("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93",16),A=new s(b,m,E),g=A.decodePointHex("0432C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0");return{curve:A,G:g,n:new i("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123",16)}}function u(b,m){return b.length>=m?b:new Array(m-b.length+1).join("0")+b}t.exports={getGlobalCurve:function(){return a},generateEcparam:x,generateKeyPairHex:function(b,m,E){var A=(b?new i(b,m,E):new i(p.bitLength(),c)).mod(p.subtract(i.ONE)).add(i.ONE),g=u(A.toString(16),64),v=f.multiply(A);return{privateKey:g,publicKey:"04"+u(v.getX().toBigInteger().toString(16),64)+u(v.getY().toBigInteger().toString(16),64)}},compressPublicKeyHex:function(b){if(b.length!==130)throw new Error("Invalid public key to compress");var m=(b.length-2)/2,E=b.substr(2,m),A="03";return new i(b.substr(m+2,m),16).mod(new i("2")).equals(i.ZERO)&&(A="02"),A+E},utf8ToHex:function(b){for(var m=(b=unescape(encodeURIComponent(b))).length,E=[],A=0;A<m;A++)E[A>>>2]|=(255&b.charCodeAt(A))<<24-A%4*8;for(var g=[],v=0;v<m;v++){var d=E[v>>>2]>>>24-v%4*8&255;g.push((d>>>4).toString(16)),g.push((15&d).toString(16))}return g.join("")},leftPad:u,arrayToHex:function(b){return b.map(function(m){return(m=m.toString(16)).length===1?"0"+m:m}).join("")},arrayToUtf8:function(b){for(var m=[],E=0,A=0;A<2*b.length;A+=2)m[A>>>3]|=parseInt(b[E],10)<<24-A%8*4,E++;try{for(var g=[],v=0;v<b.length;v++){var d=m[v>>>2]>>>24-v%4*8&255;g.push(String.fromCharCode(d))}return decodeURIComponent(escape(g.join("")))}catch(_){throw new Error("Malformed UTF-8 data")}},hexToArray:function(b){var m=[],E=b.length;E%2!=0&&(b=u(b,E+1)),E=b.length;for(var A=0;A<E;A+=2)m.push(parseInt(b.substr(A,2),16));return m},verifyPublicKey:function(b){var m=a.decodePointHex(b);if(!m)return!1;var E=m.getX();return m.getY().square().equals(E.multiply(E.square()).add(E.multiply(a.a)).add(a.b))},comparePublicKeyHex:function(b,m){var E=a.decodePointHex(b);if(!E)return!1;var A=a.decodePointHex(m);return!!A&&E.equals(A)}}},function(t,n,e){function r(x,u){if(!(x instanceof u))throw new TypeError("Cannot call a class as a function")}function i(x,u){for(var b=0;b<u.length;b++){var m=u[b];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(x,m.key,m)}}function o(x,u,b){return u&&i(x.prototype,u),Object.defineProperty(x,"prototype",{writable:!1}),x}var s=e(87).BigInteger,c=new s("2"),l=new s("3"),a=function(){function x(u,b){r(this,x),this.x=b,this.q=u}return o(x,[{key:"equals",value:function(u){return u===this||this.q.equals(u.q)&&this.x.equals(u.x)}},{key:"toBigInteger",value:function(){return this.x}},{key:"negate",value:function(){return new x(this.q,this.x.negate().mod(this.q))}},{key:"add",value:function(u){return new x(this.q,this.x.add(u.toBigInteger()).mod(this.q))}},{key:"subtract",value:function(u){return new x(this.q,this.x.subtract(u.toBigInteger()).mod(this.q))}},{key:"multiply",value:function(u){return new x(this.q,this.x.multiply(u.toBigInteger()).mod(this.q))}},{key:"divide",value:function(u){return new x(this.q,this.x.multiply(u.toBigInteger().modInverse(this.q)).mod(this.q))}},{key:"square",value:function(){return new x(this.q,this.x.square().mod(this.q))}}]),x}(),f=function(){function x(u,b,m,E){r(this,x),this.curve=u,this.x=b,this.y=m,this.z=E==null?s.ONE:E,this.zinv=null}return o(x,[{key:"getX",value:function(){return this.zinv===null&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))}},{key:"getY",value:function(){return this.zinv===null&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))}},{key:"equals",value:function(u){return u===this||(this.isInfinity()?u.isInfinity():u.isInfinity()?this.isInfinity():!!u.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(u.z)).mod(this.curve.q).equals(s.ZERO)&&u.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(u.z)).mod(this.curve.q).equals(s.ZERO))}},{key:"isInfinity",value:function(){return this.x===null&&this.y===null||this.z.equals(s.ZERO)&&!this.y.toBigInteger().equals(s.ZERO)}},{key:"negate",value:function(){return new x(this.curve,this.x,this.y.negate(),this.z)}},{key:"add",value:function(u){if(this.isInfinity())return u;if(u.isInfinity())return this;var b=this.x.toBigInteger(),m=this.y.toBigInteger(),E=this.z,A=u.x.toBigInteger(),g=u.y.toBigInteger(),v=u.z,d=this.curve.q,_=b.multiply(v).mod(d),B=A.multiply(E).mod(d),C=_.subtract(B),S=m.multiply(v).mod(d),k=g.multiply(E).mod(d),F=S.subtract(k);if(s.ZERO.equals(C))return s.ZERO.equals(F)?this.twice():this.curve.infinity;var D=_.add(B),O=E.multiply(v).mod(d),M=C.square().mod(d),U=C.multiply(M).mod(d),z=O.multiply(F.square()).subtract(D.multiply(M)).mod(d),j=C.multiply(z).mod(d),W=F.multiply(M.multiply(_).subtract(z)).subtract(S.multiply(U)).mod(d),Q=U.multiply(O).mod(d);return new x(this.curve,this.curve.fromBigInteger(j),this.curve.fromBigInteger(W),Q)}},{key:"twice",value:function(){if(this.isInfinity())return this;if(!this.y.toBigInteger().signum())return this.curve.infinity;var u=this.x.toBigInteger(),b=this.y.toBigInteger(),m=this.z,E=this.curve.q,A=this.curve.a.toBigInteger(),g=u.square().multiply(l).add(A.multiply(m.square())).mod(E),v=b.shiftLeft(1).multiply(m).mod(E),d=b.square().mod(E),_=d.multiply(u).multiply(m).mod(E),B=v.square().mod(E),C=g.square().subtract(_.shiftLeft(3)).mod(E),S=v.multiply(C).mod(E),k=g.multiply(_.shiftLeft(2).subtract(C)).subtract(B.shiftLeft(1).multiply(d)).mod(E),F=v.multiply(B).mod(E);return new x(this.curve,this.curve.fromBigInteger(S),this.curve.fromBigInteger(k),F)}},{key:"multiply",value:function(u){if(this.isInfinity())return this;if(!u.signum())return this.curve.infinity;for(var b=u.multiply(l),m=this.negate(),E=this,A=b.bitLength()-2;A>0;A--){E=E.twice();var g=b.testBit(A);g!==u.testBit(A)&&(E=E.add(g?this:m))}return E}}]),x}(),p=function(){function x(u,b,m){r(this,x),this.q=u,this.a=this.fromBigInteger(b),this.b=this.fromBigInteger(m),this.infinity=new f(this,null,null)}return o(x,[{key:"equals",value:function(u){return u===this||this.q.equals(u.q)&&this.a.equals(u.a)&&this.b.equals(u.b)}},{key:"fromBigInteger",value:function(u){return new a(this.q,u)}},{key:"decodePointHex",value:function(u){switch(parseInt(u.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:var b=this.fromBigInteger(new s(u.substr(2),16)),m=this.fromBigInteger(b.multiply(b.square()).add(b.multiply(this.a)).add(this.b).toBigInteger().modPow(this.q.divide(new s("4")).add(s.ONE),this.q));return m.toBigInteger().mod(c).equals(new s(u.substr(0,2),16).subtract(c))||(m=m.negate()),new f(this,b,m);case 4:case 6:case 7:var E=(u.length-2)/2,A=u.substr(2,E),g=u.substr(E+2,E);return new f(this,this.fromBigInteger(new s(A,16)),this.fromBigInteger(new s(g,16)));default:return null}}}]),x}();t.exports={ECPointFp:f,ECCurveFp:p}},function(t,n,e){var r=e(5),i=e(2),o=e(1),s=e(154),c=e(8),l=e(27),a=e(29),f=e(79),p=s.ArrayBuffer,x=s.DataView,u=x.prototype,b=i(p.prototype.slice),m=i(u.getUint8),E=i(u.setUint8);r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:o(function(){return!new p(2).slice(1,void 0).byteLength})},{slice:function(A,g){if(b&&g===void 0)return b(c(this),A);for(var v=c(this).byteLength,d=l(A,v),_=l(g===void 0?v:g,v),B=new(f(this,p))(a(_-d)),C=new x(this),S=new x(B),k=0;d<_;)E(S,k++,m(C,d++));return B}})},function(t,n,e){var r=e(0).Array,i=Math.abs,o=Math.pow,s=Math.floor,c=Math.log,l=Math.LN2;t.exports={pack:function(a,f,p){var x,u,b,m=r(p),E=8*p-f-1,A=(1<<E)-1,g=A>>1,v=f===23?o(2,-24)-o(2,-77):0,d=a<0||a===0&&1/a<0?1:0,_=0;for((a=i(a))!=a||a===1/0?(u=a!=a?1:0,x=A):(x=s(c(a)/l),a*(b=o(2,-x))<1&&(x--,b*=2),(a+=x+g>=1?v/b:v*o(2,1-g))*b>=2&&(x++,b/=2),x+g>=A?(u=0,x=A):x+g>=1?(u=(a*b-1)*o(2,f),x+=g):(u=a*o(2,g-1)*o(2,f),x=0));f>=8;)m[_++]=255&u,u/=256,f-=8;for(x=x<<f|u,E+=f;E>0;)m[_++]=255&x,x/=256,E-=8;return m[--_]|=128*d,m},unpack:function(a,f){var p,x=a.length,u=8*x-f-1,b=(1<<u)-1,m=b>>1,E=u-7,A=x-1,g=a[A--],v=127&g;for(g>>=7;E>0;)v=256*v+a[A--],E-=8;for(p=v&(1<<-E)-1,v>>=-E,E+=f;E>0;)p=256*p+a[A--],E-=8;if(v===0)v=1-m;else{if(v===b)return p?NaN:g?-1/0:1/0;p+=o(2,f),v-=m}return(g?-1:1)*p*o(2,v-f)}}},function(t,n,e){e(157)("Uint32",function(r){return function(i,o,s){return r(this,i,o,s)}})},function(t,n,e){var r=e(0),i=e(1),o=e(86),s=e(3).NATIVE_ARRAY_BUFFER_VIEWS,c=r.ArrayBuffer,l=r.Int8Array;t.exports=!s||!i(function(){l(1)})||!i(function(){new l(-1)})||!o(function(a){new l,new l(null),new l(1.5),new l(a)},!0)||i(function(){return new l(new c(2),1,void 0).length!==1})},function(t,n,e){var r=e(7),i=Math.floor;t.exports=Number.isInteger||function(o){return!r(o)&&isFinite(o)&&i(o)===o}},function(t,n,e){var r=e(0),i=e(28),o=r.RangeError;t.exports=function(s){var c=i(s);if(c<0)throw o("The argument can't be less than 0");return c}},function(t,n,e){var r=e(40),i=e(11),o=e(105),s=e(14),c=e(15),l=e(113),a=e(85),f=e(112),p=e(3).aTypedArrayConstructor;t.exports=function(x){var u,b,m,E,A,g,v=o(this),d=s(x),_=arguments.length,B=_>1?arguments[1]:void 0,C=B!==void 0,S=a(d);if(S&&!f(S))for(g=(A=l(d,S)).next,d=[];!(E=i(g,A)).done;)d.push(E.value);for(C&&_>2&&(B=r(B,arguments[2])),b=c(d),m=new(p(v))(b),u=0;b>u;u++)m[u]=C?B(d[u],u):d[u];return m}},function(t,n,e){var r=e(2),i=e(3),o=r(e(217)),s=i.aTypedArray;(0,i.exportTypedArrayMethod)("copyWithin",function(c,l){return o(s(this),c,l,arguments.length>2?arguments[2]:void 0)})},function(t,n,e){var r=e(14),i=e(27),o=e(15),s=Math.min;t.exports=[].copyWithin||function(c,l){var a=r(this),f=o(a),p=i(c,f),x=i(l,f),u=arguments.length>2?arguments[2]:void 0,b=s((u===void 0?f:i(u,f))-x,f-p),m=1;for(x<p&&p<x+b&&(m=-1,x+=b-1,p+=b-1);b-- >0;)x in a?a[p]=a[x]:delete a[p],p+=m,x+=m;return a}},function(t,n,e){var r=e(3),i=e(21).every,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("every",function(s){return i(o(this),s,arguments.length>1?arguments[1]:void 0)})},function(t,n,e){var r=e(3),i=e(11),o=e(117),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("fill",function(c){var l=arguments.length;return i(o,s(this),c,l>1?arguments[1]:void 0,l>2?arguments[2]:void 0)})},function(t,n,e){var r=e(3),i=e(21).filter,o=e(221),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("filter",function(c){var l=i(s(this),c,arguments.length>1?arguments[1]:void 0);return o(this,l)})},function(t,n,e){var r=e(222),i=e(89);t.exports=function(o,s){return r(i(o),s)}},function(t,n,e){var r=e(15);t.exports=function(i,o){for(var s=0,c=r(o),l=new i(c);c>s;)l[s]=o[s++];return l}},function(t,n,e){var r=e(3),i=e(21).find,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("find",function(s){return i(o(this),s,arguments.length>1?arguments[1]:void 0)})},function(t,n,e){var r=e(3),i=e(21).findIndex,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("findIndex",function(s){return i(o(this),s,arguments.length>1?arguments[1]:void 0)})},function(t,n,e){var r=e(3),i=e(21).forEach,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("forEach",function(s){i(o(this),s,arguments.length>1?arguments[1]:void 0)})},function(t,n,e){var r=e(3),i=e(96).includes,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("includes",function(s){return i(o(this),s,arguments.length>1?arguments[1]:void 0)})},function(t,n,e){var r=e(3),i=e(96).indexOf,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("indexOf",function(s){return i(o(this),s,arguments.length>1?arguments[1]:void 0)})},function(t,n,e){var r=e(0),i=e(1),o=e(2),s=e(3),c=e(41),l=e(4)("iterator"),a=r.Uint8Array,f=o(c.values),p=o(c.keys),x=o(c.entries),u=s.aTypedArray,b=s.exportTypedArrayMethod,m=a&&a.prototype,E=!i(function(){m[l].call([1])}),A=!!m&&m.values&&m[l]===m.values&&m.values.name==="values",g=function(){return f(u(this))};b("entries",function(){return x(u(this))},E),b("keys",function(){return p(u(this))},E),b("values",g,E||!A,{name:"values"}),b(l,g,E||!A,{name:"values"})},function(t,n,e){var r=e(3),i=e(2),o=r.aTypedArray,s=r.exportTypedArrayMethod,c=i([].join);s("join",function(l){return c(o(this),l)})},function(t,n,e){var r=e(3),i=e(35),o=e(231),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("lastIndexOf",function(c){var l=arguments.length;return i(o,s(this),l>1?[c,arguments[1]]:[c])})},function(t,n,e){var r=e(35),i=e(24),o=e(28),s=e(15),c=e(109),l=Math.min,a=[].lastIndexOf,f=!!a&&1/[1].lastIndexOf(1,-0)<0,p=c("lastIndexOf"),x=f||!p;t.exports=x?function(u){if(f)return r(a,this,arguments)||0;var b=i(this),m=s(b),E=m-1;for(arguments.length>1&&(E=l(E,o(arguments[1]))),E<0&&(E=m+E);E>=0;E--)if(E in b&&b[E]===u)return E||0;return-1}:a},function(t,n,e){var r=e(3),i=e(21).map,o=e(89),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("map",function(c){return i(s(this),c,arguments.length>1?arguments[1]:void 0,function(l,a){return new(o(l))(a)})})},function(t,n,e){var r=e(3),i=e(159).left,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduce",function(s){var c=arguments.length;return i(o(this),s,c,c>1?arguments[1]:void 0)})},function(t,n,e){var r=e(3),i=e(159).right,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduceRight",function(s){var c=arguments.length;return i(o(this),s,c,c>1?arguments[1]:void 0)})},function(t,n,e){var r=e(3),i=r.aTypedArray,o=r.exportTypedArrayMethod,s=Math.floor;o("reverse",function(){for(var c,l=i(this).length,a=s(l/2),f=0;f<a;)c=this[f],this[f++]=this[--l],this[l]=c;return this})},function(t,n,e){var r=e(0),i=e(11),o=e(3),s=e(15),c=e(158),l=e(14),a=e(1),f=r.RangeError,p=r.Int8Array,x=p&&p.prototype,u=x&&x.set,b=o.aTypedArray,m=o.exportTypedArrayMethod,E=!a(function(){var g=new Uint8ClampedArray(2);return i(u,g,{length:1,0:3},1),g[1]!==3}),A=E&&o.NATIVE_ARRAY_BUFFER_VIEWS&&a(function(){var g=new p(2);return g.set(1),g.set("2",1),g[0]!==0||g[1]!==2});m("set",function(g){b(this);var v=c(arguments.length>1?arguments[1]:void 0,1),d=l(g);if(E)return i(u,this,d,v);var _=this.length,B=s(d),C=0;if(B+v>_)throw f("Wrong length");for(;C<B;)this[v+C]=d[C++]},!E||A)},function(t,n,e){var r=e(3),i=e(89),o=e(1),s=e(50),c=r.aTypedArray;(0,r.exportTypedArrayMethod)("slice",function(l,a){for(var f=s(c(this),l,a),p=i(this),x=0,u=f.length,b=new p(u);u>x;)b[x]=f[x++];return b},o(function(){new Int8Array(1).slice()}))},function(t,n,e){var r=e(3),i=e(21).some,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("some",function(s){return i(o(this),s,arguments.length>1?arguments[1]:void 0)})},function(t,n,e){var r=e(0),i=e(2),o=e(1),s=e(31),c=e(240),l=e(3),a=e(241),f=e(242),p=e(55),x=e(243),u=r.Array,b=l.aTypedArray,m=l.exportTypedArrayMethod,E=r.Uint16Array,A=E&&i(E.prototype.sort),g=!(!A||o(function(){A(new E(2),null)})&&o(function(){A(new E(2),{})})),v=!!A&&!o(function(){if(p)return p<74;if(a)return a<67;if(f)return!0;if(x)return x<602;var d,_,B=new E(516),C=u(516);for(d=0;d<516;d++)_=d%4,B[d]=515-d,C[d]=d-2*_+3;for(A(B,function(S,k){return(S/4|0)-(k/4|0)}),d=0;d<516;d++)if(B[d]!==C[d])return!0});m("sort",function(d){return d!==void 0&&s(d),v?A(this,d):c(b(this),function(_){return function(B,C){return _!==void 0?+_(B,C)||0:C!=C?-1:B!=B?1:B===0&&C===0?1/B>0&&1/C<0?1:-1:B>C}}(d))},!v||g)},function(t,n,e){var r=e(81),i=Math.floor,o=function(l,a){var f=l.length,p=i(f/2);return f<8?s(l,a):c(l,o(r(l,0,p),a),o(r(l,p),a),a)},s=function(l,a){for(var f,p,x=l.length,u=1;u<x;){for(p=u,f=l[u];p&&a(l[p-1],f)>0;)l[p]=l[--p];p!==u++&&(l[p]=f)}return l},c=function(l,a,f,p){for(var x=a.length,u=f.length,b=0,m=0;b<x||m<u;)l[b+m]=b<x&&m<u?p(a[b],f[m])<=0?a[b++]:f[m++]:b<x?a[b++]:f[m++];return l};t.exports=o},function(t,n,e){var r=e(37).match(/firefox\/(\d+)/i);t.exports=!!r&&+r[1]},function(t,n,e){var r=e(37);t.exports=/MSIE|Trident/.test(r)},function(t,n,e){var r=e(37).match(/AppleWebKit\/(\d+)\./);t.exports=!!r&&+r[1]},function(t,n,e){var r=e(3),i=e(29),o=e(27),s=e(89),c=r.aTypedArray;(0,r.exportTypedArrayMethod)("subarray",function(l,a){var f=c(this),p=f.length,x=o(l,p);return new(s(f))(f.buffer,f.byteOffset+x*f.BYTES_PER_ELEMENT,i((a===void 0?p:o(a,p))-x))})},function(t,n,e){var r=e(0),i=e(35),o=e(3),s=e(1),c=e(50),l=r.Int8Array,a=o.aTypedArray,f=o.exportTypedArrayMethod,p=[].toLocaleString,x=!!l&&s(function(){p.call(new l(1))});f("toLocaleString",function(){return i(p,x?c(a(this)):a(this),c(arguments))},s(function(){return[1,2].toLocaleString()!=new l([1,2]).toLocaleString()})||!s(function(){l.prototype.toLocaleString.call([1,2])}))},function(t,n,e){var r=e(3).exportTypedArrayMethod,i=e(1),o=e(0),s=e(2),c=o.Uint8Array,l=c&&c.prototype||{},a=[].toString,f=s([].join);i(function(){a.call({})})&&(a=function(){return f(this)});var p=l.toString!=a;r("toString",a,p)},function(t,n,e){e(157)("Uint8",function(r){return function(i,o,s){return r(this,i,o,s)}})},function(t,n,e){var r=e(5),i=e(117),o=e(147);r({target:"Array",proto:!0},{fill:i}),o("fill")},function(t,n,e){e(52),e(88),e(12),e(20),e(160),e(51);var r=e(153),i=r.sm3,o=r.hmac;function s(l){return l.map(function(a){return(a=a.toString(16)).length===1?"0"+a:a}).join("")}function c(l){var a,f,p=[],x=l.length;x%2!=0&&(f=x+1,l=(a=l).length>=f?a:new Array(f-a.length+1).join("0")+a),x=l.length;for(var u=0;u<x;u+=2)p.push(parseInt(l.substr(u,2),16));return p}t.exports=function(l,a){if(l=typeof l=="string"?function(p){for(var x=[],u=0,b=p.length;u<b;u++){var m=p.codePointAt(u);if(m<=127)x.push(m);else if(m<=2047)x.push(192|m>>>6),x.push(128|63&m);else if(m<=55295||m>=57344&&m<=65535)x.push(224|m>>>12),x.push(128|m>>>6&63),x.push(128|63&m);else{if(!(m>=65536&&m<=1114111))throw x.push(m),new Error("input is not supported");u++,x.push(240|m>>>18&28),x.push(128|m>>>12&63),x.push(128|m>>>6&63),x.push(128|63&m)}}return x}(l):Array.prototype.slice.call(l),a){if((a.mode||"hmac")!=="hmac")throw new Error("invalid mode");var f=a.key;if(!f)throw new Error("invalid key");return f=typeof f=="string"?c(f):Array.prototype.slice.call(f),s(o(l,f))}return s(i(l))}},function(t,n,e){function r(g){return function(v){if(Array.isArray(v))return i(v)}(g)||function(v){if(typeof Symbol!="undefined"&&v[Symbol.iterator]!=null||v["@@iterator"]!=null)return Array.from(v)}(g)||function(v,d){if(v){if(typeof v=="string")return i(v,d);var _=Object.prototype.toString.call(v).slice(8,-1);if(_==="Object"&&v.constructor&&(_=v.constructor.name),_==="Map"||_==="Set")return Array.from(v);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return i(v,d)}}(g)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
27
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function i(g,v){(v==null||v>g.length)&&(v=g.length);for(var d=0,_=new Array(v);d<v;d++)_[d]=g[d];return _}e(52),e(88),e(12),e(20),e(160),e(251),e(51),e(252),e(69),e(70),e(71),e(41),e(67),e(68),e(116),e(30),e(16);var o=[214,144,233,254,204,225,61,183,22,182,20,194,40,251,44,5,43,103,154,118,42,190,4,195,170,68,19,38,73,134,6,153,156,66,80,244,145,239,152,122,51,84,11,67,237,207,172,98,228,179,28,169,201,8,232,149,128,223,148,250,117,143,63,166,71,7,167,252,243,115,23,186,131,89,60,25,230,133,79,168,104,107,129,178,113,100,218,139,248,235,15,75,112,86,157,53,30,36,14,94,99,88,209,162,37,34,124,59,1,33,120,135,212,0,70,87,159,211,39,82,76,54,2,231,160,196,200,158,234,191,138,210,64,199,56,181,163,247,242,206,249,97,21,161,224,174,93,164,155,52,26,85,173,147,50,48,245,140,177,227,29,246,226,46,130,102,202,96,192,41,35,171,13,83,78,111,213,219,55,69,222,253,142,47,3,255,106,114,109,108,91,81,141,27,175,146,187,221,188,127,17,217,92,65,31,16,90,216,10,193,49,136,165,205,123,189,45,116,208,18,184,229,180,176,137,105,151,74,12,150,119,126,101,185,241,9,197,110,198,132,24,240,125,236,58,220,77,32,121,238,95,62,215,203,57,72],s=[462357,472066609,943670861,1415275113,1886879365,2358483617,2830087869,3301692121,3773296373,4228057617,404694573,876298825,1347903077,1819507329,2291111581,2762715833,3234320085,3705924337,4177462797,337322537,808926789,1280531041,1752135293,2223739545,2695343797,3166948049,3638552301,4110090761,269950501,741554753,1213159005,1684763257];function c(g){for(var v=[],d=0,_=g.length;d<_;d+=2)v.push(parseInt(g.substr(d,2),16));return v}function l(g){return g.map(function(v){return(v=v.toString(16)).length===1?"0"+v:v}).join("")}function a(g){for(var v=[],d=0,_=g.length;d<_;d++){var B=g.codePointAt(d);if(B<=127)v.push(B);else if(B<=2047)v.push(192|B>>>6),v.push(128|63&B);else if(B<=55295||B>=57344&&B<=65535)v.push(224|B>>>12),v.push(128|B>>>6&63),v.push(128|63&B);else{if(!(B>=65536&&B<=1114111))throw v.push(B),new Error("input is not supported");d++,v.push(240|B>>>18&28),v.push(128|B>>>12&63),v.push(128|B>>>6&63),v.push(128|63&B)}}return v}function f(g){for(var v=[],d=0,_=g.length;d<_;d++)g[d]>=240&&g[d]<=247?(v.push(String.fromCodePoint(((7&g[d])<<18)+((63&g[d+1])<<12)+((63&g[d+2])<<6)+(63&g[d+3]))),d+=3):g[d]>=224&&g[d]<=239?(v.push(String.fromCodePoint(((15&g[d])<<12)+((63&g[d+1])<<6)+(63&g[d+2]))),d+=2):g[d]>=192&&g[d]<=223?(v.push(String.fromCodePoint(((31&g[d])<<6)+(63&g[d+1]))),d++):v.push(String.fromCodePoint(g[d]));return v.join("")}function p(g,v){var d=31&v;return g<<d|g>>>32-d}function x(g){return(255&o[g>>>24&255])<<24|(255&o[g>>>16&255])<<16|(255&o[g>>>8&255])<<8|255&o[255&g]}function u(g){return g^p(g,2)^p(g,10)^p(g,18)^p(g,24)}function b(g){return g^p(g,13)^p(g,23)}function m(g,v,d){for(var _=new Array(4),B=new Array(4),C=0;C<4;C++)B[0]=255&g[4*C],B[1]=255&g[4*C+1],B[2]=255&g[4*C+2],B[3]=255&g[4*C+3],_[C]=B[0]<<24|B[1]<<16|B[2]<<8|B[3];for(var S,k=0;k<32;k+=4)S=_[1]^_[2]^_[3]^d[k+0],_[0]^=u(x(S)),S=_[2]^_[3]^_[0]^d[k+1],_[1]^=u(x(S)),S=_[3]^_[0]^_[1]^d[k+2],_[2]^=u(x(S)),S=_[0]^_[1]^_[2]^d[k+3],_[3]^=u(x(S));for(var F=0;F<16;F+=4)v[F]=_[3-F/4]>>>24&255,v[F+1]=_[3-F/4]>>>16&255,v[F+2]=_[3-F/4]>>>8&255,v[F+3]=255&_[3-F/4]}function E(g,v,d){for(var _=new Array(4),B=new Array(4),C=0;C<4;C++)B[0]=255&g[0+4*C],B[1]=255&g[1+4*C],B[2]=255&g[2+4*C],B[3]=255&g[3+4*C],_[C]=B[0]<<24|B[1]<<16|B[2]<<8|B[3];_[0]^=2746333894,_[1]^=1453994832,_[2]^=1736282519,_[3]^=2993693404;for(var S,k=0;k<32;k+=4)S=_[1]^_[2]^_[3]^s[k+0],v[k+0]=_[0]^=b(x(S)),S=_[2]^_[3]^_[0]^s[k+1],v[k+1]=_[1]^=b(x(S)),S=_[3]^_[0]^_[1]^s[k+2],v[k+2]=_[2]^=b(x(S)),S=_[0]^_[1]^_[2]^s[k+3],v[k+3]=_[3]^=b(x(S));if(d===0)for(var F,D=0;D<16;D++)F=v[D],v[D]=v[31-D],v[31-D]=F}function A(g,v,d){var _=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},B=_.padding,C=B===void 0?"pkcs#7":B,S=_.mode,k=_.iv,F=k===void 0?[]:k,D=_.output,O=D===void 0?"string":D;if(S==="cbc"&&(typeof F=="string"&&(F=c(F)),F.length!==16))throw new Error("iv is invalid");if(typeof v=="string"&&(v=c(v)),v.length!==16)throw new Error("key is invalid");if(g=typeof g=="string"?d!==0?a(g):c(g):r(g),(C==="pkcs#5"||C==="pkcs#7")&&d!==0)for(var M=16-g.length%16,U=0;U<M;U++)g.push(M);var z=new Array(32);E(v,z,d);for(var j=[],W=F,Q=g.length,Z=0;Q>=16;){var te=g.slice(Z,Z+16),P=new Array(16);if(S==="cbc")for(var h=0;h<16;h++)d!==0&&(te[h]^=W[h]);m(te,P,z);for(var y=0;y<16;y++)S==="cbc"&&d===0&&(P[y]^=W[y]),j[Z+y]=P[y];S==="cbc"&&(W=d!==0?P:te),Q-=16,Z+=16}if((C==="pkcs#5"||C==="pkcs#7")&&d===0){for(var w=j.length,T=j[w-1],N=1;N<=T;N++)if(j[w-N]!==T)throw new Error("padding is invalid");j.splice(w-T,T)}return O!=="array"?d!==0?l(j):f(j):j}t.exports={encrypt:function(g,v,d){return A(g,v,1,d)},decrypt:function(g,v,d){return A(g,v,0,d)}}},function(t,n,e){var r=e(5),i=e(0),o=e(2),s=e(27),c=i.RangeError,l=String.fromCharCode,a=String.fromCodePoint,f=o([].join);r({target:"String",stat:!0,forced:!!a&&a.length!=1},{fromCodePoint:function(p){for(var x,u=[],b=arguments.length,m=0;b>m;){if(x=+arguments[m++],s(x,1114111)!==x)throw c(x+" is not a valid code point");u[m]=x<65536?l(x):l(55296+((x-=65536)>>10),x%1024+56320)}return f(u,"")}})},function(t,n,e){var r=e(5),i=e(0),o=e(27),s=e(28),c=e(15),l=e(14),a=e(108),f=e(62),p=e(84)("splice"),x=i.TypeError,u=Math.max,b=Math.min;r({target:"Array",proto:!0,forced:!p},{splice:function(m,E){var A,g,v,d,_,B,C=l(this),S=c(C),k=o(m,S),F=arguments.length;if(F===0?A=g=0:F===1?(A=0,g=S-k):(A=F-2,g=b(u(s(E),0),S-k)),S+A-g>9007199254740991)throw x("Maximum allowed length exceeded");for(v=a(C,g),d=0;d<g;d++)(_=k+d)in C&&f(v,d,C[_]);if(v.length=g,A<g){for(d=k;d<S-g;d++)B=d+A,(_=d+g)in C?C[B]=C[_]:delete C[B];for(d=S;d>S-g+A;d--)delete C[d-1]}else if(A>g)for(d=S-g;d>k;d--)B=d+A-1,(_=d+g-1)in C?C[B]=C[_]:delete C[B];for(d=0;d<A;d++)C[d+k]=arguments[d+2];return C.length=S-g+A,v}})},function(t,n,e){e.r(n),e.d(n,"TrackLogSender",function(){return fe}),e.d(n,"EncryptionType",function(){return Ce});var r=Object.prototype.hasOwnProperty;function i(H,L){return r.call(H,L)}function o(H){if(H==null)throw new TypeError("Cannot convert undefined or null to object");for(var L=0;L<(arguments.length<=1?0:arguments.length-1);L++){var $=L+1<1||arguments.length<=L+1?void 0:arguments[L+1];if($!=null)for(var G in $)G!=="__proto__"&&i($,G)&&(H[G]=$[G])}return H}e(12);var s=Object.prototype.toString;e(95),e(16),e(48),e(172),e(61),e(20);var c={SEC:1e3,MIN:6e4,HOUR:36e5,DAY:864e5,MONTH:2592e6,YEAR:31536e6};function l(H,L){return new Date((typeof H=="number"?H:H.getTime())+function($){if(typeof $=="number")return $;if(!isNaN(Number($)))return Number($);var G=parseFloat($);if(isNaN(G))throw new Error("Invalid timespan string");var se=$.split(G.toString())[1].trim().toUpperCase().replace(/S$/,"");if(i(c,se))return G*c[se];throw new Error('Invalid time unit "'+se+'"')}(L))}function a(H,L){var $=o({},L);$.encode=$.encode||encodeURIComponent,$.decode=$.decode||decodeURIComponent,H="; "+$.encode(H)+"=";var G="; "+document.cookie,se=G.indexOf(H);if(se===-1)return"";se+=H.length;var ne=G.indexOf(";",se);return ne===-1&&(ne=G.length),$.decode(G.substring(se,ne))}function f(H,L,$){var G=o({},$);G.encode=G.encode||encodeURIComponent;var se=G.encode(H)+"="+G.encode(L);G.expires!=null&&(se+="; expires="+(function(ne){return s.call(ne)==="[object Date]"}(G.expires)?G.expires:l(new Date,G.expires)).toUTCString()),G.path&&(se+="; path="+G.path),G.domain&&(se+="; domain="+G.domain),G.secure===!0&&(se+="; secure"),G.sameSite&&(se+="; samesite="+G.sameSite),document.cookie=se}(function(){if(typeof document=="undefined")return!1;var H="__just4__test__cookie__";document.cookie=H+"=1",document.cookie=H+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT",a(H)})();function p(){var H=Date.now();return typeof performance!="undefined"&&typeof performance.now=="function"&&(H+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(L){var $=(H+16*Math.random())%16|0;return H=Math.floor(H/16),(L==="x"?$:3&$|8).toString(16)})}e(39),e(30),e(136);function x(H,L){var $;return L.some(function(G){var se,ne=!1;return G.regExp?(ne=G.regExp.test(H))&&(se=RegExp.$1):G.keywords?ne=function(pe,_e){pe=pe.toLowerCase();var Fe=/[/\s;_-]/,Se=/[/\s;_-]/;return _e.some(function(We){var Pe=pe.indexOf(We.toLowerCase());if(Pe!==-1&&(Fe.test(pe[Pe-1])||Pe===0)&&(Se.test(pe[Pe+We.length])||Pe+We.length>=pe.length))return!0})}(H,G.keywords):G.modelRegExp&&(ne=function(pe,_e){return!!/;\s*([^;]*?)(?:\s+Build\/|\))/.test(pe)&&_e.test(RegExp.$1)}(H,G.modelRegExp)),ne&&($={name:G.name,version:se}),ne}),$}var u=[{name:"windows",regExp:/\bWindows\s?NT\s?(([\d.]+))\b/},{name:"ios",regExp:/\bOS(?:\s([\d_.]+))?\slike\sMac\sOS\sX\b/},{name:"macos",regExp:/\bMac\sOS\sX(?:\s([\d_.]+))?/},{name:"android",regExp:/\bAndroid;?(?:[-/\s]([\d.]+))?(?:\b|_)/},{name:"android",regExp:/\bAdr\s([\d.]+)(?:\b|_)/}];function b(H,L){for(var $=0;$<L.length;$++){var G=L[$];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(H,G.key,G)}}var m=function(){function H(G){(function(se,ne){if(!(se instanceof ne))throw new TypeError("Cannot call a class as a function")})(this,H),this._ver=(G||"").replace(/_/g,".").replace(/\.+$/,"")}var L,$;return L=H,($=[{key:"_compare",value:function(G,se){if(!this._ver||!G)return!1;var ne=Array.isArray(se)?se:[se],pe=function(_e,Fe){for(var Se=/(\.0+)+$/,We=String(_e).replace(Se,"").split("."),Pe=String(Fe).replace(Se,"").split("."),et=Math.min(We.length,Pe.length),it=0;it<et;it++){var lt=parseInt(We[it])-parseInt(Pe[it]);if(lt)return lt}return We.length-Pe.length}(this._ver,G);return ne.some(function(_e){return pe*_e>0||pe===0&&_e===0})}},{key:"gt",value:function(G){return this._compare(G,1)}},{key:"gte",value:function(G){return this._compare(G,[1,0])}},{key:"lt",value:function(G){return this._compare(G,-1)}},{key:"lte",value:function(G){return this._compare(G,[-1,0])}},{key:"eq",value:function(G){return this._compare(G,0)}},{key:"toString",value:function(){return this._ver}}])&&b(L.prototype,$),Object.defineProperty(L,"prototype",{writable:!1}),H}();function E(H,L,$){return Object.defineProperty(H,"prototype",{writable:!1}),H}var A={ios:"isIOS",android:"isAndroid",windows:"isWindows",macos:"isMacOS"},g=E(function H(L,$){var G,se;if(function(_e,Fe){if(!(_e instanceof Fe))throw new TypeError("Cannot call a class as a function")}(this,H),this.isIOS=!1,this.isAndroid=!1,this.isWindows=!1,this.isMacOS=!1,$==null?void 0:$.platform){var ne=function(_e){switch(_e){case"Android":return"android";case"iPad":case"iPhone":case"iPod":return"ios";case"MacIntel":return"macos";case"Win32":return"windows"}}($.platform);ne!==void 0&&(se={name:ne,version:""})}var pe=(G=x(L,u))!==null&&G!==void 0?G:se;pe?(se&&se.name!==pe.name&&(pe=se),pe.name==="macos"&&($!=null&&$.maxTouchPoints)&&(pe.name="ios",pe.version=""),this[A[pe.name]]=!0,this.version=Object.freeze(new m(pe.version))):this.version=Object.freeze(new m(""))}),v=[{name:"ipad",regExp:/iPad/},{name:"ipod",regExp:/iPod/},{name:"iphone",regExp:/iPhone/}],d=[{name:"huawei",regExp:/\b(?:huawei|honor)/i},{name:"vivo",keywords:["vivo"]},{name:"oppo",keywords:["oppo"]},{name:"mi",keywords:["redmi","hongmi","shark","Mi","MIX","POCO"]},{name:"mi",regExp:/\bxiaomi/i},{name:"samsung",keywords:["samsung","galaxy"]},{name:"oneplus",keywords:["oneplus","one"]},{name:"huawei",modelRegExp:/^Mate\s\d{2}/},{name:"huawei",modelRegExp:/^Nova\s\d$/},{name:"huawei",modelRegExp:/^[A-Z]{3}\d?-[AT][LN]\d[019][A-Za-z]*$/},{name:"huawei",modelRegExp:/^[A-Z]{3}\d?-W[0-3]9[A-Z]*$/},{name:"huawei",modelRegExp:/^[A-Z][A-Za-z]{2,3}-BD00$/},{name:"huawei",modelRegExp:/^[A-Z]{3}-(?:[LN]29|NX9)$/},{name:"huawei",modelRegExp:/^TYH\d+[A-Z]?$/},{name:"huawei",regExp:/\b(?:Liantong|UNICOMVSENS)VP\d{3}\b/},{name:"huawei",regExp:/\bCMDCSP\d{3}\b/},{name:"mi",modelRegExp:/^MI\s?(?:\d|CC|Note|MAX|PLAY|PAD)/i},{name:"mi",modelRegExp:/^(?:AWM|SKR|SKW|DLT)-/},{name:"mi",modelRegExp:/^M\d{4}[CKJ]\d+[A-Z]+$/},{name:"mi",modelRegExp:/^2\d{5}[0-9A-Z]{2}[A-Z]$/},{name:"mi",modelRegExp:/^2\d{6}[A-Z]$/},{name:"mi",modelRegExp:/^2\d{7}[A-Z]{2}$/},{name:"samsung",modelRegExp:/^S(?:M|[CGP]H)-[A-Za-z0-9]+$/},{name:"samsung",modelRegExp:/^SC-\d{2}[A-Z]$/},{name:"samsung",modelRegExp:/^SH[WV]-/},{name:"samsung",modelRegExp:/^GT[-_][A-Z][A-Z0-9]{3,}$/i},{name:"oppo",modelRegExp:/^(?:CPH|OPD)\d{4}$/},{name:"oneplus",modelRegExp:/^(?:KB|HD|IN|GM|NE|LE|MT)\d{4}$/}];function _(H,L,$){return Object.defineProperty(H,"prototype",{writable:!1}),H}var B={ipod:"isIPod",iphone:"isIPhone",ipad:"isIPad",huawei:"isHuawei",mi:"isMi",oppo:"isOppo",vivo:"isVivo",oneplus:"isOnePlus",samsung:"isSamsung"},C=_(function H(L,$){var G;if(function(ne,pe){if(!(ne instanceof pe))throw new TypeError("Cannot call a class as a function")}(this,H),this.isHuawei=!1,this.isMi=!1,this.isOppo=!1,this.isVivo=!1,this.isOnePlus=!1,this.isSamsung=!1,this.isIPod=!1,this.isIPhone=!1,this.isIPad=!1,this.isMac=!1,this.isApple=!1,$.isIOS?(G=v,this.isApple=!0):$.isMacOS?(this.isMac=!0,this.isApple=!0):$.isAndroid&&(G=d),G){var se=x(L,G);se?this[B[se.name]]=!0:$.isIOS&&(this.isIPad=!0)}}),S=[{name:"edge",regExp:/\bEdge\/([\d.]+)/},{name:"chrome",regExp:/\b(?:Chrome|CrMo|CriOS)\/([\d.]+)/},{name:"safari",regExp:/\b(?:Version\/([\d.]+).*\s?)?Safari\b/},{name:"ie",regExp:/\bMSIE\s(\d+)/i},{name:"ie",regExp:/\bTrident\/.*;\srv:(\d+)/},{name:"firefox",regExp:/\bFirefox\/([\d.]+)/},{name:"opera-presto",regExp:/\bOpera\/([\d.]+)/}];function k(H,L,$){return Object.defineProperty(H,"prototype",{writable:!1}),H}var F={chrome:"isChrome",safari:"isSafari",edge:"isEdge",ie:"isIE",firefox:"isFirefox","opera-presto":"isPrestoOpera"},D=k(function H(L){(function(G,se){if(!(G instanceof se))throw new TypeError("Cannot call a class as a function")})(this,H),this.isChrome=!1,this.isSafari=!1,this.isEdge=!1,this.isIE=!1,this.isFirefox=!1,this.isPrestoOpera=!1;var $=x(L,S);$?(this[F[$.name]]=!0,this.version=new m($.version)):this.version=new m(""),Object.freeze(this.version)}),O=(e(107),[{name:"wxwork",regExp:/\bwxwork\/([\d.]+)/},{name:"wx",regExp:/\bMicroMessenger\/([\d.]+)/},{name:"ding",regExp:/\bDingTalk\/([\d.]+)/},{name:"qq",regExp:/\bQQ\/([\d.]+)/},{name:"qq",regExp:/\bIPadQQ\b/},{name:"weibo",regExp:/(?:\b|_)Weibo(?:\b|_)/i},{name:"edge",regExp:/\bEdge?\/([\d.]+)/},{name:"opera-blink",regExp:/\bOPR\/([\d.]+)/},{name:"qqbrowser",regExp:/\bM?QQBrowser(?:\/([\d.]+))?/i},{name:"ucbrowser",regExp:/\b(?:UCBrowser|UCWEB)(?:-CMCC)?\/?\s?([\d.]+)/},{name:"ucbrowser",regExp:/\bUC\b/},{name:"quark",regExp:/\bQuark\/([\d.]+)/},{name:"maxthon",regExp:/\b(?:Maxthon|MxBrowser)(?:[/\s]([\d.]+))?/},{name:"theworld",regExp:/\bTheWorld(?:\s([\d.]+))?/i},{name:"baidubrowser",regExp:/\b(?:baidubrowser|bdbrowser_i18n|BIDUBrowser)(?:[/\s]([\d.]+))?/i},{name:"baidubrowser",regExp:/\bbaidubrowserpad\b/},{name:"baiduapp",regExp:/\bbaiduboxapp\b\/([\d.]+)?/i},{name:"baiduapp",regExp:/\bbaiduboxpad\b/i}]);function M(H,L,$){return Object.defineProperty(H,"prototype",{writable:!1}),H}O=O.concat(S);var U={wxwork:"isWxWork",wx:"isWx",ding:"isDing",qq:"isQQ",weibo:"isWeibo",edge:"isEdge","opera-blink":"isOpera","opera-presto":"isOpera",qqbrowser:"isQQBrowser",ucbrowser:"isUCBrowser",quark:"isQuark",maxthon:"isMaxthon",theworld:"isTheWorld",baidubrowser:"isBaiduBrowser",baiduapp:"isBaiduApp",chrome:"isChrome",safari:"isSafari",ie:"isIE",firefox:"isFirefox"},z=M(function H(L){(function(G,se){if(!(G instanceof se))throw new TypeError("Cannot call a class as a function")})(this,H),this.isWxWork=!1,this.isWx=!1,this.isDing=!1,this.isQQ=!1,this.isWeibo=!1,this.isEdge=!1,this.isOpera=!1,this.isQQBrowser=!1,this.isUCBrowser=!1,this.isQuark=!1,this.isMaxthon=!1,this.isTheWorld=!1,this.isBaiduBrowser=!1,this.isBaiduApp=!1,this.isChrome=!1,this.isSafari=!1,this.isIE=!1,this.isFirefox=!1;var $=x(L,O);$?(this[U[$.name]]=!0,this.version=new m($.version)):this.version=new m(""),Object.freeze(this.version)});function j(H,L,$){return Object.defineProperty(H,"prototype",{writable:!1}),H}var W,Q=j(function H(L,$){(function(G,se){if(!(G instanceof se))throw new TypeError("Cannot call a class as a function")})(this,H),this.os=Object.freeze(new g(L,$)),this.brand=Object.freeze(new C(L,this.os)),this.browser=Object.freeze(new D(L)),this.client=Object.freeze(new z(L)),this.isPortable=/mobile|android/i.test(L)||!/\b(Windows\sNT|Macintosh|Linux)\b/.test(L),(this.os.isIOS||this.os.isAndroid)&&(this.isPortable=!0)});e(63),e(178),e(179),e(51),e(52);function Z(H,L){var $,G,se=o({encode:encodeURIComponent},L),ne=[];function pe(Fe,Se){Se==null&&(Se=""),Se===""&&se.ignoreEmpty||(typeof se.encode=="function"&&(Fe=se.encode(Fe),Se=se.encode(String(Se))),ne.push(Fe+"="+Se))}function _e(Fe){pe($,Fe)}for($ in H)i(H,$)&&(G=H[$],Array.isArray(G)?G.forEach(_e):pe($,G));return ne.join("&")}function te(H,L,$){if(H==null||L==null)return H;var G=(H=String(H)).indexOf("#"),se="";return G!==-1&&(se=H.substring(G,H.length),H=H.substring(0,G)),(H=H.replace(/[?&]$/,""))+((L=typeof L!="string"?Z(L,$):L.replace(/^[?&]/,""))?(H.indexOf("?")!==-1?"&":"?")+L:"")+se}e(143),e(144),e(146),e(41),e(192),e(67),e(68),e(69),e(70),e(71);function P(H){return(P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L})(H)}function h(H,L){if(L&&(P(L)==="object"||typeof L=="function"))return L;if(L!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function($){if($===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $}(H)}function y(H){var L=typeof Map=="function"?new Map:void 0;return(y=function($){if($===null||(G=$,Function.toString.call(G).indexOf("[native code]")===-1))return $;var G;if(typeof $!="function")throw new TypeError("Super expression must either be null or a function");if(L!==void 0){if(L.has($))return L.get($);L.set($,se)}function se(){return w($,arguments,X(this).constructor)}return se.prototype=Object.create($.prototype,{constructor:{value:se,enumerable:!1,writable:!0,configurable:!0}}),N(se,$)})(H)}function w(H,L,$){return(w=T()?Reflect.construct:function(G,se,ne){var pe=[null];pe.push.apply(pe,se);var _e=new(Function.bind.apply(G,pe));return ne&&N(_e,ne.prototype),_e}).apply(null,arguments)}function T(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(H){return!1}}function N(H,L){return(N=Object.setPrototypeOf||function($,G){return $.__proto__=G,$})(H,L)}function X(H){return(X=Object.setPrototypeOf?Object.getPrototypeOf:function(L){return L.__proto__||Object.getPrototypeOf(L)})(H)}var V=function(H){(function(pe,_e){if(typeof _e!="function"&&_e!==null)throw new TypeError("Super expression must either be null or a function");pe.prototype=Object.create(_e&&_e.prototype,{constructor:{value:pe,writable:!0,configurable:!0}}),Object.defineProperty(pe,"prototype",{writable:!1}),_e&&N(pe,_e)})(ne,H);var L,$,G,se=(L=ne,$=T(),function(){var pe,_e=X(L);if($){var Fe=X(this).constructor;pe=Reflect.construct(_e,arguments,Fe)}else pe=_e.apply(this,arguments);return h(this,pe)});function ne(pe,_e,Fe){var Se;return function(We,Pe){if(!(We instanceof Pe))throw new TypeError("Cannot call a class as a function")}(this,ne),(Se=se.call(this,Fe)).isCancel=!1,Se.isTimeout=!1,Se.xhr=pe,Se.options=_e,Se.name="AJAXError",Se}return G=ne,Object.defineProperty(G,"prototype",{writable:!1}),G}(y(Error)),Y=/(?:^|;\s*)(?:application|text)\/([a-z]+)/i;e(196);function ie(H,L,$,G){return function(){var se,ne;switch(L.responseType||function(Fe){return Fe&&Y.test(Fe)?RegExp.$1.toLowerCase():""}(H.getResponseHeader("Content-Type"))){case"json":try{se=JSON.parse(H.responseText)}catch(Fe){ne="Invalid JSON structure"}break;case"xml":(se=H.responseXML)&&se.documentElement||(ne="Invalid XML format");break;case"blob":se=H.response;break;default:se=H.responseText}var pe,_e=H.status;(function(Fe){return!(Fe===void 0||Fe>=200&&Fe<300||Fe===1223||Fe===304)})(_e)?pe=new V(H,L,"Error (HTTP status code: "+_e+")"):ne&&(pe=new V(H,L,ne)),pe?(pe.code=_e,pe.data=se,G(Object.freeze(pe))):$(Object.freeze({xhr:H,options:L,data:se}))}}var ue=Object.create(null),Ee=0;function we(H,L,$,G){H.onload=ie(H,L,$,G),H.ontimeout=function(){G(Object.freeze(function(ne,pe,_e){var Fe=new V(ne,pe,"Request timeout");return Fe.isTimeout=!0,Fe}(H,L)))},H.onerror=function(){G(Object.freeze(new V(H,L,"Network error")))},L.onDownloadProgress&&H.addEventListener("progress",L.onDownloadProgress),L.onUploadProgress&&H.upload&&H.upload.addEventListener("progress",L.onUploadProgress),Ee===Number.MAX_SAFE_INTEGER&&(Ee=0);var se=++Ee;return ue[se]={xhr:H,options:L,resolve:$,reject:G},se}function ve(H){delete ue[H]}function Be(H,L,$,G,se){return H&&/MSIE\s+(\d+)/.test(navigator.userAgent)&&parseInt(RegExp.$1)<10&&window.XDomainRequest&&(L==="get"||L==="post")&&!$&&!se&&function(ne){if(ne!=null){if(Array.isArray(ne))return!ne.length;for(var pe in ne)if(i(ne,pe))return!1}return!0}(G)?new window.XDomainRequest:new window.XMLHttpRequest}function qe(H,L,$,G){var se,ne;if($!=null&&H!=="get")return G==="json"?(se=typeof $=="string"?$:JSON.stringify($),ne="application/json; charset=utf-8"):typeof(se=function(pe){return s.call(pe)==="[object Object]"}($)?Z($,{ignoreEmpty:!1}):$)=="string"&&(ne="application/x-www-form-urlencoded; charset=utf-8"),L["Content-Type"]=L["Content-Type"]||ne,se}function Ie(H,L){var $=0;return new Promise(function(G,se){var ne=o({},L);ne.method=ne.method||"get",ne.requestType=ne.requestType||"",ne.responseType=ne.responseType||"json",ne.timeout=ne.timeout||0,ne.method=ne.method.toLowerCase(),ne.requestType=ne.requestType.toLowerCase(),ne.headers=ne.headers||{},Object.freeze(ne);var pe=function(Se){var We=document.createElement("div");We.innerHTML='<a href="'+Se+'"></a>';var Pe=We.firstChild,et=Pe.host!==location.host;return We=null,Pe=null,et}(H=function(Se,We,Pe){return We!=null&&(Se=te(Se,We,{ignoreEmpty:!1})),Pe&&(Se=te(Se,{_:Date.now()})),Se}(H,ne.params,ne.preventCaching)),_e=Be(pe,ne.method,ne.requestType,ne.headers,ne.withCredentials);$=we(_e,ne,function(Se){ve($),G(Se)},function(Se){ve($),se(Se)}),ne.responseType!=="blob"&&ne.responseType!=="arraybuffer"||(_e.responseType=ne.responseType),_e.open(ne.method,H,!0,ne.username,ne.password);var Fe=qe(ne.method,ne.headers,ne.data,ne.requestType);(function(Se,We,Pe,et){We.timeout&&(Se.timeout=We.timeout),Pe&&We.withCredentials!=null&&(Se.withCredentials=!!We.withCredentials),Pe||et["X-Request-With"]!=null||(et["X-Request-With"]="XMLHttpRequest"),Object.keys(et).forEach(function(it){et[it]!=null&&Se.setRequestHeader(it,String(et[it]))})})(_e,ne,pe,ne.headers),typeof ne.beforeSend=="function"&&ne.beforeSend.call(window,_e),_e.send(Fe||""),typeof ne.receiveCancelId=="function"&&ne.receiveCancelId($)})}var Ke=Object.prototype.hasOwnProperty;function J(H,L){return Ke.call(H,L)}function ce(H){if(H==null)throw new TypeError("Cannot convert undefined or null to object");for(var L=0;L<(arguments.length<=1?0:arguments.length-1);L++){var $=L+1<1||arguments.length<=L+1?void 0:arguments[L+1];if($!=null)for(var G in $)G!=="__proto__"&&J($,G)&&(H[G]=$[G])}return H}function le(H,L,$){if(H==null||L==null)return H;var G=(H=String(H)).indexOf("#"),se="";return G!==-1&&(se=H.substring(G,H.length),H=H.substring(0,G)),(H=H.replace(/[?&]$/,""))+((L=typeof L!="string"?function(ne,pe){var _e,Fe,Se=ce({encode:encodeURIComponent},pe),We=[];function Pe(it,lt){lt==null&&(lt=""),lt===""&&Se.ignoreEmpty||(typeof Se.encode=="function"&&(it=Se.encode(it),lt=Se.encode(String(lt))),We.push(it+"="+lt))}function et(it){Pe(_e,it)}for(_e in ne)J(ne,_e)&&(Fe=ne[_e],Array.isArray(Fe)?Fe.forEach(et):Pe(_e,Fe));return We.join("&")}(L,$):L.replace(/^[?&]/,""))?(H.indexOf("?")!==-1?"&":"?")+L:"")+se}var me=e(90),ge=e.n(me),Xe=e(161),Oe=e.n(Xe),Te=e(162),Ae=e.n(Te),je=e(163),Ze=e.n(je);function $e(H){for(var L="",$=H.length-1;$>=0;$--)L+=String.fromCharCode(H.charCodeAt($)+1);return L}var ee=$e("WDuHi7BPemY6NeKJ"),oe=$e("aB6IrQkkclR6dQSU"),he=$e("qdmmh^`c^uxkno");function be(H){var L="";Object.keys(H).sort().forEach(function(G){L+="".concat(G).concat(H[G])});var $=he+L+he;return Ze()($).toString().toUpperCase()}var Ce,Ue=e(164);(function(H){H[H.NONE=0]="NONE",H[H.AES256=1]="AES256",H[H.SM2=2]="SM2"})(Ce||(Ce={}));var Ve=function(){return(Ve=Object.assign||function(H){for(var L,$=1,G=arguments.length;$<G;$++)for(var se in L=arguments[$])Object.prototype.hasOwnProperty.call(L,se)&&(H[se]=L[se]);return H}).apply(this,arguments)};function Qe(H,L){var $,G,se="".concat((($=window.PLV_GLOBAL_URL_ORIGIN)===null||$===void 0?void 0:$.rtasOrigin)||"https://rtas.videocc.net","/da/track"),ne=se;if(L===Ce.AES256){var pe={eType:1,signatureMethod:"SHA256",signatureNonce:Math.random()};ne=le(se,Ve(Ve({},pe),{sign:be(Ve({app_id:H.app_id,project_id:H.project_id,project_name:H.project_name,local_ts:H.local_ts},pe))})),G=function(Fe){var Se=JSON.stringify(Fe),We=ge.a.parse(ee),Pe=ge.a.parse(Se);return Oe.a.encrypt(Pe,We,{iv:ge.a.parse(oe),padding:Ae.a}).toString()}(H)}else L===Ce.SM2?(ne=le(se,{eType:2}),G=function(Fe){return"04"+Ue.sm2.doEncrypt(JSON.stringify(Fe),"045B8155E9747C283ACF842895D3048E6CA943CC454AFA6A9A452B5903CC30FCE278A6F88F602EDF803DAB40BD45E35F660676BF68FD7CCBE0F6AD32388136CD0D",0)}(H)):G=JSON.stringify(H);var _e=!1;if(typeof navigator.sendBeacon=="function"&&typeof Blob=="function")try{_e=navigator.sendBeacon(ne,G)}catch(Fe){}_e||Ie(ne,{requestType:"json",responseType:"text",method:"post",data:G})}var Je=function(){return(Je=Object.assign||function(H){for(var L,$=1,G=arguments.length;$<G;$++)for(var se in L=arguments[$])Object.prototype.hasOwnProperty.call(L,se)&&(H[se]=L[se]);return H}).apply(this,arguments)},fe=function(){function H(L){this._commonData=Je({},L.commonData),this._cookieDomain=L.cookieDomain;var $=L.enableAPIEncryption;this._enableAPIEncryption=typeof $=="boolean"?$?Ce.AES256:Ce.NONE:$}return H.prototype.getDeviceId=function(){var L=a("rtas_device_id");return L||f("rtas_device_id",L=p(),{domain:this._cookieDomain,path:"/",expires:"1 year"}),L},H.prototype.getSessionId=function(){var L=a("rtas_session_id");return L||f("rtas_session_id",L=p(),{domain:this._cookieDomain,path:"/"}),L},H.prototype._makeUpData=function(L,$){return Je(Je({},this._commonData),{app_id:"N/A",project_id:"N/A",device_uuid:this.getDeviceId(),session_uuid:this.getSessionId(),device_class:(W||(W=Object.freeze(typeof window!="undefined"?new Q(window.navigator.userAgent,window.navigator):new Q(""))),W).isPortable?"mobile":"desktop",local_ts:Math.round(Date.now()/1e3),data_type:L,data_param:[$]})},H.prototype.trackEvent=function(L){Qe(this._makeUpData("event",Je(Je({},L),{event_uuid:p(),occur_time:Math.round(Date.now()/1e3),url_path:window.location.href})),this._enableAPIEncryption)},H}()}]);class jx extends un{constructor(e){super(e);ye(this,"__rtasSender")}setup(e){return De(this,null,function*(){yield this.__init()})}__init(){return De(this,null,function*(){var l;const e=this._plvSocket.getUserInfo(),r=this._plvSocket.config;let i=e.userId,o=e.authType||"";(l=r.rtasConfig)!=null&&l.logonType&&(o=r.rtasConfig.logonType);let s=!1;this._plvSocket.config.securityMode===i0.AES?s=Pn.EncryptionType.AES256:this._plvSocket.config.securityMode===i0.SM2&&(s=Pn.EncryptionType.SM2);const c="2.6.0-rc-20260205.1";this.__rtasSender=new Pn.TrackLogSender({commonData:{project_name:"live",app_name:"polyv-socket",app_version:c,logon_id:i,nickname:e.nick,logon_type:o,weixin_open_id:e.wxOpenId,weixin_union_id:e.wxUnionId},enableAPIEncryption:s})})}trackEvent(e){return De(this,null,function*(){if(!this.__rtasSender||!this._plvSocket.config.watchEventTrackEnabled)return;const r=yield this._plvSocket.channel.getChannelInfo(),i={channelId:r.channelId,sessionId:r.sessionId,userId:r.accountId};this.__rtasSender.trackEvent({event_cata:"behavior",event_id:e.event_id,event_type:e.event_type,comm_attrs:i,spec_attrs:e.spec_attrs})})}}class Lx{constructor(n){ye(this,"ConnectFailReason",x0);ye(this,"SocketUserType",Dt);ye(this,"PolyvSocketEvent",gt);ye(this,"eventEmitter",new Ye);ye(this,"config");ye(this,"chatApi");ye(this,"polyvApi");ye(this,"connect");ye(this,"channel");ye(this,"rtas");this.config=n,this.chatApi=new Qs(this),this.polyvApi=new nf(this),this.connect=new zx(this),this.channel=new af(this),this.rtas=new jx(this)}setup(){return De(this,arguments,function*(n={}){yield Promise.all([this.rtas.setup(n),this.channel.setup(n),this.connect.setup(n)])})}emitSocket(n,e="message",r){return this.connect.emitSocket(n,e,r)}addSocketHandles(n,e,r="message"){this.connect.addSocketHandles(n,e,r)}clearSocketHandles(n){this.connect.clearSocketHandles(n)}getUserInfo(){return typeof this.config.userInfo=="function"?this.config.userInfo():this.config.userInfo}isSpecialUserType(n,e){return n===Dt.Dummy?!!e&&["主讲","讲师","嘉宾","助教","管理员"].includes(e):[Dt.Teacher,Dt.Manager,Dt.Guest,Dt.Assistant,Dt.Attendee,Dt.UserTagsMonitor].includes(n)}currentIsSpecialUser(){const n=this.getUserInfo();return this.isSpecialUserType(n.userType,n.actor)}isCurrentUser(n){return this.getUserInfo().userId===n}destroy(){return De(this,null,function*(){yield this.connect.disconnect()})}}const Wx="PolyvSocket";He.ConnectFailReason=x0,He.GlobalVariable=Wx,He.PolyvSocket=Lx,He.PolyvSocketEvent=gt,He.RequestAuthorizeMethod=A0,He.SecurityMode=i0,He.SocketUserType=Dt,He.socketEventTypes=Po,Object.defineProperty(He,Symbol.toStringTag,{value:"Module"})});console.log("%c@polyv/socket","background:#67C23A;padding: 2px 6px;border-radius: 3px;color: #fff","[version: 2.6.0-rc-20260205.1]","[buildTime: 2026-02-05 05:52:51]");
27
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function i(g,v){(v==null||v>g.length)&&(v=g.length);for(var d=0,_=new Array(v);d<v;d++)_[d]=g[d];return _}e(52),e(88),e(12),e(20),e(160),e(251),e(51),e(252),e(69),e(70),e(71),e(41),e(67),e(68),e(116),e(30),e(16);var o=[214,144,233,254,204,225,61,183,22,182,20,194,40,251,44,5,43,103,154,118,42,190,4,195,170,68,19,38,73,134,6,153,156,66,80,244,145,239,152,122,51,84,11,67,237,207,172,98,228,179,28,169,201,8,232,149,128,223,148,250,117,143,63,166,71,7,167,252,243,115,23,186,131,89,60,25,230,133,79,168,104,107,129,178,113,100,218,139,248,235,15,75,112,86,157,53,30,36,14,94,99,88,209,162,37,34,124,59,1,33,120,135,212,0,70,87,159,211,39,82,76,54,2,231,160,196,200,158,234,191,138,210,64,199,56,181,163,247,242,206,249,97,21,161,224,174,93,164,155,52,26,85,173,147,50,48,245,140,177,227,29,246,226,46,130,102,202,96,192,41,35,171,13,83,78,111,213,219,55,69,222,253,142,47,3,255,106,114,109,108,91,81,141,27,175,146,187,221,188,127,17,217,92,65,31,16,90,216,10,193,49,136,165,205,123,189,45,116,208,18,184,229,180,176,137,105,151,74,12,150,119,126,101,185,241,9,197,110,198,132,24,240,125,236,58,220,77,32,121,238,95,62,215,203,57,72],s=[462357,472066609,943670861,1415275113,1886879365,2358483617,2830087869,3301692121,3773296373,4228057617,404694573,876298825,1347903077,1819507329,2291111581,2762715833,3234320085,3705924337,4177462797,337322537,808926789,1280531041,1752135293,2223739545,2695343797,3166948049,3638552301,4110090761,269950501,741554753,1213159005,1684763257];function c(g){for(var v=[],d=0,_=g.length;d<_;d+=2)v.push(parseInt(g.substr(d,2),16));return v}function l(g){return g.map(function(v){return(v=v.toString(16)).length===1?"0"+v:v}).join("")}function a(g){for(var v=[],d=0,_=g.length;d<_;d++){var B=g.codePointAt(d);if(B<=127)v.push(B);else if(B<=2047)v.push(192|B>>>6),v.push(128|63&B);else if(B<=55295||B>=57344&&B<=65535)v.push(224|B>>>12),v.push(128|B>>>6&63),v.push(128|63&B);else{if(!(B>=65536&&B<=1114111))throw v.push(B),new Error("input is not supported");d++,v.push(240|B>>>18&28),v.push(128|B>>>12&63),v.push(128|B>>>6&63),v.push(128|63&B)}}return v}function f(g){for(var v=[],d=0,_=g.length;d<_;d++)g[d]>=240&&g[d]<=247?(v.push(String.fromCodePoint(((7&g[d])<<18)+((63&g[d+1])<<12)+((63&g[d+2])<<6)+(63&g[d+3]))),d+=3):g[d]>=224&&g[d]<=239?(v.push(String.fromCodePoint(((15&g[d])<<12)+((63&g[d+1])<<6)+(63&g[d+2]))),d+=2):g[d]>=192&&g[d]<=223?(v.push(String.fromCodePoint(((31&g[d])<<6)+(63&g[d+1]))),d++):v.push(String.fromCodePoint(g[d]));return v.join("")}function p(g,v){var d=31&v;return g<<d|g>>>32-d}function x(g){return(255&o[g>>>24&255])<<24|(255&o[g>>>16&255])<<16|(255&o[g>>>8&255])<<8|255&o[255&g]}function u(g){return g^p(g,2)^p(g,10)^p(g,18)^p(g,24)}function b(g){return g^p(g,13)^p(g,23)}function m(g,v,d){for(var _=new Array(4),B=new Array(4),C=0;C<4;C++)B[0]=255&g[4*C],B[1]=255&g[4*C+1],B[2]=255&g[4*C+2],B[3]=255&g[4*C+3],_[C]=B[0]<<24|B[1]<<16|B[2]<<8|B[3];for(var S,k=0;k<32;k+=4)S=_[1]^_[2]^_[3]^d[k+0],_[0]^=u(x(S)),S=_[2]^_[3]^_[0]^d[k+1],_[1]^=u(x(S)),S=_[3]^_[0]^_[1]^d[k+2],_[2]^=u(x(S)),S=_[0]^_[1]^_[2]^d[k+3],_[3]^=u(x(S));for(var F=0;F<16;F+=4)v[F]=_[3-F/4]>>>24&255,v[F+1]=_[3-F/4]>>>16&255,v[F+2]=_[3-F/4]>>>8&255,v[F+3]=255&_[3-F/4]}function E(g,v,d){for(var _=new Array(4),B=new Array(4),C=0;C<4;C++)B[0]=255&g[0+4*C],B[1]=255&g[1+4*C],B[2]=255&g[2+4*C],B[3]=255&g[3+4*C],_[C]=B[0]<<24|B[1]<<16|B[2]<<8|B[3];_[0]^=2746333894,_[1]^=1453994832,_[2]^=1736282519,_[3]^=2993693404;for(var S,k=0;k<32;k+=4)S=_[1]^_[2]^_[3]^s[k+0],v[k+0]=_[0]^=b(x(S)),S=_[2]^_[3]^_[0]^s[k+1],v[k+1]=_[1]^=b(x(S)),S=_[3]^_[0]^_[1]^s[k+2],v[k+2]=_[2]^=b(x(S)),S=_[0]^_[1]^_[2]^s[k+3],v[k+3]=_[3]^=b(x(S));if(d===0)for(var F,D=0;D<16;D++)F=v[D],v[D]=v[31-D],v[31-D]=F}function A(g,v,d){var _=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},B=_.padding,C=B===void 0?"pkcs#7":B,S=_.mode,k=_.iv,F=k===void 0?[]:k,D=_.output,O=D===void 0?"string":D;if(S==="cbc"&&(typeof F=="string"&&(F=c(F)),F.length!==16))throw new Error("iv is invalid");if(typeof v=="string"&&(v=c(v)),v.length!==16)throw new Error("key is invalid");if(g=typeof g=="string"?d!==0?a(g):c(g):r(g),(C==="pkcs#5"||C==="pkcs#7")&&d!==0)for(var M=16-g.length%16,U=0;U<M;U++)g.push(M);var z=new Array(32);E(v,z,d);for(var j=[],W=F,Q=g.length,Z=0;Q>=16;){var te=g.slice(Z,Z+16),P=new Array(16);if(S==="cbc")for(var h=0;h<16;h++)d!==0&&(te[h]^=W[h]);m(te,P,z);for(var y=0;y<16;y++)S==="cbc"&&d===0&&(P[y]^=W[y]),j[Z+y]=P[y];S==="cbc"&&(W=d!==0?P:te),Q-=16,Z+=16}if((C==="pkcs#5"||C==="pkcs#7")&&d===0){for(var w=j.length,T=j[w-1],N=1;N<=T;N++)if(j[w-N]!==T)throw new Error("padding is invalid");j.splice(w-T,T)}return O!=="array"?d!==0?l(j):f(j):j}t.exports={encrypt:function(g,v,d){return A(g,v,1,d)},decrypt:function(g,v,d){return A(g,v,0,d)}}},function(t,n,e){var r=e(5),i=e(0),o=e(2),s=e(27),c=i.RangeError,l=String.fromCharCode,a=String.fromCodePoint,f=o([].join);r({target:"String",stat:!0,forced:!!a&&a.length!=1},{fromCodePoint:function(p){for(var x,u=[],b=arguments.length,m=0;b>m;){if(x=+arguments[m++],s(x,1114111)!==x)throw c(x+" is not a valid code point");u[m]=x<65536?l(x):l(55296+((x-=65536)>>10),x%1024+56320)}return f(u,"")}})},function(t,n,e){var r=e(5),i=e(0),o=e(27),s=e(28),c=e(15),l=e(14),a=e(108),f=e(62),p=e(84)("splice"),x=i.TypeError,u=Math.max,b=Math.min;r({target:"Array",proto:!0,forced:!p},{splice:function(m,E){var A,g,v,d,_,B,C=l(this),S=c(C),k=o(m,S),F=arguments.length;if(F===0?A=g=0:F===1?(A=0,g=S-k):(A=F-2,g=b(u(s(E),0),S-k)),S+A-g>9007199254740991)throw x("Maximum allowed length exceeded");for(v=a(C,g),d=0;d<g;d++)(_=k+d)in C&&f(v,d,C[_]);if(v.length=g,A<g){for(d=k;d<S-g;d++)B=d+A,(_=d+g)in C?C[B]=C[_]:delete C[B];for(d=S;d>S-g+A;d--)delete C[d-1]}else if(A>g)for(d=S-g;d>k;d--)B=d+A-1,(_=d+g-1)in C?C[B]=C[_]:delete C[B];for(d=0;d<A;d++)C[d+k]=arguments[d+2];return C.length=S-g+A,v}})},function(t,n,e){e.r(n),e.d(n,"TrackLogSender",function(){return fe}),e.d(n,"EncryptionType",function(){return Ce});var r=Object.prototype.hasOwnProperty;function i(H,L){return r.call(H,L)}function o(H){if(H==null)throw new TypeError("Cannot convert undefined or null to object");for(var L=0;L<(arguments.length<=1?0:arguments.length-1);L++){var $=L+1<1||arguments.length<=L+1?void 0:arguments[L+1];if($!=null)for(var G in $)G!=="__proto__"&&i($,G)&&(H[G]=$[G])}return H}e(12);var s=Object.prototype.toString;e(95),e(16),e(48),e(172),e(61),e(20);var c={SEC:1e3,MIN:6e4,HOUR:36e5,DAY:864e5,MONTH:2592e6,YEAR:31536e6};function l(H,L){return new Date((typeof H=="number"?H:H.getTime())+function($){if(typeof $=="number")return $;if(!isNaN(Number($)))return Number($);var G=parseFloat($);if(isNaN(G))throw new Error("Invalid timespan string");var se=$.split(G.toString())[1].trim().toUpperCase().replace(/S$/,"");if(i(c,se))return G*c[se];throw new Error('Invalid time unit "'+se+'"')}(L))}function a(H,L){var $=o({},L);$.encode=$.encode||encodeURIComponent,$.decode=$.decode||decodeURIComponent,H="; "+$.encode(H)+"=";var G="; "+document.cookie,se=G.indexOf(H);if(se===-1)return"";se+=H.length;var ne=G.indexOf(";",se);return ne===-1&&(ne=G.length),$.decode(G.substring(se,ne))}function f(H,L,$){var G=o({},$);G.encode=G.encode||encodeURIComponent;var se=G.encode(H)+"="+G.encode(L);G.expires!=null&&(se+="; expires="+(function(ne){return s.call(ne)==="[object Date]"}(G.expires)?G.expires:l(new Date,G.expires)).toUTCString()),G.path&&(se+="; path="+G.path),G.domain&&(se+="; domain="+G.domain),G.secure===!0&&(se+="; secure"),G.sameSite&&(se+="; samesite="+G.sameSite),document.cookie=se}(function(){if(typeof document=="undefined")return!1;var H="__just4__test__cookie__";document.cookie=H+"=1",document.cookie=H+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT",a(H)})();function p(){var H=Date.now();return typeof performance!="undefined"&&typeof performance.now=="function"&&(H+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(L){var $=(H+16*Math.random())%16|0;return H=Math.floor(H/16),(L==="x"?$:3&$|8).toString(16)})}e(39),e(30),e(136);function x(H,L){var $;return L.some(function(G){var se,ne=!1;return G.regExp?(ne=G.regExp.test(H))&&(se=RegExp.$1):G.keywords?ne=function(pe,_e){pe=pe.toLowerCase();var Fe=/[/\s;_-]/,Se=/[/\s;_-]/;return _e.some(function(We){var Pe=pe.indexOf(We.toLowerCase());if(Pe!==-1&&(Fe.test(pe[Pe-1])||Pe===0)&&(Se.test(pe[Pe+We.length])||Pe+We.length>=pe.length))return!0})}(H,G.keywords):G.modelRegExp&&(ne=function(pe,_e){return!!/;\s*([^;]*?)(?:\s+Build\/|\))/.test(pe)&&_e.test(RegExp.$1)}(H,G.modelRegExp)),ne&&($={name:G.name,version:se}),ne}),$}var u=[{name:"windows",regExp:/\bWindows\s?NT\s?(([\d.]+))\b/},{name:"ios",regExp:/\bOS(?:\s([\d_.]+))?\slike\sMac\sOS\sX\b/},{name:"macos",regExp:/\bMac\sOS\sX(?:\s([\d_.]+))?/},{name:"android",regExp:/\bAndroid;?(?:[-/\s]([\d.]+))?(?:\b|_)/},{name:"android",regExp:/\bAdr\s([\d.]+)(?:\b|_)/}];function b(H,L){for(var $=0;$<L.length;$++){var G=L[$];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(H,G.key,G)}}var m=function(){function H(G){(function(se,ne){if(!(se instanceof ne))throw new TypeError("Cannot call a class as a function")})(this,H),this._ver=(G||"").replace(/_/g,".").replace(/\.+$/,"")}var L,$;return L=H,($=[{key:"_compare",value:function(G,se){if(!this._ver||!G)return!1;var ne=Array.isArray(se)?se:[se],pe=function(_e,Fe){for(var Se=/(\.0+)+$/,We=String(_e).replace(Se,"").split("."),Pe=String(Fe).replace(Se,"").split("."),et=Math.min(We.length,Pe.length),it=0;it<et;it++){var lt=parseInt(We[it])-parseInt(Pe[it]);if(lt)return lt}return We.length-Pe.length}(this._ver,G);return ne.some(function(_e){return pe*_e>0||pe===0&&_e===0})}},{key:"gt",value:function(G){return this._compare(G,1)}},{key:"gte",value:function(G){return this._compare(G,[1,0])}},{key:"lt",value:function(G){return this._compare(G,-1)}},{key:"lte",value:function(G){return this._compare(G,[-1,0])}},{key:"eq",value:function(G){return this._compare(G,0)}},{key:"toString",value:function(){return this._ver}}])&&b(L.prototype,$),Object.defineProperty(L,"prototype",{writable:!1}),H}();function E(H,L,$){return Object.defineProperty(H,"prototype",{writable:!1}),H}var A={ios:"isIOS",android:"isAndroid",windows:"isWindows",macos:"isMacOS"},g=E(function H(L,$){var G,se;if(function(_e,Fe){if(!(_e instanceof Fe))throw new TypeError("Cannot call a class as a function")}(this,H),this.isIOS=!1,this.isAndroid=!1,this.isWindows=!1,this.isMacOS=!1,$==null?void 0:$.platform){var ne=function(_e){switch(_e){case"Android":return"android";case"iPad":case"iPhone":case"iPod":return"ios";case"MacIntel":return"macos";case"Win32":return"windows"}}($.platform);ne!==void 0&&(se={name:ne,version:""})}var pe=(G=x(L,u))!==null&&G!==void 0?G:se;pe?(se&&se.name!==pe.name&&(pe=se),pe.name==="macos"&&($!=null&&$.maxTouchPoints)&&(pe.name="ios",pe.version=""),this[A[pe.name]]=!0,this.version=Object.freeze(new m(pe.version))):this.version=Object.freeze(new m(""))}),v=[{name:"ipad",regExp:/iPad/},{name:"ipod",regExp:/iPod/},{name:"iphone",regExp:/iPhone/}],d=[{name:"huawei",regExp:/\b(?:huawei|honor)/i},{name:"vivo",keywords:["vivo"]},{name:"oppo",keywords:["oppo"]},{name:"mi",keywords:["redmi","hongmi","shark","Mi","MIX","POCO"]},{name:"mi",regExp:/\bxiaomi/i},{name:"samsung",keywords:["samsung","galaxy"]},{name:"oneplus",keywords:["oneplus","one"]},{name:"huawei",modelRegExp:/^Mate\s\d{2}/},{name:"huawei",modelRegExp:/^Nova\s\d$/},{name:"huawei",modelRegExp:/^[A-Z]{3}\d?-[AT][LN]\d[019][A-Za-z]*$/},{name:"huawei",modelRegExp:/^[A-Z]{3}\d?-W[0-3]9[A-Z]*$/},{name:"huawei",modelRegExp:/^[A-Z][A-Za-z]{2,3}-BD00$/},{name:"huawei",modelRegExp:/^[A-Z]{3}-(?:[LN]29|NX9)$/},{name:"huawei",modelRegExp:/^TYH\d+[A-Z]?$/},{name:"huawei",regExp:/\b(?:Liantong|UNICOMVSENS)VP\d{3}\b/},{name:"huawei",regExp:/\bCMDCSP\d{3}\b/},{name:"mi",modelRegExp:/^MI\s?(?:\d|CC|Note|MAX|PLAY|PAD)/i},{name:"mi",modelRegExp:/^(?:AWM|SKR|SKW|DLT)-/},{name:"mi",modelRegExp:/^M\d{4}[CKJ]\d+[A-Z]+$/},{name:"mi",modelRegExp:/^2\d{5}[0-9A-Z]{2}[A-Z]$/},{name:"mi",modelRegExp:/^2\d{6}[A-Z]$/},{name:"mi",modelRegExp:/^2\d{7}[A-Z]{2}$/},{name:"samsung",modelRegExp:/^S(?:M|[CGP]H)-[A-Za-z0-9]+$/},{name:"samsung",modelRegExp:/^SC-\d{2}[A-Z]$/},{name:"samsung",modelRegExp:/^SH[WV]-/},{name:"samsung",modelRegExp:/^GT[-_][A-Z][A-Z0-9]{3,}$/i},{name:"oppo",modelRegExp:/^(?:CPH|OPD)\d{4}$/},{name:"oneplus",modelRegExp:/^(?:KB|HD|IN|GM|NE|LE|MT)\d{4}$/}];function _(H,L,$){return Object.defineProperty(H,"prototype",{writable:!1}),H}var B={ipod:"isIPod",iphone:"isIPhone",ipad:"isIPad",huawei:"isHuawei",mi:"isMi",oppo:"isOppo",vivo:"isVivo",oneplus:"isOnePlus",samsung:"isSamsung"},C=_(function H(L,$){var G;if(function(ne,pe){if(!(ne instanceof pe))throw new TypeError("Cannot call a class as a function")}(this,H),this.isHuawei=!1,this.isMi=!1,this.isOppo=!1,this.isVivo=!1,this.isOnePlus=!1,this.isSamsung=!1,this.isIPod=!1,this.isIPhone=!1,this.isIPad=!1,this.isMac=!1,this.isApple=!1,$.isIOS?(G=v,this.isApple=!0):$.isMacOS?(this.isMac=!0,this.isApple=!0):$.isAndroid&&(G=d),G){var se=x(L,G);se?this[B[se.name]]=!0:$.isIOS&&(this.isIPad=!0)}}),S=[{name:"edge",regExp:/\bEdge\/([\d.]+)/},{name:"chrome",regExp:/\b(?:Chrome|CrMo|CriOS)\/([\d.]+)/},{name:"safari",regExp:/\b(?:Version\/([\d.]+).*\s?)?Safari\b/},{name:"ie",regExp:/\bMSIE\s(\d+)/i},{name:"ie",regExp:/\bTrident\/.*;\srv:(\d+)/},{name:"firefox",regExp:/\bFirefox\/([\d.]+)/},{name:"opera-presto",regExp:/\bOpera\/([\d.]+)/}];function k(H,L,$){return Object.defineProperty(H,"prototype",{writable:!1}),H}var F={chrome:"isChrome",safari:"isSafari",edge:"isEdge",ie:"isIE",firefox:"isFirefox","opera-presto":"isPrestoOpera"},D=k(function H(L){(function(G,se){if(!(G instanceof se))throw new TypeError("Cannot call a class as a function")})(this,H),this.isChrome=!1,this.isSafari=!1,this.isEdge=!1,this.isIE=!1,this.isFirefox=!1,this.isPrestoOpera=!1;var $=x(L,S);$?(this[F[$.name]]=!0,this.version=new m($.version)):this.version=new m(""),Object.freeze(this.version)}),O=(e(107),[{name:"wxwork",regExp:/\bwxwork\/([\d.]+)/},{name:"wx",regExp:/\bMicroMessenger\/([\d.]+)/},{name:"ding",regExp:/\bDingTalk\/([\d.]+)/},{name:"qq",regExp:/\bQQ\/([\d.]+)/},{name:"qq",regExp:/\bIPadQQ\b/},{name:"weibo",regExp:/(?:\b|_)Weibo(?:\b|_)/i},{name:"edge",regExp:/\bEdge?\/([\d.]+)/},{name:"opera-blink",regExp:/\bOPR\/([\d.]+)/},{name:"qqbrowser",regExp:/\bM?QQBrowser(?:\/([\d.]+))?/i},{name:"ucbrowser",regExp:/\b(?:UCBrowser|UCWEB)(?:-CMCC)?\/?\s?([\d.]+)/},{name:"ucbrowser",regExp:/\bUC\b/},{name:"quark",regExp:/\bQuark\/([\d.]+)/},{name:"maxthon",regExp:/\b(?:Maxthon|MxBrowser)(?:[/\s]([\d.]+))?/},{name:"theworld",regExp:/\bTheWorld(?:\s([\d.]+))?/i},{name:"baidubrowser",regExp:/\b(?:baidubrowser|bdbrowser_i18n|BIDUBrowser)(?:[/\s]([\d.]+))?/i},{name:"baidubrowser",regExp:/\bbaidubrowserpad\b/},{name:"baiduapp",regExp:/\bbaiduboxapp\b\/([\d.]+)?/i},{name:"baiduapp",regExp:/\bbaiduboxpad\b/i}]);function M(H,L,$){return Object.defineProperty(H,"prototype",{writable:!1}),H}O=O.concat(S);var U={wxwork:"isWxWork",wx:"isWx",ding:"isDing",qq:"isQQ",weibo:"isWeibo",edge:"isEdge","opera-blink":"isOpera","opera-presto":"isOpera",qqbrowser:"isQQBrowser",ucbrowser:"isUCBrowser",quark:"isQuark",maxthon:"isMaxthon",theworld:"isTheWorld",baidubrowser:"isBaiduBrowser",baiduapp:"isBaiduApp",chrome:"isChrome",safari:"isSafari",ie:"isIE",firefox:"isFirefox"},z=M(function H(L){(function(G,se){if(!(G instanceof se))throw new TypeError("Cannot call a class as a function")})(this,H),this.isWxWork=!1,this.isWx=!1,this.isDing=!1,this.isQQ=!1,this.isWeibo=!1,this.isEdge=!1,this.isOpera=!1,this.isQQBrowser=!1,this.isUCBrowser=!1,this.isQuark=!1,this.isMaxthon=!1,this.isTheWorld=!1,this.isBaiduBrowser=!1,this.isBaiduApp=!1,this.isChrome=!1,this.isSafari=!1,this.isIE=!1,this.isFirefox=!1;var $=x(L,O);$?(this[U[$.name]]=!0,this.version=new m($.version)):this.version=new m(""),Object.freeze(this.version)});function j(H,L,$){return Object.defineProperty(H,"prototype",{writable:!1}),H}var W,Q=j(function H(L,$){(function(G,se){if(!(G instanceof se))throw new TypeError("Cannot call a class as a function")})(this,H),this.os=Object.freeze(new g(L,$)),this.brand=Object.freeze(new C(L,this.os)),this.browser=Object.freeze(new D(L)),this.client=Object.freeze(new z(L)),this.isPortable=/mobile|android/i.test(L)||!/\b(Windows\sNT|Macintosh|Linux)\b/.test(L),(this.os.isIOS||this.os.isAndroid)&&(this.isPortable=!0)});e(63),e(178),e(179),e(51),e(52);function Z(H,L){var $,G,se=o({encode:encodeURIComponent},L),ne=[];function pe(Fe,Se){Se==null&&(Se=""),Se===""&&se.ignoreEmpty||(typeof se.encode=="function"&&(Fe=se.encode(Fe),Se=se.encode(String(Se))),ne.push(Fe+"="+Se))}function _e(Fe){pe($,Fe)}for($ in H)i(H,$)&&(G=H[$],Array.isArray(G)?G.forEach(_e):pe($,G));return ne.join("&")}function te(H,L,$){if(H==null||L==null)return H;var G=(H=String(H)).indexOf("#"),se="";return G!==-1&&(se=H.substring(G,H.length),H=H.substring(0,G)),(H=H.replace(/[?&]$/,""))+((L=typeof L!="string"?Z(L,$):L.replace(/^[?&]/,""))?(H.indexOf("?")!==-1?"&":"?")+L:"")+se}e(143),e(144),e(146),e(41),e(192),e(67),e(68),e(69),e(70),e(71);function P(H){return(P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L})(H)}function h(H,L){if(L&&(P(L)==="object"||typeof L=="function"))return L;if(L!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function($){if($===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $}(H)}function y(H){var L=typeof Map=="function"?new Map:void 0;return(y=function($){if($===null||(G=$,Function.toString.call(G).indexOf("[native code]")===-1))return $;var G;if(typeof $!="function")throw new TypeError("Super expression must either be null or a function");if(L!==void 0){if(L.has($))return L.get($);L.set($,se)}function se(){return w($,arguments,X(this).constructor)}return se.prototype=Object.create($.prototype,{constructor:{value:se,enumerable:!1,writable:!0,configurable:!0}}),N(se,$)})(H)}function w(H,L,$){return(w=T()?Reflect.construct:function(G,se,ne){var pe=[null];pe.push.apply(pe,se);var _e=new(Function.bind.apply(G,pe));return ne&&N(_e,ne.prototype),_e}).apply(null,arguments)}function T(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(H){return!1}}function N(H,L){return(N=Object.setPrototypeOf||function($,G){return $.__proto__=G,$})(H,L)}function X(H){return(X=Object.setPrototypeOf?Object.getPrototypeOf:function(L){return L.__proto__||Object.getPrototypeOf(L)})(H)}var V=function(H){(function(pe,_e){if(typeof _e!="function"&&_e!==null)throw new TypeError("Super expression must either be null or a function");pe.prototype=Object.create(_e&&_e.prototype,{constructor:{value:pe,writable:!0,configurable:!0}}),Object.defineProperty(pe,"prototype",{writable:!1}),_e&&N(pe,_e)})(ne,H);var L,$,G,se=(L=ne,$=T(),function(){var pe,_e=X(L);if($){var Fe=X(this).constructor;pe=Reflect.construct(_e,arguments,Fe)}else pe=_e.apply(this,arguments);return h(this,pe)});function ne(pe,_e,Fe){var Se;return function(We,Pe){if(!(We instanceof Pe))throw new TypeError("Cannot call a class as a function")}(this,ne),(Se=se.call(this,Fe)).isCancel=!1,Se.isTimeout=!1,Se.xhr=pe,Se.options=_e,Se.name="AJAXError",Se}return G=ne,Object.defineProperty(G,"prototype",{writable:!1}),G}(y(Error)),Y=/(?:^|;\s*)(?:application|text)\/([a-z]+)/i;e(196);function ie(H,L,$,G){return function(){var se,ne;switch(L.responseType||function(Fe){return Fe&&Y.test(Fe)?RegExp.$1.toLowerCase():""}(H.getResponseHeader("Content-Type"))){case"json":try{se=JSON.parse(H.responseText)}catch(Fe){ne="Invalid JSON structure"}break;case"xml":(se=H.responseXML)&&se.documentElement||(ne="Invalid XML format");break;case"blob":se=H.response;break;default:se=H.responseText}var pe,_e=H.status;(function(Fe){return!(Fe===void 0||Fe>=200&&Fe<300||Fe===1223||Fe===304)})(_e)?pe=new V(H,L,"Error (HTTP status code: "+_e+")"):ne&&(pe=new V(H,L,ne)),pe?(pe.code=_e,pe.data=se,G(Object.freeze(pe))):$(Object.freeze({xhr:H,options:L,data:se}))}}var ue=Object.create(null),Ee=0;function we(H,L,$,G){H.onload=ie(H,L,$,G),H.ontimeout=function(){G(Object.freeze(function(ne,pe,_e){var Fe=new V(ne,pe,"Request timeout");return Fe.isTimeout=!0,Fe}(H,L)))},H.onerror=function(){G(Object.freeze(new V(H,L,"Network error")))},L.onDownloadProgress&&H.addEventListener("progress",L.onDownloadProgress),L.onUploadProgress&&H.upload&&H.upload.addEventListener("progress",L.onUploadProgress),Ee===Number.MAX_SAFE_INTEGER&&(Ee=0);var se=++Ee;return ue[se]={xhr:H,options:L,resolve:$,reject:G},se}function ve(H){delete ue[H]}function Be(H,L,$,G,se){return H&&/MSIE\s+(\d+)/.test(navigator.userAgent)&&parseInt(RegExp.$1)<10&&window.XDomainRequest&&(L==="get"||L==="post")&&!$&&!se&&function(ne){if(ne!=null){if(Array.isArray(ne))return!ne.length;for(var pe in ne)if(i(ne,pe))return!1}return!0}(G)?new window.XDomainRequest:new window.XMLHttpRequest}function qe(H,L,$,G){var se,ne;if($!=null&&H!=="get")return G==="json"?(se=typeof $=="string"?$:JSON.stringify($),ne="application/json; charset=utf-8"):typeof(se=function(pe){return s.call(pe)==="[object Object]"}($)?Z($,{ignoreEmpty:!1}):$)=="string"&&(ne="application/x-www-form-urlencoded; charset=utf-8"),L["Content-Type"]=L["Content-Type"]||ne,se}function Ie(H,L){var $=0;return new Promise(function(G,se){var ne=o({},L);ne.method=ne.method||"get",ne.requestType=ne.requestType||"",ne.responseType=ne.responseType||"json",ne.timeout=ne.timeout||0,ne.method=ne.method.toLowerCase(),ne.requestType=ne.requestType.toLowerCase(),ne.headers=ne.headers||{},Object.freeze(ne);var pe=function(Se){var We=document.createElement("div");We.innerHTML='<a href="'+Se+'"></a>';var Pe=We.firstChild,et=Pe.host!==location.host;return We=null,Pe=null,et}(H=function(Se,We,Pe){return We!=null&&(Se=te(Se,We,{ignoreEmpty:!1})),Pe&&(Se=te(Se,{_:Date.now()})),Se}(H,ne.params,ne.preventCaching)),_e=Be(pe,ne.method,ne.requestType,ne.headers,ne.withCredentials);$=we(_e,ne,function(Se){ve($),G(Se)},function(Se){ve($),se(Se)}),ne.responseType!=="blob"&&ne.responseType!=="arraybuffer"||(_e.responseType=ne.responseType),_e.open(ne.method,H,!0,ne.username,ne.password);var Fe=qe(ne.method,ne.headers,ne.data,ne.requestType);(function(Se,We,Pe,et){We.timeout&&(Se.timeout=We.timeout),Pe&&We.withCredentials!=null&&(Se.withCredentials=!!We.withCredentials),Pe||et["X-Request-With"]!=null||(et["X-Request-With"]="XMLHttpRequest"),Object.keys(et).forEach(function(it){et[it]!=null&&Se.setRequestHeader(it,String(et[it]))})})(_e,ne,pe,ne.headers),typeof ne.beforeSend=="function"&&ne.beforeSend.call(window,_e),_e.send(Fe||""),typeof ne.receiveCancelId=="function"&&ne.receiveCancelId($)})}var Ke=Object.prototype.hasOwnProperty;function J(H,L){return Ke.call(H,L)}function ce(H){if(H==null)throw new TypeError("Cannot convert undefined or null to object");for(var L=0;L<(arguments.length<=1?0:arguments.length-1);L++){var $=L+1<1||arguments.length<=L+1?void 0:arguments[L+1];if($!=null)for(var G in $)G!=="__proto__"&&J($,G)&&(H[G]=$[G])}return H}function le(H,L,$){if(H==null||L==null)return H;var G=(H=String(H)).indexOf("#"),se="";return G!==-1&&(se=H.substring(G,H.length),H=H.substring(0,G)),(H=H.replace(/[?&]$/,""))+((L=typeof L!="string"?function(ne,pe){var _e,Fe,Se=ce({encode:encodeURIComponent},pe),We=[];function Pe(it,lt){lt==null&&(lt=""),lt===""&&Se.ignoreEmpty||(typeof Se.encode=="function"&&(it=Se.encode(it),lt=Se.encode(String(lt))),We.push(it+"="+lt))}function et(it){Pe(_e,it)}for(_e in ne)J(ne,_e)&&(Fe=ne[_e],Array.isArray(Fe)?Fe.forEach(et):Pe(_e,Fe));return We.join("&")}(L,$):L.replace(/^[?&]/,""))?(H.indexOf("?")!==-1?"&":"?")+L:"")+se}var me=e(90),ge=e.n(me),Xe=e(161),Oe=e.n(Xe),Te=e(162),Ae=e.n(Te),je=e(163),Ze=e.n(je);function $e(H){for(var L="",$=H.length-1;$>=0;$--)L+=String.fromCharCode(H.charCodeAt($)+1);return L}var ee=$e("WDuHi7BPemY6NeKJ"),oe=$e("aB6IrQkkclR6dQSU"),he=$e("qdmmh^`c^uxkno");function be(H){var L="";Object.keys(H).sort().forEach(function(G){L+="".concat(G).concat(H[G])});var $=he+L+he;return Ze()($).toString().toUpperCase()}var Ce,Ue=e(164);(function(H){H[H.NONE=0]="NONE",H[H.AES256=1]="AES256",H[H.SM2=2]="SM2"})(Ce||(Ce={}));var Ve=function(){return(Ve=Object.assign||function(H){for(var L,$=1,G=arguments.length;$<G;$++)for(var se in L=arguments[$])Object.prototype.hasOwnProperty.call(L,se)&&(H[se]=L[se]);return H}).apply(this,arguments)};function Qe(H,L){var $,G,se="".concat((($=window.PLV_GLOBAL_URL_ORIGIN)===null||$===void 0?void 0:$.rtasOrigin)||"https://rtas.videocc.net","/da/track"),ne=se;if(L===Ce.AES256){var pe={eType:1,signatureMethod:"SHA256",signatureNonce:Math.random()};ne=le(se,Ve(Ve({},pe),{sign:be(Ve({app_id:H.app_id,project_id:H.project_id,project_name:H.project_name,local_ts:H.local_ts},pe))})),G=function(Fe){var Se=JSON.stringify(Fe),We=ge.a.parse(ee),Pe=ge.a.parse(Se);return Oe.a.encrypt(Pe,We,{iv:ge.a.parse(oe),padding:Ae.a}).toString()}(H)}else L===Ce.SM2?(ne=le(se,{eType:2}),G=function(Fe){return"04"+Ue.sm2.doEncrypt(JSON.stringify(Fe),"045B8155E9747C283ACF842895D3048E6CA943CC454AFA6A9A452B5903CC30FCE278A6F88F602EDF803DAB40BD45E35F660676BF68FD7CCBE0F6AD32388136CD0D",0)}(H)):G=JSON.stringify(H);var _e=!1;if(typeof navigator.sendBeacon=="function"&&typeof Blob=="function")try{_e=navigator.sendBeacon(ne,G)}catch(Fe){}_e||Ie(ne,{requestType:"json",responseType:"text",method:"post",data:G})}var Je=function(){return(Je=Object.assign||function(H){for(var L,$=1,G=arguments.length;$<G;$++)for(var se in L=arguments[$])Object.prototype.hasOwnProperty.call(L,se)&&(H[se]=L[se]);return H}).apply(this,arguments)},fe=function(){function H(L){this._commonData=Je({},L.commonData),this._cookieDomain=L.cookieDomain;var $=L.enableAPIEncryption;this._enableAPIEncryption=typeof $=="boolean"?$?Ce.AES256:Ce.NONE:$}return H.prototype.getDeviceId=function(){var L=a("rtas_device_id");return L||f("rtas_device_id",L=p(),{domain:this._cookieDomain,path:"/",expires:"1 year"}),L},H.prototype.getSessionId=function(){var L=a("rtas_session_id");return L||f("rtas_session_id",L=p(),{domain:this._cookieDomain,path:"/"}),L},H.prototype._makeUpData=function(L,$){return Je(Je({},this._commonData),{app_id:"N/A",project_id:"N/A",device_uuid:this.getDeviceId(),session_uuid:this.getSessionId(),device_class:(W||(W=Object.freeze(typeof window!="undefined"?new Q(window.navigator.userAgent,window.navigator):new Q(""))),W).isPortable?"mobile":"desktop",local_ts:Math.round(Date.now()/1e3),data_type:L,data_param:[$]})},H.prototype.trackEvent=function(L){Qe(this._makeUpData("event",Je(Je({},L),{event_uuid:p(),occur_time:Math.round(Date.now()/1e3),url_path:window.location.href})),this._enableAPIEncryption)},H}()}]);class jx extends un{constructor(e){super(e);ye(this,"__rtasSender")}setup(e){return De(this,null,function*(){yield this.__init()})}__init(){return De(this,null,function*(){var l;const e=this._plvSocket.getUserInfo(),r=this._plvSocket.config;let i=e.userId,o=e.authType||"";(l=r.rtasConfig)!=null&&l.logonType&&(o=r.rtasConfig.logonType);let s=!1;this._plvSocket.config.securityMode===i0.AES?s=Pn.EncryptionType.AES256:this._plvSocket.config.securityMode===i0.SM2&&(s=Pn.EncryptionType.SM2);const c="2.8.0-rc-20260514.1";this.__rtasSender=new Pn.TrackLogSender({commonData:{project_name:"live",app_name:"polyv-socket",app_version:c,logon_id:i,nickname:e.nick,logon_type:o,weixin_open_id:e.wxOpenId,weixin_union_id:e.wxUnionId},enableAPIEncryption:s})})}trackEvent(e){return De(this,null,function*(){if(!this.__rtasSender||!this._plvSocket.config.watchEventTrackEnabled)return;const r=yield this._plvSocket.channel.getChannelInfo(),i={channelId:r.channelId,sessionId:r.sessionId,userId:r.accountId};this.__rtasSender.trackEvent({event_cata:"behavior",event_id:e.event_id,event_type:e.event_type,comm_attrs:i,spec_attrs:e.spec_attrs})})}}class Lx{constructor(n){ye(this,"ConnectFailReason",x0);ye(this,"SocketUserType",Dt);ye(this,"PolyvSocketEvent",gt);ye(this,"eventEmitter",new Ye);ye(this,"config");ye(this,"chatApi");ye(this,"polyvApi");ye(this,"connect");ye(this,"channel");ye(this,"rtas");this.config=n,this.chatApi=new Qs(this),this.polyvApi=new nf(this),this.connect=new zx(this),this.channel=new af(this),this.rtas=new jx(this)}setup(){return De(this,arguments,function*(n={}){yield Promise.all([this.rtas.setup(n),this.channel.setup(n),this.connect.setup(n)])})}emitSocket(n,e="message",r){return this.connect.emitSocket(n,e,r)}addSocketHandles(n,e,r="message"){this.connect.addSocketHandles(n,e,r)}clearSocketHandles(n){this.connect.clearSocketHandles(n)}getUserInfo(){return typeof this.config.userInfo=="function"?this.config.userInfo():this.config.userInfo}isSpecialUserType(n,e){return n===Dt.Dummy?!!e&&["主讲","讲师","嘉宾","助教","管理员"].includes(e):[Dt.Teacher,Dt.Manager,Dt.Guest,Dt.Assistant,Dt.Attendee,Dt.UserTagsMonitor].includes(n)}currentIsSpecialUser(){const n=this.getUserInfo();return this.isSpecialUserType(n.userType,n.actor)}isCurrentUser(n){return this.getUserInfo().userId===n}destroy(){return De(this,null,function*(){yield this.connect.disconnect()})}}const Wx="PolyvSocket";He.ConnectFailReason=x0,He.GlobalVariable=Wx,He.PolyvSocket=Lx,He.PolyvSocketEvent=gt,He.RequestAuthorizeMethod=A0,He.SecurityMode=i0,He.SocketUserType=Dt,He.socketEventTypes=Po,Object.defineProperty(He,Symbol.toStringTag,{value:"Module"})});console.log("%c@polyv/socket","background:#67C23A;padding: 2px 6px;border-radius: 3px;color: #fff","[version: 2.8.0-rc-20260514.1]","[buildTime: 2026-05-14 01:42:07]");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polyv/socket",
3
- "version": "2.6.0-rc-20260205.1",
3
+ "version": "2.8.0-rc-20260514.1",
4
4
  "main": "./index.es.js",
5
5
  "dependencies": {
6
6
  "@polyv/request-core": "2.3.0",