19 lines
66 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function s(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(r){if(r.ep)return;r.ep=!0;const i=s(r);fetch(r.href,i)}})();/**
* @vue/shared v3.5.17
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**//*! #__NO_SIDE_EFFECTS__ */function Ds(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const j={},tt=[],Te=()=>{},Wr=()=>!1,kt=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ls=e=>e.startsWith("onUpdate:"),se=Object.assign,Hs=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},qr=Object.prototype.hasOwnProperty,D=(e,t)=>qr.call(e,t),A=Array.isArray,st=e=>es(e)==="[object Map]",Dn=e=>es(e)==="[object Set]",P=e=>typeof e=="function",G=e=>typeof e=="string",Ve=e=>typeof e=="symbol",B=e=>e!==null&&typeof e=="object",Ln=e=>(B(e)||P(e))&&P(e.then)&&P(e.catch),Hn=Object.prototype.toString,es=e=>Hn.call(e),Gr=e=>es(e).slice(8,-1),jn=e=>es(e)==="[object Object]",js=e=>G(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,gt=Ds(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ts=e=>{const t=Object.create(null);return s=>t[s]||(t[s]=e(s))},Jr=/-(\w)/g,Ne=ts(e=>e.replace(Jr,(t,s)=>s?s.toUpperCase():"")),Yr=/\B([A-Z])/g,Be=ts(e=>e.replace(Yr,"-$1").toLowerCase()),Nn=ts(e=>e.charAt(0).toUpperCase()+e.slice(1)),as=ts(e=>e?`on${Nn(e)}`:""),je=(e,t)=>!Object.is(e,t),Kt=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},Ss=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},Cs=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let rn;const ss=()=>rn||(rn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ns(e){if(A(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],r=G(n)?Qr(n):Ns(n);if(r)for(const i in r)t[i]=r[i]}return t}else if(G(e)||B(e))return e}const zr=/;(?![^(]*\))/g,Xr=/:([^]+)/,Zr=/\/\*[^]*?\*\//g;function Qr(e){const t={};return e.replace(Zr,"").split(zr).forEach(s=>{if(s){const n=s.split(Xr);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Ot(e){let t="";if(G(e))t=e;else if(A(e))for(let s=0;s<e.length;s++){const n=Ot(e[s]);n&&(t+=n+" ")}else if(B(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const kr="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ei=Ds(kr);function Kn(e){return!!e||e===""}const Un=e=>!!(e&&e.__v_isRef===!0),qt=e=>G(e)?e:e==null?"":A(e)||B(e)&&(e.toString===Hn||!P(e.toString))?Un(e)?qt(e.value):JSON.stringify(e,Vn,2):String(e),Vn=(e,t)=>Un(t)?Vn(e,t.value):st(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,r],i)=>(s[ds(n,i)+" =>"]=r,s),{})}:Dn(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>ds(s))}:Ve(t)?ds(t):B(t)&&!A(t)&&!jn(t)?String(t):t,ds=(e,t="")=>{var s;return Ve(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/**
* @vue/reactivity v3.5.17
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let ie;class ti{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=ie,!t&&ie&&(this.index=(ie.scopes||(ie.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=ie;try{return ie=this,t()}finally{ie=s}}}on(){++this._on===1&&(this.prevScope=ie,ie=this)}off(){this._on>0&&--this._on===0&&(ie=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function si(){return ie}let U;const hs=new WeakSet;class Bn{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ie&&ie.active&&ie.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,hs.has(this)&&(hs.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||qn(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,on(this),Gn(this);const t=U,s=ge;U=this,ge=!0;try{return this.fn()}finally{Jn(this),U=t,ge=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Vs(t);this.deps=this.depsTail=void 0,on(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?hs.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ts(this)&&this.run()}get dirty(){return Ts(this)}}let Wn=0,mt,_t;function qn(e,t=!1){if(e.flags|=8,t){e.next=_t,_t=e;return}e.next=mt,mt=e}function Ks(){Wn++}function Us(){if(--Wn>0)return;if(_t){let t=_t;for(_t=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;mt;){let t=mt;for(mt=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function Gn(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Jn(e){let t,s=e.depsTail,n=s;for(;n;){const r=n.prevDep;n.version===-1?(n===s&&(s=r),Vs(n),ni(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=r}e.deps=t,e.depsTail=s}function Ts(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Yn(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Yn(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===wt)||(e.globalVersion=wt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ts(e))))return;e.flags|=2;const t=e.dep,s=U,n=ge;U=e,ge=!0;try{Gn(e);const r=e.fn(e._value);(t.version===0||je(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{U=s,ge=n,Jn(e),e.flags&=-3}}function Vs(e,t=!1){const{dep:s,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let i=s.computed.deps;i;i=i.nextDep)Vs(i,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function ni(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let ge=!0;const zn=[];function Ie(){zn.push(ge),ge=!1}function Re(){const e=zn.pop();ge=e===void 0?!0:e}function on(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=U;U=void 0;try{t()}finally{U=s}}}let wt=0;class ri{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Bs{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(!U||!ge||U===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==U)s=this.activeLink=new ri(U,this),U.deps?(s.prevDep=U.depsTail,U.depsTail.nextDep=s,U.depsTail=s):U.deps=U.depsTail=s,Xn(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=U.depsTail,s.nextDep=void 0,U.depsTail.nextDep=s,U.depsTail=s,U.deps===s&&(U.deps=n)}return s}trigger(t){this.version++,wt++,this.notify(t)}notify(t){Ks();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{Us()}}}function Xn(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)Xn(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const Es=new WeakMap,Xe=Symbol(""),Os=Symbol(""),St=Symbol("");function X(e,t,s){if(ge&&U){let n=Es.get(e);n||Es.set(e,n=new Map);let r=n.get(s);r||(n.set(s,r=new Bs),r.map=n,r.key=s),r.track()}}function Ae(e,t,s,n,r,i){const o=Es.get(e);if(!o){wt++;return}const l=f=>{f&&f.trigger()};if(Ks(),t==="clear")o.forEach(l);else{const f=A(e),h=f&&js(s);if(f&&s==="length"){const a=Number(n);o.forEach((p,S)=>{(S==="length"||S===St||!Ve(S)&&S>=a)&&l(p)})}else switch((s!==void 0||o.has(void 0))&&l(o.get(s)),h&&l(o.get(St)),t){case"add":f?h&&l(o.get("length")):(l(o.get(Xe)),st(e)&&l(o.get(Os)));break;case"delete":f||(l(o.get(Xe)),st(e)&&l(o.get(Os)));break;case"set":st(e)&&l(o.get(Xe));break}}Us()}function Ze(e){const t=$(e);return t===e?t:(X(t,"iterate",St),pe(e)?t:t.map(Y))}function ns(e){return X(e=$(e),"iterate",St),e}const ii={__proto__:null,[Symbol.iterator](){return ps(this,Symbol.iterator,Y)},concat(...e){return Ze(this).concat(...e.map(t=>A(t)?Ze(t):t))},entries(){return ps(this,"entries",e=>(e[1]=Y(e[1]),e))},every(e,t){return Oe(this,"every",e,t,void 0,arguments)},filter(e,t){return Oe(this,"filter",e,t,s=>s.map(Y),arguments)},find(e,t){return Oe(this,"find",e,t,Y,arguments)},findIndex(e,t){return Oe(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Oe(this,"findLast",e,t,Y,arguments)},findLastIndex(e,t){return Oe(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Oe(this,"forEach",e,t,void 0,arguments)},includes(...e){return gs(this,"includes",e)},indexOf(...e){return gs(this,"indexOf",e)},join(e){return Ze(this).join(e)},lastIndexOf(...e){return gs(this,"lastIndexOf",e)},map(e,t){return Oe(this,"map",e,t,void 0,arguments)},pop(){return at(this,"pop")},push(...e){return at(this,"push",e)},reduce(e,...t){return ln(this,"reduce",e,t)},reduceRight(e,...t){return ln(this,"reduceRight",e,t)},shift(){return at(this,"shift")},some(e,t){return Oe(this,"some",e,t,void 0,arguments)},splice(...e){return at(this,"splice",e)},toReversed(){return Ze(this).toReversed()},toSorted(e){return Ze(this).toSorted(e)},toSpliced(...e){return Ze(this).toSpliced(...e)},unshift(...e){return at(this,"unshift",e)},values(){return ps(this,"values",Y)}};function ps(e,t,s){const n=ns(e),r=n[t]();return n!==e&&!pe(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.value&&(i.value=s(i.value)),i}),r}const oi=Array.prototype;function Oe(e,t,s,n,r,i){const o=ns(e),l=o!==e&&!pe(e),f=o[t];if(f!==oi[t]){const p=f.apply(e,i);return l?Y(p):p}let h=s;o!==e&&(l?h=function(p,S){return s.call(this,Y(p),S,e)}:s.length>2&&(h=function(p,S){return s.call(this,p,S,e)}));const a=f.call(o,h,n);return l&&r?r(a):a}function ln(e,t,s,n){const r=ns(e);let i=s;return r!==e&&(pe(e)?s.length>3&&(i=function(o,l,f){return s.call(this,o,l,f,e)}):i=function(o,l,f){return s.call(this,o,Y(l),f,e)}),r[t](i,...n)}function gs(e,t,s){const n=$(e);X(n,"iterate",St);const r=n[t](...s);return(r===-1||r===!1)&&Js(s[0])?(s[0]=$(s[0]),n[t](...s)):r}function at(e,t,s=[]){Ie(),Ks();const n=$(e)[t].apply(e,s);return Us(),Re(),n}const li=Ds("__proto__,__v_isRef,__isVue"),Zn=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ve));function ci(e){Ve(e)||(e=String(e));const t=$(this);return X(t,"has",e),t.hasOwnProperty(e)}class Qn{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(s==="__v_isReactive")return!r;if(s==="__v_isReadonly")return r;if(s==="__v_isShallow")return i;if(s==="__v_raw")return n===(r?i?bi:sr:i?tr:er).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=A(t);if(!r){let f;if(o&&(f=ii[s]))return f;if(s==="hasOwnProperty")return ci}const l=Reflect.get(t,s,Z(t)?t:n);return(Ve(s)?Zn.has(s):li(s))||(r||X(t,"get",s),i)?l:Z(l)?o&&js(s)?l:l.value:B(l)?r?nr(l):qs(l):l}}class kn extends Qn{constructor(t=!1){super(!1,t)}set(t,s,n,r){let i=t[s];if(!this._isShallow){const f=Ke(i);if(!pe(n)&&!Ke(n)&&(i=$(i),n=$(n)),!A(t)&&Z(i)&&!Z(n))return f?!1:(i.value=n,!0)}const o=A(t)&&js(s)?Number(s)<t.length:D(t,s),l=Reflect.set(t,s,n,Z(t)?t:r);return t===$(r)&&(o?je(n,i)&&Ae(t,"set",s,n):Ae(t,"add",s,n)),l}deleteProperty(t,s){const n=D(t,s);t[s];const r=Reflect.deleteProperty(t,s);return r&&n&&Ae(t,"delete",s,void 0),r}has(t,s){const n=Reflect.has(t,s);return(!Ve(s)||!Zn.has(s))&&X(t,"has",s),n}ownKeys(t){return X(t,"iterate",A(t)?"length":Xe),Reflect.ownKeys(t)}}class fi extends Qn{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const ui=new kn,ai=new fi,di=new kn(!0);const Ms=e=>e,Lt=e=>Reflect.getPrototypeOf(e);function hi(e,t,s){return function(...n){const r=this.__v_raw,i=$(r),o=st(i),l=e==="entries"||e===Symbol.iterator&&o,f=e==="keys"&&o,h=r[e](...n),a=s?Ms:t?Gt:Y;return!t&&X(i,"iterate",f?Os:Xe),{next(){const{value:p,done:S}=h.next();return S?{value:p,done:S}:{value:l?[a(p[0]),a(p[1])]:a(p),done:S}},[Symbol.iterator](){return this}}}}function Ht(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function pi(e,t){const s={get(r){const i=this.__v_raw,o=$(i),l=$(r);e||(je(r,l)&&X(o,"get",r),X(o,"get",l));const{has:f}=Lt(o),h=t?Ms:e?Gt:Y;if(f.call(o,r))return h(i.get(r));if(f.call(o,l))return h(i.get(l));i!==o&&i.get(r)},get size(){const r=this.__v_raw;return!e&&X($(r),"iterate",Xe),Reflect.get(r,"size",r)},has(r){const i=this.__v_raw,o=$(i),l=$(r);return e||(je(r,l)&&X(o,"has",r),X(o,"has",l)),r===l?i.has(r):i.has(r)||i.has(l)},forEach(r,i){const o=this,l=o.__v_raw,f=$(l),h=t?Ms:e?Gt:Y;return!e&&X(f,"iterate",Xe),l.forEach((a,p)=>r.call(i,h(a),h(p),o))}};return se(s,e?{add:Ht("add"),set:Ht("set"),delete:Ht("delete"),clear:Ht("clear")}:{add(r){!t&&!pe(r)&&!Ke(r)&&(r=$(r));const i=$(this);return Lt(i).has.call(i,r)||(i.add(r),Ae(i,"add",r,r)),this},set(r,i){!t&&!pe(i)&&!Ke(i)&&(i=$(i));const o=$(this),{has:l,get:f}=Lt(o);let h=l.call(o,r);h||(r=$(r),h=l.call(o,r));const a=f.call(o,r);return o.set(r,i),h?je(i,a)&&Ae(o,"set",r,i):Ae(o,"add",r,i),this},delete(r){const i=$(this),{has:o,get:l}=Lt(i);let f=o.call(i,r);f||(r=$(r),f=o.call(i,r)),l&&l.call(i,r);const h=i.delete(r);return f&&Ae(i,"delete",r,void 0),h},clear(){const r=$(this),i=r.size!==0,o=r.clear();return i&&Ae(r,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{s[r]=hi(r,e,t)}),s}function Ws(e,t){const s=pi(e,t);return(n,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?n:Reflect.get(D(s,r)&&r in n?s:n,r,i)}const gi={get:Ws(!1,!1)},mi={get:Ws(!1,!0)},_i={get:Ws(!0,!1)};const er=new WeakMap,tr=new WeakMap,sr=new WeakMap,bi=new WeakMap;function yi(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function vi(e){return e.__v_skip||!Object.isExtensible(e)?0:yi(Gr(e))}function qs(e){return Ke(e)?e:Gs(e,!1,ui,gi,er)}function xi(e){return Gs(e,!1,di,mi,tr)}function nr(e){return Gs(e,!0,ai,_i,sr)}function Gs(e,t,s,n,r){if(!B(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=vi(e);if(i===0)return e;const o=r.get(e);if(o)return o;const l=new Proxy(e,i===2?n:s);return r.set(e,l),l}function nt(e){return Ke(e)?nt(e.__v_raw):!!(e&&e.__v_isReactive)}function Ke(e){return!!(e&&e.__v_isReadonly)}function pe(e){return!!(e&&e.__v_isShallow)}function Js(e){return e?!!e.__v_raw:!1}function $(e){const t=e&&e.__v_raw;return t?$(t):e}function wi(e){return!D(e,"__v_skip")&&Object.isExtensible(e)&&Ss(e,"__v_skip",!0),e}const Y=e=>B(e)?qs(e):e,Gt=e=>B(e)?nr(e):e;function Z(e){return e?e.__v_isRef===!0:!1}function et(e){return Si(e,!1)}function Si(e,t){return Z(e)?e:new Ci(e,t)}class Ci{constructor(t,s){this.dep=new Bs,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:$(t),this._value=s?t:Y(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||pe(t)||Ke(t);t=n?t:$(t),je(t,s)&&(this._rawValue=t,this._value=n?t:Y(t),this.dep.trigger())}}function Ti(e){return Z(e)?e.value:e}const Ei={get:(e,t,s)=>t==="__v_raw"?e:Ti(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const r=e[t];return Z(r)&&!Z(s)?(r.value=s,!0):Reflect.set(e,t,s,n)}};function rr(e){return nt(e)?e:new Proxy(e,Ei)}class Oi{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new Bs(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=wt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&U!==this)return qn(this,!0),!0}get value(){const t=this.dep.track();return Yn(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Mi(e,t,s=!1){let n,r;return P(e)?n=e:(n=e.get,r=e.set),new Oi(n,r,s)}const jt={},Jt=new WeakMap;let ze;function Ai(e,t=!1,s=ze){if(s){let n=Jt.get(s);n||Jt.set(s,n=[]),n.push(e)}}function Pi(e,t,s=j){const{immediate:n,deep:r,once:i,scheduler:o,augmentJob:l,call:f}=s,h=O=>r?O:pe(O)||r===!1||r===0?Pe(O,1):Pe(O);let a,p,S,C,F=!1,R=!1;if(Z(e)?(p=()=>e.value,F=pe(e)):nt(e)?(p=()=>h(e),F=!0):A(e)?(R=!0,F=e.some(O=>nt(O)||pe(O)),p=()=>e.map(O=>{if(Z(O))return O.value;if(nt(O))return h(O);if(P(O))return f?f(O,2):O()})):P(e)?t?p=f?()=>f(e,2):e:p=()=>{if(S){Ie();try{S()}finally{Re()}}const O=ze;ze=a;try{return f?f(e,3,[C]):e(C)}finally{ze=O}}:p=Te,t&&r){const O=p,J=r===!0?1/0:r;p=()=>Pe(O(),J)}const z=si(),H=()=>{a.stop(),z&&z.active&&Hs(z.effects,a)};if(i&&t){const O=t;t=(...J)=>{O(...J),H()}}let W=R?new Array(e.length).fill(jt):jt;const q=O=>{if(!(!(a.flags&1)||!a.dirty&&!O))if(t){const J=a.run();if(r||F||(R?J.some(($e,_e)=>je($e,W[_e])):je(J,W))){S&&S();const $e=ze;ze=a;try{const _e=[J,W===jt?void 0:R&&W[0]===jt?[]:W,C];W=J,f?f(t,3,_e):t(..._e)}finally{ze=$e}}}else a.run()};return l&&l(q),a=new Bn(p),a.scheduler=o?()=>o(q,!1):q,C=O=>Ai(O,!1,a),S=a.onStop=()=>{const O=Jt.get(a);if(O){if(f)f(O,4);else for(const J of O)J();Jt.delete(a)}},t?n?q(!0):W=a.run():o?o(q.bind(null,!0),!0):a.run(),H.pause=a.pause.bind(a),H.resume=a.resume.bind(a),H.stop=H,H}function Pe(e,t=1/0,s){if(t<=0||!B(e)||e.__v_skip||(s=s||new Set,s.has(e)))return e;if(s.add(e),t--,Z(e))Pe(e.value,t,s);else if(A(e))for(let n=0;n<e.length;n++)Pe(e[n],t,s);else if(Dn(e)||st(e))e.forEach(n=>{Pe(n,t,s)});else if(jn(e)){for(const n in e)Pe(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&Pe(e[n],t,s)}return e}/**
* @vue/runtime-core v3.5.17
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Mt(e,t,s,n){try{return n?e(...n):e()}catch(r){rs(r,t,s)}}function Ee(e,t,s,n){if(P(e)){const r=Mt(e,t,s,n);return r&&Ln(r)&&r.catch(i=>{rs(i,t,s)}),r}if(A(e)){const r=[];for(let i=0;i<e.length;i++)r.push(Ee(e[i],t,s,n));return r}}function rs(e,t,s,n=!0){const r=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||j;if(t){let l=t.parent;const f=t.proxy,h=`https://vuejs.org/error-reference/#runtime-${s}`;for(;l;){const a=l.ec;if(a){for(let p=0;p<a.length;p++)if(a[p](e,f,h)===!1)return}l=l.parent}if(i){Ie(),Mt(i,null,10,[e,f,h]),Re();return}}Ii(e,s,r,n,o)}function Ii(e,t,s,n=!0,r=!1){if(r)throw e;console.error(e)}const ee=[];let Se=-1;const rt=[];let Le=null,Qe=0;const ir=Promise.resolve();let Yt=null;function or(e){const t=Yt||ir;return e?t.then(this?e.bind(this):e):t}function Ri(e){let t=Se+1,s=ee.length;for(;t<s;){const n=t+s>>>1,r=ee[n],i=Ct(r);i<e||i===e&&r.flags&2?t=n+1:s=n}return t}function Ys(e){if(!(e.flags&1)){const t=Ct(e),s=ee[ee.length-1];!s||!(e.flags&2)&&t>=Ct(s)?ee.push(e):ee.splice(Ri(t),0,e),e.flags|=1,lr()}}function lr(){Yt||(Yt=ir.then(fr))}function Fi(e){A(e)?rt.push(...e):Le&&e.id===-1?Le.splice(Qe+1,0,e):e.flags&1||(rt.push(e),e.flags|=1),lr()}function cn(e,t,s=Se+1){for(;s<ee.length;s++){const n=ee[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;ee.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function cr(e){if(rt.length){const t=[...new Set(rt)].sort((s,n)=>Ct(s)-Ct(n));if(rt.length=0,Le){Le.push(...t);return}for(Le=t,Qe=0;Qe<Le.length;Qe++){const s=Le[Qe];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}Le=null,Qe=0}}const Ct=e=>e.id==null?e.flags&2?-1:1/0:e.id;function fr(e){try{for(Se=0;Se<ee.length;Se++){const t=ee[Se];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Mt(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Se<ee.length;Se++){const t=ee[Se];t&&(t.flags&=-2)}Se=-1,ee.length=0,cr(),Yt=null,(ee.length||rt.length)&&fr()}}let he=null,ur=null;function zt(e){const t=he;return he=e,ur=e&&e.type.__scopeId||null,t}function $i(e,t=he,s){if(!t||e._n)return e;const n=(...r)=>{n._d&&_n(-1);const i=zt(t);let o;try{o=e(...r)}finally{zt(i),n._d&&_n(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function ar(e,t){if(he===null)return e;const s=cs(he),n=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,o,l,f=j]=t[r];i&&(P(i)&&(i={mounted:i,updated:i}),i.deep&&Pe(o),n.push({dir:i,instance:s,value:o,oldValue:void 0,arg:l,modifiers:f}))}return e}function Je(e,t,s,n){const r=e.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const l=r[o];i&&(l.oldValue=i[o].value);let f=l.dir[n];f&&(Ie(),Ee(f,s,8,[e.el,l,e,t]),Re())}}const Di=Symbol("_vte"),Li=e=>e.__isTeleport;function zs(e,t){e.shapeFlag&6&&e.component?(e.transition=t,zs(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 dr(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function bt(e,t,s,n,r=!1){if(A(e)){e.forEach((F,R)=>bt(F,t&&(A(t)?t[R]:t),s,n,r));return}if(yt(n)&&!r){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&bt(e,t,s,n.component.subTree);return}const i=n.shapeFlag&4?cs(n.component):n.el,o=r?null:i,{i:l,r:f}=e,h=t&&t.r,a=l.refs===j?l.refs={}:l.refs,p=l.setupState,S=$(p),C=p===j?()=>!1:F=>D(S,F);if(h!=null&&h!==f&&(G(h)?(a[h]=null,C(h)&&(p[h]=null)):Z(h)&&(h.value=null)),P(f))Mt(f,l,12,[o,a]);else{const F=G(f),R=Z(f);if(F||R){const z=()=>{if(e.f){const H=F?C(f)?p[f]:a[f]:f.value;r?A(H)&&Hs(H,i):A(H)?H.includes(i)||H.push(i):F?(a[f]=[i],C(f)&&(p[f]=a[f])):(f.value=[i],e.k&&(a[e.k]=f.value))}else F?(a[f]=o,C(f)&&(p[f]=o)):R&&(f.value=o,e.k&&(a[e.k]=o))};o?(z.id=-1,ce(z,s)):z()}}}ss().requestIdleCallback;ss().cancelIdleCallback;const yt=e=>!!e.type.__asyncLoader,hr=e=>e.type.__isKeepAlive;function Hi(e,t){pr(e,"a",t)}function ji(e,t){pr(e,"da",t)}function pr(e,t,s=te){const n=e.__wdc||(e.__wdc=()=>{let r=s;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(is(t,n,s),s){let r=s.parent;for(;r&&r.parent;)hr(r.parent.vnode)&&Ni(n,t,s,r),r=r.parent}}function Ni(e,t,s,n){const r=is(t,e,n,!0);mr(()=>{Hs(n[t],r)},s)}function is(e,t,s=te,n=!1){if(s){const r=s[e]||(s[e]=[]),i=t.__weh||(t.__weh=(...o)=>{Ie();const l=At(s),f=Ee(t,s,e,o);return l(),Re(),f});return n?r.unshift(i):r.push(i),i}}const Fe=e=>(t,s=te)=>{(!Et||e==="sp")&&is(e,(...n)=>t(...n),s)},Ki=Fe("bm"),gr=Fe("m"),Ui=Fe("bu"),Vi=Fe("u"),Bi=Fe("bum"),mr=Fe("um"),Wi=Fe("sp"),qi=Fe("rtg"),Gi=Fe("rtc");function Ji(e,t=te){is("ec",e,t)}const Yi=Symbol.for("v-ndc");function _r(e,t,s,n){let r;const i=s,o=A(e);if(o||G(e)){const l=o&&nt(e);let f=!1,h=!1;l&&(f=!pe(e),h=Ke(e),e=ns(e)),r=new Array(e.length);for(let a=0,p=e.length;a<p;a++)r[a]=t(f?h?Gt(Y(e[a])):Y(e[a]):e[a],a,void 0,i)}else if(typeof e=="number"){r=new Array(e);for(let l=0;l<e;l++)r[l]=t(l+1,l,void 0,i)}else if(B(e))if(e[Symbol.iterator])r=Array.from(e,(l,f)=>t(l,f,void 0,i));else{const l=Object.keys(e);r=new Array(l.length);for(let f=0,h=l.length;f<h;f++){const a=l[f];r[f]=t(e[a],a,f,i)}}else r=[];return r}const As=e=>e?jr(e)?cs(e):As(e.parent):null,vt=se(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=>As(e.parent),$root:e=>As(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>yr(e),$forceUpdate:e=>e.f||(e.f=()=>{Ys(e.update)}),$nextTick:e=>e.n||(e.n=or.bind(e.proxy)),$watch:e=>_o.bind(e)}),ms=(e,t)=>e!==j&&!e.__isScriptSetup&&D(e,t),zi={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:r,props:i,accessCache:o,type:l,appContext:f}=e;let h;if(t[0]!=="$"){const C=o[t];if(C!==void 0)switch(C){case 1:return n[t];case 2:return r[t];case 4:return s[t];case 3:return i[t]}else{if(ms(n,t))return o[t]=1,n[t];if(r!==j&&D(r,t))return o[t]=2,r[t];if((h=e.propsOptions[0])&&D(h,t))return o[t]=3,i[t];if(s!==j&&D(s,t))return o[t]=4,s[t];Ps&&(o[t]=0)}}const a=vt[t];let p,S;if(a)return t==="$attrs"&&X(e.attrs,"get",""),a(e);if((p=l.__cssModules)&&(p=p[t]))return p;if(s!==j&&D(s,t))return o[t]=4,s[t];if(S=f.config.globalProperties,D(S,t))return S[t]},set({_:e},t,s){const{data:n,setupState:r,ctx:i}=e;return ms(r,t)?(r[t]=s,!0):n!==j&&D(n,t)?(n[t]=s,!0):D(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:r,propsOptions:i}},o){let l;return!!s[o]||e!==j&&D(e,o)||ms(t,o)||(l=i[0])&&D(l,o)||D(n,o)||D(vt,o)||D(r.config.globalProperties,o)},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:D(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function fn(e){return A(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let Ps=!0;function Xi(e){const t=yr(e),s=e.proxy,n=e.ctx;Ps=!1,t.beforeCreate&&un(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:f,inject:h,created:a,beforeMount:p,mounted:S,beforeUpdate:C,updated:F,activated:R,deactivated:z,beforeDestroy:H,beforeUnmount:W,destroyed:q,unmounted:O,render:J,renderTracked:$e,renderTriggered:_e,errorCaptured:De,serverPrefetch:It,expose:We,inheritAttrs:lt,components:Rt,directives:Ft,filters:fs}=t;if(h&&Zi(h,n,null),o)for(const V in o){const N=o[V];P(N)&&(n[V]=N.bind(s))}if(r){const V=r.call(s,s);B(V)&&(e.data=qs(V))}if(Ps=!0,i)for(const V in i){const N=i[V],qe=P(N)?N.bind(s,s):P(N.get)?N.get.bind(s,s):Te,$t=!P(N)&&P(N.set)?N.set.bind(s):Te,Ge=No({get:qe,set:$t});Object.defineProperty(n,V,{enumerable:!0,configurable:!0,get:()=>Ge.value,set:be=>Ge.value=be})}if(l)for(const V in l)br(l[V],n,s,V);if(f){const V=P(f)?f.call(s):f;Reflect.ownKeys(V).forEach(N=>{no(N,V[N])})}a&&un(a,e,"c");function Q(V,N){A(N)?N.forEach(qe=>V(qe.bind(s))):N&&V(N.bind(s))}if(Q(Ki,p),Q(gr,S),Q(Ui,C),Q(Vi,F),Q(Hi,R),Q(ji,z),Q(Ji,De),Q(Gi,$e),Q(qi,_e),Q(Bi,W),Q(mr,O),Q(Wi,It),A(We))if(We.length){const V=e.exposed||(e.exposed={});We.forEach(N=>{Object.defineProperty(V,N,{get:()=>s[N],set:qe=>s[N]=qe})})}else e.exposed||(e.exposed={});J&&e.render===Te&&(e.render=J),lt!=null&&(e.inheritAttrs=lt),Rt&&(e.components=Rt),Ft&&(e.directives=Ft),It&&dr(e)}function Zi(e,t,s=Te){A(e)&&(e=Is(e));for(const n in e){const r=e[n];let i;B(r)?"default"in r?i=Ut(r.from||n,r.default,!0):i=Ut(r.from||n):i=Ut(r),Z(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[n]=i}}function un(e,t,s){Ee(A(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function br(e,t,s,n){let r=n.includes(".")?Rr(s,n):()=>s[n];if(G(e)){const i=t[e];P(i)&&Vt(r,i)}else if(P(e))Vt(r,e.bind(s));else if(B(e))if(A(e))e.forEach(i=>br(i,t,s,n));else{const i=P(e.handler)?e.handler.bind(s):t[e.handler];P(i)&&Vt(r,i,e)}}function yr(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let f;return l?f=l:!r.length&&!s&&!n?f=t:(f={},r.length&&r.forEach(h=>Xt(f,h,o,!0)),Xt(f,t,o)),B(t)&&i.set(t,f),f}function Xt(e,t,s,n=!1){const{mixins:r,extends:i}=t;i&&Xt(e,i,s,!0),r&&r.forEach(o=>Xt(e,o,s,!0));for(const o in t)if(!(n&&o==="expose")){const l=Qi[o]||s&&s[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const Qi={data:an,props:dn,emits:dn,methods:pt,computed:pt,beforeCreate:k,created:k,beforeMount:k,mounted:k,beforeUpdate:k,updated:k,beforeDestroy:k,beforeUnmount:k,destroyed:k,unmounted:k,activated:k,deactivated:k,errorCaptured:k,serverPrefetch:k,components:pt,directives:pt,watch:eo,provide:an,inject:ki};function an(e,t){return t?e?function(){return se(P(e)?e.call(this,this):e,P(t)?t.call(this,this):t)}:t:e}function ki(e,t){return pt(Is(e),Is(t))}function Is(e){if(A(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function k(e,t){return e?[...new Set([].concat(e,t))]:t}function pt(e,t){return e?se(Object.create(null),e,t):t}function dn(e,t){return e?A(e)&&A(t)?[...new Set([...e,...t])]:se(Object.create(null),fn(e),fn(t??{})):t}function eo(e,t){if(!e)return t;if(!t)return e;const s=se(Object.create(null),e);for(const n in t)s[n]=k(e[n],t[n]);return s}function vr(){return{app:null,config:{isNativeTag:Wr,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let to=0;function so(e,t){return function(n,r=null){P(n)||(n=se({},n)),r!=null&&!B(r)&&(r=null);const i=vr(),o=new WeakSet,l=[];let f=!1;const h=i.app={_uid:to++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:Ko,get config(){return i.config},set config(a){},use(a,...p){return o.has(a)||(a&&P(a.install)?(o.add(a),a.install(h,...p)):P(a)&&(o.add(a),a(h,...p))),h},mixin(a){return i.mixins.includes(a)||i.mixins.push(a),h},component(a,p){return p?(i.components[a]=p,h):i.components[a]},directive(a,p){return p?(i.directives[a]=p,h):i.directives[a]},mount(a,p,S){if(!f){const C=h._ceVNode||oe(n,r);return C.appContext=i,S===!0?S="svg":S===!1&&(S=void 0),e(C,a,S),f=!0,h._container=a,a.__vue_app__=h,cs(C.component)}},onUnmount(a){l.push(a)},unmount(){f&&(Ee(l,h._instance,16),e(null,h._container),delete h._container.__vue_app__)},provide(a,p){return i.provides[a]=p,h},runWithContext(a){const p=it;it=h;try{return a()}finally{it=p}}};return h}}let it=null;function no(e,t){if(te){let s=te.provides;const n=te.parent&&te.parent.provides;n===s&&(s=te.provides=Object.create(n)),s[e]=t}}function Ut(e,t,s=!1){const n=te||he;if(n||it){let r=it?it._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return s&&P(t)?t.call(n&&n.proxy):t}}const xr={},wr=()=>Object.create(xr),Sr=e=>Object.getPrototypeOf(e)===xr;function ro(e,t,s,n=!1){const r={},i=wr();e.propsDefaults=Object.create(null),Cr(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);s?e.props=n?r:xi(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function io(e,t,s,n){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,l=$(r),[f]=e.propsOptions;let h=!1;if((n||o>0)&&!(o&16)){if(o&8){const a=e.vnode.dynamicProps;for(let p=0;p<a.length;p++){let S=a[p];if(os(e.emitsOptions,S))continue;const C=t[S];if(f)if(D(i,S))C!==i[S]&&(i[S]=C,h=!0);else{const F=Ne(S);r[F]=Rs(f,l,F,C,e,!1)}else C!==i[S]&&(i[S]=C,h=!0)}}}else{Cr(e,t,r,i)&&(h=!0);let a;for(const p in l)(!t||!D(t,p)&&((a=Be(p))===p||!D(t,a)))&&(f?s&&(s[p]!==void 0||s[a]!==void 0)&&(r[p]=Rs(f,l,p,void 0,e,!0)):delete r[p]);if(i!==l)for(const p in i)(!t||!D(t,p))&&(delete i[p],h=!0)}h&&Ae(e.attrs,"set","")}function Cr(e,t,s,n){const[r,i]=e.propsOptions;let o=!1,l;if(t)for(let f in t){if(gt(f))continue;const h=t[f];let a;r&&D(r,a=Ne(f))?!i||!i.includes(a)?s[a]=h:(l||(l={}))[a]=h:os(e.emitsOptions,f)||(!(f in n)||h!==n[f])&&(n[f]=h,o=!0)}if(i){const f=$(s),h=l||j;for(let a=0;a<i.length;a++){const p=i[a];s[p]=Rs(r,f,p,h[p],e,!D(h,p))}}return o}function Rs(e,t,s,n,r,i){const o=e[s];if(o!=null){const l=D(o,"default");if(l&&n===void 0){const f=o.default;if(o.type!==Function&&!o.skipFactory&&P(f)){const{propsDefaults:h}=r;if(s in h)n=h[s];else{const a=At(r);n=h[s]=f.call(null,t),a()}}else n=f;r.ce&&r.ce._setProp(s,n)}o[0]&&(i&&!l?n=!1:o[1]&&(n===""||n===Be(s))&&(n=!0))}return n}const oo=new WeakMap;function Tr(e,t,s=!1){const n=s?oo:t.propsCache,r=n.get(e);if(r)return r;const i=e.props,o={},l=[];let f=!1;if(!P(e)){const a=p=>{f=!0;const[S,C]=Tr(p,t,!0);se(o,S),C&&l.push(...C)};!s&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!i&&!f)return B(e)&&n.set(e,tt),tt;if(A(i))for(let a=0;a<i.length;a++){const p=Ne(i[a]);hn(p)&&(o[p]=j)}else if(i)for(const a in i){const p=Ne(a);if(hn(p)){const S=i[a],C=o[p]=A(S)||P(S)?{type:S}:se({},S),F=C.type;let R=!1,z=!0;if(A(F))for(let H=0;H<F.length;++H){const W=F[H],q=P(W)&&W.name;if(q==="Boolean"){R=!0;break}else q==="String"&&(z=!1)}else R=P(F)&&F.name==="Boolean";C[0]=R,C[1]=z,(R||D(C,"default"))&&l.push(p)}}const h=[o,l];return B(e)&&n.set(e,h),h}function hn(e){return e[0]!=="$"&&!gt(e)}const Xs=e=>e[0]==="_"||e==="$stable",Zs=e=>A(e)?e.map(Ce):[Ce(e)],lo=(e,t,s)=>{if(t._n)return t;const n=$i((...r)=>Zs(t(...r)),s);return n._c=!1,n},Er=(e,t,s)=>{const n=e._ctx;for(const r in e){if(Xs(r))continue;const i=e[r];if(P(i))t[r]=lo(r,i,n);else if(i!=null){const o=Zs(i);t[r]=()=>o}}},Or=(e,t)=>{const s=Zs(t);e.slots.default=()=>s},Mr=(e,t,s)=>{for(const n in t)(s||!Xs(n))&&(e[n]=t[n])},co=(e,t,s)=>{const n=e.slots=wr();if(e.vnode.shapeFlag&32){const r=t.__;r&&Ss(n,"__",r,!0);const i=t._;i?(Mr(n,t,s),s&&Ss(n,"_",i,!0)):Er(t,n)}else t&&Or(e,t)},fo=(e,t,s)=>{const{vnode:n,slots:r}=e;let i=!0,o=j;if(n.shapeFlag&32){const l=t._;l?s&&l===1?i=!1:Mr(r,t,s):(i=!t.$stable,Er(t,r)),o=t}else t&&(Or(e,t),o={default:1});if(i)for(const l in r)!Xs(l)&&o[l]==null&&delete r[l]},ce=Co;function uo(e){return ao(e)}function ao(e,t){const s=ss();s.__VUE__=!0;const{insert:n,remove:r,patchProp:i,createElement:o,createText:l,createComment:f,setText:h,setElementText:a,parentNode:p,nextSibling:S,setScopeId:C=Te,insertStaticContent:F}=e,R=(c,u,d,_=null,g=null,m=null,x=void 0,v=null,y=!!u.dynamicChildren)=>{if(c===u)return;c&&!dt(c,u)&&(_=Dt(c),be(c,g,m,!0),c=null),u.patchFlag===-2&&(y=!1,u.dynamicChildren=null);const{type:b,ref:E,shapeFlag:w}=u;switch(b){case ls:z(c,u,d,_);break;case Ue:H(c,u,d,_);break;case bs:c==null&&W(u,d,_,x);break;case ae:Rt(c,u,d,_,g,m,x,v,y);break;default:w&1?J(c,u,d,_,g,m,x,v,y):w&6?Ft(c,u,d,_,g,m,x,v,y):(w&64||w&128)&&b.process(c,u,d,_,g,m,x,v,y,ft)}E!=null&&g?bt(E,c&&c.ref,m,u||c,!u):E==null&&c&&c.ref!=null&&bt(c.ref,null,m,c,!0)},z=(c,u,d,_)=>{if(c==null)n(u.el=l(u.children),d,_);else{const g=u.el=c.el;u.children!==c.children&&h(g,u.children)}},H=(c,u,d,_)=>{c==null?n(u.el=f(u.children||""),d,_):u.el=c.el},W=(c,u,d,_)=>{[c.el,c.anchor]=F(c.children,u,d,_,c.el,c.anchor)},q=({el:c,anchor:u},d,_)=>{let g;for(;c&&c!==u;)g=S(c),n(c,d,_),c=g;n(u,d,_)},O=({el:c,anchor:u})=>{let d;for(;c&&c!==u;)d=S(c),r(c),c=d;r(u)},J=(c,u,d,_,g,m,x,v,y)=>{u.type==="svg"?x="svg":u.type==="math"&&(x="mathml"),c==null?$e(u,d,_,g,m,x,v,y):It(c,u,g,m,x,v,y)},$e=(c,u,d,_,g,m,x,v)=>{let y,b;const{props:E,shapeFlag:w,transition:T,dirs:M}=c;if(y=c.el=o(c.type,m,E&&E.is,E),w&8?a(y,c.children):w&16&&De(c.children,y,null,_,g,_s(c,m),x,v),M&&Je(c,null,_,"created"),_e(y,c,c.scopeId,x,_),E){for(const K in E)K!=="value"&&!gt(K)&&i(y,K,null,E[K],m,_);"value"in E&&i(y,"value",null,E.value,m),(b=E.onVnodeBeforeMount)&&we(b,_,c)}M&&Je(c,null,_,"beforeMount");const I=ho(g,T);I&&T.beforeEnter(y),n(y,u,d),((b=E&&E.onVnodeMounted)||I||M)&&ce(()=>{b&&we(b,_,c),I&&T.enter(y),M&&Je(c,null,_,"mounted")},g)},_e=(c,u,d,_,g)=>{if(d&&C(c,d),_)for(let m=0;m<_.length;m++)C(c,_[m]);if(g){let m=g.subTree;if(u===m||$r(m.type)&&(m.ssContent===u||m.ssFallback===u)){const x=g.vnode;_e(c,x,x.scopeId,x.slotScopeIds,g.parent)}}},De=(c,u,d,_,g,m,x,v,y=0)=>{for(let b=y;b<c.length;b++){const E=c[b]=v?He(c[b]):Ce(c[b]);R(null,E,u,d,_,g,m,x,v)}},It=(c,u,d,_,g,m,x)=>{const v=u.el=c.el;let{patchFlag:y,dynamicChildren:b,dirs:E}=u;y|=c.patchFlag&16;const w=c.props||j,T=u.props||j;let M;if(d&&Ye(d,!1),(M=T.onVnodeBeforeUpdate)&&we(M,d,u,c),E&&Je(u,c,d,"beforeUpdate"),d&&Ye(d,!0),(w.innerHTML&&T.innerHTML==null||w.textContent&&T.textContent==null)&&a(v,""),b?We(c.dynamicChildren,b,v,d,_,_s(u,g),m):x||N(c,u,v,null,d,_,_s(u,g),m,!1),y>0){if(y&16)lt(v,w,T,d,g);else if(y&2&&w.class!==T.class&&i(v,"class",null,T.class,g),y&4&&i(v,"style",w.style,T.style,g),y&8){const I=u.dynamicProps;for(let K=0;K<I.length;K++){const L=I[K],ne=w[L],re=T[L];(re!==ne||L==="value")&&i(v,L,ne,re,g,d)}}y&1&&c.children!==u.children&&a(v,u.children)}else!x&&b==null&&lt(v,w,T,d,g);((M=T.onVnodeUpdated)||E)&&ce(()=>{M&&we(M,d,u,c),E&&Je(u,c,d,"updated")},_)},We=(c,u,d,_,g,m,x)=>{for(let v=0;v<u.length;v++){const y=c[v],b=u[v],E=y.el&&(y.type===ae||!dt(y,b)||y.shapeFlag&198)?p(y.el):d;R(y,b,E,null,_,g,m,x,!0)}},lt=(c,u,d,_,g)=>{if(u!==d){if(u!==j)for(const m in u)!gt(m)&&!(m in d)&&i(c,m,u[m],null,g,_);for(const m in d){if(gt(m))continue;const x=d[m],v=u[m];x!==v&&m!=="value"&&i(c,m,v,x,g,_)}"value"in d&&i(c,"value",u.value,d.value,g)}},Rt=(c,u,d,_,g,m,x,v,y)=>{const b=u.el=c?c.el:l(""),E=u.anchor=c?c.anchor:l("");let{patchFlag:w,dynamicChildren:T,slotScopeIds:M}=u;M&&(v=v?v.concat(M):M),c==null?(n(b,d,_),n(E,d,_),De(u.children||[],d,E,g,m,x,v,y)):w>0&&w&64&&T&&c.dynamicChildren?(We(c.dynamicChildren,T,d,g,m,x,v),(u.key!=null||g&&u===g.subTree)&&Ar(c,u,!0)):N(c,u,d,E,g,m,x,v,y)},Ft=(c,u,d,_,g,m,x,v,y)=>{u.slotScopeIds=v,c==null?u.shapeFlag&512?g.ctx.activate(u,d,_,x,y):fs(u,d,_,g,m,x,y):ks(c,u,y)},fs=(c,u,d,_,g,m,x)=>{const v=c.component=Fo(c,_,g);if(hr(c)&&(v.ctx.renderer=ft),$o(v,!1,x),v.asyncDep){if(g&&g.registerDep(v,Q,x),!c.el){const y=v.subTree=oe(Ue);H(null,y,u,d)}}else Q(v,c,u,d,g,m,x)},ks=(c,u,d)=>{const _=u.component=c.component;if(wo(c,u,d))if(_.asyncDep&&!_.asyncResolved){V(_,u,d);return}else _.next=u,_.update();else u.el=c.el,_.vnode=u},Q=(c,u,d,_,g,m,x)=>{const v=()=>{if(c.isMounted){let{next:w,bu:T,u:M,parent:I,vnode:K}=c;{const ve=Pr(c);if(ve){w&&(w.el=K.el,V(c,w,x)),ve.asyncDep.then(()=>{c.isUnmounted||v()});return}}let L=w,ne;Ye(c,!1),w?(w.el=K.el,V(c,w,x)):w=K,T&&Kt(T),(ne=w.props&&w.props.onVnodeBeforeUpdate)&&we(ne,I,w,K),Ye(c,!0);const re=gn(c),ye=c.subTree;c.subTree=re,R(ye,re,p(ye.el),Dt(ye),c,g,m),w.el=re.el,L===null&&So(c,re.el),M&&ce(M,g),(ne=w.props&&w.props.onVnodeUpdated)&&ce(()=>we(ne,I,w,K),g)}else{let w;const{el:T,props:M}=u,{bm:I,m:K,parent:L,root:ne,type:re}=c,ye=yt(u);Ye(c,!1),I&&Kt(I),!ye&&(w=M&&M.onVnodeBeforeMount)&&we(w,L,u),Ye(c,!0);{ne.ce&&ne.ce._def.shadowRoot!==!1&&ne.ce._injectChildStyle(re);const ve=c.subTree=gn(c);R(null,ve,d,_,c,g,m),u.el=ve.el}if(K&&ce(K,g),!ye&&(w=M&&M.onVnodeMounted)){const ve=u;ce(()=>we(w,L,ve),g)}(u.shapeFlag&256||L&&yt(L.vnode)&&L.vnode.shapeFlag&256)&&c.a&&ce(c.a,g),c.isMounted=!0,u=d=_=null}};c.scope.on();const y=c.effect=new Bn(v);c.scope.off();const b=c.update=y.run.bind(y),E=c.job=y.runIfDirty.bind(y);E.i=c,E.id=c.uid,y.scheduler=()=>Ys(E),Ye(c,!0),b()},V=(c,u,d)=>{u.component=c;const _=c.vnode.props;c.vnode=u,c.next=null,io(c,u.props,_,d),fo(c,u.children,d),Ie(),cn(c),Re()},N=(c,u,d,_,g,m,x,v,y=!1)=>{const b=c&&c.children,E=c?c.shapeFlag:0,w=u.children,{patchFlag:T,shapeFlag:M}=u;if(T>0){if(T&128){$t(b,w,d,_,g,m,x,v,y);return}else if(T&256){qe(b,w,d,_,g,m,x,v,y);return}}M&8?(E&16&&ct(b,g,m),w!==b&&a(d,w)):E&16?M&16?$t(b,w,d,_,g,m,x,v,y):ct(b,g,m,!0):(E&8&&a(d,""),M&16&&De(w,d,_,g,m,x,v,y))},qe=(c,u,d,_,g,m,x,v,y)=>{c=c||tt,u=u||tt;const b=c.length,E=u.length,w=Math.min(b,E);let T;for(T=0;T<w;T++){const M=u[T]=y?He(u[T]):Ce(u[T]);R(c[T],M,d,null,g,m,x,v,y)}b>E?ct(c,g,m,!0,!1,w):De(u,d,_,g,m,x,v,y,w)},$t=(c,u,d,_,g,m,x,v,y)=>{let b=0;const E=u.length;let w=c.length-1,T=E-1;for(;b<=w&&b<=T;){const M=c[b],I=u[b]=y?He(u[b]):Ce(u[b]);if(dt(M,I))R(M,I,d,null,g,m,x,v,y);else break;b++}for(;b<=w&&b<=T;){const M=c[w],I=u[T]=y?He(u[T]):Ce(u[T]);if(dt(M,I))R(M,I,d,null,g,m,x,v,y);else break;w--,T--}if(b>w){if(b<=T){const M=T+1,I=M<E?u[M].el:_;for(;b<=T;)R(null,u[b]=y?He(u[b]):Ce(u[b]),d,I,g,m,x,v,y),b++}}else if(b>T)for(;b<=w;)be(c[b],g,m,!0),b++;else{const M=b,I=b,K=new Map;for(b=I;b<=T;b++){const le=u[b]=y?He(u[b]):Ce(u[b]);le.key!=null&&K.set(le.key,b)}let L,ne=0;const re=T-I+1;let ye=!1,ve=0;const ut=new Array(re);for(b=0;b<re;b++)ut[b]=0;for(b=M;b<=w;b++){const le=c[b];if(ne>=re){be(le,g,m,!0);continue}let xe;if(le.key!=null)xe=K.get(le.key);else for(L=I;L<=T;L++)if(ut[L-I]===0&&dt(le,u[L])){xe=L;break}xe===void 0?be(le,g,m,!0):(ut[xe-I]=b+1,xe>=ve?ve=xe:ye=!0,R(le,u[xe],d,null,g,m,x,v,y),ne++)}const sn=ye?po(ut):tt;for(L=sn.length-1,b=re-1;b>=0;b--){const le=I+b,xe=u[le],nn=le+1<E?u[le+1].el:_;ut[b]===0?R(null,xe,d,nn,g,m,x,v,y):ye&&(L<0||b!==sn[L]?Ge(xe,d,nn,2):L--)}}},Ge=(c,u,d,_,g=null)=>{const{el:m,type:x,transition:v,children:y,shapeFlag:b}=c;if(b&6){Ge(c.component.subTree,u,d,_);return}if(b&128){c.suspense.move(u,d,_);return}if(b&64){x.move(c,u,d,ft);return}if(x===ae){n(m,u,d);for(let w=0;w<y.length;w++)Ge(y[w],u,d,_);n(c.anchor,u,d);return}if(x===bs){q(c,u,d);return}if(_!==2&&b&1&&v)if(_===0)v.beforeEnter(m),n(m,u,d),ce(()=>v.enter(m),g);else{const{leave:w,delayLeave:T,afterLeave:M}=v,I=()=>{c.ctx.isUnmounted?r(m):n(m,u,d)},K=()=>{w(m,()=>{I(),M&&M()})};T?T(m,I,K):K()}else n(m,u,d)},be=(c,u,d,_=!1,g=!1)=>{const{type:m,props:x,ref:v,children:y,dynamicChildren:b,shapeFlag:E,patchFlag:w,dirs:T,cacheIndex:M}=c;if(w===-2&&(g=!1),v!=null&&(Ie(),bt(v,null,d,c,!0),Re()),M!=null&&(u.renderCache[M]=void 0),E&256){u.ctx.deactivate(c);return}const I=E&1&&T,K=!yt(c);let L;if(K&&(L=x&&x.onVnodeBeforeUnmount)&&we(L,u,c),E&6)Br(c.component,d,_);else{if(E&128){c.suspense.unmount(d,_);return}I&&Je(c,null,u,"beforeUnmount"),E&64?c.type.remove(c,u,d,ft,_):b&&!b.hasOnce&&(m!==ae||w>0&&w&64)?ct(b,u,d,!1,!0):(m===ae&&w&384||!g&&E&16)&&ct(y,u,d),_&&en(c)}(K&&(L=x&&x.onVnodeUnmounted)||I)&&ce(()=>{L&&we(L,u,c),I&&Je(c,null,u,"unmounted")},d)},en=c=>{const{type:u,el:d,anchor:_,transition:g}=c;if(u===ae){Vr(d,_);return}if(u===bs){O(c);return}const m=()=>{r(d),g&&!g.persisted&&g.afterLeave&&g.afterLeave()};if(c.shapeFlag&1&&g&&!g.persisted){const{leave:x,delayLeave:v}=g,y=()=>x(d,m);v?v(c.el,m,y):y()}else m()},Vr=(c,u)=>{let d;for(;c!==u;)d=S(c),r(c),c=d;r(u)},Br=(c,u,d)=>{const{bum:_,scope:g,job:m,subTree:x,um:v,m:y,a:b,parent:E,slots:{__:w}}=c;pn(y),pn(b),_&&Kt(_),E&&A(w)&&w.forEach(T=>{E.renderCache[T]=void 0}),g.stop(),m&&(m.flags|=8,be(x,c,u,d)),v&&ce(v,u),ce(()=>{c.isUnmounted=!0},u),u&&u.pendingBranch&&!u.isUnmounted&&c.asyncDep&&!c.asyncResolved&&c.suspenseId===u.pendingId&&(u.deps--,u.deps===0&&u.resolve())},ct=(c,u,d,_=!1,g=!1,m=0)=>{for(let x=m;x<c.length;x++)be(c[x],u,d,_,g)},Dt=c=>{if(c.shapeFlag&6)return Dt(c.component.subTree);if(c.shapeFlag&128)return c.suspense.next();const u=S(c.anchor||c.el),d=u&&u[Di];return d?S(d):u};let us=!1;const tn=(c,u,d)=>{c==null?u._vnode&&be(u._vnode,null,null,!0):R(u._vnode||null,c,u,null,null,null,d),u._vnode=c,us||(us=!0,cn(),cr(),us=!1)},ft={p:R,um:be,m:Ge,r:en,mt:fs,mc:De,pc:N,pbc:We,n:Dt,o:e};return{render:tn,hydrate:void 0,createApp:so(tn)}}function _s({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function Ye({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ho(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ar(e,t,s=!1){const n=e.children,r=t.children;if(A(n)&&A(r))for(let i=0;i<n.length;i++){const o=n[i];let l=r[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[i]=He(r[i]),l.el=o.el),!s&&l.patchFlag!==-2&&Ar(o,l)),l.type===ls&&(l.el=o.el),l.type===Ue&&!l.el&&(l.el=o.el)}}function po(e){const t=e.slice(),s=[0];let n,r,i,o,l;const f=e.length;for(n=0;n<f;n++){const h=e[n];if(h!==0){if(r=s[s.length-1],e[r]<h){t[n]=r,s.push(n);continue}for(i=0,o=s.length-1;i<o;)l=i+o>>1,e[s[l]]<h?i=l+1:o=l;h<e[s[i]]&&(i>0&&(t[n]=s[i-1]),s[i]=n)}}for(i=s.length,o=s[i-1];i-- >0;)s[i]=o,o=t[o];return s}function Pr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Pr(t)}function pn(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const go=Symbol.for("v-scx"),mo=()=>Ut(go);function Vt(e,t,s){return Ir(e,t,s)}function Ir(e,t,s=j){const{immediate:n,deep:r,flush:i,once:o}=s,l=se({},s),f=t&&n||!t&&i!=="post";let h;if(Et){if(i==="sync"){const C=mo();h=C.__watcherHandles||(C.__watcherHandles=[])}else if(!f){const C=()=>{};return C.stop=Te,C.resume=Te,C.pause=Te,C}}const a=te;l.call=(C,F,R)=>Ee(C,a,F,R);let p=!1;i==="post"?l.scheduler=C=>{ce(C,a&&a.suspense)}:i!=="sync"&&(p=!0,l.scheduler=(C,F)=>{F?C():Ys(C)}),l.augmentJob=C=>{t&&(C.flags|=4),p&&(C.flags|=2,a&&(C.id=a.uid,C.i=a))};const S=Pi(e,t,l);return Et&&(h?h.push(S):f&&S()),S}function _o(e,t,s){const n=this.proxy,r=G(e)?e.includes(".")?Rr(n,e):()=>n[e]:e.bind(n,n);let i;P(t)?i=t:(i=t.handler,s=t);const o=At(this),l=Ir(r,i.bind(n),s);return o(),l}function Rr(e,t){const s=t.split(".");return()=>{let n=e;for(let r=0;r<s.length&&n;r++)n=n[s[r]];return n}}const bo=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ne(t)}Modifiers`]||e[`${Be(t)}Modifiers`];function yo(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||j;let r=s;const i=t.startsWith("update:"),o=i&&bo(n,t.slice(7));o&&(o.trim&&(r=s.map(a=>G(a)?a.trim():a)),o.number&&(r=s.map(Cs)));let l,f=n[l=as(t)]||n[l=as(Ne(t))];!f&&i&&(f=n[l=as(Be(t))]),f&&Ee(f,e,6,r);const h=n[l+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Ee(h,e,6,r)}}function Fr(e,t,s=!1){const n=t.emitsCache,r=n.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!P(e)){const f=h=>{const a=Fr(h,t,!0);a&&(l=!0,se(o,a))};!s&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!i&&!l?(B(e)&&n.set(e,null),null):(A(i)?i.forEach(f=>o[f]=null):se(o,i),B(e)&&n.set(e,o),o)}function os(e,t){return!e||!kt(t)?!1:(t=t.slice(2).replace(/Once$/,""),D(e,t[0].toLowerCase()+t.slice(1))||D(e,Be(t))||D(e,t))}function gn(e){const{type:t,vnode:s,proxy:n,withProxy:r,propsOptions:[i],slots:o,attrs:l,emit:f,render:h,renderCache:a,props:p,data:S,setupState:C,ctx:F,inheritAttrs:R}=e,z=zt(e);let H,W;try{if(s.shapeFlag&4){const O=r||n,J=O;H=Ce(h.call(J,O,a,p,C,S,F)),W=l}else{const O=t;H=Ce(O.length>1?O(p,{attrs:l,slots:o,emit:f}):O(p,null)),W=t.props?l:vo(l)}}catch(O){xt.length=0,rs(O,e,1),H=oe(Ue)}let q=H;if(W&&R!==!1){const O=Object.keys(W),{shapeFlag:J}=q;O.length&&J&7&&(i&&O.some(Ls)&&(W=xo(W,i)),q=ot(q,W,!1,!0))}return s.dirs&&(q=ot(q,null,!1,!0),q.dirs=q.dirs?q.dirs.concat(s.dirs):s.dirs),s.transition&&zs(q,s.transition),H=q,zt(z),H}const vo=e=>{let t;for(const s in e)(s==="class"||s==="style"||kt(s))&&((t||(t={}))[s]=e[s]);return t},xo=(e,t)=>{const s={};for(const n in e)(!Ls(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function wo(e,t,s){const{props:n,children:r,component:i}=e,{props:o,children:l,patchFlag:f}=t,h=i.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&f>=0){if(f&1024)return!0;if(f&16)return n?mn(n,o,h):!!o;if(f&8){const a=t.dynamicProps;for(let p=0;p<a.length;p++){const S=a[p];if(o[S]!==n[S]&&!os(h,S))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:n===o?!1:n?o?mn(n,o,h):!0:!!o;return!1}function mn(e,t,s){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let r=0;r<n.length;r++){const i=n[r];if(t[i]!==e[i]&&!os(s,i))return!0}return!1}function So({vnode:e,parent:t},s){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=s,t=t.parent;else break}}const $r=e=>e.__isSuspense;function Co(e,t){t&&t.pendingBranch?A(e)?t.effects.push(...e):t.effects.push(e):Fi(e)}const ae=Symbol.for("v-fgt"),ls=Symbol.for("v-txt"),Ue=Symbol.for("v-cmt"),bs=Symbol.for("v-stc"),xt=[];let ue=null;function fe(e=!1){xt.push(ue=e?null:[])}function To(){xt.pop(),ue=xt[xt.length-1]||null}let Tt=1;function _n(e,t=!1){Tt+=e,e<0&&ue&&t&&(ue.hasOnce=!0)}function Dr(e){return e.dynamicChildren=Tt>0?ue||tt:null,To(),Tt>0&&ue&&ue.push(e),e}function de(e,t,s,n,r,i){return Dr(me(e,t,s,n,r,i,!0))}function Eo(e,t,s,n,r){return Dr(oe(e,t,s,n,r,!0))}function Lr(e){return e?e.__v_isVNode===!0:!1}function dt(e,t){return e.type===t.type&&e.key===t.key}const Hr=({key:e})=>e??null,Bt=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?G(e)||Z(e)||P(e)?{i:he,r:e,k:t,f:!!s}:e:null);function me(e,t=null,s=null,n=0,r=null,i=e===ae?0:1,o=!1,l=!1){const f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Hr(t),ref:t&&Bt(t),scopeId:ur,slotScopeIds:null,children:s,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:i,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:he};return l?(Qs(f,s),i&128&&e.normalize(f)):s&&(f.shapeFlag|=G(s)?8:16),Tt>0&&!o&&ue&&(f.patchFlag>0||i&6)&&f.patchFlag!==32&&ue.push(f),f}const oe=Oo;function Oo(e,t=null,s=null,n=0,r=null,i=!1){if((!e||e===Yi)&&(e=Ue),Lr(e)){const l=ot(e,t,!0);return s&&Qs(l,s),Tt>0&&!i&&ue&&(l.shapeFlag&6?ue[ue.indexOf(e)]=l:ue.push(l)),l.patchFlag=-2,l}if(jo(e)&&(e=e.__vccOpts),t){t=Mo(t);let{class:l,style:f}=t;l&&!G(l)&&(t.class=Ot(l)),B(f)&&(Js(f)&&!A(f)&&(f=se({},f)),t.style=Ns(f))}const o=G(e)?1:$r(e)?128:Li(e)?64:B(e)?4:P(e)?2:0;return me(e,t,s,n,r,o,i,!0)}function Mo(e){return e?Js(e)||Sr(e)?se({},e):e:null}function ot(e,t,s=!1,n=!1){const{props:r,ref:i,patchFlag:o,children:l,transition:f}=e,h=t?Po(r||{},t):r,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:h,key:h&&Hr(h),ref:t&&t.ref?s&&i?A(i)?i.concat(Bt(t)):[i,Bt(t)]:Bt(t):i,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!==ae?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:f,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ot(e.ssContent),ssFallback:e.ssFallback&&ot(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return f&&n&&zs(a,f.clone(a)),a}function Ao(e=" ",t=0){return oe(ls,null,e,t)}function bn(e="",t=!1){return t?(fe(),Eo(Ue,null,e)):oe(Ue,null,e)}function Ce(e){return e==null||typeof e=="boolean"?oe(Ue):A(e)?oe(ae,null,e.slice()):Lr(e)?He(e):oe(ls,null,String(e))}function He(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ot(e)}function Qs(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(A(t))s=16;else if(typeof t=="object")if(n&65){const r=t.default;r&&(r._c&&(r._d=!1),Qs(e,r()),r._c&&(r._d=!0));return}else{s=32;const r=t._;!r&&!Sr(t)?t._ctx=he:r===3&&he&&(he.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else P(t)?(t={default:t,_ctx:he},s=32):(t=String(t),n&64?(s=16,t=[Ao(t)]):s=8);e.children=t,e.shapeFlag|=s}function Po(...e){const t={};for(let s=0;s<e.length;s++){const n=e[s];for(const r in n)if(r==="class")t.class!==n.class&&(t.class=Ot([t.class,n.class]));else if(r==="style")t.style=Ns([t.style,n.style]);else if(kt(r)){const i=t[r],o=n[r];o&&i!==o&&!(A(i)&&i.includes(o))&&(t[r]=i?[].concat(i,o):o)}else r!==""&&(t[r]=n[r])}return t}function we(e,t,s,n=null){Ee(e,t,7,[s,n])}const Io=vr();let Ro=0;function Fo(e,t,s){const n=e.type,r=(t?t.appContext:e.appContext)||Io,i={uid:Ro++,vnode:e,type:n,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ti(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Tr(n,r),emitsOptions:Fr(n,r),emit:null,emitted:null,propsDefaults:j,inheritAttrs:n.inheritAttrs,ctx:j,data:j,props:j,attrs:j,slots:j,refs:j,setupState:j,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=yo.bind(null,i),e.ce&&e.ce(i),i}let te=null,Zt,Fs;{const e=ss(),t=(s,n)=>{let r;return(r=e[s])||(r=e[s]=[]),r.push(n),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};Zt=t("__VUE_INSTANCE_SETTERS__",s=>te=s),Fs=t("__VUE_SSR_SETTERS__",s=>Et=s)}const At=e=>{const t=te;return Zt(e),e.scope.on(),()=>{e.scope.off(),Zt(t)}},yn=()=>{te&&te.scope.off(),Zt(null)};function jr(e){return e.vnode.shapeFlag&4}let Et=!1;function $o(e,t=!1,s=!1){t&&Fs(t);const{props:n,children:r}=e.vnode,i=jr(e);ro(e,n,i,t),co(e,r,s||t);const o=i?Do(e,t):void 0;return t&&Fs(!1),o}function Do(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,zi);const{setup:n}=s;if(n){Ie();const r=e.setupContext=n.length>1?Ho(e):null,i=At(e),o=Mt(n,e,0,[e.props,r]),l=Ln(o);if(Re(),i(),(l||e.sp)&&!yt(e)&&dr(e),l){if(o.then(yn,yn),t)return o.then(f=>{vn(e,f)}).catch(f=>{rs(f,e,0)});e.asyncDep=o}else vn(e,o)}else Nr(e)}function vn(e,t,s){P(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:B(t)&&(e.setupState=rr(t)),Nr(e)}function Nr(e,t,s){const n=e.type;e.render||(e.render=n.render||Te);{const r=At(e);Ie();try{Xi(e)}finally{Re(),r()}}}const Lo={get(e,t){return X(e,"get",""),e[t]}};function Ho(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Lo),slots:e.slots,emit:e.emit,expose:t}}function cs(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(rr(wi(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in vt)return vt[s](e)},has(t,s){return s in t||s in vt}})):e.proxy}function jo(e){return P(e)&&"__vccOpts"in e}const No=(e,t)=>Mi(e,t,Et),Ko="3.5.17";/**
* @vue/runtime-dom v3.5.17
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let $s;const xn=typeof window<"u"&&window.trustedTypes;if(xn)try{$s=xn.createPolicy("vue",{createHTML:e=>e})}catch{}const Kr=$s?e=>$s.createHTML(e):e=>e,Uo="http://www.w3.org/2000/svg",Vo="http://www.w3.org/1998/Math/MathML",Me=typeof document<"u"?document:null,wn=Me&&Me.createElement("template"),Bo={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const r=t==="svg"?Me.createElementNS(Uo,e):t==="mathml"?Me.createElementNS(Vo,e):s?Me.createElement(e,{is:s}):Me.createElement(e);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:e=>Me.createTextNode(e),createComment:e=>Me.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Me.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,r,i){const o=s?s.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),s),!(r===i||!(r=r.nextSibling)););else{wn.innerHTML=Kr(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const l=wn.content;if(n==="svg"||n==="mathml"){const f=l.firstChild;for(;f.firstChild;)l.appendChild(f.firstChild);l.removeChild(f)}t.insertBefore(l,s)}return[o?o.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Wo=Symbol("_vtc");function qo(e,t,s){const n=e[Wo];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Qt=Symbol("_vod"),Ur=Symbol("_vsh"),Go={beforeMount(e,{value:t},{transition:s}){e[Qt]=e.style.display==="none"?"":e.style.display,s&&t?s.beforeEnter(e):ht(e,t)},mounted(e,{value:t},{transition:s}){s&&t&&s.enter(e)},updated(e,{value:t,oldValue:s},{transition:n}){!t!=!s&&(n?t?(n.beforeEnter(e),ht(e,!0),n.enter(e)):n.leave(e,()=>{ht(e,!1)}):ht(e,t))},beforeUnmount(e,{value:t}){ht(e,t)}};function ht(e,t){e.style.display=t?e[Qt]:"none",e[Ur]=!t}const Jo=Symbol(""),Yo=/(^|;)\s*display\s*:/;function zo(e,t,s){const n=e.style,r=G(s);let i=!1;if(s&&!r){if(t)if(G(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();s[l]==null&&Wt(n,l,"")}else for(const o in t)s[o]==null&&Wt(n,o,"");for(const o in s)o==="display"&&(i=!0),Wt(n,o,s[o])}else if(r){if(t!==s){const o=n[Jo];o&&(s+=";"+o),n.cssText=s,i=Yo.test(s)}}else t&&e.removeAttribute("style");Qt in e&&(e[Qt]=i?n.display:"",e[Ur]&&(n.display="none"))}const Sn=/\s*!important$/;function Wt(e,t,s){if(A(s))s.forEach(n=>Wt(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=Xo(e,t);Sn.test(s)?e.setProperty(Be(n),s.replace(Sn,""),"important"):e[n]=s}}const Cn=["Webkit","Moz","ms"],ys={};function Xo(e,t){const s=ys[t];if(s)return s;let n=Ne(t);if(n!=="filter"&&n in e)return ys[t]=n;n=Nn(n);for(let r=0;r<Cn.length;r++){const i=Cn[r]+n;if(i in e)return ys[t]=i}return t}const Tn="http://www.w3.org/1999/xlink";function En(e,t,s,n,r,i=ei(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(Tn,t.slice(6,t.length)):e.setAttributeNS(Tn,t,s):s==null||i&&!Kn(s)?e.removeAttribute(t):e.setAttribute(t,i?"":Ve(s)?String(s):s)}function On(e,t,s,n,r){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?Kr(s):s);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const l=i==="OPTION"?e.getAttribute("value")||"":e.value,f=s==null?e.type==="checkbox"?"on":"":String(s);(l!==f||!("_value"in e))&&(e.value=f),s==null&&e.removeAttribute(t),e._value=s;return}let o=!1;if(s===""||s==null){const l=typeof e[t];l==="boolean"?s=Kn(s):s==null&&l==="string"?(s="",o=!0):l==="number"&&(s=0,o=!0)}try{e[t]=s}catch{}o&&e.removeAttribute(r||t)}function ke(e,t,s,n){e.addEventListener(t,s,n)}function Zo(e,t,s,n){e.removeEventListener(t,s,n)}const Mn=Symbol("_vei");function Qo(e,t,s,n,r=null){const i=e[Mn]||(e[Mn]={}),o=i[t];if(n&&o)o.value=n;else{const[l,f]=ko(t);if(n){const h=i[t]=sl(n,r);ke(e,l,h,f)}else o&&(Zo(e,l,o,f),i[t]=void 0)}}const An=/(?:Once|Passive|Capture)$/;function ko(e){let t;if(An.test(e)){t={};let n;for(;n=e.match(An);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Be(e.slice(2)),t]}let vs=0;const el=Promise.resolve(),tl=()=>vs||(el.then(()=>vs=0),vs=Date.now());function sl(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;Ee(nl(n,s.value),t,5,[n])};return s.value=e,s.attached=tl(),s}function nl(e,t){if(A(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>r=>!r._stopped&&n&&n(r))}else return t}const Pn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,rl=(e,t,s,n,r,i)=>{const o=r==="svg";t==="class"?qo(e,n,o):t==="style"?zo(e,s,n):kt(t)?Ls(t)||Qo(e,t,s,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):il(e,t,n,o))?(On(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&En(e,t,n,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!G(n))?On(e,Ne(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),En(e,t,n,o))};function il(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Pn(t)&&P(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||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 Pn(t)&&G(s)?!1:t in e}const In=e=>{const t=e.props["onUpdate:modelValue"]||!1;return A(t)?s=>Kt(t,s):t};function ol(e){e.target.composing=!0}function Rn(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const xs=Symbol("_assign"),ll={created(e,{modifiers:{lazy:t,trim:s,number:n}},r){e[xs]=In(r);const i=n||r.props&&r.props.type==="number";ke(e,t?"change":"input",o=>{if(o.target.composing)return;let l=e.value;s&&(l=l.trim()),i&&(l=Cs(l)),e[xs](l)}),s&&ke(e,"change",()=>{e.value=e.value.trim()}),t||(ke(e,"compositionstart",ol),ke(e,"compositionend",Rn),ke(e,"change",Rn))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:r,number:i}},o){if(e[xs]=In(o),e.composing)return;const l=(i||e.type==="number")&&!/^0\d/.test(e.value)?Cs(e.value):e.value,f=t??"";l!==f&&(document.activeElement===e&&e.type!=="range"&&(n&&t===s||r&&e.value.trim()===f)||(e.value=f))}},cl=["ctrl","shift","alt","meta"],fl={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)=>cl.some(s=>e[`${s}Key`]&&!t.includes(s))},ws=(e,t)=>{const s=e._withMods||(e._withMods={}),n=t.join(".");return s[n]||(s[n]=(r,...i)=>{for(let o=0;o<t.length;o++){const l=fl[t[o]];if(l&&l(r,t))return}return e(r,...i)})},ul={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Fn=(e,t)=>{const s=e._withKeys||(e._withKeys={}),n=t.join(".");return s[n]||(s[n]=r=>{if(!("key"in r))return;const i=Be(r.key);if(t.some(o=>o===i||ul[o]===i))return e(r)})},al=se({patchProp:rl},Bo);let $n;function dl(){return $n||($n=uo(al))}const hl=(...e)=>{const t=dl().createApp(...e),{mount:s}=t;return t.mount=n=>{const r=gl(n);if(!r)return;const i=t._component;!P(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=s(r,!1,pl(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t};function pl(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function gl(e){return G(e)?document.querySelector(e):e}const Pt=(e,t)=>{const s=e.__vccOpts||e;for(const[n,r]of t)s[n]=r;return s},ml={class:"sidebar"},_l={class:"chat-list"},bl=["onClick"],yl={__name:"ChatSidebar",props:{chats:{type:Array,required:!0},currentChatId:{type:String,default:""}},emits:["select-chat","create-chat"],setup(e){return(t,s)=>(fe(),de("aside",ml,[s[1]||(s[1]=me("h2",null,"🗂️ Chats",-1)),me("button",{class:"new-chat-btn",onClick:s[0]||(s[0]=n=>t.$emit("create-chat"))}," Nuevo chat "),me("ul",_l,[(fe(!0),de(ae,null,_r(e.chats,n=>(fe(),de("li",{key:n.id,class:Ot({active:n.id===e.currentChatId}),onClick:r=>t.$emit("select-chat",n.id)},qt(n.name),11,bl))),128))])]))}},vl=Pt(yl,[["__scopeId","data-v-cd451cf6"]]),xl={formatDate(e){if(!e)return"";const t=new Date(e),s=t.getDate().toString().padStart(2,"0"),n=(t.getMonth()+1).toString().padStart(2,"0"),r=t.getFullYear(),i=t.getHours().toString().padStart(2,"0"),o=t.getMinutes().toString().padStart(2,"0");return`${s}/${n}/${r} ${i}:${o}`}},wl={class:"timestamp"},Sl={key:0,class:"spinner"},Cl={key:1,class:"thinking-text"},Tl={__name:"ChatMessages",props:{messages:{type:Array,required:!0},isLoading:{type:Boolean,default:!1}},setup(e){const t=e,s=et(null);Vt(()=>t.messages.length,async()=>{await or(),s.value&&(s.value.scrollTop=s.value.scrollHeight)});const n=r=>xl.formatDate(r);return(r,i)=>(fe(),de(ae,null,[me("div",{class:"chat-log",ref_key:"chatLog",ref:s},[(fe(!0),de(ae,null,_r(e.messages,(o,l)=>ar((fe(),de("div",{key:l,class:Ot(["bubble",o.role])},[me("span",null,qt(o.text),1),me("em",wl,qt(n(o.date)),1)],2)),[[Go,o.text]])),128))],512),e.isLoading?(fe(),de("div",Sl)):bn("",!0),e.isLoading?(fe(),de("div",Cl,"Pensando...")):bn("",!0)],64))}},El=Pt(Tl,[["__scopeId","data-v-96cd1719"]]),Ol=["disabled","onKeydown"],Ml=["disabled"],Al={__name:"ChatForm",props:{disabled:{type:Boolean,default:!1}},emits:["send-message"],setup(e,{emit:t}){const s=t,n=et(""),r=()=>{n.value.trim()&&(s("send-message",n.value.trim()),n.value="")},i=()=>{n.value+=`
`};return(o,l)=>(fe(),de("form",{class:"chat-form",onSubmit:ws(r,["prevent"])},[ar(me("textarea",{"onUpdate:modelValue":l[0]||(l[0]=f=>n.value=f),"aria-label":"Pregunta del usuario",placeholder:"Escribe tu mensaje...",autocomplete:"off",required:"",disabled:e.disabled,onKeydown:[Fn(ws(r,["exact","prevent"]),["enter"]),Fn(ws(i,["shift","exact"]),["enter"])]},null,40,Ol),[[ll,n.value]]),me("button",{type:"submit",disabled:e.disabled||!n.value.trim()}," Enviar ",8,Ml)],32))}},Pl=Pt(Al,[["__scopeId","data-v-dca915bb"]]),Il={class:"main-content"},Rl={__name:"ChatMain",props:{messages:{type:Array,required:!0},isLoading:{type:Boolean,default:!1}},emits:["send-message"],setup(e,{emit:t}){const s=t,n=r=>{s("send-message",r)};return(r,i)=>(fe(),de("main",Il,[i[0]||(i[0]=me("h1",{class:"main-title"},"🤖 Chat IA Offline",-1)),oe(El,{messages:e.messages,"is-loading":e.isLoading},null,8,["messages","is-loading"]),oe(Pl,{onSendMessage:n,disabled:e.isLoading},null,8,["disabled"])]))}},Fl=Pt(Rl,[["__scopeId","data-v-2c6be2f2"]]);class $l{async getChats(){try{const t=await fetch("/api/v1/chats",{method:"GET"});if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);return await t.json()}catch(t){throw console.error("Error fetching chats:",t),t}}async createChat(){try{const t=await fetch("/api/v1/chats",{method:"POST"});if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);return await t.text()}catch(t){throw console.error("Error creating chat:",t),t}}async getChatMessages(t){try{const s=await fetch(`/api/v1/chats/${t}`);if(!s.ok)throw new Error(`HTTP error! status: ${s.status}`);return await s.json()}catch(s){throw console.error("Error fetching messages:",s),s}}async sendMessage(t,s){try{const n=await fetch(`/api/v1/chats/${t}`,{method:"PUT",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({prompt:s})});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);return await n.json()}catch(n){throw console.error("Error sending message:",n),n}}}const Nt=new $l,Dl={class:"layout-container"},Ll={__name:"ChatLayout",setup(e){const t=et(""),s=et([]),n=et([]),r=et(!1),i=async()=>{try{const a=await Nt.getChats();s.value=a,!t.value&&a.length>0&&(t.value=a[0].id,await o(t.value))}catch(a){console.error("Error cargando historial:",a)}},o=async a=>{try{const p=await Nt.getChatMessages(a);n.value=p}catch(p){console.error("Error al cargar mensajes:",p),n.value.push({role:"bot",text:"❌ Error cargando mensajes del chat.",date:new Date().toISOString()})}},l=async a=>{a!==t.value&&(t.value=a,await o(t.value))},f=async()=>{try{const a=await Nt.createChat();t.value=a,await i(),await o(t.value)}catch(a){console.error("Error al crear nuevo chat:",a),n.value&&n.value.push({role:"bot",text:"❌ Error creando nuevo chat.",date:new Date().toISOString()})}},h=async a=>{t.value||await f();const p={role:"user",text:a,date:new Date().toISOString()};n.value.push(p),r.value=!0;try{const S=await Nt.sendMessage(t.value,a);t.value=S.chatId;const C={role:"bot",text:S.text,date:S.date};n.value.push(C),await i()}catch(S){console.error("Error enviando mensaje:",S),n.value.push({role:"bot",text:"❌ Error procesando la respuesta.",date:new Date().toISOString()})}finally{r.value=!1}};return gr(async()=>{await i()}),(a,p)=>(fe(),de("div",Dl,[oe(vl,{chats:s.value,"current-chat-id":t.value,onSelectChat:l,onCreateChat:f},null,8,["chats","current-chat-id"]),oe(Fl,{messages:n.value,"is-loading":r.value,onSendMessage:h},null,8,["messages","is-loading"])]))}},Hl=Pt(Ll,[["__scopeId","data-v-6fe96f7a"]]),jl={id:"app"},Nl={__name:"App",setup(e){return(t,s)=>(fe(),de("div",jl,[oe(Hl)]))}};hl(Nl).mount("#app");