import{I as Ue,J as Ut,G as kt,c as L,E as k,d as Y,m as ke}from"./index-bf5be19f.js";var Ft={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z"}}]},name:"bulb",theme:"outlined"};const Dt=Ft;var It={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z"}}]},name:"heart",theme:"outlined"};const $t=It;var Mt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z"}}]},name:"message",theme:"outlined"};const zt=Mt;var qt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 328a60 60 0 10120 0 60 60 0 10-120 0zM852 64H172c-17.7 0-32 14.3-32 32v660c0 17.7 14.3 32 32 32h680c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-32 660H204V128h616v596zM604 328a60 60 0 10120 0 60 60 0 10-120 0zm250.2 556H169.8c-16.5 0-29.8 14.3-29.8 32v36c0 4.4 3.3 8 7.4 8h729.1c4.1 0 7.4-3.6 7.4-8v-36c.1-17.7-13.2-32-29.7-32zM664 508H360c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"robot",theme:"outlined"};const Ht=qt;var Vt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64L128 192v384c0 212.1 171.9 384 384 384s384-171.9 384-384V192L512 64zm312 512c0 172.3-139.7 312-312 312S200 748.3 200 576V246l312-110 312 110v330z"}},{tag:"path",attrs:{d:"M378.4 475.1a35.91 35.91 0 00-50.9 0 35.91 35.91 0 000 50.9l129.4 129.4 2.1 2.1a33.98 33.98 0 0048.1 0L730.6 434a33.98 33.98 0 000-48.1l-2.8-2.8a33.98 33.98 0 00-48.1 0L483 579.7 378.4 475.1z"}}]},name:"safety",theme:"outlined"};const Jt=Vt;var Fe=[],M=[],Wt="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function Gt(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function Xt(e,t){if(t=t||{},e===void 0)throw new Error(Wt);var n=t.prepend===!0?"prepend":"append",r=t.container!==void 0?t.container:document.querySelector("head"),o=Fe.indexOf(r);o===-1&&(o=Fe.push(r)-1,M[o]={});var s;return M[o]!==void 0&&M[o][n]!==void 0?s=M[o][n]:(s=M[o][n]=Gt(),n==="prepend"?r.insertBefore(s,r.childNodes[0]):r.appendChild(s)),e.charCodeAt(0)===65279&&(e=e.substr(1,e.length)),s.styleSheet?s.styleSheet.cssText+=e:s.textContent+=e,s}function De(e){for(var t=1;t * { line-height: 1; } .anticon svg { display: inline-block; } .anticon::before { display: none; } .anticon .anticon-icon { display: block; } .anticon[tabindex] { cursor: pointer; } .anticon-spin::before, .anticon-spin { display: inline-block; -webkit-animation: loadingCircle 1s infinite linear; animation: loadingCircle 1s infinite linear; } @-webkit-keyframes loadingCircle { 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } @keyframes loadingCircle { 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } `,$e=!1,Zt=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Qt;kt(function(){$e||(typeof window<"u"&&window.document&&window.document.documentElement&&Xt(t,{prepend:!0}),$e=!0)})},Yt=["icon","primaryColor","secondaryColor"];function en(e,t){if(e==null)return{};var n=tn(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tn(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s=0)&&(n[o]=e[o]);return n}function G(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wn(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s=0)&&(n[o]=e[o]);return n}ut("#1890ff");var D=function(t,n){var r,o=qe({},t,n.attrs),s=o.class,i=o.icon,c=o.spin,f=o.rotate,l=o.tabindex,u=o.twoToneColor,d=o.onClick,b=gn(o,dn),S=(r={anticon:!0},me(r,"anticon-".concat(i.name),!!i.name),me(r,s,s),r),p=c===""||c||i.name==="loading"?"anticon-spin":"",m=l;m===void 0&&d&&(m=-1,b.tabindex=m);var h=f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0,g=lt(u),w=pn(g,2),E=w[0],v=w[1];return L("span",qe({role:"img","aria-label":i.name},b,{onClick:d,class:S}),[L(Ee,{class:p,icon:i,primaryColor:E,secondaryColor:v,style:h},null)])};D.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String};D.displayName="AntdIcon";D.inheritAttrs=!1;D.getTwoToneColor=fn;D.setTwoToneColor=ut;const V=D;function He(e){for(var t=1;tt=>{const n=Tn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),_=e=>(e=e.toLowerCase(),t=>oe(t)===e),se=e=>t=>typeof t===e,{isArray:I}=Array,H=se("undefined");function An(e){return e!==null&&!H(e)&&e.constructor!==null&&!H(e.constructor)&&A(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const pt=_("ArrayBuffer");function vn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&pt(e.buffer),t}const Pn=se("string"),A=se("function"),ht=se("number"),ie=e=>e!==null&&typeof e=="object",_n=e=>e===!0||e===!1,X=e=>{if(oe(e)!=="object")return!1;const t=Pe(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(dt in e)&&!(re in e)},xn=_("Date"),jn=_("File"),Nn=_("Blob"),Bn=_("FileList"),Ln=e=>ie(e)&&A(e.pipe),Un=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||A(e.append)&&((t=oe(e))==="formdata"||t==="object"&&A(e.toString)&&e.toString()==="[object FormData]"))},kn=_("URLSearchParams"),[Fn,Dn,In,$n]=["ReadableStream","Request","Response","Headers"].map(_),Mn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function J(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),I(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const B=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),yt=e=>!H(e)&&e!==B;function ye(){const{caseless:e}=yt(this)&&this||{},t={},n=(r,o)=>{const s=e&&mt(t,o)||o;X(t[s])&&X(r)?t[s]=ye(t[s],r):X(r)?t[s]=ye({},r):I(r)?t[s]=r.slice():t[s]=r};for(let r=0,o=arguments.length;r(J(t,(o,s)=>{n&&A(o)?e[s]=ft(o,n):e[s]=o},{allOwnKeys:r}),e),qn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Hn=(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)},Vn=(e,t,n,r)=>{let o,s,i;const c={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&Pe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Jn=(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},Wn=e=>{if(!e)return null;if(I(e))return e;let t=e.length;if(!ht(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Gn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Pe(Uint8Array)),Xn=(e,t)=>{const r=(e&&e[re]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},Kn=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Qn=_("HTMLFormElement"),Zn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Xe=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Yn=_("RegExp"),bt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};J(n,(o,s)=>{let i;(i=t(o,s,e))!==!1&&(r[s]=i||o)}),Object.defineProperties(e,r)},er=e=>{bt(e,(t,n)=>{if(A(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(A(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+"'")})}})},tr=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return I(e)?r(e):r(String(e).split(t)),n},nr=()=>{},rr=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function or(e){return!!(e&&A(e.append)&&e[dt]==="FormData"&&e[re])}const sr=e=>{const t=new Array(10),n=(r,o)=>{if(ie(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const s=I(r)?[]:{};return J(r,(i,c)=>{const f=n(i,o+1);!H(f)&&(s[c]=f)}),t[o]=void 0,s}}return r};return n(e,0)},ir=_("AsyncFunction"),ar=e=>e&&(ie(e)||A(e))&&A(e.then)&&A(e.catch),gt=((e,t)=>e?setImmediate:t?((n,r)=>(B.addEventListener("message",({source:o,data:s})=>{o===B&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),B.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",A(B.postMessage)),cr=typeof queueMicrotask<"u"?queueMicrotask.bind(B):typeof process<"u"&&process.nextTick||gt,lr=e=>e!=null&&A(e[re]),a={isArray:I,isArrayBuffer:pt,isBuffer:An,isFormData:Un,isArrayBufferView:vn,isString:Pn,isNumber:ht,isBoolean:_n,isObject:ie,isPlainObject:X,isReadableStream:Fn,isRequest:Dn,isResponse:In,isHeaders:$n,isUndefined:H,isDate:xn,isFile:jn,isBlob:Nn,isRegExp:Yn,isFunction:A,isStream:Ln,isURLSearchParams:kn,isTypedArray:Gn,isFileList:Bn,forEach:J,merge:ye,extend:zn,trim:Mn,stripBOM:qn,inherits:Hn,toFlatObject:Vn,kindOf:oe,kindOfTest:_,endsWith:Jn,toArray:Wn,forEachEntry:Xn,matchAll:Kn,isHTMLForm:Qn,hasOwnProperty:Xe,hasOwnProp:Xe,reduceDescriptors:bt,freezeMethods:er,toObjectSet:tr,toCamelCase:Zn,noop:nr,toFiniteNumber:rr,findKey:mt,global:B,isContextDefined:yt,isSpecCompliantForm:or,toJSONObject:sr,isAsyncFn:ir,isThenable:ar,setImmediate:gt,asap:cr,isIterable:lr};function y(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)}a.inherits(y,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 wt=y.prototype,Ot={};["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=>{Ot[e]={value:e}});Object.defineProperties(y,Ot);Object.defineProperty(wt,"isAxiosError",{value:!0});y.from=(e,t,n,r,o,s)=>{const i=Object.create(wt);return a.toFlatObject(e,i,function(f){return f!==Error.prototype},c=>c!=="isAxiosError"),y.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const ur=null;function be(e){return a.isPlainObject(e)||a.isArray(e)}function St(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function Ke(e,t,n){return e?e.concat(t).map(function(o,s){return o=St(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function fr(e){return a.isArray(e)&&!e.some(be)}const dr=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function ae(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,o=n.visitor||u,s=n.dots,i=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(o))throw new TypeError("visitor must be a function");function l(p){if(p===null)return"";if(a.isDate(p))return p.toISOString();if(a.isBoolean(p))return p.toString();if(!f&&a.isBlob(p))throw new y("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(p)||a.isTypedArray(p)?f&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,m,h){let g=p;if(p&&!h&&typeof p=="object"){if(a.endsWith(m,"{}"))m=r?m:m.slice(0,-2),p=JSON.stringify(p);else if(a.isArray(p)&&fr(p)||(a.isFileList(p)||a.endsWith(m,"[]"))&&(g=a.toArray(p)))return m=St(m),g.forEach(function(E,v){!(a.isUndefined(E)||E===null)&&t.append(i===!0?Ke([m],v,s):i===null?m:m+"[]",l(E))}),!1}return be(p)?!0:(t.append(Ke(h,m,s),l(p)),!1)}const d=[],b=Object.assign(dr,{defaultVisitor:u,convertValue:l,isVisitable:be});function S(p,m){if(!a.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(p),a.forEach(p,function(g,w){(!(a.isUndefined(g)||g===null)&&o.call(t,g,a.isString(w)?w.trim():w,m,b))===!0&&S(g,m?m.concat(w):[w])}),d.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return S(e),t}function Qe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function _e(e,t){this._pairs=[],e&&ae(e,this,t)}const Et=_e.prototype;Et.append=function(t,n){this._pairs.push([t,n])};Et.toString=function(t){const n=t?function(r){return t.call(this,r,Qe)}:Qe;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function pr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Rt(e,t,n){if(!t)return e;const r=n&&n.encode||pr;a.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let s;if(o?s=o(t,n):s=a.isURLSearchParams(t)?t.toString():new _e(t,n).toString(r),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class hr{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 Ze=hr,Ct={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},mr=typeof URLSearchParams<"u"?URLSearchParams:_e,yr=typeof FormData<"u"?FormData:null,br=typeof Blob<"u"?Blob:null,gr={isBrowser:!0,classes:{URLSearchParams:mr,FormData:yr,Blob:br},protocols:["http","https","file","blob","url","data"]},xe=typeof window<"u"&&typeof document<"u",ge=typeof navigator=="object"&&navigator||void 0,wr=xe&&(!ge||["ReactNative","NativeScript","NS"].indexOf(ge.product)<0),Or=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Sr=xe&&window.location.href||"http://localhost",Er=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:xe,hasStandardBrowserEnv:wr,hasStandardBrowserWebWorkerEnv:Or,navigator:ge,origin:Sr},Symbol.toStringTag,{value:"Module"})),C={...Er,...gr};function Rr(e,t){return ae(e,new C.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return C.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function Cr(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Tr(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r=n.length;return i=!i&&a.isArray(o)?o.length:i,f?(a.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!c):((!o[i]||!a.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],s)&&a.isArray(o[i])&&(o[i]=Tr(o[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,o)=>{t(Cr(r),o,n,0)}),n}return null}function Ar(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 je={transitional:Ct,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=a.isObject(t);if(s&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return o?JSON.stringify(Tt(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(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Rr(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return ae(c?{"files[]":t}:t,f&&new f,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),Ar(t)):t}],transformResponse:[function(t){const n=this.transitional||je.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?y.from(c,y.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:C.classes.FormData,Blob:C.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=>{je.headers[e]={}});const Ne=je,vr=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"]),Pr=e=>{const t={};let n,r,o;return e&&e.split(` `).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&vr[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ye=Symbol("internals");function z(e){return e&&String(e).trim().toLowerCase()}function K(e){return e===!1||e==null?e:a.isArray(e)?e.map(K):String(e)}function _r(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 xr=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function fe(e,t,n,r,o){if(a.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function jr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Nr(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,s,i){return this[r].call(this,t,o,s,i)},configurable:!0})})}class ce{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(c,f,l){const u=z(f);if(!u)throw new Error("header name must be a non-empty string");const d=a.findKey(o,u);(!d||o[d]===void 0||l===!0||l===void 0&&o[d]!==!1)&&(o[d||f]=K(c))}const i=(c,f)=>a.forEach(c,(l,u)=>s(l,u,f));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(a.isString(t)&&(t=t.trim())&&!xr(t))i(Pr(t),n);else if(a.isObject(t)&&a.isIterable(t)){let c={},f,l;for(const u of t){if(!a.isArray(u))throw TypeError("Object iterator must return a key-value pair");c[l=u[0]]=(f=c[l])?a.isArray(f)?[...f,u[1]]:[f,u[1]]:u[1]}i(c,n)}else t!=null&&s(n,t,r);return this}get(t,n){if(t=z(t),t){const r=a.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return _r(o);if(a.isFunction(n))return n.call(this,o,r);if(a.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=z(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||fe(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(i){if(i=z(i),i){const c=a.findKey(r,i);c&&(!n||fe(r,r[c],c,n))&&(delete r[c],o=!0)}}return a.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!t||fe(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,r={};return a.forEach(this,(o,s)=>{const i=a.findKey(r,s);if(i){n[i]=K(o),delete n[s];return}const c=t?jr(s):String(s).trim();c!==s&&delete n[s],n[c]=K(o),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=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(o=>r.set(o)),r}static accessor(t){const r=(this[Ye]=this[Ye]={accessors:{}}).accessors,o=this.prototype;function s(i){const c=z(i);r[c]||(Nr(o,i),r[c]=!0)}return a.isArray(t)?t.forEach(s):s(t),this}}ce.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(ce.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(ce);const P=ce;function de(e,t){const n=this||Ne,r=t||n,o=P.from(r.headers);let s=r.data;return a.forEach(e,function(c){s=c.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function At(e){return!!(e&&e.__CANCEL__)}function $(e,t,n){y.call(this,e??"canceled",y.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits($,y,{__CANCEL__:!0});function vt(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new y("Request failed with status code "+n.status,[y.ERR_BAD_REQUEST,y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Br(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Lr(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(f){const l=Date.now(),u=r[s];i||(i=l),n[o]=f,r[o]=l;let d=s,b=0;for(;d!==o;)b+=n[d++],d=d%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),l-i{n=u,o=null,s&&(clearTimeout(s),s=null),e.apply(null,l)};return[(...l)=>{const u=Date.now(),d=u-n;d>=r?i(l,u):(o=l,s||(s=setTimeout(()=>{s=null,i(o)},r-d)))},()=>o&&i(o)]}const ee=(e,t,n=3)=>{let r=0;const o=Lr(50,250);return Ur(s=>{const i=s.loaded,c=s.lengthComputable?s.total:void 0,f=i-r,l=o(f),u=i<=c;r=i;const d={loaded:i,total:c,progress:c?i/c:void 0,bytes:f,rate:l||void 0,estimated:l&&c&&u?(c-i)/l:void 0,event:s,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(d)},n)},et=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},tt=e=>(...t)=>a.asap(()=>e(...t)),kr=C.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,C.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(C.origin),C.navigator&&/(msie|trident)/i.test(C.navigator.userAgent)):()=>!0,Fr=C.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const i=[e+"="+encodeURIComponent(t)];a.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),a.isString(r)&&i.push("path="+r),a.isString(o)&&i.push("domain="+o),s===!0&&i.push("secure"),document.cookie=i.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 Dr(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Ir(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Pt(e,t,n){let r=!Dr(t);return e&&(r||n==!1)?Ir(e,t):t}const nt=e=>e instanceof P?{...e}:e;function U(e,t){t=t||{};const n={};function r(l,u,d,b){return a.isPlainObject(l)&&a.isPlainObject(u)?a.merge.call({caseless:b},l,u):a.isPlainObject(u)?a.merge({},u):a.isArray(u)?u.slice():u}function o(l,u,d,b){if(a.isUndefined(u)){if(!a.isUndefined(l))return r(void 0,l,d,b)}else return r(l,u,d,b)}function s(l,u){if(!a.isUndefined(u))return r(void 0,u)}function i(l,u){if(a.isUndefined(u)){if(!a.isUndefined(l))return r(void 0,l)}else return r(void 0,u)}function c(l,u,d){if(d in t)return r(l,u);if(d in e)return r(void 0,l)}const f={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(l,u,d)=>o(nt(l),nt(u),d,!0)};return a.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=f[u]||o,b=d(e[u],t[u],u);a.isUndefined(b)&&d!==c||(n[u]=b)}),n}const _t=e=>{const t=U({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:c}=t;t.headers=i=P.from(i),t.url=Rt(Pt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&i.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let f;if(a.isFormData(n)){if(C.hasStandardBrowserEnv||C.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((f=i.getContentType())!==!1){const[l,...u]=f?f.split(";").map(d=>d.trim()).filter(Boolean):[];i.setContentType([l||"multipart/form-data",...u].join("; "))}}if(C.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(t)),r||r!==!1&&kr(t.url))){const l=o&&s&&Fr.read(s);l&&i.set(o,l)}return t},$r=typeof XMLHttpRequest<"u",Mr=$r&&function(e){return new Promise(function(n,r){const o=_t(e);let s=o.data;const i=P.from(o.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:l}=o,u,d,b,S,p;function m(){S&&S(),p&&p(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let h=new XMLHttpRequest;h.open(o.method.toUpperCase(),o.url,!0),h.timeout=o.timeout;function g(){if(!h)return;const E=P.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),T={data:!c||c==="text"||c==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:E,config:e,request:h};vt(function(N){n(N),m()},function(N){r(N),m()},T),h=null}"onloadend"in h?h.onloadend=g:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(g)},h.onabort=function(){h&&(r(new y("Request aborted",y.ECONNABORTED,e,h)),h=null)},h.onerror=function(){r(new y("Network Error",y.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let v=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const T=o.transitional||Ct;o.timeoutErrorMessage&&(v=o.timeoutErrorMessage),r(new y(v,T.clarifyTimeoutError?y.ETIMEDOUT:y.ECONNABORTED,e,h)),h=null},s===void 0&&i.setContentType(null),"setRequestHeader"in h&&a.forEach(i.toJSON(),function(v,T){h.setRequestHeader(T,v)}),a.isUndefined(o.withCredentials)||(h.withCredentials=!!o.withCredentials),c&&c!=="json"&&(h.responseType=o.responseType),l&&([b,p]=ee(l,!0),h.addEventListener("progress",b)),f&&h.upload&&([d,S]=ee(f),h.upload.addEventListener("progress",d),h.upload.addEventListener("loadend",S)),(o.cancelToken||o.signal)&&(u=E=>{h&&(r(!E||E.type?new $(null,e,h):E),h.abort(),h=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const w=Br(o.url);if(w&&C.protocols.indexOf(w)===-1){r(new y("Unsupported protocol "+w+":",y.ERR_BAD_REQUEST,e));return}h.send(s||null)})},zr=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const s=function(l){if(!o){o=!0,c();const u=l instanceof Error?l:this.reason;r.abort(u instanceof y?u:new $(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,s(new y(`timeout ${t} of ms exceeded`,y.ETIMEDOUT))},t);const c=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(s):l.removeEventListener("abort",s)}),e=null)};e.forEach(l=>l.addEventListener("abort",s));const{signal:f}=r;return f.unsubscribe=()=>a.asap(c),f}},qr=zr,Hr=function*(e,t){let n=e.byteLength;if(!t||n{const o=Vr(e,t);let s=0,i,c=f=>{i||(i=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:l,value:u}=await o.next();if(l){c(),f.close();return}let d=u.byteLength;if(n){let b=s+=d;n(b)}f.enqueue(new Uint8Array(u))}catch(l){throw c(l),l}},cancel(f){return c(f),o.return()}},{highWaterMark:2})},le=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",xt=le&&typeof ReadableStream=="function",Wr=le&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),jt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Gr=xt&&jt(()=>{let e=!1;const t=new Request(C.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),ot=64*1024,we=xt&&jt(()=>a.isReadableStream(new Response("").body)),te={stream:we&&(e=>e.body)};le&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!te[t]&&(te[t]=a.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new y(`Response type '${t}' is not supported`,y.ERR_NOT_SUPPORT,r)})})})(new Response);const Xr=async e=>{if(e==null)return 0;if(a.isBlob(e))return e.size;if(a.isSpecCompliantForm(e))return(await new Request(C.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(a.isArrayBufferView(e)||a.isArrayBuffer(e))return e.byteLength;if(a.isURLSearchParams(e)&&(e=e+""),a.isString(e))return(await Wr(e)).byteLength},Kr=async(e,t)=>{const n=a.toFiniteNumber(e.getContentLength());return n??Xr(t)},Qr=le&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:s,timeout:i,onDownloadProgress:c,onUploadProgress:f,responseType:l,headers:u,withCredentials:d="same-origin",fetchOptions:b}=_t(e);l=l?(l+"").toLowerCase():"text";let S=qr([o,s&&s.toAbortSignal()],i),p;const m=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let h;try{if(f&&Gr&&n!=="get"&&n!=="head"&&(h=await Kr(u,r))!==0){let T=new Request(t,{method:"POST",body:r,duplex:"half"}),j;if(a.isFormData(r)&&(j=T.headers.get("content-type"))&&u.setContentType(j),T.body){const[N,W]=et(h,ee(tt(f)));r=rt(T.body,ot,N,W)}}a.isString(d)||(d=d?"include":"omit");const g="credentials"in Request.prototype;p=new Request(t,{...b,signal:S,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:g?d:void 0});let w=await fetch(p,b);const E=we&&(l==="stream"||l==="response");if(we&&(c||E&&m)){const T={};["status","statusText","headers"].forEach(Le=>{T[Le]=w[Le]});const j=a.toFiniteNumber(w.headers.get("content-length")),[N,W]=c&&et(j,ee(tt(c),!0))||[];w=new Response(rt(w.body,ot,N,()=>{W&&W(),m&&m()}),T)}l=l||"text";let v=await te[a.findKey(te,l)||"text"](w,e);return!E&&m&&m(),await new Promise((T,j)=>{vt(T,j,{data:v,headers:P.from(w.headers),status:w.status,statusText:w.statusText,config:e,request:p})})}catch(g){throw m&&m(),g&&g.name==="TypeError"&&/Load failed|fetch/i.test(g.message)?Object.assign(new y("Network Error",y.ERR_NETWORK,e,p),{cause:g.cause||g}):y.from(g,g&&g.code,e,p)}}),Oe={http:ur,xhr:Mr,fetch:Qr};a.forEach(Oe,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const st=e=>`- ${e}`,Zr=e=>a.isFunction(e)||e===null||e===!1,Nt={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let s=0;s`adapter ${c} `+(f===!1?"is not supported by the environment":"is not available in the build"));let i=t?s.length>1?`since : `+s.map(st).join(` `):" "+st(s[0]):"as no adapter specified";throw new y("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:Oe};function pe(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new $(null,e)}function it(e){return pe(e),e.headers=P.from(e.headers),e.data=de.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Nt.getAdapter(e.adapter||Ne.adapter)(e).then(function(r){return pe(e),r.data=de.call(e,e.transformResponse,r),r.headers=P.from(r.headers),r},function(r){return At(r)||(pe(e),r&&r.response&&(r.response.data=de.call(e,e.transformResponse,r.response),r.response.headers=P.from(r.response.headers))),Promise.reject(r)})}const Bt="1.10.0",ue={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ue[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const at={};ue.transitional=function(t,n,r){function o(s,i){return"[Axios v"+Bt+"] Transitional option '"+s+"'"+i+(r?". "+r:"")}return(s,i,c)=>{if(t===!1)throw new y(o(i," has been removed"+(n?" in "+n:"")),y.ERR_DEPRECATED);return n&&!at[i]&&(at[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,i,c):!0}};ue.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Yr(e,t,n){if(typeof e!="object")throw new y("options must be an object",y.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const c=e[s],f=c===void 0||i(c,s,e);if(f!==!0)throw new y("option "+s+" must be "+f,y.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new y("Unknown option "+s,y.ERR_BAD_OPTION)}}const Q={assertOptions:Yr,validators:ue},x=Q.validators;class ne{constructor(t){this.defaults=t||{},this.interceptors={request:new Ze,response:new Ze}}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 s=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=` `+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=U(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&Q.assertOptions(r,{silentJSONParsing:x.transitional(x.boolean),forcedJSONParsing:x.transitional(x.boolean),clarifyTimeoutError:x.transitional(x.boolean)},!1),o!=null&&(a.isFunction(o)?n.paramsSerializer={serialize:o}:Q.assertOptions(o,{encode:x.function,serialize:x.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Q.assertOptions(n,{baseUrl:x.spelling("baseURL"),withXsrfToken:x.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=s&&a.merge(s.common,s[n.method]);s&&a.forEach(["delete","get","head","post","put","patch","common"],p=>{delete s[p]}),n.headers=P.concat(i,s);const c=[];let f=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(f=f&&m.synchronous,c.unshift(m.fulfilled,m.rejected))});const l=[];this.interceptors.response.forEach(function(m){l.push(m.fulfilled,m.rejected)});let u,d=0,b;if(!f){const p=[it.bind(this),void 0];for(p.unshift.apply(p,c),p.push.apply(p,l),b=p.length,u=Promise.resolve(n);d{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(c=>{r.subscribe(c),s=c}).then(o);return i.cancel=function(){r.unsubscribe(s)},i},t(function(s,i,c){r.reason||(r.reason=new $(s,i,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}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 Be(function(o){t=o}),cancel:t}}}const eo=Be;function to(e){return function(n){return e.apply(null,n)}}function no(e){return a.isObject(e)&&e.isAxiosError===!0}const Se={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(Se).forEach(([e,t])=>{Se[t]=e});const ro=Se;function Lt(e){const t=new Z(e),n=ft(Z.prototype.request,t);return a.extend(n,Z.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Lt(U(e,o))},n}const R=Lt(Ne);R.Axios=Z;R.CanceledError=$;R.CancelToken=eo;R.isCancel=At;R.VERSION=Bt;R.toFormData=ae;R.AxiosError=y;R.Cancel=R.CanceledError;R.all=function(t){return Promise.all(t)};R.spread=to;R.isAxiosError=no;R.mergeConfig=U;R.AxiosHeaders=P;R.formToJSON=e=>Tt(a.isHTMLForm(e)?new FormData(e):e);R.getAdapter=Nt.getAdapter;R.HttpStatusCode=ro;R.default=R;const oo=R,O=oo.create({baseURL:k.API_BASE_URL,timeout:k.API_TIMEOUT,headers:{"Content-Type":"application/json"}});k.DEBUG_MODE&&(console.log("=== API配置信息 ==="),console.log("Base URL:",k.API_BASE_URL),console.log("Timeout:",k.API_TIMEOUT),console.log("Environment:",k.APP_ENV),console.log("================"));O.interceptors.request.use(e=>{var n;const t=localStorage.getItem("token");return t&&(e.headers.Authorization=`Bearer ${t}`),Y("发送请求:",(n=e.method)==null?void 0:n.toUpperCase(),e.url,e.data||e.params),e},e=>(Y("请求错误:",e),Promise.reject(e)));O.interceptors.response.use(e=>{const{data:t}=e;if(Y("收到响应:",e.config.url,t),t.code===200)return{success:!0,data:t.data,message:t.message};{const n=t.message||"请求失败";return ke.error(n),{success:!1,data:null,message:n}}},e=>{Y("响应错误:",e);let t="网络错误";if(e.response){const{status:n,data:r}=e.response;switch(n){case 400:t=r.message||"请求参数错误";break;case 401:t="未授权,请重新登录";break;case 403:t="拒绝访问";break;case 404:t="请求的资源不存在";break;case 500:t="服务器内部错误";break;default:t=r.message||`请求失败 (${n})`}}else e.request?t="网络连接失败,请检查网络":t=e.message||"请求配置错误";return ke.error(t),{success:!1,data:null,message:t}});const fo={createConversation(e){return O.post("/ai/chat/conversation/create",e)},sendMessage(e){return O.post("/ai/chat/send",e)},streamChat(e){return O.post("/ai/chat/stream",e)},analyzeEmotion(e){return O.post("/ai/chat/emotion/analyze",e)},getConversations(e,t=1,n=20){return O.get(`/ai/chat/conversations/${e}`,{params:{pageNum:t,pageSize:n}})},getConversation(e){return O.get(`/ai/chat/conversation/${e}`)},getMessages(e,t=1,n=50){return O.get(`/ai/chat/conversation/${e}/messages`,{params:{pageNum:t,pageSize:n}})},endConversation(e){return O.put(`/ai/chat/conversation/${e}/end`)},deleteConversation(e){return O.delete(`/ai/chat/conversation/${e}`)},markMessageAsRead(e){return O.put(`/ai/chat/message/${e}/read`)},markConversationAsRead(e){return O.put(`/ai/chat/conversation/${e}/read`)},healthCheck(){return O.get("/ai/chat/health")},getServiceInfo(){return O.get("/ai/chat/info")}},po={guestChat(e){return O.post("/ai/guest/chat",e)},getGuestConversations(e=1,t=20){return O.get("/ai/guest/conversations",{params:{pageNum:e,pageSize:t}})},getGuestConversationMessages(e,t=1,n=50){return O.get(`/ai/guest/conversation/${e}/messages`,{params:{pageNum:t,pageSize:n}})},endGuestConversation(e){return O.post(`/ai/guest/conversation/${e}/end`)},getGuestUserInfo(){return O.get("/ai/guest/user/info")},analyzeGuestEmotion(e){return O.post("/ai/guest/emotion/analyze",e)},guestHealthCheck(){return O.get("/ai/guest/health")}};export{V as A,io as B,ao as H,co as M,lo as R,uo as S,fo as c,po as g,O as r};