w-converhp 2.0.53 → 2.0.55
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/README.md +1 -1
- package/dist/w-converhp-client.umd.js +2 -2
- package/dist/w-converhp-client.umd.js.map +1 -1
- package/docs/WConverhpClient.html +2 -2
- package/docs/WConverhpClient.mjs.html +73 -50
- package/docs/WConverhpServer.html +1 -1
- package/docs/WConverhpServer.mjs.html +1 -1
- package/docs/index.html +1 -1
- package/package.json +2 -2
- package/src/WConverhpClient.mjs +72 -49
- package/web.html +18 -3
package/README.md
CHANGED
|
@@ -221,7 +221,7 @@ downloadLargeFile()
|
|
|
221
221
|
|
|
222
222
|
[Necessary] Add script for w-converhp-client.
|
|
223
223
|
```alias
|
|
224
|
-
<script src="https://cdn.jsdelivr.net/npm/w-converhp@2.0.
|
|
224
|
+
<script src="https://cdn.jsdelivr.net/npm/w-converhp@2.0.55/dist/w-converhp-client.umd.js"></script>
|
|
225
225
|
```
|
|
226
226
|
|
|
227
227
|
#### Example for w-converhp-client in browser:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* w-converhp-client v2.0.
|
|
2
|
+
* w-converhp-client v2.0.55
|
|
3
3
|
* (c) 2018-2021 yuda-lyu(semisphere)
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self)["w-converhp-client"]=t()}(this,(function(){"use strict";function e(e,t){return function(){return e.apply(t,arguments)}}const{toString:t}=Object.prototype,{getPrototypeOf:r}=Object,{iterator:n,toStringTag:o}=Symbol,i=(s=Object.create(null),e=>{const r=t.call(e);return s[r]||(s[r]=r.slice(8,-1).toLowerCase())});var s;const a=e=>(e=e.toLowerCase(),t=>i(t)===e),c=e=>t=>typeof t===e,{isArray:u}=Array,l=c("undefined");const f=a("ArrayBuffer");const d=c("string"),p=c("function"),h=c("number"),y=e=>null!==e&&"object"==typeof e,g=e=>{if("object"!==i(e))return!1;const t=r(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||o in e||n in e)},b=a("Date"),m=a("File"),w=a("Blob"),v=a("FileList"),j=a("URLSearchParams"),[O,S,A,E]=["ReadableStream","Request","Response","Headers"].map(a);function _(e,t){let r,n,{allOwnKeys:o=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!=e)if("object"!=typeof e&&(e=[e]),u(e))for(r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else{const n=o?Object.getOwnPropertyNames(e):Object.keys(e),i=n.length;let s;for(r=0;r<i;r++)s=n[r],t.call(null,e[s],s,e)}}function R(e,t){t=t.toLowerCase();const r=Object.keys(e);let n,o=r.length;for(;o-- >0;)if(n=r[o],t===n.toLowerCase())return n;return null}const x="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,T=e=>!l(e)&&e!==x;const U=(C="undefined"!=typeof Uint8Array&&r(Uint8Array),e=>C&&e instanceof C);var C;const P=a("HTMLFormElement"),B=(e=>{let{hasOwnProperty:t}=e;return(e,r)=>t.call(e,r)})(Object.prototype),N=a("RegExp"),k=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};_(r,((r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)})),Object.defineProperties(e,n)};const F=a("AsyncFunction"),L=(D="function"==typeof setImmediate,M=p(x.postMessage),D?setImmediate:M?(z=`axios@${Math.random()}`,I=[],x.addEventListener("message",(e=>{let{source:t,data:r}=e;t===x&&r===z&&I.length&&I.shift()()}),!1),e=>{I.push(e),x.postMessage(z,"*")}):e=>setTimeout(e));var D,M,z,I;const q="undefined"!=typeof queueMicrotask?queueMicrotask.bind(x):"undefined"!=typeof process&&process.nextTick||L;var $={isArray:u,isArrayBuffer:f,isBuffer:function(e){return null!==e&&!l(e)&&null!==e.constructor&&!l(e.constructor)&&p(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||p(e.append)&&("formdata"===(t=i(e))||"object"===t&&p(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&f(e.buffer),t},isString:d,isNumber:h,isBoolean:e=>!0===e||!1===e,isObject:y,isPlainObject:g,isReadableStream:O,isRequest:S,isResponse:A,isHeaders:E,isUndefined:l,isDate:b,isFile:m,isBlob:w,isRegExp:N,isFunction:p,isStream:e=>y(e)&&p(e.pipe),isURLSearchParams:j,isTypedArray:U,isFileList:v,forEach:_,merge:function e(){const{caseless:t}=T(this)&&this||{},r={},n=(n,o)=>{const i=t&&R(r,o)||o;g(r[i])&&g(n)?r[i]=e(r[i],n):g(n)?r[i]=e({},n):u(n)?r[i]=n.slice():r[i]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&_(arguments[e],n);return r},extend:function(t,r,n){let{allOwnKeys:o}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return _(r,((r,o)=>{n&&p(r)?t[o]=e(r,n):t[o]=r}),{allOwnKeys:o}),t},trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,n,o)=>{let i,s,a;const c={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)a=i[s],o&&!o(a,e,t)||c[a]||(t[a]=e[a],c[a]=!0);e=!1!==n&&r(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:i,kindOfTest:a,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(u(e))return e;let t=e.length;if(!h(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[n]).call(e);let o;for(;(o=r.next())&&!o.done;){const r=o.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:P,hasOwnProperty:B,hasOwnProp:B,reduceDescriptors:k,freezeMethods:e=>{k(e,((t,r)=>{if(p(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];p(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach((e=>{r[e]=!0}))};return u(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:R,global:x,isContextDefined:T,isSpecCompliantForm:function(e){return!!(e&&p(e.append)&&"FormData"===e[o]&&e[n])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(y(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const o=u(e)?[]:{};return _(e,((e,t)=>{const i=r(e,n+1);!l(i)&&(o[t]=i)})),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:F,isThenable:e=>e&&(y(e)||p(e))&&p(e.then)&&p(e.catch),setImmediate:L,asap:q,isIterable:e=>null!=e&&p(e[n])};function H(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}$.inherits(H,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:$.toJSONObject(this.config),code:this.code,status:this.status}}});const W=H.prototype,J={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{J[e]={value:e}})),Object.defineProperties(H,J),Object.defineProperty(W,"isAxiosError",{value:!0}),H.from=(e,t,r,n,o,i)=>{const s=Object.create(W);return $.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),H.call(s,e.message,t,r,n,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};function V(e){return $.isPlainObject(e)||$.isArray(e)}function K(e){return $.endsWith(e,"[]")?e.slice(0,-2):e}function X(e,t,r){return e?e.concat(t).map((function(e,t){return e=K(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const G=$.toFlatObject($,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Q(e,t,r){if(!$.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=$.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!$.isUndefined(t[e])}))).metaTokens,o=r.visitor||u,i=r.dots,s=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&$.isSpecCompliantForm(t);if(!$.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if($.isDate(e))return e.toISOString();if(!a&&$.isBlob(e))throw new H("Blob is not supported. Use a Buffer instead.");return $.isArrayBuffer(e)||$.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,o){let a=e;if(e&&!o&&"object"==typeof e)if($.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if($.isArray(e)&&function(e){return $.isArray(e)&&!e.some(V)}(e)||($.isFileList(e)||$.endsWith(r,"[]"))&&(a=$.toArray(e)))return r=K(r),a.forEach((function(e,n){!$.isUndefined(e)&&null!==e&&t.append(!0===s?X([r],n,i):null===s?r:r+"[]",c(e))})),!1;return!!V(e)||(t.append(X(o,r,i),c(e)),!1)}const l=[],f=Object.assign(G,{defaultVisitor:u,convertValue:c,isVisitable:V});if(!$.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!$.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),$.forEach(r,(function(r,i){!0===(!($.isUndefined(r)||null===r)&&o.call(t,r,$.isString(i)?i.trim():i,n,f))&&e(r,n?n.concat(i):[i])})),l.pop()}}(e),t}function Z(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Y(e,t){this._pairs=[],e&&Q(e,this,t)}const ee=Y.prototype;function te(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function re(e,t,r){if(!t)return e;const n=r&&r.encode||te;$.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(i=o?o(t,r):$.isURLSearchParams(t)?t.toString():new Y(t,r).toString(n),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}ee.append=function(e,t){this._pairs.push([e,t])},ee.toString=function(e){const t=e?function(t){return e.call(this,t,Z)}:Z;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var ne=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){$.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},oe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ie={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Y,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const se="undefined"!=typeof window&&"undefined"!=typeof document,ae="object"==typeof navigator&&navigator||void 0,ce=se&&(!ae||["ReactNative","NativeScript","NS"].indexOf(ae.product)<0),ue="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,le=se&&window.location.href||"http://localhost";var fe={...Object.freeze({__proto__:null,hasBrowserEnv:se,hasStandardBrowserEnv:ce,hasStandardBrowserWebWorkerEnv:ue,navigator:ae,origin:le}),...ie};function de(e){function t(e,r,n,o){let i=e[o++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),a=o>=e.length;if(i=!i&&$.isArray(n)?n.length:i,a)return $.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!s;n[i]&&$.isObject(n[i])||(n[i]=[]);return t(e,r,n[i],o)&&$.isArray(n[i])&&(n[i]=function(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}(n[i])),!s}if($.isFormData(e)&&$.isFunction(e.entries)){const r={};return $.forEachEntry(e,((e,n)=>{t(function(e){return $.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null}const pe={transitional:oe,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=$.isObject(e);o&&$.isHTMLForm(e)&&(e=new FormData(e));if($.isFormData(e))return n?JSON.stringify(de(e)):e;if($.isArrayBuffer(e)||$.isBuffer(e)||$.isStream(e)||$.isFile(e)||$.isBlob(e)||$.isReadableStream(e))return e;if($.isArrayBufferView(e))return e.buffer;if($.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Q(e,new fe.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return fe.isNode&&$.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=$.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Q(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e,t,r){if($.isString(e))try{return(t||JSON.parse)(e),$.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||pe.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if($.isResponse(e)||$.isReadableStream(e))return e;if(e&&$.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw H.from(e,H.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:fe.classes.FormData,Blob:fe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};$.forEach(["delete","get","head","post","put","patch"],(e=>{pe.headers[e]={}}));var he=pe;const ye=$.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const ge=Symbol("internals");function be(e){return e&&String(e).trim().toLowerCase()}function me(e){return!1===e||null==e?e:$.isArray(e)?e.map(me):String(e)}function we(e,t,r,n,o){return $.isFunction(n)?n.call(this,t,r):(o&&(t=r),$.isString(t)?$.isString(n)?-1!==t.indexOf(n):$.isRegExp(n)?n.test(t):void 0:void 0)}class ve{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=be(t);if(!o)throw new Error("header name must be a non-empty string");const i=$.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=me(e))}const i=(e,t)=>$.forEach(e,((e,r)=>o(e,r,t)));if($.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if($.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let r,n,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||t[r]&&ye[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t);else if($.isObject(e)&&$.isIterable(e)){let r,n,o={};for(const t of e){if(!$.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[n=t[0]]=(r=o[n])?$.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,r);return this}get(e,t){if(e=be(e)){const r=$.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if($.isFunction(t))return t.call(this,e,r);if($.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=be(e)){const r=$.findKey(this,e);return!(!r||void 0===this[r]||t&&!we(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=be(e)){const o=$.findKey(r,e);!o||t&&!we(0,r[o],o,t)||(delete r[o],n=!0)}}return $.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!we(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return $.forEach(this,((n,o)=>{const i=$.findKey(r,o);if(i)return t[i]=me(n),void delete t[o];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(o):String(o).trim();s!==o&&delete t[o],t[s]=me(n),r[s]=!0})),this}concat(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.constructor.concat(this,...t)}toJSON(e){const t=Object.create(null);return $.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&$.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((e=>{let[t,r]=e;return t+": "+r})).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return n.forEach((e=>t.set(e))),t}static accessor(e){const t=(this[ge]=this[ge]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=be(e);t[n]||(!function(e,t){const r=$.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})}))}(r,e),t[n]=!0)}return $.isArray(e)?e.forEach(n):n(e),this}}ve.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),$.reduceDescriptors(ve.prototype,((e,t)=>{let{value:r}=e,n=t[0].toUpperCase()+t.slice(1);return{get:()=>r,set(e){this[n]=e}}})),$.freezeMethods(ve);var je=ve;function Oe(e,t){const r=this||he,n=t||r,o=je.from(n.headers);let i=n.data;return $.forEach(e,(function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Se(e){return!(!e||!e.__CANCEL__)}function Ae(e,t,r){H.call(this,null==e?"canceled":e,H.ERR_CANCELED,t,r),this.name="CanceledError"}function Ee(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new H("Request failed with status code "+r.status,[H.ERR_BAD_REQUEST,H.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}$.inherits(Ae,H,{__CANCEL__:!0});const _e=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,n=0;const o=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,i=0,s=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=n[s];o||(o=c),r[i]=a,n[i]=c;let l=s,f=0;for(;l!==i;)f+=r[l++],l%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),c-o<t)return;const d=u&&c-u;return d?Math.round(1e3*f/d):void 0}}(50,250);return function(e,t){let r,n,o=0,i=1e3/t;const s=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();o=i,r=null,n&&(clearTimeout(n),n=null),e.apply(null,t)};return[function(){const e=Date.now(),t=e-o;for(var a=arguments.length,c=new Array(a),u=0;u<a;u++)c[u]=arguments[u];t>=i?s(c,e):(r=c,n||(n=setTimeout((()=>{n=null,s(r)}),i-t)))},()=>r&&s(r)]}((r=>{const i=r.loaded,s=r.lengthComputable?r.total:void 0,a=i-n,c=o(a);n=i;e({loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&i<=s?(s-i)/c:void 0,event:r,lengthComputable:null!=s,[t?"download":"upload"]:!0})}),r)},Re=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},xe=e=>function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return $.asap((()=>e(...r)))};var Te=fe.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,fe.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(fe.origin),fe.navigator&&/(msie|trident)/i.test(fe.navigator.userAgent)):()=>!0,Ue=fe.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const s=[e+"="+encodeURIComponent(t)];$.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),$.isString(n)&&s.push("path="+n),$.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Ce(e,t,r){let n=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(n||0==r)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Pe=e=>e instanceof je?{...e}:e;function Be(e,t){t=t||{};const r={};function n(e,t,r,n){return $.isPlainObject(e)&&$.isPlainObject(t)?$.merge.call({caseless:n},e,t):$.isPlainObject(t)?$.merge({},t):$.isArray(t)?t.slice():t}function o(e,t,r,o){return $.isUndefined(t)?$.isUndefined(e)?void 0:n(void 0,e,0,o):n(e,t,0,o)}function i(e,t){if(!$.isUndefined(t))return n(void 0,t)}function s(e,t){return $.isUndefined(t)?$.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(r,o,i){return i in t?n(r,o):i in e?n(void 0,r):void 0}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t,r)=>o(Pe(e),Pe(t),0,!0)};return $.forEach(Object.keys(Object.assign({},e,t)),(function(n){const i=c[n]||o,s=i(e[n],t[n],n);$.isUndefined(s)&&i!==a||(r[n]=s)})),r}var Ne=e=>{const t=Be({},e);let r,{data:n,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:s,headers:a,auth:c}=t;if(t.headers=a=je.from(a),t.url=re(Ce(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),$.isFormData(n))if(fe.hasStandardBrowserEnv||fe.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(r=a.getContentType())){const[e,...t]=r?r.split(";").map((e=>e.trim())).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(fe.hasStandardBrowserEnv&&(o&&$.isFunction(o)&&(o=o(t)),o||!1!==o&&Te(t.url))){const e=i&&s&&Ue.read(s);e&&a.set(i,e)}return t};var ke="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){const n=Ne(e);let o=n.data;const i=je.from(n.headers).normalize();let s,a,c,u,l,{responseType:f,onUploadProgress:d,onDownloadProgress:p}=n;function h(){u&&u(),l&&l(),n.cancelToken&&n.cancelToken.unsubscribe(s),n.signal&&n.signal.removeEventListener("abort",s)}let y=new XMLHttpRequest;function g(){if(!y)return;const n=je.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders());Ee((function(e){t(e),h()}),(function(e){r(e),h()}),{data:f&&"text"!==f&&"json"!==f?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:n,config:e,request:y}),y=null}y.open(n.method.toUpperCase(),n.url,!0),y.timeout=n.timeout,"onloadend"in y?y.onloadend=g:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(g)},y.onabort=function(){y&&(r(new H("Request aborted",H.ECONNABORTED,e,y)),y=null)},y.onerror=function(){r(new H("Network Error",H.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||oe;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new H(t,o.clarifyTimeoutError?H.ETIMEDOUT:H.ECONNABORTED,e,y)),y=null},void 0===o&&i.setContentType(null),"setRequestHeader"in y&&$.forEach(i.toJSON(),(function(e,t){y.setRequestHeader(t,e)})),$.isUndefined(n.withCredentials)||(y.withCredentials=!!n.withCredentials),f&&"json"!==f&&(y.responseType=n.responseType),p&&([c,l]=_e(p,!0),y.addEventListener("progress",c)),d&&y.upload&&([a,u]=_e(d),y.upload.addEventListener("progress",a),y.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(s=t=>{y&&(r(!t||t.type?new Ae(null,e,y):t),y.abort(),y=null)},n.cancelToken&&n.cancelToken.subscribe(s),n.signal&&(n.signal.aborted?s():n.signal.addEventListener("abort",s)));const b=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);b&&-1===fe.protocols.indexOf(b)?r(new H("Unsupported protocol "+b+":",H.ERR_BAD_REQUEST,e)):y.send(o||null)}))};var Fe=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController;const o=function(e){if(!r){r=!0,s();const t=e instanceof Error?e:this.reason;n.abort(t instanceof H?t:new Ae(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new H(`timeout ${t} of ms exceeded`,H.ETIMEDOUT))}),t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:a}=n;return a.unsubscribe=()=>$.asap(s),a}};const Le=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let n,o=0;for(;o<r;)n=o+t,yield e.slice(o,n),o=n},De=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},Me=(e,t,r,n)=>{const o=async function*(e,t){for await(const r of De(e))yield*Le(r,t)}(e,t);let i,s=0,a=e=>{i||(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await o.next();if(t)return a(),void e.close();let i=n.byteLength;if(r){let e=s+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw a(e),e}},cancel:e=>(a(e),o.return())},{highWaterMark:2})},ze="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Ie=ze&&"function"==typeof ReadableStream,qe=ze&&("function"==typeof TextEncoder?($e=new TextEncoder,e=>$e.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var $e;const He=function(e){try{for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return!!e(...r)}catch(e){return!1}},We=Ie&&He((()=>{let e=!1;const t=new Request(fe.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Je=Ie&&He((()=>$.isReadableStream(new Response("").body))),Ve={stream:Je&&(e=>e.body)};var Ke;ze&&(Ke=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Ve[e]&&(Ve[e]=$.isFunction(Ke[e])?t=>t[e]():(t,r)=>{throw new H(`Response type '${e}' is not supported`,H.ERR_NOT_SUPPORT,r)})})));const Xe=async(e,t)=>{const r=$.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if($.isBlob(e))return e.size;if($.isSpecCompliantForm(e)){const t=new Request(fe.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return $.isArrayBufferView(e)||$.isArrayBuffer(e)?e.byteLength:($.isURLSearchParams(e)&&(e+=""),$.isString(e)?(await qe(e)).byteLength:void 0)})(t):r};const Ge={http:null,xhr:ke,fetch:ze&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:l,withCredentials:f="same-origin",fetchOptions:d}=Ne(e);u=u?(u+"").toLowerCase():"text";let p,h=Fe([o,i&&i.toAbortSignal()],s);const y=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(c&&We&&"get"!==r&&"head"!==r&&0!==(g=await Xe(l,n))){let e,r=new Request(t,{method:"POST",body:n,duplex:"half"});if($.isFormData(n)&&(e=r.headers.get("content-type"))&&l.setContentType(e),r.body){const[e,t]=Re(g,_e(xe(c)));n=Me(r.body,65536,e,t)}}$.isString(f)||(f=f?"include":"omit");const o="credentials"in Request.prototype;p=new Request(t,{...d,signal:h,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:n,duplex:"half",credentials:o?f:void 0});let i=await fetch(p);const s=Je&&("stream"===u||"response"===u);if(Je&&(a||s&&y)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=$.toFiniteNumber(i.headers.get("content-length")),[r,n]=a&&Re(t,_e(xe(a),!0))||[];i=new Response(Me(i.body,65536,r,(()=>{n&&n(),y&&y()})),e)}u=u||"text";let b=await Ve[$.findKey(Ve,u)||"text"](i,e);return!s&&y&&y(),await new Promise(((t,r)=>{Ee(t,r,{data:b,headers:je.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:p})}))}catch(t){if(y&&y(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new H("Network Error",H.ERR_NETWORK,e,p),{cause:t.cause||t});throw H.from(t,t&&t.code,e,p)}})};$.forEach(Ge,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Qe=e=>`- ${e}`,Ze=e=>$.isFunction(e)||null===e||!1===e;var Ye={getAdapter:e=>{e=$.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){let t;if(r=e[i],n=r,!Ze(r)&&(n=Ge[(t=String(r)).toLowerCase()],void 0===n))throw new H(`Unknown adapter '${t}'`);if(n)break;o[t||"#"+i]=n}if(!n){const e=Object.entries(o).map((e=>{let[t,r]=e;return`adapter ${t} `+(!1===r?"is not supported by the environment":"is not available in the build")}));throw new H("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Qe).join("\n"):" "+Qe(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n},adapters:Ge};function et(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ae(null,e)}function tt(e){et(e),e.headers=je.from(e.headers),e.data=Oe.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Ye.getAdapter(e.adapter||he.adapter)(e).then((function(t){return et(e),t.data=Oe.call(e,e.transformResponse,t),t.headers=je.from(t.headers),t}),(function(t){return Se(t)||(et(e),t&&t.response&&(t.response.data=Oe.call(e,e.transformResponse,t.response),t.response.headers=je.from(t.response.headers))),Promise.reject(t)}))}const rt="1.9.0",nt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{nt[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const ot={};nt.transitional=function(e,t,r){function n(e,t){return"[Axios v1.9.0] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new H(n(o," has been removed"+(t?" in "+t:"")),H.ERR_DEPRECATED);return t&&!ot[o]&&(ot[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}},nt.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};var it={assertOptions:function(e,t,r){if("object"!=typeof e)throw new H("options must be an object",H.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],s=t[i];if(s){const t=e[i],r=void 0===t||s(t,i,e);if(!0!==r)throw new H("option "+i+" must be "+r,H.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new H("Unknown option "+i,H.ERR_BAD_OPTION)}},validators:nt};const st=it.validators;class at{constructor(e){this.defaults=e||{},this.interceptors={request:new ne,response:new ne}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Be(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&it.assertOptions(r,{silentJSONParsing:st.transitional(st.boolean),forcedJSONParsing:st.transitional(st.boolean),clarifyTimeoutError:st.transitional(st.boolean)},!1),null!=n&&($.isFunction(n)?t.paramsSerializer={serialize:n}:it.assertOptions(n,{encode:st.function,serialize:st.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),it.assertOptions(t,{baseUrl:st.spelling("baseURL"),withXsrfToken:st.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&$.merge(o.common,o[t.method]);o&&$.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=je.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,f=0;if(!a){const e=[tt.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,c),l=e.length,u=Promise.resolve(t);f<l;)u=u.then(e[f++],e[f++]);return u}l=s.length;let d=t;for(f=0;f<l;){const e=s[f++],t=s[f++];try{d=e(d)}catch(e){t.call(this,e);break}}try{u=tt.call(this,d)}catch(e){return Promise.reject(e)}for(f=0,l=c.length;f<l;)u=u.then(c[f++],c[f++]);return u}getUri(e){return re(Ce((e=Be(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}$.forEach(["delete","get","head","options"],(function(e){at.prototype[e]=function(t,r){return this.request(Be(r||{},{method:e,url:t,data:(r||{}).data}))}})),$.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(Be(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}at.prototype[e]=t(),at.prototype[e+"Form"]=t(!0)}));var ct=at;class ut{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const r=this;this.promise.then((e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const n=new Promise((e=>{r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,o){r.reason||(r.reason=new Ae(e,n,o),t(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new ut((function(t){e=t})),cancel:e}}}var lt=ut;const ft={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ft).forEach((e=>{let[t,r]=e;ft[r]=t}));var dt=ft;const pt=function t(r){const n=new ct(r),o=e(ct.prototype.request,n);return $.extend(o,ct.prototype,n,{allOwnKeys:!0}),$.extend(o,n,null,{allOwnKeys:!0}),o.create=function(e){return t(Be(r,e))},o}(he);pt.Axios=ct,pt.CanceledError=Ae,pt.CancelToken=lt,pt.isCancel=Se,pt.VERSION=rt,pt.toFormData=Q,pt.AxiosError=H,pt.Cancel=pt.CanceledError,pt.all=function(e){return Promise.all(e)},pt.spread=function(e){return function(t){return e.apply(null,t)}},pt.isAxiosError=function(e){return $.isObject(e)&&!0===e.isAxiosError},pt.mergeConfig=Be,pt.AxiosHeaders=je,pt.formToJSON=e=>de($.isHTMLForm(e)?new FormData(e):e),pt.getAdapter=Ye.getAdapter,pt.HttpStatusCode=dt,pt.default=pt;var ht=pt,yt=Array.isArray,gt="object"==typeof global&&global&&global.Object===Object&&global,bt="object"==typeof self&&self&&self.Object===Object&&self,mt=gt||bt||Function("return this")(),wt=mt.Symbol,vt=Object.prototype,jt=vt.hasOwnProperty,Ot=vt.toString,St=wt?wt.toStringTag:void 0;var At=Object.prototype.toString;var Et="[object Null]",_t="[object Undefined]",Rt=wt?wt.toStringTag:void 0;function xt(e){return null==e?void 0===e?_t:Et:Rt&&Rt in Object(e)?function(e){var t=jt.call(e,St),r=e[St];try{e[St]=void 0;var n=!0}catch(e){}var o=Ot.call(e);return n&&(t?e[St]=r:delete e[St]),o}(e):function(e){return At.call(e)}(e)}function Tt(e){return null!=e&&"object"==typeof e}var Ut="[object Symbol]";function Ct(e){return"symbol"==typeof e||Tt(e)&&xt(e)==Ut}var Pt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Bt=/^\w*$/;function Nt(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var kt="[object AsyncFunction]",Ft="[object Function]",Lt="[object GeneratorFunction]",Dt="[object Proxy]";function Mt(e){if(!Nt(e))return!1;var t=xt(e);return t==Ft||t==Lt||t==kt||t==Dt}var zt,It=mt["__core-js_shared__"],qt=(zt=/[^.]+$/.exec(It&&It.keys&&It.keys.IE_PROTO||""))?"Symbol(src)_1."+zt:"";var $t=Function.prototype.toString;function Ht(e){if(null!=e){try{return $t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var Wt=/^\[object .+?Constructor\]$/,Jt=Function.prototype,Vt=Object.prototype,Kt=Jt.toString,Xt=Vt.hasOwnProperty,Gt=RegExp("^"+Kt.call(Xt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Qt(e){return!(!Nt(e)||(t=e,qt&&qt in t))&&(Mt(e)?Gt:Wt).test(Ht(e));var t}function Zt(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return Qt(r)?r:void 0}var Yt=Zt(Object,"create");var er=Object.prototype.hasOwnProperty;var tr=Object.prototype.hasOwnProperty;function rr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function nr(e,t){for(var r,n,o=e.length;o--;)if((r=e[o][0])===(n=t)||r!=r&&n!=n)return o;return-1}rr.prototype.clear=function(){this.__data__=Yt?Yt(null):{},this.size=0},rr.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},rr.prototype.get=function(e){var t=this.__data__;if(Yt){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return er.call(t,e)?t[e]:void 0},rr.prototype.has=function(e){var t=this.__data__;return Yt?void 0!==t[e]:tr.call(t,e)},rr.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Yt&&void 0===t?"__lodash_hash_undefined__":t,this};var or=Array.prototype.splice;function ir(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ir.prototype.clear=function(){this.__data__=[],this.size=0},ir.prototype.delete=function(e){var t=this.__data__,r=nr(t,e);return!(r<0)&&(r==t.length-1?t.pop():or.call(t,r,1),--this.size,!0)},ir.prototype.get=function(e){var t=this.__data__,r=nr(t,e);return r<0?void 0:t[r][1]},ir.prototype.has=function(e){return nr(this.__data__,e)>-1},ir.prototype.set=function(e,t){var r=this.__data__,n=nr(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var sr=Zt(mt,"Map");function ar(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function cr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}cr.prototype.clear=function(){this.size=0,this.__data__={hash:new rr,map:new(sr||ir),string:new rr}},cr.prototype.delete=function(e){var t=ar(this,e).delete(e);return this.size-=t?1:0,t},cr.prototype.get=function(e){return ar(this,e).get(e)},cr.prototype.has=function(e){return ar(this,e).has(e)},cr.prototype.set=function(e,t){var r=ar(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};var ur="Expected a function";function lr(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(ur);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var s=e.apply(this,n);return r.cache=i.set(o,s)||i,s};return r.cache=new(lr.Cache||cr),r}lr.Cache=cr;var fr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,dr=/\\(\\)?/g,pr=function(e){var t=lr(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(fr,(function(e,r,n,o){t.push(n?o.replace(dr,"$1"):r||e)})),t})),hr=pr;var yr=1/0,gr=wt?wt.prototype:void 0,br=gr?gr.toString:void 0;function mr(e){if("string"==typeof e)return e;if(yt(e))return function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}(e,mr)+"";if(Ct(e))return br?br.call(e):"";var t=e+"";return"0"==t&&1/e==-yr?"-0":t}function wr(e){return null==e?"":mr(e)}function vr(e,t){return yt(e)?e:function(e,t){if(yt(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!Ct(e))||Bt.test(e)||!Pt.test(e)||null!=t&&e in Object(t)}(e,t)?[e]:hr(wr(e))}var jr=1/0;function Or(e){if("string"==typeof e||Ct(e))return e;var t=e+"";return"0"==t&&1/e==-jr?"-0":t}function Sr(e,t,r){var n=null==e?void 0:function(e,t){for(var r=0,n=(t=vr(t,e)).length;null!=e&&r<n;)e=e[Or(t[r++])];return r&&r==n?e:void 0}(e,t);return void 0===n?r:n}var Ar=Object.prototype;function Er(e,t){return function(r){return e(t(r))}}var _r=Er(Object.keys,Object),Rr=Object.prototype.hasOwnProperty;function xr(e){if(r=(t=e)&&t.constructor,t!==("function"==typeof r&&r.prototype||Ar))return _r(e);var t,r,n=[];for(var o in Object(e))Rr.call(e,o)&&"constructor"!=o&&n.push(o);return n}var Tr=Zt(mt,"DataView"),Ur=Zt(mt,"Promise"),Cr=Zt(mt,"Set"),Pr=Zt(mt,"WeakMap"),Br="[object Map]",Nr="[object Promise]",kr="[object Set]",Fr="[object WeakMap]",Lr="[object DataView]",Dr=Ht(Tr),Mr=Ht(sr),zr=Ht(Ur),Ir=Ht(Cr),qr=Ht(Pr),$r=xt;(Tr&&$r(new Tr(new ArrayBuffer(1)))!=Lr||sr&&$r(new sr)!=Br||Ur&&$r(Ur.resolve())!=Nr||Cr&&$r(new Cr)!=kr||Pr&&$r(new Pr)!=Fr)&&($r=function(e){var t=xt(e),r="[object Object]"==t?e.constructor:void 0,n=r?Ht(r):"";if(n)switch(n){case Dr:return Lr;case Mr:return Br;case zr:return Nr;case Ir:return kr;case qr:return Fr}return t});var Hr=$r,Wr=9007199254740991;function Jr(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Wr}function Vr(e){return null!=e&&Jr(e.length)&&!Mt(e)}var Kr="[object String]";var Xr,Gr=(Xr="length",function(e){return null==e?void 0:e[Xr]}),Qr=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var Zr="\\ud800-\\udfff",Yr="["+Zr+"]",en="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",tn="\\ud83c[\\udffb-\\udfff]",rn="[^"+Zr+"]",nn="(?:\\ud83c[\\udde6-\\uddff]){2}",on="[\\ud800-\\udbff][\\udc00-\\udfff]",sn="(?:"+en+"|"+tn+")"+"?",an="[\\ufe0e\\ufe0f]?",cn=an+sn+("(?:\\u200d(?:"+[rn,nn,on].join("|")+")"+an+sn+")*"),un="(?:"+[rn+en+"?",en,nn,on,Yr].join("|")+")",ln=RegExp(tn+"(?="+tn+")|"+un+cn,"g");function fn(e){return function(e){return Qr.test(e)}(e)?function(e){for(var t=ln.lastIndex=0;ln.test(e);)++t;return t}(e):Gr(e)}var dn="[object Map]",pn="[object Set]";function hn(e){if(null==e)return 0;if(Vr(e))return"string"==typeof(t=e)||!yt(t)&&Tt(t)&&xt(t)==Kr?fn(e):e.length;var t,r=Hr(e);return r==dn||r==pn?e.size:xr(e).length}function yn(){return"undefined"!=typeof window&&void 0!==window.document}var gn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},bn={};!function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}function o(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function i(e,t,n,i,s){if("function"!=typeof n)throw new TypeError("The listener must be a function");var a=new o(n,i||e,s),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],a]:e._events[c].push(a):(e._events[c]=a,e._eventsCount++),e}function s(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function a(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),a.prototype.eventNames=function(){var e,n,o=[];if(0===this._eventsCount)return o;for(n in e=this._events)t.call(e,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},a.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,s=new Array(i);o<i;o++)s[o]=n[o].fn;return s},a.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},a.prototype.emit=function(e,t,n,o,i,s){var a=r?r+e:e;if(!this._events[a])return!1;var c,u,l=this._events[a],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,n),!0;case 4:return l.fn.call(l.context,t,n,o),!0;case 5:return l.fn.call(l.context,t,n,o,i),!0;case 6:return l.fn.call(l.context,t,n,o,i,s),!0}for(u=1,c=new Array(f-1);u<f;u++)c[u-1]=arguments[u];l.fn.apply(l.context,c)}else{var d,p=l.length;for(u=0;u<p;u++)switch(l[u].once&&this.removeListener(e,l[u].fn,void 0,!0),f){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,t);break;case 3:l[u].fn.call(l[u].context,t,n);break;case 4:l[u].fn.call(l[u].context,t,n,o);break;default:if(!c)for(d=1,c=new Array(f-1);d<f;d++)c[d-1]=arguments[d];l[u].fn.apply(l[u].context,c)}}return!0},a.prototype.on=function(e,t,r){return i(this,e,t,r,!1)},a.prototype.once=function(e,t,r){return i(this,e,t,r,!0)},a.prototype.removeListener=function(e,t,n,o){var i=r?r+e:e;if(!this._events[i])return this;if(!t)return s(this,i),this;var a=this._events[i];if(a.fn)a.fn!==t||o&&!a.once||n&&a.context!==n||s(this,i);else{for(var c=0,u=[],l=a.length;c<l;c++)(a[c].fn!==t||o&&!a[c].once||n&&a[c].context!==n)&&u.push(a[c]);u.length?this._events[i]=1===u.length?u[0]:u:s(this,i)}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&s(this,t)):(this._events=new n,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=r,a.EventEmitter=a,e.exports=a}({get exports(){return bn},set exports(e){bn=e}});var mn=bn;function wn(){let e,t,r=new Promise((function(){e=arguments[0],t=arguments[1]}));return r.resolve=e,r.reject=t,r}function vn(e){return"[object Object]"===Object.prototype.toString.call(e)}function jn(e){return"[object String]"===Object.prototype.toString.call(e)}function On(e){return!(!jn(e)||""===e)}function Sn(e){return e!=e}function An(e){let t=!1;if(On(e))t=!isNaN(Number(e));else if(function(e){return"[object Number]"===Object.prototype.toString.call(e)}(e)){if(Sn(e))return!1;t=!0}return t}function En(e,t){return!!vn(e)&&(!(!On(t)&&!An(t))&&t in e)}function _n(e){let t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t}var Rn=/\s/;var xn=/^\s+/;function Tn(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&Rn.test(e.charAt(t)););return t}(e)+1).replace(xn,""):e}var Un=NaN,Cn=/^[-+]0x[0-9a-f]+$/i,Pn=/^0b[01]+$/i,Bn=/^0o[0-7]+$/i,Nn=parseInt;function kn(e){if("number"==typeof e)return e;if(Ct(e))return Un;if(Nt(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Nt(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Tn(e);var r=Pn.test(e);return r||Bn.test(e)?Nn(e.slice(2),r?2:8):Cn.test(e)?Un:+e}var Fn=1/0,Ln=17976931348623157e292;function Dn(e){return e?(e=kn(e))===Fn||e===-Fn?(e<0?-1:1)*Ln:e==e?e:0:0===e?e:0}function Mn(e){var t=Dn(e),r=t%1;return t==t?r?t-r:t:0}function zn(e){if(!An(e))return 0;return Dn(e)}function In(e){return!!An(e)&&(e=zn(e),"number"==typeof(t=e)&&t==Mn(t));var t}var qn=mt.isFinite,$n=Math.min;var Hn,Wn=(Hn=Math["round"],function(e,t){if(e=kn(e),(t=null==t?0:$n(Mn(t),292))&&qn(e)){var r=(wr(e)+"e").split("e");return+((r=(wr(Hn(r[0]+"e"+(+r[1]+t)))+"e").split("e"))[0]+"e"+(+r[1]-t))}return Hn(e)});function Jn(e){if(!An(e))return 0;e=zn(e);let t=Wn(e);return"0"===String(t)?0:t}function Vn(e){if(!In(e))return!1;return Jn(e)>0}function Kn(e){if(!In(e))return!1;return Jn(e)>=0}function Xn(e){if(vn(e)){for(let t in e)return!0;return!1}return!1}function Gn(e){let t,r=Object.prototype.toString.call(e);if(t="[object Promise]"===r,t)return!0;if("[object Function]"!==r)return!1;try{t="function"!=typeof e.subscribe&&"function"==typeof e.then}catch(e){}return t}function Qn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return An(e)&&Kn(t)?(e=zn(e),Wn(e,t).toFixed(t)):""}var Zn={};var Yn,eo={},to={get exports(){return eo},set exports(e){eo=e}};function ro(){return Yn||(Yn=1,function(e,t){var r;e.exports=(r=r||function(e,t){var r;if("undefined"!=typeof window&&window.crypto&&(r=window.crypto),"undefined"!=typeof self&&self.crypto&&(r=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!==gn&&gn.crypto&&(r=gn.crypto),!r)try{r=require("crypto")}catch(e){}var n=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),i={},s=i.lib={},a=s.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=s.WordArray=a.extend({init:function(e,r){e=this.words=e||[],this.sigBytes=r!=t?r:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,o=e.sigBytes;if(this.clamp(),n%4)for(var i=0;i<o;i++){var s=r[i>>>2]>>>24-i%4*8&255;t[n+i>>>2]|=s<<24-(n+i)%4*8}else for(var a=0;a<o;a+=4)t[n+a>>>2]=r[a>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=a.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(n());return new c.init(t,e)}}),u=i.enc={},l=u.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o++){var i=t[o>>>2]>>>24-o%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new c.init(r,t/2)}},f=u.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o++){var i=t[o>>>2]>>>24-o%4*8&255;n.push(String.fromCharCode(i))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new c.init(r,t)}},d=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},p=s.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,n=this._data,o=n.words,i=n.sigBytes,s=this.blockSize,a=i/(4*s),u=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*s,l=e.min(4*u,i);if(u){for(var f=0;f<u;f+=s)this._doProcessBlock(o,f);r=o.splice(0,u),n.sigBytes-=l}return new c.init(r,l)},clone:function(){var e=a.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});s.Hasher=p.extend({cfg:a.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new h.HMAC.init(e,r).finalize(t)}}});var h=i.algo={};return i}(Math),r)}(to)),eo}!function(e,t){e.exports=ro().enc.Utf8}({get exports(){return Zn},set exports(e){Zn=e}});var no=Zn,oo={};!function(e,t){var r;e.exports=(r=ro(),function(){var e=r,t=e.lib.WordArray;function n(e,r,n){for(var o=[],i=0,s=0;s<r;s++)if(s%4){var a=n[e.charCodeAt(s-1)]<<s%4*2|n[e.charCodeAt(s)]>>>6-s%4*2;o[i>>>2]|=a<<24-i%4*8,i++}return t.create(o,i)}e.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var o=[],i=0;i<r;i+=3)for(var s=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,a=0;a<4&&i+.75*a<r;a++)o.push(n.charAt(s>>>6*(3-a)&63));var c=n.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e){var t=e.length,r=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i<r.length;i++)o[r.charCodeAt(i)]=i}var s=r.charAt(64);if(s){var a=e.indexOf(s);-1!==a&&(t=a)}return n(e,t,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),r.enc.Base64)}({get exports(){return oo},set exports(e){oo=e}});var io=oo;function so(e){if(!On(e))return"";return io.parse(e).toString(no)}function ao(e){if(!yn())return Promise.reject("no window");try{return function(e){return e.arrayBuffer()}(e)}catch(t){return function(e){let t=wn(),r=new FileReader;return r.onload=function(){let e=r.result;t.resolve(e)},r.onerror=function(e){t.reject(e)},r.readAsArrayBuffer(e),t}(e)}}function co(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}var uo,lo=function(e,t,r){for(var n=-1,o=Object(e),i=r(e),s=i.length;s--;){var a=i[uo?s:++n];if(!1===t(o[a],a,o))break}return e},fo=lo;function po(e){return Tt(e)&&"[object Arguments]"==xt(e)}var ho=Object.prototype,yo=ho.hasOwnProperty,go=ho.propertyIsEnumerable,bo=po(function(){return arguments}())?po:function(e){return Tt(e)&&yo.call(e,"callee")&&!go.call(e,"callee")},mo=bo;var wo="object"==typeof exports&&exports&&!exports.nodeType&&exports,vo=wo&&"object"==typeof module&&module&&!module.nodeType&&module,jo=vo&&vo.exports===wo?mt.Buffer:void 0,Oo=(jo?jo.isBuffer:void 0)||function(){return!1},So=9007199254740991,Ao=/^(?:0|[1-9]\d*)$/;function Eo(e,t){var r=typeof e;return!!(t=null==t?So:t)&&("number"==r||"symbol"!=r&&Ao.test(e))&&e>-1&&e%1==0&&e<t}var _o={};_o["[object Float32Array]"]=_o["[object Float64Array]"]=_o["[object Int8Array]"]=_o["[object Int16Array]"]=_o["[object Int32Array]"]=_o["[object Uint8Array]"]=_o["[object Uint8ClampedArray]"]=_o["[object Uint16Array]"]=_o["[object Uint32Array]"]=!0,_o["[object Arguments]"]=_o["[object Array]"]=_o["[object ArrayBuffer]"]=_o["[object Boolean]"]=_o["[object DataView]"]=_o["[object Date]"]=_o["[object Error]"]=_o["[object Function]"]=_o["[object Map]"]=_o["[object Number]"]=_o["[object Object]"]=_o["[object RegExp]"]=_o["[object Set]"]=_o["[object String]"]=_o["[object WeakMap]"]=!1;var Ro="object"==typeof exports&&exports&&!exports.nodeType&&exports,xo=Ro&&"object"==typeof module&&module&&!module.nodeType&&module,To=xo&&xo.exports===Ro&>.process,Uo=function(){try{var e=xo&&xo.require&&xo.require("util").types;return e||To&&To.binding&&To.binding("util")}catch(e){}}(),Co=Uo&&Uo.isTypedArray,Po=Co?function(e){return function(t){return e(t)}}(Co):function(e){return Tt(e)&&Jr(e.length)&&!!_o[xt(e)]},Bo=Po,No=Object.prototype.hasOwnProperty;function ko(e,t){var r=yt(e),n=!r&&mo(e),o=!r&&!n&&Oo(e),i=!r&&!n&&!o&&Bo(e),s=r||n||o||i,a=s?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],c=a.length;for(var u in e)!t&&!No.call(e,u)||s&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Eo(u,c))||a.push(u);return a}function Fo(e){return Vr(e)?ko(e):xr(e)}var Lo=function(e,t){return function(r,n){if(null==r)return r;if(!Vr(r))return e(r,n);for(var o=r.length,i=t?o:-1,s=Object(r);(t?i--:++i<o)&&!1!==n(s[i],i,s););return r}}((function(e,t){return e&&fo(e,t,Fo)})),Do=Lo;function Mo(e){return e}function zo(e,t){var r;return(yt(e)?co:Do)(e,"function"==typeof(r=t)?r:Mo)}function Io(e){return"[object Array]"===Object.prototype.toString.call(e)}function qo(e){if(vn(e)){for(let t in e)return!1;return!0}return!1}function $o(e){return!!function(e){return"[object Undefined]"===Object.prototype.toString.call(e)}(e)||(!!function(e){return"[object Null]"===Object.prototype.toString.call(e)}(e)||(!!qo(e)||(!!function(e){return!(!jn(e)||""!==e)}(e)||(!!function(e){return!!Io(e)&&0===e.length}(e)||!!Sn(e)))))}function Ho(e){return"[object ArrayBuffer]"===Object.prototype.toString.call(e)}function Wo(e){return"[object Blob]"===Object.prototype.toString.call(e)}function Jo(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)}function Vo(e){return"[object Uint16Array]"===Object.prototype.toString.call(e)}function Ko(e){if(!(Ho(e)||Wo(e)||Jo(e)||Vo(e)))return null;try{if(e.byteLength)return e.byteLength}catch(e){}try{if(e.length)return e.length}catch(e){}try{if(e.size)return e.size}catch(e){}return null}var Xo=Er(Object.getPrototypeOf,Object),Go="[object Object]",Qo=Function.prototype,Zo=Object.prototype,Yo=Qo.toString,ei=Zo.hasOwnProperty,ti=Yo.call(Object);var ri="[object DOMException]",ni="[object Error]";function oi(e){if(!Tt(e))return!1;var t=xt(e);return t==ni||t==ri||"string"==typeof e.message&&"string"==typeof e.name&&!function(e){if(!Tt(e)||xt(e)!=Go)return!1;var t=Xo(e);if(null===t)return!0;var r=ei.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Yo.call(r)==ti}(e)}function ii(e){if(!On(e))return new Uint8Array;let t;try{t=function(e){if(!jn(e))return new Uint8Array;let t=io.parse(e),r=t.words,n=t.sigBytes,o=new Uint8Array(n);for(let e=0;e<n;e++){let t=r[e>>>2]>>>24-e%4*8&255;o[e]=t}return o}(function(e){if(!On(e))return"";let t=no.parse(e);return io.stringify(t)}(e))}catch(e){return new Uint8Array}return t}var si="[object Boolean]";function ai(e){return!0===(t=e)||!1===t||Tt(t)&&xt(t)==si;var t}function ci(e,t){return function(e,t,r,n,o,i){if(!An(e))return null;if(!Jo(t))return null;if(!In(r))return null;if(!ai(n))return null;if(!In(o))return null;if(!In(i))return null;let s,a,c;e=zn(e);let u=8*i-o-1,l=(1<<u)-1,f=l>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?i-1:0,h=n?-1:1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),(e+=s+f>=1?d/c:d*Math.pow(2,1-f))*c>=2&&(s++,c/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(e*c-1)*Math.pow(2,o),s+=f):(a=e*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;t[r+p]=255&a,p+=h,a/=256,o-=8);for(s=s<<o|a,u+=o;u>0;t[r+p]=255&s,p+=h,s/=256,u-=8);return t[r+p-h]|=128*y,null}(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,!(arguments.length>3&&void 0!==arguments[3])||arguments[3],arguments.length>4&&void 0!==arguments[4]?arguments[4]:52,arguments.length>5&&void 0!==arguments[5]?arguments[5]:8)}function ui(e){let t=[],r=[];if((!Io(n=e)||0===n.length||1===n.length&&$o(n[0]))&&!Xn(e))return null;var n;let o=[],i=[];function s(e){o.push(Ko(e)),i.push(e)}try{let n=function(e){if(!vn(e))return{results:"",binarys:[]};if(qo(e))return{results:"",binarys:[]};let t="",r=[];try{let n=-1;t=JSON.stringify(e,(function(e,t){if(Jo(t)){n+=1;let e=`[Uint8Array]::${n}`;return r.push(t),e}if(Vo(t)){n+=1;let e=`[Uint16Array]::${n}`;return r.push(t),e}if(Ho(t)){n+=1;let e=`[ArrayBuffer]::${n}`;return r.push(t),e}return oi(t)&&(t=t.toString()),t}))}catch(e){}return{results:t,binarys:r}}(e);s(ii(n.results)),zo(n.binarys,(e=>{s(e)}));let a=o,c=ii(JSON.stringify(a)),u=new Uint8Array(8);ci(Ko(c),u),t.push(u),t.push(c),zo(i,(e=>{t.push(e)})),zo(t,(e=>{r=function(e,t){let r=Ko(e),n=Ko(t),o=new Uint8Array(r+n);return o.set(new Uint8Array(e),0),o.set(new Uint8Array(t),r),o}(r,e)}))}catch(e){return null}return r}function li(e){return function(e,t,r,n,o){if(!Jo(e))return null;if(!In(t))return null;if(!ai(r))return null;if(!In(n))return null;if(!In(o))return null;let i,s,a=8*o-n-1,c=(1<<a)-1,u=c>>1,l=-7,f=r?0:o-1,d=r?1:-1,p=e[t+f];for(f+=d,i=p&(1<<-l)-1,p>>=-l,l+=a;l>0;i=256*i+e[t+f],f+=d,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=n;l>0;s=256*s+e[t+f],f+=d,l-=8);if(0===i)i=1-u;else{if(i===c)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),i-=u}return(p?-1:1)*s*Math.pow(2,i-n)}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!(arguments.length>2&&void 0!==arguments[2])||arguments[2],arguments.length>3&&void 0!==arguments[3]?arguments[3]:52,arguments.length>4&&void 0!==arguments[4]?arguments[4]:8)}var fi={};!function(e,t){var r;e.exports=(r=ro(),function(){if("function"==typeof ArrayBuffer){var e=r.lib.WordArray,t=e.init,n=e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var r=e.byteLength,n=[],o=0;o<r;o++)n[o>>>2]|=e[o]<<24-o%4*8;t.call(this,n,r)}else t.apply(this,arguments)};n.prototype=e}}(),r.lib.WordArray)}({get exports(){return fi},set exports(e){fi=e}});var di=fi;function pi(e){if(!Jo(e))return"";let t;try{t=so(function(e){return Jo(e)?di.create(e).toString(io):""}(e))}catch(e){return""}return t}function hi(e){let t=null;if(!Jo(e))return null;try{let r=8,n=e.slice(0,r),o=e.slice(r,Ko(e)),i=li(n),s=o.slice(0,i),a=o.slice(i,Ko(o)),c=pi(s),u=function(e,t){let r=0,n=0,o=[];return zo(t,(t=>{n=r+t;let i=e.slice(r,n);r=n,o.push(i)})),o}(a,JSON.parse(c));t=function(e){if(!Xn(e))return{};let{results:t,binarys:r}=e;if(!On(t))return{};if(!Io(r))return{};let n={};try{n=JSON.parse(t,(function(e,t){if(On(t)){if(t.indexOf("[Uint8Array]::")>=0){let e=Jn(t.replace("[Uint8Array]::",""));return r[e]}if(t.indexOf("[Uint16Array]::")>=0){let e=Jn(t.replace("[Uint16Array]::",""));return r[e]}if(t.indexOf("[ArrayBuffer]::")>=0){let e=Jn(t.replace("[ArrayBuffer]::",""));return r[e]}}return t}))}catch(e){}return n}({results:pi(u.shift()),binarys:u})}catch(e){}return t}function yi(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;An(e)||(e=10);let t=wn();return setTimeout((function(){t.resolve()}),e),t}const gi=new Uint8Array([0,97,115,109,1,0,0,0,1,48,8,96,3,127,127,127,1,127,96,3,127,127,127,0,96,2,127,127,0,96,1,127,1,127,96,3,127,127,126,1,126,96,3,126,127,127,1,126,96,2,127,126,0,96,1,127,1,126,3,11,10,0,0,2,1,3,4,5,6,1,7,5,3,1,0,1,7,85,9,3,109,101,109,2,0,5,120,120,104,51,50,0,0,6,105,110,105,116,51,50,0,2,8,117,112,100,97,116,101,51,50,0,3,8,100,105,103,101,115,116,51,50,0,4,5,120,120,104,54,52,0,5,6,105,110,105,116,54,52,0,7,8,117,112,100,97,116,101,54,52,0,8,8,100,105,103,101,115,116,54,52,0,9,10,251,22,10,242,1,1,4,127,32,0,32,1,106,33,3,32,1,65,16,79,4,127,32,3,65,16,107,33,6,32,2,65,168,136,141,161,2,106,33,3,32,2,65,137,235,208,208,7,107,33,4,32,2,65,207,140,162,142,6,106,33,5,3,64,32,3,32,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,3,32,4,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,4,32,2,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,2,32,5,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,5,32,6,32,0,65,4,106,34,0,79,13,0,11,32,2,65,12,119,32,5,65,18,119,106,32,4,65,7,119,106,32,3,65,1,119,106,5,32,2,65,177,207,217,178,1,106,11,32,1,106,32,0,32,1,65,15,113,16,1,11,146,1,0,32,1,32,2,106,33,2,3,64,32,1,65,4,106,32,2,75,69,4,64,32,0,32,1,40,2,0,65,189,220,202,149,124,108,106,65,17,119,65,175,214,211,190,2,108,33,0,32,1,65,4,106,33,1,12,1,11,11,3,64,32,1,32,2,79,69,4,64,32,0,32,1,45,0,0,65,177,207,217,178,1,108,106,65,11,119,65,177,243,221,241,121,108,33,0,32,1,65,1,106,33,1,12,1,11,11,32,0,32,0,65,15,118,115,65,247,148,175,175,120,108,34,0,65,13,118,32,0,115,65,189,220,202,149,124,108,34,0,65,16,118,32,0,115,11,63,0,32,0,65,8,106,32,1,65,168,136,141,161,2,106,54,2,0,32,0,65,12,106,32,1,65,137,235,208,208,7,107,54,2,0,32,0,65,16,106,32,1,54,2,0,32,0,65,20,106,32,1,65,207,140,162,142,6,106,54,2,0,11,195,4,1,6,127,32,1,32,2,106,33,6,32,0,65,24,106,33,4,32,0,65,40,106,40,2,0,33,3,32,0,32,0,40,2,0,32,2,106,54,2,0,32,0,65,4,106,34,5,32,5,40,2,0,32,2,65,16,79,32,0,40,2,0,65,16,79,114,114,54,2,0,32,2,32,3,106,65,16,73,4,64,32,3,32,4,106,32,1,32,2,252,10,0,0,32,0,65,40,106,32,2,32,3,106,54,2,0,15,11,32,3,4,64,32,3,32,4,106,32,1,65,16,32,3,107,34,2,252,10,0,0,32,0,65,8,106,34,3,32,3,40,2,0,32,4,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,12,106,34,3,32,3,40,2,0,32,4,65,4,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,16,106,34,3,32,3,40,2,0,32,4,65,8,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,20,106,34,3,32,3,40,2,0,32,4,65,12,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,40,106,65,0,54,2,0,32,1,32,2,106,33,1,11,32,1,32,6,65,16,107,77,4,64,32,6,65,16,107,33,8,32,0,65,8,106,40,2,0,33,2,32,0,65,12,106,40,2,0,33,3,32,0,65,16,106,40,2,0,33,5,32,0,65,20,106,40,2,0,33,7,3,64,32,2,32,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,2,32,3,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,3,32,5,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,5,32,7,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,7,32,8,32,1,65,4,106,34,1,79,13,0,11,32,0,65,8,106,32,2,54,2,0,32,0,65,12,106,32,3,54,2,0,32,0,65,16,106,32,5,54,2,0,32,0,65,20,106,32,7,54,2,0,11,32,1,32,6,73,4,64,32,4,32,1,32,6,32,1,107,34,1,252,10,0,0,32,0,65,40,106,32,1,54,2,0,11,11,97,1,1,127,32,0,65,16,106,40,2,0,33,1,32,0,65,4,106,40,2,0,4,127,32,1,65,12,119,32,0,65,20,106,40,2,0,65,18,119,106,32,0,65,12,106,40,2,0,65,7,119,106,32,0,65,8,106,40,2,0,65,1,119,106,5,32,1,65,177,207,217,178,1,106,11,32,0,40,2,0,106,32,0,65,24,106,32,0,65,40,106,40,2,0,16,1,11,255,3,2,3,126,1,127,32,0,32,1,106,33,6,32,1,65,32,79,4,126,32,6,65,32,107,33,6,32,2,66,214,235,130,238,234,253,137,245,224,0,124,33,3,32,2,66,177,169,172,193,173,184,212,166,61,125,33,4,32,2,66,249,234,208,208,231,201,161,228,225,0,124,33,5,3,64,32,3,32,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,3,32,4,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,4,32,2,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,2,32,5,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,5,32,6,32,0,65,8,106,34,0,79,13,0,11,32,2,66,12,137,32,5,66,18,137,124,32,4,66,7,137,124,32,3,66,1,137,124,32,3,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,4,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,2,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,5,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,5,32,2,66,197,207,217,178,241,229,186,234,39,124,11,32,1,173,124,32,0,32,1,65,31,113,16,6,11,134,2,0,32,1,32,2,106,33,2,3,64,32,2,32,1,65,8,106,79,4,64,32,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,32,0,133,66,27,137,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,33,0,32,1,65,8,106,33,1,12,1,11,11,32,1,65,4,106,32,2,77,4,64,32,0,32,1,53,2,0,66,135,149,175,175,152,182,222,155,158,127,126,133,66,23,137,66,207,214,211,190,210,199,171,217,66,126,66,249,243,221,241,153,246,153,171,22,124,33,0,32,1,65,4,106,33,1,11,3,64,32,1,32,2,73,4,64,32,0,32,1,49,0,0,66,197,207,217,178,241,229,186,234,39,126,133,66,11,137,66,135,149,175,175,152,182,222,155,158,127,126,33,0,32,1,65,1,106,33,1,12,1,11,11,32,0,32,0,66,33,136,133,66,207,214,211,190,210,199,171,217,66,126,34,0,32,0,66,29,136,133,66,249,243,221,241,153,246,153,171,22,126,34,0,32,0,66,32,136,133,11,77,0,32,0,65,8,106,32,1,66,214,235,130,238,234,253,137,245,224,0,124,55,3,0,32,0,65,16,106,32,1,66,177,169,172,193,173,184,212,166,61,125,55,3,0,32,0,65,24,106,32,1,55,3,0,32,0,65,32,106,32,1,66,249,234,208,208,231,201,161,228,225,0,124,55,3,0,11,244,4,2,3,127,4,126,32,1,32,2,106,33,5,32,0,65,40,106,33,4,32,0,65,200,0,106,40,2,0,33,3,32,0,32,0,41,3,0,32,2,173,124,55,3,0,32,2,32,3,106,65,32,73,4,64,32,3,32,4,106,32,1,32,2,252,10,0,0,32,0,65,200,0,106,32,2,32,3,106,54,2,0,15,11,32,3,4,64,32,3,32,4,106,32,1,65,32,32,3,107,34,2,252,10,0,0,32,0,65,8,106,34,3,32,3,41,3,0,32,4,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,16,106,34,3,32,3,41,3,0,32,4,65,8,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,24,106,34,3,32,3,41,3,0,32,4,65,16,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,32,106,34,3,32,3,41,3,0,32,4,65,24,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,200,0,106,65,0,54,2,0,32,1,32,2,106,33,1,11,32,1,65,32,106,32,5,77,4,64,32,5,65,32,107,33,2,32,0,65,8,106,41,3,0,33,6,32,0,65,16,106,41,3,0,33,7,32,0,65,24,106,41,3,0,33,8,32,0,65,32,106,41,3,0,33,9,3,64,32,6,32,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,6,32,7,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,7,32,8,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,8,32,9,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,9,32,2,32,1,65,8,106,34,1,79,13,0,11,32,0,65,8,106,32,6,55,3,0,32,0,65,16,106,32,7,55,3,0,32,0,65,24,106,32,8,55,3,0,32,0,65,32,106,32,9,55,3,0,11,32,1,32,5,73,4,64,32,4,32,1,32,5,32,1,107,34,1,252,10,0,0,32,0,65,200,0,106,32,1,54,2,0,11,11,188,2,1,5,126,32,0,65,24,106,41,3,0,33,1,32,0,41,3,0,34,2,66,32,90,4,126,32,0,65,8,106,41,3,0,34,3,66,1,137,32,0,65,16,106,41,3,0,34,4,66,7,137,124,32,1,66,12,137,32,0,65,32,106,41,3,0,34,5,66,18,137,124,124,32,3,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,4,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,1,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,5,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,5,32,1,66,197,207,217,178,241,229,186,234,39,124,11,32,2,124,32,0,65,40,106,32,2,66,31,131,167,16,6,11]);async function bi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Wo(e)&&(r=e,"[object File]"!==Object.prototype.toString.call(r)))return console.log("inp",e),Promise.reject("inp is not a Blob or File");var r;let n=Sr(t,"chunkSize");An(n)||(n=67108864),n=zn(n);let{create64:o}=await async function(){return function(e){const{exports:{mem:t,xxh32:r,xxh64:n,init32:o,update32:i,digest32:s,init64:a,update64:c,digest64:u}}=e;let l=new Uint8Array(t.buffer);function f(e,r){if(t.buffer.byteLength<e+r){const n=Math.ceil((e+r-t.buffer.byteLength)/65536);t.grow(n),l=new Uint8Array(t.buffer)}}function d(e,t,r,n,o,i){f(e);const s=new Uint8Array(e);return l.set(s),r(0,t),s.set(l.subarray(0,e)),{update(t){let r;return l.set(s),"string"==typeof t?(f(3*t.length,e),r=g.encodeInto(t,l.subarray(e)).written):(f(t.byteLength,e),l.set(t,e),r=t.byteLength),n(0,e,r),s.set(l.subarray(0,e)),this},digest:()=>(l.set(s),i(o(0)))}}function p(e){return e>>>0}const h=2n**64n-1n;function y(e){return e&h}const g=new TextEncoder,b=0,m=0n;function w(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b;return f(3*e.length,0),p(r(0,g.encodeInto(e,l).written,t))}function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m;return f(3*e.length,0),y(n(0,g.encodeInto(e,l).written,t))}return{h32:w,h32ToString:function(e){return w(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:b).toString(16).padStart(8,"0")},h32Raw:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b;return f(e.byteLength,0),l.set(e),p(r(0,e.byteLength,t))},create32:function(){return d(48,arguments.length>0&&void 0!==arguments[0]?arguments[0]:b,o,i,s,p)},h64:v,h64ToString:function(e){return v(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:m).toString(16).padStart(16,"0")},h64Raw:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m;return f(e.byteLength,0),l.set(e),y(n(0,e.byteLength,t))},create64:function(){return d(88,arguments.length>0&&void 0!==arguments[0]?arguments[0]:m,a,c,u,y)}}}((await WebAssembly.instantiate(gi)).instance)}(),i=o(),s=0;for(;s<e.size;){let t=e.slice(s,s+n),r=await t.arrayBuffer();i.update(new Uint8Array(r)),s+=n}return i.digest().toString(16).padStart(16,"0")}return function(e){let t=Sr(e,"url");On(t)||(t="http://localhost:8080");let r=Sr(e,"apiName");On(r)||(r="api");let n="";n="/"===function(e,t){if(!On(e))return"";if(!Kn(t))return"";if(0===(t=Jn(t)))return"";let r=e.length-t;return r<0&&(r=0),e.substring(r,r+t)}(t,1)?t+r:t+"/"+r;let o=Sr(e,"getToken",null);_n(o)||(o=()=>"");let i=Sr(e,"tokenType");On(i)||(i="Bearer");let s=Sr(e,"sizeSlice");Vn(s)||(s=1048576);let a=Sr(e,"timeout");Kn(a)||(a=3e5);let c=Sr(e,"retryMain");Kn(c)||(c=3);let u=Sr(e,"retryUpload");Kn(u)||(u=10);let l=Sr(e,"retryDownload");Kn(l)||(l=2);let f=yn()?"browser":"nodejs",d=new mn,p=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];setTimeout((()=>{d.emit(e,...r)}),1)},h=e=>{let t="";if("basic"===e)t=`${n}/main`;else if("upload-controller"===e)t=`${n}/ulctr`;else if("slice"===e)t=`${n}/slc`;else if("download-get-filename"===e)t=`${n}/dwgfn`;else if("download-get"===e)t=`${n}/dwgf`;else{if("download"!==e)throw new Error(`invalid type[${e}]`);t=`${n}/dw`}return t},y=async e=>{let t;return t="browser"===f?await function(e){let t=wn();return ao(e).then((e=>{let r=new Uint8Array(e);t.resolve(r)})).catch((e=>{t.reject(e)})),t}(e):new Uint8Array(e),t},g=async function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Sr(r,"headers");vn(n)||(n={});let s=Sr(r,"dataType","");"blob"!==s&&"fmd"!==s&&"json"!==s&&(s="blob");let c=Sr(r,"cbProgress");_n(c)||(c=()=>{});let u=Sr(r,"retry");Kn(u)||(u=1);let l=h(e),d=wn(),g=null,b={};if("blob"===s)b={"Content-Type":"application/octet-stream"},g=t;else if("fmd"===s){let e;if("browser"===f)e=new FormData;else{if(!_n(r.FormData))throw p("error","invalid opt.FormData, need [npm i form-data] and [import FormData from 'form-data'] to set opt.FormData = FormData"),new Error("invalid opt.FormData");e=new r.FormData({maxDataSize:1099511627776})}e.append("bb",t),"nodejs"===f&&(b={"Content-Type":`multipart/form-data; boundary=${e.getBoundary()}`}),g=e}else"json"===s&&(b={"Content-Type":"application/json"},g=JSON.stringify(t));let m="blob";"nodejs"===f&&(m="arraybuffer","download"===e&&(m="stream"));let w=o();Gn(w)&&(w=await w);let v={method:"POST",url:l,data:g,headers:{Authorization:`${i} ${w}`,...b,...n},timeout:a,maxContentLength:1/0,maxBodyLength:1/0,responseType:m,onUploadProgress:function(e){let t=0,r=e.loaded,n=e.total;Vn(n)&&(t=100*r/n),c({prog:Math.floor(t),p:r,m:"upload"})},onDownloadProgress:function(e){let t=0,r=e.loaded,n=e.total;Vn(n)&&(t=100*r/n),c({prog:Math.floor(t),p:r,m:"download"})}},j=async()=>{let t=await ht(v);if("download"===e)return await(async e=>{let t=wn(),n=Sr(e,"headers['return-type']",""),o=Sr(e,"headers['return-msg']","");if("error"===n)return t.reject(o),t;let i=(e=>{let t="unknow";try{let r=/filename="(.+?)"/.exec(e);t=r?r[1]:"unknown"}catch(e){}return t})(Sr(e,"headers['content-disposition']",""));i=so(i);let s=Sr(e,"data");if("browser"===f)try{let e=URL.createObjectURL(s),r=document.createElement("a");r.href=e,r.download=i,document.body.appendChild(r),r.click(),r.remove(),URL.revokeObjectURL(e),t.resolve(i)}catch(e){console.log(e),t.reject(e)}else try{let e="path",n="fs",o=await import(e),a=await import(n),c=Sr(r,"fdDownload","");a.mkdirSync(c,{recursive:!0});let u=o.resolve(c,i),l=a.createWriteStream(u);s.pipe(l),l.on("finish",(()=>{t.resolve(u)})),l.on("error",(e=>{t.reject(e)}))}catch(e){t.reject(e)}return t})(t);let n=Sr(t,"data"),o=hi(await y(n));return Xn(o)?En(o,"success")?Promise.resolve(o.success):En(o,"error")?(p("error",o.error),Promise.reject(o.error)):(p("error","data does not contain success or error"),Promise.reject("data does not contain success or error")):(p("error","data is not an effective object"),Promise.reject("data is not an effective object"))};return await(async()=>{let e=function(e){if(!_n(e))throw new Error("fn is not a function");return function(){let t=wn(),r=null,n=null;try{r=e.apply(this,arguments)}catch(e){n=e}return null!==n?t.resolve({state:"error",msg:n}):Gn(r)?r.then((e=>{t.resolve({state:"success",msg:e})})).catch((e=>{"cancelled"===Sr(e,"reason")?t.resolve({state:"cancelled",msg:""}):t.resolve({state:"error",msg:e})})):t.resolve({state:"success",msg:r}),t}}(j),t=await e(v),r=Math.pow(180,1/9),n=0;for(;"error"===t.state&&(n+=1,!(n>u));){let o=Math.round(1e3*Math.pow(r,n-1));console.log(`wait ${Qn(o/1e3,1)}(second) to retry...`),await yi(o),console.log(`retry n=${n}...`),t=await e(v)}return"success"===t.state?t.msg:Promise.reject(t.msg)})().then((e=>{d.resolve(e)})).catch((async e=>{let t=null,r=Sr(e,"response.statusText")||Sr(e,"message"),n=Sr(e,"response.data")||Sr(e,"stack");if(r)t=r;else if(n)t=n;else{try{e=e.toJSON()}catch(n){}p("error",e),t="Can not connect to server."}"Network Error"===t&&(t="Network Error. Make sure your space of hard drive is large enough or blocking by browser plugins."),d.reject(t)})),d},b=async(e,t,r)=>{let n=null;try{n=(e=>{let t;return t="browser"===f?new Blob([e.buffer]):Buffer.from(e),t})(ui(t))}catch(e){return Promise.reject(e)}return await g(e,n,{dataType:"blob",retry:c,cbProgress:r})},m=async e=>{let t=null;return t="browser"===f?e:new Blob([e]),await bi(t)};return d.execute=async(e,t,r)=>{let n={func:e,input:t},o="",i=null;return await b("basic",n,r).then((e=>On(e)?(o="error",void(i=e)):Xn(e)?En(e,"output")?(o="success",void(i=e.output)):(console.log("invalid msg.output",e),o="error",void(i="invalid msg.output")):(console.log("msg is not an effective object",e),o="error",void(i="msg is not an effective object")))).catch((e=>{o="error",i=e})),""===o?(p("error","invalid state"),Promise.reject("invalid state")):"error"===o?Promise.reject(i):i},d.upload=(e,t,r)=>(async(e,t,r)=>{let n=0;if(0===n)try{n=t.size,n=Jn(n)}catch(e){}if(0===n)try{n=t.length,n=Jn(n)}catch(e){}0===n&&(n=1);let o=n,i=Math.ceil(o/s),a=0,c=()=>{a++;let e=a/i;r({prog:.99*e*100,p:e*o,m:"upload"})},l=e=>{let t=e.prog;"download"===e.m&&100===t&&r({prog:100,p:o,m:"upload"})},f=await m(t),d=await g("upload-controller",{mode:"check-total-hash",fileHash:f,filename:e,fileSize:o},{dataType:"json",retry:u});if(d.bAllHash)return l({prog:100,m:"download"}),{filename:e,path:d.path};if(d.bSls){let e=[];for(let r=0;r<hn(d.slks);r++){let n=d.slks[r],i=n*s,a=Math.min(i+s,o),c=t.slice(i,a),u=await m(c);e.push({i:n,h:u})}let r=await g("upload-controller",{mode:"check-slices-hash",fileHash:f,fileSliceHashs:e},{dataType:"json",retry:u});d.slks=r.slks}let p=f;for(let e=0;e<i;e++){if(d.slks.indexOf(e)>=0){c();continue}let r=e*s,n=Math.min(r+s,o),a=t.slice(r,n),l={"chunk-index":e,"chunk-total":i,"package-id":p};await g("slice",a,{headers:l,dataType:"blob",cbProgress:e=>{},retry:u}),c()}let h=await g("upload-controller",{mode:"merge-slices-push",fileHash:f,chunkTotal:i},{dataType:"json",retry:u}),y=await(()=>{let t=wn(),r=h.queueId,n=setInterval((()=>{g("upload-controller",{mode:"merge-slices-get",fileHash:f,filename:e,queueId:r},{dataType:"json",retry:u}).then((e=>{"success"===e.state?(clearInterval(n),l({prog:100,m:"download"}),t.resolve(e.msg)):"error"===e.state&&(console.log("merge-slices-get error",e),clearInterval(n),t.resolve(e.msg))})).catch((e=>{console.log("merge-slices-get catch",e)}))}),2e3);return t})();return y})(e,t,r),d.download=async function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return"browser"===f?async function(e,t){let r=o();Gn(r)&&(r=await r);let n={fileId:e},i=Sr(await g("download-get-filename",n,{dataType:"json",retry:l}),"filename",""),s=`${h("download-get")}?fileId=${e}&token=${r}`,a=document.createElement("a");return a.href=s,a.download=i,a.click(),i}(e):async function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={fileId:e};return await g("download",n,{...r,dataType:"json",retry:l,cbProgress:t})}(e,t,r)},d}}));
|
|
6
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self)["w-converhp-client"]=t()}(this,(function(){"use strict";function e(e,t){return function(){return e.apply(t,arguments)}}const{toString:t}=Object.prototype,{getPrototypeOf:r}=Object,{iterator:n,toStringTag:o}=Symbol,i=(s=Object.create(null),e=>{const r=t.call(e);return s[r]||(s[r]=r.slice(8,-1).toLowerCase())});var s;const a=e=>(e=e.toLowerCase(),t=>i(t)===e),c=e=>t=>typeof t===e,{isArray:u}=Array,l=c("undefined");const f=a("ArrayBuffer");const d=c("string"),p=c("function"),h=c("number"),y=e=>null!==e&&"object"==typeof e,g=e=>{if("object"!==i(e))return!1;const t=r(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||o in e||n in e)},b=a("Date"),m=a("File"),w=a("Blob"),v=a("FileList"),j=a("URLSearchParams"),[O,S,A,E]=["ReadableStream","Request","Response","Headers"].map(a);function _(e,t){let r,n,{allOwnKeys:o=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!=e)if("object"!=typeof e&&(e=[e]),u(e))for(r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else{const n=o?Object.getOwnPropertyNames(e):Object.keys(e),i=n.length;let s;for(r=0;r<i;r++)s=n[r],t.call(null,e[s],s,e)}}function x(e,t){t=t.toLowerCase();const r=Object.keys(e);let n,o=r.length;for(;o-- >0;)if(n=r[o],t===n.toLowerCase())return n;return null}const R="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,T=e=>!l(e)&&e!==R;const U=(P="undefined"!=typeof Uint8Array&&r(Uint8Array),e=>P&&e instanceof P);var P;const C=a("HTMLFormElement"),B=(e=>{let{hasOwnProperty:t}=e;return(e,r)=>t.call(e,r)})(Object.prototype),N=a("RegExp"),k=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};_(r,((r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)})),Object.defineProperties(e,n)};const F=a("AsyncFunction"),L=(D="function"==typeof setImmediate,M=p(R.postMessage),D?setImmediate:M?(z=`axios@${Math.random()}`,I=[],R.addEventListener("message",(e=>{let{source:t,data:r}=e;t===R&&r===z&&I.length&&I.shift()()}),!1),e=>{I.push(e),R.postMessage(z,"*")}):e=>setTimeout(e));var D,M,z,I;const q="undefined"!=typeof queueMicrotask?queueMicrotask.bind(R):"undefined"!=typeof process&&process.nextTick||L;var $={isArray:u,isArrayBuffer:f,isBuffer:function(e){return null!==e&&!l(e)&&null!==e.constructor&&!l(e.constructor)&&p(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||p(e.append)&&("formdata"===(t=i(e))||"object"===t&&p(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&f(e.buffer),t},isString:d,isNumber:h,isBoolean:e=>!0===e||!1===e,isObject:y,isPlainObject:g,isReadableStream:O,isRequest:S,isResponse:A,isHeaders:E,isUndefined:l,isDate:b,isFile:m,isBlob:w,isRegExp:N,isFunction:p,isStream:e=>y(e)&&p(e.pipe),isURLSearchParams:j,isTypedArray:U,isFileList:v,forEach:_,merge:function e(){const{caseless:t}=T(this)&&this||{},r={},n=(n,o)=>{const i=t&&x(r,o)||o;g(r[i])&&g(n)?r[i]=e(r[i],n):g(n)?r[i]=e({},n):u(n)?r[i]=n.slice():r[i]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&_(arguments[e],n);return r},extend:function(t,r,n){let{allOwnKeys:o}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return _(r,((r,o)=>{n&&p(r)?t[o]=e(r,n):t[o]=r}),{allOwnKeys:o}),t},trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,n,o)=>{let i,s,a;const c={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)a=i[s],o&&!o(a,e,t)||c[a]||(t[a]=e[a],c[a]=!0);e=!1!==n&&r(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:i,kindOfTest:a,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(u(e))return e;let t=e.length;if(!h(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[n]).call(e);let o;for(;(o=r.next())&&!o.done;){const r=o.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:C,hasOwnProperty:B,hasOwnProp:B,reduceDescriptors:k,freezeMethods:e=>{k(e,((t,r)=>{if(p(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];p(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach((e=>{r[e]=!0}))};return u(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:x,global:R,isContextDefined:T,isSpecCompliantForm:function(e){return!!(e&&p(e.append)&&"FormData"===e[o]&&e[n])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(y(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const o=u(e)?[]:{};return _(e,((e,t)=>{const i=r(e,n+1);!l(i)&&(o[t]=i)})),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:F,isThenable:e=>e&&(y(e)||p(e))&&p(e.then)&&p(e.catch),setImmediate:L,asap:q,isIterable:e=>null!=e&&p(e[n])};function H(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}$.inherits(H,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:$.toJSONObject(this.config),code:this.code,status:this.status}}});const W=H.prototype,J={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{J[e]={value:e}})),Object.defineProperties(H,J),Object.defineProperty(W,"isAxiosError",{value:!0}),H.from=(e,t,r,n,o,i)=>{const s=Object.create(W);return $.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),H.call(s,e.message,t,r,n,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};function V(e){return $.isPlainObject(e)||$.isArray(e)}function K(e){return $.endsWith(e,"[]")?e.slice(0,-2):e}function X(e,t,r){return e?e.concat(t).map((function(e,t){return e=K(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const G=$.toFlatObject($,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Q(e,t,r){if(!$.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=$.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!$.isUndefined(t[e])}))).metaTokens,o=r.visitor||u,i=r.dots,s=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&$.isSpecCompliantForm(t);if(!$.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if($.isDate(e))return e.toISOString();if(!a&&$.isBlob(e))throw new H("Blob is not supported. Use a Buffer instead.");return $.isArrayBuffer(e)||$.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,o){let a=e;if(e&&!o&&"object"==typeof e)if($.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if($.isArray(e)&&function(e){return $.isArray(e)&&!e.some(V)}(e)||($.isFileList(e)||$.endsWith(r,"[]"))&&(a=$.toArray(e)))return r=K(r),a.forEach((function(e,n){!$.isUndefined(e)&&null!==e&&t.append(!0===s?X([r],n,i):null===s?r:r+"[]",c(e))})),!1;return!!V(e)||(t.append(X(o,r,i),c(e)),!1)}const l=[],f=Object.assign(G,{defaultVisitor:u,convertValue:c,isVisitable:V});if(!$.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!$.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),$.forEach(r,(function(r,i){!0===(!($.isUndefined(r)||null===r)&&o.call(t,r,$.isString(i)?i.trim():i,n,f))&&e(r,n?n.concat(i):[i])})),l.pop()}}(e),t}function Z(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Y(e,t){this._pairs=[],e&&Q(e,this,t)}const ee=Y.prototype;function te(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function re(e,t,r){if(!t)return e;const n=r&&r.encode||te;$.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(i=o?o(t,r):$.isURLSearchParams(t)?t.toString():new Y(t,r).toString(n),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}ee.append=function(e,t){this._pairs.push([e,t])},ee.toString=function(e){const t=e?function(t){return e.call(this,t,Z)}:Z;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var ne=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){$.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},oe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ie={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Y,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const se="undefined"!=typeof window&&"undefined"!=typeof document,ae="object"==typeof navigator&&navigator||void 0,ce=se&&(!ae||["ReactNative","NativeScript","NS"].indexOf(ae.product)<0),ue="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,le=se&&window.location.href||"http://localhost";var fe={...Object.freeze({__proto__:null,hasBrowserEnv:se,hasStandardBrowserEnv:ce,hasStandardBrowserWebWorkerEnv:ue,navigator:ae,origin:le}),...ie};function de(e){function t(e,r,n,o){let i=e[o++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),a=o>=e.length;if(i=!i&&$.isArray(n)?n.length:i,a)return $.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!s;n[i]&&$.isObject(n[i])||(n[i]=[]);return t(e,r,n[i],o)&&$.isArray(n[i])&&(n[i]=function(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}(n[i])),!s}if($.isFormData(e)&&$.isFunction(e.entries)){const r={};return $.forEachEntry(e,((e,n)=>{t(function(e){return $.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null}const pe={transitional:oe,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=$.isObject(e);o&&$.isHTMLForm(e)&&(e=new FormData(e));if($.isFormData(e))return n?JSON.stringify(de(e)):e;if($.isArrayBuffer(e)||$.isBuffer(e)||$.isStream(e)||$.isFile(e)||$.isBlob(e)||$.isReadableStream(e))return e;if($.isArrayBufferView(e))return e.buffer;if($.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Q(e,new fe.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return fe.isNode&&$.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=$.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Q(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e,t,r){if($.isString(e))try{return(t||JSON.parse)(e),$.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||pe.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if($.isResponse(e)||$.isReadableStream(e))return e;if(e&&$.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw H.from(e,H.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:fe.classes.FormData,Blob:fe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};$.forEach(["delete","get","head","post","put","patch"],(e=>{pe.headers[e]={}}));var he=pe;const ye=$.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const ge=Symbol("internals");function be(e){return e&&String(e).trim().toLowerCase()}function me(e){return!1===e||null==e?e:$.isArray(e)?e.map(me):String(e)}function we(e,t,r,n,o){return $.isFunction(n)?n.call(this,t,r):(o&&(t=r),$.isString(t)?$.isString(n)?-1!==t.indexOf(n):$.isRegExp(n)?n.test(t):void 0:void 0)}class ve{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=be(t);if(!o)throw new Error("header name must be a non-empty string");const i=$.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=me(e))}const i=(e,t)=>$.forEach(e,((e,r)=>o(e,r,t)));if($.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if($.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let r,n,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||t[r]&&ye[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t);else if($.isObject(e)&&$.isIterable(e)){let r,n,o={};for(const t of e){if(!$.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[n=t[0]]=(r=o[n])?$.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,r);return this}get(e,t){if(e=be(e)){const r=$.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if($.isFunction(t))return t.call(this,e,r);if($.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=be(e)){const r=$.findKey(this,e);return!(!r||void 0===this[r]||t&&!we(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=be(e)){const o=$.findKey(r,e);!o||t&&!we(0,r[o],o,t)||(delete r[o],n=!0)}}return $.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!we(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return $.forEach(this,((n,o)=>{const i=$.findKey(r,o);if(i)return t[i]=me(n),void delete t[o];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(o):String(o).trim();s!==o&&delete t[o],t[s]=me(n),r[s]=!0})),this}concat(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.constructor.concat(this,...t)}toJSON(e){const t=Object.create(null);return $.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&$.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((e=>{let[t,r]=e;return t+": "+r})).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return n.forEach((e=>t.set(e))),t}static accessor(e){const t=(this[ge]=this[ge]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=be(e);t[n]||(!function(e,t){const r=$.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})}))}(r,e),t[n]=!0)}return $.isArray(e)?e.forEach(n):n(e),this}}ve.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),$.reduceDescriptors(ve.prototype,((e,t)=>{let{value:r}=e,n=t[0].toUpperCase()+t.slice(1);return{get:()=>r,set(e){this[n]=e}}})),$.freezeMethods(ve);var je=ve;function Oe(e,t){const r=this||he,n=t||r,o=je.from(n.headers);let i=n.data;return $.forEach(e,(function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Se(e){return!(!e||!e.__CANCEL__)}function Ae(e,t,r){H.call(this,null==e?"canceled":e,H.ERR_CANCELED,t,r),this.name="CanceledError"}function Ee(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new H("Request failed with status code "+r.status,[H.ERR_BAD_REQUEST,H.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}$.inherits(Ae,H,{__CANCEL__:!0});const _e=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,n=0;const o=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,i=0,s=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=n[s];o||(o=c),r[i]=a,n[i]=c;let l=s,f=0;for(;l!==i;)f+=r[l++],l%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),c-o<t)return;const d=u&&c-u;return d?Math.round(1e3*f/d):void 0}}(50,250);return function(e,t){let r,n,o=0,i=1e3/t;const s=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();o=i,r=null,n&&(clearTimeout(n),n=null),e.apply(null,t)};return[function(){const e=Date.now(),t=e-o;for(var a=arguments.length,c=new Array(a),u=0;u<a;u++)c[u]=arguments[u];t>=i?s(c,e):(r=c,n||(n=setTimeout((()=>{n=null,s(r)}),i-t)))},()=>r&&s(r)]}((r=>{const i=r.loaded,s=r.lengthComputable?r.total:void 0,a=i-n,c=o(a);n=i;e({loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&i<=s?(s-i)/c:void 0,event:r,lengthComputable:null!=s,[t?"download":"upload"]:!0})}),r)},xe=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Re=e=>function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return $.asap((()=>e(...r)))};var Te=fe.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,fe.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(fe.origin),fe.navigator&&/(msie|trident)/i.test(fe.navigator.userAgent)):()=>!0,Ue=fe.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const s=[e+"="+encodeURIComponent(t)];$.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),$.isString(n)&&s.push("path="+n),$.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Pe(e,t,r){let n=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(n||0==r)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Ce=e=>e instanceof je?{...e}:e;function Be(e,t){t=t||{};const r={};function n(e,t,r,n){return $.isPlainObject(e)&&$.isPlainObject(t)?$.merge.call({caseless:n},e,t):$.isPlainObject(t)?$.merge({},t):$.isArray(t)?t.slice():t}function o(e,t,r,o){return $.isUndefined(t)?$.isUndefined(e)?void 0:n(void 0,e,0,o):n(e,t,0,o)}function i(e,t){if(!$.isUndefined(t))return n(void 0,t)}function s(e,t){return $.isUndefined(t)?$.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(r,o,i){return i in t?n(r,o):i in e?n(void 0,r):void 0}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t,r)=>o(Ce(e),Ce(t),0,!0)};return $.forEach(Object.keys(Object.assign({},e,t)),(function(n){const i=c[n]||o,s=i(e[n],t[n],n);$.isUndefined(s)&&i!==a||(r[n]=s)})),r}var Ne=e=>{const t=Be({},e);let r,{data:n,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:s,headers:a,auth:c}=t;if(t.headers=a=je.from(a),t.url=re(Pe(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),$.isFormData(n))if(fe.hasStandardBrowserEnv||fe.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(r=a.getContentType())){const[e,...t]=r?r.split(";").map((e=>e.trim())).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(fe.hasStandardBrowserEnv&&(o&&$.isFunction(o)&&(o=o(t)),o||!1!==o&&Te(t.url))){const e=i&&s&&Ue.read(s);e&&a.set(i,e)}return t};var ke="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){const n=Ne(e);let o=n.data;const i=je.from(n.headers).normalize();let s,a,c,u,l,{responseType:f,onUploadProgress:d,onDownloadProgress:p}=n;function h(){u&&u(),l&&l(),n.cancelToken&&n.cancelToken.unsubscribe(s),n.signal&&n.signal.removeEventListener("abort",s)}let y=new XMLHttpRequest;function g(){if(!y)return;const n=je.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders());Ee((function(e){t(e),h()}),(function(e){r(e),h()}),{data:f&&"text"!==f&&"json"!==f?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:n,config:e,request:y}),y=null}y.open(n.method.toUpperCase(),n.url,!0),y.timeout=n.timeout,"onloadend"in y?y.onloadend=g:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(g)},y.onabort=function(){y&&(r(new H("Request aborted",H.ECONNABORTED,e,y)),y=null)},y.onerror=function(){r(new H("Network Error",H.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||oe;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new H(t,o.clarifyTimeoutError?H.ETIMEDOUT:H.ECONNABORTED,e,y)),y=null},void 0===o&&i.setContentType(null),"setRequestHeader"in y&&$.forEach(i.toJSON(),(function(e,t){y.setRequestHeader(t,e)})),$.isUndefined(n.withCredentials)||(y.withCredentials=!!n.withCredentials),f&&"json"!==f&&(y.responseType=n.responseType),p&&([c,l]=_e(p,!0),y.addEventListener("progress",c)),d&&y.upload&&([a,u]=_e(d),y.upload.addEventListener("progress",a),y.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(s=t=>{y&&(r(!t||t.type?new Ae(null,e,y):t),y.abort(),y=null)},n.cancelToken&&n.cancelToken.subscribe(s),n.signal&&(n.signal.aborted?s():n.signal.addEventListener("abort",s)));const b=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);b&&-1===fe.protocols.indexOf(b)?r(new H("Unsupported protocol "+b+":",H.ERR_BAD_REQUEST,e)):y.send(o||null)}))};var Fe=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController;const o=function(e){if(!r){r=!0,s();const t=e instanceof Error?e:this.reason;n.abort(t instanceof H?t:new Ae(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new H(`timeout ${t} of ms exceeded`,H.ETIMEDOUT))}),t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:a}=n;return a.unsubscribe=()=>$.asap(s),a}};const Le=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let n,o=0;for(;o<r;)n=o+t,yield e.slice(o,n),o=n},De=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},Me=(e,t,r,n)=>{const o=async function*(e,t){for await(const r of De(e))yield*Le(r,t)}(e,t);let i,s=0,a=e=>{i||(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await o.next();if(t)return a(),void e.close();let i=n.byteLength;if(r){let e=s+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw a(e),e}},cancel:e=>(a(e),o.return())},{highWaterMark:2})},ze="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Ie=ze&&"function"==typeof ReadableStream,qe=ze&&("function"==typeof TextEncoder?($e=new TextEncoder,e=>$e.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var $e;const He=function(e){try{for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return!!e(...r)}catch(e){return!1}},We=Ie&&He((()=>{let e=!1;const t=new Request(fe.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Je=Ie&&He((()=>$.isReadableStream(new Response("").body))),Ve={stream:Je&&(e=>e.body)};var Ke;ze&&(Ke=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Ve[e]&&(Ve[e]=$.isFunction(Ke[e])?t=>t[e]():(t,r)=>{throw new H(`Response type '${e}' is not supported`,H.ERR_NOT_SUPPORT,r)})})));const Xe=async(e,t)=>{const r=$.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if($.isBlob(e))return e.size;if($.isSpecCompliantForm(e)){const t=new Request(fe.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return $.isArrayBufferView(e)||$.isArrayBuffer(e)?e.byteLength:($.isURLSearchParams(e)&&(e+=""),$.isString(e)?(await qe(e)).byteLength:void 0)})(t):r};const Ge={http:null,xhr:ke,fetch:ze&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:l,withCredentials:f="same-origin",fetchOptions:d}=Ne(e);u=u?(u+"").toLowerCase():"text";let p,h=Fe([o,i&&i.toAbortSignal()],s);const y=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(c&&We&&"get"!==r&&"head"!==r&&0!==(g=await Xe(l,n))){let e,r=new Request(t,{method:"POST",body:n,duplex:"half"});if($.isFormData(n)&&(e=r.headers.get("content-type"))&&l.setContentType(e),r.body){const[e,t]=xe(g,_e(Re(c)));n=Me(r.body,65536,e,t)}}$.isString(f)||(f=f?"include":"omit");const o="credentials"in Request.prototype;p=new Request(t,{...d,signal:h,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:n,duplex:"half",credentials:o?f:void 0});let i=await fetch(p);const s=Je&&("stream"===u||"response"===u);if(Je&&(a||s&&y)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=$.toFiniteNumber(i.headers.get("content-length")),[r,n]=a&&xe(t,_e(Re(a),!0))||[];i=new Response(Me(i.body,65536,r,(()=>{n&&n(),y&&y()})),e)}u=u||"text";let b=await Ve[$.findKey(Ve,u)||"text"](i,e);return!s&&y&&y(),await new Promise(((t,r)=>{Ee(t,r,{data:b,headers:je.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:p})}))}catch(t){if(y&&y(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new H("Network Error",H.ERR_NETWORK,e,p),{cause:t.cause||t});throw H.from(t,t&&t.code,e,p)}})};$.forEach(Ge,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Qe=e=>`- ${e}`,Ze=e=>$.isFunction(e)||null===e||!1===e;var Ye={getAdapter:e=>{e=$.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){let t;if(r=e[i],n=r,!Ze(r)&&(n=Ge[(t=String(r)).toLowerCase()],void 0===n))throw new H(`Unknown adapter '${t}'`);if(n)break;o[t||"#"+i]=n}if(!n){const e=Object.entries(o).map((e=>{let[t,r]=e;return`adapter ${t} `+(!1===r?"is not supported by the environment":"is not available in the build")}));throw new H("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Qe).join("\n"):" "+Qe(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n},adapters:Ge};function et(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ae(null,e)}function tt(e){et(e),e.headers=je.from(e.headers),e.data=Oe.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Ye.getAdapter(e.adapter||he.adapter)(e).then((function(t){return et(e),t.data=Oe.call(e,e.transformResponse,t),t.headers=je.from(t.headers),t}),(function(t){return Se(t)||(et(e),t&&t.response&&(t.response.data=Oe.call(e,e.transformResponse,t.response),t.response.headers=je.from(t.response.headers))),Promise.reject(t)}))}const rt="1.9.0",nt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{nt[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const ot={};nt.transitional=function(e,t,r){function n(e,t){return"[Axios v1.9.0] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new H(n(o," has been removed"+(t?" in "+t:"")),H.ERR_DEPRECATED);return t&&!ot[o]&&(ot[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}},nt.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};var it={assertOptions:function(e,t,r){if("object"!=typeof e)throw new H("options must be an object",H.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],s=t[i];if(s){const t=e[i],r=void 0===t||s(t,i,e);if(!0!==r)throw new H("option "+i+" must be "+r,H.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new H("Unknown option "+i,H.ERR_BAD_OPTION)}},validators:nt};const st=it.validators;class at{constructor(e){this.defaults=e||{},this.interceptors={request:new ne,response:new ne}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Be(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&it.assertOptions(r,{silentJSONParsing:st.transitional(st.boolean),forcedJSONParsing:st.transitional(st.boolean),clarifyTimeoutError:st.transitional(st.boolean)},!1),null!=n&&($.isFunction(n)?t.paramsSerializer={serialize:n}:it.assertOptions(n,{encode:st.function,serialize:st.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),it.assertOptions(t,{baseUrl:st.spelling("baseURL"),withXsrfToken:st.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&$.merge(o.common,o[t.method]);o&&$.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=je.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,f=0;if(!a){const e=[tt.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,c),l=e.length,u=Promise.resolve(t);f<l;)u=u.then(e[f++],e[f++]);return u}l=s.length;let d=t;for(f=0;f<l;){const e=s[f++],t=s[f++];try{d=e(d)}catch(e){t.call(this,e);break}}try{u=tt.call(this,d)}catch(e){return Promise.reject(e)}for(f=0,l=c.length;f<l;)u=u.then(c[f++],c[f++]);return u}getUri(e){return re(Pe((e=Be(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}$.forEach(["delete","get","head","options"],(function(e){at.prototype[e]=function(t,r){return this.request(Be(r||{},{method:e,url:t,data:(r||{}).data}))}})),$.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(Be(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}at.prototype[e]=t(),at.prototype[e+"Form"]=t(!0)}));var ct=at;class ut{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const r=this;this.promise.then((e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const n=new Promise((e=>{r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,o){r.reason||(r.reason=new Ae(e,n,o),t(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new ut((function(t){e=t})),cancel:e}}}var lt=ut;const ft={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ft).forEach((e=>{let[t,r]=e;ft[r]=t}));var dt=ft;const pt=function t(r){const n=new ct(r),o=e(ct.prototype.request,n);return $.extend(o,ct.prototype,n,{allOwnKeys:!0}),$.extend(o,n,null,{allOwnKeys:!0}),o.create=function(e){return t(Be(r,e))},o}(he);pt.Axios=ct,pt.CanceledError=Ae,pt.CancelToken=lt,pt.isCancel=Se,pt.VERSION=rt,pt.toFormData=Q,pt.AxiosError=H,pt.Cancel=pt.CanceledError,pt.all=function(e){return Promise.all(e)},pt.spread=function(e){return function(t){return e.apply(null,t)}},pt.isAxiosError=function(e){return $.isObject(e)&&!0===e.isAxiosError},pt.mergeConfig=Be,pt.AxiosHeaders=je,pt.formToJSON=e=>de($.isHTMLForm(e)?new FormData(e):e),pt.getAdapter=Ye.getAdapter,pt.HttpStatusCode=dt,pt.default=pt;var ht=pt,yt=Array.isArray,gt="object"==typeof global&&global&&global.Object===Object&&global,bt="object"==typeof self&&self&&self.Object===Object&&self,mt=gt||bt||Function("return this")(),wt=mt.Symbol,vt=Object.prototype,jt=vt.hasOwnProperty,Ot=vt.toString,St=wt?wt.toStringTag:void 0;var At=Object.prototype.toString;var Et="[object Null]",_t="[object Undefined]",xt=wt?wt.toStringTag:void 0;function Rt(e){return null==e?void 0===e?_t:Et:xt&&xt in Object(e)?function(e){var t=jt.call(e,St),r=e[St];try{e[St]=void 0;var n=!0}catch(e){}var o=Ot.call(e);return n&&(t?e[St]=r:delete e[St]),o}(e):function(e){return At.call(e)}(e)}function Tt(e){return null!=e&&"object"==typeof e}var Ut="[object Symbol]";function Pt(e){return"symbol"==typeof e||Tt(e)&&Rt(e)==Ut}var Ct=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Bt=/^\w*$/;function Nt(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var kt="[object AsyncFunction]",Ft="[object Function]",Lt="[object GeneratorFunction]",Dt="[object Proxy]";function Mt(e){if(!Nt(e))return!1;var t=Rt(e);return t==Ft||t==Lt||t==kt||t==Dt}var zt,It=mt["__core-js_shared__"],qt=(zt=/[^.]+$/.exec(It&&It.keys&&It.keys.IE_PROTO||""))?"Symbol(src)_1."+zt:"";var $t=Function.prototype.toString;function Ht(e){if(null!=e){try{return $t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var Wt=/^\[object .+?Constructor\]$/,Jt=Function.prototype,Vt=Object.prototype,Kt=Jt.toString,Xt=Vt.hasOwnProperty,Gt=RegExp("^"+Kt.call(Xt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Qt(e){return!(!Nt(e)||(t=e,qt&&qt in t))&&(Mt(e)?Gt:Wt).test(Ht(e));var t}function Zt(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return Qt(r)?r:void 0}var Yt=Zt(Object,"create");var er=Object.prototype.hasOwnProperty;var tr=Object.prototype.hasOwnProperty;function rr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function nr(e,t){for(var r,n,o=e.length;o--;)if((r=e[o][0])===(n=t)||r!=r&&n!=n)return o;return-1}rr.prototype.clear=function(){this.__data__=Yt?Yt(null):{},this.size=0},rr.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},rr.prototype.get=function(e){var t=this.__data__;if(Yt){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return er.call(t,e)?t[e]:void 0},rr.prototype.has=function(e){var t=this.__data__;return Yt?void 0!==t[e]:tr.call(t,e)},rr.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Yt&&void 0===t?"__lodash_hash_undefined__":t,this};var or=Array.prototype.splice;function ir(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ir.prototype.clear=function(){this.__data__=[],this.size=0},ir.prototype.delete=function(e){var t=this.__data__,r=nr(t,e);return!(r<0)&&(r==t.length-1?t.pop():or.call(t,r,1),--this.size,!0)},ir.prototype.get=function(e){var t=this.__data__,r=nr(t,e);return r<0?void 0:t[r][1]},ir.prototype.has=function(e){return nr(this.__data__,e)>-1},ir.prototype.set=function(e,t){var r=this.__data__,n=nr(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var sr=Zt(mt,"Map");function ar(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function cr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}cr.prototype.clear=function(){this.size=0,this.__data__={hash:new rr,map:new(sr||ir),string:new rr}},cr.prototype.delete=function(e){var t=ar(this,e).delete(e);return this.size-=t?1:0,t},cr.prototype.get=function(e){return ar(this,e).get(e)},cr.prototype.has=function(e){return ar(this,e).has(e)},cr.prototype.set=function(e,t){var r=ar(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};var ur="Expected a function";function lr(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(ur);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var s=e.apply(this,n);return r.cache=i.set(o,s)||i,s};return r.cache=new(lr.Cache||cr),r}lr.Cache=cr;var fr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,dr=/\\(\\)?/g,pr=function(e){var t=lr(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(fr,(function(e,r,n,o){t.push(n?o.replace(dr,"$1"):r||e)})),t})),hr=pr;var yr=1/0,gr=wt?wt.prototype:void 0,br=gr?gr.toString:void 0;function mr(e){if("string"==typeof e)return e;if(yt(e))return function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}(e,mr)+"";if(Pt(e))return br?br.call(e):"";var t=e+"";return"0"==t&&1/e==-yr?"-0":t}function wr(e){return null==e?"":mr(e)}function vr(e,t){return yt(e)?e:function(e,t){if(yt(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!Pt(e))||Bt.test(e)||!Ct.test(e)||null!=t&&e in Object(t)}(e,t)?[e]:hr(wr(e))}var jr=1/0;function Or(e){if("string"==typeof e||Pt(e))return e;var t=e+"";return"0"==t&&1/e==-jr?"-0":t}function Sr(e,t,r){var n=null==e?void 0:function(e,t){for(var r=0,n=(t=vr(t,e)).length;null!=e&&r<n;)e=e[Or(t[r++])];return r&&r==n?e:void 0}(e,t);return void 0===n?r:n}var Ar=Object.prototype;function Er(e,t){return function(r){return e(t(r))}}var _r=Er(Object.keys,Object),xr=Object.prototype.hasOwnProperty;function Rr(e){if(r=(t=e)&&t.constructor,t!==("function"==typeof r&&r.prototype||Ar))return _r(e);var t,r,n=[];for(var o in Object(e))xr.call(e,o)&&"constructor"!=o&&n.push(o);return n}var Tr=Zt(mt,"DataView"),Ur=Zt(mt,"Promise"),Pr=Zt(mt,"Set"),Cr=Zt(mt,"WeakMap"),Br="[object Map]",Nr="[object Promise]",kr="[object Set]",Fr="[object WeakMap]",Lr="[object DataView]",Dr=Ht(Tr),Mr=Ht(sr),zr=Ht(Ur),Ir=Ht(Pr),qr=Ht(Cr),$r=Rt;(Tr&&$r(new Tr(new ArrayBuffer(1)))!=Lr||sr&&$r(new sr)!=Br||Ur&&$r(Ur.resolve())!=Nr||Pr&&$r(new Pr)!=kr||Cr&&$r(new Cr)!=Fr)&&($r=function(e){var t=Rt(e),r="[object Object]"==t?e.constructor:void 0,n=r?Ht(r):"";if(n)switch(n){case Dr:return Lr;case Mr:return Br;case zr:return Nr;case Ir:return kr;case qr:return Fr}return t});var Hr=$r,Wr=9007199254740991;function Jr(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Wr}function Vr(e){return null!=e&&Jr(e.length)&&!Mt(e)}var Kr="[object String]";var Xr,Gr=(Xr="length",function(e){return null==e?void 0:e[Xr]}),Qr=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var Zr="\\ud800-\\udfff",Yr="["+Zr+"]",en="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",tn="\\ud83c[\\udffb-\\udfff]",rn="[^"+Zr+"]",nn="(?:\\ud83c[\\udde6-\\uddff]){2}",on="[\\ud800-\\udbff][\\udc00-\\udfff]",sn="(?:"+en+"|"+tn+")"+"?",an="[\\ufe0e\\ufe0f]?",cn=an+sn+("(?:\\u200d(?:"+[rn,nn,on].join("|")+")"+an+sn+")*"),un="(?:"+[rn+en+"?",en,nn,on,Yr].join("|")+")",ln=RegExp(tn+"(?="+tn+")|"+un+cn,"g");function fn(e){return function(e){return Qr.test(e)}(e)?function(e){for(var t=ln.lastIndex=0;ln.test(e);)++t;return t}(e):Gr(e)}var dn="[object Map]",pn="[object Set]";function hn(e){if(null==e)return 0;if(Vr(e))return"string"==typeof(t=e)||!yt(t)&&Tt(t)&&Rt(t)==Kr?fn(e):e.length;var t,r=Hr(e);return r==dn||r==pn?e.size:Rr(e).length}function yn(){return"undefined"!=typeof window&&void 0!==window.document}var gn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},bn={};!function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}function o(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function i(e,t,n,i,s){if("function"!=typeof n)throw new TypeError("The listener must be a function");var a=new o(n,i||e,s),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],a]:e._events[c].push(a):(e._events[c]=a,e._eventsCount++),e}function s(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function a(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),a.prototype.eventNames=function(){var e,n,o=[];if(0===this._eventsCount)return o;for(n in e=this._events)t.call(e,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},a.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,s=new Array(i);o<i;o++)s[o]=n[o].fn;return s},a.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},a.prototype.emit=function(e,t,n,o,i,s){var a=r?r+e:e;if(!this._events[a])return!1;var c,u,l=this._events[a],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,n),!0;case 4:return l.fn.call(l.context,t,n,o),!0;case 5:return l.fn.call(l.context,t,n,o,i),!0;case 6:return l.fn.call(l.context,t,n,o,i,s),!0}for(u=1,c=new Array(f-1);u<f;u++)c[u-1]=arguments[u];l.fn.apply(l.context,c)}else{var d,p=l.length;for(u=0;u<p;u++)switch(l[u].once&&this.removeListener(e,l[u].fn,void 0,!0),f){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,t);break;case 3:l[u].fn.call(l[u].context,t,n);break;case 4:l[u].fn.call(l[u].context,t,n,o);break;default:if(!c)for(d=1,c=new Array(f-1);d<f;d++)c[d-1]=arguments[d];l[u].fn.apply(l[u].context,c)}}return!0},a.prototype.on=function(e,t,r){return i(this,e,t,r,!1)},a.prototype.once=function(e,t,r){return i(this,e,t,r,!0)},a.prototype.removeListener=function(e,t,n,o){var i=r?r+e:e;if(!this._events[i])return this;if(!t)return s(this,i),this;var a=this._events[i];if(a.fn)a.fn!==t||o&&!a.once||n&&a.context!==n||s(this,i);else{for(var c=0,u=[],l=a.length;c<l;c++)(a[c].fn!==t||o&&!a[c].once||n&&a[c].context!==n)&&u.push(a[c]);u.length?this._events[i]=1===u.length?u[0]:u:s(this,i)}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&s(this,t)):(this._events=new n,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=r,a.EventEmitter=a,e.exports=a}({get exports(){return bn},set exports(e){bn=e}});var mn=bn;function wn(){let e,t,r=new Promise((function(){e=arguments[0],t=arguments[1]}));return r.resolve=e,r.reject=t,r}function vn(e){return"[object Object]"===Object.prototype.toString.call(e)}function jn(e){return"[object String]"===Object.prototype.toString.call(e)}function On(e){return!(!jn(e)||""===e)}function Sn(e){return e!=e}function An(e){let t=!1;if(On(e))t=!isNaN(Number(e));else if(function(e){return"[object Number]"===Object.prototype.toString.call(e)}(e)){if(Sn(e))return!1;t=!0}return t}function En(e,t){return!!vn(e)&&(!(!On(t)&&!An(t))&&t in e)}function _n(e){let t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t}var xn=/\s/;var Rn=/^\s+/;function Tn(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&xn.test(e.charAt(t)););return t}(e)+1).replace(Rn,""):e}var Un=NaN,Pn=/^[-+]0x[0-9a-f]+$/i,Cn=/^0b[01]+$/i,Bn=/^0o[0-7]+$/i,Nn=parseInt;function kn(e){if("number"==typeof e)return e;if(Pt(e))return Un;if(Nt(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Nt(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Tn(e);var r=Cn.test(e);return r||Bn.test(e)?Nn(e.slice(2),r?2:8):Pn.test(e)?Un:+e}var Fn=1/0,Ln=17976931348623157e292;function Dn(e){return e?(e=kn(e))===Fn||e===-Fn?(e<0?-1:1)*Ln:e==e?e:0:0===e?e:0}function Mn(e){var t=Dn(e),r=t%1;return t==t?r?t-r:t:0}function zn(e){if(!An(e))return 0;return Dn(e)}function In(e){return!!An(e)&&(e=zn(e),"number"==typeof(t=e)&&t==Mn(t));var t}var qn=mt.isFinite,$n=Math.min;var Hn,Wn=(Hn=Math["round"],function(e,t){if(e=kn(e),(t=null==t?0:$n(Mn(t),292))&&qn(e)){var r=(wr(e)+"e").split("e");return+((r=(wr(Hn(r[0]+"e"+(+r[1]+t)))+"e").split("e"))[0]+"e"+(+r[1]-t))}return Hn(e)});function Jn(e){if(!An(e))return 0;e=zn(e);let t=Wn(e);return"0"===String(t)?0:t}function Vn(e){if(!In(e))return!1;return Jn(e)>0}function Kn(e){if(!In(e))return!1;return Jn(e)>=0}function Xn(e){if(vn(e)){for(let t in e)return!0;return!1}return!1}var Gn="[object Boolean]";function Qn(e){return!0===(t=e)||!1===t||Tt(t)&&Rt(t)==Gn;var t}function Zn(e){let t,r=Object.prototype.toString.call(e);if(t="[object Promise]"===r,t)return!0;if("[object Function]"!==r)return!1;try{t="function"!=typeof e.subscribe&&"function"==typeof e.then}catch(e){}return t}function Yn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return An(e)&&Kn(t)?(e=zn(e),Wn(e,t).toFixed(t)):""}var eo={};var to,ro={},no={get exports(){return ro},set exports(e){ro=e}};function oo(){return to||(to=1,function(e,t){var r;e.exports=(r=r||function(e,t){var r;if("undefined"!=typeof window&&window.crypto&&(r=window.crypto),"undefined"!=typeof self&&self.crypto&&(r=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!==gn&&gn.crypto&&(r=gn.crypto),!r)try{r=require("crypto")}catch(e){}var n=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),i={},s=i.lib={},a=s.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=s.WordArray=a.extend({init:function(e,r){e=this.words=e||[],this.sigBytes=r!=t?r:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,o=e.sigBytes;if(this.clamp(),n%4)for(var i=0;i<o;i++){var s=r[i>>>2]>>>24-i%4*8&255;t[n+i>>>2]|=s<<24-(n+i)%4*8}else for(var a=0;a<o;a+=4)t[n+a>>>2]=r[a>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=a.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(n());return new c.init(t,e)}}),u=i.enc={},l=u.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o++){var i=t[o>>>2]>>>24-o%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new c.init(r,t/2)}},f=u.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o++){var i=t[o>>>2]>>>24-o%4*8&255;n.push(String.fromCharCode(i))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new c.init(r,t)}},d=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},p=s.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,n=this._data,o=n.words,i=n.sigBytes,s=this.blockSize,a=i/(4*s),u=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*s,l=e.min(4*u,i);if(u){for(var f=0;f<u;f+=s)this._doProcessBlock(o,f);r=o.splice(0,u),n.sigBytes-=l}return new c.init(r,l)},clone:function(){var e=a.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});s.Hasher=p.extend({cfg:a.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new h.HMAC.init(e,r).finalize(t)}}});var h=i.algo={};return i}(Math),r)}(no)),ro}!function(e,t){e.exports=oo().enc.Utf8}({get exports(){return eo},set exports(e){eo=e}});var io=eo,so={};!function(e,t){var r;e.exports=(r=oo(),function(){var e=r,t=e.lib.WordArray;function n(e,r,n){for(var o=[],i=0,s=0;s<r;s++)if(s%4){var a=n[e.charCodeAt(s-1)]<<s%4*2|n[e.charCodeAt(s)]>>>6-s%4*2;o[i>>>2]|=a<<24-i%4*8,i++}return t.create(o,i)}e.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var o=[],i=0;i<r;i+=3)for(var s=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,a=0;a<4&&i+.75*a<r;a++)o.push(n.charAt(s>>>6*(3-a)&63));var c=n.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e){var t=e.length,r=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i<r.length;i++)o[r.charCodeAt(i)]=i}var s=r.charAt(64);if(s){var a=e.indexOf(s);-1!==a&&(t=a)}return n(e,t,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),r.enc.Base64)}({get exports(){return so},set exports(e){so=e}});var ao=so;function co(e){if(!On(e))return"";return ao.parse(e).toString(io)}function uo(e){if(!yn())return Promise.reject("no window");try{return function(e){return e.arrayBuffer()}(e)}catch(t){return function(e){let t=wn(),r=new FileReader;return r.onload=function(){let e=r.result;t.resolve(e)},r.onerror=function(e){t.reject(e)},r.readAsArrayBuffer(e),t}(e)}}function lo(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}var fo,po=function(e,t,r){for(var n=-1,o=Object(e),i=r(e),s=i.length;s--;){var a=i[fo?s:++n];if(!1===t(o[a],a,o))break}return e},ho=po;function yo(e){return Tt(e)&&"[object Arguments]"==Rt(e)}var go=Object.prototype,bo=go.hasOwnProperty,mo=go.propertyIsEnumerable,wo=yo(function(){return arguments}())?yo:function(e){return Tt(e)&&bo.call(e,"callee")&&!mo.call(e,"callee")},vo=wo;var jo="object"==typeof exports&&exports&&!exports.nodeType&&exports,Oo=jo&&"object"==typeof module&&module&&!module.nodeType&&module,So=Oo&&Oo.exports===jo?mt.Buffer:void 0,Ao=(So?So.isBuffer:void 0)||function(){return!1},Eo=9007199254740991,_o=/^(?:0|[1-9]\d*)$/;function xo(e,t){var r=typeof e;return!!(t=null==t?Eo:t)&&("number"==r||"symbol"!=r&&_o.test(e))&&e>-1&&e%1==0&&e<t}var Ro={};Ro["[object Float32Array]"]=Ro["[object Float64Array]"]=Ro["[object Int8Array]"]=Ro["[object Int16Array]"]=Ro["[object Int32Array]"]=Ro["[object Uint8Array]"]=Ro["[object Uint8ClampedArray]"]=Ro["[object Uint16Array]"]=Ro["[object Uint32Array]"]=!0,Ro["[object Arguments]"]=Ro["[object Array]"]=Ro["[object ArrayBuffer]"]=Ro["[object Boolean]"]=Ro["[object DataView]"]=Ro["[object Date]"]=Ro["[object Error]"]=Ro["[object Function]"]=Ro["[object Map]"]=Ro["[object Number]"]=Ro["[object Object]"]=Ro["[object RegExp]"]=Ro["[object Set]"]=Ro["[object String]"]=Ro["[object WeakMap]"]=!1;var To="object"==typeof exports&&exports&&!exports.nodeType&&exports,Uo=To&&"object"==typeof module&&module&&!module.nodeType&&module,Po=Uo&&Uo.exports===To&>.process,Co=function(){try{var e=Uo&&Uo.require&&Uo.require("util").types;return e||Po&&Po.binding&&Po.binding("util")}catch(e){}}(),Bo=Co&&Co.isTypedArray,No=Bo?function(e){return function(t){return e(t)}}(Bo):function(e){return Tt(e)&&Jr(e.length)&&!!Ro[Rt(e)]},ko=No,Fo=Object.prototype.hasOwnProperty;function Lo(e,t){var r=yt(e),n=!r&&vo(e),o=!r&&!n&&Ao(e),i=!r&&!n&&!o&&ko(e),s=r||n||o||i,a=s?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],c=a.length;for(var u in e)!t&&!Fo.call(e,u)||s&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||xo(u,c))||a.push(u);return a}function Do(e){return Vr(e)?Lo(e):Rr(e)}var Mo=function(e,t){return function(r,n){if(null==r)return r;if(!Vr(r))return e(r,n);for(var o=r.length,i=t?o:-1,s=Object(r);(t?i--:++i<o)&&!1!==n(s[i],i,s););return r}}((function(e,t){return e&&ho(e,t,Do)})),zo=Mo;function Io(e){return e}function qo(e,t){var r;return(yt(e)?lo:zo)(e,"function"==typeof(r=t)?r:Io)}function $o(e){return"[object Array]"===Object.prototype.toString.call(e)}function Ho(e){if(vn(e)){for(let t in e)return!1;return!0}return!1}function Wo(e){return!!function(e){return"[object Undefined]"===Object.prototype.toString.call(e)}(e)||(!!function(e){return"[object Null]"===Object.prototype.toString.call(e)}(e)||(!!Ho(e)||(!!function(e){return!(!jn(e)||""!==e)}(e)||(!!function(e){return!!$o(e)&&0===e.length}(e)||!!Sn(e)))))}function Jo(e){return"[object ArrayBuffer]"===Object.prototype.toString.call(e)}function Vo(e){return"[object Blob]"===Object.prototype.toString.call(e)}function Ko(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)}function Xo(e){return"[object Uint16Array]"===Object.prototype.toString.call(e)}function Go(e){if(!(Jo(e)||Vo(e)||Ko(e)||Xo(e)))return null;try{if(e.byteLength)return e.byteLength}catch(e){}try{if(e.length)return e.length}catch(e){}try{if(e.size)return e.size}catch(e){}return null}var Qo=Er(Object.getPrototypeOf,Object),Zo="[object Object]",Yo=Function.prototype,ei=Object.prototype,ti=Yo.toString,ri=ei.hasOwnProperty,ni=ti.call(Object);var oi="[object DOMException]",ii="[object Error]";function si(e){if(!Tt(e))return!1;var t=Rt(e);return t==ii||t==oi||"string"==typeof e.message&&"string"==typeof e.name&&!function(e){if(!Tt(e)||Rt(e)!=Zo)return!1;var t=Qo(e);if(null===t)return!0;var r=ri.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&ti.call(r)==ni}(e)}function ai(e){if(!On(e))return new Uint8Array;let t;try{t=function(e){if(!jn(e))return new Uint8Array;let t=ao.parse(e),r=t.words,n=t.sigBytes,o=new Uint8Array(n);for(let e=0;e<n;e++){let t=r[e>>>2]>>>24-e%4*8&255;o[e]=t}return o}(function(e){if(!On(e))return"";let t=io.parse(e);return ao.stringify(t)}(e))}catch(e){return new Uint8Array}return t}function ci(e,t){return function(e,t,r,n,o,i){if(!An(e))return null;if(!Ko(t))return null;if(!In(r))return null;if(!Qn(n))return null;if(!In(o))return null;if(!In(i))return null;let s,a,c;e=zn(e);let u=8*i-o-1,l=(1<<u)-1,f=l>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?i-1:0,h=n?-1:1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),(e+=s+f>=1?d/c:d*Math.pow(2,1-f))*c>=2&&(s++,c/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(e*c-1)*Math.pow(2,o),s+=f):(a=e*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;t[r+p]=255&a,p+=h,a/=256,o-=8);for(s=s<<o|a,u+=o;u>0;t[r+p]=255&s,p+=h,s/=256,u-=8);return t[r+p-h]|=128*y,null}(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,!(arguments.length>3&&void 0!==arguments[3])||arguments[3],arguments.length>4&&void 0!==arguments[4]?arguments[4]:52,arguments.length>5&&void 0!==arguments[5]?arguments[5]:8)}function ui(e){let t=[],r=[];if((!$o(n=e)||0===n.length||1===n.length&&Wo(n[0]))&&!Xn(e))return null;var n;let o=[],i=[];function s(e){o.push(Go(e)),i.push(e)}try{let n=function(e){if(!vn(e))return{results:"",binarys:[]};if(Ho(e))return{results:"",binarys:[]};let t="",r=[];try{let n=-1;t=JSON.stringify(e,(function(e,t){if(Ko(t)){n+=1;let e=`[Uint8Array]::${n}`;return r.push(t),e}if(Xo(t)){n+=1;let e=`[Uint16Array]::${n}`;return r.push(t),e}if(Jo(t)){n+=1;let e=`[ArrayBuffer]::${n}`;return r.push(t),e}return si(t)&&(t=t.toString()),t}))}catch(e){}return{results:t,binarys:r}}(e);s(ai(n.results)),qo(n.binarys,(e=>{s(e)}));let a=o,c=ai(JSON.stringify(a)),u=new Uint8Array(8);ci(Go(c),u),t.push(u),t.push(c),qo(i,(e=>{t.push(e)})),qo(t,(e=>{r=function(e,t){let r=Go(e),n=Go(t),o=new Uint8Array(r+n);return o.set(new Uint8Array(e),0),o.set(new Uint8Array(t),r),o}(r,e)}))}catch(e){return null}return r}function li(e){return function(e,t,r,n,o){if(!Ko(e))return null;if(!In(t))return null;if(!Qn(r))return null;if(!In(n))return null;if(!In(o))return null;let i,s,a=8*o-n-1,c=(1<<a)-1,u=c>>1,l=-7,f=r?0:o-1,d=r?1:-1,p=e[t+f];for(f+=d,i=p&(1<<-l)-1,p>>=-l,l+=a;l>0;i=256*i+e[t+f],f+=d,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=n;l>0;s=256*s+e[t+f],f+=d,l-=8);if(0===i)i=1-u;else{if(i===c)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),i-=u}return(p?-1:1)*s*Math.pow(2,i-n)}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!(arguments.length>2&&void 0!==arguments[2])||arguments[2],arguments.length>3&&void 0!==arguments[3]?arguments[3]:52,arguments.length>4&&void 0!==arguments[4]?arguments[4]:8)}var fi={};!function(e,t){var r;e.exports=(r=oo(),function(){if("function"==typeof ArrayBuffer){var e=r.lib.WordArray,t=e.init,n=e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var r=e.byteLength,n=[],o=0;o<r;o++)n[o>>>2]|=e[o]<<24-o%4*8;t.call(this,n,r)}else t.apply(this,arguments)};n.prototype=e}}(),r.lib.WordArray)}({get exports(){return fi},set exports(e){fi=e}});var di=fi;function pi(e){if(!Ko(e))return"";let t;try{t=co(function(e){return Ko(e)?di.create(e).toString(ao):""}(e))}catch(e){return""}return t}function hi(e){let t=null;if(!Ko(e))return null;try{let r=8,n=e.slice(0,r),o=e.slice(r,Go(e)),i=li(n),s=o.slice(0,i),a=o.slice(i,Go(o)),c=pi(s),u=function(e,t){let r=0,n=0,o=[];return qo(t,(t=>{n=r+t;let i=e.slice(r,n);r=n,o.push(i)})),o}(a,JSON.parse(c));t=function(e){if(!Xn(e))return{};let{results:t,binarys:r}=e;if(!On(t))return{};if(!$o(r))return{};let n={};try{n=JSON.parse(t,(function(e,t){if(On(t)){if(t.indexOf("[Uint8Array]::")>=0){let e=Jn(t.replace("[Uint8Array]::",""));return r[e]}if(t.indexOf("[Uint16Array]::")>=0){let e=Jn(t.replace("[Uint16Array]::",""));return r[e]}if(t.indexOf("[ArrayBuffer]::")>=0){let e=Jn(t.replace("[ArrayBuffer]::",""));return r[e]}}return t}))}catch(e){}return n}({results:pi(u.shift()),binarys:u})}catch(e){}return t}function yi(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;An(e)||(e=10);let t=wn();return setTimeout((function(){t.resolve()}),e),t}const gi=new Uint8Array([0,97,115,109,1,0,0,0,1,48,8,96,3,127,127,127,1,127,96,3,127,127,127,0,96,2,127,127,0,96,1,127,1,127,96,3,127,127,126,1,126,96,3,126,127,127,1,126,96,2,127,126,0,96,1,127,1,126,3,11,10,0,0,2,1,3,4,5,6,1,7,5,3,1,0,1,7,85,9,3,109,101,109,2,0,5,120,120,104,51,50,0,0,6,105,110,105,116,51,50,0,2,8,117,112,100,97,116,101,51,50,0,3,8,100,105,103,101,115,116,51,50,0,4,5,120,120,104,54,52,0,5,6,105,110,105,116,54,52,0,7,8,117,112,100,97,116,101,54,52,0,8,8,100,105,103,101,115,116,54,52,0,9,10,251,22,10,242,1,1,4,127,32,0,32,1,106,33,3,32,1,65,16,79,4,127,32,3,65,16,107,33,6,32,2,65,168,136,141,161,2,106,33,3,32,2,65,137,235,208,208,7,107,33,4,32,2,65,207,140,162,142,6,106,33,5,3,64,32,3,32,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,3,32,4,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,4,32,2,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,2,32,5,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,5,32,6,32,0,65,4,106,34,0,79,13,0,11,32,2,65,12,119,32,5,65,18,119,106,32,4,65,7,119,106,32,3,65,1,119,106,5,32,2,65,177,207,217,178,1,106,11,32,1,106,32,0,32,1,65,15,113,16,1,11,146,1,0,32,1,32,2,106,33,2,3,64,32,1,65,4,106,32,2,75,69,4,64,32,0,32,1,40,2,0,65,189,220,202,149,124,108,106,65,17,119,65,175,214,211,190,2,108,33,0,32,1,65,4,106,33,1,12,1,11,11,3,64,32,1,32,2,79,69,4,64,32,0,32,1,45,0,0,65,177,207,217,178,1,108,106,65,11,119,65,177,243,221,241,121,108,33,0,32,1,65,1,106,33,1,12,1,11,11,32,0,32,0,65,15,118,115,65,247,148,175,175,120,108,34,0,65,13,118,32,0,115,65,189,220,202,149,124,108,34,0,65,16,118,32,0,115,11,63,0,32,0,65,8,106,32,1,65,168,136,141,161,2,106,54,2,0,32,0,65,12,106,32,1,65,137,235,208,208,7,107,54,2,0,32,0,65,16,106,32,1,54,2,0,32,0,65,20,106,32,1,65,207,140,162,142,6,106,54,2,0,11,195,4,1,6,127,32,1,32,2,106,33,6,32,0,65,24,106,33,4,32,0,65,40,106,40,2,0,33,3,32,0,32,0,40,2,0,32,2,106,54,2,0,32,0,65,4,106,34,5,32,5,40,2,0,32,2,65,16,79,32,0,40,2,0,65,16,79,114,114,54,2,0,32,2,32,3,106,65,16,73,4,64,32,3,32,4,106,32,1,32,2,252,10,0,0,32,0,65,40,106,32,2,32,3,106,54,2,0,15,11,32,3,4,64,32,3,32,4,106,32,1,65,16,32,3,107,34,2,252,10,0,0,32,0,65,8,106,34,3,32,3,40,2,0,32,4,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,12,106,34,3,32,3,40,2,0,32,4,65,4,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,16,106,34,3,32,3,40,2,0,32,4,65,8,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,20,106,34,3,32,3,40,2,0,32,4,65,12,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,40,106,65,0,54,2,0,32,1,32,2,106,33,1,11,32,1,32,6,65,16,107,77,4,64,32,6,65,16,107,33,8,32,0,65,8,106,40,2,0,33,2,32,0,65,12,106,40,2,0,33,3,32,0,65,16,106,40,2,0,33,5,32,0,65,20,106,40,2,0,33,7,3,64,32,2,32,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,2,32,3,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,3,32,5,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,5,32,7,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,7,32,8,32,1,65,4,106,34,1,79,13,0,11,32,0,65,8,106,32,2,54,2,0,32,0,65,12,106,32,3,54,2,0,32,0,65,16,106,32,5,54,2,0,32,0,65,20,106,32,7,54,2,0,11,32,1,32,6,73,4,64,32,4,32,1,32,6,32,1,107,34,1,252,10,0,0,32,0,65,40,106,32,1,54,2,0,11,11,97,1,1,127,32,0,65,16,106,40,2,0,33,1,32,0,65,4,106,40,2,0,4,127,32,1,65,12,119,32,0,65,20,106,40,2,0,65,18,119,106,32,0,65,12,106,40,2,0,65,7,119,106,32,0,65,8,106,40,2,0,65,1,119,106,5,32,1,65,177,207,217,178,1,106,11,32,0,40,2,0,106,32,0,65,24,106,32,0,65,40,106,40,2,0,16,1,11,255,3,2,3,126,1,127,32,0,32,1,106,33,6,32,1,65,32,79,4,126,32,6,65,32,107,33,6,32,2,66,214,235,130,238,234,253,137,245,224,0,124,33,3,32,2,66,177,169,172,193,173,184,212,166,61,125,33,4,32,2,66,249,234,208,208,231,201,161,228,225,0,124,33,5,3,64,32,3,32,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,3,32,4,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,4,32,2,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,2,32,5,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,5,32,6,32,0,65,8,106,34,0,79,13,0,11,32,2,66,12,137,32,5,66,18,137,124,32,4,66,7,137,124,32,3,66,1,137,124,32,3,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,4,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,2,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,5,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,5,32,2,66,197,207,217,178,241,229,186,234,39,124,11,32,1,173,124,32,0,32,1,65,31,113,16,6,11,134,2,0,32,1,32,2,106,33,2,3,64,32,2,32,1,65,8,106,79,4,64,32,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,32,0,133,66,27,137,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,33,0,32,1,65,8,106,33,1,12,1,11,11,32,1,65,4,106,32,2,77,4,64,32,0,32,1,53,2,0,66,135,149,175,175,152,182,222,155,158,127,126,133,66,23,137,66,207,214,211,190,210,199,171,217,66,126,66,249,243,221,241,153,246,153,171,22,124,33,0,32,1,65,4,106,33,1,11,3,64,32,1,32,2,73,4,64,32,0,32,1,49,0,0,66,197,207,217,178,241,229,186,234,39,126,133,66,11,137,66,135,149,175,175,152,182,222,155,158,127,126,33,0,32,1,65,1,106,33,1,12,1,11,11,32,0,32,0,66,33,136,133,66,207,214,211,190,210,199,171,217,66,126,34,0,32,0,66,29,136,133,66,249,243,221,241,153,246,153,171,22,126,34,0,32,0,66,32,136,133,11,77,0,32,0,65,8,106,32,1,66,214,235,130,238,234,253,137,245,224,0,124,55,3,0,32,0,65,16,106,32,1,66,177,169,172,193,173,184,212,166,61,125,55,3,0,32,0,65,24,106,32,1,55,3,0,32,0,65,32,106,32,1,66,249,234,208,208,231,201,161,228,225,0,124,55,3,0,11,244,4,2,3,127,4,126,32,1,32,2,106,33,5,32,0,65,40,106,33,4,32,0,65,200,0,106,40,2,0,33,3,32,0,32,0,41,3,0,32,2,173,124,55,3,0,32,2,32,3,106,65,32,73,4,64,32,3,32,4,106,32,1,32,2,252,10,0,0,32,0,65,200,0,106,32,2,32,3,106,54,2,0,15,11,32,3,4,64,32,3,32,4,106,32,1,65,32,32,3,107,34,2,252,10,0,0,32,0,65,8,106,34,3,32,3,41,3,0,32,4,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,16,106,34,3,32,3,41,3,0,32,4,65,8,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,24,106,34,3,32,3,41,3,0,32,4,65,16,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,32,106,34,3,32,3,41,3,0,32,4,65,24,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,200,0,106,65,0,54,2,0,32,1,32,2,106,33,1,11,32,1,65,32,106,32,5,77,4,64,32,5,65,32,107,33,2,32,0,65,8,106,41,3,0,33,6,32,0,65,16,106,41,3,0,33,7,32,0,65,24,106,41,3,0,33,8,32,0,65,32,106,41,3,0,33,9,3,64,32,6,32,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,6,32,7,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,7,32,8,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,8,32,9,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,9,32,2,32,1,65,8,106,34,1,79,13,0,11,32,0,65,8,106,32,6,55,3,0,32,0,65,16,106,32,7,55,3,0,32,0,65,24,106,32,8,55,3,0,32,0,65,32,106,32,9,55,3,0,11,32,1,32,5,73,4,64,32,4,32,1,32,5,32,1,107,34,1,252,10,0,0,32,0,65,200,0,106,32,1,54,2,0,11,11,188,2,1,5,126,32,0,65,24,106,41,3,0,33,1,32,0,41,3,0,34,2,66,32,90,4,126,32,0,65,8,106,41,3,0,34,3,66,1,137,32,0,65,16,106,41,3,0,34,4,66,7,137,124,32,1,66,12,137,32,0,65,32,106,41,3,0,34,5,66,18,137,124,124,32,3,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,4,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,1,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,5,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,5,32,1,66,197,207,217,178,241,229,186,234,39,124,11,32,2,124,32,0,65,40,106,32,2,66,31,131,167,16,6,11]);async function bi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Vo(e)&&(r=e,"[object File]"!==Object.prototype.toString.call(r)))return console.log("inp",e),Promise.reject("inp is not a Blob or File");var r;let n=Sr(t,"chunkSize");An(n)||(n=67108864),n=zn(n);let{create64:o}=await async function(){return function(e){const{exports:{mem:t,xxh32:r,xxh64:n,init32:o,update32:i,digest32:s,init64:a,update64:c,digest64:u}}=e;let l=new Uint8Array(t.buffer);function f(e,r){if(t.buffer.byteLength<e+r){const n=Math.ceil((e+r-t.buffer.byteLength)/65536);t.grow(n),l=new Uint8Array(t.buffer)}}function d(e,t,r,n,o,i){f(e);const s=new Uint8Array(e);return l.set(s),r(0,t),s.set(l.subarray(0,e)),{update(t){let r;return l.set(s),"string"==typeof t?(f(3*t.length,e),r=g.encodeInto(t,l.subarray(e)).written):(f(t.byteLength,e),l.set(t,e),r=t.byteLength),n(0,e,r),s.set(l.subarray(0,e)),this},digest:()=>(l.set(s),i(o(0)))}}function p(e){return e>>>0}const h=2n**64n-1n;function y(e){return e&h}const g=new TextEncoder,b=0,m=0n;function w(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b;return f(3*e.length,0),p(r(0,g.encodeInto(e,l).written,t))}function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m;return f(3*e.length,0),y(n(0,g.encodeInto(e,l).written,t))}return{h32:w,h32ToString:function(e){return w(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:b).toString(16).padStart(8,"0")},h32Raw:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b;return f(e.byteLength,0),l.set(e),p(r(0,e.byteLength,t))},create32:function(){return d(48,arguments.length>0&&void 0!==arguments[0]?arguments[0]:b,o,i,s,p)},h64:v,h64ToString:function(e){return v(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:m).toString(16).padStart(16,"0")},h64Raw:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m;return f(e.byteLength,0),l.set(e),y(n(0,e.byteLength,t))},create64:function(){return d(88,arguments.length>0&&void 0!==arguments[0]?arguments[0]:m,a,c,u,y)}}}((await WebAssembly.instantiate(gi)).instance)}(),i=o(),s=0;for(;s<e.size;){let t=e.slice(s,s+n),r=await t.arrayBuffer();i.update(new Uint8Array(r)),s+=n}return i.digest().toString(16).padStart(16,"0")}return function(e){let t=Sr(e,"url");On(t)||(t="http://localhost:8080");let r=Sr(e,"apiName");On(r)||(r="api");let n="";n="/"===function(e,t){if(!On(e))return"";if(!Kn(t))return"";if(0===(t=Jn(t)))return"";let r=e.length-t;return r<0&&(r=0),e.substring(r,r+t)}(t,1)?t+r:t+"/"+r;let o=Sr(e,"getToken",null);_n(o)||(o=()=>"");let i=Sr(e,"tokenType");On(i)||(i="Bearer");let s=Sr(e,"sizeSlice");Vn(s)||(s=1048576);let a=Sr(e,"timeout");Kn(a)||(a=3e5);let c=Sr(e,"retryMain");Kn(c)||(c=3);let u=Sr(e,"retryUpload");Kn(u)||(u=10);let l=Sr(e,"retryDownload");Kn(l)||(l=2);let f=yn()?"browser":"nodejs",d=new mn,p=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];setTimeout((()=>{d.emit(e,...r)}),1)},h=e=>{let t="";if("basic"===e)t=`${n}/main`;else if("upload-controller"===e)t=`${n}/ulctr`;else if("slice"===e)t=`${n}/slc`;else if("download-get-filename"===e)t=`${n}/dwgfn`;else if("download-get"===e)t=`${n}/dwgf`;else{if("download"!==e)throw new Error(`invalid type[${e}]`);t=`${n}/dw`}return t},y=async e=>{let t;return t="browser"===f?await function(e){let t=wn();return uo(e).then((e=>{let r=new Uint8Array(e);t.resolve(r)})).catch((e=>{t.reject(e)})),t}(e):new Uint8Array(e),t},g=async function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Sr(r,"headers");vn(n)||(n={});let s=Sr(r,"dataType","");"blob"!==s&&"fmd"!==s&&"json"!==s&&(s="blob");let c=Sr(r,"cbProgress");_n(c)||(c=()=>{});let u=Sr(r,"retry");Kn(u)||(u=1);let l=h(e),d=wn(),g=null,b={};if("blob"===s)b={"Content-Type":"application/octet-stream"},g=t;else if("fmd"===s){let e;if("browser"===f)e=new FormData;else{if(!_n(r.FormData))throw p("error","invalid opt.FormData, need [npm i form-data] and [import FormData from 'form-data'] to set opt.FormData = FormData"),new Error("invalid opt.FormData");e=new r.FormData({maxDataSize:1099511627776})}e.append("bb",t),"nodejs"===f&&(b={"Content-Type":`multipart/form-data; boundary=${e.getBoundary()}`}),g=e}else"json"===s&&(b={"Content-Type":"application/json"},g=JSON.stringify(t));let m=null;m="nodejs"===f?"download"===e?"stream":"arraybuffer":"blob";let w=o();Zn(w)&&(w=await w);let v={method:"POST",url:l,data:g,headers:{Authorization:`${i} ${w}`,...b,...n},timeout:a,maxContentLength:1/0,maxBodyLength:1/0,responseType:m,onUploadProgress:function(e){let t=0,r=e.loaded,n=e.total;Vn(n)&&(t=100*r/n),c({prog:Math.floor(t),p:r,m:"upload"})},onDownloadProgress:function(e){let t=0,r=e.loaded,n=e.total;Vn(n)&&(t=100*r/n),c({prog:Math.floor(t),p:r,m:"download"})}},j=async()=>{let t=await ht(v);if("download"===e)return await(async e=>{let t=wn(),n=Sr(e,"headers['return-type']",""),o=Sr(e,"headers['return-msg']","");if("error"===n)return t.reject(o),t;let i=(e=>{let t="unknow";try{let r=/filename="(.+?)"/.exec(e);t=r?r[1]:"unknown"}catch(e){}return t})(Sr(e,"headers['content-disposition']",""));i=co(i);let s=Sr(e,"data");if("browser"===f)t.resolve({filename:i,bb:s});else try{let e="path",n="fs",o=await import(e),a=await import(n),c=Sr(r,"fdDownload","");a.mkdirSync(c,{recursive:!0});let u=o.resolve(c,i),l=a.createWriteStream(u);s.pipe(l),l.on("finish",(()=>{t.resolve(u)})),l.on("error",(e=>{t.reject(e)}))}catch(e){t.reject(e)}return t})(t);let n=Sr(t,"data"),o=hi(await y(n));return Xn(o)?En(o,"success")?Promise.resolve(o.success):En(o,"error")?(p("error",o.error),Promise.reject(o.error)):(p("error","data does not contain success or error"),Promise.reject("data does not contain success or error")):(p("error","data is not an effective object"),Promise.reject("data is not an effective object"))};return await(async()=>{let e=function(e){if(!_n(e))throw new Error("fn is not a function");return function(){let t=wn(),r=null,n=null;try{r=e.apply(this,arguments)}catch(e){n=e}return null!==n?t.resolve({state:"error",msg:n}):Zn(r)?r.then((e=>{t.resolve({state:"success",msg:e})})).catch((e=>{"cancelled"===Sr(e,"reason")?t.resolve({state:"cancelled",msg:""}):t.resolve({state:"error",msg:e})})):t.resolve({state:"success",msg:r}),t}}(j),t=await e(v),r=Math.pow(180,1/9),n=0;for(;"error"===t.state&&(n+=1,!(n>u));){let o=Math.round(1e3*Math.pow(r,n-1));console.log(`wait ${Yn(o/1e3,1)}(second) to retry...`),await yi(o),console.log(`retry n=${n}...`),t=await e(v)}return"success"===t.state?t.msg:Promise.reject(t.msg)})().then((e=>{d.resolve(e)})).catch((async e=>{let t=null,r=Sr(e,"response.statusText")||Sr(e,"message"),n=Sr(e,"response.data")||Sr(e,"stack");if(r)t=r;else if(n)t=n;else{try{e=e.toJSON()}catch(n){}p("error",e),t="Can not connect to server."}"Network Error"===t&&(t="Network Error. Make sure your space of hard drive is large enough or blocking by browser plugins."),d.reject(t)})),d},b=async(e,t,r)=>{let n=null;try{n=(e=>{let t;return t="browser"===f?new Blob([e.buffer]):Buffer.from(e),t})(ui(t))}catch(e){return Promise.reject(e)}return await g(e,n,{dataType:"blob",retry:c,cbProgress:r})},m=async e=>{let t=null;return t="browser"===f?e:new Blob([e]),await bi(t)};return d.execute=async(e,t,r)=>{let n={func:e,input:t},o="",i=null;return await b("basic",n,r).then((e=>On(e)?(o="error",void(i=e)):Xn(e)?En(e,"output")?(o="success",void(i=e.output)):(console.log("invalid msg.output",e),o="error",void(i="invalid msg.output")):(console.log("msg is not an effective object",e),o="error",void(i="msg is not an effective object")))).catch((e=>{o="error",i=e})),""===o?(p("error","invalid state"),Promise.reject("invalid state")):"error"===o?Promise.reject(i):i},d.upload=(e,t,r)=>(async(e,t,r)=>{let n=0;if(0===n)try{n=t.size,n=Jn(n)}catch(e){}if(0===n)try{n=t.length,n=Jn(n)}catch(e){}0===n&&(n=1);let o=n,i=Math.ceil(o/s),a=0,c=()=>{a++;let e=a/i;r({prog:.99*e*100,p:e*o,m:"upload"})},l=e=>{let t=e.prog;"download"===e.m&&100===t&&r({prog:100,p:o,m:"upload"})},f=await m(t),d=await g("upload-controller",{mode:"check-total-hash",fileHash:f,filename:e,fileSize:o},{dataType:"json",retry:u});if(d.bAllHash)return l({prog:100,m:"download"}),{filename:e,path:d.path};if(d.bSls){let e=[];for(let r=0;r<hn(d.slks);r++){let n=d.slks[r],i=n*s,a=Math.min(i+s,o),c=t.slice(i,a),u=await m(c);e.push({i:n,h:u})}let r=await g("upload-controller",{mode:"check-slices-hash",fileHash:f,fileSliceHashs:e},{dataType:"json",retry:u});d.slks=r.slks}let p=f;for(let e=0;e<i;e++){if(d.slks.indexOf(e)>=0){c();continue}let r=e*s,n=Math.min(r+s,o),a=t.slice(r,n),l={"chunk-index":e,"chunk-total":i,"package-id":p};await g("slice",a,{headers:l,dataType:"blob",cbProgress:e=>{},retry:u}),c()}let h=await g("upload-controller",{mode:"merge-slices-push",fileHash:f,chunkTotal:i},{dataType:"json",retry:u}),y=await(()=>{let t=wn(),r=h.queueId,n=setInterval((()=>{g("upload-controller",{mode:"merge-slices-get",fileHash:f,filename:e,queueId:r},{dataType:"json",retry:u}).then((e=>{"success"===e.state?(clearInterval(n),l({prog:100,m:"download"}),t.resolve(e.msg)):"error"===e.state&&(console.log("merge-slices-get error",e),clearInterval(n),t.resolve(e.msg))})).catch((e=>{console.log("merge-slices-get catch",e)}))}),2e3);return t})();return y})(e,t,r),d.download=async function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return"browser"===f?async function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Sr(r,"downloadByManager");if(Qn(n)||(n=!0),n){let t=o();Zn(t)&&(t=await t);let r={fileId:e},n=Sr(await g("download-get-filename",r,{dataType:"json",retry:l}),"filename",""),i=`${h("download-get")}?fileId=${e}&token=${t}`,s=document.createElement("a");return s.href=i,s.download=n,s.click(),n}{let n={fileId:e};return await g("download",n,{...r,dataType:"json",retry:l,cbProgress:t})}}(e,t,r):async function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={fileId:e};return await g("download",n,{...r,dataType:"json",retry:l,cbProgress:t})}(e,t,r)},d}}));
|
|
7
7
|
//# sourceMappingURL=w-converhp-client.umd.js.map
|