@polyv/socket 2.2.0-rc-20251113.1 → 2.3.0-rc-20251204.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
@@ -1,5 +1,5 @@
1
- "use strict";var Wa=Object.defineProperty,$a=Object.defineProperties;var Ka=Object.getOwnPropertyDescriptors;var qn=Object.getOwnPropertySymbols;var Va=Object.prototype.hasOwnProperty,Xa=Object.prototype.propertyIsEnumerable;var ar=(t,n,e)=>n in t?Wa(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,Ue=(t,n)=>{for(var e in n||(n={}))Va.call(n,e)&&ar(t,e,n[e]);if(qn)for(var e of qn(n))Xa.call(n,e)&&ar(t,e,n[e]);return t},St=(t,n)=>$a(t,Ka(n));var ge=(t,n,e)=>ar(t,typeof n!="symbol"?n+"":n,e);var De=(t,n,e)=>new Promise((r,i)=>{var o=h=>{try{c(e.next(h))}catch(a){i(a)}},s=h=>{try{c(e.throw(h))}catch(a){i(a)}},c=h=>h.done?r(h.value):Promise.resolve(h.value).then(o,s);c((e=e.apply(t,n)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class Ga{constructor(){this.__eventStore={}}__addOnEvent(n,e,r,i){if(!e||!r)return;let o=this.__eventStore[e];o||(o=[]),o.push({type:n,handler:r,callbackHandler:r.bind(i)}),this.__eventStore[e]=o}on(n,e,r=this){this.__addOnEvent("normal",n,e,r)}once(n,e,r=this){this.__addOnEvent("once",n,e,r)}off(n,e){let r=this.__eventStore[n];r&&(r=r.filter(i=>i.handler!==e),this.__eventStore[n]=r)}emit(n,e,r){const i=this.__eventStore[n];i&&i.forEach(o=>{const{type:s,handler:c,callbackHandler:h}=o;typeof h=="function"&&h(e,r),s==="once"&&this.off(n,c)})}destroy(){this.__eventStore={}}}const Ya=Object.prototype.hasOwnProperty;function dn(t,n){return Ya.call(t,n)}function Zt(t,...n){if(t==null)throw new TypeError("Cannot convert undefined or null to object");for(let e=0;e<n.length;e++){const r=n[e];if(r!=null)for(const i in r)i!=="__proto__"&&dn(r,i)&&(t[i]=r[i])}return t}function Za(t){if(t!=null){if(Array.isArray(t))return!t.length;for(const n in t)if(dn(t,n))return!1}return!0}const Qa=Object.prototype.toString;function Ja(t){return Qa.call(t)==="[object Object]"}function eo(t,n,e,r){e==null&&(e=""),(e!==""||!r.ignoreEmpty)&&(typeof r.encode=="function"&&(n=r.encode(n),e=["boolean","string","number"].indexOf(typeof e)!==-1?r.encode(String(e)):""),t.push(n+"="+e))}function es(t,n,e,r){e.forEach(i=>{eo(t,n,i,r)})}function to(t,n){const e=Zt({encode:encodeURIComponent},n),r=[];let i,o;for(i in t)dn(t,i)&&(o=t[i],Array.isArray(o)?es(r,i,o,e):eo(r,i,o,e));return r.join("&")}function ts(t){const n={leftContext:""};let e=t.indexOf("#");return e!==-1&&(n.hash=t.slice(e+1),t=t.slice(0,e)),e=t.indexOf("?"),e!==-1&&(n.search=t.slice(e+1),t=t.slice(0,e)),n.leftContext=t,n}function rs(t){let n=t.leftContext;return t.search!=null&&(n+="?"+t.search),t.hash!=null&&(n+="#"+t.hash),n}function Qr(t,n,e){if(t=String(t),n==null||!(n=typeof n=="string"?n.replace(/^[?&]/,""):to(n,e)))return t;const r=ts(t);let i=r.search||"";return i&&i.slice(-1)!=="&"&&(i+="&"),i+=n,r.search=i,rs(r)}function ns(t){if(typeof document=="undefined"||typeof document.createElement!="function")return!1;let n=document.createElement("div");n.innerHTML='<a href="'+t+'"></a>';let e=n.firstChild;const r=e.host!==location.host;return n=null,e=null,r}function is(){return/MSIE\s+(\d+)/.test(navigator.userAgent)&&parseInt(RegExp.$1)<10}const os=/(?:^|;\s*)(?:application|text)\/([a-z]+)/i;function as(t){return t&&os.test(t)?RegExp.$1.toLowerCase():""}function ss(t){return!(t===void 0||t>=200&&t<300||t===1223||t===304)}function hn(t,n){return t.requestWith=n,Object.freeze(t)}function cs(t,n){const e=/^(?:(?:[a-z]+):)?\/{2,3}/;return e.test(n)?n:(/\/$/.test(t)||(t+="/"),/^\//.test(n)?e.test(t)?RegExp.lastMatch+t.replace(e,"").split("/")[0]+n:n:t+n)}function fs(t,n,e){return t=Qr(t,n,{ignoreEmpty:!1}),e&&(t=Qr(t,{_:Date.now()})),t}function ro(t,n,e,r=!0){const i=n.toLowerCase();Object.keys(t).some(o=>{if(o.toLowerCase()===i)return r&&(t[o]=e),!0})||(t[n]=e)}var Ht;(function(t){t.NETWORK_ERROR="network error",t.TIMEOUT="timeout",t.ABORTED="aborted",t.HTTP_ERROR="http error",t.PARSE_ERROR="parse error"})(Ht||(Ht={}));let L0=class extends Error{constructor(n){super(n.message),this.name="RequestError",this.result=n.result,this.code=n.code,this.type=n.type,Object.freeze(this)}},xs=class{constructor(n,e){this._baseOptions=Object.create(null),this._adapter=n,this.mixBaseOptions(e)}mixBaseOptions(n){return Zt(this._baseOptions,n),Zt(Object.create(null),this._baseOptions)}send(n,e){var r;let i=Zt(Object.create(null),e,this._baseOptions);const o=i.beforeSend;return typeof o=="function"&&(i=(r=o(i))!==null&&r!==void 0?r:i),i.baseURL&&(n=cs(i.baseURL,n)),n=fs(n,i.params,i.preventCaching),this._adapter.send(Object.freeze({url:n,baseURL:i.baseURL,params:i.params,data:i.data,headers:i.headers||Object.create(null),method:(i.method||"GET").toUpperCase(),requestType:(i.requestType||"").toLowerCase(),responseType:(i.responseType||"json").toLowerCase(),withCredentials:i.withCredentials,timeout:i.timeout,preventCaching:i.preventCaching,username:i.username,password:i.password,beforeSend:i.beforeSend,beforeXhrSend:i.beforeXhrSend,receiveTaskId:i.receiveTaskId,onUploadProgress:i.onUploadProgress,onDownloadProgress:i.onDownloadProgress,extra:i.extra}))}get(n,e){const r=Zt(Object.create(null),e);return r.method="GET",this.send(n,r)}post(n,e){const r=Zt(Object.create(null),e);return r.method="POST",this.send(n,r)}abort(n){return this._adapter.abort(n)}};var g0;(function(t){t.XHR="XMLHttpRequest",t.WX_REQUEST="wx.request"})(g0||(g0={}));class us{constructor(){this.__autoId=0,this.__list=Object.create(null)}addTask(n){const e=++this.__autoId;return this.__list[e]=n,e}removeTask(n){const e=this.__list[n];return delete this.__list[n],e}}const ds="Network error",hs="Request aborted",ls="Request timeout",ps="HTTP status error(${status})";function vs(t,n,e,r){return function(){let i,o,s;switch(n.responseType||as(t.getResponseHeader("Content-Type"))){case"json":try{i=JSON.parse(t.responseText)}catch(f){s=Ht.PARSE_ERROR,o="Invalid JSON structure"}break;case"xml":i=t.responseXML,i&&i.documentElement||(s=Ht.PARSE_ERROR,o="Invalid XML format");break;case"blob":i=t.response;break;default:i=t.responseText}const c=hn({options:n,data:i,xhr:t},g0.XHR),h=t.status;let a;ss(h)?a=new L0({message:ps.replace("${status}",h.toString()),type:Ht.HTTP_ERROR,code:h,result:c}):o&&(a=new L0({message:o,type:s,result:c})),a?r(a):e(c)}}function Mn(t,n,e,r,i){return function(){e(new L0({message:r,type:i,result:hn({xhr:t,options:n},g0.XHR)}))}}function bs(t,n,e,r){t.onload=vs(t,n,e,r),t.ontimeout=Mn(t,n,r,ls,Ht.TIMEOUT),t.onerror=Mn(t,n,r,ds,Ht.NETWORK_ERROR),n.onDownloadProgress&&t.addEventListener("progress",n.onDownloadProgress),n.onUploadProgress&&t.upload&&t.upload.addEventListener("progress",n.onUploadProgress)}const D0=new us;function ys(t,n,e,r,i){return t&&is()&&window.XDomainRequest&&(n==="get"||n==="post")&&!e&&!i&&Za(r)?new window.XDomainRequest:new window.XMLHttpRequest}function gs(t,n,e,r){n.timeout!=null&&(t.timeout=n.timeout),e&&n.withCredentials!=null&&(t.withCredentials=!!n.withCredentials),e||ro(r,"X-Request-With","XMLHttpRequest",!1),Object.keys(r).forEach(function(i){r[i]!=null&&t.setRequestHeader(i,String(r[i]))})}function ms(t,n,e,r){if(e==null||t==="GET")return;let i,o;return r==="json"?(i=typeof e=="string"?e:JSON.stringify(e),o="application/json; charset=utf-8"):(i=Ja(e)?to(e,{ignoreEmpty:!1}):e,typeof i=="string"&&(o="application/x-www-form-urlencoded; charset=utf-8")),ro(n,"Content-Type",o,!1),i}const Es={send:t=>new Promise((n,e)=>{let r=0;const i=ns(t.url),o=ys(i,t.method,t.requestType,t.headers,t.withCredentials);bs(o,t,function(a){D0.removeTask(r),n(a)},function(a){r&&D0.removeTask(r),e(a)}),r=D0.addTask({xhr:o,options:t,reject:e}),t.responseType!=="blob"&&t.responseType!=="arraybuffer"||(o.responseType=t.responseType),o.open(t.method,t.url,!0,t.username,t.password);const s=ms(t.method,t.headers,t.data,t.requestType);gs(o,t,i,t.headers);const c=t.beforeXhrSend;typeof c=="function"&&c(o),o.send(s||"");const h=t.receiveTaskId;typeof h=="function"&&h(r)}),abort(t){const n=D0.removeTask(t);return n?(n.xhr.abort(),(0,n.reject)(new L0({message:hs,type:Ht.ABORTED,result:hn({xhr:n.xhr,options:n.options},g0.XHR)})),!0):!1}},ws=/^(?:([a-z]+):)?\/{2,3}/i;function _s(t,n){return ws.test(t)}class Bs{constructor(n){ge(this,"__requestPlugins",[]);n.forEach(e=>{this.installPlugin(e)})}installPlugin(n){this.__requestPlugins.push(n),n.installPlugin&&n.installPlugin(this)}__getUsePlugin(n,e){return De(this,null,function*(){return e.usePlugin?!!(yield e.usePlugin(n)):!0})}__forEachRequestPlugin(n,e,r){return De(this,null,function*(){for(let i=0;i<this.__requestPlugins.length;i++){const o=this.__requestPlugins[i];(yield this.__getUsePlugin(n,o))&&o[e]&&(yield r(o))}})}interceptPluginRequest(n){return De(this,null,function*(){let e=n;return yield this.__forEachRequestPlugin(n,"interceptIncludeParams",r=>De(this,null,function*(){const i=yield r.interceptIncludeParams(e);i&&(e.params=Ue(Ue({},e.params||{}),i))})),yield this.__forEachRequestPlugin(n,"interceptAuthorizeRequest",r=>De(this,null,function*(){e=(yield r.interceptAuthorizeRequest(e))||e})),yield this.__forEachRequestPlugin(n,"interceptEncryptRequest",r=>De(this,null,function*(){e=(yield r.interceptEncryptRequest(e))||e})),yield this.__forEachRequestPlugin(n,"interceptRequest",r=>De(this,null,function*(){e=(yield r.interceptRequest(e))||e})),e})}interceptPluginResponse(n,e){return De(this,null,function*(){let r=n;return yield this.__forEachRequestPlugin(e,"interceptDecryptResponse",i=>De(this,null,function*(){r=(yield i.interceptDecryptResponse(r,e))||r})),yield this.__forEachRequestPlugin(e,"interceptResponse",i=>De(this,null,function*(){r=(yield i.interceptResponse(r,e))||r})),r})}}function As(t){for(const n in t)if(t[n]instanceof File)return!0;return!1}function Cs(t){const n=new FormData;for(const e in t){const r=t[e];n.append(e,r)}return n}const Fs="json",Ss="json";let sr;class no{constructor(n={}){ge(this,"__isDestroyed",!1);ge(this,"__baseUrl","");ge(this,"__timeout");ge(this,"__requestType");ge(this,"__responseType");ge(this,"__withCredentials");ge(this,"__xhrRequest");ge(this,"__pluginCtrl");var i;const{baseUrl:e}=n;e&&this.setBaseUrl(e),this.__timeout=n.timeout||1e4,this.__requestType=n.requestType||Fs,this.__responseType=n.responseType||Ss,this.__withCredentials=(i=n.withCredentials)!=null?i:!1,sr||(sr=new xs(Es)),this.__xhrRequest=sr;const r=n.requestPlugins||[];this.__pluginCtrl=new Bs(r)}setBaseUrl(n){this.__baseUrl=n}generateUrl(n){if(n.requestUrl)return n.requestUrl;const e=n.url||"";let r="";return typeof this.__baseUrl=="string"&&(r=this.__baseUrl),!r||_s(e)?e:r+e}__handleOptions(n){return De(this,null,function*(){let e=Ue({},n);const r=this.generateUrl(e);e.requestUrl=r,e.timeout=e.timeout||this.__timeout,e.requestType=e.requestType||this.__requestType,e.responseType=e.responseType||this.__responseType,e.withCredentials=e.withCredentials||this.__withCredentials,e=yield this.__interceptRequest(e);const i=e.requestUrl||r;return{options:e,requestUrl:i}})}_request(n){return De(this,null,function*(){if(this.__isDestroyed)return Promise.reject(new Error("Ajax has been destroyed."));const e=yield this.__handleOptions(n),r=this.__beforeSend(e.options);let i;try{const o=yield this.__xhrRequest.send(e.requestUrl,Ue({},r)),s=this.__parseResponseHeaders(o.xhr.getAllResponseHeaders());i={data:o.data,headers:s}}catch(o){i={data:o.result.data}}if(!i)throw Error("result is undefined");return i=yield this.__interceptResponse(i,r),i.data})}__beforeSend(n){var r;const e=n.data||{};return n.method==="POST"&&n.requestType==="form"&&typeof e=="object"&&((r=n.useFormData)!=null?r:As(e))&&(n.data=Cs(e)),n}__interceptRequest(n){return De(this,null,function*(){let e=n;return e=yield this.__pluginCtrl.interceptPluginRequest(e),e})}__interceptResponse(n,e){return De(this,null,function*(){let r=n;return r=yield this.__pluginCtrl.interceptPluginResponse(r,e),r})}__filterParamsData(n){const e={};for(const r in n){const i=n[r];typeof i!="undefined"&&(e[r]=i)}return e}get(n,e,r){return this._request(Object.assign({url:n,method:"GET",params:this.__filterParamsData(e)},r))}post(n,e,r){return this._request(Object.assign({url:n,method:"POST",data:this.__filterParamsData(e)},r))}delete(n,e,r){return this._request(Object.assign({url:n,method:"DELETE",data:this.__filterParamsData(e)},r))}put(n,e,r){return this._request(Object.assign({url:n,method:"PUT",data:this.__filterParamsData(e)},r))}open(n,e,r){return De(this,null,function*(){if(this.__isDestroyed)return Promise.reject(new Error("Ajax has been destroyed."));const i=yield this.__handleOptions(Object.assign({url:n,method:"GET",params:this.__filterParamsData(e)},r)),o=i.options.params||{},s=Qr(i.requestUrl,o);window.open(s,"_blank")})}__parseResponseHeaders(n){const e={};return n&&n.trim().split(`\r
2
- `).forEach(i=>{const o=i.indexOf(":");if(o>0){const s=i.substring(0,o).trim().toLowerCase(),c=i.substring(o+1).trim();e[s]=c}}),e}destroy(){this.__isDestroyed=!0}}class Ds extends Error{constructor(e){const{code:r,message:i}=e;super(i);ge(this,"code");this.code=r}}function Ts(t){return new Ds(t)}var $t;(function(t){t.Header="header",t.Params="params"})($t||($t={}));const ks="token",Rs=$t.Params;class io{constructor(n={}){ge(this,"__useToken");ge(this,"__config");ge(this,"__recordToken");const{useToken:e=!0}=n;this.__config=n,this.__useToken=e}usePlugin(n){const{useToken:e=this.__useToken}=n;return e}interceptAuthorizeRequest(n){return De(this,null,function*(){const e=yield this.__getTokenInfo(n);if(!e)return n;const r=e.token||this.__recordToken;if(!r)return n;const{tokenField:i=ks,tokenMode:o=Rs,includeParams:s={}}=e;let c=n.params||{};const h=n.headers||{};return s&&(c=Object.assign({},c,s)),o===$t.Params&&(c[i]=r),o===$t.Header&&(h[i]=r),St(Ue({},n),{params:c,headers:h})})}interceptResponse(n,e){return De(this,null,function*(){if(!n.headers)return;const r=e.responseTokenField||this.__config.responseTokenField;if(!r)return;const o=n.headers[r];o&&(this.__recordToken=o,this.__config.responseTokenCallback&&this.__config.responseTokenCallback({token:o}))})}__getTokenInfo(n){return De(this,null,function*(){let e=Ue({},this.__config);if(typeof this.__config.getTokenInfo=="function"){const r=(yield this.__config.getTokenInfo(n))||{};e=Ue(Ue({},e),r)}return n.tokenInfo&&(e=Ue(Ue({},e),n.tokenInfo)),e})}}class Jr{constructor(n={}){ge(this,"__config");ge(this,"__useGlobalParams");this.__config=n;const{useGlobalParams:e=!0}=n;this.__useGlobalParams=e}usePlugin(n){const{useGlobalParams:e=this.__useGlobalParams}=n;return e}interceptIncludeParams(n){return De(this,null,function*(){let e;return typeof this.__config.globalParams=="function"?e=yield this.__config.globalParams(n):e=this.__config.globalParams,e})}}class oo{constructor(n={}){ge(this,"__fields");ge(this,"__successCodes");ge(this,"__errorCallback");var e;this.__successCodes=this.__formateSuccessCode((e=n.successCode)!=null?e:200),this.__errorCallback=n.errorCallback,this.__fields=Ue({codeField:"code",statusField:"status",messageField:"message",dataField:"data",errorField:"error",errorCodeField:"code",errorDescField:"desc"},n.fields)}usePlugin(n){const{useStatusCode:e=!0}=n;return e}interceptResponse(n,e){var f,p;if(!n.data)throw new Error(`status-code-plugin error: result.data is undefined, url: ${e.requestUrl}`);const r=this.__formatRes(n.data),i=r.code,o=r.status;if(this.__getSuccessCodes(e).includes(i)||o==="success")return Promise.resolve(St(Ue({},n),{data:r.data}));const c=((f=r.error)==null?void 0:f.code)||i,h=((p=r.error)==null?void 0:p.desc)||r.message||"未知错误",a=Ts({code:c,message:h});return this.__errorCallback&&this.__errorCallback(c,h),Promise.reject(a)}__formatRes(n){const e=n[this.__fields.codeField],r=n[this.__fields.statusField],i=n[this.__fields.messageField],o=n[this.__fields.dataField],s={code:e,data:o,status:r,message:i},c=n[this.__fields.errorField];if(c){const h=c[this.__fields.errorCodeField],a=c[this.__fields.errorDescField];s.error={code:h,desc:a}}return s}__formateSuccessCode(n){return typeof n=="number"?[n]:Array.isArray(n)?n:[]}__getSuccessCodes(n){const e=this.__formateSuccessCode(n.successCode);return[...this.__successCodes,...e]}}var e0;(function(t){t.WholeResponse="wholeResponse",t.ResponseData="responseData"})(e0||(e0={}));var o0;(function(t){t.Hex="hex",t.Base64="base64"})(o0||(o0={}));var ke=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function A0(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Is(t){if(t.__esModule)return t;var n=t.default;if(typeof n=="function"){var e=function r(){return this instanceof r?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};e.prototype=n.prototype}else e={};return Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),e}var ao={exports:{}};/*! MIT License. Copyright 2015-2018 Richard Moore <me@ricmoo.com>. See LICENSE.txt. */(function(t,n){(function(e){function r(P){return parseInt(P)===P}function i(P){if(!r(P.length))return!1;for(var l=0;l<P.length;l++)if(!r(P[l])||P[l]<0||P[l]>255)return!1;return!0}function o(P,l){if(P.buffer&&P.name==="Uint8Array")return l&&(P.slice?P=P.slice():P=Array.prototype.slice.call(P)),P;if(Array.isArray(P)){if(!i(P))throw new Error("Array contains invalid value: "+P);return new Uint8Array(P)}if(r(P.length)&&i(P))return new Uint8Array(P);throw new Error("unsupported array-like object")}function s(P){return new Uint8Array(P)}function c(P,l,y,_,T){(_!=null||T!=null)&&(P.slice?P=P.slice(_,T):P=Array.prototype.slice.call(P,_,T)),l.set(P,y)}var h=function(){function P(y){var _=[],T=0;for(y=encodeURI(y);T<y.length;){var N=y.charCodeAt(T++);N===37?(_.push(parseInt(y.substr(T,2),16)),T+=2):_.push(N)}return o(_)}function l(y){for(var _=[],T=0;T<y.length;){var N=y[T];N<128?(_.push(String.fromCharCode(N)),T++):N>191&&N<224?(_.push(String.fromCharCode((N&31)<<6|y[T+1]&63)),T+=2):(_.push(String.fromCharCode((N&15)<<12|(y[T+1]&63)<<6|y[T+2]&63)),T+=3)}return _.join("")}return{toBytes:P,fromBytes:l}}(),a=function(){function P(_){for(var T=[],N=0;N<_.length;N+=2)T.push(parseInt(_.substr(N,2),16));return T}var l="0123456789abcdef";function y(_){for(var T=[],N=0;N<_.length;N++){var X=_[N];T.push(l[(X&240)>>4]+l[X&15])}return T.join("")}return{toBytes:P,fromBytes:y}}(),f={16:10,24:12,32:14},p=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],x=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],u=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],b=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],m=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],E=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],A=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],g=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],v=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],d=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],w=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],B=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],C=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],S=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],k=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function F(P){for(var l=[],y=0;y<P.length;y+=4)l.push(P[y]<<24|P[y+1]<<16|P[y+2]<<8|P[y+3]);return l}var D=function(P){if(!(this instanceof D))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:o(P,!0)}),this._prepare()};D.prototype._prepare=function(){var P=f[this.key.length];if(P==null)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var l=0;l<=P;l++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);for(var y=(P+1)*4,_=this.key.length/4,T=F(this.key),N,l=0;l<_;l++)N=l>>2,this._Ke[N][l%4]=T[l],this._Kd[P-N][l%4]=T[l];for(var X=0,V=_,Y;V<y;){if(Y=T[_-1],T[0]^=x[Y>>16&255]<<24^x[Y>>8&255]<<16^x[Y&255]<<8^x[Y>>24&255]^p[X]<<24,X+=1,_!=8)for(var l=1;l<_;l++)T[l]^=T[l-1];else{for(var l=1;l<_/2;l++)T[l]^=T[l-1];Y=T[_/2-1],T[_/2]^=x[Y&255]^x[Y>>8&255]<<8^x[Y>>16&255]<<16^x[Y>>24&255]<<24;for(var l=_/2+1;l<_;l++)T[l]^=T[l-1]}for(var l=0,ie,ue;l<_&&V<y;)ie=V>>2,ue=V%4,this._Ke[ie][ue]=T[l],this._Kd[P-ie][ue]=T[l++],V++}for(var ie=1;ie<P;ie++)for(var ue=0;ue<4;ue++)Y=this._Kd[ie][ue],this._Kd[ie][ue]=B[Y>>24&255]^C[Y>>16&255]^S[Y>>8&255]^k[Y&255]},D.prototype.encrypt=function(P){if(P.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var l=this._Ke.length-1,y=[0,0,0,0],_=F(P),T=0;T<4;T++)_[T]^=this._Ke[0][T];for(var N=1;N<l;N++){for(var T=0;T<4;T++)y[T]=b[_[T]>>24&255]^m[_[(T+1)%4]>>16&255]^E[_[(T+2)%4]>>8&255]^A[_[(T+3)%4]&255]^this._Ke[N][T];_=y.slice()}for(var X=s(16),V,T=0;T<4;T++)V=this._Ke[l][T],X[4*T]=(x[_[T]>>24&255]^V>>24)&255,X[4*T+1]=(x[_[(T+1)%4]>>16&255]^V>>16)&255,X[4*T+2]=(x[_[(T+2)%4]>>8&255]^V>>8)&255,X[4*T+3]=(x[_[(T+3)%4]&255]^V)&255;return X},D.prototype.decrypt=function(P){if(P.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var l=this._Kd.length-1,y=[0,0,0,0],_=F(P),T=0;T<4;T++)_[T]^=this._Kd[0][T];for(var N=1;N<l;N++){for(var T=0;T<4;T++)y[T]=g[_[T]>>24&255]^v[_[(T+3)%4]>>16&255]^d[_[(T+2)%4]>>8&255]^w[_[(T+1)%4]&255]^this._Kd[N][T];_=y.slice()}for(var X=s(16),V,T=0;T<4;T++)V=this._Kd[l][T],X[4*T]=(u[_[T]>>24&255]^V>>24)&255,X[4*T+1]=(u[_[(T+3)%4]>>16&255]^V>>16)&255,X[4*T+2]=(u[_[(T+2)%4]>>8&255]^V>>8)&255,X[4*T+3]=(u[_[(T+1)%4]&255]^V)&255;return X};var O=function(P){if(!(this instanceof O))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new D(P)};O.prototype.encrypt=function(P){if(P=o(P),P.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var l=s(P.length),y=s(16),_=0;_<P.length;_+=16)c(P,y,0,_,_+16),y=this._aes.encrypt(y),c(y,l,_);return l},O.prototype.decrypt=function(P){if(P=o(P),P.length%16!==0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var l=s(P.length),y=s(16),_=0;_<P.length;_+=16)c(P,y,0,_,_+16),y=this._aes.decrypt(y),c(y,l,_);return l};var M=function(P,l){if(!(this instanceof M))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Block Chaining",this.name="cbc",!l)l=s(16);else if(l.length!=16)throw new Error("invalid initialation vector size (must be 16 bytes)");this._lastCipherblock=o(l,!0),this._aes=new D(P)};M.prototype.encrypt=function(P){if(P=o(P),P.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var l=s(P.length),y=s(16),_=0;_<P.length;_+=16){c(P,y,0,_,_+16);for(var T=0;T<16;T++)y[T]^=this._lastCipherblock[T];this._lastCipherblock=this._aes.encrypt(y),c(this._lastCipherblock,l,_)}return l},M.prototype.decrypt=function(P){if(P=o(P),P.length%16!==0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var l=s(P.length),y=s(16),_=0;_<P.length;_+=16){c(P,y,0,_,_+16),y=this._aes.decrypt(y);for(var T=0;T<16;T++)l[_+T]=y[T]^this._lastCipherblock[T];c(P,this._lastCipherblock,0,_,_+16)}return l};var z=function(P,l,y){if(!(this instanceof z))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Feedback",this.name="cfb",!l)l=s(16);else if(l.length!=16)throw new Error("invalid initialation vector size (must be 16 size)");y||(y=1),this.segmentSize=y,this._shiftRegister=o(l,!0),this._aes=new D(P)};z.prototype.encrypt=function(P){if(P.length%this.segmentSize!=0)throw new Error("invalid plaintext size (must be segmentSize bytes)");for(var l=o(P,!0),y,_=0;_<l.length;_+=this.segmentSize){y=this._aes.encrypt(this._shiftRegister);for(var T=0;T<this.segmentSize;T++)l[_+T]^=y[T];c(this._shiftRegister,this._shiftRegister,0,this.segmentSize),c(l,this._shiftRegister,16-this.segmentSize,_,_+this.segmentSize)}return l},z.prototype.decrypt=function(P){if(P.length%this.segmentSize!=0)throw new Error("invalid ciphertext size (must be segmentSize bytes)");for(var l=o(P,!0),y,_=0;_<l.length;_+=this.segmentSize){y=this._aes.encrypt(this._shiftRegister);for(var T=0;T<this.segmentSize;T++)l[_+T]^=y[T];c(this._shiftRegister,this._shiftRegister,0,this.segmentSize),c(P,this._shiftRegister,16-this.segmentSize,_,_+this.segmentSize)}return l};var U=function(P,l){if(!(this instanceof U))throw Error("AES must be instanitated with `new`");if(this.description="Output Feedback",this.name="ofb",!l)l=s(16);else if(l.length!=16)throw new Error("invalid initialation vector size (must be 16 bytes)");this._lastPrecipher=o(l,!0),this._lastPrecipherIndex=16,this._aes=new D(P)};U.prototype.encrypt=function(P){for(var l=o(P,!0),y=0;y<l.length;y++)this._lastPrecipherIndex===16&&(this._lastPrecipher=this._aes.encrypt(this._lastPrecipher),this._lastPrecipherIndex=0),l[y]^=this._lastPrecipher[this._lastPrecipherIndex++];return l},U.prototype.decrypt=U.prototype.encrypt;var j=function(P){if(!(this instanceof j))throw Error("Counter must be instanitated with `new`");P!==0&&!P&&(P=1),typeof P=="number"?(this._counter=s(16),this.setValue(P)):this.setBytes(P)};j.prototype.setValue=function(P){if(typeof P!="number"||parseInt(P)!=P)throw new Error("invalid counter value (must be an integer)");if(P>Number.MAX_SAFE_INTEGER)throw new Error("integer value out of safe range");for(var l=15;l>=0;--l)this._counter[l]=P%256,P=parseInt(P/256)},j.prototype.setBytes=function(P){if(P=o(P,!0),P.length!=16)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=P},j.prototype.increment=function(){for(var P=15;P>=0;P--)if(this._counter[P]===255)this._counter[P]=0;else{this._counter[P]++;break}};var W=function(P,l){if(!(this instanceof W))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",l instanceof j||(l=new j(l)),this._counter=l,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new D(P)};W.prototype.encrypt=function(P){for(var l=o(P,!0),y=0;y<l.length;y++)this._remainingCounterIndex===16&&(this._remainingCounter=this._aes.encrypt(this._counter._counter),this._remainingCounterIndex=0,this._counter.increment()),l[y]^=this._remainingCounter[this._remainingCounterIndex++];return l},W.prototype.decrypt=W.prototype.encrypt;function Q(P){P=o(P,!0);var l=16-P.length%16,y=s(P.length+l);c(P,y);for(var _=P.length;_<y.length;_++)y[_]=l;return y}function Z(P){if(P=o(P,!0),P.length<16)throw new Error("PKCS#7 invalid length");var l=P[P.length-1];if(l>16)throw new Error("PKCS#7 padding byte out of range");for(var y=P.length-l,_=0;_<l;_++)if(P[y+_]!==l)throw new Error("PKCS#7 invalid padding byte");var T=s(y);return c(P,T,0,0,y),T}var te={AES:D,Counter:j,ModeOfOperation:{ecb:O,cbc:M,cfb:z,ofb:U,ctr:W},utils:{hex:a,utf8:h},padding:{pkcs7:{pad:Q,strip:Z}},_arrayTest:{coerceArray:o,createArray:s,copyArray:c}};t.exports=te})()})(ao);var Ps=ao.exports;const H0=A0(Ps);var so={exports:{}};function Os(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var cr={exports:{}};const qs={},Ms=Object.freeze(Object.defineProperty({__proto__:null,default:qs},Symbol.toStringTag,{value:"Module"})),co=Is(Ms);var Nn;function Ne(){return Nn||(Nn=1,function(t,n){(function(e,r){t.exports=r()})(ke,function(){var e=e||function(r,i){var o;if(typeof window!="undefined"&&window.crypto&&(o=window.crypto),typeof self!="undefined"&&self.crypto&&(o=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(o=globalThis.crypto),!o&&typeof window!="undefined"&&window.msCrypto&&(o=window.msCrypto),!o&&typeof ke!="undefined"&&ke.crypto&&(o=ke.crypto),!o&&typeof Os=="function")try{o=co}catch(g){}var s=function(){if(o){if(typeof o.getRandomValues=="function")try{return o.getRandomValues(new Uint32Array(1))[0]}catch(g){}if(typeof o.randomBytes=="function")try{return o.randomBytes(4).readInt32LE()}catch(g){}}throw new Error("Native crypto module could not be used to get secure random number.")},c=Object.create||function(){function g(){}return function(v){var d;return g.prototype=v,d=new g,g.prototype=null,d}}(),h={},a=h.lib={},f=a.Base=function(){return{extend:function(g){var v=c(this);return g&&v.mixIn(g),(!v.hasOwnProperty("init")||this.init===v.init)&&(v.init=function(){v.$super.init.apply(this,arguments)}),v.init.prototype=v,v.$super=this,v},create:function(){var g=this.extend();return g.init.apply(g,arguments),g},init:function(){},mixIn:function(g){for(var v in g)g.hasOwnProperty(v)&&(this[v]=g[v]);g.hasOwnProperty("toString")&&(this.toString=g.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),p=a.WordArray=f.extend({init:function(g,v){g=this.words=g||[],v!=i?this.sigBytes=v:this.sigBytes=g.length*4},toString:function(g){return(g||u).stringify(this)},concat:function(g){var v=this.words,d=g.words,w=this.sigBytes,B=g.sigBytes;if(this.clamp(),w%4)for(var C=0;C<B;C++){var S=d[C>>>2]>>>24-C%4*8&255;v[w+C>>>2]|=S<<24-(w+C)%4*8}else for(var k=0;k<B;k+=4)v[w+k>>>2]=d[k>>>2];return this.sigBytes+=B,this},clamp:function(){var g=this.words,v=this.sigBytes;g[v>>>2]&=4294967295<<32-v%4*8,g.length=r.ceil(v/4)},clone:function(){var g=f.clone.call(this);return g.words=this.words.slice(0),g},random:function(g){for(var v=[],d=0;d<g;d+=4)v.push(s());return new p.init(v,g)}}),x=h.enc={},u=x.Hex={stringify:function(g){for(var v=g.words,d=g.sigBytes,w=[],B=0;B<d;B++){var C=v[B>>>2]>>>24-B%4*8&255;w.push((C>>>4).toString(16)),w.push((C&15).toString(16))}return w.join("")},parse:function(g){for(var v=g.length,d=[],w=0;w<v;w+=2)d[w>>>3]|=parseInt(g.substr(w,2),16)<<24-w%8*4;return new p.init(d,v/2)}},b=x.Latin1={stringify:function(g){for(var v=g.words,d=g.sigBytes,w=[],B=0;B<d;B++){var C=v[B>>>2]>>>24-B%4*8&255;w.push(String.fromCharCode(C))}return w.join("")},parse:function(g){for(var v=g.length,d=[],w=0;w<v;w++)d[w>>>2]|=(g.charCodeAt(w)&255)<<24-w%4*8;return new p.init(d,v)}},m=x.Utf8={stringify:function(g){try{return decodeURIComponent(escape(b.stringify(g)))}catch(v){throw new Error("Malformed UTF-8 data")}},parse:function(g){return b.parse(unescape(encodeURIComponent(g)))}},E=a.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new p.init,this._nDataBytes=0},_append:function(g){typeof g=="string"&&(g=m.parse(g)),this._data.concat(g),this._nDataBytes+=g.sigBytes},_process:function(g){var v,d=this._data,w=d.words,B=d.sigBytes,C=this.blockSize,S=C*4,k=B/S;g?k=r.ceil(k):k=r.max((k|0)-this._minBufferSize,0);var F=k*C,D=r.min(F*4,B);if(F){for(var O=0;O<F;O+=C)this._doProcessBlock(w,O);v=w.splice(0,F),d.sigBytes-=D}return new p.init(v,D)},clone:function(){var g=f.clone.call(this);return g._data=this._data.clone(),g},_minBufferSize:0});a.Hasher=E.extend({cfg:f.extend(),init:function(g){this.cfg=this.cfg.extend(g),this.reset()},reset:function(){E.reset.call(this),this._doReset()},update:function(g){return this._append(g),this._process(),this},finalize:function(g){g&&this._append(g);var v=this._doFinalize();return v},blockSize:16,_createHelper:function(g){return function(v,d){return new g.init(d).finalize(v)}},_createHmacHelper:function(g){return function(v,d){return new A.HMAC.init(g,d).finalize(v)}}});var A=h.algo={};return h}(Math);return e})}(cr)),cr.exports}var fr={exports:{}},Hn;function Z0(){return Hn||(Hn=1,function(t,n){(function(e,r){t.exports=r(Ne())})(ke,function(e){return function(r){var i=e,o=i.lib,s=o.Base,c=o.WordArray,h=i.x64={};h.Word=s.extend({init:function(a,f){this.high=a,this.low=f}}),h.WordArray=s.extend({init:function(a,f){a=this.words=a||[],f!=r?this.sigBytes=f:this.sigBytes=a.length*8},toX32:function(){for(var a=this.words,f=a.length,p=[],x=0;x<f;x++){var u=a[x];p.push(u.high),p.push(u.low)}return c.create(p,this.sigBytes)},clone:function(){for(var a=s.clone.call(this),f=a.words=this.words.slice(0),p=f.length,x=0;x<p;x++)f[x]=f[x].clone();return a}})}(),e})}(fr)),fr.exports}var xr={exports:{}},zn;function Ns(){return zn||(zn=1,function(t,n){(function(e,r){t.exports=r(Ne())})(ke,function(e){return function(){if(typeof ArrayBuffer=="function"){var r=e,i=r.lib,o=i.WordArray,s=o.init,c=o.init=function(h){if(h instanceof ArrayBuffer&&(h=new Uint8Array(h)),(h instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&h instanceof Uint8ClampedArray||h instanceof Int16Array||h instanceof Uint16Array||h instanceof Int32Array||h instanceof Uint32Array||h instanceof Float32Array||h instanceof Float64Array)&&(h=new Uint8Array(h.buffer,h.byteOffset,h.byteLength)),h instanceof Uint8Array){for(var a=h.byteLength,f=[],p=0;p<a;p++)f[p>>>2]|=h[p]<<24-p%4*8;s.call(this,f,a)}else s.apply(this,arguments)};c.prototype=o}}(),e.lib.WordArray})}(xr)),xr.exports}var ur={exports:{}},Un;function Hs(){return Un||(Un=1,function(t,n){(function(e,r){t.exports=r(Ne())})(ke,function(e){return function(){var r=e,i=r.lib,o=i.WordArray,s=r.enc;s.Utf16=s.Utf16BE={stringify:function(h){for(var a=h.words,f=h.sigBytes,p=[],x=0;x<f;x+=2){var u=a[x>>>2]>>>16-x%4*8&65535;p.push(String.fromCharCode(u))}return p.join("")},parse:function(h){for(var a=h.length,f=[],p=0;p<a;p++)f[p>>>1]|=h.charCodeAt(p)<<16-p%2*16;return o.create(f,a*2)}},s.Utf16LE={stringify:function(h){for(var a=h.words,f=h.sigBytes,p=[],x=0;x<f;x+=2){var u=c(a[x>>>2]>>>16-x%4*8&65535);p.push(String.fromCharCode(u))}return p.join("")},parse:function(h){for(var a=h.length,f=[],p=0;p<a;p++)f[p>>>1]|=c(h.charCodeAt(p)<<16-p%2*16);return o.create(f,a*2)}};function c(h){return h<<8&4278255360|h>>>8&16711935}}(),e.enc.Utf16})}(ur)),ur.exports}var dr={exports:{}},jn;function Kt(){return jn||(jn=1,function(t,n){(function(e,r){t.exports=r(Ne())})(ke,function(e){return function(){var r=e,i=r.lib,o=i.WordArray,s=r.enc;s.Base64={stringify:function(h){var a=h.words,f=h.sigBytes,p=this._map;h.clamp();for(var x=[],u=0;u<f;u+=3)for(var b=a[u>>>2]>>>24-u%4*8&255,m=a[u+1>>>2]>>>24-(u+1)%4*8&255,E=a[u+2>>>2]>>>24-(u+2)%4*8&255,A=b<<16|m<<8|E,g=0;g<4&&u+g*.75<f;g++)x.push(p.charAt(A>>>6*(3-g)&63));var v=p.charAt(64);if(v)for(;x.length%4;)x.push(v);return x.join("")},parse:function(h){var a=h.length,f=this._map,p=this._reverseMap;if(!p){p=this._reverseMap=[];for(var x=0;x<f.length;x++)p[f.charCodeAt(x)]=x}var u=f.charAt(64);if(u){var b=h.indexOf(u);b!==-1&&(a=b)}return c(h,a,p)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function c(h,a,f){for(var p=[],x=0,u=0;u<a;u++)if(u%4){var b=f[h.charCodeAt(u-1)]<<u%4*2,m=f[h.charCodeAt(u)]>>>6-u%4*2,E=b|m;p[x>>>2]|=E<<24-x%4*8,x++}return o.create(p,x)}}(),e.enc.Base64})}(dr)),dr.exports}var hr={exports:{}},Ln;function zs(){return Ln||(Ln=1,function(t,n){(function(e,r){t.exports=r(Ne())})(ke,function(e){return function(){var r=e,i=r.lib,o=i.WordArray,s=r.enc;s.Base64url={stringify:function(h,a){a===void 0&&(a=!0);var f=h.words,p=h.sigBytes,x=a?this._safe_map:this._map;h.clamp();for(var u=[],b=0;b<p;b+=3)for(var m=f[b>>>2]>>>24-b%4*8&255,E=f[b+1>>>2]>>>24-(b+1)%4*8&255,A=f[b+2>>>2]>>>24-(b+2)%4*8&255,g=m<<16|E<<8|A,v=0;v<4&&b+v*.75<p;v++)u.push(x.charAt(g>>>6*(3-v)&63));var d=x.charAt(64);if(d)for(;u.length%4;)u.push(d);return u.join("")},parse:function(h,a){a===void 0&&(a=!0);var f=h.length,p=a?this._safe_map:this._map,x=this._reverseMap;if(!x){x=this._reverseMap=[];for(var u=0;u<p.length;u++)x[p.charCodeAt(u)]=u}var b=p.charAt(64);if(b){var m=h.indexOf(b);m!==-1&&(f=m)}return c(h,f,x)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function c(h,a,f){for(var p=[],x=0,u=0;u<a;u++)if(u%4){var b=f[h.charCodeAt(u-1)]<<u%4*2,m=f[h.charCodeAt(u)]>>>6-u%4*2,E=b|m;p[x>>>2]|=E<<24-x%4*8,x++}return o.create(p,x)}}(),e.enc.Base64url})}(hr)),hr.exports}var lr={exports:{}},Wn;function Vt(){return Wn||(Wn=1,function(t,n){(function(e,r){t.exports=r(Ne())})(ke,function(e){return function(r){var i=e,o=i.lib,s=o.WordArray,c=o.Hasher,h=i.algo,a=[];(function(){for(var m=0;m<64;m++)a[m]=r.abs(r.sin(m+1))*4294967296|0})();var f=h.MD5=c.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(m,E){for(var A=0;A<16;A++){var g=E+A,v=m[g];m[g]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360}var d=this._hash.words,w=m[E+0],B=m[E+1],C=m[E+2],S=m[E+3],k=m[E+4],F=m[E+5],D=m[E+6],O=m[E+7],M=m[E+8],z=m[E+9],U=m[E+10],j=m[E+11],W=m[E+12],Q=m[E+13],Z=m[E+14],te=m[E+15],P=d[0],l=d[1],y=d[2],_=d[3];P=p(P,l,y,_,w,7,a[0]),_=p(_,P,l,y,B,12,a[1]),y=p(y,_,P,l,C,17,a[2]),l=p(l,y,_,P,S,22,a[3]),P=p(P,l,y,_,k,7,a[4]),_=p(_,P,l,y,F,12,a[5]),y=p(y,_,P,l,D,17,a[6]),l=p(l,y,_,P,O,22,a[7]),P=p(P,l,y,_,M,7,a[8]),_=p(_,P,l,y,z,12,a[9]),y=p(y,_,P,l,U,17,a[10]),l=p(l,y,_,P,j,22,a[11]),P=p(P,l,y,_,W,7,a[12]),_=p(_,P,l,y,Q,12,a[13]),y=p(y,_,P,l,Z,17,a[14]),l=p(l,y,_,P,te,22,a[15]),P=x(P,l,y,_,B,5,a[16]),_=x(_,P,l,y,D,9,a[17]),y=x(y,_,P,l,j,14,a[18]),l=x(l,y,_,P,w,20,a[19]),P=x(P,l,y,_,F,5,a[20]),_=x(_,P,l,y,U,9,a[21]),y=x(y,_,P,l,te,14,a[22]),l=x(l,y,_,P,k,20,a[23]),P=x(P,l,y,_,z,5,a[24]),_=x(_,P,l,y,Z,9,a[25]),y=x(y,_,P,l,S,14,a[26]),l=x(l,y,_,P,M,20,a[27]),P=x(P,l,y,_,Q,5,a[28]),_=x(_,P,l,y,C,9,a[29]),y=x(y,_,P,l,O,14,a[30]),l=x(l,y,_,P,W,20,a[31]),P=u(P,l,y,_,F,4,a[32]),_=u(_,P,l,y,M,11,a[33]),y=u(y,_,P,l,j,16,a[34]),l=u(l,y,_,P,Z,23,a[35]),P=u(P,l,y,_,B,4,a[36]),_=u(_,P,l,y,k,11,a[37]),y=u(y,_,P,l,O,16,a[38]),l=u(l,y,_,P,U,23,a[39]),P=u(P,l,y,_,Q,4,a[40]),_=u(_,P,l,y,w,11,a[41]),y=u(y,_,P,l,S,16,a[42]),l=u(l,y,_,P,D,23,a[43]),P=u(P,l,y,_,z,4,a[44]),_=u(_,P,l,y,W,11,a[45]),y=u(y,_,P,l,te,16,a[46]),l=u(l,y,_,P,C,23,a[47]),P=b(P,l,y,_,w,6,a[48]),_=b(_,P,l,y,O,10,a[49]),y=b(y,_,P,l,Z,15,a[50]),l=b(l,y,_,P,F,21,a[51]),P=b(P,l,y,_,W,6,a[52]),_=b(_,P,l,y,S,10,a[53]),y=b(y,_,P,l,U,15,a[54]),l=b(l,y,_,P,B,21,a[55]),P=b(P,l,y,_,M,6,a[56]),_=b(_,P,l,y,te,10,a[57]),y=b(y,_,P,l,D,15,a[58]),l=b(l,y,_,P,Q,21,a[59]),P=b(P,l,y,_,k,6,a[60]),_=b(_,P,l,y,j,10,a[61]),y=b(y,_,P,l,C,15,a[62]),l=b(l,y,_,P,z,21,a[63]),d[0]=d[0]+P|0,d[1]=d[1]+l|0,d[2]=d[2]+y|0,d[3]=d[3]+_|0},_doFinalize:function(){var m=this._data,E=m.words,A=this._nDataBytes*8,g=m.sigBytes*8;E[g>>>5]|=128<<24-g%32;var v=r.floor(A/4294967296),d=A;E[(g+64>>>9<<4)+15]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,E[(g+64>>>9<<4)+14]=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,m.sigBytes=(E.length+1)*4,this._process();for(var w=this._hash,B=w.words,C=0;C<4;C++){var S=B[C];B[C]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360}return w},clone:function(){var m=c.clone.call(this);return m._hash=this._hash.clone(),m}});function p(m,E,A,g,v,d,w){var B=m+(E&A|~E&g)+v+w;return(B<<d|B>>>32-d)+E}function x(m,E,A,g,v,d,w){var B=m+(E&g|A&~g)+v+w;return(B<<d|B>>>32-d)+E}function u(m,E,A,g,v,d,w){var B=m+(E^A^g)+v+w;return(B<<d|B>>>32-d)+E}function b(m,E,A,g,v,d,w){var B=m+(A^(E|~g))+v+w;return(B<<d|B>>>32-d)+E}i.MD5=c._createHelper(f),i.HmacMD5=c._createHmacHelper(f)}(Math),e.MD5})}(lr)),lr.exports}var pr={exports:{}},$n;function fo(){return $n||($n=1,function(t,n){(function(e,r){t.exports=r(Ne())})(ke,function(e){return function(){var r=e,i=r.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(f,p){for(var x=this._hash.words,u=x[0],b=x[1],m=x[2],E=x[3],A=x[4],g=0;g<80;g++){if(g<16)h[g]=f[p+g]|0;else{var v=h[g-3]^h[g-8]^h[g-14]^h[g-16];h[g]=v<<1|v>>>31}var d=(u<<5|u>>>27)+A+h[g];g<20?d+=(b&m|~b&E)+1518500249:g<40?d+=(b^m^E)+1859775393:g<60?d+=(b&m|b&E|m&E)-1894007588:d+=(b^m^E)-899497514,A=E,E=m,m=b<<30|b>>>2,b=u,u=d}x[0]=x[0]+u|0,x[1]=x[1]+b|0,x[2]=x[2]+m|0,x[3]=x[3]+E|0,x[4]=x[4]+A|0},_doFinalize:function(){var f=this._data,p=f.words,x=this._nDataBytes*8,u=f.sigBytes*8;return p[u>>>5]|=128<<24-u%32,p[(u+64>>>9<<4)+14]=Math.floor(x/4294967296),p[(u+64>>>9<<4)+15]=x,f.sigBytes=p.length*4,this._process(),this._hash},clone:function(){var f=s.clone.call(this);return f._hash=this._hash.clone(),f}});r.SHA1=s._createHelper(a),r.HmacSHA1=s._createHmacHelper(a)}(),e.SHA1})}(pr)),pr.exports}var vr={exports:{}},Kn;function ln(){return Kn||(Kn=1,function(t,n){(function(e,r){t.exports=r(Ne())})(ke,function(e){return function(r){var i=e,o=i.lib,s=o.WordArray,c=o.Hasher,h=i.algo,a=[],f=[];(function(){function u(A){for(var g=r.sqrt(A),v=2;v<=g;v++)if(!(A%v))return!1;return!0}function b(A){return(A-(A|0))*4294967296|0}for(var m=2,E=0;E<64;)u(m)&&(E<8&&(a[E]=b(r.pow(m,1/2))),f[E]=b(r.pow(m,1/3)),E++),m++})();var p=[],x=h.SHA256=c.extend({_doReset:function(){this._hash=new s.init(a.slice(0))},_doProcessBlock:function(u,b){for(var m=this._hash.words,E=m[0],A=m[1],g=m[2],v=m[3],d=m[4],w=m[5],B=m[6],C=m[7],S=0;S<64;S++){if(S<16)p[S]=u[b+S]|0;else{var k=p[S-15],F=(k<<25|k>>>7)^(k<<14|k>>>18)^k>>>3,D=p[S-2],O=(D<<15|D>>>17)^(D<<13|D>>>19)^D>>>10;p[S]=F+p[S-7]+O+p[S-16]}var M=d&w^~d&B,z=E&A^E&g^A&g,U=(E<<30|E>>>2)^(E<<19|E>>>13)^(E<<10|E>>>22),j=(d<<26|d>>>6)^(d<<21|d>>>11)^(d<<7|d>>>25),W=C+j+M+f[S]+p[S],Q=U+z;C=B,B=w,w=d,d=v+W|0,v=g,g=A,A=E,E=W+Q|0}m[0]=m[0]+E|0,m[1]=m[1]+A|0,m[2]=m[2]+g|0,m[3]=m[3]+v|0,m[4]=m[4]+d|0,m[5]=m[5]+w|0,m[6]=m[6]+B|0,m[7]=m[7]+C|0},_doFinalize:function(){var u=this._data,b=u.words,m=this._nDataBytes*8,E=u.sigBytes*8;return b[E>>>5]|=128<<24-E%32,b[(E+64>>>9<<4)+14]=r.floor(m/4294967296),b[(E+64>>>9<<4)+15]=m,u.sigBytes=b.length*4,this._process(),this._hash},clone:function(){var u=c.clone.call(this);return u._hash=this._hash.clone(),u}});i.SHA256=c._createHelper(x),i.HmacSHA256=c._createHmacHelper(x)}(Math),e.SHA256})}(vr)),vr.exports}var br={exports:{}},Vn;function Us(){return Vn||(Vn=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),ln())})(ke,function(e){return function(){var r=e,i=r.lib,o=i.WordArray,s=r.algo,c=s.SHA256,h=s.SHA224=c.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var a=c._doFinalize.call(this);return a.sigBytes-=4,a}});r.SHA224=c._createHelper(h),r.HmacSHA224=c._createHmacHelper(h)}(),e.SHA224})}(br)),br.exports}var yr={exports:{}},Xn;function xo(){return Xn||(Xn=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),Z0())})(ke,function(e){return function(){var r=e,i=r.lib,o=i.Hasher,s=r.x64,c=s.Word,h=s.WordArray,a=r.algo;function f(){return c.create.apply(c,arguments)}var p=[f(1116352408,3609767458),f(1899447441,602891725),f(3049323471,3964484399),f(3921009573,2173295548),f(961987163,4081628472),f(1508970993,3053834265),f(2453635748,2937671579),f(2870763221,3664609560),f(3624381080,2734883394),f(310598401,1164996542),f(607225278,1323610764),f(1426881987,3590304994),f(1925078388,4068182383),f(2162078206,991336113),f(2614888103,633803317),f(3248222580,3479774868),f(3835390401,2666613458),f(4022224774,944711139),f(264347078,2341262773),f(604807628,2007800933),f(770255983,1495990901),f(1249150122,1856431235),f(1555081692,3175218132),f(1996064986,2198950837),f(2554220882,3999719339),f(2821834349,766784016),f(2952996808,2566594879),f(3210313671,3203337956),f(3336571891,1034457026),f(3584528711,2466948901),f(113926993,3758326383),f(338241895,168717936),f(666307205,1188179964),f(773529912,1546045734),f(1294757372,1522805485),f(1396182291,2643833823),f(1695183700,2343527390),f(1986661051,1014477480),f(2177026350,1206759142),f(2456956037,344077627),f(2730485921,1290863460),f(2820302411,3158454273),f(3259730800,3505952657),f(3345764771,106217008),f(3516065817,3606008344),f(3600352804,1432725776),f(4094571909,1467031594),f(275423344,851169720),f(430227734,3100823752),f(506948616,1363258195),f(659060556,3750685593),f(883997877,3785050280),f(958139571,3318307427),f(1322822218,3812723403),f(1537002063,2003034995),f(1747873779,3602036899),f(1955562222,1575990012),f(2024104815,1125592928),f(2227730452,2716904306),f(2361852424,442776044),f(2428436474,593698344),f(2756734187,3733110249),f(3204031479,2999351573),f(3329325298,3815920427),f(3391569614,3928383900),f(3515267271,566280711),f(3940187606,3454069534),f(4118630271,4000239992),f(116418474,1914138554),f(174292421,2731055270),f(289380356,3203993006),f(460393269,320620315),f(685471733,587496836),f(852142971,1086792851),f(1017036298,365543100),f(1126000580,2618297676),f(1288033470,3409855158),f(1501505948,4234509866),f(1607167915,987167468),f(1816402316,1246189591)],x=[];(function(){for(var b=0;b<80;b++)x[b]=f()})();var u=a.SHA512=o.extend({_doReset:function(){this._hash=new h.init([new c.init(1779033703,4089235720),new c.init(3144134277,2227873595),new c.init(1013904242,4271175723),new c.init(2773480762,1595750129),new c.init(1359893119,2917565137),new c.init(2600822924,725511199),new c.init(528734635,4215389547),new c.init(1541459225,327033209)])},_doProcessBlock:function(b,m){for(var E=this._hash.words,A=E[0],g=E[1],v=E[2],d=E[3],w=E[4],B=E[5],C=E[6],S=E[7],k=A.high,F=A.low,D=g.high,O=g.low,M=v.high,z=v.low,U=d.high,j=d.low,W=w.high,Q=w.low,Z=B.high,te=B.low,P=C.high,l=C.low,y=S.high,_=S.low,T=k,N=F,X=D,V=O,Y=M,ie=z,ue=U,Ee=j,_e=W,ve=Q,Be=Z,qe=te,Re=P,We=l,J=y,ce=_,le=0;le<80;le++){var me,ye,Ve=x[le];if(le<16)ye=Ve.high=b[m+le*2]|0,me=Ve.low=b[m+le*2+1]|0;else{var Oe=x[le-15],Te=Oe.high,Ae=Oe.low,ze=(Te>>>1|Ae<<31)^(Te>>>8|Ae<<24)^Te>>>7,Ge=(Ae>>>1|Te<<31)^(Ae>>>8|Te<<24)^(Ae>>>7|Te<<25),$e=x[le-2],ee=$e.high,oe=$e.low,he=(ee>>>19|oe<<13)^(ee<<3|oe>>>29)^ee>>>6,be=(oe>>>19|ee<<13)^(oe<<3|ee>>>29)^(oe>>>6|ee<<26),Ce=x[le-7],He=Ce.high,Ke=Ce.low,Ye=x[le-16],Ze=Ye.high,fe=Ye.low;me=Ge+Ke,ye=ze+He+(me>>>0<Ge>>>0?1:0),me=me+be,ye=ye+he+(me>>>0<be>>>0?1:0),me=me+fe,ye=ye+Ze+(me>>>0<fe>>>0?1:0),Ve.high=ye,Ve.low=me}var H=_e&Be^~_e&Re,L=ve&qe^~ve&We,K=T&X^T&Y^X&Y,G=N&V^N&ie^V&ie,se=(T>>>28|N<<4)^(T<<30|N>>>2)^(T<<25|N>>>7),ne=(N>>>28|T<<4)^(N<<30|T>>>2)^(N<<25|T>>>7),pe=(_e>>>14|ve<<18)^(_e>>>18|ve<<14)^(_e<<23|ve>>>9),we=(ve>>>14|_e<<18)^(ve>>>18|_e<<14)^(ve<<23|_e>>>9),Fe=p[le],Se=Fe.high,Le=Fe.low,Pe=ce+we,Qe=J+pe+(Pe>>>0<ce>>>0?1:0),Pe=Pe+L,Qe=Qe+H+(Pe>>>0<L>>>0?1:0),Pe=Pe+Le,Qe=Qe+Se+(Pe>>>0<Le>>>0?1:0),Pe=Pe+me,Qe=Qe+ye+(Pe>>>0<me>>>0?1:0),et=ne+G,xt=se+K+(et>>>0<ne>>>0?1:0);J=Re,ce=We,Re=Be,We=qe,Be=_e,qe=ve,ve=Ee+Pe|0,_e=ue+Qe+(ve>>>0<Ee>>>0?1:0)|0,ue=Y,Ee=ie,Y=X,ie=V,X=T,V=N,N=Pe+et|0,T=Qe+xt+(N>>>0<Pe>>>0?1:0)|0}F=A.low=F+N,A.high=k+T+(F>>>0<N>>>0?1:0),O=g.low=O+V,g.high=D+X+(O>>>0<V>>>0?1:0),z=v.low=z+ie,v.high=M+Y+(z>>>0<ie>>>0?1:0),j=d.low=j+Ee,d.high=U+ue+(j>>>0<Ee>>>0?1:0),Q=w.low=Q+ve,w.high=W+_e+(Q>>>0<ve>>>0?1:0),te=B.low=te+qe,B.high=Z+Be+(te>>>0<qe>>>0?1:0),l=C.low=l+We,C.high=P+Re+(l>>>0<We>>>0?1:0),_=S.low=_+ce,S.high=y+J+(_>>>0<ce>>>0?1:0)},_doFinalize:function(){var b=this._data,m=b.words,E=this._nDataBytes*8,A=b.sigBytes*8;m[A>>>5]|=128<<24-A%32,m[(A+128>>>10<<5)+30]=Math.floor(E/4294967296),m[(A+128>>>10<<5)+31]=E,b.sigBytes=m.length*4,this._process();var g=this._hash.toX32();return g},clone:function(){var b=o.clone.call(this);return b._hash=this._hash.clone(),b},blockSize:1024/32});r.SHA512=o._createHelper(u),r.HmacSHA512=o._createHmacHelper(u)}(),e.SHA512})}(yr)),yr.exports}var gr={exports:{}},Gn;function js(){return Gn||(Gn=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),Z0(),xo())})(ke,function(e){return function(){var r=e,i=r.x64,o=i.Word,s=i.WordArray,c=r.algo,h=c.SHA512,a=c.SHA384=h.extend({_doReset:function(){this._hash=new s.init([new o.init(3418070365,3238371032),new o.init(1654270250,914150663),new o.init(2438529370,812702999),new o.init(355462360,4144912697),new o.init(1731405415,4290775857),new o.init(2394180231,1750603025),new o.init(3675008525,1694076839),new o.init(1203062813,3204075428)])},_doFinalize:function(){var f=h._doFinalize.call(this);return f.sigBytes-=16,f}});r.SHA384=h._createHelper(a),r.HmacSHA384=h._createHmacHelper(a)}(),e.SHA384})}(gr)),gr.exports}var mr={exports:{}},Yn;function Ls(){return Yn||(Yn=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),Z0())})(ke,function(e){return function(r){var i=e,o=i.lib,s=o.WordArray,c=o.Hasher,h=i.x64,a=h.Word,f=i.algo,p=[],x=[],u=[];(function(){for(var E=1,A=0,g=0;g<24;g++){p[E+5*A]=(g+1)*(g+2)/2%64;var v=A%5,d=(2*E+3*A)%5;E=v,A=d}for(var E=0;E<5;E++)for(var A=0;A<5;A++)x[E+5*A]=A+(2*E+3*A)%5*5;for(var w=1,B=0;B<24;B++){for(var C=0,S=0,k=0;k<7;k++){if(w&1){var F=(1<<k)-1;F<32?S^=1<<F:C^=1<<F-32}w&128?w=w<<1^113:w<<=1}u[B]=a.create(C,S)}})();var b=[];(function(){for(var E=0;E<25;E++)b[E]=a.create()})();var m=f.SHA3=c.extend({cfg:c.cfg.extend({outputLength:512}),_doReset:function(){for(var E=this._state=[],A=0;A<25;A++)E[A]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(E,A){for(var g=this._state,v=this.blockSize/2,d=0;d<v;d++){var w=E[A+2*d],B=E[A+2*d+1];w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360;var C=g[d];C.high^=B,C.low^=w}for(var S=0;S<24;S++){for(var k=0;k<5;k++){for(var F=0,D=0,O=0;O<5;O++){var C=g[k+5*O];F^=C.high,D^=C.low}var M=b[k];M.high=F,M.low=D}for(var k=0;k<5;k++)for(var z=b[(k+4)%5],U=b[(k+1)%5],j=U.high,W=U.low,F=z.high^(j<<1|W>>>31),D=z.low^(W<<1|j>>>31),O=0;O<5;O++){var C=g[k+5*O];C.high^=F,C.low^=D}for(var Q=1;Q<25;Q++){var F,D,C=g[Q],Z=C.high,te=C.low,P=p[Q];P<32?(F=Z<<P|te>>>32-P,D=te<<P|Z>>>32-P):(F=te<<P-32|Z>>>64-P,D=Z<<P-32|te>>>64-P);var l=b[x[Q]];l.high=F,l.low=D}var y=b[0],_=g[0];y.high=_.high,y.low=_.low;for(var k=0;k<5;k++)for(var O=0;O<5;O++){var Q=k+5*O,C=g[Q],T=b[Q],N=b[(k+1)%5+5*O],X=b[(k+2)%5+5*O];C.high=T.high^~N.high&X.high,C.low=T.low^~N.low&X.low}var C=g[0],V=u[S];C.high^=V.high,C.low^=V.low}},_doFinalize:function(){var E=this._data,A=E.words;this._nDataBytes*8;var g=E.sigBytes*8,v=this.blockSize*32;A[g>>>5]|=1<<24-g%32,A[(r.ceil((g+1)/v)*v>>>5)-1]|=128,E.sigBytes=A.length*4,this._process();for(var d=this._state,w=this.cfg.outputLength/8,B=w/8,C=[],S=0;S<B;S++){var k=d[S],F=k.high,D=k.low;F=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360,D=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,C.push(D),C.push(F)}return new s.init(C,w)},clone:function(){for(var E=c.clone.call(this),A=E._state=this._state.slice(0),g=0;g<25;g++)A[g]=A[g].clone();return E}});i.SHA3=c._createHelper(m),i.HmacSHA3=c._createHmacHelper(m)}(Math),e.SHA3})}(mr)),mr.exports}var Er={exports:{}},Zn;function Ws(){return Zn||(Zn=1,function(t,n){(function(e,r){t.exports=r(Ne())})(ke,function(e){/** @preserve
1
+ "use strict";var $a=Object.defineProperty,Ka=Object.defineProperties;var Va=Object.getOwnPropertyDescriptors;var qn=Object.getOwnPropertySymbols;var Xa=Object.prototype.hasOwnProperty,Ga=Object.prototype.propertyIsEnumerable;var ar=(t,n,e)=>n in t?$a(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,ze=(t,n)=>{for(var e in n||(n={}))Xa.call(n,e)&&ar(t,e,n[e]);if(qn)for(var e of qn(n))Ga.call(n,e)&&ar(t,e,n[e]);return t},St=(t,n)=>Ka(t,Va(n));var ye=(t,n,e)=>ar(t,typeof n!="symbol"?n+"":n,e);var De=(t,n,e)=>new Promise((r,i)=>{var o=h=>{try{c(e.next(h))}catch(a){i(a)}},s=h=>{try{c(e.throw(h))}catch(a){i(a)}},c=h=>h.done?r(h.value):Promise.resolve(h.value).then(o,s);c((e=e.apply(t,n)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class Ya{constructor(){this.__eventStore={}}__addOnEvent(n,e,r,i){if(!e||!r)return;let o=this.__eventStore[e];o||(o=[]),o.push({type:n,handler:r,callbackHandler:r.bind(i)}),this.__eventStore[e]=o}on(n,e,r=this){this.__addOnEvent("normal",n,e,r)}once(n,e,r=this){this.__addOnEvent("once",n,e,r)}off(n,e){let r=this.__eventStore[n];r&&(r=r.filter(i=>i.handler!==e),this.__eventStore[n]=r)}emit(n,e,r){const i=this.__eventStore[n];i&&i.forEach(o=>{const{type:s,handler:c,callbackHandler:h}=o;typeof h=="function"&&h(e,r),s==="once"&&this.off(n,c)})}destroy(){this.__eventStore={}}}const Za=Object.prototype.hasOwnProperty;function dn(t,n){return Za.call(t,n)}function Zt(t,...n){if(t==null)throw new TypeError("Cannot convert undefined or null to object");for(let e=0;e<n.length;e++){const r=n[e];if(r!=null)for(const i in r)i!=="__proto__"&&dn(r,i)&&(t[i]=r[i])}return t}function Qa(t){if(t!=null){if(Array.isArray(t))return!t.length;for(const n in t)if(dn(t,n))return!1}return!0}const Ja=Object.prototype.toString;function es(t){return Ja.call(t)==="[object Object]"}function eo(t,n,e,r){e==null&&(e=""),(e!==""||!r.ignoreEmpty)&&(typeof r.encode=="function"&&(n=r.encode(n),e=["boolean","string","number"].indexOf(typeof e)!==-1?r.encode(String(e)):""),t.push(n+"="+e))}function ts(t,n,e,r){e.forEach(i=>{eo(t,n,i,r)})}function to(t,n){const e=Zt({encode:encodeURIComponent},n),r=[];let i,o;for(i in t)dn(t,i)&&(o=t[i],Array.isArray(o)?ts(r,i,o,e):eo(r,i,o,e));return r.join("&")}function rs(t){const n={leftContext:""};let e=t.indexOf("#");return e!==-1&&(n.hash=t.slice(e+1),t=t.slice(0,e)),e=t.indexOf("?"),e!==-1&&(n.search=t.slice(e+1),t=t.slice(0,e)),n.leftContext=t,n}function ns(t){let n=t.leftContext;return t.search!=null&&(n+="?"+t.search),t.hash!=null&&(n+="#"+t.hash),n}function Qr(t,n,e){if(t=String(t),n==null||!(n=typeof n=="string"?n.replace(/^[?&]/,""):to(n,e)))return t;const r=rs(t);let i=r.search||"";return i&&i.slice(-1)!=="&"&&(i+="&"),i+=n,r.search=i,ns(r)}function is(t){if(typeof document=="undefined"||typeof document.createElement!="function")return!1;let n=document.createElement("div");n.innerHTML='<a href="'+t+'"></a>';let e=n.firstChild;const r=e.host!==location.host;return n=null,e=null,r}function os(){return/MSIE\s+(\d+)/.test(navigator.userAgent)&&parseInt(RegExp.$1)<10}const as=/(?:^|;\s*)(?:application|text)\/([a-z]+)/i;function ss(t){return t&&as.test(t)?RegExp.$1.toLowerCase():""}function cs(t){return!(t===void 0||t>=200&&t<300||t===1223||t===304)}function hn(t,n){return t.requestWith=n,Object.freeze(t)}function fs(t,n){const e=/^(?:(?:[a-z]+):)?\/{2,3}/;return e.test(n)?n:(/\/$/.test(t)||(t+="/"),/^\//.test(n)?e.test(t)?RegExp.lastMatch+t.replace(e,"").split("/")[0]+n:n:t+n)}function xs(t,n,e){return t=Qr(t,n,{ignoreEmpty:!1}),e&&(t=Qr(t,{_:Date.now()})),t}function ro(t,n,e,r=!0){const i=n.toLowerCase();Object.keys(t).some(o=>{if(o.toLowerCase()===i)return r&&(t[o]=e),!0})||(t[n]=e)}var Ht;(function(t){t.NETWORK_ERROR="network error",t.TIMEOUT="timeout",t.ABORTED="aborted",t.HTTP_ERROR="http error",t.PARSE_ERROR="parse error"})(Ht||(Ht={}));let L0=class extends Error{constructor(n){super(n.message),this.name="RequestError",this.result=n.result,this.code=n.code,this.type=n.type,Object.freeze(this)}},us=class{constructor(n,e){this._baseOptions=Object.create(null),this._adapter=n,this.mixBaseOptions(e)}mixBaseOptions(n){return Zt(this._baseOptions,n),Zt(Object.create(null),this._baseOptions)}send(n,e){var r;let i=Zt(Object.create(null),e,this._baseOptions);const o=i.beforeSend;return typeof o=="function"&&(i=(r=o(i))!==null&&r!==void 0?r:i),i.baseURL&&(n=fs(i.baseURL,n)),n=xs(n,i.params,i.preventCaching),this._adapter.send(Object.freeze({url:n,baseURL:i.baseURL,params:i.params,data:i.data,headers:i.headers||Object.create(null),method:(i.method||"GET").toUpperCase(),requestType:(i.requestType||"").toLowerCase(),responseType:(i.responseType||"json").toLowerCase(),withCredentials:i.withCredentials,timeout:i.timeout,preventCaching:i.preventCaching,username:i.username,password:i.password,beforeSend:i.beforeSend,beforeXhrSend:i.beforeXhrSend,receiveTaskId:i.receiveTaskId,onUploadProgress:i.onUploadProgress,onDownloadProgress:i.onDownloadProgress,extra:i.extra}))}get(n,e){const r=Zt(Object.create(null),e);return r.method="GET",this.send(n,r)}post(n,e){const r=Zt(Object.create(null),e);return r.method="POST",this.send(n,r)}abort(n){return this._adapter.abort(n)}};var g0;(function(t){t.XHR="XMLHttpRequest",t.WX_REQUEST="wx.request"})(g0||(g0={}));class ds{constructor(){this.__autoId=0,this.__list=Object.create(null)}addTask(n){const e=++this.__autoId;return this.__list[e]=n,e}removeTask(n){const e=this.__list[n];return delete this.__list[n],e}}const hs="Network error",ls="Request aborted",ps="Request timeout",vs="HTTP status error(${status})";function bs(t,n,e,r){return function(){let i,o,s;switch(n.responseType||ss(t.getResponseHeader("Content-Type"))){case"json":try{i=JSON.parse(t.responseText)}catch(f){s=Ht.PARSE_ERROR,o="Invalid JSON structure"}break;case"xml":i=t.responseXML,i&&i.documentElement||(s=Ht.PARSE_ERROR,o="Invalid XML format");break;case"blob":i=t.response;break;default:i=t.responseText}const c=hn({options:n,data:i,xhr:t},g0.XHR),h=t.status;let a;cs(h)?a=new L0({message:vs.replace("${status}",h.toString()),type:Ht.HTTP_ERROR,code:h,result:c}):o&&(a=new L0({message:o,type:s,result:c})),a?r(a):e(c)}}function Mn(t,n,e,r,i){return function(){e(new L0({message:r,type:i,result:hn({xhr:t,options:n},g0.XHR)}))}}function ys(t,n,e,r){t.onload=bs(t,n,e,r),t.ontimeout=Mn(t,n,r,ps,Ht.TIMEOUT),t.onerror=Mn(t,n,r,hs,Ht.NETWORK_ERROR),n.onDownloadProgress&&t.addEventListener("progress",n.onDownloadProgress),n.onUploadProgress&&t.upload&&t.upload.addEventListener("progress",n.onUploadProgress)}const D0=new ds;function gs(t,n,e,r,i){return t&&os()&&window.XDomainRequest&&(n==="get"||n==="post")&&!e&&!i&&Qa(r)?new window.XDomainRequest:new window.XMLHttpRequest}function ms(t,n,e,r){n.timeout!=null&&(t.timeout=n.timeout),e&&n.withCredentials!=null&&(t.withCredentials=!!n.withCredentials),e||ro(r,"X-Request-With","XMLHttpRequest",!1),Object.keys(r).forEach(function(i){r[i]!=null&&t.setRequestHeader(i,String(r[i]))})}function Es(t,n,e,r){if(e==null||t==="GET")return;let i,o;return r==="json"?(i=typeof e=="string"?e:JSON.stringify(e),o="application/json; charset=utf-8"):(i=es(e)?to(e,{ignoreEmpty:!1}):e,typeof i=="string"&&(o="application/x-www-form-urlencoded; charset=utf-8")),ro(n,"Content-Type",o,!1),i}const _s={send:t=>new Promise((n,e)=>{let r=0;const i=is(t.url),o=gs(i,t.method,t.requestType,t.headers,t.withCredentials);ys(o,t,function(a){D0.removeTask(r),n(a)},function(a){r&&D0.removeTask(r),e(a)}),r=D0.addTask({xhr:o,options:t,reject:e}),t.responseType!=="blob"&&t.responseType!=="arraybuffer"||(o.responseType=t.responseType),o.open(t.method,t.url,!0,t.username,t.password);const s=Es(t.method,t.headers,t.data,t.requestType);ms(o,t,i,t.headers);const c=t.beforeXhrSend;typeof c=="function"&&c(o),o.send(s||"");const h=t.receiveTaskId;typeof h=="function"&&h(r)}),abort(t){const n=D0.removeTask(t);return n?(n.xhr.abort(),(0,n.reject)(new L0({message:ls,type:Ht.ABORTED,result:hn({xhr:n.xhr,options:n.options},g0.XHR)})),!0):!1}},W0=/^(?:([a-z]+):)?\/{2,3}/i;function no(t,n){return W0.test(t)}function io(t,n){return W0.test(n)||(n+="://"),no(t)?t.replace(W0,n):n+t}function ws(t){return t.replace(W0,"")}class Bs{constructor(n){ye(this,"__requestPlugins",[]);n.forEach(e=>{this.installPlugin(e)})}installPlugin(n){this.__requestPlugins.push(n),n.installPlugin&&n.installPlugin(this)}__getUsePlugin(n,e){return De(this,null,function*(){return e.usePlugin?!!(yield e.usePlugin(n)):!0})}__forEachRequestPlugin(n,e,r){return De(this,null,function*(){for(let i=0;i<this.__requestPlugins.length;i++){const o=this.__requestPlugins[i];(yield this.__getUsePlugin(n,o))&&o[e]&&(yield r(o))}})}interceptPluginRequest(n){return De(this,null,function*(){let e=n;return yield this.__forEachRequestPlugin(n,"interceptIncludeParams",r=>De(this,null,function*(){const i=yield r.interceptIncludeParams(e);i&&(e.params=ze(ze({},e.params||{}),i))})),yield this.__forEachRequestPlugin(n,"interceptAuthorizeRequest",r=>De(this,null,function*(){e=(yield r.interceptAuthorizeRequest(e))||e})),yield this.__forEachRequestPlugin(n,"interceptEncryptRequest",r=>De(this,null,function*(){e=(yield r.interceptEncryptRequest(e))||e})),yield this.__forEachRequestPlugin(n,"interceptRequest",r=>De(this,null,function*(){e=(yield r.interceptRequest(e))||e})),e})}interceptPluginResponse(n,e){return De(this,null,function*(){let r=n;return yield this.__forEachRequestPlugin(e,"interceptDecryptResponse",i=>De(this,null,function*(){r=(yield i.interceptDecryptResponse(r,e))||r})),yield this.__forEachRequestPlugin(e,"interceptResponse",i=>De(this,null,function*(){r=(yield i.interceptResponse(r,e))||r})),r})}}function As(t){for(const n in t)if(t[n]instanceof File)return!0;return!1}function Cs(t){const n=new FormData;for(const e in t){const r=t[e];n.append(e,r)}return n}const Fs="json",Ss="json";let sr;class oo{constructor(n={}){ye(this,"__isDestroyed",!1);ye(this,"__baseUrl","");ye(this,"__timeout");ye(this,"__requestType");ye(this,"__responseType");ye(this,"__withCredentials");ye(this,"__xhrRequest");ye(this,"__pluginCtrl");var i;const{baseUrl:e}=n;e&&this.setBaseUrl(e),this.__timeout=n.timeout||1e4,this.__requestType=n.requestType||Fs,this.__responseType=n.responseType||Ss,this.__withCredentials=(i=n.withCredentials)!=null?i:!1,sr||(sr=new us(_s)),this.__xhrRequest=sr;const r=n.requestPlugins||[];this.__pluginCtrl=new Bs(r)}setBaseUrl(n){this.__baseUrl=n}generateUrl(n){if(n.requestUrl)return n.requestUrl;const e=n.url||"";let r="";return typeof this.__baseUrl=="string"&&(r=this.__baseUrl),!r||no(e)?e:r+e}__handleOptions(n){return De(this,null,function*(){let e=ze({},n);const r=this.generateUrl(e);e.requestUrl=r,e.timeout=e.timeout||this.__timeout,e.requestType=e.requestType||this.__requestType,e.responseType=e.responseType||this.__responseType,e.withCredentials=e.withCredentials||this.__withCredentials,e=yield this.__interceptRequest(e);const i=e.requestUrl||r;return{options:e,requestUrl:i}})}_request(n){return De(this,null,function*(){if(this.__isDestroyed)return Promise.reject(new Error("Ajax has been destroyed."));const e=yield this.__handleOptions(n),r=this.__beforeSend(e.options);let i;try{const o=yield this.__xhrRequest.send(e.requestUrl,ze({},r)),s=this.__parseResponseHeaders(o.xhr.getAllResponseHeaders());i={data:o.data,headers:s}}catch(o){i={data:o.result.data}}if(!i)throw Error("result is undefined");return i=yield this.__interceptResponse(i,r),i.data})}__beforeSend(n){var r;const e=n.data||{};return n.method==="POST"&&n.requestType==="form"&&typeof e=="object"&&((r=n.useFormData)!=null?r:As(e))&&(n.data=Cs(e)),n}__interceptRequest(n){return De(this,null,function*(){let e=n;return e=yield this.__pluginCtrl.interceptPluginRequest(e),e})}__interceptResponse(n,e){return De(this,null,function*(){let r=n;return r=yield this.__pluginCtrl.interceptPluginResponse(r,e),r})}__filterParamsData(n){const e={};for(const r in n){const i=n[r];typeof i!="undefined"&&(e[r]=i)}return e}get(n,e,r){return this._request(Object.assign({url:n,method:"GET",params:this.__filterParamsData(e)},r))}post(n,e,r){return this._request(Object.assign({url:n,method:"POST",data:this.__filterParamsData(e)},r))}delete(n,e,r){return this._request(Object.assign({url:n,method:"DELETE",data:this.__filterParamsData(e)},r))}put(n,e,r){return this._request(Object.assign({url:n,method:"PUT",data:this.__filterParamsData(e)},r))}open(n,e,r){return De(this,null,function*(){if(this.__isDestroyed)return Promise.reject(new Error("Ajax has been destroyed."));const i=yield this.__handleOptions(Object.assign({url:n,method:"GET",params:this.__filterParamsData(e)},r)),o=i.options.params||{},s=Qr(i.requestUrl,o);window.open(s,"_blank")})}__parseResponseHeaders(n){const e={};return n&&n.trim().split(`\r
2
+ `).forEach(i=>{const o=i.indexOf(":");if(o>0){const s=i.substring(0,o).trim().toLowerCase(),c=i.substring(o+1).trim();e[s]=c}}),e}destroy(){this.__isDestroyed=!0}}class Ds extends Error{constructor(e){const{code:r,message:i}=e;super(i);ye(this,"code");this.code=r}}function Ts(t){return new Ds(t)}var $t;(function(t){t.Header="header",t.Params="params"})($t||($t={}));const ks="token",Rs=$t.Params;class ao{constructor(n={}){ye(this,"__useToken");ye(this,"__config");ye(this,"__recordToken");const{useToken:e=!0}=n;this.__config=n,this.__useToken=e}usePlugin(n){const{useToken:e=this.__useToken}=n;return e}interceptAuthorizeRequest(n){return De(this,null,function*(){const e=yield this.__getTokenInfo(n);if(!e)return n;const r=e.token||this.__recordToken;if(!r)return n;const{tokenField:i=ks,tokenMode:o=Rs,includeParams:s={}}=e;let c=n.params||{};const h=n.headers||{};return s&&(c=Object.assign({},c,s)),o===$t.Params&&(c[i]=r),o===$t.Header&&(h[i]=r),St(ze({},n),{params:c,headers:h})})}interceptResponse(n,e){return De(this,null,function*(){if(!n.headers)return;const r=e.responseTokenField||this.__config.responseTokenField;if(!r)return;const o=n.headers[r];o&&(this.__recordToken=o,this.__config.responseTokenCallback&&this.__config.responseTokenCallback({token:o}))})}__getTokenInfo(n){return De(this,null,function*(){let e=ze({},this.__config);if(typeof this.__config.getTokenInfo=="function"){const r=(yield this.__config.getTokenInfo(n))||{};e=ze(ze({},e),r)}return n.tokenInfo&&(e=ze(ze({},e),n.tokenInfo)),e})}}class Jr{constructor(n={}){ye(this,"__config");ye(this,"__useGlobalParams");this.__config=n;const{useGlobalParams:e=!0}=n;this.__useGlobalParams=e}usePlugin(n){const{useGlobalParams:e=this.__useGlobalParams}=n;return e}interceptIncludeParams(n){return De(this,null,function*(){let e;return typeof this.__config.globalParams=="function"?e=yield this.__config.globalParams(n):e=this.__config.globalParams,e})}}class so{constructor(n={}){ye(this,"__fields");ye(this,"__successCodes");ye(this,"__errorCallback");var e;this.__successCodes=this.__formateSuccessCode((e=n.successCode)!=null?e:200),this.__errorCallback=n.errorCallback,this.__fields=ze({codeField:"code",statusField:"status",messageField:"message",dataField:"data",errorField:"error",errorCodeField:"code",errorDescField:"desc"},n.fields)}usePlugin(n){const{useStatusCode:e=!0}=n;return e}interceptResponse(n,e){var f,p;if(!n.data)throw new Error(`status-code-plugin error: result.data is undefined, url: ${e.requestUrl}`);const r=this.__formatRes(n.data),i=r.code,o=r.status;if(this.__getSuccessCodes(e).includes(i)||o==="success")return Promise.resolve(St(ze({},n),{data:r.data}));const c=((f=r.error)==null?void 0:f.code)||i,h=((p=r.error)==null?void 0:p.desc)||r.message||"未知错误",a=Ts({code:c,message:h});return this.__errorCallback&&this.__errorCallback(c,h),Promise.reject(a)}__formatRes(n){const e=n[this.__fields.codeField],r=n[this.__fields.statusField],i=n[this.__fields.messageField],o=n[this.__fields.dataField],s={code:e,data:o,status:r,message:i},c=n[this.__fields.errorField];if(c){const h=c[this.__fields.errorCodeField],a=c[this.__fields.errorDescField];s.error={code:h,desc:a}}return s}__formateSuccessCode(n){return typeof n=="number"?[n]:Array.isArray(n)?n:[]}__getSuccessCodes(n){const e=this.__formateSuccessCode(n.successCode);return[...this.__successCodes,...e]}}var e0;(function(t){t.WholeResponse="wholeResponse",t.ResponseData="responseData"})(e0||(e0={}));var o0;(function(t){t.Hex="hex",t.Base64="base64"})(o0||(o0={}));var ke=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function A0(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Is(t){if(t.__esModule)return t;var n=t.default;if(typeof n=="function"){var e=function r(){return this instanceof r?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};e.prototype=n.prototype}else e={};return Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),e}var co={exports:{}};/*! MIT License. Copyright 2015-2018 Richard Moore <me@ricmoo.com>. See LICENSE.txt. */(function(t,n){(function(e){function r(P){return parseInt(P)===P}function i(P){if(!r(P.length))return!1;for(var l=0;l<P.length;l++)if(!r(P[l])||P[l]<0||P[l]>255)return!1;return!0}function o(P,l){if(P.buffer&&P.name==="Uint8Array")return l&&(P.slice?P=P.slice():P=Array.prototype.slice.call(P)),P;if(Array.isArray(P)){if(!i(P))throw new Error("Array contains invalid value: "+P);return new Uint8Array(P)}if(r(P.length)&&i(P))return new Uint8Array(P);throw new Error("unsupported array-like object")}function s(P){return new Uint8Array(P)}function c(P,l,y,w,T){(w!=null||T!=null)&&(P.slice?P=P.slice(w,T):P=Array.prototype.slice.call(P,w,T)),l.set(P,y)}var h=function(){function P(y){var w=[],T=0;for(y=encodeURI(y);T<y.length;){var N=y.charCodeAt(T++);N===37?(w.push(parseInt(y.substr(T,2),16)),T+=2):w.push(N)}return o(w)}function l(y){for(var w=[],T=0;T<y.length;){var N=y[T];N<128?(w.push(String.fromCharCode(N)),T++):N>191&&N<224?(w.push(String.fromCharCode((N&31)<<6|y[T+1]&63)),T+=2):(w.push(String.fromCharCode((N&15)<<12|(y[T+1]&63)<<6|y[T+2]&63)),T+=3)}return w.join("")}return{toBytes:P,fromBytes:l}}(),a=function(){function P(w){for(var T=[],N=0;N<w.length;N+=2)T.push(parseInt(w.substr(N,2),16));return T}var l="0123456789abcdef";function y(w){for(var T=[],N=0;N<w.length;N++){var X=w[N];T.push(l[(X&240)>>4]+l[X&15])}return T.join("")}return{toBytes:P,fromBytes:y}}(),f={16:10,24:12,32:14},p=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],x=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],u=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],b=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],m=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],E=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],A=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],g=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],v=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],d=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],_=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],B=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],C=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],S=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],k=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function F(P){for(var l=[],y=0;y<P.length;y+=4)l.push(P[y]<<24|P[y+1]<<16|P[y+2]<<8|P[y+3]);return l}var D=function(P){if(!(this instanceof D))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:o(P,!0)}),this._prepare()};D.prototype._prepare=function(){var P=f[this.key.length];if(P==null)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var l=0;l<=P;l++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);for(var y=(P+1)*4,w=this.key.length/4,T=F(this.key),N,l=0;l<w;l++)N=l>>2,this._Ke[N][l%4]=T[l],this._Kd[P-N][l%4]=T[l];for(var X=0,V=w,Y;V<y;){if(Y=T[w-1],T[0]^=x[Y>>16&255]<<24^x[Y>>8&255]<<16^x[Y&255]<<8^x[Y>>24&255]^p[X]<<24,X+=1,w!=8)for(var l=1;l<w;l++)T[l]^=T[l-1];else{for(var l=1;l<w/2;l++)T[l]^=T[l-1];Y=T[w/2-1],T[w/2]^=x[Y&255]^x[Y>>8&255]<<8^x[Y>>16&255]<<16^x[Y>>24&255]<<24;for(var l=w/2+1;l<w;l++)T[l]^=T[l-1]}for(var l=0,ie,ue;l<w&&V<y;)ie=V>>2,ue=V%4,this._Ke[ie][ue]=T[l],this._Kd[P-ie][ue]=T[l++],V++}for(var ie=1;ie<P;ie++)for(var ue=0;ue<4;ue++)Y=this._Kd[ie][ue],this._Kd[ie][ue]=B[Y>>24&255]^C[Y>>16&255]^S[Y>>8&255]^k[Y&255]},D.prototype.encrypt=function(P){if(P.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var l=this._Ke.length-1,y=[0,0,0,0],w=F(P),T=0;T<4;T++)w[T]^=this._Ke[0][T];for(var N=1;N<l;N++){for(var T=0;T<4;T++)y[T]=b[w[T]>>24&255]^m[w[(T+1)%4]>>16&255]^E[w[(T+2)%4]>>8&255]^A[w[(T+3)%4]&255]^this._Ke[N][T];w=y.slice()}for(var X=s(16),V,T=0;T<4;T++)V=this._Ke[l][T],X[4*T]=(x[w[T]>>24&255]^V>>24)&255,X[4*T+1]=(x[w[(T+1)%4]>>16&255]^V>>16)&255,X[4*T+2]=(x[w[(T+2)%4]>>8&255]^V>>8)&255,X[4*T+3]=(x[w[(T+3)%4]&255]^V)&255;return X},D.prototype.decrypt=function(P){if(P.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var l=this._Kd.length-1,y=[0,0,0,0],w=F(P),T=0;T<4;T++)w[T]^=this._Kd[0][T];for(var N=1;N<l;N++){for(var T=0;T<4;T++)y[T]=g[w[T]>>24&255]^v[w[(T+3)%4]>>16&255]^d[w[(T+2)%4]>>8&255]^_[w[(T+1)%4]&255]^this._Kd[N][T];w=y.slice()}for(var X=s(16),V,T=0;T<4;T++)V=this._Kd[l][T],X[4*T]=(u[w[T]>>24&255]^V>>24)&255,X[4*T+1]=(u[w[(T+3)%4]>>16&255]^V>>16)&255,X[4*T+2]=(u[w[(T+2)%4]>>8&255]^V>>8)&255,X[4*T+3]=(u[w[(T+1)%4]&255]^V)&255;return X};var O=function(P){if(!(this instanceof O))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new D(P)};O.prototype.encrypt=function(P){if(P=o(P),P.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var l=s(P.length),y=s(16),w=0;w<P.length;w+=16)c(P,y,0,w,w+16),y=this._aes.encrypt(y),c(y,l,w);return l},O.prototype.decrypt=function(P){if(P=o(P),P.length%16!==0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var l=s(P.length),y=s(16),w=0;w<P.length;w+=16)c(P,y,0,w,w+16),y=this._aes.decrypt(y),c(y,l,w);return l};var M=function(P,l){if(!(this instanceof M))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Block Chaining",this.name="cbc",!l)l=s(16);else if(l.length!=16)throw new Error("invalid initialation vector size (must be 16 bytes)");this._lastCipherblock=o(l,!0),this._aes=new D(P)};M.prototype.encrypt=function(P){if(P=o(P),P.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var l=s(P.length),y=s(16),w=0;w<P.length;w+=16){c(P,y,0,w,w+16);for(var T=0;T<16;T++)y[T]^=this._lastCipherblock[T];this._lastCipherblock=this._aes.encrypt(y),c(this._lastCipherblock,l,w)}return l},M.prototype.decrypt=function(P){if(P=o(P),P.length%16!==0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var l=s(P.length),y=s(16),w=0;w<P.length;w+=16){c(P,y,0,w,w+16),y=this._aes.decrypt(y);for(var T=0;T<16;T++)l[w+T]=y[T]^this._lastCipherblock[T];c(P,this._lastCipherblock,0,w,w+16)}return l};var U=function(P,l,y){if(!(this instanceof U))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Feedback",this.name="cfb",!l)l=s(16);else if(l.length!=16)throw new Error("invalid initialation vector size (must be 16 size)");y||(y=1),this.segmentSize=y,this._shiftRegister=o(l,!0),this._aes=new D(P)};U.prototype.encrypt=function(P){if(P.length%this.segmentSize!=0)throw new Error("invalid plaintext size (must be segmentSize bytes)");for(var l=o(P,!0),y,w=0;w<l.length;w+=this.segmentSize){y=this._aes.encrypt(this._shiftRegister);for(var T=0;T<this.segmentSize;T++)l[w+T]^=y[T];c(this._shiftRegister,this._shiftRegister,0,this.segmentSize),c(l,this._shiftRegister,16-this.segmentSize,w,w+this.segmentSize)}return l},U.prototype.decrypt=function(P){if(P.length%this.segmentSize!=0)throw new Error("invalid ciphertext size (must be segmentSize bytes)");for(var l=o(P,!0),y,w=0;w<l.length;w+=this.segmentSize){y=this._aes.encrypt(this._shiftRegister);for(var T=0;T<this.segmentSize;T++)l[w+T]^=y[T];c(this._shiftRegister,this._shiftRegister,0,this.segmentSize),c(P,this._shiftRegister,16-this.segmentSize,w,w+this.segmentSize)}return l};var z=function(P,l){if(!(this instanceof z))throw Error("AES must be instanitated with `new`");if(this.description="Output Feedback",this.name="ofb",!l)l=s(16);else if(l.length!=16)throw new Error("invalid initialation vector size (must be 16 bytes)");this._lastPrecipher=o(l,!0),this._lastPrecipherIndex=16,this._aes=new D(P)};z.prototype.encrypt=function(P){for(var l=o(P,!0),y=0;y<l.length;y++)this._lastPrecipherIndex===16&&(this._lastPrecipher=this._aes.encrypt(this._lastPrecipher),this._lastPrecipherIndex=0),l[y]^=this._lastPrecipher[this._lastPrecipherIndex++];return l},z.prototype.decrypt=z.prototype.encrypt;var j=function(P){if(!(this instanceof j))throw Error("Counter must be instanitated with `new`");P!==0&&!P&&(P=1),typeof P=="number"?(this._counter=s(16),this.setValue(P)):this.setBytes(P)};j.prototype.setValue=function(P){if(typeof P!="number"||parseInt(P)!=P)throw new Error("invalid counter value (must be an integer)");if(P>Number.MAX_SAFE_INTEGER)throw new Error("integer value out of safe range");for(var l=15;l>=0;--l)this._counter[l]=P%256,P=parseInt(P/256)},j.prototype.setBytes=function(P){if(P=o(P,!0),P.length!=16)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=P},j.prototype.increment=function(){for(var P=15;P>=0;P--)if(this._counter[P]===255)this._counter[P]=0;else{this._counter[P]++;break}};var W=function(P,l){if(!(this instanceof W))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",l instanceof j||(l=new j(l)),this._counter=l,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new D(P)};W.prototype.encrypt=function(P){for(var l=o(P,!0),y=0;y<l.length;y++)this._remainingCounterIndex===16&&(this._remainingCounter=this._aes.encrypt(this._counter._counter),this._remainingCounterIndex=0,this._counter.increment()),l[y]^=this._remainingCounter[this._remainingCounterIndex++];return l},W.prototype.decrypt=W.prototype.encrypt;function Q(P){P=o(P,!0);var l=16-P.length%16,y=s(P.length+l);c(P,y);for(var w=P.length;w<y.length;w++)y[w]=l;return y}function Z(P){if(P=o(P,!0),P.length<16)throw new Error("PKCS#7 invalid length");var l=P[P.length-1];if(l>16)throw new Error("PKCS#7 padding byte out of range");for(var y=P.length-l,w=0;w<l;w++)if(P[y+w]!==l)throw new Error("PKCS#7 invalid padding byte");var T=s(y);return c(P,T,0,0,y),T}var te={AES:D,Counter:j,ModeOfOperation:{ecb:O,cbc:M,cfb:U,ofb:z,ctr:W},utils:{hex:a,utf8:h},padding:{pkcs7:{pad:Q,strip:Z}},_arrayTest:{coerceArray:o,createArray:s,copyArray:c}};t.exports=te})()})(co);var Ps=co.exports;const H0=A0(Ps);var fo={exports:{}};function Os(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var cr={exports:{}};const qs={},Ms=Object.freeze(Object.defineProperty({__proto__:null,default:qs},Symbol.toStringTag,{value:"Module"})),xo=Is(Ms);var Nn;function Ne(){return Nn||(Nn=1,function(t,n){(function(e,r){t.exports=r()})(ke,function(){var e=e||function(r,i){var o;if(typeof window!="undefined"&&window.crypto&&(o=window.crypto),typeof self!="undefined"&&self.crypto&&(o=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(o=globalThis.crypto),!o&&typeof window!="undefined"&&window.msCrypto&&(o=window.msCrypto),!o&&typeof ke!="undefined"&&ke.crypto&&(o=ke.crypto),!o&&typeof Os=="function")try{o=xo}catch(g){}var s=function(){if(o){if(typeof o.getRandomValues=="function")try{return o.getRandomValues(new Uint32Array(1))[0]}catch(g){}if(typeof o.randomBytes=="function")try{return o.randomBytes(4).readInt32LE()}catch(g){}}throw new Error("Native crypto module could not be used to get secure random number.")},c=Object.create||function(){function g(){}return function(v){var d;return g.prototype=v,d=new g,g.prototype=null,d}}(),h={},a=h.lib={},f=a.Base=function(){return{extend:function(g){var v=c(this);return g&&v.mixIn(g),(!v.hasOwnProperty("init")||this.init===v.init)&&(v.init=function(){v.$super.init.apply(this,arguments)}),v.init.prototype=v,v.$super=this,v},create:function(){var g=this.extend();return g.init.apply(g,arguments),g},init:function(){},mixIn:function(g){for(var v in g)g.hasOwnProperty(v)&&(this[v]=g[v]);g.hasOwnProperty("toString")&&(this.toString=g.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),p=a.WordArray=f.extend({init:function(g,v){g=this.words=g||[],v!=i?this.sigBytes=v:this.sigBytes=g.length*4},toString:function(g){return(g||u).stringify(this)},concat:function(g){var v=this.words,d=g.words,_=this.sigBytes,B=g.sigBytes;if(this.clamp(),_%4)for(var C=0;C<B;C++){var S=d[C>>>2]>>>24-C%4*8&255;v[_+C>>>2]|=S<<24-(_+C)%4*8}else for(var k=0;k<B;k+=4)v[_+k>>>2]=d[k>>>2];return this.sigBytes+=B,this},clamp:function(){var g=this.words,v=this.sigBytes;g[v>>>2]&=4294967295<<32-v%4*8,g.length=r.ceil(v/4)},clone:function(){var g=f.clone.call(this);return g.words=this.words.slice(0),g},random:function(g){for(var v=[],d=0;d<g;d+=4)v.push(s());return new p.init(v,g)}}),x=h.enc={},u=x.Hex={stringify:function(g){for(var v=g.words,d=g.sigBytes,_=[],B=0;B<d;B++){var C=v[B>>>2]>>>24-B%4*8&255;_.push((C>>>4).toString(16)),_.push((C&15).toString(16))}return _.join("")},parse:function(g){for(var v=g.length,d=[],_=0;_<v;_+=2)d[_>>>3]|=parseInt(g.substr(_,2),16)<<24-_%8*4;return new p.init(d,v/2)}},b=x.Latin1={stringify:function(g){for(var v=g.words,d=g.sigBytes,_=[],B=0;B<d;B++){var C=v[B>>>2]>>>24-B%4*8&255;_.push(String.fromCharCode(C))}return _.join("")},parse:function(g){for(var v=g.length,d=[],_=0;_<v;_++)d[_>>>2]|=(g.charCodeAt(_)&255)<<24-_%4*8;return new p.init(d,v)}},m=x.Utf8={stringify:function(g){try{return decodeURIComponent(escape(b.stringify(g)))}catch(v){throw new Error("Malformed UTF-8 data")}},parse:function(g){return b.parse(unescape(encodeURIComponent(g)))}},E=a.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new p.init,this._nDataBytes=0},_append:function(g){typeof g=="string"&&(g=m.parse(g)),this._data.concat(g),this._nDataBytes+=g.sigBytes},_process:function(g){var v,d=this._data,_=d.words,B=d.sigBytes,C=this.blockSize,S=C*4,k=B/S;g?k=r.ceil(k):k=r.max((k|0)-this._minBufferSize,0);var F=k*C,D=r.min(F*4,B);if(F){for(var O=0;O<F;O+=C)this._doProcessBlock(_,O);v=_.splice(0,F),d.sigBytes-=D}return new p.init(v,D)},clone:function(){var g=f.clone.call(this);return g._data=this._data.clone(),g},_minBufferSize:0});a.Hasher=E.extend({cfg:f.extend(),init:function(g){this.cfg=this.cfg.extend(g),this.reset()},reset:function(){E.reset.call(this),this._doReset()},update:function(g){return this._append(g),this._process(),this},finalize:function(g){g&&this._append(g);var v=this._doFinalize();return v},blockSize:16,_createHelper:function(g){return function(v,d){return new g.init(d).finalize(v)}},_createHmacHelper:function(g){return function(v,d){return new A.HMAC.init(g,d).finalize(v)}}});var A=h.algo={};return h}(Math);return e})}(cr)),cr.exports}var fr={exports:{}},Hn;function Z0(){return Hn||(Hn=1,function(t,n){(function(e,r){t.exports=r(Ne())})(ke,function(e){return function(r){var i=e,o=i.lib,s=o.Base,c=o.WordArray,h=i.x64={};h.Word=s.extend({init:function(a,f){this.high=a,this.low=f}}),h.WordArray=s.extend({init:function(a,f){a=this.words=a||[],f!=r?this.sigBytes=f:this.sigBytes=a.length*8},toX32:function(){for(var a=this.words,f=a.length,p=[],x=0;x<f;x++){var u=a[x];p.push(u.high),p.push(u.low)}return c.create(p,this.sigBytes)},clone:function(){for(var a=s.clone.call(this),f=a.words=this.words.slice(0),p=f.length,x=0;x<p;x++)f[x]=f[x].clone();return a}})}(),e})}(fr)),fr.exports}var xr={exports:{}},Un;function Ns(){return Un||(Un=1,function(t,n){(function(e,r){t.exports=r(Ne())})(ke,function(e){return function(){if(typeof ArrayBuffer=="function"){var r=e,i=r.lib,o=i.WordArray,s=o.init,c=o.init=function(h){if(h instanceof ArrayBuffer&&(h=new Uint8Array(h)),(h instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&h instanceof Uint8ClampedArray||h instanceof Int16Array||h instanceof Uint16Array||h instanceof Int32Array||h instanceof Uint32Array||h instanceof Float32Array||h instanceof Float64Array)&&(h=new Uint8Array(h.buffer,h.byteOffset,h.byteLength)),h instanceof Uint8Array){for(var a=h.byteLength,f=[],p=0;p<a;p++)f[p>>>2]|=h[p]<<24-p%4*8;s.call(this,f,a)}else s.apply(this,arguments)};c.prototype=o}}(),e.lib.WordArray})}(xr)),xr.exports}var ur={exports:{}},zn;function Hs(){return zn||(zn=1,function(t,n){(function(e,r){t.exports=r(Ne())})(ke,function(e){return function(){var r=e,i=r.lib,o=i.WordArray,s=r.enc;s.Utf16=s.Utf16BE={stringify:function(h){for(var a=h.words,f=h.sigBytes,p=[],x=0;x<f;x+=2){var u=a[x>>>2]>>>16-x%4*8&65535;p.push(String.fromCharCode(u))}return p.join("")},parse:function(h){for(var a=h.length,f=[],p=0;p<a;p++)f[p>>>1]|=h.charCodeAt(p)<<16-p%2*16;return o.create(f,a*2)}},s.Utf16LE={stringify:function(h){for(var a=h.words,f=h.sigBytes,p=[],x=0;x<f;x+=2){var u=c(a[x>>>2]>>>16-x%4*8&65535);p.push(String.fromCharCode(u))}return p.join("")},parse:function(h){for(var a=h.length,f=[],p=0;p<a;p++)f[p>>>1]|=c(h.charCodeAt(p)<<16-p%2*16);return o.create(f,a*2)}};function c(h){return h<<8&4278255360|h>>>8&16711935}}(),e.enc.Utf16})}(ur)),ur.exports}var dr={exports:{}},jn;function Kt(){return jn||(jn=1,function(t,n){(function(e,r){t.exports=r(Ne())})(ke,function(e){return function(){var r=e,i=r.lib,o=i.WordArray,s=r.enc;s.Base64={stringify:function(h){var a=h.words,f=h.sigBytes,p=this._map;h.clamp();for(var x=[],u=0;u<f;u+=3)for(var b=a[u>>>2]>>>24-u%4*8&255,m=a[u+1>>>2]>>>24-(u+1)%4*8&255,E=a[u+2>>>2]>>>24-(u+2)%4*8&255,A=b<<16|m<<8|E,g=0;g<4&&u+g*.75<f;g++)x.push(p.charAt(A>>>6*(3-g)&63));var v=p.charAt(64);if(v)for(;x.length%4;)x.push(v);return x.join("")},parse:function(h){var a=h.length,f=this._map,p=this._reverseMap;if(!p){p=this._reverseMap=[];for(var x=0;x<f.length;x++)p[f.charCodeAt(x)]=x}var u=f.charAt(64);if(u){var b=h.indexOf(u);b!==-1&&(a=b)}return c(h,a,p)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function c(h,a,f){for(var p=[],x=0,u=0;u<a;u++)if(u%4){var b=f[h.charCodeAt(u-1)]<<u%4*2,m=f[h.charCodeAt(u)]>>>6-u%4*2,E=b|m;p[x>>>2]|=E<<24-x%4*8,x++}return o.create(p,x)}}(),e.enc.Base64})}(dr)),dr.exports}var hr={exports:{}},Ln;function Us(){return Ln||(Ln=1,function(t,n){(function(e,r){t.exports=r(Ne())})(ke,function(e){return function(){var r=e,i=r.lib,o=i.WordArray,s=r.enc;s.Base64url={stringify:function(h,a){a===void 0&&(a=!0);var f=h.words,p=h.sigBytes,x=a?this._safe_map:this._map;h.clamp();for(var u=[],b=0;b<p;b+=3)for(var m=f[b>>>2]>>>24-b%4*8&255,E=f[b+1>>>2]>>>24-(b+1)%4*8&255,A=f[b+2>>>2]>>>24-(b+2)%4*8&255,g=m<<16|E<<8|A,v=0;v<4&&b+v*.75<p;v++)u.push(x.charAt(g>>>6*(3-v)&63));var d=x.charAt(64);if(d)for(;u.length%4;)u.push(d);return u.join("")},parse:function(h,a){a===void 0&&(a=!0);var f=h.length,p=a?this._safe_map:this._map,x=this._reverseMap;if(!x){x=this._reverseMap=[];for(var u=0;u<p.length;u++)x[p.charCodeAt(u)]=u}var b=p.charAt(64);if(b){var m=h.indexOf(b);m!==-1&&(f=m)}return c(h,f,x)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function c(h,a,f){for(var p=[],x=0,u=0;u<a;u++)if(u%4){var b=f[h.charCodeAt(u-1)]<<u%4*2,m=f[h.charCodeAt(u)]>>>6-u%4*2,E=b|m;p[x>>>2]|=E<<24-x%4*8,x++}return o.create(p,x)}}(),e.enc.Base64url})}(hr)),hr.exports}var lr={exports:{}},Wn;function Vt(){return Wn||(Wn=1,function(t,n){(function(e,r){t.exports=r(Ne())})(ke,function(e){return function(r){var i=e,o=i.lib,s=o.WordArray,c=o.Hasher,h=i.algo,a=[];(function(){for(var m=0;m<64;m++)a[m]=r.abs(r.sin(m+1))*4294967296|0})();var f=h.MD5=c.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(m,E){for(var A=0;A<16;A++){var g=E+A,v=m[g];m[g]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360}var d=this._hash.words,_=m[E+0],B=m[E+1],C=m[E+2],S=m[E+3],k=m[E+4],F=m[E+5],D=m[E+6],O=m[E+7],M=m[E+8],U=m[E+9],z=m[E+10],j=m[E+11],W=m[E+12],Q=m[E+13],Z=m[E+14],te=m[E+15],P=d[0],l=d[1],y=d[2],w=d[3];P=p(P,l,y,w,_,7,a[0]),w=p(w,P,l,y,B,12,a[1]),y=p(y,w,P,l,C,17,a[2]),l=p(l,y,w,P,S,22,a[3]),P=p(P,l,y,w,k,7,a[4]),w=p(w,P,l,y,F,12,a[5]),y=p(y,w,P,l,D,17,a[6]),l=p(l,y,w,P,O,22,a[7]),P=p(P,l,y,w,M,7,a[8]),w=p(w,P,l,y,U,12,a[9]),y=p(y,w,P,l,z,17,a[10]),l=p(l,y,w,P,j,22,a[11]),P=p(P,l,y,w,W,7,a[12]),w=p(w,P,l,y,Q,12,a[13]),y=p(y,w,P,l,Z,17,a[14]),l=p(l,y,w,P,te,22,a[15]),P=x(P,l,y,w,B,5,a[16]),w=x(w,P,l,y,D,9,a[17]),y=x(y,w,P,l,j,14,a[18]),l=x(l,y,w,P,_,20,a[19]),P=x(P,l,y,w,F,5,a[20]),w=x(w,P,l,y,z,9,a[21]),y=x(y,w,P,l,te,14,a[22]),l=x(l,y,w,P,k,20,a[23]),P=x(P,l,y,w,U,5,a[24]),w=x(w,P,l,y,Z,9,a[25]),y=x(y,w,P,l,S,14,a[26]),l=x(l,y,w,P,M,20,a[27]),P=x(P,l,y,w,Q,5,a[28]),w=x(w,P,l,y,C,9,a[29]),y=x(y,w,P,l,O,14,a[30]),l=x(l,y,w,P,W,20,a[31]),P=u(P,l,y,w,F,4,a[32]),w=u(w,P,l,y,M,11,a[33]),y=u(y,w,P,l,j,16,a[34]),l=u(l,y,w,P,Z,23,a[35]),P=u(P,l,y,w,B,4,a[36]),w=u(w,P,l,y,k,11,a[37]),y=u(y,w,P,l,O,16,a[38]),l=u(l,y,w,P,z,23,a[39]),P=u(P,l,y,w,Q,4,a[40]),w=u(w,P,l,y,_,11,a[41]),y=u(y,w,P,l,S,16,a[42]),l=u(l,y,w,P,D,23,a[43]),P=u(P,l,y,w,U,4,a[44]),w=u(w,P,l,y,W,11,a[45]),y=u(y,w,P,l,te,16,a[46]),l=u(l,y,w,P,C,23,a[47]),P=b(P,l,y,w,_,6,a[48]),w=b(w,P,l,y,O,10,a[49]),y=b(y,w,P,l,Z,15,a[50]),l=b(l,y,w,P,F,21,a[51]),P=b(P,l,y,w,W,6,a[52]),w=b(w,P,l,y,S,10,a[53]),y=b(y,w,P,l,z,15,a[54]),l=b(l,y,w,P,B,21,a[55]),P=b(P,l,y,w,M,6,a[56]),w=b(w,P,l,y,te,10,a[57]),y=b(y,w,P,l,D,15,a[58]),l=b(l,y,w,P,Q,21,a[59]),P=b(P,l,y,w,k,6,a[60]),w=b(w,P,l,y,j,10,a[61]),y=b(y,w,P,l,C,15,a[62]),l=b(l,y,w,P,U,21,a[63]),d[0]=d[0]+P|0,d[1]=d[1]+l|0,d[2]=d[2]+y|0,d[3]=d[3]+w|0},_doFinalize:function(){var m=this._data,E=m.words,A=this._nDataBytes*8,g=m.sigBytes*8;E[g>>>5]|=128<<24-g%32;var v=r.floor(A/4294967296),d=A;E[(g+64>>>9<<4)+15]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,E[(g+64>>>9<<4)+14]=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,m.sigBytes=(E.length+1)*4,this._process();for(var _=this._hash,B=_.words,C=0;C<4;C++){var S=B[C];B[C]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360}return _},clone:function(){var m=c.clone.call(this);return m._hash=this._hash.clone(),m}});function p(m,E,A,g,v,d,_){var B=m+(E&A|~E&g)+v+_;return(B<<d|B>>>32-d)+E}function x(m,E,A,g,v,d,_){var B=m+(E&g|A&~g)+v+_;return(B<<d|B>>>32-d)+E}function u(m,E,A,g,v,d,_){var B=m+(E^A^g)+v+_;return(B<<d|B>>>32-d)+E}function b(m,E,A,g,v,d,_){var B=m+(A^(E|~g))+v+_;return(B<<d|B>>>32-d)+E}i.MD5=c._createHelper(f),i.HmacMD5=c._createHmacHelper(f)}(Math),e.MD5})}(lr)),lr.exports}var pr={exports:{}},$n;function uo(){return $n||($n=1,function(t,n){(function(e,r){t.exports=r(Ne())})(ke,function(e){return function(){var r=e,i=r.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(f,p){for(var x=this._hash.words,u=x[0],b=x[1],m=x[2],E=x[3],A=x[4],g=0;g<80;g++){if(g<16)h[g]=f[p+g]|0;else{var v=h[g-3]^h[g-8]^h[g-14]^h[g-16];h[g]=v<<1|v>>>31}var d=(u<<5|u>>>27)+A+h[g];g<20?d+=(b&m|~b&E)+1518500249:g<40?d+=(b^m^E)+1859775393:g<60?d+=(b&m|b&E|m&E)-1894007588:d+=(b^m^E)-899497514,A=E,E=m,m=b<<30|b>>>2,b=u,u=d}x[0]=x[0]+u|0,x[1]=x[1]+b|0,x[2]=x[2]+m|0,x[3]=x[3]+E|0,x[4]=x[4]+A|0},_doFinalize:function(){var f=this._data,p=f.words,x=this._nDataBytes*8,u=f.sigBytes*8;return p[u>>>5]|=128<<24-u%32,p[(u+64>>>9<<4)+14]=Math.floor(x/4294967296),p[(u+64>>>9<<4)+15]=x,f.sigBytes=p.length*4,this._process(),this._hash},clone:function(){var f=s.clone.call(this);return f._hash=this._hash.clone(),f}});r.SHA1=s._createHelper(a),r.HmacSHA1=s._createHmacHelper(a)}(),e.SHA1})}(pr)),pr.exports}var vr={exports:{}},Kn;function ln(){return Kn||(Kn=1,function(t,n){(function(e,r){t.exports=r(Ne())})(ke,function(e){return function(r){var i=e,o=i.lib,s=o.WordArray,c=o.Hasher,h=i.algo,a=[],f=[];(function(){function u(A){for(var g=r.sqrt(A),v=2;v<=g;v++)if(!(A%v))return!1;return!0}function b(A){return(A-(A|0))*4294967296|0}for(var m=2,E=0;E<64;)u(m)&&(E<8&&(a[E]=b(r.pow(m,1/2))),f[E]=b(r.pow(m,1/3)),E++),m++})();var p=[],x=h.SHA256=c.extend({_doReset:function(){this._hash=new s.init(a.slice(0))},_doProcessBlock:function(u,b){for(var m=this._hash.words,E=m[0],A=m[1],g=m[2],v=m[3],d=m[4],_=m[5],B=m[6],C=m[7],S=0;S<64;S++){if(S<16)p[S]=u[b+S]|0;else{var k=p[S-15],F=(k<<25|k>>>7)^(k<<14|k>>>18)^k>>>3,D=p[S-2],O=(D<<15|D>>>17)^(D<<13|D>>>19)^D>>>10;p[S]=F+p[S-7]+O+p[S-16]}var M=d&_^~d&B,U=E&A^E&g^A&g,z=(E<<30|E>>>2)^(E<<19|E>>>13)^(E<<10|E>>>22),j=(d<<26|d>>>6)^(d<<21|d>>>11)^(d<<7|d>>>25),W=C+j+M+f[S]+p[S],Q=z+U;C=B,B=_,_=d,d=v+W|0,v=g,g=A,A=E,E=W+Q|0}m[0]=m[0]+E|0,m[1]=m[1]+A|0,m[2]=m[2]+g|0,m[3]=m[3]+v|0,m[4]=m[4]+d|0,m[5]=m[5]+_|0,m[6]=m[6]+B|0,m[7]=m[7]+C|0},_doFinalize:function(){var u=this._data,b=u.words,m=this._nDataBytes*8,E=u.sigBytes*8;return b[E>>>5]|=128<<24-E%32,b[(E+64>>>9<<4)+14]=r.floor(m/4294967296),b[(E+64>>>9<<4)+15]=m,u.sigBytes=b.length*4,this._process(),this._hash},clone:function(){var u=c.clone.call(this);return u._hash=this._hash.clone(),u}});i.SHA256=c._createHelper(x),i.HmacSHA256=c._createHmacHelper(x)}(Math),e.SHA256})}(vr)),vr.exports}var br={exports:{}},Vn;function zs(){return Vn||(Vn=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),ln())})(ke,function(e){return function(){var r=e,i=r.lib,o=i.WordArray,s=r.algo,c=s.SHA256,h=s.SHA224=c.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var a=c._doFinalize.call(this);return a.sigBytes-=4,a}});r.SHA224=c._createHelper(h),r.HmacSHA224=c._createHmacHelper(h)}(),e.SHA224})}(br)),br.exports}var yr={exports:{}},Xn;function ho(){return Xn||(Xn=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),Z0())})(ke,function(e){return function(){var r=e,i=r.lib,o=i.Hasher,s=r.x64,c=s.Word,h=s.WordArray,a=r.algo;function f(){return c.create.apply(c,arguments)}var p=[f(1116352408,3609767458),f(1899447441,602891725),f(3049323471,3964484399),f(3921009573,2173295548),f(961987163,4081628472),f(1508970993,3053834265),f(2453635748,2937671579),f(2870763221,3664609560),f(3624381080,2734883394),f(310598401,1164996542),f(607225278,1323610764),f(1426881987,3590304994),f(1925078388,4068182383),f(2162078206,991336113),f(2614888103,633803317),f(3248222580,3479774868),f(3835390401,2666613458),f(4022224774,944711139),f(264347078,2341262773),f(604807628,2007800933),f(770255983,1495990901),f(1249150122,1856431235),f(1555081692,3175218132),f(1996064986,2198950837),f(2554220882,3999719339),f(2821834349,766784016),f(2952996808,2566594879),f(3210313671,3203337956),f(3336571891,1034457026),f(3584528711,2466948901),f(113926993,3758326383),f(338241895,168717936),f(666307205,1188179964),f(773529912,1546045734),f(1294757372,1522805485),f(1396182291,2643833823),f(1695183700,2343527390),f(1986661051,1014477480),f(2177026350,1206759142),f(2456956037,344077627),f(2730485921,1290863460),f(2820302411,3158454273),f(3259730800,3505952657),f(3345764771,106217008),f(3516065817,3606008344),f(3600352804,1432725776),f(4094571909,1467031594),f(275423344,851169720),f(430227734,3100823752),f(506948616,1363258195),f(659060556,3750685593),f(883997877,3785050280),f(958139571,3318307427),f(1322822218,3812723403),f(1537002063,2003034995),f(1747873779,3602036899),f(1955562222,1575990012),f(2024104815,1125592928),f(2227730452,2716904306),f(2361852424,442776044),f(2428436474,593698344),f(2756734187,3733110249),f(3204031479,2999351573),f(3329325298,3815920427),f(3391569614,3928383900),f(3515267271,566280711),f(3940187606,3454069534),f(4118630271,4000239992),f(116418474,1914138554),f(174292421,2731055270),f(289380356,3203993006),f(460393269,320620315),f(685471733,587496836),f(852142971,1086792851),f(1017036298,365543100),f(1126000580,2618297676),f(1288033470,3409855158),f(1501505948,4234509866),f(1607167915,987167468),f(1816402316,1246189591)],x=[];(function(){for(var b=0;b<80;b++)x[b]=f()})();var u=a.SHA512=o.extend({_doReset:function(){this._hash=new h.init([new c.init(1779033703,4089235720),new c.init(3144134277,2227873595),new c.init(1013904242,4271175723),new c.init(2773480762,1595750129),new c.init(1359893119,2917565137),new c.init(2600822924,725511199),new c.init(528734635,4215389547),new c.init(1541459225,327033209)])},_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=A.high,F=A.low,D=g.high,O=g.low,M=v.high,U=v.low,z=d.high,j=d.low,W=_.high,Q=_.low,Z=B.high,te=B.low,P=C.high,l=C.low,y=S.high,w=S.low,T=k,N=F,X=D,V=O,Y=M,ie=U,ue=z,Ee=j,we=W,ve=Q,Be=Z,qe=te,Re=P,We=l,J=y,ce=w,le=0;le<80;le++){var me,ge,Ve=x[le];if(le<16)ge=Ve.high=b[m+le*2]|0,me=Ve.low=b[m+le*2+1]|0;else{var Oe=x[le-15],Te=Oe.high,Ae=Oe.low,Ue=(Te>>>1|Ae<<31)^(Te>>>8|Ae<<24)^Te>>>7,Ge=(Ae>>>1|Te<<31)^(Ae>>>8|Te<<24)^(Ae>>>7|Te<<25),$e=x[le-2],ee=$e.high,oe=$e.low,he=(ee>>>19|oe<<13)^(ee<<3|oe>>>29)^ee>>>6,be=(oe>>>19|ee<<13)^(oe<<3|ee>>>29)^(oe>>>6|ee<<26),Ce=x[le-7],He=Ce.high,Ke=Ce.low,Ye=x[le-16],Ze=Ye.high,fe=Ye.low;me=Ge+Ke,ge=Ue+He+(me>>>0<Ge>>>0?1:0),me=me+be,ge=ge+he+(me>>>0<be>>>0?1:0),me=me+fe,ge=ge+Ze+(me>>>0<fe>>>0?1:0),Ve.high=ge,Ve.low=me}var H=we&Be^~we&Re,L=ve&qe^~ve&We,K=T&X^T&Y^X&Y,G=N&V^N&ie^V&ie,se=(T>>>28|N<<4)^(T<<30|N>>>2)^(T<<25|N>>>7),ne=(N>>>28|T<<4)^(N<<30|T>>>2)^(N<<25|T>>>7),pe=(we>>>14|ve<<18)^(we>>>18|ve<<14)^(we<<23|ve>>>9),_e=(ve>>>14|we<<18)^(ve>>>18|we<<14)^(ve<<23|we>>>9),Fe=p[le],Se=Fe.high,Le=Fe.low,Pe=ce+_e,Qe=J+pe+(Pe>>>0<ce>>>0?1:0),Pe=Pe+L,Qe=Qe+H+(Pe>>>0<L>>>0?1:0),Pe=Pe+Le,Qe=Qe+Se+(Pe>>>0<Le>>>0?1:0),Pe=Pe+me,Qe=Qe+ge+(Pe>>>0<me>>>0?1:0),et=ne+G,xt=se+K+(et>>>0<ne>>>0?1:0);J=Re,ce=We,Re=Be,We=qe,Be=we,qe=ve,ve=Ee+Pe|0,we=ue+Qe+(ve>>>0<Ee>>>0?1:0)|0,ue=Y,Ee=ie,Y=X,ie=V,X=T,V=N,N=Pe+et|0,T=Qe+xt+(N>>>0<Pe>>>0?1:0)|0}F=A.low=F+N,A.high=k+T+(F>>>0<N>>>0?1:0),O=g.low=O+V,g.high=D+X+(O>>>0<V>>>0?1:0),U=v.low=U+ie,v.high=M+Y+(U>>>0<ie>>>0?1:0),j=d.low=j+Ee,d.high=z+ue+(j>>>0<Ee>>>0?1:0),Q=_.low=Q+ve,_.high=W+we+(Q>>>0<ve>>>0?1:0),te=B.low=te+qe,B.high=Z+Be+(te>>>0<qe>>>0?1:0),l=C.low=l+We,C.high=P+Re+(l>>>0<We>>>0?1:0),w=S.low=w+ce,S.high=y+J+(w>>>0<ce>>>0?1:0)},_doFinalize:function(){var b=this._data,m=b.words,E=this._nDataBytes*8,A=b.sigBytes*8;m[A>>>5]|=128<<24-A%32,m[(A+128>>>10<<5)+30]=Math.floor(E/4294967296),m[(A+128>>>10<<5)+31]=E,b.sigBytes=m.length*4,this._process();var g=this._hash.toX32();return g},clone:function(){var b=o.clone.call(this);return b._hash=this._hash.clone(),b},blockSize:1024/32});r.SHA512=o._createHelper(u),r.HmacSHA512=o._createHmacHelper(u)}(),e.SHA512})}(yr)),yr.exports}var gr={exports:{}},Gn;function js(){return Gn||(Gn=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),Z0(),ho())})(ke,function(e){return function(){var r=e,i=r.x64,o=i.Word,s=i.WordArray,c=r.algo,h=c.SHA512,a=c.SHA384=h.extend({_doReset:function(){this._hash=new s.init([new o.init(3418070365,3238371032),new o.init(1654270250,914150663),new o.init(2438529370,812702999),new o.init(355462360,4144912697),new o.init(1731405415,4290775857),new o.init(2394180231,1750603025),new o.init(3675008525,1694076839),new o.init(1203062813,3204075428)])},_doFinalize:function(){var f=h._doFinalize.call(this);return f.sigBytes-=16,f}});r.SHA384=h._createHelper(a),r.HmacSHA384=h._createHmacHelper(a)}(),e.SHA384})}(gr)),gr.exports}var mr={exports:{}},Yn;function Ls(){return Yn||(Yn=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),Z0())})(ke,function(e){return function(r){var i=e,o=i.lib,s=o.WordArray,c=o.Hasher,h=i.x64,a=h.Word,f=i.algo,p=[],x=[],u=[];(function(){for(var E=1,A=0,g=0;g<24;g++){p[E+5*A]=(g+1)*(g+2)/2%64;var v=A%5,d=(2*E+3*A)%5;E=v,A=d}for(var E=0;E<5;E++)for(var A=0;A<5;A++)x[E+5*A]=A+(2*E+3*A)%5*5;for(var _=1,B=0;B<24;B++){for(var C=0,S=0,k=0;k<7;k++){if(_&1){var F=(1<<k)-1;F<32?S^=1<<F:C^=1<<F-32}_&128?_=_<<1^113:_<<=1}u[B]=a.create(C,S)}})();var b=[];(function(){for(var E=0;E<25;E++)b[E]=a.create()})();var m=f.SHA3=c.extend({cfg:c.cfg.extend({outputLength:512}),_doReset:function(){for(var E=this._state=[],A=0;A<25;A++)E[A]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(E,A){for(var g=this._state,v=this.blockSize/2,d=0;d<v;d++){var _=E[A+2*d],B=E[A+2*d+1];_=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360;var C=g[d];C.high^=B,C.low^=_}for(var S=0;S<24;S++){for(var k=0;k<5;k++){for(var F=0,D=0,O=0;O<5;O++){var C=g[k+5*O];F^=C.high,D^=C.low}var M=b[k];M.high=F,M.low=D}for(var k=0;k<5;k++)for(var U=b[(k+4)%5],z=b[(k+1)%5],j=z.high,W=z.low,F=U.high^(j<<1|W>>>31),D=U.low^(W<<1|j>>>31),O=0;O<5;O++){var C=g[k+5*O];C.high^=F,C.low^=D}for(var Q=1;Q<25;Q++){var F,D,C=g[Q],Z=C.high,te=C.low,P=p[Q];P<32?(F=Z<<P|te>>>32-P,D=te<<P|Z>>>32-P):(F=te<<P-32|Z>>>64-P,D=Z<<P-32|te>>>64-P);var l=b[x[Q]];l.high=F,l.low=D}var y=b[0],w=g[0];y.high=w.high,y.low=w.low;for(var k=0;k<5;k++)for(var O=0;O<5;O++){var Q=k+5*O,C=g[Q],T=b[Q],N=b[(k+1)%5+5*O],X=b[(k+2)%5+5*O];C.high=T.high^~N.high&X.high,C.low=T.low^~N.low&X.low}var C=g[0],V=u[S];C.high^=V.high,C.low^=V.low}},_doFinalize:function(){var E=this._data,A=E.words;this._nDataBytes*8;var g=E.sigBytes*8,v=this.blockSize*32;A[g>>>5]|=1<<24-g%32,A[(r.ceil((g+1)/v)*v>>>5)-1]|=128,E.sigBytes=A.length*4,this._process();for(var d=this._state,_=this.cfg.outputLength/8,B=_/8,C=[],S=0;S<B;S++){var k=d[S],F=k.high,D=k.low;F=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360,D=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,C.push(D),C.push(F)}return new s.init(C,_)},clone:function(){for(var E=c.clone.call(this),A=E._state=this._state.slice(0),g=0;g<25;g++)A[g]=A[g].clone();return E}});i.SHA3=c._createHelper(m),i.HmacSHA3=c._createHmacHelper(m)}(Math),e.SHA3})}(mr)),mr.exports}var Er={exports:{}},Zn;function Ws(){return Zn||(Zn=1,function(t,n){(function(e,r){t.exports=r(Ne())})(ke,function(e){/** @preserve
3
3
  (c) 2012 by Cédric Mesnil. All rights reserved.
4
4
 
5
5
  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
@@ -8,20 +8,20 @@
8
8
  - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
9
9
 
10
10
  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
11
- */return function(r){var i=e,o=i.lib,s=o.WordArray,c=o.Hasher,h=i.algo,a=s.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),f=s.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),p=s.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),x=s.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=s.create([0,1518500249,1859775393,2400959708,2840853838]),b=s.create([1352829926,1548603684,1836072691,2053994217,0]),m=h.RIPEMD160=c.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(B,C){for(var S=0;S<16;S++){var k=C+S,F=B[k];B[k]=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360}var D=this._hash.words,O=u.words,M=b.words,z=a.words,U=f.words,j=p.words,W=x.words,Q,Z,te,P,l,y,_,T,N,X;y=Q=D[0],_=Z=D[1],T=te=D[2],N=P=D[3],X=l=D[4];for(var V,S=0;S<80;S+=1)V=Q+B[C+z[S]]|0,S<16?V+=E(Z,te,P)+O[0]:S<32?V+=A(Z,te,P)+O[1]:S<48?V+=g(Z,te,P)+O[2]:S<64?V+=v(Z,te,P)+O[3]:V+=d(Z,te,P)+O[4],V=V|0,V=w(V,j[S]),V=V+l|0,Q=l,l=P,P=w(te,10),te=Z,Z=V,V=y+B[C+U[S]]|0,S<16?V+=d(_,T,N)+M[0]:S<32?V+=v(_,T,N)+M[1]:S<48?V+=g(_,T,N)+M[2]:S<64?V+=A(_,T,N)+M[3]:V+=E(_,T,N)+M[4],V=V|0,V=w(V,W[S]),V=V+X|0,y=X,X=N,N=w(T,10),T=_,_=V;V=D[1]+te+N|0,D[1]=D[2]+P+X|0,D[2]=D[3]+l+y|0,D[3]=D[4]+Q+_|0,D[4]=D[0]+Z+T|0,D[0]=V},_doFinalize:function(){var B=this._data,C=B.words,S=this._nDataBytes*8,k=B.sigBytes*8;C[k>>>5]|=128<<24-k%32,C[(k+64>>>9<<4)+14]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,B.sigBytes=(C.length+1)*4,this._process();for(var F=this._hash,D=F.words,O=0;O<5;O++){var M=D[O];D[O]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360}return F},clone:function(){var B=c.clone.call(this);return B._hash=this._hash.clone(),B}});function E(B,C,S){return B^C^S}function A(B,C,S){return B&C|~B&S}function g(B,C,S){return(B|~C)^S}function v(B,C,S){return B&S|C&~S}function d(B,C,S){return B^(C|~S)}function w(B,C){return B<<C|B>>>32-C}i.RIPEMD160=c._createHelper(m),i.HmacRIPEMD160=c._createHmacHelper(m)}(),e.RIPEMD160})}(Er)),Er.exports}var wr={exports:{}},Qn;function pn(){return Qn||(Qn=1,function(t,n){(function(e,r){t.exports=r(Ne())})(ke,function(e){(function(){var r=e,i=r.lib,o=i.Base,s=r.enc,c=s.Utf8,h=r.algo;h.HMAC=o.extend({init:function(a,f){a=this._hasher=new a.init,typeof f=="string"&&(f=c.parse(f));var p=a.blockSize,x=p*4;f.sigBytes>x&&(f=a.finalize(f)),f.clamp();for(var u=this._oKey=f.clone(),b=this._iKey=f.clone(),m=u.words,E=b.words,A=0;A<p;A++)m[A]^=1549556828,E[A]^=909522486;u.sigBytes=b.sigBytes=x,this.reset()},reset:function(){var a=this._hasher;a.reset(),a.update(this._iKey)},update:function(a){return this._hasher.update(a),this},finalize:function(a){var f=this._hasher,p=f.finalize(a);f.reset();var x=f.finalize(this._oKey.clone().concat(p));return x}})})()})}(wr)),wr.exports}var _r={exports:{}},Jn;function $s(){return Jn||(Jn=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),ln(),pn())})(ke,function(e){return function(){var r=e,i=r.lib,o=i.Base,s=i.WordArray,c=r.algo,h=c.SHA256,a=c.HMAC,f=c.PBKDF2=o.extend({cfg:o.extend({keySize:128/32,hasher:h,iterations:25e4}),init:function(p){this.cfg=this.cfg.extend(p)},compute:function(p,x){for(var u=this.cfg,b=a.create(u.hasher,p),m=s.create(),E=s.create([1]),A=m.words,g=E.words,v=u.keySize,d=u.iterations;A.length<v;){var w=b.update(x).finalize(E);b.reset();for(var B=w.words,C=B.length,S=w,k=1;k<d;k++){S=b.finalize(S),b.reset();for(var F=S.words,D=0;D<C;D++)B[D]^=F[D]}m.concat(w),g[0]++}return m.sigBytes=v*4,m}});r.PBKDF2=function(p,x,u){return f.create(u).compute(p,x)}}(),e.PBKDF2})}(_r)),_r.exports}var Br={exports:{}},ei;function zt(){return ei||(ei=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),fo(),pn())})(ke,function(e){return function(){var r=e,i=r.lib,o=i.Base,s=i.WordArray,c=r.algo,h=c.MD5,a=c.EvpKDF=o.extend({cfg:o.extend({keySize:128/32,hasher:h,iterations:1}),init:function(f){this.cfg=this.cfg.extend(f)},compute:function(f,p){for(var x,u=this.cfg,b=u.hasher.create(),m=s.create(),E=m.words,A=u.keySize,g=u.iterations;E.length<A;){x&&b.update(x),x=b.update(f).finalize(p),b.reset();for(var v=1;v<g;v++)x=b.finalize(x),b.reset();m.concat(x)}return m.sigBytes=A*4,m}});r.EvpKDF=function(f,p,x){return a.create(x).compute(f,p)}}(),e.EvpKDF})}(Br)),Br.exports}var Ar={exports:{}},ti;function it(){return ti||(ti=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),zt())})(ke,function(e){e.lib.Cipher||function(r){var i=e,o=i.lib,s=o.Base,c=o.WordArray,h=o.BufferedBlockAlgorithm,a=i.enc;a.Utf8;var f=a.Base64,p=i.algo,x=p.EvpKDF,u=o.Cipher=h.extend({cfg:s.extend(),createEncryptor:function(F,D){return this.create(this._ENC_XFORM_MODE,F,D)},createDecryptor:function(F,D){return this.create(this._DEC_XFORM_MODE,F,D)},init:function(F,D,O){this.cfg=this.cfg.extend(O),this._xformMode=F,this._key=D,this.reset()},reset:function(){h.reset.call(this),this._doReset()},process:function(F){return this._append(F),this._process()},finalize:function(F){F&&this._append(F);var D=this._doFinalize();return D},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function F(D){return typeof D=="string"?k:B}return function(D){return{encrypt:function(O,M,z){return F(M).encrypt(D,O,M,z)},decrypt:function(O,M,z){return F(M).decrypt(D,O,M,z)}}}}()});o.StreamCipher=u.extend({_doFinalize:function(){var F=this._process(!0);return F},blockSize:1});var b=i.mode={},m=o.BlockCipherMode=s.extend({createEncryptor:function(F,D){return this.Encryptor.create(F,D)},createDecryptor:function(F,D){return this.Decryptor.create(F,D)},init:function(F,D){this._cipher=F,this._iv=D}}),E=b.CBC=function(){var F=m.extend();F.Encryptor=F.extend({processBlock:function(O,M){var z=this._cipher,U=z.blockSize;D.call(this,O,M,U),z.encryptBlock(O,M),this._prevBlock=O.slice(M,M+U)}}),F.Decryptor=F.extend({processBlock:function(O,M){var z=this._cipher,U=z.blockSize,j=O.slice(M,M+U);z.decryptBlock(O,M),D.call(this,O,M,U),this._prevBlock=j}});function D(O,M,z){var U,j=this._iv;j?(U=j,this._iv=r):U=this._prevBlock;for(var W=0;W<z;W++)O[M+W]^=U[W]}return F}(),A=i.pad={},g=A.Pkcs7={pad:function(F,D){for(var O=D*4,M=O-F.sigBytes%O,z=M<<24|M<<16|M<<8|M,U=[],j=0;j<M;j+=4)U.push(z);var W=c.create(U,M);F.concat(W)},unpad:function(F){var D=F.words[F.sigBytes-1>>>2]&255;F.sigBytes-=D}};o.BlockCipher=u.extend({cfg:u.cfg.extend({mode:E,padding:g}),reset:function(){var F;u.reset.call(this);var D=this.cfg,O=D.iv,M=D.mode;this._xformMode==this._ENC_XFORM_MODE?F=M.createEncryptor:(F=M.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==F?this._mode.init(this,O&&O.words):(this._mode=F.call(M,this,O&&O.words),this._mode.__creator=F)},_doProcessBlock:function(F,D){this._mode.processBlock(F,D)},_doFinalize:function(){var F,D=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(D.pad(this._data,this.blockSize),F=this._process(!0)):(F=this._process(!0),D.unpad(F)),F},blockSize:128/32});var v=o.CipherParams=s.extend({init:function(F){this.mixIn(F)},toString:function(F){return(F||this.formatter).stringify(this)}}),d=i.format={},w=d.OpenSSL={stringify:function(F){var D,O=F.ciphertext,M=F.salt;return M?D=c.create([1398893684,1701076831]).concat(M).concat(O):D=O,D.toString(f)},parse:function(F){var D,O=f.parse(F),M=O.words;return M[0]==1398893684&&M[1]==1701076831&&(D=c.create(M.slice(2,4)),M.splice(0,4),O.sigBytes-=16),v.create({ciphertext:O,salt:D})}},B=o.SerializableCipher=s.extend({cfg:s.extend({format:w}),encrypt:function(F,D,O,M){M=this.cfg.extend(M);var z=F.createEncryptor(O,M),U=z.finalize(D),j=z.cfg;return v.create({ciphertext:U,key:O,iv:j.iv,algorithm:F,mode:j.mode,padding:j.padding,blockSize:F.blockSize,formatter:M.format})},decrypt:function(F,D,O,M){M=this.cfg.extend(M),D=this._parse(D,M.format);var z=F.createDecryptor(O,M).finalize(D.ciphertext);return z},_parse:function(F,D){return typeof F=="string"?D.parse(F,this):F}}),C=i.kdf={},S=C.OpenSSL={execute:function(F,D,O,M,z){if(M||(M=c.random(64/8)),z)var U=x.create({keySize:D+O,hasher:z}).compute(F,M);else var U=x.create({keySize:D+O}).compute(F,M);var j=c.create(U.words.slice(D),O*4);return U.sigBytes=D*4,v.create({key:U,iv:j,salt:M})}},k=o.PasswordBasedCipher=B.extend({cfg:B.cfg.extend({kdf:S}),encrypt:function(F,D,O,M){M=this.cfg.extend(M);var z=M.kdf.execute(O,F.keySize,F.ivSize,M.salt,M.hasher);M.iv=z.iv;var U=B.encrypt.call(this,F,D,z.key,M);return U.mixIn(z),U},decrypt:function(F,D,O,M){M=this.cfg.extend(M),D=this._parse(D,M.format);var z=M.kdf.execute(O,F.keySize,F.ivSize,D.salt,M.hasher);M.iv=z.iv;var U=B.decrypt.call(this,F,D,z.key,M);return U}})}()})}(Ar)),Ar.exports}var Cr={exports:{}},ri;function Ks(){return ri||(ri=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),it())})(ke,function(e){return e.mode.CFB=function(){var r=e.lib.BlockCipherMode.extend();r.Encryptor=r.extend({processBlock:function(o,s){var c=this._cipher,h=c.blockSize;i.call(this,o,s,h,c),this._prevBlock=o.slice(s,s+h)}}),r.Decryptor=r.extend({processBlock:function(o,s){var c=this._cipher,h=c.blockSize,a=o.slice(s,s+h);i.call(this,o,s,h,c),this._prevBlock=a}});function i(o,s,c,h){var a,f=this._iv;f?(a=f.slice(0),this._iv=void 0):a=this._prevBlock,h.encryptBlock(a,0);for(var p=0;p<c;p++)o[s+p]^=a[p]}return r}(),e.mode.CFB})}(Cr)),Cr.exports}var Fr={exports:{}},ni;function Vs(){return ni||(ni=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),it())})(ke,function(e){return e.mode.CTR=function(){var r=e.lib.BlockCipherMode.extend(),i=r.Encryptor=r.extend({processBlock:function(o,s){var c=this._cipher,h=c.blockSize,a=this._iv,f=this._counter;a&&(f=this._counter=a.slice(0),this._iv=void 0);var p=f.slice(0);c.encryptBlock(p,0),f[h-1]=f[h-1]+1|0;for(var x=0;x<h;x++)o[s+x]^=p[x]}});return r.Decryptor=i,r}(),e.mode.CTR})}(Fr)),Fr.exports}var Sr={exports:{}},ii;function Xs(){return ii||(ii=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),it())})(ke,function(e){/** @preserve
11
+ */return function(r){var i=e,o=i.lib,s=o.WordArray,c=o.Hasher,h=i.algo,a=s.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),f=s.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),p=s.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),x=s.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=s.create([0,1518500249,1859775393,2400959708,2840853838]),b=s.create([1352829926,1548603684,1836072691,2053994217,0]),m=h.RIPEMD160=c.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(B,C){for(var S=0;S<16;S++){var k=C+S,F=B[k];B[k]=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360}var D=this._hash.words,O=u.words,M=b.words,U=a.words,z=f.words,j=p.words,W=x.words,Q,Z,te,P,l,y,w,T,N,X;y=Q=D[0],w=Z=D[1],T=te=D[2],N=P=D[3],X=l=D[4];for(var V,S=0;S<80;S+=1)V=Q+B[C+U[S]]|0,S<16?V+=E(Z,te,P)+O[0]:S<32?V+=A(Z,te,P)+O[1]:S<48?V+=g(Z,te,P)+O[2]:S<64?V+=v(Z,te,P)+O[3]:V+=d(Z,te,P)+O[4],V=V|0,V=_(V,j[S]),V=V+l|0,Q=l,l=P,P=_(te,10),te=Z,Z=V,V=y+B[C+z[S]]|0,S<16?V+=d(w,T,N)+M[0]:S<32?V+=v(w,T,N)+M[1]:S<48?V+=g(w,T,N)+M[2]:S<64?V+=A(w,T,N)+M[3]:V+=E(w,T,N)+M[4],V=V|0,V=_(V,W[S]),V=V+X|0,y=X,X=N,N=_(T,10),T=w,w=V;V=D[1]+te+N|0,D[1]=D[2]+P+X|0,D[2]=D[3]+l+y|0,D[3]=D[4]+Q+w|0,D[4]=D[0]+Z+T|0,D[0]=V},_doFinalize:function(){var B=this._data,C=B.words,S=this._nDataBytes*8,k=B.sigBytes*8;C[k>>>5]|=128<<24-k%32,C[(k+64>>>9<<4)+14]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,B.sigBytes=(C.length+1)*4,this._process();for(var F=this._hash,D=F.words,O=0;O<5;O++){var M=D[O];D[O]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360}return F},clone:function(){var B=c.clone.call(this);return B._hash=this._hash.clone(),B}});function E(B,C,S){return B^C^S}function A(B,C,S){return B&C|~B&S}function g(B,C,S){return(B|~C)^S}function v(B,C,S){return B&S|C&~S}function d(B,C,S){return B^(C|~S)}function _(B,C){return B<<C|B>>>32-C}i.RIPEMD160=c._createHelper(m),i.HmacRIPEMD160=c._createHmacHelper(m)}(),e.RIPEMD160})}(Er)),Er.exports}var _r={exports:{}},Qn;function pn(){return Qn||(Qn=1,function(t,n){(function(e,r){t.exports=r(Ne())})(ke,function(e){(function(){var r=e,i=r.lib,o=i.Base,s=r.enc,c=s.Utf8,h=r.algo;h.HMAC=o.extend({init:function(a,f){a=this._hasher=new a.init,typeof f=="string"&&(f=c.parse(f));var p=a.blockSize,x=p*4;f.sigBytes>x&&(f=a.finalize(f)),f.clamp();for(var u=this._oKey=f.clone(),b=this._iKey=f.clone(),m=u.words,E=b.words,A=0;A<p;A++)m[A]^=1549556828,E[A]^=909522486;u.sigBytes=b.sigBytes=x,this.reset()},reset:function(){var a=this._hasher;a.reset(),a.update(this._iKey)},update:function(a){return this._hasher.update(a),this},finalize:function(a){var f=this._hasher,p=f.finalize(a);f.reset();var x=f.finalize(this._oKey.clone().concat(p));return x}})})()})}(_r)),_r.exports}var wr={exports:{}},Jn;function $s(){return Jn||(Jn=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),ln(),pn())})(ke,function(e){return function(){var r=e,i=r.lib,o=i.Base,s=i.WordArray,c=r.algo,h=c.SHA256,a=c.HMAC,f=c.PBKDF2=o.extend({cfg:o.extend({keySize:128/32,hasher:h,iterations:25e4}),init:function(p){this.cfg=this.cfg.extend(p)},compute:function(p,x){for(var u=this.cfg,b=a.create(u.hasher,p),m=s.create(),E=s.create([1]),A=m.words,g=E.words,v=u.keySize,d=u.iterations;A.length<v;){var _=b.update(x).finalize(E);b.reset();for(var B=_.words,C=B.length,S=_,k=1;k<d;k++){S=b.finalize(S),b.reset();for(var F=S.words,D=0;D<C;D++)B[D]^=F[D]}m.concat(_),g[0]++}return m.sigBytes=v*4,m}});r.PBKDF2=function(p,x,u){return f.create(u).compute(p,x)}}(),e.PBKDF2})}(wr)),wr.exports}var Br={exports:{}},ei;function Ut(){return ei||(ei=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),uo(),pn())})(ke,function(e){return function(){var r=e,i=r.lib,o=i.Base,s=i.WordArray,c=r.algo,h=c.MD5,a=c.EvpKDF=o.extend({cfg:o.extend({keySize:128/32,hasher:h,iterations:1}),init:function(f){this.cfg=this.cfg.extend(f)},compute:function(f,p){for(var x,u=this.cfg,b=u.hasher.create(),m=s.create(),E=m.words,A=u.keySize,g=u.iterations;E.length<A;){x&&b.update(x),x=b.update(f).finalize(p),b.reset();for(var v=1;v<g;v++)x=b.finalize(x),b.reset();m.concat(x)}return m.sigBytes=A*4,m}});r.EvpKDF=function(f,p,x){return a.create(x).compute(f,p)}}(),e.EvpKDF})}(Br)),Br.exports}var Ar={exports:{}},ti;function it(){return ti||(ti=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),Ut())})(ke,function(e){e.lib.Cipher||function(r){var i=e,o=i.lib,s=o.Base,c=o.WordArray,h=o.BufferedBlockAlgorithm,a=i.enc;a.Utf8;var f=a.Base64,p=i.algo,x=p.EvpKDF,u=o.Cipher=h.extend({cfg:s.extend(),createEncryptor:function(F,D){return this.create(this._ENC_XFORM_MODE,F,D)},createDecryptor:function(F,D){return this.create(this._DEC_XFORM_MODE,F,D)},init:function(F,D,O){this.cfg=this.cfg.extend(O),this._xformMode=F,this._key=D,this.reset()},reset:function(){h.reset.call(this),this._doReset()},process:function(F){return this._append(F),this._process()},finalize:function(F){F&&this._append(F);var D=this._doFinalize();return D},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function F(D){return typeof D=="string"?k:B}return function(D){return{encrypt:function(O,M,U){return F(M).encrypt(D,O,M,U)},decrypt:function(O,M,U){return F(M).decrypt(D,O,M,U)}}}}()});o.StreamCipher=u.extend({_doFinalize:function(){var F=this._process(!0);return F},blockSize:1});var b=i.mode={},m=o.BlockCipherMode=s.extend({createEncryptor:function(F,D){return this.Encryptor.create(F,D)},createDecryptor:function(F,D){return this.Decryptor.create(F,D)},init:function(F,D){this._cipher=F,this._iv=D}}),E=b.CBC=function(){var F=m.extend();F.Encryptor=F.extend({processBlock:function(O,M){var U=this._cipher,z=U.blockSize;D.call(this,O,M,z),U.encryptBlock(O,M),this._prevBlock=O.slice(M,M+z)}}),F.Decryptor=F.extend({processBlock:function(O,M){var U=this._cipher,z=U.blockSize,j=O.slice(M,M+z);U.decryptBlock(O,M),D.call(this,O,M,z),this._prevBlock=j}});function D(O,M,U){var z,j=this._iv;j?(z=j,this._iv=r):z=this._prevBlock;for(var W=0;W<U;W++)O[M+W]^=z[W]}return F}(),A=i.pad={},g=A.Pkcs7={pad:function(F,D){for(var O=D*4,M=O-F.sigBytes%O,U=M<<24|M<<16|M<<8|M,z=[],j=0;j<M;j+=4)z.push(U);var W=c.create(z,M);F.concat(W)},unpad:function(F){var D=F.words[F.sigBytes-1>>>2]&255;F.sigBytes-=D}};o.BlockCipher=u.extend({cfg:u.cfg.extend({mode:E,padding:g}),reset:function(){var F;u.reset.call(this);var D=this.cfg,O=D.iv,M=D.mode;this._xformMode==this._ENC_XFORM_MODE?F=M.createEncryptor:(F=M.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==F?this._mode.init(this,O&&O.words):(this._mode=F.call(M,this,O&&O.words),this._mode.__creator=F)},_doProcessBlock:function(F,D){this._mode.processBlock(F,D)},_doFinalize:function(){var F,D=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(D.pad(this._data,this.blockSize),F=this._process(!0)):(F=this._process(!0),D.unpad(F)),F},blockSize:128/32});var v=o.CipherParams=s.extend({init:function(F){this.mixIn(F)},toString:function(F){return(F||this.formatter).stringify(this)}}),d=i.format={},_=d.OpenSSL={stringify:function(F){var D,O=F.ciphertext,M=F.salt;return M?D=c.create([1398893684,1701076831]).concat(M).concat(O):D=O,D.toString(f)},parse:function(F){var D,O=f.parse(F),M=O.words;return M[0]==1398893684&&M[1]==1701076831&&(D=c.create(M.slice(2,4)),M.splice(0,4),O.sigBytes-=16),v.create({ciphertext:O,salt:D})}},B=o.SerializableCipher=s.extend({cfg:s.extend({format:_}),encrypt:function(F,D,O,M){M=this.cfg.extend(M);var U=F.createEncryptor(O,M),z=U.finalize(D),j=U.cfg;return v.create({ciphertext:z,key:O,iv:j.iv,algorithm:F,mode:j.mode,padding:j.padding,blockSize:F.blockSize,formatter:M.format})},decrypt:function(F,D,O,M){M=this.cfg.extend(M),D=this._parse(D,M.format);var U=F.createDecryptor(O,M).finalize(D.ciphertext);return U},_parse:function(F,D){return typeof F=="string"?D.parse(F,this):F}}),C=i.kdf={},S=C.OpenSSL={execute:function(F,D,O,M,U){if(M||(M=c.random(64/8)),U)var z=x.create({keySize:D+O,hasher:U}).compute(F,M);else var z=x.create({keySize:D+O}).compute(F,M);var j=c.create(z.words.slice(D),O*4);return z.sigBytes=D*4,v.create({key:z,iv:j,salt:M})}},k=o.PasswordBasedCipher=B.extend({cfg:B.cfg.extend({kdf:S}),encrypt:function(F,D,O,M){M=this.cfg.extend(M);var U=M.kdf.execute(O,F.keySize,F.ivSize,M.salt,M.hasher);M.iv=U.iv;var z=B.encrypt.call(this,F,D,U.key,M);return z.mixIn(U),z},decrypt:function(F,D,O,M){M=this.cfg.extend(M),D=this._parse(D,M.format);var U=M.kdf.execute(O,F.keySize,F.ivSize,D.salt,M.hasher);M.iv=U.iv;var z=B.decrypt.call(this,F,D,U.key,M);return z}})}()})}(Ar)),Ar.exports}var Cr={exports:{}},ri;function Ks(){return ri||(ri=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),it())})(ke,function(e){return e.mode.CFB=function(){var r=e.lib.BlockCipherMode.extend();r.Encryptor=r.extend({processBlock:function(o,s){var c=this._cipher,h=c.blockSize;i.call(this,o,s,h,c),this._prevBlock=o.slice(s,s+h)}}),r.Decryptor=r.extend({processBlock:function(o,s){var c=this._cipher,h=c.blockSize,a=o.slice(s,s+h);i.call(this,o,s,h,c),this._prevBlock=a}});function i(o,s,c,h){var a,f=this._iv;f?(a=f.slice(0),this._iv=void 0):a=this._prevBlock,h.encryptBlock(a,0);for(var p=0;p<c;p++)o[s+p]^=a[p]}return r}(),e.mode.CFB})}(Cr)),Cr.exports}var Fr={exports:{}},ni;function Vs(){return ni||(ni=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),it())})(ke,function(e){return e.mode.CTR=function(){var r=e.lib.BlockCipherMode.extend(),i=r.Encryptor=r.extend({processBlock:function(o,s){var c=this._cipher,h=c.blockSize,a=this._iv,f=this._counter;a&&(f=this._counter=a.slice(0),this._iv=void 0);var p=f.slice(0);c.encryptBlock(p,0),f[h-1]=f[h-1]+1|0;for(var x=0;x<h;x++)o[s+x]^=p[x]}});return r.Decryptor=i,r}(),e.mode.CTR})}(Fr)),Fr.exports}var Sr={exports:{}},ii;function Xs(){return ii||(ii=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),it())})(ke,function(e){/** @preserve
12
12
  * Counter block mode compatible with Dr Brian Gladman fileenc.c
13
13
  * derived from CryptoJS.mode.CTR
14
14
  * Jan Hruby jhruby.web@gmail.com
15
- */return e.mode.CTRGladman=function(){var r=e.lib.BlockCipherMode.extend();function i(c){if((c>>24&255)===255){var h=c>>16&255,a=c>>8&255,f=c&255;h===255?(h=0,a===255?(a=0,f===255?f=0:++f):++a):++h,c=0,c+=h<<16,c+=a<<8,c+=f}else c+=1<<24;return c}function o(c){return(c[0]=i(c[0]))===0&&(c[1]=i(c[1])),c}var s=r.Encryptor=r.extend({processBlock:function(c,h){var a=this._cipher,f=a.blockSize,p=this._iv,x=this._counter;p&&(x=this._counter=p.slice(0),this._iv=void 0),o(x);var u=x.slice(0);a.encryptBlock(u,0);for(var b=0;b<f;b++)c[h+b]^=u[b]}});return r.Decryptor=s,r}(),e.mode.CTRGladman})}(Sr)),Sr.exports}var Dr={exports:{}},oi;function Gs(){return oi||(oi=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),it())})(ke,function(e){return e.mode.OFB=function(){var r=e.lib.BlockCipherMode.extend(),i=r.Encryptor=r.extend({processBlock:function(o,s){var c=this._cipher,h=c.blockSize,a=this._iv,f=this._keystream;a&&(f=this._keystream=a.slice(0),this._iv=void 0),c.encryptBlock(f,0);for(var p=0;p<h;p++)o[s+p]^=f[p]}});return r.Decryptor=i,r}(),e.mode.OFB})}(Dr)),Dr.exports}var Tr={exports:{}},ai;function Ys(){return ai||(ai=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),it())})(ke,function(e){return e.mode.ECB=function(){var r=e.lib.BlockCipherMode.extend();return r.Encryptor=r.extend({processBlock:function(i,o){this._cipher.encryptBlock(i,o)}}),r.Decryptor=r.extend({processBlock:function(i,o){this._cipher.decryptBlock(i,o)}}),r}(),e.mode.ECB})}(Tr)),Tr.exports}var kr={exports:{}},si;function Zs(){return si||(si=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),it())})(ke,function(e){return e.pad.AnsiX923={pad:function(r,i){var o=r.sigBytes,s=i*4,c=s-o%s,h=o+c-1;r.clamp(),r.words[h>>>2]|=c<<24-h%4*8,r.sigBytes+=c},unpad:function(r){var i=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=i}},e.pad.Ansix923})}(kr)),kr.exports}var Rr={exports:{}},ci;function Qs(){return ci||(ci=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),it())})(ke,function(e){return e.pad.Iso10126={pad:function(r,i){var o=i*4,s=o-r.sigBytes%o;r.concat(e.lib.WordArray.random(s-1)).concat(e.lib.WordArray.create([s<<24],1))},unpad:function(r){var i=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=i}},e.pad.Iso10126})}(Rr)),Rr.exports}var Ir={exports:{}},fi;function Js(){return fi||(fi=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),it())})(ke,function(e){return e.pad.Iso97971={pad:function(r,i){r.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(r,i)},unpad:function(r){e.pad.ZeroPadding.unpad(r),r.sigBytes--}},e.pad.Iso97971})}(Ir)),Ir.exports}var Pr={exports:{}},xi;function ec(){return xi||(xi=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),it())})(ke,function(e){return e.pad.ZeroPadding={pad:function(r,i){var o=i*4;r.clamp(),r.sigBytes+=o-(r.sigBytes%o||o)},unpad:function(r){for(var i=r.words,o=r.sigBytes-1,o=r.sigBytes-1;o>=0;o--)if(i[o>>>2]>>>24-o%4*8&255){r.sigBytes=o+1;break}}},e.pad.ZeroPadding})}(Pr)),Pr.exports}var Or={exports:{}},ui;function tc(){return ui||(ui=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),it())})(ke,function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding})}(Or)),Or.exports}var qr={exports:{}},di;function rc(){return di||(di=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),it())})(ke,function(e){return function(r){var i=e,o=i.lib,s=o.CipherParams,c=i.enc,h=c.Hex,a=i.format;a.Hex={stringify:function(f){return f.ciphertext.toString(h)},parse:function(f){var p=h.parse(f);return s.create({ciphertext:p})}}}(),e.format.Hex})}(qr)),qr.exports}var Mr={exports:{}},hi;function nc(){return hi||(hi=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),Kt(),Vt(),zt(),it())})(ke,function(e){return function(){var r=e,i=r.lib,o=i.BlockCipher,s=r.algo,c=[],h=[],a=[],f=[],p=[],x=[],u=[],b=[],m=[],E=[];(function(){for(var v=[],d=0;d<256;d++)d<128?v[d]=d<<1:v[d]=d<<1^283;for(var w=0,B=0,d=0;d<256;d++){var C=B^B<<1^B<<2^B<<3^B<<4;C=C>>>8^C&255^99,c[w]=C,h[C]=w;var S=v[w],k=v[S],F=v[k],D=v[C]*257^C*16843008;a[w]=D<<24|D>>>8,f[w]=D<<16|D>>>16,p[w]=D<<8|D>>>24,x[w]=D;var D=F*16843009^k*65537^S*257^w*16843008;u[C]=D<<24|D>>>8,b[C]=D<<16|D>>>16,m[C]=D<<8|D>>>24,E[C]=D,w?(w=S^v[v[v[F^S]]],B^=v[v[B]]):w=B=1}})();var A=[0,1,2,4,8,16,32,64,128,27,54],g=s.AES=o.extend({_doReset:function(){var v;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var d=this._keyPriorReset=this._key,w=d.words,B=d.sigBytes/4,C=this._nRounds=B+6,S=(C+1)*4,k=this._keySchedule=[],F=0;F<S;F++)F<B?k[F]=w[F]:(v=k[F-1],F%B?B>6&&F%B==4&&(v=c[v>>>24]<<24|c[v>>>16&255]<<16|c[v>>>8&255]<<8|c[v&255]):(v=v<<8|v>>>24,v=c[v>>>24]<<24|c[v>>>16&255]<<16|c[v>>>8&255]<<8|c[v&255],v^=A[F/B|0]<<24),k[F]=k[F-B]^v);for(var D=this._invKeySchedule=[],O=0;O<S;O++){var F=S-O;if(O%4)var v=k[F];else var v=k[F-4];O<4||F<=4?D[O]=v:D[O]=u[c[v>>>24]]^b[c[v>>>16&255]]^m[c[v>>>8&255]]^E[c[v&255]]}}},encryptBlock:function(v,d){this._doCryptBlock(v,d,this._keySchedule,a,f,p,x,c)},decryptBlock:function(v,d){var w=v[d+1];v[d+1]=v[d+3],v[d+3]=w,this._doCryptBlock(v,d,this._invKeySchedule,u,b,m,E,h);var w=v[d+1];v[d+1]=v[d+3],v[d+3]=w},_doCryptBlock:function(v,d,w,B,C,S,k,F){for(var D=this._nRounds,O=v[d]^w[0],M=v[d+1]^w[1],z=v[d+2]^w[2],U=v[d+3]^w[3],j=4,W=1;W<D;W++){var Q=B[O>>>24]^C[M>>>16&255]^S[z>>>8&255]^k[U&255]^w[j++],Z=B[M>>>24]^C[z>>>16&255]^S[U>>>8&255]^k[O&255]^w[j++],te=B[z>>>24]^C[U>>>16&255]^S[O>>>8&255]^k[M&255]^w[j++],P=B[U>>>24]^C[O>>>16&255]^S[M>>>8&255]^k[z&255]^w[j++];O=Q,M=Z,z=te,U=P}var Q=(F[O>>>24]<<24|F[M>>>16&255]<<16|F[z>>>8&255]<<8|F[U&255])^w[j++],Z=(F[M>>>24]<<24|F[z>>>16&255]<<16|F[U>>>8&255]<<8|F[O&255])^w[j++],te=(F[z>>>24]<<24|F[U>>>16&255]<<16|F[O>>>8&255]<<8|F[M&255])^w[j++],P=(F[U>>>24]<<24|F[O>>>16&255]<<16|F[M>>>8&255]<<8|F[z&255])^w[j++];v[d]=Q,v[d+1]=Z,v[d+2]=te,v[d+3]=P},keySize:256/32});r.AES=o._createHelper(g)}(),e.AES})}(Mr)),Mr.exports}var Nr={exports:{}},li;function ic(){return li||(li=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),Kt(),Vt(),zt(),it())})(ke,function(e){return function(){var r=e,i=r.lib,o=i.WordArray,s=i.BlockCipher,c=r.algo,h=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],a=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],f=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],p=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],x=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],u=c.DES=s.extend({_doReset:function(){for(var A=this._key,g=A.words,v=[],d=0;d<56;d++){var w=h[d]-1;v[d]=g[w>>>5]>>>31-w%32&1}for(var B=this._subKeys=[],C=0;C<16;C++){for(var S=B[C]=[],k=f[C],d=0;d<24;d++)S[d/6|0]|=v[(a[d]-1+k)%28]<<31-d%6,S[4+(d/6|0)]|=v[28+(a[d+24]-1+k)%28]<<31-d%6;S[0]=S[0]<<1|S[0]>>>31;for(var d=1;d<7;d++)S[d]=S[d]>>>(d-1)*4+3;S[7]=S[7]<<5|S[7]>>>27}for(var F=this._invSubKeys=[],d=0;d<16;d++)F[d]=B[15-d]},encryptBlock:function(A,g){this._doCryptBlock(A,g,this._subKeys)},decryptBlock:function(A,g){this._doCryptBlock(A,g,this._invSubKeys)},_doCryptBlock:function(A,g,v){this._lBlock=A[g],this._rBlock=A[g+1],b.call(this,4,252645135),b.call(this,16,65535),m.call(this,2,858993459),m.call(this,8,16711935),b.call(this,1,1431655765);for(var d=0;d<16;d++){for(var w=v[d],B=this._lBlock,C=this._rBlock,S=0,k=0;k<8;k++)S|=p[k][((C^w[k])&x[k])>>>0];this._lBlock=C,this._rBlock=B^S}var F=this._lBlock;this._lBlock=this._rBlock,this._rBlock=F,b.call(this,1,1431655765),m.call(this,8,16711935),m.call(this,2,858993459),b.call(this,16,65535),b.call(this,4,252645135),A[g]=this._lBlock,A[g+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function b(A,g){var v=(this._lBlock>>>A^this._rBlock)&g;this._rBlock^=v,this._lBlock^=v<<A}function m(A,g){var v=(this._rBlock>>>A^this._lBlock)&g;this._lBlock^=v,this._rBlock^=v<<A}r.DES=s._createHelper(u);var E=c.TripleDES=s.extend({_doReset:function(){var A=this._key,g=A.words;if(g.length!==2&&g.length!==4&&g.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var v=g.slice(0,2),d=g.length<4?g.slice(0,2):g.slice(2,4),w=g.length<6?g.slice(0,2):g.slice(4,6);this._des1=u.createEncryptor(o.create(v)),this._des2=u.createEncryptor(o.create(d)),this._des3=u.createEncryptor(o.create(w))},encryptBlock:function(A,g){this._des1.encryptBlock(A,g),this._des2.decryptBlock(A,g),this._des3.encryptBlock(A,g)},decryptBlock:function(A,g){this._des3.decryptBlock(A,g),this._des2.encryptBlock(A,g),this._des1.decryptBlock(A,g)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=s._createHelper(E)}(),e.TripleDES})}(Nr)),Nr.exports}var Hr={exports:{}},pi;function oc(){return pi||(pi=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),Kt(),Vt(),zt(),it())})(ke,function(e){return function(){var r=e,i=r.lib,o=i.StreamCipher,s=r.algo,c=s.RC4=o.extend({_doReset:function(){for(var f=this._key,p=f.words,x=f.sigBytes,u=this._S=[],b=0;b<256;b++)u[b]=b;for(var b=0,m=0;b<256;b++){var E=b%x,A=p[E>>>2]>>>24-E%4*8&255;m=(m+u[b]+A)%256;var g=u[b];u[b]=u[m],u[m]=g}this._i=this._j=0},_doProcessBlock:function(f,p){f[p]^=h.call(this)},keySize:256/32,ivSize:0});function h(){for(var f=this._S,p=this._i,x=this._j,u=0,b=0;b<4;b++){p=(p+1)%256,x=(x+f[p])%256;var m=f[p];f[p]=f[x],f[x]=m,u|=f[(f[p]+f[x])%256]<<24-b*8}return this._i=p,this._j=x,u}r.RC4=o._createHelper(c);var a=s.RC4Drop=c.extend({cfg:c.cfg.extend({drop:192}),_doReset:function(){c._doReset.call(this);for(var f=this.cfg.drop;f>0;f--)h.call(this)}});r.RC4Drop=o._createHelper(a)}(),e.RC4})}(Hr)),Hr.exports}var zr={exports:{}},vi;function ac(){return vi||(vi=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),Kt(),Vt(),zt(),it())})(ke,function(e){return function(){var r=e,i=r.lib,o=i.StreamCipher,s=r.algo,c=[],h=[],a=[],f=s.Rabbit=o.extend({_doReset:function(){for(var x=this._key.words,u=this.cfg.iv,b=0;b<4;b++)x[b]=(x[b]<<8|x[b]>>>24)&16711935|(x[b]<<24|x[b]>>>8)&4278255360;var m=this._X=[x[0],x[3]<<16|x[2]>>>16,x[1],x[0]<<16|x[3]>>>16,x[2],x[1]<<16|x[0]>>>16,x[3],x[2]<<16|x[1]>>>16],E=this._C=[x[2]<<16|x[2]>>>16,x[0]&4294901760|x[1]&65535,x[3]<<16|x[3]>>>16,x[1]&4294901760|x[2]&65535,x[0]<<16|x[0]>>>16,x[2]&4294901760|x[3]&65535,x[1]<<16|x[1]>>>16,x[3]&4294901760|x[0]&65535];this._b=0;for(var b=0;b<4;b++)p.call(this);for(var b=0;b<8;b++)E[b]^=m[b+4&7];if(u){var A=u.words,g=A[0],v=A[1],d=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,w=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,B=d>>>16|w&4294901760,C=w<<16|d&65535;E[0]^=d,E[1]^=B,E[2]^=w,E[3]^=C,E[4]^=d,E[5]^=B,E[6]^=w,E[7]^=C;for(var b=0;b<4;b++)p.call(this)}},_doProcessBlock:function(x,u){var b=this._X;p.call(this),c[0]=b[0]^b[5]>>>16^b[3]<<16,c[1]=b[2]^b[7]>>>16^b[5]<<16,c[2]=b[4]^b[1]>>>16^b[7]<<16,c[3]=b[6]^b[3]>>>16^b[1]<<16;for(var m=0;m<4;m++)c[m]=(c[m]<<8|c[m]>>>24)&16711935|(c[m]<<24|c[m]>>>8)&4278255360,x[u+m]^=c[m]},blockSize:128/32,ivSize:64/32});function p(){for(var x=this._X,u=this._C,b=0;b<8;b++)h[b]=u[b];u[0]=u[0]+1295307597+this._b|0,u[1]=u[1]+3545052371+(u[0]>>>0<h[0]>>>0?1:0)|0,u[2]=u[2]+886263092+(u[1]>>>0<h[1]>>>0?1:0)|0,u[3]=u[3]+1295307597+(u[2]>>>0<h[2]>>>0?1:0)|0,u[4]=u[4]+3545052371+(u[3]>>>0<h[3]>>>0?1:0)|0,u[5]=u[5]+886263092+(u[4]>>>0<h[4]>>>0?1:0)|0,u[6]=u[6]+1295307597+(u[5]>>>0<h[5]>>>0?1:0)|0,u[7]=u[7]+3545052371+(u[6]>>>0<h[6]>>>0?1:0)|0,this._b=u[7]>>>0<h[7]>>>0?1:0;for(var b=0;b<8;b++){var m=x[b]+u[b],E=m&65535,A=m>>>16,g=((E*E>>>17)+E*A>>>15)+A*A,v=((m&4294901760)*m|0)+((m&65535)*m|0);a[b]=g^v}x[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,x[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,x[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,x[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,x[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,x[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,x[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,x[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}r.Rabbit=o._createHelper(f)}(),e.Rabbit})}(zr)),zr.exports}var Ur={exports:{}},bi;function sc(){return bi||(bi=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),Kt(),Vt(),zt(),it())})(ke,function(e){return function(){var r=e,i=r.lib,o=i.StreamCipher,s=r.algo,c=[],h=[],a=[],f=s.RabbitLegacy=o.extend({_doReset:function(){var x=this._key.words,u=this.cfg.iv,b=this._X=[x[0],x[3]<<16|x[2]>>>16,x[1],x[0]<<16|x[3]>>>16,x[2],x[1]<<16|x[0]>>>16,x[3],x[2]<<16|x[1]>>>16],m=this._C=[x[2]<<16|x[2]>>>16,x[0]&4294901760|x[1]&65535,x[3]<<16|x[3]>>>16,x[1]&4294901760|x[2]&65535,x[0]<<16|x[0]>>>16,x[2]&4294901760|x[3]&65535,x[1]<<16|x[1]>>>16,x[3]&4294901760|x[0]&65535];this._b=0;for(var E=0;E<4;E++)p.call(this);for(var E=0;E<8;E++)m[E]^=b[E+4&7];if(u){var A=u.words,g=A[0],v=A[1],d=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,w=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,B=d>>>16|w&4294901760,C=w<<16|d&65535;m[0]^=d,m[1]^=B,m[2]^=w,m[3]^=C,m[4]^=d,m[5]^=B,m[6]^=w,m[7]^=C;for(var E=0;E<4;E++)p.call(this)}},_doProcessBlock:function(x,u){var b=this._X;p.call(this),c[0]=b[0]^b[5]>>>16^b[3]<<16,c[1]=b[2]^b[7]>>>16^b[5]<<16,c[2]=b[4]^b[1]>>>16^b[7]<<16,c[3]=b[6]^b[3]>>>16^b[1]<<16;for(var m=0;m<4;m++)c[m]=(c[m]<<8|c[m]>>>24)&16711935|(c[m]<<24|c[m]>>>8)&4278255360,x[u+m]^=c[m]},blockSize:128/32,ivSize:64/32});function p(){for(var x=this._X,u=this._C,b=0;b<8;b++)h[b]=u[b];u[0]=u[0]+1295307597+this._b|0,u[1]=u[1]+3545052371+(u[0]>>>0<h[0]>>>0?1:0)|0,u[2]=u[2]+886263092+(u[1]>>>0<h[1]>>>0?1:0)|0,u[3]=u[3]+1295307597+(u[2]>>>0<h[2]>>>0?1:0)|0,u[4]=u[4]+3545052371+(u[3]>>>0<h[3]>>>0?1:0)|0,u[5]=u[5]+886263092+(u[4]>>>0<h[4]>>>0?1:0)|0,u[6]=u[6]+1295307597+(u[5]>>>0<h[5]>>>0?1:0)|0,u[7]=u[7]+3545052371+(u[6]>>>0<h[6]>>>0?1:0)|0,this._b=u[7]>>>0<h[7]>>>0?1:0;for(var b=0;b<8;b++){var m=x[b]+u[b],E=m&65535,A=m>>>16,g=((E*E>>>17)+E*A>>>15)+A*A,v=((m&4294901760)*m|0)+((m&65535)*m|0);a[b]=g^v}x[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,x[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,x[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,x[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,x[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,x[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,x[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,x[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}r.RabbitLegacy=o._createHelper(f)}(),e.RabbitLegacy})}(Ur)),Ur.exports}var jr={exports:{}},yi;function cc(){return yi||(yi=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),Kt(),Vt(),zt(),it())})(ke,function(e){return function(){var r=e,i=r.lib,o=i.BlockCipher,s=r.algo;const c=16,h=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],a=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var f={pbox:[],sbox:[]};function p(E,A){let g=A>>24&255,v=A>>16&255,d=A>>8&255,w=A&255,B=E.sbox[0][g]+E.sbox[1][v];return B=B^E.sbox[2][d],B=B+E.sbox[3][w],B}function x(E,A,g){let v=A,d=g,w;for(let B=0;B<c;++B)v=v^E.pbox[B],d=p(E,v)^d,w=v,v=d,d=w;return w=v,v=d,d=w,d=d^E.pbox[c],v=v^E.pbox[c+1],{left:v,right:d}}function u(E,A,g){let v=A,d=g,w;for(let B=c+1;B>1;--B)v=v^E.pbox[B],d=p(E,v)^d,w=v,v=d,d=w;return w=v,v=d,d=w,d=d^E.pbox[1],v=v^E.pbox[0],{left:v,right:d}}function b(E,A,g){for(let C=0;C<4;C++){E.sbox[C]=[];for(let S=0;S<256;S++)E.sbox[C][S]=a[C][S]}let v=0;for(let C=0;C<c+2;C++)E.pbox[C]=h[C]^A[v],v++,v>=g&&(v=0);let d=0,w=0,B=0;for(let C=0;C<c+2;C+=2)B=x(E,d,w),d=B.left,w=B.right,E.pbox[C]=d,E.pbox[C+1]=w;for(let C=0;C<4;C++)for(let S=0;S<256;S+=2)B=x(E,d,w),d=B.left,w=B.right,E.sbox[C][S]=d,E.sbox[C][S+1]=w;return!0}var m=s.Blowfish=o.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var E=this._keyPriorReset=this._key,A=E.words,g=E.sigBytes/4;b(f,A,g)}},encryptBlock:function(E,A){var g=x(f,E[A],E[A+1]);E[A]=g.left,E[A+1]=g.right},decryptBlock:function(E,A){var g=u(f,E[A],E[A+1]);E[A]=g.left,E[A+1]=g.right},blockSize:64/32,keySize:128/32,ivSize:64/32});r.Blowfish=o._createHelper(m)}(),e.Blowfish})}(jr)),jr.exports}(function(t,n){(function(e,r,i){t.exports=r(Ne(),Z0(),Ns(),Hs(),Kt(),zs(),Vt(),fo(),ln(),Us(),xo(),js(),Ls(),Ws(),pn(),$s(),zt(),it(),Ks(),Vs(),Xs(),Gs(),Ys(),Zs(),Qs(),Js(),ec(),tc(),rc(),nc(),ic(),oc(),ac(),sc(),cc())})(ke,function(e){return e})})(so);var fc=so.exports;const bt=A0(fc),uo="3.7.8",xc=uo,f0=typeof Buffer=="function",gi=typeof TextDecoder=="function"?new TextDecoder:void 0,mi=typeof TextEncoder=="function"?new TextEncoder:void 0,uc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",v0=Array.prototype.slice.call(uc),T0=(t=>{let n={};return t.forEach((e,r)=>n[e]=r),n})(v0),dc=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,at=String.fromCharCode.bind(String),Ei=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):t=>new Uint8Array(Array.prototype.slice.call(t,0)),ho=t=>t.replace(/=/g,"").replace(/[+\/]/g,n=>n=="+"?"-":"_"),lo=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),po=t=>{let n,e,r,i,o="";const s=t.length%3;for(let c=0;c<t.length;){if((e=t.charCodeAt(c++))>255||(r=t.charCodeAt(c++))>255||(i=t.charCodeAt(c++))>255)throw new TypeError("invalid character found");n=e<<16|r<<8|i,o+=v0[n>>18&63]+v0[n>>12&63]+v0[n>>6&63]+v0[n&63]}return s?o.slice(0,s-3)+"===".substring(s):o},vn=typeof btoa=="function"?t=>btoa(t):f0?t=>Buffer.from(t,"binary").toString("base64"):po,en=f0?t=>Buffer.from(t).toString("base64"):t=>{let e=[];for(let r=0,i=t.length;r<i;r+=4096)e.push(at.apply(null,t.subarray(r,r+4096)));return vn(e.join(""))},z0=(t,n=!1)=>n?ho(en(t)):en(t),hc=t=>{if(t.length<2){var n=t.charCodeAt(0);return n<128?t:n<2048?at(192|n>>>6)+at(128|n&63):at(224|n>>>12&15)+at(128|n>>>6&63)+at(128|n&63)}else{var n=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return at(240|n>>>18&7)+at(128|n>>>12&63)+at(128|n>>>6&63)+at(128|n&63)}},lc=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,vo=t=>t.replace(lc,hc),wi=f0?t=>Buffer.from(t,"utf8").toString("base64"):mi?t=>en(mi.encode(t)):t=>vn(vo(t)),t0=(t,n=!1)=>n?ho(wi(t)):wi(t),_i=t=>t0(t,!0),pc=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,vc=t=>{switch(t.length){case 4:var n=(7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3),e=n-65536;return at((e>>>10)+55296)+at((e&1023)+56320);case 3:return at((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return at((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},bo=t=>t.replace(pc,vc),yo=t=>{if(t=t.replace(/\s+/g,""),!dc.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(t.length&3));let n,e,r,i=[];for(let o=0;o<t.length;)n=T0[t.charAt(o++)]<<18|T0[t.charAt(o++)]<<12|(e=T0[t.charAt(o++)])<<6|(r=T0[t.charAt(o++)]),e===64?i.push(at(n>>16&255)):r===64?i.push(at(n>>16&255,n>>8&255)):i.push(at(n>>16&255,n>>8&255,n&255));return i.join("")},bn=typeof atob=="function"?t=>atob(lo(t)):f0?t=>Buffer.from(t,"base64").toString("binary"):yo,go=f0?t=>Ei(Buffer.from(t,"base64")):t=>Ei(bn(t).split("").map(n=>n.charCodeAt(0))),mo=t=>go(Eo(t)),bc=f0?t=>Buffer.from(t,"base64").toString("utf8"):gi?t=>gi.decode(go(t)):t=>bo(bn(t)),Eo=t=>lo(t.replace(/[-_]/g,n=>n=="-"?"+":"/")),Dt=t=>bc(Eo(t)),yc=t=>{if(typeof t!="string")return!1;const n=t.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(n)||!/[^\s0-9a-zA-Z\-_]/.test(n)},wo=t=>({value:t,enumerable:!1,writable:!0,configurable:!0}),_o=function(){const t=(n,e)=>Object.defineProperty(String.prototype,n,wo(e));t("fromBase64",function(){return Dt(this)}),t("toBase64",function(n){return t0(this,n)}),t("toBase64URI",function(){return t0(this,!0)}),t("toBase64URL",function(){return t0(this,!0)}),t("toUint8Array",function(){return mo(this)})},Bo=function(){const t=(n,e)=>Object.defineProperty(Uint8Array.prototype,n,wo(e));t("toBase64",function(n){return z0(this,n)}),t("toBase64URI",function(){return z0(this,!0)}),t("toBase64URL",function(){return z0(this,!0)})},gc=()=>{_o(),Bo()},mc={version:uo,VERSION:xc,atob:bn,atobPolyfill:yo,btoa:vn,btoaPolyfill:po,fromBase64:Dt,toBase64:t0,encode:t0,encodeURI:_i,encodeURL:_i,utob:vo,btou:bo,decode:Dt,isValid:yc,fromUint8Array:z0,toUint8Array:mo,extendString:_o,extendUint8Array:Bo,extendBuiltins:gc},Bi=(t,n)=>{const e=H0.utils.utf8.toBytes(t),r=e.length;return r>=n?e.slice(0,n):[].concat(...new Array(Math.ceil(n/r)).fill(e)).slice(0,n)};function tn(t,n,e){const{sign:r,iv:i}=n;let o="";try{e===o0.Hex?o=wc(t,r,i):o=Ec(t,r,i)}catch(c){console.error("decryptTextAES decrypt error",c,{encryptedText:t,decryptKeys:n,decryptType:e})}let s=o;try{s=JSON.parse(s)}catch(c){}return s}function Ec(t,n,e){const r=bt.enc.Utf8.parse(n),i={};return i.iv=bt.enc.Utf8.parse(e),i.mode=bt.mode.CBC,i.pad=bt.pad.Pkcs7,bt.AES.decrypt(t,r,i).toString(bt.enc.Utf8)}function wc(t,n,e){const r=H0.utils.hex.toBytes(t),i=Bi(n,16);let o=i;e&&(o=Bi(e,16));const c=new H0.ModeOfOperation.cbc(i,o).decrypt(r),h=H0.utils.utf8.fromBytes(c);return mc.decode(h)}class Ao{constructor(n={}){ge(this,"__config");this.__config=n}usePlugin(n){const{useAESDecrypt:e=!1}=n;return e}interceptDecryptResponse(n,e){return De(this,null,function*(){const r=yield this.__getDecryptInfo(e);if(!r||!r.decryptKeys)return n;let i=n.data;const o=r.decryptPosition||e0.ResponseData;if(o===e0.WholeResponse&&typeof n.data=="string"&&(i=tn(n.data,r.decryptKeys,o0.Hex)),o===e0.ResponseData&&typeof n.data=="object"&&n.data){const s=n.data;if(typeof s.data=="string"){const c=tn(s.data,r.decryptKeys,o0.Hex);i=St(Ue({},i),{data:c})}}return St(Ue({},n),{data:i})})}__getDecryptInfo(n){return De(this,null,function*(){let e=Ue({},this.__config);if(typeof this.__config.getDecryptInfo=="function"){const r=(yield this.__config.getDecryptInfo(n))||{};e=Ue(Ue({},e),r)}return n.aesDecryptInfo&&(e=Ue(Ue({},e),n.aesDecryptInfo)),e})}}function Ai(t){return t.indexOf("/live/v4/watch/common")!==-1}function _c(t){return t.indexOf("/live/v4/watch/viewer")!==-1}function Ci(t){return/\/live\/v[34]\/channel/.test(t)}function Bc(t){return t.indexOf("/live/v3")!==-1}class Ac{constructor(n){ge(this,"__usePolyvBusiness");ge(this,"__config");var e;this.__config=n,this.__usePolyvBusiness=(e=n.usePolyvBusiness)!=null?e:!0}installPlugin(n){const e=new Jr({globalParams:r=>De(this,null,function*(){const i={};if(!this.usePlugin(r))return i;const o=r.url||"",s=yield this.__getBusinessData(r);return Ai(o)&&this.__checkBusiness(s,["sourceType","sourceId"])?(i.sourceType=s.sourceType,i.sourceId=s.sourceId):_c(o)&&this.__checkBusiness(s,["sourceType","sourceId","viewerId","unionId"])?(i.sourceType=s.sourceType,i.sourceId=s.sourceId,i.viewerId=s.viewerId,i.userId=s.unionId):Ci(o)&&this.__checkBusiness(s,["channelId"])?i.channelId=s.channelId:this.__checkBusiness(s,["channelId","viewerId"])&&(i.channelId=s.channelId,i.viewerId=s.viewerId),i})});n.installPlugin(e)}usePlugin(n){const{usePolyvBusiness:e=this.__usePolyvBusiness}=n;return e}interceptIncludeParams(n){const e=n.url||"";if(n=n,Ai(e)){n.useToken=!1;return}if(n.tokenInfo||(n.tokenInfo={}),!n.tokenInfo.tokenField){let r="viewerToken";Ci(e)?r="channelToken":Bc(e)&&(r="token"),n.tokenInfo.tokenField=r}}__checkBusiness(n,e){for(let r=0;r<e.length;r++){const i=e[r];if(!n[i])return!1}return!0}__getBusinessData(n){return De(this,null,function*(){let e={};if(typeof this.__config.getBusinessData=="function"){const r=(yield this.__config.getBusinessData(n))||{};e=Ue(Ue({},e),r)}return n.businessData&&(e=Ue(Ue({},e),n.businessData)),e})}}function Cc(){return{watchPageDomain:"https://live.polyv.cn",watchApiDomain:"https://live.polyv.cn",backstageApiDomain:"https://live.polyv.net",liveApiDomain:"https://live.polyv.net",polyvApiDomain:"https://api.polyv.net",polyvWatchApiDomain:"https://watch-api.polyv.cn",normalApiDomain:"https://live-normal.polyv.net",rtasDomain:"https://rtas.videocc.net",rtasDomain2:"https://rtas-2.videocc.net",elogDomain:"https://elog.polyv.net",chatWsDomain:"chat.polyv.net",chatApiDomain:"https://apichat.polyv.net",staticDomain:"https://liveimages.videocc.net",resourceDomain:"https://s1.videocc.net",playerBasicDomain:"https://player.polyv.net",liveJsonDomain:"https://livejson.polyv.net",vodImgStatic:"https://img.videocc.net",vodStaticDomain:"https://static.polyv.net",vodAuthDomain:"https://v3.polyv.net",vodEncryptDomain:"https://v.polyv.net",vodBetaDomain:"https://beta.polyv.net",vodHlsDomain:"https://hls.videocc.net",vodRtasDomain:"https://prtas.videocc.net",vodRtasDomain2:"https://prtas-2.videocc.net",vodScriptDomain:" https://script.polyv.net",playerSdkDomain:"https://player.polyv.net",webSdkDomain:"https://websdk.videocc.net",webSdkTestDomain:"https://polyv-frontend-sdk-test-01.oss-cn-shenzhen.aliyuncs.com"}}function yn(t){return Ue(Ue({},Cc()),t||{})}var Co={exports:{}},Fo={exports:{}};(function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,r){return e<<r|e>>>32-r},rotr:function(e,r){return e<<32-r|e>>>r},endian:function(e){if(e.constructor==Number)return n.rotl(e,8)&16711935|n.rotl(e,24)&4278255360;for(var r=0;r<e.length;r++)e[r]=n.endian(e[r]);return e},randomBytes:function(e){for(var r=[];e>0;e--)r.push(Math.floor(Math.random()*256));return r},bytesToWords:function(e){for(var r=[],i=0,o=0;i<e.length;i++,o+=8)r[o>>>5]|=e[i]<<24-o%32;return r},wordsToBytes:function(e){for(var r=[],i=0;i<e.length*32;i+=8)r.push(e[i>>>5]>>>24-i%32&255);return r},bytesToHex:function(e){for(var r=[],i=0;i<e.length;i++)r.push((e[i]>>>4).toString(16)),r.push((e[i]&15).toString(16));return r.join("")},hexToBytes:function(e){for(var r=[],i=0;i<e.length;i+=2)r.push(parseInt(e.substr(i,2),16));return r},bytesToBase64:function(e){for(var r=[],i=0;i<e.length;i+=3)for(var o=e[i]<<16|e[i+1]<<8|e[i+2],s=0;s<4;s++)i*8+s*6<=e.length*8?r.push(t.charAt(o>>>6*(3-s)&63)):r.push("=");return r.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/ig,"");for(var r=[],i=0,o=0;i<e.length;o=++i%4)o!=0&&r.push((t.indexOf(e.charAt(i-1))&Math.pow(2,-2*o+8)-1)<<o*2|t.indexOf(e.charAt(i))>>>6-o*2);return r}};Fo.exports=n})();var Fc=Fo.exports,rn={utf8:{stringToBytes:function(t){return rn.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(rn.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var n=[],e=0;e<t.length;e++)n.push(t.charCodeAt(e)&255);return n},bytesToString:function(t){for(var n=[],e=0;e<t.length;e++)n.push(String.fromCharCode(t[e]));return n.join("")}}},Fi=rn;/*!
15
+ */return e.mode.CTRGladman=function(){var r=e.lib.BlockCipherMode.extend();function i(c){if((c>>24&255)===255){var h=c>>16&255,a=c>>8&255,f=c&255;h===255?(h=0,a===255?(a=0,f===255?f=0:++f):++a):++h,c=0,c+=h<<16,c+=a<<8,c+=f}else c+=1<<24;return c}function o(c){return(c[0]=i(c[0]))===0&&(c[1]=i(c[1])),c}var s=r.Encryptor=r.extend({processBlock:function(c,h){var a=this._cipher,f=a.blockSize,p=this._iv,x=this._counter;p&&(x=this._counter=p.slice(0),this._iv=void 0),o(x);var u=x.slice(0);a.encryptBlock(u,0);for(var b=0;b<f;b++)c[h+b]^=u[b]}});return r.Decryptor=s,r}(),e.mode.CTRGladman})}(Sr)),Sr.exports}var Dr={exports:{}},oi;function Gs(){return oi||(oi=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),it())})(ke,function(e){return e.mode.OFB=function(){var r=e.lib.BlockCipherMode.extend(),i=r.Encryptor=r.extend({processBlock:function(o,s){var c=this._cipher,h=c.blockSize,a=this._iv,f=this._keystream;a&&(f=this._keystream=a.slice(0),this._iv=void 0),c.encryptBlock(f,0);for(var p=0;p<h;p++)o[s+p]^=f[p]}});return r.Decryptor=i,r}(),e.mode.OFB})}(Dr)),Dr.exports}var Tr={exports:{}},ai;function Ys(){return ai||(ai=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),it())})(ke,function(e){return e.mode.ECB=function(){var r=e.lib.BlockCipherMode.extend();return r.Encryptor=r.extend({processBlock:function(i,o){this._cipher.encryptBlock(i,o)}}),r.Decryptor=r.extend({processBlock:function(i,o){this._cipher.decryptBlock(i,o)}}),r}(),e.mode.ECB})}(Tr)),Tr.exports}var kr={exports:{}},si;function Zs(){return si||(si=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),it())})(ke,function(e){return e.pad.AnsiX923={pad:function(r,i){var o=r.sigBytes,s=i*4,c=s-o%s,h=o+c-1;r.clamp(),r.words[h>>>2]|=c<<24-h%4*8,r.sigBytes+=c},unpad:function(r){var i=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=i}},e.pad.Ansix923})}(kr)),kr.exports}var Rr={exports:{}},ci;function Qs(){return ci||(ci=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),it())})(ke,function(e){return e.pad.Iso10126={pad:function(r,i){var o=i*4,s=o-r.sigBytes%o;r.concat(e.lib.WordArray.random(s-1)).concat(e.lib.WordArray.create([s<<24],1))},unpad:function(r){var i=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=i}},e.pad.Iso10126})}(Rr)),Rr.exports}var Ir={exports:{}},fi;function Js(){return fi||(fi=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),it())})(ke,function(e){return e.pad.Iso97971={pad:function(r,i){r.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(r,i)},unpad:function(r){e.pad.ZeroPadding.unpad(r),r.sigBytes--}},e.pad.Iso97971})}(Ir)),Ir.exports}var Pr={exports:{}},xi;function ec(){return xi||(xi=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),it())})(ke,function(e){return e.pad.ZeroPadding={pad:function(r,i){var o=i*4;r.clamp(),r.sigBytes+=o-(r.sigBytes%o||o)},unpad:function(r){for(var i=r.words,o=r.sigBytes-1,o=r.sigBytes-1;o>=0;o--)if(i[o>>>2]>>>24-o%4*8&255){r.sigBytes=o+1;break}}},e.pad.ZeroPadding})}(Pr)),Pr.exports}var Or={exports:{}},ui;function tc(){return ui||(ui=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),it())})(ke,function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding})}(Or)),Or.exports}var qr={exports:{}},di;function rc(){return di||(di=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),it())})(ke,function(e){return function(r){var i=e,o=i.lib,s=o.CipherParams,c=i.enc,h=c.Hex,a=i.format;a.Hex={stringify:function(f){return f.ciphertext.toString(h)},parse:function(f){var p=h.parse(f);return s.create({ciphertext:p})}}}(),e.format.Hex})}(qr)),qr.exports}var Mr={exports:{}},hi;function nc(){return hi||(hi=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),Kt(),Vt(),Ut(),it())})(ke,function(e){return function(){var r=e,i=r.lib,o=i.BlockCipher,s=r.algo,c=[],h=[],a=[],f=[],p=[],x=[],u=[],b=[],m=[],E=[];(function(){for(var v=[],d=0;d<256;d++)d<128?v[d]=d<<1:v[d]=d<<1^283;for(var _=0,B=0,d=0;d<256;d++){var C=B^B<<1^B<<2^B<<3^B<<4;C=C>>>8^C&255^99,c[_]=C,h[C]=_;var S=v[_],k=v[S],F=v[k],D=v[C]*257^C*16843008;a[_]=D<<24|D>>>8,f[_]=D<<16|D>>>16,p[_]=D<<8|D>>>24,x[_]=D;var D=F*16843009^k*65537^S*257^_*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(){var v;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var d=this._keyPriorReset=this._key,_=d.words,B=d.sigBytes/4,C=this._nRounds=B+6,S=(C+1)*4,k=this._keySchedule=[],F=0;F<S;F++)F<B?k[F]=_[F]:(v=k[F-1],F%B?B>6&&F%B==4&&(v=c[v>>>24]<<24|c[v>>>16&255]<<16|c[v>>>8&255]<<8|c[v&255]):(v=v<<8|v>>>24,v=c[v>>>24]<<24|c[v>>>16&255]<<16|c[v>>>8&255]<<8|c[v&255],v^=A[F/B|0]<<24),k[F]=k[F-B]^v);for(var D=this._invKeySchedule=[],O=0;O<S;O++){var F=S-O;if(O%4)var v=k[F];else var v=k[F-4];O<4||F<=4?D[O]=v:D[O]=u[c[v>>>24]]^b[c[v>>>16&255]]^m[c[v>>>8&255]]^E[c[v&255]]}}},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);var _=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[z&255]^_[j++],Z=B[M>>>24]^C[U>>>16&255]^S[z>>>8&255]^k[O&255]^_[j++],te=B[U>>>24]^C[z>>>16&255]^S[O>>>8&255]^k[M&255]^_[j++],P=B[z>>>24]^C[O>>>16&255]^S[M>>>8&255]^k[U&255]^_[j++];O=Q,M=Z,U=te,z=P}var Q=(F[O>>>24]<<24|F[M>>>16&255]<<16|F[U>>>8&255]<<8|F[z&255])^_[j++],Z=(F[M>>>24]<<24|F[U>>>16&255]<<16|F[z>>>8&255]<<8|F[O&255])^_[j++],te=(F[U>>>24]<<24|F[z>>>16&255]<<16|F[O>>>8&255]<<8|F[M&255])^_[j++],P=(F[z>>>24]<<24|F[O>>>16&255]<<16|F[M>>>8&255]<<8|F[U&255])^_[j++];v[d]=Q,v[d+1]=Z,v[d+2]=te,v[d+3]=P},keySize:256/32});r.AES=o._createHelper(g)}(),e.AES})}(Mr)),Mr.exports}var Nr={exports:{}},li;function ic(){return li||(li=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),Kt(),Vt(),Ut(),it())})(ke,function(e){return function(){var r=e,i=r.lib,o=i.WordArray,s=i.BlockCipher,c=r.algo,h=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],a=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],f=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],p=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],x=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],u=c.DES=s.extend({_doReset:function(){for(var A=this._key,g=A.words,v=[],d=0;d<56;d++){var _=h[d]-1;v[d]=g[_>>>5]>>>31-_%32&1}for(var B=this._subKeys=[],C=0;C<16;C++){for(var S=B[C]=[],k=f[C],d=0;d<24;d++)S[d/6|0]|=v[(a[d]-1+k)%28]<<31-d%6,S[4+(d/6|0)]|=v[28+(a[d+24]-1+k)%28]<<31-d%6;S[0]=S[0]<<1|S[0]>>>31;for(var d=1;d<7;d++)S[d]=S[d]>>>(d-1)*4+3;S[7]=S[7]<<5|S[7]>>>27}for(var F=this._invSubKeys=[],d=0;d<16;d++)F[d]=B[15-d]},encryptBlock:function(A,g){this._doCryptBlock(A,g,this._subKeys)},decryptBlock:function(A,g){this._doCryptBlock(A,g,this._invSubKeys)},_doCryptBlock:function(A,g,v){this._lBlock=A[g],this._rBlock=A[g+1],b.call(this,4,252645135),b.call(this,16,65535),m.call(this,2,858993459),m.call(this,8,16711935),b.call(this,1,1431655765);for(var d=0;d<16;d++){for(var _=v[d],B=this._lBlock,C=this._rBlock,S=0,k=0;k<8;k++)S|=p[k][((C^_[k])&x[k])>>>0];this._lBlock=C,this._rBlock=B^S}var F=this._lBlock;this._lBlock=this._rBlock,this._rBlock=F,b.call(this,1,1431655765),m.call(this,8,16711935),m.call(this,2,858993459),b.call(this,16,65535),b.call(this,4,252645135),A[g]=this._lBlock,A[g+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function b(A,g){var v=(this._lBlock>>>A^this._rBlock)&g;this._rBlock^=v,this._lBlock^=v<<A}function m(A,g){var v=(this._rBlock>>>A^this._lBlock)&g;this._lBlock^=v,this._rBlock^=v<<A}r.DES=s._createHelper(u);var E=c.TripleDES=s.extend({_doReset:function(){var A=this._key,g=A.words;if(g.length!==2&&g.length!==4&&g.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var v=g.slice(0,2),d=g.length<4?g.slice(0,2):g.slice(2,4),_=g.length<6?g.slice(0,2):g.slice(4,6);this._des1=u.createEncryptor(o.create(v)),this._des2=u.createEncryptor(o.create(d)),this._des3=u.createEncryptor(o.create(_))},encryptBlock:function(A,g){this._des1.encryptBlock(A,g),this._des2.decryptBlock(A,g),this._des3.encryptBlock(A,g)},decryptBlock:function(A,g){this._des3.decryptBlock(A,g),this._des2.encryptBlock(A,g),this._des1.decryptBlock(A,g)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=s._createHelper(E)}(),e.TripleDES})}(Nr)),Nr.exports}var Hr={exports:{}},pi;function oc(){return pi||(pi=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),Kt(),Vt(),Ut(),it())})(ke,function(e){return function(){var r=e,i=r.lib,o=i.StreamCipher,s=r.algo,c=s.RC4=o.extend({_doReset:function(){for(var f=this._key,p=f.words,x=f.sigBytes,u=this._S=[],b=0;b<256;b++)u[b]=b;for(var b=0,m=0;b<256;b++){var E=b%x,A=p[E>>>2]>>>24-E%4*8&255;m=(m+u[b]+A)%256;var g=u[b];u[b]=u[m],u[m]=g}this._i=this._j=0},_doProcessBlock:function(f,p){f[p]^=h.call(this)},keySize:256/32,ivSize:0});function h(){for(var f=this._S,p=this._i,x=this._j,u=0,b=0;b<4;b++){p=(p+1)%256,x=(x+f[p])%256;var m=f[p];f[p]=f[x],f[x]=m,u|=f[(f[p]+f[x])%256]<<24-b*8}return this._i=p,this._j=x,u}r.RC4=o._createHelper(c);var a=s.RC4Drop=c.extend({cfg:c.cfg.extend({drop:192}),_doReset:function(){c._doReset.call(this);for(var f=this.cfg.drop;f>0;f--)h.call(this)}});r.RC4Drop=o._createHelper(a)}(),e.RC4})}(Hr)),Hr.exports}var Ur={exports:{}},vi;function ac(){return vi||(vi=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),Kt(),Vt(),Ut(),it())})(ke,function(e){return function(){var r=e,i=r.lib,o=i.StreamCipher,s=r.algo,c=[],h=[],a=[],f=s.Rabbit=o.extend({_doReset:function(){for(var x=this._key.words,u=this.cfg.iv,b=0;b<4;b++)x[b]=(x[b]<<8|x[b]>>>24)&16711935|(x[b]<<24|x[b]>>>8)&4278255360;var m=this._X=[x[0],x[3]<<16|x[2]>>>16,x[1],x[0]<<16|x[3]>>>16,x[2],x[1]<<16|x[0]>>>16,x[3],x[2]<<16|x[1]>>>16],E=this._C=[x[2]<<16|x[2]>>>16,x[0]&4294901760|x[1]&65535,x[3]<<16|x[3]>>>16,x[1]&4294901760|x[2]&65535,x[0]<<16|x[0]>>>16,x[2]&4294901760|x[3]&65535,x[1]<<16|x[1]>>>16,x[3]&4294901760|x[0]&65535];this._b=0;for(var b=0;b<4;b++)p.call(this);for(var b=0;b<8;b++)E[b]^=m[b+4&7];if(u){var A=u.words,g=A[0],v=A[1],d=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,_=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,B=d>>>16|_&4294901760,C=_<<16|d&65535;E[0]^=d,E[1]^=B,E[2]^=_,E[3]^=C,E[4]^=d,E[5]^=B,E[6]^=_,E[7]^=C;for(var b=0;b<4;b++)p.call(this)}},_doProcessBlock:function(x,u){var b=this._X;p.call(this),c[0]=b[0]^b[5]>>>16^b[3]<<16,c[1]=b[2]^b[7]>>>16^b[5]<<16,c[2]=b[4]^b[1]>>>16^b[7]<<16,c[3]=b[6]^b[3]>>>16^b[1]<<16;for(var m=0;m<4;m++)c[m]=(c[m]<<8|c[m]>>>24)&16711935|(c[m]<<24|c[m]>>>8)&4278255360,x[u+m]^=c[m]},blockSize:128/32,ivSize:64/32});function p(){for(var x=this._X,u=this._C,b=0;b<8;b++)h[b]=u[b];u[0]=u[0]+1295307597+this._b|0,u[1]=u[1]+3545052371+(u[0]>>>0<h[0]>>>0?1:0)|0,u[2]=u[2]+886263092+(u[1]>>>0<h[1]>>>0?1:0)|0,u[3]=u[3]+1295307597+(u[2]>>>0<h[2]>>>0?1:0)|0,u[4]=u[4]+3545052371+(u[3]>>>0<h[3]>>>0?1:0)|0,u[5]=u[5]+886263092+(u[4]>>>0<h[4]>>>0?1:0)|0,u[6]=u[6]+1295307597+(u[5]>>>0<h[5]>>>0?1:0)|0,u[7]=u[7]+3545052371+(u[6]>>>0<h[6]>>>0?1:0)|0,this._b=u[7]>>>0<h[7]>>>0?1:0;for(var b=0;b<8;b++){var m=x[b]+u[b],E=m&65535,A=m>>>16,g=((E*E>>>17)+E*A>>>15)+A*A,v=((m&4294901760)*m|0)+((m&65535)*m|0);a[b]=g^v}x[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,x[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,x[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,x[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,x[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,x[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,x[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,x[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}r.Rabbit=o._createHelper(f)}(),e.Rabbit})}(Ur)),Ur.exports}var zr={exports:{}},bi;function sc(){return bi||(bi=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),Kt(),Vt(),Ut(),it())})(ke,function(e){return function(){var r=e,i=r.lib,o=i.StreamCipher,s=r.algo,c=[],h=[],a=[],f=s.RabbitLegacy=o.extend({_doReset:function(){var x=this._key.words,u=this.cfg.iv,b=this._X=[x[0],x[3]<<16|x[2]>>>16,x[1],x[0]<<16|x[3]>>>16,x[2],x[1]<<16|x[0]>>>16,x[3],x[2]<<16|x[1]>>>16],m=this._C=[x[2]<<16|x[2]>>>16,x[0]&4294901760|x[1]&65535,x[3]<<16|x[3]>>>16,x[1]&4294901760|x[2]&65535,x[0]<<16|x[0]>>>16,x[2]&4294901760|x[3]&65535,x[1]<<16|x[1]>>>16,x[3]&4294901760|x[0]&65535];this._b=0;for(var E=0;E<4;E++)p.call(this);for(var E=0;E<8;E++)m[E]^=b[E+4&7];if(u){var A=u.words,g=A[0],v=A[1],d=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,_=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,B=d>>>16|_&4294901760,C=_<<16|d&65535;m[0]^=d,m[1]^=B,m[2]^=_,m[3]^=C,m[4]^=d,m[5]^=B,m[6]^=_,m[7]^=C;for(var E=0;E<4;E++)p.call(this)}},_doProcessBlock:function(x,u){var b=this._X;p.call(this),c[0]=b[0]^b[5]>>>16^b[3]<<16,c[1]=b[2]^b[7]>>>16^b[5]<<16,c[2]=b[4]^b[1]>>>16^b[7]<<16,c[3]=b[6]^b[3]>>>16^b[1]<<16;for(var m=0;m<4;m++)c[m]=(c[m]<<8|c[m]>>>24)&16711935|(c[m]<<24|c[m]>>>8)&4278255360,x[u+m]^=c[m]},blockSize:128/32,ivSize:64/32});function p(){for(var x=this._X,u=this._C,b=0;b<8;b++)h[b]=u[b];u[0]=u[0]+1295307597+this._b|0,u[1]=u[1]+3545052371+(u[0]>>>0<h[0]>>>0?1:0)|0,u[2]=u[2]+886263092+(u[1]>>>0<h[1]>>>0?1:0)|0,u[3]=u[3]+1295307597+(u[2]>>>0<h[2]>>>0?1:0)|0,u[4]=u[4]+3545052371+(u[3]>>>0<h[3]>>>0?1:0)|0,u[5]=u[5]+886263092+(u[4]>>>0<h[4]>>>0?1:0)|0,u[6]=u[6]+1295307597+(u[5]>>>0<h[5]>>>0?1:0)|0,u[7]=u[7]+3545052371+(u[6]>>>0<h[6]>>>0?1:0)|0,this._b=u[7]>>>0<h[7]>>>0?1:0;for(var b=0;b<8;b++){var m=x[b]+u[b],E=m&65535,A=m>>>16,g=((E*E>>>17)+E*A>>>15)+A*A,v=((m&4294901760)*m|0)+((m&65535)*m|0);a[b]=g^v}x[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,x[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,x[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,x[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,x[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,x[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,x[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,x[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}r.RabbitLegacy=o._createHelper(f)}(),e.RabbitLegacy})}(zr)),zr.exports}var jr={exports:{}},yi;function cc(){return yi||(yi=1,function(t,n){(function(e,r,i){t.exports=r(Ne(),Kt(),Vt(),Ut(),it())})(ke,function(e){return function(){var r=e,i=r.lib,o=i.BlockCipher,s=r.algo;const c=16,h=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],a=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var f={pbox:[],sbox:[]};function p(E,A){let g=A>>24&255,v=A>>16&255,d=A>>8&255,_=A&255,B=E.sbox[0][g]+E.sbox[1][v];return B=B^E.sbox[2][d],B=B+E.sbox[3][_],B}function x(E,A,g){let v=A,d=g,_;for(let B=0;B<c;++B)v=v^E.pbox[B],d=p(E,v)^d,_=v,v=d,d=_;return _=v,v=d,d=_,d=d^E.pbox[c],v=v^E.pbox[c+1],{left:v,right:d}}function u(E,A,g){let v=A,d=g,_;for(let B=c+1;B>1;--B)v=v^E.pbox[B],d=p(E,v)^d,_=v,v=d,d=_;return _=v,v=d,d=_,d=d^E.pbox[1],v=v^E.pbox[0],{left:v,right:d}}function b(E,A,g){for(let C=0;C<4;C++){E.sbox[C]=[];for(let S=0;S<256;S++)E.sbox[C][S]=a[C][S]}let v=0;for(let C=0;C<c+2;C++)E.pbox[C]=h[C]^A[v],v++,v>=g&&(v=0);let d=0,_=0,B=0;for(let C=0;C<c+2;C+=2)B=x(E,d,_),d=B.left,_=B.right,E.pbox[C]=d,E.pbox[C+1]=_;for(let C=0;C<4;C++)for(let S=0;S<256;S+=2)B=x(E,d,_),d=B.left,_=B.right,E.sbox[C][S]=d,E.sbox[C][S+1]=_;return!0}var m=s.Blowfish=o.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var E=this._keyPriorReset=this._key,A=E.words,g=E.sigBytes/4;b(f,A,g)}},encryptBlock:function(E,A){var g=x(f,E[A],E[A+1]);E[A]=g.left,E[A+1]=g.right},decryptBlock:function(E,A){var g=u(f,E[A],E[A+1]);E[A]=g.left,E[A+1]=g.right},blockSize:64/32,keySize:128/32,ivSize:64/32});r.Blowfish=o._createHelper(m)}(),e.Blowfish})}(jr)),jr.exports}(function(t,n){(function(e,r,i){t.exports=r(Ne(),Z0(),Ns(),Hs(),Kt(),Us(),Vt(),uo(),ln(),zs(),ho(),js(),Ls(),Ws(),pn(),$s(),Ut(),it(),Ks(),Vs(),Xs(),Gs(),Ys(),Zs(),Qs(),Js(),ec(),tc(),rc(),nc(),ic(),oc(),ac(),sc(),cc())})(ke,function(e){return e})})(fo);var fc=fo.exports;const bt=A0(fc),lo="3.7.8",xc=lo,f0=typeof Buffer=="function",gi=typeof TextDecoder=="function"?new TextDecoder:void 0,mi=typeof TextEncoder=="function"?new TextEncoder:void 0,uc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",v0=Array.prototype.slice.call(uc),T0=(t=>{let n={};return t.forEach((e,r)=>n[e]=r),n})(v0),dc=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,at=String.fromCharCode.bind(String),Ei=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):t=>new Uint8Array(Array.prototype.slice.call(t,0)),po=t=>t.replace(/=/g,"").replace(/[+\/]/g,n=>n=="+"?"-":"_"),vo=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),bo=t=>{let n,e,r,i,o="";const s=t.length%3;for(let c=0;c<t.length;){if((e=t.charCodeAt(c++))>255||(r=t.charCodeAt(c++))>255||(i=t.charCodeAt(c++))>255)throw new TypeError("invalid character found");n=e<<16|r<<8|i,o+=v0[n>>18&63]+v0[n>>12&63]+v0[n>>6&63]+v0[n&63]}return s?o.slice(0,s-3)+"===".substring(s):o},vn=typeof btoa=="function"?t=>btoa(t):f0?t=>Buffer.from(t,"binary").toString("base64"):bo,en=f0?t=>Buffer.from(t).toString("base64"):t=>{let e=[];for(let r=0,i=t.length;r<i;r+=4096)e.push(at.apply(null,t.subarray(r,r+4096)));return vn(e.join(""))},U0=(t,n=!1)=>n?po(en(t)):en(t),hc=t=>{if(t.length<2){var n=t.charCodeAt(0);return n<128?t:n<2048?at(192|n>>>6)+at(128|n&63):at(224|n>>>12&15)+at(128|n>>>6&63)+at(128|n&63)}else{var n=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return at(240|n>>>18&7)+at(128|n>>>12&63)+at(128|n>>>6&63)+at(128|n&63)}},lc=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,yo=t=>t.replace(lc,hc),_i=f0?t=>Buffer.from(t,"utf8").toString("base64"):mi?t=>en(mi.encode(t)):t=>vn(yo(t)),t0=(t,n=!1)=>n?po(_i(t)):_i(t),wi=t=>t0(t,!0),pc=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,vc=t=>{switch(t.length){case 4:var n=(7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3),e=n-65536;return at((e>>>10)+55296)+at((e&1023)+56320);case 3:return at((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return at((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},go=t=>t.replace(pc,vc),mo=t=>{if(t=t.replace(/\s+/g,""),!dc.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(t.length&3));let n,e,r,i=[];for(let o=0;o<t.length;)n=T0[t.charAt(o++)]<<18|T0[t.charAt(o++)]<<12|(e=T0[t.charAt(o++)])<<6|(r=T0[t.charAt(o++)]),e===64?i.push(at(n>>16&255)):r===64?i.push(at(n>>16&255,n>>8&255)):i.push(at(n>>16&255,n>>8&255,n&255));return i.join("")},bn=typeof atob=="function"?t=>atob(vo(t)):f0?t=>Buffer.from(t,"base64").toString("binary"):mo,Eo=f0?t=>Ei(Buffer.from(t,"base64")):t=>Ei(bn(t).split("").map(n=>n.charCodeAt(0))),_o=t=>Eo(wo(t)),bc=f0?t=>Buffer.from(t,"base64").toString("utf8"):gi?t=>gi.decode(Eo(t)):t=>go(bn(t)),wo=t=>vo(t.replace(/[-_]/g,n=>n=="-"?"+":"/")),Dt=t=>bc(wo(t)),yc=t=>{if(typeof t!="string")return!1;const n=t.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(n)||!/[^\s0-9a-zA-Z\-_]/.test(n)},Bo=t=>({value:t,enumerable:!1,writable:!0,configurable:!0}),Ao=function(){const t=(n,e)=>Object.defineProperty(String.prototype,n,Bo(e));t("fromBase64",function(){return Dt(this)}),t("toBase64",function(n){return t0(this,n)}),t("toBase64URI",function(){return t0(this,!0)}),t("toBase64URL",function(){return t0(this,!0)}),t("toUint8Array",function(){return _o(this)})},Co=function(){const t=(n,e)=>Object.defineProperty(Uint8Array.prototype,n,Bo(e));t("toBase64",function(n){return U0(this,n)}),t("toBase64URI",function(){return U0(this,!0)}),t("toBase64URL",function(){return U0(this,!0)})},gc=()=>{Ao(),Co()},mc={version:lo,VERSION:xc,atob:bn,atobPolyfill:mo,btoa:vn,btoaPolyfill:bo,fromBase64:Dt,toBase64:t0,encode:t0,encodeURI:wi,encodeURL:wi,utob:yo,btou:go,decode:Dt,isValid:yc,fromUint8Array:U0,toUint8Array:_o,extendString:Ao,extendUint8Array:Co,extendBuiltins:gc},Bi=(t,n)=>{const e=H0.utils.utf8.toBytes(t),r=e.length;return r>=n?e.slice(0,n):[].concat(...new Array(Math.ceil(n/r)).fill(e)).slice(0,n)};function tn(t,n,e){const{sign:r,iv:i}=n;let o="";try{e===o0.Hex?o=_c(t,r,i):o=Ec(t,r,i)}catch(c){console.error("decryptTextAES decrypt error",c,{encryptedText:t,decryptKeys:n,decryptType:e})}let s=o;try{s=JSON.parse(s)}catch(c){}return s}function Ec(t,n,e){const r=bt.enc.Utf8.parse(n),i={};return i.iv=bt.enc.Utf8.parse(e),i.mode=bt.mode.CBC,i.pad=bt.pad.Pkcs7,bt.AES.decrypt(t,r,i).toString(bt.enc.Utf8)}function _c(t,n,e){const r=H0.utils.hex.toBytes(t),i=Bi(n,16);let o=i;e&&(o=Bi(e,16));const c=new H0.ModeOfOperation.cbc(i,o).decrypt(r),h=H0.utils.utf8.fromBytes(c);return mc.decode(h)}class Fo{constructor(n={}){ye(this,"__config");this.__config=n}usePlugin(n){const{useAESDecrypt:e=!1}=n;return e}interceptDecryptResponse(n,e){return De(this,null,function*(){const r=yield this.__getDecryptInfo(e);if(!r||!r.decryptKeys)return n;let i=n.data;const o=r.decryptPosition||e0.ResponseData;if(o===e0.WholeResponse&&typeof n.data=="string"&&(i=tn(n.data,r.decryptKeys,o0.Hex)),o===e0.ResponseData&&typeof n.data=="object"&&n.data){const s=n.data;if(typeof s.data=="string"){const c=tn(s.data,r.decryptKeys,o0.Hex);i=St(ze({},i),{data:c})}}return St(ze({},n),{data:i})})}__getDecryptInfo(n){return De(this,null,function*(){let e=ze({},this.__config);if(typeof this.__config.getDecryptInfo=="function"){const r=(yield this.__config.getDecryptInfo(n))||{};e=ze(ze({},e),r)}return n.aesDecryptInfo&&(e=ze(ze({},e),n.aesDecryptInfo)),e})}}function Ai(t){return t.indexOf("/live/v4/watch/common")!==-1}function wc(t){return t.indexOf("/live/v4/watch/viewer")!==-1}function Ci(t){return/\/live\/v[34]\/channel/.test(t)}function Bc(t){return t.indexOf("/live/v3")!==-1}class Ac{constructor(n){ye(this,"__usePolyvBusiness");ye(this,"__config");var e;this.__config=n,this.__usePolyvBusiness=(e=n.usePolyvBusiness)!=null?e:!0}installPlugin(n){const e=new Jr({globalParams:r=>De(this,null,function*(){const i={};if(!this.usePlugin(r))return i;const o=r.url||"",s=yield this.__getBusinessData(r);return Ai(o)&&this.__checkBusiness(s,["sourceType","sourceId"])?(i.sourceType=s.sourceType,i.sourceId=s.sourceId):wc(o)&&this.__checkBusiness(s,["sourceType","sourceId","viewerId","unionId"])?(i.sourceType=s.sourceType,i.sourceId=s.sourceId,i.viewerId=s.viewerId,i.userId=s.unionId):Ci(o)&&this.__checkBusiness(s,["channelId"])?i.channelId=s.channelId:this.__checkBusiness(s,["channelId","viewerId"])&&(i.channelId=s.channelId,i.viewerId=s.viewerId),i})});n.installPlugin(e)}usePlugin(n){const{usePolyvBusiness:e=this.__usePolyvBusiness}=n;return e}interceptIncludeParams(n){const e=n.url||"";if(n=n,Ai(e)){n.useToken=!1;return}if(n.tokenInfo||(n.tokenInfo={}),!n.tokenInfo.tokenField){let r="viewerToken";Ci(e)?r="channelToken":Bc(e)&&(r="token"),n.tokenInfo.tokenField=r}}__checkBusiness(n,e){for(let r=0;r<e.length;r++){const i=e[r];if(!n[i])return!1}return!0}__getBusinessData(n){return De(this,null,function*(){let e={};if(typeof this.__config.getBusinessData=="function"){const r=(yield this.__config.getBusinessData(n))||{};e=ze(ze({},e),r)}return n.businessData&&(e=ze(ze({},e),n.businessData)),e})}}function Cc(){return{watchPageDomain:"https://live.polyv.cn",watchApiDomain:"https://live.polyv.cn",backstageApiDomain:"https://live.polyv.net",liveApiDomain:"https://live.polyv.net",polyvApiDomain:"https://api.polyv.net",polyvWatchApiDomain:"https://watch-api.polyv.cn",normalApiDomain:"https://live-normal.polyv.net",rtasDomain:"https://rtas.videocc.net",rtasDomain2:"https://rtas-2.videocc.net",elogDomain:"https://elog.polyv.net",chatWsDomain:"chat.polyv.net",chatApiDomain:"https://apichat.polyv.net",staticDomain:"https://liveimages.videocc.net",resourceDomain:"https://s1.videocc.net",playerBasicDomain:"https://player.polyv.net",liveJsonDomain:"https://livejson.polyv.net",vodImgStatic:"https://img.videocc.net",vodStaticDomain:"https://static.polyv.net",vodAuthDomain:"https://v3.polyv.net",vodEncryptDomain:"https://v.polyv.net",vodBetaDomain:"https://beta.polyv.net",vodHlsDomain:"https://hls.videocc.net",vodRtasDomain:"https://prtas.videocc.net",vodRtasDomain2:"https://prtas-2.videocc.net",vodScriptDomain:" https://script.polyv.net",playerSdkDomain:"https://player.polyv.net",webSdkDomain:"https://websdk.videocc.net",webSdkTestDomain:"https://polyv-frontend-sdk-test-01.oss-cn-shenzhen.aliyuncs.com"}}function yn(t){return ze(ze({},Cc()),t||{})}var So={exports:{}},Do={exports:{}};(function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,r){return e<<r|e>>>32-r},rotr:function(e,r){return e<<32-r|e>>>r},endian:function(e){if(e.constructor==Number)return n.rotl(e,8)&16711935|n.rotl(e,24)&4278255360;for(var r=0;r<e.length;r++)e[r]=n.endian(e[r]);return e},randomBytes:function(e){for(var r=[];e>0;e--)r.push(Math.floor(Math.random()*256));return r},bytesToWords:function(e){for(var r=[],i=0,o=0;i<e.length;i++,o+=8)r[o>>>5]|=e[i]<<24-o%32;return r},wordsToBytes:function(e){for(var r=[],i=0;i<e.length*32;i+=8)r.push(e[i>>>5]>>>24-i%32&255);return r},bytesToHex:function(e){for(var r=[],i=0;i<e.length;i++)r.push((e[i]>>>4).toString(16)),r.push((e[i]&15).toString(16));return r.join("")},hexToBytes:function(e){for(var r=[],i=0;i<e.length;i+=2)r.push(parseInt(e.substr(i,2),16));return r},bytesToBase64:function(e){for(var r=[],i=0;i<e.length;i+=3)for(var o=e[i]<<16|e[i+1]<<8|e[i+2],s=0;s<4;s++)i*8+s*6<=e.length*8?r.push(t.charAt(o>>>6*(3-s)&63)):r.push("=");return r.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/ig,"");for(var r=[],i=0,o=0;i<e.length;o=++i%4)o!=0&&r.push((t.indexOf(e.charAt(i-1))&Math.pow(2,-2*o+8)-1)<<o*2|t.indexOf(e.charAt(i))>>>6-o*2);return r}};Do.exports=n})();var Fc=Do.exports,rn={utf8:{stringToBytes:function(t){return rn.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(rn.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var n=[],e=0;e<t.length;e++)n.push(t.charCodeAt(e)&255);return n},bytesToString:function(t){for(var n=[],e=0;e<t.length;e++)n.push(String.fromCharCode(t[e]));return n.join("")}}},Fi=rn;/*!
16
16
  * Determine if an object is a Buffer
17
17
  *
18
18
  * @author Feross Aboukhadijeh <https://feross.org>
19
19
  * @license MIT
20
- */var Sc=function(t){return t!=null&&(So(t)||Dc(t)||!!t._isBuffer)};function So(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function Dc(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&So(t.slice(0,0))}(function(){var t=Fc,n=Fi.utf8,e=Sc,r=Fi.bin,i=function(o,s){o.constructor==String?s&&s.encoding==="binary"?o=r.stringToBytes(o):o=n.stringToBytes(o):e(o)?o=Array.prototype.slice.call(o,0):!Array.isArray(o)&&o.constructor!==Uint8Array&&(o=o.toString());for(var c=t.bytesToWords(o),h=o.length*8,a=1732584193,f=-271733879,p=-1732584194,x=271733878,u=0;u<c.length;u++)c[u]=(c[u]<<8|c[u]>>>24)&16711935|(c[u]<<24|c[u]>>>8)&4278255360;c[h>>>5]|=128<<h%32,c[(h+64>>>9<<4)+14]=h;for(var b=i._ff,m=i._gg,E=i._hh,A=i._ii,u=0;u<c.length;u+=16){var g=a,v=f,d=p,w=x;a=b(a,f,p,x,c[u+0],7,-680876936),x=b(x,a,f,p,c[u+1],12,-389564586),p=b(p,x,a,f,c[u+2],17,606105819),f=b(f,p,x,a,c[u+3],22,-1044525330),a=b(a,f,p,x,c[u+4],7,-176418897),x=b(x,a,f,p,c[u+5],12,1200080426),p=b(p,x,a,f,c[u+6],17,-1473231341),f=b(f,p,x,a,c[u+7],22,-45705983),a=b(a,f,p,x,c[u+8],7,1770035416),x=b(x,a,f,p,c[u+9],12,-1958414417),p=b(p,x,a,f,c[u+10],17,-42063),f=b(f,p,x,a,c[u+11],22,-1990404162),a=b(a,f,p,x,c[u+12],7,1804603682),x=b(x,a,f,p,c[u+13],12,-40341101),p=b(p,x,a,f,c[u+14],17,-1502002290),f=b(f,p,x,a,c[u+15],22,1236535329),a=m(a,f,p,x,c[u+1],5,-165796510),x=m(x,a,f,p,c[u+6],9,-1069501632),p=m(p,x,a,f,c[u+11],14,643717713),f=m(f,p,x,a,c[u+0],20,-373897302),a=m(a,f,p,x,c[u+5],5,-701558691),x=m(x,a,f,p,c[u+10],9,38016083),p=m(p,x,a,f,c[u+15],14,-660478335),f=m(f,p,x,a,c[u+4],20,-405537848),a=m(a,f,p,x,c[u+9],5,568446438),x=m(x,a,f,p,c[u+14],9,-1019803690),p=m(p,x,a,f,c[u+3],14,-187363961),f=m(f,p,x,a,c[u+8],20,1163531501),a=m(a,f,p,x,c[u+13],5,-1444681467),x=m(x,a,f,p,c[u+2],9,-51403784),p=m(p,x,a,f,c[u+7],14,1735328473),f=m(f,p,x,a,c[u+12],20,-1926607734),a=E(a,f,p,x,c[u+5],4,-378558),x=E(x,a,f,p,c[u+8],11,-2022574463),p=E(p,x,a,f,c[u+11],16,1839030562),f=E(f,p,x,a,c[u+14],23,-35309556),a=E(a,f,p,x,c[u+1],4,-1530992060),x=E(x,a,f,p,c[u+4],11,1272893353),p=E(p,x,a,f,c[u+7],16,-155497632),f=E(f,p,x,a,c[u+10],23,-1094730640),a=E(a,f,p,x,c[u+13],4,681279174),x=E(x,a,f,p,c[u+0],11,-358537222),p=E(p,x,a,f,c[u+3],16,-722521979),f=E(f,p,x,a,c[u+6],23,76029189),a=E(a,f,p,x,c[u+9],4,-640364487),x=E(x,a,f,p,c[u+12],11,-421815835),p=E(p,x,a,f,c[u+15],16,530742520),f=E(f,p,x,a,c[u+2],23,-995338651),a=A(a,f,p,x,c[u+0],6,-198630844),x=A(x,a,f,p,c[u+7],10,1126891415),p=A(p,x,a,f,c[u+14],15,-1416354905),f=A(f,p,x,a,c[u+5],21,-57434055),a=A(a,f,p,x,c[u+12],6,1700485571),x=A(x,a,f,p,c[u+3],10,-1894986606),p=A(p,x,a,f,c[u+10],15,-1051523),f=A(f,p,x,a,c[u+1],21,-2054922799),a=A(a,f,p,x,c[u+8],6,1873313359),x=A(x,a,f,p,c[u+15],10,-30611744),p=A(p,x,a,f,c[u+6],15,-1560198380),f=A(f,p,x,a,c[u+13],21,1309151649),a=A(a,f,p,x,c[u+4],6,-145523070),x=A(x,a,f,p,c[u+11],10,-1120210379),p=A(p,x,a,f,c[u+2],15,718787259),f=A(f,p,x,a,c[u+9],21,-343485551),a=a+g>>>0,f=f+v>>>0,p=p+d>>>0,x=x+w>>>0}return t.endian([a,f,p,x])};i._ff=function(o,s,c,h,a,f,p){var x=o+(s&c|~s&h)+(a>>>0)+p;return(x<<f|x>>>32-f)+s},i._gg=function(o,s,c,h,a,f,p){var x=o+(s&h|c&~h)+(a>>>0)+p;return(x<<f|x>>>32-f)+s},i._hh=function(o,s,c,h,a,f,p){var x=o+(s^c^h)+(a>>>0)+p;return(x<<f|x>>>32-f)+s},i._ii=function(o,s,c,h,a,f,p){var x=o+(c^(s|~h))+(a>>>0)+p;return(x<<f|x>>>32-f)+s},i._blocksize=16,i._digestsize=16,Co.exports=function(o,s){if(o==null)throw new Error("Illegal argument "+o);var c=t.wordsToBytes(i(o,s));return s&&s.asBytes?c:s&&s.asString?r.bytesToString(c):t.bytesToHex(c)}})();var Tc=Co.exports;const W0=A0(Tc),$0=/^(?:([a-z]+):)?\/{2,3}/i;function kc(t,n){return $0.test(t)}function Do(t,n){return $0.test(n)||(n+="://"),kc(t)?t.replace($0,n):n+t}function Rc(t){return t.replace($0,"")}var To={exports:{}},Lr={exports:{}},Si;function Ic(){return Si||(Si=1,function(t){(function(n){var e={bytesToHex:function(o){return r(o)},hexToBytes:function(o){if(o.length%2===1)throw new Error("hexToBytes can't have a string with an odd number of characters.");return o.indexOf("0x")===0&&(o=o.slice(2)),o.match(/../g).map(function(s){return parseInt(s,16)})}};function r(o){return o.map(function(s){return i(s.toString(16),2)}).join("")}function i(o,s){return o.length>s?o:Array(s-o.length+1).join("0")+o}t.exports?t.exports=e:n.convertHex=e})(ke)}(Lr)),Lr.exports}var Wr={exports:{}},Di;function Pc(){return Di||(Di=1,function(t){(function(n){var e={bytesToString:function(r){return r.map(function(i){return String.fromCharCode(i)}).join("")},stringToBytes:function(r){return r.split("").map(function(i){return i.charCodeAt(0)})}};e.UTF8={bytesToString:function(r){return decodeURIComponent(escape(e.bytesToString(r)))},stringToBytes:function(r){return e.stringToBytes(unescape(encodeURIComponent(r)))}},t.exports?t.exports=e:n.convertString=e})(ke)}(Wr)),Wr.exports}(function(t){(function(n){var e={};t.exports?(e.bytesToHex=Ic().bytesToHex,e.convertString=Pc(),t.exports=h):(e.bytesToHex=n.convertHex.bytesToHex,e.convertString=n.convertString,n.sha256=h);var r=[];(function(){function a(u){for(var b=Math.sqrt(u),m=2;m<=b;m++)if(!(u%m))return!1;return!0}function f(u){return(u-(u|0))*4294967296|0}for(var p=2,x=0;x<64;)a(p)&&(r[x]=f(Math.pow(p,1/3)),x++),p++})();var i=function(a){for(var f=[],p=0,x=0;p<a.length;p++,x+=8)f[x>>>5]|=a[p]<<24-x%32;return f},o=function(a){for(var f=[],p=0;p<a.length*32;p+=8)f.push(a[p>>>5]>>>24-p%32&255);return f},s=[],c=function(a,f,p){for(var x=a[0],u=a[1],b=a[2],m=a[3],E=a[4],A=a[5],g=a[6],v=a[7],d=0;d<64;d++){if(d<16)s[d]=f[p+d]|0;else{var w=s[d-15],B=(w<<25|w>>>7)^(w<<14|w>>>18)^w>>>3,C=s[d-2],S=(C<<15|C>>>17)^(C<<13|C>>>19)^C>>>10;s[d]=B+s[d-7]+S+s[d-16]}var k=E&A^~E&g,F=x&u^x&b^u&b,D=(x<<30|x>>>2)^(x<<19|x>>>13)^(x<<10|x>>>22),O=(E<<26|E>>>6)^(E<<21|E>>>11)^(E<<7|E>>>25),M=v+O+k+r[d]+s[d],z=D+F;v=g,g=A,A=E,E=m+M|0,m=b,b=u,u=x,x=M+z|0}a[0]=a[0]+x|0,a[1]=a[1]+u|0,a[2]=a[2]+b|0,a[3]=a[3]+m|0,a[4]=a[4]+E|0,a[5]=a[5]+A|0,a[6]=a[6]+g|0,a[7]=a[7]+v|0};function h(a,f){a.constructor===String&&(a=e.convertString.UTF8.stringToBytes(a));var p=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],x=i(a),u=a.length*8;x[u>>5]|=128<<24-u%32,x[(u+64>>9<<4)+15]=u;for(var b=0;b<x.length;b+=16)c(p,x,b);var m=o(p);return f&&f.asBytes?m:f&&f.asString?e.convertString.bytesToString(m):e.bytesToHex(m)}h.x2=function(a,f){return h(h(a,{asBytes:!0}),f)}})(ke)})(To);var Oc=To.exports;const ko=A0(Oc);function qc(t,n,e){const r=Object.keys(t).filter(o=>o!=="sign").sort();let i="";return r.forEach(o=>{let s=t[o];typeof s=="object"&&(s=JSON.stringify(s)),i+=o+s}),e||(e=String(t.signatureMethod).toLowerCase()==="sha256"?"sha256":"md5"),(e==="sha256"?ko:W0)(n+i+n).toString().toUpperCase()}class Mc extends no{constructor(n){super({baseUrl:Do(yn(n.config.domainInfo).chatApiDomain,"https"),requestPlugins:[new io({getTokenInfo:()=>De(this,null,function*(){const e=yield n.connect.getToken();if(!e)return;let r=$t.Params,i="token";const o=n.getUserInfo();return n.isSpecialUserType(o.userType)&&(r=$t.Header,i="authorization"),{token:e,tokenField:i,tokenMode:r}})}),new Jr({globalParams:e=>De(this,null,function*(){const{appendChannelId:r=!0,appendAccountId:i=!1,appendUserId:o=!0}=e,s={};if(r||i){const c=yield n.channel.getChannelInfo();r&&(s.channelId=c.channelId),i&&(s.accountId=c.accountId)}if(o){const c=n.getUserInfo();s.userId=c.userId}return s})}),new oo({successCode:200}),new Jr({globalParams:e=>De(this,null,function*(){const{appendSign:r=!1}=e;if(r)return{sign:yield this.getRoomSign()};const{appendChatSign:i=!1}=e;if(i){const o=e.params||{};return{sign:yield this.getChatSign(o)}}return{}})}),new Ao({getDecryptInfo:e=>{const r=e.params||{};return{decryptKeys:{sign:qc(r,"polyvChatClient"),iv:""},decryptPosition:e0.WholeResponse}}})]}),this._plvSocket=n}getRoomSign(){return De(this,null,function*(){const n=yield this._plvSocket.channel.getChannelInfo();return W0(`polyv_room_sign${n.channelId}`)})}getChatSign(n){return De(this,null,function*(){let e=Object.keys(n).sort((i,o)=>{i=i.toLocaleLowerCase(),o=o.toLocaleLowerCase();for(let s=0;s<i.length&&s<o.length;s++){const c=i.charCodeAt(s)-o.charCodeAt(s);if(c!==0)return c}return i.length>o.length?1:-1}).reduce((i,o)=>{let s=n[o];return!s&&s!==0?i:(typeof s=="object"&&(s=JSON.stringify(s)),`${i}${o}${s}`)},"");return W0("polyvChatSign"+e+"polyvChatSign").toLocaleUpperCase()})}}var b0=(t=>(t.Token="token",t.Sign="sign",t))(b0||{}),a0=(t=>(t.None="none",t.AES="aes",t.SM2="sm2",t))(a0||{});let k0;const Nc=new Uint8Array(16);function Hc(){if(!k0&&(k0=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!k0))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return k0(Nc)}const ot=[];for(let t=0;t<256;++t)ot.push((t+256).toString(16).slice(1));function zc(t,n=0){return ot[t[n+0]]+ot[t[n+1]]+ot[t[n+2]]+ot[t[n+3]]+"-"+ot[t[n+4]]+ot[t[n+5]]+"-"+ot[t[n+6]]+ot[t[n+7]]+"-"+ot[t[n+8]]+ot[t[n+9]]+"-"+ot[t[n+10]]+ot[t[n+11]]+ot[t[n+12]]+ot[t[n+13]]+ot[t[n+14]]+ot[t[n+15]]}const Uc=typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Ti={randomUUID:Uc};function jc(t,n,e){if(Ti.randomUUID&&!t)return Ti.randomUUID();t=t||{};const r=t.random||(t.rng||Hc)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,zc(r)}exports.SignatureMethod=void 0;(function(t){t.MD5="MD5",t.SHA256="SHA256"})(exports.SignatureMethod||(exports.SignatureMethod={}));function Lc(t){let n="";const e=Object.keys(t).sort();for(const r of e)t[r]&&(n+=`${r}${t[r]}`);return n}function Wc(t,n,e=exports.SignatureMethod.MD5){const r=Lc(t),i=n+r+n;return(e===exports.SignatureMethod.MD5?W0(i):ko(i)).toUpperCase()}class $c{constructor(n){ge(this,"__config");ge(this,"__appId");ge(this,"__appSecret");ge(this,"__signatureNonce");ge(this,"__signatureMethod");ge(this,"__getAppSign");var e,r;this.__config=n,this.__appId=n.appId||"",this.__appSecret=n.appSecret||"",this.__signatureNonce=(e=n.signatureNonce)!=null?e:!1,this.__signatureMethod=(r=n.signatureMethod)!=null?r:exports.SignatureMethod.MD5,this.__getAppSign=n.getAppSign}usePlugin(n){const{useAppSign:e=!0}=n;return e}interceptIncludeParams(n){const{signatureNonce:e=this.__signatureNonce,signatureMethod:r=this.__signatureMethod}=n,i={};return e&&(i.signatureNonce=jc()),r&&(i.signatureMethod=r),i}interceptAuthorizeRequest(n){return De(this,null,function*(){const e=Ue({},n.params||{}),r=yield this.__getAppSignData(e,n);return r?(e.appId=r.appId,e.timestamp=r.timestamp,e.sign=r.sign,r.signatureMethod&&(e.signatureMethod=r.signatureMethod)):console.error("AuthorizeAppSignRequestPlugin error, signData is undefined"),St(Ue({},n),{params:e})})}__getAppSignData(n,e){return De(this,null,function*(){const{signatureMethod:r=this.__signatureMethod}=e;if(this.__getAppSign)return yield this.__getAppSign({params:n,signatureMethod:r});if(this.__appId&&this.__appSecret){const i=Date.now(),o=St(Ue({},n),{appId:this.__appId,timestamp:i}),s=Wc(o,this.__appSecret,r);return{appId:this.__appId,timestamp:i,sign:s,signatureMethod:r}}})}}const Kc=Dt("S0xmTzdabmZRQzhqSXZFWA=="),Vc=Dt("VlRSZTdTbWRsbFJzSjdDYg=="),Xc=Dt("UG9seXZBcGlSZXNwb25zZQ=="),Gc=Dt("UG9seXZMaXZlRW5jcnlwdA==");function Yc(t,n){const{sign:e,iv:r}=n,i=bt.enc.Utf8.parse(e),o=bt.enc.Utf8.parse(t);return bt.AES.encrypt(o,i,{iv:bt.enc.Utf8.parse(r),mode:bt.mode.CBC,padding:bt.pad.Pkcs7}).toString()}class Zc{constructor(n={}){ge(this,"__config");ge(this,"__encryptPostAES");var e;this.__config=n,this.__encryptPostAES=(e=n.encryptPostAES)!=null?e:!0}usePlugin(n){const{useAES:e=!0}=n;return e}interceptIncludeParams(){return{encryptResponseType:1}}interceptEncryptRequest(n){const e=this.__handleData(n),r=this.__handleHeaders(n);return St(Ue({},n),{data:e,headers:r})}interceptDecryptResponse(n){const e=n.data;if(!e.encryption||typeof e.data!="string")return n;const r=e.data,i=this.__getDecryptKeyInfo();return e.data=tn(r,i,o0.Base64),n}__handleHeaders(n){var i;const e=n.headers||{},{encryptPostAES:r=this.__encryptPostAES}=n;return((i=n.method)==null?void 0:i.toLocaleUpperCase())==="POST"&&r&&(e["x-e-type"]=1),e}__handleData(n){var o;const e=n.data||{};if(((o=n.method)==null?void 0:o.toLocaleUpperCase())!=="POST")return e;let r=e;const{encryptPostAES:i=this.__encryptPostAES}=n;if(i){n.requestType="json";let s="";typeof e=="string"?s=e:typeof e=="object"&&(s=JSON.stringify(e));const c=this.__getEncryptKeyInfo(n);r=Yc(s,c)}return r}__getDecryptKeyInfo(){return{sign:Xc,iv:Gc}}__getEncryptKeyInfo(n){const e=n.params||{};let r=Kc;return"appId"in e&&e.appId===this.__config.appId&&this.__config.appSecret&&(r=this.__config.appSecret),{sign:r,iv:Vc}}}var Ro={exports:{}};(function(t,n){(function(){var e,r=0xdeadbeefcafe,i=(r&16777215)==15715070;function o(R,I,q){R!=null&&(typeof R=="number"?this.fromNumber(R,I,q):I==null&&typeof R!="string"?this.fromString(R,256):this.fromString(R,I))}function s(){return new o(null)}function c(R,I,q,$,re,ae){for(;--ae>=0;){var xe=I*this[R++]+q[$]+re;re=Math.floor(xe/67108864),q[$++]=xe&67108863}return re}function h(R,I,q,$,re,ae){for(var xe=I&32767,de=I>>15;--ae>=0;){var Xe=this[R]&32767,nt=this[R++]>>15,lt=de*Xe+nt*xe;Xe=xe*Xe+((lt&32767)<<15)+q[$]+(re&1073741823),re=(Xe>>>30)+(lt>>>15)+de*nt+(re>>>30),q[$++]=Xe&1073741823}return re}function a(R,I,q,$,re,ae){for(var xe=I&16383,de=I>>14;--ae>=0;){var Xe=this[R]&16383,nt=this[R++]>>14,lt=de*Xe+nt*xe;Xe=xe*Xe+((lt&16383)<<14)+q[$]+re,re=(Xe>>28)+(lt>>14)+de*nt,q[$++]=Xe&268435455}return re}var f=typeof navigator!="undefined";f&&i&&navigator.appName=="Microsoft Internet Explorer"?(o.prototype.am=h,e=30):f&&i&&navigator.appName!="Netscape"?(o.prototype.am=c,e=26):(o.prototype.am=a,e=28),o.prototype.DB=e,o.prototype.DM=(1<<e)-1,o.prototype.DV=1<<e;var p=52;o.prototype.FV=Math.pow(2,p),o.prototype.F1=p-e,o.prototype.F2=2*e-p;var x="0123456789abcdefghijklmnopqrstuvwxyz",u=new Array,b,m;for(b=48,m=0;m<=9;++m)u[b++]=m;for(b=97,m=10;m<36;++m)u[b++]=m;for(b=65,m=10;m<36;++m)u[b++]=m;function E(R){return x.charAt(R)}function A(R,I){var q=u[R.charCodeAt(I)];return q==null?-1:q}function g(R){for(var I=this.t-1;I>=0;--I)R[I]=this[I];R.t=this.t,R.s=this.s}function v(R){this.t=1,this.s=R<0?-1:0,R>0?this[0]=R:R<-1?this[0]=R+this.DV:this.t=0}function d(R){var I=s();return I.fromInt(R),I}function w(R,I){var q;if(I==16)q=4;else if(I==8)q=3;else if(I==256)q=8;else if(I==2)q=1;else if(I==32)q=5;else if(I==4)q=2;else{this.fromRadix(R,I);return}this.t=0,this.s=0;for(var $=R.length,re=!1,ae=0;--$>=0;){var xe=q==8?R[$]&255:A(R,$);if(xe<0){R.charAt($)=="-"&&(re=!0);continue}re=!1,ae==0?this[this.t++]=xe:ae+q>this.DB?(this[this.t-1]|=(xe&(1<<this.DB-ae)-1)<<ae,this[this.t++]=xe>>this.DB-ae):this[this.t-1]|=xe<<ae,ae+=q,ae>=this.DB&&(ae-=this.DB)}q==8&&R[0]&128&&(this.s=-1,ae>0&&(this[this.t-1]|=(1<<this.DB-ae)-1<<ae)),this.clamp(),re&&o.ZERO.subTo(this,this)}function B(){for(var R=this.s&this.DM;this.t>0&&this[this.t-1]==R;)--this.t}function C(R){if(this.s<0)return"-"+this.negate().toString(R);var I;if(R==16)I=4;else if(R==8)I=3;else if(R==2)I=1;else if(R==32)I=5;else if(R==4)I=2;else return this.toRadix(R);var q=(1<<I)-1,$,re=!1,ae="",xe=this.t,de=this.DB-xe*this.DB%I;if(xe-- >0)for(de<this.DB&&($=this[xe]>>de)>0&&(re=!0,ae=E($));xe>=0;)de<I?($=(this[xe]&(1<<de)-1)<<I-de,$|=this[--xe]>>(de+=this.DB-I)):($=this[xe]>>(de-=I)&q,de<=0&&(de+=this.DB,--xe)),$>0&&(re=!0),re&&(ae+=E($));return re?ae:"0"}function S(){var R=s();return o.ZERO.subTo(this,R),R}function k(){return this.s<0?this.negate():this}function F(R){var I=this.s-R.s;if(I!=0)return I;var q=this.t;if(I=q-R.t,I!=0)return this.s<0?-I:I;for(;--q>=0;)if((I=this[q]-R[q])!=0)return I;return 0}function D(R){var I=1,q;return(q=R>>>16)!=0&&(R=q,I+=16),(q=R>>8)!=0&&(R=q,I+=8),(q=R>>4)!=0&&(R=q,I+=4),(q=R>>2)!=0&&(R=q,I+=2),(q=R>>1)!=0&&(R=q,I+=1),I}function O(){return this.t<=0?0:this.DB*(this.t-1)+D(this[this.t-1]^this.s&this.DM)}function M(R,I){var q;for(q=this.t-1;q>=0;--q)I[q+R]=this[q];for(q=R-1;q>=0;--q)I[q]=0;I.t=this.t+R,I.s=this.s}function z(R,I){for(var q=R;q<this.t;++q)I[q-R]=this[q];I.t=Math.max(this.t-R,0),I.s=this.s}function U(R,I){var q=R%this.DB,$=this.DB-q,re=(1<<$)-1,ae=Math.floor(R/this.DB),xe=this.s<<q&this.DM,de;for(de=this.t-1;de>=0;--de)I[de+ae+1]=this[de]>>$|xe,xe=(this[de]&re)<<q;for(de=ae-1;de>=0;--de)I[de]=0;I[ae]=xe,I.t=this.t+ae+1,I.s=this.s,I.clamp()}function j(R,I){I.s=this.s;var q=Math.floor(R/this.DB);if(q>=this.t){I.t=0;return}var $=R%this.DB,re=this.DB-$,ae=(1<<$)-1;I[0]=this[q]>>$;for(var xe=q+1;xe<this.t;++xe)I[xe-q-1]|=(this[xe]&ae)<<re,I[xe-q]=this[xe]>>$;$>0&&(I[this.t-q-1]|=(this.s&ae)<<re),I.t=this.t-q,I.clamp()}function W(R,I){for(var q=0,$=0,re=Math.min(R.t,this.t);q<re;)$+=this[q]-R[q],I[q++]=$&this.DM,$>>=this.DB;if(R.t<this.t){for($-=R.s;q<this.t;)$+=this[q],I[q++]=$&this.DM,$>>=this.DB;$+=this.s}else{for($+=this.s;q<R.t;)$-=R[q],I[q++]=$&this.DM,$>>=this.DB;$-=R.s}I.s=$<0?-1:0,$<-1?I[q++]=this.DV+$:$>0&&(I[q++]=$),I.t=q,I.clamp()}function Q(R,I){var q=this.abs(),$=R.abs(),re=q.t;for(I.t=re+$.t;--re>=0;)I[re]=0;for(re=0;re<$.t;++re)I[re+q.t]=q.am(0,$[re],I,re,0,q.t);I.s=0,I.clamp(),this.s!=R.s&&o.ZERO.subTo(I,I)}function Z(R){for(var I=this.abs(),q=R.t=2*I.t;--q>=0;)R[q]=0;for(q=0;q<I.t-1;++q){var $=I.am(q,I[q],R,2*q,0,1);(R[q+I.t]+=I.am(q+1,2*I[q],R,2*q+1,$,I.t-q-1))>=I.DV&&(R[q+I.t]-=I.DV,R[q+I.t+1]=1)}R.t>0&&(R[R.t-1]+=I.am(q,I[q],R,2*q,0,1)),R.s=0,R.clamp()}function te(R,I,q){var $=R.abs();if(!($.t<=0)){var re=this.abs();if(re.t<$.t){I!=null&&I.fromInt(0),q!=null&&this.copyTo(q);return}q==null&&(q=s());var ae=s(),xe=this.s,de=R.s,Xe=this.DB-D($[$.t-1]);Xe>0?($.lShiftTo(Xe,ae),re.lShiftTo(Xe,q)):($.copyTo(ae),re.copyTo(q));var nt=ae.t,lt=ae[nt-1];if(lt!=0){var dt=lt*(1<<this.F1)+(nt>1?ae[nt-2]>>this.F2:0),Ft=this.FV/dt,F0=(1<<this.F1)/dt,mt=1<<this.F2,Et=q.t,S0=Et-nt,kt=I==null?s():I;for(ae.dlShiftTo(S0,kt),q.compareTo(kt)>=0&&(q[q.t++]=1,q.subTo(kt,q)),o.ONE.dlShiftTo(nt,kt),kt.subTo(ae,ae);ae.t<nt;)ae[ae.t++]=0;for(;--S0>=0;){var or=q[--Et]==lt?this.DM:Math.floor(q[Et]*Ft+(q[Et-1]+mt)*F0);if((q[Et]+=ae.am(0,or,q,S0,0,nt))<or)for(ae.dlShiftTo(S0,kt),q.subTo(kt,q);q[Et]<--or;)q.subTo(kt,q)}I!=null&&(q.drShiftTo(nt,I),xe!=de&&o.ZERO.subTo(I,I)),q.t=nt,q.clamp(),Xe>0&&q.rShiftTo(Xe,q),xe<0&&o.ZERO.subTo(q,q)}}}function P(R){var I=s();return this.abs().divRemTo(R,null,I),this.s<0&&I.compareTo(o.ZERO)>0&&R.subTo(I,I),I}function l(R){this.m=R}function y(R){return R.s<0||R.compareTo(this.m)>=0?R.mod(this.m):R}function _(R){return R}function T(R){R.divRemTo(this.m,null,R)}function N(R,I,q){R.multiplyTo(I,q),this.reduce(q)}function X(R,I){R.squareTo(I),this.reduce(I)}l.prototype.convert=y,l.prototype.revert=_,l.prototype.reduce=T,l.prototype.mulTo=N,l.prototype.sqrTo=X;function V(){if(this.t<1)return 0;var R=this[0];if(!(R&1))return 0;var I=R&3;return I=I*(2-(R&15)*I)&15,I=I*(2-(R&255)*I)&255,I=I*(2-((R&65535)*I&65535))&65535,I=I*(2-R*I%this.DV)%this.DV,I>0?this.DV-I:-I}function Y(R){this.m=R,this.mp=R.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<R.DB-15)-1,this.mt2=2*R.t}function ie(R){var I=s();return R.abs().dlShiftTo(this.m.t,I),I.divRemTo(this.m,null,I),R.s<0&&I.compareTo(o.ZERO)>0&&this.m.subTo(I,I),I}function ue(R){var I=s();return R.copyTo(I),this.reduce(I),I}function Ee(R){for(;R.t<=this.mt2;)R[R.t++]=0;for(var I=0;I<this.m.t;++I){var q=R[I]&32767,$=q*this.mpl+((q*this.mph+(R[I]>>15)*this.mpl&this.um)<<15)&R.DM;for(q=I+this.m.t,R[q]+=this.m.am(0,$,R,I,0,this.m.t);R[q]>=R.DV;)R[q]-=R.DV,R[++q]++}R.clamp(),R.drShiftTo(this.m.t,R),R.compareTo(this.m)>=0&&R.subTo(this.m,R)}function _e(R,I){R.squareTo(I),this.reduce(I)}function ve(R,I,q){R.multiplyTo(I,q),this.reduce(q)}Y.prototype.convert=ie,Y.prototype.revert=ue,Y.prototype.reduce=Ee,Y.prototype.mulTo=ve,Y.prototype.sqrTo=_e;function Be(){return(this.t>0?this[0]&1:this.s)==0}function qe(R,I){if(R>4294967295||R<1)return o.ONE;var q=s(),$=s(),re=I.convert(this),ae=D(R)-1;for(re.copyTo(q);--ae>=0;)if(I.sqrTo(q,$),(R&1<<ae)>0)I.mulTo($,re,q);else{var xe=q;q=$,$=xe}return I.revert(q)}function Re(R,I){var q;return R<256||I.isEven()?q=new l(I):q=new Y(I),this.exp(R,q)}o.prototype.copyTo=g,o.prototype.fromInt=v,o.prototype.fromString=w,o.prototype.clamp=B,o.prototype.dlShiftTo=M,o.prototype.drShiftTo=z,o.prototype.lShiftTo=U,o.prototype.rShiftTo=j,o.prototype.subTo=W,o.prototype.multiplyTo=Q,o.prototype.squareTo=Z,o.prototype.divRemTo=te,o.prototype.invDigit=V,o.prototype.isEven=Be,o.prototype.exp=qe,o.prototype.toString=C,o.prototype.negate=S,o.prototype.abs=k,o.prototype.compareTo=F,o.prototype.bitLength=O,o.prototype.mod=P,o.prototype.modPowInt=Re,o.ZERO=d(0),o.ONE=d(1);function We(){var R=s();return this.copyTo(R),R}function J(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]}function ce(){return this.t==0?this.s:this[0]<<24>>24}function le(){return this.t==0?this.s:this[0]<<16>>16}function me(R){return Math.floor(Math.LN2*this.DB/Math.log(R))}function ye(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1}function Ve(R){if(R==null&&(R=10),this.signum()==0||R<2||R>36)return"0";var I=this.chunkSize(R),q=Math.pow(R,I),$=d(q),re=s(),ae=s(),xe="";for(this.divRemTo($,re,ae);re.signum()>0;)xe=(q+ae.intValue()).toString(R).substr(1)+xe,re.divRemTo($,re,ae);return ae.intValue().toString(R)+xe}function Oe(R,I){this.fromInt(0),I==null&&(I=10);for(var q=this.chunkSize(I),$=Math.pow(I,q),re=!1,ae=0,xe=0,de=0;de<R.length;++de){var Xe=A(R,de);if(Xe<0){R.charAt(de)=="-"&&this.signum()==0&&(re=!0);continue}xe=I*xe+Xe,++ae>=q&&(this.dMultiply($),this.dAddOffset(xe,0),ae=0,xe=0)}ae>0&&(this.dMultiply(Math.pow(I,ae)),this.dAddOffset(xe,0)),re&&o.ZERO.subTo(this,this)}function Te(R,I,q){if(typeof I=="number")if(R<2)this.fromInt(1);else for(this.fromNumber(R,q),this.testBit(R-1)||this.bitwiseTo(o.ONE.shiftLeft(R-1),be,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(I);)this.dAddOffset(2,0),this.bitLength()>R&&this.subTo(o.ONE.shiftLeft(R-1),this);else{var $=new Array,re=R&7;$.length=(R>>3)+1,I.nextBytes($),re>0?$[0]&=(1<<re)-1:$[0]=0,this.fromString($,256)}}function Ae(){var R=this.t,I=new Array;I[0]=this.s;var q=this.DB-R*this.DB%8,$,re=0;if(R-- >0)for(q<this.DB&&($=this[R]>>q)!=(this.s&this.DM)>>q&&(I[re++]=$|this.s<<this.DB-q);R>=0;)q<8?($=(this[R]&(1<<q)-1)<<8-q,$|=this[--R]>>(q+=this.DB-8)):($=this[R]>>(q-=8)&255,q<=0&&(q+=this.DB,--R)),$&128&&($|=-256),re==0&&(this.s&128)!=($&128)&&++re,(re>0||$!=this.s)&&(I[re++]=$);return I}function ze(R){return this.compareTo(R)==0}function Ge(R){return this.compareTo(R)<0?this:R}function $e(R){return this.compareTo(R)>0?this:R}function ee(R,I,q){var $,re,ae=Math.min(R.t,this.t);for($=0;$<ae;++$)q[$]=I(this[$],R[$]);if(R.t<this.t){for(re=R.s&this.DM,$=ae;$<this.t;++$)q[$]=I(this[$],re);q.t=this.t}else{for(re=this.s&this.DM,$=ae;$<R.t;++$)q[$]=I(re,R[$]);q.t=R.t}q.s=I(this.s,R.s),q.clamp()}function oe(R,I){return R&I}function he(R){var I=s();return this.bitwiseTo(R,oe,I),I}function be(R,I){return R|I}function Ce(R){var I=s();return this.bitwiseTo(R,be,I),I}function He(R,I){return R^I}function Ke(R){var I=s();return this.bitwiseTo(R,He,I),I}function Ye(R,I){return R&~I}function Ze(R){var I=s();return this.bitwiseTo(R,Ye,I),I}function fe(){for(var R=s(),I=0;I<this.t;++I)R[I]=this.DM&~this[I];return R.t=this.t,R.s=~this.s,R}function H(R){var I=s();return R<0?this.rShiftTo(-R,I):this.lShiftTo(R,I),I}function L(R){var I=s();return R<0?this.lShiftTo(-R,I):this.rShiftTo(R,I),I}function K(R){if(R==0)return-1;var I=0;return R&65535||(R>>=16,I+=16),R&255||(R>>=8,I+=8),R&15||(R>>=4,I+=4),R&3||(R>>=2,I+=2),R&1||++I,I}function G(){for(var R=0;R<this.t;++R)if(this[R]!=0)return R*this.DB+K(this[R]);return this.s<0?this.t*this.DB:-1}function se(R){for(var I=0;R!=0;)R&=R-1,++I;return I}function ne(){for(var R=0,I=this.s&this.DM,q=0;q<this.t;++q)R+=se(this[q]^I);return R}function pe(R){var I=Math.floor(R/this.DB);return I>=this.t?this.s!=0:(this[I]&1<<R%this.DB)!=0}function we(R,I){var q=o.ONE.shiftLeft(R);return this.bitwiseTo(q,I,q),q}function Fe(R){return this.changeBit(R,be)}function Se(R){return this.changeBit(R,Ye)}function Le(R){return this.changeBit(R,He)}function Pe(R,I){for(var q=0,$=0,re=Math.min(R.t,this.t);q<re;)$+=this[q]+R[q],I[q++]=$&this.DM,$>>=this.DB;if(R.t<this.t){for($+=R.s;q<this.t;)$+=this[q],I[q++]=$&this.DM,$>>=this.DB;$+=this.s}else{for($+=this.s;q<R.t;)$+=R[q],I[q++]=$&this.DM,$>>=this.DB;$+=R.s}I.s=$<0?-1:0,$>0?I[q++]=$:$<-1&&(I[q++]=this.DV+$),I.t=q,I.clamp()}function Qe(R){var I=s();return this.addTo(R,I),I}function et(R){var I=s();return this.subTo(R,I),I}function xt(R){var I=s();return this.multiplyTo(R,I),I}function pa(){var R=s();return this.squareTo(R),R}function va(R){var I=s();return this.divRemTo(R,I,null),I}function ba(R){var I=s();return this.divRemTo(R,null,I),I}function ya(R){var I=s(),q=s();return this.divRemTo(R,I,q),new Array(I,q)}function ga(R){this[this.t]=this.am(0,R-1,this,0,0,this.t),++this.t,this.clamp()}function ma(R,I){if(R!=0){for(;this.t<=I;)this[this.t++]=0;for(this[I]+=R;this[I]>=this.DV;)this[I]-=this.DV,++I>=this.t&&(this[this.t++]=0),++this[I]}}function p0(){}function kn(R){return R}function Ea(R,I,q){R.multiplyTo(I,q)}function wa(R,I){R.squareTo(I)}p0.prototype.convert=kn,p0.prototype.revert=kn,p0.prototype.mulTo=Ea,p0.prototype.sqrTo=wa;function _a(R){return this.exp(R,new p0)}function Ba(R,I,q){var $=Math.min(this.t+R.t,I);for(q.s=0,q.t=$;$>0;)q[--$]=0;var re;for(re=q.t-this.t;$<re;++$)q[$+this.t]=this.am(0,R[$],q,$,0,this.t);for(re=Math.min(R.t,I);$<re;++$)this.am(0,R[$],q,$,0,I-$);q.clamp()}function Aa(R,I,q){--I;var $=q.t=this.t+R.t-I;for(q.s=0;--$>=0;)q[$]=0;for($=Math.max(I-this.t,0);$<R.t;++$)q[this.t+$-I]=this.am(I-$,R[$],q,0,0,this.t+$-I);q.clamp(),q.drShiftTo(1,q)}function Ut(R){this.r2=s(),this.q3=s(),o.ONE.dlShiftTo(2*R.t,this.r2),this.mu=this.r2.divide(R),this.m=R}function Ca(R){if(R.s<0||R.t>2*this.m.t)return R.mod(this.m);if(R.compareTo(this.m)<0)return R;var I=s();return R.copyTo(I),this.reduce(I),I}function Fa(R){return R}function Sa(R){for(R.drShiftTo(this.m.t-1,this.r2),R.t>this.m.t+1&&(R.t=this.m.t+1,R.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);R.compareTo(this.r2)<0;)R.dAddOffset(1,this.m.t+1);for(R.subTo(this.r2,R);R.compareTo(this.m)>=0;)R.subTo(this.m,R)}function Da(R,I){R.squareTo(I),this.reduce(I)}function Ta(R,I,q){R.multiplyTo(I,q),this.reduce(q)}Ut.prototype.convert=Ca,Ut.prototype.revert=Fa,Ut.prototype.reduce=Sa,Ut.prototype.mulTo=Ta,Ut.prototype.sqrTo=Da;function ka(R,I){var q=R.bitLength(),$,re=d(1),ae;if(q<=0)return re;q<18?$=1:q<48?$=3:q<144?$=4:q<768?$=5:$=6,q<8?ae=new l(I):I.isEven()?ae=new Ut(I):ae=new Y(I);var xe=new Array,de=3,Xe=$-1,nt=(1<<$)-1;if(xe[1]=ae.convert(this),$>1){var lt=s();for(ae.sqrTo(xe[1],lt);de<=nt;)xe[de]=s(),ae.mulTo(lt,xe[de-2],xe[de]),de+=2}var dt=R.t-1,Ft,F0=!0,mt=s(),Et;for(q=D(R[dt])-1;dt>=0;){for(q>=Xe?Ft=R[dt]>>q-Xe&nt:(Ft=(R[dt]&(1<<q+1)-1)<<Xe-q,dt>0&&(Ft|=R[dt-1]>>this.DB+q-Xe)),de=$;!(Ft&1);)Ft>>=1,--de;if((q-=de)<0&&(q+=this.DB,--dt),F0)xe[Ft].copyTo(re),F0=!1;else{for(;de>1;)ae.sqrTo(re,mt),ae.sqrTo(mt,re),de-=2;de>0?ae.sqrTo(re,mt):(Et=re,re=mt,mt=Et),ae.mulTo(mt,xe[Ft],re)}for(;dt>=0&&!(R[dt]&1<<q);)ae.sqrTo(re,mt),Et=re,re=mt,mt=Et,--q<0&&(q=this.DB-1,--dt)}return ae.revert(re)}function Ra(R){var I=this.s<0?this.negate():this.clone(),q=R.s<0?R.negate():R.clone();if(I.compareTo(q)<0){var $=I;I=q,q=$}var re=I.getLowestSetBit(),ae=q.getLowestSetBit();if(ae<0)return I;for(re<ae&&(ae=re),ae>0&&(I.rShiftTo(ae,I),q.rShiftTo(ae,q));I.signum()>0;)(re=I.getLowestSetBit())>0&&I.rShiftTo(re,I),(re=q.getLowestSetBit())>0&&q.rShiftTo(re,q),I.compareTo(q)>=0?(I.subTo(q,I),I.rShiftTo(1,I)):(q.subTo(I,q),q.rShiftTo(1,q));return ae>0&&q.lShiftTo(ae,q),q}function Ia(R){if(R<=0)return 0;var I=this.DV%R,q=this.s<0?R-1:0;if(this.t>0)if(I==0)q=this[0]%R;else for(var $=this.t-1;$>=0;--$)q=(I*q+this[$])%R;return q}function Pa(R){var I=R.isEven();if(this.isEven()&&I||R.signum()==0)return o.ZERO;for(var q=R.clone(),$=this.clone(),re=d(1),ae=d(0),xe=d(0),de=d(1);q.signum()!=0;){for(;q.isEven();)q.rShiftTo(1,q),I?((!re.isEven()||!ae.isEven())&&(re.addTo(this,re),ae.subTo(R,ae)),re.rShiftTo(1,re)):ae.isEven()||ae.subTo(R,ae),ae.rShiftTo(1,ae);for(;$.isEven();)$.rShiftTo(1,$),I?((!xe.isEven()||!de.isEven())&&(xe.addTo(this,xe),de.subTo(R,de)),xe.rShiftTo(1,xe)):de.isEven()||de.subTo(R,de),de.rShiftTo(1,de);q.compareTo($)>=0?(q.subTo($,q),I&&re.subTo(xe,re),ae.subTo(de,ae)):($.subTo(q,$),I&&xe.subTo(re,xe),de.subTo(ae,de))}if($.compareTo(o.ONE)!=0)return o.ZERO;if(de.compareTo(R)>=0)return de.subtract(R);if(de.signum()<0)de.addTo(R,de);else return de;return de.signum()<0?de.add(R):de}var ct=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],Oa=(1<<26)/ct[ct.length-1];function qa(R){var I,q=this.abs();if(q.t==1&&q[0]<=ct[ct.length-1]){for(I=0;I<ct.length;++I)if(q[0]==ct[I])return!0;return!1}if(q.isEven())return!1;for(I=1;I<ct.length;){for(var $=ct[I],re=I+1;re<ct.length&&$<Oa;)$*=ct[re++];for($=q.modInt($);I<re;)if($%ct[I++]==0)return!1}return q.millerRabin(R)}function Ma(R){var I=this.subtract(o.ONE),q=I.getLowestSetBit();if(q<=0)return!1;var $=I.shiftRight(q);R=R+1>>1,R>ct.length&&(R=ct.length);for(var re=s(),ae=0;ae<R;++ae){re.fromInt(ct[Math.floor(Math.random()*ct.length)]);var xe=re.modPow($,this);if(xe.compareTo(o.ONE)!=0&&xe.compareTo(I)!=0){for(var de=1;de++<q&&xe.compareTo(I)!=0;)if(xe=xe.modPowInt(2,this),xe.compareTo(o.ONE)==0)return!1;if(xe.compareTo(I)!=0)return!1}}return!0}o.prototype.chunkSize=me,o.prototype.toRadix=Ve,o.prototype.fromRadix=Oe,o.prototype.fromNumber=Te,o.prototype.bitwiseTo=ee,o.prototype.changeBit=we,o.prototype.addTo=Pe,o.prototype.dMultiply=ga,o.prototype.dAddOffset=ma,o.prototype.multiplyLowerTo=Ba,o.prototype.multiplyUpperTo=Aa,o.prototype.modInt=Ia,o.prototype.millerRabin=Ma,o.prototype.clone=We,o.prototype.intValue=J,o.prototype.byteValue=ce,o.prototype.shortValue=le,o.prototype.signum=ye,o.prototype.toByteArray=Ae,o.prototype.equals=ze,o.prototype.min=Ge,o.prototype.max=$e,o.prototype.and=he,o.prototype.or=Ce,o.prototype.xor=Ke,o.prototype.andNot=Ze,o.prototype.not=fe,o.prototype.shiftLeft=H,o.prototype.shiftRight=L,o.prototype.getLowestSetBit=G,o.prototype.bitCount=ne,o.prototype.testBit=pe,o.prototype.setBit=Fe,o.prototype.clearBit=Se,o.prototype.flipBit=Le,o.prototype.add=Qe,o.prototype.subtract=et,o.prototype.multiply=xt,o.prototype.divide=va,o.prototype.remainder=ba,o.prototype.divideAndRemainder=ya,o.prototype.modPow=ka,o.prototype.modInverse=Pa,o.prototype.pow=_a,o.prototype.gcd=Ra,o.prototype.isProbablePrime=qa,o.prototype.square=pa,o.prototype.Barrett=Ut;var C0,ut,rt;function Na(R){ut[rt++]^=R&255,ut[rt++]^=R>>8&255,ut[rt++]^=R>>16&255,ut[rt++]^=R>>24&255,rt>=ir&&(rt-=ir)}function Rn(){Na(new Date().getTime())}if(ut==null){ut=new Array,rt=0;var gt;if(typeof window!="undefined"&&window.crypto){if(window.crypto.getRandomValues){var In=new Uint8Array(32);for(window.crypto.getRandomValues(In),gt=0;gt<32;++gt)ut[rt++]=In[gt]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var Pn=window.crypto.random(32);for(gt=0;gt<Pn.length;++gt)ut[rt++]=Pn.charCodeAt(gt)&255}}for(;rt<ir;)gt=Math.floor(65536*Math.random()),ut[rt++]=gt>>>8,ut[rt++]=gt&255;rt=0,Rn()}function Ha(){if(C0==null){for(Rn(),C0=La(),C0.init(ut),rt=0;rt<ut.length;++rt)ut[rt]=0;rt=0}return C0.next()}function za(R){var I;for(I=0;I<R.length;++I)R[I]=Ha()}function On(){}On.prototype.nextBytes=za;function nr(){this.i=0,this.j=0,this.S=new Array}function Ua(R){var I,q,$;for(I=0;I<256;++I)this.S[I]=I;for(q=0,I=0;I<256;++I)q=q+this.S[I]+R[I%R.length]&255,$=this.S[I],this.S[I]=this.S[q],this.S[q]=$;this.i=0,this.j=0}function ja(){var R;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,R=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=R,this.S[R+this.S[this.i]&255]}nr.prototype.init=Ua,nr.prototype.next=ja;function La(){return new nr}var ir=256;t.exports={default:o,BigInteger:o,SecureRandom:On}}).call(ke)})(Ro);var Q0=Ro.exports;const{BigInteger:s0}=Q0;function Qc(t){let n=t.toString(16);if(n[0]!=="-")n.length%2===1?n="0"+n:n.match(/^[0-7]/)||(n="00"+n);else{n=n.substr(1);let e=n.length;e%2===1?e+=1:n.match(/^[0-7]/)||(e+=2);let r="";for(let i=0;i<e;i++)r+="f";r=new s0(r,16),n=r.xor(t).add(s0.ONE),n=n.toString(16).replace(/^-/,"")}return n}class Io{constructor(){this.tlv=null,this.t="00",this.l="00",this.v=""}getEncodedHex(){return this.tlv||(this.v=this.getValue(),this.l=this.getLength(),this.tlv=this.t+this.l+this.v),this.tlv}getLength(){const n=this.v.length/2;let e=n.toString(16);return e.length%2===1&&(e="0"+e),n<128?e:(128+e.length/2).toString(16)+e}getValue(){return""}}class ki extends Io{constructor(n){super(),this.t="02",n&&(this.v=Qc(n))}getValue(){return this.v}}class Jc extends Io{constructor(n){super(),this.t="30",this.asn1Array=n}getValue(){return this.v=this.asn1Array.map(n=>n.getEncodedHex()).join(""),this.v}}function Po(t,n){return+t[n+2]<8?1:+t.substr(n+2,2)&128}function Ri(t,n){const e=Po(t,n),r=t.substr(n+2,e*2);return r?(+r[0]<8?new s0(r,16):new s0(r.substr(2),16)).intValue():-1}function $r(t,n){const e=Po(t,n);return n+(e+1)*2}var ef={encodeDer(t,n){const e=new ki(t),r=new ki(n);return new Jc([e,r]).getEncodedHex()},decodeDer(t){const n=$r(t,0),e=$r(t,n),r=Ri(t,n),i=t.substr(e,r*2),o=e+i.length,s=$r(t,o),c=Ri(t,o),h=t.substr(s,c*2),a=new s0(i,16),f=new s0(h,16);return{r:a,s:f}}};const{BigInteger:ft}=Q0,Ii=new ft("2"),Pi=new ft("3");class It{constructor(n,e){this.x=e,this.q=n}equals(n){return n===this?!0:this.q.equals(n.q)&&this.x.equals(n.x)}toBigInteger(){return this.x}negate(){return new It(this.q,this.x.negate().mod(this.q))}add(n){return new It(this.q,this.x.add(n.toBigInteger()).mod(this.q))}subtract(n){return new It(this.q,this.x.subtract(n.toBigInteger()).mod(this.q))}multiply(n){return new It(this.q,this.x.multiply(n.toBigInteger()).mod(this.q))}divide(n){return new It(this.q,this.x.multiply(n.toBigInteger().modInverse(this.q)).mod(this.q))}square(){return new It(this.q,this.x.square().mod(this.q))}}class Wt{constructor(n,e,r,i){this.curve=n,this.x=e,this.y=r,this.z=i==null?ft.ONE:i,this.zinv=null}getX(){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))}getY(){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))}equals(n){return n===this?!0:this.isInfinity()?n.isInfinity():n.isInfinity()?this.isInfinity():n.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(n.z)).mod(this.curve.q).equals(ft.ZERO)?n.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(n.z)).mod(this.curve.q).equals(ft.ZERO):!1}isInfinity(){return this.x===null&&this.y===null?!0:this.z.equals(ft.ZERO)&&!this.y.toBigInteger().equals(ft.ZERO)}negate(){return new Wt(this.curve,this.x,this.y.negate(),this.z)}add(n){if(this.isInfinity())return n;if(n.isInfinity())return this;const e=this.x.toBigInteger(),r=this.y.toBigInteger(),i=this.z,o=n.x.toBigInteger(),s=n.y.toBigInteger(),c=n.z,h=this.curve.q,a=e.multiply(c).mod(h),f=o.multiply(i).mod(h),p=a.subtract(f),x=r.multiply(c).mod(h),u=s.multiply(i).mod(h),b=x.subtract(u);if(ft.ZERO.equals(p))return ft.ZERO.equals(b)?this.twice():this.curve.infinity;const m=a.add(f),E=i.multiply(c).mod(h),A=p.square().mod(h),g=p.multiply(A).mod(h),v=E.multiply(b.square()).subtract(m.multiply(A)).mod(h),d=p.multiply(v).mod(h),w=b.multiply(A.multiply(a).subtract(v)).subtract(x.multiply(g)).mod(h),B=g.multiply(E).mod(h);return new Wt(this.curve,this.curve.fromBigInteger(d),this.curve.fromBigInteger(w),B)}twice(){if(this.isInfinity())return this;if(!this.y.toBigInteger().signum())return this.curve.infinity;const n=this.x.toBigInteger(),e=this.y.toBigInteger(),r=this.z,i=this.curve.q,o=this.curve.a.toBigInteger(),s=n.square().multiply(Pi).add(o.multiply(r.square())).mod(i),c=e.shiftLeft(1).multiply(r).mod(i),h=e.square().mod(i),a=h.multiply(n).multiply(r).mod(i),f=c.square().mod(i),p=s.square().subtract(a.shiftLeft(3)).mod(i),x=c.multiply(p).mod(i),u=s.multiply(a.shiftLeft(2).subtract(p)).subtract(f.shiftLeft(1).multiply(h)).mod(i),b=c.multiply(f).mod(i);return new Wt(this.curve,this.curve.fromBigInteger(x),this.curve.fromBigInteger(u),b)}multiply(n){if(this.isInfinity())return this;if(!n.signum())return this.curve.infinity;const e=n.multiply(Pi),r=this.negate();let i=this;for(let o=e.bitLength()-2;o>0;o--){i=i.twice();const s=e.testBit(o),c=n.testBit(o);s!==c&&(i=i.add(s?this:r))}return i}}let tf=class{constructor(n,e,r){this.q=n,this.a=this.fromBigInteger(e),this.b=this.fromBigInteger(r),this.infinity=new Wt(this,null,null)}equals(n){return n===this?!0:this.q.equals(n.q)&&this.a.equals(n.a)&&this.b.equals(n.b)}fromBigInteger(n){return new It(this.q,n)}decodePointHex(n){switch(parseInt(n.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:const e=this.fromBigInteger(new ft(n.substr(2),16));let r=this.fromBigInteger(e.multiply(e.square()).add(e.multiply(this.a)).add(this.b).toBigInteger().modPow(this.q.divide(new ft("4")).add(ft.ONE),this.q));return r.toBigInteger().mod(Ii).equals(new ft(n.substr(0,2),16).subtract(Ii))||(r=r.negate()),new Wt(this,e,r);case 4:case 6:case 7:const i=(n.length-2)/2,o=n.substr(2,i),s=n.substr(i+2,i);return new Wt(this,this.fromBigInteger(new ft(o,16)),this.fromBigInteger(new ft(s,16)));default:return null}}};var rf={ECCurveFp:tf};const{BigInteger:Bt,SecureRandom:nf}=Q0,{ECCurveFp:of}=rf,af=new nf,{curve:r0,G:sf,n:Oi}=Oo();function cf(){return r0}function Oo(){const t=new Bt("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF",16),n=new Bt("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC",16),e=new Bt("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93",16),r=new of(t,n,e),s=r.decodePointHex("04"+"32C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7"+"BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0"),c=new Bt("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123",16);return{curve:r,G:s,n:c}}function ff(t,n,e){const i=(t?new Bt(t,n,e):new Bt(Oi.bitLength(),af)).mod(Oi.subtract(Bt.ONE)).add(Bt.ONE),o=y0(i.toString(16),64),s=sf.multiply(i),c=y0(s.getX().toBigInteger().toString(16),64),h=y0(s.getY().toBigInteger().toString(16),64),a="04"+c+h;return{privateKey:o,publicKey:a}}function xf(t){if(t.length!==130)throw new Error("Invalid public key to compress");const n=(t.length-2)/2,e=t.substr(2,n),r=new Bt(t.substr(n+2,n),16);let i="03";return r.mod(new Bt("2")).equals(Bt.ZERO)&&(i="02"),i+e}function uf(t){t=unescape(encodeURIComponent(t));const n=t.length,e=[];for(let i=0;i<n;i++)e[i>>>2]|=(t.charCodeAt(i)&255)<<24-i%4*8;const r=[];for(let i=0;i<n;i++){const o=e[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((o&15).toString(16))}return r.join("")}function y0(t,n){return t.length>=n?t:new Array(n-t.length+1).join("0")+t}function df(t){return t.map(n=>(n=n.toString(16),n.length===1?"0"+n:n)).join("")}function hf(t){const n=[];let e=0;for(let r=0;r<t.length*2;r+=2)n[r>>>3]|=parseInt(t[e],10)<<24-r%8*4,e++;try{const r=[];for(let i=0;i<t.length;i++){const o=n[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return decodeURIComponent(escape(r.join("")))}catch(r){throw new Error("Malformed UTF-8 data")}}function lf(t){const n=[];let e=t.length;e%2!==0&&(t=y0(t,e+1)),e=t.length;for(let r=0;r<e;r+=2)n.push(parseInt(t.substr(r,2),16));return n}function pf(t){const n=r0.decodePointHex(t);if(!n)return!1;const e=n.getX();return n.getY().square().equals(e.multiply(e.square()).add(e.multiply(r0.a)).add(r0.b))}function vf(t,n){const e=r0.decodePointHex(t);if(!e)return!1;const r=r0.decodePointHex(n);return r?e.equals(r):!1}var bf={getGlobalCurve:cf,generateEcparam:Oo,generateKeyPairHex:ff,compressPublicKeyHex:xf,utf8ToHex:uf,leftPad:y0,arrayToHex:df,arrayToUtf8:hf,hexToArray:lf,verifyPublicKey:pf,comparePublicKeyHex:vf};const wt=new Uint32Array(68),Kr=new Uint32Array(64);function pt(t,n){const e=n&31;return t<<e|t>>>32-e}function qi(t,n){const e=[];for(let r=t.length-1;r>=0;r--)e[r]=(t[r]^n[r])&255;return e}function yf(t){return t^pt(t,9)^pt(t,17)}function gf(t){return t^pt(t,15)^pt(t,23)}function U0(t){let n=t.length*8,e=n%512;e=e>=448?512-e%448-1:448-e-1;const r=new Array((e-7)/8),i=new Array(8);for(let f=0,p=r.length;f<p;f++)r[f]=0;for(let f=0,p=i.length;f<p;f++)i[f]=0;n=n.toString(2);for(let f=7;f>=0;f--)if(n.length>8){const p=n.length-8;i[f]=parseInt(n.substr(p),2),n=n.substr(0,p)}else n.length>0&&(i[f]=parseInt(n,2),n="");const o=new Uint8Array([...t,128,...r,...i]),s=new DataView(o.buffer,0),c=o.length/64,h=new Uint32Array([1937774191,1226093241,388252375,3666478592,2842636476,372324522,3817729613,2969243214]);for(let f=0;f<c;f++){wt.fill(0),Kr.fill(0);const p=16*f;for(let D=0;D<16;D++)wt[D]=s.getUint32((p+D)*4,!1);for(let D=16;D<68;D++)wt[D]=gf(wt[D-16]^wt[D-9]^pt(wt[D-3],15))^pt(wt[D-13],7)^wt[D-6];for(let D=0;D<64;D++)Kr[D]=wt[D]^wt[D+4];const x=2043430169,u=2055708042;let b=h[0],m=h[1],E=h[2],A=h[3],g=h[4],v=h[5],d=h[6],w=h[7],B,C,S,k,F;for(let D=0;D<64;D++)F=D>=0&&D<=15?x:u,B=pt(pt(b,12)+g+pt(F,D),7),C=B^pt(b,12),S=(D>=0&&D<=15?b^m^E:b&m|b&E|m&E)+A+C+Kr[D],k=(D>=0&&D<=15?g^v^d:g&v|~g&d)+w+B+wt[D],A=E,E=pt(m,9),m=b,b=S,w=d,d=pt(v,19),v=g,g=yf(k);h[0]^=b,h[1]^=m,h[2]^=E,h[3]^=A,h[4]^=g,h[5]^=v,h[6]^=d,h[7]^=w}const a=[];for(let f=0,p=h.length;f<p;f++){const x=h[f];a.push((x&4278190080)>>>24,(x&16711680)>>>16,(x&65280)>>>8,x&255)}return a}const m0=64,qo=new Uint8Array(m0),Mo=new Uint8Array(m0);for(let t=0;t<m0;t++)qo[t]=54,Mo[t]=92;function mf(t,n){for(n.length>m0&&(n=U0(n));n.length<m0;)n.push(0);const e=qi(n,qo),r=qi(n,Mo),i=U0([...e,...t]);return U0([...r,...i])}var No={sm3:U0,hmac:mf};const{BigInteger:ht}=Q0,{encodeDer:Ef,decodeDer:wf}=ef,Ie=bf,c0=No.sm3,{G:Lt,curve:Ho,n:Qt}=Ie.generateEcparam(),zo=0;function _f(t,n,e=1){t=typeof t=="string"?Ie.hexToArray(Ie.utf8ToHex(t)):Array.prototype.slice.call(t),n=Ie.getGlobalCurve().decodePointHex(n);const r=Ie.generateKeyPairHex(),i=new ht(r.privateKey,16);let o=r.publicKey;o.length>128&&(o=o.substr(o.length-128));const s=n.multiply(i),c=Ie.hexToArray(Ie.leftPad(s.getX().toBigInteger().toRadix(16),64)),h=Ie.hexToArray(Ie.leftPad(s.getY().toBigInteger().toRadix(16),64)),a=Ie.arrayToHex(c0([].concat(c,t,h)));let f=1,p=0,x=[];const u=[].concat(c,h),b=()=>{x=c0([...u,f>>24&255,f>>16&255,f>>8&255,f&255]),f++,p=0};b();for(let E=0,A=t.length;E<A;E++)p===x.length&&b(),t[E]^=x[p++]&255;const m=Ie.arrayToHex(t);return e===zo?o+m+a:o+a+m}function Bf(t,n,e=1,{output:r="string"}={}){n=new ht(n,16);let i=t.substr(128,64),o=t.substr(192);e===zo&&(i=t.substr(t.length-64),o=t.substr(128,t.length-128-64));const s=Ie.hexToArray(o),h=Ie.getGlobalCurve().decodePointHex("04"+t.substr(0,128)).multiply(n),a=Ie.hexToArray(Ie.leftPad(h.getX().toBigInteger().toRadix(16),64)),f=Ie.hexToArray(Ie.leftPad(h.getY().toBigInteger().toRadix(16),64));let p=1,x=0,u=[];const b=[].concat(a,f),m=()=>{u=c0([...b,p>>24&255,p>>16&255,p>>8&255,p&255]),p++,x=0};m();for(let A=0,g=s.length;A<g;A++)x===u.length&&m(),s[A]^=u[x++]&255;return Ie.arrayToHex(c0([].concat(a,s,f)))===i.toLowerCase()?r==="array"?s:Ie.arrayToUtf8(s):r==="array"?[]:""}function Af(t,n,{pointPool:e,der:r,hash:i,publicKey:o,userId:s}={}){let c=typeof t=="string"?Ie.utf8ToHex(t):Ie.arrayToHex(t);i&&(o=o||jo(n),c=Uo(c,o,s));const h=new ht(n,16),a=new ht(c,16);let f=null,p=null,x=null;do{do{let u;e&&e.length?u=e.pop():u=Lo(),f=u.k,p=a.add(u.x1).mod(Qt)}while(p.equals(ht.ZERO)||p.add(f).equals(Qt));x=h.add(ht.ONE).modInverse(Qt).multiply(f.subtract(p.multiply(h))).mod(Qt)}while(x.equals(ht.ZERO));return r?Ef(p,x):Ie.leftPad(p.toString(16),64)+Ie.leftPad(x.toString(16),64)}function Cf(t,n,e,{der:r,hash:i,userId:o}={}){let s=typeof t=="string"?Ie.utf8ToHex(t):Ie.arrayToHex(t);i&&(s=Uo(s,e,o));let c,h;if(r){const b=wf(n);c=b.r,h=b.s}else c=new ht(n.substring(0,64),16),h=new ht(n.substring(64),16);const a=Ho.decodePointHex(e),f=new ht(s,16),p=c.add(h).mod(Qt);if(p.equals(ht.ZERO))return!1;const x=Lt.multiply(h).add(a.multiply(p)),u=f.add(x.getX().toBigInteger()).mod(Qt);return c.equals(u)}function Uo(t,n,e="1234567812345678"){e=Ie.utf8ToHex(e);const r=Ie.leftPad(Lt.curve.a.toBigInteger().toRadix(16),64),i=Ie.leftPad(Lt.curve.b.toBigInteger().toRadix(16),64),o=Ie.leftPad(Lt.getX().toBigInteger().toRadix(16),64),s=Ie.leftPad(Lt.getY().toBigInteger().toRadix(16),64);let c,h;if(n.length===128)c=n.substr(0,64),h=n.substr(64,64);else{const x=Lt.curve.decodePointHex(n);c=Ie.leftPad(x.getX().toBigInteger().toRadix(16),64),h=Ie.leftPad(x.getY().toBigInteger().toRadix(16),64)}const a=Ie.hexToArray(e+r+i+o+s+c+h),f=e.length*4;a.unshift(f&255),a.unshift(f>>8&255);const p=c0(a);return Ie.arrayToHex(c0(p.concat(Ie.hexToArray(t))))}function jo(t){const n=Lt.multiply(new ht(t,16)),e=Ie.leftPad(n.getX().toBigInteger().toString(16),64),r=Ie.leftPad(n.getY().toBigInteger().toString(16),64);return"04"+e+r}function Lo(){const t=Ie.generateKeyPairHex(),n=Ho.decodePointHex(t.publicKey);return t.k=new ht(t.privateKey,16),t.x1=n.getX().toBigInteger(),t}var Ff={generateKeyPairHex:Ie.generateKeyPairHex,compressPublicKeyHex:Ie.compressPublicKeyHex,comparePublicKeyHex:Ie.comparePublicKeyHex,doEncrypt:_f,doDecrypt:Bf,doSignature:Af,doVerifySignature:Cf,getPublicKeyFromPrivateKey:jo,getPoint:Lo,verifyPublicKey:Ie.verifyPublicKey};const{sm3:Sf,hmac:Df}=No;function Tf(t,n){return t.length>=n?t:new Array(n-t.length+1).join("0")+t}function Mi(t){return t.map(n=>(n=n.toString(16),n.length===1?"0"+n:n)).join("")}function kf(t){const n=[];let e=t.length;e%2!==0&&(t=Tf(t,e+1)),e=t.length;for(let r=0;r<e;r+=2)n.push(parseInt(t.substr(r,2),16));return n}function Rf(t){const n=[];for(let e=0,r=t.length;e<r;e++){const i=t.codePointAt(e);if(i<=127)n.push(i);else if(i<=2047)n.push(192|i>>>6),n.push(128|i&63);else if(i<=55295||i>=57344&&i<=65535)n.push(224|i>>>12),n.push(128|i>>>6&63),n.push(128|i&63);else if(i>=65536&&i<=1114111)e++,n.push(240|i>>>18&28),n.push(128|i>>>12&63),n.push(128|i>>>6&63),n.push(128|i&63);else throw n.push(i),new Error("input is not supported")}return n}var If=function(t,n){if(t=typeof t=="string"?Rf(t):Array.prototype.slice.call(t),n){if((n.mode||"hmac")!=="hmac")throw new Error("invalid mode");let r=n.key;if(!r)throw new Error("invalid key");return r=typeof r=="string"?kf(r):Array.prototype.slice.call(r),Mi(Df(t,r))}return Mi(Sf(t))};const Rt=0,Pf=32,jt=16,R0=[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],I0=[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 Vr(t){const n=[];for(let e=0,r=t.length;e<r;e+=2)n.push(parseInt(t.substr(e,2),16));return n}function Of(t){return t.map(n=>(n=n.toString(16),n.length===1?"0"+n:n)).join("")}function qf(t){const n=[];for(let e=0,r=t.length;e<r;e++){const i=t.codePointAt(e);if(i<=127)n.push(i);else if(i<=2047)n.push(192|i>>>6),n.push(128|i&63);else if(i<=55295||i>=57344&&i<=65535)n.push(224|i>>>12),n.push(128|i>>>6&63),n.push(128|i&63);else if(i>=65536&&i<=1114111)e++,n.push(240|i>>>18&28),n.push(128|i>>>12&63),n.push(128|i>>>6&63),n.push(128|i&63);else throw n.push(i),new Error("input is not supported")}return n}function Mf(t){const n=[];for(let e=0,r=t.length;e<r;e++)t[e]>=240&&t[e]<=247?(n.push(String.fromCodePoint(((t[e]&7)<<18)+((t[e+1]&63)<<12)+((t[e+2]&63)<<6)+(t[e+3]&63))),e+=3):t[e]>=224&&t[e]<=239?(n.push(String.fromCodePoint(((t[e]&15)<<12)+((t[e+1]&63)<<6)+(t[e+2]&63))),e+=2):t[e]>=192&&t[e]<=223?(n.push(String.fromCodePoint(((t[e]&31)<<6)+(t[e+1]&63))),e++):n.push(String.fromCodePoint(t[e]));return n.join("")}function Jt(t,n){const e=n&31;return t<<e|t>>>32-e}function qt(t){return(R0[t>>>24&255]&255)<<24|(R0[t>>>16&255]&255)<<16|(R0[t>>>8&255]&255)<<8|R0[t&255]&255}function P0(t){return t^Jt(t,2)^Jt(t,10)^Jt(t,18)^Jt(t,24)}function O0(t){return t^Jt(t,13)^Jt(t,23)}function Nf(t,n,e){const r=new Array(4),i=new Array(4);for(let o=0;o<4;o++)i[0]=t[4*o]&255,i[1]=t[4*o+1]&255,i[2]=t[4*o+2]&255,i[3]=t[4*o+3]&255,r[o]=i[0]<<24|i[1]<<16|i[2]<<8|i[3];for(let o=0,s;o<32;o+=4)s=r[1]^r[2]^r[3]^e[o+0],r[0]^=P0(qt(s)),s=r[2]^r[3]^r[0]^e[o+1],r[1]^=P0(qt(s)),s=r[3]^r[0]^r[1]^e[o+2],r[2]^=P0(qt(s)),s=r[0]^r[1]^r[2]^e[o+3],r[3]^=P0(qt(s));for(let o=0;o<16;o+=4)n[o]=r[3-o/4]>>>24&255,n[o+1]=r[3-o/4]>>>16&255,n[o+2]=r[3-o/4]>>>8&255,n[o+3]=r[3-o/4]&255}function Hf(t,n,e){const r=new Array(4),i=new Array(4);for(let o=0;o<4;o++)i[0]=t[0+4*o]&255,i[1]=t[1+4*o]&255,i[2]=t[2+4*o]&255,i[3]=t[3+4*o]&255,r[o]=i[0]<<24|i[1]<<16|i[2]<<8|i[3];r[0]^=2746333894,r[1]^=1453994832,r[2]^=1736282519,r[3]^=2993693404;for(let o=0,s;o<32;o+=4)s=r[1]^r[2]^r[3]^I0[o+0],n[o+0]=r[0]^=O0(qt(s)),s=r[2]^r[3]^r[0]^I0[o+1],n[o+1]=r[1]^=O0(qt(s)),s=r[3]^r[0]^r[1]^I0[o+2],n[o+2]=r[2]^=O0(qt(s)),s=r[0]^r[1]^r[2]^I0[o+3],n[o+3]=r[3]^=O0(qt(s));if(e===Rt)for(let o=0,s;o<16;o++)s=n[o],n[o]=n[31-o],n[31-o]=s}function Ni(t,n,e,{padding:r="pkcs#7",mode:i,iv:o=[],output:s="string"}={}){if(i==="cbc"&&(typeof o=="string"&&(o=Vr(o)),o.length!==128/8))throw new Error("iv is invalid");if(typeof n=="string"&&(n=Vr(n)),n.length!==128/8)throw new Error("key is invalid");if(typeof t=="string"?e!==Rt?t=qf(t):t=Vr(t):t=[...t],(r==="pkcs#5"||r==="pkcs#7")&&e!==Rt){const x=jt-t.length%jt;for(let u=0;u<x;u++)t.push(x)}const c=new Array(Pf);Hf(n,c,e);const h=[];let a=o,f=t.length,p=0;for(;f>=jt;){const x=t.slice(p,p+16),u=new Array(16);if(i==="cbc")for(let b=0;b<jt;b++)e!==Rt&&(x[b]^=a[b]);Nf(x,u,c);for(let b=0;b<jt;b++)i==="cbc"&&e===Rt&&(u[b]^=a[b]),h[p+b]=u[b];i==="cbc"&&(e!==Rt?a=u:a=x),f-=jt,p+=jt}if((r==="pkcs#5"||r==="pkcs#7")&&e===Rt){const x=h.length,u=h[x-1];for(let b=1;b<=u;b++)if(h[x-b]!==u)throw new Error("padding is invalid");h.splice(x-u,u)}return s!=="array"?e!==Rt?Of(h):Mf(h):h}var zf={encrypt(t,n,e){return Ni(t,n,1,e)},decrypt(t,n,e){return Ni(t,n,0,e)}},Hi={sm2:Ff,sm3:If,sm4:zf};const Uf=["appId","signatureMethod","signatureNonce","timestamp","viewerToken","sign","encryptResponseType"],jf=Dt("MDQ1QjgxNTVFOTc0N0MyODNBQ0Y4NDI4OTVEMzA0OEU2Q0E5NDNDQzQ1NEFGQTZBOUE0NTJCNTkwM0NDMzBGQ0UyNzhBNkY4OEY2MDJFREY4MDNEQUI0MEJENDVFMzVGNjYwNjc2QkY2OEZEN0NDQkUwRjZBRDMyMzg4MTM2Q0QwRA=="),Lf=Dt("MDBCMzE5NjE4QjRCMUJBRUI4Q0M2NzY1RDg5MDNDMDVBMEIxNkQ5RDlGQ0QxNjMyNzFCQjZGMUI4OEY2NTdBMjhF");var K0;(function(t){t[t.C1C3C2=1]="C1C3C2",t[t.C1C2C3=0]="C1C2C3"})(K0||(K0={}));function zi(t,n){const e=/^04/.test(t);return e&&!n?t.substring(2):!e&&n?`04${t}`:t}class Wf{constructor(n){ge(this,"__platformPublicKey");ge(this,"__userPrivateKey");ge(this,"__ignoreEncryptFields");ge(this,"__useSM2");ge(this,"__encryptPostSM2");var e,r;this.__platformPublicKey=n.platformPublicKey,this.__userPrivateKey=n.userPrivateKey,this.__ignoreEncryptFields=[...Uf],n.includeIgnoreEncryptFields&&this.__ignoreEncryptFields.push(...n.includeIgnoreEncryptFields),this.__useSM2=(e=n.useSM2)!=null?e:!0,this.__encryptPostSM2=(r=n.encryptPostSM2)!=null?r:!0}usePlugin(n){const{useSM2:e=this.__useSM2}=n;return e}interceptIncludeParams(){return{encryptResponseType:2}}interceptEncryptRequest(n){const e=this.__handleParams(n),r=this.__handleData(n),i=this.__handleHeaders(n);return St(Ue({},n),{params:e,data:r,headers:i})}interceptDecryptResponse(n,e){const r=n.data;if(!r.encryption||typeof r.data!="string")return n;const i=r.data;return r.data=this.__decryptTextSM2(i,e),n}__handleHeaders(n){var i;const e=n.headers||{},{encryptPostSM2:r=this.__encryptPostSM2}=n;return((i=n.method)==null?void 0:i.toLocaleUpperCase())==="POST"&&r&&(e["x-e-type"]=2),e}__handleParams(n){var i;const{encryptPostSM2:e=this.__encryptPostSM2}=n,r=n.params||{};return((i=n.method)==null?void 0:i.toLocaleUpperCase())!=="POST"||!e?r:this.__encryptObjectSM2(r,n,"xurlparam")}__handleData(n){var o;const e=n.data||{};if(((o=n.method)==null?void 0:o.toLocaleUpperCase())!=="POST")return e;let r=e;const{encryptPostSM2:i=this.__encryptPostSM2}=n;return i&&(typeof e=="string"?r=this.__encryptTextSM2(e,n):n.requestType==="json"?r=this.__encryptTextSM2(JSON.stringify(n.data||{}),n):r=this.__encryptObjectSM2(e,n,"xparam")),r}__encryptObjectSM2(n,e,r){const i=Object.keys(n);if(i.length===0)return n;const o={},s={};i.forEach(h=>{this.__ignoreEncryptFields.includes(h)?o[h]=n[h]:s[h]=n[h]});const c=Ue({},o);if(Object.keys(s).length){const h=this.__encryptTextSM2(JSON.stringify(s),e);c[r]=h}return c}__encryptTextSM2(n,e){const r=this.__getPublicKey(e);return zi(Hi.sm2.doEncrypt(n,r,K0.C1C2C3),!0)}__decryptTextSM2(n,e){const r=this.__getPrivateKey(e);let i="";try{i=Hi.sm2.doDecrypt(zi(n,!1),r,K0.C1C2C3)}catch(s){console.error("decryptTextSM2 decrypt error",s,{encryptedText:n})}let o=i;try{o=JSON.parse(o)}catch(s){}return o}__getPrivateKey(n){return"appId"in(n.params||{})?this.__userPrivateKey:Lf}__getPublicKey(n){return"appId"in(n.params||{})?this.__platformPublicKey:jf}}class $f extends no{constructor(n){var o,s,c,h;const e=[],{authorizeMethod:r=b0.Token}=n.config;r===b0.Token&&e.push(new io({getTokenInfo:()=>De(this,null,function*(){const{getChannelToken:a,getViewerToken:f}=n.config;let p;if(a){const x=yield a();if(!x)return;p=x.channelToken}if(f){const x=yield f();if(!x)return;p=x.viewerToken}if(p)return{token:p}})})),r===b0.Sign&&e.push(new $c({appId:(o=n.config.appSignSecretKey)==null?void 0:o.appId,appSecret:(s=n.config.appSignSecretKey)==null?void 0:s.appSecret,signatureNonce:n.config.signatureNonce,signatureMethod:n.config.signatureMethod,getAppSign:n.config.getAppSign}));const i=n.config.securityMode;i===a0.AES&&e.push(new Zc({appId:(c=n.config.appSignSecretKey)==null?void 0:c.appId,appSecret:(h=n.config.appSignSecretKey)==null?void 0:h.appSecret})),i===a0.SM2&&n.config.sm2Key&&e.push(new Wf({platformPublicKey:n.config.sm2Key.platformPublicKey,userPrivateKey:n.config.sm2Key.userPrivateKey})),super({baseUrl:Do(yn(n.config.domainInfo).polyvApiDomain,"https"),requestPlugins:[...e,new Ac({getBusinessData:()=>De(this,null,function*(){const a=n.getUserInfo();return{channelId:(yield n.channel.getChannelInfo()).channelId,viewerId:a.userId,unionId:a.unionId}})}),new Ao({decryptKeys:{sign:"polyvInteractSdk",iv:"1111000011101101"}}),new oo({successCode:200})]}),this._plvSocket=n}getTokenFieldByUserType(){return De(this,null,function*(){const n=this._plvSocket.getUserInfo();let e="viewerToken";return this._plvSocket.isSpecialUserType(n.userType)&&(e="channelToken"),e})}}var vt=(t=>(t.ConnectSuccess="ConnectSuccess",t.ReconnectSuccess="ReconnectSuccess",t.ConnectFailed="ConnectFailed",t.Disconnect="Disconnect",t.LoginSuccess="LoginSuccess",t.LoginFailed="LoginFailed",t.SessionUpdate="SessionUpdate",t))(vt||{});class gn{constructor(n){this._plvSocket=n}setup(n){return De(this,null,function*(){})}}class Kf extends gn{constructor(e){super(e);ge(this,"__channelId");ge(this,"__sessionId");ge(this,"__accountId");this.__channelId=e.config.channelInfo.channelId,this.__sessionId=e.config.channelInfo.sessionId,this.__accountId=e.config.channelInfo.accountId}getChannelInfo(){return Promise.resolve({channelId:this.__channelId,sessionId:this.__sessionId,accountId:this.__accountId})}updateSession(e){typeof e.sessionId=="string"&&(this.__sessionId=e.sessionId),this._plvSocket.eventEmitter.emit(vt.SessionUpdate,{})}}const Vf=Object.prototype.hasOwnProperty;function Ui(t,n){return Vf.call(t,n)}function Xf(){return Ui(window,"WebSocket")||Ui(window,"MozWebSocket")}const Wo=["message","product","lottery","questionnaire","coupon","activityLottery","testQuestion","emotion","speak","customMessage","motivation","fakeLikes"];class Gf{constructor(){ge(this,"__defaultEventKey","DEFAULT_EVENT");ge(this,"__allEventKey","ALL_EVENT");ge(this,"__appSocketEventStore",{});ge(this,"__socketListens",{});for(const n of Wo)this.__socketListens[n]=this.__createSocketHandle(n)}__createSocketHandle(n){return e=>{try{if(e instanceof ArrayBuffer)return;const r=JSON.parse(e);if(r){const i=s=>{for(const c in this.__appSocketEventStore){const h=`${n}.${s}`;c.includes(h)&&this.__appSocketEventStore[c].forEach(f=>{f(r)})}},o=r.EVENT||this.__defaultEventKey;i(o),i(this.__allEventKey)}}catch(r){console.warn(r)}}}listenSocketEvent(n){return De(this,null,function*(){for(const e in this.__socketListens){const r=this.__socketListens[e];if(!r)return;n.on(e,r)}})}addSocketHandles(n,e,r){const i=(o,s)=>{const c=`${n}.${r}.${o}`;this.__appSocketEventStore[c]||(this.__appSocketEventStore[c]=[]),this.__appSocketEventStore[c].push(s)};if(typeof e=="function"){i(this.__allEventKey,e);return}for(const o in e)i(o,e[o])}clearSocketHandles(n){for(const e in this.__appSocketEventStore){const[r]=e.split(".");r===n&&delete this.__appSocketEventStore[e]}}}var At=(t=>(t.Student="student",t.Slice="slice",t.Viewer="viewer",t.Teacher="teacher",t.Assistant="assistant",t.Manager="manager",t.Guest="guest",t.UserTagsMonitor="userTagsMonitor",t.Attendee="attendee",t.Listener="listener",t.Host="host",t.Dummy="dummy",t))(At||{}),n0=(t=>(t.TokenExpired="TokenExpired",t.SocketConnectError="SocketConnectError",t.SocketConnectTimeout="SocketConnectTimeout",t))(n0||{}),nn={exports:{}},Yf=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Zf=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],$o=function(n){var e=n,r=n.indexOf("["),i=n.indexOf("]");r!=-1&&i!=-1&&(n=n.substring(0,r)+n.substring(r,i).replace(/:/g,";")+n.substring(i,n.length));for(var o=Yf.exec(n||""),s={},c=14;c--;)s[Zf[c]]=o[c]||"";return r!=-1&&i!=-1&&(s.source=e,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=Qf(s,s.path),s.queryKey=Jf(s,s.query),s};function Qf(t,n){var e=/\/{2,9}/g,r=n.replace(e,"/").split("/");return(n.substr(0,1)=="/"||n.length===0)&&r.splice(0,1),n.substr(n.length-1,1)=="/"&&r.splice(r.length-1,1),r}function Jf(t,n){var e={};return n.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,o){i&&(e[i]=o)}),e}var on={exports:{}},an={exports:{}},E0=1e3,w0=E0*60,_0=w0*60,B0=_0*24,ex=B0*365.25,tx=function(t,n){n=n||{};var e=typeof t;if(e==="string"&&t.length>0)return rx(t);if(e==="number"&&isNaN(t)===!1)return n.long?ix(t):nx(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function rx(t){if(t=String(t),!(t.length>100)){var n=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(n){var e=parseFloat(n[1]),r=(n[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return e*ex;case"days":case"day":case"d":return e*B0;case"hours":case"hour":case"hrs":case"hr":case"h":return e*_0;case"minutes":case"minute":case"mins":case"min":case"m":return e*w0;case"seconds":case"second":case"secs":case"sec":case"s":return e*E0;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return e;default:return}}}}function nx(t){return t>=B0?Math.round(t/B0)+"d":t>=_0?Math.round(t/_0)+"h":t>=w0?Math.round(t/w0)+"m":t>=E0?Math.round(t/E0)+"s":t+"ms"}function ix(t){return q0(t,B0,"day")||q0(t,_0,"hour")||q0(t,w0,"minute")||q0(t,E0,"second")||t+" ms"}function q0(t,n,e){if(!(t<n))return t<n*1.5?Math.floor(t/n)+" "+e:Math.ceil(t/n)+" "+e+"s"}(function(t,n){n=t.exports=r.debug=r.default=r,n.coerce=h,n.disable=s,n.enable=o,n.enabled=c,n.humanize=tx,n.instances=[],n.names=[],n.skips=[],n.formatters={};function e(a){var f=0,p;for(p in a)f=(f<<5)-f+a.charCodeAt(p),f|=0;return n.colors[Math.abs(f)%n.colors.length]}function r(a){var f;function p(){if(p.enabled){var x=p,u=+new Date,b=u-(f||u);x.diff=b,x.prev=f,x.curr=u,f=u;for(var m=new Array(arguments.length),E=0;E<m.length;E++)m[E]=arguments[E];m[0]=n.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");var A=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,function(v,d){if(v==="%%")return v;A++;var w=n.formatters[d];if(typeof w=="function"){var B=m[A];v=w.call(x,B),m.splice(A,1),A--}return v}),n.formatArgs.call(x,m);var g=p.log||n.log||console.log.bind(console);g.apply(x,m)}}return p.namespace=a,p.enabled=n.enabled(a),p.useColors=n.useColors(),p.color=e(a),p.destroy=i,typeof n.init=="function"&&n.init(p),n.instances.push(p),p}function i(){var a=n.instances.indexOf(this);return a!==-1?(n.instances.splice(a,1),!0):!1}function o(a){n.save(a),n.names=[],n.skips=[];var f,p=(typeof a=="string"?a:"").split(/[\s,]+/),x=p.length;for(f=0;f<x;f++)p[f]&&(a=p[f].replace(/\*/g,".*?"),a[0]==="-"?n.skips.push(new RegExp("^"+a.substr(1)+"$")):n.names.push(new RegExp("^"+a+"$")));for(f=0;f<n.instances.length;f++){var u=n.instances[f];u.enabled=n.enabled(u.namespace)}}function s(){n.enable("")}function c(a){if(a[a.length-1]==="*")return!0;var f,p;for(f=0,p=n.skips.length;f<p;f++)if(n.skips[f].test(a))return!1;for(f=0,p=n.names.length;f<p;f++)if(n.names[f].test(a))return!0;return!1}function h(a){return a instanceof Error?a.stack||a.message:a}})(an,an.exports);var ox=an.exports;(function(t,n){n=t.exports=ox,n.log=i,n.formatArgs=r,n.save=o,n.load=s,n.useColors=e,n.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:c(),n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function e(){return typeof window!="undefined"&&window.process&&window.process.type==="renderer"?!0:typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}n.formatters.j=function(h){try{return JSON.stringify(h)}catch(a){return"[UnexpectedJSONParseError]: "+a.message}};function r(h){var a=this.useColors;if(h[0]=(a?"%c":"")+this.namespace+(a?" %c":" ")+h[0]+(a?"%c ":" ")+"+"+n.humanize(this.diff),!!a){var f="color: "+this.color;h.splice(1,0,f,"color: inherit");var p=0,x=0;h[0].replace(/%[a-zA-Z%]/g,function(u){u!=="%%"&&(p++,u==="%c"&&(x=p))}),h.splice(x,0,f)}}function i(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function o(h){try{h==null?n.storage.removeItem("debug"):n.storage.debug=h}catch(a){}}function s(){var h;try{h=n.storage.debug}catch(a){}return!h&&typeof process!="undefined"&&"env"in process&&(h=process.env.DEBUG),h}n.enable(s());function c(){try{return window.localStorage}catch(h){}}})(on,on.exports);var Tt=on.exports,ax=$o,ji=Tt("socket.io-client:url"),sx=cx;function cx(t,n){var e=t;n=n||typeof location!="undefined"&&location,t==null&&(t=n.protocol+"//"+n.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=n.protocol+t:t=n.host+t),/^(https?|wss?):\/\//.test(t)||(ji("protocol-less url %s",t),typeof n!="undefined"?t=n.protocol+"//"+t:t="https://"+t),ji("parse %s",t),e=ax(t)),e.port||(/^(http|ws)$/.test(e.protocol)?e.port="80":/^(http|ws)s$/.test(e.protocol)&&(e.port="443")),e.path=e.path||"/";var r=e.host.indexOf(":")!==-1,i=r?"["+e.host+"]":e.host;return e.id=e.protocol+"://"+i+":"+e.port,e.href=e.protocol+"://"+i+(n&&n.port===e.port?"":":"+e.port),e}var J0={},Ko={exports:{}};(function(t){t.exports=n;function n(r){if(r)return e(r)}function e(r){for(var i in n.prototype)r[i]=n.prototype[i];return r}n.prototype.on=n.prototype.addEventListener=function(r,i){return this._callbacks=this._callbacks||{},(this._callbacks["$"+r]=this._callbacks["$"+r]||[]).push(i),this},n.prototype.once=function(r,i){function o(){this.off(r,o),i.apply(this,arguments)}return o.fn=i,this.on(r,o),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(r,i){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var o=this._callbacks["$"+r];if(!o)return this;if(arguments.length==1)return delete this._callbacks["$"+r],this;for(var s,c=0;c<o.length;c++)if(s=o[c],s===i||s.fn===i){o.splice(c,1);break}return o.length===0&&delete this._callbacks["$"+r],this},n.prototype.emit=function(r){this._callbacks=this._callbacks||{};for(var i=new Array(arguments.length-1),o=this._callbacks["$"+r],s=1;s<arguments.length;s++)i[s-1]=arguments[s];if(o){o=o.slice(0);for(var s=0,c=o.length;s<c;++s)o[s].apply(this,i)}return this},n.prototype.listeners=function(r){return this._callbacks=this._callbacks||{},this._callbacks["$"+r]||[]},n.prototype.hasListeners=function(r){return!!this.listeners(r).length}})(Ko);var x0=Ko.exports,er={},fx={}.toString,mn=Array.isArray||function(t){return fx.call(t)=="[object Array]"},Vo=hx,xx=typeof Buffer=="function"&&typeof Buffer.isBuffer=="function",ux=typeof ArrayBuffer=="function",dx=function(t){return typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer};function hx(t){return xx&&Buffer.isBuffer(t)||ux&&(t instanceof ArrayBuffer||dx(t))}var En=mn,Xo=Vo,Go=Object.prototype.toString,lx=typeof Blob=="function"||typeof Blob!="undefined"&&Go.call(Blob)==="[object BlobConstructor]",px=typeof File=="function"||typeof File!="undefined"&&Go.call(File)==="[object FileConstructor]";er.deconstructPacket=function(t){var n=[],e=t.data,r=t;return r.data=sn(e,n),r.attachments=n.length,{packet:r,buffers:n}};function sn(t,n){if(!t)return t;if(Xo(t)){var e={_placeholder:!0,num:n.length};return n.push(t),e}else if(En(t)){for(var r=new Array(t.length),i=0;i<t.length;i++)r[i]=sn(t[i],n);return r}else if(typeof t=="object"&&!(t instanceof Date)){var r={};for(var o in t)r[o]=sn(t[o],n);return r}return t}er.reconstructPacket=function(t,n){return t.data=cn(t.data,n),t.attachments=void 0,t};function cn(t,n){if(!t)return t;if(t&&t._placeholder===!0){var e=typeof t.num=="number"&&t.num>=0&&t.num<n.length;if(e)return n[t.num];throw new Error("illegal attachments")}else if(En(t))for(var r=0;r<t.length;r++)t[r]=cn(t[r],n);else if(typeof t=="object")for(var i in t)t[i]=cn(t[i],n);return t}er.removeBlobs=function(t,n){function e(o,s,c){if(!o)return o;if(lx&&o instanceof Blob||px&&o instanceof File){r++;var h=new FileReader;h.onload=function(){c?c[s]=this.result:i=this.result,--r||n(i)},h.readAsArrayBuffer(o)}else if(En(o))for(var a=0;a<o.length;a++)e(o[a],a,o);else if(typeof o=="object"&&!Xo(o))for(var f in o)e(o[f],f,o)}var r=0,i=t;e(i),r||n(i)};(function(t){var n=Tt("socket.io-parser"),e=x0,r=er,i=mn,o=Vo;t.protocol=4,t.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],t.CONNECT=0,t.DISCONNECT=1,t.EVENT=2,t.ACK=3,t.ERROR=4,t.BINARY_EVENT=5,t.BINARY_ACK=6,t.Encoder=s,t.Decoder=p;function s(){}var c=t.ERROR+'"encode error"';s.prototype.encode=function(A,g){if(n("encoding packet %j",A),t.BINARY_EVENT===A.type||t.BINARY_ACK===A.type)f(A,g);else{var v=h(A);g([v])}};function h(A){var g=""+A.type;if((t.BINARY_EVENT===A.type||t.BINARY_ACK===A.type)&&(g+=A.attachments+"-"),A.nsp&&A.nsp!=="/"&&(g+=A.nsp+","),A.id!=null&&(g+=A.id),A.data!=null){var v=a(A.data);if(v!==!1)g+=v;else return c}return n("encoded %j as %s",A,g),g}function a(A){try{return JSON.stringify(A)}catch(g){return!1}}function f(A,g){function v(d){var w=r.deconstructPacket(d),B=h(w.packet),C=w.buffers;C.unshift(B),g(C)}r.removeBlobs(A,v)}function p(){this.reconstructor=null}e(p.prototype),p.prototype.add=function(A){var g;if(typeof A=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");g=u(A),t.BINARY_EVENT===g.type||t.BINARY_ACK===g.type?(this.reconstructor=new m(g),this.reconstructor.reconPack.attachments===0&&this.emit("decoded",g)):this.emit("decoded",g)}else if(o(A)||A.base64)if(this.reconstructor)g=this.reconstructor.takeBinaryData(A),g&&(this.reconstructor=null,this.emit("decoded",g));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+A)};function x(A,g){switch(A){case 0:return typeof g=="object";case 1:return g===void 0;case 4:return typeof g=="string"||typeof g=="object";case 2:case 5:return i(g)&&(typeof g[0]=="string"||typeof g[0]=="number");case 3:case 6:return i(g)}}function u(A){var g=0,v={type:Number(A.charAt(0))};if(t.types[v.type]==null)return E("unknown packet type "+v.type);if(t.BINARY_EVENT===v.type||t.BINARY_ACK===v.type){for(var d=g+1;A.charAt(++g)!=="-"&&g!=A.length;);var w=A.substring(d,g);if(w!=Number(w)||A.charAt(g)!=="-")throw new Error("Illegal attachments");v.attachments=Number(w)}if(A.charAt(g+1)==="/"){for(var d=g+1;++g;){var B=A.charAt(g);if(B===","||g===A.length)break}v.nsp=A.substring(d,g)}else v.nsp="/";var C=A.charAt(g+1);if(C!==""&&Number(C)==C){for(var d=g+1;++g;){var B=A.charAt(g);if(B==null||Number(B)!=B){--g;break}if(g===A.length)break}v.id=Number(A.substring(d,g+1))}if(A.charAt(++g)){var S=b(A.substr(g));if(x(v.type,S))v.data=S;else throw new Error("invalid payload")}return n("decoded %s as %j",A,v),v}function b(A){try{return JSON.parse(A)}catch(g){return!1}}p.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()};function m(A){this.reconPack=A,this.buffers=[]}m.prototype.takeBinaryData=function(A){if(this.buffers.push(A),this.buffers.length===this.reconPack.attachments){var g=r.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),g}return null},m.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]};function E(A){return{type:t.ERROR,data:"parser error: "+A}}})(J0);var wn={exports:{}},tr={},fn={exports:{}};try{fn.exports=typeof XMLHttpRequest!="undefined"&&"withCredentials"in new XMLHttpRequest}catch(t){fn.exports=!1}var vx=fn.exports,_n=function(){return typeof self!="undefined"?self:typeof window!="undefined"?window:Function("return this")()}(),bx=vx,yx=_n,Bn=function(t){var n=t.xdomain,e=t.xscheme,r=t.enablesXDR;try{if(typeof XMLHttpRequest!="undefined"&&(!n||bx))return new XMLHttpRequest}catch(i){}try{if(typeof XDomainRequest!="undefined"&&!e&&r)return new XDomainRequest}catch(i){}if(!n)try{return new yx[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(i){}},An={exports:{}},Xt={},gx=Object.keys||function(n){var e=[],r=Object.prototype.hasOwnProperty;for(var i in n)r.call(n,i)&&e.push(i);return e},mx=mn,Yo=Object.prototype.toString,Ex=typeof Blob=="function"||typeof Blob!="undefined"&&Yo.call(Blob)==="[object BlobConstructor]",wx=typeof File=="function"||typeof File!="undefined"&&Yo.call(File)==="[object FileConstructor]",Zo=j0;function j0(t){if(!t||typeof t!="object")return!1;if(mx(t)){for(var n=0,e=t.length;n<e;n++)if(j0(t[n]))return!0;return!1}if(typeof Buffer=="function"&&Buffer.isBuffer&&Buffer.isBuffer(t)||typeof ArrayBuffer=="function"&&t instanceof ArrayBuffer||Ex&&t instanceof Blob||wx&&t instanceof File)return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return j0(t.toJSON(),!0);for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&j0(t[r]))return!0;return!1}var _x=function(t,n,e){var r=t.byteLength;if(n=n||0,e=e||r,t.slice)return t.slice(n,e);if(n<0&&(n+=r),e<0&&(e+=r),e>r&&(e=r),n>=r||n>=e||r===0)return new ArrayBuffer(0);for(var i=new Uint8Array(t),o=new Uint8Array(e-n),s=n,c=0;s<e;s++,c++)o[c]=i[s];return o.buffer},Bx=Ax;function Ax(t,n,e){var r=!1;return e=e||Cx,i.count=t,t===0?n():i;function i(o,s){if(i.count<=0)throw new Error("after called too many times");--i.count,o?(r=!0,n(o),n=e):i.count===0&&!r&&n(null,s)}}function Cx(){}/*! https://mths.be/utf8js v2.1.2 by @mathias */var Ot=String.fromCharCode;function Qo(t){for(var n=[],e=0,r=t.length,i,o;e<r;)i=t.charCodeAt(e++),i>=55296&&i<=56319&&e<r?(o=t.charCodeAt(e++),(o&64512)==56320?n.push(((i&1023)<<10)+(o&1023)+65536):(n.push(i),e--)):n.push(i);return n}function Fx(t){for(var n=t.length,e=-1,r,i="";++e<n;)r=t[e],r>65535&&(r-=65536,i+=Ot(r>>>10&1023|55296),r=56320|r&1023),i+=Ot(r);return i}function Jo(t,n){if(t>=55296&&t<=57343){if(n)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function Xr(t,n){return Ot(t>>n&63|128)}function Sx(t,n){if(!(t&4294967168))return Ot(t);var e="";return t&4294965248?t&4294901760?t&4292870144||(e=Ot(t>>18&7|240),e+=Xr(t,12),e+=Xr(t,6)):(Jo(t,n)||(t=65533),e=Ot(t>>12&15|224),e+=Xr(t,6)):e=Ot(t>>6&31|192),e+=Ot(t&63|128),e}function Dx(t,n){n=n||{};for(var e=n.strict!==!1,r=Qo(t),i=r.length,o=-1,s,c="";++o<i;)s=r[o],c+=Sx(s,e);return c}function Gt(){if(Mt>=X0)throw Error("Invalid byte index");var t=V0[Mt]&255;if(Mt++,(t&192)==128)return t&63;throw Error("Invalid continuation byte")}function Tx(t){var n,e,r,i,o;if(Mt>X0)throw Error("Invalid byte index");if(Mt==X0)return!1;if(n=V0[Mt]&255,Mt++,!(n&128))return n;if((n&224)==192){if(e=Gt(),o=(n&31)<<6|e,o>=128)return o;throw Error("Invalid continuation byte")}if((n&240)==224){if(e=Gt(),r=Gt(),o=(n&15)<<12|e<<6|r,o>=2048)return Jo(o,t)?o:65533;throw Error("Invalid continuation byte")}if((n&248)==240&&(e=Gt(),r=Gt(),i=Gt(),o=(n&7)<<18|e<<12|r<<6|i,o>=65536&&o<=1114111))return o;throw Error("Invalid UTF-8 detected")}var V0,X0,Mt;function kx(t,n){n=n||{};var e=n.strict!==!1;V0=Qo(t),X0=V0.length,Mt=0;for(var r=[],i;(i=Tx(e))!==!1;)r.push(i);return Fx(r)}var Rx={version:"2.1.2",encode:Dx,decode:kx},M0={},Li;function Ix(){return Li||(Li=1,function(t){M0.encode=function(n){var e=new Uint8Array(n),r,i=e.length,o="";for(r=0;r<i;r+=3)o+=t[e[r]>>2],o+=t[(e[r]&3)<<4|e[r+1]>>4],o+=t[(e[r+1]&15)<<2|e[r+2]>>6],o+=t[e[r+2]&63];return i%3===2?o=o.substring(0,o.length-1)+"=":i%3===1&&(o=o.substring(0,o.length-2)+"=="),o},M0.decode=function(n){var e=n.length*.75,r=n.length,i,o=0,s,c,h,a;n[n.length-1]==="="&&(e--,n[n.length-2]==="="&&e--);var f=new ArrayBuffer(e),p=new Uint8Array(f);for(i=0;i<r;i+=4)s=t.indexOf(n[i]),c=t.indexOf(n[i+1]),h=t.indexOf(n[i+2]),a=t.indexOf(n[i+3]),p[o++]=s<<2|c>>4,p[o++]=(c&15)<<4|h>>2,p[o++]=(h&3)<<6|a&63;return f}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")),M0}var Gr,Wi;function Px(){if(Wi)return Gr;Wi=1;var t=typeof t!="undefined"?t:typeof WebKitBlobBuilder!="undefined"?WebKitBlobBuilder:typeof MSBlobBuilder!="undefined"?MSBlobBuilder:typeof MozBlobBuilder!="undefined"?MozBlobBuilder:!1,n=function(){try{var c=new Blob(["hi"]);return c.size===2}catch(h){return!1}}(),e=n&&function(){try{var c=new Blob([new Uint8Array([1,2])]);return c.size===2}catch(h){return!1}}(),r=t&&t.prototype.append&&t.prototype.getBlob;function i(c){return c.map(function(h){if(h.buffer instanceof ArrayBuffer){var a=h.buffer;if(h.byteLength!==a.byteLength){var f=new Uint8Array(h.byteLength);f.set(new Uint8Array(a,h.byteOffset,h.byteLength)),a=f.buffer}return a}return h})}function o(c,h){h=h||{};var a=new t;return i(c).forEach(function(f){a.append(f)}),h.type?a.getBlob(h.type):a.getBlob()}function s(c,h){return new Blob(i(c),h||{})}return typeof Blob!="undefined"&&(o.prototype=Blob.prototype,s.prototype=Blob.prototype),Gr=function(){return n?e?Blob:s:r?o:void 0}(),Gr}(function(t){var n=gx,e=Zo,r=_x,i=Bx,o=Rx,s;typeof ArrayBuffer!="undefined"&&(s=Ix());var c=typeof navigator!="undefined"&&/Android/i.test(navigator.userAgent),h=typeof navigator!="undefined"&&/PhantomJS/i.test(navigator.userAgent),a=c||h;t.protocol=3;var f=t.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},p=n(f),x={type:"error",data:"parser error"},u=Px();t.encodePacket=function(d,w,B,C){typeof w=="function"&&(C=w,w=!1),typeof B=="function"&&(C=B,B=null);var S=d.data===void 0?void 0:d.data.buffer||d.data;if(typeof ArrayBuffer!="undefined"&&S instanceof ArrayBuffer)return m(d,w,C);if(typeof u!="undefined"&&S instanceof u)return A(d,w,C);if(S&&S.base64)return b(d,C);var k=f[d.type];return d.data!==void 0&&(k+=B?o.encode(String(d.data),{strict:!1}):String(d.data)),C(""+k)};function b(d,w){var B="b"+t.packets[d.type]+d.data.data;return w(B)}function m(d,w,B){if(!w)return t.encodeBase64Packet(d,B);var C=d.data,S=new Uint8Array(C),k=new Uint8Array(1+C.byteLength);k[0]=f[d.type];for(var F=0;F<S.length;F++)k[F+1]=S[F];return B(k.buffer)}function E(d,w,B){if(!w)return t.encodeBase64Packet(d,B);var C=new FileReader;return C.onload=function(){t.encodePacket({type:d.type,data:C.result},w,!0,B)},C.readAsArrayBuffer(d.data)}function A(d,w,B){if(!w)return t.encodeBase64Packet(d,B);if(a)return E(d,w,B);var C=new Uint8Array(1);C[0]=f[d.type];var S=new u([C.buffer,d.data]);return B(S)}t.encodeBase64Packet=function(d,w){var B="b"+t.packets[d.type];if(typeof u!="undefined"&&d.data instanceof u){var C=new FileReader;return C.onload=function(){var O=C.result.split(",")[1];w(B+O)},C.readAsDataURL(d.data)}var S;try{S=String.fromCharCode.apply(null,new Uint8Array(d.data))}catch(O){for(var k=new Uint8Array(d.data),F=new Array(k.length),D=0;D<k.length;D++)F[D]=k[D];S=String.fromCharCode.apply(null,F)}return B+=btoa(S),w(B)},t.decodePacket=function(d,w,B){if(d===void 0)return x;if(typeof d=="string"){if(d.charAt(0)==="b")return t.decodeBase64Packet(d.substr(1),w);if(B&&(d=g(d),d===!1))return x;var S=d.charAt(0);return Number(S)!=S||!p[S]?x:d.length>1?{type:p[S],data:d.substring(1)}:{type:p[S]}}var C=new Uint8Array(d),S=C[0],k=r(d,1);return u&&w==="blob"&&(k=new u([k])),{type:p[S],data:k}};function g(d){try{d=o.decode(d,{strict:!1})}catch(w){return!1}return d}t.decodeBase64Packet=function(d,w){var B=p[d.charAt(0)];if(!s)return{type:B,data:{base64:!0,data:d.substr(1)}};var C=s.decode(d.substr(1));return w==="blob"&&u&&(C=new u([C])),{type:B,data:C}},t.encodePayload=function(d,w,B){typeof w=="function"&&(B=w,w=null);var C=e(d);if(w&&C)return u&&!a?t.encodePayloadAsBlob(d,B):t.encodePayloadAsArrayBuffer(d,B);if(!d.length)return B("0:");function S(F){return F.length+":"+F}function k(F,D){t.encodePacket(F,C?w:!1,!1,function(O){D(null,S(O))})}v(d,k,function(F,D){return B(D.join(""))})};function v(d,w,B){for(var C=new Array(d.length),S=i(d.length,B),k=function(D,O,M){w(O,function(z,U){C[D]=U,M(z,C)})},F=0;F<d.length;F++)k(F,d[F],S)}t.decodePayload=function(d,w,B){if(typeof d!="string")return t.decodePayloadAsBinary(d,w,B);typeof w=="function"&&(B=w,w=null);var C;if(d==="")return B(x,0,1);for(var S="",k,F,D=0,O=d.length;D<O;D++){var M=d.charAt(D);if(M!==":"){S+=M;continue}if(S===""||S!=(k=Number(S))||(F=d.substr(D+1,k),S!=F.length))return B(x,0,1);if(F.length){if(C=t.decodePacket(F,w,!1),x.type===C.type&&x.data===C.data)return B(x,0,1);var z=B(C,D+k,O);if(z===!1)return}D+=k,S=""}if(S!=="")return B(x,0,1)},t.encodePayloadAsArrayBuffer=function(d,w){if(!d.length)return w(new ArrayBuffer(0));function B(C,S){t.encodePacket(C,!0,!0,function(k){return S(null,k)})}v(d,B,function(C,S){var k=S.reduce(function(O,M){var z;return typeof M=="string"?z=M.length:z=M.byteLength,O+z.toString().length+z+2},0),F=new Uint8Array(k),D=0;return S.forEach(function(O){var M=typeof O=="string",z=O;if(M){for(var W=new Uint8Array(O.length),U=0;U<O.length;U++)W[U]=O.charCodeAt(U);z=W.buffer}M?F[D++]=0:F[D++]=1;for(var j=z.byteLength.toString(),U=0;U<j.length;U++)F[D++]=parseInt(j[U]);F[D++]=255;for(var W=new Uint8Array(z),U=0;U<W.length;U++)F[D++]=W[U]}),w(F.buffer)})},t.encodePayloadAsBlob=function(d,w){function B(C,S){t.encodePacket(C,!0,!0,function(k){var F=new Uint8Array(1);if(F[0]=1,typeof k=="string"){for(var D=new Uint8Array(k.length),O=0;O<k.length;O++)D[O]=k.charCodeAt(O);k=D.buffer,F[0]=0}for(var M=k instanceof ArrayBuffer?k.byteLength:k.size,z=M.toString(),U=new Uint8Array(z.length+1),O=0;O<z.length;O++)U[O]=parseInt(z[O]);if(U[z.length]=255,u){var j=new u([F.buffer,U.buffer,k]);S(null,j)}})}v(d,B,function(C,S){return w(new u(S))})},t.decodePayloadAsBinary=function(d,w,B){typeof w=="function"&&(B=w,w=null);for(var C=d,S=[];C.byteLength>0;){for(var k=new Uint8Array(C),F=k[0]===0,D="",O=1;k[O]!==255;O++){if(D.length>310)return B(x,0,1);D+=k[O]}C=r(C,2+D.length),D=parseInt(D);var M=r(C,0,D);if(F)try{M=String.fromCharCode.apply(null,new Uint8Array(M))}catch(j){var z=new Uint8Array(M);M="";for(var O=0;O<z.length;O++)M+=String.fromCharCode(z[O])}S.push(M),C=r(C,D)}var U=S.length;S.forEach(function(j,W){B(t.decodePacket(j,w,!0),W,U)})}})(Xt);var Yr,$i;function Cn(){if($i)return Yr;$i=1;var t=Xt,n=x0;Yr=e;function e(r){this.path=r.path,this.hostname=r.hostname,this.port=r.port,this.secure=r.secure,this.query=r.query,this.timestampParam=r.timestampParam,this.timestampRequests=r.timestampRequests,this.readyState="",this.agent=r.agent||!1,this.socket=r.socket,this.enablesXDR=r.enablesXDR,this.withCredentials=r.withCredentials,this.pfx=r.pfx,this.key=r.key,this.passphrase=r.passphrase,this.cert=r.cert,this.ca=r.ca,this.ciphers=r.ciphers,this.rejectUnauthorized=r.rejectUnauthorized,this.forceNode=r.forceNode,this.isReactNative=r.isReactNative,this.extraHeaders=r.extraHeaders,this.localAddress=r.localAddress}return n(e.prototype),e.prototype.onError=function(r,i){var o=new Error(r);return o.type="TransportError",o.description=i,this.emit("error",o),this},e.prototype.open=function(){return(this.readyState==="closed"||this.readyState==="")&&(this.readyState="opening",this.doOpen()),this},e.prototype.close=function(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this},e.prototype.send=function(r){if(this.readyState==="open")this.write(r);else throw new Error("Transport not open")},e.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},e.prototype.onData=function(r){var i=t.decodePacket(r,this.socket.binaryType);this.onPacket(i)},e.prototype.onPacket=function(r){this.emit("packet",r)},e.prototype.onClose=function(){this.readyState="closed",this.emit("close")},Yr}var u0={};u0.encode=function(t){var n="";for(var e in t)t.hasOwnProperty(e)&&(n.length&&(n+="&"),n+=encodeURIComponent(e)+"="+encodeURIComponent(t[e]));return n};u0.decode=function(t){for(var n={},e=t.split("&"),r=0,i=e.length;r<i;r++){var o=e[r].split("=");n[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return n};var rr=function(t,n){var e=function(){};e.prototype=n.prototype,t.prototype=new e,t.prototype.constructor=t},ea="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),G0=64,ta={},Ki=0,Nt=0,Vi;function xn(t){var n="";do n=ea[t%G0]+n,t=Math.floor(t/G0);while(t>0);return n}function Ox(t){var n=0;for(Nt=0;Nt<t.length;Nt++)n=n*G0+ta[t.charAt(Nt)];return n}function Fn(){var t=xn(+new Date);return t!==Vi?(Ki=0,Vi=t):t+"."+xn(Ki++)}for(;Nt<G0;Nt++)ta[ea[Nt]]=Nt;Fn.encode=xn;Fn.decode=Ox;var ra=Fn,na=Cn(),qx=u0,ia=Xt,Mx=rr,Nx=ra,_t=Tt("engine.io-client:polling"),oa=Ct,Hx=function(){var t=Bn,n=new t({xdomain:!1});return n.responseType!=null}();function Ct(t){var n=t&&t.forceBase64;(!Hx||n)&&(this.supportsBinary=!1),na.call(this,t)}Mx(Ct,na);Ct.prototype.name="polling";Ct.prototype.doOpen=function(){this.poll()};Ct.prototype.pause=function(t){var n=this;this.readyState="pausing";function e(){_t("paused"),n.readyState="paused",t()}if(this.polling||!this.writable){var r=0;this.polling&&(_t("we are currently polling - waiting to pause"),r++,this.once("pollComplete",function(){_t("pre-pause polling complete"),--r||e()})),this.writable||(_t("we are currently writing - waiting to pause"),r++,this.once("drain",function(){_t("pre-pause writing complete"),--r||e()}))}else e()};Ct.prototype.poll=function(){_t("polling"),this.polling=!0,this.doPoll(),this.emit("poll")};Ct.prototype.onData=function(t){var n=this;_t("polling got data %s",t);var e=function(r,i,o){if(n.readyState==="opening"&&r.type==="open"&&n.onOpen(),r.type==="close")return n.onClose(),!1;n.onPacket(r)};ia.decodePayload(t,this.socket.binaryType,e),this.readyState!=="closed"&&(this.polling=!1,this.emit("pollComplete"),this.readyState==="open"?this.poll():_t('ignoring poll - transport state "%s"',this.readyState))};Ct.prototype.doClose=function(){var t=this;function n(){_t("writing close packet"),t.write([{type:"close"}])}this.readyState==="open"?(_t("transport open - closing"),n()):(_t("transport not open - deferring close"),this.once("open",n))};Ct.prototype.write=function(t){var n=this;this.writable=!1;var e=function(){n.writable=!0,n.emit("drain")};ia.encodePayload(t,this.supportsBinary,function(r){n.doWrite(r,e)})};Ct.prototype.uri=function(){var t=this.query||{},n=this.secure?"https":"http",e="";this.timestampRequests!==!1&&(t[this.timestampParam]=Nx()),!this.supportsBinary&&!t.sid&&(t.b64=1),t=qx.encode(t),this.port&&(n==="https"&&Number(this.port)!==443||n==="http"&&Number(this.port)!==80)&&(e=":"+this.port),t.length&&(t="?"+t);var r=this.hostname.indexOf(":")!==-1;return n+"://"+(r?"["+this.hostname+"]":this.hostname)+e+this.path+t};var zx=Bn,aa=oa,Ux=x0,jx=rr,un=Tt("engine.io-client:polling-xhr"),Lx=_n;An.exports=d0;An.exports.Request=tt;function Xi(){}function d0(t){if(aa.call(this,t),this.requestTimeout=t.requestTimeout,this.extraHeaders=t.extraHeaders,typeof location!="undefined"){var n=location.protocol==="https:",e=location.port;e||(e=n?443:80),this.xd=typeof location!="undefined"&&t.hostname!==location.hostname||e!==t.port,this.xs=t.secure!==n}}jx(d0,aa);d0.prototype.supportsBinary=!0;d0.prototype.request=function(t){return t=t||{},t.uri=this.uri(),t.xd=this.xd,t.xs=this.xs,t.agent=this.agent||!1,t.supportsBinary=this.supportsBinary,t.enablesXDR=this.enablesXDR,t.withCredentials=this.withCredentials,t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized,t.requestTimeout=this.requestTimeout,t.extraHeaders=this.extraHeaders,new tt(t)};d0.prototype.doWrite=function(t,n){var e=typeof t!="string"&&t!==void 0,r=this.request({method:"POST",data:t,isBinary:e}),i=this;r.on("success",n),r.on("error",function(o){i.onError("xhr post error",o)}),this.sendXhr=r};d0.prototype.doPoll=function(){un("xhr poll");var t=this.request(),n=this;t.on("data",function(e){n.onData(e)}),t.on("error",function(e){n.onError("xhr poll error",e)}),this.pollXhr=t};function tt(t){this.method=t.method||"GET",this.uri=t.uri,this.xd=!!t.xd,this.xs=!!t.xs,this.async=t.async!==!1,this.data=t.data!==void 0?t.data:null,this.agent=t.agent,this.isBinary=t.isBinary,this.supportsBinary=t.supportsBinary,this.enablesXDR=t.enablesXDR,this.withCredentials=t.withCredentials,this.requestTimeout=t.requestTimeout,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.extraHeaders=t.extraHeaders,this.create()}Ux(tt.prototype);tt.prototype.create=function(){var t={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized;var n=this.xhr=new zx(t),e=this;try{un("xhr open %s: %s",this.method,this.uri),n.open(this.method,this.uri,this.async);try{if(this.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(var r in this.extraHeaders)this.extraHeaders.hasOwnProperty(r)&&n.setRequestHeader(r,this.extraHeaders[r])}}catch(i){}if(this.method==="POST")try{this.isBinary?n.setRequestHeader("Content-type","application/octet-stream"):n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(i){}try{n.setRequestHeader("Accept","*/*")}catch(i){}"withCredentials"in n&&(n.withCredentials=this.withCredentials),this.requestTimeout&&(n.timeout=this.requestTimeout),this.hasXDR()?(n.onload=function(){e.onLoad()},n.onerror=function(){e.onError(n.responseText)}):n.onreadystatechange=function(){if(n.readyState===2)try{var i=n.getResponseHeader("Content-Type");(e.supportsBinary&&i==="application/octet-stream"||i==="application/octet-stream; charset=UTF-8")&&(n.responseType="arraybuffer")}catch(o){}n.readyState===4&&(n.status===200||n.status===1223?e.onLoad():setTimeout(function(){e.onError(typeof n.status=="number"?n.status:0)},0))},un("xhr data %s",this.data),n.send(this.data)}catch(i){setTimeout(function(){e.onError(i)},0);return}typeof document!="undefined"&&(this.index=tt.requestsCount++,tt.requests[this.index]=this)};tt.prototype.onSuccess=function(){this.emit("success"),this.cleanup()};tt.prototype.onData=function(t){this.emit("data",t),this.onSuccess()};tt.prototype.onError=function(t){this.emit("error",t),this.cleanup(!0)};tt.prototype.cleanup=function(t){if(!(typeof this.xhr=="undefined"||this.xhr===null)){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=Xi:this.xhr.onreadystatechange=Xi,t)try{this.xhr.abort()}catch(n){}typeof document!="undefined"&&delete tt.requests[this.index],this.xhr=null}};tt.prototype.onLoad=function(){var t;try{var n;try{n=this.xhr.getResponseHeader("Content-Type")}catch(e){}n==="application/octet-stream"||n==="application/octet-stream; charset=UTF-8"?t=this.xhr.response||this.xhr.responseText:t=this.xhr.responseText}catch(e){this.onError(e)}t!=null&&this.onData(t)};tt.prototype.hasXDR=function(){return typeof XDomainRequest!="undefined"&&!this.xs&&this.enablesXDR};tt.prototype.abort=function(){this.cleanup()};tt.requestsCount=0;tt.requests={};if(typeof document!="undefined"){if(typeof attachEvent=="function")attachEvent("onunload",Gi);else if(typeof addEventListener=="function"){var Wx="onpagehide"in Lx?"pagehide":"unload";addEventListener(Wx,Gi,!1)}}function Gi(){for(var t in tt.requests)tt.requests.hasOwnProperty(t)&&tt.requests[t].abort()}var $x=An.exports,Sn=oa,Kx=rr,Yi=_n,Vx=h0,Xx=/\n/g,Gx=/\\n/g,N0;function Yx(){}function h0(t){Sn.call(this,t),this.query=this.query||{},N0||(N0=Yi.___eio=Yi.___eio||[]),this.index=N0.length;var n=this;N0.push(function(e){n.onData(e)}),this.query.j=this.index,typeof addEventListener=="function"&&addEventListener("beforeunload",function(){n.script&&(n.script.onerror=Yx)},!1)}Kx(h0,Sn);h0.prototype.supportsBinary=!1;h0.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),Sn.prototype.doClose.call(this)};h0.prototype.doPoll=function(){var t=this,n=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),n.async=!0,n.src=this.uri(),n.onerror=function(i){t.onError("jsonp poll error",i)};var e=document.getElementsByTagName("script")[0];e?e.parentNode.insertBefore(n,e):(document.head||document.body).appendChild(n),this.script=n;var r=typeof navigator!="undefined"&&/gecko/i.test(navigator.userAgent);r&&setTimeout(function(){var i=document.createElement("iframe");document.body.appendChild(i),document.body.removeChild(i)},100)};h0.prototype.doWrite=function(t,n){var e=this;if(!this.form){var r=document.createElement("form"),i=document.createElement("textarea"),o=this.iframeId="eio_iframe_"+this.index,s;r.className="socketio",r.style.position="absolute",r.style.top="-1000px",r.style.left="-1000px",r.target=o,r.method="POST",r.setAttribute("accept-charset","utf-8"),i.name="d",r.appendChild(i),document.body.appendChild(r),this.form=r,this.area=i}this.form.action=this.uri();function c(){h(),n()}function h(){if(e.iframe)try{e.form.removeChild(e.iframe)}catch(f){e.onError("jsonp polling iframe removal error",f)}try{var a='<iframe src="javascript:0" name="'+e.iframeId+'">';s=document.createElement(a)}catch(f){s=document.createElement("iframe"),s.name=e.iframeId,s.src="javascript:0"}s.id=e.iframeId,e.form.appendChild(s),e.iframe=s}h(),t=t.replace(Gx,`\\
21
- `),this.area.value=t.replace(Xx,"\\n");try{this.form.submit()}catch(a){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){e.iframe.readyState==="complete"&&c()}:this.iframe.onload=c};var Dn=Cn(),Zx=Xt,Qx=u0,Jx=rr,eu=ra,tu=Tt("engine.io-client:websocket"),Y0,Tn;typeof WebSocket!="undefined"?Y0=WebSocket:typeof self!="undefined"&&(Y0=self.WebSocket||self.MozWebSocket);if(typeof window=="undefined")try{Tn=co}catch(t){}var i0=Y0||Tn,ru=yt;function yt(t){var n=t&&t.forceBase64;n&&(this.supportsBinary=!1),this.perMessageDeflate=t.perMessageDeflate,this.usingBrowserWebSocket=Y0&&!t.forceNode,this.protocols=t.protocols,this.usingBrowserWebSocket||(i0=Tn),Dn.call(this,t)}Jx(yt,Dn);yt.prototype.name="websocket";yt.prototype.supportsBinary=!0;yt.prototype.doOpen=function(){if(this.check()){var t=this.uri(),n=this.protocols,e={};this.isReactNative||(e.agent=this.agent,e.perMessageDeflate=this.perMessageDeflate,e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized),this.extraHeaders&&(e.headers=this.extraHeaders),this.localAddress&&(e.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?n?new i0(t,n):new i0(t):new i0(t,n,e)}catch(r){return this.emit("error",r)}this.ws.binaryType===void 0&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}};yt.prototype.addEventListeners=function(){var t=this;this.ws.onopen=function(){t.onOpen()},this.ws.onclose=function(){t.onClose()},this.ws.onmessage=function(n){t.onData(n.data)},this.ws.onerror=function(n){t.onError("websocket error",n)}};yt.prototype.write=function(t){var n=this;this.writable=!1;for(var e=t.length,r=0,i=e;r<i;r++)(function(s){Zx.encodePacket(s,n.supportsBinary,function(c){if(!n.usingBrowserWebSocket){var h={};if(s.options&&(h.compress=s.options.compress),n.perMessageDeflate){var a=typeof c=="string"?Buffer.byteLength(c):c.length;a<n.perMessageDeflate.threshold&&(h.compress=!1)}}try{n.usingBrowserWebSocket?n.ws.send(c):n.ws.send(c,h)}catch(f){tu("websocket closed before onclose event")}--e||o()})})(t[r]);function o(){n.emit("flush"),setTimeout(function(){n.writable=!0,n.emit("drain")},0)}};yt.prototype.onClose=function(){Dn.prototype.onClose.call(this)};yt.prototype.doClose=function(){typeof this.ws!="undefined"&&this.ws.close()};yt.prototype.uri=function(){var t=this.query||{},n=this.secure?"wss":"ws",e="";this.port&&(n==="wss"&&Number(this.port)!==443||n==="ws"&&Number(this.port)!==80)&&(e=":"+this.port),this.timestampRequests&&(t[this.timestampParam]=eu()),this.supportsBinary||(t.b64=1),t=Qx.encode(t),t.length&&(t="?"+t);var r=this.hostname.indexOf(":")!==-1;return n+"://"+(r?"["+this.hostname+"]":this.hostname)+e+this.path+t};yt.prototype.check=function(){return!!i0&&!("__initialize"in i0&&this.name===yt.prototype.name)};var nu=Bn,iu=$x,ou=Vx,au=ru;tr.polling=su;tr.websocket=au;function su(t){var n,e=!1,r=!1,i=t.jsonp!==!1;if(typeof location!="undefined"){var o=location.protocol==="https:",s=location.port;s||(s=o?443:80),e=t.hostname!==location.hostname||s!==t.port,r=t.secure!==o}if(t.xdomain=e,t.xscheme=r,n=new nu(t),"open"in n&&!t.forceJSONP)return new iu(t);if(!i)throw new Error("JSONP disabled");return new ou(t)}var cu=[].indexOf,sa=function(t,n){if(cu)return t.indexOf(n);for(var e=0;e<t.length;++e)if(t[e]===n)return e;return-1},fu=tr,xu=x0,Je=Tt("engine.io-client:socket"),uu=sa,ca=Xt,Zi=$o,du=u0,hu=Me;function Me(t,n){if(!(this instanceof Me))return new Me(t,n);n=n||{},t&&typeof t=="object"&&(n=t,t=null),t?(t=Zi(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=Zi(n.host).host),this.secure=n.secure!=null?n.secure:typeof location!="undefined"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.agent=n.agent||!1,this.hostname=n.hostname||(typeof location!="undefined"?location.hostname:"localhost"),this.port=n.port||(typeof location!="undefined"&&location.port?location.port:this.secure?443:80),this.query=n.query||{},typeof this.query=="string"&&(this.query=du.decode(this.query)),this.upgrade=n.upgrade!==!1,this.path=(n.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!n.forceJSONP,this.jsonp=n.jsonp!==!1,this.forceBase64=!!n.forceBase64,this.enablesXDR=!!n.enablesXDR,this.withCredentials=n.withCredentials!==!1,this.timestampParam=n.timestampParam||"t",this.timestampRequests=n.timestampRequests,this.transports=n.transports||["polling","websocket"],this.transportOptions=n.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=n.policyPort||843,this.rememberUpgrade=n.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=n.onlyBinaryUpgrades,this.perMessageDeflate=n.perMessageDeflate!==!1?n.perMessageDeflate||{}:!1,this.perMessageDeflate===!0&&(this.perMessageDeflate={}),this.perMessageDeflate&&this.perMessageDeflate.threshold==null&&(this.perMessageDeflate.threshold=1024),this.pfx=n.pfx||void 0,this.key=n.key||void 0,this.passphrase=n.passphrase||void 0,this.cert=n.cert||void 0,this.ca=n.ca||void 0,this.ciphers=n.ciphers||void 0,this.rejectUnauthorized=n.rejectUnauthorized===void 0?!0:n.rejectUnauthorized,this.forceNode=!!n.forceNode,this.isReactNative=typeof navigator!="undefined"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",(typeof self=="undefined"||this.isReactNative)&&(n.extraHeaders&&Object.keys(n.extraHeaders).length>0&&(this.extraHeaders=n.extraHeaders),n.localAddress&&(this.localAddress=n.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}Me.priorWebsocketSuccess=!1;xu(Me.prototype);Me.protocol=ca.protocol;Me.Socket=Me;Me.Transport=Cn();Me.transports=tr;Me.parser=Xt;Me.prototype.createTransport=function(t){Je('creating transport "%s"',t);var n=lu(this.query);n.EIO=ca.protocol,n.transport=t;var e=this.transportOptions[t]||{};this.id&&(n.sid=this.id);var r=new fu[t]({query:n,socket:this,agent:e.agent||this.agent,hostname:e.hostname||this.hostname,port:e.port||this.port,secure:e.secure||this.secure,path:e.path||this.path,forceJSONP:e.forceJSONP||this.forceJSONP,jsonp:e.jsonp||this.jsonp,forceBase64:e.forceBase64||this.forceBase64,enablesXDR:e.enablesXDR||this.enablesXDR,withCredentials:e.withCredentials||this.withCredentials,timestampRequests:e.timestampRequests||this.timestampRequests,timestampParam:e.timestampParam||this.timestampParam,policyPort:e.policyPort||this.policyPort,pfx:e.pfx||this.pfx,key:e.key||this.key,passphrase:e.passphrase||this.passphrase,cert:e.cert||this.cert,ca:e.ca||this.ca,ciphers:e.ciphers||this.ciphers,rejectUnauthorized:e.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:e.perMessageDeflate||this.perMessageDeflate,extraHeaders:e.extraHeaders||this.extraHeaders,forceNode:e.forceNode||this.forceNode,localAddress:e.localAddress||this.localAddress,requestTimeout:e.requestTimeout||this.requestTimeout,protocols:e.protocols||void 0,isReactNative:this.isReactNative});return r};function lu(t){var n={};for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}Me.prototype.open=function(){var t;if(this.rememberUpgrade&&Me.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){var n=this;setTimeout(function(){n.emit("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch(e){this.transports.shift(),this.open();return}t.open(),this.setTransport(t)};Me.prototype.setTransport=function(t){Je("setting transport %s",t.name);var n=this;this.transport&&(Je("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=t,t.on("drain",function(){n.onDrain()}).on("packet",function(e){n.onPacket(e)}).on("error",function(e){n.onError(e)}).on("close",function(){n.onClose("transport close")})};Me.prototype.probe=function(t){Je('probing transport "%s"',t);var n=this.createTransport(t,{probe:1}),e=!1,r=this;Me.priorWebsocketSuccess=!1;function i(){if(r.onlyBinaryUpgrades){var p=!this.supportsBinary&&r.transport.supportsBinary;e=e||p}e||(Je('probe transport "%s" opened',t),n.send([{type:"ping",data:"probe"}]),n.once("packet",function(x){if(!e)if(x.type==="pong"&&x.data==="probe"){if(Je('probe transport "%s" pong',t),r.upgrading=!0,r.emit("upgrading",n),!n)return;Me.priorWebsocketSuccess=n.name==="websocket",Je('pausing current transport "%s"',r.transport.name),r.transport.pause(function(){e||r.readyState!=="closed"&&(Je("changing transport and sending upgrade packet"),f(),r.setTransport(n),n.send([{type:"upgrade"}]),r.emit("upgrade",n),n=null,r.upgrading=!1,r.flush())})}else{Je('probe transport "%s" failed',t);var u=new Error("probe error");u.transport=n.name,r.emit("upgradeError",u)}}))}function o(){e||(e=!0,f(),n.close(),n=null)}function s(p){var x=new Error("probe error: "+p);x.transport=n.name,o(),Je('probe transport "%s" failed because of error: %s',t,p),r.emit("upgradeError",x)}function c(){s("transport closed")}function h(){s("socket closed")}function a(p){n&&p.name!==n.name&&(Je('"%s" works - aborting "%s"',p.name,n.name),o())}function f(){n.removeListener("open",i),n.removeListener("error",s),n.removeListener("close",c),r.removeListener("close",h),r.removeListener("upgrading",a)}n.once("open",i),n.once("error",s),n.once("close",c),this.once("close",h),this.once("upgrading",a),n.open()};Me.prototype.onOpen=function(){if(Je("socket open"),this.readyState="open",Me.priorWebsocketSuccess=this.transport.name==="websocket",this.emit("open"),this.flush(),this.readyState==="open"&&this.upgrade&&this.transport.pause){Je("starting upgrade probes");for(var t=0,n=this.upgrades.length;t<n;t++)this.probe(this.upgrades[t])}};Me.prototype.onPacket=function(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(Je('socket receive: type "%s", data "%s"',t.type,t.data),this.emit("packet",t),this.emit("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var n=new Error("server error");n.code=t.data,this.onError(n);break;case"message":this.emit("data",t.data),this.emit("message",t.data);break}else Je('packet received with socket readyState "%s"',this.readyState)};Me.prototype.onHandshake=function(t){this.emit("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.onOpen(),this.readyState!=="closed"&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))};Me.prototype.onHeartbeat=function(t){clearTimeout(this.pingTimeoutTimer);var n=this;n.pingTimeoutTimer=setTimeout(function(){n.readyState!=="closed"&&n.onClose("ping timeout")},t||n.pingInterval+n.pingTimeout)};Me.prototype.setPing=function(){var t=this;clearTimeout(t.pingIntervalTimer),t.pingIntervalTimer=setTimeout(function(){Je("writing ping packet - expecting pong within %sms",t.pingTimeout),t.ping(),t.onHeartbeat(t.pingTimeout)},t.pingInterval)};Me.prototype.ping=function(){var t=this;this.sendPacket("ping",function(){t.emit("ping")})};Me.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emit("drain"):this.flush()};Me.prototype.flush=function(){this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(Je("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))};Me.prototype.write=Me.prototype.send=function(t,n,e){return this.sendPacket("message",t,n,e),this};Me.prototype.sendPacket=function(t,n,e,r){if(typeof n=="function"&&(r=n,n=void 0),typeof e=="function"&&(r=e,e=null),!(this.readyState==="closing"||this.readyState==="closed")){e=e||{},e.compress=e.compress!==!1;var i={type:t,data:n,options:e};this.emit("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}};Me.prototype.close=function(){if(this.readyState==="opening"||this.readyState==="open"){this.readyState="closing";var t=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?r():n()}):this.upgrading?r():n()}function n(){t.onClose("forced close"),Je("socket closing - telling transport to close"),t.transport.close()}function e(){t.removeListener("upgrade",e),t.removeListener("upgradeError",e),n()}function r(){t.once("upgrade",e),t.once("upgradeError",e)}return this};Me.prototype.onError=function(t){Je("socket error %j",t),Me.priorWebsocketSuccess=!1,this.emit("error",t),this.onClose("transport error",t)};Me.prototype.onClose=function(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){Je('socket close with reason: "%s"',t);var e=this;clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",t,n),e.writeBuffer=[],e.prevBufferLen=0}};Me.prototype.filterUpgrades=function(t){for(var n=[],e=0,r=t.length;e<r;e++)~uu(this.transports,t[e])&&n.push(t[e]);return n};wn.exports=hu;wn.exports.parser=Xt;var pu=wn.exports,fa={exports:{}},vu=bu;function bu(t,n){var e=[];n=n||0;for(var r=n||0;r<t.length;r++)e[r-n]=t[r];return e}var xa=yu;function yu(t,n,e){return t.on(n,e),{destroy:function(){t.removeListener(n,e)}}}var Qi=[].slice,ua=function(t,n){if(typeof n=="string"&&(n=t[n]),typeof n!="function")throw new Error("bind() requires a function");var e=Qi.call(arguments,2);return function(){return n.apply(t,e.concat(Qi.call(arguments)))}};(function(t,n){var e=J0,r=x0,i=vu,o=xa,s=ua,c=Tt("socket.io-client:socket"),h=u0,a=Zo;t.exports=x;var f={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},p=r.prototype.emit;function x(u,b,m){this.io=u,this.nsp=b,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},m&&m.query&&(this.query=m.query),this.io.autoConnect&&this.open()}r(x.prototype),x.prototype.subEvents=function(){if(!this.subs){var u=this.io;this.subs=[o(u,"open",s(this,"onopen")),o(u,"packet",s(this,"onpacket")),o(u,"close",s(this,"onclose"))]}},x.prototype.open=x.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.reconnecting||this.io.open(),this.io.readyState==="open"&&this.onopen(),this.emit("connecting"),this)},x.prototype.send=function(){var u=i(arguments);return u.unshift("message"),this.emit.apply(this,u),this},x.prototype.emit=function(u){if(f.hasOwnProperty(u))return p.apply(this,arguments),this;var b=i(arguments),m={type:(this.flags.binary!==void 0?this.flags.binary:a(b))?e.BINARY_EVENT:e.EVENT,data:b};return m.options={},m.options.compress=!this.flags||this.flags.compress!==!1,typeof b[b.length-1]=="function"&&(c("emitting packet with ack id %d",this.ids),this.acks[this.ids]=b.pop(),m.id=this.ids++),this.connected?this.packet(m):this.sendBuffer.push(m),this.flags={},this},x.prototype.packet=function(u){u.nsp=this.nsp,this.io.packet(u)},x.prototype.onopen=function(){if(c("transport is open - connecting"),this.nsp!=="/")if(this.query){var u=typeof this.query=="object"?h.encode(this.query):this.query;c("sending connect packet with query %s",u),this.packet({type:e.CONNECT,query:u})}else this.packet({type:e.CONNECT})},x.prototype.onclose=function(u){c("close (%s)",u),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",u)},x.prototype.onpacket=function(u){var b=u.nsp===this.nsp,m=u.type===e.ERROR&&u.nsp==="/";if(!(!b&&!m))switch(u.type){case e.CONNECT:this.onconnect();break;case e.EVENT:this.onevent(u);break;case e.BINARY_EVENT:this.onevent(u);break;case e.ACK:this.onack(u);break;case e.BINARY_ACK:this.onack(u);break;case e.DISCONNECT:this.ondisconnect();break;case e.ERROR:this.emit("error",u.data);break}},x.prototype.onevent=function(u){var b=u.data||[];c("emitting event %j",b),u.id!=null&&(c("attaching ack callback to event"),b.push(this.ack(u.id))),this.connected?p.apply(this,b):this.receiveBuffer.push(b)},x.prototype.ack=function(u){var b=this,m=!1;return function(){if(!m){m=!0;var E=i(arguments);c("sending ack %j",E),b.packet({type:a(E)?e.BINARY_ACK:e.ACK,id:u,data:E})}}},x.prototype.onack=function(u){var b=this.acks[u.id];typeof b=="function"?(c("calling ack %s with %j",u.id,u.data),b.apply(this,u.data),delete this.acks[u.id]):c("bad ack %s",u.id)},x.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emitBuffered(),this.emit("connect")},x.prototype.emitBuffered=function(){var u;for(u=0;u<this.receiveBuffer.length;u++)p.apply(this,this.receiveBuffer[u]);for(this.receiveBuffer=[],u=0;u<this.sendBuffer.length;u++)this.packet(this.sendBuffer[u]);this.sendBuffer=[]},x.prototype.ondisconnect=function(){c("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},x.prototype.destroy=function(){if(this.subs){for(var u=0;u<this.subs.length;u++)this.subs[u].destroy();this.subs=null}this.io.destroy(this)},x.prototype.close=x.prototype.disconnect=function(){return this.connected&&(c("performing disconnect (%s)",this.nsp),this.packet({type:e.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},x.prototype.compress=function(u){return this.flags.compress=u,this},x.prototype.binary=function(u){return this.flags.binary=u,this}})(fa);var da=fa.exports,gu=l0;function l0(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}l0.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var n=Math.random(),e=Math.floor(n*this.jitter*t);t=Math.floor(n*10)&1?t+e:t-e}return Math.min(t,this.max)|0};l0.prototype.reset=function(){this.attempts=0};l0.prototype.setMin=function(t){this.ms=t};l0.prototype.setMax=function(t){this.max=t};l0.prototype.setJitter=function(t){this.jitter=t};var mu=pu,Eu=da,wu=x0,_u=J0,Pt=xa,Yt=ua,st=Tt("socket.io-client:manager"),ha=sa,Bu=gu,la=Object.prototype.hasOwnProperty,Ji=je;function je(t,n){if(!(this instanceof je))return new je(t,n);t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.nsps={},this.subs=[],this.opts=n,this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor(n.randomizationFactor||.5),this.backoff=new Bu({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this.readyState="closed",this.uri=t,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var e=n.parser||_u;this.encoder=new e.Encoder,this.decoder=new e.Decoder,this.autoConnect=n.autoConnect!==!1,this.autoConnect&&this.open()}je.prototype.emitAll=function(){this.emit.apply(this,arguments);for(var t in this.nsps)la.call(this.nsps,t)&&this.nsps[t].emit.apply(this.nsps[t],arguments)};je.prototype.updateSocketIds=function(){for(var t in this.nsps)la.call(this.nsps,t)&&(this.nsps[t].id=this.generateId(t))};je.prototype.generateId=function(t){return(t==="/"?"":t+"#")+this.engine.id};wu(je.prototype);je.prototype.reconnection=function(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection};je.prototype.reconnectionAttempts=function(t){return arguments.length?(this._reconnectionAttempts=t,this):this._reconnectionAttempts};je.prototype.reconnectionDelay=function(t){return arguments.length?(this._reconnectionDelay=t,this.backoff&&this.backoff.setMin(t),this):this._reconnectionDelay};je.prototype.randomizationFactor=function(t){return arguments.length?(this._randomizationFactor=t,this.backoff&&this.backoff.setJitter(t),this):this._randomizationFactor};je.prototype.reconnectionDelayMax=function(t){return arguments.length?(this._reconnectionDelayMax=t,this.backoff&&this.backoff.setMax(t),this):this._reconnectionDelayMax};je.prototype.timeout=function(t){return arguments.length?(this._timeout=t,this):this._timeout};je.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()};je.prototype.open=je.prototype.connect=function(t,n){if(st("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;st("opening %s",this.uri),this.engine=mu(this.uri,this.opts);var e=this.engine,r=this;this.readyState="opening",this.skipReconnect=!1;var i=Pt(e,"open",function(){r.onopen(),t&&t()}),o=Pt(e,"error",function(h){if(st("connect_error"),r.cleanup(),r.readyState="closed",r.emitAll("connect_error",h),t){var a=new Error("Connection error");a.data=h,t(a)}else r.maybeReconnectOnOpen()});if(this._timeout!==!1){var s=this._timeout;st("connect attempt will timeout after %d",s),s===0&&i.destroy();var c=setTimeout(function(){st("connect attempt timed out after %d",s),i.destroy(),e.close(),e.emit("error","timeout"),r.emitAll("connect_timeout",s)},s);this.subs.push({destroy:function(){clearTimeout(c)}})}return this.subs.push(i),this.subs.push(o),this};je.prototype.onopen=function(){st("open"),this.cleanup(),this.readyState="open",this.emit("open");var t=this.engine;this.subs.push(Pt(t,"data",Yt(this,"ondata"))),this.subs.push(Pt(t,"ping",Yt(this,"onping"))),this.subs.push(Pt(t,"pong",Yt(this,"onpong"))),this.subs.push(Pt(t,"error",Yt(this,"onerror"))),this.subs.push(Pt(t,"close",Yt(this,"onclose"))),this.subs.push(Pt(this.decoder,"decoded",Yt(this,"ondecoded")))};je.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")};je.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)};je.prototype.ondata=function(t){this.decoder.add(t)};je.prototype.ondecoded=function(t){this.emit("packet",t)};je.prototype.onerror=function(t){st("error",t),this.emitAll("error",t)};je.prototype.socket=function(t,n){var e=this.nsps[t];if(!e){e=new Eu(this,t,n),this.nsps[t]=e;var r=this;e.on("connecting",i),e.on("connect",function(){e.id=r.generateId(t)}),this.autoConnect&&i()}function i(){~ha(r.connecting,e)||r.connecting.push(e)}return e};je.prototype.destroy=function(t){var n=ha(this.connecting,t);~n&&this.connecting.splice(n,1),!this.connecting.length&&this.close()};je.prototype.packet=function(t){st("writing packet %j",t);var n=this;t.query&&t.type===0&&(t.nsp+="?"+t.query),n.encoding?n.packetBuffer.push(t):(n.encoding=!0,this.encoder.encode(t,function(e){for(var r=0;r<e.length;r++)n.engine.write(e[r],t.options);n.encoding=!1,n.processPacketQueue()}))};je.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var t=this.packetBuffer.shift();this.packet(t)}};je.prototype.cleanup=function(){st("cleanup");for(var t=this.subs.length,n=0;n<t;n++){var e=this.subs.shift();e.destroy()}this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()};je.prototype.close=je.prototype.disconnect=function(){st("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,this.readyState==="opening"&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()};je.prototype.onclose=function(t){st("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",t),this._reconnection&&!this.skipReconnect&&this.reconnect()};je.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var t=this;if(this.backoff.attempts>=this._reconnectionAttempts)st("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var n=this.backoff.duration();st("will wait %dms before reconnect attempt",n),this.reconnecting=!0;var e=setTimeout(function(){t.skipReconnect||(st("attempting reconnect"),t.emitAll("reconnect_attempt",t.backoff.attempts),t.emitAll("reconnecting",t.backoff.attempts),!t.skipReconnect&&t.open(function(r){r?(st("reconnect attempt error"),t.reconnecting=!1,t.reconnect(),t.emitAll("reconnect_error",r.data)):(st("reconnect success"),t.onreconnect())}))},n);this.subs.push({destroy:function(){clearTimeout(e)}})}};je.prototype.onreconnect=function(){var t=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",t)};(function(t,n){var e=sx,r=J0,i=Ji,o=Tt("socket.io-client");t.exports=n=c;var s=n.managers={};function c(h,a){typeof h=="object"&&(a=h,h=void 0),a=a||{};var f=e(h),p=f.source,x=f.id,u=f.path,b=s[x]&&u in s[x].nsps,m=a.forceNew||a["force new connection"]||a.multiplex===!1||b,E;return m?(o("ignoring socket cache for %s",p),E=i(p,a)):(s[x]||(o("new io instance for %s",p),s[x]=i(p,a)),E=s[x]),f.query&&!a.query&&(a.query=f.query),E.socket(f.path,a)}n.protocol=r.protocol,n.connect=c,n.Manager=Ji,n.Socket=da})(nn,nn.exports);var Au=nn.exports;const Cu=A0(Au);class Fu extends gn{constructor(e){super(e);ge(this,"customSocket");ge(this,"__eventStore",new Gf);ge(this,"__socket");this.customSocket=e.config.customSocket}setup(e){return De(this,null,function*(){e.customSocket&&(this.customSocket=e.customSocket),yield this.__initSocket(),this.customSocket||(yield this.__connectSocket())})}getToken(){return Promise.resolve(this._plvSocket.config.token)}getSocket(e=!0){if(e&&!this.__socket)throw new Error("Socket 连接未初始化");return this.__socket}__initSocket(){return new Promise(e=>{De(this,null,function*(){if(this.customSocket)this.__socket=this.customSocket;else{const r=yn(this._plvSocket.config.domainInfo).chatWsDomain,i=[2e3,3e3,4e3,5e3],o=yield this.getToken();this.__socket=Cu(Rc(r),{query:{token:o,version:this._plvSocket.config.socketVersion||"3.0"},transports:[Xf()?"websocket":"polling"],reconnectionDelay:i[Math.floor(Math.random()*i.length)],randomizationFactor:Math.random()})}this.__bindConnectEvent(),this.__eventStore.listenSocketEvent(this.__socket),e()})})}__connectSocket(){return new Promise(e=>{const r=this.getSocket(),i=()=>{e()};r.disconnected&&(r.once("connect",i),r.connect()),r.connected&&i()})}__loginSocket(){return De(this,null,function*(){const e=this._plvSocket.getUserInfo(),r=yield this._plvSocket.channel.getChannelInfo(),i=this._plvSocket.config.statisticsParams,o={EVENT:"LOGIN",values:[e.nick,e.pic,e.userId],channelId:String(r.channelId),roomId:String(r.channelId),type:e.userType};r.sessionId&&(o.sessionId=r.sessionId),(i!=null&&i.param4||e.wxUnionId)&&(o.param4=i==null?void 0:i.param4),i!=null&&i.param5&&(o.param5=i.param5),e.actor&&(o.actor=e.actor);const c=(yield this.emitSocket(o,"message",{directCallback:!0}))[0];String(c)[0]==="2"?this._plvSocket.eventEmitter.emit(vt.LoginSuccess,{code:c}):this._plvSocket.eventEmitter.emit(vt.LoginFailed,{code:c})})}__bindConnectEvent(){const e=this.getSocket(),r={connect:()=>{const{autoLogin:i=!0}=this._plvSocket.config;i&&this.__loginSocket(),this._plvSocket.eventEmitter.emit(vt.ConnectSuccess)},disconnect:()=>{this._plvSocket.eventEmitter.emit(vt.Disconnect)},reconnect:()=>{this._plvSocket.eventEmitter.emit(vt.ReconnectSuccess)},error:()=>{this._plvSocket.eventEmitter.emit(vt.ConnectFailed,{reason:n0.SocketConnectError})},connect_error:()=>{this._plvSocket.eventEmitter.emit(vt.ConnectFailed,{reason:n0.SocketConnectError})},connect_timeout:()=>{this._plvSocket.eventEmitter.emit(vt.ConnectFailed,{reason:n0.SocketConnectTimeout})}};for(const i in r)e.on(i,r[i])}emitSocket(e,r="message",i){return new Promise((o,s)=>{De(this,null,function*(){const{checkCode:c=!0,directCallback:h=!1}=i||{},a=this.getSocket(),f=(...p)=>{if(h){o(p);return}const x=p[0];let u=x;if(x instanceof ArrayBuffer)return;let b=x;if(typeof x=="string")try{b=JSON.parse(x)}catch(m){}if(typeof x=="object"&&(b=x),b&&typeof b.code=="number"&&c)if(b.code===200)u=b.data;else{s(b);return}else u=b;o(u)};a==null||a.emit(r,JSON.stringify(e),f)})})}addSocketHandles(e,r,i="message"){this.__eventStore.addSocketHandles(e,r,i)}clearSocketHandles(e){this.__eventStore.clearSocketHandles(e)}disconnect(){return new Promise(e=>{const r=this.getSocket(!1);if(!r){e();return}if(r.disconnected){e();return}r.once("disconnect",()=>{e()}),r.disconnect()})}}var Zr=function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=n,e.d=function(r,i,o){e.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:o})},e.r=function(r){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},e.t=function(r,i){if(1&i&&(r=e(r)),8&i||4&i&&typeof r=="object"&&r&&r.__esModule)return r;var o=Object.create(null);if(e.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:r}),2&i&&typeof r!="string")for(var s in r)e.d(o,s,function(c){return r[c]}.bind(null,s));return o},e.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return e.d(i,"a",i),i},e.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},e.p="",e(e.s=253)}([function(t,n,e){(function(r){var i=function(o){return o&&o.Math==Math&&o};t.exports=i(typeof globalThis=="object"&&globalThis)||i(typeof window=="object"&&window)||i(typeof self=="object"&&self)||i(typeof r=="object"&&r)||function(){return this}()||Function("return this")()}).call(this,e(118))},function(t,n){t.exports=function(e){try{return!!e()}catch(r){return!0}}},function(t,n,e){var r=e(53),i=Function.prototype,o=i.bind,s=i.call,c=r&&o.bind(s,s);t.exports=r?function(h){return h&&c(h)}:function(h){return h&&function(){return s.apply(h,arguments)}}},function(t,n,e){var r,i,o,s=e(155),c=e(13),h=e(0),a=e(6),f=e(7),p=e(9),x=e(46),u=e(58),b=e(18),m=e(17),E=e(10).f,A=e(22),g=e(66),v=e(38),d=e(4),w=e(54),B=h.Int8Array,C=B&&B.prototype,S=h.Uint8ClampedArray,k=S&&S.prototype,F=B&&g(B),D=C&&g(C),O=Object.prototype,M=h.TypeError,z=d("toStringTag"),U=w("TYPED_ARRAY_TAG"),j=w("TYPED_ARRAY_CONSTRUCTOR"),W=s&&!!v&&x(h.opera)!=="Opera",Q=!1,Z={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},te={BigInt64Array:8,BigUint64Array:8},P=function(l){if(!f(l))return!1;var y=x(l);return p(Z,y)||p(te,y)};for(r in Z)(o=(i=h[r])&&i.prototype)?b(o,j,i):W=!1;for(r in te)(o=(i=h[r])&&i.prototype)&&b(o,j,i);if((!W||!a(F)||F===Function.prototype)&&(F=function(){throw M("Incorrect invocation")},W))for(r in Z)h[r]&&v(h[r],F);if((!W||!D||D===O)&&(D=F.prototype,W))for(r in Z)h[r]&&v(h[r].prototype,D);if(W&&g(k)!==D&&v(k,D),c&&!p(D,z))for(r in Q=!0,E(D,z,{get:function(){return f(this)?this[U]:void 0}}),Z)h[r]&&b(h[r],U,r);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:W,TYPED_ARRAY_CONSTRUCTOR:j,TYPED_ARRAY_TAG:Q&&U,aTypedArray:function(l){if(P(l))return l;throw M("Target is not a typed array")},aTypedArrayConstructor:function(l){if(a(l)&&(!v||A(F,l)))return l;throw M(u(l)+" is not a typed array constructor")},exportTypedArrayMethod:function(l,y,_,T){if(c){if(_)for(var N in Z){var X=h[N];if(X&&p(X.prototype,l))try{delete X.prototype[l]}catch(V){try{X.prototype[l]=y}catch(Y){}}}D[l]&&!_||m(D,l,_?y:W&&C[l]||y,T)}},exportTypedArrayStaticMethod:function(l,y,_){var T,N;if(c){if(v){if(_){for(T in Z)if((N=h[T])&&p(N,l))try{delete N[l]}catch(X){}}if(F[l]&&!_)return;try{return m(F,l,_?y:W&&F[l]||y)}catch(X){}}for(T in Z)!(N=h[T])||N[l]&&!_||m(N,l,y)}},isView:function(l){if(!f(l))return!1;var y=x(l);return y==="DataView"||p(Z,y)||p(te,y)},isTypedArray:P,TypedArray:F,TypedArrayPrototype:D}},function(t,n,e){var r=e(0),i=e(72),o=e(9),s=e(54),c=e(94),h=e(119),a=i("wks"),f=r.Symbol,p=f&&f.for,x=h?f:f&&f.withoutSetter||s;t.exports=function(u){if(!o(a,u)||!c&&typeof a[u]!="string"){var b="Symbol."+u;c&&o(f,u)?a[u]=f[u]:a[u]=h&&p?p(b):x(b)}return a[u]}},function(t,n,e){var r=e(0),i=e(47).f,o=e(18),s=e(17),c=e(93),h=e(127),a=e(60);t.exports=function(f,p){var x,u,b,m,E,A=f.target,g=f.global,v=f.stat;if(x=g?r:v?r[A]||c(A,{}):(r[A]||{}).prototype)for(u in p){if(m=p[u],b=f.noTargetGet?(E=i(x,u))&&E.value:x[u],!a(g?u:A+(v?".":"#")+u,f.forced)&&b!==void 0){if(typeof m==typeof b)continue;h(m,b)}(f.sham||b&&b.sham)&&o(m,"sham",!0),s(x,u,m,f)}}},function(t,n){t.exports=function(e){return typeof e=="function"}},function(t,n,e){var r=e(6);t.exports=function(i){return typeof i=="object"?i!==null:r(i)}},function(t,n,e){var r=e(0),i=e(7),o=r.String,s=r.TypeError;t.exports=function(c){if(i(c))return c;throw s(o(c)+" is not an object")}},function(t,n,e){var r=e(2),i=e(14),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(s,c){return o(i(s),c)}},function(t,n,e){var r=e(0),i=e(13),o=e(120),s=e(121),c=e(8),h=e(56),a=r.TypeError,f=Object.defineProperty,p=Object.getOwnPropertyDescriptor;n.f=i?s?function(x,u,b){if(c(x),u=h(u),c(b),typeof x=="function"&&u==="prototype"&&"value"in b&&"writable"in b&&!b.writable){var m=p(x,u);m&&m.writable&&(x[u]=b.value,b={configurable:"configurable"in b?b.configurable:m.configurable,enumerable:"enumerable"in b?b.enumerable:m.enumerable,writable:!1})}return f(x,u,b)}:f:function(x,u,b){if(c(x),u=h(u),c(b),o)try{return f(x,u,b)}catch(m){}if("get"in b||"set"in b)throw a("Accessors not supported");return"value"in b&&(x[u]=b.value),x}},function(t,n,e){var r=e(53),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},function(t,n,e){var r=e(91),i=e(17),o=e(167);r||i(Object.prototype,"toString",o,{unsafe:!0})},function(t,n,e){var r=e(1);t.exports=!r(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},function(t,n,e){var r=e(0),i=e(36),o=r.Object;t.exports=function(s){return o(i(s))}},function(t,n,e){var r=e(29);t.exports=function(i){return r(i.length)}},function(t,n,e){var r=e(5),i=e(78);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},function(t,n,e){var r=e(0),i=e(6),o=e(9),s=e(18),c=e(93),h=e(74),a=e(23),f=e(45).CONFIGURABLE,p=a.get,x=a.enforce,u=String(String).split("String");(t.exports=function(b,m,E,A){var g,v=!!A&&!!A.unsafe,d=!!A&&!!A.enumerable,w=!!A&&!!A.noTargetGet,B=A&&A.name!==void 0?A.name:m;i(E)&&(String(B).slice(0,7)==="Symbol("&&(B="["+String(B).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!o(E,"name")||f&&E.name!==B)&&s(E,"name",B),(g=x(E)).source||(g.source=u.join(typeof B=="string"?B:""))),b!==r?(v?!w&&b[m]&&(d=!0):delete b[m],d?b[m]=E:s(b,m,E)):d?b[m]=E:c(m,E)})(Function.prototype,"toString",function(){return i(this)&&p(this).source||h(this)})},function(t,n,e){var r=e(13),i=e(10),o=e(44);t.exports=r?function(s,c,h){return i.f(s,c,o(1,h))}:function(s,c,h){return s[c]=h,s}},function(t,n,e){var r=e(0),i=e(46),o=r.String;t.exports=function(s){if(i(s)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return o(s)}},function(t,n,e){var r=e(2),i=e(45).PROPER,o=e(17),s=e(8),c=e(22),h=e(19),a=e(1),f=e(98),p=RegExp.prototype,x=p.toString,u=r(f),b=a(function(){return x.call({source:"a",flags:"b"})!="/a/b"}),m=i&&x.name!="toString";(b||m)&&o(RegExp.prototype,"toString",function(){var E=s(this),A=h(E.source),g=E.flags;return"/"+A+"/"+h(g===void 0&&c(p,E)&&!("flags"in p)?u(E):g)},{unsafe:!0})},function(t,n,e){var r=e(40),i=e(2),o=e(77),s=e(14),c=e(15),h=e(108),a=i([].push),f=function(p){var x=p==1,u=p==2,b=p==3,m=p==4,E=p==6,A=p==7,g=p==5||E;return function(v,d,w,B){for(var C,S,k=s(v),F=o(k),D=r(d,w),O=c(F),M=0,z=B||h,U=x?z(v,O):u||A?z(v,0):void 0;O>M;M++)if((g||M in F)&&(S=D(C=F[M],M,k),p))if(x)U[M]=S;else if(S)switch(p){case 3:return!0;case 5:return C;case 6:return M;case 2:a(U,C)}else switch(p){case 4:return!1;case 7:a(U,C)}return E?-1:b||m?m:U}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},function(t,n,e){var r=e(2);t.exports=r({}.isPrototypeOf)},function(t,n,e){var r,i,o,s=e(166),c=e(0),h=e(2),a=e(7),f=e(18),p=e(9),x=e(92),u=e(75),b=e(59),m=c.TypeError,E=c.WeakMap;if(s||x.state){var A=x.state||(x.state=new E),g=h(A.get),v=h(A.has),d=h(A.set);r=function(B,C){if(v(A,B))throw new m("Object already initialized");return C.facade=B,d(A,B,C),C},i=function(B){return g(A,B)||{}},o=function(B){return v(A,B)}}else{var w=u("state");b[w]=!0,r=function(B,C){if(p(B,w))throw new m("Object already initialized");return C.facade=B,f(B,w,C),C},i=function(B){return p(B,w)?B[w]:{}},o=function(B){return p(B,w)}}t.exports={set:r,get:i,has:o,enforce:function(B){return o(B)?i(B):r(B,{})},getterFor:function(B){return function(C){var S;if(!a(C)||(S=i(C)).type!==B)throw m("Incompatible receiver, "+B+" required");return S}}}},function(t,n,e){var r=e(77),i=e(36);t.exports=function(o){return r(i(o))}},function(t,n,e){(function(r){var i;t.exports=(i=i||function(o,s){var c;if(typeof window!="undefined"&&window.crypto&&(c=window.crypto),typeof self!="undefined"&&self.crypto&&(c=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(c=globalThis.crypto),!c&&typeof window!="undefined"&&window.msCrypto&&(c=window.msCrypto),!c&&r!==void 0&&r.crypto&&(c=r.crypto),!c)try{c=e(197)}catch(d){}var h=function(){if(c){if(typeof c.getRandomValues=="function")try{return c.getRandomValues(new Uint32Array(1))[0]}catch(d){}if(typeof c.randomBytes=="function")try{return c.randomBytes(4).readInt32LE()}catch(d){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function d(){}return function(w){var B;return d.prototype=w,B=new d,d.prototype=null,B}}(),f={},p=f.lib={},x=p.Base={extend:function(d){var w=a(this);return d&&w.mixIn(d),w.hasOwnProperty("init")&&this.init!==w.init||(w.init=function(){w.$super.init.apply(this,arguments)}),w.init.prototype=w,w.$super=this,w},create:function(){var d=this.extend();return d.init.apply(d,arguments),d},init:function(){},mixIn:function(d){for(var w in d)d.hasOwnProperty(w)&&(this[w]=d[w]);d.hasOwnProperty("toString")&&(this.toString=d.toString)},clone:function(){return this.init.prototype.extend(this)}},u=p.WordArray=x.extend({init:function(d,w){d=this.words=d||[],this.sigBytes=w!=null?w:4*d.length},toString:function(d){return(d||m).stringify(this)},concat:function(d){var w=this.words,B=d.words,C=this.sigBytes,S=d.sigBytes;if(this.clamp(),C%4)for(var k=0;k<S;k++){var F=B[k>>>2]>>>24-k%4*8&255;w[C+k>>>2]|=F<<24-(C+k)%4*8}else for(var D=0;D<S;D+=4)w[C+D>>>2]=B[D>>>2];return this.sigBytes+=S,this},clamp:function(){var d=this.words,w=this.sigBytes;d[w>>>2]&=4294967295<<32-w%4*8,d.length=o.ceil(w/4)},clone:function(){var d=x.clone.call(this);return d.words=this.words.slice(0),d},random:function(d){for(var w=[],B=0;B<d;B+=4)w.push(h());return new u.init(w,d)}}),b=f.enc={},m=b.Hex={stringify:function(d){for(var w=d.words,B=d.sigBytes,C=[],S=0;S<B;S++){var k=w[S>>>2]>>>24-S%4*8&255;C.push((k>>>4).toString(16)),C.push((15&k).toString(16))}return C.join("")},parse:function(d){for(var w=d.length,B=[],C=0;C<w;C+=2)B[C>>>3]|=parseInt(d.substr(C,2),16)<<24-C%8*4;return new u.init(B,w/2)}},E=b.Latin1={stringify:function(d){for(var w=d.words,B=d.sigBytes,C=[],S=0;S<B;S++){var k=w[S>>>2]>>>24-S%4*8&255;C.push(String.fromCharCode(k))}return C.join("")},parse:function(d){for(var w=d.length,B=[],C=0;C<w;C++)B[C>>>2]|=(255&d.charCodeAt(C))<<24-C%4*8;return new u.init(B,w)}},A=b.Utf8={stringify:function(d){try{return decodeURIComponent(escape(E.stringify(d)))}catch(w){throw new Error("Malformed UTF-8 data")}},parse:function(d){return E.parse(unescape(encodeURIComponent(d)))}},g=p.BufferedBlockAlgorithm=x.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(d){typeof d=="string"&&(d=A.parse(d)),this._data.concat(d),this._nDataBytes+=d.sigBytes},_process:function(d){var w,B=this._data,C=B.words,S=B.sigBytes,k=this.blockSize,F=S/(4*k),D=(F=d?o.ceil(F):o.max((0|F)-this._minBufferSize,0))*k,O=o.min(4*D,S);if(D){for(var M=0;M<D;M+=k)this._doProcessBlock(C,M);w=C.splice(0,D),B.sigBytes-=O}return new u.init(w,O)},clone:function(){var d=x.clone.call(this);return d._data=this._data.clone(),d},_minBufferSize:0}),v=(p.Hasher=g.extend({cfg:x.extend(),init:function(d){this.cfg=this.cfg.extend(d),this.reset()},reset:function(){g.reset.call(this),this._doReset()},update:function(d){return this._append(d),this._process(),this},finalize:function(d){return d&&this._append(d),this._doFinalize()},blockSize:16,_createHelper:function(d){return function(w,B){return new d.init(B).finalize(w)}},_createHmacHelper:function(d){return function(w,B){return new v.HMAC.init(d,B).finalize(w)}}}),f.algo={});return f}(Math),i)}).call(this,e(118))},function(t,n,e){var r=e(0),i=e(6),o=function(s){return i(s)?s:void 0};t.exports=function(s,c){return arguments.length<2?o(r[s]):r[s]&&r[s][c]}},function(t,n,e){var r=e(28),i=Math.max,o=Math.min;t.exports=function(s,c){var h=r(s);return h<0?i(h+c,0):o(h,c)}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(i){var o=+i;return o!=o||o===0?0:(o>0?r:e)(o)}},function(t,n,e){var r=e(28),i=Math.min;t.exports=function(o){return o>0?i(r(o),9007199254740991):0}},function(t,n,e){var r=e(13),i=e(45).EXISTS,o=e(2),s=e(10).f,c=Function.prototype,h=o(c.toString),a=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,f=o(a.exec);r&&!i&&s(c,"name",{configurable:!0,get:function(){try{return f(a,h(this))[1]}catch(p){return""}}})},function(t,n,e){var r=e(0),i=e(6),o=e(58),s=r.TypeError;t.exports=function(c){if(i(c))return c;throw s(o(c)+" is not a function")}},function(t,n,e){var r=e(2),i=r({}.toString),o=r("".slice);t.exports=function(s){return o(i(s),8,-1)}},function(t,n,e){var r=e(123),i=e(97).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(o){return r(o,i)}},function(t,n,e){var r,i=e(8),o=e(129),s=e(97),c=e(59),h=e(130),a=e(73),f=e(75),p=f("IE_PROTO"),x=function(){},u=function(E){return"<script>"+E+"<\/script>"},b=function(E){E.write(u("")),E.close();var A=E.parentWindow.Object;return E=null,A},m=function(){try{r=new ActiveXObject("htmlfile")}catch(v){}var E,A;m=typeof document!="undefined"?document.domain&&r?b(r):((A=a("iframe")).style.display="none",h.appendChild(A),A.src="javascript:",(E=A.contentWindow.document).open(),E.write(u("document.F=Object")),E.close(),E.F):b(r);for(var g=s.length;g--;)delete m.prototype[s[g]];return m()};c[p]=!0,t.exports=Object.create||function(E,A){var g;return E!==null?(x.prototype=i(E),g=new x,x.prototype=null,g[p]=E):g=m(),A===void 0?g:o.f(g,A)}},function(t,n,e){var r=e(53),i=Function.prototype,o=i.apply,s=i.call;t.exports=typeof Reflect=="object"&&Reflect.apply||(r?s.bind(o):function(){return s.apply(o,arguments)})},function(t,n,e){var r=e(0).TypeError;t.exports=function(i){if(i==null)throw r("Can't call method on "+i);return i}},function(t,n,e){var r=e(26);t.exports=r("navigator","userAgent")||""},function(t,n,e){var r=e(2),i=e(8),o=e(168);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var s,c=!1,h={};try{(s=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(h,[]),c=h instanceof Array}catch(a){}return function(a,f){return i(a),o(f),c?s(a,f):a.__proto__=f,a}}():void 0)},function(t,n,e){var r=e(5),i=e(134),o=e(1),s=e(7),c=e(106).onFreeze,h=Object.freeze;r({target:"Object",stat:!0,forced:o(function(){h(1)}),sham:!i},{freeze:function(a){return h&&s(a)?h(c(a)):a}})},function(t,n,e){var r=e(2),i=e(31),o=e(53),s=r(r.bind);t.exports=function(c,h){return i(c),h===void 0?c:o?s(c,h):function(){return c.apply(h,arguments)}}},function(t,n,e){var r=e(24),i=e(147),o=e(65),s=e(23),c=e(10).f,h=e(115),a=e(42),f=e(13),p=s.set,x=s.getterFor("Array Iterator");t.exports=h(Array,"Array",function(b,m){p(this,{type:"Array Iterator",target:r(b),index:0,kind:m})},function(){var b=x(this),m=b.target,E=b.kind,A=b.index++;return!m||A>=m.length?(b.target=void 0,{value:void 0,done:!0}):E=="keys"?{value:A,done:!1}:E=="values"?{value:m[A],done:!1}:{value:[A,m[A]],done:!1}},"values");var u=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!a&&f&&u.name!=="values")try{c(u,"name",{value:"values"})}catch(b){}},function(t,n){t.exports=!1},function(t,n,e){var r=e(31);t.exports=function(i,o){var s=i[o];return s==null?void 0:r(s)}},function(t,n){t.exports=function(e,r){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:r}}},function(t,n,e){var r=e(13),i=e(9),o=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,c=i(o,"name"),h=c&&function(){}.name==="something",a=c&&(!r||r&&s(o,"name").configurable);t.exports={EXISTS:c,PROPER:h,CONFIGURABLE:a}},function(t,n,e){var r=e(0),i=e(91),o=e(6),s=e(32),c=e(4)("toStringTag"),h=r.Object,a=s(function(){return arguments}())=="Arguments";t.exports=i?s:function(f){var p,x,u;return f===void 0?"Undefined":f===null?"Null":typeof(x=function(b,m){try{return b[m]}catch(E){}}(p=h(f),c))=="string"?x:a?s(p):(u=s(p))=="Object"&&o(p.callee)?"Arguments":u}},function(t,n,e){var r=e(13),i=e(11),o=e(124),s=e(44),c=e(24),h=e(56),a=e(9),f=e(120),p=Object.getOwnPropertyDescriptor;n.f=r?p:function(x,u){if(x=c(x),u=h(u),f)try{return p(x,u)}catch(b){}if(a(x,u))return s(!i(o.f,x,u),x[u])}},function(t,n,e){var r=e(35),i=e(11),o=e(2),s=e(101),c=e(1),h=e(8),a=e(6),f=e(28),p=e(29),x=e(19),u=e(36),b=e(102),m=e(43),E=e(171),A=e(104),g=e(4)("replace"),v=Math.max,d=Math.min,w=o([].concat),B=o([].push),C=o("".indexOf),S=o("".slice),k="a".replace(/./,"$0")==="$0",F=!!/./[g]&&/./[g]("a","$0")==="";s("replace",function(D,O,M){var z=F?"$":"$0";return[function(U,j){var W=u(this),Q=U==null?void 0:m(U,g);return Q?i(Q,U,W,j):i(O,x(W),U,j)},function(U,j){var W=h(this),Q=x(U);if(typeof j=="string"&&C(j,z)===-1&&C(j,"$<")===-1){var Z=M(O,W,Q,j);if(Z.done)return Z.value}var te=a(j);te||(j=x(j));var P=W.global;if(P){var l=W.unicode;W.lastIndex=0}for(var y=[];;){var _=A(W,Q);if(_===null||(B(y,_),!P))break;x(_[0])===""&&(W.lastIndex=b(Q,p(W.lastIndex),l))}for(var T,N="",X=0,V=0;V<y.length;V++){for(var Y=x((_=y[V])[0]),ie=v(d(f(_.index),Q.length),0),ue=[],Ee=1;Ee<_.length;Ee++)B(ue,(T=_[Ee])===void 0?T:String(T));var _e=_.groups;if(te){var ve=w([Y],ue,ie,Q);_e!==void 0&&B(ve,_e);var Be=x(r(j,void 0,ve))}else Be=E(Y,Q,ie,ue,_e,j);ie>=X&&(N+=S(Q,X,ie)+Be,X=ie+Y.length)}return N+S(Q,X)}]},!!c(function(){var D=/./;return D.exec=function(){var O=[];return O.groups={a:"7"},O},"".replace(D,"$<a>")!=="7"})||!k||F)},function(t,n,e){var r=e(10).f,i=e(9),o=e(4)("toStringTag");t.exports=function(s,c,h){s&&!h&&(s=s.prototype),s&&!i(s,o)&&r(s,o,{configurable:!0,value:c})}},function(t,n,e){var r=e(2);t.exports=r([].slice)},function(t,n,e){var r=e(5),i=e(0),o=e(83),s=e(80),c=e(7),h=e(27),a=e(15),f=e(24),p=e(62),x=e(4),u=e(84),b=e(50),m=u("slice"),E=x("species"),A=i.Array,g=Math.max;r({target:"Array",proto:!0,forced:!m},{slice:function(v,d){var w,B,C,S=f(this),k=a(S),F=h(v,k),D=h(d===void 0?k:d,k);if(o(S)&&(w=S.constructor,(s(w)&&(w===A||o(w.prototype))||c(w)&&(w=w[E])===null)&&(w=void 0),w===A||w===void 0))return b(S,F,D);for(B=new(w===void 0?A:w)(g(D-F,0)),C=0;F<D;F++,C++)F in S&&p(B,C,S[F]);return B.length=C,B}})},function(t,n,e){var r=e(5),i=e(2),o=e(77),s=e(24),c=e(109),h=i([].join),a=o!=Object,f=c("join",",");r({target:"Array",proto:!0,forced:a||!f},{join:function(p){return h(s(this),p===void 0?",":p)}})},function(t,n,e){var r=e(1);t.exports=!r(function(){var i=function(){}.bind();return typeof i!="function"||i.hasOwnProperty("prototype")})},function(t,n,e){var r=e(2),i=0,o=Math.random(),s=r(1 .toString);t.exports=function(c){return"Symbol("+(c===void 0?"":c)+")_"+s(++i+o,36)}},function(t,n,e){var r,i,o=e(0),s=e(37),c=o.process,h=o.Deno,a=c&&c.versions||h&&h.version,f=a&&a.v8;f&&(i=(r=f.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&s&&(!(r=s.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/))&&(i=+r[1]),t.exports=i},function(t,n,e){var r=e(122),i=e(57);t.exports=function(o){var s=r(o,"string");return i(s)?s:s+""}},function(t,n,e){var r=e(0),i=e(26),o=e(6),s=e(22),c=e(119),h=r.Object;t.exports=c?function(a){return typeof a=="symbol"}:function(a){var f=i("Symbol");return o(f)&&s(f.prototype,h(a))}},function(t,n,e){var r=e(0).String;t.exports=function(i){try{return r(i)}catch(o){return"Object"}}},function(t,n){t.exports={}},function(t,n,e){var r=e(1),i=e(6),o=/#|\.prototype\./,s=function(p,x){var u=h[c(p)];return u==f||u!=a&&(i(x)?r(x):!!x)},c=s.normalize=function(p){return String(p).replace(o,".").toLowerCase()},h=s.data={},a=s.NATIVE="N",f=s.POLYFILL="P";t.exports=s},function(t,n,e){var r=e(35),i=e(11),o=e(2),s=e(101),c=e(133),h=e(8),a=e(36),f=e(79),p=e(102),x=e(29),u=e(19),b=e(43),m=e(81),E=e(104),A=e(78),g=e(99),v=e(1),d=g.UNSUPPORTED_Y,w=Math.min,B=[].push,C=o(/./.exec),S=o(B),k=o("".slice);s("split",function(F,D,O){var M;return M="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(z,U){var j=u(a(this)),W=U===void 0?4294967295:U>>>0;if(W===0)return[];if(z===void 0)return[j];if(!c(z))return i(D,j,z,W);for(var Q,Z,te,P=[],l=(z.ignoreCase?"i":"")+(z.multiline?"m":"")+(z.unicode?"u":"")+(z.sticky?"y":""),y=0,_=new RegExp(z.source,l+"g");(Q=i(A,_,j))&&!((Z=_.lastIndex)>y&&(S(P,k(j,y,Q.index)),Q.length>1&&Q.index<j.length&&r(B,P,m(Q,1)),te=Q[0].length,y=Z,P.length>=W));)_.lastIndex===Q.index&&_.lastIndex++;return y===j.length?!te&&C(_,"")||S(P,""):S(P,k(j,y)),P.length>W?m(P,0,W):P}:"0".split(void 0,0).length?function(z,U){return z===void 0&&U===0?[]:i(D,this,z,U)}:D,[function(z,U){var j=a(this),W=z==null?void 0:b(z,F);return W?i(W,z,j,U):i(M,u(j),z,U)},function(z,U){var j=h(this),W=u(z),Q=O(M,j,W,U,M!==D);if(Q.done)return Q.value;var Z=f(j,RegExp),te=j.unicode,P=(j.ignoreCase?"i":"")+(j.multiline?"m":"")+(j.unicode?"u":"")+(d?"g":"y"),l=new Z(d?"^(?:"+j.source+")":j,P),y=U===void 0?4294967295:U>>>0;if(y===0)return[];if(W.length===0)return E(l,W)===null?[W]:[];for(var _=0,T=0,N=[];T<W.length;){l.lastIndex=d?0:T;var X,V=E(l,d?k(W,T):W);if(V===null||(X=w(x(l.lastIndex+(d?T:0)),W.length))===_)T=p(W,T,te);else{if(S(N,k(W,_,T)),N.length===y)return N;for(var Y=1;Y<=V.length-1;Y++)if(S(N,V[Y]),N.length===y)return N;T=_=X}}return S(N,k(W,_)),N}]},!!v(function(){var F=/(?:)/,D=F.exec;F.exec=function(){return D.apply(this,arguments)};var O="ab".split(F);return O.length!==2||O[0]!=="a"||O[1]!=="b"}),d)},function(t,n,e){var r=e(56),i=e(10),o=e(44);t.exports=function(s,c,h){var a=r(c);a in s?i.f(s,a,o(0,h)):s[a]=h}},function(t,n,e){var r=e(0),i=e(137),o=e(138),s=e(177),c=e(18),h=function(f){if(f&&f.forEach!==s)try{c(f,"forEach",s)}catch(p){f.forEach=s}};for(var a in i)i[a]&&h(r[a]&&r[a].prototype);h(o)},function(t,n,e){var r=e(0),i=e(22),o=r.TypeError;t.exports=function(s,c){if(i(c,s))return s;throw o("Incorrect invocation")}},function(t,n){t.exports={}},function(t,n,e){var r=e(0),i=e(9),o=e(6),s=e(14),c=e(75),h=e(145),a=c("IE_PROTO"),f=r.Object,p=f.prototype;t.exports=h?f.getPrototypeOf:function(x){var u=s(x);if(i(u,a))return u[a];var b=u.constructor;return o(b)&&u instanceof b?b.prototype:u instanceof f?p:null}},function(t,n,e){var r=e(103).charAt,i=e(19),o=e(23),s=e(115),c=o.set,h=o.getterFor("String Iterator");s(String,"String",function(a){c(this,{type:"String Iterator",string:i(a),index:0})},function(){var a,f=h(this),p=f.string,x=f.index;return x>=p.length?{value:void 0,done:!0}:(a=r(p,x),f.index+=a.length,{value:a,done:!1})})},function(t,n,e){var r=e(0),i=e(137),o=e(138),s=e(41),c=e(18),h=e(4),a=h("iterator"),f=h("toStringTag"),p=s.values,x=function(b,m){if(b){if(b[a]!==p)try{c(b,a,p)}catch(A){b[a]=p}if(b[f]||c(b,f,m),i[m]){for(var E in s)if(b[E]!==s[E])try{c(b,E,s[E])}catch(A){b[E]=s[E]}}}};for(var u in i)x(r[u]&&r[u].prototype,u);x(o,"DOMTokenList")},function(t,n,e){var r=e(5),i=e(0),o=e(26),s=e(35),c=e(11),h=e(2),a=e(42),f=e(13),p=e(94),x=e(1),u=e(9),b=e(83),m=e(6),E=e(7),A=e(22),g=e(57),v=e(8),d=e(14),w=e(24),B=e(56),C=e(19),S=e(44),k=e(34),F=e(100),D=e(33),O=e(135),M=e(128),z=e(47),U=e(10),j=e(129),W=e(124),Q=e(50),Z=e(17),te=e(72),P=e(75),l=e(59),y=e(54),_=e(4),T=e(149),N=e(150),X=e(49),V=e(23),Y=e(21).forEach,ie=P("hidden"),ue=_("toPrimitive"),Ee=V.set,_e=V.getterFor("Symbol"),ve=Object.prototype,Be=i.Symbol,qe=Be&&Be.prototype,Re=i.TypeError,We=i.QObject,J=o("JSON","stringify"),ce=z.f,le=U.f,me=O.f,ye=W.f,Ve=h([].push),Oe=te("symbols"),Te=te("op-symbols"),Ae=te("string-to-symbol-registry"),ze=te("symbol-to-string-registry"),Ge=te("wks"),$e=!We||!We.prototype||!We.prototype.findChild,ee=f&&x(function(){return k(le({},"a",{get:function(){return le(this,"a",{value:7}).a}})).a!=7})?function(fe,H,L){var K=ce(ve,H);K&&delete ve[H],le(fe,H,L),K&&fe!==ve&&le(ve,H,K)}:le,oe=function(fe,H){var L=Oe[fe]=k(qe);return Ee(L,{type:"Symbol",tag:fe,description:H}),f||(L.description=H),L},he=function(fe,H,L){fe===ve&&he(Te,H,L),v(fe);var K=B(H);return v(L),u(Oe,K)?(L.enumerable?(u(fe,ie)&&fe[ie][K]&&(fe[ie][K]=!1),L=k(L,{enumerable:S(0,!1)})):(u(fe,ie)||le(fe,ie,S(1,{})),fe[ie][K]=!0),ee(fe,K,L)):le(fe,K,L)},be=function(fe,H){v(fe);var L=w(H),K=F(L).concat(Ye(L));return Y(K,function(G){f&&!c(Ce,L,G)||he(fe,G,L[G])}),fe},Ce=function(fe){var H=B(fe),L=c(ye,this,H);return!(this===ve&&u(Oe,H)&&!u(Te,H))&&(!(L||!u(this,H)||!u(Oe,H)||u(this,ie)&&this[ie][H])||L)},He=function(fe,H){var L=w(fe),K=B(H);if(L!==ve||!u(Oe,K)||u(Te,K)){var G=ce(L,K);return!G||!u(Oe,K)||u(L,ie)&&L[ie][K]||(G.enumerable=!0),G}},Ke=function(fe){var H=me(w(fe)),L=[];return Y(H,function(K){u(Oe,K)||u(l,K)||Ve(L,K)}),L},Ye=function(fe){var H=fe===ve,L=me(H?Te:w(fe)),K=[];return Y(L,function(G){!u(Oe,G)||H&&!u(ve,G)||Ve(K,Oe[G])}),K};if(p||(Z(qe=(Be=function(){if(A(qe,this))throw Re("Symbol is not a constructor");var fe=arguments.length&&arguments[0]!==void 0?C(arguments[0]):void 0,H=y(fe),L=function(K){this===ve&&c(L,Te,K),u(this,ie)&&u(this[ie],H)&&(this[ie][H]=!1),ee(this,H,S(1,K))};return f&&$e&&ee(ve,H,{configurable:!0,set:L}),oe(H,fe)}).prototype,"toString",function(){return _e(this).tag}),Z(Be,"withoutSetter",function(fe){return oe(y(fe),fe)}),W.f=Ce,U.f=he,j.f=be,z.f=He,D.f=O.f=Ke,M.f=Ye,T.f=function(fe){return oe(_(fe),fe)},f&&(le(qe,"description",{configurable:!0,get:function(){return _e(this).description}}),a||Z(ve,"propertyIsEnumerable",Ce,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!p,sham:!p},{Symbol:Be}),Y(F(Ge),function(fe){N(fe)}),r({target:"Symbol",stat:!0,forced:!p},{for:function(fe){var H=C(fe);if(u(Ae,H))return Ae[H];var L=Be(H);return Ae[H]=L,ze[L]=H,L},keyFor:function(fe){if(!g(fe))throw Re(fe+" is not a symbol");if(u(ze,fe))return ze[fe]},useSetter:function(){$e=!0},useSimple:function(){$e=!1}}),r({target:"Object",stat:!0,forced:!p,sham:!f},{create:function(fe,H){return H===void 0?k(fe):be(k(fe),H)},defineProperty:he,defineProperties:be,getOwnPropertyDescriptor:He}),r({target:"Object",stat:!0,forced:!p},{getOwnPropertyNames:Ke,getOwnPropertySymbols:Ye}),r({target:"Object",stat:!0,forced:x(function(){M.f(1)})},{getOwnPropertySymbols:function(fe){return M.f(d(fe))}}),J&&r({target:"JSON",stat:!0,forced:!p||x(function(){var fe=Be();return J([fe])!="[null]"||J({a:fe})!="{}"||J(Object(fe))!="{}"})},{stringify:function(fe,H,L){var K=Q(arguments),G=H;if((E(H)||fe!==void 0)&&!g(fe))return b(H)||(H=function(se,ne){if(m(G)&&(ne=c(G,this,se,ne)),!g(ne))return ne}),K[1]=H,s(J,null,K)}}),!qe[ue]){var Ze=qe.valueOf;Z(qe,ue,function(fe){return c(Ze,this)})}X(Be,"Symbol"),l[ie]=!0},function(t,n,e){var r=e(5),i=e(13),o=e(0),s=e(2),c=e(9),h=e(6),a=e(22),f=e(19),p=e(10).f,x=e(127),u=o.Symbol,b=u&&u.prototype;if(i&&h(u)&&(!("description"in b)||u().description!==void 0)){var m={},E=function(){var C=arguments.length<1||arguments[0]===void 0?void 0:f(arguments[0]),S=a(b,this)?new u(C):C===void 0?u():u(C);return C===""&&(m[S]=!0),S};x(E,u),E.prototype=b,b.constructor=E;var A=String(u("test"))=="Symbol(test)",g=s(b.toString),v=s(b.valueOf),d=/^Symbol\((.*)\)[^)]+$/,w=s("".replace),B=s("".slice);p(b,"description",{configurable:!0,get:function(){var C=v(this),S=g(C);if(c(m,C))return"";var k=A?B(S,7,-1):w(S,d,"$1");return k===""?void 0:k}}),r({global:!0,forced:!0},{Symbol:E})}},function(t,n,e){e(150)("iterator")},function(t,n,e){var r=e(42),i=e(92);(t.exports=function(o,s){return i[o]||(i[o]=s!==void 0?s:{})})("versions",[]).push({version:"3.21.1",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"})},function(t,n,e){var r=e(0),i=e(7),o=r.document,s=i(o)&&i(o.createElement);t.exports=function(c){return s?o.createElement(c):{}}},function(t,n,e){var r=e(2),i=e(6),o=e(92),s=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(c){return s(c)}),t.exports=o.inspectSource},function(t,n,e){var r=e(72),i=e(54),o=r("keys");t.exports=function(s){return o[s]||(o[s]=i(s))}},function(t,n,e){var r=e(6),i=e(7),o=e(38);t.exports=function(s,c,h){var a,f;return o&&r(a=c.constructor)&&a!==h&&i(f=a.prototype)&&f!==h.prototype&&o(s,f),s}},function(t,n,e){var r=e(0),i=e(2),o=e(1),s=e(32),c=r.Object,h=i("".split);t.exports=o(function(){return!c("z").propertyIsEnumerable(0)})?function(a){return s(a)=="String"?h(a,""):c(a)}:c},function(t,n,e){var r,i,o=e(11),s=e(2),c=e(19),h=e(98),a=e(99),f=e(72),p=e(34),x=e(23).get,u=e(131),b=e(132),m=f("native-string-replace",String.prototype.replace),E=RegExp.prototype.exec,A=E,g=s("".charAt),v=s("".indexOf),d=s("".replace),w=s("".slice),B=(i=/b*/g,o(E,r=/a/,"a"),o(E,i,"a"),r.lastIndex!==0||i.lastIndex!==0),C=a.BROKEN_CARET,S=/()??/.exec("")[1]!==void 0;(B||S||C||u||b)&&(A=function(k){var F,D,O,M,z,U,j,W=this,Q=x(W),Z=c(k),te=Q.raw;if(te)return te.lastIndex=W.lastIndex,F=o(A,te,Z),W.lastIndex=te.lastIndex,F;var P=Q.groups,l=C&&W.sticky,y=o(h,W),_=W.source,T=0,N=Z;if(l&&(y=d(y,"y",""),v(y,"g")===-1&&(y+="g"),N=w(Z,W.lastIndex),W.lastIndex>0&&(!W.multiline||W.multiline&&g(Z,W.lastIndex-1)!==`
22
- `)&&(_="(?: "+_+")",N=" "+N,T++),D=new RegExp("^(?:"+_+")",y)),S&&(D=new RegExp("^"+_+"$(?!\\s)",y)),B&&(O=W.lastIndex),M=o(E,l?D:W,N),l?M?(M.input=w(M.input,T),M[0]=w(M[0],T),M.index=W.lastIndex,W.lastIndex+=M[0].length):W.lastIndex=0:B&&M&&(W.lastIndex=W.global?M.index+M[0].length:O),S&&M&&M.length>1&&o(m,M[0],D,function(){for(z=1;z<arguments.length-2;z++)arguments[z]===void 0&&(M[z]=void 0)}),M&&P)for(M.groups=U=p(null),z=0;z<P.length;z++)U[(j=P[z])[0]]=M[j[1]];return M}),t.exports=A},function(t,n,e){var r=e(8),i=e(105),o=e(4)("species");t.exports=function(s,c){var h,a=r(s).constructor;return a===void 0||(h=r(a)[o])==null?c:i(h)}},function(t,n,e){var r=e(2),i=e(1),o=e(6),s=e(46),c=e(26),h=e(74),a=function(){},f=[],p=c("Reflect","construct"),x=/^\s*(?:class|function)\b/,u=r(x.exec),b=!x.exec(a),m=function(A){if(!o(A))return!1;try{return p(a,f,A),!0}catch(g){return!1}},E=function(A){if(!o(A))return!1;switch(s(A)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return b||!!u(x,h(A))}catch(g){return!0}};E.sham=!0,t.exports=!p||i(function(){var A;return m(m.call)||!m(Object)||!m(function(){A=!0})||A})?E:m},function(t,n,e){var r=e(0),i=e(27),o=e(15),s=e(62),c=r.Array,h=Math.max;t.exports=function(a,f,p){for(var x=o(a),u=i(f,x),b=i(p===void 0?x:p,x),m=c(h(b-u,0)),E=0;u<b;u++,E++)s(m,E,a[u]);return m.length=E,m}},function(t,n,e){var r=e(26),i=e(10),o=e(4),s=e(13),c=o("species");t.exports=function(h){var a=r(h),f=i.f;s&&a&&!a[c]&&f(a,c,{configurable:!0,get:function(){return this}})}},function(t,n,e){var r=e(32);t.exports=Array.isArray||function(i){return r(i)=="Array"}},function(t,n,e){var r=e(1),i=e(4),o=e(55),s=i("species");t.exports=function(c){return o>=51||!r(function(){var h=[];return(h.constructor={})[s]=function(){return{foo:1}},h[c](Boolean).foo!==1})}},function(t,n,e){var r=e(46),i=e(43),o=e(65),s=e(4)("iterator");t.exports=function(c){if(c!=null)return i(c,s)||i(c,"@@iterator")||o[r(c)]}},function(t,n,e){var r=e(4)("iterator"),i=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){i=!0}};s[r]=function(){return this},Array.from(s,function(){throw 2})}catch(c){}t.exports=function(c,h){if(!h&&!i)return!1;var a=!1;try{var f={};f[r]=function(){return{next:function(){return{done:a=!0}}}},c(f)}catch(p){}return a}},function(t,n,e){(function(){var r;function i(l,y,_){l!=null&&(typeof l=="number"?this.fromNumber(l,y,_):y==null&&typeof l!="string"?this.fromString(l,256):this.fromString(l,y))}function o(){return new i(null)}var s=typeof navigator!="undefined";s&&navigator.appName=="Microsoft Internet Explorer"?(i.prototype.am=function(l,y,_,T,N,X){for(var V=32767&y,Y=y>>15;--X>=0;){var ie=32767&this[l],ue=this[l++]>>15,Ee=Y*ie+ue*V;N=((ie=V*ie+((32767&Ee)<<15)+_[T]+(1073741823&N))>>>30)+(Ee>>>15)+Y*ue+(N>>>30),_[T++]=1073741823&ie}return N},r=30):s&&navigator.appName!="Netscape"?(i.prototype.am=function(l,y,_,T,N,X){for(;--X>=0;){var V=y*this[l++]+_[T]+N;N=Math.floor(V/67108864),_[T++]=67108863&V}return N},r=26):(i.prototype.am=function(l,y,_,T,N,X){for(var V=16383&y,Y=y>>14;--X>=0;){var ie=16383&this[l],ue=this[l++]>>14,Ee=Y*ie+ue*V;N=((ie=V*ie+((16383&Ee)<<14)+_[T]+N)>>28)+(Ee>>14)+Y*ue,_[T++]=268435455&ie}return N},r=28),i.prototype.DB=r,i.prototype.DM=(1<<r)-1,i.prototype.DV=1<<r,i.prototype.FV=Math.pow(2,52),i.prototype.F1=52-r,i.prototype.F2=2*r-52;var c,h,a=new Array;for(c=48,h=0;h<=9;++h)a[c++]=h;for(c=97,h=10;h<36;++h)a[c++]=h;for(c=65,h=10;h<36;++h)a[c++]=h;function f(l){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(l)}function p(l,y){var _=a[l.charCodeAt(y)];return _==null?-1:_}function x(l){var y=o();return y.fromInt(l),y}function u(l){var y,_=1;return(y=l>>>16)!=0&&(l=y,_+=16),(y=l>>8)!=0&&(l=y,_+=8),(y=l>>4)!=0&&(l=y,_+=4),(y=l>>2)!=0&&(l=y,_+=2),(y=l>>1)!=0&&(l=y,_+=1),_}function b(l){this.m=l}function m(l){this.m=l,this.mp=l.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<l.DB-15)-1,this.mt2=2*l.t}function E(l,y){return l&y}function A(l,y){return l|y}function g(l,y){return l^y}function v(l,y){return l&~y}function d(l){if(l==0)return-1;var y=0;return!(65535&l)&&(l>>=16,y+=16),!(255&l)&&(l>>=8,y+=8),!(15&l)&&(l>>=4,y+=4),!(3&l)&&(l>>=2,y+=2),!(1&l)&&++y,y}function w(l){for(var y=0;l!=0;)l&=l-1,++y;return y}function B(){}function C(l){return l}function S(l){this.r2=o(),this.q3=o(),i.ONE.dlShiftTo(2*l.t,this.r2),this.mu=this.r2.divide(l),this.m=l}b.prototype.convert=function(l){return l.s<0||l.compareTo(this.m)>=0?l.mod(this.m):l},b.prototype.revert=function(l){return l},b.prototype.reduce=function(l){l.divRemTo(this.m,null,l)},b.prototype.mulTo=function(l,y,_){l.multiplyTo(y,_),this.reduce(_)},b.prototype.sqrTo=function(l,y){l.squareTo(y),this.reduce(y)},m.prototype.convert=function(l){var y=o();return l.abs().dlShiftTo(this.m.t,y),y.divRemTo(this.m,null,y),l.s<0&&y.compareTo(i.ZERO)>0&&this.m.subTo(y,y),y},m.prototype.revert=function(l){var y=o();return l.copyTo(y),this.reduce(y),y},m.prototype.reduce=function(l){for(;l.t<=this.mt2;)l[l.t++]=0;for(var y=0;y<this.m.t;++y){var _=32767&l[y],T=_*this.mpl+((_*this.mph+(l[y]>>15)*this.mpl&this.um)<<15)&l.DM;for(l[_=y+this.m.t]+=this.m.am(0,T,l,y,0,this.m.t);l[_]>=l.DV;)l[_]-=l.DV,l[++_]++}l.clamp(),l.drShiftTo(this.m.t,l),l.compareTo(this.m)>=0&&l.subTo(this.m,l)},m.prototype.mulTo=function(l,y,_){l.multiplyTo(y,_),this.reduce(_)},m.prototype.sqrTo=function(l,y){l.squareTo(y),this.reduce(y)},i.prototype.copyTo=function(l){for(var y=this.t-1;y>=0;--y)l[y]=this[y];l.t=this.t,l.s=this.s},i.prototype.fromInt=function(l){this.t=1,this.s=l<0?-1:0,l>0?this[0]=l:l<-1?this[0]=l+this.DV:this.t=0},i.prototype.fromString=function(l,y){var _;if(y==16)_=4;else if(y==8)_=3;else if(y==256)_=8;else if(y==2)_=1;else if(y==32)_=5;else{if(y!=4)return void this.fromRadix(l,y);_=2}this.t=0,this.s=0;for(var T=l.length,N=!1,X=0;--T>=0;){var V=_==8?255&l[T]:p(l,T);V<0?l.charAt(T)=="-"&&(N=!0):(N=!1,X==0?this[this.t++]=V:X+_>this.DB?(this[this.t-1]|=(V&(1<<this.DB-X)-1)<<X,this[this.t++]=V>>this.DB-X):this[this.t-1]|=V<<X,(X+=_)>=this.DB&&(X-=this.DB))}_==8&&128&l[0]&&(this.s=-1,X>0&&(this[this.t-1]|=(1<<this.DB-X)-1<<X)),this.clamp(),N&&i.ZERO.subTo(this,this)},i.prototype.clamp=function(){for(var l=this.s&this.DM;this.t>0&&this[this.t-1]==l;)--this.t},i.prototype.dlShiftTo=function(l,y){var _;for(_=this.t-1;_>=0;--_)y[_+l]=this[_];for(_=l-1;_>=0;--_)y[_]=0;y.t=this.t+l,y.s=this.s},i.prototype.drShiftTo=function(l,y){for(var _=l;_<this.t;++_)y[_-l]=this[_];y.t=Math.max(this.t-l,0),y.s=this.s},i.prototype.lShiftTo=function(l,y){var _,T=l%this.DB,N=this.DB-T,X=(1<<N)-1,V=Math.floor(l/this.DB),Y=this.s<<T&this.DM;for(_=this.t-1;_>=0;--_)y[_+V+1]=this[_]>>N|Y,Y=(this[_]&X)<<T;for(_=V-1;_>=0;--_)y[_]=0;y[V]=Y,y.t=this.t+V+1,y.s=this.s,y.clamp()},i.prototype.rShiftTo=function(l,y){y.s=this.s;var _=Math.floor(l/this.DB);if(_>=this.t)y.t=0;else{var T=l%this.DB,N=this.DB-T,X=(1<<T)-1;y[0]=this[_]>>T;for(var V=_+1;V<this.t;++V)y[V-_-1]|=(this[V]&X)<<N,y[V-_]=this[V]>>T;T>0&&(y[this.t-_-1]|=(this.s&X)<<N),y.t=this.t-_,y.clamp()}},i.prototype.subTo=function(l,y){for(var _=0,T=0,N=Math.min(l.t,this.t);_<N;)T+=this[_]-l[_],y[_++]=T&this.DM,T>>=this.DB;if(l.t<this.t){for(T-=l.s;_<this.t;)T+=this[_],y[_++]=T&this.DM,T>>=this.DB;T+=this.s}else{for(T+=this.s;_<l.t;)T-=l[_],y[_++]=T&this.DM,T>>=this.DB;T-=l.s}y.s=T<0?-1:0,T<-1?y[_++]=this.DV+T:T>0&&(y[_++]=T),y.t=_,y.clamp()},i.prototype.multiplyTo=function(l,y){var _=this.abs(),T=l.abs(),N=_.t;for(y.t=N+T.t;--N>=0;)y[N]=0;for(N=0;N<T.t;++N)y[N+_.t]=_.am(0,T[N],y,N,0,_.t);y.s=0,y.clamp(),this.s!=l.s&&i.ZERO.subTo(y,y)},i.prototype.squareTo=function(l){for(var y=this.abs(),_=l.t=2*y.t;--_>=0;)l[_]=0;for(_=0;_<y.t-1;++_){var T=y.am(_,y[_],l,2*_,0,1);(l[_+y.t]+=y.am(_+1,2*y[_],l,2*_+1,T,y.t-_-1))>=y.DV&&(l[_+y.t]-=y.DV,l[_+y.t+1]=1)}l.t>0&&(l[l.t-1]+=y.am(_,y[_],l,2*_,0,1)),l.s=0,l.clamp()},i.prototype.divRemTo=function(l,y,_){var T=l.abs();if(!(T.t<=0)){var N=this.abs();if(N.t<T.t)return y!=null&&y.fromInt(0),void(_!=null&&this.copyTo(_));_==null&&(_=o());var X=o(),V=this.s,Y=l.s,ie=this.DB-u(T[T.t-1]);ie>0?(T.lShiftTo(ie,X),N.lShiftTo(ie,_)):(T.copyTo(X),N.copyTo(_));var ue=X.t,Ee=X[ue-1];if(Ee!=0){var _e=Ee*(1<<this.F1)+(ue>1?X[ue-2]>>this.F2:0),ve=this.FV/_e,Be=(1<<this.F1)/_e,qe=1<<this.F2,Re=_.t,We=Re-ue,J=y==null?o():y;for(X.dlShiftTo(We,J),_.compareTo(J)>=0&&(_[_.t++]=1,_.subTo(J,_)),i.ONE.dlShiftTo(ue,J),J.subTo(X,X);X.t<ue;)X[X.t++]=0;for(;--We>=0;){var ce=_[--Re]==Ee?this.DM:Math.floor(_[Re]*ve+(_[Re-1]+qe)*Be);if((_[Re]+=X.am(0,ce,_,We,0,ue))<ce)for(X.dlShiftTo(We,J),_.subTo(J,_);_[Re]<--ce;)_.subTo(J,_)}y!=null&&(_.drShiftTo(ue,y),V!=Y&&i.ZERO.subTo(y,y)),_.t=ue,_.clamp(),ie>0&&_.rShiftTo(ie,_),V<0&&i.ZERO.subTo(_,_)}}},i.prototype.invDigit=function(){if(this.t<1)return 0;var l=this[0];if(!(1&l))return 0;var y=3&l;return(y=(y=(y=(y=y*(2-(15&l)*y)&15)*(2-(255&l)*y)&255)*(2-((65535&l)*y&65535))&65535)*(2-l*y%this.DV)%this.DV)>0?this.DV-y:-y},i.prototype.isEven=function(){return(this.t>0?1&this[0]:this.s)==0},i.prototype.exp=function(l,y){if(l>4294967295||l<1)return i.ONE;var _=o(),T=o(),N=y.convert(this),X=u(l)-1;for(N.copyTo(_);--X>=0;)if(y.sqrTo(_,T),(l&1<<X)>0)y.mulTo(T,N,_);else{var V=_;_=T,T=V}return y.revert(_)},i.prototype.toString=function(l){if(this.s<0)return"-"+this.negate().toString(l);var y;if(l==16)y=4;else if(l==8)y=3;else if(l==2)y=1;else if(l==32)y=5;else{if(l!=4)return this.toRadix(l);y=2}var _,T=(1<<y)-1,N=!1,X="",V=this.t,Y=this.DB-V*this.DB%y;if(V-- >0)for(Y<this.DB&&(_=this[V]>>Y)>0&&(N=!0,X=f(_));V>=0;)Y<y?(_=(this[V]&(1<<Y)-1)<<y-Y,_|=this[--V]>>(Y+=this.DB-y)):(_=this[V]>>(Y-=y)&T,Y<=0&&(Y+=this.DB,--V)),_>0&&(N=!0),N&&(X+=f(_));return N?X:"0"},i.prototype.negate=function(){var l=o();return i.ZERO.subTo(this,l),l},i.prototype.abs=function(){return this.s<0?this.negate():this},i.prototype.compareTo=function(l){var y=this.s-l.s;if(y!=0)return y;var _=this.t;if((y=_-l.t)!=0)return this.s<0?-y:y;for(;--_>=0;)if((y=this[_]-l[_])!=0)return y;return 0},i.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+u(this[this.t-1]^this.s&this.DM)},i.prototype.mod=function(l){var y=o();return this.abs().divRemTo(l,null,y),this.s<0&&y.compareTo(i.ZERO)>0&&l.subTo(y,y),y},i.prototype.modPowInt=function(l,y){var _;return _=l<256||y.isEven()?new b(y):new m(y),this.exp(l,_)},i.ZERO=x(0),i.ONE=x(1),B.prototype.convert=C,B.prototype.revert=C,B.prototype.mulTo=function(l,y,_){l.multiplyTo(y,_)},B.prototype.sqrTo=function(l,y){l.squareTo(y)},S.prototype.convert=function(l){if(l.s<0||l.t>2*this.m.t)return l.mod(this.m);if(l.compareTo(this.m)<0)return l;var y=o();return l.copyTo(y),this.reduce(y),y},S.prototype.revert=function(l){return l},S.prototype.reduce=function(l){for(l.drShiftTo(this.m.t-1,this.r2),l.t>this.m.t+1&&(l.t=this.m.t+1,l.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);l.compareTo(this.r2)<0;)l.dAddOffset(1,this.m.t+1);for(l.subTo(this.r2,l);l.compareTo(this.m)>=0;)l.subTo(this.m,l)},S.prototype.mulTo=function(l,y,_){l.multiplyTo(y,_),this.reduce(_)},S.prototype.sqrTo=function(l,y){l.squareTo(y),this.reduce(y)};var k,F,D,O=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],M=(1<<26)/O[O.length-1];function z(){var l;l=new Date().getTime(),F[D++]^=255&l,F[D++]^=l>>8&255,F[D++]^=l>>16&255,F[D++]^=l>>24&255,D>=P&&(D-=P)}if(i.prototype.chunkSize=function(l){return Math.floor(Math.LN2*this.DB/Math.log(l))},i.prototype.toRadix=function(l){if(l==null&&(l=10),this.signum()==0||l<2||l>36)return"0";var y=this.chunkSize(l),_=Math.pow(l,y),T=x(_),N=o(),X=o(),V="";for(this.divRemTo(T,N,X);N.signum()>0;)V=(_+X.intValue()).toString(l).substr(1)+V,N.divRemTo(T,N,X);return X.intValue().toString(l)+V},i.prototype.fromRadix=function(l,y){this.fromInt(0),y==null&&(y=10);for(var _=this.chunkSize(y),T=Math.pow(y,_),N=!1,X=0,V=0,Y=0;Y<l.length;++Y){var ie=p(l,Y);ie<0?l.charAt(Y)=="-"&&this.signum()==0&&(N=!0):(V=y*V+ie,++X>=_&&(this.dMultiply(T),this.dAddOffset(V,0),X=0,V=0))}X>0&&(this.dMultiply(Math.pow(y,X)),this.dAddOffset(V,0)),N&&i.ZERO.subTo(this,this)},i.prototype.fromNumber=function(l,y,_){if(typeof y=="number")if(l<2)this.fromInt(1);else for(this.fromNumber(l,_),this.testBit(l-1)||this.bitwiseTo(i.ONE.shiftLeft(l-1),A,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(y);)this.dAddOffset(2,0),this.bitLength()>l&&this.subTo(i.ONE.shiftLeft(l-1),this);else{var T=new Array,N=7&l;T.length=1+(l>>3),y.nextBytes(T),N>0?T[0]&=(1<<N)-1:T[0]=0,this.fromString(T,256)}},i.prototype.bitwiseTo=function(l,y,_){var T,N,X=Math.min(l.t,this.t);for(T=0;T<X;++T)_[T]=y(this[T],l[T]);if(l.t<this.t){for(N=l.s&this.DM,T=X;T<this.t;++T)_[T]=y(this[T],N);_.t=this.t}else{for(N=this.s&this.DM,T=X;T<l.t;++T)_[T]=y(N,l[T]);_.t=l.t}_.s=y(this.s,l.s),_.clamp()},i.prototype.changeBit=function(l,y){var _=i.ONE.shiftLeft(l);return this.bitwiseTo(_,y,_),_},i.prototype.addTo=function(l,y){for(var _=0,T=0,N=Math.min(l.t,this.t);_<N;)T+=this[_]+l[_],y[_++]=T&this.DM,T>>=this.DB;if(l.t<this.t){for(T+=l.s;_<this.t;)T+=this[_],y[_++]=T&this.DM,T>>=this.DB;T+=this.s}else{for(T+=this.s;_<l.t;)T+=l[_],y[_++]=T&this.DM,T>>=this.DB;T+=l.s}y.s=T<0?-1:0,T>0?y[_++]=T:T<-1&&(y[_++]=this.DV+T),y.t=_,y.clamp()},i.prototype.dMultiply=function(l){this[this.t]=this.am(0,l-1,this,0,0,this.t),++this.t,this.clamp()},i.prototype.dAddOffset=function(l,y){if(l!=0){for(;this.t<=y;)this[this.t++]=0;for(this[y]+=l;this[y]>=this.DV;)this[y]-=this.DV,++y>=this.t&&(this[this.t++]=0),++this[y]}},i.prototype.multiplyLowerTo=function(l,y,_){var T,N=Math.min(this.t+l.t,y);for(_.s=0,_.t=N;N>0;)_[--N]=0;for(T=_.t-this.t;N<T;++N)_[N+this.t]=this.am(0,l[N],_,N,0,this.t);for(T=Math.min(l.t,y);N<T;++N)this.am(0,l[N],_,N,0,y-N);_.clamp()},i.prototype.multiplyUpperTo=function(l,y,_){--y;var T=_.t=this.t+l.t-y;for(_.s=0;--T>=0;)_[T]=0;for(T=Math.max(y-this.t,0);T<l.t;++T)_[this.t+T-y]=this.am(y-T,l[T],_,0,0,this.t+T-y);_.clamp(),_.drShiftTo(1,_)},i.prototype.modInt=function(l){if(l<=0)return 0;var y=this.DV%l,_=this.s<0?l-1:0;if(this.t>0)if(y==0)_=this[0]%l;else for(var T=this.t-1;T>=0;--T)_=(y*_+this[T])%l;return _},i.prototype.millerRabin=function(l){var y=this.subtract(i.ONE),_=y.getLowestSetBit();if(_<=0)return!1;var T=y.shiftRight(_);(l=l+1>>1)>O.length&&(l=O.length);for(var N=o(),X=0;X<l;++X){N.fromInt(O[Math.floor(Math.random()*O.length)]);var V=N.modPow(T,this);if(V.compareTo(i.ONE)!=0&&V.compareTo(y)!=0){for(var Y=1;Y++<_&&V.compareTo(y)!=0;)if((V=V.modPowInt(2,this)).compareTo(i.ONE)==0)return!1;if(V.compareTo(y)!=0)return!1}}return!0},i.prototype.clone=function(){var l=o();return this.copyTo(l),l},i.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},i.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},i.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},i.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},i.prototype.toByteArray=function(){var l=this.t,y=new Array;y[0]=this.s;var _,T=this.DB-l*this.DB%8,N=0;if(l-- >0)for(T<this.DB&&(_=this[l]>>T)!=(this.s&this.DM)>>T&&(y[N++]=_|this.s<<this.DB-T);l>=0;)T<8?(_=(this[l]&(1<<T)-1)<<8-T,_|=this[--l]>>(T+=this.DB-8)):(_=this[l]>>(T-=8)&255,T<=0&&(T+=this.DB,--l)),128&_&&(_|=-256),N==0&&(128&this.s)!=(128&_)&&++N,(N>0||_!=this.s)&&(y[N++]=_);return y},i.prototype.equals=function(l){return this.compareTo(l)==0},i.prototype.min=function(l){return this.compareTo(l)<0?this:l},i.prototype.max=function(l){return this.compareTo(l)>0?this:l},i.prototype.and=function(l){var y=o();return this.bitwiseTo(l,E,y),y},i.prototype.or=function(l){var y=o();return this.bitwiseTo(l,A,y),y},i.prototype.xor=function(l){var y=o();return this.bitwiseTo(l,g,y),y},i.prototype.andNot=function(l){var y=o();return this.bitwiseTo(l,v,y),y},i.prototype.not=function(){for(var l=o(),y=0;y<this.t;++y)l[y]=this.DM&~this[y];return l.t=this.t,l.s=~this.s,l},i.prototype.shiftLeft=function(l){var y=o();return l<0?this.rShiftTo(-l,y):this.lShiftTo(l,y),y},i.prototype.shiftRight=function(l){var y=o();return l<0?this.lShiftTo(-l,y):this.rShiftTo(l,y),y},i.prototype.getLowestSetBit=function(){for(var l=0;l<this.t;++l)if(this[l]!=0)return l*this.DB+d(this[l]);return this.s<0?this.t*this.DB:-1},i.prototype.bitCount=function(){for(var l=0,y=this.s&this.DM,_=0;_<this.t;++_)l+=w(this[_]^y);return l},i.prototype.testBit=function(l){var y=Math.floor(l/this.DB);return y>=this.t?this.s!=0:(this[y]&1<<l%this.DB)!=0},i.prototype.setBit=function(l){return this.changeBit(l,A)},i.prototype.clearBit=function(l){return this.changeBit(l,v)},i.prototype.flipBit=function(l){return this.changeBit(l,g)},i.prototype.add=function(l){var y=o();return this.addTo(l,y),y},i.prototype.subtract=function(l){var y=o();return this.subTo(l,y),y},i.prototype.multiply=function(l){var y=o();return this.multiplyTo(l,y),y},i.prototype.divide=function(l){var y=o();return this.divRemTo(l,y,null),y},i.prototype.remainder=function(l){var y=o();return this.divRemTo(l,null,y),y},i.prototype.divideAndRemainder=function(l){var y=o(),_=o();return this.divRemTo(l,y,_),new Array(y,_)},i.prototype.modPow=function(l,y){var _,T,N=l.bitLength(),X=x(1);if(N<=0)return X;_=N<18?1:N<48?3:N<144?4:N<768?5:6,T=N<8?new b(y):y.isEven()?new S(y):new m(y);var V=new Array,Y=3,ie=_-1,ue=(1<<_)-1;if(V[1]=T.convert(this),_>1){var Ee=o();for(T.sqrTo(V[1],Ee);Y<=ue;)V[Y]=o(),T.mulTo(Ee,V[Y-2],V[Y]),Y+=2}var _e,ve,Be=l.t-1,qe=!0,Re=o();for(N=u(l[Be])-1;Be>=0;){for(N>=ie?_e=l[Be]>>N-ie&ue:(_e=(l[Be]&(1<<N+1)-1)<<ie-N,Be>0&&(_e|=l[Be-1]>>this.DB+N-ie)),Y=_;!(1&_e);)_e>>=1,--Y;if((N-=Y)<0&&(N+=this.DB,--Be),qe)V[_e].copyTo(X),qe=!1;else{for(;Y>1;)T.sqrTo(X,Re),T.sqrTo(Re,X),Y-=2;Y>0?T.sqrTo(X,Re):(ve=X,X=Re,Re=ve),T.mulTo(Re,V[_e],X)}for(;Be>=0&&!(l[Be]&1<<N);)T.sqrTo(X,Re),ve=X,X=Re,Re=ve,--N<0&&(N=this.DB-1,--Be)}return T.revert(X)},i.prototype.modInverse=function(l){var y=l.isEven();if(this.isEven()&&y||l.signum()==0)return i.ZERO;for(var _=l.clone(),T=this.clone(),N=x(1),X=x(0),V=x(0),Y=x(1);_.signum()!=0;){for(;_.isEven();)_.rShiftTo(1,_),y?(N.isEven()&&X.isEven()||(N.addTo(this,N),X.subTo(l,X)),N.rShiftTo(1,N)):X.isEven()||X.subTo(l,X),X.rShiftTo(1,X);for(;T.isEven();)T.rShiftTo(1,T),y?(V.isEven()&&Y.isEven()||(V.addTo(this,V),Y.subTo(l,Y)),V.rShiftTo(1,V)):Y.isEven()||Y.subTo(l,Y),Y.rShiftTo(1,Y);_.compareTo(T)>=0?(_.subTo(T,_),y&&N.subTo(V,N),X.subTo(Y,X)):(T.subTo(_,T),y&&V.subTo(N,V),Y.subTo(X,Y))}return T.compareTo(i.ONE)!=0?i.ZERO:Y.compareTo(l)>=0?Y.subtract(l):Y.signum()<0?(Y.addTo(l,Y),Y.signum()<0?Y.add(l):Y):Y},i.prototype.pow=function(l){return this.exp(l,new B)},i.prototype.gcd=function(l){var y=this.s<0?this.negate():this.clone(),_=l.s<0?l.negate():l.clone();if(y.compareTo(_)<0){var T=y;y=_,_=T}var N=y.getLowestSetBit(),X=_.getLowestSetBit();if(X<0)return y;for(N<X&&(X=N),X>0&&(y.rShiftTo(X,y),_.rShiftTo(X,_));y.signum()>0;)(N=y.getLowestSetBit())>0&&y.rShiftTo(N,y),(N=_.getLowestSetBit())>0&&_.rShiftTo(N,_),y.compareTo(_)>=0?(y.subTo(_,y),y.rShiftTo(1,y)):(_.subTo(y,_),_.rShiftTo(1,_));return X>0&&_.lShiftTo(X,_),_},i.prototype.isProbablePrime=function(l){var y,_=this.abs();if(_.t==1&&_[0]<=O[O.length-1]){for(y=0;y<O.length;++y)if(_[0]==O[y])return!0;return!1}if(_.isEven())return!1;for(y=1;y<O.length;){for(var T=O[y],N=y+1;N<O.length&&T<M;)T*=O[N++];for(T=_.modInt(T);y<N;)if(T%O[y++]==0)return!1}return _.millerRabin(l)},i.prototype.square=function(){var l=o();return this.squareTo(l),l},i.prototype.Barrett=S,F==null){var U;if(F=new Array,D=0,typeof window!="undefined"&&window.crypto){if(window.crypto.getRandomValues){var j=new Uint8Array(32);for(window.crypto.getRandomValues(j),U=0;U<32;++U)F[D++]=j[U]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var W=window.crypto.random(32);for(U=0;U<W.length;++U)F[D++]=255&W.charCodeAt(U)}}for(;D<P;)U=Math.floor(65536*Math.random()),F[D++]=U>>>8,F[D++]=255&U;D=0,z()}function Q(){if(k==null){for(z(),(k=new te).init(F),D=0;D<F.length;++D)F[D]=0;D=0}return k.next()}function Z(){}function te(){this.i=0,this.j=0,this.S=new Array}Z.prototype.nextBytes=function(l){var y;for(y=0;y<l.length;++y)l[y]=Q()},te.prototype.init=function(l){var y,_,T;for(y=0;y<256;++y)this.S[y]=y;for(_=0,y=0;y<256;++y)_=_+this.S[y]+l[y%l.length]&255,T=this.S[y],this.S[y]=this.S[_],this.S[_]=T;this.i=0,this.j=0},te.prototype.next=function(){var l;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,l=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=l,this.S[l+this.S[this.i]&255]};var P=256;t.exports={default:i,BigInteger:i,SecureRandom:Z}}).call(this)},function(t,n,e){var r=e(5),i=e(21).map;r({target:"Array",proto:!0,forced:!e(84)("map")},{map:function(o){return i(this,o,arguments.length>1?arguments[1]:void 0)}})},function(t,n,e){var r=e(3),i=e(79),o=r.TYPED_ARRAY_CONSTRUCTOR,s=r.aTypedArrayConstructor;t.exports=function(c){return s(i(c,c[o]))}},function(t,n,e){var r;t.exports=(r=e(25),r.enc.Utf8)},function(t,n,e){var r={};r[e(4)("toStringTag")]="z",t.exports=String(r)==="[object z]"},function(t,n,e){var r=e(0),i=e(93),o=r["__core-js_shared__"]||i("__core-js_shared__",{});t.exports=o},function(t,n,e){var r=e(0),i=Object.defineProperty;t.exports=function(o,s){try{i(r,o,{value:s,configurable:!0,writable:!0})}catch(c){r[o]=s}return s}},function(t,n,e){var r=e(55),i=e(1);t.exports=!!Object.getOwnPropertySymbols&&!i(function(){var o=Symbol();return!String(o)||!(Object(o)instanceof Symbol)||!Symbol.sham&&r&&r<41})},function(t,n,e){var r=e(13),i=e(0),o=e(2),s=e(60),c=e(17),h=e(9),a=e(76),f=e(22),p=e(57),x=e(122),u=e(1),b=e(33).f,m=e(47).f,E=e(10).f,A=e(169),g=e(125).trim,v=i.Number,d=v.prototype,w=i.TypeError,B=o("".slice),C=o("".charCodeAt),S=function(z){var U=x(z,"number");return typeof U=="bigint"?U:k(U)},k=function(z){var U,j,W,Q,Z,te,P,l,y=x(z,"number");if(p(y))throw w("Cannot convert a Symbol value to a number");if(typeof y=="string"&&y.length>2){if(y=g(y),(U=C(y,0))===43||U===45){if((j=C(y,2))===88||j===120)return NaN}else if(U===48){switch(C(y,1)){case 66:case 98:W=2,Q=49;break;case 79:case 111:W=8,Q=55;break;default:return+y}for(te=(Z=B(y,2)).length,P=0;P<te;P++)if((l=C(Z,P))<48||l>Q)return NaN;return parseInt(Z,W)}}return+y};if(s("Number",!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var F,D=function(z){var U=arguments.length<1?0:v(S(z)),j=this;return f(d,j)&&u(function(){A(j)})?a(Object(U),j,D):U},O=r?b(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),M=0;O.length>M;M++)h(v,F=O[M])&&!h(D,F)&&E(D,F,m(v,F));D.prototype=d,d.constructor=D,c(i,"Number",D)}},function(t,n,e){var r=e(24),i=e(27),o=e(15),s=function(c){return function(h,a,f){var p,x=r(h),u=o(x),b=i(f,u);if(c&&a!=a){for(;u>b;)if((p=x[b++])!=p)return!0}else for(;u>b;b++)if((c||b in x)&&x[b]===a)return c||b||0;return!c&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},function(t,n){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,n,e){var r=e(8);t.exports=function(){var i=r(this),o="";return i.global&&(o+="g"),i.ignoreCase&&(o+="i"),i.multiline&&(o+="m"),i.dotAll&&(o+="s"),i.unicode&&(o+="u"),i.sticky&&(o+="y"),o}},function(t,n,e){var r=e(1),i=e(0).RegExp,o=r(function(){var h=i("a","y");return h.lastIndex=2,h.exec("abcd")!=null}),s=o||r(function(){return!i("a","y").sticky}),c=o||r(function(){var h=i("^r","gy");return h.lastIndex=2,h.exec("str")!=null});t.exports={BROKEN_CARET:c,MISSED_STICKY:s,UNSUPPORTED_Y:o}},function(t,n,e){var r=e(123),i=e(97);t.exports=Object.keys||function(o){return r(o,i)}},function(t,n,e){e(16);var r=e(2),i=e(17),o=e(78),s=e(1),c=e(4),h=e(18),a=c("species"),f=RegExp.prototype;t.exports=function(p,x,u,b){var m=c(p),E=!s(function(){var d={};return d[m]=function(){return 7},""[p](d)!=7}),A=E&&!s(function(){var d=!1,w=/a/;return p==="split"&&((w={}).constructor={},w.constructor[a]=function(){return w},w.flags="",w[m]=/./[m]),w.exec=function(){return d=!0,null},w[m](""),!d});if(!E||!A||u){var g=r(/./[m]),v=x(m,""[p],function(d,w,B,C,S){var k=r(d),F=w.exec;return F===o||F===f.exec?E&&!S?{done:!0,value:g(w,B,C)}:{done:!0,value:k(B,w,C)}:{done:!1}});i(String.prototype,p,v[0]),i(f,m,v[1])}b&&h(f[m],"sham",!0)}},function(t,n,e){var r=e(103).charAt;t.exports=function(i,o,s){return o+(s?r(i,o).length:1)}},function(t,n,e){var r=e(2),i=e(28),o=e(19),s=e(36),c=r("".charAt),h=r("".charCodeAt),a=r("".slice),f=function(p){return function(x,u){var b,m,E=o(s(x)),A=i(u),g=E.length;return A<0||A>=g?p?"":void 0:(b=h(E,A))<55296||b>56319||A+1===g||(m=h(E,A+1))<56320||m>57343?p?c(E,A):b:p?a(E,A,A+2):m-56320+(b-55296<<10)+65536}};t.exports={codeAt:f(!1),charAt:f(!0)}},function(t,n,e){var r=e(0),i=e(11),o=e(8),s=e(6),c=e(32),h=e(78),a=r.TypeError;t.exports=function(f,p){var x=f.exec;if(s(x)){var u=i(x,f,p);return u!==null&&o(u),u}if(c(f)==="RegExp")return i(h,f,p);throw a("RegExp#exec called on incompatible receiver")}},function(t,n,e){var r=e(0),i=e(80),o=e(58),s=r.TypeError;t.exports=function(c){if(i(c))return c;throw s(o(c)+" is not a constructor")}},function(t,n,e){var r=e(5),i=e(2),o=e(59),s=e(7),c=e(9),h=e(10).f,a=e(33),f=e(135),p=e(174),x=e(54),u=e(134),b=!1,m=x("meta"),E=0,A=function(v){h(v,m,{value:{objectID:"O"+E++,weakData:{}}})},g=t.exports={enable:function(){g.enable=function(){},b=!0;var v=a.f,d=i([].splice),w={};w[m]=1,v(w).length&&(a.f=function(B){for(var C=v(B),S=0,k=C.length;S<k;S++)if(C[S]===m){d(C,S,1);break}return C},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:f.f}))},fastKey:function(v,d){if(!s(v))return typeof v=="symbol"?v:(typeof v=="string"?"S":"P")+v;if(!c(v,m)){if(!p(v))return"F";if(!d)return"E";A(v)}return v[m].objectID},getWeakData:function(v,d){if(!c(v,m)){if(!p(v))return!0;if(!d)return!1;A(v)}return v[m].weakData},onFreeze:function(v){return u&&b&&p(v)&&!c(v,m)&&A(v),v}};o[m]=!0},function(t,n,e){var r=e(5),i=e(0),o=e(1),s=e(83),c=e(7),h=e(14),a=e(15),f=e(62),p=e(108),x=e(84),u=e(4),b=e(55),m=u("isConcatSpreadable"),E=i.TypeError,A=b>=51||!o(function(){var d=[];return d[m]=!1,d.concat()[0]!==d}),g=x("concat"),v=function(d){if(!c(d))return!1;var w=d[m];return w!==void 0?!!w:s(d)};r({target:"Array",proto:!0,forced:!A||!g},{concat:function(d){var w,B,C,S,k,F=h(this),D=p(F,0),O=0;for(w=-1,C=arguments.length;w<C;w++)if(v(k=w===-1?F:arguments[w])){if(O+(S=a(k))>9007199254740991)throw E("Maximum allowed index exceeded");for(B=0;B<S;B++,O++)B in k&&f(D,O,k[B])}else{if(O>=9007199254740991)throw E("Maximum allowed index exceeded");f(D,O++,k)}return D.length=O,D}})},function(t,n,e){var r=e(176);t.exports=function(i,o){return new(r(i))(o===0?0:o)}},function(t,n,e){var r=e(1);t.exports=function(i,o){var s=[][i];return!!s&&r(function(){s.call(null,o||function(){return 1},1)})}},function(t,n,e){var r=e(17);t.exports=function(i,o,s){for(var c in o)r(i,c,o[c],s);return i}},function(t,n,e){var r=e(0),i=e(40),o=e(11),s=e(8),c=e(58),h=e(112),a=e(15),f=e(22),p=e(113),x=e(85),u=e(139),b=r.TypeError,m=function(A,g){this.stopped=A,this.result=g},E=m.prototype;t.exports=function(A,g,v){var d,w,B,C,S,k,F,D=v&&v.that,O=!(!v||!v.AS_ENTRIES),M=!(!v||!v.IS_ITERATOR),z=!(!v||!v.INTERRUPTED),U=i(g,D),j=function(Q){return d&&u(d,"normal",Q),new m(!0,Q)},W=function(Q){return O?(s(Q),z?U(Q[0],Q[1],j):U(Q[0],Q[1])):z?U(Q,j):U(Q)};if(M)d=A;else{if(!(w=x(A)))throw b(c(A)+" is not iterable");if(h(w)){for(B=0,C=a(A);C>B;B++)if((S=W(A[B]))&&f(E,S))return S;return new m(!1)}d=p(A,w)}for(k=d.next;!(F=o(k,d)).done;){try{S=W(F.value)}catch(Q){u(d,"throw",Q)}if(typeof S=="object"&&S&&f(E,S))return S}return new m(!1)}},function(t,n,e){var r=e(4),i=e(65),o=r("iterator"),s=Array.prototype;t.exports=function(c){return c!==void 0&&(i.Array===c||s[o]===c)}},function(t,n,e){var r=e(0),i=e(11),o=e(31),s=e(8),c=e(58),h=e(85),a=r.TypeError;t.exports=function(f,p){var x=arguments.length<2?h(f):p;if(o(x))return s(i(x,f));throw a(c(f)+" is not iterable")}},function(t,n,e){var r=e(32),i=e(0);t.exports=r(i.process)=="process"},function(t,n,e){var r=e(5),i=e(11),o=e(42),s=e(45),c=e(6),h=e(191),a=e(66),f=e(38),p=e(49),x=e(18),u=e(17),b=e(4),m=e(65),E=e(148),A=s.PROPER,g=s.CONFIGURABLE,v=E.IteratorPrototype,d=E.BUGGY_SAFARI_ITERATORS,w=b("iterator"),B=function(){return this};t.exports=function(C,S,k,F,D,O,M){h(k,S,F);var z,U,j,W=function(_){if(_===D&&l)return l;if(!d&&_ in te)return te[_];switch(_){case"keys":case"values":case"entries":return function(){return new k(this,_)}}return function(){return new k(this)}},Q=S+" Iterator",Z=!1,te=C.prototype,P=te[w]||te["@@iterator"]||D&&te[D],l=!d&&P||W(D),y=S=="Array"&&te.entries||P;if(y&&(z=a(y.call(new C)))!==Object.prototype&&z.next&&(o||a(z)===v||(f?f(z,v):c(z[w])||u(z,w,B)),p(z,Q,!0,!0),o&&(m[Q]=B)),A&&D=="values"&&P&&P.name!=="values"&&(!o&&g?x(te,"name","values"):(Z=!0,l=function(){return i(P,this)})),D)if(U={values:W("values"),keys:O?l:W("keys"),entries:W("entries")},M)for(j in U)(d||Z||!(j in te))&&u(te,j,U[j]);else r({target:S,proto:!0,forced:d||Z},U);return o&&!M||te[w]===l||u(te,w,l,{name:D}),m[S]=l,U}},function(t,n,e){var r=e(5),i=e(203);r({target:"Array",stat:!0,forced:!e(86)(function(o){Array.from(o)})},{from:i})},function(t,n,e){var r=e(14),i=e(27),o=e(15);t.exports=function(s){for(var c=r(this),h=o(c),a=arguments.length,f=i(a>1?arguments[1]:void 0,h),p=a>2?arguments[2]:void 0,x=p===void 0?h:i(p,h);x>f;)c[f++]=s;return c}},function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(r){typeof window=="object"&&(e=window)}t.exports=e},function(t,n,e){var r=e(94);t.exports=r&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},function(t,n,e){var r=e(13),i=e(1),o=e(73);t.exports=!r&&!i(function(){return Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a!=7})},function(t,n,e){var r=e(13),i=e(1);t.exports=r&&i(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},function(t,n,e){var r=e(0),i=e(11),o=e(7),s=e(57),c=e(43),h=e(165),a=e(4),f=r.TypeError,p=a("toPrimitive");t.exports=function(x,u){if(!o(x)||s(x))return x;var b,m=c(x,p);if(m){if(u===void 0&&(u="default"),b=i(m,x,u),!o(b)||s(b))return b;throw f("Can't convert object to primitive value")}return u===void 0&&(u="number"),h(x,u)}},function(t,n,e){var r=e(2),i=e(9),o=e(24),s=e(96).indexOf,c=e(59),h=r([].push);t.exports=function(a,f){var p,x=o(a),u=0,b=[];for(p in x)!i(c,p)&&i(x,p)&&h(b,p);for(;f.length>u;)i(x,p=f[u++])&&(~s(b,p)||h(b,p));return b}},function(t,n,e){var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);n.f=o?function(s){var c=i(this,s);return!!c&&c.enumerable}:r},function(t,n,e){var r=e(2),i=e(36),o=e(19),s=e(126),c=r("".replace),h="["+s+"]",a=RegExp("^"+h+h+"*"),f=RegExp(h+h+"*$"),p=function(x){return function(u){var b=o(i(u));return 1&x&&(b=c(b,a,"")),2&x&&(b=c(b,f,"")),b}};t.exports={start:p(1),end:p(2),trim:p(3)}},function(t,n){t.exports=`
20
+ */var Sc=function(t){return t!=null&&(To(t)||Dc(t)||!!t._isBuffer)};function To(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function Dc(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&To(t.slice(0,0))}(function(){var t=Fc,n=Fi.utf8,e=Sc,r=Fi.bin,i=function(o,s){o.constructor==String?s&&s.encoding==="binary"?o=r.stringToBytes(o):o=n.stringToBytes(o):e(o)?o=Array.prototype.slice.call(o,0):!Array.isArray(o)&&o.constructor!==Uint8Array&&(o=o.toString());for(var c=t.bytesToWords(o),h=o.length*8,a=1732584193,f=-271733879,p=-1732584194,x=271733878,u=0;u<c.length;u++)c[u]=(c[u]<<8|c[u]>>>24)&16711935|(c[u]<<24|c[u]>>>8)&4278255360;c[h>>>5]|=128<<h%32,c[(h+64>>>9<<4)+14]=h;for(var b=i._ff,m=i._gg,E=i._hh,A=i._ii,u=0;u<c.length;u+=16){var g=a,v=f,d=p,_=x;a=b(a,f,p,x,c[u+0],7,-680876936),x=b(x,a,f,p,c[u+1],12,-389564586),p=b(p,x,a,f,c[u+2],17,606105819),f=b(f,p,x,a,c[u+3],22,-1044525330),a=b(a,f,p,x,c[u+4],7,-176418897),x=b(x,a,f,p,c[u+5],12,1200080426),p=b(p,x,a,f,c[u+6],17,-1473231341),f=b(f,p,x,a,c[u+7],22,-45705983),a=b(a,f,p,x,c[u+8],7,1770035416),x=b(x,a,f,p,c[u+9],12,-1958414417),p=b(p,x,a,f,c[u+10],17,-42063),f=b(f,p,x,a,c[u+11],22,-1990404162),a=b(a,f,p,x,c[u+12],7,1804603682),x=b(x,a,f,p,c[u+13],12,-40341101),p=b(p,x,a,f,c[u+14],17,-1502002290),f=b(f,p,x,a,c[u+15],22,1236535329),a=m(a,f,p,x,c[u+1],5,-165796510),x=m(x,a,f,p,c[u+6],9,-1069501632),p=m(p,x,a,f,c[u+11],14,643717713),f=m(f,p,x,a,c[u+0],20,-373897302),a=m(a,f,p,x,c[u+5],5,-701558691),x=m(x,a,f,p,c[u+10],9,38016083),p=m(p,x,a,f,c[u+15],14,-660478335),f=m(f,p,x,a,c[u+4],20,-405537848),a=m(a,f,p,x,c[u+9],5,568446438),x=m(x,a,f,p,c[u+14],9,-1019803690),p=m(p,x,a,f,c[u+3],14,-187363961),f=m(f,p,x,a,c[u+8],20,1163531501),a=m(a,f,p,x,c[u+13],5,-1444681467),x=m(x,a,f,p,c[u+2],9,-51403784),p=m(p,x,a,f,c[u+7],14,1735328473),f=m(f,p,x,a,c[u+12],20,-1926607734),a=E(a,f,p,x,c[u+5],4,-378558),x=E(x,a,f,p,c[u+8],11,-2022574463),p=E(p,x,a,f,c[u+11],16,1839030562),f=E(f,p,x,a,c[u+14],23,-35309556),a=E(a,f,p,x,c[u+1],4,-1530992060),x=E(x,a,f,p,c[u+4],11,1272893353),p=E(p,x,a,f,c[u+7],16,-155497632),f=E(f,p,x,a,c[u+10],23,-1094730640),a=E(a,f,p,x,c[u+13],4,681279174),x=E(x,a,f,p,c[u+0],11,-358537222),p=E(p,x,a,f,c[u+3],16,-722521979),f=E(f,p,x,a,c[u+6],23,76029189),a=E(a,f,p,x,c[u+9],4,-640364487),x=E(x,a,f,p,c[u+12],11,-421815835),p=E(p,x,a,f,c[u+15],16,530742520),f=E(f,p,x,a,c[u+2],23,-995338651),a=A(a,f,p,x,c[u+0],6,-198630844),x=A(x,a,f,p,c[u+7],10,1126891415),p=A(p,x,a,f,c[u+14],15,-1416354905),f=A(f,p,x,a,c[u+5],21,-57434055),a=A(a,f,p,x,c[u+12],6,1700485571),x=A(x,a,f,p,c[u+3],10,-1894986606),p=A(p,x,a,f,c[u+10],15,-1051523),f=A(f,p,x,a,c[u+1],21,-2054922799),a=A(a,f,p,x,c[u+8],6,1873313359),x=A(x,a,f,p,c[u+15],10,-30611744),p=A(p,x,a,f,c[u+6],15,-1560198380),f=A(f,p,x,a,c[u+13],21,1309151649),a=A(a,f,p,x,c[u+4],6,-145523070),x=A(x,a,f,p,c[u+11],10,-1120210379),p=A(p,x,a,f,c[u+2],15,718787259),f=A(f,p,x,a,c[u+9],21,-343485551),a=a+g>>>0,f=f+v>>>0,p=p+d>>>0,x=x+_>>>0}return t.endian([a,f,p,x])};i._ff=function(o,s,c,h,a,f,p){var x=o+(s&c|~s&h)+(a>>>0)+p;return(x<<f|x>>>32-f)+s},i._gg=function(o,s,c,h,a,f,p){var x=o+(s&h|c&~h)+(a>>>0)+p;return(x<<f|x>>>32-f)+s},i._hh=function(o,s,c,h,a,f,p){var x=o+(s^c^h)+(a>>>0)+p;return(x<<f|x>>>32-f)+s},i._ii=function(o,s,c,h,a,f,p){var x=o+(c^(s|~h))+(a>>>0)+p;return(x<<f|x>>>32-f)+s},i._blocksize=16,i._digestsize=16,So.exports=function(o,s){if(o==null)throw new Error("Illegal argument "+o);var c=t.wordsToBytes(i(o,s));return s&&s.asBytes?c:s&&s.asString?r.bytesToString(c):t.bytesToHex(c)}})();var Tc=So.exports;const $0=A0(Tc);var ko={exports:{}},Lr={exports:{}},Si;function kc(){return Si||(Si=1,function(t){(function(n){var e={bytesToHex:function(o){return r(o)},hexToBytes:function(o){if(o.length%2===1)throw new Error("hexToBytes can't have a string with an odd number of characters.");return o.indexOf("0x")===0&&(o=o.slice(2)),o.match(/../g).map(function(s){return parseInt(s,16)})}};function r(o){return o.map(function(s){return i(s.toString(16),2)}).join("")}function i(o,s){return o.length>s?o:Array(s-o.length+1).join("0")+o}t.exports?t.exports=e:n.convertHex=e})(ke)}(Lr)),Lr.exports}var Wr={exports:{}},Di;function Rc(){return Di||(Di=1,function(t){(function(n){var e={bytesToString:function(r){return r.map(function(i){return String.fromCharCode(i)}).join("")},stringToBytes:function(r){return r.split("").map(function(i){return i.charCodeAt(0)})}};e.UTF8={bytesToString:function(r){return decodeURIComponent(escape(e.bytesToString(r)))},stringToBytes:function(r){return e.stringToBytes(unescape(encodeURIComponent(r)))}},t.exports?t.exports=e:n.convertString=e})(ke)}(Wr)),Wr.exports}(function(t){(function(n){var e={};t.exports?(e.bytesToHex=kc().bytesToHex,e.convertString=Rc(),t.exports=h):(e.bytesToHex=n.convertHex.bytesToHex,e.convertString=n.convertString,n.sha256=h);var r=[];(function(){function a(u){for(var b=Math.sqrt(u),m=2;m<=b;m++)if(!(u%m))return!1;return!0}function f(u){return(u-(u|0))*4294967296|0}for(var p=2,x=0;x<64;)a(p)&&(r[x]=f(Math.pow(p,1/3)),x++),p++})();var i=function(a){for(var f=[],p=0,x=0;p<a.length;p++,x+=8)f[x>>>5]|=a[p]<<24-x%32;return f},o=function(a){for(var f=[],p=0;p<a.length*32;p+=8)f.push(a[p>>>5]>>>24-p%32&255);return f},s=[],c=function(a,f,p){for(var x=a[0],u=a[1],b=a[2],m=a[3],E=a[4],A=a[5],g=a[6],v=a[7],d=0;d<64;d++){if(d<16)s[d]=f[p+d]|0;else{var _=s[d-15],B=(_<<25|_>>>7)^(_<<14|_>>>18)^_>>>3,C=s[d-2],S=(C<<15|C>>>17)^(C<<13|C>>>19)^C>>>10;s[d]=B+s[d-7]+S+s[d-16]}var k=E&A^~E&g,F=x&u^x&b^u&b,D=(x<<30|x>>>2)^(x<<19|x>>>13)^(x<<10|x>>>22),O=(E<<26|E>>>6)^(E<<21|E>>>11)^(E<<7|E>>>25),M=v+O+k+r[d]+s[d],U=D+F;v=g,g=A,A=E,E=m+M|0,m=b,b=u,u=x,x=M+U|0}a[0]=a[0]+x|0,a[1]=a[1]+u|0,a[2]=a[2]+b|0,a[3]=a[3]+m|0,a[4]=a[4]+E|0,a[5]=a[5]+A|0,a[6]=a[6]+g|0,a[7]=a[7]+v|0};function h(a,f){a.constructor===String&&(a=e.convertString.UTF8.stringToBytes(a));var p=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],x=i(a),u=a.length*8;x[u>>5]|=128<<24-u%32,x[(u+64>>9<<4)+15]=u;for(var b=0;b<x.length;b+=16)c(p,x,b);var m=o(p);return f&&f.asBytes?m:f&&f.asString?e.convertString.bytesToString(m):e.bytesToHex(m)}h.x2=function(a,f){return h(h(a,{asBytes:!0}),f)}})(ke)})(ko);var Ic=ko.exports;const Ro=A0(Ic);function Pc(t,n,e){const r=Object.keys(t).filter(o=>o!=="sign").sort();let i="";return r.forEach(o=>{let s=t[o];typeof s=="object"&&(s=JSON.stringify(s)),i+=o+s}),e||(e=String(t.signatureMethod).toLowerCase()==="sha256"?"sha256":"md5"),(e==="sha256"?Ro:$0)(n+i+n).toString().toUpperCase()}class Oc extends oo{constructor(n){super({baseUrl:io(yn(n.config.domainInfo).chatApiDomain,"https"),requestPlugins:[new ao({getTokenInfo:()=>De(this,null,function*(){const e=yield n.connect.getToken();if(!e)return;let r=$t.Params,i="token";const o=n.getUserInfo();return n.isSpecialUserType(o.userType)&&(r=$t.Header,i="authorization"),{token:e,tokenField:i,tokenMode:r}})}),new Jr({globalParams:e=>De(this,null,function*(){const{appendChannelId:r=!0,appendAccountId:i=!1,appendUserId:o=!0}=e,s={};if(r||i){const c=yield n.channel.getChannelInfo();r&&(s.channelId=c.channelId),i&&(s.accountId=c.accountId)}if(o){const c=n.getUserInfo();s.userId=c.userId}return s})}),new so({successCode:200}),new Jr({globalParams:e=>De(this,null,function*(){const{appendSign:r=!1}=e;if(r)return{sign:yield this.getRoomSign()};const{appendChatSign:i=!1}=e;if(i){const o=e.params||{};return{sign:yield this.getChatSign(o)}}return{}})}),new Fo({getDecryptInfo:e=>{const r=e.params||{};return{decryptKeys:{sign:Pc(r,"polyvChatClient"),iv:""},decryptPosition:e0.WholeResponse}}})]}),this._plvSocket=n}getRoomSign(){return De(this,null,function*(){const n=yield this._plvSocket.channel.getChannelInfo();return $0(`polyv_room_sign${n.channelId}`)})}getChatSign(n){return De(this,null,function*(){let e=Object.keys(n).sort((i,o)=>{i=i.toLocaleLowerCase(),o=o.toLocaleLowerCase();for(let s=0;s<i.length&&s<o.length;s++){const c=i.charCodeAt(s)-o.charCodeAt(s);if(c!==0)return c}return i.length>o.length?1:-1}).reduce((i,o)=>{let s=n[o];return!s&&s!==0?i:(typeof s=="object"&&(s=JSON.stringify(s)),`${i}${o}${s}`)},"");return $0("polyvChatSign"+e+"polyvChatSign").toLocaleUpperCase()})}}var b0=(t=>(t.Token="token",t.Sign="sign",t))(b0||{}),a0=(t=>(t.None="none",t.AES="aes",t.SM2="sm2",t))(a0||{});let k0;const qc=new Uint8Array(16);function Mc(){if(!k0&&(k0=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!k0))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return k0(qc)}const ot=[];for(let t=0;t<256;++t)ot.push((t+256).toString(16).slice(1));function Nc(t,n=0){return ot[t[n+0]]+ot[t[n+1]]+ot[t[n+2]]+ot[t[n+3]]+"-"+ot[t[n+4]]+ot[t[n+5]]+"-"+ot[t[n+6]]+ot[t[n+7]]+"-"+ot[t[n+8]]+ot[t[n+9]]+"-"+ot[t[n+10]]+ot[t[n+11]]+ot[t[n+12]]+ot[t[n+13]]+ot[t[n+14]]+ot[t[n+15]]}const Hc=typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Ti={randomUUID:Hc};function Uc(t,n,e){if(Ti.randomUUID&&!t)return Ti.randomUUID();t=t||{};const r=t.random||(t.rng||Mc)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Nc(r)}exports.SignatureMethod=void 0;(function(t){t.MD5="MD5",t.SHA256="SHA256"})(exports.SignatureMethod||(exports.SignatureMethod={}));function zc(t){let n="";const e=Object.keys(t).sort();for(const r of e)t[r]&&(n+=`${r}${t[r]}`);return n}function jc(t,n,e=exports.SignatureMethod.MD5){const r=zc(t),i=n+r+n;return(e===exports.SignatureMethod.MD5?$0(i):Ro(i)).toUpperCase()}class Lc{constructor(n){ye(this,"__config");ye(this,"__appId");ye(this,"__appSecret");ye(this,"__signatureNonce");ye(this,"__signatureMethod");ye(this,"__getAppSign");var e,r;this.__config=n,this.__appId=n.appId||"",this.__appSecret=n.appSecret||"",this.__signatureNonce=(e=n.signatureNonce)!=null?e:!1,this.__signatureMethod=(r=n.signatureMethod)!=null?r:exports.SignatureMethod.MD5,this.__getAppSign=n.getAppSign}usePlugin(n){const{useAppSign:e=!0}=n;return e}interceptIncludeParams(n){const{signatureNonce:e=this.__signatureNonce,signatureMethod:r=this.__signatureMethod}=n,i={};return e&&(i.signatureNonce=Uc()),r&&(i.signatureMethod=r),i}interceptAuthorizeRequest(n){return De(this,null,function*(){const e=ze({},n.params||{}),r=yield this.__getAppSignData(e,n);return r?(e.appId=r.appId,e.timestamp=r.timestamp,e.sign=r.sign,r.signatureMethod&&(e.signatureMethod=r.signatureMethod)):console.error("AuthorizeAppSignRequestPlugin error, signData is undefined"),St(ze({},n),{params:e})})}__getAppSignData(n,e){return De(this,null,function*(){const{signatureMethod:r=this.__signatureMethod}=e;if(this.__getAppSign)return yield this.__getAppSign({params:n,signatureMethod:r});if(this.__appId&&this.__appSecret){const i=Date.now(),o=St(ze({},n),{appId:this.__appId,timestamp:i}),s=jc(o,this.__appSecret,r);return{appId:this.__appId,timestamp:i,sign:s,signatureMethod:r}}})}}const Wc=Dt("S0xmTzdabmZRQzhqSXZFWA=="),$c=Dt("VlRSZTdTbWRsbFJzSjdDYg=="),Kc=Dt("UG9seXZBcGlSZXNwb25zZQ=="),Vc=Dt("UG9seXZMaXZlRW5jcnlwdA==");function Xc(t,n){const{sign:e,iv:r}=n,i=bt.enc.Utf8.parse(e),o=bt.enc.Utf8.parse(t);return bt.AES.encrypt(o,i,{iv:bt.enc.Utf8.parse(r),mode:bt.mode.CBC,padding:bt.pad.Pkcs7}).toString()}class Gc{constructor(n={}){ye(this,"__config");ye(this,"__encryptPostAES");var e;this.__config=n,this.__encryptPostAES=(e=n.encryptPostAES)!=null?e:!0}usePlugin(n){const{useAES:e=!0}=n;return e}interceptIncludeParams(){return{encryptResponseType:1}}interceptEncryptRequest(n){const e=this.__handleData(n),r=this.__handleHeaders(n);return St(ze({},n),{data:e,headers:r})}interceptDecryptResponse(n){const e=n.data;if(!e.encryption||typeof e.data!="string")return n;const r=e.data,i=this.__getDecryptKeyInfo();return e.data=tn(r,i,o0.Base64),n}__handleHeaders(n){var i;const e=n.headers||{},{encryptPostAES:r=this.__encryptPostAES}=n;return((i=n.method)==null?void 0:i.toLocaleUpperCase())==="POST"&&r&&(e["x-e-type"]=1),e}__handleData(n){var o;const e=n.data||{};if(((o=n.method)==null?void 0:o.toLocaleUpperCase())!=="POST")return e;let r=e;const{encryptPostAES:i=this.__encryptPostAES}=n;if(i){n.requestType="json";let s="";typeof e=="string"?s=e:typeof e=="object"&&(s=JSON.stringify(e));const c=this.__getEncryptKeyInfo(n);r=Xc(s,c)}return r}__getDecryptKeyInfo(){return{sign:Kc,iv:Vc}}__getEncryptKeyInfo(n){const e=n.params||{};let r=Wc;return"appId"in e&&e.appId===this.__config.appId&&this.__config.appSecret&&(r=this.__config.appSecret),{sign:r,iv:$c}}}var Io={exports:{}};(function(t,n){(function(){var e,r=0xdeadbeefcafe,i=(r&16777215)==15715070;function o(R,I,q){R!=null&&(typeof R=="number"?this.fromNumber(R,I,q):I==null&&typeof R!="string"?this.fromString(R,256):this.fromString(R,I))}function s(){return new o(null)}function c(R,I,q,$,re,ae){for(;--ae>=0;){var xe=I*this[R++]+q[$]+re;re=Math.floor(xe/67108864),q[$++]=xe&67108863}return re}function h(R,I,q,$,re,ae){for(var xe=I&32767,de=I>>15;--ae>=0;){var Xe=this[R]&32767,nt=this[R++]>>15,lt=de*Xe+nt*xe;Xe=xe*Xe+((lt&32767)<<15)+q[$]+(re&1073741823),re=(Xe>>>30)+(lt>>>15)+de*nt+(re>>>30),q[$++]=Xe&1073741823}return re}function a(R,I,q,$,re,ae){for(var xe=I&16383,de=I>>14;--ae>=0;){var Xe=this[R]&16383,nt=this[R++]>>14,lt=de*Xe+nt*xe;Xe=xe*Xe+((lt&16383)<<14)+q[$]+re,re=(Xe>>28)+(lt>>14)+de*nt,q[$++]=Xe&268435455}return re}var f=typeof navigator!="undefined";f&&i&&navigator.appName=="Microsoft Internet Explorer"?(o.prototype.am=h,e=30):f&&i&&navigator.appName!="Netscape"?(o.prototype.am=c,e=26):(o.prototype.am=a,e=28),o.prototype.DB=e,o.prototype.DM=(1<<e)-1,o.prototype.DV=1<<e;var p=52;o.prototype.FV=Math.pow(2,p),o.prototype.F1=p-e,o.prototype.F2=2*e-p;var x="0123456789abcdefghijklmnopqrstuvwxyz",u=new Array,b,m;for(b=48,m=0;m<=9;++m)u[b++]=m;for(b=97,m=10;m<36;++m)u[b++]=m;for(b=65,m=10;m<36;++m)u[b++]=m;function E(R){return x.charAt(R)}function A(R,I){var q=u[R.charCodeAt(I)];return q==null?-1:q}function g(R){for(var I=this.t-1;I>=0;--I)R[I]=this[I];R.t=this.t,R.s=this.s}function v(R){this.t=1,this.s=R<0?-1:0,R>0?this[0]=R:R<-1?this[0]=R+this.DV:this.t=0}function d(R){var I=s();return I.fromInt(R),I}function _(R,I){var q;if(I==16)q=4;else if(I==8)q=3;else if(I==256)q=8;else if(I==2)q=1;else if(I==32)q=5;else if(I==4)q=2;else{this.fromRadix(R,I);return}this.t=0,this.s=0;for(var $=R.length,re=!1,ae=0;--$>=0;){var xe=q==8?R[$]&255:A(R,$);if(xe<0){R.charAt($)=="-"&&(re=!0);continue}re=!1,ae==0?this[this.t++]=xe:ae+q>this.DB?(this[this.t-1]|=(xe&(1<<this.DB-ae)-1)<<ae,this[this.t++]=xe>>this.DB-ae):this[this.t-1]|=xe<<ae,ae+=q,ae>=this.DB&&(ae-=this.DB)}q==8&&R[0]&128&&(this.s=-1,ae>0&&(this[this.t-1]|=(1<<this.DB-ae)-1<<ae)),this.clamp(),re&&o.ZERO.subTo(this,this)}function B(){for(var R=this.s&this.DM;this.t>0&&this[this.t-1]==R;)--this.t}function C(R){if(this.s<0)return"-"+this.negate().toString(R);var I;if(R==16)I=4;else if(R==8)I=3;else if(R==2)I=1;else if(R==32)I=5;else if(R==4)I=2;else return this.toRadix(R);var q=(1<<I)-1,$,re=!1,ae="",xe=this.t,de=this.DB-xe*this.DB%I;if(xe-- >0)for(de<this.DB&&($=this[xe]>>de)>0&&(re=!0,ae=E($));xe>=0;)de<I?($=(this[xe]&(1<<de)-1)<<I-de,$|=this[--xe]>>(de+=this.DB-I)):($=this[xe]>>(de-=I)&q,de<=0&&(de+=this.DB,--xe)),$>0&&(re=!0),re&&(ae+=E($));return re?ae:"0"}function S(){var R=s();return o.ZERO.subTo(this,R),R}function k(){return this.s<0?this.negate():this}function F(R){var I=this.s-R.s;if(I!=0)return I;var q=this.t;if(I=q-R.t,I!=0)return this.s<0?-I:I;for(;--q>=0;)if((I=this[q]-R[q])!=0)return I;return 0}function D(R){var I=1,q;return(q=R>>>16)!=0&&(R=q,I+=16),(q=R>>8)!=0&&(R=q,I+=8),(q=R>>4)!=0&&(R=q,I+=4),(q=R>>2)!=0&&(R=q,I+=2),(q=R>>1)!=0&&(R=q,I+=1),I}function O(){return this.t<=0?0:this.DB*(this.t-1)+D(this[this.t-1]^this.s&this.DM)}function M(R,I){var q;for(q=this.t-1;q>=0;--q)I[q+R]=this[q];for(q=R-1;q>=0;--q)I[q]=0;I.t=this.t+R,I.s=this.s}function U(R,I){for(var q=R;q<this.t;++q)I[q-R]=this[q];I.t=Math.max(this.t-R,0),I.s=this.s}function z(R,I){var q=R%this.DB,$=this.DB-q,re=(1<<$)-1,ae=Math.floor(R/this.DB),xe=this.s<<q&this.DM,de;for(de=this.t-1;de>=0;--de)I[de+ae+1]=this[de]>>$|xe,xe=(this[de]&re)<<q;for(de=ae-1;de>=0;--de)I[de]=0;I[ae]=xe,I.t=this.t+ae+1,I.s=this.s,I.clamp()}function j(R,I){I.s=this.s;var q=Math.floor(R/this.DB);if(q>=this.t){I.t=0;return}var $=R%this.DB,re=this.DB-$,ae=(1<<$)-1;I[0]=this[q]>>$;for(var xe=q+1;xe<this.t;++xe)I[xe-q-1]|=(this[xe]&ae)<<re,I[xe-q]=this[xe]>>$;$>0&&(I[this.t-q-1]|=(this.s&ae)<<re),I.t=this.t-q,I.clamp()}function W(R,I){for(var q=0,$=0,re=Math.min(R.t,this.t);q<re;)$+=this[q]-R[q],I[q++]=$&this.DM,$>>=this.DB;if(R.t<this.t){for($-=R.s;q<this.t;)$+=this[q],I[q++]=$&this.DM,$>>=this.DB;$+=this.s}else{for($+=this.s;q<R.t;)$-=R[q],I[q++]=$&this.DM,$>>=this.DB;$-=R.s}I.s=$<0?-1:0,$<-1?I[q++]=this.DV+$:$>0&&(I[q++]=$),I.t=q,I.clamp()}function Q(R,I){var q=this.abs(),$=R.abs(),re=q.t;for(I.t=re+$.t;--re>=0;)I[re]=0;for(re=0;re<$.t;++re)I[re+q.t]=q.am(0,$[re],I,re,0,q.t);I.s=0,I.clamp(),this.s!=R.s&&o.ZERO.subTo(I,I)}function Z(R){for(var I=this.abs(),q=R.t=2*I.t;--q>=0;)R[q]=0;for(q=0;q<I.t-1;++q){var $=I.am(q,I[q],R,2*q,0,1);(R[q+I.t]+=I.am(q+1,2*I[q],R,2*q+1,$,I.t-q-1))>=I.DV&&(R[q+I.t]-=I.DV,R[q+I.t+1]=1)}R.t>0&&(R[R.t-1]+=I.am(q,I[q],R,2*q,0,1)),R.s=0,R.clamp()}function te(R,I,q){var $=R.abs();if(!($.t<=0)){var re=this.abs();if(re.t<$.t){I!=null&&I.fromInt(0),q!=null&&this.copyTo(q);return}q==null&&(q=s());var ae=s(),xe=this.s,de=R.s,Xe=this.DB-D($[$.t-1]);Xe>0?($.lShiftTo(Xe,ae),re.lShiftTo(Xe,q)):($.copyTo(ae),re.copyTo(q));var nt=ae.t,lt=ae[nt-1];if(lt!=0){var dt=lt*(1<<this.F1)+(nt>1?ae[nt-2]>>this.F2:0),Ft=this.FV/dt,F0=(1<<this.F1)/dt,mt=1<<this.F2,Et=q.t,S0=Et-nt,kt=I==null?s():I;for(ae.dlShiftTo(S0,kt),q.compareTo(kt)>=0&&(q[q.t++]=1,q.subTo(kt,q)),o.ONE.dlShiftTo(nt,kt),kt.subTo(ae,ae);ae.t<nt;)ae[ae.t++]=0;for(;--S0>=0;){var or=q[--Et]==lt?this.DM:Math.floor(q[Et]*Ft+(q[Et-1]+mt)*F0);if((q[Et]+=ae.am(0,or,q,S0,0,nt))<or)for(ae.dlShiftTo(S0,kt),q.subTo(kt,q);q[Et]<--or;)q.subTo(kt,q)}I!=null&&(q.drShiftTo(nt,I),xe!=de&&o.ZERO.subTo(I,I)),q.t=nt,q.clamp(),Xe>0&&q.rShiftTo(Xe,q),xe<0&&o.ZERO.subTo(q,q)}}}function P(R){var I=s();return this.abs().divRemTo(R,null,I),this.s<0&&I.compareTo(o.ZERO)>0&&R.subTo(I,I),I}function l(R){this.m=R}function y(R){return R.s<0||R.compareTo(this.m)>=0?R.mod(this.m):R}function w(R){return R}function T(R){R.divRemTo(this.m,null,R)}function N(R,I,q){R.multiplyTo(I,q),this.reduce(q)}function X(R,I){R.squareTo(I),this.reduce(I)}l.prototype.convert=y,l.prototype.revert=w,l.prototype.reduce=T,l.prototype.mulTo=N,l.prototype.sqrTo=X;function V(){if(this.t<1)return 0;var R=this[0];if(!(R&1))return 0;var I=R&3;return I=I*(2-(R&15)*I)&15,I=I*(2-(R&255)*I)&255,I=I*(2-((R&65535)*I&65535))&65535,I=I*(2-R*I%this.DV)%this.DV,I>0?this.DV-I:-I}function Y(R){this.m=R,this.mp=R.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<R.DB-15)-1,this.mt2=2*R.t}function ie(R){var I=s();return R.abs().dlShiftTo(this.m.t,I),I.divRemTo(this.m,null,I),R.s<0&&I.compareTo(o.ZERO)>0&&this.m.subTo(I,I),I}function ue(R){var I=s();return R.copyTo(I),this.reduce(I),I}function Ee(R){for(;R.t<=this.mt2;)R[R.t++]=0;for(var I=0;I<this.m.t;++I){var q=R[I]&32767,$=q*this.mpl+((q*this.mph+(R[I]>>15)*this.mpl&this.um)<<15)&R.DM;for(q=I+this.m.t,R[q]+=this.m.am(0,$,R,I,0,this.m.t);R[q]>=R.DV;)R[q]-=R.DV,R[++q]++}R.clamp(),R.drShiftTo(this.m.t,R),R.compareTo(this.m)>=0&&R.subTo(this.m,R)}function we(R,I){R.squareTo(I),this.reduce(I)}function ve(R,I,q){R.multiplyTo(I,q),this.reduce(q)}Y.prototype.convert=ie,Y.prototype.revert=ue,Y.prototype.reduce=Ee,Y.prototype.mulTo=ve,Y.prototype.sqrTo=we;function Be(){return(this.t>0?this[0]&1:this.s)==0}function qe(R,I){if(R>4294967295||R<1)return o.ONE;var q=s(),$=s(),re=I.convert(this),ae=D(R)-1;for(re.copyTo(q);--ae>=0;)if(I.sqrTo(q,$),(R&1<<ae)>0)I.mulTo($,re,q);else{var xe=q;q=$,$=xe}return I.revert(q)}function Re(R,I){var q;return R<256||I.isEven()?q=new l(I):q=new Y(I),this.exp(R,q)}o.prototype.copyTo=g,o.prototype.fromInt=v,o.prototype.fromString=_,o.prototype.clamp=B,o.prototype.dlShiftTo=M,o.prototype.drShiftTo=U,o.prototype.lShiftTo=z,o.prototype.rShiftTo=j,o.prototype.subTo=W,o.prototype.multiplyTo=Q,o.prototype.squareTo=Z,o.prototype.divRemTo=te,o.prototype.invDigit=V,o.prototype.isEven=Be,o.prototype.exp=qe,o.prototype.toString=C,o.prototype.negate=S,o.prototype.abs=k,o.prototype.compareTo=F,o.prototype.bitLength=O,o.prototype.mod=P,o.prototype.modPowInt=Re,o.ZERO=d(0),o.ONE=d(1);function We(){var R=s();return this.copyTo(R),R}function J(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]}function ce(){return this.t==0?this.s:this[0]<<24>>24}function le(){return this.t==0?this.s:this[0]<<16>>16}function me(R){return Math.floor(Math.LN2*this.DB/Math.log(R))}function ge(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1}function Ve(R){if(R==null&&(R=10),this.signum()==0||R<2||R>36)return"0";var I=this.chunkSize(R),q=Math.pow(R,I),$=d(q),re=s(),ae=s(),xe="";for(this.divRemTo($,re,ae);re.signum()>0;)xe=(q+ae.intValue()).toString(R).substr(1)+xe,re.divRemTo($,re,ae);return ae.intValue().toString(R)+xe}function Oe(R,I){this.fromInt(0),I==null&&(I=10);for(var q=this.chunkSize(I),$=Math.pow(I,q),re=!1,ae=0,xe=0,de=0;de<R.length;++de){var Xe=A(R,de);if(Xe<0){R.charAt(de)=="-"&&this.signum()==0&&(re=!0);continue}xe=I*xe+Xe,++ae>=q&&(this.dMultiply($),this.dAddOffset(xe,0),ae=0,xe=0)}ae>0&&(this.dMultiply(Math.pow(I,ae)),this.dAddOffset(xe,0)),re&&o.ZERO.subTo(this,this)}function Te(R,I,q){if(typeof I=="number")if(R<2)this.fromInt(1);else for(this.fromNumber(R,q),this.testBit(R-1)||this.bitwiseTo(o.ONE.shiftLeft(R-1),be,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(I);)this.dAddOffset(2,0),this.bitLength()>R&&this.subTo(o.ONE.shiftLeft(R-1),this);else{var $=new Array,re=R&7;$.length=(R>>3)+1,I.nextBytes($),re>0?$[0]&=(1<<re)-1:$[0]=0,this.fromString($,256)}}function Ae(){var R=this.t,I=new Array;I[0]=this.s;var q=this.DB-R*this.DB%8,$,re=0;if(R-- >0)for(q<this.DB&&($=this[R]>>q)!=(this.s&this.DM)>>q&&(I[re++]=$|this.s<<this.DB-q);R>=0;)q<8?($=(this[R]&(1<<q)-1)<<8-q,$|=this[--R]>>(q+=this.DB-8)):($=this[R]>>(q-=8)&255,q<=0&&(q+=this.DB,--R)),$&128&&($|=-256),re==0&&(this.s&128)!=($&128)&&++re,(re>0||$!=this.s)&&(I[re++]=$);return I}function Ue(R){return this.compareTo(R)==0}function Ge(R){return this.compareTo(R)<0?this:R}function $e(R){return this.compareTo(R)>0?this:R}function ee(R,I,q){var $,re,ae=Math.min(R.t,this.t);for($=0;$<ae;++$)q[$]=I(this[$],R[$]);if(R.t<this.t){for(re=R.s&this.DM,$=ae;$<this.t;++$)q[$]=I(this[$],re);q.t=this.t}else{for(re=this.s&this.DM,$=ae;$<R.t;++$)q[$]=I(re,R[$]);q.t=R.t}q.s=I(this.s,R.s),q.clamp()}function oe(R,I){return R&I}function he(R){var I=s();return this.bitwiseTo(R,oe,I),I}function be(R,I){return R|I}function Ce(R){var I=s();return this.bitwiseTo(R,be,I),I}function He(R,I){return R^I}function Ke(R){var I=s();return this.bitwiseTo(R,He,I),I}function Ye(R,I){return R&~I}function Ze(R){var I=s();return this.bitwiseTo(R,Ye,I),I}function fe(){for(var R=s(),I=0;I<this.t;++I)R[I]=this.DM&~this[I];return R.t=this.t,R.s=~this.s,R}function H(R){var I=s();return R<0?this.rShiftTo(-R,I):this.lShiftTo(R,I),I}function L(R){var I=s();return R<0?this.lShiftTo(-R,I):this.rShiftTo(R,I),I}function K(R){if(R==0)return-1;var I=0;return R&65535||(R>>=16,I+=16),R&255||(R>>=8,I+=8),R&15||(R>>=4,I+=4),R&3||(R>>=2,I+=2),R&1||++I,I}function G(){for(var R=0;R<this.t;++R)if(this[R]!=0)return R*this.DB+K(this[R]);return this.s<0?this.t*this.DB:-1}function se(R){for(var I=0;R!=0;)R&=R-1,++I;return I}function ne(){for(var R=0,I=this.s&this.DM,q=0;q<this.t;++q)R+=se(this[q]^I);return R}function pe(R){var I=Math.floor(R/this.DB);return I>=this.t?this.s!=0:(this[I]&1<<R%this.DB)!=0}function _e(R,I){var q=o.ONE.shiftLeft(R);return this.bitwiseTo(q,I,q),q}function Fe(R){return this.changeBit(R,be)}function Se(R){return this.changeBit(R,Ye)}function Le(R){return this.changeBit(R,He)}function Pe(R,I){for(var q=0,$=0,re=Math.min(R.t,this.t);q<re;)$+=this[q]+R[q],I[q++]=$&this.DM,$>>=this.DB;if(R.t<this.t){for($+=R.s;q<this.t;)$+=this[q],I[q++]=$&this.DM,$>>=this.DB;$+=this.s}else{for($+=this.s;q<R.t;)$+=R[q],I[q++]=$&this.DM,$>>=this.DB;$+=R.s}I.s=$<0?-1:0,$>0?I[q++]=$:$<-1&&(I[q++]=this.DV+$),I.t=q,I.clamp()}function Qe(R){var I=s();return this.addTo(R,I),I}function et(R){var I=s();return this.subTo(R,I),I}function xt(R){var I=s();return this.multiplyTo(R,I),I}function va(){var R=s();return this.squareTo(R),R}function ba(R){var I=s();return this.divRemTo(R,I,null),I}function ya(R){var I=s();return this.divRemTo(R,null,I),I}function ga(R){var I=s(),q=s();return this.divRemTo(R,I,q),new Array(I,q)}function ma(R){this[this.t]=this.am(0,R-1,this,0,0,this.t),++this.t,this.clamp()}function Ea(R,I){if(R!=0){for(;this.t<=I;)this[this.t++]=0;for(this[I]+=R;this[I]>=this.DV;)this[I]-=this.DV,++I>=this.t&&(this[this.t++]=0),++this[I]}}function p0(){}function kn(R){return R}function _a(R,I,q){R.multiplyTo(I,q)}function wa(R,I){R.squareTo(I)}p0.prototype.convert=kn,p0.prototype.revert=kn,p0.prototype.mulTo=_a,p0.prototype.sqrTo=wa;function Ba(R){return this.exp(R,new p0)}function Aa(R,I,q){var $=Math.min(this.t+R.t,I);for(q.s=0,q.t=$;$>0;)q[--$]=0;var re;for(re=q.t-this.t;$<re;++$)q[$+this.t]=this.am(0,R[$],q,$,0,this.t);for(re=Math.min(R.t,I);$<re;++$)this.am(0,R[$],q,$,0,I-$);q.clamp()}function Ca(R,I,q){--I;var $=q.t=this.t+R.t-I;for(q.s=0;--$>=0;)q[$]=0;for($=Math.max(I-this.t,0);$<R.t;++$)q[this.t+$-I]=this.am(I-$,R[$],q,0,0,this.t+$-I);q.clamp(),q.drShiftTo(1,q)}function zt(R){this.r2=s(),this.q3=s(),o.ONE.dlShiftTo(2*R.t,this.r2),this.mu=this.r2.divide(R),this.m=R}function Fa(R){if(R.s<0||R.t>2*this.m.t)return R.mod(this.m);if(R.compareTo(this.m)<0)return R;var I=s();return R.copyTo(I),this.reduce(I),I}function Sa(R){return R}function Da(R){for(R.drShiftTo(this.m.t-1,this.r2),R.t>this.m.t+1&&(R.t=this.m.t+1,R.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);R.compareTo(this.r2)<0;)R.dAddOffset(1,this.m.t+1);for(R.subTo(this.r2,R);R.compareTo(this.m)>=0;)R.subTo(this.m,R)}function Ta(R,I){R.squareTo(I),this.reduce(I)}function ka(R,I,q){R.multiplyTo(I,q),this.reduce(q)}zt.prototype.convert=Fa,zt.prototype.revert=Sa,zt.prototype.reduce=Da,zt.prototype.mulTo=ka,zt.prototype.sqrTo=Ta;function Ra(R,I){var q=R.bitLength(),$,re=d(1),ae;if(q<=0)return re;q<18?$=1:q<48?$=3:q<144?$=4:q<768?$=5:$=6,q<8?ae=new l(I):I.isEven()?ae=new zt(I):ae=new Y(I);var xe=new Array,de=3,Xe=$-1,nt=(1<<$)-1;if(xe[1]=ae.convert(this),$>1){var lt=s();for(ae.sqrTo(xe[1],lt);de<=nt;)xe[de]=s(),ae.mulTo(lt,xe[de-2],xe[de]),de+=2}var dt=R.t-1,Ft,F0=!0,mt=s(),Et;for(q=D(R[dt])-1;dt>=0;){for(q>=Xe?Ft=R[dt]>>q-Xe&nt:(Ft=(R[dt]&(1<<q+1)-1)<<Xe-q,dt>0&&(Ft|=R[dt-1]>>this.DB+q-Xe)),de=$;!(Ft&1);)Ft>>=1,--de;if((q-=de)<0&&(q+=this.DB,--dt),F0)xe[Ft].copyTo(re),F0=!1;else{for(;de>1;)ae.sqrTo(re,mt),ae.sqrTo(mt,re),de-=2;de>0?ae.sqrTo(re,mt):(Et=re,re=mt,mt=Et),ae.mulTo(mt,xe[Ft],re)}for(;dt>=0&&!(R[dt]&1<<q);)ae.sqrTo(re,mt),Et=re,re=mt,mt=Et,--q<0&&(q=this.DB-1,--dt)}return ae.revert(re)}function Ia(R){var I=this.s<0?this.negate():this.clone(),q=R.s<0?R.negate():R.clone();if(I.compareTo(q)<0){var $=I;I=q,q=$}var re=I.getLowestSetBit(),ae=q.getLowestSetBit();if(ae<0)return I;for(re<ae&&(ae=re),ae>0&&(I.rShiftTo(ae,I),q.rShiftTo(ae,q));I.signum()>0;)(re=I.getLowestSetBit())>0&&I.rShiftTo(re,I),(re=q.getLowestSetBit())>0&&q.rShiftTo(re,q),I.compareTo(q)>=0?(I.subTo(q,I),I.rShiftTo(1,I)):(q.subTo(I,q),q.rShiftTo(1,q));return ae>0&&q.lShiftTo(ae,q),q}function Pa(R){if(R<=0)return 0;var I=this.DV%R,q=this.s<0?R-1:0;if(this.t>0)if(I==0)q=this[0]%R;else for(var $=this.t-1;$>=0;--$)q=(I*q+this[$])%R;return q}function Oa(R){var I=R.isEven();if(this.isEven()&&I||R.signum()==0)return o.ZERO;for(var q=R.clone(),$=this.clone(),re=d(1),ae=d(0),xe=d(0),de=d(1);q.signum()!=0;){for(;q.isEven();)q.rShiftTo(1,q),I?((!re.isEven()||!ae.isEven())&&(re.addTo(this,re),ae.subTo(R,ae)),re.rShiftTo(1,re)):ae.isEven()||ae.subTo(R,ae),ae.rShiftTo(1,ae);for(;$.isEven();)$.rShiftTo(1,$),I?((!xe.isEven()||!de.isEven())&&(xe.addTo(this,xe),de.subTo(R,de)),xe.rShiftTo(1,xe)):de.isEven()||de.subTo(R,de),de.rShiftTo(1,de);q.compareTo($)>=0?(q.subTo($,q),I&&re.subTo(xe,re),ae.subTo(de,ae)):($.subTo(q,$),I&&xe.subTo(re,xe),de.subTo(ae,de))}if($.compareTo(o.ONE)!=0)return o.ZERO;if(de.compareTo(R)>=0)return de.subtract(R);if(de.signum()<0)de.addTo(R,de);else return de;return de.signum()<0?de.add(R):de}var ct=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],qa=(1<<26)/ct[ct.length-1];function Ma(R){var I,q=this.abs();if(q.t==1&&q[0]<=ct[ct.length-1]){for(I=0;I<ct.length;++I)if(q[0]==ct[I])return!0;return!1}if(q.isEven())return!1;for(I=1;I<ct.length;){for(var $=ct[I],re=I+1;re<ct.length&&$<qa;)$*=ct[re++];for($=q.modInt($);I<re;)if($%ct[I++]==0)return!1}return q.millerRabin(R)}function Na(R){var I=this.subtract(o.ONE),q=I.getLowestSetBit();if(q<=0)return!1;var $=I.shiftRight(q);R=R+1>>1,R>ct.length&&(R=ct.length);for(var re=s(),ae=0;ae<R;++ae){re.fromInt(ct[Math.floor(Math.random()*ct.length)]);var xe=re.modPow($,this);if(xe.compareTo(o.ONE)!=0&&xe.compareTo(I)!=0){for(var de=1;de++<q&&xe.compareTo(I)!=0;)if(xe=xe.modPowInt(2,this),xe.compareTo(o.ONE)==0)return!1;if(xe.compareTo(I)!=0)return!1}}return!0}o.prototype.chunkSize=me,o.prototype.toRadix=Ve,o.prototype.fromRadix=Oe,o.prototype.fromNumber=Te,o.prototype.bitwiseTo=ee,o.prototype.changeBit=_e,o.prototype.addTo=Pe,o.prototype.dMultiply=ma,o.prototype.dAddOffset=Ea,o.prototype.multiplyLowerTo=Aa,o.prototype.multiplyUpperTo=Ca,o.prototype.modInt=Pa,o.prototype.millerRabin=Na,o.prototype.clone=We,o.prototype.intValue=J,o.prototype.byteValue=ce,o.prototype.shortValue=le,o.prototype.signum=ge,o.prototype.toByteArray=Ae,o.prototype.equals=Ue,o.prototype.min=Ge,o.prototype.max=$e,o.prototype.and=he,o.prototype.or=Ce,o.prototype.xor=Ke,o.prototype.andNot=Ze,o.prototype.not=fe,o.prototype.shiftLeft=H,o.prototype.shiftRight=L,o.prototype.getLowestSetBit=G,o.prototype.bitCount=ne,o.prototype.testBit=pe,o.prototype.setBit=Fe,o.prototype.clearBit=Se,o.prototype.flipBit=Le,o.prototype.add=Qe,o.prototype.subtract=et,o.prototype.multiply=xt,o.prototype.divide=ba,o.prototype.remainder=ya,o.prototype.divideAndRemainder=ga,o.prototype.modPow=Ra,o.prototype.modInverse=Oa,o.prototype.pow=Ba,o.prototype.gcd=Ia,o.prototype.isProbablePrime=Ma,o.prototype.square=va,o.prototype.Barrett=zt;var C0,ut,rt;function Ha(R){ut[rt++]^=R&255,ut[rt++]^=R>>8&255,ut[rt++]^=R>>16&255,ut[rt++]^=R>>24&255,rt>=ir&&(rt-=ir)}function Rn(){Ha(new Date().getTime())}if(ut==null){ut=new Array,rt=0;var gt;if(typeof window!="undefined"&&window.crypto){if(window.crypto.getRandomValues){var In=new Uint8Array(32);for(window.crypto.getRandomValues(In),gt=0;gt<32;++gt)ut[rt++]=In[gt]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var Pn=window.crypto.random(32);for(gt=0;gt<Pn.length;++gt)ut[rt++]=Pn.charCodeAt(gt)&255}}for(;rt<ir;)gt=Math.floor(65536*Math.random()),ut[rt++]=gt>>>8,ut[rt++]=gt&255;rt=0,Rn()}function Ua(){if(C0==null){for(Rn(),C0=Wa(),C0.init(ut),rt=0;rt<ut.length;++rt)ut[rt]=0;rt=0}return C0.next()}function za(R){var I;for(I=0;I<R.length;++I)R[I]=Ua()}function On(){}On.prototype.nextBytes=za;function nr(){this.i=0,this.j=0,this.S=new Array}function ja(R){var I,q,$;for(I=0;I<256;++I)this.S[I]=I;for(q=0,I=0;I<256;++I)q=q+this.S[I]+R[I%R.length]&255,$=this.S[I],this.S[I]=this.S[q],this.S[q]=$;this.i=0,this.j=0}function La(){var R;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,R=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=R,this.S[R+this.S[this.i]&255]}nr.prototype.init=ja,nr.prototype.next=La;function Wa(){return new nr}var ir=256;t.exports={default:o,BigInteger:o,SecureRandom:On}}).call(ke)})(Io);var Q0=Io.exports;const{BigInteger:s0}=Q0;function Yc(t){let n=t.toString(16);if(n[0]!=="-")n.length%2===1?n="0"+n:n.match(/^[0-7]/)||(n="00"+n);else{n=n.substr(1);let e=n.length;e%2===1?e+=1:n.match(/^[0-7]/)||(e+=2);let r="";for(let i=0;i<e;i++)r+="f";r=new s0(r,16),n=r.xor(t).add(s0.ONE),n=n.toString(16).replace(/^-/,"")}return n}class Po{constructor(){this.tlv=null,this.t="00",this.l="00",this.v=""}getEncodedHex(){return this.tlv||(this.v=this.getValue(),this.l=this.getLength(),this.tlv=this.t+this.l+this.v),this.tlv}getLength(){const n=this.v.length/2;let e=n.toString(16);return e.length%2===1&&(e="0"+e),n<128?e:(128+e.length/2).toString(16)+e}getValue(){return""}}class ki extends Po{constructor(n){super(),this.t="02",n&&(this.v=Yc(n))}getValue(){return this.v}}class Zc extends Po{constructor(n){super(),this.t="30",this.asn1Array=n}getValue(){return this.v=this.asn1Array.map(n=>n.getEncodedHex()).join(""),this.v}}function Oo(t,n){return+t[n+2]<8?1:+t.substr(n+2,2)&128}function Ri(t,n){const e=Oo(t,n),r=t.substr(n+2,e*2);return r?(+r[0]<8?new s0(r,16):new s0(r.substr(2),16)).intValue():-1}function $r(t,n){const e=Oo(t,n);return n+(e+1)*2}var Qc={encodeDer(t,n){const e=new ki(t),r=new ki(n);return new Zc([e,r]).getEncodedHex()},decodeDer(t){const n=$r(t,0),e=$r(t,n),r=Ri(t,n),i=t.substr(e,r*2),o=e+i.length,s=$r(t,o),c=Ri(t,o),h=t.substr(s,c*2),a=new s0(i,16),f=new s0(h,16);return{r:a,s:f}}};const{BigInteger:ft}=Q0,Ii=new ft("2"),Pi=new ft("3");class It{constructor(n,e){this.x=e,this.q=n}equals(n){return n===this?!0:this.q.equals(n.q)&&this.x.equals(n.x)}toBigInteger(){return this.x}negate(){return new It(this.q,this.x.negate().mod(this.q))}add(n){return new It(this.q,this.x.add(n.toBigInteger()).mod(this.q))}subtract(n){return new It(this.q,this.x.subtract(n.toBigInteger()).mod(this.q))}multiply(n){return new It(this.q,this.x.multiply(n.toBigInteger()).mod(this.q))}divide(n){return new It(this.q,this.x.multiply(n.toBigInteger().modInverse(this.q)).mod(this.q))}square(){return new It(this.q,this.x.square().mod(this.q))}}class Wt{constructor(n,e,r,i){this.curve=n,this.x=e,this.y=r,this.z=i==null?ft.ONE:i,this.zinv=null}getX(){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))}getY(){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))}equals(n){return n===this?!0:this.isInfinity()?n.isInfinity():n.isInfinity()?this.isInfinity():n.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(n.z)).mod(this.curve.q).equals(ft.ZERO)?n.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(n.z)).mod(this.curve.q).equals(ft.ZERO):!1}isInfinity(){return this.x===null&&this.y===null?!0:this.z.equals(ft.ZERO)&&!this.y.toBigInteger().equals(ft.ZERO)}negate(){return new Wt(this.curve,this.x,this.y.negate(),this.z)}add(n){if(this.isInfinity())return n;if(n.isInfinity())return this;const e=this.x.toBigInteger(),r=this.y.toBigInteger(),i=this.z,o=n.x.toBigInteger(),s=n.y.toBigInteger(),c=n.z,h=this.curve.q,a=e.multiply(c).mod(h),f=o.multiply(i).mod(h),p=a.subtract(f),x=r.multiply(c).mod(h),u=s.multiply(i).mod(h),b=x.subtract(u);if(ft.ZERO.equals(p))return ft.ZERO.equals(b)?this.twice():this.curve.infinity;const m=a.add(f),E=i.multiply(c).mod(h),A=p.square().mod(h),g=p.multiply(A).mod(h),v=E.multiply(b.square()).subtract(m.multiply(A)).mod(h),d=p.multiply(v).mod(h),_=b.multiply(A.multiply(a).subtract(v)).subtract(x.multiply(g)).mod(h),B=g.multiply(E).mod(h);return new Wt(this.curve,this.curve.fromBigInteger(d),this.curve.fromBigInteger(_),B)}twice(){if(this.isInfinity())return this;if(!this.y.toBigInteger().signum())return this.curve.infinity;const n=this.x.toBigInteger(),e=this.y.toBigInteger(),r=this.z,i=this.curve.q,o=this.curve.a.toBigInteger(),s=n.square().multiply(Pi).add(o.multiply(r.square())).mod(i),c=e.shiftLeft(1).multiply(r).mod(i),h=e.square().mod(i),a=h.multiply(n).multiply(r).mod(i),f=c.square().mod(i),p=s.square().subtract(a.shiftLeft(3)).mod(i),x=c.multiply(p).mod(i),u=s.multiply(a.shiftLeft(2).subtract(p)).subtract(f.shiftLeft(1).multiply(h)).mod(i),b=c.multiply(f).mod(i);return new Wt(this.curve,this.curve.fromBigInteger(x),this.curve.fromBigInteger(u),b)}multiply(n){if(this.isInfinity())return this;if(!n.signum())return this.curve.infinity;const e=n.multiply(Pi),r=this.negate();let i=this;for(let o=e.bitLength()-2;o>0;o--){i=i.twice();const s=e.testBit(o),c=n.testBit(o);s!==c&&(i=i.add(s?this:r))}return i}}let Jc=class{constructor(n,e,r){this.q=n,this.a=this.fromBigInteger(e),this.b=this.fromBigInteger(r),this.infinity=new Wt(this,null,null)}equals(n){return n===this?!0:this.q.equals(n.q)&&this.a.equals(n.a)&&this.b.equals(n.b)}fromBigInteger(n){return new It(this.q,n)}decodePointHex(n){switch(parseInt(n.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:const e=this.fromBigInteger(new ft(n.substr(2),16));let r=this.fromBigInteger(e.multiply(e.square()).add(e.multiply(this.a)).add(this.b).toBigInteger().modPow(this.q.divide(new ft("4")).add(ft.ONE),this.q));return r.toBigInteger().mod(Ii).equals(new ft(n.substr(0,2),16).subtract(Ii))||(r=r.negate()),new Wt(this,e,r);case 4:case 6:case 7:const i=(n.length-2)/2,o=n.substr(2,i),s=n.substr(i+2,i);return new Wt(this,this.fromBigInteger(new ft(o,16)),this.fromBigInteger(new ft(s,16)));default:return null}}};var ef={ECCurveFp:Jc};const{BigInteger:Bt,SecureRandom:tf}=Q0,{ECCurveFp:rf}=ef,nf=new tf,{curve:r0,G:of,n:Oi}=qo();function af(){return r0}function qo(){const t=new Bt("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF",16),n=new Bt("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC",16),e=new Bt("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93",16),r=new rf(t,n,e),s=r.decodePointHex("04"+"32C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7"+"BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0"),c=new Bt("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123",16);return{curve:r,G:s,n:c}}function sf(t,n,e){const i=(t?new Bt(t,n,e):new Bt(Oi.bitLength(),nf)).mod(Oi.subtract(Bt.ONE)).add(Bt.ONE),o=y0(i.toString(16),64),s=of.multiply(i),c=y0(s.getX().toBigInteger().toString(16),64),h=y0(s.getY().toBigInteger().toString(16),64),a="04"+c+h;return{privateKey:o,publicKey:a}}function cf(t){if(t.length!==130)throw new Error("Invalid public key to compress");const n=(t.length-2)/2,e=t.substr(2,n),r=new Bt(t.substr(n+2,n),16);let i="03";return r.mod(new Bt("2")).equals(Bt.ZERO)&&(i="02"),i+e}function ff(t){t=unescape(encodeURIComponent(t));const n=t.length,e=[];for(let i=0;i<n;i++)e[i>>>2]|=(t.charCodeAt(i)&255)<<24-i%4*8;const r=[];for(let i=0;i<n;i++){const o=e[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((o&15).toString(16))}return r.join("")}function y0(t,n){return t.length>=n?t:new Array(n-t.length+1).join("0")+t}function xf(t){return t.map(n=>(n=n.toString(16),n.length===1?"0"+n:n)).join("")}function uf(t){const n=[];let e=0;for(let r=0;r<t.length*2;r+=2)n[r>>>3]|=parseInt(t[e],10)<<24-r%8*4,e++;try{const r=[];for(let i=0;i<t.length;i++){const o=n[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return decodeURIComponent(escape(r.join("")))}catch(r){throw new Error("Malformed UTF-8 data")}}function df(t){const n=[];let e=t.length;e%2!==0&&(t=y0(t,e+1)),e=t.length;for(let r=0;r<e;r+=2)n.push(parseInt(t.substr(r,2),16));return n}function hf(t){const n=r0.decodePointHex(t);if(!n)return!1;const e=n.getX();return n.getY().square().equals(e.multiply(e.square()).add(e.multiply(r0.a)).add(r0.b))}function lf(t,n){const e=r0.decodePointHex(t);if(!e)return!1;const r=r0.decodePointHex(n);return r?e.equals(r):!1}var pf={getGlobalCurve:af,generateEcparam:qo,generateKeyPairHex:sf,compressPublicKeyHex:cf,utf8ToHex:ff,leftPad:y0,arrayToHex:xf,arrayToUtf8:uf,hexToArray:df,verifyPublicKey:hf,comparePublicKeyHex:lf};const _t=new Uint32Array(68),Kr=new Uint32Array(64);function pt(t,n){const e=n&31;return t<<e|t>>>32-e}function qi(t,n){const e=[];for(let r=t.length-1;r>=0;r--)e[r]=(t[r]^n[r])&255;return e}function vf(t){return t^pt(t,9)^pt(t,17)}function bf(t){return t^pt(t,15)^pt(t,23)}function z0(t){let n=t.length*8,e=n%512;e=e>=448?512-e%448-1:448-e-1;const r=new Array((e-7)/8),i=new Array(8);for(let f=0,p=r.length;f<p;f++)r[f]=0;for(let f=0,p=i.length;f<p;f++)i[f]=0;n=n.toString(2);for(let f=7;f>=0;f--)if(n.length>8){const p=n.length-8;i[f]=parseInt(n.substr(p),2),n=n.substr(0,p)}else n.length>0&&(i[f]=parseInt(n,2),n="");const o=new Uint8Array([...t,128,...r,...i]),s=new DataView(o.buffer,0),c=o.length/64,h=new Uint32Array([1937774191,1226093241,388252375,3666478592,2842636476,372324522,3817729613,2969243214]);for(let f=0;f<c;f++){_t.fill(0),Kr.fill(0);const p=16*f;for(let D=0;D<16;D++)_t[D]=s.getUint32((p+D)*4,!1);for(let D=16;D<68;D++)_t[D]=bf(_t[D-16]^_t[D-9]^pt(_t[D-3],15))^pt(_t[D-13],7)^_t[D-6];for(let D=0;D<64;D++)Kr[D]=_t[D]^_t[D+4];const x=2043430169,u=2055708042;let b=h[0],m=h[1],E=h[2],A=h[3],g=h[4],v=h[5],d=h[6],_=h[7],B,C,S,k,F;for(let D=0;D<64;D++)F=D>=0&&D<=15?x:u,B=pt(pt(b,12)+g+pt(F,D),7),C=B^pt(b,12),S=(D>=0&&D<=15?b^m^E:b&m|b&E|m&E)+A+C+Kr[D],k=(D>=0&&D<=15?g^v^d:g&v|~g&d)+_+B+_t[D],A=E,E=pt(m,9),m=b,b=S,_=d,d=pt(v,19),v=g,g=vf(k);h[0]^=b,h[1]^=m,h[2]^=E,h[3]^=A,h[4]^=g,h[5]^=v,h[6]^=d,h[7]^=_}const a=[];for(let f=0,p=h.length;f<p;f++){const x=h[f];a.push((x&4278190080)>>>24,(x&16711680)>>>16,(x&65280)>>>8,x&255)}return a}const m0=64,Mo=new Uint8Array(m0),No=new Uint8Array(m0);for(let t=0;t<m0;t++)Mo[t]=54,No[t]=92;function yf(t,n){for(n.length>m0&&(n=z0(n));n.length<m0;)n.push(0);const e=qi(n,Mo),r=qi(n,No),i=z0([...e,...t]);return z0([...r,...i])}var Ho={sm3:z0,hmac:yf};const{BigInteger:ht}=Q0,{encodeDer:gf,decodeDer:mf}=Qc,Ie=pf,c0=Ho.sm3,{G:Lt,curve:Uo,n:Qt}=Ie.generateEcparam(),zo=0;function Ef(t,n,e=1){t=typeof t=="string"?Ie.hexToArray(Ie.utf8ToHex(t)):Array.prototype.slice.call(t),n=Ie.getGlobalCurve().decodePointHex(n);const r=Ie.generateKeyPairHex(),i=new ht(r.privateKey,16);let o=r.publicKey;o.length>128&&(o=o.substr(o.length-128));const s=n.multiply(i),c=Ie.hexToArray(Ie.leftPad(s.getX().toBigInteger().toRadix(16),64)),h=Ie.hexToArray(Ie.leftPad(s.getY().toBigInteger().toRadix(16),64)),a=Ie.arrayToHex(c0([].concat(c,t,h)));let f=1,p=0,x=[];const u=[].concat(c,h),b=()=>{x=c0([...u,f>>24&255,f>>16&255,f>>8&255,f&255]),f++,p=0};b();for(let E=0,A=t.length;E<A;E++)p===x.length&&b(),t[E]^=x[p++]&255;const m=Ie.arrayToHex(t);return e===zo?o+m+a:o+a+m}function _f(t,n,e=1,{output:r="string"}={}){n=new ht(n,16);let i=t.substr(128,64),o=t.substr(192);e===zo&&(i=t.substr(t.length-64),o=t.substr(128,t.length-128-64));const s=Ie.hexToArray(o),h=Ie.getGlobalCurve().decodePointHex("04"+t.substr(0,128)).multiply(n),a=Ie.hexToArray(Ie.leftPad(h.getX().toBigInteger().toRadix(16),64)),f=Ie.hexToArray(Ie.leftPad(h.getY().toBigInteger().toRadix(16),64));let p=1,x=0,u=[];const b=[].concat(a,f),m=()=>{u=c0([...b,p>>24&255,p>>16&255,p>>8&255,p&255]),p++,x=0};m();for(let A=0,g=s.length;A<g;A++)x===u.length&&m(),s[A]^=u[x++]&255;return Ie.arrayToHex(c0([].concat(a,s,f)))===i.toLowerCase()?r==="array"?s:Ie.arrayToUtf8(s):r==="array"?[]:""}function wf(t,n,{pointPool:e,der:r,hash:i,publicKey:o,userId:s}={}){let c=typeof t=="string"?Ie.utf8ToHex(t):Ie.arrayToHex(t);i&&(o=o||Lo(n),c=jo(c,o,s));const h=new ht(n,16),a=new ht(c,16);let f=null,p=null,x=null;do{do{let u;e&&e.length?u=e.pop():u=Wo(),f=u.k,p=a.add(u.x1).mod(Qt)}while(p.equals(ht.ZERO)||p.add(f).equals(Qt));x=h.add(ht.ONE).modInverse(Qt).multiply(f.subtract(p.multiply(h))).mod(Qt)}while(x.equals(ht.ZERO));return r?gf(p,x):Ie.leftPad(p.toString(16),64)+Ie.leftPad(x.toString(16),64)}function Bf(t,n,e,{der:r,hash:i,userId:o}={}){let s=typeof t=="string"?Ie.utf8ToHex(t):Ie.arrayToHex(t);i&&(s=jo(s,e,o));let c,h;if(r){const b=mf(n);c=b.r,h=b.s}else c=new ht(n.substring(0,64),16),h=new ht(n.substring(64),16);const a=Uo.decodePointHex(e),f=new ht(s,16),p=c.add(h).mod(Qt);if(p.equals(ht.ZERO))return!1;const x=Lt.multiply(h).add(a.multiply(p)),u=f.add(x.getX().toBigInteger()).mod(Qt);return c.equals(u)}function jo(t,n,e="1234567812345678"){e=Ie.utf8ToHex(e);const r=Ie.leftPad(Lt.curve.a.toBigInteger().toRadix(16),64),i=Ie.leftPad(Lt.curve.b.toBigInteger().toRadix(16),64),o=Ie.leftPad(Lt.getX().toBigInteger().toRadix(16),64),s=Ie.leftPad(Lt.getY().toBigInteger().toRadix(16),64);let c,h;if(n.length===128)c=n.substr(0,64),h=n.substr(64,64);else{const x=Lt.curve.decodePointHex(n);c=Ie.leftPad(x.getX().toBigInteger().toRadix(16),64),h=Ie.leftPad(x.getY().toBigInteger().toRadix(16),64)}const a=Ie.hexToArray(e+r+i+o+s+c+h),f=e.length*4;a.unshift(f&255),a.unshift(f>>8&255);const p=c0(a);return Ie.arrayToHex(c0(p.concat(Ie.hexToArray(t))))}function Lo(t){const n=Lt.multiply(new ht(t,16)),e=Ie.leftPad(n.getX().toBigInteger().toString(16),64),r=Ie.leftPad(n.getY().toBigInteger().toString(16),64);return"04"+e+r}function Wo(){const t=Ie.generateKeyPairHex(),n=Uo.decodePointHex(t.publicKey);return t.k=new ht(t.privateKey,16),t.x1=n.getX().toBigInteger(),t}var Af={generateKeyPairHex:Ie.generateKeyPairHex,compressPublicKeyHex:Ie.compressPublicKeyHex,comparePublicKeyHex:Ie.comparePublicKeyHex,doEncrypt:Ef,doDecrypt:_f,doSignature:wf,doVerifySignature:Bf,getPublicKeyFromPrivateKey:Lo,getPoint:Wo,verifyPublicKey:Ie.verifyPublicKey};const{sm3:Cf,hmac:Ff}=Ho;function Sf(t,n){return t.length>=n?t:new Array(n-t.length+1).join("0")+t}function Mi(t){return t.map(n=>(n=n.toString(16),n.length===1?"0"+n:n)).join("")}function Df(t){const n=[];let e=t.length;e%2!==0&&(t=Sf(t,e+1)),e=t.length;for(let r=0;r<e;r+=2)n.push(parseInt(t.substr(r,2),16));return n}function Tf(t){const n=[];for(let e=0,r=t.length;e<r;e++){const i=t.codePointAt(e);if(i<=127)n.push(i);else if(i<=2047)n.push(192|i>>>6),n.push(128|i&63);else if(i<=55295||i>=57344&&i<=65535)n.push(224|i>>>12),n.push(128|i>>>6&63),n.push(128|i&63);else if(i>=65536&&i<=1114111)e++,n.push(240|i>>>18&28),n.push(128|i>>>12&63),n.push(128|i>>>6&63),n.push(128|i&63);else throw n.push(i),new Error("input is not supported")}return n}var kf=function(t,n){if(t=typeof t=="string"?Tf(t):Array.prototype.slice.call(t),n){if((n.mode||"hmac")!=="hmac")throw new Error("invalid mode");let r=n.key;if(!r)throw new Error("invalid key");return r=typeof r=="string"?Df(r):Array.prototype.slice.call(r),Mi(Ff(t,r))}return Mi(Cf(t))};const Rt=0,Rf=32,jt=16,R0=[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],I0=[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 Vr(t){const n=[];for(let e=0,r=t.length;e<r;e+=2)n.push(parseInt(t.substr(e,2),16));return n}function If(t){return t.map(n=>(n=n.toString(16),n.length===1?"0"+n:n)).join("")}function Pf(t){const n=[];for(let e=0,r=t.length;e<r;e++){const i=t.codePointAt(e);if(i<=127)n.push(i);else if(i<=2047)n.push(192|i>>>6),n.push(128|i&63);else if(i<=55295||i>=57344&&i<=65535)n.push(224|i>>>12),n.push(128|i>>>6&63),n.push(128|i&63);else if(i>=65536&&i<=1114111)e++,n.push(240|i>>>18&28),n.push(128|i>>>12&63),n.push(128|i>>>6&63),n.push(128|i&63);else throw n.push(i),new Error("input is not supported")}return n}function Of(t){const n=[];for(let e=0,r=t.length;e<r;e++)t[e]>=240&&t[e]<=247?(n.push(String.fromCodePoint(((t[e]&7)<<18)+((t[e+1]&63)<<12)+((t[e+2]&63)<<6)+(t[e+3]&63))),e+=3):t[e]>=224&&t[e]<=239?(n.push(String.fromCodePoint(((t[e]&15)<<12)+((t[e+1]&63)<<6)+(t[e+2]&63))),e+=2):t[e]>=192&&t[e]<=223?(n.push(String.fromCodePoint(((t[e]&31)<<6)+(t[e+1]&63))),e++):n.push(String.fromCodePoint(t[e]));return n.join("")}function Jt(t,n){const e=n&31;return t<<e|t>>>32-e}function qt(t){return(R0[t>>>24&255]&255)<<24|(R0[t>>>16&255]&255)<<16|(R0[t>>>8&255]&255)<<8|R0[t&255]&255}function P0(t){return t^Jt(t,2)^Jt(t,10)^Jt(t,18)^Jt(t,24)}function O0(t){return t^Jt(t,13)^Jt(t,23)}function qf(t,n,e){const r=new Array(4),i=new Array(4);for(let o=0;o<4;o++)i[0]=t[4*o]&255,i[1]=t[4*o+1]&255,i[2]=t[4*o+2]&255,i[3]=t[4*o+3]&255,r[o]=i[0]<<24|i[1]<<16|i[2]<<8|i[3];for(let o=0,s;o<32;o+=4)s=r[1]^r[2]^r[3]^e[o+0],r[0]^=P0(qt(s)),s=r[2]^r[3]^r[0]^e[o+1],r[1]^=P0(qt(s)),s=r[3]^r[0]^r[1]^e[o+2],r[2]^=P0(qt(s)),s=r[0]^r[1]^r[2]^e[o+3],r[3]^=P0(qt(s));for(let o=0;o<16;o+=4)n[o]=r[3-o/4]>>>24&255,n[o+1]=r[3-o/4]>>>16&255,n[o+2]=r[3-o/4]>>>8&255,n[o+3]=r[3-o/4]&255}function Mf(t,n,e){const r=new Array(4),i=new Array(4);for(let o=0;o<4;o++)i[0]=t[0+4*o]&255,i[1]=t[1+4*o]&255,i[2]=t[2+4*o]&255,i[3]=t[3+4*o]&255,r[o]=i[0]<<24|i[1]<<16|i[2]<<8|i[3];r[0]^=2746333894,r[1]^=1453994832,r[2]^=1736282519,r[3]^=2993693404;for(let o=0,s;o<32;o+=4)s=r[1]^r[2]^r[3]^I0[o+0],n[o+0]=r[0]^=O0(qt(s)),s=r[2]^r[3]^r[0]^I0[o+1],n[o+1]=r[1]^=O0(qt(s)),s=r[3]^r[0]^r[1]^I0[o+2],n[o+2]=r[2]^=O0(qt(s)),s=r[0]^r[1]^r[2]^I0[o+3],n[o+3]=r[3]^=O0(qt(s));if(e===Rt)for(let o=0,s;o<16;o++)s=n[o],n[o]=n[31-o],n[31-o]=s}function Ni(t,n,e,{padding:r="pkcs#7",mode:i,iv:o=[],output:s="string"}={}){if(i==="cbc"&&(typeof o=="string"&&(o=Vr(o)),o.length!==128/8))throw new Error("iv is invalid");if(typeof n=="string"&&(n=Vr(n)),n.length!==128/8)throw new Error("key is invalid");if(typeof t=="string"?e!==Rt?t=Pf(t):t=Vr(t):t=[...t],(r==="pkcs#5"||r==="pkcs#7")&&e!==Rt){const x=jt-t.length%jt;for(let u=0;u<x;u++)t.push(x)}const c=new Array(Rf);Mf(n,c,e);const h=[];let a=o,f=t.length,p=0;for(;f>=jt;){const x=t.slice(p,p+16),u=new Array(16);if(i==="cbc")for(let b=0;b<jt;b++)e!==Rt&&(x[b]^=a[b]);qf(x,u,c);for(let b=0;b<jt;b++)i==="cbc"&&e===Rt&&(u[b]^=a[b]),h[p+b]=u[b];i==="cbc"&&(e!==Rt?a=u:a=x),f-=jt,p+=jt}if((r==="pkcs#5"||r==="pkcs#7")&&e===Rt){const x=h.length,u=h[x-1];for(let b=1;b<=u;b++)if(h[x-b]!==u)throw new Error("padding is invalid");h.splice(x-u,u)}return s!=="array"?e!==Rt?If(h):Of(h):h}var Nf={encrypt(t,n,e){return Ni(t,n,1,e)},decrypt(t,n,e){return Ni(t,n,0,e)}},Hi={sm2:Af,sm3:kf,sm4:Nf};const Hf=["appId","signatureMethod","signatureNonce","timestamp","viewerToken","sign","encryptResponseType"],Uf=Dt("MDQ1QjgxNTVFOTc0N0MyODNBQ0Y4NDI4OTVEMzA0OEU2Q0E5NDNDQzQ1NEFGQTZBOUE0NTJCNTkwM0NDMzBGQ0UyNzhBNkY4OEY2MDJFREY4MDNEQUI0MEJENDVFMzVGNjYwNjc2QkY2OEZEN0NDQkUwRjZBRDMyMzg4MTM2Q0QwRA=="),zf=Dt("MDBCMzE5NjE4QjRCMUJBRUI4Q0M2NzY1RDg5MDNDMDVBMEIxNkQ5RDlGQ0QxNjMyNzFCQjZGMUI4OEY2NTdBMjhF");var K0;(function(t){t[t.C1C3C2=1]="C1C3C2",t[t.C1C2C3=0]="C1C2C3"})(K0||(K0={}));function Ui(t,n){const e=/^04/.test(t);return e&&!n?t.substring(2):!e&&n?`04${t}`:t}class jf{constructor(n){ye(this,"__platformPublicKey");ye(this,"__userPrivateKey");ye(this,"__ignoreEncryptFields");ye(this,"__useSM2");ye(this,"__encryptPostSM2");var e,r;this.__platformPublicKey=n.platformPublicKey,this.__userPrivateKey=n.userPrivateKey,this.__ignoreEncryptFields=[...Hf],n.includeIgnoreEncryptFields&&this.__ignoreEncryptFields.push(...n.includeIgnoreEncryptFields),this.__useSM2=(e=n.useSM2)!=null?e:!0,this.__encryptPostSM2=(r=n.encryptPostSM2)!=null?r:!0}usePlugin(n){const{useSM2:e=this.__useSM2}=n;return e}interceptIncludeParams(){return{encryptResponseType:2}}interceptEncryptRequest(n){const e=this.__handleParams(n),r=this.__handleData(n),i=this.__handleHeaders(n);return St(ze({},n),{params:e,data:r,headers:i})}interceptDecryptResponse(n,e){const r=n.data;if(!r.encryption||typeof r.data!="string")return n;const i=r.data;return r.data=this.__decryptTextSM2(i,e),n}__handleHeaders(n){var i;const e=n.headers||{},{encryptPostSM2:r=this.__encryptPostSM2}=n;return((i=n.method)==null?void 0:i.toLocaleUpperCase())==="POST"&&r&&(e["x-e-type"]=2),e}__handleParams(n){var i;const{encryptPostSM2:e=this.__encryptPostSM2}=n,r=n.params||{};return((i=n.method)==null?void 0:i.toLocaleUpperCase())!=="POST"||!e?r:this.__encryptObjectSM2(r,n,"xurlparam")}__handleData(n){var o;const e=n.data||{};if(((o=n.method)==null?void 0:o.toLocaleUpperCase())!=="POST")return e;let r=e;const{encryptPostSM2:i=this.__encryptPostSM2}=n;return i&&(typeof e=="string"?r=this.__encryptTextSM2(e,n):n.requestType==="json"?r=this.__encryptTextSM2(JSON.stringify(n.data||{}),n):r=this.__encryptObjectSM2(e,n,"xparam")),r}__encryptObjectSM2(n,e,r){const i=Object.keys(n);if(i.length===0)return n;const o={},s={};i.forEach(h=>{this.__ignoreEncryptFields.includes(h)?o[h]=n[h]:s[h]=n[h]});const c=ze({},o);if(Object.keys(s).length){const h=this.__encryptTextSM2(JSON.stringify(s),e);c[r]=h}return c}__encryptTextSM2(n,e){const r=this.__getPublicKey(e);return Ui(Hi.sm2.doEncrypt(n,r,K0.C1C2C3),!0)}__decryptTextSM2(n,e){const r=this.__getPrivateKey(e);let i="";try{i=Hi.sm2.doDecrypt(Ui(n,!1),r,K0.C1C2C3)}catch(s){console.error("decryptTextSM2 decrypt error",s,{encryptedText:n})}let o=i;try{o=JSON.parse(o)}catch(s){}return o}__getPrivateKey(n){return"appId"in(n.params||{})?this.__userPrivateKey:zf}__getPublicKey(n){return"appId"in(n.params||{})?this.__platformPublicKey:Uf}}class Lf extends oo{constructor(n){var o,s,c,h;const e=[],{authorizeMethod:r=b0.Token}=n.config;r===b0.Token&&e.push(new ao({getTokenInfo:()=>De(this,null,function*(){const{getChannelToken:a,getViewerToken:f}=n.config;let p;if(a){const x=yield a();if(!x)return;p=x.channelToken}if(f){const x=yield f();if(!x)return;p=x.viewerToken}if(p)return{token:p}})})),r===b0.Sign&&e.push(new Lc({appId:(o=n.config.appSignSecretKey)==null?void 0:o.appId,appSecret:(s=n.config.appSignSecretKey)==null?void 0:s.appSecret,signatureNonce:n.config.signatureNonce,signatureMethod:n.config.signatureMethod,getAppSign:n.config.getAppSign}));const i=n.config.securityMode;i===a0.AES&&e.push(new Gc({appId:(c=n.config.appSignSecretKey)==null?void 0:c.appId,appSecret:(h=n.config.appSignSecretKey)==null?void 0:h.appSecret})),i===a0.SM2&&n.config.sm2Key&&e.push(new jf({platformPublicKey:n.config.sm2Key.platformPublicKey,userPrivateKey:n.config.sm2Key.userPrivateKey})),super({baseUrl:io(yn(n.config.domainInfo).polyvApiDomain,"https"),requestPlugins:[...e,new Ac({getBusinessData:()=>De(this,null,function*(){const a=n.getUserInfo();return{channelId:(yield n.channel.getChannelInfo()).channelId,viewerId:a.userId,unionId:a.unionId}})}),new Fo({decryptKeys:{sign:"polyvInteractSdk",iv:"1111000011101101"}}),new so({successCode:200})]}),this._plvSocket=n}getTokenFieldByUserType(){return De(this,null,function*(){const n=this._plvSocket.getUserInfo();let e="viewerToken";return this._plvSocket.isSpecialUserType(n.userType)&&(e="channelToken"),e})}}var vt=(t=>(t.ConnectSuccess="ConnectSuccess",t.ReconnectSuccess="ReconnectSuccess",t.ConnectFailed="ConnectFailed",t.Disconnect="Disconnect",t.LoginSuccess="LoginSuccess",t.LoginFailed="LoginFailed",t.SessionUpdate="SessionUpdate",t))(vt||{});class gn{constructor(n){this._plvSocket=n}setup(n){return De(this,null,function*(){})}}const Wf="polyv-socket";class $f extends gn{constructor(e){var r;super(e);ye(this,"__channelId");ye(this,"__sessionId");ye(this,"__accountId");ye(this,"__inTargetSession",!1);ye(this,"__teacherInfo");ye(this,"__onTeacherInfo",e=>{this.__teacherInfo||(this.__teacherInfo={userId:e.data.userId,nick:e.data.nick,pic:e.data.pic,actor:e.data.actor})});this.__channelId=e.config.channelInfo.channelId,this.__sessionId=e.config.channelInfo.sessionId,this.__inTargetSession=(r=e.config.channelInfo.inTargetSession)!=null?r:!1,this.__accountId=e.config.channelInfo.accountId,e.config.teacherInfo&&(this.__teacherInfo=e.config.teacherInfo),e.addSocketHandles(Wf,{O_TEACHER_INFO:this.__onTeacherInfo})}getTeacherInfo(){return this.__teacherInfo}getChannelInfo(){return Promise.resolve({channelId:this.__channelId,sessionId:this.__sessionId,inTargetSession:this.__inTargetSession,accountId:this.__accountId})}updateSession(e){typeof e.sessionId=="string"&&(this.__sessionId=e.sessionId),typeof e.inTargetSession=="boolean"&&(this.__inTargetSession=e.inTargetSession),this._plvSocket.eventEmitter.emit(vt.SessionUpdate,{})}}const Kf=Object.prototype.hasOwnProperty;function zi(t,n){return Kf.call(t,n)}function Vf(){return zi(window,"WebSocket")||zi(window,"MozWebSocket")}const $o=["message","product","lottery","questionnaire","coupon","activityLottery","testQuestion","emotion","speak","customMessage","motivation","fakeLikes"];class Xf{constructor(){ye(this,"__defaultEventKey","DEFAULT_EVENT");ye(this,"__allEventKey","ALL_EVENT");ye(this,"__appSocketEventStore",{});ye(this,"__socketListens",{});for(const n of $o)this.__socketListens[n]=this.__createSocketHandle(n)}__createSocketHandle(n){return e=>{try{if(e instanceof ArrayBuffer)return;const r=JSON.parse(e);if(r){const i=s=>{for(const c in this.__appSocketEventStore){const h=`${n}.${s}`;c.includes(h)&&this.__appSocketEventStore[c].forEach(f=>{f(r)})}},o=r.EVENT||this.__defaultEventKey;i(o),i(this.__allEventKey)}}catch(r){console.warn(r)}}}listenSocketEvent(n){return De(this,null,function*(){for(const e in this.__socketListens){const r=this.__socketListens[e];if(!r)return;n.on(e,r)}})}addSocketHandles(n,e,r){const i=(o,s)=>{const c=`${n}.${r}.${o}`;this.__appSocketEventStore[c]||(this.__appSocketEventStore[c]=[]),this.__appSocketEventStore[c].push(s)};if(typeof e=="function"){i(this.__allEventKey,e);return}for(const o in e)i(o,e[o])}clearSocketHandles(n){for(const e in this.__appSocketEventStore){const[r]=e.split(".");r===n&&delete this.__appSocketEventStore[e]}}}var At=(t=>(t.Student="student",t.Slice="slice",t.Viewer="viewer",t.Teacher="teacher",t.Assistant="assistant",t.Manager="manager",t.Guest="guest",t.UserTagsMonitor="userTagsMonitor",t.Attendee="attendee",t.Listener="listener",t.Host="host",t.Dummy="dummy",t))(At||{}),n0=(t=>(t.TokenExpired="TokenExpired",t.SocketConnectError="SocketConnectError",t.SocketConnectTimeout="SocketConnectTimeout",t))(n0||{}),nn={exports:{}},Gf=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Yf=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],Ko=function(n){var e=n,r=n.indexOf("["),i=n.indexOf("]");r!=-1&&i!=-1&&(n=n.substring(0,r)+n.substring(r,i).replace(/:/g,";")+n.substring(i,n.length));for(var o=Gf.exec(n||""),s={},c=14;c--;)s[Yf[c]]=o[c]||"";return r!=-1&&i!=-1&&(s.source=e,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=Zf(s,s.path),s.queryKey=Qf(s,s.query),s};function Zf(t,n){var e=/\/{2,9}/g,r=n.replace(e,"/").split("/");return(n.substr(0,1)=="/"||n.length===0)&&r.splice(0,1),n.substr(n.length-1,1)=="/"&&r.splice(r.length-1,1),r}function Qf(t,n){var e={};return n.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,o){i&&(e[i]=o)}),e}var on={exports:{}},an={exports:{}},E0=1e3,_0=E0*60,w0=_0*60,B0=w0*24,Jf=B0*365.25,ex=function(t,n){n=n||{};var e=typeof t;if(e==="string"&&t.length>0)return tx(t);if(e==="number"&&isNaN(t)===!1)return n.long?nx(t):rx(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function tx(t){if(t=String(t),!(t.length>100)){var n=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(n){var e=parseFloat(n[1]),r=(n[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return e*Jf;case"days":case"day":case"d":return e*B0;case"hours":case"hour":case"hrs":case"hr":case"h":return e*w0;case"minutes":case"minute":case"mins":case"min":case"m":return e*_0;case"seconds":case"second":case"secs":case"sec":case"s":return e*E0;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return e;default:return}}}}function rx(t){return t>=B0?Math.round(t/B0)+"d":t>=w0?Math.round(t/w0)+"h":t>=_0?Math.round(t/_0)+"m":t>=E0?Math.round(t/E0)+"s":t+"ms"}function nx(t){return q0(t,B0,"day")||q0(t,w0,"hour")||q0(t,_0,"minute")||q0(t,E0,"second")||t+" ms"}function q0(t,n,e){if(!(t<n))return t<n*1.5?Math.floor(t/n)+" "+e:Math.ceil(t/n)+" "+e+"s"}(function(t,n){n=t.exports=r.debug=r.default=r,n.coerce=h,n.disable=s,n.enable=o,n.enabled=c,n.humanize=ex,n.instances=[],n.names=[],n.skips=[],n.formatters={};function e(a){var f=0,p;for(p in a)f=(f<<5)-f+a.charCodeAt(p),f|=0;return n.colors[Math.abs(f)%n.colors.length]}function r(a){var f;function p(){if(p.enabled){var x=p,u=+new Date,b=u-(f||u);x.diff=b,x.prev=f,x.curr=u,f=u;for(var m=new Array(arguments.length),E=0;E<m.length;E++)m[E]=arguments[E];m[0]=n.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");var A=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,function(v,d){if(v==="%%")return v;A++;var _=n.formatters[d];if(typeof _=="function"){var B=m[A];v=_.call(x,B),m.splice(A,1),A--}return v}),n.formatArgs.call(x,m);var g=p.log||n.log||console.log.bind(console);g.apply(x,m)}}return p.namespace=a,p.enabled=n.enabled(a),p.useColors=n.useColors(),p.color=e(a),p.destroy=i,typeof n.init=="function"&&n.init(p),n.instances.push(p),p}function i(){var a=n.instances.indexOf(this);return a!==-1?(n.instances.splice(a,1),!0):!1}function o(a){n.save(a),n.names=[],n.skips=[];var f,p=(typeof a=="string"?a:"").split(/[\s,]+/),x=p.length;for(f=0;f<x;f++)p[f]&&(a=p[f].replace(/\*/g,".*?"),a[0]==="-"?n.skips.push(new RegExp("^"+a.substr(1)+"$")):n.names.push(new RegExp("^"+a+"$")));for(f=0;f<n.instances.length;f++){var u=n.instances[f];u.enabled=n.enabled(u.namespace)}}function s(){n.enable("")}function c(a){if(a[a.length-1]==="*")return!0;var f,p;for(f=0,p=n.skips.length;f<p;f++)if(n.skips[f].test(a))return!1;for(f=0,p=n.names.length;f<p;f++)if(n.names[f].test(a))return!0;return!1}function h(a){return a instanceof Error?a.stack||a.message:a}})(an,an.exports);var ix=an.exports;(function(t,n){n=t.exports=ix,n.log=i,n.formatArgs=r,n.save=o,n.load=s,n.useColors=e,n.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:c(),n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function e(){return typeof window!="undefined"&&window.process&&window.process.type==="renderer"?!0:typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}n.formatters.j=function(h){try{return JSON.stringify(h)}catch(a){return"[UnexpectedJSONParseError]: "+a.message}};function r(h){var a=this.useColors;if(h[0]=(a?"%c":"")+this.namespace+(a?" %c":" ")+h[0]+(a?"%c ":" ")+"+"+n.humanize(this.diff),!!a){var f="color: "+this.color;h.splice(1,0,f,"color: inherit");var p=0,x=0;h[0].replace(/%[a-zA-Z%]/g,function(u){u!=="%%"&&(p++,u==="%c"&&(x=p))}),h.splice(x,0,f)}}function i(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function o(h){try{h==null?n.storage.removeItem("debug"):n.storage.debug=h}catch(a){}}function s(){var h;try{h=n.storage.debug}catch(a){}return!h&&typeof process!="undefined"&&"env"in process&&(h=process.env.DEBUG),h}n.enable(s());function c(){try{return window.localStorage}catch(h){}}})(on,on.exports);var Tt=on.exports,ox=Ko,ji=Tt("socket.io-client:url"),ax=sx;function sx(t,n){var e=t;n=n||typeof location!="undefined"&&location,t==null&&(t=n.protocol+"//"+n.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=n.protocol+t:t=n.host+t),/^(https?|wss?):\/\//.test(t)||(ji("protocol-less url %s",t),typeof n!="undefined"?t=n.protocol+"//"+t:t="https://"+t),ji("parse %s",t),e=ox(t)),e.port||(/^(http|ws)$/.test(e.protocol)?e.port="80":/^(http|ws)s$/.test(e.protocol)&&(e.port="443")),e.path=e.path||"/";var r=e.host.indexOf(":")!==-1,i=r?"["+e.host+"]":e.host;return e.id=e.protocol+"://"+i+":"+e.port,e.href=e.protocol+"://"+i+(n&&n.port===e.port?"":":"+e.port),e}var J0={},Vo={exports:{}};(function(t){t.exports=n;function n(r){if(r)return e(r)}function e(r){for(var i in n.prototype)r[i]=n.prototype[i];return r}n.prototype.on=n.prototype.addEventListener=function(r,i){return this._callbacks=this._callbacks||{},(this._callbacks["$"+r]=this._callbacks["$"+r]||[]).push(i),this},n.prototype.once=function(r,i){function o(){this.off(r,o),i.apply(this,arguments)}return o.fn=i,this.on(r,o),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(r,i){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var o=this._callbacks["$"+r];if(!o)return this;if(arguments.length==1)return delete this._callbacks["$"+r],this;for(var s,c=0;c<o.length;c++)if(s=o[c],s===i||s.fn===i){o.splice(c,1);break}return o.length===0&&delete this._callbacks["$"+r],this},n.prototype.emit=function(r){this._callbacks=this._callbacks||{};for(var i=new Array(arguments.length-1),o=this._callbacks["$"+r],s=1;s<arguments.length;s++)i[s-1]=arguments[s];if(o){o=o.slice(0);for(var s=0,c=o.length;s<c;++s)o[s].apply(this,i)}return this},n.prototype.listeners=function(r){return this._callbacks=this._callbacks||{},this._callbacks["$"+r]||[]},n.prototype.hasListeners=function(r){return!!this.listeners(r).length}})(Vo);var x0=Vo.exports,er={},cx={}.toString,mn=Array.isArray||function(t){return cx.call(t)=="[object Array]"},Xo=dx,fx=typeof Buffer=="function"&&typeof Buffer.isBuffer=="function",xx=typeof ArrayBuffer=="function",ux=function(t){return typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer};function dx(t){return fx&&Buffer.isBuffer(t)||xx&&(t instanceof ArrayBuffer||ux(t))}var En=mn,Go=Xo,Yo=Object.prototype.toString,hx=typeof Blob=="function"||typeof Blob!="undefined"&&Yo.call(Blob)==="[object BlobConstructor]",lx=typeof File=="function"||typeof File!="undefined"&&Yo.call(File)==="[object FileConstructor]";er.deconstructPacket=function(t){var n=[],e=t.data,r=t;return r.data=sn(e,n),r.attachments=n.length,{packet:r,buffers:n}};function sn(t,n){if(!t)return t;if(Go(t)){var e={_placeholder:!0,num:n.length};return n.push(t),e}else if(En(t)){for(var r=new Array(t.length),i=0;i<t.length;i++)r[i]=sn(t[i],n);return r}else if(typeof t=="object"&&!(t instanceof Date)){var r={};for(var o in t)r[o]=sn(t[o],n);return r}return t}er.reconstructPacket=function(t,n){return t.data=cn(t.data,n),t.attachments=void 0,t};function cn(t,n){if(!t)return t;if(t&&t._placeholder===!0){var e=typeof t.num=="number"&&t.num>=0&&t.num<n.length;if(e)return n[t.num];throw new Error("illegal attachments")}else if(En(t))for(var r=0;r<t.length;r++)t[r]=cn(t[r],n);else if(typeof t=="object")for(var i in t)t[i]=cn(t[i],n);return t}er.removeBlobs=function(t,n){function e(o,s,c){if(!o)return o;if(hx&&o instanceof Blob||lx&&o instanceof File){r++;var h=new FileReader;h.onload=function(){c?c[s]=this.result:i=this.result,--r||n(i)},h.readAsArrayBuffer(o)}else if(En(o))for(var a=0;a<o.length;a++)e(o[a],a,o);else if(typeof o=="object"&&!Go(o))for(var f in o)e(o[f],f,o)}var r=0,i=t;e(i),r||n(i)};(function(t){var n=Tt("socket.io-parser"),e=x0,r=er,i=mn,o=Xo;t.protocol=4,t.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],t.CONNECT=0,t.DISCONNECT=1,t.EVENT=2,t.ACK=3,t.ERROR=4,t.BINARY_EVENT=5,t.BINARY_ACK=6,t.Encoder=s,t.Decoder=p;function s(){}var c=t.ERROR+'"encode error"';s.prototype.encode=function(A,g){if(n("encoding packet %j",A),t.BINARY_EVENT===A.type||t.BINARY_ACK===A.type)f(A,g);else{var v=h(A);g([v])}};function h(A){var g=""+A.type;if((t.BINARY_EVENT===A.type||t.BINARY_ACK===A.type)&&(g+=A.attachments+"-"),A.nsp&&A.nsp!=="/"&&(g+=A.nsp+","),A.id!=null&&(g+=A.id),A.data!=null){var v=a(A.data);if(v!==!1)g+=v;else return c}return n("encoded %j as %s",A,g),g}function a(A){try{return JSON.stringify(A)}catch(g){return!1}}function f(A,g){function v(d){var _=r.deconstructPacket(d),B=h(_.packet),C=_.buffers;C.unshift(B),g(C)}r.removeBlobs(A,v)}function p(){this.reconstructor=null}e(p.prototype),p.prototype.add=function(A){var g;if(typeof A=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");g=u(A),t.BINARY_EVENT===g.type||t.BINARY_ACK===g.type?(this.reconstructor=new m(g),this.reconstructor.reconPack.attachments===0&&this.emit("decoded",g)):this.emit("decoded",g)}else if(o(A)||A.base64)if(this.reconstructor)g=this.reconstructor.takeBinaryData(A),g&&(this.reconstructor=null,this.emit("decoded",g));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+A)};function x(A,g){switch(A){case 0:return typeof g=="object";case 1:return g===void 0;case 4:return typeof g=="string"||typeof g=="object";case 2:case 5:return i(g)&&(typeof g[0]=="string"||typeof g[0]=="number");case 3:case 6:return i(g)}}function u(A){var g=0,v={type:Number(A.charAt(0))};if(t.types[v.type]==null)return E("unknown packet type "+v.type);if(t.BINARY_EVENT===v.type||t.BINARY_ACK===v.type){for(var d=g+1;A.charAt(++g)!=="-"&&g!=A.length;);var _=A.substring(d,g);if(_!=Number(_)||A.charAt(g)!=="-")throw new Error("Illegal attachments");v.attachments=Number(_)}if(A.charAt(g+1)==="/"){for(var d=g+1;++g;){var B=A.charAt(g);if(B===","||g===A.length)break}v.nsp=A.substring(d,g)}else v.nsp="/";var C=A.charAt(g+1);if(C!==""&&Number(C)==C){for(var d=g+1;++g;){var B=A.charAt(g);if(B==null||Number(B)!=B){--g;break}if(g===A.length)break}v.id=Number(A.substring(d,g+1))}if(A.charAt(++g)){var S=b(A.substr(g));if(x(v.type,S))v.data=S;else throw new Error("invalid payload")}return n("decoded %s as %j",A,v),v}function b(A){try{return JSON.parse(A)}catch(g){return!1}}p.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()};function m(A){this.reconPack=A,this.buffers=[]}m.prototype.takeBinaryData=function(A){if(this.buffers.push(A),this.buffers.length===this.reconPack.attachments){var g=r.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),g}return null},m.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]};function E(A){return{type:t.ERROR,data:"parser error: "+A}}})(J0);var _n={exports:{}},tr={},fn={exports:{}};try{fn.exports=typeof XMLHttpRequest!="undefined"&&"withCredentials"in new XMLHttpRequest}catch(t){fn.exports=!1}var px=fn.exports,wn=function(){return typeof self!="undefined"?self:typeof window!="undefined"?window:Function("return this")()}(),vx=px,bx=wn,Bn=function(t){var n=t.xdomain,e=t.xscheme,r=t.enablesXDR;try{if(typeof XMLHttpRequest!="undefined"&&(!n||vx))return new XMLHttpRequest}catch(i){}try{if(typeof XDomainRequest!="undefined"&&!e&&r)return new XDomainRequest}catch(i){}if(!n)try{return new bx[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(i){}},An={exports:{}},Xt={},yx=Object.keys||function(n){var e=[],r=Object.prototype.hasOwnProperty;for(var i in n)r.call(n,i)&&e.push(i);return e},gx=mn,Zo=Object.prototype.toString,mx=typeof Blob=="function"||typeof Blob!="undefined"&&Zo.call(Blob)==="[object BlobConstructor]",Ex=typeof File=="function"||typeof File!="undefined"&&Zo.call(File)==="[object FileConstructor]",Qo=j0;function j0(t){if(!t||typeof t!="object")return!1;if(gx(t)){for(var n=0,e=t.length;n<e;n++)if(j0(t[n]))return!0;return!1}if(typeof Buffer=="function"&&Buffer.isBuffer&&Buffer.isBuffer(t)||typeof ArrayBuffer=="function"&&t instanceof ArrayBuffer||mx&&t instanceof Blob||Ex&&t instanceof File)return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return j0(t.toJSON(),!0);for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&j0(t[r]))return!0;return!1}var _x=function(t,n,e){var r=t.byteLength;if(n=n||0,e=e||r,t.slice)return t.slice(n,e);if(n<0&&(n+=r),e<0&&(e+=r),e>r&&(e=r),n>=r||n>=e||r===0)return new ArrayBuffer(0);for(var i=new Uint8Array(t),o=new Uint8Array(e-n),s=n,c=0;s<e;s++,c++)o[c]=i[s];return o.buffer},wx=Bx;function Bx(t,n,e){var r=!1;return e=e||Ax,i.count=t,t===0?n():i;function i(o,s){if(i.count<=0)throw new Error("after called too many times");--i.count,o?(r=!0,n(o),n=e):i.count===0&&!r&&n(null,s)}}function Ax(){}/*! https://mths.be/utf8js v2.1.2 by @mathias */var Ot=String.fromCharCode;function Jo(t){for(var n=[],e=0,r=t.length,i,o;e<r;)i=t.charCodeAt(e++),i>=55296&&i<=56319&&e<r?(o=t.charCodeAt(e++),(o&64512)==56320?n.push(((i&1023)<<10)+(o&1023)+65536):(n.push(i),e--)):n.push(i);return n}function Cx(t){for(var n=t.length,e=-1,r,i="";++e<n;)r=t[e],r>65535&&(r-=65536,i+=Ot(r>>>10&1023|55296),r=56320|r&1023),i+=Ot(r);return i}function ea(t,n){if(t>=55296&&t<=57343){if(n)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function Xr(t,n){return Ot(t>>n&63|128)}function Fx(t,n){if(!(t&4294967168))return Ot(t);var e="";return t&4294965248?t&4294901760?t&4292870144||(e=Ot(t>>18&7|240),e+=Xr(t,12),e+=Xr(t,6)):(ea(t,n)||(t=65533),e=Ot(t>>12&15|224),e+=Xr(t,6)):e=Ot(t>>6&31|192),e+=Ot(t&63|128),e}function Sx(t,n){n=n||{};for(var e=n.strict!==!1,r=Jo(t),i=r.length,o=-1,s,c="";++o<i;)s=r[o],c+=Fx(s,e);return c}function Gt(){if(Mt>=X0)throw Error("Invalid byte index");var t=V0[Mt]&255;if(Mt++,(t&192)==128)return t&63;throw Error("Invalid continuation byte")}function Dx(t){var n,e,r,i,o;if(Mt>X0)throw Error("Invalid byte index");if(Mt==X0)return!1;if(n=V0[Mt]&255,Mt++,!(n&128))return n;if((n&224)==192){if(e=Gt(),o=(n&31)<<6|e,o>=128)return o;throw Error("Invalid continuation byte")}if((n&240)==224){if(e=Gt(),r=Gt(),o=(n&15)<<12|e<<6|r,o>=2048)return ea(o,t)?o:65533;throw Error("Invalid continuation byte")}if((n&248)==240&&(e=Gt(),r=Gt(),i=Gt(),o=(n&7)<<18|e<<12|r<<6|i,o>=65536&&o<=1114111))return o;throw Error("Invalid UTF-8 detected")}var V0,X0,Mt;function Tx(t,n){n=n||{};var e=n.strict!==!1;V0=Jo(t),X0=V0.length,Mt=0;for(var r=[],i;(i=Dx(e))!==!1;)r.push(i);return Cx(r)}var kx={version:"2.1.2",encode:Sx,decode:Tx},M0={},Li;function Rx(){return Li||(Li=1,function(t){M0.encode=function(n){var e=new Uint8Array(n),r,i=e.length,o="";for(r=0;r<i;r+=3)o+=t[e[r]>>2],o+=t[(e[r]&3)<<4|e[r+1]>>4],o+=t[(e[r+1]&15)<<2|e[r+2]>>6],o+=t[e[r+2]&63];return i%3===2?o=o.substring(0,o.length-1)+"=":i%3===1&&(o=o.substring(0,o.length-2)+"=="),o},M0.decode=function(n){var e=n.length*.75,r=n.length,i,o=0,s,c,h,a;n[n.length-1]==="="&&(e--,n[n.length-2]==="="&&e--);var f=new ArrayBuffer(e),p=new Uint8Array(f);for(i=0;i<r;i+=4)s=t.indexOf(n[i]),c=t.indexOf(n[i+1]),h=t.indexOf(n[i+2]),a=t.indexOf(n[i+3]),p[o++]=s<<2|c>>4,p[o++]=(c&15)<<4|h>>2,p[o++]=(h&3)<<6|a&63;return f}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")),M0}var Gr,Wi;function Ix(){if(Wi)return Gr;Wi=1;var t=typeof t!="undefined"?t:typeof WebKitBlobBuilder!="undefined"?WebKitBlobBuilder:typeof MSBlobBuilder!="undefined"?MSBlobBuilder:typeof MozBlobBuilder!="undefined"?MozBlobBuilder:!1,n=function(){try{var c=new Blob(["hi"]);return c.size===2}catch(h){return!1}}(),e=n&&function(){try{var c=new Blob([new Uint8Array([1,2])]);return c.size===2}catch(h){return!1}}(),r=t&&t.prototype.append&&t.prototype.getBlob;function i(c){return c.map(function(h){if(h.buffer instanceof ArrayBuffer){var a=h.buffer;if(h.byteLength!==a.byteLength){var f=new Uint8Array(h.byteLength);f.set(new Uint8Array(a,h.byteOffset,h.byteLength)),a=f.buffer}return a}return h})}function o(c,h){h=h||{};var a=new t;return i(c).forEach(function(f){a.append(f)}),h.type?a.getBlob(h.type):a.getBlob()}function s(c,h){return new Blob(i(c),h||{})}return typeof Blob!="undefined"&&(o.prototype=Blob.prototype,s.prototype=Blob.prototype),Gr=function(){return n?e?Blob:s:r?o:void 0}(),Gr}(function(t){var n=yx,e=Qo,r=_x,i=wx,o=kx,s;typeof ArrayBuffer!="undefined"&&(s=Rx());var c=typeof navigator!="undefined"&&/Android/i.test(navigator.userAgent),h=typeof navigator!="undefined"&&/PhantomJS/i.test(navigator.userAgent),a=c||h;t.protocol=3;var f=t.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},p=n(f),x={type:"error",data:"parser error"},u=Ix();t.encodePacket=function(d,_,B,C){typeof _=="function"&&(C=_,_=!1),typeof B=="function"&&(C=B,B=null);var S=d.data===void 0?void 0:d.data.buffer||d.data;if(typeof ArrayBuffer!="undefined"&&S instanceof ArrayBuffer)return m(d,_,C);if(typeof u!="undefined"&&S instanceof u)return A(d,_,C);if(S&&S.base64)return b(d,C);var k=f[d.type];return d.data!==void 0&&(k+=B?o.encode(String(d.data),{strict:!1}):String(d.data)),C(""+k)};function b(d,_){var B="b"+t.packets[d.type]+d.data.data;return _(B)}function m(d,_,B){if(!_)return t.encodeBase64Packet(d,B);var C=d.data,S=new Uint8Array(C),k=new Uint8Array(1+C.byteLength);k[0]=f[d.type];for(var F=0;F<S.length;F++)k[F+1]=S[F];return B(k.buffer)}function E(d,_,B){if(!_)return t.encodeBase64Packet(d,B);var C=new FileReader;return C.onload=function(){t.encodePacket({type:d.type,data:C.result},_,!0,B)},C.readAsArrayBuffer(d.data)}function A(d,_,B){if(!_)return t.encodeBase64Packet(d,B);if(a)return E(d,_,B);var C=new Uint8Array(1);C[0]=f[d.type];var S=new u([C.buffer,d.data]);return B(S)}t.encodeBase64Packet=function(d,_){var B="b"+t.packets[d.type];if(typeof u!="undefined"&&d.data instanceof u){var C=new FileReader;return C.onload=function(){var O=C.result.split(",")[1];_(B+O)},C.readAsDataURL(d.data)}var S;try{S=String.fromCharCode.apply(null,new Uint8Array(d.data))}catch(O){for(var k=new Uint8Array(d.data),F=new Array(k.length),D=0;D<k.length;D++)F[D]=k[D];S=String.fromCharCode.apply(null,F)}return B+=btoa(S),_(B)},t.decodePacket=function(d,_,B){if(d===void 0)return x;if(typeof d=="string"){if(d.charAt(0)==="b")return t.decodeBase64Packet(d.substr(1),_);if(B&&(d=g(d),d===!1))return x;var S=d.charAt(0);return Number(S)!=S||!p[S]?x:d.length>1?{type:p[S],data:d.substring(1)}:{type:p[S]}}var C=new Uint8Array(d),S=C[0],k=r(d,1);return u&&_==="blob"&&(k=new u([k])),{type:p[S],data:k}};function g(d){try{d=o.decode(d,{strict:!1})}catch(_){return!1}return d}t.decodeBase64Packet=function(d,_){var B=p[d.charAt(0)];if(!s)return{type:B,data:{base64:!0,data:d.substr(1)}};var C=s.decode(d.substr(1));return _==="blob"&&u&&(C=new u([C])),{type:B,data:C}},t.encodePayload=function(d,_,B){typeof _=="function"&&(B=_,_=null);var C=e(d);if(_&&C)return u&&!a?t.encodePayloadAsBlob(d,B):t.encodePayloadAsArrayBuffer(d,B);if(!d.length)return B("0:");function S(F){return F.length+":"+F}function k(F,D){t.encodePacket(F,C?_:!1,!1,function(O){D(null,S(O))})}v(d,k,function(F,D){return B(D.join(""))})};function v(d,_,B){for(var C=new Array(d.length),S=i(d.length,B),k=function(D,O,M){_(O,function(U,z){C[D]=z,M(U,C)})},F=0;F<d.length;F++)k(F,d[F],S)}t.decodePayload=function(d,_,B){if(typeof d!="string")return t.decodePayloadAsBinary(d,_,B);typeof _=="function"&&(B=_,_=null);var C;if(d==="")return B(x,0,1);for(var S="",k,F,D=0,O=d.length;D<O;D++){var M=d.charAt(D);if(M!==":"){S+=M;continue}if(S===""||S!=(k=Number(S))||(F=d.substr(D+1,k),S!=F.length))return B(x,0,1);if(F.length){if(C=t.decodePacket(F,_,!1),x.type===C.type&&x.data===C.data)return B(x,0,1);var U=B(C,D+k,O);if(U===!1)return}D+=k,S=""}if(S!=="")return B(x,0,1)},t.encodePayloadAsArrayBuffer=function(d,_){if(!d.length)return _(new ArrayBuffer(0));function B(C,S){t.encodePacket(C,!0,!0,function(k){return S(null,k)})}v(d,B,function(C,S){var k=S.reduce(function(O,M){var U;return typeof M=="string"?U=M.length:U=M.byteLength,O+U.toString().length+U+2},0),F=new Uint8Array(k),D=0;return S.forEach(function(O){var M=typeof O=="string",U=O;if(M){for(var W=new Uint8Array(O.length),z=0;z<O.length;z++)W[z]=O.charCodeAt(z);U=W.buffer}M?F[D++]=0:F[D++]=1;for(var j=U.byteLength.toString(),z=0;z<j.length;z++)F[D++]=parseInt(j[z]);F[D++]=255;for(var W=new Uint8Array(U),z=0;z<W.length;z++)F[D++]=W[z]}),_(F.buffer)})},t.encodePayloadAsBlob=function(d,_){function B(C,S){t.encodePacket(C,!0,!0,function(k){var F=new Uint8Array(1);if(F[0]=1,typeof k=="string"){for(var D=new Uint8Array(k.length),O=0;O<k.length;O++)D[O]=k.charCodeAt(O);k=D.buffer,F[0]=0}for(var M=k instanceof ArrayBuffer?k.byteLength:k.size,U=M.toString(),z=new Uint8Array(U.length+1),O=0;O<U.length;O++)z[O]=parseInt(U[O]);if(z[U.length]=255,u){var j=new u([F.buffer,z.buffer,k]);S(null,j)}})}v(d,B,function(C,S){return _(new u(S))})},t.decodePayloadAsBinary=function(d,_,B){typeof _=="function"&&(B=_,_=null);for(var C=d,S=[];C.byteLength>0;){for(var k=new Uint8Array(C),F=k[0]===0,D="",O=1;k[O]!==255;O++){if(D.length>310)return B(x,0,1);D+=k[O]}C=r(C,2+D.length),D=parseInt(D);var M=r(C,0,D);if(F)try{M=String.fromCharCode.apply(null,new Uint8Array(M))}catch(j){var U=new Uint8Array(M);M="";for(var O=0;O<U.length;O++)M+=String.fromCharCode(U[O])}S.push(M),C=r(C,D)}var z=S.length;S.forEach(function(j,W){B(t.decodePacket(j,_,!0),W,z)})}})(Xt);var Yr,$i;function Cn(){if($i)return Yr;$i=1;var t=Xt,n=x0;Yr=e;function e(r){this.path=r.path,this.hostname=r.hostname,this.port=r.port,this.secure=r.secure,this.query=r.query,this.timestampParam=r.timestampParam,this.timestampRequests=r.timestampRequests,this.readyState="",this.agent=r.agent||!1,this.socket=r.socket,this.enablesXDR=r.enablesXDR,this.withCredentials=r.withCredentials,this.pfx=r.pfx,this.key=r.key,this.passphrase=r.passphrase,this.cert=r.cert,this.ca=r.ca,this.ciphers=r.ciphers,this.rejectUnauthorized=r.rejectUnauthorized,this.forceNode=r.forceNode,this.isReactNative=r.isReactNative,this.extraHeaders=r.extraHeaders,this.localAddress=r.localAddress}return n(e.prototype),e.prototype.onError=function(r,i){var o=new Error(r);return o.type="TransportError",o.description=i,this.emit("error",o),this},e.prototype.open=function(){return(this.readyState==="closed"||this.readyState==="")&&(this.readyState="opening",this.doOpen()),this},e.prototype.close=function(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this},e.prototype.send=function(r){if(this.readyState==="open")this.write(r);else throw new Error("Transport not open")},e.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},e.prototype.onData=function(r){var i=t.decodePacket(r,this.socket.binaryType);this.onPacket(i)},e.prototype.onPacket=function(r){this.emit("packet",r)},e.prototype.onClose=function(){this.readyState="closed",this.emit("close")},Yr}var u0={};u0.encode=function(t){var n="";for(var e in t)t.hasOwnProperty(e)&&(n.length&&(n+="&"),n+=encodeURIComponent(e)+"="+encodeURIComponent(t[e]));return n};u0.decode=function(t){for(var n={},e=t.split("&"),r=0,i=e.length;r<i;r++){var o=e[r].split("=");n[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return n};var rr=function(t,n){var e=function(){};e.prototype=n.prototype,t.prototype=new e,t.prototype.constructor=t},ta="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),G0=64,ra={},Ki=0,Nt=0,Vi;function xn(t){var n="";do n=ta[t%G0]+n,t=Math.floor(t/G0);while(t>0);return n}function Px(t){var n=0;for(Nt=0;Nt<t.length;Nt++)n=n*G0+ra[t.charAt(Nt)];return n}function Fn(){var t=xn(+new Date);return t!==Vi?(Ki=0,Vi=t):t+"."+xn(Ki++)}for(;Nt<G0;Nt++)ra[ta[Nt]]=Nt;Fn.encode=xn;Fn.decode=Px;var na=Fn,ia=Cn(),Ox=u0,oa=Xt,qx=rr,Mx=na,wt=Tt("engine.io-client:polling"),aa=Ct,Nx=function(){var t=Bn,n=new t({xdomain:!1});return n.responseType!=null}();function Ct(t){var n=t&&t.forceBase64;(!Nx||n)&&(this.supportsBinary=!1),ia.call(this,t)}qx(Ct,ia);Ct.prototype.name="polling";Ct.prototype.doOpen=function(){this.poll()};Ct.prototype.pause=function(t){var n=this;this.readyState="pausing";function e(){wt("paused"),n.readyState="paused",t()}if(this.polling||!this.writable){var r=0;this.polling&&(wt("we are currently polling - waiting to pause"),r++,this.once("pollComplete",function(){wt("pre-pause polling complete"),--r||e()})),this.writable||(wt("we are currently writing - waiting to pause"),r++,this.once("drain",function(){wt("pre-pause writing complete"),--r||e()}))}else e()};Ct.prototype.poll=function(){wt("polling"),this.polling=!0,this.doPoll(),this.emit("poll")};Ct.prototype.onData=function(t){var n=this;wt("polling got data %s",t);var e=function(r,i,o){if(n.readyState==="opening"&&r.type==="open"&&n.onOpen(),r.type==="close")return n.onClose(),!1;n.onPacket(r)};oa.decodePayload(t,this.socket.binaryType,e),this.readyState!=="closed"&&(this.polling=!1,this.emit("pollComplete"),this.readyState==="open"?this.poll():wt('ignoring poll - transport state "%s"',this.readyState))};Ct.prototype.doClose=function(){var t=this;function n(){wt("writing close packet"),t.write([{type:"close"}])}this.readyState==="open"?(wt("transport open - closing"),n()):(wt("transport not open - deferring close"),this.once("open",n))};Ct.prototype.write=function(t){var n=this;this.writable=!1;var e=function(){n.writable=!0,n.emit("drain")};oa.encodePayload(t,this.supportsBinary,function(r){n.doWrite(r,e)})};Ct.prototype.uri=function(){var t=this.query||{},n=this.secure?"https":"http",e="";this.timestampRequests!==!1&&(t[this.timestampParam]=Mx()),!this.supportsBinary&&!t.sid&&(t.b64=1),t=Ox.encode(t),this.port&&(n==="https"&&Number(this.port)!==443||n==="http"&&Number(this.port)!==80)&&(e=":"+this.port),t.length&&(t="?"+t);var r=this.hostname.indexOf(":")!==-1;return n+"://"+(r?"["+this.hostname+"]":this.hostname)+e+this.path+t};var Hx=Bn,sa=aa,Ux=x0,zx=rr,un=Tt("engine.io-client:polling-xhr"),jx=wn;An.exports=d0;An.exports.Request=tt;function Xi(){}function d0(t){if(sa.call(this,t),this.requestTimeout=t.requestTimeout,this.extraHeaders=t.extraHeaders,typeof location!="undefined"){var n=location.protocol==="https:",e=location.port;e||(e=n?443:80),this.xd=typeof location!="undefined"&&t.hostname!==location.hostname||e!==t.port,this.xs=t.secure!==n}}zx(d0,sa);d0.prototype.supportsBinary=!0;d0.prototype.request=function(t){return t=t||{},t.uri=this.uri(),t.xd=this.xd,t.xs=this.xs,t.agent=this.agent||!1,t.supportsBinary=this.supportsBinary,t.enablesXDR=this.enablesXDR,t.withCredentials=this.withCredentials,t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized,t.requestTimeout=this.requestTimeout,t.extraHeaders=this.extraHeaders,new tt(t)};d0.prototype.doWrite=function(t,n){var e=typeof t!="string"&&t!==void 0,r=this.request({method:"POST",data:t,isBinary:e}),i=this;r.on("success",n),r.on("error",function(o){i.onError("xhr post error",o)}),this.sendXhr=r};d0.prototype.doPoll=function(){un("xhr poll");var t=this.request(),n=this;t.on("data",function(e){n.onData(e)}),t.on("error",function(e){n.onError("xhr poll error",e)}),this.pollXhr=t};function tt(t){this.method=t.method||"GET",this.uri=t.uri,this.xd=!!t.xd,this.xs=!!t.xs,this.async=t.async!==!1,this.data=t.data!==void 0?t.data:null,this.agent=t.agent,this.isBinary=t.isBinary,this.supportsBinary=t.supportsBinary,this.enablesXDR=t.enablesXDR,this.withCredentials=t.withCredentials,this.requestTimeout=t.requestTimeout,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.extraHeaders=t.extraHeaders,this.create()}Ux(tt.prototype);tt.prototype.create=function(){var t={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized;var n=this.xhr=new Hx(t),e=this;try{un("xhr open %s: %s",this.method,this.uri),n.open(this.method,this.uri,this.async);try{if(this.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(var r in this.extraHeaders)this.extraHeaders.hasOwnProperty(r)&&n.setRequestHeader(r,this.extraHeaders[r])}}catch(i){}if(this.method==="POST")try{this.isBinary?n.setRequestHeader("Content-type","application/octet-stream"):n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(i){}try{n.setRequestHeader("Accept","*/*")}catch(i){}"withCredentials"in n&&(n.withCredentials=this.withCredentials),this.requestTimeout&&(n.timeout=this.requestTimeout),this.hasXDR()?(n.onload=function(){e.onLoad()},n.onerror=function(){e.onError(n.responseText)}):n.onreadystatechange=function(){if(n.readyState===2)try{var i=n.getResponseHeader("Content-Type");(e.supportsBinary&&i==="application/octet-stream"||i==="application/octet-stream; charset=UTF-8")&&(n.responseType="arraybuffer")}catch(o){}n.readyState===4&&(n.status===200||n.status===1223?e.onLoad():setTimeout(function(){e.onError(typeof n.status=="number"?n.status:0)},0))},un("xhr data %s",this.data),n.send(this.data)}catch(i){setTimeout(function(){e.onError(i)},0);return}typeof document!="undefined"&&(this.index=tt.requestsCount++,tt.requests[this.index]=this)};tt.prototype.onSuccess=function(){this.emit("success"),this.cleanup()};tt.prototype.onData=function(t){this.emit("data",t),this.onSuccess()};tt.prototype.onError=function(t){this.emit("error",t),this.cleanup(!0)};tt.prototype.cleanup=function(t){if(!(typeof this.xhr=="undefined"||this.xhr===null)){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=Xi:this.xhr.onreadystatechange=Xi,t)try{this.xhr.abort()}catch(n){}typeof document!="undefined"&&delete tt.requests[this.index],this.xhr=null}};tt.prototype.onLoad=function(){var t;try{var n;try{n=this.xhr.getResponseHeader("Content-Type")}catch(e){}n==="application/octet-stream"||n==="application/octet-stream; charset=UTF-8"?t=this.xhr.response||this.xhr.responseText:t=this.xhr.responseText}catch(e){this.onError(e)}t!=null&&this.onData(t)};tt.prototype.hasXDR=function(){return typeof XDomainRequest!="undefined"&&!this.xs&&this.enablesXDR};tt.prototype.abort=function(){this.cleanup()};tt.requestsCount=0;tt.requests={};if(typeof document!="undefined"){if(typeof attachEvent=="function")attachEvent("onunload",Gi);else if(typeof addEventListener=="function"){var Lx="onpagehide"in jx?"pagehide":"unload";addEventListener(Lx,Gi,!1)}}function Gi(){for(var t in tt.requests)tt.requests.hasOwnProperty(t)&&tt.requests[t].abort()}var Wx=An.exports,Sn=aa,$x=rr,Yi=wn,Kx=h0,Vx=/\n/g,Xx=/\\n/g,N0;function Gx(){}function h0(t){Sn.call(this,t),this.query=this.query||{},N0||(N0=Yi.___eio=Yi.___eio||[]),this.index=N0.length;var n=this;N0.push(function(e){n.onData(e)}),this.query.j=this.index,typeof addEventListener=="function"&&addEventListener("beforeunload",function(){n.script&&(n.script.onerror=Gx)},!1)}$x(h0,Sn);h0.prototype.supportsBinary=!1;h0.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),Sn.prototype.doClose.call(this)};h0.prototype.doPoll=function(){var t=this,n=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),n.async=!0,n.src=this.uri(),n.onerror=function(i){t.onError("jsonp poll error",i)};var e=document.getElementsByTagName("script")[0];e?e.parentNode.insertBefore(n,e):(document.head||document.body).appendChild(n),this.script=n;var r=typeof navigator!="undefined"&&/gecko/i.test(navigator.userAgent);r&&setTimeout(function(){var i=document.createElement("iframe");document.body.appendChild(i),document.body.removeChild(i)},100)};h0.prototype.doWrite=function(t,n){var e=this;if(!this.form){var r=document.createElement("form"),i=document.createElement("textarea"),o=this.iframeId="eio_iframe_"+this.index,s;r.className="socketio",r.style.position="absolute",r.style.top="-1000px",r.style.left="-1000px",r.target=o,r.method="POST",r.setAttribute("accept-charset","utf-8"),i.name="d",r.appendChild(i),document.body.appendChild(r),this.form=r,this.area=i}this.form.action=this.uri();function c(){h(),n()}function h(){if(e.iframe)try{e.form.removeChild(e.iframe)}catch(f){e.onError("jsonp polling iframe removal error",f)}try{var a='<iframe src="javascript:0" name="'+e.iframeId+'">';s=document.createElement(a)}catch(f){s=document.createElement("iframe"),s.name=e.iframeId,s.src="javascript:0"}s.id=e.iframeId,e.form.appendChild(s),e.iframe=s}h(),t=t.replace(Xx,`\\
21
+ `),this.area.value=t.replace(Vx,"\\n");try{this.form.submit()}catch(a){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){e.iframe.readyState==="complete"&&c()}:this.iframe.onload=c};var Dn=Cn(),Yx=Xt,Zx=u0,Qx=rr,Jx=na,eu=Tt("engine.io-client:websocket"),Y0,Tn;typeof WebSocket!="undefined"?Y0=WebSocket:typeof self!="undefined"&&(Y0=self.WebSocket||self.MozWebSocket);if(typeof window=="undefined")try{Tn=xo}catch(t){}var i0=Y0||Tn,tu=yt;function yt(t){var n=t&&t.forceBase64;n&&(this.supportsBinary=!1),this.perMessageDeflate=t.perMessageDeflate,this.usingBrowserWebSocket=Y0&&!t.forceNode,this.protocols=t.protocols,this.usingBrowserWebSocket||(i0=Tn),Dn.call(this,t)}Qx(yt,Dn);yt.prototype.name="websocket";yt.prototype.supportsBinary=!0;yt.prototype.doOpen=function(){if(this.check()){var t=this.uri(),n=this.protocols,e={};this.isReactNative||(e.agent=this.agent,e.perMessageDeflate=this.perMessageDeflate,e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized),this.extraHeaders&&(e.headers=this.extraHeaders),this.localAddress&&(e.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?n?new i0(t,n):new i0(t):new i0(t,n,e)}catch(r){return this.emit("error",r)}this.ws.binaryType===void 0&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}};yt.prototype.addEventListeners=function(){var t=this;this.ws.onopen=function(){t.onOpen()},this.ws.onclose=function(){t.onClose()},this.ws.onmessage=function(n){t.onData(n.data)},this.ws.onerror=function(n){t.onError("websocket error",n)}};yt.prototype.write=function(t){var n=this;this.writable=!1;for(var e=t.length,r=0,i=e;r<i;r++)(function(s){Yx.encodePacket(s,n.supportsBinary,function(c){if(!n.usingBrowserWebSocket){var h={};if(s.options&&(h.compress=s.options.compress),n.perMessageDeflate){var a=typeof c=="string"?Buffer.byteLength(c):c.length;a<n.perMessageDeflate.threshold&&(h.compress=!1)}}try{n.usingBrowserWebSocket?n.ws.send(c):n.ws.send(c,h)}catch(f){eu("websocket closed before onclose event")}--e||o()})})(t[r]);function o(){n.emit("flush"),setTimeout(function(){n.writable=!0,n.emit("drain")},0)}};yt.prototype.onClose=function(){Dn.prototype.onClose.call(this)};yt.prototype.doClose=function(){typeof this.ws!="undefined"&&this.ws.close()};yt.prototype.uri=function(){var t=this.query||{},n=this.secure?"wss":"ws",e="";this.port&&(n==="wss"&&Number(this.port)!==443||n==="ws"&&Number(this.port)!==80)&&(e=":"+this.port),this.timestampRequests&&(t[this.timestampParam]=Jx()),this.supportsBinary||(t.b64=1),t=Zx.encode(t),t.length&&(t="?"+t);var r=this.hostname.indexOf(":")!==-1;return n+"://"+(r?"["+this.hostname+"]":this.hostname)+e+this.path+t};yt.prototype.check=function(){return!!i0&&!("__initialize"in i0&&this.name===yt.prototype.name)};var ru=Bn,nu=Wx,iu=Kx,ou=tu;tr.polling=au;tr.websocket=ou;function au(t){var n,e=!1,r=!1,i=t.jsonp!==!1;if(typeof location!="undefined"){var o=location.protocol==="https:",s=location.port;s||(s=o?443:80),e=t.hostname!==location.hostname||s!==t.port,r=t.secure!==o}if(t.xdomain=e,t.xscheme=r,n=new ru(t),"open"in n&&!t.forceJSONP)return new nu(t);if(!i)throw new Error("JSONP disabled");return new iu(t)}var su=[].indexOf,ca=function(t,n){if(su)return t.indexOf(n);for(var e=0;e<t.length;++e)if(t[e]===n)return e;return-1},cu=tr,fu=x0,Je=Tt("engine.io-client:socket"),xu=ca,fa=Xt,Zi=Ko,uu=u0,du=Me;function Me(t,n){if(!(this instanceof Me))return new Me(t,n);n=n||{},t&&typeof t=="object"&&(n=t,t=null),t?(t=Zi(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=Zi(n.host).host),this.secure=n.secure!=null?n.secure:typeof location!="undefined"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.agent=n.agent||!1,this.hostname=n.hostname||(typeof location!="undefined"?location.hostname:"localhost"),this.port=n.port||(typeof location!="undefined"&&location.port?location.port:this.secure?443:80),this.query=n.query||{},typeof this.query=="string"&&(this.query=uu.decode(this.query)),this.upgrade=n.upgrade!==!1,this.path=(n.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!n.forceJSONP,this.jsonp=n.jsonp!==!1,this.forceBase64=!!n.forceBase64,this.enablesXDR=!!n.enablesXDR,this.withCredentials=n.withCredentials!==!1,this.timestampParam=n.timestampParam||"t",this.timestampRequests=n.timestampRequests,this.transports=n.transports||["polling","websocket"],this.transportOptions=n.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=n.policyPort||843,this.rememberUpgrade=n.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=n.onlyBinaryUpgrades,this.perMessageDeflate=n.perMessageDeflate!==!1?n.perMessageDeflate||{}:!1,this.perMessageDeflate===!0&&(this.perMessageDeflate={}),this.perMessageDeflate&&this.perMessageDeflate.threshold==null&&(this.perMessageDeflate.threshold=1024),this.pfx=n.pfx||void 0,this.key=n.key||void 0,this.passphrase=n.passphrase||void 0,this.cert=n.cert||void 0,this.ca=n.ca||void 0,this.ciphers=n.ciphers||void 0,this.rejectUnauthorized=n.rejectUnauthorized===void 0?!0:n.rejectUnauthorized,this.forceNode=!!n.forceNode,this.isReactNative=typeof navigator!="undefined"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",(typeof self=="undefined"||this.isReactNative)&&(n.extraHeaders&&Object.keys(n.extraHeaders).length>0&&(this.extraHeaders=n.extraHeaders),n.localAddress&&(this.localAddress=n.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}Me.priorWebsocketSuccess=!1;fu(Me.prototype);Me.protocol=fa.protocol;Me.Socket=Me;Me.Transport=Cn();Me.transports=tr;Me.parser=Xt;Me.prototype.createTransport=function(t){Je('creating transport "%s"',t);var n=hu(this.query);n.EIO=fa.protocol,n.transport=t;var e=this.transportOptions[t]||{};this.id&&(n.sid=this.id);var r=new cu[t]({query:n,socket:this,agent:e.agent||this.agent,hostname:e.hostname||this.hostname,port:e.port||this.port,secure:e.secure||this.secure,path:e.path||this.path,forceJSONP:e.forceJSONP||this.forceJSONP,jsonp:e.jsonp||this.jsonp,forceBase64:e.forceBase64||this.forceBase64,enablesXDR:e.enablesXDR||this.enablesXDR,withCredentials:e.withCredentials||this.withCredentials,timestampRequests:e.timestampRequests||this.timestampRequests,timestampParam:e.timestampParam||this.timestampParam,policyPort:e.policyPort||this.policyPort,pfx:e.pfx||this.pfx,key:e.key||this.key,passphrase:e.passphrase||this.passphrase,cert:e.cert||this.cert,ca:e.ca||this.ca,ciphers:e.ciphers||this.ciphers,rejectUnauthorized:e.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:e.perMessageDeflate||this.perMessageDeflate,extraHeaders:e.extraHeaders||this.extraHeaders,forceNode:e.forceNode||this.forceNode,localAddress:e.localAddress||this.localAddress,requestTimeout:e.requestTimeout||this.requestTimeout,protocols:e.protocols||void 0,isReactNative:this.isReactNative});return r};function hu(t){var n={};for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}Me.prototype.open=function(){var t;if(this.rememberUpgrade&&Me.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){var n=this;setTimeout(function(){n.emit("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch(e){this.transports.shift(),this.open();return}t.open(),this.setTransport(t)};Me.prototype.setTransport=function(t){Je("setting transport %s",t.name);var n=this;this.transport&&(Je("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=t,t.on("drain",function(){n.onDrain()}).on("packet",function(e){n.onPacket(e)}).on("error",function(e){n.onError(e)}).on("close",function(){n.onClose("transport close")})};Me.prototype.probe=function(t){Je('probing transport "%s"',t);var n=this.createTransport(t,{probe:1}),e=!1,r=this;Me.priorWebsocketSuccess=!1;function i(){if(r.onlyBinaryUpgrades){var p=!this.supportsBinary&&r.transport.supportsBinary;e=e||p}e||(Je('probe transport "%s" opened',t),n.send([{type:"ping",data:"probe"}]),n.once("packet",function(x){if(!e)if(x.type==="pong"&&x.data==="probe"){if(Je('probe transport "%s" pong',t),r.upgrading=!0,r.emit("upgrading",n),!n)return;Me.priorWebsocketSuccess=n.name==="websocket",Je('pausing current transport "%s"',r.transport.name),r.transport.pause(function(){e||r.readyState!=="closed"&&(Je("changing transport and sending upgrade packet"),f(),r.setTransport(n),n.send([{type:"upgrade"}]),r.emit("upgrade",n),n=null,r.upgrading=!1,r.flush())})}else{Je('probe transport "%s" failed',t);var u=new Error("probe error");u.transport=n.name,r.emit("upgradeError",u)}}))}function o(){e||(e=!0,f(),n.close(),n=null)}function s(p){var x=new Error("probe error: "+p);x.transport=n.name,o(),Je('probe transport "%s" failed because of error: %s',t,p),r.emit("upgradeError",x)}function c(){s("transport closed")}function h(){s("socket closed")}function a(p){n&&p.name!==n.name&&(Je('"%s" works - aborting "%s"',p.name,n.name),o())}function f(){n.removeListener("open",i),n.removeListener("error",s),n.removeListener("close",c),r.removeListener("close",h),r.removeListener("upgrading",a)}n.once("open",i),n.once("error",s),n.once("close",c),this.once("close",h),this.once("upgrading",a),n.open()};Me.prototype.onOpen=function(){if(Je("socket open"),this.readyState="open",Me.priorWebsocketSuccess=this.transport.name==="websocket",this.emit("open"),this.flush(),this.readyState==="open"&&this.upgrade&&this.transport.pause){Je("starting upgrade probes");for(var t=0,n=this.upgrades.length;t<n;t++)this.probe(this.upgrades[t])}};Me.prototype.onPacket=function(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(Je('socket receive: type "%s", data "%s"',t.type,t.data),this.emit("packet",t),this.emit("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var n=new Error("server error");n.code=t.data,this.onError(n);break;case"message":this.emit("data",t.data),this.emit("message",t.data);break}else Je('packet received with socket readyState "%s"',this.readyState)};Me.prototype.onHandshake=function(t){this.emit("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.onOpen(),this.readyState!=="closed"&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))};Me.prototype.onHeartbeat=function(t){clearTimeout(this.pingTimeoutTimer);var n=this;n.pingTimeoutTimer=setTimeout(function(){n.readyState!=="closed"&&n.onClose("ping timeout")},t||n.pingInterval+n.pingTimeout)};Me.prototype.setPing=function(){var t=this;clearTimeout(t.pingIntervalTimer),t.pingIntervalTimer=setTimeout(function(){Je("writing ping packet - expecting pong within %sms",t.pingTimeout),t.ping(),t.onHeartbeat(t.pingTimeout)},t.pingInterval)};Me.prototype.ping=function(){var t=this;this.sendPacket("ping",function(){t.emit("ping")})};Me.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emit("drain"):this.flush()};Me.prototype.flush=function(){this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(Je("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))};Me.prototype.write=Me.prototype.send=function(t,n,e){return this.sendPacket("message",t,n,e),this};Me.prototype.sendPacket=function(t,n,e,r){if(typeof n=="function"&&(r=n,n=void 0),typeof e=="function"&&(r=e,e=null),!(this.readyState==="closing"||this.readyState==="closed")){e=e||{},e.compress=e.compress!==!1;var i={type:t,data:n,options:e};this.emit("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}};Me.prototype.close=function(){if(this.readyState==="opening"||this.readyState==="open"){this.readyState="closing";var t=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?r():n()}):this.upgrading?r():n()}function n(){t.onClose("forced close"),Je("socket closing - telling transport to close"),t.transport.close()}function e(){t.removeListener("upgrade",e),t.removeListener("upgradeError",e),n()}function r(){t.once("upgrade",e),t.once("upgradeError",e)}return this};Me.prototype.onError=function(t){Je("socket error %j",t),Me.priorWebsocketSuccess=!1,this.emit("error",t),this.onClose("transport error",t)};Me.prototype.onClose=function(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){Je('socket close with reason: "%s"',t);var e=this;clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",t,n),e.writeBuffer=[],e.prevBufferLen=0}};Me.prototype.filterUpgrades=function(t){for(var n=[],e=0,r=t.length;e<r;e++)~xu(this.transports,t[e])&&n.push(t[e]);return n};_n.exports=du;_n.exports.parser=Xt;var lu=_n.exports,xa={exports:{}},pu=vu;function vu(t,n){var e=[];n=n||0;for(var r=n||0;r<t.length;r++)e[r-n]=t[r];return e}var ua=bu;function bu(t,n,e){return t.on(n,e),{destroy:function(){t.removeListener(n,e)}}}var Qi=[].slice,da=function(t,n){if(typeof n=="string"&&(n=t[n]),typeof n!="function")throw new Error("bind() requires a function");var e=Qi.call(arguments,2);return function(){return n.apply(t,e.concat(Qi.call(arguments)))}};(function(t,n){var e=J0,r=x0,i=pu,o=ua,s=da,c=Tt("socket.io-client:socket"),h=u0,a=Qo;t.exports=x;var f={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},p=r.prototype.emit;function x(u,b,m){this.io=u,this.nsp=b,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},m&&m.query&&(this.query=m.query),this.io.autoConnect&&this.open()}r(x.prototype),x.prototype.subEvents=function(){if(!this.subs){var u=this.io;this.subs=[o(u,"open",s(this,"onopen")),o(u,"packet",s(this,"onpacket")),o(u,"close",s(this,"onclose"))]}},x.prototype.open=x.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.reconnecting||this.io.open(),this.io.readyState==="open"&&this.onopen(),this.emit("connecting"),this)},x.prototype.send=function(){var u=i(arguments);return u.unshift("message"),this.emit.apply(this,u),this},x.prototype.emit=function(u){if(f.hasOwnProperty(u))return p.apply(this,arguments),this;var b=i(arguments),m={type:(this.flags.binary!==void 0?this.flags.binary:a(b))?e.BINARY_EVENT:e.EVENT,data:b};return m.options={},m.options.compress=!this.flags||this.flags.compress!==!1,typeof b[b.length-1]=="function"&&(c("emitting packet with ack id %d",this.ids),this.acks[this.ids]=b.pop(),m.id=this.ids++),this.connected?this.packet(m):this.sendBuffer.push(m),this.flags={},this},x.prototype.packet=function(u){u.nsp=this.nsp,this.io.packet(u)},x.prototype.onopen=function(){if(c("transport is open - connecting"),this.nsp!=="/")if(this.query){var u=typeof this.query=="object"?h.encode(this.query):this.query;c("sending connect packet with query %s",u),this.packet({type:e.CONNECT,query:u})}else this.packet({type:e.CONNECT})},x.prototype.onclose=function(u){c("close (%s)",u),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",u)},x.prototype.onpacket=function(u){var b=u.nsp===this.nsp,m=u.type===e.ERROR&&u.nsp==="/";if(!(!b&&!m))switch(u.type){case e.CONNECT:this.onconnect();break;case e.EVENT:this.onevent(u);break;case e.BINARY_EVENT:this.onevent(u);break;case e.ACK:this.onack(u);break;case e.BINARY_ACK:this.onack(u);break;case e.DISCONNECT:this.ondisconnect();break;case e.ERROR:this.emit("error",u.data);break}},x.prototype.onevent=function(u){var b=u.data||[];c("emitting event %j",b),u.id!=null&&(c("attaching ack callback to event"),b.push(this.ack(u.id))),this.connected?p.apply(this,b):this.receiveBuffer.push(b)},x.prototype.ack=function(u){var b=this,m=!1;return function(){if(!m){m=!0;var E=i(arguments);c("sending ack %j",E),b.packet({type:a(E)?e.BINARY_ACK:e.ACK,id:u,data:E})}}},x.prototype.onack=function(u){var b=this.acks[u.id];typeof b=="function"?(c("calling ack %s with %j",u.id,u.data),b.apply(this,u.data),delete this.acks[u.id]):c("bad ack %s",u.id)},x.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emitBuffered(),this.emit("connect")},x.prototype.emitBuffered=function(){var u;for(u=0;u<this.receiveBuffer.length;u++)p.apply(this,this.receiveBuffer[u]);for(this.receiveBuffer=[],u=0;u<this.sendBuffer.length;u++)this.packet(this.sendBuffer[u]);this.sendBuffer=[]},x.prototype.ondisconnect=function(){c("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},x.prototype.destroy=function(){if(this.subs){for(var u=0;u<this.subs.length;u++)this.subs[u].destroy();this.subs=null}this.io.destroy(this)},x.prototype.close=x.prototype.disconnect=function(){return this.connected&&(c("performing disconnect (%s)",this.nsp),this.packet({type:e.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},x.prototype.compress=function(u){return this.flags.compress=u,this},x.prototype.binary=function(u){return this.flags.binary=u,this}})(xa);var ha=xa.exports,yu=l0;function l0(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}l0.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var n=Math.random(),e=Math.floor(n*this.jitter*t);t=Math.floor(n*10)&1?t+e:t-e}return Math.min(t,this.max)|0};l0.prototype.reset=function(){this.attempts=0};l0.prototype.setMin=function(t){this.ms=t};l0.prototype.setMax=function(t){this.max=t};l0.prototype.setJitter=function(t){this.jitter=t};var gu=lu,mu=ha,Eu=x0,_u=J0,Pt=ua,Yt=da,st=Tt("socket.io-client:manager"),la=ca,wu=yu,pa=Object.prototype.hasOwnProperty,Ji=je;function je(t,n){if(!(this instanceof je))return new je(t,n);t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.nsps={},this.subs=[],this.opts=n,this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor(n.randomizationFactor||.5),this.backoff=new wu({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this.readyState="closed",this.uri=t,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var e=n.parser||_u;this.encoder=new e.Encoder,this.decoder=new e.Decoder,this.autoConnect=n.autoConnect!==!1,this.autoConnect&&this.open()}je.prototype.emitAll=function(){this.emit.apply(this,arguments);for(var t in this.nsps)pa.call(this.nsps,t)&&this.nsps[t].emit.apply(this.nsps[t],arguments)};je.prototype.updateSocketIds=function(){for(var t in this.nsps)pa.call(this.nsps,t)&&(this.nsps[t].id=this.generateId(t))};je.prototype.generateId=function(t){return(t==="/"?"":t+"#")+this.engine.id};Eu(je.prototype);je.prototype.reconnection=function(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection};je.prototype.reconnectionAttempts=function(t){return arguments.length?(this._reconnectionAttempts=t,this):this._reconnectionAttempts};je.prototype.reconnectionDelay=function(t){return arguments.length?(this._reconnectionDelay=t,this.backoff&&this.backoff.setMin(t),this):this._reconnectionDelay};je.prototype.randomizationFactor=function(t){return arguments.length?(this._randomizationFactor=t,this.backoff&&this.backoff.setJitter(t),this):this._randomizationFactor};je.prototype.reconnectionDelayMax=function(t){return arguments.length?(this._reconnectionDelayMax=t,this.backoff&&this.backoff.setMax(t),this):this._reconnectionDelayMax};je.prototype.timeout=function(t){return arguments.length?(this._timeout=t,this):this._timeout};je.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()};je.prototype.open=je.prototype.connect=function(t,n){if(st("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;st("opening %s",this.uri),this.engine=gu(this.uri,this.opts);var e=this.engine,r=this;this.readyState="opening",this.skipReconnect=!1;var i=Pt(e,"open",function(){r.onopen(),t&&t()}),o=Pt(e,"error",function(h){if(st("connect_error"),r.cleanup(),r.readyState="closed",r.emitAll("connect_error",h),t){var a=new Error("Connection error");a.data=h,t(a)}else r.maybeReconnectOnOpen()});if(this._timeout!==!1){var s=this._timeout;st("connect attempt will timeout after %d",s),s===0&&i.destroy();var c=setTimeout(function(){st("connect attempt timed out after %d",s),i.destroy(),e.close(),e.emit("error","timeout"),r.emitAll("connect_timeout",s)},s);this.subs.push({destroy:function(){clearTimeout(c)}})}return this.subs.push(i),this.subs.push(o),this};je.prototype.onopen=function(){st("open"),this.cleanup(),this.readyState="open",this.emit("open");var t=this.engine;this.subs.push(Pt(t,"data",Yt(this,"ondata"))),this.subs.push(Pt(t,"ping",Yt(this,"onping"))),this.subs.push(Pt(t,"pong",Yt(this,"onpong"))),this.subs.push(Pt(t,"error",Yt(this,"onerror"))),this.subs.push(Pt(t,"close",Yt(this,"onclose"))),this.subs.push(Pt(this.decoder,"decoded",Yt(this,"ondecoded")))};je.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")};je.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)};je.prototype.ondata=function(t){this.decoder.add(t)};je.prototype.ondecoded=function(t){this.emit("packet",t)};je.prototype.onerror=function(t){st("error",t),this.emitAll("error",t)};je.prototype.socket=function(t,n){var e=this.nsps[t];if(!e){e=new mu(this,t,n),this.nsps[t]=e;var r=this;e.on("connecting",i),e.on("connect",function(){e.id=r.generateId(t)}),this.autoConnect&&i()}function i(){~la(r.connecting,e)||r.connecting.push(e)}return e};je.prototype.destroy=function(t){var n=la(this.connecting,t);~n&&this.connecting.splice(n,1),!this.connecting.length&&this.close()};je.prototype.packet=function(t){st("writing packet %j",t);var n=this;t.query&&t.type===0&&(t.nsp+="?"+t.query),n.encoding?n.packetBuffer.push(t):(n.encoding=!0,this.encoder.encode(t,function(e){for(var r=0;r<e.length;r++)n.engine.write(e[r],t.options);n.encoding=!1,n.processPacketQueue()}))};je.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var t=this.packetBuffer.shift();this.packet(t)}};je.prototype.cleanup=function(){st("cleanup");for(var t=this.subs.length,n=0;n<t;n++){var e=this.subs.shift();e.destroy()}this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()};je.prototype.close=je.prototype.disconnect=function(){st("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,this.readyState==="opening"&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()};je.prototype.onclose=function(t){st("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",t),this._reconnection&&!this.skipReconnect&&this.reconnect()};je.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var t=this;if(this.backoff.attempts>=this._reconnectionAttempts)st("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var n=this.backoff.duration();st("will wait %dms before reconnect attempt",n),this.reconnecting=!0;var e=setTimeout(function(){t.skipReconnect||(st("attempting reconnect"),t.emitAll("reconnect_attempt",t.backoff.attempts),t.emitAll("reconnecting",t.backoff.attempts),!t.skipReconnect&&t.open(function(r){r?(st("reconnect attempt error"),t.reconnecting=!1,t.reconnect(),t.emitAll("reconnect_error",r.data)):(st("reconnect success"),t.onreconnect())}))},n);this.subs.push({destroy:function(){clearTimeout(e)}})}};je.prototype.onreconnect=function(){var t=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",t)};(function(t,n){var e=ax,r=J0,i=Ji,o=Tt("socket.io-client");t.exports=n=c;var s=n.managers={};function c(h,a){typeof h=="object"&&(a=h,h=void 0),a=a||{};var f=e(h),p=f.source,x=f.id,u=f.path,b=s[x]&&u in s[x].nsps,m=a.forceNew||a["force new connection"]||a.multiplex===!1||b,E;return m?(o("ignoring socket cache for %s",p),E=i(p,a)):(s[x]||(o("new io instance for %s",p),s[x]=i(p,a)),E=s[x]),f.query&&!a.query&&(a.query=f.query),E.socket(f.path,a)}n.protocol=r.protocol,n.connect=c,n.Manager=Ji,n.Socket=ha})(nn,nn.exports);var Bu=nn.exports;const Au=A0(Bu);class Cu extends gn{constructor(e){super(e);ye(this,"customSocket");ye(this,"__eventStore",new Xf);ye(this,"__socket");this.customSocket=e.config.customSocket}setup(e){return De(this,null,function*(){e.customSocket&&(this.customSocket=e.customSocket),yield this.__initSocket(),this.customSocket||(yield this.__connectSocket())})}getToken(){return Promise.resolve(this._plvSocket.config.token)}getSocket(e=!0){if(e&&!this.__socket)throw new Error("Socket 连接未初始化");return this.__socket}__initSocket(){return new Promise(e=>{De(this,null,function*(){if(this.customSocket)this.__socket=this.customSocket;else{const r=yn(this._plvSocket.config.domainInfo).chatWsDomain,i=[2e3,3e3,4e3,5e3],o=yield this.getToken();this.__socket=Au(ws(r),{query:{token:o,version:this._plvSocket.config.socketVersion||"3.0"},transports:[Vf()?"websocket":"polling"],reconnectionDelay:i[Math.floor(Math.random()*i.length)],randomizationFactor:Math.random()})}this.__bindConnectEvent(),this.__eventStore.listenSocketEvent(this.__socket),e()})})}__connectSocket(){return new Promise(e=>{const r=this.getSocket(),i=()=>{e()};r.disconnected&&(r.once("connect",i),r.connect()),r.connected&&i()})}__loginSocket(){return De(this,null,function*(){const e=this._plvSocket.getUserInfo(),r=yield this._plvSocket.channel.getChannelInfo(),i=this._plvSocket.config.statisticsParams,o={EVENT:"LOGIN",values:[e.nick,e.pic,e.userId],channelId:String(r.channelId),roomId:String(r.channelId),type:e.userType};r.sessionId&&(o.sessionId=r.sessionId),(i!=null&&i.param4||e.wxUnionId)&&(o.param4=i==null?void 0:i.param4),i!=null&&i.param5&&(o.param5=i.param5),e.actor&&(o.actor=e.actor);const c=(yield this.emitSocket(o,"message",{directCallback:!0}))[0];String(c)[0]==="2"?this._plvSocket.eventEmitter.emit(vt.LoginSuccess,{code:c}):this._plvSocket.eventEmitter.emit(vt.LoginFailed,{code:c})})}__bindConnectEvent(){const e=this.getSocket(),r={connect:()=>{const{autoLogin:i=!0}=this._plvSocket.config;i&&this.__loginSocket(),this._plvSocket.eventEmitter.emit(vt.ConnectSuccess)},disconnect:()=>{this._plvSocket.eventEmitter.emit(vt.Disconnect)},reconnect:()=>{this._plvSocket.eventEmitter.emit(vt.ReconnectSuccess)},error:()=>{this._plvSocket.eventEmitter.emit(vt.ConnectFailed,{reason:n0.SocketConnectError})},connect_error:()=>{this._plvSocket.eventEmitter.emit(vt.ConnectFailed,{reason:n0.SocketConnectError})},connect_timeout:()=>{this._plvSocket.eventEmitter.emit(vt.ConnectFailed,{reason:n0.SocketConnectTimeout})}};for(const i in r)e.on(i,r[i])}emitSocket(e,r="message",i){return new Promise((o,s)=>{De(this,null,function*(){const{checkCode:c=!0,directCallback:h=!1}=i||{},a=this.getSocket(),f=(...p)=>{if(h){o(p);return}const x=p[0];let u=x;if(x instanceof ArrayBuffer)return;let b=x;if(typeof x=="string")try{b=JSON.parse(x)}catch(m){}if(typeof x=="object"&&(b=x),b&&typeof b.code=="number"&&c)if(b.code===200)u=b.data;else{s(b);return}else u=b;o(u)};a==null||a.emit(r,JSON.stringify(e),f)})})}addSocketHandles(e,r,i="message"){this.__eventStore.addSocketHandles(e,r,i)}clearSocketHandles(e){this.__eventStore.clearSocketHandles(e)}disconnect(){return new Promise(e=>{const r=this.getSocket(!1);if(!r){e();return}if(r.disconnected){e();return}r.once("disconnect",()=>{e()}),r.disconnect()})}}var Zr=function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=n,e.d=function(r,i,o){e.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:o})},e.r=function(r){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},e.t=function(r,i){if(1&i&&(r=e(r)),8&i||4&i&&typeof r=="object"&&r&&r.__esModule)return r;var o=Object.create(null);if(e.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:r}),2&i&&typeof r!="string")for(var s in r)e.d(o,s,function(c){return r[c]}.bind(null,s));return o},e.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return e.d(i,"a",i),i},e.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},e.p="",e(e.s=253)}([function(t,n,e){(function(r){var i=function(o){return o&&o.Math==Math&&o};t.exports=i(typeof globalThis=="object"&&globalThis)||i(typeof window=="object"&&window)||i(typeof self=="object"&&self)||i(typeof r=="object"&&r)||function(){return this}()||Function("return this")()}).call(this,e(118))},function(t,n){t.exports=function(e){try{return!!e()}catch(r){return!0}}},function(t,n,e){var r=e(53),i=Function.prototype,o=i.bind,s=i.call,c=r&&o.bind(s,s);t.exports=r?function(h){return h&&c(h)}:function(h){return h&&function(){return s.apply(h,arguments)}}},function(t,n,e){var r,i,o,s=e(155),c=e(13),h=e(0),a=e(6),f=e(7),p=e(9),x=e(46),u=e(58),b=e(18),m=e(17),E=e(10).f,A=e(22),g=e(66),v=e(38),d=e(4),_=e(54),B=h.Int8Array,C=B&&B.prototype,S=h.Uint8ClampedArray,k=S&&S.prototype,F=B&&g(B),D=C&&g(C),O=Object.prototype,M=h.TypeError,U=d("toStringTag"),z=_("TYPED_ARRAY_TAG"),j=_("TYPED_ARRAY_CONSTRUCTOR"),W=s&&!!v&&x(h.opera)!=="Opera",Q=!1,Z={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},te={BigInt64Array:8,BigUint64Array:8},P=function(l){if(!f(l))return!1;var y=x(l);return p(Z,y)||p(te,y)};for(r in Z)(o=(i=h[r])&&i.prototype)?b(o,j,i):W=!1;for(r in te)(o=(i=h[r])&&i.prototype)&&b(o,j,i);if((!W||!a(F)||F===Function.prototype)&&(F=function(){throw M("Incorrect invocation")},W))for(r in Z)h[r]&&v(h[r],F);if((!W||!D||D===O)&&(D=F.prototype,W))for(r in Z)h[r]&&v(h[r].prototype,D);if(W&&g(k)!==D&&v(k,D),c&&!p(D,U))for(r in Q=!0,E(D,U,{get:function(){return f(this)?this[z]:void 0}}),Z)h[r]&&b(h[r],z,r);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:W,TYPED_ARRAY_CONSTRUCTOR:j,TYPED_ARRAY_TAG:Q&&z,aTypedArray:function(l){if(P(l))return l;throw M("Target is not a typed array")},aTypedArrayConstructor:function(l){if(a(l)&&(!v||A(F,l)))return l;throw M(u(l)+" is not a typed array constructor")},exportTypedArrayMethod:function(l,y,w,T){if(c){if(w)for(var N in Z){var X=h[N];if(X&&p(X.prototype,l))try{delete X.prototype[l]}catch(V){try{X.prototype[l]=y}catch(Y){}}}D[l]&&!w||m(D,l,w?y:W&&C[l]||y,T)}},exportTypedArrayStaticMethod:function(l,y,w){var T,N;if(c){if(v){if(w){for(T in Z)if((N=h[T])&&p(N,l))try{delete N[l]}catch(X){}}if(F[l]&&!w)return;try{return m(F,l,w?y:W&&F[l]||y)}catch(X){}}for(T in Z)!(N=h[T])||N[l]&&!w||m(N,l,y)}},isView:function(l){if(!f(l))return!1;var y=x(l);return y==="DataView"||p(Z,y)||p(te,y)},isTypedArray:P,TypedArray:F,TypedArrayPrototype:D}},function(t,n,e){var r=e(0),i=e(72),o=e(9),s=e(54),c=e(94),h=e(119),a=i("wks"),f=r.Symbol,p=f&&f.for,x=h?f:f&&f.withoutSetter||s;t.exports=function(u){if(!o(a,u)||!c&&typeof a[u]!="string"){var b="Symbol."+u;c&&o(f,u)?a[u]=f[u]:a[u]=h&&p?p(b):x(b)}return a[u]}},function(t,n,e){var r=e(0),i=e(47).f,o=e(18),s=e(17),c=e(93),h=e(127),a=e(60);t.exports=function(f,p){var x,u,b,m,E,A=f.target,g=f.global,v=f.stat;if(x=g?r:v?r[A]||c(A,{}):(r[A]||{}).prototype)for(u in p){if(m=p[u],b=f.noTargetGet?(E=i(x,u))&&E.value:x[u],!a(g?u:A+(v?".":"#")+u,f.forced)&&b!==void 0){if(typeof m==typeof b)continue;h(m,b)}(f.sham||b&&b.sham)&&o(m,"sham",!0),s(x,u,m,f)}}},function(t,n){t.exports=function(e){return typeof e=="function"}},function(t,n,e){var r=e(6);t.exports=function(i){return typeof i=="object"?i!==null:r(i)}},function(t,n,e){var r=e(0),i=e(7),o=r.String,s=r.TypeError;t.exports=function(c){if(i(c))return c;throw s(o(c)+" is not an object")}},function(t,n,e){var r=e(2),i=e(14),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(s,c){return o(i(s),c)}},function(t,n,e){var r=e(0),i=e(13),o=e(120),s=e(121),c=e(8),h=e(56),a=r.TypeError,f=Object.defineProperty,p=Object.getOwnPropertyDescriptor;n.f=i?s?function(x,u,b){if(c(x),u=h(u),c(b),typeof x=="function"&&u==="prototype"&&"value"in b&&"writable"in b&&!b.writable){var m=p(x,u);m&&m.writable&&(x[u]=b.value,b={configurable:"configurable"in b?b.configurable:m.configurable,enumerable:"enumerable"in b?b.enumerable:m.enumerable,writable:!1})}return f(x,u,b)}:f:function(x,u,b){if(c(x),u=h(u),c(b),o)try{return f(x,u,b)}catch(m){}if("get"in b||"set"in b)throw a("Accessors not supported");return"value"in b&&(x[u]=b.value),x}},function(t,n,e){var r=e(53),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},function(t,n,e){var r=e(91),i=e(17),o=e(167);r||i(Object.prototype,"toString",o,{unsafe:!0})},function(t,n,e){var r=e(1);t.exports=!r(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},function(t,n,e){var r=e(0),i=e(36),o=r.Object;t.exports=function(s){return o(i(s))}},function(t,n,e){var r=e(29);t.exports=function(i){return r(i.length)}},function(t,n,e){var r=e(5),i=e(78);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},function(t,n,e){var r=e(0),i=e(6),o=e(9),s=e(18),c=e(93),h=e(74),a=e(23),f=e(45).CONFIGURABLE,p=a.get,x=a.enforce,u=String(String).split("String");(t.exports=function(b,m,E,A){var g,v=!!A&&!!A.unsafe,d=!!A&&!!A.enumerable,_=!!A&&!!A.noTargetGet,B=A&&A.name!==void 0?A.name:m;i(E)&&(String(B).slice(0,7)==="Symbol("&&(B="["+String(B).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!o(E,"name")||f&&E.name!==B)&&s(E,"name",B),(g=x(E)).source||(g.source=u.join(typeof B=="string"?B:""))),b!==r?(v?!_&&b[m]&&(d=!0):delete b[m],d?b[m]=E:s(b,m,E)):d?b[m]=E:c(m,E)})(Function.prototype,"toString",function(){return i(this)&&p(this).source||h(this)})},function(t,n,e){var r=e(13),i=e(10),o=e(44);t.exports=r?function(s,c,h){return i.f(s,c,o(1,h))}:function(s,c,h){return s[c]=h,s}},function(t,n,e){var r=e(0),i=e(46),o=r.String;t.exports=function(s){if(i(s)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return o(s)}},function(t,n,e){var r=e(2),i=e(45).PROPER,o=e(17),s=e(8),c=e(22),h=e(19),a=e(1),f=e(98),p=RegExp.prototype,x=p.toString,u=r(f),b=a(function(){return x.call({source:"a",flags:"b"})!="/a/b"}),m=i&&x.name!="toString";(b||m)&&o(RegExp.prototype,"toString",function(){var E=s(this),A=h(E.source),g=E.flags;return"/"+A+"/"+h(g===void 0&&c(p,E)&&!("flags"in p)?u(E):g)},{unsafe:!0})},function(t,n,e){var r=e(40),i=e(2),o=e(77),s=e(14),c=e(15),h=e(108),a=i([].push),f=function(p){var x=p==1,u=p==2,b=p==3,m=p==4,E=p==6,A=p==7,g=p==5||E;return function(v,d,_,B){for(var C,S,k=s(v),F=o(k),D=r(d,_),O=c(F),M=0,U=B||h,z=x?U(v,O):u||A?U(v,0):void 0;O>M;M++)if((g||M in F)&&(S=D(C=F[M],M,k),p))if(x)z[M]=S;else if(S)switch(p){case 3:return!0;case 5:return C;case 6:return M;case 2:a(z,C)}else switch(p){case 4:return!1;case 7:a(z,C)}return E?-1:b||m?m:z}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},function(t,n,e){var r=e(2);t.exports=r({}.isPrototypeOf)},function(t,n,e){var r,i,o,s=e(166),c=e(0),h=e(2),a=e(7),f=e(18),p=e(9),x=e(92),u=e(75),b=e(59),m=c.TypeError,E=c.WeakMap;if(s||x.state){var A=x.state||(x.state=new E),g=h(A.get),v=h(A.has),d=h(A.set);r=function(B,C){if(v(A,B))throw new m("Object already initialized");return C.facade=B,d(A,B,C),C},i=function(B){return g(A,B)||{}},o=function(B){return v(A,B)}}else{var _=u("state");b[_]=!0,r=function(B,C){if(p(B,_))throw new m("Object already initialized");return C.facade=B,f(B,_,C),C},i=function(B){return p(B,_)?B[_]:{}},o=function(B){return p(B,_)}}t.exports={set:r,get:i,has:o,enforce:function(B){return o(B)?i(B):r(B,{})},getterFor:function(B){return function(C){var S;if(!a(C)||(S=i(C)).type!==B)throw m("Incompatible receiver, "+B+" required");return S}}}},function(t,n,e){var r=e(77),i=e(36);t.exports=function(o){return r(i(o))}},function(t,n,e){(function(r){var i;t.exports=(i=i||function(o,s){var c;if(typeof window!="undefined"&&window.crypto&&(c=window.crypto),typeof self!="undefined"&&self.crypto&&(c=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(c=globalThis.crypto),!c&&typeof window!="undefined"&&window.msCrypto&&(c=window.msCrypto),!c&&r!==void 0&&r.crypto&&(c=r.crypto),!c)try{c=e(197)}catch(d){}var h=function(){if(c){if(typeof c.getRandomValues=="function")try{return c.getRandomValues(new Uint32Array(1))[0]}catch(d){}if(typeof c.randomBytes=="function")try{return c.randomBytes(4).readInt32LE()}catch(d){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function d(){}return function(_){var B;return d.prototype=_,B=new d,d.prototype=null,B}}(),f={},p=f.lib={},x=p.Base={extend:function(d){var _=a(this);return d&&_.mixIn(d),_.hasOwnProperty("init")&&this.init!==_.init||(_.init=function(){_.$super.init.apply(this,arguments)}),_.init.prototype=_,_.$super=this,_},create:function(){var d=this.extend();return d.init.apply(d,arguments),d},init:function(){},mixIn:function(d){for(var _ in d)d.hasOwnProperty(_)&&(this[_]=d[_]);d.hasOwnProperty("toString")&&(this.toString=d.toString)},clone:function(){return this.init.prototype.extend(this)}},u=p.WordArray=x.extend({init:function(d,_){d=this.words=d||[],this.sigBytes=_!=null?_:4*d.length},toString:function(d){return(d||m).stringify(this)},concat:function(d){var _=this.words,B=d.words,C=this.sigBytes,S=d.sigBytes;if(this.clamp(),C%4)for(var k=0;k<S;k++){var F=B[k>>>2]>>>24-k%4*8&255;_[C+k>>>2]|=F<<24-(C+k)%4*8}else for(var D=0;D<S;D+=4)_[C+D>>>2]=B[D>>>2];return this.sigBytes+=S,this},clamp:function(){var d=this.words,_=this.sigBytes;d[_>>>2]&=4294967295<<32-_%4*8,d.length=o.ceil(_/4)},clone:function(){var d=x.clone.call(this);return d.words=this.words.slice(0),d},random:function(d){for(var _=[],B=0;B<d;B+=4)_.push(h());return new u.init(_,d)}}),b=f.enc={},m=b.Hex={stringify:function(d){for(var _=d.words,B=d.sigBytes,C=[],S=0;S<B;S++){var k=_[S>>>2]>>>24-S%4*8&255;C.push((k>>>4).toString(16)),C.push((15&k).toString(16))}return C.join("")},parse:function(d){for(var _=d.length,B=[],C=0;C<_;C+=2)B[C>>>3]|=parseInt(d.substr(C,2),16)<<24-C%8*4;return new u.init(B,_/2)}},E=b.Latin1={stringify:function(d){for(var _=d.words,B=d.sigBytes,C=[],S=0;S<B;S++){var k=_[S>>>2]>>>24-S%4*8&255;C.push(String.fromCharCode(k))}return C.join("")},parse:function(d){for(var _=d.length,B=[],C=0;C<_;C++)B[C>>>2]|=(255&d.charCodeAt(C))<<24-C%4*8;return new u.init(B,_)}},A=b.Utf8={stringify:function(d){try{return decodeURIComponent(escape(E.stringify(d)))}catch(_){throw new Error("Malformed UTF-8 data")}},parse:function(d){return E.parse(unescape(encodeURIComponent(d)))}},g=p.BufferedBlockAlgorithm=x.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(d){typeof d=="string"&&(d=A.parse(d)),this._data.concat(d),this._nDataBytes+=d.sigBytes},_process:function(d){var _,B=this._data,C=B.words,S=B.sigBytes,k=this.blockSize,F=S/(4*k),D=(F=d?o.ceil(F):o.max((0|F)-this._minBufferSize,0))*k,O=o.min(4*D,S);if(D){for(var M=0;M<D;M+=k)this._doProcessBlock(C,M);_=C.splice(0,D),B.sigBytes-=O}return new u.init(_,O)},clone:function(){var d=x.clone.call(this);return d._data=this._data.clone(),d},_minBufferSize:0}),v=(p.Hasher=g.extend({cfg:x.extend(),init:function(d){this.cfg=this.cfg.extend(d),this.reset()},reset:function(){g.reset.call(this),this._doReset()},update:function(d){return this._append(d),this._process(),this},finalize:function(d){return d&&this._append(d),this._doFinalize()},blockSize:16,_createHelper:function(d){return function(_,B){return new d.init(B).finalize(_)}},_createHmacHelper:function(d){return function(_,B){return new v.HMAC.init(d,B).finalize(_)}}}),f.algo={});return f}(Math),i)}).call(this,e(118))},function(t,n,e){var r=e(0),i=e(6),o=function(s){return i(s)?s:void 0};t.exports=function(s,c){return arguments.length<2?o(r[s]):r[s]&&r[s][c]}},function(t,n,e){var r=e(28),i=Math.max,o=Math.min;t.exports=function(s,c){var h=r(s);return h<0?i(h+c,0):o(h,c)}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(i){var o=+i;return o!=o||o===0?0:(o>0?r:e)(o)}},function(t,n,e){var r=e(28),i=Math.min;t.exports=function(o){return o>0?i(r(o),9007199254740991):0}},function(t,n,e){var r=e(13),i=e(45).EXISTS,o=e(2),s=e(10).f,c=Function.prototype,h=o(c.toString),a=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,f=o(a.exec);r&&!i&&s(c,"name",{configurable:!0,get:function(){try{return f(a,h(this))[1]}catch(p){return""}}})},function(t,n,e){var r=e(0),i=e(6),o=e(58),s=r.TypeError;t.exports=function(c){if(i(c))return c;throw s(o(c)+" is not a function")}},function(t,n,e){var r=e(2),i=r({}.toString),o=r("".slice);t.exports=function(s){return o(i(s),8,-1)}},function(t,n,e){var r=e(123),i=e(97).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(o){return r(o,i)}},function(t,n,e){var r,i=e(8),o=e(129),s=e(97),c=e(59),h=e(130),a=e(73),f=e(75),p=f("IE_PROTO"),x=function(){},u=function(E){return"<script>"+E+"<\/script>"},b=function(E){E.write(u("")),E.close();var A=E.parentWindow.Object;return E=null,A},m=function(){try{r=new ActiveXObject("htmlfile")}catch(v){}var E,A;m=typeof document!="undefined"?document.domain&&r?b(r):((A=a("iframe")).style.display="none",h.appendChild(A),A.src="javascript:",(E=A.contentWindow.document).open(),E.write(u("document.F=Object")),E.close(),E.F):b(r);for(var g=s.length;g--;)delete m.prototype[s[g]];return m()};c[p]=!0,t.exports=Object.create||function(E,A){var g;return E!==null?(x.prototype=i(E),g=new x,x.prototype=null,g[p]=E):g=m(),A===void 0?g:o.f(g,A)}},function(t,n,e){var r=e(53),i=Function.prototype,o=i.apply,s=i.call;t.exports=typeof Reflect=="object"&&Reflect.apply||(r?s.bind(o):function(){return s.apply(o,arguments)})},function(t,n,e){var r=e(0).TypeError;t.exports=function(i){if(i==null)throw r("Can't call method on "+i);return i}},function(t,n,e){var r=e(26);t.exports=r("navigator","userAgent")||""},function(t,n,e){var r=e(2),i=e(8),o=e(168);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var s,c=!1,h={};try{(s=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(h,[]),c=h instanceof Array}catch(a){}return function(a,f){return i(a),o(f),c?s(a,f):a.__proto__=f,a}}():void 0)},function(t,n,e){var r=e(5),i=e(134),o=e(1),s=e(7),c=e(106).onFreeze,h=Object.freeze;r({target:"Object",stat:!0,forced:o(function(){h(1)}),sham:!i},{freeze:function(a){return h&&s(a)?h(c(a)):a}})},function(t,n,e){var r=e(2),i=e(31),o=e(53),s=r(r.bind);t.exports=function(c,h){return i(c),h===void 0?c:o?s(c,h):function(){return c.apply(h,arguments)}}},function(t,n,e){var r=e(24),i=e(147),o=e(65),s=e(23),c=e(10).f,h=e(115),a=e(42),f=e(13),p=s.set,x=s.getterFor("Array Iterator");t.exports=h(Array,"Array",function(b,m){p(this,{type:"Array Iterator",target:r(b),index:0,kind:m})},function(){var b=x(this),m=b.target,E=b.kind,A=b.index++;return!m||A>=m.length?(b.target=void 0,{value:void 0,done:!0}):E=="keys"?{value:A,done:!1}:E=="values"?{value:m[A],done:!1}:{value:[A,m[A]],done:!1}},"values");var u=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!a&&f&&u.name!=="values")try{c(u,"name",{value:"values"})}catch(b){}},function(t,n){t.exports=!1},function(t,n,e){var r=e(31);t.exports=function(i,o){var s=i[o];return s==null?void 0:r(s)}},function(t,n){t.exports=function(e,r){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:r}}},function(t,n,e){var r=e(13),i=e(9),o=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,c=i(o,"name"),h=c&&function(){}.name==="something",a=c&&(!r||r&&s(o,"name").configurable);t.exports={EXISTS:c,PROPER:h,CONFIGURABLE:a}},function(t,n,e){var r=e(0),i=e(91),o=e(6),s=e(32),c=e(4)("toStringTag"),h=r.Object,a=s(function(){return arguments}())=="Arguments";t.exports=i?s:function(f){var p,x,u;return f===void 0?"Undefined":f===null?"Null":typeof(x=function(b,m){try{return b[m]}catch(E){}}(p=h(f),c))=="string"?x:a?s(p):(u=s(p))=="Object"&&o(p.callee)?"Arguments":u}},function(t,n,e){var r=e(13),i=e(11),o=e(124),s=e(44),c=e(24),h=e(56),a=e(9),f=e(120),p=Object.getOwnPropertyDescriptor;n.f=r?p:function(x,u){if(x=c(x),u=h(u),f)try{return p(x,u)}catch(b){}if(a(x,u))return s(!i(o.f,x,u),x[u])}},function(t,n,e){var r=e(35),i=e(11),o=e(2),s=e(101),c=e(1),h=e(8),a=e(6),f=e(28),p=e(29),x=e(19),u=e(36),b=e(102),m=e(43),E=e(171),A=e(104),g=e(4)("replace"),v=Math.max,d=Math.min,_=o([].concat),B=o([].push),C=o("".indexOf),S=o("".slice),k="a".replace(/./,"$0")==="$0",F=!!/./[g]&&/./[g]("a","$0")==="";s("replace",function(D,O,M){var U=F?"$":"$0";return[function(z,j){var W=u(this),Q=z==null?void 0:m(z,g);return Q?i(Q,z,W,j):i(O,x(W),z,j)},function(z,j){var W=h(this),Q=x(z);if(typeof j=="string"&&C(j,U)===-1&&C(j,"$<")===-1){var Z=M(O,W,Q,j);if(Z.done)return Z.value}var te=a(j);te||(j=x(j));var P=W.global;if(P){var l=W.unicode;W.lastIndex=0}for(var y=[];;){var w=A(W,Q);if(w===null||(B(y,w),!P))break;x(w[0])===""&&(W.lastIndex=b(Q,p(W.lastIndex),l))}for(var T,N="",X=0,V=0;V<y.length;V++){for(var Y=x((w=y[V])[0]),ie=v(d(f(w.index),Q.length),0),ue=[],Ee=1;Ee<w.length;Ee++)B(ue,(T=w[Ee])===void 0?T:String(T));var we=w.groups;if(te){var ve=_([Y],ue,ie,Q);we!==void 0&&B(ve,we);var Be=x(r(j,void 0,ve))}else Be=E(Y,Q,ie,ue,we,j);ie>=X&&(N+=S(Q,X,ie)+Be,X=ie+Y.length)}return N+S(Q,X)}]},!!c(function(){var D=/./;return D.exec=function(){var O=[];return O.groups={a:"7"},O},"".replace(D,"$<a>")!=="7"})||!k||F)},function(t,n,e){var r=e(10).f,i=e(9),o=e(4)("toStringTag");t.exports=function(s,c,h){s&&!h&&(s=s.prototype),s&&!i(s,o)&&r(s,o,{configurable:!0,value:c})}},function(t,n,e){var r=e(2);t.exports=r([].slice)},function(t,n,e){var r=e(5),i=e(0),o=e(83),s=e(80),c=e(7),h=e(27),a=e(15),f=e(24),p=e(62),x=e(4),u=e(84),b=e(50),m=u("slice"),E=x("species"),A=i.Array,g=Math.max;r({target:"Array",proto:!0,forced:!m},{slice:function(v,d){var _,B,C,S=f(this),k=a(S),F=h(v,k),D=h(d===void 0?k:d,k);if(o(S)&&(_=S.constructor,(s(_)&&(_===A||o(_.prototype))||c(_)&&(_=_[E])===null)&&(_=void 0),_===A||_===void 0))return b(S,F,D);for(B=new(_===void 0?A:_)(g(D-F,0)),C=0;F<D;F++,C++)F in S&&p(B,C,S[F]);return B.length=C,B}})},function(t,n,e){var r=e(5),i=e(2),o=e(77),s=e(24),c=e(109),h=i([].join),a=o!=Object,f=c("join",",");r({target:"Array",proto:!0,forced:a||!f},{join:function(p){return h(s(this),p===void 0?",":p)}})},function(t,n,e){var r=e(1);t.exports=!r(function(){var i=function(){}.bind();return typeof i!="function"||i.hasOwnProperty("prototype")})},function(t,n,e){var r=e(2),i=0,o=Math.random(),s=r(1 .toString);t.exports=function(c){return"Symbol("+(c===void 0?"":c)+")_"+s(++i+o,36)}},function(t,n,e){var r,i,o=e(0),s=e(37),c=o.process,h=o.Deno,a=c&&c.versions||h&&h.version,f=a&&a.v8;f&&(i=(r=f.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&s&&(!(r=s.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/))&&(i=+r[1]),t.exports=i},function(t,n,e){var r=e(122),i=e(57);t.exports=function(o){var s=r(o,"string");return i(s)?s:s+""}},function(t,n,e){var r=e(0),i=e(26),o=e(6),s=e(22),c=e(119),h=r.Object;t.exports=c?function(a){return typeof a=="symbol"}:function(a){var f=i("Symbol");return o(f)&&s(f.prototype,h(a))}},function(t,n,e){var r=e(0).String;t.exports=function(i){try{return r(i)}catch(o){return"Object"}}},function(t,n){t.exports={}},function(t,n,e){var r=e(1),i=e(6),o=/#|\.prototype\./,s=function(p,x){var u=h[c(p)];return u==f||u!=a&&(i(x)?r(x):!!x)},c=s.normalize=function(p){return String(p).replace(o,".").toLowerCase()},h=s.data={},a=s.NATIVE="N",f=s.POLYFILL="P";t.exports=s},function(t,n,e){var r=e(35),i=e(11),o=e(2),s=e(101),c=e(133),h=e(8),a=e(36),f=e(79),p=e(102),x=e(29),u=e(19),b=e(43),m=e(81),E=e(104),A=e(78),g=e(99),v=e(1),d=g.UNSUPPORTED_Y,_=Math.min,B=[].push,C=o(/./.exec),S=o(B),k=o("".slice);s("split",function(F,D,O){var M;return M="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(U,z){var j=u(a(this)),W=z===void 0?4294967295:z>>>0;if(W===0)return[];if(U===void 0)return[j];if(!c(U))return i(D,j,U,W);for(var Q,Z,te,P=[],l=(U.ignoreCase?"i":"")+(U.multiline?"m":"")+(U.unicode?"u":"")+(U.sticky?"y":""),y=0,w=new RegExp(U.source,l+"g");(Q=i(A,w,j))&&!((Z=w.lastIndex)>y&&(S(P,k(j,y,Q.index)),Q.length>1&&Q.index<j.length&&r(B,P,m(Q,1)),te=Q[0].length,y=Z,P.length>=W));)w.lastIndex===Q.index&&w.lastIndex++;return y===j.length?!te&&C(w,"")||S(P,""):S(P,k(j,y)),P.length>W?m(P,0,W):P}:"0".split(void 0,0).length?function(U,z){return U===void 0&&z===0?[]:i(D,this,U,z)}:D,[function(U,z){var j=a(this),W=U==null?void 0:b(U,F);return W?i(W,U,j,z):i(M,u(j),U,z)},function(U,z){var j=h(this),W=u(U),Q=O(M,j,W,z,M!==D);if(Q.done)return Q.value;var Z=f(j,RegExp),te=j.unicode,P=(j.ignoreCase?"i":"")+(j.multiline?"m":"")+(j.unicode?"u":"")+(d?"g":"y"),l=new Z(d?"^(?:"+j.source+")":j,P),y=z===void 0?4294967295:z>>>0;if(y===0)return[];if(W.length===0)return E(l,W)===null?[W]:[];for(var w=0,T=0,N=[];T<W.length;){l.lastIndex=d?0:T;var X,V=E(l,d?k(W,T):W);if(V===null||(X=_(x(l.lastIndex+(d?T:0)),W.length))===w)T=p(W,T,te);else{if(S(N,k(W,w,T)),N.length===y)return N;for(var Y=1;Y<=V.length-1;Y++)if(S(N,V[Y]),N.length===y)return N;T=w=X}}return S(N,k(W,w)),N}]},!!v(function(){var F=/(?:)/,D=F.exec;F.exec=function(){return D.apply(this,arguments)};var O="ab".split(F);return O.length!==2||O[0]!=="a"||O[1]!=="b"}),d)},function(t,n,e){var r=e(56),i=e(10),o=e(44);t.exports=function(s,c,h){var a=r(c);a in s?i.f(s,a,o(0,h)):s[a]=h}},function(t,n,e){var r=e(0),i=e(137),o=e(138),s=e(177),c=e(18),h=function(f){if(f&&f.forEach!==s)try{c(f,"forEach",s)}catch(p){f.forEach=s}};for(var a in i)i[a]&&h(r[a]&&r[a].prototype);h(o)},function(t,n,e){var r=e(0),i=e(22),o=r.TypeError;t.exports=function(s,c){if(i(c,s))return s;throw o("Incorrect invocation")}},function(t,n){t.exports={}},function(t,n,e){var r=e(0),i=e(9),o=e(6),s=e(14),c=e(75),h=e(145),a=c("IE_PROTO"),f=r.Object,p=f.prototype;t.exports=h?f.getPrototypeOf:function(x){var u=s(x);if(i(u,a))return u[a];var b=u.constructor;return o(b)&&u instanceof b?b.prototype:u instanceof f?p:null}},function(t,n,e){var r=e(103).charAt,i=e(19),o=e(23),s=e(115),c=o.set,h=o.getterFor("String Iterator");s(String,"String",function(a){c(this,{type:"String Iterator",string:i(a),index:0})},function(){var a,f=h(this),p=f.string,x=f.index;return x>=p.length?{value:void 0,done:!0}:(a=r(p,x),f.index+=a.length,{value:a,done:!1})})},function(t,n,e){var r=e(0),i=e(137),o=e(138),s=e(41),c=e(18),h=e(4),a=h("iterator"),f=h("toStringTag"),p=s.values,x=function(b,m){if(b){if(b[a]!==p)try{c(b,a,p)}catch(A){b[a]=p}if(b[f]||c(b,f,m),i[m]){for(var E in s)if(b[E]!==s[E])try{c(b,E,s[E])}catch(A){b[E]=s[E]}}}};for(var u in i)x(r[u]&&r[u].prototype,u);x(o,"DOMTokenList")},function(t,n,e){var r=e(5),i=e(0),o=e(26),s=e(35),c=e(11),h=e(2),a=e(42),f=e(13),p=e(94),x=e(1),u=e(9),b=e(83),m=e(6),E=e(7),A=e(22),g=e(57),v=e(8),d=e(14),_=e(24),B=e(56),C=e(19),S=e(44),k=e(34),F=e(100),D=e(33),O=e(135),M=e(128),U=e(47),z=e(10),j=e(129),W=e(124),Q=e(50),Z=e(17),te=e(72),P=e(75),l=e(59),y=e(54),w=e(4),T=e(149),N=e(150),X=e(49),V=e(23),Y=e(21).forEach,ie=P("hidden"),ue=w("toPrimitive"),Ee=V.set,we=V.getterFor("Symbol"),ve=Object.prototype,Be=i.Symbol,qe=Be&&Be.prototype,Re=i.TypeError,We=i.QObject,J=o("JSON","stringify"),ce=U.f,le=z.f,me=O.f,ge=W.f,Ve=h([].push),Oe=te("symbols"),Te=te("op-symbols"),Ae=te("string-to-symbol-registry"),Ue=te("symbol-to-string-registry"),Ge=te("wks"),$e=!We||!We.prototype||!We.prototype.findChild,ee=f&&x(function(){return k(le({},"a",{get:function(){return le(this,"a",{value:7}).a}})).a!=7})?function(fe,H,L){var K=ce(ve,H);K&&delete ve[H],le(fe,H,L),K&&fe!==ve&&le(ve,H,K)}:le,oe=function(fe,H){var L=Oe[fe]=k(qe);return Ee(L,{type:"Symbol",tag:fe,description:H}),f||(L.description=H),L},he=function(fe,H,L){fe===ve&&he(Te,H,L),v(fe);var K=B(H);return v(L),u(Oe,K)?(L.enumerable?(u(fe,ie)&&fe[ie][K]&&(fe[ie][K]=!1),L=k(L,{enumerable:S(0,!1)})):(u(fe,ie)||le(fe,ie,S(1,{})),fe[ie][K]=!0),ee(fe,K,L)):le(fe,K,L)},be=function(fe,H){v(fe);var L=_(H),K=F(L).concat(Ye(L));return Y(K,function(G){f&&!c(Ce,L,G)||he(fe,G,L[G])}),fe},Ce=function(fe){var H=B(fe),L=c(ge,this,H);return!(this===ve&&u(Oe,H)&&!u(Te,H))&&(!(L||!u(this,H)||!u(Oe,H)||u(this,ie)&&this[ie][H])||L)},He=function(fe,H){var L=_(fe),K=B(H);if(L!==ve||!u(Oe,K)||u(Te,K)){var G=ce(L,K);return!G||!u(Oe,K)||u(L,ie)&&L[ie][K]||(G.enumerable=!0),G}},Ke=function(fe){var H=me(_(fe)),L=[];return Y(H,function(K){u(Oe,K)||u(l,K)||Ve(L,K)}),L},Ye=function(fe){var H=fe===ve,L=me(H?Te:_(fe)),K=[];return Y(L,function(G){!u(Oe,G)||H&&!u(ve,G)||Ve(K,Oe[G])}),K};if(p||(Z(qe=(Be=function(){if(A(qe,this))throw Re("Symbol is not a constructor");var fe=arguments.length&&arguments[0]!==void 0?C(arguments[0]):void 0,H=y(fe),L=function(K){this===ve&&c(L,Te,K),u(this,ie)&&u(this[ie],H)&&(this[ie][H]=!1),ee(this,H,S(1,K))};return f&&$e&&ee(ve,H,{configurable:!0,set:L}),oe(H,fe)}).prototype,"toString",function(){return we(this).tag}),Z(Be,"withoutSetter",function(fe){return oe(y(fe),fe)}),W.f=Ce,z.f=he,j.f=be,U.f=He,D.f=O.f=Ke,M.f=Ye,T.f=function(fe){return oe(w(fe),fe)},f&&(le(qe,"description",{configurable:!0,get:function(){return we(this).description}}),a||Z(ve,"propertyIsEnumerable",Ce,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!p,sham:!p},{Symbol:Be}),Y(F(Ge),function(fe){N(fe)}),r({target:"Symbol",stat:!0,forced:!p},{for:function(fe){var H=C(fe);if(u(Ae,H))return Ae[H];var L=Be(H);return Ae[H]=L,Ue[L]=H,L},keyFor:function(fe){if(!g(fe))throw Re(fe+" is not a symbol");if(u(Ue,fe))return Ue[fe]},useSetter:function(){$e=!0},useSimple:function(){$e=!1}}),r({target:"Object",stat:!0,forced:!p,sham:!f},{create:function(fe,H){return H===void 0?k(fe):be(k(fe),H)},defineProperty:he,defineProperties:be,getOwnPropertyDescriptor:He}),r({target:"Object",stat:!0,forced:!p},{getOwnPropertyNames:Ke,getOwnPropertySymbols:Ye}),r({target:"Object",stat:!0,forced:x(function(){M.f(1)})},{getOwnPropertySymbols:function(fe){return M.f(d(fe))}}),J&&r({target:"JSON",stat:!0,forced:!p||x(function(){var fe=Be();return J([fe])!="[null]"||J({a:fe})!="{}"||J(Object(fe))!="{}"})},{stringify:function(fe,H,L){var K=Q(arguments),G=H;if((E(H)||fe!==void 0)&&!g(fe))return b(H)||(H=function(se,ne){if(m(G)&&(ne=c(G,this,se,ne)),!g(ne))return ne}),K[1]=H,s(J,null,K)}}),!qe[ue]){var Ze=qe.valueOf;Z(qe,ue,function(fe){return c(Ze,this)})}X(Be,"Symbol"),l[ie]=!0},function(t,n,e){var r=e(5),i=e(13),o=e(0),s=e(2),c=e(9),h=e(6),a=e(22),f=e(19),p=e(10).f,x=e(127),u=o.Symbol,b=u&&u.prototype;if(i&&h(u)&&(!("description"in b)||u().description!==void 0)){var m={},E=function(){var C=arguments.length<1||arguments[0]===void 0?void 0:f(arguments[0]),S=a(b,this)?new u(C):C===void 0?u():u(C);return C===""&&(m[S]=!0),S};x(E,u),E.prototype=b,b.constructor=E;var A=String(u("test"))=="Symbol(test)",g=s(b.toString),v=s(b.valueOf),d=/^Symbol\((.*)\)[^)]+$/,_=s("".replace),B=s("".slice);p(b,"description",{configurable:!0,get:function(){var C=v(this),S=g(C);if(c(m,C))return"";var k=A?B(S,7,-1):_(S,d,"$1");return k===""?void 0:k}}),r({global:!0,forced:!0},{Symbol:E})}},function(t,n,e){e(150)("iterator")},function(t,n,e){var r=e(42),i=e(92);(t.exports=function(o,s){return i[o]||(i[o]=s!==void 0?s:{})})("versions",[]).push({version:"3.21.1",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"})},function(t,n,e){var r=e(0),i=e(7),o=r.document,s=i(o)&&i(o.createElement);t.exports=function(c){return s?o.createElement(c):{}}},function(t,n,e){var r=e(2),i=e(6),o=e(92),s=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(c){return s(c)}),t.exports=o.inspectSource},function(t,n,e){var r=e(72),i=e(54),o=r("keys");t.exports=function(s){return o[s]||(o[s]=i(s))}},function(t,n,e){var r=e(6),i=e(7),o=e(38);t.exports=function(s,c,h){var a,f;return o&&r(a=c.constructor)&&a!==h&&i(f=a.prototype)&&f!==h.prototype&&o(s,f),s}},function(t,n,e){var r=e(0),i=e(2),o=e(1),s=e(32),c=r.Object,h=i("".split);t.exports=o(function(){return!c("z").propertyIsEnumerable(0)})?function(a){return s(a)=="String"?h(a,""):c(a)}:c},function(t,n,e){var r,i,o=e(11),s=e(2),c=e(19),h=e(98),a=e(99),f=e(72),p=e(34),x=e(23).get,u=e(131),b=e(132),m=f("native-string-replace",String.prototype.replace),E=RegExp.prototype.exec,A=E,g=s("".charAt),v=s("".indexOf),d=s("".replace),_=s("".slice),B=(i=/b*/g,o(E,r=/a/,"a"),o(E,i,"a"),r.lastIndex!==0||i.lastIndex!==0),C=a.BROKEN_CARET,S=/()??/.exec("")[1]!==void 0;(B||S||C||u||b)&&(A=function(k){var F,D,O,M,U,z,j,W=this,Q=x(W),Z=c(k),te=Q.raw;if(te)return te.lastIndex=W.lastIndex,F=o(A,te,Z),W.lastIndex=te.lastIndex,F;var P=Q.groups,l=C&&W.sticky,y=o(h,W),w=W.source,T=0,N=Z;if(l&&(y=d(y,"y",""),v(y,"g")===-1&&(y+="g"),N=_(Z,W.lastIndex),W.lastIndex>0&&(!W.multiline||W.multiline&&g(Z,W.lastIndex-1)!==`
22
+ `)&&(w="(?: "+w+")",N=" "+N,T++),D=new RegExp("^(?:"+w+")",y)),S&&(D=new RegExp("^"+w+"$(?!\\s)",y)),B&&(O=W.lastIndex),M=o(E,l?D:W,N),l?M?(M.input=_(M.input,T),M[0]=_(M[0],T),M.index=W.lastIndex,W.lastIndex+=M[0].length):W.lastIndex=0:B&&M&&(W.lastIndex=W.global?M.index+M[0].length:O),S&&M&&M.length>1&&o(m,M[0],D,function(){for(U=1;U<arguments.length-2;U++)arguments[U]===void 0&&(M[U]=void 0)}),M&&P)for(M.groups=z=p(null),U=0;U<P.length;U++)z[(j=P[U])[0]]=M[j[1]];return M}),t.exports=A},function(t,n,e){var r=e(8),i=e(105),o=e(4)("species");t.exports=function(s,c){var h,a=r(s).constructor;return a===void 0||(h=r(a)[o])==null?c:i(h)}},function(t,n,e){var r=e(2),i=e(1),o=e(6),s=e(46),c=e(26),h=e(74),a=function(){},f=[],p=c("Reflect","construct"),x=/^\s*(?:class|function)\b/,u=r(x.exec),b=!x.exec(a),m=function(A){if(!o(A))return!1;try{return p(a,f,A),!0}catch(g){return!1}},E=function(A){if(!o(A))return!1;switch(s(A)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return b||!!u(x,h(A))}catch(g){return!0}};E.sham=!0,t.exports=!p||i(function(){var A;return m(m.call)||!m(Object)||!m(function(){A=!0})||A})?E:m},function(t,n,e){var r=e(0),i=e(27),o=e(15),s=e(62),c=r.Array,h=Math.max;t.exports=function(a,f,p){for(var x=o(a),u=i(f,x),b=i(p===void 0?x:p,x),m=c(h(b-u,0)),E=0;u<b;u++,E++)s(m,E,a[u]);return m.length=E,m}},function(t,n,e){var r=e(26),i=e(10),o=e(4),s=e(13),c=o("species");t.exports=function(h){var a=r(h),f=i.f;s&&a&&!a[c]&&f(a,c,{configurable:!0,get:function(){return this}})}},function(t,n,e){var r=e(32);t.exports=Array.isArray||function(i){return r(i)=="Array"}},function(t,n,e){var r=e(1),i=e(4),o=e(55),s=i("species");t.exports=function(c){return o>=51||!r(function(){var h=[];return(h.constructor={})[s]=function(){return{foo:1}},h[c](Boolean).foo!==1})}},function(t,n,e){var r=e(46),i=e(43),o=e(65),s=e(4)("iterator");t.exports=function(c){if(c!=null)return i(c,s)||i(c,"@@iterator")||o[r(c)]}},function(t,n,e){var r=e(4)("iterator"),i=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){i=!0}};s[r]=function(){return this},Array.from(s,function(){throw 2})}catch(c){}t.exports=function(c,h){if(!h&&!i)return!1;var a=!1;try{var f={};f[r]=function(){return{next:function(){return{done:a=!0}}}},c(f)}catch(p){}return a}},function(t,n,e){(function(){var r;function i(l,y,w){l!=null&&(typeof l=="number"?this.fromNumber(l,y,w):y==null&&typeof l!="string"?this.fromString(l,256):this.fromString(l,y))}function o(){return new i(null)}var s=typeof navigator!="undefined";s&&navigator.appName=="Microsoft Internet Explorer"?(i.prototype.am=function(l,y,w,T,N,X){for(var V=32767&y,Y=y>>15;--X>=0;){var ie=32767&this[l],ue=this[l++]>>15,Ee=Y*ie+ue*V;N=((ie=V*ie+((32767&Ee)<<15)+w[T]+(1073741823&N))>>>30)+(Ee>>>15)+Y*ue+(N>>>30),w[T++]=1073741823&ie}return N},r=30):s&&navigator.appName!="Netscape"?(i.prototype.am=function(l,y,w,T,N,X){for(;--X>=0;){var V=y*this[l++]+w[T]+N;N=Math.floor(V/67108864),w[T++]=67108863&V}return N},r=26):(i.prototype.am=function(l,y,w,T,N,X){for(var V=16383&y,Y=y>>14;--X>=0;){var ie=16383&this[l],ue=this[l++]>>14,Ee=Y*ie+ue*V;N=((ie=V*ie+((16383&Ee)<<14)+w[T]+N)>>28)+(Ee>>14)+Y*ue,w[T++]=268435455&ie}return N},r=28),i.prototype.DB=r,i.prototype.DM=(1<<r)-1,i.prototype.DV=1<<r,i.prototype.FV=Math.pow(2,52),i.prototype.F1=52-r,i.prototype.F2=2*r-52;var c,h,a=new Array;for(c=48,h=0;h<=9;++h)a[c++]=h;for(c=97,h=10;h<36;++h)a[c++]=h;for(c=65,h=10;h<36;++h)a[c++]=h;function f(l){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(l)}function p(l,y){var w=a[l.charCodeAt(y)];return w==null?-1:w}function x(l){var y=o();return y.fromInt(l),y}function u(l){var y,w=1;return(y=l>>>16)!=0&&(l=y,w+=16),(y=l>>8)!=0&&(l=y,w+=8),(y=l>>4)!=0&&(l=y,w+=4),(y=l>>2)!=0&&(l=y,w+=2),(y=l>>1)!=0&&(l=y,w+=1),w}function b(l){this.m=l}function m(l){this.m=l,this.mp=l.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<l.DB-15)-1,this.mt2=2*l.t}function E(l,y){return l&y}function A(l,y){return l|y}function g(l,y){return l^y}function v(l,y){return l&~y}function d(l){if(l==0)return-1;var y=0;return!(65535&l)&&(l>>=16,y+=16),!(255&l)&&(l>>=8,y+=8),!(15&l)&&(l>>=4,y+=4),!(3&l)&&(l>>=2,y+=2),!(1&l)&&++y,y}function _(l){for(var y=0;l!=0;)l&=l-1,++y;return y}function B(){}function C(l){return l}function S(l){this.r2=o(),this.q3=o(),i.ONE.dlShiftTo(2*l.t,this.r2),this.mu=this.r2.divide(l),this.m=l}b.prototype.convert=function(l){return l.s<0||l.compareTo(this.m)>=0?l.mod(this.m):l},b.prototype.revert=function(l){return l},b.prototype.reduce=function(l){l.divRemTo(this.m,null,l)},b.prototype.mulTo=function(l,y,w){l.multiplyTo(y,w),this.reduce(w)},b.prototype.sqrTo=function(l,y){l.squareTo(y),this.reduce(y)},m.prototype.convert=function(l){var y=o();return l.abs().dlShiftTo(this.m.t,y),y.divRemTo(this.m,null,y),l.s<0&&y.compareTo(i.ZERO)>0&&this.m.subTo(y,y),y},m.prototype.revert=function(l){var y=o();return l.copyTo(y),this.reduce(y),y},m.prototype.reduce=function(l){for(;l.t<=this.mt2;)l[l.t++]=0;for(var y=0;y<this.m.t;++y){var w=32767&l[y],T=w*this.mpl+((w*this.mph+(l[y]>>15)*this.mpl&this.um)<<15)&l.DM;for(l[w=y+this.m.t]+=this.m.am(0,T,l,y,0,this.m.t);l[w]>=l.DV;)l[w]-=l.DV,l[++w]++}l.clamp(),l.drShiftTo(this.m.t,l),l.compareTo(this.m)>=0&&l.subTo(this.m,l)},m.prototype.mulTo=function(l,y,w){l.multiplyTo(y,w),this.reduce(w)},m.prototype.sqrTo=function(l,y){l.squareTo(y),this.reduce(y)},i.prototype.copyTo=function(l){for(var y=this.t-1;y>=0;--y)l[y]=this[y];l.t=this.t,l.s=this.s},i.prototype.fromInt=function(l){this.t=1,this.s=l<0?-1:0,l>0?this[0]=l:l<-1?this[0]=l+this.DV:this.t=0},i.prototype.fromString=function(l,y){var w;if(y==16)w=4;else if(y==8)w=3;else if(y==256)w=8;else if(y==2)w=1;else if(y==32)w=5;else{if(y!=4)return void this.fromRadix(l,y);w=2}this.t=0,this.s=0;for(var T=l.length,N=!1,X=0;--T>=0;){var V=w==8?255&l[T]:p(l,T);V<0?l.charAt(T)=="-"&&(N=!0):(N=!1,X==0?this[this.t++]=V:X+w>this.DB?(this[this.t-1]|=(V&(1<<this.DB-X)-1)<<X,this[this.t++]=V>>this.DB-X):this[this.t-1]|=V<<X,(X+=w)>=this.DB&&(X-=this.DB))}w==8&&128&l[0]&&(this.s=-1,X>0&&(this[this.t-1]|=(1<<this.DB-X)-1<<X)),this.clamp(),N&&i.ZERO.subTo(this,this)},i.prototype.clamp=function(){for(var l=this.s&this.DM;this.t>0&&this[this.t-1]==l;)--this.t},i.prototype.dlShiftTo=function(l,y){var w;for(w=this.t-1;w>=0;--w)y[w+l]=this[w];for(w=l-1;w>=0;--w)y[w]=0;y.t=this.t+l,y.s=this.s},i.prototype.drShiftTo=function(l,y){for(var w=l;w<this.t;++w)y[w-l]=this[w];y.t=Math.max(this.t-l,0),y.s=this.s},i.prototype.lShiftTo=function(l,y){var w,T=l%this.DB,N=this.DB-T,X=(1<<N)-1,V=Math.floor(l/this.DB),Y=this.s<<T&this.DM;for(w=this.t-1;w>=0;--w)y[w+V+1]=this[w]>>N|Y,Y=(this[w]&X)<<T;for(w=V-1;w>=0;--w)y[w]=0;y[V]=Y,y.t=this.t+V+1,y.s=this.s,y.clamp()},i.prototype.rShiftTo=function(l,y){y.s=this.s;var w=Math.floor(l/this.DB);if(w>=this.t)y.t=0;else{var T=l%this.DB,N=this.DB-T,X=(1<<T)-1;y[0]=this[w]>>T;for(var V=w+1;V<this.t;++V)y[V-w-1]|=(this[V]&X)<<N,y[V-w]=this[V]>>T;T>0&&(y[this.t-w-1]|=(this.s&X)<<N),y.t=this.t-w,y.clamp()}},i.prototype.subTo=function(l,y){for(var w=0,T=0,N=Math.min(l.t,this.t);w<N;)T+=this[w]-l[w],y[w++]=T&this.DM,T>>=this.DB;if(l.t<this.t){for(T-=l.s;w<this.t;)T+=this[w],y[w++]=T&this.DM,T>>=this.DB;T+=this.s}else{for(T+=this.s;w<l.t;)T-=l[w],y[w++]=T&this.DM,T>>=this.DB;T-=l.s}y.s=T<0?-1:0,T<-1?y[w++]=this.DV+T:T>0&&(y[w++]=T),y.t=w,y.clamp()},i.prototype.multiplyTo=function(l,y){var w=this.abs(),T=l.abs(),N=w.t;for(y.t=N+T.t;--N>=0;)y[N]=0;for(N=0;N<T.t;++N)y[N+w.t]=w.am(0,T[N],y,N,0,w.t);y.s=0,y.clamp(),this.s!=l.s&&i.ZERO.subTo(y,y)},i.prototype.squareTo=function(l){for(var y=this.abs(),w=l.t=2*y.t;--w>=0;)l[w]=0;for(w=0;w<y.t-1;++w){var T=y.am(w,y[w],l,2*w,0,1);(l[w+y.t]+=y.am(w+1,2*y[w],l,2*w+1,T,y.t-w-1))>=y.DV&&(l[w+y.t]-=y.DV,l[w+y.t+1]=1)}l.t>0&&(l[l.t-1]+=y.am(w,y[w],l,2*w,0,1)),l.s=0,l.clamp()},i.prototype.divRemTo=function(l,y,w){var T=l.abs();if(!(T.t<=0)){var N=this.abs();if(N.t<T.t)return y!=null&&y.fromInt(0),void(w!=null&&this.copyTo(w));w==null&&(w=o());var X=o(),V=this.s,Y=l.s,ie=this.DB-u(T[T.t-1]);ie>0?(T.lShiftTo(ie,X),N.lShiftTo(ie,w)):(T.copyTo(X),N.copyTo(w));var ue=X.t,Ee=X[ue-1];if(Ee!=0){var we=Ee*(1<<this.F1)+(ue>1?X[ue-2]>>this.F2:0),ve=this.FV/we,Be=(1<<this.F1)/we,qe=1<<this.F2,Re=w.t,We=Re-ue,J=y==null?o():y;for(X.dlShiftTo(We,J),w.compareTo(J)>=0&&(w[w.t++]=1,w.subTo(J,w)),i.ONE.dlShiftTo(ue,J),J.subTo(X,X);X.t<ue;)X[X.t++]=0;for(;--We>=0;){var ce=w[--Re]==Ee?this.DM:Math.floor(w[Re]*ve+(w[Re-1]+qe)*Be);if((w[Re]+=X.am(0,ce,w,We,0,ue))<ce)for(X.dlShiftTo(We,J),w.subTo(J,w);w[Re]<--ce;)w.subTo(J,w)}y!=null&&(w.drShiftTo(ue,y),V!=Y&&i.ZERO.subTo(y,y)),w.t=ue,w.clamp(),ie>0&&w.rShiftTo(ie,w),V<0&&i.ZERO.subTo(w,w)}}},i.prototype.invDigit=function(){if(this.t<1)return 0;var l=this[0];if(!(1&l))return 0;var y=3&l;return(y=(y=(y=(y=y*(2-(15&l)*y)&15)*(2-(255&l)*y)&255)*(2-((65535&l)*y&65535))&65535)*(2-l*y%this.DV)%this.DV)>0?this.DV-y:-y},i.prototype.isEven=function(){return(this.t>0?1&this[0]:this.s)==0},i.prototype.exp=function(l,y){if(l>4294967295||l<1)return i.ONE;var w=o(),T=o(),N=y.convert(this),X=u(l)-1;for(N.copyTo(w);--X>=0;)if(y.sqrTo(w,T),(l&1<<X)>0)y.mulTo(T,N,w);else{var V=w;w=T,T=V}return y.revert(w)},i.prototype.toString=function(l){if(this.s<0)return"-"+this.negate().toString(l);var y;if(l==16)y=4;else if(l==8)y=3;else if(l==2)y=1;else if(l==32)y=5;else{if(l!=4)return this.toRadix(l);y=2}var w,T=(1<<y)-1,N=!1,X="",V=this.t,Y=this.DB-V*this.DB%y;if(V-- >0)for(Y<this.DB&&(w=this[V]>>Y)>0&&(N=!0,X=f(w));V>=0;)Y<y?(w=(this[V]&(1<<Y)-1)<<y-Y,w|=this[--V]>>(Y+=this.DB-y)):(w=this[V]>>(Y-=y)&T,Y<=0&&(Y+=this.DB,--V)),w>0&&(N=!0),N&&(X+=f(w));return N?X:"0"},i.prototype.negate=function(){var l=o();return i.ZERO.subTo(this,l),l},i.prototype.abs=function(){return this.s<0?this.negate():this},i.prototype.compareTo=function(l){var y=this.s-l.s;if(y!=0)return y;var w=this.t;if((y=w-l.t)!=0)return this.s<0?-y:y;for(;--w>=0;)if((y=this[w]-l[w])!=0)return y;return 0},i.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+u(this[this.t-1]^this.s&this.DM)},i.prototype.mod=function(l){var y=o();return this.abs().divRemTo(l,null,y),this.s<0&&y.compareTo(i.ZERO)>0&&l.subTo(y,y),y},i.prototype.modPowInt=function(l,y){var w;return w=l<256||y.isEven()?new b(y):new m(y),this.exp(l,w)},i.ZERO=x(0),i.ONE=x(1),B.prototype.convert=C,B.prototype.revert=C,B.prototype.mulTo=function(l,y,w){l.multiplyTo(y,w)},B.prototype.sqrTo=function(l,y){l.squareTo(y)},S.prototype.convert=function(l){if(l.s<0||l.t>2*this.m.t)return l.mod(this.m);if(l.compareTo(this.m)<0)return l;var y=o();return l.copyTo(y),this.reduce(y),y},S.prototype.revert=function(l){return l},S.prototype.reduce=function(l){for(l.drShiftTo(this.m.t-1,this.r2),l.t>this.m.t+1&&(l.t=this.m.t+1,l.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);l.compareTo(this.r2)<0;)l.dAddOffset(1,this.m.t+1);for(l.subTo(this.r2,l);l.compareTo(this.m)>=0;)l.subTo(this.m,l)},S.prototype.mulTo=function(l,y,w){l.multiplyTo(y,w),this.reduce(w)},S.prototype.sqrTo=function(l,y){l.squareTo(y),this.reduce(y)};var k,F,D,O=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],M=(1<<26)/O[O.length-1];function U(){var l;l=new Date().getTime(),F[D++]^=255&l,F[D++]^=l>>8&255,F[D++]^=l>>16&255,F[D++]^=l>>24&255,D>=P&&(D-=P)}if(i.prototype.chunkSize=function(l){return Math.floor(Math.LN2*this.DB/Math.log(l))},i.prototype.toRadix=function(l){if(l==null&&(l=10),this.signum()==0||l<2||l>36)return"0";var y=this.chunkSize(l),w=Math.pow(l,y),T=x(w),N=o(),X=o(),V="";for(this.divRemTo(T,N,X);N.signum()>0;)V=(w+X.intValue()).toString(l).substr(1)+V,N.divRemTo(T,N,X);return X.intValue().toString(l)+V},i.prototype.fromRadix=function(l,y){this.fromInt(0),y==null&&(y=10);for(var w=this.chunkSize(y),T=Math.pow(y,w),N=!1,X=0,V=0,Y=0;Y<l.length;++Y){var ie=p(l,Y);ie<0?l.charAt(Y)=="-"&&this.signum()==0&&(N=!0):(V=y*V+ie,++X>=w&&(this.dMultiply(T),this.dAddOffset(V,0),X=0,V=0))}X>0&&(this.dMultiply(Math.pow(y,X)),this.dAddOffset(V,0)),N&&i.ZERO.subTo(this,this)},i.prototype.fromNumber=function(l,y,w){if(typeof y=="number")if(l<2)this.fromInt(1);else for(this.fromNumber(l,w),this.testBit(l-1)||this.bitwiseTo(i.ONE.shiftLeft(l-1),A,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(y);)this.dAddOffset(2,0),this.bitLength()>l&&this.subTo(i.ONE.shiftLeft(l-1),this);else{var T=new Array,N=7&l;T.length=1+(l>>3),y.nextBytes(T),N>0?T[0]&=(1<<N)-1:T[0]=0,this.fromString(T,256)}},i.prototype.bitwiseTo=function(l,y,w){var T,N,X=Math.min(l.t,this.t);for(T=0;T<X;++T)w[T]=y(this[T],l[T]);if(l.t<this.t){for(N=l.s&this.DM,T=X;T<this.t;++T)w[T]=y(this[T],N);w.t=this.t}else{for(N=this.s&this.DM,T=X;T<l.t;++T)w[T]=y(N,l[T]);w.t=l.t}w.s=y(this.s,l.s),w.clamp()},i.prototype.changeBit=function(l,y){var w=i.ONE.shiftLeft(l);return this.bitwiseTo(w,y,w),w},i.prototype.addTo=function(l,y){for(var w=0,T=0,N=Math.min(l.t,this.t);w<N;)T+=this[w]+l[w],y[w++]=T&this.DM,T>>=this.DB;if(l.t<this.t){for(T+=l.s;w<this.t;)T+=this[w],y[w++]=T&this.DM,T>>=this.DB;T+=this.s}else{for(T+=this.s;w<l.t;)T+=l[w],y[w++]=T&this.DM,T>>=this.DB;T+=l.s}y.s=T<0?-1:0,T>0?y[w++]=T:T<-1&&(y[w++]=this.DV+T),y.t=w,y.clamp()},i.prototype.dMultiply=function(l){this[this.t]=this.am(0,l-1,this,0,0,this.t),++this.t,this.clamp()},i.prototype.dAddOffset=function(l,y){if(l!=0){for(;this.t<=y;)this[this.t++]=0;for(this[y]+=l;this[y]>=this.DV;)this[y]-=this.DV,++y>=this.t&&(this[this.t++]=0),++this[y]}},i.prototype.multiplyLowerTo=function(l,y,w){var T,N=Math.min(this.t+l.t,y);for(w.s=0,w.t=N;N>0;)w[--N]=0;for(T=w.t-this.t;N<T;++N)w[N+this.t]=this.am(0,l[N],w,N,0,this.t);for(T=Math.min(l.t,y);N<T;++N)this.am(0,l[N],w,N,0,y-N);w.clamp()},i.prototype.multiplyUpperTo=function(l,y,w){--y;var T=w.t=this.t+l.t-y;for(w.s=0;--T>=0;)w[T]=0;for(T=Math.max(y-this.t,0);T<l.t;++T)w[this.t+T-y]=this.am(y-T,l[T],w,0,0,this.t+T-y);w.clamp(),w.drShiftTo(1,w)},i.prototype.modInt=function(l){if(l<=0)return 0;var y=this.DV%l,w=this.s<0?l-1:0;if(this.t>0)if(y==0)w=this[0]%l;else for(var T=this.t-1;T>=0;--T)w=(y*w+this[T])%l;return w},i.prototype.millerRabin=function(l){var y=this.subtract(i.ONE),w=y.getLowestSetBit();if(w<=0)return!1;var T=y.shiftRight(w);(l=l+1>>1)>O.length&&(l=O.length);for(var N=o(),X=0;X<l;++X){N.fromInt(O[Math.floor(Math.random()*O.length)]);var V=N.modPow(T,this);if(V.compareTo(i.ONE)!=0&&V.compareTo(y)!=0){for(var Y=1;Y++<w&&V.compareTo(y)!=0;)if((V=V.modPowInt(2,this)).compareTo(i.ONE)==0)return!1;if(V.compareTo(y)!=0)return!1}}return!0},i.prototype.clone=function(){var l=o();return this.copyTo(l),l},i.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},i.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},i.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},i.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},i.prototype.toByteArray=function(){var l=this.t,y=new Array;y[0]=this.s;var w,T=this.DB-l*this.DB%8,N=0;if(l-- >0)for(T<this.DB&&(w=this[l]>>T)!=(this.s&this.DM)>>T&&(y[N++]=w|this.s<<this.DB-T);l>=0;)T<8?(w=(this[l]&(1<<T)-1)<<8-T,w|=this[--l]>>(T+=this.DB-8)):(w=this[l]>>(T-=8)&255,T<=0&&(T+=this.DB,--l)),128&w&&(w|=-256),N==0&&(128&this.s)!=(128&w)&&++N,(N>0||w!=this.s)&&(y[N++]=w);return y},i.prototype.equals=function(l){return this.compareTo(l)==0},i.prototype.min=function(l){return this.compareTo(l)<0?this:l},i.prototype.max=function(l){return this.compareTo(l)>0?this:l},i.prototype.and=function(l){var y=o();return this.bitwiseTo(l,E,y),y},i.prototype.or=function(l){var y=o();return this.bitwiseTo(l,A,y),y},i.prototype.xor=function(l){var y=o();return this.bitwiseTo(l,g,y),y},i.prototype.andNot=function(l){var y=o();return this.bitwiseTo(l,v,y),y},i.prototype.not=function(){for(var l=o(),y=0;y<this.t;++y)l[y]=this.DM&~this[y];return l.t=this.t,l.s=~this.s,l},i.prototype.shiftLeft=function(l){var y=o();return l<0?this.rShiftTo(-l,y):this.lShiftTo(l,y),y},i.prototype.shiftRight=function(l){var y=o();return l<0?this.lShiftTo(-l,y):this.rShiftTo(l,y),y},i.prototype.getLowestSetBit=function(){for(var l=0;l<this.t;++l)if(this[l]!=0)return l*this.DB+d(this[l]);return this.s<0?this.t*this.DB:-1},i.prototype.bitCount=function(){for(var l=0,y=this.s&this.DM,w=0;w<this.t;++w)l+=_(this[w]^y);return l},i.prototype.testBit=function(l){var y=Math.floor(l/this.DB);return y>=this.t?this.s!=0:(this[y]&1<<l%this.DB)!=0},i.prototype.setBit=function(l){return this.changeBit(l,A)},i.prototype.clearBit=function(l){return this.changeBit(l,v)},i.prototype.flipBit=function(l){return this.changeBit(l,g)},i.prototype.add=function(l){var y=o();return this.addTo(l,y),y},i.prototype.subtract=function(l){var y=o();return this.subTo(l,y),y},i.prototype.multiply=function(l){var y=o();return this.multiplyTo(l,y),y},i.prototype.divide=function(l){var y=o();return this.divRemTo(l,y,null),y},i.prototype.remainder=function(l){var y=o();return this.divRemTo(l,null,y),y},i.prototype.divideAndRemainder=function(l){var y=o(),w=o();return this.divRemTo(l,y,w),new Array(y,w)},i.prototype.modPow=function(l,y){var w,T,N=l.bitLength(),X=x(1);if(N<=0)return X;w=N<18?1:N<48?3:N<144?4:N<768?5:6,T=N<8?new b(y):y.isEven()?new S(y):new m(y);var V=new Array,Y=3,ie=w-1,ue=(1<<w)-1;if(V[1]=T.convert(this),w>1){var Ee=o();for(T.sqrTo(V[1],Ee);Y<=ue;)V[Y]=o(),T.mulTo(Ee,V[Y-2],V[Y]),Y+=2}var we,ve,Be=l.t-1,qe=!0,Re=o();for(N=u(l[Be])-1;Be>=0;){for(N>=ie?we=l[Be]>>N-ie&ue:(we=(l[Be]&(1<<N+1)-1)<<ie-N,Be>0&&(we|=l[Be-1]>>this.DB+N-ie)),Y=w;!(1&we);)we>>=1,--Y;if((N-=Y)<0&&(N+=this.DB,--Be),qe)V[we].copyTo(X),qe=!1;else{for(;Y>1;)T.sqrTo(X,Re),T.sqrTo(Re,X),Y-=2;Y>0?T.sqrTo(X,Re):(ve=X,X=Re,Re=ve),T.mulTo(Re,V[we],X)}for(;Be>=0&&!(l[Be]&1<<N);)T.sqrTo(X,Re),ve=X,X=Re,Re=ve,--N<0&&(N=this.DB-1,--Be)}return T.revert(X)},i.prototype.modInverse=function(l){var y=l.isEven();if(this.isEven()&&y||l.signum()==0)return i.ZERO;for(var w=l.clone(),T=this.clone(),N=x(1),X=x(0),V=x(0),Y=x(1);w.signum()!=0;){for(;w.isEven();)w.rShiftTo(1,w),y?(N.isEven()&&X.isEven()||(N.addTo(this,N),X.subTo(l,X)),N.rShiftTo(1,N)):X.isEven()||X.subTo(l,X),X.rShiftTo(1,X);for(;T.isEven();)T.rShiftTo(1,T),y?(V.isEven()&&Y.isEven()||(V.addTo(this,V),Y.subTo(l,Y)),V.rShiftTo(1,V)):Y.isEven()||Y.subTo(l,Y),Y.rShiftTo(1,Y);w.compareTo(T)>=0?(w.subTo(T,w),y&&N.subTo(V,N),X.subTo(Y,X)):(T.subTo(w,T),y&&V.subTo(N,V),Y.subTo(X,Y))}return T.compareTo(i.ONE)!=0?i.ZERO:Y.compareTo(l)>=0?Y.subtract(l):Y.signum()<0?(Y.addTo(l,Y),Y.signum()<0?Y.add(l):Y):Y},i.prototype.pow=function(l){return this.exp(l,new B)},i.prototype.gcd=function(l){var y=this.s<0?this.negate():this.clone(),w=l.s<0?l.negate():l.clone();if(y.compareTo(w)<0){var T=y;y=w,w=T}var N=y.getLowestSetBit(),X=w.getLowestSetBit();if(X<0)return y;for(N<X&&(X=N),X>0&&(y.rShiftTo(X,y),w.rShiftTo(X,w));y.signum()>0;)(N=y.getLowestSetBit())>0&&y.rShiftTo(N,y),(N=w.getLowestSetBit())>0&&w.rShiftTo(N,w),y.compareTo(w)>=0?(y.subTo(w,y),y.rShiftTo(1,y)):(w.subTo(y,w),w.rShiftTo(1,w));return X>0&&w.lShiftTo(X,w),w},i.prototype.isProbablePrime=function(l){var y,w=this.abs();if(w.t==1&&w[0]<=O[O.length-1]){for(y=0;y<O.length;++y)if(w[0]==O[y])return!0;return!1}if(w.isEven())return!1;for(y=1;y<O.length;){for(var T=O[y],N=y+1;N<O.length&&T<M;)T*=O[N++];for(T=w.modInt(T);y<N;)if(T%O[y++]==0)return!1}return w.millerRabin(l)},i.prototype.square=function(){var l=o();return this.squareTo(l),l},i.prototype.Barrett=S,F==null){var z;if(F=new Array,D=0,typeof window!="undefined"&&window.crypto){if(window.crypto.getRandomValues){var j=new Uint8Array(32);for(window.crypto.getRandomValues(j),z=0;z<32;++z)F[D++]=j[z]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var W=window.crypto.random(32);for(z=0;z<W.length;++z)F[D++]=255&W.charCodeAt(z)}}for(;D<P;)z=Math.floor(65536*Math.random()),F[D++]=z>>>8,F[D++]=255&z;D=0,U()}function Q(){if(k==null){for(U(),(k=new te).init(F),D=0;D<F.length;++D)F[D]=0;D=0}return k.next()}function Z(){}function te(){this.i=0,this.j=0,this.S=new Array}Z.prototype.nextBytes=function(l){var y;for(y=0;y<l.length;++y)l[y]=Q()},te.prototype.init=function(l){var y,w,T;for(y=0;y<256;++y)this.S[y]=y;for(w=0,y=0;y<256;++y)w=w+this.S[y]+l[y%l.length]&255,T=this.S[y],this.S[y]=this.S[w],this.S[w]=T;this.i=0,this.j=0},te.prototype.next=function(){var l;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,l=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=l,this.S[l+this.S[this.i]&255]};var P=256;t.exports={default:i,BigInteger:i,SecureRandom:Z}}).call(this)},function(t,n,e){var r=e(5),i=e(21).map;r({target:"Array",proto:!0,forced:!e(84)("map")},{map:function(o){return i(this,o,arguments.length>1?arguments[1]:void 0)}})},function(t,n,e){var r=e(3),i=e(79),o=r.TYPED_ARRAY_CONSTRUCTOR,s=r.aTypedArrayConstructor;t.exports=function(c){return s(i(c,c[o]))}},function(t,n,e){var r;t.exports=(r=e(25),r.enc.Utf8)},function(t,n,e){var r={};r[e(4)("toStringTag")]="z",t.exports=String(r)==="[object z]"},function(t,n,e){var r=e(0),i=e(93),o=r["__core-js_shared__"]||i("__core-js_shared__",{});t.exports=o},function(t,n,e){var r=e(0),i=Object.defineProperty;t.exports=function(o,s){try{i(r,o,{value:s,configurable:!0,writable:!0})}catch(c){r[o]=s}return s}},function(t,n,e){var r=e(55),i=e(1);t.exports=!!Object.getOwnPropertySymbols&&!i(function(){var o=Symbol();return!String(o)||!(Object(o)instanceof Symbol)||!Symbol.sham&&r&&r<41})},function(t,n,e){var r=e(13),i=e(0),o=e(2),s=e(60),c=e(17),h=e(9),a=e(76),f=e(22),p=e(57),x=e(122),u=e(1),b=e(33).f,m=e(47).f,E=e(10).f,A=e(169),g=e(125).trim,v=i.Number,d=v.prototype,_=i.TypeError,B=o("".slice),C=o("".charCodeAt),S=function(U){var z=x(U,"number");return typeof z=="bigint"?z:k(z)},k=function(U){var z,j,W,Q,Z,te,P,l,y=x(U,"number");if(p(y))throw _("Cannot convert a Symbol value to a number");if(typeof y=="string"&&y.length>2){if(y=g(y),(z=C(y,0))===43||z===45){if((j=C(y,2))===88||j===120)return NaN}else if(z===48){switch(C(y,1)){case 66:case 98:W=2,Q=49;break;case 79:case 111:W=8,Q=55;break;default:return+y}for(te=(Z=B(y,2)).length,P=0;P<te;P++)if((l=C(Z,P))<48||l>Q)return NaN;return parseInt(Z,W)}}return+y};if(s("Number",!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var F,D=function(U){var z=arguments.length<1?0:v(S(U)),j=this;return f(d,j)&&u(function(){A(j)})?a(Object(z),j,D):z},O=r?b(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),M=0;O.length>M;M++)h(v,F=O[M])&&!h(D,F)&&E(D,F,m(v,F));D.prototype=d,d.constructor=D,c(i,"Number",D)}},function(t,n,e){var r=e(24),i=e(27),o=e(15),s=function(c){return function(h,a,f){var p,x=r(h),u=o(x),b=i(f,u);if(c&&a!=a){for(;u>b;)if((p=x[b++])!=p)return!0}else for(;u>b;b++)if((c||b in x)&&x[b]===a)return c||b||0;return!c&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},function(t,n){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,n,e){var r=e(8);t.exports=function(){var i=r(this),o="";return i.global&&(o+="g"),i.ignoreCase&&(o+="i"),i.multiline&&(o+="m"),i.dotAll&&(o+="s"),i.unicode&&(o+="u"),i.sticky&&(o+="y"),o}},function(t,n,e){var r=e(1),i=e(0).RegExp,o=r(function(){var h=i("a","y");return h.lastIndex=2,h.exec("abcd")!=null}),s=o||r(function(){return!i("a","y").sticky}),c=o||r(function(){var h=i("^r","gy");return h.lastIndex=2,h.exec("str")!=null});t.exports={BROKEN_CARET:c,MISSED_STICKY:s,UNSUPPORTED_Y:o}},function(t,n,e){var r=e(123),i=e(97);t.exports=Object.keys||function(o){return r(o,i)}},function(t,n,e){e(16);var r=e(2),i=e(17),o=e(78),s=e(1),c=e(4),h=e(18),a=c("species"),f=RegExp.prototype;t.exports=function(p,x,u,b){var m=c(p),E=!s(function(){var d={};return d[m]=function(){return 7},""[p](d)!=7}),A=E&&!s(function(){var d=!1,_=/a/;return p==="split"&&((_={}).constructor={},_.constructor[a]=function(){return _},_.flags="",_[m]=/./[m]),_.exec=function(){return d=!0,null},_[m](""),!d});if(!E||!A||u){var g=r(/./[m]),v=x(m,""[p],function(d,_,B,C,S){var k=r(d),F=_.exec;return F===o||F===f.exec?E&&!S?{done:!0,value:g(_,B,C)}:{done:!0,value:k(B,_,C)}:{done:!1}});i(String.prototype,p,v[0]),i(f,m,v[1])}b&&h(f[m],"sham",!0)}},function(t,n,e){var r=e(103).charAt;t.exports=function(i,o,s){return o+(s?r(i,o).length:1)}},function(t,n,e){var r=e(2),i=e(28),o=e(19),s=e(36),c=r("".charAt),h=r("".charCodeAt),a=r("".slice),f=function(p){return function(x,u){var b,m,E=o(s(x)),A=i(u),g=E.length;return A<0||A>=g?p?"":void 0:(b=h(E,A))<55296||b>56319||A+1===g||(m=h(E,A+1))<56320||m>57343?p?c(E,A):b:p?a(E,A,A+2):m-56320+(b-55296<<10)+65536}};t.exports={codeAt:f(!1),charAt:f(!0)}},function(t,n,e){var r=e(0),i=e(11),o=e(8),s=e(6),c=e(32),h=e(78),a=r.TypeError;t.exports=function(f,p){var x=f.exec;if(s(x)){var u=i(x,f,p);return u!==null&&o(u),u}if(c(f)==="RegExp")return i(h,f,p);throw a("RegExp#exec called on incompatible receiver")}},function(t,n,e){var r=e(0),i=e(80),o=e(58),s=r.TypeError;t.exports=function(c){if(i(c))return c;throw s(o(c)+" is not a constructor")}},function(t,n,e){var r=e(5),i=e(2),o=e(59),s=e(7),c=e(9),h=e(10).f,a=e(33),f=e(135),p=e(174),x=e(54),u=e(134),b=!1,m=x("meta"),E=0,A=function(v){h(v,m,{value:{objectID:"O"+E++,weakData:{}}})},g=t.exports={enable:function(){g.enable=function(){},b=!0;var v=a.f,d=i([].splice),_={};_[m]=1,v(_).length&&(a.f=function(B){for(var C=v(B),S=0,k=C.length;S<k;S++)if(C[S]===m){d(C,S,1);break}return C},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:f.f}))},fastKey:function(v,d){if(!s(v))return typeof v=="symbol"?v:(typeof v=="string"?"S":"P")+v;if(!c(v,m)){if(!p(v))return"F";if(!d)return"E";A(v)}return v[m].objectID},getWeakData:function(v,d){if(!c(v,m)){if(!p(v))return!0;if(!d)return!1;A(v)}return v[m].weakData},onFreeze:function(v){return u&&b&&p(v)&&!c(v,m)&&A(v),v}};o[m]=!0},function(t,n,e){var r=e(5),i=e(0),o=e(1),s=e(83),c=e(7),h=e(14),a=e(15),f=e(62),p=e(108),x=e(84),u=e(4),b=e(55),m=u("isConcatSpreadable"),E=i.TypeError,A=b>=51||!o(function(){var d=[];return d[m]=!1,d.concat()[0]!==d}),g=x("concat"),v=function(d){if(!c(d))return!1;var _=d[m];return _!==void 0?!!_:s(d)};r({target:"Array",proto:!0,forced:!A||!g},{concat:function(d){var _,B,C,S,k,F=h(this),D=p(F,0),O=0;for(_=-1,C=arguments.length;_<C;_++)if(v(k=_===-1?F:arguments[_])){if(O+(S=a(k))>9007199254740991)throw E("Maximum allowed index exceeded");for(B=0;B<S;B++,O++)B in k&&f(D,O,k[B])}else{if(O>=9007199254740991)throw E("Maximum allowed index exceeded");f(D,O++,k)}return D.length=O,D}})},function(t,n,e){var r=e(176);t.exports=function(i,o){return new(r(i))(o===0?0:o)}},function(t,n,e){var r=e(1);t.exports=function(i,o){var s=[][i];return!!s&&r(function(){s.call(null,o||function(){return 1},1)})}},function(t,n,e){var r=e(17);t.exports=function(i,o,s){for(var c in o)r(i,c,o[c],s);return i}},function(t,n,e){var r=e(0),i=e(40),o=e(11),s=e(8),c=e(58),h=e(112),a=e(15),f=e(22),p=e(113),x=e(85),u=e(139),b=r.TypeError,m=function(A,g){this.stopped=A,this.result=g},E=m.prototype;t.exports=function(A,g,v){var d,_,B,C,S,k,F,D=v&&v.that,O=!(!v||!v.AS_ENTRIES),M=!(!v||!v.IS_ITERATOR),U=!(!v||!v.INTERRUPTED),z=i(g,D),j=function(Q){return d&&u(d,"normal",Q),new m(!0,Q)},W=function(Q){return O?(s(Q),U?z(Q[0],Q[1],j):z(Q[0],Q[1])):U?z(Q,j):z(Q)};if(M)d=A;else{if(!(_=x(A)))throw b(c(A)+" is not iterable");if(h(_)){for(B=0,C=a(A);C>B;B++)if((S=W(A[B]))&&f(E,S))return S;return new m(!1)}d=p(A,_)}for(k=d.next;!(F=o(k,d)).done;){try{S=W(F.value)}catch(Q){u(d,"throw",Q)}if(typeof S=="object"&&S&&f(E,S))return S}return new m(!1)}},function(t,n,e){var r=e(4),i=e(65),o=r("iterator"),s=Array.prototype;t.exports=function(c){return c!==void 0&&(i.Array===c||s[o]===c)}},function(t,n,e){var r=e(0),i=e(11),o=e(31),s=e(8),c=e(58),h=e(85),a=r.TypeError;t.exports=function(f,p){var x=arguments.length<2?h(f):p;if(o(x))return s(i(x,f));throw a(c(f)+" is not iterable")}},function(t,n,e){var r=e(32),i=e(0);t.exports=r(i.process)=="process"},function(t,n,e){var r=e(5),i=e(11),o=e(42),s=e(45),c=e(6),h=e(191),a=e(66),f=e(38),p=e(49),x=e(18),u=e(17),b=e(4),m=e(65),E=e(148),A=s.PROPER,g=s.CONFIGURABLE,v=E.IteratorPrototype,d=E.BUGGY_SAFARI_ITERATORS,_=b("iterator"),B=function(){return this};t.exports=function(C,S,k,F,D,O,M){h(k,S,F);var U,z,j,W=function(w){if(w===D&&l)return l;if(!d&&w in te)return te[w];switch(w){case"keys":case"values":case"entries":return function(){return new k(this,w)}}return function(){return new k(this)}},Q=S+" Iterator",Z=!1,te=C.prototype,P=te[_]||te["@@iterator"]||D&&te[D],l=!d&&P||W(D),y=S=="Array"&&te.entries||P;if(y&&(U=a(y.call(new C)))!==Object.prototype&&U.next&&(o||a(U)===v||(f?f(U,v):c(U[_])||u(U,_,B)),p(U,Q,!0,!0),o&&(m[Q]=B)),A&&D=="values"&&P&&P.name!=="values"&&(!o&&g?x(te,"name","values"):(Z=!0,l=function(){return i(P,this)})),D)if(z={values:W("values"),keys:O?l:W("keys"),entries:W("entries")},M)for(j in z)(d||Z||!(j in te))&&u(te,j,z[j]);else r({target:S,proto:!0,forced:d||Z},z);return o&&!M||te[_]===l||u(te,_,l,{name:D}),m[S]=l,z}},function(t,n,e){var r=e(5),i=e(203);r({target:"Array",stat:!0,forced:!e(86)(function(o){Array.from(o)})},{from:i})},function(t,n,e){var r=e(14),i=e(27),o=e(15);t.exports=function(s){for(var c=r(this),h=o(c),a=arguments.length,f=i(a>1?arguments[1]:void 0,h),p=a>2?arguments[2]:void 0,x=p===void 0?h:i(p,h);x>f;)c[f++]=s;return c}},function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(r){typeof window=="object"&&(e=window)}t.exports=e},function(t,n,e){var r=e(94);t.exports=r&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},function(t,n,e){var r=e(13),i=e(1),o=e(73);t.exports=!r&&!i(function(){return Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a!=7})},function(t,n,e){var r=e(13),i=e(1);t.exports=r&&i(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},function(t,n,e){var r=e(0),i=e(11),o=e(7),s=e(57),c=e(43),h=e(165),a=e(4),f=r.TypeError,p=a("toPrimitive");t.exports=function(x,u){if(!o(x)||s(x))return x;var b,m=c(x,p);if(m){if(u===void 0&&(u="default"),b=i(m,x,u),!o(b)||s(b))return b;throw f("Can't convert object to primitive value")}return u===void 0&&(u="number"),h(x,u)}},function(t,n,e){var r=e(2),i=e(9),o=e(24),s=e(96).indexOf,c=e(59),h=r([].push);t.exports=function(a,f){var p,x=o(a),u=0,b=[];for(p in x)!i(c,p)&&i(x,p)&&h(b,p);for(;f.length>u;)i(x,p=f[u++])&&(~s(b,p)||h(b,p));return b}},function(t,n,e){var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);n.f=o?function(s){var c=i(this,s);return!!c&&c.enumerable}:r},function(t,n,e){var r=e(2),i=e(36),o=e(19),s=e(126),c=r("".replace),h="["+s+"]",a=RegExp("^"+h+h+"*"),f=RegExp(h+h+"*$"),p=function(x){return function(u){var b=o(i(u));return 1&x&&(b=c(b,a,"")),2&x&&(b=c(b,f,"")),b}};t.exports={start:p(1),end:p(2),trim:p(3)}},function(t,n){t.exports=`
23
23
  \v\f\r                 \u2028\u2029\uFEFF`},function(t,n,e){var r=e(9),i=e(170),o=e(47),s=e(10);t.exports=function(c,h,a){for(var f=i(h),p=s.f,x=o.f,u=0;u<f.length;u++){var b=f[u];r(c,b)||a&&r(a,b)||p(c,b,x(h,b))}}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,e){var r=e(13),i=e(121),o=e(10),s=e(8),c=e(24),h=e(100);n.f=r&&!i?Object.defineProperties:function(a,f){s(a);for(var p,x=c(f),u=h(f),b=u.length,m=0;b>m;)o.f(a,p=u[m++],x[p]);return a}},function(t,n,e){var r=e(26);t.exports=r("document","documentElement")},function(t,n,e){var r=e(1),i=e(0).RegExp;t.exports=r(function(){var o=i(".","s");return!(o.dotAll&&o.exec(`
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),w=e(4),B=e(131),C=e(132),S=w("match"),k=i.RegExp,F=k.prototype,D=i.SyntaxError,O=o(b),M=o(F.exec),z=o("".charAt),U=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,_=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",_)){for(var T=function(Y,ie){var ue,Ee,_e,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=U(ie,/s/g,"")),ue=ie,l&&"sticky"in Z&&(_e=!!ie&&j(ie,"y")>-1)&&y&&(ie=U(ie,/y/g,"")),C&&(Y=(ve=function(me){for(var ye,Ve=me.length,Oe=0,Te="",Ae=[],ze={},Ge=!1,$e=!1,ee=0,oe="";Oe<=Ve;Oe++){if((ye=z(me,Oe))==="\\")ye+=z(me,++Oe);else if(ye==="]")Ge=!1;else if(!Ge)switch(!0){case ye==="[":Ge=!0;break;case ye==="(":M(Q,W(me,Oe+1))&&(Oe+=2,$e=!0),Te+=ye,ee++;continue;case(ye===">"&&$e):if(oe===""||g(ze,oe))throw new D("Invalid capture group name");ze[oe]=!0,Ae[Ae.length]=[oe,ee],$e=!1,oe="";continue}$e?oe+=ye:Te+=ye}return[Te,Ae]}(Y))[0],ce=ve[1]),Be=c(k(Y,ie),Re?this:F,T),(Ee||_e||ce.length)&&(qe=v(Be),Ee&&(qe.dotAll=!0,qe.raw=T(function(me){for(var ye,Ve=me.length,Oe=0,Te="",Ae=!1;Oe<=Ve;Oe++)(ye=z(me,Oe))!=="\\"?Ae||ye!=="."?(ye==="["?Ae=!0:ye==="]"&&(Ae=!1),Te+=ye):Te+="[\\s\\S]":Te+=ye+z(me,++Oe);return Te}(Y),ue)),_e&&(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,w=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)}},z=function(j){O(j.data)},U=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){w.nextTick(M(j))}:B&&B.now?i=function(j){B.now(M(j))}:S&&!A?(s=(o=new S).port2,o.port1.onmessage=z,i=a(s.postMessage,s)):c.addEventListener&&f(c.postMessage)&&!c.importScripts&&r&&r.protocol!=="file:"&&!x(U)?(i=U,c.addEventListener("message",z,!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 w=[null];return o(b,w,v),new(o(s,g,w))}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,w;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"?w: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})}},w=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
- 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 w=0,B=g.length;w<B;w++)g[w]=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]),z=0;z<O;z++){o.fill(0),s.fill(0);for(var U=16*z,j=0;j<16;j++)o[j]=D.getUint32(4*(U+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],_=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^_^T:y&_|~y&T)+N+X+o[ue],l=P,P=c(te,9),te=Z,Z=V,N=T,T=c(_,19),_=y,y=a(Y);M[0]^=Z,M[1]^=te,M[2]^=P,M[3]^=l,M[4]^=y,M[5]^=_,M[6]^=T,M[7]^=N}for(var Ee=[],_e=0,ve=M.length;_e<ve;_e++){var Be=M[_e];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),w=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,z=M&&M.prototype,U=r.DataView,j=U&&U.prototype,W=Object.prototype,Q=r.Array,Z=r.RangeError,te=i(d),P=i([].reverse),l=m.pack,y=m.unpack,_=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 ye=b(le),Ve=F(J);if(ye+ce>Ve.byteLength)throw Z("Wrong index");var Oe=F(Ve.buffer).bytes,Te=ye+Ve.byteOffset,Ae=w(Oe,Te,Te+ce);return me?Ae:P(Ae)},Ee=function(J,ce,le,me,ye,Ve){var Oe=b(le),Te=F(J);if(Oe+ce>Te.byteLength)throw Z("Wrong index");for(var Ae=F(Te.buffer).bytes,ze=Oe+Te.byteOffset,Ge=me(+ye),$e=0;$e<ce;$e++)Ae[ze+$e]=Ge[Ve?$e:ce-$e-1]};if(s){var _e=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),_e&&!k}))_e&&k&&h(O,"name","ArrayBuffer");else{(M=function(J){return p(this,z),new O(b(J))}).prototype=z;for(var ve,Be=g(O),qe=0;Be.length>qe;)(ve=Be[qe++])in M||h(M,ve,O[ve]);z.constructor=M}A&&E(j)!==W&&A(j,W);var Re=new U(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 z=(M=function(J){p(this,z);var ce=b(J);D(this,{bytes:te(Q(ce),0),byteLength:ce}),o||(this.byteLength=ce)}).prototype,j=(U=function(J,ce,le){p(this,j),p(J,z);var me=F(J).byteLength,ye=x(ce);if(ye<0||ye>me)throw Z("Wrong offset");if(ye+(le=le===void 0?me-ye:u(le))>me)throw Z("Wrong length");D(this,{buffer:J,byteLength:le,byteOffset:ye}),o||(this.buffer=J,this.byteLength=le,this.byteOffset=ye)}).prototype,o&&(ie(M,"byteLength"),ie(U,"buffer"),ie(U,"byteLength"),ie(U,"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,_,ce)},setUint8:function(J,ce){Ee(this,1,J,_,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(U,"DataView"),t.exports={ArrayBuffer:M,DataView:U}},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),w=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),z=e(47),U=e(23),j=e(76),W=U.get,Q=U.set,Z=M.f,te=z.f,P=Math.round,l=i.RangeError,y=a.ArrayBuffer,_=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,_e=function(J,ce){ue(J);for(var le=0,me=ce.length,ye=new J(me);me>le;)ye[le]=ce[le++];return ye},ve=function(J,ce){Z(J,ce,{get:function(){return W(this)[ce]}})},Be=function(J){var ce;return C(_,J)||(ce=v(J))=="ArrayBuffer"||ce=="SharedArrayBuffer"},qe=function(J,ce){return Ee(J)&&!w(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||(z.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,ye=J+(le?"Clamped":"")+"Array",Ve="get"+J,Oe="set"+J,Te=i[ye],Ae=Te,ze=Ae&&Ae.prototype,Ge={},$e=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 Ke=W(be);le&&(He=(He=P(He))<0?0:He>255?255:255&He),Ke.view[Oe](Ce*me+Ke.byteOffset,He,!0)}(this,oe,he)},enumerable:!0})};N?c&&(Ae=ce(function(ee,oe,he,be){return f(ee,ze),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)?_e(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=ze):(Ae=ce(function(ee,oe,he,be){f(ee,ze);var Ce,He,Ke,Ye=0,Ze=0;if(d(oe)){if(!Be(oe))return Ee(oe)?_e(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");Ke=He/me}else Ke=m(oe),Ce=new y(He=Ke*me);for(Q(ee,{buffer:Ce,byteOffset:Ze,byteLength:He,length:Ke,view:new T(Ce)});Ye<Ke;)$e(ee,Ye++)}),S&&S(Ae,Y),ze=Ae.prototype=B(ie)),ze.constructor!==Ae&&x(ze,"constructor",Ae),x(ze,X,Ae),V&&x(ze,V,ye),Ge[ye]=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 ze||x(ze,"BYTES_PER_ELEMENT",me),O(ye)}):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 w=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[w]=C,h[C]=w;var S=v[w],k=v[S],F=v[k],D=257*v[C]^16843008*C;a[w]=D<<24|D>>>8,f[w]=D<<16|D>>>16,p[w]=D<<8|D>>>24,x[w]=D,D=16843009*F^65537*k^257*S^16843008*w,u[C]=D<<24|D>>>8,b[C]=D<<16|D>>>16,m[C]=D<<8|D>>>24,E[C]=D,w?(w=S^v[v[v[F^S]]],B^=v[v[B]]):w=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,w=v.sigBytes/4,B=4*((this._nRounds=w+6)+1),C=this._keySchedule=[],S=0;S<B;S++)S<w?C[S]=d[S]:(D=C[S-1],S%w?w>6&&S%w==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/w|0]<<24),C[S]=C[S-w]^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 w=v[d+1];v[d+1]=v[d+3],v[d+3]=w,this._doCryptBlock(v,d,this._invKeySchedule,u,b,m,E,h),w=v[d+1],v[d+1]=v[d+3],v[d+3]=w},_doCryptBlock:function(v,d,w,B,C,S,k,F){for(var D=this._nRounds,O=v[d]^w[0],M=v[d+1]^w[1],z=v[d+2]^w[2],U=v[d+3]^w[3],j=4,W=1;W<D;W++){var Q=B[O>>>24]^C[M>>>16&255]^S[z>>>8&255]^k[255&U]^w[j++],Z=B[M>>>24]^C[z>>>16&255]^S[U>>>8&255]^k[255&O]^w[j++],te=B[z>>>24]^C[U>>>16&255]^S[O>>>8&255]^k[255&M]^w[j++],P=B[U>>>24]^C[O>>>16&255]^S[M>>>8&255]^k[255&z]^w[j++];O=Q,M=Z,z=te,U=P}Q=(F[O>>>24]<<24|F[M>>>16&255]<<16|F[z>>>8&255]<<8|F[255&U])^w[j++],Z=(F[M>>>24]<<24|F[z>>>16&255]<<16|F[U>>>8&255]<<8|F[255&O])^w[j++],te=(F[z>>>24]<<24|F[U>>>16&255]<<16|F[O>>>8&255]<<8|F[255&M])^w[j++],P=(F[U>>>24]<<24|F[O>>>16&255]<<16|F[M>>>8&255]<<8|F[255&z])^w[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],w=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 z=A&g^A&v^g&v,U=(A<<30|A>>>2)^(A<<19|A>>>13)^(A<<10|A>>>22),j=S+((w<<26|w>>>6)^(w<<21|w>>>11)^(w<<7|w>>>25))+(w&B^~w&C)+p[k]+x[k];S=C,C=B,B=w,w=d+j|0,d=v,v=g,g=A,A=j+(U+z)|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]+w|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,w){var B;switch(s(w,0)){case"$":return"$";case"&":return p;case"`":return h(x,0,u);case"'":return h(x,A);case"<":B=m[h(w,1,-1)];break;default:var C=+w;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(w,1):b[S-1]+s(w,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),w=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),z=e(142),U=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"),_="Promise",T=W.getterFor(_),N=W.set,X=W.getterFor(_),V=x&&x.prototype,Y=x,ie=V,ue=a.TypeError,Ee=a.document,_e=a.process,ve=z.f,Be=ve,qe=!!(Ee&&Ee.createEvent&&a.dispatchEvent),Re=v(a.PromiseRejectionEvent),We=!1,J=Q(_,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,Ke=oe.state==1,Ye=Ke?ee.ok:ee.fail,Ze=ee.resolve,fe=ee.reject,H=ee.domain;try{Ye?(Ke||(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)}},ye=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=U(function(){P?_e.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?_e.emit("rejectionHandled",oe):Ve("rejectionhandled",oe,ee.value)})},ze=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,ye(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,ze($e,Ce,ee),ze(Ge,Ce,ee))}catch(He){Ge(Ce,He,ee)}}):(ee.value=oe,ee.state=1,ye(ee,!1))}catch(Ce){Ge({done:!1},Ce,ee)}}};if(J&&(ie=(Y=function(ee){w(this,ie),g(ee),p(r,this);var oe=T(this);try{ee(ze($e,oe),ze(Ge,oe))}catch(he){Ge(oe,he)}}).prototype,(r=function(ee){N(this,{type:_,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?_e.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=ze($e,oe),this.reject=ze(Ge,oe)},z.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,_,!1,!0),A(_),o=f(_),c({target:_,stat:!0,forced:J},{reject:function(ee){var oe=ve(this);return p(oe.reject,void 0,ee),oe.promise}}),c({target:_,stat:!0,forced:h||J},{resolve:function(ee){return O(h&&this===o?Y:this,ee)}}),c({target:_,stat:!0,forced:ce},{all:function(ee){var oe=this,he=ve(oe),be=he.resolve,Ce=he.reject,He=U(function(){var Ke=g(oe.resolve),Ye=[],Ze=0,fe=1;C(ee,function(H){var L=Ze++,K=!1;fe++,p(Ke,oe,H).then(function(G){K||(K=!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=U(function(){var He=g(oe.resolve);C(ee,function(Ke){p(He,oe,Ke).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,w=p.process,B=p.Promise,C=u(p,"queueMicrotask"),S=C&&C.value;S||(r=function(){var k,F;for(g&&(k=w.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(){w.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,w=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!(w&&!x(Z))&&Q(this,Z===0?0:Z)}:W=="get"?function(Z){return w&&!x(Z)?void 0:Q(this,Z===0?0:Z)}:W=="has"?function(Z){return!(w&&!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)||!(w||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](w?{}:-0,1)!=O,z=u(function(){O.has(1)}),U=b(function(W){new C(W)}),j=!w&&u(function(){for(var W=new C,Q=5;Q--;)W[B](Q,Q);return!W.has(-0)});U||((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),(z||j)&&(D("delete"),D("has"),d&&D("get")),(j||M)&&D(B),w&&S.clear&&delete S.clear}return F[A]=k,r({global:!0,forced:k!=C},F),m(k,A),w||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,w),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})}),w=d.prototype,B=m(A),C=function(k,F,D){var O,M,z=B(k),U=S(k,F);return U?U.value=D:(z.last=U={index:M=x(F,!0),key:F,value:D,previous:O=z.last,next:void 0,removed:!1},z.first||(z.first=U),O&&(O.next=U),p?z.size++:k.size++,M!=="F"&&(z.index[M]=U)),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(w,{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(w,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(w,"size",{get:function(){return B(this).size}}),d},setStrong:function(E,A,g){var v=A+" Iterator",d=m(A),w=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=w(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,w=v|d;E[A>>>2]|=w<<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 w=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],z=E[A+8],U=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=w[0],y=w[1],_=w[2],T=w[3];l=x(l,y,_,T,B,7,f[0]),T=x(T,l,y,_,C,12,f[1]),_=x(_,T,l,y,S,17,f[2]),y=x(y,_,T,l,k,22,f[3]),l=x(l,y,_,T,F,7,f[4]),T=x(T,l,y,_,D,12,f[5]),_=x(_,T,l,y,O,17,f[6]),y=x(y,_,T,l,M,22,f[7]),l=x(l,y,_,T,z,7,f[8]),T=x(T,l,y,_,U,12,f[9]),_=x(_,T,l,y,j,17,f[10]),y=x(y,_,T,l,W,22,f[11]),l=x(l,y,_,T,Q,7,f[12]),T=x(T,l,y,_,Z,12,f[13]),_=x(_,T,l,y,te,17,f[14]),l=u(l,y=x(y,_,T,l,P,22,f[15]),_,T,C,5,f[16]),T=u(T,l,y,_,O,9,f[17]),_=u(_,T,l,y,W,14,f[18]),y=u(y,_,T,l,B,20,f[19]),l=u(l,y,_,T,D,5,f[20]),T=u(T,l,y,_,j,9,f[21]),_=u(_,T,l,y,P,14,f[22]),y=u(y,_,T,l,F,20,f[23]),l=u(l,y,_,T,U,5,f[24]),T=u(T,l,y,_,te,9,f[25]),_=u(_,T,l,y,k,14,f[26]),y=u(y,_,T,l,z,20,f[27]),l=u(l,y,_,T,Z,5,f[28]),T=u(T,l,y,_,S,9,f[29]),_=u(_,T,l,y,M,14,f[30]),l=b(l,y=u(y,_,T,l,Q,20,f[31]),_,T,D,4,f[32]),T=b(T,l,y,_,z,11,f[33]),_=b(_,T,l,y,W,16,f[34]),y=b(y,_,T,l,te,23,f[35]),l=b(l,y,_,T,C,4,f[36]),T=b(T,l,y,_,F,11,f[37]),_=b(_,T,l,y,M,16,f[38]),y=b(y,_,T,l,j,23,f[39]),l=b(l,y,_,T,Z,4,f[40]),T=b(T,l,y,_,B,11,f[41]),_=b(_,T,l,y,k,16,f[42]),y=b(y,_,T,l,O,23,f[43]),l=b(l,y,_,T,U,4,f[44]),T=b(T,l,y,_,Q,11,f[45]),_=b(_,T,l,y,P,16,f[46]),l=m(l,y=b(y,_,T,l,S,23,f[47]),_,T,B,6,f[48]),T=m(T,l,y,_,M,10,f[49]),_=m(_,T,l,y,te,15,f[50]),y=m(y,_,T,l,D,21,f[51]),l=m(l,y,_,T,Q,6,f[52]),T=m(T,l,y,_,k,10,f[53]),_=m(_,T,l,y,j,15,f[54]),y=m(y,_,T,l,C,21,f[55]),l=m(l,y,_,T,z,6,f[56]),T=m(T,l,y,_,P,10,f[57]),_=m(_,T,l,y,O,15,f[58]),y=m(y,_,T,l,Z,21,f[59]),l=m(l,y,_,T,F,6,f[60]),T=m(T,l,y,_,W,10,f[61]),_=m(_,T,l,y,S,15,f[62]),y=m(y,_,T,l,U,21,f[63]),w[0]=w[0]+l|0,w[1]=w[1]+y|0,w[2]=w[2]+_|0,w[3]=w[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),w=g;A[15+(v+64>>>9<<4)]=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),A[14+(v+64>>>9<<4)]=16711935&(w<<8|w>>>24)|4278255360&(w<<24|w>>>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,w,B){var C=E+(A&g|~A&v)+d+B;return(C<<w|C>>>32-w)+A}function u(E,A,g,v,d,w,B){var C=E+(A&v|g&~v)+d+B;return(C<<w|C>>>32-w)+A}function b(E,A,g,v,d,w,B){var C=E+(A^g^v)+d+B;return(C<<w|C>>>32-w)+A}function m(E,A,g,v,d,w,B){var C=E+(g^(A|~v))+d+B;return(C<<w|C>>>32-w)+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 w=(b<<5|b>>>27)+g+h[v];w+=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=w}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 w=Object.prototype.toString.call(v).slice(8,-1);if(w==="Object"&&v.constructor&&(w=v.constructor.name),w==="Map"||w==="Set")return Array.from(v);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return i(v,d)}}(g)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
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,w=new Array(v);d<v;d++)w[d]=g[d];return w}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 w,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)w=v.substr(0,64),B=v.substr(64,64);else{var D=x.curve.decodePointHex(v);w=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+w+B),M=4*d.length;O.unshift(255&M),O.unshift(M>>8&255);var z=f(O);return a.arrayToHex(f(z.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 w=a.generateKeyPairHex(),B=new o(w.privateKey,16),C=w.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,z=[],U=[].concat(k,F),j=function(){z=f([].concat(r(U),[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===z.length&&j(),g[W]^=255&z[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,w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},B=w.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)),z=a.hexToArray(a.leftPad(O.getY().toBigInteger().toRadix(16),64)),U=1,j=0,W=[],Q=[].concat(M,z),Z=function(){W=f([].concat(r(Q),[U>>24&255,U>>16&255,U>>8&255,255&U])),U++,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,z)));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]:{},w=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,z=null,U=null;do{do{var j=void 0;M=(j=w&&w.length?w.pop():A()).k,z=O.add(j.x1).mod(b)}while(z.equals(o.ZERO)||z.add(M).equals(b));U=D.add(o.ONE).modInverse(b).multiply(M.subtract(z.multiply(D))).mod(b)}while(U.equals(o.ZERO));return B?c(z,U):a.leftPad(z.toString(16),64)+a.leftPad(U.toString(16),64)},doVerifySignature:function(g,v,d){var w,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);w=O.r,B=O.s}else w=new o(v.substring(0,64),16),B=new o(v.substring(64),16);var M=u.decodePointHex(d),z=new o(D,16),U=w.add(B).mod(b);if(U.equals(o.ZERO))return!1;var j=x.multiply(B).add(M.multiply(U)),W=z.add(j.getX().toBigInteger()).mod(b);return w.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 w,B,C,S,k,F,D=u(E),O=0;if(!D||this==b&&h(D))for(w=f(E),B=A?new this(w):b(w);w>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(w,B){return w.__proto__=B,w})(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(w){return!1}}();return function(){var w,B=h(v);if(d){var C=h(this).constructor;w=Reflect.construct(B,arguments,C)}else w=B.apply(this,arguments);return c(this,w)}}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(w){if(w===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}(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 w=0;w<d.length;w++){var B=d[w];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(v,B.key,B)}}function p(v,d,w){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,w=d.toString(16);return w.length%2==1&&(w="0"+w),d<128?w:(128+w.length/2).toString(16)+w}},{key:"getValue",value:function(){return""}}]),v}(),b=function(v){i(w,v);var d=s(w);function w(B){var C;return a(this,w),(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(w,[{key:"getValue",value:function(){return this.v}}]),w}(u),m=function(v){i(w,v);var d=s(w);function w(B){var C;return a(this,w),(C=d.call(this)).t="30",C.asn1Array=B,C}return p(w,[{key:"getValue",value:function(){return this.v=this.asn1Array.map(function(B){return B.getEncodedHex()}).join(""),this.v}}]),w}(u);function E(v,d){return+v[d+2]<8?1:128&+v.substr(d+2,2)}function A(v,d){var w=E(v,d),B=v.substr(d+2,2*w);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 w=new b(v),B=new b(d);return new m([w,B]).getEncodedHex()},decodeDer:function(v){var d=g(v,0),w=g(v,d),B=A(v,d),C=v.substr(w,2*B),S=w+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,w=[],B=0;(d=p(E,A))!==null;){var C=c(d[0]);w[B]=C,C===""&&(E.lastIndex=f(A,s(E.lastIndex),v)),B++}return B===0?null:w}]})},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(w){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,w=b.multiply(v).mod(d),B=A.multiply(E).mod(d),C=w.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=w.add(B),O=E.multiply(v).mod(d),M=C.square().mod(d),z=C.multiply(M).mod(d),U=O.multiply(F.square()).subtract(D.multiply(M)).mod(d),j=C.multiply(U).mod(d),W=F.multiply(M.multiply(w).subtract(U)).subtract(S.multiply(z)).mod(d),Q=z.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),w=d.multiply(u).multiply(m).mod(E),B=v.square().mod(E),C=g.square().subtract(w.shiftLeft(3)).mod(E),S=v.multiply(C).mod(E),k=g.multiply(w.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),w=h(g===void 0?v:g,v),B=new(f(this,p))(a(w-d)),C=new x(this),S=new x(B),k=0;d<w;)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,w=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[w++]=255&u,u/=256,f-=8;for(x=x<<f|u,E+=f;E>0;)m[w++]=255&x,x/=256,E-=8;return m[--w]|=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),w=arguments.length,B=w>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&&w>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 w=this.length,B=s(d),C=0;if(B+v>w)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,w,B=new E(516),C=u(516);for(d=0;d<516;d++)w=d%4,B[d]=515-d,C[d]=d-2*w+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(w){return function(B,C){return w!==void 0?+w(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 w=Object.prototype.toString.call(v).slice(8,-1);if(w==="Object"&&v.constructor&&(w=v.constructor.name),w==="Map"||w==="Set")return Array.from(v);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))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,w=new Array(v);d<v;d++)w[d]=g[d];return w}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,w=g.length;d<w;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,w=g.length;d<w;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,w=g.length;d<w;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 w=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],w[C]=B[0]<<24|B[1]<<16|B[2]<<8|B[3];for(var S,k=0;k<32;k+=4)S=w[1]^w[2]^w[3]^d[k+0],w[0]^=u(x(S)),S=w[2]^w[3]^w[0]^d[k+1],w[1]^=u(x(S)),S=w[3]^w[0]^w[1]^d[k+2],w[2]^=u(x(S)),S=w[0]^w[1]^w[2]^d[k+3],w[3]^=u(x(S));for(var F=0;F<16;F+=4)v[F]=w[3-F/4]>>>24&255,v[F+1]=w[3-F/4]>>>16&255,v[F+2]=w[3-F/4]>>>8&255,v[F+3]=255&w[3-F/4]}function E(g,v,d){for(var w=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],w[C]=B[0]<<24|B[1]<<16|B[2]<<8|B[3];w[0]^=2746333894,w[1]^=1453994832,w[2]^=1736282519,w[3]^=2993693404;for(var S,k=0;k<32;k+=4)S=w[1]^w[2]^w[3]^s[k+0],v[k+0]=w[0]^=b(x(S)),S=w[2]^w[3]^w[0]^s[k+1],v[k+1]=w[1]^=b(x(S)),S=w[3]^w[0]^w[1]^s[k+2],v[k+2]=w[2]^=b(x(S)),S=w[0]^w[1]^w[2]^s[k+3],v[k+3]=w[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 w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},B=w.padding,C=B===void 0?"pkcs#7":B,S=w.mode,k=w.iv,F=k===void 0?[]:k,D=w.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,z=0;z<M;z++)g.push(M);var U=new Array(32);E(v,U,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,U);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 _=j.length,T=j[_-1],N=1;N<=T;N++)if(j[_-N]!==T)throw new Error("padding is invalid");j.splice(_-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,w,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++)(w=k+d)in C&&f(v,d,C[w]);if(v.length=g,A<g){for(d=k;d<S-g;d++)B=d+A,(w=d+g)in C?C[B]=C[w]: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,(w=d+g-1)in C?C[B]=C[w]: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 K=L+1<1||arguments.length<=L+1?void 0:arguments[L+1];if(K!=null)for(var G in K)G!=="__proto__"&&i(K,G)&&(H[G]=K[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(K){if(typeof K=="number")return K;if(!isNaN(Number(K)))return Number(K);var G=parseFloat(K);if(isNaN(G))throw new Error("Invalid timespan string");var se=K.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 K=o({},L);K.encode=K.encode||encodeURIComponent,K.decode=K.decode||decodeURIComponent,H="; "+K.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),K.decode(G.substring(se,ne))}function f(H,L,K){var G=o({},K);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 K=(H+16*Math.random())%16|0;return H=Math.floor(H/16),(L==="x"?K:3&K|8).toString(16)})}e(39),e(30),e(136);function x(H,L){var K;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,we){pe=pe.toLowerCase();var Fe=/[/\s;_-]/,Se=/[/\s;_-]/;return we.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,we){return!!/;\s*([^;]*?)(?:\s+Build\/|\))/.test(pe)&&we.test(RegExp.$1)}(H,G.modelRegExp)),ne&&(K={name:G.name,version:se}),ne}),K}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 K=0;K<L.length;K++){var G=L[K];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,K;return L=H,(K=[{key:"_compare",value:function(G,se){if(!this._ver||!G)return!1;var ne=Array.isArray(se)?se:[se],pe=function(we,Fe){for(var Se=/(\.0+)+$/,Le=String(we).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(we){return pe*we>0||pe===0&&we===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,K),Object.defineProperty(L,"prototype",{writable:!1}),H}();function E(H,L,K){return Object.defineProperty(H,"prototype",{writable:!1}),H}var A={ios:"isIOS",android:"isAndroid",windows:"isWindows",macos:"isMacOS"},g=E(function H(L,K){var G,se;if(function(we,Fe){if(!(we 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,K==null?void 0:K.platform){var ne=function(we){switch(we){case"Android":return"android";case"iPad":case"iPhone":case"iPod":return"ios";case"MacIntel":return"macos";case"Win32":return"windows"}}(K.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"&&(K!=null&&K.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 w(H,L,K){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=w(function H(L,K){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,K.isIOS?(G=v,this.isApple=!0):K.isMacOS?(this.isMac=!0,this.isApple=!0):K.isAndroid&&(G=d),G){var se=x(L,G);se?this[B[se.name]]=!0:K.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,K){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 K=x(L,S);K?(this[F[K.name]]=!0,this.version=new m(K.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,K){return Object.defineProperty(H,"prototype",{writable:!1}),H}O=O.concat(S);var z={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"},U=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 K=x(L,O);K?(this[z[K.name]]=!0,this.version=new m(K.version)):this.version=new m(""),Object.freeze(this.version)});function j(H,L,K){return Object.defineProperty(H,"prototype",{writable:!1}),H}var W,Q=j(function H(L,K){(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,K)),this.brand=Object.freeze(new C(L,this.os)),this.browser=Object.freeze(new D(L)),this.client=Object.freeze(new U(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 K,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 we(Fe){pe(K,Fe)}for(K in H)i(H,K)&&(G=H[K],Array.isArray(G)?G.forEach(we):pe(K,G));return ne.join("&")}function te(H,L,K){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,K):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(K){if(K===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return K}(H)}function y(H){var L=typeof Map=="function"?new Map:void 0;return(y=function(K){if(K===null||(G=K,Function.toString.call(G).indexOf("[native code]")===-1))return K;var G;if(typeof K!="function")throw new TypeError("Super expression must either be null or a function");if(L!==void 0){if(L.has(K))return L.get(K);L.set(K,se)}function se(){return _(K,arguments,X(this).constructor)}return se.prototype=Object.create(K.prototype,{constructor:{value:se,enumerable:!1,writable:!0,configurable:!0}}),N(se,K)})(H)}function _(H,L,K){return(_=T()?Reflect.construct:function(G,se,ne){var pe=[null];pe.push.apply(pe,se);var we=new(Function.bind.apply(G,pe));return ne&&N(we,ne.prototype),we}).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(K,G){return K.__proto__=G,K})(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,we){if(typeof we!="function"&&we!==null)throw new TypeError("Super expression must either be null or a function");pe.prototype=Object.create(we&&we.prototype,{constructor:{value:pe,writable:!0,configurable:!0}}),Object.defineProperty(pe,"prototype",{writable:!1}),we&&N(pe,we)})(ne,H);var L,K,G,se=(L=ne,K=T(),function(){var pe,we=X(L);if(K){var Fe=X(this).constructor;pe=Reflect.construct(we,arguments,Fe)}else pe=we.apply(this,arguments);return l(this,pe)});function ne(pe,we,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=we,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,K,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,we=H.status;(function(Fe){return!(Fe===void 0||Fe>=200&&Fe<300||Fe===1223||Fe===304)})(we)?pe=new V(H,L,"Error (HTTP status code: "+we+")"):ne&&(pe=new V(H,L,ne)),pe?(pe.code=we,pe.data=se,G(Object.freeze(pe))):K(Object.freeze({xhr:H,options:L,data:se}))}}var ue=Object.create(null),Ee=0;function _e(H,L,K,G){H.onload=ie(H,L,K,G),H.ontimeout=function(){G(Object.freeze(function(ne,pe,we){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:K,reject:G},se}function ve(H){delete ue[H]}function Be(H,L,K,G,se){return H&&/MSIE\s+(\d+)/.test(navigator.userAgent)&&parseInt(RegExp.$1)<10&&window.XDomainRequest&&(L==="get"||L==="post")&&!K&&!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,K,G){var se,ne;if(K!=null&&H!=="get")return G==="json"?(se=typeof K=="string"?K:JSON.stringify(K),ne="application/json; charset=utf-8"):typeof(se=function(pe){return s.call(pe)==="[object Object]"}(K)?Z(K,{ignoreEmpty:!1}):K)=="string"&&(ne="application/x-www-form-urlencoded; charset=utf-8"),L["Content-Type"]=L["Content-Type"]||ne,se}function Re(H,L){var K=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)),we=Be(pe,ne.method,ne.requestType,ne.headers,ne.withCredentials);K=_e(we,ne,function(Se){ve(K),G(Se)},function(Se){ve(K),se(Se)}),ne.responseType!=="blob"&&ne.responseType!=="arraybuffer"||(we.responseType=ne.responseType),we.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]))})})(we,ne,pe,ne.headers),typeof ne.beforeSend=="function"&&ne.beforeSend.call(window,we),we.send(Fe||""),typeof ne.receiveCancelId=="function"&&ne.receiveCancelId(K)})}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 K=L+1<1||arguments.length<=L+1?void 0:arguments[L+1];if(K!=null)for(var G in K)G!=="__proto__"&&J(K,G)&&(H[G]=K[G])}return H}function le(H,L,K){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 we,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(we,et)}for(we in ne)J(ne,we)&&(Fe=ne[we],Array.isArray(Fe)?Fe.forEach(Qe):Pe(we,Fe));return Le.join("&")}(L,K):L.replace(/^[?&]/,""))?(H.indexOf("?")!==-1?"&":"?")+L:"")+se}var me=e(90),ye=e.n(me),Ve=e(161),Oe=e.n(Ve),Te=e(162),Ae=e.n(Te),ze=e(163),Ge=e.n(ze);function $e(H){for(var L="",K=H.length-1;K>=0;K--)L+=String.fromCharCode(H.charCodeAt(K)+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 K=he+L+he;return Ge()(K).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 Ke=function(){return(Ke=Object.assign||function(H){for(var L,K=1,G=arguments.length;K<G;K++)for(var se in L=arguments[K])Object.prototype.hasOwnProperty.call(L,se)&&(H[se]=L[se]);return H}).apply(this,arguments)};function Ye(H,L){var K,G,se="".concat(((K=window.PLV_GLOBAL_URL_ORIGIN)===null||K===void 0?void 0:K.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,Ke(Ke({},pe),{sign:be(Ke({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=ye.a.parse(ee),Pe=ye.a.parse(Se);return Oe.a.encrypt(Pe,Le,{iv:ye.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 we=!1;if(typeof navigator.sendBeacon=="function"&&typeof Blob=="function")try{we=navigator.sendBeacon(ne,G)}catch(Fe){}we||Re(ne,{requestType:"json",responseType:"text",method:"post",data:G})}var Ze=function(){return(Ze=Object.assign||function(H){for(var L,K=1,G=arguments.length;K<G;K++)for(var se in L=arguments[K])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 K=L.enableAPIEncryption;this._enableAPIEncryption=typeof K=="boolean"?K?Ce.AES256:Ce.NONE:K}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,K){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:[K]})},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 Su extends gn{constructor(e){super(e);ge(this,"__rtasSender")}setup(e){return De(this,null,function*(){yield this.__init()})}__init(){return De(this,null,function*(){const e=this._plvSocket.getUserInfo();let r=e.userId,i=e.authType||"",o=!1;this._plvSocket.config.securityMode===a0.AES?o=Zr.EncryptionType.AES256:this._plvSocket.config.securityMode===a0.SM2&&(o=Zr.EncryptionType.SM2);const s="2.2.0-rc-20251113.1";this.__rtasSender=new Zr.TrackLogSender({commonData:{project_name:"live",app_name:"polyv-socket",app_version:s,logon_id:r,nickname:e.nick,logon_type:i,weixin_open_id:e.wxOpenId,weixin_union_id:e.wxUnionId},enableAPIEncryption:o})})}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 Du{constructor(n){ge(this,"ConnectFailReason",n0);ge(this,"SocketUserType",At);ge(this,"PolyvSocketEvent",vt);ge(this,"eventEmitter",new Ga);ge(this,"config");ge(this,"chatApi");ge(this,"polyvApi");ge(this,"connect");ge(this,"channel");ge(this,"rtas");this.config=n,this.chatApi=new Mc(this),this.polyvApi=new $f(this),this.connect=new Fu(this),this.channel=new Kf(this),this.rtas=new Su(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)}isCurrentUser(n){return this.getUserInfo().userId===n}destroy(){return De(this,null,function*(){yield this.connect.disconnect()})}}const Tu="PolyvSocket";exports.ConnectFailReason=n0;exports.GlobalVariable=Tu;exports.PolyvSocket=Du;exports.PolyvSocketEvent=vt;exports.RequestAuthorizeMethod=b0;exports.SecurityMode=a0;exports.SocketUserType=At;exports.socketEventTypes=Wo;console.log("%c@polyv/socket","background:#67C23A;padding: 2px 6px;border-radius: 3px;color: #fff","[version: 2.2.0-rc-20251113.1]","[buildTime: 2025-11-13 02:35:50]");
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,$e=!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,$e=!0),Te+=ge,ee++;continue;case(ge===">"&&$e):if(oe===""||g(Ue,oe))throw new D("Invalid capture group name");Ue[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),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
+ 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),$e=0;$e<ce;$e++)Ae[Ue+$e]=Ge[Ve?$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&&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={},$e=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 Ke=W(be);le&&(He=(He=P(He))<0?0:He>255?255:255&He),Ke.view[Oe](Ce*me+Ke.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,Ke,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");Ke=He/me}else Ke=m(oe),Ce=new y(He=Ke*me);for(Q(ee,{buffer:Ce,byteOffset:Ze,byteLength:He,length:Ke,view:new T(Ce)});Ye<Ke;)$e(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,Ke=oe.state==1,Ye=Ke?ee.ok:ee.fail,Ze=ee.resolve,fe=ee.reject,H=ee.domain;try{Ye?(Ke||(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))},$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,Ue($e,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($e,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($e,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 Ke=g(oe.resolve),Ye=[],Ze=0,fe=1;C(ee,function(H){var L=Ze++,K=!1;fe++,p(Ke,oe,H).then(function(G){K||(K=!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(Ke){p(He,oe,Ke).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
+ 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 K=L+1<1||arguments.length<=L+1?void 0:arguments[L+1];if(K!=null)for(var G in K)G!=="__proto__"&&i(K,G)&&(H[G]=K[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(K){if(typeof K=="number")return K;if(!isNaN(Number(K)))return Number(K);var G=parseFloat(K);if(isNaN(G))throw new Error("Invalid timespan string");var se=K.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 K=o({},L);K.encode=K.encode||encodeURIComponent,K.decode=K.decode||decodeURIComponent,H="; "+K.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),K.decode(G.substring(se,ne))}function f(H,L,K){var G=o({},K);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 K=(H+16*Math.random())%16|0;return H=Math.floor(H/16),(L==="x"?K:3&K|8).toString(16)})}e(39),e(30),e(136);function x(H,L){var K;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&&(K={name:G.name,version:se}),ne}),K}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 K=0;K<L.length;K++){var G=L[K];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,K;return L=H,(K=[{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,K),Object.defineProperty(L,"prototype",{writable:!1}),H}();function E(H,L,K){return Object.defineProperty(H,"prototype",{writable:!1}),H}var A={ios:"isIOS",android:"isAndroid",windows:"isWindows",macos:"isMacOS"},g=E(function H(L,K){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,K==null?void 0:K.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"}}(K.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"&&(K!=null&&K.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,K){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,K){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,K.isIOS?(G=v,this.isApple=!0):K.isMacOS?(this.isMac=!0,this.isApple=!0):K.isAndroid&&(G=d),G){var se=x(L,G);se?this[B[se.name]]=!0:K.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,K){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 K=x(L,S);K?(this[F[K.name]]=!0,this.version=new m(K.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,K){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 K=x(L,O);K?(this[U[K.name]]=!0,this.version=new m(K.version)):this.version=new m(""),Object.freeze(this.version)});function j(H,L,K){return Object.defineProperty(H,"prototype",{writable:!1}),H}var W,Q=j(function H(L,K){(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,K)),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 K,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(K,Fe)}for(K in H)i(H,K)&&(G=H[K],Array.isArray(G)?G.forEach(_e):pe(K,G));return ne.join("&")}function te(H,L,K){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,K):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(K){if(K===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return K}(H)}function y(H){var L=typeof Map=="function"?new Map:void 0;return(y=function(K){if(K===null||(G=K,Function.toString.call(G).indexOf("[native code]")===-1))return K;var G;if(typeof K!="function")throw new TypeError("Super expression must either be null or a function");if(L!==void 0){if(L.has(K))return L.get(K);L.set(K,se)}function se(){return w(K,arguments,X(this).constructor)}return se.prototype=Object.create(K.prototype,{constructor:{value:se,enumerable:!1,writable:!0,configurable:!0}}),N(se,K)})(H)}function w(H,L,K){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(K,G){return K.__proto__=G,K})(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,K,G,se=(L=ne,K=T(),function(){var pe,_e=X(L);if(K){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,K,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))):K(Object.freeze({xhr:H,options:L,data:se}))}}var ue=Object.create(null),Ee=0;function we(H,L,K,G){H.onload=ie(H,L,K,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:K,reject:G},se}function ve(H){delete ue[H]}function Be(H,L,K,G,se){return H&&/MSIE\s+(\d+)/.test(navigator.userAgent)&&parseInt(RegExp.$1)<10&&window.XDomainRequest&&(L==="get"||L==="post")&&!K&&!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,K,G){var se,ne;if(K!=null&&H!=="get")return G==="json"?(se=typeof K=="string"?K:JSON.stringify(K),ne="application/json; charset=utf-8"):typeof(se=function(pe){return s.call(pe)==="[object Object]"}(K)?Z(K,{ignoreEmpty:!1}):K)=="string"&&(ne="application/x-www-form-urlencoded; charset=utf-8"),L["Content-Type"]=L["Content-Type"]||ne,se}function Re(H,L){var K=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);K=we(_e,ne,function(Se){ve(K),G(Se)},function(Se){ve(K),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(K)})}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 K=L+1<1||arguments.length<=L+1?void 0:arguments[L+1];if(K!=null)for(var G in K)G!=="__proto__"&&J(K,G)&&(H[G]=K[G])}return H}function le(H,L,K){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,K):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 $e(H){for(var L="",K=H.length-1;K>=0;K--)L+=String.fromCharCode(H.charCodeAt(K)+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 K=he+L+he;return Ge()(K).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 Ke=function(){return(Ke=Object.assign||function(H){for(var L,K=1,G=arguments.length;K<G;K++)for(var se in L=arguments[K])Object.prototype.hasOwnProperty.call(L,se)&&(H[se]=L[se]);return H}).apply(this,arguments)};function Ye(H,L){var K,G,se="".concat(((K=window.PLV_GLOBAL_URL_ORIGIN)===null||K===void 0?void 0:K.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,Ke(Ke({},pe),{sign:be(Ke({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,K=1,G=arguments.length;K<G;K++)for(var se in L=arguments[K])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 K=L.enableAPIEncryption;this._enableAPIEncryption=typeof K=="boolean"?K?Ce.AES256:Ce.NONE:K}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,K){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:[K]})},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*(){const e=this._plvSocket.getUserInfo();let r=e.userId,i=e.authType||"",o=!1;this._plvSocket.config.securityMode===a0.AES?o=Zr.EncryptionType.AES256:this._plvSocket.config.securityMode===a0.SM2&&(o=Zr.EncryptionType.SM2);const s="2.3.0-rc-20251204.1";this.__rtasSender=new Zr.TrackLogSender({commonData:{project_name:"live",app_name:"polyv-socket",app_version:s,logon_id:r,nickname:e.nick,logon_type:i,weixin_open_id:e.wxOpenId,weixin_union_id:e.wxUnionId},enableAPIEncryption:o})})}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 $f(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=$o;console.log("%c@polyv/socket","background:#67C23A;padding: 2px 6px;border-radius: 3px;color: #fff","[version: 2.3.0-rc-20251204.1]","[buildTime: 2025-12-04 02:19:39]");