Files
soft_usite/public/orchestrator/assets/index-DopCJrBT.js
T
Lizandro GuarnizoandClaude Sonnet 5 b2f6b518b6 fix: navegar al detalle del tenant tras crearlo, fila clickeable en la lista
El único link a /tenants/:id era el nombre del tenant en texto plano sin
ningún indicio visual de que fuera clickeable — después de crear un tenant
no había forma obvia de llegar a configurarlo (base de conocimiento, tools,
canales). Ahora crear un tenant navega directo a su detalle, y toda la fila
de la lista es clickeable con un "Configurar →" explícito.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-11 22:28:21 -05:00

27 lines
117 KiB
JavaScript

(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.41
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Ls(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const re={},$t=[],lt=()=>{},no=()=>!1,Kn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Gn=e=>e.startsWith("onUpdate:"),_e=Object.assign,Us=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ci=Object.prototype.hasOwnProperty,Z=(e,t)=>Ci.call(e,t),K=Array.isArray,Kt=e=>wn(e)==="[object Map]",Xt=e=>wn(e)==="[object Set]",ar=e=>wn(e)==="[object Date]",W=e=>typeof e=="function",fe=e=>typeof e=="string",ut=e=>typeof e=="symbol",ee=e=>e!==null&&typeof e=="object",so=e=>(ee(e)||W(e))&&W(e.then)&&W(e.catch),ro=Object.prototype.toString,wn=e=>ro.call(e),Ai=e=>wn(e).slice(8,-1),oo=e=>wn(e)==="[object Object]",Fs=e=>fe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ln=Ls(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Wn=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Si=/-\w/g,Te=Wn(e=>e.replace(Si,t=>t.slice(1).toUpperCase())),Ri=/\B([A-Z])/g,Ut=Wn(e=>e.replace(Ri,"-$1").toLowerCase()),qn=Wn(e=>e.charAt(0).toUpperCase()+e.slice(1)),is=Wn(e=>e?`on${qn(e)}`:""),ot=(e,t)=>!Object.is(e,t),Pn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},io=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},zn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let ur;const Jn=()=>ur||(ur=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Hs(e){if(K(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=fe(s)?Ii(s):Hs(s);if(r)for(const o in r)t[o]=r[o]}return t}else if(fe(e)||ee(e))return e}const Oi=/;(?![^(]*\))/g,Ti=/:([^]+)/,Pi=/\/\*[^]*?\*\//g;function Ii(e){const t={};return e.replace(Pi,"").split(Oi).forEach(n=>{if(n){const s=n.split(Ti);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function tt(e){let t="";if(fe(e))t=e;else if(K(e))for(let n=0;n<e.length;n++){const s=tt(e[n]);s&&(t+=s+" ")}else if(ee(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Ni="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ki=Ls(Ni);function lo(e){return!!e||e===""}function Di(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Zt(e[s],t[s]);return n}function Zt(e,t){if(e===t)return!0;let n=ar(e),s=ar(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=ut(e),s=ut(t),n||s)return e===t;if(n=K(e),s=K(t),n||s)return n&&s?Di(e,t):!1;if(n=ee(e),s=ee(t),n||s){if(!n||!s)return!1;const r=Object.keys(e).length,o=Object.keys(t).length;if(r!==o)return!1;for(const i in e){const a=e.hasOwnProperty(i),u=t.hasOwnProperty(i);if(a&&!u||!a&&u||!Zt(e[i],t[i]))return!1}}return String(e)===String(t)}function Bs(e,t){return e.findIndex(n=>Zt(n,t))}const ao=e=>!!(e&&e.__v_isRef===!0),Q=e=>fe(e)?e:e==null?"":K(e)||ee(e)&&(e.toString===ro||!W(e.toString))?ao(e)?Q(e.value):JSON.stringify(e,uo,2):String(e),uo=(e,t)=>ao(t)?uo(e,t.value):Kt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[ls(s,o)+" =>"]=r,n),{})}:Xt(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ls(n))}:ut(t)?ls(t):ee(t)&&!K(t)&&!oo(t)?String(t):t,ls=(e,t="")=>{var n;return ut(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
* @vue/reactivity v3.5.41
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let be;class Mi{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&be&&(be.active?(this.parent=be,this.index=(be.scopes||(be.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes){const s=this.scopes.slice();for(t=0,n=s.length;t<n;t++)s[t].pause()}for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes){const r=this.scopes.slice();for(t=0,n=r.length;t<n;t++)r[t].resume()}const s=this.effects.slice();for(t=0,n=s.length;t<n;t++)s[t].resume()}}run(t){if(this._active){const n=be;try{return be=this,t()}finally{be=n}}}on(){++this._on===1&&(this.prevScope=be,be=this)}off(){if(this._on>0&&--this._on===0){if(be===this)be=this.prevScope;else{let t=be;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){const r=this.scopes.slice();for(n=0,s=r.length;n<s;n++)r[n].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 Vi(){return be}let le;const as=new WeakSet;class co{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,be&&(be.active?be.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,as.has(this)&&(as.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||po(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,cr(this),ho(this);const t=le,n=Ke;le=this,Ke=!0;try{return this.fn()}finally{go(this),le=t,Ke=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Gs(t);this.deps=this.depsTail=void 0,cr(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?as.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ws(this)&&this.run()}get dirty(){return ws(this)}}let fo=0,an,un;function po(e,t=!1){if(e.flags|=8,t){e.next=un,un=e;return}e.next=an,an=e}function $s(){fo++}function Ks(){if(--fo>0)return;if(un){let t=un;for(un=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;an;){let t=an;for(an=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 ho(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function go(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),Gs(s),ji(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function ws(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(mo(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function mo(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===hn)||(e.globalVersion=hn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ws(e))))return;e.flags|=2;const t=e.dep,n=le,s=Ke;le=e,Ke=!0;try{ho(e);const r=e.fn(e._value);(t.version===0||ot(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{le=n,Ke=s,go(e),e.flags&=-3}}function Gs(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)Gs(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function ji(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ke=!0;const vo=[];function yt(){vo.push(Ke),Ke=!1}function bt(){const e=vo.pop();Ke=e===void 0?!0:e}function cr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=le;le=void 0;try{t()}finally{le=n}}}let hn=0;class Li{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 Ws{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(!le||!Ke||le===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==le)n=this.activeLink=new Li(le,this),le.deps?(n.prevDep=le.depsTail,le.depsTail.nextDep=n,le.depsTail=n):le.deps=le.depsTail=n,yo(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=le.depsTail,n.nextDep=void 0,le.depsTail.nextDep=n,le.depsTail=n,le.deps===n&&(le.deps=s)}return n}trigger(t){this.version++,hn++,this.notify(t)}notify(t){$s();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Ks()}}}function yo(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)yo(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Es=new WeakMap,Mt=Symbol(""),Cs=Symbol(""),gn=Symbol("");function we(e,t,n){if(Ke&&le){let s=Es.get(e);s||Es.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new Ws),r.map=s,r.key=n),r.track()}}function mt(e,t,n,s,r,o){const i=Es.get(e);if(!i){hn++;return}const a=u=>{u&&u.trigger()};if($s(),t==="clear")i.forEach(a);else{const u=K(e),p=u&&Fs(n);if(u&&n==="length"){const f=Number(s);i.forEach((h,g)=>{(g==="length"||g===gn||!ut(g)&&g>=f)&&a(h)})}else switch((n!==void 0||i.has(void 0))&&a(i.get(n)),p&&a(i.get(gn)),t){case"add":u?p&&a(i.get("length")):(a(i.get(Mt)),Kt(e)&&a(i.get(Cs)));break;case"delete":u||(a(i.get(Mt)),Kt(e)&&a(i.get(Cs)));break;case"set":Kt(e)&&a(i.get(Mt));break}}Ks()}function Ft(e){const t=X(e);return t===e?t:(we(t,"iterate",gn),Be(e)?t:t.map(Ge))}function Qn(e){return we(e=X(e),"iterate",gn),e}function nt(e,t){return _t(e)?qt(Vt(e)?Ge(t):t):Ge(t)}const Ui={__proto__:null,[Symbol.iterator](){return us(this,Symbol.iterator,e=>nt(this,e))},concat(...e){return Ft(this).concat(...e.map(t=>K(t)?Ft(t):t))},entries(){return us(this,"entries",e=>(e[1]=nt(this,e[1]),e))},every(e,t){return dt(this,"every",e,t,void 0,arguments)},filter(e,t){return dt(this,"filter",e,t,n=>n.map(s=>nt(this,s)),arguments)},find(e,t){return dt(this,"find",e,t,n=>nt(this,n),arguments)},findIndex(e,t){return dt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return dt(this,"findLast",e,t,n=>nt(this,n),arguments)},findLastIndex(e,t){return dt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return dt(this,"forEach",e,t,void 0,arguments)},includes(...e){return cs(this,"includes",e)},indexOf(...e){return cs(this,"indexOf",e)},join(e){return Ft(this).join(e)},lastIndexOf(...e){return cs(this,"lastIndexOf",e)},map(e,t){return dt(this,"map",e,t,void 0,arguments)},pop(){return tn(this,"pop")},push(...e){return tn(this,"push",e)},reduce(e,...t){return fr(this,"reduce",e,t)},reduceRight(e,...t){return fr(this,"reduceRight",e,t)},shift(){return tn(this,"shift")},some(e,t){return dt(this,"some",e,t,void 0,arguments)},splice(...e){return tn(this,"splice",e)},toReversed(){return Ft(this).toReversed()},toSorted(e){return Ft(this).toSorted(e)},toSpliced(...e){return Ft(this).toSpliced(...e)},unshift(...e){return tn(this,"unshift",e)},values(){return us(this,"values",e=>nt(this,e))}};function us(e,t,n){const s=Qn(e),r=s[t]();return s!==e&&!Be(e)&&(r._next=r.next,r.next=()=>{const o=r._next();return o.done||(o.value=n(o.value)),o}),r}const Fi=Array.prototype;function dt(e,t,n,s,r,o){const i=Qn(e),a=i!==e&&!Be(e),u=i[t];if(u!==Fi[t]){const h=u.apply(e,o);return a?Ge(h):h}let p=n;i!==e&&(a?p=function(h,g){return n.call(this,nt(e,h),g,e)}:n.length>2&&(p=function(h,g){return n.call(this,h,g,e)}));const f=u.call(i,p,s);return a&&r?r(f):f}function fr(e,t,n,s){const r=Qn(e),o=r!==e&&!Be(e);let i=n,a=!1;r!==e&&(o?(a=s.length===0,i=function(p,f,h){return a&&(a=!1,p=nt(e,p)),n.call(this,p,nt(e,f),h,e)}):n.length>3&&(i=function(p,f,h){return n.call(this,p,f,h,e)}));const u=r[t](i,...s);return a?nt(e,u):u}function cs(e,t,n){const s=X(e);we(s,"iterate",gn);const r=s[t](...n);return(r===-1||r===!1)&&Js(n[0])?(n[0]=X(n[0]),s[t](...n)):r}function tn(e,t,n=[]){yt(),$s();const s=X(e)[t].apply(e,n);return Ks(),bt(),s}const Hi=Ls("__proto__,__v_isRef,__isVue"),bo=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ut));function Bi(e){ut(e)||(e=String(e));const t=X(this);return we(t,"has",e),t.hasOwnProperty(e)}class _o{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?Xi:Co:o?Eo:wo).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=K(t);if(!r){let u;if(i&&(u=Ui[n]))return u;if(n==="hasOwnProperty")return Bi}const a=Reflect.get(t,n,Ae(t)?t:s);if((ut(n)?bo.has(n):Hi(n))||(r||we(t,"get",n),o))return a;if(Ae(a)){const u=i&&Fs(n)?a:a.value;return r&&ee(u)?Ss(u):u}return ee(a)?r?Ss(a):Yn(a):a}}class xo extends _o{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];const i=K(t)&&Fs(n);if(!this._isShallow){const p=_t(o);if(!Be(s)&&!_t(s)&&(o=X(o),s=X(s)),!i&&Ae(o)&&!Ae(s))return p||(o.value=s),!0}const a=i?Number(n)<t.length:Z(t,n),u=Reflect.set(t,n,s,Ae(t)?t:r);return t===X(r)&&u&&(a?ot(s,o)&&mt(t,"set",n,s):mt(t,"add",n,s)),u}deleteProperty(t,n){const s=Z(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&s&&mt(t,"delete",n,void 0),r}has(t,n){const s=Reflect.has(t,n);return(!ut(n)||!bo.has(n))&&we(t,"has",n),s}ownKeys(t){return we(t,"iterate",K(t)?"length":Mt),Reflect.ownKeys(t)}}class $i extends _o{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Ki=new xo,Gi=new $i,Wi=new xo(!0);const As=e=>e,An=e=>Reflect.getPrototypeOf(e);function qi(e,t,n){return function(...s){const r=this.__v_raw,o=X(r),i=Kt(o),a=e==="entries"||e===Symbol.iterator&&i,u=e==="keys"&&i,p=r[e](...s),f=n?As:t?qt:Ge;return!t&&we(o,"iterate",u?Cs:Mt),_e(Object.create(p),{next(){const{value:h,done:g}=p.next();return g?{value:h,done:g}:{value:a?[f(h[0]),f(h[1])]:f(h),done:g}}})}}function Sn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function zi(e,t){const n={get(r){const o=this.__v_raw,i=X(o),a=X(r);e||(ot(r,a)&&we(i,"get",r),we(i,"get",a));const{has:u}=An(i),p=t?As:e?qt:Ge;if(u.call(i,r))return p(o.get(r));if(u.call(i,a))return p(o.get(a));o!==i&&o.get(r)},get size(){const r=this.__v_raw;return!e&&we(X(r),"iterate",Mt),r.size},has(r){const o=this.__v_raw,i=X(o),a=X(r);return e||(ot(r,a)&&we(i,"has",r),we(i,"has",a)),r===a?o.has(r):o.has(r)||o.has(a)},forEach(r,o){const i=this,a=i.__v_raw,u=X(a),p=t?As:e?qt:Ge;return!e&&we(u,"iterate",Mt),a.forEach((f,h)=>r.call(o,p(f),p(h),i))}};return _e(n,e?{add:Sn("add"),set:Sn("set"),delete:Sn("delete"),clear:Sn("clear")}:{add(r){const o=X(this),i=An(o),a=X(r),u=!t&&!Be(r)&&!_t(r)?a:r;return i.has.call(o,u)||ot(r,u)&&i.has.call(o,r)||ot(a,u)&&i.has.call(o,a)||(o.add(u),mt(o,"add",u,u)),this},set(r,o){!t&&!Be(o)&&!_t(o)&&(o=X(o));const i=X(this),{has:a,get:u}=An(i);let p=a.call(i,r);p||(r=X(r),p=a.call(i,r));const f=u.call(i,r);return i.set(r,o),p?ot(o,f)&&mt(i,"set",r,o):mt(i,"add",r,o),this},delete(r){const o=X(this),{has:i,get:a}=An(o);let u=i.call(o,r);u||(r=X(r),u=i.call(o,r)),a&&a.call(o,r);const p=o.delete(r);return u&&mt(o,"delete",r,void 0),p},clear(){const r=X(this),o=r.size!==0,i=r.clear();return o&&mt(r,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=qi(r,e,t)}),n}function qs(e,t){const n=zi(e,t);return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(Z(n,r)&&r in s?n:s,r,o)}const Ji={get:qs(!1,!1)},Qi={get:qs(!1,!0)},Yi={get:qs(!0,!1)};const wo=new WeakMap,Eo=new WeakMap,Co=new WeakMap,Xi=new WeakMap;function Zi(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Yn(e){return _t(e)?e:zs(e,!1,Ki,Ji,wo)}function Ao(e){return zs(e,!1,Wi,Qi,Eo)}function Ss(e){return zs(e,!0,Gi,Yi,Co)}function zs(e,t,n,s,r){if(!ee(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const o=r.get(e);if(o)return o;const i=Zi(Ai(e));if(i===0)return e;const a=new Proxy(e,i===2?s:n);return r.set(e,a),a}function Vt(e){return _t(e)?Vt(e.__v_raw):!!(e&&e.__v_isReactive)}function _t(e){return!!(e&&e.__v_isReadonly)}function Be(e){return!!(e&&e.__v_isShallow)}function Js(e){return e?!!e.__v_raw:!1}function X(e){const t=e&&e.__v_raw;return t?X(t):e}function el(e){return!Z(e,"__v_skip")&&Object.isExtensible(e)&&io(e,"__v_skip",!0),e}const Ge=e=>ee(e)?Yn(e):e,qt=e=>ee(e)?Ss(e):e;function Ae(e){return e?e.__v_isRef===!0:!1}function ne(e){return So(e,!1)}function tl(e){return So(e,!0)}function So(e,t){return Ae(e)?e:new nl(e,t)}class nl{constructor(t,n){this.dep=new Ws,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:X(t),this._value=n?t:Ge(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Be(t)||_t(t);t=s?t:X(t),ot(t,n)&&(this._rawValue=t,this._value=s?t:Ge(t),this.dep.trigger())}}function jt(e){return Ae(e)?e.value:e}const sl={get:(e,t,n)=>t==="__v_raw"?e:jt(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return Ae(r)&&!Ae(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Ro(e){return Vt(e)?e:new Proxy(e,sl)}class rl{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Ws(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=hn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&le!==this)return po(this,!0),!0}get value(){const t=this.dep.track();return mo(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ol(e,t,n=!1){let s,r;return W(e)?s=e:(s=e.get,r=e.set),new rl(s,r,n)}const Rn={},Mn=new WeakMap;let kt;function il(e,t=!1,n=kt){if(n){let s=Mn.get(n);s||Mn.set(n,s=[]),s.push(e)}}function ll(e,t,n=re){const{immediate:s,deep:r,once:o,scheduler:i,augmentJob:a,call:u}=n,p=D=>r?D:Be(D)||r===!1||r===0?vt(D,1):vt(D);let f,h,g,v,M=!1,E=!1;if(Ae(e)?(h=()=>e.value,M=Be(e)):Vt(e)?(h=()=>p(e),M=!0):K(e)?(E=!0,M=e.some(D=>Vt(D)||Be(D)),h=()=>e.map(D=>{if(Ae(D))return D.value;if(Vt(D))return p(D);if(W(D))return u?u(D,2):D()})):W(e)?t?h=u?()=>u(e,2):e:h=()=>{if(g){yt();try{g()}finally{bt()}}const D=kt;kt=f;try{return u?u(e,3,[v]):e(v)}finally{kt=D}}:h=lt,t&&r){const D=h,q=r===!0?1/0:r;h=()=>vt(D(),q)}const C=Vi(),R=()=>{f.stop(),C&&C.active&&Us(C.effects,f)};if(o&&t){const D=t;t=(...q)=>{const oe=D(...q);return R(),oe}}let I=E?new Array(e.length).fill(Rn):Rn;const V=D=>{if(!(!(f.flags&1)||!f.dirty&&!D))if(t){const q=f.run();if(D||r||M||(E?q.some((oe,U)=>ot(oe,I[U])):ot(q,I))){g&&g();const oe=kt;kt=f;try{const U=[q,I===Rn?void 0:E&&I[0]===Rn?[]:I,v];I=q,u?u(t,3,U):t(...U)}finally{kt=oe}}}else f.run()};return a&&a(V),f=new co(h),f.scheduler=i?()=>i(V,!1):V,v=D=>il(D,!1,f),g=f.onStop=()=>{const D=Mn.get(f);if(D){if(u)u(D,4);else for(const q of D)q();Mn.delete(f)}},t?s?V(!0):I=f.run():i?i(V.bind(null,!0),!0):f.run(),R.pause=f.pause.bind(f),R.resume=f.resume.bind(f),R.stop=R,R}function vt(e,t=1/0,n){if(t<=0||!ee(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ae(e))vt(e.value,t,n);else if(K(e))for(let s=0;s<e.length;s++)vt(e[s],t,n);else if(Xt(e)||Kt(e))e.forEach(s=>{vt(s,t,n)});else if(oo(e)){for(const s in e)vt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&vt(e[s],t,n)}return e}/**
* @vue/runtime-core v3.5.41
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function En(e,t,n,s){try{return s?e(...s):e()}catch(r){Xn(r,t,n)}}function We(e,t,n,s){if(W(e)){const r=En(e,t,n,s);return r&&so(r)&&r.catch(o=>{Xn(o,t,n)}),r}if(K(e)){const r=[];for(let o=0;o<e.length;o++)r.push(We(e[o],t,n,s));return r}}function Xn(e,t,n,s=!0){const r=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||re;if(t){let a=t.parent;const u=t.proxy,p=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const f=a.ec;if(f){for(let h=0;h<f.length;h++)if(f[h](e,u,p)===!1)return}a=a.parent}if(o){yt(),En(o,null,10,[e,u,p]),bt();return}}al(e,n,r,s,i)}function al(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}const Oe=[];let Ze=-1;const Gt=[];let Rt=null,Ht=0;const Oo=Promise.resolve();let Vn=null;function Qs(e){const t=Vn||Oo;return e?t.then(this?e.bind(this):e):t}function ul(e){let t=Ze+1,n=Oe.length;for(;t<n;){const s=t+n>>>1,r=Oe[s],o=mn(r);o<e||o===e&&r.flags&2?t=s+1:n=s}return t}function Ys(e){if(!(e.flags&1)){const t=mn(e),n=Oe[Oe.length-1];!n||!(e.flags&2)&&t>=mn(n)?Oe.push(e):Oe.splice(ul(t),0,e),e.flags|=1,To()}}function To(){Vn||(Vn=Oo.then(Io))}function cl(e){if(!K(e))Rt&&e.id===-1?Rt.splice(Ht+1,0,e):e.flags&1||(Gt.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)Gt.push(e[t]);To()}function dr(e,t,n=Ze+1){for(;n<Oe.length;n++){const s=Oe[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;Oe.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function Po(e){if(Gt.length){const t=[...new Set(Gt)].sort((n,s)=>mn(n)-mn(s));if(Gt.length=0,Rt){for(let n=0;n<t.length;n++)Rt.push(t[n]);return}for(Rt=t,Ht=0;Ht<Rt.length;Ht++){const n=Rt[Ht];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Rt=null,Ht=0}}const mn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Io(e){try{for(Ze=0;Ze<Oe.length;Ze++){const t=Oe[Ze];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),En(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ze<Oe.length;Ze++){const t=Oe[Ze];t&&(t.flags&=-2)}Ze=-1,Oe.length=0,Po(),Vn=null,(Oe.length||Gt.length)&&Io()}}let Me=null,No=null;function jn(e){const t=Me;return Me=e,No=e&&e.type.__scopeId||null,t}function Xs(e,t=Me,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Fn(-1);const o=jn(t),i=Lt.length;let a;try{a=e(...r)}finally{for(let u=Lt.length;u>i;u--)si();jn(o),s._d&&Fn(1)}return a};return s._n=!0,s._c=!0,s._d=!0,s}function ie(e,t){if(Me===null)return e;const n=ss(Me),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[o,i,a,u=re]=t[r];o&&(W(o)&&(o={mounted:o,updated:o}),o.deep&&vt(i),s.push({dir:o,instance:n,value:i,oldValue:void 0,arg:a,modifiers:u}))}return e}function It(e,t,n,s){const r=e.dirs,o=t&&t.dirs;for(let i=0;i<r.length;i++){const a=r[i];o&&(a.oldValue=o[i].value);let u=a.dir[s];u&&(yt(),We(u,n,8,[e.el,a,e,t]),bt())}}function In(e,t){if(Ee){let n=Ee.provides;const s=Ee.parent&&Ee.parent.provides;s===n&&(n=Ee.provides=Object.create(s)),n[e]=t}}function at(e,t,n=!1){const s=ua();if(s||Wt){let r=Wt?Wt._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&W(t)?t.call(s&&s.proxy):t}}const fl=Symbol.for("v-scx"),dl=()=>at(fl);function Nn(e,t,n){return ko(e,t,n)}function ko(e,t,n=re){const{immediate:s,deep:r,flush:o,once:i}=n,a=_e({},n),u=t&&s||!t&&o!=="post";let p;if(bn){if(o==="sync"){const v=dl();p=v.__watcherHandles||(v.__watcherHandles=[])}else if(!u){const v=()=>{};return v.stop=lt,v.resume=lt,v.pause=lt,v}}const f=Ee;a.call=(v,M,E)=>We(v,f,M,E);let h=!1;o==="post"?a.scheduler=v=>{Pe(v,f&&f.suspense)}:o!=="sync"&&(h=!0,a.scheduler=(v,M)=>{M?v():Ys(v)}),a.augmentJob=v=>{t&&(v.flags|=4),h&&(v.flags|=2,f&&(v.id=f.uid,v.i=f))};const g=ll(e,t,a);return bn&&(p?p.push(g):u&&g()),g}function pl(e,t,n){const s=this.proxy,r=fe(e)?e.includes(".")?Do(s,e):()=>s[e]:e.bind(s,s);let o;W(t)?o=t:(o=t.handler,n=t);const i=Cn(this),a=ko(r,o.bind(s),n);return i(),a}function Do(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}const hl=Symbol("_vte"),Zn=e=>e.__isTeleport,fs=Symbol("_leaveCb");function gl(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==xt){t=n;break}}return t}function Mo(e){if(!er(e))return Zn(e.type)&&e.children?gl(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&W(n.default))return n.default()}}function Zs(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const n=e.component.subTree;Zs(Zn(n.type)&&Mo(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Vo(e,t){return W(e)?_e({name:e.name},t,{setup:e}):e}function jo(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function pr(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Ln=new WeakMap;function cn(e,t,n,s,r=!1){if(K(e)){e.forEach((E,C)=>cn(E,t&&(K(t)?t[C]:t),n,s,r));return}if(fn(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&cn(e,t,n,s.component.subTree);return}const o=s.shapeFlag&4?ss(s.component):s.el,i=r?null:o,{i:a,r:u}=e,p=t&&t.r,f=a.refs===re?a.refs={}:a.refs,h=a.setupState,g=X(h),v=h===re?no:E=>pr(f,E)?!1:Z(g,E),M=(E,C)=>!(C&&pr(f,C));if(p!=null&&p!==u){if(hr(t),fe(p))f[p]=null,v(p)&&(h[p]=null);else if(Ae(p)){const E=t;M(p,E.k)&&(p.value=null),E.k&&(f[E.k]=null)}}if(W(u))En(u,a,12,[i,f]);else{const E=fe(u),C=Ae(u);if(E||C){const R=()=>{if(e.f){const I=E?v(u)?h[u]:f[u]:M()||!e.k?u.value:f[e.k];if(r)K(I)&&Us(I,o);else if(K(I))I.includes(o)||I.push(o);else if(E)f[u]=[o],v(u)&&(h[u]=f[u]);else{const V=[o];M(u,e.k)&&(u.value=V),e.k&&(f[e.k]=V)}}else E?(f[u]=i,v(u)&&(h[u]=i)):C&&(M(u,e.k)&&(u.value=i),e.k&&(f[e.k]=i))};if(i){const I=()=>{R(),Ln.delete(e)};I.id=-1,Ln.set(e,I),Pe(I,n)}else hr(e),R()}}}function hr(e){const t=Ln.get(e);t&&(t.flags|=8,Ln.delete(e))}Jn().requestIdleCallback;Jn().cancelIdleCallback;const fn=e=>!!e.type.__asyncLoader,er=e=>e.type.__isKeepAlive;function ml(e,t){Lo(e,"a",t)}function vl(e,t){Lo(e,"da",t)}function Lo(e,t,n=Ee){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(es(t,s,n),n){let r=n.parent;for(;r&&r.parent;)er(r.parent.vnode)&&yl(s,t,n,r),r=r.parent}}function yl(e,t,n,s){const r=es(t,e,s,!0);Uo(()=>{Us(s[t],r)},n)}function es(e,t,n=Ee,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{yt();const a=Cn(n),u=We(t,n,e,i);return a(),bt(),u});return s?r.unshift(o):r.push(o),o}}const wt=e=>(t,n=Ee)=>{(!bn||e==="sp")&&es(e,(...s)=>t(...s),n)},bl=wt("bm"),tr=wt("m"),_l=wt("bu"),xl=wt("u"),wl=wt("bum"),Uo=wt("um"),El=wt("sp"),Cl=wt("rtg"),Al=wt("rtc");function Sl(e,t=Ee){es("ec",e,t)}const Rl="components";function Rs(e,t){return Tl(Rl,e,!0,t)||e}const Ol=Symbol.for("v-ndc");function Tl(e,t,n=!0,s=!1){const r=Me||Ee;if(r){const o=r.type;{const a=ha(o,!1);if(a&&(a===t||a===Te(t)||a===qn(Te(t))))return o}const i=gr(r[e]||o[e],t)||gr(r.appContext[e],t);return!i&&s?o:i}}function gr(e,t){return e&&(e[t]||e[Te(t)]||e[qn(Te(t))])}function et(e,t,n,s){let r;const o=n,i=K(e);if(i||fe(e)){const a=i&&Vt(e);let u=!1,p=!1;a&&(u=!Be(e),p=_t(e),e=Qn(e)),r=new Array(e.length);for(let f=0,h=e.length;f<h;f++)r[f]=t(u?p?qt(Ge(e[f])):Ge(e[f]):e[f],f,void 0,o)}else if(typeof e=="number"){r=new Array(e);for(let a=0;a<e;a++)r[a]=t(a+1,a,void 0,o)}else if(ee(e))if(e[Symbol.iterator])r=Array.from(e,(a,u)=>t(a,u,void 0,o));else{const a=Object.keys(e);r=new Array(a.length);for(let u=0,p=a.length;u<p;u++){const f=a[u];r[u]=t(e[f],f,u,o)}}else r=[];return r}const Os=e=>e?ii(e)?ss(e):Os(e.parent):null,dn=_e(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=>Os(e.parent),$root:e=>Os(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ho(e),$forceUpdate:e=>e.f||(e.f=()=>{Ys(e.update)}),$nextTick:e=>e.n||(e.n=Qs.bind(e.proxy)),$watch:e=>pl.bind(e)}),ds=(e,t)=>e!==re&&!e.__isScriptSetup&&Z(e,t),Pl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:a,appContext:u}=e;if(t[0]!=="$"){const g=i[t];if(g!==void 0)switch(g){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(ds(s,t))return i[t]=1,s[t];if(r!==re&&Z(r,t))return i[t]=2,r[t];if(Z(o,t))return i[t]=3,o[t];if(n!==re&&Z(n,t))return i[t]=4,n[t];Ts&&(i[t]=0)}}const p=dn[t];let f,h;if(p)return t==="$attrs"&&we(e.attrs,"get",""),p(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==re&&Z(n,t))return i[t]=4,n[t];if(h=u.config.globalProperties,Z(h,t))return h[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return ds(r,t)?(r[t]=n,!0):s!==re&&Z(s,t)?(s[t]=n,!0):Z(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}},a){let u;return!!(n[a]||e!==re&&a[0]!=="$"&&Z(e,a)||ds(t,a)||Z(o,a)||Z(s,a)||Z(dn,a)||Z(r.config.globalProperties,a)||(u=i.__cssModules)&&u[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Z(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function mr(e){return K(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Ts=!0;function Il(e){const t=Ho(e),n=e.proxy,s=e.ctx;Ts=!1,t.beforeCreate&&vr(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:a,provide:u,inject:p,created:f,beforeMount:h,mounted:g,beforeUpdate:v,updated:M,activated:E,deactivated:C,beforeDestroy:R,beforeUnmount:I,destroyed:V,unmounted:D,render:q,renderTracked:oe,renderTriggered:U,errorCaptured:Ie,serverPrefetch:je,expose:Le,inheritAttrs:ze,components:ct,directives:Ue,filters:Pt}=t;if(p&&Nl(p,s,null),i)for(const z in i){const B=i[z];W(B)&&(s[z]=B.bind(n))}if(r){const z=r.call(n,n);ee(z)&&(e.data=Yn(z))}if(Ts=!0,o)for(const z in o){const B=o[z],Fe=W(B)?B.bind(n,n):W(B.get)?B.get.bind(n,n):lt,Ne=!W(B)&&W(B.set)?B.set.bind(n):lt,He=De({get:Fe,set:Ne});Object.defineProperty(s,z,{enumerable:!0,configurable:!0,get:()=>He.value,set:xe=>He.value=xe})}if(a)for(const z in a)Fo(a[z],s,n,z);if(u){const z=W(u)?u.call(n):u;Reflect.ownKeys(z).forEach(B=>{In(B,z[B])})}f&&vr(f,e,"c");function ae(z,B){K(B)?B.forEach(Fe=>z(Fe.bind(n))):B&&z(B.bind(n))}if(ae(bl,h),ae(tr,g),ae(_l,v),ae(xl,M),ae(ml,E),ae(vl,C),ae(Sl,Ie),ae(Al,oe),ae(Cl,U),ae(wl,I),ae(Uo,D),ae(El,je),K(Le))if(Le.length){const z=e.exposed||(e.exposed={});Le.forEach(B=>{Object.defineProperty(z,B,{get:()=>n[B],set:Fe=>n[B]=Fe,enumerable:!0})})}else e.exposed||(e.exposed={});q&&e.render===lt&&(e.render=q),ze!=null&&(e.inheritAttrs=ze),ct&&(e.components=ct),Ue&&(e.directives=Ue),je&&jo(e)}function Nl(e,t,n=lt){K(e)&&(e=Ps(e));for(const s in e){const r=e[s];let o;ee(r)?"default"in r?o=at(r.from||s,r.default,!0):o=at(r.from||s):o=at(r),Ae(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[s]=o}}function vr(e,t,n){We(K(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Fo(e,t,n,s){let r=s.includes(".")?Do(n,s):()=>n[s];if(fe(e)){const o=t[e];W(o)&&Nn(r,o)}else if(W(e))Nn(r,e.bind(n));else if(ee(e))if(K(e))e.forEach(o=>Fo(o,t,n,s));else{const o=W(e.handler)?e.handler.bind(n):t[e.handler];W(o)&&Nn(r,o,e)}}function Ho(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,a=o.get(t);let u;return a?u=a:!r.length&&!n&&!s?u=t:(u={},r.length&&r.forEach(p=>Un(u,p,i,!0)),Un(u,t,i)),ee(t)&&o.set(t,u),u}function Un(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&Un(e,o,n,!0),r&&r.forEach(i=>Un(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const a=kl[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const kl={data:yr,props:br,emits:br,methods:rn,computed:rn,beforeCreate:Se,created:Se,beforeMount:Se,mounted:Se,beforeUpdate:Se,updated:Se,beforeDestroy:Se,beforeUnmount:Se,destroyed:Se,unmounted:Se,activated:Se,deactivated:Se,errorCaptured:Se,serverPrefetch:Se,components:rn,directives:rn,watch:Ml,provide:yr,inject:Dl};function yr(e,t){return t?e?function(){return _e(W(e)?e.call(this,this):e,W(t)?t.call(this,this):t)}:t:e}function Dl(e,t){return rn(Ps(e),Ps(t))}function Ps(e){if(K(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Se(e,t){return e?[...new Set([].concat(e,t))]:t}function rn(e,t){return e?_e(Object.create(null),e,t):t}function br(e,t){return e?K(e)&&K(t)?[...new Set([...e,...t])]:_e(Object.create(null),mr(e),mr(t??{})):t}function Ml(e,t){if(!e)return t;if(!t)return e;const n=_e(Object.create(null),e);for(const s in t)n[s]=Se(e[s],t[s]);return n}function Bo(){return{app:null,config:{isNativeTag:no,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 Vl=0;function jl(e,t){return function(s,r=null){W(s)||(s=_e({},s)),r!=null&&!ee(r)&&(r=null);const o=Bo(),i=new WeakSet,a=[];let u=!1;const p=o.app={_uid:Vl++,_component:s,_props:r,_container:null,_context:o,_instance:null,version:ma,get config(){return o.config},set config(f){},use(f,...h){return i.has(f)||(f&&W(f.install)?(i.add(f),f.install(p,...h)):W(f)&&(i.add(f),f(p,...h))),p},mixin(f){return o.mixins.includes(f)||o.mixins.push(f),p},component(f,h){return h?(o.components[f]=h,p):o.components[f]},directive(f,h){return h?(o.directives[f]=h,p):o.directives[f]},mount(f,h,g){if(!u){const v=p._ceVNode||Ce(s,r);return v.appContext=o,g===!0?g="svg":g===!1&&(g=void 0),e(v,f,g),u=!0,p._container=f,f.__vue_app__=p,ss(v.component)}},onUnmount(f){a.push(f)},unmount(){u&&(We(a,p._instance,16),e(null,p._container),delete p._container.__vue_app__)},provide(f,h){return o.provides[f]=h,p},runWithContext(f){const h=Wt;Wt=p;try{return f()}finally{Wt=h}}};return p}}let Wt=null;const Ll=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Te(t)}Modifiers`]||e[`${Ut(t)}Modifiers`];function Ul(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||re;let r=n;const o=t.startsWith("update:"),i=o&&Ll(s,t.slice(7));i&&(i.trim&&(r=n.map(f=>fe(f)?f.trim():f)),i.number&&(r=n.map(zn)));let a,u=s[a=is(t)]||s[a=is(Te(t))];!u&&o&&(u=s[a=is(Ut(t))]),u&&We(u,e,6,r);const p=s[a+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,We(p,e,6,r)}}const Fl=new WeakMap;function $o(e,t,n=!1){const s=n?Fl:t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},a=!1;if(!W(e)){const u=p=>{const f=$o(p,t,!0);f&&(a=!0,_e(i,f))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!o&&!a?(ee(e)&&s.set(e,null),null):(K(o)?o.forEach(u=>i[u]=null):_e(i,o),ee(e)&&s.set(e,i),i)}function ts(e,t){return!e||!Kn(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),Z(e,t[0].toLowerCase()+t.slice(1))||Z(e,Ut(t))||Z(e,t))}function _r(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[o],slots:i,attrs:a,emit:u,render:p,renderCache:f,props:h,data:g,setupState:v,ctx:M,inheritAttrs:E}=e,C=jn(e);let R,I;try{if(n.shapeFlag&4){const D=r||s,q=D;R=st(p.call(q,D,f,h,v,g,M)),I=a}else{const D=t;R=st(D.length>1?D(h,{attrs:a,slots:i,emit:u}):D(h,null)),I=t.props?a:Hl(a)}}catch(D){Lt.length=0,Xn(D,e,1),R=Ce(xt)}let V=R;if(I&&E!==!1){const D=Object.keys(I),{shapeFlag:q}=V;D.length&&q&7&&(o&&D.some(Gn)&&(I=Bl(I,o)),V=zt(V,I,!1,!0))}if(n.dirs&&(V=zt(V,null,!1,!0),V.dirs=V.dirs?V.dirs.concat(n.dirs):n.dirs),n.transition){const D=Zn(V.type)&&Mo(V)||V;Zs(D,n.transition)}return R=V,jn(C),R}const Hl=e=>{let t;for(const n in e)(n==="class"||n==="style"||Kn(n))&&((t||(t={}))[n]=e[n]);return t},Bl=(e,t)=>{const n={};for(const s in e)(!Gn(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function $l(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:a,patchFlag:u}=t,p=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return s?xr(s,i,p):!!i;if(u&8){const f=t.dynamicProps;for(let h=0;h<f.length;h++){const g=f[h];if(Ko(i,s,g)&&!ts(p,g))return!0}}}else return(r||a)&&(!a||!a.$stable)?!0:s===i?!1:s?i?xr(s,i,p):!0:!!i;return!1}function xr(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const o=s[r];if(Ko(t,e,o)&&!ts(n,o))return!0}return!1}function Ko(e,t,n){const s=e[n],r=t[n];return n==="style"&&ee(s)&&ee(r)?!Zt(s,r):s!==r}function Kl({vnode:e,parent:t,suspense:n},s){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.suspense.vnode.el=r.el=s,e=r),r===e)(e=t.vnode).el=s,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=s)}const Go={},Wo=()=>Object.create(Go),qo=e=>Object.getPrototypeOf(e)===Go;function Gl(e,t,n,s=!1){const r={},o=Wo();e.propsDefaults=Object.create(null),zo(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=s?r:Ao(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function Wl(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,a=X(r),[u]=e.propsOptions;let p=!1;if((s||i>0)&&!(i&16)){if(i&8){const f=e.vnode.dynamicProps;for(let h=0;h<f.length;h++){let g=f[h];if(ts(e.emitsOptions,g))continue;const v=t[g];if(u)if(Z(o,g))v!==o[g]&&(o[g]=v,p=!0);else{const M=Te(g);r[M]=Is(u,a,M,v,e,!1)}else v!==o[g]&&(o[g]=v,p=!0)}}}else{zo(e,t,r,o)&&(p=!0);let f;for(const h in a)(!t||!Z(t,h)&&((f=Ut(h))===h||!Z(t,f)))&&(u?n&&(n[h]!==void 0||n[f]!==void 0)&&(r[h]=Is(u,a,h,void 0,e,!0)):delete r[h]);if(o!==a)for(const h in o)(!t||!Z(t,h))&&(delete o[h],p=!0)}p&&mt(e.attrs,"set","")}function zo(e,t,n,s){const[r,o]=e.propsOptions;let i=!1,a;if(t)for(let u in t){if(ln(u))continue;const p=t[u];let f;r&&Z(r,f=Te(u))?!o||!o.includes(f)?n[f]=p:(a||(a={}))[f]=p:ts(e.emitsOptions,u)||(!(u in s)||p!==s[u])&&(s[u]=p,i=!0)}if(o){const u=X(n),p=a||re;for(let f=0;f<o.length;f++){const h=o[f];n[h]=Is(r,u,h,p[h],e,!Z(p,h))}}return i}function Is(e,t,n,s,r,o){const i=e[n];if(i!=null){const a=Z(i,"default");if(a&&s===void 0){const u=i.default;if(i.type!==Function&&!i.skipFactory&&W(u)){const{propsDefaults:p}=r;if(n in p)s=p[n];else{const f=Cn(r);s=p[n]=u.call(null,t),f()}}else s=u;r.ce&&r.ce._setProp(n,s)}i[0]&&(o&&!a?s=!1:i[1]&&(s===""||s===Ut(n))&&(s=!0))}return s}const ql=new WeakMap;function Jo(e,t,n=!1){const s=n?ql:t.propsCache,r=s.get(e);if(r)return r;const o=e.props,i={},a=[];let u=!1;if(!W(e)){const f=h=>{u=!0;const[g,v]=Jo(h,t,!0);_e(i,g),v&&a.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!o&&!u)return ee(e)&&s.set(e,$t),$t;if(K(o))for(let f=0;f<o.length;f++){const h=Te(o[f]);wr(h)&&(i[h]=re)}else if(o)for(const f in o){const h=Te(f);if(wr(h)){const g=o[f],v=i[h]=K(g)||W(g)?{type:g}:_e({},g),M=v.type;let E=!1,C=!0;if(K(M))for(let R=0;R<M.length;++R){const I=M[R],V=W(I)&&I.name;if(V==="Boolean"){E=!0;break}else V==="String"&&(C=!1)}else E=W(M)&&M.name==="Boolean";v[0]=E,v[1]=C,(E||Z(v,"default"))&&a.push(h)}}const p=[i,a];return ee(e)&&s.set(e,p),p}function wr(e){return e[0]!=="$"&&!ln(e)}const nr=e=>e==="_"||e==="_ctx"||e==="$stable",sr=e=>K(e)?e.map(st):[st(e)],zl=(e,t,n)=>{if(t._n)return t;const s=Xs((...r)=>sr(t(...r)),n);return s._c=!1,s},Qo=(e,t,n)=>{const s=e._ctx;for(const r in e){if(nr(r))continue;const o=e[r];if(W(o))t[r]=zl(r,o,s);else if(o!=null){const i=sr(o);t[r]=()=>i}}},Yo=(e,t)=>{const n=sr(t);e.slots.default=()=>n},Xo=(e,t,n)=>{for(const s in t)(n||!nr(s))&&(e[s]=t[s])},Jl=(e,t,n)=>{const s=e.slots=Wo();if(e.vnode.shapeFlag&32){const r=t._;r?(Xo(s,t,n),n&&io(s,"_",r,!0)):Qo(t,s)}else t&&Yo(e,t)},Ql=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=re;if(s.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:Xo(r,t,n):(o=!t.$stable,Qo(t,r)),i=t}else t&&(Yo(e,t),i={default:1});if(o)for(const a in r)!nr(a)&&i[a]==null&&delete r[a]},Pe=ta;function Yl(e){return Xl(e)}function Xl(e,t){const n=Jn();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:a,createComment:u,setText:p,setElementText:f,parentNode:h,nextSibling:g,setScopeId:v=lt,insertStaticContent:M}=e,E=(l,d,c,y=null,x=null,b=null,T=void 0,O=null,S=!!d.dynamicChildren)=>{if(l===d)return;l&&!nn(l,d)&&(y=_(l),xe(l,x,b,!0),l=null),d.patchFlag===-2&&(S=!1,d.dynamicChildren=null);const{type:w,ref:$,shapeFlag:k}=d;switch(w){case ns:C(l,d,c,y);break;case xt:R(l,d,c,y);break;case hs:l==null&&I(d,c,y,T);break;case he:ct(l,d,c,y,x,b,T,O,S);break;default:k&1?q(l,d,c,y,x,b,T,O,S):k&6?Ue(l,d,c,y,x,b,T,O,S):(k&64||k&128)&&w.process(l,d,c,y,x,b,T,O,S,j)}$!=null&&x?cn($,l&&l.ref,b,d||l,!d):$==null&&l&&l.ref!=null&&cn(l.ref,null,b,l,!0)},C=(l,d,c,y)=>{if(l==null)s(d.el=a(d.children),c,y);else{const x=d.el=l.el;d.children!==l.children&&p(x,d.children)}},R=(l,d,c,y)=>{l==null?s(d.el=u(d.children||""),c,y):d.el=l.el},I=(l,d,c,y)=>{[l.el,l.anchor]=M(l.children,d,c,y,l.el,l.anchor)},V=({el:l,anchor:d},c,y)=>{let x;for(;l&&l!==d;)x=g(l),s(l,c,y),l=x;s(d,c,y)},D=({el:l,anchor:d})=>{let c;for(;l&&l!==d;)c=g(l),r(l),l=c;r(d)},q=(l,d,c,y,x,b,T,O,S)=>{if(d.type==="svg"?T="svg":d.type==="math"&&(T="mathml"),l==null)oe(d,c,y,x,b,T,O,S);else{const w=l.el&&l.el._isVueCE?l.el:null;try{w&&w._beginPatch(),je(l,d,x,b,T,O,S)}finally{w&&w._endPatch()}}},oe=(l,d,c,y,x,b,T,O)=>{let S,w;const{props:$,shapeFlag:k,transition:F,dirs:G}=l;if(S=l.el=i(l.type,b,$&&$.is,$),k&8?f(S,l.children):k&16&&Ie(l.children,S,null,y,x,ps(l,b),T,O),G&&It(l,null,y,"created"),U(S,l,l.scopeId,T,y),$){for(const se in $)se!=="value"&&!ln(se)&&o(S,se,null,$[se],b,y);"value"in $&&o(S,"value",null,$.value,b),(w=$.onVnodeBeforeMount)&&Xe(w,y,l)}G&&It(l,null,y,"beforeMount");const J=Zl(x,F);J&&F.beforeEnter(S),s(S,d,c),((w=$&&$.onVnodeMounted)||J||G)&&Pe(()=>{try{w&&Xe(w,y,l),J&&F.enter(S),G&&It(l,null,y,"mounted")}finally{}},x)},U=(l,d,c,y,x)=>{if(c&&v(l,c),y)for(let b=0;b<y.length;b++)v(l,y[b]);if(x){let b=x.subTree;if(d===b||ni(b.type)&&(b.ssContent===d||b.ssFallback===d)){const T=x.vnode;U(l,T,T.scopeId,T.slotScopeIds,x.parent)}}},Ie=(l,d,c,y,x,b,T,O,S=0)=>{for(let w=S;w<l.length;w++){const $=l[w]=O?gt(l[w]):st(l[w]);E(null,$,d,c,y,x,b,T,O)}},je=(l,d,c,y,x,b,T)=>{const O=d.el=l.el;let{patchFlag:S,dynamicChildren:w,dirs:$}=d;S|=l.patchFlag&16;const k=l.props||re,F=d.props||re;let G;if(c&&Nt(c,!1),(G=F.onVnodeBeforeUpdate)&&Xe(G,c,d,l),$&&It(d,l,c,"beforeUpdate"),c&&Nt(c,!0),w&&(!l.dynamicChildren||l.dynamicChildren.length!==w.length)&&(S=0,T=!1,w=null),(k.innerHTML&&F.innerHTML==null||k.textContent&&F.textContent==null)&&f(O,""),w?Le(l.dynamicChildren,w,O,c,y,ps(d,x),b):T||B(l,d,O,null,c,y,ps(d,x),b,!1),S>0){if(S&16)ze(O,k,F,c,x);else if(S&2&&k.class!==F.class&&o(O,"class",null,F.class,x),S&4&&o(O,"style",k.style,F.style,x),S&8){const J=d.dynamicProps;for(let se=0;se<J.length;se++){const te=J[se],de=k[te],ye=F[te];(ye!==de||te==="value")&&o(O,te,de,ye,x,c)}}S&1&&l.children!==d.children&&f(O,d.children)}else!T&&w==null&&ze(O,k,F,c,x);((G=F.onVnodeUpdated)||$)&&Pe(()=>{G&&Xe(G,c,d,l),$&&It(d,l,c,"updated")},y)},Le=(l,d,c,y,x,b,T)=>{for(let O=0;O<d.length;O++){const S=l[O],w=d[O],$=S.el&&(S.type===he||!nn(S,w)||S.shapeFlag&198)?h(S.el):c;E(S,w,$,null,y,x,b,T,!0)}},ze=(l,d,c,y,x)=>{if(d!==c){if(d!==re)for(const b in d)!ln(b)&&!(b in c)&&o(l,b,d[b],null,x,y);for(const b in c){if(ln(b))continue;const T=c[b],O=d[b];T!==O&&b!=="value"&&o(l,b,O,T,x,y)}"value"in c&&o(l,"value",d.value,c.value,x)}},ct=(l,d,c,y,x,b,T,O,S)=>{const w=d.el=l?l.el:a(""),$=d.anchor=l?l.anchor:a("");let{patchFlag:k,dynamicChildren:F,slotScopeIds:G}=d;G&&(O=O?O.concat(G):G),l==null?(s(w,c,y),s($,c,y),Ie(d.children||[],c,$,x,b,T,O,S)):k>0&&k&64&&F&&l.dynamicChildren&&l.dynamicChildren.length===F.length?(Le(l.dynamicChildren,F,c,x,b,T,O),(d.key!=null||x&&d===x.subTree)&&Zo(l,d,!0)):B(l,d,c,$,x,b,T,O,S)},Ue=(l,d,c,y,x,b,T,O,S)=>{d.slotScopeIds=O,l==null?d.shapeFlag&512?x.ctx.activate(d,c,y,T,S):Pt(d,c,y,x,b,T,S):Et(l,d,S)},Pt=(l,d,c,y,x,b,T)=>{const O=l.component=aa(l,y,x);if(er(l)&&(O.ctx.renderer=j),ca(O,!1,T),O.asyncDep){if(x&&x.registerDep(O,ae,T),!l.el){const S=O.subTree=Ce(xt);R(null,S,d,c),l.placeholder=S.el}}else ae(O,l,d,c,x,b,T)},Et=(l,d,c)=>{const y=d.component=l.component;if($l(l,d,c))if(y.asyncDep&&!y.asyncResolved){z(y,d,c);return}else y.next=d,y.update();else d.el=l.el,y.vnode=d},ae=(l,d,c,y,x,b,T)=>{const O=()=>{if(l.isMounted){let{next:k,bu:F,u:G,parent:J,vnode:se}=l;{const Qe=ei(l);if(Qe){k&&(k.el=se.el,z(l,k,T)),Qe.asyncDep.then(()=>{Pe(()=>{l.isUnmounted||w()},x)});return}}let te=k,de;Nt(l,!1),k?(k.el=se.el,z(l,k,T)):k=se,F&&Pn(F),(de=k.props&&k.props.onVnodeBeforeUpdate)&&Xe(de,J,k,se),Nt(l,!0);const ye=_r(l),Je=l.subTree;l.subTree=ye,E(Je,ye,h(Je.el),_(Je),l,x,b),k.el=ye.el,te===null&&Kl(l,ye.el),G&&Pe(G,x),(de=k.props&&k.props.onVnodeUpdated)&&Pe(()=>Xe(de,J,k,se),x)}else{let k;const{el:F,props:G}=d,{bm:J,m:se,parent:te,root:de,type:ye}=l,Je=fn(d);Nt(l,!1),J&&Pn(J),!Je&&(k=G&&G.onVnodeBeforeMount)&&Xe(k,te,d),Nt(l,!0);{de.ce&&de.ce._hasShadowRoot()&&de.ce._injectChildStyle(ye,l.parent?l.parent.type:void 0);const Qe=l.subTree=_r(l);E(null,Qe,c,y,l,x,b),d.el=Qe.el}if(se&&Pe(se,x),!Je&&(k=G&&G.onVnodeMounted)){const Qe=d;Pe(()=>Xe(k,te,Qe),x)}(d.shapeFlag&256||te&&fn(te.vnode)&&te.vnode.shapeFlag&256)&&l.a&&Pe(l.a,x),l.isMounted=!0,d=c=y=null}};l.scope.on();const S=l.effect=new co(O);l.scope.off();const w=l.update=S.run.bind(S),$=l.job=S.runIfDirty.bind(S);$.i=l,$.id=l.uid,S.scheduler=()=>Ys($),Nt(l,!0),w()},z=(l,d,c)=>{d.component=l;const y=l.vnode.props;l.vnode=d,l.next=null,Wl(l,d.props,y,c),Ql(l,d.children,c),yt(),dr(l),bt()},B=(l,d,c,y,x,b,T,O,S=!1)=>{const w=l&&l.children,$=l?l.shapeFlag:0,k=d.children,{patchFlag:F,shapeFlag:G}=d;if(F>0){if(F&128){Ne(w,k,c,y,x,b,T,O,S);return}else if(F&256){Fe(w,k,c,y,x,b,T,O,S);return}}G&8?($&16&&ve(w,x,b),k!==w&&f(c,k)):$&16?G&16?Ne(w,k,c,y,x,b,T,O,S):ve(w,x,b,!0):($&8&&f(c,""),G&16&&Ie(k,c,y,x,b,T,O,S))},Fe=(l,d,c,y,x,b,T,O,S)=>{l=l||$t,d=d||$t;const w=l.length,$=d.length,k=Math.min(w,$);let F;for(F=0;F<k;F++){const G=d[F]=S?gt(d[F]):st(d[F]);E(l[F],G,c,null,x,b,T,O,S)}w>$?ve(l,x,b,!0,!1,k):Ie(d,c,y,x,b,T,O,S,k)},Ne=(l,d,c,y,x,b,T,O,S)=>{let w=0;const $=d.length;let k=l.length-1,F=$-1;for(;w<=k&&w<=F;){const G=l[w],J=d[w]=S?gt(d[w]):st(d[w]);if(nn(G,J))E(G,J,c,null,x,b,T,O,S);else break;w++}for(;w<=k&&w<=F;){const G=l[k],J=d[F]=S?gt(d[F]):st(d[F]);if(nn(G,J))E(G,J,c,null,x,b,T,O,S);else break;k--,F--}if(w>k){if(w<=F){const G=F+1,J=G<$?d[G].el:y;for(;w<=F;)E(null,d[w]=S?gt(d[w]):st(d[w]),c,J,x,b,T,O,S),w++}}else if(w>F)for(;w<=k;)xe(l[w],x,b,!0),w++;else{const G=w,J=w,se=new Map;for(w=J;w<=F;w++){const ke=d[w]=S?gt(d[w]):st(d[w]);ke.key!=null&&se.set(ke.key,w)}let te,de=0;const ye=F-J+1;let Je=!1,Qe=0;const en=new Array(ye);for(w=0;w<ye;w++)en[w]=0;for(w=G;w<=k;w++){const ke=l[w];if(de>=ye){xe(ke,x,b,!0);continue}let Ye;if(ke.key!=null)Ye=se.get(ke.key);else for(te=J;te<=F;te++)if(en[te-J]===0&&nn(ke,d[te])){Ye=te;break}Ye===void 0?xe(ke,x,b,!0):(en[Ye-J]=w+1,Ye>=Qe?Qe=Ye:Je=!0,E(ke,d[Ye],c,null,x,b,T,O,S),de++)}const or=Je?ea(en):$t;for(te=or.length-1,w=ye-1;w>=0;w--){const ke=J+w,Ye=d[ke],ir=d[ke+1],lr=ke+1<$?ir.el||ti(ir):y;en[w]===0?E(null,Ye,c,lr,x,b,T,O,S):Je&&(te<0||w!==or[te]?He(Ye,c,lr,2):te--)}}},He=(l,d,c,y,x=null)=>{const{el:b,type:T,transition:O,children:S,shapeFlag:w}=l;if(w&6){He(l.component.subTree,d,c,y);return}if(w&128){l.suspense.move(d,c,y);return}if(w&64){T.move(l,d,c,j);return}if(T===he){s(b,d,c);for(let k=0;k<S.length;k++)He(S[k],d,c,y);s(l.anchor,d,c);return}if(T===hs){V(l,d,c);return}if(y!==2&&w&1&&O)if(y===0)O.persisted&&!b[fs]?s(b,d,c):(O.beforeEnter(b),s(b,d,c),Pe(()=>O.enter(b),x));else{const{leave:k,delayLeave:F,afterLeave:G}=O,J=()=>{l.ctx.isUnmounted?r(b):s(b,d,c)},se=()=>{const te=b._isLeaving||!!b[fs];b._isLeaving&&b[fs](!0),O.persisted&&!te?J():k(b,()=>{J(),G&&G()})};F?F(b,J,se):se()}else s(b,d,c)},xe=(l,d,c,y=!1,x=!1)=>{const{type:b,props:T,ref:O,children:S,dynamicChildren:w,shapeFlag:$,patchFlag:k,dirs:F,cacheIndex:G,memo:J}=l;if(k===-2&&(x=!1),O!=null&&(yt(),cn(O,null,c,l,!0),bt()),G!=null&&(d.renderCache[G]=void 0),$&256){d.ctx.deactivate(l);return}const se=$&1&&F,te=!fn(l);let de;if(te&&(de=T&&T.onVnodeBeforeUnmount)&&Xe(de,d,l),$&6)ft(l.component,c,y);else{if($&128){l.suspense.unmount(c,y);return}se&&It(l,null,d,"beforeUnmount"),$&64?l.type.remove(l,d,c,j,y):w&&!w.hasOnce&&(b!==he||k>0&&k&64)?ve(w,d,c,!1,!0):(b===he&&k&384||!x&&$&16)&&ve(S,d,c),y&&Ct(l)}const ye=J!=null&&G==null;(te&&(de=T&&T.onVnodeUnmounted)||se||ye)&&Pe(()=>{de&&Xe(de,d,l),se&&It(l,null,d,"unmounted"),ye&&(l.el=null)},c)},Ct=l=>{const{type:d,el:c,anchor:y,transition:x}=l;if(d===he){At(c,y);return}if(d===hs){D(l);return}const b=()=>{r(c),x&&!x.persisted&&x.afterLeave&&x.afterLeave()};if(l.shapeFlag&1&&x&&!x.persisted){const{leave:T,delayLeave:O}=x,S=()=>T(c,b);O?O(l.el,b,S):S()}else b()},At=(l,d)=>{let c;for(;l!==d;)c=g(l),r(l),l=c;r(d)},ft=(l,d,c)=>{const{bum:y,scope:x,job:b,subTree:T,um:O,m:S,a:w}=l;Er(S),Er(w),y&&Pn(y),x.stop(),b&&(b.flags|=8,xe(T,l,d,c)),O&&Pe(O,d),Pe(()=>{l.isUnmounted=!0},d)},ve=(l,d,c,y=!1,x=!1,b=0)=>{for(let T=b;T<l.length;T++)xe(l[T],d,c,y,x)},_=l=>{if(l.shapeFlag&6)return _(l.component.subTree);if(l.shapeFlag&128)return l.suspense.next();const d=g(l.anchor||l.el),c=d&&d[hl];return c?g(c):d};let N=!1;const P=(l,d,c)=>{let y;l==null?d._vnode&&(xe(d._vnode,null,null,!0),y=d._vnode.component):E(d._vnode||null,l,d,null,null,null,c),d._vnode=l,N||(N=!0,dr(y),Po(),N=!1)},j={p:E,um:xe,m:He,r:Ct,mt:Pt,mc:Ie,pc:B,pbc:Le,n:_,o:e};return{render:P,hydrate:void 0,createApp:jl(P)}}function ps({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 Nt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Zl(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Zo(e,t,n=!1){const s=e.children,r=t.children;if(K(s)&&K(r))for(let o=0;o<s.length;o++){const i=s[o];let a=r[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=r[o]=gt(r[o]),a.el=i.el),!n&&a.patchFlag!==-2&&Zo(i,a)),a.type===ns&&(a.patchFlag===-1&&(a=r[o]=gt(a)),a.el=i.el),a.type===xt&&!a.el&&(a.el=i.el)}}function ea(e){const t=e.slice(),n=[0];let s,r,o,i,a;const u=e.length;for(s=0;s<u;s++){const p=e[s];if(p!==0){if(r=n[n.length-1],e[r]<p){t[s]=r,n.push(s);continue}for(o=0,i=n.length-1;o<i;)a=o+i>>1,e[n[a]]<p?o=a+1:i=a;p<e[n[o]]&&(o>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 ei(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ei(t)}function Er(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function ti(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?ti(t.subTree):null}const ni=e=>e.__isSuspense;function ta(e,t){t&&t.pendingBranch?K(e)?t.effects.push(...e):t.effects.push(e):cl(e)}const he=Symbol.for("v-fgt"),ns=Symbol.for("v-txt"),xt=Symbol.for("v-cmt"),hs=Symbol.for("v-stc"),Lt=[];let Ve=null;function L(e=!1){Lt.push(Ve=e?null:[])}function si(){Lt.pop(),Ve=Lt[Lt.length-1]||null}let vn=1;function Fn(e,t=!1){vn+=e,e<0&&Ve&&t&&(Ve.hasOnce=!0)}function ri(e){return e.dynamicChildren=vn>0?Ve||$t:null,si(),vn>0&&Ve&&Ve.push(e),e}function H(e,t,n,s,r,o){return ri(m(e,t,n,s,r,o,!0))}function na(e,t,n,s,r){return ri(Ce(e,t,n,s,r,!0))}function Hn(e){return e?e.__v_isVNode===!0:!1}function nn(e,t){return e.type===t.type&&e.key===t.key}const oi=({key:e})=>e??null,kn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?fe(e)||Ae(e)||W(e)?{i:Me,r:e,k:t,f:!!n}:e:null);function m(e,t=null,n=null,s=0,r=null,o=e===he?0:1,i=!1,a=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&oi(t),ref:t&&kn(t),scopeId:No,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:Me};return a?(Bn(u,n),o&128&&e.normalize(u)):n&&(u.shapeFlag|=fe(n)?8:16),vn>0&&!i&&Ve&&(u.patchFlag>0||o&6)&&u.patchFlag!==32&&Ve.push(u),u}const Ce=sa;function sa(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===Ol)&&(e=xt),Hn(e)){const a=zt(e,t,!0);return n&&Bn(a,n),vn>0&&!o&&Ve&&(a.shapeFlag&6?Ve[Ve.indexOf(e)]=a:Ve.push(a)),a.patchFlag=-2,a}if(ga(e)&&(e=e.__vccOpts),t){t=ra(t);let{class:a,style:u}=t;a&&!fe(a)&&(t.class=tt(a)),ee(u)&&(Js(u)&&!K(u)&&(u=_e({},u)),t.style=Hs(u))}const i=fe(e)?1:ni(e)?128:Zn(e)?64:ee(e)?4:W(e)?2:0;return m(e,t,n,s,r,i,o,!0)}function ra(e){return e?Js(e)||qo(e)?_e({},e):e:null}function zt(e,t,n=!1,s=!1){const{props:r,ref:o,patchFlag:i,children:a,transition:u}=e,p=t?oa(r||{},t):r,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&oi(p),ref:t&&t.ref?n&&o?K(o)?o.concat(kn(t)):[o,kn(t)]:kn(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==he?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&zt(e.ssContent),ssFallback:e.ssFallback&&zt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&s&&Zs(f,u.clone(f)),f}function $e(e=" ",t=0){return Ce(ns,null,e,t)}function ue(e="",t=!1){return t?(L(),na(xt,null,e)):Ce(xt,null,e)}function st(e){return e==null||typeof e=="boolean"?Ce(xt):K(e)?Ce(he,null,e.slice()):Hn(e)?gt(e):Ce(ns,null,String(e))}function gt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:zt(e)}function Bn(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),Bn(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!qo(t)?t._ctx=Me:r===3&&Me&&(Me.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(W(t)){if(s&65){Bn(e,{default:t});return}t={default:t,_ctx:Me},n=32}else t=String(t),s&64?(n=16,t=[$e(t)]):n=8;e.children=t,e.shapeFlag|=n}function oa(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=tt([t.class,s.class]));else if(r==="style")t.style=Hs([t.style,s.style]);else if(Kn(r)){const o=t[r],i=s[r];i&&o!==i&&!(K(o)&&o.includes(i))?t[r]=o?[].concat(o,i):i:i==null&&o==null&&!Gn(r)&&(t[r]=i)}else r!==""&&(t[r]=s[r])}return t}function Xe(e,t,n,s=null){We(e,t,7,[n,s])}const ia=Bo();let la=0;function aa(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||ia,o={uid:la++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Mi(!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:Jo(s,r),emitsOptions:$o(s,r),emit:null,emitted:null,propsDefaults:re,inheritAttrs:s.inheritAttrs,ctx:re,data:re,props:re,attrs:re,slots:re,refs:re,setupState:re,setupContext:null,suspense:n,suspenseId:n?n.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 o.ctx={_:o},o.root=t?t.root:o,o.emit=Ul.bind(null,o),e.ce&&e.ce(o),o}let Ee=null;const ua=()=>Ee||Me;let $n,yn;{const e=Jn(),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)}};$n=t("__VUE_INSTANCE_SETTERS__",n=>Ee=n),yn=t("__VUE_SSR_SETTERS__",n=>bn=n)}const Cn=e=>{const t=Ee;return $n(e),e.scope.on(),()=>{e.scope.off(),$n(t)}},Cr=()=>{Ee&&Ee.scope.off(),$n(null)};function ii(e){return e.vnode.shapeFlag&4}let bn=!1;function ca(e,t=!1,n=!1){t&&yn(t);const{props:s,children:r}=e.vnode,o=ii(e);Gl(e,s,o,t),Jl(e,r,n||t);const i=o?fa(e,t):void 0;return t&&yn(!1),i}function fa(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Pl);const{setup:s}=n;if(s){yt();const r=e.setupContext=s.length>1?pa(e):null,o=Cn(e),i=En(s,e,0,[e.props,r]),a=so(i);if(bt(),o(),(a||e.sp)&&!fn(e)&&jo(e),a){if(i.then(Cr,Cr),t)return i.then(u=>{yn(!0);try{Ar(e,u,t)}finally{yn(!1)}}).catch(u=>{Xn(u,e,0)});e.asyncDep=i}else Ar(e,i)}else li(e)}function Ar(e,t,n){W(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ee(t)&&(e.setupState=Ro(t)),li(e)}function li(e,t,n){const s=e.type;e.render||(e.render=s.render||lt);{const r=Cn(e);yt();try{Il(e)}finally{bt(),r()}}}const da={get(e,t){return we(e,"get",""),e[t]}};function pa(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,da),slots:e.slots,emit:e.emit,expose:t}}function ss(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ro(el(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in dn)return dn[n](e)},has(t,n){return n in t||n in dn}})):e.proxy}function ha(e,t=!0){return W(e)?e.displayName||e.name:e.name||t&&e.__name}function ga(e){return W(e)&&"__vccOpts"in e}const De=(e,t)=>ol(e,t,bn);function ai(e,t,n){try{Fn(-1);const s=arguments.length;return s===2?ee(t)&&!K(t)?Hn(t)?Ce(e,null,[t]):Ce(e,t):Ce(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Hn(n)&&(n=[n]),Ce(e,t,n))}finally{Fn(1)}}const ma="3.5.41";/**
* @vue/runtime-dom v3.5.41
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Ns;const Sr=typeof window<"u"&&window.trustedTypes;if(Sr)try{Ns=Sr.createPolicy("vue",{createHTML:e=>e})}catch{}const ui=Ns?e=>Ns.createHTML(e):e=>e,va="http://www.w3.org/2000/svg",ya="http://www.w3.org/1998/Math/MathML",ht=typeof document<"u"?document:null,Rr=ht&&ht.createElement("template"),ba={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"?ht.createElementNS(va,e):t==="mathml"?ht.createElementNS(ya,e):n?ht.createElement(e,{is:n}):ht.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>ht.createTextNode(e),createComment:e=>ht.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ht.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{Rr.innerHTML=ui(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const a=Rr.content;if(s==="svg"||s==="mathml"){const u=a.firstChild;for(;u.firstChild;)a.appendChild(u.firstChild);a.removeChild(u)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},_a=Symbol("_vtc");function xa(e,t,n){const s=e[_a];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Or=Symbol("_vod"),wa=Symbol("_vsh"),Ea=Symbol(""),Ca=/(?:^|;)\s*display\s*:/;function Aa(e,t,n){const s=e.style,r=fe(n);let o=!1;if(n&&!r){if(t)if(fe(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&on(s,a,"")}else for(const i in t)n[i]==null&&on(s,i,"");for(const i in n){i==="display"&&(o=!0);const a=n[i];a!=null?Ra(e,i,!fe(t)&&t?t[i]:void 0,a)||on(s,i,a):on(s,i,"")}}else if(r){if(t!==n){const i=s[Ea];i&&(n+=";"+i),s.cssText=n,o=Ca.test(n)}}else t&&e.removeAttribute("style");Or in e&&(e[Or]=o?s.display:"",e[wa]&&(s.display="none"))}const Tr=/\s*!important$/;function on(e,t,n){if(K(n))n.forEach(s=>on(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Sa(e,t);Tr.test(n)?e.setProperty(Ut(s),n.replace(Tr,""),"important"):e[s]=n}}const Pr=["Webkit","Moz","ms"],gs={};function Sa(e,t){const n=gs[t];if(n)return n;let s=Te(t);if(s!=="filter"&&s in e)return gs[t]=s;s=qn(s);for(let r=0;r<Pr.length;r++){const o=Pr[r]+s;if(o in e)return gs[t]=o}return t}function Ra(e,t,n,s){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&fe(s)&&n===s}const Ir="http://www.w3.org/1999/xlink";function Nr(e,t,n,s,r,o=ki(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Ir,t.slice(6,t.length)):e.setAttributeNS(Ir,t,n):n==null||o&&!lo(n)?e.removeAttribute(t):e.setAttribute(t,o?"":ut(n)?String(n):n)}function kr(e,t,n,s,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?ui(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const a=o==="OPTION"?e.getAttribute("value")||"":e.value,u=n==null?e.type==="checkbox"?"on":"":String(n);(a!==u||!("_value"in e))&&(e.value=u),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=lo(n):n==null&&a==="string"?(n="",i=!0):a==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(r||t)}function Tt(e,t,n,s){e.addEventListener(t,n,s)}function Oa(e,t,n,s){e.removeEventListener(t,n,s)}const Dr=Symbol("_vei");function Ta(e,t,n,s,r=null){const o=e[Dr]||(e[Dr]={}),i=o[t];if(s&&i)i.value=s;else{const[a,u]=Na(t);if(s){const p=o[t]=Ma(s,r);Tt(e,a,p,u)}else i&&(Oa(e,a,i,u),o[t]=void 0)}}const Pa=/(Once|Passive|Capture)$/,Ia=/^on:?(?:Once|Passive|Capture)$/;function Na(e){let t,n;for(;(n=e.match(Pa))&&!Ia.test(e);)t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):Ut(e.slice(2)),t]}let ms=0;const ka=Promise.resolve(),Da=()=>ms||(ka.then(()=>ms=0),ms=Date.now());function Ma(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;const r=n.value;if(K(r)){const o=s.stopImmediatePropagation;s.stopImmediatePropagation=()=>{o.call(s),s._stopped=!0};const i=r.slice(),a=[s];for(let u=0;u<i.length&&!s._stopped;u++){const p=i[u];p&&We(p,t,5,a)}}else We(r,t,5,[s])};return n.value=e,n.attached=Da(),n}const Mr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Va=(e,t,n,s,r,o)=>{const i=r==="svg";t==="class"?xa(e,s,i):t==="style"?Aa(e,n,s):Kn(t)?Gn(t)||Ta(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ja(e,t,s,i))?(kr(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Nr(e,t,s,i,o,t!=="value")):e._isVueCE&&(La(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!fe(s)))?kr(e,Te(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Nr(e,t,s,i))};function ja(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Mr(t)&&W(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 Mr(t)&&fe(n)?!1:t in e}function La(e,t){const n=e._def.props;if(!n)return!1;const s=Te(t);return Array.isArray(n)?n.some(r=>Te(r)===s):Object.keys(n).some(r=>Te(r)===s)}const Jt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return K(t)?n=>Pn(t,n):t};function Ua(e){e.target.composing=!0}function Vr(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const it=Symbol("_assign"),On=Symbol("_initialValue");function vs(e,t,n){return t&&(e=e.trim()),n&&(e=zn(e)),e}const me={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e.parentNode&&(e.type==="text"?e[On]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[On]=e.defaultValue.replace(/\r\n?/g,`
`))),e[it]=Jt(r);const o=s||r.props&&r.props.type==="number";Tt(e,t?"change":"input",i=>{i.target.composing||e[it](vs(e.value,n,o))}),(n||o)&&Tt(e,"change",()=>{e.value=vs(e.value,n,o)}),t||(Tt(e,"compositionstart",Ua),Tt(e,"compositionend",Vr),Tt(e,"change",Vr))},mounted(e,{value:t,modifiers:{trim:n,number:s}}){const r=t??"",o=e[On];delete e[On],o!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==o?e[it](vs(e.value,n,s)):e.value=r},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:o}},i){if(e[it]=Jt(i),e.composing)return;const a=(o||e.type==="number")&&!/^0\d/.test(e.value)?zn(e.value):e.value,u=t??"";if(a===u)return;const p=e.getRootNode();(p instanceof Document||p instanceof ShadowRoot)&&p.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===u)||(e.value=u)}},Dn={deep:!0,created(e,t,n){e[it]=Jt(n),Tt(e,"change",()=>{const s=e._modelValue,r=_n(e),o=e.checked,i=e[it];if(K(s)){const a=Bs(s,r),u=a!==-1;if(o&&!u)i(s.concat(r));else if(!o&&u){const p=[...s];p.splice(a,1),i(p)}}else if(Xt(s)){const a=new Set(s);o?a.add(r):a.delete(r),i(a)}else i(ci(e,o))})},mounted:jr,beforeUpdate(e,t,n){e[it]=Jt(n),jr(e,t,n)}};function jr(e,{value:t,oldValue:n},s){e._modelValue=t;let r;if(K(t))r=Bs(t,s.props.value)>-1;else if(Xt(t))r=t.has(s.props.value);else{if(t===n)return;r=Zt(t,ci(e,!0))}e.checked!==r&&(e.checked=r)}const ks={deep:!0,created(e,{value:t,modifiers:{number:n}},s){e._modelValue=t,Tt(e,"change",()=>{const r=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>n?zn(_n(o)):_n(o));e[it](e.multiple?Xt(e._modelValue)?new Set(r):r:r[0]),e._assigning=!0,Qs(()=>{e._assigning=!1})}),e[it]=Jt(s)},mounted(e,{value:t}){Lr(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[it]=Jt(n)},updated(e,{value:t}){e._assigning||Lr(e,t)}};function Lr(e,t){const n=e.multiple,s=K(t);if(!(n&&!s&&!Xt(t))){for(let r=0,o=e.options.length;r<o;r++){const i=e.options[r],a=_n(i);if(n)if(s){const u=typeof a;u==="string"||u==="number"?i.selected=t.some(p=>String(p)===String(a)):i.selected=Bs(t,a)>-1}else i.selected=t.has(a);else if(Zt(_n(i),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function _n(e){return"_value"in e?e._value:e.value}function ci(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Fa=["ctrl","shift","alt","meta"],Ha={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)=>Fa.some(n=>e[`${n}Key`]&&!t.includes(n))},rt=(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<t.length;i++){const a=Ha[t[i]];if(a&&a(r,t))return}return e(r,...o)}))},Ba=_e({patchProp:Va},ba);let Ur;function $a(){return Ur||(Ur=Yl(Ba))}const Ka=((...e)=>{const t=$a().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Wa(s);if(!r)return;const o=t._component;!W(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const i=n(r,!1,Ga(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t});function Ga(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Wa(e){return fe(e)?document.querySelector(e):e}const qa=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},za={},Ja={class:"min-h-screen"},Qa={class:"bg-white border-b border-gray-200"},Ya={class:"max-w-6xl mx-auto px-6 py-4 flex items-center justify-between"},Xa={class:"max-w-6xl mx-auto px-6 py-8"};function Za(e,t){const n=Rs("router-link"),s=Rs("router-view");return L(),H("div",Ja,[m("header",Qa,[m("div",Ya,[Ce(n,{to:"/",class:"text-lg font-semibold text-gray-800"},{default:Xs(()=>[...t[0]||(t[0]=[$e(" uMind ",-1),m("span",{class:"text-brand"},"Orquestador",-1)])]),_:1}),t[1]||(t[1]=m("a",{href:"/app/dashboard",class:"text-sm text-gray-500 hover:text-gray-700"}," ← Volver al panel ",-1))])]),m("main",Xa,[Ce(s)])])}const eu=qa(za,[["render",Za]]);/*!
* vue-router v4.6.4
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/const Bt=typeof document<"u";function fi(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function tu(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&fi(e.default)}const Y=Object.assign;function ys(e,t){const n={};for(const s in t){const r=t[s];n[s]=qe(r)?r.map(e):e(r)}return n}const pn=()=>{},qe=Array.isArray;function Fr(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const di=/#/g,nu=/&/g,su=/\//g,ru=/=/g,ou=/\?/g,pi=/\+/g,iu=/%5B/g,lu=/%5D/g,hi=/%5E/g,au=/%60/g,gi=/%7B/g,uu=/%7C/g,mi=/%7D/g,cu=/%20/g;function rr(e){return e==null?"":encodeURI(""+e).replace(uu,"|").replace(iu,"[").replace(lu,"]")}function fu(e){return rr(e).replace(gi,"{").replace(mi,"}").replace(hi,"^")}function Ds(e){return rr(e).replace(pi,"%2B").replace(cu,"+").replace(di,"%23").replace(nu,"%26").replace(au,"`").replace(gi,"{").replace(mi,"}").replace(hi,"^")}function du(e){return Ds(e).replace(ru,"%3D")}function pu(e){return rr(e).replace(di,"%23").replace(ou,"%3F")}function hu(e){return pu(e).replace(su,"%2F")}function xn(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const gu=/\/$/,mu=e=>e.replace(gu,"");function bs(e,t,n="/"){let s,r={},o="",i="";const a=t.indexOf("#");let u=t.indexOf("?");return u=a>=0&&u>a?-1:u,u>=0&&(s=t.slice(0,u),o=t.slice(u,a>0?a:t.length),r=e(o.slice(1))),a>=0&&(s=s||t.slice(0,a),i=t.slice(a,t.length)),s=_u(s??t,n),{fullPath:s+o+i,path:s,query:r,hash:xn(i)}}function vu(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Hr(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function yu(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&Qt(t.matched[s],n.matched[r])&&vi(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Qt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function vi(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!bu(e[n],t[n]))return!1;return!0}function bu(e,t){return qe(e)?Br(e,t):qe(t)?Br(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function Br(e,t){return qe(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function _u(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,a;for(i=0;i<s.length;i++)if(a=s[i],a!==".")if(a==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(i).join("/")}const St={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Ms=(function(e){return e.pop="pop",e.push="push",e})({}),_s=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function xu(e){if(!e)if(Bt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),mu(e)}const wu=/^[^#]+#/;function Eu(e,t){return e.replace(wu,"#")+t}function Cu(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 rs=()=>({left:window.scrollX,top:window.scrollY});function Au(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=Cu(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 $r(e,t){return(history.state?history.state.position-t:-1)+e}const Vs=new Map;function Su(e,t){Vs.set(e,t)}function Ru(e){const t=Vs.get(e);return Vs.delete(e),t}function Ou(e){return typeof e=="string"||e&&typeof e=="object"}function yi(e){return typeof e=="string"||typeof e=="symbol"}let ce=(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 bi=Symbol("");ce.MATCHER_NOT_FOUND+"",ce.NAVIGATION_GUARD_REDIRECT+"",ce.NAVIGATION_ABORTED+"",ce.NAVIGATION_CANCELLED+"",ce.NAVIGATION_DUPLICATED+"";function Yt(e,t){return Y(new Error,{type:e,[bi]:!0},t)}function pt(e,t){return e instanceof Error&&bi in e&&(t==null||!!(e.type&t))}const Tu=["params","query","hash"];function Pu(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Tu)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Iu(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<n.length;++s){const r=n[s].replace(pi," "),o=r.indexOf("="),i=xn(o<0?r:r.slice(0,o)),a=o<0?null:xn(r.slice(o+1));if(i in t){let u=t[i];qe(u)||(u=t[i]=[u]),u.push(a)}else t[i]=a}return t}function Kr(e){let t="";for(let n in e){const s=e[n];if(n=du(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(qe(s)?s.map(r=>r&&Ds(r)):[s&&Ds(s)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function Nu(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=qe(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const ku=Symbol(""),Gr=Symbol(""),os=Symbol(""),_i=Symbol(""),js=Symbol("");function sn(){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 Ot(e,t,n,s,r,o=i=>i()){const i=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((a,u)=>{const p=g=>{g===!1?u(Yt(ce.NAVIGATION_ABORTED,{from:n,to:t})):g instanceof Error?u(g):Ou(g)?u(Yt(ce.NAVIGATION_GUARD_REDIRECT,{from:t,to:g})):(i&&s.enterCallbacks[r]===i&&typeof g=="function"&&i.push(g),a())},f=o(()=>e.call(s&&s.instances[r],t,n,p));let h=Promise.resolve(f);e.length<3&&(h=h.then(p)),h.catch(g=>u(g))})}function xs(e,t,n,s,r=o=>o()){const o=[];for(const i of e)for(const a in i.components){let u=i.components[a];if(!(t!=="beforeRouteEnter"&&!i.instances[a]))if(fi(u)){const p=(u.__vccOpts||u)[t];p&&o.push(Ot(p,n,s,i,a,r))}else{let p=u();o.push(()=>p.then(f=>{if(!f)throw new Error(`Couldn't resolve component "${a}" at "${i.path}"`);const h=tu(f)?f.default:f;i.mods[a]=f,i.components[a]=h;const g=(h.__vccOpts||h)[t];return g&&Ot(g,n,s,i,a,r)()}))}}return o}function Du(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;i<o;i++){const a=t.matched[i];a&&(e.matched.find(p=>Qt(p,a))?s.push(a):n.push(a));const u=e.matched[i];u&&(t.matched.find(p=>Qt(p,u))||r.push(u))}return[n,s,r]}/*!
* vue-router v4.6.4
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/let Mu=()=>location.protocol+"//"+location.host;function xi(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,a=r.slice(i);return a[0]!=="/"&&(a="/"+a),Hr(a,"")}return Hr(n,e)+s+r}function Vu(e,t,n,s){let r=[],o=[],i=null;const a=({state:g})=>{const v=xi(e,location),M=n.value,E=t.value;let C=0;if(g){if(n.value=v,t.value=g,i&&i===M){i=null;return}C=E?g.position-E.position:0}else s(v);r.forEach(R=>{R(n.value,M,{delta:C,type:Ms.pop,direction:C?C>0?_s.forward:_s.back:_s.unknown})})};function u(){i=n.value}function p(g){r.push(g);const v=()=>{const M=r.indexOf(g);M>-1&&r.splice(M,1)};return o.push(v),v}function f(){if(document.visibilityState==="hidden"){const{history:g}=window;if(!g.state)return;g.replaceState(Y({},g.state,{scroll:rs()}),"")}}function h(){for(const g of o)g();o=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",f),document.removeEventListener("visibilitychange",f)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",f),document.addEventListener("visibilitychange",f),{pauseListeners:u,listen:p,destroy:h}}function Wr(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?rs():null}}function ju(e){const{history:t,location:n}=window,s={value:xi(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(u,p,f){const h=e.indexOf("#"),g=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+u:Mu()+e+u;try{t[f?"replaceState":"pushState"](p,"",g),r.value=p}catch(v){console.error(v),n[f?"replace":"assign"](g)}}function i(u,p){o(u,Y({},t.state,Wr(r.value.back,u,r.value.forward,!0),p,{position:r.value.position}),!0),s.value=u}function a(u,p){const f=Y({},r.value,t.state,{forward:u,scroll:rs()});o(f.current,f,!0),o(u,Y({},Wr(s.value,u,null),{position:f.position+1},p),!1),s.value=u}return{location:s,state:r,push:a,replace:i}}function Lu(e){e=xu(e);const t=ju(e),n=Vu(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=Y({location:"",base:e,go:s,createHref:Eu.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 Dt=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var ge=(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})(ge||{});const Uu={type:Dt.Static,value:""},Fu=/[a-zA-Z0-9_]/;function Hu(e){if(!e)return[[]];if(e==="/")return[[Uu]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(v){throw new Error(`ERR (${n})/"${p}": ${v}`)}let n=ge.Static,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let a=0,u,p="",f="";function h(){p&&(n===ge.Static?o.push({type:Dt.Static,value:p}):n===ge.Param||n===ge.ParamRegExp||n===ge.ParamRegExpEnd?(o.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),o.push({type:Dt.Param,value:p,regexp:f,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),p="")}function g(){p+=u}for(;a<e.length;){if(u=e[a++],u==="\\"&&n!==ge.ParamRegExp){s=n,n=ge.EscapeNext;continue}switch(n){case ge.Static:u==="/"?(p&&h(),i()):u===":"?(h(),n=ge.Param):g();break;case ge.EscapeNext:g(),n=s;break;case ge.Param:u==="("?n=ge.ParamRegExp:Fu.test(u)?g():(h(),n=ge.Static,u!=="*"&&u!=="?"&&u!=="+"&&a--);break;case ge.ParamRegExp:u===")"?f[f.length-1]=="\\"?f=f.slice(0,-1)+u:n=ge.ParamRegExpEnd:f+=u;break;case ge.ParamRegExpEnd:h(),n=ge.Static,u!=="*"&&u!=="?"&&u!=="+"&&a--,f="";break;default:t("Unknown state");break}}return n===ge.ParamRegExp&&t(`Unfinished custom RegExp for param "${p}"`),h(),i(),r}const qr="[^/]+?",Bu={sensitive:!1,strict:!1,start:!0,end:!0};var Re=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(Re||{});const $u=/[.+*?^${}()[\]/\\]/g;function Ku(e,t){const n=Y({},Bu,t),s=[];let r=n.start?"^":"";const o=[];for(const p of e){const f=p.length?[]:[Re.Root];n.strict&&!p.length&&(r+="/");for(let h=0;h<p.length;h++){const g=p[h];let v=Re.Segment+(n.sensitive?Re.BonusCaseSensitive:0);if(g.type===Dt.Static)h||(r+="/"),r+=g.value.replace($u,"\\$&"),v+=Re.Static;else if(g.type===Dt.Param){const{value:M,repeatable:E,optional:C,regexp:R}=g;o.push({name:M,repeatable:E,optional:C});const I=R||qr;if(I!==qr){v+=Re.BonusCustomRegExp;try{`${I}`}catch(D){throw new Error(`Invalid custom RegExp for param "${M}" (${I}): `+D.message)}}let V=E?`((?:${I})(?:/(?:${I}))*)`:`(${I})`;h||(V=C&&p.length<2?`(?:/${V})`:"/"+V),C&&(V+="?"),r+=V,v+=Re.Dynamic,C&&(v+=Re.BonusOptional),E&&(v+=Re.BonusRepeatable),I===".*"&&(v+=Re.BonusWildcard)}f.push(v)}s.push(f)}if(n.strict&&n.end){const p=s.length-1;s[p][s[p].length-1]+=Re.BonusStrict}n.strict||(r+="/?"),n.end?r+="$":n.strict&&!r.endsWith("/")&&(r+="(?:/|$)");const i=new RegExp(r,n.sensitive?"":"i");function a(p){const f=p.match(i),h={};if(!f)return null;for(let g=1;g<f.length;g++){const v=f[g]||"",M=o[g-1];h[M.name]=v&&M.repeatable?v.split("/"):v}return h}function u(p){let f="",h=!1;for(const g of e){(!h||!f.endsWith("/"))&&(f+="/"),h=!1;for(const v of g)if(v.type===Dt.Static)f+=v.value;else if(v.type===Dt.Param){const{value:M,repeatable:E,optional:C}=v,R=M in p?p[M]:"";if(qe(R)&&!E)throw new Error(`Provided param "${M}" is an array but it is not repeatable (* or + modifiers)`);const I=qe(R)?R.join("/"):R;if(!I)if(C)g.length<2&&(f.endsWith("/")?f=f.slice(0,-1):h=!0);else throw new Error(`Missing required param "${M}"`);f+=I}}return f||"/"}return{re:i,score:s,keys:o,parse:a,stringify:u}}function Gu(e,t){let n=0;for(;n<e.length&&n<t.length;){const s=t[n]-e[n];if(s)return s;n++}return e.length<t.length?e.length===1&&e[0]===Re.Static+Re.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Re.Static+Re.Segment?1:-1:0}function wi(e,t){let n=0;const s=e.score,r=t.score;for(;n<s.length&&n<r.length;){const o=Gu(s[n],r[n]);if(o)return o;n++}if(Math.abs(r.length-s.length)===1){if(zr(s))return 1;if(zr(r))return-1}return r.length-s.length}function zr(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Wu={strict:!1,end:!0,sensitive:!1};function qu(e,t,n){const s=Ku(Hu(e.path),n),r=Y(s,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function zu(e,t){const n=[],s=new Map;t=Fr(Wu,t);function r(h){return s.get(h)}function o(h,g,v){const M=!v,E=Qr(h);E.aliasOf=v&&v.record;const C=Fr(t,h),R=[E];if("alias"in h){const D=typeof h.alias=="string"?[h.alias]:h.alias;for(const q of D)R.push(Qr(Y({},E,{components:v?v.record.components:E.components,path:q,aliasOf:v?v.record:E})))}let I,V;for(const D of R){const{path:q}=D;if(g&&q[0]!=="/"){const oe=g.record.path,U=oe[oe.length-1]==="/"?"":"/";D.path=g.record.path+(q&&U+q)}if(I=qu(D,g,C),v?v.alias.push(I):(V=V||I,V!==I&&V.alias.push(I),M&&h.name&&!Yr(I)&&i(h.name)),Ei(I)&&u(I),E.children){const oe=E.children;for(let U=0;U<oe.length;U++)o(oe[U],I,v&&v.children[U])}v=v||I}return V?()=>{i(V)}:pn}function i(h){if(yi(h)){const g=s.get(h);g&&(s.delete(h),n.splice(n.indexOf(g),1),g.children.forEach(i),g.alias.forEach(i))}else{const g=n.indexOf(h);g>-1&&(n.splice(g,1),h.record.name&&s.delete(h.record.name),h.children.forEach(i),h.alias.forEach(i))}}function a(){return n}function u(h){const g=Yu(h,n);n.splice(g,0,h),h.record.name&&!Yr(h)&&s.set(h.record.name,h)}function p(h,g){let v,M={},E,C;if("name"in h&&h.name){if(v=s.get(h.name),!v)throw Yt(ce.MATCHER_NOT_FOUND,{location:h});C=v.record.name,M=Y(Jr(g.params,v.keys.filter(V=>!V.optional).concat(v.parent?v.parent.keys.filter(V=>V.optional):[]).map(V=>V.name)),h.params&&Jr(h.params,v.keys.map(V=>V.name))),E=v.stringify(M)}else if(h.path!=null)E=h.path,v=n.find(V=>V.re.test(E)),v&&(M=v.parse(E),C=v.record.name);else{if(v=g.name?s.get(g.name):n.find(V=>V.re.test(g.path)),!v)throw Yt(ce.MATCHER_NOT_FOUND,{location:h,currentLocation:g});C=v.record.name,M=Y({},g.params,h.params),E=v.stringify(M)}const R=[];let I=v;for(;I;)R.unshift(I.record),I=I.parent;return{name:C,path:E,params:M,matched:R,meta:Qu(R)}}e.forEach(h=>o(h));function f(){n.length=0,s.clear()}return{addRoute:o,resolve:p,removeRoute:i,clearRoutes:f,getRoutes:a,getRecordMatcher:r}}function Jr(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function Qr(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Ju(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 Ju(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 Yr(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Qu(e){return e.reduce((t,n)=>Y(t,n.meta),{})}function Yu(e,t){let n=0,s=t.length;for(;n!==s;){const o=n+s>>1;wi(e,t[o])<0?s=o:n=o+1}const r=Xu(e);return r&&(s=t.lastIndexOf(r,s-1)),s}function Xu(e){let t=e;for(;t=t.parent;)if(Ei(t)&&wi(e,t)===0)return t}function Ei({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Xr(e){const t=at(os),n=at(_i),s=De(()=>{const u=jt(e.to);return t.resolve(u)}),r=De(()=>{const{matched:u}=s.value,{length:p}=u,f=u[p-1],h=n.matched;if(!f||!h.length)return-1;const g=h.findIndex(Qt.bind(null,f));if(g>-1)return g;const v=Zr(u[p-2]);return p>1&&Zr(f)===v&&h[h.length-1].path!==v?h.findIndex(Qt.bind(null,u[p-2])):g}),o=De(()=>r.value>-1&&sc(n.params,s.value.params)),i=De(()=>r.value>-1&&r.value===n.matched.length-1&&vi(n.params,s.value.params));function a(u={}){if(nc(u)){const p=t[jt(e.replace)?"replace":"push"](jt(e.to)).catch(pn);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>p),p}return Promise.resolve()}return{route:s,href:De(()=>s.value.href),isActive:o,isExactActive:i,navigate:a}}function Zu(e){return e.length===1?e[0]:e}const ec=Vo({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:Xr,setup(e,{slots:t}){const n=Yn(Xr(e)),{options:s}=at(os),r=De(()=>({[eo(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[eo(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&Zu(t.default(n));return e.custom?o:ai("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),tc=ec;function nc(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 sc(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(!qe(r)||r.length!==s.length||s.some((o,i)=>o.valueOf()!==r[i].valueOf()))return!1}return!0}function Zr(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const eo=(e,t,n)=>e??t??n,rc=Vo({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=at(js),r=De(()=>e.route||s.value),o=at(Gr,0),i=De(()=>{let p=jt(o);const{matched:f}=r.value;let h;for(;(h=f[p])&&!h.components;)p++;return p}),a=De(()=>r.value.matched[i.value]);In(Gr,De(()=>i.value+1)),In(ku,a),In(js,r);const u=ne();return Nn(()=>[u.value,a.value,e.name],([p,f,h],[g,v,M])=>{f&&(f.instances[h]=p,v&&v!==f&&p&&p===g&&(f.leaveGuards.size||(f.leaveGuards=v.leaveGuards),f.updateGuards.size||(f.updateGuards=v.updateGuards))),p&&f&&(!v||!Qt(f,v)||!g)&&(f.enterCallbacks[h]||[]).forEach(E=>E(p))},{flush:"post"}),()=>{const p=r.value,f=e.name,h=a.value,g=h&&h.components[f];if(!g)return to(n.default,{Component:g,route:p});const v=h.props[f],M=v?v===!0?p.params:typeof v=="function"?v(p):v:null,C=ai(g,Y({},M,t,{onVnodeUnmounted:R=>{R.component.isUnmounted&&(h.instances[f]=null)},ref:u}));return to(n.default,{Component:C,route:p})||C}}});function to(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const oc=rc;function ic(e){const t=zu(e.routes,e),n=e.parseQuery||Iu,s=e.stringifyQuery||Kr,r=e.history,o=sn(),i=sn(),a=sn(),u=tl(St);let p=St;Bt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=ys.bind(null,_=>""+_),h=ys.bind(null,hu),g=ys.bind(null,xn);function v(_,N){let P,j;return yi(_)?(P=t.getRecordMatcher(_),j=N):j=_,t.addRoute(j,P)}function M(_){const N=t.getRecordMatcher(_);N&&t.removeRoute(N)}function E(){return t.getRoutes().map(_=>_.record)}function C(_){return!!t.getRecordMatcher(_)}function R(_,N){if(N=Y({},N||u.value),typeof _=="string"){const c=bs(n,_,N.path),y=t.resolve({path:c.path},N),x=r.createHref(c.fullPath);return Y(c,y,{params:g(y.params),hash:xn(c.hash),redirectedFrom:void 0,href:x})}let P;if(_.path!=null)P=Y({},_,{path:bs(n,_.path,N.path).path});else{const c=Y({},_.params);for(const y in c)c[y]==null&&delete c[y];P=Y({},_,{params:h(c)}),N.params=h(N.params)}const j=t.resolve(P,N),A=_.hash||"";j.params=f(g(j.params));const l=vu(s,Y({},_,{hash:fu(A),path:j.path})),d=r.createHref(l);return Y({fullPath:l,hash:A,query:s===Kr?Nu(_.query):_.query||{}},j,{redirectedFrom:void 0,href:d})}function I(_){return typeof _=="string"?bs(n,_,u.value.path):Y({},_)}function V(_,N){if(p!==_)return Yt(ce.NAVIGATION_CANCELLED,{from:N,to:_})}function D(_){return U(_)}function q(_){return D(Y(I(_),{replace:!0}))}function oe(_,N){const P=_.matched[_.matched.length-1];if(P&&P.redirect){const{redirect:j}=P;let A=typeof j=="function"?j(_,N):j;return typeof A=="string"&&(A=A.includes("?")||A.includes("#")?A=I(A):{path:A},A.params={}),Y({query:_.query,hash:_.hash,params:A.path!=null?{}:_.params},A)}}function U(_,N){const P=p=R(_),j=u.value,A=_.state,l=_.force,d=_.replace===!0,c=oe(P,j);if(c)return U(Y(I(c),{state:typeof c=="object"?Y({},A,c.state):A,force:l,replace:d}),N||P);const y=P;y.redirectedFrom=N;let x;return!l&&yu(s,j,P)&&(x=Yt(ce.NAVIGATION_DUPLICATED,{to:y,from:j}),He(j,j,!0,!1)),(x?Promise.resolve(x):Le(y,j)).catch(b=>pt(b)?pt(b,ce.NAVIGATION_GUARD_REDIRECT)?b:Ne(b):B(b,y,j)).then(b=>{if(b){if(pt(b,ce.NAVIGATION_GUARD_REDIRECT))return U(Y({replace:d},I(b.to),{state:typeof b.to=="object"?Y({},A,b.to.state):A,force:l}),N||y)}else b=ct(y,j,!0,d,A);return ze(y,j,b),b})}function Ie(_,N){const P=V(_,N);return P?Promise.reject(P):Promise.resolve()}function je(_){const N=At.values().next().value;return N&&typeof N.runWithContext=="function"?N.runWithContext(_):_()}function Le(_,N){let P;const[j,A,l]=Du(_,N);P=xs(j.reverse(),"beforeRouteLeave",_,N);for(const c of j)c.leaveGuards.forEach(y=>{P.push(Ot(y,_,N))});const d=Ie.bind(null,_,N);return P.push(d),ve(P).then(()=>{P=[];for(const c of o.list())P.push(Ot(c,_,N));return P.push(d),ve(P)}).then(()=>{P=xs(A,"beforeRouteUpdate",_,N);for(const c of A)c.updateGuards.forEach(y=>{P.push(Ot(y,_,N))});return P.push(d),ve(P)}).then(()=>{P=[];for(const c of l)if(c.beforeEnter)if(qe(c.beforeEnter))for(const y of c.beforeEnter)P.push(Ot(y,_,N));else P.push(Ot(c.beforeEnter,_,N));return P.push(d),ve(P)}).then(()=>(_.matched.forEach(c=>c.enterCallbacks={}),P=xs(l,"beforeRouteEnter",_,N,je),P.push(d),ve(P))).then(()=>{P=[];for(const c of i.list())P.push(Ot(c,_,N));return P.push(d),ve(P)}).catch(c=>pt(c,ce.NAVIGATION_CANCELLED)?c:Promise.reject(c))}function ze(_,N,P){a.list().forEach(j=>je(()=>j(_,N,P)))}function ct(_,N,P,j,A){const l=V(_,N);if(l)return l;const d=N===St,c=Bt?history.state:{};P&&(j||d?r.replace(_.fullPath,Y({scroll:d&&c&&c.scroll},A)):r.push(_.fullPath,A)),u.value=_,He(_,N,P,d),Ne()}let Ue;function Pt(){Ue||(Ue=r.listen((_,N,P)=>{if(!ft.listening)return;const j=R(_),A=oe(j,ft.currentRoute.value);if(A){U(Y(A,{replace:!0,force:!0}),j).catch(pn);return}p=j;const l=u.value;Bt&&Su($r(l.fullPath,P.delta),rs()),Le(j,l).catch(d=>pt(d,ce.NAVIGATION_ABORTED|ce.NAVIGATION_CANCELLED)?d:pt(d,ce.NAVIGATION_GUARD_REDIRECT)?(U(Y(I(d.to),{force:!0}),j).then(c=>{pt(c,ce.NAVIGATION_ABORTED|ce.NAVIGATION_DUPLICATED)&&!P.delta&&P.type===Ms.pop&&r.go(-1,!1)}).catch(pn),Promise.reject()):(P.delta&&r.go(-P.delta,!1),B(d,j,l))).then(d=>{d=d||ct(j,l,!1),d&&(P.delta&&!pt(d,ce.NAVIGATION_CANCELLED)?r.go(-P.delta,!1):P.type===Ms.pop&&pt(d,ce.NAVIGATION_ABORTED|ce.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),ze(j,l,d)}).catch(pn)}))}let Et=sn(),ae=sn(),z;function B(_,N,P){Ne(_);const j=ae.list();return j.length?j.forEach(A=>A(_,N,P)):console.error(_),Promise.reject(_)}function Fe(){return z&&u.value!==St?Promise.resolve():new Promise((_,N)=>{Et.add([_,N])})}function Ne(_){return z||(z=!_,Pt(),Et.list().forEach(([N,P])=>_?P(_):N()),Et.reset()),_}function He(_,N,P,j){const{scrollBehavior:A}=e;if(!Bt||!A)return Promise.resolve();const l=!P&&Ru($r(_.fullPath,0))||(j||!P)&&history.state&&history.state.scroll||null;return Qs().then(()=>A(_,N,l)).then(d=>d&&Au(d)).catch(d=>B(d,_,N))}const xe=_=>r.go(_);let Ct;const At=new Set,ft={currentRoute:u,listening:!0,addRoute:v,removeRoute:M,clearRoutes:t.clearRoutes,hasRoute:C,getRoutes:E,resolve:R,options:e,push:D,replace:q,go:xe,back:()=>xe(-1),forward:()=>xe(1),beforeEach:o.add,beforeResolve:i.add,afterEach:a.add,onError:ae.add,isReady:Fe,install(_){_.component("RouterLink",tc),_.component("RouterView",oc),_.config.globalProperties.$router=ft,Object.defineProperty(_.config.globalProperties,"$route",{enumerable:!0,get:()=>jt(u)}),Bt&&!Ct&&u.value===St&&(Ct=!0,D(r.location).catch(j=>{}));const N={};for(const j in St)Object.defineProperty(N,j,{get:()=>u.value[j],enumerable:!0});_.provide(os,ft),_.provide(_i,Ao(N)),_.provide(js,u);const P=_.unmount;At.add(_),_.unmount=function(){At.delete(_),At.size<1&&(p=St,Ue&&Ue(),Ue=null,u.value=St,Ct=!1,z=!1),P()}}};function ve(_){return _.reduce((N,P)=>N.then(()=>je(P)),Promise.resolve())}return ft}function lc(){return at(os)}async function Tn(e,t={}){const n=await fetch(e,{...t,headers:{"Content-Type":"application/json",...t.headers}}),s=n.headers.get("content-type")||"";if(n.redirected||!s.includes("application/json"))throw window.location.href="/login",new Error("Sesión expirada");const r=await n.json();if(!n.ok)throw new Error((r==null?void 0:r.error)||(r==null?void 0:r.message)||"Error de servidor");return r}const pe={get:e=>Tn(e),post:(e,t)=>Tn(e,{method:"POST",body:JSON.stringify(t)}),put:(e,t)=>Tn(e,{method:"PUT",body:JSON.stringify(t)}),del:e=>Tn(e,{method:"DELETE"})},ac={key:0,class:"text-sm text-red-600 mb-4"},uc={key:1,class:"text-sm text-gray-500"},cc={key:2,class:"bg-white rounded-xl border border-gray-200 divide-y divide-gray-100"},fc={key:0,class:"p-6 text-sm text-gray-500"},dc=["onClick"],pc={class:"font-medium text-gray-800"},hc={class:"text-xs text-gray-500 mt-0.5"},gc={class:"flex items-center gap-3 text-sm"},mc=["onClick"],vc=["onClick"],yc={class:"bg-white rounded-xl p-6 w-full max-w-lg"},bc={class:"font-semibold text-gray-800 mb-4"},_c=["value"],xc={class:"flex items-center gap-2 text-sm text-gray-600"},wc={class:"flex justify-end gap-2 pt-2"},Ec={__name:"TenantsList",setup(e){const t=lc(),n=ne([]),s=ne([]),r=ne(!0),o=ne(""),i=ne(!1),a=ne(null),u=ne(p());function p(){return{nombre:"",dominios_permitidos:"",ai_config_id:null,tono:"",mensaje_bienvenida:"",activo:!0}}async function f(){r.value=!0,o.value="";try{const[E,C]=await Promise.all([pe.get("/app/umind/tenants"),pe.get("/app/api/ai-config/select")]);n.value=E.items||[],s.value=C.registros||[]}catch(E){o.value=E.message}finally{r.value=!1}}function h(){a.value=null,u.value=p(),i.value=!0}function g(E){a.value=E,u.value={nombre:E.nombre,dominios_permitidos:E.dominios_permitidos,ai_config_id:E.ai_config_id,tono:E.tono,mensaje_bienvenida:E.mensaje_bienvenida,activo:E.activo},i.value=!0}async function v(){const E={...u.value,dominios_permitidos:u.value.dominios_permitidos.split(",").map(C=>C.trim()).filter(Boolean)};try{if(a.value)await pe.put(`/app/umind/tenants/${a.value.ID}`,E),i.value=!1,await f();else{const C=await pe.post("/app/umind/tenants",E);i.value=!1,t.push(`/tenants/${C.id}`)}}catch(C){o.value=C.message}}async function M(E){if(confirm(`¿Eliminar el tenant "${E.nombre}"? Esto no se puede deshacer.`))try{await pe.del(`/app/umind/tenants/${E.ID}`),await f()}catch(C){o.value=C.message}}return tr(f),(E,C)=>(L(),H("div",null,[m("div",{class:"flex items-center justify-between mb-6"},[C[8]||(C[8]=m("h1",{class:"text-xl font-semibold text-gray-800"},"Tenants",-1)),m("button",{class:"bg-brand hover:bg-brand-dark text-white text-sm font-medium px-4 py-2 rounded-lg",onClick:h}," + Nuevo tenant ")]),o.value?(L(),H("p",ac,Q(o.value),1)):ue("",!0),r.value?(L(),H("p",uc,"Cargando...")):(L(),H("div",cc,[n.value.length===0?(L(),H("div",fc," Todavía no hay tenants. Creá el primero. ")):ue("",!0),(L(!0),H(he,null,et(n.value,R=>(L(),H("div",{key:R.ID,class:"p-4 flex items-center justify-between hover:bg-gray-50 cursor-pointer",onClick:I=>jt(t).push(`/tenants/${R.ID}`)},[m("div",null,[m("span",pc,Q(R.nombre),1),m("div",hc,[$e(Q(R.dominios_permitidos||"sin dominios configurados")+" ",1),m("span",{class:tt(["ml-2 px-1.5 py-0.5 rounded",R.activo?"bg-green-100 text-green-700":"bg-gray-100 text-gray-500"])},Q(R.activo?"activo":"inactivo"),3)])]),m("div",gc,[C[9]||(C[9]=m("span",{class:"text-brand font-medium"},"Configurar →",-1)),m("button",{class:"text-gray-500 hover:text-gray-800",onClick:rt(I=>g(R),["stop"])},"Editar",8,mc),m("button",{class:"text-red-500 hover:text-red-700",onClick:rt(I=>M(R),["stop"])},"Eliminar",8,vc)])],8,dc))),128))])),i.value?(L(),H("div",{key:3,class:"fixed inset-0 bg-black/30 flex items-center justify-center p-4 z-50",onClick:C[7]||(C[7]=rt(R=>i.value=!1,["self"]))},[m("div",yc,[m("h2",bc,Q(a.value?"Editar tenant":"Nuevo tenant"),1),m("form",{class:"space-y-3",onSubmit:rt(v,["prevent"])},[m("div",null,[C[10]||(C[10]=m("label",{class:"text-xs text-gray-500"},"Nombre",-1)),ie(m("input",{"onUpdate:modelValue":C[0]||(C[0]=R=>u.value.nombre=R),required:"",class:"w-full border border-gray-300 rounded-lg px-3 py-2 text-sm"},null,512),[[me,u.value.nombre]])]),m("div",null,[C[11]||(C[11]=m("label",{class:"text-xs text-gray-500"},"Dominios permitidos (separados por coma)",-1)),ie(m("input",{"onUpdate:modelValue":C[1]||(C[1]=R=>u.value.dominios_permitidos=R),placeholder:"ejemplo.com, www.ejemplo.com",required:"",class:"w-full border border-gray-300 rounded-lg px-3 py-2 text-sm"},null,512),[[me,u.value.dominios_permitidos]])]),m("div",null,[C[13]||(C[13]=m("label",{class:"text-xs text-gray-500"},"Config de IA",-1)),ie(m("select",{"onUpdate:modelValue":C[2]||(C[2]=R=>u.value.ai_config_id=R),class:"w-full border border-gray-300 rounded-lg px-3 py-2 text-sm"},[C[12]||(C[12]=m("option",{value:null},"— sin asignar —",-1)),(L(!0),H(he,null,et(s.value,R=>(L(),H("option",{key:R.ID,value:R.ID},Q(R.nombre)+" ("+Q(R.provider)+") ",9,_c))),128))],512),[[ks,u.value.ai_config_id]])]),m("div",null,[C[14]||(C[14]=m("label",{class:"text-xs text-gray-500"},"Tono / personalidad",-1)),ie(m("textarea",{"onUpdate:modelValue":C[3]||(C[3]=R=>u.value.tono=R),rows:"2",class:"w-full border border-gray-300 rounded-lg px-3 py-2 text-sm"},null,512),[[me,u.value.tono]])]),m("div",null,[C[15]||(C[15]=m("label",{class:"text-xs text-gray-500"},"Mensaje de bienvenida",-1)),ie(m("input",{"onUpdate:modelValue":C[4]||(C[4]=R=>u.value.mensaje_bienvenida=R),class:"w-full border border-gray-300 rounded-lg px-3 py-2 text-sm"},null,512),[[me,u.value.mensaje_bienvenida]])]),m("label",xc,[ie(m("input",{"onUpdate:modelValue":C[5]||(C[5]=R=>u.value.activo=R),type:"checkbox"},null,512),[[Dn,u.value.activo]]),C[16]||(C[16]=$e(" Activo ",-1))]),m("div",wc,[m("button",{type:"button",class:"px-4 py-2 text-sm text-gray-500",onClick:C[6]||(C[6]=R=>i.value=!1)}," Cancelar "),C[17]||(C[17]=m("button",{type:"submit",class:"bg-brand hover:bg-brand-dark text-white text-sm font-medium px-4 py-2 rounded-lg"}," Guardar ",-1))])],32)])])):ue("",!0)]))}},Cc={key:0,class:"mt-2 mb-6"},Ac={class:"text-xl font-semibold text-gray-800"},Sc={class:"text-xs text-gray-500 mt-1"},Rc={class:"bg-gray-100 px-1.5 py-0.5 rounded"},Oc={key:1,class:"text-sm text-red-600 mb-4"},Tc={class:"border-b border-gray-200 mb-6 flex gap-6 text-sm overflow-x-auto"},Pc=["onClick"],Ic={key:2},Nc=["disabled"],kc={class:"bg-white rounded-xl border border-gray-200 divide-y divide-gray-100"},Dc={key:0,class:"p-6 text-sm text-gray-500"},Mc={class:"text-sm text-gray-800"},Vc={class:"text-xs text-gray-500 mt-0.5"},jc={key:0},Lc={key:1,class:"text-red-600"},Uc=["onClick"],Fc={key:3},Hc={class:"bg-white rounded-xl border border-gray-200 divide-y divide-gray-100"},Bc={key:0,class:"p-6 text-sm text-gray-500"},$c={class:"text-sm text-gray-800 font-mono"},Kc={class:"text-xs text-gray-500 mt-0.5"},Gc={class:"text-xs text-gray-400 mt-0.5"},Wc={key:0,class:"ml-1 text-green-600"},qc={key:1,class:"ml-1 text-gray-400"},zc={class:"flex gap-3 text-sm shrink-0"},Jc=["onClick"],Qc=["onClick"],Yc={class:"bg-white rounded-xl p-6 w-full max-w-xl max-h-[85vh] overflow-y-auto"},Xc={class:"font-semibold text-gray-800 mb-4"},Zc={class:"border border-gray-200 rounded-lg p-3 space-y-2"},ef=["onUpdate:modelValue"],tf=["onUpdate:modelValue"],nf=["onUpdate:modelValue"],sf={class:"text-xs text-gray-500 flex items-center gap-1"},rf=["onUpdate:modelValue"],of=["onClick"],lf={key:0,class:"text-xs text-gray-400"},af={class:"border border-gray-200 rounded-lg p-3 space-y-2"},uf={class:"flex items-center gap-2 text-xs text-gray-500"},cf={class:"flex items-center gap-2 text-sm text-gray-600"},ff={class:"flex justify-end gap-2 pt-2"},df={key:4},pf={class:"bg-white rounded-xl border border-gray-200 divide-y divide-gray-100"},hf={key:0,class:"p-6 text-sm text-gray-500"},gf={class:"flex items-center justify-between"},mf={class:"font-medium text-gray-800 capitalize"},vf={class:"flex gap-3 text-sm"},yf=["onClick"],bf=["onClick"],_f={class:"text-xs text-gray-500 mt-1 break-all"},xf={class:"bg-gray-100 px-1 rounded"},wf={key:0,class:"text-xs text-gray-400 mt-1"},Ef={key:1,class:"text-xs text-red-600 mt-1"},Cf={class:"bg-white rounded-xl p-6 w-full max-w-md"},Af={key:0},Sf={class:"flex justify-end gap-2 pt-2"},Rf={key:5,class:"bg-white rounded-xl border border-gray-200 p-4 flex flex-col h-[28rem]"},Of={class:"flex-1 overflow-y-auto space-y-2 mb-3"},Tf={key:0,class:"text-sm text-gray-500"},Pf={key:1,class:"text-xs text-gray-400"},If=["disabled"],Nf={key:6,class:"grid grid-cols-3 gap-4"},kf={class:"col-span-1 bg-white rounded-xl border border-gray-200 divide-y divide-gray-100 max-h-[28rem] overflow-y-auto"},Df={key:0,class:"p-4 text-sm text-gray-500"},Mf=["onClick"],Vf={class:"text-gray-800 truncate"},jf={class:"text-xs text-gray-400 mt-0.5"},Lf={class:"col-span-2 bg-white rounded-xl border border-gray-200 p-4 max-h-[28rem] overflow-y-auto space-y-2"},Uf={key:0,class:"text-sm text-gray-500"},Ff={__name:"TenantDetail",props:{id:{type:String,required:!0}},setup(e){const t=e,n=De(()=>Number(t.id)),s=ne(null),r=ne(""),o=ne("conocimiento"),i=ne([]),a=ne(""),u=ne(30),p=ne(!1);async function f(){const A=await pe.get("/app/umind/tenants");s.value=(A.items||[]).find(l=>String(l.ID)===t.id)||null}async function h(){const A=await pe.get(`/app/umind/documentos?tenant_id=${t.id}`);i.value=A.items||[]}async function g(){if(a.value.trim()){p.value=!0,r.value="";try{await pe.post("/app/umind/documentos",{tenant_id:n.value,url:a.value.trim(),max_paginas:Number(u.value)||30}),a.value="",await h()}catch(A){r.value=A.message}finally{p.value=!1}}}async function v(A){confirm("¿Eliminar esta fuente y sus fragmentos indexados?")&&(await pe.del(`/app/umind/documentos/${A}`),await h())}const M=De(()=>A=>({listo:"bg-green-100 text-green-700",procesando:"bg-amber-100 text-amber-700",pendiente:"bg-gray-100 text-gray-500",error:"bg-red-100 text-red-700"})[A]||"bg-gray-100 text-gray-500"),E=ne([]),C=ne([]),R=ne(null);async function I(){const A=await pe.get(`/app/umind/sesiones?tenant_id=${t.id}`);E.value=A.items||[]}async function V(A){R.value=A;const l=await pe.get(`/app/umind/historial?tenant_id=${t.id}&session_id=${A}`);C.value=l.items||[]}const D=ne([]),q=ne(!1),oe=ne(null),U=ne(Ie());function Ie(){return{nombre:"",descripcion:"",url:"",auth_header_nombre:"",auth_header_valor:"",tocarAuth:!1,parametros:[],activa:!0}}async function je(){const A=await pe.get(`/app/umind/tools?tenant_id=${t.id}`);D.value=A.items||[]}function Le(){oe.value=null,U.value=Ie(),q.value=!0}function ze(A){oe.value=A;let l=[];try{l=JSON.parse(A.parametros_json||"[]")||[]}catch{l=[]}U.value={nombre:A.nombre,descripcion:A.descripcion,url:A.url,auth_header_nombre:A.auth_header_nombre,auth_header_valor:"",tocarAuth:!1,parametros:l,activa:A.activa},q.value=!0}function ct(){U.value.parametros.push({nombre:"",tipo:"string",descripcion:"",requerido:!1})}function Ue(A){U.value.parametros.splice(A,1)}async function Pt(){const A={tenant_id:n.value,nombre:U.value.nombre.trim(),descripcion:U.value.descripcion,url:U.value.url.trim(),auth_header_nombre:U.value.auth_header_nombre,parametros:U.value.parametros,activa:U.value.activa};U.value.tocarAuth&&(A.auth_header_valor=U.value.auth_header_valor);try{oe.value?await pe.put(`/app/umind/tools/${oe.value.ID}`,A):await pe.post("/app/umind/tools",A),q.value=!1,await je()}catch(l){r.value=l.message}}async function Et(A){confirm(`¿Eliminar la tool "${A.nombre}"?`)&&(await pe.del(`/app/umind/tools/${A.ID}`),await je())}const ae=ne([]),z=ne(!1),B=ne(Fe());function Fe(){return{tipo:"telegram",bot_token:"",phone_number_id:"",access_token:"",app_secret:"",verify_token:""}}async function Ne(){const A=await pe.get(`/app/umind/canales?tenant_id=${t.id}`);ae.value=A.items||[]}function He(){B.value=Fe(),z.value=!0}async function xe(){const A=B.value.tipo==="telegram"?{bot_token:B.value.bot_token}:{phone_number_id:B.value.phone_number_id,access_token:B.value.access_token,app_secret:B.value.app_secret,verify_token:B.value.verify_token};try{await pe.post("/app/umind/canales",{tenant_id:n.value,tipo:B.value.tipo,credenciales:A,activo:!0}),z.value=!1,await Ne()}catch(l){r.value=l.message}}async function Ct(A){await pe.put(`/app/umind/canales/${A.ID}`,{activo:!A.activo,credenciales:{}}),await Ne()}async function At(A){confirm(`¿Eliminar el canal ${A.tipo}?`)&&(await pe.del(`/app/umind/canales/${A.ID}`),await Ne())}const ft=`staff-preview-${Math.random().toString(36).slice(2)}`,ve=ne([]),_=ne(""),N=ne(!1);async function P(){const A=_.value.trim();if(!(!A||N.value)){_.value="",ve.value.push({role:"user",content:A}),N.value=!0;try{const l=await pe.post("/app/umind/chat",{tenant_id:n.value,session_id:ft,mensaje:A});ve.value.push({role:"assistant",content:l.respuesta})}catch(l){ve.value.push({role:"assistant",content:`⚠️ ${l.message}`})}finally{N.value=!1}}}const j=[["conocimiento","Base de conocimiento"],["herramientas","Herramientas"],["canales","Canales"],["chat","Chat de prueba"],["conversaciones","Conversaciones"]];return tr(async()=>{try{await Promise.all([f(),h(),I(),je(),Ne()])}catch(A){r.value=A.message}}),(A,l)=>{const d=Rs("router-link");return L(),H("div",null,[Ce(d,{to:"/",class:"text-sm text-gray-500 hover:text-gray-700"},{default:Xs(()=>[...l[20]||(l[20]=[$e("← Tenants",-1)])]),_:1}),s.value?(L(),H("div",Cc,[m("h1",Ac,Q(s.value.nombre),1),m("p",Sc,[l[21]||(l[21]=$e(" site_key: ",-1)),m("code",Rc,Q(s.value.site_key),1)])])):ue("",!0),r.value?(L(),H("p",Oc,Q(r.value),1)):ue("",!0),m("div",Tc,[(L(),H(he,null,et(j,([c,y])=>m("button",{key:c,class:tt(["pb-2 border-b-2 whitespace-nowrap",o.value===c?"border-brand text-brand font-medium":"border-transparent text-gray-500"]),onClick:x=>o.value=c},Q(y),11,Pc)),64))]),o.value==="conocimiento"?(L(),H("div",Ic,[m("form",{class:"flex gap-2 mb-4",onSubmit:rt(g,["prevent"])},[ie(m("input",{"onUpdate:modelValue":l[0]||(l[0]=c=>a.value=c),type:"url",placeholder:"https://ejemplo.com",required:"",class:"flex-1 border border-gray-300 rounded-lg px-3 py-2 text-sm"},null,512),[[me,a.value]]),ie(m("input",{"onUpdate:modelValue":l[1]||(l[1]=c=>u.value=c),type:"number",min:"1",max:"200",class:"w-24 border border-gray-300 rounded-lg px-3 py-2 text-sm",title:"Máximo de páginas a crawlear"},null,512),[[me,u.value]]),m("button",{type:"submit",disabled:p.value,class:"bg-brand hover:bg-brand-dark text-white text-sm font-medium px-4 py-2 rounded-lg disabled:opacity-50"},Q(p.value?"Agregando...":"Crawlear sitio"),9,Nc)],32),m("div",kc,[i.value.length===0?(L(),H("div",Dc,"Sin fuentes todavía.")):ue("",!0),(L(!0),H(he,null,et(i.value,c=>(L(),H("div",{key:c.ID,class:"p-4 flex items-center justify-between"},[m("div",null,[m("div",Mc,Q(c.origen),1),m("div",Vc,[m("span",{class:tt(["px-1.5 py-0.5 rounded",M.value(c.estado)])},Q(c.estado),3),c.total_chunks?(L(),H("span",jc," · "+Q(c.total_chunks)+" fragmentos",1)):ue("",!0),c.error?(L(),H("span",Lc," · "+Q(c.error),1)):ue("",!0)])]),m("button",{class:"text-red-500 hover:text-red-700 text-sm",onClick:y=>v(c.ID)},"Eliminar",8,Uc)]))),128))])])):o.value==="herramientas"?(L(),H("div",Fc,[m("div",{class:"flex justify-between items-center mb-4"},[l[22]||(l[22]=m("p",{class:"text-xs text-gray-500"},"Máximo 10 tools activas por tenant.",-1)),m("button",{class:"bg-brand hover:bg-brand-dark text-white text-sm font-medium px-4 py-2 rounded-lg",onClick:Le}," + Nueva tool ")]),m("div",Hc,[D.value.length===0?(L(),H("div",Bc,"Sin tools custom todavía.")):ue("",!0),(L(!0),H(he,null,et(D.value,c=>(L(),H("div",{key:c.ID,class:"p-4 flex items-center justify-between"},[m("div",null,[m("div",$c,Q(c.nombre),1),m("div",Kc,Q(c.descripcion),1),m("div",Gc,[$e(Q(c.url)+" ",1),c.auth_configurado?(L(),H("span",Wc,"· auth configurada")):ue("",!0),c.activa?ue("",!0):(L(),H("span",qc,"· inactiva"))])]),m("div",zc,[m("button",{class:"text-gray-500 hover:text-gray-800",onClick:y=>ze(c)},"Editar",8,Jc),m("button",{class:"text-red-500 hover:text-red-700",onClick:y=>Et(c)},"Eliminar",8,Qc)])]))),128))]),q.value?(L(),H("div",{key:0,class:"fixed inset-0 bg-black/30 flex items-center justify-center p-4 z-50",onClick:l[10]||(l[10]=rt(c=>q.value=!1,["self"]))},[m("div",Yc,[m("h2",Xc,Q(oe.value?"Editar tool":"Nueva tool"),1),m("form",{class:"space-y-3",onSubmit:rt(Pt,["prevent"])},[m("div",null,[l[23]||(l[23]=m("label",{class:"text-xs text-gray-500"},"Nombre (identificador, ej: consultar_stock)",-1)),ie(m("input",{"onUpdate:modelValue":l[2]||(l[2]=c=>U.value.nombre=c),required:"",pattern:"[a-z][a-z0-9_]{2,63}",class:"w-full border border-gray-300 rounded-lg px-3 py-2 text-sm font-mono"},null,512),[[me,U.value.nombre]])]),m("div",null,[l[24]||(l[24]=m("label",{class:"text-xs text-gray-500"},"Descripción (esto lo lee el modelo para decidir cuándo usarla)",-1)),ie(m("textarea",{"onUpdate:modelValue":l[3]||(l[3]=c=>U.value.descripcion=c),rows:"2",required:"",class:"w-full border border-gray-300 rounded-lg px-3 py-2 text-sm"},null,512),[[me,U.value.descripcion]])]),m("div",null,[l[25]||(l[25]=m("label",{class:"text-xs text-gray-500"},"URL del webhook (https)",-1)),ie(m("input",{"onUpdate:modelValue":l[4]||(l[4]=c=>U.value.url=c),type:"url",required:"",placeholder:"https://...",class:"w-full border border-gray-300 rounded-lg px-3 py-2 text-sm"},null,512),[[me,U.value.url]])]),m("div",Zc,[m("div",{class:"flex items-center justify-between"},[l[26]||(l[26]=m("label",{class:"text-xs text-gray-500"},"Parámetros que completa el modelo",-1)),m("button",{type:"button",class:"text-xs text-brand",onClick:ct},"+ agregar")]),(L(!0),H(he,null,et(U.value.parametros,(c,y)=>(L(),H("div",{key:y,class:"flex gap-2 items-center"},[ie(m("input",{"onUpdate:modelValue":x=>c.nombre=x,placeholder:"nombre",class:"flex-1 border border-gray-300 rounded px-2 py-1 text-xs font-mono"},null,8,ef),[[me,c.nombre]]),ie(m("select",{"onUpdate:modelValue":x=>c.tipo=x,class:"border border-gray-300 rounded px-2 py-1 text-xs"},[...l[27]||(l[27]=[m("option",{value:"string"},"string",-1),m("option",{value:"number"},"number",-1),m("option",{value:"boolean"},"boolean",-1)])],8,tf),[[ks,c.tipo]]),ie(m("input",{"onUpdate:modelValue":x=>c.descripcion=x,placeholder:"descripción",class:"flex-1 border border-gray-300 rounded px-2 py-1 text-xs"},null,8,nf),[[me,c.descripcion]]),m("label",sf,[ie(m("input",{"onUpdate:modelValue":x=>c.requerido=x,type:"checkbox"},null,8,rf),[[Dn,c.requerido]]),l[28]||(l[28]=$e(" req. ",-1))]),m("button",{type:"button",class:"text-red-400 text-xs",onClick:x=>Ue(y)},"✕",8,of)]))),128)),U.value.parametros.length===0?(L(),H("p",lf,"Sin parámetros.")):ue("",!0)]),m("div",af,[l[29]||(l[29]=m("label",{class:"text-xs text-gray-500"},"Autenticación saliente (opcional)",-1)),ie(m("input",{"onUpdate:modelValue":l[5]||(l[5]=c=>U.value.auth_header_nombre=c),placeholder:"Nombre del header, ej: Authorization",class:"w-full border border-gray-300 rounded-lg px-3 py-2 text-sm"},null,512),[[me,U.value.auth_header_nombre]]),m("label",uf,[ie(m("input",{"onUpdate:modelValue":l[6]||(l[6]=c=>U.value.tocarAuth=c),type:"checkbox"},null,512),[[Dn,U.value.tocarAuth]]),$e(" "+Q(oe.value?"Cambiar el valor del secreto":"Configurar valor"),1)]),U.value.tocarAuth?ie((L(),H("input",{key:0,"onUpdate:modelValue":l[7]||(l[7]=c=>U.value.auth_header_valor=c),type:"password",placeholder:"Valor del header (ej: Bearer xxxx)",class:"w-full border border-gray-300 rounded-lg px-3 py-2 text-sm"},null,512)),[[me,U.value.auth_header_valor]]):ue("",!0)]),m("label",cf,[ie(m("input",{"onUpdate:modelValue":l[8]||(l[8]=c=>U.value.activa=c),type:"checkbox"},null,512),[[Dn,U.value.activa]]),l[30]||(l[30]=$e(" Activa ",-1))]),m("div",ff,[m("button",{type:"button",class:"px-4 py-2 text-sm text-gray-500",onClick:l[9]||(l[9]=c=>q.value=!1)},"Cancelar"),l[31]||(l[31]=m("button",{type:"submit",class:"bg-brand hover:bg-brand-dark text-white text-sm font-medium px-4 py-2 rounded-lg"},"Guardar",-1))])],32)])])):ue("",!0)])):o.value==="canales"?(L(),H("div",df,[m("div",{class:"flex justify-end mb-4"},[m("button",{class:"bg-brand hover:bg-brand-dark text-white text-sm font-medium px-4 py-2 rounded-lg",onClick:He}," + Nuevo canal ")]),m("div",pf,[ae.value.length===0?(L(),H("div",hf,"Sin canales configurados.")):ue("",!0),(L(!0),H(he,null,et(ae.value,c=>(L(),H("div",{key:c.ID,class:"p-4"},[m("div",gf,[m("div",null,[m("span",mf,Q(c.tipo),1),m("span",{class:tt(["ml-2 px-1.5 py-0.5 rounded text-xs",c.activo?"bg-green-100 text-green-700":"bg-gray-100 text-gray-500"])},Q(c.activo?"activo":"inactivo"),3)]),m("div",vf,[m("button",{class:"text-gray-500 hover:text-gray-800",onClick:y=>Ct(c)},Q(c.activo?"Desactivar":"Activar"),9,yf),m("button",{class:"text-red-500 hover:text-red-700",onClick:y=>At(c)},"Eliminar",8,bf)])]),m("p",_f,[l[32]||(l[32]=$e(" Webhook: ",-1)),m("code",xf,Q(c.webhook_url),1)]),c.tipo==="whatsapp"?(L(),H("p",wf,' Registrá esta URL como "Callback URL" en Meta for Developers → WhatsApp → Configuration, con el mismo verify_token que pusiste acá. ')):ue("",!0),c.ultimo_error?(L(),H("p",Ef,Q(c.ultimo_error),1)):ue("",!0)]))),128))]),z.value?(L(),H("div",{key:0,class:"fixed inset-0 bg-black/30 flex items-center justify-center p-4 z-50",onClick:l[18]||(l[18]=rt(c=>z.value=!1,["self"]))},[m("div",Cf,[l[41]||(l[41]=m("h2",{class:"font-semibold text-gray-800 mb-4"},"Nuevo canal",-1)),m("form",{class:"space-y-3",onSubmit:rt(xe,["prevent"])},[m("div",null,[l[34]||(l[34]=m("label",{class:"text-xs text-gray-500"},"Tipo",-1)),ie(m("select",{"onUpdate:modelValue":l[11]||(l[11]=c=>B.value.tipo=c),class:"w-full border border-gray-300 rounded-lg px-3 py-2 text-sm"},[...l[33]||(l[33]=[m("option",{value:"telegram"},"Telegram",-1),m("option",{value:"whatsapp"},"WhatsApp Business",-1)])],512),[[ks,B.value.tipo]])]),B.value.tipo==="telegram"?(L(),H("div",Af,[l[35]||(l[35]=m("label",{class:"text-xs text-gray-500"},"Bot token (de @BotFather)",-1)),ie(m("input",{"onUpdate:modelValue":l[12]||(l[12]=c=>B.value.bot_token=c),type:"password",required:"",class:"w-full border border-gray-300 rounded-lg px-3 py-2 text-sm"},null,512),[[me,B.value.bot_token]])])):(L(),H(he,{key:1},[m("div",null,[l[36]||(l[36]=m("label",{class:"text-xs text-gray-500"},"Phone Number ID",-1)),ie(m("input",{"onUpdate:modelValue":l[13]||(l[13]=c=>B.value.phone_number_id=c),required:"",class:"w-full border border-gray-300 rounded-lg px-3 py-2 text-sm"},null,512),[[me,B.value.phone_number_id]])]),m("div",null,[l[37]||(l[37]=m("label",{class:"text-xs text-gray-500"},"Access Token",-1)),ie(m("input",{"onUpdate:modelValue":l[14]||(l[14]=c=>B.value.access_token=c),type:"password",required:"",class:"w-full border border-gray-300 rounded-lg px-3 py-2 text-sm"},null,512),[[me,B.value.access_token]])]),m("div",null,[l[38]||(l[38]=m("label",{class:"text-xs text-gray-500"},"App Secret",-1)),ie(m("input",{"onUpdate:modelValue":l[15]||(l[15]=c=>B.value.app_secret=c),type:"password",required:"",class:"w-full border border-gray-300 rounded-lg px-3 py-2 text-sm"},null,512),[[me,B.value.app_secret]])]),m("div",null,[l[39]||(l[39]=m("label",{class:"text-xs text-gray-500"},"Verify Token (lo inventás vos, lo vas a usar en Meta)",-1)),ie(m("input",{"onUpdate:modelValue":l[16]||(l[16]=c=>B.value.verify_token=c),required:"",class:"w-full border border-gray-300 rounded-lg px-3 py-2 text-sm"},null,512),[[me,B.value.verify_token]])])],64)),m("div",Sf,[m("button",{type:"button",class:"px-4 py-2 text-sm text-gray-500",onClick:l[17]||(l[17]=c=>z.value=!1)},"Cancelar"),l[40]||(l[40]=m("button",{type:"submit",class:"bg-brand hover:bg-brand-dark text-white text-sm font-medium px-4 py-2 rounded-lg"},"Guardar",-1))])],32)])])):ue("",!0)])):o.value==="chat"?(L(),H("div",Rf,[m("div",Of,[ve.value.length===0?(L(),H("p",Tf," Probá el agente tal cual lo va a ver un visitante — usa la misma config de IA y las mismas tools/base de conocimiento del tenant. ")):ue("",!0),(L(!0),H(he,null,et(ve.value,(c,y)=>(L(),H("div",{key:y,class:tt(["max-w-[80%] px-3 py-2 rounded-lg text-sm whitespace-pre-wrap",c.role==="user"?"bg-brand text-white ml-auto":"bg-gray-100 text-gray-800"])},Q(c.content),3))),128)),N.value?(L(),H("p",Pf,"Pensando...")):ue("",!0)]),m("form",{class:"flex gap-2",onSubmit:rt(P,["prevent"])},[ie(m("input",{"onUpdate:modelValue":l[19]||(l[19]=c=>_.value=c),placeholder:"Escribí un mensaje de prueba...",class:"flex-1 border border-gray-300 rounded-lg px-3 py-2 text-sm"},null,512),[[me,_.value]]),m("button",{type:"submit",disabled:N.value,class:"bg-brand hover:bg-brand-dark text-white text-sm font-medium px-4 py-2 rounded-lg disabled:opacity-50"}," Enviar ",8,If)],32)])):(L(),H("div",Nf,[m("div",kf,[E.value.length===0?(L(),H("div",Df,"Sin conversaciones.")):ue("",!0),(L(!0),H(he,null,et(E.value,c=>(L(),H("button",{key:c.session_id,class:tt(["w-full text-left p-3 hover:bg-gray-50 text-sm",R.value===c.session_id?"bg-gray-50":""]),onClick:y=>V(c.session_id)},[m("div",Vf,Q(c.content),1),m("div",jf,Q(c.session_id),1)],10,Mf))),128))]),m("div",Lf,[R.value?ue("",!0):(L(),H("p",Uf,"Elegí una conversación de la izquierda.")),(L(!0),H(he,null,et(C.value,c=>(L(),H("div",{key:c.ID,class:tt(["max-w-[80%] px-3 py-2 rounded-lg text-sm",c.role==="user"?"bg-brand text-white ml-auto":"bg-gray-100 text-gray-800"])},Q(c.content),3))),128))])]))])}}},Hf=ic({history:Lu("/orchestrator/"),routes:[{path:"/",name:"tenants",component:Ec},{path:"/tenants/:id",name:"tenant-detail",component:Ff,props:!0}]});Ka(eu).use(Hf).mount("#app");