ez-axios
Version:
25 lines • 84.9 kB
JavaScript
(function(ae,Te){typeof exports=="object"&&typeof module<"u"?Te(exports):typeof define=="function"&&define.amd?define(["exports"],Te):(ae=typeof globalThis<"u"?globalThis:ae||self,Te(ae.ezAxios={}))})(this,function(ae){"use strict";const Te={baseURL:"",mark:"",timeout:3e4,briefly:!0,loading:!0,headers:{},error:Ro,success:void 0};let Ar=Te;const Oo=e=>{Ar=Object.assign(Te,e)};function Ro(e){switch(e){case 404:console.error("网络请求不存在");break;case 401:console.error("401 未授权");break;case 500:console.error("服务器遇到错误,无法完成请求");break;default:console.error("通用错误")}}function Or(e,t){return function(){return e.apply(t,arguments)}}const{toString:Po}=Object.prototype,{getPrototypeOf:lt}=Object,{iterator:We,toStringTag:Rr}=Symbol,Ge=(e=>t=>{const n=Po.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ie=e=>(e=e.toLowerCase(),t=>Ge(t)===e),Je=e=>t=>typeof t===e,{isArray:Ce}=Array,Be=Je("undefined");function xo(e){return e!==null&&!Be(e)&&e.constructor!==null&&!Be(e.constructor)&&K(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Pr=ie("ArrayBuffer");function To(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Pr(e.buffer),t}const Co=Je("string"),K=Je("function"),xr=Je("number"),Ve=e=>e!==null&&typeof e=="object",Fo=e=>e===!0||e===!1,Ke=e=>{if(Ge(e)!=="object")return!1;const t=lt(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Rr in e)&&!(We in e)},No=ie("Date"),_o=ie("File"),qo=ie("Blob"),Do=ie("FileList"),Lo=e=>Ve(e)&&K(e.pipe),Io=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||K(e.append)&&((t=Ge(e))==="formdata"||t==="object"&&K(e.toString)&&e.toString()==="[object FormData]"))},$o=ie("URLSearchParams"),[Bo,Uo,Mo,ko]=["ReadableStream","Request","Response","Headers"].map(ie),jo=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ue(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Ce(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let s;for(r=0;r<a;r++)s=i[r],t.call(null,e[s],s,e)}}function Tr(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Ae=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Cr=e=>!Be(e)&&e!==Ae;function ut(){const{caseless:e}=Cr(this)&&this||{},t={},n=(r,o)=>{const i=e&&Tr(t,o)||o;Ke(t[i])&&Ke(r)?t[i]=ut(t[i],r):Ke(r)?t[i]=ut({},r):Ce(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Ue(arguments[r],n);return t}const zo=(e,t,n,{allOwnKeys:r}={})=>(Ue(t,(o,i)=>{n&&K(o)?e[i]=Or(o,n):e[i]=o},{allOwnKeys:r}),e),Ho=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Wo=(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)},Go=(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&<(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Jo=(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},Vo=e=>{if(!e)return null;if(Ce(e))return e;let t=e.length;if(!xr(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Ko=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&<(Uint8Array)),Qo=(e,t)=>{const r=(e&&e[We]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Xo=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Zo=ie("HTMLFormElement"),Yo=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Fr=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ea=ie("RegExp"),Nr=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ue(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},ta=e=>{Nr(e,(t,n)=>{if(K(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(K(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+"'")})}})},ra=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Ce(e)?r(e):r(String(e).split(t)),n},na=()=>{},oa=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function aa(e){return!!(e&&K(e.append)&&e[Rr]==="FormData"&&e[We])}const ia=e=>{const t=new Array(10),n=(r,o)=>{if(Ve(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=Ce(r)?[]:{};return Ue(r,(a,s)=>{const p=n(a,o+1);!Be(p)&&(i[s]=p)}),t[o]=void 0,i}}return r};return n(e,0)},sa=ie("AsyncFunction"),la=e=>e&&(Ve(e)||K(e))&&K(e.then)&&K(e.catch),_r=((e,t)=>e?setImmediate:t?((n,r)=>(Ae.addEventListener("message",({source:o,data:i})=>{o===Ae&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Ae.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",K(Ae.postMessage)),ua=typeof queueMicrotask<"u"?queueMicrotask.bind(Ae):typeof process<"u"&&process.nextTick||_r,h={isArray:Ce,isArrayBuffer:Pr,isBuffer:xo,isFormData:Io,isArrayBufferView:To,isString:Co,isNumber:xr,isBoolean:Fo,isObject:Ve,isPlainObject:Ke,isReadableStream:Bo,isRequest:Uo,isResponse:Mo,isHeaders:ko,isUndefined:Be,isDate:No,isFile:_o,isBlob:qo,isRegExp:ea,isFunction:K,isStream:Lo,isURLSearchParams:$o,isTypedArray:Ko,isFileList:Do,forEach:Ue,merge:ut,extend:zo,trim:jo,stripBOM:Ho,inherits:Wo,toFlatObject:Go,kindOf:Ge,kindOfTest:ie,endsWith:Jo,toArray:Vo,forEachEntry:Qo,matchAll:Xo,isHTMLForm:Zo,hasOwnProperty:Fr,hasOwnProp:Fr,reduceDescriptors:Nr,freezeMethods:ta,toObjectSet:ra,toCamelCase:Yo,noop:na,toFiniteNumber:oa,findKey:Tr,global:Ae,isContextDefined:Cr,isSpecCompliantForm:aa,toJSONObject:ia,isAsyncFn:sa,isThenable:la,setImmediate:_r,asap:ua,isIterable:e=>e!=null&&K(e[We])};function C(e,t,n,r,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),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}h.inherits(C,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 qr=C.prototype,Dr={};["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=>{Dr[e]={value:e}}),Object.defineProperties(C,Dr),Object.defineProperty(qr,"isAxiosError",{value:!0}),C.from=(e,t,n,r,o,i)=>{const a=Object.create(qr);return h.toFlatObject(e,a,function(p){return p!==Error.prototype},s=>s!=="isAxiosError"),C.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const ca=null;function ct(e){return h.isPlainObject(e)||h.isArray(e)}function Lr(e){return h.endsWith(e,"[]")?e.slice(0,-2):e}function Ir(e,t,n){return e?e.concat(t).map(function(o,i){return o=Lr(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function fa(e){return h.isArray(e)&&!e.some(ct)}const pa=h.toFlatObject(h,{},null,function(t){return/^is[A-Z]/.test(t)});function Qe(e,t,n){if(!h.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=h.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,u){return!h.isUndefined(u[w])});const r=n.metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,p=(n.Blob||typeof Blob<"u"&&Blob)&&h.isSpecCompliantForm(t);if(!h.isFunction(o))throw new TypeError("visitor must be a function");function l(y){if(y===null)return"";if(h.isDate(y))return y.toISOString();if(h.isBoolean(y))return y.toString();if(!p&&h.isBlob(y))throw new C("Blob is not supported. Use a Buffer instead.");return h.isArrayBuffer(y)||h.isTypedArray(y)?p&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function c(y,w,u){let m=y;if(y&&!u&&typeof y=="object"){if(h.endsWith(w,"{}"))w=r?w:w.slice(0,-2),y=JSON.stringify(y);else if(h.isArray(y)&&fa(y)||(h.isFileList(y)||h.endsWith(w,"[]"))&&(m=h.toArray(y)))return w=Lr(w),m.forEach(function(E,A){!(h.isUndefined(E)||E===null)&&t.append(a===!0?Ir([w],A,i):a===null?w:w+"[]",l(E))}),!1}return ct(y)?!0:(t.append(Ir(u,w,i),l(y)),!1)}const v=[],S=Object.assign(pa,{defaultVisitor:c,convertValue:l,isVisitable:ct});function b(y,w){if(!h.isUndefined(y)){if(v.indexOf(y)!==-1)throw Error("Circular reference detected in "+w.join("."));v.push(y),h.forEach(y,function(m,g){(!(h.isUndefined(m)||m===null)&&o.call(t,m,h.isString(g)?g.trim():g,w,S))===!0&&b(m,w?w.concat(g):[g])}),v.pop()}}if(!h.isObject(e))throw new TypeError("data must be an object");return b(e),t}function $r(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ft(e,t){this._pairs=[],e&&Qe(e,this,t)}const Br=ft.prototype;Br.append=function(t,n){this._pairs.push([t,n])},Br.toString=function(t){const n=t?function(r){return t.call(this,r,$r)}:$r;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function da(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ur(e,t,n){if(!t)return e;const r=n&&n.encode||da;h.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=h.isURLSearchParams(t)?t.toString():new ft(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Mr{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){h.forEach(this.handlers,function(r){r!==null&&t(r)})}}const kr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ya={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:ft,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},pt=typeof window<"u"&&typeof document<"u",dt=typeof navigator=="object"&&navigator||void 0,ha=pt&&(!dt||["ReactNative","NativeScript","NS"].indexOf(dt.product)<0),ma=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ga=pt&&window.location.href||"http://localhost",W={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:pt,hasStandardBrowserEnv:ha,hasStandardBrowserWebWorkerEnv:ma,navigator:dt,origin:ga},Symbol.toStringTag,{value:"Module"})),...ya};function va(e,t){return Qe(e,new W.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return W.isNode&&h.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function ba(e){return h.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function wa(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function jr(e){function t(n,r,o,i){let a=n[i++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),p=i>=n.length;return a=!a&&h.isArray(o)?o.length:a,p?(h.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!s):((!o[a]||!h.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&h.isArray(o[a])&&(o[a]=wa(o[a])),!s)}if(h.isFormData(e)&&h.isFunction(e.entries)){const n={};return h.forEachEntry(e,(r,o)=>{t(ba(r),o,n,0)}),n}return null}function Sa(e,t,n){if(h.isString(e))try{return(t||JSON.parse)(e),h.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Me={transitional:kr,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=h.isObject(t);if(i&&h.isHTMLForm(t)&&(t=new FormData(t)),h.isFormData(t))return o?JSON.stringify(jr(t)):t;if(h.isArrayBuffer(t)||h.isBuffer(t)||h.isStream(t)||h.isFile(t)||h.isBlob(t)||h.isReadableStream(t))return t;if(h.isArrayBufferView(t))return t.buffer;if(h.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return va(t,this.formSerializer).toString();if((s=h.isFileList(t))||r.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return Qe(s?{"files[]":t}:t,p&&new p,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),Sa(t)):t}],transformResponse:[function(t){const n=this.transitional||Me.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(h.isResponse(t)||h.isReadableStream(t))return t;if(t&&h.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?C.from(s,C.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:W.classes.FormData,Blob:W.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};h.forEach(["delete","get","head","post","put","patch"],e=>{Me.headers[e]={}});const Ea=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"]),Aa=e=>{const t={};let n,r,o;return e&&e.split(`
`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&Ea[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},zr=Symbol("internals");function ke(e){return e&&String(e).trim().toLowerCase()}function Xe(e){return e===!1||e==null?e:h.isArray(e)?e.map(Xe):String(e)}function Oa(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 Ra=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function yt(e,t,n,r,o){if(h.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!h.isString(t)){if(h.isString(r))return t.indexOf(r)!==-1;if(h.isRegExp(r))return r.test(t)}}function Pa(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function xa(e,t){const n=h.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}let Q=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(s,p,l){const c=ke(p);if(!c)throw new Error("header name must be a non-empty string");const v=h.findKey(o,c);(!v||o[v]===void 0||l===!0||l===void 0&&o[v]!==!1)&&(o[v||p]=Xe(s))}const a=(s,p)=>h.forEach(s,(l,c)=>i(l,c,p));if(h.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(h.isString(t)&&(t=t.trim())&&!Ra(t))a(Aa(t),n);else if(h.isObject(t)&&h.isIterable(t)){let s={},p,l;for(const c of t){if(!h.isArray(c))throw TypeError("Object iterator must return a key-value pair");s[l=c[0]]=(p=s[l])?h.isArray(p)?[...p,c[1]]:[p,c[1]]:c[1]}a(s,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=ke(t),t){const r=h.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Oa(o);if(h.isFunction(n))return n.call(this,o,r);if(h.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ke(t),t){const r=h.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||yt(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=ke(a),a){const s=h.findKey(r,a);s&&(!n||yt(r,r[s],s,n))&&(delete r[s],o=!0)}}return h.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||yt(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return h.forEach(this,(o,i)=>{const a=h.findKey(r,i);if(a){n[a]=Xe(o),delete n[i];return}const s=t?Pa(i):String(i).trim();s!==i&&delete n[i],n[s]=Xe(o),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return h.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&h.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(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[zr]=this[zr]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=ke(a);r[s]||(xa(o,a),r[s]=!0)}return h.isArray(t)?t.forEach(i):i(t),this}};Q.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),h.reduceDescriptors(Q.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),h.freezeMethods(Q);function ht(e,t){const n=this||Me,r=t||n,o=Q.from(r.headers);let i=r.data;return h.forEach(e,function(s){i=s.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Hr(e){return!!(e&&e.__CANCEL__)}function Fe(e,t,n){C.call(this,e??"canceled",C.ERR_CANCELED,t,n),this.name="CanceledError"}h.inherits(Fe,C,{__CANCEL__:!0});function Wr(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new C("Request failed with status code "+n.status,[C.ERR_BAD_REQUEST,C.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Ta(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Ca(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(p){const l=Date.now(),c=r[i];a||(a=l),n[o]=p,r[o]=l;let v=i,S=0;for(;v!==o;)S+=n[v++],v=v%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),l-a<t)return;const b=c&&l-c;return b?Math.round(S*1e3/b):void 0}}function Fa(e,t){let n=0,r=1e3/t,o,i;const a=(l,c=Date.now())=>{n=c,o=null,i&&(clearTimeout(i),i=null),e.apply(null,l)};return[(...l)=>{const c=Date.now(),v=c-n;v>=r?a(l,c):(o=l,i||(i=setTimeout(()=>{i=null,a(o)},r-v)))},()=>o&&a(o)]}const Ze=(e,t,n=3)=>{let r=0;const o=Ca(50,250);return Fa(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,p=a-r,l=o(p),c=a<=s;r=a;const v={loaded:a,total:s,progress:s?a/s:void 0,bytes:p,rate:l||void 0,estimated:l&&s&&c?(s-a)/l:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(v)},n)},Gr=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Jr=e=>(...t)=>h.asap(()=>e(...t)),Na=W.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,W.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(W.origin),W.navigator&&/(msie|trident)/i.test(W.navigator.userAgent)):()=>!0,_a=W.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];h.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),h.isString(r)&&a.push("path="+r),h.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.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(){return null},remove(){}};function qa(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Da(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Vr(e,t,n){let r=!qa(t);return e&&(r||n==!1)?Da(e,t):t}const Kr=e=>e instanceof Q?{...e}:e;function Oe(e,t){t=t||{};const n={};function r(l,c,v,S){return h.isPlainObject(l)&&h.isPlainObject(c)?h.merge.call({caseless:S},l,c):h.isPlainObject(c)?h.merge({},c):h.isArray(c)?c.slice():c}function o(l,c,v,S){if(h.isUndefined(c)){if(!h.isUndefined(l))return r(void 0,l,v,S)}else return r(l,c,v,S)}function i(l,c){if(!h.isUndefined(c))return r(void 0,c)}function a(l,c){if(h.isUndefined(c)){if(!h.isUndefined(l))return r(void 0,l)}else return r(void 0,c)}function s(l,c,v){if(v in t)return r(l,c);if(v in e)return r(void 0,l)}const p={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(l,c,v)=>o(Kr(l),Kr(c),v,!0)};return h.forEach(Object.keys(Object.assign({},e,t)),function(c){const v=p[c]||o,S=v(e[c],t[c],c);h.isUndefined(S)&&v!==s||(n[c]=S)}),n}const Qr=e=>{const t=Oe({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;t.headers=a=Q.from(a),t.url=Ur(Vr(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let p;if(h.isFormData(n)){if(W.hasStandardBrowserEnv||W.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((p=a.getContentType())!==!1){const[l,...c]=p?p.split(";").map(v=>v.trim()).filter(Boolean):[];a.setContentType([l||"multipart/form-data",...c].join("; "))}}if(W.hasStandardBrowserEnv&&(r&&h.isFunction(r)&&(r=r(t)),r||r!==!1&&Na(t.url))){const l=o&&i&&_a.read(i);l&&a.set(o,l)}return t},La=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const o=Qr(e);let i=o.data;const a=Q.from(o.headers).normalize();let{responseType:s,onUploadProgress:p,onDownloadProgress:l}=o,c,v,S,b,y;function w(){b&&b(),y&&y(),o.cancelToken&&o.cancelToken.unsubscribe(c),o.signal&&o.signal.removeEventListener("abort",c)}let u=new XMLHttpRequest;u.open(o.method.toUpperCase(),o.url,!0),u.timeout=o.timeout;function m(){if(!u)return;const E=Q.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),O={data:!s||s==="text"||s==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:E,config:e,request:u};Wr(function(P){n(P),w()},function(P){r(P),w()},O),u=null}"onloadend"in u?u.onloadend=m:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(m)},u.onabort=function(){u&&(r(new C("Request aborted",C.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new C("Network Error",C.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let A=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const O=o.transitional||kr;o.timeoutErrorMessage&&(A=o.timeoutErrorMessage),r(new C(A,O.clarifyTimeoutError?C.ETIMEDOUT:C.ECONNABORTED,e,u)),u=null},i===void 0&&a.setContentType(null),"setRequestHeader"in u&&h.forEach(a.toJSON(),function(A,O){u.setRequestHeader(O,A)}),h.isUndefined(o.withCredentials)||(u.withCredentials=!!o.withCredentials),s&&s!=="json"&&(u.responseType=o.responseType),l&&([S,y]=Ze(l,!0),u.addEventListener("progress",S)),p&&u.upload&&([v,b]=Ze(p),u.upload.addEventListener("progress",v),u.upload.addEventListener("loadend",b)),(o.cancelToken||o.signal)&&(c=E=>{u&&(r(!E||E.type?new Fe(null,e,u):E),u.abort(),u=null)},o.cancelToken&&o.cancelToken.subscribe(c),o.signal&&(o.signal.aborted?c():o.signal.addEventListener("abort",c)));const g=Ta(o.url);if(g&&W.protocols.indexOf(g)===-1){r(new C("Unsupported protocol "+g+":",C.ERR_BAD_REQUEST,e));return}u.send(i||null)})},Ia=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(l){if(!o){o=!0,s();const c=l instanceof Error?l:this.reason;r.abort(c instanceof C?c:new Fe(c instanceof Error?c.message:c))}};let a=t&&setTimeout(()=>{a=null,i(new C(`timeout ${t} of ms exceeded`,C.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),e=null)};e.forEach(l=>l.addEventListener("abort",i));const{signal:p}=r;return p.unsubscribe=()=>h.asap(s),p}},$a=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},Ba=async function*(e,t){for await(const n of Ua(e))yield*$a(n,t)},Ua=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Xr=(e,t,n,r)=>{const o=Ba(e,t);let i=0,a,s=p=>{a||(a=!0,r&&r(p))};return new ReadableStream({async pull(p){try{const{done:l,value:c}=await o.next();if(l){s(),p.close();return}let v=c.byteLength;if(n){let S=i+=v;n(S)}p.enqueue(new Uint8Array(c))}catch(l){throw s(l),l}},cancel(p){return s(p),o.return()}},{highWaterMark:2})},Ye=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Zr=Ye&&typeof ReadableStream=="function",Ma=Ye&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Yr=(e,...t)=>{try{return!!e(...t)}catch{return!1}},ka=Zr&&Yr(()=>{let e=!1;const t=new Request(W.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),en=64*1024,mt=Zr&&Yr(()=>h.isReadableStream(new Response("").body)),et={stream:mt&&(e=>e.body)};Ye&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!et[t]&&(et[t]=h.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new C(`Response type '${t}' is not supported`,C.ERR_NOT_SUPPORT,r)})})})(new Response);const ja=async e=>{if(e==null)return 0;if(h.isBlob(e))return e.size;if(h.isSpecCompliantForm(e))return(await new Request(W.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(h.isArrayBufferView(e)||h.isArrayBuffer(e))return e.byteLength;if(h.isURLSearchParams(e)&&(e=e+""),h.isString(e))return(await Ma(e)).byteLength},za=async(e,t)=>{const n=h.toFiniteNumber(e.getContentLength());return n??ja(t)},gt={http:ca,xhr:La,fetch:Ye&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:p,responseType:l,headers:c,withCredentials:v="same-origin",fetchOptions:S}=Qr(e);l=l?(l+"").toLowerCase():"text";let b=Ia([o,i&&i.toAbortSignal()],a),y;const w=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let u;try{if(p&&ka&&n!=="get"&&n!=="head"&&(u=await za(c,r))!==0){let O=new Request(t,{method:"POST",body:r,duplex:"half"}),R;if(h.isFormData(r)&&(R=O.headers.get("content-type"))&&c.setContentType(R),O.body){const[P,T]=Gr(u,Ze(Jr(p)));r=Xr(O.body,en,P,T)}}h.isString(v)||(v=v?"include":"omit");const m="credentials"in Request.prototype;y=new Request(t,{...S,signal:b,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:m?v:void 0});let g=await fetch(y,S);const E=mt&&(l==="stream"||l==="response");if(mt&&(s||E&&w)){const O={};["status","statusText","headers"].forEach(q=>{O[q]=g[q]});const R=h.toFiniteNumber(g.headers.get("content-length")),[P,T]=s&&Gr(R,Ze(Jr(s),!0))||[];g=new Response(Xr(g.body,en,P,()=>{T&&T(),w&&w()}),O)}l=l||"text";let A=await et[h.findKey(et,l)||"text"](g,e);return!E&&w&&w(),await new Promise((O,R)=>{Wr(O,R,{data:A,headers:Q.from(g.headers),status:g.status,statusText:g.statusText,config:e,request:y})})}catch(m){throw w&&w(),m&&m.name==="TypeError"&&/Load failed|fetch/i.test(m.message)?Object.assign(new C("Network Error",C.ERR_NETWORK,e,y),{cause:m.cause||m}):C.from(m,m&&m.code,e,y)}})};h.forEach(gt,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const tn=e=>`- ${e}`,Ha=e=>h.isFunction(e)||e===null||e===!1,rn={getAdapter:e=>{e=h.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){n=e[i];let a;if(r=n,!Ha(n)&&(r=gt[(a=String(n)).toLowerCase()],r===void 0))throw new C(`Unknown adapter '${a}'`);if(r)break;o[a||"#"+i]=r}if(!r){const i=Object.entries(o).map(([s,p])=>`adapter ${s} `+(p===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
`+i.map(tn).join(`
`):" "+tn(i[0]):"as no adapter specified";throw new C("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:gt};function vt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Fe(null,e)}function nn(e){return vt(e),e.headers=Q.from(e.headers),e.data=ht.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),rn.getAdapter(e.adapter||Me.adapter)(e).then(function(r){return vt(e),r.data=ht.call(e,e.transformResponse,r),r.headers=Q.from(r.headers),r},function(r){return Hr(r)||(vt(e),r&&r.response&&(r.response.data=ht.call(e,e.transformResponse,r.response),r.response.headers=Q.from(r.response.headers))),Promise.reject(r)})}const on="1.10.0",tt={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{tt[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const an={};tt.transitional=function(t,n,r){function o(i,a){return"[Axios v"+on+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,s)=>{if(t===!1)throw new C(o(a," has been removed"+(n?" in "+n:"")),C.ERR_DEPRECATED);return n&&!an[a]&&(an[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,s):!0}},tt.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Wa(e,t,n){if(typeof e!="object")throw new C("options must be an object",C.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const s=e[i],p=s===void 0||a(s,i,e);if(p!==!0)throw new C("option "+i+" must be "+p,C.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new C("Unknown option "+i,C.ERR_BAD_OPTION)}}const rt={assertOptions:Wa,validators:tt},ce=rt.validators;let Re=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Mr,response:new Mr}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Oe(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&rt.assertOptions(r,{silentJSONParsing:ce.transitional(ce.boolean),forcedJSONParsing:ce.transitional(ce.boolean),clarifyTimeoutError:ce.transitional(ce.boolean)},!1),o!=null&&(h.isFunction(o)?n.paramsSerializer={serialize:o}:rt.assertOptions(o,{encode:ce.function,serialize:ce.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),rt.assertOptions(n,{baseUrl:ce.spelling("baseURL"),withXsrfToken:ce.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&h.merge(i.common,i[n.method]);i&&h.forEach(["delete","get","head","post","put","patch","common"],y=>{delete i[y]}),n.headers=Q.concat(a,i);const s=[];let p=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(n)===!1||(p=p&&w.synchronous,s.unshift(w.fulfilled,w.rejected))});const l=[];this.interceptors.response.forEach(function(w){l.push(w.fulfilled,w.rejected)});let c,v=0,S;if(!p){const y=[nn.bind(this),void 0];for(y.unshift.apply(y,s),y.push.apply(y,l),S=y.length,c=Promise.resolve(n);v<S;)c=c.then(y[v++],y[v++]);return c}S=s.length;let b=n;for(v=0;v<S;){const y=s[v++],w=s[v++];try{b=y(b)}catch(u){w.call(this,u);break}}try{c=nn.call(this,b)}catch(y){return Promise.reject(y)}for(v=0,S=l.length;v<S;)c=c.then(l[v++],l[v++]);return c}getUri(t){t=Oe(this.defaults,t);const n=Vr(t.baseURL,t.url,t.allowAbsoluteUrls);return Ur(n,t.params,t.paramsSerializer)}};h.forEach(["delete","get","head","options"],function(t){Re.prototype[t]=function(n,r){return this.request(Oe(r||{},{method:t,url:n,data:(r||{}).data}))}}),h.forEach(["post","put","patch"],function(t){function n(r){return function(i,a,s){return this.request(Oe(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Re.prototype[t]=n(),Re.prototype[t+"Form"]=n(!0)});let Ga=class Ao{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{r.subscribe(s),i=s}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,s){r.reason||(r.reason=new Fe(i,a,s),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)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Ao(function(o){t=o}),cancel:t}}};function Ja(e){return function(n){return e.apply(null,n)}}function Va(e){return h.isObject(e)&&e.isAxiosError===!0}const bt={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(bt).forEach(([e,t])=>{bt[t]=e});function sn(e){const t=new Re(e),n=Or(Re.prototype.request,t);return h.extend(n,Re.prototype,t,{allOwnKeys:!0}),h.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return sn(Oe(e,o))},n}const M=sn(Me);M.Axios=Re,M.CanceledError=Fe,M.CancelToken=Ga,M.isCancel=Hr,M.VERSION=on,M.toFormData=Qe,M.AxiosError=C,M.Cancel=M.CanceledError,M.all=function(t){return Promise.all(t)},M.spread=Ja,M.isAxiosError=Va,M.mergeConfig=Oe,M.AxiosHeaders=Q,M.formToJSON=e=>jr(h.isHTMLForm(e)?new FormData(e):e),M.getAdapter=rn.getAdapter,M.HttpStatusCode=bt,M.default=M;const{Axios:Vi,AxiosError:Ki,CanceledError:Qi,isCancel:Xi,CancelToken:Zi,VERSION:Yi,all:es,Cancel:ts,isAxiosError:rs,spread:ns,toFormData:os,AxiosHeaders:as,HttpStatusCode:is,formToJSON:ss,getAdapter:ls,mergeConfig:us}=M;class te{static loadingDom=null;constructor(){}static show(t=.8,n=999){if(te.loadingDom)return;const r=document.createElement("div");r.innerHTML=`
<div style="width:42px;height:42px">
<svg width="100" height="100" viewBox="0 0 100 100">
<circle cx="50" cy="50" r="20" stroke="#3498db" stroke-width="5" fill="none" stroke-dasharray="31.4 31.4">
<animateTransform
attributeName="transform"
type="rotate"
from="0 50 50"
to="360 50 50"
dur="1s"
repeatCount="indefinite"/>
</circle>
</svg>
</div>
`,r.style.position="fixed",r.style.top="0",r.style.left="0",r.style.background=`rgba(122, 122, 122, ${t})`,r.style.width="100%",r.style.height="100%",r.style.display="flex",r.style.alignItems="center",r.style.justifyContent="center",r.style.zIndex=n.toString(),te.loadingDom=r,document.body.appendChild(r)}static close(){te.loadingDom&&te.loadingDom.parentNode&&(te.loadingDom.parentNode.removeChild(te.loadingDom),te.loadingDom=null)}}const je=new Map;function se(e){const t=Object.assign(Ar,e),n=M.create({timeout:t.timeout,baseURL:t.baseURL});return n.interceptors.request.use(r=>{if(t.loading&&te.show(),ln(r),Ka(r),t.mark&&r.url){const o=r.url;if(typeof t.mark=="string")o.startsWith(`/${t.mark}`)&&(r.url=o.replace(`/${t.mark}`,""));else if(Array.isArray(t.mark))for(let i=0;i<t.mark.length;i++)typeof t.mark[i]=="string"?o.startsWith(`/${t.mark[i]}`)&&(r.url=o.replace(`/${t.mark[i]}`,"")):console.warn("ezAxios: mark 存在无法解析类型,已忽略");else console.error("ezAxios: mark 参数类型错误,请传入字符串或数组")}for(const o in t.headers)r.headers[o]=t.headers[o];return r},r=>Promise.reject(r)),n.interceptors.response.use(r=>(te.close(),ln(r.config),t.success&&t.success(r),Promise.resolve(t.briefly?r.data:r)),r=>{if(te.close(),!!r)return M.isCancel(r)?r.message=="canceled"?Promise.reject(`ezAxios: 请求:${r.config.url} 已取消`):Promise.reject(`ezAxios: 连续的重复请求,已取消
错误信息:${r.message}`):r.response?(t.error&&t.error(r.response.status),Promise.reject(r.response)):Promise.reject(r.message)}),n}function Ka(e){const t=un(e);e.cancelToken=e.cancelToken||new M.CancelToken(n=>{je.has(t)||je.set(t,n)})}function ln(e){const t=un(e);je.has(t)&&(je.get(t)(t),je.delete(t))}function un(e){const{url:t,method:n,params:r}=e;let{data:o}=e;try{JSON.parse(o),o=JSON.parse(o)}catch{}return[t,n,JSON.stringify(r),JSON.stringify(o)].join("&")}function Qa(e,...t){let n=null,r="json",o=null;return t.length&&t.forEach((i,a)=>{a===0?typeof i=="object"?n=i:typeof i=="string"?i.toLowerCase()==="blob"?r="blob":console.error("ezAxios: 请求参数仅支持 Object、Array类型"):n&&console.error("ezAxios: 请求参数仅支持 Object、Array类型"):a<3?i&&(Object.prototype.toString.call(i)=="[object Object]"?o=i:typeof i=="string"&&i.toLowerCase()==="blob"?r="blob":console.warn("ezAxios: 存在无法处理的参数类型,这可能会影响您的程序")):console.warn("ezAxios: 接收到多余参数,已忽略")}),new Promise((i,a)=>{se(o).get(e,{params:n,responseType:r,signal:o?.signal}).then(s=>{i(s)}).catch(s=>{a(s)})})}var cn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Za(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var o=!1;try{o=this instanceof r}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var wt,fn;function Ne(){return fn||(fn=1,wt=TypeError),wt}const Ya=Za(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var St,pn;function nt(){if(pn)return St;pn=1;var e=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,n=e&&t&&typeof t.get=="function"?t.get:null,r=e&&Map.prototype.forEach,o=typeof Set=="function"&&Set.prototype,i=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,a=o&&i&&typeof i.get=="function"?i.get:null,s=o&&Set.prototype.forEach,p=typeof WeakMap=="function"&&WeakMap.prototype,l=p?WeakMap.prototype.has:null,c=typeof WeakSet=="function"&&WeakSet.prototype,v=c?WeakSet.prototype.has:null,S=typeof WeakRef=="function"&&WeakRef.prototype,b=S?WeakRef.prototype.deref:null,y=Boolean.prototype.valueOf,w=Object.prototype.toString,u=Function.prototype.toString,m=String.prototype.match,g=String.prototype.slice,E=String.prototype.replace,A=String.prototype.toUpperCase,O=String.prototype.toLowerCase,R=RegExp.prototype.test,P=Array.prototype.concat,T=Array.prototype.join,q=Array.prototype.slice,F=Math.floor,I=typeof BigInt=="function"?BigInt.prototype.valueOf:null,x=Object.getOwnPropertySymbols,G=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,j=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Z=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===j||!0)?Symbol.toStringTag:null,fe=Object.prototype.propertyIsEnumerable,pe=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(f){return f.__proto__}:null);function _(f,d){if(f===1/0||f===-1/0||f!==f||f&&f>-1e3&&f<1e3||R.call(/e/,d))return d;var L=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof f=="number"){var B=f<0?-F(-f):F(f);if(B!==f){var U=String(B),N=g.call(d,U.length+1);return E.call(U,L,"$&_")+"."+E.call(E.call(N,/([0-9]{3})/g,"$&_"),/_$/,"")}}return E.call(d,L,"$&_")}var Y=Ya,de=Y.custom,Pe=J(de)?de:null,he={__proto__:null,double:'"',single:"'"},me={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};St=function f(d,L,B,U){var N=L||{};if(X(N,"quoteStyle")&&!X(he,N.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(X(N,"maxStringLength")&&(typeof N.maxStringLength=="number"?N.maxStringLength<0&&N.maxStringLength!==1/0:N.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Se=X(N,"customInspect")?N.customInspect:!0;if(typeof Se!="boolean"&&Se!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(X(N,"indent")&&N.indent!==null&&N.indent!==" "&&!(parseInt(N.indent,10)===N.indent&&N.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(X(N,"numericSeparator")&&typeof N.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var xe=N.numericSeparator;if(typeof d>"u")return"undefined";if(d===null)return"null";if(typeof d=="boolean")return d?"true":"false";if(typeof d=="string")return po(d,N);if(typeof d=="number"){if(d===0)return 1/0/d>0?"0":"-0";var ee=String(d);return xe?_(d,ee):ee}if(typeof d=="bigint"){var Ee=String(d)+"n";return xe?_(d,Ee):Ee}var mr=typeof N.depth>"u"?5:N.depth;if(typeof B>"u"&&(B=0),B>=mr&&mr>0&&typeof d=="object")return ve(d)?"[Array]":"[Object]";var Ie=Bi(N,B);if(typeof U>"u")U=[];else if(we(U,d)>=0)return"[Circular]";function ue($e,st,Mi){if(st&&(U=q.call(U),U.push(st)),Mi){var Eo={depth:N.depth};return X(N,"quoteStyle")&&(Eo.quoteStyle=N.quoteStyle),f($e,Eo,B+1,U)}return f($e,N,B+1,U)}if(typeof d=="function"&&!H(d)){var ho=_e(d),mo=at(d,ue);return"[Function"+(ho?": "+ho:" (anonymous)")+"]"+(mo.length>0?" { "+T.call(mo,", ")+" }":"")}if(J(d)){var go=j?E.call(String(d),/^(Symbol\(.*\))_[^)]*$/,"$1"):G.call(d);return typeof d=="object"&&!j?ze(go):go}if(Li(d)){for(var He="<"+O.call(String(d.nodeName)),gr=d.attributes||[],it=0;it<gr.length;it++)He+=" "+gr[it].name+"="+ge(ye(gr[it].value),"double",N);return He+=">",d.childNodes&&d.childNodes.length&&(He+="..."),He+="</"+O.call(String(d.nodeName))+">",He}if(ve(d)){if(d.length===0)return"[]";var vr=at(d,ue);return Ie&&!$i(vr)?"["+hr(vr,Ie)+"]":"[ "+T.call(vr,", ")+" ]"}if(D(d)){var br=at(d,ue);return!("cause"in Error.prototype)&&"cause"in d&&!fe.call(d,"cause")?"{ ["+String(d)+"] "+T.call(P.call("[cause]: "+ue(d.cause),br),", ")+" }":br.length===0?"["+String(d)+"]":"{ ["+String(d)+"] "+T.call(br,", ")+" }"}if(typeof d=="object"&&Se){if(Pe&&typeof d[Pe]=="function"&&Y)return Y(d,{depth:mr-B});if(Se!=="symbol"&&typeof d.inspect=="function")return d.inspect()}if(le(d)){var vo=[];return r&&r.call(d,function($e,st){vo.push(ue(st,d,!0)+" => "+ue($e,d))}),yo("Map",n.call(d),vo,Ie)}if(Le(d)){var bo=[];return s&&s.call(d,function($e){bo.push(ue($e,d))}),yo("Set",a.call(d),bo,Ie)}if(qe(d))return yr("WeakMap");if(Di(d))return yr("WeakSet");if(De(d))return yr("WeakRef");if($(d))return ze(ue(Number(d)));if(ne(d))return ze(ue(I.call(d)));if(z(d))return ze(y.call(d));if(k(d))return ze(ue(String(d)));if(typeof window<"u"&&d===window)return"{ [object Window] }";if(typeof globalThis<"u"&&d===globalThis||typeof cn<"u"&&d===cn)return"{ [object globalThis] }";if(!be(d)&&!H(d)){var wr=at(d,ue),wo=pe?pe(d)===Object.prototype:d instanceof Object||d.constructor===Object,Sr=d instanceof Object?"":"null prototype",So=!wo&&Z&&Object(d)===d&&Z in d?g.call(oe(d),8,-1):Sr?"Object":"",Ui=wo||typeof d.constructor!="function"?"":d.constructor.name?d.constructor.name+" ":"",Er=Ui+(So||Sr?"["+T.call(P.call([],So||[],Sr||[]),": ")+"] ":"");return wr.length===0?Er+"{}":Ie?Er+"{"+hr(wr,Ie)+"}":Er+"{ "+T.call(wr,", ")+" }"}return String(d)};function ge(f,d,L){var B=L.quoteStyle||d,U=he[B];return U+f+U}function ye(f){return E.call(String(f),/"/g,""")}function re(f){return!Z||!(typeof f=="object"&&(Z in f||typeof f[Z]<"u"))}function ve(f){return oe(f)==="[object Array]"&&re(f)}function be(f){return oe(f)==="[object Date]"&&re(f)}function H(f){return oe(f)==="[object RegExp]"&&re(f)}function D(f){return oe(f)==="[object Error]"&&re(f)}function k(f){return oe(f)==="[object String]"&&re(f)}function $(f){return oe(f)==="[object Number]"&&re(f)}function z(f){return oe(f)==="[object Boolean]"&&re(f)}function J(f){if(j)return f&&typeof f=="object"&&f instanceof Symbol;if(typeof f=="symbol")return!0;if(!f||typeof f!="object"||!G)return!1;try{return G.call(f),!0}catch{}return!1}function ne(f){if(!f||typeof f!="object"||!I)return!1;try{return I.call(f),!0}catch{}return!1}var V=Object.prototype.hasOwnProperty||function(f){return f in this};function X(f,d){return V.call(f,d)}function oe(f){return w.call(f)}function _e(f){if(f.name)return f.name;var d=m.call(u.call(f),/^function\s*([\w$]+)/);return d?d[1]:null}function we(f,d){if(f.indexOf)return f.indexOf(d);for(var L=0,B=f.length;L<B;L++)if(f[L]===d)return L;return-1}function le(f){if(!n||!f||typeof f!="object")return!1;try{n.call(f);try{a.call(f)}catch{return!0}return f instanceof Map}catch{}return!1}function qe(f){if(!l||!f||typeof f!="object")return!1;try{l.call(f,l);try{v.call(f,v)}catch{return!0}return f instanceof WeakMap}catch{}return!1}function De(f){if(!b||!f||typeof f!="object")return!1;try{return b.call(f),!0}catch{}return!1}function Le(f){if(!a||!f||typeof f!="object")return!1;try{a.call(f);try{n.call(f)}catch{return!0}return f instanceof Set}catch{}return!1}function Di(f){if(!v||!f||typeof f!="object")return!1;try{v.call(f,v);try{l.call(f,l)}catch{return!0}return f instanceof WeakSet}catch{}return!1}function Li(f){return!f||typeof f!="object"?!1:typeof HTMLElement<"u"&&f instanceof HTMLElement?!0:typeof f.nodeName=="string"&&typeof f.getAttribute=="function"}function po(f,d){if(f.length>d.maxStringLength){var L=f.length-d.maxStringLength,B="... "+L+" more character"+(L>1?"s":"");return po(g.call(f,0,d.maxStringLength),d)+B}var U=me[d.quoteStyle||"single"];U.lastIndex=0;var N=E.call(E.call(f,U,"\\$1"),/[\x00-\x1f]/g,Ii);return ge(N,"single",d)}function Ii(f){var d=f.charCodeAt(0),L={8:"b",9:"t",10:"n",12:"f",13:"r"}[d];return L?"\\"+L:"\\x"+(d<16?"0":"")+A.call(d.toString(16))}function ze(f){return"Object("+f+")"}function yr(f){return f+" { ? }"}function yo(f,d,L,B){var U=B?hr(L,B):T.call(L,", ");return f+" ("+d+") {"+U+"}"}function $i(f){for(var d=0;d<f.length;d++)if(we(f[d],`
`)>=0)return!1;return!0}function Bi(f,d){var L;if(f.indent===" ")L=" ";else if(typeof f.indent=="number"&&f.indent>0)L=T.call(Array(f.indent+1)," ");else return null;return{base:L,prev:T.call(Array(d+1),L)}}function hr(f,d){if(f.length===0)return"";var L=`
`+d.prev+d.base;return L+T.call(f,","+L)+`
`+d.prev}function at(f,d){var L=ve(f),B=[];if(L){B.length=f.length;for(var U=0;U<f.length;U++)B[U]=X(f,U)?d(f[U],f):""}var N=typeof x=="function"?x(f):[],Se;if(j){Se={};for(var xe=0;xe<N.length;xe++)Se["$"+N[xe]]=N[xe]}for(var ee in f)X(f,ee)&&(L&&String(Number(ee))===ee&&ee<f.length||j&&Se["$"+ee]instanceof Symbol||(R.call(/[^\w$]/,ee)?B.push(d(ee,f)+": "+d(f[ee],f)):B.push(ee+": "+d(f[ee],f))));if(typeof x=="function")for(var Ee=0;Ee<N.length;Ee++)fe.call(f,N[Ee])&&B.push("["+d(N[Ee])+"]: "+d(f[N[Ee]],f));return B}return St}var Et,dn;function ei(){if(dn)return Et;dn=1;var e=nt(),t=Ne(),n=function(s,p,l){for(var c=s,v;(v=c.next)!=null;c=v)if(v.key===p)return c.next=v.next,l||(v.next=s.next,s.next=v),v},r=function(s,p){if(s){var l=n(s,p);return l&&l.value}},o=function(s,p,l){var c=n(s,p);c?c.value=l:s.next={key:p,next:s.next,value:l}},i=function(s,p){return s?!!n(s,p):!1},a=function(s,p){if(s)return n(s,p,!0)};return Et=function(){var p,l={assert:function(c){if(!l.has(c))throw new t("Side channel does not contain "+e(c))},delete:function(c){var v=p&&p.next,S=a(p,c);return S&&v&&v===S&&(p=void 0),!!S},get:function(c){return r(p,c)},has:function(c){return i(p,c)},set:function(c,v){p||(p={next:void 0}),o(p,c,v)}};return l},Et}var At,yn;function hn(){return yn||(yn=1,At=Object),At}var Ot,mn;function ti(){return mn||(mn=1,Ot=Error),Ot}var Rt,gn;function ri(){return gn||(gn=1,Rt=EvalError),Rt}var Pt,vn;function ni(){return vn||(vn=1,Pt=RangeError),Pt}var xt,bn;function oi(){return bn||(bn=1,xt=ReferenceError),xt}var Tt,wn;function ai(){return wn||(wn=1,Tt=SyntaxError),Tt}var Ct,Sn;function ii(){return Sn||(Sn=1,Ct=URIError),Ct}var Ft,En;function si(){return En||(En=1,Ft=Math.abs),Ft}var Nt,An;function li(){return An||(An=1,Nt=Math.floor),Nt}var _t,On;function ui(){return On||(On=1,_t=Math.max),_t}var qt,Rn;function ci(){return Rn||(Rn=1,qt=Math.min),qt}var Dt,Pn;function fi(){return Pn||(Pn=1,Dt=Math.pow),Dt}var Lt,xn;function pi(){return xn||(xn=1,Lt=Math.round),Lt}var It,Tn;function di(){return Tn||(Tn=1,It=Number.isNaN||function(t){return t!==t}),It}var $t,Cn;function yi(){if(Cn)return $t;Cn=1;var e=di();return $t=function(n){return e(n)||n===0?n:n<0?-1:1},$t}var Bt,Fn;function hi(){return Fn||(Fn=1,Bt=Object.getOwnPropertyDescriptor),Bt}var Ut,Nn;function _n(){if(Nn)return Ut;Nn=1;var e=hi();if(e)try{e([],"length")}catch{e=null}return Ut=e,Ut}var Mt,qn;function mi(){if(qn)return Mt;qn=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return Mt=e,Mt}var kt,Dn;function gi(){return Dn||(Dn=1,kt=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var o=42;t[n]=o;for(var i in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,n);if(s.value!==o||s.enumerable!==!0)return!1}return!0}),kt}var jt,Ln;function vi(){if(Ln)return jt;Ln=1;var e=typeof Symbol<"u"&&Symbol,t=gi();return jt=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},jt}var zt,In;function $n(){return In||(In=1,zt=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),zt}var Ht,Bn;function Un(){if(Bn)return Ht;Bn=1;var e=hn();return Ht=e.getPrototypeOf||null,Ht}var Wt,Mn;function bi(){if(Mn)return Wt;Mn=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,n=Math.max,r="[object Function]",o=function(p,l){for(var c=[],v=0;v<p.length;v+=1)c[v]=p[v];for(var S=0;S<l.length;S+=1)c[S+p.length]=l[S];return c},i=function(p,l){for(var c=[],v=l,S=0;v<p.length;v+=1,S+=1)c[S]=p[v];return c},a=function(s,p){for(var l="",c=0;c<s.length;c+=1)l+=s[c],c+1<s.length&&(l+=p);return l};return Wt=function(p){var l=this;if(typeof l!="function"||t.apply(l)!==r)throw new TypeError(e+l);for(var c=i(arguments,1),v,S=function(){if(this instanceof v){var m=l.apply(this,o(c,arguments));return Object(m)===m?m:this}return l.apply(p,o(c,arguments))},b=n(0,l.length-c.length),y=[],w=0;w<b;w++)y[w]="$"+w;if(v=Function("binder","return function ("+a(y,",")+"){ return binder.apply(this,arguments); }")(S),l.prototype){var u=function(){};u.prototype=l.prototype,v.prototype=new u,u.prototype=null}return v},Wt}var Gt,kn;function ot(){if(kn)return Gt;kn=1;var e=bi();return Gt=Function.prototype.bind||e,Gt}var Jt,jn;function Vt(){return jn||(jn=1,Jt=Function.prototype.call),Jt}var Kt,zn;function Hn(){return zn||(zn=1,Kt=Function.prototype.apply),Kt}var Qt,Wn;function wi(){return Wn||(Wn=1,Qt=typeof Reflect<"u"&&Reflect&&Reflect.apply),Qt}var Xt,Gn;function Si(){if(Gn)return Xt;Gn=1;var e=ot(),t=Hn(),n=Vt(),r=wi();return Xt=r||e.call(n,t),Xt}var Zt,Jn;function Vn(){if(Jn)return Zt;Jn=1;var e=ot(),t=Ne(),n=Vt(),r=Si();return Zt=function(i){if(i.length<1||typeof i[0]!="function")throw new t("a function is required");return r(e,n,i)},Zt}var Yt,Kn;function Ei(){if(Kn)return Yt;Kn=1;var e=Vn(),t=_n(),n;try{n=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var r=!!n&&t&&t(Object.prototype,"__proto__"),o=Object,i=o.getPrototypeOf;return Yt=r&&typeof r.get=="function"?e([r.get]):typeof i=="function"?function(s){return i(s==null?s:o(s))}:!1,Yt}var er,Qn;function Ai(){if(Qn)return er;Qn=1;var e=$n(),t=Un(),n=Ei();return er=e?function(o){return e(o)}:t?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return t(o)}:n?function(o){return n(o)}:null,er}var tr,Xn;function Oi(){if(Xn)return tr;Xn=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,n=ot();return tr=n.call(e,t),tr}var rr,Zn;function nr(){if(Zn)return rr;Zn=1;var e,t=hn(),n=ti(),r=ri(),o=ni(),i=oi(),a=ai(),s=Ne(),p=ii(),l=si(),c=li(),v=ui(),S=ci(),b=fi(),y=pi(),w=yi(),u=Function,m=function(H){try{return u('"use strict"; return ('+H+").constructor;")()}catch{}},g=_n(),E=mi(),A=function(){throw new s},O=g?function(){try{return arguments.callee,A}catch{try{return g(arguments,"callee").get}catch{return A}}}():A,R=vi()(),P=Ai(),T=Un(),q=$n(),F=Hn(),I=Vt(),x={},G=typeof Uint8Array>"u"||!P?e:P(Uint8Array),j={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":R&&P?P([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":x,"%AsyncGenerator%":x,"%AsyncGeneratorFunction%":x,"%AsyncIteratorPrototype%":x,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":r,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":u,"%GeneratorFunction%":x,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":R&&P?P(P([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!R||!P?e:P(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":g,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":o,"%ReferenceError%":i,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!R||!P?e:P(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":R&&P?P(""[Symbol.iterator]()):e,"%Symbol%":R?Symbol:e,"%SyntaxError%":a,"%ThrowTypeError%":O,"%TypedArray%":G,"%TypeError%":s,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":p,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":I,"%Function.prototype.apply%":F,"%Object.defineProperty%":E,"%Object.getPrototypeOf%":T,"%Math.abs%":l,"%Math.floor%":c,"%Math.max%":v,"%Math.min%":S,"%Math.pow%":b,"%Math.round%":y,"%Math.sign%":w,"%Reflect.getPrototypeOf%":q};if(P)try{null.error}catch(H){var Z=P(P(H));j["%Error.prototype%"]=Z}var fe=function H(D){var k;if(D==="%AsyncFunction%")k=m("async function () {}");else if(D==="%GeneratorFunction%")k=m("function* () {}");else if(D==="%AsyncGeneratorFunction%")k=m("async function* () {}");else if(D==="%AsyncGenerator%"){var $=H("%AsyncGeneratorFunction%");$&&(k=$.prototype)}else if(D==="%AsyncIteratorPrototype%"){var z=H("%AsyncGenerator%");z&&P&&(k=P(z.prototype))}return j[D]=k,k},pe={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},_=ot(),Y=Oi(),de=_.call(I,Array.prototype.concat),Pe=_.call(F,Array.prototype.splice),he=_.call(I,String.prototype.replace),me=_.call(I,String.prototype.slice),ge=_.call(I,RegExp.prototype.exec),ye=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,re=/\\(\\)?/g,ve=function(D){var k=me(D,0,1),$=me(D,-1);if(k==="%"&&$!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if($==="%"&&k!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var z=[];return he(D,ye,function(J,ne,V,X){z[z.length]=V?he(X,re,"$1"):ne||J}),z},be=function(D,k){var $=D,z;if(Y(pe,$)&&(z=pe[$],$="%"+z[0]+"%"),Y(j,$)){var J=j[$];if(J===x&&(J=fe($)),typeof J>"u"&&!k)throw new s("intrinsic "+D+" exists, but is not available. Please file an issue!");return{alias:z,name:$,value:J}}throw new a("intrinsic "+D+" does not exist!")};return rr=function(D,k){if(typeof D!="string"||D.length===0)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof k!="boolean")throw new s('"allowMissing" argument must be a boolean');if(ge(/^%?[^%]*%?$/,D)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var $=ve(D),z=$.length>0?$[0]:"",J=be("%"+z+"%",k),ne=J.name,V=J.value,X=!1,oe=J.alias;oe&&(z=oe[0],Pe($,de([0,1],oe)));for(var _e=1,we=!0;_e<$.length;_e+=1){var le=$[_e],qe=me(le,0,1),De=me(le,-1);if((qe==='"'||qe==="'"||qe==="`"||De==='"'||De==="'"||De==="`")&&qe!==De)throw new a("property names with quotes must have matching quotes");if((le==="constructor"||!we)&&(X=!0),z+="."+le,ne="%"+z+"%",Y(j,ne))V=j[ne];else if(V!=null){if(!(le in V)){if(!k)throw new s("base intrinsic for "+D+" exists, but the property is not available.");return}if(g&&_e+1>=$.length){var Le=g(V,le);we=!!Le,we&&"get"in Le&&!("originalValue"in Le.get)?V=Le.get:V=V[le]}else we=Y(V,le),V=V[le];we&&!X&&(j[ne]=V)}}return V},rr}var or,Yn;function eo(){if(Yn)return or;Yn=1;var e=nr(),t=Vn(),n=t([e("%String.prototype.indexOf%")]);return or=function(o,i){var a=e(o,!!i);return typeof a=="function"&&n(o,".prototype.")>-1?t([a]):a},or}var ar,to;function ro(){if(to)return ar;to=1;var e=nr(),t=eo(),n=nt(),r=Ne(),o=e("%Map%",!0),i=t("Map.prototype.get",!0),a=t("Map.prototype.set",!0),s=t("Map.prototype.has",!0),p=t("Map.prototype.delete",!0),l=t("Map.prototype.size",!0);return ar=!!o&&function(){var v,S={assert:function(b){if(!S.has(b))throw new r("Side channel does not contain "+n(b))},delete:function(b){if(v){var y=p(v,b);return l(v)===0&&(v=void 0),y}return!1},get:function(b){if(v)return i(v,b)},has:function(b){return v?s(v,b):!1},set:function(b,y){v||(v=new o),a(v,b,y)}};return S},ar}var ir,no;function Ri(){if(no)return ir;no=1;var e=nr(),t=eo(),n=nt(),r=ro(),o=Ne(),i=e("%WeakMap%",!0),a=t("WeakMap.prototype.get",!0),s=t("WeakMap.prototype.set",!0),p=t("WeakMap.prototype.has",!0),l=t("WeakMap.prototype.delete",!0);return ir=i?function(){var v,S,b={assert:function(y){if(!b.has(y))throw new o("Side channel does not contain "+n(y))},delete:function(y){if(i&&y&&(typeof y=="object"||typeof y=="function")){if(v)return l(v,y)}else if(r&&S)return S.delete(y);return!1},get:function(y){return i&&y&&(typeof y=="object"||typeof y=="function")&&v?a(v,y):S&&S.get(y)},has:function(y){return i&&y&&(typeof y=="object"||typeof y=="function")&&v?p(v,y):!!S&&S.has(y)},set:function(y,w){i&&y&&(typeof y=="object"||typeof y=="function")?(v||(v=new i),s(v,y,w)):r&&(S||(S=r()),S.set(y,w))}};return b}:r,ir}var sr,oo;function Pi(){if(oo)return sr;oo=1;var e=Ne(),t=nt(),n=ei(),r=ro(),o=Ri(),i=o||r||n;return sr=function(){var s,p={assert:function(l){if(!p.has(l))throw new e("Side channel does not contain "+t(l))},delete:function(l){return!!s&&s.delete(l)},get:function(l){return s&&s.get(l)},has:function(l){return!!s&&s.has(l)},set:function(l,c){s||(s=i()),s.set(l,c)}};return p},sr}var lr,ao;function ur(){if(ao)return lr;ao=1;var e=String.prototype.replace,t=/%20/g,n={RFC1738:"RFC1738",RFC3986:"RFC3986"};return lr={default:n.RFC3986,formatters:{RFC1738:function(r){return e.call(r,t,"+")},RFC3986:function(r){return String(r)}},RFC1738:n.RFC1738,RFC3986:n.RFC3986},lr}var cr,io;function so(){if(io)return cr;io=1;var e=ur(),t=Object.prototype.hasOwnProperty,n=Array.isArray,r=function(){for(var u=[],m=0;m<256;++m)u.push("%"+((m<16?"0":"")+m.toString(16)).toUpperCase());return u}(),o=function(m){for(;m.length>1;){var g=m.pop(),E=g.obj[g.prop];if(n(E)){for(var A=[],O=0;O<E.length;++O)typeof E[O]<"u"&&A.push(E[O]);g.obj[g.prop]=A}}},i=function(m,g){for(var E=g&&g.plainObjects?{__proto__:null}:{},A=0;A<m.length;++A)typeof m[A]<"u"&&(E[A]=m[A]);return E},a=function u(m,g,E){if(!g)return m;if(typeof g!="object"&&typeof g!="function"){if(n(m))m.push(g);else if(m&&typeof m=="object")(E&&(E.plainObjects||E.allowPrototypes)||!t.call(Object.prototype,g))&&(m[g]=!0);else return[m,g];return m}if(!m||typeof m!="object")return[m].concat(g);var A=m;return n(m)&&!n(g)&&(A=i(m,E)),n(m)&&n(g)?(g.forEach(function(O,R){if(t.call(m,R)){var P=m[R];P&&typeof P=="object"&&O&&typeof O=="object"?m[R]=u(P,O,E):m.push(O)}else m[R]=O}),m):Object.keys(g).reduce(function(O,R){var P=g[R];return t.call(O,R)?O[R]=u(O[R],P,E):O[R]=P,O},A)},s=function(m,g){return Object.keys(g).reduce(function(E,A){return E[A]=g[A],E},m)},p=function(u,m,g){var E=u.replace(/\+/g," ");if(g==="iso-8859-1")return E.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(E)}catch{return E}},l=1024,c=function(m,g,E,A,O){if(m.length===0)return m;var R=m;if(typeof m=="symbol"?R=Symbol.prototype.toString.call(m):typeof m!="string"&&(R=String(m)),E==="iso-8859-1")return escape(R).replace(/%u[0-9a-f]{4}/gi,function(G){return"%26%23"+parseInt(G.slice(2),16)+"%3B"});for(var P="",T=0;T<R.length;T+=l){for(var q=R.length>=l?R.slice(T,T+l):R,F=[],I=0;I<q.length;++I){var x=q.charCodeAt(I);if(x===45||x===46||x===95||x===126||x>=48&&x<=57||x>=65&&x<=90||x>=97&&x<=122||O===e.RFC1738&&(x===40||x===41)){F[F.length]=q.charAt(I);continue}if(x<128){F[F.length]=r[x];continue}if(x<2048){F[F.length]=r[192|x>>6]+r[128|x&63];continue}if(x<55296||x>=57344){F[F.length]=r[224|x>>12]+r[128|x>>6&63]+r[128|x&63];continue}I+=1,x=65536+((x&1023)<<10|q.charCodeAt(I)&1023),F[F.length]=r[240|x>>18]+r[128|x>>12&63]+r[128|x>>6&63]+r[128|x&63]}P+=F.join("")}return P},v=function(m){for(var g=[{obj:{o:m},prop:"o"}],E=[],A=0;A<g.length;++A)for(var O=g[A],R=O.obj[O.prop],P=Object.keys(R),T=0;T<P.length;++T){var q=P[T],F=R[q];typeof F=="object"&&F!==null&&E.indexOf(F)===-1&&(g.push({obj:R,prop:q}),E.push(F))}return o(g),m},S=function(m){return Object.prototype.toString.call(m)==="[object RegExp]"},b=function(m){return!m||typeof m!="object"?!1:!!(m.constructor&&m.constructor.isBuffer&&m.constructor.isBuffer(m))},y=function(m,g){return[].concat(m,g)},w=function(m,g){if(n(m)){for(var E=[],A=0;A<m.length;A+=1)E.push(g(m[A]));return E}return g(m)};return cr={arrayToObject:i,assign:s,combine:y,compact:v,decode:p,encode:c,isBuffer:b,isRegExp:S,maybeMap:w,merge:a},cr}var fr,lo;function xi(){if(lo)return fr;lo=1;var e=Pi(),t=so(),n=ur(),r=Object.prototype.hasOwnProperty,o={brackets:function(u){return u+"[]"},comma:"comma",indices:function(u,m){return u+"["+m+"]"},repeat:function(u){return u}},i=Array.isArray,a=Array.prototype.push,s=function(w,u){a.apply(w,i(u)?u:[u])},p=Date.prototype.toISOString,l=n.default,c={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:t.encode,encodeValuesOnly:!1,filter:void 0,format:l,formatter:n.formatters[l],indices:!1,serializeDate:function(u){return p.call(u)},skipNulls:!1,strictNullHandling:!1},v=function(u){return typeof u=="string"||typeof u=="number"||typeof u=="boolean"||typeof u=="symbol"||typeof u=="bigint"},S={},b=function w(u,m,g,E,A,O,R,P,T,q,F,I,x,G,j,Z,fe,pe){for(var _=u,Y=pe,de=0,Pe=!1;(Y=Y.get(S))!==void 0&&!Pe;){var he=Y.get(u);if(de+=1,typeof he<"u"){if(he===de)throw new RangeError("Cyclic object value");Pe=!0}typeof Y.get(S)>"u"&&(de=0)}if(typeof q=="function"?_=q(m,_):_ instanceof Date?_=x(_):g==="comma"&&i(_)&&(_=t.maybeMap(_,function(ne){return ne instanceof Date?x(ne):ne})),_===null){if(O)return T&&!Z?T(m,c.encoder,fe,"key",G):m;_=""}if(v(_)||t.isBuffer(_)){if(T){var me=Z?m:T(m,c.encoder,fe,"key",G);return[j(me)+"="+j(T(_,c.encoder,fe,"value",G))]}return[j(m)+"="+j(String(_))]}var ge=[];if(typeof _>"u")return ge;var ye;if(g==="comma"&&i(_))Z&&T&&(_=t.maybeMap(_,T)),ye=[{value:_.length>0?_.join(",")||null:void 0}];else if(i(q))ye=q;else{var re=Object.keys(_);ye=F?re.sort(F):re}var ve=P?String(m).replace(/\./g,"%2E"):String(m),be=E&&i(_)&&_.length===1?ve+"[]":ve;if(A&&i(_)&&_.length===0)return be+"[]";for(var H=0;H<ye.length;++H){var D=ye[H],k=typeof D=="object"&&D&&typeof D.value<"u"?D.value:_[D];if(!(R&&k===null)){var $=I&&P?String(D).replace(/\./g,"%2E"):String(D),z=i(_)?typeof g=="function"?g(be,$):be:be+(I?"."+$:"["+$+"]");pe.set(u,de);var J=e();J.set(S,pe),s(ge,w(k,z,g,E,A,O,R,P,g==="comma"&&Z&&i(_)?null:T,q,F,I,x,G,j,Z,fe,J))}}return ge},y=function(u){if(!u)return c;if(typeof u.allowEmptyArrays<"u"&&typeof u.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof u.encodeDotInKeys<"u"&&typeof u.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(u.encoder!==null&&typeof u.encoder<"u"&&typeof u.encoder!="function")throw new TypeError("Encoder has to be a function.");var m=u.charset||c.charset;if(typeof u.charset<"u"&&u.charset!=="utf-8"&&u.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var g=n.default;if(typeof u.format<"u"){if(!r.call(n.formatters,u.format))throw new TypeError("Unknown format option provided.");g=u.format}var E=n.formatters[g],A=c.filter;(typeof u.filter=="function"||i(u.filter))&&(A=u.filter);var O;if(u.arrayFormat in o?O=u.arrayFormat:"indices"in u?O=u.indices?"indices":"repeat":O=c.arrayFormat,"commaRoundTrip"in u&&typeof u.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var R=typeof u.allowDots>"u"?u.encodeDotInKeys===!0?!0:c.allowDots:!!u.allowDots;return{addQueryPrefix:typeof u.addQueryPrefix=="boolean"?u.addQueryPrefix:c.addQueryPrefix,allowDots:R,allowEmptyArrays:typeof u.allowEmptyArrays=="boolean"?!!u.allowEmptyArrays:c.allowEmptyArrays,arrayFormat:O,charset:m,charsetSentinel:typeof u.charsetSentinel=="boolean"?u.charsetSentinel:c.charsetSentinel,commaRoundTrip:!!u.commaRoundTrip,delimiter:typeof u.delimiter>"u"?c.delimiter:u.delimiter,encode:typeof u.encode=="boolean"?u.encode:c.encode,encodeDotInKeys:typeof u.encodeDotInKeys=="boolean"?u.encodeDotInKeys:c.encodeDotInKeys,encoder:typeof u.encoder=="function"?u.encoder:c.encoder,encodeValuesOnly:typeof u.encodeValuesOnly=="boolean"?u.encodeValuesOnly:c.encodeValuesOnly,filter:A,format:g,formatter:E,serializeDate:typeof u.serializeDate=="function"?u.serializeDate:c.serializeDate,skipNulls:typeof u.skipNulls=="boolean"?u.skipNulls:c.skipNulls,sort:typeof u.sort=="function"?u.sort:null,strictNullHandling:typeof u.strictNullHandling=="boolean"?u.strictNullHandling:c.strictNullHandling}};return fr=function(w,u){var m=w,g=y(u),E,A;typeof g.filter=="function"?(A=g.filter,m=A("",m)):i(g.filter)&&(A=g.filter,E=A);var O=[];if(typeof m!="object"||m===null)return"";var R=o[g.arrayFormat],P=R==="comma"&&g.commaRoundTrip;E||(E=Object.keys(m)),g.sort&&E.sort(g.sort);for(var T=e(),q=0;q<E.length;++q){var F=E[q],I=m[F];g.skipNulls&&I===null||s(O,b(I,F,R,P,g.allowEmptyArrays,g.strictNullHandling,g.skipNulls,g.encodeDotInKeys,g.encode?g.encoder:null,g.filter,g.sort,g.allowDots,g.serializeDate,g.format,g.formatter,g.encodeValuesOnly,g.charset,T))}var x=O.join(g.delimiter),G=g.addQueryPrefix===!0?"?":"";return g.charsetSentinel&&(g.charset==="iso-8859-1"?G+="utf8=%26%2310003%3B&":G+="utf8=%E2%9C%93&"),x.length>0?G+x:""},fr}var pr,uo;function Ti(){if(uo)return pr;uo=1;var e=so(),t=Object.prototype.hasOwnProperty,n=Array.isArray,r={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},o=function(S){return S.replace(/&#(\d+);/g,function(b,y){return String.fromCharCode(parseInt(y,10))})},i=function(S,b,y){if(S&&typeof S=="string"&&b.comma&&S.indexOf(",")>-1)return S.split(",");if(b.throwOnLimitExceeded&&y>=b.arrayLimit)throw new RangeError("Array limit exceeded. Only "+b.arrayLimit+" element"+(b.arrayLimit===1?"":"s")+" allowed in an array.");return S},a="utf8=%26%2310003%3B",s="utf8=%E2%9C%93",p=function(b,y){var w={__proto__:null},u=y.ignoreQueryPrefix?b.replace(/^\?/,""):b;u=u.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var m=y.parameterLimit===1/0?void 0:y.parameterLimit,g=u.split(y.delimiter,y.throwOnLimitExceeded?m+1:m);if(y.throwOnLimitExceeded&&g.length>m)throw new RangeError("Parameter limit exceeded. Only "+m+" parameter"+(m===1?"":"s")+" allowed.");var E=-1,A,O=y.charset;if(y.charsetSentinel)for(A=0;A<g.length;++A)g[A].indexOf("utf8=")===0&&(g[A]===s?O="utf-8":g[A]===a&&(O="iso-8859-1"),E=A,A=g.length);for(A=0;A<g.length;++A)if(A!==E){var R=g[A],P=R.indexOf("]="),T=P===-1?R.indexOf("="):P+1,q,F;T===-1?(q=y.decoder(R,r.decoder,O,"key"),F=y.strictNullHandling?null:""):(q=y.decoder(R.slice(0,T),r.decoder,O,"key"),F=e.maybeMap(i(R.slice(T+1),y,n(w[q])?w[q].length:0),function(x){return y.decoder(x,r.decoder,O,"value")})),F&&y.interpretNumericEntities&&O==="iso-8859-1"&&(F=o(String(F))),R.indexOf("[]=")>-1&&(F=n(F)?[F]:F);var I=t.call(w,q);I&&y.duplicates==="combine"?w[q]=e.combine(w[q],F):(!I||y.duplicates==="last")&&(w[q]=F)}return w},l=function(S,b,y,w){var u=0;if(S.length>0&&S[S.length-1]==="[]"){var m=S.slice(0,-1).join("");u=Array.isArray(b)&&b[m]?b[m].length:0}for(var g=w?b:i(b,y,u),E=S.length-1;E>=0;--E){var A,O=S[E];if(O==="[]"&&y.parseArrays)A=y.allowEmptyArrays&&(g===""||y.strictNullHandling&&g===null)?[]:e.combine([],g);else{A=y.plainObjects?{__proto__:null}:{};var R=O.charAt(0)==="["&&O.charAt(O.length-1)==="]"?O.slice(1,-1):O,P=y.decodeDotInKeys?R.replace(/%2E/g,"."):R,T=parseInt(P,10);!y.parseArrays&&P===""?A={0:g}:!isNaN(T)&&O!==P&&String(T)===P&&T>=0&&y.parseArrays&&T<=y.arrayLimit?(A=[],A[T]=g):P!=="__proto__"&&(A[P]=g)}g=A}return g},c=function(b,y,w,u){if(b){var m=w.allowDots?b.replace(/\.([^.[]+)/g,"[$1]"):b,g=/(\[[^[\]]*])/,E=/(\[[^[\]]*])/g,A=w.depth>0&&g.exec(m),O=A?m.slice(0,A.index):m,R=[];if(O){if(!w.plainObjects&&t.call(Object.prototype,O)&&!w.allowPrototypes)return;R.push(O)}for(var P=0;w.depth>0&&(A=E.exec(m))!==null&&P<w.depth;){if(P+=1,!w.plainObjects&&t.call(Object.prototype,A[1].slice(1,-1))&&!w.allowPrototypes)return;R.push(A[1])}if(A){if(w.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+w.depth+" and strictDepth is true");R.push("["+m.slice(A.index)+"]")}return l(R,y,w,u)}},v=function(b){if(!b)return r;if(typeof b.allowEmptyArrays<"u"&&typeof b.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof b.decodeDotInKeys<"u"&&typeof b.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(b.decoder!==null&&typeof b.decoder<"u"&&typeof b.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof b.charset<"u"&&b.charset!=="utf-8"&&b.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof b.throwOnLimitExceeded<"u"&&typeof b.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var y=typeof b.charset>"u"?r.charset:b.charset,w=typeof b.duplicates>"u"?r.duplicates:b.duplicates;if(w!=="combine"&&w!=="first"&&w!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var u=typeof b.allowDots>"u"?b.decodeDotInKeys===!0?!0:r.allowDots:!!b.allowDots;return{allowDots:u,allowEmptyArrays:typeof b.allowEmptyArrays=="boolean"?!!b.allowEmptyArrays:r.allowEmptyArrays,allowPrototypes:typeof b.allowPrototypes=="boolean"?b.allowPrototypes:r.allowPrototypes,allowSparse:typeof b.allowSparse=="boolean"?b.allowSparse:r.allowSparse,arrayLimit:typeof b.arrayLimit=="number"?b.arrayLimit:r.arrayLimit,charset:y,charsetSentinel:typeof b.charsetSentinel=="boolean"?b.charsetSentinel:r.charsetSentinel,comma:typeof b.comma=="boolean"?b.comma:r.comma,decodeDotInKeys:typeof b.decodeDotInKeys=="boolean"?b.decodeDotInKeys:r.decodeDotInKeys,decoder:typeof b.decoder=="function"?b.decoder:r.decoder,delimiter:typeof b.delimiter=="string"||e.isRegExp(b.delimiter)?b.delimiter:r.delimiter,depth:typeof b.depth=="number"||b.depth===!1?+b.depth:r.depth,duplicates:w,ignoreQueryPrefix:b.ignoreQueryPrefix===!0,interpretNumericEntities:typeof b.interpretNumericEntities=="boolean"?b.interpretNumericEntities:r.interpretNumericEntities,parameterLimit:typeof b.parameterLimit=="number"?b.parameterLimit:r.parameterLimit,parseArrays:b.parseArrays!==!1,plainObjects:typeof b.plainObjects=="boolean"?b.plainObjects:r.plainObjects,strictDepth:typeof b.strictDepth=="boolean"?!!b.strictDepth:r.strictDepth,strictNullHandling:typeof b.strictNullHandling=="boolean"?b.strictNullHandling:r.strictNullHandling,throwOnLimitExceeded:typeof b.throwOnLimitExceeded=="boolean"?b.throwOnLimitExceeded:!1}};return pr=function(S,b){var y=v(b);if(S===""||S===null||typeof S>"u")return y.plainObjects?{__proto__:null}:{};for(var w=typeof S=="string"?p(S,y):S,u=y.plainObjects?{__proto__:null}:{},m=Object.keys(w),g=0;g<m.length;++g){var E=m[g],A=c(E,w[E],y,typeof S=="string");u=e.merge(u,A,y)}return y.allowSparse===!0?u:e.compact(u)},pr}var dr,co;function Ci(){if(co)return dr;co=1;var e=xi(),t=Ti(),n=ur();return dr={formats:n,parse:t,stringify:e},dr}var Fi=Ci();const fo=Xa(Fi);function Ni(e,...t){let n=null,r=null,o="json",i=null;return t.length&&(t.forEach((a,s)=>{s===0?typeof a=="object"?n=a:typeof a=="string"?a.toLowerCase()==="blob"?o="blob":a.toLowerCase()==="json"||a.toLowerCase()==="query"||a.toLowerCase()==="file"||a.toLowerCase()==="data"||a.toLowerCase()==="form-data"||a.toLowerCase()==="formdata"?r=a.toLowerCase():console.error("ezAxios: 请求参数仅支持 Object、Array、File 类型"):n&&console.error("ezAxios: 请求参数仅支持 Object、Array、File 类型"):s<4?a&&(Object.prototype.toString.call(a)=="[object Object]"?i=a:typeof a=="string"?a.toLowerCase()==="blob"?o="blob":a.toLowerCase()==="json"||a.toLowerCase()==="query"||a.toLowerCase()==="file"||a.toLowerCase()==="data"||a.toLowerCase()==="form-data"||a.toLowerCase()==="formdata"?r=a.toLowerCase():console.warn("ezAxios: 存在无法处理的参数类型,这可能会影响您的程序"):console.warn(`ezAxios: 存在无法处理的参数类型 ${a},这可能会影响您的程序`)):console.warn("ezAxios: 接收到多余参数,已忽略")}),o!="json"&&r=="query"&&console.warn("ezAxios: 请参数类型为query时,设置返回值类型无效")),new Promise((a,s)=>{if(r==="query")se(i).post(e,null,{params:n,signal:i?.signal}).then(p=>{a(p)}).catch(p=>{s(p)});else if(r==="file"){const p=new FormData;if(n instanceof File)p.append("file",n);else for(const l in n)if(n[l]instanceof File)p.append(`${l}`,n[l]);else if(Object.prototype.toString.call(n[l])=="[object Array]"){const c=n[l].filter(v=>v instanceof File);c.length&&c.length<=n[l].length?(c.forEach((v,S)=>{p.append(`${l}[${S}]`,v)}),c.length<n[l].length&&console.warn(`ezAxios: 数组${l}存在非文件类型对象,已被忽略`)):p.append(`${l}`,JSON.stringify(n[l]))}else typeof n[l]=="string"?p.append(`${l}`,n[l]):p.append(`${l}`,JSON.stringify(n[l]));se(i).post(e,p,{responseType:o,signal:i?.signal}).then(l=>{a(l)}).catch(l=>{s(l)})}else r==="data"||r==="form-data"||r==="formdata"?se(i).post(e,fo.stringify(n),{responseType:o,signal:i?.signal}).then(p=>{a(p)}).catch(p=>{s(p)}):se(i).post(e,n,{responseType:o,signal:i?.signal}).then(p=>{a(p)}).catch(p=>{s(p)})})}function _i(e,...t){let n=null,r=null,o="json",i=null;return t.length&&(t.forEach((a,s)=>{s===0?typeof a=="object"?n=a:typeof a=="string"?a.toLowerCase()==="blob"?o="blob":a.toLowerCase()==="json"||a.toLowerCase()==="query"||a.toLowerCase()==="file"||a.toLowerCase()==="data"||a.toLowerCase()==="form-data"||a.toLowerCase()==="formdata"?r=a.toLowerCase():console.error("ezAxios: 请求参数仅支持 Object、Array、File 类型"):n&&console.error("ezAxios: 请求参数仅支持 Object、Array、File 类型"):s<4?a&&(Object.prototype.toString.call(a)=="[object Object]"?i=a:typeof a=="string"?a.toLowerCase()==="blob"?o="blob":a.toLowerCase()==="json"||a.toLowerCase()==="query"||a.toLowerCase()==="file"||a.toLowerCase()==="data"||a.toLowerCase()==="form-data"||a.toLowerCase()==="formdata"?r=a.toLowerCase():console.warn("ezAxios: 存在无法处理的参数类型,这可能会影响您的程序"):console.warn("ezAxios: 存在无法处理的参数类型,这可能会影响您的程序")):console.warn("ezAxios: 接收到多余参数,已忽略")}),o!="json"&&r=="query"&&console.warn("ezAxios: 请参数类型为query时,设置返回值类型无效")),new Promise((a,s)=>{if(r==="query")se(i).put(e,null,{params:n,signal:i?.signal}).then(p=>{a(p)}).catch(p=>{s(p)});else if(r==="file"){const p=new FormData;if(n instanceof File)p.append("file",n);else for(const l in n)if(n[l]instanceof File)p.append(`${l}`,n[l]);else if(Object.prototype.toString.call(n[l])=="[object Array]"){const c=n[l].filter(v=>v instanceof File);c.length&&c.length<=n[l].length?(c.forEach((v,S)=>{p.append(`${l}[${S}]`,v)}),c.length<n[l].length&&console.warn(`ezAxios: 数组${l}存在非文件类型对象,已被忽略`)):p.append(`${l}`,JSON.stringify(n[l]))}else typeof n[l]=="string"?p.append(`${l}`,n[l]):p.append(`${l}`,JSON.stringify(n[l]));se(i).put(e,p,{responseType:o,signal:i?.signal}).then(l=>{a(l)}).catch(l=>{s(l)})}else r==="data"||r==="form-data"||r==="formdata"?se(i).put(e,fo.stringify(n),{responseType:o,signal:i?.signal}).then(p=>{a(p)}).catch(p=>{s(p)}):se(i).put(e,n,{responseType:o,signal:i?.signal}).then(p=>{a(p)}).catch(p=>{s(p)})})}function qi(e,...t){let n=null,r=null,o=null;return t.length&&t.forEach((i,a)=>{a===0?typeof i=="object"?n=i:typeof i=="string"?i.toLowerCase()==="query"||i.toLowerCase()==="json"?r=i.toLowerCase():console.error("ezAxios: 请求参数仅支持 Object、Array 类型"):n&&console.error("ezAxios: 请求参数仅支持 Object、Array 类型"):a<3?i&&(Object.prototype.toString.call(i)=="[object Object]"?o=i:typeof i=="string"&&(i.toLowerCase()==="query"||i.toLowerCase()==="json")?r=i.toLowerCase():console.warn("ezAxios: 存在无法处理的参数类型,这可能会影响您的程序")):console.warn("ezAxios: 接收到多余参数,已忽略")}),new Promise((i,a)=>{r==="query"?se(o).delete(e,{params:n,signal:o?.signal}).then(s=>{i(s)}).catch(s=>{a(s)}):se(o).delete(e,{data:n,signal:o?.signal}).then(s=>{i(s)}).catch(s=>{a(s)})})}ae.Loading=te,ae.default=Oo,ae.del=qi,ae.get=Qa,ae.post=Ni,ae.put=_i,Object.defineProperties(ae,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});