import{aB as yn,aC as Pt,y as U,aD as Ve,aE as ae,r as x,aF as gn,aG as ye,aH as bn,au as Nt,v as D,aI as wn,aJ as vn,aK as En,ag as Dt,aL as se,ah as Bt,Y as ie,ai as Sn,ap as Le,aM as Ze,aN as Ye,c as ke,o as $,l as Lt,a as Ee,d as re,S as Je,b as Fe,t as kt,u as O,n as Ft,B as M,T as We,ay as Ke,ao as On,g as Rn,aO as Tn,aP as _n,aQ as It,x as Y,aR as ge,A as Ut,ar as be,aS as ee,aT as et,aU as jt,aV as Cn,aW as An,aX as xn,aY as Pn,aZ as Nn,a_ as tt,h as Dn,j as te,k as ue,aw as nt,a$ as Bn,F as Ln,J as kn,b0 as Fn,b1 as In,at as $t,b2 as Ie,b3 as st,b4 as Un,b5 as jn,Z as $n,b6 as K,as as Mn,ak as qn,b7 as Hn,az as zn,b8 as rt,b9 as Vn,W as Jn,X as Wn,I as Pe,a6 as Kn}from"./m6uXH7i0.js";function q(e){var t;const n=ye(e);return(t=n==null?void 0:n.$el)!=null?t:n}const X=ae?window:void 0,Qn=ae?window.document:void 0;function V(...e){let t,n,s,r;if(yn(e[0])||Array.isArray(e[0])?([n,s,r]=e,t=X):[t,n,s,r]=e,!t)return Pt;Array.isArray(n)||(n=[n]),Array.isArray(s)||(s=[s]);const o=[],a=()=>{o.forEach(u=>u()),o.length=0},i=(u,d,p,y)=>(u.addEventListener(d,p,y),()=>u.removeEventListener(d,p,y)),f=U(()=>[q(t),ye(r)],([u,d])=>{a(),u&&o.push(...n.flatMap(p=>s.map(y=>i(u,p,y,d))))},{immediate:!0,flush:"post"}),l=()=>{f(),a()};return Ve(l),l}let ot=!1;function yo(e,t,n={}){const{window:s=X,ignore:r=[],capture:o=!0,detectIframe:a=!1}=n;if(!s)return;bn&&!ot&&(ot=!0,Array.from(s.document.body.children).forEach(p=>p.addEventListener("click",Pt)));let i=!0;const f=p=>r.some(y=>{if(typeof y=="string")return Array.from(s.document.querySelectorAll(y)).some(m=>m===p.target||p.composedPath().includes(m));{const m=q(y);return m&&(p.target===m||p.composedPath().includes(m))}}),u=[V(s,"click",p=>{const y=q(e);if(!(!y||y===p.target||p.composedPath().includes(y))){if(p.detail===0&&(i=!f(p)),!i){i=!0;return}t(p)}},{passive:!0,capture:o}),V(s,"pointerdown",p=>{const y=q(e);y&&(i=!p.composedPath().includes(y)&&!f(p))},{passive:!0}),a&&V(s,"blur",p=>{var y;const m=q(e);((y=s.document.activeElement)==null?void 0:y.tagName)==="IFRAME"&&!(m!=null&&m.contains(s.document.activeElement))&&t(p)})].filter(Boolean);return()=>u.forEach(p=>p())}function Mt(e,t=!1){const n=x(),s=()=>n.value=!!e();return s(),gn(s,t),n}function Xn(e){return JSON.parse(JSON.stringify(e))}const at=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},it="__vueuse_ssr_handlers__";at[it]=at[it]||{};function go(e,t,{window:n=X,initialValue:s=""}={}){const r=x(s),o=D(()=>{var a;return q(t)||((a=n==null?void 0:n.document)==null?void 0:a.documentElement)});return U([o,()=>ye(e)],([a,i])=>{var f;if(a&&n){const l=(f=n.getComputedStyle(a).getPropertyValue(i))==null?void 0:f.trim();r.value=l||s}},{immediate:!0}),U(r,a=>{var i;(i=o.value)!=null&&i.style&&o.value.style.setProperty(ye(e),a)}),r}function bo({document:e=Qn}={}){if(!e)return x("visible");const t=x(e.visibilityState);return V(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var lt=Object.getOwnPropertySymbols,Gn=Object.prototype.hasOwnProperty,Zn=Object.prototype.propertyIsEnumerable,Yn=(e,t)=>{var n={};for(var s in e)Gn.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&lt)for(var s of lt(e))t.indexOf(s)<0&&Zn.call(e,s)&&(n[s]=e[s]);return n};function es(e,t,n={}){const s=n,{window:r=X}=s,o=Yn(s,["window"]);let a;const i=Mt(()=>r&&"ResizeObserver"in r),f=()=>{a&&(a.disconnect(),a=void 0)},l=U(()=>q(e),d=>{f(),i.value&&r&&d&&(a=new ResizeObserver(t),a.observe(d,o))},{immediate:!0,flush:"post"}),u=()=>{f(),l()};return Ve(u),{isSupported:i,stop:u}}var ct=Object.getOwnPropertySymbols,ts=Object.prototype.hasOwnProperty,ns=Object.prototype.propertyIsEnumerable,ss=(e,t)=>{var n={};for(var s in e)ts.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&ct)for(var s of ct(e))t.indexOf(s)<0&&ns.call(e,s)&&(n[s]=e[s]);return n};function wo(e,t,n={}){const s=n,{window:r=X}=s,o=ss(s,["window"]);let a;const i=Mt(()=>r&&"MutationObserver"in r),f=()=>{a&&(a.disconnect(),a=void 0)},l=U(()=>q(e),d=>{f(),i.value&&r&&d&&(a=new MutationObserver(t),a.observe(d,o))},{immediate:!0}),u=()=>{f(),l()};return Ve(u),{isSupported:i,stop:u}}var ut;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(ut||(ut={}));var rs=Object.defineProperty,ft=Object.getOwnPropertySymbols,os=Object.prototype.hasOwnProperty,as=Object.prototype.propertyIsEnumerable,dt=(e,t,n)=>t in e?rs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,is=(e,t)=>{for(var n in t||(t={}))os.call(t,n)&&dt(e,n,t[n]);if(ft)for(var n of ft(t))as.call(t,n)&&dt(e,n,t[n]);return e};const ls={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};is({linear:En},ls);function vo(e,t,n,s={}){var r,o,a;const{clone:i=!1,passive:f=!1,eventName:l,deep:u=!1,defaultValue:d}=s,p=Nt(),y=(p==null?void 0:p.emit)||((r=p==null?void 0:p.$emit)==null?void 0:r.bind(p))||((a=(o=p==null?void 0:p.proxy)==null?void 0:o.$emit)==null?void 0:a.bind(p==null?void 0:p.proxy));let m=l;m=l||m||`update:${t.toString()}`;const g=v=>i?vn(i)?i(v):Xn(v):v,h=()=>wn(e[t])?g(e[t]):d;if(f){const v=h(),E=x(v);return U(()=>e[t],b=>E.value=g(b)),U(E,b=>{(b!==e[t]||u)&&y(m,b)},{deep:u}),E}else return D({get(){return h()},set(v){y(m,v)}})}function Eo({window:e=X}={}){if(!e)return x(!1);const t=x(e.document.hasFocus());return V(e,"blur",()=>{t.value=!1}),V(e,"focus",()=>{t.value=!0}),t}const cs={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},pt={},us=Dt({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,dotStyle:{type:se([String,Object,Array])},badgeStyle:{type:se([String,Object,Array])},offset:{type:se(Array),default:[0,0]},dotClass:{type:String},badgeClass:{type:String}}),fs=["textContent"],ds=ie({name:"ElBadge"}),ps=ie({...ds,props:us,setup(e,{expose:t}){const n=e,s=Sn("badge"),r=D(()=>n.isDot?"":Le(n.value)&&Le(n.max)?n.max<n.value?`${n.max}+`:n.value===0&&!n.showZero?"":`${n.value}`:`${n.value}`),o=D(()=>{var a,i,f,l,u,d;return[{backgroundColor:n.color,marginRight:Ze(-((i=(a=n.offset)==null?void 0:a[0])!=null?i:0)),marginTop:Ze((l=(f=n.offset)==null?void 0:f[1])!=null?l:0)},(u=n.dotStyle)!=null?u:{},(d=n.badgeStyle)!=null?d:{}]});return Ye({from:"dot-style",replacement:"badge-style",version:"2.8.0",scope:"el-badge",ref:"https://element-plus.org/en-US/component/badge.html"},D(()=>!!n.dotStyle)),Ye({from:"dot-class",replacement:"badge-class",version:"2.8.0",scope:"el-badge",ref:"https://element-plus.org/en-US/component/badge.html"},D(()=>!!n.dotClass)),t({content:r}),(a,i)=>($(),ke("div",{class:M(O(s).b())},[Lt(a.$slots,"default"),Ee(Ke,{name:`${O(s).namespace.value}-zoom-in-center`,persisted:""},{default:re(()=>[Je(Fe("sup",{class:M([O(s).e("content"),O(s).em("content",a.type),O(s).is("fixed",!!a.$slots.default),O(s).is("dot",a.isDot),a.dotClass,a.badgeClass]),style:Ft(O(o)),textContent:kt(O(r))},null,14,fs),[[We,!a.hidden&&(O(r)||a.isDot)]])]),_:1},8,["name"])],2))}});var ms=Bt(ps,[["__file","badge.vue"]]);const hs=On(ms);function ys(e){let t;const n=x(!1),s=Rn({...e,originalPosition:"",originalOverflow:"",visible:!1});function r(p){s.text=p}function o(){const p=s.parent,y=d.ns;if(!p.vLoadingAddClassList){let m=p.getAttribute("loading-number");m=Number.parseInt(m)-1,m?p.setAttribute("loading-number",m.toString()):(ge(p,y.bm("parent","relative")),p.removeAttribute("loading-number")),ge(p,y.bm("parent","hidden"))}a(),u.unmount()}function a(){var p,y;(y=(p=d.$el)==null?void 0:p.parentNode)==null||y.removeChild(d.$el)}function i(){var p;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=window.setTimeout(f,400),s.visible=!1,(p=e.closed)==null||p.call(e))}function f(){if(!n.value)return;const p=s.parent;n.value=!1,p.vLoadingAddClassList=void 0,o()}const l=ie({name:"ElLoading",setup(p,{expose:y}){const{ns:m,zIndex:g}=It("loading");return y({ns:m,zIndex:g}),()=>{const h=s.spinner||s.svg,v=Y("svg",{class:"circular",viewBox:s.svgViewBox?s.svgViewBox:"0 0 50 50",...h?{innerHTML:h}:{}},[Y("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),E=s.text?Y("p",{class:m.b("text")},[s.text]):void 0;return Y(Ke,{name:m.b("fade"),onAfterLeave:f},{default:re(()=>[Je(Ee("div",{style:{backgroundColor:s.background||""},class:[m.b("mask"),s.customClass,s.fullscreen?"is-fullscreen":""]},[Y("div",{class:m.b("spinner")},[v,E])]),[[We,s.visible]])])})}}}),u=Tn(l),d=u.mount(document.createElement("div"));return{..._n(s),setText:r,removeElLoadingChild:a,close:i,handleAfterLeave:f,vm:d,get $el(){return d.$el}}}let fe;const Ue=function(e={}){if(!ae)return;const t=gs(e);if(t.fullscreen&&fe)return fe;const n=ys({...t,closed:()=>{var r;(r=t.closed)==null||r.call(t),t.fullscreen&&(fe=void 0)}});bs(t,t.parent,n),mt(t,t.parent,n),t.parent.vLoadingAddClassList=()=>mt(t,t.parent,n);let s=t.parent.getAttribute("loading-number");return s?s=`${Number.parseInt(s)+1}`:s="1",t.parent.setAttribute("loading-number",s),t.parent.appendChild(n.$el),Ut(()=>n.visible.value=t.visible),t.fullscreen&&(fe=n),n},gs=e=>{var t,n,s,r;let o;return be(e.target)?o=(t=document.querySelector(e.target))!=null?t:document.body:o=e.target||document.body,{parent:o===document.body||e.body?document.body:o,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:o===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(s=e.lock)!=null?s:!1,customClass:e.customClass||"",visible:(r=e.visible)!=null?r:!0,target:o}},bs=async(e,t,n)=>{const{nextZIndex:s}=n.vm.zIndex||n.vm._.exposed.zIndex,r={};if(e.fullscreen)n.originalPosition.value=ee(document.body,"position"),n.originalOverflow.value=ee(document.body,"overflow"),r.zIndex=s();else if(e.parent===document.body){n.originalPosition.value=ee(document.body,"position"),await Ut();for(const o of["top","left"]){const a=o==="top"?"scrollTop":"scrollLeft";r[o]=`${e.target.getBoundingClientRect()[o]+document.body[a]+document.documentElement[a]-Number.parseInt(ee(document.body,`margin-${o}`),10)}px`}for(const o of["height","width"])r[o]=`${e.target.getBoundingClientRect()[o]}px`}else n.originalPosition.value=ee(t,"position");for(const[o,a]of Object.entries(r))n.$el.style[o]=a},mt=(e,t,n)=>{const s=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?ge(t,s.bm("parent","relative")):et(t,s.bm("parent","relative")),e.fullscreen&&e.lock?et(t,s.bm("parent","hidden")):ge(t,s.bm("parent","hidden"))},de=Symbol("ElLoading"),ht=(e,t)=>{var n,s,r,o;const a=t.instance,i=p=>jt(t.value)?t.value[p]:void 0,f=p=>{const y=be(p)&&(a==null?void 0:a[p])||p;return y&&x(y)},l=p=>f(i(p)||e.getAttribute(`element-loading-${An(p)}`)),u=(n=i("fullscreen"))!=null?n:t.modifiers.fullscreen,d={text:l("text"),svg:l("svg"),svgViewBox:l("svgViewBox"),spinner:l("spinner"),background:l("background"),customClass:l("customClass"),fullscreen:u,target:(s=i("target"))!=null?s:u?void 0:e,body:(r=i("body"))!=null?r:t.modifiers.body,lock:(o=i("lock"))!=null?o:t.modifiers.lock};e[de]={options:d,instance:Ue(d)}},ws=(e,t)=>{for(const n of Object.keys(t))Cn(t[n])&&(t[n].value=e[n])},yt={mounted(e,t){t.value&&ht(e,t)},updated(e,t){const n=e[de];t.oldValue!==t.value&&(t.value&&!t.oldValue?ht(e,t):t.value&&t.oldValue?jt(t.value)&&ws(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[de])==null||t.instance.close(),e[de]=null}},vs={install(e){e.directive("loading",yt),e.config.globalProperties.$loading=Ue},directive:yt,service:Ue},qt=["success","info","warning","error"],C=xn({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:ae?document.body:void 0}),Es=Dt({customClass:{type:String,default:C.customClass},center:{type:Boolean,default:C.center},dangerouslyUseHTMLString:{type:Boolean,default:C.dangerouslyUseHTMLString},duration:{type:Number,default:C.duration},icon:{type:Pn,default:C.icon},id:{type:String,default:C.id},message:{type:se([String,Object,Function]),default:C.message},onClose:{type:se(Function),default:C.onClose},showClose:{type:Boolean,default:C.showClose},type:{type:String,values:qt,default:C.type},plain:{type:Boolean,default:C.plain},offset:{type:Number,default:C.offset},zIndex:{type:Number,default:C.zIndex},grouping:{type:Boolean,default:C.grouping},repeatNum:{type:Number,default:C.repeatNum}}),Ss={destroy:()=>!0},L=Nn([]),Os=e=>{const t=L.findIndex(r=>r.id===e),n=L[t];let s;return t>0&&(s=L[t-1]),{current:n,prev:s}},Rs=e=>{const{prev:t}=Os(e);return t?t.vm.exposed.bottom.value:0},Ts=(e,t)=>L.findIndex(s=>s.id===e)>0?16:t,_s=["id"],Cs=["innerHTML"],As=ie({name:"ElMessage"}),xs=ie({...As,props:Es,emits:Ss,setup(e,{expose:t}){const n=e,{Close:s}=Fn,{ns:r,zIndex:o}=It("message"),{currentZIndex:a,nextZIndex:i}=o,f=x(),l=x(!1),u=x(0);let d;const p=D(()=>n.type?n.type==="error"?"danger":n.type:"info"),y=D(()=>{const S=n.type;return{[r.bm("icon",S)]:S&&tt[S]}}),m=D(()=>n.icon||tt[n.type]||""),g=D(()=>Rs(n.id)),h=D(()=>Ts(n.id,n.offset)+g.value),v=D(()=>u.value+h.value),E=D(()=>({top:`${h.value}px`,zIndex:a.value}));function b(){n.duration!==0&&({stop:d}=In(()=>{T()},n.duration))}function _(){d==null||d()}function T(){l.value=!1}function F({code:S}){S===cs.esc&&T()}return Dn(()=>{b(),i(),l.value=!0}),U(()=>n.repeatNum,()=>{_(),b()}),V(document,"keydown",F),es(f,()=>{u.value=f.value.getBoundingClientRect().height}),t({visible:l,bottom:v,close:T}),(S,H)=>($(),te(Ke,{name:O(r).b("fade"),onBeforeLeave:S.onClose,onAfterLeave:H[0]||(H[0]=xe=>S.$emit("destroy")),persisted:""},{default:re(()=>[Je(Fe("div",{id:S.id,ref_key:"messageRef",ref:f,class:M([O(r).b(),{[O(r).m(S.type)]:S.type},O(r).is("center",S.center),O(r).is("closable",S.showClose),O(r).is("plain",S.plain),S.customClass]),style:Ft(O(E)),role:"alert",onMouseenter:_,onMouseleave:b},[S.repeatNum>1?($(),te(O(hs),{key:0,value:S.repeatNum,type:O(p),class:M(O(r).e("badge"))},null,8,["value","type","class"])):ue("v-if",!0),O(m)?($(),te(O(nt),{key:1,class:M([O(r).e("icon"),O(y)])},{default:re(()=>[($(),te(Bn(O(m))))]),_:1},8,["class"])):ue("v-if",!0),Lt(S.$slots,"default",{},()=>[S.dangerouslyUseHTMLString?($(),ke(Ln,{key:1},[ue(" Caution here, message could've been compromised, never use user's input as message "),Fe("p",{class:M(O(r).e("content")),innerHTML:S.message},null,10,Cs)],2112)):($(),ke("p",{key:0,class:M(O(r).e("content"))},kt(S.message),3))]),S.showClose?($(),te(O(nt),{key:2,class:M(O(r).e("closeBtn")),onClick:kn(T,["stop"])},{default:re(()=>[Ee(O(s))]),_:1},8,["class","onClick"])):ue("v-if",!0)],46,_s),[[We,l.value]])]),_:3},8,["name","onBeforeLeave"]))}});var Ps=Bt(xs,[["__file","message.vue"]]);let Ns=1;const Ht=e=>{const t=!e||be(e)||$t(e)||Ie(e)?{message:e}:e,n={...C,...t};if(!n.appendTo)n.appendTo=document.body;else if(be(n.appendTo)){let s=document.querySelector(n.appendTo);Un(s)||(s=document.body),n.appendTo=s}return n},Ds=e=>{const t=L.indexOf(e);if(t===-1)return;L.splice(t,1);const{handler:n}=e;n.close()},Bs=({appendTo:e,...t},n)=>{const s=`message_${Ns++}`,r=t.onClose,o=document.createElement("div"),a={...t,id:s,onClose:()=>{r==null||r(),Ds(u)},onDestroy:()=>{st(null,o)}},i=Ee(Ps,a,Ie(a.message)||$t(a.message)?{default:Ie(a.message)?a.message:()=>a.message}:null);i.appContext=n||Q._context,st(i,o),e.appendChild(o.firstElementChild);const f=i.component,u={id:s,vnode:i,vm:f,handler:{close:()=>{f.exposed.visible.value=!1}},props:i.component.props};return u},Q=(e={},t)=>{if(!ae)return{close:()=>{}};if(Le(pt.max)&&L.length>=pt.max)return{close:()=>{}};const n=Ht(e);if(n.grouping&&L.length){const r=L.find(({vnode:o})=>{var a;return((a=o.props)==null?void 0:a.message)===n.message});if(r)return r.props.repeatNum+=1,r.props.type=n.type,r.handler}const s=Bs(n,t);return L.push(s),s.handler};qt.forEach(e=>{Q[e]=(t={},n)=>{const s=Ht(t);return Q({...s,type:e},n)}});function Ls(e){for(const t of L)(!e||e===t.props.type)&&t.handler.close()}Q.closeAll=Ls;Q._context=null;const j=jn(Q,"$message"),ks=e=>e==="defer"||e===!1;function So(...e){var g;const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);let[n,s,r={}]=e;if(typeof n!="string")throw new TypeError("[nuxt] [asyncData] key must be a string.");if(typeof s!="function")throw new TypeError("[nuxt] [asyncData] handler must be a function.");const o=$n(),a=s,i=()=>K.value,f=()=>o.isHydrating?o.payload.data[n]:o.static.data[n];r.server??(r.server=!0),r.default??(r.default=i),r.getCachedData??(r.getCachedData=f),r.lazy??(r.lazy=!1),r.immediate??(r.immediate=!0),r.deep??(r.deep=K.deep),r.dedupe??(r.dedupe="cancel");const l=r.getCachedData(n,o),u=l!=null;if(!o._asyncData[n]||!r.immediate){(g=o.payload._errors)[n]??(g[n]=K.errorValue);const h=r.deep?x:Mn;o._asyncData[n]={data:h(u?l:r.default()),pending:x(!u),error:qn(o.payload._errors,n),status:x("idle"),_default:r.default}}const d={...o._asyncData[n]};delete d._default,d.refresh=d.execute=(h={})=>{if(o._asyncDataPromises[n]){if(ks(h.dedupe??r.dedupe))return o._asyncDataPromises[n];o._asyncDataPromises[n].cancelled=!0}if(h._initial||o.isHydrating&&h._initial!==!1){const E=h._initial?l:r.getCachedData(n,o);if(E!=null)return Promise.resolve(E)}d.pending.value=!0,d.status.value="pending";const v=new Promise((E,b)=>{try{E(a(o))}catch(_){b(_)}}).then(async E=>{if(v.cancelled)return o._asyncDataPromises[n];let b=E;r.transform&&(b=await r.transform(E)),r.pick&&(b=Is(b,r.pick)),o.payload.data[n]=b,d.data.value=b,d.error.value=K.errorValue,d.status.value="success"}).catch(E=>{if(v.cancelled)return o._asyncDataPromises[n];d.error.value=Jn(E),d.data.value=O(r.default()),d.status.value="error"}).finally(()=>{v.cancelled||(d.pending.value=!1,delete o._asyncDataPromises[n])});return o._asyncDataPromises[n]=v,o._asyncDataPromises[n]},d.clear=()=>Fs(o,n);const p=()=>d.refresh({_initial:!0}),y=r.server!==!1&&o.payload.serverRendered;{const h=Nt();if(h&&y&&r.immediate&&!h.sp&&(h.sp=[]),h&&!h._nuxtOnBeforeMountCbs){h._nuxtOnBeforeMountCbs=[];const b=h._nuxtOnBeforeMountCbs;Hn(()=>{b.forEach(_=>{_()}),b.splice(0,b.length)}),zn(()=>b.splice(0,b.length))}y&&o.isHydrating&&(d.error.value||l!=null)?(d.pending.value=!1,d.status.value=d.error.value?"error":"success"):h&&(o.payload.serverRendered&&o.isHydrating||r.lazy)&&r.immediate?h._nuxtOnBeforeMountCbs.push(p):r.immediate&&p();const v=Vn();if(r.watch){const b=U(r.watch,()=>d.refresh());v&&rt(b)}const E=o.hook("app:data:refresh",async b=>{(!b||b.includes(n))&&await d.refresh()});v&&rt(E)}const m=Promise.resolve(o._asyncDataPromises[n]).then(()=>d);return Object.assign(m,d),m}function Fs(e,t){t in e.payload.data&&(e.payload.data[t]=void 0),t in e.payload._errors&&(e.payload._errors[t]=K.errorValue),e._asyncData[t]&&(e._asyncData[t].data.value=void 0,e._asyncData[t].error.value=K.errorValue,e._asyncData[t].pending.value=!1,e._asyncData[t].status.value="idle"),t in e._asyncDataPromises&&(e._asyncDataPromises[t]&&(e._asyncDataPromises[t].cancelled=!0),e._asyncDataPromises[t]=void 0)}function Is(e,t){const n={};for(const s of t)n[s]=e[s];return n}function zt(e,t){return function(){return e.apply(t,arguments)}}const{toString:Us}=Object.prototype,{getPrototypeOf:Qe}=Object,{iterator:Se,toStringTag:Vt}=Symbol,Oe=(e=>t=>{const n=Us.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),k=e=>(e=e.toLowerCase(),t=>Oe(t)===e),Re=e=>t=>typeof t===e,{isArray:G}=Array,oe=Re("undefined");function js(e){return e!==null&&!oe(e)&&e.constructor!==null&&!oe(e.constructor)&&P(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Jt=k("ArrayBuffer");function $s(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Jt(e.buffer),t}const Ms=Re("string"),P=Re("function"),Wt=Re("number"),Te=e=>e!==null&&typeof e=="object",qs=e=>e===!0||e===!1,pe=e=>{if(Oe(e)!=="object")return!1;const t=Qe(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Vt in e)&&!(Se in e)},Hs=k("Date"),zs=k("File"),Vs=k("Blob"),Js=k("FileList"),Ws=e=>Te(e)&&P(e.pipe),Ks=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||P(e.append)&&((t=Oe(e))==="formdata"||t==="object"&&P(e.toString)&&e.toString()==="[object FormData]"))},Qs=k("URLSearchParams"),[Xs,Gs,Zs,Ys]=["ReadableStream","Request","Response","Headers"].map(k),er=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function le(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,r;if(typeof e!="object"&&(e=[e]),G(e))for(s=0,r=e.length;s<r;s++)t.call(null,e[s],s,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let i;for(s=0;s<a;s++)i=o[s],t.call(null,e[i],i,e)}}function Kt(e,t){t=t.toLowerCase();const n=Object.keys(e);let s=n.length,r;for(;s-- >0;)if(r=n[s],t===r.toLowerCase())return r;return null}const z=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Qt=e=>!oe(e)&&e!==z;function je(){const{caseless:e}=Qt(this)&&this||{},t={},n=(s,r)=>{const o=e&&Kt(t,r)||r;pe(t[o])&&pe(s)?t[o]=je(t[o],s):pe(s)?t[o]=je({},s):G(s)?t[o]=s.slice():t[o]=s};for(let s=0,r=arguments.length;s<r;s++)arguments[s]&&le(arguments[s],n);return t}const tr=(e,t,n,{allOwnKeys:s}={})=>(le(t,(r,o)=>{n&&P(r)?e[o]=zt(r,n):e[o]=r},{allOwnKeys:s}),e),nr=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),sr=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},rr=(e,t,n,s)=>{let r,o,a;const i={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),o=r.length;o-- >0;)a=r[o],(!s||s(a,e,t))&&!i[a]&&(t[a]=e[a],i[a]=!0);e=n!==!1&&Qe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},or=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},ar=e=>{if(!e)return null;if(G(e))return e;let t=e.length;if(!Wt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},ir=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Qe(Uint8Array)),lr=(e,t)=>{const s=(e&&e[Se]).call(e);let r;for(;(r=s.next())&&!r.done;){const o=r.value;t.call(e,o[0],o[1])}},cr=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},ur=k("HTMLFormElement"),fr=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),gt=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),dr=k("RegExp"),Xt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};le(n,(r,o)=>{let a;(a=t(r,o,e))!==!1&&(s[o]=a||r)}),Object.defineProperties(e,s)},pr=e=>{Xt(e,(t,n)=>{if(P(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(P(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},mr=(e,t)=>{const n={},s=r=>{r.forEach(o=>{n[o]=!0})};return G(e)?s(e):s(String(e).split(t)),n},hr=()=>{},yr=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function gr(e){return!!(e&&P(e.append)&&e[Vt]==="FormData"&&e[Se])}const br=e=>{const t=new Array(10),n=(s,r)=>{if(Te(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[r]=s;const o=G(s)?[]:{};return le(s,(a,i)=>{const f=n(a,r+1);!oe(f)&&(o[i]=f)}),t[r]=void 0,o}}return s};return n(e,0)},wr=k("AsyncFunction"),vr=e=>e&&(Te(e)||P(e))&&P(e.then)&&P(e.catch),Gt=((e,t)=>e?setImmediate:t?((n,s)=>(z.addEventListener("message",({source:r,data:o})=>{r===z&&o===n&&s.length&&s.shift()()},!1),r=>{s.push(r),z.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",P(z.postMessage)),Er=typeof queueMicrotask<"u"?queueMicrotask.bind(z):typeof process<"u"&&process.nextTick||Gt,Sr=e=>e!=null&&P(e[Se]),c={isArray:G,isArrayBuffer:Jt,isBuffer:js,isFormData:Ks,isArrayBufferView:$s,isString:Ms,isNumber:Wt,isBoolean:qs,isObject:Te,isPlainObject:pe,isReadableStream:Xs,isRequest:Gs,isResponse:Zs,isHeaders:Ys,isUndefined:oe,isDate:Hs,isFile:zs,isBlob:Vs,isRegExp:dr,isFunction:P,isStream:Ws,isURLSearchParams:Qs,isTypedArray:ir,isFileList:Js,forEach:le,merge:je,extend:tr,trim:er,stripBOM:nr,inherits:sr,toFlatObject:rr,kindOf:Oe,kindOfTest:k,endsWith:or,toArray:ar,forEachEntry:lr,matchAll:cr,isHTMLForm:ur,hasOwnProperty:gt,hasOwnProp:gt,reduceDescriptors:Xt,freezeMethods:pr,toObjectSet:mr,toCamelCase:fr,noop:hr,toFiniteNumber:yr,findKey:Kt,global:z,isContextDefined:Qt,isSpecCompliantForm:gr,toJSONObject:br,isAsyncFn:wr,isThenable:vr,setImmediate:Gt,asap:Er,isIterable:Sr};function w(e,t,n,s,r){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),s&&(this.request=s),r&&(this.response=r,this.status=r.status?r.status:null)}c.inherits(w,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:c.toJSONObject(this.config),code:this.code,status:this.status}}});const Zt=w.prototype,Yt={};["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=>{Yt[e]={value:e}});Object.defineProperties(w,Yt);Object.defineProperty(Zt,"isAxiosError",{value:!0});w.from=(e,t,n,s,r,o)=>{const a=Object.create(Zt);return c.toFlatObject(e,a,function(f){return f!==Error.prototype},i=>i!=="isAxiosError"),w.call(a,e.message,t,n,s,r),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const Or=null;function $e(e){return c.isPlainObject(e)||c.isArray(e)}function en(e){return c.endsWith(e,"[]")?e.slice(0,-2):e}function bt(e,t,n){return e?e.concat(t).map(function(r,o){return r=en(r),!n&&o?"["+r+"]":r}).join(n?".":""):t}function Rr(e){return c.isArray(e)&&!e.some($e)}const Tr=c.toFlatObject(c,{},null,function(t){return/^is[A-Z]/.test(t)});function _e(e,t,n){if(!c.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=c.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,h){return!c.isUndefined(h[g])});const s=n.metaTokens,r=n.visitor||u,o=n.dots,a=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(t);if(!c.isFunction(r))throw new TypeError("visitor must be a function");function l(m){if(m===null)return"";if(c.isDate(m))return m.toISOString();if(!f&&c.isBlob(m))throw new w("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(m)||c.isTypedArray(m)?f&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,g,h){let v=m;if(m&&!h&&typeof m=="object"){if(c.endsWith(g,"{}"))g=s?g:g.slice(0,-2),m=JSON.stringify(m);else if(c.isArray(m)&&Rr(m)||(c.isFileList(m)||c.endsWith(g,"[]"))&&(v=c.toArray(m)))return g=en(g),v.forEach(function(b,_){!(c.isUndefined(b)||b===null)&&t.append(a===!0?bt([g],_,o):a===null?g:g+"[]",l(b))}),!1}return $e(m)?!0:(t.append(bt(h,g,o),l(m)),!1)}const d=[],p=Object.assign(Tr,{defaultVisitor:u,convertValue:l,isVisitable:$e});function y(m,g){if(!c.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));d.push(m),c.forEach(m,function(v,E){(!(c.isUndefined(v)||v===null)&&r.call(t,v,c.isString(E)?E.trim():E,g,p))===!0&&y(v,g?g.concat(E):[E])}),d.pop()}}if(!c.isObject(e))throw new TypeError("data must be an object");return y(e),t}function wt(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function Xe(e,t){this._pairs=[],e&&_e(e,this,t)}const tn=Xe.prototype;tn.append=function(t,n){this._pairs.push([t,n])};tn.toString=function(t){const n=t?function(s){return t.call(this,s,wt)}:wt;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function _r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function nn(e,t,n){if(!t)return e;const s=n&&n.encode||_r;c.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let o;if(r?o=r(t,n):o=c.isURLSearchParams(t)?t.toString():new Xe(t,n).toString(s),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class vt{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){c.forEach(this.handlers,function(s){s!==null&&t(s)})}}const sn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Cr=typeof URLSearchParams<"u"?URLSearchParams:Xe,Ar=typeof FormData<"u"?FormData:null,xr=typeof Blob<"u"?Blob:null,Pr={isBrowser:!0,classes:{URLSearchParams:Cr,FormData:Ar,Blob:xr},protocols:["http","https","file","blob","url","data"]},Ge=typeof window<"u"&&typeof document<"u",Me=typeof navigator=="object"&&navigator||void 0,Nr=Ge&&(!Me||["ReactNative","NativeScript","NS"].indexOf(Me.product)<0),Dr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Br=Ge&&window.location.href||"http://localhost",Lr=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ge,hasStandardBrowserEnv:Nr,hasStandardBrowserWebWorkerEnv:Dr,navigator:Me,origin:Br},Symbol.toStringTag,{value:"Module"})),A={...Lr,...Pr};function kr(e,t){return _e(e,new A.classes.URLSearchParams,Object.assign({visitor:function(n,s,r,o){return A.isNode&&c.isBuffer(n)?(this.append(s,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Fr(e){return c.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Ir(e){const t={},n=Object.keys(e);let s;const r=n.length;let o;for(s=0;s<r;s++)o=n[s],t[o]=e[o];return t}function rn(e){function t(n,s,r,o){let a=n[o++];if(a==="__proto__")return!0;const i=Number.isFinite(+a),f=o>=n.length;return a=!a&&c.isArray(r)?r.length:a,f?(c.hasOwnProp(r,a)?r[a]=[r[a],s]:r[a]=s,!i):((!r[a]||!c.isObject(r[a]))&&(r[a]=[]),t(n,s,r[a],o)&&c.isArray(r[a])&&(r[a]=Ir(r[a])),!i)}if(c.isFormData(e)&&c.isFunction(e.entries)){const n={};return c.forEachEntry(e,(s,r)=>{t(Fr(s),r,n,0)}),n}return null}function Ur(e,t,n){if(c.isString(e))try{return(t||JSON.parse)(e),c.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const ce={transitional:sn,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,o=c.isObject(t);if(o&&c.isHTMLForm(t)&&(t=new FormData(t)),c.isFormData(t))return r?JSON.stringify(rn(t)):t;if(c.isArrayBuffer(t)||c.isBuffer(t)||c.isStream(t)||c.isFile(t)||c.isBlob(t)||c.isReadableStream(t))return t;if(c.isArrayBufferView(t))return t.buffer;if(c.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(o){if(s.indexOf("application/x-www-form-urlencoded")>-1)return kr(t,this.formSerializer).toString();if((i=c.isFileList(t))||s.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return _e(i?{"files[]":t}:t,f&&new f,this.formSerializer)}}return o||r?(n.setContentType("application/json",!1),Ur(t)):t}],transformResponse:[function(t){const n=this.transitional||ce.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(c.isResponse(t)||c.isReadableStream(t))return t;if(t&&c.isString(t)&&(s&&!this.responseType||r)){const a=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(i){if(a)throw i.name==="SyntaxError"?w.from(i,w.ERR_BAD_RESPONSE,this,null,this.response):i}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:A.classes.FormData,Blob:A.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};c.forEach(["delete","get","head","post","put","patch"],e=>{ce.headers[e]={}});const jr=c.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"]),$r=e=>{const t={};let n,s,r;return e&&e.split(`
`).forEach(function(a){r=a.indexOf(":"),n=a.substring(0,r).trim().toLowerCase(),s=a.substring(r+1).trim(),!(!n||t[n]&&jr[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},Et=Symbol("internals");function ne(e){return e&&String(e).trim().toLowerCase()}function me(e){return e===!1||e==null?e:c.isArray(e)?e.map(me):String(e)}function Mr(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const qr=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ne(e,t,n,s,r){if(c.isFunction(s))return s.call(this,t,n);if(r&&(t=n),!!c.isString(t)){if(c.isString(s))return t.indexOf(s)!==-1;if(c.isRegExp(s))return s.test(t)}}function Hr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function zr(e,t){const n=c.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(r,o,a){return this[s].call(this,t,r,o,a)},configurable:!0})})}let N=class{constructor(t){t&&this.set(t)}set(t,n,s){const r=this;function o(i,f,l){const u=ne(f);if(!u)throw new Error("header name must be a non-empty string");const d=c.findKey(r,u);(!d||r[d]===void 0||l===!0||l===void 0&&r[d]!==!1)&&(r[d||f]=me(i))}const a=(i,f)=>c.forEach(i,(l,u)=>o(l,u,f));if(c.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(c.isString(t)&&(t=t.trim())&&!qr(t))a($r(t),n);else if(c.isObject(t)&&c.isIterable(t)){let i={},f,l;for(const u of t){if(!c.isArray(u))throw TypeError("Object iterator must return a key-value pair");i[l=u[0]]=(f=i[l])?c.isArray(f)?[...f,u[1]]:[f,u[1]]:u[1]}a(i,n)}else t!=null&&o(n,t,s);return this}get(t,n){if(t=ne(t),t){const s=c.findKey(this,t);if(s){const r=this[s];if(!n)return r;if(n===!0)return Mr(r);if(c.isFunction(n))return n.call(this,r,s);if(c.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ne(t),t){const s=c.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||Ne(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let r=!1;function o(a){if(a=ne(a),a){const i=c.findKey(s,a);i&&(!n||Ne(s,s[i],i,n))&&(delete s[i],r=!0)}}return c.isArray(t)?t.forEach(o):o(t),r}clear(t){const n=Object.keys(this);let s=n.length,r=!1;for(;s--;){const o=n[s];(!t||Ne(this,this[o],o,t,!0))&&(delete this[o],r=!0)}return r}normalize(t){const n=this,s={};return c.forEach(this,(r,o)=>{const a=c.findKey(s,o);if(a){n[a]=me(r),delete n[o];return}const i=t?Hr(o):String(o).trim();i!==o&&delete n[o],n[i]=me(r),s[i]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return c.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=t&&c.isArray(s)?s.join(", "):s)}),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 s=new this(t);return n.forEach(r=>s.set(r)),s}static accessor(t){const s=(this[Et]=this[Et]={accessors:{}}).accessors,r=this.prototype;function o(a){const i=ne(a);s[i]||(zr(r,a),s[i]=!0)}return c.isArray(t)?t.forEach(o):o(t),this}};N.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);c.reduceDescriptors(N.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});c.freezeMethods(N);function De(e,t){const n=this||ce,s=t||n,r=N.from(s.headers);let o=s.data;return c.forEach(e,function(i){o=i.call(n,o,r.normalize(),t?t.status:void 0)}),r.normalize(),o}function on(e){return!!(e&&e.__CANCEL__)}function Z(e,t,n){w.call(this,e??"canceled",w.ERR_CANCELED,t,n),this.name="CanceledError"}c.inherits(Z,w,{__CANCEL__:!0});function an(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new w("Request failed with status code "+n.status,[w.ERR_BAD_REQUEST,w.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Vr(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Jr(e,t){e=e||10;const n=new Array(e),s=new Array(e);let r=0,o=0,a;return t=t!==void 0?t:1e3,function(f){const l=Date.now(),u=s[o];a||(a=l),n[r]=f,s[r]=l;let d=o,p=0;for(;d!==r;)p+=n[d++],d=d%e;if(r=(r+1)%e,r===o&&(o=(o+1)%e),l-a<t)return;const y=u&&l-u;return y?Math.round(p*1e3/y):void 0}}function Wr(e,t){let n=0,s=1e3/t,r,o;const a=(l,u=Date.now())=>{n=u,r=null,o&&(clearTimeout(o),o=null),e.apply(null,l)};return[(...l)=>{const u=Date.now(),d=u-n;d>=s?a(l,u):(r=l,o||(o=setTimeout(()=>{o=null,a(r)},s-d)))},()=>r&&a(r)]}const we=(e,t,n=3)=>{let s=0;const r=Jr(50,250);return Wr(o=>{const a=o.loaded,i=o.lengthComputable?o.total:void 0,f=a-s,l=r(f),u=a<=i;s=a;const d={loaded:a,total:i,progress:i?a/i:void 0,bytes:f,rate:l||void 0,estimated:l&&i&&u?(i-a)/l:void 0,event:o,lengthComputable:i!=null,[t?"download":"upload"]:!0};e(d)},n)},St=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},Ot=e=>(...t)=>c.asap(()=>e(...t)),Kr=A.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,A.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(A.origin),A.navigator&&/(msie|trident)/i.test(A.navigator.userAgent)):()=>!0,Qr=A.hasStandardBrowserEnv?{write(e,t,n,s,r,o){const a=[e+"="+encodeURIComponent(t)];c.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),c.isString(s)&&a.push("path="+s),c.isString(r)&&a.push("domain="+r),o===!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 Xr(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Gr(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ln(e,t,n){let s=!Xr(t);return e&&(s||n==!1)?Gr(e,t):t}const Rt=e=>e instanceof N?{...e}:e;function W(e,t){t=t||{};const n={};function s(l,u,d,p){return c.isPlainObject(l)&&c.isPlainObject(u)?c.merge.call({caseless:p},l,u):c.isPlainObject(u)?c.merge({},u):c.isArray(u)?u.slice():u}function r(l,u,d,p){if(c.isUndefined(u)){if(!c.isUndefined(l))return s(void 0,l,d,p)}else return s(l,u,d,p)}function o(l,u){if(!c.isUndefined(u))return s(void 0,u)}function a(l,u){if(c.isUndefined(u)){if(!c.isUndefined(l))return s(void 0,l)}else return s(void 0,u)}function i(l,u,d){if(d in t)return s(l,u);if(d in e)return s(void 0,l)}const f={url:o,method:o,data:o,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:i,headers:(l,u,d)=>r(Rt(l),Rt(u),d,!0)};return c.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=f[u]||r,p=d(e[u],t[u],u);c.isUndefined(p)&&d!==i||(n[u]=p)}),n}const cn=e=>{const t=W({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:r,xsrfCookieName:o,headers:a,auth:i}=t;t.headers=a=N.from(a),t.url=nn(ln(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),i&&a.set("Authorization","Basic "+btoa((i.username||"")+":"+(i.password?unescape(encodeURIComponent(i.password)):"")));let f;if(c.isFormData(n)){if(A.hasStandardBrowserEnv||A.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((f=a.getContentType())!==!1){const[l,...u]=f?f.split(";").map(d=>d.trim()).filter(Boolean):[];a.setContentType([l||"multipart/form-data",...u].join("; "))}}if(A.hasStandardBrowserEnv&&(s&&c.isFunction(s)&&(s=s(t)),s||s!==!1&&Kr(t.url))){const l=r&&o&&Qr.read(o);l&&a.set(r,l)}return t},Zr=typeof XMLHttpRequest<"u",Yr=Zr&&function(e){return new Promise(function(n,s){const r=cn(e);let o=r.data;const a=N.from(r.headers).normalize();let{responseType:i,onUploadProgress:f,onDownloadProgress:l}=r,u,d,p,y,m;function g(){y&&y(),m&&m(),r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}let h=new XMLHttpRequest;h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout;function v(){if(!h)return;const b=N.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),T={data:!i||i==="text"||i==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:b,config:e,request:h};an(function(S){n(S),g()},function(S){s(S),g()},T),h=null}"onloadend"in h?h.onloadend=v:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(v)},h.onabort=function(){h&&(s(new w("Request aborted",w.ECONNABORTED,e,h)),h=null)},h.onerror=function(){s(new w("Network Error",w.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let _=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const T=r.transitional||sn;r.timeoutErrorMessage&&(_=r.timeoutErrorMessage),s(new w(_,T.clarifyTimeoutError?w.ETIMEDOUT:w.ECONNABORTED,e,h)),h=null},o===void 0&&a.setContentType(null),"setRequestHeader"in h&&c.forEach(a.toJSON(),function(_,T){h.setRequestHeader(T,_)}),c.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),i&&i!=="json"&&(h.responseType=r.responseType),l&&([p,m]=we(l,!0),h.addEventListener("progress",p)),f&&h.upload&&([d,y]=we(f),h.upload.addEventListener("progress",d),h.upload.addEventListener("loadend",y)),(r.cancelToken||r.signal)&&(u=b=>{h&&(s(!b||b.type?new Z(null,e,h):b),h.abort(),h=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));const E=Vr(r.url);if(E&&A.protocols.indexOf(E)===-1){s(new w("Unsupported protocol "+E+":",w.ERR_BAD_REQUEST,e));return}h.send(o||null)})},eo=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let s=new AbortController,r;const o=function(l){if(!r){r=!0,i();const u=l instanceof Error?l:this.reason;s.abort(u instanceof w?u:new Z(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,o(new w(`timeout ${t} of ms exceeded`,w.ETIMEDOUT))},t);const i=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(o):l.removeEventListener("abort",o)}),e=null)};e.forEach(l=>l.addEventListener("abort",o));const{signal:f}=s;return f.unsubscribe=()=>c.asap(i),f}},to=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let s=0,r;for(;s<n;)r=s+t,yield e.slice(s,r),s=r},no=async function*(e,t){for await(const n of so(e))yield*to(n,t)},so=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:s}=await t.read();if(n)break;yield s}}finally{await t.cancel()}},Tt=(e,t,n,s)=>{const r=no(e,t);let o=0,a,i=f=>{a||(a=!0,s&&s(f))};return new ReadableStream({async pull(f){try{const{done:l,value:u}=await r.next();if(l){i(),f.close();return}let d=u.byteLength;if(n){let p=o+=d;n(p)}f.enqueue(new Uint8Array(u))}catch(l){throw i(l),l}},cancel(f){return i(f),r.return()}},{highWaterMark:2})},Ce=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",un=Ce&&typeof ReadableStream=="function",ro=Ce&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),fn=(e,...t)=>{try{return!!e(...t)}catch{return!1}},oo=un&&fn(()=>{let e=!1;const t=new Request(A.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),_t=64*1024,qe=un&&fn(()=>c.isReadableStream(new Response("").body)),ve={stream:qe&&(e=>e.body)};Ce&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ve[t]&&(ve[t]=c.isFunction(e[t])?n=>n[t]():(n,s)=>{throw new w(`Response type '${t}' is not supported`,w.ERR_NOT_SUPPORT,s)})})})(new Response);const ao=async e=>{if(e==null)return 0;if(c.isBlob(e))return e.size;if(c.isSpecCompliantForm(e))return(await new Request(A.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(c.isArrayBufferView(e)||c.isArrayBuffer(e))return e.byteLength;if(c.isURLSearchParams(e)&&(e=e+""),c.isString(e))return(await ro(e)).byteLength},io=async(e,t)=>{const n=c.toFiniteNumber(e.getContentLength());return n??ao(t)},lo=Ce&&(async e=>{let{url:t,method:n,data:s,signal:r,cancelToken:o,timeout:a,onDownloadProgress:i,onUploadProgress:f,responseType:l,headers:u,withCredentials:d="same-origin",fetchOptions:p}=cn(e);l=l?(l+"").toLowerCase():"text";let y=eo([r,o&&o.toAbortSignal()],a),m;const g=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let h;try{if(f&&oo&&n!=="get"&&n!=="head"&&(h=await io(u,s))!==0){let T=new Request(t,{method:"POST",body:s,duplex:"half"}),F;if(c.isFormData(s)&&(F=T.headers.get("content-type"))&&u.setContentType(F),T.body){const[S,H]=St(h,we(Ot(f)));s=Tt(T.body,_t,S,H)}}c.isString(d)||(d=d?"include":"omit");const v="credentials"in Request.prototype;m=new Request(t,{...p,signal:y,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:s,duplex:"half",credentials:v?d:void 0});let E=await fetch(m);const b=qe&&(l==="stream"||l==="response");if(qe&&(i||b&&g)){const T={};["status","statusText","headers"].forEach(xe=>{T[xe]=E[xe]});const F=c.toFiniteNumber(E.headers.get("content-length")),[S,H]=i&&St(F,we(Ot(i),!0))||[];E=new Response(Tt(E.body,_t,S,()=>{H&&H(),g&&g()}),T)}l=l||"text";let _=await ve[c.findKey(ve,l)||"text"](E,e);return!b&&g&&g(),await new Promise((T,F)=>{an(T,F,{data:_,headers:N.from(E.headers),status:E.status,statusText:E.statusText,config:e,request:m})})}catch(v){throw g&&g(),v&&v.name==="TypeError"&&/Load failed|fetch/i.test(v.message)?Object.assign(new w("Network Error",w.ERR_NETWORK,e,m),{cause:v.cause||v}):w.from(v,v&&v.code,e,m)}}),He={http:Or,xhr:Yr,fetch:lo};c.forEach(He,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ct=e=>`- ${e}`,co=e=>c.isFunction(e)||e===null||e===!1,dn={getAdapter:e=>{e=c.isArray(e)?e:[e];const{length:t}=e;let n,s;const r={};for(let o=0;o<t;o++){n=e[o];let a;if(s=n,!co(n)&&(s=He[(a=String(n)).toLowerCase()],s===void 0))throw new w(`Unknown adapter '${a}'`);if(s)break;r[a||"#"+o]=s}if(!s){const o=Object.entries(r).map(([i,f])=>`adapter ${i} `+(f===!1?"is not supported by the environment":"is not available in the build"));let a=t?o.length>1?`since :
`+o.map(Ct).join(`
`):" "+Ct(o[0]):"as no adapter specified";throw new w("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return s},adapters:He};function Be(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Z(null,e)}function At(e){return Be(e),e.headers=N.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),dn.getAdapter(e.adapter||ce.adapter)(e).then(function(s){return Be(e),s.data=De.call(e,e.transformResponse,s),s.headers=N.from(s.headers),s},function(s){return on(s)||(Be(e),s&&s.response&&(s.response.data=De.call(e,e.transformResponse,s.response),s.response.headers=N.from(s.response.headers))),Promise.reject(s)})}const pn="1.9.0",Ae={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ae[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const xt={};Ae.transitional=function(t,n,s){function r(o,a){return"[Axios v"+pn+"] Transitional option '"+o+"'"+a+(s?". "+s:"")}return(o,a,i)=>{if(t===!1)throw new w(r(a," has been removed"+(n?" in "+n:"")),w.ERR_DEPRECATED);return n&&!xt[a]&&(xt[a]=!0,console.warn(r(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,i):!0}};Ae.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function uo(e,t,n){if(typeof e!="object")throw new w("options must be an object",w.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let r=s.length;for(;r-- >0;){const o=s[r],a=t[o];if(a){const i=e[o],f=i===void 0||a(i,o,e);if(f!==!0)throw new w("option "+o+" must be "+f,w.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new w("Unknown option "+o,w.ERR_BAD_OPTION)}}const he={assertOptions:uo,validators:Ae},I=he.validators;let J=class{constructor(t){this.defaults=t||{},this.interceptors={request:new vt,response:new vt}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const o=r.stack?r.stack.replace(/^.+\n/,""):"";try{s.stack?o&&!String(s.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(s.stack+=`
`+o):s.stack=o}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=W(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:o}=n;s!==void 0&&he.assertOptions(s,{silentJSONParsing:I.transitional(I.boolean),forcedJSONParsing:I.transitional(I.boolean),clarifyTimeoutError:I.transitional(I.boolean)},!1),r!=null&&(c.isFunction(r)?n.paramsSerializer={serialize:r}:he.assertOptions(r,{encode:I.function,serialize:I.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),he.assertOptions(n,{baseUrl:I.spelling("baseURL"),withXsrfToken:I.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&c.merge(o.common,o[n.method]);o&&c.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),n.headers=N.concat(a,o);const i=[];let f=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(f=f&&g.synchronous,i.unshift(g.fulfilled,g.rejected))});const l=[];this.interceptors.response.forEach(function(g){l.push(g.fulfilled,g.rejected)});let u,d=0,p;if(!f){const m=[At.bind(this),void 0];for(m.unshift.apply(m,i),m.push.apply(m,l),p=m.length,u=Promise.resolve(n);d<p;)u=u.then(m[d++],m[d++]);return u}p=i.length;let y=n;for(d=0;d<p;){const m=i[d++],g=i[d++];try{y=m(y)}catch(h){g.call(this,h);break}}try{u=At.call(this,y)}catch(m){return Promise.reject(m)}for(d=0,p=l.length;d<p;)u=u.then(l[d++],l[d++]);return u}getUri(t){t=W(this.defaults,t);const n=ln(t.baseURL,t.url,t.allowAbsoluteUrls);return nn(n,t.params,t.paramsSerializer)}};c.forEach(["delete","get","head","options"],function(t){J.prototype[t]=function(n,s){return this.request(W(s||{},{method:t,url:n,data:(s||{}).data}))}});c.forEach(["post","put","patch"],function(t){function n(s){return function(o,a,i){return this.request(W(i||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}J.prototype[t]=n(),J.prototype[t+"Form"]=n(!0)});let fo=class mn{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const s=this;this.promise.then(r=>{if(!s._listeners)return;let o=s._listeners.length;for(;o-- >0;)s._listeners[o](r);s._listeners=null}),this.promise.then=r=>{let o;const a=new Promise(i=>{s.subscribe(i),o=i}).then(r);return a.cancel=function(){s.unsubscribe(o)},a},t(function(o,a,i){s.reason||(s.reason=new Z(o,a,i),n(s.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=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new mn(function(r){t=r}),cancel:t}}};function po(e){return function(n){return e.apply(null,n)}}function mo(e){return c.isObject(e)&&e.isAxiosError===!0}const ze={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(ze).forEach(([e,t])=>{ze[t]=e});function hn(e){const t=new J(e),n=zt(J.prototype.request,t);return c.extend(n,J.prototype,t,{allOwnKeys:!0}),c.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return hn(W(e,r))},n}const R=hn(ce);R.Axios=J;R.CanceledError=Z;R.CancelToken=fo;R.isCancel=on;R.VERSION=pn;R.toFormData=_e;R.AxiosError=w;R.Cancel=R.CanceledError;R.all=function(t){return Promise.all(t)};R.spread=po;R.isAxiosError=mo;R.mergeConfig=W;R.AxiosHeaders=N;R.formToJSON=e=>rn(c.isHTMLForm(e)?new FormData(e):e);R.getAdapter=dn.getAdapter;R.HttpStatusCode=ze;R.default=R;const{Axios:To,AxiosError:_o,CanceledError:Co,isCancel:Ao,CancelToken:xo,VERSION:Po,all:No,Cancel:Do,isAxiosError:Bo,spread:Lo,toFormData:ko,AxiosHeaders:Fo,HttpStatusCode:Io,formToJSON:Uo,getAdapter:jo,mergeConfig:$o}=R,B={isRefreshing:!1,loadingInstance:null,requests:[]},Mo=e=>{const t=Wn(),n=Kn(),s=Pe().token,r=R.create();r.defaults.baseURL=n.public.baseURL,r.defaults.timeout=n.public.timeout,r.defaults.headers={"content-type":"application/json"},s&&s.accessToken&&(r.defaults.headers.Authorization=`Bearer ${s.accessToken}`),e.method=e.method?e.method.toLowerCase():"get",r.interceptors.response.use(i=>i,async i=>{const f=i.response,l=i.config;if((f==null?void 0:f.status)===401&&(f!=null&&f.headers["token-expired"])){if(B.isRefreshing)return new Promise((u,d)=>{B.requests.push(p=>{p?(l.headers.Authorization=`Bearer ${p}`,u(R(l))):d(i)})});{const u=i.config;return B.isRefreshing=!0,new Promise((d,p)=>{R({method:"post",url:`${n.public.baseURL}/auth/retoken`,headers:{"content-type":"application/json"},data:{refreshToken:s.refreshToken}}).then(async y=>{Pe().set(y.data.accessToken,y.data.refreshToken);const m=y.data.accessToken;u.headers.Authorization=`Bearer ${m}`,B.requests.forEach(g=>g(m)),B.requests=[],d(R(u))}).catch(async y=>{B.requests.forEach(m=>m(null)),B.requests=[],j.error("认证失败，请重新登录"),await t.push("/account/login"),p(y)}).finally(()=>{B.isRefreshing=!1})})}}else((f==null?void 0:f.status)===401||(f==null?void 0:f.status)===403)&&(Pe().remove(),await t.push("/account/login"));return Promise.reject(i)});const o=i=>{const f={status:i.status,contentType:i.headers["content-type"],pagination:i.headers["x-pagination"]?JSON.parse(i.headers["x-pagination"]):{},data:i.data};return e.successMsg&&j.success(e.successMsg),e.success&&e.success(f),f},a=async i=>{var u,d;const f=i.response,l={status:f==null?void 0:f.status,message:(u=f==null?void 0:f.data)!=null&&u.message?(d=f==null?void 0:f.data)==null?void 0:d.message:i.message,data:null};if(f.data instanceof Blob){const p=await i.response.data.text(),y=JSON.parse(p);l.message=y.message}return i.code=="ECONNABORTED"&&i.message.includes("timeout")?j.error("请求超时，建议更换网络后重试"):f?f.status===400?j.warning(l.message):f.status===415?j.warning("请求类型有误，请检查重试"):f.status===422?j.warning("数据验证未通过，请检查重试"):f.status===500&&j.error("服务器通讯异常，请稍候再试"):j.error(`语法错误：${i}`),e.error&&e.error(l),l};return new Promise((i,f)=>{let l={};l.url=e.url,l.method=e.method,e.responseType&&(l.responseType=e.responseType),e.method==="file"&&(l.method="post",l.headers={"content-type":"multipart/form-data"},l.onUploadProgress=e.progress),e.method==="down"&&(l.method="get",l.responseType="blob",l.onDownloadProgress=e.progress),e.data&&(l.data=e.data),e.loading&&!B.loadingInstance&&(B.loadingInstance=vs.service({body:!0,lock:!0})),e.beforeSend&&e.beforeSend(),r.request(l).then(u=>{i(o(u))}).catch(u=>{f(a(u))}).finally(()=>{e.complete&&e.complete(),B.loadingInstance&&B.loadingInstance.close()})})};export{j as E,So as a,es as b,V as c,cs as d,wo as e,q as f,bo as g,Eo as h,vo as i,go as j,yo as o,Mo as u,yt as v};
