request-4fbbe234.js 39 KB

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