w-converhp 2.0.27 → 2.0.29

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