w-converhp 2.0.45 → 2.0.47

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 CHANGED
@@ -221,7 +221,7 @@ downloadLargeFile()
221
221
 
222
222
  [Necessary] Add script for w-converhp-client.
223
223
  ```alias
224
- <script src="https://cdn.jsdelivr.net/npm/w-converhp@2.0.45/dist/w-converhp-client.umd.js"></script>
224
+ <script src="https://cdn.jsdelivr.net/npm/w-converhp@2.0.47/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.45
2
+ * w-converhp-client v2.0.47
3
3
  * (c) 2018-2021 yuda-lyu(semisphere)
4
4
  * Released under the MIT License.
5
5
  */
6
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self)["w-converhp-client"]=e()}(this,(function(){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(e){var r=function(e,r){if("object"!==t(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!==t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"===t(r)?r:String(r)}function r(t,r,n){return(r=e(r))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}function n(t,e){return function(){return t.apply(e,arguments)}}const{toString:o}=Object.prototype,{getPrototypeOf:i}=Object,s=(a=Object.create(null),t=>{const e=o.call(t);return a[e]||(a[e]=e.slice(8,-1).toLowerCase())});var a;const c=t=>(t=t.toLowerCase(),e=>s(e)===t),u=t=>e=>typeof e===t,{isArray:l}=Array,f=u("undefined");const p=c("ArrayBuffer");const d=u("string"),h=u("function"),y=u("number"),b=t=>null!==t&&"object"==typeof t,g=t=>{if("object"!==s(t))return!1;const e=i(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},m=c("Date"),v=c("File"),w=c("Blob"),O=c("FileList"),j=c("URLSearchParams"),[S,A,E,_]=["ReadableStream","Request","Response","Headers"].map(c);function R(t,e){let r,n,{allOwnKeys:o=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!=t)if("object"!=typeof t&&(t=[t]),l(t))for(r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else{const n=o?Object.getOwnPropertyNames(t):Object.keys(t),i=n.length;let s;for(r=0;r<i;r++)s=n[r],e.call(null,t[s],s,t)}}function x(t,e){e=e.toLowerCase();const r=Object.keys(t);let n,o=r.length;for(;o-- >0;)if(n=r[o],e===n.toLowerCase())return n;return null}const T="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,P=t=>!f(t)&&t!==T;const U=(C="undefined"!=typeof Uint8Array&&i(Uint8Array),t=>C&&t instanceof C);var C;const N=c("HTMLFormElement"),B=(t=>{let{hasOwnProperty:e}=t;return(t,r)=>e.call(t,r)})(Object.prototype),k=c("RegExp"),F=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};R(r,((r,o)=>{let i;!1!==(i=e(r,o,t))&&(n[o]=i||r)})),Object.defineProperties(t,n)};const L=c("AsyncFunction"),D=(M="function"==typeof setImmediate,z=h(T.postMessage),M?setImmediate:z?(I=`axios@${Math.random()}`,q=[],T.addEventListener("message",(t=>{let{source:e,data:r}=t;e===T&&r===I&&q.length&&q.shift()()}),!1),t=>{q.push(t),T.postMessage(I,"*")}):t=>setTimeout(t));var M,z,I,q;const $="undefined"!=typeof queueMicrotask?queueMicrotask.bind(T):"undefined"!=typeof process&&process.nextTick||D;var H={isArray:l,isArrayBuffer:p,isBuffer:function(t){return null!==t&&!f(t)&&null!==t.constructor&&!f(t.constructor)&&h(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||h(t.append)&&("formdata"===(e=s(t))||"object"===e&&h(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&p(t.buffer),e},isString:d,isNumber:y,isBoolean:t=>!0===t||!1===t,isObject:b,isPlainObject:g,isReadableStream:S,isRequest:A,isResponse:E,isHeaders:_,isUndefined:f,isDate:m,isFile:v,isBlob:w,isRegExp:k,isFunction:h,isStream:t=>b(t)&&h(t.pipe),isURLSearchParams:j,isTypedArray:U,isFileList:O,forEach:R,merge:function t(){const{caseless:e}=P(this)&&this||{},r={},n=(n,o)=>{const i=e&&x(r,o)||o;g(r[i])&&g(n)?r[i]=t(r[i],n):g(n)?r[i]=t({},n):l(n)?r[i]=n.slice():r[i]=n};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&R(arguments[t],n);return r},extend:function(t,e,r){let{allOwnKeys:o}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return R(e,((e,o)=>{r&&h(e)?t[o]=n(e,r):t[o]=e}),{allOwnKeys:o}),t},trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},toFlatObject:(t,e,r,n)=>{let o,s,a;const c={};if(e=e||{},null==t)return e;do{for(o=Object.getOwnPropertyNames(t),s=o.length;s-- >0;)a=o[s],n&&!n(a,t,e)||c[a]||(e[a]=t[a],c[a]=!0);t=!1!==r&&i(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},kindOf:s,kindOfTest:c,endsWith:(t,e,r)=>{t=String(t),(void 0===r||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return-1!==n&&n===r},toArray:t=>{if(!t)return null;if(l(t))return t;let e=t.length;if(!y(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},forEachEntry:(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let n;for(;(n=r.next())&&!n.done;){const r=n.value;e.call(t,r[0],r[1])}},matchAll:(t,e)=>{let r;const n=[];for(;null!==(r=t.exec(e));)n.push(r);return n},isHTMLForm:N,hasOwnProperty:B,hasOwnProp:B,reduceDescriptors:F,freezeMethods:t=>{F(t,((e,r)=>{if(h(t)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=t[r];h(n)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(t,e)=>{const r={},n=t=>{t.forEach((t=>{r[t]=!0}))};return l(t)?n(t):n(String(t).split(e)),r},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,r){return e.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,findKey:x,global:T,isContextDefined:P,isSpecCompliantForm:function(t){return!!(t&&h(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),r=(t,n)=>{if(b(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[n]=t;const o=l(t)?[]:{};return R(t,((t,e)=>{const i=r(t,n+1);!f(i)&&(o[e]=i)})),e[n]=void 0,o}}return t};return r(t,0)},isAsyncFn:L,isThenable:t=>t&&(b(t)||h(t))&&h(t.then)&&h(t.catch),setImmediate:D,asap:$};function J(t,e,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}H.inherits(J,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 W=J.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((t=>{V[t]={value:t}})),Object.defineProperties(J,V),Object.defineProperty(W,"isAxiosError",{value:!0}),J.from=(t,e,r,n,o,i)=>{const s=Object.create(W);return H.toFlatObject(t,s,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),J.call(s,t.message,e,r,n,o),s.cause=t,s.name=t.name,i&&Object.assign(s,i),s};function K(t){return H.isPlainObject(t)||H.isArray(t)}function X(t){return H.endsWith(t,"[]")?t.slice(0,-2):t}function G(t,e,r){return t?t.concat(e).map((function(t,e){return t=X(t),!r&&e?"["+t+"]":t})).join(r?".":""):e}const Q=H.toFlatObject(H,{},null,(function(t){return/^is[A-Z]/.test(t)}));function Z(t,e,r){if(!H.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const n=(r=H.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!H.isUndefined(e[t])}))).metaTokens,o=r.visitor||u,i=r.dots,s=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&H.isSpecCompliantForm(e);if(!H.isFunction(o))throw new TypeError("visitor must be a function");function c(t){if(null===t)return"";if(H.isDate(t))return t.toISOString();if(!a&&H.isBlob(t))throw new J("Blob is not supported. Use a Buffer instead.");return H.isArrayBuffer(t)||H.isTypedArray(t)?a&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function u(t,r,o){let a=t;if(t&&!o&&"object"==typeof t)if(H.endsWith(r,"{}"))r=n?r:r.slice(0,-2),t=JSON.stringify(t);else if(H.isArray(t)&&function(t){return H.isArray(t)&&!t.some(K)}(t)||(H.isFileList(t)||H.endsWith(r,"[]"))&&(a=H.toArray(t)))return r=X(r),a.forEach((function(t,n){!H.isUndefined(t)&&null!==t&&e.append(!0===s?G([r],n,i):null===s?r:r+"[]",c(t))})),!1;return!!K(t)||(e.append(G(o,r,i),c(t)),!1)}const l=[],f=Object.assign(Q,{defaultVisitor:u,convertValue:c,isVisitable:K});if(!H.isObject(t))throw new TypeError("data must be an object");return function t(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(e,r,H.isString(i)?i.trim():i,n,f))&&t(r,n?n.concat(i):[i])})),l.pop()}}(t),e}function Y(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function tt(t,e){this._pairs=[],t&&Z(t,this,e)}const et=tt.prototype;function rt(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function nt(t,e,r){if(!e)return t;const n=r&&r.encode||rt;H.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(i=o?o(e,r):H.isURLSearchParams(e)?e.toString():new tt(e,r).toString(n),i){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}et.append=function(t,e){this._pairs.push([t,e])},et.toString=function(t){const e=t?function(e){return t.call(this,e,Y)}:Y;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};var ot=class{constructor(){this.handlers=[]}use(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){H.forEach(this.handlers,(function(e){null!==e&&t(e)}))}},it={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},st={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:tt,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const at="undefined"!=typeof window&&"undefined"!=typeof document,ct="object"==typeof navigator&&navigator||void 0,ut=at&&(!ct||["ReactNative","NativeScript","NS"].indexOf(ct.product)<0),lt="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ft=at&&window.location.href||"http://localhost";function pt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function dt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?pt(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var ht=dt(dt({},Object.freeze({__proto__:null,hasBrowserEnv:at,hasStandardBrowserEnv:ut,hasStandardBrowserWebWorkerEnv:lt,navigator:ct,origin:ft})),st);function yt(t){function e(t,r,n,o){let i=t[o++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),a=o>=t.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 e(t,r,n[i],o)&&H.isArray(n[i])&&(n[i]=function(t){const e={},r=Object.keys(t);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],e[i]=t[i];return e}(n[i])),!s}if(H.isFormData(t)&&H.isFunction(t.entries)){const r={};return H.forEachEntry(t,((t,n)=>{e(function(t){return H.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),n,r,0)})),r}return null}const bt={transitional:it,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const r=e.getContentType()||"",n=r.indexOf("application/json")>-1,o=H.isObject(t);o&&H.isHTMLForm(t)&&(t=new FormData(t));if(H.isFormData(t))return n?JSON.stringify(yt(t)):t;if(H.isArrayBuffer(t)||H.isBuffer(t)||H.isStream(t)||H.isFile(t)||H.isBlob(t)||H.isReadableStream(t))return t;if(H.isArrayBufferView(t))return t.buffer;if(H.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return Z(t,new ht.classes.URLSearchParams,Object.assign({visitor:function(t,e,r,n){return ht.isNode&&H.isBuffer(t)?(this.append(e,t.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((i=H.isFileList(t))||r.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return Z(i?{"files[]":t}:t,e&&new e,this.formSerializer)}}return o||n?(e.setContentType("application/json",!1),function(t,e,r){if(H.isString(t))try{return(e||JSON.parse)(t),H.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(r||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||bt.transitional,r=e&&e.forcedJSONParsing,n="json"===this.responseType;if(H.isResponse(t)||H.isReadableStream(t))return t;if(t&&H.isString(t)&&(r&&!this.responseType||n)){const r=!(e&&e.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(t){if(r){if("SyntaxError"===t.name)throw J.from(t,J.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ht.classes.FormData,Blob:ht.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};H.forEach(["delete","get","head","post","put","patch"],(t=>{bt.headers[t]={}}));var gt=bt;const mt=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 vt=Symbol("internals");function wt(t){return t&&String(t).trim().toLowerCase()}function Ot(t){return!1===t||null==t?t:H.isArray(t)?t.map(Ot):String(t)}function jt(t,e,r,n,o){return H.isFunction(n)?n.call(this,e,r):(o&&(e=r),H.isString(e)?H.isString(n)?-1!==e.indexOf(n):H.isRegExp(n)?n.test(e):void 0:void 0)}class St{constructor(t){t&&this.set(t)}set(t,e,r){const n=this;function o(t,e,r){const o=wt(e);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||e]=Ot(t))}const i=(t,e)=>H.forEach(t,((t,r)=>o(t,r,e)));if(H.isPlainObject(t)||t instanceof this.constructor)i(t,e);else if(H.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()))i((t=>{const e={};let r,n,o;return t&&t.split("\n").forEach((function(t){o=t.indexOf(":"),r=t.substring(0,o).trim().toLowerCase(),n=t.substring(o+1).trim(),!r||e[r]&&mt[r]||("set-cookie"===r?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)})),e})(t),e);else if(H.isHeaders(t))for(const[e,n]of t.entries())o(n,e,r);else null!=t&&o(e,t,r);return this}get(t,e){if(t=wt(t)){const r=H.findKey(this,t);if(r){const t=this[r];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}(t);if(H.isFunction(e))return e.call(this,t,r);if(H.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=wt(t)){const r=H.findKey(this,t);return!(!r||void 0===this[r]||e&&!jt(0,this[r],r,e))}return!1}delete(t,e){const r=this;let n=!1;function o(t){if(t=wt(t)){const o=H.findKey(r,t);!o||e&&!jt(0,r[o],o,e)||(delete r[o],n=!0)}}return H.isArray(t)?t.forEach(o):o(t),n}clear(t){const e=Object.keys(this);let r=e.length,n=!1;for(;r--;){const o=e[r];t&&!jt(0,this[o],o,t,!0)||(delete this[o],n=!0)}return n}normalize(t){const e=this,r={};return H.forEach(this,((n,o)=>{const i=H.findKey(r,o);if(i)return e[i]=Ot(n),void delete e[o];const s=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,r)=>e.toUpperCase()+r))}(o):String(o).trim();s!==o&&delete e[o],e[s]=Ot(n),r[s]=!0})),this}concat(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.constructor.concat(this,...e)}toJSON(t){const e=Object.create(null);return H.forEach(this,((r,n)=>{null!=r&&!1!==r&&(e[n]=t&&H.isArray(r)?r.join(", "):r)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((t=>{let[e,r]=t;return e+": "+r})).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t){const e=new this(t);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((t=>e.set(t))),e}static accessor(t){const e=(this[vt]=this[vt]={accessors:{}}).accessors,r=this.prototype;function n(t){const n=wt(t);e[n]||(!function(t,e){const r=H.toCamelCase(" "+e);["get","set","has"].forEach((n=>{Object.defineProperty(t,n+r,{value:function(t,r,o){return this[n].call(this,e,t,r,o)},configurable:!0})}))}(r,t),e[n]=!0)}return H.isArray(t)?t.forEach(n):n(t),this}}St.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),H.reduceDescriptors(St.prototype,((t,e)=>{let{value:r}=t,n=e[0].toUpperCase()+e.slice(1);return{get:()=>r,set(t){this[n]=t}}})),H.freezeMethods(St);var At=St;function Et(t,e){const r=this||gt,n=e||r,o=At.from(n.headers);let i=n.data;return H.forEach(t,(function(t){i=t.call(r,i,o.normalize(),e?e.status:void 0)})),o.normalize(),i}function _t(t){return!(!t||!t.__CANCEL__)}function Rt(t,e,r){J.call(this,null==t?"canceled":t,J.ERR_CANCELED,e,r),this.name="CanceledError"}function xt(t,e,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?e(new J("Request failed with status code "+r.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):t(r)}H.inherits(Rt,J,{__CANCEL__:!0});const Tt=function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,n=0;const o=function(t,e){t=t||10;const r=new Array(t),n=new Array(t);let o,i=0,s=0;return e=void 0!==e?e: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%=t;if(i=(i+1)%t,i===s&&(s=(s+1)%t),c-o<e)return;const p=u&&c-u;return p?Math.round(1e3*f/p):void 0}}(50,250);return function(t,e){let r,n,o=0,i=1e3/e;const s=function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();o=i,r=null,n&&(clearTimeout(n),n=null),t.apply(null,e)};return[function(){const t=Date.now(),e=t-o;for(var a=arguments.length,c=new Array(a),u=0;u<a;u++)c[u]=arguments[u];e>=i?s(c,t):(r=c,n||(n=setTimeout((()=>{n=null,s(r)}),i-e)))},()=>r&&s(r)]}((r=>{const i=r.loaded,s=r.lengthComputable?r.total:void 0,a=i-n,c=o(a);n=i;t({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,[e?"download":"upload"]:!0})}),r)},Pt=(t,e)=>{const r=null!=t;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},Ut=t=>function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return H.asap((()=>t(...r)))};var Ct=ht.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,ht.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(ht.origin),ht.navigator&&/(msie|trident)/i.test(ht.navigator.userAgent)):()=>!0,Nt=ht.hasStandardBrowserEnv?{write(t,e,r,n,o,i){const s=[t+"="+encodeURIComponent(e)];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(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Bt(t,e,r){let n=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);return t&&(n||0==r)?function(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}function kt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}const Ft=t=>t instanceof At?function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?kt(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):kt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t):t;function Lt(t,e){e=e||{};const r={};function n(t,e,r,n){return H.isPlainObject(t)&&H.isPlainObject(e)?H.merge.call({caseless:n},t,e):H.isPlainObject(e)?H.merge({},e):H.isArray(e)?e.slice():e}function o(t,e,r,o){return H.isUndefined(e)?H.isUndefined(t)?void 0:n(void 0,t,0,o):n(t,e,0,o)}function i(t,e){if(!H.isUndefined(e))return n(void 0,e)}function s(t,e){return H.isUndefined(e)?H.isUndefined(t)?void 0:n(void 0,t):n(void 0,e)}function a(r,o,i){return i in e?n(r,o):i in t?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:(t,e,r)=>o(Ft(t),Ft(e),0,!0)};return H.forEach(Object.keys(Object.assign({},t,e)),(function(n){const i=c[n]||o,s=i(t[n],e[n],n);H.isUndefined(s)&&i!==a||(r[n]=s)})),r}var Dt=t=>{const e=Lt({},t);let r,{data:n,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:s,headers:a,auth:c}=e;if(e.headers=a=At.from(a),e.url=nt(Bt(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),H.isFormData(n))if(ht.hasStandardBrowserEnv||ht.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(r=a.getContentType())){const[t,...e]=r?r.split(";").map((t=>t.trim())).filter(Boolean):[];a.setContentType([t||"multipart/form-data",...e].join("; "))}if(ht.hasStandardBrowserEnv&&(o&&H.isFunction(o)&&(o=o(e)),o||!1!==o&&Ct(e.url))){const t=i&&s&&Nt.read(s);t&&a.set(i,t)}return e};var Mt="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,r){const n=Dt(t);let o=n.data;const i=At.from(n.headers).normalize();let s,a,c,u,l,{responseType:f,onUploadProgress:p,onDownloadProgress:d}=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 b(){if(!y)return;const n=At.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders());xt((function(t){e(t),h()}),(function(t){r(t),h()}),{data:f&&"text"!==f&&"json"!==f?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:n,config:t,request:y}),y=null}y.open(n.method.toUpperCase(),n.url,!0),y.timeout=n.timeout,"onloadend"in y?y.onloadend=b:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(b)},y.onabort=function(){y&&(r(new J("Request aborted",J.ECONNABORTED,t,y)),y=null)},y.onerror=function(){r(new J("Network Error",J.ERR_NETWORK,t,y)),y=null},y.ontimeout=function(){let e=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||it;n.timeoutErrorMessage&&(e=n.timeoutErrorMessage),r(new J(e,o.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,t,y)),y=null},void 0===o&&i.setContentType(null),"setRequestHeader"in y&&H.forEach(i.toJSON(),(function(t,e){y.setRequestHeader(e,t)})),H.isUndefined(n.withCredentials)||(y.withCredentials=!!n.withCredentials),f&&"json"!==f&&(y.responseType=n.responseType),d&&([c,l]=Tt(d,!0),y.addEventListener("progress",c)),p&&y.upload&&([a,u]=Tt(p),y.upload.addEventListener("progress",a),y.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(s=e=>{y&&(r(!e||e.type?new Rt(null,t,y):e),y.abort(),y=null)},n.cancelToken&&n.cancelToken.subscribe(s),n.signal&&(n.signal.aborted?s():n.signal.addEventListener("abort",s)));const g=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(n.url);g&&-1===ht.protocols.indexOf(g)?r(new J("Unsupported protocol "+g+":",J.ERR_BAD_REQUEST,t)):y.send(o||null)}))};var zt=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||r){let r,n=new AbortController;const o=function(t){if(!r){r=!0,s();const e=t instanceof Error?t:this.reason;n.abort(e instanceof J?e:new Rt(e instanceof Error?e.message:e))}};let i=e&&setTimeout((()=>{i=null,o(new J(`timeout ${e} of ms exceeded`,J.ETIMEDOUT))}),e);const s=()=>{t&&(i&&clearTimeout(i),i=null,t.forEach((t=>{t.unsubscribe?t.unsubscribe(o):t.removeEventListener("abort",o)})),t=null)};t.forEach((t=>t.addEventListener("abort",o)));const{signal:a}=n;return a.unsubscribe=()=>H.asap(s),a}};const It=function*(t,e){let r=t.byteLength;if(!e||r<e)return void(yield t);let n,o=0;for(;o<r;)n=o+e,yield t.slice(o,n),o=n},qt=async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);const e=t.getReader();try{for(;;){const{done:t,value:r}=await e.read();if(t)break;yield r}}finally{await e.cancel()}},$t=(t,e,r,n)=>{const o=async function*(t,e){for await(const r of qt(t))yield*It(r,e)}(t,e);let i,s=0,a=t=>{i||(i=!0,n&&n(t))};return new ReadableStream({async pull(t){try{const{done:e,value:n}=await o.next();if(e)return a(),void t.close();let i=n.byteLength;if(r){let t=s+=i;r(t)}t.enqueue(new Uint8Array(n))}catch(t){throw a(t),t}},cancel:t=>(a(t),o.return())},{highWaterMark:2})};function Ht(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Jt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ht(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ht(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}const Wt="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Vt=Wt&&"function"==typeof ReadableStream,Kt=Wt&&("function"==typeof TextEncoder?(Xt=new TextEncoder,t=>Xt.encode(t)):async t=>new Uint8Array(await new Response(t).arrayBuffer()));var Xt;const Gt=function(t){try{for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return!!t(...r)}catch(t){return!1}},Qt=Vt&&Gt((()=>{let t=!1;const e=new Request(ht.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e})),Zt=Vt&&Gt((()=>H.isReadableStream(new Response("").body))),Yt={stream:Zt&&(t=>t.body)};var te;Wt&&(te=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!Yt[t]&&(Yt[t]=H.isFunction(te[t])?e=>e[t]():(e,r)=>{throw new J(`Response type '${t}' is not supported`,J.ERR_NOT_SUPPORT,r)})})));const ee=async(t,e)=>{const r=H.toFiniteNumber(t.getContentLength());return null==r?(async t=>{if(null==t)return 0;if(H.isBlob(t))return t.size;if(H.isSpecCompliantForm(t)){const e=new Request(ht.origin,{method:"POST",body:t});return(await e.arrayBuffer()).byteLength}return H.isArrayBufferView(t)||H.isArrayBuffer(t)?t.byteLength:(H.isURLSearchParams(t)&&(t+=""),H.isString(t)?(await Kt(t)).byteLength:void 0)})(e):r};const re={http:null,xhr:Mt,fetch:Wt&&(async t=>{let{url:e,method:r,data:n,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:l,withCredentials:f="same-origin",fetchOptions:p}=Dt(t);u=u?(u+"").toLowerCase():"text";let d,h=zt([o,i&&i.toAbortSignal()],s);const y=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let b;try{if(c&&Qt&&"get"!==r&&"head"!==r&&0!==(b=await ee(l,n))){let t,r=new Request(e,{method:"POST",body:n,duplex:"half"});if(H.isFormData(n)&&(t=r.headers.get("content-type"))&&l.setContentType(t),r.body){const[t,e]=Pt(b,Tt(Ut(c)));n=$t(r.body,65536,t,e)}}H.isString(f)||(f=f?"include":"omit");const o="credentials"in Request.prototype;d=new Request(e,Jt(Jt({},p),{},{signal:h,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:n,duplex:"half",credentials:o?f:void 0}));let i=await fetch(d);const s=Zt&&("stream"===u||"response"===u);if(Zt&&(a||s&&y)){const t={};["status","statusText","headers"].forEach((e=>{t[e]=i[e]}));const e=H.toFiniteNumber(i.headers.get("content-length")),[r,n]=a&&Pt(e,Tt(Ut(a),!0))||[];i=new Response($t(i.body,65536,r,(()=>{n&&n(),y&&y()})),t)}u=u||"text";let g=await Yt[H.findKey(Yt,u)||"text"](i,t);return!s&&y&&y(),await new Promise(((e,r)=>{xt(e,r,{data:g,headers:At.from(i.headers),status:i.status,statusText:i.statusText,config:t,request:d})}))}catch(e){if(y&&y(),e&&"TypeError"===e.name&&/fetch/i.test(e.message))throw Object.assign(new J("Network Error",J.ERR_NETWORK,t,d),{cause:e.cause||e});throw J.from(e,e&&e.code,t,d)}})};H.forEach(re,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));const ne=t=>`- ${t}`,oe=t=>H.isFunction(t)||null===t||!1===t;var ie={getAdapter:t=>{t=H.isArray(t)?t:[t];const{length:e}=t;let r,n;const o={};for(let i=0;i<e;i++){let e;if(r=t[i],n=r,!oe(r)&&(n=re[(e=String(r)).toLowerCase()],void 0===n))throw new J(`Unknown adapter '${e}'`);if(n)break;o[e||"#"+i]=n}if(!n){const t=Object.entries(o).map((t=>{let[e,r]=t;return`adapter ${e} `+(!1===r?"is not supported by the environment":"is not available in the build")}));throw new J("There is no suitable adapter to dispatch the request "+(e?t.length>1?"since :\n"+t.map(ne).join("\n"):" "+ne(t[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n},adapters:re};function se(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Rt(null,t)}function ae(t){se(t),t.headers=At.from(t.headers),t.data=Et.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);return ie.getAdapter(t.adapter||gt.adapter)(t).then((function(e){return se(t),e.data=Et.call(t,t.transformResponse,e),e.headers=At.from(e.headers),e}),(function(e){return _t(e)||(se(t),e&&e.response&&(e.response.data=Et.call(t,t.transformResponse,e.response),e.response.headers=At.from(e.response.headers))),Promise.reject(e)}))}const ce="1.8.4",ue={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{ue[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));const le={};ue.transitional=function(t,e,r){function n(t,e){return"[Axios v1.8.4] Transitional option '"+t+"'"+e+(r?". "+r:"")}return(r,o,i)=>{if(!1===t)throw new J(n(o," has been removed"+(e?" in "+e:"")),J.ERR_DEPRECATED);return e&&!le[o]&&(le[o]=!0,console.warn(n(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,o,i)}},ue.spelling=function(t){return(e,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};var fe={assertOptions:function(t,e,r){if("object"!=typeof t)throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let o=n.length;for(;o-- >0;){const i=n[o],s=e[i];if(s){const e=t[i],r=void 0===e||s(e,i,t);if(!0!==r)throw new J("option "+i+" must be "+r,J.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new J("Unknown option "+i,J.ERR_BAD_OPTION)}},validators:ue};const pe=fe.validators;class de{constructor(t){this.defaults=t,this.interceptors={request:new ot,response:new ot}}async request(t,e){try{return await this._request(t,e)}catch(t){if(t instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const r=e.stack?e.stack.replace(/^.+\n/,""):"";try{t.stack?r&&!String(t.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+r):t.stack=r}catch(t){}}throw t}}_request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=Lt(this.defaults,e);const{transitional:r,paramsSerializer:n,headers:o}=e;void 0!==r&&fe.assertOptions(r,{silentJSONParsing:pe.transitional(pe.boolean),forcedJSONParsing:pe.transitional(pe.boolean),clarifyTimeoutError:pe.transitional(pe.boolean)},!1),null!=n&&(H.isFunction(n)?e.paramsSerializer={serialize:n}:fe.assertOptions(n,{encode:pe.function,serialize:pe.function},!0)),void 0!==e.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),fe.assertOptions(e,{baseUrl:pe.spelling("baseURL"),withXsrfToken:pe.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let i=o&&H.merge(o.common,o[e.method]);o&&H.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete o[t]})),e.headers=At.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(a=a&&t.synchronous,s.unshift(t.fulfilled,t.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(t){c.push(t.fulfilled,t.rejected)}));let l,f=0;if(!a){const t=[ae.bind(this),void 0];for(t.unshift.apply(t,s),t.push.apply(t,c),l=t.length,u=Promise.resolve(e);f<l;)u=u.then(t[f++],t[f++]);return u}l=s.length;let p=e;for(f=0;f<l;){const t=s[f++],e=s[f++];try{p=t(p)}catch(t){e.call(this,t);break}}try{u=ae.call(this,p)}catch(t){return Promise.reject(t)}for(f=0,l=c.length;f<l;)u=u.then(c[f++],c[f++]);return u}getUri(t){return nt(Bt((t=Lt(this.defaults,t)).baseURL,t.url,t.allowAbsoluteUrls),t.params,t.paramsSerializer)}}H.forEach(["delete","get","head","options"],(function(t){de.prototype[t]=function(e,r){return this.request(Lt(r||{},{method:t,url:e,data:(r||{}).data}))}})),H.forEach(["post","put","patch"],(function(t){function e(e){return function(r,n,o){return this.request(Lt(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}de.prototype[t]=e(),de.prototype[t+"Form"]=e(!0)}));var he=de;class ye{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const r=this;this.promise.then((t=>{if(!r._listeners)return;let e=r._listeners.length;for(;e-- >0;)r._listeners[e](t);r._listeners=null})),this.promise.then=t=>{let e;const n=new Promise((t=>{r.subscribe(t),e=t})).then(t);return n.cancel=function(){r.unsubscribe(e)},n},t((function(t,n,o){r.reason||(r.reason=new Rt(t,n,o),e(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=e=>{t.abort(e)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new ye((function(e){t=e})),cancel:t}}}var be=ye;const ge={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(ge).forEach((t=>{let[e,r]=t;ge[r]=e}));var me=ge;const ve=function t(e){const r=new he(e),o=n(he.prototype.request,r);return H.extend(o,he.prototype,r,{allOwnKeys:!0}),H.extend(o,r,null,{allOwnKeys:!0}),o.create=function(r){return t(Lt(e,r))},o}(gt);ve.Axios=he,ve.CanceledError=Rt,ve.CancelToken=be,ve.isCancel=_t,ve.VERSION=ce,ve.toFormData=Z,ve.AxiosError=J,ve.Cancel=ve.CanceledError,ve.all=function(t){return Promise.all(t)},ve.spread=function(t){return function(e){return t.apply(null,e)}},ve.isAxiosError=function(t){return H.isObject(t)&&!0===t.isAxiosError},ve.mergeConfig=Lt,ve.AxiosHeaders=At,ve.formToJSON=t=>yt(H.isHTMLForm(t)?new FormData(t):t),ve.getAdapter=ie.getAdapter,ve.HttpStatusCode=me,ve.default=ve;var we=ve,Oe=Array.isArray,je="object"==typeof global&&global&&global.Object===Object&&global,Se="object"==typeof self&&self&&self.Object===Object&&self,Ae=je||Se||Function("return this")(),Ee=Ae.Symbol,_e=Object.prototype,Re=_e.hasOwnProperty,xe=_e.toString,Te=Ee?Ee.toStringTag:void 0;var Pe=Object.prototype.toString;var Ue="[object Null]",Ce="[object Undefined]",Ne=Ee?Ee.toStringTag:void 0;function Be(t){return null==t?void 0===t?Ce:Ue:Ne&&Ne in Object(t)?function(t){var e=Re.call(t,Te),r=t[Te];try{t[Te]=void 0;var n=!0}catch(t){}var o=xe.call(t);return n&&(e?t[Te]=r:delete t[Te]),o}(t):function(t){return Pe.call(t)}(t)}function ke(t){return null!=t&&"object"==typeof t}var Fe="[object Symbol]";function Le(t){return"symbol"==typeof t||ke(t)&&Be(t)==Fe}var De=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Me=/^\w*$/;function ze(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var Ie="[object AsyncFunction]",qe="[object Function]",$e="[object GeneratorFunction]",He="[object Proxy]";function Je(t){if(!ze(t))return!1;var e=Be(t);return e==qe||e==$e||e==Ie||e==He}var We,Ve=Ae["__core-js_shared__"],Ke=(We=/[^.]+$/.exec(Ve&&Ve.keys&&Ve.keys.IE_PROTO||""))?"Symbol(src)_1."+We:"";var Xe=Function.prototype.toString;var Ge=/^\[object .+?Constructor\]$/,Qe=Function.prototype,Ze=Object.prototype,Ye=Qe.toString,tr=Ze.hasOwnProperty,er=RegExp("^"+Ye.call(tr).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function rr(t){return!(!ze(t)||(e=t,Ke&&Ke in e))&&(Je(t)?er:Ge).test(function(t){if(null!=t){try{return Xe.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t));var e}function nr(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return rr(r)?r:void 0}var or=nr(Object,"create");var ir=Object.prototype.hasOwnProperty;var sr=Object.prototype.hasOwnProperty;function ar(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function cr(t,e){for(var r,n,o=t.length;o--;)if((r=t[o][0])===(n=e)||r!=r&&n!=n)return o;return-1}ar.prototype.clear=function(){this.__data__=or?or(null):{},this.size=0},ar.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},ar.prototype.get=function(t){var e=this.__data__;if(or){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return ir.call(e,t)?e[t]:void 0},ar.prototype.has=function(t){var e=this.__data__;return or?void 0!==e[t]:sr.call(e,t)},ar.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=or&&void 0===e?"__lodash_hash_undefined__":e,this};var ur=Array.prototype.splice;function lr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}lr.prototype.clear=function(){this.__data__=[],this.size=0},lr.prototype.delete=function(t){var e=this.__data__,r=cr(e,t);return!(r<0)&&(r==e.length-1?e.pop():ur.call(e,r,1),--this.size,!0)},lr.prototype.get=function(t){var e=this.__data__,r=cr(e,t);return r<0?void 0:e[r][1]},lr.prototype.has=function(t){return cr(this.__data__,t)>-1},lr.prototype.set=function(t,e){var r=this.__data__,n=cr(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};var fr=nr(Ae,"Map");function pr(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function dr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}dr.prototype.clear=function(){this.size=0,this.__data__={hash:new ar,map:new(fr||lr),string:new ar}},dr.prototype.delete=function(t){var e=pr(this,t).delete(t);return this.size-=e?1:0,e},dr.prototype.get=function(t){return pr(this,t).get(t)},dr.prototype.has=function(t){return pr(this,t).has(t)},dr.prototype.set=function(t,e){var r=pr(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};var hr="Expected a function";function yr(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(hr);var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var s=t.apply(this,n);return r.cache=i.set(o,s)||i,s};return r.cache=new(yr.Cache||dr),r}yr.Cache=dr;var br=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gr=/\\(\\)?/g,mr=function(t){var e=yr(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(br,(function(t,r,n,o){e.push(n?o.replace(gr,"$1"):r||t)})),e})),vr=mr;var wr=1/0,Or=Ee?Ee.prototype:void 0,jr=Or?Or.toString:void 0;function Sr(t){if("string"==typeof t)return t;if(Oe(t))return function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}(t,Sr)+"";if(Le(t))return jr?jr.call(t):"";var e=t+"";return"0"==e&&1/t==-wr?"-0":e}function Ar(t){return null==t?"":Sr(t)}function Er(t,e){return Oe(t)?t:function(t,e){if(Oe(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!Le(t))||Me.test(t)||!De.test(t)||null!=e&&t in Object(e)}(t,e)?[t]:vr(Ar(t))}var _r=1/0;function Rr(t){if("string"==typeof t||Le(t))return t;var e=t+"";return"0"==e&&1/t==-_r?"-0":e}function xr(t,e,r){var n=null==t?void 0:function(t,e){for(var r=0,n=(e=Er(e,t)).length;null!=t&&r<n;)t=t[Rr(e[r++])];return r&&r==n?t:void 0}(t,e);return void 0===n?r:n}function Tr(){return"undefined"!=typeof window&&void 0!==window.document}var Pr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Ur={};!function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}function o(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function i(t,e,n,i,s){if("function"!=typeof n)throw new TypeError("The listener must be a function");var a=new o(n,i||t,s),c=r?r+e:e;return t._events[c]?t._events[c].fn?t._events[c]=[t._events[c],a]:t._events[c].push(a):(t._events[c]=a,t._eventsCount++),t}function s(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}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 t,n,o=[];if(0===this._eventsCount)return o;for(n in t=this._events)e.call(t,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},a.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];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(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},a.prototype.emit=function(t,e,n,o,i,s){var a=r?r+t:t;if(!this._events[a])return!1;var c,u,l=this._events[a],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,n),!0;case 4:return l.fn.call(l.context,e,n,o),!0;case 5:return l.fn.call(l.context,e,n,o,i),!0;case 6:return l.fn.call(l.context,e,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 p,d=l.length;for(u=0;u<d;u++)switch(l[u].once&&this.removeListener(t,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,e);break;case 3:l[u].fn.call(l[u].context,e,n);break;case 4:l[u].fn.call(l[u].context,e,n,o);break;default:if(!c)for(p=1,c=new Array(f-1);p<f;p++)c[p-1]=arguments[p];l[u].fn.apply(l[u].context,c)}}return!0},a.prototype.on=function(t,e,r){return i(this,t,e,r,!1)},a.prototype.once=function(t,e,r){return i(this,t,e,r,!0)},a.prototype.removeListener=function(t,e,n,o){var i=r?r+t:t;if(!this._events[i])return this;if(!e)return s(this,i),this;var a=this._events[i];if(a.fn)a.fn!==e||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!==e||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(t){var e;return t?(e=r?r+t:t,this._events[e]&&s(this,e)):(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,t.exports=a}({get exports(){return Ur},set exports(t){Ur=t}});var Cr=Ur;function Nr(){let t,e,r=new Promise((function(){t=arguments[0],e=arguments[1]}));return r.resolve=t,r.reject=e,r}function Br(t){return"[object Object]"===Object.prototype.toString.call(t)}function kr(t){return"[object String]"===Object.prototype.toString.call(t)}function Fr(t){return!(!kr(t)||""===t)}function Lr(t){return t!=t}function Dr(t){let e=!1;if(Fr(t))e=!isNaN(Number(t));else if(function(t){return"[object Number]"===Object.prototype.toString.call(t)}(t)){if(Lr(t))return!1;e=!0}return e}function Mr(t,e){return!!Br(t)&&(!(!Fr(e)&&!Dr(e))&&e in t)}function zr(t){let e=Object.prototype.toString.call(t);return"[object Function]"===e||"[object AsyncFunction]"===e}var Ir=/\s/;var qr=/^\s+/;function $r(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&Ir.test(t.charAt(e)););return e}(t)+1).replace(qr,""):t}var Hr=NaN,Jr=/^[-+]0x[0-9a-f]+$/i,Wr=/^0b[01]+$/i,Vr=/^0o[0-7]+$/i,Kr=parseInt;function Xr(t){if("number"==typeof t)return t;if(Le(t))return Hr;if(ze(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=ze(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=$r(t);var r=Wr.test(t);return r||Vr.test(t)?Kr(t.slice(2),r?2:8):Jr.test(t)?Hr:+t}var Gr=1/0,Qr=17976931348623157e292;function Zr(t){return t?(t=Xr(t))===Gr||t===-Gr?(t<0?-1:1)*Qr:t==t?t:0:0===t?t:0}function Yr(t){var e=Zr(t),r=e%1;return e==e?r?e-r:e:0}function tn(t){if(!Dr(t))return 0;return Zr(t)}function en(t){return!!Dr(t)&&(t=tn(t),"number"==typeof(e=t)&&e==Yr(e));var e}var rn=Ae.isFinite,nn=Math.min;var on,sn=(on=Math["round"],function(t,e){if(t=Xr(t),(e=null==e?0:nn(Yr(e),292))&&rn(t)){var r=(Ar(t)+"e").split("e");return+((r=(Ar(on(r[0]+"e"+(+r[1]+e)))+"e").split("e"))[0]+"e"+(+r[1]-e))}return on(t)});function an(t){if(!Dr(t))return 0;t=tn(t);let e=sn(t);return"0"===String(e)?0:e}function cn(t){if(!en(t))return!1;return an(t)>0}function un(t){if(!en(t))return!1;return an(t)>=0}function ln(t){if(Br(t)){for(let e in t)return!0;return!1}return!1}function fn(t){let e,r=Object.prototype.toString.call(t);if(e="[object Promise]"===r,e)return!0;if("[object Function]"!==r)return!1;try{e="function"!=typeof t.subscribe&&"function"==typeof t.then}catch(t){}return e}var pn={};var dn,hn={},yn={get exports(){return hn},set exports(t){hn=t}};function bn(){return dn||(dn=1,function(t,e){var r;t.exports=(r=r||function(t,e){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!==Pr&&Pr.crypto&&(r=Pr.crypto),!r)try{r=require("crypto")}catch(t){}var n=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function t(){}return function(e){var r;return t.prototype=e,r=new t,t.prototype=null,r}}(),i={},s=i.lib={},a=s.Base={extend:function(t){var e=o(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},c=s.WordArray=a.extend({init:function(t,r){t=this.words=t||[],this.sigBytes=r!=e?r:4*t.length},toString:function(t){return(t||l).stringify(this)},concat:function(t){var e=this.words,r=t.words,n=this.sigBytes,o=t.sigBytes;if(this.clamp(),n%4)for(var i=0;i<o;i++){var s=r[i>>>2]>>>24-i%4*8&255;e[n+i>>>2]|=s<<24-(n+i)%4*8}else for(var a=0;a<o;a+=4)e[n+a>>>2]=r[a>>>2];return this.sigBytes+=o,this},clamp:function(){var e=this.words,r=this.sigBytes;e[r>>>2]&=4294967295<<32-r%4*8,e.length=t.ceil(r/4)},clone:function(){var t=a.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],r=0;r<t;r+=4)e.push(n());return new c.init(e,t)}}),u=i.enc={},l=u.Hex={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],o=0;o<r;o++){var i=e[o>>>2]>>>24-o%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n+=2)r[n>>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new c.init(r,e/2)}},f=u.Latin1={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],o=0;o<r;o++){var i=e[o>>>2]>>>24-o%4*8&255;n.push(String.fromCharCode(i))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n++)r[n>>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new c.init(r,e)}},p=u.Utf8={stringify:function(t){try{return decodeURIComponent(escape(f.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return f.parse(unescape(encodeURIComponent(t)))}},d=s.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=p.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var r,n=this._data,o=n.words,i=n.sigBytes,s=this.blockSize,a=i/(4*s),u=(a=e?t.ceil(a):t.max((0|a)-this._minBufferSize,0))*s,l=t.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 t=a.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});s.Hasher=d.extend({cfg:a.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,r){return new t.init(r).finalize(e)}},_createHmacHelper:function(t){return function(e,r){return new h.HMAC.init(t,r).finalize(e)}}});var h=i.algo={};return i}(Math),r)}(yn)),hn}!function(t,e){t.exports=bn().enc.Utf8}({get exports(){return pn},set exports(t){pn=t}});var gn=pn,mn={};!function(t,e){var r;t.exports=(r=bn(),function(){var t=r,e=t.lib.WordArray;function n(t,r,n){for(var o=[],i=0,s=0;s<r;s++)if(s%4){var a=n[t.charCodeAt(s-1)]<<s%4*2|n[t.charCodeAt(s)]>>>6-s%4*2;o[i>>>2]|=a<<24-i%4*8,i++}return e.create(o,i)}t.enc.Base64={stringify:function(t){var e=t.words,r=t.sigBytes,n=this._map;t.clamp();for(var o=[],i=0;i<r;i+=3)for(var s=(e[i>>>2]>>>24-i%4*8&255)<<16|(e[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|e[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(t){var e=t.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=t.indexOf(s);-1!==a&&(e=a)}return n(t,e,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),r.enc.Base64)}({get exports(){return mn},set exports(t){mn=t}});var vn=mn;function wn(t){if(!Fr(t))return"";return vn.parse(t).toString(gn)}function On(t){if(!Tr())return Promise.reject("no window");try{return function(t){return t.arrayBuffer()}(t)}catch(e){return function(t){let e=Nr(),r=new FileReader;return r.onload=function(){let t=r.result;e.resolve(t)},r.onerror=function(t){e.reject(t)},r.readAsArrayBuffer(t),e}(t)}}function jn(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}var Sn,An=function(t,e,r){for(var n=-1,o=Object(t),i=r(t),s=i.length;s--;){var a=i[Sn?s:++n];if(!1===e(o[a],a,o))break}return t};function En(t){return ke(t)&&"[object Arguments]"==Be(t)}var _n=Object.prototype,Rn=_n.hasOwnProperty,xn=_n.propertyIsEnumerable,Tn=En(function(){return arguments}())?En:function(t){return ke(t)&&Rn.call(t,"callee")&&!xn.call(t,"callee")},Pn=Tn;var Un="object"==typeof exports&&exports&&!exports.nodeType&&exports,Cn=Un&&"object"==typeof module&&module&&!module.nodeType&&module,Nn=Cn&&Cn.exports===Un?Ae.Buffer:void 0,Bn=(Nn?Nn.isBuffer:void 0)||function(){return!1},kn=9007199254740991,Fn=/^(?:0|[1-9]\d*)$/;function Ln(t,e){var r=typeof t;return!!(e=null==e?kn:e)&&("number"==r||"symbol"!=r&&Fn.test(t))&&t>-1&&t%1==0&&t<e}var Dn=9007199254740991;function Mn(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Dn}var zn={};zn["[object Float32Array]"]=zn["[object Float64Array]"]=zn["[object Int8Array]"]=zn["[object Int16Array]"]=zn["[object Int32Array]"]=zn["[object Uint8Array]"]=zn["[object Uint8ClampedArray]"]=zn["[object Uint16Array]"]=zn["[object Uint32Array]"]=!0,zn["[object Arguments]"]=zn["[object Array]"]=zn["[object ArrayBuffer]"]=zn["[object Boolean]"]=zn["[object DataView]"]=zn["[object Date]"]=zn["[object Error]"]=zn["[object Function]"]=zn["[object Map]"]=zn["[object Number]"]=zn["[object Object]"]=zn["[object RegExp]"]=zn["[object Set]"]=zn["[object String]"]=zn["[object WeakMap]"]=!1;var In="object"==typeof exports&&exports&&!exports.nodeType&&exports,qn=In&&"object"==typeof module&&module&&!module.nodeType&&module,$n=qn&&qn.exports===In&&je.process,Hn=function(){try{var t=qn&&qn.require&&qn.require("util").types;return t||$n&&$n.binding&&$n.binding("util")}catch(t){}}(),Jn=Hn&&Hn.isTypedArray,Wn=Jn?function(t){return function(e){return t(e)}}(Jn):function(t){return ke(t)&&Mn(t.length)&&!!zn[Be(t)]},Vn=Wn,Kn=Object.prototype.hasOwnProperty;function Xn(t,e){var r=Oe(t),n=!r&&Pn(t),o=!r&&!n&&Bn(t),i=!r&&!n&&!o&&Vn(t),s=r||n||o||i,a=s?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],c=a.length;for(var u in t)!e&&!Kn.call(t,u)||s&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Ln(u,c))||a.push(u);return a}var Gn=Object.prototype;function Qn(t,e){return function(r){return t(e(r))}}var Zn=Qn(Object.keys,Object),Yn=Object.prototype.hasOwnProperty;function to(t){if(r=(e=t)&&e.constructor,e!==("function"==typeof r&&r.prototype||Gn))return Zn(t);var e,r,n=[];for(var o in Object(t))Yn.call(t,o)&&"constructor"!=o&&n.push(o);return n}function eo(t){return null!=t&&Mn(t.length)&&!Je(t)}function ro(t){return eo(t)?Xn(t):to(t)}var no=function(t,e){return function(r,n){if(null==r)return r;if(!eo(r))return t(r,n);for(var o=r.length,i=e?o:-1,s=Object(r);(e?i--:++i<o)&&!1!==n(s[i],i,s););return r}}((function(t,e){return t&&An(t,e,ro)})),oo=no;function io(t){return t}function so(t,e){var r;return(Oe(t)?jn:oo)(t,"function"==typeof(r=e)?r:io)}function ao(t){return"[object Array]"===Object.prototype.toString.call(t)}function co(t){if(Br(t)){for(let e in t)return!1;return!0}return!1}function uo(t){return!!function(t){return"[object Undefined]"===Object.prototype.toString.call(t)}(t)||(!!function(t){return"[object Null]"===Object.prototype.toString.call(t)}(t)||(!!co(t)||(!!function(t){return!(!kr(t)||""!==t)}(t)||(!!function(t){return!!ao(t)&&0===t.length}(t)||!!Lr(t)))))}function lo(t){return"[object ArrayBuffer]"===Object.prototype.toString.call(t)}function fo(t){return"[object Blob]"===Object.prototype.toString.call(t)}function po(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)}function ho(t){return"[object Uint16Array]"===Object.prototype.toString.call(t)}function yo(t){if(!(lo(t)||fo(t)||po(t)||ho(t)))return null;try{if(t.byteLength)return t.byteLength}catch(t){}try{if(t.length)return t.length}catch(t){}try{if(t.size)return t.size}catch(t){}return null}var bo=Qn(Object.getPrototypeOf,Object),go="[object Object]",mo=Function.prototype,vo=Object.prototype,wo=mo.toString,Oo=vo.hasOwnProperty,jo=wo.call(Object);var So="[object DOMException]",Ao="[object Error]";function Eo(t){if(!ke(t))return!1;var e=Be(t);return e==Ao||e==So||"string"==typeof t.message&&"string"==typeof t.name&&!function(t){if(!ke(t)||Be(t)!=go)return!1;var e=bo(t);if(null===e)return!0;var r=Oo.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&wo.call(r)==jo}(t)}function _o(t){if(!Fr(t))return new Uint8Array;let e;try{e=function(t){if(!kr(t))return new Uint8Array;let e=vn.parse(t),r=e.words,n=e.sigBytes,o=new Uint8Array(n);for(let t=0;t<n;t++){let e=r[t>>>2]>>>24-t%4*8&255;o[t]=e}return o}(function(t){if(!Fr(t))return"";let e=gn.parse(t);return vn.stringify(e)}(t))}catch(t){return new Uint8Array}return e}var Ro="[object Boolean]";function xo(t){return!0===(e=t)||!1===e||ke(e)&&Be(e)==Ro;var e}function To(t,e){return function(t,e,r,n,o,i){if(!Dr(t))return null;if(!po(e))return null;if(!en(r))return null;if(!xo(n))return null;if(!en(o))return null;if(!en(i))return null;let s,a,c;t=tn(t);let u=8*i-o-1,l=(1<<u)-1,f=l>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?i-1:0,h=n?-1:1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),(t+=s+f>=1?p/c:p*Math.pow(2,1-f))*c>=2&&(s++,c/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(t*c-1)*Math.pow(2,o),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;e[r+d]=255&a,d+=h,a/=256,o-=8);for(s=s<<o|a,u+=o;u>0;e[r+d]=255&s,d+=h,s/=256,u-=8);return e[r+d-h]|=128*y,null}(t,e,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 Po(t){let e=[],r=[];if((!ao(n=t)||0===n.length||1===n.length&&uo(n[0]))&&!ln(t))return null;var n;let o=[],i=[];function s(t){o.push(yo(t)),i.push(t)}try{let n=function(t){if(!Br(t))return{results:"",binarys:[]};if(co(t))return{results:"",binarys:[]};let e="",r=[];try{let n=-1;e=JSON.stringify(t,(function(t,e){if(po(e)){n+=1;let t=`[Uint8Array]::${n}`;return r.push(e),t}if(ho(e)){n+=1;let t=`[Uint16Array]::${n}`;return r.push(e),t}if(lo(e)){n+=1;let t=`[ArrayBuffer]::${n}`;return r.push(e),t}return Eo(e)&&(e=e.toString()),e}))}catch(t){}return{results:e,binarys:r}}(t);s(_o(n.results)),so(n.binarys,(t=>{s(t)}));let a=o,c=_o(JSON.stringify(a)),u=new Uint8Array(8);To(yo(c),u),e.push(u),e.push(c),so(i,(t=>{e.push(t)})),so(e,(t=>{r=function(t,e){let r=yo(t),n=yo(e),o=new Uint8Array(r+n);return o.set(new Uint8Array(t),0),o.set(new Uint8Array(e),r),o}(r,t)}))}catch(t){return null}return r}function Uo(t){return function(t,e,r,n,o){if(!po(t))return null;if(!en(e))return null;if(!xo(r))return null;if(!en(n))return null;if(!en(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,p=r?1:-1,d=t[e+f];for(f+=p,i=d&(1<<-l)-1,d>>=-l,l+=a;l>0;i=256*i+t[e+f],f+=p,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=n;l>0;s=256*s+t[e+f],f+=p,l-=8);if(0===i)i=1-u;else{if(i===c)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,n),i-=u}return(d?-1:1)*s*Math.pow(2,i-n)}(t,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 Co={};!function(t,e){var r;t.exports=(r=bn(),function(){if("function"==typeof ArrayBuffer){var t=r.lib.WordArray,e=t.init,n=t.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var r=t.byteLength,n=[],o=0;o<r;o++)n[o>>>2]|=t[o]<<24-o%4*8;e.call(this,n,r)}else e.apply(this,arguments)};n.prototype=t}}(),r.lib.WordArray)}({get exports(){return Co},set exports(t){Co=t}});var No=Co;function Bo(t){if(!po(t))return"";let e;try{e=wn(function(t){return po(t)?No.create(t).toString(vn):""}(t))}catch(t){return""}return e}function ko(t){let e=null;if(!po(t))return null;try{let r=8,n=t.slice(0,r),o=t.slice(r,yo(t)),i=Uo(n),s=o.slice(0,i),a=o.slice(i,yo(o)),c=Bo(s),u=function(t,e){let r=0,n=0,o=[];return so(e,(e=>{n=r+e;let i=t.slice(r,n);r=n,o.push(i)})),o}(a,JSON.parse(c));e=function(t){if(!ln(t))return{};let{results:e,binarys:r}=t;if(!Fr(e))return{};if(!ao(r))return{};let n={};try{n=JSON.parse(e,(function(t,e){if(Fr(e)){if(e.indexOf("[Uint8Array]::")>=0){let t=an(e.replace("[Uint8Array]::",""));return r[t]}if(e.indexOf("[Uint16Array]::")>=0){let t=an(e.replace("[Uint16Array]::",""));return r[t]}if(e.indexOf("[ArrayBuffer]::")>=0){let t=an(e.replace("[ArrayBuffer]::",""));return r[t]}}return e}))}catch(t){}return n}({results:Bo(u.shift()),binarys:u})}catch(t){}return e}const Fo=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 Lo(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!fo(t)&&(r=t,"[object File]"!==Object.prototype.toString.call(r)))return console.log("inp",t),Promise.reject("inp is not a Blob or File");var r;let n=xr(e,"chunkSize");Dr(n)||(n=67108864),n=tn(n);let{create64:o}=await async function(){return function(t){const{exports:{mem:e,xxh32:r,xxh64:n,init32:o,update32:i,digest32:s,init64:a,update64:c,digest64:u}}=t;let l=new Uint8Array(e.buffer);function f(t,r){if(e.buffer.byteLength<t+r){const n=Math.ceil((t+r-e.buffer.byteLength)/65536);e.grow(n),l=new Uint8Array(e.buffer)}}function p(t,e,r,n,o,i){f(t);const s=new Uint8Array(t);return l.set(s),r(0,e),s.set(l.subarray(0,t)),{update(e){let r;return l.set(s),"string"==typeof e?(f(3*e.length,t),r=b.encodeInto(e,l.subarray(t)).written):(f(e.byteLength,t),l.set(e,t),r=e.byteLength),n(0,t,r),s.set(l.subarray(0,t)),this},digest:()=>(l.set(s),i(o(0)))}}function d(t){return t>>>0}const h=2n**64n-1n;function y(t){return t&h}const b=new TextEncoder,g=0,m=0n;function v(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g;return f(3*t.length,0),d(r(0,b.encodeInto(t,l).written,e))}function w(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m;return f(3*t.length,0),y(n(0,b.encodeInto(t,l).written,e))}return{h32:v,h32ToString:function(t){return v(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:g).toString(16).padStart(8,"0")},h32Raw:function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g;return f(t.byteLength,0),l.set(t),d(r(0,t.byteLength,e))},create32:function(){return p(48,arguments.length>0&&void 0!==arguments[0]?arguments[0]:g,o,i,s,d)},h64:w,h64ToString:function(t){return w(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:m).toString(16).padStart(16,"0")},h64Raw:function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m;return f(t.byteLength,0),l.set(t),y(n(0,t.byteLength,e))},create64:function(){return p(88,arguments.length>0&&void 0!==arguments[0]?arguments[0]:m,a,c,u,y)}}}((await WebAssembly.instantiate(Fo)).instance)}(),i=o(),s=0;for(;s<t.size;){let e=t.slice(s,s+n),r=await e.arrayBuffer();i.update(new Uint8Array(r)),s+=n}return i.digest().toString(16).padStart(16,"0")}function Do(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Mo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Do(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Do(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}return function(t){let e=xr(t,"url");Fr(e)||(e="http://localhost:8080");let r=xr(t,"apiName");Fr(r)||(r="api");let n="";n="/"===function(t,e){if(!Fr(t))return"";if(!un(e))return"";if(0===(e=an(e)))return"";let r=t.length-e;return r<0&&(r=0),t.substring(r,r+e)}(e,1)?e+r:e+"/"+r;let o=xr(t,"getToken",null);zr(o)||(o=()=>"");let i=xr(t,"tokenType");Fr(i)||(i="Bearer");let s=xr(t,"sizeSlice");cn(s)||(s=1048576);let a=xr(t,"retry");un(a)||(a=3);let c=Tr()?"browser":"nodejs",u=new Cr,l=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];setTimeout((()=>{u.emit(t,...r)}),1)},f=t=>{let e="";if("basic"===t)e=n;else if("slice"===t)e=`${n}slc`;else if("upload-controller"===t)e=`${n}ulctr`;else if("download-get-filename"===t)e=`${n}dwgfn`;else if("download-get"===t)e=`${n}dwgf`;else{if("download"!==t)throw new Error(`invalid type[${t}]`);e=`${n}dw`}return e};async function p(t){let e;return e="browser"===c?await function(t){let e=Nr();return On(t).then((t=>{let r=new Uint8Array(t);e.resolve(r)})).catch((t=>{e.reject(t)})),e}(t):new Uint8Array(t),e}async function d(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=xr(r,"headers");Br(n)||(n={});let s=xr(r,"dataType","");"blob"!==s&&"fmd"!==s&&"json"!==s&&(s="blob");let a=xr(r,"cbProgress");zr(a)||(a=()=>{});let u=f(t),d=Nr(),h=null,y={};if("blob"===s)y={"Content-Type":"application/octet-stream"},h=e;else if("fmd"===s){let t;if("browser"===c)t=new FormData;else{if(!zr(r.FormData))throw l("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");t=new r.FormData({maxDataSize:1099511627776})}t.append("bb",e),"nodejs"===c&&(y={"Content-Type":`multipart/form-data; boundary=${t.getBoundary()}`}),h=t}else"json"===s&&(y={"Content-Type":"application/json"},h=JSON.stringify(e));let b="blob";"nodejs"===c&&(b="arraybuffer","download"===t&&(b="stream"));let g=o();fn(g)&&(g=await g);let m={method:"POST",url:u,data:h,headers:Mo(Mo({Authorization:`${i} ${g}`},y),n),timeout:36e5,maxContentLength:1/0,maxBodyLength:1/0,responseType:b,onUploadProgress:function(t){let e=0,r=t.loaded,n=t.total;cn(n)&&(e=100*r/n),a({prog:Math.floor(e),p:r,m:"upload"})},onDownloadProgress:function(t){let e=0,r=t.loaded,n=t.total;cn(n)&&(e=100*r/n),a({prog:Math.floor(e),p:r,m:"download"})}};return we(m).then((async e=>{if("download"===t)return void await(async t=>{let e=Nr(),n=xr(t,"headers['return-type']",""),o=xr(t,"headers['return-msg']","");if("error"===n)return e.reject(o),e;let i=(t=>{let e="unknow";try{let r=/filename="(.+?)"/.exec(t);e=r?r[1]:"unknown"}catch(t){}return e})(xr(t,"headers['content-disposition']",""));i=wn(i);let s=xr(t,"data");if("browser"===c)try{let t=URL.createObjectURL(s),r=document.createElement("a");r.href=t,r.download=i,document.body.appendChild(r),r.click(),r.remove(),URL.revokeObjectURL(t),e.resolve(i)}catch(t){console.log(t),e.reject(t)}else try{let t=await import("path"),n=await import("fs"),o=xr(r,"fdDownload","");n.mkdirSync(o,{recursive:!0});let a=t.resolve(o,i),c=n.createWriteStream(a);s.pipe(c),c.on("finish",(()=>{e.resolve(a)})),c.on("error",(t=>{e.reject(t)}))}catch(t){e.reject(t)}return e})(e).then((t=>{d.resolve(t)})).catch((t=>{d.reject(t)}));let n=xr(e,"data"),o=ko(await p(n));if(!ln(o))return l("error","data is not an effective object"),void d.reject("data is not an effective object");Mr(o,"success")?d.resolve(o.success):Mr(o,"error")?(l("error",o.error),d.reject(o.error)):(l("error","invalid data"),d.reject("invalid data"))})).catch((async t=>{let e=null,r=xr(t,"response.statusText")||xr(t,"message"),n=xr(t,"response.data")||xr(t,"stack");if(r)e=r;else if(n)e=n;else{try{t=t.toJSON()}catch(n){}l("error",t),e="Can not connect to server."}"Network Error"===e&&(e="Network Error. Make sure your space of hard drive is large enough or blocking by browser plugins."),d.reject(e)})),d}async function h(t,e,r){let n=null;try{n=function(t){let e;return e="browser"===c?new Blob([t.buffer]):Buffer.from(t),e}(Po(e))}catch(t){return Promise.reject(t)}return await d(t,n,{dataType:"blob",cbProgress:r})}async function y(t,e,r){let n=function(t){if(!zr(t))throw new Error("fn is not a function");return function(){let e=Nr(),r=null,n=null;try{r=t.apply(this,arguments)}catch(t){n=t}return null!==n?e.resolve({state:"error",msg:n}):fn(r)?r.then((t=>{e.resolve({state:"success",msg:t})})).catch((t=>{"cancelled"===xr(t,"reason")?e.resolve({state:"cancelled",msg:""}):e.resolve({state:"error",msg:t})})):e.resolve({state:"success",msg:r}),e}}(h),o=await n(t,e,r),i=0;for(;"error"===o.state&&(i+=1,!(i>a));)console.log(`retry n=${i}`),o=await n(t,e,r);return"success"===o.state?o.msg:Promise.reject(o.msg)}async function b(t){let e=null;return e="browser"===c?t:new Blob([t]),await Lo(e)}return u.execute=async function(t,e,r){let n={func:t,input:e},o="",i=null;return await y("basic",n,r).then((t=>Fr(t)?(o="error",void(i=t)):ln(t)?Mr(t,"output")?(o="success",void(i=t.output)):(console.log("invalid msg.output",t),o="error",void(i="invalid msg.output")):(console.log("msg is not an effective object",t),o="error",void(i="msg is not an effective object")))).catch((t=>{o="error",i=t})),""===o?(l("error","invalid state"),Promise.reject("invalid state")):"error"===o?Promise.reject(i):i},u.upload=async function(t,e,r){return async function(t,e,r){let n=0;if(0===n)try{n=e.size,n=an(n)}catch(t){}if(0===n)try{n=e.length,n=an(n)}catch(t){}0===n&&(n=1);let o=n,i=Math.ceil(o/s),a=0,c=t=>{let e=t.prog;if("upload"===t.m&&100===e){a++;let t=a/i;r({prog:.99*t*100,p:t*o,m:"upload"})}},u=t=>{let e=t.prog;"download"===t.m&&100===e&&r({prog:100,p:o,m:"upload"})},l=await b(e),f=await d("upload-controller",{mode:"check-total-hash",fileHash:l,filename:t,fileSize:o},{dataType:"json"});if(f.bAllHash)return u({prog:100,m:"download"}),{filename:t,path:f.path};if(f.slks.length>0){let t=[];for(let r=0;r<f.slks.length;r++){let n=f.slks[r],i=n*s,a=Math.min(i+s,o),c=e.slice(i,a),u=await b(c);t.push({i:n,h:u})}let r=await d("upload-controller",{mode:"check-slices-hash",fileHash:l,fileSliceHashs:t},{dataType:"json"});f.slks=r.slks}let p=l;for(let t=0;t<i;t++){if(f.slks.indexOf(t)>=0){c({prog:100,m:"upload"});continue}let r=t*s,n=Math.min(r+s,o),a=e.slice(r,n),u={"chunk-index":t,"chunk-total":i,"package-id":p};await d("slice",a,{headers:u,dataType:"blob",cbProgress:c})}let h=await d("upload-controller",{mode:"merge-slices-push",fileHash:l,chunkTotal:i},{dataType:"json"}),y=await(()=>{let e=Nr(),r=h.queueId,n=setInterval((()=>{d("upload-controller",{mode:"merge-slices-get",fileHash:l,filename:t,queueId:r},{dataType:"json"}).then((t=>{"success"===t.state?(clearInterval(n),u({prog:100,m:"download"}),e.resolve(t.msg)):"error"===t.state&&(console.log("merge-slices-get error",t),clearInterval(n),e.resolve(t.msg))})).catch((t=>{console.log("merge-slices-get catch",t)}))}),2e3);return e})();return y}(t,e,r)},u.download=async function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return"browser"===c?async function(t,e){let r=o();fn(r)&&(r=await r);let n={fileId:t},i=xr(await d("download-get-filename",n,{dataType:"json"}),"filename",""),s=`${f("download-get")}?fileId=${t}&token=${r}`,a=document.createElement("a");return a.href=s,a.download=i,a.click(),i}(t):async function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={fileId:t};return await d("download",n,Mo(Mo({},r),{},{dataType:"json",cbProgress:e}))}(t,e,r)},u}}));
6
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self)["w-converhp-client"]=e()}(this,(function(){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(e){var r=function(e,r){if("object"!==t(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!==t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"===t(r)?r:String(r)}function r(t,r,n){return(r=e(r))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}function n(t,e){return function(){return t.apply(e,arguments)}}const{toString:o}=Object.prototype,{getPrototypeOf:i}=Object,{iterator:s,toStringTag:a}=Symbol,c=(u=Object.create(null),t=>{const e=o.call(t);return u[e]||(u[e]=e.slice(8,-1).toLowerCase())});var u;const l=t=>(t=t.toLowerCase(),e=>c(e)===t),f=t=>e=>typeof e===t,{isArray:p}=Array,d=f("undefined");const h=l("ArrayBuffer");const y=f("string"),b=f("function"),g=f("number"),m=t=>null!==t&&"object"==typeof t,w=t=>{if("object"!==c(t))return!1;const e=i(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||a in t||s in t)},v=l("Date"),O=l("File"),j=l("Blob"),S=l("FileList"),A=l("URLSearchParams"),[E,_,R,x]=["ReadableStream","Request","Response","Headers"].map(l);function T(t,e){let r,n,{allOwnKeys:o=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!=t)if("object"!=typeof t&&(t=[t]),p(t))for(r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else{const n=o?Object.getOwnPropertyNames(t):Object.keys(t),i=n.length;let s;for(r=0;r<i;r++)s=n[r],e.call(null,t[s],s,t)}}function P(t,e){e=e.toLowerCase();const r=Object.keys(t);let n,o=r.length;for(;o-- >0;)if(n=r[o],e===n.toLowerCase())return n;return null}const U="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,C=t=>!d(t)&&t!==U;const N=(B="undefined"!=typeof Uint8Array&&i(Uint8Array),t=>B&&t instanceof B);var B;const k=l("HTMLFormElement"),F=(t=>{let{hasOwnProperty:e}=t;return(t,r)=>e.call(t,r)})(Object.prototype),L=l("RegExp"),D=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};T(r,((r,o)=>{let i;!1!==(i=e(r,o,t))&&(n[o]=i||r)})),Object.defineProperties(t,n)};const M=l("AsyncFunction"),z=(I="function"==typeof setImmediate,q=b(U.postMessage),I?setImmediate:q?($=`axios@${Math.random()}`,H=[],U.addEventListener("message",(t=>{let{source:e,data:r}=t;e===U&&r===$&&H.length&&H.shift()()}),!1),t=>{H.push(t),U.postMessage($,"*")}):t=>setTimeout(t));var I,q,$,H;const J="undefined"!=typeof queueMicrotask?queueMicrotask.bind(U):"undefined"!=typeof process&&process.nextTick||z;var W={isArray:p,isArrayBuffer:h,isBuffer:function(t){return null!==t&&!d(t)&&null!==t.constructor&&!d(t.constructor)&&b(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||b(t.append)&&("formdata"===(e=c(t))||"object"===e&&b(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&h(t.buffer),e},isString:y,isNumber:g,isBoolean:t=>!0===t||!1===t,isObject:m,isPlainObject:w,isReadableStream:E,isRequest:_,isResponse:R,isHeaders:x,isUndefined:d,isDate:v,isFile:O,isBlob:j,isRegExp:L,isFunction:b,isStream:t=>m(t)&&b(t.pipe),isURLSearchParams:A,isTypedArray:N,isFileList:S,forEach:T,merge:function t(){const{caseless:e}=C(this)&&this||{},r={},n=(n,o)=>{const i=e&&P(r,o)||o;w(r[i])&&w(n)?r[i]=t(r[i],n):w(n)?r[i]=t({},n):p(n)?r[i]=n.slice():r[i]=n};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&T(arguments[t],n);return r},extend:function(t,e,r){let{allOwnKeys:o}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return T(e,((e,o)=>{r&&b(e)?t[o]=n(e,r):t[o]=e}),{allOwnKeys:o}),t},trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},toFlatObject:(t,e,r,n)=>{let o,s,a;const c={};if(e=e||{},null==t)return e;do{for(o=Object.getOwnPropertyNames(t),s=o.length;s-- >0;)a=o[s],n&&!n(a,t,e)||c[a]||(e[a]=t[a],c[a]=!0);t=!1!==r&&i(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},kindOf:c,kindOfTest:l,endsWith:(t,e,r)=>{t=String(t),(void 0===r||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return-1!==n&&n===r},toArray:t=>{if(!t)return null;if(p(t))return t;let e=t.length;if(!g(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},forEachEntry:(t,e)=>{const r=(t&&t[s]).call(t);let n;for(;(n=r.next())&&!n.done;){const r=n.value;e.call(t,r[0],r[1])}},matchAll:(t,e)=>{let r;const n=[];for(;null!==(r=t.exec(e));)n.push(r);return n},isHTMLForm:k,hasOwnProperty:F,hasOwnProp:F,reduceDescriptors:D,freezeMethods:t=>{D(t,((e,r)=>{if(b(t)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=t[r];b(n)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(t,e)=>{const r={},n=t=>{t.forEach((t=>{r[t]=!0}))};return p(t)?n(t):n(String(t).split(e)),r},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,r){return e.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,findKey:P,global:U,isContextDefined:C,isSpecCompliantForm:function(t){return!!(t&&b(t.append)&&"FormData"===t[a]&&t[s])},toJSONObject:t=>{const e=new Array(10),r=(t,n)=>{if(m(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[n]=t;const o=p(t)?[]:{};return T(t,((t,e)=>{const i=r(t,n+1);!d(i)&&(o[e]=i)})),e[n]=void 0,o}}return t};return r(t,0)},isAsyncFn:M,isThenable:t=>t&&(m(t)||b(t))&&b(t.then)&&b(t.catch),setImmediate:z,asap:J,isIterable:t=>null!=t&&b(t[s])};function V(t,e,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}W.inherits(V,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:W.toJSONObject(this.config),code:this.code,status:this.status}}});const K=V.prototype,X={};["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((t=>{X[t]={value:t}})),Object.defineProperties(V,X),Object.defineProperty(K,"isAxiosError",{value:!0}),V.from=(t,e,r,n,o,i)=>{const s=Object.create(K);return W.toFlatObject(t,s,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),V.call(s,t.message,e,r,n,o),s.cause=t,s.name=t.name,i&&Object.assign(s,i),s};function G(t){return W.isPlainObject(t)||W.isArray(t)}function Q(t){return W.endsWith(t,"[]")?t.slice(0,-2):t}function Z(t,e,r){return t?t.concat(e).map((function(t,e){return t=Q(t),!r&&e?"["+t+"]":t})).join(r?".":""):e}const Y=W.toFlatObject(W,{},null,(function(t){return/^is[A-Z]/.test(t)}));function tt(t,e,r){if(!W.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const n=(r=W.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!W.isUndefined(e[t])}))).metaTokens,o=r.visitor||u,i=r.dots,s=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&W.isSpecCompliantForm(e);if(!W.isFunction(o))throw new TypeError("visitor must be a function");function c(t){if(null===t)return"";if(W.isDate(t))return t.toISOString();if(!a&&W.isBlob(t))throw new V("Blob is not supported. Use a Buffer instead.");return W.isArrayBuffer(t)||W.isTypedArray(t)?a&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function u(t,r,o){let a=t;if(t&&!o&&"object"==typeof t)if(W.endsWith(r,"{}"))r=n?r:r.slice(0,-2),t=JSON.stringify(t);else if(W.isArray(t)&&function(t){return W.isArray(t)&&!t.some(G)}(t)||(W.isFileList(t)||W.endsWith(r,"[]"))&&(a=W.toArray(t)))return r=Q(r),a.forEach((function(t,n){!W.isUndefined(t)&&null!==t&&e.append(!0===s?Z([r],n,i):null===s?r:r+"[]",c(t))})),!1;return!!G(t)||(e.append(Z(o,r,i),c(t)),!1)}const l=[],f=Object.assign(Y,{defaultVisitor:u,convertValue:c,isVisitable:G});if(!W.isObject(t))throw new TypeError("data must be an object");return function t(r,n){if(!W.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),W.forEach(r,(function(r,i){!0===(!(W.isUndefined(r)||null===r)&&o.call(e,r,W.isString(i)?i.trim():i,n,f))&&t(r,n?n.concat(i):[i])})),l.pop()}}(t),e}function et(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function rt(t,e){this._pairs=[],t&&tt(t,this,e)}const nt=rt.prototype;function ot(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function it(t,e,r){if(!e)return t;const n=r&&r.encode||ot;W.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(i=o?o(e,r):W.isURLSearchParams(e)?e.toString():new rt(e,r).toString(n),i){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}nt.append=function(t,e){this._pairs.push([t,e])},nt.toString=function(t){const e=t?function(e){return t.call(this,e,et)}:et;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};var st=class{constructor(){this.handlers=[]}use(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){W.forEach(this.handlers,(function(e){null!==e&&t(e)}))}},at={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ct={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:rt,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const ut="undefined"!=typeof window&&"undefined"!=typeof document,lt="object"==typeof navigator&&navigator||void 0,ft=ut&&(!lt||["ReactNative","NativeScript","NS"].indexOf(lt.product)<0),pt="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,dt=ut&&window.location.href||"http://localhost";function ht(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function yt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ht(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ht(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var bt=yt(yt({},Object.freeze({__proto__:null,hasBrowserEnv:ut,hasStandardBrowserEnv:ft,hasStandardBrowserWebWorkerEnv:pt,navigator:lt,origin:dt})),ct);function gt(t){function e(t,r,n,o){let i=t[o++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),a=o>=t.length;if(i=!i&&W.isArray(n)?n.length:i,a)return W.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!s;n[i]&&W.isObject(n[i])||(n[i]=[]);return e(t,r,n[i],o)&&W.isArray(n[i])&&(n[i]=function(t){const e={},r=Object.keys(t);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],e[i]=t[i];return e}(n[i])),!s}if(W.isFormData(t)&&W.isFunction(t.entries)){const r={};return W.forEachEntry(t,((t,n)=>{e(function(t){return W.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),n,r,0)})),r}return null}const mt={transitional:at,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const r=e.getContentType()||"",n=r.indexOf("application/json")>-1,o=W.isObject(t);o&&W.isHTMLForm(t)&&(t=new FormData(t));if(W.isFormData(t))return n?JSON.stringify(gt(t)):t;if(W.isArrayBuffer(t)||W.isBuffer(t)||W.isStream(t)||W.isFile(t)||W.isBlob(t)||W.isReadableStream(t))return t;if(W.isArrayBufferView(t))return t.buffer;if(W.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return tt(t,new bt.classes.URLSearchParams,Object.assign({visitor:function(t,e,r,n){return bt.isNode&&W.isBuffer(t)?(this.append(e,t.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((i=W.isFileList(t))||r.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return tt(i?{"files[]":t}:t,e&&new e,this.formSerializer)}}return o||n?(e.setContentType("application/json",!1),function(t,e,r){if(W.isString(t))try{return(e||JSON.parse)(t),W.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(r||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||mt.transitional,r=e&&e.forcedJSONParsing,n="json"===this.responseType;if(W.isResponse(t)||W.isReadableStream(t))return t;if(t&&W.isString(t)&&(r&&!this.responseType||n)){const r=!(e&&e.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(t){if(r){if("SyntaxError"===t.name)throw V.from(t,V.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:bt.classes.FormData,Blob:bt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};W.forEach(["delete","get","head","post","put","patch"],(t=>{mt.headers[t]={}}));var wt=mt;const vt=W.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 Ot=Symbol("internals");function jt(t){return t&&String(t).trim().toLowerCase()}function St(t){return!1===t||null==t?t:W.isArray(t)?t.map(St):String(t)}function At(t,e,r,n,o){return W.isFunction(n)?n.call(this,e,r):(o&&(e=r),W.isString(e)?W.isString(n)?-1!==e.indexOf(n):W.isRegExp(n)?n.test(e):void 0:void 0)}class Et{constructor(t){t&&this.set(t)}set(t,e,r){const n=this;function o(t,e,r){const o=jt(e);if(!o)throw new Error("header name must be a non-empty string");const i=W.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||e]=St(t))}const i=(t,e)=>W.forEach(t,((t,r)=>o(t,r,e)));if(W.isPlainObject(t)||t instanceof this.constructor)i(t,e);else if(W.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()))i((t=>{const e={};let r,n,o;return t&&t.split("\n").forEach((function(t){o=t.indexOf(":"),r=t.substring(0,o).trim().toLowerCase(),n=t.substring(o+1).trim(),!r||e[r]&&vt[r]||("set-cookie"===r?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)})),e})(t),e);else if(W.isObject(t)&&W.isIterable(t)){let r,n,o={};for(const e of t){if(!W.isArray(e))throw TypeError("Object iterator must return a key-value pair");o[n=e[0]]=(r=o[n])?W.isArray(r)?[...r,e[1]]:[r,e[1]]:e[1]}i(o,e)}else null!=t&&o(e,t,r);return this}get(t,e){if(t=jt(t)){const r=W.findKey(this,t);if(r){const t=this[r];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}(t);if(W.isFunction(e))return e.call(this,t,r);if(W.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=jt(t)){const r=W.findKey(this,t);return!(!r||void 0===this[r]||e&&!At(0,this[r],r,e))}return!1}delete(t,e){const r=this;let n=!1;function o(t){if(t=jt(t)){const o=W.findKey(r,t);!o||e&&!At(0,r[o],o,e)||(delete r[o],n=!0)}}return W.isArray(t)?t.forEach(o):o(t),n}clear(t){const e=Object.keys(this);let r=e.length,n=!1;for(;r--;){const o=e[r];t&&!At(0,this[o],o,t,!0)||(delete this[o],n=!0)}return n}normalize(t){const e=this,r={};return W.forEach(this,((n,o)=>{const i=W.findKey(r,o);if(i)return e[i]=St(n),void delete e[o];const s=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,r)=>e.toUpperCase()+r))}(o):String(o).trim();s!==o&&delete e[o],e[s]=St(n),r[s]=!0})),this}concat(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.constructor.concat(this,...e)}toJSON(t){const e=Object.create(null);return W.forEach(this,((r,n)=>{null!=r&&!1!==r&&(e[n]=t&&W.isArray(r)?r.join(", "):r)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((t=>{let[e,r]=t;return e+": "+r})).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t){const e=new this(t);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((t=>e.set(t))),e}static accessor(t){const e=(this[Ot]=this[Ot]={accessors:{}}).accessors,r=this.prototype;function n(t){const n=jt(t);e[n]||(!function(t,e){const r=W.toCamelCase(" "+e);["get","set","has"].forEach((n=>{Object.defineProperty(t,n+r,{value:function(t,r,o){return this[n].call(this,e,t,r,o)},configurable:!0})}))}(r,t),e[n]=!0)}return W.isArray(t)?t.forEach(n):n(t),this}}Et.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),W.reduceDescriptors(Et.prototype,((t,e)=>{let{value:r}=t,n=e[0].toUpperCase()+e.slice(1);return{get:()=>r,set(t){this[n]=t}}})),W.freezeMethods(Et);var _t=Et;function Rt(t,e){const r=this||wt,n=e||r,o=_t.from(n.headers);let i=n.data;return W.forEach(t,(function(t){i=t.call(r,i,o.normalize(),e?e.status:void 0)})),o.normalize(),i}function xt(t){return!(!t||!t.__CANCEL__)}function Tt(t,e,r){V.call(this,null==t?"canceled":t,V.ERR_CANCELED,e,r),this.name="CanceledError"}function Pt(t,e,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?e(new V("Request failed with status code "+r.status,[V.ERR_BAD_REQUEST,V.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):t(r)}W.inherits(Tt,V,{__CANCEL__:!0});const Ut=function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,n=0;const o=function(t,e){t=t||10;const r=new Array(t),n=new Array(t);let o,i=0,s=0;return e=void 0!==e?e: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%=t;if(i=(i+1)%t,i===s&&(s=(s+1)%t),c-o<e)return;const p=u&&c-u;return p?Math.round(1e3*f/p):void 0}}(50,250);return function(t,e){let r,n,o=0,i=1e3/e;const s=function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();o=i,r=null,n&&(clearTimeout(n),n=null),t.apply(null,e)};return[function(){const t=Date.now(),e=t-o;for(var a=arguments.length,c=new Array(a),u=0;u<a;u++)c[u]=arguments[u];e>=i?s(c,t):(r=c,n||(n=setTimeout((()=>{n=null,s(r)}),i-e)))},()=>r&&s(r)]}((r=>{const i=r.loaded,s=r.lengthComputable?r.total:void 0,a=i-n,c=o(a);n=i;t({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,[e?"download":"upload"]:!0})}),r)},Ct=(t,e)=>{const r=null!=t;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},Nt=t=>function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return W.asap((()=>t(...r)))};var Bt=bt.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,bt.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(bt.origin),bt.navigator&&/(msie|trident)/i.test(bt.navigator.userAgent)):()=>!0,kt=bt.hasStandardBrowserEnv?{write(t,e,r,n,o,i){const s=[t+"="+encodeURIComponent(e)];W.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),W.isString(n)&&s.push("path="+n),W.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Ft(t,e,r){let n=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);return t&&(n||0==r)?function(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}function Lt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}const Dt=t=>t instanceof _t?function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Lt(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Lt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t):t;function Mt(t,e){e=e||{};const r={};function n(t,e,r,n){return W.isPlainObject(t)&&W.isPlainObject(e)?W.merge.call({caseless:n},t,e):W.isPlainObject(e)?W.merge({},e):W.isArray(e)?e.slice():e}function o(t,e,r,o){return W.isUndefined(e)?W.isUndefined(t)?void 0:n(void 0,t,0,o):n(t,e,0,o)}function i(t,e){if(!W.isUndefined(e))return n(void 0,e)}function s(t,e){return W.isUndefined(e)?W.isUndefined(t)?void 0:n(void 0,t):n(void 0,e)}function a(r,o,i){return i in e?n(r,o):i in t?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:(t,e,r)=>o(Dt(t),Dt(e),0,!0)};return W.forEach(Object.keys(Object.assign({},t,e)),(function(n){const i=c[n]||o,s=i(t[n],e[n],n);W.isUndefined(s)&&i!==a||(r[n]=s)})),r}var zt=t=>{const e=Mt({},t);let r,{data:n,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:s,headers:a,auth:c}=e;if(e.headers=a=_t.from(a),e.url=it(Ft(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),W.isFormData(n))if(bt.hasStandardBrowserEnv||bt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(r=a.getContentType())){const[t,...e]=r?r.split(";").map((t=>t.trim())).filter(Boolean):[];a.setContentType([t||"multipart/form-data",...e].join("; "))}if(bt.hasStandardBrowserEnv&&(o&&W.isFunction(o)&&(o=o(e)),o||!1!==o&&Bt(e.url))){const t=i&&s&&kt.read(s);t&&a.set(i,t)}return e};var It="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,r){const n=zt(t);let o=n.data;const i=_t.from(n.headers).normalize();let s,a,c,u,l,{responseType:f,onUploadProgress:p,onDownloadProgress:d}=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 b(){if(!y)return;const n=_t.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders());Pt((function(t){e(t),h()}),(function(t){r(t),h()}),{data:f&&"text"!==f&&"json"!==f?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:n,config:t,request:y}),y=null}y.open(n.method.toUpperCase(),n.url,!0),y.timeout=n.timeout,"onloadend"in y?y.onloadend=b:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(b)},y.onabort=function(){y&&(r(new V("Request aborted",V.ECONNABORTED,t,y)),y=null)},y.onerror=function(){r(new V("Network Error",V.ERR_NETWORK,t,y)),y=null},y.ontimeout=function(){let e=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||at;n.timeoutErrorMessage&&(e=n.timeoutErrorMessage),r(new V(e,o.clarifyTimeoutError?V.ETIMEDOUT:V.ECONNABORTED,t,y)),y=null},void 0===o&&i.setContentType(null),"setRequestHeader"in y&&W.forEach(i.toJSON(),(function(t,e){y.setRequestHeader(e,t)})),W.isUndefined(n.withCredentials)||(y.withCredentials=!!n.withCredentials),f&&"json"!==f&&(y.responseType=n.responseType),d&&([c,l]=Ut(d,!0),y.addEventListener("progress",c)),p&&y.upload&&([a,u]=Ut(p),y.upload.addEventListener("progress",a),y.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(s=e=>{y&&(r(!e||e.type?new Tt(null,t,y):e),y.abort(),y=null)},n.cancelToken&&n.cancelToken.subscribe(s),n.signal&&(n.signal.aborted?s():n.signal.addEventListener("abort",s)));const g=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(n.url);g&&-1===bt.protocols.indexOf(g)?r(new V("Unsupported protocol "+g+":",V.ERR_BAD_REQUEST,t)):y.send(o||null)}))};var qt=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||r){let r,n=new AbortController;const o=function(t){if(!r){r=!0,s();const e=t instanceof Error?t:this.reason;n.abort(e instanceof V?e:new Tt(e instanceof Error?e.message:e))}};let i=e&&setTimeout((()=>{i=null,o(new V(`timeout ${e} of ms exceeded`,V.ETIMEDOUT))}),e);const s=()=>{t&&(i&&clearTimeout(i),i=null,t.forEach((t=>{t.unsubscribe?t.unsubscribe(o):t.removeEventListener("abort",o)})),t=null)};t.forEach((t=>t.addEventListener("abort",o)));const{signal:a}=n;return a.unsubscribe=()=>W.asap(s),a}};const $t=function*(t,e){let r=t.byteLength;if(!e||r<e)return void(yield t);let n,o=0;for(;o<r;)n=o+e,yield t.slice(o,n),o=n},Ht=async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);const e=t.getReader();try{for(;;){const{done:t,value:r}=await e.read();if(t)break;yield r}}finally{await e.cancel()}},Jt=(t,e,r,n)=>{const o=async function*(t,e){for await(const r of Ht(t))yield*$t(r,e)}(t,e);let i,s=0,a=t=>{i||(i=!0,n&&n(t))};return new ReadableStream({async pull(t){try{const{done:e,value:n}=await o.next();if(e)return a(),void t.close();let i=n.byteLength;if(r){let t=s+=i;r(t)}t.enqueue(new Uint8Array(n))}catch(t){throw a(t),t}},cancel:t=>(a(t),o.return())},{highWaterMark:2})};function Wt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Vt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Wt(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}const Kt="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Xt=Kt&&"function"==typeof ReadableStream,Gt=Kt&&("function"==typeof TextEncoder?(Qt=new TextEncoder,t=>Qt.encode(t)):async t=>new Uint8Array(await new Response(t).arrayBuffer()));var Qt;const Zt=function(t){try{for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return!!t(...r)}catch(t){return!1}},Yt=Xt&&Zt((()=>{let t=!1;const e=new Request(bt.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e})),te=Xt&&Zt((()=>W.isReadableStream(new Response("").body))),ee={stream:te&&(t=>t.body)};var re;Kt&&(re=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!ee[t]&&(ee[t]=W.isFunction(re[t])?e=>e[t]():(e,r)=>{throw new V(`Response type '${t}' is not supported`,V.ERR_NOT_SUPPORT,r)})})));const ne=async(t,e)=>{const r=W.toFiniteNumber(t.getContentLength());return null==r?(async t=>{if(null==t)return 0;if(W.isBlob(t))return t.size;if(W.isSpecCompliantForm(t)){const e=new Request(bt.origin,{method:"POST",body:t});return(await e.arrayBuffer()).byteLength}return W.isArrayBufferView(t)||W.isArrayBuffer(t)?t.byteLength:(W.isURLSearchParams(t)&&(t+=""),W.isString(t)?(await Gt(t)).byteLength:void 0)})(e):r};const oe={http:null,xhr:It,fetch:Kt&&(async t=>{let{url:e,method:r,data:n,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:l,withCredentials:f="same-origin",fetchOptions:p}=zt(t);u=u?(u+"").toLowerCase():"text";let d,h=qt([o,i&&i.toAbortSignal()],s);const y=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let b;try{if(c&&Yt&&"get"!==r&&"head"!==r&&0!==(b=await ne(l,n))){let t,r=new Request(e,{method:"POST",body:n,duplex:"half"});if(W.isFormData(n)&&(t=r.headers.get("content-type"))&&l.setContentType(t),r.body){const[t,e]=Ct(b,Ut(Nt(c)));n=Jt(r.body,65536,t,e)}}W.isString(f)||(f=f?"include":"omit");const o="credentials"in Request.prototype;d=new Request(e,Vt(Vt({},p),{},{signal:h,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:n,duplex:"half",credentials:o?f:void 0}));let i=await fetch(d);const s=te&&("stream"===u||"response"===u);if(te&&(a||s&&y)){const t={};["status","statusText","headers"].forEach((e=>{t[e]=i[e]}));const e=W.toFiniteNumber(i.headers.get("content-length")),[r,n]=a&&Ct(e,Ut(Nt(a),!0))||[];i=new Response(Jt(i.body,65536,r,(()=>{n&&n(),y&&y()})),t)}u=u||"text";let g=await ee[W.findKey(ee,u)||"text"](i,t);return!s&&y&&y(),await new Promise(((e,r)=>{Pt(e,r,{data:g,headers:_t.from(i.headers),status:i.status,statusText:i.statusText,config:t,request:d})}))}catch(e){if(y&&y(),e&&"TypeError"===e.name&&/Load failed|fetch/i.test(e.message))throw Object.assign(new V("Network Error",V.ERR_NETWORK,t,d),{cause:e.cause||e});throw V.from(e,e&&e.code,t,d)}})};W.forEach(oe,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));const ie=t=>`- ${t}`,se=t=>W.isFunction(t)||null===t||!1===t;var ae={getAdapter:t=>{t=W.isArray(t)?t:[t];const{length:e}=t;let r,n;const o={};for(let i=0;i<e;i++){let e;if(r=t[i],n=r,!se(r)&&(n=oe[(e=String(r)).toLowerCase()],void 0===n))throw new V(`Unknown adapter '${e}'`);if(n)break;o[e||"#"+i]=n}if(!n){const t=Object.entries(o).map((t=>{let[e,r]=t;return`adapter ${e} `+(!1===r?"is not supported by the environment":"is not available in the build")}));throw new V("There is no suitable adapter to dispatch the request "+(e?t.length>1?"since :\n"+t.map(ie).join("\n"):" "+ie(t[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n},adapters:oe};function ce(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Tt(null,t)}function ue(t){ce(t),t.headers=_t.from(t.headers),t.data=Rt.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);return ae.getAdapter(t.adapter||wt.adapter)(t).then((function(e){return ce(t),e.data=Rt.call(t,t.transformResponse,e),e.headers=_t.from(e.headers),e}),(function(e){return xt(e)||(ce(t),e&&e.response&&(e.response.data=Rt.call(t,t.transformResponse,e.response),e.response.headers=_t.from(e.response.headers))),Promise.reject(e)}))}const le="1.9.0",fe={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{fe[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));const pe={};fe.transitional=function(t,e,r){function n(t,e){return"[Axios v1.9.0] Transitional option '"+t+"'"+e+(r?". "+r:"")}return(r,o,i)=>{if(!1===t)throw new V(n(o," has been removed"+(e?" in "+e:"")),V.ERR_DEPRECATED);return e&&!pe[o]&&(pe[o]=!0,console.warn(n(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,o,i)}},fe.spelling=function(t){return(e,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};var de={assertOptions:function(t,e,r){if("object"!=typeof t)throw new V("options must be an object",V.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let o=n.length;for(;o-- >0;){const i=n[o],s=e[i];if(s){const e=t[i],r=void 0===e||s(e,i,t);if(!0!==r)throw new V("option "+i+" must be "+r,V.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new V("Unknown option "+i,V.ERR_BAD_OPTION)}},validators:fe};const he=de.validators;class ye{constructor(t){this.defaults=t||{},this.interceptors={request:new st,response:new st}}async request(t,e){try{return await this._request(t,e)}catch(t){if(t instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const r=e.stack?e.stack.replace(/^.+\n/,""):"";try{t.stack?r&&!String(t.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+r):t.stack=r}catch(t){}}throw t}}_request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=Mt(this.defaults,e);const{transitional:r,paramsSerializer:n,headers:o}=e;void 0!==r&&de.assertOptions(r,{silentJSONParsing:he.transitional(he.boolean),forcedJSONParsing:he.transitional(he.boolean),clarifyTimeoutError:he.transitional(he.boolean)},!1),null!=n&&(W.isFunction(n)?e.paramsSerializer={serialize:n}:de.assertOptions(n,{encode:he.function,serialize:he.function},!0)),void 0!==e.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),de.assertOptions(e,{baseUrl:he.spelling("baseURL"),withXsrfToken:he.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let i=o&&W.merge(o.common,o[e.method]);o&&W.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete o[t]})),e.headers=_t.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(a=a&&t.synchronous,s.unshift(t.fulfilled,t.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(t){c.push(t.fulfilled,t.rejected)}));let l,f=0;if(!a){const t=[ue.bind(this),void 0];for(t.unshift.apply(t,s),t.push.apply(t,c),l=t.length,u=Promise.resolve(e);f<l;)u=u.then(t[f++],t[f++]);return u}l=s.length;let p=e;for(f=0;f<l;){const t=s[f++],e=s[f++];try{p=t(p)}catch(t){e.call(this,t);break}}try{u=ue.call(this,p)}catch(t){return Promise.reject(t)}for(f=0,l=c.length;f<l;)u=u.then(c[f++],c[f++]);return u}getUri(t){return it(Ft((t=Mt(this.defaults,t)).baseURL,t.url,t.allowAbsoluteUrls),t.params,t.paramsSerializer)}}W.forEach(["delete","get","head","options"],(function(t){ye.prototype[t]=function(e,r){return this.request(Mt(r||{},{method:t,url:e,data:(r||{}).data}))}})),W.forEach(["post","put","patch"],(function(t){function e(e){return function(r,n,o){return this.request(Mt(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}ye.prototype[t]=e(),ye.prototype[t+"Form"]=e(!0)}));var be=ye;class ge{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const r=this;this.promise.then((t=>{if(!r._listeners)return;let e=r._listeners.length;for(;e-- >0;)r._listeners[e](t);r._listeners=null})),this.promise.then=t=>{let e;const n=new Promise((t=>{r.subscribe(t),e=t})).then(t);return n.cancel=function(){r.unsubscribe(e)},n},t((function(t,n,o){r.reason||(r.reason=new Tt(t,n,o),e(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=e=>{t.abort(e)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new ge((function(e){t=e})),cancel:t}}}var me=ge;const we={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(we).forEach((t=>{let[e,r]=t;we[r]=e}));var ve=we;const Oe=function t(e){const r=new be(e),o=n(be.prototype.request,r);return W.extend(o,be.prototype,r,{allOwnKeys:!0}),W.extend(o,r,null,{allOwnKeys:!0}),o.create=function(r){return t(Mt(e,r))},o}(wt);Oe.Axios=be,Oe.CanceledError=Tt,Oe.CancelToken=me,Oe.isCancel=xt,Oe.VERSION=le,Oe.toFormData=tt,Oe.AxiosError=V,Oe.Cancel=Oe.CanceledError,Oe.all=function(t){return Promise.all(t)},Oe.spread=function(t){return function(e){return t.apply(null,e)}},Oe.isAxiosError=function(t){return W.isObject(t)&&!0===t.isAxiosError},Oe.mergeConfig=Mt,Oe.AxiosHeaders=_t,Oe.formToJSON=t=>gt(W.isHTMLForm(t)?new FormData(t):t),Oe.getAdapter=ae.getAdapter,Oe.HttpStatusCode=ve,Oe.default=Oe;var je=Oe,Se=Array.isArray,Ae="object"==typeof global&&global&&global.Object===Object&&global,Ee="object"==typeof self&&self&&self.Object===Object&&self,_e=Ae||Ee||Function("return this")(),Re=_e.Symbol,xe=Object.prototype,Te=xe.hasOwnProperty,Pe=xe.toString,Ue=Re?Re.toStringTag:void 0;var Ce=Object.prototype.toString;var Ne="[object Null]",Be="[object Undefined]",ke=Re?Re.toStringTag:void 0;function Fe(t){return null==t?void 0===t?Be:Ne:ke&&ke in Object(t)?function(t){var e=Te.call(t,Ue),r=t[Ue];try{t[Ue]=void 0;var n=!0}catch(t){}var o=Pe.call(t);return n&&(e?t[Ue]=r:delete t[Ue]),o}(t):function(t){return Ce.call(t)}(t)}function Le(t){return null!=t&&"object"==typeof t}var De="[object Symbol]";function Me(t){return"symbol"==typeof t||Le(t)&&Fe(t)==De}var ze=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ie=/^\w*$/;function qe(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var $e="[object AsyncFunction]",He="[object Function]",Je="[object GeneratorFunction]",We="[object Proxy]";function Ve(t){if(!qe(t))return!1;var e=Fe(t);return e==He||e==Je||e==$e||e==We}var Ke,Xe=_e["__core-js_shared__"],Ge=(Ke=/[^.]+$/.exec(Xe&&Xe.keys&&Xe.keys.IE_PROTO||""))?"Symbol(src)_1."+Ke:"";var Qe=Function.prototype.toString;var Ze=/^\[object .+?Constructor\]$/,Ye=Function.prototype,tr=Object.prototype,er=Ye.toString,rr=tr.hasOwnProperty,nr=RegExp("^"+er.call(rr).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function or(t){return!(!qe(t)||(e=t,Ge&&Ge in e))&&(Ve(t)?nr:Ze).test(function(t){if(null!=t){try{return Qe.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t));var e}function ir(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return or(r)?r:void 0}var sr=ir(Object,"create");var ar=Object.prototype.hasOwnProperty;var cr=Object.prototype.hasOwnProperty;function ur(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function lr(t,e){for(var r,n,o=t.length;o--;)if((r=t[o][0])===(n=e)||r!=r&&n!=n)return o;return-1}ur.prototype.clear=function(){this.__data__=sr?sr(null):{},this.size=0},ur.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},ur.prototype.get=function(t){var e=this.__data__;if(sr){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return ar.call(e,t)?e[t]:void 0},ur.prototype.has=function(t){var e=this.__data__;return sr?void 0!==e[t]:cr.call(e,t)},ur.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=sr&&void 0===e?"__lodash_hash_undefined__":e,this};var fr=Array.prototype.splice;function pr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}pr.prototype.clear=function(){this.__data__=[],this.size=0},pr.prototype.delete=function(t){var e=this.__data__,r=lr(e,t);return!(r<0)&&(r==e.length-1?e.pop():fr.call(e,r,1),--this.size,!0)},pr.prototype.get=function(t){var e=this.__data__,r=lr(e,t);return r<0?void 0:e[r][1]},pr.prototype.has=function(t){return lr(this.__data__,t)>-1},pr.prototype.set=function(t,e){var r=this.__data__,n=lr(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};var dr=ir(_e,"Map");function hr(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function yr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}yr.prototype.clear=function(){this.size=0,this.__data__={hash:new ur,map:new(dr||pr),string:new ur}},yr.prototype.delete=function(t){var e=hr(this,t).delete(t);return this.size-=e?1:0,e},yr.prototype.get=function(t){return hr(this,t).get(t)},yr.prototype.has=function(t){return hr(this,t).has(t)},yr.prototype.set=function(t,e){var r=hr(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};var br="Expected a function";function gr(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(br);var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var s=t.apply(this,n);return r.cache=i.set(o,s)||i,s};return r.cache=new(gr.Cache||yr),r}gr.Cache=yr;var mr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wr=/\\(\\)?/g,vr=function(t){var e=gr(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(mr,(function(t,r,n,o){e.push(n?o.replace(wr,"$1"):r||t)})),e})),Or=vr;var jr=1/0,Sr=Re?Re.prototype:void 0,Ar=Sr?Sr.toString:void 0;function Er(t){if("string"==typeof t)return t;if(Se(t))return function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}(t,Er)+"";if(Me(t))return Ar?Ar.call(t):"";var e=t+"";return"0"==e&&1/t==-jr?"-0":e}function _r(t){return null==t?"":Er(t)}function Rr(t,e){return Se(t)?t:function(t,e){if(Se(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!Me(t))||Ie.test(t)||!ze.test(t)||null!=e&&t in Object(e)}(t,e)?[t]:Or(_r(t))}var xr=1/0;function Tr(t){if("string"==typeof t||Me(t))return t;var e=t+"";return"0"==e&&1/t==-xr?"-0":e}function Pr(t,e,r){var n=null==t?void 0:function(t,e){for(var r=0,n=(e=Rr(e,t)).length;null!=t&&r<n;)t=t[Tr(e[r++])];return r&&r==n?t:void 0}(t,e);return void 0===n?r:n}function Ur(){return"undefined"!=typeof window&&void 0!==window.document}var Cr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Nr={};!function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}function o(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function i(t,e,n,i,s){if("function"!=typeof n)throw new TypeError("The listener must be a function");var a=new o(n,i||t,s),c=r?r+e:e;return t._events[c]?t._events[c].fn?t._events[c]=[t._events[c],a]:t._events[c].push(a):(t._events[c]=a,t._eventsCount++),t}function s(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}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 t,n,o=[];if(0===this._eventsCount)return o;for(n in t=this._events)e.call(t,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},a.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];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(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},a.prototype.emit=function(t,e,n,o,i,s){var a=r?r+t:t;if(!this._events[a])return!1;var c,u,l=this._events[a],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,n),!0;case 4:return l.fn.call(l.context,e,n,o),!0;case 5:return l.fn.call(l.context,e,n,o,i),!0;case 6:return l.fn.call(l.context,e,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 p,d=l.length;for(u=0;u<d;u++)switch(l[u].once&&this.removeListener(t,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,e);break;case 3:l[u].fn.call(l[u].context,e,n);break;case 4:l[u].fn.call(l[u].context,e,n,o);break;default:if(!c)for(p=1,c=new Array(f-1);p<f;p++)c[p-1]=arguments[p];l[u].fn.apply(l[u].context,c)}}return!0},a.prototype.on=function(t,e,r){return i(this,t,e,r,!1)},a.prototype.once=function(t,e,r){return i(this,t,e,r,!0)},a.prototype.removeListener=function(t,e,n,o){var i=r?r+t:t;if(!this._events[i])return this;if(!e)return s(this,i),this;var a=this._events[i];if(a.fn)a.fn!==e||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!==e||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(t){var e;return t?(e=r?r+t:t,this._events[e]&&s(this,e)):(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,t.exports=a}({get exports(){return Nr},set exports(t){Nr=t}});var Br=Nr;function kr(){let t,e,r=new Promise((function(){t=arguments[0],e=arguments[1]}));return r.resolve=t,r.reject=e,r}function Fr(t){return"[object Object]"===Object.prototype.toString.call(t)}function Lr(t){return"[object String]"===Object.prototype.toString.call(t)}function Dr(t){return!(!Lr(t)||""===t)}function Mr(t){return t!=t}function zr(t){let e=!1;if(Dr(t))e=!isNaN(Number(t));else if(function(t){return"[object Number]"===Object.prototype.toString.call(t)}(t)){if(Mr(t))return!1;e=!0}return e}function Ir(t,e){return!!Fr(t)&&(!(!Dr(e)&&!zr(e))&&e in t)}function qr(t){let e=Object.prototype.toString.call(t);return"[object Function]"===e||"[object AsyncFunction]"===e}var $r=/\s/;var Hr=/^\s+/;function Jr(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&$r.test(t.charAt(e)););return e}(t)+1).replace(Hr,""):t}var Wr=NaN,Vr=/^[-+]0x[0-9a-f]+$/i,Kr=/^0b[01]+$/i,Xr=/^0o[0-7]+$/i,Gr=parseInt;function Qr(t){if("number"==typeof t)return t;if(Me(t))return Wr;if(qe(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=qe(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Jr(t);var r=Kr.test(t);return r||Xr.test(t)?Gr(t.slice(2),r?2:8):Vr.test(t)?Wr:+t}var Zr=1/0,Yr=17976931348623157e292;function tn(t){return t?(t=Qr(t))===Zr||t===-Zr?(t<0?-1:1)*Yr:t==t?t:0:0===t?t:0}function en(t){var e=tn(t),r=e%1;return e==e?r?e-r:e:0}function rn(t){if(!zr(t))return 0;return tn(t)}function nn(t){return!!zr(t)&&(t=rn(t),"number"==typeof(e=t)&&e==en(e));var e}var on=_e.isFinite,sn=Math.min;var an,cn=(an=Math["round"],function(t,e){if(t=Qr(t),(e=null==e?0:sn(en(e),292))&&on(t)){var r=(_r(t)+"e").split("e");return+((r=(_r(an(r[0]+"e"+(+r[1]+e)))+"e").split("e"))[0]+"e"+(+r[1]-e))}return an(t)});function un(t){if(!zr(t))return 0;t=rn(t);let e=cn(t);return"0"===String(e)?0:e}function ln(t){if(!nn(t))return!1;return un(t)>0}function fn(t){if(!nn(t))return!1;return un(t)>=0}function pn(t){if(Fr(t)){for(let e in t)return!0;return!1}return!1}function dn(t){let e,r=Object.prototype.toString.call(t);if(e="[object Promise]"===r,e)return!0;if("[object Function]"!==r)return!1;try{e="function"!=typeof t.subscribe&&"function"==typeof t.then}catch(t){}return e}var hn={};var yn,bn={},gn={get exports(){return bn},set exports(t){bn=t}};function mn(){return yn||(yn=1,function(t,e){var r;t.exports=(r=r||function(t,e){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!==Cr&&Cr.crypto&&(r=Cr.crypto),!r)try{r=require("crypto")}catch(t){}var n=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function t(){}return function(e){var r;return t.prototype=e,r=new t,t.prototype=null,r}}(),i={},s=i.lib={},a=s.Base={extend:function(t){var e=o(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},c=s.WordArray=a.extend({init:function(t,r){t=this.words=t||[],this.sigBytes=r!=e?r:4*t.length},toString:function(t){return(t||l).stringify(this)},concat:function(t){var e=this.words,r=t.words,n=this.sigBytes,o=t.sigBytes;if(this.clamp(),n%4)for(var i=0;i<o;i++){var s=r[i>>>2]>>>24-i%4*8&255;e[n+i>>>2]|=s<<24-(n+i)%4*8}else for(var a=0;a<o;a+=4)e[n+a>>>2]=r[a>>>2];return this.sigBytes+=o,this},clamp:function(){var e=this.words,r=this.sigBytes;e[r>>>2]&=4294967295<<32-r%4*8,e.length=t.ceil(r/4)},clone:function(){var t=a.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],r=0;r<t;r+=4)e.push(n());return new c.init(e,t)}}),u=i.enc={},l=u.Hex={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],o=0;o<r;o++){var i=e[o>>>2]>>>24-o%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n+=2)r[n>>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new c.init(r,e/2)}},f=u.Latin1={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],o=0;o<r;o++){var i=e[o>>>2]>>>24-o%4*8&255;n.push(String.fromCharCode(i))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n++)r[n>>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new c.init(r,e)}},p=u.Utf8={stringify:function(t){try{return decodeURIComponent(escape(f.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return f.parse(unescape(encodeURIComponent(t)))}},d=s.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=p.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var r,n=this._data,o=n.words,i=n.sigBytes,s=this.blockSize,a=i/(4*s),u=(a=e?t.ceil(a):t.max((0|a)-this._minBufferSize,0))*s,l=t.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 t=a.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});s.Hasher=d.extend({cfg:a.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,r){return new t.init(r).finalize(e)}},_createHmacHelper:function(t){return function(e,r){return new h.HMAC.init(t,r).finalize(e)}}});var h=i.algo={};return i}(Math),r)}(gn)),bn}!function(t,e){t.exports=mn().enc.Utf8}({get exports(){return hn},set exports(t){hn=t}});var wn=hn,vn={};!function(t,e){var r;t.exports=(r=mn(),function(){var t=r,e=t.lib.WordArray;function n(t,r,n){for(var o=[],i=0,s=0;s<r;s++)if(s%4){var a=n[t.charCodeAt(s-1)]<<s%4*2|n[t.charCodeAt(s)]>>>6-s%4*2;o[i>>>2]|=a<<24-i%4*8,i++}return e.create(o,i)}t.enc.Base64={stringify:function(t){var e=t.words,r=t.sigBytes,n=this._map;t.clamp();for(var o=[],i=0;i<r;i+=3)for(var s=(e[i>>>2]>>>24-i%4*8&255)<<16|(e[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|e[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(t){var e=t.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=t.indexOf(s);-1!==a&&(e=a)}return n(t,e,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),r.enc.Base64)}({get exports(){return vn},set exports(t){vn=t}});var On=vn;function jn(t){if(!Dr(t))return"";return On.parse(t).toString(wn)}function Sn(t){if(!Ur())return Promise.reject("no window");try{return function(t){return t.arrayBuffer()}(t)}catch(e){return function(t){let e=kr(),r=new FileReader;return r.onload=function(){let t=r.result;e.resolve(t)},r.onerror=function(t){e.reject(t)},r.readAsArrayBuffer(t),e}(t)}}function An(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}var En,_n=function(t,e,r){for(var n=-1,o=Object(t),i=r(t),s=i.length;s--;){var a=i[En?s:++n];if(!1===e(o[a],a,o))break}return t};function Rn(t){return Le(t)&&"[object Arguments]"==Fe(t)}var xn=Object.prototype,Tn=xn.hasOwnProperty,Pn=xn.propertyIsEnumerable,Un=Rn(function(){return arguments}())?Rn:function(t){return Le(t)&&Tn.call(t,"callee")&&!Pn.call(t,"callee")},Cn=Un;var Nn="object"==typeof exports&&exports&&!exports.nodeType&&exports,Bn=Nn&&"object"==typeof module&&module&&!module.nodeType&&module,kn=Bn&&Bn.exports===Nn?_e.Buffer:void 0,Fn=(kn?kn.isBuffer:void 0)||function(){return!1},Ln=9007199254740991,Dn=/^(?:0|[1-9]\d*)$/;function Mn(t,e){var r=typeof t;return!!(e=null==e?Ln:e)&&("number"==r||"symbol"!=r&&Dn.test(t))&&t>-1&&t%1==0&&t<e}var zn=9007199254740991;function In(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=zn}var qn={};qn["[object Float32Array]"]=qn["[object Float64Array]"]=qn["[object Int8Array]"]=qn["[object Int16Array]"]=qn["[object Int32Array]"]=qn["[object Uint8Array]"]=qn["[object Uint8ClampedArray]"]=qn["[object Uint16Array]"]=qn["[object Uint32Array]"]=!0,qn["[object Arguments]"]=qn["[object Array]"]=qn["[object ArrayBuffer]"]=qn["[object Boolean]"]=qn["[object DataView]"]=qn["[object Date]"]=qn["[object Error]"]=qn["[object Function]"]=qn["[object Map]"]=qn["[object Number]"]=qn["[object Object]"]=qn["[object RegExp]"]=qn["[object Set]"]=qn["[object String]"]=qn["[object WeakMap]"]=!1;var $n="object"==typeof exports&&exports&&!exports.nodeType&&exports,Hn=$n&&"object"==typeof module&&module&&!module.nodeType&&module,Jn=Hn&&Hn.exports===$n&&Ae.process,Wn=function(){try{var t=Hn&&Hn.require&&Hn.require("util").types;return t||Jn&&Jn.binding&&Jn.binding("util")}catch(t){}}(),Vn=Wn&&Wn.isTypedArray,Kn=Vn?function(t){return function(e){return t(e)}}(Vn):function(t){return Le(t)&&In(t.length)&&!!qn[Fe(t)]},Xn=Kn,Gn=Object.prototype.hasOwnProperty;function Qn(t,e){var r=Se(t),n=!r&&Cn(t),o=!r&&!n&&Fn(t),i=!r&&!n&&!o&&Xn(t),s=r||n||o||i,a=s?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],c=a.length;for(var u in t)!e&&!Gn.call(t,u)||s&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Mn(u,c))||a.push(u);return a}var Zn=Object.prototype;function Yn(t,e){return function(r){return t(e(r))}}var to=Yn(Object.keys,Object),eo=Object.prototype.hasOwnProperty;function ro(t){if(r=(e=t)&&e.constructor,e!==("function"==typeof r&&r.prototype||Zn))return to(t);var e,r,n=[];for(var o in Object(t))eo.call(t,o)&&"constructor"!=o&&n.push(o);return n}function no(t){return null!=t&&In(t.length)&&!Ve(t)}function oo(t){return no(t)?Qn(t):ro(t)}var io=function(t,e){return function(r,n){if(null==r)return r;if(!no(r))return t(r,n);for(var o=r.length,i=e?o:-1,s=Object(r);(e?i--:++i<o)&&!1!==n(s[i],i,s););return r}}((function(t,e){return t&&_n(t,e,oo)})),so=io;function ao(t){return t}function co(t,e){var r;return(Se(t)?An:so)(t,"function"==typeof(r=e)?r:ao)}function uo(t){return"[object Array]"===Object.prototype.toString.call(t)}function lo(t){if(Fr(t)){for(let e in t)return!1;return!0}return!1}function fo(t){return!!function(t){return"[object Undefined]"===Object.prototype.toString.call(t)}(t)||(!!function(t){return"[object Null]"===Object.prototype.toString.call(t)}(t)||(!!lo(t)||(!!function(t){return!(!Lr(t)||""!==t)}(t)||(!!function(t){return!!uo(t)&&0===t.length}(t)||!!Mr(t)))))}function po(t){return"[object ArrayBuffer]"===Object.prototype.toString.call(t)}function ho(t){return"[object Blob]"===Object.prototype.toString.call(t)}function yo(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)}function bo(t){return"[object Uint16Array]"===Object.prototype.toString.call(t)}function go(t){if(!(po(t)||ho(t)||yo(t)||bo(t)))return null;try{if(t.byteLength)return t.byteLength}catch(t){}try{if(t.length)return t.length}catch(t){}try{if(t.size)return t.size}catch(t){}return null}var mo=Yn(Object.getPrototypeOf,Object),wo="[object Object]",vo=Function.prototype,Oo=Object.prototype,jo=vo.toString,So=Oo.hasOwnProperty,Ao=jo.call(Object);var Eo="[object DOMException]",_o="[object Error]";function Ro(t){if(!Le(t))return!1;var e=Fe(t);return e==_o||e==Eo||"string"==typeof t.message&&"string"==typeof t.name&&!function(t){if(!Le(t)||Fe(t)!=wo)return!1;var e=mo(t);if(null===e)return!0;var r=So.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&jo.call(r)==Ao}(t)}function xo(t){if(!Dr(t))return new Uint8Array;let e;try{e=function(t){if(!Lr(t))return new Uint8Array;let e=On.parse(t),r=e.words,n=e.sigBytes,o=new Uint8Array(n);for(let t=0;t<n;t++){let e=r[t>>>2]>>>24-t%4*8&255;o[t]=e}return o}(function(t){if(!Dr(t))return"";let e=wn.parse(t);return On.stringify(e)}(t))}catch(t){return new Uint8Array}return e}var To="[object Boolean]";function Po(t){return!0===(e=t)||!1===e||Le(e)&&Fe(e)==To;var e}function Uo(t,e){return function(t,e,r,n,o,i){if(!zr(t))return null;if(!yo(e))return null;if(!nn(r))return null;if(!Po(n))return null;if(!nn(o))return null;if(!nn(i))return null;let s,a,c;t=rn(t);let u=8*i-o-1,l=(1<<u)-1,f=l>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?i-1:0,h=n?-1:1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),(t+=s+f>=1?p/c:p*Math.pow(2,1-f))*c>=2&&(s++,c/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(t*c-1)*Math.pow(2,o),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;e[r+d]=255&a,d+=h,a/=256,o-=8);for(s=s<<o|a,u+=o;u>0;e[r+d]=255&s,d+=h,s/=256,u-=8);return e[r+d-h]|=128*y,null}(t,e,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 Co(t){let e=[],r=[];if((!uo(n=t)||0===n.length||1===n.length&&fo(n[0]))&&!pn(t))return null;var n;let o=[],i=[];function s(t){o.push(go(t)),i.push(t)}try{let n=function(t){if(!Fr(t))return{results:"",binarys:[]};if(lo(t))return{results:"",binarys:[]};let e="",r=[];try{let n=-1;e=JSON.stringify(t,(function(t,e){if(yo(e)){n+=1;let t=`[Uint8Array]::${n}`;return r.push(e),t}if(bo(e)){n+=1;let t=`[Uint16Array]::${n}`;return r.push(e),t}if(po(e)){n+=1;let t=`[ArrayBuffer]::${n}`;return r.push(e),t}return Ro(e)&&(e=e.toString()),e}))}catch(t){}return{results:e,binarys:r}}(t);s(xo(n.results)),co(n.binarys,(t=>{s(t)}));let a=o,c=xo(JSON.stringify(a)),u=new Uint8Array(8);Uo(go(c),u),e.push(u),e.push(c),co(i,(t=>{e.push(t)})),co(e,(t=>{r=function(t,e){let r=go(t),n=go(e),o=new Uint8Array(r+n);return o.set(new Uint8Array(t),0),o.set(new Uint8Array(e),r),o}(r,t)}))}catch(t){return null}return r}function No(t){return function(t,e,r,n,o){if(!yo(t))return null;if(!nn(e))return null;if(!Po(r))return null;if(!nn(n))return null;if(!nn(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,p=r?1:-1,d=t[e+f];for(f+=p,i=d&(1<<-l)-1,d>>=-l,l+=a;l>0;i=256*i+t[e+f],f+=p,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=n;l>0;s=256*s+t[e+f],f+=p,l-=8);if(0===i)i=1-u;else{if(i===c)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,n),i-=u}return(d?-1:1)*s*Math.pow(2,i-n)}(t,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 Bo={};!function(t,e){var r;t.exports=(r=mn(),function(){if("function"==typeof ArrayBuffer){var t=r.lib.WordArray,e=t.init,n=t.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var r=t.byteLength,n=[],o=0;o<r;o++)n[o>>>2]|=t[o]<<24-o%4*8;e.call(this,n,r)}else e.apply(this,arguments)};n.prototype=t}}(),r.lib.WordArray)}({get exports(){return Bo},set exports(t){Bo=t}});var ko=Bo;function Fo(t){if(!yo(t))return"";let e;try{e=jn(function(t){return yo(t)?ko.create(t).toString(On):""}(t))}catch(t){return""}return e}function Lo(t){let e=null;if(!yo(t))return null;try{let r=8,n=t.slice(0,r),o=t.slice(r,go(t)),i=No(n),s=o.slice(0,i),a=o.slice(i,go(o)),c=Fo(s),u=function(t,e){let r=0,n=0,o=[];return co(e,(e=>{n=r+e;let i=t.slice(r,n);r=n,o.push(i)})),o}(a,JSON.parse(c));e=function(t){if(!pn(t))return{};let{results:e,binarys:r}=t;if(!Dr(e))return{};if(!uo(r))return{};let n={};try{n=JSON.parse(e,(function(t,e){if(Dr(e)){if(e.indexOf("[Uint8Array]::")>=0){let t=un(e.replace("[Uint8Array]::",""));return r[t]}if(e.indexOf("[Uint16Array]::")>=0){let t=un(e.replace("[Uint16Array]::",""));return r[t]}if(e.indexOf("[ArrayBuffer]::")>=0){let t=un(e.replace("[ArrayBuffer]::",""));return r[t]}}return e}))}catch(t){}return n}({results:Fo(u.shift()),binarys:u})}catch(t){}return e}function Do(t){if(!qr(t))throw new Error("fn is not a function");return function(){let e=kr(),r=null,n=null;try{r=t.apply(this,arguments)}catch(t){n=t}return null!==n?e.resolve({state:"error",msg:n}):dn(r)?r.then((t=>{e.resolve({state:"success",msg:t})})).catch((t=>{"cancelled"===Pr(t,"reason")?e.resolve({state:"cancelled",msg:""}):e.resolve({state:"error",msg:t})})):e.resolve({state:"success",msg:r}),e}}const Mo=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 zo(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!ho(t)&&(r=t,"[object File]"!==Object.prototype.toString.call(r)))return console.log("inp",t),Promise.reject("inp is not a Blob or File");var r;let n=Pr(e,"chunkSize");zr(n)||(n=67108864),n=rn(n);let{create64:o}=await async function(){return function(t){const{exports:{mem:e,xxh32:r,xxh64:n,init32:o,update32:i,digest32:s,init64:a,update64:c,digest64:u}}=t;let l=new Uint8Array(e.buffer);function f(t,r){if(e.buffer.byteLength<t+r){const n=Math.ceil((t+r-e.buffer.byteLength)/65536);e.grow(n),l=new Uint8Array(e.buffer)}}function p(t,e,r,n,o,i){f(t);const s=new Uint8Array(t);return l.set(s),r(0,e),s.set(l.subarray(0,t)),{update(e){let r;return l.set(s),"string"==typeof e?(f(3*e.length,t),r=b.encodeInto(e,l.subarray(t)).written):(f(e.byteLength,t),l.set(e,t),r=e.byteLength),n(0,t,r),s.set(l.subarray(0,t)),this},digest:()=>(l.set(s),i(o(0)))}}function d(t){return t>>>0}const h=2n**64n-1n;function y(t){return t&h}const b=new TextEncoder,g=0,m=0n;function w(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g;return f(3*t.length,0),d(r(0,b.encodeInto(t,l).written,e))}function v(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m;return f(3*t.length,0),y(n(0,b.encodeInto(t,l).written,e))}return{h32:w,h32ToString:function(t){return w(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:g).toString(16).padStart(8,"0")},h32Raw:function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g;return f(t.byteLength,0),l.set(t),d(r(0,t.byteLength,e))},create32:function(){return p(48,arguments.length>0&&void 0!==arguments[0]?arguments[0]:g,o,i,s,d)},h64:v,h64ToString:function(t){return v(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:m).toString(16).padStart(16,"0")},h64Raw:function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m;return f(t.byteLength,0),l.set(t),y(n(0,t.byteLength,e))},create64:function(){return p(88,arguments.length>0&&void 0!==arguments[0]?arguments[0]:m,a,c,u,y)}}}((await WebAssembly.instantiate(Mo)).instance)}(),i=o(),s=0;for(;s<t.size;){let e=t.slice(s,s+n),r=await e.arrayBuffer();i.update(new Uint8Array(r)),s+=n}return i.digest().toString(16).padStart(16,"0")}function Io(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function qo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Io(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Io(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}return function(t){let e=Pr(t,"url");Dr(e)||(e="http://localhost:8080");let r=Pr(t,"apiName");Dr(r)||(r="api");let n="";n="/"===function(t,e){if(!Dr(t))return"";if(!fn(e))return"";if(0===(e=un(e)))return"";let r=t.length-e;return r<0&&(r=0),t.substring(r,r+e)}(e,1)?e+r:e+"/"+r;let o=Pr(t,"getToken",null);qr(o)||(o=()=>"");let i=Pr(t,"tokenType");Dr(i)||(i="Bearer");let s=Pr(t,"sizeSlice");ln(s)||(s=1048576);let a=Pr(t,"retry");fn(a)||(a=3);let c=Ur()?"browser":"nodejs",u=new Br,l=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];setTimeout((()=>{u.emit(t,...r)}),1)},f=t=>{let e="";if("basic"===t)e=`${n}/main`;else if("upload-controller"===t)e=`${n}/ulctr`;else if("slice"===t)e=`${n}/slc`;else if("download-get-filename"===t)e=`${n}/dwgfn`;else if("download-get"===t)e=`${n}/dwgf`;else{if("download"!==t)throw new Error(`invalid type[${t}]`);e=`${n}/dw`}return e};async function p(t){let e;return e="browser"===c?await function(t){let e=kr();return Sn(t).then((t=>{let r=new Uint8Array(t);e.resolve(r)})).catch((t=>{e.reject(t)})),e}(t):new Uint8Array(t),e}async function d(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Pr(r,"headers");Fr(n)||(n={});let s=Pr(r,"dataType","");"blob"!==s&&"fmd"!==s&&"json"!==s&&(s="blob");let a=Pr(r,"cbProgress");qr(a)||(a=()=>{});let u=f(t),d=kr(),h=null,y={};if("blob"===s)y={"Content-Type":"application/octet-stream"},h=e;else if("fmd"===s){let t;if("browser"===c)t=new FormData;else{if(!qr(r.FormData))throw l("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");t=new r.FormData({maxDataSize:1099511627776})}t.append("bb",e),"nodejs"===c&&(y={"Content-Type":`multipart/form-data; boundary=${t.getBoundary()}`}),h=t}else"json"===s&&(y={"Content-Type":"application/json"},h=JSON.stringify(e));let b="blob";"nodejs"===c&&(b="arraybuffer","download"===t&&(b="stream"));let g=o();dn(g)&&(g=await g);let m={method:"POST",url:u,data:h,headers:qo(qo({Authorization:`${i} ${g}`},y),n),timeout:36e5,maxContentLength:1/0,maxBodyLength:1/0,responseType:b,onUploadProgress:function(t){let e=0,r=t.loaded,n=t.total;ln(n)&&(e=100*r/n),a({prog:Math.floor(e),p:r,m:"upload"})},onDownloadProgress:function(t){let e=0,r=t.loaded,n=t.total;ln(n)&&(e=100*r/n),a({prog:Math.floor(e),p:r,m:"download"})}};return je(m).then((async e=>{if("download"===t)return void await(async t=>{let e=kr(),n=Pr(t,"headers['return-type']",""),o=Pr(t,"headers['return-msg']","");if("error"===n)return e.reject(o),e;let i=(t=>{let e="unknow";try{let r=/filename="(.+?)"/.exec(t);e=r?r[1]:"unknown"}catch(t){}return e})(Pr(t,"headers['content-disposition']",""));i=jn(i);let s=Pr(t,"data");if("browser"===c)try{let t=URL.createObjectURL(s),r=document.createElement("a");r.href=t,r.download=i,document.body.appendChild(r),r.click(),r.remove(),URL.revokeObjectURL(t),e.resolve(i)}catch(t){console.log(t),e.reject(t)}else try{let t="path",n="fs",o=await import(t),a=await import(n),c=Pr(r,"fdDownload","");a.mkdirSync(c,{recursive:!0});let u=o.resolve(c,i),l=a.createWriteStream(u);s.pipe(l),l.on("finish",(()=>{e.resolve(u)})),l.on("error",(t=>{e.reject(t)}))}catch(t){e.reject(t)}return e})(e).then((t=>{d.resolve(t)})).catch((t=>{d.reject(t)}));let n=Pr(e,"data"),o=Lo(await p(n));if(!pn(o))return l("error","data is not an effective object"),void d.reject("data is not an effective object");Ir(o,"success")?d.resolve(o.success):Ir(o,"error")?(l("error",o.error),d.reject(o.error)):(l("error","invalid data"),d.reject("invalid data"))})).catch((async t=>{let e=null,r=Pr(t,"response.statusText")||Pr(t,"message"),n=Pr(t,"response.data")||Pr(t,"stack");if(r)e=r;else if(n)e=n;else{try{t=t.toJSON()}catch(n){}l("error",t),e="Can not connect to server."}"Network Error"===e&&(e="Network Error. Make sure your space of hard drive is large enough or blocking by browser plugins."),d.reject(e)})),d}async function h(t,e,r){let n=null;try{n=function(t){let e;return e="browser"===c?new Blob([t.buffer]):Buffer.from(t),e}(Co(e))}catch(t){return Promise.reject(t)}return await d(t,n,{dataType:"blob",cbProgress:r})}async function y(t){let e=null;return e="browser"===c?t:new Blob([t]),await zo(e)}return u.execute=async function(t,e,r){let n={func:t,input:e},o="",i=null;return await async function(t,e,r){let n=Do(h),o=await n(t,e,r),i=0;for(;"error"===o.state&&(i+=1,!(i>a));)console.log(`retry n=${i}`),o=await n(t,e,r);return"success"===o.state?o.msg:Promise.reject(o.msg)}("basic",n,r).then((t=>Dr(t)?(o="error",void(i=t)):pn(t)?Ir(t,"output")?(o="success",void(i=t.output)):(console.log("invalid msg.output",t),o="error",void(i="invalid msg.output")):(console.log("msg is not an effective object",t),o="error",void(i="msg is not an effective object")))).catch((t=>{o="error",i=t})),""===o?(l("error","invalid state"),Promise.reject("invalid state")):"error"===o?Promise.reject(i):i},u.upload=async function(t,e,r){return async function(t,e,r){let n=0;if(0===n)try{n=e.size,n=un(n)}catch(t){}if(0===n)try{n=e.length,n=un(n)}catch(t){}0===n&&(n=1);let o=n,i=Math.ceil(o/s),c=0,u=()=>{c++;let t=c/i;r({prog:.99*t*100,p:t*o,m:"upload"})},l=t=>{let e=t.prog;"download"===t.m&&100===e&&r({prog:100,p:o,m:"upload"})},f=await y(e),p=await d("upload-controller",{mode:"check-total-hash",fileHash:f,filename:t,fileSize:o},{dataType:"json"});if(p.bAllHash)return l({prog:100,m:"download"}),{filename:t,path:p.path};if(p.slks.length>0){let t=[];for(let r=0;r<p.slks.length;r++){let n=p.slks[r],i=n*s,a=Math.min(i+s,o),c=e.slice(i,a),u=await y(c);t.push({i:n,h:u})}let r=await d("upload-controller",{mode:"check-slices-hash",fileHash:f,fileSliceHashs:t},{dataType:"json"});p.slks=r.slks}let h=f;for(let t=0;t<i;t++){if(p.slks.indexOf(t)>=0){u();continue}let r=t*s,n=Math.min(r+s,o),c=e.slice(r,n),l=async()=>{let e={"chunk-index":t,"chunk-total":i,"package-id":h},r=await d("slice",c,{headers:e,dataType:"blob",cbProgress:t=>{}});return u(),r},f=async()=>{let t=Do(l),e=await t(),r=0;for(;"error"===e.state&&(r+=1,!(r>a));)console.log(`retry n=${r}`),e=await t();return"success"===e.state?e.msg:Promise.reject(e.msg)};await f()}let b=await d("upload-controller",{mode:"merge-slices-push",fileHash:f,chunkTotal:i},{dataType:"json"}),g=await(()=>{let e=kr(),r=b.queueId,n=setInterval((()=>{d("upload-controller",{mode:"merge-slices-get",fileHash:f,filename:t,queueId:r},{dataType:"json"}).then((t=>{"success"===t.state?(clearInterval(n),l({prog:100,m:"download"}),e.resolve(t.msg)):"error"===t.state&&(console.log("merge-slices-get error",t),clearInterval(n),e.resolve(t.msg))})).catch((t=>{console.log("merge-slices-get catch",t)}))}),2e3);return e})();return g}(t,e,r)},u.download=async function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return"browser"===c?async function(t,e){let r=o();dn(r)&&(r=await r);let n={fileId:t},i=Pr(await d("download-get-filename",n,{dataType:"json"}),"filename",""),s=`${f("download-get")}?fileId=${t}&token=${r}`,a=document.createElement("a");return a.href=s,a.download=i,a.click(),i}(t):async function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={fileId:t};return await d("download",n,qo(qo({},r),{},{dataType:"json",cbProgress:e}))}(t,e,r)},u}}));
7
7
  //# sourceMappingURL=w-converhp-client.umd.js.map