w-converhp 2.0.70 → 2.0.72
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 +3 -3
- package/dist/w-converhp-client.umd.js +2 -2
- package/dist/w-converhp-client.umd.js.map +1 -1
- package/docs/WConverhpClient.html +1 -1
- package/docs/WConverhpClient.mjs.html +1 -1
- package/docs/WConverhpServer.html +1 -1
- package/docs/WConverhpServer.mjs.html +1 -1
- package/docs/index.html +1 -1
- package/package.json +5 -5
- package/srv.mjs +2 -1
package/README.md
CHANGED
|
@@ -17,6 +17,7 @@ To view documentation or get support, visit [docs](https://yuda-lyu.github.io/w-
|
|
|
17
17
|
* `w-converhp-client`: for nodejs and browser client
|
|
18
18
|
|
|
19
19
|
## Installation
|
|
20
|
+
|
|
20
21
|
### Using npm(ES6 module):
|
|
21
22
|
```alias
|
|
22
23
|
npm i w-converhp
|
|
@@ -217,11 +218,10 @@ downloadLargeFile()
|
|
|
217
218
|
```
|
|
218
219
|
|
|
219
220
|
### In a browser(UMD module):
|
|
220
|
-
> **Note:** `w-converhp-client` does't depend on any package.
|
|
221
221
|
|
|
222
|
-
|
|
222
|
+
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.72/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.72
|
|
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");function f(e){return null!==e&&!l(e)&&null!==e.constructor&&!l(e.constructor)&&h(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const d=a("ArrayBuffer");const p=c("string"),h=c("function"),y=c("number"),g=e=>null!==e&&"object"==typeof e,b=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)},m=a("Date"),w=a("File"),v=a("Blob"),j=a("FileList"),O=a("URLSearchParams"),[S,A,E,_]=["ReadableStream","Request","Response","Headers"].map(a);function x(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{if(f(e))return;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){if(f(e))return null;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 T="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,U=e=>!l(e)&&e!==T;const P=(C="undefined"!=typeof Uint8Array&&r(Uint8Array),e=>C&&e instanceof C);var C;const B=a("HTMLFormElement"),N=(e=>{let{hasOwnProperty:t}=e;return(e,r)=>t.call(e,r)})(Object.prototype),k=a("RegExp"),F=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};x(r,((r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)})),Object.defineProperties(e,n)};const L=a("AsyncFunction"),D=(M="function"==typeof setImmediate,z=h(T.postMessage),M?setImmediate:z?(I=`axios@${Math.random()}`,q=[],T.addEventListener("message",(e=>{let{source:t,data:r}=e;t===T&&r===I&&q.length&&q.shift()()}),!1),e=>{q.push(e),T.postMessage(I,"*")}):e=>setTimeout(e));var M,z,I,q;const $="undefined"!=typeof queueMicrotask?queueMicrotask.bind(T):"undefined"!=typeof process&&process.nextTick||D;var H={isArray:u,isArrayBuffer:d,isBuffer:f,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||h(e.append)&&("formdata"===(t=i(e))||"object"===t&&h(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&d(e.buffer),t},isString:p,isNumber:y,isBoolean:e=>!0===e||!1===e,isObject:g,isPlainObject:b,isEmptyObject:e=>{if(!g(e)||f(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:S,isRequest:A,isResponse:E,isHeaders:_,isUndefined:l,isDate:m,isFile:w,isBlob:v,isRegExp:k,isFunction:h,isStream:e=>g(e)&&h(e.pipe),isURLSearchParams:O,isTypedArray:P,isFileList:j,forEach:x,merge:function e(){const{caseless:t,skipUndefined:r}=U(this)&&this||{},n={},o=(o,i)=>{const s=t&&R(n,i)||i;b(n[s])&&b(o)?n[s]=e(n[s],o):b(o)?n[s]=e({},o):u(o)?n[s]=o.slice():r&&l(o)||(n[s]=o)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&x(arguments[e],o);return n},extend:function(t,r,n){let{allOwnKeys:o}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return x(r,((r,o)=>{n&&h(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(!y(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:B,hasOwnProperty:N,hasOwnProp:N,reduceDescriptors:F,freezeMethods:e=>{F(e,((t,r)=>{if(h(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];h(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:T,isContextDefined:U,isSpecCompliantForm:function(e){return!!(e&&h(e.append)&&"FormData"===e[o]&&e[n])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(g(e)){if(t.indexOf(e)>=0)return;if(f(e))return e;if(!("toJSON"in e)){t[n]=e;const o=u(e)?[]:{};return x(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:L,isThenable:e=>e&&(g(e)||h(e))&&h(e.then)&&h(e.catch),setImmediate:D,asap:$,isIterable:e=>null!=e&&h(e[n])};function W(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)}H.inherits(W,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:H.toJSONObject(this.config),code:this.code,status:this.status}}});const J=W.prototype,V={};["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=>{V[e]={value:e}})),Object.defineProperties(W,V),Object.defineProperty(J,"isAxiosError",{value:!0}),W.from=(e,t,r,n,o,i)=>{const s=Object.create(J);H.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e));const a=e&&e.message?e.message:"Error",c=null==t&&e?e.code:t;return W.call(s,a,c,r,n,o),e&&null==s.cause&&Object.defineProperty(s,"cause",{value:e,configurable:!0}),s.name=e&&e.name||"Error",i&&Object.assign(s,i),s};function K(e){return H.isPlainObject(e)||H.isArray(e)}function X(e){return H.endsWith(e,"[]")?e.slice(0,-2):e}function G(e,t,r){return e?e.concat(t).map((function(e,t){return e=X(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const Q=H.toFlatObject(H,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Z(e,t,r){if(!H.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=H.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!H.isUndefined(t[e])}))).metaTokens,o=r.visitor||u,i=r.dots,s=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&H.isSpecCompliantForm(t);if(!H.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(H.isDate(e))return e.toISOString();if(H.isBoolean(e))return e.toString();if(!a&&H.isBlob(e))throw new W("Blob is not supported. Use a Buffer instead.");return H.isArrayBuffer(e)||H.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(H.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(H.isArray(e)&&function(e){return H.isArray(e)&&!e.some(K)}(e)||(H.isFileList(e)||H.endsWith(r,"[]"))&&(a=H.toArray(e)))return r=X(r),a.forEach((function(e,n){!H.isUndefined(e)&&null!==e&&t.append(!0===s?G([r],n,i):null===s?r:r+"[]",c(e))})),!1;return!!K(e)||(t.append(G(o,r,i),c(e)),!1)}const l=[],f=Object.assign(Q,{defaultVisitor:u,convertValue:c,isVisitable:K});if(!H.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!H.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),H.forEach(r,(function(r,i){!0===(!(H.isUndefined(r)||null===r)&&o.call(t,r,H.isString(i)?i.trim():i,n,f))&&e(r,n?n.concat(i):[i])})),l.pop()}}(e),t}function Y(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function ee(e,t){this._pairs=[],e&&Z(e,this,t)}const te=ee.prototype;function re(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ne(e,t,r){if(!t)return e;const n=r&&r.encode||re;H.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(i=o?o(t,r):H.isURLSearchParams(t)?t.toString():new ee(t,r).toString(n),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}te.append=function(e,t){this._pairs.push([e,t])},te.toString=function(e){const t=e?function(t){return e.call(this,t,Y)}:Y;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var oe=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){H.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ie={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},se={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ee,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const ae="undefined"!=typeof window&&"undefined"!=typeof document,ce="object"==typeof navigator&&navigator||void 0,ue=ae&&(!ce||["ReactNative","NativeScript","NS"].indexOf(ce.product)<0),le="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,fe=ae&&window.location.href||"http://localhost";var de={...Object.freeze({__proto__:null,hasBrowserEnv:ae,hasStandardBrowserEnv:ue,hasStandardBrowserWebWorkerEnv:le,navigator:ce,origin:fe}),...se};function pe(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&&H.isArray(n)?n.length:i,a)return H.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!s;n[i]&&H.isObject(n[i])||(n[i]=[]);return t(e,r,n[i],o)&&H.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(H.isFormData(e)&&H.isFunction(e.entries)){const r={};return H.forEachEntry(e,((e,n)=>{t(function(e){return H.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null}const he={transitional:ie,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=H.isObject(e);o&&H.isHTMLForm(e)&&(e=new FormData(e));if(H.isFormData(e))return n?JSON.stringify(pe(e)):e;if(H.isArrayBuffer(e)||H.isBuffer(e)||H.isStream(e)||H.isFile(e)||H.isBlob(e)||H.isReadableStream(e))return e;if(H.isArrayBufferView(e))return e.buffer;if(H.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 Z(e,new de.classes.URLSearchParams,{visitor:function(e,t,r,n){return de.isNode&&H.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=H.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Z(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e,t,r){if(H.isString(e))try{return(t||JSON.parse)(e),H.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||he.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(H.isResponse(e)||H.isReadableStream(e))return e;if(e&&H.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e,this.parseReviver)}catch(e){if(r){if("SyntaxError"===e.name)throw W.from(e,W.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:de.classes.FormData,Blob:de.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};H.forEach(["delete","get","head","post","put","patch"],(e=>{he.headers[e]={}}));var ye=he;const ge=H.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 be=Symbol("internals");function me(e){return e&&String(e).trim().toLowerCase()}function we(e){return!1===e||null==e?e:H.isArray(e)?e.map(we):String(e)}function ve(e,t,r,n,o){return H.isFunction(n)?n.call(this,t,r):(o&&(t=r),H.isString(t)?H.isString(n)?-1!==t.indexOf(n):H.isRegExp(n)?n.test(t):void 0:void 0)}class je{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=me(t);if(!o)throw new Error("header name must be a non-empty string");const i=H.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=we(e))}const i=(e,t)=>H.forEach(e,((e,r)=>o(e,r,t)));if(H.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(H.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]&&ge[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(H.isObject(e)&&H.isIterable(e)){let r,n,o={};for(const t of e){if(!H.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[n=t[0]]=(r=o[n])?H.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=me(e)){const r=H.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(H.isFunction(t))return t.call(this,e,r);if(H.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=me(e)){const r=H.findKey(this,e);return!(!r||void 0===this[r]||t&&!ve(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=me(e)){const o=H.findKey(r,e);!o||t&&!ve(0,r[o],o,t)||(delete r[o],n=!0)}}return H.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&&!ve(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return H.forEach(this,((n,o)=>{const i=H.findKey(r,o);if(i)return t[i]=we(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]=we(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 H.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&H.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[be]=this[be]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=me(e);t[n]||(!function(e,t){const r=H.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 H.isArray(e)?e.forEach(n):n(e),this}}je.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),H.reduceDescriptors(je.prototype,((e,t)=>{let{value:r}=e,n=t[0].toUpperCase()+t.slice(1);return{get:()=>r,set(e){this[n]=e}}})),H.freezeMethods(je);var Oe=je;function Se(e,t){const r=this||ye,n=t||r,o=Oe.from(n.headers);let i=n.data;return H.forEach(e,(function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Ae(e){return!(!e||!e.__CANCEL__)}function Ee(e,t,r){W.call(this,null==e?"canceled":e,W.ERR_CANCELED,t,r),this.name="CanceledError"}function _e(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new W("Request failed with status code "+r.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}H.inherits(Ee,W,{__CANCEL__:!0});const xe=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(...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]]},Te=e=>function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return H.asap((()=>e(...r)))};var Ue=de.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,de.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(de.origin),de.navigator&&/(msie|trident)/i.test(de.navigator.userAgent)):()=>!0,Pe=de.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const s=[e+"="+encodeURIComponent(t)];H.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),H.isString(n)&&s.push("path="+n),H.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 Be=e=>e instanceof Oe?{...e}:e;function Ne(e,t){t=t||{};const r={};function n(e,t,r,n){return H.isPlainObject(e)&&H.isPlainObject(t)?H.merge.call({caseless:n},e,t):H.isPlainObject(t)?H.merge({},t):H.isArray(t)?t.slice():t}function o(e,t,r,o){return H.isUndefined(t)?H.isUndefined(e)?void 0:n(void 0,e,0,o):n(e,t,0,o)}function i(e,t){if(!H.isUndefined(t))return n(void 0,t)}function s(e,t){return H.isUndefined(t)?H.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(Be(e),Be(t),0,!0)};return H.forEach(Object.keys({...e,...t}),(function(n){const i=c[n]||o,s=i(e[n],t[n],n);H.isUndefined(s)&&i!==a||(r[n]=s)})),r}var ke=e=>{const t=Ne({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=t;if(t.headers=s=Oe.from(s),t.url=ne(Ce(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),H.isFormData(r))if(de.hasStandardBrowserEnv||de.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(H.isFunction(r.getHeaders)){const e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach((e=>{let[r,n]=e;t.includes(r.toLowerCase())&&s.set(r,n)}))}if(de.hasStandardBrowserEnv&&(n&&H.isFunction(n)&&(n=n(t)),n||!1!==n&&Ue(t.url))){const e=o&&i&&Pe.read(i);e&&s.set(o,e)}return t};var Fe="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){const n=ke(e);let o=n.data;const i=Oe.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=Oe.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders());_e((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 W("Request aborted",W.ECONNABORTED,e,y)),y=null)},y.onerror=function(t){const n=new W(t&&t.message?t.message:"Network Error",W.ERR_NETWORK,e,y);n.event=t||null,r(n),y=null},y.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||ie;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new W(t,o.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,e,y)),y=null},void 0===o&&i.setContentType(null),"setRequestHeader"in y&&H.forEach(i.toJSON(),(function(e,t){y.setRequestHeader(t,e)})),H.isUndefined(n.withCredentials)||(y.withCredentials=!!n.withCredentials),f&&"json"!==f&&(y.responseType=n.responseType),p&&([c,l]=xe(p,!0),y.addEventListener("progress",c)),d&&y.upload&&([a,u]=xe(d),y.upload.addEventListener("progress",a),y.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(s=t=>{y&&(r(!t||t.type?new Ee(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===de.protocols.indexOf(b)?r(new W("Unsupported protocol "+b+":",W.ERR_BAD_REQUEST,e)):y.send(o||null)}))};var Le=(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 W?t:new Ee(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new W(`timeout ${t} of ms exceeded`,W.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=()=>H.asap(s),a}};const De=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},Me=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()}},ze=(e,t,r,n)=>{const o=async function*(e,t){for await(const r of Me(e))yield*De(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})},{isFunction:Ie}=H,qe=(e=>{let{Request:t,Response:r}=e;return{Request:t,Response:r}})(H.global),{ReadableStream:$e,TextEncoder:He}=H.global,We=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}},Je=e=>{e=H.merge.call({skipUndefined:!0},qe,e);const{fetch:t,Request:r,Response:n}=e,o=t?Ie(t):"function"==typeof fetch,i=Ie(r),s=Ie(n);if(!o)return!1;const a=o&&Ie($e),c=o&&("function"==typeof He?(u=new He,e=>u.encode(e)):async e=>new Uint8Array(await new r(e).arrayBuffer()));var u;const l=i&&a&&We((()=>{let e=!1;const t=new r(de.origin,{body:new $e,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),f=s&&a&&We((()=>H.isReadableStream(new n("").body))),d={stream:f&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!d[e]&&(d[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new W(`Response type '${e}' is not supported`,W.ERR_NOT_SUPPORT,r)})}));const p=async(e,t)=>{const n=H.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(H.isBlob(e))return e.size;if(H.isSpecCompliantForm(e)){const t=new r(de.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return H.isArrayBufferView(e)||H.isArrayBuffer(e)?e.byteLength:(H.isURLSearchParams(e)&&(e+=""),H.isString(e)?(await c(e)).byteLength:void 0)})(t):n};return async e=>{let{url:o,method:s,data:a,signal:c,cancelToken:u,timeout:h,onDownloadProgress:y,onUploadProgress:g,responseType:b,headers:m,withCredentials:w="same-origin",fetchOptions:v}=ke(e),j=t||fetch;b=b?(b+"").toLowerCase():"text";let O=Le([c,u&&u.toAbortSignal()],h),S=null;const A=O&&O.unsubscribe&&(()=>{O.unsubscribe()});let E;try{if(g&&l&&"get"!==s&&"head"!==s&&0!==(E=await p(m,a))){let e,t=new r(o,{method:"POST",body:a,duplex:"half"});if(H.isFormData(a)&&(e=t.headers.get("content-type"))&&m.setContentType(e),t.body){const[e,r]=Re(E,xe(Te(g)));a=ze(t.body,65536,e,r)}}H.isString(w)||(w=w?"include":"omit");const t=i&&"credentials"in r.prototype,c={...v,signal:O,method:s.toUpperCase(),headers:m.normalize().toJSON(),body:a,duplex:"half",credentials:t?w:void 0};S=i&&new r(o,c);let u=await(i?j(S,v):j(o,c));const h=f&&("stream"===b||"response"===b);if(f&&(y||h&&A)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=u[t]}));const t=H.toFiniteNumber(u.headers.get("content-length")),[r,o]=y&&Re(t,xe(Te(y),!0))||[];u=new n(ze(u.body,65536,r,(()=>{o&&o(),A&&A()})),e)}b=b||"text";let _=await d[H.findKey(d,b)||"text"](u,e);return!h&&A&&A(),await new Promise(((t,r)=>{_e(t,r,{data:_,headers:Oe.from(u.headers),status:u.status,statusText:u.statusText,config:e,request:S})}))}catch(t){if(A&&A(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new W("Network Error",W.ERR_NETWORK,e,S),{cause:t.cause||t});throw W.from(t,t&&t.code,e,S)}}},Ve=new Map,Ke=e=>{let t=e?e.env:{};const{fetch:r,Request:n,Response:o}=t,i=[n,o,r];let s,a,c=i.length,u=Ve;for(;c--;)s=i[c],a=u.get(s),void 0===a&&u.set(s,a=c?new Map:Je(t)),u=a;return a};Ke();const Xe={http:null,xhr:Fe,fetch:{get:Ke}};H.forEach(Xe,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Ge=e=>`- ${e}`,Qe=e=>H.isFunction(e)||null===e||!1===e;var Ze={getAdapter:(e,t)=>{e=H.isArray(e)?e:[e];const{length:r}=e;let n,o;const i={};for(let s=0;s<r;s++){let r;if(n=e[s],o=n,!Qe(n)&&(o=Xe[(r=String(n)).toLowerCase()],void 0===o))throw new W(`Unknown adapter '${r}'`);if(o&&(H.isFunction(o)||(o=o.get(t))))break;i[r||"#"+s]=o}if(!o){const e=Object.entries(i).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 W("There is no suitable adapter to dispatch the request "+(r?e.length>1?"since :\n"+e.map(Ge).join("\n"):" "+Ge(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return o},adapters:Xe};function Ye(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ee(null,e)}function et(e){Ye(e),e.headers=Oe.from(e.headers),e.data=Se.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Ze.getAdapter(e.adapter||ye.adapter,e)(e).then((function(t){return Ye(e),t.data=Se.call(e,e.transformResponse,t),t.headers=Oe.from(t.headers),t}),(function(t){return Ae(t)||(Ye(e),t&&t.response&&(t.response.data=Se.call(e,e.transformResponse,t.response),t.response.headers=Oe.from(t.response.headers))),Promise.reject(t)}))}const tt="1.12.2",rt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{rt[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const nt={};rt.transitional=function(e,t,r){function n(e,t){return"[Axios v"+tt+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new W(n(o," has been removed"+(t?" in "+t:"")),W.ERR_DEPRECATED);return t&&!nt[o]&&(nt[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)}},rt.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};var ot={assertOptions:function(e,t,r){if("object"!=typeof e)throw new W("options must be an object",W.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 W("option "+i+" must be "+r,W.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new W("Unknown option "+i,W.ERR_BAD_OPTION)}},validators:rt};const it=ot.validators;class st{constructor(e){this.defaults=e||{},this.interceptors={request:new oe,response:new oe}}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=Ne(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&ot.assertOptions(r,{silentJSONParsing:it.transitional(it.boolean),forcedJSONParsing:it.transitional(it.boolean),clarifyTimeoutError:it.transitional(it.boolean)},!1),null!=n&&(H.isFunction(n)?t.paramsSerializer={serialize:n}:ot.assertOptions(n,{encode:it.function,serialize:it.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),ot.assertOptions(t,{baseUrl:it.spelling("baseURL"),withXsrfToken:it.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&H.merge(o.common,o[t.method]);o&&H.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Oe.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=[et.bind(this),void 0];for(e.unshift(...s),e.push(...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<l;){const e=s[f++],t=s[f++];try{d=e(d)}catch(e){t.call(this,e);break}}try{u=et.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 ne(Ce((e=Ne(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}H.forEach(["delete","get","head","options"],(function(e){st.prototype[e]=function(t,r){return this.request(Ne(r||{},{method:e,url:t,data:(r||{}).data}))}})),H.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(Ne(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}st.prototype[e]=t(),st.prototype[e+"Form"]=t(!0)}));var at=st;class ct{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 Ee(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 ct((function(t){e=t})),cancel:e}}}var ut=ct;const lt={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(lt).forEach((e=>{let[t,r]=e;lt[r]=t}));var ft=lt;const dt=function t(r){const n=new at(r),o=e(at.prototype.request,n);return H.extend(o,at.prototype,n,{allOwnKeys:!0}),H.extend(o,n,null,{allOwnKeys:!0}),o.create=function(e){return t(Ne(r,e))},o}(ye);dt.Axios=at,dt.CanceledError=Ee,dt.CancelToken=ut,dt.isCancel=Ae,dt.VERSION=tt,dt.toFormData=Z,dt.AxiosError=W,dt.Cancel=dt.CanceledError,dt.all=function(e){return Promise.all(e)},dt.spread=function(e){return function(t){return e.apply(null,t)}},dt.isAxiosError=function(e){return H.isObject(e)&&!0===e.isAxiosError},dt.mergeConfig=Ne,dt.AxiosHeaders=Oe,dt.formToJSON=e=>pe(H.isHTMLForm(e)?new FormData(e):e),dt.getAdapter=Ze.getAdapter,dt.HttpStatusCode=ft,dt.default=dt;var pt=dt,ht=Array.isArray,yt="object"==typeof global&&global&&global.Object===Object&&global,gt="object"==typeof self&&self&&self.Object===Object&&self,bt=yt||gt||Function("return this")(),mt=bt.Symbol,wt=Object.prototype,vt=wt.hasOwnProperty,jt=wt.toString,Ot=mt?mt.toStringTag:void 0;var St=Object.prototype.toString;var At="[object Null]",Et="[object Undefined]",_t=mt?mt.toStringTag:void 0;function xt(e){return null==e?void 0===e?Et:At:_t&&_t in Object(e)?function(e){var t=vt.call(e,Ot),r=e[Ot];try{e[Ot]=void 0;var n=!0}catch(e){}var o=jt.call(e);return n&&(t?e[Ot]=r:delete e[Ot]),o}(e):function(e){return St.call(e)}(e)}function Rt(e){return null!=e&&"object"==typeof e}var Tt="[object Symbol]";function Ut(e){return"symbol"==typeof e||Rt(e)&&xt(e)==Tt}var Pt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ct=/^\w*$/;function Bt(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var Nt="[object AsyncFunction]",kt="[object Function]",Ft="[object GeneratorFunction]",Lt="[object Proxy]";function Dt(e){if(!Bt(e))return!1;var t=xt(e);return t==kt||t==Ft||t==Nt||t==Lt}var Mt,zt=bt["__core-js_shared__"],It=(Mt=/[^.]+$/.exec(zt&&zt.keys&&zt.keys.IE_PROTO||""))?"Symbol(src)_1."+Mt:"";var qt=Function.prototype.toString;function $t(e){if(null!=e){try{return qt.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var Ht=/^\[object .+?Constructor\]$/,Wt=Function.prototype,Jt=Object.prototype,Vt=Wt.toString,Kt=Jt.hasOwnProperty,Xt=RegExp("^"+Vt.call(Kt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Gt(e){return!(!Bt(e)||(t=e,It&&It in t))&&(Dt(e)?Xt:Ht).test($t(e));var t}function Qt(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return Gt(r)?r:void 0}var Zt=Qt(Object,"create");var Yt=Object.prototype.hasOwnProperty;var er=Object.prototype.hasOwnProperty;function tr(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 rr(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}tr.prototype.clear=function(){this.__data__=Zt?Zt(null):{},this.size=0},tr.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},tr.prototype.get=function(e){var t=this.__data__;if(Zt){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return Yt.call(t,e)?t[e]:void 0},tr.prototype.has=function(e){var t=this.__data__;return Zt?void 0!==t[e]:er.call(t,e)},tr.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Zt&&void 0===t?"__lodash_hash_undefined__":t,this};var nr=Array.prototype.splice;function or(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])}}or.prototype.clear=function(){this.__data__=[],this.size=0},or.prototype.delete=function(e){var t=this.__data__,r=rr(t,e);return!(r<0)&&(r==t.length-1?t.pop():nr.call(t,r,1),--this.size,!0)},or.prototype.get=function(e){var t=this.__data__,r=rr(t,e);return r<0?void 0:t[r][1]},or.prototype.has=function(e){return rr(this.__data__,e)>-1},or.prototype.set=function(e,t){var r=this.__data__,n=rr(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var ir=Qt(bt,"Map");function sr(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 ar(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])}}ar.prototype.clear=function(){this.size=0,this.__data__={hash:new tr,map:new(ir||or),string:new tr}},ar.prototype.delete=function(e){var t=sr(this,e).delete(e);return this.size-=t?1:0,t},ar.prototype.get=function(e){return sr(this,e).get(e)},ar.prototype.has=function(e){return sr(this,e).has(e)},ar.prototype.set=function(e,t){var r=sr(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};var cr="Expected a function";function ur(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(cr);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(ur.Cache||ar),r}ur.Cache=ar;var lr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,fr=/\\(\\)?/g,dr=function(e){var t=ur(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(lr,(function(e,r,n,o){t.push(n?o.replace(fr,"$1"):r||e)})),t})),pr=dr;var hr=1/0,yr=mt?mt.prototype:void 0,gr=yr?yr.toString:void 0;function br(e){if("string"==typeof e)return e;if(ht(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,br)+"";if(Ut(e))return gr?gr.call(e):"";var t=e+"";return"0"==t&&1/e==-hr?"-0":t}function mr(e){return null==e?"":br(e)}function wr(e,t){return ht(e)?e:function(e,t){if(ht(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!Ut(e))||Ct.test(e)||!Pt.test(e)||null!=t&&e in Object(t)}(e,t)?[e]:pr(mr(e))}var vr=1/0;function jr(e){if("string"==typeof e||Ut(e))return e;var t=e+"";return"0"==t&&1/e==-vr?"-0":t}function Or(e,t,r){var n=null==e?void 0:function(e,t){for(var r=0,n=(t=wr(t,e)).length;null!=e&&r<n;)e=e[jr(t[r++])];return r&&r==n?e:void 0}(e,t);return void 0===n?r:n}var Sr=Object.prototype;function Ar(e,t){return function(r){return e(t(r))}}var Er=Ar(Object.keys,Object),_r=Object.prototype.hasOwnProperty;function xr(e){if(r=(t=e)&&t.constructor,t!==("function"==typeof r&&r.prototype||Sr))return Er(e);var t,r,n=[];for(var o in Object(e))_r.call(e,o)&&"constructor"!=o&&n.push(o);return n}var Rr=Qt(bt,"DataView"),Tr=Qt(bt,"Promise"),Ur=Qt(bt,"Set"),Pr=Qt(bt,"WeakMap"),Cr="[object Map]",Br="[object Promise]",Nr="[object Set]",kr="[object WeakMap]",Fr="[object DataView]",Lr=$t(Rr),Dr=$t(ir),Mr=$t(Tr),zr=$t(Ur),Ir=$t(Pr),qr=xt;(Rr&&qr(new Rr(new ArrayBuffer(1)))!=Fr||ir&&qr(new ir)!=Cr||Tr&&qr(Tr.resolve())!=Br||Ur&&qr(new Ur)!=Nr||Pr&&qr(new Pr)!=kr)&&(qr=function(e){var t=xt(e),r="[object Object]"==t?e.constructor:void 0,n=r?$t(r):"";if(n)switch(n){case Lr:return Fr;case Dr:return Cr;case Mr:return Br;case zr:return Nr;case Ir:return kr}return t});var $r=qr,Hr=9007199254740991;function Wr(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Hr}function Jr(e){return null!=e&&Wr(e.length)&&!Dt(e)}var Vr="[object String]";var Kr,Xr=(Kr="length",function(e){return null==e?void 0:e[Kr]}),Gr=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var Qr="\\ud800-\\udfff",Zr="["+Qr+"]",Yr="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",en="\\ud83c[\\udffb-\\udfff]",tn="[^"+Qr+"]",rn="(?:\\ud83c[\\udde6-\\uddff]){2}",nn="[\\ud800-\\udbff][\\udc00-\\udfff]",on="(?:"+Yr+"|"+en+")"+"?",sn="[\\ufe0e\\ufe0f]?",an=sn+on+("(?:\\u200d(?:"+[tn,rn,nn].join("|")+")"+sn+on+")*"),cn="(?:"+[tn+Yr+"?",Yr,rn,nn,Zr].join("|")+")",un=RegExp(en+"(?="+en+")|"+cn+an,"g");function ln(e){return function(e){return Gr.test(e)}(e)?function(e){for(var t=un.lastIndex=0;un.test(e);)++t;return t}(e):Xr(e)}var fn="[object Map]",dn="[object Set]";function pn(e){if(null==e)return 0;if(Jr(e))return"string"==typeof(t=e)||!ht(t)&&Rt(t)&&xt(t)==Vr?ln(e):e.length;var t,r=$r(e);return r==fn||r==dn?e.size:xr(e).length}function hn(){return"undefined"!=typeof window&&void 0!==window.document}var yn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},gn={};!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 gn},set exports(e){gn=e}});var bn=gn;function mn(){let e,t,r=new Promise((function(){e=arguments[0],t=arguments[1]}));return r.resolve=e,r.reject=t,r}function wn(e){return"[object Object]"===Object.prototype.toString.call(e)}function vn(e){return"[object String]"===Object.prototype.toString.call(e)}function jn(e){return!(!vn(e)||""===e)}function On(e){return e!=e}function Sn(e){let t=!1;if(jn(e))t=!isNaN(Number(e));else if(function(e){return"[object Number]"===Object.prototype.toString.call(e)}(e)){if(On(e))return!1;t=!0}return t}function An(e,t){return!!wn(e)&&(!(!jn(t)&&!Sn(t))&&t in e)}function En(e){let t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t}var _n=/\s/;var xn=/^\s+/;function Rn(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&_n.test(e.charAt(t)););return t}(e)+1).replace(xn,""):e}var Tn=NaN,Un=/^[-+]0x[0-9a-f]+$/i,Pn=/^0b[01]+$/i,Cn=/^0o[0-7]+$/i,Bn=parseInt;function Nn(e){if("number"==typeof e)return e;if(Ut(e))return Tn;if(Bt(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Bt(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Rn(e);var r=Pn.test(e);return r||Cn.test(e)?Bn(e.slice(2),r?2:8):Un.test(e)?Tn:+e}var kn=1/0,Fn=17976931348623157e292;function Ln(e){return e?(e=Nn(e))===kn||e===-kn?(e<0?-1:1)*Fn:e==e?e:0:0===e?e:0}function Dn(e){var t=Ln(e),r=t%1;return t==t?r?t-r:t:0}function Mn(e){if(!Sn(e))return 0;return Ln(e)}function zn(e){return!!Sn(e)&&(e=Mn(e),"number"==typeof(t=e)&&t==Dn(t));var t}var In=bt.isFinite,qn=Math.min;var $n,Hn=($n=Math["round"],function(e,t){if(e=Nn(e),(t=null==t?0:qn(Dn(t),292))&&In(e)){var r=(mr(e)+"e").split("e");return+((r=(mr($n(r[0]+"e"+(+r[1]+t)))+"e").split("e"))[0]+"e"+(+r[1]-t))}return $n(e)});function Wn(e){if(!Sn(e))return 0;e=Mn(e);let t=Hn(e);return"0"===String(t)?0:t}function Jn(e){if(!zn(e))return!1;return Wn(e)>0}function Vn(e){if(!zn(e))return!1;return Wn(e)>=0}function Kn(e){if(wn(e)){for(let t in e)return!0;return!1}return!1}var Xn="[object Boolean]";function Gn(e){return!0===(t=e)||!1===t||Rt(t)&&xt(t)==Xn;var t}function Qn(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 Zn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Sn(e)&&Vn(t)?(e=Mn(e),Hn(e,t).toFixed(t)):""}var Yn={};var eo,to={},ro={get exports(){return to},set exports(e){to=e}};function no(){return eo||(eo=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!==yn&&yn.crypto&&(r=yn.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)}(ro)),to}!function(e,t){e.exports=no().enc.Utf8}({get exports(){return Yn},set exports(e){Yn=e}});var oo=Yn,io={};!function(e,t){var r;e.exports=(r=no(),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 io},set exports(e){io=e}});var so=io;function ao(e){if(!jn(e))return"";return so.parse(e).toString(oo)}function co(e){if(!hn())return Promise.reject("no window");try{return function(e){return e.arrayBuffer()}(e)}catch(t){return function(e){let t=mn(),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 uo(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}var lo,fo=function(e,t,r){for(var n=-1,o=Object(e),i=r(e),s=i.length;s--;){var a=i[lo?s:++n];if(!1===t(o[a],a,o))break}return e},po=fo;function ho(e){return Rt(e)&&"[object Arguments]"==xt(e)}var yo=Object.prototype,go=yo.hasOwnProperty,bo=yo.propertyIsEnumerable,mo=ho(function(){return arguments}())?ho:function(e){return Rt(e)&&go.call(e,"callee")&&!bo.call(e,"callee")},wo=mo;var vo="object"==typeof exports&&exports&&!exports.nodeType&&exports,jo=vo&&"object"==typeof module&&module&&!module.nodeType&&module,Oo=jo&&jo.exports===vo?bt.Buffer:void 0,So=(Oo?Oo.isBuffer:void 0)||function(){return!1},Ao=9007199254740991,Eo=/^(?:0|[1-9]\d*)$/;function _o(e,t){var r=typeof e;return!!(t=null==t?Ao:t)&&("number"==r||"symbol"!=r&&Eo.test(e))&&e>-1&&e%1==0&&e<t}var xo={};xo["[object Float32Array]"]=xo["[object Float64Array]"]=xo["[object Int8Array]"]=xo["[object Int16Array]"]=xo["[object Int32Array]"]=xo["[object Uint8Array]"]=xo["[object Uint8ClampedArray]"]=xo["[object Uint16Array]"]=xo["[object Uint32Array]"]=!0,xo["[object Arguments]"]=xo["[object Array]"]=xo["[object ArrayBuffer]"]=xo["[object Boolean]"]=xo["[object DataView]"]=xo["[object Date]"]=xo["[object Error]"]=xo["[object Function]"]=xo["[object Map]"]=xo["[object Number]"]=xo["[object Object]"]=xo["[object RegExp]"]=xo["[object Set]"]=xo["[object String]"]=xo["[object WeakMap]"]=!1;var Ro="object"==typeof exports&&exports&&!exports.nodeType&&exports,To=Ro&&"object"==typeof module&&module&&!module.nodeType&&module,Uo=To&&To.exports===Ro&&yt.process,Po=function(){try{var e=To&&To.require&&To.require("util").types;return e||Uo&&Uo.binding&&Uo.binding("util")}catch(e){}}(),Co=Po&&Po.isTypedArray,Bo=Co?function(e){return function(t){return e(t)}}(Co):function(e){return Rt(e)&&Wr(e.length)&&!!xo[xt(e)]},No=Bo,ko=Object.prototype.hasOwnProperty;function Fo(e,t){var r=ht(e),n=!r&&wo(e),o=!r&&!n&&So(e),i=!r&&!n&&!o&&No(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&&!ko.call(e,u)||s&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||_o(u,c))||a.push(u);return a}function Lo(e){return Jr(e)?Fo(e):xr(e)}var Do=function(e,t){return function(r,n){if(null==r)return r;if(!Jr(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&&po(e,t,Lo)})),Mo=Do;function zo(e){return e}function Io(e,t){var r;return(ht(e)?uo:Mo)(e,"function"==typeof(r=t)?r:zo)}function qo(e){return"[object Array]"===Object.prototype.toString.call(e)}function $o(e){if(wn(e)){for(let t in e)return!1;return!0}return!1}function Ho(e){return!!function(e){return"[object Undefined]"===Object.prototype.toString.call(e)}(e)||(!!function(e){return"[object Null]"===Object.prototype.toString.call(e)}(e)||(!!$o(e)||(!!function(e){return!(!vn(e)||""!==e)}(e)||(!!function(e){return!!qo(e)&&0===e.length}(e)||!!On(e)))))}function Wo(e){return"[object ArrayBuffer]"===Object.prototype.toString.call(e)}function Jo(e){return"[object Blob]"===Object.prototype.toString.call(e)}function Vo(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)}function Ko(e){return"[object Uint16Array]"===Object.prototype.toString.call(e)}function Xo(e){if(!(Wo(e)||Jo(e)||Vo(e)||Ko(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 Go=Ar(Object.getPrototypeOf,Object),Qo="[object Object]",Zo=Function.prototype,Yo=Object.prototype,ei=Zo.toString,ti=Yo.hasOwnProperty,ri=ei.call(Object);var ni="[object DOMException]",oi="[object Error]";function ii(e){if(!Rt(e))return!1;var t=xt(e);return t==oi||t==ni||"string"==typeof e.message&&"string"==typeof e.name&&!function(e){if(!Rt(e)||xt(e)!=Qo)return!1;var t=Go(e);if(null===t)return!0;var r=ti.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&ei.call(r)==ri}(e)}function si(e){if(!jn(e))return new Uint8Array;let t;try{t=function(e){if(!vn(e))return new Uint8Array;let t=so.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(!jn(e))return"";let t=oo.parse(e);return so.stringify(t)}(e))}catch(e){return new Uint8Array}return t}function ai(e,t){return function(e,t,r,n,o,i){if(!Sn(e))return null;if(!Vo(t))return null;if(!zn(r))return null;if(!Gn(n))return null;if(!zn(o))return null;if(!zn(i))return null;let s,a,c;e=Mn(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 ci(e){let t=[],r=[];if((!qo(n=e)||0===n.length||1===n.length&&Ho(n[0]))&&!Kn(e))return null;var n;let o=[],i=[];function s(e){o.push(Xo(e)),i.push(e)}try{let n=function(e){if(!wn(e))return{results:"",binarys:[]};if($o(e))return{results:"",binarys:[]};let t="",r=[];try{let n=-1;t=JSON.stringify(e,(function(e,t){if(Vo(t)){n+=1;let e=`[Uint8Array]::${n}`;return r.push(t),e}if(Ko(t)){n+=1;let e=`[Uint16Array]::${n}`;return r.push(t),e}if(Wo(t)){n+=1;let e=`[ArrayBuffer]::${n}`;return r.push(t),e}return ii(t)&&(t=t.toString()),t}))}catch(e){}return{results:t,binarys:r}}(e);s(si(n.results)),Io(n.binarys,(e=>{s(e)}));let a=o,c=si(JSON.stringify(a)),u=new Uint8Array(8);ai(Xo(c),u),t.push(u),t.push(c),Io(i,(e=>{t.push(e)})),Io(t,(e=>{r=function(e,t){let r=Xo(e),n=Xo(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 ui(e){return function(e,t,r,n,o){if(!Vo(e))return null;if(!zn(t))return null;if(!Gn(r))return null;if(!zn(n))return null;if(!zn(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 li={};!function(e,t){var r;e.exports=(r=no(),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 li},set exports(e){li=e}});var fi=li;function di(e){if(!Vo(e))return"";let t;try{t=ao(function(e){return Vo(e)?fi.create(e).toString(so):""}(e))}catch(e){return""}return t}function pi(e){let t=null;if(!Vo(e))return null;try{let r=8,n=e.slice(0,r),o=e.slice(r,Xo(e)),i=ui(n),s=o.slice(0,i),a=o.slice(i,Xo(o)),c=di(s),u=function(e,t){let r=0,n=0,o=[];return Io(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(!Kn(e))return{};let{results:t,binarys:r}=e;if(!jn(t))return{};if(!qo(r))return{};let n={};try{n=JSON.parse(t,(function(e,t){if(jn(t)){if(t.indexOf("[Uint8Array]::")>=0){let e=Wn(t.replace("[Uint8Array]::",""));return r[e]}if(t.indexOf("[Uint16Array]::")>=0){let e=Wn(t.replace("[Uint16Array]::",""));return r[e]}if(t.indexOf("[ArrayBuffer]::")>=0){let e=Wn(t.replace("[ArrayBuffer]::",""));return r[e]}}return t}))}catch(e){}return n}({results:di(u.shift()),binarys:u})}catch(e){}return t}function hi(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;Sn(e)||(e=10);let t=mn();return setTimeout((function(){t.resolve()}),e),t}const yi=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 gi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Jo(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=Or(t,"chunkSize");Sn(n)||(n=67108864),n=Mn(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(yi)).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=Or(e,"url");jn(t)||(t="http://localhost:8080");let r=Or(e,"apiName");jn(r)||(r="api");let n="";n="/"===function(e,t){if(!jn(e))return"";if(!Vn(t))return"";if(0===(t=Wn(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=Or(e,"getToken",null);En(o)||(o=()=>"");let i=Or(e,"tokenType");jn(i)||(i="Bearer");let s=Or(e,"sizeSlice");Jn(s)||(s=1048576);let a=Or(e,"timeout");Vn(a)||(a=3e5);let c=Or(e,"retryMain");Vn(c)||(c=3);let u=Or(e,"retryUpload");Vn(u)||(u=10);let l=Or(e,"retryDownload");Vn(l)||(l=2);let f=hn()?"browser":"nodejs",d=new bn,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=mn();return co(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=Or(r,"headers");wn(n)||(n={});let s=Or(r,"dataType","");"blob"!==s&&"fmd"!==s&&"json"!==s&&(s="blob");let c=Or(r,"cbProgress");En(c)||(c=()=>{});let u=Or(r,"retry");Vn(u)||(u=1);let l=h(e),d=mn(),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(!En(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();Qn(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;Jn(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;Jn(n)&&(t=100*r/n),c({prog:Math.floor(t),p:r,m:"download"})}},j=async()=>{let t=await pt(v);if("download"===e)return await(async e=>{let t=mn(),n=Or(e,"headers['return-type']",""),o=Or(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})(Or(e,"headers['content-disposition']",""));i=ao(i);let s=Or(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=Or(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=Or(t,"data"),o=pi(await y(n));return Kn(o)?An(o,"success")?Promise.resolve(o.success):An(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(!En(e))throw new Error("fn is not a function");return function(){let t=mn(),r=null,n=null;try{r=e.apply(this,arguments)}catch(e){n=e}return null!==n?t.resolve({state:"error",msg:n}):Qn(r)?r.then((e=>{t.resolve({state:"success",msg:e})})).catch((e=>{"cancelled"===Or(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 ${Zn(o/1e3,1)}(second) to retry...`),await hi(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=Or(e,"response.statusText")||Or(e,"message"),n=Or(e,"response.data")||Or(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})(ci(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 gi(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=>jn(e)?(o="error",void(i=e)):Kn(e)?An(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=Wn(n)}catch(e){}if(0===n)try{n=t.length,n=Wn(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"}),d.msg;if(d.bSls){let e=[];for(let r=0;r<pn(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=mn(),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=Or(r,"downloadByManager");if(Gn(n)||(n=!0),n){let t=o();Qn(t)&&(t=await t);let r={fileId:e},n=Or(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}}));
|
|
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");function f(e){return null!==e&&!l(e)&&null!==e.constructor&&!l(e.constructor)&&h(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const d=a("ArrayBuffer");const p=c("string"),h=c("function"),y=c("number"),g=e=>null!==e&&"object"==typeof e,b=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)},m=a("Date"),v=a("File"),w=a("Blob"),j=a("FileList"),O=a("URLSearchParams"),[S,A,E,_]=["ReadableStream","Request","Response","Headers"].map(a);function x(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{if(f(e))return;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){if(f(e))return null;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 T="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,U=e=>!l(e)&&e!==T;const P=(C="undefined"!=typeof Uint8Array&&r(Uint8Array),e=>C&&e instanceof C);var C;const B=a("HTMLFormElement"),N=(e=>{let{hasOwnProperty:t}=e;return(e,r)=>t.call(e,r)})(Object.prototype),k=a("RegExp"),F=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};x(r,((r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)})),Object.defineProperties(e,n)};const L=a("AsyncFunction"),D=(M="function"==typeof setImmediate,I=h(T.postMessage),M?setImmediate:I?(z=`axios@${Math.random()}`,$=[],T.addEventListener("message",(e=>{let{source:t,data:r}=e;t===T&&r===z&&$.length&&$.shift()()}),!1),e=>{$.push(e),T.postMessage(z,"*")}):e=>setTimeout(e));var M,I,z,$;const q="undefined"!=typeof queueMicrotask?queueMicrotask.bind(T):"undefined"!=typeof process&&process.nextTick||D;var H={isArray:u,isArrayBuffer:d,isBuffer:f,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||h(e.append)&&("formdata"===(t=i(e))||"object"===t&&h(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&d(e.buffer),t},isString:p,isNumber:y,isBoolean:e=>!0===e||!1===e,isObject:g,isPlainObject:b,isEmptyObject:e=>{if(!g(e)||f(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:S,isRequest:A,isResponse:E,isHeaders:_,isUndefined:l,isDate:m,isFile:v,isBlob:w,isRegExp:k,isFunction:h,isStream:e=>g(e)&&h(e.pipe),isURLSearchParams:O,isTypedArray:P,isFileList:j,forEach:x,merge:function e(){const{caseless:t,skipUndefined:r}=U(this)&&this||{},n={},o=(o,i)=>{const s=t&&R(n,i)||i;b(n[s])&&b(o)?n[s]=e(n[s],o):b(o)?n[s]=e({},o):u(o)?n[s]=o.slice():r&&l(o)||(n[s]=o)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&x(arguments[e],o);return n},extend:function(t,r,n){let{allOwnKeys:o}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return x(r,((r,o)=>{n&&h(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(!y(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:B,hasOwnProperty:N,hasOwnProp:N,reduceDescriptors:F,freezeMethods:e=>{F(e,((t,r)=>{if(h(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];h(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:T,isContextDefined:U,isSpecCompliantForm:function(e){return!!(e&&h(e.append)&&"FormData"===e[o]&&e[n])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(g(e)){if(t.indexOf(e)>=0)return;if(f(e))return e;if(!("toJSON"in e)){t[n]=e;const o=u(e)?[]:{};return x(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:L,isThenable:e=>e&&(g(e)||h(e))&&h(e.then)&&h(e.catch),setImmediate:D,asap:q,isIterable:e=>null!=e&&h(e[n])};function W(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)}H.inherits(W,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:H.toJSONObject(this.config),code:this.code,status:this.status}}});const J=W.prototype,V={};["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=>{V[e]={value:e}})),Object.defineProperties(W,V),Object.defineProperty(J,"isAxiosError",{value:!0}),W.from=(e,t,r,n,o,i)=>{const s=Object.create(J);H.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e));const a=e&&e.message?e.message:"Error",c=null==t&&e?e.code:t;return W.call(s,a,c,r,n,o),e&&null==s.cause&&Object.defineProperty(s,"cause",{value:e,configurable:!0}),s.name=e&&e.name||"Error",i&&Object.assign(s,i),s};function K(e){return H.isPlainObject(e)||H.isArray(e)}function X(e){return H.endsWith(e,"[]")?e.slice(0,-2):e}function G(e,t,r){return e?e.concat(t).map((function(e,t){return e=X(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const Q=H.toFlatObject(H,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Z(e,t,r){if(!H.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=H.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!H.isUndefined(t[e])}))).metaTokens,o=r.visitor||u,i=r.dots,s=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&H.isSpecCompliantForm(t);if(!H.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(H.isDate(e))return e.toISOString();if(H.isBoolean(e))return e.toString();if(!a&&H.isBlob(e))throw new W("Blob is not supported. Use a Buffer instead.");return H.isArrayBuffer(e)||H.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(H.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(H.isArray(e)&&function(e){return H.isArray(e)&&!e.some(K)}(e)||(H.isFileList(e)||H.endsWith(r,"[]"))&&(a=H.toArray(e)))return r=X(r),a.forEach((function(e,n){!H.isUndefined(e)&&null!==e&&t.append(!0===s?G([r],n,i):null===s?r:r+"[]",c(e))})),!1;return!!K(e)||(t.append(G(o,r,i),c(e)),!1)}const l=[],f=Object.assign(Q,{defaultVisitor:u,convertValue:c,isVisitable:K});if(!H.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!H.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),H.forEach(r,(function(r,i){!0===(!(H.isUndefined(r)||null===r)&&o.call(t,r,H.isString(i)?i.trim():i,n,f))&&e(r,n?n.concat(i):[i])})),l.pop()}}(e),t}function Y(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function ee(e,t){this._pairs=[],e&&Z(e,this,t)}const te=ee.prototype;function re(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ne(e,t,r){if(!t)return e;const n=r&&r.encode||re;H.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(i=o?o(t,r):H.isURLSearchParams(t)?t.toString():new ee(t,r).toString(n),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}te.append=function(e,t){this._pairs.push([e,t])},te.toString=function(e){const t=e?function(t){return e.call(this,t,Y)}:Y;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var oe=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){H.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ie={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},se={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ee,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const ae="undefined"!=typeof window&&"undefined"!=typeof document,ce="object"==typeof navigator&&navigator||void 0,ue=ae&&(!ce||["ReactNative","NativeScript","NS"].indexOf(ce.product)<0),le="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,fe=ae&&window.location.href||"http://localhost";var de={...Object.freeze({__proto__:null,hasBrowserEnv:ae,hasStandardBrowserEnv:ue,hasStandardBrowserWebWorkerEnv:le,navigator:ce,origin:fe}),...se};function pe(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&&H.isArray(n)?n.length:i,a)return H.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!s;n[i]&&H.isObject(n[i])||(n[i]=[]);return t(e,r,n[i],o)&&H.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(H.isFormData(e)&&H.isFunction(e.entries)){const r={};return H.forEachEntry(e,((e,n)=>{t(function(e){return H.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null}const he={transitional:ie,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=H.isObject(e);o&&H.isHTMLForm(e)&&(e=new FormData(e));if(H.isFormData(e))return n?JSON.stringify(pe(e)):e;if(H.isArrayBuffer(e)||H.isBuffer(e)||H.isStream(e)||H.isFile(e)||H.isBlob(e)||H.isReadableStream(e))return e;if(H.isArrayBufferView(e))return e.buffer;if(H.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 Z(e,new de.classes.URLSearchParams,{visitor:function(e,t,r,n){return de.isNode&&H.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=H.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Z(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e,t,r){if(H.isString(e))try{return(t||JSON.parse)(e),H.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||he.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(H.isResponse(e)||H.isReadableStream(e))return e;if(e&&H.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e,this.parseReviver)}catch(e){if(r){if("SyntaxError"===e.name)throw W.from(e,W.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:de.classes.FormData,Blob:de.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};H.forEach(["delete","get","head","post","put","patch"],(e=>{he.headers[e]={}}));var ye=he;const ge=H.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 be=Symbol("internals");function me(e){return e&&String(e).trim().toLowerCase()}function ve(e){return!1===e||null==e?e:H.isArray(e)?e.map(ve):String(e)}function we(e,t,r,n,o){return H.isFunction(n)?n.call(this,t,r):(o&&(t=r),H.isString(t)?H.isString(n)?-1!==t.indexOf(n):H.isRegExp(n)?n.test(t):void 0:void 0)}class je{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=me(t);if(!o)throw new Error("header name must be a non-empty string");const i=H.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=ve(e))}const i=(e,t)=>H.forEach(e,((e,r)=>o(e,r,t)));if(H.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(H.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]&&ge[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(H.isObject(e)&&H.isIterable(e)){let r,n,o={};for(const t of e){if(!H.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[n=t[0]]=(r=o[n])?H.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=me(e)){const r=H.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(H.isFunction(t))return t.call(this,e,r);if(H.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=me(e)){const r=H.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=me(e)){const o=H.findKey(r,e);!o||t&&!we(0,r[o],o,t)||(delete r[o],n=!0)}}return H.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 H.forEach(this,((n,o)=>{const i=H.findKey(r,o);if(i)return t[i]=ve(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]=ve(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 H.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&H.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[be]=this[be]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=me(e);t[n]||(!function(e,t){const r=H.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 H.isArray(e)?e.forEach(n):n(e),this}}je.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),H.reduceDescriptors(je.prototype,((e,t)=>{let{value:r}=e,n=t[0].toUpperCase()+t.slice(1);return{get:()=>r,set(e){this[n]=e}}})),H.freezeMethods(je);var Oe=je;function Se(e,t){const r=this||ye,n=t||r,o=Oe.from(n.headers);let i=n.data;return H.forEach(e,(function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Ae(e){return!(!e||!e.__CANCEL__)}function Ee(e,t,r){W.call(this,null==e?"canceled":e,W.ERR_CANCELED,t,r),this.name="CanceledError"}function _e(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new W("Request failed with status code "+r.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}H.inherits(Ee,W,{__CANCEL__:!0});const xe=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(...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]]},Te=e=>function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return H.asap((()=>e(...r)))};var Ue=de.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,de.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(de.origin),de.navigator&&/(msie|trident)/i.test(de.navigator.userAgent)):()=>!0,Pe=de.hasStandardBrowserEnv?{write(e,t,r,n,o,i,s){if("undefined"==typeof document)return;const a=[`${e}=${encodeURIComponent(t)}`];H.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),H.isString(n)&&a.push(`path=${n}`),H.isString(o)&&a.push(`domain=${o}`),!0===i&&a.push("secure"),H.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):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 Be=e=>e instanceof Oe?{...e}:e;function Ne(e,t){t=t||{};const r={};function n(e,t,r,n){return H.isPlainObject(e)&&H.isPlainObject(t)?H.merge.call({caseless:n},e,t):H.isPlainObject(t)?H.merge({},t):H.isArray(t)?t.slice():t}function o(e,t,r,o){return H.isUndefined(t)?H.isUndefined(e)?void 0:n(void 0,e,0,o):n(e,t,0,o)}function i(e,t){if(!H.isUndefined(t))return n(void 0,t)}function s(e,t){return H.isUndefined(t)?H.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(Be(e),Be(t),0,!0)};return H.forEach(Object.keys({...e,...t}),(function(n){const i=c[n]||o,s=i(e[n],t[n],n);H.isUndefined(s)&&i!==a||(r[n]=s)})),r}var ke=e=>{const t=Ne({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=t;if(t.headers=s=Oe.from(s),t.url=ne(Ce(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),H.isFormData(r))if(de.hasStandardBrowserEnv||de.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(H.isFunction(r.getHeaders)){const e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach((e=>{let[r,n]=e;t.includes(r.toLowerCase())&&s.set(r,n)}))}if(de.hasStandardBrowserEnv&&(n&&H.isFunction(n)&&(n=n(t)),n||!1!==n&&Ue(t.url))){const e=o&&i&&Pe.read(i);e&&s.set(o,e)}return t};var Fe="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){const n=ke(e);let o=n.data;const i=Oe.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=Oe.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders());_e((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 W("Request aborted",W.ECONNABORTED,e,y)),y=null)},y.onerror=function(t){const n=new W(t&&t.message?t.message:"Network Error",W.ERR_NETWORK,e,y);n.event=t||null,r(n),y=null},y.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||ie;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new W(t,o.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,e,y)),y=null},void 0===o&&i.setContentType(null),"setRequestHeader"in y&&H.forEach(i.toJSON(),(function(e,t){y.setRequestHeader(t,e)})),H.isUndefined(n.withCredentials)||(y.withCredentials=!!n.withCredentials),f&&"json"!==f&&(y.responseType=n.responseType),p&&([c,l]=xe(p,!0),y.addEventListener("progress",c)),d&&y.upload&&([a,u]=xe(d),y.upload.addEventListener("progress",a),y.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(s=t=>{y&&(r(!t||t.type?new Ee(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===de.protocols.indexOf(b)?r(new W("Unsupported protocol "+b+":",W.ERR_BAD_REQUEST,e)):y.send(o||null)}))};var Le=(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 W?t:new Ee(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new W(`timeout ${t} of ms exceeded`,W.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=()=>H.asap(s),a}};const De=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},Me=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()}},Ie=(e,t,r,n)=>{const o=async function*(e,t){for await(const r of Me(e))yield*De(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})},{isFunction:ze}=H,$e=(e=>{let{Request:t,Response:r}=e;return{Request:t,Response:r}})(H.global),{ReadableStream:qe,TextEncoder:He}=H.global,We=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}},Je=e=>{e=H.merge.call({skipUndefined:!0},$e,e);const{fetch:t,Request:r,Response:n}=e,o=t?ze(t):"function"==typeof fetch,i=ze(r),s=ze(n);if(!o)return!1;const a=o&&ze(qe),c=o&&("function"==typeof He?(u=new He,e=>u.encode(e)):async e=>new Uint8Array(await new r(e).arrayBuffer()));var u;const l=i&&a&&We((()=>{let e=!1;const t=new r(de.origin,{body:new qe,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),f=s&&a&&We((()=>H.isReadableStream(new n("").body))),d={stream:f&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!d[e]&&(d[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new W(`Response type '${e}' is not supported`,W.ERR_NOT_SUPPORT,r)})}));const p=async(e,t)=>{const n=H.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(H.isBlob(e))return e.size;if(H.isSpecCompliantForm(e)){const t=new r(de.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return H.isArrayBufferView(e)||H.isArrayBuffer(e)?e.byteLength:(H.isURLSearchParams(e)&&(e+=""),H.isString(e)?(await c(e)).byteLength:void 0)})(t):n};return async e=>{let{url:o,method:s,data:a,signal:c,cancelToken:u,timeout:h,onDownloadProgress:y,onUploadProgress:g,responseType:b,headers:m,withCredentials:v="same-origin",fetchOptions:w}=ke(e),j=t||fetch;b=b?(b+"").toLowerCase():"text";let O=Le([c,u&&u.toAbortSignal()],h),S=null;const A=O&&O.unsubscribe&&(()=>{O.unsubscribe()});let E;try{if(g&&l&&"get"!==s&&"head"!==s&&0!==(E=await p(m,a))){let e,t=new r(o,{method:"POST",body:a,duplex:"half"});if(H.isFormData(a)&&(e=t.headers.get("content-type"))&&m.setContentType(e),t.body){const[e,r]=Re(E,xe(Te(g)));a=Ie(t.body,65536,e,r)}}H.isString(v)||(v=v?"include":"omit");const t=i&&"credentials"in r.prototype,c={...w,signal:O,method:s.toUpperCase(),headers:m.normalize().toJSON(),body:a,duplex:"half",credentials:t?v:void 0};S=i&&new r(o,c);let u=await(i?j(S,w):j(o,c));const h=f&&("stream"===b||"response"===b);if(f&&(y||h&&A)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=u[t]}));const t=H.toFiniteNumber(u.headers.get("content-length")),[r,o]=y&&Re(t,xe(Te(y),!0))||[];u=new n(Ie(u.body,65536,r,(()=>{o&&o(),A&&A()})),e)}b=b||"text";let _=await d[H.findKey(d,b)||"text"](u,e);return!h&&A&&A(),await new Promise(((t,r)=>{_e(t,r,{data:_,headers:Oe.from(u.headers),status:u.status,statusText:u.statusText,config:e,request:S})}))}catch(t){if(A&&A(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new W("Network Error",W.ERR_NETWORK,e,S),{cause:t.cause||t});throw W.from(t,t&&t.code,e,S)}}},Ve=new Map,Ke=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:o}=t,i=[n,o,r];let s,a,c=i.length,u=Ve;for(;c--;)s=i[c],a=u.get(s),void 0===a&&u.set(s,a=c?new Map:Je(t)),u=a;return a};Ke();const Xe={http:null,xhr:Fe,fetch:{get:Ke}};H.forEach(Xe,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Ge=e=>`- ${e}`,Qe=e=>H.isFunction(e)||null===e||!1===e;var Ze={getAdapter:function(e,t){e=H.isArray(e)?e:[e];const{length:r}=e;let n,o;const i={};for(let s=0;s<r;s++){let r;if(n=e[s],o=n,!Qe(n)&&(o=Xe[(r=String(n)).toLowerCase()],void 0===o))throw new W(`Unknown adapter '${r}'`);if(o&&(H.isFunction(o)||(o=o.get(t))))break;i[r||"#"+s]=o}if(!o){const e=Object.entries(i).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 W("There is no suitable adapter to dispatch the request "+(r?e.length>1?"since :\n"+e.map(Ge).join("\n"):" "+Ge(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return o},adapters:Xe};function Ye(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ee(null,e)}function et(e){Ye(e),e.headers=Oe.from(e.headers),e.data=Se.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Ze.getAdapter(e.adapter||ye.adapter,e)(e).then((function(t){return Ye(e),t.data=Se.call(e,e.transformResponse,t),t.headers=Oe.from(t.headers),t}),(function(t){return Ae(t)||(Ye(e),t&&t.response&&(t.response.data=Se.call(e,e.transformResponse,t.response),t.response.headers=Oe.from(t.response.headers))),Promise.reject(t)}))}const tt="1.13.2",rt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{rt[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const nt={};rt.transitional=function(e,t,r){function n(e,t){return"[Axios v"+tt+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new W(n(o," has been removed"+(t?" in "+t:"")),W.ERR_DEPRECATED);return t&&!nt[o]&&(nt[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)}},rt.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};var ot={assertOptions:function(e,t,r){if("object"!=typeof e)throw new W("options must be an object",W.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 W("option "+i+" must be "+r,W.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new W("Unknown option "+i,W.ERR_BAD_OPTION)}},validators:rt};const it=ot.validators;class st{constructor(e){this.defaults=e||{},this.interceptors={request:new oe,response:new oe}}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=Ne(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&ot.assertOptions(r,{silentJSONParsing:it.transitional(it.boolean),forcedJSONParsing:it.transitional(it.boolean),clarifyTimeoutError:it.transitional(it.boolean)},!1),null!=n&&(H.isFunction(n)?t.paramsSerializer={serialize:n}:ot.assertOptions(n,{encode:it.function,serialize:it.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),ot.assertOptions(t,{baseUrl:it.spelling("baseURL"),withXsrfToken:it.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&H.merge(o.common,o[t.method]);o&&H.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Oe.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=[et.bind(this),void 0];for(e.unshift(...s),e.push(...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<l;){const e=s[f++],t=s[f++];try{d=e(d)}catch(e){t.call(this,e);break}}try{u=et.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 ne(Ce((e=Ne(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}H.forEach(["delete","get","head","options"],(function(e){st.prototype[e]=function(t,r){return this.request(Ne(r||{},{method:e,url:t,data:(r||{}).data}))}})),H.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(Ne(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}st.prototype[e]=t(),st.prototype[e+"Form"]=t(!0)}));var at=st;class ct{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 Ee(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 ct((function(t){e=t})),cancel:e}}}var ut=ct;const lt={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(lt).forEach((e=>{let[t,r]=e;lt[r]=t}));var ft=lt;const dt=function t(r){const n=new at(r),o=e(at.prototype.request,n);return H.extend(o,at.prototype,n,{allOwnKeys:!0}),H.extend(o,n,null,{allOwnKeys:!0}),o.create=function(e){return t(Ne(r,e))},o}(ye);dt.Axios=at,dt.CanceledError=Ee,dt.CancelToken=ut,dt.isCancel=Ae,dt.VERSION=tt,dt.toFormData=Z,dt.AxiosError=W,dt.Cancel=dt.CanceledError,dt.all=function(e){return Promise.all(e)},dt.spread=function(e){return function(t){return e.apply(null,t)}},dt.isAxiosError=function(e){return H.isObject(e)&&!0===e.isAxiosError},dt.mergeConfig=Ne,dt.AxiosHeaders=Oe,dt.formToJSON=e=>pe(H.isHTMLForm(e)?new FormData(e):e),dt.getAdapter=Ze.getAdapter,dt.HttpStatusCode=ft,dt.default=dt;var pt=dt,ht=Array.isArray,yt="object"==typeof global&&global&&global.Object===Object&&global,gt="object"==typeof self&&self&&self.Object===Object&&self,bt=yt||gt||Function("return this")(),mt=bt.Symbol,vt=Object.prototype,wt=vt.hasOwnProperty,jt=vt.toString,Ot=mt?mt.toStringTag:void 0;var St=Object.prototype.toString;var At="[object Null]",Et="[object Undefined]",_t=mt?mt.toStringTag:void 0;function xt(e){return null==e?void 0===e?Et:At:_t&&_t in Object(e)?function(e){var t=wt.call(e,Ot),r=e[Ot];try{e[Ot]=void 0;var n=!0}catch(e){}var o=jt.call(e);return n&&(t?e[Ot]=r:delete e[Ot]),o}(e):function(e){return St.call(e)}(e)}function Rt(e){return null!=e&&"object"==typeof e}var Tt="[object Symbol]";function Ut(e){return"symbol"==typeof e||Rt(e)&&xt(e)==Tt}var Pt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ct=/^\w*$/;function Bt(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var Nt="[object AsyncFunction]",kt="[object Function]",Ft="[object GeneratorFunction]",Lt="[object Proxy]";function Dt(e){if(!Bt(e))return!1;var t=xt(e);return t==kt||t==Ft||t==Nt||t==Lt}var Mt,It=bt["__core-js_shared__"],zt=(Mt=/[^.]+$/.exec(It&&It.keys&&It.keys.IE_PROTO||""))?"Symbol(src)_1."+Mt:"";var $t=Function.prototype.toString;function qt(e){if(null!=e){try{return $t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var Ht=/^\[object .+?Constructor\]$/,Wt=Function.prototype,Jt=Object.prototype,Vt=Wt.toString,Kt=Jt.hasOwnProperty,Xt=RegExp("^"+Vt.call(Kt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Gt(e){return!(!Bt(e)||(t=e,zt&&zt in t))&&(Dt(e)?Xt:Ht).test(qt(e));var t}function Qt(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return Gt(r)?r:void 0}var Zt=Qt(Object,"create");var Yt=Object.prototype.hasOwnProperty;var er=Object.prototype.hasOwnProperty;function tr(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 rr(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}tr.prototype.clear=function(){this.__data__=Zt?Zt(null):{},this.size=0},tr.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},tr.prototype.get=function(e){var t=this.__data__;if(Zt){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return Yt.call(t,e)?t[e]:void 0},tr.prototype.has=function(e){var t=this.__data__;return Zt?void 0!==t[e]:er.call(t,e)},tr.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Zt&&void 0===t?"__lodash_hash_undefined__":t,this};var nr=Array.prototype.splice;function or(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])}}or.prototype.clear=function(){this.__data__=[],this.size=0},or.prototype.delete=function(e){var t=this.__data__,r=rr(t,e);return!(r<0)&&(r==t.length-1?t.pop():nr.call(t,r,1),--this.size,!0)},or.prototype.get=function(e){var t=this.__data__,r=rr(t,e);return r<0?void 0:t[r][1]},or.prototype.has=function(e){return rr(this.__data__,e)>-1},or.prototype.set=function(e,t){var r=this.__data__,n=rr(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var ir=Qt(bt,"Map");function sr(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 ar(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])}}ar.prototype.clear=function(){this.size=0,this.__data__={hash:new tr,map:new(ir||or),string:new tr}},ar.prototype.delete=function(e){var t=sr(this,e).delete(e);return this.size-=t?1:0,t},ar.prototype.get=function(e){return sr(this,e).get(e)},ar.prototype.has=function(e){return sr(this,e).has(e)},ar.prototype.set=function(e,t){var r=sr(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};var cr="Expected a function";function ur(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(cr);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(ur.Cache||ar),r}ur.Cache=ar;var lr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,fr=/\\(\\)?/g,dr=function(e){var t=ur(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(lr,(function(e,r,n,o){t.push(n?o.replace(fr,"$1"):r||e)})),t})),pr=dr;var hr=1/0,yr=mt?mt.prototype:void 0,gr=yr?yr.toString:void 0;function br(e){if("string"==typeof e)return e;if(ht(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,br)+"";if(Ut(e))return gr?gr.call(e):"";var t=e+"";return"0"==t&&1/e==-hr?"-0":t}function mr(e){return null==e?"":br(e)}function vr(e,t){return ht(e)?e:function(e,t){if(ht(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!Ut(e))||Ct.test(e)||!Pt.test(e)||null!=t&&e in Object(t)}(e,t)?[e]:pr(mr(e))}var wr=1/0;function jr(e){if("string"==typeof e||Ut(e))return e;var t=e+"";return"0"==t&&1/e==-wr?"-0":t}function Or(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[jr(t[r++])];return r&&r==n?e:void 0}(e,t);return void 0===n?r:n}var Sr=Object.prototype;function Ar(e,t){return function(r){return e(t(r))}}var Er=Ar(Object.keys,Object),_r=Object.prototype.hasOwnProperty;function xr(e){if(r=(t=e)&&t.constructor,t!==("function"==typeof r&&r.prototype||Sr))return Er(e);var t,r,n=[];for(var o in Object(e))_r.call(e,o)&&"constructor"!=o&&n.push(o);return n}var Rr=Qt(bt,"DataView"),Tr=Qt(bt,"Promise"),Ur=Qt(bt,"Set"),Pr=Qt(bt,"WeakMap"),Cr="[object Map]",Br="[object Promise]",Nr="[object Set]",kr="[object WeakMap]",Fr="[object DataView]",Lr=qt(Rr),Dr=qt(ir),Mr=qt(Tr),Ir=qt(Ur),zr=qt(Pr),$r=xt;(Rr&&$r(new Rr(new ArrayBuffer(1)))!=Fr||ir&&$r(new ir)!=Cr||Tr&&$r(Tr.resolve())!=Br||Ur&&$r(new Ur)!=Nr||Pr&&$r(new Pr)!=kr)&&($r=function(e){var t=xt(e),r="[object Object]"==t?e.constructor:void 0,n=r?qt(r):"";if(n)switch(n){case Lr:return Fr;case Dr:return Cr;case Mr:return Br;case Ir:return Nr;case zr:return kr}return t});var qr=$r,Hr=9007199254740991;function Wr(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Hr}function Jr(e){return null!=e&&Wr(e.length)&&!Dt(e)}var Vr="[object String]";var Kr,Xr=(Kr="length",function(e){return null==e?void 0:e[Kr]}),Gr=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var Qr="\\ud800-\\udfff",Zr="["+Qr+"]",Yr="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",en="\\ud83c[\\udffb-\\udfff]",tn="[^"+Qr+"]",rn="(?:\\ud83c[\\udde6-\\uddff]){2}",nn="[\\ud800-\\udbff][\\udc00-\\udfff]",on="(?:"+Yr+"|"+en+")"+"?",sn="[\\ufe0e\\ufe0f]?",an=sn+on+("(?:\\u200d(?:"+[tn,rn,nn].join("|")+")"+sn+on+")*"),cn="(?:"+[tn+Yr+"?",Yr,rn,nn,Zr].join("|")+")",un=RegExp(en+"(?="+en+")|"+cn+an,"g");function ln(e){return function(e){return Gr.test(e)}(e)?function(e){for(var t=un.lastIndex=0;un.test(e);)++t;return t}(e):Xr(e)}var fn="[object Map]",dn="[object Set]";function pn(e){if(null==e)return 0;if(Jr(e))return"string"==typeof(t=e)||!ht(t)&&Rt(t)&&xt(t)==Vr?ln(e):e.length;var t,r=qr(e);return r==fn||r==dn?e.size:xr(e).length}function hn(){return"undefined"!=typeof window&&void 0!==window.document}var yn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},gn={};!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 gn},set exports(e){gn=e}});var bn=gn;function mn(){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 wn(e){return"[object String]"===Object.prototype.toString.call(e)}function jn(e){return!(!wn(e)||""===e)}function On(e){return e!=e}function Sn(e){let t=!1;if(jn(e))t=!isNaN(Number(e));else if(function(e){return"[object Number]"===Object.prototype.toString.call(e)}(e)){if(On(e))return!1;t=!0}return t}function An(e,t){return!!vn(e)&&(!(!jn(t)&&!Sn(t))&&t in e)}function En(e){let t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t}var _n=/\s/;var xn=/^\s+/;function Rn(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&_n.test(e.charAt(t)););return t}(e)+1).replace(xn,""):e}var Tn=NaN,Un=/^[-+]0x[0-9a-f]+$/i,Pn=/^0b[01]+$/i,Cn=/^0o[0-7]+$/i,Bn=parseInt;function Nn(e){if("number"==typeof e)return e;if(Ut(e))return Tn;if(Bt(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Bt(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Rn(e);var r=Pn.test(e);return r||Cn.test(e)?Bn(e.slice(2),r?2:8):Un.test(e)?Tn:+e}var kn=1/0,Fn=17976931348623157e292;function Ln(e){return e?(e=Nn(e))===kn||e===-kn?(e<0?-1:1)*Fn:e==e?e:0:0===e?e:0}function Dn(e){var t=Ln(e),r=t%1;return t==t?r?t-r:t:0}function Mn(e){if(!Sn(e))return 0;return Ln(e)}function In(e){return!!Sn(e)&&(e=Mn(e),"number"==typeof(t=e)&&t==Dn(t));var t}var zn=bt.isFinite,$n=Math.min;var qn,Hn=(qn=Math["round"],function(e,t){if(e=Nn(e),(t=null==t?0:$n(Dn(t),292))&&zn(e)){var r=(mr(e)+"e").split("e");return+((r=(mr(qn(r[0]+"e"+(+r[1]+t)))+"e").split("e"))[0]+"e"+(+r[1]-t))}return qn(e)});function Wn(e){if(!Sn(e))return 0;e=Mn(e);let t=Hn(e);return"0"===String(t)?0:t}function Jn(e){if(!In(e))return!1;return Wn(e)>0}function Vn(e){if(!In(e))return!1;return Wn(e)>=0}function Kn(e){if(vn(e)){for(let t in e)return!0;return!1}return!1}var Xn="[object Boolean]";function Gn(e){return!0===(t=e)||!1===t||Rt(t)&&xt(t)==Xn;var t}function Qn(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 Zn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Sn(e)&&Vn(t)?(e=Mn(e),Hn(e,t).toFixed(t)):""}var Yn={};var eo,to={},ro={get exports(){return to},set exports(e){to=e}};function no(){return eo||(eo=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!==yn&&yn.crypto&&(r=yn.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)}(ro)),to}!function(e,t){e.exports=no().enc.Utf8}({get exports(){return Yn},set exports(e){Yn=e}});var oo=Yn,io={};!function(e,t){var r;e.exports=(r=no(),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 io},set exports(e){io=e}});var so=io;function ao(e){if(!jn(e))return"";return so.parse(e).toString(oo)}function co(e){if(!hn())return Promise.reject("no window");try{return function(e){return e.arrayBuffer()}(e)}catch(t){return function(e){let t=mn(),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 uo(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}var lo,fo=function(e,t,r){for(var n=-1,o=Object(e),i=r(e),s=i.length;s--;){var a=i[lo?s:++n];if(!1===t(o[a],a,o))break}return e},po=fo;function ho(e){return Rt(e)&&"[object Arguments]"==xt(e)}var yo=Object.prototype,go=yo.hasOwnProperty,bo=yo.propertyIsEnumerable,mo=ho(function(){return arguments}())?ho:function(e){return Rt(e)&&go.call(e,"callee")&&!bo.call(e,"callee")},vo=mo;var wo="object"==typeof exports&&exports&&!exports.nodeType&&exports,jo=wo&&"object"==typeof module&&module&&!module.nodeType&&module,Oo=jo&&jo.exports===wo?bt.Buffer:void 0,So=(Oo?Oo.isBuffer:void 0)||function(){return!1},Ao=9007199254740991,Eo=/^(?:0|[1-9]\d*)$/;function _o(e,t){var r=typeof e;return!!(t=null==t?Ao:t)&&("number"==r||"symbol"!=r&&Eo.test(e))&&e>-1&&e%1==0&&e<t}var xo={};xo["[object Float32Array]"]=xo["[object Float64Array]"]=xo["[object Int8Array]"]=xo["[object Int16Array]"]=xo["[object Int32Array]"]=xo["[object Uint8Array]"]=xo["[object Uint8ClampedArray]"]=xo["[object Uint16Array]"]=xo["[object Uint32Array]"]=!0,xo["[object Arguments]"]=xo["[object Array]"]=xo["[object ArrayBuffer]"]=xo["[object Boolean]"]=xo["[object DataView]"]=xo["[object Date]"]=xo["[object Error]"]=xo["[object Function]"]=xo["[object Map]"]=xo["[object Number]"]=xo["[object Object]"]=xo["[object RegExp]"]=xo["[object Set]"]=xo["[object String]"]=xo["[object WeakMap]"]=!1;var Ro="object"==typeof exports&&exports&&!exports.nodeType&&exports,To=Ro&&"object"==typeof module&&module&&!module.nodeType&&module,Uo=To&&To.exports===Ro&&yt.process,Po=function(){try{var e=To&&To.require&&To.require("util").types;return e||Uo&&Uo.binding&&Uo.binding("util")}catch(e){}}(),Co=Po&&Po.isTypedArray,Bo=Co?function(e){return function(t){return e(t)}}(Co):function(e){return Rt(e)&&Wr(e.length)&&!!xo[xt(e)]},No=Bo,ko=Object.prototype.hasOwnProperty;function Fo(e,t){var r=ht(e),n=!r&&vo(e),o=!r&&!n&&So(e),i=!r&&!n&&!o&&No(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&&!ko.call(e,u)||s&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||_o(u,c))||a.push(u);return a}function Lo(e){return Jr(e)?Fo(e):xr(e)}var Do=function(e,t){return function(r,n){if(null==r)return r;if(!Jr(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&&po(e,t,Lo)})),Mo=Do;function Io(e){return e}function zo(e,t){var r;return(ht(e)?uo:Mo)(e,"function"==typeof(r=t)?r:Io)}function $o(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 Ho(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!(!wn(e)||""!==e)}(e)||(!!function(e){return!!$o(e)&&0===e.length}(e)||!!On(e)))))}function Wo(e){return"[object ArrayBuffer]"===Object.prototype.toString.call(e)}function Jo(e){return"[object Blob]"===Object.prototype.toString.call(e)}function Vo(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)}function Ko(e){return"[object Uint16Array]"===Object.prototype.toString.call(e)}function Xo(e){if(!(Wo(e)||Jo(e)||Vo(e)||Ko(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 Go=Ar(Object.getPrototypeOf,Object),Qo="[object Object]",Zo=Function.prototype,Yo=Object.prototype,ei=Zo.toString,ti=Yo.hasOwnProperty,ri=ei.call(Object);var ni="[object DOMException]",oi="[object Error]";function ii(e){if(!Rt(e))return!1;var t=xt(e);return t==oi||t==ni||"string"==typeof e.message&&"string"==typeof e.name&&!function(e){if(!Rt(e)||xt(e)!=Qo)return!1;var t=Go(e);if(null===t)return!0;var r=ti.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&ei.call(r)==ri}(e)}function si(e){if(!jn(e))return new Uint8Array;let t;try{t=function(e){if(!wn(e))return new Uint8Array;let t=so.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(!jn(e))return"";let t=oo.parse(e);return so.stringify(t)}(e))}catch(e){return new Uint8Array}return t}function ai(e,t){return function(e,t,r,n,o,i){if(!Sn(e))return null;if(!Vo(t))return null;if(!In(r))return null;if(!Gn(n))return null;if(!In(o))return null;if(!In(i))return null;let s,a,c;e=Mn(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 ci(e){let t=[],r=[];if((!$o(n=e)||0===n.length||1===n.length&&Ho(n[0]))&&!Kn(e))return null;var n;let o=[],i=[];function s(e){o.push(Xo(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(Vo(t)){n+=1;let e=`[Uint8Array]::${n}`;return r.push(t),e}if(Ko(t)){n+=1;let e=`[Uint16Array]::${n}`;return r.push(t),e}if(Wo(t)){n+=1;let e=`[ArrayBuffer]::${n}`;return r.push(t),e}return ii(t)&&(t=t.toString()),t}))}catch(e){}return{results:t,binarys:r}}(e);s(si(n.results)),zo(n.binarys,(e=>{s(e)}));let a=o,c=si(JSON.stringify(a)),u=new Uint8Array(8);ai(Xo(c),u),t.push(u),t.push(c),zo(i,(e=>{t.push(e)})),zo(t,(e=>{r=function(e,t){let r=Xo(e),n=Xo(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 ui(e){return function(e,t,r,n,o){if(!Vo(e))return null;if(!In(t))return null;if(!Gn(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 li={};!function(e,t){var r;e.exports=(r=no(),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 li},set exports(e){li=e}});var fi=li;function di(e){if(!Vo(e))return"";let t;try{t=ao(function(e){return Vo(e)?fi.create(e).toString(so):""}(e))}catch(e){return""}return t}function pi(e){let t=null;if(!Vo(e))return null;try{let r=8,n=e.slice(0,r),o=e.slice(r,Xo(e)),i=ui(n),s=o.slice(0,i),a=o.slice(i,Xo(o)),c=di(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(!Kn(e))return{};let{results:t,binarys:r}=e;if(!jn(t))return{};if(!$o(r))return{};let n={};try{n=JSON.parse(t,(function(e,t){if(jn(t)){if(t.indexOf("[Uint8Array]::")>=0){let e=Wn(t.replace("[Uint8Array]::",""));return r[e]}if(t.indexOf("[Uint16Array]::")>=0){let e=Wn(t.replace("[Uint16Array]::",""));return r[e]}if(t.indexOf("[ArrayBuffer]::")>=0){let e=Wn(t.replace("[ArrayBuffer]::",""));return r[e]}}return t}))}catch(e){}return n}({results:di(u.shift()),binarys:u})}catch(e){}return t}function hi(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;Sn(e)||(e=10);let t=mn();return setTimeout((function(){t.resolve()}),e),t}const yi=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 gi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Jo(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=Or(t,"chunkSize");Sn(n)||(n=67108864),n=Mn(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 v(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 w(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:v,h32ToString:function(e){return v(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:w,h64ToString:function(e){return w(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(yi)).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=Or(e,"url");jn(t)||(t="http://localhost:8080");let r=Or(e,"apiName");jn(r)||(r="api");let n="";n="/"===function(e,t){if(!jn(e))return"";if(!Vn(t))return"";if(0===(t=Wn(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=Or(e,"getToken",null);En(o)||(o=()=>"");let i=Or(e,"tokenType");jn(i)||(i="Bearer");let s=Or(e,"sizeSlice");Jn(s)||(s=1048576);let a=Or(e,"timeout");Vn(a)||(a=3e5);let c=Or(e,"retryMain");Vn(c)||(c=3);let u=Or(e,"retryUpload");Vn(u)||(u=10);let l=Or(e,"retryDownload");Vn(l)||(l=2);let f=hn()?"browser":"nodejs",d=new bn,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=mn();return co(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=Or(r,"headers");vn(n)||(n={});let s=Or(r,"dataType","");"blob"!==s&&"fmd"!==s&&"json"!==s&&(s="blob");let c=Or(r,"cbProgress");En(c)||(c=()=>{});let u=Or(r,"retry");Vn(u)||(u=1);let l=h(e),d=mn(),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(!En(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 v=o();Qn(v)&&(v=await v);let w={method:"POST",url:l,data:g,headers:{Authorization:`${i} ${v}`,...b,...n},timeout:a,maxContentLength:1/0,maxBodyLength:1/0,responseType:m,onUploadProgress:function(e){let t=0,r=e.loaded,n=e.total;Jn(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;Jn(n)&&(t=100*r/n),c({prog:Math.floor(t),p:r,m:"download"})}},j=async()=>{let t=await pt(w);if("download"===e)return await(async e=>{let t=mn(),n=Or(e,"headers['return-type']",""),o=Or(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})(Or(e,"headers['content-disposition']",""));i=ao(i);let s=Or(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=Or(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=Or(t,"data"),o=pi(await y(n));return Kn(o)?An(o,"success")?Promise.resolve(o.success):An(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(!En(e))throw new Error("fn is not a function");return function(){let t=mn(),r=null,n=null;try{r=e.apply(this,arguments)}catch(e){n=e}return null!==n?t.resolve({state:"error",msg:n}):Qn(r)?r.then((e=>{t.resolve({state:"success",msg:e})})).catch((e=>{"cancelled"===Or(e,"reason")?t.resolve({state:"cancelled",msg:""}):t.resolve({state:"error",msg:e})})):t.resolve({state:"success",msg:r}),t}}(j),t=await e(w),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 ${Zn(o/1e3,1)}(second) to retry...`),await hi(o),console.log(`retry n=${n}...`),t=await e(w)}return"success"===t.state?t.msg:Promise.reject(t.msg)})().then((e=>{d.resolve(e)})).catch((async e=>{let t=null,r=Or(e,"response.statusText")||Or(e,"message"),n=Or(e,"response.data")||Or(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})(ci(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 gi(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=>jn(e)?(o="error",void(i=e)):Kn(e)?An(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=Wn(n)}catch(e){}if(0===n)try{n=t.length,n=Wn(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"}),d.msg;if(d.bSls){let e=[];for(let r=0;r<pn(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=mn(),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=Or(r,"downloadByManager");if(Gn(n)||(n=!0),n){let t=o();Qn(t)&&(t=await t);let r={fileId:e},n=Or(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
|