(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();/** * @vue/shared v3.5.31 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function Rr(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ue={},Zt=[],bt=()=>{},hi=()=>!1,gs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ys=e=>e.startsWith("onUpdate:"),Oe=Object.assign,xr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ua=Object.prototype.hasOwnProperty,ie=(e,t)=>ua.call(e,t),K=Array.isArray,en=e=>Mn(e)==="[object Map]",bs=e=>Mn(e)==="[object Set]",Yr=e=>Mn(e)==="[object Date]",Q=e=>typeof e=="function",we=e=>typeof e=="string",Ye=e=>typeof e=="symbol",ae=e=>e!==null&&typeof e=="object",mi=e=>(ae(e)||Q(e))&&Q(e.then)&&Q(e.catch),gi=Object.prototype.toString,Mn=e=>gi.call(e),fa=e=>Mn(e).slice(8,-1),yi=e=>Mn(e)==="[object Object]",_s=e=>we(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,_n=Rr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),vs=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},da=/-\w/g,nt=vs(e=>e.replace(da,t=>t.slice(1).toUpperCase())),pa=/\B([A-Z])/g,Mt=vs(e=>e.replace(pa,"-$1").toLowerCase()),bi=vs(e=>e.charAt(0).toUpperCase()+e.slice(1)),Us=vs(e=>e?`on${bi(e)}`:""),yt=(e,t)=>!Object.is(e,t),Xn=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},ws=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Zr;const Es=()=>Zr||(Zr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ar(e){if(K(e)){const t={};for(let n=0;n{if(n){const s=n.split(ma);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Ve(e){let t="";if(we(e))t=e;else if(K(e))for(let n=0;nBn(n,t))}const wi=e=>!!(e&&e.__v_isRef===!0),J=e=>we(e)?e:e==null?"":K(e)||ae(e)&&(e.toString===gi||!Q(e.toString))?wi(e)?J(e.value):JSON.stringify(e,Ei,2):String(e),Ei=(e,t)=>wi(t)?Ei(e,t.value):en(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[$s(s,o)+" =>"]=r,n),{})}:bs(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>$s(n))}:Ye(t)?$s(t):ae(t)&&!K(t)&&!yi(t)?String(t):t,$s=(e,t="")=>{var n;return Ye(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** * @vue/reactivity v3.5.31 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Te;class Si{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=Te,!t&&Te&&(this.index=(Te.scopes||(Te.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0&&(Te=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n0)return;if(wn){let t=wn;for(wn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;vn;){let t=vn;for(vn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function Ti(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Pi(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),Tr(s),Sa(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function rr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ni(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ni(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Nn)||(e.globalVersion=Nn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!rr(e))))return;e.flags|=2;const t=e.dep,n=pe,s=st;pe=e,st=!0;try{Ti(e);const r=e.fn(e._value);(t.version===0||yt(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{pe=n,st=s,Pi(e),e.flags&=-3}}function Tr(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)Tr(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Sa(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let st=!0;const Ii=[];function Ct(){Ii.push(st),st=!1}function Ot(){const e=Ii.pop();st=e===void 0?!0:e}function eo(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=pe;pe=void 0;try{t()}finally{pe=n}}}let Nn=0;class Ra{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Pr{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!pe||!st||pe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==pe)n=this.activeLink=new Ra(pe,this),pe.deps?(n.prevDep=pe.depsTail,pe.depsTail.nextDep=n,pe.depsTail=n):pe.deps=pe.depsTail=n,ki(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=pe.depsTail,n.nextDep=void 0,pe.depsTail.nextDep=n,pe.depsTail=n,pe.deps===n&&(pe.deps=s)}return n}trigger(t){this.version++,Nn++,this.notify(t)}notify(t){Cr();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Or()}}}function ki(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)ki(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const ss=new WeakMap,Kt=Symbol(""),or=Symbol(""),In=Symbol("");function Pe(e,t,n){if(st&&pe){let s=ss.get(e);s||ss.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new Pr),r.map=s,r.key=n),r.track()}}function Rt(e,t,n,s,r,o){const i=ss.get(e);if(!i){Nn++;return}const l=a=>{a&&a.trigger()};if(Cr(),t==="clear")i.forEach(l);else{const a=K(e),c=a&&_s(n);if(a&&n==="length"){const u=Number(s);i.forEach((f,h)=>{(h==="length"||h===In||!Ye(h)&&h>=u)&&l(f)})}else switch((n!==void 0||i.has(void 0))&&l(i.get(n)),c&&l(i.get(In)),t){case"add":a?c&&l(i.get("length")):(l(i.get(Kt)),en(e)&&l(i.get(or)));break;case"delete":a||(l(i.get(Kt)),en(e)&&l(i.get(or)));break;case"set":en(e)&&l(i.get(Kt));break}}Or()}function xa(e,t){const n=ss.get(e);return n&&n.get(t)}function Jt(e){const t=se(e);return t===e?t:(Pe(t,"iterate",In),Ge(e)?t:t.map(rt))}function Ss(e){return Pe(e=se(e),"iterate",In),e}function mt(e,t){return Tt(e)?sn(At(e)?rt(t):t):rt(t)}const Aa={__proto__:null,[Symbol.iterator](){return Hs(this,Symbol.iterator,e=>mt(this,e))},concat(...e){return Jt(this).concat(...e.map(t=>K(t)?Jt(t):t))},entries(){return Hs(this,"entries",e=>(e[1]=mt(this,e[1]),e))},every(e,t){return vt(this,"every",e,t,void 0,arguments)},filter(e,t){return vt(this,"filter",e,t,n=>n.map(s=>mt(this,s)),arguments)},find(e,t){return vt(this,"find",e,t,n=>mt(this,n),arguments)},findIndex(e,t){return vt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return vt(this,"findLast",e,t,n=>mt(this,n),arguments)},findLastIndex(e,t){return vt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return vt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Vs(this,"includes",e)},indexOf(...e){return Vs(this,"indexOf",e)},join(e){return Jt(this).join(e)},lastIndexOf(...e){return Vs(this,"lastIndexOf",e)},map(e,t){return vt(this,"map",e,t,void 0,arguments)},pop(){return hn(this,"pop")},push(...e){return hn(this,"push",e)},reduce(e,...t){return to(this,"reduce",e,t)},reduceRight(e,...t){return to(this,"reduceRight",e,t)},shift(){return hn(this,"shift")},some(e,t){return vt(this,"some",e,t,void 0,arguments)},splice(...e){return hn(this,"splice",e)},toReversed(){return Jt(this).toReversed()},toSorted(e){return Jt(this).toSorted(e)},toSpliced(...e){return Jt(this).toSpliced(...e)},unshift(...e){return hn(this,"unshift",e)},values(){return Hs(this,"values",e=>mt(this,e))}};function Hs(e,t,n){const s=Ss(e),r=s[t]();return s!==e&&!Ge(e)&&(r._next=r.next,r.next=()=>{const o=r._next();return o.done||(o.value=n(o.value)),o}),r}const Ca=Array.prototype;function vt(e,t,n,s,r,o){const i=Ss(e),l=i!==e&&!Ge(e),a=i[t];if(a!==Ca[t]){const f=a.apply(e,o);return l?rt(f):f}let c=n;i!==e&&(l?c=function(f,h){return n.call(this,mt(e,f),h,e)}:n.length>2&&(c=function(f,h){return n.call(this,f,h,e)}));const u=a.call(i,c,s);return l&&r?r(u):u}function to(e,t,n,s){const r=Ss(e),o=r!==e&&!Ge(e);let i=n,l=!1;r!==e&&(o?(l=s.length===0,i=function(c,u,f){return l&&(l=!1,c=mt(e,c)),n.call(this,c,mt(e,u),f,e)}):n.length>3&&(i=function(c,u,f){return n.call(this,c,u,f,e)}));const a=r[t](i,...s);return l?mt(e,a):a}function Vs(e,t,n){const s=se(e);Pe(s,"iterate",In);const r=s[t](...n);return(r===-1||r===!1)&&Rs(n[0])?(n[0]=se(n[0]),s[t](...n)):r}function hn(e,t,n=[]){Ct(),Cr();const s=se(e)[t].apply(e,n);return Or(),Ot(),s}const Oa=Rr("__proto__,__v_isRef,__isVue"),Di=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ye));function Ta(e){Ye(e)||(e=String(e));const t=se(this);return Pe(t,"has",e),t.hasOwnProperty(e)}class Fi{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(r?o?Ua:Ui:o?Bi:Mi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=K(t);if(!r){let a;if(i&&(a=Aa[n]))return a;if(n==="hasOwnProperty")return Ta}const l=Reflect.get(t,n,me(t)?t:s);if((Ye(n)?Di.has(n):Oa(n))||(r||Pe(t,"get",n),o))return l;if(me(l)){const a=i&&_s(n)?l:l.value;return r&&ae(a)?lr(a):a}return ae(l)?r?lr(l):Un(l):l}}class Li extends Fi{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];const i=K(t)&&_s(n);if(!this._isShallow){const c=Tt(o);if(!Ge(s)&&!Tt(s)&&(o=se(o),s=se(s)),!i&&me(o)&&!me(s))return c||(o.value=s),!0}const l=i?Number(n)e,Wn=e=>Reflect.getPrototypeOf(e);function Da(e,t,n){return function(...s){const r=this.__v_raw,o=se(r),i=en(o),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,c=r[e](...s),u=n?ir:t?sn:rt;return!t&&Pe(o,"iterate",a?or:Kt),Oe(Object.create(c),{next(){const{value:f,done:h}=c.next();return h?{value:f,done:h}:{value:l?[u(f[0]),u(f[1])]:u(f),done:h}}})}}function zn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Fa(e,t){const n={get(r){const o=this.__v_raw,i=se(o),l=se(r);e||(yt(r,l)&&Pe(i,"get",r),Pe(i,"get",l));const{has:a}=Wn(i),c=t?ir:e?sn:rt;if(a.call(i,r))return c(o.get(r));if(a.call(i,l))return c(o.get(l));o!==i&&o.get(r)},get size(){const r=this.__v_raw;return!e&&Pe(se(r),"iterate",Kt),r.size},has(r){const o=this.__v_raw,i=se(o),l=se(r);return e||(yt(r,l)&&Pe(i,"has",r),Pe(i,"has",l)),r===l?o.has(r):o.has(r)||o.has(l)},forEach(r,o){const i=this,l=i.__v_raw,a=se(l),c=t?ir:e?sn:rt;return!e&&Pe(a,"iterate",Kt),l.forEach((u,f)=>r.call(o,c(u),c(f),i))}};return Oe(n,e?{add:zn("add"),set:zn("set"),delete:zn("delete"),clear:zn("clear")}:{add(r){const o=se(this),i=Wn(o),l=se(r),a=!t&&!Ge(r)&&!Tt(r)?l:r;return i.has.call(o,a)||yt(r,a)&&i.has.call(o,r)||yt(l,a)&&i.has.call(o,l)||(o.add(a),Rt(o,"add",a,a)),this},set(r,o){!t&&!Ge(o)&&!Tt(o)&&(o=se(o));const i=se(this),{has:l,get:a}=Wn(i);let c=l.call(i,r);c||(r=se(r),c=l.call(i,r));const u=a.call(i,r);return i.set(r,o),c?yt(o,u)&&Rt(i,"set",r,o):Rt(i,"add",r,o),this},delete(r){const o=se(this),{has:i,get:l}=Wn(o);let a=i.call(o,r);a||(r=se(r),a=i.call(o,r)),l&&l.call(o,r);const c=o.delete(r);return a&&Rt(o,"delete",r,void 0),c},clear(){const r=se(this),o=r.size!==0,i=r.clear();return o&&Rt(r,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=Da(r,e,t)}),n}function Nr(e,t){const n=Fa(e,t);return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(ie(n,r)&&r in s?n:s,r,o)}const La={get:Nr(!1,!1)},Ma={get:Nr(!1,!0)},Ba={get:Nr(!0,!1)};const Mi=new WeakMap,Bi=new WeakMap,Ui=new WeakMap,Ua=new WeakMap;function $a(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ja(e){return e.__v_skip||!Object.isExtensible(e)?0:$a(fa(e))}function Un(e){return Tt(e)?e:Ir(e,!1,Na,La,Mi)}function $i(e){return Ir(e,!1,ka,Ma,Bi)}function lr(e){return Ir(e,!0,Ia,Ba,Ui)}function Ir(e,t,n,s,r){if(!ae(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=ja(e);if(o===0)return e;const i=r.get(e);if(i)return i;const l=new Proxy(e,o===2?s:n);return r.set(e,l),l}function At(e){return Tt(e)?At(e.__v_raw):!!(e&&e.__v_isReactive)}function Tt(e){return!!(e&&e.__v_isReadonly)}function Ge(e){return!!(e&&e.__v_isShallow)}function Rs(e){return e?!!e.__v_raw:!1}function se(e){const t=e&&e.__v_raw;return t?se(t):e}function kr(e){return!ie(e,"__v_skip")&&Object.isExtensible(e)&&_i(e,"__v_skip",!0),e}const rt=e=>ae(e)?Un(e):e,sn=e=>ae(e)?lr(e):e;function me(e){return e?e.__v_isRef===!0:!1}function re(e){return ji(e,!1)}function Ha(e){return ji(e,!0)}function ji(e,t){return me(e)?e:new Va(e,t)}class Va{constructor(t,n){this.dep=new Pr,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:se(t),this._value=n?t:rt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Ge(t)||Tt(t);t=s?t:se(t),yt(t,n)&&(this._rawValue=t,this._value=s?t:rt(t),this.dep.trigger())}}function U(e){return me(e)?e.value:e}const Ka={get:(e,t,n)=>t==="__v_raw"?e:U(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return me(r)&&!me(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Hi(e){return At(e)?e:new Proxy(e,Ka)}function qa(e){const t=K(e)?new Array(e.length):{};for(const n in e)t[n]=Wa(e,n);return t}class Ga{constructor(t,n,s){this._object=t,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._key=Ye(n)?n:String(n),this._raw=se(t);let r=!0,o=t;if(!K(t)||Ye(this._key)||!_s(this._key))do r=!Rs(o)||Ge(o);while(r&&(o=o.__v_raw));this._shallow=r}get value(){let t=this._object[this._key];return this._shallow&&(t=U(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&me(this._raw[this._key])){const n=this._object[this._key];if(me(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return xa(this._raw,this._key)}}function Wa(e,t,n){return new Ga(e,t,n)}class za{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Pr(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Nn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&pe!==this)return Oi(this,!0),!0}get value(){const t=this.dep.track();return Ni(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Ja(e,t,n=!1){let s,r;return Q(e)?s=e:(s=e.get,r=e.set),new za(s,r,n)}const Jn={},rs=new WeakMap;let $t;function Qa(e,t=!1,n=$t){if(n){let s=rs.get(n);s||rs.set(n,s=[]),s.push(e)}}function Xa(e,t,n=ue){const{immediate:s,deep:r,once:o,scheduler:i,augmentJob:l,call:a}=n,c=R=>r?R:Ge(R)||r===!1||r===0?xt(R,1):xt(R);let u,f,h,m,g=!1,_=!1;if(me(e)?(f=()=>e.value,g=Ge(e)):At(e)?(f=()=>c(e),g=!0):K(e)?(_=!0,g=e.some(R=>At(R)||Ge(R)),f=()=>e.map(R=>{if(me(R))return R.value;if(At(R))return c(R);if(Q(R))return a?a(R,2):R()})):Q(e)?t?f=a?()=>a(e,2):e:f=()=>{if(h){Ct();try{h()}finally{Ot()}}const R=$t;$t=u;try{return a?a(e,3,[m]):e(m)}finally{$t=R}}:f=bt,t&&r){const R=f,B=r===!0?1/0:r;f=()=>xt(R(),B)}const v=xi(),k=()=>{u.stop(),v&&v.active&&xr(v.effects,u)};if(o&&t){const R=t;t=(...B)=>{R(...B),k()}}let T=_?new Array(e.length).fill(Jn):Jn;const O=R=>{if(!(!(u.flags&1)||!u.dirty&&!R))if(t){const B=u.run();if(r||g||(_?B.some((le,z)=>yt(le,T[z])):yt(B,T))){h&&h();const le=$t;$t=u;try{const z=[B,T===Jn?void 0:_&&T[0]===Jn?[]:T,m];T=B,a?a(t,3,z):t(...z)}finally{$t=le}}}else u.run()};return l&&l(O),u=new Ai(f),u.scheduler=i?()=>i(O,!1):O,m=R=>Qa(R,!1,u),h=u.onStop=()=>{const R=rs.get(u);if(R){if(a)a(R,4);else for(const B of R)B();rs.delete(u)}},t?s?O(!0):T=u.run():i?i(O.bind(null,!0),!0):u.run(),k.pause=u.pause.bind(u),k.resume=u.resume.bind(u),k.stop=k,k}function xt(e,t=1/0,n){if(t<=0||!ae(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,me(e))xt(e.value,t,n);else if(K(e))for(let s=0;s{xt(s,t,n)});else if(yi(e)){for(const s in e)xt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&xt(e[s],t,n)}return e}/** * @vue/runtime-core v3.5.31 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function $n(e,t,n,s){try{return s?e(...s):e()}catch(r){xs(r,t,n)}}function _t(e,t,n,s){if(Q(e)){const r=$n(e,t,n,s);return r&&mi(r)&&r.catch(o=>{xs(o,t,n)}),r}if(K(e)){const r=[];for(let o=0;o>>1,r=Fe[s],o=kn(r);o=kn(n)?Fe.push(e):Fe.splice(Za(t),0,e),e.flags|=1,Ki()}}function Ki(){os||(os=Vi.then(Gi))}function ec(e){K(e)?tn.push(...e):Dt&&e.id===-1?Dt.splice(Xt+1,0,e):e.flags&1||(tn.push(e),e.flags|=1),Ki()}function no(e,t,n=ht+1){for(;nkn(n)-kn(s));if(tn.length=0,Dt){Dt.push(...t);return}for(Dt=t,Xt=0;Xte.id==null?e.flags&2?-1:1/0:e.id;function Gi(e){try{for(ht=0;ht{s._d&&cs(-1);const o=is(t);let i;try{i=e(...r)}finally{is(o),s._d&&cs(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function so(e,t){if(Xe===null)return e;const n=Ns(Xe),s=e.dirs||(e.dirs=[]);for(let r=0;r1)return n&&Q(t)?t.call(s&&s.proxy):t}}function tc(){return!!(bl()||Gt)}const nc=Symbol.for("v-scx"),sc=()=>We(nc);function qt(e,t,n){return zi(e,t,n)}function zi(e,t,n=ue){const{immediate:s,deep:r,flush:o,once:i}=n,l=Oe({},n),a=t&&s||!t&&o!=="post";let c;if(Fn){if(o==="sync"){const m=sc();c=m.__watcherHandles||(m.__watcherHandles=[])}else if(!a){const m=()=>{};return m.stop=bt,m.resume=bt,m.pause=bt,m}}const u=Me;l.call=(m,g,_)=>_t(m,u,g,_);let f=!1;o==="post"?l.scheduler=m=>{Ue(m,u&&u.suspense)}:o!=="sync"&&(f=!0,l.scheduler=(m,g)=>{g?m():Dr(m)}),l.augmentJob=m=>{t&&(m.flags|=4),f&&(m.flags|=2,u&&(m.id=u.uid,m.i=u))};const h=Xa(e,t,l);return Fn&&(c?c.push(h):a&&h()),h}function rc(e,t,n){const s=this.proxy,r=we(e)?e.includes(".")?Ji(s,e):()=>s[e]:e.bind(s,s);let o;Q(t)?o=t:(o=t.handler,n=t);const i=jn(this),l=zi(r,o.bind(s),n);return i(),l}function Ji(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;re.__isTeleport,lc=Symbol("_leaveCb");function Fr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Fr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Pt(e,t){return Q(e)?Oe({name:e.name},t,{setup:e}):e}function Qi(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function ro(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const ls=new WeakMap;function Rn(e,t,n,s,r=!1){if(K(e)){e.forEach((_,v)=>Rn(_,t&&(K(t)?t[v]:t),n,s,r));return}if(xn(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&Rn(e,t,n,s.component.subTree);return}const o=s.shapeFlag&4?Ns(s.component):s.el,i=r?null:o,{i:l,r:a}=e,c=t&&t.r,u=l.refs===ue?l.refs={}:l.refs,f=l.setupState,h=se(f),m=f===ue?hi:_=>ro(u,_)?!1:ie(h,_),g=(_,v)=>!(v&&ro(u,v));if(c!=null&&c!==a){if(oo(t),we(c))u[c]=null,m(c)&&(f[c]=null);else if(me(c)){const _=t;g(c,_.k)&&(c.value=null),_.k&&(u[_.k]=null)}}if(Q(a))$n(a,l,12,[i,u]);else{const _=we(a),v=me(a);if(_||v){const k=()=>{if(e.f){const T=_?m(a)?f[a]:u[a]:g()||!e.k?a.value:u[e.k];if(r)K(T)&&xr(T,o);else if(K(T))T.includes(o)||T.push(o);else if(_)u[a]=[o],m(a)&&(f[a]=u[a]);else{const O=[o];g(a,e.k)&&(a.value=O),e.k&&(u[e.k]=O)}}else _?(u[a]=i,m(a)&&(f[a]=i)):v&&(g(a,e.k)&&(a.value=i),e.k&&(u[e.k]=i))};if(i){const T=()=>{k(),ls.delete(e)};T.id=-1,ls.set(e,T),Ue(T,n)}else oo(e),k()}}}function oo(e){const t=ls.get(e);t&&(t.flags|=8,ls.delete(e))}Es().requestIdleCallback;Es().cancelIdleCallback;const xn=e=>!!e.type.__asyncLoader,Xi=e=>e.type.__isKeepAlive;function ac(e,t){Yi(e,"a",t)}function cc(e,t){Yi(e,"da",t)}function Yi(e,t,n=Me){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(As(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Xi(r.parent.vnode)&&uc(s,t,n,r),r=r.parent}}function uc(e,t,n,s){const r=As(t,e,s,!0);Lr(()=>{xr(s[t],r)},n)}function As(e,t,n=Me,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{Ct();const l=jn(n),a=_t(t,n,e,i);return l(),Ot(),a});return s?r.unshift(o):r.push(o),o}}const Nt=e=>(t,n=Me)=>{(!Fn||e==="sp")&&As(e,(...s)=>t(...s),n)},fc=Nt("bm"),Cs=Nt("m"),dc=Nt("bu"),pc=Nt("u"),hc=Nt("bum"),Lr=Nt("um"),mc=Nt("sp"),gc=Nt("rtg"),yc=Nt("rtc");function bc(e,t=Me){As("ec",e,t)}const _c=Symbol.for("v-ndc");function on(e,t,n,s){let r;const o=n,i=K(e);if(i||we(e)){const l=i&&At(e);let a=!1,c=!1;l&&(a=!Ge(e),c=Tt(e),e=Ss(e)),r=new Array(e.length);for(let u=0,f=e.length;ut(l,a,void 0,o));else{const l=Object.keys(e);r=new Array(l.length);for(let a=0,c=l.length;ae?_l(e)?Ns(e):ar(e.parent):null,An=Oe(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ar(e.parent),$root:e=>ar(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>el(e),$forceUpdate:e=>e.f||(e.f=()=>{Dr(e.update)}),$nextTick:e=>e.n||(e.n=rn.bind(e.proxy)),$watch:e=>rc.bind(e)}),Ks=(e,t)=>e!==ue&&!e.__isScriptSetup&&ie(e,t),vc={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:l,appContext:a}=e;if(t[0]!=="$"){const h=i[t];if(h!==void 0)switch(h){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(Ks(s,t))return i[t]=1,s[t];if(r!==ue&&ie(r,t))return i[t]=2,r[t];if(ie(o,t))return i[t]=3,o[t];if(n!==ue&&ie(n,t))return i[t]=4,n[t];cr&&(i[t]=0)}}const c=An[t];let u,f;if(c)return t==="$attrs"&&Pe(e.attrs,"get",""),c(e);if((u=l.__cssModules)&&(u=u[t]))return u;if(n!==ue&&ie(n,t))return i[t]=4,n[t];if(f=a.config.globalProperties,ie(f,t))return f[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return Ks(r,t)?(r[t]=n,!0):s!==ue&&ie(s,t)?(s[t]=n,!0):ie(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,props:o,type:i}},l){let a;return!!(n[l]||e!==ue&&l[0]!=="$"&&ie(e,l)||Ks(t,l)||ie(o,l)||ie(s,l)||ie(An,l)||ie(r.config.globalProperties,l)||(a=i.__cssModules)&&a[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ie(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function io(e){return K(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let cr=!0;function wc(e){const t=el(e),n=e.proxy,s=e.ctx;cr=!1,t.beforeCreate&&lo(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:l,provide:a,inject:c,created:u,beforeMount:f,mounted:h,beforeUpdate:m,updated:g,activated:_,deactivated:v,beforeDestroy:k,beforeUnmount:T,destroyed:O,unmounted:R,render:B,renderTracked:le,renderTriggered:z,errorCaptured:Y,serverPrefetch:X,expose:fe,inheritAttrs:Re,components:xe,directives:_e,filters:Ie}=t;if(c&&Ec(c,s,null),i)for(const W in i){const ee=i[W];Q(ee)&&(s[W]=ee.bind(n))}if(r){const W=r.call(n,n);ae(W)&&(e.data=Un(W))}if(cr=!0,o)for(const W in o){const ee=o[W],ze=Q(ee)?ee.bind(n,n):Q(ee.get)?ee.get.bind(n,n):bt,lt=!Q(ee)&&Q(ee.set)?ee.set.bind(n):bt,Ee=Be({get:ze,set:lt});Object.defineProperty(s,W,{enumerable:!0,configurable:!0,get:()=>Ee.value,set:ge=>Ee.value=ge})}if(l)for(const W in l)Zi(l[W],s,n,W);if(a){const W=Q(a)?a.call(n):a;Reflect.ownKeys(W).forEach(ee=>{Sn(ee,W[ee])})}u&&lo(u,e,"c");function Z(W,ee){K(ee)?ee.forEach(ze=>W(ze.bind(n))):ee&&W(ee.bind(n))}if(Z(fc,f),Z(Cs,h),Z(dc,m),Z(pc,g),Z(ac,_),Z(cc,v),Z(bc,Y),Z(yc,le),Z(gc,z),Z(hc,T),Z(Lr,R),Z(mc,X),K(fe))if(fe.length){const W=e.exposed||(e.exposed={});fe.forEach(ee=>{Object.defineProperty(W,ee,{get:()=>n[ee],set:ze=>n[ee]=ze,enumerable:!0})})}else e.exposed||(e.exposed={});B&&e.render===bt&&(e.render=B),Re!=null&&(e.inheritAttrs=Re),xe&&(e.components=xe),_e&&(e.directives=_e),X&&Qi(e)}function Ec(e,t,n=bt){K(e)&&(e=ur(e));for(const s in e){const r=e[s];let o;ae(r)?"default"in r?o=We(r.from||s,r.default,!0):o=We(r.from||s):o=We(r),me(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[s]=o}}function lo(e,t,n){_t(K(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Zi(e,t,n,s){let r=s.includes(".")?Ji(n,s):()=>n[s];if(we(e)){const o=t[e];Q(o)&&qt(r,o)}else if(Q(e))qt(r,e.bind(n));else if(ae(e))if(K(e))e.forEach(o=>Zi(o,t,n,s));else{const o=Q(e.handler)?e.handler.bind(n):t[e.handler];Q(o)&&qt(r,o,e)}}function el(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let a;return l?a=l:!r.length&&!n&&!s?a=t:(a={},r.length&&r.forEach(c=>as(a,c,i,!0)),as(a,t,i)),ae(t)&&o.set(t,a),a}function as(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&as(e,o,n,!0),r&&r.forEach(i=>as(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const l=Sc[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const Sc={data:ao,props:co,emits:co,methods:bn,computed:bn,beforeCreate:ke,created:ke,beforeMount:ke,mounted:ke,beforeUpdate:ke,updated:ke,beforeDestroy:ke,beforeUnmount:ke,destroyed:ke,unmounted:ke,activated:ke,deactivated:ke,errorCaptured:ke,serverPrefetch:ke,components:bn,directives:bn,watch:xc,provide:ao,inject:Rc};function ao(e,t){return t?e?function(){return Oe(Q(e)?e.call(this,this):e,Q(t)?t.call(this,this):t)}:t:e}function Rc(e,t){return bn(ur(e),ur(t))}function ur(e){if(K(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${nt(t)}Modifiers`]||e[`${Mt(t)}Modifiers`];function Tc(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||ue;let r=n;const o=t.startsWith("update:"),i=o&&Oc(s,t.slice(7));i&&(i.trim&&(r=n.map(u=>we(u)?u.trim():u)),i.number&&(r=n.map(ws)));let l,a=s[l=Us(t)]||s[l=Us(nt(t))];!a&&o&&(a=s[l=Us(Mt(t))]),a&&_t(a,e,6,r);const c=s[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,_t(c,e,6,r)}}const Pc=new WeakMap;function nl(e,t,n=!1){const s=n?Pc:t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},l=!1;if(!Q(e)){const a=c=>{const u=nl(c,t,!0);u&&(l=!0,Oe(i,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!o&&!l?(ae(e)&&s.set(e,null),null):(K(o)?o.forEach(a=>i[a]=null):Oe(i,o),ae(e)&&s.set(e,i),i)}function Os(e,t){return!e||!gs(t)?!1:(t=t.slice(2).replace(/Once$/,""),ie(e,t[0].toLowerCase()+t.slice(1))||ie(e,Mt(t))||ie(e,t))}function uo(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[o],slots:i,attrs:l,emit:a,render:c,renderCache:u,props:f,data:h,setupState:m,ctx:g,inheritAttrs:_}=e,v=is(e);let k,T;try{if(n.shapeFlag&4){const R=r||s,B=R;k=gt(c.call(B,R,u,f,m,h,g)),T=l}else{const R=t;k=gt(R.length>1?R(f,{attrs:l,slots:i,emit:a}):R(f,null)),T=t.props?l:Nc(l)}}catch(R){Cn.length=0,xs(R,e,1),k=Ae(Lt)}let O=k;if(T&&_!==!1){const R=Object.keys(T),{shapeFlag:B}=O;R.length&&B&7&&(o&&R.some(ys)&&(T=Ic(T,o)),O=ln(O,T,!1,!0))}return n.dirs&&(O=ln(O,null,!1,!0),O.dirs=O.dirs?O.dirs.concat(n.dirs):n.dirs),n.transition&&Fr(O,n.transition),k=O,is(v),k}const Nc=e=>{let t;for(const n in e)(n==="class"||n==="style"||gs(n))&&((t||(t={}))[n]=e[n]);return t},Ic=(e,t)=>{const n={};for(const s in e)(!ys(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function kc(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:l,patchFlag:a}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return s?fo(s,i,c):!!i;if(a&8){const u=t.dynamicProps;for(let f=0;fObject.create(rl),il=e=>Object.getPrototypeOf(e)===rl;function Fc(e,t,n,s=!1){const r={},o=ol();e.propsDefaults=Object.create(null),ll(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=s?r:$i(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function Lc(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,l=se(r),[a]=e.propsOptions;let c=!1;if((s||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let f=0;f{a=!0;const[h,m]=al(f,t,!0);Oe(i,h),m&&l.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!a)return ae(e)&&s.set(e,Zt),Zt;if(K(o))for(let u=0;ue==="_"||e==="_ctx"||e==="$stable",Br=e=>K(e)?e.map(gt):[gt(e)],Bc=(e,t,n)=>{if(t._n)return t;const s=En((...r)=>Br(t(...r)),n);return s._c=!1,s},cl=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Mr(r))continue;const o=e[r];if(Q(o))t[r]=Bc(r,o,s);else if(o!=null){const i=Br(o);t[r]=()=>i}}},ul=(e,t)=>{const n=Br(t);e.slots.default=()=>n},fl=(e,t,n)=>{for(const s in t)(n||!Mr(s))&&(e[s]=t[s])},Uc=(e,t,n)=>{const s=e.slots=ol();if(e.vnode.shapeFlag&32){const r=t._;r?(fl(s,t,n),n&&_i(s,"_",r,!0)):cl(t,s)}else t&&ul(e,t)},$c=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=ue;if(s.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:fl(r,t,n):(o=!t.$stable,cl(t,r)),i=t}else t&&(ul(e,t),i={default:1});if(o)for(const l in r)!Mr(l)&&i[l]==null&&delete r[l]},Ue=qc;function jc(e){return Hc(e)}function Hc(e,t){const n=Es();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:l,createComment:a,setText:c,setElementText:u,parentNode:f,nextSibling:h,setScopeId:m=bt,insertStaticContent:g}=e,_=(d,p,y,w=null,A=null,S=null,I=void 0,N=null,P=!!p.dynamicChildren)=>{if(d===p)return;d&&!mn(d,p)&&(w=x(d),ge(d,A,S,!0),d=null),p.patchFlag===-2&&(P=!1,p.dynamicChildren=null);const{type:C,ref:V,shapeFlag:F}=p;switch(C){case Ts:v(d,p,y,w);break;case Lt:k(d,p,y,w);break;case Gs:d==null&&T(p,y,w,I);break;case Le:xe(d,p,y,w,A,S,I,N,P);break;default:F&1?B(d,p,y,w,A,S,I,N,P):F&6?_e(d,p,y,w,A,S,I,N,P):(F&64||F&128)&&C.process(d,p,y,w,A,S,I,N,P,j)}V!=null&&A?Rn(V,d&&d.ref,S,p||d,!p):V==null&&d&&d.ref!=null&&Rn(d.ref,null,S,d,!0)},v=(d,p,y,w)=>{if(d==null)s(p.el=l(p.children),y,w);else{const A=p.el=d.el;p.children!==d.children&&c(A,p.children)}},k=(d,p,y,w)=>{d==null?s(p.el=a(p.children||""),y,w):p.el=d.el},T=(d,p,y,w)=>{[d.el,d.anchor]=g(d.children,p,y,w,d.el,d.anchor)},O=({el:d,anchor:p},y,w)=>{let A;for(;d&&d!==p;)A=h(d),s(d,y,w),d=A;s(p,y,w)},R=({el:d,anchor:p})=>{let y;for(;d&&d!==p;)y=h(d),r(d),d=y;r(p)},B=(d,p,y,w,A,S,I,N,P)=>{if(p.type==="svg"?I="svg":p.type==="math"&&(I="mathml"),d==null)le(p,y,w,A,S,I,N,P);else{const C=d.el&&d.el._isVueCE?d.el:null;try{C&&C._beginPatch(),X(d,p,A,S,I,N,P)}finally{C&&C._endPatch()}}},le=(d,p,y,w,A,S,I,N)=>{let P,C;const{props:V,shapeFlag:F,transition:H,dirs:G}=d;if(P=d.el=i(d.type,S,V&&V.is,V),F&8?u(P,d.children):F&16&&Y(d.children,P,null,w,A,qs(d,S),I,N),G&&Bt(d,null,w,"created"),z(P,d,d.scopeId,I,w),V){for(const ce in V)ce!=="value"&&!_n(ce)&&o(P,ce,null,V[ce],S,w);"value"in V&&o(P,"value",null,V.value,S),(C=V.onVnodeBeforeMount)&&pt(C,w,d)}G&&Bt(d,null,w,"beforeMount");const ne=Vc(A,H);ne&&H.beforeEnter(P),s(P,p,y),((C=V&&V.onVnodeMounted)||ne||G)&&Ue(()=>{try{C&&pt(C,w,d),ne&&H.enter(P),G&&Bt(d,null,w,"mounted")}finally{}},A)},z=(d,p,y,w,A)=>{if(y&&m(d,y),w)for(let S=0;S{for(let C=P;C{const N=p.el=d.el;let{patchFlag:P,dynamicChildren:C,dirs:V}=p;P|=d.patchFlag&16;const F=d.props||ue,H=p.props||ue;let G;if(y&&Ut(y,!1),(G=H.onVnodeBeforeUpdate)&&pt(G,y,p,d),V&&Bt(p,d,y,"beforeUpdate"),y&&Ut(y,!0),(F.innerHTML&&H.innerHTML==null||F.textContent&&H.textContent==null)&&u(N,""),C?fe(d.dynamicChildren,C,N,y,w,qs(p,A),S):I||ee(d,p,N,null,y,w,qs(p,A),S,!1),P>0){if(P&16)Re(N,F,H,y,A);else if(P&2&&F.class!==H.class&&o(N,"class",null,H.class,A),P&4&&o(N,"style",F.style,H.style,A),P&8){const ne=p.dynamicProps;for(let ce=0;ce{G&&pt(G,y,p,d),V&&Bt(p,d,y,"updated")},w)},fe=(d,p,y,w,A,S,I)=>{for(let N=0;N{if(p!==y){if(p!==ue)for(const S in p)!_n(S)&&!(S in y)&&o(d,S,p[S],null,A,w);for(const S in y){if(_n(S))continue;const I=y[S],N=p[S];I!==N&&S!=="value"&&o(d,S,N,I,A,w)}"value"in y&&o(d,"value",p.value,y.value,A)}},xe=(d,p,y,w,A,S,I,N,P)=>{const C=p.el=d?d.el:l(""),V=p.anchor=d?d.anchor:l("");let{patchFlag:F,dynamicChildren:H,slotScopeIds:G}=p;G&&(N=N?N.concat(G):G),d==null?(s(C,y,w),s(V,y,w),Y(p.children||[],y,V,A,S,I,N,P)):F>0&&F&64&&H&&d.dynamicChildren&&d.dynamicChildren.length===H.length?(fe(d.dynamicChildren,H,y,A,S,I,N),(p.key!=null||A&&p===A.subTree)&&dl(d,p,!0)):ee(d,p,y,V,A,S,I,N,P)},_e=(d,p,y,w,A,S,I,N,P)=>{p.slotScopeIds=N,d==null?p.shapeFlag&512?A.ctx.activate(p,y,w,I,P):Ie(p,y,w,A,S,I,P):Ze(d,p,P)},Ie=(d,p,y,w,A,S,I)=>{const N=d.component=Yc(d,w,A);if(Xi(d)&&(N.ctx.renderer=j),Zc(N,!1,I),N.asyncDep){if(A&&A.registerDep(N,Z,I),!d.el){const P=N.subTree=Ae(Lt);k(null,P,p,y),d.placeholder=P.el}}else Z(N,d,p,y,A,S,I)},Ze=(d,p,y)=>{const w=p.component=d.component;if(kc(d,p,y))if(w.asyncDep&&!w.asyncResolved){W(w,p,y);return}else w.next=p,w.update();else p.el=d.el,w.vnode=p},Z=(d,p,y,w,A,S,I)=>{const N=()=>{if(d.isMounted){let{next:F,bu:H,u:G,parent:ne,vnode:ce}=d;{const ft=pl(d);if(ft){F&&(F.el=ce.el,W(d,F,I)),ft.asyncDep.then(()=>{Ue(()=>{d.isUnmounted||C()},A)});return}}let de=F,ve;Ut(d,!1),F?(F.el=ce.el,W(d,F,I)):F=ce,H&&Xn(H),(ve=F.props&&F.props.onVnodeBeforeUpdate)&&pt(ve,ne,F,ce),Ut(d,!0);const Ce=uo(d),ut=d.subTree;d.subTree=Ce,_(ut,Ce,f(ut.el),x(ut),d,A,S),F.el=Ce.el,de===null&&Dc(d,Ce.el),G&&Ue(G,A),(ve=F.props&&F.props.onVnodeUpdated)&&Ue(()=>pt(ve,ne,F,ce),A)}else{let F;const{el:H,props:G}=p,{bm:ne,m:ce,parent:de,root:ve,type:Ce}=d,ut=xn(p);Ut(d,!1),ne&&Xn(ne),!ut&&(F=G&&G.onVnodeBeforeMount)&&pt(F,de,p),Ut(d,!0);{ve.ce&&ve.ce._hasShadowRoot()&&ve.ce._injectChildStyle(Ce,d.parent?d.parent.type:void 0);const ft=d.subTree=uo(d);_(null,ft,y,w,d,A,S),p.el=ft.el}if(ce&&Ue(ce,A),!ut&&(F=G&&G.onVnodeMounted)){const ft=p;Ue(()=>pt(F,de,ft),A)}(p.shapeFlag&256||de&&xn(de.vnode)&&de.vnode.shapeFlag&256)&&d.a&&Ue(d.a,A),d.isMounted=!0,p=y=w=null}};d.scope.on();const P=d.effect=new Ai(N);d.scope.off();const C=d.update=P.run.bind(P),V=d.job=P.runIfDirty.bind(P);V.i=d,V.id=d.uid,P.scheduler=()=>Dr(V),Ut(d,!0),C()},W=(d,p,y)=>{p.component=d;const w=d.vnode.props;d.vnode=p,d.next=null,Lc(d,p.props,w,y),$c(d,p.children,y),Ct(),no(d),Ot()},ee=(d,p,y,w,A,S,I,N,P=!1)=>{const C=d&&d.children,V=d?d.shapeFlag:0,F=p.children,{patchFlag:H,shapeFlag:G}=p;if(H>0){if(H&128){lt(C,F,y,w,A,S,I,N,P);return}else if(H&256){ze(C,F,y,w,A,S,I,N,P);return}}G&8?(V&16&&Je(C,A,S),F!==C&&u(y,F)):V&16?G&16?lt(C,F,y,w,A,S,I,N,P):Je(C,A,S,!0):(V&8&&u(y,""),G&16&&Y(F,y,w,A,S,I,N,P))},ze=(d,p,y,w,A,S,I,N,P)=>{d=d||Zt,p=p||Zt;const C=d.length,V=p.length,F=Math.min(C,V);let H;for(H=0;HV?Je(d,A,S,!0,!1,F):Y(p,y,w,A,S,I,N,P,F)},lt=(d,p,y,w,A,S,I,N,P)=>{let C=0;const V=p.length;let F=d.length-1,H=V-1;for(;C<=F&&C<=H;){const G=d[C],ne=p[C]=P?St(p[C]):gt(p[C]);if(mn(G,ne))_(G,ne,y,null,A,S,I,N,P);else break;C++}for(;C<=F&&C<=H;){const G=d[F],ne=p[H]=P?St(p[H]):gt(p[H]);if(mn(G,ne))_(G,ne,y,null,A,S,I,N,P);else break;F--,H--}if(C>F){if(C<=H){const G=H+1,ne=GH)for(;C<=F;)ge(d[C],A,S,!0),C++;else{const G=C,ne=C,ce=new Map;for(C=ne;C<=H;C++){const He=p[C]=P?St(p[C]):gt(p[C]);He.key!=null&&ce.set(He.key,C)}let de,ve=0;const Ce=H-ne+1;let ut=!1,ft=0;const pn=new Array(Ce);for(C=0;C=Ce){ge(He,A,S,!0);continue}let dt;if(He.key!=null)dt=ce.get(He.key);else for(de=ne;de<=H;de++)if(pn[de-ne]===0&&mn(He,p[de])){dt=de;break}dt===void 0?ge(He,A,S,!0):(pn[dt-ne]=C+1,dt>=ft?ft=dt:ut=!0,_(He,p[dt],y,null,A,S,I,N,P),ve++)}const Jr=ut?Kc(pn):Zt;for(de=Jr.length-1,C=Ce-1;C>=0;C--){const He=ne+C,dt=p[He],Qr=p[He+1],Xr=He+1{const{el:S,type:I,transition:N,children:P,shapeFlag:C}=d;if(C&6){Ee(d.component.subTree,p,y,w);return}if(C&128){d.suspense.move(p,y,w);return}if(C&64){I.move(d,p,y,j);return}if(I===Le){s(S,p,y);for(let F=0;FN.enter(S),A);else{const{leave:F,delayLeave:H,afterLeave:G}=N,ne=()=>{d.ctx.isUnmounted?r(S):s(S,p,y)},ce=()=>{S._isLeaving&&S[lc](!0),F(S,()=>{ne(),G&&G()})};H?H(S,ne,ce):ce()}else s(S,p,y)},ge=(d,p,y,w=!1,A=!1)=>{const{type:S,props:I,ref:N,children:P,dynamicChildren:C,shapeFlag:V,patchFlag:F,dirs:H,cacheIndex:G,memo:ne}=d;if(F===-2&&(A=!1),N!=null&&(Ct(),Rn(N,null,y,d,!0),Ot()),G!=null&&(p.renderCache[G]=void 0),V&256){p.ctx.deactivate(d);return}const ce=V&1&&H,de=!xn(d);let ve;if(de&&(ve=I&&I.onVnodeBeforeUnmount)&&pt(ve,p,d),V&6)ct(d.component,y,w);else{if(V&128){d.suspense.unmount(y,w);return}ce&&Bt(d,null,p,"beforeUnmount"),V&64?d.type.remove(d,p,y,j,w):C&&!C.hasOnce&&(S!==Le||F>0&&F&64)?Je(C,p,y,!1,!0):(S===Le&&F&384||!A&&V&16)&&Je(P,p,y),w&&at(d)}const Ce=ne!=null&&G==null;(de&&(ve=I&&I.onVnodeUnmounted)||ce||Ce)&&Ue(()=>{ve&&pt(ve,p,d),ce&&Bt(d,null,p,"unmounted"),Ce&&(d.el=null)},y)},at=d=>{const{type:p,el:y,anchor:w,transition:A}=d;if(p===Le){et(y,w);return}if(p===Gs){R(d);return}const S=()=>{r(y),A&&!A.persisted&&A.afterLeave&&A.afterLeave()};if(d.shapeFlag&1&&A&&!A.persisted){const{leave:I,delayLeave:N}=A,P=()=>I(y,S);N?N(d.el,S,P):P()}else S()},et=(d,p)=>{let y;for(;d!==p;)y=h(d),r(d),d=y;r(p)},ct=(d,p,y)=>{const{bum:w,scope:A,job:S,subTree:I,um:N,m:P,a:C}=d;ho(P),ho(C),w&&Xn(w),A.stop(),S&&(S.flags|=8,ge(I,d,p,y)),N&&Ue(N,p),Ue(()=>{d.isUnmounted=!0},p)},Je=(d,p,y,w=!1,A=!1,S=0)=>{for(let I=S;I{if(d.shapeFlag&6)return x(d.component.subTree);if(d.shapeFlag&128)return d.suspense.next();const p=h(d.anchor||d.el),y=p&&p[oc];return y?h(y):p};let L=!1;const D=(d,p,y)=>{let w;d==null?p._vnode&&(ge(p._vnode,null,null,!0),w=p._vnode.component):_(p._vnode||null,d,p,null,null,null,y),p._vnode=d,L||(L=!0,no(w),qi(),L=!1)},j={p:_,um:ge,m:Ee,r:at,mt:Ie,mc:Y,pc:ee,pbc:fe,n:x,o:e};return{render:D,hydrate:void 0,createApp:Cc(D)}}function qs({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Ut({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Vc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function dl(e,t,n=!1){const s=e.children,r=t.children;if(K(s)&&K(r))for(let o=0;o>1,e[n[l]]0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function pl(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:pl(t)}function ho(e){if(e)for(let t=0;te.__isSuspense;function qc(e,t){t&&t.pendingBranch?K(e)?t.effects.push(...e):t.effects.push(e):ec(e)}const Le=Symbol.for("v-fgt"),Ts=Symbol.for("v-txt"),Lt=Symbol.for("v-cmt"),Gs=Symbol.for("v-stc"),Cn=[];let Ke=null;function M(e=!1){Cn.push(Ke=e?null:[])}function Gc(){Cn.pop(),Ke=Cn[Cn.length-1]||null}let Dn=1;function cs(e,t=!1){Dn+=e,e<0&&Ke&&t&&(Ke.hasOnce=!0)}function gl(e){return e.dynamicChildren=Dn>0?Ke||Zt:null,Gc(),Dn>0&&Ke&&Ke.push(e),e}function $(e,t,n,s,r,o){return gl(E(e,t,n,s,r,o,!0))}function Ps(e,t,n,s,r){return gl(Ae(e,t,n,s,r,!0))}function us(e){return e?e.__v_isVNode===!0:!1}function mn(e,t){return e.type===t.type&&e.key===t.key}const yl=({key:e})=>e??null,Yn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?we(e)||me(e)||Q(e)?{i:Xe,r:e,k:t,f:!!n}:e:null);function E(e,t=null,n=null,s=0,r=null,o=e===Le?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&yl(t),ref:t&&Yn(t),scopeId:Wi,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Xe};return l?(Ur(a,n),o&128&&e.normalize(a)):n&&(a.shapeFlag|=we(n)?8:16),Dn>0&&!i&&Ke&&(a.patchFlag>0||o&6)&&a.patchFlag!==32&&Ke.push(a),a}const Ae=Wc;function Wc(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===_c)&&(e=Lt),us(e)){const l=ln(e,t,!0);return n&&Ur(l,n),Dn>0&&!o&&Ke&&(l.shapeFlag&6?Ke[Ke.indexOf(e)]=l:Ke.push(l)),l.patchFlag=-2,l}if(su(e)&&(e=e.__vccOpts),t){t=zc(t);let{class:l,style:a}=t;l&&!we(l)&&(t.class=Ve(l)),ae(a)&&(Rs(a)&&!K(a)&&(a=Oe({},a)),t.style=Ar(a))}const i=we(e)?1:ml(e)?128:ic(e)?64:ae(e)?4:Q(e)?2:0;return E(e,t,n,s,r,i,o,!0)}function zc(e){return e?Rs(e)||il(e)?Oe({},e):e:null}function ln(e,t,n=!1,s=!1){const{props:r,ref:o,patchFlag:i,children:l,transition:a}=e,c=t?Jc(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&yl(c),ref:t&&t.ref?n&&o?K(o)?o.concat(Yn(t)):[o,Yn(t)]:Yn(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Le?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ln(e.ssContent),ssFallback:e.ssFallback&&ln(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&s&&Fr(u,a.clone(u)),u}function qe(e=" ",t=0){return Ae(Ts,null,e,t)}function ye(e="",t=!1){return t?(M(),Ps(Lt,null,e)):Ae(Lt,null,e)}function gt(e){return e==null||typeof e=="boolean"?Ae(Lt):K(e)?Ae(Le,null,e.slice()):us(e)?St(e):Ae(Ts,null,String(e))}function St(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ln(e)}function Ur(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(K(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),Ur(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!il(t)?t._ctx=Xe:r===3&&Xe&&(Xe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Q(t)?(t={default:t,_ctx:Xe},n=32):(t=String(t),s&64?(n=16,t=[qe(t)]):n=8);e.children=t,e.shapeFlag|=n}function Jc(...e){const t={};for(let n=0;nMe||Xe;let fs,dr;{const e=Es(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),o=>{r.length>1?r.forEach(i=>i(o)):r[0](o)}};fs=t("__VUE_INSTANCE_SETTERS__",n=>Me=n),dr=t("__VUE_SSR_SETTERS__",n=>Fn=n)}const jn=e=>{const t=Me;return fs(e),e.scope.on(),()=>{e.scope.off(),fs(t)}},mo=()=>{Me&&Me.scope.off(),fs(null)};function _l(e){return e.vnode.shapeFlag&4}let Fn=!1;function Zc(e,t=!1,n=!1){t&&dr(t);const{props:s,children:r}=e.vnode,o=_l(e);Fc(e,s,o,t),Uc(e,r,n||t);const i=o?eu(e,t):void 0;return t&&dr(!1),i}function eu(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,vc);const{setup:s}=n;if(s){Ct();const r=e.setupContext=s.length>1?nu(e):null,o=jn(e),i=$n(s,e,0,[e.props,r]),l=mi(i);if(Ot(),o(),(l||e.sp)&&!xn(e)&&Qi(e),l){if(i.then(mo,mo),t)return i.then(a=>{go(e,a)}).catch(a=>{xs(a,e,0)});e.asyncDep=i}else go(e,i)}else vl(e)}function go(e,t,n){Q(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ae(t)&&(e.setupState=Hi(t)),vl(e)}function vl(e,t,n){const s=e.type;e.render||(e.render=s.render||bt);{const r=jn(e);Ct();try{wc(e)}finally{Ot(),r()}}}const tu={get(e,t){return Pe(e,"get",""),e[t]}};function nu(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,tu),slots:e.slots,emit:e.emit,expose:t}}function Ns(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Hi(kr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in An)return An[n](e)},has(t,n){return n in t||n in An}})):e.proxy}function su(e){return Q(e)&&"__vccOpts"in e}const Be=(e,t)=>Ja(e,t,Fn);function wl(e,t,n){try{cs(-1);const s=arguments.length;return s===2?ae(t)&&!K(t)?us(t)?Ae(e,null,[t]):Ae(e,t):Ae(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&us(n)&&(n=[n]),Ae(e,t,n))}finally{cs(1)}}const ru="3.5.31";/** * @vue/runtime-dom v3.5.31 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let pr;const yo=typeof window<"u"&&window.trustedTypes;if(yo)try{pr=yo.createPolicy("vue",{createHTML:e=>e})}catch{}const El=pr?e=>pr.createHTML(e):e=>e,ou="http://www.w3.org/2000/svg",iu="http://www.w3.org/1998/Math/MathML",Et=typeof document<"u"?document:null,bo=Et&&Et.createElement("template"),lu={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?Et.createElementNS(ou,e):t==="mathml"?Et.createElementNS(iu,e):n?Et.createElement(e,{is:n}):Et.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Et.createTextNode(e),createComment:e=>Et.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Et.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{bo.innerHTML=El(s==="svg"?`${e}`:s==="mathml"?`${e}`:e);const l=bo.content;if(s==="svg"||s==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},au=Symbol("_vtc");function cu(e,t,n){const s=e[au];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const _o=Symbol("_vod"),uu=Symbol("_vsh"),fu=Symbol(""),du=/(?:^|;)\s*display\s*:/;function pu(e,t,n){const s=e.style,r=we(n);let o=!1;if(n&&!r){if(t)if(we(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&Zn(s,l,"")}else for(const i in t)n[i]==null&&Zn(s,i,"");for(const i in n)i==="display"&&(o=!0),Zn(s,i,n[i])}else if(r){if(t!==n){const i=s[fu];i&&(n+=";"+i),s.cssText=n,o=du.test(n)}}else t&&e.removeAttribute("style");_o in e&&(e[_o]=o?s.display:"",e[uu]&&(s.display="none"))}const vo=/\s*!important$/;function Zn(e,t,n){if(K(n))n.forEach(s=>Zn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=hu(e,t);vo.test(n)?e.setProperty(Mt(s),n.replace(vo,""),"important"):e[s]=n}}const wo=["Webkit","Moz","ms"],Ws={};function hu(e,t){const n=Ws[t];if(n)return n;let s=nt(t);if(s!=="filter"&&s in e)return Ws[t]=s;s=bi(s);for(let r=0;rzs||(bu.then(()=>zs=0),zs=Date.now());function vu(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;_t(wu(s,n.value),t,5,[s])};return n.value=e,n.attached=_u(),n}function wu(e,t){if(K(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const Co=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Eu=(e,t,n,s,r,o)=>{const i=r==="svg";t==="class"?cu(e,s,i):t==="style"?pu(e,n,s):gs(t)?ys(t)||gu(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Su(e,t,s,i))?(Ro(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&So(e,t,s,i,o,t!=="value")):e._isVueCE&&(Ru(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!we(s)))?Ro(e,nt(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),So(e,t,s,i))};function Su(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Co(t)&&Q(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Co(t)&&we(n)?!1:t in e}function Ru(e,t){const n=e._def.props;if(!n)return!1;const s=nt(t);return Array.isArray(n)?n.some(r=>nt(r)===s):Object.keys(n).some(r=>nt(r)===s)}const ds=e=>{const t=e.props["onUpdate:modelValue"]||!1;return K(t)?n=>Xn(t,n):t};function xu(e){e.target.composing=!0}function Oo(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const nn=Symbol("_assign");function To(e,t,n){return t&&(e=e.trim()),n&&(e=ws(e)),e}const Au={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[nn]=ds(r);const o=s||r.props&&r.props.type==="number";jt(e,t?"change":"input",i=>{i.target.composing||e[nn](To(e.value,n,o))}),(n||o)&&jt(e,"change",()=>{e.value=To(e.value,n,o)}),t||(jt(e,"compositionstart",xu),jt(e,"compositionend",Oo),jt(e,"change",Oo))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:o}},i){if(e[nn]=ds(i),e.composing)return;const l=(o||e.type==="number")&&!/^0\d/.test(e.value)?ws(e.value):e.value,a=t??"";if(l===a)return;const c=e.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===a)||(e.value=a)}},Cu={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const r=bs(t);jt(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?ws(ps(i)):ps(i));e[nn](e.multiple?r?new Set(o):o:o[0]),e._assigning=!0,rn(()=>{e._assigning=!1})}),e[nn]=ds(s)},mounted(e,{value:t}){Po(e,t)},beforeUpdate(e,t,n){e[nn]=ds(n)},updated(e,{value:t}){e._assigning||Po(e,t)}};function Po(e,t){const n=e.multiple,s=K(t);if(!(n&&!s&&!bs(t))){for(let r=0,o=e.options.length;rString(c)===String(l)):i.selected=wa(t,l)>-1}else i.selected=t.has(l);else if(Bn(ps(i),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function ps(e){return"_value"in e?e._value:e.value}const Ou=["ctrl","shift","alt","meta"],Tu={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Ou.some(n=>e[`${n}Key`]&&!t.includes(n))},hs=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...o)=>{for(let i=0;i{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=r=>{if(!("key"in r))return;const o=Mt(r.key);if(t.some(i=>i===o||Pu[i]===o))return e(r)})},Nu=Oe({patchProp:Eu},lu);let Io;function Iu(){return Io||(Io=jc(Nu))}const ku=(...e)=>{const t=Iu().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Fu(s);if(!r)return;const o=t._component;!Q(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const i=n(r,!1,Du(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t};function Du(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Fu(e){return we(e)?document.querySelector(e):e}/*! * pinia v2.3.1 * (c) 2025 Eduardo San Martin Morote * @license MIT */let Sl;const Is=e=>Sl=e,Rl=Symbol();function hr(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var On;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(On||(On={}));function Lu(){const e=Ri(!0),t=e.run(()=>re({}));let n=[],s=[];const r=kr({install(o){Is(r),r._a=o,o.provide(Rl,r),o.config.globalProperties.$pinia=r,s.forEach(i=>n.push(i)),s=[]},use(o){return this._a?n.push(o):s.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const xl=()=>{};function ko(e,t,n,s=xl){e.push(t);const r=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),s())};return!n&&xi()&&Ea(r),r}function Qt(e,...t){e.slice().forEach(n=>{n(...t)})}const Mu=e=>e(),Do=Symbol(),Js=Symbol();function mr(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,s)=>e.set(s,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],r=e[n];hr(r)&&hr(s)&&e.hasOwnProperty(n)&&!me(s)&&!At(s)?e[n]=mr(r,s):e[n]=s}return e}const Bu=Symbol();function Uu(e){return!hr(e)||!e.hasOwnProperty(Bu)}const{assign:kt}=Object;function $u(e){return!!(me(e)&&e.effect)}function ju(e,t,n,s){const{state:r,actions:o,getters:i}=t,l=n.state.value[e];let a;function c(){l||(n.state.value[e]=r?r():{});const u=qa(n.state.value[e]);return kt(u,o,Object.keys(i||{}).reduce((f,h)=>(f[h]=kr(Be(()=>{Is(n);const m=n._s.get(e);return i[h].call(m,m)})),f),{}))}return a=Al(e,c,t,n,s,!0),a}function Al(e,t,n={},s,r,o){let i;const l=kt({actions:{}},n),a={deep:!0};let c,u,f=[],h=[],m;const g=s.state.value[e];!o&&!g&&(s.state.value[e]={});let _;function v(Y){let X;c=u=!1,typeof Y=="function"?(Y(s.state.value[e]),X={type:On.patchFunction,storeId:e,events:m}):(mr(s.state.value[e],Y),X={type:On.patchObject,payload:Y,storeId:e,events:m});const fe=_=Symbol();rn().then(()=>{_===fe&&(c=!0)}),u=!0,Qt(f,X,s.state.value[e])}const k=o?function(){const{state:X}=n,fe=X?X():{};this.$patch(Re=>{kt(Re,fe)})}:xl;function T(){i.stop(),f=[],h=[],s._s.delete(e)}const O=(Y,X="")=>{if(Do in Y)return Y[Js]=X,Y;const fe=function(){Is(s);const Re=Array.from(arguments),xe=[],_e=[];function Ie(W){xe.push(W)}function Ze(W){_e.push(W)}Qt(h,{args:Re,name:fe[Js],store:B,after:Ie,onError:Ze});let Z;try{Z=Y.apply(this&&this.$id===e?this:B,Re)}catch(W){throw Qt(_e,W),W}return Z instanceof Promise?Z.then(W=>(Qt(xe,W),W)).catch(W=>(Qt(_e,W),Promise.reject(W))):(Qt(xe,Z),Z)};return fe[Do]=!0,fe[Js]=X,fe},R={_p:s,$id:e,$onAction:ko.bind(null,h),$patch:v,$reset:k,$subscribe(Y,X={}){const fe=ko(f,Y,X.detached,()=>Re()),Re=i.run(()=>qt(()=>s.state.value[e],xe=>{(X.flush==="sync"?u:c)&&Y({storeId:e,type:On.direct,events:m},xe)},kt({},a,X)));return fe},$dispose:T},B=Un(R);s._s.set(e,B);const z=(s._a&&s._a.runWithContext||Mu)(()=>s._e.run(()=>(i=Ri()).run(()=>t({action:O}))));for(const Y in z){const X=z[Y];if(me(X)&&!$u(X)||At(X))o||(g&&Uu(X)&&(me(X)?X.value=g[Y]:mr(X,g[Y])),s.state.value[e][Y]=X);else if(typeof X=="function"){const fe=O(X,Y);z[Y]=fe,l.actions[Y]=X}}return kt(B,z),kt(se(B),z),Object.defineProperty(B,"$state",{get:()=>s.state.value[e],set:Y=>{v(X=>{kt(X,Y)})}}),s._p.forEach(Y=>{kt(B,i.run(()=>Y({store:B,app:s._a,pinia:s,options:l})))}),g&&o&&n.hydrate&&n.hydrate(B.$state,g),c=!0,u=!0,B}/*! #__NO_SIDE_EFFECTS__ */function $r(e,t,n){let s,r;const o=typeof t=="function";typeof e=="string"?(s=e,r=o?n:t):(r=e,s=e.id);function i(l,a){const c=tc();return l=l||(c?We(Rl,null):null),l&&Is(l),l=Sl,l._s.has(s)||(o?Al(s,t,r,l):ju(s,r,l)),l._s.get(s)}return i.$id=s,i}/*! * vue-router v4.6.4 * (c) 2025 Eduardo San Martin Morote * @license MIT */const Yt=typeof document<"u";function Cl(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Hu(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Cl(e.default)}const oe=Object.assign;function Qs(e,t){const n={};for(const s in t){const r=t[s];n[s]=ot(r)?r.map(e):e(r)}return n}const Tn=()=>{},ot=Array.isArray;function Fo(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const Ol=/#/g,Vu=/&/g,Ku=/\//g,qu=/=/g,Gu=/\?/g,Tl=/\+/g,Wu=/%5B/g,zu=/%5D/g,Pl=/%5E/g,Ju=/%60/g,Nl=/%7B/g,Qu=/%7C/g,Il=/%7D/g,Xu=/%20/g;function jr(e){return e==null?"":encodeURI(""+e).replace(Qu,"|").replace(Wu,"[").replace(zu,"]")}function Yu(e){return jr(e).replace(Nl,"{").replace(Il,"}").replace(Pl,"^")}function gr(e){return jr(e).replace(Tl,"%2B").replace(Xu,"+").replace(Ol,"%23").replace(Vu,"%26").replace(Ju,"`").replace(Nl,"{").replace(Il,"}").replace(Pl,"^")}function Zu(e){return gr(e).replace(qu,"%3D")}function ef(e){return jr(e).replace(Ol,"%23").replace(Gu,"%3F")}function tf(e){return ef(e).replace(Ku,"%2F")}function Ln(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const nf=/\/$/,sf=e=>e.replace(nf,"");function Xs(e,t,n="/"){let s,r={},o="",i="";const l=t.indexOf("#");let a=t.indexOf("?");return a=l>=0&&a>l?-1:a,a>=0&&(s=t.slice(0,a),o=t.slice(a,l>0?l:t.length),r=e(o.slice(1))),l>=0&&(s=s||t.slice(0,l),i=t.slice(l,t.length)),s=af(s??t,n),{fullPath:s+o+i,path:s,query:r,hash:Ln(i)}}function rf(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Lo(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function of(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&an(t.matched[s],n.matched[r])&&kl(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function an(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function kl(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!lf(e[n],t[n]))return!1;return!0}function lf(e,t){return ot(e)?Mo(e,t):ot(t)?Mo(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function Mo(e,t){return ot(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function af(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let o=n.length-1,i,l;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(i).join("/")}const It={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let yr=function(e){return e.pop="pop",e.push="push",e}({}),Ys=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function cf(e){if(!e)if(Yt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),sf(e)}const uf=/^[^#]+#/;function ff(e,t){return e.replace(uf,"#")+t}function df(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const ks=()=>({left:window.scrollX,top:window.scrollY});function pf(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=df(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Bo(e,t){return(history.state?history.state.position-t:-1)+e}const br=new Map;function hf(e,t){br.set(e,t)}function mf(e){const t=br.get(e);return br.delete(e),t}function gf(e){return typeof e=="string"||e&&typeof e=="object"}function Dl(e){return typeof e=="string"||typeof e=="symbol"}let he=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const Fl=Symbol("");he.MATCHER_NOT_FOUND+"",he.NAVIGATION_GUARD_REDIRECT+"",he.NAVIGATION_ABORTED+"",he.NAVIGATION_CANCELLED+"",he.NAVIGATION_DUPLICATED+"";function cn(e,t){return oe(new Error,{type:e,[Fl]:!0},t)}function wt(e,t){return e instanceof Error&&Fl in e&&(t==null||!!(e.type&t))}const yf=["params","query","hash"];function bf(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of yf)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function _f(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;sr&&gr(r)):[s&&gr(s)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function vf(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=ot(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const wf=Symbol(""),$o=Symbol(""),Hr=Symbol(""),Ll=Symbol(""),_r=Symbol("");function gn(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Ft(e,t,n,s,r,o=i=>i()){const i=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((l,a)=>{const c=h=>{h===!1?a(cn(he.NAVIGATION_ABORTED,{from:n,to:t})):h instanceof Error?a(h):gf(h)?a(cn(he.NAVIGATION_GUARD_REDIRECT,{from:t,to:h})):(i&&s.enterCallbacks[r]===i&&typeof h=="function"&&i.push(h),l())},u=o(()=>e.call(s&&s.instances[r],t,n,c));let f=Promise.resolve(u);e.length<3&&(f=f.then(c)),f.catch(h=>a(h))})}function Zs(e,t,n,s,r=o=>o()){const o=[];for(const i of e)for(const l in i.components){let a=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(Cl(a)){const c=(a.__vccOpts||a)[t];c&&o.push(Ft(c,n,s,i,l,r))}else{let c=a();o.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${l}" at "${i.path}"`);const f=Hu(u)?u.default:u;i.mods[l]=u,i.components[l]=f;const h=(f.__vccOpts||f)[t];return h&&Ft(h,n,s,i,l,r)()}))}}return o}function Ef(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;ian(c,l))?s.push(l):n.push(l));const a=e.matched[i];a&&(t.matched.find(c=>an(c,a))||r.push(a))}return[n,s,r]}/*! * vue-router v4.6.4 * (c) 2025 Eduardo San Martin Morote * @license MIT */let Sf=()=>location.protocol+"//"+location.host;function Ml(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let i=r.includes(e.slice(o))?e.slice(o).length:1,l=r.slice(i);return l[0]!=="/"&&(l="/"+l),Lo(l,"")}return Lo(n,e)+s+r}function Rf(e,t,n,s){let r=[],o=[],i=null;const l=({state:h})=>{const m=Ml(e,location),g=n.value,_=t.value;let v=0;if(h){if(n.value=m,t.value=h,i&&i===g){i=null;return}v=_?h.position-_.position:0}else s(m);r.forEach(k=>{k(n.value,g,{delta:v,type:yr.pop,direction:v?v>0?Ys.forward:Ys.back:Ys.unknown})})};function a(){i=n.value}function c(h){r.push(h);const m=()=>{const g=r.indexOf(h);g>-1&&r.splice(g,1)};return o.push(m),m}function u(){if(document.visibilityState==="hidden"){const{history:h}=window;if(!h.state)return;h.replaceState(oe({},h.state,{scroll:ks()}),"")}}function f(){for(const h of o)h();o=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",u),document.removeEventListener("visibilitychange",u)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",u),document.addEventListener("visibilitychange",u),{pauseListeners:a,listen:c,destroy:f}}function jo(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?ks():null}}function xf(e){const{history:t,location:n}=window,s={value:Ml(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(a,c,u){const f=e.indexOf("#"),h=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+a:Sf()+e+a;try{t[u?"replaceState":"pushState"](c,"",h),r.value=c}catch(m){console.error(m),n[u?"replace":"assign"](h)}}function i(a,c){o(a,oe({},t.state,jo(r.value.back,a,r.value.forward,!0),c,{position:r.value.position}),!0),s.value=a}function l(a,c){const u=oe({},r.value,t.state,{forward:a,scroll:ks()});o(u.current,u,!0),o(a,oe({},jo(s.value,a,null),{position:u.position+1},c),!1),s.value=a}return{location:s,state:r,push:l,replace:i}}function Af(e){e=cf(e);const t=xf(e),n=Rf(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=oe({location:"",base:e,go:s,createHref:ff.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}let Ht=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var Se=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(Se||{});const Cf={type:Ht.Static,value:""},Of=/[a-zA-Z0-9_]/;function Tf(e){if(!e)return[[]];if(e==="/")return[[Cf]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${c}": ${m}`)}let n=Se.Static,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let l=0,a,c="",u="";function f(){c&&(n===Se.Static?o.push({type:Ht.Static,value:c}):n===Se.Param||n===Se.ParamRegExp||n===Se.ParamRegExpEnd?(o.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:Ht.Param,value:c,regexp:u,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),c="")}function h(){c+=a}for(;lt.length?t.length===1&&t[0]===De.Static+De.Segment?1:-1:0}function Bl(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const Df={strict:!1,end:!0,sensitive:!1};function Ff(e,t,n){const s=If(Tf(e.path),n),r=oe(s,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Lf(e,t){const n=[],s=new Map;t=Fo(Df,t);function r(f){return s.get(f)}function o(f,h,m){const g=!m,_=qo(f);_.aliasOf=m&&m.record;const v=Fo(t,f),k=[_];if("alias"in f){const R=typeof f.alias=="string"?[f.alias]:f.alias;for(const B of R)k.push(qo(oe({},_,{components:m?m.record.components:_.components,path:B,aliasOf:m?m.record:_})))}let T,O;for(const R of k){const{path:B}=R;if(h&&B[0]!=="/"){const le=h.record.path,z=le[le.length-1]==="/"?"":"/";R.path=h.record.path+(B&&z+B)}if(T=Ff(R,h,v),m?m.alias.push(T):(O=O||T,O!==T&&O.alias.push(T),g&&f.name&&!Go(T)&&i(f.name)),Ul(T)&&a(T),_.children){const le=_.children;for(let z=0;z{i(O)}:Tn}function i(f){if(Dl(f)){const h=s.get(f);h&&(s.delete(f),n.splice(n.indexOf(h),1),h.children.forEach(i),h.alias.forEach(i))}else{const h=n.indexOf(f);h>-1&&(n.splice(h,1),f.record.name&&s.delete(f.record.name),f.children.forEach(i),f.alias.forEach(i))}}function l(){return n}function a(f){const h=Uf(f,n);n.splice(h,0,f),f.record.name&&!Go(f)&&s.set(f.record.name,f)}function c(f,h){let m,g={},_,v;if("name"in f&&f.name){if(m=s.get(f.name),!m)throw cn(he.MATCHER_NOT_FOUND,{location:f});v=m.record.name,g=oe(Ko(h.params,m.keys.filter(O=>!O.optional).concat(m.parent?m.parent.keys.filter(O=>O.optional):[]).map(O=>O.name)),f.params&&Ko(f.params,m.keys.map(O=>O.name))),_=m.stringify(g)}else if(f.path!=null)_=f.path,m=n.find(O=>O.re.test(_)),m&&(g=m.parse(_),v=m.record.name);else{if(m=h.name?s.get(h.name):n.find(O=>O.re.test(h.path)),!m)throw cn(he.MATCHER_NOT_FOUND,{location:f,currentLocation:h});v=m.record.name,g=oe({},h.params,f.params),_=m.stringify(g)}const k=[];let T=m;for(;T;)k.unshift(T.record),T=T.parent;return{name:v,path:_,params:g,matched:k,meta:Bf(k)}}e.forEach(f=>o(f));function u(){n.length=0,s.clear()}return{addRoute:o,resolve:c,removeRoute:i,clearRoutes:u,getRoutes:l,getRecordMatcher:r}}function Ko(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function qo(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Mf(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Mf(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function Go(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Bf(e){return e.reduce((t,n)=>oe(t,n.meta),{})}function Uf(e,t){let n=0,s=t.length;for(;n!==s;){const o=n+s>>1;Bl(e,t[o])<0?s=o:n=o+1}const r=$f(e);return r&&(s=t.lastIndexOf(r,s-1)),s}function $f(e){let t=e;for(;t=t.parent;)if(Ul(t)&&Bl(e,t)===0)return t}function Ul({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Wo(e){const t=We(Hr),n=We(Ll),s=Be(()=>{const a=U(e.to);return t.resolve(a)}),r=Be(()=>{const{matched:a}=s.value,{length:c}=a,u=a[c-1],f=n.matched;if(!u||!f.length)return-1;const h=f.findIndex(an.bind(null,u));if(h>-1)return h;const m=zo(a[c-2]);return c>1&&zo(u)===m&&f[f.length-1].path!==m?f.findIndex(an.bind(null,a[c-2])):h}),o=Be(()=>r.value>-1&&Kf(n.params,s.value.params)),i=Be(()=>r.value>-1&&r.value===n.matched.length-1&&kl(n.params,s.value.params));function l(a={}){if(Vf(a)){const c=t[U(e.replace)?"replace":"push"](U(e.to)).catch(Tn);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:s,href:Be(()=>s.value.href),isActive:o,isExactActive:i,navigate:l}}function jf(e){return e.length===1?e[0]:e}const Hf=Pt({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Wo,setup(e,{slots:t}){const n=Un(Wo(e)),{options:s}=We(Hr),r=Be(()=>({[Jo(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Jo(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&jf(t.default(n));return e.custom?o:wl("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),Pn=Hf;function Vf(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Kf(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!ot(r)||r.length!==s.length||s.some((o,i)=>o.valueOf()!==r[i].valueOf()))return!1}return!0}function zo(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Jo=(e,t,n)=>e??t??n,qf=Pt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=We(_r),r=Be(()=>e.route||s.value),o=We($o,0),i=Be(()=>{let c=U(o);const{matched:u}=r.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),l=Be(()=>r.value.matched[i.value]);Sn($o,Be(()=>i.value+1)),Sn(wf,l),Sn(_r,r);const a=re();return qt(()=>[a.value,l.value,e.name],([c,u,f],[h,m,g])=>{u&&(u.instances[f]=c,m&&m!==u&&c&&c===h&&(u.leaveGuards.size||(u.leaveGuards=m.leaveGuards),u.updateGuards.size||(u.updateGuards=m.updateGuards))),c&&u&&(!m||!an(u,m)||!h)&&(u.enterCallbacks[f]||[]).forEach(_=>_(c))},{flush:"post"}),()=>{const c=r.value,u=e.name,f=l.value,h=f&&f.components[u];if(!h)return Qo(n.default,{Component:h,route:c});const m=f.props[u],g=m?m===!0?c.params:typeof m=="function"?m(c):m:null,v=wl(h,oe({},g,t,{onVnodeUnmounted:k=>{k.component.isUnmounted&&(f.instances[u]=null)},ref:a}));return Qo(n.default,{Component:v,route:c})||v}}});function Qo(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const $l=qf;function Gf(e){const t=Lf(e.routes,e),n=e.parseQuery||_f,s=e.stringifyQuery||Uo,r=e.history,o=gn(),i=gn(),l=gn(),a=Ha(It);let c=It;Yt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Qs.bind(null,x=>""+x),f=Qs.bind(null,tf),h=Qs.bind(null,Ln);function m(x,L){let D,j;return Dl(x)?(D=t.getRecordMatcher(x),j=L):j=x,t.addRoute(j,D)}function g(x){const L=t.getRecordMatcher(x);L&&t.removeRoute(L)}function _(){return t.getRoutes().map(x=>x.record)}function v(x){return!!t.getRecordMatcher(x)}function k(x,L){if(L=oe({},L||a.value),typeof x=="string"){const y=Xs(n,x,L.path),w=t.resolve({path:y.path},L),A=r.createHref(y.fullPath);return oe(y,w,{params:h(w.params),hash:Ln(y.hash),redirectedFrom:void 0,href:A})}let D;if(x.path!=null)D=oe({},x,{path:Xs(n,x.path,L.path).path});else{const y=oe({},x.params);for(const w in y)y[w]==null&&delete y[w];D=oe({},x,{params:f(y)}),L.params=f(L.params)}const j=t.resolve(D,L),te=x.hash||"";j.params=u(h(j.params));const d=rf(s,oe({},x,{hash:Yu(te),path:j.path})),p=r.createHref(d);return oe({fullPath:d,hash:te,query:s===Uo?vf(x.query):x.query||{}},j,{redirectedFrom:void 0,href:p})}function T(x){return typeof x=="string"?Xs(n,x,a.value.path):oe({},x)}function O(x,L){if(c!==x)return cn(he.NAVIGATION_CANCELLED,{from:L,to:x})}function R(x){return z(x)}function B(x){return R(oe(T(x),{replace:!0}))}function le(x,L){const D=x.matched[x.matched.length-1];if(D&&D.redirect){const{redirect:j}=D;let te=typeof j=="function"?j(x,L):j;return typeof te=="string"&&(te=te.includes("?")||te.includes("#")?te=T(te):{path:te},te.params={}),oe({query:x.query,hash:x.hash,params:te.path!=null?{}:x.params},te)}}function z(x,L){const D=c=k(x),j=a.value,te=x.state,d=x.force,p=x.replace===!0,y=le(D,j);if(y)return z(oe(T(y),{state:typeof y=="object"?oe({},te,y.state):te,force:d,replace:p}),L||D);const w=D;w.redirectedFrom=L;let A;return!d&&of(s,j,D)&&(A=cn(he.NAVIGATION_DUPLICATED,{to:w,from:j}),Ee(j,j,!0,!1)),(A?Promise.resolve(A):fe(w,j)).catch(S=>wt(S)?wt(S,he.NAVIGATION_GUARD_REDIRECT)?S:lt(S):ee(S,w,j)).then(S=>{if(S){if(wt(S,he.NAVIGATION_GUARD_REDIRECT))return z(oe({replace:p},T(S.to),{state:typeof S.to=="object"?oe({},te,S.to.state):te,force:d}),L||w)}else S=xe(w,j,!0,p,te);return Re(w,j,S),S})}function Y(x,L){const D=O(x,L);return D?Promise.reject(D):Promise.resolve()}function X(x){const L=et.values().next().value;return L&&typeof L.runWithContext=="function"?L.runWithContext(x):x()}function fe(x,L){let D;const[j,te,d]=Ef(x,L);D=Zs(j.reverse(),"beforeRouteLeave",x,L);for(const y of j)y.leaveGuards.forEach(w=>{D.push(Ft(w,x,L))});const p=Y.bind(null,x,L);return D.push(p),Je(D).then(()=>{D=[];for(const y of o.list())D.push(Ft(y,x,L));return D.push(p),Je(D)}).then(()=>{D=Zs(te,"beforeRouteUpdate",x,L);for(const y of te)y.updateGuards.forEach(w=>{D.push(Ft(w,x,L))});return D.push(p),Je(D)}).then(()=>{D=[];for(const y of d)if(y.beforeEnter)if(ot(y.beforeEnter))for(const w of y.beforeEnter)D.push(Ft(w,x,L));else D.push(Ft(y.beforeEnter,x,L));return D.push(p),Je(D)}).then(()=>(x.matched.forEach(y=>y.enterCallbacks={}),D=Zs(d,"beforeRouteEnter",x,L,X),D.push(p),Je(D))).then(()=>{D=[];for(const y of i.list())D.push(Ft(y,x,L));return D.push(p),Je(D)}).catch(y=>wt(y,he.NAVIGATION_CANCELLED)?y:Promise.reject(y))}function Re(x,L,D){l.list().forEach(j=>X(()=>j(x,L,D)))}function xe(x,L,D,j,te){const d=O(x,L);if(d)return d;const p=L===It,y=Yt?history.state:{};D&&(j||p?r.replace(x.fullPath,oe({scroll:p&&y&&y.scroll},te)):r.push(x.fullPath,te)),a.value=x,Ee(x,L,D,p),lt()}let _e;function Ie(){_e||(_e=r.listen((x,L,D)=>{if(!ct.listening)return;const j=k(x),te=le(j,ct.currentRoute.value);if(te){z(oe(te,{replace:!0,force:!0}),j).catch(Tn);return}c=j;const d=a.value;Yt&&hf(Bo(d.fullPath,D.delta),ks()),fe(j,d).catch(p=>wt(p,he.NAVIGATION_ABORTED|he.NAVIGATION_CANCELLED)?p:wt(p,he.NAVIGATION_GUARD_REDIRECT)?(z(oe(T(p.to),{force:!0}),j).then(y=>{wt(y,he.NAVIGATION_ABORTED|he.NAVIGATION_DUPLICATED)&&!D.delta&&D.type===yr.pop&&r.go(-1,!1)}).catch(Tn),Promise.reject()):(D.delta&&r.go(-D.delta,!1),ee(p,j,d))).then(p=>{p=p||xe(j,d,!1),p&&(D.delta&&!wt(p,he.NAVIGATION_CANCELLED)?r.go(-D.delta,!1):D.type===yr.pop&&wt(p,he.NAVIGATION_ABORTED|he.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),Re(j,d,p)}).catch(Tn)}))}let Ze=gn(),Z=gn(),W;function ee(x,L,D){lt(x);const j=Z.list();return j.length?j.forEach(te=>te(x,L,D)):console.error(x),Promise.reject(x)}function ze(){return W&&a.value!==It?Promise.resolve():new Promise((x,L)=>{Ze.add([x,L])})}function lt(x){return W||(W=!x,Ie(),Ze.list().forEach(([L,D])=>x?D(x):L()),Ze.reset()),x}function Ee(x,L,D,j){const{scrollBehavior:te}=e;if(!Yt||!te)return Promise.resolve();const d=!D&&mf(Bo(x.fullPath,0))||(j||!D)&&history.state&&history.state.scroll||null;return rn().then(()=>te(x,L,d)).then(p=>p&&pf(p)).catch(p=>ee(p,x,L))}const ge=x=>r.go(x);let at;const et=new Set,ct={currentRoute:a,listening:!0,addRoute:m,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:v,getRoutes:_,resolve:k,options:e,push:R,replace:B,go:ge,back:()=>ge(-1),forward:()=>ge(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:Z.add,isReady:ze,install(x){x.component("RouterLink",Pn),x.component("RouterView",$l),x.config.globalProperties.$router=ct,Object.defineProperty(x.config.globalProperties,"$route",{enumerable:!0,get:()=>U(a)}),Yt&&!at&&a.value===It&&(at=!0,R(r.location).catch(j=>{}));const L={};for(const j in It)Object.defineProperty(L,j,{get:()=>a.value[j],enumerable:!0});x.provide(Hr,ct),x.provide(Ll,$i(L)),x.provide(_r,a);const D=x.unmount;et.add(x),x.unmount=function(){et.delete(x),et.size<1&&(c=It,_e&&_e(),_e=null,a.value=It,at=!1,W=!1),D()}}};function Je(x){return x.reduce((L,D)=>L.then(()=>X(D)),Promise.resolve())}return ct}const Wf={id:"app"},zf={class:"navbar"},Jf={class:"navbar-links"},Qf={class:"main-content"},Xf=Pt({__name:"App",setup(e){const t=re(""),n=re("toast-error");function s(r,o="error"){t.value=r,n.value=o==="error"?"toast-error":"toast-success",setTimeout(()=>{t.value=""},5e3)}return Sn("showToast",s),(r,o)=>(M(),$("div",Wf,[E("nav",zf,[o[4]||(o[4]=E("div",{class:"navbar-brand"},[E("span",{class:"brand-icon"},"🧠"),E("span",{class:"brand-name"},"AI Teacher"),E("span",{class:"brand-subtitle"},"Neurosurgeon Learning Platform")],-1)),E("ul",Jf,[E("li",null,[Ae(U(Pn),{to:"/",class:Ve({active:r.$route.path==="/"})},{default:En(()=>[...o[1]||(o[1]=[E("span",{class:"nav-icon"},"📚",-1),qe(" Library ",-1)])]),_:1},8,["class"])]),E("li",null,[Ae(U(Pn),{to:"/topics",class:Ve({active:r.$route.path==="/topics"})},{default:En(()=>[...o[2]||(o[2]=[E("span",{class:"nav-icon"},"🗂",-1),qe(" Topics ",-1)])]),_:1},8,["class"])]),E("li",null,[Ae(U(Pn),{to:"/chat",class:Ve({active:r.$route.path==="/chat"})},{default:En(()=>[...o[3]||(o[3]=[E("span",{class:"nav-icon"},"💬",-1),qe(" Chat ",-1)])]),_:1},8,["class"])])])]),E("main",Qf,[t.value?(M(),$("div",{key:0,class:Ve(["toast",n.value]),onClick:o[0]||(o[0]=i=>t.value="")},J(t.value),3)):ye("",!0),Ae(U($l))])]))}});function jl(e,t){return function(){return e.apply(t,arguments)}}const{toString:Yf}=Object.prototype,{getPrototypeOf:Vr}=Object,{iterator:Ds,toStringTag:Hl}=Symbol,Fs=(e=>t=>{const n=Yf.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),it=e=>(e=e.toLowerCase(),t=>Fs(t)===e),Ls=e=>t=>typeof t===e,{isArray:fn}=Array,un=Ls("undefined");function Hn(e){return e!==null&&!un(e)&&e.constructor!==null&&!un(e.constructor)&&$e(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Vl=it("ArrayBuffer");function Zf(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Vl(e.buffer),t}const ed=Ls("string"),$e=Ls("function"),Kl=Ls("number"),Vn=e=>e!==null&&typeof e=="object",td=e=>e===!0||e===!1,es=e=>{if(Fs(e)!=="object")return!1;const t=Vr(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Hl in e)&&!(Ds in e)},nd=e=>{if(!Vn(e)||Hn(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},sd=it("Date"),rd=it("File"),od=e=>!!(e&&typeof e.uri<"u"),id=e=>e&&typeof e.getParts<"u",ld=it("Blob"),ad=it("FileList"),cd=e=>Vn(e)&&$e(e.pipe);function ud(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Xo=ud(),Yo=typeof Xo.FormData<"u"?Xo.FormData:void 0,fd=e=>{let t;return e&&(Yo&&e instanceof Yo||$e(e.append)&&((t=Fs(e))==="formdata"||t==="object"&&$e(e.toString)&&e.toString()==="[object FormData]"))},dd=it("URLSearchParams"),[pd,hd,md,gd]=["ReadableStream","Request","Response","Headers"].map(it),yd=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Kn(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,r;if(typeof e!="object"&&(e=[e]),fn(e))for(s=0,r=e.length;s0;)if(r=n[s],t===r.toLowerCase())return r;return null}const Vt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Gl=e=>!un(e)&&e!==Vt;function vr(){const{caseless:e,skipUndefined:t}=Gl(this)&&this||{},n={},s=(r,o)=>{if(o==="__proto__"||o==="constructor"||o==="prototype")return;const i=e&&ql(n,o)||o;es(n[i])&&es(r)?n[i]=vr(n[i],r):es(r)?n[i]=vr({},r):fn(r)?n[i]=r.slice():(!t||!un(r))&&(n[i]=r)};for(let r=0,o=arguments.length;r(Kn(t,(r,o)=>{n&&$e(r)?Object.defineProperty(e,o,{value:jl(r,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{value:r,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:s}),e),_d=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),vd=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},wd=(e,t,n,s)=>{let r,o,i;const l={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),o=r.length;o-- >0;)i=r[o],(!s||s(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&Vr(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Ed=(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},Sd=e=>{if(!e)return null;if(fn(e))return e;let t=e.length;if(!Kl(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Rd=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Vr(Uint8Array)),xd=(e,t)=>{const s=(e&&e[Ds]).call(e);let r;for(;(r=s.next())&&!r.done;){const o=r.value;t.call(e,o[0],o[1])}},Ad=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},Cd=it("HTMLFormElement"),Od=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),Zo=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Td=it("RegExp"),Wl=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};Kn(n,(r,o)=>{let i;(i=t(r,o,e))!==!1&&(s[o]=i||r)}),Object.defineProperties(e,s)},Pd=e=>{Wl(e,(t,n)=>{if($e(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if($e(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+"'")})}})},Nd=(e,t)=>{const n={},s=r=>{r.forEach(o=>{n[o]=!0})};return fn(e)?s(e):s(String(e).split(t)),n},Id=()=>{},kd=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Dd(e){return!!(e&&$e(e.append)&&e[Hl]==="FormData"&&e[Ds])}const Fd=e=>{const t=new Array(10),n=(s,r)=>{if(Vn(s)){if(t.indexOf(s)>=0)return;if(Hn(s))return s;if(!("toJSON"in s)){t[r]=s;const o=fn(s)?[]:{};return Kn(s,(i,l)=>{const a=n(i,r+1);!un(a)&&(o[l]=a)}),t[r]=void 0,o}}return s};return n(e,0)},Ld=it("AsyncFunction"),Md=e=>e&&(Vn(e)||$e(e))&&$e(e.then)&&$e(e.catch),zl=((e,t)=>e?setImmediate:t?((n,s)=>(Vt.addEventListener("message",({source:r,data:o})=>{r===Vt&&o===n&&s.length&&s.shift()()},!1),r=>{s.push(r),Vt.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",$e(Vt.postMessage)),Bd=typeof queueMicrotask<"u"?queueMicrotask.bind(Vt):typeof process<"u"&&process.nextTick||zl,Ud=e=>e!=null&&$e(e[Ds]),b={isArray:fn,isArrayBuffer:Vl,isBuffer:Hn,isFormData:fd,isArrayBufferView:Zf,isString:ed,isNumber:Kl,isBoolean:td,isObject:Vn,isPlainObject:es,isEmptyObject:nd,isReadableStream:pd,isRequest:hd,isResponse:md,isHeaders:gd,isUndefined:un,isDate:sd,isFile:rd,isReactNativeBlob:od,isReactNative:id,isBlob:ld,isRegExp:Td,isFunction:$e,isStream:cd,isURLSearchParams:dd,isTypedArray:Rd,isFileList:ad,forEach:Kn,merge:vr,extend:bd,trim:yd,stripBOM:_d,inherits:vd,toFlatObject:wd,kindOf:Fs,kindOfTest:it,endsWith:Ed,toArray:Sd,forEachEntry:xd,matchAll:Ad,isHTMLForm:Cd,hasOwnProperty:Zo,hasOwnProp:Zo,reduceDescriptors:Wl,freezeMethods:Pd,toObjectSet:Nd,toCamelCase:Od,noop:Id,toFiniteNumber:kd,findKey:ql,global:Vt,isContextDefined:Gl,isSpecCompliantForm:Dd,toJSONObject:Fd,isAsyncFn:Ld,isThenable:Md,setImmediate:zl,asap:Bd,isIterable:Ud};let q=class Jl extends Error{static from(t,n,s,r,o,i){const l=new Jl(t.message,n||t.code,s,r,o);return l.cause=t,l.name=t.name,t.status!=null&&l.status==null&&(l.status=t.status),i&&Object.assign(l,i),l}constructor(t,n,s,r,o){super(t),Object.defineProperty(this,"message",{value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),s&&(this.config=s),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){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:b.toJSONObject(this.config),code:this.code,status:this.status}}};q.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";q.ERR_BAD_OPTION="ERR_BAD_OPTION";q.ECONNABORTED="ECONNABORTED";q.ETIMEDOUT="ETIMEDOUT";q.ERR_NETWORK="ERR_NETWORK";q.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";q.ERR_DEPRECATED="ERR_DEPRECATED";q.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";q.ERR_BAD_REQUEST="ERR_BAD_REQUEST";q.ERR_CANCELED="ERR_CANCELED";q.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";q.ERR_INVALID_URL="ERR_INVALID_URL";const $d=null;function wr(e){return b.isPlainObject(e)||b.isArray(e)}function Ql(e){return b.endsWith(e,"[]")?e.slice(0,-2):e}function er(e,t,n){return e?e.concat(t).map(function(r,o){return r=Ql(r),!n&&o?"["+r+"]":r}).join(n?".":""):t}function jd(e){return b.isArray(e)&&!e.some(wr)}const Hd=b.toFlatObject(b,{},null,function(t){return/^is[A-Z]/.test(t)});function Ms(e,t,n){if(!b.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=b.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,v){return!b.isUndefined(v[_])});const s=n.metaTokens,r=n.visitor||u,o=n.dots,i=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&b.isSpecCompliantForm(t);if(!b.isFunction(r))throw new TypeError("visitor must be a function");function c(g){if(g===null)return"";if(b.isDate(g))return g.toISOString();if(b.isBoolean(g))return g.toString();if(!a&&b.isBlob(g))throw new q("Blob is not supported. Use a Buffer instead.");return b.isArrayBuffer(g)||b.isTypedArray(g)?a&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,_,v){let k=g;if(b.isReactNative(t)&&b.isReactNativeBlob(g))return t.append(er(v,_,o),c(g)),!1;if(g&&!v&&typeof g=="object"){if(b.endsWith(_,"{}"))_=s?_:_.slice(0,-2),g=JSON.stringify(g);else if(b.isArray(g)&&jd(g)||(b.isFileList(g)||b.endsWith(_,"[]"))&&(k=b.toArray(g)))return _=Ql(_),k.forEach(function(O,R){!(b.isUndefined(O)||O===null)&&t.append(i===!0?er([_],R,o):i===null?_:_+"[]",c(O))}),!1}return wr(g)?!0:(t.append(er(v,_,o),c(g)),!1)}const f=[],h=Object.assign(Hd,{defaultVisitor:u,convertValue:c,isVisitable:wr});function m(g,_){if(!b.isUndefined(g)){if(f.indexOf(g)!==-1)throw Error("Circular reference detected in "+_.join("."));f.push(g),b.forEach(g,function(k,T){(!(b.isUndefined(k)||k===null)&&r.call(t,k,b.isString(T)?T.trim():T,_,h))===!0&&m(k,_?_.concat(T):[T])}),f.pop()}}if(!b.isObject(e))throw new TypeError("data must be an object");return m(e),t}function ei(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function Kr(e,t){this._pairs=[],e&&Ms(e,this,t)}const Xl=Kr.prototype;Xl.append=function(t,n){this._pairs.push([t,n])};Xl.toString=function(t){const n=t?function(s){return t.call(this,s,ei)}:ei;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function Vd(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Yl(e,t,n){if(!t)return e;const s=n&&n.encode||Vd,r=b.isFunction(n)?{serialize:n}:n,o=r&&r.serialize;let i;if(o?i=o(t,r):i=b.isURLSearchParams(t)?t.toString():new Kr(t,r).toString(s),i){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class ti{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){b.forEach(this.handlers,function(s){s!==null&&t(s)})}}const qr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Kd=typeof URLSearchParams<"u"?URLSearchParams:Kr,qd=typeof FormData<"u"?FormData:null,Gd=typeof Blob<"u"?Blob:null,Wd={isBrowser:!0,classes:{URLSearchParams:Kd,FormData:qd,Blob:Gd},protocols:["http","https","file","blob","url","data"]},Gr=typeof window<"u"&&typeof document<"u",Er=typeof navigator=="object"&&navigator||void 0,zd=Gr&&(!Er||["ReactNative","NativeScript","NS"].indexOf(Er.product)<0),Jd=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Qd=Gr&&window.location.href||"http://localhost",Xd=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Gr,hasStandardBrowserEnv:zd,hasStandardBrowserWebWorkerEnv:Jd,navigator:Er,origin:Qd},Symbol.toStringTag,{value:"Module"})),Ne={...Xd,...Wd};function Yd(e,t){return Ms(e,new Ne.classes.URLSearchParams,{visitor:function(n,s,r,o){return Ne.isNode&&b.isBuffer(n)?(this.append(s,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function Zd(e){return b.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ep(e){const t={},n=Object.keys(e);let s;const r=n.length;let o;for(s=0;s=n.length;return i=!i&&b.isArray(r)?r.length:i,a?(b.hasOwnProp(r,i)?r[i]=[r[i],s]:r[i]=s,!l):((!r[i]||!b.isObject(r[i]))&&(r[i]=[]),t(n,s,r[i],o)&&b.isArray(r[i])&&(r[i]=ep(r[i])),!l)}if(b.isFormData(e)&&b.isFunction(e.entries)){const n={};return b.forEachEntry(e,(s,r)=>{t(Zd(s),r,n,0)}),n}return null}function tp(e,t,n){if(b.isString(e))try{return(t||JSON.parse)(e),b.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const qn={transitional:qr,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,o=b.isObject(t);if(o&&b.isHTMLForm(t)&&(t=new FormData(t)),b.isFormData(t))return r?JSON.stringify(Zl(t)):t;if(b.isArrayBuffer(t)||b.isBuffer(t)||b.isStream(t)||b.isFile(t)||b.isBlob(t)||b.isReadableStream(t))return t;if(b.isArrayBufferView(t))return t.buffer;if(b.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(s.indexOf("application/x-www-form-urlencoded")>-1)return Yd(t,this.formSerializer).toString();if((l=b.isFileList(t))||s.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return Ms(l?{"files[]":t}:t,a&&new a,this.formSerializer)}}return o||r?(n.setContentType("application/json",!1),tp(t)):t}],transformResponse:[function(t){const n=this.transitional||qn.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(b.isResponse(t)||b.isReadableStream(t))return t;if(t&&b.isString(t)&&(s&&!this.responseType||r)){const i=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t,this.parseReviver)}catch(l){if(i)throw l.name==="SyntaxError"?q.from(l,q.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ne.classes.FormData,Blob:Ne.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};b.forEach(["delete","get","head","post","put","patch"],e=>{qn.headers[e]={}});const np=b.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"]),sp=e=>{const t={};let n,s,r;return e&&e.split(` `).forEach(function(i){r=i.indexOf(":"),n=i.substring(0,r).trim().toLowerCase(),s=i.substring(r+1).trim(),!(!n||t[n]&&np[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},ni=Symbol("internals");function yn(e){return e&&String(e).trim().toLowerCase()}function ts(e){return e===!1||e==null?e:b.isArray(e)?e.map(ts):String(e).replace(/[\r\n]+$/,"")}function rp(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 op=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function tr(e,t,n,s,r){if(b.isFunction(s))return s.call(this,t,n);if(r&&(t=n),!!b.isString(t)){if(b.isString(s))return t.indexOf(s)!==-1;if(b.isRegExp(s))return s.test(t)}}function ip(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function lp(e,t){const n=b.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(r,o,i){return this[s].call(this,t,r,o,i)},configurable:!0})})}let je=class{constructor(t){t&&this.set(t)}set(t,n,s){const r=this;function o(l,a,c){const u=yn(a);if(!u)throw new Error("header name must be a non-empty string");const f=b.findKey(r,u);(!f||r[f]===void 0||c===!0||c===void 0&&r[f]!==!1)&&(r[f||a]=ts(l))}const i=(l,a)=>b.forEach(l,(c,u)=>o(c,u,a));if(b.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(b.isString(t)&&(t=t.trim())&&!op(t))i(sp(t),n);else if(b.isObject(t)&&b.isIterable(t)){let l={},a,c;for(const u of t){if(!b.isArray(u))throw TypeError("Object iterator must return a key-value pair");l[c=u[0]]=(a=l[c])?b.isArray(a)?[...a,u[1]]:[a,u[1]]:u[1]}i(l,n)}else t!=null&&o(n,t,s);return this}get(t,n){if(t=yn(t),t){const s=b.findKey(this,t);if(s){const r=this[s];if(!n)return r;if(n===!0)return rp(r);if(b.isFunction(n))return n.call(this,r,s);if(b.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=yn(t),t){const s=b.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||tr(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let r=!1;function o(i){if(i=yn(i),i){const l=b.findKey(s,i);l&&(!n||tr(s,s[l],l,n))&&(delete s[l],r=!0)}}return b.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||tr(this,this[o],o,t,!0))&&(delete this[o],r=!0)}return r}normalize(t){const n=this,s={};return b.forEach(this,(r,o)=>{const i=b.findKey(s,o);if(i){n[i]=ts(r),delete n[o];return}const l=t?ip(o):String(o).trim();l!==o&&delete n[o],n[l]=ts(r),s[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return b.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=t&&b.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[ni]=this[ni]={accessors:{}}).accessors,r=this.prototype;function o(i){const l=yn(i);s[l]||(lp(r,i),s[l]=!0)}return b.isArray(t)?t.forEach(o):o(t),this}};je.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);b.reduceDescriptors(je.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});b.freezeMethods(je);function nr(e,t){const n=this||qn,s=t||n,r=je.from(s.headers);let o=s.data;return b.forEach(e,function(l){o=l.call(n,o,r.normalize(),t?t.status:void 0)}),r.normalize(),o}function ea(e){return!!(e&&e.__CANCEL__)}let Gn=class extends q{constructor(t,n,s){super(t??"canceled",q.ERR_CANCELED,n,s),this.name="CanceledError",this.__CANCEL__=!0}};function ta(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new q("Request failed with status code "+n.status,[q.ERR_BAD_REQUEST,q.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function ap(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function cp(e,t){e=e||10;const n=new Array(e),s=new Array(e);let r=0,o=0,i;return t=t!==void 0?t:1e3,function(a){const c=Date.now(),u=s[o];i||(i=c),n[r]=a,s[r]=c;let f=o,h=0;for(;f!==r;)h+=n[f++],f=f%e;if(r=(r+1)%e,r===o&&(o=(o+1)%e),c-i{n=u,r=null,o&&(clearTimeout(o),o=null),e(...c)};return[(...c)=>{const u=Date.now(),f=u-n;f>=s?i(c,u):(r=c,o||(o=setTimeout(()=>{o=null,i(r)},s-f)))},()=>r&&i(r)]}const ms=(e,t,n=3)=>{let s=0;const r=cp(50,250);return up(o=>{const i=o.loaded,l=o.lengthComputable?o.total:void 0,a=i-s,c=r(a),u=i<=l;s=i;const f={loaded:i,total:l,progress:l?i/l:void 0,bytes:a,rate:c||void 0,estimated:c&&l&&u?(l-i)/c:void 0,event:o,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},n)},si=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},ri=e=>(...t)=>b.asap(()=>e(...t)),fp=Ne.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ne.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ne.origin),Ne.navigator&&/(msie|trident)/i.test(Ne.navigator.userAgent)):()=>!0,dp=Ne.hasStandardBrowserEnv?{write(e,t,n,s,r,o,i){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];b.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),b.isString(s)&&l.push(`path=${s}`),b.isString(r)&&l.push(`domain=${r}`),o===!0&&l.push("secure"),b.isString(i)&&l.push(`SameSite=${i}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function pp(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function hp(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function na(e,t,n){let s=!pp(t);return e&&(s||n==!1)?hp(e,t):t}const oi=e=>e instanceof je?{...e}:e;function zt(e,t){t=t||{};const n={};function s(c,u,f,h){return b.isPlainObject(c)&&b.isPlainObject(u)?b.merge.call({caseless:h},c,u):b.isPlainObject(u)?b.merge({},u):b.isArray(u)?u.slice():u}function r(c,u,f,h){if(b.isUndefined(u)){if(!b.isUndefined(c))return s(void 0,c,f,h)}else return s(c,u,f,h)}function o(c,u){if(!b.isUndefined(u))return s(void 0,u)}function i(c,u){if(b.isUndefined(u)){if(!b.isUndefined(c))return s(void 0,c)}else return s(void 0,u)}function l(c,u,f){if(f in t)return s(c,u);if(f in e)return s(void 0,c)}const a={url:o,method:o,data:o,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:l,headers:(c,u,f)=>r(oi(c),oi(u),f,!0)};return b.forEach(Object.keys({...e,...t}),function(u){if(u==="__proto__"||u==="constructor"||u==="prototype")return;const f=b.hasOwnProp(a,u)?a[u]:r,h=f(e[u],t[u],u);b.isUndefined(h)&&f!==l||(n[u]=h)}),n}const sa=e=>{const t=zt({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:r,xsrfCookieName:o,headers:i,auth:l}=t;if(t.headers=i=je.from(i),t.url=Yl(na(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),b.isFormData(n)){if(Ne.hasStandardBrowserEnv||Ne.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(b.isFunction(n.getHeaders)){const a=n.getHeaders(),c=["content-type","content-length"];Object.entries(a).forEach(([u,f])=>{c.includes(u.toLowerCase())&&i.set(u,f)})}}if(Ne.hasStandardBrowserEnv&&(s&&b.isFunction(s)&&(s=s(t)),s||s!==!1&&fp(t.url))){const a=r&&o&&dp.read(o);a&&i.set(r,a)}return t},mp=typeof XMLHttpRequest<"u",gp=mp&&function(e){return new Promise(function(n,s){const r=sa(e);let o=r.data;const i=je.from(r.headers).normalize();let{responseType:l,onUploadProgress:a,onDownloadProgress:c}=r,u,f,h,m,g;function _(){m&&m(),g&&g(),r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(r.method.toUpperCase(),r.url,!0),v.timeout=r.timeout;function k(){if(!v)return;const O=je.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),B={data:!l||l==="text"||l==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:O,config:e,request:v};ta(function(z){n(z),_()},function(z){s(z),_()},B),v=null}"onloadend"in v?v.onloadend=k:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(k)},v.onabort=function(){v&&(s(new q("Request aborted",q.ECONNABORTED,e,v)),v=null)},v.onerror=function(R){const B=R&&R.message?R.message:"Network Error",le=new q(B,q.ERR_NETWORK,e,v);le.event=R||null,s(le),v=null},v.ontimeout=function(){let R=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const B=r.transitional||qr;r.timeoutErrorMessage&&(R=r.timeoutErrorMessage),s(new q(R,B.clarifyTimeoutError?q.ETIMEDOUT:q.ECONNABORTED,e,v)),v=null},o===void 0&&i.setContentType(null),"setRequestHeader"in v&&b.forEach(i.toJSON(),function(R,B){v.setRequestHeader(B,R)}),b.isUndefined(r.withCredentials)||(v.withCredentials=!!r.withCredentials),l&&l!=="json"&&(v.responseType=r.responseType),c&&([h,g]=ms(c,!0),v.addEventListener("progress",h)),a&&v.upload&&([f,m]=ms(a),v.upload.addEventListener("progress",f),v.upload.addEventListener("loadend",m)),(r.cancelToken||r.signal)&&(u=O=>{v&&(s(!O||O.type?new Gn(null,e,v):O),v.abort(),v=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));const T=ap(r.url);if(T&&Ne.protocols.indexOf(T)===-1){s(new q("Unsupported protocol "+T+":",q.ERR_BAD_REQUEST,e));return}v.send(o||null)})},yp=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let s=new AbortController,r;const o=function(c){if(!r){r=!0,l();const u=c instanceof Error?c:this.reason;s.abort(u instanceof q?u:new Gn(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,o(new q(`timeout of ${t}ms exceeded`,q.ETIMEDOUT))},t);const l=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o));const{signal:a}=s;return a.unsubscribe=()=>b.asap(l),a}},bp=function*(e,t){let n=e.byteLength;if(n{const r=_p(e,t);let o=0,i,l=a=>{i||(i=!0,s&&s(a))};return new ReadableStream({async pull(a){try{const{done:c,value:u}=await r.next();if(c){l(),a.close();return}let f=u.byteLength;if(n){let h=o+=f;n(h)}a.enqueue(new Uint8Array(u))}catch(c){throw l(c),c}},cancel(a){return l(a),r.return()}},{highWaterMark:2})},li=64*1024,{isFunction:Qn}=b,wp=(({Request:e,Response:t})=>({Request:e,Response:t}))(b.global),{ReadableStream:ai,TextEncoder:ci}=b.global,ui=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Ep=e=>{e=b.merge.call({skipUndefined:!0},wp,e);const{fetch:t,Request:n,Response:s}=e,r=t?Qn(t):typeof fetch=="function",o=Qn(n),i=Qn(s);if(!r)return!1;const l=r&&Qn(ai),a=r&&(typeof ci=="function"?(g=>_=>g.encode(_))(new ci):async g=>new Uint8Array(await new n(g).arrayBuffer())),c=o&&l&&ui(()=>{let g=!1;const _=new ai,v=new n(Ne.origin,{body:_,method:"POST",get duplex(){return g=!0,"half"}}).headers.has("Content-Type");return _.cancel(),g&&!v}),u=i&&l&&ui(()=>b.isReadableStream(new s("").body)),f={stream:u&&(g=>g.body)};r&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!f[g]&&(f[g]=(_,v)=>{let k=_&&_[g];if(k)return k.call(_);throw new q(`Response type '${g}' is not supported`,q.ERR_NOT_SUPPORT,v)})});const h=async g=>{if(g==null)return 0;if(b.isBlob(g))return g.size;if(b.isSpecCompliantForm(g))return(await new n(Ne.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(b.isArrayBufferView(g)||b.isArrayBuffer(g))return g.byteLength;if(b.isURLSearchParams(g)&&(g=g+""),b.isString(g))return(await a(g)).byteLength},m=async(g,_)=>{const v=b.toFiniteNumber(g.getContentLength());return v??h(_)};return async g=>{let{url:_,method:v,data:k,signal:T,cancelToken:O,timeout:R,onDownloadProgress:B,onUploadProgress:le,responseType:z,headers:Y,withCredentials:X="same-origin",fetchOptions:fe}=sa(g),Re=t||fetch;z=z?(z+"").toLowerCase():"text";let xe=yp([T,O&&O.toAbortSignal()],R),_e=null;const Ie=xe&&xe.unsubscribe&&(()=>{xe.unsubscribe()});let Ze;try{if(le&&c&&v!=="get"&&v!=="head"&&(Ze=await m(Y,k))!==0){let Ee=new n(_,{method:"POST",body:k,duplex:"half"}),ge;if(b.isFormData(k)&&(ge=Ee.headers.get("content-type"))&&Y.setContentType(ge),Ee.body){const[at,et]=si(Ze,ms(ri(le)));k=ii(Ee.body,li,at,et)}}b.isString(X)||(X=X?"include":"omit");const Z=o&&"credentials"in n.prototype,W={...fe,signal:xe,method:v.toUpperCase(),headers:Y.normalize().toJSON(),body:k,duplex:"half",credentials:Z?X:void 0};_e=o&&new n(_,W);let ee=await(o?Re(_e,fe):Re(_,W));const ze=u&&(z==="stream"||z==="response");if(u&&(B||ze&&Ie)){const Ee={};["status","statusText","headers"].forEach(ct=>{Ee[ct]=ee[ct]});const ge=b.toFiniteNumber(ee.headers.get("content-length")),[at,et]=B&&si(ge,ms(ri(B),!0))||[];ee=new s(ii(ee.body,li,at,()=>{et&&et(),Ie&&Ie()}),Ee)}z=z||"text";let lt=await f[b.findKey(f,z)||"text"](ee,g);return!ze&&Ie&&Ie(),await new Promise((Ee,ge)=>{ta(Ee,ge,{data:lt,headers:je.from(ee.headers),status:ee.status,statusText:ee.statusText,config:g,request:_e})})}catch(Z){throw Ie&&Ie(),Z&&Z.name==="TypeError"&&/Load failed|fetch/i.test(Z.message)?Object.assign(new q("Network Error",q.ERR_NETWORK,g,_e,Z&&Z.response),{cause:Z.cause||Z}):q.from(Z,Z&&Z.code,g,_e,Z&&Z.response)}}},Sp=new Map,ra=e=>{let t=e&&e.env||{};const{fetch:n,Request:s,Response:r}=t,o=[s,r,n];let i=o.length,l=i,a,c,u=Sp;for(;l--;)a=o[l],c=u.get(a),c===void 0&&u.set(a,c=l?new Map:Ep(t)),u=c;return c};ra();const Wr={http:$d,xhr:gp,fetch:{get:ra}};b.forEach(Wr,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const fi=e=>`- ${e}`,Rp=e=>b.isFunction(e)||e===null||e===!1;function xp(e,t){e=b.isArray(e)?e:[e];const{length:n}=e;let s,r;const o={};for(let i=0;i`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let l=n?i.length>1?`since : `+i.map(fi).join(` `):" "+fi(i[0]):"as no adapter specified";throw new q("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r}const oa={getAdapter:xp,adapters:Wr};function sr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Gn(null,e)}function di(e){return sr(e),e.headers=je.from(e.headers),e.data=nr.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),oa.getAdapter(e.adapter||qn.adapter,e)(e).then(function(s){return sr(e),s.data=nr.call(e,e.transformResponse,s),s.headers=je.from(s.headers),s},function(s){return ea(s)||(sr(e),s&&s.response&&(s.response.data=nr.call(e,e.transformResponse,s.response),s.response.headers=je.from(s.response.headers))),Promise.reject(s)})}const ia="1.14.0",Bs={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Bs[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const pi={};Bs.transitional=function(t,n,s){function r(o,i){return"[Axios v"+ia+"] Transitional option '"+o+"'"+i+(s?". "+s:"")}return(o,i,l)=>{if(t===!1)throw new q(r(i," has been removed"+(n?" in "+n:"")),q.ERR_DEPRECATED);return n&&!pi[i]&&(pi[i]=!0,console.warn(r(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,l):!0}};Bs.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function Ap(e,t,n){if(typeof e!="object")throw new q("options must be an object",q.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let r=s.length;for(;r-- >0;){const o=s[r],i=t[o];if(i){const l=e[o],a=l===void 0||i(l,o,e);if(a!==!0)throw new q("option "+o+" must be "+a,q.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new q("Unknown option "+o,q.ERR_BAD_OPTION)}}const ns={assertOptions:Ap,validators:Bs},Qe=ns.validators;let Wt=class{constructor(t){this.defaults=t||{},this.interceptors={request:new ti,response:new ti}}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=zt(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:o}=n;s!==void 0&&ns.assertOptions(s,{silentJSONParsing:Qe.transitional(Qe.boolean),forcedJSONParsing:Qe.transitional(Qe.boolean),clarifyTimeoutError:Qe.transitional(Qe.boolean),legacyInterceptorReqResOrdering:Qe.transitional(Qe.boolean)},!1),r!=null&&(b.isFunction(r)?n.paramsSerializer={serialize:r}:ns.assertOptions(r,{encode:Qe.function,serialize:Qe.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),ns.assertOptions(n,{baseUrl:Qe.spelling("baseURL"),withXsrfToken:Qe.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&b.merge(o.common,o[n.method]);o&&b.forEach(["delete","get","head","post","put","patch","common"],g=>{delete o[g]}),n.headers=je.concat(i,o);const l=[];let a=!0;this.interceptors.request.forEach(function(_){if(typeof _.runWhen=="function"&&_.runWhen(n)===!1)return;a=a&&_.synchronous;const v=n.transitional||qr;v&&v.legacyInterceptorReqResOrdering?l.unshift(_.fulfilled,_.rejected):l.push(_.fulfilled,_.rejected)});const c=[];this.interceptors.response.forEach(function(_){c.push(_.fulfilled,_.rejected)});let u,f=0,h;if(!a){const g=[di.bind(this),void 0];for(g.unshift(...l),g.push(...c),h=g.length,u=Promise.resolve(n);f{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 i=new Promise(l=>{s.subscribe(l),o=l}).then(r);return i.cancel=function(){s.unsubscribe(o)},i},t(function(o,i,l){s.reason||(s.reason=new Gn(o,i,l),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 la(function(r){t=r}),cancel:t}}};function Op(e){return function(n){return e.apply(null,n)}}function Tp(e){return b.isObject(e)&&e.isAxiosError===!0}const Sr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Sr).forEach(([e,t])=>{Sr[t]=e});function aa(e){const t=new Wt(e),n=jl(Wt.prototype.request,t);return b.extend(n,Wt.prototype,t,{allOwnKeys:!0}),b.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return aa(zt(e,r))},n}const be=aa(qn);be.Axios=Wt;be.CanceledError=Gn;be.CancelToken=Cp;be.isCancel=ea;be.VERSION=ia;be.toFormData=Ms;be.AxiosError=q;be.Cancel=be.CanceledError;be.all=function(t){return Promise.all(t)};be.spread=Op;be.isAxiosError=Tp;be.mergeConfig=zt;be.AxiosHeaders=je;be.formToJSON=e=>Zl(b.isHTMLForm(e)?new FormData(e):e);be.getAdapter=oa.getAdapter;be.HttpStatusCode=Sr;be.default=be;const{Axios:Nm,AxiosError:Im,CanceledError:km,isCancel:Dm,CancelToken:Fm,VERSION:Lm,all:Mm,Cancel:Bm,isAxiosError:Um,spread:$m,toFormData:jm,AxiosHeaders:Hm,HttpStatusCode:Vm,formToJSON:Km,getAdapter:qm,mergeConfig:Gm}=be,tt=be.create({baseURL:"/api/v1",auth:{username:"neurosurgeon",password:"changeme"},headers:{"Content-Type":"application/json"}});tt.interceptors.response.use(e=>e,e=>{var n,s;const t=((s=(n=e.response)==null?void 0:n.data)==null?void 0:s.error)??e.message??"An unexpected error occurred.";return Promise.reject(new Error(t))});const Pp=$r("books",()=>{const e=re([]),t=re(!1),n=re(!1),s=re(null);async function r(){t.value=!0,s.value=null;try{const a=await tt.get("/books");e.value=a.data}catch(a){s.value=a.message}finally{t.value=!1}}async function o(a){n.value=!0,s.value=null;try{const c=new FormData;c.append("file",a);const f=(await tt.post("/books",c,{headers:{"Content-Type":"multipart/form-data"}})).data;return e.value.unshift(f),f}catch(c){return s.value=c.message,null}finally{n.value=!1}}async function i(a){try{const c=await tt.get(`/books/${a}`),u=e.value.findIndex(f=>f.id===a);u>=0&&(e.value[u]=c.data)}catch{}}async function l(a){s.value=null;try{return await tt.delete(`/books/${a}`),e.value=e.value.filter(c=>c.id!==a),!0}catch(c){return s.value=c.message,!1}}return{books:e,loading:t,uploading:n,error:s,fetchBooks:r,uploadBook:o,refreshBook:i,deleteBook:l}}),Np={class:"book-card card"},Ip={class:"book-header"},kp={class:"book-info"},Dp={class:"book-title"},Fp={class:"book-filename"},Lp={class:"book-meta"},Mp={key:0,class:"meta-item"},Bp={key:1,class:"meta-item"},Up={class:"meta-item"},$p={key:2,class:"meta-item"},jp={key:0,class:"error-message"},Hp={key:1,class:"processing-indicator"},Vp={class:"book-actions"},Kp=["disabled","title"],qp=Pt({__name:"BookCard",props:{book:{},deleting:{type:Boolean}},emits:["delete"],setup(e){const t=e,n=Be(()=>{switch(t.book.status){case"READY":return"status-ready";case"PROCESSING":return"status-processing";case"PENDING":return"status-pending";case"FAILED":return"status-failed";default:return""}});function s(o){return o<1024?`${o} B`:o<1024*1024?`${(o/1024).toFixed(1)} KB`:`${(o/(1024*1024)).toFixed(1)} MB`}function r(o){return new Date(o).toLocaleString()}return(o,i)=>(M(),$("div",Np,[E("div",Ip,[E("div",kp,[E("h3",Dp,J(e.book.title),1),E("p",Fp,J(e.book.fileName),1)]),E("span",{class:Ve(["status-badge",n.value])},J(e.book.status),3)]),E("div",Lp,[e.book.fileSizeBytes?(M(),$("span",Mp,J(s(e.book.fileSizeBytes)),1)):ye("",!0),e.book.pageCount?(M(),$("span",Bp,J(e.book.pageCount)+" pages ",1)):ye("",!0),E("span",Up," Uploaded "+J(r(e.book.uploadedAt)),1),e.book.processedAt?(M(),$("span",$p," Processed "+J(r(e.book.processedAt)),1)):ye("",!0)]),e.book.status==="FAILED"&&e.book.errorMessage?(M(),$("div",jp,[i[1]||(i[1]=E("strong",null,"Error:",-1)),qe(" "+J(e.book.errorMessage),1)])):ye("",!0),e.book.status==="PENDING"||e.book.status==="PROCESSING"?(M(),$("div",Hp,[i[2]||(i[2]=E("div",{class:"spinner spinner-dark"},null,-1)),E("span",null,J(e.book.status==="PENDING"?"Queued for processing...":"Embedding in progress..."),1)])):ye("",!0),E("div",Vp,[E("button",{class:"btn btn-danger",disabled:e.book.status==="PROCESSING"||e.deleting,onClick:i[0]||(i[0]=l=>o.$emit("delete",e.book.id)),title:e.book.status==="PROCESSING"?"Cannot delete while processing":"Delete book"},J(e.deleting?"Deleting...":"Delete"),9,Kp)])]))}}),dn=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},Gp=dn(qp,[["__scopeId","data-v-6a5a0988"]]),Wp={class:"upload-view"},zp={class:"upload-section card"},Jp={key:0,class:"drop-zone-content"},Qp={key:1,class:"drop-zone-selected"},Xp={class:"drop-zone-text"},Yp={class:"drop-zone-hint"},Zp={class:"upload-controls"},eh=["disabled"],th=["disabled"],nh={key:0,class:"spinner"},sh={key:0,class:"upload-feedback upload-feedback--success"},rh={key:1,class:"upload-feedback upload-feedback--error"},oh={class:"book-list-section"},ih={class:"book-list-header"},lh=["disabled"],ah={key:0,class:"spinner spinner-dark"},ch={key:0,class:"empty-state"},uh={key:1,class:"empty-state"},fh={key:2,class:"book-grid"},dh=Pt({__name:"UploadView",setup(e){const t=Pp(),n=We("showToast"),s=re(null),r=re(null),o=re(!1),i=re(!1),l=re(null),a=re(null);let c=null;Cs(async()=>{await t.fetchBooks(),u()}),Lr(()=>{f()});function u(){c=setInterval(async()=>{t.books.some(R=>R.status==="PENDING"||R.status==="PROCESSING")&&await t.fetchBooks()},5e3)}function f(){c!=null&&(clearInterval(c),c=null)}function h(O){const R=O.target;R.files&&R.files.length>0&&g(R.files[0])}function m(O){var B;o.value=!1;const R=(B=O.dataTransfer)==null?void 0:B.files[0];R&&g(R)}function g(O){if(!O.name.toLowerCase().endsWith(".pdf")){l.value="Only PDF files are accepted.";return}r.value=O,l.value=null,i.value=!1}function _(){r.value=null,l.value=null,i.value=!1,s.value&&(s.value.value="")}async function v(){if(!r.value)return;l.value=null,i.value=!1,await t.uploadBook(r.value)?(i.value=!0,_(),n==null||n("Book uploaded — embedding started.","success")):(l.value=t.error??"Upload failed.",n==null||n(l.value,"error"))}async function k(O){a.value=O;const R=await t.deleteBook(O);a.value=null,R||n==null||n(t.error??"Delete failed.","error")}function T(O){return O<1024*1024?`${(O/1024).toFixed(1)} KB`:`${(O/(1024*1024)).toFixed(1)} MB`}return(O,R)=>(M(),$("div",Wp,[R[10]||(R[10]=E("h1",{class:"page-title"},"Book Library",-1)),R[11]||(R[11]=E("p",{class:"page-subtitle"},"Upload medical textbooks (PDF) to build the knowledge base.",-1)),E("div",zp,[R[6]||(R[6]=E("h2",{class:"section-title"},"Upload a Book",-1)),E("div",{class:Ve(["drop-zone",{"drop-zone--active":o.value,"drop-zone--has-file":r.value}]),onDragover:R[0]||(R[0]=hs(B=>o.value=!0,["prevent"])),onDragleave:R[1]||(R[1]=B=>o.value=!1),onDrop:hs(m,["prevent"]),onClick:R[2]||(R[2]=B=>{var le;return(le=s.value)==null?void 0:le.click()})},[E("input",{ref_key:"fileInput",ref:s,type:"file",accept:".pdf,application/pdf",class:"file-input-hidden",onChange:h},null,544),r.value?(M(),$("div",Qp,[R[5]||(R[5]=E("span",{class:"drop-zone-icon"},"✅",-1)),E("p",Xp,J(r.value.name),1),E("p",Yp,J(T(r.value.size)),1)])):(M(),$("div",Jp,[...R[4]||(R[4]=[E("span",{class:"drop-zone-icon"},"📄",-1),E("p",{class:"drop-zone-text"},"Drop a PDF here or click to browse",-1),E("p",{class:"drop-zone-hint"},"Maximum size: 100 MB",-1)])]))],34),E("div",Zp,[E("button",{class:"btn btn-secondary",disabled:!r.value||U(t).uploading,onClick:_}," Clear ",8,eh),E("button",{class:"btn btn-primary",disabled:!r.value||U(t).uploading,onClick:v},[U(t).uploading?(M(),$("span",nh)):ye("",!0),qe(" "+J(U(t).uploading?"Uploading...":"Upload"),1)],8,th)]),i.value?(M(),$("div",sh," Book uploaded successfully — embedding will start shortly. ")):ye("",!0),l.value?(M(),$("div",rh,J(l.value),1)):ye("",!0)]),E("div",oh,[E("div",ih,[R[7]||(R[7]=E("h2",{class:"section-title"},"Uploaded Books",-1)),E("button",{class:"btn btn-secondary",disabled:U(t).loading,onClick:R[3]||(R[3]=B=>U(t).fetchBooks())},[U(t).loading?(M(),$("span",ah)):ye("",!0),qe(" "+J(U(t).loading?"Refreshing...":"Refresh"),1)],8,lh)]),U(t).loading&&U(t).books.length===0?(M(),$("div",ch,[...R[8]||(R[8]=[E("div",{class:"spinner spinner-dark",style:{width:"32px",height:"32px",margin:"0 auto 1rem"}},null,-1),E("p",{class:"empty-state-text"},"Loading library...",-1)])])):U(t).books.length===0?(M(),$("div",uh,[...R[9]||(R[9]=[E("div",{class:"empty-state-icon"},"📚",-1),E("p",{class:"empty-state-text"},"No books uploaded yet",-1),E("p",{class:"empty-state-hint"},"Upload a medical textbook PDF to get started.",-1)])])):(M(),$("div",fh,[(M(!0),$(Le,null,on(U(t).books,B=>(M(),Ps(Gp,{key:B.id,book:B,deleting:a.value===B.id,onDelete:k},null,8,["book","deleting"]))),128))]))])]))}}),ph=dn(dh,[["__scopeId","data-v-b9e6730d"]]),ca=$r("topics",()=>{const e=re([]),t=re(null),n=re(null),s=re(!1),r=re(!1),o=re(null);async function i(){s.value=!0,o.value=null;try{const a=await tt.get("/topics");e.value=a.data}catch(a){o.value=a.message}finally{s.value=!1}}async function l(a){r.value=!0,n.value=a,t.value=null,o.value=null;try{const c=await tt.post(`/topics/${a}/summary`);return t.value=c.data,c.data}catch(c){return o.value=c.message,null}finally{r.value=!1,n.value=null}}return{topics:e,activeSummary:t,activeSummaryTopicId:n,loading:s,summaryLoading:r,error:o,fetchTopics:i,generateSummary:l}}),hh={class:"topic-header"},mh={class:"topic-name"},gh={class:"topic-description"},yh={class:"topic-actions"},bh=["disabled"],_h={key:0,class:"spinner"},vh=Pt({__name:"TopicCard",props:{topic:{},isGenerating:{type:Boolean}},emits:["generate"],setup(e){const t=e,n=Be(()=>{switch(t.topic.category){case"Vascular":return"category-vascular";case"Oncology":return"category-oncology";case"Spine":return"category-spine";case"Trauma":return"category-trauma";default:return"category-default"}});return(s,r)=>(M(),$("div",{class:Ve(["topic-card card",{"topic-card--active":e.isGenerating}])},[E("div",hh,[E("span",{class:Ve(["category-badge",n.value])},J(e.topic.category),3)]),E("h3",mh,J(e.topic.name),1),E("p",gh,J(e.topic.description),1),E("div",yh,[E("button",{class:"btn btn-primary",disabled:e.isGenerating,onClick:r[0]||(r[0]=o=>s.$emit("generate",e.topic.id))},[e.isGenerating?(M(),$("span",_h)):ye("",!0),qe(" "+J(e.isGenerating?"Generating...":"Generate Summary"),1)],8,bh)])],2))}}),wh=dn(vh,[["__scopeId","data-v-bdf7b60e"]]),Eh={class:"topics-view"},Sh={key:0,class:"empty-state"},Rh={key:1,class:"empty-state"},xh={class:"empty-state-hint"},Ah={key:2,class:"topics-layout"},Ch={class:"topic-grid"},Oh={key:0,class:"summary-panel card"},Th={key:1,class:"summary-panel card summary-error"},Ph={class:"error-text"},Nh={key:0,class:"no-books-hint"},Ih={key:2,class:"summary-panel card"},kh={class:"summary-header"},Dh={class:"summary-topic-name"},Fh={class:"summary-timestamp"},Lh={class:"summary-text"},Mh={key:0,class:"sources-section"},Bh={key:0,class:"sources-list"},Uh={class:"source-book"},$h={key:0,class:"source-page"},jh={key:1,class:"no-sources"},Hh=Pt({__name:"TopicsView",setup(e){const t=ca(),n=We("showToast"),s=re(!0),r=re(null),o=re(!1);Cs(async()=>{await t.fetchTopics()});async function i(a){r.value=null,o.value=!1,s.value=!0,await t.generateSummary(a)||(r.value=t.error??"Failed to generate summary.",o.value=r.value.toLowerCase().includes("no books")||r.value.toLowerCase().includes("knowledge source"),n==null||n(r.value,"error"))}function l(a){return new Date(a).toLocaleString()}return(a,c)=>(M(),$("div",Eh,[c[10]||(c[10]=E("h1",{class:"page-title"},"Topics",-1)),c[11]||(c[11]=E("p",{class:"page-subtitle"},"Select a topic to generate an AI-powered summary from uploaded books.",-1)),U(t).loading?(M(),$("div",Sh,[...c[2]||(c[2]=[E("div",{class:"spinner spinner-dark",style:{width:"32px",height:"32px",margin:"0 auto 1rem"}},null,-1),E("p",{class:"empty-state-text"},"Loading topics...",-1)])])):U(t).error&&U(t).topics.length===0?(M(),$("div",Rh,[c[3]||(c[3]=E("div",{class:"empty-state-icon"},"⚠️",-1)),c[4]||(c[4]=E("p",{class:"empty-state-text"},"Failed to load topics",-1)),E("p",xh,J(U(t).error),1),E("button",{class:"btn btn-primary",style:{"margin-top":"1rem"},onClick:c[0]||(c[0]=u=>U(t).fetchTopics())},"Retry")])):(M(),$("div",Ah,[E("div",Ch,[(M(!0),$(Le,null,on(U(t).topics,u=>(M(),Ps(wh,{key:u.id,topic:u,"is-generating":U(t).activeSummaryTopicId===u.id,onGenerate:i},null,8,["topic","is-generating"]))),128))]),U(t).summaryLoading?(M(),$("div",Oh,[...c[5]||(c[5]=[E("div",{class:"summary-loading"},[E("div",{class:"spinner spinner-dark",style:{width:"36px",height:"36px",margin:"0 auto 1rem"}}),E("p",{class:"summary-loading-text"},"Generating summary from uploaded books..."),E("p",{class:"summary-loading-hint"},"This may take up to 30 seconds.")],-1)])])):r.value?(M(),$("div",Th,[c[9]||(c[9]=E("h2",{class:"summary-topic-name"},"Summary Error",-1)),E("p",Ph,J(r.value),1),o.value?(M(),$("p",Nh,[c[7]||(c[7]=qe(" Please ",-1)),Ae(U(Pn),{to:"/"},{default:En(()=>[...c[6]||(c[6]=[qe("upload and process at least one book",-1)])]),_:1}),c[8]||(c[8]=qe(" first. ",-1))])):ye("",!0)])):U(t).activeSummary?(M(),$("div",Ih,[E("div",kh,[E("h2",Dh,J(U(t).activeSummary.topicName),1),E("span",Fh,J(l(U(t).activeSummary.generatedAt)),1)]),E("div",Lh,J(U(t).activeSummary.summary),1),U(t).activeSummary.sources.length>0?(M(),$("div",Mh,[E("button",{class:"sources-toggle",onClick:c[1]||(c[1]=u=>s.value=!s.value)},[qe(" Sources ("+J(U(t).activeSummary.sources.length)+") ",1),E("span",null,J(s.value?"▲":"▼"),1)]),s.value?(M(),$("div",Bh,[(M(!0),$(Le,null,on(U(t).activeSummary.sources,(u,f)=>(M(),$("div",{key:f,class:"source-chip"},[E("span",Uh,J(u.bookTitle),1),u.page?(M(),$("span",$h,"p. "+J(u.page),1)):ye("",!0)]))),128))])):ye("",!0)])):(M(),$("div",jh," No source citations available for this summary. "))])):ye("",!0)]))]))}}),Vh=dn(Hh,[["__scopeId","data-v-97a1ab3c"]]),Kh=$r("chat",()=>{const e=re(null),t=re([]),n=re(!1),s=re(!1),r=re(null);async function o(c){n.value=!0,r.value=null;try{const u=c?{topicId:c}:{},f=await tt.post("/chat/sessions",u);return e.value=f.data,t.value=[],!0}catch(u){return r.value=u.message,!1}finally{n.value=!1}}async function i(){if(e.value){n.value=!0,r.value=null;try{const c=await tt.get(`/chat/sessions/${e.value.sessionId}/messages`);t.value=c.data}catch(c){r.value=c.message}finally{n.value=!1}}}async function l(c){if(!e.value)return!1;s.value=!0,r.value=null;const u={id:crypto.randomUUID(),role:"USER",content:c,sources:[],createdAt:new Date().toISOString()};t.value.push(u);try{const f=await tt.post(`/chat/sessions/${e.value.sessionId}/messages`,{content:c});return t.value=t.value.filter(h=>h.id!==u.id),await i(),!0}catch(f){return t.value=t.value.filter(h=>h.id!==u.id),r.value=f.message,!1}finally{s.value=!1}}async function a(){if(!e.value)return!1;n.value=!0,r.value=null;try{return await tt.delete(`/chat/sessions/${e.value.sessionId}`),e.value=null,t.value=[],!0}catch(c){return r.value=c.message,!1}finally{n.value=!1}}return{session:e,messages:t,loading:n,sending:s,error:r,createSession:o,loadMessages:i,sendMessage:l,deleteSession:a}}),qh={class:"message-role"},Gh={class:"message-content"},Wh={key:0,class:"message-sources"},zh={class:"source-chips"},Jh={class:"source-book-title"},Qh={key:0,class:"source-page"},Xh={class:"message-timestamp"},Yh=Pt({__name:"ChatMessage",props:{message:{}},setup(e){const t=e,n=Be(()=>t.message.role==="USER");function s(r){return new Date(r).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}return(r,o)=>(M(),$("div",{class:Ve(["message-wrapper",n.value?"message-wrapper--user":"message-wrapper--assistant"])},[E("div",{class:Ve(["message-bubble",n.value?"bubble-user":"bubble-assistant"])},[E("div",qh,J(n.value?"You":"AI Teacher"),1),E("div",Gh,J(e.message.content),1),!n.value&&e.message.sources&&e.message.sources.length>0?(M(),$("div",Wh,[o[1]||(o[1]=E("div",{class:"sources-label"},"Sources:",-1)),E("div",zh,[(M(!0),$(Le,null,on(e.message.sources,(i,l)=>(M(),$("span",{key:l,class:"source-chip"},[o[0]||(o[0]=E("span",{class:"source-book-icon"},"📖",-1)),E("span",Jh,J(i.bookTitle),1),i.page?(M(),$("span",Qh,"p. "+J(i.page),1)):ye("",!0)]))),128))])])):ye("",!0),E("div",Xh,J(s(e.message.createdAt)),1)],2)],2))}}),Zh=dn(Yh,[["__scopeId","data-v-0025e302"]]),em={class:"chat-view"},tm={key:0,class:"session-setup card"},nm={class:"form-group"},sm=["value"],rm={key:0,class:"error-banner"},om=["disabled"],im={key:0,class:"spinner"},lm={key:1,class:"chat-layout"},am={class:"session-bar card"},cm={class:"session-info"},um={class:"session-id"},fm={key:0,class:"session-topic"},dm={key:1,class:"session-topic"},pm=["disabled"],hm={key:0,class:"empty-state"},mm={key:1,class:"empty-state"},gm={key:2,class:"messages-list"},ym={key:0,class:"typing-indicator"},bm={class:"input-area card"},_m={key:0,class:"error-banner"},vm={class:"input-row"},wm=["disabled","onKeydown"],Em=["disabled"],Sm={key:0,class:"spinner"},Rm={key:1},xm=Pt({__name:"ChatView",setup(e){const t=Kh(),n=ca(),s=We("showToast"),r=re(""),o=re(""),i=re(null);Cs(async()=>{n.topics.length===0&&await n.fetchTopics()}),qt(()=>t.messages.length,async()=>{await rn(),l()}),qt(()=>t.sending,async()=>{await rn(),l()});function l(){i.value&&(i.value.scrollTop=i.value.scrollHeight)}function a(h){const m=n.topics.find(g=>g.id===h);return m?m.name:h}async function c(){const h=r.value||void 0;await t.createSession(h)||s==null||s(t.error??"Could not start session.","error")}async function u(){await t.deleteSession()?r.value="":s==null||s(t.error??"Could not clear conversation.","error")}async function f(){const h=o.value.trim();if(!h||t.sending)return;o.value="",await t.sendMessage(h)||s==null||s(t.error??"Failed to send message.","error")}return(h,m)=>(M(),$("div",em,[m[11]||(m[11]=E("h1",{class:"page-title"},"Knowledge Chat",-1)),m[12]||(m[12]=E("p",{class:"page-subtitle"},"Ask questions grounded in your uploaded medical textbooks.",-1)),U(t).session?(M(),$("div",lm,[E("div",am,[E("div",cm,[m[6]||(m[6]=E("span",{class:"session-label"},"Session",-1)),E("span",um,J(U(t).session.sessionId.slice(0,8))+"...",1),U(t).session.topicId?(M(),$("span",fm," Topic: "+J(a(U(t).session.topicId)),1)):(M(),$("span",dm,"Free-form chat"))]),E("button",{class:"btn btn-danger",disabled:U(t).loading,onClick:u}," Clear Conversation ",8,pm)]),E("div",{class:"messages-container",ref_key:"messagesContainer",ref:i},[U(t).loading&&U(t).messages.length===0?(M(),$("div",hm,[...m[7]||(m[7]=[E("div",{class:"spinner spinner-dark",style:{width:"32px",height:"32px",margin:"0 auto 1rem"}},null,-1),E("p",{class:"empty-state-text"},"Loading messages...",-1)])])):U(t).messages.length===0?(M(),$("div",mm,[...m[8]||(m[8]=[E("div",{class:"empty-state-icon"},"💬",-1),E("p",{class:"empty-state-text"},"No messages yet",-1),E("p",{class:"empty-state-hint"},"Ask a question about the uploaded books below.",-1)])])):(M(),$("div",gm,[(M(!0),$(Le,null,on(U(t).messages,g=>(M(),Ps(Zh,{key:g.id,message:g},null,8,["message"]))),128)),U(t).sending?(M(),$("div",ym,[...m[9]||(m[9]=[E("div",{class:"typing-bubble"},[E("span"),E("span"),E("span")],-1)])])):ye("",!0)]))],512),E("div",bm,[U(t).error?(M(),$("div",_m,J(U(t).error),1)):ye("",!0),E("div",vm,[so(E("textarea",{"onUpdate:modelValue":m[1]||(m[1]=g=>o.value=g),class:"message-input",placeholder:"Ask a question about your uploaded books...",rows:"2",disabled:U(t).sending,onKeydown:[No(hs(f,["exact","prevent"]),["enter"]),m[2]||(m[2]=No(hs(g=>o.value+=` `,["shift","exact"]),["enter"]))]},null,40,wm),[[Au,o.value]]),E("button",{class:"btn btn-primary send-btn",disabled:!o.value.trim()||U(t).sending,onClick:f},[U(t).sending?(M(),$("span",Sm)):(M(),$("span",Rm,"Send"))],8,Em)]),m[10]||(m[10]=E("p",{class:"input-hint"},"Press Enter to send, Shift+Enter for new line.",-1))])])):(M(),$("div",tm,[m[5]||(m[5]=E("h2",{class:"section-title"},"Start a New Chat",-1)),E("div",nm,[m[4]||(m[4]=E("label",{class:"form-label"},"Topic (optional)",-1)),so(E("select",{"onUpdate:modelValue":m[0]||(m[0]=g=>r.value=g),class:"form-select"},[m[3]||(m[3]=E("option",{value:""},"Free-form chat (any neurosurgery question)",-1)),(M(!0),$(Le,null,on(U(n).topics,g=>(M(),$("option",{key:g.id,value:g.id},J(g.name)+" ("+J(g.category)+") ",9,sm))),128))],512),[[Cu,r.value]])]),U(t).error?(M(),$("div",rm,J(U(t).error),1)):ye("",!0),E("button",{class:"btn btn-primary",disabled:U(t).loading,onClick:c},[U(t).loading?(M(),$("span",im)):ye("",!0),qe(" "+J(U(t).loading?"Starting...":"New Chat"),1)],8,om)]))]))}}),Am=dn(xm,[["__scopeId","data-v-e6cdfc72"]]),Cm=Gf({history:Af("/"),routes:[{path:"/",name:"upload",component:ph},{path:"/topics",name:"topics",component:Vh},{path:"/chat",name:"chat",component:Am}]}),zr=ku(Xf);zr.use(Lu());zr.use(Cm);zr.mount("#app");