request-5c541146.js 42 KB

123456789
  1. import{Z as ae,aa as ce,ab as xe}from"./index-8d0bf0b2.js";function I0(e,t){return function(){return e.apply(t,arguments)}}const{toString:fe}=Object.prototype,{getPrototypeOf:h0}=Object,e0=(e=>t=>{const n=fe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),F=e=>(e=e.toLowerCase(),t=>e0(t)===e),t0=e=>t=>typeof t===e,{isArray:J}=Array,$=t0("undefined");function ue(e){return e!==null&&!$(e)&&e.constructor!==null&&!$(e.constructor)&&P(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const k0=F("ArrayBuffer");function le(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&k0(e.buffer),t}const de=t0("string"),P=t0("function"),M0=t0("number"),n0=e=>e!==null&&typeof e=="object",pe=e=>e===!0||e===!1,G=e=>{if(e0(e)!=="object")return!1;const t=h0(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},he=F("Date"),me=F("File"),ye=F("Blob"),we=F("FileList"),Ae=e=>n0(e)&&P(e.pipe),Ee=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||P(e.append)&&((t=e0(e))==="formdata"||t==="object"&&P(e.toString)&&e.toString()==="[object FormData]"))},be=F("URLSearchParams"),Se=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function K(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),J(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let c;for(r=0;r<i;r++)c=o[r],t.call(null,e[c],c,e)}}function H0(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const q0=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),J0=e=>!$(e)&&e!==q0;function u0(){const{caseless:e}=J0(this)&&this||{},t={},n=(r,s)=>{const o=e&&H0(t,s)||s;G(t[o])&&G(r)?t[o]=u0(t[o],r):G(r)?t[o]=u0({},r):J(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&K(arguments[r],n);return t}const Ce=(e,t,n,{allOwnKeys:r}={})=>(K(t,(s,o)=>{n&&P(s)?e[o]=I0(s,n):e[o]=s},{allOwnKeys:r}),e),Oe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Re=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Te=(e,t,n,r)=>{let s,o,i;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&h0(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ge=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Ne=e=>{if(!e)return null;if(J(e))return e;let t=e.length;if(!M0(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Pe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&h0(Uint8Array)),Ue=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},Fe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Be=F("HTMLFormElement"),De=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),O0=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ve=F("RegExp"),z0=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};K(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},_e=e=>{z0(e,(t,n)=>{if(P(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(P(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Le=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return J(e)?r(e):r(String(e).split(t)),n},je=()=>{},Ie=(e,t)=>(e=+e,Number.isFinite(e)?e:t),a0="abcdefghijklmnopqrstuvwxyz",R0="0123456789",$0={DIGIT:R0,ALPHA:a0,ALPHA_DIGIT:a0+a0.toUpperCase()+R0},ke=(e=16,t=$0.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Me(e){return!!(e&&P(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const He=e=>{const t=new Array(10),n=(r,s)=>{if(n0(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=J(r)?[]:{};return K(r,(i,c)=>{const u=n(i,s+1);!$(u)&&(o[c]=u)}),t[s]=void 0,o}}return r};return n(e,0)},qe=F("AsyncFunction"),Je=e=>e&&(n0(e)||P(e))&&P(e.then)&&P(e.catch),a={isArray:J,isArrayBuffer:k0,isBuffer:ue,isFormData:Ee,isArrayBufferView:le,isString:de,isNumber:M0,isBoolean:pe,isObject:n0,isPlainObject:G,isUndefined:$,isDate:he,isFile:me,isBlob:ye,isRegExp:ve,isFunction:P,isStream:Ae,isURLSearchParams:be,isTypedArray:Pe,isFileList:we,forEach:K,merge:u0,extend:Ce,trim:Se,stripBOM:Oe,inherits:Re,toFlatObject:Te,kindOf:e0,kindOfTest:F,endsWith:ge,toArray:Ne,forEachEntry:Ue,matchAll:Fe,isHTMLForm:Be,hasOwnProperty:O0,hasOwnProp:O0,reduceDescriptors:z0,freezeMethods:_e,toObjectSet:Le,toCamelCase:De,noop:je,toFiniteNumber:Ie,findKey:H0,global:q0,isContextDefined:J0,ALPHABET:$0,generateString:ke,isSpecCompliantForm:Me,toJSONObject:He,isAsyncFn:qe,isThenable:Je};function b(e,t,n,r,s){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),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}a.inherits(b,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:a.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const K0=b.prototype,V0={};["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=>{V0[e]={value:e}});Object.defineProperties(b,V0);Object.defineProperty(K0,"isAxiosError",{value:!0});b.from=(e,t,n,r,s,o)=>{const i=Object.create(K0);return a.toFlatObject(e,i,function(u){return u!==Error.prototype},c=>c!=="isAxiosError"),b.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const ze=null;function l0(e){return a.isPlainObject(e)||a.isArray(e)}function W0(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function T0(e,t,n){return e?e.concat(t).map(function(s,o){return s=W0(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function $e(e){return a.isArray(e)&&!e.some(l0)}const Ke=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function r0(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,O){return!a.isUndefined(O[d])});const r=n.metaTokens,s=n.visitor||f,o=n.dots,i=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function x(p){if(p===null)return"";if(a.isDate(p))return p.toISOString();if(!u&&a.isBlob(p))throw new b("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(p)||a.isTypedArray(p)?u&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function f(p,d,O){let E=p;if(p&&!O&&typeof p=="object"){if(a.endsWith(d,"{}"))d=r?d:d.slice(0,-2),p=JSON.stringify(p);else if(a.isArray(p)&&$e(p)||(a.isFileList(p)||a.endsWith(d,"[]"))&&(E=a.toArray(p)))return d=W0(d),E.forEach(function(T,g){!(a.isUndefined(T)||T===null)&&t.append(i===!0?T0([d],g,o):i===null?d:d+"[]",x(T))}),!1}return l0(p)?!0:(t.append(T0(O,d,o),x(p)),!1)}const m=[],C=Object.assign(Ke,{defaultVisitor:f,convertValue:x,isVisitable:l0});function S(p,d){if(!a.isUndefined(p)){if(m.indexOf(p)!==-1)throw Error("Circular reference detected in "+d.join("."));m.push(p),a.forEach(p,function(E,h){(!(a.isUndefined(E)||E===null)&&s.call(t,E,a.isString(h)?h.trim():h,d,C))===!0&&S(E,d?d.concat(h):[h])}),m.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return S(e),t}function g0(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function m0(e,t){this._pairs=[],e&&r0(e,this,t)}const G0=m0.prototype;G0.append=function(t,n){this._pairs.push([t,n])};G0.toString=function(t){const n=t?function(r){return t.call(this,r,g0)}:g0;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Ve(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function X0(e,t,n){if(!t)return e;const r=n&&n.encode||Ve,s=n&&n.serialize;let o;if(s?o=s(t,n):o=a.isURLSearchParams(t)?t.toString():new m0(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class We{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const N0=We,Z0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ge=typeof URLSearchParams<"u"?URLSearchParams:m0,Xe=typeof FormData<"u"?FormData:null,Ze=typeof Blob<"u"?Blob:null,Qe=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Ye=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),U={isBrowser:!0,classes:{URLSearchParams:Ge,FormData:Xe,Blob:Ze},isStandardBrowserEnv:Qe,isStandardBrowserWebWorkerEnv:Ye,protocols:["http","https","file","blob","url","data"]};function et(e,t){return r0(e,new U.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return U.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function tt(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function nt(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function Q0(e){function t(n,r,s,o){let i=n[o++];const c=Number.isFinite(+i),u=o>=n.length;return i=!i&&a.isArray(s)?s.length:i,u?(a.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!c):((!s[i]||!a.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&a.isArray(s[i])&&(s[i]=nt(s[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(tt(r),s,n,0)}),n}return null}function rt(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const y0={transitional:Z0,adapter:U.isNode?"http":"xhr",transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s&&s?JSON.stringify(Q0(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return et(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return r0(c?{"files[]":t}:t,u&&new u,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),rt(t)):t}],transformResponse:[function(t){const n=this.transitional||y0.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&a.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?b.from(c,b.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:U.classes.FormData,Blob:U.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{y0.headers[e]={}});const w0=y0,st=a.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"]),ot=e=>{const t={};let n,r,s;return e&&e.split(`
  2. `).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&st[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},P0=Symbol("internals");function z(e){return e&&String(e).trim().toLowerCase()}function X(e){return e===!1||e==null?e:a.isArray(e)?e.map(X):String(e)}function it(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const at=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function c0(e,t,n,r,s){if(a.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function ct(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function xt(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}class s0{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(c,u,x){const f=z(u);if(!f)throw new Error("header name must be a non-empty string");const m=a.findKey(s,f);(!m||s[m]===void 0||x===!0||x===void 0&&s[m]!==!1)&&(s[m||u]=X(c))}const i=(c,u)=>a.forEach(c,(x,f)=>o(x,f,u));return a.isPlainObject(t)||t instanceof this.constructor?i(t,n):a.isString(t)&&(t=t.trim())&&!at(t)?i(ot(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=z(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return it(s);if(a.isFunction(n))return n.call(this,s,r);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=z(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||c0(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=z(i),i){const c=a.findKey(r,i);c&&(!n||c0(r,r[c],c,n))&&(delete r[c],s=!0)}}return a.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||c0(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return a.forEach(this,(s,o)=>{const i=a.findKey(r,o);if(i){n[i]=X(s),delete n[o];return}const c=t?ct(o):String(o).trim();c!==o&&delete n[o],n[c]=X(s),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
  3. `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[P0]=this[P0]={accessors:{}}).accessors,s=this.prototype;function o(i){const c=z(i);r[c]||(xt(s,i),r[c]=!0)}return a.isArray(t)?t.forEach(o):o(t),this}}s0.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(s0.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(s0);const v=s0;function x0(e,t){const n=this||w0,r=t||n,s=v.from(r.headers);let o=r.data;return a.forEach(e,function(c){o=c.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function Y0(e){return!!(e&&e.__CANCEL__)}function V(e,t,n){b.call(this,e??"canceled",b.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(V,b,{__CANCEL__:!0});function ft(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new b("Request failed with status code "+n.status,[b.ERR_BAD_REQUEST,b.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const ut=U.isStandardBrowserEnv?function(){return{write:function(n,r,s,o,i,c){const u=[];u.push(n+"="+encodeURIComponent(r)),a.isNumber(s)&&u.push("expires="+new Date(s).toGMTString()),a.isString(o)&&u.push("path="+o),a.isString(i)&&u.push("domain="+i),c===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function lt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function dt(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function ee(e,t){return e&&!lt(t)?dt(e,t):t}const pt=U.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(i){const c=a.isString(i)?s(i):i;return c.protocol===r.protocol&&c.host===r.host}}():function(){return function(){return!0}}();function ht(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function mt(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(u){const x=Date.now(),f=r[o];i||(i=x),n[s]=u,r[s]=x;let m=o,C=0;for(;m!==s;)C+=n[m++],m=m%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),x-i<t)return;const S=f&&x-f;return S?Math.round(C*1e3/S):void 0}}function U0(e,t){let n=0;const r=mt(50,250);return s=>{const o=s.loaded,i=s.lengthComputable?s.total:void 0,c=o-n,u=r(c),x=o<=i;n=o;const f={loaded:o,total:i,progress:i?o/i:void 0,bytes:c,rate:u||void 0,estimated:u&&i&&x?(i-o)/u:void 0,event:s};f[t?"download":"upload"]=!0,e(f)}}const yt=typeof XMLHttpRequest<"u",wt=yt&&function(e){return new Promise(function(n,r){let s=e.data;const o=v.from(e.headers).normalize(),i=e.responseType;let c;function u(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}a.isFormData(s)&&(U.isStandardBrowserEnv||U.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.setContentType("multipart/form-data;",!1));let x=new XMLHttpRequest;if(e.auth){const S=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(S+":"+p))}const f=ee(e.baseURL,e.url);x.open(e.method.toUpperCase(),X0(f,e.params,e.paramsSerializer),!0),x.timeout=e.timeout;function m(){if(!x)return;const S=v.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),d={data:!i||i==="text"||i==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:S,config:e,request:x};ft(function(E){n(E),u()},function(E){r(E),u()},d),x=null}if("onloadend"in x?x.onloadend=m:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(m)},x.onabort=function(){x&&(r(new b("Request aborted",b.ECONNABORTED,e,x)),x=null)},x.onerror=function(){r(new b("Network Error",b.ERR_NETWORK,e,x)),x=null},x.ontimeout=function(){let p=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const d=e.transitional||Z0;e.timeoutErrorMessage&&(p=e.timeoutErrorMessage),r(new b(p,d.clarifyTimeoutError?b.ETIMEDOUT:b.ECONNABORTED,e,x)),x=null},U.isStandardBrowserEnv){const S=(e.withCredentials||pt(f))&&e.xsrfCookieName&&ut.read(e.xsrfCookieName);S&&o.set(e.xsrfHeaderName,S)}s===void 0&&o.setContentType(null),"setRequestHeader"in x&&a.forEach(o.toJSON(),function(p,d){x.setRequestHeader(d,p)}),a.isUndefined(e.withCredentials)||(x.withCredentials=!!e.withCredentials),i&&i!=="json"&&(x.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&x.addEventListener("progress",U0(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&x.upload&&x.upload.addEventListener("progress",U0(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=S=>{x&&(r(!S||S.type?new V(null,e,x):S),x.abort(),x=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const C=ht(f);if(C&&U.protocols.indexOf(C)===-1){r(new b("Unsupported protocol "+C+":",b.ERR_BAD_REQUEST,e));return}x.send(s||null)})},Z={http:ze,xhr:wt};a.forEach(Z,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const te={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let s=0;s<t&&(n=e[s],!(r=a.isString(n)?Z[n.toLowerCase()]:n));s++);if(!r)throw r===!1?new b(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(a.hasOwnProp(Z,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!a.isFunction(r))throw new TypeError("adapter is not a function");return r},adapters:Z};function f0(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new V(null,e)}function F0(e){return f0(e),e.headers=v.from(e.headers),e.data=x0.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),te.getAdapter(e.adapter||w0.adapter)(e).then(function(r){return f0(e),r.data=x0.call(e,e.transformResponse,r),r.headers=v.from(r.headers),r},function(r){return Y0(r)||(f0(e),r&&r.response&&(r.response.data=x0.call(e,e.transformResponse,r.response),r.response.headers=v.from(r.response.headers))),Promise.reject(r)})}const B0=e=>e instanceof v?e.toJSON():e;function q(e,t){t=t||{};const n={};function r(x,f,m){return a.isPlainObject(x)&&a.isPlainObject(f)?a.merge.call({caseless:m},x,f):a.isPlainObject(f)?a.merge({},f):a.isArray(f)?f.slice():f}function s(x,f,m){if(a.isUndefined(f)){if(!a.isUndefined(x))return r(void 0,x,m)}else return r(x,f,m)}function o(x,f){if(!a.isUndefined(f))return r(void 0,f)}function i(x,f){if(a.isUndefined(f)){if(!a.isUndefined(x))return r(void 0,x)}else return r(void 0,f)}function c(x,f,m){if(m in t)return r(x,f);if(m in e)return r(void 0,x)}const u={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(x,f)=>s(B0(x),B0(f),!0)};return a.forEach(Object.keys(Object.assign({},e,t)),function(f){const m=u[f]||s,C=m(e[f],t[f],f);a.isUndefined(C)&&m!==c||(n[f]=C)}),n}const ne="1.5.0",A0={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{A0[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const D0={};A0.transitional=function(t,n,r){function s(o,i){return"[Axios v"+ne+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,c)=>{if(t===!1)throw new b(s(i," has been removed"+(n?" in "+n:"")),b.ERR_DEPRECATED);return n&&!D0[i]&&(D0[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,c):!0}};function At(e,t,n){if(typeof e!="object")throw new b("options must be an object",b.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const c=e[o],u=c===void 0||i(c,o,e);if(u!==!0)throw new b("option "+o+" must be "+u,b.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new b("Unknown option "+o,b.ERR_BAD_OPTION)}}const d0={assertOptions:At,validators:A0},L=d0.validators;class Y{constructor(t){this.defaults=t,this.interceptors={request:new N0,response:new N0}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=q(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&d0.assertOptions(r,{silentJSONParsing:L.transitional(L.boolean),forcedJSONParsing:L.transitional(L.boolean),clarifyTimeoutError:L.transitional(L.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:d0.assertOptions(s,{encode:L.function,serialize:L.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&a.merge(o.common,o[n.method]);o&&a.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),n.headers=v.concat(i,o);const c=[];let u=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(n)===!1||(u=u&&d.synchronous,c.unshift(d.fulfilled,d.rejected))});const x=[];this.interceptors.response.forEach(function(d){x.push(d.fulfilled,d.rejected)});let f,m=0,C;if(!u){const p=[F0.bind(this),void 0];for(p.unshift.apply(p,c),p.push.apply(p,x),C=p.length,f=Promise.resolve(n);m<C;)f=f.then(p[m++],p[m++]);return f}C=c.length;let S=n;for(m=0;m<C;){const p=c[m++],d=c[m++];try{S=p(S)}catch(O){d.call(this,O);break}}try{f=F0.call(this,S)}catch(p){return Promise.reject(p)}for(m=0,C=x.length;m<C;)f=f.then(x[m++],x[m++]);return f}getUri(t){t=q(this.defaults,t);const n=ee(t.baseURL,t.url);return X0(n,t.params,t.paramsSerializer)}}a.forEach(["delete","get","head","options"],function(t){Y.prototype[t]=function(n,r){return this.request(q(r||{},{method:t,url:n,data:(r||{}).data}))}});a.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,c){return this.request(q(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}Y.prototype[t]=n(),Y.prototype[t+"Form"]=n(!0)});const Q=Y;let Et=class re{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(c=>{r.subscribe(c),o=c}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,c){r.reason||(r.reason=new V(o,i,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new re(function(s){t=s}),cancel:t}}};const bt=Et;function St(e){return function(n){return e.apply(null,n)}}function Ct(e){return a.isObject(e)&&e.isAxiosError===!0}const p0={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(p0).forEach(([e,t])=>{p0[t]=e});const Ot=p0;function se(e){const t=new Q(e),n=I0(Q.prototype.request,t);return a.extend(n,Q.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return se(q(e,s))},n}const R=se(w0);R.Axios=Q;R.CanceledError=V;R.CancelToken=bt;R.isCancel=Y0;R.VERSION=ne;R.toFormData=r0;R.AxiosError=b;R.Cancel=R.CanceledError;R.all=function(t){return Promise.all(t)};R.spread=St;R.isAxiosError=Ct;R.mergeConfig=q;R.AxiosHeaders=v;R.formToJSON=e=>Q0(a.isHTMLForm(e)?new FormData(e):e);R.getAdapter=te.getAdapter;R.HttpStatusCode=Ot;R.default=R;const I=R;var oe={exports:{}};/*!
  4. * JavaScript Cookie v2.2.0
  5. * https://github.com/js-cookie/js-cookie
  6. *
  7. * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
  8. * Released under the MIT license
  9. */(function(e,t){(function(n){var r=!1;if(e.exports=n(),r=!0,!r){var s=window.Cookies,o=window.Cookies=n();o.noConflict=function(){return window.Cookies=s,o}}})(function(){function n(){for(var s=0,o={};s<arguments.length;s++){var i=arguments[s];for(var c in i)o[c]=i[c]}return o}function r(s){function o(i,c,u){var x;if(!(typeof document>"u")){if(arguments.length>1){if(u=n({path:"/"},o.defaults,u),typeof u.expires=="number"){var f=new Date;f.setMilliseconds(f.getMilliseconds()+u.expires*864e5),u.expires=f}u.expires=u.expires?u.expires.toUTCString():"";try{x=JSON.stringify(c),/^[\{\[]/.test(x)&&(c=x)}catch{}s.write?c=s.write(c,i):c=encodeURIComponent(String(c)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),i=encodeURIComponent(String(i)),i=i.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),i=i.replace(/[\(\)]/g,escape);var m="";for(var C in u)u[C]&&(m+="; "+C,u[C]!==!0&&(m+="="+u[C]));return document.cookie=i+"="+c+m}i||(x={});for(var S=document.cookie?document.cookie.split("; "):[],p=/(%[0-9A-Z]{2})+/g,d=0;d<S.length;d++){var O=S[d].split("="),E=O.slice(1).join("=");!this.json&&E.charAt(0)==='"'&&(E=E.slice(1,-1));try{var h=O[0].replace(p,decodeURIComponent);if(E=s.read?s.read(E,h):s(E,h)||E.replace(p,decodeURIComponent),this.json)try{E=JSON.parse(E)}catch{}if(i===h){x=E;break}i||(x[h]=E)}catch{}}return x}}return o.set=o,o.get=function(i){return o.call(o,i)},o.getJSON=function(){return o.apply({json:!0},[].slice.call(arguments))},o.defaults={},o.remove=function(i,c){o(i,"",n(c,{expires:-1}))},o.withConverter=r,o}return r(function(){})})})(oe);var Rt=oe.exports;const N=ae(Rt),M="CAE_token",H="CAE_userId";function Tt(){let e=[],t="0123456789abcdef";for(let r=0;r<36;r++)e[r]=t.substr(Math.floor(Math.random()*16),1);e[14]="4",e[19]=t.substr(e[19]&3|8,1),e[8]=e[13]=e[18]=e[23]="";var n=e.join("");return n}function ie(){return(N.get(M)==null||N.get(M)==""||N.get(M)=="undefined")&&gt(Tt()),N.get(M)}function gt(e){return N.set(M,e)}function Nt(){return N.remove(M)}function Pt(){return(N.get(H)==null||N.get(H)==""||N.get(H)=="undefined")&&Ut("guest"),N.get(H)}function Ut(e){return N.set(H,e)}function Ft(){return N.remove(H)}function Bt(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";this.encode=function(t){for(var n="",r,s,o,i,c,u,x,f=0;f<t.length;)r=t.charCodeAt(f++),s=t.charCodeAt(f++),o=t.charCodeAt(f++),i=r>>2,c=(r&3)<<4|s>>4,u=(s&15)<<2|o>>6,x=o&63,isNaN(s)?u=x=64:isNaN(o)&&(x=64),n=n+e.charAt(i)+e.charAt(c)+e.charAt(u)+e.charAt(x);return n},this.decode=function(t){var n="",r,s,o,i,c,u,x,f=0;for(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");f<t.length;)i=e.indexOf(t.charAt(f++)),c=e.indexOf(t.charAt(f++)),u=e.indexOf(t.charAt(f++)),x=e.indexOf(t.charAt(f++)),r=i<<2|c>>4,s=(c&15)<<4|u>>2,o=(u&3)<<6|x,n=n+String.fromCharCode(r),u!=64&&(n=n+String.fromCharCode(s)),x!=64&&(n=n+String.fromCharCode(o));return n}}const v0=new Bt;function _0(e,t,n,r,s,o){n&&(t=unescape(encodeURIComponent(t)));var i=new Array(16843776,0,65536,16843780,16842756,66564,4,65536,1024,16843776,16843780,1024,16778244,16842756,16777216,4,1028,16778240,16778240,66560,66560,16842752,16842752,16778244,65540,16777220,16777220,65540,0,1028,66564,16777216,65536,16843780,4,16842752,16843776,16777216,16777216,1024,16842756,65536,66560,16777220,1024,4,16778244,66564,16843780,65540,16842752,16778244,16777220,1028,66564,16843776,1028,16778240,16778240,0,65540,66560,0,16842756),c=new Array(-2146402272,-2147450880,32768,1081376,1048576,32,-2146435040,-2147450848,-2147483616,-2146402272,-2146402304,-2147483648,-2147450880,1048576,32,-2146435040,1081344,1048608,-2147450848,0,-2147483648,32768,1081376,-2146435072,1048608,-2147483616,0,1081344,32800,-2146402304,-2146435072,32800,0,1081376,-2146435040,1048576,-2147450848,-2146435072,-2146402304,32768,-2146435072,-2147450880,32,-2146402272,1081376,32,32768,-2147483648,32800,-2146402304,1048576,-2147483616,1048608,-2147450848,-2147483616,1048608,1081344,0,-2147450880,32800,-2147483648,-2146435040,-2146402272,1081344),u=new Array(520,134349312,0,134348808,134218240,0,131592,134218240,131080,134217736,134217736,131072,134349320,131080,134348800,520,134217728,8,134349312,512,131584,134348800,134348808,131592,134218248,131584,131072,134218248,8,134349320,512,134217728,134349312,134217728,131080,520,131072,134349312,134218240,0,512,131080,134349320,134218240,134217736,512,0,134348808,134218248,131072,134217728,134349320,8,131592,131584,134217736,134348800,134218248,520,134348800,131592,8,134348808,131584),x=new Array(8396801,8321,8321,128,8396928,8388737,8388609,8193,0,8396800,8396800,8396929,129,0,8388736,8388609,1,8192,8388608,8396801,128,8388608,8193,8320,8388737,1,8320,8388736,8192,8396928,8396929,129,8388736,8388609,8396800,8396929,129,0,0,8396800,8320,8388736,8388737,1,8396801,8321,8321,128,8396929,129,1,8192,8388609,8193,8396928,8388737,8193,8320,8388608,8396801,128,8388608,8192,8396928),f=new Array(256,34078976,34078720,1107296512,524288,256,1073741824,34078720,1074266368,524288,33554688,1074266368,1107296512,1107820544,524544,1073741824,33554432,1074266112,1074266112,0,1073742080,1107820800,1107820800,33554688,1107820544,1073742080,0,1107296256,34078976,33554432,1107296256,524544,524288,1107296512,256,33554432,1073741824,34078720,1107296512,1074266368,33554688,1073741824,1107820544,34078976,1074266368,256,33554432,1107820544,1107820800,524544,1107296256,1107820800,34078720,0,1074266112,1107296256,524544,33554688,1073742080,524288,0,1074266112,34078976,1073742080),m=new Array(536870928,541065216,16384,541081616,541065216,16,541081616,4194304,536887296,4210704,4194304,536870928,4194320,536887296,536870912,16400,0,4194320,536887312,16384,4210688,536887312,16,541065232,541065232,0,4210704,541081600,16400,4210688,541081600,536870912,536887296,16,541065232,4210688,541081616,4194304,16400,536870928,4194304,536887296,536870912,16400,536870928,541081616,4210688,541065216,4210704,541081600,0,541065232,16,16384,541065216,4210704,16384,4194320,536887312,0,541081600,536870912,4194320,536887312),C=new Array(2097152,69206018,67110914,0,2048,67110914,2099202,69208064,69208066,2097152,0,67108866,2,67108864,69206018,2050,67110912,2099202,2097154,67110912,67108866,69206016,69208064,2097154,69206016,2048,2050,69208066,2099200,2,67108864,2099200,67108864,2099200,2097152,67110914,67110914,69206018,69206018,2,2097154,67108864,67110912,2097152,69208064,2050,2099202,69208064,2050,67108866,69208066,69206016,2099200,0,2,69208066,0,2099202,69206016,2048,67108866,67110912,2048,2097154),S=new Array(268439616,4096,262144,268701760,268435456,268439616,64,268435456,262208,268697600,268701760,266240,268701696,266304,4096,64,268697600,268435520,268439552,4160,266240,262208,268697664,268701696,4160,0,0,268697664,268435520,268439552,266304,262144,266304,262144,268701696,4096,64,268697664,4096,266304,268439552,64,268435520,268697600,268697664,268435456,262144,268439616,0,268701760,262208,268435520,268697600,268439552,268439616,0,268701760,266240,266240,4160,4160,262208,268435456,268701696),p=Dt(e),d=0,O,E,h,T,g,y,l,_,A,w,B,E0,b0,S0,k=t.length,o0=0,C0=p.length==32?3:9;C0==3?_=n?new Array(0,32,2):new Array(30,-2,-2):_=n?new Array(0,32,2,62,30,-2,64,96,2):new Array(94,62,-2,32,64,2,30,-2,-2),o==2?t+=" ":o==1?n&&(h=8-k%8,t+=String.fromCharCode(h,h,h,h,h,h,h,h),h===8&&(k+=8)):o||(t+="\0\0\0\0\0\0\0\0");var D="",W="";for(r==1&&(A=s.charCodeAt(d++)<<24|s.charCodeAt(d++)<<16|s.charCodeAt(d++)<<8|s.charCodeAt(d++),B=s.charCodeAt(d++)<<24|s.charCodeAt(d++)<<16|s.charCodeAt(d++)<<8|s.charCodeAt(d++),d=0);d<k;){for(y=t.charCodeAt(d++)<<24|t.charCodeAt(d++)<<16|t.charCodeAt(d++)<<8|t.charCodeAt(d++),l=t.charCodeAt(d++)<<24|t.charCodeAt(d++)<<16|t.charCodeAt(d++)<<8|t.charCodeAt(d++),r==1&&(n?(y^=A,l^=B):(w=A,E0=B,A=y,B=l)),h=(y>>>4^l)&252645135,l^=h,y^=h<<4,h=(y>>>16^l)&65535,l^=h,y^=h<<16,h=(l>>>2^y)&858993459,y^=h,l^=h<<2,h=(l>>>8^y)&16711935,y^=h,l^=h<<8,h=(y>>>1^l)&1431655765,l^=h,y^=h<<1,y=y<<1|y>>>31,l=l<<1|l>>>31,E=0;E<C0;E+=3){for(b0=_[E+1],S0=_[E+2],O=_[E];O!=b0;O+=S0)T=l^p[O],g=(l>>>4|l<<28)^p[O+1],h=y,y=l,l=h^(c[T>>>24&63]|x[T>>>16&63]|m[T>>>8&63]|S[T&63]|i[g>>>24&63]|u[g>>>16&63]|f[g>>>8&63]|C[g&63]);h=y,y=l,l=h}y=y>>>1|y<<31,l=l>>>1|l<<31,h=(y>>>1^l)&1431655765,l^=h,y^=h<<1,h=(l>>>8^y)&16711935,y^=h,l^=h<<8,h=(l>>>2^y)&858993459,y^=h,l^=h<<2,h=(y>>>16^l)&65535,l^=h,y^=h<<16,h=(y>>>4^l)&252645135,l^=h,y^=h<<4,r==1&&(n?(A=y,B=l):(y^=w,l^=E0)),W+=String.fromCharCode(y>>>24,y>>>16&255,y>>>8&255,y&255,l>>>24,l>>>16&255,l>>>8&255,l&255),o0+=8,o0==512&&(D+=W,W="",o0=0)}if(D+=W,!n){if(o===1){var k=D.length,i0=0;k&&(i0=D.charCodeAt(k-1)),i0<=8&&(D=D.substring(0,k-i0))}D=decodeURIComponent(escape(D))}return D}function Dt(e){for(var t=new Array(0,4,536870912,536870916,65536,65540,536936448,536936452,512,516,536871424,536871428,66048,66052,536936960,536936964),n=new Array(0,1,1048576,1048577,67108864,67108865,68157440,68157441,256,257,1048832,1048833,67109120,67109121,68157696,68157697),r=new Array(0,8,2048,2056,16777216,16777224,16779264,16779272,0,8,2048,2056,16777216,16777224,16779264,16779272),s=new Array(0,2097152,134217728,136314880,8192,2105344,134225920,136323072,131072,2228224,134348800,136445952,139264,2236416,134356992,136454144),o=new Array(0,262144,16,262160,0,262144,16,262160,4096,266240,4112,266256,4096,266240,4112,266256),i=new Array(0,1024,32,1056,0,1024,32,1056,33554432,33555456,33554464,33555488,33554432,33555456,33554464,33555488),c=new Array(0,268435456,524288,268959744,2,268435458,524290,268959746,0,268435456,524288,268959744,2,268435458,524290,268959746),u=new Array(0,65536,2048,67584,536870912,536936448,536872960,536938496,131072,196608,133120,198656,537001984,537067520,537004032,537069568),x=new Array(0,262144,0,262144,2,262146,2,262146,33554432,33816576,33554432,33816576,33554434,33816578,33554434,33816578),f=new Array(0,268435456,8,268435464,0,268435456,8,268435464,1024,268436480,1032,268436488,1024,268436480,1032,268436488),m=new Array(0,32,0,32,1048576,1048608,1048576,1048608,8192,8224,8192,8224,1056768,1056800,1056768,1056800),C=new Array(0,16777216,512,16777728,2097152,18874368,2097664,18874880,67108864,83886080,67109376,83886592,69206016,85983232,69206528,85983744),S=new Array(0,4096,134217728,134221824,524288,528384,134742016,134746112,16,4112,134217744,134221840,524304,528400,134742032,134746128),p=new Array(0,4,256,260,0,4,256,260,1,5,257,261,1,5,257,261),d=e.length>8?3:1,O=new Array(32*d),E=new Array(0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0),h,T,g=0,y=0,l,_=0;_<d;_++){var A=e.charCodeAt(g++)<<24|e.charCodeAt(g++)<<16|e.charCodeAt(g++)<<8|e.charCodeAt(g++),w=e.charCodeAt(g++)<<24|e.charCodeAt(g++)<<16|e.charCodeAt(g++)<<8|e.charCodeAt(g++);l=(A>>>4^w)&252645135,w^=l,A^=l<<4,l=(w>>>-16^A)&65535,A^=l,w^=l<<-16,l=(A>>>2^w)&858993459,w^=l,A^=l<<2,l=(w>>>-16^A)&65535,A^=l,w^=l<<-16,l=(A>>>1^w)&1431655765,w^=l,A^=l<<1,l=(w>>>8^A)&16711935,A^=l,w^=l<<8,l=(A>>>1^w)&1431655765,w^=l,A^=l<<1,l=A<<8|w>>>20&240,A=w<<24|w<<8&16711680|w>>>8&65280|w>>>24&240,w=l;for(var B=0;B<E.length;B++)E[B]?(A=A<<2|A>>>26,w=w<<2|w>>>26):(A=A<<1|A>>>27,w=w<<1|w>>>27),A&=-15,w&=-15,h=t[A>>>28]|n[A>>>24&15]|r[A>>>20&15]|s[A>>>16&15]|o[A>>>12&15]|i[A>>>8&15]|c[A>>>4&15],T=u[w>>>28]|x[w>>>24&15]|f[w>>>20&15]|m[w>>>16&15]|C[w>>>12&15]|S[w>>>8&15]|p[w>>>4&15],l=(T>>>16^h)&65535,O[y++]=h^l,O[y++]=T^l<<16}return O}function L0(e,t,n){return{key:vt(e.slice(t,n)),vector:1}}function vt(e){for(var t=e.length;t<24;t++)e+="0";return e}var j0="/ECB/PKCS5Padding",_t={encrypt:function(e,t){var n=L0(e,0,24),r=v0;return r.encode(_0(n.key,t,1,0,j0,1))},decrypt:function(e,t){var n=L0(e,0,24),r=v0;return _0(n.key,r.decode(t),0,0,j0,1)}};const j=[],Lt=I.CancelToken;let jt="000000000"|"0000000";I.defaults.timeout=2e4;I.defaults.baseURL="/airopt";I.defaults.headers.post["Content-Type"]="application/json;charset=UTF-8";I.interceptors.request.use(e=>{const t=JSON.stringify(e.url)+(e.data?JSON.stringify(e.data):JSON.stringify(e.params));return e.cancelToken=new Lt(n=>{}),j.includes(t),j.push(t),e},e=>Promise.reject(e));I.interceptors.response.use(e=>{const t=JSON.stringify(e.config.url)+(e.config.data?JSON.stringify(e.config.data):JSON.stringify(e.config.params));if(j.splice(j.findIndex(n=>n===t),1),e.status===200){let{data:n}=e;return n.returnCode==jt?Promise.resolve(n):((n.returnMsg==="系统没有登录或会话超时!"||n.returnMsg==="用户验证失败!")&&(Nt(),Ft(),ce.replace({path:"/login"})),Promise.reject(n))}else return Promise.reject(e)},e=>{const{res:t}=e;if(t)return j.length=0,errorHandle(t.status,t.data.message),Promise.reject(t);if(e.message=="取消上传")return Promise.reject("cancel");if(e.message!="取消重复请求"){let n=e.message.indexOf("timeout")!=-1?{returnMsg:"请求超时"}:{returnMsg:"网络通讯异常"};return j.splice(j.findIndex(r=>r===Mt),1),Promise.reject(n)}});function It(e="service"){let t="";return e=="service"?t="/TransServlet":e=="manager"&&(t="/managersvr/TransServlet"),t}function kt(e,t){e.clientToken=ie()||"e47b87eec69545559d1e81e56626da68";let n=Pt()||"5f06c8bc77234f969d13e160b54c27e3";return e.userId=n,e.channelNo=t,e}const Mt=(e,t="service",n="post")=>{let r=It(t);return e=kt(e,t),new Promise((s,o)=>{n=="post"?I.post(r,e).then(i=>{s(i)}).catch(i=>{o(i)}):n=="get"&&I.get(r,{params:e}).then(i=>{s(i)}).catch(i=>{o(i)})})},qt=e=>{let t=ie()||xe.token;return _t.encrypt(t,e)};export{Ut as a,qt as e,Mt as r,gt as s};