8 lines
40 KiB
JavaScript
8 lines
40 KiB
JavaScript
import{a as tt,g as _t,R as Pt}from"./react-vendor-Dvs2KPqW.js";const Nt={},Ue=e=>{let t;const n=new Set,r=(u,d)=>{const y=typeof u=="function"?u(t):u;if(!Object.is(y,t)){const w=t;t=d??(typeof y!="object"||y===null)?y:Object.assign({},t,y),n.forEach(l=>l(t,w))}},s=()=>t,p={setState:r,getState:s,getInitialState:()=>f,subscribe:u=>(n.add(u),()=>n.delete(u)),destroy:()=>{(Nt?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},f=t=e(r,s,p);return p},Ft=e=>e?Ue(e):Ue;var fe={exports:{}},de={},pe={exports:{}},he={};var De;function Ut(){if(De)return he;De=1;var e=tt();function t(d,y){return d===y&&(d!==0||1/d===1/y)||d!==d&&y!==y}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,s=e.useEffect,i=e.useLayoutEffect,o=e.useDebugValue;function c(d,y){var w=y(),l=r({inst:{value:w,getSnapshot:y}}),m=l[0].inst,h=l[1];return i(function(){m.value=w,m.getSnapshot=y,p(m)&&h({inst:m})},[d,w,y]),s(function(){return p(m)&&h({inst:m}),d(function(){p(m)&&h({inst:m})})},[d]),o(w),w}function p(d){var y=d.getSnapshot;d=d.value;try{var w=y();return!n(d,w)}catch{return!0}}function f(d,y){return y()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:c;return he.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:u,he}var Le;function Dt(){return Le||(Le=1,pe.exports=Ut()),pe.exports}var je;function Lt(){if(je)return de;je=1;var e=tt(),t=Dt();function n(f,u){return f===u&&(f!==0||1/f===1/u)||f!==f&&u!==u}var r=typeof Object.is=="function"?Object.is:n,s=t.useSyncExternalStore,i=e.useRef,o=e.useEffect,c=e.useMemo,p=e.useDebugValue;return de.useSyncExternalStoreWithSelector=function(f,u,d,y,w){var l=i(null);if(l.current===null){var m={hasValue:!1,value:null};l.current=m}else m=l.current;l=c(function(){function E(A){if(!x){if(x=!0,S=A,A=y(A),w!==void 0&&m.hasValue){var O=m.value;if(w(O,A))return R=O}return R=A}if(O=R,r(S,A))return O;var q=y(A);return w!==void 0&&w(O,q)?(S=A,O):(S=A,R=q)}var x=!1,S,R,C=d===void 0?null:d;return[function(){return E(u())},C===null?void 0:function(){return E(C())}]},[u,d,y,w]);var h=s(f,l[0],l[1]);return o(function(){m.hasValue=!0,m.value=h},[h]),p(h),h},de}var ke;function jt(){return ke||(ke=1,fe.exports=Lt()),fe.exports}var kt=jt();const Bt=_t(kt),nt={},{useDebugValue:vt}=Pt,{useSyncExternalStoreWithSelector:qt}=Bt;let Be=!1;const It=e=>e;function Ht(e,t=It,n){(nt?"production":void 0)!=="production"&&n&&!Be&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Be=!0);const r=qt(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return vt(r),r}const Mt=e=>{(nt?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?Ft(e):e,n=(r,s)=>Ht(t,r,s);return Object.assign(n,t),n},Rr=e=>Mt;function rt(e,t){return function(){return e.apply(t,arguments)}}const{toString:$t}=Object.prototype,{getPrototypeOf:Re}=Object,{iterator:oe,toStringTag:st}=Symbol,ie=(e=>t=>{const n=$t.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),N=e=>(e=e.toLowerCase(),t=>ie(t)===e),ae=e=>t=>typeof t===e,{isArray:M}=Array,H=ae("undefined");function J(e){return e!==null&&!H(e)&&e.constructor!==null&&!H(e.constructor)&&_(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ot=N("ArrayBuffer");function zt(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ot(e.buffer),t}const Vt=ae("string"),_=ae("function"),it=ae("number"),K=e=>e!==null&&typeof e=="object",Wt=e=>e===!0||e===!1,te=e=>{if(ie(e)!=="object")return!1;const t=Re(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(st in e)&&!(oe in e)},Jt=e=>{if(!K(e)||J(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Kt=N("Date"),Xt=N("File"),Gt=N("Blob"),Qt=N("FileList"),Zt=e=>K(e)&&_(e.pipe),Yt=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||_(e.append)&&((t=ie(e))==="formdata"||t==="object"&&_(e.toString)&&e.toString()==="[object FormData]"))},en=N("URLSearchParams"),[tn,nn,rn,sn]=["ReadableStream","Request","Response","Headers"].map(N),on=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function X(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),M(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{if(J(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let c;for(r=0;r<o;r++)c=i[r],t.call(null,e[c],c,e)}}function at(e,t){if(J(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const k=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ct=e=>!H(e)&&e!==k;function we(){const{caseless:e,skipUndefined:t}=ct(this)&&this||{},n={},r=(s,i)=>{const o=e&&at(n,i)||i;te(n[o])&&te(s)?n[o]=we(n[o],s):te(s)?n[o]=we({},s):M(s)?n[o]=s.slice():(!t||!H(s))&&(n[o]=s)};for(let s=0,i=arguments.length;s<i;s++)arguments[s]&&X(arguments[s],r);return n}const an=(e,t,n,{allOwnKeys:r}={})=>(X(t,(s,i)=>{n&&_(s)?e[i]=rt(s,n):e[i]=s},{allOwnKeys:r}),e),cn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),un=(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)},ln=(e,t,n,r)=>{let s,i,o;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)o=s[i],(!r||r(o,e,t))&&!c[o]&&(t[o]=e[o],c[o]=!0);e=n!==!1&&Re(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},fn=(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},dn=e=>{if(!e)return null;if(M(e))return e;let t=e.length;if(!it(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},pn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Re(Uint8Array)),hn=(e,t)=>{const r=(e&&e[oe]).call(e);let s;for(;(s=r.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},mn=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},yn=N("HTMLFormElement"),bn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),ve=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),wn=N("RegExp"),ut=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};X(n,(s,i)=>{let o;(o=t(s,i,e))!==!1&&(r[i]=o||s)}),Object.defineProperties(e,r)},Sn=e=>{ut(e,(t,n)=>{if(_(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(_(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+"'")})}})},En=(e,t)=>{const n={},r=s=>{s.forEach(i=>{n[i]=!0})};return M(e)?r(e):r(String(e).split(t)),n},gn=()=>{},Rn=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function On(e){return!!(e&&_(e.append)&&e[st]==="FormData"&&e[oe])}const An=e=>{const t=new Array(10),n=(r,s)=>{if(K(r)){if(t.indexOf(r)>=0)return;if(J(r))return r;if(!("toJSON"in r)){t[s]=r;const i=M(r)?[]:{};return X(r,(o,c)=>{const p=n(o,s+1);!H(p)&&(i[c]=p)}),t[s]=void 0,i}}return r};return n(e,0)},Tn=N("AsyncFunction"),xn=e=>e&&(K(e)||_(e))&&_(e.then)&&_(e.catch),lt=((e,t)=>e?setImmediate:t?((n,r)=>(k.addEventListener("message",({source:s,data:i})=>{s===k&&i===n&&r.length&&r.shift()()},!1),s=>{r.push(s),k.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",_(k.postMessage)),Cn=typeof queueMicrotask<"u"?queueMicrotask.bind(k):typeof process<"u"&&process.nextTick||lt,_n=e=>e!=null&&_(e[oe]),a={isArray:M,isArrayBuffer:ot,isBuffer:J,isFormData:Yt,isArrayBufferView:zt,isString:Vt,isNumber:it,isBoolean:Wt,isObject:K,isPlainObject:te,isEmptyObject:Jt,isReadableStream:tn,isRequest:nn,isResponse:rn,isHeaders:sn,isUndefined:H,isDate:Kt,isFile:Xt,isBlob:Gt,isRegExp:wn,isFunction:_,isStream:Zt,isURLSearchParams:en,isTypedArray:pn,isFileList:Qt,forEach:X,merge:we,extend:an,trim:on,stripBOM:cn,inherits:un,toFlatObject:ln,kindOf:ie,kindOfTest:N,endsWith:fn,toArray:dn,forEachEntry:hn,matchAll:mn,isHTMLForm:yn,hasOwnProperty:ve,hasOwnProp:ve,reduceDescriptors:ut,freezeMethods:Sn,toObjectSet:En,toCamelCase:bn,noop:gn,toFiniteNumber:Rn,findKey:at,global:k,isContextDefined:ct,isSpecCompliantForm:On,toJSONObject:An,isAsyncFn:Tn,isThenable:xn,setImmediate:lt,asap:Cn,isIterable:_n};function b(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}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.status}}});const ft=b.prototype,dt={};["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=>{dt[e]={value:e}});Object.defineProperties(b,dt);Object.defineProperty(ft,"isAxiosError",{value:!0});b.from=(e,t,n,r,s,i)=>{const o=Object.create(ft);a.toFlatObject(e,o,function(u){return u!==Error.prototype},f=>f!=="isAxiosError");const c=e&&e.message?e.message:"Error",p=t==null&&e?e.code:t;return b.call(o,c,p,n,r,s),e&&o.cause==null&&Object.defineProperty(o,"cause",{value:e,configurable:!0}),o.name=e&&e.name||"Error",i&&Object.assign(o,i),o};const Pn=null;function Se(e){return a.isPlainObject(e)||a.isArray(e)}function pt(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function qe(e,t,n){return e?e.concat(t).map(function(s,i){return s=pt(s),!n&&i?"["+s+"]":s}).join(n?".":""):t}function Nn(e){return a.isArray(e)&&!e.some(Se)}const Fn=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function ce(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,h){return!a.isUndefined(h[m])});const r=n.metaTokens,s=n.visitor||u,i=n.dots,o=n.indexes,p=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function f(l){if(l===null)return"";if(a.isDate(l))return l.toISOString();if(a.isBoolean(l))return l.toString();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,m,h){let E=l;if(l&&!h&&typeof l=="object"){if(a.endsWith(m,"{}"))m=r?m:m.slice(0,-2),l=JSON.stringify(l);else if(a.isArray(l)&&Nn(l)||(a.isFileList(l)||a.endsWith(m,"[]"))&&(E=a.toArray(l)))return m=pt(m),E.forEach(function(S,R){!(a.isUndefined(S)||S===null)&&t.append(o===!0?qe([m],R,i):o===null?m:m+"[]",f(S))}),!1}return Se(l)?!0:(t.append(qe(h,m,i),f(l)),!1)}const d=[],y=Object.assign(Fn,{defaultVisitor:u,convertValue:f,isVisitable:Se});function w(l,m){if(!a.isUndefined(l)){if(d.indexOf(l)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(l),a.forEach(l,function(E,x){(!(a.isUndefined(E)||E===null)&&s.call(t,E,a.isString(x)?x.trim():x,m,y))===!0&&w(E,m?m.concat(x):[x])}),d.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return w(e),t}function Ie(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Oe(e,t){this._pairs=[],e&&ce(e,this,t)}const ht=Oe.prototype;ht.append=function(t,n){this._pairs.push([t,n])};ht.toString=function(t){const n=t?function(r){return t.call(this,r,Ie)}:Ie;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Un(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function mt(e,t,n){if(!t)return e;const r=n&&n.encode||Un;a.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let i;if(s?i=s(t,n):i=a.isURLSearchParams(t)?t.toString():new Oe(t,n).toString(r),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class He{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const yt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Dn=typeof URLSearchParams<"u"?URLSearchParams:Oe,Ln=typeof FormData<"u"?FormData:null,jn=typeof Blob<"u"?Blob:null,kn={isBrowser:!0,classes:{URLSearchParams:Dn,FormData:Ln,Blob:jn},protocols:["http","https","file","blob","url","data"]},Ae=typeof window<"u"&&typeof document<"u",Ee=typeof navigator=="object"&&navigator||void 0,Bn=Ae&&(!Ee||["ReactNative","NativeScript","NS"].indexOf(Ee.product)<0),vn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",qn=Ae&&window.location.href||"http://localhost",In=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ae,hasStandardBrowserEnv:Bn,hasStandardBrowserWebWorkerEnv:vn,navigator:Ee,origin:qn},Symbol.toStringTag,{value:"Module"})),T={...In,...kn};function Hn(e,t){return ce(e,new T.classes.URLSearchParams,{visitor:function(n,r,s,i){return T.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function Mn(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function $n(e){const t={},n=Object.keys(e);let r;const s=n.length;let i;for(r=0;r<s;r++)i=n[r],t[i]=e[i];return t}function bt(e){function t(n,r,s,i){let o=n[i++];if(o==="__proto__")return!0;const c=Number.isFinite(+o),p=i>=n.length;return o=!o&&a.isArray(s)?s.length:o,p?(a.hasOwnProp(s,o)?s[o]=[s[o],r]:s[o]=r,!c):((!s[o]||!a.isObject(s[o]))&&(s[o]=[]),t(n,r,s[o],i)&&a.isArray(s[o])&&(s[o]=$n(s[o])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(Mn(r),s,n,0)}),n}return null}function zn(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const G={transitional:yt,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,i=a.isObject(t);if(i&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(bt(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Hn(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return ce(c?{"files[]":t}:t,p&&new p,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),zn(t)):t}],transformResponse:[function(t){const n=this.transitional||G.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||s)){const o=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t,this.parseReviver)}catch(c){if(o)throw c.name==="SyntaxError"?b.from(c,b.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:T.classes.FormData,Blob:T.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=>{G.headers[e]={}});const Vn=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"]),Wn=e=>{const t={};let n,r,s;return e&&e.split(`
|
|
`).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!n||t[n]&&Vn[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Me=Symbol("internals");function V(e){return e&&String(e).trim().toLowerCase()}function ne(e){return e===!1||e==null?e:a.isArray(e)?e.map(ne):String(e)}function Jn(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 Kn=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function me(e,t,n,r,s){if(a.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function Xn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Gn(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,i,o){return this[r].call(this,t,s,i,o)},configurable:!0})})}let P=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function i(c,p,f){const u=V(p);if(!u)throw new Error("header name must be a non-empty string");const d=a.findKey(s,u);(!d||s[d]===void 0||f===!0||f===void 0&&s[d]!==!1)&&(s[d||p]=ne(c))}const o=(c,p)=>a.forEach(c,(f,u)=>i(f,u,p));if(a.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(a.isString(t)&&(t=t.trim())&&!Kn(t))o(Wn(t),n);else if(a.isObject(t)&&a.isIterable(t)){let c={},p,f;for(const u of t){if(!a.isArray(u))throw TypeError("Object iterator must return a key-value pair");c[f=u[0]]=(p=c[f])?a.isArray(p)?[...p,u[1]]:[p,u[1]]:u[1]}o(c,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=V(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return Jn(s);if(a.isFunction(n))return n.call(this,s,r);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=V(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||me(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function i(o){if(o=V(o),o){const c=a.findKey(r,o);c&&(!n||me(r,r[c],c,n))&&(delete r[c],s=!0)}}return a.isArray(t)?t.forEach(i):i(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const i=n[r];(!t||me(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const n=this,r={};return a.forEach(this,(s,i)=>{const o=a.findKey(r,i);if(o){n[o]=ne(s),delete n[i];return}const c=t?Xn(i):String(i).trim();c!==i&&delete n[i],n[c]=ne(s),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
`)}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(s=>r.set(s)),r}static accessor(t){const r=(this[Me]=this[Me]={accessors:{}}).accessors,s=this.prototype;function i(o){const c=V(o);r[c]||(Gn(s,o),r[c]=!0)}return a.isArray(t)?t.forEach(i):i(t),this}};P.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(P.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(P);function ye(e,t){const n=this||G,r=t||n,s=P.from(r.headers);let i=r.data;return a.forEach(e,function(c){i=c.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function wt(e){return!!(e&&e.__CANCEL__)}function $(e,t,n){b.call(this,e??"canceled",b.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits($,b,{__CANCEL__:!0});function St(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new b("Request failed with status code "+n.status,[b.ERR_BAD_REQUEST,b.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Qn(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Zn(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,i=0,o;return t=t!==void 0?t:1e3,function(p){const f=Date.now(),u=r[i];o||(o=f),n[s]=p,r[s]=f;let d=i,y=0;for(;d!==s;)y+=n[d++],d=d%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),f-o<t)return;const w=u&&f-u;return w?Math.round(y*1e3/w):void 0}}function Yn(e,t){let n=0,r=1e3/t,s,i;const o=(f,u=Date.now())=>{n=u,s=null,i&&(clearTimeout(i),i=null),e(...f)};return[(...f)=>{const u=Date.now(),d=u-n;d>=r?o(f,u):(s=f,i||(i=setTimeout(()=>{i=null,o(s)},r-d)))},()=>s&&o(s)]}const se=(e,t,n=3)=>{let r=0;const s=Zn(50,250);return Yn(i=>{const o=i.loaded,c=i.lengthComputable?i.total:void 0,p=o-r,f=s(p),u=o<=c;r=o;const d={loaded:o,total:c,progress:c?o/c:void 0,bytes:p,rate:f||void 0,estimated:f&&c&&u?(c-o)/f:void 0,event:i,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(d)},n)},$e=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ze=e=>(...t)=>a.asap(()=>e(...t)),er=T.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,T.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(T.origin),T.navigator&&/(msie|trident)/i.test(T.navigator.userAgent)):()=>!0,tr=T.hasStandardBrowserEnv?{write(e,t,n,r,s,i,o){if(typeof document>"u")return;const c=[`${e}=${encodeURIComponent(t)}`];a.isNumber(n)&&c.push(`expires=${new Date(n).toUTCString()}`),a.isString(r)&&c.push(`path=${r}`),a.isString(s)&&c.push(`domain=${s}`),i===!0&&c.push("secure"),a.isString(o)&&c.push(`SameSite=${o}`),document.cookie=c.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function nr(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function rr(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Et(e,t,n){let r=!nr(t);return e&&(r||n==!1)?rr(e,t):t}const Ve=e=>e instanceof P?{...e}:e;function v(e,t){t=t||{};const n={};function r(f,u,d,y){return a.isPlainObject(f)&&a.isPlainObject(u)?a.merge.call({caseless:y},f,u):a.isPlainObject(u)?a.merge({},u):a.isArray(u)?u.slice():u}function s(f,u,d,y){if(a.isUndefined(u)){if(!a.isUndefined(f))return r(void 0,f,d,y)}else return r(f,u,d,y)}function i(f,u){if(!a.isUndefined(u))return r(void 0,u)}function o(f,u){if(a.isUndefined(u)){if(!a.isUndefined(f))return r(void 0,f)}else return r(void 0,u)}function c(f,u,d){if(d in t)return r(f,u);if(d in e)return r(void 0,f)}const p={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:c,headers:(f,u,d)=>s(Ve(f),Ve(u),d,!0)};return a.forEach(Object.keys({...e,...t}),function(u){const d=p[u]||s,y=d(e[u],t[u],u);a.isUndefined(y)&&d!==c||(n[u]=y)}),n}const gt=e=>{const t=v({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:i,headers:o,auth:c}=t;if(t.headers=o=P.from(o),t.url=mt(Et(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&o.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),a.isFormData(n)){if(T.hasStandardBrowserEnv||T.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(a.isFunction(n.getHeaders)){const p=n.getHeaders(),f=["content-type","content-length"];Object.entries(p).forEach(([u,d])=>{f.includes(u.toLowerCase())&&o.set(u,d)})}}if(T.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(t)),r||r!==!1&&er(t.url))){const p=s&&i&&tr.read(i);p&&o.set(s,p)}return t},sr=typeof XMLHttpRequest<"u",or=sr&&function(e){return new Promise(function(n,r){const s=gt(e);let i=s.data;const o=P.from(s.headers).normalize();let{responseType:c,onUploadProgress:p,onDownloadProgress:f}=s,u,d,y,w,l;function m(){w&&w(),l&&l(),s.cancelToken&&s.cancelToken.unsubscribe(u),s.signal&&s.signal.removeEventListener("abort",u)}let h=new XMLHttpRequest;h.open(s.method.toUpperCase(),s.url,!0),h.timeout=s.timeout;function E(){if(!h)return;const S=P.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),C={data:!c||c==="text"||c==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:S,config:e,request:h};St(function(O){n(O),m()},function(O){r(O),m()},C),h=null}"onloadend"in h?h.onloadend=E:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(E)},h.onabort=function(){h&&(r(new b("Request aborted",b.ECONNABORTED,e,h)),h=null)},h.onerror=function(R){const C=R&&R.message?R.message:"Network Error",A=new b(C,b.ERR_NETWORK,e,h);A.event=R||null,r(A),h=null},h.ontimeout=function(){let R=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const C=s.transitional||yt;s.timeoutErrorMessage&&(R=s.timeoutErrorMessage),r(new b(R,C.clarifyTimeoutError?b.ETIMEDOUT:b.ECONNABORTED,e,h)),h=null},i===void 0&&o.setContentType(null),"setRequestHeader"in h&&a.forEach(o.toJSON(),function(R,C){h.setRequestHeader(C,R)}),a.isUndefined(s.withCredentials)||(h.withCredentials=!!s.withCredentials),c&&c!=="json"&&(h.responseType=s.responseType),f&&([y,l]=se(f,!0),h.addEventListener("progress",y)),p&&h.upload&&([d,w]=se(p),h.upload.addEventListener("progress",d),h.upload.addEventListener("loadend",w)),(s.cancelToken||s.signal)&&(u=S=>{h&&(r(!S||S.type?new $(null,e,h):S),h.abort(),h=null)},s.cancelToken&&s.cancelToken.subscribe(u),s.signal&&(s.signal.aborted?u():s.signal.addEventListener("abort",u)));const x=Qn(s.url);if(x&&T.protocols.indexOf(x)===-1){r(new b("Unsupported protocol "+x+":",b.ERR_BAD_REQUEST,e));return}h.send(i||null)})},ir=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const i=function(f){if(!s){s=!0,c();const u=f instanceof Error?f:this.reason;r.abort(u instanceof b?u:new $(u instanceof Error?u.message:u))}};let o=t&&setTimeout(()=>{o=null,i(new b(`timeout ${t} of ms exceeded`,b.ETIMEDOUT))},t);const c=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(i):f.removeEventListener("abort",i)}),e=null)};e.forEach(f=>f.addEventListener("abort",i));const{signal:p}=r;return p.unsubscribe=()=>a.asap(c),p}},ar=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},cr=async function*(e,t){for await(const n of ur(e))yield*ar(n,t)},ur=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()}},We=(e,t,n,r)=>{const s=cr(e,t);let i=0,o,c=p=>{o||(o=!0,r&&r(p))};return new ReadableStream({async pull(p){try{const{done:f,value:u}=await s.next();if(f){c(),p.close();return}let d=u.byteLength;if(n){let y=i+=d;n(y)}p.enqueue(new Uint8Array(u))}catch(f){throw c(f),f}},cancel(p){return c(p),s.return()}},{highWaterMark:2})},Je=64*1024,{isFunction:ee}=a,lr=(({Request:e,Response:t})=>({Request:e,Response:t}))(a.global),{ReadableStream:Ke,TextEncoder:Xe}=a.global,Ge=(e,...t)=>{try{return!!e(...t)}catch{return!1}},fr=e=>{e=a.merge.call({skipUndefined:!0},lr,e);const{fetch:t,Request:n,Response:r}=e,s=t?ee(t):typeof fetch=="function",i=ee(n),o=ee(r);if(!s)return!1;const c=s&&ee(Ke),p=s&&(typeof Xe=="function"?(l=>m=>l.encode(m))(new Xe):async l=>new Uint8Array(await new n(l).arrayBuffer())),f=i&&c&&Ge(()=>{let l=!1;const m=new n(T.origin,{body:new Ke,method:"POST",get duplex(){return l=!0,"half"}}).headers.has("Content-Type");return l&&!m}),u=o&&c&&Ge(()=>a.isReadableStream(new r("").body)),d={stream:u&&(l=>l.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(l=>{!d[l]&&(d[l]=(m,h)=>{let E=m&&m[l];if(E)return E.call(m);throw new b(`Response type '${l}' is not supported`,b.ERR_NOT_SUPPORT,h)})});const y=async l=>{if(l==null)return 0;if(a.isBlob(l))return l.size;if(a.isSpecCompliantForm(l))return(await new n(T.origin,{method:"POST",body:l}).arrayBuffer()).byteLength;if(a.isArrayBufferView(l)||a.isArrayBuffer(l))return l.byteLength;if(a.isURLSearchParams(l)&&(l=l+""),a.isString(l))return(await p(l)).byteLength},w=async(l,m)=>{const h=a.toFiniteNumber(l.getContentLength());return h??y(m)};return async l=>{let{url:m,method:h,data:E,signal:x,cancelToken:S,timeout:R,onDownloadProgress:C,onUploadProgress:A,responseType:O,headers:q,withCredentials:Q="same-origin",fetchOptions:xe}=gt(l),Ce=t||fetch;O=O?(O+"").toLowerCase():"text";let Z=ir([x,S&&S.toAbortSignal()],R),z=null;const j=Z&&Z.unsubscribe&&(()=>{Z.unsubscribe()});let _e;try{if(A&&f&&h!=="get"&&h!=="head"&&(_e=await w(q,E))!==0){let L=new n(m,{method:"POST",body:E,duplex:"half"}),I;if(a.isFormData(E)&&(I=L.headers.get("content-type"))&&q.setContentType(I),L.body){const[le,Y]=$e(_e,se(ze(A)));E=We(L.body,Je,le,Y)}}a.isString(Q)||(Q=Q?"include":"omit");const F=i&&"credentials"in n.prototype,Pe={...xe,signal:Z,method:h.toUpperCase(),headers:q.normalize().toJSON(),body:E,duplex:"half",credentials:F?Q:void 0};z=i&&new n(m,Pe);let D=await(i?Ce(z,xe):Ce(m,Pe));const Ne=u&&(O==="stream"||O==="response");if(u&&(C||Ne&&j)){const L={};["status","statusText","headers"].forEach(Fe=>{L[Fe]=D[Fe]});const I=a.toFiniteNumber(D.headers.get("content-length")),[le,Y]=C&&$e(I,se(ze(C),!0))||[];D=new r(We(D.body,Je,le,()=>{Y&&Y(),j&&j()}),L)}O=O||"text";let Ct=await d[a.findKey(d,O)||"text"](D,l);return!Ne&&j&&j(),await new Promise((L,I)=>{St(L,I,{data:Ct,headers:P.from(D.headers),status:D.status,statusText:D.statusText,config:l,request:z})})}catch(F){throw j&&j(),F&&F.name==="TypeError"&&/Load failed|fetch/i.test(F.message)?Object.assign(new b("Network Error",b.ERR_NETWORK,l,z),{cause:F.cause||F}):b.from(F,F&&F.code,l,z)}}},dr=new Map,Rt=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:s}=t,i=[r,s,n];let o=i.length,c=o,p,f,u=dr;for(;c--;)p=i[c],f=u.get(p),f===void 0&&u.set(p,f=c?new Map:fr(t)),u=f;return f};Rt();const Te={http:Pn,xhr:or,fetch:{get:Rt}};a.forEach(Te,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Qe=e=>`- ${e}`,pr=e=>a.isFunction(e)||e===null||e===!1;function hr(e,t){e=a.isArray(e)?e:[e];const{length:n}=e;let r,s;const i={};for(let o=0;o<n;o++){r=e[o];let c;if(s=r,!pr(r)&&(s=Te[(c=String(r)).toLowerCase()],s===void 0))throw new b(`Unknown adapter '${c}'`);if(s&&(a.isFunction(s)||(s=s.get(t))))break;i[c||"#"+o]=s}if(!s){const o=Object.entries(i).map(([p,f])=>`adapter ${p} `+(f===!1?"is not supported by the environment":"is not available in the build"));let c=n?o.length>1?`since :
|
|
`+o.map(Qe).join(`
|
|
`):" "+Qe(o[0]):"as no adapter specified";throw new b("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return s}const Ot={getAdapter:hr,adapters:Te};function be(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new $(null,e)}function Ze(e){return be(e),e.headers=P.from(e.headers),e.data=ye.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ot.getAdapter(e.adapter||G.adapter,e)(e).then(function(r){return be(e),r.data=ye.call(e,e.transformResponse,r),r.headers=P.from(r.headers),r},function(r){return wt(r)||(be(e),r&&r.response&&(r.response.data=ye.call(e,e.transformResponse,r.response),r.response.headers=P.from(r.response.headers))),Promise.reject(r)})}const At="1.13.2",ue={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ue[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ye={};ue.transitional=function(t,n,r){function s(i,o){return"[Axios v"+At+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,c)=>{if(t===!1)throw new b(s(o," has been removed"+(n?" in "+n:"")),b.ERR_DEPRECATED);return n&&!Ye[o]&&(Ye[o]=!0,console.warn(s(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,c):!0}};ue.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function mr(e,t,n){if(typeof e!="object")throw new b("options must be an object",b.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const i=r[s],o=t[i];if(o){const c=e[i],p=c===void 0||o(c,i,e);if(p!==!0)throw new b("option "+i+" must be "+p,b.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new b("Unknown option "+i,b.ERR_BAD_OPTION)}}const re={assertOptions:mr,validators:ue},U=re.validators;let B=class{constructor(t){this.defaults=t||{},this.interceptors={request:new He,response:new He}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const i=s.stack?s.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=v(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:i}=n;r!==void 0&&re.assertOptions(r,{silentJSONParsing:U.transitional(U.boolean),forcedJSONParsing:U.transitional(U.boolean),clarifyTimeoutError:U.transitional(U.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:re.assertOptions(s,{encode:U.function,serialize:U.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),re.assertOptions(n,{baseUrl:U.spelling("baseURL"),withXsrfToken:U.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&a.merge(i.common,i[n.method]);i&&a.forEach(["delete","get","head","post","put","patch","common"],l=>{delete i[l]}),n.headers=P.concat(o,i);const c=[];let p=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(p=p&&m.synchronous,c.unshift(m.fulfilled,m.rejected))});const f=[];this.interceptors.response.forEach(function(m){f.push(m.fulfilled,m.rejected)});let u,d=0,y;if(!p){const l=[Ze.bind(this),void 0];for(l.unshift(...c),l.push(...f),y=l.length,u=Promise.resolve(n);d<y;)u=u.then(l[d++],l[d++]);return u}y=c.length;let w=n;for(;d<y;){const l=c[d++],m=c[d++];try{w=l(w)}catch(h){m.call(this,h);break}}try{u=Ze.call(this,w)}catch(l){return Promise.reject(l)}for(d=0,y=f.length;d<y;)u=u.then(f[d++],f[d++]);return u}getUri(t){t=v(this.defaults,t);const n=Et(t.baseURL,t.url,t.allowAbsoluteUrls);return mt(n,t.params,t.paramsSerializer)}};a.forEach(["delete","get","head","options"],function(t){B.prototype[t]=function(n,r){return this.request(v(r||{},{method:t,url:n,data:(r||{}).data}))}});a.forEach(["post","put","patch"],function(t){function n(r){return function(i,o,c){return this.request(v(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}B.prototype[t]=n(),B.prototype[t+"Form"]=n(!0)});let yr=class Tt{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(s=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const o=new Promise(c=>{r.subscribe(c),i=c}).then(s);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,c){r.reason||(r.reason=new $(i,o,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}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 Tt(function(s){t=s}),cancel:t}}};function br(e){return function(n){return e.apply(null,n)}}function wr(e){return a.isObject(e)&&e.isAxiosError===!0}const ge={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ge).forEach(([e,t])=>{ge[t]=e});function xt(e){const t=new B(e),n=rt(B.prototype.request,t);return a.extend(n,B.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return xt(v(e,s))},n}const g=xt(G);g.Axios=B;g.CanceledError=$;g.CancelToken=yr;g.isCancel=wt;g.VERSION=At;g.toFormData=ce;g.AxiosError=b;g.Cancel=g.CanceledError;g.all=function(t){return Promise.all(t)};g.spread=br;g.isAxiosError=wr;g.mergeConfig=v;g.AxiosHeaders=P;g.formToJSON=e=>bt(a.isHTMLForm(e)?new FormData(e):e);g.getAdapter=Ot.getAdapter;g.HttpStatusCode=ge;g.default=g;const{Axios:Tr,AxiosError:xr,CanceledError:Cr,isCancel:_r,CancelToken:Pr,VERSION:Nr,all:Fr,Cancel:Ur,isAxiosError:Dr,spread:Lr,toFormData:jr,AxiosHeaders:kr,HttpStatusCode:Br,formToJSON:vr,getAdapter:qr,mergeConfig:Ir}=g;function W(e){"@babel/helpers - typeof";return W=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},W(e)}function et(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Hr(e,t){if(e){if(typeof e=="string")return et(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?et(e,t):void 0}}function Sr(e,t){if(W(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(W(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Er(e){var t=Sr(e,"string");return W(t)=="symbol"?t:t+""}function Mr(e,t,n){return(t=Er(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}export{Hr as _,g as a,W as b,Rr as c,Mr as d};
|
|
//# sourceMappingURL=utils-vendor-CJpcXyE0.js.map
|